@attabot/product-app 1.0.39 → 1.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/product-app.js +3357 -3361
- package/dist/product-app.js.map +1 -1
- package/dist/product-app.umd.js +47 -47
- package/dist/product-app.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/product-app.umd.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(l,N){typeof exports=="object"&&typeof module<"u"?module.exports=N(require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react/jsx-runtime","react","react-dom"],N):(l=typeof globalThis<"u"?globalThis:l||self,l.ProductApp=N(l["react/jsx-runtime"],l.React,l.ReactDOM))})(this,(function(l,N,Wo){"use strict";var Nl=typeof document<"u"?document.currentScript:null;function mu(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const A=mu(N),Iy=mu(Wo);function Vo(){return Vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vo.apply(this,arguments)}var ur;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ur||(ur={}));const yu="popstate";function Ny(e){e===void 0&&(e={});function t(r,i){let{pathname:s,search:a,hash:c}=r.location;return Ml("",{pathname:s,search:a,hash:c},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Ho(i)}return Fy(t,n,null,e)}function We(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function pn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function My(){return Math.random().toString(36).substr(2,8)}function bu(e,t){return{usr:e.state,key:e.key,idx:t}}function Ml(e,t,n,r){return n===void 0&&(n=null),Vo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Jr(t):t,{state:n,key:t&&t.key||r||My()})}function Ho(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Jr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Fy(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,a=i.history,c=ur.Pop,d=null,p=u();p==null&&(p=0,a.replaceState(Vo({},a.state,{idx:p}),""));function u(){return(a.state||{idx:null}).idx}function h(){c=ur.Pop;let b=u(),x=b==null?null:b-p;p=b,d&&d({action:c,location:f.location,delta:x})}function m(b,x){c=ur.Push;let E=Ml(f.location,b,x);p=u()+1;let w=bu(E,p),S=f.createHref(E);try{a.pushState(w,"",S)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;i.location.assign(S)}s&&d&&d({action:c,location:f.location,delta:1})}function y(b,x){c=ur.Replace;let E=Ml(f.location,b,x);p=u();let w=bu(E,p),S=f.createHref(E);a.replaceState(w,"",S),s&&d&&d({action:c,location:f.location,delta:0})}function g(b){let x=i.location.origin!=="null"?i.location.origin:i.location.href,E=typeof b=="string"?b:Ho(b);return E=E.replace(/ $/,"%20"),We(x,"No window.location.(origin|href) available to create URL for href: "+E),new URL(E,x)}let f={get action(){return c},get location(){return e(i,a)},listen(b){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(yu,h),d=b,()=>{i.removeEventListener(yu,h),d=null}},createHref(b){return t(i,b)},createURL:g,encodeLocation(b){let x=g(b);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:m,replace:y,go(b){return a.go(b)}};return f}var xu;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(xu||(xu={}));function Dy(e,t,n){return n===void 0&&(n="/"),By(e,t,n)}function By(e,t,n,r){let i=typeof t=="string"?Jr(t):t,s=pr(i.pathname||"/",n);if(s==null)return null;let a=vu(e);_y(a);let c=null;for(let d=0;c==null&&d<a.length;++d){let p=Yy(s);c=Ry(a[d],p)}return c}function vu(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,a,c)=>{let d={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};d.relativePath.startsWith("/")&&(We(d.relativePath.startsWith(r),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(r.length));let p=Jn([r,d.relativePath]),u=n.concat(d);s.children&&s.children.length>0&&(We(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+p+'".')),vu(s.children,t,u,p)),!(s.path==null&&!s.index)&&t.push({path:p,score:Hy(p,s.index),routesMeta:u})};return e.forEach((s,a)=>{var c;if(s.path===""||!((c=s.path)!=null&&c.includes("?")))i(s,a);else for(let d of Su(s.path))i(s,a,d)}),t}function Su(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let a=Su(r.join("/")),c=[];return c.push(...a.map(d=>d===""?s:[s,d].join("/"))),i&&c.push(...a),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function _y(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Uy(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const $y=/^:[\w-]+$/,zy=3,Ly=2,jy=1,Wy=10,Vy=-2,wu=e=>e==="*";function Hy(e,t){let n=e.split("/"),r=n.length;return n.some(wu)&&(r+=Vy),t&&(r+=Ly),n.filter(i=>!wu(i)).reduce((i,s)=>i+($y.test(s)?zy:s===""?jy:Wy),r)}function Uy(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Ry(e,t,n){let{routesMeta:r}=e,i={},s="/",a=[];for(let c=0;c<r.length;++c){let d=r[c],p=c===r.length-1,u=s==="/"?t:t.slice(s.length)||"/",h=Fl({path:d.relativePath,caseSensitive:d.caseSensitive,end:p},u),m=d.route;if(!h)return null;Object.assign(i,h.params),a.push({params:i,pathname:Jn([s,h.pathname]),pathnameBase:Qy(Jn([s,h.pathnameBase])),route:m}),h.pathnameBase!=="/"&&(s=Jn([s,h.pathnameBase]))}return a}function Fl(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=qy(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],a=s.replace(/(.)\/+$/,"$1"),c=i.slice(1);return{params:r.reduce((p,u,h)=>{let{paramName:m,isOptional:y}=u;if(m==="*"){let f=c[h]||"";a=s.slice(0,s.length-f.length).replace(/(.)\/+$/,"$1")}const g=c[h];return y&&!g?p[m]=void 0:p[m]=(g||"").replace(/%2F/g,"/"),p},{}),pathname:s,pathnameBase:a,pattern:e}}function qy(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),pn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,c,d)=>(r.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Yy(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return pn(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function pr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Gy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ky=e=>Gy.test(e);function Xy(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Jr(e):e,s;if(n)if(Ky(n))s=n;else{if(n.includes("//")){let a=n;n=n.replace(/\/\/+/g,"/"),pn(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?s=Cu(n.substring(1),"/"):s=Cu(n,t)}else s=t;return{pathname:s,search:Zy(r),hash:eb(i)}}function Cu(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Dl(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Jy(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Eu(e,t){let n=Jy(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Tu(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Jr(e):(i=Vo({},e),We(!i.pathname||!i.pathname.includes("?"),Dl("?","pathname","search",i)),We(!i.pathname||!i.pathname.includes("#"),Dl("#","pathname","hash",i)),We(!i.search||!i.search.includes("#"),Dl("#","search","hash",i)));let s=e===""||i.pathname==="",a=s?"/":i.pathname,c;if(a==null)c=n;else{let h=t.length-1;if(!r&&a.startsWith("..")){let m=a.split("/");for(;m[0]==="..";)m.shift(),h-=1;i.pathname=m.join("/")}c=h>=0?t[h]:"/"}let d=Xy(i,c),p=a&&a!=="/"&&a.endsWith("/"),u=(s||a===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(p||u)&&(d.pathname+="/"),d}const Jn=e=>e.join("/").replace(/\/\/+/g,"/"),Qy=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Zy=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,eb=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function tb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Au=["post","put","patch","delete"];new Set(Au);const nb=["get",...Au];new Set(nb);function Uo(){return Uo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uo.apply(this,arguments)}const Ro=A.createContext(null);process.env.NODE_ENV!=="production"&&(Ro.displayName="DataRouter");const Bl=A.createContext(null);process.env.NODE_ENV!=="production"&&(Bl.displayName="DataRouterState");const rb=A.createContext(null);process.env.NODE_ENV!=="production"&&(rb.displayName="Await");const Tn=A.createContext(null);process.env.NODE_ENV!=="production"&&(Tn.displayName="Navigation");const qo=A.createContext(null);process.env.NODE_ENV!=="production"&&(qo.displayName="Location");const In=A.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(In.displayName="Route");const _l=A.createContext(null);process.env.NODE_ENV!=="production"&&(_l.displayName="RouteError");function ob(e,t){let{relative:n}=t===void 0?{}:t;Yo()||(process.env.NODE_ENV!=="production"?We(!1,"useHref() may be used only in the context of a <Router> component."):We(!1));let{basename:r,navigator:i}=A.useContext(Tn),{hash:s,pathname:a,search:c}=Go(e,{relative:n}),d=a;return r!=="/"&&(d=a==="/"?r:Jn([r,a])),i.createHref({pathname:d,search:c,hash:s})}function Yo(){return A.useContext(qo)!=null}function zt(){return Yo()||(process.env.NODE_ENV!=="production"?We(!1,"useLocation() may be used only in the context of a <Router> component."):We(!1)),A.useContext(qo).location}const Pu="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ku(e){A.useContext(Tn).static||A.useLayoutEffect(e)}function Lt(){let{isDataRoute:e}=A.useContext(In);return e?vb():ib()}function ib(){Yo()||(process.env.NODE_ENV!=="production"?We(!1,"useNavigate() may be used only in the context of a <Router> component."):We(!1));let e=A.useContext(Ro),{basename:t,future:n,navigator:r}=A.useContext(Tn),{matches:i}=A.useContext(In),{pathname:s}=zt(),a=JSON.stringify(Eu(i,n.v7_relativeSplatPath)),c=A.useRef(!1);return ku(()=>{c.current=!0}),A.useCallback(function(p,u){if(u===void 0&&(u={}),process.env.NODE_ENV!=="production"&&pn(c.current,Pu),!c.current)return;if(typeof p=="number"){r.go(p);return}let h=Tu(p,JSON.parse(a),s,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Jn([t,h.pathname])),(u.replace?r.replace:r.push)(h,u.state,u)},[t,r,a,s,e])}const sb=A.createContext(null);function ab(e){let t=A.useContext(In).outlet;return t&&A.createElement(sb.Provider,{value:e},t)}function Go(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=A.useContext(Tn),{matches:i}=A.useContext(In),{pathname:s}=zt(),a=JSON.stringify(Eu(i,r.v7_relativeSplatPath));return A.useMemo(()=>Tu(e,JSON.parse(a),s,n==="path"),[e,a,s,n])}function lb(e,t){return cb(e,t)}function cb(e,t,n,r){Yo()||(process.env.NODE_ENV!=="production"?We(!1,"useRoutes() may be used only in the context of a <Router> component."):We(!1));let{navigator:i}=A.useContext(Tn),{matches:s}=A.useContext(In),a=s[s.length-1],c=a?a.params:{},d=a?a.pathname:"/",p=a?a.pathnameBase:"/",u=a&&a.route;if(process.env.NODE_ENV!=="production"){let E=u&&u.path||"";Nu(d,!u||E.endsWith("*"),"You rendered descendant <Routes> (or called `useRoutes()`) at "+('"'+d+'" (under <Route path="'+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.
|
|
2
2
|
|
|
3
|
-
`+('Please change the parent <Route path="'+E+'"> to <Route ')+('path="'+(E==="/"?"*":E+"/*")+'">.'))}let h=zt(),m;if(t){var y;let E=typeof t=="string"?Jr(t):t;p==="/"||(y=E.pathname)!=null&&y.startsWith(p)||(process.env.NODE_ENV!=="production"?We(!1,"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 "'+p+'" ')+('but pathname "'+E.pathname+'" was given in the `location` prop.')):We(!1)),m=E}else m=h;let g=m.pathname||"/",f=g;if(p!=="/"){let E=p.replace(/^\//,"").split("/");f="/"+g.replace(/^\//,"").split("/").slice(E.length).join("/")}let b=Dy(e,{pathname:f});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&pn(u||b!=null,'No routes matched location "'+m.pathname+m.search+m.hash+'" '),process.env.NODE_ENV!=="production"&&pn(b==null||b[b.length-1].route.element!==void 0||b[b.length-1].route.Component!==void 0||b[b.length-1].route.lazy!==void 0,'Matched leaf route at location "'+m.pathname+m.search+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 x=hb(b&&b.map(E=>Object.assign({},E,{params:Object.assign({},c,E.params),pathname:Jn([p,i.encodeLocation?i.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?p:Jn([p,i.encodeLocation?i.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),s,n,r);return t&&x?A.createElement(qo.Provider,{value:{location:Uo({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:ur.Pop}},x):x}function db(){let e=xb(),t=tb(e)?e.status+" "+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},a=null;return process.env.NODE_ENV!=="production"&&(console.error("Error handled by React Router default ErrorBoundary:",e),a=A.createElement(A.Fragment,null,A.createElement("p",null,"💿 Hey developer 👋"),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 Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},t),n?A.createElement("pre",{style:i},n):null,a)}const ub=A.createElement(db,null);class pb extends A.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?A.createElement(In.Provider,{value:this.props.routeContext},A.createElement(_l.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function fb(e){let{routeContext:t,match:n,children:r}=e,i=A.useContext(Ro);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),A.createElement(In.Provider,{value:t},r)}function hb(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,c=(i=n)==null?void 0:i.errors;if(c!=null){let u=a.findIndex(h=>h.route.id&&c?.[h.route.id]!==void 0);u>=0||(process.env.NODE_ENV!=="production"?We(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(c).join(",")):We(!1)),a=a.slice(0,Math.min(a.length,u+1))}let d=!1,p=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<a.length;u++){let h=a[u];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(p=u),h.route.id){let{loaderData:m,errors:y}=n,g=h.route.loader&&m[h.route.id]===void 0&&(!y||y[h.route.id]===void 0);if(h.route.lazy||g){d=!0,p>=0?a=a.slice(0,p+1):a=[a[0]];break}}}return a.reduceRight((u,h,m)=>{let y,g=!1,f=null,b=null;n&&(y=c&&h.route.id?c[h.route.id]:void 0,f=h.route.errorElement||ub,d&&(p<0&&m===0?(Nu("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,b=null):p===m&&(g=!0,b=h.route.hydrateFallbackElement||null)));let x=t.concat(a.slice(0,m+1)),E=()=>{let w;return y?w=f:g?w=b:h.route.Component?w=A.createElement(h.route.Component,null):h.route.element?w=h.route.element:w=u,A.createElement(fb,{match:h,routeContext:{outlet:u,matches:x,isDataRoute:n!=null},children:w})};return n&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?A.createElement(pb,{location:n.location,revalidation:n.revalidation,component:f,error:y,children:E(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):E()},null)}var Ou=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(Ou||{}),Ko=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(Ko||{});function $l(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function gb(e){let t=A.useContext(Ro);return t||(process.env.NODE_ENV!=="production"?We(!1,$l(e)):We(!1)),t}function mb(e){let t=A.useContext(Bl);return t||(process.env.NODE_ENV!=="production"?We(!1,$l(e)):We(!1)),t}function yb(e){let t=A.useContext(In);return t||(process.env.NODE_ENV!=="production"?We(!1,$l(e)):We(!1)),t}function zl(e){let t=yb(e),n=t.matches[t.matches.length-1];return n.route.id||(process.env.NODE_ENV!=="production"?We(!1,e+' can only be used on routes that contain a unique "id"'):We(!1)),n.route.id}function bb(){return zl(Ko.UseRouteId)}function xb(){var e;let t=A.useContext(_l),n=mb(Ko.UseRouteError),r=zl(Ko.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function vb(){let{router:e}=gb(Ou.UseNavigateStable),t=zl(Ko.UseNavigateStable),n=A.useRef(!1);return ku(()=>{n.current=!0}),A.useCallback(function(i,s){s===void 0&&(s={}),process.env.NODE_ENV!=="production"&&pn(n.current,Pu),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Uo({fromRouteId:t},s)))},[e,t])}const Iu={};function Nu(e,t,n){!t&&!Iu[e]&&(Iu[e]=!0,process.env.NODE_ENV!=="production"&&pn(!1,n))}const Mu={};function Sb(e,t){process.env.NODE_ENV!=="production"&&!Mu[t]&&(Mu[t]=!0,console.warn(t))}const Fu=(e,t,n)=>Sb(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function wb(e,t){e?.v7_startTransition===void 0&&Fu("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),e?.v7_relativeSplatPath===void 0&&Fu("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function Cb(e){return ab(e.context)}function fr(e){process.env.NODE_ENV!=="production"?We(!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>."):We(!1)}function Eb(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ur.Pop,navigator:s,static:a=!1,future:c}=e;Yo()&&(process.env.NODE_ENV!=="production"?We(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):We(!1));let d=t.replace(/^\/*/,"/"),p=A.useMemo(()=>({basename:d,navigator:s,static:a,future:Uo({v7_relativeSplatPath:!1},c)}),[d,c,s,a]);typeof r=="string"&&(r=Jr(r));let{pathname:u="/",search:h="",hash:m="",state:y=null,key:g="default"}=r,f=A.useMemo(()=>{let b=pr(u,d);return b==null?null:{location:{pathname:b,search:h,hash:m,state:y,key:g},navigationType:i}},[d,u,h,m,y,g,i]);return process.env.NODE_ENV!=="production"&&pn(f!=null,'<Router basename="'+d+'"> is not able to match the URL '+('"'+u+h+m+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),f==null?null:A.createElement(Tn.Provider,{value:p},A.createElement(qo.Provider,{children:n,value:f}))}function Tb(e){let{children:t,location:n}=e;return lb(Ll(t),n)}new Promise(()=>{});function Ll(e,t){t===void 0&&(t=[]);let n=[];return A.Children.forEach(e,(r,i)=>{if(!A.isValidElement(r))return;let s=[...t,i];if(r.type===A.Fragment){n.push.apply(n,Ll(r.props.children,s));return}r.type!==fr&&(process.env.NODE_ENV!=="production"?We(!1,"["+(typeof r.type=="string"?r.type:r.type.name)+"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>"):We(!1)),!r.props.index||!r.props.children||(process.env.NODE_ENV!=="production"?We(!1,"An index route cannot have child routes."):We(!1));let a={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=Ll(r.props.children,s)),n.push(a)}),n}function Qr(){return Qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qr.apply(this,arguments)}function jl(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}const bs="get",xs="application/x-www-form-urlencoded";function vs(e){return e!=null&&typeof e.tagName=="string"}function Ab(e){return vs(e)&&e.tagName.toLowerCase()==="button"}function Pb(e){return vs(e)&&e.tagName.toLowerCase()==="form"}function kb(e){return vs(e)&&e.tagName.toLowerCase()==="input"}function Ob(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Ib(e,t){return e.button===0&&(!t||t==="_self")&&!Ob(e)}function Wl(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function Nb(e,t){let n=Wl(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(s=>{n.append(i,s)})}),n}let Ss=null;function Mb(){if(Ss===null)try{new FormData(document.createElement("form"),0),Ss=!1}catch{Ss=!0}return Ss}const Fb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Vl(e){return e!=null&&!Fb.has(e)?(process.env.NODE_ENV!=="production"&&pn(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+xs+'"')),null):e}function Db(e,t){let n,r,i,s,a;if(Pb(e)){let c=e.getAttribute("action");r=c?pr(c,t):null,n=e.getAttribute("method")||bs,i=Vl(e.getAttribute("enctype"))||xs,s=new FormData(e)}else if(Ab(e)||kb(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||c.getAttribute("action");if(r=d?pr(d,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||bs,i=Vl(e.getAttribute("formenctype"))||Vl(c.getAttribute("enctype"))||xs,s=new FormData(c,e),!Mb()){let{name:p,type:u,value:h}=e;if(u==="image"){let m=p?p+".":"";s.append(m+"x","0"),s.append(m+"y","0")}else p&&s.append(p,h)}}else{if(vs(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=bs,r=null,i=xs,a=e}return s&&i==="text/plain"&&(a=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:a}}const Bb=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],_b=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],$b=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],zb="6";try{window.__reactRouterVersion=zb}catch{}const Du=A.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(Du.displayName="ViewTransition");const Lb=A.createContext(new Map);process.env.NODE_ENV!=="production"&&(Lb.displayName="Fetchers");const Bu=A["startTransition"];function jb(e){let{basename:t,children:n,future:r,window:i}=e,s=A.useRef();s.current==null&&(s.current=Ny({window:i,v5Compat:!0}));let a=s.current,[c,d]=A.useState({action:a.action,location:a.location}),{v7_startTransition:p}=r||{},u=A.useCallback(h=>{p&&Bu?Bu(()=>d(h)):d(h)},[d,p]);return A.useLayoutEffect(()=>a.listen(u),[a,u]),A.useEffect(()=>wb(r),[r]),A.createElement(Eb,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:a,future:r})}process.env.NODE_ENV;const Wb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Vb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_u=A.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:a,state:c,target:d,to:p,preventScrollReset:u,viewTransition:h}=t,m=jl(t,Bb),{basename:y}=A.useContext(Tn),g,f=!1;if(typeof p=="string"&&Vb.test(p)&&(g=p,Wb))try{let w=new URL(window.location.href),S=p.startsWith("//")?new URL(w.protocol+p):new URL(p),T=pr(S.pathname,y);S.origin===w.origin&&T!=null?p=T+S.search+S.hash:f=!0}catch{process.env.NODE_ENV!=="production"&&pn(!1,'<Link to="'+p+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let b=ob(p,{relative:i}),x=qb(p,{replace:a,state:c,target:d,preventScrollReset:u,relative:i,viewTransition:h});function E(w){r&&r(w),w.defaultPrevented||x(w)}return A.createElement("a",Qr({},m,{href:g||b,onClick:f||s?r:E,ref:n,target:d}))});process.env.NODE_ENV!=="production"&&(_u.displayName="Link");const Hb=A.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:s="",end:a=!1,style:c,to:d,viewTransition:p,children:u}=t,h=jl(t,_b),m=Go(d,{relative:h.relative}),y=zt(),g=A.useContext(Bl),{navigator:f,basename:b}=A.useContext(Tn),x=g!=null&&Zb(m)&&p===!0,E=f.encodeLocation?f.encodeLocation(m).pathname:m.pathname,w=y.pathname,S=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;i||(w=w.toLowerCase(),S=S?S.toLowerCase():null,E=E.toLowerCase()),S&&b&&(S=pr(S,b)||S);const T=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let v=w===E||!a&&w.startsWith(E)&&w.charAt(T)==="/",k=S!=null&&(S===E||!a&&S.startsWith(E)&&S.charAt(E.length)==="/"),M={isActive:v,isPending:k,isTransitioning:x},_=v?r:void 0,z;typeof s=="function"?z=s(M):z=[s,v?"active":null,k?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let F=typeof c=="function"?c(M):c;return A.createElement(_u,Qr({},h,{"aria-current":_,className:z,ref:n,style:F,to:d,viewTransition:p}),typeof u=="function"?u(M):u)});process.env.NODE_ENV!=="production"&&(Hb.displayName="NavLink");const Ub=A.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:i,replace:s,state:a,method:c=bs,action:d,onSubmit:p,relative:u,preventScrollReset:h,viewTransition:m}=e,y=jl(e,$b),g=Jb(),f=Qb(d,{relative:u}),b=c.toLowerCase()==="get"?"get":"post",x=E=>{if(p&&p(E),E.defaultPrevented)return;E.preventDefault();let w=E.nativeEvent.submitter,S=w?.getAttribute("formmethod")||c;g(w||E.currentTarget,{fetcherKey:n,method:S,navigate:r,replace:s,state:a,relative:u,preventScrollReset:h,viewTransition:m})};return A.createElement("form",Qr({ref:t,method:b,action:f,onSubmit:i?p:x},y))});process.env.NODE_ENV!=="production"&&(Ub.displayName="Form"),process.env.NODE_ENV;var ws;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ws||(ws={}));var $u;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})($u||($u={}));function Rb(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function zu(e){let t=A.useContext(Ro);return t||(process.env.NODE_ENV!=="production"?We(!1,Rb(e)):We(!1)),t}function qb(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:a,viewTransition:c}=t===void 0?{}:t,d=Lt(),p=zt(),u=Go(e,{relative:a});return A.useCallback(h=>{if(Ib(h,n)){h.preventDefault();let m=r!==void 0?r:Ho(p)===Ho(u);d(e,{replace:m,state:i,preventScrollReset:s,relative:a,viewTransition:c})}},[p,d,u,r,i,n,e,s,a,c])}function Yb(e){process.env.NODE_ENV!=="production"&&pn(typeof URLSearchParams<"u","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(Wl(e)),n=A.useRef(!1),r=zt(),i=A.useMemo(()=>Nb(r.search,n.current?null:t.current),[r.search]),s=Lt(),a=A.useCallback((c,d)=>{const p=Wl(typeof c=="function"?c(i):c);n.current=!0,s("?"+p,d)},[s,i]);return[i,a]}function Gb(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let Kb=0,Xb=()=>"__"+String(++Kb)+"__";function Jb(){let{router:e}=zu(ws.UseSubmit),{basename:t}=A.useContext(Tn),n=bb();return A.useCallback(function(r,i){i===void 0&&(i={}),Gb();let{action:s,method:a,encType:c,formData:d,body:p}=Db(r,t);if(i.navigate===!1){let u=i.fetcherKey||Xb();e.fetch(u,n,i.action||s,{preventScrollReset:i.preventScrollReset,formData:d,body:p,formMethod:i.method||a,formEncType:i.encType||c,flushSync:i.flushSync})}else e.navigate(i.action||s,{preventScrollReset:i.preventScrollReset,formData:d,body:p,formMethod:i.method||a,formEncType:i.encType||c,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function Qb(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=A.useContext(Tn),i=A.useContext(In);i||(process.env.NODE_ENV!=="production"?We(!1,"useFormAction must be used inside a RouteContext"):We(!1));let[s]=i.matches.slice(-1),a=Qr({},Go(e||".",{relative:n})),c=zt();if(e==null){a.search=c.search;let d=new URLSearchParams(a.search),p=d.getAll("index");if(p.some(h=>h==="")){d.delete("index"),p.filter(m=>m).forEach(m=>d.append("index",m));let h=d.toString();a.search=h?"?"+h:""}}return(!e||e===".")&&s.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:Jn([r,a.pathname])),Ho(a)}function Zb(e,t){t===void 0&&(t={});let n=A.useContext(Du);n==null&&(process.env.NODE_ENV!=="production"?We(!1,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):We(!1));let{basename:r}=zu(ws.useViewTransitionState),i=Go(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=pr(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=pr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Fl(i.pathname,a)!=null||Fl(i.pathname,s)!=null}function Lu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cs={exports:{}},Hl={};var ju;function e0(){if(ju)return Hl;ju=1;var e=N;function t(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,s=e.useEffect,a=e.useMemo,c=e.useDebugValue;return Hl.useSyncExternalStoreWithSelector=function(d,p,u,h,m){var y=i(null);if(y.current===null){var g={hasValue:!1,value:null};y.current=g}else g=y.current;y=a(function(){function b(T){if(!x){if(x=!0,E=T,T=h(T),m!==void 0&&g.hasValue){var v=g.value;if(m(v,T))return w=v}return w=T}if(v=w,n(E,T))return v;var k=h(T);return m!==void 0&&m(v,k)?(E=T,v):(E=T,w=k)}var x=!1,E,w,S=u===void 0?null:u;return[function(){return b(p())},S===null?void 0:function(){return b(S())}]},[p,u,h,m]);var f=r(d,y[0],y[1]);return s(function(){g.hasValue=!0,g.value=f},[f]),c(f),f},Hl}var Ul={};var Wu;function t0(){return Wu||(Wu=1,process.env.NODE_ENV!=="production"&&(function(){function e(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=N,n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,c=t.useDebugValue;Ul.useSyncExternalStoreWithSelector=function(d,p,u,h,m){var y=i(null);if(y.current===null){var g={hasValue:!1,value:null};y.current=g}else g=y.current;y=a(function(){function b(T){if(!x){if(x=!0,E=T,T=h(T),m!==void 0&&g.hasValue){var v=g.value;if(m(v,T))return w=v}return w=T}if(v=w,n(E,T))return v;var k=h(T);return m!==void 0&&m(v,k)?(E=T,v):(E=T,w=k)}var x=!1,E,w,S=u===void 0?null:u;return[function(){return b(p())},S===null?void 0:function(){return b(S())}]},[p,u,h,m]);var f=r(d,y[0],y[1]);return s(function(){g.hasValue=!0,g.value=f},[f]),c(f),f},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Ul}var Vu;function n0(){return Vu||(Vu=1,process.env.NODE_ENV==="production"?Cs.exports=e0():Cs.exports=t0()),Cs.exports}var r0=n0();function o0(e){e()}function i0(){let e=null,t=null;return{clear(){e=null,t=null},notify(){o0(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Hu={notify(){},get:()=>[]};function s0(e,t){let n,r=Hu,i=0,s=!1;function a(f){u();const b=r.subscribe(f);let x=!1;return()=>{x||(x=!0,b(),h())}}function c(){r.notify()}function d(){g.onStateChange&&g.onStateChange()}function p(){return s}function u(){i++,n||(n=e.subscribe(d),r=i0())}function h(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Hu)}function m(){s||(s=!0,u())}function y(){s&&(s=!1,h())}const g={addNestedSub:a,notifyNestedSubs:c,handleChangeWrapper:d,isSubscribed:p,trySubscribe:m,tryUnsubscribe:y,getListeners:()=>r};return g}var a0=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",l0=a0(),c0=()=>typeof navigator<"u"&&navigator.product==="ReactNative",d0=c0(),u0=()=>l0||d0?A.useLayoutEffect:A.useEffect,p0=u0(),f0=Symbol.for("react-redux-context"),h0=typeof globalThis<"u"?globalThis:{};function g0(){if(!A.createContext)return{};const e=h0[f0]??=new Map;let t=e.get(A.createContext);return t||(t=A.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(A.createContext,t)),t}var hr=g0();function m0(e){const{children:t,context:n,serverState:r,store:i}=e,s=A.useMemo(()=>{const d=s0(i),p={store:i,subscription:d,getServerState:r?()=>r:void 0};if(process.env.NODE_ENV==="production")return p;{const{identityFunctionCheck:u="once",stabilityCheck:h="once"}=e;return Object.assign(p,{stabilityCheck:h,identityFunctionCheck:u})}},[i,r]),a=A.useMemo(()=>i.getState(),[i]);p0(()=>{const{subscription:d}=s;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),a!==i.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[s,a]);const c=n||hr;return A.createElement(c.Provider,{value:s},t)}var y0=m0;function Rl(e=hr){return function(){const n=A.useContext(e);if(process.env.NODE_ENV!=="production"&&!n)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return n}}var Uu=Rl();function Ru(e=hr){const t=e===hr?Uu:Rl(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var b0=Ru();function x0(e=hr){const t=e===hr?b0:Ru(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var fn=x0(),v0=(e,t)=>e===t;function S0(e=hr){const t=e===hr?Uu:Rl(e),n=(r,i={})=>{const{equalityFn:s=v0}=typeof i=="function"?{equalityFn:i}:i;if(process.env.NODE_ENV!=="production"){if(!r)throw new Error("You must pass a selector to useSelector");if(typeof r!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof s!="function")throw new Error("You must pass a function as an equality function to useSelector")}const a=t(),{store:c,subscription:d,getServerState:p}=a,u=A.useRef(!0),h=A.useCallback({[r.name](y){const g=r(y);if(process.env.NODE_ENV!=="production"){const{devModeChecks:f={}}=typeof i=="function"?{}:i,{identityFunctionCheck:b,stabilityCheck:x}=a,{identityFunctionCheck:E,stabilityCheck:w}={stabilityCheck:x,identityFunctionCheck:b,...f};if(w==="always"||w==="once"&&u.current){const S=r(y);if(!s(g,S)){let T;try{throw new Error}catch(v){({stack:T}=v)}console.warn("Selector "+(r.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
|
|
3
|
+
`+('Please change the parent <Route path="'+E+'"> to <Route ')+('path="'+(E==="/"?"*":E+"/*")+'">.'))}let h=zt(),m;if(t){var y;let E=typeof t=="string"?Jr(t):t;p==="/"||(y=E.pathname)!=null&&y.startsWith(p)||(process.env.NODE_ENV!=="production"?We(!1,"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 "'+p+'" ')+('but pathname "'+E.pathname+'" was given in the `location` prop.')):We(!1)),m=E}else m=h;let g=m.pathname||"/",f=g;if(p!=="/"){let E=p.replace(/^\//,"").split("/");f="/"+g.replace(/^\//,"").split("/").slice(E.length).join("/")}let b=Dy(e,{pathname:f});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&pn(u||b!=null,'No routes matched location "'+m.pathname+m.search+m.hash+'" '),process.env.NODE_ENV!=="production"&&pn(b==null||b[b.length-1].route.element!==void 0||b[b.length-1].route.Component!==void 0||b[b.length-1].route.lazy!==void 0,'Matched leaf route at location "'+m.pathname+m.search+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 x=hb(b&&b.map(E=>Object.assign({},E,{params:Object.assign({},c,E.params),pathname:Jn([p,i.encodeLocation?i.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?p:Jn([p,i.encodeLocation?i.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),s,n,r);return t&&x?A.createElement(qo.Provider,{value:{location:Uo({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:ur.Pop}},x):x}function db(){let e=xb(),t=tb(e)?e.status+" "+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},a=null;return process.env.NODE_ENV!=="production"&&(console.error("Error handled by React Router default ErrorBoundary:",e),a=A.createElement(A.Fragment,null,A.createElement("p",null,"💿 Hey developer 👋"),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 Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},t),n?A.createElement("pre",{style:i},n):null,a)}const ub=A.createElement(db,null);class pb extends A.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?A.createElement(In.Provider,{value:this.props.routeContext},A.createElement(_l.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function fb(e){let{routeContext:t,match:n,children:r}=e,i=A.useContext(Ro);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),A.createElement(In.Provider,{value:t},r)}function hb(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,c=(i=n)==null?void 0:i.errors;if(c!=null){let u=a.findIndex(h=>h.route.id&&c?.[h.route.id]!==void 0);u>=0||(process.env.NODE_ENV!=="production"?We(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(c).join(",")):We(!1)),a=a.slice(0,Math.min(a.length,u+1))}let d=!1,p=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<a.length;u++){let h=a[u];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(p=u),h.route.id){let{loaderData:m,errors:y}=n,g=h.route.loader&&m[h.route.id]===void 0&&(!y||y[h.route.id]===void 0);if(h.route.lazy||g){d=!0,p>=0?a=a.slice(0,p+1):a=[a[0]];break}}}return a.reduceRight((u,h,m)=>{let y,g=!1,f=null,b=null;n&&(y=c&&h.route.id?c[h.route.id]:void 0,f=h.route.errorElement||ub,d&&(p<0&&m===0?(Nu("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,b=null):p===m&&(g=!0,b=h.route.hydrateFallbackElement||null)));let x=t.concat(a.slice(0,m+1)),E=()=>{let w;return y?w=f:g?w=b:h.route.Component?w=A.createElement(h.route.Component,null):h.route.element?w=h.route.element:w=u,A.createElement(fb,{match:h,routeContext:{outlet:u,matches:x,isDataRoute:n!=null},children:w})};return n&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?A.createElement(pb,{location:n.location,revalidation:n.revalidation,component:f,error:y,children:E(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):E()},null)}var Ou=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(Ou||{}),Ko=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(Ko||{});function $l(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function gb(e){let t=A.useContext(Ro);return t||(process.env.NODE_ENV!=="production"?We(!1,$l(e)):We(!1)),t}function mb(e){let t=A.useContext(Bl);return t||(process.env.NODE_ENV!=="production"?We(!1,$l(e)):We(!1)),t}function yb(e){let t=A.useContext(In);return t||(process.env.NODE_ENV!=="production"?We(!1,$l(e)):We(!1)),t}function zl(e){let t=yb(e),n=t.matches[t.matches.length-1];return n.route.id||(process.env.NODE_ENV!=="production"?We(!1,e+' can only be used on routes that contain a unique "id"'):We(!1)),n.route.id}function bb(){return zl(Ko.UseRouteId)}function xb(){var e;let t=A.useContext(_l),n=mb(Ko.UseRouteError),r=zl(Ko.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function vb(){let{router:e}=gb(Ou.UseNavigateStable),t=zl(Ko.UseNavigateStable),n=A.useRef(!1);return ku(()=>{n.current=!0}),A.useCallback(function(i,s){s===void 0&&(s={}),process.env.NODE_ENV!=="production"&&pn(n.current,Pu),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Uo({fromRouteId:t},s)))},[e,t])}const Iu={};function Nu(e,t,n){!t&&!Iu[e]&&(Iu[e]=!0,process.env.NODE_ENV!=="production"&&pn(!1,n))}const Mu={};function Sb(e,t){process.env.NODE_ENV!=="production"&&!Mu[t]&&(Mu[t]=!0,console.warn(t))}const Fu=(e,t,n)=>Sb(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function wb(e,t){e?.v7_startTransition===void 0&&Fu("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),e?.v7_relativeSplatPath===void 0&&Fu("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function Cb(e){return ab(e.context)}function fr(e){process.env.NODE_ENV!=="production"?We(!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>."):We(!1)}function Eb(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ur.Pop,navigator:s,static:a=!1,future:c}=e;Yo()&&(process.env.NODE_ENV!=="production"?We(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):We(!1));let d=t.replace(/^\/*/,"/"),p=A.useMemo(()=>({basename:d,navigator:s,static:a,future:Uo({v7_relativeSplatPath:!1},c)}),[d,c,s,a]);typeof r=="string"&&(r=Jr(r));let{pathname:u="/",search:h="",hash:m="",state:y=null,key:g="default"}=r,f=A.useMemo(()=>{let b=pr(u,d);return b==null?null:{location:{pathname:b,search:h,hash:m,state:y,key:g},navigationType:i}},[d,u,h,m,y,g,i]);return process.env.NODE_ENV!=="production"&&pn(f!=null,'<Router basename="'+d+'"> is not able to match the URL '+('"'+u+h+m+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),f==null?null:A.createElement(Tn.Provider,{value:p},A.createElement(qo.Provider,{children:n,value:f}))}function Tb(e){let{children:t,location:n}=e;return lb(Ll(t),n)}new Promise(()=>{});function Ll(e,t){t===void 0&&(t=[]);let n=[];return A.Children.forEach(e,(r,i)=>{if(!A.isValidElement(r))return;let s=[...t,i];if(r.type===A.Fragment){n.push.apply(n,Ll(r.props.children,s));return}r.type!==fr&&(process.env.NODE_ENV!=="production"?We(!1,"["+(typeof r.type=="string"?r.type:r.type.name)+"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>"):We(!1)),!r.props.index||!r.props.children||(process.env.NODE_ENV!=="production"?We(!1,"An index route cannot have child routes."):We(!1));let a={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=Ll(r.props.children,s)),n.push(a)}),n}function Qr(){return Qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qr.apply(this,arguments)}function jl(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}const bs="get",xs="application/x-www-form-urlencoded";function vs(e){return e!=null&&typeof e.tagName=="string"}function Ab(e){return vs(e)&&e.tagName.toLowerCase()==="button"}function Pb(e){return vs(e)&&e.tagName.toLowerCase()==="form"}function kb(e){return vs(e)&&e.tagName.toLowerCase()==="input"}function Ob(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Ib(e,t){return e.button===0&&(!t||t==="_self")&&!Ob(e)}function Wl(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function Nb(e,t){let n=Wl(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(s=>{n.append(i,s)})}),n}let Ss=null;function Mb(){if(Ss===null)try{new FormData(document.createElement("form"),0),Ss=!1}catch{Ss=!0}return Ss}const Fb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Vl(e){return e!=null&&!Fb.has(e)?(process.env.NODE_ENV!=="production"&&pn(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+xs+'"')),null):e}function Db(e,t){let n,r,i,s,a;if(Pb(e)){let c=e.getAttribute("action");r=c?pr(c,t):null,n=e.getAttribute("method")||bs,i=Vl(e.getAttribute("enctype"))||xs,s=new FormData(e)}else if(Ab(e)||kb(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||c.getAttribute("action");if(r=d?pr(d,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||bs,i=Vl(e.getAttribute("formenctype"))||Vl(c.getAttribute("enctype"))||xs,s=new FormData(c,e),!Mb()){let{name:p,type:u,value:h}=e;if(u==="image"){let m=p?p+".":"";s.append(m+"x","0"),s.append(m+"y","0")}else p&&s.append(p,h)}}else{if(vs(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=bs,r=null,i=xs,a=e}return s&&i==="text/plain"&&(a=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:a}}const Bb=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],_b=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],$b=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],zb="6";try{window.__reactRouterVersion=zb}catch{}const Du=A.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(Du.displayName="ViewTransition");const Lb=A.createContext(new Map);process.env.NODE_ENV!=="production"&&(Lb.displayName="Fetchers");const Bu=A["startTransition"];function jb(e){let{basename:t,children:n,future:r,window:i}=e,s=A.useRef();s.current==null&&(s.current=Ny({window:i,v5Compat:!0}));let a=s.current,[c,d]=A.useState({action:a.action,location:a.location}),{v7_startTransition:p}=r||{},u=A.useCallback(h=>{p&&Bu?Bu(()=>d(h)):d(h)},[d,p]);return A.useLayoutEffect(()=>a.listen(u),[a,u]),A.useEffect(()=>wb(r),[r]),A.createElement(Eb,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:a,future:r})}process.env.NODE_ENV;const Wb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Vb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_u=A.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:a,state:c,target:d,to:p,preventScrollReset:u,viewTransition:h}=t,m=jl(t,Bb),{basename:y}=A.useContext(Tn),g,f=!1;if(typeof p=="string"&&Vb.test(p)&&(g=p,Wb))try{let w=new URL(window.location.href),S=p.startsWith("//")?new URL(w.protocol+p):new URL(p),T=pr(S.pathname,y);S.origin===w.origin&&T!=null?p=T+S.search+S.hash:f=!0}catch{process.env.NODE_ENV!=="production"&&pn(!1,'<Link to="'+p+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let b=ob(p,{relative:i}),x=qb(p,{replace:a,state:c,target:d,preventScrollReset:u,relative:i,viewTransition:h});function E(w){r&&r(w),w.defaultPrevented||x(w)}return A.createElement("a",Qr({},m,{href:g||b,onClick:f||s?r:E,ref:n,target:d}))});process.env.NODE_ENV!=="production"&&(_u.displayName="Link");const Hb=A.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:s="",end:a=!1,style:c,to:d,viewTransition:p,children:u}=t,h=jl(t,_b),m=Go(d,{relative:h.relative}),y=zt(),g=A.useContext(Bl),{navigator:f,basename:b}=A.useContext(Tn),x=g!=null&&Zb(m)&&p===!0,E=f.encodeLocation?f.encodeLocation(m).pathname:m.pathname,w=y.pathname,S=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;i||(w=w.toLowerCase(),S=S?S.toLowerCase():null,E=E.toLowerCase()),S&&b&&(S=pr(S,b)||S);const T=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let v=w===E||!a&&w.startsWith(E)&&w.charAt(T)==="/",k=S!=null&&(S===E||!a&&S.startsWith(E)&&S.charAt(E.length)==="/"),M={isActive:v,isPending:k,isTransitioning:x},B=v?r:void 0,z;typeof s=="function"?z=s(M):z=[s,v?"active":null,k?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let $=typeof c=="function"?c(M):c;return A.createElement(_u,Qr({},h,{"aria-current":B,className:z,ref:n,style:$,to:d,viewTransition:p}),typeof u=="function"?u(M):u)});process.env.NODE_ENV!=="production"&&(Hb.displayName="NavLink");const Ub=A.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:i,replace:s,state:a,method:c=bs,action:d,onSubmit:p,relative:u,preventScrollReset:h,viewTransition:m}=e,y=jl(e,$b),g=Jb(),f=Qb(d,{relative:u}),b=c.toLowerCase()==="get"?"get":"post",x=E=>{if(p&&p(E),E.defaultPrevented)return;E.preventDefault();let w=E.nativeEvent.submitter,S=w?.getAttribute("formmethod")||c;g(w||E.currentTarget,{fetcherKey:n,method:S,navigate:r,replace:s,state:a,relative:u,preventScrollReset:h,viewTransition:m})};return A.createElement("form",Qr({ref:t,method:b,action:f,onSubmit:i?p:x},y))});process.env.NODE_ENV!=="production"&&(Ub.displayName="Form"),process.env.NODE_ENV;var ws;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ws||(ws={}));var $u;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})($u||($u={}));function Rb(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function zu(e){let t=A.useContext(Ro);return t||(process.env.NODE_ENV!=="production"?We(!1,Rb(e)):We(!1)),t}function qb(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:a,viewTransition:c}=t===void 0?{}:t,d=Lt(),p=zt(),u=Go(e,{relative:a});return A.useCallback(h=>{if(Ib(h,n)){h.preventDefault();let m=r!==void 0?r:Ho(p)===Ho(u);d(e,{replace:m,state:i,preventScrollReset:s,relative:a,viewTransition:c})}},[p,d,u,r,i,n,e,s,a,c])}function Yb(e){process.env.NODE_ENV!=="production"&&pn(typeof URLSearchParams<"u","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(Wl(e)),n=A.useRef(!1),r=zt(),i=A.useMemo(()=>Nb(r.search,n.current?null:t.current),[r.search]),s=Lt(),a=A.useCallback((c,d)=>{const p=Wl(typeof c=="function"?c(i):c);n.current=!0,s("?"+p,d)},[s,i]);return[i,a]}function Gb(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let Kb=0,Xb=()=>"__"+String(++Kb)+"__";function Jb(){let{router:e}=zu(ws.UseSubmit),{basename:t}=A.useContext(Tn),n=bb();return A.useCallback(function(r,i){i===void 0&&(i={}),Gb();let{action:s,method:a,encType:c,formData:d,body:p}=Db(r,t);if(i.navigate===!1){let u=i.fetcherKey||Xb();e.fetch(u,n,i.action||s,{preventScrollReset:i.preventScrollReset,formData:d,body:p,formMethod:i.method||a,formEncType:i.encType||c,flushSync:i.flushSync})}else e.navigate(i.action||s,{preventScrollReset:i.preventScrollReset,formData:d,body:p,formMethod:i.method||a,formEncType:i.encType||c,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function Qb(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=A.useContext(Tn),i=A.useContext(In);i||(process.env.NODE_ENV!=="production"?We(!1,"useFormAction must be used inside a RouteContext"):We(!1));let[s]=i.matches.slice(-1),a=Qr({},Go(e||".",{relative:n})),c=zt();if(e==null){a.search=c.search;let d=new URLSearchParams(a.search),p=d.getAll("index");if(p.some(h=>h==="")){d.delete("index"),p.filter(m=>m).forEach(m=>d.append("index",m));let h=d.toString();a.search=h?"?"+h:""}}return(!e||e===".")&&s.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:Jn([r,a.pathname])),Ho(a)}function Zb(e,t){t===void 0&&(t={});let n=A.useContext(Du);n==null&&(process.env.NODE_ENV!=="production"?We(!1,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):We(!1));let{basename:r}=zu(ws.useViewTransitionState),i=Go(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=pr(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=pr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Fl(i.pathname,a)!=null||Fl(i.pathname,s)!=null}function Lu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cs={exports:{}},Hl={};var ju;function e0(){if(ju)return Hl;ju=1;var e=N;function t(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,s=e.useEffect,a=e.useMemo,c=e.useDebugValue;return Hl.useSyncExternalStoreWithSelector=function(d,p,u,h,m){var y=i(null);if(y.current===null){var g={hasValue:!1,value:null};y.current=g}else g=y.current;y=a(function(){function b(T){if(!x){if(x=!0,E=T,T=h(T),m!==void 0&&g.hasValue){var v=g.value;if(m(v,T))return w=v}return w=T}if(v=w,n(E,T))return v;var k=h(T);return m!==void 0&&m(v,k)?(E=T,v):(E=T,w=k)}var x=!1,E,w,S=u===void 0?null:u;return[function(){return b(p())},S===null?void 0:function(){return b(S())}]},[p,u,h,m]);var f=r(d,y[0],y[1]);return s(function(){g.hasValue=!0,g.value=f},[f]),c(f),f},Hl}var Ul={};var Wu;function t0(){return Wu||(Wu=1,process.env.NODE_ENV!=="production"&&(function(){function e(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=N,n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,c=t.useDebugValue;Ul.useSyncExternalStoreWithSelector=function(d,p,u,h,m){var y=i(null);if(y.current===null){var g={hasValue:!1,value:null};y.current=g}else g=y.current;y=a(function(){function b(T){if(!x){if(x=!0,E=T,T=h(T),m!==void 0&&g.hasValue){var v=g.value;if(m(v,T))return w=v}return w=T}if(v=w,n(E,T))return v;var k=h(T);return m!==void 0&&m(v,k)?(E=T,v):(E=T,w=k)}var x=!1,E,w,S=u===void 0?null:u;return[function(){return b(p())},S===null?void 0:function(){return b(S())}]},[p,u,h,m]);var f=r(d,y[0],y[1]);return s(function(){g.hasValue=!0,g.value=f},[f]),c(f),f},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Ul}var Vu;function n0(){return Vu||(Vu=1,process.env.NODE_ENV==="production"?Cs.exports=e0():Cs.exports=t0()),Cs.exports}var r0=n0();function o0(e){e()}function i0(){let e=null,t=null;return{clear(){e=null,t=null},notify(){o0(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Hu={notify(){},get:()=>[]};function s0(e,t){let n,r=Hu,i=0,s=!1;function a(f){u();const b=r.subscribe(f);let x=!1;return()=>{x||(x=!0,b(),h())}}function c(){r.notify()}function d(){g.onStateChange&&g.onStateChange()}function p(){return s}function u(){i++,n||(n=e.subscribe(d),r=i0())}function h(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Hu)}function m(){s||(s=!0,u())}function y(){s&&(s=!1,h())}const g={addNestedSub:a,notifyNestedSubs:c,handleChangeWrapper:d,isSubscribed:p,trySubscribe:m,tryUnsubscribe:y,getListeners:()=>r};return g}var a0=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",l0=a0(),c0=()=>typeof navigator<"u"&&navigator.product==="ReactNative",d0=c0(),u0=()=>l0||d0?A.useLayoutEffect:A.useEffect,p0=u0(),f0=Symbol.for("react-redux-context"),h0=typeof globalThis<"u"?globalThis:{};function g0(){if(!A.createContext)return{};const e=h0[f0]??=new Map;let t=e.get(A.createContext);return t||(t=A.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(A.createContext,t)),t}var hr=g0();function m0(e){const{children:t,context:n,serverState:r,store:i}=e,s=A.useMemo(()=>{const d=s0(i),p={store:i,subscription:d,getServerState:r?()=>r:void 0};if(process.env.NODE_ENV==="production")return p;{const{identityFunctionCheck:u="once",stabilityCheck:h="once"}=e;return Object.assign(p,{stabilityCheck:h,identityFunctionCheck:u})}},[i,r]),a=A.useMemo(()=>i.getState(),[i]);p0(()=>{const{subscription:d}=s;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),a!==i.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[s,a]);const c=n||hr;return A.createElement(c.Provider,{value:s},t)}var y0=m0;function Rl(e=hr){return function(){const n=A.useContext(e);if(process.env.NODE_ENV!=="production"&&!n)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return n}}var Uu=Rl();function Ru(e=hr){const t=e===hr?Uu:Rl(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var b0=Ru();function x0(e=hr){const t=e===hr?b0:Ru(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var fn=x0(),v0=(e,t)=>e===t;function S0(e=hr){const t=e===hr?Uu:Rl(e),n=(r,i={})=>{const{equalityFn:s=v0}=typeof i=="function"?{equalityFn:i}:i;if(process.env.NODE_ENV!=="production"){if(!r)throw new Error("You must pass a selector to useSelector");if(typeof r!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof s!="function")throw new Error("You must pass a function as an equality function to useSelector")}const a=t(),{store:c,subscription:d,getServerState:p}=a,u=A.useRef(!0),h=A.useCallback({[r.name](y){const g=r(y);if(process.env.NODE_ENV!=="production"){const{devModeChecks:f={}}=typeof i=="function"?{}:i,{identityFunctionCheck:b,stabilityCheck:x}=a,{identityFunctionCheck:E,stabilityCheck:w}={stabilityCheck:x,identityFunctionCheck:b,...f};if(w==="always"||w==="once"&&u.current){const S=r(y);if(!s(g,S)){let T;try{throw new Error}catch(v){({stack:T}=v)}console.warn("Selector "+(r.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
|
|
4
4
|
Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization`,{state:y,selected:g,selected2:S,stack:T})}}if((E==="always"||E==="once"&&u.current)&&g===y){let S;try{throw new Error}catch(T){({stack:S}=T)}console.warn("Selector "+(r.name||"unknown")+` returned the root state when called. This can lead to unnecessary rerenders.
|
|
5
5
|
Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,{stack:S})}u.current&&(u.current=!1)}return g}}[r.name],[r]),m=r0.useSyncExternalStoreWithSelector(d.addNestedSub,c.getState,p||c.getState,h,s);return A.useDebugValue(m),m};return Object.assign(n,{withTypes:()=>n}),n}var Ye=S0(),Xo={},qu;function w0(){if(qu)return Xo;qu=1,Xo.__esModule=!0,Xo.PersistGate=void 0;var e=t(N);function t(y){if(y&&y.__esModule)return y;var g={};if(y!=null){for(var f in y)if(Object.prototype.hasOwnProperty.call(y,f)){var b=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(y,f):{};b.get||b.set?Object.defineProperty(g,f,b):g[f]=y[f]}}return g.default=y,g}function n(y){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(f){return typeof f}:n=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},n(y)}function r(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function i(y,g){for(var f=0;f<g.length;f++){var b=g[f];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}function s(y,g,f){return g&&i(y.prototype,g),y}function a(y,g){return g&&(n(g)==="object"||typeof g=="function")?g:d(y)}function c(y){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(f){return f.__proto__||Object.getPrototypeOf(f)},c(y)}function d(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}function p(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),g&&u(y,g)}function u(y,g){return u=Object.setPrototypeOf||function(b,x){return b.__proto__=x,b},u(y,g)}function h(y,g,f){return g in y?Object.defineProperty(y,g,{value:f,enumerable:!0,configurable:!0,writable:!0}):y[g]=f,y}var m=(function(y){p(g,y);function g(){var f,b;r(this,g);for(var x=arguments.length,E=new Array(x),w=0;w<x;w++)E[w]=arguments[w];return b=a(this,(f=c(g)).call.apply(f,[this].concat(E))),h(d(b),"state",{bootstrapped:!1}),h(d(b),"_unsubscribe",void 0),h(d(b),"handlePersistorState",function(){var S=b.props.persistor,T=S.getState(),v=T.bootstrapped;v&&(b.props.onBeforeLift?Promise.resolve(b.props.onBeforeLift()).finally(function(){return b.setState({bootstrapped:!0})}):b.setState({bootstrapped:!0}),b._unsubscribe&&b._unsubscribe())}),b}return s(g,[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return process.env.NODE_ENV!=="production"&&typeof this.props.children=="function"&&this.props.loading&&console.error("redux-persist: PersistGate expects either a function child or loading prop, but not both. The loading prop will be ignored."),typeof this.props.children=="function"?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}]),g})(e.PureComponent);return Xo.PersistGate=m,h(m,"defaultProps",{children:null,loading:null}),Xo}var C0=w0();function Dt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var E0=typeof Symbol=="function"&&Symbol.observable||"@@observable",Yu=E0,ql=()=>Math.random().toString(36).substring(7).split("").join("."),T0={INIT:`@@redux/INIT${ql()}`,REPLACE:`@@redux/REPLACE${ql()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ql()}`},Pr=T0;function Jo(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function A0(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(O0(e))return"date";if(k0(e))return"error";const n=P0(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function P0(e){return typeof e.constructor=="function"?e.constructor.name:null}function k0(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function O0(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function gr(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=A0(e)),t}function Yl(e,t,n){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?Dt(2):`Expected the root reducer to be a function. Instead, received: '${gr(e)}'`);if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Dt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Dt(1):`Expected the enhancer to be a function. Instead, received: '${gr(n)}'`);return n(Yl)(e,t)}let r=e,i=t,s=new Map,a=s,c=0,d=!1;function p(){a===s&&(a=new Map,s.forEach((b,x)=>{a.set(x,b)}))}function u(){if(d)throw new Error(process.env.NODE_ENV==="production"?Dt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function h(b){if(typeof b!="function")throw new Error(process.env.NODE_ENV==="production"?Dt(4):`Expected the listener to be a function. Instead, received: '${gr(b)}'`);if(d)throw new Error(process.env.NODE_ENV==="production"?Dt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let x=!0;p();const E=c++;return a.set(E,b),function(){if(x){if(d)throw new Error(process.env.NODE_ENV==="production"?Dt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");x=!1,p(),a.delete(E),s=null}}}function m(b){if(!Jo(b))throw new Error(process.env.NODE_ENV==="production"?Dt(7):`Actions must be plain objects. Instead, the actual type was: '${gr(b)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof b.type>"u")throw new Error(process.env.NODE_ENV==="production"?Dt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof b.type!="string")throw new Error(process.env.NODE_ENV==="production"?Dt(17):`Action "type" property must be a string. Instead, the actual type was: '${gr(b.type)}'. Value was: '${b.type}' (stringified)`);if(d)throw new Error(process.env.NODE_ENV==="production"?Dt(9):"Reducers may not dispatch actions.");try{d=!0,i=r(i,b)}finally{d=!1}return(s=a).forEach(E=>{E()}),b}function y(b){if(typeof b!="function")throw new Error(process.env.NODE_ENV==="production"?Dt(10):`Expected the nextReducer to be a function. Instead, received: '${gr(b)}`);r=b,m({type:Pr.REPLACE})}function g(){const b=h;return{subscribe(x){if(typeof x!="object"||x===null)throw new Error(process.env.NODE_ENV==="production"?Dt(11):`Expected the observer to be an object. Instead, received: '${gr(x)}'`);function E(){const S=x;S.next&&S.next(u())}return E(),{unsubscribe:b(E)}},[Yu](){return this}}}return m({type:Pr.INIT}),{dispatch:m,subscribe:h,getState:u,replaceReducer:y,[Yu]:g}}function Gu(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function I0(e,t,n,r){const i=Object.keys(t),s=n&&n.type===Pr.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Jo(e))return`The ${s} has unexpected type of "${gr(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const a=Object.keys(e).filter(c=>!t.hasOwnProperty(c)&&!r[c]);if(a.forEach(c=>{r[c]=!0}),!(n&&n.type===Pr.REPLACE)&&a.length>0)return`Unexpected ${a.length>1?"keys":"key"} "${a.join('", "')}" found in ${s}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function N0(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Pr.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?Dt(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:Pr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?Dt(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Pr.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function Ku(e){const t=Object.keys(e),n={};for(let a=0;a<t.length;a++){const c=t[a];process.env.NODE_ENV!=="production"&&typeof e[c]>"u"&&Gu(`No reducer provided for key "${c}"`),typeof e[c]=="function"&&(n[c]=e[c])}const r=Object.keys(n);let i;process.env.NODE_ENV!=="production"&&(i={});let s;try{N0(n)}catch(a){s=a}return function(c={},d){if(s)throw s;if(process.env.NODE_ENV!=="production"){const h=I0(c,n,d,i);h&&Gu(h)}let p=!1;const u={};for(let h=0;h<r.length;h++){const m=r[h],y=n[m],g=c[m],f=y(g,d);if(typeof f>"u"){const b=d&&d.type;throw new Error(process.env.NODE_ENV==="production"?Dt(14):`When called with an action of type ${b?`"${String(b)}"`:"(unknown type)"}, the slice reducer for key "${m}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}u[m]=f,p=p||f!==g}return p=p||r.length!==Object.keys(c).length,p?u:c}}function Es(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function M0(...e){return t=>(n,r)=>{const i=t(n,r);let s=()=>{throw new Error(process.env.NODE_ENV==="production"?Dt(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const a={getState:i.getState,dispatch:(d,...p)=>s(d,...p)},c=e.map(d=>d(a));return s=Es(...c)(i.dispatch),{...i,dispatch:s}}}function Xu(e){return Jo(e)&&"type"in e&&typeof e.type=="string"}var Ju=Symbol.for("immer-nothing"),Qu=Symbol.for("immer-draftable"),qt=Symbol.for("immer-state"),F0=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function rn(e,...t){if(process.env.NODE_ENV!=="production"){const n=F0[e],r=kr(n)?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var on=Object,Zr=on.getPrototypeOf,Ts="constructor",As="prototype",Gl="configurable",Ps="enumerable",ks="writable",Qo="value",Qn=e=>!!e&&!!e[qt];function An(e){return e?ep(e)||Is(e)||!!e[Qu]||!!e[Ts]?.[Qu]||Ns(e)||Ms(e):!1}var D0=on[As][Ts].toString(),Zu=new WeakMap;function ep(e){if(!e||!Xl(e))return!1;const t=Zr(e);if(t===null||t===on[As])return!0;const n=on.hasOwnProperty.call(t,Ts)&&t[Ts];if(n===Object)return!0;if(!kr(n))return!1;let r=Zu.get(n);return r===void 0&&(r=Function.toString.call(n),Zu.set(n,r)),r===D0}function Zo(e,t,n=!0){ei(e)===0?(n?Reflect.ownKeys(e):on.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function ei(e){const t=e[qt];return t?t.type_:Is(e)?1:Ns(e)?2:Ms(e)?3:0}var tp=(e,t,n=ei(e))=>n===2?e.has(t):on[As].hasOwnProperty.call(e,t),Kl=(e,t,n=ei(e))=>n===2?e.get(t):e[t],Os=(e,t,n,r=ei(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function B0(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Is=Array.isArray,Ns=e=>e instanceof Map,Ms=e=>e instanceof Set,Xl=e=>typeof e=="object",kr=e=>typeof e=="function",Jl=e=>typeof e=="boolean",Zn=e=>e.copy_||e.base_,Ql=e=>e.modified_?e.copy_:e.base_;function Zl(e,t){if(Ns(e))return new Map(e);if(Ms(e))return new Set(e);if(Is(e))return Array[As].slice.call(e);const n=ep(e);if(t===!0||t==="class_only"&&!n){const r=on.getOwnPropertyDescriptors(e);delete r[qt];let i=Reflect.ownKeys(r);for(let s=0;s<i.length;s++){const a=i[s],c=r[a];c[ks]===!1&&(c[ks]=!0,c[Gl]=!0),(c.get||c.set)&&(r[a]={[Gl]:!0,[ks]:!0,[Ps]:c[Ps],[Qo]:e[a]})}return on.create(Zr(e),r)}else{const r=Zr(e);if(r!==null&&n)return{...e};const i=on.create(r);return on.assign(i,e)}}function ec(e,t=!1){return Ds(e)||Qn(e)||!An(e)||(ei(e)>1&&on.defineProperties(e,{set:Fs,add:Fs,clear:Fs,delete:Fs}),on.freeze(e),t&&Zo(e,(n,r)=>{ec(r,!0)},!1)),e}function _0(){rn(2)}var Fs={[Qo]:_0};function Ds(e){return e===null||!Xl(e)?!0:on.isFrozen(e)}var Bs="MapSet",tc="Patches",np={};function eo(e){const t=np[e];return t||rn(0,e),t}var $0=e=>!!np[e],ti,rp=()=>ti,z0=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:$0(Bs)?eo(Bs):void 0});function op(e,t){t&&(e.patchPlugin_=eo(tc),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function nc(e){rc(e),e.drafts_.forEach(L0),e.drafts_=null}function rc(e){e===ti&&(ti=e.parent_)}var ip=e=>ti=z0(ti,e);function L0(e){const t=e[qt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function sp(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[qt].modified_&&(nc(t),rn(4)),An(e)&&(e=ap(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(n[qt].base_,e,t)}else e=ap(t,n);return j0(t,e,!0),nc(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Ju?e:void 0}function ap(e,t){if(Ds(t))return t;const n=t[qt];if(!n)return oc(t,e.handledSet_,e);if(!_s(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);dp(n,e)}return n.copy_}function j0(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ec(t,n)}function lp(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var _s=(e,t)=>e.scope_===t,W0=[];function cp(e,t,n,r){const i=Zn(e),s=e.type_;if(r!==void 0&&Kl(i,r,s)===t){Os(i,r,n,s);return}if(!e.draftLocations_){const c=e.draftLocations_=new Map;Zo(i,(d,p)=>{if(Qn(p)){const u=c.get(p)||[];u.push(d),c.set(p,u)}})}const a=e.draftLocations_.get(t)??W0;for(const c of a)Os(i,c,n,s)}function V0(e,t,n){e.callbacks_.push(function(i){const s=t;if(!s||!_s(s,i))return;i.mapSetPlugin_?.fixSetContents(s);const a=Ql(s);cp(e,s.draft_??s,a,n),dp(s,i)})}function dp(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||(e.assigned_?.size??0)>0)){const{patchPlugin_:r}=t;if(r){const i=r.getPath(e);i&&r.generatePatches_(e,i,t)}lp(e)}}function H0(e,t,n){const{scope_:r}=e;if(Qn(n)){const i=n[qt];_s(i,r)&&i.callbacks_.push(function(){$s(e);const a=Ql(i);cp(e,n,a,t)})}else An(n)&&e.callbacks_.push(function(){const s=Zn(e);Kl(s,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&oc(Kl(e.copy_,t,e.type_),r.handledSet_,r)})}function oc(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Qn(e)||t.has(e)||!An(e)||Ds(e)||(t.add(e),Zo(e,(r,i)=>{if(Qn(i)){const s=i[qt];if(_s(s,n)){const a=Ql(s);Os(e,r,a,e.type_),lp(s)}}else An(i)&&oc(i,t,n)})),e}function U0(e,t){const n=Is(e),r={type_:n?1:0,scope_:t?t.scope_:rp(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=r,s=ic;n&&(i=[r],s=ni);const{revoke:a,proxy:c}=Proxy.revocable(i,s);return r.draft_=c,r.revoke_=a,[c,r]}var ic={get(e,t){if(t===qt)return e;const n=Zn(e);if(!tp(n,t,e.type_))return R0(e,n,t);const r=n[t];if(e.finalized_||!An(r))return r;if(r===sc(e.base_,t)){$s(e);const i=e.type_===1?+t:t,s=lc(e.scope_,r,e,i);return e.copy_[i]=s}return r},has(e,t){return t in Zn(e)},ownKeys(e){return Reflect.ownKeys(Zn(e))},set(e,t,n){const r=up(Zn(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=sc(Zn(e),t),s=i?.[qt];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(B0(n,i)&&(n!==void 0||tp(e.base_,t,e.type_)))return!0;$s(e),ac(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),H0(e,t,n)),!0},deleteProperty(e,t){return $s(e),sc(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),ac(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Zn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[ks]:!0,[Gl]:e.type_!==1||t!=="length",[Ps]:r[Ps],[Qo]:n[t]}},defineProperty(){rn(11)},getPrototypeOf(e){return Zr(e.base_)},setPrototypeOf(){rn(12)}},ni={};Zo(ic,(e,t)=>{ni[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}),ni.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&rn(13),ni.set.call(this,e,t,void 0)},ni.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&rn(14),ic.set.call(this,e[0],t,n,e[0])};function sc(e,t){const n=e[qt];return(n?Zn(n):e)[t]}function R0(e,t,n){const r=up(t,n);return r?Qo in r?r[Qo]:r.get?.call(e.draft_):void 0}function up(e,t){if(!(t in e))return;let n=Zr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Zr(n)}}function ac(e){e.modified_||(e.modified_=!0,e.parent_&&ac(e.parent_))}function $s(e){e.copy_||(e.assigned_=new Map,e.copy_=Zl(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var q0=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,r)=>{if(kr(t)&&!kr(n)){const s=n;n=t;const a=this;return function(d=s,...p){return a.produce(d,u=>n.call(this,u,...p))}}kr(n)||rn(6),r!==void 0&&!kr(r)&&rn(7);let i;if(An(t)){const s=ip(this),a=lc(s,t,void 0);let c=!0;try{i=n(a),c=!1}finally{c?nc(s):rc(s)}return op(s,r),sp(i,s)}else if(!t||!Xl(t)){if(i=n(t),i===void 0&&(i=t),i===Ju&&(i=void 0),this.autoFreeze_&&ec(i,!0),r){const s=[],a=[];eo(tc).generateReplacementPatches_(t,i,{patches_:s,inversePatches_:a}),r(s,a)}return i}else rn(1,t)},this.produceWithPatches=(t,n)=>{if(kr(t))return(a,...c)=>this.produceWithPatches(a,d=>t(d,...c));let r,i;return[this.produce(t,n,(a,c)=>{r=a,i=c}),r,i]},Jl(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Jl(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Jl(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){An(e)||rn(8),Qn(e)&&(e=Y0(e));const t=ip(this),n=lc(t,e,void 0);return n[qt].isManual_=!0,rc(t),n}finishDraft(e,t){const n=e&&e[qt];(!n||!n.isManual_)&&rn(9);const{scope_:r}=n;return op(r,t),sp(void 0,r)}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 i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=eo(tc).applyPatches_;return Qn(e)?r(e,t):this.produce(e,i=>r(i,t))}};function lc(e,t,n,r){const[i,s]=Ns(t)?eo(Bs).proxyMap_(t,n):Ms(t)?eo(Bs).proxySet_(t,n):U0(t,n);return(n?.scope_??rp()).drafts_.push(i),s.callbacks_=n?.callbacks_??[],s.key_=r,n&&r!==void 0?V0(n,s,r):s.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(s);const{patchPlugin_:p}=d;s.modified_&&p&&p.generatePatches_(s,[],d)}),i}function Y0(e){return Qn(e)||rn(10,e),pp(e)}function pp(e){if(!An(e)||Ds(e))return e;const t=e[qt];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Zl(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Zl(e,!0);return Zo(n,(i,s)=>{Os(n,i,pp(s))},r),t&&(t.finalized_=!1),n}var G0=new q0,fp=G0.produce,K0=(e,t,n)=>{if(t.length===1&&t[0]===n){let r=!1;try{const i={};e(i)===i&&(r=!0)}catch{}if(r){let i;try{throw new Error}catch(s){({stack:i}=s)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
6
6
|
\`createSelector([state => state.todos], todos => todos)\`
|
|
@@ -8,7 +8,7 @@ This could lead to inefficient memoization and unnecessary re-renders.
|
|
|
8
8
|
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:i})}}},X0=(e,t,n)=>{const{memoize:r,memoizeOptions:i}=t,{inputSelectorResults:s,inputSelectorResultsCopy:a}=e,c=r(()=>({}),...i);if(!(c.apply(null,s)===c.apply(null,a))){let p;try{throw new Error}catch(u){({stack:p}=u)}console.warn(`An input selector returned a different result when passed same arguments.
|
|
9
9
|
This means your output selector will likely run more frequently than intended.
|
|
10
10
|
Avoid returning a new reference inside your input selector, e.g.
|
|
11
|
-
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:s,secondInputs:a,stack:p})}},J0={inputStabilityCheck:"once",identityFunctionCheck:"once"};function Q0(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Z0(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function ex(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var hp=e=>Array.isArray(e)?e:[e];function tx(e){const t=Array.isArray(e[0])?e[0]:e;return ex(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function gp(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var nx=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:r}={...J0,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:K0},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:X0}}},rx=class{constructor(e){this.value=e}deref(){return this.value}},ox=typeof WeakRef<"u"?WeakRef:rx,ix=0,mp=1;function zs(){return{s:ix,v:void 0,o:null,p:null}}function yp(e,t={}){let n=zs();const{resultEqualityCheck:r}=t;let i,s=0;function a(){let c=n;const{length:d}=arguments;for(let h=0,m=d;h<m;h++){const y=arguments[h];if(typeof y=="function"||typeof y=="object"&&y!==null){let g=c.o;g===null&&(c.o=g=new WeakMap);const f=g.get(y);f===void 0?(c=zs(),g.set(y,c)):c=f}else{let g=c.p;g===null&&(c.p=g=new Map);const f=g.get(y);f===void 0?(c=zs(),g.set(y,c)):c=f}}const p=c;let u;if(c.s===mp)u=c.v;else if(u=e.apply(null,arguments),s++,r){const h=i?.deref?.()??i;h!=null&&r(h,u)&&(u=h,s!==0&&s--),i=typeof u=="object"&&u!==null||typeof u=="function"?new ox(u):u}return p.s=mp,p.v=u,u}return a.clearCache=()=>{n=zs(),a.resetResultsCount()},a.resultsCount=()=>s,a.resetResultsCount=()=>{s=0},a}function sx(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let s=0,a=0,c,d={},p=i.pop();typeof p=="object"&&(d=p,p=i.pop()),Q0(p,`createSelector expects an output function after the inputs, but received: [${typeof p}]`);const u={...n,...d},{memoize:h,memoizeOptions:m=[],argsMemoize:y=yp,argsMemoizeOptions:g=[],devModeChecks:f={}}=u,b=hp(m),x=hp(g),E=tx(i),w=h(function(){return s++,p.apply(null,arguments)},...b);let S=!0;const T=y(function(){a++;const k=gp(E,arguments);if(c=w.apply(null,k),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:M,inputStabilityCheck:
|
|
11
|
+
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:s,secondInputs:a,stack:p})}},J0={inputStabilityCheck:"once",identityFunctionCheck:"once"};function Q0(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Z0(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function ex(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var hp=e=>Array.isArray(e)?e:[e];function tx(e){const t=Array.isArray(e[0])?e[0]:e;return ex(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function gp(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var nx=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:r}={...J0,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:K0},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:X0}}},rx=class{constructor(e){this.value=e}deref(){return this.value}},ox=typeof WeakRef<"u"?WeakRef:rx,ix=0,mp=1;function zs(){return{s:ix,v:void 0,o:null,p:null}}function yp(e,t={}){let n=zs();const{resultEqualityCheck:r}=t;let i,s=0;function a(){let c=n;const{length:d}=arguments;for(let h=0,m=d;h<m;h++){const y=arguments[h];if(typeof y=="function"||typeof y=="object"&&y!==null){let g=c.o;g===null&&(c.o=g=new WeakMap);const f=g.get(y);f===void 0?(c=zs(),g.set(y,c)):c=f}else{let g=c.p;g===null&&(c.p=g=new Map);const f=g.get(y);f===void 0?(c=zs(),g.set(y,c)):c=f}}const p=c;let u;if(c.s===mp)u=c.v;else if(u=e.apply(null,arguments),s++,r){const h=i?.deref?.()??i;h!=null&&r(h,u)&&(u=h,s!==0&&s--),i=typeof u=="object"&&u!==null||typeof u=="function"?new ox(u):u}return p.s=mp,p.v=u,u}return a.clearCache=()=>{n=zs(),a.resetResultsCount()},a.resultsCount=()=>s,a.resetResultsCount=()=>{s=0},a}function sx(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let s=0,a=0,c,d={},p=i.pop();typeof p=="object"&&(d=p,p=i.pop()),Q0(p,`createSelector expects an output function after the inputs, but received: [${typeof p}]`);const u={...n,...d},{memoize:h,memoizeOptions:m=[],argsMemoize:y=yp,argsMemoizeOptions:g=[],devModeChecks:f={}}=u,b=hp(m),x=hp(g),E=tx(i),w=h(function(){return s++,p.apply(null,arguments)},...b);let S=!0;const T=y(function(){a++;const k=gp(E,arguments);if(c=w.apply(null,k),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:M,inputStabilityCheck:B}=nx(S,f);if(M.shouldRun&&M.run(p,k,c),B.shouldRun){const z=gp(E,arguments);B.run({inputSelectorResults:k,inputSelectorResultsCopy:z},{memoize:h,memoizeOptions:b},arguments)}S&&(S=!1)}return c},...x);return Object.assign(T,{resultFunc:p,memoizedResultFunc:w,dependencies:E,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>c,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:h,argsMemoize:y})};return Object.assign(r,{withTypes:()=>r}),r}var ax=sx(yp),lx=Object.assign((e,t=ax)=>{Z0(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(s=>e[s]);return t(r,(...s)=>s.reduce((a,c,d)=>(a[n[d]]=c,a),{}))},{withTypes:()=>lx});function bp(e){return({dispatch:n,getState:r})=>i=>s=>typeof s=="function"?s(n,r,e):i(s)}var cx=bp(),dx=bp,ux=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Es:Es.apply(null,arguments)},xp=e=>e&&typeof e.match=="function";function ri(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(process.env.NODE_ENV==="production"?pt(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>Xu(r)&&r.type===e,n}function px(e){return typeof e=="function"&&"type"in e&&xp(e)}function fx(e){const t=e?`${e}`.split("/"):[],n=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
|
|
12
12
|
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${n}())\` instead of \`dispatch(${n})\`. This is necessary even if the action has no payload.`}function hx(e={}){if(process.env.NODE_ENV==="production")return()=>n=>r=>n(r);const{isActionCreator:t=px}=e;return()=>n=>r=>(t(r)&&console.warn(fx(r.type)),n(r))}function vp(e,t){let n=0;return{measureTime(r){const i=Date.now();try{return r()}finally{const s=Date.now();n+=s-i}},warnIfExceeded(){n>e&&console.warn(`${t} took ${n}ms, which is more than the warning threshold of ${e}ms.
|
|
13
13
|
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
|
|
14
14
|
It is disabled in production builds, so you don't need to worry about that.`)}}}var Sp=class ys extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,ys.prototype)}static get[Symbol.species](){return ys}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new ys(...t[0].concat(this)):new ys(...t.concat(this))}};function wp(e){return An(e)?fp(e,()=>{}):e}function Ls(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function gx(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function mx(e,t,n){const r=Cp(e,t,n);return{detectMutations(){return Ep(e,t,r,n)}}}function Cp(e,t=[],n,r="",i=new Set){const s={value:n};if(!e(n)&&!i.has(n)){i.add(n),s.children={};const a=t.length>0;for(const c in n){const d=r?r+"."+c:c;a&&t.some(u=>u instanceof RegExp?u.test(d):d===u)||(s.children[c]=Cp(e,t,n[c],d))}}return s}function Ep(e,t=[],n,r,i=!1,s=""){const a=n?n.value:void 0,c=a===r;if(i&&!c&&!Number.isNaN(r))return{wasMutated:!0,path:s};if(e(a)||e(r))return{wasMutated:!1};const d={};for(let u in n.children)d[u]=!0;for(let u in r)d[u]=!0;const p=t.length>0;for(let u in d){const h=s?s+"."+u:u;if(p&&t.some(g=>g instanceof RegExp?g.test(h):h===g))continue;const m=Ep(e,t,n.children[u],r[u],c,h);if(m.wasMutated)return m}return{wasMutated:!1}}function yx(e={}){if(process.env.NODE_ENV==="production")return()=>t=>n=>t(n);{let t=function(c,d,p,u){return JSON.stringify(c,n(d,u),p)},n=function(c,d){let p=[],u=[];return d||(d=function(h,m){return p[0]===m?"[Circular ~]":"[Circular ~."+u.slice(0,p.indexOf(m)).join(".")+"]"}),function(h,m){if(p.length>0){var y=p.indexOf(this);~y?p.splice(y+1):p.push(this),~y?u.splice(y,1/0,h):u.push(h),~p.indexOf(m)&&(m=d.call(this,h,m))}else p.push(m);return c==null?m:c.call(this,h,m)}},{isImmutable:r=gx,ignoredPaths:i,warnAfter:s=32}=e;const a=mx.bind(null,r,i);return({getState:c})=>{let d=c(),p=a(d),u;return h=>m=>{const y=vp(s,"ImmutableStateInvariantMiddleware");y.measureTime(()=>{if(d=c(),u=p.detectMutations(),p=a(d),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?pt(19):`A state mutation was detected between dispatches, in the path '${u.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const g=h(m);return y.measureTime(()=>{if(d=c(),u=p.detectMutations(),p=a(d),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?pt(20):`A state mutation was detected inside a dispatch, in the path: ${u.path||""}. Take a look at the reducer(s) handling the action ${t(m)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),y.warnIfExceeded(),g}}}}function Tp(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Jo(e)}function cc(e,t="",n=Tp,r,i=[],s){let a;if(!n(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||s?.has(e))return!1;const c=r!=null?r(e):Object.entries(e),d=i.length>0;for(const[p,u]of c){const h=t?t+"."+p:p;if(!(d&&i.some(y=>y instanceof RegExp?y.test(h):h===y))){if(!n(u))return{keyPath:h,value:u};if(typeof u=="object"&&(a=cc(u,h,n,r,i,s),a))return a}}return s&&Ap(e)&&s.add(e),!1}function Ap(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!Ap(t))return!1;return!0}function bx(e={}){if(process.env.NODE_ENV==="production")return()=>t=>n=>t(n);{const{isSerializable:t=Tp,getEntries:n,ignoredActions:r=[],ignoredActionPaths:i=["meta.arg","meta.baseQueryMeta"],ignoredPaths:s=[],warnAfter:a=32,ignoreState:c=!1,ignoreActions:d=!1,disableCache:p=!1}=e,u=!p&&WeakSet?new WeakSet:void 0;return h=>m=>y=>{if(!Xu(y))return m(y);const g=m(y),f=vp(a,"SerializableStateInvariantMiddleware");return!d&&!(r.length&&r.indexOf(y.type)!==-1)&&f.measureTime(()=>{const b=cc(y,"",t,n,i,u);if(b){const{keyPath:x,value:E}=b;console.error(`A non-serializable value was detected in an action, in the path: \`${x}\`. Value:`,E,`
|
|
@@ -16,22 +16,22 @@ Take a look at the logic that dispatched this action: `,y,`
|
|
|
16
16
|
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
|
|
17
17
|
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),c||(f.measureTime(()=>{const b=h.getState(),x=cc(b,"",t,n,s,u);if(x){const{keyPath:E,value:w}=x;console.error(`A non-serializable value was detected in the state, in the path: \`${E}\`. Value:`,w,`
|
|
18
18
|
Take a look at the reducer(s) handling this action type: ${y.type}.
|
|
19
|
-
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),f.warnIfExceeded()),g}}}function js(e){return typeof e=="boolean"}var xx=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:s=!0}=t??{};let a=new Sp;if(n&&(js(n)?a.push(cx):a.push(dx(n.extraArgument))),process.env.NODE_ENV!=="production"){if(r){let c={};js(r)||(c=r),a.unshift(yx(c))}if(i){let c={};js(i)||(c=i),a.push(bx(c))}if(s){let c={};js(s)||(c=s),a.unshift(hx(c))}}return a},vx="RTK_autoBatch",Pp=e=>t=>{setTimeout(t,e)},Sx=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,s=!1,a=!1;const c=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Pp(10):e.type==="callback"?e.queueNotification:Pp(e.timeout),p=()=>{a=!1,s&&(s=!1,c.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){const h=()=>i&&u(),m=r.subscribe(h);return c.add(u),()=>{m(),c.delete(u)}},dispatch(u){try{return i=!u?.meta?.[vx],s=!i,s&&(a||(a=!0,d(p))),r.dispatch(u)}finally{i=!0}}})},wx=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new Sp(e);return r&&i.push(Sx(typeof r=="object"?r:void 0)),i};function Cx(e){const t=xx(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:s=!0,preloadedState:a=void 0,enhancers:c=void 0}=e||{};let d;if(typeof n=="function")d=n;else if(Jo(n))d=Ku(n);else throw new Error(process.env.NODE_ENV==="production"?pt(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&r&&typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?pt(2):"`middleware` field must be a callback");let p;if(typeof r=="function"){if(p=r(t),process.env.NODE_ENV!=="production"&&!Array.isArray(p))throw new Error(process.env.NODE_ENV==="production"?pt(3):"when using a middleware builder function, an array of middleware must be returned")}else p=t();if(process.env.NODE_ENV!=="production"&&p.some(f=>typeof f!="function"))throw new Error(process.env.NODE_ENV==="production"?pt(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&s){let f=new Set;p.forEach(b=>{if(f.has(b))throw new Error(process.env.NODE_ENV==="production"?pt(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");f.add(b)})}let u=Es;i&&(u=ux({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const h=M0(...p),m=wx(h);if(process.env.NODE_ENV!=="production"&&c&&typeof c!="function")throw new Error(process.env.NODE_ENV==="production"?pt(5):"`enhancers` field must be a callback");let y=typeof c=="function"?c(m):m();if(process.env.NODE_ENV!=="production"&&!Array.isArray(y))throw new Error(process.env.NODE_ENV==="production"?pt(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&y.some(f=>typeof f!="function"))throw new Error(process.env.NODE_ENV==="production"?pt(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&p.length&&!y.includes(h)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const g=u(...y);return Yl(d,a,g)}function kp(e){const t={},n=[];let r;const i={addCase(s,a){if(process.env.NODE_ENV!=="production"){if(n.length>0)throw new Error(process.env.NODE_ENV==="production"?pt(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(process.env.NODE_ENV==="production"?pt(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const c=typeof s=="string"?s:s.type;if(!c)throw new Error(process.env.NODE_ENV==="production"?pt(28):"`builder.addCase` cannot be called with an empty action type");if(c in t)throw new Error(process.env.NODE_ENV==="production"?pt(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${c}'`);return t[c]=a,i},addAsyncThunk(s,a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?pt(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return a.pending&&(t[s.pending.type]=a.pending),a.rejected&&(t[s.rejected.type]=a.rejected),a.fulfilled&&(t[s.fulfilled.type]=a.fulfilled),a.settled&&n.push({matcher:s.settled,reducer:a.settled}),i},addMatcher(s,a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?pt(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:s,reducer:a}),i},addDefaultCase(s){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?pt(31):"`builder.addDefaultCase` can only be called once");return r=s,i}};return e(i),[t,n,r]}function Ex(e){return typeof e=="function"}function Tx(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?pt(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[n,r,i]=kp(t),s;if(Ex(e))s=()=>wp(e());else{const c=wp(e);s=()=>c}function a(c=s(),d){let p=[n[d.type],...r.filter(({matcher:u})=>u(d)).map(({reducer:u})=>u)];return p.filter(u=>!!u).length===0&&(p=[i]),p.reduce((u,h)=>{if(h)if(Qn(u)){const y=h(u,d);return y===void 0?u:y}else{if(An(u))return fp(u,m=>h(m,d));{const m=h(u,d);if(m===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return m}}return u},c)}return a.getInitialState=s,a}var Ax=(e,t)=>xp(e)?e.match(t):e(t);function Px(...e){return t=>e.some(n=>Ax(n,t))}var kx="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ox=(e=21)=>{let t="",n=e;for(;n--;)t+=kx[Math.random()*64|0];return t},Ix=["name","message","stack","code"],dc=class{constructor(e,t){this.payload=e,this.meta=t}_type},Op=class{constructor(e,t){this.payload=e,this.meta=t}_type},Nx=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of Ix)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},Ip="External signal was aborted",Tt=(()=>{function e(t,n,r){const i=ri(t+"/fulfilled",(d,p,u,h)=>({payload:d,meta:{...h||{},arg:u,requestId:p,requestStatus:"fulfilled"}})),s=ri(t+"/pending",(d,p,u)=>({payload:void 0,meta:{...u||{},arg:p,requestId:d,requestStatus:"pending"}})),a=ri(t+"/rejected",(d,p,u,h,m)=>({payload:h,error:(r&&r.serializeError||Nx)(d||"Rejected"),meta:{...m||{},arg:u,requestId:p,rejectedWithValue:!!h,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function c(d,{signal:p}={}){return(u,h,m)=>{const y=r?.idGenerator?r.idGenerator(d):Ox(),g=new AbortController;let f,b;function x(w){b=w,g.abort()}p&&(p.aborted?x(Ip):p.addEventListener("abort",()=>x(Ip),{once:!0}));const E=(async function(){let w;try{let T=r?.condition?.(d,{getState:h,extra:m});if(Fx(T)&&(T=await T),T===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const v=new Promise((k,M)=>{f=()=>{M({name:"AbortError",message:b||"Aborted"})},g.signal.addEventListener("abort",f,{once:!0})});u(s(y,d,r?.getPendingMeta?.({requestId:y,arg:d},{getState:h,extra:m}))),w=await Promise.race([v,Promise.resolve(n(d,{dispatch:u,getState:h,extra:m,requestId:y,signal:g.signal,abort:x,rejectWithValue:(k,M)=>new dc(k,M),fulfillWithValue:(k,M)=>new Op(k,M)})).then(k=>{if(k instanceof dc)throw k;return k instanceof Op?i(k.payload,y,d,k.meta):i(k,y,d)})])}catch(T){w=T instanceof dc?a(null,y,d,T.payload,T.meta):a(T,y,d)}finally{f&&g.signal.removeEventListener("abort",f)}return r&&!r.dispatchConditionRejection&&a.match(w)&&w.meta.condition||u(w),w})();return Object.assign(E,{abort:x,requestId:y,arg:d,unwrap(){return E.then(Mx)}})}}return Object.assign(c,{pending:s,rejected:a,fulfilled:i,settled:Px(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function Mx(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Fx(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Dx=Symbol.for("rtk-slice-createasyncthunk");function Bx(e,t){return`${e}/${t}`}function _x({creators:e}={}){const t=e?.asyncThunk?.[Dx];return function(r){const{name:i,reducerPath:s=i}=r;if(!i)throw new Error(process.env.NODE_ENV==="production"?pt(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&r.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const a=(typeof r.reducers=="function"?r.reducers(zx()):r.reducers)||{},c=Object.keys(a),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(w,S){const T=typeof w=="string"?w:w.type;if(!T)throw new Error(process.env.NODE_ENV==="production"?pt(12):"`context.addCase` cannot be called with an empty action type");if(T in d.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?pt(13):"`context.addCase` cannot be called with two reducers for the same action type: "+T);return d.sliceCaseReducersByType[T]=S,p},addMatcher(w,S){return d.sliceMatchers.push({matcher:w,reducer:S}),p},exposeAction(w,S){return d.actionCreators[w]=S,p},exposeCaseReducer(w,S){return d.sliceCaseReducersByName[w]=S,p}};c.forEach(w=>{const S=a[w],T={reducerName:w,type:Bx(i,w),createNotation:typeof r.reducers=="function"};jx(S)?Vx(T,S,p,t):Lx(T,S,p)});function u(){if(process.env.NODE_ENV!=="production"&&typeof r.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?pt(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[w={},S=[],T=void 0]=typeof r.extraReducers=="function"?kp(r.extraReducers):[r.extraReducers],v={...w,...d.sliceCaseReducersByType};return Tx(r.initialState,k=>{for(let M in v)k.addCase(M,v[M]);for(let M of d.sliceMatchers)k.addMatcher(M.matcher,M.reducer);for(let M of S)k.addMatcher(M.matcher,M.reducer);T&&k.addDefaultCase(T)})}const h=w=>w,m=new Map,y=new WeakMap;let g;function f(w,S){return g||(g=u()),g(w,S)}function b(){return g||(g=u()),g.getInitialState()}function x(w,S=!1){function T(k){let M=k[w];if(typeof M>"u"){if(S)M=Ls(y,T,b);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?pt(15):"selectSlice returned undefined for an uninjected slice reducer")}return M}function v(k=h){const M=Ls(m,S,()=>new WeakMap);return Ls(M,k,()=>{const _={};for(const[z,F]of Object.entries(r.selectors??{}))_[z]=$x(F,k,()=>Ls(y,k,b),S);return _})}return{reducerPath:w,getSelectors:v,get selectors(){return v(T)},selectSlice:T}}const E={name:i,reducer:f,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:b,...x(s),injectInto(w,{reducerPath:S,...T}={}){const v=S??s;return w.inject({reducerPath:v,reducer:f},T),{...E,...x(v,!0)}}};return E}}function $x(e,t,n,r){function i(s,...a){let c=t(s);if(typeof c>"u"){if(r)c=n();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?pt(16):"selectState returned undefined for an uninjected slice reducer")}return e(c,...a)}return i.unwrapped=e,i}var Np=_x();function zx(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function Lx({type:e,reducerName:t,createNotation:n},r,i){let s,a;if("reducer"in r){if(n&&!Wx(r))throw new Error(process.env.NODE_ENV==="production"?pt(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");s=r.reducer,a=r.prepare}else s=r;i.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,a?ri(e,a):ri(e))}function jx(e){return e._reducerDefinitionType==="asyncThunk"}function Wx(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Vx({type:e,reducerName:t},n,r,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?pt(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:s,fulfilled:a,pending:c,rejected:d,settled:p,options:u}=n,h=i(e,s,u);r.exposeAction(t,h),a&&r.addCase(h.fulfilled,a),c&&r.addCase(h.pending,c),d&&r.addCase(h.rejected,d),p&&r.addMatcher(h.settled,p),r.exposeCaseReducer(t,{fulfilled:a||Ws,pending:c||Ws,rejected:d||Ws,settled:p||Ws})}function Ws(){}function pt(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var uc="persist:",Mp="persist/FLUSH",pc="persist/REHYDRATE",Fp="persist/PAUSE",Dp="persist/PERSIST",Bp="persist/PURGE",_p="persist/REGISTER",Hx=-1;function oi(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?oi=function(n){return typeof n}:oi=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},oi(e)}function $p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ux(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$p(n,!0).forEach(function(r){Rx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$p(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qx(e,t,n,r){var i=r.debug,s=Ux({},n);return e&&oi(e)==="object"&&Object.keys(e).forEach(function(a){if(a!=="_persist"){if(t[a]!==n[a]){process.env.NODE_ENV!=="production"&&i&&console.log("redux-persist/stateReconciler: sub state for key `%s` modified, skipping.",a);return}s[a]=e[a]}}),process.env.NODE_ENV!=="production"&&i&&e&&oi(e)==="object"&&console.log("redux-persist/stateReconciler: rehydrated keys '".concat(Object.keys(e).join(", "),"'")),s}function Yx(e){var t=e.blacklist||null,n=e.whitelist||null,r=e.transforms||[],i=e.throttle||0,s="".concat(e.keyPrefix!==void 0?e.keyPrefix:uc).concat(e.key),a=e.storage,c;e.serialize===!1?c=function(T){return T}:typeof e.serialize=="function"?c=e.serialize:c=Gx;var d=e.writeFailHandler||null,p={},u={},h=[],m=null,y=null,g=function(T){Object.keys(T).forEach(function(v){x(v)&&p[v]!==T[v]&&h.indexOf(v)===-1&&h.push(v)}),Object.keys(p).forEach(function(v){T[v]===void 0&&x(v)&&h.indexOf(v)===-1&&p[v]!==void 0&&h.push(v)}),m===null&&(m=setInterval(f,i)),p=T};function f(){if(h.length===0){m&&clearInterval(m),m=null;return}var S=h.shift(),T=r.reduce(function(v,k){return k.in(v,S,p)},p[S]);if(T!==void 0)try{u[S]=c(T)}catch(v){console.error("redux-persist/createPersistoid: error serializing state",v)}else delete u[S];h.length===0&&b()}function b(){Object.keys(u).forEach(function(S){p[S]===void 0&&delete u[S]}),y=a.setItem(s,c(u)).catch(E)}function x(S){return!(n&&n.indexOf(S)===-1&&S!=="_persist"||t&&t.indexOf(S)!==-1)}function E(S){d&&d(S),S&&process.env.NODE_ENV!=="production"&&console.error("Error storing data",S)}var w=function(){for(;h.length!==0;)f();return y||Promise.resolve()};return{update:g,flush:w}}function Gx(e){return JSON.stringify(e)}function Kx(e){var t=e.transforms||[],n="".concat(e.keyPrefix!==void 0?e.keyPrefix:uc).concat(e.key),r=e.storage,i=e.debug,s;return e.deserialize===!1?s=function(c){return c}:typeof e.deserialize=="function"?s=e.deserialize:s=Xx,r.getItem(n).then(function(a){if(a)try{var c={},d=s(a);return Object.keys(d).forEach(function(p){c[p]=t.reduceRight(function(u,h){return h.out(u,p,d)},s(d[p]))}),c}catch(p){throw process.env.NODE_ENV!=="production"&&i&&console.log("redux-persist/getStoredState: Error restoring data ".concat(a),p),p}else return})}function Xx(e){return JSON.parse(e)}function Jx(e){var t=e.storage,n="".concat(e.keyPrefix!==void 0?e.keyPrefix:uc).concat(e.key);return t.removeItem(n,Qx)}function Qx(e){e&&process.env.NODE_ENV!=="production"&&console.error("redux-persist/purgeStoredState: Error purging data stored state",e)}function zp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function er(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zp(n,!0).forEach(function(r){Zx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zp(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ev(e,t){if(e==null)return{};var n=tv(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tv(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var nv=5e3;function rv(e,t){if(process.env.NODE_ENV!=="production"){if(!e)throw new Error("config is required for persistReducer");if(!e.key)throw new Error("key is required in persistor config");if(!e.storage)throw new Error("redux-persist: config.storage is required. Try using one of the provided storage engines `import storage from 'redux-persist/lib/storage'`")}var n=e.version!==void 0?e.version:Hx;e.debug;var r=e.stateReconciler===void 0?qx:e.stateReconciler,i=e.getStoredState||Kx,s=e.timeout!==void 0?e.timeout:nv,a=null,c=!1,d=!0,p=function(h){return h._persist.rehydrated&&a&&!d&&a.update(h),h};return function(u,h){var m=u||{},y=m._persist,g=ev(m,["_persist"]),f=g;if(h.type===Dp){var b=!1,x=function(M,_){process.env.NODE_ENV!=="production"&&b&&console.error('redux-persist: rehydrate for "'.concat(e.key,'" called after timeout.'),M,_),b||(h.rehydrate(e.key,M,_),b=!0)};if(s&&setTimeout(function(){!b&&x(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},s),d=!1,a||(a=Yx(e)),y)return er({},t(f,h),{_persist:y});if(typeof h.rehydrate!="function"||typeof h.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return h.register(e.key),i(e).then(function(k){var M=e.migrate||function(_,z){return Promise.resolve(_)};M(k,n).then(function(_){x(_)},function(_){process.env.NODE_ENV!=="production"&&_&&console.error("redux-persist: migration error",_),x(void 0,_)})},function(k){x(void 0,k)}),er({},t(f,h),{_persist:{version:n,rehydrated:!1}})}else{if(h.type===Bp)return c=!0,h.result(Jx(e)),er({},t(f,h),{_persist:y});if(h.type===Mp)return h.result(a&&a.flush()),er({},t(f,h),{_persist:y});if(h.type===Fp)d=!0;else if(h.type===pc){if(c)return er({},f,{_persist:er({},y,{rehydrated:!0})});if(h.key===e.key){var E=t(f,h),w=h.payload,S=r!==!1&&w!==void 0?r(w,u,E,e):E,T=er({},S,{_persist:er({},y,{rehydrated:!0})});return p(T)}}}if(!y)return t(u,h);var v=t(f,h);return v===f?u:p(er({},v,{_persist:y}))}}function Lp(e){return sv(e)||iv(e)||ov()}function ov(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function iv(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function sv(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function jp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jp(n,!0).forEach(function(r){av(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jp(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function av(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wp={registry:[],bootstrapped:!1},lv=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Wp,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case _p:return fc({},t,{registry:[].concat(Lp(t.registry),[n.key])});case pc:var r=t.registry.indexOf(n.key),i=Lp(t.registry);return i.splice(r,1),fc({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function cv(e,t,n){if(process.env.NODE_ENV!=="production"){var r={},i=["blacklist","whitelist","transforms","storage","keyPrefix","migrate"];i.forEach(function(p){r[p]&&console.error('redux-persist: invalid option passed to persistStore: "'.concat(p,'". You may be incorrectly passing persistConfig into persistStore, whereas it should be passed into persistReducer.'))})}var s=Yl(lv,Wp,void 0),a=function(u){s.dispatch({type:_p,key:u})},c=function(u,h,m){var y={type:pc,payload:h,err:m,key:u};e.dispatch(y),s.dispatch(y)},d=fc({},s,{purge:function(){var u=[];return e.dispatch({type:Bp,result:function(m){u.push(m)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:Mp,result:function(m){u.push(m)}}),Promise.all(u)},pause:function(){e.dispatch({type:Fp})},persist:function(){e.dispatch({type:Dp,register:a,rehydrate:c})}});return d.persist(),d}function Vp(e,t){return function(){return e.apply(t,arguments)}}const{toString:dv}=Object.prototype,{getPrototypeOf:hc}=Object,{iterator:Vs,toStringTag:Hp}=Symbol,Hs=(e=>t=>{const n=dv.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Pn=e=>(e=e.toLowerCase(),t=>Hs(t)===e),Us=e=>t=>typeof t===e,{isArray:to}=Array,no=Us("undefined");function ii(e){return e!==null&&!no(e)&&e.constructor!==null&&!no(e.constructor)&&Xt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Up=Pn("ArrayBuffer");function uv(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Up(e.buffer),t}const pv=Us("string"),Xt=Us("function"),Rp=Us("number"),si=e=>e!==null&&typeof e=="object",fv=e=>e===!0||e===!1,Rs=e=>{if(Hs(e)!=="object")return!1;const t=hc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Hp in e)&&!(Vs in e)},hv=e=>{if(!si(e)||ii(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},gv=Pn("Date"),mv=Pn("File"),yv=Pn("Blob"),bv=Pn("FileList"),xv=e=>si(e)&&Xt(e.pipe),vv=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Xt(e.append)&&((t=Hs(e))==="formdata"||t==="object"&&Xt(e.toString)&&e.toString()==="[object FormData]"))},Sv=Pn("URLSearchParams"),[wv,Cv,Ev,Tv]=["ReadableStream","Request","Response","Headers"].map(Pn),Av=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ai(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),to(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(ii(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),a=s.length;let c;for(r=0;r<a;r++)c=s[r],t.call(null,e[c],c,e)}}function qp(e,t){if(ii(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Or=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Yp=e=>!no(e)&&e!==Or;function gc(){const{caseless:e,skipUndefined:t}=Yp(this)&&this||{},n={},r=(i,s)=>{const a=e&&qp(n,s)||s;Rs(n[a])&&Rs(i)?n[a]=gc(n[a],i):Rs(i)?n[a]=gc({},i):to(i)?n[a]=i.slice():(!t||!no(i))&&(n[a]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&ai(arguments[i],r);return n}const Pv=(e,t,n,{allOwnKeys:r}={})=>(ai(t,(i,s)=>{n&&Xt(i)?e[s]=Vp(i,n):e[s]=i},{allOwnKeys:r}),e),kv=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ov=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Iv=(e,t,n,r)=>{let i,s,a;const c={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)a=i[s],(!r||r(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=n!==!1&&hc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Nv=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Mv=e=>{if(!e)return null;if(to(e))return e;let t=e.length;if(!Rp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Fv=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&hc(Uint8Array)),Dv=(e,t)=>{const r=(e&&e[Vs]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},Bv=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},_v=Pn("HTMLFormElement"),$v=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Gp=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),zv=Pn("RegExp"),Kp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ai(n,(i,s)=>{let a;(a=t(i,s,e))!==!1&&(r[s]=a||i)}),Object.defineProperties(e,r)},Lv=e=>{Kp(e,(t,n)=>{if(Xt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Xt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},jv=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return to(e)?r(e):r(String(e).split(t)),n},Wv=()=>{},Vv=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Hv(e){return!!(e&&Xt(e.append)&&e[Hp]==="FormData"&&e[Vs])}const Uv=e=>{const t=new Array(10),n=(r,i)=>{if(si(r)){if(t.indexOf(r)>=0)return;if(ii(r))return r;if(!("toJSON"in r)){t[i]=r;const s=to(r)?[]:{};return ai(r,(a,c)=>{const d=n(a,i+1);!no(d)&&(s[c]=d)}),t[i]=void 0,s}}return r};return n(e,0)},Rv=Pn("AsyncFunction"),qv=e=>e&&(si(e)||Xt(e))&&Xt(e.then)&&Xt(e.catch),Xp=((e,t)=>e?setImmediate:t?((n,r)=>(Or.addEventListener("message",({source:i,data:s})=>{i===Or&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Or.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Xt(Or.postMessage)),Yv=typeof queueMicrotask<"u"?queueMicrotask.bind(Or):typeof process<"u"&&process.nextTick||Xp,J={isArray:to,isArrayBuffer:Up,isBuffer:ii,isFormData:vv,isArrayBufferView:uv,isString:pv,isNumber:Rp,isBoolean:fv,isObject:si,isPlainObject:Rs,isEmptyObject:hv,isReadableStream:wv,isRequest:Cv,isResponse:Ev,isHeaders:Tv,isUndefined:no,isDate:gv,isFile:mv,isBlob:yv,isRegExp:zv,isFunction:Xt,isStream:xv,isURLSearchParams:Sv,isTypedArray:Fv,isFileList:bv,forEach:ai,merge:gc,extend:Pv,trim:Av,stripBOM:kv,inherits:Ov,toFlatObject:Iv,kindOf:Hs,kindOfTest:Pn,endsWith:Nv,toArray:Mv,forEachEntry:Dv,matchAll:Bv,isHTMLForm:_v,hasOwnProperty:Gp,hasOwnProp:Gp,reduceDescriptors:Kp,freezeMethods:Lv,toObjectSet:jv,toCamelCase:$v,noop:Wv,toFiniteNumber:Vv,findKey:qp,global:Or,isContextDefined:Yp,isSpecCompliantForm:Hv,toJSONObject:Uv,isAsyncFn:Rv,isThenable:qv,setImmediate:Xp,asap:Yv,isIterable:e=>e!=null&&Xt(e[Vs])};function je(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}J.inherits(je,Error,{toJSON:function(){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:J.toJSONObject(this.config),code:this.code,status:this.status}}});const Jp=je.prototype,Qp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Qp[e]={value:e}}),Object.defineProperties(je,Qp),Object.defineProperty(Jp,"isAxiosError",{value:!0}),je.from=(e,t,n,r,i,s)=>{const a=Object.create(Jp);J.toFlatObject(e,a,function(u){return u!==Error.prototype},p=>p!=="isAxiosError");const c=e&&e.message?e.message:"Error",d=t==null&&e?e.code:t;return je.call(a,c,d,n,r,i),e&&a.cause==null&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",s&&Object.assign(a,s),a};const Gv=null;function mc(e){return J.isPlainObject(e)||J.isArray(e)}function Zp(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function ef(e,t,n){return e?e.concat(t).map(function(i,s){return i=Zp(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function Kv(e){return J.isArray(e)&&!e.some(mc)}const Xv=J.toFlatObject(J,{},null,function(t){return/^is[A-Z]/.test(t)});function qs(e,t,n){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=J.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,b){return!J.isUndefined(b[f])});const r=n.metaTokens,i=n.visitor||u,s=n.dots,a=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(i))throw new TypeError("visitor must be a function");function p(g){if(g===null)return"";if(J.isDate(g))return g.toISOString();if(J.isBoolean(g))return g.toString();if(!d&&J.isBlob(g))throw new je("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(g)||J.isTypedArray(g)?d&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,f,b){let x=g;if(g&&!b&&typeof g=="object"){if(J.endsWith(f,"{}"))f=r?f:f.slice(0,-2),g=JSON.stringify(g);else if(J.isArray(g)&&Kv(g)||(J.isFileList(g)||J.endsWith(f,"[]"))&&(x=J.toArray(g)))return f=Zp(f),x.forEach(function(w,S){!(J.isUndefined(w)||w===null)&&t.append(a===!0?ef([f],S,s):a===null?f:f+"[]",p(w))}),!1}return mc(g)?!0:(t.append(ef(b,f,s),p(g)),!1)}const h=[],m=Object.assign(Xv,{defaultVisitor:u,convertValue:p,isVisitable:mc});function y(g,f){if(!J.isUndefined(g)){if(h.indexOf(g)!==-1)throw Error("Circular reference detected in "+f.join("."));h.push(g),J.forEach(g,function(x,E){(!(J.isUndefined(x)||x===null)&&i.call(t,x,J.isString(E)?E.trim():E,f,m))===!0&&y(x,f?f.concat(E):[E])}),h.pop()}}if(!J.isObject(e))throw new TypeError("data must be an object");return y(e),t}function tf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function yc(e,t){this._pairs=[],e&&qs(e,this,t)}const nf=yc.prototype;nf.append=function(t,n){this._pairs.push([t,n])},nf.toString=function(t){const n=t?function(r){return t.call(this,r,tf)}:tf;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Jv(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rf(e,t,n){if(!t)return e;const r=n&&n.encode||Jv;J.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let s;if(i?s=i(t,n):s=J.isURLSearchParams(t)?t.toString():new yc(t,n).toString(r),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class of{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){J.forEach(this.handlers,function(r){r!==null&&t(r)})}}const sf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Qv={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:yc,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},bc=typeof window<"u"&&typeof document<"u",xc=typeof navigator=="object"&&navigator||void 0,Zv=bc&&(!xc||["ReactNative","NativeScript","NS"].indexOf(xc.product)<0),eS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",tS=bc&&window.location.href||"http://localhost",jt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:bc,hasStandardBrowserEnv:Zv,hasStandardBrowserWebWorkerEnv:eS,navigator:xc,origin:tS},Symbol.toStringTag,{value:"Module"})),...Qv};function nS(e,t){return qs(e,new jt.classes.URLSearchParams,{visitor:function(n,r,i,s){return jt.isNode&&J.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function rS(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function oS(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],t[s]=e[s];return t}function af(e){function t(n,r,i,s){let a=n[s++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),d=s>=n.length;return a=!a&&J.isArray(i)?i.length:a,d?(J.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!c):((!i[a]||!J.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],s)&&J.isArray(i[a])&&(i[a]=oS(i[a])),!c)}if(J.isFormData(e)&&J.isFunction(e.entries)){const n={};return J.forEachEntry(e,(r,i)=>{t(rS(r),i,n,0)}),n}return null}function iS(e,t,n){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const li={transitional:sf,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=J.isObject(t);if(s&&J.isHTMLForm(t)&&(t=new FormData(t)),J.isFormData(t))return i?JSON.stringify(af(t)):t;if(J.isArrayBuffer(t)||J.isBuffer(t)||J.isStream(t)||J.isFile(t)||J.isBlob(t)||J.isReadableStream(t))return t;if(J.isArrayBufferView(t))return t.buffer;if(J.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return nS(t,this.formSerializer).toString();if((c=J.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return qs(c?{"files[]":t}:t,d&&new d,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),iS(t)):t}],transformResponse:[function(t){const n=this.transitional||li.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(J.isResponse(t)||J.isReadableStream(t))return t;if(t&&J.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(c){if(a)throw c.name==="SyntaxError"?je.from(c,je.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:jt.classes.FormData,Blob:jt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],e=>{li.headers[e]={}});const sS=J.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"]),aS=e=>{const t={};let n,r,i;return e&&e.split(`
|
|
20
|
-
`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&sS[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},lf=Symbol("internals");function ci(e){return e&&String(e).trim().toLowerCase()}function Ys(e){return e===!1||e==null?e:
|
|
21
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[lf]=this[lf]={accessors:{}}).accessors,i=this.prototype;function s(a){const c=ci(a);r[c]||(uS(i,a),r[c]=!0)}return J.isArray(t)?t.forEach(s):s(t),this}};Jt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),J.reduceDescriptors(Jt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),J.freezeMethods(Jt);function Sc(e,t){const n=this||li,r=t||n,i=Jt.from(r.headers);let s=r.data;return J.forEach(e,function(c){s=c.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function cf(e){return!!(e&&e.__CANCEL__)}function ro(e,t,n){je.call(this,e??"canceled",je.ERR_CANCELED,t,n),this.name="CanceledError"}J.inherits(ro,je,{__CANCEL__:!0});function df(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new je("Request failed with status code "+n.status,[je.ERR_BAD_REQUEST,je.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function pS(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function fS(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,a;return t=t!==void 0?t:1e3,function(d){const p=Date.now(),u=r[s];a||(a=p),n[i]=d,r[i]=p;let h=s,m=0;for(;h!==i;)m+=n[h++],h=h%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),p-a<t)return;const y=u&&p-u;return y?Math.round(m*1e3/y):void 0}}function hS(e,t){let n=0,r=1e3/t,i,s;const a=(p,u=Date.now())=>{n=u,i=null,s&&(clearTimeout(s),s=null),e(...p)};return[(...p)=>{const u=Date.now(),h=u-n;h>=r?a(p,u):(i=p,s||(s=setTimeout(()=>{s=null,a(i)},r-h)))},()=>i&&a(i)]}const Gs=(e,t,n=3)=>{let r=0;const i=fS(50,250);return hS(s=>{const a=s.loaded,c=s.lengthComputable?s.total:void 0,d=a-r,p=i(d),u=a<=c;r=a;const h={loaded:a,total:c,progress:c?a/c:void 0,bytes:d,rate:p||void 0,estimated:p&&c&&u?(c-a)/p:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(h)},n)},uf=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},pf=e=>(...t)=>J.asap(()=>e(...t)),gS=jt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,jt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(jt.origin),jt.navigator&&/(msie|trident)/i.test(jt.navigator.userAgent)):()=>!0,mS=jt.hasStandardBrowserEnv?{write(e,t,n,r,i,s,a){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];J.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),J.isString(r)&&c.push(`path=${r}`),J.isString(i)&&c.push(`domain=${i}`),s===!0&&c.push("secure"),J.isString(a)&&c.push(`SameSite=${a}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function yS(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function bS(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ff(e,t,n){let r=!yS(t);return e&&(r||n==!1)?bS(e,t):t}const hf=e=>e instanceof Jt?{...e}:e;function Ir(e,t){t=t||{};const n={};function r(p,u,h,m){return J.isPlainObject(p)&&J.isPlainObject(u)?J.merge.call({caseless:m},p,u):J.isPlainObject(u)?J.merge({},u):J.isArray(u)?u.slice():u}function i(p,u,h,m){if(J.isUndefined(u)){if(!J.isUndefined(p))return r(void 0,p,h,m)}else return r(p,u,h,m)}function s(p,u){if(!J.isUndefined(u))return r(void 0,u)}function a(p,u){if(J.isUndefined(u)){if(!J.isUndefined(p))return r(void 0,p)}else return r(void 0,u)}function c(p,u,h){if(h in t)return r(p,u);if(h in e)return r(void 0,p)}const d={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(p,u,h)=>i(hf(p),hf(u),h,!0)};return J.forEach(Object.keys({...e,...t}),function(u){const h=d[u]||i,m=h(e[u],t[u],u);J.isUndefined(m)&&h!==c||(n[u]=m)}),n}const gf=e=>{const t=Ir({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:c}=t;if(t.headers=a=Jt.from(a),t.url=rf(ff(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),J.isFormData(n)){if(jt.hasStandardBrowserEnv||jt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(J.isFunction(n.getHeaders)){const d=n.getHeaders(),p=["content-type","content-length"];Object.entries(d).forEach(([u,h])=>{p.includes(u.toLowerCase())&&a.set(u,h)})}}if(jt.hasStandardBrowserEnv&&(r&&J.isFunction(r)&&(r=r(t)),r||r!==!1&&gS(t.url))){const d=i&&s&&mS.read(s);d&&a.set(i,d)}return t},xS=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const i=gf(e);let s=i.data;const a=Jt.from(i.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:p}=i,u,h,m,y,g;function f(){y&&y(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(i.method.toUpperCase(),i.url,!0),b.timeout=i.timeout;function x(){if(!b)return;const w=Jt.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),T={data:!c||c==="text"||c==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:w,config:e,request:b};df(function(k){n(k),f()},function(k){r(k),f()},T),b=null}"onloadend"in b?b.onloadend=x:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(x)},b.onabort=function(){b&&(r(new je("Request aborted",je.ECONNABORTED,e,b)),b=null)},b.onerror=function(S){const T=S&&S.message?S.message:"Network Error",v=new je(T,je.ERR_NETWORK,e,b);v.event=S||null,r(v),b=null},b.ontimeout=function(){let S=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const T=i.transitional||sf;i.timeoutErrorMessage&&(S=i.timeoutErrorMessage),r(new je(S,T.clarifyTimeoutError?je.ETIMEDOUT:je.ECONNABORTED,e,b)),b=null},s===void 0&&a.setContentType(null),"setRequestHeader"in b&&J.forEach(a.toJSON(),function(S,T){b.setRequestHeader(T,S)}),J.isUndefined(i.withCredentials)||(b.withCredentials=!!i.withCredentials),c&&c!=="json"&&(b.responseType=i.responseType),p&&([m,g]=Gs(p,!0),b.addEventListener("progress",m)),d&&b.upload&&([h,y]=Gs(d),b.upload.addEventListener("progress",h),b.upload.addEventListener("loadend",y)),(i.cancelToken||i.signal)&&(u=w=>{b&&(r(!w||w.type?new ro(null,e,b):w),b.abort(),b=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const E=pS(i.url);if(E&&jt.protocols.indexOf(E)===-1){r(new je("Unsupported protocol "+E+":",je.ERR_BAD_REQUEST,e));return}b.send(s||null)})},vS=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const s=function(p){if(!i){i=!0,c();const u=p instanceof Error?p:this.reason;r.abort(u instanceof je?u:new ro(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,s(new je(`timeout ${t} of ms exceeded`,je.ETIMEDOUT))},t);const c=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(s):p.removeEventListener("abort",s)}),e=null)};e.forEach(p=>p.addEventListener("abort",s));const{signal:d}=r;return d.unsubscribe=()=>J.asap(c),d}},SS=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},wS=async function*(e,t){for await(const n of CS(e))yield*SS(n,t)},CS=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},mf=(e,t,n,r)=>{const i=wS(e,t);let s=0,a,c=d=>{a||(a=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:p,value:u}=await i.next();if(p){c(),d.close();return}let h=u.byteLength;if(n){let m=s+=h;n(m)}d.enqueue(new Uint8Array(u))}catch(p){throw c(p),p}},cancel(d){return c(d),i.return()}},{highWaterMark:2})},yf=64*1024,{isFunction:Ks}=J,ES=(({Request:e,Response:t})=>({Request:e,Response:t}))(J.global),{ReadableStream:bf,TextEncoder:xf}=J.global,vf=(e,...t)=>{try{return!!e(...t)}catch{return!1}},TS=e=>{e=J.merge.call({skipUndefined:!0},ES,e);const{fetch:t,Request:n,Response:r}=e,i=t?Ks(t):typeof fetch=="function",s=Ks(n),a=Ks(r);if(!i)return!1;const c=i&&Ks(bf),d=i&&(typeof xf=="function"?(g=>f=>g.encode(f))(new xf):async g=>new Uint8Array(await new n(g).arrayBuffer())),p=s&&c&&vf(()=>{let g=!1;const f=new n(jt.origin,{body:new bf,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!f}),u=a&&c&&vf(()=>J.isReadableStream(new r("").body)),h={stream:u&&(g=>g.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!h[g]&&(h[g]=(f,b)=>{let x=f&&f[g];if(x)return x.call(f);throw new je(`Response type '${g}' is not supported`,je.ERR_NOT_SUPPORT,b)})});const m=async g=>{if(g==null)return 0;if(J.isBlob(g))return g.size;if(J.isSpecCompliantForm(g))return(await new n(jt.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(J.isArrayBufferView(g)||J.isArrayBuffer(g))return g.byteLength;if(J.isURLSearchParams(g)&&(g=g+""),J.isString(g))return(await d(g)).byteLength},y=async(g,f)=>{const b=J.toFiniteNumber(g.getContentLength());return b??m(f)};return async g=>{let{url:f,method:b,data:x,signal:E,cancelToken:w,timeout:S,onDownloadProgress:T,onUploadProgress:v,responseType:k,headers:M,withCredentials:_="same-origin",fetchOptions:z}=gf(g),F=t||fetch;k=k?(k+"").toLowerCase():"text";let C=vS([E,w&&w.toAbortSignal()],S),I=null;const $=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let D;try{if(v&&p&&b!=="get"&&b!=="head"&&(D=await y(M,x))!==0){let O=new n(f,{method:"POST",body:x,duplex:"half"}),j;if(J.isFormData(x)&&(j=O.headers.get("content-type"))&&M.setContentType(j),O.body){const[H,G]=uf(D,Gs(pf(v)));x=mf(O.body,yf,H,G)}}J.isString(_)||(_=_?"include":"omit");const L=s&&"credentials"in n.prototype,V={...z,signal:C,method:b.toUpperCase(),headers:M.normalize().toJSON(),body:x,duplex:"half",credentials:L?_:void 0};I=s&&new n(f,V);let Y=await(s?F(I,z):F(f,V));const U=u&&(k==="stream"||k==="response");if(u&&(T||U&&$)){const O={};["status","statusText","headers"].forEach(X=>{O[X]=Y[X]});const j=J.toFiniteNumber(Y.headers.get("content-length")),[H,G]=T&&uf(j,Gs(pf(T),!0))||[];Y=new r(mf(Y.body,yf,H,()=>{G&&G(),$&&$()}),O)}k=k||"text";let B=await h[J.findKey(h,k)||"text"](Y,g);return!U&&$&&$(),await new Promise((O,j)=>{df(O,j,{data:B,headers:Jt.from(Y.headers),status:Y.status,statusText:Y.statusText,config:g,request:I})})}catch(L){throw $&&$(),L&&L.name==="TypeError"&&/Load failed|fetch/i.test(L.message)?Object.assign(new je("Network Error",je.ERR_NETWORK,g,I),{cause:L.cause||L}):je.from(L,L&&L.code,g,I)}}},AS=new Map,Sf=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,s=[r,i,n];let a=s.length,c=a,d,p,u=AS;for(;c--;)d=s[c],p=u.get(d),p===void 0&&u.set(d,p=c?new Map:TS(t)),u=p;return p};Sf();const wc={http:Gv,xhr:xS,fetch:{get:Sf}};J.forEach(wc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const wf=e=>`- ${e}`,PS=e=>J.isFunction(e)||e===null||e===!1;function kS(e,t){e=J.isArray(e)?e:[e];const{length:n}=e;let r,i;const s={};for(let a=0;a<n;a++){r=e[a];let c;if(i=r,!PS(r)&&(i=wc[(c=String(r)).toLowerCase()],i===void 0))throw new je(`Unknown adapter '${c}'`);if(i&&(J.isFunction(i)||(i=i.get(t))))break;s[c||"#"+a]=i}if(!i){const a=Object.entries(s).map(([d,p])=>`adapter ${d} `+(p===!1?"is not supported by the environment":"is not available in the build"));let c=n?a.length>1?`since :
|
|
19
|
+
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),f.warnIfExceeded()),g}}}function js(e){return typeof e=="boolean"}var xx=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:s=!0}=t??{};let a=new Sp;if(n&&(js(n)?a.push(cx):a.push(dx(n.extraArgument))),process.env.NODE_ENV!=="production"){if(r){let c={};js(r)||(c=r),a.unshift(yx(c))}if(i){let c={};js(i)||(c=i),a.push(bx(c))}if(s){let c={};js(s)||(c=s),a.unshift(hx(c))}}return a},vx="RTK_autoBatch",Pp=e=>t=>{setTimeout(t,e)},Sx=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,s=!1,a=!1;const c=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Pp(10):e.type==="callback"?e.queueNotification:Pp(e.timeout),p=()=>{a=!1,s&&(s=!1,c.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){const h=()=>i&&u(),m=r.subscribe(h);return c.add(u),()=>{m(),c.delete(u)}},dispatch(u){try{return i=!u?.meta?.[vx],s=!i,s&&(a||(a=!0,d(p))),r.dispatch(u)}finally{i=!0}}})},wx=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new Sp(e);return r&&i.push(Sx(typeof r=="object"?r:void 0)),i};function Cx(e){const t=xx(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:s=!0,preloadedState:a=void 0,enhancers:c=void 0}=e||{};let d;if(typeof n=="function")d=n;else if(Jo(n))d=Ku(n);else throw new Error(process.env.NODE_ENV==="production"?pt(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&r&&typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?pt(2):"`middleware` field must be a callback");let p;if(typeof r=="function"){if(p=r(t),process.env.NODE_ENV!=="production"&&!Array.isArray(p))throw new Error(process.env.NODE_ENV==="production"?pt(3):"when using a middleware builder function, an array of middleware must be returned")}else p=t();if(process.env.NODE_ENV!=="production"&&p.some(f=>typeof f!="function"))throw new Error(process.env.NODE_ENV==="production"?pt(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&s){let f=new Set;p.forEach(b=>{if(f.has(b))throw new Error(process.env.NODE_ENV==="production"?pt(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");f.add(b)})}let u=Es;i&&(u=ux({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const h=M0(...p),m=wx(h);if(process.env.NODE_ENV!=="production"&&c&&typeof c!="function")throw new Error(process.env.NODE_ENV==="production"?pt(5):"`enhancers` field must be a callback");let y=typeof c=="function"?c(m):m();if(process.env.NODE_ENV!=="production"&&!Array.isArray(y))throw new Error(process.env.NODE_ENV==="production"?pt(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&y.some(f=>typeof f!="function"))throw new Error(process.env.NODE_ENV==="production"?pt(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&p.length&&!y.includes(h)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const g=u(...y);return Yl(d,a,g)}function kp(e){const t={},n=[];let r;const i={addCase(s,a){if(process.env.NODE_ENV!=="production"){if(n.length>0)throw new Error(process.env.NODE_ENV==="production"?pt(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(process.env.NODE_ENV==="production"?pt(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const c=typeof s=="string"?s:s.type;if(!c)throw new Error(process.env.NODE_ENV==="production"?pt(28):"`builder.addCase` cannot be called with an empty action type");if(c in t)throw new Error(process.env.NODE_ENV==="production"?pt(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${c}'`);return t[c]=a,i},addAsyncThunk(s,a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?pt(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return a.pending&&(t[s.pending.type]=a.pending),a.rejected&&(t[s.rejected.type]=a.rejected),a.fulfilled&&(t[s.fulfilled.type]=a.fulfilled),a.settled&&n.push({matcher:s.settled,reducer:a.settled}),i},addMatcher(s,a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?pt(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:s,reducer:a}),i},addDefaultCase(s){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?pt(31):"`builder.addDefaultCase` can only be called once");return r=s,i}};return e(i),[t,n,r]}function Ex(e){return typeof e=="function"}function Tx(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?pt(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[n,r,i]=kp(t),s;if(Ex(e))s=()=>wp(e());else{const c=wp(e);s=()=>c}function a(c=s(),d){let p=[n[d.type],...r.filter(({matcher:u})=>u(d)).map(({reducer:u})=>u)];return p.filter(u=>!!u).length===0&&(p=[i]),p.reduce((u,h)=>{if(h)if(Qn(u)){const y=h(u,d);return y===void 0?u:y}else{if(An(u))return fp(u,m=>h(m,d));{const m=h(u,d);if(m===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return m}}return u},c)}return a.getInitialState=s,a}var Ax=(e,t)=>xp(e)?e.match(t):e(t);function Px(...e){return t=>e.some(n=>Ax(n,t))}var kx="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ox=(e=21)=>{let t="",n=e;for(;n--;)t+=kx[Math.random()*64|0];return t},Ix=["name","message","stack","code"],dc=class{constructor(e,t){this.payload=e,this.meta=t}_type},Op=class{constructor(e,t){this.payload=e,this.meta=t}_type},Nx=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of Ix)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},Ip="External signal was aborted",Tt=(()=>{function e(t,n,r){const i=ri(t+"/fulfilled",(d,p,u,h)=>({payload:d,meta:{...h||{},arg:u,requestId:p,requestStatus:"fulfilled"}})),s=ri(t+"/pending",(d,p,u)=>({payload:void 0,meta:{...u||{},arg:p,requestId:d,requestStatus:"pending"}})),a=ri(t+"/rejected",(d,p,u,h,m)=>({payload:h,error:(r&&r.serializeError||Nx)(d||"Rejected"),meta:{...m||{},arg:u,requestId:p,rejectedWithValue:!!h,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function c(d,{signal:p}={}){return(u,h,m)=>{const y=r?.idGenerator?r.idGenerator(d):Ox(),g=new AbortController;let f,b;function x(w){b=w,g.abort()}p&&(p.aborted?x(Ip):p.addEventListener("abort",()=>x(Ip),{once:!0}));const E=(async function(){let w;try{let T=r?.condition?.(d,{getState:h,extra:m});if(Fx(T)&&(T=await T),T===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const v=new Promise((k,M)=>{f=()=>{M({name:"AbortError",message:b||"Aborted"})},g.signal.addEventListener("abort",f,{once:!0})});u(s(y,d,r?.getPendingMeta?.({requestId:y,arg:d},{getState:h,extra:m}))),w=await Promise.race([v,Promise.resolve(n(d,{dispatch:u,getState:h,extra:m,requestId:y,signal:g.signal,abort:x,rejectWithValue:(k,M)=>new dc(k,M),fulfillWithValue:(k,M)=>new Op(k,M)})).then(k=>{if(k instanceof dc)throw k;return k instanceof Op?i(k.payload,y,d,k.meta):i(k,y,d)})])}catch(T){w=T instanceof dc?a(null,y,d,T.payload,T.meta):a(T,y,d)}finally{f&&g.signal.removeEventListener("abort",f)}return r&&!r.dispatchConditionRejection&&a.match(w)&&w.meta.condition||u(w),w})();return Object.assign(E,{abort:x,requestId:y,arg:d,unwrap(){return E.then(Mx)}})}}return Object.assign(c,{pending:s,rejected:a,fulfilled:i,settled:Px(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function Mx(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Fx(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Dx=Symbol.for("rtk-slice-createasyncthunk");function Bx(e,t){return`${e}/${t}`}function _x({creators:e}={}){const t=e?.asyncThunk?.[Dx];return function(r){const{name:i,reducerPath:s=i}=r;if(!i)throw new Error(process.env.NODE_ENV==="production"?pt(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&r.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const a=(typeof r.reducers=="function"?r.reducers(zx()):r.reducers)||{},c=Object.keys(a),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(w,S){const T=typeof w=="string"?w:w.type;if(!T)throw new Error(process.env.NODE_ENV==="production"?pt(12):"`context.addCase` cannot be called with an empty action type");if(T in d.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?pt(13):"`context.addCase` cannot be called with two reducers for the same action type: "+T);return d.sliceCaseReducersByType[T]=S,p},addMatcher(w,S){return d.sliceMatchers.push({matcher:w,reducer:S}),p},exposeAction(w,S){return d.actionCreators[w]=S,p},exposeCaseReducer(w,S){return d.sliceCaseReducersByName[w]=S,p}};c.forEach(w=>{const S=a[w],T={reducerName:w,type:Bx(i,w),createNotation:typeof r.reducers=="function"};jx(S)?Vx(T,S,p,t):Lx(T,S,p)});function u(){if(process.env.NODE_ENV!=="production"&&typeof r.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?pt(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[w={},S=[],T=void 0]=typeof r.extraReducers=="function"?kp(r.extraReducers):[r.extraReducers],v={...w,...d.sliceCaseReducersByType};return Tx(r.initialState,k=>{for(let M in v)k.addCase(M,v[M]);for(let M of d.sliceMatchers)k.addMatcher(M.matcher,M.reducer);for(let M of S)k.addMatcher(M.matcher,M.reducer);T&&k.addDefaultCase(T)})}const h=w=>w,m=new Map,y=new WeakMap;let g;function f(w,S){return g||(g=u()),g(w,S)}function b(){return g||(g=u()),g.getInitialState()}function x(w,S=!1){function T(k){let M=k[w];if(typeof M>"u"){if(S)M=Ls(y,T,b);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?pt(15):"selectSlice returned undefined for an uninjected slice reducer")}return M}function v(k=h){const M=Ls(m,S,()=>new WeakMap);return Ls(M,k,()=>{const B={};for(const[z,$]of Object.entries(r.selectors??{}))B[z]=$x($,k,()=>Ls(y,k,b),S);return B})}return{reducerPath:w,getSelectors:v,get selectors(){return v(T)},selectSlice:T}}const E={name:i,reducer:f,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:b,...x(s),injectInto(w,{reducerPath:S,...T}={}){const v=S??s;return w.inject({reducerPath:v,reducer:f},T),{...E,...x(v,!0)}}};return E}}function $x(e,t,n,r){function i(s,...a){let c=t(s);if(typeof c>"u"){if(r)c=n();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?pt(16):"selectState returned undefined for an uninjected slice reducer")}return e(c,...a)}return i.unwrapped=e,i}var Np=_x();function zx(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function Lx({type:e,reducerName:t,createNotation:n},r,i){let s,a;if("reducer"in r){if(n&&!Wx(r))throw new Error(process.env.NODE_ENV==="production"?pt(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");s=r.reducer,a=r.prepare}else s=r;i.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,a?ri(e,a):ri(e))}function jx(e){return e._reducerDefinitionType==="asyncThunk"}function Wx(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Vx({type:e,reducerName:t},n,r,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?pt(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:s,fulfilled:a,pending:c,rejected:d,settled:p,options:u}=n,h=i(e,s,u);r.exposeAction(t,h),a&&r.addCase(h.fulfilled,a),c&&r.addCase(h.pending,c),d&&r.addCase(h.rejected,d),p&&r.addMatcher(h.settled,p),r.exposeCaseReducer(t,{fulfilled:a||Ws,pending:c||Ws,rejected:d||Ws,settled:p||Ws})}function Ws(){}function pt(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var uc="persist:",Mp="persist/FLUSH",pc="persist/REHYDRATE",Fp="persist/PAUSE",Dp="persist/PERSIST",Bp="persist/PURGE",_p="persist/REGISTER",Hx=-1;function oi(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?oi=function(n){return typeof n}:oi=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},oi(e)}function $p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ux(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$p(n,!0).forEach(function(r){Rx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$p(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qx(e,t,n,r){var i=r.debug,s=Ux({},n);return e&&oi(e)==="object"&&Object.keys(e).forEach(function(a){if(a!=="_persist"){if(t[a]!==n[a]){process.env.NODE_ENV!=="production"&&i&&console.log("redux-persist/stateReconciler: sub state for key `%s` modified, skipping.",a);return}s[a]=e[a]}}),process.env.NODE_ENV!=="production"&&i&&e&&oi(e)==="object"&&console.log("redux-persist/stateReconciler: rehydrated keys '".concat(Object.keys(e).join(", "),"'")),s}function Yx(e){var t=e.blacklist||null,n=e.whitelist||null,r=e.transforms||[],i=e.throttle||0,s="".concat(e.keyPrefix!==void 0?e.keyPrefix:uc).concat(e.key),a=e.storage,c;e.serialize===!1?c=function(T){return T}:typeof e.serialize=="function"?c=e.serialize:c=Gx;var d=e.writeFailHandler||null,p={},u={},h=[],m=null,y=null,g=function(T){Object.keys(T).forEach(function(v){x(v)&&p[v]!==T[v]&&h.indexOf(v)===-1&&h.push(v)}),Object.keys(p).forEach(function(v){T[v]===void 0&&x(v)&&h.indexOf(v)===-1&&p[v]!==void 0&&h.push(v)}),m===null&&(m=setInterval(f,i)),p=T};function f(){if(h.length===0){m&&clearInterval(m),m=null;return}var S=h.shift(),T=r.reduce(function(v,k){return k.in(v,S,p)},p[S]);if(T!==void 0)try{u[S]=c(T)}catch(v){console.error("redux-persist/createPersistoid: error serializing state",v)}else delete u[S];h.length===0&&b()}function b(){Object.keys(u).forEach(function(S){p[S]===void 0&&delete u[S]}),y=a.setItem(s,c(u)).catch(E)}function x(S){return!(n&&n.indexOf(S)===-1&&S!=="_persist"||t&&t.indexOf(S)!==-1)}function E(S){d&&d(S),S&&process.env.NODE_ENV!=="production"&&console.error("Error storing data",S)}var w=function(){for(;h.length!==0;)f();return y||Promise.resolve()};return{update:g,flush:w}}function Gx(e){return JSON.stringify(e)}function Kx(e){var t=e.transforms||[],n="".concat(e.keyPrefix!==void 0?e.keyPrefix:uc).concat(e.key),r=e.storage,i=e.debug,s;return e.deserialize===!1?s=function(c){return c}:typeof e.deserialize=="function"?s=e.deserialize:s=Xx,r.getItem(n).then(function(a){if(a)try{var c={},d=s(a);return Object.keys(d).forEach(function(p){c[p]=t.reduceRight(function(u,h){return h.out(u,p,d)},s(d[p]))}),c}catch(p){throw process.env.NODE_ENV!=="production"&&i&&console.log("redux-persist/getStoredState: Error restoring data ".concat(a),p),p}else return})}function Xx(e){return JSON.parse(e)}function Jx(e){var t=e.storage,n="".concat(e.keyPrefix!==void 0?e.keyPrefix:uc).concat(e.key);return t.removeItem(n,Qx)}function Qx(e){e&&process.env.NODE_ENV!=="production"&&console.error("redux-persist/purgeStoredState: Error purging data stored state",e)}function zp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function er(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zp(n,!0).forEach(function(r){Zx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zp(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ev(e,t){if(e==null)return{};var n=tv(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tv(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var nv=5e3;function rv(e,t){if(process.env.NODE_ENV!=="production"){if(!e)throw new Error("config is required for persistReducer");if(!e.key)throw new Error("key is required in persistor config");if(!e.storage)throw new Error("redux-persist: config.storage is required. Try using one of the provided storage engines `import storage from 'redux-persist/lib/storage'`")}var n=e.version!==void 0?e.version:Hx;e.debug;var r=e.stateReconciler===void 0?qx:e.stateReconciler,i=e.getStoredState||Kx,s=e.timeout!==void 0?e.timeout:nv,a=null,c=!1,d=!0,p=function(h){return h._persist.rehydrated&&a&&!d&&a.update(h),h};return function(u,h){var m=u||{},y=m._persist,g=ev(m,["_persist"]),f=g;if(h.type===Dp){var b=!1,x=function(M,B){process.env.NODE_ENV!=="production"&&b&&console.error('redux-persist: rehydrate for "'.concat(e.key,'" called after timeout.'),M,B),b||(h.rehydrate(e.key,M,B),b=!0)};if(s&&setTimeout(function(){!b&&x(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},s),d=!1,a||(a=Yx(e)),y)return er({},t(f,h),{_persist:y});if(typeof h.rehydrate!="function"||typeof h.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return h.register(e.key),i(e).then(function(k){var M=e.migrate||function(B,z){return Promise.resolve(B)};M(k,n).then(function(B){x(B)},function(B){process.env.NODE_ENV!=="production"&&B&&console.error("redux-persist: migration error",B),x(void 0,B)})},function(k){x(void 0,k)}),er({},t(f,h),{_persist:{version:n,rehydrated:!1}})}else{if(h.type===Bp)return c=!0,h.result(Jx(e)),er({},t(f,h),{_persist:y});if(h.type===Mp)return h.result(a&&a.flush()),er({},t(f,h),{_persist:y});if(h.type===Fp)d=!0;else if(h.type===pc){if(c)return er({},f,{_persist:er({},y,{rehydrated:!0})});if(h.key===e.key){var E=t(f,h),w=h.payload,S=r!==!1&&w!==void 0?r(w,u,E,e):E,T=er({},S,{_persist:er({},y,{rehydrated:!0})});return p(T)}}}if(!y)return t(u,h);var v=t(f,h);return v===f?u:p(er({},v,{_persist:y}))}}function Lp(e){return sv(e)||iv(e)||ov()}function ov(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function iv(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function sv(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function jp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jp(n,!0).forEach(function(r){av(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jp(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function av(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wp={registry:[],bootstrapped:!1},lv=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Wp,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case _p:return fc({},t,{registry:[].concat(Lp(t.registry),[n.key])});case pc:var r=t.registry.indexOf(n.key),i=Lp(t.registry);return i.splice(r,1),fc({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function cv(e,t,n){if(process.env.NODE_ENV!=="production"){var r={},i=["blacklist","whitelist","transforms","storage","keyPrefix","migrate"];i.forEach(function(p){r[p]&&console.error('redux-persist: invalid option passed to persistStore: "'.concat(p,'". You may be incorrectly passing persistConfig into persistStore, whereas it should be passed into persistReducer.'))})}var s=Yl(lv,Wp,void 0),a=function(u){s.dispatch({type:_p,key:u})},c=function(u,h,m){var y={type:pc,payload:h,err:m,key:u};e.dispatch(y),s.dispatch(y)},d=fc({},s,{purge:function(){var u=[];return e.dispatch({type:Bp,result:function(m){u.push(m)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:Mp,result:function(m){u.push(m)}}),Promise.all(u)},pause:function(){e.dispatch({type:Fp})},persist:function(){e.dispatch({type:Dp,register:a,rehydrate:c})}});return d.persist(),d}function Vp(e,t){return function(){return e.apply(t,arguments)}}const{toString:dv}=Object.prototype,{getPrototypeOf:hc}=Object,{iterator:Vs,toStringTag:Hp}=Symbol,Hs=(e=>t=>{const n=dv.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Pn=e=>(e=e.toLowerCase(),t=>Hs(t)===e),Us=e=>t=>typeof t===e,{isArray:to}=Array,no=Us("undefined");function ii(e){return e!==null&&!no(e)&&e.constructor!==null&&!no(e.constructor)&&Xt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Up=Pn("ArrayBuffer");function uv(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Up(e.buffer),t}const pv=Us("string"),Xt=Us("function"),Rp=Us("number"),si=e=>e!==null&&typeof e=="object",fv=e=>e===!0||e===!1,Rs=e=>{if(Hs(e)!=="object")return!1;const t=hc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Hp in e)&&!(Vs in e)},hv=e=>{if(!si(e)||ii(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},gv=Pn("Date"),mv=Pn("File"),yv=Pn("Blob"),bv=Pn("FileList"),xv=e=>si(e)&&Xt(e.pipe),vv=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Xt(e.append)&&((t=Hs(e))==="formdata"||t==="object"&&Xt(e.toString)&&e.toString()==="[object FormData]"))},Sv=Pn("URLSearchParams"),[wv,Cv,Ev,Tv]=["ReadableStream","Request","Response","Headers"].map(Pn),Av=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ai(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),to(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(ii(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),a=s.length;let c;for(r=0;r<a;r++)c=s[r],t.call(null,e[c],c,e)}}function qp(e,t){if(ii(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Or=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Yp=e=>!no(e)&&e!==Or;function gc(){const{caseless:e,skipUndefined:t}=Yp(this)&&this||{},n={},r=(i,s)=>{const a=e&&qp(n,s)||s;Rs(n[a])&&Rs(i)?n[a]=gc(n[a],i):Rs(i)?n[a]=gc({},i):to(i)?n[a]=i.slice():(!t||!no(i))&&(n[a]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&ai(arguments[i],r);return n}const Pv=(e,t,n,{allOwnKeys:r}={})=>(ai(t,(i,s)=>{n&&Xt(i)?e[s]=Vp(i,n):e[s]=i},{allOwnKeys:r}),e),kv=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ov=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Iv=(e,t,n,r)=>{let i,s,a;const c={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)a=i[s],(!r||r(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=n!==!1&&hc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Nv=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Mv=e=>{if(!e)return null;if(to(e))return e;let t=e.length;if(!Rp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Fv=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&hc(Uint8Array)),Dv=(e,t)=>{const r=(e&&e[Vs]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},Bv=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},_v=Pn("HTMLFormElement"),$v=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Gp=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),zv=Pn("RegExp"),Kp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ai(n,(i,s)=>{let a;(a=t(i,s,e))!==!1&&(r[s]=a||i)}),Object.defineProperties(e,r)},Lv=e=>{Kp(e,(t,n)=>{if(Xt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Xt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},jv=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return to(e)?r(e):r(String(e).split(t)),n},Wv=()=>{},Vv=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Hv(e){return!!(e&&Xt(e.append)&&e[Hp]==="FormData"&&e[Vs])}const Uv=e=>{const t=new Array(10),n=(r,i)=>{if(si(r)){if(t.indexOf(r)>=0)return;if(ii(r))return r;if(!("toJSON"in r)){t[i]=r;const s=to(r)?[]:{};return ai(r,(a,c)=>{const d=n(a,i+1);!no(d)&&(s[c]=d)}),t[i]=void 0,s}}return r};return n(e,0)},Rv=Pn("AsyncFunction"),qv=e=>e&&(si(e)||Xt(e))&&Xt(e.then)&&Xt(e.catch),Xp=((e,t)=>e?setImmediate:t?((n,r)=>(Or.addEventListener("message",({source:i,data:s})=>{i===Or&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Or.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Xt(Or.postMessage)),Yv=typeof queueMicrotask<"u"?queueMicrotask.bind(Or):typeof process<"u"&&process.nextTick||Xp,Q={isArray:to,isArrayBuffer:Up,isBuffer:ii,isFormData:vv,isArrayBufferView:uv,isString:pv,isNumber:Rp,isBoolean:fv,isObject:si,isPlainObject:Rs,isEmptyObject:hv,isReadableStream:wv,isRequest:Cv,isResponse:Ev,isHeaders:Tv,isUndefined:no,isDate:gv,isFile:mv,isBlob:yv,isRegExp:zv,isFunction:Xt,isStream:xv,isURLSearchParams:Sv,isTypedArray:Fv,isFileList:bv,forEach:ai,merge:gc,extend:Pv,trim:Av,stripBOM:kv,inherits:Ov,toFlatObject:Iv,kindOf:Hs,kindOfTest:Pn,endsWith:Nv,toArray:Mv,forEachEntry:Dv,matchAll:Bv,isHTMLForm:_v,hasOwnProperty:Gp,hasOwnProp:Gp,reduceDescriptors:Kp,freezeMethods:Lv,toObjectSet:jv,toCamelCase:$v,noop:Wv,toFiniteNumber:Vv,findKey:qp,global:Or,isContextDefined:Yp,isSpecCompliantForm:Hv,toJSONObject:Uv,isAsyncFn:Rv,isThenable:qv,setImmediate:Xp,asap:Yv,isIterable:e=>e!=null&&Xt(e[Vs])};function je(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}Q.inherits(je,Error,{toJSON:function(){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:Q.toJSONObject(this.config),code:this.code,status:this.status}}});const Jp=je.prototype,Qp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Qp[e]={value:e}}),Object.defineProperties(je,Qp),Object.defineProperty(Jp,"isAxiosError",{value:!0}),je.from=(e,t,n,r,i,s)=>{const a=Object.create(Jp);Q.toFlatObject(e,a,function(u){return u!==Error.prototype},p=>p!=="isAxiosError");const c=e&&e.message?e.message:"Error",d=t==null&&e?e.code:t;return je.call(a,c,d,n,r,i),e&&a.cause==null&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",s&&Object.assign(a,s),a};const Gv=null;function mc(e){return Q.isPlainObject(e)||Q.isArray(e)}function Zp(e){return Q.endsWith(e,"[]")?e.slice(0,-2):e}function ef(e,t,n){return e?e.concat(t).map(function(i,s){return i=Zp(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function Kv(e){return Q.isArray(e)&&!e.some(mc)}const Xv=Q.toFlatObject(Q,{},null,function(t){return/^is[A-Z]/.test(t)});function qs(e,t,n){if(!Q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,b){return!Q.isUndefined(b[f])});const r=n.metaTokens,i=n.visitor||u,s=n.dots,a=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&Q.isSpecCompliantForm(t);if(!Q.isFunction(i))throw new TypeError("visitor must be a function");function p(g){if(g===null)return"";if(Q.isDate(g))return g.toISOString();if(Q.isBoolean(g))return g.toString();if(!d&&Q.isBlob(g))throw new je("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(g)||Q.isTypedArray(g)?d&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,f,b){let x=g;if(g&&!b&&typeof g=="object"){if(Q.endsWith(f,"{}"))f=r?f:f.slice(0,-2),g=JSON.stringify(g);else if(Q.isArray(g)&&Kv(g)||(Q.isFileList(g)||Q.endsWith(f,"[]"))&&(x=Q.toArray(g)))return f=Zp(f),x.forEach(function(w,S){!(Q.isUndefined(w)||w===null)&&t.append(a===!0?ef([f],S,s):a===null?f:f+"[]",p(w))}),!1}return mc(g)?!0:(t.append(ef(b,f,s),p(g)),!1)}const h=[],m=Object.assign(Xv,{defaultVisitor:u,convertValue:p,isVisitable:mc});function y(g,f){if(!Q.isUndefined(g)){if(h.indexOf(g)!==-1)throw Error("Circular reference detected in "+f.join("."));h.push(g),Q.forEach(g,function(x,E){(!(Q.isUndefined(x)||x===null)&&i.call(t,x,Q.isString(E)?E.trim():E,f,m))===!0&&y(x,f?f.concat(E):[E])}),h.pop()}}if(!Q.isObject(e))throw new TypeError("data must be an object");return y(e),t}function tf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function yc(e,t){this._pairs=[],e&&qs(e,this,t)}const nf=yc.prototype;nf.append=function(t,n){this._pairs.push([t,n])},nf.toString=function(t){const n=t?function(r){return t.call(this,r,tf)}:tf;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Jv(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rf(e,t,n){if(!t)return e;const r=n&&n.encode||Jv;Q.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let s;if(i?s=i(t,n):s=Q.isURLSearchParams(t)?t.toString():new yc(t,n).toString(r),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class of{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Q.forEach(this.handlers,function(r){r!==null&&t(r)})}}const sf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Qv={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:yc,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},bc=typeof window<"u"&&typeof document<"u",xc=typeof navigator=="object"&&navigator||void 0,Zv=bc&&(!xc||["ReactNative","NativeScript","NS"].indexOf(xc.product)<0),eS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",tS=bc&&window.location.href||"http://localhost",jt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:bc,hasStandardBrowserEnv:Zv,hasStandardBrowserWebWorkerEnv:eS,navigator:xc,origin:tS},Symbol.toStringTag,{value:"Module"})),...Qv};function nS(e,t){return qs(e,new jt.classes.URLSearchParams,{visitor:function(n,r,i,s){return jt.isNode&&Q.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function rS(e){return Q.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function oS(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],t[s]=e[s];return t}function af(e){function t(n,r,i,s){let a=n[s++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),d=s>=n.length;return a=!a&&Q.isArray(i)?i.length:a,d?(Q.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!c):((!i[a]||!Q.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],s)&&Q.isArray(i[a])&&(i[a]=oS(i[a])),!c)}if(Q.isFormData(e)&&Q.isFunction(e.entries)){const n={};return Q.forEachEntry(e,(r,i)=>{t(rS(r),i,n,0)}),n}return null}function iS(e,t,n){if(Q.isString(e))try{return(t||JSON.parse)(e),Q.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const li={transitional:sf,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=Q.isObject(t);if(s&&Q.isHTMLForm(t)&&(t=new FormData(t)),Q.isFormData(t))return i?JSON.stringify(af(t)):t;if(Q.isArrayBuffer(t)||Q.isBuffer(t)||Q.isStream(t)||Q.isFile(t)||Q.isBlob(t)||Q.isReadableStream(t))return t;if(Q.isArrayBufferView(t))return t.buffer;if(Q.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return nS(t,this.formSerializer).toString();if((c=Q.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return qs(c?{"files[]":t}:t,d&&new d,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),iS(t)):t}],transformResponse:[function(t){const n=this.transitional||li.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(Q.isResponse(t)||Q.isReadableStream(t))return t;if(t&&Q.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(c){if(a)throw c.name==="SyntaxError"?je.from(c,je.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:jt.classes.FormData,Blob:jt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],e=>{li.headers[e]={}});const sS=Q.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"]),aS=e=>{const t={};let n,r,i;return e&&e.split(`
|
|
20
|
+
`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&sS[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},lf=Symbol("internals");function ci(e){return e&&String(e).trim().toLowerCase()}function Ys(e){return e===!1||e==null?e:Q.isArray(e)?e.map(Ys):String(e)}function lS(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const cS=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function vc(e,t,n,r,i){if(Q.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!Q.isString(t)){if(Q.isString(r))return t.indexOf(r)!==-1;if(Q.isRegExp(r))return r.test(t)}}function dS(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function uS(e,t){const n=Q.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,s,a){return this[r].call(this,t,i,s,a)},configurable:!0})})}let Jt=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(c,d,p){const u=ci(d);if(!u)throw new Error("header name must be a non-empty string");const h=Q.findKey(i,u);(!h||i[h]===void 0||p===!0||p===void 0&&i[h]!==!1)&&(i[h||d]=Ys(c))}const a=(c,d)=>Q.forEach(c,(p,u)=>s(p,u,d));if(Q.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Q.isString(t)&&(t=t.trim())&&!cS(t))a(aS(t),n);else if(Q.isObject(t)&&Q.isIterable(t)){let c={},d,p;for(const u of t){if(!Q.isArray(u))throw TypeError("Object iterator must return a key-value pair");c[p=u[0]]=(d=c[p])?Q.isArray(d)?[...d,u[1]]:[d,u[1]]:u[1]}a(c,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=ci(t),t){const r=Q.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return lS(i);if(Q.isFunction(n))return n.call(this,i,r);if(Q.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ci(t),t){const r=Q.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||vc(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(a){if(a=ci(a),a){const c=Q.findKey(r,a);c&&(!n||vc(r,r[c],c,n))&&(delete r[c],i=!0)}}return Q.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!t||vc(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return Q.forEach(this,(i,s)=>{const a=Q.findKey(r,s);if(a){n[a]=Ys(i),delete n[s];return}const c=t?dS(s):String(s).trim();c!==s&&delete n[s],n[c]=Ys(i),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Q.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&Q.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
21
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[lf]=this[lf]={accessors:{}}).accessors,i=this.prototype;function s(a){const c=ci(a);r[c]||(uS(i,a),r[c]=!0)}return Q.isArray(t)?t.forEach(s):s(t),this}};Jt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Q.reduceDescriptors(Jt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),Q.freezeMethods(Jt);function Sc(e,t){const n=this||li,r=t||n,i=Jt.from(r.headers);let s=r.data;return Q.forEach(e,function(c){s=c.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function cf(e){return!!(e&&e.__CANCEL__)}function ro(e,t,n){je.call(this,e??"canceled",je.ERR_CANCELED,t,n),this.name="CanceledError"}Q.inherits(ro,je,{__CANCEL__:!0});function df(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new je("Request failed with status code "+n.status,[je.ERR_BAD_REQUEST,je.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function pS(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function fS(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,a;return t=t!==void 0?t:1e3,function(d){const p=Date.now(),u=r[s];a||(a=p),n[i]=d,r[i]=p;let h=s,m=0;for(;h!==i;)m+=n[h++],h=h%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),p-a<t)return;const y=u&&p-u;return y?Math.round(m*1e3/y):void 0}}function hS(e,t){let n=0,r=1e3/t,i,s;const a=(p,u=Date.now())=>{n=u,i=null,s&&(clearTimeout(s),s=null),e(...p)};return[(...p)=>{const u=Date.now(),h=u-n;h>=r?a(p,u):(i=p,s||(s=setTimeout(()=>{s=null,a(i)},r-h)))},()=>i&&a(i)]}const Gs=(e,t,n=3)=>{let r=0;const i=fS(50,250);return hS(s=>{const a=s.loaded,c=s.lengthComputable?s.total:void 0,d=a-r,p=i(d),u=a<=c;r=a;const h={loaded:a,total:c,progress:c?a/c:void 0,bytes:d,rate:p||void 0,estimated:p&&c&&u?(c-a)/p:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(h)},n)},uf=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},pf=e=>(...t)=>Q.asap(()=>e(...t)),gS=jt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,jt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(jt.origin),jt.navigator&&/(msie|trident)/i.test(jt.navigator.userAgent)):()=>!0,mS=jt.hasStandardBrowserEnv?{write(e,t,n,r,i,s,a){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];Q.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),Q.isString(r)&&c.push(`path=${r}`),Q.isString(i)&&c.push(`domain=${i}`),s===!0&&c.push("secure"),Q.isString(a)&&c.push(`SameSite=${a}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function yS(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function bS(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ff(e,t,n){let r=!yS(t);return e&&(r||n==!1)?bS(e,t):t}const hf=e=>e instanceof Jt?{...e}:e;function Ir(e,t){t=t||{};const n={};function r(p,u,h,m){return Q.isPlainObject(p)&&Q.isPlainObject(u)?Q.merge.call({caseless:m},p,u):Q.isPlainObject(u)?Q.merge({},u):Q.isArray(u)?u.slice():u}function i(p,u,h,m){if(Q.isUndefined(u)){if(!Q.isUndefined(p))return r(void 0,p,h,m)}else return r(p,u,h,m)}function s(p,u){if(!Q.isUndefined(u))return r(void 0,u)}function a(p,u){if(Q.isUndefined(u)){if(!Q.isUndefined(p))return r(void 0,p)}else return r(void 0,u)}function c(p,u,h){if(h in t)return r(p,u);if(h in e)return r(void 0,p)}const d={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(p,u,h)=>i(hf(p),hf(u),h,!0)};return Q.forEach(Object.keys({...e,...t}),function(u){const h=d[u]||i,m=h(e[u],t[u],u);Q.isUndefined(m)&&h!==c||(n[u]=m)}),n}const gf=e=>{const t=Ir({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:c}=t;if(t.headers=a=Jt.from(a),t.url=rf(ff(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),Q.isFormData(n)){if(jt.hasStandardBrowserEnv||jt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(Q.isFunction(n.getHeaders)){const d=n.getHeaders(),p=["content-type","content-length"];Object.entries(d).forEach(([u,h])=>{p.includes(u.toLowerCase())&&a.set(u,h)})}}if(jt.hasStandardBrowserEnv&&(r&&Q.isFunction(r)&&(r=r(t)),r||r!==!1&&gS(t.url))){const d=i&&s&&mS.read(s);d&&a.set(i,d)}return t},xS=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const i=gf(e);let s=i.data;const a=Jt.from(i.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:p}=i,u,h,m,y,g;function f(){y&&y(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(i.method.toUpperCase(),i.url,!0),b.timeout=i.timeout;function x(){if(!b)return;const w=Jt.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),T={data:!c||c==="text"||c==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:w,config:e,request:b};df(function(k){n(k),f()},function(k){r(k),f()},T),b=null}"onloadend"in b?b.onloadend=x:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(x)},b.onabort=function(){b&&(r(new je("Request aborted",je.ECONNABORTED,e,b)),b=null)},b.onerror=function(S){const T=S&&S.message?S.message:"Network Error",v=new je(T,je.ERR_NETWORK,e,b);v.event=S||null,r(v),b=null},b.ontimeout=function(){let S=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const T=i.transitional||sf;i.timeoutErrorMessage&&(S=i.timeoutErrorMessage),r(new je(S,T.clarifyTimeoutError?je.ETIMEDOUT:je.ECONNABORTED,e,b)),b=null},s===void 0&&a.setContentType(null),"setRequestHeader"in b&&Q.forEach(a.toJSON(),function(S,T){b.setRequestHeader(T,S)}),Q.isUndefined(i.withCredentials)||(b.withCredentials=!!i.withCredentials),c&&c!=="json"&&(b.responseType=i.responseType),p&&([m,g]=Gs(p,!0),b.addEventListener("progress",m)),d&&b.upload&&([h,y]=Gs(d),b.upload.addEventListener("progress",h),b.upload.addEventListener("loadend",y)),(i.cancelToken||i.signal)&&(u=w=>{b&&(r(!w||w.type?new ro(null,e,b):w),b.abort(),b=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const E=pS(i.url);if(E&&jt.protocols.indexOf(E)===-1){r(new je("Unsupported protocol "+E+":",je.ERR_BAD_REQUEST,e));return}b.send(s||null)})},vS=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const s=function(p){if(!i){i=!0,c();const u=p instanceof Error?p:this.reason;r.abort(u instanceof je?u:new ro(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,s(new je(`timeout ${t} of ms exceeded`,je.ETIMEDOUT))},t);const c=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(s):p.removeEventListener("abort",s)}),e=null)};e.forEach(p=>p.addEventListener("abort",s));const{signal:d}=r;return d.unsubscribe=()=>Q.asap(c),d}},SS=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},wS=async function*(e,t){for await(const n of CS(e))yield*SS(n,t)},CS=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},mf=(e,t,n,r)=>{const i=wS(e,t);let s=0,a,c=d=>{a||(a=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:p,value:u}=await i.next();if(p){c(),d.close();return}let h=u.byteLength;if(n){let m=s+=h;n(m)}d.enqueue(new Uint8Array(u))}catch(p){throw c(p),p}},cancel(d){return c(d),i.return()}},{highWaterMark:2})},yf=64*1024,{isFunction:Ks}=Q,ES=(({Request:e,Response:t})=>({Request:e,Response:t}))(Q.global),{ReadableStream:bf,TextEncoder:xf}=Q.global,vf=(e,...t)=>{try{return!!e(...t)}catch{return!1}},TS=e=>{e=Q.merge.call({skipUndefined:!0},ES,e);const{fetch:t,Request:n,Response:r}=e,i=t?Ks(t):typeof fetch=="function",s=Ks(n),a=Ks(r);if(!i)return!1;const c=i&&Ks(bf),d=i&&(typeof xf=="function"?(g=>f=>g.encode(f))(new xf):async g=>new Uint8Array(await new n(g).arrayBuffer())),p=s&&c&&vf(()=>{let g=!1;const f=new n(jt.origin,{body:new bf,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!f}),u=a&&c&&vf(()=>Q.isReadableStream(new r("").body)),h={stream:u&&(g=>g.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!h[g]&&(h[g]=(f,b)=>{let x=f&&f[g];if(x)return x.call(f);throw new je(`Response type '${g}' is not supported`,je.ERR_NOT_SUPPORT,b)})});const m=async g=>{if(g==null)return 0;if(Q.isBlob(g))return g.size;if(Q.isSpecCompliantForm(g))return(await new n(jt.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(Q.isArrayBufferView(g)||Q.isArrayBuffer(g))return g.byteLength;if(Q.isURLSearchParams(g)&&(g=g+""),Q.isString(g))return(await d(g)).byteLength},y=async(g,f)=>{const b=Q.toFiniteNumber(g.getContentLength());return b??m(f)};return async g=>{let{url:f,method:b,data:x,signal:E,cancelToken:w,timeout:S,onDownloadProgress:T,onUploadProgress:v,responseType:k,headers:M,withCredentials:B="same-origin",fetchOptions:z}=gf(g),$=t||fetch;k=k?(k+"").toLowerCase():"text";let C=vS([E,w&&w.toAbortSignal()],S),I=null;const _=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let F;try{if(v&&p&&b!=="get"&&b!=="head"&&(F=await y(M,x))!==0){let O=new n(f,{method:"POST",body:x,duplex:"half"}),L;if(Q.isFormData(x)&&(L=O.headers.get("content-type"))&&M.setContentType(L),O.body){const[H,Y]=uf(F,Gs(pf(v)));x=mf(O.body,yf,H,Y)}}Q.isString(B)||(B=B?"include":"omit");const j=s&&"credentials"in n.prototype,V={...z,signal:C,method:b.toUpperCase(),headers:M.normalize().toJSON(),body:x,duplex:"half",credentials:j?B:void 0};I=s&&new n(f,V);let R=await(s?$(I,z):$(f,V));const U=u&&(k==="stream"||k==="response");if(u&&(T||U&&_)){const O={};["status","statusText","headers"].forEach(X=>{O[X]=R[X]});const L=Q.toFiniteNumber(R.headers.get("content-length")),[H,Y]=T&&uf(L,Gs(pf(T),!0))||[];R=new r(mf(R.body,yf,H,()=>{Y&&Y(),_&&_()}),O)}k=k||"text";let D=await h[Q.findKey(h,k)||"text"](R,g);return!U&&_&&_(),await new Promise((O,L)=>{df(O,L,{data:D,headers:Jt.from(R.headers),status:R.status,statusText:R.statusText,config:g,request:I})})}catch(j){throw _&&_(),j&&j.name==="TypeError"&&/Load failed|fetch/i.test(j.message)?Object.assign(new je("Network Error",je.ERR_NETWORK,g,I),{cause:j.cause||j}):je.from(j,j&&j.code,g,I)}}},AS=new Map,Sf=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,s=[r,i,n];let a=s.length,c=a,d,p,u=AS;for(;c--;)d=s[c],p=u.get(d),p===void 0&&u.set(d,p=c?new Map:TS(t)),u=p;return p};Sf();const wc={http:Gv,xhr:xS,fetch:{get:Sf}};Q.forEach(wc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const wf=e=>`- ${e}`,PS=e=>Q.isFunction(e)||e===null||e===!1;function kS(e,t){e=Q.isArray(e)?e:[e];const{length:n}=e;let r,i;const s={};for(let a=0;a<n;a++){r=e[a];let c;if(i=r,!PS(r)&&(i=wc[(c=String(r)).toLowerCase()],i===void 0))throw new je(`Unknown adapter '${c}'`);if(i&&(Q.isFunction(i)||(i=i.get(t))))break;s[c||"#"+a]=i}if(!i){const a=Object.entries(s).map(([d,p])=>`adapter ${d} `+(p===!1?"is not supported by the environment":"is not available in the build"));let c=n?a.length>1?`since :
|
|
22
22
|
`+a.map(wf).join(`
|
|
23
23
|
`):" "+wf(a[0]):"as no adapter specified";throw new je("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return i}const Cf={getAdapter:kS,adapters:wc};function Cc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ro(null,e)}function Ef(e){return Cc(e),e.headers=Jt.from(e.headers),e.data=Sc.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Cf.getAdapter(e.adapter||li.adapter,e)(e).then(function(r){return Cc(e),r.data=Sc.call(e,e.transformResponse,r),r.headers=Jt.from(r.headers),r},function(r){return cf(r)||(Cc(e),r&&r.response&&(r.response.data=Sc.call(e,e.transformResponse,r.response),r.response.headers=Jt.from(r.response.headers))),Promise.reject(r)})}const Tf="1.13.2",Xs={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Xs[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Af={};Xs.transitional=function(t,n,r){function i(s,a){return"[Axios v"+Tf+"] Transitional option '"+s+"'"+a+(r?". "+r:"")}return(s,a,c)=>{if(t===!1)throw new je(i(a," has been removed"+(n?" in "+n:"")),je.ERR_DEPRECATED);return n&&!Af[a]&&(Af[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,a,c):!0}},Xs.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function OS(e,t,n){if(typeof e!="object")throw new je("options must be an object",je.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],a=t[s];if(a){const c=e[s],d=c===void 0||a(c,s,e);if(d!==!0)throw new je("option "+s+" must be "+d,je.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new je("Unknown option "+s,je.ERR_BAD_OPTION)}}const Js={assertOptions:OS,validators:Xs},Nn=Js.validators;let Nr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new of,response:new of}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
24
|
-
`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ir(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&Js.assertOptions(r,{silentJSONParsing:Nn.transitional(Nn.boolean),forcedJSONParsing:Nn.transitional(Nn.boolean),clarifyTimeoutError:Nn.transitional(Nn.boolean)},!1),i!=null&&(J.isFunction(i)?n.paramsSerializer={serialize:i}:Js.assertOptions(i,{encode:Nn.function,serialize:Nn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Js.assertOptions(n,{baseUrl:Nn.spelling("baseURL"),withXsrfToken:Nn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&J.merge(s.common,s[n.method]);s&&J.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),n.headers=Jt.concat(a,s);const c=[];let d=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(d=d&&f.synchronous,c.unshift(f.fulfilled,f.rejected))});const p=[];this.interceptors.response.forEach(function(f){p.push(f.fulfilled,f.rejected)});let u,h=0,m;if(!d){const g=[Ef.bind(this),void 0];for(g.unshift(...c),g.push(...p),m=g.length,u=Promise.resolve(n);h<m;)u=u.then(g[h++],g[h++]);return u}m=c.length;let y=n;for(;h<m;){const g=c[h++],f=c[h++];try{y=g(y)}catch(b){f.call(this,b);break}}try{u=Ef.call(this,y)}catch(g){return Promise.reject(g)}for(h=0,m=p.length;h<m;)u=u.then(p[h++],p[h++]);return u}getUri(t){t=Ir(this.defaults,t);const n=ff(t.baseURL,t.url,t.allowAbsoluteUrls);return rf(n,t.params,t.paramsSerializer)}};J.forEach(["delete","get","head","options"],function(t){Nr.prototype[t]=function(n,r){return this.request(Ir(r||{},{method:t,url:n,data:(r||{}).data}))}}),J.forEach(["post","put","patch"],function(t){function n(r){return function(s,a,c){return this.request(Ir(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}Nr.prototype[t]=n(),Nr.prototype[t+"Form"]=n(!0)});let IS=class Oy{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const a=new Promise(c=>{r.subscribe(c),s=c}).then(i);return a.cancel=function(){r.unsubscribe(s)},a},t(function(s,a,c){r.reason||(r.reason=new ro(s,a,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Oy(function(i){t=i}),cancel:t}}};function NS(e){return function(n){return e.apply(null,n)}}function MS(e){return J.isObject(e)&&e.isAxiosError===!0}const Ec={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent: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(Ec).forEach(([e,t])=>{Ec[t]=e});function Pf(e){const t=new Nr(e),n=Vp(Nr.prototype.request,t);return J.extend(n,Nr.prototype,t,{allOwnKeys:!0}),J.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Pf(Ir(e,i))},n}const bt=Pf(li);bt.Axios=Nr,bt.CanceledError=ro,bt.CancelToken=IS,bt.isCancel=cf,bt.VERSION=Tf,bt.toFormData=qs,bt.AxiosError=je,bt.Cancel=bt.CanceledError,bt.all=function(t){return Promise.all(t)},bt.spread=NS,bt.isAxiosError=MS,bt.mergeConfig=Ir,bt.AxiosHeaders=Jt,bt.formToJSON=e=>af(J.isHTMLForm(e)?new FormData(e):e),bt.getAdapter=Cf.getAdapter,bt.HttpStatusCode=Ec,bt.default=bt;const{Axios:$5,AxiosError:z5,CanceledError:L5,isCancel:j5,CancelToken:W5,VERSION:V5,all:H5,Cancel:U5,isAxiosError:R5,spread:q5,toFormData:Y5,AxiosHeaders:G5,HttpStatusCode:K5,formToJSON:X5,getAdapter:J5,mergeConfig:Q5}=bt;function Qs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var FS={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Tc(e,t){function n(i,s,a){if(!(typeof document>"u")){a=Qs({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var d in a)a[d]&&(c+="; "+d,a[d]!==!0&&(c+="="+a[d].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+c}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],a={},c=0;c<s.length;c++){var d=s[c].split("="),p=d.slice(1).join("=");try{var u=decodeURIComponent(d[0]);if(a[u]=e.read(p,u),i===u)break}catch{}}return i?a[i]:a}}return Object.create({set:n,get:r,remove:function(i,s){n(i,"",Qs({},s,{expires:-1}))},withAttributes:function(i){return Tc(this.converter,Qs({},this.attributes,i))},withConverter:function(i){return Tc(Qs({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var tr=Tc(FS,{path:"/"});const DS={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};let oo="https://omnichannel-apiv1.airaops.com/";try{if(typeof{url:typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Nl&&Nl.tagName.toUpperCase()==="SCRIPT"&&Nl.src||new URL("product-app.umd.js",document.baseURI).href}<"u"&&DS?.VITE_API_URL)oo=void 0;else{const e=typeof process<"u"?process:null;e&&e.env&&e.env.VITE_API_URL&&(oo=process.env.VITE_API_URL)}}catch{}const BS=e=>{oo=e,ft.defaults.baseURL=oo},_S=e=>{e?tr.set("token",e,{secure:!0,sameSite:"Strict"}):tr.remove("token")},$S=()=>tr.get("token")||null,ft=bt.create({baseURL:oo,transformRequest:[function(e,t){const n=$S();return n?t.Authorization=`Bearer ${n}`:delete t.Authorization,JSON.stringify(e)}],headers:{Accept:"application/json","Content-Type":"application/json"}});let Ac=!1,Pc=null;ft.interceptors.response.use(e=>e,async e=>{const t=e.config,n=e.response;if(n&&(n.status===401||n.status===402)){const r=tr.get("refreshToken");if(r)try{Ac||(Ac=!0,Pc=bt.post(`${oo}/api/v1/auth/refresh`,{},{headers:{Authorization:`Bearer ${r}`}}));const i=await Pc,{token:s,refreshToken:a}=i.data;return tr.set("token",s,{secure:!0,sameSite:"Strict"}),tr.set("refreshToken",a),localStorage.setItem("justRefreshed","true"),t.headers.Authorization=`Bearer ${s}`,ft(t)}catch{(t?.url||t?.baseURL+t?.url||"").includes("/auth/verify")||(tr.remove("token"),tr.remove("refreshToken"),localStorage.clear(),window.location.href="/")}finally{Ac=!1,Pc=null}else(t?.url||t?.baseURL+t?.url||"").includes("/auth/verify")||(tr.remove("token"),localStorage.clear(),window.location.href="/")}return Promise.reject(e)});const di=Tt("dashboard/fetchMetrics",async(e={},{rejectWithValue:t})=>{try{const i=(await ft.get("/dashboard/metrics",{params:e})).data||{};return i.data||i}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch dashboard metrics";return t(r)}}),Zs=Tt("dashboard/fetchProductDashboardMetrics",async(e={},{rejectWithValue:t})=>{try{const i=(await ft.get("/dashboard/metrics/category",{params:e})).data||{};return i.data||i}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch product dashboard metrics";return t(r)}}),ui=Tt("dashboard/verifyAuth",async(e,{rejectWithValue:t})=>{try{const n=await ft.get("/auth/verify"),r=n.data?.data!=null?n.data.data:n.data,i=r?.companyId||n.data?.companyId;if(i){const s=r?.id!=null?r.id:n.data?.id!=null?n.data.id:null,a=(r?.firstName!=null?r.firstName:n.data?.firstName!=null?n.data.firstName:"").toString().trim(),c=(r?.lastName!=null?r.lastName:n.data?.lastName!=null?n.data.lastName:"").toString().trim(),d=[a,c].filter(Boolean).join(" ")||(r?.name!=null?r.name:n.data?.name!=null?n.data.name:"");return{companyId:i,createdById:s??null,createdByName:d||""}}else throw new Error("companyId not found in /auth/verify response")}catch(n){const r=n.response?.data?.message||n.message||"Failed to verify auth";return t(r)}},{condition:(e,{getState:t})=>{const n=t()?.dashboard??{};return!(n.verifyAuthLoading||n.companyId)}}),Qt=Tt("dashboard/fetchCompanyIntegrations",async(e,{rejectWithValue:t})=>{try{const n=e?`/integrations/tenant/${e}`:"/integrations/tenant/";return(await ft.get(n)).data}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch dashboard metrics";return t(r)}}),pi=Tt("dashboard/fetchStores",async(e={},{rejectWithValue:t})=>{try{return(await ft.get("/store",{params:e})).data||{}}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch stores";return t(r)}}),Mn=Tt("dashboard/fetchCategories",async(e={},{rejectWithValue:t})=>{try{return(await ft.get("/category",{params:e})).data||{}}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch categories";return t(r)}}),Mr=Tt("dashboard/fetchAllProducts",async(e={},{rejectWithValue:t})=>{try{return(await ft.get("/store-inventory",{params:e})).data||{}}catch(n){return t(n.response?.data||n.message)}}),ea=Tt("dashboard/fetchStoreInventoryForPromo",async(e={},{rejectWithValue:t})=>{try{return(await ft.get("/store-inventory",{params:e})).data||{}}catch(n){return t(n.response?.data||n.message)}}),ta=Tt("dashboard/createCatalog",async({name:e,slug:t,description:n="",storeCode:r,products:i,categories:s},{rejectWithValue:a})=>{try{const c=Array.isArray(r)?r:[r].filter(Boolean),d=Array.isArray(i)?i:[],p=Array.isArray(s)?s:[],u={name:e,slug:t,description:n||"",storeCode:c};return d.length>0&&(u.products=d),p.length>0&&(u.categories=p),(await ft.post("/catalogues",u)).data}catch(c){const d=c.response?.data?.message||c.message||"Failed to create catalog";return a(d)}}),fi=Tt("dashboard/updateCatalog",async({id:e,name:t,slug:n,status:r},{rejectWithValue:i})=>{try{const s=`/catalogues/${e}`,a={name:t,slug:n,status:r===!0||r==="Active"};return(await ft.put(s,a)).data}catch(s){const a=s.response?.data?.message||s.message||"Failed to update catalog";return i(a)}}),na=Tt("dashboard/deleteCatalog",async(e,{rejectWithValue:t})=>{try{const n=`/catalogues/${e}`;return await ft.delete(n),e}catch(n){const r=n.response?.data?.message||n.message||"Failed to delete catalog";return t(r)}}),ra=Tt("dashboard/createOsaRequest",async({storeCodes:e,products:t=[],categories:n=[]},{rejectWithValue:r})=>{try{const i=Array.isArray(e)?e:[e].filter(Boolean),s=Array.isArray(t)?t:[],a=Array.isArray(n)?n:[],c={storeCodes:i};return s.length>0&&(c.products=s),a.length>0&&(c.categories=a),(await ft.post("/osa",c)).data}catch(i){const s=i.response?.data?.message||i.message||"Failed to create OSA request";return r(s)}}),oa=Tt("dashboard/fetchOsaRequests",async(e={},{rejectWithValue:t})=>{try{return(await ft.get("/osa",{params:e})).data||{}}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch OSA requests";return t(r)}},{condition:(e,{getState:t})=>!(t()?.dashboard??{}).osaRequestsLoading}),ia=Tt("dashboard/fetchOsaProducts",async({osaId:e,page:t,limit:n,params:r={},...i}={},{rejectWithValue:s})=>{try{const c=`/osa/${e??""}/products`,d={...i||{},...r||{}};t!==void 0&&(d.page=t),n!==void 0&&(d.limit=n),"page"in d&&(d.page=Number(d.page)),"limit"in d&&(d.limit=Number(d.limit));const p=Number(d.page)||1,u=Number(d.limit)||void 0;p>1&&(d.pendingPage=p,u&&(d.pendingLimit=u));const m=(await ft.get(c,{params:d})).data||{},y=m.data||m,g=Array.isArray(y?.pending?.data)?y.pending.data.length:0,f=Number(y?.pending?.limit||0);if(u&&f>0&&f!==u&&g===0){const b={...d,page:p,limit:f},E=(await ft.get(c,{params:b})).data||{};return E.data||E}if(u&&f>0&&f!==u&&g>0&&g<u){const b={...d,page:p,limit:u,pendingPage:p,pendingLimit:u},E=(await ft.get(c,{params:b})).data||{};return E.data||E}return y}catch(a){const c=a.response?.data?.message||a.message||"Failed to fetch OSA products";return s(c)}},{condition:(e={},{getState:t})=>{const{osaId:n}=e??{};if(!n)return!1;const r=t()?.dashboard??{},i=r.osaProductsLoading??!1,s=e?.page??e?.params?.page??1,a=e?.limit??e?.params?.limit??10,c=`${String(e?.osaId??"")}|${Number(s)||1}|${Number(a)||10}`;return!(i&&r.osaProductsRequestKey===c)}}),kf=Np({name:"dashboard",initialState:{loading:!1,companyId:"",createdById:null,createdByName:"",verifyAuthLoading:!1,error:null,metrics:{},productDashboardMetrics:{},integrationData:{},lastUpdated:null,products:[],categoryList:[],categoryPagination:{currentPage:1,limit:10,totalCount:0,totalPages:1,hasNextPage:!1},stores:[],homePageCardSummary:{totalCategories:0,totalProducts:0,lastSync:"",lastSyncHoursAgo:null},pagination:{currentPage:1,limit:20,totalCount:0,totalPages:1,hasNextPage:!1},createCatalogLoading:!1,createCatalogError:null,updateCatalogLoading:!1,updateCatalogError:null,deleteCatalogLoading:!1,deleteCatalogError:null,createOsaRequestLoading:!1,createOsaRequestError:null,osaRequests:[],osaRequestsLoading:!1,osaRequestsError:null,osaRequestsPagination:{currentPage:1,limit:10,totalCount:0,totalPages:1,hasNextPage:!1},osaProducts:[],osaProductsLoading:!1,osaProductsError:null,osaProductsRequestKey:null,osaProductsPagination:{currentPage:1,limit:10,totalCount:0,totalPages:1,hasNextPage:!1},productsLoading:!1,categoriesLoading:!1},reducers:{clearCreateCatalogError:e=>{e.createCatalogError=null},clearUpdateCatalogError:e=>{e.updateCatalogError=null},clearDeleteCatalogError:e=>{e.deleteCatalogError=null},clearCreateOsaRequestError:e=>{e.createOsaRequestError=null},clearOsaRequestsError:e=>{e.osaRequestsError=null},clearOsaProductsError:e=>{e.osaProductsError=null},resetStoreInventoryListPagination:e=>{e.pagination.currentPage=1},updateMetric:(e,t)=>{const{key:n,value:r}=t.payload;e.metrics&&(e.metrics[n]=r)}},extraReducers:e=>{e.addCase(di.pending,t=>{t.loading=!0,t.error=null}).addCase(di.fulfilled,(t,n)=>{t.loading=!1,t.metrics=n.payload,t.lastUpdated=Date.now(),t.error=null}).addCase(di.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch dashboard metrics"}),e.addCase(Zs.pending,t=>{t.loading=!0}).addCase(Zs.fulfilled,(t,n)=>{t.loading=!1,t.productDashboardMetrics=n.payload||{}}).addCase(Zs.rejected,t=>{t.loading=!1,t.productDashboardMetrics={}}),e.addCase(Qt.pending,t=>{t.loading=!0}).addCase(Qt.fulfilled,(t,n)=>{t.loading=!1,n.payload&&Array.isArray(n.payload.data)&&n.payload.data.length>0?t.integrationData=n.payload.data[0]:t.integrationData={}}).addCase(Qt.rejected,t=>{t.loading=!1}),e.addCase(ui.pending,t=>{t.loading=!0,t.verifyAuthLoading=!0,t.error=null}),e.addCase(ui.fulfilled,(t,n)=>{t.loading=!1,t.verifyAuthLoading=!1;const r=n.payload;r&&typeof r=="object"&&"companyId"in r?(t.companyId=r.companyId,t.createdById=r.createdById!=null?r.createdById:null,t.createdByName=r.createdByName!=null?r.createdByName:""):t.companyId=r,t.error=null}),e.addCase(ui.rejected,(t,n)=>{t.loading=!1,t.verifyAuthLoading=!1,t.error=n.payload||"Failed to verify auth"}),e.addCase(Mn.pending,t=>{t.loading=!0,t.categoriesLoading=!0,t.error=null}).addCase(Mn.fulfilled,(t,n)=>{t.loading=!1,t.categoriesLoading=!1,t.categoriesFetchSettled=!0,t.error=null;const r=n.payload||{},i=Array.isArray(r.data)?r.data:[];t.categoryList=i;const s=r.pagination||{};t.categoryPagination={currentPage:typeof s.currentPage=="number"?s.currentPage:1,limit:typeof s.limit=="number"?s.limit:10,totalCount:typeof s.totalCount=="number"?s.totalCount:0,totalPages:typeof s.totalPages=="number"?s.totalPages:1,hasNextPage:typeof s.hasNextPage=="boolean"?s.hasNextPage:!1}}).addCase(Mn.rejected,(t,n)=>{t.loading=!1,t.categoriesLoading=!1,t.categoriesFetchSettled=!0,t.error=n.payload||"Failed to fetch categories",t.categoryList=[],t.categoryPagination={currentPage:1,limit:10,totalCount:0,totalPages:1,hasNextPage:!1}}),e.addCase(pi.pending,t=>{t.loading=!0,t.error=null}).addCase(pi.fulfilled,(t,n)=>{t.loading=!1,t.error=null;const r=n.payload||{},s=(Array.isArray(r.stores)?r.stores:Array.isArray(r.data)?r.data:Array.isArray(r)?r:[]).map(a=>{const c=a.id??a.storeCode??a.storeId,d=a.name??a.storeName??a.storel??"",p=a.storeCode??a.id??c;return{id:c,name:d,storeCode:p}});t.stores=[{id:"all",name:"All Stores",storeCode:"all"},...s]}).addCase(pi.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch stores",t.stores=[]}),e.addCase(Mr.pending,t=>{t.loading=!0,t.productsLoading=!0,t.error=null}).addCase(Mr.fulfilled,(t,n)=>{t.loading=!1,t.productsLoading=!1,t.error=null,t.loadingMessage="";const r=n.payload||{},i=Array.isArray(r.data)?r.data:Array.isArray(r.products)?r.products:Array.isArray(r)?r:[],s=(m,y=0)=>{if(m==null||m==="")return y;const g=Number(m);return Number.isFinite(g)?g:y},a={};i.forEach(m=>{if(!m)return;const y=m.categoryName||"Uncategorized";a[y]||(a[y]=[]);const g=s(m.stock),f=s(m.inShelf??m.inshelf??m.in_shelf),b=m.sellingPrice??m.selling_price??m.price,x=m.price??m.mrp,E=m.offer??m.discount,w=m.offerDescription??m.offer_description??m.offer,S=g>0?Math.round(f/g*100):0;a[y].push({...m,stock:g,inShelf:f,quantity:f,osa:S,price:b,mrp:x,discount:E,offer:w})}),t.products=Object.values(a).flat();const c=Object.values(a).flat(),d=Object.keys(a).length,p=c.length;t.homePageCardSummary={...t.homePageCardSummary,totalCategories:d,totalProducts:p},t.productsByCategory=a;const u=r.pagination||{},h=typeof u.totalCount=="number"?u.totalCount:Object.values(a).reduce((m,y)=>m+y.length,0);t.pagination={currentPage:typeof u.currentPage=="number"?u.currentPage:1,limit:typeof u.limit=="number"?u.limit:20,totalCount:h,totalPages:typeof u.totalPages=="number"?u.totalPages:1,hasNextPage:typeof u.hasNextPage=="boolean"?u.hasNextPage:!1}}).addCase(Mr.rejected,(t,n)=>{t.loading=!1,t.productsLoading=!1,t.error=n.payload||"Failed to fetch products"}).addCase(ea.fulfilled,()=>{}).addCase(ea.rejected,()=>{}),e.addCase(ta.pending,t=>{t.createCatalogLoading=!0,t.createCatalogError=null}).addCase(ta.fulfilled,t=>{t.createCatalogLoading=!1,t.createCatalogError=null}).addCase(ta.rejected,(t,n)=>{t.createCatalogLoading=!1,t.createCatalogError=n.payload||"Failed to create catalog"}),e.addCase(fi.pending,t=>{t.updateCatalogLoading=!0,t.updateCatalogError=null}).addCase(fi.fulfilled,t=>{t.updateCatalogLoading=!1,t.updateCatalogError=null}).addCase(fi.rejected,(t,n)=>{t.updateCatalogLoading=!1,t.updateCatalogError=n.payload||"Failed to update catalog"}),e.addCase(na.pending,t=>{t.deleteCatalogLoading=!0,t.deleteCatalogError=null}).addCase(na.fulfilled,t=>{t.deleteCatalogLoading=!1,t.deleteCatalogError=null}).addCase(na.rejected,(t,n)=>{t.deleteCatalogLoading=!1,t.deleteCatalogError=n.payload||"Failed to delete catalog"}),e.addCase(ra.pending,t=>{t.createOsaRequestLoading=!0,t.createOsaRequestError=null}).addCase(ra.fulfilled,t=>{t.createOsaRequestLoading=!1,t.createOsaRequestError=null}).addCase(ra.rejected,(t,n)=>{t.createOsaRequestLoading=!1,t.createOsaRequestError=n.payload||"Failed to create OSA request"}),e.addCase(oa.pending,t=>{t.osaRequestsLoading=!0,t.osaRequestsError=null}).addCase(oa.fulfilled,(t,n)=>{t.osaRequestsLoading=!1,t.osaRequestsError=null;const r=n.payload||{},i=Array.isArray(r)?r:Array.isArray(r.data)?r.data:[];t.osaRequests=i;const s=typeof r.page=="number"?r.page:1,a=typeof r.limit=="number"?r.limit:10,c=typeof r.total=="number"?r.total:i.length,d=typeof r.totalPages=="number"?r.totalPages:Math.max(1,Math.ceil(c/Math.max(1,a)));t.osaRequestsPagination={currentPage:s,limit:a,totalCount:c,totalPages:d,hasNextPage:s<d}}).addCase(oa.rejected,(t,n)=>{t.osaRequestsLoading=!1,t.osaRequestsError=n.payload||"Failed to fetch OSA requests",t.osaRequests=[],t.osaRequestsPagination={currentPage:1,limit:10,totalCount:0,totalPages:1,hasNextPage:!1}}),e.addCase(ia.pending,(t,n)=>{t.osaProductsLoading=!0,t.osaProductsError=null;const r=n.meta?.arg||{},i=r?.page??r?.params?.page??1,s=r?.limit??r?.params?.limit??10;t.osaProductsRequestKey=`${String(r?.osaId??"")}|${Number(i)||1}|${Number(s)||10}`}).addCase(ia.fulfilled,(t,n)=>{const r=n.meta?.arg||{},i=r?.page??r?.params?.page??1,s=r?.limit??r?.params?.limit??10,a=`${String(r?.osaId??"")}|${Number(i)||1}|${Number(s)||10}`;if(t.osaProductsRequestKey!==a)return;t.osaProductsLoading=!1,t.osaProductsError=null;const c=n.payload||{},d=r?.page!=null?Number(r.page):r?.params?.page!=null?Number(r.params.page):1,p=r?.limit!=null?Number(r.limit):r?.params?.limit!=null?Number(r.params.limit):10,u=c.pending||{},h=Array.isArray(u.data)?u.data:[],m=(w,S)=>{if(w==null||w==="")return S;const T=Number(w);return Number.isFinite(T)?T:S},y=m(u.total,h.length),g=m(u.page,d),f=u.limit,b=m(f,Number.isFinite(Number(f))?Number(f):NaN),x=Number.isFinite(b)&&b>0?b:h.length>0?h.length:p,E=Math.max(1,Math.ceil(y/Math.max(1,x)));t.osaProducts=h,t.osaProductsPagination={currentPage:g,limit:x,totalCount:y,totalPages:E,hasNextPage:g<E}}).addCase(ia.rejected,(t,n)=>{const r=n.meta?.arg||{},i=r?.page??r?.params?.page??1,s=r?.limit??r?.params?.limit??10,a=`${String(r?.osaId??"")}|${Number(i)||1}|${Number(s)||10}`;t.osaProductsRequestKey===a&&(t.osaProductsLoading=!1,t.osaProductsError=n.payload||"Failed to fetch OSA products",t.osaProducts=[],t.osaProductsPagination={currentPage:1,limit:10,totalCount:0,totalPages:1,hasNextPage:!1})})}}),{clearCreateCatalogError:Of,clearUpdateCatalogError:eM,clearDeleteCatalogError:tM,clearCreateOsaRequestError:zS,clearOsaRequestsError:LS,clearOsaProductsError:jS,resetStoreInventoryListPagination:If}=kf.actions,WS=kf.reducer,hi=Tt("productSettings/testConnection",async({serverAddress:e,username:t,password:n,companyId:r,tenantId:i},{rejectWithValue:s})=>{try{const a=r||i;if(!a)throw new Error("Company ID is required");const c=e.match(/^(\w+):\/\/(.*?):(\d+)(\/.*)$/);if(!c)throw new Error("Invalid server address format. Expected format: protocol://host:port/path");let[,d,p,u,h]=c;if(d=d.toLowerCase(),d!=="ftp"&&d!=="sftp")throw new Error("type must be 'ftp' or 'sftp'");const m={tenantId:a,type:d,configs:{host:p,port:Number(u),username:t,password:n,path:h.replace(/^\//,"")},entity_type:""};return(await ft.post("/ftp/sync/test-connection",m)).data}catch(a){const c=a.response?.data?.message||a.message||"Failed to test FTP connection";return s(c)}}),gi=Tt("productSettings/saveFtpSync",async(e,{rejectWithValue:t})=>{try{const n={...e,tenantId:e.tenantId||e.companyId};return(await ft.post("/ftp/sync/save",n)).data}catch(n){const r=n.response?.data?.message||n.message||"Failed to save FTP sync configuration";return t(r)}}),io=Tt("productSettings/updateDetails",async(e,{rejectWithValue:t})=>{try{const n={...e,tenantId:e.tenantId||e.companyId};if(n.companyId&&n.tenantId&&delete n.companyId,!n.configs||typeof n.configs!="object"){const r="Invalid payload: configs object is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}if(!n.tenantId){const r="Invalid payload: tenantId is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}if(!n.type){const r="Invalid payload: type is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}if(!n.entity_type){const r="Invalid payload: entity_type is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}try{const r=await ft.put("/ftp/sync/update-details",n);if(r.status>=200&&r.status<300)return r.data;{const i=r.data?.message||r.data?.error||`Server returned status ${r.status}`;return console.error("[FTP SYNC] API returned non-2xx status:",{status:r.status,data:r.data,payload:n}),t(i)}}catch(r){const i=r.response?.data?.message||r.response?.data?.error||r.message||"Failed to update FTP sync details";return console.error("[FTP SYNC] API error details:",{status:r.response?.status,statusText:r.response?.statusText,data:r.response?.data,message:i,payload:n,fullError:r}),t(i)}}catch(n){const r=n.message||"Failed to update FTP sync details";return console.error("[FTP SYNC] Unexpected error:",{error:n,message:r,payload:e}),t(r)}}),mi=Tt("productSettings/syncNow",async(e,{rejectWithValue:t})=>{try{if(!e)throw new Error("Channel ID is required");const n=await ft.post(`/ftp/sync/${e}/sync-now`);if(n.status>=200&&n.status<300)return n.data;{const r=n.data?.message||"Failed to start sync";return t(r)}}catch(n){const r=n.response?.data?.message||n.response?.data?.error||n.message||"Failed to start sync";return t(r)}}),yi=Tt("productSettings/fetchMappingColumns",async(e="products",{rejectWithValue:t})=>{try{const n=e?{entity_type:e}:{},r=await ft.get("/store-inventory/mapping-columns",{params:n});if(r.status>=200&&r.status<300)return r.data&&typeof r.data=="object"&&"status"in r.data&&r.data.status?r.data.data||[]:r.data||[];{const i=r.data?.message||"Failed to fetch mapping columns";return t(i)}}catch(n){const r=n.response?.data?.message||n.response?.data?.error||n.message||"Failed to fetch mapping columns";return t(r)}}),bi=Tt("productSettings/updateIntegrationByChannelId",async({channelId:e,data:t},{rejectWithValue:n})=>{try{if(!e)throw new Error("Channel ID is required");if(!t||typeof t!="object")throw new Error("Update data is required");const r=`/integrations/${e}`,i=await ft.patch(r,t);if(i.status>=200&&i.status<300)return i.data;{const s=i.data?.message||i.data?.error||`Server returned status ${i.status}`;return console.error(`[Integration] PATCH API returned non-2xx status for channelId ${e}:`,{status:i.status,data:i.data}),n(s)}}catch(r){const i=r.response?.data?.message||r.response?.data?.error||r.message||"Failed to update integration by channel ID";return console.error(`[Integration] PATCH API error for channelId ${e}:`,{status:r.response?.status,statusText:r.response?.statusText,data:r.response?.data,message:i}),n(i)}}),hn=Tt("productSettings/fetchSharedCatalogues",async(e,{rejectWithValue:t})=>{try{const n=e&&typeof e=="object"?e:{},r=await ft.get("/catalogues/shared",{params:n});if(r.status>=200&&r.status<300){const s=r.data;return s&&typeof s=="object"&&Array.isArray(s.data)&&typeof s.total=="number"?{total:s.total,page:s.page,limit:s.limit,data:s.data}:{total:0,page:1,limit:10,data:Array.isArray(s)?s:[]}}const i=r.data?.message||r.data?.error||"Failed to fetch shared catalogues";return t(i)}catch(n){const r=n.response?.data?.message||n.response?.data?.error||n.message||"Failed to fetch shared catalogues";return t(r)}}),kc={loading:!1,error:null,testConnectionResult:null,saveResult:null,updateDetailsResult:null,syncNowResult:null,updateIntegrationByChannelIdResult:null,updateIntegrationByChannelIdLoading:!1,updateIntegrationByChannelIdError:null,syncData:{tenantId:"",companyId:"",type:"",serverAddress:"",configs:{host:"",port:"",username:"",password:"",path:"",sync_frequency:"",sync_time:""},entity_type:"",mappings:[]},ftpColumns:[],preview:[],configs:{},integration_type:"",companyId:"",entity_type:"",existingMapping:null,mappingColumns:[],mappingColumnsLoading:!1,mappingColumnsError:null,sharedCatalogues:[],sharedCataloguesTotal:0,sharedCataloguesPage:1,sharedCataloguesLimit:10,sharedCataloguesLoading:!1,sharedCataloguesError:null,lastStableActiveCatalogsCount:null},Nf=Np({name:"productSettings",initialState:kc,reducers:{clearError:e=>{e.error=null},clearTestConnectionResult:e=>{e.testConnectionResult=null},clearSaveResult:e=>{e.saveResult=null},clearAll:e=>{e.testConnectionResult=null,e.saveResult=null,e.error=null,e.ftpColumns=[],e.preview=[],e.configs={},e.integration_type="",e.companyId="",e.entity_type="",e.existingMapping=null},clearTestConnectionData:e=>{e.ftpColumns=[],e.preview=[],e.configs={},e.integration_type="",e.companyId="",e.entity_type="",e.existingMapping=null,e.testConnectionResult=null},clearUpdateDetailsResult:e=>{e.updateDetailsResult=null},clearSyncNowResult:e=>{e.syncNowResult=null},clearMappingColumnsError:e=>{e.mappingColumnsError=null},clearMappingColumns:e=>{e.mappingColumns=[],e.mappingColumnsError=null},clearSharedCataloguesError:e=>{e.sharedCataloguesError=null},clearSharedCatalogues:e=>{e.sharedCatalogues=[],e.sharedCataloguesTotal=0,e.sharedCataloguesPage=1,e.sharedCataloguesLimit=10,e.sharedCataloguesError=null,e.lastStableActiveCatalogsCount=null},clearIntegrationByChannelIdResult:e=>{e.integrationByChannelIdResult=null,e.integrationByChannelIdError=null},setFtpSyncData:(e,t)=>{e.syncData={...e.syncData,...t.payload}},clearFtpSyncData:e=>{e.syncData=kc.syncData}},extraReducers:e=>{e.addCase(hi.pending,t=>{t.loading=!0,t.error=null,t.ftpColumns=[],t.preview=[],t.existingMapping=null}).addCase(hi.fulfilled,(t,n)=>{t.loading=!1,t.testConnectionResult=n.payload,t.error=null;const r=n.payload;t.ftpColumns=r.ftp_columns||[],t.preview=r.preview||[],t.configs=r.configs||{},t.integration_type=r.integration_type||"",t.companyId=r.companyId||r.tenantId||"";let i=r.entity_type||"";if(!i&&r.existing_mapping?.mappings?.length>0){const s=r.existing_mapping.mappings[0]?.target_table;(s==="products"||s==="storeInventory")&&(i="products")}t.entity_type=i,t.existingMapping=r.existing_mapping||null,r.existing_mapping?.mappings?.length||(t.syncData.mappings=[])}).addCase(hi.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to test FTP connection"}),e.addCase(yi.pending,t=>{t.mappingColumnsLoading=!0,t.mappingColumnsError=null}).addCase(yi.fulfilled,(t,n)=>{t.mappingColumnsLoading=!1,t.mappingColumns=Array.isArray(n.payload)?n.payload:[],t.mappingColumnsError=null}).addCase(yi.rejected,(t,n)=>{t.mappingColumnsLoading=!1,t.mappingColumnsError=n.payload||"Failed to fetch mapping columns"}),e.addCase(hn.pending,t=>{t.sharedCataloguesLoading=!0,t.sharedCataloguesError=null}).addCase(hn.fulfilled,(t,n)=>{t.sharedCataloguesLoading=!1;const r=n.payload;if(r&&typeof r=="object"&&Array.isArray(r.data)){t.sharedCatalogues=r.data;const i=typeof r.total=="number"?r.total:0;t.sharedCataloguesTotal=i,t.sharedCataloguesPage=typeof r.page=="number"?r.page:1,t.sharedCataloguesLimit=typeof r.limit=="number"?r.limit:10,i>0&&r.data.length>=i&&(t.lastStableActiveCatalogsCount=r.data.filter(s=>s.status===!0).length)}else t.sharedCatalogues=[];t.sharedCataloguesError=null}).addCase(hn.rejected,(t,n)=>{t.sharedCataloguesLoading=!1,t.sharedCataloguesError=n.payload||"Failed to fetch shared catalogues"}),e.addCase(gi.pending,t=>{t.loading=!0,t.error=null}).addCase(gi.fulfilled,(t,n)=>{t.loading=!1,t.saveResult=n.payload,t.error=null,t.syncData=kc.syncData}).addCase(gi.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to save FTP sync configuration"}),e.addCase(io.pending,t=>{t.loading=!0,t.error=null}).addCase(io.fulfilled,(t,n)=>{t.loading=!1,t.updateDetailsResult=n.payload,t.error=null}).addCase(io.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to update FTP sync details"}),e.addCase(mi.pending,t=>{t.loading=!0,t.error=null}).addCase(mi.fulfilled,(t,n)=>{t.loading=!1,t.syncNowResult=n.payload,t.error=null}).addCase(mi.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to start sync"}),e.addCase(bi.pending,t=>{t.updateIntegrationByChannelIdLoading=!0,t.updateIntegrationByChannelIdError=null}).addCase(bi.fulfilled,(t,n)=>{t.updateIntegrationByChannelIdLoading=!1,t.updateIntegrationByChannelIdResult=n.payload,t.updateIntegrationByChannelIdError=null}).addCase(bi.rejected,(t,n)=>{t.updateIntegrationByChannelIdLoading=!1,t.updateIntegrationByChannelIdError=n.payload||"Failed to update integration by channel ID"})}}),{clearError:nM,clearTestConnectionResult:rM,clearSaveResult:VS,clearAll:oM,clearTestConnectionData:iM,clearUpdateDetailsResult:sM,clearSyncNowResult:aM,setFtpSyncData:sa,clearFtpSyncData:lM,clearMappingColumnsError:cM,clearMappingColumns:dM,clearSharedCataloguesError:uM,clearSharedCatalogues:pM,clearUpdateIntegrationByChannelIdResult:fM}=Nf.actions,HS=Nf.reducer;var aa={},la={},Mf;function US(){if(Mf)return la;Mf=1,la.__esModule=!0,la.default=i;function e(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(c){return typeof c}:e=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},e(s)}function t(){}var n={getItem:t,setItem:t,removeItem:t};function r(s){if((typeof self>"u"?"undefined":e(self))!=="object"||!(s in self))return!1;try{var a=self[s],c="redux-persist ".concat(s," test");a.setItem(c,"test"),a.getItem(c),a.removeItem(c)}catch{return process.env.NODE_ENV!=="production"&&console.warn("redux-persist ".concat(s," test failed, persistence will be disabled.")),!1}return!0}function i(s){var a="".concat(s,"Storage");return r(a)?self[a]:(process.env.NODE_ENV!=="production"&&console.error("redux-persist failed to create sync storage. falling back to noop storage."),n)}return la}var Ff;function RS(){if(Ff)return aa;Ff=1,aa.__esModule=!0,aa.default=n;var e=t(US());function t(r){return r&&r.__esModule?r:{default:r}}function n(r){var i=(0,e.default)(r);return{getItem:function(a){return new Promise(function(c,d){c(i.getItem(a))})},setItem:function(a,c){return new Promise(function(d,p){d(i.setItem(a,c))})},removeItem:function(a){return new Promise(function(c,d){c(i.removeItem(a))})}}}return aa}var qS=RS();const YS={key:"auth",storage:typeof window<"u"?Lu(qS)("local"):{getItem(){return Promise.resolve(null)},setItem(e,t){return Promise.resolve(t)},removeItem(){return Promise.resolve()}},whitelist:["auth"]},GS=Ku({dashboard:WS,productSettings:HS}),KS=rv(YS,GS),Df=Cx({reducer:KS,middleware:e=>e({serializableCheck:!1})}),XS=cv(Df),JS=N.createContext(null),QS=({children:e,apiUrl:t,authToken:n})=>(N.useEffect(()=>{t&&BS(t)},[t]),N.useEffect(()=>{_S(n||null)},[n]),l.jsx(JS.Provider,{value:{apiUrl:t},children:e})),xi={black:"#000",white:"#fff"},so={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},ao={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},lo={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},co={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},uo={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},vi={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},ZS={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Fn(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const Si="$$material";function ca(){return ca=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ca.apply(null,arguments)}function e1(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]}function t1(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var n1=(function(){function e(n){var r=this;this._insertTag=function(i){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,s),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(t1(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=e1(i);try{s.insertRule(r,s.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Wt="-ms-",da="-moz-",Ge="-webkit-",Bf="comm",Oc="rule",Ic="decl",r1="@import",_f="@keyframes",o1="@layer",i1=Math.abs,ua=String.fromCharCode,s1=Object.assign;function a1(e,t){return Bt(e,0)^45?(((t<<2^Bt(e,0))<<2^Bt(e,1))<<2^Bt(e,2))<<2^Bt(e,3):0}function $f(e){return e.trim()}function l1(e,t){return(e=t.exec(e))?e[0]:e}function Ke(e,t,n){return e.replace(t,n)}function Nc(e,t){return e.indexOf(t)}function Bt(e,t){return e.charCodeAt(t)|0}function wi(e,t,n){return e.slice(t,n)}function Dn(e){return e.length}function Mc(e){return e.length}function pa(e,t){return t.push(e),e}function c1(e,t){return e.map(t).join("")}var fa=1,po=1,zf=0,Zt=0,Ot=0,fo="";function ha(e,t,n,r,i,s,a){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:fa,column:po,length:a,return:""}}function Ci(e,t){return s1(ha("",null,null,"",null,null,0),e,{length:-e.length},t)}function d1(){return Ot}function u1(){return Ot=Zt>0?Bt(fo,--Zt):0,po--,Ot===10&&(po=1,fa--),Ot}function sn(){return Ot=Zt<zf?Bt(fo,Zt++):0,po++,Ot===10&&(po=1,fa++),Ot}function Bn(){return Bt(fo,Zt)}function ga(){return Zt}function Ei(e,t){return wi(fo,e,t)}function Ti(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 Lf(e){return fa=po=1,zf=Dn(fo=e),Zt=0,[]}function jf(e){return fo="",e}function ma(e){return $f(Ei(Zt-1,Fc(e===91?e+2:e===40?e+1:e)))}function p1(e){for(;(Ot=Bn())&&Ot<33;)sn();return Ti(e)>2||Ti(Ot)>3?"":" "}function f1(e,t){for(;--t&&sn()&&!(Ot<48||Ot>102||Ot>57&&Ot<65||Ot>70&&Ot<97););return Ei(e,ga()+(t<6&&Bn()==32&&sn()==32))}function Fc(e){for(;sn();)switch(Ot){case e:return Zt;case 34:case 39:e!==34&&e!==39&&Fc(Ot);break;case 40:e===41&&Fc(e);break;case 92:sn();break}return Zt}function h1(e,t){for(;sn()&&e+Ot!==57;)if(e+Ot===84&&Bn()===47)break;return"/*"+Ei(t,Zt-1)+"*"+ua(e===47?e:sn())}function g1(e){for(;!Ti(Bn());)sn();return Ei(e,Zt)}function m1(e){return jf(ya("",null,null,null,[""],e=Lf(e),0,[0],e))}function ya(e,t,n,r,i,s,a,c,d){for(var p=0,u=0,h=a,m=0,y=0,g=0,f=1,b=1,x=1,E=0,w="",S=i,T=s,v=r,k=w;b;)switch(g=E,E=sn()){case 40:if(g!=108&&Bt(k,h-1)==58){Nc(k+=Ke(ma(E),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:k+=ma(E);break;case 9:case 10:case 13:case 32:k+=p1(g);break;case 92:k+=f1(ga()-1,7);continue;case 47:switch(Bn()){case 42:case 47:pa(y1(h1(sn(),ga()),t,n),d);break;default:k+="/"}break;case 123*f:c[p++]=Dn(k)*x;case 125*f:case 59:case 0:switch(E){case 0:case 125:b=0;case 59+u:x==-1&&(k=Ke(k,/\f/g,"")),y>0&&Dn(k)-h&&pa(y>32?Vf(k+";",r,n,h-1):Vf(Ke(k," ","")+";",r,n,h-2),d);break;case 59:k+=";";default:if(pa(v=Wf(k,t,n,p,u,i,c,w,S=[],T=[],h),s),E===123)if(u===0)ya(k,t,v,v,S,s,h,c,T);else switch(m===99&&Bt(k,3)===110?100:m){case 100:case 108:case 109:case 115:ya(e,v,v,r&&pa(Wf(e,v,v,0,0,i,c,w,i,S=[],h),T),i,T,h,c,r?S:T);break;default:ya(k,v,v,v,[""],T,0,c,T)}}p=u=y=0,f=x=1,w=k="",h=a;break;case 58:h=1+Dn(k),y=g;default:if(f<1){if(E==123)--f;else if(E==125&&f++==0&&u1()==125)continue}switch(k+=ua(E),E*f){case 38:x=u>0?1:(k+="\f",-1);break;case 44:c[p++]=(Dn(k)-1)*x,x=1;break;case 64:Bn()===45&&(k+=ma(sn())),m=Bn(),u=h=Dn(w=k+=g1(ga())),E++;break;case 45:g===45&&Dn(k)==2&&(f=0)}}return s}function Wf(e,t,n,r,i,s,a,c,d,p,u){for(var h=i-1,m=i===0?s:[""],y=Mc(m),g=0,f=0,b=0;g<r;++g)for(var x=0,E=wi(e,h+1,h=i1(f=a[g])),w=e;x<y;++x)(w=$f(f>0?m[x]+" "+E:Ke(E,/&\f/g,m[x])))&&(d[b++]=w);return ha(e,t,n,i===0?Oc:c,d,p,u)}function y1(e,t,n){return ha(e,t,n,Bf,ua(d1()),wi(e,2,-2),0)}function Vf(e,t,n,r){return ha(e,t,n,Ic,wi(e,0,r),wi(e,r+1,-1),r)}function ho(e,t){for(var n="",r=Mc(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function b1(e,t,n,r){switch(e.type){case o1:if(e.children.length)break;case r1:case Ic:return e.return=e.return||e.value;case Bf:return"";case _f:return e.return=e.value+"{"+ho(e.children,r)+"}";case Oc:e.value=e.props.join(",")}return Dn(n=ho(e.children,r))?e.return=e.value+"{"+n+"}":""}function x1(e){var t=Mc(e);return function(n,r,i,s){for(var a="",c=0;c<t;c++)a+=e[c](n,r,i,s)||"";return a}}function v1(e){return function(t){t.root||(t=t.return)&&e(t)}}function Hf(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var S1=function(t,n,r){for(var i=0,s=0;i=s,s=Bn(),i===38&&s===12&&(n[r]=1),!Ti(s);)sn();return Ei(t,Zt)},w1=function(t,n){var r=-1,i=44;do switch(Ti(i)){case 0:i===38&&Bn()===12&&(n[r]=1),t[r]+=S1(Zt-1,n,r);break;case 2:t[r]+=ma(i);break;case 4:if(i===44){t[++r]=Bn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=ua(i)}while(i=sn());return t},C1=function(t,n){return jf(w1(Lf(t),n))},Uf=new WeakMap,E1=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Uf.get(r))&&!i){Uf.set(t,!0);for(var s=[],a=C1(n,s),c=r.props,d=0,p=0;d<a.length;d++)for(var u=0;u<c.length;u++,p++)t.props[p]=s[d]?a[d].replace(/&\f/g,c[u]):c[u]+" "+a[d]}}},T1=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Rf(e,t){switch(a1(e,t)){case 5103:return Ge+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ge+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ge+e+da+e+Wt+e+e;case 6828:case 4268:return Ge+e+Wt+e+e;case 6165:return Ge+e+Wt+"flex-"+e+e;case 5187:return Ge+e+Ke(e,/(\w+).+(:[^]+)/,Ge+"box-$1$2"+Wt+"flex-$1$2")+e;case 5443:return Ge+e+Wt+"flex-item-"+Ke(e,/flex-|-self/,"")+e;case 4675:return Ge+e+Wt+"flex-line-pack"+Ke(e,/align-content|flex-|-self/,"")+e;case 5548:return Ge+e+Wt+Ke(e,"shrink","negative")+e;case 5292:return Ge+e+Wt+Ke(e,"basis","preferred-size")+e;case 6060:return Ge+"box-"+Ke(e,"-grow","")+Ge+e+Wt+Ke(e,"grow","positive")+e;case 4554:return Ge+Ke(e,/([^-])(transform)/g,"$1"+Ge+"$2")+e;case 6187:return Ke(Ke(Ke(e,/(zoom-|grab)/,Ge+"$1"),/(image-set)/,Ge+"$1"),e,"")+e;case 5495:case 3959:return Ke(e,/(image-set\([^]*)/,Ge+"$1$`$1");case 4968:return Ke(Ke(e,/(.+:)(flex-)?(.*)/,Ge+"box-pack:$3"+Wt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ge+e+e;case 4095:case 3583:case 4068:case 2532:return Ke(e,/(.+)-inline(.+)/,Ge+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Dn(e)-1-t>6)switch(Bt(e,t+1)){case 109:if(Bt(e,t+4)!==45)break;case 102:return Ke(e,/(.+:)(.+)-([^]+)/,"$1"+Ge+"$2-$3$1"+da+(Bt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Nc(e,"stretch")?Rf(Ke(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Bt(e,t+1)!==115)break;case 6444:switch(Bt(e,Dn(e)-3-(~Nc(e,"!important")&&10))){case 107:return Ke(e,":",":"+Ge)+e;case 101:return Ke(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ge+(Bt(e,14)===45?"inline-":"")+"box$3$1"+Ge+"$2$3$1"+Wt+"$2box$3")+e}break;case 5936:switch(Bt(e,t+11)){case 114:return Ge+e+Wt+Ke(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ge+e+Wt+Ke(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ge+e+Wt+Ke(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ge+e+Wt+e+e}return e}var A1=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Ic:t.return=Rf(t.value,t.length);break;case _f:return ho([Ci(t,{value:Ke(t.value,"@","@"+Ge)})],i);case Oc:if(t.length)return c1(t.props,function(s){switch(l1(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ho([Ci(t,{props:[Ke(s,/:(read-\w+)/,":"+da+"$1")]})],i);case"::placeholder":return ho([Ci(t,{props:[Ke(s,/:(plac\w+)/,":"+Ge+"input-$1")]}),Ci(t,{props:[Ke(s,/:(plac\w+)/,":"+da+"$1")]}),Ci(t,{props:[Ke(s,/:(plac\w+)/,Wt+"input-$1")]})],i)}return""})}},P1=[A1],k1=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(f){var b=f.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var i=t.stylisPlugins||P1,s={},a,c=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(f){for(var b=f.getAttribute("data-emotion").split(" "),x=1;x<b.length;x++)s[b[x]]=!0;c.push(f)});var d,p=[E1,T1];{var u,h=[b1,v1(function(f){u.insert(f)})],m=x1(p.concat(i,h)),y=function(b){return ho(m1(b),m)};d=function(b,x,E,w){u=E,y(b?b+"{"+x.styles+"}":x.styles),w&&(g.inserted[x.name]=!0)}}var g={key:n,sheet:new n1({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:d};return g.sheet.hydrate(c),g},ba={exports:{}},Je={};var qf;function O1(){if(qf)return Je;qf=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function w(T){if(typeof T=="object"&&T!==null){var v=T.$$typeof;switch(v){case t:switch(T=T.type,T){case d:case p:case r:case s:case i:case h:return T;default:switch(T=T&&T.$$typeof,T){case c:case u:case g:case y:case a:return T;default:return v}}case n:return v}}}function S(T){return w(T)===p}return Je.AsyncMode=d,Je.ConcurrentMode=p,Je.ContextConsumer=c,Je.ContextProvider=a,Je.Element=t,Je.ForwardRef=u,Je.Fragment=r,Je.Lazy=g,Je.Memo=y,Je.Portal=n,Je.Profiler=s,Je.StrictMode=i,Je.Suspense=h,Je.isAsyncMode=function(T){return S(T)||w(T)===d},Je.isConcurrentMode=S,Je.isContextConsumer=function(T){return w(T)===c},Je.isContextProvider=function(T){return w(T)===a},Je.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},Je.isForwardRef=function(T){return w(T)===u},Je.isFragment=function(T){return w(T)===r},Je.isLazy=function(T){return w(T)===g},Je.isMemo=function(T){return w(T)===y},Je.isPortal=function(T){return w(T)===n},Je.isProfiler=function(T){return w(T)===s},Je.isStrictMode=function(T){return w(T)===i},Je.isSuspense=function(T){return w(T)===h},Je.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===r||T===p||T===s||T===i||T===h||T===m||typeof T=="object"&&T!==null&&(T.$$typeof===g||T.$$typeof===y||T.$$typeof===a||T.$$typeof===c||T.$$typeof===u||T.$$typeof===b||T.$$typeof===x||T.$$typeof===E||T.$$typeof===f)},Je.typeOf=w,Je}var Qe={};var Yf;function I1(){return Yf||(Yf=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function w(q){return typeof q=="string"||typeof q=="function"||q===r||q===p||q===s||q===i||q===h||q===m||typeof q=="object"&&q!==null&&(q.$$typeof===g||q.$$typeof===y||q.$$typeof===a||q.$$typeof===c||q.$$typeof===u||q.$$typeof===b||q.$$typeof===x||q.$$typeof===E||q.$$typeof===f)}function S(q){if(typeof q=="object"&&q!==null){var ie=q.$$typeof;switch(ie){case t:var Q=q.type;switch(Q){case d:case p:case r:case s:case i:case h:return Q;default:var pe=Q&&Q.$$typeof;switch(pe){case c:case u:case g:case y:case a:return pe;default:return ie}}case n:return ie}}}var T=d,v=p,k=c,M=a,_=t,z=u,F=r,C=g,I=y,$=n,D=s,L=i,V=h,Y=!1;function U(q){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),B(q)||S(q)===d}function B(q){return S(q)===p}function O(q){return S(q)===c}function j(q){return S(q)===a}function H(q){return typeof q=="object"&&q!==null&&q.$$typeof===t}function G(q){return S(q)===u}function X(q){return S(q)===r}function te(q){return S(q)===g}function le(q){return S(q)===y}function ce(q){return S(q)===n}function ae(q){return S(q)===s}function Z(q){return S(q)===i}function R(q){return S(q)===h}Qe.AsyncMode=T,Qe.ConcurrentMode=v,Qe.ContextConsumer=k,Qe.ContextProvider=M,Qe.Element=_,Qe.ForwardRef=z,Qe.Fragment=F,Qe.Lazy=C,Qe.Memo=I,Qe.Portal=$,Qe.Profiler=D,Qe.StrictMode=L,Qe.Suspense=V,Qe.isAsyncMode=U,Qe.isConcurrentMode=B,Qe.isContextConsumer=O,Qe.isContextProvider=j,Qe.isElement=H,Qe.isForwardRef=G,Qe.isFragment=X,Qe.isLazy=te,Qe.isMemo=le,Qe.isPortal=ce,Qe.isProfiler=ae,Qe.isStrictMode=Z,Qe.isSuspense=R,Qe.isValidElementType=w,Qe.typeOf=S})()),Qe}var Gf;function Dc(){return Gf||(Gf=1,process.env.NODE_ENV==="production"?ba.exports=O1():ba.exports=I1()),ba.exports}var Bc,Kf;function N1(){if(Kf)return Bc;Kf=1;var e=Dc(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=r,s[e.Memo]=i;function a(g){return e.isMemo(g)?i:s[g.$$typeof]||t}var c=Object.defineProperty,d=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,m=Object.prototype;function y(g,f,b){if(typeof f!="string"){if(m){var x=h(f);x&&x!==m&&y(g,x,b)}var E=d(f);p&&(E=E.concat(p(f)));for(var w=a(g),S=a(f),T=0;T<E.length;++T){var v=E[T];if(!n[v]&&!(b&&b[v])&&!(S&&S[v])&&!(w&&w[v])){var k=u(f,v);try{c(g,v,k)}catch{}}}}return g}return Bc=y,Bc}N1();var M1=!0;function Xf(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var _c=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||M1===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},$c=function(t,n,r){_c(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+i:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function F1(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var D1={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},B1=/[A-Z]|^ms/g,_1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Jf=function(t){return t.charCodeAt(1)===45},Qf=function(t){return t!=null&&typeof t!="boolean"},zc=Hf(function(e){return Jf(e)?e:e.replace(B1,"-$&").toLowerCase()}),Zf=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(_1,function(r,i,s){return _n={name:i,styles:s,next:_n},i})}return D1[t]!==1&&!Jf(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ai(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return _n={name:i.name,styles:i.styles,next:_n},i.name;var s=n;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)_n={name:a.name,styles:a.styles,next:_n},a=a.next;var c=s.styles+";";return c}return $1(e,t,n)}case"function":{if(e!==void 0){var d=_n,p=n(e);return _n=d,Ai(e,t,p)}break}}var u=n;if(t==null)return u;var h=t[u];return h!==void 0?h:u}function $1(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Ai(e,t,n[i])+";";else for(var s in n){var a=n[s];if(typeof a!="object"){var c=a;t!=null&&t[c]!==void 0?r+=s+"{"+t[c]+"}":Qf(c)&&(r+=zc(s)+":"+Zf(s,c)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var d=0;d<a.length;d++)Qf(a[d])&&(r+=zc(s)+":"+Zf(s,a[d])+";");else{var p=Ai(e,t,a);switch(s){case"animation":case"animationName":{r+=zc(s)+":"+p+";";break}default:r+=s+"{"+p+"}"}}}return r}var eh=/label:\s*([^\s;{]+)\s*(;|$)/g,_n;function Pi(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";_n=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,i+=Ai(n,t,s);else{var a=s;i+=a[0]}for(var c=1;c<e.length;c++)if(i+=Ai(n,t,e[c]),r){var d=s;i+=d[c]}eh.lastIndex=0;for(var p="",u;(u=eh.exec(i))!==null;)p+="-"+u[1];var h=F1(i)+p;return{name:h,styles:i,next:_n}}var z1=function(t){return t()},th=A.useInsertionEffect?A.useInsertionEffect:!1,nh=th||z1,rh=th||A.useLayoutEffect,oh=A.createContext(typeof HTMLElement<"u"?k1({key:"css"}):null);oh.Provider;var Lc=function(t){return N.forwardRef(function(n,r){var i=N.useContext(oh);return t(n,i,r)})},xa=A.createContext({}),jc={}.hasOwnProperty,Wc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",L1=function(t,n){var r={};for(var i in n)jc.call(n,i)&&(r[i]=n[i]);return r[Wc]=t,r},j1=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return _c(n,r,i),nh(function(){return $c(n,r,i)}),null},W1=Lc(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Wc],s=[r],a="";typeof e.className=="string"?a=Xf(t.registered,s,e.className):e.className!=null&&(a=e.className+" ");var c=Pi(s,void 0,A.useContext(xa));a+=t.key+"-"+c.name;var d={};for(var p in e)jc.call(e,p)&&p!=="css"&&p!==Wc&&(d[p]=e[p]);return d.className=a,n&&(d.ref=n),A.createElement(A.Fragment,null,A.createElement(j1,{cache:t,serialized:c,isStringTag:typeof i=="string"}),A.createElement(i,d))}),V1=W1,ih=function(t,n){var r=arguments;if(n==null||!jc.call(n,"css"))return A.createElement.apply(void 0,r);var i=r.length,s=new Array(i);s[0]=V1,s[1]=L1(t,n);for(var a=2;a<i;a++)s[a]=r[a];return A.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(ih||(ih={}));var H1=Lc(function(e,t){var n=e.styles,r=Pi([n],void 0,A.useContext(xa)),i=A.useRef();return rh(function(){var s=t.key+"-global",a=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),c=!1,d=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),d!==null&&(c=!0,d.setAttribute("data-emotion",s),a.hydrate([d])),i.current=[a,c],function(){a.flush()}},[t]),rh(function(){var s=i.current,a=s[0],c=s[1];if(c){s[1]=!1;return}if(r.next!==void 0&&$c(t,r.next,!0),a.tags.length){var d=a.tags[a.tags.length-1].nextElementSibling;a.before=d,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function go(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Pi(t)}function mr(){var e=go.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var U1=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|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|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|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|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,R1=Hf(function(e){return U1.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),q1=R1,Y1=function(t){return t!=="theme"},sh=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?q1:Y1},ah=function(t,n,r){var i;if(n){var s=n.shouldForwardProp;i=t.__emotion_forwardProp&&s?function(a){return t.__emotion_forwardProp(a)&&s(a)}:s}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},G1=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return _c(n,r,i),nh(function(){return $c(n,r,i)}),null},K1=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,s,a;n!==void 0&&(s=n.label,a=n.target);var c=ah(t,n,r),d=c||sh(i),p=!d("as");return function(){var u=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&h.push("label:"+s+";"),u[0]==null||u[0].raw===void 0)h.push.apply(h,u);else{var m=u[0];h.push(m[0]);for(var y=u.length,g=1;g<y;g++)h.push(u[g],m[g])}var f=Lc(function(b,x,E){var w=p&&b.as||i,S="",T=[],v=b;if(b.theme==null){v={};for(var k in b)v[k]=b[k];v.theme=A.useContext(xa)}typeof b.className=="string"?S=Xf(x.registered,T,b.className):b.className!=null&&(S=b.className+" ");var M=Pi(h.concat(T),x.registered,v);S+=x.key+"-"+M.name,a!==void 0&&(S+=" "+a);var _=p&&c===void 0?sh(w):d,z={};for(var F in b)p&&F==="as"||_(F)&&(z[F]=b[F]);return z.className=S,E&&(z.ref=E),A.createElement(A.Fragment,null,A.createElement(G1,{cache:x,serialized:M,isStringTag:typeof w=="string"}),A.createElement(w,z))});return f.displayName=s!==void 0?s:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=i,f.__emotion_styles=h,f.__emotion_forwardProp=c,Object.defineProperty(f,"toString",{value:function(){return"."+a}}),f.withComponent=function(b,x){var E=e(b,ca({},n,x,{shouldForwardProp:ah(f,x,!0)}));return E.apply(void 0,h)},f}},X1=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Vc=K1.bind(null);X1.forEach(function(e){Vc[e]=Vc(e)});var va={exports:{}};var Hc,lh;function J1(){if(lh)return Hc;lh=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(d.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(u){p[u]=u}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Hc=i()?Object.assign:function(s,a){for(var c,d=r(s),p,u=1;u<arguments.length;u++){c=Object(arguments[u]);for(var h in c)t.call(c,h)&&(d[h]=c[h]);if(e){p=e(c);for(var m=0;m<p.length;m++)n.call(c,p[m])&&(d[p[m]]=c[p[m]])}}return d},Hc}var Uc,ch;function Rc(){if(ch)return Uc;ch=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Uc=e,Uc}var qc,dh;function uh(){return dh||(dh=1,qc=Function.call.bind(Object.prototype.hasOwnProperty)),qc}var Yc,ph;function Q1(){if(ph)return Yc;ph=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Rc(),n={},r=uh();e=function(s){var a="Warning: "+s;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(s,a,c,d,p){if(process.env.NODE_ENV!=="production"){for(var u in s)if(r(s,u)){var h;try{if(typeof s[u]!="function"){var m=Error((d||"React class")+": "+c+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}h=s[u](a,u,d,c,null,t)}catch(g){h=g}if(h&&!(h instanceof Error)&&e((d||"React class")+": type specification of "+c+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in n)){n[h.message]=!0;var y=p?p():"";e("Failed "+c+" type: "+h.message+(y??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Yc=i,Yc}var Gc,fh;function Z1(){if(fh)return Gc;fh=1;var e=Dc(),t=J1(),n=Rc(),r=uh(),i=Q1(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var d="Warning: "+c;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function a(){return null}return Gc=function(c,d){var p=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function h(B){var O=B&&(p&&B[p]||B[u]);if(typeof O=="function")return O}var m="<<anonymous>>",y={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:E(),arrayOf:w,element:S(),elementType:T(),instanceOf:v,node:z(),objectOf:M,oneOf:k,oneOfType:_,shape:C,exact:I};function g(B,O){return B===O?B!==0||1/B===1/O:B!==B&&O!==O}function f(B,O){this.message=B,this.data=O&&typeof O=="object"?O:{},this.stack=""}f.prototype=Error.prototype;function b(B){if(process.env.NODE_ENV!=="production")var O={},j=0;function H(X,te,le,ce,ae,Z,R){if(ce=ce||m,Z=Z||le,R!==n){if(d){var q=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 q.name="Invariant Violation",q}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ie=ce+":"+le;!O[ie]&&j<3&&(s("You are manually calling a React.PropTypes validation function for the `"+Z+"` prop on `"+ce+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),O[ie]=!0,j++)}}return te[le]==null?X?te[le]===null?new f("The "+ae+" `"+Z+"` is marked as required "+("in `"+ce+"`, but its value is `null`.")):new f("The "+ae+" `"+Z+"` is marked as required in "+("`"+ce+"`, but its value is `undefined`.")):null:B(te,le,ce,ae,Z)}var G=H.bind(null,!1);return G.isRequired=H.bind(null,!0),G}function x(B){function O(j,H,G,X,te,le){var ce=j[H],ae=L(ce);if(ae!==B){var Z=V(ce);return new f("Invalid "+X+" `"+te+"` of type "+("`"+Z+"` supplied to `"+G+"`, expected ")+("`"+B+"`."),{expectedType:B})}return null}return b(O)}function E(){return b(a)}function w(B){function O(j,H,G,X,te){if(typeof B!="function")return new f("Property `"+te+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var le=j[H];if(!Array.isArray(le)){var ce=L(le);return new f("Invalid "+X+" `"+te+"` of type "+("`"+ce+"` supplied to `"+G+"`, expected an array."))}for(var ae=0;ae<le.length;ae++){var Z=B(le,ae,G,X,te+"["+ae+"]",n);if(Z instanceof Error)return Z}return null}return b(O)}function S(){function B(O,j,H,G,X){var te=O[j];if(!c(te)){var le=L(te);return new f("Invalid "+G+" `"+X+"` of type "+("`"+le+"` supplied to `"+H+"`, expected a single ReactElement."))}return null}return b(B)}function T(){function B(O,j,H,G,X){var te=O[j];if(!e.isValidElementType(te)){var le=L(te);return new f("Invalid "+G+" `"+X+"` of type "+("`"+le+"` supplied to `"+H+"`, expected a single ReactElement type."))}return null}return b(B)}function v(B){function O(j,H,G,X,te){if(!(j[H]instanceof B)){var le=B.name||m,ce=U(j[H]);return new f("Invalid "+X+" `"+te+"` of type "+("`"+ce+"` supplied to `"+G+"`, expected ")+("instance of `"+le+"`."))}return null}return b(O)}function k(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),a;function O(j,H,G,X,te){for(var le=j[H],ce=0;ce<B.length;ce++)if(g(le,B[ce]))return null;var ae=JSON.stringify(B,function(R,q){var ie=V(q);return ie==="symbol"?String(q):q});return new f("Invalid "+X+" `"+te+"` of value `"+String(le)+"` "+("supplied to `"+G+"`, expected one of "+ae+"."))}return b(O)}function M(B){function O(j,H,G,X,te){if(typeof B!="function")return new f("Property `"+te+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var le=j[H],ce=L(le);if(ce!=="object")return new f("Invalid "+X+" `"+te+"` of type "+("`"+ce+"` supplied to `"+G+"`, expected an object."));for(var ae in le)if(r(le,ae)){var Z=B(le,ae,G,X,te+"."+ae,n);if(Z instanceof Error)return Z}return null}return b(O)}function _(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var O=0;O<B.length;O++){var j=B[O];if(typeof j!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(j)+" at index "+O+"."),a}function H(G,X,te,le,ce){for(var ae=[],Z=0;Z<B.length;Z++){var R=B[Z],q=R(G,X,te,le,ce,n);if(q==null)return null;q.data&&r(q.data,"expectedType")&&ae.push(q.data.expectedType)}var ie=ae.length>0?", expected one of type ["+ae.join(", ")+"]":"";return new f("Invalid "+le+" `"+ce+"` supplied to "+("`"+te+"`"+ie+"."))}return b(H)}function z(){function B(O,j,H,G,X){return $(O[j])?null:new f("Invalid "+G+" `"+X+"` supplied to "+("`"+H+"`, expected a ReactNode."))}return b(B)}function F(B,O,j,H,G){return new f((B||"React class")+": "+O+" type `"+j+"."+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function C(B){function O(j,H,G,X,te){var le=j[H],ce=L(le);if(ce!=="object")return new f("Invalid "+X+" `"+te+"` of type `"+ce+"` "+("supplied to `"+G+"`, expected `object`."));for(var ae in B){var Z=B[ae];if(typeof Z!="function")return F(G,X,te,ae,V(Z));var R=Z(le,ae,G,X,te+"."+ae,n);if(R)return R}return null}return b(O)}function I(B){function O(j,H,G,X,te){var le=j[H],ce=L(le);if(ce!=="object")return new f("Invalid "+X+" `"+te+"` of type `"+ce+"` "+("supplied to `"+G+"`, expected `object`."));var ae=t({},j[H],B);for(var Z in ae){var R=B[Z];if(r(B,Z)&&typeof R!="function")return F(G,X,te,Z,V(R));if(!R)return new f("Invalid "+X+" `"+te+"` key `"+Z+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(j[H],null," ")+`
|
|
25
|
-
Valid keys: `+JSON.stringify(Object.keys(
|
|
24
|
+
`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ir(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&Js.assertOptions(r,{silentJSONParsing:Nn.transitional(Nn.boolean),forcedJSONParsing:Nn.transitional(Nn.boolean),clarifyTimeoutError:Nn.transitional(Nn.boolean)},!1),i!=null&&(Q.isFunction(i)?n.paramsSerializer={serialize:i}:Js.assertOptions(i,{encode:Nn.function,serialize:Nn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Js.assertOptions(n,{baseUrl:Nn.spelling("baseURL"),withXsrfToken:Nn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&Q.merge(s.common,s[n.method]);s&&Q.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),n.headers=Jt.concat(a,s);const c=[];let d=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(d=d&&f.synchronous,c.unshift(f.fulfilled,f.rejected))});const p=[];this.interceptors.response.forEach(function(f){p.push(f.fulfilled,f.rejected)});let u,h=0,m;if(!d){const g=[Ef.bind(this),void 0];for(g.unshift(...c),g.push(...p),m=g.length,u=Promise.resolve(n);h<m;)u=u.then(g[h++],g[h++]);return u}m=c.length;let y=n;for(;h<m;){const g=c[h++],f=c[h++];try{y=g(y)}catch(b){f.call(this,b);break}}try{u=Ef.call(this,y)}catch(g){return Promise.reject(g)}for(h=0,m=p.length;h<m;)u=u.then(p[h++],p[h++]);return u}getUri(t){t=Ir(this.defaults,t);const n=ff(t.baseURL,t.url,t.allowAbsoluteUrls);return rf(n,t.params,t.paramsSerializer)}};Q.forEach(["delete","get","head","options"],function(t){Nr.prototype[t]=function(n,r){return this.request(Ir(r||{},{method:t,url:n,data:(r||{}).data}))}}),Q.forEach(["post","put","patch"],function(t){function n(r){return function(s,a,c){return this.request(Ir(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}Nr.prototype[t]=n(),Nr.prototype[t+"Form"]=n(!0)});let IS=class Oy{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const a=new Promise(c=>{r.subscribe(c),s=c}).then(i);return a.cancel=function(){r.unsubscribe(s)},a},t(function(s,a,c){r.reason||(r.reason=new ro(s,a,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Oy(function(i){t=i}),cancel:t}}};function NS(e){return function(n){return e.apply(null,n)}}function MS(e){return Q.isObject(e)&&e.isAxiosError===!0}const Ec={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent: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(Ec).forEach(([e,t])=>{Ec[t]=e});function Pf(e){const t=new Nr(e),n=Vp(Nr.prototype.request,t);return Q.extend(n,Nr.prototype,t,{allOwnKeys:!0}),Q.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Pf(Ir(e,i))},n}const bt=Pf(li);bt.Axios=Nr,bt.CanceledError=ro,bt.CancelToken=IS,bt.isCancel=cf,bt.VERSION=Tf,bt.toFormData=qs,bt.AxiosError=je,bt.Cancel=bt.CanceledError,bt.all=function(t){return Promise.all(t)},bt.spread=NS,bt.isAxiosError=MS,bt.mergeConfig=Ir,bt.AxiosHeaders=Jt,bt.formToJSON=e=>af(Q.isHTMLForm(e)?new FormData(e):e),bt.getAdapter=Cf.getAdapter,bt.HttpStatusCode=Ec,bt.default=bt;const{Axios:$5,AxiosError:z5,CanceledError:L5,isCancel:j5,CancelToken:W5,VERSION:V5,all:H5,Cancel:U5,isAxiosError:R5,spread:q5,toFormData:Y5,AxiosHeaders:G5,HttpStatusCode:K5,formToJSON:X5,getAdapter:J5,mergeConfig:Q5}=bt;function Qs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var FS={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Tc(e,t){function n(i,s,a){if(!(typeof document>"u")){a=Qs({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var d in a)a[d]&&(c+="; "+d,a[d]!==!0&&(c+="="+a[d].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+c}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],a={},c=0;c<s.length;c++){var d=s[c].split("="),p=d.slice(1).join("=");try{var u=decodeURIComponent(d[0]);if(a[u]=e.read(p,u),i===u)break}catch{}}return i?a[i]:a}}return Object.create({set:n,get:r,remove:function(i,s){n(i,"",Qs({},s,{expires:-1}))},withAttributes:function(i){return Tc(this.converter,Qs({},this.attributes,i))},withConverter:function(i){return Tc(Qs({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var tr=Tc(FS,{path:"/"});const DS={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};let oo="https://omnichannel-apiv1.airaops.com/";try{if(typeof{url:typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Nl&&Nl.tagName.toUpperCase()==="SCRIPT"&&Nl.src||new URL("product-app.umd.js",document.baseURI).href}<"u"&&DS?.VITE_API_URL)oo=void 0;else{const e=typeof process<"u"?process:null;e&&e.env&&e.env.VITE_API_URL&&(oo=process.env.VITE_API_URL)}}catch{}const BS=e=>{oo=e,ft.defaults.baseURL=oo},_S=e=>{e?tr.set("token",e,{secure:!0,sameSite:"Strict"}):tr.remove("token")},$S=()=>tr.get("token")||null,ft=bt.create({baseURL:oo,transformRequest:[function(e,t){const n=$S();return n?t.Authorization=`Bearer ${n}`:delete t.Authorization,JSON.stringify(e)}],headers:{Accept:"application/json","Content-Type":"application/json"}});let Ac=!1,Pc=null;ft.interceptors.response.use(e=>e,async e=>{const t=e.config,n=e.response;if(n&&(n.status===401||n.status===402)){const r=tr.get("refreshToken");if(r)try{Ac||(Ac=!0,Pc=bt.post(`${oo}/api/v1/auth/refresh`,{},{headers:{Authorization:`Bearer ${r}`}}));const i=await Pc,{token:s,refreshToken:a}=i.data;return tr.set("token",s,{secure:!0,sameSite:"Strict"}),tr.set("refreshToken",a),localStorage.setItem("justRefreshed","true"),t.headers.Authorization=`Bearer ${s}`,ft(t)}catch{(t?.url||t?.baseURL+t?.url||"").includes("/auth/verify")||(tr.remove("token"),tr.remove("refreshToken"),localStorage.clear(),window.location.href="/")}finally{Ac=!1,Pc=null}else(t?.url||t?.baseURL+t?.url||"").includes("/auth/verify")||(tr.remove("token"),localStorage.clear(),window.location.href="/")}return Promise.reject(e)});const di=Tt("dashboard/fetchMetrics",async(e={},{rejectWithValue:t})=>{try{const i=(await ft.get("/dashboard/metrics",{params:e})).data||{};return i.data||i}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch dashboard metrics";return t(r)}}),Zs=Tt("dashboard/fetchProductDashboardMetrics",async(e={},{rejectWithValue:t})=>{try{const i=(await ft.get("/dashboard/metrics/category",{params:e})).data||{};return i.data||i}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch product dashboard metrics";return t(r)}}),ui=Tt("dashboard/verifyAuth",async(e,{rejectWithValue:t})=>{try{const n=await ft.get("/auth/verify"),r=n.data?.data!=null?n.data.data:n.data,i=r?.companyId||n.data?.companyId;if(i){const s=r?.id!=null?r.id:n.data?.id!=null?n.data.id:null,a=(r?.firstName!=null?r.firstName:n.data?.firstName!=null?n.data.firstName:"").toString().trim(),c=(r?.lastName!=null?r.lastName:n.data?.lastName!=null?n.data.lastName:"").toString().trim(),d=[a,c].filter(Boolean).join(" ")||(r?.name!=null?r.name:n.data?.name!=null?n.data.name:"");return{companyId:i,createdById:s??null,createdByName:d||""}}else throw new Error("companyId not found in /auth/verify response")}catch(n){const r=n.response?.data?.message||n.message||"Failed to verify auth";return t(r)}},{condition:(e,{getState:t})=>{const n=t()?.dashboard??{};return!(n.verifyAuthLoading||n.companyId)}}),Qt=Tt("dashboard/fetchCompanyIntegrations",async(e,{rejectWithValue:t})=>{try{const n=e?`/integrations/tenant/${e}`:"/integrations/tenant/";return(await ft.get(n)).data}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch dashboard metrics";return t(r)}}),pi=Tt("dashboard/fetchStores",async(e={},{rejectWithValue:t})=>{try{return(await ft.get("/store",{params:e})).data||{}}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch stores";return t(r)}}),Mn=Tt("dashboard/fetchCategories",async(e={},{rejectWithValue:t})=>{try{return(await ft.get("/category",{params:e})).data||{}}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch categories";return t(r)}}),Mr=Tt("dashboard/fetchAllProducts",async(e={},{rejectWithValue:t})=>{try{return(await ft.get("/store-inventory",{params:e})).data||{}}catch(n){return t(n.response?.data||n.message)}}),ea=Tt("dashboard/fetchStoreInventoryForPromo",async(e={},{rejectWithValue:t})=>{try{return(await ft.get("/store-inventory",{params:e})).data||{}}catch(n){return t(n.response?.data||n.message)}}),ta=Tt("dashboard/createCatalog",async({name:e,slug:t,description:n="",storeCode:r,products:i,categories:s},{rejectWithValue:a})=>{try{const c=Array.isArray(r)?r:[r].filter(Boolean),d=Array.isArray(i)?i:[],p=Array.isArray(s)?s:[],u={name:e,slug:t,description:n||"",storeCode:c};return d.length>0&&(u.products=d),p.length>0&&(u.categories=p),(await ft.post("/catalogues",u)).data}catch(c){const d=c.response?.data?.message||c.message||"Failed to create catalog";return a(d)}}),fi=Tt("dashboard/updateCatalog",async({id:e,name:t,slug:n,status:r},{rejectWithValue:i})=>{try{const s=`/catalogues/${e}`,a={name:t,slug:n,status:r===!0||r==="Active"};return(await ft.put(s,a)).data}catch(s){const a=s.response?.data?.message||s.message||"Failed to update catalog";return i(a)}}),na=Tt("dashboard/deleteCatalog",async(e,{rejectWithValue:t})=>{try{const n=`/catalogues/${e}`;return await ft.delete(n),e}catch(n){const r=n.response?.data?.message||n.message||"Failed to delete catalog";return t(r)}}),ra=Tt("dashboard/createOsaRequest",async({storeCodes:e,products:t=[],categories:n=[]},{rejectWithValue:r})=>{try{const i=Array.isArray(e)?e:[e].filter(Boolean),s=Array.isArray(t)?t:[],a=Array.isArray(n)?n:[],c={storeCodes:i};return s.length>0&&(c.products=s),a.length>0&&(c.categories=a),(await ft.post("/osa",c)).data}catch(i){const s=i.response?.data?.message||i.message||"Failed to create OSA request";return r(s)}}),oa=Tt("dashboard/fetchOsaRequests",async(e={},{rejectWithValue:t})=>{try{return(await ft.get("/osa",{params:e})).data||{}}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch OSA requests";return t(r)}},{condition:(e,{getState:t})=>!(t()?.dashboard??{}).osaRequestsLoading}),ia=Tt("dashboard/fetchOsaProducts",async({osaId:e,page:t,limit:n,params:r={},...i}={},{rejectWithValue:s})=>{try{const c=`/osa/${e??""}/products`,d={...i||{},...r||{}};t!==void 0&&(d.page=t),n!==void 0&&(d.limit=n),"page"in d&&(d.page=Number(d.page)),"limit"in d&&(d.limit=Number(d.limit));const p=Number(d.page)||1,u=Number(d.limit)||void 0;p>1&&(d.pendingPage=p,u&&(d.pendingLimit=u));const m=(await ft.get(c,{params:d})).data||{},y=m.data||m,g=Array.isArray(y?.pending?.data)?y.pending.data.length:0,f=Number(y?.pending?.limit||0);if(u&&f>0&&f!==u&&g===0){const b={...d,page:p,limit:f},E=(await ft.get(c,{params:b})).data||{};return E.data||E}if(u&&f>0&&f!==u&&g>0&&g<u){const b={...d,page:p,limit:u,pendingPage:p,pendingLimit:u},E=(await ft.get(c,{params:b})).data||{};return E.data||E}return y}catch(a){const c=a.response?.data?.message||a.message||"Failed to fetch OSA products";return s(c)}},{condition:(e={},{getState:t})=>{const{osaId:n}=e??{};if(!n)return!1;const r=t()?.dashboard??{},i=r.osaProductsLoading??!1,s=e?.page??e?.params?.page??1,a=e?.limit??e?.params?.limit??10,c=`${String(e?.osaId??"")}|${Number(s)||1}|${Number(a)||10}`;return!(i&&r.osaProductsRequestKey===c)}}),kf=Np({name:"dashboard",initialState:{loading:!1,companyId:"",createdById:null,createdByName:"",verifyAuthLoading:!1,error:null,metrics:{},productDashboardMetrics:{},integrationData:{},lastUpdated:null,products:[],categoryList:[],categoryPagination:{currentPage:1,limit:10,totalCount:0,totalPages:1,hasNextPage:!1},stores:[],homePageCardSummary:{totalCategories:0,totalProducts:0,lastSync:"",lastSyncHoursAgo:null},pagination:{currentPage:1,limit:20,totalCount:0,totalPages:1,hasNextPage:!1},createCatalogLoading:!1,createCatalogError:null,updateCatalogLoading:!1,updateCatalogError:null,deleteCatalogLoading:!1,deleteCatalogError:null,createOsaRequestLoading:!1,createOsaRequestError:null,osaRequests:[],osaRequestsLoading:!1,osaRequestsError:null,osaRequestsPagination:{currentPage:1,limit:10,totalCount:0,totalPages:1,hasNextPage:!1},osaProducts:[],osaProductsLoading:!1,osaProductsError:null,osaProductsRequestKey:null,osaProductsPagination:{currentPage:1,limit:10,totalCount:0,totalPages:1,hasNextPage:!1},productsLoading:!1,categoriesLoading:!1},reducers:{clearCreateCatalogError:e=>{e.createCatalogError=null},clearUpdateCatalogError:e=>{e.updateCatalogError=null},clearDeleteCatalogError:e=>{e.deleteCatalogError=null},clearCreateOsaRequestError:e=>{e.createOsaRequestError=null},clearOsaRequestsError:e=>{e.osaRequestsError=null},clearOsaProductsError:e=>{e.osaProductsError=null},resetStoreInventoryListPagination:e=>{e.pagination.currentPage=1},updateMetric:(e,t)=>{const{key:n,value:r}=t.payload;e.metrics&&(e.metrics[n]=r)}},extraReducers:e=>{e.addCase(di.pending,t=>{t.loading=!0,t.error=null}).addCase(di.fulfilled,(t,n)=>{t.loading=!1,t.metrics=n.payload,t.lastUpdated=Date.now(),t.error=null}).addCase(di.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch dashboard metrics"}),e.addCase(Zs.pending,t=>{t.loading=!0}).addCase(Zs.fulfilled,(t,n)=>{t.loading=!1,t.productDashboardMetrics=n.payload||{}}).addCase(Zs.rejected,t=>{t.loading=!1,t.productDashboardMetrics={}}),e.addCase(Qt.pending,t=>{t.loading=!0}).addCase(Qt.fulfilled,(t,n)=>{t.loading=!1,n.payload&&Array.isArray(n.payload.data)&&n.payload.data.length>0?t.integrationData=n.payload.data[0]:t.integrationData={}}).addCase(Qt.rejected,t=>{t.loading=!1}),e.addCase(ui.pending,t=>{t.loading=!0,t.verifyAuthLoading=!0,t.error=null}),e.addCase(ui.fulfilled,(t,n)=>{t.loading=!1,t.verifyAuthLoading=!1;const r=n.payload;r&&typeof r=="object"&&"companyId"in r?(t.companyId=r.companyId,t.createdById=r.createdById!=null?r.createdById:null,t.createdByName=r.createdByName!=null?r.createdByName:""):t.companyId=r,t.error=null}),e.addCase(ui.rejected,(t,n)=>{t.loading=!1,t.verifyAuthLoading=!1,t.error=n.payload||"Failed to verify auth"}),e.addCase(Mn.pending,t=>{t.loading=!0,t.categoriesLoading=!0,t.error=null}).addCase(Mn.fulfilled,(t,n)=>{t.loading=!1,t.categoriesLoading=!1,t.categoriesFetchSettled=!0,t.error=null;const r=n.payload||{},i=Array.isArray(r.data)?r.data:[];t.categoryList=i;const s=r.pagination||{};t.categoryPagination={currentPage:typeof s.currentPage=="number"?s.currentPage:1,limit:typeof s.limit=="number"?s.limit:10,totalCount:typeof s.totalCount=="number"?s.totalCount:0,totalPages:typeof s.totalPages=="number"?s.totalPages:1,hasNextPage:typeof s.hasNextPage=="boolean"?s.hasNextPage:!1}}).addCase(Mn.rejected,(t,n)=>{t.loading=!1,t.categoriesLoading=!1,t.categoriesFetchSettled=!0,t.error=n.payload||"Failed to fetch categories",t.categoryList=[],t.categoryPagination={currentPage:1,limit:10,totalCount:0,totalPages:1,hasNextPage:!1}}),e.addCase(pi.pending,t=>{t.loading=!0,t.error=null}).addCase(pi.fulfilled,(t,n)=>{t.loading=!1,t.error=null;const r=n.payload||{},s=(Array.isArray(r.stores)?r.stores:Array.isArray(r.data)?r.data:Array.isArray(r)?r:[]).map(a=>{const c=a.id??a.storeCode??a.storeId,d=a.name??a.storeName??a.storel??"",p=a.storeCode??a.id??c;return{id:c,name:d,storeCode:p}});t.stores=[{id:"all",name:"All Stores",storeCode:"all"},...s]}).addCase(pi.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch stores",t.stores=[]}),e.addCase(Mr.pending,t=>{t.loading=!0,t.productsLoading=!0,t.error=null}).addCase(Mr.fulfilled,(t,n)=>{t.loading=!1,t.productsLoading=!1,t.error=null,t.loadingMessage="";const r=n.payload||{},i=Array.isArray(r.data)?r.data:Array.isArray(r.products)?r.products:Array.isArray(r)?r:[],s=(m,y=0)=>{if(m==null||m==="")return y;const g=Number(m);return Number.isFinite(g)?g:y},a={};i.forEach(m=>{if(!m)return;const y=m.categoryName||"Uncategorized";a[y]||(a[y]=[]);const g=s(m.stock),f=s(m.inShelf??m.inshelf??m.in_shelf),b=m.sellingPrice??m.selling_price??m.price,x=m.price??m.mrp,E=m.offer??m.discount,w=m.offerDescription??m.offer_description??m.offer,S=g>0?Math.round(f/g*100):0;a[y].push({...m,stock:g,inShelf:f,quantity:f,osa:S,price:b,mrp:x,discount:E,offer:w})}),t.products=Object.values(a).flat();const c=Object.values(a).flat(),d=Object.keys(a).length,p=c.length;t.homePageCardSummary={...t.homePageCardSummary,totalCategories:d,totalProducts:p},t.productsByCategory=a;const u=r.pagination||{},h=typeof u.totalCount=="number"?u.totalCount:Object.values(a).reduce((m,y)=>m+y.length,0);t.pagination={currentPage:typeof u.currentPage=="number"?u.currentPage:1,limit:typeof u.limit=="number"?u.limit:20,totalCount:h,totalPages:typeof u.totalPages=="number"?u.totalPages:1,hasNextPage:typeof u.hasNextPage=="boolean"?u.hasNextPage:!1}}).addCase(Mr.rejected,(t,n)=>{t.loading=!1,t.productsLoading=!1,t.error=n.payload||"Failed to fetch products"}).addCase(ea.fulfilled,()=>{}).addCase(ea.rejected,()=>{}),e.addCase(ta.pending,t=>{t.createCatalogLoading=!0,t.createCatalogError=null}).addCase(ta.fulfilled,t=>{t.createCatalogLoading=!1,t.createCatalogError=null}).addCase(ta.rejected,(t,n)=>{t.createCatalogLoading=!1,t.createCatalogError=n.payload||"Failed to create catalog"}),e.addCase(fi.pending,t=>{t.updateCatalogLoading=!0,t.updateCatalogError=null}).addCase(fi.fulfilled,t=>{t.updateCatalogLoading=!1,t.updateCatalogError=null}).addCase(fi.rejected,(t,n)=>{t.updateCatalogLoading=!1,t.updateCatalogError=n.payload||"Failed to update catalog"}),e.addCase(na.pending,t=>{t.deleteCatalogLoading=!0,t.deleteCatalogError=null}).addCase(na.fulfilled,t=>{t.deleteCatalogLoading=!1,t.deleteCatalogError=null}).addCase(na.rejected,(t,n)=>{t.deleteCatalogLoading=!1,t.deleteCatalogError=n.payload||"Failed to delete catalog"}),e.addCase(ra.pending,t=>{t.createOsaRequestLoading=!0,t.createOsaRequestError=null}).addCase(ra.fulfilled,t=>{t.createOsaRequestLoading=!1,t.createOsaRequestError=null}).addCase(ra.rejected,(t,n)=>{t.createOsaRequestLoading=!1,t.createOsaRequestError=n.payload||"Failed to create OSA request"}),e.addCase(oa.pending,t=>{t.osaRequestsLoading=!0,t.osaRequestsError=null}).addCase(oa.fulfilled,(t,n)=>{t.osaRequestsLoading=!1,t.osaRequestsError=null;const r=n.payload||{},i=Array.isArray(r)?r:Array.isArray(r.data)?r.data:[];t.osaRequests=i;const s=typeof r.page=="number"?r.page:1,a=typeof r.limit=="number"?r.limit:10,c=typeof r.total=="number"?r.total:i.length,d=typeof r.totalPages=="number"?r.totalPages:Math.max(1,Math.ceil(c/Math.max(1,a)));t.osaRequestsPagination={currentPage:s,limit:a,totalCount:c,totalPages:d,hasNextPage:s<d}}).addCase(oa.rejected,(t,n)=>{t.osaRequestsLoading=!1,t.osaRequestsError=n.payload||"Failed to fetch OSA requests",t.osaRequests=[],t.osaRequestsPagination={currentPage:1,limit:10,totalCount:0,totalPages:1,hasNextPage:!1}}),e.addCase(ia.pending,(t,n)=>{t.osaProductsLoading=!0,t.osaProductsError=null;const r=n.meta?.arg||{},i=r?.page??r?.params?.page??1,s=r?.limit??r?.params?.limit??10;t.osaProductsRequestKey=`${String(r?.osaId??"")}|${Number(i)||1}|${Number(s)||10}`}).addCase(ia.fulfilled,(t,n)=>{const r=n.meta?.arg||{},i=r?.page??r?.params?.page??1,s=r?.limit??r?.params?.limit??10,a=`${String(r?.osaId??"")}|${Number(i)||1}|${Number(s)||10}`;if(t.osaProductsRequestKey!==a)return;t.osaProductsLoading=!1,t.osaProductsError=null;const c=n.payload||{},d=r?.page!=null?Number(r.page):r?.params?.page!=null?Number(r.params.page):1,p=r?.limit!=null?Number(r.limit):r?.params?.limit!=null?Number(r.params.limit):10,u=c.pending||{},h=Array.isArray(u.data)?u.data:[],m=(w,S)=>{if(w==null||w==="")return S;const T=Number(w);return Number.isFinite(T)?T:S},y=m(u.total,h.length),g=m(u.page,d),f=u.limit,b=m(f,Number.isFinite(Number(f))?Number(f):NaN),x=Number.isFinite(b)&&b>0?b:h.length>0?h.length:p,E=Math.max(1,Math.ceil(y/Math.max(1,x)));t.osaProducts=h,t.osaProductsPagination={currentPage:g,limit:x,totalCount:y,totalPages:E,hasNextPage:g<E}}).addCase(ia.rejected,(t,n)=>{const r=n.meta?.arg||{},i=r?.page??r?.params?.page??1,s=r?.limit??r?.params?.limit??10,a=`${String(r?.osaId??"")}|${Number(i)||1}|${Number(s)||10}`;t.osaProductsRequestKey===a&&(t.osaProductsLoading=!1,t.osaProductsError=n.payload||"Failed to fetch OSA products",t.osaProducts=[],t.osaProductsPagination={currentPage:1,limit:10,totalCount:0,totalPages:1,hasNextPage:!1})})}}),{clearCreateCatalogError:Of,clearUpdateCatalogError:eM,clearDeleteCatalogError:tM,clearCreateOsaRequestError:zS,clearOsaRequestsError:LS,clearOsaProductsError:jS,resetStoreInventoryListPagination:If}=kf.actions,WS=kf.reducer,hi=Tt("productSettings/testConnection",async({serverAddress:e,username:t,password:n,companyId:r,tenantId:i},{rejectWithValue:s})=>{try{const a=r||i;if(!a)throw new Error("Company ID is required");const c=e.match(/^(\w+):\/\/(.*?):(\d+)(\/.*)$/);if(!c)throw new Error("Invalid server address format. Expected format: protocol://host:port/path");let[,d,p,u,h]=c;if(d=d.toLowerCase(),d!=="ftp"&&d!=="sftp")throw new Error("type must be 'ftp' or 'sftp'");const m={tenantId:a,type:d,configs:{host:p,port:Number(u),username:t,password:n,path:h.replace(/^\//,"")},entity_type:""};return(await ft.post("/ftp/sync/test-connection",m)).data}catch(a){const c=a.response?.data?.message||a.message||"Failed to test FTP connection";return s(c)}}),gi=Tt("productSettings/saveFtpSync",async(e,{rejectWithValue:t})=>{try{const n={...e,tenantId:e.tenantId||e.companyId};return(await ft.post("/ftp/sync/save",n)).data}catch(n){const r=n.response?.data?.message||n.message||"Failed to save FTP sync configuration";return t(r)}}),io=Tt("productSettings/updateDetails",async(e,{rejectWithValue:t})=>{try{const n={...e,tenantId:e.tenantId||e.companyId};if(n.companyId&&n.tenantId&&delete n.companyId,!n.configs||typeof n.configs!="object"){const r="Invalid payload: configs object is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}if(!n.tenantId){const r="Invalid payload: tenantId is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}if(!n.type){const r="Invalid payload: type is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}if(!n.entity_type){const r="Invalid payload: entity_type is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}try{const r=await ft.put("/ftp/sync/update-details",n);if(r.status>=200&&r.status<300)return r.data;{const i=r.data?.message||r.data?.error||`Server returned status ${r.status}`;return console.error("[FTP SYNC] API returned non-2xx status:",{status:r.status,data:r.data,payload:n}),t(i)}}catch(r){const i=r.response?.data?.message||r.response?.data?.error||r.message||"Failed to update FTP sync details";return console.error("[FTP SYNC] API error details:",{status:r.response?.status,statusText:r.response?.statusText,data:r.response?.data,message:i,payload:n,fullError:r}),t(i)}}catch(n){const r=n.message||"Failed to update FTP sync details";return console.error("[FTP SYNC] Unexpected error:",{error:n,message:r,payload:e}),t(r)}}),mi=Tt("productSettings/syncNow",async(e,{rejectWithValue:t})=>{try{if(!e)throw new Error("Channel ID is required");const n=await ft.post(`/ftp/sync/${e}/sync-now`);if(n.status>=200&&n.status<300)return n.data;{const r=n.data?.message||"Failed to start sync";return t(r)}}catch(n){const r=n.response?.data?.message||n.response?.data?.error||n.message||"Failed to start sync";return t(r)}}),yi=Tt("productSettings/fetchMappingColumns",async(e="products",{rejectWithValue:t})=>{try{const n=e?{entity_type:e}:{},r=await ft.get("/store-inventory/mapping-columns",{params:n});if(r.status>=200&&r.status<300)return r.data&&typeof r.data=="object"&&"status"in r.data&&r.data.status?r.data.data||[]:r.data||[];{const i=r.data?.message||"Failed to fetch mapping columns";return t(i)}}catch(n){const r=n.response?.data?.message||n.response?.data?.error||n.message||"Failed to fetch mapping columns";return t(r)}}),bi=Tt("productSettings/updateIntegrationByChannelId",async({channelId:e,data:t},{rejectWithValue:n})=>{try{if(!e)throw new Error("Channel ID is required");if(!t||typeof t!="object")throw new Error("Update data is required");const r=`/integrations/${e}`,i=await ft.patch(r,t);if(i.status>=200&&i.status<300)return i.data;{const s=i.data?.message||i.data?.error||`Server returned status ${i.status}`;return console.error(`[Integration] PATCH API returned non-2xx status for channelId ${e}:`,{status:i.status,data:i.data}),n(s)}}catch(r){const i=r.response?.data?.message||r.response?.data?.error||r.message||"Failed to update integration by channel ID";return console.error(`[Integration] PATCH API error for channelId ${e}:`,{status:r.response?.status,statusText:r.response?.statusText,data:r.response?.data,message:i}),n(i)}}),hn=Tt("productSettings/fetchSharedCatalogues",async(e,{rejectWithValue:t})=>{try{const n=e&&typeof e=="object"?e:{},r=await ft.get("/catalogues/shared",{params:n});if(r.status>=200&&r.status<300){const s=r.data;return s&&typeof s=="object"&&Array.isArray(s.data)&&typeof s.total=="number"?{total:s.total,page:s.page,limit:s.limit,data:s.data}:{total:0,page:1,limit:10,data:Array.isArray(s)?s:[]}}const i=r.data?.message||r.data?.error||"Failed to fetch shared catalogues";return t(i)}catch(n){const r=n.response?.data?.message||n.response?.data?.error||n.message||"Failed to fetch shared catalogues";return t(r)}}),kc={loading:!1,error:null,testConnectionResult:null,saveResult:null,updateDetailsResult:null,syncNowResult:null,updateIntegrationByChannelIdResult:null,updateIntegrationByChannelIdLoading:!1,updateIntegrationByChannelIdError:null,syncData:{tenantId:"",companyId:"",type:"",serverAddress:"",configs:{host:"",port:"",username:"",password:"",path:"",sync_frequency:"",sync_time:""},entity_type:"",mappings:[]},ftpColumns:[],preview:[],configs:{},integration_type:"",companyId:"",entity_type:"",existingMapping:null,mappingColumns:[],mappingColumnsLoading:!1,mappingColumnsError:null,sharedCatalogues:[],sharedCataloguesTotal:0,sharedCataloguesPage:1,sharedCataloguesLimit:10,sharedCataloguesLoading:!1,sharedCataloguesError:null,lastStableActiveCatalogsCount:null},Nf=Np({name:"productSettings",initialState:kc,reducers:{clearError:e=>{e.error=null},clearTestConnectionResult:e=>{e.testConnectionResult=null},clearSaveResult:e=>{e.saveResult=null},clearAll:e=>{e.testConnectionResult=null,e.saveResult=null,e.error=null,e.ftpColumns=[],e.preview=[],e.configs={},e.integration_type="",e.companyId="",e.entity_type="",e.existingMapping=null},clearTestConnectionData:e=>{e.ftpColumns=[],e.preview=[],e.configs={},e.integration_type="",e.companyId="",e.entity_type="",e.existingMapping=null,e.testConnectionResult=null},clearUpdateDetailsResult:e=>{e.updateDetailsResult=null},clearSyncNowResult:e=>{e.syncNowResult=null},clearMappingColumnsError:e=>{e.mappingColumnsError=null},clearMappingColumns:e=>{e.mappingColumns=[],e.mappingColumnsError=null},clearSharedCataloguesError:e=>{e.sharedCataloguesError=null},clearSharedCatalogues:e=>{e.sharedCatalogues=[],e.sharedCataloguesTotal=0,e.sharedCataloguesPage=1,e.sharedCataloguesLimit=10,e.sharedCataloguesError=null,e.lastStableActiveCatalogsCount=null},clearIntegrationByChannelIdResult:e=>{e.integrationByChannelIdResult=null,e.integrationByChannelIdError=null},setFtpSyncData:(e,t)=>{e.syncData={...e.syncData,...t.payload}},clearFtpSyncData:e=>{e.syncData=kc.syncData}},extraReducers:e=>{e.addCase(hi.pending,t=>{t.loading=!0,t.error=null,t.ftpColumns=[],t.preview=[],t.existingMapping=null}).addCase(hi.fulfilled,(t,n)=>{t.loading=!1,t.testConnectionResult=n.payload,t.error=null;const r=n.payload;t.ftpColumns=r.ftp_columns||[],t.preview=r.preview||[],t.configs=r.configs||{},t.integration_type=r.integration_type||"",t.companyId=r.companyId||r.tenantId||"";let i=r.entity_type||"";if(!i&&r.existing_mapping?.mappings?.length>0){const s=r.existing_mapping.mappings[0]?.target_table;(s==="products"||s==="storeInventory")&&(i="products")}t.entity_type=i,t.existingMapping=r.existing_mapping||null,r.existing_mapping?.mappings?.length||(t.syncData.mappings=[])}).addCase(hi.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to test FTP connection"}),e.addCase(yi.pending,t=>{t.mappingColumnsLoading=!0,t.mappingColumnsError=null}).addCase(yi.fulfilled,(t,n)=>{t.mappingColumnsLoading=!1,t.mappingColumns=Array.isArray(n.payload)?n.payload:[],t.mappingColumnsError=null}).addCase(yi.rejected,(t,n)=>{t.mappingColumnsLoading=!1,t.mappingColumnsError=n.payload||"Failed to fetch mapping columns"}),e.addCase(hn.pending,t=>{t.sharedCataloguesLoading=!0,t.sharedCataloguesError=null}).addCase(hn.fulfilled,(t,n)=>{t.sharedCataloguesLoading=!1;const r=n.payload;if(r&&typeof r=="object"&&Array.isArray(r.data)){t.sharedCatalogues=r.data;const i=typeof r.total=="number"?r.total:0;t.sharedCataloguesTotal=i,t.sharedCataloguesPage=typeof r.page=="number"?r.page:1,t.sharedCataloguesLimit=typeof r.limit=="number"?r.limit:10,i>0&&r.data.length>=i&&(t.lastStableActiveCatalogsCount=r.data.filter(s=>s.status===!0).length)}else t.sharedCatalogues=[];t.sharedCataloguesError=null}).addCase(hn.rejected,(t,n)=>{t.sharedCataloguesLoading=!1,t.sharedCataloguesError=n.payload||"Failed to fetch shared catalogues"}),e.addCase(gi.pending,t=>{t.loading=!0,t.error=null}).addCase(gi.fulfilled,(t,n)=>{t.loading=!1,t.saveResult=n.payload,t.error=null,t.syncData=kc.syncData}).addCase(gi.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to save FTP sync configuration"}),e.addCase(io.pending,t=>{t.loading=!0,t.error=null}).addCase(io.fulfilled,(t,n)=>{t.loading=!1,t.updateDetailsResult=n.payload,t.error=null}).addCase(io.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to update FTP sync details"}),e.addCase(mi.pending,t=>{t.loading=!0,t.error=null}).addCase(mi.fulfilled,(t,n)=>{t.loading=!1,t.syncNowResult=n.payload,t.error=null}).addCase(mi.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to start sync"}),e.addCase(bi.pending,t=>{t.updateIntegrationByChannelIdLoading=!0,t.updateIntegrationByChannelIdError=null}).addCase(bi.fulfilled,(t,n)=>{t.updateIntegrationByChannelIdLoading=!1,t.updateIntegrationByChannelIdResult=n.payload,t.updateIntegrationByChannelIdError=null}).addCase(bi.rejected,(t,n)=>{t.updateIntegrationByChannelIdLoading=!1,t.updateIntegrationByChannelIdError=n.payload||"Failed to update integration by channel ID"})}}),{clearError:nM,clearTestConnectionResult:rM,clearSaveResult:VS,clearAll:oM,clearTestConnectionData:iM,clearUpdateDetailsResult:sM,clearSyncNowResult:aM,setFtpSyncData:sa,clearFtpSyncData:lM,clearMappingColumnsError:cM,clearMappingColumns:dM,clearSharedCataloguesError:uM,clearSharedCatalogues:pM,clearUpdateIntegrationByChannelIdResult:fM}=Nf.actions,HS=Nf.reducer;var aa={},la={},Mf;function US(){if(Mf)return la;Mf=1,la.__esModule=!0,la.default=i;function e(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(c){return typeof c}:e=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},e(s)}function t(){}var n={getItem:t,setItem:t,removeItem:t};function r(s){if((typeof self>"u"?"undefined":e(self))!=="object"||!(s in self))return!1;try{var a=self[s],c="redux-persist ".concat(s," test");a.setItem(c,"test"),a.getItem(c),a.removeItem(c)}catch{return process.env.NODE_ENV!=="production"&&console.warn("redux-persist ".concat(s," test failed, persistence will be disabled.")),!1}return!0}function i(s){var a="".concat(s,"Storage");return r(a)?self[a]:(process.env.NODE_ENV!=="production"&&console.error("redux-persist failed to create sync storage. falling back to noop storage."),n)}return la}var Ff;function RS(){if(Ff)return aa;Ff=1,aa.__esModule=!0,aa.default=n;var e=t(US());function t(r){return r&&r.__esModule?r:{default:r}}function n(r){var i=(0,e.default)(r);return{getItem:function(a){return new Promise(function(c,d){c(i.getItem(a))})},setItem:function(a,c){return new Promise(function(d,p){d(i.setItem(a,c))})},removeItem:function(a){return new Promise(function(c,d){c(i.removeItem(a))})}}}return aa}var qS=RS();const YS={key:"auth",storage:typeof window<"u"?Lu(qS)("local"):{getItem(){return Promise.resolve(null)},setItem(e,t){return Promise.resolve(t)},removeItem(){return Promise.resolve()}},whitelist:["auth"]},GS=Ku({dashboard:WS,productSettings:HS}),KS=rv(YS,GS),Df=Cx({reducer:KS,middleware:e=>e({serializableCheck:!1})}),XS=cv(Df),JS=N.createContext(null),QS=({children:e,apiUrl:t,authToken:n})=>(N.useEffect(()=>{t&&BS(t)},[t]),N.useEffect(()=>{_S(n||null)},[n]),l.jsx(JS.Provider,{value:{apiUrl:t},children:e})),xi={black:"#000",white:"#fff"},so={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},ao={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},lo={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},co={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},uo={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},vi={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},ZS={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Fn(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const Si="$$material";function ca(){return ca=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ca.apply(null,arguments)}function e1(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]}function t1(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var n1=(function(){function e(n){var r=this;this._insertTag=function(i){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,s),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(t1(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=e1(i);try{s.insertRule(r,s.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Wt="-ms-",da="-moz-",Ge="-webkit-",Bf="comm",Oc="rule",Ic="decl",r1="@import",_f="@keyframes",o1="@layer",i1=Math.abs,ua=String.fromCharCode,s1=Object.assign;function a1(e,t){return Bt(e,0)^45?(((t<<2^Bt(e,0))<<2^Bt(e,1))<<2^Bt(e,2))<<2^Bt(e,3):0}function $f(e){return e.trim()}function l1(e,t){return(e=t.exec(e))?e[0]:e}function Ke(e,t,n){return e.replace(t,n)}function Nc(e,t){return e.indexOf(t)}function Bt(e,t){return e.charCodeAt(t)|0}function wi(e,t,n){return e.slice(t,n)}function Dn(e){return e.length}function Mc(e){return e.length}function pa(e,t){return t.push(e),e}function c1(e,t){return e.map(t).join("")}var fa=1,po=1,zf=0,Zt=0,Ot=0,fo="";function ha(e,t,n,r,i,s,a){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:fa,column:po,length:a,return:""}}function Ci(e,t){return s1(ha("",null,null,"",null,null,0),e,{length:-e.length},t)}function d1(){return Ot}function u1(){return Ot=Zt>0?Bt(fo,--Zt):0,po--,Ot===10&&(po=1,fa--),Ot}function sn(){return Ot=Zt<zf?Bt(fo,Zt++):0,po++,Ot===10&&(po=1,fa++),Ot}function Bn(){return Bt(fo,Zt)}function ga(){return Zt}function Ei(e,t){return wi(fo,e,t)}function Ti(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 Lf(e){return fa=po=1,zf=Dn(fo=e),Zt=0,[]}function jf(e){return fo="",e}function ma(e){return $f(Ei(Zt-1,Fc(e===91?e+2:e===40?e+1:e)))}function p1(e){for(;(Ot=Bn())&&Ot<33;)sn();return Ti(e)>2||Ti(Ot)>3?"":" "}function f1(e,t){for(;--t&&sn()&&!(Ot<48||Ot>102||Ot>57&&Ot<65||Ot>70&&Ot<97););return Ei(e,ga()+(t<6&&Bn()==32&&sn()==32))}function Fc(e){for(;sn();)switch(Ot){case e:return Zt;case 34:case 39:e!==34&&e!==39&&Fc(Ot);break;case 40:e===41&&Fc(e);break;case 92:sn();break}return Zt}function h1(e,t){for(;sn()&&e+Ot!==57;)if(e+Ot===84&&Bn()===47)break;return"/*"+Ei(t,Zt-1)+"*"+ua(e===47?e:sn())}function g1(e){for(;!Ti(Bn());)sn();return Ei(e,Zt)}function m1(e){return jf(ya("",null,null,null,[""],e=Lf(e),0,[0],e))}function ya(e,t,n,r,i,s,a,c,d){for(var p=0,u=0,h=a,m=0,y=0,g=0,f=1,b=1,x=1,E=0,w="",S=i,T=s,v=r,k=w;b;)switch(g=E,E=sn()){case 40:if(g!=108&&Bt(k,h-1)==58){Nc(k+=Ke(ma(E),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:k+=ma(E);break;case 9:case 10:case 13:case 32:k+=p1(g);break;case 92:k+=f1(ga()-1,7);continue;case 47:switch(Bn()){case 42:case 47:pa(y1(h1(sn(),ga()),t,n),d);break;default:k+="/"}break;case 123*f:c[p++]=Dn(k)*x;case 125*f:case 59:case 0:switch(E){case 0:case 125:b=0;case 59+u:x==-1&&(k=Ke(k,/\f/g,"")),y>0&&Dn(k)-h&&pa(y>32?Vf(k+";",r,n,h-1):Vf(Ke(k," ","")+";",r,n,h-2),d);break;case 59:k+=";";default:if(pa(v=Wf(k,t,n,p,u,i,c,w,S=[],T=[],h),s),E===123)if(u===0)ya(k,t,v,v,S,s,h,c,T);else switch(m===99&&Bt(k,3)===110?100:m){case 100:case 108:case 109:case 115:ya(e,v,v,r&&pa(Wf(e,v,v,0,0,i,c,w,i,S=[],h),T),i,T,h,c,r?S:T);break;default:ya(k,v,v,v,[""],T,0,c,T)}}p=u=y=0,f=x=1,w=k="",h=a;break;case 58:h=1+Dn(k),y=g;default:if(f<1){if(E==123)--f;else if(E==125&&f++==0&&u1()==125)continue}switch(k+=ua(E),E*f){case 38:x=u>0?1:(k+="\f",-1);break;case 44:c[p++]=(Dn(k)-1)*x,x=1;break;case 64:Bn()===45&&(k+=ma(sn())),m=Bn(),u=h=Dn(w=k+=g1(ga())),E++;break;case 45:g===45&&Dn(k)==2&&(f=0)}}return s}function Wf(e,t,n,r,i,s,a,c,d,p,u){for(var h=i-1,m=i===0?s:[""],y=Mc(m),g=0,f=0,b=0;g<r;++g)for(var x=0,E=wi(e,h+1,h=i1(f=a[g])),w=e;x<y;++x)(w=$f(f>0?m[x]+" "+E:Ke(E,/&\f/g,m[x])))&&(d[b++]=w);return ha(e,t,n,i===0?Oc:c,d,p,u)}function y1(e,t,n){return ha(e,t,n,Bf,ua(d1()),wi(e,2,-2),0)}function Vf(e,t,n,r){return ha(e,t,n,Ic,wi(e,0,r),wi(e,r+1,-1),r)}function ho(e,t){for(var n="",r=Mc(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function b1(e,t,n,r){switch(e.type){case o1:if(e.children.length)break;case r1:case Ic:return e.return=e.return||e.value;case Bf:return"";case _f:return e.return=e.value+"{"+ho(e.children,r)+"}";case Oc:e.value=e.props.join(",")}return Dn(n=ho(e.children,r))?e.return=e.value+"{"+n+"}":""}function x1(e){var t=Mc(e);return function(n,r,i,s){for(var a="",c=0;c<t;c++)a+=e[c](n,r,i,s)||"";return a}}function v1(e){return function(t){t.root||(t=t.return)&&e(t)}}function Hf(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var S1=function(t,n,r){for(var i=0,s=0;i=s,s=Bn(),i===38&&s===12&&(n[r]=1),!Ti(s);)sn();return Ei(t,Zt)},w1=function(t,n){var r=-1,i=44;do switch(Ti(i)){case 0:i===38&&Bn()===12&&(n[r]=1),t[r]+=S1(Zt-1,n,r);break;case 2:t[r]+=ma(i);break;case 4:if(i===44){t[++r]=Bn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=ua(i)}while(i=sn());return t},C1=function(t,n){return jf(w1(Lf(t),n))},Uf=new WeakMap,E1=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Uf.get(r))&&!i){Uf.set(t,!0);for(var s=[],a=C1(n,s),c=r.props,d=0,p=0;d<a.length;d++)for(var u=0;u<c.length;u++,p++)t.props[p]=s[d]?a[d].replace(/&\f/g,c[u]):c[u]+" "+a[d]}}},T1=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Rf(e,t){switch(a1(e,t)){case 5103:return Ge+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ge+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ge+e+da+e+Wt+e+e;case 6828:case 4268:return Ge+e+Wt+e+e;case 6165:return Ge+e+Wt+"flex-"+e+e;case 5187:return Ge+e+Ke(e,/(\w+).+(:[^]+)/,Ge+"box-$1$2"+Wt+"flex-$1$2")+e;case 5443:return Ge+e+Wt+"flex-item-"+Ke(e,/flex-|-self/,"")+e;case 4675:return Ge+e+Wt+"flex-line-pack"+Ke(e,/align-content|flex-|-self/,"")+e;case 5548:return Ge+e+Wt+Ke(e,"shrink","negative")+e;case 5292:return Ge+e+Wt+Ke(e,"basis","preferred-size")+e;case 6060:return Ge+"box-"+Ke(e,"-grow","")+Ge+e+Wt+Ke(e,"grow","positive")+e;case 4554:return Ge+Ke(e,/([^-])(transform)/g,"$1"+Ge+"$2")+e;case 6187:return Ke(Ke(Ke(e,/(zoom-|grab)/,Ge+"$1"),/(image-set)/,Ge+"$1"),e,"")+e;case 5495:case 3959:return Ke(e,/(image-set\([^]*)/,Ge+"$1$`$1");case 4968:return Ke(Ke(e,/(.+:)(flex-)?(.*)/,Ge+"box-pack:$3"+Wt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ge+e+e;case 4095:case 3583:case 4068:case 2532:return Ke(e,/(.+)-inline(.+)/,Ge+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Dn(e)-1-t>6)switch(Bt(e,t+1)){case 109:if(Bt(e,t+4)!==45)break;case 102:return Ke(e,/(.+:)(.+)-([^]+)/,"$1"+Ge+"$2-$3$1"+da+(Bt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Nc(e,"stretch")?Rf(Ke(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Bt(e,t+1)!==115)break;case 6444:switch(Bt(e,Dn(e)-3-(~Nc(e,"!important")&&10))){case 107:return Ke(e,":",":"+Ge)+e;case 101:return Ke(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ge+(Bt(e,14)===45?"inline-":"")+"box$3$1"+Ge+"$2$3$1"+Wt+"$2box$3")+e}break;case 5936:switch(Bt(e,t+11)){case 114:return Ge+e+Wt+Ke(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ge+e+Wt+Ke(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ge+e+Wt+Ke(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ge+e+Wt+e+e}return e}var A1=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Ic:t.return=Rf(t.value,t.length);break;case _f:return ho([Ci(t,{value:Ke(t.value,"@","@"+Ge)})],i);case Oc:if(t.length)return c1(t.props,function(s){switch(l1(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ho([Ci(t,{props:[Ke(s,/:(read-\w+)/,":"+da+"$1")]})],i);case"::placeholder":return ho([Ci(t,{props:[Ke(s,/:(plac\w+)/,":"+Ge+"input-$1")]}),Ci(t,{props:[Ke(s,/:(plac\w+)/,":"+da+"$1")]}),Ci(t,{props:[Ke(s,/:(plac\w+)/,Wt+"input-$1")]})],i)}return""})}},P1=[A1],k1=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(f){var b=f.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var i=t.stylisPlugins||P1,s={},a,c=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(f){for(var b=f.getAttribute("data-emotion").split(" "),x=1;x<b.length;x++)s[b[x]]=!0;c.push(f)});var d,p=[E1,T1];{var u,h=[b1,v1(function(f){u.insert(f)})],m=x1(p.concat(i,h)),y=function(b){return ho(m1(b),m)};d=function(b,x,E,w){u=E,y(b?b+"{"+x.styles+"}":x.styles),w&&(g.inserted[x.name]=!0)}}var g={key:n,sheet:new n1({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:d};return g.sheet.hydrate(c),g},ba={exports:{}},Je={};var qf;function O1(){if(qf)return Je;qf=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function w(T){if(typeof T=="object"&&T!==null){var v=T.$$typeof;switch(v){case t:switch(T=T.type,T){case d:case p:case r:case s:case i:case h:return T;default:switch(T=T&&T.$$typeof,T){case c:case u:case g:case y:case a:return T;default:return v}}case n:return v}}}function S(T){return w(T)===p}return Je.AsyncMode=d,Je.ConcurrentMode=p,Je.ContextConsumer=c,Je.ContextProvider=a,Je.Element=t,Je.ForwardRef=u,Je.Fragment=r,Je.Lazy=g,Je.Memo=y,Je.Portal=n,Je.Profiler=s,Je.StrictMode=i,Je.Suspense=h,Je.isAsyncMode=function(T){return S(T)||w(T)===d},Je.isConcurrentMode=S,Je.isContextConsumer=function(T){return w(T)===c},Je.isContextProvider=function(T){return w(T)===a},Je.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},Je.isForwardRef=function(T){return w(T)===u},Je.isFragment=function(T){return w(T)===r},Je.isLazy=function(T){return w(T)===g},Je.isMemo=function(T){return w(T)===y},Je.isPortal=function(T){return w(T)===n},Je.isProfiler=function(T){return w(T)===s},Je.isStrictMode=function(T){return w(T)===i},Je.isSuspense=function(T){return w(T)===h},Je.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===r||T===p||T===s||T===i||T===h||T===m||typeof T=="object"&&T!==null&&(T.$$typeof===g||T.$$typeof===y||T.$$typeof===a||T.$$typeof===c||T.$$typeof===u||T.$$typeof===b||T.$$typeof===x||T.$$typeof===E||T.$$typeof===f)},Je.typeOf=w,Je}var Qe={};var Yf;function I1(){return Yf||(Yf=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function w(G){return typeof G=="string"||typeof G=="function"||G===r||G===p||G===s||G===i||G===h||G===m||typeof G=="object"&&G!==null&&(G.$$typeof===g||G.$$typeof===y||G.$$typeof===a||G.$$typeof===c||G.$$typeof===u||G.$$typeof===b||G.$$typeof===x||G.$$typeof===E||G.$$typeof===f)}function S(G){if(typeof G=="object"&&G!==null){var pe=G.$$typeof;switch(pe){case t:var ee=G.type;switch(ee){case d:case p:case r:case s:case i:case h:return ee;default:var K=ee&&ee.$$typeof;switch(K){case c:case u:case g:case y:case a:return K;default:return pe}}case n:return pe}}}var T=d,v=p,k=c,M=a,B=t,z=u,$=r,C=g,I=y,_=n,F=s,j=i,V=h,R=!1;function U(G){return R||(R=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D(G)||S(G)===d}function D(G){return S(G)===p}function O(G){return S(G)===c}function L(G){return S(G)===a}function H(G){return typeof G=="object"&&G!==null&&G.$$typeof===t}function Y(G){return S(G)===u}function X(G){return S(G)===r}function te(G){return S(G)===g}function ce(G){return S(G)===y}function de(G){return S(G)===n}function ae(G){return S(G)===s}function J(G){return S(G)===i}function oe(G){return S(G)===h}Qe.AsyncMode=T,Qe.ConcurrentMode=v,Qe.ContextConsumer=k,Qe.ContextProvider=M,Qe.Element=B,Qe.ForwardRef=z,Qe.Fragment=$,Qe.Lazy=C,Qe.Memo=I,Qe.Portal=_,Qe.Profiler=F,Qe.StrictMode=j,Qe.Suspense=V,Qe.isAsyncMode=U,Qe.isConcurrentMode=D,Qe.isContextConsumer=O,Qe.isContextProvider=L,Qe.isElement=H,Qe.isForwardRef=Y,Qe.isFragment=X,Qe.isLazy=te,Qe.isMemo=ce,Qe.isPortal=de,Qe.isProfiler=ae,Qe.isStrictMode=J,Qe.isSuspense=oe,Qe.isValidElementType=w,Qe.typeOf=S})()),Qe}var Gf;function Dc(){return Gf||(Gf=1,process.env.NODE_ENV==="production"?ba.exports=O1():ba.exports=I1()),ba.exports}var Bc,Kf;function N1(){if(Kf)return Bc;Kf=1;var e=Dc(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=r,s[e.Memo]=i;function a(g){return e.isMemo(g)?i:s[g.$$typeof]||t}var c=Object.defineProperty,d=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,m=Object.prototype;function y(g,f,b){if(typeof f!="string"){if(m){var x=h(f);x&&x!==m&&y(g,x,b)}var E=d(f);p&&(E=E.concat(p(f)));for(var w=a(g),S=a(f),T=0;T<E.length;++T){var v=E[T];if(!n[v]&&!(b&&b[v])&&!(S&&S[v])&&!(w&&w[v])){var k=u(f,v);try{c(g,v,k)}catch{}}}}return g}return Bc=y,Bc}N1();var M1=!0;function Xf(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var _c=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||M1===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},$c=function(t,n,r){_c(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+i:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function F1(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var D1={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},B1=/[A-Z]|^ms/g,_1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Jf=function(t){return t.charCodeAt(1)===45},Qf=function(t){return t!=null&&typeof t!="boolean"},zc=Hf(function(e){return Jf(e)?e:e.replace(B1,"-$&").toLowerCase()}),Zf=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(_1,function(r,i,s){return _n={name:i,styles:s,next:_n},i})}return D1[t]!==1&&!Jf(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ai(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return _n={name:i.name,styles:i.styles,next:_n},i.name;var s=n;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)_n={name:a.name,styles:a.styles,next:_n},a=a.next;var c=s.styles+";";return c}return $1(e,t,n)}case"function":{if(e!==void 0){var d=_n,p=n(e);return _n=d,Ai(e,t,p)}break}}var u=n;if(t==null)return u;var h=t[u];return h!==void 0?h:u}function $1(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Ai(e,t,n[i])+";";else for(var s in n){var a=n[s];if(typeof a!="object"){var c=a;t!=null&&t[c]!==void 0?r+=s+"{"+t[c]+"}":Qf(c)&&(r+=zc(s)+":"+Zf(s,c)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var d=0;d<a.length;d++)Qf(a[d])&&(r+=zc(s)+":"+Zf(s,a[d])+";");else{var p=Ai(e,t,a);switch(s){case"animation":case"animationName":{r+=zc(s)+":"+p+";";break}default:r+=s+"{"+p+"}"}}}return r}var eh=/label:\s*([^\s;{]+)\s*(;|$)/g,_n;function Pi(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";_n=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,i+=Ai(n,t,s);else{var a=s;i+=a[0]}for(var c=1;c<e.length;c++)if(i+=Ai(n,t,e[c]),r){var d=s;i+=d[c]}eh.lastIndex=0;for(var p="",u;(u=eh.exec(i))!==null;)p+="-"+u[1];var h=F1(i)+p;return{name:h,styles:i,next:_n}}var z1=function(t){return t()},th=A.useInsertionEffect?A.useInsertionEffect:!1,nh=th||z1,rh=th||A.useLayoutEffect,oh=A.createContext(typeof HTMLElement<"u"?k1({key:"css"}):null);oh.Provider;var Lc=function(t){return N.forwardRef(function(n,r){var i=N.useContext(oh);return t(n,i,r)})},xa=A.createContext({}),jc={}.hasOwnProperty,Wc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",L1=function(t,n){var r={};for(var i in n)jc.call(n,i)&&(r[i]=n[i]);return r[Wc]=t,r},j1=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return _c(n,r,i),nh(function(){return $c(n,r,i)}),null},W1=Lc(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Wc],s=[r],a="";typeof e.className=="string"?a=Xf(t.registered,s,e.className):e.className!=null&&(a=e.className+" ");var c=Pi(s,void 0,A.useContext(xa));a+=t.key+"-"+c.name;var d={};for(var p in e)jc.call(e,p)&&p!=="css"&&p!==Wc&&(d[p]=e[p]);return d.className=a,n&&(d.ref=n),A.createElement(A.Fragment,null,A.createElement(j1,{cache:t,serialized:c,isStringTag:typeof i=="string"}),A.createElement(i,d))}),V1=W1,ih=function(t,n){var r=arguments;if(n==null||!jc.call(n,"css"))return A.createElement.apply(void 0,r);var i=r.length,s=new Array(i);s[0]=V1,s[1]=L1(t,n);for(var a=2;a<i;a++)s[a]=r[a];return A.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(ih||(ih={}));var H1=Lc(function(e,t){var n=e.styles,r=Pi([n],void 0,A.useContext(xa)),i=A.useRef();return rh(function(){var s=t.key+"-global",a=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),c=!1,d=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),d!==null&&(c=!0,d.setAttribute("data-emotion",s),a.hydrate([d])),i.current=[a,c],function(){a.flush()}},[t]),rh(function(){var s=i.current,a=s[0],c=s[1];if(c){s[1]=!1;return}if(r.next!==void 0&&$c(t,r.next,!0),a.tags.length){var d=a.tags[a.tags.length-1].nextElementSibling;a.before=d,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function go(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Pi(t)}function mr(){var e=go.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var U1=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|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|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|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|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,R1=Hf(function(e){return U1.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),q1=R1,Y1=function(t){return t!=="theme"},sh=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?q1:Y1},ah=function(t,n,r){var i;if(n){var s=n.shouldForwardProp;i=t.__emotion_forwardProp&&s?function(a){return t.__emotion_forwardProp(a)&&s(a)}:s}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},G1=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return _c(n,r,i),nh(function(){return $c(n,r,i)}),null},K1=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,s,a;n!==void 0&&(s=n.label,a=n.target);var c=ah(t,n,r),d=c||sh(i),p=!d("as");return function(){var u=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&h.push("label:"+s+";"),u[0]==null||u[0].raw===void 0)h.push.apply(h,u);else{var m=u[0];h.push(m[0]);for(var y=u.length,g=1;g<y;g++)h.push(u[g],m[g])}var f=Lc(function(b,x,E){var w=p&&b.as||i,S="",T=[],v=b;if(b.theme==null){v={};for(var k in b)v[k]=b[k];v.theme=A.useContext(xa)}typeof b.className=="string"?S=Xf(x.registered,T,b.className):b.className!=null&&(S=b.className+" ");var M=Pi(h.concat(T),x.registered,v);S+=x.key+"-"+M.name,a!==void 0&&(S+=" "+a);var B=p&&c===void 0?sh(w):d,z={};for(var $ in b)p&&$==="as"||B($)&&(z[$]=b[$]);return z.className=S,E&&(z.ref=E),A.createElement(A.Fragment,null,A.createElement(G1,{cache:x,serialized:M,isStringTag:typeof w=="string"}),A.createElement(w,z))});return f.displayName=s!==void 0?s:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=i,f.__emotion_styles=h,f.__emotion_forwardProp=c,Object.defineProperty(f,"toString",{value:function(){return"."+a}}),f.withComponent=function(b,x){var E=e(b,ca({},n,x,{shouldForwardProp:ah(f,x,!0)}));return E.apply(void 0,h)},f}},X1=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Vc=K1.bind(null);X1.forEach(function(e){Vc[e]=Vc(e)});var va={exports:{}};var Hc,lh;function J1(){if(lh)return Hc;lh=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(d.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(u){p[u]=u}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Hc=i()?Object.assign:function(s,a){for(var c,d=r(s),p,u=1;u<arguments.length;u++){c=Object(arguments[u]);for(var h in c)t.call(c,h)&&(d[h]=c[h]);if(e){p=e(c);for(var m=0;m<p.length;m++)n.call(c,p[m])&&(d[p[m]]=c[p[m]])}}return d},Hc}var Uc,ch;function Rc(){if(ch)return Uc;ch=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Uc=e,Uc}var qc,dh;function uh(){return dh||(dh=1,qc=Function.call.bind(Object.prototype.hasOwnProperty)),qc}var Yc,ph;function Q1(){if(ph)return Yc;ph=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Rc(),n={},r=uh();e=function(s){var a="Warning: "+s;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(s,a,c,d,p){if(process.env.NODE_ENV!=="production"){for(var u in s)if(r(s,u)){var h;try{if(typeof s[u]!="function"){var m=Error((d||"React class")+": "+c+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}h=s[u](a,u,d,c,null,t)}catch(g){h=g}if(h&&!(h instanceof Error)&&e((d||"React class")+": type specification of "+c+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in n)){n[h.message]=!0;var y=p?p():"";e("Failed "+c+" type: "+h.message+(y??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Yc=i,Yc}var Gc,fh;function Z1(){if(fh)return Gc;fh=1;var e=Dc(),t=J1(),n=Rc(),r=uh(),i=Q1(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var d="Warning: "+c;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function a(){return null}return Gc=function(c,d){var p=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function h(D){var O=D&&(p&&D[p]||D[u]);if(typeof O=="function")return O}var m="<<anonymous>>",y={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:E(),arrayOf:w,element:S(),elementType:T(),instanceOf:v,node:z(),objectOf:M,oneOf:k,oneOfType:B,shape:C,exact:I};function g(D,O){return D===O?D!==0||1/D===1/O:D!==D&&O!==O}function f(D,O){this.message=D,this.data=O&&typeof O=="object"?O:{},this.stack=""}f.prototype=Error.prototype;function b(D){if(process.env.NODE_ENV!=="production")var O={},L=0;function H(X,te,ce,de,ae,J,oe){if(de=de||m,J=J||ce,oe!==n){if(d){var G=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 G.name="Invariant Violation",G}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var pe=de+":"+ce;!O[pe]&&L<3&&(s("You are manually calling a React.PropTypes validation function for the `"+J+"` prop on `"+de+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),O[pe]=!0,L++)}}return te[ce]==null?X?te[ce]===null?new f("The "+ae+" `"+J+"` is marked as required "+("in `"+de+"`, but its value is `null`.")):new f("The "+ae+" `"+J+"` is marked as required in "+("`"+de+"`, but its value is `undefined`.")):null:D(te,ce,de,ae,J)}var Y=H.bind(null,!1);return Y.isRequired=H.bind(null,!0),Y}function x(D){function O(L,H,Y,X,te,ce){var de=L[H],ae=j(de);if(ae!==D){var J=V(de);return new f("Invalid "+X+" `"+te+"` of type "+("`"+J+"` supplied to `"+Y+"`, expected ")+("`"+D+"`."),{expectedType:D})}return null}return b(O)}function E(){return b(a)}function w(D){function O(L,H,Y,X,te){if(typeof D!="function")return new f("Property `"+te+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var ce=L[H];if(!Array.isArray(ce)){var de=j(ce);return new f("Invalid "+X+" `"+te+"` of type "+("`"+de+"` supplied to `"+Y+"`, expected an array."))}for(var ae=0;ae<ce.length;ae++){var J=D(ce,ae,Y,X,te+"["+ae+"]",n);if(J instanceof Error)return J}return null}return b(O)}function S(){function D(O,L,H,Y,X){var te=O[L];if(!c(te)){var ce=j(te);return new f("Invalid "+Y+" `"+X+"` of type "+("`"+ce+"` supplied to `"+H+"`, expected a single ReactElement."))}return null}return b(D)}function T(){function D(O,L,H,Y,X){var te=O[L];if(!e.isValidElementType(te)){var ce=j(te);return new f("Invalid "+Y+" `"+X+"` of type "+("`"+ce+"` supplied to `"+H+"`, expected a single ReactElement type."))}return null}return b(D)}function v(D){function O(L,H,Y,X,te){if(!(L[H]instanceof D)){var ce=D.name||m,de=U(L[H]);return new f("Invalid "+X+" `"+te+"` of type "+("`"+de+"` supplied to `"+Y+"`, expected ")+("instance of `"+ce+"`."))}return null}return b(O)}function k(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),a;function O(L,H,Y,X,te){for(var ce=L[H],de=0;de<D.length;de++)if(g(ce,D[de]))return null;var ae=JSON.stringify(D,function(oe,G){var pe=V(G);return pe==="symbol"?String(G):G});return new f("Invalid "+X+" `"+te+"` of value `"+String(ce)+"` "+("supplied to `"+Y+"`, expected one of "+ae+"."))}return b(O)}function M(D){function O(L,H,Y,X,te){if(typeof D!="function")return new f("Property `"+te+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var ce=L[H],de=j(ce);if(de!=="object")return new f("Invalid "+X+" `"+te+"` of type "+("`"+de+"` supplied to `"+Y+"`, expected an object."));for(var ae in ce)if(r(ce,ae)){var J=D(ce,ae,Y,X,te+"."+ae,n);if(J instanceof Error)return J}return null}return b(O)}function B(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var O=0;O<D.length;O++){var L=D[O];if(typeof L!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+R(L)+" at index "+O+"."),a}function H(Y,X,te,ce,de){for(var ae=[],J=0;J<D.length;J++){var oe=D[J],G=oe(Y,X,te,ce,de,n);if(G==null)return null;G.data&&r(G.data,"expectedType")&&ae.push(G.data.expectedType)}var pe=ae.length>0?", expected one of type ["+ae.join(", ")+"]":"";return new f("Invalid "+ce+" `"+de+"` supplied to "+("`"+te+"`"+pe+"."))}return b(H)}function z(){function D(O,L,H,Y,X){return _(O[L])?null:new f("Invalid "+Y+" `"+X+"` supplied to "+("`"+H+"`, expected a ReactNode."))}return b(D)}function $(D,O,L,H,Y){return new f((D||"React class")+": "+O+" type `"+L+"."+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function C(D){function O(L,H,Y,X,te){var ce=L[H],de=j(ce);if(de!=="object")return new f("Invalid "+X+" `"+te+"` of type `"+de+"` "+("supplied to `"+Y+"`, expected `object`."));for(var ae in D){var J=D[ae];if(typeof J!="function")return $(Y,X,te,ae,V(J));var oe=J(ce,ae,Y,X,te+"."+ae,n);if(oe)return oe}return null}return b(O)}function I(D){function O(L,H,Y,X,te){var ce=L[H],de=j(ce);if(de!=="object")return new f("Invalid "+X+" `"+te+"` of type `"+de+"` "+("supplied to `"+Y+"`, expected `object`."));var ae=t({},L[H],D);for(var J in ae){var oe=D[J];if(r(D,J)&&typeof oe!="function")return $(Y,X,te,J,V(oe));if(!oe)return new f("Invalid "+X+" `"+te+"` key `"+J+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(L[H],null," ")+`
|
|
25
|
+
Valid keys: `+JSON.stringify(Object.keys(D),null," "));var G=oe(ce,J,Y,X,te+"."+J,n);if(G)return G}return null}return b(O)}function _(D){switch(typeof D){case"number":case"string":case"undefined":return!0;case"boolean":return!D;case"object":if(Array.isArray(D))return D.every(_);if(D===null||c(D))return!0;var O=h(D);if(O){var L=O.call(D),H;if(O!==D.entries){for(;!(H=L.next()).done;)if(!_(H.value))return!1}else for(;!(H=L.next()).done;){var Y=H.value;if(Y&&!_(Y[1]))return!1}}else return!1;return!0;default:return!1}}function F(D,O){return D==="symbol"?!0:O?O["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&O instanceof Symbol:!1}function j(D){var O=typeof D;return Array.isArray(D)?"array":D instanceof RegExp?"object":F(O,D)?"symbol":O}function V(D){if(typeof D>"u"||D===null)return""+D;var O=j(D);if(O==="object"){if(D instanceof Date)return"date";if(D instanceof RegExp)return"regexp"}return O}function R(D){var O=V(D);switch(O){case"array":case"object":return"an "+O;case"boolean":case"date":case"regexp":return"a "+O;default:return O}}function U(D){return!D.constructor||!D.constructor.name?m:D.constructor.name}return y.checkPropTypes=i,y.resetWarningCache=i.resetWarningCache,y.PropTypes=y,y},Gc}var Kc,hh;function ew(){if(hh)return Kc;hh=1;var e=Rc();function t(){}function n(){}return n.resetWarningCache=t,Kc=function(){function r(a,c,d,p,u,h){if(h!==e){var m=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 m.name="Invariant Violation",m}}r.isRequired=r;function i(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Kc}var gh;function tw(){if(gh)return va.exports;if(gh=1,process.env.NODE_ENV!=="production"){var e=Dc(),t=!0;va.exports=Z1()(e.isElement,t)}else va.exports=ew()();return va.exports}var nw=tw();const o=Lu(nw);function rw(e){return e==null||Object.keys(e).length===0}function mh(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?i=>t(rw(i)?n:i):t;return l.jsx(H1,{styles:r})}process.env.NODE_ENV!=="production"&&(mh.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.string,o.object,o.func])});function yh(e,t){const n=Vc(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const i=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
26
26
|
`)):r.some(s=>s===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),n(...r)}:n}function ow(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const bh=[];function yr(e){return bh[0]=e,Pi(bh)}var Sa={exports:{}},at={};var xh;function iw(){if(xh)return at;xh=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function g(f){if(typeof f=="object"&&f!==null){var b=f.$$typeof;switch(b){case e:switch(f=f.type,f){case n:case i:case r:case d:case p:case m:return f;default:switch(f=f&&f.$$typeof,f){case a:case c:case h:case u:return f;case s:return f;default:return b}}case t:return b}}}return at.ContextConsumer=s,at.ContextProvider=a,at.Element=e,at.ForwardRef=c,at.Fragment=n,at.Lazy=h,at.Memo=u,at.Portal=t,at.Profiler=i,at.StrictMode=r,at.Suspense=d,at.SuspenseList=p,at.isContextConsumer=function(f){return g(f)===s},at.isContextProvider=function(f){return g(f)===a},at.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},at.isForwardRef=function(f){return g(f)===c},at.isFragment=function(f){return g(f)===n},at.isLazy=function(f){return g(f)===h},at.isMemo=function(f){return g(f)===u},at.isPortal=function(f){return g(f)===t},at.isProfiler=function(f){return g(f)===i},at.isStrictMode=function(f){return g(f)===r},at.isSuspense=function(f){return g(f)===d},at.isSuspenseList=function(f){return g(f)===p},at.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===i||f===r||f===d||f===p||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===u||f.$$typeof===a||f.$$typeof===s||f.$$typeof===c||f.$$typeof===y||f.getModuleId!==void 0)},at.typeOf=g,at}var lt={};var vh;function sw(){return vh||(vh=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var b=f.$$typeof;switch(b){case t:switch(f=f.type,f){case r:case s:case i:case p:case u:case y:return f;default:switch(f=f&&f.$$typeof,f){case c:case d:case m:case h:return f;case a:return f;default:return b}}case n:return b}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");lt.ContextConsumer=a,lt.ContextProvider=c,lt.Element=t,lt.ForwardRef=d,lt.Fragment=r,lt.Lazy=m,lt.Memo=h,lt.Portal=n,lt.Profiler=s,lt.StrictMode=i,lt.Suspense=p,lt.SuspenseList=u,lt.isContextConsumer=function(f){return e(f)===a},lt.isContextProvider=function(f){return e(f)===c},lt.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},lt.isForwardRef=function(f){return e(f)===d},lt.isFragment=function(f){return e(f)===r},lt.isLazy=function(f){return e(f)===m},lt.isMemo=function(f){return e(f)===h},lt.isPortal=function(f){return e(f)===n},lt.isProfiler=function(f){return e(f)===s},lt.isStrictMode=function(f){return e(f)===i},lt.isSuspense=function(f){return e(f)===p},lt.isSuspenseList=function(f){return e(f)===u},lt.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===s||f===i||f===p||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===m||f.$$typeof===h||f.$$typeof===c||f.$$typeof===a||f.$$typeof===d||f.$$typeof===g||f.getModuleId!==void 0)},lt.typeOf=e})()),lt}var Sh;function aw(){return Sh||(Sh=1,process.env.NODE_ENV==="production"?Sa.exports=iw():Sa.exports=sw()),Sa.exports}var wa=aw();function $n(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function wh(e){if(A.isValidElement(e)||wa.isValidElementType(e)||!$n(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=wh(e[n])}),t}function Vt(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return $n(e)&&$n(t)&&Object.keys(t).forEach(i=>{A.isValidElement(t[i])||wa.isValidElementType(t[i])?r[i]=t[i]:$n(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&$n(e[i])?r[i]=Vt(e[i],t[i],n):n.clone?r[i]=$n(t[i])?wh(t[i]):t[i]:r[i]=t[i]}),r}const lw=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function cw(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,s=lw(t),a=Object.keys(s);function c(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function d(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-r/100}${n})`}function p(m,y){const g=a.indexOf(y);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:y)-r/100}${n})`}function u(m){return a.indexOf(m)+1<a.length?p(m,a[a.indexOf(m)+1]):c(m)}function h(m){const y=a.indexOf(m);return y===0?c(a[1]):y===a.length-1?d(a[y]):p(m,a[a.indexOf(m)+1]).replace("@media","@media not all and")}return{keys:a,values:s,up:c,down:d,between:p,only:u,not:h,unit:n,...i}}function Ch(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,i)=>{const s=/min-width:\s*([0-9.]+)/;return+(r.match(s)?.[1]||0)-+(i.match(s)?.[1]||0)});return n.length?n.reduce((r,i)=>{const s=t[i];return delete r[i],r[i]=s,r},{...t}):t}function dw(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function uw(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
27
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Fn(18,`(${t})`));return null}const[,r,i]=n,s=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(s)}function pw(e){const t=(s,a)=>s.replace("@media",a?`@container ${a}`:"@container");function n(s,a){s.up=(...c)=>t(e.breakpoints.up(...c),a),s.down=(...c)=>t(e.breakpoints.down(...c),a),s.between=(...c)=>t(e.breakpoints.between(...c),a),s.only=(...c)=>t(e.breakpoints.only(...c),a),s.not=(...c)=>{const d=t(e.breakpoints.not(...c),a);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const r={},i=s=>(n(r,s),r);return n(i),{...e,containerQueries:i}}const fw={borderRadius:4},br=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.string,o.object,o.array]):{};function ki(e,t){return t?Vt(e,t,{clone:!1}):e}const Ca={xs:0,sm:600,md:900,lg:1200,xl:1536},Eh={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ca[e]}px)`},hw={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Ca[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function nr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||Eh;return t.reduce((a,c,d)=>(a[s.up(s.keys[d])]=n(t[d]),a),{})}if(typeof t=="object"){const s=r.breakpoints||Eh;return Object.keys(t).reduce((a,c)=>{if(dw(s.keys,c)){const d=uw(r.containerQueries?r:hw,c);d&&(a[d]=n(t[c],c))}else if(Object.keys(s.values||Ca).includes(c)){const d=s.up(c);a[d]=n(t[c],c)}else{const d=c;a[d]=t[d]}return a},{})}return n(t)}function gw(e={}){return e.keys?.reduce((n,r)=>{const i=e.up(r);return n[i]={},n},{})||{}}function Th(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function
|
|
27
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Fn(18,`(${t})`));return null}const[,r,i]=n,s=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(s)}function pw(e){const t=(s,a)=>s.replace("@media",a?`@container ${a}`:"@container");function n(s,a){s.up=(...c)=>t(e.breakpoints.up(...c),a),s.down=(...c)=>t(e.breakpoints.down(...c),a),s.between=(...c)=>t(e.breakpoints.between(...c),a),s.only=(...c)=>t(e.breakpoints.only(...c),a),s.not=(...c)=>{const d=t(e.breakpoints.not(...c),a);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const r={},i=s=>(n(r,s),r);return n(i),{...e,containerQueries:i}}const fw={borderRadius:4},br=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.string,o.object,o.array]):{};function ki(e,t){return t?Vt(e,t,{clone:!1}):e}const Ca={xs:0,sm:600,md:900,lg:1200,xl:1536},Eh={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ca[e]}px)`},hw={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Ca[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function nr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||Eh;return t.reduce((a,c,d)=>(a[s.up(s.keys[d])]=n(t[d]),a),{})}if(typeof t=="object"){const s=r.breakpoints||Eh;return Object.keys(t).reduce((a,c)=>{if(dw(s.keys,c)){const d=uw(r.containerQueries?r:hw,c);d&&(a[d]=n(t[c],c))}else if(Object.keys(s.values||Ca).includes(c)){const d=s.up(c);a[d]=n(t[c],c)}else{const d=c;a[d]=t[d]}return a},{})}return n(t)}function gw(e={}){return e.keys?.reduce((n,r)=>{const i=e.up(r);return n[i]={},n},{})||{}}function Th(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function ie(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Fn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ea(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,s)=>i&&i[s]?i[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function Ta(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=Ea(e,n)||r,t&&(i=t(i,r,e)),i}function At(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,s=a=>{if(a[t]==null)return null;const c=a[t],d=a.theme,p=Ea(d,r)||{};return nr(a,c,h=>{let m=Ta(p,i,h);return h===m&&typeof h=="string"&&(m=Ta(p,i,`${t}${h==="default"?"":ie(h)}`,h)),n===!1?m:{[n]:m}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:br}:{},s.filterProps=[t],s}function mw(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const yw={m:"margin",p:"padding"},bw={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ah={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},xw=mw(e=>{if(e.length>2)if(Ah[e])e=Ah[e];else return[e];const[t,n]=e.split(""),r=yw[t],i=bw[n]||"";return Array.isArray(i)?i.map(s=>r+s):[r+i]}),Aa=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Pa=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],vw=[...Aa,...Pa];function Oi(e,t,n,r){const i=Ea(e,t,!0)??n;return typeof i=="number"||typeof i=="string"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${s}.`),typeof i=="string"?i.startsWith("var(")&&s===0?0:i.startsWith("var(")&&s===1?i:`calc(${s} * ${i})`:i*s):Array.isArray(i)?s=>{if(typeof s=="string")return s;const a=Math.abs(s);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>i.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${a} > ${i.length-1}, you need to add the missing values.`].join(`
|
|
28
28
|
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
29
29
|
`)));const c=i[a];return s>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
30
|
-
`)),()=>{})}function Xc(e){return Oi(e,"spacing",8,"spacing")}function Ii(e,t){return typeof t=="string"||t==null?t:e(t)}function Sw(e,t){return n=>e.reduce((r,i)=>(r[i]=Ii(t,n),r),{})}function ww(e,t,n,r){if(!t.includes(n))return null;const i=xw(n),s=Sw(i,r),a=e[n];return nr(e,a,s)}function Ph(e,t){const n=Xc(e.theme);return Object.keys(e).map(r=>ww(e,t,r,n)).reduce(ki,{})}function xt(e){return Ph(e,Aa)}xt.propTypes=process.env.NODE_ENV!=="production"?Aa.reduce((e,t)=>(e[t]=br,e),{}):{},xt.filterProps=Aa;function vt(e){return Ph(e,Pa)}vt.propTypes=process.env.NODE_ENV!=="production"?Pa.reduce((e,t)=>(e[t]=br,e),{}):{},vt.filterProps=Pa,process.env.NODE_ENV!=="production"&&vw.reduce((e,t)=>(e[t]=br,e),{});function kh(e=8,t=Xc({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(s=>{const a=t(s);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function ka(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(s=>{r[s]=i}),r),{}),n=r=>Object.keys(r).reduce((i,s)=>t[s]?ki(i,t[s](r)):i,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,i)=>Object.assign(r,i.propTypes),{}):{},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function gn(e){return typeof e!="number"?e:`${e}px solid`}function mn(e,t){return At({prop:e,themeKey:"borders",transform:t})}const Cw=mn("border",gn),Ew=mn("borderTop",gn),Tw=mn("borderRight",gn),Aw=mn("borderBottom",gn),Pw=mn("borderLeft",gn),kw=mn("borderColor"),Ow=mn("borderTopColor"),Iw=mn("borderRightColor"),Nw=mn("borderBottomColor"),Mw=mn("borderLeftColor"),Fw=mn("outline",gn),Dw=mn("outlineColor"),Oa=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Oi(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Ii(t,r)});return nr(e,e.borderRadius,n)}return null};Oa.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:br}:{},Oa.filterProps=["borderRadius"],ka(Cw,Ew,Tw,Aw,Pw,kw,Ow,Iw,Nw,Mw,Oa,Fw,Dw);const Ia=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Oi(e.theme,"spacing",8,"gap"),n=r=>({gap:Ii(t,r)});return nr(e,e.gap,n)}return null};Ia.propTypes=process.env.NODE_ENV!=="production"?{gap:br}:{},Ia.filterProps=["gap"];const Na=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Oi(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Ii(t,r)});return nr(e,e.columnGap,n)}return null};Na.propTypes=process.env.NODE_ENV!=="production"?{columnGap:br}:{},Na.filterProps=["columnGap"];const Ma=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Oi(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Ii(t,r)});return nr(e,e.rowGap,n)}return null};Ma.propTypes=process.env.NODE_ENV!=="production"?{rowGap:br}:{},Ma.filterProps=["rowGap"];const Bw=At({prop:"gridColumn"}),_w=At({prop:"gridRow"}),$w=At({prop:"gridAutoFlow"}),zw=At({prop:"gridAutoColumns"}),Lw=At({prop:"gridAutoRows"}),jw=At({prop:"gridTemplateColumns"}),Ww=At({prop:"gridTemplateRows"}),Vw=At({prop:"gridTemplateAreas"}),Hw=At({prop:"gridArea"});ka(Ia,Na,Ma,Bw,_w,$w,zw,Lw,jw,Ww,Vw,Hw);function mo(e,t){return t==="grey"?t:e}const Uw=At({prop:"color",themeKey:"palette",transform:mo}),Rw=At({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:mo}),qw=At({prop:"backgroundColor",themeKey:"palette",transform:mo});ka(Uw,Rw,qw);function an(e){return e<=1&&e!==0?`${e*100}%`:e}const Yw=At({prop:"width",transform:an}),Jc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||Ca[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:an(n)}};return nr(e,e.maxWidth,t)}return null};Jc.filterProps=["maxWidth"];const Gw=At({prop:"minWidth",transform:an}),Kw=At({prop:"height",transform:an}),Xw=At({prop:"maxHeight",transform:an}),Jw=At({prop:"minHeight",transform:an});At({prop:"size",cssProperty:"width",transform:an}),At({prop:"size",cssProperty:"height",transform:an});const Qw=At({prop:"boxSizing"});ka(Yw,Jc,Gw,Kw,Xw,Jw,Qw);const Ni={border:{themeKey:"borders",transform:gn},borderTop:{themeKey:"borders",transform:gn},borderRight:{themeKey:"borders",transform:gn},borderBottom:{themeKey:"borders",transform:gn},borderLeft:{themeKey:"borders",transform:gn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:gn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Oa},color:{themeKey:"palette",transform:mo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:mo},backgroundColor:{themeKey:"palette",transform:mo},p:{style:vt},pt:{style:vt},pr:{style:vt},pb:{style:vt},pl:{style:vt},px:{style:vt},py:{style:vt},padding:{style:vt},paddingTop:{style:vt},paddingRight:{style:vt},paddingBottom:{style:vt},paddingLeft:{style:vt},paddingX:{style:vt},paddingY:{style:vt},paddingInline:{style:vt},paddingInlineStart:{style:vt},paddingInlineEnd:{style:vt},paddingBlock:{style:vt},paddingBlockStart:{style:vt},paddingBlockEnd:{style:vt},m:{style:xt},mt:{style:xt},mr:{style:xt},mb:{style:xt},ml:{style:xt},mx:{style:xt},my:{style:xt},margin:{style:xt},marginTop:{style:xt},marginRight:{style:xt},marginBottom:{style:xt},marginLeft:{style:xt},marginX:{style:xt},marginY:{style:xt},marginInline:{style:xt},marginInlineStart:{style:xt},marginInlineEnd:{style:xt},marginBlock:{style:xt},marginBlockStart:{style:xt},marginBlockEnd:{style:xt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ia},rowGap:{style:Ma},columnGap:{style:Na},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:an},maxWidth:{style:Jc},minWidth:{transform:an},height:{transform:an},maxHeight:{transform:an},minHeight:{transform:an},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Zw(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function eC(e,t){return typeof e=="function"?e(t):e}function tC(){function e(n,r,i,s){const a={[n]:r,theme:i},c=s[n];if(!c)return{[n]:r};const{cssProperty:d=n,themeKey:p,transform:u,style:h}=c;if(r==null)return null;if(p==="typography"&&r==="inherit")return{[n]:r};const m=Ea(i,p)||{};return h?h(a):nr(a,r,g=>{let f=Ta(m,u,g);return g===f&&typeof g=="string"&&(f=Ta(m,u,`${n}${g==="default"?"":oe(g)}`,g)),d===!1?f:{[d]:f}})}function t(n){const{sx:r,theme:i={},nested:s}=n||{};if(!r)return null;const a=i.unstable_sxConfig??Ni;function c(d){let p=d;if(typeof d=="function")p=d(i);else if(typeof d!="object")return d;if(!p)return null;const u=gw(i.breakpoints),h=Object.keys(u);let m=u;return Object.keys(p).forEach(y=>{const g=eC(p[y],i);if(g!=null)if(typeof g=="object")if(a[y])m=ki(m,e(y,g,i,a));else{const f=nr({theme:i},g,b=>({[y]:b}));Zw(f,g)?m[y]=t({sx:g,theme:i,nested:!0}):m=ki(m,f)}else m=ki(m,e(y,g,i,a))}),!s&&i.modularCssLayers?{"@layer sx":Ch(i,Th(h,m))}:Ch(i,Th(h,m))}return Array.isArray(r)?r.map(c):c(r)}return t}const Fr=tC();Fr.filterProps=["sx"];function nC(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Fa(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:s={},...a}=e,c=cw(n),d=kh(i);let p=Vt({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:d,shape:{...fw,...s}},a);return p=pw(p),p.applyStyles=nC,p=t.reduce((u,h)=>Vt(u,h),p),p.unstable_sxConfig={...Ni,...a?.unstable_sxConfig},p.unstable_sx=function(h){return Fr({sx:h,theme:this})},p}function rC(e){return Object.keys(e).length===0}function Oh(e=null){const t=A.useContext(xa);return!t||rC(t)?e:t}const oC=Fa();function Da(e=oC){return Oh(e)}function Qc(e){const t=yr(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Ih({styles:e,themeId:t,defaultTheme:n={}}){const r=Da(n),i=t&&r[t]||r;let s=typeof e=="function"?e(i):e;return i.modularCssLayers&&(Array.isArray(s)?s=s.map(a=>Qc(typeof a=="function"?a(i):a)):s=Qc(s)),l.jsx(mh,{styles:s})}process.env.NODE_ENV!=="production"&&(Ih.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool]),themeId:o.string});const iC=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Ni;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Nh(e){const{sx:t,...n}=e,{systemProps:r,otherProps:i}=iC(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...a)=>{const c=t(...a);return $n(c)?{...r,...c}:r}:s={...r,...t},{...i,sx:s}}const Mh=e=>e,Fh=(()=>{let e=Mh;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Mh}}})();function Dh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Dh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function he(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Dh(e))&&(r&&(r+=" "),r+=t);return r}function sC(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,s=yh("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(Fr);return A.forwardRef(function(d,p){const u=Da(n),{className:h,component:m="div",...y}=Nh(d);return l.jsx(s,{as:m,ref:p,className:he(h,i?i(r):r),theme:t&&u[t]||u,...y})})}const aC={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Pe(e,t,n="Mui"){const r=aC[t];return r?`${n}-${r}`:`${Fh.generate(e)}-${t}`}function ke(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Pe(e,i,n)}),r}function Bh(e,t=""){return e.displayName||e.name||t}function _h(e,t,n){const r=Bh(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function lC(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Bh(e,"Component");if(typeof e=="object")switch(e.$$typeof){case wa.ForwardRef:return _h(e,e.render,"ForwardRef");case wa.Memo:return _h(e,e.type,"memo");default:return}}}function $h(e){const{variants:t,...n}=e,r={variants:t,style:yr(n),isProcessed:!0};return r.style===n||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=yr(i.style))}),r}const cC=Fa();function Zc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Dr(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function dC(e){return e?(t,n)=>n[e]:null}function uC(e,t,n){e.theme=hC(e.theme)?n:e.theme[t]||e.theme}function Ba(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>Ba(e,i,n));if(Array.isArray(r?.variants)){let i;if(r.isProcessed)i=n?Dr(r.style,n):r.style;else{const{variants:s,...a}=r;i=n?Dr(yr(a),n):a}return zh(e,r.variants,[i],n)}return r?.isProcessed?n?Dr(yr(r.style),n):r.style:n?Dr(yr(r),n):r}function zh(e,t,n=[],r=void 0){let i;e:for(let s=0;s<t.length;s+=1){const a=t[s];if(typeof a.props=="function"){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(i))continue}else for(const c in a.props)if(e[c]!==a.props[c]&&e.ownerState?.[c]!==a.props[c])continue e;typeof a.style=="function"?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?Dr(yr(a.style(i)),r):a.style(i))):n.push(r?Dr(yr(a.style),r):a.style)}return n}function Lh(e={}){const{themeId:t,defaultTheme:n=cC,rootShouldForwardProp:r=Zc,slotShouldForwardProp:i=Zc}=e;function s(c){uC(c,t,n)}return(c,d={})=>{ow(c,v=>v.filter(k=>k!==Fr));const{name:p,slot:u,skipVariantsResolver:h,skipSx:m,overridesResolver:y=dC(jh(u)),...g}=d,f=p&&p.startsWith("Mui")||u?"components":"custom",b=h!==void 0?h:u&&u!=="Root"&&u!=="root"||!1,x=m||!1;let E=Zc;u==="Root"||u==="root"?E=r:u?E=i:gC(c)&&(E=void 0);const w=yh(c,{shouldForwardProp:E,label:fC(p,u),...g}),S=v=>{if(v.__emotion_real===v)return v;if(typeof v=="function")return function(M){return Ba(M,v,M.theme.modularCssLayers?f:void 0)};if($n(v)){const k=$h(v);return function(_){return k.variants?Ba(_,k,_.theme.modularCssLayers?f:void 0):_.theme.modularCssLayers?Dr(k.style,f):k.style}}return v},T=(...v)=>{const k=[],M=v.map(S),_=[];if(k.push(s),p&&y&&_.push(function(I){const D=I.theme.components?.[p]?.styleOverrides;if(!D)return null;const L={};for(const V in D)L[V]=Ba(I,D[V],I.theme.modularCssLayers?"theme":void 0);return y(I,L)}),p&&!b&&_.push(function(I){const D=I.theme?.components?.[p]?.variants;return D?zh(I,D,[],I.theme.modularCssLayers?"theme":void 0):null}),x||_.push(Fr),Array.isArray(M[0])){const C=M.shift(),I=new Array(k.length).fill(""),$=new Array(_.length).fill("");let D;D=[...I,...C,...$],D.raw=[...I,...C.raw,...$],k.unshift(D)}const z=[...k,...M,..._],F=w(...z);return c.muiName&&(F.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(F.displayName=pC(p,u,c)),F};return w.withConfig&&(T.withConfig=w.withConfig),T}}function pC(e,t,n){return e?`${e}${oe(t||"")}`:`Styled(${lC(n)})`}function fC(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${jh(t||"Root")}`),n}function hC(e){for(const t in e)return!1;return!0}function gC(e){return typeof e=="string"&&e.charCodeAt(0)>96}function jh(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const mC=Lh();function Mi(e,t,n=!1){const r={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const s=i;if(s==="components"||s==="slots")r[s]={...e[s],...r[s]};else if(s==="componentsProps"||s==="slotProps"){const a=e[s],c=t[s];if(!c)r[s]=a||{};else if(!a)r[s]=c;else{r[s]={...c};for(const d in a)if(Object.prototype.hasOwnProperty.call(a,d)){const p=d;r[s][p]=Mi(a[p],c[p],n)}}}else s==="className"&&n&&t.className?r.className=he(e?.className,t?.className):s==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[s]===void 0&&(r[s]=e[s])}return r}function Wh(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Mi(t.components[n].defaultProps,r)}function yC({props:e,name:t,defaultTheme:n,themeId:r}){let i=Da(n);return r&&(i=i[r]||i),Wh({theme:i,name:t,props:e})}const yn=typeof window<"u"?A.useLayoutEffect:A.useEffect;function bC(e,t,n,r,i){const[s,a]=A.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return yn(()=>{if(!n)return;const c=n(e),d=()=>{a(c.matches)};return d(),c.addEventListener("change",d),()=>{c.removeEventListener("change",d)}},[e,n]),s}const Vh={...A}.useSyncExternalStore;function xC(e,t,n,r,i){const s=A.useCallback(()=>t,[t]),a=A.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return s},[s,e,r,i,n]),[c,d]=A.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const u=n(e);return[()=>u.matches,h=>(u.addEventListener("change",h),()=>{u.removeEventListener("change",h)})]},[s,n,e]);return Vh(d,c,a)}function Hh(e={}){const{themeId:t}=e;return function(r,i={}){let s=Oh();s&&t&&(s=s[t]||s);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:c=!1,matchMedia:d=a?window.matchMedia:null,ssrMatchMedia:p=null,noSsr:u=!1}=Wh({name:"MuiUseMediaQuery",props:i,theme:s});process.env.NODE_ENV!=="production"&&typeof r=="function"&&s===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
|
|
30
|
+
`)),()=>{})}function Xc(e){return Oi(e,"spacing",8,"spacing")}function Ii(e,t){return typeof t=="string"||t==null?t:e(t)}function Sw(e,t){return n=>e.reduce((r,i)=>(r[i]=Ii(t,n),r),{})}function ww(e,t,n,r){if(!t.includes(n))return null;const i=xw(n),s=Sw(i,r),a=e[n];return nr(e,a,s)}function Ph(e,t){const n=Xc(e.theme);return Object.keys(e).map(r=>ww(e,t,r,n)).reduce(ki,{})}function xt(e){return Ph(e,Aa)}xt.propTypes=process.env.NODE_ENV!=="production"?Aa.reduce((e,t)=>(e[t]=br,e),{}):{},xt.filterProps=Aa;function vt(e){return Ph(e,Pa)}vt.propTypes=process.env.NODE_ENV!=="production"?Pa.reduce((e,t)=>(e[t]=br,e),{}):{},vt.filterProps=Pa,process.env.NODE_ENV!=="production"&&vw.reduce((e,t)=>(e[t]=br,e),{});function kh(e=8,t=Xc({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(s=>{const a=t(s);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function ka(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(s=>{r[s]=i}),r),{}),n=r=>Object.keys(r).reduce((i,s)=>t[s]?ki(i,t[s](r)):i,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,i)=>Object.assign(r,i.propTypes),{}):{},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function gn(e){return typeof e!="number"?e:`${e}px solid`}function mn(e,t){return At({prop:e,themeKey:"borders",transform:t})}const Cw=mn("border",gn),Ew=mn("borderTop",gn),Tw=mn("borderRight",gn),Aw=mn("borderBottom",gn),Pw=mn("borderLeft",gn),kw=mn("borderColor"),Ow=mn("borderTopColor"),Iw=mn("borderRightColor"),Nw=mn("borderBottomColor"),Mw=mn("borderLeftColor"),Fw=mn("outline",gn),Dw=mn("outlineColor"),Oa=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Oi(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Ii(t,r)});return nr(e,e.borderRadius,n)}return null};Oa.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:br}:{},Oa.filterProps=["borderRadius"],ka(Cw,Ew,Tw,Aw,Pw,kw,Ow,Iw,Nw,Mw,Oa,Fw,Dw);const Ia=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Oi(e.theme,"spacing",8,"gap"),n=r=>({gap:Ii(t,r)});return nr(e,e.gap,n)}return null};Ia.propTypes=process.env.NODE_ENV!=="production"?{gap:br}:{},Ia.filterProps=["gap"];const Na=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Oi(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Ii(t,r)});return nr(e,e.columnGap,n)}return null};Na.propTypes=process.env.NODE_ENV!=="production"?{columnGap:br}:{},Na.filterProps=["columnGap"];const Ma=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Oi(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Ii(t,r)});return nr(e,e.rowGap,n)}return null};Ma.propTypes=process.env.NODE_ENV!=="production"?{rowGap:br}:{},Ma.filterProps=["rowGap"];const Bw=At({prop:"gridColumn"}),_w=At({prop:"gridRow"}),$w=At({prop:"gridAutoFlow"}),zw=At({prop:"gridAutoColumns"}),Lw=At({prop:"gridAutoRows"}),jw=At({prop:"gridTemplateColumns"}),Ww=At({prop:"gridTemplateRows"}),Vw=At({prop:"gridTemplateAreas"}),Hw=At({prop:"gridArea"});ka(Ia,Na,Ma,Bw,_w,$w,zw,Lw,jw,Ww,Vw,Hw);function mo(e,t){return t==="grey"?t:e}const Uw=At({prop:"color",themeKey:"palette",transform:mo}),Rw=At({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:mo}),qw=At({prop:"backgroundColor",themeKey:"palette",transform:mo});ka(Uw,Rw,qw);function an(e){return e<=1&&e!==0?`${e*100}%`:e}const Yw=At({prop:"width",transform:an}),Jc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||Ca[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:an(n)}};return nr(e,e.maxWidth,t)}return null};Jc.filterProps=["maxWidth"];const Gw=At({prop:"minWidth",transform:an}),Kw=At({prop:"height",transform:an}),Xw=At({prop:"maxHeight",transform:an}),Jw=At({prop:"minHeight",transform:an});At({prop:"size",cssProperty:"width",transform:an}),At({prop:"size",cssProperty:"height",transform:an});const Qw=At({prop:"boxSizing"});ka(Yw,Jc,Gw,Kw,Xw,Jw,Qw);const Ni={border:{themeKey:"borders",transform:gn},borderTop:{themeKey:"borders",transform:gn},borderRight:{themeKey:"borders",transform:gn},borderBottom:{themeKey:"borders",transform:gn},borderLeft:{themeKey:"borders",transform:gn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:gn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Oa},color:{themeKey:"palette",transform:mo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:mo},backgroundColor:{themeKey:"palette",transform:mo},p:{style:vt},pt:{style:vt},pr:{style:vt},pb:{style:vt},pl:{style:vt},px:{style:vt},py:{style:vt},padding:{style:vt},paddingTop:{style:vt},paddingRight:{style:vt},paddingBottom:{style:vt},paddingLeft:{style:vt},paddingX:{style:vt},paddingY:{style:vt},paddingInline:{style:vt},paddingInlineStart:{style:vt},paddingInlineEnd:{style:vt},paddingBlock:{style:vt},paddingBlockStart:{style:vt},paddingBlockEnd:{style:vt},m:{style:xt},mt:{style:xt},mr:{style:xt},mb:{style:xt},ml:{style:xt},mx:{style:xt},my:{style:xt},margin:{style:xt},marginTop:{style:xt},marginRight:{style:xt},marginBottom:{style:xt},marginLeft:{style:xt},marginX:{style:xt},marginY:{style:xt},marginInline:{style:xt},marginInlineStart:{style:xt},marginInlineEnd:{style:xt},marginBlock:{style:xt},marginBlockStart:{style:xt},marginBlockEnd:{style:xt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ia},rowGap:{style:Ma},columnGap:{style:Na},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:an},maxWidth:{style:Jc},minWidth:{transform:an},height:{transform:an},maxHeight:{transform:an},minHeight:{transform:an},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Zw(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function eC(e,t){return typeof e=="function"?e(t):e}function tC(){function e(n,r,i,s){const a={[n]:r,theme:i},c=s[n];if(!c)return{[n]:r};const{cssProperty:d=n,themeKey:p,transform:u,style:h}=c;if(r==null)return null;if(p==="typography"&&r==="inherit")return{[n]:r};const m=Ea(i,p)||{};return h?h(a):nr(a,r,g=>{let f=Ta(m,u,g);return g===f&&typeof g=="string"&&(f=Ta(m,u,`${n}${g==="default"?"":ie(g)}`,g)),d===!1?f:{[d]:f}})}function t(n){const{sx:r,theme:i={},nested:s}=n||{};if(!r)return null;const a=i.unstable_sxConfig??Ni;function c(d){let p=d;if(typeof d=="function")p=d(i);else if(typeof d!="object")return d;if(!p)return null;const u=gw(i.breakpoints),h=Object.keys(u);let m=u;return Object.keys(p).forEach(y=>{const g=eC(p[y],i);if(g!=null)if(typeof g=="object")if(a[y])m=ki(m,e(y,g,i,a));else{const f=nr({theme:i},g,b=>({[y]:b}));Zw(f,g)?m[y]=t({sx:g,theme:i,nested:!0}):m=ki(m,f)}else m=ki(m,e(y,g,i,a))}),!s&&i.modularCssLayers?{"@layer sx":Ch(i,Th(h,m))}:Ch(i,Th(h,m))}return Array.isArray(r)?r.map(c):c(r)}return t}const Fr=tC();Fr.filterProps=["sx"];function nC(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Fa(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:s={},...a}=e,c=cw(n),d=kh(i);let p=Vt({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:d,shape:{...fw,...s}},a);return p=pw(p),p.applyStyles=nC,p=t.reduce((u,h)=>Vt(u,h),p),p.unstable_sxConfig={...Ni,...a?.unstable_sxConfig},p.unstable_sx=function(h){return Fr({sx:h,theme:this})},p}function rC(e){return Object.keys(e).length===0}function Oh(e=null){const t=A.useContext(xa);return!t||rC(t)?e:t}const oC=Fa();function Da(e=oC){return Oh(e)}function Qc(e){const t=yr(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Ih({styles:e,themeId:t,defaultTheme:n={}}){const r=Da(n),i=t&&r[t]||r;let s=typeof e=="function"?e(i):e;return i.modularCssLayers&&(Array.isArray(s)?s=s.map(a=>Qc(typeof a=="function"?a(i):a)):s=Qc(s)),l.jsx(mh,{styles:s})}process.env.NODE_ENV!=="production"&&(Ih.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool]),themeId:o.string});const iC=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Ni;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Nh(e){const{sx:t,...n}=e,{systemProps:r,otherProps:i}=iC(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...a)=>{const c=t(...a);return $n(c)?{...r,...c}:r}:s={...r,...t},{...i,sx:s}}const Mh=e=>e,Fh=(()=>{let e=Mh;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Mh}}})();function Dh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Dh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ge(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Dh(e))&&(r&&(r+=" "),r+=t);return r}function sC(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,s=yh("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(Fr);return A.forwardRef(function(d,p){const u=Da(n),{className:h,component:m="div",...y}=Nh(d);return l.jsx(s,{as:m,ref:p,className:ge(h,i?i(r):r),theme:t&&u[t]||u,...y})})}const aC={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Oe(e,t,n="Mui"){const r=aC[t];return r?`${n}-${r}`:`${Fh.generate(e)}-${t}`}function Ie(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Oe(e,i,n)}),r}function Bh(e,t=""){return e.displayName||e.name||t}function _h(e,t,n){const r=Bh(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function lC(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Bh(e,"Component");if(typeof e=="object")switch(e.$$typeof){case wa.ForwardRef:return _h(e,e.render,"ForwardRef");case wa.Memo:return _h(e,e.type,"memo");default:return}}}function $h(e){const{variants:t,...n}=e,r={variants:t,style:yr(n),isProcessed:!0};return r.style===n||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=yr(i.style))}),r}const cC=Fa();function Zc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Dr(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function dC(e){return e?(t,n)=>n[e]:null}function uC(e,t,n){e.theme=hC(e.theme)?n:e.theme[t]||e.theme}function Ba(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>Ba(e,i,n));if(Array.isArray(r?.variants)){let i;if(r.isProcessed)i=n?Dr(r.style,n):r.style;else{const{variants:s,...a}=r;i=n?Dr(yr(a),n):a}return zh(e,r.variants,[i],n)}return r?.isProcessed?n?Dr(yr(r.style),n):r.style:n?Dr(yr(r),n):r}function zh(e,t,n=[],r=void 0){let i;e:for(let s=0;s<t.length;s+=1){const a=t[s];if(typeof a.props=="function"){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(i))continue}else for(const c in a.props)if(e[c]!==a.props[c]&&e.ownerState?.[c]!==a.props[c])continue e;typeof a.style=="function"?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?Dr(yr(a.style(i)),r):a.style(i))):n.push(r?Dr(yr(a.style),r):a.style)}return n}function Lh(e={}){const{themeId:t,defaultTheme:n=cC,rootShouldForwardProp:r=Zc,slotShouldForwardProp:i=Zc}=e;function s(c){uC(c,t,n)}return(c,d={})=>{ow(c,v=>v.filter(k=>k!==Fr));const{name:p,slot:u,skipVariantsResolver:h,skipSx:m,overridesResolver:y=dC(jh(u)),...g}=d,f=p&&p.startsWith("Mui")||u?"components":"custom",b=h!==void 0?h:u&&u!=="Root"&&u!=="root"||!1,x=m||!1;let E=Zc;u==="Root"||u==="root"?E=r:u?E=i:gC(c)&&(E=void 0);const w=yh(c,{shouldForwardProp:E,label:fC(p,u),...g}),S=v=>{if(v.__emotion_real===v)return v;if(typeof v=="function")return function(M){return Ba(M,v,M.theme.modularCssLayers?f:void 0)};if($n(v)){const k=$h(v);return function(B){return k.variants?Ba(B,k,B.theme.modularCssLayers?f:void 0):B.theme.modularCssLayers?Dr(k.style,f):k.style}}return v},T=(...v)=>{const k=[],M=v.map(S),B=[];if(k.push(s),p&&y&&B.push(function(I){const F=I.theme.components?.[p]?.styleOverrides;if(!F)return null;const j={};for(const V in F)j[V]=Ba(I,F[V],I.theme.modularCssLayers?"theme":void 0);return y(I,j)}),p&&!b&&B.push(function(I){const F=I.theme?.components?.[p]?.variants;return F?zh(I,F,[],I.theme.modularCssLayers?"theme":void 0):null}),x||B.push(Fr),Array.isArray(M[0])){const C=M.shift(),I=new Array(k.length).fill(""),_=new Array(B.length).fill("");let F;F=[...I,...C,..._],F.raw=[...I,...C.raw,..._],k.unshift(F)}const z=[...k,...M,...B],$=w(...z);return c.muiName&&($.muiName=c.muiName),process.env.NODE_ENV!=="production"&&($.displayName=pC(p,u,c)),$};return w.withConfig&&(T.withConfig=w.withConfig),T}}function pC(e,t,n){return e?`${e}${ie(t||"")}`:`Styled(${lC(n)})`}function fC(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${jh(t||"Root")}`),n}function hC(e){for(const t in e)return!1;return!0}function gC(e){return typeof e=="string"&&e.charCodeAt(0)>96}function jh(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const mC=Lh();function Mi(e,t,n=!1){const r={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const s=i;if(s==="components"||s==="slots")r[s]={...e[s],...r[s]};else if(s==="componentsProps"||s==="slotProps"){const a=e[s],c=t[s];if(!c)r[s]=a||{};else if(!a)r[s]=c;else{r[s]={...c};for(const d in a)if(Object.prototype.hasOwnProperty.call(a,d)){const p=d;r[s][p]=Mi(a[p],c[p],n)}}}else s==="className"&&n&&t.className?r.className=ge(e?.className,t?.className):s==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[s]===void 0&&(r[s]=e[s])}return r}function Wh(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Mi(t.components[n].defaultProps,r)}function yC({props:e,name:t,defaultTheme:n,themeId:r}){let i=Da(n);return r&&(i=i[r]||i),Wh({theme:i,name:t,props:e})}const yn=typeof window<"u"?A.useLayoutEffect:A.useEffect;function bC(e,t,n,r,i){const[s,a]=A.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return yn(()=>{if(!n)return;const c=n(e),d=()=>{a(c.matches)};return d(),c.addEventListener("change",d),()=>{c.removeEventListener("change",d)}},[e,n]),s}const Vh={...A}.useSyncExternalStore;function xC(e,t,n,r,i){const s=A.useCallback(()=>t,[t]),a=A.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return s},[s,e,r,i,n]),[c,d]=A.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const u=n(e);return[()=>u.matches,h=>(u.addEventListener("change",h),()=>{u.removeEventListener("change",h)})]},[s,n,e]);return Vh(d,c,a)}function Hh(e={}){const{themeId:t}=e;return function(r,i={}){let s=Oh();s&&t&&(s=s[t]||s);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:c=!1,matchMedia:d=a?window.matchMedia:null,ssrMatchMedia:p=null,noSsr:u=!1}=Wh({name:"MuiUseMediaQuery",props:i,theme:s});process.env.NODE_ENV!=="production"&&typeof r=="function"&&s===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
|
|
31
31
|
`));let h=typeof r=="function"?r(s):r;h=h.replace(/^@media( ?)/m,""),h.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
|
|
32
32
|
`));const y=(Vh!==void 0?xC:bC)(h,c,d,p,u);return process.env.NODE_ENV!=="production"&&A.useDebugValue({query:h,match:y}),y}}Hh();function yo(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function ed(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),yo(e,t,n)}function vC(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function xr(e){if(e.type)return e;if(e.charAt(0)==="#")return xr(vC(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
33
33
|
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Fn(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${i}\` color space.
|
|
34
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Fn(10,i))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:i}}const SC=e=>{const t=xr(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Fi=(e,t)=>{try{return SC(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function _a(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((i,s)=>s<3?parseInt(i,10):i):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Uh(e){e=xr(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),a=(p,u=(p+n/30)%12)=>i-s*Math.max(Math.min(u-3,9-u,1),-1);let c="rgb";const d=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(c+="a",d.push(t[3])),_a({type:c,values:d})}function td(e){e=xr(e);let t=e.type==="hsl"||e.type==="hsla"?xr(Uh(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Rh(e,t){const n=td(e),r=td(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function $a(e,t){return e=xr(e),t=ed(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,_a(e)}function Br(e,t,n){try{return $a(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function za(e,t){if(e=xr(e),t=ed(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return _a(e)}function rt(e,t,n){try{return za(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function La(e,t){if(e=xr(e),t=ed(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return _a(e)}function ot(e,t,n){try{return La(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function nd(e,t=.15){return td(e)>.5?za(e,t):La(e,t)}function ja(e,t,n){try{return nd(e,t)}catch{return e}}const wC="exact-prop: ";function rd(e){return process.env.NODE_ENV==="production"?e:{...e,[wC]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}}}const CC=A.createContext();process.env.NODE_ENV!=="production"&&(o.node,o.bool);const Di=()=>A.useContext(CC)??!1,EC=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(o.node,o.object);function TC(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?Mi(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?Mi(i,r,t.components.mergeClassNameAndStyle):r}function AC({props:e,name:t}){const n=A.useContext(EC);return TC({props:e,name:t,theme:{components:n}})}let qh=0;function PC(e){const[t,n]=A.useState(e),r=e||t;return A.useEffect(()=>{t==null&&(qh+=1,n(`mui-${qh}`))},[t]),r}const Yh={...A}.useId;function _r(e){if(Yh!==void 0){const t=Yh();return e??t}return PC(e)}const Gh={theme:void 0};function kC(e){let t,n;return function(i){let s=t;return(s===void 0||i.theme!==n)&&(Gh.theme=i.theme,s=$h(e(Gh)),t=s,n=i.theme),s}}function OC(e=""){function t(...r){if(!r.length)return"";const i=r[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${i}${t(...r.slice(1))})`:`, ${i}`}return(r,...i)=>`var(--${e?`${e}-`:""}${r}${t(...i)})`}const Kh=(e,t,n,r=[])=>{let i=e;t.forEach((s,a)=>{a===t.length-1?Array.isArray(i)?i[Number(s)]=n:i&&typeof i=="object"&&(i[s]=n):i&&typeof i=="object"&&(i[s]||(i[s]=r.includes(s)?[]:{}),i=i[s])})},IC=(e,t,n)=>{function r(i,s=[],a=[]){Object.entries(i).forEach(([c,d])=>{(!n||n&&!n([...s,c]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?r(d,[...s,c],Array.isArray(d)?[...a,c]:a):t([...s,c],d,a))})}r(e)},NC=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function od(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},s={},a={};return IC(e,(c,d,p)=>{if((typeof d=="string"||typeof d=="number")&&(!r||!r(c,d))){const u=`--${n?`${n}-`:""}${c.join("-")}`,h=NC(c,d);Object.assign(i,{[u]:h}),Kh(s,c,`var(${u})`,p),Kh(a,c,`var(${u}, ${h})`,p)}},c=>c[0]==="vars"),{css:i,vars:s,varsWithDefaults:a}}function MC(e,t={}){const{getSelector:n=x,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:s}=t,{colorSchemes:a={},components:c,defaultColorScheme:d="light",...p}=e,{vars:u,css:h,varsWithDefaults:m}=od(p,t);let y=m;const g={},{[d]:f,...b}=a;if(Object.entries(b||{}).forEach(([S,T])=>{const{vars:v,css:k,varsWithDefaults:M}=od(T,t);y=Vt(y,M),g[S]={css:k,vars:v}}),f){const{css:S,vars:T,varsWithDefaults:v}=od(f,t);y=Vt(y,v),g[d]={css:S,vars:T}}function x(S,T){let v=i;if(i==="class"&&(v=".%s"),i==="data"&&(v="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(v=`[${i}="%s"]`),S){if(v==="media")return e.defaultColorScheme===S?":root":{[`@media (prefers-color-scheme: ${a[S]?.palette?.mode||S})`]:{":root":T}};if(v)return e.defaultColorScheme===S?`:root, ${v.replace("%s",String(S))}`:v.replace("%s",String(S))}return":root"}return{vars:y,generateThemeVars:()=>{let S={...u};return Object.entries(g).forEach(([,{vars:T}])=>{S=Vt(S,T)}),S},generateStyleSheets:()=>{const S=[],T=e.defaultColorScheme||"light";function v(_,z){Object.keys(z).length&&S.push(typeof _=="string"?{[_]:{...z}}:_)}v(n(void 0,{...h}),h);const{[T]:k,...M}=g;if(k){const{css:_}=k,z=a[T]?.palette?.mode,F=!r&&z?{colorScheme:z,..._}:{..._};v(n(T,{...F}),F)}return Object.entries(M).forEach(([_,{css:z}])=>{const F=a[_]?.palette?.mode,C=!r&&F?{colorScheme:F,...z}:{...z};v(n(_,{...C}),C)}),s&&S.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),S}}}function FC(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function Ie(e,t,n=void 0){const r={};for(const i in e){const s=e[i];let a="",c=!0;for(let d=0;d<s.length;d+=1){const p=s[d];p&&(a+=(c===!0?"":" ")+t(p),c=!1,n&&n[p]&&(a+=" "+n[p]))}r[i]=a}return r}const DC=Fa(),BC=mC("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${oe(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),_C=e=>yC({props:e,name:"MuiContainer",defaultTheme:DC}),$C=(e,t)=>{const n=d=>Pe(t,d),{classes:r,fixed:i,disableGutters:s,maxWidth:a}=e,c={root:["root",a&&`maxWidth${oe(String(a))}`,i&&"fixed",s&&"disableGutters"]};return Ie(c,n,r)};function zC(e={}){const{createStyledComponent:t=BC,useThemeProps:n=_C,componentName:r="MuiContainer"}=e,i=t(({theme:a,ownerState:c})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!c.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}}),({theme:a,ownerState:c})=>c.fixed&&Object.keys(a.breakpoints.values).reduce((d,p)=>{const u=p,h=a.breakpoints.values[u];return h!==0&&(d[a.breakpoints.up(u)]={maxWidth:`${h}${a.breakpoints.unit}`}),d},{}),({theme:a,ownerState:c})=>({...c.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},...c.maxWidth&&c.maxWidth!=="xs"&&{[a.breakpoints.up(c.maxWidth)]:{maxWidth:`${a.breakpoints.values[c.maxWidth]}${a.breakpoints.unit}`}}})),s=A.forwardRef(function(c,d){const p=n(c),{className:u,component:h="div",disableGutters:m=!1,fixed:y=!1,maxWidth:g="lg",classes:f,...b}=p,x={...p,component:h,disableGutters:m,fixed:y,maxWidth:g},E=$C(x,r);return l.jsx(i,{as:h,ownerState:x,className:he(E.root,u),ref:d,...b})});return process.env.NODE_ENV!=="production"&&(s.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disableGutters:o.bool,fixed:o.bool,maxWidth:o.oneOfType([o.oneOf(["xs","sm","md","lg","xl",!1]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])}),s}function id(e,t){return A.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function Xh(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:xi.white,default:xi.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Jh=Xh();function Qh(){return{text:{primary:xi.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:xi.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const sd=Qh();function Zh(e,t,n,r){const i=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=La(e.main,i):t==="dark"&&(e.dark=za(e.main,s)))}function eg(e,t,n,r,i){const s=i.light||i,a=i.dark||i*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(s*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function LC(e="light"){return e==="dark"?{main:lo[200],light:lo[50],dark:lo[400]}:{main:lo[700],light:lo[400],dark:lo[800]}}function jC(e="light"){return e==="dark"?{main:ao[200],light:ao[50],dark:ao[400]}:{main:ao[500],light:ao[300],dark:ao[700]}}function WC(e="light"){return e==="dark"?{main:so[500],light:so[300],dark:so[700]}:{main:so[700],light:so[400],dark:so[800]}}function VC(e="light"){return e==="dark"?{main:co[400],light:co[300],dark:co[700]}:{main:co[700],light:co[500],dark:co[900]}}function HC(e="light"){return e==="dark"?{main:uo[400],light:uo[300],dark:uo[700]}:{main:uo[800],light:uo[500],dark:uo[900]}}function UC(e="light"){return e==="dark"?{main:vi[400],light:vi[300],dark:vi[700]}:{main:"#ed6c02",light:vi[500],dark:vi[900]}}function RC(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function ad(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...s}=e,a=e.primary||LC(t),c=e.secondary||jC(t),d=e.error||WC(t),p=e.info||VC(t),u=e.success||HC(t),h=e.warning||UC(t);function m(b){if(i)return RC(b);const x=Rh(b,sd.text.primary)>=n?sd.text.primary:Jh.text.primary;if(process.env.NODE_ENV!=="production"){const E=Rh(b,x);E<3&&console.error([`MUI: The contrast ratio of ${E}:1 for ${x} on ${b}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
34
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Fn(10,i))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:i}}const SC=e=>{const t=xr(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Fi=(e,t)=>{try{return SC(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function _a(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((i,s)=>s<3?parseInt(i,10):i):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Uh(e){e=xr(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),a=(p,u=(p+n/30)%12)=>i-s*Math.max(Math.min(u-3,9-u,1),-1);let c="rgb";const d=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(c+="a",d.push(t[3])),_a({type:c,values:d})}function td(e){e=xr(e);let t=e.type==="hsl"||e.type==="hsla"?xr(Uh(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Rh(e,t){const n=td(e),r=td(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function $a(e,t){return e=xr(e),t=ed(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,_a(e)}function Br(e,t,n){try{return $a(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function za(e,t){if(e=xr(e),t=ed(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return _a(e)}function rt(e,t,n){try{return za(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function La(e,t){if(e=xr(e),t=ed(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return _a(e)}function ot(e,t,n){try{return La(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function nd(e,t=.15){return td(e)>.5?za(e,t):La(e,t)}function ja(e,t,n){try{return nd(e,t)}catch{return e}}const wC="exact-prop: ";function rd(e){return process.env.NODE_ENV==="production"?e:{...e,[wC]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}}}const CC=A.createContext();process.env.NODE_ENV!=="production"&&(o.node,o.bool);const Di=()=>A.useContext(CC)??!1,EC=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(o.node,o.object);function TC(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?Mi(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?Mi(i,r,t.components.mergeClassNameAndStyle):r}function AC({props:e,name:t}){const n=A.useContext(EC);return TC({props:e,name:t,theme:{components:n}})}let qh=0;function PC(e){const[t,n]=A.useState(e),r=e||t;return A.useEffect(()=>{t==null&&(qh+=1,n(`mui-${qh}`))},[t]),r}const Yh={...A}.useId;function _r(e){if(Yh!==void 0){const t=Yh();return e??t}return PC(e)}const Gh={theme:void 0};function kC(e){let t,n;return function(i){let s=t;return(s===void 0||i.theme!==n)&&(Gh.theme=i.theme,s=$h(e(Gh)),t=s,n=i.theme),s}}function OC(e=""){function t(...r){if(!r.length)return"";const i=r[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${i}${t(...r.slice(1))})`:`, ${i}`}return(r,...i)=>`var(--${e?`${e}-`:""}${r}${t(...i)})`}const Kh=(e,t,n,r=[])=>{let i=e;t.forEach((s,a)=>{a===t.length-1?Array.isArray(i)?i[Number(s)]=n:i&&typeof i=="object"&&(i[s]=n):i&&typeof i=="object"&&(i[s]||(i[s]=r.includes(s)?[]:{}),i=i[s])})},IC=(e,t,n)=>{function r(i,s=[],a=[]){Object.entries(i).forEach(([c,d])=>{(!n||n&&!n([...s,c]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?r(d,[...s,c],Array.isArray(d)?[...a,c]:a):t([...s,c],d,a))})}r(e)},NC=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function od(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},s={},a={};return IC(e,(c,d,p)=>{if((typeof d=="string"||typeof d=="number")&&(!r||!r(c,d))){const u=`--${n?`${n}-`:""}${c.join("-")}`,h=NC(c,d);Object.assign(i,{[u]:h}),Kh(s,c,`var(${u})`,p),Kh(a,c,`var(${u}, ${h})`,p)}},c=>c[0]==="vars"),{css:i,vars:s,varsWithDefaults:a}}function MC(e,t={}){const{getSelector:n=x,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:s}=t,{colorSchemes:a={},components:c,defaultColorScheme:d="light",...p}=e,{vars:u,css:h,varsWithDefaults:m}=od(p,t);let y=m;const g={},{[d]:f,...b}=a;if(Object.entries(b||{}).forEach(([S,T])=>{const{vars:v,css:k,varsWithDefaults:M}=od(T,t);y=Vt(y,M),g[S]={css:k,vars:v}}),f){const{css:S,vars:T,varsWithDefaults:v}=od(f,t);y=Vt(y,v),g[d]={css:S,vars:T}}function x(S,T){let v=i;if(i==="class"&&(v=".%s"),i==="data"&&(v="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(v=`[${i}="%s"]`),S){if(v==="media")return e.defaultColorScheme===S?":root":{[`@media (prefers-color-scheme: ${a[S]?.palette?.mode||S})`]:{":root":T}};if(v)return e.defaultColorScheme===S?`:root, ${v.replace("%s",String(S))}`:v.replace("%s",String(S))}return":root"}return{vars:y,generateThemeVars:()=>{let S={...u};return Object.entries(g).forEach(([,{vars:T}])=>{S=Vt(S,T)}),S},generateStyleSheets:()=>{const S=[],T=e.defaultColorScheme||"light";function v(B,z){Object.keys(z).length&&S.push(typeof B=="string"?{[B]:{...z}}:B)}v(n(void 0,{...h}),h);const{[T]:k,...M}=g;if(k){const{css:B}=k,z=a[T]?.palette?.mode,$=!r&&z?{colorScheme:z,...B}:{...B};v(n(T,{...$}),$)}return Object.entries(M).forEach(([B,{css:z}])=>{const $=a[B]?.palette?.mode,C=!r&&$?{colorScheme:$,...z}:{...z};v(n(B,{...C}),C)}),s&&S.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),S}}}function FC(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function Ne(e,t,n=void 0){const r={};for(const i in e){const s=e[i];let a="",c=!0;for(let d=0;d<s.length;d+=1){const p=s[d];p&&(a+=(c===!0?"":" ")+t(p),c=!1,n&&n[p]&&(a+=" "+n[p]))}r[i]=a}return r}const DC=Fa(),BC=mC("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ie(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),_C=e=>yC({props:e,name:"MuiContainer",defaultTheme:DC}),$C=(e,t)=>{const n=d=>Oe(t,d),{classes:r,fixed:i,disableGutters:s,maxWidth:a}=e,c={root:["root",a&&`maxWidth${ie(String(a))}`,i&&"fixed",s&&"disableGutters"]};return Ne(c,n,r)};function zC(e={}){const{createStyledComponent:t=BC,useThemeProps:n=_C,componentName:r="MuiContainer"}=e,i=t(({theme:a,ownerState:c})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!c.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}}),({theme:a,ownerState:c})=>c.fixed&&Object.keys(a.breakpoints.values).reduce((d,p)=>{const u=p,h=a.breakpoints.values[u];return h!==0&&(d[a.breakpoints.up(u)]={maxWidth:`${h}${a.breakpoints.unit}`}),d},{}),({theme:a,ownerState:c})=>({...c.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},...c.maxWidth&&c.maxWidth!=="xs"&&{[a.breakpoints.up(c.maxWidth)]:{maxWidth:`${a.breakpoints.values[c.maxWidth]}${a.breakpoints.unit}`}}})),s=A.forwardRef(function(c,d){const p=n(c),{className:u,component:h="div",disableGutters:m=!1,fixed:y=!1,maxWidth:g="lg",classes:f,...b}=p,x={...p,component:h,disableGutters:m,fixed:y,maxWidth:g},E=$C(x,r);return l.jsx(i,{as:h,ownerState:x,className:ge(E.root,u),ref:d,...b})});return process.env.NODE_ENV!=="production"&&(s.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disableGutters:o.bool,fixed:o.bool,maxWidth:o.oneOfType([o.oneOf(["xs","sm","md","lg","xl",!1]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])}),s}function id(e,t){return A.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function Xh(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:xi.white,default:xi.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Jh=Xh();function Qh(){return{text:{primary:xi.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:xi.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const sd=Qh();function Zh(e,t,n,r){const i=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=La(e.main,i):t==="dark"&&(e.dark=za(e.main,s)))}function eg(e,t,n,r,i){const s=i.light||i,a=i.dark||i*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(s*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function LC(e="light"){return e==="dark"?{main:lo[200],light:lo[50],dark:lo[400]}:{main:lo[700],light:lo[400],dark:lo[800]}}function jC(e="light"){return e==="dark"?{main:ao[200],light:ao[50],dark:ao[400]}:{main:ao[500],light:ao[300],dark:ao[700]}}function WC(e="light"){return e==="dark"?{main:so[500],light:so[300],dark:so[700]}:{main:so[700],light:so[400],dark:so[800]}}function VC(e="light"){return e==="dark"?{main:co[400],light:co[300],dark:co[700]}:{main:co[700],light:co[500],dark:co[900]}}function HC(e="light"){return e==="dark"?{main:uo[400],light:uo[300],dark:uo[700]}:{main:uo[800],light:uo[500],dark:uo[900]}}function UC(e="light"){return e==="dark"?{main:vi[400],light:vi[300],dark:vi[700]}:{main:"#ed6c02",light:vi[500],dark:vi[900]}}function RC(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function ad(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...s}=e,a=e.primary||LC(t),c=e.secondary||jC(t),d=e.error||WC(t),p=e.info||VC(t),u=e.success||HC(t),h=e.warning||UC(t);function m(b){if(i)return RC(b);const x=Rh(b,sd.text.primary)>=n?sd.text.primary:Jh.text.primary;if(process.env.NODE_ENV!=="production"){const E=Rh(b,x);E<3&&console.error([`MUI: The contrast ratio of ${E}:1 for ${x} on ${b}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
35
35
|
`))}return x}const y=({color:b,name:x,mainShade:E=500,lightShade:w=300,darkShade:S=700})=>{if(b={...b},!b.main&&b[E]&&(b.main=b[E]),!b.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
|
|
36
36
|
The color object needs to have a \`main\` property or a \`${E}\` property.`:Fn(11,x?` (${x})`:"",E));if(typeof b.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
|
|
37
37
|
\`color.main\` should be a string, but \`${JSON.stringify(b.main)}\` was provided instead.
|
|
@@ -54,13 +54,13 @@ const theme = ${JSON.stringify(t,null,2)};
|
|
|
54
54
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
55
55
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
56
56
|
|
|
57
|
-
export default theme;`}function ig(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const sE=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function aE(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:$a(t,sE(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${ig(n)})`:La(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${ig(n)})`:za(t,n)}})}function ld(e={},...t){const{breakpoints:n,mixins:r={},spacing:i,palette:s={},transitions:a={},typography:c={},shape:d,colorSpace:p,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Fn(20));const h=ad({...s,colorSpace:p}),m=Fa(e);let y=Vt(m,{mixins:YC(m.breakpoints,r),palette:h,shadows:ZC.slice(),typography:KC(h,c),transitions:rE(a),zIndex:{...oE}});if(y=Vt(y,u),y=t.reduce((g,f)=>Vt(g,f),y),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(b,x)=>{let E;for(E in b){const w=b[E];if(g.includes(E)&&Object.keys(w).length>0){if(process.env.NODE_ENV!=="production"){const S=
|
|
58
|
-
`))}b[E]={}}}};Object.keys(y.components).forEach(b=>{const x=y.components[b].styleOverrides;x&&b.startsWith("Mui")&&f(x,b)})}return y.unstable_sxConfig={...Ni,...u?.unstable_sxConfig},y.unstable_sx=function(f){return Fr({sx:f,theme:this})},y.toRuntimeSource=og,aE(y),y}function cd(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const lE=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=cd(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function sg(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function ag(e){return e==="dark"?lE:[]}function cE(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:i,...s}=e,a=ad({...t,colorSpace:i});return{palette:a,opacity:{...sg(a.mode),...n},overlays:r||ag(a.mode),...s}}function dE(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const uE=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],pE=e=>(t,n)=>{const r=e.rootSelector||":root",i=e.colorSchemeSelector;let s=i;if(i==="class"&&(s=".%s"),i==="data"&&(s="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(s=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return uE(e.cssVarPrefix).forEach(c=>{a[c]=n[c],delete n[c]}),s==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:s?{[s.replace("%s",t)]:a,[`${r}, ${s.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(s&&s!=="media")return`${r}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(s)return s.replace("%s",String(t))}return r};function fE(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function
|
|
59
|
-
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function hE(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const zn=e=>{try{return e()}catch{}},gE=(e="mui")=>OC(e);function dd(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;const s=i==="dark"?"dark":"light";if(!r){t[i]=cE({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:a,...c}=ld({...r,palette:{mode:s,...n?.palette},colorSpace:e});return t[i]={...n,palette:a,opacity:{...sg(s),...n?.opacity},overlays:n?.overlays||ag(s)},c}function mE(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:s="mui",nativeColor:a=!1,shouldSkipGeneratingVar:c=dE,colorSchemeSelector:d=n.light&&n.dark?"media":void 0,rootSelector:p=":root",...u}=e,h=Object.keys(n)[0],m=r||(n.light&&h!=="light"?"light":h),y=gE(s),{[m]:g,light:f,dark:b,...x}=n,E={...x};let w=g;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(w=!0),!w)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${m}\` option is either missing or invalid.`:Fn(21,m));let S;a&&(S="oklch");const T=dd(S,E,w,u,m);f&&!E.light&&dd(S,E,f,void 0,"light"),b&&!E.dark&&dd(S,E,b,void 0,"dark");let v={defaultColorScheme:m,...T,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:p,getCssVar:y,colorSchemes:E,font:{...qC(T.typography),...T.font},spacing:hE(u.spacing)};Object.keys(v.colorSchemes).forEach(F=>{const C=v.colorSchemes[F].palette,I=D=>{const L=D.split("-"),V=L[1],Y=L[2];return y(D,C[V][Y])};C.mode==="light"&&(ee(C.common,"background","#fff"),ee(C.common,"onBackground","#000")),C.mode==="dark"&&(ee(C.common,"background","#000"),ee(C.common,"onBackground","#fff"));function $(D,L,V){if(S){let Y;return D===Br&&(Y=`transparent ${((1-V)*100).toFixed(0)}%`),D===rt&&(Y=`#000 ${(V*100).toFixed(0)}%`),D===ot&&(Y=`#fff ${(V*100).toFixed(0)}%`),`color-mix(in ${S}, ${L}, ${Y})`}return D(L,V)}if(fE(C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),C.mode==="light"){ee(C.Alert,"errorColor",$(rt,C.error.light,.6)),ee(C.Alert,"infoColor",$(rt,C.info.light,.6)),ee(C.Alert,"successColor",$(rt,C.success.light,.6)),ee(C.Alert,"warningColor",$(rt,C.warning.light,.6)),ee(C.Alert,"errorFilledBg",I("palette-error-main")),ee(C.Alert,"infoFilledBg",I("palette-info-main")),ee(C.Alert,"successFilledBg",I("palette-success-main")),ee(C.Alert,"warningFilledBg",I("palette-warning-main")),ee(C.Alert,"errorFilledColor",zn(()=>C.getContrastText(C.error.main))),ee(C.Alert,"infoFilledColor",zn(()=>C.getContrastText(C.info.main))),ee(C.Alert,"successFilledColor",zn(()=>C.getContrastText(C.success.main))),ee(C.Alert,"warningFilledColor",zn(()=>C.getContrastText(C.warning.main))),ee(C.Alert,"errorStandardBg",$(ot,C.error.light,.9)),ee(C.Alert,"infoStandardBg",$(ot,C.info.light,.9)),ee(C.Alert,"successStandardBg",$(ot,C.success.light,.9)),ee(C.Alert,"warningStandardBg",$(ot,C.warning.light,.9)),ee(C.Alert,"errorIconColor",I("palette-error-main")),ee(C.Alert,"infoIconColor",I("palette-info-main")),ee(C.Alert,"successIconColor",I("palette-success-main")),ee(C.Alert,"warningIconColor",I("palette-warning-main")),ee(C.AppBar,"defaultBg",I("palette-grey-100")),ee(C.Avatar,"defaultBg",I("palette-grey-400")),ee(C.Button,"inheritContainedBg",I("palette-grey-300")),ee(C.Button,"inheritContainedHoverBg",I("palette-grey-A100")),ee(C.Chip,"defaultBorder",I("palette-grey-400")),ee(C.Chip,"defaultAvatarColor",I("palette-grey-700")),ee(C.Chip,"defaultIconColor",I("palette-grey-700")),ee(C.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ee(C.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ee(C.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ee(C.LinearProgress,"primaryBg",$(ot,C.primary.main,.62)),ee(C.LinearProgress,"secondaryBg",$(ot,C.secondary.main,.62)),ee(C.LinearProgress,"errorBg",$(ot,C.error.main,.62)),ee(C.LinearProgress,"infoBg",$(ot,C.info.main,.62)),ee(C.LinearProgress,"successBg",$(ot,C.success.main,.62)),ee(C.LinearProgress,"warningBg",$(ot,C.warning.main,.62)),ee(C.Skeleton,"bg",S?$(Br,C.text.primary,.11):`rgba(${I("palette-text-primaryChannel")} / 0.11)`),ee(C.Slider,"primaryTrack",$(ot,C.primary.main,.62)),ee(C.Slider,"secondaryTrack",$(ot,C.secondary.main,.62)),ee(C.Slider,"errorTrack",$(ot,C.error.main,.62)),ee(C.Slider,"infoTrack",$(ot,C.info.main,.62)),ee(C.Slider,"successTrack",$(ot,C.success.main,.62)),ee(C.Slider,"warningTrack",$(ot,C.warning.main,.62));const D=S?$(rt,C.background.default,.6825):ja(C.background.default,.8);ee(C.SnackbarContent,"bg",D),ee(C.SnackbarContent,"color",zn(()=>S?sd.text.primary:C.getContrastText(D))),ee(C.SpeedDialAction,"fabHoverBg",ja(C.background.paper,.15)),ee(C.StepConnector,"border",I("palette-grey-400")),ee(C.StepContent,"border",I("palette-grey-400")),ee(C.Switch,"defaultColor",I("palette-common-white")),ee(C.Switch,"defaultDisabledColor",I("palette-grey-100")),ee(C.Switch,"primaryDisabledColor",$(ot,C.primary.main,.62)),ee(C.Switch,"secondaryDisabledColor",$(ot,C.secondary.main,.62)),ee(C.Switch,"errorDisabledColor",$(ot,C.error.main,.62)),ee(C.Switch,"infoDisabledColor",$(ot,C.info.main,.62)),ee(C.Switch,"successDisabledColor",$(ot,C.success.main,.62)),ee(C.Switch,"warningDisabledColor",$(ot,C.warning.main,.62)),ee(C.TableCell,"border",$(ot,$(Br,C.divider,1),.88)),ee(C.Tooltip,"bg",$(Br,C.grey[700],.92))}if(C.mode==="dark"){ee(C.Alert,"errorColor",$(ot,C.error.light,.6)),ee(C.Alert,"infoColor",$(ot,C.info.light,.6)),ee(C.Alert,"successColor",$(ot,C.success.light,.6)),ee(C.Alert,"warningColor",$(ot,C.warning.light,.6)),ee(C.Alert,"errorFilledBg",I("palette-error-dark")),ee(C.Alert,"infoFilledBg",I("palette-info-dark")),ee(C.Alert,"successFilledBg",I("palette-success-dark")),ee(C.Alert,"warningFilledBg",I("palette-warning-dark")),ee(C.Alert,"errorFilledColor",zn(()=>C.getContrastText(C.error.dark))),ee(C.Alert,"infoFilledColor",zn(()=>C.getContrastText(C.info.dark))),ee(C.Alert,"successFilledColor",zn(()=>C.getContrastText(C.success.dark))),ee(C.Alert,"warningFilledColor",zn(()=>C.getContrastText(C.warning.dark))),ee(C.Alert,"errorStandardBg",$(rt,C.error.light,.9)),ee(C.Alert,"infoStandardBg",$(rt,C.info.light,.9)),ee(C.Alert,"successStandardBg",$(rt,C.success.light,.9)),ee(C.Alert,"warningStandardBg",$(rt,C.warning.light,.9)),ee(C.Alert,"errorIconColor",I("palette-error-main")),ee(C.Alert,"infoIconColor",I("palette-info-main")),ee(C.Alert,"successIconColor",I("palette-success-main")),ee(C.Alert,"warningIconColor",I("palette-warning-main")),ee(C.AppBar,"defaultBg",I("palette-grey-900")),ee(C.AppBar,"darkBg",I("palette-background-paper")),ee(C.AppBar,"darkColor",I("palette-text-primary")),ee(C.Avatar,"defaultBg",I("palette-grey-600")),ee(C.Button,"inheritContainedBg",I("palette-grey-800")),ee(C.Button,"inheritContainedHoverBg",I("palette-grey-700")),ee(C.Chip,"defaultBorder",I("palette-grey-700")),ee(C.Chip,"defaultAvatarColor",I("palette-grey-300")),ee(C.Chip,"defaultIconColor",I("palette-grey-300")),ee(C.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ee(C.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ee(C.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ee(C.LinearProgress,"primaryBg",$(rt,C.primary.main,.5)),ee(C.LinearProgress,"secondaryBg",$(rt,C.secondary.main,.5)),ee(C.LinearProgress,"errorBg",$(rt,C.error.main,.5)),ee(C.LinearProgress,"infoBg",$(rt,C.info.main,.5)),ee(C.LinearProgress,"successBg",$(rt,C.success.main,.5)),ee(C.LinearProgress,"warningBg",$(rt,C.warning.main,.5)),ee(C.Skeleton,"bg",S?$(Br,C.text.primary,.13):`rgba(${I("palette-text-primaryChannel")} / 0.13)`),ee(C.Slider,"primaryTrack",$(rt,C.primary.main,.5)),ee(C.Slider,"secondaryTrack",$(rt,C.secondary.main,.5)),ee(C.Slider,"errorTrack",$(rt,C.error.main,.5)),ee(C.Slider,"infoTrack",$(rt,C.info.main,.5)),ee(C.Slider,"successTrack",$(rt,C.success.main,.5)),ee(C.Slider,"warningTrack",$(rt,C.warning.main,.5));const D=S?$(ot,C.background.default,.985):ja(C.background.default,.98);ee(C.SnackbarContent,"bg",D),ee(C.SnackbarContent,"color",zn(()=>S?Jh.text.primary:C.getContrastText(D))),ee(C.SpeedDialAction,"fabHoverBg",ja(C.background.paper,.15)),ee(C.StepConnector,"border",I("palette-grey-600")),ee(C.StepContent,"border",I("palette-grey-600")),ee(C.Switch,"defaultColor",I("palette-grey-300")),ee(C.Switch,"defaultDisabledColor",I("palette-grey-600")),ee(C.Switch,"primaryDisabledColor",$(rt,C.primary.main,.55)),ee(C.Switch,"secondaryDisabledColor",$(rt,C.secondary.main,.55)),ee(C.Switch,"errorDisabledColor",$(rt,C.error.main,.55)),ee(C.Switch,"infoDisabledColor",$(rt,C.info.main,.55)),ee(C.Switch,"successDisabledColor",$(rt,C.success.main,.55)),ee(C.Switch,"warningDisabledColor",$(rt,C.warning.main,.55)),ee(C.TableCell,"border",$(rt,$(Br,C.divider,1),.68)),ee(C.Tooltip,"bg",$(Br,C.grey[700],.92))}rr(C.background,"default"),rr(C.background,"paper"),rr(C.common,"background"),rr(C.common,"onBackground"),rr(C,"divider"),Object.keys(C).forEach(D=>{const L=C[D];D!=="tonalOffset"&&L&&typeof L=="object"&&(L.main&&ee(C[D],"mainChannel",Fi(Bi(L.main))),L.light&&ee(C[D],"lightChannel",Fi(Bi(L.light))),L.dark&&ee(C[D],"darkChannel",Fi(Bi(L.dark))),L.contrastText&&ee(C[D],"contrastTextChannel",Fi(Bi(L.contrastText))),D==="text"&&(rr(C[D],"primary"),rr(C[D],"secondary")),D==="action"&&(L.active&&rr(C[D],"active"),L.selected&&rr(C[D],"selected")))})}),v=t.reduce((F,C)=>Vt(F,C),v);const k={prefix:s,disableCssColorScheme:i,shouldSkipGeneratingVar:c,getSelector:pE(v),enableContrastVars:a},{vars:M,generateThemeVars:_,generateStyleSheets:z}=MC(v,k);return v.vars=M,Object.entries(v.colorSchemes[v.defaultColorScheme]).forEach(([F,C])=>{v[F]=C}),v.generateThemeVars=_,v.generateStyleSheets=z,v.generateSpacing=function(){return kh(u.spacing,Xc(this))},v.getColorSchemeSelector=FC(d),v.spacing=v.generateSpacing(),v.shouldSkipGeneratingVar=c,v.unstable_sxConfig={...Ni,...u?.unstable_sxConfig},v.unstable_sx=function(C){return Fr({sx:C,theme:this})},v.toRuntimeSource=og,v}function lg(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:ad({...n===!0?{}:n.palette,mode:t})})}function cg(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:s=n?.mode,...a}=e,c=s||"light",d=i?.[c],p={...i,...n?{[c]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return ld(e,...t);let u=n;"palette"in e||p[c]&&(p[c]!==!0?u=p[c].palette:c==="dark"&&(u={mode:"dark"}));const h=ld({...e,palette:u},...t);return h.defaultColorScheme=c,h.colorSchemes=p,h.palette.mode==="light"&&(h.colorSchemes.light={...p.light!==!0&&p.light,palette:h.palette},lg(h,"dark",p.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:h.palette},lg(h,"light",p.light)),h}return!n&&!("light"in p)&&c==="light"&&(p.light=!0),mE({...a,colorSchemes:p,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const ud=cg();function Ln(){const e=Da(ud);return process.env.NODE_ENV!=="production"&&A.useDebugValue(e),e[Si]||e}function _i(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ht=e=>_i(e)&&e!=="classes",ne=Lh({themeId:Si,defaultTheme:ud,rootShouldForwardProp:Ht});function pd(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function dg(e){return l.jsx(Ih,{...e,defaultTheme:ud,themeId:Si})}process.env.NODE_ENV!=="production"&&(dg.propTypes={styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool])});function yE(e){return function(n){return l.jsx(dg,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function bE(){return Nh}const Ee=kC;process.env.NODE_ENV!=="production"&&(o.node,o.object.isRequired);function Fe(e){return AC(e)}function xE(e){return Pe("MuiSvgIcon",e)}ke("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const vE=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${oe(t)}`,`fontSize${oe(n)}`]};return Ie(i,xE,r)},SE=ne("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${oe(n.color)}`],t[`fontSize${oe(n.fontSize)}`]]}})(Ee(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),or=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSvgIcon"}),{children:i,className:s,color:a="inherit",component:c="svg",fontSize:d="medium",htmlColor:p,inheritViewBox:u=!1,titleAccess:h,viewBox:m="0 0 24 24",...y}=r,g=A.isValidElement(i)&&i.type==="svg",f={...r,color:a,component:c,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:m,hasSvgAsChild:g},b={};u||(b.viewBox=m);const x=vE(f);return l.jsxs(SE,{as:c,className:he(x.root,s),focusable:"false",color:p,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n,...b,...y,...g&&i.props,ownerState:f,children:[g?i.props.children:i,h?l.jsx("title",{children:h}):null]})});process.env.NODE_ENV!=="production"&&(or.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,fontSize:o.oneOfType([o.oneOf(["inherit","large","medium","small"]),o.string]),htmlColor:o.string,inheritViewBox:o.bool,shapeRendering:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),titleAccess:o.string,viewBox:o.string}),or.muiName="SvgIcon";function yt(e,t){function n(r,i){return l.jsx(or,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:i,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=or.muiName,A.memo(A.forwardRef(n))}function ug(e,t=166){let n;function r(...i){const s=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function It(e){return e&&e.ownerDocument||document}function ir(e){return It(e).defaultView||window}function pg(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function bo(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:s}=A.useRef(t!==void 0),[a,c]=A.useState(n),d=s?t:a;if(process.env.NODE_ENV!=="production"){A.useEffect(()=>{s!==(t!==void 0)&&console.error([`MUI: A component is changing the ${s?"":"un"}controlled ${i} state of ${r} to be ${s?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
57
|
+
export default theme;`}function ig(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const sE=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function aE(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:$a(t,sE(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${ig(n)})`:La(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${ig(n)})`:za(t,n)}})}function ld(e={},...t){const{breakpoints:n,mixins:r={},spacing:i,palette:s={},transitions:a={},typography:c={},shape:d,colorSpace:p,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Fn(20));const h=ad({...s,colorSpace:p}),m=Fa(e);let y=Vt(m,{mixins:YC(m.breakpoints,r),palette:h,shadows:ZC.slice(),typography:KC(h,c),transitions:rE(a),zIndex:{...oE}});if(y=Vt(y,u),y=t.reduce((g,f)=>Vt(g,f),y),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(b,x)=>{let E;for(E in b){const w=b[E];if(g.includes(E)&&Object.keys(w).length>0){if(process.env.NODE_ENV!=="production"){const S=Oe("",E);console.error([`MUI: The \`${x}\` component increases the CSS specificity of the \`${E}\` internal state.`,"You can not override it like this: ",JSON.stringify(b,null,2),"",`Instead, you need to use the '&.${S}' syntax:`,JSON.stringify({root:{[`&.${S}`]:w}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
58
|
+
`))}b[E]={}}}};Object.keys(y.components).forEach(b=>{const x=y.components[b].styleOverrides;x&&b.startsWith("Mui")&&f(x,b)})}return y.unstable_sxConfig={...Ni,...u?.unstable_sxConfig},y.unstable_sx=function(f){return Fr({sx:f,theme:this})},y.toRuntimeSource=og,aE(y),y}function cd(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const lE=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=cd(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function sg(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function ag(e){return e==="dark"?lE:[]}function cE(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:i,...s}=e,a=ad({...t,colorSpace:i});return{palette:a,opacity:{...sg(a.mode),...n},overlays:r||ag(a.mode),...s}}function dE(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const uE=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],pE=e=>(t,n)=>{const r=e.rootSelector||":root",i=e.colorSchemeSelector;let s=i;if(i==="class"&&(s=".%s"),i==="data"&&(s="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(s=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return uE(e.cssVarPrefix).forEach(c=>{a[c]=n[c],delete n[c]}),s==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:s?{[s.replace("%s",t)]:a,[`${r}, ${s.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(s&&s!=="media")return`${r}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(s)return s.replace("%s",String(t))}return r};function fE(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Z(e,t,n){!e[t]&&n&&(e[t]=n)}function Bi(e){return typeof e!="string"||!e.startsWith("hsl")?e:Uh(e)}function rr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Fi(Bi(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
59
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function hE(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const zn=e=>{try{return e()}catch{}},gE=(e="mui")=>OC(e);function dd(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;const s=i==="dark"?"dark":"light";if(!r){t[i]=cE({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:a,...c}=ld({...r,palette:{mode:s,...n?.palette},colorSpace:e});return t[i]={...n,palette:a,opacity:{...sg(s),...n?.opacity},overlays:n?.overlays||ag(s)},c}function mE(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:s="mui",nativeColor:a=!1,shouldSkipGeneratingVar:c=dE,colorSchemeSelector:d=n.light&&n.dark?"media":void 0,rootSelector:p=":root",...u}=e,h=Object.keys(n)[0],m=r||(n.light&&h!=="light"?"light":h),y=gE(s),{[m]:g,light:f,dark:b,...x}=n,E={...x};let w=g;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(w=!0),!w)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${m}\` option is either missing or invalid.`:Fn(21,m));let S;a&&(S="oklch");const T=dd(S,E,w,u,m);f&&!E.light&&dd(S,E,f,void 0,"light"),b&&!E.dark&&dd(S,E,b,void 0,"dark");let v={defaultColorScheme:m,...T,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:p,getCssVar:y,colorSchemes:E,font:{...qC(T.typography),...T.font},spacing:hE(u.spacing)};Object.keys(v.colorSchemes).forEach($=>{const C=v.colorSchemes[$].palette,I=F=>{const j=F.split("-"),V=j[1],R=j[2];return y(F,C[V][R])};C.mode==="light"&&(Z(C.common,"background","#fff"),Z(C.common,"onBackground","#000")),C.mode==="dark"&&(Z(C.common,"background","#000"),Z(C.common,"onBackground","#fff"));function _(F,j,V){if(S){let R;return F===Br&&(R=`transparent ${((1-V)*100).toFixed(0)}%`),F===rt&&(R=`#000 ${(V*100).toFixed(0)}%`),F===ot&&(R=`#fff ${(V*100).toFixed(0)}%`),`color-mix(in ${S}, ${j}, ${R})`}return F(j,V)}if(fE(C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),C.mode==="light"){Z(C.Alert,"errorColor",_(rt,C.error.light,.6)),Z(C.Alert,"infoColor",_(rt,C.info.light,.6)),Z(C.Alert,"successColor",_(rt,C.success.light,.6)),Z(C.Alert,"warningColor",_(rt,C.warning.light,.6)),Z(C.Alert,"errorFilledBg",I("palette-error-main")),Z(C.Alert,"infoFilledBg",I("palette-info-main")),Z(C.Alert,"successFilledBg",I("palette-success-main")),Z(C.Alert,"warningFilledBg",I("palette-warning-main")),Z(C.Alert,"errorFilledColor",zn(()=>C.getContrastText(C.error.main))),Z(C.Alert,"infoFilledColor",zn(()=>C.getContrastText(C.info.main))),Z(C.Alert,"successFilledColor",zn(()=>C.getContrastText(C.success.main))),Z(C.Alert,"warningFilledColor",zn(()=>C.getContrastText(C.warning.main))),Z(C.Alert,"errorStandardBg",_(ot,C.error.light,.9)),Z(C.Alert,"infoStandardBg",_(ot,C.info.light,.9)),Z(C.Alert,"successStandardBg",_(ot,C.success.light,.9)),Z(C.Alert,"warningStandardBg",_(ot,C.warning.light,.9)),Z(C.Alert,"errorIconColor",I("palette-error-main")),Z(C.Alert,"infoIconColor",I("palette-info-main")),Z(C.Alert,"successIconColor",I("palette-success-main")),Z(C.Alert,"warningIconColor",I("palette-warning-main")),Z(C.AppBar,"defaultBg",I("palette-grey-100")),Z(C.Avatar,"defaultBg",I("palette-grey-400")),Z(C.Button,"inheritContainedBg",I("palette-grey-300")),Z(C.Button,"inheritContainedHoverBg",I("palette-grey-A100")),Z(C.Chip,"defaultBorder",I("palette-grey-400")),Z(C.Chip,"defaultAvatarColor",I("palette-grey-700")),Z(C.Chip,"defaultIconColor",I("palette-grey-700")),Z(C.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Z(C.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Z(C.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Z(C.LinearProgress,"primaryBg",_(ot,C.primary.main,.62)),Z(C.LinearProgress,"secondaryBg",_(ot,C.secondary.main,.62)),Z(C.LinearProgress,"errorBg",_(ot,C.error.main,.62)),Z(C.LinearProgress,"infoBg",_(ot,C.info.main,.62)),Z(C.LinearProgress,"successBg",_(ot,C.success.main,.62)),Z(C.LinearProgress,"warningBg",_(ot,C.warning.main,.62)),Z(C.Skeleton,"bg",S?_(Br,C.text.primary,.11):`rgba(${I("palette-text-primaryChannel")} / 0.11)`),Z(C.Slider,"primaryTrack",_(ot,C.primary.main,.62)),Z(C.Slider,"secondaryTrack",_(ot,C.secondary.main,.62)),Z(C.Slider,"errorTrack",_(ot,C.error.main,.62)),Z(C.Slider,"infoTrack",_(ot,C.info.main,.62)),Z(C.Slider,"successTrack",_(ot,C.success.main,.62)),Z(C.Slider,"warningTrack",_(ot,C.warning.main,.62));const F=S?_(rt,C.background.default,.6825):ja(C.background.default,.8);Z(C.SnackbarContent,"bg",F),Z(C.SnackbarContent,"color",zn(()=>S?sd.text.primary:C.getContrastText(F))),Z(C.SpeedDialAction,"fabHoverBg",ja(C.background.paper,.15)),Z(C.StepConnector,"border",I("palette-grey-400")),Z(C.StepContent,"border",I("palette-grey-400")),Z(C.Switch,"defaultColor",I("palette-common-white")),Z(C.Switch,"defaultDisabledColor",I("palette-grey-100")),Z(C.Switch,"primaryDisabledColor",_(ot,C.primary.main,.62)),Z(C.Switch,"secondaryDisabledColor",_(ot,C.secondary.main,.62)),Z(C.Switch,"errorDisabledColor",_(ot,C.error.main,.62)),Z(C.Switch,"infoDisabledColor",_(ot,C.info.main,.62)),Z(C.Switch,"successDisabledColor",_(ot,C.success.main,.62)),Z(C.Switch,"warningDisabledColor",_(ot,C.warning.main,.62)),Z(C.TableCell,"border",_(ot,_(Br,C.divider,1),.88)),Z(C.Tooltip,"bg",_(Br,C.grey[700],.92))}if(C.mode==="dark"){Z(C.Alert,"errorColor",_(ot,C.error.light,.6)),Z(C.Alert,"infoColor",_(ot,C.info.light,.6)),Z(C.Alert,"successColor",_(ot,C.success.light,.6)),Z(C.Alert,"warningColor",_(ot,C.warning.light,.6)),Z(C.Alert,"errorFilledBg",I("palette-error-dark")),Z(C.Alert,"infoFilledBg",I("palette-info-dark")),Z(C.Alert,"successFilledBg",I("palette-success-dark")),Z(C.Alert,"warningFilledBg",I("palette-warning-dark")),Z(C.Alert,"errorFilledColor",zn(()=>C.getContrastText(C.error.dark))),Z(C.Alert,"infoFilledColor",zn(()=>C.getContrastText(C.info.dark))),Z(C.Alert,"successFilledColor",zn(()=>C.getContrastText(C.success.dark))),Z(C.Alert,"warningFilledColor",zn(()=>C.getContrastText(C.warning.dark))),Z(C.Alert,"errorStandardBg",_(rt,C.error.light,.9)),Z(C.Alert,"infoStandardBg",_(rt,C.info.light,.9)),Z(C.Alert,"successStandardBg",_(rt,C.success.light,.9)),Z(C.Alert,"warningStandardBg",_(rt,C.warning.light,.9)),Z(C.Alert,"errorIconColor",I("palette-error-main")),Z(C.Alert,"infoIconColor",I("palette-info-main")),Z(C.Alert,"successIconColor",I("palette-success-main")),Z(C.Alert,"warningIconColor",I("palette-warning-main")),Z(C.AppBar,"defaultBg",I("palette-grey-900")),Z(C.AppBar,"darkBg",I("palette-background-paper")),Z(C.AppBar,"darkColor",I("palette-text-primary")),Z(C.Avatar,"defaultBg",I("palette-grey-600")),Z(C.Button,"inheritContainedBg",I("palette-grey-800")),Z(C.Button,"inheritContainedHoverBg",I("palette-grey-700")),Z(C.Chip,"defaultBorder",I("palette-grey-700")),Z(C.Chip,"defaultAvatarColor",I("palette-grey-300")),Z(C.Chip,"defaultIconColor",I("palette-grey-300")),Z(C.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Z(C.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Z(C.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Z(C.LinearProgress,"primaryBg",_(rt,C.primary.main,.5)),Z(C.LinearProgress,"secondaryBg",_(rt,C.secondary.main,.5)),Z(C.LinearProgress,"errorBg",_(rt,C.error.main,.5)),Z(C.LinearProgress,"infoBg",_(rt,C.info.main,.5)),Z(C.LinearProgress,"successBg",_(rt,C.success.main,.5)),Z(C.LinearProgress,"warningBg",_(rt,C.warning.main,.5)),Z(C.Skeleton,"bg",S?_(Br,C.text.primary,.13):`rgba(${I("palette-text-primaryChannel")} / 0.13)`),Z(C.Slider,"primaryTrack",_(rt,C.primary.main,.5)),Z(C.Slider,"secondaryTrack",_(rt,C.secondary.main,.5)),Z(C.Slider,"errorTrack",_(rt,C.error.main,.5)),Z(C.Slider,"infoTrack",_(rt,C.info.main,.5)),Z(C.Slider,"successTrack",_(rt,C.success.main,.5)),Z(C.Slider,"warningTrack",_(rt,C.warning.main,.5));const F=S?_(ot,C.background.default,.985):ja(C.background.default,.98);Z(C.SnackbarContent,"bg",F),Z(C.SnackbarContent,"color",zn(()=>S?Jh.text.primary:C.getContrastText(F))),Z(C.SpeedDialAction,"fabHoverBg",ja(C.background.paper,.15)),Z(C.StepConnector,"border",I("palette-grey-600")),Z(C.StepContent,"border",I("palette-grey-600")),Z(C.Switch,"defaultColor",I("palette-grey-300")),Z(C.Switch,"defaultDisabledColor",I("palette-grey-600")),Z(C.Switch,"primaryDisabledColor",_(rt,C.primary.main,.55)),Z(C.Switch,"secondaryDisabledColor",_(rt,C.secondary.main,.55)),Z(C.Switch,"errorDisabledColor",_(rt,C.error.main,.55)),Z(C.Switch,"infoDisabledColor",_(rt,C.info.main,.55)),Z(C.Switch,"successDisabledColor",_(rt,C.success.main,.55)),Z(C.Switch,"warningDisabledColor",_(rt,C.warning.main,.55)),Z(C.TableCell,"border",_(rt,_(Br,C.divider,1),.68)),Z(C.Tooltip,"bg",_(Br,C.grey[700],.92))}rr(C.background,"default"),rr(C.background,"paper"),rr(C.common,"background"),rr(C.common,"onBackground"),rr(C,"divider"),Object.keys(C).forEach(F=>{const j=C[F];F!=="tonalOffset"&&j&&typeof j=="object"&&(j.main&&Z(C[F],"mainChannel",Fi(Bi(j.main))),j.light&&Z(C[F],"lightChannel",Fi(Bi(j.light))),j.dark&&Z(C[F],"darkChannel",Fi(Bi(j.dark))),j.contrastText&&Z(C[F],"contrastTextChannel",Fi(Bi(j.contrastText))),F==="text"&&(rr(C[F],"primary"),rr(C[F],"secondary")),F==="action"&&(j.active&&rr(C[F],"active"),j.selected&&rr(C[F],"selected")))})}),v=t.reduce(($,C)=>Vt($,C),v);const k={prefix:s,disableCssColorScheme:i,shouldSkipGeneratingVar:c,getSelector:pE(v),enableContrastVars:a},{vars:M,generateThemeVars:B,generateStyleSheets:z}=MC(v,k);return v.vars=M,Object.entries(v.colorSchemes[v.defaultColorScheme]).forEach(([$,C])=>{v[$]=C}),v.generateThemeVars=B,v.generateStyleSheets=z,v.generateSpacing=function(){return kh(u.spacing,Xc(this))},v.getColorSchemeSelector=FC(d),v.spacing=v.generateSpacing(),v.shouldSkipGeneratingVar=c,v.unstable_sxConfig={...Ni,...u?.unstable_sxConfig},v.unstable_sx=function(C){return Fr({sx:C,theme:this})},v.toRuntimeSource=og,v}function lg(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:ad({...n===!0?{}:n.palette,mode:t})})}function cg(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:s=n?.mode,...a}=e,c=s||"light",d=i?.[c],p={...i,...n?{[c]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return ld(e,...t);let u=n;"palette"in e||p[c]&&(p[c]!==!0?u=p[c].palette:c==="dark"&&(u={mode:"dark"}));const h=ld({...e,palette:u},...t);return h.defaultColorScheme=c,h.colorSchemes=p,h.palette.mode==="light"&&(h.colorSchemes.light={...p.light!==!0&&p.light,palette:h.palette},lg(h,"dark",p.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:h.palette},lg(h,"light",p.light)),h}return!n&&!("light"in p)&&c==="light"&&(p.light=!0),mE({...a,colorSchemes:p,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const ud=cg();function Ln(){const e=Da(ud);return process.env.NODE_ENV!=="production"&&A.useDebugValue(e),e[Si]||e}function _i(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ht=e=>_i(e)&&e!=="classes",ne=Lh({themeId:Si,defaultTheme:ud,rootShouldForwardProp:Ht});function pd(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function dg(e){return l.jsx(Ih,{...e,defaultTheme:ud,themeId:Si})}process.env.NODE_ENV!=="production"&&(dg.propTypes={styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool])});function yE(e){return function(n){return l.jsx(dg,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function bE(){return Nh}const Ae=kC;process.env.NODE_ENV!=="production"&&(o.node,o.object.isRequired);function De(e){return AC(e)}function xE(e){return Oe("MuiSvgIcon",e)}Ie("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const vE=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${ie(t)}`,`fontSize${ie(n)}`]};return Ne(i,xE,r)},SE=ne("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ie(n.color)}`],t[`fontSize${ie(n.fontSize)}`]]}})(Ae(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),or=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiSvgIcon"}),{children:i,className:s,color:a="inherit",component:c="svg",fontSize:d="medium",htmlColor:p,inheritViewBox:u=!1,titleAccess:h,viewBox:m="0 0 24 24",...y}=r,g=A.isValidElement(i)&&i.type==="svg",f={...r,color:a,component:c,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:m,hasSvgAsChild:g},b={};u||(b.viewBox=m);const x=vE(f);return l.jsxs(SE,{as:c,className:ge(x.root,s),focusable:"false",color:p,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n,...b,...y,...g&&i.props,ownerState:f,children:[g?i.props.children:i,h?l.jsx("title",{children:h}):null]})});process.env.NODE_ENV!=="production"&&(or.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,fontSize:o.oneOfType([o.oneOf(["inherit","large","medium","small"]),o.string]),htmlColor:o.string,inheritViewBox:o.bool,shapeRendering:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),titleAccess:o.string,viewBox:o.string}),or.muiName="SvgIcon";function yt(e,t){function n(r,i){return l.jsx(or,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:i,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=or.muiName,A.memo(A.forwardRef(n))}function ug(e,t=166){let n;function r(...i){const s=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function It(e){return e&&e.ownerDocument||document}function ir(e){return It(e).defaultView||window}function pg(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function bo(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:s}=A.useRef(t!==void 0),[a,c]=A.useState(n),d=s?t:a;if(process.env.NODE_ENV!=="production"){A.useEffect(()=>{s!==(t!==void 0)&&console.error([`MUI: A component is changing the ${s?"":"un"}controlled ${i} state of ${r} to be ${s?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
60
60
|
`))},[i,r,t]);const{current:u}=A.useRef(n);A.useEffect(()=>{!s&&JSON.stringify(n)!==JSON.stringify(u)&&console.error([`MUI: A component is changing the default ${i} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
|
|
61
|
-
`))},[JSON.stringify(n)])}const p=A.useCallback(u=>{s||c(u)},[]);return[d,p]}function Yt(e){const t=A.useRef(e);return yn(()=>{t.current=e}),A.useRef((...n)=>(0,t.current)(...n)).current}function Pt(...e){const t=A.useRef(void 0),n=A.useCallback(r=>{const i=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const a=s,c=a(r);return typeof c=="function"?c:()=>{a(null)}}return s.current=r,()=>{s.current=null}});return()=>{i.forEach(s=>s?.())}},e);return A.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function wE(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function fg(e,t){if(!e)return t;function n(a,c){const d={};return Object.keys(c).forEach(p=>{wE(p,c[p])&&typeof a[p]=="function"&&(d[p]=(...u)=>{a[p](...u),c[p](...u)})}),d}if(typeof e=="function"||typeof t=="function")return a=>{const c=typeof t=="function"?t(a):t,d=typeof e=="function"?e({...a,...c}):e,p=he(a?.className,c?.className,d?.className),u=n(d,c);return{...c,...d,...u,...!!p&&{className:p},...c?.style&&d?.style&&{style:{...c.style,...d.style}},...c?.sx&&d?.sx&&{sx:[...Array.isArray(c.sx)?c.sx:[c.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const r=t,i=n(e,r),s=he(r?.className,e?.className);return{...t,...e,...i,...!!s&&{className:s},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}var Wa={exports:{}},ct={};var hg;function CE(){if(hg)return ct;hg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function g(f){if(typeof f=="object"&&f!==null){var b=f.$$typeof;switch(b){case e:switch(f=f.type,f){case n:case i:case r:case d:case p:case m:return f;default:switch(f=f&&f.$$typeof,f){case a:case c:case h:case u:return f;case s:return f;default:return b}}case t:return b}}}return ct.ContextConsumer=s,ct.ContextProvider=a,ct.Element=e,ct.ForwardRef=c,ct.Fragment=n,ct.Lazy=h,ct.Memo=u,ct.Portal=t,ct.Profiler=i,ct.StrictMode=r,ct.Suspense=d,ct.SuspenseList=p,ct.isContextConsumer=function(f){return g(f)===s},ct.isContextProvider=function(f){return g(f)===a},ct.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},ct.isForwardRef=function(f){return g(f)===c},ct.isFragment=function(f){return g(f)===n},ct.isLazy=function(f){return g(f)===h},ct.isMemo=function(f){return g(f)===u},ct.isPortal=function(f){return g(f)===t},ct.isProfiler=function(f){return g(f)===i},ct.isStrictMode=function(f){return g(f)===r},ct.isSuspense=function(f){return g(f)===d},ct.isSuspenseList=function(f){return g(f)===p},ct.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===i||f===r||f===d||f===p||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===u||f.$$typeof===a||f.$$typeof===s||f.$$typeof===c||f.$$typeof===y||f.getModuleId!==void 0)},ct.typeOf=g,ct}var dt={};var gg;function EE(){return gg||(gg=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var b=f.$$typeof;switch(b){case t:switch(f=f.type,f){case r:case s:case i:case p:case u:case y:return f;default:switch(f=f&&f.$$typeof,f){case c:case d:case m:case h:return f;case a:return f;default:return b}}case n:return b}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");dt.ContextConsumer=a,dt.ContextProvider=c,dt.Element=t,dt.ForwardRef=d,dt.Fragment=r,dt.Lazy=m,dt.Memo=h,dt.Portal=n,dt.Profiler=s,dt.StrictMode=i,dt.Suspense=p,dt.SuspenseList=u,dt.isContextConsumer=function(f){return e(f)===a},dt.isContextProvider=function(f){return e(f)===c},dt.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},dt.isForwardRef=function(f){return e(f)===d},dt.isFragment=function(f){return e(f)===r},dt.isLazy=function(f){return e(f)===m},dt.isMemo=function(f){return e(f)===h},dt.isPortal=function(f){return e(f)===n},dt.isProfiler=function(f){return e(f)===s},dt.isStrictMode=function(f){return e(f)===i},dt.isSuspense=function(f){return e(f)===p},dt.isSuspenseList=function(f){return e(f)===u},dt.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===s||f===i||f===p||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===m||f.$$typeof===h||f.$$typeof===c||f.$$typeof===a||f.$$typeof===d||f.$$typeof===g||f.getModuleId!==void 0)},dt.typeOf=e})()),dt}var mg;function TE(){return mg||(mg=1,process.env.NODE_ENV==="production"?Wa.exports=CE():Wa.exports=EE()),Wa.exports}var fd=TE();function kn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function yg(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function hd(e,t){return hd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},hd(e,t)}function bg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hd(e,t)}const xg={disabled:!1};var AE=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.shape({enter:o.number,exit:o.number,appear:o.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&o.oneOfType([o.string,o.shape({enter:o.string,exit:o.string,active:o.string}),o.shape({enter:o.string,enterDone:o.string,enterActive:o.string,exit:o.string,exitDone:o.string,exitActive:o.string})]);const Va=N.createContext(null);var PE=function(t){return t.scrollTop},$i="unmounted",$r="exited",zr="entering",xo="entered",gd="exiting",jn=(function(e){bg(t,e);function t(r,i){var s;s=e.call(this,r,i)||this;var a=i,c=a&&!a.isMounting?r.enter:r.appear,d;return s.appearStatus=null,r.in?c?(d=$r,s.appearStatus=zr):d=xo:r.unmountOnExit||r.mountOnEnter?d=$i:d=$r,s.state={status:d},s.nextCallback=null,s}t.getDerivedStateFromProps=function(i,s){var a=i.in;return a&&s.status===$i?{status:$r}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var s=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==zr&&a!==xo&&(s=zr):(a===zr||a===xo)&&(s=gd)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,s,a,c;return s=a=c=i,i!=null&&typeof i!="number"&&(s=i.exit,a=i.enter,c=i.appear!==void 0?i.appear:a),{exit:s,enter:a,appear:c}},n.updateStatus=function(i,s){if(i===void 0&&(i=!1),s!==null)if(this.cancelNextCallback(),s===zr){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Wo.findDOMNode(this);a&&PE(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===$r&&this.setState({status:$i})},n.performEnter=function(i){var s=this,a=this.props.enter,c=this.context?this.context.isMounting:i,d=this.props.nodeRef?[c]:[Wo.findDOMNode(this),c],p=d[0],u=d[1],h=this.getTimeouts(),m=c?h.appear:h.enter;if(!i&&!a||xg.disabled){this.safeSetState({status:xo},function(){s.props.onEntered(p)});return}this.props.onEnter(p,u),this.safeSetState({status:zr},function(){s.props.onEntering(p,u),s.onTransitionEnd(m,function(){s.safeSetState({status:xo},function(){s.props.onEntered(p,u)})})})},n.performExit=function(){var i=this,s=this.props.exit,a=this.getTimeouts(),c=this.props.nodeRef?void 0:Wo.findDOMNode(this);if(!s||xg.disabled){this.safeSetState({status:$r},function(){i.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:gd},function(){i.props.onExiting(c),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:$r},function(){i.props.onExited(c)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,s){s=this.setNextCallback(s),this.setState(i,s)},n.setNextCallback=function(i){var s=this,a=!0;return this.nextCallback=function(c){a&&(a=!1,s.nextCallback=null,i(c))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,s){this.setNextCallback(s);var a=this.props.nodeRef?this.props.nodeRef.current:Wo.findDOMNode(this),c=i==null&&!this.props.addEndListener;if(!a||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],p=d[0],u=d[1];this.props.addEndListener(p,u)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===$i)return null;var s=this.props,a=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var c=yg(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return N.createElement(Va.Provider,{value:null},typeof a=="function"?a(i,c):N.cloneElement(N.Children.only(a),c))},t})(N.Component);jn.contextType=Va,jn.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:o.shape({current:typeof Element>"u"?o.any:function(e,t,n,r,i,s){var a=e[t];return o.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,s)}}),children:o.oneOfType([o.func.isRequired,o.element.isRequired]).isRequired,in:o.bool,mountOnEnter:o.bool,unmountOnExit:o.bool,appear:o.bool,enter:o.bool,exit:o.bool,timeout:function(t){var n=AE;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return n.apply(void 0,[t].concat(i))},addEndListener:o.func,onEnter:o.func,onEntering:o.func,onEntered:o.func,onExit:o.func,onExiting:o.func,onExited:o.func}:{};function vo(){}jn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:vo,onEntering:vo,onEntered:vo,onExit:vo,onExiting:vo,onExited:vo},jn.UNMOUNTED=$i,jn.EXITED=$r,jn.ENTERING=zr,jn.ENTERED=xo,jn.EXITING=gd;function kE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function md(e,t){var n=function(s){return t&&N.isValidElement(s)?t(s):s},r=Object.create(null);return e&&N.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function OE(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),i=[];for(var s in e)s in t?i.length&&(r[s]=i,i=[]):i.push(s);var a,c={};for(var d in t){if(r[d])for(a=0;a<r[d].length;a++){var p=r[d][a];c[r[d][a]]=n(p)}c[d]=n(d)}for(a=0;a<i.length;a++)c[i[a]]=n(i[a]);return c}function Lr(e,t,n){return n[t]!=null?n[t]:e.props[t]}function IE(e,t){return md(e.children,function(n){return N.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Lr(n,"appear",e),enter:Lr(n,"enter",e),exit:Lr(n,"exit",e)})})}function NE(e,t,n){var r=md(e.children),i=OE(t,r);return Object.keys(i).forEach(function(s){var a=i[s];if(N.isValidElement(a)){var c=s in t,d=s in r,p=t[s],u=N.isValidElement(p)&&!p.props.in;d&&(!c||u)?i[s]=N.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Lr(a,"exit",e),enter:Lr(a,"enter",e)}):!d&&c&&!u?i[s]=N.cloneElement(a,{in:!1}):d&&c&&N.isValidElement(p)&&(i[s]=N.cloneElement(a,{onExited:n.bind(null,a),in:p.props.in,exit:Lr(a,"exit",e),enter:Lr(a,"enter",e)}))}}),i}var ME=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},FE={component:"div",childFactory:function(t){return t}},yd=(function(e){bg(t,e);function t(r,i){var s;s=e.call(this,r,i)||this;var a=s.handleExited.bind(kE(s));return s.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,s){var a=s.children,c=s.handleExited,d=s.firstRender;return{children:d?IE(i,c):NE(i,a,c),firstRender:!1}},n.handleExited=function(i,s){var a=md(this.props.children);i.key in a||(i.props.onExited&&i.props.onExited(s),this.mounted&&this.setState(function(c){var d=ca({},c.children);return delete d[i.key],{children:d}}))},n.render=function(){var i=this.props,s=i.component,a=i.childFactory,c=yg(i,["component","childFactory"]),d=this.state.contextValue,p=ME(this.state.children).map(a);return delete c.appear,delete c.enter,delete c.exit,s===null?N.createElement(Va.Provider,{value:d},p):N.createElement(Va.Provider,{value:d},N.createElement(s,c,p))},t})(N.Component);yd.propTypes=process.env.NODE_ENV!=="production"?{component:o.any,children:o.node,appear:o.bool,enter:o.bool,exit:o.bool,childFactory:o.func}:{},yd.defaultProps=FE;const vg={};function Sg(e,t){const n=A.useRef(vg);return n.current===vg&&(n.current=e(t)),n}const DE=[];function BE(e){A.useEffect(e,DE)}class Ha{static create(){return new Ha}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function jr(){const e=Sg(Ha.create).current;return BE(e.disposeEffect),e}function _E(e){const{prototype:t={}}=e;return!!t.isReactComponent}function $E(e,t,n,r,i){const s=e[t],a=i||t;if(s==null||typeof window>"u")return null;let c;return typeof s=="function"&&!_E(s)&&(c="Did you accidentally provide a plain function component instead?"),c!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const bd=kn(o.elementType,$E),wg=e=>e.scrollTop;function Ua(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}function vr(e){return typeof e=="string"}function Cg(e,t,n){return e===void 0||vr(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Eg(e,t,n){return typeof e=="function"?e(t,n):e}function Wr(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Tg(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Ag(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:s}=e;if(!t){const y=he(n?.className,s,i?.className,r?.className),g={...n?.style,...i?.style,...r?.style},f={...n,...i,...r};return y.length>0&&(f.className=y),Object.keys(g).length>0&&(f.style=g),{props:f,internalRef:void 0}}const a=Wr({...i,...r}),c=Tg(r),d=Tg(i),p=t(a),u=he(p?.className,n?.className,s,i?.className,r?.className),h={...p?.style,...n?.style,...i?.style,...r?.style},m={...p,...n,...d,...c};return u.length>0&&(m.className=u),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:p.ref}}function Be(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:s,internalForwardedProps:a,shouldForwardComponentProp:c=!1,...d}=t,{component:p,slots:u={[e]:void 0},slotProps:h={[e]:void 0},...m}=s,y=u[e]||r,g=Eg(h[e],i),{props:{component:f,...b},internalRef:x}=Ag({className:n,...d,externalForwardedProps:e==="root"?m:void 0,externalSlotProps:g}),E=Pt(x,g?.ref,t.ref),w=e==="root"?f||p:f,S=Cg(y,{...e==="root"&&!p&&!u[e]&&a,...e!=="root"&&!u[e]&&a,...b,...w&&!c&&{as:w},...w&&c&&{component:w},ref:E},i);return[y,S]}function zE(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function Pg(e,t,n,r){const i=e[t];if(i==null||!Number.isInteger(i)){const s=zE(i);return new RangeError(`Invalid ${r} \`${t}\` of type \`${s}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function kg(e,t,n,r){return e[t]===void 0?null:Pg(e,t,n,r)}function xd(){return null}kg.isRequired=Pg,xd.isRequired=xd;const Ra=process.env.NODE_ENV==="production"?xd:kg;function LE(e){return Pe("MuiPaper",e)}ke("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const jE=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ie(s,LE,i)},WE=ne("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Ee(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),bn=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPaper"}),i=Ln(),{className:s,component:a="div",elevation:c=1,square:d=!1,variant:p="elevation",...u}=r,h={...r,component:a,elevation:c,square:d,variant:p},m=jE(h);return process.env.NODE_ENV!=="production"&&i.shadows[c]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${c}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${c}]\` is defined.`].join(`
|
|
62
|
-
`)),l.jsx(WE,{as:a,ownerState:h,className:
|
|
63
|
-
`))}return!1}class qa{static create(){return new qa}static use(){const t=Sg(qa.create).current,[n,r]=A.useState(!1);return t.shouldMount=n,t.setShouldMount=r,A.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=HE(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function VE(){return qa.use()}function HE(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function Og(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:s,rippleSize:a,in:c,onExited:d,timeout:p}=e,[u,h]=A.useState(!1),m=
|
|
61
|
+
`))},[JSON.stringify(n)])}const p=A.useCallback(u=>{s||c(u)},[]);return[d,p]}function Yt(e){const t=A.useRef(e);return yn(()=>{t.current=e}),A.useRef((...n)=>(0,t.current)(...n)).current}function Pt(...e){const t=A.useRef(void 0),n=A.useCallback(r=>{const i=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const a=s,c=a(r);return typeof c=="function"?c:()=>{a(null)}}return s.current=r,()=>{s.current=null}});return()=>{i.forEach(s=>s?.())}},e);return A.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function wE(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function fg(e,t){if(!e)return t;function n(a,c){const d={};return Object.keys(c).forEach(p=>{wE(p,c[p])&&typeof a[p]=="function"&&(d[p]=(...u)=>{a[p](...u),c[p](...u)})}),d}if(typeof e=="function"||typeof t=="function")return a=>{const c=typeof t=="function"?t(a):t,d=typeof e=="function"?e({...a,...c}):e,p=ge(a?.className,c?.className,d?.className),u=n(d,c);return{...c,...d,...u,...!!p&&{className:p},...c?.style&&d?.style&&{style:{...c.style,...d.style}},...c?.sx&&d?.sx&&{sx:[...Array.isArray(c.sx)?c.sx:[c.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const r=t,i=n(e,r),s=ge(r?.className,e?.className);return{...t,...e,...i,...!!s&&{className:s},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}var Wa={exports:{}},ct={};var hg;function CE(){if(hg)return ct;hg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function g(f){if(typeof f=="object"&&f!==null){var b=f.$$typeof;switch(b){case e:switch(f=f.type,f){case n:case i:case r:case d:case p:case m:return f;default:switch(f=f&&f.$$typeof,f){case a:case c:case h:case u:return f;case s:return f;default:return b}}case t:return b}}}return ct.ContextConsumer=s,ct.ContextProvider=a,ct.Element=e,ct.ForwardRef=c,ct.Fragment=n,ct.Lazy=h,ct.Memo=u,ct.Portal=t,ct.Profiler=i,ct.StrictMode=r,ct.Suspense=d,ct.SuspenseList=p,ct.isContextConsumer=function(f){return g(f)===s},ct.isContextProvider=function(f){return g(f)===a},ct.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},ct.isForwardRef=function(f){return g(f)===c},ct.isFragment=function(f){return g(f)===n},ct.isLazy=function(f){return g(f)===h},ct.isMemo=function(f){return g(f)===u},ct.isPortal=function(f){return g(f)===t},ct.isProfiler=function(f){return g(f)===i},ct.isStrictMode=function(f){return g(f)===r},ct.isSuspense=function(f){return g(f)===d},ct.isSuspenseList=function(f){return g(f)===p},ct.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===i||f===r||f===d||f===p||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===u||f.$$typeof===a||f.$$typeof===s||f.$$typeof===c||f.$$typeof===y||f.getModuleId!==void 0)},ct.typeOf=g,ct}var dt={};var gg;function EE(){return gg||(gg=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var b=f.$$typeof;switch(b){case t:switch(f=f.type,f){case r:case s:case i:case p:case u:case y:return f;default:switch(f=f&&f.$$typeof,f){case c:case d:case m:case h:return f;case a:return f;default:return b}}case n:return b}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");dt.ContextConsumer=a,dt.ContextProvider=c,dt.Element=t,dt.ForwardRef=d,dt.Fragment=r,dt.Lazy=m,dt.Memo=h,dt.Portal=n,dt.Profiler=s,dt.StrictMode=i,dt.Suspense=p,dt.SuspenseList=u,dt.isContextConsumer=function(f){return e(f)===a},dt.isContextProvider=function(f){return e(f)===c},dt.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},dt.isForwardRef=function(f){return e(f)===d},dt.isFragment=function(f){return e(f)===r},dt.isLazy=function(f){return e(f)===m},dt.isMemo=function(f){return e(f)===h},dt.isPortal=function(f){return e(f)===n},dt.isProfiler=function(f){return e(f)===s},dt.isStrictMode=function(f){return e(f)===i},dt.isSuspense=function(f){return e(f)===p},dt.isSuspenseList=function(f){return e(f)===u},dt.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===s||f===i||f===p||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===m||f.$$typeof===h||f.$$typeof===c||f.$$typeof===a||f.$$typeof===d||f.$$typeof===g||f.getModuleId!==void 0)},dt.typeOf=e})()),dt}var mg;function TE(){return mg||(mg=1,process.env.NODE_ENV==="production"?Wa.exports=CE():Wa.exports=EE()),Wa.exports}var fd=TE();function kn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function yg(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function hd(e,t){return hd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},hd(e,t)}function bg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hd(e,t)}const xg={disabled:!1};var AE=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.shape({enter:o.number,exit:o.number,appear:o.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&o.oneOfType([o.string,o.shape({enter:o.string,exit:o.string,active:o.string}),o.shape({enter:o.string,enterDone:o.string,enterActive:o.string,exit:o.string,exitDone:o.string,exitActive:o.string})]);const Va=N.createContext(null);var PE=function(t){return t.scrollTop},$i="unmounted",$r="exited",zr="entering",xo="entered",gd="exiting",jn=(function(e){bg(t,e);function t(r,i){var s;s=e.call(this,r,i)||this;var a=i,c=a&&!a.isMounting?r.enter:r.appear,d;return s.appearStatus=null,r.in?c?(d=$r,s.appearStatus=zr):d=xo:r.unmountOnExit||r.mountOnEnter?d=$i:d=$r,s.state={status:d},s.nextCallback=null,s}t.getDerivedStateFromProps=function(i,s){var a=i.in;return a&&s.status===$i?{status:$r}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var s=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==zr&&a!==xo&&(s=zr):(a===zr||a===xo)&&(s=gd)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,s,a,c;return s=a=c=i,i!=null&&typeof i!="number"&&(s=i.exit,a=i.enter,c=i.appear!==void 0?i.appear:a),{exit:s,enter:a,appear:c}},n.updateStatus=function(i,s){if(i===void 0&&(i=!1),s!==null)if(this.cancelNextCallback(),s===zr){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Wo.findDOMNode(this);a&&PE(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===$r&&this.setState({status:$i})},n.performEnter=function(i){var s=this,a=this.props.enter,c=this.context?this.context.isMounting:i,d=this.props.nodeRef?[c]:[Wo.findDOMNode(this),c],p=d[0],u=d[1],h=this.getTimeouts(),m=c?h.appear:h.enter;if(!i&&!a||xg.disabled){this.safeSetState({status:xo},function(){s.props.onEntered(p)});return}this.props.onEnter(p,u),this.safeSetState({status:zr},function(){s.props.onEntering(p,u),s.onTransitionEnd(m,function(){s.safeSetState({status:xo},function(){s.props.onEntered(p,u)})})})},n.performExit=function(){var i=this,s=this.props.exit,a=this.getTimeouts(),c=this.props.nodeRef?void 0:Wo.findDOMNode(this);if(!s||xg.disabled){this.safeSetState({status:$r},function(){i.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:gd},function(){i.props.onExiting(c),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:$r},function(){i.props.onExited(c)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,s){s=this.setNextCallback(s),this.setState(i,s)},n.setNextCallback=function(i){var s=this,a=!0;return this.nextCallback=function(c){a&&(a=!1,s.nextCallback=null,i(c))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,s){this.setNextCallback(s);var a=this.props.nodeRef?this.props.nodeRef.current:Wo.findDOMNode(this),c=i==null&&!this.props.addEndListener;if(!a||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],p=d[0],u=d[1];this.props.addEndListener(p,u)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===$i)return null;var s=this.props,a=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var c=yg(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return N.createElement(Va.Provider,{value:null},typeof a=="function"?a(i,c):N.cloneElement(N.Children.only(a),c))},t})(N.Component);jn.contextType=Va,jn.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:o.shape({current:typeof Element>"u"?o.any:function(e,t,n,r,i,s){var a=e[t];return o.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,s)}}),children:o.oneOfType([o.func.isRequired,o.element.isRequired]).isRequired,in:o.bool,mountOnEnter:o.bool,unmountOnExit:o.bool,appear:o.bool,enter:o.bool,exit:o.bool,timeout:function(t){var n=AE;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return n.apply(void 0,[t].concat(i))},addEndListener:o.func,onEnter:o.func,onEntering:o.func,onEntered:o.func,onExit:o.func,onExiting:o.func,onExited:o.func}:{};function vo(){}jn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:vo,onEntering:vo,onEntered:vo,onExit:vo,onExiting:vo,onExited:vo},jn.UNMOUNTED=$i,jn.EXITED=$r,jn.ENTERING=zr,jn.ENTERED=xo,jn.EXITING=gd;function kE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function md(e,t){var n=function(s){return t&&N.isValidElement(s)?t(s):s},r=Object.create(null);return e&&N.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function OE(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),i=[];for(var s in e)s in t?i.length&&(r[s]=i,i=[]):i.push(s);var a,c={};for(var d in t){if(r[d])for(a=0;a<r[d].length;a++){var p=r[d][a];c[r[d][a]]=n(p)}c[d]=n(d)}for(a=0;a<i.length;a++)c[i[a]]=n(i[a]);return c}function Lr(e,t,n){return n[t]!=null?n[t]:e.props[t]}function IE(e,t){return md(e.children,function(n){return N.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Lr(n,"appear",e),enter:Lr(n,"enter",e),exit:Lr(n,"exit",e)})})}function NE(e,t,n){var r=md(e.children),i=OE(t,r);return Object.keys(i).forEach(function(s){var a=i[s];if(N.isValidElement(a)){var c=s in t,d=s in r,p=t[s],u=N.isValidElement(p)&&!p.props.in;d&&(!c||u)?i[s]=N.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Lr(a,"exit",e),enter:Lr(a,"enter",e)}):!d&&c&&!u?i[s]=N.cloneElement(a,{in:!1}):d&&c&&N.isValidElement(p)&&(i[s]=N.cloneElement(a,{onExited:n.bind(null,a),in:p.props.in,exit:Lr(a,"exit",e),enter:Lr(a,"enter",e)}))}}),i}var ME=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},FE={component:"div",childFactory:function(t){return t}},yd=(function(e){bg(t,e);function t(r,i){var s;s=e.call(this,r,i)||this;var a=s.handleExited.bind(kE(s));return s.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,s){var a=s.children,c=s.handleExited,d=s.firstRender;return{children:d?IE(i,c):NE(i,a,c),firstRender:!1}},n.handleExited=function(i,s){var a=md(this.props.children);i.key in a||(i.props.onExited&&i.props.onExited(s),this.mounted&&this.setState(function(c){var d=ca({},c.children);return delete d[i.key],{children:d}}))},n.render=function(){var i=this.props,s=i.component,a=i.childFactory,c=yg(i,["component","childFactory"]),d=this.state.contextValue,p=ME(this.state.children).map(a);return delete c.appear,delete c.enter,delete c.exit,s===null?N.createElement(Va.Provider,{value:d},p):N.createElement(Va.Provider,{value:d},N.createElement(s,c,p))},t})(N.Component);yd.propTypes=process.env.NODE_ENV!=="production"?{component:o.any,children:o.node,appear:o.bool,enter:o.bool,exit:o.bool,childFactory:o.func}:{},yd.defaultProps=FE;const vg={};function Sg(e,t){const n=A.useRef(vg);return n.current===vg&&(n.current=e(t)),n}const DE=[];function BE(e){A.useEffect(e,DE)}class Ha{static create(){return new Ha}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function jr(){const e=Sg(Ha.create).current;return BE(e.disposeEffect),e}function _E(e){const{prototype:t={}}=e;return!!t.isReactComponent}function $E(e,t,n,r,i){const s=e[t],a=i||t;if(s==null||typeof window>"u")return null;let c;return typeof s=="function"&&!_E(s)&&(c="Did you accidentally provide a plain function component instead?"),c!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const bd=kn(o.elementType,$E),wg=e=>e.scrollTop;function Ua(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}function vr(e){return typeof e=="string"}function Cg(e,t,n){return e===void 0||vr(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Eg(e,t,n){return typeof e=="function"?e(t,n):e}function Wr(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Tg(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Ag(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:s}=e;if(!t){const y=ge(n?.className,s,i?.className,r?.className),g={...n?.style,...i?.style,...r?.style},f={...n,...i,...r};return y.length>0&&(f.className=y),Object.keys(g).length>0&&(f.style=g),{props:f,internalRef:void 0}}const a=Wr({...i,...r}),c=Tg(r),d=Tg(i),p=t(a),u=ge(p?.className,n?.className,s,i?.className,r?.className),h={...p?.style,...n?.style,...i?.style,...r?.style},m={...p,...n,...d,...c};return u.length>0&&(m.className=u),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:p.ref}}function $e(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:s,internalForwardedProps:a,shouldForwardComponentProp:c=!1,...d}=t,{component:p,slots:u={[e]:void 0},slotProps:h={[e]:void 0},...m}=s,y=u[e]||r,g=Eg(h[e],i),{props:{component:f,...b},internalRef:x}=Ag({className:n,...d,externalForwardedProps:e==="root"?m:void 0,externalSlotProps:g}),E=Pt(x,g?.ref,t.ref),w=e==="root"?f||p:f,S=Cg(y,{...e==="root"&&!p&&!u[e]&&a,...e!=="root"&&!u[e]&&a,...b,...w&&!c&&{as:w},...w&&c&&{component:w},ref:E},i);return[y,S]}function zE(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function Pg(e,t,n,r){const i=e[t];if(i==null||!Number.isInteger(i)){const s=zE(i);return new RangeError(`Invalid ${r} \`${t}\` of type \`${s}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function kg(e,t,n,r){return e[t]===void 0?null:Pg(e,t,n,r)}function xd(){return null}kg.isRequired=Pg,xd.isRequired=xd;const Ra=process.env.NODE_ENV==="production"?xd:kg;function LE(e){return Oe("MuiPaper",e)}Ie("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const jE=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ne(s,LE,i)},WE=ne("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Ae(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),bn=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiPaper"}),i=Ln(),{className:s,component:a="div",elevation:c=1,square:d=!1,variant:p="elevation",...u}=r,h={...r,component:a,elevation:c,square:d,variant:p},m=jE(h);return process.env.NODE_ENV!=="production"&&i.shadows[c]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${c}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${c}]\` is defined.`].join(`
|
|
62
|
+
`)),l.jsx(WE,{as:a,ownerState:h,className:ge(m.root,s),ref:n,...u,style:{...p==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[c],...i.vars&&{"--Paper-overlay":i.vars.overlays?.[c]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${$a("#fff",cd(c))}, ${$a("#fff",cd(c))})`}},...u.style}})});process.env.NODE_ENV!=="production"&&(bn.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,elevation:kn(Ra,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["elevation","outlined"]),o.string])});const Gt=o.oneOfType([o.func,o.object]);function So(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
|
|
63
|
+
`))}return!1}class qa{static create(){return new qa}static use(){const t=Sg(qa.create).current,[n,r]=A.useState(!1);return t.shouldMount=n,t.setShouldMount=r,A.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=HE(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function VE(){return qa.use()}function HE(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function Og(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:s,rippleSize:a,in:c,onExited:d,timeout:p}=e,[u,h]=A.useState(!1),m=ge(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:a,height:a,top:-(a/2)+s,left:-(a/2)+i},g=ge(n.child,u&&n.childLeaving,r&&n.childPulsate);return!c&&!u&&h(!0),A.useEffect(()=>{if(!c&&d!=null){const f=setTimeout(d,p);return()=>{clearTimeout(f)}}},[d,c,p]),l.jsx("span",{className:m,style:y,children:l.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(Og.propTypes={classes:o.object.isRequired,className:o.string,in:o.bool,onExited:o.func,pulsate:o.bool,rippleSize:o.number,rippleX:o.number,rippleY:o.number,timeout:o.number.isRequired});const xn=Ie("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),vd=550,UE=80,RE=mr`
|
|
64
64
|
0% {
|
|
65
65
|
transform: scale(0);
|
|
66
66
|
opacity: 0.1;
|
|
@@ -133,7 +133,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
133
133
|
animation-iteration-count: infinite;
|
|
134
134
|
animation-delay: 200ms;
|
|
135
135
|
}
|
|
136
|
-
`,Ig=A.forwardRef(function(t,n){const r=
|
|
136
|
+
`,Ig=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:s={},className:a,...c}=r,[d,p]=A.useState([]),u=A.useRef(0),h=A.useRef(null);A.useEffect(()=>{h.current&&(h.current(),h.current=null)},[d]);const m=A.useRef(!1),y=jr(),g=A.useRef(null),f=A.useRef(null),b=A.useCallback(S=>{const{pulsate:T,rippleX:v,rippleY:k,rippleSize:M,cb:B}=S;p(z=>[...z,l.jsx(KE,{classes:{ripple:ge(s.ripple,xn.ripple),rippleVisible:ge(s.rippleVisible,xn.rippleVisible),ripplePulsate:ge(s.ripplePulsate,xn.ripplePulsate),child:ge(s.child,xn.child),childLeaving:ge(s.childLeaving,xn.childLeaving),childPulsate:ge(s.childPulsate,xn.childPulsate)},timeout:vd,pulsate:T,rippleX:v,rippleY:k,rippleSize:M},u.current)]),u.current+=1,h.current=B},[s]),x=A.useCallback((S={},T={},v=()=>{})=>{const{pulsate:k=!1,center:M=i||T.pulsate,fakeElement:B=!1}=T;if(S?.type==="mousedown"&&m.current){m.current=!1;return}S?.type==="touchstart"&&(m.current=!0);const z=B?null:f.current,$=z?z.getBoundingClientRect():{width:0,height:0,left:0,top:0};let C,I,_;if(M||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)C=Math.round($.width/2),I=Math.round($.height/2);else{const{clientX:F,clientY:j}=S.touches&&S.touches.length>0?S.touches[0]:S;C=Math.round(F-$.left),I=Math.round(j-$.top)}if(M)_=Math.sqrt((2*$.width**2+$.height**2)/3),_%2===0&&(_+=1);else{const F=Math.max(Math.abs((z?z.clientWidth:0)-C),C)*2+2,j=Math.max(Math.abs((z?z.clientHeight:0)-I),I)*2+2;_=Math.sqrt(F**2+j**2)}S?.touches?g.current===null&&(g.current=()=>{b({pulsate:k,rippleX:C,rippleY:I,rippleSize:_,cb:v})},y.start(UE,()=>{g.current&&(g.current(),g.current=null)})):b({pulsate:k,rippleX:C,rippleY:I,rippleSize:_,cb:v})},[i,b,y]),E=A.useCallback(()=>{x({},{pulsate:!0})},[x]),w=A.useCallback((S,T)=>{if(y.clear(),S?.type==="touchend"&&g.current){g.current(),g.current=null,y.start(0,()=>{w(S,T)});return}g.current=null,p(v=>v.length>0?v.slice(1):v),h.current=T},[y]);return A.useImperativeHandle(n,()=>({pulsate:E,start:x,stop:w}),[E,x,w]),l.jsx(GE,{className:ge(xn.root,s.root,a),ref:f,...c,children:l.jsx(yd,{component:null,exit:!0,children:d})})});process.env.NODE_ENV!=="production"&&(Ig.propTypes={center:o.bool,classes:o.object,className:o.string});function XE(e){return Oe("MuiButtonBase",e)}const JE=Ie("MuiButtonBase",["root","disabled","focusVisible"]),QE=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=Ne({root:["root",t&&"disabled",n&&"focusVisible"]},XE,i);return n&&r&&(a.root+=` ${r}`),a},ZE=ne("button",{name:"MuiButtonBase",slot:"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"},[`&.${JE.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),zi=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:s=!1,children:a,className:c,component:d="button",disabled:p=!1,disableRipple:u=!1,disableTouchRipple:h=!1,focusRipple:m=!1,focusVisibleClassName:y,LinkComponent:g="a",onBlur:f,onClick:b,onContextMenu:x,onDragLeave:E,onFocus:w,onFocusVisible:S,onKeyDown:T,onKeyUp:v,onMouseDown:k,onMouseLeave:M,onMouseUp:B,onTouchEnd:z,onTouchMove:$,onTouchStart:C,tabIndex:I=0,TouchRippleProps:_,touchRippleRef:F,type:j,...V}=r,R=A.useRef(null),U=VE(),D=Pt(U.ref,F),[O,L]=A.useState(!1);p&&O&&L(!1),A.useImperativeHandle(i,()=>({focusVisible:()=>{L(!0),R.current.focus()}}),[]);const H=U.shouldMount&&!u&&!p;A.useEffect(()=>{O&&m&&!u&&U.pulsate()},[u,m,O,U]);const Y=sr(U,"start",k,h),X=sr(U,"stop",x,h),te=sr(U,"stop",E,h),ce=sr(U,"stop",B,h),de=sr(U,"stop",le=>{O&&le.preventDefault(),M&&M(le)},h),ae=sr(U,"start",C,h),J=sr(U,"stop",z,h),oe=sr(U,"stop",$,h),G=sr(U,"stop",le=>{So(le.target)||L(!1),f&&f(le)},!1),pe=Yt(le=>{R.current||(R.current=le.currentTarget),So(le.target)&&(L(!0),S&&S(le)),w&&w(le)}),ee=()=>{const le=R.current;return d&&d!=="button"&&!(le.tagName==="A"&&le.href)},K=Yt(le=>{m&&!le.repeat&&O&&le.key===" "&&U.stop(le,()=>{U.start(le)}),le.target===le.currentTarget&&ee()&&le.key===" "&&le.preventDefault(),T&&T(le),le.target===le.currentTarget&&ee()&&le.key==="Enter"&&!p&&(le.preventDefault(),b&&b(le))}),q=Yt(le=>{m&&le.key===" "&&O&&!le.defaultPrevented&&U.stop(le,()=>{U.pulsate(le)}),v&&v(le),b&&le.target===le.currentTarget&&ee()&&le.key===" "&&!le.defaultPrevented&&b(le)});let he=d;he==="button"&&(V.href||V.to)&&(he=g);const ue={};if(he==="button"){const le=!!V.formAction;ue.type=j===void 0&&!le?"button":j,ue.disabled=p}else!V.href&&!V.to&&(ue.role="button"),p&&(ue["aria-disabled"]=p);const Ee=Pt(n,R),ke={...r,centerRipple:s,component:d,disabled:p,disableRipple:u,disableTouchRipple:h,focusRipple:m,tabIndex:I,focusVisible:O},ve=QE(ke);return l.jsxs(ZE,{as:he,className:ge(ve.root,c),ownerState:ke,onBlur:G,onClick:b,onContextMenu:X,onFocus:pe,onKeyDown:K,onKeyUp:q,onMouseDown:Y,onMouseLeave:de,onMouseUp:ce,onDragLeave:te,onTouchEnd:J,onTouchMove:oe,onTouchStart:ae,ref:Ee,tabIndex:p?-1:I,type:j,...ue,...V,children:[a,H?l.jsx(Ig,{ref:D,center:s,..._}):null]})});function sr(e,t,n,r=!1){return Yt(i=>(n&&n(i),r||e[t](i),!0))}process.env.NODE_ENV!=="production"&&(zi.propTypes={action:Gt,centerRipple:o.bool,children:o.node,classes:o.object,className:o.string,component:bd,disabled:o.bool,disableRipple:o.bool,disableTouchRipple:o.bool,focusRipple:o.bool,focusVisibleClassName:o.string,formAction:o.oneOfType([o.func,o.string]),href:o.any,LinkComponent:o.elementType,onBlur:o.func,onClick:o.func,onContextMenu:o.func,onDragLeave:o.func,onFocus:o.func,onFocusVisible:o.func,onKeyDown:o.func,onKeyUp:o.func,onMouseDown:o.func,onMouseLeave:o.func,onMouseUp:o.func,onTouchEnd:o.func,onTouchMove:o.func,onTouchStart:o.func,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,TouchRippleProps:o.object,touchRippleRef:o.oneOfType([o.func,o.shape({current:o.shape({pulsate:o.func.isRequired,start:o.func.isRequired,stop:o.func.isRequired})})]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string])});function eT(e){return typeof e.main=="string"}function tT(e,t=[]){if(!eT(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function St(e=[]){return([,t])=>t&&tT(t,e)}function nT(e){return Oe("MuiCircularProgress",e)}Ie("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const On=44,Sd=mr`
|
|
137
137
|
0% {
|
|
138
138
|
transform: rotate(0deg);
|
|
139
139
|
}
|
|
@@ -160,16 +160,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
160
160
|
animation: ${Sd} 1.4s linear infinite;
|
|
161
161
|
`:null,oT=typeof wd!="string"?go`
|
|
162
162
|
animation: ${wd} 1.4s ease-in-out infinite;
|
|
163
|
-
`:null,iT=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,s={root:["root",n,`color${
|
|
164
|
-
`)):null),classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,edge:o.oneOf(["end","start",!1]),id:o.string,loading:o.bool,loadingIndicator:o.node,size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function hT(e){return Pe("MuiTypography",e)}const Mg=ke("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),gT={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},mT=bE(),yT=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:s,classes:a}=e,c={root:["root",s,e.align!=="inherit"&&`align${oe(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return Ie(c,hT,a)},bT=ne("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${oe(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Ee(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${oe(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),Fg={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},W=A.forwardRef(function(t,n){const{color:r,...i}=Fe({props:t,name:"MuiTypography"}),s=!gT[r],a=mT({...i,...s&&{color:r}}),{align:c="inherit",className:d,component:p,gutterBottom:u=!1,noWrap:h=!1,paragraph:m=!1,variant:y="body1",variantMapping:g=Fg,...f}=a,b={...a,align:c,color:r,className:d,component:p,gutterBottom:u,noWrap:h,paragraph:m,variant:y,variantMapping:g},x=p||(m?"p":g[y]||Fg[y])||"span",E=yT(b);return l.jsx(bT,{as:x,ref:n,className:he(E.root,d),...f,ownerState:b,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...f.style}})});process.env.NODE_ENV!=="production"&&(W.propTypes={align:o.oneOf(["center","inherit","justify","left","right"]),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),o.string]),component:o.elementType,gutterBottom:o.bool,noWrap:o.bool,paragraph:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),o.string]),variantMapping:o.object});function ar(e,t,n,r,i){if(process.env.NODE_ENV==="production")return null;const s=e[t],a=i||t;return s==null?null:s&&s.nodeType!==1?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var en="top",vn="bottom",Sn="right",tn="left",Cd="auto",Li=[en,vn,Sn,tn],wo="start",ji="end",xT="clippingParents",Dg="viewport",Wi="popper",vT="reference",Bg=Li.reduce(function(e,t){return e.concat([t+"-"+wo,t+"-"+ji])},[]),_g=[].concat(Li,[Cd]).reduce(function(e,t){return e.concat([t,t+"-"+wo,t+"-"+ji])},[]),ST="beforeRead",wT="read",CT="afterRead",ET="beforeMain",TT="main",AT="afterMain",PT="beforeWrite",kT="write",OT="afterWrite",IT=[ST,wT,CT,ET,TT,AT,PT,kT,OT];function Wn(e){return e?(e.nodeName||"").toLowerCase():null}function ln(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Hr(e){var t=ln(e).Element;return e instanceof t||e instanceof Element}function wn(e){var t=ln(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ed(e){if(typeof ShadowRoot>"u")return!1;var t=ln(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function NT(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},s=t.elements[n];!wn(s)||!Wn(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(a){var c=i[a];c===!1?s.removeAttribute(a):s.setAttribute(a,c===!0?"":c)}))})}function MT(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],s=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),c=a.reduce(function(d,p){return d[p]="",d},{});!wn(i)||!Wn(i)||(Object.assign(i.style,c),Object.keys(s).forEach(function(d){i.removeAttribute(d)}))})}}const FT={name:"applyStyles",enabled:!0,phase:"write",fn:NT,effect:MT,requires:["computeStyles"]};function Vn(e){return e.split("-")[0]}var Ur=Math.max,Ya=Math.min,Co=Math.round;function Td(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function $g(){return!/^((?!chrome|android).)*safari/i.test(Td())}function Eo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,s=1;t&&wn(e)&&(i=e.offsetWidth>0&&Co(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Co(r.height)/e.offsetHeight||1);var a=Hr(e)?ln(e):window,c=a.visualViewport,d=!$g()&&n,p=(r.left+(d&&c?c.offsetLeft:0))/i,u=(r.top+(d&&c?c.offsetTop:0))/s,h=r.width/i,m=r.height/s;return{width:h,height:m,top:u,right:p+h,bottom:u+m,left:p,x:p,y:u}}function Ad(e){var t=Eo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function zg(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ed(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function lr(e){return ln(e).getComputedStyle(e)}function DT(e){return["table","td","th"].indexOf(Wn(e))>=0}function Sr(e){return((Hr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ga(e){return Wn(e)==="html"?e:e.assignedSlot||e.parentNode||(Ed(e)?e.host:null)||Sr(e)}function Lg(e){return!wn(e)||lr(e).position==="fixed"?null:e.offsetParent}function BT(e){var t=/firefox/i.test(Td()),n=/Trident/i.test(Td());if(n&&wn(e)){var r=lr(e);if(r.position==="fixed")return null}var i=Ga(e);for(Ed(i)&&(i=i.host);wn(i)&&["html","body"].indexOf(Wn(i))<0;){var s=lr(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Vi(e){for(var t=ln(e),n=Lg(e);n&&DT(n)&&lr(n).position==="static";)n=Lg(n);return n&&(Wn(n)==="html"||Wn(n)==="body"&&lr(n).position==="static")?t:n||BT(e)||t}function Pd(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Hi(e,t,n){return Ur(e,Ya(t,n))}function _T(e,t,n){var r=Hi(e,t,n);return r>n?n:r}function jg(){return{top:0,right:0,bottom:0,left:0}}function Wg(e){return Object.assign({},jg(),e)}function Vg(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var $T=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Wg(typeof t!="number"?t:Vg(t,Li))};function zT(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,c=Vn(n.placement),d=Pd(c),p=[tn,Sn].indexOf(c)>=0,u=p?"height":"width";if(!(!s||!a)){var h=$T(i.padding,n),m=Ad(s),y=d==="y"?en:tn,g=d==="y"?vn:Sn,f=n.rects.reference[u]+n.rects.reference[d]-a[d]-n.rects.popper[u],b=a[d]-n.rects.reference[d],x=Vi(s),E=x?d==="y"?x.clientHeight||0:x.clientWidth||0:0,w=f/2-b/2,S=h[y],T=E-m[u]-h[g],v=E/2-m[u]/2+w,k=Hi(S,v,T),M=d;n.modifiersData[r]=(t={},t[M]=k,t.centerOffset=k-v,t)}}function LT(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||zg(t.elements.popper,i)&&(t.elements.arrow=i))}const jT={name:"arrow",enabled:!0,phase:"main",fn:zT,effect:LT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function To(e){return e.split("-")[1]}var WT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function VT(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Co(n*i)/i||0,y:Co(r*i)/i||0}}function Hg(e){var t,n=e.popper,r=e.popperRect,i=e.placement,s=e.variation,a=e.offsets,c=e.position,d=e.gpuAcceleration,p=e.adaptive,u=e.roundOffsets,h=e.isFixed,m=a.x,y=m===void 0?0:m,g=a.y,f=g===void 0?0:g,b=typeof u=="function"?u({x:y,y:f}):{x:y,y:f};y=b.x,f=b.y;var x=a.hasOwnProperty("x"),E=a.hasOwnProperty("y"),w=tn,S=en,T=window;if(p){var v=Vi(n),k="clientHeight",M="clientWidth";if(v===ln(n)&&(v=Sr(n),lr(v).position!=="static"&&c==="absolute"&&(k="scrollHeight",M="scrollWidth")),v=v,i===en||(i===tn||i===Sn)&&s===ji){S=vn;var _=h&&v===T&&T.visualViewport?T.visualViewport.height:v[k];f-=_-r.height,f*=d?1:-1}if(i===tn||(i===en||i===vn)&&s===ji){w=Sn;var z=h&&v===T&&T.visualViewport?T.visualViewport.width:v[M];y-=z-r.width,y*=d?1:-1}}var F=Object.assign({position:c},p&&WT),C=u===!0?VT({x:y,y:f},ln(n)):{x:y,y:f};if(y=C.x,f=C.y,d){var I;return Object.assign({},F,(I={},I[S]=E?"0":"",I[w]=x?"0":"",I.transform=(T.devicePixelRatio||1)<=1?"translate("+y+"px, "+f+"px)":"translate3d("+y+"px, "+f+"px, 0)",I))}return Object.assign({},F,(t={},t[S]=E?f+"px":"",t[w]=x?y+"px":"",t.transform="",t))}function HT(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,s=n.adaptive,a=s===void 0?!0:s,c=n.roundOffsets,d=c===void 0?!0:c,p={placement:Vn(t.placement),variation:To(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Hg(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Hg(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const UT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:HT,data:{}};var Ka={passive:!0};function RT(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,s=i===void 0?!0:i,a=r.resize,c=a===void 0?!0:a,d=ln(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&p.forEach(function(u){u.addEventListener("scroll",n.update,Ka)}),c&&d.addEventListener("resize",n.update,Ka),function(){s&&p.forEach(function(u){u.removeEventListener("scroll",n.update,Ka)}),c&&d.removeEventListener("resize",n.update,Ka)}}const qT={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:RT,data:{}};var YT={left:"right",right:"left",bottom:"top",top:"bottom"};function Xa(e){return e.replace(/left|right|bottom|top/g,function(t){return YT[t]})}var GT={start:"end",end:"start"};function Ug(e){return e.replace(/start|end/g,function(t){return GT[t]})}function kd(e){var t=ln(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Od(e){return Eo(Sr(e)).left+kd(e).scrollLeft}function KT(e,t){var n=ln(e),r=Sr(e),i=n.visualViewport,s=r.clientWidth,a=r.clientHeight,c=0,d=0;if(i){s=i.width,a=i.height;var p=$g();(p||!p&&t==="fixed")&&(c=i.offsetLeft,d=i.offsetTop)}return{width:s,height:a,x:c+Od(e),y:d}}function XT(e){var t,n=Sr(e),r=kd(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=Ur(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Ur(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-r.scrollLeft+Od(e),d=-r.scrollTop;return lr(i||n).direction==="rtl"&&(c+=Ur(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:c,y:d}}function Id(e){var t=lr(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Rg(e){return["html","body","#document"].indexOf(Wn(e))>=0?e.ownerDocument.body:wn(e)&&Id(e)?e:Rg(Ga(e))}function Ui(e,t){var n;t===void 0&&(t=[]);var r=Rg(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=ln(r),a=i?[s].concat(s.visualViewport||[],Id(r)?r:[]):r,c=t.concat(a);return i?c:c.concat(Ui(Ga(a)))}function Nd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function JT(e,t){var n=Eo(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function qg(e,t,n){return t===Dg?Nd(KT(e,n)):Hr(t)?JT(t,n):Nd(XT(Sr(e)))}function QT(e){var t=Ui(Ga(e)),n=["absolute","fixed"].indexOf(lr(e).position)>=0,r=n&&wn(e)?Vi(e):e;return Hr(r)?t.filter(function(i){return Hr(i)&&zg(i,r)&&Wn(i)!=="body"}):[]}function ZT(e,t,n,r){var i=t==="clippingParents"?QT(e):[].concat(t),s=[].concat(i,[n]),a=s[0],c=s.reduce(function(d,p){var u=qg(e,p,r);return d.top=Ur(u.top,d.top),d.right=Ya(u.right,d.right),d.bottom=Ya(u.bottom,d.bottom),d.left=Ur(u.left,d.left),d},qg(e,a,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Yg(e){var t=e.reference,n=e.element,r=e.placement,i=r?Vn(r):null,s=r?To(r):null,a=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,d;switch(i){case en:d={x:a,y:t.y-n.height};break;case vn:d={x:a,y:t.y+t.height};break;case Sn:d={x:t.x+t.width,y:c};break;case tn:d={x:t.x-n.width,y:c};break;default:d={x:t.x,y:t.y}}var p=i?Pd(i):null;if(p!=null){var u=p==="y"?"height":"width";switch(s){case wo:d[p]=d[p]-(t[u]/2-n[u]/2);break;case ji:d[p]=d[p]+(t[u]/2-n[u]/2);break}}return d}function Ri(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,s=n.strategy,a=s===void 0?e.strategy:s,c=n.boundary,d=c===void 0?xT:c,p=n.rootBoundary,u=p===void 0?Dg:p,h=n.elementContext,m=h===void 0?Wi:h,y=n.altBoundary,g=y===void 0?!1:y,f=n.padding,b=f===void 0?0:f,x=Wg(typeof b!="number"?b:Vg(b,Li)),E=m===Wi?vT:Wi,w=e.rects.popper,S=e.elements[g?E:m],T=ZT(Hr(S)?S:S.contextElement||Sr(e.elements.popper),d,u,a),v=Eo(e.elements.reference),k=Yg({reference:v,element:w,placement:i}),M=Nd(Object.assign({},w,k)),_=m===Wi?M:v,z={top:T.top-_.top+x.top,bottom:_.bottom-T.bottom+x.bottom,left:T.left-_.left+x.left,right:_.right-T.right+x.right},F=e.modifiersData.offset;if(m===Wi&&F){var C=F[i];Object.keys(z).forEach(function(I){var $=[Sn,vn].indexOf(I)>=0?1:-1,D=[en,vn].indexOf(I)>=0?"y":"x";z[I]+=C[D]*$})}return z}function eA(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,a=n.padding,c=n.flipVariations,d=n.allowedAutoPlacements,p=d===void 0?_g:d,u=To(r),h=u?c?Bg:Bg.filter(function(g){return To(g)===u}):Li,m=h.filter(function(g){return p.indexOf(g)>=0});m.length===0&&(m=h);var y=m.reduce(function(g,f){return g[f]=Ri(e,{placement:f,boundary:i,rootBoundary:s,padding:a})[Vn(f)],g},{});return Object.keys(y).sort(function(g,f){return y[g]-y[f]})}function tA(e){if(Vn(e)===Cd)return[];var t=Xa(e);return[Ug(e),t,Ug(t)]}function nA(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,a=n.altAxis,c=a===void 0?!0:a,d=n.fallbackPlacements,p=n.padding,u=n.boundary,h=n.rootBoundary,m=n.altBoundary,y=n.flipVariations,g=y===void 0?!0:y,f=n.allowedAutoPlacements,b=t.options.placement,x=Vn(b),E=x===b,w=d||(E||!g?[Xa(b)]:tA(b)),S=[b].concat(w).reduce(function(G,X){return G.concat(Vn(X)===Cd?eA(t,{placement:X,boundary:u,rootBoundary:h,padding:p,flipVariations:g,allowedAutoPlacements:f}):X)},[]),T=t.rects.reference,v=t.rects.popper,k=new Map,M=!0,_=S[0],z=0;z<S.length;z++){var F=S[z],C=Vn(F),I=To(F)===wo,$=[en,vn].indexOf(C)>=0,D=$?"width":"height",L=Ri(t,{placement:F,boundary:u,rootBoundary:h,altBoundary:m,padding:p}),V=$?I?Sn:tn:I?vn:en;T[D]>v[D]&&(V=Xa(V));var Y=Xa(V),U=[];if(s&&U.push(L[C]<=0),c&&U.push(L[V]<=0,L[Y]<=0),U.every(function(G){return G})){_=F,M=!1;break}k.set(F,U)}if(M)for(var B=g?3:1,O=function(X){var te=S.find(function(le){var ce=k.get(le);if(ce)return ce.slice(0,X).every(function(ae){return ae})});if(te)return _=te,"break"},j=B;j>0;j--){var H=O(j);if(H==="break")break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}}const rA={name:"flip",enabled:!0,phase:"main",fn:nA,requiresIfExists:["offset"],data:{_skip:!1}};function Gg(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Kg(e){return[en,Sn,vn,tn].some(function(t){return e[t]>=0})}function oA(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,a=Ri(t,{elementContext:"reference"}),c=Ri(t,{altBoundary:!0}),d=Gg(a,r),p=Gg(c,i,s),u=Kg(d),h=Kg(p);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}const iA={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:oA};function sA(e,t,n){var r=Vn(e),i=[tn,en].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=s[0],c=s[1];return a=a||0,c=(c||0)*i,[tn,Sn].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}function aA(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=i===void 0?[0,0]:i,a=_g.reduce(function(u,h){return u[h]=sA(h,t.rects,s),u},{}),c=a[t.placement],d=c.x,p=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=p),t.modifiersData[r]=a}const lA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:aA};function cA(e){var t=e.state,n=e.name;t.modifiersData[n]=Yg({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const dA={name:"popperOffsets",enabled:!0,phase:"read",fn:cA,data:{}};function uA(e){return e==="x"?"y":"x"}function pA(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,s=i===void 0?!0:i,a=n.altAxis,c=a===void 0?!1:a,d=n.boundary,p=n.rootBoundary,u=n.altBoundary,h=n.padding,m=n.tether,y=m===void 0?!0:m,g=n.tetherOffset,f=g===void 0?0:g,b=Ri(t,{boundary:d,rootBoundary:p,padding:h,altBoundary:u}),x=Vn(t.placement),E=To(t.placement),w=!E,S=Pd(x),T=uA(S),v=t.modifiersData.popperOffsets,k=t.rects.reference,M=t.rects.popper,_=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,z=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(v){if(s){var I,$=S==="y"?en:tn,D=S==="y"?vn:Sn,L=S==="y"?"height":"width",V=v[S],Y=V+b[$],U=V-b[D],B=y?-M[L]/2:0,O=E===wo?k[L]:M[L],j=E===wo?-M[L]:-k[L],H=t.elements.arrow,G=y&&H?Ad(H):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:jg(),te=X[$],le=X[D],ce=Hi(0,k[L],G[L]),ae=w?k[L]/2-B-ce-te-z.mainAxis:O-ce-te-z.mainAxis,Z=w?-k[L]/2+B+ce+le+z.mainAxis:j+ce+le+z.mainAxis,R=t.elements.arrow&&Vi(t.elements.arrow),q=R?S==="y"?R.clientTop||0:R.clientLeft||0:0,ie=(I=F?.[S])!=null?I:0,Q=V+ae-ie-q,pe=V+Z-ie,K=Hi(y?Ya(Y,Q):Y,V,y?Ur(U,pe):U);v[S]=K,C[S]=K-V}if(c){var ve,be=S==="x"?en:tn,_e=S==="x"?vn:Sn,$e=v[T],Ae=T==="y"?"height":"width",de=$e+b[be],qe=$e-b[_e],He=[en,tn].indexOf(x)!==-1,ue=(ve=F?.[T])!=null?ve:0,re=He?de:$e-k[Ae]-M[Ae]-ue+z.altAxis,xe=He?$e+k[Ae]+M[Ae]-ue-z.altAxis:qe,Se=y&&He?_T(re,$e,xe):Hi(y?re:de,$e,y?xe:qe);v[T]=Se,C[T]=Se-$e}t.modifiersData[r]=C}}const fA={name:"preventOverflow",enabled:!0,phase:"main",fn:pA,requiresIfExists:["offset"]};function hA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function gA(e){return e===ln(e)||!wn(e)?kd(e):hA(e)}function mA(e){var t=e.getBoundingClientRect(),n=Co(t.width)/e.offsetWidth||1,r=Co(t.height)/e.offsetHeight||1;return n!==1||r!==1}function yA(e,t,n){n===void 0&&(n=!1);var r=wn(t),i=wn(t)&&mA(t),s=Sr(t),a=Eo(e,i,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&((Wn(t)!=="body"||Id(s))&&(c=gA(t)),wn(t)?(d=Eo(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=Od(s))),{x:a.left+c.scrollLeft-d.x,y:a.top+c.scrollTop-d.y,width:a.width,height:a.height}}function bA(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function i(s){n.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(c){if(!n.has(c)){var d=t.get(c);d&&i(d)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||i(s)}),r}function xA(e){var t=bA(e);return IT.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function vA(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function SA(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Xg={placement:"bottom",modifiers:[],strategy:"absolute"};function Jg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function wA(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,s=i===void 0?Xg:i;return function(c,d,p){p===void 0&&(p=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Xg,s),modifiersData:{},elements:{reference:c,popper:d},attributes:{},styles:{}},h=[],m=!1,y={state:u,setOptions:function(x){var E=typeof x=="function"?x(u.options):x;f(),u.options=Object.assign({},s,u.options,E),u.scrollParents={reference:Hr(c)?Ui(c):c.contextElement?Ui(c.contextElement):[],popper:Ui(d)};var w=xA(SA([].concat(r,u.options.modifiers)));return u.orderedModifiers=w.filter(function(S){return S.enabled}),g(),y.update()},forceUpdate:function(){if(!m){var x=u.elements,E=x.reference,w=x.popper;if(Jg(E,w)){u.rects={reference:yA(E,Vi(w),u.options.strategy==="fixed"),popper:Ad(w)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(z){return u.modifiersData[z.name]=Object.assign({},z.data)});for(var S=0;S<u.orderedModifiers.length;S++){if(u.reset===!0){u.reset=!1,S=-1;continue}var T=u.orderedModifiers[S],v=T.fn,k=T.options,M=k===void 0?{}:k,_=T.name;typeof v=="function"&&(u=v({state:u,options:M,name:_,instance:y})||u)}}}},update:vA(function(){return new Promise(function(b){y.forceUpdate(),b(u)})}),destroy:function(){f(),m=!0}};if(!Jg(c,d))return y;y.setOptions(p).then(function(b){!m&&p.onFirstUpdate&&p.onFirstUpdate(b)});function g(){u.orderedModifiers.forEach(function(b){var x=b.name,E=b.options,w=E===void 0?{}:E,S=b.effect;if(typeof S=="function"){var T=S({state:u,name:x,instance:y,options:w}),v=function(){};h.push(T||v)}})}function f(){h.forEach(function(b){return b()}),h=[]}return y}}var CA=[qT,dA,UT,FT,lA,rA,fA,jT,iA],EA=wA({defaultModifiers:CA});function Hn(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...s}=e,a=i?{}:Eg(n,r),{props:c,internalRef:d}=Ag({...s,externalSlotProps:a}),p=Pt(d,a?.ref,e.additionalProps?.ref);return Cg(t,{...c,ref:p},r)}function Rr(e){return parseInt(A.version,10)>=19?e?.props?.ref||null:e?.ref||null}function TA(e){return typeof e=="function"?e():e}const qi=A.forwardRef(function(t,n){const{children:r,container:i,disablePortal:s=!1}=t,[a,c]=A.useState(null),d=Pt(A.isValidElement(r)?Rr(r):null,n);if(yn(()=>{s||c(TA(i)||document.body)},[i,s]),yn(()=>{if(a&&!s)return pg(n,a),()=>{pg(n,null)}},[n,a,s]),s){if(A.isValidElement(r)){const p={ref:d};return A.cloneElement(r,p)}return r}return a&&Iy.createPortal(r,a)});process.env.NODE_ENV!=="production"&&(qi.propTypes={children:o.node,container:o.oneOfType([ar,o.func]),disablePortal:o.bool}),process.env.NODE_ENV!=="production"&&(qi.propTypes=rd(qi.propTypes));function AA(e){return Pe("MuiPopper",e)}ke("MuiPopper",["root"]);function PA(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Ja(e){return typeof e=="function"?e():e}function Qa(e){return e.nodeType!==void 0}function kA(e){return!Qa(e)}const OA=e=>{const{classes:t}=e;return Ie({root:["root"]},AA,t)},IA={},NA=A.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:s,disablePortal:a,modifiers:c,open:d,placement:p,popperOptions:u,popperRef:h,slotProps:m={},slots:y={},TransitionProps:g,ownerState:f,...b}=t,x=A.useRef(null),E=Pt(x,n),w=A.useRef(null),S=Pt(w,h),T=A.useRef(S);yn(()=>{T.current=S},[S]),A.useImperativeHandle(h,()=>w.current,[]);const v=PA(p,s),[k,M]=A.useState(v),[_,z]=A.useState(Ja(r));A.useEffect(()=>{w.current&&w.current.forceUpdate()}),A.useEffect(()=>{r&&z(Ja(r))},[r]),yn(()=>{if(!_||!d)return;const D=Y=>{M(Y.placement)};if(process.env.NODE_ENV!=="production"&&_&&Qa(_)&&_.nodeType===1){const Y=_.getBoundingClientRect();process.env.NODE_ENV!=="test"&&Y.top===0&&Y.left===0&&Y.right===0&&Y.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
165
|
-
`))}let
|
|
163
|
+
`:null,iT=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,s={root:["root",n,`color${ie(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${ie(n)}`,i&&"circleDisableShrink"]};return Ne(s,nT,t)},sT=ne("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ie(n.color)}`]]}})(Ae(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:rT||{animation:`${Sd} 1.4s linear infinite`}},...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),aT=ne("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),lT=ne("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ie(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Ae(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:oT||{animation:`${wd} 1.4s ease-in-out infinite`}}]}))),cT=ne("circle",{name:"MuiCircularProgress",slot:"Track"})(Ae(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Vr=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiCircularProgress"}),{className:i,color:s="primary",disableShrink:a=!1,enableTrackSlot:c=!1,size:d=40,style:p,thickness:u=3.6,value:h=0,variant:m="indeterminate",...y}=r,g={...r,color:s,disableShrink:a,size:d,thickness:u,value:h,variant:m,enableTrackSlot:c},f=iT(g),b={},x={},E={};if(m==="determinate"){const w=2*Math.PI*((On-u)/2);b.strokeDasharray=w.toFixed(3),E["aria-valuenow"]=Math.round(h),b.strokeDashoffset=`${((100-h)/100*w).toFixed(3)}px`,x.transform="rotate(-90deg)"}return l.jsx(sT,{className:ge(f.root,i),style:{width:d,height:d,...x,...p},ownerState:g,ref:n,role:"progressbar",...E,...y,children:l.jsxs(aT,{className:f.svg,ownerState:g,viewBox:`${On/2} ${On/2} ${On} ${On}`,children:[c?l.jsx(cT,{className:f.track,ownerState:g,cx:On,cy:On,r:(On-u)/2,fill:"none",strokeWidth:u,"aria-hidden":"true"}):null,l.jsx(lT,{className:f.circle,style:b,ownerState:g,cx:On,cy:On,r:(On-u)/2,fill:"none",strokeWidth:u})]})})});process.env.NODE_ENV!=="production"&&(Vr.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","error","info","success","warning"]),o.string]),disableShrink:kn(o.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:o.bool,size:o.oneOfType([o.number,o.string]),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),thickness:o.number,value:o.number,variant:o.oneOf(["determinate","indeterminate"])});function dT(e){return Oe("MuiIconButton",e)}const Ng=Ie("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),uT=e=>{const{classes:t,disabled:n,color:r,edge:i,size:s,loading:a}=e,c={root:["root",a&&"loading",n&&"disabled",r!=="default"&&`color${ie(r)}`,i&&`edge${ie(i)}`,`size${ie(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Ne(c,dT,t)},pT=ne(zi,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${ie(n.color)}`],n.edge&&t[`edge${ie(n.edge)}`],t[`size${ie(n.size)}`]]}})(Ae(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Ae(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Ng.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Ng.loading}`]:{color:"transparent"}}))),fT=ne("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),it=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiIconButton"}),{edge:i=!1,children:s,className:a,color:c="default",disabled:d=!1,disableFocusRipple:p=!1,size:u="medium",id:h,loading:m=null,loadingIndicator:y,...g}=r,f=_r(h),b=y??l.jsx(Vr,{"aria-labelledby":f,color:"inherit",size:16}),x={...r,edge:i,color:c,disabled:d,disableFocusRipple:p,loading:m,loadingIndicator:b,size:u},E=uT(x);return l.jsxs(pT,{id:m?f:h,className:ge(E.root,a),centerRipple:!0,focusRipple:!p,disabled:d||m,ref:n,...g,ownerState:x,children:[typeof m=="boolean"&&l.jsx("span",{className:E.loadingWrapper,style:{display:"contents"},children:l.jsx(fT,{className:E.loadingIndicator,ownerState:x,children:m&&b})}),s]})});process.env.NODE_ENV!=="production"&&(it.propTypes={children:kn(o.node,e=>A.Children.toArray(e.children).some(n=>A.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
164
|
+
`)):null),classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,edge:o.oneOf(["end","start",!1]),id:o.string,loading:o.bool,loadingIndicator:o.node,size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function hT(e){return Oe("MuiTypography",e)}const Mg=Ie("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),gT={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},mT=bE(),yT=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:s,classes:a}=e,c={root:["root",s,e.align!=="inherit"&&`align${ie(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return Ne(c,hT,a)},bT=ne("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${ie(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Ae(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${ie(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),Fg={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},W=A.forwardRef(function(t,n){const{color:r,...i}=De({props:t,name:"MuiTypography"}),s=!gT[r],a=mT({...i,...s&&{color:r}}),{align:c="inherit",className:d,component:p,gutterBottom:u=!1,noWrap:h=!1,paragraph:m=!1,variant:y="body1",variantMapping:g=Fg,...f}=a,b={...a,align:c,color:r,className:d,component:p,gutterBottom:u,noWrap:h,paragraph:m,variant:y,variantMapping:g},x=p||(m?"p":g[y]||Fg[y])||"span",E=yT(b);return l.jsx(bT,{as:x,ref:n,className:ge(E.root,d),...f,ownerState:b,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...f.style}})});process.env.NODE_ENV!=="production"&&(W.propTypes={align:o.oneOf(["center","inherit","justify","left","right"]),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),o.string]),component:o.elementType,gutterBottom:o.bool,noWrap:o.bool,paragraph:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),o.string]),variantMapping:o.object});function ar(e,t,n,r,i){if(process.env.NODE_ENV==="production")return null;const s=e[t],a=i||t;return s==null?null:s&&s.nodeType!==1?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var en="top",vn="bottom",Sn="right",tn="left",Cd="auto",Li=[en,vn,Sn,tn],wo="start",ji="end",xT="clippingParents",Dg="viewport",Wi="popper",vT="reference",Bg=Li.reduce(function(e,t){return e.concat([t+"-"+wo,t+"-"+ji])},[]),_g=[].concat(Li,[Cd]).reduce(function(e,t){return e.concat([t,t+"-"+wo,t+"-"+ji])},[]),ST="beforeRead",wT="read",CT="afterRead",ET="beforeMain",TT="main",AT="afterMain",PT="beforeWrite",kT="write",OT="afterWrite",IT=[ST,wT,CT,ET,TT,AT,PT,kT,OT];function Wn(e){return e?(e.nodeName||"").toLowerCase():null}function ln(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Hr(e){var t=ln(e).Element;return e instanceof t||e instanceof Element}function wn(e){var t=ln(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ed(e){if(typeof ShadowRoot>"u")return!1;var t=ln(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function NT(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},s=t.elements[n];!wn(s)||!Wn(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(a){var c=i[a];c===!1?s.removeAttribute(a):s.setAttribute(a,c===!0?"":c)}))})}function MT(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],s=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),c=a.reduce(function(d,p){return d[p]="",d},{});!wn(i)||!Wn(i)||(Object.assign(i.style,c),Object.keys(s).forEach(function(d){i.removeAttribute(d)}))})}}const FT={name:"applyStyles",enabled:!0,phase:"write",fn:NT,effect:MT,requires:["computeStyles"]};function Vn(e){return e.split("-")[0]}var Ur=Math.max,Ya=Math.min,Co=Math.round;function Td(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function $g(){return!/^((?!chrome|android).)*safari/i.test(Td())}function Eo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,s=1;t&&wn(e)&&(i=e.offsetWidth>0&&Co(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Co(r.height)/e.offsetHeight||1);var a=Hr(e)?ln(e):window,c=a.visualViewport,d=!$g()&&n,p=(r.left+(d&&c?c.offsetLeft:0))/i,u=(r.top+(d&&c?c.offsetTop:0))/s,h=r.width/i,m=r.height/s;return{width:h,height:m,top:u,right:p+h,bottom:u+m,left:p,x:p,y:u}}function Ad(e){var t=Eo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function zg(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ed(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function lr(e){return ln(e).getComputedStyle(e)}function DT(e){return["table","td","th"].indexOf(Wn(e))>=0}function Sr(e){return((Hr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ga(e){return Wn(e)==="html"?e:e.assignedSlot||e.parentNode||(Ed(e)?e.host:null)||Sr(e)}function Lg(e){return!wn(e)||lr(e).position==="fixed"?null:e.offsetParent}function BT(e){var t=/firefox/i.test(Td()),n=/Trident/i.test(Td());if(n&&wn(e)){var r=lr(e);if(r.position==="fixed")return null}var i=Ga(e);for(Ed(i)&&(i=i.host);wn(i)&&["html","body"].indexOf(Wn(i))<0;){var s=lr(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Vi(e){for(var t=ln(e),n=Lg(e);n&&DT(n)&&lr(n).position==="static";)n=Lg(n);return n&&(Wn(n)==="html"||Wn(n)==="body"&&lr(n).position==="static")?t:n||BT(e)||t}function Pd(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Hi(e,t,n){return Ur(e,Ya(t,n))}function _T(e,t,n){var r=Hi(e,t,n);return r>n?n:r}function jg(){return{top:0,right:0,bottom:0,left:0}}function Wg(e){return Object.assign({},jg(),e)}function Vg(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var $T=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Wg(typeof t!="number"?t:Vg(t,Li))};function zT(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,c=Vn(n.placement),d=Pd(c),p=[tn,Sn].indexOf(c)>=0,u=p?"height":"width";if(!(!s||!a)){var h=$T(i.padding,n),m=Ad(s),y=d==="y"?en:tn,g=d==="y"?vn:Sn,f=n.rects.reference[u]+n.rects.reference[d]-a[d]-n.rects.popper[u],b=a[d]-n.rects.reference[d],x=Vi(s),E=x?d==="y"?x.clientHeight||0:x.clientWidth||0:0,w=f/2-b/2,S=h[y],T=E-m[u]-h[g],v=E/2-m[u]/2+w,k=Hi(S,v,T),M=d;n.modifiersData[r]=(t={},t[M]=k,t.centerOffset=k-v,t)}}function LT(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||zg(t.elements.popper,i)&&(t.elements.arrow=i))}const jT={name:"arrow",enabled:!0,phase:"main",fn:zT,effect:LT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function To(e){return e.split("-")[1]}var WT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function VT(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Co(n*i)/i||0,y:Co(r*i)/i||0}}function Hg(e){var t,n=e.popper,r=e.popperRect,i=e.placement,s=e.variation,a=e.offsets,c=e.position,d=e.gpuAcceleration,p=e.adaptive,u=e.roundOffsets,h=e.isFixed,m=a.x,y=m===void 0?0:m,g=a.y,f=g===void 0?0:g,b=typeof u=="function"?u({x:y,y:f}):{x:y,y:f};y=b.x,f=b.y;var x=a.hasOwnProperty("x"),E=a.hasOwnProperty("y"),w=tn,S=en,T=window;if(p){var v=Vi(n),k="clientHeight",M="clientWidth";if(v===ln(n)&&(v=Sr(n),lr(v).position!=="static"&&c==="absolute"&&(k="scrollHeight",M="scrollWidth")),v=v,i===en||(i===tn||i===Sn)&&s===ji){S=vn;var B=h&&v===T&&T.visualViewport?T.visualViewport.height:v[k];f-=B-r.height,f*=d?1:-1}if(i===tn||(i===en||i===vn)&&s===ji){w=Sn;var z=h&&v===T&&T.visualViewport?T.visualViewport.width:v[M];y-=z-r.width,y*=d?1:-1}}var $=Object.assign({position:c},p&&WT),C=u===!0?VT({x:y,y:f},ln(n)):{x:y,y:f};if(y=C.x,f=C.y,d){var I;return Object.assign({},$,(I={},I[S]=E?"0":"",I[w]=x?"0":"",I.transform=(T.devicePixelRatio||1)<=1?"translate("+y+"px, "+f+"px)":"translate3d("+y+"px, "+f+"px, 0)",I))}return Object.assign({},$,(t={},t[S]=E?f+"px":"",t[w]=x?y+"px":"",t.transform="",t))}function HT(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,s=n.adaptive,a=s===void 0?!0:s,c=n.roundOffsets,d=c===void 0?!0:c,p={placement:Vn(t.placement),variation:To(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Hg(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Hg(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const UT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:HT,data:{}};var Ka={passive:!0};function RT(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,s=i===void 0?!0:i,a=r.resize,c=a===void 0?!0:a,d=ln(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&p.forEach(function(u){u.addEventListener("scroll",n.update,Ka)}),c&&d.addEventListener("resize",n.update,Ka),function(){s&&p.forEach(function(u){u.removeEventListener("scroll",n.update,Ka)}),c&&d.removeEventListener("resize",n.update,Ka)}}const qT={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:RT,data:{}};var YT={left:"right",right:"left",bottom:"top",top:"bottom"};function Xa(e){return e.replace(/left|right|bottom|top/g,function(t){return YT[t]})}var GT={start:"end",end:"start"};function Ug(e){return e.replace(/start|end/g,function(t){return GT[t]})}function kd(e){var t=ln(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Od(e){return Eo(Sr(e)).left+kd(e).scrollLeft}function KT(e,t){var n=ln(e),r=Sr(e),i=n.visualViewport,s=r.clientWidth,a=r.clientHeight,c=0,d=0;if(i){s=i.width,a=i.height;var p=$g();(p||!p&&t==="fixed")&&(c=i.offsetLeft,d=i.offsetTop)}return{width:s,height:a,x:c+Od(e),y:d}}function XT(e){var t,n=Sr(e),r=kd(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=Ur(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Ur(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-r.scrollLeft+Od(e),d=-r.scrollTop;return lr(i||n).direction==="rtl"&&(c+=Ur(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:c,y:d}}function Id(e){var t=lr(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Rg(e){return["html","body","#document"].indexOf(Wn(e))>=0?e.ownerDocument.body:wn(e)&&Id(e)?e:Rg(Ga(e))}function Ui(e,t){var n;t===void 0&&(t=[]);var r=Rg(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=ln(r),a=i?[s].concat(s.visualViewport||[],Id(r)?r:[]):r,c=t.concat(a);return i?c:c.concat(Ui(Ga(a)))}function Nd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function JT(e,t){var n=Eo(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function qg(e,t,n){return t===Dg?Nd(KT(e,n)):Hr(t)?JT(t,n):Nd(XT(Sr(e)))}function QT(e){var t=Ui(Ga(e)),n=["absolute","fixed"].indexOf(lr(e).position)>=0,r=n&&wn(e)?Vi(e):e;return Hr(r)?t.filter(function(i){return Hr(i)&&zg(i,r)&&Wn(i)!=="body"}):[]}function ZT(e,t,n,r){var i=t==="clippingParents"?QT(e):[].concat(t),s=[].concat(i,[n]),a=s[0],c=s.reduce(function(d,p){var u=qg(e,p,r);return d.top=Ur(u.top,d.top),d.right=Ya(u.right,d.right),d.bottom=Ya(u.bottom,d.bottom),d.left=Ur(u.left,d.left),d},qg(e,a,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Yg(e){var t=e.reference,n=e.element,r=e.placement,i=r?Vn(r):null,s=r?To(r):null,a=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,d;switch(i){case en:d={x:a,y:t.y-n.height};break;case vn:d={x:a,y:t.y+t.height};break;case Sn:d={x:t.x+t.width,y:c};break;case tn:d={x:t.x-n.width,y:c};break;default:d={x:t.x,y:t.y}}var p=i?Pd(i):null;if(p!=null){var u=p==="y"?"height":"width";switch(s){case wo:d[p]=d[p]-(t[u]/2-n[u]/2);break;case ji:d[p]=d[p]+(t[u]/2-n[u]/2);break}}return d}function Ri(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,s=n.strategy,a=s===void 0?e.strategy:s,c=n.boundary,d=c===void 0?xT:c,p=n.rootBoundary,u=p===void 0?Dg:p,h=n.elementContext,m=h===void 0?Wi:h,y=n.altBoundary,g=y===void 0?!1:y,f=n.padding,b=f===void 0?0:f,x=Wg(typeof b!="number"?b:Vg(b,Li)),E=m===Wi?vT:Wi,w=e.rects.popper,S=e.elements[g?E:m],T=ZT(Hr(S)?S:S.contextElement||Sr(e.elements.popper),d,u,a),v=Eo(e.elements.reference),k=Yg({reference:v,element:w,placement:i}),M=Nd(Object.assign({},w,k)),B=m===Wi?M:v,z={top:T.top-B.top+x.top,bottom:B.bottom-T.bottom+x.bottom,left:T.left-B.left+x.left,right:B.right-T.right+x.right},$=e.modifiersData.offset;if(m===Wi&&$){var C=$[i];Object.keys(z).forEach(function(I){var _=[Sn,vn].indexOf(I)>=0?1:-1,F=[en,vn].indexOf(I)>=0?"y":"x";z[I]+=C[F]*_})}return z}function eA(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,a=n.padding,c=n.flipVariations,d=n.allowedAutoPlacements,p=d===void 0?_g:d,u=To(r),h=u?c?Bg:Bg.filter(function(g){return To(g)===u}):Li,m=h.filter(function(g){return p.indexOf(g)>=0});m.length===0&&(m=h);var y=m.reduce(function(g,f){return g[f]=Ri(e,{placement:f,boundary:i,rootBoundary:s,padding:a})[Vn(f)],g},{});return Object.keys(y).sort(function(g,f){return y[g]-y[f]})}function tA(e){if(Vn(e)===Cd)return[];var t=Xa(e);return[Ug(e),t,Ug(t)]}function nA(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,a=n.altAxis,c=a===void 0?!0:a,d=n.fallbackPlacements,p=n.padding,u=n.boundary,h=n.rootBoundary,m=n.altBoundary,y=n.flipVariations,g=y===void 0?!0:y,f=n.allowedAutoPlacements,b=t.options.placement,x=Vn(b),E=x===b,w=d||(E||!g?[Xa(b)]:tA(b)),S=[b].concat(w).reduce(function(Y,X){return Y.concat(Vn(X)===Cd?eA(t,{placement:X,boundary:u,rootBoundary:h,padding:p,flipVariations:g,allowedAutoPlacements:f}):X)},[]),T=t.rects.reference,v=t.rects.popper,k=new Map,M=!0,B=S[0],z=0;z<S.length;z++){var $=S[z],C=Vn($),I=To($)===wo,_=[en,vn].indexOf(C)>=0,F=_?"width":"height",j=Ri(t,{placement:$,boundary:u,rootBoundary:h,altBoundary:m,padding:p}),V=_?I?Sn:tn:I?vn:en;T[F]>v[F]&&(V=Xa(V));var R=Xa(V),U=[];if(s&&U.push(j[C]<=0),c&&U.push(j[V]<=0,j[R]<=0),U.every(function(Y){return Y})){B=$,M=!1;break}k.set($,U)}if(M)for(var D=g?3:1,O=function(X){var te=S.find(function(ce){var de=k.get(ce);if(de)return de.slice(0,X).every(function(ae){return ae})});if(te)return B=te,"break"},L=D;L>0;L--){var H=O(L);if(H==="break")break}t.placement!==B&&(t.modifiersData[r]._skip=!0,t.placement=B,t.reset=!0)}}const rA={name:"flip",enabled:!0,phase:"main",fn:nA,requiresIfExists:["offset"],data:{_skip:!1}};function Gg(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Kg(e){return[en,Sn,vn,tn].some(function(t){return e[t]>=0})}function oA(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,a=Ri(t,{elementContext:"reference"}),c=Ri(t,{altBoundary:!0}),d=Gg(a,r),p=Gg(c,i,s),u=Kg(d),h=Kg(p);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}const iA={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:oA};function sA(e,t,n){var r=Vn(e),i=[tn,en].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=s[0],c=s[1];return a=a||0,c=(c||0)*i,[tn,Sn].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}function aA(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=i===void 0?[0,0]:i,a=_g.reduce(function(u,h){return u[h]=sA(h,t.rects,s),u},{}),c=a[t.placement],d=c.x,p=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=p),t.modifiersData[r]=a}const lA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:aA};function cA(e){var t=e.state,n=e.name;t.modifiersData[n]=Yg({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const dA={name:"popperOffsets",enabled:!0,phase:"read",fn:cA,data:{}};function uA(e){return e==="x"?"y":"x"}function pA(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,s=i===void 0?!0:i,a=n.altAxis,c=a===void 0?!1:a,d=n.boundary,p=n.rootBoundary,u=n.altBoundary,h=n.padding,m=n.tether,y=m===void 0?!0:m,g=n.tetherOffset,f=g===void 0?0:g,b=Ri(t,{boundary:d,rootBoundary:p,padding:h,altBoundary:u}),x=Vn(t.placement),E=To(t.placement),w=!E,S=Pd(x),T=uA(S),v=t.modifiersData.popperOffsets,k=t.rects.reference,M=t.rects.popper,B=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,z=typeof B=="number"?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(v){if(s){var I,_=S==="y"?en:tn,F=S==="y"?vn:Sn,j=S==="y"?"height":"width",V=v[S],R=V+b[_],U=V-b[F],D=y?-M[j]/2:0,O=E===wo?k[j]:M[j],L=E===wo?-M[j]:-k[j],H=t.elements.arrow,Y=y&&H?Ad(H):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:jg(),te=X[_],ce=X[F],de=Hi(0,k[j],Y[j]),ae=w?k[j]/2-D-de-te-z.mainAxis:O-de-te-z.mainAxis,J=w?-k[j]/2+D+de+ce+z.mainAxis:L+de+ce+z.mainAxis,oe=t.elements.arrow&&Vi(t.elements.arrow),G=oe?S==="y"?oe.clientTop||0:oe.clientLeft||0:0,pe=(I=$?.[S])!=null?I:0,ee=V+ae-pe-G,K=V+J-pe,q=Hi(y?Ya(R,ee):R,V,y?Ur(U,K):U);v[S]=q,C[S]=q-V}if(c){var he,ue=S==="x"?en:tn,Ee=S==="x"?vn:Sn,ke=v[T],ve=T==="y"?"height":"width",le=ke+b[ue],qe=ke-b[Ee],He=[en,tn].indexOf(x)!==-1,fe=(he=$?.[T])!=null?he:0,re=He?le:ke-k[ve]-M[ve]-fe+z.altAxis,xe=He?ke+k[ve]+M[ve]-fe-z.altAxis:qe,Se=y&&He?_T(re,ke,xe):Hi(y?re:le,ke,y?xe:qe);v[T]=Se,C[T]=Se-ke}t.modifiersData[r]=C}}const fA={name:"preventOverflow",enabled:!0,phase:"main",fn:pA,requiresIfExists:["offset"]};function hA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function gA(e){return e===ln(e)||!wn(e)?kd(e):hA(e)}function mA(e){var t=e.getBoundingClientRect(),n=Co(t.width)/e.offsetWidth||1,r=Co(t.height)/e.offsetHeight||1;return n!==1||r!==1}function yA(e,t,n){n===void 0&&(n=!1);var r=wn(t),i=wn(t)&&mA(t),s=Sr(t),a=Eo(e,i,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&((Wn(t)!=="body"||Id(s))&&(c=gA(t)),wn(t)?(d=Eo(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=Od(s))),{x:a.left+c.scrollLeft-d.x,y:a.top+c.scrollTop-d.y,width:a.width,height:a.height}}function bA(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function i(s){n.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(c){if(!n.has(c)){var d=t.get(c);d&&i(d)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||i(s)}),r}function xA(e){var t=bA(e);return IT.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function vA(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function SA(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Xg={placement:"bottom",modifiers:[],strategy:"absolute"};function Jg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function wA(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,s=i===void 0?Xg:i;return function(c,d,p){p===void 0&&(p=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Xg,s),modifiersData:{},elements:{reference:c,popper:d},attributes:{},styles:{}},h=[],m=!1,y={state:u,setOptions:function(x){var E=typeof x=="function"?x(u.options):x;f(),u.options=Object.assign({},s,u.options,E),u.scrollParents={reference:Hr(c)?Ui(c):c.contextElement?Ui(c.contextElement):[],popper:Ui(d)};var w=xA(SA([].concat(r,u.options.modifiers)));return u.orderedModifiers=w.filter(function(S){return S.enabled}),g(),y.update()},forceUpdate:function(){if(!m){var x=u.elements,E=x.reference,w=x.popper;if(Jg(E,w)){u.rects={reference:yA(E,Vi(w),u.options.strategy==="fixed"),popper:Ad(w)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(z){return u.modifiersData[z.name]=Object.assign({},z.data)});for(var S=0;S<u.orderedModifiers.length;S++){if(u.reset===!0){u.reset=!1,S=-1;continue}var T=u.orderedModifiers[S],v=T.fn,k=T.options,M=k===void 0?{}:k,B=T.name;typeof v=="function"&&(u=v({state:u,options:M,name:B,instance:y})||u)}}}},update:vA(function(){return new Promise(function(b){y.forceUpdate(),b(u)})}),destroy:function(){f(),m=!0}};if(!Jg(c,d))return y;y.setOptions(p).then(function(b){!m&&p.onFirstUpdate&&p.onFirstUpdate(b)});function g(){u.orderedModifiers.forEach(function(b){var x=b.name,E=b.options,w=E===void 0?{}:E,S=b.effect;if(typeof S=="function"){var T=S({state:u,name:x,instance:y,options:w}),v=function(){};h.push(T||v)}})}function f(){h.forEach(function(b){return b()}),h=[]}return y}}var CA=[qT,dA,UT,FT,lA,rA,fA,jT,iA],EA=wA({defaultModifiers:CA});function Hn(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...s}=e,a=i?{}:Eg(n,r),{props:c,internalRef:d}=Ag({...s,externalSlotProps:a}),p=Pt(d,a?.ref,e.additionalProps?.ref);return Cg(t,{...c,ref:p},r)}function Rr(e){return parseInt(A.version,10)>=19?e?.props?.ref||null:e?.ref||null}function TA(e){return typeof e=="function"?e():e}const qi=A.forwardRef(function(t,n){const{children:r,container:i,disablePortal:s=!1}=t,[a,c]=A.useState(null),d=Pt(A.isValidElement(r)?Rr(r):null,n);if(yn(()=>{s||c(TA(i)||document.body)},[i,s]),yn(()=>{if(a&&!s)return pg(n,a),()=>{pg(n,null)}},[n,a,s]),s){if(A.isValidElement(r)){const p={ref:d};return A.cloneElement(r,p)}return r}return a&&Iy.createPortal(r,a)});process.env.NODE_ENV!=="production"&&(qi.propTypes={children:o.node,container:o.oneOfType([ar,o.func]),disablePortal:o.bool}),process.env.NODE_ENV!=="production"&&(qi.propTypes=rd(qi.propTypes));function AA(e){return Oe("MuiPopper",e)}Ie("MuiPopper",["root"]);function PA(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Ja(e){return typeof e=="function"?e():e}function Qa(e){return e.nodeType!==void 0}function kA(e){return!Qa(e)}const OA=e=>{const{classes:t}=e;return Ne({root:["root"]},AA,t)},IA={},NA=A.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:s,disablePortal:a,modifiers:c,open:d,placement:p,popperOptions:u,popperRef:h,slotProps:m={},slots:y={},TransitionProps:g,ownerState:f,...b}=t,x=A.useRef(null),E=Pt(x,n),w=A.useRef(null),S=Pt(w,h),T=A.useRef(S);yn(()=>{T.current=S},[S]),A.useImperativeHandle(h,()=>w.current,[]);const v=PA(p,s),[k,M]=A.useState(v),[B,z]=A.useState(Ja(r));A.useEffect(()=>{w.current&&w.current.forceUpdate()}),A.useEffect(()=>{r&&z(Ja(r))},[r]),yn(()=>{if(!B||!d)return;const F=R=>{M(R.placement)};if(process.env.NODE_ENV!=="production"&&B&&Qa(B)&&B.nodeType===1){const R=B.getBoundingClientRect();process.env.NODE_ENV!=="test"&&R.top===0&&R.left===0&&R.right===0&&R.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
165
|
+
`))}let j=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:R})=>{F(R)}}];c!=null&&(j=j.concat(c)),u&&u.modifiers!=null&&(j=j.concat(u.modifiers));const V=EA(B,x.current,{placement:v,...u,modifiers:j});return T.current(V),()=>{V.destroy(),T.current(null)}},[B,a,c,d,u,v]);const $={placement:k};g!==null&&($.TransitionProps=g);const C=OA(t),I=y.root??"div",_=Hn({elementType:I,externalSlotProps:m.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:E},ownerState:t,className:C.root});return l.jsx(I,{..._,children:typeof i=="function"?i($):i})}),Qg=A.forwardRef(function(t,n){const{anchorEl:r,children:i,container:s,direction:a="ltr",disablePortal:c=!1,keepMounted:d=!1,modifiers:p,open:u,placement:h="bottom",popperOptions:m=IA,popperRef:y,style:g,transition:f=!1,slotProps:b={},slots:x={},...E}=t,[w,S]=A.useState(!0),T=()=>{S(!1)},v=()=>{S(!0)};if(!d&&!u&&(!f||w))return null;let k;if(s)k=s;else if(r){const z=Ja(r);k=z&&Qa(z)?It(z).body:It(null).body}const M=!u&&d&&(!f||w)?"none":void 0,B=f?{in:u,onEnter:T,onExited:v}:void 0;return l.jsx(qi,{disablePortal:c,container:k,children:l.jsx(NA,{anchorEl:r,direction:a,disablePortal:c,modifiers:p,ref:n,open:f?!w:u,placement:h,popperOptions:m,popperRef:y,slotProps:b,slots:x,...E,style:{position:"fixed",top:0,left:0,display:M,...g},TransitionProps:B,children:i})})});process.env.NODE_ENV!=="production"&&(Qg.propTypes={anchorEl:kn(o.oneOfType([ar,o.object,o.func]),e=>{if(e.open){const t=Ja(e.anchorEl);if(t&&Qa(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
166
166
|
`))}else if(!t||typeof t.getBoundingClientRect!="function"||kA(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
|
|
167
|
-
`))}return null}),children:o.oneOfType([o.node,o.func]),container:o.oneOfType([ar,o.func]),direction:o.oneOf(["ltr","rtl"]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:o.shape({modifiers:o.array,onFirstUpdate:o.func,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:o.oneOf(["absolute","fixed"])}),popperRef:Gt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),transition:o.bool});const MA=ne(Qg,{name:"MuiPopper",slot:"Root"})({}),Md=A.forwardRef(function(t,n){const r=Di(),i=
|
|
168
|
-
`&&(S.value+=" ");const k=v.boxSizing,M=Za(v.paddingBottom)+Za(v.paddingTop),
|
|
169
|
-
`),k=S.selectionStart===T;v&&k&&S.setSelectionRange(T,T),r&&r(w)};return l.jsxs(A.Fragment,{children:[l.jsx("textarea",{value:c,onChange:E,ref:h,rows:s,style:a,...d}),l.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...FA.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(em.propTypes={className:o.string,maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),onChange:o.func,placeholder:o.string,style:o.object,value:o.oneOfType([o.arrayOf(o.string),o.number,o.string])});function wr({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const el=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(el.displayName="FormControlContext");function Un(){return A.useContext(el)}function tm(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function tl(e,t=!1){return e&&(tm(e.value)&&e.value!==""||t&&tm(e.defaultValue)&&e.defaultValue!=="")}function BA(e){return e.startAdornment}function _A(e){return
|
|
170
|
-
`))},[]),R=Pt(ae,S,w.ref,Z),[q,ie]=A.useState(!1),Q=Un();process.env.NODE_ENV!=="production"&&A.useEffect(()=>{if(Q)return Q.registerEffect()},[Q]);const pe=wr({props:r,muiFormControl:Q,states:["color","disabled","error","hiddenLabel","size","required","filled"]});pe.focused=Q?Q.focused:q,A.useEffect(()=>{!Q&&m&&q&&(ie(!1),z&&z())},[Q,m,q,z]);const K=Q&&Q.onFilled,ve=Q&&Q.onEmpty,be=A.useCallback(ge=>{tl(ge)?K&&K():ve&&ve()},[K,ve]);yn(()=>{ce&&be({value:le})},[le,be,ce]);const _e=ge=>{I&&I(ge),w.onFocus&&w.onFocus(ge),Q&&Q.onFocus?Q.onFocus(ge):ie(!0)},$e=ge=>{z&&z(ge),w.onBlur&&w.onBlur(ge),Q&&Q.onBlur?Q.onBlur(ge):ie(!1)},Ae=(ge,...Re)=>{if(!ce){const ze=ge.target||ae.current;if(ze==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":Fn(1));be({value:ze.value})}w.onChange&&w.onChange(ge,...Re),F&&F(ge,...Re)};A.useEffect(()=>{be(ae.current)},[]);const de=ge=>{ae.current&&ge.currentTarget===ge.target&&ae.current.focus(),C&&C(ge)};let qe=E,He=w;M&&qe==="input"&&(U?(process.env.NODE_ENV!=="production"&&(k||v)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),He={type:void 0,minRows:U,maxRows:U,...He}):He={type:void 0,maxRows:v,minRows:k,...He},qe=em);const ue=ge=>{be(ge.animationName==="mui-auto-fill-cancel"?ae.current:{value:"x"})};A.useEffect(()=>{Q&&Q.setAdornedStart(!!H)},[Q,H]);const re={...r,color:pe.color||"primary",disabled:pe.disabled,endAdornment:g,error:pe.error,focused:pe.focused,formControl:Q,fullWidth:b,hiddenLabel:pe.hiddenLabel,multiline:M,size:pe.size,startAdornment:H,type:G},xe=$A(re),Se=j.root||p.Root||ol,we=O.root||u.root||{},me=j.input||p.Input||il;return He={...He,...O.input??u.input},l.jsxs(A.Fragment,{children:[!y&&typeof rm=="function"&&(nm||(nm=l.jsx(rm,{}))),l.jsxs(Se,{...we,ref:n,onClick:de,...te,...!vr(Se)&&{ownerState:{...re,...we.ownerState}},className:he(xe.root,we.className,c,V&&"MuiInputBase-readOnly"),children:[H,l.jsx(el.Provider,{value:null,children:l.jsx(me,{"aria-invalid":pe.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:h,disabled:pe.disabled,id:x,onAnimationStart:ue,name:_,placeholder:L,readOnly:V,required:pe.required,rows:U,value:le,onKeyDown:$,onKeyUp:D,type:G,...He,...!vr(me)&&{as:qe,ownerState:{...re,...He.ownerState}},ref:R,className:he(xe.input,He.className,V&&"MuiInputBase-readOnly"),onBlur:$e,onChange:Ae,onFocus:_e})}),g,Y?Y({...pe,startAdornment:H}):null]})]})});process.env.NODE_ENV!=="production"&&(Yi.propTypes={"aria-describedby":o.string,autoComplete:o.string,autoFocus:o.bool,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableInjectingGlobalStyles:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:bd,inputProps:o.object,inputRef:Gt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClick:o.func,onFocus:o.func,onInvalid:o.func,onKeyDown:o.func,onKeyUp:o.func,placeholder:o.string,readOnly:o.bool,renderSuffix:o.func,required:o.bool,rows:o.oneOfType([o.number,o.string]),size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});function zA(e){return Pe("MuiInput",e)}const Gi={...Ao,...ke("MuiInput",["root","underline","input"])};function LA(e){return Pe("MuiOutlinedInput",e)}const Rn={...Ao,...ke("MuiOutlinedInput",["root","notchedOutline","input"])};function jA(e){return Pe("MuiFilledInput",e)}const qr={...Ao,...ke("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},WA=yt(l.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),VA=yt(l.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function HA(e){return Pe("MuiAvatar",e)}ke("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const UA=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Ie({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},HA,t)},RA=ne("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(Ee(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),qA=ne("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),YA=ne(VA,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function GA({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,s]=A.useState(!1);return A.useEffect(()=>{if(!n&&!r)return;s(!1);let a=!0;const c=new Image;return c.onload=()=>{a&&s("loaded")},c.onerror=()=>{a&&s("error")},c.crossOrigin=e,c.referrerPolicy=t,c.src=n,r&&(c.srcset=r),()=>{a=!1}},[e,t,n,r]),i}const cr=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiAvatar"}),{alt:i,children:s,className:a,component:c="div",slots:d={},slotProps:p={},imgProps:u,sizes:h,src:m,srcSet:y,variant:g="circular",...f}=r;let b=null;const x={...r,component:c,variant:g},E=GA({...u,...typeof p.img=="function"?p.img(x):p.img,src:m,srcSet:y}),w=m||y,S=w&&E!=="error";x.colorDefault=!S,delete x.ownerState;const T=UA(x),[v,k]=Be("root",{ref:n,className:he(T.root,a),elementType:RA,externalForwardedProps:{slots:d,slotProps:p,component:c,...f},ownerState:x}),[M,_]=Be("img",{className:T.img,elementType:qA,externalForwardedProps:{slots:d,slotProps:{img:{...u,...p.img}}},additionalProps:{alt:i,src:m,srcSet:y,sizes:h},ownerState:x}),[z,F]=Be("fallback",{className:T.fallback,elementType:YA,externalForwardedProps:{slots:d,slotProps:p},shouldForwardComponentProp:!0,ownerState:x});return S?b=l.jsx(M,{..._}):s||s===0?b=s:w&&i?b=i[0]:b=l.jsx(z,{...F}),l.jsx(v,{...k,children:b})});process.env.NODE_ENV!=="production"&&(cr.propTypes={alt:o.string,children:o.node,classes:o.object,className:o.string,component:o.elementType,imgProps:o.object,sizes:o.string,slotProps:o.shape({fallback:o.oneOfType([o.func,o.object]),img:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({fallback:o.elementType,img:o.elementType,root:o.elementType}),src:o.string,srcSet:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["circular","rounded","square"]),o.string])});function KA(e){const{prototype:t={}}=e;return!!t.isReactComponent}function om(e,t,n,r,i){const s=e[t],a=i||t;if(s==null||typeof window>"u")return null;let c;const d=s.type;return typeof d=="function"&&!KA(d)&&(c="Did you accidentally use a plain function component for an element instead?"),c!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Yr=kn(o.element,om);Yr.isRequired=kn(o.element.isRequired,om);const XA={entering:{opacity:1},entered:{opacity:1}},sl=A.forwardRef(function(t,n){const r=Ln(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:c,easing:d,in:p,onEnter:u,onEntered:h,onEntering:m,onExit:y,onExited:g,onExiting:f,style:b,timeout:x=i,TransitionComponent:E=jn,...w}=t,S=A.useRef(null),T=Pt(S,Rr(c),n),v=$=>D=>{if($){const L=S.current;D===void 0?$(L):$(L,D)}},k=v(m),M=v(($,D)=>{wg($);const L=Ua({style:b,timeout:x,easing:d},{mode:"enter"});$.style.webkitTransition=r.transitions.create("opacity",L),$.style.transition=r.transitions.create("opacity",L),u&&u($,D)}),_=v(h),z=v(f),F=v($=>{const D=Ua({style:b,timeout:x,easing:d},{mode:"exit"});$.style.webkitTransition=r.transitions.create("opacity",D),$.style.transition=r.transitions.create("opacity",D),y&&y($)}),C=v(g),I=$=>{s&&s(S.current,$)};return l.jsx(E,{appear:a,in:p,nodeRef:S,onEnter:M,onEntered:_,onEntering:k,onExit:F,onExited:C,onExiting:z,addEndListener:I,timeout:x,...w,children:($,{ownerState:D,...L})=>A.cloneElement(c,{style:{opacity:0,visibility:$==="exited"&&!p?"hidden":void 0,...XA[$],...b,...c.props.style},ref:T,...L})})});process.env.NODE_ENV!=="production"&&(sl.propTypes={addEndListener:o.func,appear:o.bool,children:Yr.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});function JA(e){return Pe("MuiBackdrop",e)}ke("MuiBackdrop",["root","invisible"]);const QA=e=>{const{classes:t,invisible:n}=e;return Ie({root:["root",n&&"invisible"]},JA,t)},ZA=ne("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Fd=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiBackdrop"}),{children:i,className:s,component:a="div",invisible:c=!1,open:d,components:p={},componentsProps:u={},slotProps:h={},slots:m={},TransitionComponent:y,transitionDuration:g,...f}=r,b={...r,component:a,invisible:c},x=QA(b),E={transition:y,root:p.Root,...m},w={...u,...h},S={component:a,slots:E,slotProps:w},[T,v]=Be("root",{elementType:ZA,externalForwardedProps:S,className:he(x.root,s),ownerState:b}),[k,M]=Be("transition",{elementType:sl,externalForwardedProps:S,ownerState:b});return l.jsx(k,{in:d,timeout:g,...f,...M,children:l.jsx(T,{"aria-hidden":!0,...v,classes:x,ref:n,children:i})})});process.env.NODE_ENV!=="production"&&(Fd.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.object}),invisible:o.bool,open:o.bool.isRequired,slotProps:o.shape({root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});const eP=ke("MuiBox",["root"]),tP=cg(),P=sC({themeId:Si,defaultTheme:tP,defaultClassName:eP.root,generateClassName:Fh.generate});process.env.NODE_ENV!=="production"&&(P.propTypes={children:o.node,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function nP(e){return Pe("MuiButton",e)}const Gr=ke("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),im=A.createContext({});process.env.NODE_ENV!=="production"&&(im.displayName="ButtonGroupContext");const sm=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(sm.displayName="ButtonGroupButtonContext");const rP=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:s,loading:a,loadingPosition:c,classes:d}=e,p={root:["root",a&&"loading",s,`${s}${oe(t)}`,`size${oe(i)}`,`${s}Size${oe(i)}`,`color${oe(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${oe(c)}`],startIcon:["icon","startIcon",`iconSize${oe(i)}`],endIcon:["icon","endIcon",`iconSize${oe(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=Ie(p,nP,d);return{...d,...u}},am=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],oP=ne(zi,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${oe(n.color)}`],t[`size${oe(n.size)}`],t[`${n.variant}Size${oe(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Ee(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Gr.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Gr.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Gr.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Gr.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(St()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Gr.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Gr.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Gr.loading}`]:{color:"transparent"}}}]}})),iP=ne("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${oe(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...am]})),sP=ne("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${oe(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...am]})),aP=ne("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),lm=ne("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Ze=A.forwardRef(function(t,n){const r=A.useContext(im),i=A.useContext(sm),s=Mi(r,t),a=Fe({props:s,name:"MuiButton"}),{children:c,color:d="primary",component:p="button",className:u,disabled:h=!1,disableElevation:m=!1,disableFocusRipple:y=!1,endIcon:g,focusVisibleClassName:f,fullWidth:b=!1,id:x,loading:E=null,loadingIndicator:w,loadingPosition:S="center",size:T="medium",startIcon:v,type:k,variant:M="text",..._}=a,z=_r(x),F=w??l.jsx(Vr,{"aria-labelledby":z,color:"inherit",size:16}),C={...a,color:d,component:p,disabled:h,disableElevation:m,disableFocusRipple:y,fullWidth:b,loading:E,loadingIndicator:F,loadingPosition:S,size:T,type:k,variant:M},I=rP(C),$=(v||E&&S==="start")&&l.jsx(iP,{className:I.startIcon,ownerState:C,children:v||l.jsx(lm,{className:I.loadingIconPlaceholder,ownerState:C})}),D=(g||E&&S==="end")&&l.jsx(sP,{className:I.endIcon,ownerState:C,children:g||l.jsx(lm,{className:I.loadingIconPlaceholder,ownerState:C})}),L=i||"",V=typeof E=="boolean"?l.jsx("span",{className:I.loadingWrapper,style:{display:"contents"},children:E&&l.jsx(aP,{className:I.loadingIndicator,ownerState:C,children:F})}):null;return l.jsxs(oP,{ownerState:C,className:he(r.className,I.root,u,L),component:p,disabled:h||E,focusRipple:!y,focusVisibleClassName:he(I.focusVisible,f),ref:n,type:k,id:E?z:x,..._,classes:I,children:[$,S!=="end"&&V,c,S==="end"&&V,D]})});process.env.NODE_ENV!=="production"&&(Ze.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","success","error","info","warning"]),o.string]),component:o.elementType,disabled:o.bool,disableElevation:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,endIcon:o.node,focusVisibleClassName:o.string,fullWidth:o.bool,href:o.string,id:o.string,loading:o.bool,loadingIndicator:o.node,loadingPosition:o.oneOf(["center","end","start"]),size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),startIcon:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string]),variant:o.oneOfType([o.oneOf(["contained","outlined","text"]),o.string])});function lP(e){return Pe("MuiCard",e)}ke("MuiCard",["root"]);const cP=e=>{const{classes:t}=e;return Ie({root:["root"]},lP,t)},dP=ne(bn,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),Ki=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiCard"}),{className:i,raised:s=!1,...a}=r,c={...r,raised:s},d=cP(c);return l.jsx(dP,{className:he(d.root,i),elevation:s?8:void 0,ref:n,ownerState:c,...a})});process.env.NODE_ENV!=="production"&&(Ki.propTypes={children:o.node,classes:o.object,className:o.string,raised:kn(o.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function uP(e){return Pe("PrivateSwitchBase",e)}ke("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const pP=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,s={root:["root",n&&"checked",r&&"disabled",i&&`edge${oe(i)}`],input:["input"]};return Ie(s,uP,t)},fP=ne(zi,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),hP=ne("input",{name:"MuiSwitchBase",shouldForwardProp:Ht})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),al=A.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:s,defaultChecked:a,disabled:c,disableFocusRipple:d=!1,edge:p=!1,icon:u,id:h,inputProps:m,inputRef:y,name:g,onBlur:f,onChange:b,onFocus:x,readOnly:E,required:w=!1,tabIndex:S,type:T,value:v,slots:k={},slotProps:M={},..._}=t,[z,F]=bo({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),C=Un(),I=X=>{x&&x(X),C&&C.onFocus&&C.onFocus(X)},$=X=>{f&&f(X),C&&C.onBlur&&C.onBlur(X)},D=X=>{if(X.nativeEvent.defaultPrevented)return;const te=X.target.checked;F(te),b&&b(X,te)};let L=c;C&&typeof L>"u"&&(L=C.disabled);const V=T==="checkbox"||T==="radio",Y={...t,checked:z,disabled:L,disableFocusRipple:d,edge:p},U=pP(Y),B={slots:k,slotProps:{input:m,...M}},[O,j]=Be("root",{ref:n,elementType:fP,className:U.root,shouldForwardComponentProp:!0,externalForwardedProps:{...B,component:"span",..._},getSlotProps:X=>({...X,onFocus:te=>{X.onFocus?.(te),I(te)},onBlur:te=>{X.onBlur?.(te),$(te)}}),ownerState:Y,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:L,role:void 0,tabIndex:null}}),[H,G]=Be("input",{ref:y,elementType:hP,className:U.input,externalForwardedProps:B,getSlotProps:X=>({...X,onChange:te=>{X.onChange?.(te),D(te)}}),ownerState:Y,additionalProps:{autoFocus:r,checked:i,defaultChecked:a,disabled:L,id:V?h:void 0,name:g,readOnly:E,required:w,tabIndex:S,type:T,...T==="checkbox"&&v===void 0?{}:{value:v}}});return l.jsxs(O,{...j,children:[l.jsx(H,{...G}),z?s:u]})});process.env.NODE_ENV!=="production"&&(al.propTypes={autoFocus:o.bool,checked:o.bool,checkedIcon:o.node.isRequired,classes:o.object,className:o.string,defaultChecked:o.bool,disabled:o.bool,disableFocusRipple:o.bool,edge:o.oneOf(["end","start",!1]),icon:o.node.isRequired,id:o.string,inputProps:o.object,inputRef:Gt,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,readOnly:o.bool,required:o.bool,slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.string.isRequired,value:o.any});const gP=yt(l.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),mP=yt(l.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),yP=yt(l.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function bP(e){return Pe("MuiCheckbox",e)}const Dd=ke("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),xP=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,s={root:["root",n&&"indeterminate",`color${oe(r)}`,`size${oe(i)}`]},a=Ie(s,bP,t);return{...t,...a}},vP=ne(al,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${oe(n.size)}`],n.color!=="default"&&t[`color${oe(n.color)}`]]}})(Ee(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t},style:{[`&.${Dd.checked}, &.${Dd.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Dd.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),SP=l.jsx(mP,{}),wP=l.jsx(gP,{}),CP=l.jsx(yP,{}),Nt=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiCheckbox"}),{checkedIcon:i=SP,color:s="primary",icon:a=wP,indeterminate:c=!1,indeterminateIcon:d=CP,inputProps:p,size:u="medium",disableRipple:h=!1,className:m,slots:y={},slotProps:g={},...f}=r,b=c?d:a,x=c?d:i,E={...r,disableRipple:h,color:s,indeterminate:c,size:u},w=xP(E),S=g.input??p,[T,v]=Be("root",{ref:n,elementType:vP,className:he(w.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:g,...f},ownerState:E,additionalProps:{type:"checkbox",icon:A.cloneElement(b,{fontSize:b.props.fontSize??u}),checkedIcon:A.cloneElement(x,{fontSize:x.props.fontSize??u}),disableRipple:h,slots:y,slotProps:{input:fg(typeof S=="function"?S(E):S,{"data-indeterminate":c})}}});return l.jsx(T,{...v,classes:w})});process.env.NODE_ENV!=="production"&&(Nt.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,indeterminate:o.bool,indeterminateIcon:o.node,inputProps:o.object,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function cm(e){return e.substring(2).toLowerCase()}function EP(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function ll(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:s="onTouchEnd"}=e,a=A.useRef(!1),c=A.useRef(null),d=A.useRef(!1),p=A.useRef(!1);A.useEffect(()=>(setTimeout(()=>{d.current=!0},0),()=>{d.current=!1}),[]);const u=Pt(Rr(t),c),h=Yt(g=>{const f=p.current;p.current=!1;const b=It(c.current);if(!d.current||!c.current||"clientX"in g&&EP(g,b))return;if(a.current){a.current=!1;return}let x;g.composedPath?x=g.composedPath().includes(c.current):x=!b.documentElement.contains(g.target)||c.current.contains(g.target),!x&&(n||!f)&&i(g)}),m=g=>f=>{p.current=!0;const b=t.props[g];b&&b(f)},y={ref:u};return s!==!1&&(y[s]=m(s)),A.useEffect(()=>{if(s!==!1){const g=cm(s),f=It(c.current),b=()=>{a.current=!0};return f.addEventListener(g,h),f.addEventListener("touchmove",b),()=>{f.removeEventListener(g,h),f.removeEventListener("touchmove",b)}}},[h,s]),r!==!1&&(y[r]=m(r)),A.useEffect(()=>{if(r!==!1){const g=cm(r),f=It(c.current);return f.addEventListener(g,h),()=>{f.removeEventListener(g,h)}}},[h,r]),A.cloneElement(t,y)}process.env.NODE_ENV!=="production"&&(ll.propTypes={children:Yr.isRequired,disableReactTree:o.bool,mouseEvent:o.oneOf(["onClick","onMouseDown","onMouseUp","onPointerDown","onPointerUp",!1]),onClickAway:o.func.isRequired,touchEvent:o.oneOf(["onTouchEnd","onTouchStart",!1])}),process.env.NODE_ENV!=="production"&&(ll.propTypes=rd(ll.propTypes));const Ut=zC({createStyledComponent:ne("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${oe(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Fe({props:e,name:"MuiContainer"})});process.env.NODE_ENV!=="production"&&(Ut.propTypes={children:o.node,classes:o.object,component:o.elementType,disableGutters:o.bool,fixed:o.bool,maxWidth:o.oneOfType([o.oneOf(["xs","sm","md","lg","xl",!1]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function dm(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function TP(e){const t=It(e);return t.body===e?ir(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Xi(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function um(e){return parseInt(ir(e).getComputedStyle(e).paddingRight,10)||0}function AP(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function pm(e,t,n,r,i){const s=[t,n,...r];[].forEach.call(e.children,a=>{const c=!s.includes(a),d=!AP(a);c&&d&&Xi(a,i)})}function Bd(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function PP(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(TP(r)){const a=dm(ir(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${um(r)+a}px`;const c=It(r).querySelectorAll(".mui-fixed");[].forEach.call(c,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${um(d)+a}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=It(r).body;else{const a=r.parentElement,c=ir(r);s=a?.nodeName==="HTML"&&c.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:a,property:c})=>{s?a.style.setProperty(c,s):a.style.removeProperty(c)})}}function kP(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class OP{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Xi(t.modalRef,!1);const i=kP(n);pm(n,t.mount,t.modalRef,i,!0);const s=Bd(this.containers,a=>a.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=Bd(this.containers,s=>s.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=PP(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=Bd(this.containers,a=>a.modals.includes(t)),s=this.containers[i];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&Xi(t.modalRef,n),pm(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=s.modals[s.modals.length-1];a.modalRef&&Xi(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Ji(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const IP=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function NP(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function MP(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function FP(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||MP(e))}function DP(e){const t=[],n=[];return Array.from(e.querySelectorAll(IP)).forEach((r,i)=>{const s=NP(r);s===-1||!FP(r)||(s===0?t.push(r):n.push({documentOrder:i,tabIndex:s,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function BP(){return!0}function cl(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:s=DP,isEnabled:a=BP,open:c}=e,d=A.useRef(!1),p=A.useRef(null),u=A.useRef(null),h=A.useRef(null),m=A.useRef(null),y=A.useRef(!1),g=A.useRef(null),f=Pt(Rr(t),g),b=A.useRef(null);A.useEffect(()=>{!c||!g.current||(y.current=!n)},[n,c]),A.useEffect(()=>{if(!c||!g.current)return;const w=It(g.current),S=Ji(w);return g.current.contains(S)||(g.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
171
|
-
`)),g.current.setAttribute("tabIndex","-1")),y.current&&g.current.focus()),()=>{i||(h.current&&h.current.focus&&(d.current=!0,h.current.focus()),h.current=null)}},[c]),A.useEffect(()=>{if(!c||!g.current)return;const w=It(g.current),S=Ji(w),T=M=>{b.current=M,!(r||!a()||M.key!=="Tab")&&S===g.current&&M.shiftKey&&(d.current=!0,u.current&&u.current.focus())},v=()=>{const M=g.current;if(M===null)return;const _=Ji(w);if(!w.hasFocus()||!a()||d.current){d.current=!1;return}if(M.contains(_)||r&&_!==p.current&&_!==u.current)return;if(_!==m.current)m.current=null;else if(m.current!==null)return;if(!y.current)return;let z=[];if((_===p.current||_===u.current)&&(z=s(g.current)),z.length>0){const F=!!(b.current?.shiftKey&&b.current?.key==="Tab"),C=z[0],I=z[z.length-1];typeof C!="string"&&typeof I!="string"&&(F?I.focus():C.focus())}else M.focus()};w.addEventListener("focusin",v),w.addEventListener("keydown",T,!0);const k=setInterval(()=>{const M=Ji(w);M&&M.tagName==="BODY"&&v()},50);return()=>{clearInterval(k),w.removeEventListener("focusin",v),w.removeEventListener("keydown",T,!0)}},[n,r,i,a,c,s]);const x=w=>{h.current===null&&(h.current=w.relatedTarget),y.current=!0,m.current=w.target;const S=t.props.onFocus;S&&S(w)},E=w=>{h.current===null&&(h.current=w.relatedTarget),y.current=!0};return l.jsxs(A.Fragment,{children:[l.jsx("div",{tabIndex:c?0:-1,onFocus:E,ref:p,"data-testid":"sentinelStart"}),A.cloneElement(t,{ref:f,onFocus:x}),l.jsx("div",{tabIndex:c?0:-1,onFocus:E,ref:u,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(cl.propTypes={children:Yr,disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableRestoreFocus:o.bool,getTabbable:o.func,isEnabled:o.func,open:o.bool.isRequired}),process.env.NODE_ENV!=="production"&&(cl.propTypes=rd(cl.propTypes));function _P(e){return typeof e=="function"?e():e}function $P(e){return e?e.props.hasOwnProperty("in"):!1}const fm=()=>{},dl=new OP;function zP(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:a,children:c,onClose:d,open:p,rootRef:u}=e,h=A.useRef({}),m=A.useRef(null),y=A.useRef(null),g=Pt(y,u),[f,b]=A.useState(!p),x=$P(c);let E=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(E=!1);const w=()=>It(m.current),S=()=>(h.current.modalRef=y.current,h.current.mount=m.current,h.current),T=()=>{dl.mount(S(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},v=Yt(()=>{const D=_P(t)||w().body;dl.add(S(),D),y.current&&T()}),k=()=>dl.isTopModal(S()),M=Yt(D=>{m.current=D,D&&(p&&k()?T():y.current&&Xi(y.current,E))}),_=A.useCallback(()=>{dl.remove(S(),E)},[E]);A.useEffect(()=>()=>{_()},[_]),A.useEffect(()=>{p?v():(!x||!i)&&_()},[p,_,x,i,v]);const z=D=>L=>{D.onKeyDown?.(L),!(L.key!=="Escape"||L.which===229||!k())&&(n||(L.stopPropagation(),d&&d(L,"escapeKeyDown")))},F=D=>L=>{D.onClick?.(L),L.target===L.currentTarget&&d&&d(L,"backdropClick")};return{getRootProps:(D={})=>{const L=Wr(e);delete L.onTransitionEnter,delete L.onTransitionExited;const V={...L,...D};return{role:"presentation",...V,onKeyDown:z(V),ref:g}},getBackdropProps:(D={})=>{const L=D;return{"aria-hidden":!0,...L,onClick:F(L),open:p}},getTransitionProps:()=>{const D=()=>{b(!1),s&&s()},L=()=>{b(!0),a&&a(),i&&_()};return{onEnter:pd(D,c?.props.onEnter??fm),onExited:pd(L,c?.props.onExited??fm)}},rootRef:g,portalRef:M,isTopModal:k,exited:f,hasTransition:x}}function LP(e){return Pe("MuiModal",e)}ke("MuiModal",["root","hidden","backdrop"]);const jP=e=>{const{open:t,exited:n,classes:r}=e;return Ie({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},LP,r)},WP=ne("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ee(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),VP=ne(Fd,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Po=A.forwardRef(function(t,n){const r=Fe({name:"MuiModal",props:t}),{BackdropComponent:i=VP,BackdropProps:s,classes:a,className:c,closeAfterTransition:d=!1,children:p,container:u,component:h,components:m={},componentsProps:y={},disableAutoFocus:g=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:b=!1,disablePortal:x=!1,disableRestoreFocus:E=!1,disableScrollLock:w=!1,hideBackdrop:S=!1,keepMounted:T=!1,onClose:v,onTransitionEnter:k,onTransitionExited:M,open:_,slotProps:z={},slots:F={},theme:C,...I}=r,$={...r,closeAfterTransition:d,disableAutoFocus:g,disableEnforceFocus:f,disableEscapeKeyDown:b,disablePortal:x,disableRestoreFocus:E,disableScrollLock:w,hideBackdrop:S,keepMounted:T},{getRootProps:D,getBackdropProps:L,getTransitionProps:V,portalRef:Y,isTopModal:U,exited:B,hasTransition:O}=zP({...$,rootRef:n}),j={...$,exited:B},H=jP(j),G={};if(p.props.tabIndex===void 0&&(G.tabIndex="-1"),O){const{onEnter:Z,onExited:R}=V();G.onEnter=Z,G.onExited=R}const X={slots:{root:m.Root,backdrop:m.Backdrop,...F},slotProps:{...y,...z}},[te,le]=Be("root",{ref:n,elementType:WP,externalForwardedProps:{...X,...I,component:h},getSlotProps:D,ownerState:j,className:he(c,H?.root,!j.open&&j.exited&&H?.hidden)}),[ce,ae]=Be("backdrop",{ref:s?.ref,elementType:i,externalForwardedProps:X,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:Z=>L({...Z,onClick:R=>{Z?.onClick&&Z.onClick(R)}}),className:he(s?.className,H?.backdrop),ownerState:j});return!T&&!_&&(!O||B)?null:l.jsx(qi,{ref:Y,container:u,disablePortal:x,children:l.jsxs(te,{...le,children:[!S&&i?l.jsx(ce,{...ae}):null,l.jsx(cl,{disableEnforceFocus:f,disableAutoFocus:g,disableRestoreFocus:E,isEnabled:U,open:_,children:A.cloneElement(p,G)})]})})});process.env.NODE_ENV!=="production"&&(Po.propTypes={BackdropComponent:o.elementType,BackdropProps:o.object,children:Yr.isRequired,classes:o.object,className:o.string,closeAfterTransition:o.bool,component:o.elementType,components:o.shape({Backdrop:o.elementType,Root:o.elementType}),componentsProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([ar,o.func]),disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableEscapeKeyDown:o.bool,disablePortal:o.bool,disableRestoreFocus:o.bool,disableScrollLock:o.bool,hideBackdrop:o.bool,keepMounted:o.bool,onClose:o.func,onTransitionEnter:o.func,onTransitionExited:o.func,open:o.bool.isRequired,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function HP(e){return Pe("MuiDialog",e)}const _d=ke("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),$d=A.createContext({});process.env.NODE_ENV!=="production"&&($d.displayName="DialogContext");const UP=ne(Fd,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),RP=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:s}=e,a={root:["root"],container:["container",`scroll${oe(n)}`],paper:["paper",`paperScroll${oe(n)}`,`paperWidth${oe(String(r))}`,i&&"paperFullWidth",s&&"paperFullScreen"]};return Ie(a,HP,t)},qP=ne(Po,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),YP=ne("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${oe(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),GP=ne(bn,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${oe(n.scroll)}`],t[`paperWidth${oe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Ee(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${_d.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${_d.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${_d.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),ko=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialog"}),i=Ln(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":c,"aria-modal":d=!0,BackdropComponent:p,BackdropProps:u,children:h,className:m,disableEscapeKeyDown:y=!1,fullScreen:g=!1,fullWidth:f=!1,maxWidth:b="sm",onClick:x,onClose:E,open:w,PaperComponent:S=bn,PaperProps:T={},scroll:v="paper",slots:k={},slotProps:M={},TransitionComponent:_=sl,transitionDuration:z=s,TransitionProps:F,...C}=r,I={...r,disableEscapeKeyDown:y,fullScreen:g,fullWidth:f,maxWidth:b,scroll:v},$=RP(I),D=A.useRef(),L=ie=>{D.current=ie.target===ie.currentTarget},V=ie=>{x&&x(ie),D.current&&(D.current=null,E&&E(ie,"backdropClick"))},Y=_r(c),U=A.useMemo(()=>({titleId:Y}),[Y]),B={transition:_,...k},O={transition:F,paper:T,backdrop:u,...M},j={slots:B,slotProps:O},[H,G]=Be("root",{elementType:qP,shouldForwardComponentProp:!0,externalForwardedProps:j,ownerState:I,className:he($.root,m),ref:n}),[X,te]=Be("backdrop",{elementType:UP,shouldForwardComponentProp:!0,externalForwardedProps:j,ownerState:I}),[le,ce]=Be("paper",{elementType:GP,shouldForwardComponentProp:!0,externalForwardedProps:j,ownerState:I,className:he($.paper,T.className)}),[ae,Z]=Be("container",{elementType:YP,externalForwardedProps:j,ownerState:I,className:$.container}),[R,q]=Be("transition",{elementType:sl,externalForwardedProps:j,ownerState:I,additionalProps:{appear:!0,in:w,timeout:z,role:"presentation"}});return l.jsx(H,{closeAfterTransition:!0,slots:{backdrop:X},slotProps:{backdrop:{transitionDuration:z,as:p,...te}},disableEscapeKeyDown:y,onClose:E,open:w,onClick:V,...G,...C,children:l.jsx(R,{...q,children:l.jsx(ae,{onMouseDown:L,...Z,children:l.jsx(le,{as:S,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":Y,"aria-modal":d,...ce,children:l.jsx($d.Provider,{value:U,children:h})})})})})});process.env.NODE_ENV!=="production"&&(ko.propTypes={"aria-describedby":o.string,"aria-labelledby":o.string,"aria-modal":o.oneOfType([o.oneOf(["false","true"]),o.bool]),BackdropComponent:o.elementType,BackdropProps:o.object,children:o.node,classes:o.object,className:o.string,disableEscapeKeyDown:o.bool,fullScreen:o.bool,fullWidth:o.bool,maxWidth:o.oneOfType([o.oneOf(["xs","sm","md","lg","xl",!1]),o.string]),onClick:o.func,onClose:o.func,open:o.bool.isRequired,PaperComponent:o.elementType,PaperProps:o.object,scroll:o.oneOf(["body","paper"]),slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),container:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,container:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function KP(e){return Pe("MuiDialogActions",e)}ke("MuiDialogActions",["root","spacing"]);const XP=e=>{const{classes:t,disableSpacing:n}=e;return Ie({root:["root",!n&&"spacing"]},KP,t)},JP=ne("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),zd=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:s=!1,...a}=r,c={...r,disableSpacing:s},d=XP(c);return l.jsx(JP,{className:he(d.root,i),ownerState:c,ref:n,...a})});process.env.NODE_ENV!=="production"&&(zd.propTypes={children:o.node,classes:o.object,className:o.string,disableSpacing:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function QP(e){return Pe("MuiDialogContent",e)}ke("MuiDialogContent",["root","dividers"]);function ZP(e){return Pe("MuiDialogTitle",e)}const ek=ke("MuiDialogTitle",["root"]),tk=e=>{const{classes:t,dividers:n}=e;return Ie({root:["root",n&&"dividers"]},QP,t)},nk=ne("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Ee(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${ek.root} + &`]:{paddingTop:0}}}]}))),Qi=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialogContent"}),{className:i,dividers:s=!1,...a}=r,c={...r,dividers:s},d=tk(c);return l.jsx(nk,{className:he(d.root,i),ownerState:c,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Qi.propTypes={children:o.node,classes:o.object,className:o.string,dividers:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const rk=e=>{const{classes:t}=e;return Ie({root:["root"]},ZP,t)},ok=ne(W,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),Oo=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialogTitle"}),{className:i,id:s,...a}=r,c=r,d=rk(c),{titleId:p=s}=A.useContext($d);return l.jsx(ok,{component:"h2",className:he(d.root,i),ownerState:c,ref:n,variant:"h6",id:s??p,...a})});process.env.NODE_ENV!=="production"&&(Oo.propTypes={children:o.node,classes:o.object,className:o.string,id:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function ik(e){return Pe("MuiDivider",e)}const hm=ke("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),sk=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:s,orientation:a,textAlign:c,variant:d}=e;return Ie({root:["root",t&&"absolute",d,s&&"light",a==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",c==="right"&&a!=="vertical"&&"textAlignRight",c==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},ik,r)},ak=ne("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(Ee(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),lk=ne("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Ee(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),nn=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDivider"}),{absolute:i=!1,children:s,className:a,orientation:c="horizontal",component:d=s||c==="vertical"?"div":"hr",flexItem:p=!1,light:u=!1,role:h=d!=="hr"?"separator":void 0,textAlign:m="center",variant:y="fullWidth",...g}=r,f={...r,absolute:i,component:d,flexItem:p,light:u,orientation:c,role:h,textAlign:m,variant:y},b=sk(f);return l.jsx(ak,{as:d,className:he(b.root,a),role:h,ref:n,ownerState:f,"aria-orientation":h==="separator"&&(d!=="hr"||c==="vertical")?c:void 0,...g,children:s?l.jsx(lk,{className:b.wrapper,ownerState:f,children:s}):null})});nn&&(nn.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(nn.propTypes={absolute:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,flexItem:o.bool,light:o.bool,orientation:o.oneOf(["horizontal","vertical"]),role:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),textAlign:o.oneOf(["center","left","right"]),variant:o.oneOfType([o.oneOf(["fullWidth","inset","middle"]),o.string])});const ck=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:s,hiddenLabel:a,multiline:c}=e,d={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",s==="small"&&`size${oe(s)}`,a&&"hiddenLabel",c&&"multiline"],input:["input"]},p=Ie(d,jA,t);return{...t,...p}},dk=ne(ol,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nl(e,t),!n.disableUnderline&&t.underline]}})(Ee(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${qr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${qr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${qr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${qr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${qr.disabled}, .${qr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${qr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(St()).map(([a])=>({props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:c})=>a.multiline&&c==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),uk=ne(il,{name:"MuiFilledInput",slot:"Input",overridesResolver:rl})(Ee(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),ul=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:s={},componentsProps:a,fullWidth:c=!1,hiddenLabel:d,inputComponent:p="input",multiline:u=!1,slotProps:h,slots:m={},type:y="text",...g}=r,f={...r,disableUnderline:i,fullWidth:c,inputComponent:p,multiline:u,type:y},b=ck(r),x={root:{ownerState:f},input:{ownerState:f}},E=h??a?Vt(x,h??a):x,w=m.root??s.Root??dk,S=m.input??s.Input??uk;return l.jsx(Yi,{slots:{root:w,input:S},slotProps:E,fullWidth:c,inputComponent:p,multiline:u,ref:n,type:y,...g,classes:b})});process.env.NODE_ENV!=="production"&&(ul.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Gt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),ul.muiName="Input";function pk(e){return Pe("MuiFormControl",e)}ke("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const fk=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${oe(n)}`,r&&"fullWidth"]};return Ie(i,pk,t)},hk=ne("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${oe(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Zi=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFormControl"}),{children:i,className:s,color:a="primary",component:c="div",disabled:d=!1,error:p=!1,focused:u,fullWidth:h=!1,hiddenLabel:m=!1,margin:y="none",required:g=!1,size:f="medium",variant:b="outlined",...x}=r,E={...r,color:a,component:c,disabled:d,error:p,fullWidth:h,hiddenLabel:m,margin:y,required:g,size:f,variant:b},w=fk(E),[S,T]=A.useState(()=>{let L=!1;return i&&A.Children.forEach(i,V=>{if(!id(V,["Input","Select"]))return;const Y=id(V,["Select"])?V.props.input:V;Y&&BA(Y.props)&&(L=!0)}),L}),[v,k]=A.useState(()=>{let L=!1;return i&&A.Children.forEach(i,V=>{id(V,["Input","Select"])&&(tl(V.props,!0)||tl(V.props.inputProps,!0))&&(L=!0)}),L}),[M,_]=A.useState(!1);d&&M&&_(!1);const z=u!==void 0&&!d?u:M;let F;const C=A.useRef(!1);process.env.NODE_ENV!=="production"&&(F=()=>(C.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
172
|
-
`)),C.current=!0,()=>{C.current=!1}));const I=A.useCallback(()=>{k(!0)},[]),$=A.useCallback(()=>{k(!1)},[]),D=A.useMemo(()=>({adornedStart:S,setAdornedStart:T,color:a,disabled:d,error:p,filled:v,focused:z,fullWidth:h,hiddenLabel:m,size:f,onBlur:()=>{_(!1)},onFocus:()=>{_(!0)},onEmpty:$,onFilled:I,registerEffect:F,required:g,variant:b}),[S,a,d,p,v,z,h,m,F,$,I,g,f,b]);return l.jsx(el.Provider,{value:D,children:l.jsx(hk,{as:c,ownerState:E,className:he(w.root,s),ref:n,...x,children:i})})});process.env.NODE_ENV!=="production"&&(Zi.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,focused:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,margin:o.oneOf(["dense","none","normal"]),required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function gk(e){return Pe("MuiFormControlLabel",e)}const es=ke("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),mk=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:s}=e,a={root:["root",n&&"disabled",`labelPlacement${oe(r)}`,i&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return Ie(a,gk,t)},yk=ne("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${es.label}`]:t.label},t.root,t[`labelPlacement${oe(n.labelPlacement)}`]]}})(Ee(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${es.disabled}`]:{cursor:"default"},[`& .${es.label}`]:{[`&.${es.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),bk=ne("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Ee(({theme:e})=>({[`&.${es.error}`]:{color:(e.vars||e).palette.error.main}}))),Cn=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFormControlLabel"}),{checked:i,className:s,componentsProps:a={},control:c,disabled:d,disableTypography:p,inputRef:u,label:h,labelPlacement:m="end",name:y,onChange:g,required:f,slots:b={},slotProps:x={},value:E,...w}=r,S=Un(),T=d??c.props.disabled??S?.disabled,v=f??c.props.required,k={disabled:T,required:v};["checked","name","onChange","value","inputRef"].forEach(D=>{typeof c.props[D]>"u"&&typeof r[D]<"u"&&(k[D]=r[D])});const M=wr({props:r,muiFormControl:S,states:["error"]}),_={...r,disabled:T,labelPlacement:m,required:v,error:M.error},z=mk(_),F={slots:b,slotProps:{...a,...x}},[C,I]=Be("typography",{elementType:W,externalForwardedProps:F,ownerState:_});let $=h;return $!=null&&$.type!==W&&!p&&($=l.jsx(C,{component:"span",...I,className:he(z.label,I?.className),children:$})),l.jsxs(yk,{className:he(z.root,s),ownerState:_,ref:n,...w,children:[A.cloneElement(c,k),v?l.jsxs("div",{children:[$,l.jsxs(bk,{ownerState:_,"aria-hidden":!0,className:z.asterisk,children:[" ","*"]})]}):$]})});process.env.NODE_ENV!=="production"&&(Cn.propTypes={checked:o.bool,classes:o.object,className:o.string,componentsProps:o.shape({typography:o.object}),control:o.element.isRequired,disabled:o.bool,disableTypography:o.bool,inputRef:Gt,label:o.node,labelPlacement:o.oneOf(["bottom","end","start","top"]),name:o.string,onChange:o.func,required:o.bool,slotProps:o.shape({typography:o.oneOfType([o.func,o.object])}),slots:o.shape({typography:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function xk(e){return Pe("MuiFormGroup",e)}ke("MuiFormGroup",["root","row","error"]);const vk=e=>{const{classes:t,row:n,error:r}=e;return Ie({root:["root",n&&"row",r&&"error"]},xk,t)},Sk=ne("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),gm=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFormGroup"}),{className:i,row:s=!1,...a}=r,c=Un(),d=wr({props:r,muiFormControl:c,states:["error"]}),p={...r,row:s,error:d.error},u=vk(p);return l.jsx(Sk,{className:he(u.root,i),ownerState:p,ref:n,...a})});process.env.NODE_ENV!=="production"&&(gm.propTypes={children:o.node,classes:o.object,className:o.string,row:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function wk(e){return Pe("MuiFormHelperText",e)}const mm=ke("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ym;const Ck=e=>{const{classes:t,contained:n,size:r,disabled:i,error:s,filled:a,focused:c,required:d}=e,p={root:["root",i&&"disabled",s&&"error",r&&`size${oe(r)}`,n&&"contained",c&&"focused",a&&"filled",d&&"required"]};return Ie(p,wk,t)},Ek=ne("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${oe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Ee(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${mm.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${mm.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),bm=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFormHelperText"}),{children:i,className:s,component:a="p",disabled:c,error:d,filled:p,focused:u,margin:h,required:m,variant:y,...g}=r,f=Un(),b=wr({props:r,muiFormControl:f,states:["variant","size","disabled","error","filled","focused","required"]}),x={...r,component:a,contained:b.variant==="filled"||b.variant==="outlined",variant:b.variant,size:b.size,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required};delete x.ownerState;const E=Ck(x);return l.jsx(Ek,{as:a,className:he(E.root,s),ref:n,...g,ownerState:x,children:i===" "?ym||(ym=l.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):i})});process.env.NODE_ENV!=="production"&&(bm.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["filled","outlined","standard"]),o.string])});function Tk(e){return Pe("MuiFormLabel",e)}const ts=ke("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ak=e=>{const{classes:t,color:n,focused:r,disabled:i,error:s,filled:a,required:c}=e,d={root:["root",`color${oe(n)}`,i&&"disabled",s&&"error",a&&"filled",r&&"focused",c&&"required"],asterisk:["asterisk",s&&"error"]};return Ie(d,Tk,t)},Pk=ne("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Ee(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t},style:{[`&.${ts.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${ts.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ts.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),kk=ne("span",{name:"MuiFormLabel",slot:"Asterisk"})(Ee(({theme:e})=>({[`&.${ts.error}`]:{color:(e.vars||e).palette.error.main}}))),Io=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFormLabel"}),{children:i,className:s,color:a,component:c="label",disabled:d,error:p,filled:u,focused:h,required:m,...y}=r,g=Un(),f=wr({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),b={...r,color:f.color||"primary",component:c,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required},x=Ak(b);return l.jsxs(Pk,{as:c,ownerState:b,className:he(x.root,s),ref:n,...y,children:[i,f.required&&l.jsxs(kk,{ownerState:b,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Io.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Ld(e){return`scale(${e}, ${e**2})`}const Ok={entering:{opacity:1,transform:Ld(1)},entered:{opacity:1,transform:"none"}},jd=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),No=A.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:s,easing:a,in:c,onEnter:d,onEntered:p,onEntering:u,onExit:h,onExited:m,onExiting:y,style:g,timeout:f="auto",TransitionComponent:b=jn,...x}=t,E=jr(),w=A.useRef(),S=Ln(),T=A.useRef(null),v=Pt(T,Rr(s),n),k=D=>L=>{if(D){const V=T.current;L===void 0?D(V):D(V,L)}},M=k(u),_=k((D,L)=>{wg(D);const{duration:V,delay:Y,easing:U}=Ua({style:g,timeout:f,easing:a},{mode:"enter"});let B;f==="auto"?(B=S.transitions.getAutoHeightDuration(D.clientHeight),w.current=B):B=V,D.style.transition=[S.transitions.create("opacity",{duration:B,delay:Y}),S.transitions.create("transform",{duration:jd?B:B*.666,delay:Y,easing:U})].join(","),d&&d(D,L)}),z=k(p),F=k(y),C=k(D=>{const{duration:L,delay:V,easing:Y}=Ua({style:g,timeout:f,easing:a},{mode:"exit"});let U;f==="auto"?(U=S.transitions.getAutoHeightDuration(D.clientHeight),w.current=U):U=L,D.style.transition=[S.transitions.create("opacity",{duration:U,delay:V}),S.transitions.create("transform",{duration:jd?U:U*.666,delay:jd?V:V||U*.333,easing:Y})].join(","),D.style.opacity=0,D.style.transform=Ld(.75),h&&h(D)}),I=k(m),$=D=>{f==="auto"&&E.start(w.current||0,D),r&&r(T.current,D)};return l.jsx(b,{appear:i,in:c,nodeRef:T,onEnter:_,onEntered:z,onEntering:M,onExit:C,onExited:I,onExiting:F,addEndListener:$,timeout:f==="auto"?null:f,...x,children:(D,{ownerState:L,...V})=>A.cloneElement(s,{style:{opacity:0,transform:Ld(.75),visibility:D==="exited"&&!c?"hidden":void 0,...Ok[D],...g,...s.props.style},ref:v,...V})})});process.env.NODE_ENV!=="production"&&(No.propTypes={addEndListener:o.func,appear:o.bool,children:Yr.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])}),No&&(No.muiSupportAuto=!0);const Ik=e=>{const{classes:t,disableUnderline:n}=e,i=Ie({root:["root",!n&&"underline"],input:["input"]},zA,t);return{...t,...i}},Nk=ne(ol,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nl(e,t),!n.disableUnderline&&t.underline]}})(Ee(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Gi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Gi.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Gi.disabled}, .${Gi.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Gi.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(St()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),Mk=ne(il,{name:"MuiInput",slot:"Input",overridesResolver:rl})({}),pl=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:s={},componentsProps:a,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:u,slots:h={},type:m="text",...y}=r,g=Ik(r),b={root:{ownerState:{disableUnderline:i}}},x=u??a?Vt(u??a,b):b,E=h.root??s.Root??Nk,w=h.input??s.Input??Mk;return l.jsx(Yi,{slots:{root:E,input:w},slotProps:x,fullWidth:c,inputComponent:d,multiline:p,ref:n,type:m,...y,classes:g})});process.env.NODE_ENV!=="production"&&(pl.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Gt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),pl.muiName="Input";function Fk(e){return Pe("MuiInputLabel",e)}ke("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Dk=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:s,variant:a,required:c}=e,d={root:["root",n&&"formControl",!s&&"animated",i&&"shrink",r&&r!=="medium"&&`size${oe(r)}`,a],asterisk:[c&&"asterisk"]},p=Ie(d,Fk,t);return{...t,...p}},Bk=ne(Io,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ts.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Ee(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),xm=A.forwardRef(function(t,n){const r=Fe({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:s,shrink:a,variant:c,className:d,...p}=r,u=Un();let h=a;typeof h>"u"&&u&&(h=u.filled||u.focused||u.adornedStart);const m=wr({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),y={...r,disableAnimation:i,formControl:u,shrink:h,size:m.size,variant:m.variant,required:m.required,focused:m.focused},g=Dk(y);return l.jsx(Bk,{"data-shrink":h,ref:n,className:he(g.root,d),...p,ownerState:y,classes:g})});process.env.NODE_ENV!=="production"&&(xm.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),disableAnimation:o.bool,disabled:o.bool,error:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,shrink:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function _k(e){return Pe("MuiLinearProgress",e)}ke("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Wd=4,Vd=mr`
|
|
167
|
+
`))}return null}),children:o.oneOfType([o.node,o.func]),container:o.oneOfType([ar,o.func]),direction:o.oneOf(["ltr","rtl"]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:o.shape({modifiers:o.array,onFirstUpdate:o.func,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:o.oneOf(["absolute","fixed"])}),popperRef:Gt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),transition:o.bool});const MA=ne(Qg,{name:"MuiPopper",slot:"Root"})({}),Md=A.forwardRef(function(t,n){const r=Di(),i=De({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:c,componentsProps:d,container:p,disablePortal:u,keepMounted:h,modifiers:m,open:y,placement:g,popperOptions:f,popperRef:b,transition:x,slots:E,slotProps:w,...S}=i,T=E?.root??c?.Root,v={anchorEl:s,container:p,disablePortal:u,keepMounted:h,modifiers:m,open:y,placement:g,popperOptions:f,popperRef:b,transition:x,...S};return l.jsx(MA,{as:a,direction:r?"rtl":"ltr",slots:{root:T},slotProps:w??d,...v,ref:n})});process.env.NODE_ENV!=="production"&&(Md.propTypes={anchorEl:o.oneOfType([ar,o.object,o.func]),children:o.oneOfType([o.node,o.func]),component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([ar,o.func]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:o.shape({modifiers:o.array,onFirstUpdate:o.func,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:o.oneOf(["absolute","fixed"])}),popperRef:Gt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transition:o.bool});function Za(e){return parseInt(e,10)||0}const FA={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function DA(e){for(const t in e)return!1;return!0}function Zg(e){return DA(e)||e.outerHeightStyle===0&&!e.overflowing}const em=A.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:s=1,style:a,value:c,...d}=t,{current:p}=A.useRef(c!=null),u=A.useRef(null),h=Pt(n,u),m=A.useRef(null),y=A.useRef(null),g=A.useCallback(()=>{const w=u.current,S=y.current;if(!w||!S)return;const v=ir(w).getComputedStyle(w);if(v.width==="0px")return{outerHeightStyle:0,overflowing:!1};S.style.width=v.width,S.value=w.value||t.placeholder||"x",S.value.slice(-1)===`
|
|
168
|
+
`&&(S.value+=" ");const k=v.boxSizing,M=Za(v.paddingBottom)+Za(v.paddingTop),B=Za(v.borderBottomWidth)+Za(v.borderTopWidth),z=S.scrollHeight;S.value="x";const $=S.scrollHeight;let C=z;s&&(C=Math.max(Number(s)*$,C)),i&&(C=Math.min(Number(i)*$,C)),C=Math.max(C,$);const I=C+(k==="border-box"?M+B:0),_=Math.abs(C-z)<=1;return{outerHeightStyle:I,overflowing:_}},[i,s,t.placeholder]),f=Yt(()=>{const w=u.current,S=g();if(!w||!S||Zg(S))return!1;const T=S.outerHeightStyle;return m.current!=null&&m.current!==T}),b=A.useCallback(()=>{const w=u.current,S=g();if(!w||!S||Zg(S))return;const T=S.outerHeightStyle;m.current!==T&&(m.current=T,w.style.height=`${T}px`),w.style.overflow=S.overflowing?"hidden":""},[g]),x=A.useRef(-1);yn(()=>{const w=ug(b),S=u?.current;if(!S)return;const T=ir(S);T.addEventListener("resize",w);let v;return typeof ResizeObserver<"u"&&(v=new ResizeObserver(()=>{f()&&(v.unobserve(S),cancelAnimationFrame(x.current),b(),x.current=requestAnimationFrame(()=>{v.observe(S)}))}),v.observe(S)),()=>{w.clear(),cancelAnimationFrame(x.current),T.removeEventListener("resize",w),v&&v.disconnect()}},[g,b,f]),yn(()=>{b()});const E=w=>{p||b();const S=w.target,T=S.value.length,v=S.value.endsWith(`
|
|
169
|
+
`),k=S.selectionStart===T;v&&k&&S.setSelectionRange(T,T),r&&r(w)};return l.jsxs(A.Fragment,{children:[l.jsx("textarea",{value:c,onChange:E,ref:h,rows:s,style:a,...d}),l.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...FA.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(em.propTypes={className:o.string,maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),onChange:o.func,placeholder:o.string,style:o.object,value:o.oneOfType([o.arrayOf(o.string),o.number,o.string])});function wr({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const el=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(el.displayName="FormControlContext");function Un(){return A.useContext(el)}function tm(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function tl(e,t=!1){return e&&(tm(e.value)&&e.value!==""||t&&tm(e.defaultValue)&&e.defaultValue!=="")}function BA(e){return e.startAdornment}function _A(e){return Oe("MuiInputBase",e)}const Ao=Ie("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var nm;const nl=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ie(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},rl=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},$A=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:s,focused:a,formControl:c,fullWidth:d,hiddenLabel:p,multiline:u,readOnly:h,size:m,startAdornment:y,type:g}=e,f={root:["root",`color${ie(n)}`,r&&"disabled",i&&"error",d&&"fullWidth",a&&"focused",c&&"formControl",m&&m!=="medium"&&`size${ie(m)}`,u&&"multiline",y&&"adornedStart",s&&"adornedEnd",p&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",u&&"inputMultiline",m==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",y&&"inputAdornedStart",s&&"inputAdornedEnd",h&&"readOnly"]};return Ne(f,_A,t)},ol=ne("div",{name:"MuiInputBase",slot:"Root",overridesResolver:nl})(Ae(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ao.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),il=ne("input",{name:"MuiInputBase",slot:"Input",overridesResolver:rl})(Ae(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ao.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Ao.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),rm=yE({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Yi=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:a,className:c,color:d,components:p={},componentsProps:u={},defaultValue:h,disabled:m,disableInjectingGlobalStyles:y,endAdornment:g,error:f,fullWidth:b=!1,id:x,inputComponent:E="input",inputProps:w={},inputRef:S,margin:T,maxRows:v,minRows:k,multiline:M=!1,name:B,onBlur:z,onChange:$,onClick:C,onFocus:I,onKeyDown:_,onKeyUp:F,placeholder:j,readOnly:V,renderSuffix:R,rows:U,size:D,slotProps:O={},slots:L={},startAdornment:H,type:Y="text",value:X,...te}=r,ce=w.value!=null?w.value:X,{current:de}=A.useRef(ce!=null),ae=A.useRef(),J=A.useCallback(me=>{process.env.NODE_ENV!=="production"&&me&&me.nodeName!=="INPUT"&&!me.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
170
|
+
`))},[]),oe=Pt(ae,S,w.ref,J),[G,pe]=A.useState(!1),ee=Un();process.env.NODE_ENV!=="production"&&A.useEffect(()=>{if(ee)return ee.registerEffect()},[ee]);const K=wr({props:r,muiFormControl:ee,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=ee?ee.focused:G,A.useEffect(()=>{!ee&&m&&G&&(pe(!1),z&&z())},[ee,m,G,z]);const q=ee&&ee.onFilled,he=ee&&ee.onEmpty,ue=A.useCallback(me=>{tl(me)?q&&q():he&&he()},[q,he]);yn(()=>{de&&ue({value:ce})},[ce,ue,de]);const Ee=me=>{I&&I(me),w.onFocus&&w.onFocus(me),ee&&ee.onFocus?ee.onFocus(me):pe(!0)},ke=me=>{z&&z(me),w.onBlur&&w.onBlur(me),ee&&ee.onBlur?ee.onBlur(me):pe(!1)},ve=(me,...Re)=>{if(!de){const ze=me.target||ae.current;if(ze==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":Fn(1));ue({value:ze.value})}w.onChange&&w.onChange(me,...Re),$&&$(me,...Re)};A.useEffect(()=>{ue(ae.current)},[]);const le=me=>{ae.current&&me.currentTarget===me.target&&ae.current.focus(),C&&C(me)};let qe=E,He=w;M&&qe==="input"&&(U?(process.env.NODE_ENV!=="production"&&(k||v)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),He={type:void 0,minRows:U,maxRows:U,...He}):He={type:void 0,maxRows:v,minRows:k,...He},qe=em);const fe=me=>{ue(me.animationName==="mui-auto-fill-cancel"?ae.current:{value:"x"})};A.useEffect(()=>{ee&&ee.setAdornedStart(!!H)},[ee,H]);const re={...r,color:K.color||"primary",disabled:K.disabled,endAdornment:g,error:K.error,focused:K.focused,formControl:ee,fullWidth:b,hiddenLabel:K.hiddenLabel,multiline:M,size:K.size,startAdornment:H,type:Y},xe=$A(re),Se=L.root||p.Root||ol,we=O.root||u.root||{},ye=L.input||p.Input||il;return He={...He,...O.input??u.input},l.jsxs(A.Fragment,{children:[!y&&typeof rm=="function"&&(nm||(nm=l.jsx(rm,{}))),l.jsxs(Se,{...we,ref:n,onClick:le,...te,...!vr(Se)&&{ownerState:{...re,...we.ownerState}},className:ge(xe.root,we.className,c,V&&"MuiInputBase-readOnly"),children:[H,l.jsx(el.Provider,{value:null,children:l.jsx(ye,{"aria-invalid":K.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:h,disabled:K.disabled,id:x,onAnimationStart:fe,name:B,placeholder:j,readOnly:V,required:K.required,rows:U,value:ce,onKeyDown:_,onKeyUp:F,type:Y,...He,...!vr(ye)&&{as:qe,ownerState:{...re,...He.ownerState}},ref:oe,className:ge(xe.input,He.className,V&&"MuiInputBase-readOnly"),onBlur:ke,onChange:ve,onFocus:Ee})}),g,R?R({...K,startAdornment:H}):null]})]})});process.env.NODE_ENV!=="production"&&(Yi.propTypes={"aria-describedby":o.string,autoComplete:o.string,autoFocus:o.bool,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableInjectingGlobalStyles:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:bd,inputProps:o.object,inputRef:Gt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClick:o.func,onFocus:o.func,onInvalid:o.func,onKeyDown:o.func,onKeyUp:o.func,placeholder:o.string,readOnly:o.bool,renderSuffix:o.func,required:o.bool,rows:o.oneOfType([o.number,o.string]),size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});function zA(e){return Oe("MuiInput",e)}const Gi={...Ao,...Ie("MuiInput",["root","underline","input"])};function LA(e){return Oe("MuiOutlinedInput",e)}const Rn={...Ao,...Ie("MuiOutlinedInput",["root","notchedOutline","input"])};function jA(e){return Oe("MuiFilledInput",e)}const qr={...Ao,...Ie("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},WA=yt(l.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),VA=yt(l.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function HA(e){return Oe("MuiAvatar",e)}Ie("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const UA=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Ne({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},HA,t)},RA=ne("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(Ae(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),qA=ne("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),YA=ne(VA,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function GA({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,s]=A.useState(!1);return A.useEffect(()=>{if(!n&&!r)return;s(!1);let a=!0;const c=new Image;return c.onload=()=>{a&&s("loaded")},c.onerror=()=>{a&&s("error")},c.crossOrigin=e,c.referrerPolicy=t,c.src=n,r&&(c.srcset=r),()=>{a=!1}},[e,t,n,r]),i}const cr=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiAvatar"}),{alt:i,children:s,className:a,component:c="div",slots:d={},slotProps:p={},imgProps:u,sizes:h,src:m,srcSet:y,variant:g="circular",...f}=r;let b=null;const x={...r,component:c,variant:g},E=GA({...u,...typeof p.img=="function"?p.img(x):p.img,src:m,srcSet:y}),w=m||y,S=w&&E!=="error";x.colorDefault=!S,delete x.ownerState;const T=UA(x),[v,k]=$e("root",{ref:n,className:ge(T.root,a),elementType:RA,externalForwardedProps:{slots:d,slotProps:p,component:c,...f},ownerState:x}),[M,B]=$e("img",{className:T.img,elementType:qA,externalForwardedProps:{slots:d,slotProps:{img:{...u,...p.img}}},additionalProps:{alt:i,src:m,srcSet:y,sizes:h},ownerState:x}),[z,$]=$e("fallback",{className:T.fallback,elementType:YA,externalForwardedProps:{slots:d,slotProps:p},shouldForwardComponentProp:!0,ownerState:x});return S?b=l.jsx(M,{...B}):s||s===0?b=s:w&&i?b=i[0]:b=l.jsx(z,{...$}),l.jsx(v,{...k,children:b})});process.env.NODE_ENV!=="production"&&(cr.propTypes={alt:o.string,children:o.node,classes:o.object,className:o.string,component:o.elementType,imgProps:o.object,sizes:o.string,slotProps:o.shape({fallback:o.oneOfType([o.func,o.object]),img:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({fallback:o.elementType,img:o.elementType,root:o.elementType}),src:o.string,srcSet:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["circular","rounded","square"]),o.string])});function KA(e){const{prototype:t={}}=e;return!!t.isReactComponent}function om(e,t,n,r,i){const s=e[t],a=i||t;if(s==null||typeof window>"u")return null;let c;const d=s.type;return typeof d=="function"&&!KA(d)&&(c="Did you accidentally use a plain function component for an element instead?"),c!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Yr=kn(o.element,om);Yr.isRequired=kn(o.element.isRequired,om);const XA={entering:{opacity:1},entered:{opacity:1}},sl=A.forwardRef(function(t,n){const r=Ln(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:c,easing:d,in:p,onEnter:u,onEntered:h,onEntering:m,onExit:y,onExited:g,onExiting:f,style:b,timeout:x=i,TransitionComponent:E=jn,...w}=t,S=A.useRef(null),T=Pt(S,Rr(c),n),v=_=>F=>{if(_){const j=S.current;F===void 0?_(j):_(j,F)}},k=v(m),M=v((_,F)=>{wg(_);const j=Ua({style:b,timeout:x,easing:d},{mode:"enter"});_.style.webkitTransition=r.transitions.create("opacity",j),_.style.transition=r.transitions.create("opacity",j),u&&u(_,F)}),B=v(h),z=v(f),$=v(_=>{const F=Ua({style:b,timeout:x,easing:d},{mode:"exit"});_.style.webkitTransition=r.transitions.create("opacity",F),_.style.transition=r.transitions.create("opacity",F),y&&y(_)}),C=v(g),I=_=>{s&&s(S.current,_)};return l.jsx(E,{appear:a,in:p,nodeRef:S,onEnter:M,onEntered:B,onEntering:k,onExit:$,onExited:C,onExiting:z,addEndListener:I,timeout:x,...w,children:(_,{ownerState:F,...j})=>A.cloneElement(c,{style:{opacity:0,visibility:_==="exited"&&!p?"hidden":void 0,...XA[_],...b,...c.props.style},ref:T,...j})})});process.env.NODE_ENV!=="production"&&(sl.propTypes={addEndListener:o.func,appear:o.bool,children:Yr.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});function JA(e){return Oe("MuiBackdrop",e)}Ie("MuiBackdrop",["root","invisible"]);const QA=e=>{const{classes:t,invisible:n}=e;return Ne({root:["root",n&&"invisible"]},JA,t)},ZA=ne("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Fd=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiBackdrop"}),{children:i,className:s,component:a="div",invisible:c=!1,open:d,components:p={},componentsProps:u={},slotProps:h={},slots:m={},TransitionComponent:y,transitionDuration:g,...f}=r,b={...r,component:a,invisible:c},x=QA(b),E={transition:y,root:p.Root,...m},w={...u,...h},S={component:a,slots:E,slotProps:w},[T,v]=$e("root",{elementType:ZA,externalForwardedProps:S,className:ge(x.root,s),ownerState:b}),[k,M]=$e("transition",{elementType:sl,externalForwardedProps:S,ownerState:b});return l.jsx(k,{in:d,timeout:g,...f,...M,children:l.jsx(T,{"aria-hidden":!0,...v,classes:x,ref:n,children:i})})});process.env.NODE_ENV!=="production"&&(Fd.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.object}),invisible:o.bool,open:o.bool.isRequired,slotProps:o.shape({root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});const eP=Ie("MuiBox",["root"]),tP=cg(),P=sC({themeId:Si,defaultTheme:tP,defaultClassName:eP.root,generateClassName:Fh.generate});process.env.NODE_ENV!=="production"&&(P.propTypes={children:o.node,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function nP(e){return Oe("MuiButton",e)}const Gr=Ie("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),im=A.createContext({});process.env.NODE_ENV!=="production"&&(im.displayName="ButtonGroupContext");const sm=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(sm.displayName="ButtonGroupButtonContext");const rP=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:s,loading:a,loadingPosition:c,classes:d}=e,p={root:["root",a&&"loading",s,`${s}${ie(t)}`,`size${ie(i)}`,`${s}Size${ie(i)}`,`color${ie(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${ie(c)}`],startIcon:["icon","startIcon",`iconSize${ie(i)}`],endIcon:["icon","endIcon",`iconSize${ie(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=Ne(p,nP,d);return{...d,...u}},am=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],oP=ne(zi,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ie(n.color)}`],t[`size${ie(n.size)}`],t[`${n.variant}Size${ie(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Ae(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Gr.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Gr.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Gr.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Gr.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(St()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Gr.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Gr.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Gr.loading}`]:{color:"transparent"}}}]}})),iP=ne("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${ie(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...am]})),sP=ne("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${ie(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...am]})),aP=ne("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),lm=ne("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Ze=A.forwardRef(function(t,n){const r=A.useContext(im),i=A.useContext(sm),s=Mi(r,t),a=De({props:s,name:"MuiButton"}),{children:c,color:d="primary",component:p="button",className:u,disabled:h=!1,disableElevation:m=!1,disableFocusRipple:y=!1,endIcon:g,focusVisibleClassName:f,fullWidth:b=!1,id:x,loading:E=null,loadingIndicator:w,loadingPosition:S="center",size:T="medium",startIcon:v,type:k,variant:M="text",...B}=a,z=_r(x),$=w??l.jsx(Vr,{"aria-labelledby":z,color:"inherit",size:16}),C={...a,color:d,component:p,disabled:h,disableElevation:m,disableFocusRipple:y,fullWidth:b,loading:E,loadingIndicator:$,loadingPosition:S,size:T,type:k,variant:M},I=rP(C),_=(v||E&&S==="start")&&l.jsx(iP,{className:I.startIcon,ownerState:C,children:v||l.jsx(lm,{className:I.loadingIconPlaceholder,ownerState:C})}),F=(g||E&&S==="end")&&l.jsx(sP,{className:I.endIcon,ownerState:C,children:g||l.jsx(lm,{className:I.loadingIconPlaceholder,ownerState:C})}),j=i||"",V=typeof E=="boolean"?l.jsx("span",{className:I.loadingWrapper,style:{display:"contents"},children:E&&l.jsx(aP,{className:I.loadingIndicator,ownerState:C,children:$})}):null;return l.jsxs(oP,{ownerState:C,className:ge(r.className,I.root,u,j),component:p,disabled:h||E,focusRipple:!y,focusVisibleClassName:ge(I.focusVisible,f),ref:n,type:k,id:E?z:x,...B,classes:I,children:[_,S!=="end"&&V,c,S==="end"&&V,F]})});process.env.NODE_ENV!=="production"&&(Ze.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","success","error","info","warning"]),o.string]),component:o.elementType,disabled:o.bool,disableElevation:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,endIcon:o.node,focusVisibleClassName:o.string,fullWidth:o.bool,href:o.string,id:o.string,loading:o.bool,loadingIndicator:o.node,loadingPosition:o.oneOf(["center","end","start"]),size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),startIcon:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string]),variant:o.oneOfType([o.oneOf(["contained","outlined","text"]),o.string])});function lP(e){return Oe("MuiCard",e)}Ie("MuiCard",["root"]);const cP=e=>{const{classes:t}=e;return Ne({root:["root"]},lP,t)},dP=ne(bn,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),Ki=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiCard"}),{className:i,raised:s=!1,...a}=r,c={...r,raised:s},d=cP(c);return l.jsx(dP,{className:ge(d.root,i),elevation:s?8:void 0,ref:n,ownerState:c,...a})});process.env.NODE_ENV!=="production"&&(Ki.propTypes={children:o.node,classes:o.object,className:o.string,raised:kn(o.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function uP(e){return Oe("PrivateSwitchBase",e)}Ie("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const pP=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,s={root:["root",n&&"checked",r&&"disabled",i&&`edge${ie(i)}`],input:["input"]};return Ne(s,uP,t)},fP=ne(zi,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),hP=ne("input",{name:"MuiSwitchBase",shouldForwardProp:Ht})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),al=A.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:s,defaultChecked:a,disabled:c,disableFocusRipple:d=!1,edge:p=!1,icon:u,id:h,inputProps:m,inputRef:y,name:g,onBlur:f,onChange:b,onFocus:x,readOnly:E,required:w=!1,tabIndex:S,type:T,value:v,slots:k={},slotProps:M={},...B}=t,[z,$]=bo({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),C=Un(),I=X=>{x&&x(X),C&&C.onFocus&&C.onFocus(X)},_=X=>{f&&f(X),C&&C.onBlur&&C.onBlur(X)},F=X=>{if(X.nativeEvent.defaultPrevented)return;const te=X.target.checked;$(te),b&&b(X,te)};let j=c;C&&typeof j>"u"&&(j=C.disabled);const V=T==="checkbox"||T==="radio",R={...t,checked:z,disabled:j,disableFocusRipple:d,edge:p},U=pP(R),D={slots:k,slotProps:{input:m,...M}},[O,L]=$e("root",{ref:n,elementType:fP,className:U.root,shouldForwardComponentProp:!0,externalForwardedProps:{...D,component:"span",...B},getSlotProps:X=>({...X,onFocus:te=>{X.onFocus?.(te),I(te)},onBlur:te=>{X.onBlur?.(te),_(te)}}),ownerState:R,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:j,role:void 0,tabIndex:null}}),[H,Y]=$e("input",{ref:y,elementType:hP,className:U.input,externalForwardedProps:D,getSlotProps:X=>({...X,onChange:te=>{X.onChange?.(te),F(te)}}),ownerState:R,additionalProps:{autoFocus:r,checked:i,defaultChecked:a,disabled:j,id:V?h:void 0,name:g,readOnly:E,required:w,tabIndex:S,type:T,...T==="checkbox"&&v===void 0?{}:{value:v}}});return l.jsxs(O,{...L,children:[l.jsx(H,{...Y}),z?s:u]})});process.env.NODE_ENV!=="production"&&(al.propTypes={autoFocus:o.bool,checked:o.bool,checkedIcon:o.node.isRequired,classes:o.object,className:o.string,defaultChecked:o.bool,disabled:o.bool,disableFocusRipple:o.bool,edge:o.oneOf(["end","start",!1]),icon:o.node.isRequired,id:o.string,inputProps:o.object,inputRef:Gt,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,readOnly:o.bool,required:o.bool,slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.string.isRequired,value:o.any});const gP=yt(l.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),mP=yt(l.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),yP=yt(l.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function bP(e){return Oe("MuiCheckbox",e)}const Dd=Ie("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),xP=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,s={root:["root",n&&"indeterminate",`color${ie(r)}`,`size${ie(i)}`]},a=Ne(s,bP,t);return{...t,...a}},vP=ne(al,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ie(n.size)}`],n.color!=="default"&&t[`color${ie(n.color)}`]]}})(Ae(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t},style:{[`&.${Dd.checked}, &.${Dd.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Dd.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),SP=l.jsx(mP,{}),wP=l.jsx(gP,{}),CP=l.jsx(yP,{}),Nt=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiCheckbox"}),{checkedIcon:i=SP,color:s="primary",icon:a=wP,indeterminate:c=!1,indeterminateIcon:d=CP,inputProps:p,size:u="medium",disableRipple:h=!1,className:m,slots:y={},slotProps:g={},...f}=r,b=c?d:a,x=c?d:i,E={...r,disableRipple:h,color:s,indeterminate:c,size:u},w=xP(E),S=g.input??p,[T,v]=$e("root",{ref:n,elementType:vP,className:ge(w.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:g,...f},ownerState:E,additionalProps:{type:"checkbox",icon:A.cloneElement(b,{fontSize:b.props.fontSize??u}),checkedIcon:A.cloneElement(x,{fontSize:x.props.fontSize??u}),disableRipple:h,slots:y,slotProps:{input:fg(typeof S=="function"?S(E):S,{"data-indeterminate":c})}}});return l.jsx(T,{...v,classes:w})});process.env.NODE_ENV!=="production"&&(Nt.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,indeterminate:o.bool,indeterminateIcon:o.node,inputProps:o.object,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function cm(e){return e.substring(2).toLowerCase()}function EP(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function ll(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:s="onTouchEnd"}=e,a=A.useRef(!1),c=A.useRef(null),d=A.useRef(!1),p=A.useRef(!1);A.useEffect(()=>(setTimeout(()=>{d.current=!0},0),()=>{d.current=!1}),[]);const u=Pt(Rr(t),c),h=Yt(g=>{const f=p.current;p.current=!1;const b=It(c.current);if(!d.current||!c.current||"clientX"in g&&EP(g,b))return;if(a.current){a.current=!1;return}let x;g.composedPath?x=g.composedPath().includes(c.current):x=!b.documentElement.contains(g.target)||c.current.contains(g.target),!x&&(n||!f)&&i(g)}),m=g=>f=>{p.current=!0;const b=t.props[g];b&&b(f)},y={ref:u};return s!==!1&&(y[s]=m(s)),A.useEffect(()=>{if(s!==!1){const g=cm(s),f=It(c.current),b=()=>{a.current=!0};return f.addEventListener(g,h),f.addEventListener("touchmove",b),()=>{f.removeEventListener(g,h),f.removeEventListener("touchmove",b)}}},[h,s]),r!==!1&&(y[r]=m(r)),A.useEffect(()=>{if(r!==!1){const g=cm(r),f=It(c.current);return f.addEventListener(g,h),()=>{f.removeEventListener(g,h)}}},[h,r]),A.cloneElement(t,y)}process.env.NODE_ENV!=="production"&&(ll.propTypes={children:Yr.isRequired,disableReactTree:o.bool,mouseEvent:o.oneOf(["onClick","onMouseDown","onMouseUp","onPointerDown","onPointerUp",!1]),onClickAway:o.func.isRequired,touchEvent:o.oneOf(["onTouchEnd","onTouchStart",!1])}),process.env.NODE_ENV!=="production"&&(ll.propTypes=rd(ll.propTypes));const Ut=zC({createStyledComponent:ne("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ie(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>De({props:e,name:"MuiContainer"})});process.env.NODE_ENV!=="production"&&(Ut.propTypes={children:o.node,classes:o.object,component:o.elementType,disableGutters:o.bool,fixed:o.bool,maxWidth:o.oneOfType([o.oneOf(["xs","sm","md","lg","xl",!1]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function dm(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function TP(e){const t=It(e);return t.body===e?ir(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Xi(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function um(e){return parseInt(ir(e).getComputedStyle(e).paddingRight,10)||0}function AP(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function pm(e,t,n,r,i){const s=[t,n,...r];[].forEach.call(e.children,a=>{const c=!s.includes(a),d=!AP(a);c&&d&&Xi(a,i)})}function Bd(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function PP(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(TP(r)){const a=dm(ir(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${um(r)+a}px`;const c=It(r).querySelectorAll(".mui-fixed");[].forEach.call(c,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${um(d)+a}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=It(r).body;else{const a=r.parentElement,c=ir(r);s=a?.nodeName==="HTML"&&c.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:a,property:c})=>{s?a.style.setProperty(c,s):a.style.removeProperty(c)})}}function kP(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class OP{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Xi(t.modalRef,!1);const i=kP(n);pm(n,t.mount,t.modalRef,i,!0);const s=Bd(this.containers,a=>a.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=Bd(this.containers,s=>s.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=PP(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=Bd(this.containers,a=>a.modals.includes(t)),s=this.containers[i];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&Xi(t.modalRef,n),pm(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=s.modals[s.modals.length-1];a.modalRef&&Xi(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Ji(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const IP=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function NP(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function MP(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function FP(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||MP(e))}function DP(e){const t=[],n=[];return Array.from(e.querySelectorAll(IP)).forEach((r,i)=>{const s=NP(r);s===-1||!FP(r)||(s===0?t.push(r):n.push({documentOrder:i,tabIndex:s,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function BP(){return!0}function cl(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:s=DP,isEnabled:a=BP,open:c}=e,d=A.useRef(!1),p=A.useRef(null),u=A.useRef(null),h=A.useRef(null),m=A.useRef(null),y=A.useRef(!1),g=A.useRef(null),f=Pt(Rr(t),g),b=A.useRef(null);A.useEffect(()=>{!c||!g.current||(y.current=!n)},[n,c]),A.useEffect(()=>{if(!c||!g.current)return;const w=It(g.current),S=Ji(w);return g.current.contains(S)||(g.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
171
|
+
`)),g.current.setAttribute("tabIndex","-1")),y.current&&g.current.focus()),()=>{i||(h.current&&h.current.focus&&(d.current=!0,h.current.focus()),h.current=null)}},[c]),A.useEffect(()=>{if(!c||!g.current)return;const w=It(g.current),S=Ji(w),T=M=>{b.current=M,!(r||!a()||M.key!=="Tab")&&S===g.current&&M.shiftKey&&(d.current=!0,u.current&&u.current.focus())},v=()=>{const M=g.current;if(M===null)return;const B=Ji(w);if(!w.hasFocus()||!a()||d.current){d.current=!1;return}if(M.contains(B)||r&&B!==p.current&&B!==u.current)return;if(B!==m.current)m.current=null;else if(m.current!==null)return;if(!y.current)return;let z=[];if((B===p.current||B===u.current)&&(z=s(g.current)),z.length>0){const $=!!(b.current?.shiftKey&&b.current?.key==="Tab"),C=z[0],I=z[z.length-1];typeof C!="string"&&typeof I!="string"&&($?I.focus():C.focus())}else M.focus()};w.addEventListener("focusin",v),w.addEventListener("keydown",T,!0);const k=setInterval(()=>{const M=Ji(w);M&&M.tagName==="BODY"&&v()},50);return()=>{clearInterval(k),w.removeEventListener("focusin",v),w.removeEventListener("keydown",T,!0)}},[n,r,i,a,c,s]);const x=w=>{h.current===null&&(h.current=w.relatedTarget),y.current=!0,m.current=w.target;const S=t.props.onFocus;S&&S(w)},E=w=>{h.current===null&&(h.current=w.relatedTarget),y.current=!0};return l.jsxs(A.Fragment,{children:[l.jsx("div",{tabIndex:c?0:-1,onFocus:E,ref:p,"data-testid":"sentinelStart"}),A.cloneElement(t,{ref:f,onFocus:x}),l.jsx("div",{tabIndex:c?0:-1,onFocus:E,ref:u,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(cl.propTypes={children:Yr,disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableRestoreFocus:o.bool,getTabbable:o.func,isEnabled:o.func,open:o.bool.isRequired}),process.env.NODE_ENV!=="production"&&(cl.propTypes=rd(cl.propTypes));function _P(e){return typeof e=="function"?e():e}function $P(e){return e?e.props.hasOwnProperty("in"):!1}const fm=()=>{},dl=new OP;function zP(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:a,children:c,onClose:d,open:p,rootRef:u}=e,h=A.useRef({}),m=A.useRef(null),y=A.useRef(null),g=Pt(y,u),[f,b]=A.useState(!p),x=$P(c);let E=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(E=!1);const w=()=>It(m.current),S=()=>(h.current.modalRef=y.current,h.current.mount=m.current,h.current),T=()=>{dl.mount(S(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},v=Yt(()=>{const F=_P(t)||w().body;dl.add(S(),F),y.current&&T()}),k=()=>dl.isTopModal(S()),M=Yt(F=>{m.current=F,F&&(p&&k()?T():y.current&&Xi(y.current,E))}),B=A.useCallback(()=>{dl.remove(S(),E)},[E]);A.useEffect(()=>()=>{B()},[B]),A.useEffect(()=>{p?v():(!x||!i)&&B()},[p,B,x,i,v]);const z=F=>j=>{F.onKeyDown?.(j),!(j.key!=="Escape"||j.which===229||!k())&&(n||(j.stopPropagation(),d&&d(j,"escapeKeyDown")))},$=F=>j=>{F.onClick?.(j),j.target===j.currentTarget&&d&&d(j,"backdropClick")};return{getRootProps:(F={})=>{const j=Wr(e);delete j.onTransitionEnter,delete j.onTransitionExited;const V={...j,...F};return{role:"presentation",...V,onKeyDown:z(V),ref:g}},getBackdropProps:(F={})=>{const j=F;return{"aria-hidden":!0,...j,onClick:$(j),open:p}},getTransitionProps:()=>{const F=()=>{b(!1),s&&s()},j=()=>{b(!0),a&&a(),i&&B()};return{onEnter:pd(F,c?.props.onEnter??fm),onExited:pd(j,c?.props.onExited??fm)}},rootRef:g,portalRef:M,isTopModal:k,exited:f,hasTransition:x}}function LP(e){return Oe("MuiModal",e)}Ie("MuiModal",["root","hidden","backdrop"]);const jP=e=>{const{open:t,exited:n,classes:r}=e;return Ne({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},LP,r)},WP=ne("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ae(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),VP=ne(Fd,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Po=A.forwardRef(function(t,n){const r=De({name:"MuiModal",props:t}),{BackdropComponent:i=VP,BackdropProps:s,classes:a,className:c,closeAfterTransition:d=!1,children:p,container:u,component:h,components:m={},componentsProps:y={},disableAutoFocus:g=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:b=!1,disablePortal:x=!1,disableRestoreFocus:E=!1,disableScrollLock:w=!1,hideBackdrop:S=!1,keepMounted:T=!1,onClose:v,onTransitionEnter:k,onTransitionExited:M,open:B,slotProps:z={},slots:$={},theme:C,...I}=r,_={...r,closeAfterTransition:d,disableAutoFocus:g,disableEnforceFocus:f,disableEscapeKeyDown:b,disablePortal:x,disableRestoreFocus:E,disableScrollLock:w,hideBackdrop:S,keepMounted:T},{getRootProps:F,getBackdropProps:j,getTransitionProps:V,portalRef:R,isTopModal:U,exited:D,hasTransition:O}=zP({..._,rootRef:n}),L={..._,exited:D},H=jP(L),Y={};if(p.props.tabIndex===void 0&&(Y.tabIndex="-1"),O){const{onEnter:J,onExited:oe}=V();Y.onEnter=J,Y.onExited=oe}const X={slots:{root:m.Root,backdrop:m.Backdrop,...$},slotProps:{...y,...z}},[te,ce]=$e("root",{ref:n,elementType:WP,externalForwardedProps:{...X,...I,component:h},getSlotProps:F,ownerState:L,className:ge(c,H?.root,!L.open&&L.exited&&H?.hidden)}),[de,ae]=$e("backdrop",{ref:s?.ref,elementType:i,externalForwardedProps:X,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:J=>j({...J,onClick:oe=>{J?.onClick&&J.onClick(oe)}}),className:ge(s?.className,H?.backdrop),ownerState:L});return!T&&!B&&(!O||D)?null:l.jsx(qi,{ref:R,container:u,disablePortal:x,children:l.jsxs(te,{...ce,children:[!S&&i?l.jsx(de,{...ae}):null,l.jsx(cl,{disableEnforceFocus:f,disableAutoFocus:g,disableRestoreFocus:E,isEnabled:U,open:B,children:A.cloneElement(p,Y)})]})})});process.env.NODE_ENV!=="production"&&(Po.propTypes={BackdropComponent:o.elementType,BackdropProps:o.object,children:Yr.isRequired,classes:o.object,className:o.string,closeAfterTransition:o.bool,component:o.elementType,components:o.shape({Backdrop:o.elementType,Root:o.elementType}),componentsProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([ar,o.func]),disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableEscapeKeyDown:o.bool,disablePortal:o.bool,disableRestoreFocus:o.bool,disableScrollLock:o.bool,hideBackdrop:o.bool,keepMounted:o.bool,onClose:o.func,onTransitionEnter:o.func,onTransitionExited:o.func,open:o.bool.isRequired,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function HP(e){return Oe("MuiDialog",e)}const _d=Ie("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),$d=A.createContext({});process.env.NODE_ENV!=="production"&&($d.displayName="DialogContext");const UP=ne(Fd,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),RP=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:s}=e,a={root:["root"],container:["container",`scroll${ie(n)}`],paper:["paper",`paperScroll${ie(n)}`,`paperWidth${ie(String(r))}`,i&&"paperFullWidth",s&&"paperFullScreen"]};return Ne(a,HP,t)},qP=ne(Po,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),YP=ne("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ie(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),GP=ne(bn,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ie(n.scroll)}`],t[`paperWidth${ie(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Ae(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${_d.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${_d.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${_d.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),ko=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiDialog"}),i=Ln(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":c,"aria-modal":d=!0,BackdropComponent:p,BackdropProps:u,children:h,className:m,disableEscapeKeyDown:y=!1,fullScreen:g=!1,fullWidth:f=!1,maxWidth:b="sm",onClick:x,onClose:E,open:w,PaperComponent:S=bn,PaperProps:T={},scroll:v="paper",slots:k={},slotProps:M={},TransitionComponent:B=sl,transitionDuration:z=s,TransitionProps:$,...C}=r,I={...r,disableEscapeKeyDown:y,fullScreen:g,fullWidth:f,maxWidth:b,scroll:v},_=RP(I),F=A.useRef(),j=pe=>{F.current=pe.target===pe.currentTarget},V=pe=>{x&&x(pe),F.current&&(F.current=null,E&&E(pe,"backdropClick"))},R=_r(c),U=A.useMemo(()=>({titleId:R}),[R]),D={transition:B,...k},O={transition:$,paper:T,backdrop:u,...M},L={slots:D,slotProps:O},[H,Y]=$e("root",{elementType:qP,shouldForwardComponentProp:!0,externalForwardedProps:L,ownerState:I,className:ge(_.root,m),ref:n}),[X,te]=$e("backdrop",{elementType:UP,shouldForwardComponentProp:!0,externalForwardedProps:L,ownerState:I}),[ce,de]=$e("paper",{elementType:GP,shouldForwardComponentProp:!0,externalForwardedProps:L,ownerState:I,className:ge(_.paper,T.className)}),[ae,J]=$e("container",{elementType:YP,externalForwardedProps:L,ownerState:I,className:_.container}),[oe,G]=$e("transition",{elementType:sl,externalForwardedProps:L,ownerState:I,additionalProps:{appear:!0,in:w,timeout:z,role:"presentation"}});return l.jsx(H,{closeAfterTransition:!0,slots:{backdrop:X},slotProps:{backdrop:{transitionDuration:z,as:p,...te}},disableEscapeKeyDown:y,onClose:E,open:w,onClick:V,...Y,...C,children:l.jsx(oe,{...G,children:l.jsx(ae,{onMouseDown:j,...J,children:l.jsx(ce,{as:S,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":R,"aria-modal":d,...de,children:l.jsx($d.Provider,{value:U,children:h})})})})})});process.env.NODE_ENV!=="production"&&(ko.propTypes={"aria-describedby":o.string,"aria-labelledby":o.string,"aria-modal":o.oneOfType([o.oneOf(["false","true"]),o.bool]),BackdropComponent:o.elementType,BackdropProps:o.object,children:o.node,classes:o.object,className:o.string,disableEscapeKeyDown:o.bool,fullScreen:o.bool,fullWidth:o.bool,maxWidth:o.oneOfType([o.oneOf(["xs","sm","md","lg","xl",!1]),o.string]),onClick:o.func,onClose:o.func,open:o.bool.isRequired,PaperComponent:o.elementType,PaperProps:o.object,scroll:o.oneOf(["body","paper"]),slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),container:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,container:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function KP(e){return Oe("MuiDialogActions",e)}Ie("MuiDialogActions",["root","spacing"]);const XP=e=>{const{classes:t,disableSpacing:n}=e;return Ne({root:["root",!n&&"spacing"]},KP,t)},JP=ne("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),zd=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:s=!1,...a}=r,c={...r,disableSpacing:s},d=XP(c);return l.jsx(JP,{className:ge(d.root,i),ownerState:c,ref:n,...a})});process.env.NODE_ENV!=="production"&&(zd.propTypes={children:o.node,classes:o.object,className:o.string,disableSpacing:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function QP(e){return Oe("MuiDialogContent",e)}Ie("MuiDialogContent",["root","dividers"]);function ZP(e){return Oe("MuiDialogTitle",e)}const ek=Ie("MuiDialogTitle",["root"]),tk=e=>{const{classes:t,dividers:n}=e;return Ne({root:["root",n&&"dividers"]},QP,t)},nk=ne("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Ae(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${ek.root} + &`]:{paddingTop:0}}}]}))),Qi=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiDialogContent"}),{className:i,dividers:s=!1,...a}=r,c={...r,dividers:s},d=tk(c);return l.jsx(nk,{className:ge(d.root,i),ownerState:c,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Qi.propTypes={children:o.node,classes:o.object,className:o.string,dividers:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const rk=e=>{const{classes:t}=e;return Ne({root:["root"]},ZP,t)},ok=ne(W,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),Oo=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiDialogTitle"}),{className:i,id:s,...a}=r,c=r,d=rk(c),{titleId:p=s}=A.useContext($d);return l.jsx(ok,{component:"h2",className:ge(d.root,i),ownerState:c,ref:n,variant:"h6",id:s??p,...a})});process.env.NODE_ENV!=="production"&&(Oo.propTypes={children:o.node,classes:o.object,className:o.string,id:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function ik(e){return Oe("MuiDivider",e)}const hm=Ie("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),sk=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:s,orientation:a,textAlign:c,variant:d}=e;return Ne({root:["root",t&&"absolute",d,s&&"light",a==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",c==="right"&&a!=="vertical"&&"textAlignRight",c==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},ik,r)},ak=ne("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(Ae(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),lk=ne("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Ae(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),nn=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiDivider"}),{absolute:i=!1,children:s,className:a,orientation:c="horizontal",component:d=s||c==="vertical"?"div":"hr",flexItem:p=!1,light:u=!1,role:h=d!=="hr"?"separator":void 0,textAlign:m="center",variant:y="fullWidth",...g}=r,f={...r,absolute:i,component:d,flexItem:p,light:u,orientation:c,role:h,textAlign:m,variant:y},b=sk(f);return l.jsx(ak,{as:d,className:ge(b.root,a),role:h,ref:n,ownerState:f,"aria-orientation":h==="separator"&&(d!=="hr"||c==="vertical")?c:void 0,...g,children:s?l.jsx(lk,{className:b.wrapper,ownerState:f,children:s}):null})});nn&&(nn.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(nn.propTypes={absolute:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,flexItem:o.bool,light:o.bool,orientation:o.oneOf(["horizontal","vertical"]),role:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),textAlign:o.oneOf(["center","left","right"]),variant:o.oneOfType([o.oneOf(["fullWidth","inset","middle"]),o.string])});const ck=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:s,hiddenLabel:a,multiline:c}=e,d={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",s==="small"&&`size${ie(s)}`,a&&"hiddenLabel",c&&"multiline"],input:["input"]},p=Ne(d,jA,t);return{...t,...p}},dk=ne(ol,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nl(e,t),!n.disableUnderline&&t.underline]}})(Ae(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${qr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${qr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${qr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${qr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${qr.disabled}, .${qr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${qr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(St()).map(([a])=>({props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:c})=>a.multiline&&c==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),uk=ne(il,{name:"MuiFilledInput",slot:"Input",overridesResolver:rl})(Ae(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),ul=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:s={},componentsProps:a,fullWidth:c=!1,hiddenLabel:d,inputComponent:p="input",multiline:u=!1,slotProps:h,slots:m={},type:y="text",...g}=r,f={...r,disableUnderline:i,fullWidth:c,inputComponent:p,multiline:u,type:y},b=ck(r),x={root:{ownerState:f},input:{ownerState:f}},E=h??a?Vt(x,h??a):x,w=m.root??s.Root??dk,S=m.input??s.Input??uk;return l.jsx(Yi,{slots:{root:w,input:S},slotProps:E,fullWidth:c,inputComponent:p,multiline:u,ref:n,type:y,...g,classes:b})});process.env.NODE_ENV!=="production"&&(ul.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Gt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),ul.muiName="Input";function pk(e){return Oe("MuiFormControl",e)}Ie("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const fk=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${ie(n)}`,r&&"fullWidth"]};return Ne(i,pk,t)},hk=ne("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${ie(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Zi=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiFormControl"}),{children:i,className:s,color:a="primary",component:c="div",disabled:d=!1,error:p=!1,focused:u,fullWidth:h=!1,hiddenLabel:m=!1,margin:y="none",required:g=!1,size:f="medium",variant:b="outlined",...x}=r,E={...r,color:a,component:c,disabled:d,error:p,fullWidth:h,hiddenLabel:m,margin:y,required:g,size:f,variant:b},w=fk(E),[S,T]=A.useState(()=>{let j=!1;return i&&A.Children.forEach(i,V=>{if(!id(V,["Input","Select"]))return;const R=id(V,["Select"])?V.props.input:V;R&&BA(R.props)&&(j=!0)}),j}),[v,k]=A.useState(()=>{let j=!1;return i&&A.Children.forEach(i,V=>{id(V,["Input","Select"])&&(tl(V.props,!0)||tl(V.props.inputProps,!0))&&(j=!0)}),j}),[M,B]=A.useState(!1);d&&M&&B(!1);const z=u!==void 0&&!d?u:M;let $;const C=A.useRef(!1);process.env.NODE_ENV!=="production"&&($=()=>(C.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
172
|
+
`)),C.current=!0,()=>{C.current=!1}));const I=A.useCallback(()=>{k(!0)},[]),_=A.useCallback(()=>{k(!1)},[]),F=A.useMemo(()=>({adornedStart:S,setAdornedStart:T,color:a,disabled:d,error:p,filled:v,focused:z,fullWidth:h,hiddenLabel:m,size:f,onBlur:()=>{B(!1)},onFocus:()=>{B(!0)},onEmpty:_,onFilled:I,registerEffect:$,required:g,variant:b}),[S,a,d,p,v,z,h,m,$,_,I,g,f,b]);return l.jsx(el.Provider,{value:F,children:l.jsx(hk,{as:c,ownerState:E,className:ge(w.root,s),ref:n,...x,children:i})})});process.env.NODE_ENV!=="production"&&(Zi.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,focused:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,margin:o.oneOf(["dense","none","normal"]),required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function gk(e){return Oe("MuiFormControlLabel",e)}const es=Ie("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),mk=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:s}=e,a={root:["root",n&&"disabled",`labelPlacement${ie(r)}`,i&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return Ne(a,gk,t)},yk=ne("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${es.label}`]:t.label},t.root,t[`labelPlacement${ie(n.labelPlacement)}`]]}})(Ae(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${es.disabled}`]:{cursor:"default"},[`& .${es.label}`]:{[`&.${es.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),bk=ne("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Ae(({theme:e})=>({[`&.${es.error}`]:{color:(e.vars||e).palette.error.main}}))),Cn=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiFormControlLabel"}),{checked:i,className:s,componentsProps:a={},control:c,disabled:d,disableTypography:p,inputRef:u,label:h,labelPlacement:m="end",name:y,onChange:g,required:f,slots:b={},slotProps:x={},value:E,...w}=r,S=Un(),T=d??c.props.disabled??S?.disabled,v=f??c.props.required,k={disabled:T,required:v};["checked","name","onChange","value","inputRef"].forEach(F=>{typeof c.props[F]>"u"&&typeof r[F]<"u"&&(k[F]=r[F])});const M=wr({props:r,muiFormControl:S,states:["error"]}),B={...r,disabled:T,labelPlacement:m,required:v,error:M.error},z=mk(B),$={slots:b,slotProps:{...a,...x}},[C,I]=$e("typography",{elementType:W,externalForwardedProps:$,ownerState:B});let _=h;return _!=null&&_.type!==W&&!p&&(_=l.jsx(C,{component:"span",...I,className:ge(z.label,I?.className),children:_})),l.jsxs(yk,{className:ge(z.root,s),ownerState:B,ref:n,...w,children:[A.cloneElement(c,k),v?l.jsxs("div",{children:[_,l.jsxs(bk,{ownerState:B,"aria-hidden":!0,className:z.asterisk,children:[" ","*"]})]}):_]})});process.env.NODE_ENV!=="production"&&(Cn.propTypes={checked:o.bool,classes:o.object,className:o.string,componentsProps:o.shape({typography:o.object}),control:o.element.isRequired,disabled:o.bool,disableTypography:o.bool,inputRef:Gt,label:o.node,labelPlacement:o.oneOf(["bottom","end","start","top"]),name:o.string,onChange:o.func,required:o.bool,slotProps:o.shape({typography:o.oneOfType([o.func,o.object])}),slots:o.shape({typography:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function xk(e){return Oe("MuiFormGroup",e)}Ie("MuiFormGroup",["root","row","error"]);const vk=e=>{const{classes:t,row:n,error:r}=e;return Ne({root:["root",n&&"row",r&&"error"]},xk,t)},Sk=ne("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),gm=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiFormGroup"}),{className:i,row:s=!1,...a}=r,c=Un(),d=wr({props:r,muiFormControl:c,states:["error"]}),p={...r,row:s,error:d.error},u=vk(p);return l.jsx(Sk,{className:ge(u.root,i),ownerState:p,ref:n,...a})});process.env.NODE_ENV!=="production"&&(gm.propTypes={children:o.node,classes:o.object,className:o.string,row:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function wk(e){return Oe("MuiFormHelperText",e)}const mm=Ie("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ym;const Ck=e=>{const{classes:t,contained:n,size:r,disabled:i,error:s,filled:a,focused:c,required:d}=e,p={root:["root",i&&"disabled",s&&"error",r&&`size${ie(r)}`,n&&"contained",c&&"focused",a&&"filled",d&&"required"]};return Ne(p,wk,t)},Ek=ne("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ie(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Ae(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${mm.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${mm.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),bm=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiFormHelperText"}),{children:i,className:s,component:a="p",disabled:c,error:d,filled:p,focused:u,margin:h,required:m,variant:y,...g}=r,f=Un(),b=wr({props:r,muiFormControl:f,states:["variant","size","disabled","error","filled","focused","required"]}),x={...r,component:a,contained:b.variant==="filled"||b.variant==="outlined",variant:b.variant,size:b.size,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required};delete x.ownerState;const E=Ck(x);return l.jsx(Ek,{as:a,className:ge(E.root,s),ref:n,...g,ownerState:x,children:i===" "?ym||(ym=l.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):i})});process.env.NODE_ENV!=="production"&&(bm.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["filled","outlined","standard"]),o.string])});function Tk(e){return Oe("MuiFormLabel",e)}const ts=Ie("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ak=e=>{const{classes:t,color:n,focused:r,disabled:i,error:s,filled:a,required:c}=e,d={root:["root",`color${ie(n)}`,i&&"disabled",s&&"error",a&&"filled",r&&"focused",c&&"required"],asterisk:["asterisk",s&&"error"]};return Ne(d,Tk,t)},Pk=ne("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Ae(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t},style:{[`&.${ts.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${ts.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ts.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),kk=ne("span",{name:"MuiFormLabel",slot:"Asterisk"})(Ae(({theme:e})=>({[`&.${ts.error}`]:{color:(e.vars||e).palette.error.main}}))),Io=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiFormLabel"}),{children:i,className:s,color:a,component:c="label",disabled:d,error:p,filled:u,focused:h,required:m,...y}=r,g=Un(),f=wr({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),b={...r,color:f.color||"primary",component:c,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required},x=Ak(b);return l.jsxs(Pk,{as:c,ownerState:b,className:ge(x.root,s),ref:n,...y,children:[i,f.required&&l.jsxs(kk,{ownerState:b,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Io.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Ld(e){return`scale(${e}, ${e**2})`}const Ok={entering:{opacity:1,transform:Ld(1)},entered:{opacity:1,transform:"none"}},jd=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),No=A.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:s,easing:a,in:c,onEnter:d,onEntered:p,onEntering:u,onExit:h,onExited:m,onExiting:y,style:g,timeout:f="auto",TransitionComponent:b=jn,...x}=t,E=jr(),w=A.useRef(),S=Ln(),T=A.useRef(null),v=Pt(T,Rr(s),n),k=F=>j=>{if(F){const V=T.current;j===void 0?F(V):F(V,j)}},M=k(u),B=k((F,j)=>{wg(F);const{duration:V,delay:R,easing:U}=Ua({style:g,timeout:f,easing:a},{mode:"enter"});let D;f==="auto"?(D=S.transitions.getAutoHeightDuration(F.clientHeight),w.current=D):D=V,F.style.transition=[S.transitions.create("opacity",{duration:D,delay:R}),S.transitions.create("transform",{duration:jd?D:D*.666,delay:R,easing:U})].join(","),d&&d(F,j)}),z=k(p),$=k(y),C=k(F=>{const{duration:j,delay:V,easing:R}=Ua({style:g,timeout:f,easing:a},{mode:"exit"});let U;f==="auto"?(U=S.transitions.getAutoHeightDuration(F.clientHeight),w.current=U):U=j,F.style.transition=[S.transitions.create("opacity",{duration:U,delay:V}),S.transitions.create("transform",{duration:jd?U:U*.666,delay:jd?V:V||U*.333,easing:R})].join(","),F.style.opacity=0,F.style.transform=Ld(.75),h&&h(F)}),I=k(m),_=F=>{f==="auto"&&E.start(w.current||0,F),r&&r(T.current,F)};return l.jsx(b,{appear:i,in:c,nodeRef:T,onEnter:B,onEntered:z,onEntering:M,onExit:C,onExited:I,onExiting:$,addEndListener:_,timeout:f==="auto"?null:f,...x,children:(F,{ownerState:j,...V})=>A.cloneElement(s,{style:{opacity:0,transform:Ld(.75),visibility:F==="exited"&&!c?"hidden":void 0,...Ok[F],...g,...s.props.style},ref:v,...V})})});process.env.NODE_ENV!=="production"&&(No.propTypes={addEndListener:o.func,appear:o.bool,children:Yr.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])}),No&&(No.muiSupportAuto=!0);const Ik=e=>{const{classes:t,disableUnderline:n}=e,i=Ne({root:["root",!n&&"underline"],input:["input"]},zA,t);return{...t,...i}},Nk=ne(ol,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nl(e,t),!n.disableUnderline&&t.underline]}})(Ae(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Gi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Gi.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Gi.disabled}, .${Gi.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Gi.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(St()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),Mk=ne(il,{name:"MuiInput",slot:"Input",overridesResolver:rl})({}),pl=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:s={},componentsProps:a,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:u,slots:h={},type:m="text",...y}=r,g=Ik(r),b={root:{ownerState:{disableUnderline:i}}},x=u??a?Vt(u??a,b):b,E=h.root??s.Root??Nk,w=h.input??s.Input??Mk;return l.jsx(Yi,{slots:{root:E,input:w},slotProps:x,fullWidth:c,inputComponent:d,multiline:p,ref:n,type:m,...y,classes:g})});process.env.NODE_ENV!=="production"&&(pl.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Gt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),pl.muiName="Input";function Fk(e){return Oe("MuiInputLabel",e)}Ie("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Dk=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:s,variant:a,required:c}=e,d={root:["root",n&&"formControl",!s&&"animated",i&&"shrink",r&&r!=="medium"&&`size${ie(r)}`,a],asterisk:[c&&"asterisk"]},p=Ne(d,Fk,t);return{...t,...p}},Bk=ne(Io,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ts.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Ae(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),xm=A.forwardRef(function(t,n){const r=De({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:s,shrink:a,variant:c,className:d,...p}=r,u=Un();let h=a;typeof h>"u"&&u&&(h=u.filled||u.focused||u.adornedStart);const m=wr({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),y={...r,disableAnimation:i,formControl:u,shrink:h,size:m.size,variant:m.variant,required:m.required,focused:m.focused},g=Dk(y);return l.jsx(Bk,{"data-shrink":h,ref:n,className:ge(g.root,d),...p,ownerState:y,classes:g})});process.env.NODE_ENV!=="production"&&(xm.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),disableAnimation:o.bool,disabled:o.bool,error:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,shrink:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function _k(e){return Oe("MuiLinearProgress",e)}Ie("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Wd=4,Vd=mr`
|
|
173
173
|
0% {
|
|
174
174
|
left: -35%;
|
|
175
175
|
right: 100%;
|
|
@@ -220,19 +220,19 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
220
220
|
}
|
|
221
221
|
`,Lk=typeof Ud!="string"?go`
|
|
222
222
|
animation: ${Ud} 3s infinite linear;
|
|
223
|
-
`:null,jk=e=>{const{classes:t,variant:n,color:r}=e,i={root:["root",`color${oe(r)}`,n],dashed:["dashed",`dashedColor${oe(r)}`],bar1:["bar","bar1",`barColor${oe(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${oe(r)}`,n==="buffer"&&`color${oe(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Ie(i,_k,t)},Rd=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),Wk=ne("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${oe(n.color)}`],t[n.variant]]}})(Ee(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t},style:{backgroundColor:Rd(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),Vk=ne("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${oe(n.color)}`]]}})(Ee(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(St()).map(([t])=>{const n=Rd(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),Lk||{animation:`${Ud} 3s infinite linear`}),Hk=ne("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${oe(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(Ee(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Wd}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Wd}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:$k||{animation:`${Vd} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),Uk=ne("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${oe(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(Ee(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:Rd(e,t),transition:`transform .${Wd}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:zk||{animation:`${Hd} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),vm=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiLinearProgress"}),{className:i,color:s="primary",value:a,valueBuffer:c,variant:d="indeterminate",...p}=r,u={...r,color:s,variant:d},h=jk(u),m=Di(),y={},g={bar1:{},bar2:{}};if(d==="determinate"||d==="buffer")if(a!==void 0){y["aria-valuenow"]=Math.round(a),y["aria-valuemin"]=0,y["aria-valuemax"]=100;let f=a-100;m&&(f=-f),g.bar1.transform=`translateX(${f}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress .");if(d==="buffer")if(c!==void 0){let f=(c||0)-100;m&&(f=-f),g.bar2.transform=`translateX(${f}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");return l.jsxs(Wk,{className:he(h.root,i),ownerState:u,role:"progressbar",...y,ref:n,...p,children:[d==="buffer"?l.jsx(Vk,{className:h.dashed,ownerState:u}):null,l.jsx(Hk,{className:h.bar1,ownerState:u,style:g.bar1}),d==="determinate"?null:l.jsx(Uk,{className:h.bar2,ownerState:u,style:g.bar2})]})});process.env.NODE_ENV!=="production"&&(vm.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.number,valueBuffer:o.number,variant:o.oneOf(["buffer","determinate","indeterminate","query"])});const ns=A.createContext({});process.env.NODE_ENV!=="production"&&(ns.displayName="ListContext");function Rk(e){return Pe("MuiList",e)}ke("MuiList",["root","padding","dense","subheader"]);const qk=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Ie({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Rk,t)},Yk=ne("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Sm=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiList"}),{children:i,className:s,component:a="ul",dense:c=!1,disablePadding:d=!1,subheader:p,...u}=r,h=A.useMemo(()=>({dense:c}),[c]),m={...r,component:a,dense:c,disablePadding:d},y=qk(m);return l.jsx(ns.Provider,{value:h,children:l.jsxs(Yk,{as:a,className:he(y.root,s),ref:n,ownerState:m,...u,children:[p,i]})})});process.env.NODE_ENV!=="production"&&(Sm.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disablePadding:o.bool,subheader:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const wm=ke("MuiListItemIcon",["root","alignItemsFlexStart"]);function Gk(e){return Pe("MuiListItemText",e)}const Mo=ke("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Kk=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:s}=e;return Ie({root:["root",n&&"inset",s&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},Gk,t)},Xk=ne("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Mo.primary}`]:t.primary},{[`& .${Mo.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Mg.root}:where(& .${Mo.primary})`]:{display:"block"},[`.${Mg.root}:where(& .${Mo.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),qd=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListItemText"}),{children:i,className:s,disableTypography:a=!1,inset:c=!1,primary:d,primaryTypographyProps:p,secondary:u,secondaryTypographyProps:h,slots:m={},slotProps:y={},...g}=r,{dense:f}=A.useContext(ns);let b=d??i,x=u;const E={...r,disableTypography:a,inset:c,primary:!!b,secondary:!!x,dense:f},w=Kk(E),S={slots:m,slotProps:{primary:p,secondary:h,...y}},[T,v]=Be("root",{className:he(w.root,s),elementType:Xk,externalForwardedProps:{...S,...g},ownerState:E,ref:n}),[k,M]=Be("primary",{className:w.primary,elementType:W,externalForwardedProps:S,ownerState:E}),[_,z]=Be("secondary",{className:w.secondary,elementType:W,externalForwardedProps:S,ownerState:E});return b!=null&&b.type!==W&&!a&&(b=l.jsx(k,{variant:f?"body2":"body1",component:M?.variant?void 0:"span",...M,children:b})),x!=null&&x.type!==W&&!a&&(x=l.jsx(_,{variant:"body2",color:"textSecondary",...z,children:x})),l.jsxs(T,{...v,children:[b,x]})});process.env.NODE_ENV!=="production"&&(qd.propTypes={children:o.node,classes:o.object,className:o.string,disableTypography:o.bool,inset:o.bool,primary:o.node,primaryTypographyProps:o.object,secondary:o.node,secondaryTypographyProps:o.object,slotProps:o.shape({primary:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),secondary:o.oneOfType([o.func,o.object])}),slots:o.shape({primary:o.elementType,root:o.elementType,secondary:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Yd(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Cm(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Em(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function rs(e,t,n,r,i,s){let a=!1,c=i(e,t,t?n:!1);for(;c;){if(c===e.firstChild){if(a)return!1;a=!0}const d=r?!1:c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||!Em(c,s)||d)c=i(e,c,n);else return c.focus(),!0}return!1}const Tm=A.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:s=!1,children:a,className:c,disabledItemsFocusable:d=!1,disableListWrap:p=!1,onKeyDown:u,variant:h="selectedMenu",...m}=t,y=A.useRef(null),g=A.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});yn(()=>{i&&y.current.focus()},[i]),A.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,{direction:S})=>{const T=!y.current.style.width;if(w.clientHeight<y.current.clientHeight&&T){const v=`${dm(ir(w))}px`;y.current.style[S==="rtl"?"paddingLeft":"paddingRight"]=v,y.current.style.width=`calc(100% + ${v})`}return y.current}}),[]);const f=w=>{const S=y.current,T=w.key;if(w.ctrlKey||w.metaKey||w.altKey){u&&u(w);return}const k=Ji(It(S));if(T==="ArrowDown")w.preventDefault(),rs(S,k,p,d,Yd);else if(T==="ArrowUp")w.preventDefault(),rs(S,k,p,d,Cm);else if(T==="Home")w.preventDefault(),rs(S,null,p,d,Yd);else if(T==="End")w.preventDefault(),rs(S,null,p,d,Cm);else if(T.length===1){const M=g.current,_=T.toLowerCase(),z=performance.now();M.keys.length>0&&(z-M.lastTime>500?(M.keys=[],M.repeating=!0,M.previousKeyMatched=!0):M.repeating&&_!==M.keys[0]&&(M.repeating=!1)),M.lastTime=z,M.keys.push(_);const F=k&&!M.repeating&&Em(k,M);M.previousKeyMatched&&(F||rs(S,k,!1,d,Yd,M))?w.preventDefault():M.previousKeyMatched=!1}u&&u(w)},b=Pt(y,n);let x=-1;A.Children.forEach(a,(w,S)=>{if(!A.isValidElement(w)){x===S&&(x+=1,x>=a.length&&(x=-1));return}process.env.NODE_ENV!=="production"&&fd.isFragment(w)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
224
|
-
`)),w.props.disabled||(h==="selectedMenu"&&w.props.selected||x===-1)&&(x=S),x===S&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(x+=1,x>=a.length&&(x=-1))});const E=A.Children.map(a,(w,S)=>{if(S===x){const T={};return s&&(T.autoFocus=!0),w.props.tabIndex===void 0&&h==="selectedMenu"&&(T.tabIndex=0),A.cloneElement(w,T)}return w});return l.jsx(Sm,{role:"menu",ref:b,className:c,onKeyDown:f,tabIndex:i?0:-1,...m,children:E})});process.env.NODE_ENV!=="production"&&(Tm.propTypes={autoFocus:o.bool,autoFocusItem:o.bool,children:o.node,className:o.string,disabledItemsFocusable:o.bool,disableListWrap:o.bool,onKeyDown:o.func,variant:o.oneOf(["menu","selectedMenu"])});function Jk(e){return
|
|
225
|
-
`))}return{top:
|
|
226
|
-
`)),y!==null&&
|
|
223
|
+
`:null,jk=e=>{const{classes:t,variant:n,color:r}=e,i={root:["root",`color${ie(r)}`,n],dashed:["dashed",`dashedColor${ie(r)}`],bar1:["bar","bar1",`barColor${ie(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${ie(r)}`,n==="buffer"&&`color${ie(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Ne(i,_k,t)},Rd=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),Wk=ne("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ie(n.color)}`],t[n.variant]]}})(Ae(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t},style:{backgroundColor:Rd(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),Vk=ne("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${ie(n.color)}`]]}})(Ae(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(St()).map(([t])=>{const n=Rd(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),Lk||{animation:`${Ud} 3s infinite linear`}),Hk=ne("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${ie(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(Ae(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Wd}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Wd}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:$k||{animation:`${Vd} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),Uk=ne("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${ie(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(Ae(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:Rd(e,t),transition:`transform .${Wd}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:zk||{animation:`${Hd} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),vm=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiLinearProgress"}),{className:i,color:s="primary",value:a,valueBuffer:c,variant:d="indeterminate",...p}=r,u={...r,color:s,variant:d},h=jk(u),m=Di(),y={},g={bar1:{},bar2:{}};if(d==="determinate"||d==="buffer")if(a!==void 0){y["aria-valuenow"]=Math.round(a),y["aria-valuemin"]=0,y["aria-valuemax"]=100;let f=a-100;m&&(f=-f),g.bar1.transform=`translateX(${f}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress .");if(d==="buffer")if(c!==void 0){let f=(c||0)-100;m&&(f=-f),g.bar2.transform=`translateX(${f}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");return l.jsxs(Wk,{className:ge(h.root,i),ownerState:u,role:"progressbar",...y,ref:n,...p,children:[d==="buffer"?l.jsx(Vk,{className:h.dashed,ownerState:u}):null,l.jsx(Hk,{className:h.bar1,ownerState:u,style:g.bar1}),d==="determinate"?null:l.jsx(Uk,{className:h.bar2,ownerState:u,style:g.bar2})]})});process.env.NODE_ENV!=="production"&&(vm.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.number,valueBuffer:o.number,variant:o.oneOf(["buffer","determinate","indeterminate","query"])});const ns=A.createContext({});process.env.NODE_ENV!=="production"&&(ns.displayName="ListContext");function Rk(e){return Oe("MuiList",e)}Ie("MuiList",["root","padding","dense","subheader"]);const qk=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Ne({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Rk,t)},Yk=ne("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Sm=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiList"}),{children:i,className:s,component:a="ul",dense:c=!1,disablePadding:d=!1,subheader:p,...u}=r,h=A.useMemo(()=>({dense:c}),[c]),m={...r,component:a,dense:c,disablePadding:d},y=qk(m);return l.jsx(ns.Provider,{value:h,children:l.jsxs(Yk,{as:a,className:ge(y.root,s),ref:n,ownerState:m,...u,children:[p,i]})})});process.env.NODE_ENV!=="production"&&(Sm.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disablePadding:o.bool,subheader:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const wm=Ie("MuiListItemIcon",["root","alignItemsFlexStart"]);function Gk(e){return Oe("MuiListItemText",e)}const Mo=Ie("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Kk=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:s}=e;return Ne({root:["root",n&&"inset",s&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},Gk,t)},Xk=ne("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Mo.primary}`]:t.primary},{[`& .${Mo.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Mg.root}:where(& .${Mo.primary})`]:{display:"block"},[`.${Mg.root}:where(& .${Mo.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),qd=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiListItemText"}),{children:i,className:s,disableTypography:a=!1,inset:c=!1,primary:d,primaryTypographyProps:p,secondary:u,secondaryTypographyProps:h,slots:m={},slotProps:y={},...g}=r,{dense:f}=A.useContext(ns);let b=d??i,x=u;const E={...r,disableTypography:a,inset:c,primary:!!b,secondary:!!x,dense:f},w=Kk(E),S={slots:m,slotProps:{primary:p,secondary:h,...y}},[T,v]=$e("root",{className:ge(w.root,s),elementType:Xk,externalForwardedProps:{...S,...g},ownerState:E,ref:n}),[k,M]=$e("primary",{className:w.primary,elementType:W,externalForwardedProps:S,ownerState:E}),[B,z]=$e("secondary",{className:w.secondary,elementType:W,externalForwardedProps:S,ownerState:E});return b!=null&&b.type!==W&&!a&&(b=l.jsx(k,{variant:f?"body2":"body1",component:M?.variant?void 0:"span",...M,children:b})),x!=null&&x.type!==W&&!a&&(x=l.jsx(B,{variant:"body2",color:"textSecondary",...z,children:x})),l.jsxs(T,{...v,children:[b,x]})});process.env.NODE_ENV!=="production"&&(qd.propTypes={children:o.node,classes:o.object,className:o.string,disableTypography:o.bool,inset:o.bool,primary:o.node,primaryTypographyProps:o.object,secondary:o.node,secondaryTypographyProps:o.object,slotProps:o.shape({primary:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),secondary:o.oneOfType([o.func,o.object])}),slots:o.shape({primary:o.elementType,root:o.elementType,secondary:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Yd(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Cm(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Em(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function rs(e,t,n,r,i,s){let a=!1,c=i(e,t,t?n:!1);for(;c;){if(c===e.firstChild){if(a)return!1;a=!0}const d=r?!1:c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||!Em(c,s)||d)c=i(e,c,n);else return c.focus(),!0}return!1}const Tm=A.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:s=!1,children:a,className:c,disabledItemsFocusable:d=!1,disableListWrap:p=!1,onKeyDown:u,variant:h="selectedMenu",...m}=t,y=A.useRef(null),g=A.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});yn(()=>{i&&y.current.focus()},[i]),A.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,{direction:S})=>{const T=!y.current.style.width;if(w.clientHeight<y.current.clientHeight&&T){const v=`${dm(ir(w))}px`;y.current.style[S==="rtl"?"paddingLeft":"paddingRight"]=v,y.current.style.width=`calc(100% + ${v})`}return y.current}}),[]);const f=w=>{const S=y.current,T=w.key;if(w.ctrlKey||w.metaKey||w.altKey){u&&u(w);return}const k=Ji(It(S));if(T==="ArrowDown")w.preventDefault(),rs(S,k,p,d,Yd);else if(T==="ArrowUp")w.preventDefault(),rs(S,k,p,d,Cm);else if(T==="Home")w.preventDefault(),rs(S,null,p,d,Yd);else if(T==="End")w.preventDefault(),rs(S,null,p,d,Cm);else if(T.length===1){const M=g.current,B=T.toLowerCase(),z=performance.now();M.keys.length>0&&(z-M.lastTime>500?(M.keys=[],M.repeating=!0,M.previousKeyMatched=!0):M.repeating&&B!==M.keys[0]&&(M.repeating=!1)),M.lastTime=z,M.keys.push(B);const $=k&&!M.repeating&&Em(k,M);M.previousKeyMatched&&($||rs(S,k,!1,d,Yd,M))?w.preventDefault():M.previousKeyMatched=!1}u&&u(w)},b=Pt(y,n);let x=-1;A.Children.forEach(a,(w,S)=>{if(!A.isValidElement(w)){x===S&&(x+=1,x>=a.length&&(x=-1));return}process.env.NODE_ENV!=="production"&&fd.isFragment(w)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
224
|
+
`)),w.props.disabled||(h==="selectedMenu"&&w.props.selected||x===-1)&&(x=S),x===S&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(x+=1,x>=a.length&&(x=-1))});const E=A.Children.map(a,(w,S)=>{if(S===x){const T={};return s&&(T.autoFocus=!0),w.props.tabIndex===void 0&&h==="selectedMenu"&&(T.tabIndex=0),A.cloneElement(w,T)}return w});return l.jsx(Sm,{role:"menu",ref:b,className:c,onKeyDown:f,tabIndex:i?0:-1,...m,children:E})});process.env.NODE_ENV!=="production"&&(Tm.propTypes={autoFocus:o.bool,autoFocusItem:o.bool,children:o.node,className:o.string,disabledItemsFocusable:o.bool,disableListWrap:o.bool,onKeyDown:o.func,variant:o.oneOf(["menu","selectedMenu"])});function Jk(e){return Oe("MuiPopover",e)}Ie("MuiPopover",["root","paper"]);function Am(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Pm(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function km(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function os(e){return typeof e=="function"?e():e}const Qk=e=>{const{classes:t}=e;return Ne({root:["root"],paper:["paper"]},Jk,t)},Zk=ne(Po,{name:"MuiPopover",slot:"Root"})({}),Om=ne(bn,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Gd=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiPopover"}),{action:i,anchorEl:s,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:u,container:h,elevation:m=8,marginThreshold:y=16,open:g,PaperProps:f={},slots:b={},slotProps:x={},transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:w,transitionDuration:S="auto",TransitionProps:T={},disableScrollLock:v=!1,...k}=r,M=A.useRef(),B={...r,anchorOrigin:a,anchorReference:d,elevation:m,marginThreshold:y,transformOrigin:E,TransitionComponent:w,transitionDuration:S,TransitionProps:T},z=Qk(B),$=A.useCallback(()=>{if(d==="anchorPosition")return process.env.NODE_ENV!=="production"&&(c||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),c;const J=os(s),oe=J&&J.nodeType===1?J:It(M.current).body,G=oe.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const pe=oe.getBoundingClientRect();process.env.NODE_ENV!=="test"&&pe.top===0&&pe.left===0&&pe.right===0&&pe.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
225
|
+
`))}return{top:G.top+Am(G,a.vertical),left:G.left+Pm(G,a.horizontal)}},[s,a.horizontal,a.vertical,c,d]),C=A.useCallback(J=>({vertical:Am(J,E.vertical),horizontal:Pm(J,E.horizontal)}),[E.horizontal,E.vertical]),I=A.useCallback(J=>{const oe={width:J.offsetWidth,height:J.offsetHeight},G=C(oe);if(d==="none")return{top:null,left:null,transformOrigin:km(G)};const pe=$();let ee=pe.top-G.vertical,K=pe.left-G.horizontal;const q=ee+oe.height,he=K+oe.width,ue=ir(os(s)),Ee=ue.innerHeight-y,ke=ue.innerWidth-y;if(y!==null&&ee<y){const ve=ee-y;ee-=ve,G.vertical+=ve}else if(y!==null&&q>Ee){const ve=q-Ee;ee-=ve,G.vertical+=ve}if(process.env.NODE_ENV!=="production"&&oe.height>Ee&&oe.height&&Ee&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${oe.height-Ee}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
226
|
+
`)),y!==null&&K<y){const ve=K-y;K-=ve,G.horizontal+=ve}else if(he>ke){const ve=he-ke;K-=ve,G.horizontal+=ve}return{top:`${Math.round(ee)}px`,left:`${Math.round(K)}px`,transformOrigin:km(G)}},[s,d,$,C,y]),[_,F]=A.useState(g),j=A.useCallback(()=>{const J=M.current;if(!J)return;const oe=I(J);oe.top!==null&&J.style.setProperty("top",oe.top),oe.left!==null&&(J.style.left=oe.left),J.style.transformOrigin=oe.transformOrigin,F(!0)},[I]);A.useEffect(()=>(v&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j)),[s,v,j]);const V=()=>{j()},R=()=>{F(!1)};A.useEffect(()=>{g&&j()}),A.useImperativeHandle(i,()=>g?{updatePosition:()=>{j()}}:null,[g,j]),A.useEffect(()=>{if(!g)return;const J=ug(()=>{j()}),oe=ir(os(s));return oe.addEventListener("resize",J),()=>{J.clear(),oe.removeEventListener("resize",J)}},[s,g,j]);let U=S;const D={slots:{transition:w,...b},slotProps:{transition:T,paper:f,...x}},[O,L]=$e("transition",{elementType:No,externalForwardedProps:D,ownerState:B,getSlotProps:J=>({...J,onEntering:(oe,G)=>{J.onEntering?.(oe,G),V()},onExited:oe=>{J.onExited?.(oe),R()}}),additionalProps:{appear:!0,in:g}});S==="auto"&&!O.muiSupportAuto&&(U=void 0);const H=h||(s?It(os(s)).body:void 0),[Y,{slots:X,slotProps:te,...ce}]=$e("root",{ref:n,elementType:Zk,externalForwardedProps:{...D,...k},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:b.backdrop},slotProps:{backdrop:fg(typeof x.backdrop=="function"?x.backdrop(B):x.backdrop,{invisible:!0})},container:H,open:g},ownerState:B,className:ge(z.root,u)}),[de,ae]=$e("paper",{ref:M,className:z.paper,elementType:Om,externalForwardedProps:D,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:_?void 0:{opacity:0}},ownerState:B});return l.jsx(Y,{...ce,...!vr(Y)&&{slots:X,slotProps:te,disableScrollLock:v},children:l.jsx(O,{...L,timeout:U,children:l.jsx(de,{...ae,children:p})})})});process.env.NODE_ENV!=="production"&&(Gd.propTypes={action:Gt,anchorEl:kn(o.oneOfType([ar,o.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=os(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
227
227
|
`))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
|
|
228
|
-
`))}return null}),anchorOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),anchorPosition:o.shape({left:o.number.isRequired,top:o.number.isRequired}),anchorReference:o.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:o.elementType,BackdropProps:o.object,children:o.node,classes:o.object,className:o.string,container:o.oneOfType([ar,o.func]),disableScrollLock:o.bool,elevation:Ra,marginThreshold:o.number,onClose:o.func,open:o.bool.isRequired,PaperProps:o.shape({component:bd}),slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transformOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function eO(e){return
|
|
229
|
-
`)),U.props.disabled||(b==="selectedMenu"&&U.props.selected||F===-1)&&(F=B))});const C={slots:x,slotProps:{list:d,transition:f,paper:h,...E}},I=Hn({elementType:x.root,externalSlotProps:E.root,ownerState:T,className:[v.root,a]}),[$,D]=Be("paper",{className:v.paper,elementType:iO,externalForwardedProps:C,shouldForwardComponentProp:!0,ownerState:T}),[L,V]=Be("list",{className:he(v.list,d.className),elementType:sO,shouldForwardComponentProp:!0,externalForwardedProps:C,getSlotProps:U=>({...U,onKeyDown:B=>{z(B),U.onKeyDown?.(B)}}),ownerState:T}),Y=typeof C.slotProps.transition=="function"?C.slotProps.transition(T):C.slotProps.transition;return l.jsx(oO,{onClose:p,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?tO:nO,slots:{root:x.root,paper:$,backdrop:x.backdrop,...x.transition&&{transition:x.transition}},slotProps:{root:I,paper:D,backdrop:typeof E.backdrop=="function"?E.backdrop(T):E.backdrop,transition:{...Y,onEntering:(...U)=>{_(...U),Y?.onEntering?.(...U)}}},open:u,ref:n,transitionDuration:y,ownerState:T,...w,classes:m,children:l.jsx(L,{actions:M,autoFocus:i&&(F===-1||c),autoFocusItem:k,variant:b,...V,children:s})})});process.env.NODE_ENV!=="production"&&(is.propTypes={anchorEl:o.oneOfType([ar,o.func]),autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,disableAutoFocusItem:o.bool,MenuListProps:o.object,onClose:o.func,open:o.bool.isRequired,PaperProps:o.object,PopoverClasses:o.object,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),list:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,list:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object,variant:o.oneOf(["menu","selectedMenu"])});function aO(e){return Pe("MuiMenuItem",e)}const ss=ke("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),lO=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},cO=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:s,classes:a}=e,d=Ie({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",s&&"selected"]},aO,a);return{...a,...d}},dO=ne(zi,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:lO})(Ee(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ss.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${ss.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${ss.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${ss.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ss.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${hm.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${hm.inset}`]:{marginLeft:52},[`& .${Mo.root}`]:{marginTop:0,marginBottom:0},[`& .${Mo.inset}`]:{paddingLeft:36},[`& .${wm.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${wm.root} svg`]:{fontSize:"1.25rem"}}}]}))),et=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:s="li",dense:a=!1,divider:c=!1,disableGutters:d=!1,focusVisibleClassName:p,role:u="menuitem",tabIndex:h,className:m,...y}=r,g=A.useContext(ns),f=A.useMemo(()=>({dense:a||g.dense||!1,disableGutters:d}),[g.dense,a,d]),b=A.useRef(null);yn(()=>{i&&(b.current?b.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[i]);const x={...r,dense:f.dense,divider:c,disableGutters:d},E=cO(r),w=Pt(b,n);let S;return r.disabled||(S=h!==void 0?h:-1),l.jsx(ns.Provider,{value:f,children:l.jsx(dO,{ref:w,role:u,tabIndex:S,component:s,focusVisibleClassName:he(E.focusVisible,p),className:he(E.root,m),...y,ownerState:x,classes:E})})});process.env.NODE_ENV!=="production"&&(et.propTypes={autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disabled:o.bool,disableGutters:o.bool,divider:o.bool,focusVisibleClassName:o.string,role:o.string,selected:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number});function uO(e){return Pe("MuiMobileStepper",e)}ke("MuiMobileStepper",["root","positionBottom","positionTop","positionStatic","dots","dot","dotActive","progress"]);const pO=e=>{const{classes:t,position:n}=e,r={root:["root",`position${oe(n)}`],dots:["dots"],dot:["dot"],dotActive:["dotActive"],progress:["progress"]};return Ie(r,uO,t)},fO=ne(bn,{name:"MuiMobileStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${oe(n.position)}`]]}})(Ee(({theme:e})=>({display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",background:(e.vars||e).palette.background.default,padding:8,variants:[{props:({position:t})=>t==="top"||t==="bottom",style:{position:"fixed",left:0,right:0,zIndex:(e.vars||e).zIndex.mobileStepper}},{props:{position:"top"},style:{top:0}},{props:{position:"bottom"},style:{bottom:0}}]}))),hO=ne("div",{name:"MuiMobileStepper",slot:"Dots"})({variants:[{props:{variant:"dots"},style:{display:"flex",flexDirection:"row"}}]}),gO=ne("div",{name:"MuiMobileStepper",slot:"Dot",shouldForwardProp:e=>_i(e)&&e!=="dotActive",overridesResolver:(e,t)=>{const{dotActive:n}=e;return[t.dot,n&&t.dotActive]}})(Ee(({theme:e})=>({variants:[{props:{variant:"dots"},style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.action.disabled,borderRadius:"50%",width:8,height:8,margin:"0 2px"}},{props:{variant:"dots",dotActive:!0},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}))),mO=ne(vm,{name:"MuiMobileStepper",slot:"Progress"})({variants:[{props:{variant:"progress"},style:{width:"50%"}}]}),Im=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiMobileStepper"}),{activeStep:i=0,backButton:s,className:a,LinearProgressProps:c,nextButton:d,position:p="bottom",steps:u,variant:h="dots",slots:m={},slotProps:y={},...g}=r,f={...r,activeStep:i,position:p,variant:h};let b;h==="progress"&&(u===1?b=100:b=Math.ceil(i/(u-1)*100));const x=pO(f),E={slots:m,slotProps:{progress:c,...y}},[w,S]=Be("root",{ref:n,elementType:fO,shouldForwardComponentProp:!0,className:he(x.root,a),externalForwardedProps:{...E,...g},ownerState:f,additionalProps:{square:!0,elevation:0}}),[T,v]=Be("dots",{className:x.dots,elementType:hO,externalForwardedProps:E,ownerState:f}),[k,M]=Be("dot",{elementType:gO,externalForwardedProps:E,ownerState:f}),[_,z]=Be("progress",{className:x.progress,elementType:mO,shouldForwardComponentProp:!0,externalForwardedProps:E,ownerState:f,additionalProps:{value:b,variant:"determinate"}});return l.jsxs(w,{...S,children:[s,h==="text"&&l.jsxs(A.Fragment,{children:[i+1," / ",u]}),h==="dots"&&l.jsx(T,{...v,children:[...new Array(u)].map((F,C)=>l.jsx(k,{...M,className:he(x.dot,M.className,C===i&&x.dotActive),dotActive:C===i},C))}),h==="progress"&&l.jsx(_,{...z}),d]})});process.env.NODE_ENV!=="production"&&(Im.propTypes={activeStep:Ra,backButton:o.node,classes:o.object,className:o.string,LinearProgressProps:o.object,nextButton:o.node,position:o.oneOf(["bottom","static","top"]),slotProps:o.shape({dot:o.oneOfType([o.func,o.object]),dots:o.oneOfType([o.func,o.object]),progress:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({dot:o.elementType,dots:o.elementType,progress:o.elementType,root:o.elementType}),steps:Ra.isRequired,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["dots","progress","text"])});function yO(e){return Pe("MuiNativeSelect",e)}const Kd=ke("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),bO=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:s,error:a}=e,c={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${oe(n)}`,s&&"iconOpen",r&&"disabled"]};return Ie(c,yO,t)},Nm=ne("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Kd.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),xO=ne(Nm,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ht,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Kd.multiple}`]:t.multiple}]}})({}),Mm=ne("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Kd.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),vO=ne(Mm,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${oe(n.variant)}`],n.open&&t.iconOpen]}})({}),Fm=A.forwardRef(function(t,n){const{className:r,disabled:i,error:s,IconComponent:a,inputRef:c,variant:d="standard",...p}=t,u={...t,disabled:i,variant:d,error:s},h=bO(u);return l.jsxs(A.Fragment,{children:[l.jsx(xO,{ownerState:u,className:he(h.select,r),disabled:i,ref:c||n,...p}),t.multiple?null:l.jsx(vO,{as:a,ownerState:u,className:h.icon})]})});process.env.NODE_ENV!=="production"&&(Fm.propTypes={children:o.node,classes:o.object,className:o.string,disabled:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:Gt,multiple:o.bool,name:o.string,onChange:o.func,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});var Dm;const SO=ne("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Ht})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),wO=ne("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Ht})(Ee(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Bm(e){const{children:t,classes:n,className:r,label:i,notched:s,...a}=e,c=i!=null&&i!=="",d={...e,notched:s,withLabel:c};return l.jsx(SO,{"aria-hidden":!0,className:r,ownerState:d,...a,children:l.jsx(wO,{ownerState:d,children:c?l.jsx("span",{children:i}):Dm||(Dm=l.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&(Bm.propTypes={children:o.node,classes:o.object,className:o.string,label:o.node,notched:o.bool.isRequired,style:o.object});const CO=e=>{const{classes:t}=e,r=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},LA,t);return{...t,...r}},EO=ne(ol,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:nl})(Ee(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Rn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Rn.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Rn.focused} .${Rn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(St()).map(([n])=>({props:{color:n},style:{[`&.${Rn.focused} .${Rn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Rn.error} .${Rn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Rn.disabled} .${Rn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),TO=ne(Bm,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Ee(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),AO=ne(il,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:rl})(Ee(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),fl=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:s=!1,inputComponent:a="input",label:c,multiline:d=!1,notched:p,slots:u={},slotProps:h={},type:m="text",...y}=r,g=CO(r),f=Un(),b=wr({props:r,muiFormControl:f,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x={...r,color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:f,fullWidth:s,hiddenLabel:b.hiddenLabel,multiline:d,size:b.size,type:m},E=u.root??i.Root??EO,w=u.input??i.Input??AO,[S,T]=Be("notchedOutline",{elementType:TO,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:x,externalForwardedProps:{slots:u,slotProps:h},additionalProps:{label:c!=null&&c!==""&&b.required?l.jsxs(A.Fragment,{children:[c," ","*"]}):c}});return l.jsx(Yi,{slots:{root:E,input:w},slotProps:h,renderSuffix:v=>l.jsx(S,{...T,notched:typeof p<"u"?p:!!(v.startAdornment||v.filled||v.focused)}),fullWidth:s,inputComponent:a,multiline:d,ref:n,type:m,...y,classes:{...g,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(fl.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),defaultValue:o.any,disabled:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Gt,label:o.node,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,notched:o.bool,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,notchedOutline:o.oneOfType([o.func,o.object]),root:o.object}),slots:o.shape({input:o.elementType,notchedOutline:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),fl.muiName="Input";const PO=yt(l.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),kO=yt(l.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),OO=ne("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Ht})({position:"relative",display:"flex"}),IO=ne(PO,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),NO=ne(kO,{name:"MuiRadioButtonIcon"})(Ee(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function Xd(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i={...e,checked:t};return l.jsxs(OO,{className:n.root,ownerState:i,children:[l.jsx(IO,{fontSize:r,className:n.background,ownerState:i}),l.jsx(NO,{fontSize:r,className:n.dot,ownerState:i})]})}process.env.NODE_ENV!=="production"&&(Xd.propTypes={checked:o.bool,classes:o.object,fontSize:o.oneOf(["small","medium"])});const Jd=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(Jd.displayName="RadioGroupContext");function MO(){return A.useContext(Jd)}function FO(e){return Pe("MuiRadio",e)}const _m=ke("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),DO=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${oe(n)}`,r!=="medium"&&`size${oe(r)}`]};return{...t,...Ie(i,FO,t)}},BO=ne(al,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${oe(n.size)}`],t[`color${oe(n.color)}`]]}})(Ee(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${_m.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${_m.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function _O(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const $O=l.jsx(Xd,{checked:!0}),zO=l.jsx(Xd,{}),Cr=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:s=$O,color:a="primary",icon:c=zO,name:d,onChange:p,size:u="medium",className:h,disabled:m,disableRipple:y=!1,slots:g={},slotProps:f={},inputProps:b,...x}=r,E=Un();let w=m;E&&typeof w>"u"&&(w=E.disabled),w??=!1;const S={...r,disabled:w,disableRipple:y,color:a,size:u},T=DO(S),v=MO();let k=i;const M=pd(p,v&&v.onChange);let _=d;v&&(typeof k>"u"&&(k=_O(v.value,r.value)),typeof _>"u"&&(_=v.name));const z=f.input??b,[F,C]=Be("root",{ref:n,elementType:BO,className:he(T.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:f,...x},getSlotProps:I=>({...I,onChange:($,...D)=>{I.onChange?.($,...D),M($,...D)}}),ownerState:S,additionalProps:{type:"radio",icon:A.cloneElement(c,{fontSize:c.props.fontSize??u}),checkedIcon:A.cloneElement(s,{fontSize:s.props.fontSize??u}),disabled:w,name:_,checked:k,slots:g,slotProps:{input:typeof z=="function"?z(S):z}}});return l.jsx(F,{...C,classes:T})});process.env.NODE_ENV!=="production"&&(Cr.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,inputProps:o.object,inputRef:Gt,name:o.string,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function LO(e){return Pe("MuiRadioGroup",e)}ke("MuiRadioGroup",["root","row","error"]);const jO=e=>{const{classes:t,row:n,error:r}=e;return Ie({root:["root",n&&"row",r&&"error"]},LO,t)},as=A.forwardRef(function(t,n){const{actions:r,children:i,className:s,defaultValue:a,name:c,onChange:d,value:p,...u}=t,h=A.useRef(null),m=jO(t),[y,g]=bo({controlled:p,default:a,name:"RadioGroup"});A.useImperativeHandle(r,()=>({focus:()=>{let E=h.current.querySelector("input:not(:disabled):checked");E||(E=h.current.querySelector("input:not(:disabled)")),E&&E.focus()}}),[]);const f=Pt(n,h),b=_r(c),x=A.useMemo(()=>({name:b,onChange(E){g(E.target.value),d&&d(E,E.target.value)},value:y}),[b,d,g,y]);return l.jsx(Jd.Provider,{value:x,children:l.jsx(gm,{role:"radiogroup",ref:f,className:he(m.root,s),...u,children:i})})});process.env.NODE_ENV!=="production"&&(as.propTypes={children:o.node,className:o.string,defaultValue:o.any,name:o.string,onChange:o.func,value:o.any});const WO={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function $m(e){return Pe("MuiSelect",e)}const ls=ke("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var zm;const VO=ne(Nm,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ls.select}`]:t.select},{[`&.${ls.select}`]:t[n.variant]},{[`&.${ls.error}`]:t.error},{[`&.${ls.multiple}`]:t.multiple}]}})({[`&.${ls.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),HO=ne(Mm,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${oe(n.variant)}`],n.open&&t.iconOpen]}})({}),UO=ne("input",{shouldForwardProp:e=>_i(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Lm(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function RO(e){return e==null||typeof e=="string"&&!e.trim()}const qO=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:s,error:a}=e,c={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${oe(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ie(c,$m,t)},jm=A.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:s,autoWidth:a,children:c,className:d,defaultOpen:p,defaultValue:u,disabled:h,displayEmpty:m,error:y=!1,IconComponent:g,inputRef:f,labelId:b,MenuProps:x={},multiple:E,name:w,onBlur:S,onChange:T,onClose:v,onFocus:k,onKeyDown:M,onMouseDown:_,onOpen:z,open:F,readOnly:C,renderValue:I,required:$,SelectDisplayProps:D={},tabIndex:L,type:V,value:Y,variant:U="standard",...B}=t,[O,j]=bo({controlled:Y,default:u,name:"Select"}),[H,G]=bo({controlled:F,default:p,name:"Select"}),X=A.useRef(null),te=A.useRef(null),[le,ce]=A.useState(null),{current:ae}=A.useRef(F!=null),[Z,R]=A.useState(),q=Pt(n,f),ie=A.useCallback(se=>{te.current=se,se&&ce(se)},[]),Q=le?.parentNode;A.useImperativeHandle(q,()=>({focus:()=>{te.current.focus()},node:X.current,value:O}),[O]),A.useEffect(()=>{p&&H&&le&&!ae&&(R(a?null:Q.clientWidth),te.current.focus())},[le,a]),A.useEffect(()=>{s&&te.current.focus()},[s]),A.useEffect(()=>{if(!b)return;const se=It(te.current).getElementById(b);if(se){const Ce=()=>{getSelection().isCollapsed&&te.current.focus()};return se.addEventListener("click",Ce),()=>{se.removeEventListener("click",Ce)}}},[b]);const pe=(se,Ce)=>{se?z&&z(Ce):v&&v(Ce),ae||(R(a?null:Q.clientWidth),G(se))},K=se=>{_?.(se),se.button===0&&(se.preventDefault(),te.current.focus(),pe(!0,se))},ve=se=>{pe(!1,se)},be=A.Children.toArray(c),_e=se=>{const Ce=be.find(Ne=>Ne.props.value===se.target.value);Ce!==void 0&&(j(Ce.props.value),T&&T(se,Ce))},$e=se=>Ce=>{let Ne;if(Ce.currentTarget.hasAttribute("tabindex")){if(E){Ne=Array.isArray(O)?O.slice():[];const Le=O.indexOf(se.props.value);Le===-1?Ne.push(se.props.value):Ne.splice(Le,1)}else Ne=se.props.value;if(se.props.onClick&&se.props.onClick(Ce),O!==Ne&&(j(Ne),T)){const Le=Ce.nativeEvent||Ce,De=new Le.constructor(Le.type,Le);Object.defineProperty(De,"target",{writable:!0,value:{value:Ne,name:w}}),T(De,se)}E||pe(!1,Ce)}},Ae=se=>{C||([" ","ArrowUp","ArrowDown","Enter"].includes(se.key)&&(se.preventDefault(),pe(!0,se)),M?.(se))},de=le!==null&&H,qe=se=>{!de&&S&&(Object.defineProperty(se,"target",{writable:!0,value:{value:O,name:w}}),S(se))};delete B["aria-invalid"];let He,ue;const re=[];let xe=!1,Se=!1;(tl({value:O})||m)&&(I?He=I(O):xe=!0);const we=be.map(se=>{if(!A.isValidElement(se))return null;process.env.NODE_ENV!=="production"&&fd.isFragment(se)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
230
|
-
`));let
|
|
231
|
-
`))}},[Se,be,E,w,O]),xe&&(E?re.length===0?He=null:He=re.reduce((se,Ce,Ne)=>(se.push(Ce),Ne<re.length-1&&se.push(", "),se),[]):He=ue);let me=Z;!a&&ae&&le&&(me=Q.clientWidth);let ge;typeof L<"u"?ge=L:ge=h?null:0;const Re=D.id||(w?`mui-component-select-${w}`:void 0),ze={...t,variant:U,value:O,open:de,error:y},nt=qO(ze),kt={...x.PaperProps,...typeof x.slotProps?.paper=="function"?x.slotProps.paper(ze):x.slotProps?.paper},fe={...x.MenuListProps,...typeof x.slotProps?.list=="function"?x.slotProps.list(ze):x.slotProps?.list},Oe=_r();return l.jsxs(A.Fragment,{children:[l.jsx(VO,{as:"div",ref:ie,tabIndex:ge,role:"combobox","aria-controls":de?Oe:void 0,"aria-disabled":h?"true":void 0,"aria-expanded":de?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[b,Re].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":$?"true":void 0,"aria-invalid":y?"true":void 0,onKeyDown:Ae,onMouseDown:h||C?null:K,onBlur:qe,onFocus:k,...D,ownerState:ze,className:he(D.className,nt.select,d),id:Re,children:RO(He)?zm||(zm=l.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):He}),l.jsx(UO,{"aria-invalid":y,value:Array.isArray(O)?O.join(","):O,name:w,ref:X,"aria-hidden":!0,onChange:_e,tabIndex:-1,disabled:h,className:nt.nativeInput,autoFocus:s,required:$,...B,ownerState:ze}),l.jsx(HO,{as:g,className:nt.icon,ownerState:ze}),l.jsx(is,{id:`menu-${w||""}`,anchorEl:Q,open:de,onClose:ve,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...x,slotProps:{...x.slotProps,list:{"aria-labelledby":b,role:"listbox","aria-multiselectable":E?"true":void 0,disableListWrap:!0,id:Oe,...fe},paper:{...kt,style:{minWidth:me,...kt!=null?kt.style:null}}},children:we})]})});process.env.NODE_ENV!=="production"&&(jm.propTypes={"aria-describedby":o.string,"aria-label":o.string,autoFocus:o.bool,autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,disabled:o.bool,displayEmpty:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:Gt,labelId:o.string,MenuProps:o.object,multiple:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClose:o.func,onFocus:o.func,onOpen:o.func,open:o.bool,readOnly:o.bool,renderValue:o.func,required:o.bool,SelectDisplayProps:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.any,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});const YO=e=>{const{classes:t}=e,r=Ie({root:["root"]},$m,t);return{...t,...r}},Qd={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Ht(e)&&e!=="variant"},GO=ne(pl,Qd)(""),KO=ne(fl,Qd)(""),XO=ne(ul,Qd)(""),cn=A.forwardRef(function(t,n){const r=Fe({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:s,classes:a={},className:c,defaultOpen:d=!1,displayEmpty:p=!1,IconComponent:u=WA,id:h,input:m,inputProps:y,label:g,labelId:f,MenuProps:b,multiple:x=!1,native:E=!1,onClose:w,onOpen:S,open:T,renderValue:v,SelectDisplayProps:k,variant:M="outlined",..._}=r,z=E?Fm:jm,F=Un(),C=wr({props:r,muiFormControl:F,states:["variant","error"]}),I=C.variant||M,$={...r,variant:I,classes:a},D=YO($),{root:L,...V}=D,Y=m||{standard:l.jsx(GO,{ownerState:$}),outlined:l.jsx(KO,{label:g,ownerState:$}),filled:l.jsx(XO,{ownerState:$})}[I],U=Pt(n,Rr(Y));return l.jsx(A.Fragment,{children:A.cloneElement(Y,{inputComponent:z,inputProps:{children:s,error:C.error,IconComponent:u,variant:I,type:void 0,multiple:x,...E?{id:h}:{autoWidth:i,defaultOpen:d,displayEmpty:p,labelId:f,MenuProps:b,onClose:w,onOpen:S,open:T,renderValue:v,SelectDisplayProps:{id:h,...k}},...y,classes:y?Vt(V,y.classes):V,...m?m.props.inputProps:{}},...(x&&E||p)&&I==="outlined"?{notched:!0}:{},ref:U,className:he(Y.props.className,c,D.root),...!m&&{variant:I},..._})})});process.env.NODE_ENV!=="production"&&(cn.propTypes={autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,displayEmpty:o.bool,IconComponent:o.elementType,id:o.string,input:o.element,inputProps:o.object,label:o.node,labelId:o.string,MenuProps:o.object,multiple:o.bool,native:o.bool,onChange:o.func,onClose:o.func,onOpen:o.func,open:o.bool,renderValue:o.func,SelectDisplayProps:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.oneOfType([o.oneOf([""]),o.any]),variant:o.oneOf(["filled","outlined","standard"])}),cn.muiName="Select";function JO(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const QO=2;function Fo(e,t,n,r,i){return n===1?Math.min(e+t,i):Math.max(e-t,r)}function Wm(e,t){return e-t}function Vm(e,t){const{index:n}=e.reduce((r,i,s)=>{const a=Math.abs(t-i);return r===null||a<r.distance||a===r.distance?{distance:a,index:s}:r},null)??{};return n}function hl(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const i=n.changedTouches[r];if(i.identifier===t.current)return{x:i.clientX,y:i.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function gl(e,t,n){return(e-t)*100/(n-t)}function ZO(e,t,n){return(n-t)*e+t}function eI(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function tI(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(eI(t)))}function Hm({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(Wm)}function ml({sliderRef:e,activeIndex:t,setActive:n}){const r=It(e.current);(!e.current?.contains(r.activeElement)||Number(r?.activeElement?.getAttribute("data-index"))!==t)&&e.current?.querySelector(`[type="range"][data-index="${t}"]`).focus(),n&&n(t)}function yl(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?JO(e,t):!1}const nI={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}%`})}},rI=e=>e;let bl;function Um(){return bl===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?bl=CSS.supports("touch-action","none"):bl=!0),bl}function oI(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:s=!1,marks:a=!1,max:c=100,min:d=0,name:p,onChange:u,onChangeCommitted:h,orientation:m="horizontal",rootRef:y,scale:g=rI,step:f=1,shiftStep:b=10,tabIndex:x,value:E}=e,w=A.useRef(void 0),[S,T]=A.useState(-1),[v,k]=A.useState(-1),[M,_]=A.useState(!1),z=A.useRef(0),F=A.useRef(null),[C,I]=bo({controlled:E,default:n??d,name:"Slider"}),$=u&&((ue,re,xe)=>{const Se=ue.nativeEvent||ue,we=new Se.constructor(Se.type,Se);Object.defineProperty(we,"target",{writable:!0,value:{value:re,name:p}}),F.current=re,u(we,re,xe)}),D=Array.isArray(C);let L=D?C.slice().sort(Wm):[C];L=L.map(ue=>ue==null?d:yo(ue,d,c));const V=a===!0&&f!==null?[...Array(Math.floor((c-d)/f)+1)].map((ue,re)=>({value:d+f*re})):a||[],Y=V.map(ue=>ue.value),[U,B]=A.useState(-1),O=A.useRef(null),j=Pt(y,O),H=ue=>re=>{const xe=Number(re.currentTarget.getAttribute("data-index"));So(re.target)&&B(xe),k(xe),ue?.onFocus?.(re)},G=ue=>re=>{So(re.target)||B(-1),k(-1),ue?.onBlur?.(re)},X=(ue,re)=>{const xe=Number(ue.currentTarget.getAttribute("data-index")),Se=L[xe],we=Y.indexOf(Se);let me=re;if(V&&f==null){const ge=Y[Y.length-1];me>=ge?me=ge:me<=Y[0]?me=Y[0]:me=me<Se?Y[we-1]:Y[we+1]}if(me=yo(me,d,c),D){i&&(me=yo(me,L[xe-1]||-1/0,L[xe+1]||1/0));const ge=me;me=Hm({values:L,newValue:me,index:xe});let Re=xe;i||(Re=me.indexOf(ge)),ml({sliderRef:O,activeIndex:Re})}I(me),B(xe),$&&!yl(me,C)&&$(ue,me,xe),h&&h(ue,F.current??me)},te=ue=>re=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(re.key)){re.preventDefault();const xe=Number(re.currentTarget.getAttribute("data-index")),Se=L[xe];let we=null;if(f!=null){const me=re.shiftKey?b:f;switch(re.key){case"ArrowUp":we=Fo(Se,me,1,d,c);break;case"ArrowRight":we=Fo(Se,me,s?-1:1,d,c);break;case"ArrowDown":we=Fo(Se,me,-1,d,c);break;case"ArrowLeft":we=Fo(Se,me,s?1:-1,d,c);break;case"PageUp":we=Fo(Se,b,1,d,c);break;case"PageDown":we=Fo(Se,b,-1,d,c);break;case"Home":we=d;break;case"End":we=c;break}}else if(V){const me=Y[Y.length-1],ge=Y.indexOf(Se),Re=[s?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],ze=[s?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Re.includes(re.key)?ge===0?we=Y[0]:we=Y[ge-1]:ze.includes(re.key)&&(ge===Y.length-1?we=me:we=Y[ge+1])}we!=null&&X(re,we)}ue?.onKeyDown?.(re)};yn(()=>{r&&O.current.contains(document.activeElement)&&document.activeElement?.blur()},[r]),r&&S!==-1&&T(-1),r&&U!==-1&&B(-1);const le=ue=>re=>{ue.onChange?.(re),X(re,re.target.valueAsNumber)},ce=A.useRef(void 0);let ae=m;s&&m==="horizontal"&&(ae+="-reverse");const Z=({finger:ue,move:re=!1})=>{const{current:xe}=O,{width:Se,height:we,bottom:me,left:ge}=xe.getBoundingClientRect();let Re;ae.startsWith("vertical")?Re=(me-ue.y)/we:Re=(ue.x-ge)/Se,ae.includes("-reverse")&&(Re=1-Re);let ze;if(ze=ZO(Re,d,c),f)ze=tI(ze,f,d);else{const kt=Vm(Y,ze);ze=Y[kt]}ze=yo(ze,d,c);let nt=0;if(D){re?nt=ce.current:nt=Vm(L,ze),i&&(ze=yo(ze,L[nt-1]||-1/0,L[nt+1]||1/0));const kt=ze;ze=Hm({values:L,newValue:ze,index:nt}),i&&re||(nt=ze.indexOf(kt),ce.current=nt)}return{newValue:ze,activeIndex:nt}},R=Yt(ue=>{const re=hl(ue,w);if(!re)return;if(z.current+=1,ue.type==="mousemove"&&ue.buttons===0){q(ue);return}const{newValue:xe,activeIndex:Se}=Z({finger:re,move:!0});ml({sliderRef:O,activeIndex:Se,setActive:T}),I(xe),!M&&z.current>QO&&_(!0),$&&!yl(xe,C)&&$(ue,xe,Se)}),q=Yt(ue=>{const re=hl(ue,w);if(_(!1),!re)return;const{newValue:xe}=Z({finger:re,move:!0});T(-1),ue.type==="touchend"&&k(-1),h&&h(ue,F.current??xe),w.current=void 0,Q()}),ie=Yt(ue=>{if(r)return;Um()||ue.preventDefault();const re=ue.changedTouches[0];re!=null&&(w.current=re.identifier);const xe=hl(ue,w);if(xe!==!1){const{newValue:we,activeIndex:me}=Z({finger:xe});ml({sliderRef:O,activeIndex:me,setActive:T}),I(we),$&&!yl(we,C)&&$(ue,we,me)}z.current=0;const Se=It(O.current);Se.addEventListener("touchmove",R,{passive:!0}),Se.addEventListener("touchend",q,{passive:!0})}),Q=A.useCallback(()=>{const ue=It(O.current);ue.removeEventListener("mousemove",R),ue.removeEventListener("mouseup",q),ue.removeEventListener("touchmove",R),ue.removeEventListener("touchend",q)},[q,R]);A.useEffect(()=>{const{current:ue}=O;return ue.addEventListener("touchstart",ie,{passive:Um()}),()=>{ue.removeEventListener("touchstart",ie),Q()}},[Q,ie]),A.useEffect(()=>{r&&Q()},[r,Q]);const pe=ue=>re=>{if(ue.onMouseDown?.(re),r||re.defaultPrevented||re.button!==0)return;re.preventDefault();const xe=hl(re,w);if(xe!==!1){const{newValue:we,activeIndex:me}=Z({finger:xe});ml({sliderRef:O,activeIndex:me,setActive:T}),I(we),$&&!yl(we,C)&&$(re,we,me)}z.current=0;const Se=It(O.current);Se.addEventListener("mousemove",R,{passive:!0}),Se.addEventListener("mouseup",q)},K=gl(D?L[0]:d,d,c),ve=gl(L[L.length-1],d,c)-K,be=(ue={})=>{const re=Wr(ue),xe={onMouseDown:pe(re||{})},Se={...re,...xe};return{...ue,ref:j,...Se}},_e=ue=>re=>{ue.onMouseOver?.(re);const xe=Number(re.currentTarget.getAttribute("data-index"));k(xe)},$e=ue=>re=>{ue.onMouseLeave?.(re),k(-1)},Ae=(ue={})=>{const re=Wr(ue),xe={onMouseOver:_e(re||{}),onMouseLeave:$e(re||{})};return{...ue,...re,...xe}},de=ue=>({pointerEvents:S!==-1&&S!==ue?"none":void 0});let qe;return m==="vertical"&&(qe=s?"vertical-rl":"vertical-lr"),{active:S,axis:ae,axisProps:nI,dragging:M,focusedThumbIndex:U,getHiddenInputProps:(ue={})=>{const re=Wr(ue),xe={onChange:le(re||{}),onFocus:H(re||{}),onBlur:G(re||{}),onKeyDown:te(re||{})},Se={...re,...xe};return{tabIndex:x,"aria-labelledby":t,"aria-orientation":m,"aria-valuemax":g(c),"aria-valuemin":g(d),name:p,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:r,...ue,...Se,style:{...WO,direction:s?"rtl":"ltr",width:"100%",height:"100%",writingMode:qe}}},getRootProps:be,getThumbProps:Ae,marks:V,open:v,range:D,rootRef:j,trackLeap:ve,trackOffset:K,values:L,getThumbStyle:de}}const iI=e=>!e||!vr(e);function sI(e){return Pe("MuiSlider",e)}const En=ke("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),aI=e=>{const{open:t}=e;return{offset:he(t&&En.valueLabelOpen),circle:En.valueLabelCircle,label:En.valueLabelLabel}};function Rm(e){const{children:t,className:n,value:r}=e,i=aI(e);return t?A.cloneElement(t,{className:t.props.className},l.jsxs(A.Fragment,{children:[t.props.children,l.jsx("span",{className:he(i.offset,n),"aria-hidden":!0,children:l.jsx("span",{className:i.circle,children:l.jsx("span",{className:i.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(Rm.propTypes={children:o.element.isRequired,className:o.string,value:o.node});function qm(e){return e}const lI=ne("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${oe(n.color)}`],n.size!=="medium"&&t[`size${oe(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(Ee(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${En.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${En.dragging}`]:{[`& .${En.thumb}, & .${En.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),cI=ne("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),dI=ne("span",{name:"MuiSlider",slot:"Track"})(Ee(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:e.lighten(e.palette[t].main,.62),borderColor:e.lighten(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:e.darken(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:e.darken(e.palette[t].main,.5)})}}}))]}))),uI=ne("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${oe(n.color)}`],n.size!=="medium"&&t[`thumbSize${oe(n.size)}`]]}})(Ee(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${En.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${En.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${En.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),Ym=ne(Rm,{name:"MuiSlider",slot:"ValueLabel"})(Ee(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${En.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${En.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));process.env.NODE_ENV!=="production"&&(Ym.propTypes={children:o.element.isRequired,index:o.number.isRequired,open:o.bool.isRequired,value:o.node});const pI=ne("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>_i(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(Ee(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),fI=ne("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>_i(e)&&e!=="markLabelActive"})(Ee(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),hI=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:s,classes:a,color:c,size:d}=e,p={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",s==="inverted"&&"trackInverted",s===!1&&"trackFalse",c&&`color${oe(c)}`,d&&`size${oe(d)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",d&&`thumbSize${oe(d)}`,c&&`thumbColor${oe(c)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ie(p,sI,a)},gI=({children:e})=>e,Gm=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSlider"}),i=Di(),{"aria-label":s,"aria-valuetext":a,"aria-labelledby":c,component:d="span",components:p={},componentsProps:u={},color:h="primary",classes:m,className:y,disableSwap:g=!1,disabled:f=!1,getAriaLabel:b,getAriaValueText:x,marks:E=!1,max:w=100,min:S=0,name:T,onChange:v,onChangeCommitted:k,orientation:M="horizontal",shiftStep:_=10,size:z="medium",step:F=1,scale:C=qm,slotProps:I,slots:$,tabIndex:D,track:L="normal",value:V,valueLabelDisplay:Y="off",valueLabelFormat:U=qm,...B}=r,O={...r,isRtl:i,max:w,min:S,classes:m,disabled:f,disableSwap:g,orientation:M,marks:E,color:h,size:z,step:F,shiftStep:_,scale:C,track:L,valueLabelDisplay:Y,valueLabelFormat:U},{axisProps:j,getRootProps:H,getHiddenInputProps:G,getThumbProps:X,open:te,active:le,axis:ce,focusedThumbIndex:ae,range:Z,dragging:R,marks:q,values:ie,trackOffset:Q,trackLeap:pe,getThumbStyle:K}=oI({...O,rootRef:n});O.marked=q.length>0&&q.some(De=>De.label),O.dragging=R,O.focusedThumbIndex=ae;const ve=hI(O),be=$?.root??p.Root??lI,_e=$?.rail??p.Rail??cI,$e=$?.track??p.Track??dI,Ae=$?.thumb??p.Thumb??uI,de=$?.valueLabel??p.ValueLabel??Ym,qe=$?.mark??p.Mark??pI,He=$?.markLabel??p.MarkLabel??fI,ue=$?.input??p.Input??"input",re=I?.root??u.root,xe=I?.rail??u.rail,Se=I?.track??u.track,we=I?.thumb??u.thumb,me=I?.valueLabel??u.valueLabel,ge=I?.mark??u.mark,Re=I?.markLabel??u.markLabel,ze=I?.input??u.input,nt=Hn({elementType:be,getSlotProps:H,externalSlotProps:re,externalForwardedProps:B,additionalProps:{...iI(be)&&{as:d}},ownerState:{...O,...re?.ownerState},className:[ve.root,y]}),kt=Hn({elementType:_e,externalSlotProps:xe,ownerState:O,className:ve.rail}),fe=Hn({elementType:$e,externalSlotProps:Se,additionalProps:{style:{...j[ce].offset(Q),...j[ce].leap(pe)}},ownerState:{...O,...Se?.ownerState},className:ve.track}),Oe=Hn({elementType:Ae,getSlotProps:X,externalSlotProps:we,ownerState:{...O,...we?.ownerState},className:ve.thumb}),se=Hn({elementType:de,externalSlotProps:me,ownerState:{...O,...me?.ownerState},className:ve.valueLabel}),Ce=Hn({elementType:qe,externalSlotProps:ge,ownerState:O,className:ve.mark}),Ne=Hn({elementType:He,externalSlotProps:Re,ownerState:O,className:ve.markLabel}),Le=Hn({elementType:ue,getSlotProps:G,externalSlotProps:ze,ownerState:O});return l.jsxs(be,{...nt,children:[l.jsx(_e,{...kt}),l.jsx($e,{...fe}),q.filter(De=>De.value>=S&&De.value<=w).map((De,ut)=>{const st=gl(De.value,S,w),Rt=j[ce].offset(st);let $t;return L===!1?$t=ie.includes(De.value):$t=L==="normal"&&(Z?De.value>=ie[0]&&De.value<=ie[ie.length-1]:De.value<=ie[0])||L==="inverted"&&(Z?De.value<=ie[0]||De.value>=ie[ie.length-1]:De.value>=ie[0]),l.jsxs(A.Fragment,{children:[l.jsx(qe,{"data-index":ut,...Ce,...!vr(qe)&&{markActive:$t},style:{...Rt,...Ce.style},className:he(Ce.className,$t&&ve.markActive)}),De.label!=null?l.jsx(He,{"aria-hidden":!0,"data-index":ut,...Ne,...!vr(He)&&{markLabelActive:$t},style:{...Rt,...Ne.style},className:he(ve.markLabel,Ne.className,$t&&ve.markLabelActive),children:De.label}):null]},ut)}),ie.map((De,ut)=>{const st=gl(De,S,w),Rt=j[ce].offset(st),$t=Y==="off"?gI:de;return l.jsx($t,{...!vr($t)&&{valueLabelFormat:U,valueLabelDisplay:Y,value:typeof U=="function"?U(C(De),ut):U,index:ut,open:te===ut||le===ut||Y==="on",disabled:f},...se,children:l.jsx(Ae,{"data-index":ut,...Oe,className:he(ve.thumb,Oe.className,le===ut&&ve.active,ae===ut&&ve.focusVisible),style:{...Rt,...K(ut),...Oe.style},children:l.jsx(ue,{"data-index":ut,"aria-label":b?b(ut):s,"aria-valuenow":C(De),"aria-labelledby":c,"aria-valuetext":x?x(C(De),ut):a,value:ie[ut],...Le})})},ut)})]})});process.env.NODE_ENV!=="production"&&(Gm.propTypes={"aria-label":kn(o.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":o.string,"aria-valuetext":kn(o.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),components:o.shape({Input:o.elementType,Mark:o.elementType,MarkLabel:o.elementType,Rail:o.elementType,Root:o.elementType,Thumb:o.elementType,Track:o.elementType,ValueLabel:o.elementType}),componentsProps:o.shape({input:o.oneOfType([o.func,o.object]),mark:o.oneOfType([o.func,o.object]),markLabel:o.oneOfType([o.func,o.object]),rail:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object]),valueLabel:o.oneOfType([o.func,o.shape({children:o.element,className:o.string,open:o.bool,style:o.object,value:o.node,valueLabelDisplay:o.oneOf(["auto","off","on"])})])}),defaultValue:o.oneOfType([o.arrayOf(o.number),o.number]),disabled:o.bool,disableSwap:o.bool,getAriaLabel:o.func,getAriaValueText:o.func,marks:o.oneOfType([o.arrayOf(o.shape({label:o.node,value:o.number.isRequired})),o.bool]),max:o.number,min:o.number,name:o.string,onChange:o.func,onChangeCommitted:o.func,orientation:o.oneOf(["horizontal","vertical"]),scale:o.func,shiftStep:o.number,size:o.oneOfType([o.oneOf(["small","medium"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),mark:o.oneOfType([o.func,o.object]),markLabel:o.oneOfType([o.func,o.object]),rail:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object]),valueLabel:o.oneOfType([o.func,o.shape({children:o.element,className:o.string,open:o.bool,style:o.object,value:o.node,valueLabelDisplay:o.oneOf(["auto","off","on"])})])}),slots:o.shape({input:o.elementType,mark:o.elementType,markLabel:o.elementType,rail:o.elementType,root:o.elementType,thumb:o.elementType,track:o.elementType,valueLabel:o.elementType}),step:o.number,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,track:o.oneOf(["inverted","normal",!1]),value:o.oneOfType([o.arrayOf(o.number),o.number]),valueLabelDisplay:o.oneOf(["auto","off","on"]),valueLabelFormat:o.oneOfType([o.func,o.string])});function mI(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:s}=e,a=jr();A.useEffect(()=>{if(!i)return;function x(E){E.defaultPrevented||E.key==="Escape"&&r?.(E,"escapeKeyDown")}return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[i,r]);const c=Yt((x,E)=>{r?.(x,E)}),d=Yt(x=>{!r||x==null||a.start(x,()=>{c(null,"timeout")})});A.useEffect(()=>(i&&d(t),a.clear),[i,t,d,a]);const p=x=>{r?.(x,"clickaway")},u=a.clear,h=A.useCallback(()=>{t!=null&&d(s??t*.5)},[t,s,d]),m=x=>E=>{const w=x.onBlur;w?.(E),h()},y=x=>E=>{const w=x.onFocus;w?.(E),u()},g=x=>E=>{const w=x.onMouseEnter;w?.(E),u()},f=x=>E=>{const w=x.onMouseLeave;w?.(E),h()};return A.useEffect(()=>{if(!n&&i)return window.addEventListener("focus",h),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",u)}},[n,i,h,u]),{getRootProps:(x={})=>{const E={...Wr(e),...Wr(x)};return{role:"presentation",...x,...E,onBlur:m(E),onFocus:y(E),onMouseEnter:g(E),onMouseLeave:f(E)}},onClickAway:p}}function yI(e){return Pe("MuiSnackbarContent",e)}ke("MuiSnackbarContent",["root","message","action"]);const bI=e=>{const{classes:t}=e;return Ie({root:["root"],action:["action"],message:["message"]},yI,t)},xI=ne(bn,{name:"MuiSnackbarContent",slot:"Root"})(Ee(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(nd(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:nd(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),vI=ne("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),SI=ne("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Km=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSnackbarContent"}),{action:i,className:s,message:a,role:c="alert",...d}=r,p=r,u=bI(p);return l.jsxs(xI,{role:c,elevation:6,className:he(u.root,s),ownerState:p,ref:n,...d,children:[l.jsx(vI,{className:u.message,ownerState:p,children:a}),i?l.jsx(SI,{className:u.action,ownerState:p,children:i}):null]})});process.env.NODE_ENV!=="production"&&(Km.propTypes={action:o.node,classes:o.object,className:o.string,message:o.node,role:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function wI(e){return Pe("MuiSnackbar",e)}ke("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const CI=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${oe(n.vertical)}${oe(n.horizontal)}`]};return Ie(r,wI,t)},EI=ne("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${oe(n.anchorOrigin.vertical)}${oe(n.anchorOrigin.horizontal)}`]]}})(Ee(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),Do=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSnackbar"}),i=Ln(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:c,horizontal:d}={vertical:"bottom",horizontal:"left"},autoHideDuration:p=null,children:u,className:h,ClickAwayListenerProps:m,ContentProps:y,disableWindowBlurListener:g=!1,message:f,onBlur:b,onClose:x,onFocus:E,onMouseEnter:w,onMouseLeave:S,open:T,resumeHideDuration:v,slots:k={},slotProps:M={},TransitionComponent:_,transitionDuration:z=s,TransitionProps:{onEnter:F,onExited:C,...I}={},...$}=r,D={...r,anchorOrigin:{vertical:c,horizontal:d},autoHideDuration:p,disableWindowBlurListener:g,TransitionComponent:_,transitionDuration:z},L=CI(D),{getRootProps:V,onClickAway:Y}=mI(D),[U,B]=A.useState(!0),O=ie=>{B(!0),C&&C(ie)},j=(ie,Q)=>{B(!1),F&&F(ie,Q)},H={slots:{transition:_,...k},slotProps:{content:y,clickAwayListener:m,transition:I,...M}},[G,X]=Be("root",{ref:n,className:[L.root,h],elementType:EI,getSlotProps:V,externalForwardedProps:{...H,...$},ownerState:D}),[te,{ownerState:le,...ce}]=Be("clickAwayListener",{elementType:ll,externalForwardedProps:H,getSlotProps:ie=>({onClickAway:(...Q)=>{const pe=Q[0];ie.onClickAway?.(...Q),!pe?.defaultMuiPrevented&&Y(...Q)}}),ownerState:D}),[ae,Z]=Be("content",{elementType:Km,shouldForwardComponentProp:!0,externalForwardedProps:H,additionalProps:{message:f,action:a},ownerState:D}),[R,q]=Be("transition",{elementType:No,externalForwardedProps:H,getSlotProps:ie=>({onEnter:(...Q)=>{ie.onEnter?.(...Q),j(...Q)},onExited:(...Q)=>{ie.onExited?.(...Q),O(...Q)}}),additionalProps:{appear:!0,in:T,timeout:z,direction:c==="top"?"down":"up"},ownerState:D});return!T&&U?null:l.jsx(te,{...ce,...k.clickAwayListener&&{ownerState:le},children:l.jsx(G,{...X,children:l.jsx(R,{...q,children:u||l.jsx(ae,{...Z})})})})});process.env.NODE_ENV!=="production"&&(Do.propTypes={action:o.node,anchorOrigin:o.shape({horizontal:o.oneOf(["center","left","right"]).isRequired,vertical:o.oneOf(["bottom","top"]).isRequired}),autoHideDuration:o.number,children:o.element,classes:o.object,className:o.string,ClickAwayListenerProps:o.object,ContentProps:o.object,disableWindowBlurListener:o.bool,key:()=>null,message:o.node,onBlur:o.func,onClose:o.func,onFocus:o.func,onMouseEnter:o.func,onMouseLeave:o.func,open:o.bool,resumeHideDuration:o.number,slotProps:o.shape({clickAwayListener:o.oneOfType([o.func,o.object]),content:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({clickAwayListener:o.elementType,content:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function TI(e){return Pe("MuiTooltip",e)}const wt=ke("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function AI(e){return Math.round(e*1e5)/1e5}const PI=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:s}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${oe(s.split("-")[0])}`],arrow:["arrow"]};return Ie(a,TI,t)},kI=ne(Md,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Ee(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${wt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${wt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${wt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${wt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${wt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${wt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${wt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${wt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),OI=ne("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${oe(n.placement.split("-")[0])}`]]}})(Ee(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${wt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${wt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${wt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${wt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${AI(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${wt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${wt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${wt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${wt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${wt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${wt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${wt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${wt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${wt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${wt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),II=ne("span",{name:"MuiTooltip",slot:"Arrow"})(Ee(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let xl=!1;const Xm=new Ha;let cs={x:0,y:0};function vl(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Bo=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:s,classes:a,components:c={},componentsProps:d={},describeChild:p=!1,disableFocusListener:u=!1,disableHoverListener:h=!1,disableInteractive:m=!1,disableTouchListener:y=!1,enterDelay:g=100,enterNextDelay:f=0,enterTouchDelay:b=700,followCursor:x=!1,id:E,leaveDelay:w=0,leaveTouchDelay:S=1500,onClose:T,onOpen:v,open:k,placement:M="bottom",PopperComponent:_,PopperProps:z={},slotProps:F={},slots:C={},title:I,TransitionComponent:$,TransitionProps:D,...L}=r,V=A.isValidElement(s)?s:l.jsx("span",{children:s}),Y=Ln(),U=Di(),[B,O]=A.useState(),[j,H]=A.useState(null),G=A.useRef(!1),X=m||x,te=jr(),le=jr(),ce=jr(),ae=jr(),[Z,R]=bo({controlled:k,default:!1,name:"Tooltip",state:"open"});let q=Z;if(process.env.NODE_ENV!=="production"){const{current:Me}=A.useRef(k!==void 0);A.useEffect(()=>{B&&B.disabled&&!Me&&I!==""&&B.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
232
|
-
`))},[I,
|
|
233
|
-
`))},[
|
|
234
|
-
`));const ze={...r,isRtl:U,arrow:i,disableInteractive:X,placement:M,PopperComponentProp:_,touch:G.current},nt=typeof F.popper=="function"?F.popper(ze):F.popper,kt=A.useMemo(()=>{let Me=[{name:"arrow",enabled:!!j,options:{element:j,padding:4}}];return z.popperOptions?.modifiers&&(Me=Me.concat(z.popperOptions.modifiers)),nt?.popperOptions?.modifiers&&(Me=Me.concat(nt.popperOptions.modifiers)),{...z.popperOptions,...nt?.popperOptions,modifiers:Me}},[j,z.popperOptions,nt?.popperOptions]),fe=PI(ze),Oe=typeof F.transition=="function"?F.transition(ze):F.transition,se={slots:{popper:c.Popper,transition:c.Transition??$,tooltip:c.Tooltip,arrow:c.Arrow,...C},slotProps:{arrow:F.arrow??d.arrow,popper:{...z,...nt??d.popper},tooltip:F.tooltip??d.tooltip,transition:{...D,...Oe??d.transition}}},[Ce,Ne]=Be("popper",{elementType:kI,externalForwardedProps:se,ownerState:ze,className:he(fe.popper,z?.className)}),[Le,De]=Be("transition",{elementType:No,externalForwardedProps:se,ownerState:ze}),[ut,st]=Be("tooltip",{elementType:OI,className:fe.tooltip,externalForwardedProps:se,ownerState:ze}),[Rt,$t]=Be("arrow",{elementType:II,className:fe.arrow,externalForwardedProps:se,ownerState:ze,ref:H});return l.jsxs(A.Fragment,{children:[A.cloneElement(V,ge),l.jsx(Ce,{as:_??Md,placement:M,anchorEl:x?{getBoundingClientRect:()=>({top:cs.y,left:cs.x,right:cs.x,bottom:cs.y,width:0,height:0})}:B,popperRef:xe,open:B?q:!1,id:ie,transition:!0,...Re,...Ne,popperOptions:kt,children:({TransitionProps:Me})=>l.jsx(Le,{timeout:Y.transitions.duration.shorter,...Me,...De,children:l.jsxs(ut,{...st,children:[I,i?l.jsx(Rt,{...$t}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Bo.propTypes={arrow:o.bool,children:Yr.isRequired,classes:o.object,className:o.string,components:o.shape({Arrow:o.elementType,Popper:o.elementType,Tooltip:o.elementType,Transition:o.elementType}),componentsProps:o.shape({arrow:o.object,popper:o.object,tooltip:o.object,transition:o.object}),describeChild:o.bool,disableFocusListener:o.bool,disableHoverListener:o.bool,disableInteractive:o.bool,disableTouchListener:o.bool,enterDelay:o.number,enterNextDelay:o.number,enterTouchDelay:o.number,followCursor:o.bool,id:o.string,leaveDelay:o.number,leaveTouchDelay:o.number,onClose:o.func,onOpen:o.func,open:o.bool,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:o.elementType,PopperProps:o.object,slotProps:o.shape({arrow:o.oneOfType([o.func,o.object]),popper:o.oneOfType([o.func,o.object]),tooltip:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({arrow:o.elementType,popper:o.elementType,tooltip:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),title:o.node,TransitionComponent:o.elementType,TransitionProps:o.object});function NI(e){return Pe("MuiSwitch",e)}const Kt=ke("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),MI=e=>{const{classes:t,edge:n,size:r,color:i,checked:s,disabled:a}=e,c={root:["root",n&&`edge${oe(n)}`,`size${oe(r)}`],switchBase:["switchBase",`color${oe(i)}`,s&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=Ie(c,NI,t);return{...t,...d}},FI=ne("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${oe(n.edge)}`],t[`size${oe(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Kt.thumb}`]:{width:16,height:16},[`& .${Kt.switchBase}`]:{padding:4,[`&.${Kt.checked}`]:{transform:"translateX(16px)"}}}}]}),DI=ne(al,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Kt.input}`]:t.input},n.color!=="default"&&t[`color${oe(n.color)}`]]}})(Ee(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Kt.checked}`]:{transform:"translateX(20px)"},[`&.${Kt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Kt.checked} + .${Kt.track}`]:{opacity:.5},[`&.${Kt.disabled} + .${Kt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Kt.input}`]:{left:"-100%",width:"300%"}})),Ee(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(St(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Kt.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Kt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${Kt.checked} + .${Kt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),BI=ne("span",{name:"MuiSwitch",slot:"Track"})(Ee(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),_I=ne("span",{name:"MuiSwitch",slot:"Thumb"})(Ee(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Jm=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSwitch"}),{className:i,color:s="primary",edge:a=!1,size:c="medium",sx:d,slots:p={},slotProps:u={},...h}=r,m={...r,color:s,edge:a,size:c},y=MI(m),g={slots:p,slotProps:u},[f,b]=Be("root",{className:he(y.root,i),elementType:FI,externalForwardedProps:g,ownerState:m,additionalProps:{sx:d}}),[x,E]=Be("thumb",{className:y.thumb,elementType:_I,externalForwardedProps:g,ownerState:m}),w=l.jsx(x,{...E}),[S,T]=Be("track",{className:y.track,elementType:BI,externalForwardedProps:g,ownerState:m});return l.jsxs(f,{...b,children:[l.jsx(DI,{type:"checkbox",icon:w,checkedIcon:w,ref:n,ownerState:m,...h,classes:{...y,root:y.switchBase},slots:{...p.switchBase&&{root:p.switchBase},...p.input&&{input:p.input}},slotProps:{...u.switchBase&&{root:typeof u.switchBase=="function"?u.switchBase(m):u.switchBase},input:{role:"switch"},...u.input&&{input:typeof u.input=="function"?u.input(m):u.input}}}),l.jsx(S,{...T})]})});process.env.NODE_ENV!=="production"&&(Jm.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,edge:o.oneOf(["end","start",!1]),icon:o.node,id:o.string,inputProps:o.object,inputRef:Gt,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),switchBase:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType,switchBase:o.elementType,thumb:o.elementType,track:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});const Zd=A.createContext();process.env.NODE_ENV!=="production"&&(Zd.displayName="TableContext");function $I(e){return Pe("MuiTable",e)}ke("MuiTable",["root","stickyHeader"]);const zI=e=>{const{classes:t,stickyHeader:n}=e;return Ie({root:["root",n&&"stickyHeader"]},$I,t)},LI=ne("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Ee(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),Qm="table",Zm=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTable"}),{className:i,component:s=Qm,padding:a="normal",size:c="medium",stickyHeader:d=!1,...p}=r,u={...r,component:s,padding:a,size:c,stickyHeader:d},h=zI(u),m=A.useMemo(()=>({padding:a,size:c,stickyHeader:d}),[a,c,d]);return l.jsx(Zd.Provider,{value:m,children:l.jsx(LI,{as:s,role:s===Qm?null:"table",ref:n,className:he(h.root,i),ownerState:u,...p})})});process.env.NODE_ENV!=="production"&&(Zm.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,padding:o.oneOf(["checkbox","none","normal"]),size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),stickyHeader:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const ds=A.createContext();process.env.NODE_ENV!=="production"&&(ds.displayName="Tablelvl2Context");function jI(e){return Pe("MuiTableBody",e)}ke("MuiTableBody",["root"]);const WI=e=>{const{classes:t}=e;return Ie({root:["root"]},jI,t)},VI=ne("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),HI={variant:"body"},ey="tbody",ty=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableBody"}),{className:i,component:s=ey,...a}=r,c={...r,component:s},d=WI(c);return l.jsx(ds.Provider,{value:HI,children:l.jsx(VI,{className:he(d.root,i),as:s,ref:n,role:s===ey?null:"rowgroup",ownerState:c,...a})})});process.env.NODE_ENV!=="production"&&(ty.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function UI(e){return Pe("MuiTableCell",e)}const RI=ke("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),qI=e=>{const{classes:t,variant:n,align:r,padding:i,size:s,stickyHeader:a}=e,c={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${oe(r)}`,i!=="normal"&&`padding${oe(i)}`,`size${oe(s)}`]};return Ie(c,UI,t)},YI=ne("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${oe(n.size)}`],n.padding!=="normal"&&t[`padding${oe(n.padding)}`],n.align!=="inherit"&&t[`align${oe(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Ee(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
235
|
-
${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${RI.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),Er=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableCell"}),{align:i="inherit",className:s,component:a,padding:c,scope:d,size:p,sortDirection:u,variant:h,...m}=r,y=A.useContext(Zd),g=A.useContext(ds),f=g&&g.variant==="head";let b;a?b=a:b=f?"th":"td";let x=d;b==="td"?x=void 0:!x&&f&&(x="col");const E=h||g&&g.variant,w={...r,align:i,component:b,padding:c||(y&&y.padding?y.padding:"normal"),size:p||(y&&y.size?y.size:"medium"),sortDirection:u,stickyHeader:E==="head"&&y&&y.stickyHeader,variant:E},S=qI(w);let T=null;return u&&(T=u==="asc"?"ascending":"descending"),l.jsx(YI,{as:b,ref:n,className:he(S.root,s),"aria-sort":T,scope:x,ownerState:w,...m})});process.env.NODE_ENV!=="production"&&(Er.propTypes={align:o.oneOf(["center","inherit","justify","left","right"]),children:o.node,classes:o.object,className:o.string,component:o.elementType,padding:o.oneOf(["checkbox","none","normal"]),scope:o.string,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sortDirection:o.oneOf(["asc","desc",!1]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["body","footer","head"]),o.string])});function GI(e){return Pe("MuiTableContainer",e)}ke("MuiTableContainer",["root"]);const KI=e=>{const{classes:t}=e;return Ie({root:["root"]},GI,t)},XI=ne("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),ny=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableContainer"}),{className:i,component:s="div",...a}=r,c={...r,component:s},d=KI(c);return l.jsx(XI,{ref:n,as:s,className:he(d.root,i),ownerState:c,...a})});process.env.NODE_ENV!=="production"&&(ny.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function JI(e){return Pe("MuiTableHead",e)}ke("MuiTableHead",["root"]);const QI=e=>{const{classes:t}=e;return Ie({root:["root"]},JI,t)},ZI=ne("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),e2={variant:"head"},ry="thead",oy=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableHead"}),{className:i,component:s=ry,...a}=r,c={...r,component:s},d=QI(c);return l.jsx(ds.Provider,{value:e2,children:l.jsx(ZI,{as:s,className:he(d.root,i),ref:n,role:s===ry?null:"rowgroup",ownerState:c,...a})})});process.env.NODE_ENV!=="production"&&(oy.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function t2(e){return Pe("MuiTableRow",e)}const iy=ke("MuiTableRow",["root","selected","hover","head","footer"]),n2=e=>{const{classes:t,selected:n,hover:r,head:i,footer:s}=e;return Ie({root:["root",n&&"selected",r&&"hover",i&&"head",s&&"footer"]},t2,t)},r2=ne("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Ee(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${iy.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${iy.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),sy="tr",us=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableRow"}),{className:i,component:s=sy,hover:a=!1,selected:c=!1,...d}=r,p=A.useContext(ds),u={...r,component:s,hover:a,selected:c,head:p&&p.variant==="head",footer:p&&p.variant==="footer"},h=n2(u);return l.jsx(r2,{as:s,ref:n,className:he(h.root,i),role:s===sy?null:"row",ownerState:u,...d})});process.env.NODE_ENV!=="production"&&(us.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,hover:o.bool,selected:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function o2(e){return Pe("MuiTextField",e)}ke("MuiTextField",["root"]);const i2={standard:pl,filled:ul,outlined:fl},s2=e=>{const{classes:t}=e;return Ie({root:["root"]},o2,t)},a2=ne(Zi,{name:"MuiTextField",slot:"Root"})({}),ps=A.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:s=!1,children:a,className:c,color:d="primary",defaultValue:p,disabled:u=!1,error:h=!1,FormHelperTextProps:m,fullWidth:y=!1,helperText:g,id:f,InputLabelProps:b,inputProps:x,InputProps:E,inputRef:w,label:S,maxRows:T,minRows:v,multiline:k=!1,name:M,onBlur:_,onChange:z,onFocus:F,placeholder:C,required:I=!1,rows:$,select:D=!1,SelectProps:L,slots:V={},slotProps:Y={},type:U,value:B,variant:O="outlined",...j}=r,H={...r,autoFocus:s,color:d,disabled:u,error:h,fullWidth:y,multiline:k,required:I,select:D,variant:O},G=s2(H);process.env.NODE_ENV!=="production"&&D&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const X=_r(f),te=g&&X?`${X}-helper-text`:void 0,le=S&&X?`${X}-label`:void 0,ce=i2[O],ae={slots:V,slotProps:{input:E,inputLabel:b,htmlInput:x,formHelperText:m,select:L,...Y}},Z={},R=ae.slotProps.inputLabel;O==="outlined"&&(R&&typeof R.shrink<"u"&&(Z.notched=R.shrink),Z.label=S),D&&((!L||!L.native)&&(Z.id=void 0),Z["aria-describedby"]=void 0);const[q,ie]=Be("root",{elementType:a2,shouldForwardComponentProp:!0,externalForwardedProps:{...ae,...j},ownerState:H,className:he(G.root,c),ref:n,additionalProps:{disabled:u,error:h,fullWidth:y,required:I,color:d,variant:O}}),[Q,pe]=Be("input",{elementType:ce,externalForwardedProps:ae,additionalProps:Z,ownerState:H}),[K,ve]=Be("inputLabel",{elementType:xm,externalForwardedProps:ae,ownerState:H}),[be,_e]=Be("htmlInput",{elementType:"input",externalForwardedProps:ae,ownerState:H}),[$e,Ae]=Be("formHelperText",{elementType:bm,externalForwardedProps:ae,ownerState:H}),[de,qe]=Be("select",{elementType:cn,externalForwardedProps:ae,ownerState:H}),He=l.jsx(Q,{"aria-describedby":te,autoComplete:i,autoFocus:s,defaultValue:p,fullWidth:y,multiline:k,name:M,rows:$,maxRows:T,minRows:v,type:U,value:B,id:X,inputRef:w,onBlur:_,onChange:z,onFocus:F,placeholder:C,inputProps:_e,slots:{input:V.htmlInput?be:void 0},...pe});return l.jsxs(q,{...ie,children:[S!=null&&S!==""&&l.jsx(K,{htmlFor:X,id:le,...ve,children:S}),D?l.jsx(de,{"aria-describedby":te,id:X,labelId:le,value:B,input:He,...qe,children:a}):He,g&&l.jsx($e,{id:te,...Ae,children:g})]})});process.env.NODE_ENV!=="production"&&(ps.propTypes={autoComplete:o.string,autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),defaultValue:o.any,disabled:o.bool,error:o.bool,FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:Gt,label:o.node,margin:o.oneOf(["dense","none","normal"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,placeholder:o.string,required:o.bool,rows:o.oneOfType([o.number,o.string]),select:o.bool,SelectProps:o.object,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({formHelperText:o.oneOfType([o.func,o.object]),htmlInput:o.oneOfType([o.func,o.object]),input:o.oneOfType([o.func,o.object]),inputLabel:o.oneOfType([o.func,o.object]),select:o.oneOfType([o.func,o.object])}),slots:o.shape({formHelperText:o.elementType,htmlInput:o.elementType,input:o.elementType,inputLabel:o.elementType,root:o.elementType,select:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any,variant:o.oneOf(["filled","outlined","standard"])});const _t=Hh({themeId:Si}),l2=yt(l.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");function ay(e){return l.jsx(l2,{...e})}const c2=44;function d2({children:e,styles:t,gap:n=8,overflowTooltip:r="More options",OverflowIcon:i=ay}){const s=N.useRef(null),a=N.useRef(null),c=N.useRef([]),d=N.useRef(!1),p=N.useRef(null),[u,h]=N.useState(9999),[m,y]=N.useState(null),g=!!m,f=A.Children.toArray(e).filter(Boolean),b=f.length,x=N.useCallback(()=>{if(!a.current)return!1;const F=Array.from(a.current.children);if(F.length!==b)return!1;const C=F.map(I=>I.getBoundingClientRect().width);return C.some(I=>I===0)?!1:(c.current=C,d.current=!0,!0)},[b]),E=N.useCallback(F=>{const C=c.current;if(!C.length||C.reduce((L,V)=>L+V,0)+Math.max(0,b-1)*n<=F)return b;let $=0,D=0;for(let L=0;L<b;L++){const V=C[L]+(L>0?n:0);if($+V+c2+n<=F)$+=V,D++;else break}return b>0?Math.max(1,D):0},[b,n]),w=N.useCallback(()=>{p.current&&cancelAnimationFrame(p.current),p.current=requestAnimationFrame(()=>{if(!s.current||(d.current||x(),!d.current))return;const F=s.current.getBoundingClientRect().width;h(E(F))})},[x,E]);N.useLayoutEffect(()=>{const F=requestAnimationFrame(()=>{if(x()&&s.current){const $=s.current.getBoundingClientRect().width;h(E($))}}),C=new ResizeObserver(w);return s.current&&C.observe(s.current),()=>{cancelAnimationFrame(F),p.current&&cancelAnimationFrame(p.current),C.disconnect()}},[x,E,w]),N.useEffect(()=>{d.current=!1,c.current=[],w()},[b,w]);const S=F=>A.isValidElement(F)&&F.props?.["data-overflow-divider"],T=Math.min(u,b);let v=f.slice(0,T),k=f.slice(T);for(;v.length>1&&S(v[v.length-1]);)k=[v.pop(),...k];const M=k.length>0,_=v[0]??null,z=v.slice(1);return l.jsxs(l.Fragment,{children:[l.jsx(P,{ref:a,"aria-hidden":"true",sx:{position:"fixed",top:0,left:"-9999px",visibility:"hidden",display:"flex",alignItems:"center",gap:`${n}px`,pointerEvents:"none",zIndex:-1},children:f.map((F,C)=>l.jsx(P,{sx:{flexShrink:0,display:"flex",alignItems:"center"},children:F},C))}),l.jsxs(P,{ref:s,sx:{display:"flex",alignItems:"center",overflow:"hidden",minWidth:0,flex:"1 1 auto",justifyContent:"space-between"},children:[_&&l.jsx(P,{sx:{flexShrink:1,flexGrow:1,display:"flex",alignItems:"center",minWidth:0},children:_}),l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:`${n}px`,flexShrink:0},children:[z.map((F,C)=>l.jsx(P,{sx:{flexShrink:0,display:"flex",alignItems:"center"},children:F},C)),M&&l.jsxs(l.Fragment,{children:[l.jsx(Bo,{title:r,sx:{alignSelf:"flex-end"},children:l.jsx(it,{onClick:F=>y(F.currentTarget),size:"small",sx:{flexShrink:0,border:t?.border?.grey||"1px solid #e0e0e0",borderRadius:"8px",width:32,height:32,mx:0,color:t?.colors?.grey?.black||"#333",backgroundColor:g?t?.colors?.grey?.bg||"#f5f5f5":"transparent","&:hover":{backgroundColor:t?.colors?.grey?.bg||"#f5f5f5"},transition:"background 0.15s ease"},children:l.jsx(i,{fontSize:"small"})})}),l.jsx(is,{anchorEl:m,open:g,onClose:()=>y(null),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},disableAutoFocusItem:!0,PaperProps:{sx:{mt:.5,borderRadius:"10px",minWidth:240,maxWidth:"90vw",boxShadow:"0 4px 20px rgba(0,0,0,0.10)",border:t?.border?.grey||"1px solid #e0e0e0",overflow:"visible"}},children:k.map((F,C)=>{const I=S(F);return[C>0&&!I&&!S(k[C-1])&&l.jsx(nn,{sx:{my:0,borderColor:t?.colors?.grey?.bg||"#f0f0f0"}},`auto-divider-${C}`),I?l.jsx(nn,{sx:{my:0,borderColor:t?.colors?.grey?.bg||"#f0f0f0"}},`divider-${C}`):l.jsx(P,{sx:{display:"flex",alignItems:"center",width:"100%",boxSizing:"border-box",px:2,py:1,cursor:"pointer",fontSize:"14px","&:hover":{backgroundColor:t?.colors?.grey?.bg||"#f5f5f5"}},onClick:D=>{D.target===D.currentTarget&&y(null)},children:l.jsx(P,{sx:{width:"100%",minWidth:0,display:"flex",alignItems:"center"},children:F})},`item-${C}`)].filter(Boolean)})})]})]})]})]})}function dn(e){return l.jsx(or,{viewBox:"0 0 14 14",...e,children:l.jsx("path",{d:"M11.6667 3.5L5.25 9.91667L2.33334 7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})}function eu(){return eu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eu.apply(this,arguments)}function u2(e,t){if(e==null)return{};var n=p2(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function p2(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var tu=N.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=u2(e,["color","size"]);return N.createElement("svg",eu({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),N.createElement("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),N.createElement("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"}))});tu.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},tu.displayName="Bell";function nu(){return nu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nu.apply(this,arguments)}function f2(e,t){if(e==null)return{};var n=h2(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function h2(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Sl=N.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=f2(e,["color","size"]);return N.createElement("svg",nu({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),N.createElement("polyline",{points:"6 9 12 15 18 9"}))});Sl.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Sl.displayName="ChevronDown";function ru(){return ru=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ru.apply(this,arguments)}function g2(e,t){if(e==null)return{};var n=m2(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function m2(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var ou=N.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=g2(e,["color","size"]);return N.createElement("svg",ru({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),N.createElement("circle",{cx:"11",cy:"11",r:"8"}),N.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))});ou.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},ou.displayName="Search";function iu(){return iu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iu.apply(this,arguments)}function y2(e,t){if(e==null)return{};var n=b2(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function b2(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var su=N.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=y2(e,["color","size"]);return N.createElement("svg",iu({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),N.createElement("circle",{cx:"12",cy:"12",r:"3"}),N.createElement("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"}))});su.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},su.displayName="Settings";const gt="#2D64B8",wl="#2557A3",Ue="#FFFFFF",Ct="#f5f5f5";function tt(){const e=(y={})=>({bgcolor:gt,backgroundColor:gt,"&:hover":{bgcolor:wl,backgroundColor:wl},...y}),t=(y={})=>({bgcolor:Ue,backgroundColor:Ue,background:Ue,...y}),n=({uncheckedBorder:y="#D0D5DD",checkedBorder:g="#1976d2",checkedColor:f="#1976d2",background:b=Ue}={})=>({checkboxSx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:`0.5px solid ${y}`,bgcolor:b},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:b,color:f,border:`0.5px solid ${g}`},"&.MuiCheckbox-indeterminate .MuiSvgIcon-root":{bgcolor:b,color:f,border:`0.5px solid ${g}`}},iconSpan:{display:"inline-block",width:16,height:16,borderRadius:4,border:`0.5px solid ${y}`,background:b},checkedIconSpan:{display:"inline-block",width:16,height:16,borderRadius:4,border:`0.5px solid ${g}`,background:b,position:"relative"},minusInner:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:8,height:2,background:f,borderRadius:2},tickIconSx:{fontSize:10,color:f,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}}),r=n({uncheckedBorder:"#D0D5DD",checkedBorder:"#1976d2",checkedColor:"#1976d2"}),i=n({uncheckedBorder:"#454545",checkedBorder:"#2563EB",checkedColor:"#2563EB"}),s={wrapper:{width:800,maxWidth:"100%",display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"40px",flexWrap:"nowrap",opacity:1,marginLeft:"auto",marginRight:"auto",mt:2,"@media (max-width:400px)":{width:"100%",justifyContent:"space-between",gap:"8px"}},resultsPerPageBox:{width:128,height:16,display:"flex",alignItems:"center",gap:"4px",opacity:1,flex:"0 0 auto","@media (max-width:400px)":{width:"auto",minWidth:0}},resultsPerPageText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",whiteSpace:"nowrap","@media (max-width:400px)":{fontSize:"11px"}},select:{minWidth:32,height:16,"& .MuiSelect-select":{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",py:0,pr:"20px !important",display:"flex",alignItems:"center"},"& .MuiSelect-icon":{top:"50%",transform:"translateY(-50%)"},"& .MuiSvgIcon-root":{width:16,height:16,right:0,color:"#454545"},"@media (max-width:400px)":{minWidth:28}},navBox:{width:200,height:16,display:"flex",alignItems:"center",gap:"16px",opacity:1,flex:"0 1 auto",minWidth:0,"@media (max-width:400px)":{width:"auto",gap:"8px"}},iconButton:{p:0,width:16,height:16,color:"#454545","&.Mui-disabled":{color:"#c0c0c0"}},paginationIcon:{width:16,height:16,opacity:1},pageText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",whiteSpace:"nowrap","@media (max-width:400px)":{fontSize:"11px"}}},a=(y={})=>({...s,...y}),c={container:{width:"100%",minHeight:28,height:"auto",display:"flex",alignItems:"center",gap:"16px",padding:"8px 16px 4px 16px",opacity:1,boxSizing:"border-box"},cellText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080"},checkboxCol:{width:16,height:16,flex:"0 0 16px",display:"flex",alignItems:"center",justifyContent:"center",opacity:1},categoryCell:{flex:"2 1 0",minWidth:0,height:16,display:"flex",alignItems:"center",gap:"4px"},stockCell:{flex:"0 1 auto",width:120,minWidth:72,display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"8px",height:16},productsCell:{flex:"0 1 auto",width:60,minWidth:50,display:"flex",alignItems:"center",justifyContent:"flex-start",height:16},emptyCell:{flex:"0 0 56px",minWidth:56,height:16,opacity:1},arrow:{fontSize:16,height:12,color:"#454545",marginLeft:"8px",marginTop:"2px"}},d=(y={})=>({...c,...y}),p={container:{width:"100%",maxWidth:"100%",px:0},card:{width:"100%",maxWidth:"100%",display:"flex",flexDirection:"column",boxShadow:"none",borderRadius:0,bgcolor:"transparent",overflow:"visible",marginLeft:0,marginRight:0,boxSizing:"border-box"},headerBox:{...c.container,width:"100%",minWidth:0,boxSizing:"border-box"},rowShell:{width:"100%",minHeight:"auto",display:"flex",alignItems:"center",gap:"16px",padding:"8px 16px",opacity:1,border:"1px solid #F1F1F1",borderRadius:"8px",background:Ue,boxSizing:"border-box",flexWrap:"wrap"}},h={universal:{primaryBgColor:gt,primaryBgHoverColor:wl,getUniversalBlueButtonSx:e,globalCardContainerBg:Ue,globalBgColor:Ct,getGlobalCardContainerSx:t,getGlobalCheckboxStyles:n,globalPaginationStyles:s,getGlobalPaginationStyles:a,globalTableHeaderStyles:c,getGlobalTableHeaderStyles:d,globalTableScaffoldStyles:p,getGlobalTableScaffoldStyles:(y={})=>({...p,...y})},floatingAction:{bar:{position:"fixed",bottom:24,height:56,borderRadius:"12px",padding:"8px 12px 8px 16px",background:"#000000",boxShadow:"3px 1px 30px 0px #2222223D",display:"flex",alignItems:"center",zIndex:1300,boxSizing:"border-box",overflow:"hidden","@media (max-width: 600px)":{height:"auto",padding:"10px 16px 12px",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px"}},countTypography:{minWidth:100,flexShrink:1,fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:"0px",color:"#FFFFFF",marginRight:"12px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","@media (max-width: 600px)":{marginRight:0,textAlign:"center"}},flexSpacer:{flex:1,minWidth:8,flexShrink:1,"@media (max-width: 600px)":{display:"none"}},actionsRow:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0,"@media (max-width: 600px)":{width:"100%",justifyContent:"center"}},actionCard:{borderRadius:"6px",padding:"6px 24px",gap:"8px",border:"none",backgroundColor:gt,height:40,display:"flex",alignItems:"center",cursor:"pointer",boxSizing:"border-box",font:"inherit",outline:"none","&:hover":{backgroundColor:wl},"@media (max-width: 350px)":{padding:"6px 12px"}},iconCard:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},iconImg:{width:"13.33px",height:"13.33px",objectFit:"contain",boxSizing:"border-box"},actionText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:"0px",color:"#FFFFFF",whiteSpace:"nowrap"}},initialCard:{interLabel:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:12,lineHeight:"16px",letterSpacing:0,color:"#454545"},interCount:{fontFamily:"Inter, sans-serif",fontWeight:300,fontSize:28,lineHeight:"32px",letterSpacing:"-3px",color:"#454545"},interSyncText:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:10,lineHeight:"12px",letterSpacing:0,color:"#808080"},thirdCardCountText:{fontFamily:"Inter, sans-serif",fontWeight:300,fontSize:28,lineHeight:"32px",letterSpacing:"-3px",color:"#454545"},thirdCardSecondCountText:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:10,lineHeight:"12px",letterSpacing:0,color:"#808080"},thirdCardMissingText:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:10,lineHeight:"12px",letterSpacing:0,color:"#FF2929"},thirdCardReportText:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:12,lineHeight:"16px",letterSpacing:0,color:gt}},catalogCreatedToast:{root:{position:"fixed",top:24,right:24,zIndex:1400,display:"flex",alignItems:"flex-start",gap:1.5,maxWidth:400,minWidth:320,px:2,py:1.5,borderRadius:2,backgroundColor:"#e8f5e9",border:"1px solid #c8e6c9",boxShadow:"0 4px 12px rgba(0,0,0,0.08)"},iconWrap:{flexShrink:0,mt:.25,display:"flex",alignItems:"center"},content:{flex:1,minWidth:0,pt:.25},title:{fontWeight:700,fontSize:16,color:"#111",lineHeight:1.3},description:{fontWeight:400,fontSize:14,color:"#666",mt:.25,lineHeight:1.4},copyLinkButton:{marginTop:.75,padding:0,border:"none",background:"none",cursor:"pointer",fontWeight:500,fontSize:14,color:"#2563eb",textDecoration:"underline","&:hover":{color:"#1d4ed8"}},closeButton:{color:"#888",p:.5,mt:-.5,mr:-.5,"&:hover":{color:"#333",bgcolor:"rgba(0,0,0,0.04)"}}},productSetting:{pageRoot:{width:"100%",minHeight:"100vh",background:Ct,p:0,display:"flex",flexDirection:"column",alignItems:"center"},selectedCardHighlight:{bgcolor:"#F3F8FF",border:`1px solid ${gt}`},settingsMolecule:{container:{width:"100%",maxWidth:900,minHeight:468,mx:"auto",mt:4,px:"20px",boxSizing:"border-box",display:"flex",flexDirection:"column",gap:3},generalSection:{width:"100%",minHeight:156,display:"flex",flexDirection:"column",gap:1.5},sectionHeaderRow:{width:"100%",height:20,display:"flex",alignItems:"center",justifyContent:"space-between"},sectionHeaderTitleClusterGeneral:{display:"flex",alignItems:"center",gap:"6px",width:67,height:20},sectionHeaderTitleClusterSync:{display:"flex",alignItems:"center",gap:"6px",width:48,height:20},sectionHeaderTitleText:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:14,lineHeight:"20px",color:"#000000"},sectionHeaderCountText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:12,lineHeight:"16px",color:"#808080"},generalCardsColumn:{width:"100%",minHeight:124,display:"flex",flexDirection:"column",gap:"4px"},airaAiSwitchWrap:{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center"},syncSection:{width:"100%",minHeight:288,display:"flex",flexDirection:"column",gap:"4px"},syncNowControl:{width:78,height:16,display:"flex",alignItems:"center",gap:"4px"},syncNowIconWrap:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},syncNowLabel:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:12,lineHeight:"16px",color:gt,width:62},syncFrequencyTimeRow:{width:"100%",display:"flex",flexWrap:"nowrap",justifyContent:"space-between","@media (max-width:450px)":{flexDirection:"column",gap:"4px"}},syncFrequencyTimeHalf:{width:"50%","@media (max-width:450px)":{width:"100%"}},chevronRightNavIcon:{width:16,height:16,color:"#454545"},refreshIconRow:{width:18.33,height:15,color:"#454545"},refreshIconSyncNowHeader:{width:14.66,height:12,color:gt}}},productSettingGeneral:{baseCard:{width:"100%",maxWidth:"100%",height:58,boxSizing:"border-box",background:Ue,borderRadius:2,boxShadow:"none",border:"1px solid #F1F1F1",display:"flex",alignItems:"center",gap:1.5,px:2,py:1.5,mb:0},cardInner:{display:"flex",alignItems:"center",flex:1,minWidth:0},icon:{display:"flex",alignItems:"center",justifyContent:"center",width:20,height:20,mr:2},actionWrapper:{ml:"auto",display:"flex",alignItems:"center",justifyContent:"center"},titleTypography:{fontWeight:700,fontSize:12,lineHeight:"16px"},subtitleTypography:{fontSize:12,fontWeight:400,mt:.5,lineHeight:"16px"},titleColorDefault:"#000000",titleColorDisabled:"#999999",subtitleColorDefault:"#808080",subtitleColorDisabled:"#bbbbbb"},topBar:{root:{width:"100%",maxWidth:"100%",height:72,minHeight:72,maxHeight:72,marginLeft:0,marginRight:0,marginBottom:0,marginTop:0,paddingTop:"20px",gap:"20px",opacity:1,bgcolor:Ue,boxSizing:"border-box",overflow:"hidden"},inner:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingLeft:"20px",paddingRight:"20px",paddingTop:0,paddingBottom:0,margin:0,maxWidth:"100%",flexShrink:0},searchBox:{display:"flex",alignItems:"center",position:"relative",width:320},searchInput:{fontSize:"0.9rem",color:"text.primary",pl:1,width:"100%"},iconOnly:{minWidth:34,width:34,height:34,p:0,backgroundColor:Ue,border:"none",borderRadius:1,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box"}},promoPrintModal:{dialog:{width:379,height:520,maxWidth:379,maxHeight:520,borderRadius:"12px",background:Ue,display:"flex",flexDirection:"column",overflow:"hidden"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",width:328,height:20,pt:"24px",px:"24px",pb:"20px"},headerTitle:{fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"16px",lineHeight:"20px",letterSpacing:0,color:"#000000",margin:0},crossIconCard:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",border:"none",backgroundColor:"transparent",outline:"none","&:focus":{outline:"none"}},crossIcon:{width:8,height:8,opacity:1,display:"flex",alignItems:"center",justifyContent:"center","& svg":{width:8,height:8,stroke:"#454545"}},content:{pt:"8px",px:"24px",overflowY:"hidden",overflowX:"hidden",flex:1,minHeight:0},middleCard:{width:328,minHeight:280,display:"flex",flexDirection:"column",gap:"24px"},section:{width:328,gap:"8px",display:"flex",flexDirection:"column"},itemsToShowSection:{width:328,minHeight:68,gap:"8px",display:"flex",flexDirection:"column"},sectionTitle:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px",letterSpacing:0,color:"#454545",verticalAlign:"middle",marginBottom:"8px"},checkboxRow:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"12px 16px",width:328,alignItems:"center"},checkboxCard:{width:160,height:16,gap:"8px",display:"flex",alignItems:"center"},checkboxLabel:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",marginLeft:0,marginRight:0,"& .MuiTypography-root":{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545"},"& .MuiCheckbox-root":{p:0,width:16,height:16,mr:1},"& .MuiSvgIcon-root":{width:16,height:16}},checkboxSx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #454545",bgcolor:Ue},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:Ue,color:"#2563EB",border:"0.5px solid #2563EB"}},designSection:{width:328,display:"flex",flexDirection:"column",gap:"8px"},designContainer:{display:"flex",flexDirection:"row",flexWrap:"nowrap",gap:2,overflowX:"auto",overflowY:"hidden",pb:1,"&::-webkit-scrollbar":{height:6},"&::-webkit-scrollbar-track":{bgcolor:"#f0f0f0",borderRadius:1},"&::-webkit-scrollbar-thumb":{bgcolor:"#c0c0c0",borderRadius:1}},designCard:{base:{width:120,minWidth:120,height:92,borderRadius:"6px",border:"2px solid",borderColor:"#E0E0E0",p:1.5,cursor:"pointer",flexShrink:0,textAlign:"center",bgcolor:Ue,transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",display:"flex",flexDirection:"column",justifyContent:"space-between",boxShadow:"0 2px 4px rgba(0,0,0,0.08)",overflow:"hidden",minHeight:0},selected:{borderColor:gt,border:`2px solid ${gt}`,boxShadow:"0 4px 12px rgba(0, 0, 0, 0)"},unselected:{borderColor:"#E0E0E0",border:"2px solid #E0E0E0"}},design1:{ourPriceHeader:{fontFamily:"Inter, sans-serif",fontSize:"12px",fontWeight:700,letterSpacing:"1px",color:"#000000",lineHeight:1.2},rupeeSymbol:{fontFamily:"Inter, sans-serif",fontSize:"24px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"top",position:"relative",top:"-0.12em"},rupeeSymbolSmall:{fontSize:"1em",fontWeight:600,verticalAlign:"baseline"},bigPrice:{fontFamily:"Inter, sans-serif",fontSize:"28px",fontWeight:700,color:"#000000",lineHeight:1},bottomInfo:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",gap:.5},saveAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",lineHeight:1.2},mrpAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",lineHeight:1.2},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",lineHeight:1.3,fontWeight:600,color:"#000000",letterSpacing:"0px",textAlign:"center"},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"6px",fontWeight:600,color:"#000000"},validToText:{fontSize:"6px",fontWeight:600,color:"#000000"}},design2:{mainOfferBlock:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.3,mb:.5,minHeight:0,overflow:"hidden"},offerLine:{fontFamily:"Inter, sans-serif",fontSize:"10px",fontWeight:700,color:"#000000",lineHeight:1.2,textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%"},mrpBlock:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"right",mb:.5,width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},rupeeSymbolSmall:{fontSize:"1em",fontWeight:600,verticalAlign:"baseline"},productName:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"center",mb:.5,lineHeight:1.3,overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"},validToText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"}},design3:{ourPriceHeader:{fontFamily:"Inter, sans-serif",fontSize:"12px",fontWeight:700,letterSpacing:"1px",color:"#000000",lineHeight:1.2,textAlign:"center",mb:.5},rupeeSymbol:{fontFamily:"Inter, sans-serif",fontSize:"24px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"top",position:"relative",top:"-0.12em"},bigPrice:{fontFamily:"Inter, sans-serif",fontSize:"28px",fontWeight:700,color:"#000000",lineHeight:1},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",lineHeight:1.3,fontWeight:700,color:"#000000",letterSpacing:"0px",textAlign:"center",mt:.5},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"},validToText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"}},design4:{ourPriceHeader:{fontFamily:"Inter, sans-serif",fontSize:"12px",fontWeight:700,letterSpacing:"1px",color:"#000000",lineHeight:1.2,textAlign:"center",mb:.5},rupeeSymbol:{fontFamily:"Inter, sans-serif",fontSize:"24px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"top",position:"relative",top:"-0.12em"},priceWhole:{fontFamily:"Inter, sans-serif",fontSize:"28px",fontWeight:700,color:"#000000",lineHeight:1},priceDecimal:{fontFamily:"Inter, sans-serif",fontSize:"18px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"super"},saveMrpRow:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",mb:.5},saveAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"left"},mrpAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"right"},rupeeSymbolSmall:{fontSize:"0.85em",fontWeight:600,verticalAlign:"baseline"},productCode:{fontFamily:"Inter, sans-serif",fontSize:"9px",fontWeight:700,color:"#000000",textAlign:"center",mb:.5,lineHeight:1.3,wordBreak:"break-word"},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"5px",fontWeight:400,color:"#666666",fontFamily:"Arial, sans-serif"},validToText:{fontSize:"5px",fontWeight:400,color:"#666666",fontFamily:"Arial, sans-serif"}},design5:{topSection:{display:"flex",width:"100%",height:"60%",borderBottom:"1px solid #000"},leftColumn:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.3,position:"relative"},rightColumn:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.3},verticalDivider:{width:"1px",backgroundColor:"#000"},rewardsLogo:{position:"absolute",top:"8%",left:"50%",transform:"translateX(-50%)",display:"flex",flexDirection:"column",alignItems:"center",gap:0},logoLine1:{display:"flex",alignItems:"baseline",gap:"2px"},logoMy:{fontFamily:"Arial, sans-serif",fontSize:"6px",fontStyle:"italic",fontWeight:400,color:"#000000",lineHeight:1},logoSpencer:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",lineHeight:1,textDecoration:"underline"},logoRewards:{fontFamily:"Arial, sans-serif",fontSize:"7px",fontWeight:700,color:"#000000",lineHeight:1},rupeeSymbol1:{fontSize:"1.2em",fontWeight:700,verticalAlign:"top",position:"relative",top:"-0.20em"},memberPriceLabel:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.5px",marginTop:"20px"},memberPriceValue:{fontFamily:"Arial, sans-serif",fontSize:"20px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1},nonMemberPriceLabel:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.5px",marginTop:"10px"},nonMemberPriceValue:{fontFamily:"Arial, sans-serif",fontSize:"20px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1},rupeeSymbol:{fontSize:"0.85em",fontWeight:700,verticalAlign:"top",position:"relative",top:"-0.24em"},horizontalDivider:{width:"100%",height:"0.5px",backgroundColor:"#000"},middleSection:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.2,height:"20%",width:"100%",mt:.4},productName:{fontFamily:"Arial, sans-serif",fontSize:"6px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.3px"},mrpText:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2},rupeeSymbolSmall:{fontSize:"1em",fontWeight:700,verticalAlign:"baseline"},bottomSection:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"auto",width:"100%",padding:"0 4px"},savingsMessage:{fontFamily:"Arial, sans-serif",fontSize:"6px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.2px"}},sheetSizeSection:{width:328,minHeight:56,gap:"8px",display:"flex",flexDirection:"column"},sheetSizeHeader:{width:328,height:20,fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px",letterSpacing:0,color:"#454545",verticalAlign:"middle"},sheetSizeRow:{width:328,minHeight:28,gap:"4px",display:"flex",alignItems:"center",flexWrap:"wrap"},sheetSizeGroup:{display:"flex",gap:"4px",alignItems:"center"},sheetSizeBtn:{width:36,height:28,borderRadius:"6px",padding:"6px 10px",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.2s",bgcolor:Ct,border:"none","&:hover":{bgcolor:"#EEEEEE"}},sheetSizeBtnText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center",color:"#454545"},sheetSizeBtnTextSelected:{color:"#000000"},sheetSizeBtnSelected:{bgcolor:"#F3F8FF",border:`0.5px solid ${gt}`,"&:hover":{bgcolor:"#E8F0FE"}},copyPerItemRow:{display:"flex",alignItems:"center",gap:"8px",mt:.5},copyPerItemLabel:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",color:"#454545"},actions:{px:"24px",pt:"2px",pb:"10px",display:"flex",flexDirection:"column",alignItems:"center"},printButtonWrapper:{height:40,borderRadius:"8px",padding:"0px 6px",display:"flex",alignItems:"center",justifyContent:"center"},printButton:{width:"100%",height:"100%",minHeight:40,borderRadius:"8px",padding:"12px 16px",...e(),color:"#FFFFFF",fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center"}},createCatalog:{dialog:{width:600,height:384,maxWidth:600,maxHeight:384,borderRadius:"12px",display:"flex",flexDirection:"column",overflow:"hidden"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",pt:"24px",px:"24px",pb:"20px"},headerTitle:{fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"16px",lineHeight:"20px",letterSpacing:0,color:"#000000"},clearIconCard:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",border:"none",backgroundColor:"transparent",outline:"none","&:focus":{outline:"none"}},content:{pt:"20px",px:"24px",pb:"24px",overflowY:"auto",overflowX:"hidden",flex:1,minHeight:0,display:"flex",flexDirection:"column",gap:"24px"},fieldBlock:{width:"100%",maxWidth:552,display:"flex",flexDirection:"column",gap:"4px"},fieldLabel:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},input:{width:"100%",height:40,borderRadius:"6px",padding:"12px",border:"1px solid #F1F1F1",fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545",outline:"none",boxSizing:"border-box"},inputReadOnly:{background:Ue,color:"#454545"},storeDropdown:{width:"100%",height:40,borderRadius:"6px",padding:"12px",border:"1px solid #F1F1F1",display:"flex",alignItems:"center",cursor:"pointer",userSelect:"none",fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545",boxSizing:"border-box",bgcolor:Ue},createButton:{width:160,height:40,borderRadius:"8px",padding:"12px 16px",minWidth:160,...e(),color:"#FFFFFF",fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center",boxShadow:"none"}},emptyProduct:{wrapper:{position:"relative",mx:"auto",my:2,width:"100%",maxWidth:1200,px:{xs:2,sm:4,md:6},pt:"72px",boxSizing:"border-box",overflowX:"hidden"},card:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:{xs:320,sm:380,md:440},bgcolor:Ue,mx:{xs:0,sm:4,md:8},py:{xs:6,md:8},px:{xs:3,md:6},borderRadius:3,border:"1px solid #e8e8e8",position:"relative",zIndex:1},iconContainer:{position:"relative",mb:3},inboxIcon:{width:190,height:170,border:"2.5px solid #5b9bd5",borderRadius:"8px",bgcolor:"#e8f4fc",position:"relative",overflow:"visible"},title:{fontSize:"16px",fontWeight:600,color:"#1a1a1a",mb:.5},subtitle:{fontSize:"14px",color:"#888",mb:1.5},actionLink:{fontSize:"14px",fontWeight:500,color:"#3b82f6",textDecoration:"none",cursor:"pointer","&:hover":{textDecoration:"underline"}}},productSettingModal:{modal:{display:"flex",alignItems:"center",justifyContent:"center","& .MuiBackdrop-root":{backdropFilter:"blur(1px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},container:{bgcolor:Ue,borderRadius:2,boxShadow:24,width:"100%",maxWidth:360,outline:"none",overflow:"hidden"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2.5,py:2,borderBottom:"1px solid #e8e8e8"},headerTitle:{fontSize:"16px",fontWeight:600,color:"#000"},closeButton:{color:"#666"},content:{px:2.5,py:2},radioIcon:{width:20,height:20},radioChecked:{color:"#000","&.Mui-checked":{color:"#000"},"&:hover":{bgcolor:"transparent"},"& .MuiTouchRipple-root":{display:"none"}},radioLabel:{fontSize:"14px",color:"#333"},formControlLabel:{mx:0,py:.75,borderRadius:1,"&.Mui-checked":{backgroundColor:"#ffeaea"}},formControlLabelSelectedRow:{backgroundColor:"#F3F8FF"},upgradeSection:{display:"flex",alignItems:"center",justifyContent:"space-between",mt:2,pt:2,pl:2,pr:2,pb:2,borderRadius:1,borderTop:"1px solid #e8e8e8",bgcolor:"#F3F8FF"},upgradeText:{fontSize:"13px",color:"#000000",maxWidth:180},managePlanLink:{fontSize:"13px",fontWeight:500,color:gt,cursor:"pointer"},footer:{px:2.5,pb:2.5},saveButton:{...e(),color:"#fff",textTransform:"none",fontSize:"14px",fontWeight:500,py:1.25,borderRadius:1.5,boxShadow:"none"}},ftpSync:{ftpPageBackground:{minHeight:"100vh",background:Ct,p:0},productFtpSyncRootContainer:{width:"100%",boxSizing:"border-box",minHeight:"100vh",bgcolor:Ct},step0:{innerColumn:{width:"100%",maxWidth:900,mx:"auto",pt:2,px:{xs:2,sm:3},boxSizing:"border-box"},stepLabelsRow:{display:"flex",justifyContent:"space-between",alignItems:"center",px:2,py:2,mb:1},stepLabelTypography:{fontFamily:"Inter, sans-serif",fontSize:"12px",lineHeight:"16px",letterSpacing:"0px",textAlign:"center",verticalAlign:"middle",color:"#454545",opacity:1,width:"100%",minHeight:16,display:"inline-flex",alignItems:"center",justifyContent:"center",flex:1},mainWhiteContainer:{width:"100%",minHeight:504,gap:"8px",borderRadius:"16px",padding:"8px",background:"#FFFFFF",opacity:1,display:"flex",justifyContent:"center",alignItems:"center",boxSizing:"border-box"},setupPaper:{width:"100%",maxWidth:400,minHeight:210,gap:"24px",borderRadius:"20px",padding:{xs:"16px",sm:"24px"},background:"#fafafa",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},instructionsBlock:{width:"100%",minHeight:98,gap:"12px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},instructionsTitle:{fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"16px",lineHeight:"20px",letterSpacing:"0px",verticalAlign:"middle",color:"#000000",opacity:1,width:145,height:20,margin:0},instructionsOrderedList:{margin:0,paddingLeft:"28px",listStylePosition:"outside",listStyleType:"decimal",fontFamily:"Inter, sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"22px",letterSpacing:"0px",color:"#454545",opacity:1,width:"100%",minHeight:66,boxSizing:"border-box","& li":{display:"list-item",marginBottom:"4px"},"& li:last-child":{marginBottom:0}},nextButtonRow:{display:"flex",justifyContent:"flex-end",marginTop:"auto"}},common:{wizardOuterColumn:{width:"100%",maxWidth:900,px:{xs:2,sm:3},mx:"auto",pt:2,display:"flex",flexDirection:"column",gap:"32px",boxSizing:"border-box"},wizardOuterColumnStep1:{width:"100%",maxWidth:900,minHeight:600,gap:"32px",opacity:1,pt:2,px:{xs:2,sm:3},mx:"auto",display:"flex",flexDirection:"column",boxSizing:"border-box"},stepperSlot:{width:"100%",minHeight:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"}},step1:{loginSectionOuter:{width:"100%",minHeight:{xs:420,md:504},borderRadius:"16px",padding:"8px",paddingBottom:"32px",gap:"8px",opacity:1,display:"flex",justifyContent:"center",alignItems:"center",bgcolor:"#fff",boxSizing:"border-box",marginBottom:"32px"},loginCard:{width:"100%",maxWidth:400,minHeight:380,borderRadius:"20px",padding:{xs:"16px",sm:"24px"},gap:"24px",opacity:1,bgcolor:Ct,display:"flex",flexDirection:"column",boxSizing:"border-box"},loginTitleRow:{width:"100%",height:20,justifyContent:"space-between",opacity:1,display:"flex",alignItems:"center"},loginTitleTypography:{width:102,height:20,fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"16px",lineHeight:"20px",letterSpacing:"0px",color:"#000000",opacity:1,margin:0},loginForm:{width:"100%",minHeight:224,gap:"16px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},loginFieldColumn:{width:"100%",minHeight:64,gap:"4px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},loginFieldColumnPassword:{width:"100%",minHeight:64,gap:"4px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box",position:"relative"},loginFieldLabel:{width:"100%",height:18,fontFamily:"Inter, sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"18px",letterSpacing:"0px",color:"#454545",opacity:1,margin:0,display:"block"},loginTextInput:{width:"100%",height:42,boxSizing:"border-box",borderRadius:"6px",padding:"12px",border:"1px solid #F1F1F1",background:"#FFFFFF",opacity:1,fontSize:14,fontFamily:"Inter, sans-serif"},loginPasswordInput:{width:"100%",height:42,boxSizing:"border-box",borderRadius:"6px",padding:"12px 44px 12px 12px",border:"1px solid #F1F1F1",background:"#FFFFFF",opacity:1,fontSize:14,fontFamily:"Inter, sans-serif"},passwordVisibilityIconButton:{position:"absolute",right:11,top:35,color:"#454545",width:16,height:16,padding:0,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{backgroundColor:"rgba(0,0,0,0.04)",color:"#222"},"& .MuiSvgIcon-root":{width:16,height:16,fontSize:16}},loginActionsRow:{display:"flex",justifyContent:"flex-end",gap:2,marginTop:"auto"},outlinedBackButton:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",bgcolor:"#fff"},ftpConnectionErrorText:{mt:1,fontSize:14}},step2:{mappingPaperWrap:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:300,mb:4},mappingPaper:{mt:0,p:0,borderRadius:4,width:"100%",maxWidth:900},mappingHeaderToolbar:{p:{xs:2,sm:3},pb:2,borderBottom:"1px solid #eee",display:"flex",alignItems:{xs:"flex-start",sm:"center"},justifyContent:"space-between",flexDirection:{xs:"column",sm:"row"},gap:{xs:1.5,sm:0},minWidth:0},mappingHeaderTextBlock:{minWidth:0,maxWidth:"100%",flex:"1 1 auto"},mappingHeaderTitleTypography:{fontWeight:700,fontSize:{xs:"0.8125rem",sm:"0.875rem"},lineHeight:1.35,overflowWrap:"anywhere",wordBreak:"break-word","@media (max-width: 400px)":{fontSize:"0.75rem"}},mappingHeaderServerHint:{color:"#888",mt:.5,fontSize:{xs:"0.6875rem",sm:"0.8125rem"},lineHeight:1.45,overflowWrap:"anywhere",wordBreak:"break-all",maxWidth:"100%","@media (max-width: 400px)":{fontSize:"0.625rem"}},mappingHeaderActionsWrap:{width:{xs:"100%",sm:"auto"},display:"flex",justifyContent:{xs:"flex-end",sm:"initial"}},mappingBackButton:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",mr:2},mappingTableContainer:{background:"#fafafa",borderRadius:4,mt:0,boxShadow:"none",border:"1px solid #eee",width:"100%",overflowX:"auto",overflowY:"auto",maxHeight:{xs:420,md:"none"}},mappingTableLoadingBox:{p:3,textAlign:"center"},mappingTableErrorBox:{p:3,color:"red",textAlign:"center"},mappingTableEmptyHint:{p:3,textAlign:"center",color:"#888"},mappingTable:{minWidth:720},mappingTableHeadCell:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},mappingTableHeadCellTight:{fontWeight:700,background:"#fafafa",borderBottom:"none"},mappingTableSelectCell:{background:"#fafafa",borderBottom:"none"},mappingColumnSelect:{minWidth:120,fontWeight:500},mappingSelectMenuPaper:{maxHeight:300,boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)","& .MuiList-root":{padding:"0"},"& .MuiMenuItem-root":{padding:"8px 16px",minHeight:"auto",fontSize:"14px",lineHeight:"1.5",margin:0},"& .MuiMenuItem-root:first-of-type":{marginTop:0}},mappingSelectMenuList:{padding:0},mappingSelectMenuItem:{padding:"8px 16px",minHeight:"auto",fontSize:"14px",margin:0},mappingSelectPlaceholderEm:{fontStyle:"normal",color:"#888"},mappingTableBodyLabelCell:{fontWeight:700,background:"#fff",borderBottom:"none"},mappingTableBodyCell:{background:"#fff",borderBottom:"none"},mappingTableNoPreviewCell:{textAlign:"center",color:"#888",py:2}},step3:{schedulePanelOuter:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",borderRadius:2,boxShadow:"0 2px 12px #0001"},schedulePanelInner:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:180,mt:{xs:2,sm:4},mb:{xs:2,sm:4},width:"100%",px:{xs:2,sm:0},boxSizing:"border-box"},scheduleFormPaper:{p:{xs:2,sm:2.5},borderRadius:4,minWidth:{xs:"100%",sm:300},maxWidth:340,width:1,display:"flex",flexDirection:"column",alignItems:"center",bgcolor:Ct},scheduleFieldsRow:{display:"flex",flexDirection:{xs:"column",sm:"row"},gap:2,width:"100%",mb:2},scheduleFieldColumn:{flex:1},scheduleFieldLabel:{mb:1,fontSize:14,color:"#222"},syncFrequencySelect:{width:"100%",minWidth:120,borderRadius:2,background:"#fafbfc",fontSize:15,height:40},syncTimeTextField:{width:"100%",minWidth:80,borderRadius:2,background:"#fafbfc",fontSize:15,height:36},scheduleActionsRow:{display:"flex",justifyContent:"stretch",alignItems:"stretch",gap:1.5,mt:1,width:"100%",flexDirection:"row",flexWrap:"nowrap"},scheduleHalfOutlinedButton:{borderRadius:2,fontWeight:500,textTransform:"none",flex:"1 1 0%",minWidth:0,minHeight:44,boxSizing:"border-box",fontSize:"12px",lineHeight:1.25,px:1,py:1.25},scheduleHalfPrimaryButton:{borderRadius:2,minWidth:0,fontWeight:500,textTransform:"none",boxShadow:"none",flex:"1 1 0%",minHeight:44,boxSizing:"border-box",whiteSpace:"nowrap",fontSize:"11px",lineHeight:1.25,px:1,py:1.25,letterSpacing:"-0.01em"}},step4:{completionPanelOuter:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",borderRadius:2,boxShadow:"0 2px 12px #0001"},completionCard:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",maxWidth:320,mx:2,py:6,bgcolor:Ct,borderRadius:5},completionIconCircle:{width:48,height:48,borderRadius:"50%",background:"#2563eb",display:"flex",alignItems:"center",justifyContent:"center",mb:2},completionTitle:{fontSize:17,color:"#222",mb:1,fontWeight:500},completionBackToProductsButton:{color:"#2563eb",fontWeight:500,fontSize:15,textTransform:"none",mt:1}}},ftpSyncStepper:{stepIconCircle:{position:"relative",width:16,height:16,borderRadius:"50%",border:"1px solid",opacity:1,display:"flex",alignItems:"center",justifyContent:"center",background:"#fff",boxSizing:"border-box",flexShrink:0},stepperRoot:{width:"100%",maxWidth:900,opacity:1},stepIconsRow:{width:"100%",minHeight:44,gap:"16px",opacity:1,display:"flex",alignItems:"center",justifyContent:"space-between"},stepColumn:{width:"calc(33.333% - 11px)",minHeight:44,gap:"12px",opacity:1,paddingLeft:"16px",paddingRight:"16px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",boxSizing:"border-box"},stepLabelText:{width:"100%",minHeight:16,fontFamily:"Inter, sans-serif",fontSize:{xs:"11px",sm:"12px"},lineHeight:"16px",letterSpacing:"0px",textAlign:"center",color:"#454545",opacity:1,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap"},progressBarSection:{width:"100%",mt:1,mb:0},mobileStepperProgress:{maxWidth:"100%",flexGrow:1,background:"transparent",padding:0,"& .MuiMobileStepper-progress":{width:"100%"},"& .MuiLinearProgress-root":{height:4,borderRadius:2,backgroundColor:"#f2f2f2"},"& .MuiLinearProgress-bar":{backgroundColor:"#219653"}},getProgressBarTrackOffsetSx:(y,g)=>({marginLeft:`${y}%`,width:`${g}%`})}},m={root:{width:"100%",maxWidth:"100%",marginLeft:0,marginRight:0,display:"flex",flexDirection:"column",alignItems:"stretch",py:{xs:2,sm:3,md:4},px:{xs:0,sm:0,md:4},bgcolor:Ct,minHeight:"100vh",boxSizing:"border-box"},ProductTable:{...p.card,width:"100%",maxWidth:"100%",minHeight:448,gap:"4px",opacity:1,background:Ct,p:0,mb:3},categoryTableContainer:{...p.container},categoryTableShared:{checkboxHeaderSx:r.checkboxSx,checkboxRowSx:i.checkboxSx,checkboxIconSpanHeader:r.iconSpan,checkboxCheckedIconSpan:r.checkedIconSpan,checkboxCheckedIconInner:r.minusInner,checkboxIconSpanRow:i.iconSpan,checkboxRowCheckedIconSpan:i.checkedIconSpan,checkboxRowCheckedIconInner:i.minusInner,checkboxTickIconHeaderSx:r.tickIconSx,checkboxTickIconRowSx:i.tickIconSx},categoryTableHeader:{...c.container,background:Ct,flexWrap:"wrap"},categoryTableHeaderCheckboxCol:c.checkboxCol,categoryTableHeaderCategoryCell:{...c.categoryCell,...c.cellText},categoryTableHeaderArrow:c.arrow,categoryTableHeaderStockCell:{...c.cellText,flex:"1 1 0",minWidth:0,height:16,"@media (max-width: 477px)":{minWidth:80}},categoryTableHeaderProductsCell:{...c.cellText,flex:"1.5 1 0",minWidth:0,height:16},categoryTableHeaderEmptyCell:{...c.emptyCell,width:38,flex:"0 0 38px",opacity:0},categoryTableRow:(...y)=>({...p.rowShell}),categoryTableRowCheckboxFrame:{width:16,height:20,flex:"0 0 16px",display:"flex",alignItems:"center",gap:"8px",opacity:1},categoryNameCell:{flex:"2 1 0",minWidth:0,minHeight:72,height:"auto",display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",gap:"4px",opacity:1},categoryName:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px",letterSpacing:0,color:"#454545",opacity:1},categoryProducts:{height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"18px",letterSpacing:0,color:"#454545",opacity:1},categoryUpdated:{width:"100%",height:12,fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#808080",opacity:1},categoryStockCell:{flex:"1 1 0",minWidth:0,height:32,display:"flex",flexDirection:"column",gap:"4px",opacity:1,"@media (max-width: 477px)":{minWidth:80}},categoryStock:y=>({width:67,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",opacity:1}),categoryOSA:(...y)=>({width:"100%",height:12,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#808080",opacity:1}),categoryImagesCell:{flex:"1.5 1 0",minWidth:0,height:"auto",display:"flex",gap:"4px",opacity:1,flexWrap:"wrap"},categoryImage:{width:56,height:56,flex:"0 0 56px",borderRadius:"8px",border:"1px solid #F1F1F1",objectFit:"cover",background:Ct,opacity:1},categoryMoreImageBox:{display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"#f0f0f0",cursor:"pointer"},categoryMoreImageText:{fontFamily:"Inter, sans-serif",fontSize:12,fontWeight:500,color:"#454545"},categoryViewCell:{width:"auto",height:56,flex:"0 0 auto",display:"flex",alignItems:"center",gap:"2px",opacity:1,marginLeft:"6px"},categoryViewButton:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#454545",background:"none",textTransform:"none",p:0,minWidth:0,boxShadow:"none",justifyContent:"center",alignItems:"center","&:hover":{background:"none",boxShadow:"none"}},categoryViewButtonIcon:{width:12,height:12,color:"#808080"},categoryTableAllStore:{outerCard:{width:"100%",maxWidth:"100%",minHeight:480,gap:"4px",opacity:1},categoryNameBox:{width:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",height:28,gap:"32px",padding:"8px 16px",borderRadius:"8px",borderTopLeftRadius:"8px",borderTopRightRadius:"8px",borderBottomLeftRadius:"8px",borderBottomRightRadius:"8px",bgcolor:"#808080",opacity:1},categoryNameText:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#FFFFFF",opacity:1},tableHeader:{width:"100%",height:28,gap:"16px",padding:"8px 16px 4px 16px",opacity:1},headerProduct:c.cellText,headerStatusText:c.cellText,headerOsaText:c.cellText,arrowDown:{width:12,height:12,color:"#454545"},arrowDownAllStore:{fontSize:12,height:12,color:"#808080",marginLeft:"8px",marginTop:"8px"},rowCard:{width:"100%",maxWidth:"100%",gap:"16px",padding:"12px 16px",border:"1px solid #F1F1F1",borderRadius:"8px",bgcolor:Ue,opacity:1},productBlock:{height:56,gap:"16px",minWidth:0,flex:"1 1 0"},imageBox:{width:56,height:56,border:"1px solid #F1F1F1",borderRadius:"8px"},productName:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},productMeta:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#454545"},productMetaBullet:{color:"#C5C5C5"},productSku:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",color:"#808080"},statusOsaBlock:{height:32,gap:"40px",minWidth:0,flex:"0 1 auto"},statusActiveBox:{width:64,height:20,minHeight:20,maxHeight:20,boxSizing:"border-box",gap:"8px",padding:"4px 6px",borderRadius:"4px",opacity:1,bgcolor:"#D8FBE3",fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#454545",verticalAlign:"middle",display:"inline-flex",alignItems:"center",justifyContent:"center"},statusNoStockBox:{width:64,height:20,minHeight:20,maxHeight:20,boxSizing:"border-box",gap:"8px",padding:"4px 6px",borderRadius:"4px",opacity:1,bgcolor:"#F1F1F1",fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#808080",verticalAlign:"middle",display:"inline-flex",alignItems:"center",justifyContent:"center"},stockValue:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#EB8F00"},osaValue:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545"},onShelfText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#454545"}},categoryTableSingleStore:{outerCard:{width:"100%",maxWidth:"100%",minHeight:520,gap:"6px",opacity:1},gridColumnGap:"4px",metricColumnExtraML:{xs:.75,sm:1,md:1.25},priceColumnExtraML:{xs:1.75,sm:2,md:2.5},tableHeader:{width:"100%",maxWidth:"100%",height:28,columnGap:"4px",rowGap:"4px",padding:"8px 16px 4px 16px",opacity:1},headerLabel:c.cellText,headerProduct:{minWidth:0,flex:"1 1 0"},headerStatus:{minWidth:0,flex:"0 1 auto"},headerPrice:{minWidth:0,flex:"0 1 auto"},headerStock:{minWidth:0,flex:"0 1 auto"},headerOffer:{minWidth:0,flex:"0 1 auto",gap:"32px",alignItems:"center"},stockOfferGap:"12px",checkboxBlue:{border:`0.5px solid ${gt}`,bgcolor:"#F3F8FF",color:gt},rowCard:{width:"100%",maxWidth:"100%",height:88,columnGap:"4px",rowGap:"0px",padding:"16px",border:"1px solid #F1F1F1",borderRadius:"8px",bgcolor:Ue,opacity:1},productBlock:{width:237,height:56,gap:"16px"},statusBlock:{width:64,height:20},priceBlock:{width:50,height:48,gap:"4px"},priceText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},clockIcon:{width:16,height:16,borderRadius:"4px",padding:"2px",bgcolor:Ct},stockBlock:{height:32,gap:"4px",minWidth:0,flex:"0 1 auto"},offerBlock:{height:36,gap:"4px",minWidth:0,flex:"0 1 auto"},offerText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},onShelfPercentRed:{color:"#d32f2f"},onShelfPercentNormal:{color:"#808080"},onShelfSpan:{color:"#808080"}},categoryTablePagination:s,contentWrapper:{position:"relative",zIndex:0,width:"100%",boxSizing:"border-box",bgcolor:Ct,minHeight:"100vh"},loadingBox:{minHeight:300,display:"flex",alignItems:"center",justifyContent:"center"},categoryImageDialogTitleRow:{display:"flex",alignItems:"center",justifyContent:"space-between"},categoryImageDialogTitleText:{fontFamily:"Inter, sans-serif",fontSize:16,fontWeight:500},categoryImageDialogCloseButton:{textTransform:"none",fontSize:14},categoryImageDialogContent:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",pb:3},categoryImageDialogImageBox:{maxWidth:"100%",maxHeight:"70vh",display:"flex",alignItems:"center",justifyContent:"center"},categoryImageDialogImage:{maxWidth:"100%",maxHeight:"70vh",borderRadius:2,objectFit:"contain"},categoryImageDialogFallbackText:{fontFamily:"Inter, sans-serif",fontSize:14,color:"#808080",textAlign:"center"},categoryImageDialogFooterRow:{mt:2,display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},categoryImageDialogNavButton:{textTransform:"none"},categoryImageDialogCounterText:{fontFamily:"Inter, sans-serif",fontSize:12,color:"#808080"}};return m.categoryTablePagination=s,h.productDetail=m,h}const _o=0,Cl=1e4;function x2({open:e,filters:t={},onChange:n,onClose:r,onApply:i,priceRange:s,mode:a="products"}){const{universal:c}=tt(),d=a==="home"||a==="category",p=N.useMemo(()=>{const Y=s?.min??t.minPrice??_o,U=s?.max??t.maxPrice??Cl,B=Number(Y),O=Number(U);return{min:Number.isFinite(B)?B:_o,max:Number.isFinite(O)?Math.max(O,Number.isFinite(B)?B:_o):Cl}},[s?.min,s?.max,t.minPrice,t.maxPrice]),u=N.useMemo(()=>{const Y=s?.min??t.minOsa??_o,U=s?.max??t.maxOsa??Cl,B=Number(Y),O=Number(U);return{min:Number.isFinite(B)?B:_o,max:Number.isFinite(O)?Math.max(O,Number.isFinite(B)?B:_o):Cl}},[s?.min,s?.max,t.minOsa,t.maxOsa]),h=d?u:p,m=d?"minOsa":"minPrice",y=d?"maxOsa":"maxPrice",g=t.status==="active"||t.status==="inactive"?t.status:"",f=t.stock==="inStock"||t.stock==="outOfStock"?t.stock:"",E=d?["categoryName","productCount","totalStock","totalOsa","osaPercent","lastUpdated"]:["price","productName","stock"],w=E.includes(t.sortBy)?t.sortBy:E[0],S=t.sortOrder==="asc"||t.sortOrder==="desc"?t.sortOrder:"",T=t[m]!=null&&Number.isFinite(Number(t[m]))?Number(t[m]):null,v=t[y]!=null&&Number.isFinite(Number(t[y]))?Number(t[y]):null,k=T??h.min,M=v??h.max,_=(Y,U)=>{n({...t,status:U===g?void 0:U||void 0})},z=(Y,U)=>{n({...t,stock:U===f?void 0:U||void 0})},F=Y=>{const U=Y.target.value;E.includes(U)&&n({...t,sortBy:U})},C=(Y,U)=>{const B=U===S?void 0:U;if(!B){n({...t,sortOrder:void 0});return}n({...t,sortBy:t.sortBy?t.sortBy:w,sortOrder:B})},I=(Y,U)=>{if(!Array.isArray(U)||U.length!==2)return;const B=Number(U[0]),O=Number(U[1]),j=Math.min(B,O),H=Math.max(B,O);n({...t,[m]:j,[y]:H})},$=d?t.minOsa!=null||t.maxOsa!=null:!1,D=d?!1:t.minPrice!=null||t.maxPrice!=null,L=d?!!(t.sortBy&&t.sortOrder||$):!!(t.status==="active"||t.status==="inactive"||t.stock==="inStock"||t.stock==="outOfStock"||t.sortBy&&t.sortOrder||D),V=()=>{const Y={...t,status:void 0,stock:void 0,sortBy:void 0,sortOrder:void 0,[m]:void 0,[y]:void 0};n(Y),typeof i=="function"&&i(Y)};return l.jsxs(ko,{open:e,onClose:r,maxWidth:"xs",fullWidth:!0,children:[l.jsx(Oo,{children:d?"Filter Categories":"Filter Products"}),l.jsx(Qi,{children:l.jsxs(P,{display:"flex",flexDirection:"column",gap:2,pt:.5,children:[!d&&l.jsxs(l.Fragment,{children:[l.jsxs(Zi,{component:"fieldset",children:[l.jsx(Io,{component:"span",onClick:()=>n({...t,status:void 0}),sx:{fontWeight:600,color:"text.primary",mb:.5,cursor:"pointer",display:"inline-block",userSelect:"none"},children:"Status"}),l.jsxs(as,{row:!0,value:g,onChange:_,name:"status",children:[l.jsx(Cn,{value:"active",control:l.jsx(Cr,{size:"small"}),label:"Active"}),l.jsx(Cn,{value:"inactive",control:l.jsx(Cr,{size:"small"}),label:"Inactive"})]})]}),l.jsxs(Zi,{component:"fieldset",children:[l.jsx(Io,{component:"span",onClick:()=>n({...t,stock:void 0}),sx:{fontWeight:600,color:"text.primary",mb:.5,cursor:"pointer",display:"inline-block",userSelect:"none"},children:"Stock"}),l.jsxs(as,{row:!0,value:f,onChange:z,name:"stock",children:[l.jsx(Cn,{value:"inStock",control:l.jsx(Cr,{size:"small"}),label:"In Stock"}),l.jsx(Cn,{value:"outOfStock",control:l.jsx(Cr,{size:"small"}),label:"Out of Stock"})]})]})]}),l.jsx(Zi,{component:"fieldset",children:l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:1},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:1.5,width:"100%",justifyContent:"space-between"},children:[l.jsx(Io,{sx:{fontWeight:600,color:"text.primary",mb:0,display:"block",whiteSpace:"nowrap",flexShrink:0,cursor:"pointer"},onClick:()=>n({...t,sortBy:void 0,sortOrder:void 0}),children:"Sort"}),l.jsx(cn,{value:w,onChange:F,size:"small",variant:"standard",disableUnderline:!0,sx:{width:"140px",maxWidth:"100%"},MenuProps:{PaperProps:{sx:{width:"140px"}}},children:d?[l.jsx(et,{value:"categoryName",children:"categoryName"},"categoryName"),l.jsx(et,{value:"productCount",children:"productCount"},"productCount"),l.jsx(et,{value:"totalStock",children:"totalStock"},"totalStock"),l.jsx(et,{value:"totalOsa",children:"totalOsa"},"totalOsa"),l.jsx(et,{value:"osaPercent",children:"osaPercent"},"osaPercent"),l.jsx(et,{value:"lastUpdated",children:"lastUpdated"},"lastUpdated")]:[l.jsx(et,{value:"price",children:"Price"},"price"),l.jsx(et,{value:"productName",children:"ProductName"},"productName"),l.jsx(et,{value:"stock",children:"Stock"},"stock")]})]}),l.jsxs(as,{row:!0,value:S,onChange:C,name:"sortOrder",sx:{mt:.5},children:[l.jsx(Cn,{value:"asc",control:l.jsx(Cr,{size:"small"}),label:"Ascending"}),l.jsx(Cn,{value:"desc",control:l.jsx(Cr,{size:"small"}),label:"Descending"})]})]})}),l.jsxs(P,{children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:1.5,mb:1.5},children:[l.jsx(Io,{sx:{fontWeight:600,color:"text.primary",mb:0,whiteSpace:"nowrap"},children:d?"OSA":"Price"}),l.jsxs(W,{variant:"body2",color:"text.secondary",sx:{mb:0},children:["Min: ",d?k:`₹${k}`," — Max: ",d?M:`₹${M}`]})]}),l.jsx(P,{sx:{px:.5},children:l.jsx(Gm,{value:[k,M],onChange:I,min:h.min,max:h.max,valueLabelDisplay:"on",valueLabelFormat:Y=>d?`${Y}`:`₹${Y}`,size:"small",disableSwap:!1,sx:{mt:2}})})]})]})}),l.jsxs(zd,{sx:{gap:.5,flexWrap:"wrap"},children:[l.jsx(Ze,{onClick:r,children:"Cancel"}),L&&l.jsx(Ze,{variant:"contained",onClick:V,sx:c.getUniversalBlueButtonSx(),children:"Clear Filters"}),l.jsx(Ze,{variant:"contained",onClick:()=>i&&i(),sx:c.getUniversalBlueButtonSx(),children:"Apply"})]})]})}const v2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAM5JREFUeAHVUUEOgjAQXGtJOPIADhw96g8wAcLRL/AS8Af6A3/AAyCBn+gTuLdN3RpqSG2TJlxkkmbb2elutwOwGaRpGhVF0Zo8tYmzLGuWZ875LQzDSAhxNLXE1snkxnGcwAHqEDfgCWrpbnvBy6tAEAQXDLUpwsInWIuyLJM8z58mT2AldnqD1rWEkB+bpJQTY+w82zioPY5ad11Xqfz3D9BrRUS2LsoZHOGTw8sDhqvO0aUIg9PvGQmuO3Z/aGIPnojjGHDEQ9/3FfwV3mNqQTvMf4BBAAAAAElFTkSuQmCC";function S2(e){const{sx:t,style:n,...r}=e||{},i=t&&typeof t=="object"?t:{},s={display:"block",...n||{},...typeof i.width<"u"?{width:i.width}:{},...typeof i.height<"u"?{height:i.height}:{},...typeof i.opacity<"u"?{opacity:i.opacity}:{}};return l.jsx("img",{src:v2,alt:"Sort",style:s,...r})}const w2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAPdJREFUeAGlUtENgjAQbUkHYAQdwREkwBriBjKBOIFsIK4BfLiBI+AG8MkP1HeEmoa0JcRLmsdx7+7d9cqZw8IwvHDO78qXUqZ1Xec6x2Nu85F0q6qKE5K/JKwVYOjgGkWRJITbLeNirQApo+3MKqA7UGoAO+bu6FOW5d5KoHa3xKwjxHF8Gscxh2KHk0H1aeIJWhUz3C5mz4QQB/oehuENmAqAn2m0btrCfMMqMZ3R7/ue0aEu9Ngyxzgb/iUYowG2QRAkhrh03gEeTwEo2IoJkzLgYeGf58I/8yzKTD1f9ZT1mLPAVvu7wNQadttiLf7G3BdGOn4B2S1yLsw0kyQAAAAASUVORK5CYII=";function au({sx:e={},...t}){const n=e?.width??14,r=e?.height??14;return l.jsx(P,{component:"img",src:w2,alt:"",role:"presentation",sx:{width:n,height:r,display:"block",objectFit:"contain",boxSizing:"border-box",...e},...t})}const C2=yt(l.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");function Kr(e){return l.jsx(C2,{...e})}function E2(e){return l.jsx(su,{...e})}const T2={minWidth:34,width:34,height:34,p:0,backgroundColor:"#fff",border:"none",borderRadius:1,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"};function ly(e){const{sx:t={},...n}=e;return l.jsx(P,{component:"button",sx:{...T2,...t},title:"Notifications","aria-label":"Notifications",...n,children:l.jsx(tu,{size:20})})}const A2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACJSURBVHgBlVBBDYAwDGxQgAQkTMIk4AALczAk4AAcgBMkTAISSge3x0iXjUsuS9q79joiBcwchEbrdYp4kCeyzSCweCeqIU5HnJ1fTCVhL/TCS3iiNsO0ZvdgYsLxGeQ4h4lFi0aK4SE22BjQH7VoaaKDcItxqXL4AlOgFuCnni3UChjsH0NRfAPyobTjv0sWNAAAAABJRU5ErkJggg==",P2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABGSURBVHgBXYtBDQAgDAMrBSlIQAIScIYEJCABCUgYbdhj2SXNku4KOGa2mYYIi2qfiWSK5fcyXY8m08vDDKbEpcyBjObRfCpVS/aG0GXFAAAAAElFTkSuQmCC";function cy(e){const{sx:t={},...n}=e;return l.jsx(P,{sx:{flexShrink:0,...t},...n,children:l.jsx(P,{sx:{padding:"1px",borderRadius:"10px",background:"linear-gradient(93.46deg, #568BDC 8.37%, #87FFD7 52.21%, #5ABDCE 93.24%)",flexShrink:0,width:32,height:32,boxSizing:"border-box"},children:l.jsx(P,{component:"button",sx:{position:"relative",width:"100%",height:"100%",minWidth:30,minHeight:30,padding:0,opacity:1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",borderRadius:"9px",background:`linear-gradient(94.11deg, #5BC0CF 3.33%, ${gt} 92.67%)`,border:"none",cursor:"pointer"},title:"Ask Aira","aria-label":"Ask Aira",children:l.jsxs(P,{sx:{position:"relative",width:20,height:20,opacity:1,flexShrink:0},children:[l.jsx(P,{component:"img",src:A2,alt:"",sx:{position:"absolute",width:10,height:10,top:"3.33px",left:"3.34px",opacity:1,objectFit:"contain",display:"block"}}),l.jsx(P,{component:"img",src:P2,alt:"",sx:{position:"absolute",width:4.166666507720947,height:4.166666507720947,top:"12.5px",left:"12.5px",opacity:1,objectFit:"contain",display:"block"}})]})})})})}const k2=({filters:e,onFilterChange:t,stores:n=[],onOpenFilterModal:r,StoresModal:i,storesModalProps:s,onStoreSelect:a,showBackButton:c=!1,backTo:d="/",backState:p,tenantStatus:u={matched:!0},priceRange:h,filterMode:m,styles:y,onSortToggle:g,sortIconRotationDeg:f=0})=>{const b=Lt(),x=tt(),{universal:E}=x,w=E.getGlobalCheckboxStyles({uncheckedBorder:"#B0B0B0",checkedBorder:"#1A73E8",checkedColor:"#1A73E8"}),[S,T]=N.useState(null),v=!!S,[k,M]=N.useState(!1),[_,z]=N.useState(!1),[F,C]=N.useState(e||{}),[I,$]=N.useState(e?.search??""),D=N.useRef(null),L=Array.isArray(e?.store)?e.store:[],V=()=>{T(null)},[Y,U]=N.useState(L),B=Z=>{U(Z==="all"?["all"]:[Z])},O={...w.checkboxSx,padding:0,marginRight:1,"& .MuiSvgIcon-root":{...w.checkboxSx["& .MuiSvgIcon-root"],width:18,height:18,borderRadius:"3px",border:"1.5px solid #B0B0B0",backgroundColor:Ue},"&.Mui-checked .MuiSvgIcon-root":{...w.checkboxSx["&.Mui-checked .MuiSvgIcon-root"],border:"1.5px solid #1A73E8"}},j={...w.iconSpan,width:18,height:18,borderRadius:"3px",border:"1.5px solid #B0B0B0",display:"inline-flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",backgroundColor:Ue},H={...w.checkedIconSpan,width:18,height:18,borderRadius:"3px",border:"1.5px solid #1A73E8",display:"inline-flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",backgroundColor:Ue,position:"relative"},G=Z=>{i?M(!0):(U(L.length===0?["all"]:L),T(Z.currentTarget))},X=()=>{t({...e,store:Y}),T(null)},te=Z=>{a?a(Z):t({...e,store:Z}),M(!1)},le=()=>{M(!1)};N.useEffect(()=>{$(e?.search??"")},[e?.search]),N.useEffect(()=>{if(t)return D.current&&clearTimeout(D.current),D.current=setTimeout(()=>{const Z=(I??"").trim(),R=(e?.search??"").trim();Z!==R&&t({...e,search:Z})},500),()=>{D.current&&(clearTimeout(D.current),D.current=null)}},[I,e,t]);const ce=Z=>{if(Z.key==="Enter"){Z.preventDefault(),D.current&&(clearTimeout(D.current),D.current=null);const R=(I??"").trim();if(R===(e?.search??"").trim())return;t({...e,search:R})}},ae=y!=null&&y.root!==void 0?y:(y!=null&&y.topBar!=null?y.topBar:x.topBar)||{};return l.jsxs(l.Fragment,{children:[l.jsx(Ut,{maxWidth:!1,disableGutters:!0,sx:x.productDetail?.categoryTableContainer,children:l.jsx(P,{sx:{...ae.root,position:"relative",width:"100%",height:72,minHeight:72,maxHeight:72,display:"flex",alignItems:"center",paddingTop:0,paddingBottom:0,gap:"16px",boxSizing:"border-box",overflow:"visible"},children:l.jsx(Ut,{maxWidth:!1,disableGutters:!0,sx:{width:"100%",display:"flex",justifyContent:"flex-start",boxSizing:"border-box",px:{xs:1,sm:2,md:4}},children:l.jsx(P,{sx:{...ae.inner,width:"100%",minWidth:0,height:32,minHeight:32,maxHeight:32,maxWidth:"100%",boxSizing:"border-box",gap:"16px",display:"flex",flexDirection:"row",alignItems:"center",overflow:"hidden",flexShrink:0,flexWrap:"nowrap"},children:l.jsxs(d2,{styles:y,gap:12,OverflowIcon:ay,overflowTooltip:"Menu",children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",flex:1,minWidth:0},children:[c&&l.jsxs(l.Fragment,{children:[l.jsxs(P,{component:"button",onClick:()=>b(d,p?{state:p}:void 0),sx:{display:"flex",alignItems:"center",width:48,height:16,gap:"4px",opacity:1,background:"none",border:"none",padding:0,cursor:"pointer","&:hover":{opacity:.85}},children:[l.jsx(Kr,{sx:{width:16,height:16,opacity:1,color:"#808080",flexShrink:0}}),l.jsx(W,{component:"span",sx:{width:28,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",display:"flex",alignItems:"center"},children:"Back"})]}),l.jsx(nn,{orientation:"vertical",flexItem:!0,sx:{mx:"clamp(6px, 2vw, 16px)",height:24,alignSelf:"center",borderColor:"#e0e0e0"}})]}),l.jsx(P,{sx:{display:"flex",alignItems:"center",minWidth:0,flex:1,maxWidth:"min(480px, 100%)"},children:l.jsxs(P,{sx:{...ae.searchBox,display:"flex",flexDirection:"row",alignItems:"center",width:"100%",maxWidth:"min(414px, 100%)",height:20,gap:"clamp(6px, 2vw, 12px)",borderRadius:2,border:"none",backgroundColor:Ue,px:1.5,py:0,boxSizing:"border-box"},children:[l.jsx(ou,{size:16,style:{position:"absolute",left:12,color:"#000000",top:"50%",transform:"translateY(-50%)"}}),l.jsx(Yi,{placeholder:c?"Search Products":"Search Products & Categories",value:I,onChange:Z=>$(Z.target.value),onKeyDown:ce,sx:{...ae.searchInput||{},pl:3.5,width:"100%","& .MuiInputBase-input":{py:1.25,boxSizing:"border-box",fontSize:"clamp(12px, 1.6vw, 14px)"},"&::placeholder":{color:"#a0a0a0",opacity:1}}})]})})]}),l.jsx(nn,{orientation:"vertical",flexItem:!0,"data-overflow-divider":!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",mx:"clamp(4px, 1.2vw, 10px)"}}),l.jsxs(P,{sx:{display:"flex",gap:0,alignItems:"center"},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",flex:"0 1 216px",maxWidth:216,height:32,borderRadius:"6px",border:"1px solid #F1F1F1",paddingTop:"6px",paddingRight:"8px",paddingBottom:"6px",paddingLeft:"10px",backgroundColor:Ue,cursor:"pointer",gap:1,boxSizing:"border-box"},onClick:G,tabIndex:0,"aria-label":"Select stores",children:[l.jsx(au,{size:12,style:{color:"#555",marginRight:4}}),l.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",minWidth:56,height:16,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:L.length===0||L.includes("all")?"All Stores":L.length===1?"1 Store":`${L.length} Stores`}),l.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",width:61,height:16,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:` ${n.filter(Z=>Z.id!=="all"&&Z.storeCode!=="all").length} stores`}),l.jsx(Sl,{size:16,style:{width:16,height:16,opacity:1,flexShrink:0,color:"#454545"}})]}),l.jsxs(is,{anchorEl:S,open:v,onClose:V,disableScrollLock:!0,PaperProps:{sx:{minWidth:190,maxWidth:200,borderRadius:"8px",py:.5,overflow:"hidden"}},children:[l.jsxs(et,{onClick:()=>B("all"),sx:{py:.75,px:1.25,alignItems:"flex-start"},children:[l.jsx(Nt,{checked:Y.length===0||Y.includes("all"),icon:l.jsx(P,{sx:j}),checkedIcon:l.jsx(P,{sx:H,children:l.jsx(dn,{sx:{...w.tickIconSx,fontSize:14,color:"#1A73E8"}})}),sx:O}),l.jsx(qd,{primary:"All Stores",primaryTypographyProps:{sx:{fontSize:"12px",fontWeight:500,color:"#454545"}}})]}),l.jsx(nn,{}),l.jsx(P,{sx:{maxHeight:160,overflowY:"auto",overflowX:"hidden"},children:n.filter(Z=>Z.id!=="all").map(Z=>l.jsxs(et,{onClick:()=>B(Z.id),sx:{py:.75,px:1.25,alignItems:"flex-start",whiteSpace:"normal"},children:[l.jsx(Nt,{checked:Y.includes(Z.id),icon:l.jsx(P,{sx:j}),checkedIcon:l.jsx(P,{sx:H,children:l.jsx(dn,{sx:{...w.tickIconSx,fontSize:14,color:"#1A73E8"}})}),sx:{...O,alignSelf:"flex-start"}}),l.jsx(qd,{primary:Z.name,sx:{flex:"1 1 auto",minWidth:0,maxWidth:"100%",my:0},primaryTypographyProps:{noWrap:!1,sx:{fontSize:"12px",fontWeight:400,color:"#454545",lineHeight:1.4,whiteSpace:"normal",wordBreak:"break-word",overflowWrap:"break-word",display:"block"}}})]},Z.id))}),l.jsx(nn,{}),l.jsx(P,{sx:{display:"flex",justifyContent:"flex-end",p:1},children:l.jsx(Ze,{variant:"contained",size:"small",onClick:X,sx:E.getUniversalBlueButtonSx(),children:"Apply"})})]})]}),l.jsxs(P,{sx:{display:"flex",alignItems:"center",height:32,gap:"4px",borderRadius:"6px",paddingTop:"6px",paddingRight:"8px",paddingBottom:"6px",paddingLeft:"10px",border:"1px solid #F1F1F1",backgroundColor:Ue,boxSizing:"border-box",cursor:"pointer"},onClick:()=>{r?r():(C(e||{}),z(!0))},children:[l.jsx(W,{sx:{height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center",display:"flex",alignItems:"center",color:"#454545",whiteSpace:"nowrap"},children:"Filters"}),l.jsx(Sl,{size:16,style:{width:16,height:16,opacity:1,color:"#454545",flexShrink:0}})]}),l.jsxs(P,{sx:{display:"flex",alignItems:"center",height:32,gap:"4px",borderRadius:"6px",paddingTop:"6px",paddingRight:"8px",paddingBottom:"6px",paddingLeft:"10px",border:"1px solid #F1F1F1",backgroundColor:Ue,boxSizing:"border-box",cursor:"pointer"},onClick:()=>{u?.loading||g&&g()},children:[l.jsx(W,{sx:{height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center",display:"flex",alignItems:"center",color:"#454545",whiteSpace:"nowrap"},children:"Sort"}),l.jsx(S2,{sx:{width:16,height:16,opacity:1,color:"#454545"},style:{transform:`rotate(${f}deg)`,transformOrigin:"50% 50%"}})]}),l.jsx(nn,{orientation:"vertical",flexItem:!0,"data-overflow-divider":!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",mx:"clamp(4px, 1.2vw, 10px)"}}),l.jsx(P,{component:"button",sx:{...ae.iconOnly,cursor:u.loading?"not-allowed":"pointer",opacity:u.loading?.5:1,background:"none",border:"none",outline:"none",boxShadow:"none",pointerEvents:u.loading?"none":"auto"},title:u.loading?"Loading...":"Settings",tabIndex:-1,onClick:()=>{u.loading||b("/product-setting",{state:{tenantIntegrationMatched:!!u.matched}})},children:l.jsx(E2,{size:18.33,color:"#454545"})}),l.jsx(nn,{orientation:"vertical",flexItem:!0,"data-overflow-divider":!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",mx:"clamp(4px, 1.2vw, 10px)"}}),l.jsx(ly,{}),l.jsx(cy,{})]})})})})}),i&&(()=>{const{open:Z,onClose:R,onStoreSelect:q,...ie}=s||{};return l.jsx(i,{open:k,onClose:le,onStoreSelect:te,selectedStores:L,...ie})})(),!r&&l.jsx(x2,{open:_,filters:F,onChange:C,onClose:()=>z(!1),onApply:Z=>{t&&t(Z!==void 0?Z:F),z(!1)},priceRange:h,mode:m})]})};const O2=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),I2=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),dy=e=>{const t=I2(e);return t.charAt(0).toUpperCase()+t.slice(1)},uy=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),N2=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var M2={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 F2=N.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:a,...c},d)=>N.createElement("svg",{ref:d,...M2,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:uy("lucide",i),...!s&&!N2(c)&&{"aria-hidden":"true"},...c},[...a.map(([p,u])=>N.createElement(p,u)),...Array.isArray(s)?s:[s]]));const Xr=(e,t)=>{const n=N.forwardRef(({className:r,...i},s)=>N.createElement(F2,{ref:s,iconNode:t,className:uy(`lucide-${O2(dy(e))}`,`lucide-${e}`,r),...i}));return n.displayName=dy(e),n};const D2=Xr("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"}]]);const B2=Xr("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const py=Xr("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const _2=Xr("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const $2=Xr("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"}]]);const z2=Xr("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);const L2=Xr("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),j2="(max-width:480px)",W2="(max-width:370px)",V2=({breadcrumbRight:e="Settings",onBack:t,breadcrumbs:n})=>{const r=zt(),i=Lt(),s=r.pathname||"",a=_t(j2),c=_t(W2),d=t||(()=>i(-1)),p=()=>{const m=s.replace(/\/+$/,"");return m==="/product-setting"?[{label:"Products",to:"/"},{label:"Settings",to:"/product-setting"}]:m==="/products/settings/ftp-sync"?[{label:"Products",to:"/"},{label:"Settings",to:"/product-setting"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}]:m==="/catalogs/manage-shared"?[{label:"Products",to:"/"},{label:"Settings",to:"/product-setting"},{label:"Manage Shared Catalogs",to:"/catalogs/manage-shared"}]:m==="/osa"?[{label:"Products",to:"/"},{label:"OSA Requests",to:"/osa"}]:[{label:"Products",to:"/"},{label:"Settings",to:"/product-setting"}]},u=n&&Array.isArray(n)&&n.length>0?n:p(),h=(m=12)=>{if(!u||!Array.isArray(u)||u.length===0)return null;const y=c?"0 1px":a?"0 2px":"0 4px",g=c?"1px":a?"2px":"4px";return l.jsx(P,{sx:{display:"flex",alignItems:"center",gap:g,minWidth:0,flex:1,overflow:"hidden"},children:u.map((f,b)=>l.jsxs(N.Fragment,{children:[b>0&&l.jsx(py,{size:m,color:"#808080",style:{margin:y,flexShrink:0}}),l.jsx(W,{onClick:f.to?()=>i(f.to):void 0,sx:{fontFamily:"Inter, sans-serif",fontWeight:b===u.length-1?700:400,fontSize:b===u.length-1?a?c?"12px":"13px":"16px":a?c?"10px":"11px":"12px",lineHeight:b===u.length-1?"18px":"16px",letterSpacing:0,color:b===u.length-1?"#000000":"#808080",verticalAlign:"middle",cursor:f.to?"pointer":"default","&:hover":f.to?{opacity:.85}:void 0,...b===u.length-1?{minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{flexShrink:0}},children:f.label})]},f.label))})};return l.jsx(P,{sx:{position:"sticky",top:0,left:0,right:0,width:"100%",height:72,minHeight:72,maxHeight:72,paddingTop:"20px",gap:"20px",opacity:1,color:"#FFFFFF",backgroundColor:Ue,boxSizing:"border-box",display:"flex",flexDirection:"column",alignItems:"center",overflow:"hidden",zIndex:1100},children:l.jsxs(P,{sx:{width:"100%",maxWidth:1200,minWidth:0,height:32,paddingRight:"20px",paddingLeft:"20px",gap:"16px",opacity:1,boxSizing:"border-box",display:"flex",flexDirection:"row",alignItems:"center","@media (max-width: 480px)":{paddingRight:"8px",paddingLeft:"8px",gap:"6px"},"@media (max-width: 370px)":{paddingRight:"4px",paddingLeft:"4px",gap:"3px"}},children:[l.jsxs(P,{sx:{flex:1,minWidth:0,height:32,gap:"16px",opacity:1,display:"flex",alignItems:"center",flexShrink:0,overflow:"hidden","@media (max-width: 480px)":{gap:"6px",flexShrink:1},"@media (max-width: 370px)":{gap:"3px"}},children:[l.jsxs(P,{onClick:d,sx:{width:"auto",minWidth:c?32:40,maxWidth:48,height:16,gap:c?"1px":a?"2px":"4px",opacity:1,display:"flex",alignItems:"center",cursor:"pointer",flexShrink:0,background:"none",border:"none",padding:0,"&:hover":{opacity:.85}},children:[l.jsx(Kr,{sx:{width:16,height:16,opacity:1,color:"#808080",flexShrink:0}}),l.jsx(W,{component:"span",sx:{width:"auto",height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:c?"10px":a?"11px":"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",display:"flex",alignItems:"center",flexShrink:0},children:"Back"})]}),l.jsx(nn,{orientation:"vertical",flexItem:!0,sx:{mx:0,height:24,alignSelf:"center",borderColor:"#e0e0e0"}}),l.jsx(P,{sx:{flex:1,minWidth:0,height:20,paddingLeft:c?"2px":"8px",gap:"4px",opacity:1,display:"flex",alignItems:"center"},children:u&&u.length>0?h(c?9:12):l.jsxs(l.Fragment,{children:[l.jsx(W,{sx:{width:"auto",height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:c?"10px":a?"11px":"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",verticalAlign:"middle",flexShrink:0},children:"Products"}),l.jsx(py,{size:c?9:a?10:12,color:"#808080",style:{margin:c?"0 1px":a?"0 2px":"0 4px",flexShrink:0}}),l.jsx(W,{sx:{flex:1,minWidth:0,height:20,fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:c?"12px":a?"13px":"16px",lineHeight:a?"18px":"20px",letterSpacing:0,color:"#000000",verticalAlign:"middle",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e})]})})]}),l.jsx(nn,{orientation:"vertical",flexItem:!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",flexShrink:0,marginRight:a?0:"-8px"}}),l.jsxs(P,{sx:{marginLeft:"auto",display:"flex",alignItems:"center",gap:c?"4px":a?"8px":"16px",flexShrink:0},children:[l.jsx(ly,{}),l.jsx(cy,{})]})]})})},fy=N.createContext(null);function $o(){return N.useContext(fy)}function H2(){const t=zt().pathname||"",[n,r]=N.useState({}),[i,s]=N.useState({}),a=t.startsWith("/product-setting")||t.startsWith("/products/settings")||t.startsWith("/catalogs/manage-shared")||t.startsWith("/osa"),c=N.useMemo(()=>({setTopbarProps:r,setSettingTopbarProps:s}),[]);return l.jsx(fy.Provider,{value:c,children:l.jsxs(P,{sx:{display:"flex",flexDirection:"column",width:"100%",minHeight:"100vh",boxSizing:"border-box"},children:[l.jsx(P,{sx:{position:"sticky",top:0,zIndex:1100,flexShrink:0,width:"100%"},children:a?l.jsx(V2,{onBack:i.onBack,breadcrumbs:i.breadcrumbs}):n.hide?null:(()=>{const{hide:d,...p}=n;return l.jsx(k2,{...p})})()}),l.jsx(P,{component:"main",sx:{flex:"1 1 auto",display:"flex",flexDirection:"column",width:"100%",minWidth:0},children:l.jsx(Cb,{})})]})})}function zo({text:e="Fetching",fullScreen:t=!0,textVisible:n=!0}){const r=tt(),i=t?{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 64px)"}:r?.loadingBox||{minHeight:300,display:"flex",alignItems:"center",justifyContent:"center"};return l.jsx(P,{sx:{...i,animation:"fade-in 1s ease-in-out","@keyframes fade-in":{from:{opacity:0},to:{opacity:1}}},children:l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:1,px:2,py:1,borderRadius:2,bgcolor:"#f5f7fa"},children:[l.jsx(Vr,{size:24}),n&&l.jsxs(W,{sx:{animation:"fade-in 1s ease-in-out","@keyframes fade-in":{from:{opacity:0},to:{opacity:1}}},children:[e," ..."]})]})})}const U2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAACgCAYAAABJ/yOpAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAC2pJREFUeAHt3VtsHFcZB/Bvdr3rK6lTOU7pLbRQkcTmlqYtRKliEAGkSG2eEnjgIp6QKt6AVwpvSEg8IKQKIbU8oRQJNUFFEFdKiNKg0ARwIYkDwm2aNE0TK7XcxLHXuzudb2ZOvN3sfjs7tz1n5v+TLFtK4uza5z/nO5c5Y9kOAoCWCgQAbSEgAAIEBECAgAAIEBAAAQICIEBAAAQICIAAAQEQICAAAgQEQICAAAgQEAABAgIgQEAABAgIgAABARAgIAACBARAgIAACBAQAAECAiBAQAAECAiAAAEBECAgAAIEBECAgAAIEBAAAQICIEBAAAQICIAAAQEQICAAAgQEQICAAAgQEAABAgIgQEAABAgIgAABARAgIJo4NWfTc6/YdKtCoBEERBOn5ojm3iV6Z4FAIwgIgAABCWF5lejMJdLe5ffQI0WFgIRweMam3/7VpkOnbdLVezeJnpu26RcvY1wTBQISwvaPWzRQJjo+SzT9b/1CosLBPd3OzRYNlglCQkBCuHc90f7PW+7X0687QTmvT0hUOPgzv86nHiWIAAEJaeIBbnxeSA6d8maheo17DC79OBzrh4m+t9siiAYBiWDnZqLdn/Ia4R+d8QgPinvp4CnvNahwDJQIIuqjnLGdami1TlR3PuIojHZuIVpcJjr5P+/q/Z0pi0aHqWt1/8WsVIlurXb++wUnl+UikeV3EtOv23R6bi0c60O8BrhTrgKyWiOq1LyQxOmrn7Fo4aZN5y8TPX/Epm9xSIa6+ha3XxMHt1bv/Pedt+G+n37nN3j0jO1MFpDbY3x7F8IRp9yUWNWad3W2ExpPP/2YRRtHiRaWiF484c0gpeHYOS8c7Kntljswh/jkJiDccySJr977d3g9xxVnce7AieRnts5ftukvM97Xuz9t0faHCWKWi4BwyVJPYSaWw6HKqwvXnEHza8n9p9xTHXzN+3rXVou+NEmQgFwExE5xmYLDsW+HN4M0c8HrTYLodsaJw8dl3BOPWE5AnPcYYNwC3bNs29Z3v0RMePyxXKVUcTBmLtjuAD6Jvz/rTAi8u0BuOBgHrA+T9rHLRUC4vFrK+H6k4fLalC/EJxfXHF4zKGb4nXLPgXAkIzed8kCfF5Ss4ffUn7vl3vTkosRS+J3ydO9qwlO+aSla3tgDvUdyUg8I/28125t67VUy+TXwuMTkS0MxI2UVv4Wipe/7STUg3Ch5arKemz4LguJSsVT0PnSSWvXKMeRNeKYXdEsrdXpr3swpsbF1fTT2ET0HLHzRXPGn4nUKSWo/rSyE4+DJBXrp72bf5L338VF6+olR0lWlqtesXCoBqdfNL6vmF6u3wzHxwACZ6MzFZfc9fPL+Adp8n57vgZtJta5PL5JOQDIw5jj8r0X389TkCD3ztTEy0fNHrtOfTi/S7KVlbQPCdGov2JwQ0D/nltzPUxMjZKrHP+HdpPLq7A2CYFIJiOkLdDwon3+/ShucQa6p5RXj1z40UHDLxdm3l0lXRY3aSzoBKZi91eP4We+KO/GgueFQVA/IZZaOdNsWlNpL4e0Qpi5sZaG8UnQvs0pFvdpJatO8fGUYLJm3UBikvErqXvewLH/RrdxiJqi5zNJlsG75h1DotlCYamfGIRkqe/uH+AfB891xf8TdPU/7s1ftyivbTvZe9zDcPWdVb0tPKzqVWRwMLsHVCS08xRv2I4nfQU+WVVVjTkqcmxJVI2pXXlU03vjIN4oVW/yGuczi6d7pmUXa2+NFQ9vfE7cS0x2RJef9lmNcaMzkNK/lbwGP2l1zCSKVV3zBqsX0i01CtU3Zp8os3jaj82xWGKsBzxULKtPrIOWI94C8ek6evarV9B5PqVXpVlSP+I//L1HW1O34evZMB4SzEaWUM7m8UtoFJOuLhqsxnUGQ+ZX0Qsh32Km8Susooaj4ddZyVmYxfstxDNozH5CwFZYqr9SVtlnVoGN22k1W7Nm2zv2cxTKLxfErynxAwl5EVHn1xck7yyv3AGyDbtutCYN1ltUyK47GnfmAhJllaiyvNo2XY/mevcTZWG3xmjkg4857zGKZFdc9JZkOSDXkWkin8sqEwXmzdoPWXZPZm82yYjzpJbMB4av8SsiGLJVXpgzOm7lrNjkosyx/S1NcC4WxraS7J4VQ76nxQdgyqFN5ZfKRQbz9ZLDpDGBVZl3t4d4sXquK2qAtWjv4Ic7NjpEDorZ0ZOV0Lam84vdo0uxVs5q/X6m5AXGZ9fsTC26ZlWZA1IZKnXd5hy6xbP+824pmG/WiksorE8cezdoN1lmaZRbvcjDhFojQPUhF820WYbQqr968WqGbzizPcH+BxkfXSi7eBr8UcIfdg2NlGuqPd7jHr5O3rHeL22OrRy24i4bL9VTKrL5C6634OgoVENPWAYJS5dWeR70FtKP/uUG/+vP87T///p5x2vbwEL10coEOdnn8zzeevJu+8tl1FIffHbtOh2cWKQlplFkmnSUc6qXWMnoyoroif/Tusls+blxfpi33e42Fe4BNG8ruQHCrU5L893LwRnTOKdsOOYF6cusIDZaj9STcc3E41OuJC/ceF5zvnfSheJalf1nVKFyWM350KF/h+MauLfeV6adfv+eOP9/20IDzcU/g7/fMry+5s0RcqkUNiCrrHnJKwGf3B38NnfCZWc8euEJJM+2261C/LZwmHk4cPzYVkOF+M5ewTHtUXKifcqGAkHRj00avFIrjFlf1PXgiwUTtFix1Fa4HIe+2Rghmwh/HHD8XfRpVnbDy2CNDZKpKys+LjCJ0M3fv/TVkqq7X+LhSnkblKdSLEQbBHLAsHGDHC5amrClF6gd4sYcfbZaVh7kkhccL6t6L37wyH3j9pBHPsPHp8mzfDn1PZw+KexGeKaxqvgsjciHbV/Q+eoGvRO6+KwOeFsVrK7yu8ta1Ch04fp2+++WxwK+Zw/HLl6+6vcfHnKndqUnzD7Bj7gOVOpRban+VtH3dXZere2Gr+1tp3H9XiN42jR1JcDD49IqkzkOKG/ciP3GmZbnUOnb2Bv3ghUtug++Ey7Kf/eGKuz7BpdWP9o5TnqgH67R7vox6MBP3SGpnh+0/4o/DF7WUM3IqxN3KbtBAT9lwVx/9/Jv30o+d9YZrTq/wQyckO7eM0Oec1Xl++hNvSWEcHJ6t4pV9dSMT9xwcDv4eeVT3gzDUtDZ6q8NJnRwc7njCHgFl5E97xeBtLtzAuSd58W8LbsnFA29pdotXzLk8y8K4I6q6v8VJNfZqwP2AUZ5aZVxA+OdRN3jLOeOQ8EN49n1h1F3BPnrmBr1xdW3z47i/WZJnqnhX8ZChi4JJqDU8fSrorQdum3E+wnQixgXE9HA04qBM3TWSmUF3Guw2X3f8dyETYtylCdPJoHTVFEK2G+MCUrDMf2IVhFdqaLHdtINiXgLCSijJc6n56VOlgHckRrlP3cyAYJtL7nADH2g6rYS/7HSCScGK1laMnVRXJ7dn8dZf+LBii3Ao7kOZSnc+D8byV9LLEVu40atOapuLe+RQHAcVY2zjNsbBEmnBvfuQOpdH6qA47im4HcRxjJCSiWVZ/mHE8ehgzJD5P0tDx3hxtYNGGO4CCPK5sacDPuonb/L4noNAQBrwaSW89eOFI9cpr7YafCNWEhCQBmpD4NmL2XviUhAcDmyK/DDLtrN0cChAvDBIBxAgIAACBARAgIAACBAQAAECAiBAQAAECAiAAAEBECAgAAIEBECAgAAIEBAAAQICIEBAAAQICIAAAQEQICAAAgQEQICAAAgQEAABAgIgQEAABAgIgAABARAgIAACBARAgIAACBAQAAECAiBAQAAECAiAAAEBECAgAAIEBECAgAAIEBAAAQICIEBAAAQICIAAAQEQICAAAgQEQICAAAgQEAABAgIg+AALFhbc8PnnZAAAAABJRU5ErkJggg==";function lu({loading:e,handleStartSyncing:t,categoryName:n,sessionExpired:r=!1,hasIntegration:i=!1,hideSubtitleAndAction:s=!1,isHomeCategorySearchEmpty:a=!1,isHomeCategorySearch:c=!1,categoryHasNoProducts:d=!1,hideActionLink:p=!1,hideIconAndTitle:u=!1,showFetchingCategoriesLabel:h=!1}){const m=Lt(),y=tt();let g=y&&y.emptyProduct?y.emptyProduct:{wrapper:{},card:{},iconContainer:{},inboxIcon:{},title:{},subtitle:{},actionLink:{}};const b=Ye(S=>S?.dashboard)?.products||[],x=t||(()=>m("/product-setting")),E=!r&&!e&&Array.isArray(b)&&b.length===0,w=d?!1:E;if(e&&!r){let S="Fetching";return h?S="Fetching Categories":(c||a||n)&&(S="Fetching Category"),l.jsx(zo,{text:S,fullScreen:!0})}return l.jsx(P,{sx:{minHeight:"100vh",bgcolor:"#f5f7fa",overflowX:"hidden"},children:l.jsx(P,{sx:g.wrapper,children:l.jsxs(P,{sx:g.card,children:[!(u||a)&&l.jsx(P,{sx:g.iconContainer,children:l.jsx(P,{component:"img",src:U2,alt:"No products",sx:{display:"block",objectFit:"contain",maxWidth:"100%",width:280,height:240,...g.inboxIcon,border:"none",outline:"none",borderRadius:0,bgcolor:"transparent"}})}),l.jsx(W,{sx:g.title,children:!r&&(a||n?"No Category Found":"No Products")}),!a&&!s&&!e&&l.jsx(W,{sx:g.subtitle,children:r?"Your session has expired or your token is invalid. Please log in again.":n&&!w?`No products found in the "${n}" category.`:w?i?"No products found in store inventory. Start syncing to add products.":"Start by setting up sync":n?"No Category Found":"No active integration found for this tenant id"}),!a&&!s&&!e&&!r&&!p&&w&&!i&&l.jsx(W,{component:"a",href:"#",sx:g.actionLink,onClick:S=>{S.preventDefault(),x()},children:"Start Syncing Products"})]})})})}const hy=yt(l.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),R2="#22c55e";function cu(e){const{sx:t,color:n=R2,fontSize:r,...i}=e;return l.jsxs(or,{viewBox:"0 0 24 24",sx:{fontSize:r||24,color:n,...t},...i,children:[l.jsx("circle",{cx:"12",cy:"12",r:"10",fill:"none",stroke:"currentColor",strokeWidth:"2"}),l.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",d:"M6.5 12l3.5 4 7-8"})]})}function q2({catalogSlug:e="",onClose:t,autoHideDurationMs:n=3e3}){const{catalogCreatedToast:r}=tt(),i=typeof window<"u"?`${window.location.origin}${e.startsWith("/")?e:`/${e}`}`:"",s=()=>{i&&navigator.clipboard.writeText(i).then(()=>{}).catch(()=>{})};return N.useEffect(()=>{if(!n||n<=0||typeof t!="function")return;const a=window.setTimeout(()=>{t()},n);return()=>window.clearTimeout(a)},[n,t]),l.jsxs(P,{sx:r.root,children:[l.jsx(P,{sx:r.iconWrap,children:l.jsx(cu,{sx:{fontSize:40}})}),l.jsxs(P,{sx:r.content,children:[l.jsx(W,{sx:r.title,children:"Catalog created"}),l.jsx(W,{sx:r.description,children:"You can now share it for collecting orders"}),l.jsx(W,{component:"button",onClick:s,sx:r.copyLinkButton,children:"Copy Share Link"})]}),l.jsx(it,{onClick:t,size:"small","aria-label":"Close",sx:r.closeButton,children:l.jsx(hy,{sx:{fontSize:20}})})]})}const Y2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAMFJREFUeAGNUgENwjAQbBcM4AAcgALmAByAhE3BWgXDQTcHSCgKkEBwAArKXfJNnjIWPrnc//e+/VtmzUw452oQEZFH9qoZcQB1UgbUPRP7Q+xAK9BJ9W6g1po/Qy4xC9303ncppUbKAZpWHR/5QqV3hniNlNgCy7yS+LmCL1Y1LAUi2vFB4An0+YzaCskBXKvbBtALoMk78NDm6WEDjIVB+mjMRNBDBPbFQMhfpYzs4SxDo+z/scbXgAzVpvgNpuINgHBRUvbxfqsAAAAASUVORK5CYII=";function G2(e){const{sx:t,alt:n="link icon",...r}=e;return l.jsx(P,{component:"img",src:Y2,alt:n,sx:{display:"inline-block",width:16,height:16,objectFit:"contain",...t},...r})}const K2=yt(l.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Mt({size:e,style:t,sx:n,...r}){return l.jsx(K2,{...r,sx:{...e&&{width:e,height:e},...t,...n}})}const gy=e=>{if(!e)return"";const t=new Date(e);if(Number.isNaN(t.getTime()))return"";const n=Date.now()-t.getTime();if(n<0)return"Sync just now";const r=Math.floor(n/(1e3*60));if(r<1)return"Sync just now";if(r<60)return`Sync ${r} minute${r>1?"s":""} ago`;const i=Math.floor(r/60);if(i<24)return`Sync ${i} hour${i>1?"s":""} ago`;const s=Math.floor(i/24);return`Sync ${s} day${s>1?"s":""} ago`},El=e=>{if(e==null||!Number.isFinite(e))return"0";if(e>=1e3){const t=e/1e3;return(t%1===0?String(t):t.toFixed(1).replace(/\.0$/,""))+"K"}return String(Math.round(e))},my=({productState:e,categoryName:t,categoryProductCount:n,categoryCount:r,activeCatalogsCount:i=0,onManageClick:s,onReportClick:a,matchHomePageLayout:c=!1,equalCardWidths:d=!1})=>{const p=e?.metrics||{},u=e?.productDashboardMetrics||{},h=!t,m=c||h,y=!!t&&!m,g=m?"12px":"8px",f=m?void 0:261.3333435058594,b=101,x=t?u.productCount!=null?u.productCount:n:h&&(p.activeCategories!=null||p.activeProducts!=null)?p.activeCategories??r??0:r??e?.homePageCardSummary?.totalCategories??0,E=t?"":"Products",w=t?"":h&&p.activeProducts!=null?p.activeProducts:e?.homePageCardSummary?.totalProducts??0,S=p?.lastSyncTime,T=u?.lastSyncTime,v=gy(h?S:T||S),k=h&&p.activeCatalogues!=null?p.activeCatalogues:t&&u.activeCatalogues!=null?u.activeCatalogues:i,M=p.onShelfYesterdayPerc!=null?Math.round(Number(p.onShelfYesterdayPerc)):null,_=p.totalOnShelfYesterdayCount!=null?Number(p.totalOnShelfYesterdayCount):null,z=p.totalStockYesterdayCount!=null?Number(p.totalStockYesterdayCount):null,F=p.missingOnShelfYesterdayPercent!=null?Math.round(Number(p.missingOnShelfYesterdayPercent)):null,C=u.onShelfYesterdayPerc!=null?Math.round(Number(u.onShelfYesterdayPerc)):null,I=u.totalOnShelfYesterdayCount!=null?Number(u.totalOnShelfYesterdayCount):null,$=u.totalStockYesterdayCount!=null?Number(u.totalStockYesterdayCount):null,D=u.missingOnShelfYesterdayPercent!=null?Math.round(Number(u.missingOnShelfYesterdayPercent)):null,L=h?M!=null?`${M}%`:"78%":C!=null?`${C}%`:"78%",V=h?_!=null&&z!=null?`${El(_)}/${El(z)}`:"78/100k":I!=null&&$!=null?`${El(I)}/${El($)}`:"78/100k",Y=h?F!=null?`${F}% Missing`:"22% missing":D!=null?`${D}% Missing`:"22% missing",U=t?`${t} Products`:"Categories";return l.jsx(Ut,{maxWidth:!1,sx:{width:"100%",maxWidth:"100%",minWidth:"100%",px:0},children:l.jsxs(P,{sx:{width:"100%",maxWidth:"100%",height:m?"auto":y?101:"auto",gap:g,opacity:1,display:"flex",flexWrap:"wrap",justifyContent:"flex-start",alignItems:"stretch",mb:3},children:[l.jsx(du,{cardWidth:f??344,cardHeight:b,title:U,titleValue:x,subtitle:E,subtitleValue:w,recentText:v,tickMarkRequired:!0,flexGrow:!0,flexOverride:m?d?"1 1 200px":"2 1 180px":y?void 0:"2 1 180px"}),l.jsx(du,{cardWidth:f??220,cardHeight:b,title:"Active Catalogs",titleValue:k,recentText:"4 public links",linkRequired:!0,btnLabel:"Manage",onBtnClick:s,flexGrow:!0,flexOverride:m?"1 1 200px":y?void 0:"1 1 200px"}),l.jsx(du,{cardWidth:f??220,cardHeight:b,title:"On Shelf Yesterday",titleValue:L,thirdVaue:V,recentText:Y,recentTextColor:"#FF2929",btnLabel:"Report",onBtnClick:a,isThirdCard:!0,flexGrow:!0,flexOverride:m?"1 1 200px":y?void 0:"1 1 200px"})]})})};function du({cardWidth:e=344,cardHeight:t=101,title:n="",subtitle:r="",titleValue:i="",thirdVaue:s="",subtitleValue:a="",recentText:c="",recentTextColor:d="#808080",btnLabel:p="",tickMarkRequired:u=!1,linkRequired:h=!1,onBtnClick:m,isThirdCard:y=!1,flexGrow:g=!1,flexOverride:f}){const{initialCard:b,universal:x}=tt();return l.jsxs(Ki,{sx:x.getGlobalCardContainerSx({width:g?void 0:e,minWidth:g?200:void 0,flex:f??(g?"1 1 200px":"0 0 auto"),height:t,opacity:1,gap:"1px",borderRadius:"12px",boxShadow:"0 2px 8px #e0e0e0",p:0,display:"flex",flexDirection:"column",overflow:"hidden",boxSizing:"border-box"}),children:[l.jsx(P,{sx:{width:g?"100%":e,height:68,opacity:1,gap:"4px","@media (max-width: 790px)":{gap:0},"@media (max-width: 490px)":{gap:0},padding:"8px 12px",display:"flex",alignItems:"flex-start",boxSizing:"border-box"},children:y?l.jsx(l.Fragment,{children:l.jsxs(P,{sx:{width:"100%",height:52,opacity:1,gap:"4px",display:"flex",flexDirection:"column"},children:[l.jsx(W,{sx:{...b.interLabel,height:16},children:n}),l.jsxs(P,{sx:{minWidth:0,height:32,opacity:1,gap:"6px",display:"flex",alignItems:"baseline",flexWrap:"nowrap"},children:[l.jsx(W,{sx:{...b.thirdCardCountText},children:i}),l.jsx(W,{sx:{...b.thirdCardSecondCountText},children:s})]})]})}):l.jsxs(l.Fragment,{children:[n&&l.jsxs(P,{sx:{width:158,height:52,opacity:1,gap:"4px",display:"flex",flexDirection:"column","@media (max-width: 790px)":{width:"auto",minWidth:0,flex:"1 1 0"}},children:[l.jsx(W,{sx:{...b.interLabel,width:158,height:16,"@media (max-width: 790px)":{width:"100%",maxWidth:"100%"}},children:n}),l.jsx(W,{sx:{...b.interCount,width:32,height:32},children:i})]}),r&&l.jsxs(P,{sx:{width:158,height:52,opacity:1,gap:"4px",display:"flex",flexDirection:"column","@media (max-width: 790px)":{width:"auto",minWidth:0,flex:"1 1 0"}},children:[l.jsx(W,{sx:{...b.interLabel,width:158,height:16,"@media (max-width: 790px)":{width:"100%",maxWidth:"100%"}},children:r}),l.jsx(W,{sx:{...b.interCount,width:47,height:32},children:a})]})]})}),l.jsx(nn,{}),l.jsx(P,{sx:{width:g?"100%":e,height:32,opacity:1,padding:"8px 12px",display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box"},children:y?l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:{minWidth:0,height:12,opacity:1,gap:"4px",display:"flex",alignItems:"center"},children:l.jsx(W,{sx:{...b.thirdCardMissingText,whiteSpace:"nowrap"},children:c})}),p&&l.jsxs(P,{sx:{width:58,height:16,opacity:1,gap:"2px",display:"flex",alignItems:"center"},children:[l.jsx(Ze,{variant:"text",size:"small",onClick:m,sx:{...b.thirdCardReportText,width:40,height:16,textTransform:"none",minWidth:0,p:0,gap:"2px","&:hover":{bgcolor:"transparent",color:gt}},children:p}),l.jsx(Mt,{sx:{width:16,height:16,color:gt}})]})]}):l.jsxs(l.Fragment,{children:[l.jsxs(P,{sx:{flex:1,minWidth:0,height:12,opacity:1,gap:"4px",display:"flex",alignItems:"center"},children:[u&&l.jsx(cu,{sx:{width:12,height:12,mr:.5}}),h&&l.jsx(G2,{sx:{color:"#2563eb",width:12,height:12,mr:.5}}),l.jsx(W,{sx:{...b.interSyncText,height:12,color:d,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:c})]}),p&&l.jsx(P,{sx:{width:65,height:16,opacity:1,gap:"2px",display:"flex",alignItems:"center"},children:l.jsxs(Ze,{variant:"text",size:"small",onClick:m,sx:{color:gt,textTransform:"none",fontWeight:600,fontFamily:"Inter, sans-serif",fontSize:12,lineHeight:"16px",minWidth:0,p:0,gap:"2px","&:hover":{bgcolor:"transparent",color:gt}},children:[p,l.jsx(Mt,{sx:{width:16,height:16,color:gt}})]})})]})})]})}const X2=yt(l.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward");function Tl(e){return l.jsx(X2,{...e})}function yy(e){if(!e)return"";try{return new Date(e).toLocaleDateString()}catch{return e}}function Lo(e){return e?.categoryName??e?.name??""}function J2({categoryData:e=[],styles:t={},onView:n,selectedCategories:r=[],selectedProducts:i=[],pinnedCategoryNames:s=[],categoryNamesFromProductSelection:a=[],onToggleCategory:c,totalCategoryCount:d=0,onClearAllCategories:p}){const{universal:u}=tt(),h=u.globalTableScaffoldStyles,m=N.useMemo(()=>new Set(s.map(R=>String(R).trim()).filter(Boolean)),[s]),y=N.useMemo(()=>new Set((Array.isArray(r)?r:[]).map(R=>String(Lo(R)??"").trim()).filter(Boolean)),[r]),g=N.useMemo(()=>new Set(a.map(R=>String(R).trim()).filter(Boolean)),[a]),f=N.useMemo(()=>{const R=new Map;if(!Array.isArray(i))return R;const q=Q=>(Q?.categoryName??Q?.category??"").toString().trim(),ie=Q=>(Q?.productId??Q?.catalogProductId??Q?.id??Q?.sku??Q?.productName??"").toString().trim();return i.forEach(Q=>{const pe=q(Q);if(!pe)return;const K=ie(Q);K&&(R.has(pe)||R.set(pe,new Set),R.get(pe).add(K))}),R},[i]),b=R=>{const q=Number(R?.productCount??0);return Number.isFinite(q)?q:0},x=R=>{const q=String(Lo(R)??"").trim();return f.get(q)?.size??0},E=R=>{const q=String(Lo(R)??"").trim();if(!q)return!1;if(y.has(q))return!0;const ie=x(R);if(ie<=0)return!1;const Q=b(R);return Q>0?ie===Q:!0},w=R=>{const q=String(Lo(R)??"").trim();if(!q||y.has(q))return!1;const ie=x(R);if(ie<=0)return!1;const Q=b(R);return Q>0?ie<Q:!1},S=R=>{const q=String(Lo(R)??"").trim();return q&&r.some(ie=>String(Lo(ie)??"").trim()===q)||q&&m.has(q)||q&&g.has(q)},T=r.length,v=Number(d)||0,k=v>0&&T===v,M=T>0||a.length>0,_=e.some(S),z=M&&!k&&_,F=t.categoryTableShared??{},C=l.jsx("span",{style:F.checkboxRowCheckedIconSpan,children:l.jsx("span",{style:F.checkboxRowCheckedIconInner})}),[I,$]=N.useState(!1),[D,L]=N.useState([]),[V,Y]=N.useState(0),[U,B]=N.useState(""),[O,j]=N.useState(0),H=_t("(max-width:600px)"),G=_t("(max-width:900px)"),X=_t("(max-width:400px)");let te=4;H?te=1:G&&(te=2);const le=(R,q,ie,Q)=>{const pe=Array.isArray(R)?R:[],K=Number.isFinite(Number(Q))?Number(Q):pe.length;if(K<=0)return;const ve=K-1,be=Math.max(0,Math.min(q,ve));L(pe),Y(be),j(K),B(ie||""),$(!0)},ce=()=>{$(!1)},ae=()=>{Y(R=>R>0?R-1:R)},Z=()=>{Y(R=>R<O-1?R+1:R)};return l.jsxs(l.Fragment,{children:[l.jsx(Ut,{maxWidth:!1,sx:{...h.container,...t.categoryTableContainer},children:l.jsxs(Ki,{sx:{...h.card,...t.ProductTable,minHeight:"auto"},children:[l.jsxs(P,{sx:{...h.headerBox,...t.categoryTableHeader,width:"100%"},children:[c&&l.jsx(P,{sx:t.categoryTableHeaderCheckboxCol,children:l.jsx(Nt,{checked:k,indeterminate:z,onChange:()=>{(k||z)&&typeof p=="function"?p():e.forEach(R=>{S(R)||c(R)})},size:"small",sx:F.checkboxHeaderSx,icon:l.jsx("span",{style:F.checkboxIconSpanHeader}),checkedIcon:l.jsx("span",{style:F.checkboxCheckedIconSpan,children:l.jsx(dn,{sx:F.checkboxTickIconHeaderSx})}),indeterminateIcon:l.jsx("span",{style:F.checkboxCheckedIconSpan,children:l.jsx("span",{style:F.checkboxCheckedIconInner})})})}),l.jsxs(P,{sx:t.categoryTableHeaderCategoryCell,children:["Category",l.jsx(Tl,{sx:t.categoryTableHeaderArrow})]}),!X&&l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:t.categoryTableHeaderStockCell,children:"Stock / OSA"}),l.jsx(P,{sx:t.categoryTableHeaderProductsCell,children:"Products"})]}),l.jsx(P,{sx:t.categoryTableHeaderEmptyCell})]}),e.map((R,q)=>{const ie=Array.isArray(R.images)?R.images:[],Q=ie.slice(0,te),pe=Number.isFinite(Number(R.productCount))?Number(R.productCount):ie.length,K=Math.max(pe-Q.length,0);return l.jsx(P,{sx:{...h.rowShell,...t.categoryTableRow(q),width:"100%",flexDirection:X?"column":t.categoryTableRow?.flexDirection,alignItems:X?"flex-start":t.categoryTableRow?.alignItems},children:X?l.jsxs(l.Fragment,{children:[l.jsxs(P,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",width:"100%",gap:1},children:[l.jsxs(P,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",gap:1,minWidth:0,flex:1},children:[c&&l.jsx(P,{sx:t.categoryTableRowCheckboxFrame,children:l.jsx(Nt,{checked:E(R),indeterminate:w(R),onChange:()=>c(R),size:"small",sx:{...F.checkboxRowSx,outline:"none",boxShadow:"none","&.Mui-focusVisible":{outline:"none",boxShadow:"none"},"& .PrivateSwitchBase-input":{outline:"none"}},icon:l.jsx("span",{style:F.checkboxIconSpanRow}),checkedIcon:l.jsx("span",{style:F.checkboxRowCheckedIconSpan,children:l.jsx(dn,{sx:F.checkboxTickIconRowSx})}),indeterminateIcon:C})}),l.jsxs(P,{sx:{...t.categoryNameCell,flex:"1 1 auto",minWidth:0},children:[l.jsx(W,{sx:t.categoryName,children:R.categoryName}),l.jsxs(W,{sx:t.categoryProducts,children:[R.productCount," Products"]}),l.jsxs(W,{sx:t.categoryUpdated,children:["Updated ",yy(R.lastUpdated)]})]})]}),l.jsx(P,{sx:{...t.categoryViewCell,flexShrink:0,mt:"5px",alignSelf:"flex-start",alignItems:"flex-start"},children:l.jsxs(Ze,{variant:"text",sx:t.categoryViewButton,onClick:()=>n&&n({name:R.categoryName,...R}),children:["View",l.jsx(Mt,{sx:t.categoryViewButtonIcon})]})})]}),l.jsxs(P,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:2,width:"100%",mt:.5,...c&&{ml:"24px"}},children:[l.jsxs(P,{sx:{...t.categoryStockCell,flex:"0 0 auto"},children:[l.jsxs(W,{sx:t.categoryStock(q),children:[R.totalStock,"/",R.totalOsa]}),l.jsx(W,{sx:t.categoryOSA(q),children:R.osaPercent!=null?l.jsxs(l.Fragment,{children:[l.jsxs(P,{component:"span",sx:Number(R.osaPercent)<50?{color:"#d32f2f"}:{},children:[Math.round(Number(R.osaPercent)),"%"]})," on shelf"]}):""})]}),l.jsxs(P,{sx:{...t.categoryImagesCell,flex:"1 1 auto",minWidth:0},children:[Q.map((ve,be)=>l.jsx(cr,{src:ve,alt:(R.categoryName||"")+" product",sx:{...t.categoryImage,cursor:"pointer"},onClick:()=>le(ie,be,R.categoryName||"",pe)},be)),K>0&&l.jsx(P,{onClick:()=>le(ie,Q.length,R.categoryName||"",pe),sx:{...t.categoryImage,...t.categoryMoreImageBox},children:l.jsxs(W,{sx:t.categoryMoreImageText,children:["+",K," More"]})})]})]})]}):l.jsxs(l.Fragment,{children:[c&&l.jsx(P,{sx:t.categoryTableRowCheckboxFrame,children:l.jsx(Nt,{checked:E(R),indeterminate:w(R),onChange:()=>c(R),size:"small",sx:{...F.checkboxRowSx,outline:"none",boxShadow:"none","&.Mui-focusVisible":{outline:"none",boxShadow:"none"},"& .PrivateSwitchBase-input":{outline:"none"}},icon:l.jsx("span",{style:F.checkboxIconSpanRow}),checkedIcon:l.jsx("span",{style:F.checkboxRowCheckedIconSpan,children:l.jsx(dn,{sx:F.checkboxTickIconRowSx})}),indeterminateIcon:C})}),l.jsxs(P,{sx:{...t.categoryNameCell,width:"auto"},children:[l.jsx(W,{sx:t.categoryName,children:R.categoryName}),l.jsxs(W,{sx:t.categoryProducts,children:[R.productCount," Products"]}),l.jsxs(W,{sx:t.categoryUpdated,children:["Updated ",yy(R.lastUpdated)]})]}),l.jsxs(P,{sx:{...t.categoryStockCell,width:"auto"},children:[l.jsxs(W,{sx:t.categoryStock(q),children:[R.totalStock,"/",R.totalOsa]}),l.jsx(W,{sx:t.categoryOSA(q),children:R.osaPercent!=null?l.jsxs(l.Fragment,{children:[l.jsxs(P,{component:"span",sx:Number(R.osaPercent)<50?{color:"#d32f2f"}:{},children:[Math.round(Number(R.osaPercent)),"%"]})," on shelf"]}):""})]}),l.jsxs(P,{sx:{...t.categoryImagesCell,width:"auto"},children:[Q.map((ve,be)=>l.jsx(cr,{src:ve,alt:(R.categoryName||"")+" product",sx:{...t.categoryImage,cursor:"pointer"},onClick:()=>le(ie,be,R.categoryName||"",pe)},be)),K>0&&l.jsx(P,{onClick:()=>le(ie,Q.length,R.categoryName||"",pe),sx:{...t.categoryImage,...t.categoryMoreImageBox},children:l.jsxs(W,{sx:t.categoryMoreImageText,children:["+",K," More"]})})]}),l.jsx(P,{sx:{...t.categoryViewCell,width:"auto"},children:l.jsxs(Ze,{variant:"text",sx:t.categoryViewButton,onClick:()=>n&&n({name:R.categoryName,...R}),children:["View",l.jsx(Mt,{sx:t.categoryViewButtonIcon})]})})]})},R.categoryName||q)})]})}),l.jsxs(ko,{open:I,onClose:ce,maxWidth:"lg",fullWidth:!0,children:[l.jsxs(Oo,{sx:t.categoryImageDialogTitleRow,children:[l.jsxs(W,{sx:t.categoryImageDialogTitleText,children:["Image Preview",U?` - ${U}`:""]}),l.jsx(Ze,{onClick:ce,sx:t.categoryImageDialogCloseButton,children:"Close"})]}),l.jsx(Qi,{sx:t.categoryImageDialogContent,children:O>0&&l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:t.categoryImageDialogImageBox,children:D[V]?l.jsx(P,{component:"img",src:D[V],alt:(U||"Category")+` image ${V+1}`,sx:t.categoryImageDialogImage}):l.jsx(W,{sx:t.categoryImageDialogFallbackText,children:(U||"Category")+` image ${V+1}`})}),l.jsxs(P,{sx:t.categoryImageDialogFooterRow,children:[l.jsx(Ze,{variant:"outlined",size:"small",onClick:ae,disabled:V<=0,sx:t.categoryImageDialogNavButton,children:"Previous"}),l.jsxs(W,{sx:t.categoryImageDialogCounterText,children:[V+1," of ",O]}),l.jsx(Ze,{variant:"outlined",size:"small",onClick:Z,disabled:V>=O-1,sx:t.categoryImageDialogNavButton,children:"Next"})]})]})})]})]})}const Q2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAKpJREFUeAHFko0NgkAMhR+EARjhRtAJZATcQDfRCRxBRnAE3eBGYJP6qsU0F4FLIOFLyv20r6TtAYaItDLPHY7S7WtaV4xA3xkJJRawSFzph7U0XA60wP1pJHbwt1wjK+kLHm487Gg98qgtfq9isYZkQ0nH5blOwzaZc2TGC77dnGOYhsZ+aj7aX0OO2IRXHdXvVjOmNXn++askpplIEJC8BS9+YJoXLfqLN/KniiDmJ/GnAAAAAElFTkSuQmCC";function Z2({sx:e={},...t}){return l.jsx(P,{component:"img",src:Q2,alt:"",role:"presentation",sx:{width:"13.33px",height:"13.33px",display:"block",objectFit:"contain",boxSizing:"border-box",...e},...t})}const eN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAMlJREFUeAGdUgERwyAMDLsJqIRKQEIlVAIOhoPVQSV0Diahc7A6QMJwwMLt2bGMtlxz98cR8n+fBKKdCCFcGC584skwVBNcOIGgcdcQsntEy7gxGpFvIdDQkUhuzoWHlo+O4RkPpZRf0WgkcWS80OsMe72oMTEviZPsEQO6i7tLA/whCnUtxIvEa66eFSb7JmtHS7vuL0nflQwQsMXVxG9DB+PEWJjfFUSj9XGTDUsO+025fq2dksCA4hlnFVFlAnEgkeD5Vy1UEW+PYQ9FgjWUTgAAAABJRU5ErkJggg==";function tN({sx:e={},...t}){return l.jsx(P,{component:"img",src:eN,alt:"",role:"presentation",sx:{width:"13.26px",height:"13.24px",display:"block",objectFit:"contain",boxSizing:"border-box",...e},...t})}const nN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAANBJREFUeAGtU4ERwiAMDL0O4AbiJDKCKziJdBI7CpuIG7gBfir0Igbqnf5dSvr9hiQEoh9h+JFSslgugo/GmEkKoblW/07QxCG/eJgTHy194i58VzYcBRkQ8UytVI3xIpu5+AN1wKXl8poYGykWeI4D0zLT9MuuJ9gt+3NpHnMwV+u1EnakN9FqfLcH30ALELNp/KMmlyaiNo9lz8cIC/APtRD8ykl9OQVLr27X8KRj1Y/UAY8qbUAGcGLet+7CERbYkXch0HuKNeTgsHaif+AJ5CBPR1lDq+wAAAAASUVORK5CYII=";function rN({sx:e={},...t}){return l.jsx(P,{component:"img",src:nN,alt:"",role:"presentation",sx:{width:"13.33px",height:"13.33px",display:"block",objectFit:"contain",boxSizing:"border-box",...e},...t})}const uu=640,by=({onPromoPrint:e,onCreateCatalog:t,onOsaRequest:n,selectedProducts:r,selectedCategories:i,containerRef:s})=>{const{universal:a,floatingAction:c}=tt(),d=r||[],p=i||[],u=d.length>0,h=p.length>0,m=_t("(max-width:450px)"),[y,g]=N.useState(null),f=N.useRef(null),b=N.useRef(null);if(N.useEffect(()=>{const C=s?.current;if(!C){queueMicrotask(()=>g(null));return}const I=()=>{f.current&&cancelAnimationFrame(f.current),f.current=requestAnimationFrame(()=>{f.current=null,g(C.getBoundingClientRect())})};I();const $=new ResizeObserver(I);return $.observe(C),window.addEventListener("resize",I),()=>{$.disconnect(),window.removeEventListener("resize",I),f.current&&cancelAnimationFrame(f.current)}},[s]),N.useEffect(()=>{const C=s?.current,I=b.current;if(!C||!I)return;const $=C.style.paddingBottom,D=()=>{const V=parseFloat(window.getComputedStyle(C).paddingBottom)||0,U=Math.ceil(I.getBoundingClientRect().height)+16,B=Math.max(V,U);C.style.paddingBottom=`${B}px`};D();const L=new ResizeObserver(D);return L.observe(I),window.addEventListener("resize",D),()=>{L.disconnect(),window.removeEventListener("resize",D),C.style.paddingBottom=$}},[s,m,u,h]),!u&&!h)return null;const x=p.length,E=new Set(p.map(C=>(C?.categoryName||C?.name||"").toString().trim()).filter(Boolean)),w=d.filter(C=>{const I=(C.categoryName||C.category||"").toString().trim();return I?!E.has(I):!0}),S=w.length,T=w.map(C=>(C.categoryName||C.category||"").toString().trim()).filter(Boolean),v=Array.from(new Set(T)),k=v.length===1?v[0]:null;let M;const _=S>0;if(h&&_){const C=`${x} categor${x===1?"y":"ies"}`,I=`product${S===1?"":"s"}`;k?M=`${C} + ${S} ${I} of ${k} category`:M=`${C} + ${S} ${I}`}else h?M=`${x} categor${x===1?"y":"ies"} selected`:M=`${S} item${S===1?"":"s"} selected`;const z=y?Math.min(uu,y.width):uu,F=y?{left:y.left+(y.width-z)/2,width:z}:{left:"50%",transform:"translateX(-50%)",width:"100%",maxWidth:uu};return l.jsxs(P,{ref:b,sx:{...c.bar,bottom:"max(8px, env(safe-area-inset-bottom))",...F},children:[l.jsx(W,{sx:c.countTypography,children:M}),l.jsx(P,{sx:c.flexSpacer}),l.jsxs(P,{sx:c.actionsRow,children:[(u||h)&&l.jsxs(P,{component:"button",onClick:e,sx:{...c.actionCard,...a.getUniversalBlueButtonSx(),width:139},children:[l.jsx(P,{sx:c.iconCard,children:l.jsx(Z2,{sx:c.iconImg})}),l.jsx(W,{component:"span",sx:c.actionText,children:m?"Promo":"Promo Print"})]}),l.jsxs(P,{component:"button",onClick:t,sx:{...c.actionCard,...a.getUniversalBlueButtonSx(),width:158},children:[l.jsx(P,{sx:c.iconCard,children:l.jsx(tN,{sx:c.iconImg})}),l.jsx(W,{component:"span",sx:c.actionText,children:m?"Catalog":"Create Catalog"})]}),l.jsxs(P,{component:"button",onClick:n,sx:{...c.actionCard,...a.getUniversalBlueButtonSx(),width:147},children:[l.jsx(P,{sx:c.iconCard,children:l.jsx(rN,{sx:c.iconImg})}),l.jsx(W,{component:"span",sx:c.actionText,children:m?"OSA":"OSA Request"})]})]})]})},oN=yt(l.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");function dr(e){return l.jsx(oN,{...e})}const xy=yt(l.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function pu(e){return!e||typeof e!="string"?"":e.trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"")}function vy({onClose:e,selectedProducts:t=[],selectedCategories:n=[],open:r,stores:i=[],onCreateSuccess:s}){const a=fn(),{createdById:c,createdByName:d,createCatalogLoading:p,createCatalogError:u}=Ye(O=>O.dashboard),h=Array.isArray(t)?t.length:0,m=Array.isArray(n)?n.length:0,y=h+m,[g,f]=N.useState("Christmas Super Sale 2025"),[b]=N.useState(""),[x,E]=N.useState(["all"]),[w,S]=N.useState(!1),T=N.useRef(null),[v,k]=N.useState(null),[M,_]=N.useState(280),z=N.useMemo(()=>pu(g),[g]),F=N.useMemo(()=>z?`/${z}`:"",[z]);N.useEffect(()=>{r&&a(Of())},[r,a]),N.useEffect(()=>{u&&a(Of())},[g,z,u,a]);const C=N.useMemo(()=>i.filter(O=>O.id!=="all"),[i]),I=x.includes("all")||x.length===0,$=N.useMemo(()=>I?C.map(O=>O.storeCode).filter(Boolean):x.filter(O=>O!=="all").map(O=>C.find(j=>j.id===O)?.storeCode).filter(Boolean),[I,x,C]),D=O=>{E(j=>{const H=j.filter(X=>X!=="all");if(H.includes(O)){const X=H.filter(te=>te!==O);return X.length===0?["all"]:X}const G=[...H,O];return G.length===C.length?["all"]:G})},L=()=>{const O=g?.trim();if(!O)return;const j=(t||[]).map((G,X)=>({productId:G.catalogProductId||G.productId||G.id,sorting:X+1})).filter(G=>G.productId),H=(n||[]).map(G=>typeof G=="string"?G:G?.categoryName??G?.name).filter(Boolean);a(ta({name:O,slug:z||pu(O),description:b?.trim()||"",storeCode:$,createdById:c,createdByName:d||"Admin",products:j,categories:H})).unwrap().then(()=>{const G=z||pu(O);typeof s=="function"&&s(G),e()}).catch(()=>{})},{createCatalog:V,universal:Y}=tt(),U=Y.globalCardContainerBg,B=Y.getGlobalCheckboxStyles({uncheckedBorder:"#D0D5DD",checkedBorder:"#1976d2",checkedColor:"#1976d2"});return l.jsxs(ko,{open:r,onClose:e,maxWidth:!1,PaperProps:{sx:V.dialog},BackdropProps:{sx:{backdropFilter:"blur(6px)",backgroundColor:"rgba(0,0,0,0.15)"}},children:[l.jsx(Oo,{sx:{p:0},children:l.jsxs(P,{sx:V.header,children:[l.jsxs(W,{sx:V.headerTitle,children:["Create Catalog of ",y," ",m>0&&h===0?y===1?"Category":"Categories":"Items"]}),l.jsx(P,{component:"button",onClick:e,sx:V.clearIconCard,"aria-label":"Close",children:l.jsx(xy,{sx:{fontSize:16,color:"#454545"}})})]})}),l.jsxs(Qi,{sx:V.content,children:[l.jsxs(P,{sx:V.fieldBlock,children:[l.jsx(W,{sx:V.fieldLabel,children:"Catalog Name"}),l.jsx("input",{type:"text",value:g,onChange:O=>f(O.target.value),style:V.input})]}),l.jsxs(P,{sx:V.fieldBlock,children:[l.jsx(W,{sx:V.fieldLabel,children:"Catalog Link"}),l.jsxs("div",{style:{position:"relative",width:"100%"},children:[l.jsx("input",{type:"text",readOnly:!0,value:F,style:{...V.input,...V.inputReadOnly,paddingRight:36}}),F&&l.jsx(cu,{color:"green",fontSize:"18px",style:{position:"absolute",right:12,top:"50%",transform:"translateY(-50%)"}})]})]}),l.jsxs(P,{sx:V.fieldBlock,children:[l.jsx(W,{sx:V.fieldLabel,children:"For These Stores"}),l.jsxs(P,{sx:{width:"100%"},children:[l.jsxs(P,{ref:T,sx:V.storeDropdown,onClick:()=>{const O=!w;S(O),O&&T.current?(k(T.current),_(T.current.offsetWidth??280)):O||k(null)},children:[l.jsx(P,{sx:{display:"flex",alignItems:"center",mr:1},children:l.jsx(au,{sx:{width:20,height:20}})}),l.jsx("span",{style:{fontWeight:700,color:"#222",marginRight:4},children:I?"All Stores":`${x.length} store(s) selected`}),l.jsx("span",{style:{color:"#454545",fontWeight:400,fontSize:12,marginLeft:4},children:` out of ${C.length} stores`}),l.jsx(dr,{sx:{color:"#454545",ml:"auto"}})]}),l.jsxs(is,{open:w,onClose:()=>{S(!1),k(null)},anchorEl:v,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{sx:{mt:1,minWidth:M,maxHeight:280,border:"1px solid #F1F1F1",borderRadius:"6px",boxShadow:"0 4px 16px rgba(0,0,0,0.08)"}}},MenuListProps:{sx:{maxHeight:120,overflowY:"auto",py:0},disablePadding:!0},children:[l.jsxs(P,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:I?700:400,color:I?"#222":"#444",background:I?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>{E(["all"]),S(!1)},children:[l.jsx(Nt,{size:"small",checked:I,sx:{...B.checkboxSx,p:.5,mr:1},icon:l.jsx("span",{style:B.iconSpan}),checkedIcon:l.jsx("span",{style:B.checkedIconSpan,children:l.jsx(dn,{sx:B.tickIconSx})})}),"All Stores"]}),C.map(O=>{const j=x.includes(O.id);return l.jsxs(P,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:j?700:400,color:j?"#222":"#444",background:j?"#f5f7fa":U,"&:hover":{background:"#f5f7fa"}},onClick:()=>D(O.id),children:[l.jsx(Nt,{size:"small",checked:j,sx:{...B.checkboxSx,p:.5,mr:1},icon:l.jsx("span",{style:B.iconSpan}),checkedIcon:l.jsx("span",{style:B.checkedIconSpan,children:l.jsx(dn,{sx:B.tickIconSx})})}),O.name]},O.id)})]})]})]}),u&&l.jsx(W,{color:"error",fontSize:14,sx:{mb:2},children:u}),l.jsx(P,{sx:{display:"flex",justifyContent:"flex-end"},children:l.jsx(Ze,{variant:"contained",color:"primary",disabled:p||!g?.trim()||y===0,onClick:L,sx:V.createButton,children:p?"Creating...":"Create"})})]})]})}function Sy({onClose:e,open:t,stores:n=[],selectedProducts:r=[],selectedCategories:i=[],onSuccess:s}){const{universal:a}=tt(),c=a.globalCardContainerBg,d=a.getGlobalCheckboxStyles({uncheckedBorder:"#D0D5DD",checkedBorder:"#1976d2",checkedColor:"#1976d2"}),p=fn(),{createOsaRequestLoading:u,createOsaRequestError:h}=Ye(M=>M.dashboard),[m,y]=N.useState(["all"]),[g,f]=N.useState(!1),b=N.useMemo(()=>n.filter(M=>M.id!=="all"&&M.storeCode!=="all"),[n]),x=m.includes("all")||m.length===0,E=N.useMemo(()=>x?b.map(M=>M.storeCode).filter(Boolean):m.filter(M=>M!=="all").map(M=>b.find(_=>_.id===M)?.storeCode).filter(Boolean),[x,m,b]),w=N.useMemo(()=>(r||[]).map(M=>M.catalogProductId||M.productId||M.id).filter(Boolean).map(String),[r]),S=N.useMemo(()=>(Array.isArray(i)?i:[]).filter(Boolean).map(String),[i]),T=E.length>0&&(w.length>0||S.length>0);N.useEffect(()=>{t&&p(zS())},[t,p]);const v=M=>{y(_=>{const z=_.filter(C=>C!=="all");if(z.includes(M)){const C=z.filter(I=>I!==M);return C.length===0?["all"]:C}const F=[...z,M];return F.length===b.length?["all"]:F})},k=()=>{T&&p(ra({storeCodes:E,products:w,categories:S})).unwrap().then(()=>{typeof s=="function"&&s(),e()}).catch(()=>{})};return l.jsxs(ko,{open:t,onClose:e,maxWidth:"sm",fullWidth:!0,disableScrollLock:!0,PaperProps:{sx:{borderRadius:3,p:4}},BackdropProps:{sx:{backdropFilter:"blur(6px)",backgroundColor:"rgba(0,0,0,0.15)"}},children:[l.jsx(Oo,{children:l.jsxs(P,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[l.jsx(W,{variant:"h6",fontWeight:600,ml:-3,children:"New OSA Request"}),l.jsx(it,{onClick:e,size:"small","aria-label":"Close",children:l.jsx(hy,{})})]})}),l.jsx(W,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"For These Stores"}),l.jsxs(P,{sx:{position:"relative",mb:3},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",border:"1px solid #e0e0e0",borderRadius:"8px",px:2,py:1.2,minWidth:180,cursor:"pointer",userSelect:"none",fontWeight:500,background:c},onClick:()=>f(M=>!M),children:[l.jsx(P,{sx:{display:"flex",alignItems:"center",mr:1},children:l.jsx(au,{size:12,style:{color:"#555",marginRight:4}})}),l.jsx("span",{style:{fontWeight:700,color:"#222",marginRight:4},children:x?"All Stores":`${m.length} store(s) selected`}),l.jsx("span",{style:{color:"#454545",fontWeight:400,fontSize:12,marginLeft:4},children:`out of ${b.length} stores`}),l.jsx(dr,{sx:{color:"#888",ml:"auto"}})]}),g&&l.jsxs(P,{sx:{position:"absolute",left:0,right:0,top:"100%",zIndex:10,bgcolor:c,border:"1px solid #e0e0e0",borderRadius:"8px",boxShadow:"0 4px 16px rgba(0,0,0,0.08)",mt:1,maxHeight:220,overflowY:"auto"},children:[l.jsxs(P,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:x?700:400,color:x?"#222":"#444",background:x?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>{y(["all"]),f(!1)},children:[l.jsx(Nt,{size:"small",checked:x,sx:{...d.checkboxSx,p:.5,mr:1},icon:l.jsx("span",{style:d.iconSpan}),checkedIcon:l.jsx("span",{style:d.checkedIconSpan,children:l.jsx(dn,{sx:d.tickIconSx})})}),"All Stores"]}),b.map(M=>{const _=m.includes(M.id);return l.jsxs(P,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:_?700:400,color:_?"#222":"#444",background:_?"#f5f7fa":c,"&:hover":{background:"#f5f7fa"}},onClick:()=>v(M.id),children:[l.jsx(Nt,{size:"small",checked:_,sx:{...d.checkboxSx,p:.5,mr:1},icon:l.jsx("span",{style:d.iconSpan}),checkedIcon:l.jsx("span",{style:d.checkedIconSpan,children:l.jsx(dn,{sx:d.tickIconSx})})}),M.name]},M.id)})]})]}),h&&l.jsx(W,{color:"error",fontSize:14,sx:{mb:2},children:h}),l.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",mb:3},children:l.jsx(Ze,{variant:"contained",color:"primary",disabled:!T||u,onClick:k,sx:{...a.getUniversalBlueButtonSx(),minWidth:140,height:48,borderRadius:2,fontWeight:600,fontSize:16,boxShadow:"none"},children:u?"Sending...":"Send Request"})})]})}const qn=(e,t=0)=>{const n=Number(e);return Number.isFinite(n)?n:t},Yn=()=>{const e=new Date,t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return{validTo:`${t}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}`,ppd:`${r}/${n}/${t}`}},fs=e=>{const t=e?.productName||e?.name||"Product",n=e?.productCode||e?.sku||e?.productSku||t,r=e?.originalPrice??e?.mrp??e?.price??0,i=e?.price??e?.discountPrice??0,s=qn(r,0),a=qn(i,0),c=s>a&&s>0?Math.round((s-a)/s*100):5,d=Math.max(0,s-a);return{productName:t,productCode:n,mrp:s,discountPrice:a,discount:c,saveAmount:d}},iN=(e,t,n={})=>{const{productName:r,mrp:i,discountPrice:s}=fs(e),a=Math.max(0,qn(i,0)-qn(s,0)),c=n.validTo||Yn().validTo,d=n.ppd||Yn().ppd;return`
|
|
228
|
+
`))}return null}),anchorOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),anchorPosition:o.shape({left:o.number.isRequired,top:o.number.isRequired}),anchorReference:o.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:o.elementType,BackdropProps:o.object,children:o.node,classes:o.object,className:o.string,container:o.oneOfType([ar,o.func]),disableScrollLock:o.bool,elevation:Ra,marginThreshold:o.number,onClose:o.func,open:o.bool.isRequired,PaperProps:o.shape({component:bd}),slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transformOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function eO(e){return Oe("MuiMenu",e)}Ie("MuiMenu",["root","paper","list"]);const tO={vertical:"top",horizontal:"right"},nO={vertical:"top",horizontal:"left"},rO=e=>{const{classes:t}=e;return Ne({root:["root"],paper:["paper"],list:["list"]},eO,t)},oO=ne(Gd,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),iO=ne(Om,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),sO=ne(Tm,{name:"MuiMenu",slot:"List"})({outline:0}),is=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:a,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:p,open:u,PaperProps:h={},PopoverClasses:m,transitionDuration:y="auto",TransitionProps:{onEntering:g,...f}={},variant:b="selectedMenu",slots:x={},slotProps:E={},...w}=r,S=Di(),T={...r,autoFocus:i,disableAutoFocusItem:c,MenuListProps:d,onEntering:g,PaperProps:h,transitionDuration:y,TransitionProps:f,variant:b},v=rO(T),k=i&&!c&&u,M=A.useRef(null),B=(U,D)=>{M.current&&M.current.adjustStyleForScrollbar(U,{direction:S?"rtl":"ltr"}),g&&g(U,D)},z=U=>{U.key==="Tab"&&(U.preventDefault(),p&&p(U,"tabKeyDown"))};let $=-1;A.Children.map(s,(U,D)=>{A.isValidElement(U)&&(process.env.NODE_ENV!=="production"&&fd.isFragment(U)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
229
|
+
`)),U.props.disabled||(b==="selectedMenu"&&U.props.selected||$===-1)&&($=D))});const C={slots:x,slotProps:{list:d,transition:f,paper:h,...E}},I=Hn({elementType:x.root,externalSlotProps:E.root,ownerState:T,className:[v.root,a]}),[_,F]=$e("paper",{className:v.paper,elementType:iO,externalForwardedProps:C,shouldForwardComponentProp:!0,ownerState:T}),[j,V]=$e("list",{className:ge(v.list,d.className),elementType:sO,shouldForwardComponentProp:!0,externalForwardedProps:C,getSlotProps:U=>({...U,onKeyDown:D=>{z(D),U.onKeyDown?.(D)}}),ownerState:T}),R=typeof C.slotProps.transition=="function"?C.slotProps.transition(T):C.slotProps.transition;return l.jsx(oO,{onClose:p,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?tO:nO,slots:{root:x.root,paper:_,backdrop:x.backdrop,...x.transition&&{transition:x.transition}},slotProps:{root:I,paper:F,backdrop:typeof E.backdrop=="function"?E.backdrop(T):E.backdrop,transition:{...R,onEntering:(...U)=>{B(...U),R?.onEntering?.(...U)}}},open:u,ref:n,transitionDuration:y,ownerState:T,...w,classes:m,children:l.jsx(j,{actions:M,autoFocus:i&&($===-1||c),autoFocusItem:k,variant:b,...V,children:s})})});process.env.NODE_ENV!=="production"&&(is.propTypes={anchorEl:o.oneOfType([ar,o.func]),autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,disableAutoFocusItem:o.bool,MenuListProps:o.object,onClose:o.func,open:o.bool.isRequired,PaperProps:o.object,PopoverClasses:o.object,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),list:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,list:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object,variant:o.oneOf(["menu","selectedMenu"])});function aO(e){return Oe("MuiMenuItem",e)}const ss=Ie("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),lO=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},cO=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:s,classes:a}=e,d=Ne({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",s&&"selected"]},aO,a);return{...a,...d}},dO=ne(zi,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:lO})(Ae(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ss.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${ss.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${ss.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${ss.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ss.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${hm.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${hm.inset}`]:{marginLeft:52},[`& .${Mo.root}`]:{marginTop:0,marginBottom:0},[`& .${Mo.inset}`]:{paddingLeft:36},[`& .${wm.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${wm.root} svg`]:{fontSize:"1.25rem"}}}]}))),et=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:s="li",dense:a=!1,divider:c=!1,disableGutters:d=!1,focusVisibleClassName:p,role:u="menuitem",tabIndex:h,className:m,...y}=r,g=A.useContext(ns),f=A.useMemo(()=>({dense:a||g.dense||!1,disableGutters:d}),[g.dense,a,d]),b=A.useRef(null);yn(()=>{i&&(b.current?b.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[i]);const x={...r,dense:f.dense,divider:c,disableGutters:d},E=cO(r),w=Pt(b,n);let S;return r.disabled||(S=h!==void 0?h:-1),l.jsx(ns.Provider,{value:f,children:l.jsx(dO,{ref:w,role:u,tabIndex:S,component:s,focusVisibleClassName:ge(E.focusVisible,p),className:ge(E.root,m),...y,ownerState:x,classes:E})})});process.env.NODE_ENV!=="production"&&(et.propTypes={autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disabled:o.bool,disableGutters:o.bool,divider:o.bool,focusVisibleClassName:o.string,role:o.string,selected:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number});function uO(e){return Oe("MuiMobileStepper",e)}Ie("MuiMobileStepper",["root","positionBottom","positionTop","positionStatic","dots","dot","dotActive","progress"]);const pO=e=>{const{classes:t,position:n}=e,r={root:["root",`position${ie(n)}`],dots:["dots"],dot:["dot"],dotActive:["dotActive"],progress:["progress"]};return Ne(r,uO,t)},fO=ne(bn,{name:"MuiMobileStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ie(n.position)}`]]}})(Ae(({theme:e})=>({display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",background:(e.vars||e).palette.background.default,padding:8,variants:[{props:({position:t})=>t==="top"||t==="bottom",style:{position:"fixed",left:0,right:0,zIndex:(e.vars||e).zIndex.mobileStepper}},{props:{position:"top"},style:{top:0}},{props:{position:"bottom"},style:{bottom:0}}]}))),hO=ne("div",{name:"MuiMobileStepper",slot:"Dots"})({variants:[{props:{variant:"dots"},style:{display:"flex",flexDirection:"row"}}]}),gO=ne("div",{name:"MuiMobileStepper",slot:"Dot",shouldForwardProp:e=>_i(e)&&e!=="dotActive",overridesResolver:(e,t)=>{const{dotActive:n}=e;return[t.dot,n&&t.dotActive]}})(Ae(({theme:e})=>({variants:[{props:{variant:"dots"},style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.action.disabled,borderRadius:"50%",width:8,height:8,margin:"0 2px"}},{props:{variant:"dots",dotActive:!0},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}))),mO=ne(vm,{name:"MuiMobileStepper",slot:"Progress"})({variants:[{props:{variant:"progress"},style:{width:"50%"}}]}),Im=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiMobileStepper"}),{activeStep:i=0,backButton:s,className:a,LinearProgressProps:c,nextButton:d,position:p="bottom",steps:u,variant:h="dots",slots:m={},slotProps:y={},...g}=r,f={...r,activeStep:i,position:p,variant:h};let b;h==="progress"&&(u===1?b=100:b=Math.ceil(i/(u-1)*100));const x=pO(f),E={slots:m,slotProps:{progress:c,...y}},[w,S]=$e("root",{ref:n,elementType:fO,shouldForwardComponentProp:!0,className:ge(x.root,a),externalForwardedProps:{...E,...g},ownerState:f,additionalProps:{square:!0,elevation:0}}),[T,v]=$e("dots",{className:x.dots,elementType:hO,externalForwardedProps:E,ownerState:f}),[k,M]=$e("dot",{elementType:gO,externalForwardedProps:E,ownerState:f}),[B,z]=$e("progress",{className:x.progress,elementType:mO,shouldForwardComponentProp:!0,externalForwardedProps:E,ownerState:f,additionalProps:{value:b,variant:"determinate"}});return l.jsxs(w,{...S,children:[s,h==="text"&&l.jsxs(A.Fragment,{children:[i+1," / ",u]}),h==="dots"&&l.jsx(T,{...v,children:[...new Array(u)].map(($,C)=>l.jsx(k,{...M,className:ge(x.dot,M.className,C===i&&x.dotActive),dotActive:C===i},C))}),h==="progress"&&l.jsx(B,{...z}),d]})});process.env.NODE_ENV!=="production"&&(Im.propTypes={activeStep:Ra,backButton:o.node,classes:o.object,className:o.string,LinearProgressProps:o.object,nextButton:o.node,position:o.oneOf(["bottom","static","top"]),slotProps:o.shape({dot:o.oneOfType([o.func,o.object]),dots:o.oneOfType([o.func,o.object]),progress:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({dot:o.elementType,dots:o.elementType,progress:o.elementType,root:o.elementType}),steps:Ra.isRequired,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["dots","progress","text"])});function yO(e){return Oe("MuiNativeSelect",e)}const Kd=Ie("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),bO=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:s,error:a}=e,c={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${ie(n)}`,s&&"iconOpen",r&&"disabled"]};return Ne(c,yO,t)},Nm=ne("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Kd.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),xO=ne(Nm,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ht,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Kd.multiple}`]:t.multiple}]}})({}),Mm=ne("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Kd.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),vO=ne(Mm,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ie(n.variant)}`],n.open&&t.iconOpen]}})({}),Fm=A.forwardRef(function(t,n){const{className:r,disabled:i,error:s,IconComponent:a,inputRef:c,variant:d="standard",...p}=t,u={...t,disabled:i,variant:d,error:s},h=bO(u);return l.jsxs(A.Fragment,{children:[l.jsx(xO,{ownerState:u,className:ge(h.select,r),disabled:i,ref:c||n,...p}),t.multiple?null:l.jsx(vO,{as:a,ownerState:u,className:h.icon})]})});process.env.NODE_ENV!=="production"&&(Fm.propTypes={children:o.node,classes:o.object,className:o.string,disabled:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:Gt,multiple:o.bool,name:o.string,onChange:o.func,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});var Dm;const SO=ne("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Ht})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),wO=ne("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Ht})(Ae(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Bm(e){const{children:t,classes:n,className:r,label:i,notched:s,...a}=e,c=i!=null&&i!=="",d={...e,notched:s,withLabel:c};return l.jsx(SO,{"aria-hidden":!0,className:r,ownerState:d,...a,children:l.jsx(wO,{ownerState:d,children:c?l.jsx("span",{children:i}):Dm||(Dm=l.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&(Bm.propTypes={children:o.node,classes:o.object,className:o.string,label:o.node,notched:o.bool.isRequired,style:o.object});const CO=e=>{const{classes:t}=e,r=Ne({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},LA,t);return{...t,...r}},EO=ne(ol,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:nl})(Ae(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Rn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Rn.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Rn.focused} .${Rn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(St()).map(([n])=>({props:{color:n},style:{[`&.${Rn.focused} .${Rn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Rn.error} .${Rn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Rn.disabled} .${Rn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),TO=ne(Bm,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Ae(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),AO=ne(il,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:rl})(Ae(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),fl=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:s=!1,inputComponent:a="input",label:c,multiline:d=!1,notched:p,slots:u={},slotProps:h={},type:m="text",...y}=r,g=CO(r),f=Un(),b=wr({props:r,muiFormControl:f,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x={...r,color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:f,fullWidth:s,hiddenLabel:b.hiddenLabel,multiline:d,size:b.size,type:m},E=u.root??i.Root??EO,w=u.input??i.Input??AO,[S,T]=$e("notchedOutline",{elementType:TO,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:x,externalForwardedProps:{slots:u,slotProps:h},additionalProps:{label:c!=null&&c!==""&&b.required?l.jsxs(A.Fragment,{children:[c," ","*"]}):c}});return l.jsx(Yi,{slots:{root:E,input:w},slotProps:h,renderSuffix:v=>l.jsx(S,{...T,notched:typeof p<"u"?p:!!(v.startAdornment||v.filled||v.focused)}),fullWidth:s,inputComponent:a,multiline:d,ref:n,type:m,...y,classes:{...g,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(fl.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),defaultValue:o.any,disabled:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Gt,label:o.node,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,notched:o.bool,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,notchedOutline:o.oneOfType([o.func,o.object]),root:o.object}),slots:o.shape({input:o.elementType,notchedOutline:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),fl.muiName="Input";const PO=yt(l.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),kO=yt(l.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),OO=ne("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Ht})({position:"relative",display:"flex"}),IO=ne(PO,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),NO=ne(kO,{name:"MuiRadioButtonIcon"})(Ae(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function Xd(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i={...e,checked:t};return l.jsxs(OO,{className:n.root,ownerState:i,children:[l.jsx(IO,{fontSize:r,className:n.background,ownerState:i}),l.jsx(NO,{fontSize:r,className:n.dot,ownerState:i})]})}process.env.NODE_ENV!=="production"&&(Xd.propTypes={checked:o.bool,classes:o.object,fontSize:o.oneOf(["small","medium"])});const Jd=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(Jd.displayName="RadioGroupContext");function MO(){return A.useContext(Jd)}function FO(e){return Oe("MuiRadio",e)}const _m=Ie("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),DO=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${ie(n)}`,r!=="medium"&&`size${ie(r)}`]};return{...t,...Ne(i,FO,t)}},BO=ne(al,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${ie(n.size)}`],t[`color${ie(n.color)}`]]}})(Ae(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${_m.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${_m.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function _O(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const $O=l.jsx(Xd,{checked:!0}),zO=l.jsx(Xd,{}),Cr=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:s=$O,color:a="primary",icon:c=zO,name:d,onChange:p,size:u="medium",className:h,disabled:m,disableRipple:y=!1,slots:g={},slotProps:f={},inputProps:b,...x}=r,E=Un();let w=m;E&&typeof w>"u"&&(w=E.disabled),w??=!1;const S={...r,disabled:w,disableRipple:y,color:a,size:u},T=DO(S),v=MO();let k=i;const M=pd(p,v&&v.onChange);let B=d;v&&(typeof k>"u"&&(k=_O(v.value,r.value)),typeof B>"u"&&(B=v.name));const z=f.input??b,[$,C]=$e("root",{ref:n,elementType:BO,className:ge(T.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:f,...x},getSlotProps:I=>({...I,onChange:(_,...F)=>{I.onChange?.(_,...F),M(_,...F)}}),ownerState:S,additionalProps:{type:"radio",icon:A.cloneElement(c,{fontSize:c.props.fontSize??u}),checkedIcon:A.cloneElement(s,{fontSize:s.props.fontSize??u}),disabled:w,name:B,checked:k,slots:g,slotProps:{input:typeof z=="function"?z(S):z}}});return l.jsx($,{...C,classes:T})});process.env.NODE_ENV!=="production"&&(Cr.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,inputProps:o.object,inputRef:Gt,name:o.string,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function LO(e){return Oe("MuiRadioGroup",e)}Ie("MuiRadioGroup",["root","row","error"]);const jO=e=>{const{classes:t,row:n,error:r}=e;return Ne({root:["root",n&&"row",r&&"error"]},LO,t)},as=A.forwardRef(function(t,n){const{actions:r,children:i,className:s,defaultValue:a,name:c,onChange:d,value:p,...u}=t,h=A.useRef(null),m=jO(t),[y,g]=bo({controlled:p,default:a,name:"RadioGroup"});A.useImperativeHandle(r,()=>({focus:()=>{let E=h.current.querySelector("input:not(:disabled):checked");E||(E=h.current.querySelector("input:not(:disabled)")),E&&E.focus()}}),[]);const f=Pt(n,h),b=_r(c),x=A.useMemo(()=>({name:b,onChange(E){g(E.target.value),d&&d(E,E.target.value)},value:y}),[b,d,g,y]);return l.jsx(Jd.Provider,{value:x,children:l.jsx(gm,{role:"radiogroup",ref:f,className:ge(m.root,s),...u,children:i})})});process.env.NODE_ENV!=="production"&&(as.propTypes={children:o.node,className:o.string,defaultValue:o.any,name:o.string,onChange:o.func,value:o.any});const WO={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function $m(e){return Oe("MuiSelect",e)}const ls=Ie("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var zm;const VO=ne(Nm,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ls.select}`]:t.select},{[`&.${ls.select}`]:t[n.variant]},{[`&.${ls.error}`]:t.error},{[`&.${ls.multiple}`]:t.multiple}]}})({[`&.${ls.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),HO=ne(Mm,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ie(n.variant)}`],n.open&&t.iconOpen]}})({}),UO=ne("input",{shouldForwardProp:e=>_i(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Lm(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function RO(e){return e==null||typeof e=="string"&&!e.trim()}const qO=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:s,error:a}=e,c={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${ie(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ne(c,$m,t)},jm=A.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:s,autoWidth:a,children:c,className:d,defaultOpen:p,defaultValue:u,disabled:h,displayEmpty:m,error:y=!1,IconComponent:g,inputRef:f,labelId:b,MenuProps:x={},multiple:E,name:w,onBlur:S,onChange:T,onClose:v,onFocus:k,onKeyDown:M,onMouseDown:B,onOpen:z,open:$,readOnly:C,renderValue:I,required:_,SelectDisplayProps:F={},tabIndex:j,type:V,value:R,variant:U="standard",...D}=t,[O,L]=bo({controlled:R,default:u,name:"Select"}),[H,Y]=bo({controlled:$,default:p,name:"Select"}),X=A.useRef(null),te=A.useRef(null),[ce,de]=A.useState(null),{current:ae}=A.useRef($!=null),[J,oe]=A.useState(),G=Pt(n,f),pe=A.useCallback(se=>{te.current=se,se&&de(se)},[]),ee=ce?.parentNode;A.useImperativeHandle(G,()=>({focus:()=>{te.current.focus()},node:X.current,value:O}),[O]),A.useEffect(()=>{p&&H&&ce&&!ae&&(oe(a?null:ee.clientWidth),te.current.focus())},[ce,a]),A.useEffect(()=>{s&&te.current.focus()},[s]),A.useEffect(()=>{if(!b)return;const se=It(te.current).getElementById(b);if(se){const Te=()=>{getSelection().isCollapsed&&te.current.focus()};return se.addEventListener("click",Te),()=>{se.removeEventListener("click",Te)}}},[b]);const K=(se,Te)=>{se?z&&z(Te):v&&v(Te),ae||(oe(a?null:ee.clientWidth),Y(se))},q=se=>{B?.(se),se.button===0&&(se.preventDefault(),te.current.focus(),K(!0,se))},he=se=>{K(!1,se)},ue=A.Children.toArray(c),Ee=se=>{const Te=ue.find(Me=>Me.props.value===se.target.value);Te!==void 0&&(L(Te.props.value),T&&T(se,Te))},ke=se=>Te=>{let Me;if(Te.currentTarget.hasAttribute("tabindex")){if(E){Me=Array.isArray(O)?O.slice():[];const Le=O.indexOf(se.props.value);Le===-1?Me.push(se.props.value):Me.splice(Le,1)}else Me=se.props.value;if(se.props.onClick&&se.props.onClick(Te),O!==Me&&(L(Me),T)){const Le=Te.nativeEvent||Te,_e=new Le.constructor(Le.type,Le);Object.defineProperty(_e,"target",{writable:!0,value:{value:Me,name:w}}),T(_e,se)}E||K(!1,Te)}},ve=se=>{C||([" ","ArrowUp","ArrowDown","Enter"].includes(se.key)&&(se.preventDefault(),K(!0,se)),M?.(se))},le=ce!==null&&H,qe=se=>{!le&&S&&(Object.defineProperty(se,"target",{writable:!0,value:{value:O,name:w}}),S(se))};delete D["aria-invalid"];let He,fe;const re=[];let xe=!1,Se=!1;(tl({value:O})||m)&&(I?He=I(O):xe=!0);const we=ue.map(se=>{if(!A.isValidElement(se))return null;process.env.NODE_ENV!=="production"&&fd.isFragment(se)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
230
|
+
`));let Te;if(E){if(!Array.isArray(O))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":Fn(2));Te=O.some(Me=>Lm(Me,se.props.value)),Te&&xe&&re.push(se.props.children)}else Te=Lm(O,se.props.value),Te&&xe&&(fe=se.props.children);return Te&&(Se=!0),A.cloneElement(se,{"aria-selected":Te?"true":"false",onClick:ke(se),onKeyUp:Me=>{Me.key===" "&&Me.preventDefault(),se.props.onKeyUp&&se.props.onKeyUp(Me)},role:"option",selected:Te,value:void 0,"data-value":se.props.value})});process.env.NODE_ENV!=="production"&&A.useEffect(()=>{if(!Se&&!E&&O!==""){const se=ue.map(Te=>Te.props.value);console.warn([`MUI: You have provided an out-of-range value \`${O}\` for the select ${w?`(name="${w}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${se.filter(Te=>Te!=null).map(Te=>`\`${Te}\``).join(", ")||'""'}.`].join(`
|
|
231
|
+
`))}},[Se,ue,E,w,O]),xe&&(E?re.length===0?He=null:He=re.reduce((se,Te,Me)=>(se.push(Te),Me<re.length-1&&se.push(", "),se),[]):He=fe);let ye=J;!a&&ae&&ce&&(ye=ee.clientWidth);let me;typeof j<"u"?me=j:me=h?null:0;const Re=F.id||(w?`mui-component-select-${w}`:void 0),ze={...t,variant:U,value:O,open:le,error:y},nt=qO(ze),kt={...x.PaperProps,...typeof x.slotProps?.paper=="function"?x.slotProps.paper(ze):x.slotProps?.paper},Ce={...x.MenuListProps,...typeof x.slotProps?.list=="function"?x.slotProps.list(ze):x.slotProps?.list},Be=_r();return l.jsxs(A.Fragment,{children:[l.jsx(VO,{as:"div",ref:pe,tabIndex:me,role:"combobox","aria-controls":le?Be:void 0,"aria-disabled":h?"true":void 0,"aria-expanded":le?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[b,Re].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":_?"true":void 0,"aria-invalid":y?"true":void 0,onKeyDown:ve,onMouseDown:h||C?null:q,onBlur:qe,onFocus:k,...F,ownerState:ze,className:ge(F.className,nt.select,d),id:Re,children:RO(He)?zm||(zm=l.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):He}),l.jsx(UO,{"aria-invalid":y,value:Array.isArray(O)?O.join(","):O,name:w,ref:X,"aria-hidden":!0,onChange:Ee,tabIndex:-1,disabled:h,className:nt.nativeInput,autoFocus:s,required:_,...D,ownerState:ze}),l.jsx(HO,{as:g,className:nt.icon,ownerState:ze}),l.jsx(is,{id:`menu-${w||""}`,anchorEl:ee,open:le,onClose:he,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...x,slotProps:{...x.slotProps,list:{"aria-labelledby":b,role:"listbox","aria-multiselectable":E?"true":void 0,disableListWrap:!0,id:Be,...Ce},paper:{...kt,style:{minWidth:ye,...kt!=null?kt.style:null}}},children:we})]})});process.env.NODE_ENV!=="production"&&(jm.propTypes={"aria-describedby":o.string,"aria-label":o.string,autoFocus:o.bool,autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,disabled:o.bool,displayEmpty:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:Gt,labelId:o.string,MenuProps:o.object,multiple:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClose:o.func,onFocus:o.func,onOpen:o.func,open:o.bool,readOnly:o.bool,renderValue:o.func,required:o.bool,SelectDisplayProps:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.any,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});const YO=e=>{const{classes:t}=e,r=Ne({root:["root"]},$m,t);return{...t,...r}},Qd={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Ht(e)&&e!=="variant"},GO=ne(pl,Qd)(""),KO=ne(fl,Qd)(""),XO=ne(ul,Qd)(""),cn=A.forwardRef(function(t,n){const r=De({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:s,classes:a={},className:c,defaultOpen:d=!1,displayEmpty:p=!1,IconComponent:u=WA,id:h,input:m,inputProps:y,label:g,labelId:f,MenuProps:b,multiple:x=!1,native:E=!1,onClose:w,onOpen:S,open:T,renderValue:v,SelectDisplayProps:k,variant:M="outlined",...B}=r,z=E?Fm:jm,$=Un(),C=wr({props:r,muiFormControl:$,states:["variant","error"]}),I=C.variant||M,_={...r,variant:I,classes:a},F=YO(_),{root:j,...V}=F,R=m||{standard:l.jsx(GO,{ownerState:_}),outlined:l.jsx(KO,{label:g,ownerState:_}),filled:l.jsx(XO,{ownerState:_})}[I],U=Pt(n,Rr(R));return l.jsx(A.Fragment,{children:A.cloneElement(R,{inputComponent:z,inputProps:{children:s,error:C.error,IconComponent:u,variant:I,type:void 0,multiple:x,...E?{id:h}:{autoWidth:i,defaultOpen:d,displayEmpty:p,labelId:f,MenuProps:b,onClose:w,onOpen:S,open:T,renderValue:v,SelectDisplayProps:{id:h,...k}},...y,classes:y?Vt(V,y.classes):V,...m?m.props.inputProps:{}},...(x&&E||p)&&I==="outlined"?{notched:!0}:{},ref:U,className:ge(R.props.className,c,F.root),...!m&&{variant:I},...B})})});process.env.NODE_ENV!=="production"&&(cn.propTypes={autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,displayEmpty:o.bool,IconComponent:o.elementType,id:o.string,input:o.element,inputProps:o.object,label:o.node,labelId:o.string,MenuProps:o.object,multiple:o.bool,native:o.bool,onChange:o.func,onClose:o.func,onOpen:o.func,open:o.bool,renderValue:o.func,SelectDisplayProps:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.oneOfType([o.oneOf([""]),o.any]),variant:o.oneOf(["filled","outlined","standard"])}),cn.muiName="Select";function JO(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const QO=2;function Fo(e,t,n,r,i){return n===1?Math.min(e+t,i):Math.max(e-t,r)}function Wm(e,t){return e-t}function Vm(e,t){const{index:n}=e.reduce((r,i,s)=>{const a=Math.abs(t-i);return r===null||a<r.distance||a===r.distance?{distance:a,index:s}:r},null)??{};return n}function hl(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const i=n.changedTouches[r];if(i.identifier===t.current)return{x:i.clientX,y:i.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function gl(e,t,n){return(e-t)*100/(n-t)}function ZO(e,t,n){return(n-t)*e+t}function eI(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function tI(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(eI(t)))}function Hm({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(Wm)}function ml({sliderRef:e,activeIndex:t,setActive:n}){const r=It(e.current);(!e.current?.contains(r.activeElement)||Number(r?.activeElement?.getAttribute("data-index"))!==t)&&e.current?.querySelector(`[type="range"][data-index="${t}"]`).focus(),n&&n(t)}function yl(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?JO(e,t):!1}const nI={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}%`})}},rI=e=>e;let bl;function Um(){return bl===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?bl=CSS.supports("touch-action","none"):bl=!0),bl}function oI(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:s=!1,marks:a=!1,max:c=100,min:d=0,name:p,onChange:u,onChangeCommitted:h,orientation:m="horizontal",rootRef:y,scale:g=rI,step:f=1,shiftStep:b=10,tabIndex:x,value:E}=e,w=A.useRef(void 0),[S,T]=A.useState(-1),[v,k]=A.useState(-1),[M,B]=A.useState(!1),z=A.useRef(0),$=A.useRef(null),[C,I]=bo({controlled:E,default:n??d,name:"Slider"}),_=u&&((fe,re,xe)=>{const Se=fe.nativeEvent||fe,we=new Se.constructor(Se.type,Se);Object.defineProperty(we,"target",{writable:!0,value:{value:re,name:p}}),$.current=re,u(we,re,xe)}),F=Array.isArray(C);let j=F?C.slice().sort(Wm):[C];j=j.map(fe=>fe==null?d:yo(fe,d,c));const V=a===!0&&f!==null?[...Array(Math.floor((c-d)/f)+1)].map((fe,re)=>({value:d+f*re})):a||[],R=V.map(fe=>fe.value),[U,D]=A.useState(-1),O=A.useRef(null),L=Pt(y,O),H=fe=>re=>{const xe=Number(re.currentTarget.getAttribute("data-index"));So(re.target)&&D(xe),k(xe),fe?.onFocus?.(re)},Y=fe=>re=>{So(re.target)||D(-1),k(-1),fe?.onBlur?.(re)},X=(fe,re)=>{const xe=Number(fe.currentTarget.getAttribute("data-index")),Se=j[xe],we=R.indexOf(Se);let ye=re;if(V&&f==null){const me=R[R.length-1];ye>=me?ye=me:ye<=R[0]?ye=R[0]:ye=ye<Se?R[we-1]:R[we+1]}if(ye=yo(ye,d,c),F){i&&(ye=yo(ye,j[xe-1]||-1/0,j[xe+1]||1/0));const me=ye;ye=Hm({values:j,newValue:ye,index:xe});let Re=xe;i||(Re=ye.indexOf(me)),ml({sliderRef:O,activeIndex:Re})}I(ye),D(xe),_&&!yl(ye,C)&&_(fe,ye,xe),h&&h(fe,$.current??ye)},te=fe=>re=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(re.key)){re.preventDefault();const xe=Number(re.currentTarget.getAttribute("data-index")),Se=j[xe];let we=null;if(f!=null){const ye=re.shiftKey?b:f;switch(re.key){case"ArrowUp":we=Fo(Se,ye,1,d,c);break;case"ArrowRight":we=Fo(Se,ye,s?-1:1,d,c);break;case"ArrowDown":we=Fo(Se,ye,-1,d,c);break;case"ArrowLeft":we=Fo(Se,ye,s?1:-1,d,c);break;case"PageUp":we=Fo(Se,b,1,d,c);break;case"PageDown":we=Fo(Se,b,-1,d,c);break;case"Home":we=d;break;case"End":we=c;break}}else if(V){const ye=R[R.length-1],me=R.indexOf(Se),Re=[s?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],ze=[s?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Re.includes(re.key)?me===0?we=R[0]:we=R[me-1]:ze.includes(re.key)&&(me===R.length-1?we=ye:we=R[me+1])}we!=null&&X(re,we)}fe?.onKeyDown?.(re)};yn(()=>{r&&O.current.contains(document.activeElement)&&document.activeElement?.blur()},[r]),r&&S!==-1&&T(-1),r&&U!==-1&&D(-1);const ce=fe=>re=>{fe.onChange?.(re),X(re,re.target.valueAsNumber)},de=A.useRef(void 0);let ae=m;s&&m==="horizontal"&&(ae+="-reverse");const J=({finger:fe,move:re=!1})=>{const{current:xe}=O,{width:Se,height:we,bottom:ye,left:me}=xe.getBoundingClientRect();let Re;ae.startsWith("vertical")?Re=(ye-fe.y)/we:Re=(fe.x-me)/Se,ae.includes("-reverse")&&(Re=1-Re);let ze;if(ze=ZO(Re,d,c),f)ze=tI(ze,f,d);else{const kt=Vm(R,ze);ze=R[kt]}ze=yo(ze,d,c);let nt=0;if(F){re?nt=de.current:nt=Vm(j,ze),i&&(ze=yo(ze,j[nt-1]||-1/0,j[nt+1]||1/0));const kt=ze;ze=Hm({values:j,newValue:ze,index:nt}),i&&re||(nt=ze.indexOf(kt),de.current=nt)}return{newValue:ze,activeIndex:nt}},oe=Yt(fe=>{const re=hl(fe,w);if(!re)return;if(z.current+=1,fe.type==="mousemove"&&fe.buttons===0){G(fe);return}const{newValue:xe,activeIndex:Se}=J({finger:re,move:!0});ml({sliderRef:O,activeIndex:Se,setActive:T}),I(xe),!M&&z.current>QO&&B(!0),_&&!yl(xe,C)&&_(fe,xe,Se)}),G=Yt(fe=>{const re=hl(fe,w);if(B(!1),!re)return;const{newValue:xe}=J({finger:re,move:!0});T(-1),fe.type==="touchend"&&k(-1),h&&h(fe,$.current??xe),w.current=void 0,ee()}),pe=Yt(fe=>{if(r)return;Um()||fe.preventDefault();const re=fe.changedTouches[0];re!=null&&(w.current=re.identifier);const xe=hl(fe,w);if(xe!==!1){const{newValue:we,activeIndex:ye}=J({finger:xe});ml({sliderRef:O,activeIndex:ye,setActive:T}),I(we),_&&!yl(we,C)&&_(fe,we,ye)}z.current=0;const Se=It(O.current);Se.addEventListener("touchmove",oe,{passive:!0}),Se.addEventListener("touchend",G,{passive:!0})}),ee=A.useCallback(()=>{const fe=It(O.current);fe.removeEventListener("mousemove",oe),fe.removeEventListener("mouseup",G),fe.removeEventListener("touchmove",oe),fe.removeEventListener("touchend",G)},[G,oe]);A.useEffect(()=>{const{current:fe}=O;return fe.addEventListener("touchstart",pe,{passive:Um()}),()=>{fe.removeEventListener("touchstart",pe),ee()}},[ee,pe]),A.useEffect(()=>{r&&ee()},[r,ee]);const K=fe=>re=>{if(fe.onMouseDown?.(re),r||re.defaultPrevented||re.button!==0)return;re.preventDefault();const xe=hl(re,w);if(xe!==!1){const{newValue:we,activeIndex:ye}=J({finger:xe});ml({sliderRef:O,activeIndex:ye,setActive:T}),I(we),_&&!yl(we,C)&&_(re,we,ye)}z.current=0;const Se=It(O.current);Se.addEventListener("mousemove",oe,{passive:!0}),Se.addEventListener("mouseup",G)},q=gl(F?j[0]:d,d,c),he=gl(j[j.length-1],d,c)-q,ue=(fe={})=>{const re=Wr(fe),xe={onMouseDown:K(re||{})},Se={...re,...xe};return{...fe,ref:L,...Se}},Ee=fe=>re=>{fe.onMouseOver?.(re);const xe=Number(re.currentTarget.getAttribute("data-index"));k(xe)},ke=fe=>re=>{fe.onMouseLeave?.(re),k(-1)},ve=(fe={})=>{const re=Wr(fe),xe={onMouseOver:Ee(re||{}),onMouseLeave:ke(re||{})};return{...fe,...re,...xe}},le=fe=>({pointerEvents:S!==-1&&S!==fe?"none":void 0});let qe;return m==="vertical"&&(qe=s?"vertical-rl":"vertical-lr"),{active:S,axis:ae,axisProps:nI,dragging:M,focusedThumbIndex:U,getHiddenInputProps:(fe={})=>{const re=Wr(fe),xe={onChange:ce(re||{}),onFocus:H(re||{}),onBlur:Y(re||{}),onKeyDown:te(re||{})},Se={...re,...xe};return{tabIndex:x,"aria-labelledby":t,"aria-orientation":m,"aria-valuemax":g(c),"aria-valuemin":g(d),name:p,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:r,...fe,...Se,style:{...WO,direction:s?"rtl":"ltr",width:"100%",height:"100%",writingMode:qe}}},getRootProps:ue,getThumbProps:ve,marks:V,open:v,range:F,rootRef:L,trackLeap:he,trackOffset:q,values:j,getThumbStyle:le}}const iI=e=>!e||!vr(e);function sI(e){return Oe("MuiSlider",e)}const En=Ie("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),aI=e=>{const{open:t}=e;return{offset:ge(t&&En.valueLabelOpen),circle:En.valueLabelCircle,label:En.valueLabelLabel}};function Rm(e){const{children:t,className:n,value:r}=e,i=aI(e);return t?A.cloneElement(t,{className:t.props.className},l.jsxs(A.Fragment,{children:[t.props.children,l.jsx("span",{className:ge(i.offset,n),"aria-hidden":!0,children:l.jsx("span",{className:i.circle,children:l.jsx("span",{className:i.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(Rm.propTypes={children:o.element.isRequired,className:o.string,value:o.node});function qm(e){return e}const lI=ne("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ie(n.color)}`],n.size!=="medium"&&t[`size${ie(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(Ae(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${En.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${En.dragging}`]:{[`& .${En.thumb}, & .${En.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),cI=ne("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),dI=ne("span",{name:"MuiSlider",slot:"Track"})(Ae(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:e.lighten(e.palette[t].main,.62),borderColor:e.lighten(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:e.darken(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:e.darken(e.palette[t].main,.5)})}}}))]}))),uI=ne("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${ie(n.color)}`],n.size!=="medium"&&t[`thumbSize${ie(n.size)}`]]}})(Ae(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${En.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${En.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${En.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),Ym=ne(Rm,{name:"MuiSlider",slot:"ValueLabel"})(Ae(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${En.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${En.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));process.env.NODE_ENV!=="production"&&(Ym.propTypes={children:o.element.isRequired,index:o.number.isRequired,open:o.bool.isRequired,value:o.node});const pI=ne("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>_i(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(Ae(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),fI=ne("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>_i(e)&&e!=="markLabelActive"})(Ae(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),hI=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:s,classes:a,color:c,size:d}=e,p={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",s==="inverted"&&"trackInverted",s===!1&&"trackFalse",c&&`color${ie(c)}`,d&&`size${ie(d)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",d&&`thumbSize${ie(d)}`,c&&`thumbColor${ie(c)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ne(p,sI,a)},gI=({children:e})=>e,Gm=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiSlider"}),i=Di(),{"aria-label":s,"aria-valuetext":a,"aria-labelledby":c,component:d="span",components:p={},componentsProps:u={},color:h="primary",classes:m,className:y,disableSwap:g=!1,disabled:f=!1,getAriaLabel:b,getAriaValueText:x,marks:E=!1,max:w=100,min:S=0,name:T,onChange:v,onChangeCommitted:k,orientation:M="horizontal",shiftStep:B=10,size:z="medium",step:$=1,scale:C=qm,slotProps:I,slots:_,tabIndex:F,track:j="normal",value:V,valueLabelDisplay:R="off",valueLabelFormat:U=qm,...D}=r,O={...r,isRtl:i,max:w,min:S,classes:m,disabled:f,disableSwap:g,orientation:M,marks:E,color:h,size:z,step:$,shiftStep:B,scale:C,track:j,valueLabelDisplay:R,valueLabelFormat:U},{axisProps:L,getRootProps:H,getHiddenInputProps:Y,getThumbProps:X,open:te,active:ce,axis:de,focusedThumbIndex:ae,range:J,dragging:oe,marks:G,values:pe,trackOffset:ee,trackLeap:K,getThumbStyle:q}=oI({...O,rootRef:n});O.marked=G.length>0&&G.some(_e=>_e.label),O.dragging=oe,O.focusedThumbIndex=ae;const he=hI(O),ue=_?.root??p.Root??lI,Ee=_?.rail??p.Rail??cI,ke=_?.track??p.Track??dI,ve=_?.thumb??p.Thumb??uI,le=_?.valueLabel??p.ValueLabel??Ym,qe=_?.mark??p.Mark??pI,He=_?.markLabel??p.MarkLabel??fI,fe=_?.input??p.Input??"input",re=I?.root??u.root,xe=I?.rail??u.rail,Se=I?.track??u.track,we=I?.thumb??u.thumb,ye=I?.valueLabel??u.valueLabel,me=I?.mark??u.mark,Re=I?.markLabel??u.markLabel,ze=I?.input??u.input,nt=Hn({elementType:ue,getSlotProps:H,externalSlotProps:re,externalForwardedProps:D,additionalProps:{...iI(ue)&&{as:d}},ownerState:{...O,...re?.ownerState},className:[he.root,y]}),kt=Hn({elementType:Ee,externalSlotProps:xe,ownerState:O,className:he.rail}),Ce=Hn({elementType:ke,externalSlotProps:Se,additionalProps:{style:{...L[de].offset(ee),...L[de].leap(K)}},ownerState:{...O,...Se?.ownerState},className:he.track}),Be=Hn({elementType:ve,getSlotProps:X,externalSlotProps:we,ownerState:{...O,...we?.ownerState},className:he.thumb}),se=Hn({elementType:le,externalSlotProps:ye,ownerState:{...O,...ye?.ownerState},className:he.valueLabel}),Te=Hn({elementType:qe,externalSlotProps:me,ownerState:O,className:he.mark}),Me=Hn({elementType:He,externalSlotProps:Re,ownerState:O,className:he.markLabel}),Le=Hn({elementType:fe,getSlotProps:Y,externalSlotProps:ze,ownerState:O});return l.jsxs(ue,{...nt,children:[l.jsx(Ee,{...kt}),l.jsx(ke,{...Ce}),G.filter(_e=>_e.value>=S&&_e.value<=w).map((_e,ut)=>{const st=gl(_e.value,S,w),Rt=L[de].offset(st);let $t;return j===!1?$t=pe.includes(_e.value):$t=j==="normal"&&(J?_e.value>=pe[0]&&_e.value<=pe[pe.length-1]:_e.value<=pe[0])||j==="inverted"&&(J?_e.value<=pe[0]||_e.value>=pe[pe.length-1]:_e.value>=pe[0]),l.jsxs(A.Fragment,{children:[l.jsx(qe,{"data-index":ut,...Te,...!vr(qe)&&{markActive:$t},style:{...Rt,...Te.style},className:ge(Te.className,$t&&he.markActive)}),_e.label!=null?l.jsx(He,{"aria-hidden":!0,"data-index":ut,...Me,...!vr(He)&&{markLabelActive:$t},style:{...Rt,...Me.style},className:ge(he.markLabel,Me.className,$t&&he.markLabelActive),children:_e.label}):null]},ut)}),pe.map((_e,ut)=>{const st=gl(_e,S,w),Rt=L[de].offset(st),$t=R==="off"?gI:le;return l.jsx($t,{...!vr($t)&&{valueLabelFormat:U,valueLabelDisplay:R,value:typeof U=="function"?U(C(_e),ut):U,index:ut,open:te===ut||ce===ut||R==="on",disabled:f},...se,children:l.jsx(ve,{"data-index":ut,...Be,className:ge(he.thumb,Be.className,ce===ut&&he.active,ae===ut&&he.focusVisible),style:{...Rt,...q(ut),...Be.style},children:l.jsx(fe,{"data-index":ut,"aria-label":b?b(ut):s,"aria-valuenow":C(_e),"aria-labelledby":c,"aria-valuetext":x?x(C(_e),ut):a,value:pe[ut],...Le})})},ut)})]})});process.env.NODE_ENV!=="production"&&(Gm.propTypes={"aria-label":kn(o.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":o.string,"aria-valuetext":kn(o.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),components:o.shape({Input:o.elementType,Mark:o.elementType,MarkLabel:o.elementType,Rail:o.elementType,Root:o.elementType,Thumb:o.elementType,Track:o.elementType,ValueLabel:o.elementType}),componentsProps:o.shape({input:o.oneOfType([o.func,o.object]),mark:o.oneOfType([o.func,o.object]),markLabel:o.oneOfType([o.func,o.object]),rail:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object]),valueLabel:o.oneOfType([o.func,o.shape({children:o.element,className:o.string,open:o.bool,style:o.object,value:o.node,valueLabelDisplay:o.oneOf(["auto","off","on"])})])}),defaultValue:o.oneOfType([o.arrayOf(o.number),o.number]),disabled:o.bool,disableSwap:o.bool,getAriaLabel:o.func,getAriaValueText:o.func,marks:o.oneOfType([o.arrayOf(o.shape({label:o.node,value:o.number.isRequired})),o.bool]),max:o.number,min:o.number,name:o.string,onChange:o.func,onChangeCommitted:o.func,orientation:o.oneOf(["horizontal","vertical"]),scale:o.func,shiftStep:o.number,size:o.oneOfType([o.oneOf(["small","medium"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),mark:o.oneOfType([o.func,o.object]),markLabel:o.oneOfType([o.func,o.object]),rail:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object]),valueLabel:o.oneOfType([o.func,o.shape({children:o.element,className:o.string,open:o.bool,style:o.object,value:o.node,valueLabelDisplay:o.oneOf(["auto","off","on"])})])}),slots:o.shape({input:o.elementType,mark:o.elementType,markLabel:o.elementType,rail:o.elementType,root:o.elementType,thumb:o.elementType,track:o.elementType,valueLabel:o.elementType}),step:o.number,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,track:o.oneOf(["inverted","normal",!1]),value:o.oneOfType([o.arrayOf(o.number),o.number]),valueLabelDisplay:o.oneOf(["auto","off","on"]),valueLabelFormat:o.oneOfType([o.func,o.string])});function mI(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:s}=e,a=jr();A.useEffect(()=>{if(!i)return;function x(E){E.defaultPrevented||E.key==="Escape"&&r?.(E,"escapeKeyDown")}return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[i,r]);const c=Yt((x,E)=>{r?.(x,E)}),d=Yt(x=>{!r||x==null||a.start(x,()=>{c(null,"timeout")})});A.useEffect(()=>(i&&d(t),a.clear),[i,t,d,a]);const p=x=>{r?.(x,"clickaway")},u=a.clear,h=A.useCallback(()=>{t!=null&&d(s??t*.5)},[t,s,d]),m=x=>E=>{const w=x.onBlur;w?.(E),h()},y=x=>E=>{const w=x.onFocus;w?.(E),u()},g=x=>E=>{const w=x.onMouseEnter;w?.(E),u()},f=x=>E=>{const w=x.onMouseLeave;w?.(E),h()};return A.useEffect(()=>{if(!n&&i)return window.addEventListener("focus",h),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",u)}},[n,i,h,u]),{getRootProps:(x={})=>{const E={...Wr(e),...Wr(x)};return{role:"presentation",...x,...E,onBlur:m(E),onFocus:y(E),onMouseEnter:g(E),onMouseLeave:f(E)}},onClickAway:p}}function yI(e){return Oe("MuiSnackbarContent",e)}Ie("MuiSnackbarContent",["root","message","action"]);const bI=e=>{const{classes:t}=e;return Ne({root:["root"],action:["action"],message:["message"]},yI,t)},xI=ne(bn,{name:"MuiSnackbarContent",slot:"Root"})(Ae(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(nd(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:nd(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),vI=ne("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),SI=ne("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Km=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiSnackbarContent"}),{action:i,className:s,message:a,role:c="alert",...d}=r,p=r,u=bI(p);return l.jsxs(xI,{role:c,elevation:6,className:ge(u.root,s),ownerState:p,ref:n,...d,children:[l.jsx(vI,{className:u.message,ownerState:p,children:a}),i?l.jsx(SI,{className:u.action,ownerState:p,children:i}):null]})});process.env.NODE_ENV!=="production"&&(Km.propTypes={action:o.node,classes:o.object,className:o.string,message:o.node,role:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function wI(e){return Oe("MuiSnackbar",e)}Ie("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const CI=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${ie(n.vertical)}${ie(n.horizontal)}`]};return Ne(r,wI,t)},EI=ne("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${ie(n.anchorOrigin.vertical)}${ie(n.anchorOrigin.horizontal)}`]]}})(Ae(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),Do=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiSnackbar"}),i=Ln(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:c,horizontal:d}={vertical:"bottom",horizontal:"left"},autoHideDuration:p=null,children:u,className:h,ClickAwayListenerProps:m,ContentProps:y,disableWindowBlurListener:g=!1,message:f,onBlur:b,onClose:x,onFocus:E,onMouseEnter:w,onMouseLeave:S,open:T,resumeHideDuration:v,slots:k={},slotProps:M={},TransitionComponent:B,transitionDuration:z=s,TransitionProps:{onEnter:$,onExited:C,...I}={},..._}=r,F={...r,anchorOrigin:{vertical:c,horizontal:d},autoHideDuration:p,disableWindowBlurListener:g,TransitionComponent:B,transitionDuration:z},j=CI(F),{getRootProps:V,onClickAway:R}=mI(F),[U,D]=A.useState(!0),O=pe=>{D(!0),C&&C(pe)},L=(pe,ee)=>{D(!1),$&&$(pe,ee)},H={slots:{transition:B,...k},slotProps:{content:y,clickAwayListener:m,transition:I,...M}},[Y,X]=$e("root",{ref:n,className:[j.root,h],elementType:EI,getSlotProps:V,externalForwardedProps:{...H,..._},ownerState:F}),[te,{ownerState:ce,...de}]=$e("clickAwayListener",{elementType:ll,externalForwardedProps:H,getSlotProps:pe=>({onClickAway:(...ee)=>{const K=ee[0];pe.onClickAway?.(...ee),!K?.defaultMuiPrevented&&R(...ee)}}),ownerState:F}),[ae,J]=$e("content",{elementType:Km,shouldForwardComponentProp:!0,externalForwardedProps:H,additionalProps:{message:f,action:a},ownerState:F}),[oe,G]=$e("transition",{elementType:No,externalForwardedProps:H,getSlotProps:pe=>({onEnter:(...ee)=>{pe.onEnter?.(...ee),L(...ee)},onExited:(...ee)=>{pe.onExited?.(...ee),O(...ee)}}),additionalProps:{appear:!0,in:T,timeout:z,direction:c==="top"?"down":"up"},ownerState:F});return!T&&U?null:l.jsx(te,{...de,...k.clickAwayListener&&{ownerState:ce},children:l.jsx(Y,{...X,children:l.jsx(oe,{...G,children:u||l.jsx(ae,{...J})})})})});process.env.NODE_ENV!=="production"&&(Do.propTypes={action:o.node,anchorOrigin:o.shape({horizontal:o.oneOf(["center","left","right"]).isRequired,vertical:o.oneOf(["bottom","top"]).isRequired}),autoHideDuration:o.number,children:o.element,classes:o.object,className:o.string,ClickAwayListenerProps:o.object,ContentProps:o.object,disableWindowBlurListener:o.bool,key:()=>null,message:o.node,onBlur:o.func,onClose:o.func,onFocus:o.func,onMouseEnter:o.func,onMouseLeave:o.func,open:o.bool,resumeHideDuration:o.number,slotProps:o.shape({clickAwayListener:o.oneOfType([o.func,o.object]),content:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({clickAwayListener:o.elementType,content:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function TI(e){return Oe("MuiTooltip",e)}const wt=Ie("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function AI(e){return Math.round(e*1e5)/1e5}const PI=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:s}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${ie(s.split("-")[0])}`],arrow:["arrow"]};return Ne(a,TI,t)},kI=ne(Md,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Ae(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${wt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${wt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${wt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${wt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${wt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${wt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${wt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${wt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),OI=ne("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${ie(n.placement.split("-")[0])}`]]}})(Ae(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${wt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${wt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${wt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${wt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${AI(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${wt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${wt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${wt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${wt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${wt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${wt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${wt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${wt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${wt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${wt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),II=ne("span",{name:"MuiTooltip",slot:"Arrow"})(Ae(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let xl=!1;const Xm=new Ha;let cs={x:0,y:0};function vl(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Bo=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:s,classes:a,components:c={},componentsProps:d={},describeChild:p=!1,disableFocusListener:u=!1,disableHoverListener:h=!1,disableInteractive:m=!1,disableTouchListener:y=!1,enterDelay:g=100,enterNextDelay:f=0,enterTouchDelay:b=700,followCursor:x=!1,id:E,leaveDelay:w=0,leaveTouchDelay:S=1500,onClose:T,onOpen:v,open:k,placement:M="bottom",PopperComponent:B,PopperProps:z={},slotProps:$={},slots:C={},title:I,TransitionComponent:_,TransitionProps:F,...j}=r,V=A.isValidElement(s)?s:l.jsx("span",{children:s}),R=Ln(),U=Di(),[D,O]=A.useState(),[L,H]=A.useState(null),Y=A.useRef(!1),X=m||x,te=jr(),ce=jr(),de=jr(),ae=jr(),[J,oe]=bo({controlled:k,default:!1,name:"Tooltip",state:"open"});let G=J;if(process.env.NODE_ENV!=="production"){const{current:Fe}=A.useRef(k!==void 0);A.useEffect(()=>{D&&D.disabled&&!Fe&&I!==""&&D.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
232
|
+
`))},[I,D,Fe])}const pe=_r(E),ee=A.useRef(),K=Yt(()=>{ee.current!==void 0&&(document.body.style.WebkitUserSelect=ee.current,ee.current=void 0),ae.clear()});A.useEffect(()=>K,[K]);const q=Fe=>{Xm.clear(),xl=!0,oe(!0),v&&!G&&v(Fe)},he=Yt(Fe=>{Xm.start(800+w,()=>{xl=!1}),oe(!1),T&&G&&T(Fe),te.start(R.transitions.duration.shortest,()=>{Y.current=!1})}),ue=Fe=>{Y.current&&Fe.type!=="touchstart"||(D&&D.removeAttribute("title"),ce.clear(),de.clear(),g||xl&&f?ce.start(xl?f:g,()=>{q(Fe)}):q(Fe))},Ee=Fe=>{ce.clear(),de.start(w,()=>{he(Fe)})},[,ke]=A.useState(!1),ve=Fe=>{So(Fe.target)||(ke(!1),Ee(Fe))},le=Fe=>{D||O(Fe.currentTarget),So(Fe.target)&&(ke(!0),ue(Fe))},qe=Fe=>{Y.current=!0;const un=V.props;un.onTouchStart&&un.onTouchStart(Fe)},He=Fe=>{qe(Fe),de.clear(),te.clear(),K(),ee.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ae.start(b,()=>{document.body.style.WebkitUserSelect=ee.current,ue(Fe)})},fe=Fe=>{V.props.onTouchEnd&&V.props.onTouchEnd(Fe),K(),de.start(S,()=>{he(Fe)})};A.useEffect(()=>{if(!G)return;function Fe(un){un.key==="Escape"&&he(un)}return document.addEventListener("keydown",Fe),()=>{document.removeEventListener("keydown",Fe)}},[he,G]);const re=Pt(Rr(V),O,n);!I&&I!==0&&(G=!1);const xe=A.useRef(),Se=Fe=>{const un=V.props;un.onMouseMove&&un.onMouseMove(Fe),cs={x:Fe.clientX,y:Fe.clientY},xe.current&&xe.current.update()},we={},ye=typeof I=="string";p?(we.title=!G&&ye&&!h?I:null,we["aria-describedby"]=G?pe:null):(we["aria-label"]=ye?I:null,we["aria-labelledby"]=G&&!ye?pe:null);const me={...we,...j,...V.props,className:ge(j.className,V.props.className),onTouchStart:qe,ref:re,...x?{onMouseMove:Se}:{}};process.env.NODE_ENV!=="production"&&(me["data-mui-internal-clone-element"]=!0,A.useEffect(()=>{D&&!D.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
233
|
+
`))},[D]));const Re={};y||(me.onTouchStart=He,me.onTouchEnd=fe),h||(me.onMouseOver=vl(ue,me.onMouseOver),me.onMouseLeave=vl(Ee,me.onMouseLeave),X||(Re.onMouseOver=ue,Re.onMouseLeave=Ee)),u||(me.onFocus=vl(le,me.onFocus),me.onBlur=vl(ve,me.onBlur),X||(Re.onFocus=le,Re.onBlur=ve)),process.env.NODE_ENV!=="production"&&V.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${V.props.title}\` or the Tooltip component.`].join(`
|
|
234
|
+
`));const ze={...r,isRtl:U,arrow:i,disableInteractive:X,placement:M,PopperComponentProp:B,touch:Y.current},nt=typeof $.popper=="function"?$.popper(ze):$.popper,kt=A.useMemo(()=>{let Fe=[{name:"arrow",enabled:!!L,options:{element:L,padding:4}}];return z.popperOptions?.modifiers&&(Fe=Fe.concat(z.popperOptions.modifiers)),nt?.popperOptions?.modifiers&&(Fe=Fe.concat(nt.popperOptions.modifiers)),{...z.popperOptions,...nt?.popperOptions,modifiers:Fe}},[L,z.popperOptions,nt?.popperOptions]),Ce=PI(ze),Be=typeof $.transition=="function"?$.transition(ze):$.transition,se={slots:{popper:c.Popper,transition:c.Transition??_,tooltip:c.Tooltip,arrow:c.Arrow,...C},slotProps:{arrow:$.arrow??d.arrow,popper:{...z,...nt??d.popper},tooltip:$.tooltip??d.tooltip,transition:{...F,...Be??d.transition}}},[Te,Me]=$e("popper",{elementType:kI,externalForwardedProps:se,ownerState:ze,className:ge(Ce.popper,z?.className)}),[Le,_e]=$e("transition",{elementType:No,externalForwardedProps:se,ownerState:ze}),[ut,st]=$e("tooltip",{elementType:OI,className:Ce.tooltip,externalForwardedProps:se,ownerState:ze}),[Rt,$t]=$e("arrow",{elementType:II,className:Ce.arrow,externalForwardedProps:se,ownerState:ze,ref:H});return l.jsxs(A.Fragment,{children:[A.cloneElement(V,me),l.jsx(Te,{as:B??Md,placement:M,anchorEl:x?{getBoundingClientRect:()=>({top:cs.y,left:cs.x,right:cs.x,bottom:cs.y,width:0,height:0})}:D,popperRef:xe,open:D?G:!1,id:pe,transition:!0,...Re,...Me,popperOptions:kt,children:({TransitionProps:Fe})=>l.jsx(Le,{timeout:R.transitions.duration.shorter,...Fe,..._e,children:l.jsxs(ut,{...st,children:[I,i?l.jsx(Rt,{...$t}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Bo.propTypes={arrow:o.bool,children:Yr.isRequired,classes:o.object,className:o.string,components:o.shape({Arrow:o.elementType,Popper:o.elementType,Tooltip:o.elementType,Transition:o.elementType}),componentsProps:o.shape({arrow:o.object,popper:o.object,tooltip:o.object,transition:o.object}),describeChild:o.bool,disableFocusListener:o.bool,disableHoverListener:o.bool,disableInteractive:o.bool,disableTouchListener:o.bool,enterDelay:o.number,enterNextDelay:o.number,enterTouchDelay:o.number,followCursor:o.bool,id:o.string,leaveDelay:o.number,leaveTouchDelay:o.number,onClose:o.func,onOpen:o.func,open:o.bool,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:o.elementType,PopperProps:o.object,slotProps:o.shape({arrow:o.oneOfType([o.func,o.object]),popper:o.oneOfType([o.func,o.object]),tooltip:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({arrow:o.elementType,popper:o.elementType,tooltip:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),title:o.node,TransitionComponent:o.elementType,TransitionProps:o.object});function NI(e){return Oe("MuiSwitch",e)}const Kt=Ie("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),MI=e=>{const{classes:t,edge:n,size:r,color:i,checked:s,disabled:a}=e,c={root:["root",n&&`edge${ie(n)}`,`size${ie(r)}`],switchBase:["switchBase",`color${ie(i)}`,s&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=Ne(c,NI,t);return{...t,...d}},FI=ne("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${ie(n.edge)}`],t[`size${ie(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Kt.thumb}`]:{width:16,height:16},[`& .${Kt.switchBase}`]:{padding:4,[`&.${Kt.checked}`]:{transform:"translateX(16px)"}}}}]}),DI=ne(al,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Kt.input}`]:t.input},n.color!=="default"&&t[`color${ie(n.color)}`]]}})(Ae(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Kt.checked}`]:{transform:"translateX(20px)"},[`&.${Kt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Kt.checked} + .${Kt.track}`]:{opacity:.5},[`&.${Kt.disabled} + .${Kt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Kt.input}`]:{left:"-100%",width:"300%"}})),Ae(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(St(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Kt.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Kt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${Kt.checked} + .${Kt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),BI=ne("span",{name:"MuiSwitch",slot:"Track"})(Ae(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),_I=ne("span",{name:"MuiSwitch",slot:"Thumb"})(Ae(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Jm=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiSwitch"}),{className:i,color:s="primary",edge:a=!1,size:c="medium",sx:d,slots:p={},slotProps:u={},...h}=r,m={...r,color:s,edge:a,size:c},y=MI(m),g={slots:p,slotProps:u},[f,b]=$e("root",{className:ge(y.root,i),elementType:FI,externalForwardedProps:g,ownerState:m,additionalProps:{sx:d}}),[x,E]=$e("thumb",{className:y.thumb,elementType:_I,externalForwardedProps:g,ownerState:m}),w=l.jsx(x,{...E}),[S,T]=$e("track",{className:y.track,elementType:BI,externalForwardedProps:g,ownerState:m});return l.jsxs(f,{...b,children:[l.jsx(DI,{type:"checkbox",icon:w,checkedIcon:w,ref:n,ownerState:m,...h,classes:{...y,root:y.switchBase},slots:{...p.switchBase&&{root:p.switchBase},...p.input&&{input:p.input}},slotProps:{...u.switchBase&&{root:typeof u.switchBase=="function"?u.switchBase(m):u.switchBase},input:{role:"switch"},...u.input&&{input:typeof u.input=="function"?u.input(m):u.input}}}),l.jsx(S,{...T})]})});process.env.NODE_ENV!=="production"&&(Jm.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,edge:o.oneOf(["end","start",!1]),icon:o.node,id:o.string,inputProps:o.object,inputRef:Gt,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),switchBase:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType,switchBase:o.elementType,thumb:o.elementType,track:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});const Zd=A.createContext();process.env.NODE_ENV!=="production"&&(Zd.displayName="TableContext");function $I(e){return Oe("MuiTable",e)}Ie("MuiTable",["root","stickyHeader"]);const zI=e=>{const{classes:t,stickyHeader:n}=e;return Ne({root:["root",n&&"stickyHeader"]},$I,t)},LI=ne("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Ae(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),Qm="table",Zm=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiTable"}),{className:i,component:s=Qm,padding:a="normal",size:c="medium",stickyHeader:d=!1,...p}=r,u={...r,component:s,padding:a,size:c,stickyHeader:d},h=zI(u),m=A.useMemo(()=>({padding:a,size:c,stickyHeader:d}),[a,c,d]);return l.jsx(Zd.Provider,{value:m,children:l.jsx(LI,{as:s,role:s===Qm?null:"table",ref:n,className:ge(h.root,i),ownerState:u,...p})})});process.env.NODE_ENV!=="production"&&(Zm.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,padding:o.oneOf(["checkbox","none","normal"]),size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),stickyHeader:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const ds=A.createContext();process.env.NODE_ENV!=="production"&&(ds.displayName="Tablelvl2Context");function jI(e){return Oe("MuiTableBody",e)}Ie("MuiTableBody",["root"]);const WI=e=>{const{classes:t}=e;return Ne({root:["root"]},jI,t)},VI=ne("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),HI={variant:"body"},ey="tbody",ty=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiTableBody"}),{className:i,component:s=ey,...a}=r,c={...r,component:s},d=WI(c);return l.jsx(ds.Provider,{value:HI,children:l.jsx(VI,{className:ge(d.root,i),as:s,ref:n,role:s===ey?null:"rowgroup",ownerState:c,...a})})});process.env.NODE_ENV!=="production"&&(ty.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function UI(e){return Oe("MuiTableCell",e)}const RI=Ie("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),qI=e=>{const{classes:t,variant:n,align:r,padding:i,size:s,stickyHeader:a}=e,c={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${ie(r)}`,i!=="normal"&&`padding${ie(i)}`,`size${ie(s)}`]};return Ne(c,UI,t)},YI=ne("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ie(n.size)}`],n.padding!=="normal"&&t[`padding${ie(n.padding)}`],n.align!=="inherit"&&t[`align${ie(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Ae(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
235
|
+
${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${RI.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),Er=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiTableCell"}),{align:i="inherit",className:s,component:a,padding:c,scope:d,size:p,sortDirection:u,variant:h,...m}=r,y=A.useContext(Zd),g=A.useContext(ds),f=g&&g.variant==="head";let b;a?b=a:b=f?"th":"td";let x=d;b==="td"?x=void 0:!x&&f&&(x="col");const E=h||g&&g.variant,w={...r,align:i,component:b,padding:c||(y&&y.padding?y.padding:"normal"),size:p||(y&&y.size?y.size:"medium"),sortDirection:u,stickyHeader:E==="head"&&y&&y.stickyHeader,variant:E},S=qI(w);let T=null;return u&&(T=u==="asc"?"ascending":"descending"),l.jsx(YI,{as:b,ref:n,className:ge(S.root,s),"aria-sort":T,scope:x,ownerState:w,...m})});process.env.NODE_ENV!=="production"&&(Er.propTypes={align:o.oneOf(["center","inherit","justify","left","right"]),children:o.node,classes:o.object,className:o.string,component:o.elementType,padding:o.oneOf(["checkbox","none","normal"]),scope:o.string,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sortDirection:o.oneOf(["asc","desc",!1]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["body","footer","head"]),o.string])});function GI(e){return Oe("MuiTableContainer",e)}Ie("MuiTableContainer",["root"]);const KI=e=>{const{classes:t}=e;return Ne({root:["root"]},GI,t)},XI=ne("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),ny=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiTableContainer"}),{className:i,component:s="div",...a}=r,c={...r,component:s},d=KI(c);return l.jsx(XI,{ref:n,as:s,className:ge(d.root,i),ownerState:c,...a})});process.env.NODE_ENV!=="production"&&(ny.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function JI(e){return Oe("MuiTableHead",e)}Ie("MuiTableHead",["root"]);const QI=e=>{const{classes:t}=e;return Ne({root:["root"]},JI,t)},ZI=ne("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),e2={variant:"head"},ry="thead",oy=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiTableHead"}),{className:i,component:s=ry,...a}=r,c={...r,component:s},d=QI(c);return l.jsx(ds.Provider,{value:e2,children:l.jsx(ZI,{as:s,className:ge(d.root,i),ref:n,role:s===ry?null:"rowgroup",ownerState:c,...a})})});process.env.NODE_ENV!=="production"&&(oy.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function t2(e){return Oe("MuiTableRow",e)}const iy=Ie("MuiTableRow",["root","selected","hover","head","footer"]),n2=e=>{const{classes:t,selected:n,hover:r,head:i,footer:s}=e;return Ne({root:["root",n&&"selected",r&&"hover",i&&"head",s&&"footer"]},t2,t)},r2=ne("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Ae(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${iy.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${iy.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),sy="tr",us=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiTableRow"}),{className:i,component:s=sy,hover:a=!1,selected:c=!1,...d}=r,p=A.useContext(ds),u={...r,component:s,hover:a,selected:c,head:p&&p.variant==="head",footer:p&&p.variant==="footer"},h=n2(u);return l.jsx(r2,{as:s,ref:n,className:ge(h.root,i),role:s===sy?null:"row",ownerState:u,...d})});process.env.NODE_ENV!=="production"&&(us.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,hover:o.bool,selected:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function o2(e){return Oe("MuiTextField",e)}Ie("MuiTextField",["root"]);const i2={standard:pl,filled:ul,outlined:fl},s2=e=>{const{classes:t}=e;return Ne({root:["root"]},o2,t)},a2=ne(Zi,{name:"MuiTextField",slot:"Root"})({}),ps=A.forwardRef(function(t,n){const r=De({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:s=!1,children:a,className:c,color:d="primary",defaultValue:p,disabled:u=!1,error:h=!1,FormHelperTextProps:m,fullWidth:y=!1,helperText:g,id:f,InputLabelProps:b,inputProps:x,InputProps:E,inputRef:w,label:S,maxRows:T,minRows:v,multiline:k=!1,name:M,onBlur:B,onChange:z,onFocus:$,placeholder:C,required:I=!1,rows:_,select:F=!1,SelectProps:j,slots:V={},slotProps:R={},type:U,value:D,variant:O="outlined",...L}=r,H={...r,autoFocus:s,color:d,disabled:u,error:h,fullWidth:y,multiline:k,required:I,select:F,variant:O},Y=s2(H);process.env.NODE_ENV!=="production"&&F&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const X=_r(f),te=g&&X?`${X}-helper-text`:void 0,ce=S&&X?`${X}-label`:void 0,de=i2[O],ae={slots:V,slotProps:{input:E,inputLabel:b,htmlInput:x,formHelperText:m,select:j,...R}},J={},oe=ae.slotProps.inputLabel;O==="outlined"&&(oe&&typeof oe.shrink<"u"&&(J.notched=oe.shrink),J.label=S),F&&((!j||!j.native)&&(J.id=void 0),J["aria-describedby"]=void 0);const[G,pe]=$e("root",{elementType:a2,shouldForwardComponentProp:!0,externalForwardedProps:{...ae,...L},ownerState:H,className:ge(Y.root,c),ref:n,additionalProps:{disabled:u,error:h,fullWidth:y,required:I,color:d,variant:O}}),[ee,K]=$e("input",{elementType:de,externalForwardedProps:ae,additionalProps:J,ownerState:H}),[q,he]=$e("inputLabel",{elementType:xm,externalForwardedProps:ae,ownerState:H}),[ue,Ee]=$e("htmlInput",{elementType:"input",externalForwardedProps:ae,ownerState:H}),[ke,ve]=$e("formHelperText",{elementType:bm,externalForwardedProps:ae,ownerState:H}),[le,qe]=$e("select",{elementType:cn,externalForwardedProps:ae,ownerState:H}),He=l.jsx(ee,{"aria-describedby":te,autoComplete:i,autoFocus:s,defaultValue:p,fullWidth:y,multiline:k,name:M,rows:_,maxRows:T,minRows:v,type:U,value:D,id:X,inputRef:w,onBlur:B,onChange:z,onFocus:$,placeholder:C,inputProps:Ee,slots:{input:V.htmlInput?ue:void 0},...K});return l.jsxs(G,{...pe,children:[S!=null&&S!==""&&l.jsx(q,{htmlFor:X,id:ce,...he,children:S}),F?l.jsx(le,{"aria-describedby":te,id:X,labelId:ce,value:D,input:He,...qe,children:a}):He,g&&l.jsx(ke,{id:te,...ve,children:g})]})});process.env.NODE_ENV!=="production"&&(ps.propTypes={autoComplete:o.string,autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),defaultValue:o.any,disabled:o.bool,error:o.bool,FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:Gt,label:o.node,margin:o.oneOf(["dense","none","normal"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,placeholder:o.string,required:o.bool,rows:o.oneOfType([o.number,o.string]),select:o.bool,SelectProps:o.object,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({formHelperText:o.oneOfType([o.func,o.object]),htmlInput:o.oneOfType([o.func,o.object]),input:o.oneOfType([o.func,o.object]),inputLabel:o.oneOfType([o.func,o.object]),select:o.oneOfType([o.func,o.object])}),slots:o.shape({formHelperText:o.elementType,htmlInput:o.elementType,input:o.elementType,inputLabel:o.elementType,root:o.elementType,select:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any,variant:o.oneOf(["filled","outlined","standard"])});const _t=Hh({themeId:Si}),l2=yt(l.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");function ay(e){return l.jsx(l2,{...e})}const c2=44;function d2({children:e,styles:t,gap:n=8,overflowTooltip:r="More options",OverflowIcon:i=ay}){const s=N.useRef(null),a=N.useRef(null),c=N.useRef([]),d=N.useRef(!1),p=N.useRef(null),[u,h]=N.useState(9999),[m,y]=N.useState(null),g=!!m,f=A.Children.toArray(e).filter(Boolean),b=f.length,x=N.useCallback(()=>{if(!a.current)return!1;const $=Array.from(a.current.children);if($.length!==b)return!1;const C=$.map(I=>I.getBoundingClientRect().width);return C.some(I=>I===0)?!1:(c.current=C,d.current=!0,!0)},[b]),E=N.useCallback($=>{const C=c.current;if(!C.length||C.reduce((j,V)=>j+V,0)+Math.max(0,b-1)*n<=$)return b;let _=0,F=0;for(let j=0;j<b;j++){const V=C[j]+(j>0?n:0);if(_+V+c2+n<=$)_+=V,F++;else break}return b>0?Math.max(1,F):0},[b,n]),w=N.useCallback(()=>{p.current&&cancelAnimationFrame(p.current),p.current=requestAnimationFrame(()=>{if(!s.current||(d.current||x(),!d.current))return;const $=s.current.getBoundingClientRect().width;h(E($))})},[x,E]);N.useLayoutEffect(()=>{const $=requestAnimationFrame(()=>{if(x()&&s.current){const _=s.current.getBoundingClientRect().width;h(E(_))}}),C=new ResizeObserver(w);return s.current&&C.observe(s.current),()=>{cancelAnimationFrame($),p.current&&cancelAnimationFrame(p.current),C.disconnect()}},[x,E,w]),N.useEffect(()=>{d.current=!1,c.current=[],w()},[b,w]);const S=$=>A.isValidElement($)&&$.props?.["data-overflow-divider"],T=Math.min(u,b);let v=f.slice(0,T),k=f.slice(T);for(;v.length>1&&S(v[v.length-1]);)k=[v.pop(),...k];const M=k.length>0,B=v[0]??null,z=v.slice(1);return l.jsxs(l.Fragment,{children:[l.jsx(P,{ref:a,"aria-hidden":"true",sx:{position:"fixed",top:0,left:"-9999px",visibility:"hidden",display:"flex",alignItems:"center",gap:`${n}px`,pointerEvents:"none",zIndex:-1},children:f.map(($,C)=>l.jsx(P,{sx:{flexShrink:0,display:"flex",alignItems:"center"},children:$},C))}),l.jsxs(P,{ref:s,sx:{display:"flex",alignItems:"center",overflow:"hidden",minWidth:0,flex:"1 1 auto",justifyContent:"space-between"},children:[B&&l.jsx(P,{sx:{flexShrink:1,flexGrow:1,display:"flex",alignItems:"center",minWidth:0},children:B}),l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:`${n}px`,flexShrink:0},children:[z.map(($,C)=>l.jsx(P,{sx:{flexShrink:0,display:"flex",alignItems:"center"},children:$},C)),M&&l.jsxs(l.Fragment,{children:[l.jsx(Bo,{title:r,sx:{alignSelf:"flex-end"},children:l.jsx(it,{onClick:$=>y($.currentTarget),size:"small",sx:{flexShrink:0,border:t?.border?.grey||"1px solid #e0e0e0",borderRadius:"8px",width:32,height:32,mx:0,color:t?.colors?.grey?.black||"#333",backgroundColor:g?t?.colors?.grey?.bg||"#f5f5f5":"transparent","&:hover":{backgroundColor:t?.colors?.grey?.bg||"#f5f5f5"},transition:"background 0.15s ease"},children:l.jsx(i,{fontSize:"small"})})}),l.jsx(is,{anchorEl:m,open:g,onClose:()=>y(null),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},disableAutoFocusItem:!0,PaperProps:{sx:{mt:.5,borderRadius:"10px",minWidth:240,maxWidth:"90vw",boxShadow:"0 4px 20px rgba(0,0,0,0.10)",border:t?.border?.grey||"1px solid #e0e0e0",overflow:"visible"}},children:k.map(($,C)=>{const I=S($);return[C>0&&!I&&!S(k[C-1])&&l.jsx(nn,{sx:{my:0,borderColor:t?.colors?.grey?.bg||"#f0f0f0"}},`auto-divider-${C}`),I?l.jsx(nn,{sx:{my:0,borderColor:t?.colors?.grey?.bg||"#f0f0f0"}},`divider-${C}`):l.jsx(P,{sx:{display:"flex",alignItems:"center",width:"100%",boxSizing:"border-box",px:2,py:1,cursor:"pointer",fontSize:"14px","&:hover":{backgroundColor:t?.colors?.grey?.bg||"#f5f5f5"}},onClick:F=>{F.target===F.currentTarget&&y(null)},children:l.jsx(P,{sx:{width:"100%",minWidth:0,display:"flex",alignItems:"center"},children:$})},`item-${C}`)].filter(Boolean)})})]})]})]})]})}function dn(e){return l.jsx(or,{viewBox:"0 0 14 14",...e,children:l.jsx("path",{d:"M11.6667 3.5L5.25 9.91667L2.33334 7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})}function eu(){return eu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eu.apply(this,arguments)}function u2(e,t){if(e==null)return{};var n=p2(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function p2(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var tu=N.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=u2(e,["color","size"]);return N.createElement("svg",eu({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),N.createElement("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),N.createElement("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"}))});tu.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},tu.displayName="Bell";function nu(){return nu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nu.apply(this,arguments)}function f2(e,t){if(e==null)return{};var n=h2(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function h2(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Sl=N.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=f2(e,["color","size"]);return N.createElement("svg",nu({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),N.createElement("polyline",{points:"6 9 12 15 18 9"}))});Sl.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Sl.displayName="ChevronDown";function ru(){return ru=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ru.apply(this,arguments)}function g2(e,t){if(e==null)return{};var n=m2(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function m2(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var ou=N.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=g2(e,["color","size"]);return N.createElement("svg",ru({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),N.createElement("circle",{cx:"11",cy:"11",r:"8"}),N.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))});ou.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},ou.displayName="Search";function iu(){return iu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iu.apply(this,arguments)}function y2(e,t){if(e==null)return{};var n=b2(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function b2(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var su=N.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=y2(e,["color","size"]);return N.createElement("svg",iu({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),N.createElement("circle",{cx:"12",cy:"12",r:"3"}),N.createElement("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"}))});su.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},su.displayName="Settings";const gt="#2D64B8",wl="#2557A3",Ue="#FFFFFF",Ct="#f5f5f5";function tt(){const e=(y={})=>({bgcolor:gt,backgroundColor:gt,"&:hover":{bgcolor:wl,backgroundColor:wl},...y}),t=(y={})=>({bgcolor:Ue,backgroundColor:Ue,background:Ue,...y}),n=({uncheckedBorder:y="#D0D5DD",checkedBorder:g="#1976d2",checkedColor:f="#1976d2",background:b=Ue}={})=>({checkboxSx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:`0.5px solid ${y}`,bgcolor:b},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:b,color:f,border:`0.5px solid ${g}`},"&.MuiCheckbox-indeterminate .MuiSvgIcon-root":{bgcolor:b,color:f,border:`0.5px solid ${g}`}},iconSpan:{display:"inline-block",width:16,height:16,borderRadius:4,border:`0.5px solid ${y}`,background:b},checkedIconSpan:{display:"inline-block",width:16,height:16,borderRadius:4,border:`0.5px solid ${g}`,background:b,position:"relative"},minusInner:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:8,height:2,background:f,borderRadius:2},tickIconSx:{fontSize:10,color:f,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}}),r=n({uncheckedBorder:"#D0D5DD",checkedBorder:"#1976d2",checkedColor:"#1976d2"}),i=n({uncheckedBorder:"#454545",checkedBorder:"#2563EB",checkedColor:"#2563EB"}),s={wrapper:{width:"calc(100% - 32px)",maxWidth:"calc(100% - 32px)",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"16px",flexWrap:"nowrap",opacity:1,marginLeft:"auto",marginRight:"auto",mt:2,position:"sticky",bottom:0,zIndex:5,boxSizing:"border-box",bgcolor:Ue,backgroundColor:Ue,border:"1px solid #E5E7EB",borderRadius:"8px",px:{xs:1.5,sm:2},py:1.5,pb:"max(12px, calc(8px + env(safe-area-inset-bottom, 0px)))","@media (max-width:400px)":{flexWrap:"wrap",justifyContent:"space-between",gap:"10px",width:"calc(100% - 24px)",maxWidth:"calc(100% - 24px)"}},resultsPerPageBox:{display:"flex",alignItems:"center",gap:"8px",opacity:1,flex:"0 1 auto",minWidth:0,"@media (max-width:400px)":{width:"auto"}},resultsPerPageText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",whiteSpace:"nowrap","@media (max-width:400px)":{fontSize:"11px"}},select:{minWidth:44,height:28,"& .MuiInputBase-root":{borderRadius:"6px",border:"1px solid #E5E7EB",bgcolor:Ue,boxSizing:"border-box","&:hover":{borderColor:"#D0D5DD"},"&.Mui-focused":{borderColor:"#D0D5DD"}},"& .MuiSelect-select":{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",py:"4px",pl:"10px",pr:"26px !important",display:"flex",alignItems:"center",minHeight:26,boxSizing:"border-box"},"& .MuiSelect-icon":{top:"50%",right:6,transform:"translateY(-50%)"},"& .MuiSvgIcon-root":{width:14,height:14,color:"#6B7280"},"@media (max-width:400px)":{minWidth:40}},navBox:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",opacity:1,flex:"0 0 auto",minWidth:0,"@media (max-width:400px)":{gap:"8px"}},iconButton:{p:.25,minWidth:28,width:28,height:28,color:"#454545",borderRadius:"4px","&:hover":{bgcolor:"rgba(15, 23, 42, 0.04)"},"&.Mui-disabled":{color:"#C4C4C4",bgcolor:"transparent"}},paginationIcon:{width:16,height:16,opacity:1},pageText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",whiteSpace:"nowrap",minWidth:"7.5em",textAlign:"center","@media (max-width:400px)":{fontSize:"11px",minWidth:"6.5em"}}},a=(y={})=>({...s,...y}),c={container:{width:"100%",minHeight:28,height:"auto",display:"flex",alignItems:"center",gap:"16px",padding:"8px 16px 4px 16px",opacity:1,boxSizing:"border-box"},cellText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080"},checkboxCol:{width:16,height:16,flex:"0 0 16px",display:"flex",alignItems:"center",justifyContent:"center",opacity:1},categoryCell:{flex:"2 1 0",minWidth:0,height:16,display:"flex",alignItems:"center",gap:"4px"},stockCell:{flex:"0 1 auto",width:120,minWidth:72,display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"8px",height:16},productsCell:{flex:"0 1 auto",width:60,minWidth:50,display:"flex",alignItems:"center",justifyContent:"flex-start",height:16},emptyCell:{flex:"0 0 56px",minWidth:56,height:16,opacity:1},arrow:{fontSize:16,height:12,color:"#454545",marginLeft:"8px",marginTop:"2px"}},d=(y={})=>({...c,...y}),p={container:{width:"100%",maxWidth:"100%",px:0},card:{width:"100%",maxWidth:"100%",display:"flex",flexDirection:"column",boxShadow:"none",borderRadius:0,bgcolor:"transparent",overflow:"visible",marginLeft:0,marginRight:0,boxSizing:"border-box"},headerBox:{...c.container,width:"100%",minWidth:0,boxSizing:"border-box"},rowShell:{width:"100%",minHeight:"auto",display:"flex",alignItems:"center",gap:"16px",padding:"8px 16px",opacity:1,border:"1px solid #F1F1F1",borderRadius:"8px",background:Ue,boxSizing:"border-box",flexWrap:"wrap"}},h={universal:{primaryBgColor:gt,primaryBgHoverColor:wl,getUniversalBlueButtonSx:e,globalCardContainerBg:Ue,globalBgColor:Ct,getGlobalCardContainerSx:t,getGlobalCheckboxStyles:n,globalPaginationStyles:s,getGlobalPaginationStyles:a,globalTableHeaderStyles:c,getGlobalTableHeaderStyles:d,globalTableScaffoldStyles:p,getGlobalTableScaffoldStyles:(y={})=>({...p,...y})},floatingAction:{bar:{position:"fixed",bottom:24,height:56,borderRadius:"12px",padding:"8px 12px 8px 16px",background:"#000000",boxShadow:"3px 1px 30px 0px #2222223D",display:"flex",alignItems:"center",zIndex:1300,boxSizing:"border-box",overflow:"hidden","@media (max-width: 600px)":{height:"auto",padding:"10px 16px 12px",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px"}},countTypography:{minWidth:100,flexShrink:1,fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:"0px",color:"#FFFFFF",marginRight:"12px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","@media (max-width: 600px)":{marginRight:0,textAlign:"center"}},flexSpacer:{flex:1,minWidth:8,flexShrink:1,"@media (max-width: 600px)":{display:"none"}},actionsRow:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0,"@media (max-width: 600px)":{width:"100%",justifyContent:"center"}},actionCard:{borderRadius:"6px",padding:"6px 24px",gap:"8px",border:"none",backgroundColor:gt,height:40,display:"flex",alignItems:"center",cursor:"pointer",boxSizing:"border-box",font:"inherit",outline:"none","&:hover":{backgroundColor:wl},"@media (max-width: 350px)":{padding:"6px 12px"}},iconCard:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},iconImg:{width:"13.33px",height:"13.33px",objectFit:"contain",boxSizing:"border-box"},actionText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:"0px",color:"#FFFFFF",whiteSpace:"nowrap"}},initialCard:{interLabel:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:12,lineHeight:"16px",letterSpacing:0,color:"#454545"},interCount:{fontFamily:"Inter, sans-serif",fontWeight:300,fontSize:28,lineHeight:"32px",letterSpacing:"-3px",color:"#454545"},interSyncText:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:10,lineHeight:"12px",letterSpacing:0,color:"#808080"},thirdCardCountText:{fontFamily:"Inter, sans-serif",fontWeight:300,fontSize:28,lineHeight:"32px",letterSpacing:"-3px",color:"#454545"},thirdCardSecondCountText:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:10,lineHeight:"12px",letterSpacing:0,color:"#808080"},thirdCardMissingText:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:10,lineHeight:"12px",letterSpacing:0,color:"#FF2929"},thirdCardReportText:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:12,lineHeight:"16px",letterSpacing:0,color:gt}},catalogCreatedToast:{root:{position:"fixed",top:24,right:24,zIndex:1400,display:"flex",alignItems:"flex-start",gap:1.5,maxWidth:400,minWidth:320,px:2,py:1.5,borderRadius:2,backgroundColor:"#e8f5e9",border:"1px solid #c8e6c9",boxShadow:"0 4px 12px rgba(0,0,0,0.08)"},iconWrap:{flexShrink:0,mt:.25,display:"flex",alignItems:"center"},content:{flex:1,minWidth:0,pt:.25},title:{fontWeight:700,fontSize:16,color:"#111",lineHeight:1.3},description:{fontWeight:400,fontSize:14,color:"#666",mt:.25,lineHeight:1.4},copyLinkButton:{marginTop:.75,padding:0,border:"none",background:"none",cursor:"pointer",fontWeight:500,fontSize:14,color:"#2563eb",textDecoration:"underline","&:hover":{color:"#1d4ed8"}},closeButton:{color:"#888",p:.5,mt:-.5,mr:-.5,"&:hover":{color:"#333",bgcolor:"rgba(0,0,0,0.04)"}}},productSetting:{pageRoot:{width:"100%",minHeight:"100vh",background:Ct,p:0,display:"flex",flexDirection:"column",alignItems:"center"},selectedCardHighlight:{bgcolor:"#F3F8FF",border:`1px solid ${gt}`},settingsMolecule:{container:{width:"100%",maxWidth:900,minHeight:468,mx:"auto",mt:4,px:"20px",boxSizing:"border-box",display:"flex",flexDirection:"column",gap:3},generalSection:{width:"100%",minHeight:156,display:"flex",flexDirection:"column",gap:1.5},sectionHeaderRow:{width:"100%",height:20,display:"flex",alignItems:"center",justifyContent:"space-between"},sectionHeaderTitleClusterGeneral:{display:"flex",alignItems:"center",gap:"6px",width:67,height:20},sectionHeaderTitleClusterSync:{display:"flex",alignItems:"center",gap:"6px",width:48,height:20},sectionHeaderTitleText:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:14,lineHeight:"20px",color:"#000000"},sectionHeaderCountText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:12,lineHeight:"16px",color:"#808080"},generalCardsColumn:{width:"100%",minHeight:124,display:"flex",flexDirection:"column",gap:"4px"},airaAiSwitchWrap:{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center"},syncSection:{width:"100%",minHeight:288,display:"flex",flexDirection:"column",gap:"4px"},syncNowControl:{width:78,height:16,display:"flex",alignItems:"center",gap:"4px"},syncNowIconWrap:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},syncNowLabel:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:12,lineHeight:"16px",color:gt,width:62},syncFrequencyTimeRow:{width:"100%",display:"flex",flexWrap:"nowrap",justifyContent:"space-between","@media (max-width:450px)":{flexDirection:"column",gap:"4px"}},syncFrequencyTimeHalf:{width:"50%","@media (max-width:450px)":{width:"100%"}},chevronRightNavIcon:{width:16,height:16,color:"#454545"},refreshIconRow:{width:18.33,height:15,color:"#454545"},refreshIconSyncNowHeader:{width:14.66,height:12,color:gt}}},productSettingGeneral:{baseCard:{width:"100%",maxWidth:"100%",height:58,boxSizing:"border-box",background:Ue,borderRadius:2,boxShadow:"none",border:"1px solid #F1F1F1",display:"flex",alignItems:"center",gap:1.5,px:2,py:1.5,mb:0},cardInner:{display:"flex",alignItems:"center",flex:1,minWidth:0},icon:{display:"flex",alignItems:"center",justifyContent:"center",width:20,height:20,mr:2},actionWrapper:{ml:"auto",display:"flex",alignItems:"center",justifyContent:"center"},titleTypography:{fontWeight:700,fontSize:12,lineHeight:"16px"},subtitleTypography:{fontSize:12,fontWeight:400,mt:.5,lineHeight:"16px"},titleColorDefault:"#000000",titleColorDisabled:"#999999",subtitleColorDefault:"#808080",subtitleColorDisabled:"#bbbbbb"},topBar:{root:{width:"100%",maxWidth:"100%",height:72,minHeight:72,maxHeight:72,marginLeft:0,marginRight:0,marginBottom:0,marginTop:0,paddingTop:"20px",gap:"20px",opacity:1,bgcolor:Ue,boxSizing:"border-box",overflow:"hidden"},inner:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingLeft:"20px",paddingRight:"20px",paddingTop:0,paddingBottom:0,margin:0,maxWidth:"100%",flexShrink:0},searchBox:{display:"flex",alignItems:"center",position:"relative",width:320},searchInput:{fontSize:"0.9rem",color:"text.primary",pl:1,width:"100%"},iconOnly:{minWidth:34,width:34,height:34,p:0,backgroundColor:Ue,border:"none",borderRadius:1,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box"}},promoPrintModal:{dialog:{width:379,height:520,maxWidth:379,maxHeight:520,borderRadius:"12px",background:Ue,display:"flex",flexDirection:"column",overflow:"hidden"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",width:328,height:20,pt:"24px",px:"24px",pb:"20px"},headerTitle:{fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"16px",lineHeight:"20px",letterSpacing:0,color:"#000000",margin:0},crossIconCard:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",border:"none",backgroundColor:"transparent",outline:"none","&:focus":{outline:"none"}},crossIcon:{width:8,height:8,opacity:1,display:"flex",alignItems:"center",justifyContent:"center","& svg":{width:8,height:8,stroke:"#454545"}},content:{pt:"8px",px:"24px",overflowY:"hidden",overflowX:"hidden",flex:1,minHeight:0},middleCard:{width:328,minHeight:280,display:"flex",flexDirection:"column",gap:"24px"},section:{width:328,gap:"8px",display:"flex",flexDirection:"column"},itemsToShowSection:{width:328,minHeight:68,gap:"8px",display:"flex",flexDirection:"column"},sectionTitle:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px",letterSpacing:0,color:"#454545",verticalAlign:"middle",marginBottom:"8px"},checkboxRow:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"12px 16px",width:328,alignItems:"center"},checkboxCard:{width:160,height:16,gap:"8px",display:"flex",alignItems:"center"},checkboxLabel:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",marginLeft:0,marginRight:0,"& .MuiTypography-root":{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545"},"& .MuiCheckbox-root":{p:0,width:16,height:16,mr:1},"& .MuiSvgIcon-root":{width:16,height:16}},checkboxSx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #454545",bgcolor:Ue},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:Ue,color:"#2563EB",border:"0.5px solid #2563EB"}},designSection:{width:328,display:"flex",flexDirection:"column",gap:"8px"},designContainer:{display:"flex",flexDirection:"row",flexWrap:"nowrap",gap:2,overflowX:"auto",overflowY:"hidden",pb:1,"&::-webkit-scrollbar":{height:6},"&::-webkit-scrollbar-track":{bgcolor:"#f0f0f0",borderRadius:1},"&::-webkit-scrollbar-thumb":{bgcolor:"#c0c0c0",borderRadius:1}},designCard:{base:{width:120,minWidth:120,height:92,borderRadius:"6px",border:"2px solid",borderColor:"#E0E0E0",p:1.5,cursor:"pointer",flexShrink:0,textAlign:"center",bgcolor:Ue,transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",display:"flex",flexDirection:"column",justifyContent:"space-between",boxShadow:"0 2px 4px rgba(0,0,0,0.08)",overflow:"hidden",minHeight:0},selected:{borderColor:gt,border:`2px solid ${gt}`,boxShadow:"0 4px 12px rgba(0, 0, 0, 0)"},unselected:{borderColor:"#E0E0E0",border:"2px solid #E0E0E0"}},design1:{ourPriceHeader:{fontFamily:"Inter, sans-serif",fontSize:"12px",fontWeight:700,letterSpacing:"1px",color:"#000000",lineHeight:1.2},rupeeSymbol:{fontFamily:"Inter, sans-serif",fontSize:"24px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"top",position:"relative",top:"-0.12em"},rupeeSymbolSmall:{fontSize:"1em",fontWeight:600,verticalAlign:"baseline"},bigPrice:{fontFamily:"Inter, sans-serif",fontSize:"28px",fontWeight:700,color:"#000000",lineHeight:1},bottomInfo:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",gap:.5},saveAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",lineHeight:1.2},mrpAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",lineHeight:1.2},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",lineHeight:1.3,fontWeight:600,color:"#000000",letterSpacing:"0px",textAlign:"center"},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"6px",fontWeight:600,color:"#000000"},validToText:{fontSize:"6px",fontWeight:600,color:"#000000"}},design2:{mainOfferBlock:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.3,mb:.5,minHeight:0,overflow:"hidden"},offerLine:{fontFamily:"Inter, sans-serif",fontSize:"10px",fontWeight:700,color:"#000000",lineHeight:1.2,textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%"},mrpBlock:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"right",mb:.5,width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},rupeeSymbolSmall:{fontSize:"1em",fontWeight:600,verticalAlign:"baseline"},productName:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"center",mb:.5,lineHeight:1.3,overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"},validToText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"}},design3:{ourPriceHeader:{fontFamily:"Inter, sans-serif",fontSize:"12px",fontWeight:700,letterSpacing:"1px",color:"#000000",lineHeight:1.2,textAlign:"center",mb:.5},rupeeSymbol:{fontFamily:"Inter, sans-serif",fontSize:"24px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"top",position:"relative",top:"-0.12em"},bigPrice:{fontFamily:"Inter, sans-serif",fontSize:"28px",fontWeight:700,color:"#000000",lineHeight:1},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",lineHeight:1.3,fontWeight:700,color:"#000000",letterSpacing:"0px",textAlign:"center",mt:.5},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"},validToText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"}},design4:{ourPriceHeader:{fontFamily:"Inter, sans-serif",fontSize:"12px",fontWeight:700,letterSpacing:"1px",color:"#000000",lineHeight:1.2,textAlign:"center",mb:.5},rupeeSymbol:{fontFamily:"Inter, sans-serif",fontSize:"24px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"top",position:"relative",top:"-0.12em"},priceWhole:{fontFamily:"Inter, sans-serif",fontSize:"28px",fontWeight:700,color:"#000000",lineHeight:1},priceDecimal:{fontFamily:"Inter, sans-serif",fontSize:"18px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"super"},saveMrpRow:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",mb:.5},saveAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"left"},mrpAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"right"},rupeeSymbolSmall:{fontSize:"0.85em",fontWeight:600,verticalAlign:"baseline"},productCode:{fontFamily:"Inter, sans-serif",fontSize:"9px",fontWeight:700,color:"#000000",textAlign:"center",mb:.5,lineHeight:1.3,wordBreak:"break-word"},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"5px",fontWeight:400,color:"#666666",fontFamily:"Arial, sans-serif"},validToText:{fontSize:"5px",fontWeight:400,color:"#666666",fontFamily:"Arial, sans-serif"}},design5:{topSection:{display:"flex",width:"100%",height:"60%",borderBottom:"1px solid #000"},leftColumn:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.3,position:"relative"},rightColumn:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.3},verticalDivider:{width:"1px",backgroundColor:"#000"},rewardsLogo:{position:"absolute",top:"8%",left:"50%",transform:"translateX(-50%)",display:"flex",flexDirection:"column",alignItems:"center",gap:0},logoLine1:{display:"flex",alignItems:"baseline",gap:"2px"},logoMy:{fontFamily:"Arial, sans-serif",fontSize:"6px",fontStyle:"italic",fontWeight:400,color:"#000000",lineHeight:1},logoSpencer:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",lineHeight:1,textDecoration:"underline"},logoRewards:{fontFamily:"Arial, sans-serif",fontSize:"7px",fontWeight:700,color:"#000000",lineHeight:1},rupeeSymbol1:{fontSize:"1.2em",fontWeight:700,verticalAlign:"top",position:"relative",top:"-0.20em"},memberPriceLabel:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.5px",marginTop:"20px"},memberPriceValue:{fontFamily:"Arial, sans-serif",fontSize:"20px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1},nonMemberPriceLabel:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.5px",marginTop:"10px"},nonMemberPriceValue:{fontFamily:"Arial, sans-serif",fontSize:"20px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1},rupeeSymbol:{fontSize:"0.85em",fontWeight:700,verticalAlign:"top",position:"relative",top:"-0.24em"},horizontalDivider:{width:"100%",height:"0.5px",backgroundColor:"#000"},middleSection:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.2,height:"20%",width:"100%",mt:.4},productName:{fontFamily:"Arial, sans-serif",fontSize:"6px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.3px"},mrpText:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2},rupeeSymbolSmall:{fontSize:"1em",fontWeight:700,verticalAlign:"baseline"},bottomSection:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"auto",width:"100%",padding:"0 4px"},savingsMessage:{fontFamily:"Arial, sans-serif",fontSize:"6px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.2px"}},sheetSizeSection:{width:328,minHeight:56,gap:"8px",display:"flex",flexDirection:"column"},sheetSizeHeader:{width:328,height:20,fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px",letterSpacing:0,color:"#454545",verticalAlign:"middle"},sheetSizeRow:{width:328,minHeight:28,gap:"4px",display:"flex",alignItems:"center",flexWrap:"wrap"},sheetSizeGroup:{display:"flex",gap:"4px",alignItems:"center"},sheetSizeBtn:{width:36,height:28,borderRadius:"6px",padding:"6px 10px",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.2s",bgcolor:Ct,border:"none","&:hover":{bgcolor:"#EEEEEE"}},sheetSizeBtnText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center",color:"#454545"},sheetSizeBtnTextSelected:{color:"#000000"},sheetSizeBtnSelected:{bgcolor:"#F3F8FF",border:`0.5px solid ${gt}`,"&:hover":{bgcolor:"#E8F0FE"}},copyPerItemRow:{display:"flex",alignItems:"center",gap:"8px",mt:.5},copyPerItemLabel:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",color:"#454545"},actions:{px:"24px",pt:"2px",pb:"10px",display:"flex",flexDirection:"column",alignItems:"center"},printButtonWrapper:{height:40,borderRadius:"8px",padding:"0px 6px",display:"flex",alignItems:"center",justifyContent:"center"},printButton:{width:"100%",height:"100%",minHeight:40,borderRadius:"8px",padding:"12px 16px",...e(),color:"#FFFFFF",fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center"}},createCatalog:{dialog:{width:600,height:384,maxWidth:600,maxHeight:384,borderRadius:"12px",display:"flex",flexDirection:"column",overflow:"hidden"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",pt:"24px",px:"24px",pb:"20px"},headerTitle:{fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"16px",lineHeight:"20px",letterSpacing:0,color:"#000000"},clearIconCard:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",border:"none",backgroundColor:"transparent",outline:"none","&:focus":{outline:"none"}},content:{pt:"20px",px:"24px",pb:"24px",overflowY:"auto",overflowX:"hidden",flex:1,minHeight:0,display:"flex",flexDirection:"column",gap:"24px"},fieldBlock:{width:"100%",maxWidth:552,display:"flex",flexDirection:"column",gap:"4px"},fieldLabel:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},input:{width:"100%",height:40,borderRadius:"6px",padding:"12px",border:"1px solid #F1F1F1",fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545",outline:"none",boxSizing:"border-box"},inputReadOnly:{background:Ue,color:"#454545"},storeDropdown:{width:"100%",height:40,borderRadius:"6px",padding:"12px",border:"1px solid #F1F1F1",display:"flex",alignItems:"center",cursor:"pointer",userSelect:"none",fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545",boxSizing:"border-box",bgcolor:Ue},createButton:{width:160,height:40,borderRadius:"8px",padding:"12px 16px",minWidth:160,...e(),color:"#FFFFFF",fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center",boxShadow:"none"}},emptyProduct:{wrapper:{position:"relative",mx:"auto",my:2,width:"100%",maxWidth:1200,px:{xs:2,sm:4,md:6},pt:"72px",boxSizing:"border-box",overflowX:"hidden"},card:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:{xs:320,sm:380,md:440},bgcolor:Ue,mx:{xs:0,sm:4,md:8},py:{xs:6,md:8},px:{xs:3,md:6},borderRadius:3,border:"1px solid #e8e8e8",position:"relative",zIndex:1},iconContainer:{position:"relative",mb:3},inboxIcon:{width:190,height:170,border:"2.5px solid #5b9bd5",borderRadius:"8px",bgcolor:"#e8f4fc",position:"relative",overflow:"visible"},title:{fontSize:"16px",fontWeight:600,color:"#1a1a1a",mb:.5},subtitle:{fontSize:"14px",color:"#888",mb:1.5},actionLink:{fontSize:"14px",fontWeight:500,color:"#3b82f6",textDecoration:"none",cursor:"pointer","&:hover":{textDecoration:"underline"}}},productSettingModal:{modal:{display:"flex",alignItems:"center",justifyContent:"center","& .MuiBackdrop-root":{backdropFilter:"blur(1px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},container:{bgcolor:Ue,borderRadius:2,boxShadow:24,width:"100%",maxWidth:360,outline:"none",overflow:"hidden"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2.5,py:2,borderBottom:"1px solid #e8e8e8"},headerTitle:{fontSize:"16px",fontWeight:600,color:"#000"},closeButton:{color:"#666"},content:{px:2.5,py:2},radioIcon:{width:20,height:20},radioChecked:{color:"#000","&.Mui-checked":{color:"#000"},"&:hover":{bgcolor:"transparent"},"& .MuiTouchRipple-root":{display:"none"}},radioLabel:{fontSize:"14px",color:"#333"},formControlLabel:{mx:0,py:.75,borderRadius:1,"&.Mui-checked":{backgroundColor:"#ffeaea"}},formControlLabelSelectedRow:{backgroundColor:"#F3F8FF"},upgradeSection:{display:"flex",alignItems:"center",justifyContent:"space-between",mt:2,pt:2,pl:2,pr:2,pb:2,borderRadius:1,borderTop:"1px solid #e8e8e8",bgcolor:"#F3F8FF"},upgradeText:{fontSize:"13px",color:"#000000",maxWidth:180},managePlanLink:{fontSize:"13px",fontWeight:500,color:gt,cursor:"pointer"},footer:{px:2.5,pb:2.5},saveButton:{...e(),color:"#fff",textTransform:"none",fontSize:"14px",fontWeight:500,py:1.25,borderRadius:1.5,boxShadow:"none"}},ftpSync:{ftpPageBackground:{minHeight:"100vh",background:Ct,p:0},productFtpSyncRootContainer:{width:"100%",boxSizing:"border-box",minHeight:"100vh",bgcolor:Ct},step0:{innerColumn:{width:"100%",maxWidth:900,mx:"auto",pt:2,px:{xs:2,sm:3},boxSizing:"border-box"},stepLabelsRow:{display:"flex",justifyContent:"space-between",alignItems:"center",px:2,py:2,mb:1},stepLabelTypography:{fontFamily:"Inter, sans-serif",fontSize:"12px",lineHeight:"16px",letterSpacing:"0px",textAlign:"center",verticalAlign:"middle",color:"#454545",opacity:1,width:"100%",minHeight:16,display:"inline-flex",alignItems:"center",justifyContent:"center",flex:1},mainWhiteContainer:{width:"100%",minHeight:504,gap:"8px",borderRadius:"16px",padding:"8px",background:"#FFFFFF",opacity:1,display:"flex",justifyContent:"center",alignItems:"center",boxSizing:"border-box"},setupPaper:{width:"100%",maxWidth:400,minHeight:210,gap:"24px",borderRadius:"20px",padding:{xs:"16px",sm:"24px"},background:"#fafafa",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},instructionsBlock:{width:"100%",minHeight:98,gap:"12px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},instructionsTitle:{fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"16px",lineHeight:"20px",letterSpacing:"0px",verticalAlign:"middle",color:"#000000",opacity:1,width:145,height:20,margin:0},instructionsOrderedList:{margin:0,paddingLeft:"28px",listStylePosition:"outside",listStyleType:"decimal",fontFamily:"Inter, sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"22px",letterSpacing:"0px",color:"#454545",opacity:1,width:"100%",minHeight:66,boxSizing:"border-box","& li":{display:"list-item",marginBottom:"4px"},"& li:last-child":{marginBottom:0}},nextButtonRow:{display:"flex",justifyContent:"flex-end",marginTop:"auto"}},common:{wizardOuterColumn:{width:"100%",maxWidth:900,px:{xs:2,sm:3},mx:"auto",pt:2,display:"flex",flexDirection:"column",gap:"32px",boxSizing:"border-box"},wizardOuterColumnStep1:{width:"100%",maxWidth:900,minHeight:600,gap:"32px",opacity:1,pt:2,px:{xs:2,sm:3},mx:"auto",display:"flex",flexDirection:"column",boxSizing:"border-box"},stepperSlot:{width:"100%",minHeight:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"}},step1:{loginSectionOuter:{width:"100%",minHeight:{xs:420,md:504},borderRadius:"16px",padding:"8px",paddingBottom:"32px",gap:"8px",opacity:1,display:"flex",justifyContent:"center",alignItems:"center",bgcolor:"#fff",boxSizing:"border-box",marginBottom:"32px"},loginCard:{width:"100%",maxWidth:400,minHeight:380,borderRadius:"20px",padding:{xs:"16px",sm:"24px"},gap:"24px",opacity:1,bgcolor:Ct,display:"flex",flexDirection:"column",boxSizing:"border-box"},loginTitleRow:{width:"100%",height:20,justifyContent:"space-between",opacity:1,display:"flex",alignItems:"center"},loginTitleTypography:{width:102,height:20,fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"16px",lineHeight:"20px",letterSpacing:"0px",color:"#000000",opacity:1,margin:0},loginForm:{width:"100%",minHeight:224,gap:"16px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},loginFieldColumn:{width:"100%",minHeight:64,gap:"4px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},loginFieldColumnPassword:{width:"100%",minHeight:64,gap:"4px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box",position:"relative"},loginFieldLabel:{width:"100%",height:18,fontFamily:"Inter, sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"18px",letterSpacing:"0px",color:"#454545",opacity:1,margin:0,display:"block"},loginTextInput:{width:"100%",height:42,boxSizing:"border-box",borderRadius:"6px",padding:"12px",border:"1px solid #F1F1F1",background:"#FFFFFF",opacity:1,fontSize:14,fontFamily:"Inter, sans-serif"},loginPasswordInput:{width:"100%",height:42,boxSizing:"border-box",borderRadius:"6px",padding:"12px 44px 12px 12px",border:"1px solid #F1F1F1",background:"#FFFFFF",opacity:1,fontSize:14,fontFamily:"Inter, sans-serif"},passwordVisibilityIconButton:{position:"absolute",right:11,top:35,color:"#454545",width:16,height:16,padding:0,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{backgroundColor:"rgba(0,0,0,0.04)",color:"#222"},"& .MuiSvgIcon-root":{width:16,height:16,fontSize:16}},loginActionsRow:{display:"flex",justifyContent:"flex-end",gap:2,marginTop:"auto"},outlinedBackButton:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",bgcolor:"#fff"},ftpConnectionErrorText:{mt:1,fontSize:14}},step2:{mappingPaperWrap:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:300,mb:4},mappingPaper:{mt:0,p:0,borderRadius:4,width:"100%",maxWidth:900},mappingHeaderToolbar:{p:{xs:2,sm:3},pb:2,borderBottom:"1px solid #eee",display:"flex",alignItems:{xs:"flex-start",sm:"center"},justifyContent:"space-between",flexDirection:{xs:"column",sm:"row"},gap:{xs:1.5,sm:0},minWidth:0},mappingHeaderTextBlock:{minWidth:0,maxWidth:"100%",flex:"1 1 auto"},mappingHeaderTitleTypography:{fontWeight:700,fontSize:{xs:"0.8125rem",sm:"0.875rem"},lineHeight:1.35,overflowWrap:"anywhere",wordBreak:"break-word","@media (max-width: 400px)":{fontSize:"0.75rem"}},mappingHeaderServerHint:{color:"#888",mt:.5,fontSize:{xs:"0.6875rem",sm:"0.8125rem"},lineHeight:1.45,overflowWrap:"anywhere",wordBreak:"break-all",maxWidth:"100%","@media (max-width: 400px)":{fontSize:"0.625rem"}},mappingHeaderActionsWrap:{width:{xs:"100%",sm:"auto"},display:"flex",justifyContent:{xs:"flex-end",sm:"initial"}},mappingBackButton:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",mr:2},mappingTableContainer:{background:"#fafafa",borderRadius:4,mt:0,boxShadow:"none",border:"1px solid #eee",width:"100%",overflowX:"auto",overflowY:"auto",maxHeight:{xs:420,md:"none"}},mappingTableLoadingBox:{p:3,textAlign:"center"},mappingTableErrorBox:{p:3,color:"red",textAlign:"center"},mappingTableEmptyHint:{p:3,textAlign:"center",color:"#888"},mappingTable:{minWidth:720},mappingTableHeadCell:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},mappingTableHeadCellTight:{fontWeight:700,background:"#fafafa",borderBottom:"none"},mappingTableSelectCell:{background:"#fafafa",borderBottom:"none"},mappingColumnSelect:{minWidth:120,fontWeight:500},mappingSelectMenuPaper:{maxHeight:300,boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)","& .MuiList-root":{padding:"0"},"& .MuiMenuItem-root":{padding:"8px 16px",minHeight:"auto",fontSize:"14px",lineHeight:"1.5",margin:0},"& .MuiMenuItem-root:first-of-type":{marginTop:0}},mappingSelectMenuList:{padding:0},mappingSelectMenuItem:{padding:"8px 16px",minHeight:"auto",fontSize:"14px",margin:0},mappingSelectPlaceholderEm:{fontStyle:"normal",color:"#888"},mappingTableBodyLabelCell:{fontWeight:700,background:"#fff",borderBottom:"none"},mappingTableBodyCell:{background:"#fff",borderBottom:"none"},mappingTableNoPreviewCell:{textAlign:"center",color:"#888",py:2}},step3:{schedulePanelOuter:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",borderRadius:2,boxShadow:"0 2px 12px #0001"},schedulePanelInner:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:180,mt:{xs:2,sm:4},mb:{xs:2,sm:4},width:"100%",px:{xs:2,sm:0},boxSizing:"border-box"},scheduleFormPaper:{p:{xs:2,sm:2.5},borderRadius:4,minWidth:{xs:"100%",sm:300},maxWidth:340,width:1,display:"flex",flexDirection:"column",alignItems:"center",bgcolor:Ct},scheduleFieldsRow:{display:"flex",flexDirection:{xs:"column",sm:"row"},gap:2,width:"100%",mb:2},scheduleFieldColumn:{flex:1},scheduleFieldLabel:{mb:1,fontSize:14,color:"#222"},syncFrequencySelect:{width:"100%",minWidth:120,borderRadius:2,background:"#fafbfc",fontSize:15,height:40},syncTimeTextField:{width:"100%",minWidth:80,borderRadius:2,background:"#fafbfc",fontSize:15,height:36},scheduleActionsRow:{display:"flex",justifyContent:"stretch",alignItems:"stretch",gap:1.5,mt:1,width:"100%",flexDirection:"row",flexWrap:"nowrap"},scheduleHalfOutlinedButton:{borderRadius:2,fontWeight:500,textTransform:"none",flex:"1 1 0%",minWidth:0,minHeight:44,boxSizing:"border-box",fontSize:"12px",lineHeight:1.25,px:1,py:1.25},scheduleHalfPrimaryButton:{borderRadius:2,minWidth:0,fontWeight:500,textTransform:"none",boxShadow:"none",flex:"1 1 0%",minHeight:44,boxSizing:"border-box",whiteSpace:"nowrap",fontSize:"11px",lineHeight:1.25,px:1,py:1.25,letterSpacing:"-0.01em"}},step4:{completionPanelOuter:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",borderRadius:2,boxShadow:"0 2px 12px #0001"},completionCard:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",maxWidth:320,mx:2,py:6,bgcolor:Ct,borderRadius:5},completionIconCircle:{width:48,height:48,borderRadius:"50%",background:"#2563eb",display:"flex",alignItems:"center",justifyContent:"center",mb:2},completionTitle:{fontSize:17,color:"#222",mb:1,fontWeight:500},completionBackToProductsButton:{color:"#2563eb",fontWeight:500,fontSize:15,textTransform:"none",mt:1}}},ftpSyncStepper:{stepIconCircle:{position:"relative",width:16,height:16,borderRadius:"50%",border:"1px solid",opacity:1,display:"flex",alignItems:"center",justifyContent:"center",background:"#fff",boxSizing:"border-box",flexShrink:0},stepperRoot:{width:"100%",maxWidth:900,opacity:1},stepIconsRow:{width:"100%",minHeight:44,gap:"16px",opacity:1,display:"flex",alignItems:"center",justifyContent:"space-between"},stepColumn:{width:"calc(33.333% - 11px)",minHeight:44,gap:"12px",opacity:1,paddingLeft:"16px",paddingRight:"16px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",boxSizing:"border-box"},stepLabelText:{width:"100%",minHeight:16,fontFamily:"Inter, sans-serif",fontSize:{xs:"11px",sm:"12px"},lineHeight:"16px",letterSpacing:"0px",textAlign:"center",color:"#454545",opacity:1,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap"},progressBarSection:{width:"100%",mt:1,mb:0},mobileStepperProgress:{maxWidth:"100%",flexGrow:1,background:"transparent",padding:0,"& .MuiMobileStepper-progress":{width:"100%"},"& .MuiLinearProgress-root":{height:4,borderRadius:2,backgroundColor:"#f2f2f2"},"& .MuiLinearProgress-bar":{backgroundColor:"#219653"}},getProgressBarTrackOffsetSx:(y,g)=>({marginLeft:`${y}%`,width:`${g}%`})}},m={root:{width:"100%",maxWidth:"100%",marginLeft:0,marginRight:0,display:"flex",flexDirection:"column",alignItems:"stretch",py:{xs:2,sm:3},px:{xs:0,sm:0},bgcolor:Ct,minHeight:"100vh",boxSizing:"border-box"},ProductTable:{...p.card,width:"100%",maxWidth:"100%",minHeight:448,gap:"4px",opacity:1,background:Ct,p:0,mb:3},categoryTableContainer:{...p.container},categoryTableShared:{checkboxHeaderSx:r.checkboxSx,checkboxRowSx:i.checkboxSx,checkboxIconSpanHeader:r.iconSpan,checkboxCheckedIconSpan:r.checkedIconSpan,checkboxCheckedIconInner:r.minusInner,checkboxIconSpanRow:i.iconSpan,checkboxRowCheckedIconSpan:i.checkedIconSpan,checkboxRowCheckedIconInner:i.minusInner,checkboxTickIconHeaderSx:r.tickIconSx,checkboxTickIconRowSx:i.tickIconSx},categoryTableHeader:{...c.container,background:Ct,flexWrap:"wrap"},categoryTableHeaderCheckboxCol:c.checkboxCol,categoryTableHeaderCategoryCell:{...c.categoryCell,...c.cellText},categoryTableHeaderArrow:c.arrow,categoryTableHeaderStockCell:{...c.cellText,flex:"1 1 0",minWidth:0,height:16,"@media (max-width: 477px)":{minWidth:80}},categoryTableHeaderProductsCell:{...c.cellText,flex:"1.5 1 0",minWidth:0,height:16},categoryTableHeaderEmptyCell:{...c.emptyCell,width:38,flex:"0 0 38px",opacity:0},categoryTableRow:(...y)=>({...p.rowShell}),categoryTableRowCheckboxFrame:{width:16,height:20,flex:"0 0 16px",display:"flex",alignItems:"center",gap:"8px",opacity:1},categoryNameCell:{flex:"2 1 0",minWidth:0,minHeight:72,height:"auto",display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",gap:"4px",opacity:1},categoryName:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px",letterSpacing:0,color:"#454545",opacity:1},categoryProducts:{height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"18px",letterSpacing:0,color:"#454545",opacity:1},categoryUpdated:{width:"100%",height:12,fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#808080",opacity:1},categoryStockCell:{flex:"1 1 0",minWidth:0,height:32,display:"flex",flexDirection:"column",gap:"4px",opacity:1,"@media (max-width: 477px)":{minWidth:80}},categoryStock:y=>({width:67,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",opacity:1}),categoryOSA:(...y)=>({width:"100%",height:12,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#808080",opacity:1}),categoryImagesCell:{flex:"1.5 1 0",minWidth:0,height:"auto",display:"flex",gap:"4px",opacity:1,flexWrap:"wrap"},categoryImage:{width:56,height:56,flex:"0 0 56px",borderRadius:"8px",border:"1px solid #F1F1F1",objectFit:"cover",background:Ct,opacity:1},categoryMoreImageBox:{display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"#f0f0f0",cursor:"pointer"},categoryMoreImageText:{fontFamily:"Inter, sans-serif",fontSize:12,fontWeight:500,color:"#454545"},categoryViewCell:{width:"auto",height:56,flex:"0 0 auto",display:"flex",alignItems:"center",gap:"2px",opacity:1,marginLeft:"6px"},categoryViewButton:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#454545",background:"none",textTransform:"none",p:0,minWidth:0,boxShadow:"none",justifyContent:"center",alignItems:"center","&:hover":{background:"none",boxShadow:"none"}},categoryViewButtonIcon:{width:12,height:12,color:"#808080"},categoryTableAllStore:{outerCard:{width:"100%",maxWidth:"100%",minHeight:480,gap:"4px",opacity:1},categoryNameBox:{width:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",height:28,gap:"32px",padding:"8px 16px",borderRadius:"8px",borderTopLeftRadius:"8px",borderTopRightRadius:"8px",borderBottomLeftRadius:"8px",borderBottomRightRadius:"8px",bgcolor:"#808080",opacity:1},categoryNameText:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#FFFFFF",opacity:1},tableHeader:{width:"100%",height:28,gap:"16px",padding:"8px 16px 4px 16px",opacity:1},headerProduct:c.cellText,headerStatusText:c.cellText,headerOsaText:c.cellText,arrowDown:{width:12,height:12,color:"#454545"},arrowDownAllStore:{fontSize:12,height:12,color:"#808080",marginLeft:"8px",marginTop:"8px"},rowCard:{width:"100%",maxWidth:"100%",gap:"16px",padding:"12px 16px",border:"1px solid #F1F1F1",borderRadius:"8px",bgcolor:Ue,opacity:1},productBlock:{height:56,gap:"16px",minWidth:0,flex:"1 1 0"},imageBox:{width:56,height:56,border:"1px solid #F1F1F1",borderRadius:"8px"},productName:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},productMeta:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#454545"},productMetaBullet:{color:"#C5C5C5"},productSku:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",color:"#808080"},statusOsaBlock:{height:32,gap:"40px",minWidth:0,flex:"0 1 auto"},statusActiveBox:{width:64,height:20,minHeight:20,maxHeight:20,boxSizing:"border-box",gap:"8px",padding:"4px 6px",borderRadius:"4px",opacity:1,bgcolor:"#D8FBE3",fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#454545",verticalAlign:"middle",display:"inline-flex",alignItems:"center",justifyContent:"center"},statusNoStockBox:{width:64,height:20,minHeight:20,maxHeight:20,boxSizing:"border-box",gap:"8px",padding:"4px 6px",borderRadius:"4px",opacity:1,bgcolor:"#F1F1F1",fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#808080",verticalAlign:"middle",display:"inline-flex",alignItems:"center",justifyContent:"center"},stockValue:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#EB8F00"},osaValue:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545"},onShelfText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#454545"}},categoryTableSingleStore:{outerCard:{width:"100%",maxWidth:"100%",minHeight:520,gap:"6px",opacity:1},gridColumnGap:"4px",metricColumnExtraML:{xs:.75,sm:1,md:1.25},priceColumnExtraML:{xs:1.75,sm:2,md:2.5},tableHeader:{width:"100%",maxWidth:"100%",height:28,columnGap:"4px",rowGap:"4px",padding:"8px 16px 4px 16px",opacity:1},headerLabel:c.cellText,headerProduct:{minWidth:0,flex:"1 1 0"},headerStatus:{minWidth:0,flex:"0 1 auto"},headerPrice:{minWidth:0,flex:"0 1 auto"},headerStock:{minWidth:0,flex:"0 1 auto"},headerOffer:{minWidth:0,flex:"0 1 auto",gap:"32px",alignItems:"center"},stockOfferGap:"12px",checkboxBlue:{border:`0.5px solid ${gt}`,bgcolor:"#F3F8FF",color:gt},rowCard:{width:"100%",maxWidth:"100%",height:88,columnGap:"4px",rowGap:"0px",padding:"16px",border:"1px solid #F1F1F1",borderRadius:"8px",bgcolor:Ue,opacity:1},productBlock:{width:237,height:56,gap:"16px"},statusBlock:{width:64,height:20},priceBlock:{width:50,height:48,gap:"4px"},priceText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},clockIcon:{width:16,height:16,borderRadius:"4px",padding:"2px",bgcolor:Ct},stockBlock:{height:32,gap:"4px",minWidth:0,flex:"0 1 auto"},offerBlock:{height:36,gap:"4px",minWidth:0,flex:"0 1 auto"},offerText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},onShelfPercentRed:{color:"#d32f2f"},onShelfPercentNormal:{color:"#808080"},onShelfSpan:{color:"#808080"}},categoryTablePagination:s,contentWrapper:{position:"relative",zIndex:0,width:"100%",boxSizing:"border-box",bgcolor:Ct,minHeight:"100vh"},loadingBox:{minHeight:300,display:"flex",alignItems:"center",justifyContent:"center"},categoryImageDialogTitleRow:{display:"flex",alignItems:"center",justifyContent:"space-between"},categoryImageDialogTitleText:{fontFamily:"Inter, sans-serif",fontSize:16,fontWeight:500},categoryImageDialogCloseButton:{textTransform:"none",fontSize:14},categoryImageDialogContent:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",pb:3},categoryImageDialogImageBox:{maxWidth:"100%",maxHeight:"70vh",display:"flex",alignItems:"center",justifyContent:"center"},categoryImageDialogImage:{maxWidth:"100%",maxHeight:"70vh",borderRadius:2,objectFit:"contain"},categoryImageDialogFallbackText:{fontFamily:"Inter, sans-serif",fontSize:14,color:"#808080",textAlign:"center"},categoryImageDialogFooterRow:{mt:2,display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},categoryImageDialogNavButton:{textTransform:"none"},categoryImageDialogCounterText:{fontFamily:"Inter, sans-serif",fontSize:12,color:"#808080"}};return m.categoryTablePagination=s,h.productDetail=m,h}const _o=0,Cl=1e4;function x2({open:e,filters:t={},onChange:n,onClose:r,onApply:i,priceRange:s,mode:a="products"}){const{universal:c}=tt(),d=a==="home"||a==="category",p=N.useMemo(()=>{const R=s?.min??t.minPrice??_o,U=s?.max??t.maxPrice??Cl,D=Number(R),O=Number(U);return{min:Number.isFinite(D)?D:_o,max:Number.isFinite(O)?Math.max(O,Number.isFinite(D)?D:_o):Cl}},[s?.min,s?.max,t.minPrice,t.maxPrice]),u=N.useMemo(()=>{const R=s?.min??t.minOsa??_o,U=s?.max??t.maxOsa??Cl,D=Number(R),O=Number(U);return{min:Number.isFinite(D)?D:_o,max:Number.isFinite(O)?Math.max(O,Number.isFinite(D)?D:_o):Cl}},[s?.min,s?.max,t.minOsa,t.maxOsa]),h=d?u:p,m=d?"minOsa":"minPrice",y=d?"maxOsa":"maxPrice",g=t.status==="active"||t.status==="inactive"?t.status:"",f=t.stock==="inStock"||t.stock==="outOfStock"?t.stock:"",E=d?["categoryName","productCount","totalStock","totalOsa","osaPercent","lastUpdated"]:["price","productName","stock"],w=E.includes(t.sortBy)?t.sortBy:E[0],S=t.sortOrder==="asc"||t.sortOrder==="desc"?t.sortOrder:"",T=t[m]!=null&&Number.isFinite(Number(t[m]))?Number(t[m]):null,v=t[y]!=null&&Number.isFinite(Number(t[y]))?Number(t[y]):null,k=T??h.min,M=v??h.max,B=(R,U)=>{n({...t,status:U===g?void 0:U||void 0})},z=(R,U)=>{n({...t,stock:U===f?void 0:U||void 0})},$=R=>{const U=R.target.value;E.includes(U)&&n({...t,sortBy:U})},C=(R,U)=>{const D=U===S?void 0:U;if(!D){n({...t,sortOrder:void 0});return}n({...t,sortBy:t.sortBy?t.sortBy:w,sortOrder:D})},I=(R,U)=>{if(!Array.isArray(U)||U.length!==2)return;const D=Number(U[0]),O=Number(U[1]),L=Math.min(D,O),H=Math.max(D,O);n({...t,[m]:L,[y]:H})},_=d?t.minOsa!=null||t.maxOsa!=null:!1,F=d?!1:t.minPrice!=null||t.maxPrice!=null,j=d?!!(t.sortBy&&t.sortOrder||_):!!(t.status==="active"||t.status==="inactive"||t.stock==="inStock"||t.stock==="outOfStock"||t.sortBy&&t.sortOrder||F),V=()=>{const R={...t,status:void 0,stock:void 0,sortBy:void 0,sortOrder:void 0,[m]:void 0,[y]:void 0};n(R),typeof i=="function"&&i(R)};return l.jsxs(ko,{open:e,onClose:r,maxWidth:"xs",fullWidth:!0,children:[l.jsx(Oo,{children:d?"Filter Categories":"Filter Products"}),l.jsx(Qi,{children:l.jsxs(P,{display:"flex",flexDirection:"column",gap:2,pt:.5,children:[!d&&l.jsxs(l.Fragment,{children:[l.jsxs(Zi,{component:"fieldset",children:[l.jsx(Io,{component:"span",onClick:()=>n({...t,status:void 0}),sx:{fontWeight:600,color:"text.primary",mb:.5,cursor:"pointer",display:"inline-block",userSelect:"none"},children:"Status"}),l.jsxs(as,{row:!0,value:g,onChange:B,name:"status",children:[l.jsx(Cn,{value:"active",control:l.jsx(Cr,{size:"small"}),label:"Active"}),l.jsx(Cn,{value:"inactive",control:l.jsx(Cr,{size:"small"}),label:"Inactive"})]})]}),l.jsxs(Zi,{component:"fieldset",children:[l.jsx(Io,{component:"span",onClick:()=>n({...t,stock:void 0}),sx:{fontWeight:600,color:"text.primary",mb:.5,cursor:"pointer",display:"inline-block",userSelect:"none"},children:"Stock"}),l.jsxs(as,{row:!0,value:f,onChange:z,name:"stock",children:[l.jsx(Cn,{value:"inStock",control:l.jsx(Cr,{size:"small"}),label:"In Stock"}),l.jsx(Cn,{value:"outOfStock",control:l.jsx(Cr,{size:"small"}),label:"Out of Stock"})]})]})]}),l.jsx(Zi,{component:"fieldset",children:l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:1},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:1.5,width:"100%",justifyContent:"space-between"},children:[l.jsx(Io,{sx:{fontWeight:600,color:"text.primary",mb:0,display:"block",whiteSpace:"nowrap",flexShrink:0,cursor:"pointer"},onClick:()=>n({...t,sortBy:void 0,sortOrder:void 0}),children:"Sort"}),l.jsx(cn,{value:w,onChange:$,size:"small",variant:"standard",disableUnderline:!0,sx:{width:"140px",maxWidth:"100%"},MenuProps:{PaperProps:{sx:{width:"140px"}}},children:d?[l.jsx(et,{value:"categoryName",children:"categoryName"},"categoryName"),l.jsx(et,{value:"productCount",children:"productCount"},"productCount"),l.jsx(et,{value:"totalStock",children:"totalStock"},"totalStock"),l.jsx(et,{value:"totalOsa",children:"totalOsa"},"totalOsa"),l.jsx(et,{value:"osaPercent",children:"osaPercent"},"osaPercent"),l.jsx(et,{value:"lastUpdated",children:"lastUpdated"},"lastUpdated")]:[l.jsx(et,{value:"price",children:"Price"},"price"),l.jsx(et,{value:"productName",children:"ProductName"},"productName"),l.jsx(et,{value:"stock",children:"Stock"},"stock")]})]}),l.jsxs(as,{row:!0,value:S,onChange:C,name:"sortOrder",sx:{mt:.5},children:[l.jsx(Cn,{value:"asc",control:l.jsx(Cr,{size:"small"}),label:"Ascending"}),l.jsx(Cn,{value:"desc",control:l.jsx(Cr,{size:"small"}),label:"Descending"})]})]})}),l.jsxs(P,{children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:1.5,mb:1.5},children:[l.jsx(Io,{sx:{fontWeight:600,color:"text.primary",mb:0,whiteSpace:"nowrap"},children:d?"OSA":"Price"}),l.jsxs(W,{variant:"body2",color:"text.secondary",sx:{mb:0},children:["Min: ",d?k:`₹${k}`," — Max: ",d?M:`₹${M}`]})]}),l.jsx(P,{sx:{px:.5},children:l.jsx(Gm,{value:[k,M],onChange:I,min:h.min,max:h.max,valueLabelDisplay:"on",valueLabelFormat:R=>d?`${R}`:`₹${R}`,size:"small",disableSwap:!1,sx:{mt:2}})})]})]})}),l.jsxs(zd,{sx:{gap:.5,flexWrap:"wrap"},children:[l.jsx(Ze,{onClick:r,children:"Cancel"}),j&&l.jsx(Ze,{variant:"contained",onClick:V,sx:c.getUniversalBlueButtonSx(),children:"Clear Filters"}),l.jsx(Ze,{variant:"contained",onClick:()=>i&&i(),sx:c.getUniversalBlueButtonSx(),children:"Apply"})]})]})}const v2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAM5JREFUeAHVUUEOgjAQXGtJOPIADhw96g8wAcLRL/AS8Af6A3/AAyCBn+gTuLdN3RpqSG2TJlxkkmbb2elutwOwGaRpGhVF0Zo8tYmzLGuWZ875LQzDSAhxNLXE1snkxnGcwAHqEDfgCWrpbnvBy6tAEAQXDLUpwsInWIuyLJM8z58mT2AldnqD1rWEkB+bpJQTY+w82zioPY5ad11Xqfz3D9BrRUS2LsoZHOGTw8sDhqvO0aUIg9PvGQmuO3Z/aGIPnojjGHDEQ9/3FfwV3mNqQTvMf4BBAAAAAElFTkSuQmCC";function S2(e){const{sx:t,style:n,...r}=e||{},i=t&&typeof t=="object"?t:{},s={display:"block",...n||{},...typeof i.width<"u"?{width:i.width}:{},...typeof i.height<"u"?{height:i.height}:{},...typeof i.opacity<"u"?{opacity:i.opacity}:{}};return l.jsx("img",{src:v2,alt:"Sort",style:s,...r})}const w2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAPdJREFUeAGlUtENgjAQbUkHYAQdwREkwBriBjKBOIFsIK4BfLiBI+AG8MkP1HeEmoa0JcRLmsdx7+7d9cqZw8IwvHDO78qXUqZ1Xec6x2Nu85F0q6qKE5K/JKwVYOjgGkWRJITbLeNirQApo+3MKqA7UGoAO+bu6FOW5d5KoHa3xKwjxHF8Gscxh2KHk0H1aeIJWhUz3C5mz4QQB/oehuENmAqAn2m0btrCfMMqMZ3R7/ue0aEu9Ngyxzgb/iUYowG2QRAkhrh03gEeTwEo2IoJkzLgYeGf58I/8yzKTD1f9ZT1mLPAVvu7wNQadttiLf7G3BdGOn4B2S1yLsw0kyQAAAAASUVORK5CYII=";function au({sx:e={},...t}){const n=e?.width??14,r=e?.height??14;return l.jsx(P,{component:"img",src:w2,alt:"",role:"presentation",sx:{width:n,height:r,display:"block",objectFit:"contain",boxSizing:"border-box",...e},...t})}const C2=yt(l.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");function Kr(e){return l.jsx(C2,{...e})}function E2(e){return l.jsx(su,{...e})}const T2={minWidth:34,width:34,height:34,p:0,backgroundColor:"#fff",border:"none",borderRadius:1,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"};function ly(e){const{sx:t={},...n}=e;return l.jsx(P,{component:"button",sx:{...T2,...t},title:"Notifications","aria-label":"Notifications",...n,children:l.jsx(tu,{size:20})})}const A2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACJSURBVHgBlVBBDYAwDGxQgAQkTMIk4AALczAk4AAcgBMkTAISSge3x0iXjUsuS9q79joiBcwchEbrdYp4kCeyzSCweCeqIU5HnJ1fTCVhL/TCS3iiNsO0ZvdgYsLxGeQ4h4lFi0aK4SE22BjQH7VoaaKDcItxqXL4AlOgFuCnni3UChjsH0NRfAPyobTjv0sWNAAAAABJRU5ErkJggg==",P2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABGSURBVHgBXYtBDQAgDAMrBSlIQAIScIYEJCABCUgYbdhj2SXNku4KOGa2mYYIi2qfiWSK5fcyXY8m08vDDKbEpcyBjObRfCpVS/aG0GXFAAAAAElFTkSuQmCC";function cy(e){const{sx:t={},...n}=e;return l.jsx(P,{sx:{flexShrink:0,...t},...n,children:l.jsx(P,{sx:{padding:"1px",borderRadius:"10px",background:"linear-gradient(93.46deg, #568BDC 8.37%, #87FFD7 52.21%, #5ABDCE 93.24%)",flexShrink:0,width:32,height:32,boxSizing:"border-box"},children:l.jsx(P,{component:"button",sx:{position:"relative",width:"100%",height:"100%",minWidth:30,minHeight:30,padding:0,opacity:1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",borderRadius:"9px",background:`linear-gradient(94.11deg, #5BC0CF 3.33%, ${gt} 92.67%)`,border:"none",cursor:"pointer"},title:"Ask Aira","aria-label":"Ask Aira",children:l.jsxs(P,{sx:{position:"relative",width:20,height:20,opacity:1,flexShrink:0},children:[l.jsx(P,{component:"img",src:A2,alt:"",sx:{position:"absolute",width:10,height:10,top:"3.33px",left:"3.34px",opacity:1,objectFit:"contain",display:"block"}}),l.jsx(P,{component:"img",src:P2,alt:"",sx:{position:"absolute",width:4.166666507720947,height:4.166666507720947,top:"12.5px",left:"12.5px",opacity:1,objectFit:"contain",display:"block"}})]})})})})}const k2=({filters:e,onFilterChange:t,stores:n=[],onOpenFilterModal:r,StoresModal:i,storesModalProps:s,onStoreSelect:a,showBackButton:c=!1,backTo:d="/",backState:p,tenantStatus:u={matched:!0},priceRange:h,filterMode:m,styles:y,onSortToggle:g,sortIconRotationDeg:f=0})=>{const b=Lt(),x=tt(),{universal:E}=x,w=E.getGlobalCheckboxStyles({uncheckedBorder:"#B0B0B0",checkedBorder:"#1A73E8",checkedColor:"#1A73E8"}),[S,T]=N.useState(null),v=!!S,[k,M]=N.useState(!1),[B,z]=N.useState(!1),[$,C]=N.useState(e||{}),[I,_]=N.useState(e?.search??""),F=N.useRef(null),j=Array.isArray(e?.store)?e.store:[],V=()=>{T(null)},[R,U]=N.useState(j),D=J=>{U(J==="all"?["all"]:[J])},O={...w.checkboxSx,padding:0,marginRight:1,"& .MuiSvgIcon-root":{...w.checkboxSx["& .MuiSvgIcon-root"],width:18,height:18,borderRadius:"3px",border:"1.5px solid #B0B0B0",backgroundColor:Ue},"&.Mui-checked .MuiSvgIcon-root":{...w.checkboxSx["&.Mui-checked .MuiSvgIcon-root"],border:"1.5px solid #1A73E8"}},L={...w.iconSpan,width:18,height:18,borderRadius:"3px",border:"1.5px solid #B0B0B0",display:"inline-flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",backgroundColor:Ue},H={...w.checkedIconSpan,width:18,height:18,borderRadius:"3px",border:"1.5px solid #1A73E8",display:"inline-flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",backgroundColor:Ue,position:"relative"},Y=J=>{i?M(!0):(U(j.length===0?["all"]:j),T(J.currentTarget))},X=()=>{t({...e,store:R}),T(null)},te=J=>{a?a(J):t({...e,store:J}),M(!1)},ce=()=>{M(!1)};N.useEffect(()=>{_(e?.search??"")},[e?.search]),N.useEffect(()=>{if(t)return F.current&&clearTimeout(F.current),F.current=setTimeout(()=>{const J=(I??"").trim(),oe=(e?.search??"").trim();J!==oe&&t({...e,search:J})},500),()=>{F.current&&(clearTimeout(F.current),F.current=null)}},[I,e,t]);const de=J=>{if(J.key==="Enter"){J.preventDefault(),F.current&&(clearTimeout(F.current),F.current=null);const oe=(I??"").trim();if(oe===(e?.search??"").trim())return;t({...e,search:oe})}},ae=y!=null&&y.root!==void 0?y:(y!=null&&y.topBar!=null?y.topBar:x.topBar)||{};return l.jsxs(l.Fragment,{children:[l.jsx(Ut,{maxWidth:!1,disableGutters:!0,sx:x.productDetail?.categoryTableContainer,children:l.jsx(P,{sx:{...ae.root,position:"relative",width:"100%",height:72,minHeight:72,maxHeight:72,display:"flex",alignItems:"center",paddingTop:0,paddingBottom:0,gap:"16px",boxSizing:"border-box",overflow:"visible"},children:l.jsx(Ut,{maxWidth:!1,disableGutters:!0,sx:{width:"100%",display:"flex",justifyContent:"flex-start",boxSizing:"border-box",px:{xs:1,sm:2,md:4}},children:l.jsx(P,{sx:{...ae.inner,width:"100%",minWidth:0,height:32,minHeight:32,maxHeight:32,maxWidth:"100%",boxSizing:"border-box",gap:"16px",display:"flex",flexDirection:"row",alignItems:"center",overflow:"hidden",flexShrink:0,flexWrap:"nowrap"},children:l.jsxs(d2,{styles:y,gap:12,OverflowIcon:ay,overflowTooltip:"Menu",children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",flex:1,minWidth:0},children:[c&&l.jsxs(l.Fragment,{children:[l.jsxs(P,{component:"button",onClick:()=>b(d,p?{state:p}:void 0),sx:{display:"flex",alignItems:"center",width:48,height:16,gap:"4px",opacity:1,background:"none",border:"none",padding:0,cursor:"pointer","&:hover":{opacity:.85}},children:[l.jsx(Kr,{sx:{width:16,height:16,opacity:1,color:"#808080",flexShrink:0}}),l.jsx(W,{component:"span",sx:{width:28,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",display:"flex",alignItems:"center"},children:"Back"})]}),l.jsx(nn,{orientation:"vertical",flexItem:!0,sx:{mx:"clamp(6px, 2vw, 16px)",height:24,alignSelf:"center",borderColor:"#e0e0e0"}})]}),l.jsx(P,{sx:{display:"flex",alignItems:"center",minWidth:0,flex:1,maxWidth:"min(480px, 100%)"},children:l.jsxs(P,{sx:{...ae.searchBox,display:"flex",flexDirection:"row",alignItems:"center",width:"100%",maxWidth:"min(414px, 100%)",height:20,gap:"clamp(6px, 2vw, 12px)",borderRadius:2,border:"none",backgroundColor:Ue,px:1.5,py:0,boxSizing:"border-box"},children:[l.jsx(ou,{size:16,style:{position:"absolute",left:12,color:"#000000",top:"50%",transform:"translateY(-50%)"}}),l.jsx(Yi,{placeholder:c?"Search Products":"Search Products & Categories",value:I,onChange:J=>_(J.target.value),onKeyDown:de,sx:{...ae.searchInput||{},pl:3.5,width:"100%","& .MuiInputBase-input":{py:1.25,boxSizing:"border-box",fontSize:"clamp(12px, 1.6vw, 14px)"},"&::placeholder":{color:"#a0a0a0",opacity:1}}})]})})]}),l.jsx(nn,{orientation:"vertical",flexItem:!0,"data-overflow-divider":!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",mx:"clamp(4px, 1.2vw, 10px)"}}),l.jsxs(P,{sx:{display:"flex",gap:0,alignItems:"center"},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",flex:"0 1 216px",maxWidth:216,height:32,borderRadius:"6px",border:"1px solid #F1F1F1",paddingTop:"6px",paddingRight:"8px",paddingBottom:"6px",paddingLeft:"10px",backgroundColor:Ue,cursor:"pointer",gap:1,boxSizing:"border-box"},onClick:Y,tabIndex:0,"aria-label":"Select stores",children:[l.jsx(au,{size:12,style:{color:"#555",marginRight:4}}),l.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",minWidth:56,height:16,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:j.length===0||j.includes("all")?"All Stores":j.length===1?"1 Store":`${j.length} Stores`}),l.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",width:61,height:16,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:` ${n.filter(J=>J.id!=="all"&&J.storeCode!=="all").length} stores`}),l.jsx(Sl,{size:16,style:{width:16,height:16,opacity:1,flexShrink:0,color:"#454545"}})]}),l.jsxs(is,{anchorEl:S,open:v,onClose:V,disableScrollLock:!0,PaperProps:{sx:{minWidth:190,maxWidth:200,borderRadius:"8px",py:.5,overflow:"hidden"}},children:[l.jsxs(et,{onClick:()=>D("all"),sx:{py:.75,px:1.25,alignItems:"flex-start"},children:[l.jsx(Nt,{checked:R.length===0||R.includes("all"),icon:l.jsx(P,{sx:L}),checkedIcon:l.jsx(P,{sx:H,children:l.jsx(dn,{sx:{...w.tickIconSx,fontSize:14,color:"#1A73E8"}})}),sx:O}),l.jsx(qd,{primary:"All Stores",primaryTypographyProps:{sx:{fontSize:"12px",fontWeight:500,color:"#454545"}}})]}),l.jsx(nn,{}),l.jsx(P,{sx:{maxHeight:160,overflowY:"auto",overflowX:"hidden"},children:n.filter(J=>J.id!=="all").map(J=>l.jsxs(et,{onClick:()=>D(J.id),sx:{py:.75,px:1.25,alignItems:"flex-start",whiteSpace:"normal"},children:[l.jsx(Nt,{checked:R.includes(J.id),icon:l.jsx(P,{sx:L}),checkedIcon:l.jsx(P,{sx:H,children:l.jsx(dn,{sx:{...w.tickIconSx,fontSize:14,color:"#1A73E8"}})}),sx:{...O,alignSelf:"flex-start"}}),l.jsx(qd,{primary:J.name,sx:{flex:"1 1 auto",minWidth:0,maxWidth:"100%",my:0},primaryTypographyProps:{noWrap:!1,sx:{fontSize:"12px",fontWeight:400,color:"#454545",lineHeight:1.4,whiteSpace:"normal",wordBreak:"break-word",overflowWrap:"break-word",display:"block"}}})]},J.id))}),l.jsx(nn,{}),l.jsx(P,{sx:{display:"flex",justifyContent:"flex-end",p:1},children:l.jsx(Ze,{variant:"contained",size:"small",onClick:X,sx:E.getUniversalBlueButtonSx(),children:"Apply"})})]})]}),l.jsxs(P,{sx:{display:"flex",alignItems:"center",height:32,gap:"4px",borderRadius:"6px",paddingTop:"6px",paddingRight:"8px",paddingBottom:"6px",paddingLeft:"10px",border:"1px solid #F1F1F1",backgroundColor:Ue,boxSizing:"border-box",cursor:"pointer"},onClick:()=>{r?r():(C(e||{}),z(!0))},children:[l.jsx(W,{sx:{height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center",display:"flex",alignItems:"center",color:"#454545",whiteSpace:"nowrap"},children:"Filters"}),l.jsx(Sl,{size:16,style:{width:16,height:16,opacity:1,color:"#454545",flexShrink:0}})]}),l.jsxs(P,{sx:{display:"flex",alignItems:"center",height:32,gap:"4px",borderRadius:"6px",paddingTop:"6px",paddingRight:"8px",paddingBottom:"6px",paddingLeft:"10px",border:"1px solid #F1F1F1",backgroundColor:Ue,boxSizing:"border-box",cursor:"pointer"},onClick:()=>{u?.loading||g&&g()},children:[l.jsx(W,{sx:{height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center",display:"flex",alignItems:"center",color:"#454545",whiteSpace:"nowrap"},children:"Sort"}),l.jsx(S2,{sx:{width:16,height:16,opacity:1,color:"#454545"},style:{transform:`rotate(${f}deg)`,transformOrigin:"50% 50%"}})]}),l.jsx(nn,{orientation:"vertical",flexItem:!0,"data-overflow-divider":!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",mx:"clamp(4px, 1.2vw, 10px)"}}),l.jsx(P,{component:"button",sx:{...ae.iconOnly,cursor:u.loading?"not-allowed":"pointer",opacity:u.loading?.5:1,background:"none",border:"none",outline:"none",boxShadow:"none",pointerEvents:u.loading?"none":"auto"},title:u.loading?"Loading...":"Settings",tabIndex:-1,onClick:()=>{u.loading||b("/product-setting",{state:{tenantIntegrationMatched:!!u.matched}})},children:l.jsx(E2,{size:18.33,color:"#454545"})}),l.jsx(nn,{orientation:"vertical",flexItem:!0,"data-overflow-divider":!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",mx:"clamp(4px, 1.2vw, 10px)"}}),l.jsx(ly,{}),l.jsx(cy,{})]})})})})}),i&&(()=>{const{open:J,onClose:oe,onStoreSelect:G,...pe}=s||{};return l.jsx(i,{open:k,onClose:ce,onStoreSelect:te,selectedStores:j,...pe})})(),!r&&l.jsx(x2,{open:B,filters:$,onChange:C,onClose:()=>z(!1),onApply:J=>{t&&t(J!==void 0?J:$),z(!1)},priceRange:h,mode:m})]})};const O2=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),I2=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),dy=e=>{const t=I2(e);return t.charAt(0).toUpperCase()+t.slice(1)},uy=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),N2=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var M2={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 F2=N.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:a,...c},d)=>N.createElement("svg",{ref:d,...M2,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:uy("lucide",i),...!s&&!N2(c)&&{"aria-hidden":"true"},...c},[...a.map(([p,u])=>N.createElement(p,u)),...Array.isArray(s)?s:[s]]));const Xr=(e,t)=>{const n=N.forwardRef(({className:r,...i},s)=>N.createElement(F2,{ref:s,iconNode:t,className:uy(`lucide-${O2(dy(e))}`,`lucide-${e}`,r),...i}));return n.displayName=dy(e),n};const D2=Xr("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"}]]);const B2=Xr("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const py=Xr("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const _2=Xr("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const $2=Xr("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"}]]);const z2=Xr("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);const L2=Xr("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),j2="(max-width:480px)",W2="(max-width:370px)",V2=({breadcrumbRight:e="Settings",onBack:t,breadcrumbs:n})=>{const r=zt(),i=Lt(),s=r.pathname||"",a=_t(j2),c=_t(W2),d=t||(()=>i(-1)),p=()=>{const m=s.replace(/\/+$/,"");return m==="/product-setting"?[{label:"Products",to:"/"},{label:"Settings",to:"/product-setting"}]:m==="/products/settings/ftp-sync"?[{label:"Products",to:"/"},{label:"Settings",to:"/product-setting"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}]:m==="/catalogs/manage-shared"?[{label:"Products",to:"/"},{label:"Settings",to:"/product-setting"},{label:"Manage Shared Catalogs",to:"/catalogs/manage-shared"}]:m==="/osa"?[{label:"Products",to:"/"},{label:"OSA Requests",to:"/osa"}]:[{label:"Products",to:"/"},{label:"Settings",to:"/product-setting"}]},u=n&&Array.isArray(n)&&n.length>0?n:p(),h=(m=12)=>{if(!u||!Array.isArray(u)||u.length===0)return null;const y=c?"0 1px":a?"0 2px":"0 4px",g=c?"1px":a?"2px":"4px";return l.jsx(P,{sx:{display:"flex",alignItems:"center",gap:g,minWidth:0,flex:1,overflow:"hidden"},children:u.map((f,b)=>l.jsxs(N.Fragment,{children:[b>0&&l.jsx(py,{size:m,color:"#808080",style:{margin:y,flexShrink:0}}),l.jsx(W,{onClick:f.to?()=>i(f.to):void 0,sx:{fontFamily:"Inter, sans-serif",fontWeight:b===u.length-1?700:400,fontSize:b===u.length-1?a?c?"12px":"13px":"16px":a?c?"10px":"11px":"12px",lineHeight:b===u.length-1?"18px":"16px",letterSpacing:0,color:b===u.length-1?"#000000":"#808080",verticalAlign:"middle",cursor:f.to?"pointer":"default","&:hover":f.to?{opacity:.85}:void 0,...b===u.length-1?{minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{flexShrink:0}},children:f.label})]},f.label))})};return l.jsx(P,{sx:{position:"sticky",top:0,left:0,right:0,width:"100%",height:72,minHeight:72,maxHeight:72,paddingTop:"20px",gap:"20px",opacity:1,color:"#FFFFFF",backgroundColor:Ue,boxSizing:"border-box",display:"flex",flexDirection:"column",alignItems:"center",overflow:"hidden",zIndex:1100},children:l.jsxs(P,{sx:{width:"100%",maxWidth:1200,minWidth:0,height:32,paddingRight:"20px",paddingLeft:"20px",gap:"16px",opacity:1,boxSizing:"border-box",display:"flex",flexDirection:"row",alignItems:"center","@media (max-width: 480px)":{paddingRight:"8px",paddingLeft:"8px",gap:"6px"},"@media (max-width: 370px)":{paddingRight:"4px",paddingLeft:"4px",gap:"3px"}},children:[l.jsxs(P,{sx:{flex:1,minWidth:0,height:32,gap:"16px",opacity:1,display:"flex",alignItems:"center",flexShrink:0,overflow:"hidden","@media (max-width: 480px)":{gap:"6px",flexShrink:1},"@media (max-width: 370px)":{gap:"3px"}},children:[l.jsxs(P,{onClick:d,sx:{width:"auto",minWidth:c?32:40,maxWidth:48,height:16,gap:c?"1px":a?"2px":"4px",opacity:1,display:"flex",alignItems:"center",cursor:"pointer",flexShrink:0,background:"none",border:"none",padding:0,"&:hover":{opacity:.85}},children:[l.jsx(Kr,{sx:{width:16,height:16,opacity:1,color:"#808080",flexShrink:0}}),l.jsx(W,{component:"span",sx:{width:"auto",height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:c?"10px":a?"11px":"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",display:"flex",alignItems:"center",flexShrink:0},children:"Back"})]}),l.jsx(nn,{orientation:"vertical",flexItem:!0,sx:{mx:0,height:24,alignSelf:"center",borderColor:"#e0e0e0"}}),l.jsx(P,{sx:{flex:1,minWidth:0,height:20,paddingLeft:c?"2px":"8px",gap:"4px",opacity:1,display:"flex",alignItems:"center"},children:u&&u.length>0?h(c?9:12):l.jsxs(l.Fragment,{children:[l.jsx(W,{sx:{width:"auto",height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:c?"10px":a?"11px":"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",verticalAlign:"middle",flexShrink:0},children:"Products"}),l.jsx(py,{size:c?9:a?10:12,color:"#808080",style:{margin:c?"0 1px":a?"0 2px":"0 4px",flexShrink:0}}),l.jsx(W,{sx:{flex:1,minWidth:0,height:20,fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:c?"12px":a?"13px":"16px",lineHeight:a?"18px":"20px",letterSpacing:0,color:"#000000",verticalAlign:"middle",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e})]})})]}),l.jsx(nn,{orientation:"vertical",flexItem:!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",flexShrink:0,marginRight:a?0:"-8px"}}),l.jsxs(P,{sx:{marginLeft:"auto",display:"flex",alignItems:"center",gap:c?"4px":a?"8px":"16px",flexShrink:0},children:[l.jsx(ly,{}),l.jsx(cy,{})]})]})})},fy=N.createContext(null);function $o(){return N.useContext(fy)}function H2(){const t=zt().pathname||"",[n,r]=N.useState({}),[i,s]=N.useState({}),a=t.startsWith("/product-setting")||t.startsWith("/products/settings")||t.startsWith("/catalogs/manage-shared")||t.startsWith("/osa"),c=N.useMemo(()=>({setTopbarProps:r,setSettingTopbarProps:s}),[]);return l.jsx(fy.Provider,{value:c,children:l.jsxs(P,{sx:{display:"flex",flexDirection:"column",width:"100%",minHeight:"100vh",boxSizing:"border-box"},children:[l.jsx(P,{sx:{position:"sticky",top:0,zIndex:1100,flexShrink:0,width:"100%"},children:a?l.jsx(V2,{onBack:i.onBack,breadcrumbs:i.breadcrumbs}):n.hide?null:(()=>{const{hide:d,...p}=n;return l.jsx(k2,{...p})})()}),l.jsx(P,{component:"main",sx:{flex:"1 1 auto",display:"flex",flexDirection:"column",width:"100%",minWidth:0},children:l.jsx(Cb,{})})]})})}function zo({text:e="Fetching",fullScreen:t=!0,textVisible:n=!0}){const r=tt(),i=t?{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 64px)"}:r?.loadingBox||{minHeight:300,display:"flex",alignItems:"center",justifyContent:"center"};return l.jsx(P,{sx:{...i,animation:"fade-in 1s ease-in-out","@keyframes fade-in":{from:{opacity:0},to:{opacity:1}}},children:l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:1,px:2,py:1,borderRadius:2,bgcolor:"#f5f7fa"},children:[l.jsx(Vr,{size:24}),n&&l.jsxs(W,{sx:{animation:"fade-in 1s ease-in-out","@keyframes fade-in":{from:{opacity:0},to:{opacity:1}}},children:[e," ..."]})]})})}const U2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAACgCAYAAABJ/yOpAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAC2pJREFUeAHt3VtsHFcZB/Bvdr3rK6lTOU7pLbRQkcTmlqYtRKliEAGkSG2eEnjgIp6QKt6AVwpvSEg8IKQKIbU8oRQJNUFFEFdKiNKg0ARwIYkDwm2aNE0TK7XcxLHXuzudb2ZOvN3sfjs7tz1n5v+TLFtK4uza5z/nO5c5Y9kOAoCWCgQAbSEgAAIEBECAgAAIEBAAAQICIEBAAAQICIAAAQEQICAAAgQEQICAAAgQEAABAgIgQEAABAgIgAABARAgIAACBARAgIAACBAQAAECAiBAQAAECAiAAAEBECAgAAIEBECAgAAIEBAAAQICIEBAAAQICIAAAQEQICAAAgQEQICAAAgQEAABAgIgQEAABAgIgAABARAgIJo4NWfTc6/YdKtCoBEERBOn5ojm3iV6Z4FAIwgIgAABCWF5lejMJdLe5ffQI0WFgIRweMam3/7VpkOnbdLVezeJnpu26RcvY1wTBQISwvaPWzRQJjo+SzT9b/1CosLBPd3OzRYNlglCQkBCuHc90f7PW+7X0687QTmvT0hUOPgzv86nHiWIAAEJaeIBbnxeSA6d8maheo17DC79OBzrh4m+t9siiAYBiWDnZqLdn/Ia4R+d8QgPinvp4CnvNahwDJQIIuqjnLGdami1TlR3PuIojHZuIVpcJjr5P+/q/Z0pi0aHqWt1/8WsVIlurXb++wUnl+UikeV3EtOv23R6bi0c60O8BrhTrgKyWiOq1LyQxOmrn7Fo4aZN5y8TPX/Epm9xSIa6+ha3XxMHt1bv/Pedt+G+n37nN3j0jO1MFpDbY3x7F8IRp9yUWNWad3W2ExpPP/2YRRtHiRaWiF484c0gpeHYOS8c7Kntljswh/jkJiDccySJr977d3g9xxVnce7AieRnts5ftukvM97Xuz9t0faHCWKWi4BwyVJPYSaWw6HKqwvXnEHza8n9p9xTHXzN+3rXVou+NEmQgFwExE5xmYLDsW+HN4M0c8HrTYLodsaJw8dl3BOPWE5AnPcYYNwC3bNs29Z3v0RMePyxXKVUcTBmLtjuAD6Jvz/rTAi8u0BuOBgHrA+T9rHLRUC4vFrK+H6k4fLalC/EJxfXHF4zKGb4nXLPgXAkIzed8kCfF5Ss4ffUn7vl3vTkosRS+J3ydO9qwlO+aSla3tgDvUdyUg8I/28125t67VUy+TXwuMTkS0MxI2UVv4Wipe/7STUg3Ch5arKemz4LguJSsVT0PnSSWvXKMeRNeKYXdEsrdXpr3swpsbF1fTT2ET0HLHzRXPGn4nUKSWo/rSyE4+DJBXrp72bf5L338VF6+olR0lWlqtesXCoBqdfNL6vmF6u3wzHxwACZ6MzFZfc9fPL+Adp8n57vgZtJta5PL5JOQDIw5jj8r0X389TkCD3ztTEy0fNHrtOfTi/S7KVlbQPCdGov2JwQ0D/nltzPUxMjZKrHP+HdpPLq7A2CYFIJiOkLdDwon3+/ShucQa6p5RXj1z40UHDLxdm3l0lXRY3aSzoBKZi91eP4We+KO/GgueFQVA/IZZaOdNsWlNpL4e0Qpi5sZaG8UnQvs0pFvdpJatO8fGUYLJm3UBikvErqXvewLH/RrdxiJqi5zNJlsG75h1DotlCYamfGIRkqe/uH+AfB891xf8TdPU/7s1ftyivbTvZe9zDcPWdVb0tPKzqVWRwMLsHVCS08xRv2I4nfQU+WVVVjTkqcmxJVI2pXXlU03vjIN4oVW/yGuczi6d7pmUXa2+NFQ9vfE7cS0x2RJef9lmNcaMzkNK/lbwGP2l1zCSKVV3zBqsX0i01CtU3Zp8os3jaj82xWGKsBzxULKtPrIOWI94C8ek6evarV9B5PqVXpVlSP+I//L1HW1O34evZMB4SzEaWUM7m8UtoFJOuLhqsxnUGQ+ZX0Qsh32Km8Susooaj4ddZyVmYxfstxDNozH5CwFZYqr9SVtlnVoGN22k1W7Nm2zv2cxTKLxfErynxAwl5EVHn1xck7yyv3AGyDbtutCYN1ltUyK47GnfmAhJllaiyvNo2XY/mevcTZWG3xmjkg4857zGKZFdc9JZkOSDXkWkin8sqEwXmzdoPWXZPZm82yYjzpJbMB4av8SsiGLJVXpgzOm7lrNjkosyx/S1NcC4WxraS7J4VQ76nxQdgyqFN5ZfKRQbz9ZLDpDGBVZl3t4d4sXquK2qAtWjv4Ic7NjpEDorZ0ZOV0Lam84vdo0uxVs5q/X6m5AXGZ9fsTC26ZlWZA1IZKnXd5hy6xbP+824pmG/WiksorE8cezdoN1lmaZRbvcjDhFojQPUhF820WYbQqr968WqGbzizPcH+BxkfXSi7eBr8UcIfdg2NlGuqPd7jHr5O3rHeL22OrRy24i4bL9VTKrL5C6634OgoVENPWAYJS5dWeR70FtKP/uUG/+vP87T///p5x2vbwEL10coEOdnn8zzeevJu+8tl1FIffHbtOh2cWKQlplFkmnSUc6qXWMnoyoroif/Tusls+blxfpi33e42Fe4BNG8ruQHCrU5L893LwRnTOKdsOOYF6cusIDZaj9STcc3E41OuJC/ceF5zvnfSheJalf1nVKFyWM350KF/h+MauLfeV6adfv+eOP9/20IDzcU/g7/fMry+5s0RcqkUNiCrrHnJKwGf3B38NnfCZWc8euEJJM+2261C/LZwmHk4cPzYVkOF+M5ewTHtUXKifcqGAkHRj00avFIrjFlf1PXgiwUTtFix1Fa4HIe+2Rghmwh/HHD8XfRpVnbDy2CNDZKpKys+LjCJ0M3fv/TVkqq7X+LhSnkblKdSLEQbBHLAsHGDHC5amrClF6gd4sYcfbZaVh7kkhccL6t6L37wyH3j9pBHPsPHp8mzfDn1PZw+KexGeKaxqvgsjciHbV/Q+eoGvRO6+KwOeFsVrK7yu8ta1Ch04fp2+++WxwK+Zw/HLl6+6vcfHnKndqUnzD7Bj7gOVOpRban+VtH3dXZere2Gr+1tp3H9XiN42jR1JcDD49IqkzkOKG/ciP3GmZbnUOnb2Bv3ghUtug++Ey7Kf/eGKuz7BpdWP9o5TnqgH67R7vox6MBP3SGpnh+0/4o/DF7WUM3IqxN3KbtBAT9lwVx/9/Jv30o+d9YZrTq/wQyckO7eM0Oec1Xl++hNvSWEcHJ6t4pV9dSMT9xwcDv4eeVT3gzDUtDZ6q8NJnRwc7njCHgFl5E97xeBtLtzAuSd58W8LbsnFA29pdotXzLk8y8K4I6q6v8VJNfZqwP2AUZ5aZVxA+OdRN3jLOeOQ8EN49n1h1F3BPnrmBr1xdW3z47i/WZJnqnhX8ZChi4JJqDU8fSrorQdum3E+wnQixgXE9HA04qBM3TWSmUF3Guw2X3f8dyETYtylCdPJoHTVFEK2G+MCUrDMf2IVhFdqaLHdtINiXgLCSijJc6n56VOlgHckRrlP3cyAYJtL7nADH2g6rYS/7HSCScGK1laMnVRXJ7dn8dZf+LBii3Ao7kOZSnc+D8byV9LLEVu40atOapuLe+RQHAcVY2zjNsbBEmnBvfuQOpdH6qA47im4HcRxjJCSiWVZ/mHE8ehgzJD5P0tDx3hxtYNGGO4CCPK5sacDPuonb/L4noNAQBrwaSW89eOFI9cpr7YafCNWEhCQBmpD4NmL2XviUhAcDmyK/DDLtrN0cChAvDBIBxAgIAACBARAgIAACBAQAAECAiBAQAAECAiAAAEBECAgAAIEBECAgAAIEBAAAQICIEBAAAQICIAAAQEQICAAAgQEQICAAAgQEAABAgIgQEAABAgIgAABARAgIAACBARAgIAACBAQAAECAiBAQAAECAiAAAEBECAgAAIEBECAgAAIEBAAAQICIEBAAAQICIAAAQEQICAAAgQEQICAAAgQEAABAgIg+AALFhbc8PnnZAAAAABJRU5ErkJggg==";function lu({loading:e,handleStartSyncing:t,categoryName:n,sessionExpired:r=!1,hasIntegration:i=!1,hideSubtitleAndAction:s=!1,isHomeCategorySearchEmpty:a=!1,isHomeCategorySearch:c=!1,categoryHasNoProducts:d=!1,hideActionLink:p=!1,hideIconAndTitle:u=!1,showFetchingCategoriesLabel:h=!1}){const m=Lt(),y=tt();let g=y&&y.emptyProduct?y.emptyProduct:{wrapper:{},card:{},iconContainer:{},inboxIcon:{},title:{},subtitle:{},actionLink:{}};const b=Ye(S=>S?.dashboard)?.products||[],x=t||(()=>m("/product-setting")),E=!r&&!e&&Array.isArray(b)&&b.length===0,w=d?!1:E;if(e&&!r){let S="Fetching";return h?S="Fetching Categories":(c||a||n)&&(S="Fetching Category"),l.jsx(zo,{text:S,fullScreen:!0})}return l.jsx(P,{sx:{minHeight:"100vh",bgcolor:"#f5f7fa",overflowX:"hidden"},children:l.jsx(P,{sx:g.wrapper,children:l.jsxs(P,{sx:g.card,children:[!(u||a)&&l.jsx(P,{sx:g.iconContainer,children:l.jsx(P,{component:"img",src:U2,alt:"No products",sx:{display:"block",objectFit:"contain",maxWidth:"100%",width:280,height:240,...g.inboxIcon,border:"none",outline:"none",borderRadius:0,bgcolor:"transparent"}})}),l.jsx(W,{sx:g.title,children:!r&&(a||n?"No Category Found":"No Products")}),!a&&!s&&!e&&l.jsx(W,{sx:g.subtitle,children:r?"Your session has expired or your token is invalid. Please log in again.":n&&!w?`No products found in the "${n}" category.`:w?i?"No products found in store inventory. Start syncing to add products.":"Start by setting up sync":n?"No Category Found":"No active integration found for this tenant id"}),!a&&!s&&!e&&!r&&!p&&w&&!i&&l.jsx(W,{component:"a",href:"#",sx:g.actionLink,onClick:S=>{S.preventDefault(),x()},children:"Start Syncing Products"})]})})})}const hy=yt(l.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),R2="#22c55e";function cu(e){const{sx:t,color:n=R2,fontSize:r,...i}=e;return l.jsxs(or,{viewBox:"0 0 24 24",sx:{fontSize:r||24,color:n,...t},...i,children:[l.jsx("circle",{cx:"12",cy:"12",r:"10",fill:"none",stroke:"currentColor",strokeWidth:"2"}),l.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",d:"M6.5 12l3.5 4 7-8"})]})}function q2({catalogSlug:e="",onClose:t,autoHideDurationMs:n=3e3}){const{catalogCreatedToast:r}=tt(),i=typeof window<"u"?`${window.location.origin}${e.startsWith("/")?e:`/${e}`}`:"",s=()=>{i&&navigator.clipboard.writeText(i).then(()=>{}).catch(()=>{})};return N.useEffect(()=>{if(!n||n<=0||typeof t!="function")return;const a=window.setTimeout(()=>{t()},n);return()=>window.clearTimeout(a)},[n,t]),l.jsxs(P,{sx:r.root,children:[l.jsx(P,{sx:r.iconWrap,children:l.jsx(cu,{sx:{fontSize:40}})}),l.jsxs(P,{sx:r.content,children:[l.jsx(W,{sx:r.title,children:"Catalog created"}),l.jsx(W,{sx:r.description,children:"You can now share it for collecting orders"}),l.jsx(W,{component:"button",onClick:s,sx:r.copyLinkButton,children:"Copy Share Link"})]}),l.jsx(it,{onClick:t,size:"small","aria-label":"Close",sx:r.closeButton,children:l.jsx(hy,{sx:{fontSize:20}})})]})}const Y2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAMFJREFUeAGNUgENwjAQbBcM4AAcgALmAByAhE3BWgXDQTcHSCgKkEBwAArKXfJNnjIWPrnc//e+/VtmzUw452oQEZFH9qoZcQB1UgbUPRP7Q+xAK9BJ9W6g1po/Qy4xC9303ncppUbKAZpWHR/5QqV3hniNlNgCy7yS+LmCL1Y1LAUi2vFB4An0+YzaCskBXKvbBtALoMk78NDm6WEDjIVB+mjMRNBDBPbFQMhfpYzs4SxDo+z/scbXgAzVpvgNpuINgHBRUvbxfqsAAAAASUVORK5CYII=";function G2(e){const{sx:t,alt:n="link icon",...r}=e;return l.jsx(P,{component:"img",src:Y2,alt:n,sx:{display:"inline-block",width:16,height:16,objectFit:"contain",...t},...r})}const K2=yt(l.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Mt({size:e,style:t,sx:n,...r}){return l.jsx(K2,{...r,sx:{...e&&{width:e,height:e},...t,...n}})}const gy=e=>{if(!e)return"";const t=new Date(e);if(Number.isNaN(t.getTime()))return"";const n=Date.now()-t.getTime();if(n<0)return"Sync just now";const r=Math.floor(n/(1e3*60));if(r<1)return"Sync just now";if(r<60)return`Sync ${r} minute${r>1?"s":""} ago`;const i=Math.floor(r/60);if(i<24)return`Sync ${i} hour${i>1?"s":""} ago`;const s=Math.floor(i/24);return`Sync ${s} day${s>1?"s":""} ago`},El=e=>{if(e==null||!Number.isFinite(e))return"0";if(e>=1e3){const t=e/1e3;return(t%1===0?String(t):t.toFixed(1).replace(/\.0$/,""))+"K"}return String(Math.round(e))},my=({productState:e,categoryName:t,categoryProductCount:n,categoryCount:r,activeCatalogsCount:i=0,onManageClick:s,onReportClick:a,matchHomePageLayout:c=!1,equalCardWidths:d=!1})=>{const p=e?.metrics||{},u=e?.productDashboardMetrics||{},h=!t,m=c||h,y=!!t&&!m,g=m?"12px":"8px",f=m?void 0:261.3333435058594,b=101,x=t?u.productCount!=null?u.productCount:n:h&&(p.activeCategories!=null||p.activeProducts!=null)?p.activeCategories??r??0:r??e?.homePageCardSummary?.totalCategories??0,E=t?"":"Products",w=t?"":h&&p.activeProducts!=null?p.activeProducts:e?.homePageCardSummary?.totalProducts??0,S=p?.lastSyncTime,T=u?.lastSyncTime,v=gy(h?S:T||S),k=h&&p.activeCatalogues!=null?p.activeCatalogues:t&&u.activeCatalogues!=null?u.activeCatalogues:i,M=p.onShelfYesterdayPerc!=null?Math.round(Number(p.onShelfYesterdayPerc)):null,B=p.totalOnShelfYesterdayCount!=null?Number(p.totalOnShelfYesterdayCount):null,z=p.totalStockYesterdayCount!=null?Number(p.totalStockYesterdayCount):null,$=p.missingOnShelfYesterdayPercent!=null?Math.round(Number(p.missingOnShelfYesterdayPercent)):null,C=u.onShelfYesterdayPerc!=null?Math.round(Number(u.onShelfYesterdayPerc)):null,I=u.totalOnShelfYesterdayCount!=null?Number(u.totalOnShelfYesterdayCount):null,_=u.totalStockYesterdayCount!=null?Number(u.totalStockYesterdayCount):null,F=u.missingOnShelfYesterdayPercent!=null?Math.round(Number(u.missingOnShelfYesterdayPercent)):null,j=h?M!=null?`${M}%`:"78%":C!=null?`${C}%`:"78%",V=h?B!=null&&z!=null?`${El(B)}/${El(z)}`:"78/100k":I!=null&&_!=null?`${El(I)}/${El(_)}`:"78/100k",R=h?$!=null?`${$}% Missing`:"22% missing":F!=null?`${F}% Missing`:"22% missing",U=t?`${t} Products`:"Categories";return l.jsx(Ut,{maxWidth:!1,sx:{width:"100%",maxWidth:"100%",minWidth:"100%",px:0},children:l.jsxs(P,{sx:{width:"100%",maxWidth:"100%",height:m?"auto":y?101:"auto",gap:g,opacity:1,display:"flex",flexWrap:"wrap",justifyContent:"flex-start",alignItems:"stretch",mb:3},children:[l.jsx(du,{cardWidth:f??344,cardHeight:b,title:U,titleValue:x,subtitle:E,subtitleValue:w,recentText:v,tickMarkRequired:!0,flexGrow:!0,flexOverride:m?d?"1 1 200px":"2 1 180px":y?void 0:"2 1 180px"}),l.jsx(du,{cardWidth:f??220,cardHeight:b,title:"Active Catalogs",titleValue:k,recentText:"4 public links",linkRequired:!0,btnLabel:"Manage",onBtnClick:s,flexGrow:!0,flexOverride:m?"1 1 200px":y?void 0:"1 1 200px"}),l.jsx(du,{cardWidth:f??220,cardHeight:b,title:"On Shelf Yesterday",titleValue:j,thirdVaue:V,recentText:R,recentTextColor:"#FF2929",btnLabel:"Report",onBtnClick:a,isThirdCard:!0,flexGrow:!0,flexOverride:m?"1 1 200px":y?void 0:"1 1 200px"})]})})};function du({cardWidth:e=344,cardHeight:t=101,title:n="",subtitle:r="",titleValue:i="",thirdVaue:s="",subtitleValue:a="",recentText:c="",recentTextColor:d="#808080",btnLabel:p="",tickMarkRequired:u=!1,linkRequired:h=!1,onBtnClick:m,isThirdCard:y=!1,flexGrow:g=!1,flexOverride:f}){const{initialCard:b,universal:x}=tt();return l.jsxs(Ki,{sx:x.getGlobalCardContainerSx({width:g?void 0:e,minWidth:g?200:void 0,flex:f??(g?"1 1 200px":"0 0 auto"),height:t,opacity:1,gap:"1px",borderRadius:"12px",boxShadow:"0 2px 8px #e0e0e0",p:0,display:"flex",flexDirection:"column",overflow:"hidden",boxSizing:"border-box"}),children:[l.jsx(P,{sx:{width:g?"100%":e,height:68,opacity:1,gap:"4px","@media (max-width: 790px)":{gap:0},"@media (max-width: 490px)":{gap:0},padding:"8px 12px",display:"flex",alignItems:"flex-start",boxSizing:"border-box"},children:y?l.jsx(l.Fragment,{children:l.jsxs(P,{sx:{width:"100%",height:52,opacity:1,gap:"4px",display:"flex",flexDirection:"column"},children:[l.jsx(W,{sx:{...b.interLabel,height:16},children:n}),l.jsxs(P,{sx:{minWidth:0,height:32,opacity:1,gap:"6px",display:"flex",alignItems:"baseline",flexWrap:"nowrap"},children:[l.jsx(W,{sx:{...b.thirdCardCountText},children:i}),l.jsx(W,{sx:{...b.thirdCardSecondCountText},children:s})]})]})}):l.jsxs(l.Fragment,{children:[n&&l.jsxs(P,{sx:{width:158,height:52,opacity:1,gap:"4px",display:"flex",flexDirection:"column","@media (max-width: 790px)":{width:"auto",minWidth:0,flex:"1 1 0"}},children:[l.jsx(W,{sx:{...b.interLabel,width:158,height:16,"@media (max-width: 790px)":{width:"100%",maxWidth:"100%"}},children:n}),l.jsx(W,{sx:{...b.interCount,width:32,height:32},children:i})]}),r&&l.jsxs(P,{sx:{width:158,height:52,opacity:1,gap:"4px",display:"flex",flexDirection:"column","@media (max-width: 790px)":{width:"auto",minWidth:0,flex:"1 1 0"}},children:[l.jsx(W,{sx:{...b.interLabel,width:158,height:16,"@media (max-width: 790px)":{width:"100%",maxWidth:"100%"}},children:r}),l.jsx(W,{sx:{...b.interCount,width:47,height:32},children:a})]})]})}),l.jsx(nn,{}),l.jsx(P,{sx:{width:g?"100%":e,height:32,opacity:1,padding:"8px 12px",display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box"},children:y?l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:{minWidth:0,height:12,opacity:1,gap:"4px",display:"flex",alignItems:"center"},children:l.jsx(W,{sx:{...b.thirdCardMissingText,whiteSpace:"nowrap"},children:c})}),p&&l.jsxs(P,{sx:{width:58,height:16,opacity:1,gap:"2px",display:"flex",alignItems:"center"},children:[l.jsx(Ze,{variant:"text",size:"small",onClick:m,sx:{...b.thirdCardReportText,width:40,height:16,textTransform:"none",minWidth:0,p:0,gap:"2px","&:hover":{bgcolor:"transparent",color:gt}},children:p}),l.jsx(Mt,{sx:{width:16,height:16,color:gt}})]})]}):l.jsxs(l.Fragment,{children:[l.jsxs(P,{sx:{flex:1,minWidth:0,height:12,opacity:1,gap:"4px",display:"flex",alignItems:"center"},children:[u&&l.jsx(cu,{sx:{width:12,height:12,mr:.5}}),h&&l.jsx(G2,{sx:{color:"#2563eb",width:12,height:12,mr:.5}}),l.jsx(W,{sx:{...b.interSyncText,height:12,color:d,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:c})]}),p&&l.jsx(P,{sx:{width:65,height:16,opacity:1,gap:"2px",display:"flex",alignItems:"center"},children:l.jsxs(Ze,{variant:"text",size:"small",onClick:m,sx:{color:gt,textTransform:"none",fontWeight:600,fontFamily:"Inter, sans-serif",fontSize:12,lineHeight:"16px",minWidth:0,p:0,gap:"2px","&:hover":{bgcolor:"transparent",color:gt}},children:[p,l.jsx(Mt,{sx:{width:16,height:16,color:gt}})]})})]})})]})}const X2=yt(l.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward");function Tl(e){return l.jsx(X2,{...e})}const J2=yt(l.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");function dr(e){return l.jsx(J2,{...e})}const Q2=yt([l.jsx("path",{d:"M17.59 18 19 16.59 14.42 12 19 7.41 17.59 6l-6 6z"},"0"),l.jsx("path",{d:"m11 18 1.41-1.41L7.83 12l4.58-4.59L11 6l-6 6z"},"1")],"KeyboardDoubleArrowLeft");function fs(e){return l.jsx(Q2,{...e})}const Z2=yt([l.jsx("path",{d:"M6.41 6 5 7.41 9.58 12 5 16.59 6.41 18l6-6z"},"0"),l.jsx("path",{d:"m13 6-1.41 1.41L16.17 12l-4.58 4.59L13 18l6-6z"},"1")],"KeyboardDoubleArrowRight");function hs(e){return l.jsx(Z2,{...e})}function yy(e){if(!e)return"";try{return new Date(e).toLocaleDateString()}catch{return e}}function Lo(e){return e?.categoryName??e?.name??""}function eN({categoryData:e=[],styles:t={},onView:n,selectedCategories:r=[],selectedProducts:i=[],pinnedCategoryNames:s=[],categoryNamesFromProductSelection:a=[],onToggleCategory:c,totalCategoryCount:d=0,onClearAllCategories:p,pagination:u=null,onPageChange:h,onLimitChange:m}){const{universal:y}=tt(),g=y.globalTableScaffoldStyles,f=t?.categoryTablePagination??y.globalPaginationStyles??{},b=N.useMemo(()=>new Set(s.map(K=>String(K).trim()).filter(Boolean)),[s]),x=N.useMemo(()=>new Set((Array.isArray(r)?r:[]).map(K=>String(Lo(K)??"").trim()).filter(Boolean)),[r]),E=N.useMemo(()=>new Set(a.map(K=>String(K).trim()).filter(Boolean)),[a]),w=N.useMemo(()=>{const K=new Map;if(!Array.isArray(i))return K;const q=ue=>(ue?.categoryName??ue?.category??"").toString().trim(),he=ue=>(ue?.productId??ue?.catalogProductId??ue?.id??ue?.sku??ue?.productName??"").toString().trim();return i.forEach(ue=>{const Ee=q(ue);if(!Ee)return;const ke=he(ue);ke&&(K.has(Ee)||K.set(Ee,new Set),K.get(Ee).add(ke))}),K},[i]),S=K=>{const q=Number(K?.productCount??0);return Number.isFinite(q)?q:0},T=K=>{const q=String(Lo(K)??"").trim();return w.get(q)?.size??0},v=K=>{const q=String(Lo(K)??"").trim();if(!q)return!1;if(x.has(q))return!0;const he=T(K);if(he<=0)return!1;const ue=S(K);return ue>0?he===ue:!0},k=K=>{const q=String(Lo(K)??"").trim();if(!q||x.has(q))return!1;const he=T(K);if(he<=0)return!1;const ue=S(K);return ue>0?he<ue:!1},M=K=>{const q=String(Lo(K)??"").trim();return q&&r.some(he=>String(Lo(he)??"").trim()===q)||q&&b.has(q)||q&&E.has(q)},B=r.length,z=Number(d)||0,$=z>0&&B===z,C=B>0||a.length>0,I=e.some(M),_=C&&!$&&I,F=t.categoryTableShared??{},j=l.jsx("span",{style:F.checkboxRowCheckedIconSpan,children:l.jsx("span",{style:F.checkboxRowCheckedIconInner})}),[V,R]=N.useState(!1),[U,D]=N.useState([]),[O,L]=N.useState(0),[H,Y]=N.useState(""),[X,te]=N.useState(0),ce=_t("(max-width:600px)"),de=_t("(max-width:900px)"),ae=_t("(max-width:400px)");let J=4;ce?J=1:de&&(J=2);const oe=(K,q,he,ue)=>{const Ee=Array.isArray(K)?K:[],ke=Number.isFinite(Number(ue))?Number(ue):Ee.length;if(ke<=0)return;const ve=ke-1,le=Math.max(0,Math.min(q,ve));D(Ee),L(le),te(ke),Y(he||""),R(!0)},G=()=>{R(!1)},pe=()=>{L(K=>K>0?K-1:K)},ee=()=>{L(K=>K<X-1?K+1:K)};return l.jsxs(l.Fragment,{children:[l.jsx(Ut,{maxWidth:!1,sx:{...g.container,...t.categoryTableContainer},children:l.jsxs(Ki,{sx:{...g.card,...t.ProductTable,minHeight:"auto"},children:[l.jsxs(P,{sx:{...g.headerBox,...t.categoryTableHeader,width:"100%"},children:[c&&l.jsx(P,{sx:t.categoryTableHeaderCheckboxCol,children:l.jsx(Nt,{checked:$,indeterminate:_,onChange:()=>{($||_)&&typeof p=="function"?p():e.forEach(K=>{M(K)||c(K)})},size:"small",sx:F.checkboxHeaderSx,icon:l.jsx("span",{style:F.checkboxIconSpanHeader}),checkedIcon:l.jsx("span",{style:F.checkboxCheckedIconSpan,children:l.jsx(dn,{sx:F.checkboxTickIconHeaderSx})}),indeterminateIcon:l.jsx("span",{style:F.checkboxCheckedIconSpan,children:l.jsx("span",{style:F.checkboxCheckedIconInner})})})}),l.jsxs(P,{sx:t.categoryTableHeaderCategoryCell,children:["Category",l.jsx(Tl,{sx:t.categoryTableHeaderArrow})]}),!ae&&l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:t.categoryTableHeaderStockCell,children:"Stock / OSA"}),l.jsx(P,{sx:t.categoryTableHeaderProductsCell,children:"Products"})]}),l.jsx(P,{sx:t.categoryTableHeaderEmptyCell})]}),e.map((K,q)=>{const he=Array.isArray(K.images)?K.images:[],ue=he.slice(0,J),Ee=Number.isFinite(Number(K.productCount))?Number(K.productCount):he.length,ke=Math.max(Ee-ue.length,0);return l.jsx(P,{sx:{...g.rowShell,...t.categoryTableRow(q),width:"100%",flexDirection:ae?"column":t.categoryTableRow?.flexDirection,alignItems:ae?"flex-start":t.categoryTableRow?.alignItems},children:ae?l.jsxs(l.Fragment,{children:[l.jsxs(P,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",width:"100%",gap:1},children:[l.jsxs(P,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",gap:1,minWidth:0,flex:1},children:[c&&l.jsx(P,{sx:t.categoryTableRowCheckboxFrame,children:l.jsx(Nt,{checked:v(K),indeterminate:k(K),onChange:()=>c(K),size:"small",sx:{...F.checkboxRowSx,outline:"none",boxShadow:"none","&.Mui-focusVisible":{outline:"none",boxShadow:"none"},"& .PrivateSwitchBase-input":{outline:"none"}},icon:l.jsx("span",{style:F.checkboxIconSpanRow}),checkedIcon:l.jsx("span",{style:F.checkboxRowCheckedIconSpan,children:l.jsx(dn,{sx:F.checkboxTickIconRowSx})}),indeterminateIcon:j})}),l.jsxs(P,{sx:{...t.categoryNameCell,flex:"1 1 auto",minWidth:0},children:[l.jsx(W,{sx:t.categoryName,children:K.categoryName}),l.jsxs(W,{sx:t.categoryProducts,children:[K.productCount," Products"]}),l.jsxs(W,{sx:t.categoryUpdated,children:["Updated ",yy(K.lastUpdated)]})]})]}),l.jsx(P,{sx:{...t.categoryViewCell,flexShrink:0,mt:"5px",alignSelf:"flex-start",alignItems:"flex-start"},children:l.jsxs(Ze,{variant:"text",sx:t.categoryViewButton,onClick:()=>n&&n({name:K.categoryName,...K}),children:["View",l.jsx(Mt,{sx:t.categoryViewButtonIcon})]})})]}),l.jsxs(P,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:2,width:"100%",mt:.5,...c&&{ml:"24px"}},children:[l.jsxs(P,{sx:{...t.categoryStockCell,flex:"0 0 auto"},children:[l.jsxs(W,{sx:t.categoryStock(q),children:[K.totalStock,"/",K.totalOsa]}),l.jsx(W,{sx:t.categoryOSA(q),children:K.osaPercent!=null?l.jsxs(l.Fragment,{children:[l.jsxs(P,{component:"span",sx:Number(K.osaPercent)<50?{color:"#d32f2f"}:{},children:[Math.round(Number(K.osaPercent)),"%"]})," on shelf"]}):""})]}),l.jsxs(P,{sx:{...t.categoryImagesCell,flex:"1 1 auto",minWidth:0},children:[ue.map((ve,le)=>l.jsx(cr,{src:ve,alt:(K.categoryName||"")+" product",sx:{...t.categoryImage,cursor:"pointer"},onClick:()=>oe(he,le,K.categoryName||"",Ee)},le)),ke>0&&l.jsx(P,{onClick:()=>oe(he,ue.length,K.categoryName||"",Ee),sx:{...t.categoryImage,...t.categoryMoreImageBox},children:l.jsxs(W,{sx:t.categoryMoreImageText,children:["+",ke," More"]})})]})]})]}):l.jsxs(l.Fragment,{children:[c&&l.jsx(P,{sx:t.categoryTableRowCheckboxFrame,children:l.jsx(Nt,{checked:v(K),indeterminate:k(K),onChange:()=>c(K),size:"small",sx:{...F.checkboxRowSx,outline:"none",boxShadow:"none","&.Mui-focusVisible":{outline:"none",boxShadow:"none"},"& .PrivateSwitchBase-input":{outline:"none"}},icon:l.jsx("span",{style:F.checkboxIconSpanRow}),checkedIcon:l.jsx("span",{style:F.checkboxRowCheckedIconSpan,children:l.jsx(dn,{sx:F.checkboxTickIconRowSx})}),indeterminateIcon:j})}),l.jsxs(P,{sx:{...t.categoryNameCell,width:"auto"},children:[l.jsx(W,{sx:t.categoryName,children:K.categoryName}),l.jsxs(W,{sx:t.categoryProducts,children:[K.productCount," Products"]}),l.jsxs(W,{sx:t.categoryUpdated,children:["Updated ",yy(K.lastUpdated)]})]}),l.jsxs(P,{sx:{...t.categoryStockCell,width:"auto"},children:[l.jsxs(W,{sx:t.categoryStock(q),children:[K.totalStock,"/",K.totalOsa]}),l.jsx(W,{sx:t.categoryOSA(q),children:K.osaPercent!=null?l.jsxs(l.Fragment,{children:[l.jsxs(P,{component:"span",sx:Number(K.osaPercent)<50?{color:"#d32f2f"}:{},children:[Math.round(Number(K.osaPercent)),"%"]})," on shelf"]}):""})]}),l.jsxs(P,{sx:{...t.categoryImagesCell,width:"auto"},children:[ue.map((ve,le)=>l.jsx(cr,{src:ve,alt:(K.categoryName||"")+" product",sx:{...t.categoryImage,cursor:"pointer"},onClick:()=>oe(he,le,K.categoryName||"",Ee)},le)),ke>0&&l.jsx(P,{onClick:()=>oe(he,ue.length,K.categoryName||"",Ee),sx:{...t.categoryImage,...t.categoryMoreImageBox},children:l.jsxs(W,{sx:t.categoryMoreImageText,children:["+",ke," More"]})})]}),l.jsx(P,{sx:{...t.categoryViewCell,width:"auto"},children:l.jsxs(Ze,{variant:"text",sx:t.categoryViewButton,onClick:()=>n&&n({name:K.categoryName,...K}),children:["View",l.jsx(Mt,{sx:t.categoryViewButtonIcon})]})})]})},K.categoryName||q)}),u&&typeof h=="function"&&typeof m=="function"&&l.jsxs(P,{sx:{...f.wrapper},children:[l.jsxs(P,{sx:f.resultsPerPageBox,children:[l.jsx(W,{component:"span",sx:f.resultsPerPageText,children:"Results per page:"}),l.jsx(cn,{value:u.limit??10,onChange:K=>m(Number(K.target.value)),IconComponent:dr,variant:"standard",disableUnderline:!0,sx:f.select,children:[5,10,20,50].map(K=>l.jsx(et,{value:K,children:K},K))})]}),l.jsxs(P,{sx:f.navBox,children:[l.jsx(it,{size:"small",disabled:(u.currentPage??1)<=1,onClick:()=>h(1),sx:f.iconButton,title:"First page",children:l.jsx(fs,{sx:f.paginationIcon})}),l.jsx(it,{size:"small",disabled:(u.currentPage??1)<=1,onClick:()=>h((u.currentPage??1)-1),sx:f.iconButton,title:"Previous page",children:l.jsx(Kr,{sx:f.paginationIcon})}),l.jsx(W,{component:"span",sx:f.pageText,children:(u.totalCount??0)===0?"0 - 0 of 0":`${((u.currentPage??1)-1)*(u.limit??10)+1} - ${Math.min((u.currentPage??1)*(u.limit??10),u.totalCount??0)} of ${u.totalCount??0}`}),l.jsx(it,{size:"small",disabled:!(u.hasNextPage??!1)||(u.currentPage??1)>=(u.totalPages??1),onClick:()=>h((u.currentPage??1)+1),sx:f.iconButton,title:"Next page",children:l.jsx(Mt,{sx:f.paginationIcon})}),l.jsx(it,{size:"small",disabled:!(u.hasNextPage??!1)||(u.currentPage??1)>=(u.totalPages??1),onClick:()=>h(u.totalPages??1),sx:f.iconButton,title:"Last page",children:l.jsx(hs,{sx:f.paginationIcon})})]})]})]})}),l.jsxs(ko,{open:V,onClose:G,maxWidth:"lg",fullWidth:!0,children:[l.jsxs(Oo,{sx:t.categoryImageDialogTitleRow,children:[l.jsxs(W,{sx:t.categoryImageDialogTitleText,children:["Image Preview",H?` - ${H}`:""]}),l.jsx(Ze,{onClick:G,sx:t.categoryImageDialogCloseButton,children:"Close"})]}),l.jsx(Qi,{sx:t.categoryImageDialogContent,children:X>0&&l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:t.categoryImageDialogImageBox,children:U[O]?l.jsx(P,{component:"img",src:U[O],alt:(H||"Category")+` image ${O+1}`,sx:t.categoryImageDialogImage}):l.jsx(W,{sx:t.categoryImageDialogFallbackText,children:(H||"Category")+` image ${O+1}`})}),l.jsxs(P,{sx:t.categoryImageDialogFooterRow,children:[l.jsx(Ze,{variant:"outlined",size:"small",onClick:pe,disabled:O<=0,sx:t.categoryImageDialogNavButton,children:"Previous"}),l.jsxs(W,{sx:t.categoryImageDialogCounterText,children:[O+1," of ",X]}),l.jsx(Ze,{variant:"outlined",size:"small",onClick:ee,disabled:O>=X-1,sx:t.categoryImageDialogNavButton,children:"Next"})]})]})})]})]})}const tN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAKpJREFUeAHFko0NgkAMhR+EARjhRtAJZATcQDfRCRxBRnAE3eBGYJP6qsU0F4FLIOFLyv20r6TtAYaItDLPHY7S7WtaV4xA3xkJJRawSFzph7U0XA60wP1pJHbwt1wjK+kLHm487Gg98qgtfq9isYZkQ0nH5blOwzaZc2TGC77dnGOYhsZ+aj7aX0OO2IRXHdXvVjOmNXn++askpplIEJC8BS9+YJoXLfqLN/KniiDmJ/GnAAAAAElFTkSuQmCC";function nN({sx:e={},...t}){return l.jsx(P,{component:"img",src:tN,alt:"",role:"presentation",sx:{width:"13.33px",height:"13.33px",display:"block",objectFit:"contain",boxSizing:"border-box",...e},...t})}const rN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAMlJREFUeAGdUgERwyAMDLsJqIRKQEIlVAIOhoPVQSV0Diahc7A6QMJwwMLt2bGMtlxz98cR8n+fBKKdCCFcGC584skwVBNcOIGgcdcQsntEy7gxGpFvIdDQkUhuzoWHlo+O4RkPpZRf0WgkcWS80OsMe72oMTEviZPsEQO6i7tLA/whCnUtxIvEa66eFSb7JmtHS7vuL0nflQwQsMXVxG9DB+PEWJjfFUSj9XGTDUsO+025fq2dksCA4hlnFVFlAnEgkeD5Vy1UEW+PYQ9FgjWUTgAAAABJRU5ErkJggg==";function oN({sx:e={},...t}){return l.jsx(P,{component:"img",src:rN,alt:"",role:"presentation",sx:{width:"13.26px",height:"13.24px",display:"block",objectFit:"contain",boxSizing:"border-box",...e},...t})}const iN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAANBJREFUeAGtU4ERwiAMDL0O4AbiJDKCKziJdBI7CpuIG7gBfir0Igbqnf5dSvr9hiQEoh9h+JFSslgugo/GmEkKoblW/07QxCG/eJgTHy194i58VzYcBRkQ8UytVI3xIpu5+AN1wKXl8poYGykWeI4D0zLT9MuuJ9gt+3NpHnMwV+u1EnakN9FqfLcH30ALELNp/KMmlyaiNo9lz8cIC/APtRD8ykl9OQVLr27X8KRj1Y/UAY8qbUAGcGLet+7CERbYkXch0HuKNeTgsHaif+AJ5CBPR1lDq+wAAAAASUVORK5CYII=";function sN({sx:e={},...t}){return l.jsx(P,{component:"img",src:iN,alt:"",role:"presentation",sx:{width:"13.33px",height:"13.33px",display:"block",objectFit:"contain",boxSizing:"border-box",...e},...t})}const uu=640,by=({onPromoPrint:e,onCreateCatalog:t,onOsaRequest:n,selectedProducts:r,selectedCategories:i,containerRef:s})=>{const{universal:a,floatingAction:c}=tt(),d=r||[],p=i||[],u=d.length>0,h=p.length>0,m=_t("(max-width:450px)"),[y,g]=N.useState(null),f=N.useRef(null),b=N.useRef(null);if(N.useEffect(()=>{const C=s?.current;if(!C){queueMicrotask(()=>g(null));return}const I=()=>{f.current&&cancelAnimationFrame(f.current),f.current=requestAnimationFrame(()=>{f.current=null,g(C.getBoundingClientRect())})};I();const _=new ResizeObserver(I);return _.observe(C),window.addEventListener("resize",I),()=>{_.disconnect(),window.removeEventListener("resize",I),f.current&&cancelAnimationFrame(f.current)}},[s]),N.useEffect(()=>{const C=s?.current,I=b.current;if(!C||!I)return;const _=C.style.paddingBottom,F=()=>{const V=parseFloat(window.getComputedStyle(C).paddingBottom)||0,U=Math.ceil(I.getBoundingClientRect().height)+16,D=Math.max(V,U);C.style.paddingBottom=`${D}px`};F();const j=new ResizeObserver(F);return j.observe(I),window.addEventListener("resize",F),()=>{j.disconnect(),window.removeEventListener("resize",F),C.style.paddingBottom=_}},[s,m,u,h]),!u&&!h)return null;const x=p.length,E=new Set(p.map(C=>(C?.categoryName||C?.name||"").toString().trim()).filter(Boolean)),w=d.filter(C=>{const I=(C.categoryName||C.category||"").toString().trim();return I?!E.has(I):!0}),S=w.length,T=w.map(C=>(C.categoryName||C.category||"").toString().trim()).filter(Boolean),v=Array.from(new Set(T)),k=v.length===1?v[0]:null;let M;const B=S>0;if(h&&B){const C=`${x} categor${x===1?"y":"ies"}`,I=`product${S===1?"":"s"}`;k?M=`${C} + ${S} ${I} of ${k} category`:M=`${C} + ${S} ${I}`}else h?M=`${x} categor${x===1?"y":"ies"} selected`:M=`${S} item${S===1?"":"s"} selected`;const z=y?Math.min(uu,y.width):uu,$=y?{left:y.left+(y.width-z)/2,width:z}:{left:"50%",transform:"translateX(-50%)",width:"100%",maxWidth:uu};return l.jsxs(P,{ref:b,sx:{...c.bar,bottom:"max(8px, env(safe-area-inset-bottom))",...$},children:[l.jsx(W,{sx:c.countTypography,children:M}),l.jsx(P,{sx:c.flexSpacer}),l.jsxs(P,{sx:c.actionsRow,children:[(u||h)&&l.jsxs(P,{component:"button",onClick:e,sx:{...c.actionCard,...a.getUniversalBlueButtonSx(),width:139},children:[l.jsx(P,{sx:c.iconCard,children:l.jsx(nN,{sx:c.iconImg})}),l.jsx(W,{component:"span",sx:c.actionText,children:m?"Promo":"Promo Print"})]}),l.jsxs(P,{component:"button",onClick:t,sx:{...c.actionCard,...a.getUniversalBlueButtonSx(),width:158},children:[l.jsx(P,{sx:c.iconCard,children:l.jsx(oN,{sx:c.iconImg})}),l.jsx(W,{component:"span",sx:c.actionText,children:m?"Catalog":"Create Catalog"})]}),l.jsxs(P,{component:"button",onClick:n,sx:{...c.actionCard,...a.getUniversalBlueButtonSx(),width:147},children:[l.jsx(P,{sx:c.iconCard,children:l.jsx(sN,{sx:c.iconImg})}),l.jsx(W,{component:"span",sx:c.actionText,children:m?"OSA":"OSA Request"})]})]})]})},xy=yt(l.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function pu(e){return!e||typeof e!="string"?"":e.trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"")}function vy({onClose:e,selectedProducts:t=[],selectedCategories:n=[],open:r,stores:i=[],onCreateSuccess:s}){const a=fn(),{createdById:c,createdByName:d,createCatalogLoading:p,createCatalogError:u}=Ye(O=>O.dashboard),h=Array.isArray(t)?t.length:0,m=Array.isArray(n)?n.length:0,y=h+m,[g,f]=N.useState("Christmas Super Sale 2025"),[b]=N.useState(""),[x,E]=N.useState(["all"]),[w,S]=N.useState(!1),T=N.useRef(null),[v,k]=N.useState(null),[M,B]=N.useState(280),z=N.useMemo(()=>pu(g),[g]),$=N.useMemo(()=>z?`/${z}`:"",[z]);N.useEffect(()=>{r&&a(Of())},[r,a]),N.useEffect(()=>{u&&a(Of())},[g,z,u,a]);const C=N.useMemo(()=>i.filter(O=>O.id!=="all"),[i]),I=x.includes("all")||x.length===0,_=N.useMemo(()=>I?C.map(O=>O.storeCode).filter(Boolean):x.filter(O=>O!=="all").map(O=>C.find(L=>L.id===O)?.storeCode).filter(Boolean),[I,x,C]),F=O=>{E(L=>{const H=L.filter(X=>X!=="all");if(H.includes(O)){const X=H.filter(te=>te!==O);return X.length===0?["all"]:X}const Y=[...H,O];return Y.length===C.length?["all"]:Y})},j=()=>{const O=g?.trim();if(!O)return;const L=(t||[]).map((Y,X)=>({productId:Y.catalogProductId||Y.productId||Y.id,sorting:X+1})).filter(Y=>Y.productId),H=(n||[]).map(Y=>typeof Y=="string"?Y:Y?.categoryName??Y?.name).filter(Boolean);a(ta({name:O,slug:z||pu(O),description:b?.trim()||"",storeCode:_,createdById:c,createdByName:d||"Admin",products:L,categories:H})).unwrap().then(()=>{const Y=z||pu(O);typeof s=="function"&&s(Y),e()}).catch(()=>{})},{createCatalog:V,universal:R}=tt(),U=R.globalCardContainerBg,D=R.getGlobalCheckboxStyles({uncheckedBorder:"#D0D5DD",checkedBorder:"#1976d2",checkedColor:"#1976d2"});return l.jsxs(ko,{open:r,onClose:e,maxWidth:!1,PaperProps:{sx:V.dialog},BackdropProps:{sx:{backdropFilter:"blur(6px)",backgroundColor:"rgba(0,0,0,0.15)"}},children:[l.jsx(Oo,{sx:{p:0},children:l.jsxs(P,{sx:V.header,children:[l.jsxs(W,{sx:V.headerTitle,children:["Create Catalog of ",y," ",m>0&&h===0?y===1?"Category":"Categories":"Items"]}),l.jsx(P,{component:"button",onClick:e,sx:V.clearIconCard,"aria-label":"Close",children:l.jsx(xy,{sx:{fontSize:16,color:"#454545"}})})]})}),l.jsxs(Qi,{sx:V.content,children:[l.jsxs(P,{sx:V.fieldBlock,children:[l.jsx(W,{sx:V.fieldLabel,children:"Catalog Name"}),l.jsx("input",{type:"text",value:g,onChange:O=>f(O.target.value),style:V.input})]}),l.jsxs(P,{sx:V.fieldBlock,children:[l.jsx(W,{sx:V.fieldLabel,children:"Catalog Link"}),l.jsxs("div",{style:{position:"relative",width:"100%"},children:[l.jsx("input",{type:"text",readOnly:!0,value:$,style:{...V.input,...V.inputReadOnly,paddingRight:36}}),$&&l.jsx(cu,{color:"green",fontSize:"18px",style:{position:"absolute",right:12,top:"50%",transform:"translateY(-50%)"}})]})]}),l.jsxs(P,{sx:V.fieldBlock,children:[l.jsx(W,{sx:V.fieldLabel,children:"For These Stores"}),l.jsxs(P,{sx:{width:"100%"},children:[l.jsxs(P,{ref:T,sx:V.storeDropdown,onClick:()=>{const O=!w;S(O),O&&T.current?(k(T.current),B(T.current.offsetWidth??280)):O||k(null)},children:[l.jsx(P,{sx:{display:"flex",alignItems:"center",mr:1},children:l.jsx(au,{sx:{width:20,height:20}})}),l.jsx("span",{style:{fontWeight:700,color:"#222",marginRight:4},children:I?"All Stores":`${x.length} store(s) selected`}),l.jsx("span",{style:{color:"#454545",fontWeight:400,fontSize:12,marginLeft:4},children:` out of ${C.length} stores`}),l.jsx(dr,{sx:{color:"#454545",ml:"auto"}})]}),l.jsxs(is,{open:w,onClose:()=>{S(!1),k(null)},anchorEl:v,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{sx:{mt:1,minWidth:M,maxHeight:280,border:"1px solid #F1F1F1",borderRadius:"6px",boxShadow:"0 4px 16px rgba(0,0,0,0.08)"}}},MenuListProps:{sx:{maxHeight:120,overflowY:"auto",py:0},disablePadding:!0},children:[l.jsxs(P,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:I?700:400,color:I?"#222":"#444",background:I?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>{E(["all"]),S(!1)},children:[l.jsx(Nt,{size:"small",checked:I,sx:{...D.checkboxSx,p:.5,mr:1},icon:l.jsx("span",{style:D.iconSpan}),checkedIcon:l.jsx("span",{style:D.checkedIconSpan,children:l.jsx(dn,{sx:D.tickIconSx})})}),"All Stores"]}),C.map(O=>{const L=x.includes(O.id);return l.jsxs(P,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:L?700:400,color:L?"#222":"#444",background:L?"#f5f7fa":U,"&:hover":{background:"#f5f7fa"}},onClick:()=>F(O.id),children:[l.jsx(Nt,{size:"small",checked:L,sx:{...D.checkboxSx,p:.5,mr:1},icon:l.jsx("span",{style:D.iconSpan}),checkedIcon:l.jsx("span",{style:D.checkedIconSpan,children:l.jsx(dn,{sx:D.tickIconSx})})}),O.name]},O.id)})]})]})]}),u&&l.jsx(W,{color:"error",fontSize:14,sx:{mb:2},children:u}),l.jsx(P,{sx:{display:"flex",justifyContent:"flex-end"},children:l.jsx(Ze,{variant:"contained",color:"primary",disabled:p||!g?.trim()||y===0,onClick:j,sx:V.createButton,children:p?"Creating...":"Create"})})]})]})}function Sy({onClose:e,open:t,stores:n=[],selectedProducts:r=[],selectedCategories:i=[],onSuccess:s}){const{universal:a}=tt(),c=a.globalCardContainerBg,d=a.getGlobalCheckboxStyles({uncheckedBorder:"#D0D5DD",checkedBorder:"#1976d2",checkedColor:"#1976d2"}),p=fn(),{createOsaRequestLoading:u,createOsaRequestError:h}=Ye(M=>M.dashboard),[m,y]=N.useState(["all"]),[g,f]=N.useState(!1),b=N.useMemo(()=>n.filter(M=>M.id!=="all"&&M.storeCode!=="all"),[n]),x=m.includes("all")||m.length===0,E=N.useMemo(()=>x?b.map(M=>M.storeCode).filter(Boolean):m.filter(M=>M!=="all").map(M=>b.find(B=>B.id===M)?.storeCode).filter(Boolean),[x,m,b]),w=N.useMemo(()=>(r||[]).map(M=>M.catalogProductId||M.productId||M.id).filter(Boolean).map(String),[r]),S=N.useMemo(()=>(Array.isArray(i)?i:[]).filter(Boolean).map(String),[i]),T=E.length>0&&(w.length>0||S.length>0);N.useEffect(()=>{t&&p(zS())},[t,p]);const v=M=>{y(B=>{const z=B.filter(C=>C!=="all");if(z.includes(M)){const C=z.filter(I=>I!==M);return C.length===0?["all"]:C}const $=[...z,M];return $.length===b.length?["all"]:$})},k=()=>{T&&p(ra({storeCodes:E,products:w,categories:S})).unwrap().then(()=>{typeof s=="function"&&s(),e()}).catch(()=>{})};return l.jsxs(ko,{open:t,onClose:e,maxWidth:"sm",fullWidth:!0,disableScrollLock:!0,PaperProps:{sx:{borderRadius:3,p:4}},BackdropProps:{sx:{backdropFilter:"blur(6px)",backgroundColor:"rgba(0,0,0,0.15)"}},children:[l.jsx(Oo,{children:l.jsxs(P,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[l.jsx(W,{variant:"h6",fontWeight:600,ml:-3,children:"New OSA Request"}),l.jsx(it,{onClick:e,size:"small","aria-label":"Close",children:l.jsx(hy,{})})]})}),l.jsx(W,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"For These Stores"}),l.jsxs(P,{sx:{position:"relative",mb:3},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",border:"1px solid #e0e0e0",borderRadius:"8px",px:2,py:1.2,minWidth:180,cursor:"pointer",userSelect:"none",fontWeight:500,background:c},onClick:()=>f(M=>!M),children:[l.jsx(P,{sx:{display:"flex",alignItems:"center",mr:1},children:l.jsx(au,{size:12,style:{color:"#555",marginRight:4}})}),l.jsx("span",{style:{fontWeight:700,color:"#222",marginRight:4},children:x?"All Stores":`${m.length} store(s) selected`}),l.jsx("span",{style:{color:"#454545",fontWeight:400,fontSize:12,marginLeft:4},children:`out of ${b.length} stores`}),l.jsx(dr,{sx:{color:"#888",ml:"auto"}})]}),g&&l.jsxs(P,{sx:{position:"absolute",left:0,right:0,top:"100%",zIndex:10,bgcolor:c,border:"1px solid #e0e0e0",borderRadius:"8px",boxShadow:"0 4px 16px rgba(0,0,0,0.08)",mt:1,maxHeight:220,overflowY:"auto"},children:[l.jsxs(P,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:x?700:400,color:x?"#222":"#444",background:x?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>{y(["all"]),f(!1)},children:[l.jsx(Nt,{size:"small",checked:x,sx:{...d.checkboxSx,p:.5,mr:1},icon:l.jsx("span",{style:d.iconSpan}),checkedIcon:l.jsx("span",{style:d.checkedIconSpan,children:l.jsx(dn,{sx:d.tickIconSx})})}),"All Stores"]}),b.map(M=>{const B=m.includes(M.id);return l.jsxs(P,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:B?700:400,color:B?"#222":"#444",background:B?"#f5f7fa":c,"&:hover":{background:"#f5f7fa"}},onClick:()=>v(M.id),children:[l.jsx(Nt,{size:"small",checked:B,sx:{...d.checkboxSx,p:.5,mr:1},icon:l.jsx("span",{style:d.iconSpan}),checkedIcon:l.jsx("span",{style:d.checkedIconSpan,children:l.jsx(dn,{sx:d.tickIconSx})})}),M.name]},M.id)})]})]}),h&&l.jsx(W,{color:"error",fontSize:14,sx:{mb:2},children:h}),l.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",mb:3},children:l.jsx(Ze,{variant:"contained",color:"primary",disabled:!T||u,onClick:k,sx:{...a.getUniversalBlueButtonSx(),minWidth:140,height:48,borderRadius:2,fontWeight:600,fontSize:16,boxShadow:"none"},children:u?"Sending...":"Send Request"})})]})}const qn=(e,t=0)=>{const n=Number(e);return Number.isFinite(n)?n:t},Yn=()=>{const e=new Date,t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return{validTo:`${t}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}`,ppd:`${r}/${n}/${t}`}},gs=e=>{const t=e?.productName||e?.name||"Product",n=e?.productCode||e?.sku||e?.productSku||t,r=e?.originalPrice??e?.mrp??e?.price??0,i=e?.price??e?.discountPrice??0,s=qn(r,0),a=qn(i,0),c=s>a&&s>0?Math.round((s-a)/s*100):5,d=Math.max(0,s-a);return{productName:t,productCode:n,mrp:s,discountPrice:a,discount:c,saveAmount:d}},aN=(e,t,n={})=>{const{productName:r,mrp:i,discountPrice:s}=gs(e),a=Math.max(0,qn(i,0)-qn(s,0)),c=n.validTo||Yn().validTo,d=n.ppd||Yn().ppd;return`
|
|
236
236
|
<div class="sticker design-1">
|
|
237
237
|
${t.discountPrice?`
|
|
238
238
|
<div class="our-price-header">SAVE</div>
|
|
@@ -248,7 +248,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
248
248
|
<div class="valid-from">VALID TO: ${c}</div>
|
|
249
249
|
<div class="valid-to">PPD: ${d}</div>
|
|
250
250
|
</div>
|
|
251
|
-
`},
|
|
251
|
+
`},lN=(e,t,n={})=>{const{productName:r,mrp:i,discount:s}=gs(e),a=n.validTo||Yn().validTo,c=n.ppd||Yn().ppd,d=s.toFixed(2);return`
|
|
252
252
|
<div class="sticker design-2">
|
|
253
253
|
${t.percentOff?`
|
|
254
254
|
<div class="main-offer-block">
|
|
@@ -263,7 +263,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
263
263
|
<div class="valid-from">(Valid till: ${a})</div>
|
|
264
264
|
<div class="valid-to">(PPD: ${c})</div>
|
|
265
265
|
</div>
|
|
266
|
-
`},
|
|
266
|
+
`},cN=(e,t,n={})=>{const{productName:r,discountPrice:i}=gs(e),s=n.validTo||Yn().validTo,a=n.ppd||Yn().ppd;return`
|
|
267
267
|
<div class="sticker design-3">
|
|
268
268
|
${t.discountPrice?`
|
|
269
269
|
<div class="our-price-header">OUR PRICE</div>
|
|
@@ -273,7 +273,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
273
273
|
<div class="valid-from">[ValidTo: ${s}]</div>
|
|
274
274
|
<div class="valid-to">[PPD: ${a}]</div>
|
|
275
275
|
</div>
|
|
276
|
-
`},
|
|
276
|
+
`},dN=(e,t,n={})=>{const{productCode:r,mrp:i,discountPrice:s,saveAmount:a}=gs(e),c=n.validTo||Yn().validTo,d=n.ppd||Yn().ppd,p=Math.floor(s),h=Math.round((s-p)*100).toString().padStart(2,"0"),m=Math.floor(a),g=Math.round((a-m)*100).toString().padStart(2,"0"),f=Math.floor(i);return`
|
|
277
277
|
<div class="sticker design-4">
|
|
278
278
|
${t.discountPrice?`
|
|
279
279
|
<div class="our-price-header">OUR PRICE</div>
|
|
@@ -299,7 +299,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
299
299
|
<div class="valid-from">[VALIDITY: ${c}]</div>
|
|
300
300
|
<div class="valid-to">[PPID: ${d}]</div>
|
|
301
301
|
</div>
|
|
302
|
-
`},
|
|
302
|
+
`},uN=(e,t={})=>{const{productName:n,mrp:r,discountPrice:i}=gs(e),s=qn(i,0),a=r>s?Math.floor(r*1.17):Math.floor(s*1.17),c=r>s?Math.round((r-s)/r*100):6;return`
|
|
303
303
|
<div class="sticker design-5">
|
|
304
304
|
<div class="top-section">
|
|
305
305
|
<div class="left-column">
|
|
@@ -333,7 +333,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
333
333
|
<div class="savings-message">SAVE UPTO ${c}% EXTRA MONTHLY WITH MY SPENCERS REWARDS</div>
|
|
334
334
|
</div>
|
|
335
335
|
</div>
|
|
336
|
-
`},wy=e=>{const t={design1:
|
|
336
|
+
`},wy=e=>{const t={design1:aN,design2:lN,design3:cN,design4:dN,design5:uN};return t[e]||t.design1},pN=({selectedProducts:e,selectedDesign:t,itemsToShow:n})=>{const r=wy(t),i=Yn();return`
|
|
337
337
|
<!DOCTYPE html>
|
|
338
338
|
<html>
|
|
339
339
|
<head>
|
|
@@ -968,7 +968,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
968
968
|
<\/script>
|
|
969
969
|
</body>
|
|
970
970
|
</html>
|
|
971
|
-
`},
|
|
971
|
+
`},fN=({selectedProducts:e,selectedDesign:t,itemsToShow:n})=>{const a=wy(t),c=Yn(),d=[];for(let u=0;u<e.length;u+=8)d.push(e.slice(u,u+8));return`
|
|
972
972
|
<!DOCTYPE html>
|
|
973
973
|
<html>
|
|
974
974
|
<head>
|
|
@@ -1577,7 +1577,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
1577
1577
|
<\/script>
|
|
1578
1578
|
</body>
|
|
1579
1579
|
</html>
|
|
1580
|
-
`},pN=({selectedProducts:e,selectedDesign:t,sheetSize:n,itemsToShow:r,copyPerItem:i=1})=>{if(!e||e.length===0){alert("No products selected for printing");return}const s=window.open("","_blank","width=800,height=600");if(!s){alert("Please allow popups to print promo designs");return}const a=i>0?i:1,c=[];e.forEach(h=>{for(let m=0;m<a;m++)c.push(h)});const d={A4:dN,A7:uN},u=(d[n]||d.A4)({selectedProducts:c,selectedDesign:t,itemsToShow:r});try{s.document.open(),s.document.write(u),s.document.close()}catch(h){console.error("Error writing to print window:",h),alert("Error generating print preview. Please check console for details.")}},fN=()=>{const e=new Date,t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return{validTo:`${t}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}`,ppd:`${r}/${n}/${t}`}},Cy=({open:e,onClose:t,selectedProducts:n=[]})=>{const r=tt(),i=r.universal.getGlobalCheckboxStyles({uncheckedBorder:"#454545",checkedBorder:"#2563EB",checkedColor:"#2563EB"}),s=l.jsx("span",{style:i.iconSpan}),a=l.jsx("span",{style:i.checkedIconSpan,children:l.jsx(dn,{sx:i.tickIconSx})}),c=N.useMemo(()=>fN(),[]),[d,p]=N.useState({productName:!0,mrp:!0,percentOff:!0,discountPrice:!0}),[u,h]=N.useState("design1"),[m,y]=N.useState(""),[g,f]=N.useState(1),[b,x]=N.useState(!1),[E,w]=N.useState(!1),S=B=>p(O=>({...O,[B]:!O[B]})),T=()=>{if(!n||n.length===0){w(!0);return}if(!m){x(!0);return}x(!1);const B=g>0?g:1;pN({selectedProducts:n,selectedDesign:u,sheetSize:m,itemsToShow:d,copyPerItem:B}),t()};N.useEffect(()=>{(e&&n&&n.length>0||!e)&&queueMicrotask(()=>w(!1))},[e,n]);const v=r.promoPrintModal,k=_t("(max-width:430px)"),M=k?{...v.dialog,width:"min(379px, calc(100vw - 32px))",maxWidth:"min(379px, calc(100vw - 32px))",height:"auto",maxHeight:"90vh"}:v.dialog,_=k?{...v.header,width:"100%",height:"auto",pt:"18px",pb:"14px",px:"10px",display:"flex",justifyContent:"space-between",alignItems:"center",boxSizing:"border-box",overflow:"visible"}:v.header,z=k?{...v.headerTitle,fontSize:"14px",lineHeight:"18px"}:v.headerTitle,F=k?{...v.sectionTitle,fontSize:"12px",lineHeight:"16px",marginBottom:"6px"}:v.sectionTitle,C=k?{...v.itemsToShowSection,width:"100%"}:v.itemsToShowSection,I=k?{...v.checkboxRow,width:"100%",gridTemplateColumns:"1fr 1fr",gap:"8px 12px"}:v.checkboxRow,$=k?{...v.middleCard,width:"100%",gap:"16px"}:v.middleCard,D=k?{...v.designSection,width:"100%"}:v.designSection,L=k?{...v.sheetSizeSection,width:"100%",gap:"6px",minHeight:52}:v.sheetSizeSection,V=k?{...v.sheetSizeHeader,width:"100%",fontSize:"12px",lineHeight:"16px",height:18}:v.sheetSizeHeader,Y=k?{...v.sheetSizeRow,width:"100%",flexDirection:"column",alignItems:"flex-start",gap:"8px"}:v.sheetSizeRow,U=k?{...v.copyPerItemRow,width:"100%",mt:0}:v.copyPerItemRow;return l.jsxs(ko,{open:e,onClose:t,maxWidth:!1,PaperProps:{sx:M},BackdropProps:{sx:{backdropFilter:"blur(4px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},children:[l.jsx(Oo,{sx:{p:0},children:l.jsxs(P,{sx:_,children:[l.jsx(W,{sx:{...z,flex:"1 1 auto",minWidth:0},children:"Promo Print"}),l.jsx(P,{component:"button",onClick:t,sx:{...v.crossIconCard,flexShrink:0,ml:"auto"},"aria-label":"Close",children:l.jsx(xy,{sx:{fontSize:16,color:"#454545"}})})]})}),l.jsx(Qi,{sx:k?{...v.content,px:"12px",pt:"6px"}:v.content,children:l.jsxs(P,{sx:$,children:[l.jsxs(P,{sx:C,children:[l.jsx(W,{sx:F,children:"Items to show"}),l.jsxs(P,{sx:I,children:[l.jsx(Cn,{control:l.jsx(Nt,{checked:d.productName,onChange:()=>S("productName"),size:"small",sx:v.checkboxSx,icon:s,checkedIcon:a}),label:"Product Name",sx:v.checkboxLabel}),l.jsx(Cn,{control:l.jsx(Nt,{checked:d.percentOff,onChange:()=>S("percentOff"),size:"small",sx:v.checkboxSx,icon:s,checkedIcon:a}),label:"Percent OFF",sx:v.checkboxLabel}),l.jsx(Cn,{control:l.jsx(Nt,{checked:d.mrp,onChange:()=>S("mrp"),size:"small",sx:v.checkboxSx,icon:s,checkedIcon:a}),label:"MRP",sx:v.checkboxLabel}),l.jsx(Cn,{control:l.jsx(Nt,{checked:d.discountPrice,onChange:()=>S("discountPrice"),size:"small",sx:v.checkboxSx,icon:s,checkedIcon:a}),label:"Discount Price",sx:v.checkboxLabel})]})]}),l.jsxs(P,{sx:D,children:[l.jsx(W,{sx:F,children:"Promo Design"}),l.jsxs(P,{sx:v.designContainer,children:[l.jsxs(P,{onClick:()=>h("design1"),sx:{...v.designCard.base,...u==="design1"?v.designCard.selected:v.designCard.unselected},children:[l.jsx(W,{sx:{...v.design1.ourPriceHeader,visibility:d.discountPrice?"visible":"hidden"},children:"SAVE"}),l.jsx(P,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:d.discountPrice?"visible":"hidden"},children:l.jsxs(P,{sx:{display:"inline-flex",alignItems:"baseline"},children:[l.jsx(W,{component:"span",sx:{...v.design1.rupeeSymbol},children:"₹"}),l.jsx(W,{component:"span",sx:{...v.design1.bigPrice},children:"1387"})]})}),l.jsxs(P,{sx:{...v.design1.bottomInfo,visibility:d.discountPrice||d.mrp?"visible":"hidden"},children:[l.jsxs(W,{sx:{...v.design1.saveAmount,visibility:d.discountPrice?"visible":"hidden"},children:["OUR PRICE: ",l.jsx(W,{component:"span",sx:v.design1.rupeeSymbolSmall,children:"₹"}),"73"]}),l.jsxs(W,{sx:{...v.design1.mrpAmount,visibility:d.mrp?"visible":"hidden"},children:["MRP: ",l.jsx(W,{component:"span",sx:v.design1.rupeeSymbolSmall,children:"₹"}),"1460"]})]}),l.jsx(W,{sx:{...v.design1.productName,visibility:d.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"}),l.jsxs(P,{sx:v.design1.dateRow,children:[l.jsxs(W,{sx:v.design1.validFromText,children:["VALID TO: ",c.validTo]}),l.jsxs(W,{sx:v.design1.validToText,children:["PPD: ",c.ppd]})]})]}),l.jsxs(P,{onClick:()=>h("design2"),sx:{...v.designCard.base,...u==="design2"?v.designCard.selected:v.designCard.unselected},children:[l.jsxs(P,{sx:v.design2.mainOfferBlock,children:[l.jsx(W,{sx:{...v.design2.offerLine,visibility:d.percentOff?"visible":"hidden"},children:"Buy 1PC @5.00% Off"}),l.jsx(W,{sx:{...v.design2.offerLine,visibility:d.percentOff?"visible":"hidden"},children:"Buy 2PC @5.00% Off"})]}),l.jsxs(W,{sx:{...v.design2.mrpBlock,visibility:d.mrp?"visible":"hidden"},children:["MRP:",l.jsx(W,{component:"span",sx:v.design2.rupeeSymbolSmall,children:"₹"}),"1460"]}),l.jsx(W,{sx:{...v.design2.productName,visibility:d.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500G COFFEE BIB"}),l.jsxs(P,{sx:v.design2.dateRow,children:[l.jsxs(W,{sx:v.design2.validFromText,children:["(Valid till: ",c.validTo,")"]}),l.jsxs(W,{sx:v.design2.validToText,children:["(PPD: ",c.ppd,")"]})]})]}),l.jsxs(P,{onClick:()=>h("design3"),sx:{...v.designCard.base,...u==="design3"?v.designCard.selected:v.designCard.unselected},children:[l.jsx(W,{sx:{...v.design3.ourPriceHeader,visibility:d.discountPrice?"visible":"hidden"},children:"OUR PRICE"}),l.jsx(P,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:d.discountPrice?"visible":"hidden"},children:l.jsxs(P,{sx:{display:"inline-flex",alignItems:"baseline"},children:[l.jsx(W,{component:"span",sx:{...v.design3.rupeeSymbol},children:"₹"}),l.jsx(W,{component:"span",sx:{...v.design3.bigPrice},children:"29"})]})}),l.jsx(W,{sx:{...v.design3.productName,visibility:d.productName?"visible":"hidden"},children:"POTATO BIG KG"}),l.jsxs(P,{sx:v.design3.dateRow,children:[l.jsxs(W,{sx:v.design3.validFromText,children:["[ValidTo: ",c.validTo,"]"]}),l.jsxs(W,{sx:v.design3.validToText,children:["[PPD: ",c.ppd,"]"]})]})]}),l.jsxs(P,{onClick:()=>h("design4"),sx:{...v.designCard.base,...u==="design4"?v.designCard.selected:v.designCard.unselected},children:[l.jsx(W,{sx:{...v.design4.ourPriceHeader,visibility:d.discountPrice?"visible":"hidden"},children:"OUR PRICE"}),l.jsx(P,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:d.discountPrice?"visible":"hidden"},children:l.jsxs(P,{sx:{display:"inline-flex",alignItems:"baseline"},children:[l.jsx(W,{component:"span",sx:{...v.design4.rupeeSymbol},children:"₹"}),l.jsx(W,{component:"span",sx:{...v.design4.priceWhole},children:"899"}),l.jsx(W,{component:"span",sx:{...v.design4.priceDecimal},children:".70"})]})}),l.jsxs(P,{sx:{...v.design4.saveMrpRow,visibility:d.discountPrice||d.mrp?"visible":"hidden"},children:[l.jsxs(W,{sx:{...v.design4.saveAmount,visibility:d.discountPrice?"visible":"hidden"},children:["SAVE: ",l.jsx(W,{component:"span",sx:v.design4.rupeeSymbolSmall,children:"₹"}),"2099.30"]}),l.jsxs(W,{sx:{...v.design4.mrpAmount,visibility:d.mrp?"visible":"hidden"},children:["MRP:",l.jsx(W,{component:"span",sx:v.design4.rupeeSymbolSmall,children:"₹"}),"2999"]})]}),l.jsx(W,{sx:{...v.design4.productCode,visibility:d.productName?"visible":"hidden"},children:"MCS-SWE-CP-SO-RG-XXL-1402A5-PuLa"}),l.jsxs(P,{sx:v.design4.dateRow,children:[l.jsxs(W,{sx:v.design4.validFromText,children:["[VALIDITY: ",c.validTo,"]"]}),l.jsxs(W,{sx:v.design4.validToText,children:["[PPID: ",c.ppd,"]"]})]})]}),l.jsxs(P,{onClick:()=>h("design5"),sx:{...v.designCard.base,...u==="design5"?v.designCard.selected:v.designCard.unselected},children:[l.jsxs(P,{sx:v.design5.topSection,children:[l.jsxs(P,{sx:v.design5.leftColumn,children:[l.jsxs(P,{sx:v.design5.rewardsLogo,children:[l.jsxs(P,{sx:v.design5.logoLine1,children:[l.jsx(W,{sx:v.design5.logoMy,children:"My"}),l.jsx(W,{sx:v.design5.logoSpencer,children:"spencers"})]}),l.jsxs(W,{sx:v.design5.logoRewards,children:["Rewa",l.jsx(W,{component:"span",sx:v.design5.rupeeSymbol1,children:"₹"}),"ds"]})]}),l.jsxs(W,{sx:{...v.design5.memberPriceLabel,visibility:d.discountPrice?"visible":"hidden"},children:["MEMBER",l.jsx("br",{}),"PRICE"]}),l.jsxs(W,{sx:{...v.design5.memberPriceValue,visibility:d.discountPrice?"visible":"hidden"},children:[l.jsx(W,{component:"span",sx:v.design5.rupeeSymbol,children:"₹"}),"99"]})]}),l.jsx(P,{sx:v.design5.verticalDivider}),l.jsxs(P,{sx:v.design5.rightColumn,children:[l.jsxs(W,{sx:{...v.design5.nonMemberPriceLabel,visibility:d.discountPrice?"visible":"hidden"},children:["NON",l.jsx("br",{}),"MEMBER",l.jsx("br",{}),"PRICE"]}),l.jsxs(W,{sx:{...v.design5.nonMemberPriceValue,visibility:d.discountPrice?"visible":"hidden"},children:[l.jsx(W,{component:"span",sx:v.design5.rupeeSymbol,children:"₹"}),"116"]})]})]}),l.jsxs(P,{sx:v.design5.middleSection,children:[l.jsx(W,{sx:{...v.design5.productName,visibility:d.productName?"visible":"hidden"},children:"MAGGI 2-MINUTE MASALA NOODLES 560G"}),l.jsxs(W,{sx:{...v.design5.mrpText,visibility:d.mrp?"visible":"hidden"},children:["MRP ",l.jsx(W,{component:"span",sx:v.design5.rupeeSymbolSmall,children:"₹"}),"120"]})]}),l.jsx(P,{sx:v.design5.horizontalDivider}),l.jsx(P,{sx:v.design5.bottomSection,children:l.jsx(W,{sx:v.design5.savingsMessage,children:"SAVE UPTO 6% EXTRA MONTHLY WITH MY SPENCERS REWARDS"})})]})]})]}),l.jsxs(P,{sx:L,children:[l.jsx(W,{sx:V,children:"Sheet Size"}),l.jsxs(P,{sx:Y,children:[l.jsx(P,{sx:v.sheetSizeGroup,children:["A4","A7"].map(B=>l.jsx(P,{onClick:()=>{y(B),x(!1)},sx:{...v.sheetSizeBtn,...m===B?v.sheetSizeBtnSelected:{}},children:l.jsx(W,{sx:m===B?{...v.sheetSizeBtnText,...v.sheetSizeBtnTextSelected,fontSize:k?"11px":void 0}:{...v.sheetSizeBtnText,fontSize:k?"11px":void 0},children:B})},B))}),l.jsxs(P,{sx:U,children:[l.jsx(W,{sx:v.copyPerItemLabel,children:"Enter Copy per item:"}),l.jsx(ps,{type:"number",value:g,onChange:B=>{const O=parseInt(B.target.value,10);!isNaN(O)&&O>0?f(O):B.target.value===""&&f(1)},inputProps:{min:1,style:{padding:"4px 8px",textAlign:"center",width:"60px"}},sx:{"& .MuiOutlinedInput-root":{height:28,width:"80px",bgcolor:"#F5F5F5"},"& .MuiOutlinedInput-input":{padding:"4px 8px",fontSize:"12px"}},size:"small"})]})]})]})]})}),l.jsxs(zd,{sx:{...v.actions,flexDirection:"column",alignItems:"flex-start"},children:[b&&l.jsx(W,{variant:"body2",sx:{color:"red",mb:.5},children:"Please select a sheet size."}),E&&l.jsx(W,{variant:"body2",sx:{color:"red",mb:.5},children:"No products selected. Please select products first."}),l.jsx(P,{sx:{...v.printButtonWrapper,alignSelf:"stretch",display:"flex",justifyContent:"flex-end"},children:l.jsx(Ze,{type:"button",onClick:T,variant:"contained",sx:v.printButton,children:"Print"})})]})]})},hN=yt([l.jsx("path",{d:"M17.59 18 19 16.59 14.42 12 19 7.41 17.59 6l-6 6z"},"0"),l.jsx("path",{d:"m11 18 1.41-1.41L7.83 12l4.58-4.59L11 6l-6 6z"},"1")],"KeyboardDoubleArrowLeft");function hs(e){return l.jsx(hN,{...e})}const gN=yt([l.jsx("path",{d:"M6.41 6 5 7.41 9.58 12 5 16.59 6.41 18l6-6z"},"0"),l.jsx("path",{d:"m13 6-1.41 1.41L16.17 12l-4.58 4.59L13 18l6-6z"},"1")],"KeyboardDoubleArrowRight");function gs(e){return l.jsx(gN,{...e})}const mN=()=>{const e=fn(),t=Lt(),n=zt(),r=tt(),i=n.state?.catalogCreated&&n.state?.catalogSlug?{catalogSlug:n.state.catalogSlug}:null,s=()=>{t(n.pathname,{replace:!0,state:{}})},a=r.productDetail,[c,d]=N.useState({category:"all",status:"all",stock:"all",search:"",store:[],minOsa:null,maxOsa:null,sortBy:null,sortOrder:null,order:null}),{integrationData:p,companyId:u,loading:h,categoriesLoading:m,categoriesFetchSettled:y,error:g}=Ye(fe=>fe.dashboard),f=N.useMemo(()=>p&&typeof p=="object"&&Object.keys(p).length>0?{matched:!0,error:"",apiResponse:p,loading:!1}:{matched:!1,error:"No active integration found",apiResponse:null,loading:!1},[p]),b=Ye(fe=>fe.dashboard),{categoryList:x=[],stores:E=[],categoryPagination:w={}}=b||{},S=x,{currentPage:T=1,limit:v=10,totalCount:k=0,totalPages:M=1,hasNextPage:_=!1}=w,z=N.useMemo(()=>{const Oe=(Array.isArray(S)?S:[]).map(Ne=>{const Le=Ne?.totalOsa??Ne?.totalOsaValue??Ne?.osa??Ne?.totalOsaQty??null,De=Le==null?null:Number(Le);return Number.isFinite(De)?De:null}).filter(Ne=>Ne!=null&&Ne>=0);if(Oe.length===0)return;const se=Math.min(...Oe),Ce=Math.max(...Oe);return{min:se,max:Ce}},[S]),{sharedCatalogues:F=[],sharedCataloguesTotal:C=0,lastStableActiveCatalogsCount:I=null}=Ye(fe=>fe.productSettings??{}),$=N.useMemo(()=>Array.isArray(F)?F.filter(fe=>fe.status===!0).length:0,[F]),L=C>0&&F.length>=C?$:I??$,V=Array.isArray(x)&&x.length>0,Y=()=>{f.matched?t("/product-setting",{state:{tenantIntegrationMatched:!0}}):t("/product-setting",{state:{tenantIntegrationMatched:!1}})},U=N.useMemo(()=>E.length>0?E:[{id:"all",name:"All Stores",storeCode:"all"}],[E]),B=N.useCallback(fe=>{d(fe)},[d]),O=N.useCallback(()=>{const Oe=c?.sortBy==="categoryName"&&c?.sortOrder==="asc"?"desc":"asc";d({...c,sortBy:"categoryName",sortOrder:Oe})},[c]),j=c?.sortBy==="categoryName"&&c?.sortOrder==="asc"?180:0,H=N.useCallback((fe={})=>{const Oe=Array.isArray(c.store)?c.store:[],se={...fe};if(Oe.length>0&&!Oe.includes("all")){const Ce=Oe.map(Ne=>E.find(De=>De.id===Ne)?.storeCode).filter(Boolean);Ce.length>0&&(se.storeCode=Ce[0])}return c.search!=null&&String(c.search).trim()!==""&&(se.search=String(c.search).trim()),c.status==="active"&&(se.status=!0),c.status==="inactive"&&(se.status=!1),c.stock==="inStock"&&(se.inStock=!0),c.stock==="outOfStock"&&(se.inStock=!1),c.minOsa!=null&&c.minOsa!==""&&(se.minOsa=c.minOsa),c.maxOsa!=null&&c.maxOsa!==""&&(se.maxOsa=c.maxOsa),c.sortBy&&(c.sortOrder==="asc"||c.sortOrder==="desc")?(se.sortBy=c.sortBy,se.order=c.sortOrder==="asc"?"ASC":"DESC"):c.sortBy&&typeof c.order=="string"&&c.order&&(se.sortBy=c.sortBy,se.order=c.order),se},[c.store,c.search,c.status,c.stock,c.minOsa,c.maxOsa,c.order,c.sortBy,c.sortOrder,E]),G=N.useRef(null);N.useEffect(()=>{if(!u)return;const fe=H({page:T,limit:v}),Oe=JSON.stringify(fe);G.current!==Oe&&(G.current=Oe,e(Mn(fe)))},[u,T,v,H,e]);const X=fe=>{const Oe=H({page:fe,limit:v});e(Mn(Oe))},te=fe=>{const Oe=H({page:1,limit:fe});e(Mn(Oe))},[le,ce]=N.useState(!1);N.useEffect(()=>{!u&&!le&&!h?e(ui()).finally(()=>{ce(!0)}):u&&queueMicrotask(()=>ce(!0))},[e,u,le,h]);const ae=N.useRef(null),Z=N.useRef(n.pathname),R=N.useRef(null);N.useEffect(()=>{n.pathname==="/"&&e(If())},[e,n.pathname]),N.useEffect(()=>{u&&u!==ae.current&&(ae.current=u,e(Qt(u)),e(Mn({page:1,limit:10})),e(pi()),e(di()),e(hn({page:1})))},[e,u]),N.useEffect(()=>{const fe=Z.current;Z.current=n.pathname;const Oe=u&&n.pathname==="/"&&fe!=="/",se=u&&n.pathname==="/"&&!!n.state?.catalogCreated;(Oe||se)&&(e(hn({page:1})),e(Mn(H({page:T,limit:v}))),e(di()))},[n.pathname,n.state?.catalogCreated,u,e,H,T,v]),N.useEffect(()=>{if(!u||C<=0)return;(Array.isArray(F)?F.length:0)<C&&e(hn({page:1,limit:C}))},[u,C,F?.length,e,F]);const[q,ie]=N.useState(Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories:[]),[Q,pe]=N.useState(Array.isArray(n.state?.selectedProducts)?n.state.selectedProducts:[]),[K,ve]=N.useState(()=>Array.isArray(n.state?.pinnedCategoryNames)?n.state.pinnedCategoryNames.map(fe=>String(fe).trim()).filter(Boolean):Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories.map(fe=>(fe?.categoryName??fe?.name??"").toString().trim()).filter(Boolean):[]),be=N.useRef(q),_e=N.useRef(K),$e=N.useRef(Q);N.useEffect(()=>{be.current=q},[q]),N.useEffect(()=>{_e.current=K},[K]),N.useEffect(()=>{$e.current=Q},[Q]);const Ae=N.useMemo(()=>{const fe=Array.isArray(Q)?Q:[],Oe=new Set;return fe.forEach(se=>{const Ce=(se?.categoryName??se?.category??"").toString().trim();Ce&&Oe.add(Ce)}),Array.from(Oe)},[Q]),de=fe=>{const Oe={category:c.category,status:c.status,stock:c.stock,search:c.search,store:c.store};t(`/category?categoryName=${encodeURIComponent(fe.name||fe.categoryName)}`,{state:{filters:Oe,selectedCategories:q,selectedProducts:Q,pinnedCategoryNames:K}})},[qe,He]=N.useState(!1),[ue,re]=N.useState(!1),[xe,Se]=N.useState(!1),[we,me]=N.useState([]),ge=N.useCallback((fe,Oe={})=>{const se=Array.isArray(c.store)?c.store:[],Ce={page:1,limit:5e3,...Oe};if(fe&&String(fe).trim()!==""&&(Ce.categoryName=String(fe).trim()),se.length>0&&!se.includes("all")){const Ne=se.map(Le=>E.find(ut=>ut.id===Le)?.storeCode).filter(Boolean);Ne.length>0&&(Ce.storeCode=Ne.join(","))}return c.search!=null&&String(c.search).trim()!==""&&(Ce.search=String(c.search).trim()),Ce},[c.store,c.search,E]),Re=N.useCallback(async()=>{const fe=(Array.isArray(q)?q:[]).map(Ne=>(Ne?.categoryName??Ne?.name??"").toString().trim()).filter(Boolean),Oe=Array.isArray(Q)?Q:[],se={};Oe.forEach(Ne=>{const Le=(Ne?.categoryName??Ne?.category??"").toString().trim();Le&&(se[Le]||(se[Le]=[]),se[Le].push(Ne))});const Ce=new Set(Object.keys(se));if(fe.length===0&&Oe.length===0){me([]),Se(!0);return}try{const Ne=[];for(const st of fe){const Rt=se[st];if(Rt&&Rt.length>0)Ne.push(Rt);else{const $t=ge(st),Me=await e(ea($t)).unwrap().catch(()=>({})),un=Array.isArray(Me?.data)?Me.data:Array.isArray(Me?.products)?Me.products:Array.isArray(Me)?Me:[];Ne.push(un)}}fe.forEach(st=>Ce.delete(st)),Ce.forEach(st=>{se[st]?.length&&Ne.push(se[st])});const Le=Ne.flat().filter(Boolean),De=new Set,ut=Le.map(st=>({...st,catalogProductId:st?.productId??st?.catalogProductId??st?.id,id:st?.id||st?.sku||st?.productName})).filter(st=>{const Rt=(st?.productId||st?.id||st?.sku||st?.productName||"").toString();return!Rt||De.has(Rt)?!1:(De.add(Rt),!0)});me(ut),Se(!0)}catch{me([]),Se(!0)}},[e,Q,q,ge]),ze=N.useCallback(fe=>{const Oe=fe?.categoryName??fe?.name??"",se=Oe,Ce=be.current.some(Le=>(Le?.categoryName??Le?.name)===Oe),Ne=!!Oe&&_e.current.includes(Oe);if(Ce||Ne){ve(Le=>Le.filter(De=>De!==Oe)),Ce?(pe(Le=>!Array.isArray(Le)||!se?Le||[]:Le.filter(De=>(De?.categoryName??De?.category??"").toString().trim()!==se)),ie(Le=>Le.filter(De=>(De?.categoryName??De?.name)!==Oe))):pe(Le=>!Array.isArray(Le)||!se?Le||[]:Le.filter(De=>(De?.categoryName??De?.category??"").toString().trim()!==se));return}Oe&&ve(Le=>[...new Set([...Le,Oe])]),ie(Le=>[...Le,fe])},[]),nt=le&&g&&!u,{setTopbarProps:kt}=$o()||{};return N.useEffect(()=>{if(kt)return nt?(kt({hide:!0}),()=>kt({})):(kt({filters:c,onFilterChange:B,styles:a.topBar,stores:U,tenantStatus:f,hasProducts:V,filterMode:"home",priceRange:z,onSortToggle:O,sortIconRotationDeg:j}),()=>kt({}))},[kt,nt,c,B,a.topBar,U,f,V,z,O,j]),l.jsxs(l.Fragment,{children:[i&&l.jsx(q2,{catalogSlug:i.catalogSlug,onClose:s}),l.jsx(P,{sx:nt?{marginTop:0}:V?a.contentWrapper??{marginTop:0,display:"flex",flexDirection:"column",alignItems:"center"}:{marginTop:0},children:nt?l.jsx(lu,{handleStartSyncing:Y,loading:!1,sessionExpired:!0}):!le&&!u?l.jsx(zo,{text:"Fetching",fullScreen:!0}):m&&!V?l.jsx(zo,{text:"Fetching Categories",fullScreen:!0}):V?l.jsx(P,{sx:a.root,children:l.jsxs(Ut,{ref:R,maxWidth:"lg",sx:{px:{xs:1,sm:2,md:4}},children:[l.jsx(my,{productState:b,categoryCount:x.length,activeCatalogsCount:L,onManageClick:()=>t("/catalogs/manage-shared"),onReportClick:()=>{t("/osa")}}),x.length>0?l.jsxs(l.Fragment,{children:[l.jsx(J2,{categoryData:S,styles:a,onView:de,selectedCategories:q,selectedProducts:Q,pinnedCategoryNames:K,categoryNamesFromProductSelection:Ae,onToggleCategory:ze,totalCategoryCount:k,onClearAllCategories:()=>{ie([]),ve([]),pe([])}}),l.jsx(by,{containerRef:R,selectedCategories:q,selectedProducts:Q,onPromoPrint:Re,onCreateCatalog:()=>He(!0),onOsaRequest:()=>re(!0)}),l.jsx(Cy,{open:xe,onClose:()=>{Se(!1),me([])},selectedProducts:we},xe?"open":"closed"),l.jsx(vy,{open:qe,onClose:()=>He(!1),stores:U,selectedProducts:Q,selectedCategories:q,onCreateSuccess:fe=>{ie([]),pe([]),He(!1),fe&&t("/",{state:{catalogCreated:!0,catalogSlug:fe}})}}),l.jsx(Sy,{open:ue,onClose:()=>re(!1),stores:U,selectedProducts:Q,selectedCategories:q.map(fe=>fe?.categoryName??fe?.name).filter(Boolean),onSuccess:()=>{ie([]),pe([]),ve([])}}),k>0&&(()=>{const fe=r?.categoryTablePagination??r?.universal?.globalPaginationStyles??{};return l.jsxs(P,{sx:{...fe.wrapper||{},width:"100%",marginLeft:"auto",marginRight:0},children:[l.jsxs(P,{sx:fe.resultsPerPageBox,children:[l.jsx(W,{component:"span",sx:fe.resultsPerPageText,children:"Results per page"}),l.jsx(cn,{value:v,onChange:Oe=>te(Number(Oe.target.value)),IconComponent:dr,variant:"standard",disableUnderline:!0,sx:fe.select,children:[5,10,20,50].map(Oe=>l.jsx(et,{value:Oe,children:Oe},Oe))})]}),l.jsxs(P,{sx:fe.navBox,children:[l.jsx(it,{size:"small",disabled:T<=1,onClick:()=>X(1),sx:fe.iconButton,title:"First page",children:l.jsx(hs,{sx:fe.paginationIcon})}),l.jsx(it,{size:"small",disabled:T<=1,onClick:()=>X(T-1),sx:fe.iconButton,title:"Previous page",children:l.jsx(Kr,{sx:fe.paginationIcon})}),l.jsx(W,{component:"span",sx:fe.pageText,children:k===0?"0 of 0":`${(T-1)*v+1}-${Math.min(T*v,k)} of ${k}`}),l.jsx(it,{size:"small",disabled:!_||T>=M,onClick:()=>X(T+1),sx:fe.iconButton,title:"Next page",children:l.jsx(Mt,{sx:fe.paginationIcon})}),l.jsx(it,{size:"small",disabled:!_||T>=M,onClick:()=>X(M),sx:fe.iconButton,title:"Last page",children:l.jsx(gs,{sx:fe.paginationIcon})})]})]})})()]}):l.jsxs(P,{sx:{minHeight:280,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",bgcolor:Ct,borderRadius:2,p:3},children:[l.jsx(W,{sx:{fontSize:18,fontWeight:600,color:"#454545",mb:1},children:"No Category"}),l.jsx(W,{sx:{fontSize:14,color:"#808080"},children:c.search&&String(c.search).trim()?"No category found for your search.":"No category available."})]})]})}):l.jsx(lu,{handleStartSyncing:Y,loading:h||!V&&m||!y,sessionExpired:!1,hasIntegration:f.matched,showFetchingCategoriesLabel:!0,isHomeCategorySearch:!!(c.search&&String(c.search).trim()),isHomeCategorySearchEmpty:!!(c.search&&String(c.search).trim())&&y&&!m&&!h})})]})};function Gn({icon:e,title:t,subtitle:n,subtitleValue:r,onClick:i,selected:s,highlightStyle:a={},action:c,disabled:d=!1,customStyle:p={},titleColorWhenDisabled:u,titleColor:h,subtitleColor:m}){const{productSettingGeneral:y}=tt(),g=y,f={...g.baseCard,cursor:i&&!d?"pointer":"default",opacity:d?.5:1,...s?a:{}},b=d?u||g.titleColorDisabled:h||g.titleColorDefault,x=d?g.subtitleColorDisabled:m||g.subtitleColorDefault,E={card:{...f,...p},cardInner:g.cardInner,icon:g.icon,title:{...g.titleTypography,color:b},subtitle:{...g.subtitleTypography,color:x}};return l.jsxs(P,{onClick:d?void 0:i,sx:{...E.card,...p||{}},children:[e&&l.jsx(P,{sx:E.icon,children:e}),l.jsxs(P,{sx:E.cardInner,children:[l.jsxs(P,{children:[l.jsx(W,{sx:E.title,children:t}),n&&l.jsx(W,{sx:E.subtitle,children:r?`${r} ${n}`:n})]}),c&&l.jsx(P,{sx:g.actionWrapper,children:c})]})]})}function fu({size:e=15,color:t="#454545",...n}){return l.jsx(z2,{size:e,color:t,...n})}const yN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAASpJREFUeAGVUT1OhGAQ5b/2BPxewhISIHSyJ/AKlnbunsBsZenuCdQOgWQp7VY7C0i+0u2w00DAN2ZNYMOXyCSTGZh5897MJwgcC4Jg7/u+y6tLvELf92bXdeYsIDGJonimKMrFLCBAlwivYI1d1zX/BQzD8AYhlmV5AalrVVV3U2B5KM9xnHsCwb00Td8Nw3iRJOkcQ65R+9R1ncG+flXR9egQtBOcodFLkoQJ452vULs9rsHQv5Ityzrg4w1+wH+XilVVPQ+VINxh4AcAa+RPTdM8isPJURTRE+zQwLIs87BvjPyBGPI8X44OeLo0gdu23YNhQ1eFb09Bo+P8WVmWtW3b30iXkF+DeSFM2OQ7gnFDEbK3AscmgUVR1AgMQDYLeLSVpmkFr/gDCe+DRKwM0doAAAAASUVORK5CYII=",bN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAIpJREFUeAFVTsENwyAMxCkPnowQNmgnCB8Qv46QrtNfV+gG/YPUjtABeGSEDIAgPimJEkvnO9ln+YRYyzn38N5/xKG6gx5aa4O1Vm8DwgXzyLgyJoZm07uU8upYjETUY8H8Y4a+K6U04TyE0Ndav2zE4hZj/GN+Qcs5z8YYGFVK6bn9lLuQEklPaRdNCCms4XdYvwAAAABJRU5ErkJggg==";function xN(e){const{sx:t={},...n}=e;return l.jsxs(P,{sx:{width:20,height:20,opacity:1,position:"relative",flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",...t},...n,children:[l.jsx(P,{component:"img",src:yN,alt:"",sx:{position:"absolute",width:12.25,height:12.25,top:1.84,left:1.84,opacity:1,boxSizing:"border-box",objectFit:"contain",display:"block"}}),l.jsx(P,{component:"img",src:bN,alt:"",sx:{position:"absolute",width:5.104,height:5.104,top:13.06,left:13.06,opacity:1,boxSizing:"border-box",objectFit:"contain",display:"block"}})]})}function Ey({size:e=15,color:t="#454545",...n}){return l.jsx(D2,{size:e,color:t,...n})}function vN({size:e=15,color:t="#454545",...n}){return l.jsx(_2,{size:e,color:t,...n})}function SN({size:e=15,color:t="#454545",...n}){return l.jsx($2,{size:e,color:t,...n})}const wN=yt(l.jsx("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4z"}),"CachedSharp");function Al(e){return l.jsx(wN,{...e})}function CN({airaAiEnabled:e,setAiraAiEnabled:t,selectedCard:n,setSelectedCard:r,syncStep:i=0,syncMethod:s="",onSetupSync:a=()=>{},onSyncNow:c=()=>{},integrationData:d={},...p}){const{productSetting:u}=tt(),h=u.settingsMolecule,m=u.selectedCardHighlight,y=Lt(),g=d?.configs?.sync_frequency||"Daily",f=d?.configs?.sync_time||"10:00 AM",b=d?.type||s||"FTP",x=()=>l.jsxs(P,{sx:{width:"100%",minHeight:156,display:"flex",flexDirection:"column",gap:1.5},children:[l.jsx(P,{sx:{width:"100%",height:20,display:"flex",alignItems:"center",justifyContent:"space-between"},children:l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"6px",width:67,height:20},children:[l.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:14,lineHeight:"20px",color:"#000000"},children:"General"}),l.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:12,lineHeight:"16px",color:"#808080"},children:"2"})]})}),l.jsxs(P,{sx:{width:"100%",minHeight:124,display:"flex",flexDirection:"column",gap:"4px"},children:[l.jsx(Gn,{icon:l.jsx(fu,{size:15,color:"#454545"}),title:"Manage Shared Catalogs",onClick:()=>y("/catalogs/manage-shared"),selected:n==="catalogs",highlightStyle:m,action:l.jsx(Mt,{sx:{width:16,height:16,color:"#454545"}})}),l.jsx(Gn,{icon:l.jsx(xN,{}),title:"Aira AI",subtitle:"Make your workflows faster and smarter",onClick:()=>r&&r("aira-ai"),selected:n==="aira-ai",highlightStyle:m,action:l.jsx(P,{sx:{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(Jm,{checked:e,onChange:T=>t&&t(T.target.checked),size:"small"})})})]})]}),E=(T,v)=>l.jsxs(P,{sx:h.sectionHeaderRow,children:[l.jsxs(P,{sx:h.sectionHeaderTitleClusterSync,children:[l.jsx(W,{sx:h.sectionHeaderTitleText,children:"Sync"}),l.jsx(W,{sx:h.sectionHeaderCountText,children:"2"})]}),l.jsxs(P,{sx:{...h.syncNowControl,cursor:T?"not-allowed":"pointer",opacity:T?.5:1},onClick:T?void 0:v,children:[l.jsx(P,{sx:h.syncNowIconWrap,children:l.jsx(Al,{sx:h.refreshIconSyncNowHeader})}),l.jsx(W,{sx:h.syncNowLabel,children:"Sync Now"})]})]}),w=T=>{const v=T?g:"Daily",k=T?f:"10:00 AM",M=!T&&i===0;return l.jsxs(P,{sx:{width:"100%",minHeight:288,display:"flex",flexDirection:"column",gap:"4px"},children:[E(M,c),!T&&i===0&&l.jsx(Gn,{icon:l.jsx(Al,{sx:{width:18.33,height:15,color:"#454545"}}),title:"Setup Sync",subtitle:"Sync products",onClick:a,highlightStyle:m,action:l.jsx(Mt,{sx:{width:16,height:16,color:"#454545"}})}),!T&&i===1&&l.jsxs(l.Fragment,{children:[l.jsx(Gn,{icon:l.jsx(Al,{sx:{width:18.33,height:15,color:"#454545"}}),title:"Sync Method",subtitle:b,highlightStyle:m,action:l.jsx(Mt,{sx:{width:16,height:16,color:"#454545"}})}),l.jsx(Gn,{icon:l.jsx(fu,{size:15,color:"#454545"}),title:`Setup ${b} Details`,subtitle:"Start setup",onClick:()=>{y("/products/settings/ftp-sync",{state:{fromSyncStep:i}})},highlightStyle:m,action:l.jsx(Mt,{sx:{width:16,height:16,color:"#454545"}})})]}),i===3&&l.jsxs(l.Fragment,{children:[l.jsx(Gn,{icon:l.jsx(Al,{sx:{width:18.33,height:15,color:"#454545"}}),title:"Sync Method",subtitle:s||"FTP",highlightStyle:m,disabled:!0,titleColorWhenDisabled:"#454545",action:l.jsx(Mt,{sx:{width:16,height:16,color:"#454545"}})}),l.jsx(Gn,{icon:l.jsx(fu,{size:15,color:"#454545"}),title:"FTP Details",subtitle:"Sync source",highlightStyle:m,onClick:()=>y("/products/settings/ftp-sync",{state:{fromSyncStep:i}}),action:l.jsx(Mt,{sx:{width:16,height:16,color:"#454545"}})}),l.jsxs(P,{sx:{width:"100%",display:"flex",flexWrap:"nowrap",justifyContent:"space-between","@media (max-width:450px)":{flexDirection:"column",gap:"4px"}},children:[l.jsx(P,{sx:{width:"50%","@media (max-width:450px)":{width:"100%"}},children:l.jsx(Gn,{icon:l.jsx(Ey,{size:15,color:"#454545"}),title:"Sync Frequency",subtitle:v,highlightStyle:m,customStyle:{mb:0},onClick:()=>y("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncFrequency",integrationData:d}}),action:l.jsx(Mt,{sx:{width:16,height:16,color:"#454545"}})})}),l.jsx(P,{sx:{width:"50%","@media (max-width:450px)":{width:"100%"}},children:l.jsx(Gn,{icon:l.jsx(vN,{size:15,color:"#454545"}),title:"Sync Time",subtitle:k,highlightStyle:m,customStyle:{mb:0},onClick:()=>y("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncTime",integrationData:d}}),action:l.jsx(Mt,{sx:{width:16,height:16,color:"#454545"}})})})]}),l.jsx(Gn,{icon:l.jsx(SN,{size:15,color:"#454545"}),title:"Sync History",subtitle:"12,139 items",highlightStyle:m,action:l.jsx(Mt,{sx:{width:16,height:16,color:"#454545"}})})]})]})},S=i===3&&d&&Object.keys(d||{}).length>0;return l.jsxs(P,{sx:h.container,children:[x(),w(S)]})}function EN({open:e,onClose:t,onSave:n}){Ln();const r=tt(),[i,s]=N.useState("sftp"),a=[{value:"sftp",label:"SFTP"},{value:"webhook",label:"Webhook"},{value:"aira-api",label:"AIRA API"},{value:"file-upload",label:"File Upload"}],c=h=>s(h.target.value),d=()=>{n&&n(i),t()},p=()=>{},u=r.productSettingModal;return l.jsx(Po,{open:e,onClose:t,"aria-labelledby":"product-sync-setting-modal",sx:u.modal,children:l.jsxs(P,{sx:u.container,children:[l.jsxs(P,{sx:u.header,children:[l.jsx(W,{sx:u.headerTitle,children:"Sync Method"}),l.jsx(it,{onClick:t,size:"small",sx:u.closeButton,children:l.jsx(L2,{size:20})})]}),l.jsxs(P,{sx:u.content,children:[l.jsx(as,{value:i,onChange:c,children:a.map(h=>l.jsx(Cn,{value:h.value,control:l.jsx(Cr,{icon:l.jsx(P,{sx:u.radioIcon}),checkedIcon:l.jsx(B2,{size:18,color:"#000"}),sx:u.radioChecked}),label:l.jsx(W,{sx:u.radioLabel,children:h.label}),sx:{...u.formControlLabel,...i===h.value?u.formControlLabelSelectedRow:{}}},h.value))}),l.jsxs(P,{sx:u.upgradeSection,children:[l.jsx(W,{sx:u.upgradeText,children:"Upgrade for higher sync limits and more features"}),l.jsx(W,{onClick:p,sx:u.managePlanLink,children:"Manage Plan >"})]})]}),l.jsx(P,{sx:u.footer,children:l.jsx(Ze,{fullWidth:!0,variant:"contained",onClick:d,sx:u.saveButton,children:"Save"})})]})})}const TN=({isOpen:e,onClose:t,onConfirm:n})=>{const r=tt(),{universal:i}=r;let s;return s=r.productSettingModal,l.jsx(Po,{open:e,onClose:t,"aria-labelledby":"sync-now-modal",sx:s.modal,children:l.jsxs(P,{sx:s.container,children:[l.jsx(P,{sx:s.header,children:l.jsx(W,{sx:{...s.headerTitle,fontSize:22},children:"Are you sure to SyncNow ?"})}),l.jsxs(P,{sx:{...s.footer,flexDirection:"row",gap:2,justifyContent:"center"},children:[l.jsx(Ze,{variant:"contained",color:"primary",onClick:n,sx:{...i.getUniversalBlueButtonSx(),minWidth:100,mx:4},children:"Yes"}),l.jsx(Ze,{variant:"outlined",color:"primary",onClick:t,sx:{minWidth:100},children:"No"})]})]})})};function AN(){const{productSetting:e}=tt(),t=zt(),n=Lt(),r=fn(),{companyId:i,integrationData:s,loading:a}=Ye(D=>D?.dashboard||{}),[c,d]=N.useState(!0),[p,u]=N.useState(),[h,m]=N.useState(0),[y,g]=N.useState(""),[f,b]=N.useState(!1),[x,E]=N.useState(!1),[w,S]=N.useState(!1),[T,v]=N.useState(""),k=N.useRef(null),M=N.useRef(!1);N.useEffect(()=>{const D=t.state?.tenantIntegrationMatched===!0;i&&i!==k.current&&!a&&(s&&(s?.id||s?.channelId||s?.configs||typeof s=="object"&&Object.keys(s).length>0)?k.current=i:(k.current=i,r(Qt(i)))),D&&i&&!a&&!M.current&&(M.current=!0,r(Qt(i))),D||(M.current=!1)},[i,r,a,s,t.state]),N.useEffect(()=>{let D=!1;t.state&&typeof t.state.tenantIntegrationMatched=="boolean"&&(D=t.state.tenantIntegrationMatched);const L=s&&(s?.id||s?.channelId||s?.configs||Array.isArray(s?.data)&&s.data.length>0||typeof s=="object"&&Object.keys(s).length>0),V=t.state?.fromSyncStep===1?1:D===!0||L?3:0;queueMicrotask(()=>m(V))},[t.state,s]);const _=()=>b(!0),z=D=>{g(D),m(1),b(!1)},F=()=>{n("/products/settings/ftp-sync",{state:{fromSyncStep:h}})},C=async()=>{const D=s?.channelId||s?.id;if(!D){v("Channel ID not found"),S(!0),E(!1);return}E(!1);try{const L=await r(mi(D));if(mi.fulfilled.match(L)){const V=L.payload?.message==="Sync started successfully"?"Sync started successfully":"Sync not started successfully";v(V),S(!0),V==="Sync started successfully"&&setTimeout(()=>{r(Qt(i)),r(Mr()),n("/")},2500)}else v("Sync not started successfully"),S(!0)}catch{v("Sync not started successfully"),S(!0)}},I=N.useCallback(()=>{h===1?(m(0),g("")):n("/")},[h,n]),{setSettingTopbarProps:$}=$o()||{};return N.useEffect(()=>{if($)return $({onBack:I}),()=>$({})},[$,I]),l.jsxs(P,{sx:e.pageRoot,children:[l.jsx(EN,{open:f,onClose:()=>b(!1),onSave:z}),l.jsx(TN,{isOpen:x,onClose:()=>E(!1),onConfirm:C}),l.jsx(Do,{open:w,autoHideDuration:4e3,onClose:()=>S(!1),message:T,anchorOrigin:{vertical:"top",horizontal:"center"}}),l.jsx(CN,{airaAiEnabled:c,setAiraAiEnabled:d,selectedCard:p,setSelectedCard:u,syncStep:h,syncMethod:y,integrationData:s,onSetupSync:_,onSetupFTP:F,onSyncNow:()=>E(!0)})]})}const PN=["Setup FTP","Check data","Start Sync"],kN=e=>{const{universal:t,ftpSync:n}=tt(),r=n.step0;return l.jsx(P,{sx:n.ftpPageBackground,children:l.jsxs(P,{sx:r.innerColumn,children:[l.jsx(P,{sx:r.stepLabelsRow,children:PN.map((i,s)=>l.jsx(W,{component:"span",sx:{...r.stepLabelTypography,fontWeight:s===0?600:400},children:i},i))}),l.jsx(P,{sx:r.mainWhiteContainer,children:l.jsxs(bn,{elevation:0,sx:r.setupPaper,children:[l.jsxs(P,{sx:r.instructionsBlock,children:[l.jsx(W,{sx:r.instructionsTitle,children:"Setup Instructions"}),l.jsxs(P,{component:"ol",sx:r.instructionsOrderedList,children:[l.jsx("li",{children:"Directory should have just one file"}),l.jsx("li",{children:"File format must be in CSV (comma separated)"}),l.jsx("li",{children:"File structure should be flat"})]})]}),l.jsx(P,{sx:r.nextButtonRow,children:l.jsx(Ze,{variant:"contained",color:"primary",sx:{...t.getUniversalBlueButtonSx(),borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:()=>e.onNext&&e.onNext(),children:"Next"})})]})})]})})};function ON(e){const{sx:t,fontSize:n,...r}=e;return l.jsxs(or,{viewBox:"0 0 14.666666 10.666666",sx:{fontSize:n||14.666666,color:"#454545",...t},...r,children:[l.jsx("path",{d:"M1 5.333333C2.2 3.2 4.266667 1.666667 7.333333 1.666667C10.4 1.666667 12.466667 3.2 13.666667 5.333333C12.466667 7.466667 10.4 9 7.333333 9C4.266667 9 2.2 7.466667 1 5.333333Z",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("circle",{cx:"7.333333",cy:"5.333333",r:"2",fill:"none",stroke:"currentColor",strokeWidth:"1"})]})}function IN(e){const{sx:t,fontSize:n,...r}=e;return l.jsxs(or,{viewBox:"0 0 14.666666 10.666666",sx:{fontSize:n||14.666666,color:"#454545",...t},...r,children:[l.jsx("path",{d:"M1 5.333333C2.2 3.2 4.266667 1.666667 7.333333 1.666667C10.4 1.666667 12.466667 3.2 13.666667 5.333333C12.466667 7.466667 10.4 9 7.333333 9C4.266667 9 2.2 7.466667 1 5.333333Z",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("circle",{cx:"7.333333",cy:"5.333333",r:"2",fill:"none",stroke:"currentColor",strokeWidth:"1"}),l.jsx("path",{d:"M2 9L12.666667 1.666667",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round"})]})}function Ty(e){const{sx:t,color:n,circleColor:r=n??gt,tickColor:i=n??gt,fontSize:s,...a}=e;return l.jsxs(or,{viewBox:"0 0 24 24",sx:{fontSize:s||24,...t},...a,children:[l.jsx("circle",{cx:"12",cy:"12",r:"10",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round"}),l.jsx("path",{fill:"none",stroke:i,strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",d:"M6.5 12l3.5 4 7-8"})]})}const NN=({active:e,completed:t,showBlue:n,stepIconCircleSx:r})=>{const i=!e&&!t,s=n?gt:"#bbb",a=gt;return l.jsx(P,{sx:{...r,...i?{borderColor:s}:{border:"none",background:"transparent"}},children:i?l.jsx("svg",{width:10,height:10,viewBox:"0 0 24 24",fill:"none",style:{display:"block"},children:l.jsx("path",{d:"M7 10l5 5 5-5",stroke:s,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):l.jsx(Ty,{circleColor:s,tickColor:a,sx:{fontSize:16,display:"block"}})})},Pl=({steps:e=[],activeStep:t=0,showCheckDataBlueTick:n=!1,progressToCheckData:r=!1,showSetupFtpBlueTick:i=!1,showStartSyncBlueTick:s=!1,instantComplete:a=!1,progressSegment:c,filledSegments:d,filledSegmentsStart:p=0,previousStepsComplete:u=!1})=>{const{ftpSyncStepper:h}=tt(),y=Ln().transitions?.duration?.standard??400,[g,f]=N.useState(0),[b,x]=N.useState(!1),E=Math.max(1,e.length),w=50/E,S=100*(E-1)/E,T=40/E,v=E>1?100/E:0,k=100,M=N.useMemo(()=>{let _;if(typeof d=="number"){const F=typeof p=="number"?p:0,C=d-F;_=v*(F+g*C)}else typeof c=="number"?_=v*(c+g):s?_=g?S:0:r?_=g?S*.5:0:_=g?T:0;const z=Math.min(_,S)/S;return Math.round(z*k)},[g,d,p,c,s,r,v,S,T]);return N.useEffect(()=>{if(a){setTimeout(()=>{f(1),x(!0)},0);return}if(typeof d=="number"&&typeof p=="number"&&p>0){setTimeout(()=>{f(0),x(!1)},0);const z=setTimeout(()=>{f(1),setTimeout(()=>x(!0),y)},50);return()=>clearTimeout(z)}setTimeout(()=>{f(0),x(!1)},0);const _=setTimeout(()=>{f(1),setTimeout(()=>x(!0),y)},50);return()=>clearTimeout(_)},[t,e.length,r,a,d,p,y]),l.jsxs(P,{sx:h.stepperRoot,children:[l.jsx(P,{sx:h.stepIconsRow,children:e.map((_,z)=>l.jsxs(P,{sx:h.stepColumn,children:[l.jsx(NN,{active:z===t,completed:z<t,stepIconCircleSx:h.stepIconCircle,showBlue:z===0&&i||z===1&&n&&(b||u)||z===2&&s}),l.jsx(P,{component:"span",sx:{...h.stepLabelText,fontWeight:z===0?600:400},children:_})]},_))}),l.jsx(P,{sx:h.progressBarSection,children:l.jsx(P,{sx:h.getProgressBarTrackOffsetSx(w,S),children:l.jsx(Im,{variant:"progress",steps:k+1,position:"static",activeStep:M,sx:h.mobileStepperProgress,nextButton:null,backButton:null})})})]})},MN=e=>e.dashboard?.companyId||"";function FN(e){try{const t=new URL(e);return{type:t.protocol.replace(":",""),host:t.hostname,port:t.port,path:t.pathname}}catch{return{type:"",host:"",port:"",path:""}}}const DN=e=>{const{universal:t,ftpSync:n}=tt(),r=n.step1,i=n.common,{ftpDetails:s={},stepperProps:a={}}=e,[c,d]=N.useState(null),p=zt(),u=Lt(),h=Ye(MN),[m,y]=N.useState(!1);N.useEffect(()=>{let I,$;return setTimeout(()=>{y(!1),I=setTimeout(()=>{$=setTimeout(()=>y(!0),600)},100)},0),()=>{I&&clearTimeout(I),$&&clearTimeout($)}},[]);const[g,f]=N.useState(!1),b=localStorage.getItem("selectedSyncMethod")||"sftp",[x,E]=N.useState(`${b}:`),[w,S]=N.useState(""),[T,v]=N.useState(""),k=fn(),M=Ye(I=>I.productSettings?.loading||!1),_=Ye(I=>I.productSettings?.error||null),z=Ln();_t(z.breakpoints.up("lg"));const F=Ye(I=>I.productSettings.syncData);N.useEffect(()=>{const I=p.state?.ftpConfig,$=p.state?.tenantIntegrationData;if(F&&F.serverAddress){setTimeout(()=>{E(F.serverAddress||""),S(F.configs&&F.configs.username||""),v(F.configs&&F.configs.password||"")},0);return}if(s&&(s.host||s.username||s.password)){const D=s.type||"sftp",L=s.host||"",V=s.port||"",Y=s.path||"",U=`${D}://${L}${V?`:${V}`:""}${Y?`/${Y}`:""}`;setTimeout(()=>{E(U),S(s.username||""),v(s.password||"")},0);return}if($&&$.configs){const D=$.configs,L=D.type||$.type||"sftp",V=D.host||"",Y=D.port||"",U=D.path||"",B=`${L}://${V}:${Y}/${U}`,O=D.username||"",j=D.password||"";setTimeout(()=>{E(B),S(O),v(j)},0);return}if(I){const L=`${I.type||"sftp"}://${I.host}:${I.port}/${I.path}`,V=I.username||"",Y=I.password||"";setTimeout(()=>{E(L),S(V),v(Y)},0)}},[p.state,F,s]);const C=async()=>{if(!h){alert("Company ID is required. Please ensure the app is properly configured.");return}const{type:I,host:$,port:D,path:L}=FN(x),V=await k(hi({serverAddress:x,username:w,password:T,companyId:h}));if(!hi.fulfilled.match(V))return;const Y=V.payload;if(p.state?.fromSettingsIcon){const O=Y?.entity_type||c?.entity_type||"products",j={...c||{},companyId:h,tenantId:h,type:I,serverAddress:x,configs:{host:$,port:Number(D),path:L,username:w,password:T,sync_frequency:c?.configs?.sync_frequency||s?.sync_frequency||"",sync_time:c?.configs?.sync_time||s?.sync_time||""},entity_type:O,mappings:c?.mappings||Y?.existing_mapping?.mappings||[]};d(j),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(j)),u("/ftp-sync-2",{state:{fromSettingsIcon:!0,putjson:j}});return}const U=Y?.entity_type||"",B={tenantId:h,type:I,serverAddress:x,configs:{host:$,port:Number(D),path:L,username:w,password:T,sync_frequency:"",sync_time:""},entity_type:U||"products",mappings:Y?.existing_mapping?.mappings||[]};k(sa(B)),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(B)),e.onNext&&e.onNext({putjson:B})};return l.jsx(P,{sx:n.ftpPageBackground,children:l.jsxs(P,{sx:i.wizardOuterColumnStep1,children:[l.jsx(P,{sx:i.stepperSlot,children:l.jsx(Pl,{...a,showSetupFtpBlueTick:m})}),l.jsx(P,{sx:r.loginSectionOuter,children:l.jsxs(P,{sx:r.loginCard,children:[l.jsx(P,{sx:r.loginTitleRow,children:l.jsx(W,{sx:r.loginTitleTypography,children:"Login Details"})}),l.jsxs(P,{component:"form",autoComplete:"off",sx:r.loginForm,children:[l.jsxs(P,{sx:r.loginFieldColumn,children:[l.jsx(P,{component:"label",sx:r.loginFieldLabel,children:"Server Address"}),l.jsx(P,{component:"input",type:"text",value:x,onChange:I=>E(I.target.value),placeholder:"sftp://234.124.12.34:4432/data/sync",sx:r.loginTextInput})]}),l.jsxs(P,{sx:r.loginFieldColumn,children:[l.jsx(P,{component:"label",sx:r.loginFieldLabel,children:"Username"}),l.jsx(P,{component:"input",type:"text",value:w,onChange:I=>S(I.target.value),placeholder:"Enter username",sx:r.loginTextInput})]}),l.jsxs(P,{sx:r.loginFieldColumnPassword,children:[l.jsx(P,{component:"label",sx:r.loginFieldLabel,children:"Password"}),l.jsx(P,{component:"input",type:g?"text":"password",value:T,onChange:I=>v(I.target.value),placeholder:"Enter password",sx:r.loginPasswordInput}),l.jsx(it,{"aria-label":"toggle password visibility",onClick:()=>f(I=>!I),tabIndex:-1,size:"small",sx:r.passwordVisibilityIconButton,children:g?l.jsx(IN,{}):l.jsx(ON,{})})]})]}),l.jsxs(P,{sx:r.loginActionsRow,children:[l.jsx(Ze,{variant:"outlined",color:"primary",sx:r.outlinedBackButton,onClick:e.onBack,children:"Back"}),l.jsx(Ze,{variant:"contained",color:"primary",sx:{...t.getUniversalBlueButtonSx(),borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:C,disabled:M,children:M?"Loading...":"Next"})]}),_&&l.jsx(W,{color:"error",sx:r.ftpConnectionErrorText,children:"Fill the credentials"})]})})]})})},BN=e=>e.productSettings.ftpColumns||[],_N=e=>e.productSettings.preview||[],$N=e=>e.productSettings.loading,zN=e=>e.productSettings.error,LN=e=>e.productSettings.existingMapping,jN=e=>e.productSettings.entity_type||"products";function WN(e,t){const n=Array.isArray(e)?e:[];if(t==null||t==="")return n;const r=String(t);return n.includes(r)?n:[...n,r]}const VN=e=>{const{universal:t,ftpSync:n}=tt(),r=n.step2,i=n.common,{mapping:s=[],onBack:a,onNext:c,stepperProps:d={}}=e,p=zt(),u=Lt(),h=p.state?.fromSettingsIcon,[m,y]=N.useState(()=>{if(p.state?.putjson)return p.state.putjson;const B=window.localStorage.getItem("ftpSyncPutjson");return B?JSON.parse(B):s.length>0?{mappings:s}:null}),[g,f]=N.useState([]),[b,x]=N.useState({}),E=Ye(BN),w=Ye(_N),S=Ye($N),T=Ye(zN),v=Ye(LN),k=Ye(jN),M=N.useRef(S);N.useEffect(()=>{S&&!M.current&&queueMicrotask(()=>x({})),M.current=S},[S]);const _=N.useRef(!1);N.useLayoutEffect(()=>{v==null||!v?.mappings||v.mappings.length===0?_.current||(_.current=!0,queueMicrotask(()=>x({}))):_.current=!1},[v]);const z=fn();N.useEffect(()=>{async function B(){try{let O=[];if(v?.mappings?.length>0){const j=v.mappings.map(H=>H.target_field).filter(H=>H&&typeof H=="string");O=[...new Set(j)]}try{const j=await z(yi(k));yi.fulfilled.match(j)&&Array.isArray(j.payload)&&j.payload.filter(G=>G&&typeof G=="string").forEach(G=>{O.includes(G)||O.push(G)})}catch{}if(s&&s.length>0){const j=s.map(H=>H.target_field).filter(H=>H&&typeof H=="string"&&!O.includes(H));j.length>0&&(O=[...O,...j])}O=O.filter(j=>j&&typeof j=="string"),f(O)}catch{if(v?.mappings?.length>0){const O=v.mappings.map(H=>H.target_field).filter(H=>H&&typeof H=="string"),j=[...new Set(O)];f(j)}else f([])}}(k||v?.mappings?.length>0||s&&s.length>0)&&B()},[k,v,s,z]);const F=N.useMemo(()=>{if(v?.mappings&&v.mappings.length>0){const B=v.mappings.map(O=>O.source_field).filter(O=>O);if(B.length>0)return B}return E&&E.length>0?E:[]},[v,E]),C=N.useMemo(()=>w.filter(O=>Object.keys(O).length>0),[w]),I=N.useMemo(()=>{if(v?.mappings&&v.mappings.length>0){const B={};return v.mappings.forEach(O=>{O.source_field&&O.target_field&&(B[O.source_field]=O.target_field)}),B}return{}},[v]),D=v?.mappings?.length>0?{...I,...b}:{...b},L=Ln();_t(L.breakpoints.up("lg"));const V=Ye(B=>B.productSettings.syncData),Y=N.useMemo(()=>{if(V?.serverAddress)return V.serverAddress;const B=V?.configs||{},O=(V?.type||"sftp").toLowerCase(),j=B.host,H=B.port,G=B.path;if(!j)return"";let X=`${O}://${j}`;if(H!=null&&H!==""&&(X+=`:${H}`),G){const te=String(G).replace(/^\/+/,"");X+=`/${te}`}return X},[V]),U=()=>{const B=F.map(G=>({source_field:G||"",target_field:D[G]||""})).filter(G=>G.source_field&&G.target_field);if(B.length===0)return;if(h&&m){const G={...m,tenantId:m.tenantId||m.companyId,type:m.type||V.type||"sftp",entity_type:m.entity_type||V.entity_type||"products",mappings:B};y(G),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(G)),c?c({fromSettingsIcon:!0,putjson:G}):e.onNext&&e.onNext({fromSettingsIcon:!0,putjson:G});return}const O=JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"{}"),j=V.companyId||O.companyId||O.tenantId||"",H={...O,companyId:j,tenantId:j,type:V.type||O.type||"sftp",integration_type:V.integration_type||O.integration_type||"",entity_type:O.entity_type||V.entity_type||"products",configs:V.configs||O.configs||{},ftp_columns:F,preview:C,mappings:B};z(sa(H)),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(H)),c?c({putjson:H}):e.onNext&&e.onNext({putjson:H})};return l.jsx(P,{sx:n.ftpPageBackground,children:l.jsxs(P,{sx:i.wizardOuterColumn,children:[l.jsx(P,{sx:i.stepperSlot,children:l.jsx(Pl,{...d})}),l.jsx(P,{sx:r.mappingPaperWrap,children:l.jsxs(bn,{elevation:0,sx:r.mappingPaper,children:[l.jsxs(P,{sx:r.mappingHeaderToolbar,children:[l.jsxs(P,{sx:r.mappingHeaderTextBlock,children:[l.jsx(W,{variant:"subtitle1",sx:r.mappingHeaderTitleTypography,children:"Map data from FTP to AiraOps"}),Y&&l.jsx(W,{variant:"body2",component:"div",sx:r.mappingHeaderServerHint,children:Y})]}),l.jsxs(P,{sx:r.mappingHeaderActionsWrap,children:[l.jsx(Ze,{variant:"outlined",color:"primary",sx:r.mappingBackButton,onClick:a||(()=>u("/products/settings/ftp-sync",{state:{step:1}})),children:"Back"}),l.jsx(Ze,{variant:"contained",color:"primary",sx:{...t.getUniversalBlueButtonSx(),borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:U,children:"Next"})]})]}),l.jsx(ny,{sx:r.mappingTableContainer,children:S?l.jsx(P,{sx:r.mappingTableLoadingBox,children:"Loading..."}):T?l.jsx(P,{sx:r.mappingTableErrorBox,children:T}):F.length===0?l.jsx(P,{sx:r.mappingTableEmptyHint,children:"No columns available. Please check your FTP connection and try again."}):l.jsxs(Zm,{size:"small",sx:r.mappingTable,children:[l.jsxs(oy,{children:[l.jsxs(us,{children:[l.jsx(Er,{sx:r.mappingTableHeadCell,children:"Columns in FTP"}),F.map((B,O)=>l.jsx(Er,{sx:r.mappingTableHeadCell,children:B},B+O))]}),l.jsxs(us,{children:[l.jsx(Er,{sx:r.mappingTableHeadCellTight,children:"Columns in Aira"}),F.map((B,O)=>{const j=D[B]??"",H=WN(g,j);return l.jsx(Er,{sx:r.mappingTableSelectCell,children:l.jsxs(cn,{value:j===""?"":String(j),onChange:G=>x(X=>({...X,[B]:G.target.value})),variant:"standard",disableUnderline:!0,displayEmpty:!0,sx:r.mappingColumnSelect,MenuProps:{PaperProps:{sx:r.mappingSelectMenuPaper},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},MenuListProps:{sx:r.mappingSelectMenuList}},children:[l.jsx(et,{value:"",sx:r.mappingSelectMenuItem,children:l.jsx(P,{component:"em",sx:r.mappingSelectPlaceholderEm,children:"Select column"})}),H.map(G=>l.jsx(et,{value:G,sx:r.mappingSelectMenuItem,children:G},G))]})},O)})]})]}),l.jsx(ty,{children:C.length>0?C.map((B,O)=>l.jsxs(us,{children:[l.jsx(Er,{sx:r.mappingTableBodyLabelCell,children:O===0?"Data preview":""}),F.map((j,H)=>l.jsx(Er,{sx:r.mappingTableBodyCell,children:B[j]||""},H))]},O)):l.jsx(us,{children:l.jsx(Er,{colSpan:F.length+1,sx:r.mappingTableNoPreviewCell,children:"No preview data available"})})})]})})]})})]})})},HN=e=>e.dashboard?.companyId||"",UN=e=>e.dashboard?.integrationData||null,RN=e=>{const{universal:t,ftpSync:n}=tt(),r=n.step3,i=n.common,{syncFrequency:s="",syncTime:a="",stepperProps:c={}}=e,d=zt(),p=Lt(),u=fn(),h=Ye(HN),m=Ye(UN),y=d.state?.fromSettingsIcon,[g,f]=N.useState(()=>{if(d.state?.putjson){const j=JSON.parse(JSON.stringify(d.state.putjson));return j.mappings&&(j.originalMappings=JSON.parse(JSON.stringify(j.mappings))),j.configs?.sync_frequency&&!j.originalSyncFrequency&&(j.originalSyncFrequency=j.configs.sync_frequency),j.configs?.sync_time&&!j.originalSyncTime&&(j.originalSyncTime=j.configs.sync_time),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(j)),j}const O=window.localStorage.getItem("ftpSyncPutjson");if(O){const j=JSON.parse(O);return j.mappings&&!j.originalMappings&&(j.originalMappings=JSON.parse(JSON.stringify(j.mappings))),j.configs?.sync_frequency&&!j.originalSyncFrequency&&(j.originalSyncFrequency=j.configs.sync_frequency),j.configs?.sync_time&&!j.originalSyncTime&&(j.originalSyncTime=j.configs.sync_time),j}return null});N.useEffect(()=>{g&&window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(g))},[g]);const[b,x]=N.useState(null),[E,w]=N.useState(null);N.useEffect(()=>{const O=d.state?.fromProductSetting;let j=null;if(O&&d.state?.integrationData)j=d.state.integrationData;else if(m&&Object.keys(m).length>0)j=m;else if(h&&!O){u(Qt(h)).then(H=>{if(Qt.fulfilled.match(H)){const G=H.payload;if(j=G&&G.data&&G.data[0]||null,j){x(j);const X=j.id||j.channelId||null;X&&w(X)}}});return}if(j){x(j);const H=j.id||j.channelId||null;H&&w(H)}},[h,d.state,m,u]);const S=!!y||!!b,T=O=>{if(!O)return"";const j=O.charAt(0).toUpperCase()+O.slice(1).toLowerCase();return j==="Daily"||j==="Day"?"Daily":j==="Weekly"||j==="Week"?"Weekly":j==="Monthly"||j==="Month"?"Monthly":j},[v,k]=N.useState(()=>{if(s)return T(s);const O=g?.configs?.sync_frequency?T(g.configs.sync_frequency):"";return O||"Daily"}),[M,_]=N.useState(a||g&&g.configs?.sync_time||"");N.useEffect(()=>{async function O(){if(h)try{const j=d.state?.fromProductSetting;let H=null;if(j&&d.state?.integrationData)H=d.state.integrationData;else if(m&&Object.keys(m).length>0)H=m;else{const G=await u(Qt(h));if(Qt.fulfilled.match(G)){const X=G.payload;H=X&&X.data&&X.data[0]||null}}if(H){const G=H.id||H.channelId||null;G&&w(G);const X=g||JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"null"),te={...H,companyId:H.companyId||h,entity_type:H.entity_type||X?.entity_type||"product",mappings:H.mappings||X?.mappings||[]},le=H.configs?.sync_frequency||"",ce=H.configs?.sync_time||"",ae=T(le);if(f(te),j){if(s){const Z=T(s);k(Z)}a&&_(a),f(Z=>({...Z,...te,originalSyncFrequency:s?T(s):Z.originalSyncFrequency||ae,originalSyncTime:a||Z.originalSyncTime||ce,configs:{...te.configs,sync_frequency:s?T(s).toLowerCase():te.configs?.sync_frequency,sync_time:a||te.configs?.sync_time}}))}else{const Z=s?T(s):"";if(Z)k(Z);else if(ae)k(ae);else if(X?.configs?.sync_frequency){const R=T(X.configs.sync_frequency);k(R)}else k("Daily");a?_(a):ce?_(ce):X?.configs?.sync_time?_(X.configs.sync_time):_(""),f(te),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(te))}}}catch{const j=JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"null");!s&&j?.configs?.sync_frequency?k(T(j.configs.sync_frequency)):s&&k(T(s)),!a&&j?.configs?.sync_time?_(j.configs.sync_time):a&&_(a)}}O()},[h]),N.useEffect(()=>{if(s){const O=T(s);k(O),g&&g.configs?.sync_frequency!==O&&f(j=>{const H={...j,configs:{...j.configs,sync_frequency:O}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(H)),H})}},[s]),N.useEffect(()=>{a&&(_(a),g&&g.configs?.sync_time!==a&&f(O=>{const j={...O,configs:{...O.configs,sync_time:a}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(j)),j}))},[a]),N.useEffect(()=>{if(g&&S&&(v||M)){const O=g.configs?.sync_frequency,j=g.configs?.sync_time;(O!==v||j!==M)&&f(H=>{const G={...H,configs:{...H.configs,sync_frequency:v||H.configs?.sync_frequency,sync_time:M||H.configs?.sync_time}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(G)),G})}},[v,M,S]);const z=Ye(O=>O.productSettings.syncData),F=O=>{const j=O.target.value;k(j),g&&f(H=>{const G={...H,configs:{...H.configs,sync_frequency:j}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(G)),G}),S||u(sa({...z,configs:{...z&&z.configs||{},sync_frequency:j,sync_time:M}}))},C=O=>{const j=O.target.value;_(j),g&&f(H=>{const G={...H,configs:{...H.configs,sync_time:j}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(G)),G}),S||u(sa({...z,configs:{...z&&z.configs||{},sync_frequency:v,sync_time:j}}))};function I(O){try{const j=new URL(O);return{type:j.protocol.replace(":",""),host:j.hostname,port:j.port,path:j.pathname}}catch{return{type:"",host:"",port:"",path:""}}}const[$,D]=N.useState(!1),[L,V]=N.useState(""),Y=async()=>{const O=d.state?.fromProductSetting;if(S){if(!g){V("Update failed: missing data."),D(!0);return}let K={...g};g.originalMappings||(K.originalMappings=g.mappings?JSON.parse(JSON.stringify(g.mappings)):[],f(K)),!g.originalSyncFrequency&&g.configs?.sync_frequency&&(K.originalSyncFrequency=g.configs.sync_frequency||"",f(K)),!g.originalSyncTime&&g.configs?.sync_time&&(K.originalSyncTime=g.configs.sync_time||"",f(K));const ve=JSON.parse(JSON.stringify(g.mappings||[])),be=JSON.parse(JSON.stringify(g.originalMappings||[]));let _e,$e;O?(_e=s?T(s):"",$e=a||""):(_e=g.originalSyncFrequency||g.configs?.sync_frequency||"",$e=g.originalSyncTime||g.configs?.sync_time||"",_e=T(_e));const Ae=O?!1:JSON.stringify(ve)!==JSON.stringify(be),de=v!==_e,qe=M!==$e,He=(de||qe)&&!Ae,ue=Ae;if(He){const re=E||g?.id||g?.channelId||d.state?.integrationData?.id||d.state?.integrationData?.channelId;if(!re){V("Channel ID is missing. Please try again."),D(!0);return}const xe={configs:{}};de&&(xe.configs.sync_frequency=v.toLowerCase()),qe&&(xe.configs.sync_time=M);try{const Se=await u(bi({channelId:re,data:xe}));if(Se.error||bi.rejected.match(Se)){const ge=Se.payload||Se.error?.message||"Update failed. Please try again.";V(ge),D(!0);return}let we="";de&&!qe?we="SyncFrequency Updated":!de&&qe?we="SyncTime Updated":de&&qe&&(we="SyncTime and SyncFrequency Updated"),V(we),D(!0),f(ge=>{const Re={...ge,configs:{...ge.configs,sync_frequency:v.toLowerCase(),sync_time:M},originalSyncFrequency:v,originalSyncTime:M};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(Re)),Re});const me=d.state?.fromProductSetting;me&&h&&await u(Qt(h)),setTimeout(()=>{me&&p("/product-setting",{state:{tenantIntegrationMatched:!0}})},1500);return}catch(Se){const we=Se?.message||Se?.response?.data?.message||"Update failed. Please try again.";V(we),D(!0);return}}if(ue){const re={...g,configs:{...g.configs,sync_frequency:v.toLowerCase(),sync_time:M}};f(re),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(re));const xe=re.tenantId||re.companyId;if(!re.configs){V("Configuration error. Please try again."),D(!0);return}const Se=re.entity_type||g?.entity_type;if(!Se){V("Entity type is missing. Please try again."),D(!0);return}const we={tenantId:xe,type:re.type,entity_type:Se,configs:{host:re.configs.host||"",port:re.configs.port?Number(re.configs.port):0,username:re.configs.username||"",password:re.configs.password||"",path:re.configs.path||"",sync_frequency:v.toLowerCase()||"",sync_time:M||""},mappings:(re.mappings||[]).map(me=>({source_field:me.source_field,target_field:me.target_field}))};if(!we.tenantId){V("Tenant ID is missing. Please try again."),D(!0);return}if(!we.type){V("Sync type is missing. Please try again."),D(!0);return}if(!we.entity_type){V("Entity type is missing. Please try again."),D(!0);return}try{const me=await u(io(we));if(io.rejected.match(me)){const ge=me.payload||me.error?.message||"Update failed. Please try again.";V(ge),D(!0);return}io.fulfilled.match(me)?(f(ge=>{const Re={...ge,originalSyncFrequency:v,originalSyncTime:M,originalMappings:JSON.parse(JSON.stringify(ge.mappings||[]))};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(Re)),Re}),V("Sync Update Successfully"),D(!0),setTimeout(()=>{p("/product-setting",{state:{tenantIntegrationMatched:!0}})},1500)):(V("Update failed. Please try again."),D(!0))}catch(me){const ge=me?.message||me?.response?.data?.message||"Update failed. Please try again.";V(ge),D(!0)}}else V("No changes detected."),D(!0);return}const j=z.configs||{},H=I(z.serverAddress||""),G=j.host||H.host,X=j.port!=null?Number(j.port):parseInt(H.port,10),te=(j.path||H.path||"").replace(/^\//,""),le=z.type||H.type||"sftp",ce=z.username||j.username||"",ae=z.password||j.password||"",Z=v||j.sync_frequency||"",R=typeof Z=="string"?Z.toLowerCase():Z;let q=M||j.sync_time||"";if(typeof q=="string"&&/^\d{1,2}:\d{2}\s*[AP]M$/i.test(q.trim())){const[K,ve]=q.trim().split(/\s+/),[be,_e]=K.split(":").map(Number),$e=ve.toUpperCase()==="PM"&&be!==12?be+12:ve.toUpperCase()==="AM"&&be===12?0:be;q=`${String($e).padStart(2,"0")}:${String(_e).padStart(2,"0")}`}else typeof q=="string"&&(q=q.trim());const ie=(z.mappings||[]).filter(K=>K.source_field&&K.target_field).map(K=>({source_field:K.source_field,target_field:K.target_field}));if(!h){V("Company ID is required. Please ensure the app is properly configured."),D(!0);return}if(!G||!X||!ce||!ae||ie.length===0){V("Please fill all required fields and mappings before saving."),D(!0);return}const Q=z.entity_type||"products",pe={tenantId:h,type:le,entity_type:Q,configs:{host:G,port:Number(X),username:ce,password:ae,path:te,sync_frequency:R,sync_time:q},mappings:ie};try{const K=await u(gi(pe));gi.fulfilled.match(K)?(V("Save and Start Sync Updated Successfully"),D(!0),e.onNext&&e.onNext()):(V(K?.payload||"Save failed. Please try again."),D(!0))}catch{V("Save failed. Please try again."),D(!0)}},[U,B]=N.useState(!1);return N.useEffect(()=>{const O=setTimeout(()=>B(!0),850);return()=>clearTimeout(O)},[]),l.jsx(P,{sx:n.ftpPageBackground,children:l.jsxs(P,{sx:i.wizardOuterColumn,children:[l.jsx(P,{sx:i.stepperSlot,children:l.jsx(Pl,{...c,showStartSyncBlueTick:U})}),l.jsx(P,{sx:r.schedulePanelOuter,children:l.jsx(P,{sx:r.schedulePanelInner,children:l.jsxs(bn,{elevation:0,sx:r.scheduleFormPaper,children:[l.jsxs(P,{sx:r.scheduleFieldsRow,children:[l.jsxs(P,{sx:r.scheduleFieldColumn,children:[l.jsx(W,{variant:"subtitle2",sx:r.scheduleFieldLabel,children:"Sync Frequency"}),l.jsxs(cn,{size:"small",value:v,onChange:F,sx:r.syncFrequencySelect,children:[l.jsx(et,{value:"Daily",children:"Daily"}),l.jsx(et,{value:"Weekly",children:"Weekly"}),l.jsx(et,{value:"Monthly",children:"Monthly"})]})]}),l.jsxs(P,{sx:r.scheduleFieldColumn,children:[l.jsx(W,{variant:"subtitle2",sx:r.scheduleFieldLabel,children:"Sync Time"}),l.jsx(ps,{type:"time",size:"small",value:M,onChange:C,sx:r.syncTimeTextField,InputLabelProps:{shrink:!0},inputProps:{step:300}})]})]}),l.jsxs(P,{sx:r.scheduleActionsRow,children:[l.jsx(Ze,{variant:"outlined",color:"primary",sx:r.scheduleHalfOutlinedButton,onClick:e.onBack,children:"Back"}),l.jsx(Ze,{variant:"contained",color:"primary",sx:{...t.getUniversalBlueButtonSx(),...r.scheduleHalfPrimaryButton},onClick:Y,children:S&&(d.state?.fromSyncSetting||d.state?.editMode)?"Save":S?"Update Sync":"Save and Start Sync"})]}),l.jsx(Do,{open:$,autoHideDuration:4e3,onClose:()=>D(!1),message:L,anchorOrigin:{vertical:"top",horizontal:"center"}})]})})})]})})},qN=e=>{const{ftpSync:t}=tt(),n=t.step4,r=t.common,{stepperProps:i={}}=e,s=fn(),c=!!Ye(h=>h.productSettings.saveResult),[d,p]=N.useState(c),u=Lt();return N.useEffect(()=>{c&&(p(!0),s(VS()))},[c,s]),l.jsxs(l.Fragment,{children:[l.jsx(Do,{open:d,autoHideDuration:4e3,onClose:()=>p(!1),message:"Sync setup successful!",anchorOrigin:{vertical:"top",horizontal:"center"}}),l.jsx(P,{sx:t.ftpPageBackground,children:l.jsxs(P,{sx:r.wizardOuterColumn,children:[l.jsx(P,{sx:r.stepperSlot,children:l.jsx(Pl,{...i})}),l.jsx(P,{sx:n.completionPanelOuter,children:l.jsxs(P,{sx:n.completionCard,children:[l.jsx(P,{sx:{...n.completionIconCircle,bgcolor:"transparent",boxShadow:"none"},children:l.jsx(Ty,{sx:{fontSize:48}})}),l.jsx(W,{sx:n.completionTitle,children:"Sync Setup Successfully"}),l.jsx(Ze,{variant:"text",sx:n.completionBackToProductsButton,onClick:()=>u("/"),children:"Back to all products"})]})})]})}),l.jsx(Do,{open:d,autoHideDuration:4e3,onClose:()=>p(!1),message:"Integration saved & sync started",anchorOrigin:{vertical:"top",horizontal:"center"}})]})};function YN(e){const{ftpSync:t}=tt(),n=zt(),r=Lt(),i=n.state?.fromProductSetting?3:0,[s,a]=N.useState(i),c=fn(),{companyId:d,integrationData:p}=Ye(_=>_.dashboard),u=n.state?.fromSyncStep;N.useEffect(()=>{const _=n.state?.fromProductSetting;d&&!_&&c(Qt(d))},[d,c,n.state]);const h=()=>{a(_=>Math.min(_+1,4))},m=N.useCallback(()=>{if(s===0&&u!==void 0){r("/product-setting",{state:{fromSyncStep:u,tenantIntegrationMatched:u===3}});return}if(n.state?.fromProductSetting&&s===3){r("/product-setting",{state:{tenantIntegrationMatched:!0}});return}a(_=>Math.max(_-1,0))},[s,u,n.state?.fromProductSetting,r]),y=N.useMemo(()=>[{label:"Products",to:"/"},{label:"Settings",to:"/product-setting"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],[]),g=N.useMemo(()=>[{label:"Products",to:"/"},{label:"Settings",to:"/product-setting"}],[]),{setSettingTopbarProps:f}=$o()||{};N.useEffect(()=>{if(f)return f({onBack:m,breadcrumbs:s===0||s===1?y:g}),()=>f({})},[f,m,s,y,g]);const b=p?.configs||{},x=p?.mappings||p?.dataMappings||[],w=(_=>{if(!_)return"";const z=_.charAt(0).toUpperCase()+_.slice(1).toLowerCase();return z==="Daily"||z==="Day"?"Daily":z==="Weekly"||z==="Week"?"Weekly":z==="Monthly"||z==="Month"?"Monthly":z})(p?.configs?.sync_frequency||""),S=p?.configs?.sync_time||"",T=["Setup FTP","Check data","Start Sync"],v=["Upload File","Check data","Start Sync"],k={0:{steps:T,activeStep:0,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!1,showStartSyncBlueTick:!1},1:{steps:T,activeStep:0,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!1,filledSegments:.5},2:{steps:T,activeStep:1,showCheckDataBlueTick:!0,progressToCheckData:!0,showSetupFtpBlueTick:!0,filledSegmentsStart:.5,filledSegments:1},3:{steps:v,activeStep:2,showCheckDataBlueTick:!0,progressToCheckData:!1,showSetupFtpBlueTick:!0,showStartSyncBlueTick:!1,filledSegmentsStart:1,filledSegments:2,previousStepsComplete:!0},4:{steps:v,activeStep:2,showCheckDataBlueTick:!0,progressToCheckData:!0,showSetupFtpBlueTick:!0,showStartSyncBlueTick:!0,instantComplete:!0}};let M=null;switch(s){case 0:M=l.jsx(kN,{onNext:h,onBack:m,stepperProps:k[0],...e});break;case 1:M=l.jsx(DN,{onNext:h,onBack:m,ftpDetails:b,stepperProps:k[1],...e});break;case 2:M=l.jsx(VN,{onNext:h,onBack:m,mapping:x,stepperProps:k[2],...e});break;case 3:M=l.jsx(RN,{onNext:h,onBack:m,syncFrequency:w,syncTime:S,stepperProps:k[3],...e});break;case 4:M=l.jsx(qN,{onBack:m,stepperProps:k[4],...e});break;default:M=null;break}return l.jsx(Ut,{maxWidth:!1,disableGutters:!0,sx:t.productFtpSyncRootContainer,children:M})}const GN=yt(l.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56M12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96M4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2s.06 1.34.14 2zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56m2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8M12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96M14.34 14H9.66c-.09-.66-.16-1.32-.16-2s.07-1.35.16-2h4.68c.09.65.16 1.32.16 2s-.07 1.34-.16 2m.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56M16.36 14c.08-.66.14-1.32.14-2s-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2z"}),"Language");function KN(e){return l.jsx(P,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center",opacity:1,...e.sx},children:l.jsx(P,{component:"span",sx:{width:20,height:20,display:"flex",alignItems:"center",justifyContent:"center",opacity:1},children:l.jsx(GN,{sx:{color:"#808080"}})})})}const XN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAPCAYAAAA/I0V3AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAUlJREFUeAGNUrttwzAQFfWrnS6VIGsCjyAB+rWZIM4EyQZ2Jog2UDJCOkESYGaC2BOIZcr0+uVdYBqyQMM+gCB5997x3R2ZNjPf913LsnI6Yr23bfvKORdTjD4BL+I4fgPhexzHr6qqGPaDbdu7KIpySnZGgvPZNM0GIIbMy7qut+THnum6HuDIkIzIa/Izyg4wXQJk32sXLE1Tt+/7HY7C8DyvYIz94HLvOM5BCPGrqhOYHGuB6+pfXlmWS6mfXpb6Z3V+Eu6sEVI/gnekn8CzOjOJNacyiqIQ2NZH/c2xTj6XqytqlmR6naviStI1I9I+SZKXW8Coc4MOCtMwjIeu63IaMIp+UkkKw9AHeDMMg4bmBEwGaNoUAJHTf0MHG+oa/UP4XRBOCZki6xatfwSZBioA/oCSDJ/2NHSm0k4txysrtJ1PwdL+AHzhuHE1We3IAAAAAElFTkSuQmCC";function JN({sx:e={},...t}){const n=e?.fontSize??12,r=e?.width??n,i=e?.height??n;return l.jsx(P,{component:"img",src:XN,alt:"",role:"presentation",sx:{width:r,height:i,display:"block",objectFit:"contain",...e},...t})}const QN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAANCAYAAACdKY9CAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAPtJREFUeAGlUUsOgjAQpSWQuLJHQC6gR4DwCe70Bt5Ab6CewCPIEVwSQmKPoDt3uHQnrPn5SjRpTIkLJ2k6bd+b92ZKNCkcx7EMwzh2XTcjhBRYcZqmexlD5QPAZ2zXuq4nuq67IC58399pqsCDg3X+UmRBEDyVCqjGKKWlohZTEpqm4SBNRR+fO9M019himUDkA+RXIB2gJMgMTVvI3SRJ7kqCiCiKrKqq+illWca1f6NXCMNw27btBlXZAO6Ctz3+5EQEWMwbNlzOeaFCe563AOGIdKnbth3jk+bw+xiykef5DbgRSDMxVkuewqB3QgRmTN/Jz0CPwm75AifwYTaKH5pyAAAAAElFTkSuQmCC",ZN={fontSize:10.67,color:"#454545"};function e5({sx:e={},...t}){const n={...ZN,...e},r=n.fontSize??10.67,i=n.width??r,s=n.height??r;return l.jsx(P,{component:"img",src:QN,alt:"",role:"presentation",sx:{width:i,height:s,display:"block",objectFit:"contain",...n},...t})}const t5=yt(l.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save");function n5(e){return l.jsx(t5,{...e})}const r5=yt(l.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"}),"EditOutlined");function o5(e){return l.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",...e.sx},children:l.jsx(P,{component:"span",sx:{width:13.22,height:13.22,display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(r5,{})})})}const i5=yt(l.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline");function s5(e){return l.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",...e.sx},children:l.jsx(P,{component:"span",sx:{width:12,height:13.33,display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(i5,{})})})}function a5(e){const{universal:t}=tt(),{catalogs:n=[],totalCount:r=0,page:i=0,rowsPerPage:s=10,statusById:a={},getStatus:c,onPageChange:d,onRowsPerPageChange:p,onSave:u,onDelete:h,onStatusChange:m,updateCatalogError:y=null,updateCatalogLoading:g=!1}=e,[f,b]=N.useState(null),[x,E]=N.useState({name:"",slug:"",status:!0}),w=F=>{const C=F.slugRaw??(typeof F.slug=="string"?F.slug.replace(/^\//,""):"")??"",I=F.status==="Active"||F.status===!0;b(F.id),E({name:F.name??"",slug:C,status:I})},S=async F=>{if(typeof u!="function")return;const C=x.slug.trim().replace(/^\//,""),I={id:F.id,name:x.name.trim(),slug:C||x.name.trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,""),status:x.status};await u(I),b(null)},T=()=>{b(null)},v=n,k=Math.max(0,Number(r)||0),M=Math.max(0,Math.ceil(k/Math.max(1,s))-1),_={borderRadius:"4px",padding:"2px 4px",background:"#F5F5F5",display:"inline-flex",alignItems:"center",gap:"4px"},z=t.getGlobalPaginationStyles({wrapper:{...t.globalPaginationStyles.wrapper,width:"100%",maxWidth:800,flexWrap:"wrap",gap:{xs:"12px",sm:"24px",md:"40px"},rowGap:"12px",paddingLeft:{xs:0,sm:"24px"}},resultsPerPageBox:{...t.globalPaginationStyles.resultsPerPageBox,minWidth:0,flexShrink:0},navBox:{...t.globalPaginationStyles.navBox,minWidth:0,flexShrink:0}});return l.jsx(P,{sx:{minHeight:"100vh",bgcolor:Ct},children:l.jsxs(Ut,{maxWidth:"md",sx:{width:"100%",pt:2,pb:4,display:"flex",flexDirection:"column",gap:"24px",opacity:1,boxSizing:"border-box"},children:[l.jsx(P,{sx:{width:"100%",minHeight:20,display:"flex",alignItems:"center",gap:"24px",flexWrap:"wrap",opacity:1},children:l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"6px",height:20,opacity:1},children:[l.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px",letterSpacing:0,color:"#000000",opacity:1},children:"All Catalogs"}),l.jsx(W,{component:"span",sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",opacity:1},children:r})]})}),y&&l.jsx(W,{color:"error",sx:{mb:0},children:y}),l.jsx(P,{sx:{display:"flex",flexDirection:"column",gap:"8px"},children:v.map(F=>{const C=f===F.id,I=typeof c=="function"?c(F):a[F.id]??F.status??"Active",$=I==="Active";return l.jsxs(bn,{elevation:0,sx:{width:"100%",maxWidth:"100%",minHeight:106,borderRadius:"12px",border:"1px solid #F1F1F1",padding:"12px 16px",background:"#FFFFFF",display:"grid",gridTemplateColumns:"auto minmax(0, 1fr) auto",gridTemplateRows:"auto auto auto",columnGap:"16px",rowGap:"8px",alignItems:"start",opacity:1,boxSizing:"border-box"},children:[l.jsx(P,{sx:{gridColumn:1,gridRow:"1 / 4",pt:"2px",alignSelf:"start"},children:l.jsx(KN,{})}),l.jsx(P,{sx:{gridColumn:2,gridRow:1,minWidth:0,width:"100%"},children:C?l.jsx(ps,{label:"Name",size:"small",value:x.name,onChange:D=>E(L=>({...L,name:D.target.value})),fullWidth:!0,sx:{"& .MuiInputBase-root":{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px"}}}):l.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#000000",opacity:1,overflowWrap:"anywhere"},children:F.name})}),l.jsxs(P,{sx:{gridColumn:3,gridRow:"1 / 4",display:"flex",flexDirection:{xs:"column",sm:"row"},alignItems:"center",gap:{xs:"8px",sm:"12px"},flexShrink:0,flexWrap:"nowrap",justifySelf:"end",alignSelf:"start"},children:[l.jsx(P,{sx:{flexShrink:0},children:C?l.jsxs(cn,{size:"small",value:x.status?"Active":"Inactive",onChange:D=>E(L=>({...L,status:D.target.value==="Active"})),IconComponent:dr,sx:{minWidth:80,height:24,borderRadius:"4px",padding:"6px 6px 6px 8px",background:x.status?"#D8FBE3":"#F5F5F5",fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",color:"#454545","& .MuiSelect-select":{py:.75},"& .MuiSelect-icon":{width:12,height:12,top:"50%",transform:"translateY(-50%)"}},children:[l.jsx(et,{value:"Active",children:"Active"}),l.jsx(et,{value:"Inactive",children:"Inactive"})]}):l.jsxs(cn,{value:I,onChange:D=>{if(typeof m!="function"||g)return;const L=D.target.value==="Active";m(F,L)},disabled:g,IconComponent:dr,sx:{minWidth:80,height:24,borderRadius:"4px",padding:"6px 6px 6px 8px",background:$?"#D8FBE3":"#F5F5F5",fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",color:"#454545","& .MuiSelect-select":{py:.75},"& .MuiSelect-icon":{width:12,height:12,top:"50%",transform:"translateY(-50%)"},"& .MuiOutlinedInput-notchedOutline":{border:"none"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{border:"none"}},variant:"outlined",children:[l.jsx(et,{value:"Active",children:"Active"}),l.jsx(et,{value:"Inactive",children:"Inactive"})]})}),l.jsx(P,{sx:{flexShrink:0,display:"flex",alignItems:"center",flexDirection:"row",gap:.5},children:C?l.jsxs(l.Fragment,{children:[l.jsx(it,{size:"small","aria-label":"Save catalog",disabled:g,onClick:()=>S(F),sx:{p:0,color:"#454545"},children:l.jsx(n5,{sx:{fontSize:20}})}),l.jsx(Ze,{size:"small",onClick:T,sx:{minWidth:0,px:1},children:"Cancel"})]}):l.jsx(it,{size:"small","aria-label":"Edit catalog",onClick:()=>w(F),sx:{p:0,width:16,height:16},children:l.jsx(o5,{})})}),l.jsx(P,{sx:{flexShrink:0},children:l.jsx(it,{size:"small","aria-label":"Delete catalog",onClick:()=>typeof h=="function"?h(F):null,sx:{p:0,width:16,height:16},children:l.jsx(s5,{})})})]}),l.jsx(P,{sx:{gridColumn:2,gridRow:2,minWidth:0,width:"100%"},children:C?l.jsx(ps,{label:"Slug",size:"small",value:x.slug,onChange:D=>E(L=>({...L,slug:D.target.value})),fullWidth:!0,placeholder:"/catalog-slug"}):l.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",opacity:1,overflowWrap:"anywhere"},children:F.slug})}),!C&&l.jsxs(P,{sx:{gridColumn:2,gridRow:3,minWidth:0,width:"100%",display:"flex",flexDirection:"column",gap:"8px"},children:[l.jsx(P,{sx:{display:"flex",alignItems:"center",gap:"4px",flexWrap:"wrap"},children:l.jsxs(P,{sx:_,children:[l.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(JN,{sx:{fontSize:12,color:"#454545"}})}),l.jsxs(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},children:[F.productsCount," Products"]})]})}),l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px",flexWrap:"wrap"},children:[l.jsxs(P,{sx:_,children:[l.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(e5,{})}),l.jsxs(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},children:["By ",F.createdBy]})]}),l.jsxs(P,{sx:_,children:[l.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(Ey,{size:12,color:"#454545"})}),l.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},children:F.date})]})]})]})]},F.id)})}),l.jsxs(P,{sx:z.wrapper,children:[l.jsxs(P,{sx:z.resultsPerPageBox,children:[l.jsx(W,{component:"span",sx:z.resultsPerPageText,children:"Results per page"}),l.jsxs(cn,{value:s,onChange:F=>typeof p=="function"?p(F):null,IconComponent:dr,variant:"standard",disableUnderline:!0,sx:z.select,children:[l.jsx(et,{value:5,children:"5"}),l.jsx(et,{value:10,children:"10"}),l.jsx(et,{value:25,children:"25"})]})]}),l.jsxs(P,{sx:z.navBox,children:[l.jsx(it,{size:"small",disabled:i===0,onClick:()=>typeof d=="function"?d(0):null,sx:z.iconButton,"aria-label":"First page",children:l.jsx(hs,{sx:{width:16,height:16,opacity:1}})}),l.jsx(it,{size:"small",disabled:i===0,onClick:()=>typeof d=="function"?d(Math.max(0,i-1)):null,sx:z.iconButton,"aria-label":"Previous page",children:l.jsx(Kr,{sx:{width:16,height:16,opacity:1}})}),l.jsx(W,{component:"span",sx:z.pageText,children:k===0?"0-0 of 0":`${i*s+1}-${Math.min((i+1)*s,k)} of ${k}`}),l.jsx(it,{size:"small",disabled:i>=M,onClick:()=>typeof d=="function"?d(i+1):null,sx:z.iconButton,"aria-label":"Next page",children:l.jsx(Mt,{sx:{width:16,height:16,opacity:1}})}),l.jsx(it,{size:"small",disabled:i>=M,onClick:()=>typeof d=="function"?d(M):null,sx:z.iconButton,"aria-label":"Last page",children:l.jsx(gs,{sx:{width:16,height:16,opacity:1}})})]})]})]})})}const l5=({isOpen:e,onClose:t,onConfirm:n,catalogName:r})=>{const i=tt(),{universal:s}=i,a=i.productSettingModal;return l.jsx(Po,{open:e,onClose:t,"aria-labelledby":"delete-catalog-modal",sx:{...a.modal,p:{xs:2,sm:0}},children:l.jsxs(P,{sx:{...a.container,width:"100%",maxWidth:{xs:"min(360px, 100%)",sm:360},boxSizing:"border-box"},children:[l.jsx(P,{sx:a.header,children:l.jsxs(W,{sx:{...a.headerTitle,fontSize:{xs:18,sm:22},overflowWrap:"anywhere",width:"100%"},children:["Are you sure you want to delete this catalog",r?` "${r}"`:"","?"]})}),l.jsxs(P,{sx:{...a.footer,display:"flex",flexDirection:{xs:"column",sm:"row"},alignItems:"stretch",gap:2,justifyContent:"center",pt:{xs:1,sm:0}},children:[l.jsx(Ze,{variant:"contained",color:"primary",onClick:n,sx:{...s.getUniversalBlueButtonSx(),minWidth:{xs:0,sm:100},width:{xs:"100%",sm:"auto"}},children:"Yes"}),l.jsx(Ze,{variant:"outlined",color:"primary",onClick:t,sx:{minWidth:{xs:0,sm:100},width:{xs:"100%",sm:"auto"}},children:"No"})]})]})})};function c5(e){if(!e)return"";const t=new Date(e),n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];return`${t.getDate()} ${n[t.getMonth()]} ${t.getFullYear()}`}function d5(e){if(!e)return null;const t=e.slug,n=typeof t=="string"&&t.startsWith("/")?t:`/${t||""}`;return{...e,slug:n,slugRaw:typeof t=="string"?t.replace(/^\//,""):t||"",productsCount:e.productCount??e.productsCount??0,createdBy:e.createdByName??e.createdBy??"",date:c5(e.createdAt??e.date),createdAt:e.createdAt??e.date,status:e.status===!0?"Active":e.status===!1?"Inactive":e.status||"Active"}}function u5(e){const t=Lt(),n=fn(),{sharedCatalogues:r=[],sharedCataloguesTotal:i=0,sharedCataloguesLoading:s=!1,sharedCataloguesError:a=null}=Ye(U=>U.productSettings??{}),{updateCatalogLoading:c=!1,updateCatalogError:d=null}=Ye(U=>U.dashboard??{}),[p,u]=N.useState(0),[h,m]=N.useState(10),[y,g]=N.useState({}),[f,b]=N.useState(!1),[x,E]=N.useState(null),[w,S]=N.useState(!1),[T,v]=N.useState("");N.useEffect(()=>{n(hn({page:p+1,limit:h}))},[n,p,h]),N.useEffect(()=>()=>n({type:"dashboard/clearUpdateCatalogError"}),[n]);const k=N.useMemo(()=>Array.isArray(r)?r.map(d5).filter(Boolean):[],[r]),M=i,_=U=>u(U),z=U=>{const B=Number(U.target.value);m(B),u(0)},F=U=>y[U.id]??U.status,C=N.useCallback(()=>t(-1),[t]),{setSettingTopbarProps:I}=$o()||{};N.useEffect(()=>{if(I)return I({onBack:C}),()=>I({})},[I,C]);const $=async U=>{const{id:B,name:O,slug:j,status:H}=U;await n(fi({id:B,name:O,slug:j,status:H})).unwrap(),n(hn({page:p+1,limit:h}))},D=async(U,B)=>{const O=U.slugRaw??(typeof U.slug=="string"?U.slug.replace(/^\//,""):"")??"";g(j=>({...j,[U.id]:B?"Active":"Inactive"}));try{await n(fi({id:U.id,name:U.name??"",slug:O,status:B})).unwrap(),n(hn({page:p+1,limit:h}))}catch{g(j=>({...j,[U.id]:U.status}))}},L=U=>{E(U),b(!0)},V=()=>{b(!1),E(null)},Y=async()=>{if(!x?.id){V();return}try{await n(na(x.id)).unwrap(),v("Catalog delete Successfully"),S(!0),V(),n(hn({page:p+1,limit:h}))}catch{v("Failed to delete catalog"),S(!0)}};return s&&k.length===0?l.jsx(P,{sx:{minHeight:"100vh",bgcolor:Ct},children:l.jsx(Ut,{maxWidth:"md",sx:{boxSizing:"border-box"},children:l.jsx(P,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"60vh"},children:l.jsx(Vr,{})})})}):a&&k.length===0?l.jsx(P,{sx:{minHeight:"100vh",bgcolor:Ct},children:l.jsx(Ut,{maxWidth:"md",sx:{boxSizing:"border-box"},children:l.jsx(P,{sx:{textAlign:"center",py:4},children:l.jsx(W,{color:"error",children:a})})})}):l.jsxs(l.Fragment,{children:[l.jsx(a5,{catalogs:k,totalCount:M,page:p,rowsPerPage:h,statusById:y,getStatus:F,onBack:C,onPageChange:_,onRowsPerPageChange:z,onStatusChange:D,onSave:$,onDelete:L,updateCatalogError:d,updateCatalogLoading:c,...e}),l.jsx(l5,{isOpen:f,onClose:V,onConfirm:Y,catalogName:x?.name}),l.jsx(Do,{open:w,autoHideDuration:4e3,onClose:()=>S(!1),message:T,anchorOrigin:{vertical:"top",horizontal:"center"}})]})}const kl=yt(l.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline"),p5=yt([l.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),l.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function hu(e){return l.jsx(p5,{...e})}function f5({styles:e={},selectedProducts:t=[],data:n,onSelectProduct:r,categoryName:i,showLimitedColumns:s=!1,pagination:a=null,totalProductsCountForHeader:c=0,onPageChange:d,onLimitChange:p}){const{universal:u}=tt(),h=u.globalTableScaffoldStyles,m=e?.categoryTableAllStore??{},y=e?.categoryTableSingleStore??{},g=e?.categoryTableShared??{},f=e?.categoryTablePagination??u.globalPaginationStyles??{},b=_t("(max-width:900px)"),x=_t("(max-width:400px)"),E=_t("(max-width:550px)"),w=_t("(max-width:770px)"),S=_t("(max-width:650px)"),T=_t("(max-width:500px)"),v=_t("(max-width:400px)"),k=!s,M=k&&w,_=y.metricColumnExtraML??{xs:1,sm:1.5,md:2},z=y.priceColumnExtraML??{xs:1.25,sm:1.5,md:2},F="16px",C="10px",I=F,$="16px",D=Q=>t.some(pe=>pe.id===Q.id),L=Number(c>0?c:a?.totalCount??n?.length??0),V=t.length,Y=L>0&&V===L,U=V>0,B=n.some(D),O=U&&!Y&&B,j=()=>{Y||O?t.forEach(Q=>r(Q,i)):n.forEach(Q=>{D(Q)||r(Q,i)})},H=l.jsx("span",{style:g.checkboxCheckedIconSpan,children:l.jsx(dn,{sx:g.checkboxTickIconHeaderSx})}),G=l.jsx("span",{style:g.checkboxCheckedIconSpan,children:l.jsx("span",{style:g.checkboxCheckedIconInner})}),[X,te]=N.useState(null),[le,ce]=N.useState([]),ae=(Q,pe)=>{te(Q.currentTarget),ce(pe)},Z=()=>{te(null),ce([])},R=!!X,q=k?y.outerCard:m.outerCard,ie=k?"6px":"4px";return l.jsx(Ut,{maxWidth:!1,sx:h.container,children:l.jsxs(Ki,{sx:{...h.card,...e.ProductTable,...q,display:"flex",flexDirection:"column",boxShadow:"none",borderRadius:0,bgcolor:"transparent",overflow:"visible",width:"100%",maxWidth:"100%",marginLeft:0,marginRight:0},children:[l.jsx(P,{sx:{...m.categoryNameBox,display:"flex",alignItems:"center",mb:ie,boxSizing:"border-box",overflow:"hidden"},children:l.jsx(W,{sx:{...m.categoryNameText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i})}),!(k&&!x)&&l.jsxs(P,{sx:{...h.headerBox,display:"flex",flexWrap:x&&k?"wrap":"nowrap",alignItems:"center",width:"100%",minWidth:0,...k?y.tableHeader:m.tableHeader,boxSizing:"border-box",gap:x?"8px":k&&b?"12px":"16px"},children:[s?l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:{display:"flex",alignItems:"center",flexShrink:0},children:l.jsx(Nt,{checked:Y,indeterminate:O,onChange:j,size:"small",sx:g.checkboxHeaderSx,icon:l.jsx("span",{style:g.checkboxIconSpanHeader}),checkedIcon:H,indeterminateIcon:G})}),l.jsx(P,{sx:{display:"flex",alignItems:"center",minWidth:0,flex:"1 1 0"},children:l.jsx(W,{component:"span",sx:m.headerProduct,children:"Product"})})]}):l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:x?"8px":b?"12px":"16px",flex:"1 1 0",minWidth:0,...k&&!x&&{maxWidth:"40%"}},children:[l.jsx(Nt,{checked:Y,indeterminate:O,onChange:j,size:"small",sx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #D0D5DD",bgcolor:Ue},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:Ue,color:"#1976d2",border:"0.5px solid #1976d2"},"&.MuiCheckbox-indeterminate .MuiSvgIcon-root":{bgcolor:Ue,color:"#1976d2",border:"0.5px solid #1976d2"}},icon:l.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #D0D5DD",background:Ue}}),checkedIcon:H,indeterminateIcon:G}),l.jsx(W,{component:"span",sx:{...y.headerLabel,...y.headerProduct},children:"Product"})]}),!x&&(k?l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:{...y.headerStatus,display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0,flex:"0 1 auto"},children:l.jsx(W,{component:"span",sx:{...y.headerLabel},children:"Status"})}),l.jsx(P,{sx:{...y.headerPrice,display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0,flex:"0 1 auto",ml:z},children:l.jsx(W,{component:"span",sx:{...y.headerLabel},children:"Price"})}),l.jsx(P,{sx:{...y.headerStock,display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0,flex:"0 1 auto",ml:_},children:l.jsx(W,{component:"span",sx:{...y.headerLabel},children:"Stock"})}),l.jsxs(P,{sx:{display:"flex",alignItems:"center",minWidth:0,flex:"0 1 auto",ml:_,...y.headerOffer},children:[l.jsx(W,{component:"span",sx:{...y.headerLabel},children:"Offer"}),l.jsx(Tl,{sx:{...m.arrowDown,fontSize:12,marginTop:"8px",marginLeft:"auto"}})]})]}):l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexShrink:0,mr:6},children:l.jsx(W,{component:"span",sx:m.headerStatusText,children:"Status"})}),!E&&l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexShrink:0,mr:2},children:l.jsx(W,{component:"span",sx:m.headerOsaText,children:"Stock / OSA"})}),l.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexShrink:0,mr:0},children:l.jsx(Tl,{sx:{fontSize:12,height:12,color:"#808080",marginLeft:"8px",marginTop:"8px"}})})]})]}))]}),(function(){const Q=k&&!x,pe=n.map((K,ve)=>{let be=[];K.offers&&Array.isArray(K.offers)?be=K.offers:K.offer&&typeof K.offer=="string"&&K.offer.includes(`
|
|
1581
|
-
`)?
|
|
1582
|
-
`):K.offer&&Array.isArray(K.offer)?be=K.offer:K.offer&&(be=[K.offer]);const _e=be[0]||"",$e=be.length>1?be.slice(1):[];return l.jsxs(P,{sx:{...k&&!x?{gridColumn:"1 / -1",display:"grid",gridTemplateColumns:"subgrid",alignItems:"flex-start",boxSizing:"border-box",mt:0,mb:0,width:"100%",maxWidth:"100%",minWidth:0,...y.rowCard,columnGap:F,...w&&{height:"auto",minHeight:152}}:{display:"flex",flexDirection:x&&k?"column":"row",alignItems:"flex-start",flexWrap:x&&k?"nowrap":"wrap",...k?y.rowCard:m.rowCard,...M&&{height:"auto",minHeight:152},gap:x?"8px":"16px",boxSizing:"border-box",mt:ve===0?.5:0,mb:.5,width:"100%",maxWidth:"100%",minWidth:0}},children:[!(k&&v)&&l.jsx(P,{sx:{display:"flex",alignItems:"flex-start",width:16,minHeight:20,flexShrink:0},children:l.jsx(Nt,{checked:D(K),onChange:()=>r(K,i),size:"small",sx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #454545",bgcolor:Ue},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:Ue,color:"#2563EB",border:"0.5px solid #2563EB"}},icon:l.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #454545",background:Ue}}),checkedIcon:l.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #2563EB",background:Ue,position:"relative"},children:l.jsx(dn,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:10,height:10,color:"#2563EB"}})})})}),l.jsx(P,{sx:{display:"flex",flexDirection:k&&w?"column":"row",alignItems:k&&w?"flex-start":k?"center":"flex-start",height:k&&!M&&!w?56:void 0,minHeight:56,gap:"16px",minWidth:0,flex:x?"0 0 auto":"1 1 0",width:x||k&&w?"100%":void 0,overflow:M||w?"visible":"hidden",...k?y.productBlock:m.productBlock,...k&&{width:void 0,maxWidth:"100%",flex:x?"0 0 auto":"1 1 0"},...(M||k&&w)&&{height:"auto"},...!k&&!x&&{height:void 0},...!k&&x&&{height:76,minHeight:76,maxHeight:76,overflow:"hidden"},...k&&!x&&{ml:C}},children:k&&w?l.jsxs(l.Fragment,{children:[l.jsxs(P,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",gap:x?"8px":F,minWidth:0,width:"100%",flex:"0 0 auto"},children:[v&&l.jsx(P,{sx:{display:"flex",alignItems:"flex-start",width:16,minHeight:20,flexShrink:0},children:l.jsx(Nt,{checked:D(K),onChange:()=>r(K,i),size:"small",sx:g.checkboxRowSx,icon:l.jsx("span",{style:g.checkboxIconSpanRow}),checkedIcon:l.jsx("span",{style:g.checkboxRowCheckedIconSpan,children:l.jsx(dn,{sx:g.checkboxTickIconRowSx})})})}),l.jsx(P,{sx:{...m.imageBox,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0},children:K.productImage?l.jsx(cr,{src:K.productImage,alt:K.productName,sx:{width:56,height:56,borderRadius:"8px"}}):l.jsx(cr,{sx:{width:56,height:56,borderRadius:"8px",bgcolor:"#e0e0e0",color:"#888",fontWeight:700,fontSize:20},children:K.productName&&K.productName[0]})}),l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0,maxWidth:"100%",overflow:"hidden"},children:[l.jsx(W,{sx:{...m.productName,wordBreak:"break-word",overflowWrap:"break-word",whiteSpace:"normal",overflow:"hidden",fontSize:"12px",lineHeight:"16px"},children:K.productName}),l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px",flexWrap:"wrap",minWidth:0,overflow:"hidden"},children:[l.jsx(W,{sx:{...m.productMeta,fontSize:"10px",lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis"},children:K.productWeight}),K.categoryName&&l.jsxs(l.Fragment,{children:[l.jsx(W,{component:"span",sx:{...m.productMeta,fontSize:"10px",lineHeight:"12px"},children:"•"}),l.jsx(W,{component:"span",sx:{...m.productMeta,fontSize:"10px",lineHeight:"12px"},children:K.categoryName})]})]}),l.jsxs(W,{sx:{...m.productSku,fontSize:"10px",lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis"},children:["SKU: ",K.sku]})]})]}),S?l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"24px",width:"100%",ml:v?"32px":0},children:[v&&l.jsxs(P,{sx:{display:"flex",flexDirection:"row",gap:"50px",alignItems:"center",flexWrap:"wrap",width:"100%"},children:[l.jsx(P,{component:"span",sx:K.status===!0?m.statusActiveBox:m.statusNoStockBox,children:K.status===!0?"Active":"No Stock"}),l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",...y.priceBlock},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:[l.jsxs(W,{sx:y.priceText,children:["₹",K.price]}),l.jsx(P,{sx:{...y.clockIcon,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:l.jsx(hu,{sx:{fontSize:14,color:"#808080"}})})]}),K.mrp&&l.jsxs(W,{sx:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#808080",textDecoration:"line-through"},children:["₹",K.mrp]}),K.discount&&l.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#22c55e",fontWeight:500},children:K.discount})]})]}),T&&!v&&l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",...y.priceBlock},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:[l.jsxs(W,{sx:y.priceText,children:["₹",K.price]}),l.jsx(P,{sx:{...y.clockIcon,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:l.jsx(hu,{sx:{fontSize:14,color:"#808080"}})})]}),K.mrp&&l.jsxs(W,{sx:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#808080",textDecoration:"line-through"},children:["₹",K.mrp]}),K.discount&&l.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#22c55e",fontWeight:500},children:K.discount})]}),l.jsxs(P,{sx:{display:"flex",flexDirection:"row",gap:"50px",alignItems:"center",flexWrap:"wrap",width:"100%"},children:[l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"2px",flexShrink:0},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:0},children:[K.stock===0&&l.jsx(Bo,{title:"No stock",children:l.jsx(kl,{sx:{color:"#d32f2f",fontSize:16,mr:.5}})}),l.jsx(W,{component:"span",sx:m.stockValue,children:K.stock}),l.jsx(W,{component:"span",sx:m.osaValue,children:K.quantity!==null&&K.quantity!==void 0?`/${K.quantity}`:""})]}),(()=>{const Ae=typeof K.osa=="number"?K.osa:K.osa??0,de=Number(Ae),qe=de<=50;return l.jsxs(W,{sx:{...m.onShelfText,fontSize:"10px",color:y.onShelfPercentNormal?.color||"#454545"},children:[l.jsxs(P,{component:"span",sx:qe?{color:y.onShelfPercentRed?.color||"#d32f2f"}:{},children:[Math.round(de),"%"]}),l.jsx(P,{component:"span",sx:{color:y.onShelfSpan?.color||"#808080"},children:" on shelf"})]})})()]}),l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:0,flex:1,minWidth:0},children:[l.jsx(W,{sx:{...y.offerText,whiteSpace:"pre-line",fontSize:"12px",lineHeight:"16px"},children:_e}),$e.length>0&&l.jsxs(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545",cursor:"pointer",textDecoration:"underline"},onClick:Ae=>ae(Ae,be),children:["+",$e.length," more"]})]})]})]}):l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:0,width:"100%"},children:[l.jsx(W,{sx:{...y.offerText,whiteSpace:"pre-line",fontSize:"12px",lineHeight:"16px"},children:_e}),$e.length>0&&l.jsxs(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545",cursor:"pointer",textDecoration:"underline"},onClick:Ae=>ae(Ae,be),children:["+",$e.length," more"]})]})]}):l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:{...m.imageBox,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0,mb:0},children:K.productImage?l.jsx(cr,{src:K.productImage,alt:K.productName,sx:{width:56,height:56,borderRadius:"8px"}}):l.jsx(cr,{sx:{width:56,height:56,borderRadius:"8px",bgcolor:"#e0e0e0",color:"#888",fontWeight:700,fontSize:20},children:K.productName&&K.productName[0]})}),l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0,maxWidth:"100%",overflow:"hidden",...!k&&x&&{height:76,minHeight:76,maxHeight:76}},children:[l.jsx(W,{sx:{...m.productName,wordBreak:"break-word",overflowWrap:"break-word",whiteSpace:"normal",overflow:"hidden",fontSize:"12px",lineHeight:"16px",...!k&&x&&{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"}},children:K.productName}),l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px",minWidth:0,overflow:"hidden",flexWrap:!k&&x?"nowrap":"wrap"},children:[l.jsx(W,{sx:{...m.productMeta,fontSize:"10px",lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",flexShrink:!k&&x?0:void 0},children:K.productWeight}),K.categoryName&&l.jsxs(l.Fragment,{children:[l.jsx(W,{component:"span",sx:{...m.productMeta,fontSize:"10px",lineHeight:"12px",flexShrink:0},children:"•"}),l.jsx(W,{component:"span",sx:{...m.productMeta,fontSize:"10px",lineHeight:"12px",...!k&&x&&{minWidth:0,overflow:"hidden",textOverflow:"ellipsis",flex:"1 1 0"}},children:K.categoryName})]})]}),l.jsxs(W,{sx:{...m.productSku,fontSize:"10px",lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",...!k&&x&&{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"}},children:["SKU: ",K.sku]})]})]})}),(k&&!x||!k&&!x)&&l.jsx(P,{sx:{display:"flex",alignItems:"flex-start",justifyContent:k&&!x?"flex-start":void 0,textAlign:k&&!x?"left":void 0,...k?y.statusBlock:{},flexShrink:0,minWidth:0,width:x?"100%":void 0,mt:x?1:0,mr:!k&&!x?4:0,...k&&!x&&{alignSelf:"flex-start",marginTop:0}},children:l.jsx(P,{component:"span",sx:K.status===!0?m.statusActiveBox:m.statusNoStockBox,children:K.status===!0?"Active":"No Stock"})}),!k&&!E&&l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",alignItems:"flex-start",flexShrink:0,minWidth:0,width:x?"100%":void 0,mt:x?1:0,ml:x?0:.5,textAlign:"left",marginRight:"56px"},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"flex-start",gap:0},children:[K.stock===0&&l.jsx(Bo,{title:"No stock",children:l.jsx(kl,{sx:{color:"#d32f2f",fontSize:16,mr:.5}})}),l.jsx(W,{component:"span",sx:m.stockValue,children:K.stock}),l.jsx(W,{component:"span",sx:m.osaValue,children:K.quantity!==null&&K.quantity!==void 0?`/${K.quantity}`:""})]}),(()=>{const Ae=Number(typeof K.osa=="number"?K.osa:K.osa??0),de=Ae<=50;return l.jsxs(W,{sx:{...m.onShelfText,color:"#808080",textAlign:"left"},children:[l.jsxs(P,{component:"span",sx:de?{color:"#d32f2f"}:{},children:[Math.round(Ae),"%"]})," on shelf"]})})()]}),!k&&E&&l.jsx(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",alignItems:"flex-start",width:"100%",mt:1,ml:"32px",...x&&{minHeight:48}},children:l.jsxs(P,{sx:{display:"flex",alignItems:"flex-start",gap:12,flexWrap:x?"nowrap":"wrap"},children:[x&&l.jsx(P,{component:"span",sx:K.status===!0?m.statusActiveBox:m.statusNoStockBox,children:K.status===!0?"Active":"No Stock"}),l.jsxs(P,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:0},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"flex-start",gap:0},children:[K.stock===0&&l.jsx(Bo,{title:"No stock",children:l.jsx(kl,{sx:{color:"#d32f2f",fontSize:16,mr:.5}})}),l.jsx(W,{component:"span",sx:m.stockValue,children:K.stock}),l.jsx(W,{component:"span",sx:m.osaValue,children:K.quantity!==null&&K.quantity!==void 0?`/${K.quantity}`:""})]}),(()=>{const Ae=Number(typeof K.osa=="number"?K.osa:K.osa??0),de=Ae<=50;return l.jsxs(W,{sx:{...m.onShelfText,color:"#808080",textAlign:"left"},children:[l.jsxs(P,{component:"span",sx:de?{color:"#d32f2f"}:{},children:[Math.round(Ae),"%"]})," on shelf"]})})()]})]})}),k&&!T&&l.jsxs(P,{sx:{display:"flex",flexDirection:"column",...y.priceBlock,flexShrink:0,minWidth:0,flex:"0 1 auto",width:x?"100%":void 0,mt:x?1:0,...!x&&{ml:z}},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:[l.jsxs(W,{sx:y.priceText,children:["₹",K.price]}),l.jsx(P,{sx:{...y.clockIcon,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:l.jsx(hu,{sx:{fontSize:14,color:"#808080"}})})]}),K.mrp&&l.jsxs(W,{sx:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#808080",textDecoration:"line-through"},children:["₹",K.mrp]}),K.discount&&l.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#22c55e",fontWeight:500},children:K.discount})]}),k&&!S&&l.jsxs(P,{sx:{display:"flex",flexDirection:"column",...y.stockBlock,flexShrink:0,minWidth:0,width:x?"100%":void 0,mt:x?1:0,...!x&&{ml:_}},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:0},children:[K.stock===0&&l.jsx(Bo,{title:"No stock",children:l.jsx(kl,{sx:{color:"#d32f2f",fontSize:16,mr:.5}})}),l.jsx(W,{component:"span",sx:m.stockValue,children:K.stock}),l.jsx(W,{component:"span",sx:m.osaValue,children:K.quantity!==null&&K.quantity!==void 0?`/${K.quantity}`:""})]}),(()=>{const Ae=typeof K.osa=="number"?K.osa:K.osa??0,de=Number(Ae),qe=de<=50;return l.jsxs(W,{sx:{...m.onShelfText,fontSize:"10px",color:y.onShelfPercentNormal.color},children:[l.jsxs(P,{component:"span",sx:qe?{color:y.onShelfPercentRed.color}:{},children:[Math.round(de),"%"]})," ",l.jsx(P,{component:"span",sx:{color:y.onShelfSpan.color},children:"on shelf"})]})})()]}),k&&!w&&l.jsxs(P,{sx:{display:"flex",flexDirection:"column",...y.offerBlock,minWidth:0,flex:"0 1 auto",width:x?"100%":void 0,mt:x?1:0,...!x&&{ml:_}},children:[l.jsx(W,{sx:{...y.offerText,whiteSpace:"pre-line"},children:_e}),$e.length>0&&l.jsxs(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545",cursor:"pointer",textDecoration:"underline"},onClick:Ae=>ae(Ae,be),children:["+",$e.length," more"]})]})]},K.id||ve)});return Q?l.jsxs(P,{sx:{display:"grid",gridTemplateColumns:v?"minmax(0, 1fr)":T?`${$} minmax(140px, min(360px, 100%)) auto`:S?`${$} minmax(160px, min(440px, 100%)) auto auto`:w?`${$} minmax(180px, min(480px, 100%)) auto auto auto`:`${$} minmax(180px, min(440px, 100%)) auto auto auto auto`,columnGap:I,rowGap:"4px",alignItems:"start",width:"100%",minWidth:0,boxSizing:"border-box"},children:[l.jsx(P,{sx:{gridColumn:"1 / -1",display:"grid",gridTemplateColumns:"subgrid",alignItems:"center",...y.tableHeader,columnGap:F,boxSizing:"border-box"},children:v?l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:F,minWidth:0},children:[l.jsx(Nt,{checked:Y,indeterminate:O,onChange:j,size:"small",sx:g.checkboxHeaderSx,icon:l.jsx("span",{style:g.checkboxIconSpanHeader}),checkedIcon:H,indeterminateIcon:G}),l.jsx(W,{component:"span",sx:{...y.headerLabel,...y.headerProduct},children:"Product"})]}):l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:{display:"flex",alignItems:"center",flexShrink:0},children:l.jsx(Nt,{checked:Y,indeterminate:O,onChange:j,size:"small",sx:g.checkboxHeaderSx,icon:l.jsx("span",{style:g.checkboxIconSpanHeader}),checkedIcon:H,indeterminateIcon:G})}),l.jsx(P,{sx:{display:"flex",alignItems:"center",minWidth:0,ml:C},children:l.jsx(W,{component:"span",sx:{...y.headerLabel,...y.headerProduct},children:"Product"})}),!v&&l.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0},children:l.jsx(W,{component:"span",sx:{...y.headerLabel},children:"Status"})}),!T&&l.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0,ml:z},children:l.jsx(W,{component:"span",sx:{...y.headerLabel},children:"Price"})}),!S&&l.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0,ml:_},children:l.jsx(W,{component:"span",sx:{...y.headerLabel},children:"Stock"})}),!w&&l.jsxs(P,{sx:{display:"flex",alignItems:"center",minWidth:0,ml:_,...y.headerOffer},children:[l.jsx(W,{component:"span",sx:{...y.headerLabel},children:"Offer"}),l.jsx(Tl,{sx:{...m.arrowDown,fontSize:12,marginTop:"8px",marginLeft:"auto"}})]})]})}),pe]}):pe})(),l.jsxs(Gd,{open:R,anchorEl:X,onClose:Z,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{sx:{p:2,minWidth:220}},children:[l.jsx(W,{sx:{fontWeight:700,mb:1},children:"Offers"}),le.map((Q,pe)=>l.jsxs(W,{sx:{fontSize:14,color:"#222",mb:.5},children:[pe+1,". ",Q]},pe))]}),a&&typeof d=="function"&&typeof p=="function"&&l.jsxs(P,{sx:{...f.wrapper,width:"100%",maxWidth:"100%"},children:[l.jsxs(P,{sx:f.resultsPerPageBox,children:[l.jsx(W,{component:"span",sx:f.resultsPerPageText,children:"Results per page"}),l.jsx(cn,{value:a.limit??10,onChange:Q=>p(Number(Q.target.value)),IconComponent:dr,variant:"standard",disableUnderline:!0,sx:f.select,children:[5,10,20,50].map(Q=>l.jsx(et,{value:Q,children:Q},Q))})]}),l.jsxs(P,{sx:f.navBox,children:[l.jsx(it,{size:"small",disabled:(a.currentPage??1)<=1,onClick:()=>d(1),sx:f.iconButton,title:"First page",children:l.jsx(hs,{sx:f.paginationIcon})}),l.jsx(it,{size:"small",disabled:(a.currentPage??1)<=1,onClick:()=>d((a.currentPage??1)-1),sx:f.iconButton,title:"Previous page",children:l.jsx(Kr,{sx:f.paginationIcon})}),l.jsx(W,{component:"span",sx:f.pageText,children:(a.totalCount??0)===0?"0 of 0":`${((a.currentPage??1)-1)*(a.limit??10)+1}-${Math.min((a.currentPage??1)*(a.limit??10),a.totalCount??0)} of ${a.totalCount??0}`}),l.jsx(it,{size:"small",disabled:!(a.hasNextPage??!1)||(a.currentPage??1)>=(a.totalPages??1),onClick:()=>d((a.currentPage??1)+1),sx:f.iconButton,title:"Next page",children:l.jsx(Mt,{sx:f.paginationIcon})}),l.jsx(it,{size:"small",disabled:!(a.hasNextPage??!1)||(a.currentPage??1)>=(a.totalPages??1),onClick:()=>d(a.totalPages??1),sx:f.iconButton,title:"Last page",children:l.jsx(gs,{sx:f.paginationIcon})})]})]})]})})}const h5={category:"all",status:"all",search:"",store:[]},g5=()=>{const e=fn(),t=Lt(),n=zt(),[r]=Yb(),i=r.get("categoryName"),s=tt(),a=s.productDetail,[c,d]=N.useState(()=>({...h5,...n.state?.filters||{}})),p=N.useMemo(()=>JSON.stringify(Array.isArray(c.store)?[...c.store].map(String).sort():[]),[c.store]),u=(Array.isArray(n.state?.selectedProducts)?n.state.selectedProducts:[]).reduce((Te,Ve)=>{const Xe=(Ve.categoryName||Ve.category||i||"").toString().trim();if(!Xe)return Te;const Ft=Te[Xe]||[];return Ft.some(Et=>Et.id===Ve.id)?Te[Xe]=Ft:Te[Xe]=[...Ft,Ve],Te},{}),[h,m]=N.useState(u),[y,g]=N.useState(!1),[f,b]=N.useState([]),[x,E]=N.useState(!1),[w,S]=N.useState(!1),{integrationData:T,companyId:v,loading:k,productsLoading:M}=Ye(ye=>ye.dashboard),_=N.useRef(!1),z=N.useRef(!1),[F,C]=N.useState(!1);N.useEffect(()=>{!v&&!_.current&&!k&&(_.current=!0,e(ui()))},[e,v,k]),N.useEffect(()=>{C(!1)},[i]);const I=N.useMemo(()=>T&&typeof T=="object"&&Object.keys(T).length>0?{matched:!0,error:"",apiResponse:T,loading:!1}:{matched:!1,error:"No active integration found",apiResponse:null,loading:!1},[T]),$=Ye(ye=>ye.dashboard),{products:D=[],stores:L=[],pagination:V={},categoryList:Y=[]}=$||{},{currentPage:U=1,limit:B=10,totalCount:O=0,totalPages:j=1,hasNextPage:H=!1}=V,G=Ye(ye=>{const Te=ye.dashboard?.stores;return!Array.isArray(Te)||Te.length===0?"":Te.map(Ve=>`${Ve.id??""}:${Ve.storeCode??""}`).join("|")}),{sharedCatalogues:X=[],sharedCataloguesTotal:te=0,lastStableActiveCatalogsCount:le=null}=Ye(ye=>ye.productSettings??{}),ce=N.useMemo(()=>Array.isArray(X)?X.filter(ye=>ye.status===!0).length:0,[X]),Z=te>0&&X.length>=te?ce:le??ce,R=N.useMemo(()=>{if(!i||!Array.isArray(D))return[];const ye=i.trim().toLowerCase();return D.filter(Te=>{const Ve=(Te.categoryName||Te.category||"").toString().trim().toLowerCase();return Ve&&Ve===ye}).map(Te=>({...Te,catalogProductId:Te.productId||Te.id,id:Te.id||Te.sku||Te.productName}))},[D,i]),q=R.length>0,ie=Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories:[],Q=i?i.toString().trim().toLowerCase():"",pe=ie.find(ye=>{const Te=(ye?.categoryName??ye?.name??"").toString().trim();return Te&&Q&&Te.toLowerCase()===Q}),K=Number(pe?.productCount??pe?.productsCount??pe?.products)||0,ve=Array.isArray(Y)?Y.find(ye=>{const Te=(ye?.categoryName??ye?.name??"").toString().trim().toLowerCase();return Te&&Q&&Te===Q}):null,be=Number(ve?.productCount??ve?.productsCount??ve?.products)||0,_e=K>0?K:be,$e=c?.status&&c.status!=="all"||c?.stock&&c.stock!=="all"||Array.isArray(c?.store)&&c.store.length>0&&!c.store.includes("all")||c?.search!=null&&String(c.search).trim()!==""||typeof c?.minPrice=="number"&&Number.isFinite(c.minPrice)||typeof c?.maxPrice=="number"&&Number.isFinite(c.maxPrice),Ae=i&&Number.isFinite(_e)&&_e>0&&O>_e,de=Ae?_e:O,He=Ae?Math.max(1,Math.ceil(de/((B??10)||10))):j,ue=Ae?(U??1)<He:H,re=N.useMemo(()=>{if(!R||R.length===0)return;const ye=R.map(Te=>Number(Te.price??Te.sellingPrice??Te.mrp)).filter(Te=>Number.isFinite(Te)&&Te>=0);if(ye.length!==0)return{min:Math.min(...ye),max:Math.max(...ye)}},[R]),xe=N.useRef(!1);N.useEffect(()=>{v&&(Array.isArray(Y)&&Y.length>0||e(Mn({page:1,limit:10})))},[e,v,Y]),N.useEffect(()=>{if(!v||!i||xe.current||!Array.isArray(Y)||Y.length===0)return;Y.some(Te=>{const Ve=(Te?.categoryName??Te?.name??"").toString().trim().toLowerCase();return Ve&&Ve===Q})||(xe.current=!0,e(Mn({page:1,limit:5e3})))},[e,v,i,Y,Q]);const Se=Array.isArray(D)&&D.length>0,we=Array.isArray(c.store)?c.store:[],ge=!(we.length===1&&we[0]!=="all"),Re=ye=>{ye.preventDefault(),t("/settings",{state:{tenantIntegrationData:I.apiResponse}})},ze=N.useMemo(()=>L.length>0?L:[{id:"all",name:"All Stores",storeCode:"all"}],[L]),nt=N.useCallback(ye=>{d(ye)},[d]),kt=N.useCallback(()=>{const Te=c?.sortBy==="productName"&&c?.sortOrder==="asc"?"desc":"asc";nt({...c,sortBy:"productName",sortOrder:Te})},[c,nt]),fe=c?.sortBy==="productName"&&c?.sortOrder==="asc"?180:0,Oe=N.useCallback((ye={})=>{const Te=Array.isArray(c.store)?c.store:[],Ve={page:U,limit:B,...ye};if(i&&i.trim()&&(Ve.categoryName=i.trim()),Te.length>0&&!Te.includes("all")){const Xe=Te.map(Ft=>L.find(Tr=>Tr.id===Ft)?.storeCode).filter(Boolean);Xe.length>0&&(Ve.storeCode=Xe.join(","))}return(c.status==="active"||c.status==="inactive")&&(Ve.status=c.status==="active"),(c.stock==="inStock"||c.stock==="outOfStock")&&(Ve.inStock=c.stock==="inStock"),typeof c.minPrice=="number"&&Number.isFinite(c.minPrice)&&(Ve.minPrice=c.minPrice),typeof c.maxPrice=="number"&&Number.isFinite(c.maxPrice)&&(Ve.maxPrice=c.maxPrice),c.search!=null&&String(c.search).trim()!==""&&(Ve.search=String(c.search).trim()),c.sortBy&&(c.sortOrder==="asc"||c.sortOrder==="desc")&&(Ve.sortBy=c.sortBy,Ve.sortOrder=c.sortOrder==="asc"?"ASC":"DESC"),Ve},[i,U,B,p,c.status,c.stock,c.minPrice,c.maxPrice,c.search,c.sortBy,c.sortOrder,G]),se=ye=>{e(Mr(Oe({page:ye})))},Ce=ye=>{e(Mr(Oe({page:1,limit:ye})))},Ne=N.useCallback((ye,Te={})=>{const Ve=Array.isArray(c.store)?c.store:[],Xe={page:1,limit:5e3,...Te};if(ye&&String(ye).trim()!==""&&(Xe.categoryName=String(ye).trim()),Ve.length>0&&!Ve.includes("all")){const Ft=Ve.map(Et=>L.find(jo=>jo.id===Et)?.storeCode).filter(Boolean);Ft.length>0&&(Xe.storeCode=Ft.join(","))}return c.search!=null&&String(c.search).trim()!==""&&(Xe.search=String(c.search).trim()),Xe},[c.store,c.search,L]),Le=N.useCallback(async()=>{const Te=(Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories:[]).map(mt=>(mt?.categoryName??mt?.name??"").toString().trim()).filter(Boolean),Ve=Array.isArray(h[i])?h[i]:[],Xe=[];for(const mt of Te){if(mt===i){Ve.length>0&&Xe.push(Ve);continue}try{const Xn=Ne(mt),Ar=await e(ea(Xn)).unwrap().catch(()=>({})),O5=Array.isArray(Ar?.data)?Ar.data:Array.isArray(Ar?.products)?Ar.products:Array.isArray(Ar)?Ar:[];Xe.push(O5)}catch{Xe.push([])}}Ve.length>0&&!Te.includes(i)&&Xe.push(Ve);const Ft=new Set(Te);Object.keys(h||{}).forEach(mt=>{if(mt===i||Ft.has(mt))return;const Xn=h[mt];Array.isArray(Xn)&&Xn.length>0&&Xe.push(Xn)});const Et=Xe.flat().filter(Boolean),Tr=new Set,jo=Et.map(mt=>({...mt,catalogProductId:mt?.productId??mt?.catalogProductId??mt?.id,id:mt?.id||mt?.sku||mt?.productName})).filter(mt=>{const Xn=(mt?.productId||mt?.id||mt?.sku||mt?.productName||"").toString();return!Xn||Tr.has(Xn)?!1:(Tr.add(Xn),!0)});b(jo),g(!0)},[e,i,n.state,h,Ne]),De=N.useRef(null),ut=N.useRef(null),st=N.useRef(null);N.useEffect(()=>{if(!v)return;const ye=i?.trim()||"",Te=st.current,Ve=!!ye&&Te!==ye;Ve&&(e(If()),st.current=ye);const Xe=Ve?1:U,Ft=Array.isArray(c.store)?c.store:[],Et={page:Xe,limit:B};if(i&&i.trim()&&(Et.categoryName=i.trim()),Ft.length>0&&!Ft.includes("all")){const jo=Ft.map(mt=>L.find(Ar=>Ar.id===mt)?.storeCode).filter(Boolean);jo.length>0&&(Et.storeCode=jo.join(","))}(c.status==="active"||c.status==="inactive")&&(Et.status=c.status==="active"),(c.stock==="inStock"||c.stock==="outOfStock")&&(Et.inStock=c.stock==="inStock"),typeof c.minPrice=="number"&&Number.isFinite(c.minPrice)&&(Et.minPrice=c.minPrice),typeof c.maxPrice=="number"&&Number.isFinite(c.maxPrice)&&(Et.maxPrice=c.maxPrice),c.search!=null&&String(c.search).trim()!==""&&(Et.search=String(c.search).trim()),c.sortBy&&(c.sortOrder==="asc"||c.sortOrder==="desc")&&(Et.sortBy=c.sortBy,Et.sortOrder=c.sortOrder==="asc"?"ASC":"DESC");const Tr=JSON.stringify(Et);De.current!==Tr&&(De.current=Tr,e(Mr(Et)))},[v,i,U,B,p,c.status,c.stock,c.minPrice,c.maxPrice,c.search,c.sortBy,c.sortOrder,e,G]);const Rt=(ye,Te)=>{C(!0),m(Ve=>{const Xe=Ve[Te]||[];let Ft;return Xe.some(Et=>Et.id===ye.id)?Ft=Xe.filter(Et=>Et.id!==ye.id):Ft=[...Xe,ye],{...Ve,[Te]:Ft}})};N.useEffect(()=>{if(z.current||!i||!Array.isArray(R)||R.length===0||!(Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories:[]).map(Xe=>Xe?.categoryName??Xe?.name??Xe).filter(Boolean).includes(i))return;if((h[i]||[]).length>0){z.current=!0;return}queueMicrotask(()=>{m(Xe=>({...Xe,[i]:R}))}),z.current=!0},[i,R,h,n.state?.selectedCategories]),N.useEffect(()=>{v&&(e(Qt(v)),e(pi()),i&&i.trim()&&e(Zs({categoryName:i.trim()})),e(hn({page:1})))},[e,v,i]),N.useEffect(()=>{if(!v||te<=0)return;(Array.isArray(X)?X.length:0)<te&&e(hn({page:1,limit:te}))},[v,te,X?.length,e]);const $t=Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories:[],Me=h[i]||[],un=$e?de:_e>0?_e:de,Ay=q&&un>0&&Me.length===un,Kn=i?i.toString().trim():"",Py=!!Kn&&$t.some(ye=>(ye?.categoryName??ye?.name??"").toString().trim()===Kn),P5=Py&&!F&&Me.length>0&&!Ay,Ol=new Map($t.map(ye=>{const Te=(ye?.categoryName??ye?.name??"").toString().trim();return Te?[Te,ye]:null}).filter(Boolean));Kn&&(Ay||P5?Ol.has(Kn)||Ol.set(Kn,ve||pe||{categoryName:Kn}):Ol.delete(Kn));const ms=Array.from(Ol.values()),k5=Array.isArray(n.state?.pinnedCategoryNames)?n.state.pinnedCategoryNames.map(ye=>String(ye).trim()).filter(Boolean):$t.map(ye=>(ye?.categoryName??ye?.name??"").toString().trim()).filter(Boolean),gu=new Set(k5);Kn&&Py&&(Me.length===0?gu.delete(Kn):gu.add(Kn));const ky=Array.from(gu),{setTopbarProps:Il}=$o()||{};return N.useEffect(()=>{if(Il)return Il({filters:c,onFilterChange:nt,styles:a.topBar,stores:ze,tenantStatus:I,onSortToggle:kt,sortIconRotationDeg:fe,hasProducts:Se,priceRange:re,showBackButton:!0,backTo:"/",backState:{selectedCategories:ms,selectedProducts:Object.values(h||{}).flat(),pinnedCategoryNames:ky}}),()=>Il({})},[Il,c,nt,kt,fe,a.topBar,ze,I,Se,re,ms,ky,h]),l.jsx(l.Fragment,{children:l.jsxs(P,{sx:a.contentWrapper??{marginTop:0,position:"relative",zIndex:0},children:[k||!v?l.jsx(zo,{text:i?"Fetching Products":"Fetching",fullScreen:!1}):i?i&&M?l.jsx(zo,{text:"Fetching Products",fullScreen:!1}):q?l.jsxs(P,{sx:a.root,children:[l.jsxs(Ut,{ref:ut,maxWidth:"lg",sx:{width:"100%",px:{xs:1,sm:2,md:4},display:"flex",flexDirection:"column",alignItems:"stretch"},children:[l.jsx(my,{productState:$,categoryName:i,categoryProductCount:R.length,activeCatalogsCount:Z,onManageClick:()=>t("/catalogs/manage-shared"),matchHomePageLayout:!0,equalCardWidths:!0}),l.jsx(f5,{data:R,styles:a,selectedProducts:h[i]||[],onSelectProduct:Rt,categoryName:i,showLimitedColumns:ge,totalProductsCountForHeader:$e?0:_e,pagination:{currentPage:U,limit:B,totalCount:de,totalPages:He,hasNextPage:ue},onPageChange:se,onLimitChange:Ce})]}),l.jsx(by,{containerRef:ut,onPromoPrint:Le,onCreateCatalog:()=>E(!0),onOsaRequest:()=>S(!0),selectedProducts:Object.values(h||{}).flat(),selectedCategories:ms})]}):l.jsx(P,{sx:a.loadingBox??{minHeight:300,display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(W,{sx:s?.emptyProduct&&s.emptyProduct.title||{fontSize:"16px",fontWeight:600,color:"#1a1a1a"},children:`No products found in the "${i}" category.`})}):l.jsx(lu,{handleStartSyncing:Re,loading:!1}),l.jsx(Cy,{open:y,onClose:()=>{g(!1),b([])},selectedProducts:f},y?"open":"closed"),l.jsx(vy,{open:x,onClose:()=>E(!1),stores:ze,selectedProducts:Object.values(h||{}).flat(),selectedCategories:ms,onCreateSuccess:ye=>{m(Te=>({...Te,[i]:[]})),E(!1),ye&&t("/",{state:{catalogCreated:!0,catalogSlug:ye}})}}),l.jsx(Sy,{open:w,onClose:()=>S(!1),stores:ze,selectedProducts:Object.values(h||{}).flat(),selectedCategories:ms,onSuccess:()=>m(ye=>({...ye,[i]:[]}))})]})})};function m5(e){if(!e)return"";const t=e instanceof Date?e:new Date(e);if(Number.isNaN(t.getTime()))return"";const n=Date.now()-t.getTime(),r=Math.floor(n/6e4);if(r<1)return"just now";if(r<60)return`${r} minute${r===1?"":"s"} ago`;const i=Math.floor(r/60);if(i<24)return`${i} hour${i===1?"":"s"} ago`;const s=Math.floor(i/24);return`${s} day${s===1?"":"s"} ago`}function y5(e){const t=e?.products??e?.itemsCount??e?.itemCount??e?.count??e?.totalItems??e?.totalCount??e?.total??null,n=Number(t);return Number.isFinite(n)?`${n} items to be scanned`:""}function b5(e){const t=e?.createdBy??"",n=String(t).trim();return n?`Created by ${n}`:""}function x5(e){const t=tt(),{requests:n=[],onViewDetails:r,emptyText:i="No OSA requests",totalCount:s=0,page:a=0,rowsPerPage:c=10,onPageChange:d,onRowsPerPageChange:p}=e,u=Math.max(0,Number(s)||0),h=Math.max(0,Math.ceil(u/Math.max(1,c))-1),m=t?.categoryTablePagination??t?.productDetail?.categoryTablePagination??t?.universal?.globalPaginationStyles??{};return l.jsx(P,{sx:{minHeight:"100vh",bgcolor:Ct},children:l.jsxs(Ut,{maxWidth:!1,sx:{width:"100%",maxWidth:900,mx:"auto",px:"20px",pt:2,pb:4,display:"flex",flexDirection:"column",gap:"12px",boxSizing:"border-box"},children:[Array.isArray(n)&&n.length>0?n.map((y,g)=>{const f=y?.createdAt??y?.created_at??y?.requestedAt??y?.date??y?.time??null,b=m5(f),x=y5(y),E=b5(y),w=y?.id??y?._id??`${g}`;return l.jsxs(bn,{elevation:0,sx:{borderRadius:"12px",background:"#FFFFFF",border:"1px solid #F1F1F1",px:2,py:1.5,display:"flex",alignItems:"center",justifyContent:"space-between",gap:2},children:[l.jsxs(P,{sx:{minWidth:0,display:"flex",flexDirection:"column",gap:.25},children:[!!x&&l.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"12px",lineHeight:"16px",color:"#454545"},children:x}),!!E&&l.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545"},children:E}),!!b&&l.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"11px",lineHeight:"16px",color:"#808080"},children:b})]}),l.jsx(Ze,{onClick:()=>typeof r=="function"?r(y):null,sx:{textTransform:"none",fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"13px",color:"#1A73E8",minWidth:0,px:0,"&:hover":{background:"transparent",opacity:.85}},endIcon:l.jsx(Mt,{sx:{width:16,height:16,color:"#1A73E8"}}),children:"View Details"})]},w)}):l.jsx(P,{sx:{py:6,textAlign:"center"},children:l.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"14px",lineHeight:"20px",color:"#808080"},children:i})}),l.jsxs(P,{sx:m.wrapper,children:[l.jsxs(P,{sx:m.resultsPerPageBox,children:[l.jsx(W,{component:"span",sx:m.resultsPerPageText,children:"Results per page"}),l.jsxs(cn,{value:c,onChange:y=>typeof p=="function"?p(y):null,IconComponent:dr,variant:"standard",disableUnderline:!0,sx:m.select,children:[l.jsx(et,{value:5,children:"5"}),l.jsx(et,{value:10,children:"10"}),l.jsx(et,{value:25,children:"25"})]})]}),l.jsxs(P,{sx:m.navBox,children:[l.jsx(it,{size:"small",disabled:a===0,onClick:()=>typeof d=="function"?d(0):null,sx:m.iconButton,"aria-label":"First page",children:l.jsx(hs,{sx:m.paginationIcon??{width:16,height:16,opacity:1}})}),l.jsx(it,{size:"small",disabled:a===0,onClick:()=>typeof d=="function"?d(Math.max(0,a-1)):null,sx:m.iconButton,"aria-label":"Previous page",children:l.jsx(Kr,{sx:m.paginationIcon??{width:16,height:16,opacity:1}})}),l.jsx(W,{component:"span",sx:m.pageText,children:u===0?"0-0 of 0":`${a*c+1}-${Math.min((a+1)*c,u)} of ${u}`}),l.jsx(it,{size:"small",disabled:a>=h,onClick:()=>typeof d=="function"?d(a+1):null,sx:m.iconButton,"aria-label":"Next page",children:l.jsx(Mt,{sx:m.paginationIcon??{width:16,height:16,opacity:1}})}),l.jsx(it,{size:"small",disabled:a>=h,onClick:()=>typeof d=="function"?d(h):null,sx:m.iconButton,"aria-label":"Last page",children:l.jsx(gs,{sx:m.paginationIcon??{width:16,height:16,opacity:1}})})]})]})]})})}function v5(e){return e?.eanCode??e?.ean_code??e?.eancode??e?.ean??""}function S5({products:e=[],loading:t=!1,error:n=null,pagination:r=null,page:i=0,rowsPerPage:s=10,onPageChange:a,onLimitChange:c}){const d=tt(),p=d?.categoryTablePagination??d?.productDetail?.categoryTablePagination??d?.universal?.globalPaginationStyles??{},u=Math.max(0,Number(r?.totalCount??0)||0),h=Math.max(1,Number(s??10)||10),m=Math.max(0,Math.ceil(u/Math.max(1,h))-1),y=d?.productDetail??{},g=y?.categoryTableAllStore??{},f=y?.ProductTable??{},b=_t("(max-width:450px)"),x=g?.outerCard??{},E=Array.isArray(e)?e.map((w,S)=>{const T=w?.productName??"",v=w?.productWeight??"",k=w?.categoryName??"",M=w?.sku??"",_=v5(w);return l.jsx(P,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",flexWrap:"nowrap",...g?.rowCard??{},gap:b?"8px":"16px",mt:S===0?.5:0,mb:.5,width:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box"},children:b?l.jsxs(P,{sx:{display:"flex",width:"100%",gap:"16px",minWidth:0,flexWrap:"nowrap"},children:[l.jsx(cr,{src:w?.productImage,sx:{width:56,height:56,borderRadius:"8px",flexShrink:0}}),l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[l.jsx(W,{sx:{fontSize:"12px"},children:T}),l.jsxs(W,{sx:{fontSize:"10px"},children:[v," • ",k]}),l.jsxs(W,{sx:{fontSize:"10px"},children:["SKU: ",M]}),l.jsx(W,{sx:{fontSize:"12px",mt:.5},children:_})]})]}):l.jsxs(l.Fragment,{children:[l.jsxs(P,{sx:{display:"flex",flex:1,gap:"16px",minWidth:0},children:[l.jsx(cr,{src:w?.productImage,sx:{width:56,height:56,borderRadius:"8px"}}),l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",flex:1},children:[l.jsx(W,{sx:{fontSize:"12px"},children:T}),l.jsxs(W,{sx:{fontSize:"10px"},children:[v," • ",k]}),l.jsxs(W,{sx:{fontSize:"10px"},children:["SKU: ",M]})]})]}),l.jsx(P,{sx:{width:170},children:l.jsx(W,{sx:{fontSize:"12px"},children:_})})]})},w?.productId??w?.id??S)}):[];return l.jsx(P,{sx:{minHeight:"100vh",bgcolor:Ct},children:l.jsx(Ut,{maxWidth:!1,sx:{maxWidth:900,mx:"auto",px:2},children:l.jsxs(Ki,{sx:{...f??{},...x??{}},children:[l.jsxs(P,{sx:{display:"flex",flexWrap:"nowrap",alignItems:"center",width:"100%",minWidth:0,...g?.tableHeader??{},boxSizing:"border-box",gap:b?"8px":"16px"},children:[l.jsx(P,{sx:{flex:1,minWidth:0},children:l.jsx(W,{sx:g?.headerProduct??{fontSize:"12px",lineHeight:"16px",color:"#808080"},children:"Product"})}),!b&&l.jsx(P,{sx:{width:170},children:l.jsx(W,{sx:g?.headerStatusText??{fontSize:"12px",lineHeight:"16px",color:"#808080"},children:"EanCode"})})]}),l.jsxs(P,{children:[n&&l.jsx(W,{sx:{textAlign:"center",py:3,color:"#d32f2f"},children:n}),!n&&t&&e.length===0&&l.jsx(P,{sx:{display:"flex",justifyContent:"center",py:4},children:l.jsx(Vr,{})}),!n&&!t&&e.length===0&&l.jsx(W,{sx:{textAlign:"center",py:3},children:"No products found"}),E]}),r&&l.jsxs(P,{sx:{...p.wrapper,width:"100%",maxWidth:"100%"},children:[l.jsxs(P,{sx:p.resultsPerPageBox,children:[l.jsx(W,{sx:p.resultsPerPageText,children:"Results per page"}),l.jsx(cn,{value:h,onChange:w=>{c(Number(w.target.value)||10)},IconComponent:dr,variant:"standard",disableUnderline:!0,sx:p.select,children:[5,10,20,50].map(w=>l.jsx(et,{value:w,children:w},w))})]}),l.jsxs(P,{sx:p.navBox,children:[l.jsx(it,{size:"small",disabled:i===0,onClick:()=>a(0),sx:p.iconButton,title:"First page",children:l.jsx(hs,{sx:p.paginationIcon})}),l.jsx(it,{size:"small",disabled:i===0,onClick:()=>a(Math.max(0,i-1)),sx:p.iconButton,title:"Previous page",children:l.jsx(Kr,{sx:p.paginationIcon})}),l.jsx(W,{sx:p.pageText,children:u===0?"0-0 of 0":`${i*h+1}-${Math.min((i+1)*h,u)} of ${u}`}),l.jsx(it,{size:"small",disabled:i>=m,onClick:()=>a(i+1),sx:p.iconButton,title:"Next page",children:l.jsx(Mt,{sx:p.paginationIcon})}),l.jsx(it,{size:"small",disabled:i>=m,onClick:()=>a(m),sx:p.iconButton,title:"Last page",children:l.jsx(gs,{sx:p.paginationIcon})})]})]})]})})})}function w5(e){return Array.isArray(e)?e:e&&Array.isArray(e.data)?e.data:[]}function C5(){const e=fn(),t=Lt(),{osaRequests:n,osaRequestsLoading:r,osaRequestsError:i,osaRequestsPagination:s}=Ye(I=>I.dashboard??{}),{osaProducts:a,osaProductsLoading:c,osaProductsError:d,osaProductsPagination:p}=Ye(I=>I.dashboard??{}),u=N.useMemo(()=>w5(n),[n]),[h,m]=N.useState(0),[y,g]=N.useState(Math.max(1,Number(s?.limit)||10)),f=Math.max(0,Number(s?.totalCount)||0),[b,x]=N.useState(!1),[E,w]=N.useState(null),[S,T]=N.useState(0),[v,k]=N.useState(5),M=I=>{const $=Math.max(0,Number(I)||0);T($)},_=I=>{const $=Math.max(1,Number(I)||10);k($),T(0)};N.useEffect(()=>{e(oa({page:h+1,limit:y}))},[e,h,y]),N.useEffect(()=>()=>e(LS()),[e]),N.useEffect(()=>()=>e(jS()),[e]),N.useEffect(()=>{if(!b||!E)return;const I=v;e(ia({osaId:E,page:S+1,limit:I}))},[e,b,E,S,v]);const z=N.useCallback(()=>{if(b){x(!1);return}t(-1)},[t,b]),{setSettingTopbarProps:F}=$o()||{};N.useEffect(()=>{if(F)return F({onBack:z}),()=>F({})},[F,z]);const C=N.useCallback(I=>{const $=I?.id??null;$&&(w($),T(0),k(5),x(!0))},[]);return b?l.jsx(S5,{products:a,loading:c,error:d,pagination:p,page:S,rowsPerPage:v,onPageChange:M,onLimitChange:_}):r&&u.length===0?l.jsx(P,{sx:{minHeight:"100vh",bgcolor:Ct},children:l.jsx(Ut,{maxWidth:"sm",sx:{boxSizing:"border-box"},children:l.jsx(P,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"60vh"},children:l.jsx(Vr,{})})})}):i&&u.length===0?l.jsx(P,{sx:{minHeight:"100vh",bgcolor:Ct},children:l.jsx(Ut,{maxWidth:"sm",sx:{boxSizing:"border-box"},children:l.jsx(P,{sx:{textAlign:"center",py:4},children:l.jsx(W,{color:"error",children:i})})})}):l.jsx(x5,{requests:u,totalCount:f,page:h,rowsPerPage:y,onPageChange:I=>m(I),onRowsPerPageChange:I=>{const $=Number(I.target.value)||10;g($),m(0)},onViewDetails:C})}function E5(){return l.jsx(Tb,{children:l.jsxs(fr,{element:l.jsx(H2,{}),children:[l.jsx(fr,{path:"/",element:l.jsx(mN,{})}),l.jsx(fr,{path:"/category",element:l.jsx(g5,{})}),l.jsx(fr,{path:"/product-setting",element:l.jsx(AN,{})}),l.jsx(fr,{path:"/products/settings/ftp-sync",element:l.jsx(YN,{})}),l.jsx(fr,{path:"/catalogs/manage-shared",element:l.jsx(u5,{})}),l.jsx(fr,{path:"/osa",element:l.jsx(C5,{})})]})})}function T5({StoresModal:e,storesModalProps:t,onStoreSelect:n}){return l.jsx(E5,{StoresModal:e,storesModalProps:t,onStoreSelect:n})}const A5=()=>l.jsx(zo,{text:"Fetching",fullScreen:!0});return({apiUrl:e,authToken:t,basePath:n="/",StoresModal:r,storesModalProps:i,onStoreSelect:s})=>l.jsx("div",{style:{width:"100%",minHeight:"100vh",boxSizing:"border-box"},children:l.jsx(QS,{apiUrl:e,authToken:t,children:l.jsx(y0,{store:Df,children:l.jsx(C0.PersistGate,{loading:l.jsx(A5,{}),persistor:XS,children:l.jsx(jb,{basename:n,children:l.jsx(T5,{StoresModal:r,storesModalProps:i,onStoreSelect:s})})})})})})}));
|
|
1580
|
+
`},hN=({selectedProducts:e,selectedDesign:t,sheetSize:n,itemsToShow:r,copyPerItem:i=1})=>{if(!e||e.length===0){alert("No products selected for printing");return}const s=window.open("","_blank","width=800,height=600");if(!s){alert("Please allow popups to print promo designs");return}const a=i>0?i:1,c=[];e.forEach(h=>{for(let m=0;m<a;m++)c.push(h)});const d={A4:pN,A7:fN},u=(d[n]||d.A4)({selectedProducts:c,selectedDesign:t,itemsToShow:r});try{s.document.open(),s.document.write(u),s.document.close()}catch(h){console.error("Error writing to print window:",h),alert("Error generating print preview. Please check console for details.")}},gN=()=>{const e=new Date,t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return{validTo:`${t}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}`,ppd:`${r}/${n}/${t}`}},Cy=({open:e,onClose:t,selectedProducts:n=[]})=>{const r=tt(),i=r.universal.getGlobalCheckboxStyles({uncheckedBorder:"#454545",checkedBorder:"#2563EB",checkedColor:"#2563EB"}),s=l.jsx("span",{style:i.iconSpan}),a=l.jsx("span",{style:i.checkedIconSpan,children:l.jsx(dn,{sx:i.tickIconSx})}),c=N.useMemo(()=>gN(),[]),[d,p]=N.useState({productName:!0,mrp:!0,percentOff:!0,discountPrice:!0}),[u,h]=N.useState("design1"),[m,y]=N.useState(""),[g,f]=N.useState(1),[b,x]=N.useState(!1),[E,w]=N.useState(!1),S=D=>p(O=>({...O,[D]:!O[D]})),T=()=>{if(!n||n.length===0){w(!0);return}if(!m){x(!0);return}x(!1);const D=g>0?g:1;hN({selectedProducts:n,selectedDesign:u,sheetSize:m,itemsToShow:d,copyPerItem:D}),t()};N.useEffect(()=>{(e&&n&&n.length>0||!e)&&queueMicrotask(()=>w(!1))},[e,n]);const v=r.promoPrintModal,k=_t("(max-width:430px)"),M=k?{...v.dialog,width:"min(379px, calc(100vw - 32px))",maxWidth:"min(379px, calc(100vw - 32px))",height:"auto",maxHeight:"90vh"}:v.dialog,B=k?{...v.header,width:"100%",height:"auto",pt:"18px",pb:"14px",px:"10px",display:"flex",justifyContent:"space-between",alignItems:"center",boxSizing:"border-box",overflow:"visible"}:v.header,z=k?{...v.headerTitle,fontSize:"14px",lineHeight:"18px"}:v.headerTitle,$=k?{...v.sectionTitle,fontSize:"12px",lineHeight:"16px",marginBottom:"6px"}:v.sectionTitle,C=k?{...v.itemsToShowSection,width:"100%"}:v.itemsToShowSection,I=k?{...v.checkboxRow,width:"100%",gridTemplateColumns:"1fr 1fr",gap:"8px 12px"}:v.checkboxRow,_=k?{...v.middleCard,width:"100%",gap:"16px"}:v.middleCard,F=k?{...v.designSection,width:"100%"}:v.designSection,j=k?{...v.sheetSizeSection,width:"100%",gap:"6px",minHeight:52}:v.sheetSizeSection,V=k?{...v.sheetSizeHeader,width:"100%",fontSize:"12px",lineHeight:"16px",height:18}:v.sheetSizeHeader,R=k?{...v.sheetSizeRow,width:"100%",flexDirection:"column",alignItems:"flex-start",gap:"8px"}:v.sheetSizeRow,U=k?{...v.copyPerItemRow,width:"100%",mt:0}:v.copyPerItemRow;return l.jsxs(ko,{open:e,onClose:t,maxWidth:!1,PaperProps:{sx:M},BackdropProps:{sx:{backdropFilter:"blur(4px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},children:[l.jsx(Oo,{sx:{p:0},children:l.jsxs(P,{sx:B,children:[l.jsx(W,{sx:{...z,flex:"1 1 auto",minWidth:0},children:"Promo Print"}),l.jsx(P,{component:"button",onClick:t,sx:{...v.crossIconCard,flexShrink:0,ml:"auto"},"aria-label":"Close",children:l.jsx(xy,{sx:{fontSize:16,color:"#454545"}})})]})}),l.jsx(Qi,{sx:k?{...v.content,px:"12px",pt:"6px"}:v.content,children:l.jsxs(P,{sx:_,children:[l.jsxs(P,{sx:C,children:[l.jsx(W,{sx:$,children:"Items to show"}),l.jsxs(P,{sx:I,children:[l.jsx(Cn,{control:l.jsx(Nt,{checked:d.productName,onChange:()=>S("productName"),size:"small",sx:v.checkboxSx,icon:s,checkedIcon:a}),label:"Product Name",sx:v.checkboxLabel}),l.jsx(Cn,{control:l.jsx(Nt,{checked:d.percentOff,onChange:()=>S("percentOff"),size:"small",sx:v.checkboxSx,icon:s,checkedIcon:a}),label:"Percent OFF",sx:v.checkboxLabel}),l.jsx(Cn,{control:l.jsx(Nt,{checked:d.mrp,onChange:()=>S("mrp"),size:"small",sx:v.checkboxSx,icon:s,checkedIcon:a}),label:"MRP",sx:v.checkboxLabel}),l.jsx(Cn,{control:l.jsx(Nt,{checked:d.discountPrice,onChange:()=>S("discountPrice"),size:"small",sx:v.checkboxSx,icon:s,checkedIcon:a}),label:"Discount Price",sx:v.checkboxLabel})]})]}),l.jsxs(P,{sx:F,children:[l.jsx(W,{sx:$,children:"Promo Design"}),l.jsxs(P,{sx:v.designContainer,children:[l.jsxs(P,{onClick:()=>h("design1"),sx:{...v.designCard.base,...u==="design1"?v.designCard.selected:v.designCard.unselected},children:[l.jsx(W,{sx:{...v.design1.ourPriceHeader,visibility:d.discountPrice?"visible":"hidden"},children:"SAVE"}),l.jsx(P,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:d.discountPrice?"visible":"hidden"},children:l.jsxs(P,{sx:{display:"inline-flex",alignItems:"baseline"},children:[l.jsx(W,{component:"span",sx:{...v.design1.rupeeSymbol},children:"₹"}),l.jsx(W,{component:"span",sx:{...v.design1.bigPrice},children:"1387"})]})}),l.jsxs(P,{sx:{...v.design1.bottomInfo,visibility:d.discountPrice||d.mrp?"visible":"hidden"},children:[l.jsxs(W,{sx:{...v.design1.saveAmount,visibility:d.discountPrice?"visible":"hidden"},children:["OUR PRICE: ",l.jsx(W,{component:"span",sx:v.design1.rupeeSymbolSmall,children:"₹"}),"73"]}),l.jsxs(W,{sx:{...v.design1.mrpAmount,visibility:d.mrp?"visible":"hidden"},children:["MRP: ",l.jsx(W,{component:"span",sx:v.design1.rupeeSymbolSmall,children:"₹"}),"1460"]})]}),l.jsx(W,{sx:{...v.design1.productName,visibility:d.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"}),l.jsxs(P,{sx:v.design1.dateRow,children:[l.jsxs(W,{sx:v.design1.validFromText,children:["VALID TO: ",c.validTo]}),l.jsxs(W,{sx:v.design1.validToText,children:["PPD: ",c.ppd]})]})]}),l.jsxs(P,{onClick:()=>h("design2"),sx:{...v.designCard.base,...u==="design2"?v.designCard.selected:v.designCard.unselected},children:[l.jsxs(P,{sx:v.design2.mainOfferBlock,children:[l.jsx(W,{sx:{...v.design2.offerLine,visibility:d.percentOff?"visible":"hidden"},children:"Buy 1PC @5.00% Off"}),l.jsx(W,{sx:{...v.design2.offerLine,visibility:d.percentOff?"visible":"hidden"},children:"Buy 2PC @5.00% Off"})]}),l.jsxs(W,{sx:{...v.design2.mrpBlock,visibility:d.mrp?"visible":"hidden"},children:["MRP:",l.jsx(W,{component:"span",sx:v.design2.rupeeSymbolSmall,children:"₹"}),"1460"]}),l.jsx(W,{sx:{...v.design2.productName,visibility:d.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500G COFFEE BIB"}),l.jsxs(P,{sx:v.design2.dateRow,children:[l.jsxs(W,{sx:v.design2.validFromText,children:["(Valid till: ",c.validTo,")"]}),l.jsxs(W,{sx:v.design2.validToText,children:["(PPD: ",c.ppd,")"]})]})]}),l.jsxs(P,{onClick:()=>h("design3"),sx:{...v.designCard.base,...u==="design3"?v.designCard.selected:v.designCard.unselected},children:[l.jsx(W,{sx:{...v.design3.ourPriceHeader,visibility:d.discountPrice?"visible":"hidden"},children:"OUR PRICE"}),l.jsx(P,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:d.discountPrice?"visible":"hidden"},children:l.jsxs(P,{sx:{display:"inline-flex",alignItems:"baseline"},children:[l.jsx(W,{component:"span",sx:{...v.design3.rupeeSymbol},children:"₹"}),l.jsx(W,{component:"span",sx:{...v.design3.bigPrice},children:"29"})]})}),l.jsx(W,{sx:{...v.design3.productName,visibility:d.productName?"visible":"hidden"},children:"POTATO BIG KG"}),l.jsxs(P,{sx:v.design3.dateRow,children:[l.jsxs(W,{sx:v.design3.validFromText,children:["[ValidTo: ",c.validTo,"]"]}),l.jsxs(W,{sx:v.design3.validToText,children:["[PPD: ",c.ppd,"]"]})]})]}),l.jsxs(P,{onClick:()=>h("design4"),sx:{...v.designCard.base,...u==="design4"?v.designCard.selected:v.designCard.unselected},children:[l.jsx(W,{sx:{...v.design4.ourPriceHeader,visibility:d.discountPrice?"visible":"hidden"},children:"OUR PRICE"}),l.jsx(P,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:d.discountPrice?"visible":"hidden"},children:l.jsxs(P,{sx:{display:"inline-flex",alignItems:"baseline"},children:[l.jsx(W,{component:"span",sx:{...v.design4.rupeeSymbol},children:"₹"}),l.jsx(W,{component:"span",sx:{...v.design4.priceWhole},children:"899"}),l.jsx(W,{component:"span",sx:{...v.design4.priceDecimal},children:".70"})]})}),l.jsxs(P,{sx:{...v.design4.saveMrpRow,visibility:d.discountPrice||d.mrp?"visible":"hidden"},children:[l.jsxs(W,{sx:{...v.design4.saveAmount,visibility:d.discountPrice?"visible":"hidden"},children:["SAVE: ",l.jsx(W,{component:"span",sx:v.design4.rupeeSymbolSmall,children:"₹"}),"2099.30"]}),l.jsxs(W,{sx:{...v.design4.mrpAmount,visibility:d.mrp?"visible":"hidden"},children:["MRP:",l.jsx(W,{component:"span",sx:v.design4.rupeeSymbolSmall,children:"₹"}),"2999"]})]}),l.jsx(W,{sx:{...v.design4.productCode,visibility:d.productName?"visible":"hidden"},children:"MCS-SWE-CP-SO-RG-XXL-1402A5-PuLa"}),l.jsxs(P,{sx:v.design4.dateRow,children:[l.jsxs(W,{sx:v.design4.validFromText,children:["[VALIDITY: ",c.validTo,"]"]}),l.jsxs(W,{sx:v.design4.validToText,children:["[PPID: ",c.ppd,"]"]})]})]}),l.jsxs(P,{onClick:()=>h("design5"),sx:{...v.designCard.base,...u==="design5"?v.designCard.selected:v.designCard.unselected},children:[l.jsxs(P,{sx:v.design5.topSection,children:[l.jsxs(P,{sx:v.design5.leftColumn,children:[l.jsxs(P,{sx:v.design5.rewardsLogo,children:[l.jsxs(P,{sx:v.design5.logoLine1,children:[l.jsx(W,{sx:v.design5.logoMy,children:"My"}),l.jsx(W,{sx:v.design5.logoSpencer,children:"spencers"})]}),l.jsxs(W,{sx:v.design5.logoRewards,children:["Rewa",l.jsx(W,{component:"span",sx:v.design5.rupeeSymbol1,children:"₹"}),"ds"]})]}),l.jsxs(W,{sx:{...v.design5.memberPriceLabel,visibility:d.discountPrice?"visible":"hidden"},children:["MEMBER",l.jsx("br",{}),"PRICE"]}),l.jsxs(W,{sx:{...v.design5.memberPriceValue,visibility:d.discountPrice?"visible":"hidden"},children:[l.jsx(W,{component:"span",sx:v.design5.rupeeSymbol,children:"₹"}),"99"]})]}),l.jsx(P,{sx:v.design5.verticalDivider}),l.jsxs(P,{sx:v.design5.rightColumn,children:[l.jsxs(W,{sx:{...v.design5.nonMemberPriceLabel,visibility:d.discountPrice?"visible":"hidden"},children:["NON",l.jsx("br",{}),"MEMBER",l.jsx("br",{}),"PRICE"]}),l.jsxs(W,{sx:{...v.design5.nonMemberPriceValue,visibility:d.discountPrice?"visible":"hidden"},children:[l.jsx(W,{component:"span",sx:v.design5.rupeeSymbol,children:"₹"}),"116"]})]})]}),l.jsxs(P,{sx:v.design5.middleSection,children:[l.jsx(W,{sx:{...v.design5.productName,visibility:d.productName?"visible":"hidden"},children:"MAGGI 2-MINUTE MASALA NOODLES 560G"}),l.jsxs(W,{sx:{...v.design5.mrpText,visibility:d.mrp?"visible":"hidden"},children:["MRP ",l.jsx(W,{component:"span",sx:v.design5.rupeeSymbolSmall,children:"₹"}),"120"]})]}),l.jsx(P,{sx:v.design5.horizontalDivider}),l.jsx(P,{sx:v.design5.bottomSection,children:l.jsx(W,{sx:v.design5.savingsMessage,children:"SAVE UPTO 6% EXTRA MONTHLY WITH MY SPENCERS REWARDS"})})]})]})]}),l.jsxs(P,{sx:j,children:[l.jsx(W,{sx:V,children:"Sheet Size"}),l.jsxs(P,{sx:R,children:[l.jsx(P,{sx:v.sheetSizeGroup,children:["A4","A7"].map(D=>l.jsx(P,{onClick:()=>{y(D),x(!1)},sx:{...v.sheetSizeBtn,...m===D?v.sheetSizeBtnSelected:{}},children:l.jsx(W,{sx:m===D?{...v.sheetSizeBtnText,...v.sheetSizeBtnTextSelected,fontSize:k?"11px":void 0}:{...v.sheetSizeBtnText,fontSize:k?"11px":void 0},children:D})},D))}),l.jsxs(P,{sx:U,children:[l.jsx(W,{sx:v.copyPerItemLabel,children:"Enter Copy per item:"}),l.jsx(ps,{type:"number",value:g,onChange:D=>{const O=parseInt(D.target.value,10);!isNaN(O)&&O>0?f(O):D.target.value===""&&f(1)},inputProps:{min:1,style:{padding:"4px 8px",textAlign:"center",width:"60px"}},sx:{"& .MuiOutlinedInput-root":{height:28,width:"80px",bgcolor:"#F5F5F5"},"& .MuiOutlinedInput-input":{padding:"4px 8px",fontSize:"12px"}},size:"small"})]})]})]})]})}),l.jsxs(zd,{sx:{...v.actions,flexDirection:"column",alignItems:"flex-start"},children:[b&&l.jsx(W,{variant:"body2",sx:{color:"red",mb:.5},children:"Please select a sheet size."}),E&&l.jsx(W,{variant:"body2",sx:{color:"red",mb:.5},children:"No products selected. Please select products first."}),l.jsx(P,{sx:{...v.printButtonWrapper,alignSelf:"stretch",display:"flex",justifyContent:"flex-end"},children:l.jsx(Ze,{type:"button",onClick:T,variant:"contained",sx:v.printButton,children:"Print"})})]})]})},mN=()=>{const e=fn(),t=Lt(),n=zt(),r=tt(),i=n.state?.catalogCreated&&n.state?.catalogSlug?{catalogSlug:n.state.catalogSlug}:null,s=()=>{t(n.pathname,{replace:!0,state:{}})},a=r.productDetail,[c,d]=N.useState({category:"all",status:"all",stock:"all",search:"",store:[],minOsa:null,maxOsa:null,sortBy:null,sortOrder:null,order:null}),{integrationData:p,companyId:u,loading:h,categoriesLoading:m,categoriesFetchSettled:y,error:g}=Ye(Ce=>Ce.dashboard),f=N.useMemo(()=>p&&typeof p=="object"&&Object.keys(p).length>0?{matched:!0,error:"",apiResponse:p,loading:!1}:{matched:!1,error:"No active integration found",apiResponse:null,loading:!1},[p]),b=Ye(Ce=>Ce.dashboard),{categoryList:x=[],stores:E=[],categoryPagination:w={}}=b||{},S=x,{currentPage:T=1,limit:v=10,totalCount:k=0,totalPages:M=1,hasNextPage:B=!1}=w,z=N.useMemo(()=>{const Be=(Array.isArray(S)?S:[]).map(Me=>{const Le=Me?.totalOsa??Me?.totalOsaValue??Me?.osa??Me?.totalOsaQty??null,_e=Le==null?null:Number(Le);return Number.isFinite(_e)?_e:null}).filter(Me=>Me!=null&&Me>=0);if(Be.length===0)return;const se=Math.min(...Be),Te=Math.max(...Be);return{min:se,max:Te}},[S]),{sharedCatalogues:$=[],sharedCataloguesTotal:C=0,lastStableActiveCatalogsCount:I=null}=Ye(Ce=>Ce.productSettings??{}),_=N.useMemo(()=>Array.isArray($)?$.filter(Ce=>Ce.status===!0).length:0,[$]),j=C>0&&$.length>=C?_:I??_,V=Array.isArray(x)&&x.length>0,R=()=>{f.matched?t("/product-setting",{state:{tenantIntegrationMatched:!0}}):t("/product-setting",{state:{tenantIntegrationMatched:!1}})},U=N.useMemo(()=>E.length>0?E:[{id:"all",name:"All Stores",storeCode:"all"}],[E]),D=N.useCallback(Ce=>{d(Ce)},[d]),O=N.useCallback(()=>{const Be=c?.sortBy==="categoryName"&&c?.sortOrder==="asc"?"desc":"asc";d({...c,sortBy:"categoryName",sortOrder:Be})},[c]),L=c?.sortBy==="categoryName"&&c?.sortOrder==="asc"?180:0,H=N.useCallback((Ce={})=>{const Be=Array.isArray(c.store)?c.store:[],se={...Ce};if(Be.length>0&&!Be.includes("all")){const Te=Be.map(Me=>E.find(_e=>_e.id===Me)?.storeCode).filter(Boolean);Te.length>0&&(se.storeCode=Te[0])}return c.search!=null&&String(c.search).trim()!==""&&(se.search=String(c.search).trim()),c.status==="active"&&(se.status=!0),c.status==="inactive"&&(se.status=!1),c.stock==="inStock"&&(se.inStock=!0),c.stock==="outOfStock"&&(se.inStock=!1),c.minOsa!=null&&c.minOsa!==""&&(se.minOsa=c.minOsa),c.maxOsa!=null&&c.maxOsa!==""&&(se.maxOsa=c.maxOsa),c.sortBy&&(c.sortOrder==="asc"||c.sortOrder==="desc")?(se.sortBy=c.sortBy,se.order=c.sortOrder==="asc"?"ASC":"DESC"):c.sortBy&&typeof c.order=="string"&&c.order&&(se.sortBy=c.sortBy,se.order=c.order),se},[c.store,c.search,c.status,c.stock,c.minOsa,c.maxOsa,c.order,c.sortBy,c.sortOrder,E]),Y=N.useRef(null);N.useEffect(()=>{if(!u)return;const Ce=H({page:T,limit:v}),Be=JSON.stringify(Ce);Y.current!==Be&&(Y.current=Be,e(Mn(Ce)))},[u,T,v,H,e]);const X=Ce=>{const Be=H({page:Ce,limit:v});e(Mn(Be))},te=Ce=>{const Be=H({page:1,limit:Ce});e(Mn(Be))},[ce,de]=N.useState(!1);N.useEffect(()=>{!u&&!ce&&!h?e(ui()).finally(()=>{de(!0)}):u&&queueMicrotask(()=>de(!0))},[e,u,ce,h]);const ae=N.useRef(null),J=N.useRef(n.pathname),oe=N.useRef(null);N.useEffect(()=>{n.pathname==="/"&&e(If())},[e,n.pathname]),N.useEffect(()=>{u&&u!==ae.current&&(ae.current=u,e(Qt(u)),e(Mn({page:1,limit:10})),e(pi()),e(di()),e(hn({page:1})))},[e,u]),N.useEffect(()=>{const Ce=J.current;J.current=n.pathname;const Be=u&&n.pathname==="/"&&Ce!=="/",se=u&&n.pathname==="/"&&!!n.state?.catalogCreated;(Be||se)&&(e(hn({page:1})),e(Mn(H({page:T,limit:v}))),e(di()))},[n.pathname,n.state?.catalogCreated,u,e,H,T,v]),N.useEffect(()=>{if(!u||C<=0)return;(Array.isArray($)?$.length:0)<C&&e(hn({page:1,limit:C}))},[u,C,$?.length,e,$]);const[G,pe]=N.useState(Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories:[]),[ee,K]=N.useState(Array.isArray(n.state?.selectedProducts)?n.state.selectedProducts:[]),[q,he]=N.useState(()=>Array.isArray(n.state?.pinnedCategoryNames)?n.state.pinnedCategoryNames.map(Ce=>String(Ce).trim()).filter(Boolean):Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories.map(Ce=>(Ce?.categoryName??Ce?.name??"").toString().trim()).filter(Boolean):[]),ue=N.useRef(G),Ee=N.useRef(q),ke=N.useRef(ee);N.useEffect(()=>{ue.current=G},[G]),N.useEffect(()=>{Ee.current=q},[q]),N.useEffect(()=>{ke.current=ee},[ee]);const ve=N.useMemo(()=>{const Ce=Array.isArray(ee)?ee:[],Be=new Set;return Ce.forEach(se=>{const Te=(se?.categoryName??se?.category??"").toString().trim();Te&&Be.add(Te)}),Array.from(Be)},[ee]),le=Ce=>{const Be={category:c.category,status:c.status,stock:c.stock,search:c.search,store:c.store};t(`/category?categoryName=${encodeURIComponent(Ce.name||Ce.categoryName)}`,{state:{filters:Be,selectedCategories:G,selectedProducts:ee,pinnedCategoryNames:q}})},[qe,He]=N.useState(!1),[fe,re]=N.useState(!1),[xe,Se]=N.useState(!1),[we,ye]=N.useState([]),me=N.useCallback((Ce,Be={})=>{const se=Array.isArray(c.store)?c.store:[],Te={page:1,limit:5e3,...Be};if(Ce&&String(Ce).trim()!==""&&(Te.categoryName=String(Ce).trim()),se.length>0&&!se.includes("all")){const Me=se.map(Le=>E.find(ut=>ut.id===Le)?.storeCode).filter(Boolean);Me.length>0&&(Te.storeCode=Me.join(","))}return c.search!=null&&String(c.search).trim()!==""&&(Te.search=String(c.search).trim()),Te},[c.store,c.search,E]),Re=N.useCallback(async()=>{const Ce=(Array.isArray(G)?G:[]).map(Me=>(Me?.categoryName??Me?.name??"").toString().trim()).filter(Boolean),Be=Array.isArray(ee)?ee:[],se={};Be.forEach(Me=>{const Le=(Me?.categoryName??Me?.category??"").toString().trim();Le&&(se[Le]||(se[Le]=[]),se[Le].push(Me))});const Te=new Set(Object.keys(se));if(Ce.length===0&&Be.length===0){ye([]),Se(!0);return}try{const Me=[];for(const st of Ce){const Rt=se[st];if(Rt&&Rt.length>0)Me.push(Rt);else{const $t=me(st),Fe=await e(ea($t)).unwrap().catch(()=>({})),un=Array.isArray(Fe?.data)?Fe.data:Array.isArray(Fe?.products)?Fe.products:Array.isArray(Fe)?Fe:[];Me.push(un)}}Ce.forEach(st=>Te.delete(st)),Te.forEach(st=>{se[st]?.length&&Me.push(se[st])});const Le=Me.flat().filter(Boolean),_e=new Set,ut=Le.map(st=>({...st,catalogProductId:st?.productId??st?.catalogProductId??st?.id,id:st?.id||st?.sku||st?.productName})).filter(st=>{const Rt=(st?.productId||st?.id||st?.sku||st?.productName||"").toString();return!Rt||_e.has(Rt)?!1:(_e.add(Rt),!0)});ye(ut),Se(!0)}catch{ye([]),Se(!0)}},[e,ee,G,me]),ze=N.useCallback(Ce=>{const Be=Ce?.categoryName??Ce?.name??"",se=Be,Te=ue.current.some(Le=>(Le?.categoryName??Le?.name)===Be),Me=!!Be&&Ee.current.includes(Be);if(Te||Me){he(Le=>Le.filter(_e=>_e!==Be)),Te?(K(Le=>!Array.isArray(Le)||!se?Le||[]:Le.filter(_e=>(_e?.categoryName??_e?.category??"").toString().trim()!==se)),pe(Le=>Le.filter(_e=>(_e?.categoryName??_e?.name)!==Be))):K(Le=>!Array.isArray(Le)||!se?Le||[]:Le.filter(_e=>(_e?.categoryName??_e?.category??"").toString().trim()!==se));return}Be&&he(Le=>[...new Set([...Le,Be])]),pe(Le=>[...Le,Ce])},[]),nt=ce&&g&&!u,{setTopbarProps:kt}=$o()||{};return N.useEffect(()=>{if(kt)return nt?(kt({hide:!0}),()=>kt({})):(kt({filters:c,onFilterChange:D,styles:a.topBar,stores:U,tenantStatus:f,hasProducts:V,filterMode:"home",priceRange:z,onSortToggle:O,sortIconRotationDeg:L}),()=>kt({}))},[kt,nt,c,D,a.topBar,U,f,V,z,O,L]),l.jsxs(l.Fragment,{children:[i&&l.jsx(q2,{catalogSlug:i.catalogSlug,onClose:s}),l.jsx(P,{sx:nt?{marginTop:0}:V?a.contentWrapper??{marginTop:0,display:"flex",flexDirection:"column",alignItems:"center"}:{marginTop:0},children:nt?l.jsx(lu,{handleStartSyncing:R,loading:!1,sessionExpired:!0}):!ce&&!u?l.jsx(zo,{text:"Fetching",fullScreen:!0}):m&&!V?l.jsx(zo,{text:"Fetching Categories",fullScreen:!0}):V?l.jsx(P,{sx:a.root,children:l.jsxs(Ut,{ref:oe,maxWidth:"lg",sx:{px:{xs:1,sm:2,md:4}},children:[l.jsx(my,{productState:b,categoryCount:x.length,activeCatalogsCount:j,onManageClick:()=>t("/catalogs/manage-shared"),onReportClick:()=>{t("/osa")}}),x.length>0?l.jsxs(l.Fragment,{children:[l.jsx(eN,{categoryData:S,styles:a,onView:le,selectedCategories:G,selectedProducts:ee,pinnedCategoryNames:q,categoryNamesFromProductSelection:ve,onToggleCategory:ze,totalCategoryCount:k,onClearAllCategories:()=>{pe([]),he([]),K([])},pagination:k>0?{currentPage:T,limit:v,totalCount:k,totalPages:M,hasNextPage:B}:null,onPageChange:X,onLimitChange:te}),l.jsx(by,{containerRef:oe,selectedCategories:G,selectedProducts:ee,onPromoPrint:Re,onCreateCatalog:()=>He(!0),onOsaRequest:()=>re(!0)}),l.jsx(Cy,{open:xe,onClose:()=>{Se(!1),ye([])},selectedProducts:we},xe?"open":"closed"),l.jsx(vy,{open:qe,onClose:()=>He(!1),stores:U,selectedProducts:ee,selectedCategories:G,onCreateSuccess:Ce=>{pe([]),K([]),He(!1),Ce&&t("/",{state:{catalogCreated:!0,catalogSlug:Ce}})}}),l.jsx(Sy,{open:fe,onClose:()=>re(!1),stores:U,selectedProducts:ee,selectedCategories:G.map(Ce=>Ce?.categoryName??Ce?.name).filter(Boolean),onSuccess:()=>{pe([]),K([]),he([])}})]}):l.jsxs(P,{sx:{minHeight:280,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",bgcolor:Ct,borderRadius:2,p:3},children:[l.jsx(W,{sx:{fontSize:18,fontWeight:600,color:"#454545",mb:1},children:"No Category"}),l.jsx(W,{sx:{fontSize:14,color:"#808080"},children:c.search&&String(c.search).trim()?"No category found for your search.":"No category available."})]})]})}):l.jsx(lu,{handleStartSyncing:R,loading:h||!V&&m||!y,sessionExpired:!1,hasIntegration:f.matched,showFetchingCategoriesLabel:!0,isHomeCategorySearch:!!(c.search&&String(c.search).trim()),isHomeCategorySearchEmpty:!!(c.search&&String(c.search).trim())&&y&&!m&&!h})})]})};function Gn({icon:e,title:t,subtitle:n,subtitleValue:r,onClick:i,selected:s,highlightStyle:a={},action:c,disabled:d=!1,customStyle:p={},titleColorWhenDisabled:u,titleColor:h,subtitleColor:m}){const{productSettingGeneral:y}=tt(),g=y,f={...g.baseCard,cursor:i&&!d?"pointer":"default",opacity:d?.5:1,...s?a:{}},b=d?u||g.titleColorDisabled:h||g.titleColorDefault,x=d?g.subtitleColorDisabled:m||g.subtitleColorDefault,E={card:{...f,...p},cardInner:g.cardInner,icon:g.icon,title:{...g.titleTypography,color:b},subtitle:{...g.subtitleTypography,color:x}};return l.jsxs(P,{onClick:d?void 0:i,sx:{...E.card,...p||{}},children:[e&&l.jsx(P,{sx:E.icon,children:e}),l.jsxs(P,{sx:E.cardInner,children:[l.jsxs(P,{children:[l.jsx(W,{sx:E.title,children:t}),n&&l.jsx(W,{sx:E.subtitle,children:r?`${r} ${n}`:n})]}),c&&l.jsx(P,{sx:g.actionWrapper,children:c})]})]})}function fu({size:e=15,color:t="#454545",...n}){return l.jsx(z2,{size:e,color:t,...n})}const yN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAASpJREFUeAGVUT1OhGAQ5b/2BPxewhISIHSyJ/AKlnbunsBsZenuCdQOgWQp7VY7C0i+0u2w00DAN2ZNYMOXyCSTGZh5897MJwgcC4Jg7/u+y6tLvELf92bXdeYsIDGJonimKMrFLCBAlwivYI1d1zX/BQzD8AYhlmV5AalrVVV3U2B5KM9xnHsCwb00Td8Nw3iRJOkcQ65R+9R1ncG+flXR9egQtBOcodFLkoQJ452vULs9rsHQv5Ityzrg4w1+wH+XilVVPQ+VINxh4AcAa+RPTdM8isPJURTRE+zQwLIs87BvjPyBGPI8X44OeLo0gdu23YNhQ1eFb09Bo+P8WVmWtW3b30iXkF+DeSFM2OQ7gnFDEbK3AscmgUVR1AgMQDYLeLSVpmkFr/gDCe+DRKwM0doAAAAASUVORK5CYII=",bN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAIpJREFUeAFVTsENwyAMxCkPnowQNmgnCB8Qv46QrtNfV+gG/YPUjtABeGSEDIAgPimJEkvnO9ln+YRYyzn38N5/xKG6gx5aa4O1Vm8DwgXzyLgyJoZm07uU8upYjETUY8H8Y4a+K6U04TyE0Ndav2zE4hZj/GN+Qcs5z8YYGFVK6bn9lLuQEklPaRdNCCms4XdYvwAAAABJRU5ErkJggg==";function xN(e){const{sx:t={},...n}=e;return l.jsxs(P,{sx:{width:20,height:20,opacity:1,position:"relative",flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",...t},...n,children:[l.jsx(P,{component:"img",src:yN,alt:"",sx:{position:"absolute",width:12.25,height:12.25,top:1.84,left:1.84,opacity:1,boxSizing:"border-box",objectFit:"contain",display:"block"}}),l.jsx(P,{component:"img",src:bN,alt:"",sx:{position:"absolute",width:5.104,height:5.104,top:13.06,left:13.06,opacity:1,boxSizing:"border-box",objectFit:"contain",display:"block"}})]})}function Ey({size:e=15,color:t="#454545",...n}){return l.jsx(D2,{size:e,color:t,...n})}function vN({size:e=15,color:t="#454545",...n}){return l.jsx(_2,{size:e,color:t,...n})}function SN({size:e=15,color:t="#454545",...n}){return l.jsx($2,{size:e,color:t,...n})}const wN=yt(l.jsx("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4z"}),"CachedSharp");function Al(e){return l.jsx(wN,{...e})}function CN({airaAiEnabled:e,setAiraAiEnabled:t,selectedCard:n,setSelectedCard:r,syncStep:i=0,syncMethod:s="",onSetupSync:a=()=>{},onSyncNow:c=()=>{},integrationData:d={},...p}){const{productSetting:u}=tt(),h=u.settingsMolecule,m=u.selectedCardHighlight,y=Lt(),g=d?.configs?.sync_frequency||"Daily",f=d?.configs?.sync_time||"10:00 AM",b=d?.type||s||"FTP",x=()=>l.jsxs(P,{sx:{width:"100%",minHeight:156,display:"flex",flexDirection:"column",gap:1.5},children:[l.jsx(P,{sx:{width:"100%",height:20,display:"flex",alignItems:"center",justifyContent:"space-between"},children:l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"6px",width:67,height:20},children:[l.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:14,lineHeight:"20px",color:"#000000"},children:"General"}),l.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:12,lineHeight:"16px",color:"#808080"},children:"2"})]})}),l.jsxs(P,{sx:{width:"100%",minHeight:124,display:"flex",flexDirection:"column",gap:"4px"},children:[l.jsx(Gn,{icon:l.jsx(fu,{size:15,color:"#454545"}),title:"Manage Shared Catalogs",onClick:()=>y("/catalogs/manage-shared"),selected:n==="catalogs",highlightStyle:m,action:l.jsx(Mt,{sx:{width:16,height:16,color:"#454545"}})}),l.jsx(Gn,{icon:l.jsx(xN,{}),title:"Aira AI",subtitle:"Make your workflows faster and smarter",onClick:()=>r&&r("aira-ai"),selected:n==="aira-ai",highlightStyle:m,action:l.jsx(P,{sx:{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(Jm,{checked:e,onChange:T=>t&&t(T.target.checked),size:"small"})})})]})]}),E=(T,v)=>l.jsxs(P,{sx:h.sectionHeaderRow,children:[l.jsxs(P,{sx:h.sectionHeaderTitleClusterSync,children:[l.jsx(W,{sx:h.sectionHeaderTitleText,children:"Sync"}),l.jsx(W,{sx:h.sectionHeaderCountText,children:"2"})]}),l.jsxs(P,{sx:{...h.syncNowControl,cursor:T?"not-allowed":"pointer",opacity:T?.5:1},onClick:T?void 0:v,children:[l.jsx(P,{sx:h.syncNowIconWrap,children:l.jsx(Al,{sx:h.refreshIconSyncNowHeader})}),l.jsx(W,{sx:h.syncNowLabel,children:"Sync Now"})]})]}),w=T=>{const v=T?g:"Daily",k=T?f:"10:00 AM",M=!T&&i===0;return l.jsxs(P,{sx:{width:"100%",minHeight:288,display:"flex",flexDirection:"column",gap:"4px"},children:[E(M,c),!T&&i===0&&l.jsx(Gn,{icon:l.jsx(Al,{sx:{width:18.33,height:15,color:"#454545"}}),title:"Setup Sync",subtitle:"Sync products",onClick:a,highlightStyle:m,action:l.jsx(Mt,{sx:{width:16,height:16,color:"#454545"}})}),!T&&i===1&&l.jsxs(l.Fragment,{children:[l.jsx(Gn,{icon:l.jsx(Al,{sx:{width:18.33,height:15,color:"#454545"}}),title:"Sync Method",subtitle:b,highlightStyle:m,action:l.jsx(Mt,{sx:{width:16,height:16,color:"#454545"}})}),l.jsx(Gn,{icon:l.jsx(fu,{size:15,color:"#454545"}),title:`Setup ${b} Details`,subtitle:"Start setup",onClick:()=>{y("/products/settings/ftp-sync",{state:{fromSyncStep:i}})},highlightStyle:m,action:l.jsx(Mt,{sx:{width:16,height:16,color:"#454545"}})})]}),i===3&&l.jsxs(l.Fragment,{children:[l.jsx(Gn,{icon:l.jsx(Al,{sx:{width:18.33,height:15,color:"#454545"}}),title:"Sync Method",subtitle:s||"FTP",highlightStyle:m,disabled:!0,titleColorWhenDisabled:"#454545",action:l.jsx(Mt,{sx:{width:16,height:16,color:"#454545"}})}),l.jsx(Gn,{icon:l.jsx(fu,{size:15,color:"#454545"}),title:"FTP Details",subtitle:"Sync source",highlightStyle:m,onClick:()=>y("/products/settings/ftp-sync",{state:{fromSyncStep:i}}),action:l.jsx(Mt,{sx:{width:16,height:16,color:"#454545"}})}),l.jsxs(P,{sx:{width:"100%",display:"flex",flexWrap:"nowrap",justifyContent:"space-between","@media (max-width:450px)":{flexDirection:"column",gap:"4px"}},children:[l.jsx(P,{sx:{width:"50%","@media (max-width:450px)":{width:"100%"}},children:l.jsx(Gn,{icon:l.jsx(Ey,{size:15,color:"#454545"}),title:"Sync Frequency",subtitle:v,highlightStyle:m,customStyle:{mb:0},onClick:()=>y("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncFrequency",integrationData:d}}),action:l.jsx(Mt,{sx:{width:16,height:16,color:"#454545"}})})}),l.jsx(P,{sx:{width:"50%","@media (max-width:450px)":{width:"100%"}},children:l.jsx(Gn,{icon:l.jsx(vN,{size:15,color:"#454545"}),title:"Sync Time",subtitle:k,highlightStyle:m,customStyle:{mb:0},onClick:()=>y("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncTime",integrationData:d}}),action:l.jsx(Mt,{sx:{width:16,height:16,color:"#454545"}})})})]}),l.jsx(Gn,{icon:l.jsx(SN,{size:15,color:"#454545"}),title:"Sync History",subtitle:"12,139 items",highlightStyle:m,action:l.jsx(Mt,{sx:{width:16,height:16,color:"#454545"}})})]})]})},S=i===3&&d&&Object.keys(d||{}).length>0;return l.jsxs(P,{sx:h.container,children:[x(),w(S)]})}function EN({open:e,onClose:t,onSave:n}){Ln();const r=tt(),[i,s]=N.useState("sftp"),a=[{value:"sftp",label:"SFTP"},{value:"webhook",label:"Webhook"},{value:"aira-api",label:"AIRA API"},{value:"file-upload",label:"File Upload"}],c=h=>s(h.target.value),d=()=>{n&&n(i),t()},p=()=>{},u=r.productSettingModal;return l.jsx(Po,{open:e,onClose:t,"aria-labelledby":"product-sync-setting-modal",sx:u.modal,children:l.jsxs(P,{sx:u.container,children:[l.jsxs(P,{sx:u.header,children:[l.jsx(W,{sx:u.headerTitle,children:"Sync Method"}),l.jsx(it,{onClick:t,size:"small",sx:u.closeButton,children:l.jsx(L2,{size:20})})]}),l.jsxs(P,{sx:u.content,children:[l.jsx(as,{value:i,onChange:c,children:a.map(h=>l.jsx(Cn,{value:h.value,control:l.jsx(Cr,{icon:l.jsx(P,{sx:u.radioIcon}),checkedIcon:l.jsx(B2,{size:18,color:"#000"}),sx:u.radioChecked}),label:l.jsx(W,{sx:u.radioLabel,children:h.label}),sx:{...u.formControlLabel,...i===h.value?u.formControlLabelSelectedRow:{}}},h.value))}),l.jsxs(P,{sx:u.upgradeSection,children:[l.jsx(W,{sx:u.upgradeText,children:"Upgrade for higher sync limits and more features"}),l.jsx(W,{onClick:p,sx:u.managePlanLink,children:"Manage Plan >"})]})]}),l.jsx(P,{sx:u.footer,children:l.jsx(Ze,{fullWidth:!0,variant:"contained",onClick:d,sx:u.saveButton,children:"Save"})})]})})}const TN=({isOpen:e,onClose:t,onConfirm:n})=>{const r=tt(),{universal:i}=r;let s;return s=r.productSettingModal,l.jsx(Po,{open:e,onClose:t,"aria-labelledby":"sync-now-modal",sx:s.modal,children:l.jsxs(P,{sx:s.container,children:[l.jsx(P,{sx:s.header,children:l.jsx(W,{sx:{...s.headerTitle,fontSize:22},children:"Are you sure to SyncNow ?"})}),l.jsxs(P,{sx:{...s.footer,flexDirection:"row",gap:2,justifyContent:"center"},children:[l.jsx(Ze,{variant:"contained",color:"primary",onClick:n,sx:{...i.getUniversalBlueButtonSx(),minWidth:100,mx:4},children:"Yes"}),l.jsx(Ze,{variant:"outlined",color:"primary",onClick:t,sx:{minWidth:100},children:"No"})]})]})})};function AN(){const{productSetting:e}=tt(),t=zt(),n=Lt(),r=fn(),{companyId:i,integrationData:s,loading:a}=Ye(F=>F?.dashboard||{}),[c,d]=N.useState(!0),[p,u]=N.useState(),[h,m]=N.useState(0),[y,g]=N.useState(""),[f,b]=N.useState(!1),[x,E]=N.useState(!1),[w,S]=N.useState(!1),[T,v]=N.useState(""),k=N.useRef(null),M=N.useRef(!1);N.useEffect(()=>{const F=t.state?.tenantIntegrationMatched===!0;i&&i!==k.current&&!a&&(s&&(s?.id||s?.channelId||s?.configs||typeof s=="object"&&Object.keys(s).length>0)?k.current=i:(k.current=i,r(Qt(i)))),F&&i&&!a&&!M.current&&(M.current=!0,r(Qt(i))),F||(M.current=!1)},[i,r,a,s,t.state]),N.useEffect(()=>{let F=!1;t.state&&typeof t.state.tenantIntegrationMatched=="boolean"&&(F=t.state.tenantIntegrationMatched);const j=s&&(s?.id||s?.channelId||s?.configs||Array.isArray(s?.data)&&s.data.length>0||typeof s=="object"&&Object.keys(s).length>0),V=t.state?.fromSyncStep===1?1:F===!0||j?3:0;queueMicrotask(()=>m(V))},[t.state,s]);const B=()=>b(!0),z=F=>{g(F),m(1),b(!1)},$=()=>{n("/products/settings/ftp-sync",{state:{fromSyncStep:h}})},C=async()=>{const F=s?.channelId||s?.id;if(!F){v("Channel ID not found"),S(!0),E(!1);return}E(!1);try{const j=await r(mi(F));if(mi.fulfilled.match(j)){const V=j.payload?.message==="Sync started successfully"?"Sync started successfully":"Sync not started successfully";v(V),S(!0),V==="Sync started successfully"&&setTimeout(()=>{r(Qt(i)),r(Mr()),n("/")},2500)}else v("Sync not started successfully"),S(!0)}catch{v("Sync not started successfully"),S(!0)}},I=N.useCallback(()=>{h===1?(m(0),g("")):n("/")},[h,n]),{setSettingTopbarProps:_}=$o()||{};return N.useEffect(()=>{if(_)return _({onBack:I}),()=>_({})},[_,I]),l.jsxs(P,{sx:e.pageRoot,children:[l.jsx(EN,{open:f,onClose:()=>b(!1),onSave:z}),l.jsx(TN,{isOpen:x,onClose:()=>E(!1),onConfirm:C}),l.jsx(Do,{open:w,autoHideDuration:4e3,onClose:()=>S(!1),message:T,anchorOrigin:{vertical:"top",horizontal:"center"}}),l.jsx(CN,{airaAiEnabled:c,setAiraAiEnabled:d,selectedCard:p,setSelectedCard:u,syncStep:h,syncMethod:y,integrationData:s,onSetupSync:B,onSetupFTP:$,onSyncNow:()=>E(!0)})]})}const PN=["Setup FTP","Check data","Start Sync"],kN=e=>{const{universal:t,ftpSync:n}=tt(),r=n.step0;return l.jsx(P,{sx:n.ftpPageBackground,children:l.jsxs(P,{sx:r.innerColumn,children:[l.jsx(P,{sx:r.stepLabelsRow,children:PN.map((i,s)=>l.jsx(W,{component:"span",sx:{...r.stepLabelTypography,fontWeight:s===0?600:400},children:i},i))}),l.jsx(P,{sx:r.mainWhiteContainer,children:l.jsxs(bn,{elevation:0,sx:r.setupPaper,children:[l.jsxs(P,{sx:r.instructionsBlock,children:[l.jsx(W,{sx:r.instructionsTitle,children:"Setup Instructions"}),l.jsxs(P,{component:"ol",sx:r.instructionsOrderedList,children:[l.jsx("li",{children:"Directory should have just one file"}),l.jsx("li",{children:"File format must be in CSV (comma separated)"}),l.jsx("li",{children:"File structure should be flat"})]})]}),l.jsx(P,{sx:r.nextButtonRow,children:l.jsx(Ze,{variant:"contained",color:"primary",sx:{...t.getUniversalBlueButtonSx(),borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:()=>e.onNext&&e.onNext(),children:"Next"})})]})})]})})};function ON(e){const{sx:t,fontSize:n,...r}=e;return l.jsxs(or,{viewBox:"0 0 14.666666 10.666666",sx:{fontSize:n||14.666666,color:"#454545",...t},...r,children:[l.jsx("path",{d:"M1 5.333333C2.2 3.2 4.266667 1.666667 7.333333 1.666667C10.4 1.666667 12.466667 3.2 13.666667 5.333333C12.466667 7.466667 10.4 9 7.333333 9C4.266667 9 2.2 7.466667 1 5.333333Z",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("circle",{cx:"7.333333",cy:"5.333333",r:"2",fill:"none",stroke:"currentColor",strokeWidth:"1"})]})}function IN(e){const{sx:t,fontSize:n,...r}=e;return l.jsxs(or,{viewBox:"0 0 14.666666 10.666666",sx:{fontSize:n||14.666666,color:"#454545",...t},...r,children:[l.jsx("path",{d:"M1 5.333333C2.2 3.2 4.266667 1.666667 7.333333 1.666667C10.4 1.666667 12.466667 3.2 13.666667 5.333333C12.466667 7.466667 10.4 9 7.333333 9C4.266667 9 2.2 7.466667 1 5.333333Z",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("circle",{cx:"7.333333",cy:"5.333333",r:"2",fill:"none",stroke:"currentColor",strokeWidth:"1"}),l.jsx("path",{d:"M2 9L12.666667 1.666667",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round"})]})}function Ty(e){const{sx:t,color:n,circleColor:r=n??gt,tickColor:i=n??gt,fontSize:s,...a}=e;return l.jsxs(or,{viewBox:"0 0 24 24",sx:{fontSize:s||24,...t},...a,children:[l.jsx("circle",{cx:"12",cy:"12",r:"10",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round"}),l.jsx("path",{fill:"none",stroke:i,strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",d:"M6.5 12l3.5 4 7-8"})]})}const NN=({active:e,completed:t,showBlue:n,stepIconCircleSx:r})=>{const i=!e&&!t,s=n?gt:"#bbb",a=gt;return l.jsx(P,{sx:{...r,...i?{borderColor:s}:{border:"none",background:"transparent"}},children:i?l.jsx("svg",{width:10,height:10,viewBox:"0 0 24 24",fill:"none",style:{display:"block"},children:l.jsx("path",{d:"M7 10l5 5 5-5",stroke:s,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):l.jsx(Ty,{circleColor:s,tickColor:a,sx:{fontSize:16,display:"block"}})})},Pl=({steps:e=[],activeStep:t=0,showCheckDataBlueTick:n=!1,progressToCheckData:r=!1,showSetupFtpBlueTick:i=!1,showStartSyncBlueTick:s=!1,instantComplete:a=!1,progressSegment:c,filledSegments:d,filledSegmentsStart:p=0,previousStepsComplete:u=!1})=>{const{ftpSyncStepper:h}=tt(),y=Ln().transitions?.duration?.standard??400,[g,f]=N.useState(0),[b,x]=N.useState(!1),E=Math.max(1,e.length),w=50/E,S=100*(E-1)/E,T=40/E,v=E>1?100/E:0,k=100,M=N.useMemo(()=>{let B;if(typeof d=="number"){const $=typeof p=="number"?p:0,C=d-$;B=v*($+g*C)}else typeof c=="number"?B=v*(c+g):s?B=g?S:0:r?B=g?S*.5:0:B=g?T:0;const z=Math.min(B,S)/S;return Math.round(z*k)},[g,d,p,c,s,r,v,S,T]);return N.useEffect(()=>{if(a){setTimeout(()=>{f(1),x(!0)},0);return}if(typeof d=="number"&&typeof p=="number"&&p>0){setTimeout(()=>{f(0),x(!1)},0);const z=setTimeout(()=>{f(1),setTimeout(()=>x(!0),y)},50);return()=>clearTimeout(z)}setTimeout(()=>{f(0),x(!1)},0);const B=setTimeout(()=>{f(1),setTimeout(()=>x(!0),y)},50);return()=>clearTimeout(B)},[t,e.length,r,a,d,p,y]),l.jsxs(P,{sx:h.stepperRoot,children:[l.jsx(P,{sx:h.stepIconsRow,children:e.map((B,z)=>l.jsxs(P,{sx:h.stepColumn,children:[l.jsx(NN,{active:z===t,completed:z<t,stepIconCircleSx:h.stepIconCircle,showBlue:z===0&&i||z===1&&n&&(b||u)||z===2&&s}),l.jsx(P,{component:"span",sx:{...h.stepLabelText,fontWeight:z===0?600:400},children:B})]},B))}),l.jsx(P,{sx:h.progressBarSection,children:l.jsx(P,{sx:h.getProgressBarTrackOffsetSx(w,S),children:l.jsx(Im,{variant:"progress",steps:k+1,position:"static",activeStep:M,sx:h.mobileStepperProgress,nextButton:null,backButton:null})})})]})},MN=e=>e.dashboard?.companyId||"";function FN(e){try{const t=new URL(e);return{type:t.protocol.replace(":",""),host:t.hostname,port:t.port,path:t.pathname}}catch{return{type:"",host:"",port:"",path:""}}}const DN=e=>{const{universal:t,ftpSync:n}=tt(),r=n.step1,i=n.common,{ftpDetails:s={},stepperProps:a={}}=e,[c,d]=N.useState(null),p=zt(),u=Lt(),h=Ye(MN),[m,y]=N.useState(!1);N.useEffect(()=>{let I,_;return setTimeout(()=>{y(!1),I=setTimeout(()=>{_=setTimeout(()=>y(!0),600)},100)},0),()=>{I&&clearTimeout(I),_&&clearTimeout(_)}},[]);const[g,f]=N.useState(!1),b=localStorage.getItem("selectedSyncMethod")||"sftp",[x,E]=N.useState(`${b}:`),[w,S]=N.useState(""),[T,v]=N.useState(""),k=fn(),M=Ye(I=>I.productSettings?.loading||!1),B=Ye(I=>I.productSettings?.error||null),z=Ln();_t(z.breakpoints.up("lg"));const $=Ye(I=>I.productSettings.syncData);N.useEffect(()=>{const I=p.state?.ftpConfig,_=p.state?.tenantIntegrationData;if($&&$.serverAddress){setTimeout(()=>{E($.serverAddress||""),S($.configs&&$.configs.username||""),v($.configs&&$.configs.password||"")},0);return}if(s&&(s.host||s.username||s.password)){const F=s.type||"sftp",j=s.host||"",V=s.port||"",R=s.path||"",U=`${F}://${j}${V?`:${V}`:""}${R?`/${R}`:""}`;setTimeout(()=>{E(U),S(s.username||""),v(s.password||"")},0);return}if(_&&_.configs){const F=_.configs,j=F.type||_.type||"sftp",V=F.host||"",R=F.port||"",U=F.path||"",D=`${j}://${V}:${R}/${U}`,O=F.username||"",L=F.password||"";setTimeout(()=>{E(D),S(O),v(L)},0);return}if(I){const j=`${I.type||"sftp"}://${I.host}:${I.port}/${I.path}`,V=I.username||"",R=I.password||"";setTimeout(()=>{E(j),S(V),v(R)},0)}},[p.state,$,s]);const C=async()=>{if(!h){alert("Company ID is required. Please ensure the app is properly configured.");return}const{type:I,host:_,port:F,path:j}=FN(x),V=await k(hi({serverAddress:x,username:w,password:T,companyId:h}));if(!hi.fulfilled.match(V))return;const R=V.payload;if(p.state?.fromSettingsIcon){const O=R?.entity_type||c?.entity_type||"products",L={...c||{},companyId:h,tenantId:h,type:I,serverAddress:x,configs:{host:_,port:Number(F),path:j,username:w,password:T,sync_frequency:c?.configs?.sync_frequency||s?.sync_frequency||"",sync_time:c?.configs?.sync_time||s?.sync_time||""},entity_type:O,mappings:c?.mappings||R?.existing_mapping?.mappings||[]};d(L),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(L)),u("/ftp-sync-2",{state:{fromSettingsIcon:!0,putjson:L}});return}const U=R?.entity_type||"",D={tenantId:h,type:I,serverAddress:x,configs:{host:_,port:Number(F),path:j,username:w,password:T,sync_frequency:"",sync_time:""},entity_type:U||"products",mappings:R?.existing_mapping?.mappings||[]};k(sa(D)),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(D)),e.onNext&&e.onNext({putjson:D})};return l.jsx(P,{sx:n.ftpPageBackground,children:l.jsxs(P,{sx:i.wizardOuterColumnStep1,children:[l.jsx(P,{sx:i.stepperSlot,children:l.jsx(Pl,{...a,showSetupFtpBlueTick:m})}),l.jsx(P,{sx:r.loginSectionOuter,children:l.jsxs(P,{sx:r.loginCard,children:[l.jsx(P,{sx:r.loginTitleRow,children:l.jsx(W,{sx:r.loginTitleTypography,children:"Login Details"})}),l.jsxs(P,{component:"form",autoComplete:"off",sx:r.loginForm,children:[l.jsxs(P,{sx:r.loginFieldColumn,children:[l.jsx(P,{component:"label",sx:r.loginFieldLabel,children:"Server Address"}),l.jsx(P,{component:"input",type:"text",value:x,onChange:I=>E(I.target.value),placeholder:"sftp://234.124.12.34:4432/data/sync",sx:r.loginTextInput})]}),l.jsxs(P,{sx:r.loginFieldColumn,children:[l.jsx(P,{component:"label",sx:r.loginFieldLabel,children:"Username"}),l.jsx(P,{component:"input",type:"text",value:w,onChange:I=>S(I.target.value),placeholder:"Enter username",sx:r.loginTextInput})]}),l.jsxs(P,{sx:r.loginFieldColumnPassword,children:[l.jsx(P,{component:"label",sx:r.loginFieldLabel,children:"Password"}),l.jsx(P,{component:"input",type:g?"text":"password",value:T,onChange:I=>v(I.target.value),placeholder:"Enter password",sx:r.loginPasswordInput}),l.jsx(it,{"aria-label":"toggle password visibility",onClick:()=>f(I=>!I),tabIndex:-1,size:"small",sx:r.passwordVisibilityIconButton,children:g?l.jsx(IN,{}):l.jsx(ON,{})})]})]}),l.jsxs(P,{sx:r.loginActionsRow,children:[l.jsx(Ze,{variant:"outlined",color:"primary",sx:r.outlinedBackButton,onClick:e.onBack,children:"Back"}),l.jsx(Ze,{variant:"contained",color:"primary",sx:{...t.getUniversalBlueButtonSx(),borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:C,disabled:M,children:M?"Loading...":"Next"})]}),B&&l.jsx(W,{color:"error",sx:r.ftpConnectionErrorText,children:"Fill the credentials"})]})})]})})},BN=e=>e.productSettings.ftpColumns||[],_N=e=>e.productSettings.preview||[],$N=e=>e.productSettings.loading,zN=e=>e.productSettings.error,LN=e=>e.productSettings.existingMapping,jN=e=>e.productSettings.entity_type||"products";function WN(e,t){const n=Array.isArray(e)?e:[];if(t==null||t==="")return n;const r=String(t);return n.includes(r)?n:[...n,r]}const VN=e=>{const{universal:t,ftpSync:n}=tt(),r=n.step2,i=n.common,{mapping:s=[],onBack:a,onNext:c,stepperProps:d={}}=e,p=zt(),u=Lt(),h=p.state?.fromSettingsIcon,[m,y]=N.useState(()=>{if(p.state?.putjson)return p.state.putjson;const D=window.localStorage.getItem("ftpSyncPutjson");return D?JSON.parse(D):s.length>0?{mappings:s}:null}),[g,f]=N.useState([]),[b,x]=N.useState({}),E=Ye(BN),w=Ye(_N),S=Ye($N),T=Ye(zN),v=Ye(LN),k=Ye(jN),M=N.useRef(S);N.useEffect(()=>{S&&!M.current&&queueMicrotask(()=>x({})),M.current=S},[S]);const B=N.useRef(!1);N.useLayoutEffect(()=>{v==null||!v?.mappings||v.mappings.length===0?B.current||(B.current=!0,queueMicrotask(()=>x({}))):B.current=!1},[v]);const z=fn();N.useEffect(()=>{async function D(){try{let O=[];if(v?.mappings?.length>0){const L=v.mappings.map(H=>H.target_field).filter(H=>H&&typeof H=="string");O=[...new Set(L)]}try{const L=await z(yi(k));yi.fulfilled.match(L)&&Array.isArray(L.payload)&&L.payload.filter(Y=>Y&&typeof Y=="string").forEach(Y=>{O.includes(Y)||O.push(Y)})}catch{}if(s&&s.length>0){const L=s.map(H=>H.target_field).filter(H=>H&&typeof H=="string"&&!O.includes(H));L.length>0&&(O=[...O,...L])}O=O.filter(L=>L&&typeof L=="string"),f(O)}catch{if(v?.mappings?.length>0){const O=v.mappings.map(H=>H.target_field).filter(H=>H&&typeof H=="string"),L=[...new Set(O)];f(L)}else f([])}}(k||v?.mappings?.length>0||s&&s.length>0)&&D()},[k,v,s,z]);const $=N.useMemo(()=>{if(v?.mappings&&v.mappings.length>0){const D=v.mappings.map(O=>O.source_field).filter(O=>O);if(D.length>0)return D}return E&&E.length>0?E:[]},[v,E]),C=N.useMemo(()=>w.filter(O=>Object.keys(O).length>0),[w]),I=N.useMemo(()=>{if(v?.mappings&&v.mappings.length>0){const D={};return v.mappings.forEach(O=>{O.source_field&&O.target_field&&(D[O.source_field]=O.target_field)}),D}return{}},[v]),F=v?.mappings?.length>0?{...I,...b}:{...b},j=Ln();_t(j.breakpoints.up("lg"));const V=Ye(D=>D.productSettings.syncData),R=N.useMemo(()=>{if(V?.serverAddress)return V.serverAddress;const D=V?.configs||{},O=(V?.type||"sftp").toLowerCase(),L=D.host,H=D.port,Y=D.path;if(!L)return"";let X=`${O}://${L}`;if(H!=null&&H!==""&&(X+=`:${H}`),Y){const te=String(Y).replace(/^\/+/,"");X+=`/${te}`}return X},[V]),U=()=>{const D=$.map(Y=>({source_field:Y||"",target_field:F[Y]||""})).filter(Y=>Y.source_field&&Y.target_field);if(D.length===0)return;if(h&&m){const Y={...m,tenantId:m.tenantId||m.companyId,type:m.type||V.type||"sftp",entity_type:m.entity_type||V.entity_type||"products",mappings:D};y(Y),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(Y)),c?c({fromSettingsIcon:!0,putjson:Y}):e.onNext&&e.onNext({fromSettingsIcon:!0,putjson:Y});return}const O=JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"{}"),L=V.companyId||O.companyId||O.tenantId||"",H={...O,companyId:L,tenantId:L,type:V.type||O.type||"sftp",integration_type:V.integration_type||O.integration_type||"",entity_type:O.entity_type||V.entity_type||"products",configs:V.configs||O.configs||{},ftp_columns:$,preview:C,mappings:D};z(sa(H)),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(H)),c?c({putjson:H}):e.onNext&&e.onNext({putjson:H})};return l.jsx(P,{sx:n.ftpPageBackground,children:l.jsxs(P,{sx:i.wizardOuterColumn,children:[l.jsx(P,{sx:i.stepperSlot,children:l.jsx(Pl,{...d})}),l.jsx(P,{sx:r.mappingPaperWrap,children:l.jsxs(bn,{elevation:0,sx:r.mappingPaper,children:[l.jsxs(P,{sx:r.mappingHeaderToolbar,children:[l.jsxs(P,{sx:r.mappingHeaderTextBlock,children:[l.jsx(W,{variant:"subtitle1",sx:r.mappingHeaderTitleTypography,children:"Map data from FTP to AiraOps"}),R&&l.jsx(W,{variant:"body2",component:"div",sx:r.mappingHeaderServerHint,children:R})]}),l.jsxs(P,{sx:r.mappingHeaderActionsWrap,children:[l.jsx(Ze,{variant:"outlined",color:"primary",sx:r.mappingBackButton,onClick:a||(()=>u("/products/settings/ftp-sync",{state:{step:1}})),children:"Back"}),l.jsx(Ze,{variant:"contained",color:"primary",sx:{...t.getUniversalBlueButtonSx(),borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:U,children:"Next"})]})]}),l.jsx(ny,{sx:r.mappingTableContainer,children:S?l.jsx(P,{sx:r.mappingTableLoadingBox,children:"Loading..."}):T?l.jsx(P,{sx:r.mappingTableErrorBox,children:T}):$.length===0?l.jsx(P,{sx:r.mappingTableEmptyHint,children:"No columns available. Please check your FTP connection and try again."}):l.jsxs(Zm,{size:"small",sx:r.mappingTable,children:[l.jsxs(oy,{children:[l.jsxs(us,{children:[l.jsx(Er,{sx:r.mappingTableHeadCell,children:"Columns in FTP"}),$.map((D,O)=>l.jsx(Er,{sx:r.mappingTableHeadCell,children:D},D+O))]}),l.jsxs(us,{children:[l.jsx(Er,{sx:r.mappingTableHeadCellTight,children:"Columns in Aira"}),$.map((D,O)=>{const L=F[D]??"",H=WN(g,L);return l.jsx(Er,{sx:r.mappingTableSelectCell,children:l.jsxs(cn,{value:L===""?"":String(L),onChange:Y=>x(X=>({...X,[D]:Y.target.value})),variant:"standard",disableUnderline:!0,displayEmpty:!0,sx:r.mappingColumnSelect,MenuProps:{PaperProps:{sx:r.mappingSelectMenuPaper},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},MenuListProps:{sx:r.mappingSelectMenuList}},children:[l.jsx(et,{value:"",sx:r.mappingSelectMenuItem,children:l.jsx(P,{component:"em",sx:r.mappingSelectPlaceholderEm,children:"Select column"})}),H.map(Y=>l.jsx(et,{value:Y,sx:r.mappingSelectMenuItem,children:Y},Y))]})},O)})]})]}),l.jsx(ty,{children:C.length>0?C.map((D,O)=>l.jsxs(us,{children:[l.jsx(Er,{sx:r.mappingTableBodyLabelCell,children:O===0?"Data preview":""}),$.map((L,H)=>l.jsx(Er,{sx:r.mappingTableBodyCell,children:D[L]||""},H))]},O)):l.jsx(us,{children:l.jsx(Er,{colSpan:$.length+1,sx:r.mappingTableNoPreviewCell,children:"No preview data available"})})})]})})]})})]})})},HN=e=>e.dashboard?.companyId||"",UN=e=>e.dashboard?.integrationData||null,RN=e=>{const{universal:t,ftpSync:n}=tt(),r=n.step3,i=n.common,{syncFrequency:s="",syncTime:a="",stepperProps:c={}}=e,d=zt(),p=Lt(),u=fn(),h=Ye(HN),m=Ye(UN),y=d.state?.fromSettingsIcon,[g,f]=N.useState(()=>{if(d.state?.putjson){const L=JSON.parse(JSON.stringify(d.state.putjson));return L.mappings&&(L.originalMappings=JSON.parse(JSON.stringify(L.mappings))),L.configs?.sync_frequency&&!L.originalSyncFrequency&&(L.originalSyncFrequency=L.configs.sync_frequency),L.configs?.sync_time&&!L.originalSyncTime&&(L.originalSyncTime=L.configs.sync_time),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(L)),L}const O=window.localStorage.getItem("ftpSyncPutjson");if(O){const L=JSON.parse(O);return L.mappings&&!L.originalMappings&&(L.originalMappings=JSON.parse(JSON.stringify(L.mappings))),L.configs?.sync_frequency&&!L.originalSyncFrequency&&(L.originalSyncFrequency=L.configs.sync_frequency),L.configs?.sync_time&&!L.originalSyncTime&&(L.originalSyncTime=L.configs.sync_time),L}return null});N.useEffect(()=>{g&&window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(g))},[g]);const[b,x]=N.useState(null),[E,w]=N.useState(null);N.useEffect(()=>{const O=d.state?.fromProductSetting;let L=null;if(O&&d.state?.integrationData)L=d.state.integrationData;else if(m&&Object.keys(m).length>0)L=m;else if(h&&!O){u(Qt(h)).then(H=>{if(Qt.fulfilled.match(H)){const Y=H.payload;if(L=Y&&Y.data&&Y.data[0]||null,L){x(L);const X=L.id||L.channelId||null;X&&w(X)}}});return}if(L){x(L);const H=L.id||L.channelId||null;H&&w(H)}},[h,d.state,m,u]);const S=!!y||!!b,T=O=>{if(!O)return"";const L=O.charAt(0).toUpperCase()+O.slice(1).toLowerCase();return L==="Daily"||L==="Day"?"Daily":L==="Weekly"||L==="Week"?"Weekly":L==="Monthly"||L==="Month"?"Monthly":L},[v,k]=N.useState(()=>{if(s)return T(s);const O=g?.configs?.sync_frequency?T(g.configs.sync_frequency):"";return O||"Daily"}),[M,B]=N.useState(a||g&&g.configs?.sync_time||"");N.useEffect(()=>{async function O(){if(h)try{const L=d.state?.fromProductSetting;let H=null;if(L&&d.state?.integrationData)H=d.state.integrationData;else if(m&&Object.keys(m).length>0)H=m;else{const Y=await u(Qt(h));if(Qt.fulfilled.match(Y)){const X=Y.payload;H=X&&X.data&&X.data[0]||null}}if(H){const Y=H.id||H.channelId||null;Y&&w(Y);const X=g||JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"null"),te={...H,companyId:H.companyId||h,entity_type:H.entity_type||X?.entity_type||"product",mappings:H.mappings||X?.mappings||[]},ce=H.configs?.sync_frequency||"",de=H.configs?.sync_time||"",ae=T(ce);if(f(te),L){if(s){const J=T(s);k(J)}a&&B(a),f(J=>({...J,...te,originalSyncFrequency:s?T(s):J.originalSyncFrequency||ae,originalSyncTime:a||J.originalSyncTime||de,configs:{...te.configs,sync_frequency:s?T(s).toLowerCase():te.configs?.sync_frequency,sync_time:a||te.configs?.sync_time}}))}else{const J=s?T(s):"";if(J)k(J);else if(ae)k(ae);else if(X?.configs?.sync_frequency){const oe=T(X.configs.sync_frequency);k(oe)}else k("Daily");a?B(a):de?B(de):X?.configs?.sync_time?B(X.configs.sync_time):B(""),f(te),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(te))}}}catch{const L=JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"null");!s&&L?.configs?.sync_frequency?k(T(L.configs.sync_frequency)):s&&k(T(s)),!a&&L?.configs?.sync_time?B(L.configs.sync_time):a&&B(a)}}O()},[h]),N.useEffect(()=>{if(s){const O=T(s);k(O),g&&g.configs?.sync_frequency!==O&&f(L=>{const H={...L,configs:{...L.configs,sync_frequency:O}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(H)),H})}},[s]),N.useEffect(()=>{a&&(B(a),g&&g.configs?.sync_time!==a&&f(O=>{const L={...O,configs:{...O.configs,sync_time:a}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(L)),L}))},[a]),N.useEffect(()=>{if(g&&S&&(v||M)){const O=g.configs?.sync_frequency,L=g.configs?.sync_time;(O!==v||L!==M)&&f(H=>{const Y={...H,configs:{...H.configs,sync_frequency:v||H.configs?.sync_frequency,sync_time:M||H.configs?.sync_time}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(Y)),Y})}},[v,M,S]);const z=Ye(O=>O.productSettings.syncData),$=O=>{const L=O.target.value;k(L),g&&f(H=>{const Y={...H,configs:{...H.configs,sync_frequency:L}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(Y)),Y}),S||u(sa({...z,configs:{...z&&z.configs||{},sync_frequency:L,sync_time:M}}))},C=O=>{const L=O.target.value;B(L),g&&f(H=>{const Y={...H,configs:{...H.configs,sync_time:L}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(Y)),Y}),S||u(sa({...z,configs:{...z&&z.configs||{},sync_frequency:v,sync_time:L}}))};function I(O){try{const L=new URL(O);return{type:L.protocol.replace(":",""),host:L.hostname,port:L.port,path:L.pathname}}catch{return{type:"",host:"",port:"",path:""}}}const[_,F]=N.useState(!1),[j,V]=N.useState(""),R=async()=>{const O=d.state?.fromProductSetting;if(S){if(!g){V("Update failed: missing data."),F(!0);return}let q={...g};g.originalMappings||(q.originalMappings=g.mappings?JSON.parse(JSON.stringify(g.mappings)):[],f(q)),!g.originalSyncFrequency&&g.configs?.sync_frequency&&(q.originalSyncFrequency=g.configs.sync_frequency||"",f(q)),!g.originalSyncTime&&g.configs?.sync_time&&(q.originalSyncTime=g.configs.sync_time||"",f(q));const he=JSON.parse(JSON.stringify(g.mappings||[])),ue=JSON.parse(JSON.stringify(g.originalMappings||[]));let Ee,ke;O?(Ee=s?T(s):"",ke=a||""):(Ee=g.originalSyncFrequency||g.configs?.sync_frequency||"",ke=g.originalSyncTime||g.configs?.sync_time||"",Ee=T(Ee));const ve=O?!1:JSON.stringify(he)!==JSON.stringify(ue),le=v!==Ee,qe=M!==ke,He=(le||qe)&&!ve,fe=ve;if(He){const re=E||g?.id||g?.channelId||d.state?.integrationData?.id||d.state?.integrationData?.channelId;if(!re){V("Channel ID is missing. Please try again."),F(!0);return}const xe={configs:{}};le&&(xe.configs.sync_frequency=v.toLowerCase()),qe&&(xe.configs.sync_time=M);try{const Se=await u(bi({channelId:re,data:xe}));if(Se.error||bi.rejected.match(Se)){const me=Se.payload||Se.error?.message||"Update failed. Please try again.";V(me),F(!0);return}let we="";le&&!qe?we="SyncFrequency Updated":!le&&qe?we="SyncTime Updated":le&&qe&&(we="SyncTime and SyncFrequency Updated"),V(we),F(!0),f(me=>{const Re={...me,configs:{...me.configs,sync_frequency:v.toLowerCase(),sync_time:M},originalSyncFrequency:v,originalSyncTime:M};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(Re)),Re});const ye=d.state?.fromProductSetting;ye&&h&&await u(Qt(h)),setTimeout(()=>{ye&&p("/product-setting",{state:{tenantIntegrationMatched:!0}})},1500);return}catch(Se){const we=Se?.message||Se?.response?.data?.message||"Update failed. Please try again.";V(we),F(!0);return}}if(fe){const re={...g,configs:{...g.configs,sync_frequency:v.toLowerCase(),sync_time:M}};f(re),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(re));const xe=re.tenantId||re.companyId;if(!re.configs){V("Configuration error. Please try again."),F(!0);return}const Se=re.entity_type||g?.entity_type;if(!Se){V("Entity type is missing. Please try again."),F(!0);return}const we={tenantId:xe,type:re.type,entity_type:Se,configs:{host:re.configs.host||"",port:re.configs.port?Number(re.configs.port):0,username:re.configs.username||"",password:re.configs.password||"",path:re.configs.path||"",sync_frequency:v.toLowerCase()||"",sync_time:M||""},mappings:(re.mappings||[]).map(ye=>({source_field:ye.source_field,target_field:ye.target_field}))};if(!we.tenantId){V("Tenant ID is missing. Please try again."),F(!0);return}if(!we.type){V("Sync type is missing. Please try again."),F(!0);return}if(!we.entity_type){V("Entity type is missing. Please try again."),F(!0);return}try{const ye=await u(io(we));if(io.rejected.match(ye)){const me=ye.payload||ye.error?.message||"Update failed. Please try again.";V(me),F(!0);return}io.fulfilled.match(ye)?(f(me=>{const Re={...me,originalSyncFrequency:v,originalSyncTime:M,originalMappings:JSON.parse(JSON.stringify(me.mappings||[]))};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(Re)),Re}),V("Sync Update Successfully"),F(!0),setTimeout(()=>{p("/product-setting",{state:{tenantIntegrationMatched:!0}})},1500)):(V("Update failed. Please try again."),F(!0))}catch(ye){const me=ye?.message||ye?.response?.data?.message||"Update failed. Please try again.";V(me),F(!0)}}else V("No changes detected."),F(!0);return}const L=z.configs||{},H=I(z.serverAddress||""),Y=L.host||H.host,X=L.port!=null?Number(L.port):parseInt(H.port,10),te=(L.path||H.path||"").replace(/^\//,""),ce=z.type||H.type||"sftp",de=z.username||L.username||"",ae=z.password||L.password||"",J=v||L.sync_frequency||"",oe=typeof J=="string"?J.toLowerCase():J;let G=M||L.sync_time||"";if(typeof G=="string"&&/^\d{1,2}:\d{2}\s*[AP]M$/i.test(G.trim())){const[q,he]=G.trim().split(/\s+/),[ue,Ee]=q.split(":").map(Number),ke=he.toUpperCase()==="PM"&&ue!==12?ue+12:he.toUpperCase()==="AM"&&ue===12?0:ue;G=`${String(ke).padStart(2,"0")}:${String(Ee).padStart(2,"0")}`}else typeof G=="string"&&(G=G.trim());const pe=(z.mappings||[]).filter(q=>q.source_field&&q.target_field).map(q=>({source_field:q.source_field,target_field:q.target_field}));if(!h){V("Company ID is required. Please ensure the app is properly configured."),F(!0);return}if(!Y||!X||!de||!ae||pe.length===0){V("Please fill all required fields and mappings before saving."),F(!0);return}const ee=z.entity_type||"products",K={tenantId:h,type:ce,entity_type:ee,configs:{host:Y,port:Number(X),username:de,password:ae,path:te,sync_frequency:oe,sync_time:G},mappings:pe};try{const q=await u(gi(K));gi.fulfilled.match(q)?(V("Save and Start Sync Updated Successfully"),F(!0),e.onNext&&e.onNext()):(V(q?.payload||"Save failed. Please try again."),F(!0))}catch{V("Save failed. Please try again."),F(!0)}},[U,D]=N.useState(!1);return N.useEffect(()=>{const O=setTimeout(()=>D(!0),850);return()=>clearTimeout(O)},[]),l.jsx(P,{sx:n.ftpPageBackground,children:l.jsxs(P,{sx:i.wizardOuterColumn,children:[l.jsx(P,{sx:i.stepperSlot,children:l.jsx(Pl,{...c,showStartSyncBlueTick:U})}),l.jsx(P,{sx:r.schedulePanelOuter,children:l.jsx(P,{sx:r.schedulePanelInner,children:l.jsxs(bn,{elevation:0,sx:r.scheduleFormPaper,children:[l.jsxs(P,{sx:r.scheduleFieldsRow,children:[l.jsxs(P,{sx:r.scheduleFieldColumn,children:[l.jsx(W,{variant:"subtitle2",sx:r.scheduleFieldLabel,children:"Sync Frequency"}),l.jsxs(cn,{size:"small",value:v,onChange:$,sx:r.syncFrequencySelect,children:[l.jsx(et,{value:"Daily",children:"Daily"}),l.jsx(et,{value:"Weekly",children:"Weekly"}),l.jsx(et,{value:"Monthly",children:"Monthly"})]})]}),l.jsxs(P,{sx:r.scheduleFieldColumn,children:[l.jsx(W,{variant:"subtitle2",sx:r.scheduleFieldLabel,children:"Sync Time"}),l.jsx(ps,{type:"time",size:"small",value:M,onChange:C,sx:r.syncTimeTextField,InputLabelProps:{shrink:!0},inputProps:{step:300}})]})]}),l.jsxs(P,{sx:r.scheduleActionsRow,children:[l.jsx(Ze,{variant:"outlined",color:"primary",sx:r.scheduleHalfOutlinedButton,onClick:e.onBack,children:"Back"}),l.jsx(Ze,{variant:"contained",color:"primary",sx:{...t.getUniversalBlueButtonSx(),...r.scheduleHalfPrimaryButton},onClick:R,children:S&&(d.state?.fromSyncSetting||d.state?.editMode)?"Save":S?"Update Sync":"Save and Start Sync"})]}),l.jsx(Do,{open:_,autoHideDuration:4e3,onClose:()=>F(!1),message:j,anchorOrigin:{vertical:"top",horizontal:"center"}})]})})})]})})},qN=e=>{const{ftpSync:t}=tt(),n=t.step4,r=t.common,{stepperProps:i={}}=e,s=fn(),c=!!Ye(h=>h.productSettings.saveResult),[d,p]=N.useState(c),u=Lt();return N.useEffect(()=>{c&&(p(!0),s(VS()))},[c,s]),l.jsxs(l.Fragment,{children:[l.jsx(Do,{open:d,autoHideDuration:4e3,onClose:()=>p(!1),message:"Sync setup successful!",anchorOrigin:{vertical:"top",horizontal:"center"}}),l.jsx(P,{sx:t.ftpPageBackground,children:l.jsxs(P,{sx:r.wizardOuterColumn,children:[l.jsx(P,{sx:r.stepperSlot,children:l.jsx(Pl,{...i})}),l.jsx(P,{sx:n.completionPanelOuter,children:l.jsxs(P,{sx:n.completionCard,children:[l.jsx(P,{sx:{...n.completionIconCircle,bgcolor:"transparent",boxShadow:"none"},children:l.jsx(Ty,{sx:{fontSize:48}})}),l.jsx(W,{sx:n.completionTitle,children:"Sync Setup Successfully"}),l.jsx(Ze,{variant:"text",sx:n.completionBackToProductsButton,onClick:()=>u("/"),children:"Back to all products"})]})})]})}),l.jsx(Do,{open:d,autoHideDuration:4e3,onClose:()=>p(!1),message:"Integration saved & sync started",anchorOrigin:{vertical:"top",horizontal:"center"}})]})};function YN(e){const{ftpSync:t}=tt(),n=zt(),r=Lt(),i=n.state?.fromProductSetting?3:0,[s,a]=N.useState(i),c=fn(),{companyId:d,integrationData:p}=Ye(B=>B.dashboard),u=n.state?.fromSyncStep;N.useEffect(()=>{const B=n.state?.fromProductSetting;d&&!B&&c(Qt(d))},[d,c,n.state]);const h=()=>{a(B=>Math.min(B+1,4))},m=N.useCallback(()=>{if(s===0&&u!==void 0){r("/product-setting",{state:{fromSyncStep:u,tenantIntegrationMatched:u===3}});return}if(n.state?.fromProductSetting&&s===3){r("/product-setting",{state:{tenantIntegrationMatched:!0}});return}a(B=>Math.max(B-1,0))},[s,u,n.state?.fromProductSetting,r]),y=N.useMemo(()=>[{label:"Products",to:"/"},{label:"Settings",to:"/product-setting"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],[]),g=N.useMemo(()=>[{label:"Products",to:"/"},{label:"Settings",to:"/product-setting"}],[]),{setSettingTopbarProps:f}=$o()||{};N.useEffect(()=>{if(f)return f({onBack:m,breadcrumbs:s===0||s===1?y:g}),()=>f({})},[f,m,s,y,g]);const b=p?.configs||{},x=p?.mappings||p?.dataMappings||[],w=(B=>{if(!B)return"";const z=B.charAt(0).toUpperCase()+B.slice(1).toLowerCase();return z==="Daily"||z==="Day"?"Daily":z==="Weekly"||z==="Week"?"Weekly":z==="Monthly"||z==="Month"?"Monthly":z})(p?.configs?.sync_frequency||""),S=p?.configs?.sync_time||"",T=["Setup FTP","Check data","Start Sync"],v=["Upload File","Check data","Start Sync"],k={0:{steps:T,activeStep:0,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!1,showStartSyncBlueTick:!1},1:{steps:T,activeStep:0,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!1,filledSegments:.5},2:{steps:T,activeStep:1,showCheckDataBlueTick:!0,progressToCheckData:!0,showSetupFtpBlueTick:!0,filledSegmentsStart:.5,filledSegments:1},3:{steps:v,activeStep:2,showCheckDataBlueTick:!0,progressToCheckData:!1,showSetupFtpBlueTick:!0,showStartSyncBlueTick:!1,filledSegmentsStart:1,filledSegments:2,previousStepsComplete:!0},4:{steps:v,activeStep:2,showCheckDataBlueTick:!0,progressToCheckData:!0,showSetupFtpBlueTick:!0,showStartSyncBlueTick:!0,instantComplete:!0}};let M=null;switch(s){case 0:M=l.jsx(kN,{onNext:h,onBack:m,stepperProps:k[0],...e});break;case 1:M=l.jsx(DN,{onNext:h,onBack:m,ftpDetails:b,stepperProps:k[1],...e});break;case 2:M=l.jsx(VN,{onNext:h,onBack:m,mapping:x,stepperProps:k[2],...e});break;case 3:M=l.jsx(RN,{onNext:h,onBack:m,syncFrequency:w,syncTime:S,stepperProps:k[3],...e});break;case 4:M=l.jsx(qN,{onBack:m,stepperProps:k[4],...e});break;default:M=null;break}return l.jsx(Ut,{maxWidth:!1,disableGutters:!0,sx:t.productFtpSyncRootContainer,children:M})}const GN=yt(l.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56M12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96M4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2s.06 1.34.14 2zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56m2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8M12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96M14.34 14H9.66c-.09-.66-.16-1.32-.16-2s.07-1.35.16-2h4.68c.09.65.16 1.32.16 2s-.07 1.34-.16 2m.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56M16.36 14c.08-.66.14-1.32.14-2s-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2z"}),"Language");function KN(e){return l.jsx(P,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center",opacity:1,...e.sx},children:l.jsx(P,{component:"span",sx:{width:20,height:20,display:"flex",alignItems:"center",justifyContent:"center",opacity:1},children:l.jsx(GN,{sx:{color:"#808080"}})})})}const XN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAPCAYAAAA/I0V3AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAUlJREFUeAGNUrttwzAQFfWrnS6VIGsCjyAB+rWZIM4EyQZ2Jog2UDJCOkESYGaC2BOIZcr0+uVdYBqyQMM+gCB5997x3R2ZNjPf913LsnI6Yr23bfvKORdTjD4BL+I4fgPhexzHr6qqGPaDbdu7KIpySnZGgvPZNM0GIIbMy7qut+THnum6HuDIkIzIa/Izyg4wXQJk32sXLE1Tt+/7HY7C8DyvYIz94HLvOM5BCPGrqhOYHGuB6+pfXlmWS6mfXpb6Z3V+Eu6sEVI/gnekn8CzOjOJNacyiqIQ2NZH/c2xTj6XqytqlmR6naviStI1I9I+SZKXW8Coc4MOCtMwjIeu63IaMIp+UkkKw9AHeDMMg4bmBEwGaNoUAJHTf0MHG+oa/UP4XRBOCZki6xatfwSZBioA/oCSDJ/2NHSm0k4txysrtJ1PwdL+AHzhuHE1We3IAAAAAElFTkSuQmCC";function JN({sx:e={},...t}){const n=e?.fontSize??12,r=e?.width??n,i=e?.height??n;return l.jsx(P,{component:"img",src:XN,alt:"",role:"presentation",sx:{width:r,height:i,display:"block",objectFit:"contain",...e},...t})}const QN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAANCAYAAACdKY9CAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAPtJREFUeAGlUUsOgjAQpSWQuLJHQC6gR4DwCe70Bt5Ab6CewCPIEVwSQmKPoDt3uHQnrPn5SjRpTIkLJ2k6bd+b92ZKNCkcx7EMwzh2XTcjhBRYcZqmexlD5QPAZ2zXuq4nuq67IC58399pqsCDg3X+UmRBEDyVCqjGKKWlohZTEpqm4SBNRR+fO9M019himUDkA+RXIB2gJMgMTVvI3SRJ7kqCiCiKrKqq+illWca1f6NXCMNw27btBlXZAO6Ctz3+5EQEWMwbNlzOeaFCe563AOGIdKnbth3jk+bw+xiykef5DbgRSDMxVkuewqB3QgRmTN/Jz0CPwm75AifwYTaKH5pyAAAAAElFTkSuQmCC",ZN={fontSize:10.67,color:"#454545"};function e5({sx:e={},...t}){const n={...ZN,...e},r=n.fontSize??10.67,i=n.width??r,s=n.height??r;return l.jsx(P,{component:"img",src:QN,alt:"",role:"presentation",sx:{width:i,height:s,display:"block",objectFit:"contain",...n},...t})}const t5=yt(l.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save");function n5(e){return l.jsx(t5,{...e})}const r5=yt(l.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"}),"EditOutlined");function o5(e){return l.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",...e.sx},children:l.jsx(P,{component:"span",sx:{width:13.22,height:13.22,display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(r5,{})})})}const i5=yt(l.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline");function s5(e){return l.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",...e.sx},children:l.jsx(P,{component:"span",sx:{width:12,height:13.33,display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(i5,{})})})}function a5(e){const{universal:t}=tt(),{catalogs:n=[],totalCount:r=0,page:i=0,rowsPerPage:s=10,statusById:a={},getStatus:c,onPageChange:d,onRowsPerPageChange:p,onSave:u,onDelete:h,onStatusChange:m,updateCatalogError:y=null,updateCatalogLoading:g=!1}=e,[f,b]=N.useState(null),[x,E]=N.useState({name:"",slug:"",status:!0}),w=$=>{const C=$.slugRaw??(typeof $.slug=="string"?$.slug.replace(/^\//,""):"")??"",I=$.status==="Active"||$.status===!0;b($.id),E({name:$.name??"",slug:C,status:I})},S=async $=>{if(typeof u!="function")return;const C=x.slug.trim().replace(/^\//,""),I={id:$.id,name:x.name.trim(),slug:C||x.name.trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,""),status:x.status};await u(I),b(null)},T=()=>{b(null)},v=n,k=Math.max(0,Number(r)||0),M=Math.max(0,Math.ceil(k/Math.max(1,s))-1),B={borderRadius:"4px",padding:"2px 4px",background:"#F5F5F5",display:"inline-flex",alignItems:"center",gap:"4px"},z=t.getGlobalPaginationStyles({wrapper:{...t.globalPaginationStyles.wrapper,width:"100%",maxWidth:800,flexWrap:"wrap",gap:{xs:"12px",sm:"24px",md:"40px"},rowGap:"12px",paddingLeft:{xs:0,sm:"24px"}},resultsPerPageBox:{...t.globalPaginationStyles.resultsPerPageBox,minWidth:0,flexShrink:0},navBox:{...t.globalPaginationStyles.navBox,minWidth:0,flexShrink:0}});return l.jsx(P,{sx:{minHeight:"100vh",bgcolor:Ct},children:l.jsxs(Ut,{maxWidth:"md",sx:{width:"100%",pt:2,pb:4,display:"flex",flexDirection:"column",gap:"24px",opacity:1,boxSizing:"border-box"},children:[l.jsx(P,{sx:{width:"100%",minHeight:20,display:"flex",alignItems:"center",gap:"24px",flexWrap:"wrap",opacity:1},children:l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"6px",height:20,opacity:1},children:[l.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px",letterSpacing:0,color:"#000000",opacity:1},children:"All Catalogs"}),l.jsx(W,{component:"span",sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",opacity:1},children:r})]})}),y&&l.jsx(W,{color:"error",sx:{mb:0},children:y}),l.jsx(P,{sx:{display:"flex",flexDirection:"column",gap:"8px"},children:v.map($=>{const C=f===$.id,I=typeof c=="function"?c($):a[$.id]??$.status??"Active",_=I==="Active";return l.jsxs(bn,{elevation:0,sx:{width:"100%",maxWidth:"100%",minHeight:106,borderRadius:"12px",border:"1px solid #F1F1F1",padding:"12px 16px",background:"#FFFFFF",display:"grid",gridTemplateColumns:"auto minmax(0, 1fr) auto",gridTemplateRows:"auto auto auto",columnGap:"16px",rowGap:"8px",alignItems:"start",opacity:1,boxSizing:"border-box"},children:[l.jsx(P,{sx:{gridColumn:1,gridRow:"1 / 4",pt:"2px",alignSelf:"start"},children:l.jsx(KN,{})}),l.jsx(P,{sx:{gridColumn:2,gridRow:1,minWidth:0,width:"100%"},children:C?l.jsx(ps,{label:"Name",size:"small",value:x.name,onChange:F=>E(j=>({...j,name:F.target.value})),fullWidth:!0,sx:{"& .MuiInputBase-root":{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px"}}}):l.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#000000",opacity:1,overflowWrap:"anywhere"},children:$.name})}),l.jsxs(P,{sx:{gridColumn:3,gridRow:"1 / 4",display:"flex",flexDirection:{xs:"column",sm:"row"},alignItems:"center",gap:{xs:"8px",sm:"12px"},flexShrink:0,flexWrap:"nowrap",justifySelf:"end",alignSelf:"start"},children:[l.jsx(P,{sx:{flexShrink:0},children:C?l.jsxs(cn,{size:"small",value:x.status?"Active":"Inactive",onChange:F=>E(j=>({...j,status:F.target.value==="Active"})),IconComponent:dr,sx:{minWidth:80,height:24,borderRadius:"4px",padding:"6px 6px 6px 8px",background:x.status?"#D8FBE3":"#F5F5F5",fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",color:"#454545","& .MuiSelect-select":{py:.75},"& .MuiSelect-icon":{width:12,height:12,top:"50%",transform:"translateY(-50%)"}},children:[l.jsx(et,{value:"Active",children:"Active"}),l.jsx(et,{value:"Inactive",children:"Inactive"})]}):l.jsxs(cn,{value:I,onChange:F=>{if(typeof m!="function"||g)return;const j=F.target.value==="Active";m($,j)},disabled:g,IconComponent:dr,sx:{minWidth:80,height:24,borderRadius:"4px",padding:"6px 6px 6px 8px",background:_?"#D8FBE3":"#F5F5F5",fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",color:"#454545","& .MuiSelect-select":{py:.75},"& .MuiSelect-icon":{width:12,height:12,top:"50%",transform:"translateY(-50%)"},"& .MuiOutlinedInput-notchedOutline":{border:"none"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{border:"none"}},variant:"outlined",children:[l.jsx(et,{value:"Active",children:"Active"}),l.jsx(et,{value:"Inactive",children:"Inactive"})]})}),l.jsx(P,{sx:{flexShrink:0,display:"flex",alignItems:"center",flexDirection:"row",gap:.5},children:C?l.jsxs(l.Fragment,{children:[l.jsx(it,{size:"small","aria-label":"Save catalog",disabled:g,onClick:()=>S($),sx:{p:0,color:"#454545"},children:l.jsx(n5,{sx:{fontSize:20}})}),l.jsx(Ze,{size:"small",onClick:T,sx:{minWidth:0,px:1},children:"Cancel"})]}):l.jsx(it,{size:"small","aria-label":"Edit catalog",onClick:()=>w($),sx:{p:0,width:16,height:16},children:l.jsx(o5,{})})}),l.jsx(P,{sx:{flexShrink:0},children:l.jsx(it,{size:"small","aria-label":"Delete catalog",onClick:()=>typeof h=="function"?h($):null,sx:{p:0,width:16,height:16},children:l.jsx(s5,{})})})]}),l.jsx(P,{sx:{gridColumn:2,gridRow:2,minWidth:0,width:"100%"},children:C?l.jsx(ps,{label:"Slug",size:"small",value:x.slug,onChange:F=>E(j=>({...j,slug:F.target.value})),fullWidth:!0,placeholder:"/catalog-slug"}):l.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",opacity:1,overflowWrap:"anywhere"},children:$.slug})}),!C&&l.jsxs(P,{sx:{gridColumn:2,gridRow:3,minWidth:0,width:"100%",display:"flex",flexDirection:"column",gap:"8px"},children:[l.jsx(P,{sx:{display:"flex",alignItems:"center",gap:"4px",flexWrap:"wrap"},children:l.jsxs(P,{sx:B,children:[l.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(JN,{sx:{fontSize:12,color:"#454545"}})}),l.jsxs(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},children:[$.productsCount," Products"]})]})}),l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px",flexWrap:"wrap"},children:[l.jsxs(P,{sx:B,children:[l.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(e5,{})}),l.jsxs(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},children:["By ",$.createdBy]})]}),l.jsxs(P,{sx:B,children:[l.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(Ey,{size:12,color:"#454545"})}),l.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},children:$.date})]})]})]})]},$.id)})}),l.jsxs(P,{sx:z.wrapper,children:[l.jsxs(P,{sx:z.resultsPerPageBox,children:[l.jsx(W,{component:"span",sx:z.resultsPerPageText,children:"Results per page:"}),l.jsxs(cn,{value:s,onChange:$=>typeof p=="function"?p($):null,IconComponent:dr,variant:"standard",disableUnderline:!0,sx:z.select,children:[l.jsx(et,{value:5,children:"5"}),l.jsx(et,{value:10,children:"10"}),l.jsx(et,{value:25,children:"25"})]})]}),l.jsxs(P,{sx:z.navBox,children:[l.jsx(it,{size:"small",disabled:i===0,onClick:()=>typeof d=="function"?d(0):null,sx:z.iconButton,"aria-label":"First page",children:l.jsx(fs,{sx:{width:16,height:16,opacity:1}})}),l.jsx(it,{size:"small",disabled:i===0,onClick:()=>typeof d=="function"?d(Math.max(0,i-1)):null,sx:z.iconButton,"aria-label":"Previous page",children:l.jsx(Kr,{sx:{width:16,height:16,opacity:1}})}),l.jsx(W,{component:"span",sx:z.pageText,children:k===0?"0 - 0 of 0":`${i*s+1} - ${Math.min((i+1)*s,k)} of ${k}`}),l.jsx(it,{size:"small",disabled:i>=M,onClick:()=>typeof d=="function"?d(i+1):null,sx:z.iconButton,"aria-label":"Next page",children:l.jsx(Mt,{sx:{width:16,height:16,opacity:1}})}),l.jsx(it,{size:"small",disabled:i>=M,onClick:()=>typeof d=="function"?d(M):null,sx:z.iconButton,"aria-label":"Last page",children:l.jsx(hs,{sx:{width:16,height:16,opacity:1}})})]})]})]})})}const l5=({isOpen:e,onClose:t,onConfirm:n,catalogName:r})=>{const i=tt(),{universal:s}=i,a=i.productSettingModal;return l.jsx(Po,{open:e,onClose:t,"aria-labelledby":"delete-catalog-modal",sx:{...a.modal,p:{xs:2,sm:0}},children:l.jsxs(P,{sx:{...a.container,width:"100%",maxWidth:{xs:"min(360px, 100%)",sm:360},boxSizing:"border-box"},children:[l.jsx(P,{sx:a.header,children:l.jsxs(W,{sx:{...a.headerTitle,fontSize:{xs:18,sm:22},overflowWrap:"anywhere",width:"100%"},children:["Are you sure you want to delete this catalog",r?` "${r}"`:"","?"]})}),l.jsxs(P,{sx:{...a.footer,display:"flex",flexDirection:{xs:"column",sm:"row"},alignItems:"stretch",gap:2,justifyContent:"center",pt:{xs:1,sm:0}},children:[l.jsx(Ze,{variant:"contained",color:"primary",onClick:n,sx:{...s.getUniversalBlueButtonSx(),minWidth:{xs:0,sm:100},width:{xs:"100%",sm:"auto"}},children:"Yes"}),l.jsx(Ze,{variant:"outlined",color:"primary",onClick:t,sx:{minWidth:{xs:0,sm:100},width:{xs:"100%",sm:"auto"}},children:"No"})]})]})})};function c5(e){if(!e)return"";const t=new Date(e),n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];return`${t.getDate()} ${n[t.getMonth()]} ${t.getFullYear()}`}function d5(e){if(!e)return null;const t=e.slug,n=typeof t=="string"&&t.startsWith("/")?t:`/${t||""}`;return{...e,slug:n,slugRaw:typeof t=="string"?t.replace(/^\//,""):t||"",productsCount:e.productCount??e.productsCount??0,createdBy:e.createdByName??e.createdBy??"",date:c5(e.createdAt??e.date),createdAt:e.createdAt??e.date,status:e.status===!0?"Active":e.status===!1?"Inactive":e.status||"Active"}}function u5(e){const t=Lt(),n=fn(),{sharedCatalogues:r=[],sharedCataloguesTotal:i=0,sharedCataloguesLoading:s=!1,sharedCataloguesError:a=null}=Ye(U=>U.productSettings??{}),{updateCatalogLoading:c=!1,updateCatalogError:d=null}=Ye(U=>U.dashboard??{}),[p,u]=N.useState(0),[h,m]=N.useState(10),[y,g]=N.useState({}),[f,b]=N.useState(!1),[x,E]=N.useState(null),[w,S]=N.useState(!1),[T,v]=N.useState("");N.useEffect(()=>{n(hn({page:p+1,limit:h}))},[n,p,h]),N.useEffect(()=>()=>n({type:"dashboard/clearUpdateCatalogError"}),[n]);const k=N.useMemo(()=>Array.isArray(r)?r.map(d5).filter(Boolean):[],[r]),M=i,B=U=>u(U),z=U=>{const D=Number(U.target.value);m(D),u(0)},$=U=>y[U.id]??U.status,C=N.useCallback(()=>t(-1),[t]),{setSettingTopbarProps:I}=$o()||{};N.useEffect(()=>{if(I)return I({onBack:C}),()=>I({})},[I,C]);const _=async U=>{const{id:D,name:O,slug:L,status:H}=U;await n(fi({id:D,name:O,slug:L,status:H})).unwrap(),n(hn({page:p+1,limit:h}))},F=async(U,D)=>{const O=U.slugRaw??(typeof U.slug=="string"?U.slug.replace(/^\//,""):"")??"";g(L=>({...L,[U.id]:D?"Active":"Inactive"}));try{await n(fi({id:U.id,name:U.name??"",slug:O,status:D})).unwrap(),n(hn({page:p+1,limit:h}))}catch{g(L=>({...L,[U.id]:U.status}))}},j=U=>{E(U),b(!0)},V=()=>{b(!1),E(null)},R=async()=>{if(!x?.id){V();return}try{await n(na(x.id)).unwrap(),v("Catalog delete Successfully"),S(!0),V(),n(hn({page:p+1,limit:h}))}catch{v("Failed to delete catalog"),S(!0)}};return s&&k.length===0?l.jsx(P,{sx:{minHeight:"100vh",bgcolor:Ct},children:l.jsx(Ut,{maxWidth:"md",sx:{boxSizing:"border-box"},children:l.jsx(P,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"60vh"},children:l.jsx(Vr,{})})})}):a&&k.length===0?l.jsx(P,{sx:{minHeight:"100vh",bgcolor:Ct},children:l.jsx(Ut,{maxWidth:"md",sx:{boxSizing:"border-box"},children:l.jsx(P,{sx:{textAlign:"center",py:4},children:l.jsx(W,{color:"error",children:a})})})}):l.jsxs(l.Fragment,{children:[l.jsx(a5,{catalogs:k,totalCount:M,page:p,rowsPerPage:h,statusById:y,getStatus:$,onBack:C,onPageChange:B,onRowsPerPageChange:z,onStatusChange:F,onSave:_,onDelete:j,updateCatalogError:d,updateCatalogLoading:c,...e}),l.jsx(l5,{isOpen:f,onClose:V,onConfirm:R,catalogName:x?.name}),l.jsx(Do,{open:w,autoHideDuration:4e3,onClose:()=>S(!1),message:T,anchorOrigin:{vertical:"top",horizontal:"center"}})]})}const kl=yt(l.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline"),p5=yt([l.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),l.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function hu(e){return l.jsx(p5,{...e})}function f5({styles:e={},selectedProducts:t=[],data:n,onSelectProduct:r,categoryName:i,showLimitedColumns:s=!1,pagination:a=null,totalProductsCountForHeader:c=0,onPageChange:d,onLimitChange:p}){const{universal:u}=tt(),h=u.globalTableScaffoldStyles,m=e?.categoryTableAllStore??{},y=e?.categoryTableSingleStore??{},g=e?.categoryTableShared??{},f=e?.categoryTablePagination??u.globalPaginationStyles??{},b=_t("(max-width:900px)"),x=_t("(max-width:400px)"),E=_t("(max-width:550px)"),w=_t("(max-width:770px)"),S=_t("(max-width:650px)"),T=_t("(max-width:500px)"),v=_t("(max-width:400px)"),k=!s,M=k&&w,B=y.metricColumnExtraML??{xs:1,sm:1.5,md:2},z=y.priceColumnExtraML??{xs:1.25,sm:1.5,md:2},$="16px",C="10px",I=$,_="16px",F=ee=>t.some(K=>K.id===ee.id),j=Number(c>0?c:a?.totalCount??n?.length??0),V=t.length,R=j>0&&V===j,U=V>0,D=n.some(F),O=U&&!R&&D,L=()=>{R||O?t.forEach(ee=>r(ee,i)):n.forEach(ee=>{F(ee)||r(ee,i)})},H=l.jsx("span",{style:g.checkboxCheckedIconSpan,children:l.jsx(dn,{sx:g.checkboxTickIconHeaderSx})}),Y=l.jsx("span",{style:g.checkboxCheckedIconSpan,children:l.jsx("span",{style:g.checkboxCheckedIconInner})}),[X,te]=N.useState(null),[ce,de]=N.useState([]),ae=(ee,K)=>{te(ee.currentTarget),de(K)},J=()=>{te(null),de([])},oe=!!X,G=k?y.outerCard:m.outerCard,pe=k?"6px":"4px";return l.jsx(Ut,{maxWidth:!1,sx:h.container,children:l.jsxs(Ki,{sx:{...h.card,...e.ProductTable,...G,display:"flex",flexDirection:"column",boxShadow:"none",borderRadius:0,bgcolor:"transparent",overflow:"visible",width:"100%",maxWidth:"100%",marginLeft:0,marginRight:0},children:[l.jsx(P,{sx:{...m.categoryNameBox,display:"flex",alignItems:"center",mb:pe,boxSizing:"border-box",overflow:"hidden"},children:l.jsx(W,{sx:{...m.categoryNameText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i})}),!(k&&!x)&&l.jsxs(P,{sx:{...h.headerBox,display:"flex",flexWrap:x&&k?"wrap":"nowrap",alignItems:"center",width:"100%",minWidth:0,...k?y.tableHeader:m.tableHeader,boxSizing:"border-box",gap:x?"8px":k&&b?"12px":"16px"},children:[s?l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:{display:"flex",alignItems:"center",flexShrink:0},children:l.jsx(Nt,{checked:R,indeterminate:O,onChange:L,size:"small",sx:g.checkboxHeaderSx,icon:l.jsx("span",{style:g.checkboxIconSpanHeader}),checkedIcon:H,indeterminateIcon:Y})}),l.jsx(P,{sx:{display:"flex",alignItems:"center",minWidth:0,flex:"1 1 0"},children:l.jsx(W,{component:"span",sx:m.headerProduct,children:"Product"})})]}):l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:x?"8px":b?"12px":"16px",flex:"1 1 0",minWidth:0,...k&&!x&&{maxWidth:"40%"}},children:[l.jsx(Nt,{checked:R,indeterminate:O,onChange:L,size:"small",sx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #D0D5DD",bgcolor:Ue},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:Ue,color:"#1976d2",border:"0.5px solid #1976d2"},"&.MuiCheckbox-indeterminate .MuiSvgIcon-root":{bgcolor:Ue,color:"#1976d2",border:"0.5px solid #1976d2"}},icon:l.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #D0D5DD",background:Ue}}),checkedIcon:H,indeterminateIcon:Y}),l.jsx(W,{component:"span",sx:{...y.headerLabel,...y.headerProduct},children:"Product"})]}),!x&&(k?l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:{...y.headerStatus,display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0,flex:"0 1 auto"},children:l.jsx(W,{component:"span",sx:{...y.headerLabel},children:"Status"})}),l.jsx(P,{sx:{...y.headerPrice,display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0,flex:"0 1 auto",ml:z},children:l.jsx(W,{component:"span",sx:{...y.headerLabel},children:"Price"})}),l.jsx(P,{sx:{...y.headerStock,display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0,flex:"0 1 auto",ml:B},children:l.jsx(W,{component:"span",sx:{...y.headerLabel},children:"Stock"})}),l.jsxs(P,{sx:{display:"flex",alignItems:"center",minWidth:0,flex:"0 1 auto",ml:B,...y.headerOffer},children:[l.jsx(W,{component:"span",sx:{...y.headerLabel},children:"Offer"}),l.jsx(Tl,{sx:{...m.arrowDown,fontSize:12,marginTop:"8px",marginLeft:"auto"}})]})]}):l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexShrink:0,mr:6},children:l.jsx(W,{component:"span",sx:m.headerStatusText,children:"Status"})}),!E&&l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexShrink:0,mr:2},children:l.jsx(W,{component:"span",sx:m.headerOsaText,children:"Stock / OSA"})}),l.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexShrink:0,mr:0},children:l.jsx(Tl,{sx:{fontSize:12,height:12,color:"#808080",marginLeft:"8px",marginTop:"8px"}})})]})]}))]}),(function(){const ee=k&&!x,K=n.map((q,he)=>{let ue=[];q.offers&&Array.isArray(q.offers)?ue=q.offers:q.offer&&typeof q.offer=="string"&&q.offer.includes(`
|
|
1581
|
+
`)?ue=q.offer.split(`
|
|
1582
|
+
`):q.offer&&Array.isArray(q.offer)?ue=q.offer:q.offer&&(ue=[q.offer]);const Ee=ue[0]||"",ke=ue.length>1?ue.slice(1):[];return l.jsxs(P,{sx:{...k&&!x?{gridColumn:"1 / -1",display:"grid",gridTemplateColumns:"subgrid",alignItems:"flex-start",boxSizing:"border-box",mt:0,mb:0,width:"100%",maxWidth:"100%",minWidth:0,...y.rowCard,columnGap:$,...w&&{height:"auto",minHeight:152}}:{display:"flex",flexDirection:x&&k?"column":"row",alignItems:"flex-start",flexWrap:x&&k?"nowrap":"wrap",...k?y.rowCard:m.rowCard,...M&&{height:"auto",minHeight:152},gap:x?"8px":"16px",boxSizing:"border-box",mt:he===0?.5:0,mb:.5,width:"100%",maxWidth:"100%",minWidth:0}},children:[!(k&&v)&&l.jsx(P,{sx:{display:"flex",alignItems:"flex-start",width:16,minHeight:20,flexShrink:0},children:l.jsx(Nt,{checked:F(q),onChange:()=>r(q,i),size:"small",sx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #454545",bgcolor:Ue},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:Ue,color:"#2563EB",border:"0.5px solid #2563EB"}},icon:l.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #454545",background:Ue}}),checkedIcon:l.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #2563EB",background:Ue,position:"relative"},children:l.jsx(dn,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:10,height:10,color:"#2563EB"}})})})}),l.jsx(P,{sx:{display:"flex",flexDirection:k&&w?"column":"row",alignItems:k&&w?"flex-start":k?"center":"flex-start",height:k&&!M&&!w?56:void 0,minHeight:56,gap:"16px",minWidth:0,flex:x?"0 0 auto":"1 1 0",width:x||k&&w?"100%":void 0,overflow:M||w?"visible":"hidden",...k?y.productBlock:m.productBlock,...k&&{width:void 0,maxWidth:"100%",flex:x?"0 0 auto":"1 1 0"},...(M||k&&w)&&{height:"auto"},...!k&&!x&&{height:void 0},...!k&&x&&{height:76,minHeight:76,maxHeight:76,overflow:"hidden"},...k&&!x&&{ml:C}},children:k&&w?l.jsxs(l.Fragment,{children:[l.jsxs(P,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",gap:x?"8px":$,minWidth:0,width:"100%",flex:"0 0 auto"},children:[v&&l.jsx(P,{sx:{display:"flex",alignItems:"flex-start",width:16,minHeight:20,flexShrink:0},children:l.jsx(Nt,{checked:F(q),onChange:()=>r(q,i),size:"small",sx:g.checkboxRowSx,icon:l.jsx("span",{style:g.checkboxIconSpanRow}),checkedIcon:l.jsx("span",{style:g.checkboxRowCheckedIconSpan,children:l.jsx(dn,{sx:g.checkboxTickIconRowSx})})})}),l.jsx(P,{sx:{...m.imageBox,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0},children:q.productImage?l.jsx(cr,{src:q.productImage,alt:q.productName,sx:{width:56,height:56,borderRadius:"8px"}}):l.jsx(cr,{sx:{width:56,height:56,borderRadius:"8px",bgcolor:"#e0e0e0",color:"#888",fontWeight:700,fontSize:20},children:q.productName&&q.productName[0]})}),l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0,maxWidth:"100%",overflow:"hidden"},children:[l.jsx(W,{sx:{...m.productName,wordBreak:"break-word",overflowWrap:"break-word",whiteSpace:"normal",overflow:"hidden",fontSize:"12px",lineHeight:"16px"},children:q.productName}),l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px",flexWrap:"wrap",minWidth:0,overflow:"hidden"},children:[l.jsx(W,{sx:{...m.productMeta,fontSize:"10px",lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis"},children:q.productWeight}),q.categoryName&&l.jsxs(l.Fragment,{children:[l.jsx(W,{component:"span",sx:{...m.productMeta,fontSize:"10px",lineHeight:"12px"},children:"•"}),l.jsx(W,{component:"span",sx:{...m.productMeta,fontSize:"10px",lineHeight:"12px"},children:q.categoryName})]})]}),l.jsxs(W,{sx:{...m.productSku,fontSize:"10px",lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis"},children:["SKU: ",q.sku]})]})]}),S?l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"24px",width:"100%",ml:v?"32px":0},children:[v&&l.jsxs(P,{sx:{display:"flex",flexDirection:"row",gap:"50px",alignItems:"center",flexWrap:"wrap",width:"100%"},children:[l.jsx(P,{component:"span",sx:q.status===!0?m.statusActiveBox:m.statusNoStockBox,children:q.status===!0?"Active":"No Stock"}),l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",...y.priceBlock},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:[l.jsxs(W,{sx:y.priceText,children:["₹",q.price]}),l.jsx(P,{sx:{...y.clockIcon,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:l.jsx(hu,{sx:{fontSize:14,color:"#808080"}})})]}),q.mrp&&l.jsxs(W,{sx:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#808080",textDecoration:"line-through"},children:["₹",q.mrp]}),q.discount&&l.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#22c55e",fontWeight:500},children:q.discount})]})]}),T&&!v&&l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",...y.priceBlock},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:[l.jsxs(W,{sx:y.priceText,children:["₹",q.price]}),l.jsx(P,{sx:{...y.clockIcon,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:l.jsx(hu,{sx:{fontSize:14,color:"#808080"}})})]}),q.mrp&&l.jsxs(W,{sx:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#808080",textDecoration:"line-through"},children:["₹",q.mrp]}),q.discount&&l.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#22c55e",fontWeight:500},children:q.discount})]}),l.jsxs(P,{sx:{display:"flex",flexDirection:"row",gap:"50px",alignItems:"center",flexWrap:"wrap",width:"100%"},children:[l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"2px",flexShrink:0},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:0},children:[q.stock===0&&l.jsx(Bo,{title:"No stock",children:l.jsx(kl,{sx:{color:"#d32f2f",fontSize:16,mr:.5}})}),l.jsx(W,{component:"span",sx:m.stockValue,children:q.stock}),l.jsx(W,{component:"span",sx:m.osaValue,children:q.quantity!==null&&q.quantity!==void 0?`/${q.quantity}`:""})]}),(()=>{const ve=typeof q.osa=="number"?q.osa:q.osa??0,le=Number(ve),qe=le<=50;return l.jsxs(W,{sx:{...m.onShelfText,fontSize:"10px",color:y.onShelfPercentNormal?.color||"#454545"},children:[l.jsxs(P,{component:"span",sx:qe?{color:y.onShelfPercentRed?.color||"#d32f2f"}:{},children:[Math.round(le),"%"]}),l.jsx(P,{component:"span",sx:{color:y.onShelfSpan?.color||"#808080"},children:" on shelf"})]})})()]}),l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:0,flex:1,minWidth:0},children:[l.jsx(W,{sx:{...y.offerText,whiteSpace:"pre-line",fontSize:"12px",lineHeight:"16px"},children:Ee}),ke.length>0&&l.jsxs(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545",cursor:"pointer",textDecoration:"underline"},onClick:ve=>ae(ve,ue),children:["+",ke.length," more"]})]})]})]}):l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:0,width:"100%"},children:[l.jsx(W,{sx:{...y.offerText,whiteSpace:"pre-line",fontSize:"12px",lineHeight:"16px"},children:Ee}),ke.length>0&&l.jsxs(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545",cursor:"pointer",textDecoration:"underline"},onClick:ve=>ae(ve,ue),children:["+",ke.length," more"]})]})]}):l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:{...m.imageBox,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0,mb:0},children:q.productImage?l.jsx(cr,{src:q.productImage,alt:q.productName,sx:{width:56,height:56,borderRadius:"8px"}}):l.jsx(cr,{sx:{width:56,height:56,borderRadius:"8px",bgcolor:"#e0e0e0",color:"#888",fontWeight:700,fontSize:20},children:q.productName&&q.productName[0]})}),l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0,maxWidth:"100%",overflow:"hidden",...!k&&x&&{height:76,minHeight:76,maxHeight:76}},children:[l.jsx(W,{sx:{...m.productName,wordBreak:"break-word",overflowWrap:"break-word",whiteSpace:"normal",overflow:"hidden",fontSize:"12px",lineHeight:"16px",...!k&&x&&{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"}},children:q.productName}),l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px",minWidth:0,overflow:"hidden",flexWrap:!k&&x?"nowrap":"wrap"},children:[l.jsx(W,{sx:{...m.productMeta,fontSize:"10px",lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",flexShrink:!k&&x?0:void 0},children:q.productWeight}),q.categoryName&&l.jsxs(l.Fragment,{children:[l.jsx(W,{component:"span",sx:{...m.productMeta,fontSize:"10px",lineHeight:"12px",flexShrink:0},children:"•"}),l.jsx(W,{component:"span",sx:{...m.productMeta,fontSize:"10px",lineHeight:"12px",...!k&&x&&{minWidth:0,overflow:"hidden",textOverflow:"ellipsis",flex:"1 1 0"}},children:q.categoryName})]})]}),l.jsxs(W,{sx:{...m.productSku,fontSize:"10px",lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",...!k&&x&&{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"}},children:["SKU: ",q.sku]})]})]})}),(k&&!x||!k&&!x)&&l.jsx(P,{sx:{display:"flex",alignItems:"flex-start",justifyContent:k&&!x?"flex-start":void 0,textAlign:k&&!x?"left":void 0,...k?y.statusBlock:{},flexShrink:0,minWidth:0,width:x?"100%":void 0,mt:x?1:0,mr:!k&&!x?4:0,...k&&!x&&{alignSelf:"flex-start",marginTop:0}},children:l.jsx(P,{component:"span",sx:q.status===!0?m.statusActiveBox:m.statusNoStockBox,children:q.status===!0?"Active":"No Stock"})}),!k&&!E&&l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",alignItems:"flex-start",flexShrink:0,minWidth:0,width:x?"100%":void 0,mt:x?1:0,ml:x?0:.5,textAlign:"left",marginRight:"56px"},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"flex-start",gap:0},children:[q.stock===0&&l.jsx(Bo,{title:"No stock",children:l.jsx(kl,{sx:{color:"#d32f2f",fontSize:16,mr:.5}})}),l.jsx(W,{component:"span",sx:m.stockValue,children:q.stock}),l.jsx(W,{component:"span",sx:m.osaValue,children:q.quantity!==null&&q.quantity!==void 0?`/${q.quantity}`:""})]}),(()=>{const ve=Number(typeof q.osa=="number"?q.osa:q.osa??0),le=ve<=50;return l.jsxs(W,{sx:{...m.onShelfText,color:"#808080",textAlign:"left"},children:[l.jsxs(P,{component:"span",sx:le?{color:"#d32f2f"}:{},children:[Math.round(ve),"%"]})," on shelf"]})})()]}),!k&&E&&l.jsx(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",alignItems:"flex-start",width:"100%",mt:1,ml:"32px",...x&&{minHeight:48}},children:l.jsxs(P,{sx:{display:"flex",alignItems:"flex-start",gap:12,flexWrap:x?"nowrap":"wrap"},children:[x&&l.jsx(P,{component:"span",sx:q.status===!0?m.statusActiveBox:m.statusNoStockBox,children:q.status===!0?"Active":"No Stock"}),l.jsxs(P,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:0},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"flex-start",gap:0},children:[q.stock===0&&l.jsx(Bo,{title:"No stock",children:l.jsx(kl,{sx:{color:"#d32f2f",fontSize:16,mr:.5}})}),l.jsx(W,{component:"span",sx:m.stockValue,children:q.stock}),l.jsx(W,{component:"span",sx:m.osaValue,children:q.quantity!==null&&q.quantity!==void 0?`/${q.quantity}`:""})]}),(()=>{const ve=Number(typeof q.osa=="number"?q.osa:q.osa??0),le=ve<=50;return l.jsxs(W,{sx:{...m.onShelfText,color:"#808080",textAlign:"left"},children:[l.jsxs(P,{component:"span",sx:le?{color:"#d32f2f"}:{},children:[Math.round(ve),"%"]})," on shelf"]})})()]})]})}),k&&!T&&l.jsxs(P,{sx:{display:"flex",flexDirection:"column",...y.priceBlock,flexShrink:0,minWidth:0,flex:"0 1 auto",width:x?"100%":void 0,mt:x?1:0,...!x&&{ml:z}},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:[l.jsxs(W,{sx:y.priceText,children:["₹",q.price]}),l.jsx(P,{sx:{...y.clockIcon,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:l.jsx(hu,{sx:{fontSize:14,color:"#808080"}})})]}),q.mrp&&l.jsxs(W,{sx:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#808080",textDecoration:"line-through"},children:["₹",q.mrp]}),q.discount&&l.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#22c55e",fontWeight:500},children:q.discount})]}),k&&!S&&l.jsxs(P,{sx:{display:"flex",flexDirection:"column",...y.stockBlock,flexShrink:0,minWidth:0,width:x?"100%":void 0,mt:x?1:0,...!x&&{ml:B}},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:0},children:[q.stock===0&&l.jsx(Bo,{title:"No stock",children:l.jsx(kl,{sx:{color:"#d32f2f",fontSize:16,mr:.5}})}),l.jsx(W,{component:"span",sx:m.stockValue,children:q.stock}),l.jsx(W,{component:"span",sx:m.osaValue,children:q.quantity!==null&&q.quantity!==void 0?`/${q.quantity}`:""})]}),(()=>{const ve=typeof q.osa=="number"?q.osa:q.osa??0,le=Number(ve),qe=le<=50;return l.jsxs(W,{sx:{...m.onShelfText,fontSize:"10px",color:y.onShelfPercentNormal.color},children:[l.jsxs(P,{component:"span",sx:qe?{color:y.onShelfPercentRed.color}:{},children:[Math.round(le),"%"]})," ",l.jsx(P,{component:"span",sx:{color:y.onShelfSpan.color},children:"on shelf"})]})})()]}),k&&!w&&l.jsxs(P,{sx:{display:"flex",flexDirection:"column",...y.offerBlock,minWidth:0,flex:"0 1 auto",width:x?"100%":void 0,mt:x?1:0,...!x&&{ml:B}},children:[l.jsx(W,{sx:{...y.offerText,whiteSpace:"pre-line"},children:Ee}),ke.length>0&&l.jsxs(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545",cursor:"pointer",textDecoration:"underline"},onClick:ve=>ae(ve,ue),children:["+",ke.length," more"]})]})]},q.id||he)});return ee?l.jsxs(P,{sx:{display:"grid",gridTemplateColumns:v?"minmax(0, 1fr)":T?`${_} minmax(140px, min(360px, 100%)) auto`:S?`${_} minmax(160px, min(440px, 100%)) auto auto`:w?`${_} minmax(180px, min(480px, 100%)) auto auto auto`:`${_} minmax(180px, min(440px, 100%)) auto auto auto auto`,columnGap:I,rowGap:"4px",alignItems:"start",width:"100%",minWidth:0,boxSizing:"border-box"},children:[l.jsx(P,{sx:{gridColumn:"1 / -1",display:"grid",gridTemplateColumns:"subgrid",alignItems:"center",...y.tableHeader,columnGap:$,boxSizing:"border-box"},children:v?l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:$,minWidth:0},children:[l.jsx(Nt,{checked:R,indeterminate:O,onChange:L,size:"small",sx:g.checkboxHeaderSx,icon:l.jsx("span",{style:g.checkboxIconSpanHeader}),checkedIcon:H,indeterminateIcon:Y}),l.jsx(W,{component:"span",sx:{...y.headerLabel,...y.headerProduct},children:"Product"})]}):l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:{display:"flex",alignItems:"center",flexShrink:0},children:l.jsx(Nt,{checked:R,indeterminate:O,onChange:L,size:"small",sx:g.checkboxHeaderSx,icon:l.jsx("span",{style:g.checkboxIconSpanHeader}),checkedIcon:H,indeterminateIcon:Y})}),l.jsx(P,{sx:{display:"flex",alignItems:"center",minWidth:0,ml:C},children:l.jsx(W,{component:"span",sx:{...y.headerLabel,...y.headerProduct},children:"Product"})}),!v&&l.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0},children:l.jsx(W,{component:"span",sx:{...y.headerLabel},children:"Status"})}),!T&&l.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0,ml:z},children:l.jsx(W,{component:"span",sx:{...y.headerLabel},children:"Price"})}),!S&&l.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0,ml:B},children:l.jsx(W,{component:"span",sx:{...y.headerLabel},children:"Stock"})}),!w&&l.jsxs(P,{sx:{display:"flex",alignItems:"center",minWidth:0,ml:B,...y.headerOffer},children:[l.jsx(W,{component:"span",sx:{...y.headerLabel},children:"Offer"}),l.jsx(Tl,{sx:{...m.arrowDown,fontSize:12,marginTop:"8px",marginLeft:"auto"}})]})]})}),K]}):K})(),l.jsxs(Gd,{open:oe,anchorEl:X,onClose:J,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{sx:{p:2,minWidth:220}},children:[l.jsx(W,{sx:{fontWeight:700,mb:1},children:"Offers"}),ce.map((ee,K)=>l.jsxs(W,{sx:{fontSize:14,color:"#222",mb:.5},children:[K+1,". ",ee]},K))]}),a&&typeof d=="function"&&typeof p=="function"&&l.jsxs(P,{sx:{...f.wrapper},children:[l.jsxs(P,{sx:f.resultsPerPageBox,children:[l.jsx(W,{component:"span",sx:f.resultsPerPageText,children:"Results per page:"}),l.jsx(cn,{value:a.limit??10,onChange:ee=>p(Number(ee.target.value)),IconComponent:dr,variant:"standard",disableUnderline:!0,sx:f.select,children:[5,10,20,50].map(ee=>l.jsx(et,{value:ee,children:ee},ee))})]}),l.jsxs(P,{sx:f.navBox,children:[l.jsx(it,{size:"small",disabled:(a.currentPage??1)<=1,onClick:()=>d(1),sx:f.iconButton,title:"First page",children:l.jsx(fs,{sx:f.paginationIcon})}),l.jsx(it,{size:"small",disabled:(a.currentPage??1)<=1,onClick:()=>d((a.currentPage??1)-1),sx:f.iconButton,title:"Previous page",children:l.jsx(Kr,{sx:f.paginationIcon})}),l.jsx(W,{component:"span",sx:f.pageText,children:(a.totalCount??0)===0?"0 - 0 of 0":`${((a.currentPage??1)-1)*(a.limit??10)+1} - ${Math.min((a.currentPage??1)*(a.limit??10),a.totalCount??0)} of ${a.totalCount??0}`}),l.jsx(it,{size:"small",disabled:!(a.hasNextPage??!1)||(a.currentPage??1)>=(a.totalPages??1),onClick:()=>d((a.currentPage??1)+1),sx:f.iconButton,title:"Next page",children:l.jsx(Mt,{sx:f.paginationIcon})}),l.jsx(it,{size:"small",disabled:!(a.hasNextPage??!1)||(a.currentPage??1)>=(a.totalPages??1),onClick:()=>d(a.totalPages??1),sx:f.iconButton,title:"Last page",children:l.jsx(hs,{sx:f.paginationIcon})})]})]})]})})}const h5={category:"all",status:"all",search:"",store:[]},g5=()=>{const e=fn(),t=Lt(),n=zt(),[r]=Yb(),i=r.get("categoryName"),s=tt(),a=s.productDetail,[c,d]=N.useState(()=>({...h5,...n.state?.filters||{}})),p=N.useMemo(()=>JSON.stringify(Array.isArray(c.store)?[...c.store].map(String).sort():[]),[c.store]),u=(Array.isArray(n.state?.selectedProducts)?n.state.selectedProducts:[]).reduce((Pe,Ve)=>{const Xe=(Ve.categoryName||Ve.category||i||"").toString().trim();if(!Xe)return Pe;const Ft=Pe[Xe]||[];return Ft.some(Et=>Et.id===Ve.id)?Pe[Xe]=Ft:Pe[Xe]=[...Ft,Ve],Pe},{}),[h,m]=N.useState(u),[y,g]=N.useState(!1),[f,b]=N.useState([]),[x,E]=N.useState(!1),[w,S]=N.useState(!1),{integrationData:T,companyId:v,loading:k,productsLoading:M}=Ye(be=>be.dashboard),B=N.useRef(!1),z=N.useRef(!1),[$,C]=N.useState(!1);N.useEffect(()=>{!v&&!B.current&&!k&&(B.current=!0,e(ui()))},[e,v,k]),N.useEffect(()=>{C(!1)},[i]);const I=N.useMemo(()=>T&&typeof T=="object"&&Object.keys(T).length>0?{matched:!0,error:"",apiResponse:T,loading:!1}:{matched:!1,error:"No active integration found",apiResponse:null,loading:!1},[T]),_=Ye(be=>be.dashboard),{products:F=[],stores:j=[],pagination:V={},categoryList:R=[]}=_||{},{currentPage:U=1,limit:D=10,totalCount:O=0,totalPages:L=1,hasNextPage:H=!1}=V,Y=Ye(be=>{const Pe=be.dashboard?.stores;return!Array.isArray(Pe)||Pe.length===0?"":Pe.map(Ve=>`${Ve.id??""}:${Ve.storeCode??""}`).join("|")}),{sharedCatalogues:X=[],sharedCataloguesTotal:te=0,lastStableActiveCatalogsCount:ce=null}=Ye(be=>be.productSettings??{}),de=N.useMemo(()=>Array.isArray(X)?X.filter(be=>be.status===!0).length:0,[X]),J=te>0&&X.length>=te?de:ce??de,oe=N.useMemo(()=>{if(!i||!Array.isArray(F))return[];const be=i.trim().toLowerCase();return F.filter(Pe=>{const Ve=(Pe.categoryName||Pe.category||"").toString().trim().toLowerCase();return Ve&&Ve===be}).map(Pe=>({...Pe,catalogProductId:Pe.productId||Pe.id,id:Pe.id||Pe.sku||Pe.productName}))},[F,i]),G=oe.length>0,pe=Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories:[],ee=i?i.toString().trim().toLowerCase():"",K=pe.find(be=>{const Pe=(be?.categoryName??be?.name??"").toString().trim();return Pe&&ee&&Pe.toLowerCase()===ee}),q=Number(K?.productCount??K?.productsCount??K?.products)||0,he=Array.isArray(R)?R.find(be=>{const Pe=(be?.categoryName??be?.name??"").toString().trim().toLowerCase();return Pe&&ee&&Pe===ee}):null,ue=Number(he?.productCount??he?.productsCount??he?.products)||0,Ee=q>0?q:ue,ke=c?.status&&c.status!=="all"||c?.stock&&c.stock!=="all"||Array.isArray(c?.store)&&c.store.length>0&&!c.store.includes("all")||c?.search!=null&&String(c.search).trim()!==""||typeof c?.minPrice=="number"&&Number.isFinite(c.minPrice)||typeof c?.maxPrice=="number"&&Number.isFinite(c.maxPrice),ve=i&&Number.isFinite(Ee)&&Ee>0&&O>Ee,le=ve?Ee:O,He=ve?Math.max(1,Math.ceil(le/((D??10)||10))):L,fe=ve?(U??1)<He:H,re=N.useMemo(()=>{if(!oe||oe.length===0)return;const be=oe.map(Pe=>Number(Pe.price??Pe.sellingPrice??Pe.mrp)).filter(Pe=>Number.isFinite(Pe)&&Pe>=0);if(be.length!==0)return{min:Math.min(...be),max:Math.max(...be)}},[oe]),xe=N.useRef(!1);N.useEffect(()=>{v&&(Array.isArray(R)&&R.length>0||e(Mn({page:1,limit:10})))},[e,v,R]),N.useEffect(()=>{if(!v||!i||xe.current||!Array.isArray(R)||R.length===0)return;R.some(Pe=>{const Ve=(Pe?.categoryName??Pe?.name??"").toString().trim().toLowerCase();return Ve&&Ve===ee})||(xe.current=!0,e(Mn({page:1,limit:5e3})))},[e,v,i,R,ee]);const Se=Array.isArray(F)&&F.length>0,we=Array.isArray(c.store)?c.store:[],me=!(we.length===1&&we[0]!=="all"),Re=be=>{be.preventDefault(),t("/settings",{state:{tenantIntegrationData:I.apiResponse}})},ze=N.useMemo(()=>j.length>0?j:[{id:"all",name:"All Stores",storeCode:"all"}],[j]),nt=N.useCallback(be=>{d(be)},[d]),kt=N.useCallback(()=>{const Pe=c?.sortBy==="productName"&&c?.sortOrder==="asc"?"desc":"asc";nt({...c,sortBy:"productName",sortOrder:Pe})},[c,nt]),Ce=c?.sortBy==="productName"&&c?.sortOrder==="asc"?180:0,Be=N.useCallback((be={})=>{const Pe=Array.isArray(c.store)?c.store:[],Ve={page:U,limit:D,...be};if(i&&i.trim()&&(Ve.categoryName=i.trim()),Pe.length>0&&!Pe.includes("all")){const Xe=Pe.map(Ft=>j.find(Tr=>Tr.id===Ft)?.storeCode).filter(Boolean);Xe.length>0&&(Ve.storeCode=Xe.join(","))}return(c.status==="active"||c.status==="inactive")&&(Ve.status=c.status==="active"),(c.stock==="inStock"||c.stock==="outOfStock")&&(Ve.inStock=c.stock==="inStock"),typeof c.minPrice=="number"&&Number.isFinite(c.minPrice)&&(Ve.minPrice=c.minPrice),typeof c.maxPrice=="number"&&Number.isFinite(c.maxPrice)&&(Ve.maxPrice=c.maxPrice),c.search!=null&&String(c.search).trim()!==""&&(Ve.search=String(c.search).trim()),c.sortBy&&(c.sortOrder==="asc"||c.sortOrder==="desc")&&(Ve.sortBy=c.sortBy,Ve.sortOrder=c.sortOrder==="asc"?"ASC":"DESC"),Ve},[i,U,D,p,c.status,c.stock,c.minPrice,c.maxPrice,c.search,c.sortBy,c.sortOrder,Y]),se=be=>{e(Mr(Be({page:be})))},Te=be=>{e(Mr(Be({page:1,limit:be})))},Me=N.useCallback((be,Pe={})=>{const Ve=Array.isArray(c.store)?c.store:[],Xe={page:1,limit:5e3,...Pe};if(be&&String(be).trim()!==""&&(Xe.categoryName=String(be).trim()),Ve.length>0&&!Ve.includes("all")){const Ft=Ve.map(Et=>j.find(jo=>jo.id===Et)?.storeCode).filter(Boolean);Ft.length>0&&(Xe.storeCode=Ft.join(","))}return c.search!=null&&String(c.search).trim()!==""&&(Xe.search=String(c.search).trim()),Xe},[c.store,c.search,j]),Le=N.useCallback(async()=>{const Pe=(Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories:[]).map(mt=>(mt?.categoryName??mt?.name??"").toString().trim()).filter(Boolean),Ve=Array.isArray(h[i])?h[i]:[],Xe=[];for(const mt of Pe){if(mt===i){Ve.length>0&&Xe.push(Ve);continue}try{const Xn=Me(mt),Ar=await e(ea(Xn)).unwrap().catch(()=>({})),O5=Array.isArray(Ar?.data)?Ar.data:Array.isArray(Ar?.products)?Ar.products:Array.isArray(Ar)?Ar:[];Xe.push(O5)}catch{Xe.push([])}}Ve.length>0&&!Pe.includes(i)&&Xe.push(Ve);const Ft=new Set(Pe);Object.keys(h||{}).forEach(mt=>{if(mt===i||Ft.has(mt))return;const Xn=h[mt];Array.isArray(Xn)&&Xn.length>0&&Xe.push(Xn)});const Et=Xe.flat().filter(Boolean),Tr=new Set,jo=Et.map(mt=>({...mt,catalogProductId:mt?.productId??mt?.catalogProductId??mt?.id,id:mt?.id||mt?.sku||mt?.productName})).filter(mt=>{const Xn=(mt?.productId||mt?.id||mt?.sku||mt?.productName||"").toString();return!Xn||Tr.has(Xn)?!1:(Tr.add(Xn),!0)});b(jo),g(!0)},[e,i,n.state,h,Me]),_e=N.useRef(null),ut=N.useRef(null),st=N.useRef(null);N.useEffect(()=>{if(!v)return;const be=i?.trim()||"",Pe=st.current,Ve=!!be&&Pe!==be;Ve&&(e(If()),st.current=be);const Xe=Ve?1:U,Ft=Array.isArray(c.store)?c.store:[],Et={page:Xe,limit:D};if(i&&i.trim()&&(Et.categoryName=i.trim()),Ft.length>0&&!Ft.includes("all")){const jo=Ft.map(mt=>j.find(Ar=>Ar.id===mt)?.storeCode).filter(Boolean);jo.length>0&&(Et.storeCode=jo.join(","))}(c.status==="active"||c.status==="inactive")&&(Et.status=c.status==="active"),(c.stock==="inStock"||c.stock==="outOfStock")&&(Et.inStock=c.stock==="inStock"),typeof c.minPrice=="number"&&Number.isFinite(c.minPrice)&&(Et.minPrice=c.minPrice),typeof c.maxPrice=="number"&&Number.isFinite(c.maxPrice)&&(Et.maxPrice=c.maxPrice),c.search!=null&&String(c.search).trim()!==""&&(Et.search=String(c.search).trim()),c.sortBy&&(c.sortOrder==="asc"||c.sortOrder==="desc")&&(Et.sortBy=c.sortBy,Et.sortOrder=c.sortOrder==="asc"?"ASC":"DESC");const Tr=JSON.stringify(Et);_e.current!==Tr&&(_e.current=Tr,e(Mr(Et)))},[v,i,U,D,p,c.status,c.stock,c.minPrice,c.maxPrice,c.search,c.sortBy,c.sortOrder,e,Y]);const Rt=(be,Pe)=>{C(!0),m(Ve=>{const Xe=Ve[Pe]||[];let Ft;return Xe.some(Et=>Et.id===be.id)?Ft=Xe.filter(Et=>Et.id!==be.id):Ft=[...Xe,be],{...Ve,[Pe]:Ft}})};N.useEffect(()=>{if(z.current||!i||!Array.isArray(oe)||oe.length===0||!(Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories:[]).map(Xe=>Xe?.categoryName??Xe?.name??Xe).filter(Boolean).includes(i))return;if((h[i]||[]).length>0){z.current=!0;return}queueMicrotask(()=>{m(Xe=>({...Xe,[i]:oe}))}),z.current=!0},[i,oe,h,n.state?.selectedCategories]),N.useEffect(()=>{v&&(e(Qt(v)),e(pi()),i&&i.trim()&&e(Zs({categoryName:i.trim()})),e(hn({page:1})))},[e,v,i]),N.useEffect(()=>{if(!v||te<=0)return;(Array.isArray(X)?X.length:0)<te&&e(hn({page:1,limit:te}))},[v,te,X?.length,e]);const $t=Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories:[],Fe=h[i]||[],un=ke?le:Ee>0?Ee:le,Ay=G&&un>0&&Fe.length===un,Kn=i?i.toString().trim():"",Py=!!Kn&&$t.some(be=>(be?.categoryName??be?.name??"").toString().trim()===Kn),P5=Py&&!$&&Fe.length>0&&!Ay,Ol=new Map($t.map(be=>{const Pe=(be?.categoryName??be?.name??"").toString().trim();return Pe?[Pe,be]:null}).filter(Boolean));Kn&&(Ay||P5?Ol.has(Kn)||Ol.set(Kn,he||K||{categoryName:Kn}):Ol.delete(Kn));const ms=Array.from(Ol.values()),k5=Array.isArray(n.state?.pinnedCategoryNames)?n.state.pinnedCategoryNames.map(be=>String(be).trim()).filter(Boolean):$t.map(be=>(be?.categoryName??be?.name??"").toString().trim()).filter(Boolean),gu=new Set(k5);Kn&&Py&&(Fe.length===0?gu.delete(Kn):gu.add(Kn));const ky=Array.from(gu),{setTopbarProps:Il}=$o()||{};return N.useEffect(()=>{if(Il)return Il({filters:c,onFilterChange:nt,styles:a.topBar,stores:ze,tenantStatus:I,onSortToggle:kt,sortIconRotationDeg:Ce,hasProducts:Se,priceRange:re,showBackButton:!0,backTo:"/",backState:{selectedCategories:ms,selectedProducts:Object.values(h||{}).flat(),pinnedCategoryNames:ky}}),()=>Il({})},[Il,c,nt,kt,Ce,a.topBar,ze,I,Se,re,ms,ky,h]),l.jsx(l.Fragment,{children:l.jsxs(P,{sx:a.contentWrapper??{marginTop:0,position:"relative",zIndex:0},children:[k||!v?l.jsx(zo,{text:i?"Fetching Products":"Fetching",fullScreen:!1}):i?i&&M?l.jsx(zo,{text:"Fetching Products",fullScreen:!1}):G?l.jsxs(P,{sx:a.root,children:[l.jsxs(Ut,{ref:ut,maxWidth:"lg",sx:{width:"100%",px:{xs:1,sm:2,md:4},display:"flex",flexDirection:"column",alignItems:"stretch"},children:[l.jsx(my,{productState:_,categoryName:i,categoryProductCount:oe.length,activeCatalogsCount:J,onManageClick:()=>t("/catalogs/manage-shared"),matchHomePageLayout:!0,equalCardWidths:!0}),l.jsx(f5,{data:oe,styles:a,selectedProducts:h[i]||[],onSelectProduct:Rt,categoryName:i,showLimitedColumns:me,totalProductsCountForHeader:ke?0:Ee,pagination:{currentPage:U,limit:D,totalCount:le,totalPages:He,hasNextPage:fe},onPageChange:se,onLimitChange:Te})]}),l.jsx(by,{containerRef:ut,onPromoPrint:Le,onCreateCatalog:()=>E(!0),onOsaRequest:()=>S(!0),selectedProducts:Object.values(h||{}).flat(),selectedCategories:ms})]}):l.jsx(P,{sx:a.loadingBox??{minHeight:300,display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(W,{sx:s?.emptyProduct&&s.emptyProduct.title||{fontSize:"16px",fontWeight:600,color:"#1a1a1a"},children:`No products found in the "${i}" category.`})}):l.jsx(lu,{handleStartSyncing:Re,loading:!1}),l.jsx(Cy,{open:y,onClose:()=>{g(!1),b([])},selectedProducts:f},y?"open":"closed"),l.jsx(vy,{open:x,onClose:()=>E(!1),stores:ze,selectedProducts:Object.values(h||{}).flat(),selectedCategories:ms,onCreateSuccess:be=>{m(Pe=>({...Pe,[i]:[]})),E(!1),be&&t("/",{state:{catalogCreated:!0,catalogSlug:be}})}}),l.jsx(Sy,{open:w,onClose:()=>S(!1),stores:ze,selectedProducts:Object.values(h||{}).flat(),selectedCategories:ms,onSuccess:()=>m(be=>({...be,[i]:[]}))})]})})};function m5(e){if(!e)return"";const t=e instanceof Date?e:new Date(e);if(Number.isNaN(t.getTime()))return"";const n=Date.now()-t.getTime(),r=Math.floor(n/6e4);if(r<1)return"just now";if(r<60)return`${r} minute${r===1?"":"s"} ago`;const i=Math.floor(r/60);if(i<24)return`${i} hour${i===1?"":"s"} ago`;const s=Math.floor(i/24);return`${s} day${s===1?"":"s"} ago`}function y5(e){const t=e?.products??e?.itemsCount??e?.itemCount??e?.count??e?.totalItems??e?.totalCount??e?.total??null,n=Number(t);return Number.isFinite(n)?`${n} items to be scanned`:""}function b5(e){const t=e?.createdBy??"",n=String(t).trim();return n?`Created by ${n}`:""}function x5(e){const t=tt(),{requests:n=[],onViewDetails:r,emptyText:i="No OSA requests",totalCount:s=0,page:a=0,rowsPerPage:c=10,onPageChange:d,onRowsPerPageChange:p}=e,u=Math.max(0,Number(s)||0),h=Math.max(0,Math.ceil(u/Math.max(1,c))-1),m=t?.categoryTablePagination??t?.productDetail?.categoryTablePagination??t?.universal?.globalPaginationStyles??{};return l.jsx(P,{sx:{minHeight:"100vh",bgcolor:Ct},children:l.jsxs(Ut,{maxWidth:!1,sx:{width:"100%",maxWidth:900,mx:"auto",px:"20px",pt:2,pb:4,display:"flex",flexDirection:"column",gap:"12px",boxSizing:"border-box"},children:[Array.isArray(n)&&n.length>0?n.map((y,g)=>{const f=y?.createdAt??y?.created_at??y?.requestedAt??y?.date??y?.time??null,b=m5(f),x=y5(y),E=b5(y),w=y?.id??y?._id??`${g}`;return l.jsxs(bn,{elevation:0,sx:{borderRadius:"12px",background:"#FFFFFF",border:"1px solid #F1F1F1",px:2,py:1.5,display:"flex",alignItems:"center",justifyContent:"space-between",gap:2},children:[l.jsxs(P,{sx:{minWidth:0,display:"flex",flexDirection:"column",gap:.25},children:[!!x&&l.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"12px",lineHeight:"16px",color:"#454545"},children:x}),!!E&&l.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545"},children:E}),!!b&&l.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"11px",lineHeight:"16px",color:"#808080"},children:b})]}),l.jsx(Ze,{onClick:()=>typeof r=="function"?r(y):null,sx:{textTransform:"none",fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"13px",color:"#1A73E8",minWidth:0,px:0,"&:hover":{background:"transparent",opacity:.85}},endIcon:l.jsx(Mt,{sx:{width:16,height:16,color:"#1A73E8"}}),children:"View Details"})]},w)}):l.jsx(P,{sx:{py:6,textAlign:"center"},children:l.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"14px",lineHeight:"20px",color:"#808080"},children:i})}),l.jsxs(P,{sx:m.wrapper,children:[l.jsxs(P,{sx:m.resultsPerPageBox,children:[l.jsx(W,{component:"span",sx:m.resultsPerPageText,children:"Results per page:"}),l.jsxs(cn,{value:c,onChange:y=>typeof p=="function"?p(y):null,IconComponent:dr,variant:"standard",disableUnderline:!0,sx:m.select,children:[l.jsx(et,{value:5,children:"5"}),l.jsx(et,{value:10,children:"10"}),l.jsx(et,{value:25,children:"25"})]})]}),l.jsxs(P,{sx:m.navBox,children:[l.jsx(it,{size:"small",disabled:a===0,onClick:()=>typeof d=="function"?d(0):null,sx:m.iconButton,"aria-label":"First page",children:l.jsx(fs,{sx:m.paginationIcon??{width:16,height:16,opacity:1}})}),l.jsx(it,{size:"small",disabled:a===0,onClick:()=>typeof d=="function"?d(Math.max(0,a-1)):null,sx:m.iconButton,"aria-label":"Previous page",children:l.jsx(Kr,{sx:m.paginationIcon??{width:16,height:16,opacity:1}})}),l.jsx(W,{component:"span",sx:m.pageText,children:u===0?"0 - 0 of 0":`${a*c+1} - ${Math.min((a+1)*c,u)} of ${u}`}),l.jsx(it,{size:"small",disabled:a>=h,onClick:()=>typeof d=="function"?d(a+1):null,sx:m.iconButton,"aria-label":"Next page",children:l.jsx(Mt,{sx:m.paginationIcon??{width:16,height:16,opacity:1}})}),l.jsx(it,{size:"small",disabled:a>=h,onClick:()=>typeof d=="function"?d(h):null,sx:m.iconButton,"aria-label":"Last page",children:l.jsx(hs,{sx:m.paginationIcon??{width:16,height:16,opacity:1}})})]})]})]})})}function v5(e){return e?.eanCode??e?.ean_code??e?.eancode??e?.ean??""}function S5({products:e=[],loading:t=!1,error:n=null,pagination:r=null,page:i=0,rowsPerPage:s=10,onPageChange:a,onLimitChange:c}){const d=tt(),p=d?.categoryTablePagination??d?.productDetail?.categoryTablePagination??d?.universal?.globalPaginationStyles??{},u=Math.max(0,Number(r?.totalCount??0)||0),h=Math.max(1,Number(s??10)||10),m=Math.max(0,Math.ceil(u/Math.max(1,h))-1),y=d?.productDetail??{},g=y?.categoryTableAllStore??{},f=y?.ProductTable??{},b=_t("(max-width:450px)"),x=g?.outerCard??{},E=Array.isArray(e)?e.map((w,S)=>{const T=w?.productName??"",v=w?.productWeight??"",k=w?.categoryName??"",M=w?.sku??"",B=v5(w);return l.jsx(P,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",flexWrap:"nowrap",...g?.rowCard??{},gap:b?"8px":"16px",mt:S===0?.5:0,mb:.5,width:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box"},children:b?l.jsxs(P,{sx:{display:"flex",width:"100%",gap:"16px",minWidth:0,flexWrap:"nowrap"},children:[l.jsx(cr,{src:w?.productImage,sx:{width:56,height:56,borderRadius:"8px",flexShrink:0}}),l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[l.jsx(W,{sx:{fontSize:"12px"},children:T}),l.jsxs(W,{sx:{fontSize:"10px"},children:[v," • ",k]}),l.jsxs(W,{sx:{fontSize:"10px"},children:["SKU: ",M]}),l.jsx(W,{sx:{fontSize:"12px",mt:.5},children:B})]})]}):l.jsxs(l.Fragment,{children:[l.jsxs(P,{sx:{display:"flex",flex:1,gap:"16px",minWidth:0},children:[l.jsx(cr,{src:w?.productImage,sx:{width:56,height:56,borderRadius:"8px"}}),l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",flex:1},children:[l.jsx(W,{sx:{fontSize:"12px"},children:T}),l.jsxs(W,{sx:{fontSize:"10px"},children:[v," • ",k]}),l.jsxs(W,{sx:{fontSize:"10px"},children:["SKU: ",M]})]})]}),l.jsx(P,{sx:{width:170},children:l.jsx(W,{sx:{fontSize:"12px"},children:B})})]})},w?.productId??w?.id??S)}):[];return l.jsx(P,{sx:{minHeight:"100vh",bgcolor:Ct},children:l.jsx(Ut,{maxWidth:!1,sx:{maxWidth:900,mx:"auto",px:2},children:l.jsxs(Ki,{sx:{...f??{},...x??{}},children:[l.jsxs(P,{sx:{display:"flex",flexWrap:"nowrap",alignItems:"center",width:"100%",minWidth:0,...g?.tableHeader??{},boxSizing:"border-box",gap:b?"8px":"16px"},children:[l.jsx(P,{sx:{flex:1,minWidth:0},children:l.jsx(W,{sx:g?.headerProduct??{fontSize:"12px",lineHeight:"16px",color:"#808080"},children:"Product"})}),!b&&l.jsx(P,{sx:{width:170},children:l.jsx(W,{sx:g?.headerStatusText??{fontSize:"12px",lineHeight:"16px",color:"#808080"},children:"EanCode"})})]}),l.jsxs(P,{children:[n&&l.jsx(W,{sx:{textAlign:"center",py:3,color:"#d32f2f"},children:n}),!n&&t&&e.length===0&&l.jsx(P,{sx:{display:"flex",justifyContent:"center",py:4},children:l.jsx(Vr,{})}),!n&&!t&&e.length===0&&l.jsx(W,{sx:{textAlign:"center",py:3},children:"No products found"}),E]}),r&&l.jsxs(P,{sx:{...p.wrapper},children:[l.jsxs(P,{sx:p.resultsPerPageBox,children:[l.jsx(W,{sx:p.resultsPerPageText,children:"Results per page:"}),l.jsx(cn,{value:h,onChange:w=>{c(Number(w.target.value)||10)},IconComponent:dr,variant:"standard",disableUnderline:!0,sx:p.select,children:[5,10,20,50].map(w=>l.jsx(et,{value:w,children:w},w))})]}),l.jsxs(P,{sx:p.navBox,children:[l.jsx(it,{size:"small",disabled:i===0,onClick:()=>a(0),sx:p.iconButton,title:"First page",children:l.jsx(fs,{sx:p.paginationIcon})}),l.jsx(it,{size:"small",disabled:i===0,onClick:()=>a(Math.max(0,i-1)),sx:p.iconButton,title:"Previous page",children:l.jsx(Kr,{sx:p.paginationIcon})}),l.jsx(W,{sx:p.pageText,children:u===0?"0 - 0 of 0":`${i*h+1} - ${Math.min((i+1)*h,u)} of ${u}`}),l.jsx(it,{size:"small",disabled:i>=m,onClick:()=>a(i+1),sx:p.iconButton,title:"Next page",children:l.jsx(Mt,{sx:p.paginationIcon})}),l.jsx(it,{size:"small",disabled:i>=m,onClick:()=>a(m),sx:p.iconButton,title:"Last page",children:l.jsx(hs,{sx:p.paginationIcon})})]})]})]})})})}function w5(e){return Array.isArray(e)?e:e&&Array.isArray(e.data)?e.data:[]}function C5(){const e=fn(),t=Lt(),{osaRequests:n,osaRequestsLoading:r,osaRequestsError:i,osaRequestsPagination:s}=Ye(I=>I.dashboard??{}),{osaProducts:a,osaProductsLoading:c,osaProductsError:d,osaProductsPagination:p}=Ye(I=>I.dashboard??{}),u=N.useMemo(()=>w5(n),[n]),[h,m]=N.useState(0),[y,g]=N.useState(Math.max(1,Number(s?.limit)||10)),f=Math.max(0,Number(s?.totalCount)||0),[b,x]=N.useState(!1),[E,w]=N.useState(null),[S,T]=N.useState(0),[v,k]=N.useState(5),M=I=>{const _=Math.max(0,Number(I)||0);T(_)},B=I=>{const _=Math.max(1,Number(I)||10);k(_),T(0)};N.useEffect(()=>{e(oa({page:h+1,limit:y}))},[e,h,y]),N.useEffect(()=>()=>e(LS()),[e]),N.useEffect(()=>()=>e(jS()),[e]),N.useEffect(()=>{if(!b||!E)return;const I=v;e(ia({osaId:E,page:S+1,limit:I}))},[e,b,E,S,v]);const z=N.useCallback(()=>{if(b){x(!1);return}t(-1)},[t,b]),{setSettingTopbarProps:$}=$o()||{};N.useEffect(()=>{if($)return $({onBack:z}),()=>$({})},[$,z]);const C=N.useCallback(I=>{const _=I?.id??null;_&&(w(_),T(0),k(5),x(!0))},[]);return b?l.jsx(S5,{products:a,loading:c,error:d,pagination:p,page:S,rowsPerPage:v,onPageChange:M,onLimitChange:B}):r&&u.length===0?l.jsx(P,{sx:{minHeight:"100vh",bgcolor:Ct},children:l.jsx(Ut,{maxWidth:"sm",sx:{boxSizing:"border-box"},children:l.jsx(P,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"60vh"},children:l.jsx(Vr,{})})})}):i&&u.length===0?l.jsx(P,{sx:{minHeight:"100vh",bgcolor:Ct},children:l.jsx(Ut,{maxWidth:"sm",sx:{boxSizing:"border-box"},children:l.jsx(P,{sx:{textAlign:"center",py:4},children:l.jsx(W,{color:"error",children:i})})})}):l.jsx(x5,{requests:u,totalCount:f,page:h,rowsPerPage:y,onPageChange:I=>m(I),onRowsPerPageChange:I=>{const _=Number(I.target.value)||10;g(_),m(0)},onViewDetails:C})}function E5(){return l.jsx(Tb,{children:l.jsxs(fr,{element:l.jsx(H2,{}),children:[l.jsx(fr,{path:"/",element:l.jsx(mN,{})}),l.jsx(fr,{path:"/category",element:l.jsx(g5,{})}),l.jsx(fr,{path:"/product-setting",element:l.jsx(AN,{})}),l.jsx(fr,{path:"/products/settings/ftp-sync",element:l.jsx(YN,{})}),l.jsx(fr,{path:"/catalogs/manage-shared",element:l.jsx(u5,{})}),l.jsx(fr,{path:"/osa",element:l.jsx(C5,{})})]})})}function T5({StoresModal:e,storesModalProps:t,onStoreSelect:n}){return l.jsx(E5,{StoresModal:e,storesModalProps:t,onStoreSelect:n})}const A5=()=>l.jsx(zo,{text:"Fetching",fullScreen:!0});return({apiUrl:e,authToken:t,basePath:n="/",StoresModal:r,storesModalProps:i,onStoreSelect:s})=>l.jsx("div",{style:{width:"100%",minHeight:"100vh",boxSizing:"border-box"},children:l.jsx(QS,{apiUrl:e,authToken:t,children:l.jsx(y0,{store:Df,children:l.jsx(C0.PersistGate,{loading:l.jsx(A5,{}),persistor:XS,children:l.jsx(jb,{basename:n,children:l.jsx(T5,{StoresModal:r,storesModalProps:i,onStoreSelect:s})})})})})})}));
|
|
1583
1583
|
//# sourceMappingURL=product-app.umd.js.map
|