@attabot/product-app 1.0.12 → 1.0.14
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 +22567 -20046
- package/dist/product-app.js.map +1 -1
- package/dist/product-app.umd.js +95 -87
- package/dist/product-app.umd.js.map +1 -1
- package/package.json +2 -1
package/dist/product-app.umd.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
(function(s,F){typeof exports=="object"&&typeof module<"u"?module.exports=F(require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react/jsx-runtime","react","react-dom"],F):(s=typeof globalThis<"u"?globalThis:s||self,s.ProductApp=F(s["react/jsx-runtime"],s.React,s.ReactDOM))})(this,(function(s,F,Nn){"use strict";var Ys=typeof document<"u"?document.currentScript:null;function zc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const k=zc(F),ig=zc(Nn);function _n(){return _n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_n.apply(this,arguments)}var br;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(br||(br={}));const $c="popstate";function sg(e){e===void 0&&(e={});function t(n,o){let{pathname:a,search:l,hash:c}=n.location;return Gs("",{pathname:a,search:l,hash:c},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(n,o){return typeof o=="string"?o:An(o)}return lg(t,r,null,e)}function ye(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Mt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ag(){return Math.random().toString(36).substr(2,8)}function Fc(e,t){return{usr:e.state,key:e.key,idx:t}}function Gs(e,t,r,n){return r===void 0&&(r=null),_n({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Kr(t):t,{state:r,key:t&&t.key||n||ag()})}function An(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Kr(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function lg(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:a=!1}=n,l=o.history,c=br.Pop,u=null,d=p();d==null&&(d=0,l.replaceState(_n({},l.state,{idx:d}),""));function p(){return(l.state||{idx:null}).idx}function h(){c=br.Pop;let b=p(),S=b==null?null:b-d;d=b,u&&u({action:c,location:f.location,delta:S})}function y(b,S){c=br.Push;let v=Gs(f.location,b,S);d=p()+1;let T=Fc(v,d),C=f.createHref(v);try{l.pushState(T,"",C)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(C)}a&&u&&u({action:c,location:f.location,delta:1})}function x(b,S){c=br.Replace;let v=Gs(f.location,b,S);d=p();let T=Fc(v,d),C=f.createHref(v);l.replaceState(T,"",C),a&&u&&u({action:c,location:f.location,delta:0})}function g(b){let S=o.location.origin!=="null"?o.location.origin:o.location.href,v=typeof b=="string"?b:An(b);return v=v.replace(/ $/,"%20"),ye(S,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,S)}let f={get action(){return c},get location(){return e(o,l)},listen(b){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener($c,h),u=b,()=>{o.removeEventListener($c,h),u=null}},createHref(b){return t(o,b)},createURL:g,encodeLocation(b){let S=g(b);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:y,replace:x,go(b){return l.go(b)}};return f}var Bc;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Bc||(Bc={}));function cg(e,t,r){return r===void 0&&(r="/"),dg(e,t,r)}function dg(e,t,r,n){let o=typeof t=="string"?Kr(t):t,a=yr(o.pathname||"/",r);if(a==null)return null;let l=jc(e);ug(l);let c=null;for(let u=0;c==null&&u<l.length;++u){let d=wg(a);c=vg(l[u],d)}return c}function jc(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let o=(a,l,c)=>{let u={relativePath:c===void 0?a.path||"":c,caseSensitive:a.caseSensitive===!0,childrenIndex:l,route:a};u.relativePath.startsWith("/")&&(ye(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let d=nr([n,u.relativePath]),p=r.concat(u);a.children&&a.children.length>0&&(ye(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),jc(a.children,t,p,d)),!(a.path==null&&!a.index)&&t.push({path:d,score:mg(d,a.index),routesMeta:p})};return e.forEach((a,l)=>{var c;if(a.path===""||!((c=a.path)!=null&&c.includes("?")))o(a,l);else for(let u of Wc(a.path))o(a,l,u)}),t}function Wc(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return o?[a,""]:[a];let l=Wc(n.join("/")),c=[];return c.push(...l.map(u=>u===""?a:[a,u].join("/"))),o&&c.push(...l),c.map(u=>e.startsWith("/")&&u===""?"/":u)}function ug(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:xg(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const pg=/^:[\w-]+$/,fg=3,hg=2,gg=1,bg=10,yg=-2,Lc=e=>e==="*";function mg(e,t){let r=e.split("/"),n=r.length;return r.some(Lc)&&(n+=yg),t&&(n+=hg),r.filter(o=>!Lc(o)).reduce((o,a)=>o+(pg.test(a)?fg:a===""?gg:bg),n)}function xg(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function vg(e,t,r){let{routesMeta:n}=e,o={},a="/",l=[];for(let c=0;c<n.length;++c){let u=n[c],d=c===n.length-1,p=a==="/"?t:t.slice(a.length)||"/",h=Ks({path:u.relativePath,caseSensitive:u.caseSensitive,end:d},p),y=u.route;if(!h)return null;Object.assign(o,h.params),l.push({params:o,pathname:nr([a,h.pathname]),pathnameBase:Og(nr([a,h.pathnameBase])),route:y}),h.pathnameBase!=="/"&&(a=nr([a,h.pathnameBase]))}return l}function Ks(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=Sg(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let a=o[0],l=a.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:n.reduce((d,p,h)=>{let{paramName:y,isOptional:x}=p;if(y==="*"){let f=c[h]||"";l=a.slice(0,a.length-f.length).replace(/(.)\/+$/,"$1")}const g=c[h];return x&&!g?d[y]=void 0:d[y]=(g||"").replace(/%2F/g,"/"),d},{}),pathname:a,pathnameBase:l,pattern:e}}function Sg(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Mt(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 n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,c,u)=>(n.push({paramName:c,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function wg(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Mt(!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 yr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}const Cg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Eg=e=>Cg.test(e);function Tg(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?Kr(e):e,a;if(r)if(Eg(r))a=r;else{if(r.includes("//")){let l=r;r=r.replace(/\/\/+/g,"/"),Mt(!1,"Pathnames cannot have embedded double slashes - normalizing "+(l+" -> "+r))}r.startsWith("/")?a=Vc(r.substring(1),"/"):a=Vc(r,t)}else a=t;return{pathname:a,search:Pg(n),hash:Ig(o)}}function Vc(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Rs(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function kg(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Uc(e,t){let r=kg(e);return t?r.map((n,o)=>o===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Hc(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=Kr(e):(o=_n({},e),ye(!o.pathname||!o.pathname.includes("?"),Rs("?","pathname","search",o)),ye(!o.pathname||!o.pathname.includes("#"),Rs("#","pathname","hash",o)),ye(!o.search||!o.search.includes("#"),Rs("#","search","hash",o)));let a=e===""||o.pathname==="",l=a?"/":o.pathname,c;if(l==null)c=r;else{let h=t.length-1;if(!n&&l.startsWith("..")){let y=l.split("/");for(;y[0]==="..";)y.shift(),h-=1;o.pathname=y.join("/")}c=h>=0?t[h]:"/"}let u=Tg(o,c),d=l&&l!=="/"&&l.endsWith("/"),p=(a||l===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(d||p)&&(u.pathname+="/"),u}const nr=e=>e.join("/").replace(/\/\/+/g,"/"),Og=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Pg=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ig=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Ng(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const qc=["post","put","patch","delete"];new Set(qc);const _g=["get",...qc];new Set(_g);function Mn(){return Mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mn.apply(this,arguments)}const Dn=k.createContext(null);process.env.NODE_ENV!=="production"&&(Dn.displayName="DataRouter");const Xs=k.createContext(null);process.env.NODE_ENV!=="production"&&(Xs.displayName="DataRouterState");const Ag=k.createContext(null);process.env.NODE_ENV!=="production"&&(Ag.displayName="Await");const Dt=k.createContext(null);process.env.NODE_ENV!=="production"&&(Dt.displayName="Navigation");const zn=k.createContext(null);process.env.NODE_ENV!=="production"&&(zn.displayName="Location");const or=k.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(or.displayName="Route");const Js=k.createContext(null);process.env.NODE_ENV!=="production"&&(Js.displayName="RouteError");function Mg(e,t){let{relative:r}=t===void 0?{}:t;$n()||(process.env.NODE_ENV!=="production"?ye(!1,"useHref() may be used only in the context of a <Router> component."):ye(!1));let{basename:n,navigator:o}=k.useContext(Dt),{hash:a,pathname:l,search:c}=Fn(e,{relative:r}),u=l;return n!=="/"&&(u=l==="/"?n:nr([n,l])),o.createHref({pathname:u,search:c,hash:a})}function $n(){return k.useContext(zn)!=null}function Et(){return $n()||(process.env.NODE_ENV!=="production"?ye(!1,"useLocation() may be used only in the context of a <Router> component."):ye(!1)),k.useContext(zn).location}const Yc="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Gc(e){k.useContext(Dt).static||k.useLayoutEffect(e)}function yt(){let{isDataRoute:e}=k.useContext(or);return e?Gg():Dg()}function Dg(){$n()||(process.env.NODE_ENV!=="production"?ye(!1,"useNavigate() may be used only in the context of a <Router> component."):ye(!1));let e=k.useContext(Dn),{basename:t,future:r,navigator:n}=k.useContext(Dt),{matches:o}=k.useContext(or),{pathname:a}=Et(),l=JSON.stringify(Uc(o,r.v7_relativeSplatPath)),c=k.useRef(!1);return Gc(()=>{c.current=!0}),k.useCallback(function(d,p){if(p===void 0&&(p={}),process.env.NODE_ENV!=="production"&&Mt(c.current,Yc),!c.current)return;if(typeof d=="number"){n.go(d);return}let h=Hc(d,JSON.parse(l),a,p.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:nr([t,h.pathname])),(p.replace?n.replace:n.push)(h,p.state,p)},[t,n,l,a,e])}function Fn(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=k.useContext(Dt),{matches:o}=k.useContext(or),{pathname:a}=Et(),l=JSON.stringify(Uc(o,n.v7_relativeSplatPath));return k.useMemo(()=>Hc(e,JSON.parse(l),a,r==="path"),[e,l,a,r])}function zg(e,t){return $g(e,t)}function $g(e,t,r,n){$n()||(process.env.NODE_ENV!=="production"?ye(!1,"useRoutes() may be used only in the context of a <Router> component."):ye(!1));let{navigator:o}=k.useContext(Dt),{matches:a}=k.useContext(or),l=a[a.length-1],c=l?l.params:{},u=l?l.pathname:"/",d=l?l.pathnameBase:"/",p=l&&l.route;if(process.env.NODE_ENV!=="production"){let v=p&&p.path||"";Xc(u,!p||v.endsWith("*"),"You rendered descendant <Routes> (or called `useRoutes()`) at "+('"'+u+'" (under <Route path="'+v+'">) 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.
|
|
1
|
+
(function($,a){typeof exports=="object"&&typeof module<"u"?module.exports=a(require("react"),require("react/jsx-runtime"),require("react-dom")):typeof define=="function"&&define.amd?define(["react","react/jsx-runtime","react-dom"],a):($=typeof globalThis<"u"?globalThis:$||self,$.ProductApp=a($.React,$["react/jsx-runtime"],$.ReactDOM))})(this,(function($,a,Kn){"use strict";var Pa=typeof document<"u"?document.currentScript:null;function Ed(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const T=Ed($),xy=Ed(Kn);function Xn(){return Xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xn.apply(this,arguments)}var zr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(zr||(zr={}));const Td="popstate";function Sy(e){e===void 0&&(e={});function t(n,o){let{pathname:s,search:l,hash:c}=n.location;return Ia("",{pathname:s,search:l,hash:c},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(n,o){return typeof o=="string"?o:Jn(o)}return Cy(t,r,null,e)}function ve(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Dt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function wy(){return Math.random().toString(36).substr(2,8)}function Od(e,t){return{usr:e.state,key:e.key,idx:t}}function Ia(e,t,r,n){return r===void 0&&(r=null),Xn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?xn(t):t,{state:r,key:t&&t.key||n||wy()})}function Jn(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function xn(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Cy(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:s=!1}=n,l=o.history,c=zr.Pop,d=null,p=u();p==null&&(p=0,l.replaceState(Xn({},l.state,{idx:p}),""));function u(){return(l.state||{idx:null}).idx}function h(){c=zr.Pop;let m=u(),x=m==null?null:m-p;p=m,d&&d({action:c,location:f.location,delta:x})}function v(m,x){c=zr.Push;let b=Ia(f.location,m,x);p=u()+1;let w=Od(b,p),S=f.createHref(b);try{l.pushState(w,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(S)}s&&d&&d({action:c,location:f.location,delta:1})}function g(m,x){c=zr.Replace;let b=Ia(f.location,m,x);p=u();let w=Od(b,p),S=f.createHref(b);l.replaceState(w,"",S),s&&d&&d({action:c,location:f.location,delta:0})}function y(m){let x=o.location.origin!=="null"?o.location.origin:o.location.href,b=typeof m=="string"?m:Jn(m);return b=b.replace(/ $/,"%20"),ve(x,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,x)}let f={get action(){return c},get location(){return e(o,l)},listen(m){if(d)throw new Error("A history only accepts one active listener");return o.addEventListener(Td,h),d=m,()=>{o.removeEventListener(Td,h),d=null}},createHref(m){return t(o,m)},createURL:y,encodeLocation(m){let x=y(m);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:v,replace:g,go(m){return l.go(m)}};return f}var kd;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(kd||(kd={}));function Ey(e,t,r){return r===void 0&&(r="/"),Ty(e,t,r)}function Ty(e,t,r,n){let o=typeof t=="string"?xn(t):t,s=jr(o.pathname||"/",r);if(s==null)return null;let l=Pd(e);Oy(l);let c=null;for(let d=0;c==null&&d<l.length;++d){let p=zy(s);c=Dy(l[d],p)}return c}function Pd(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let o=(s,l,c)=>{let d={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};d.relativePath.startsWith("/")&&(ve(d.relativePath.startsWith(n),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(n.length));let p=mr([n,d.relativePath]),u=r.concat(d);s.children&&s.children.length>0&&(ve(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+p+'".')),Pd(s.children,t,u,p)),!(s.path==null&&!s.index)&&t.push({path:p,score:My(p,s.index),routesMeta:u})};return e.forEach((s,l)=>{var c;if(s.path===""||!((c=s.path)!=null&&c.includes("?")))o(s,l);else for(let d of Id(s.path))o(s,l,d)}),t}function Id(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),s=r.replace(/\?$/,"");if(n.length===0)return o?[s,""]:[s];let l=Id(n.join("/")),c=[];return c.push(...l.map(d=>d===""?s:[s,d].join("/"))),o&&c.push(...l),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function Oy(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:$y(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const ky=/^:[\w-]+$/,Py=3,Iy=2,Ny=1,_y=10,Ay=-2,Nd=e=>e==="*";function My(e,t){let r=e.split("/"),n=r.length;return r.some(Nd)&&(n+=Ay),t&&(n+=Iy),r.filter(o=>!Nd(o)).reduce((o,s)=>o+(ky.test(s)?Py:s===""?Ny:_y),n)}function $y(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function Dy(e,t,r){let{routesMeta:n}=e,o={},s="/",l=[];for(let c=0;c<n.length;++c){let d=n[c],p=c===n.length-1,u=s==="/"?t:t.slice(s.length)||"/",h=Na({path:d.relativePath,caseSensitive:d.caseSensitive,end:p},u),v=d.route;if(!h)return null;Object.assign(o,h.params),l.push({params:o,pathname:mr([s,h.pathname]),pathnameBase:Vy(mr([s,h.pathnameBase])),route:v}),h.pathnameBase!=="/"&&(s=mr([s,h.pathnameBase]))}return l}function Na(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=Fy(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let s=o[0],l=s.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:n.reduce((p,u,h)=>{let{paramName:v,isOptional:g}=u;if(v==="*"){let f=c[h]||"";l=s.slice(0,s.length-f.length).replace(/(.)\/+$/,"$1")}const y=c[h];return g&&!y?p[v]=void 0:p[v]=(y||"").replace(/%2F/g,"/"),p},{}),pathname:s,pathnameBase:l,pattern:e}}function Fy(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Dt(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 n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,c,d)=>(n.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function zy(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Dt(!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 jr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}const jy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,By=e=>jy.test(e);function Ly(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?xn(e):e,s;if(r)if(By(r))s=r;else{if(r.includes("//")){let l=r;r=r.replace(/\/\/+/g,"/"),Dt(!1,"Pathnames cannot have embedded double slashes - normalizing "+(l+" -> "+r))}r.startsWith("/")?s=_d(r.substring(1),"/"):s=_d(r,t)}else s=t;return{pathname:s,search:Uy(n),hash:Hy(o)}}function _d(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function _a(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Wy(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Ad(e,t){let r=Wy(e);return t?r.map((n,o)=>o===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Md(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=xn(e):(o=Xn({},e),ve(!o.pathname||!o.pathname.includes("?"),_a("?","pathname","search",o)),ve(!o.pathname||!o.pathname.includes("#"),_a("#","pathname","hash",o)),ve(!o.search||!o.search.includes("#"),_a("#","search","hash",o)));let s=e===""||o.pathname==="",l=s?"/":o.pathname,c;if(l==null)c=r;else{let h=t.length-1;if(!n&&l.startsWith("..")){let v=l.split("/");for(;v[0]==="..";)v.shift(),h-=1;o.pathname=v.join("/")}c=h>=0?t[h]:"/"}let d=Ly(o,c),p=l&&l!=="/"&&l.endsWith("/"),u=(s||l===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(p||u)&&(d.pathname+="/"),d}const mr=e=>e.join("/").replace(/\/\/+/g,"/"),Vy=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Uy=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Hy=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Ry(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const $d=["post","put","patch","delete"];new Set($d);const qy=["get",...$d];new Set(qy);function Qn(){return Qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qn.apply(this,arguments)}const Zn=T.createContext(null);process.env.NODE_ENV!=="production"&&(Zn.displayName="DataRouter");const Aa=T.createContext(null);process.env.NODE_ENV!=="production"&&(Aa.displayName="DataRouterState");const Yy=T.createContext(null);process.env.NODE_ENV!=="production"&&(Yy.displayName="Await");const qt=T.createContext(null);process.env.NODE_ENV!=="production"&&(qt.displayName="Navigation");const eo=T.createContext(null);process.env.NODE_ENV!=="production"&&(eo.displayName="Location");const br=T.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(br.displayName="Route");const Ma=T.createContext(null);process.env.NODE_ENV!=="production"&&(Ma.displayName="RouteError");function Gy(e,t){let{relative:r}=t===void 0?{}:t;to()||(process.env.NODE_ENV!=="production"?ve(!1,"useHref() may be used only in the context of a <Router> component."):ve(!1));let{basename:n,navigator:o}=T.useContext(qt),{hash:s,pathname:l,search:c}=ro(e,{relative:r}),d=l;return n!=="/"&&(d=l==="/"?n:mr([n,l])),o.createHref({pathname:d,search:c,hash:s})}function to(){return T.useContext(eo)!=null}function yt(){return to()||(process.env.NODE_ENV!=="production"?ve(!1,"useLocation() may be used only in the context of a <Router> component."):ve(!1)),T.useContext(eo).location}const Dd="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Fd(e){T.useContext(qt).static||T.useLayoutEffect(e)}function et(){let{isDataRoute:e}=T.useContext(br);return e?lm():Ky()}function Ky(){to()||(process.env.NODE_ENV!=="production"?ve(!1,"useNavigate() may be used only in the context of a <Router> component."):ve(!1));let e=T.useContext(Zn),{basename:t,future:r,navigator:n}=T.useContext(qt),{matches:o}=T.useContext(br),{pathname:s}=yt(),l=JSON.stringify(Ad(o,r.v7_relativeSplatPath)),c=T.useRef(!1);return Fd(()=>{c.current=!0}),T.useCallback(function(p,u){if(u===void 0&&(u={}),process.env.NODE_ENV!=="production"&&Dt(c.current,Dd),!c.current)return;if(typeof p=="number"){n.go(p);return}let h=Md(p,JSON.parse(l),s,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:mr([t,h.pathname])),(u.replace?n.replace:n.push)(h,u.state,u)},[t,n,l,s,e])}function ro(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=T.useContext(qt),{matches:o}=T.useContext(br),{pathname:s}=yt(),l=JSON.stringify(Ad(o,n.v7_relativeSplatPath));return T.useMemo(()=>Md(e,JSON.parse(l),s,r==="path"),[e,l,s,r])}function Xy(e,t){return Jy(e,t)}function Jy(e,t,r,n){to()||(process.env.NODE_ENV!=="production"?ve(!1,"useRoutes() may be used only in the context of a <Router> component."):ve(!1));let{navigator:o}=T.useContext(qt),{matches:s}=T.useContext(br),l=s[s.length-1],c=l?l.params:{},d=l?l.pathname:"/",p=l?l.pathnameBase:"/",u=l&&l.route;if(process.env.NODE_ENV!=="production"){let b=u&&u.path||"";Bd(d,!u||b.endsWith("*"),"You rendered descendant <Routes> (or called `useRoutes()`) at "+('"'+d+'" (under <Route path="'+b+'">) 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="'+v+'"> to <Route ')+('path="'+(v==="/"?"*":v+"/*")+'">.'))}let h=Et(),y;if(t){var x;let v=typeof t=="string"?Kr(t):t;d==="/"||(x=v.pathname)!=null&&x.startsWith(d)||(process.env.NODE_ENV!=="production"?ye(!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 "'+d+'" ')+('but pathname "'+v.pathname+'" was given in the `location` prop.')):ye(!1)),y=v}else y=h;let g=y.pathname||"/",f=g;if(d!=="/"){let v=d.replace(/^\//,"").split("/");f="/"+g.replace(/^\//,"").split("/").slice(v.length).join("/")}let b=cg(e,{pathname:f});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&Mt(p||b!=null,'No routes matched location "'+y.pathname+y.search+y.hash+'" '),process.env.NODE_ENV!=="production"&&Mt(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 "'+y.pathname+y.search+y.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 S=Lg(b&&b.map(v=>Object.assign({},v,{params:Object.assign({},c,v.params),pathname:nr([d,o.encodeLocation?o.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?d:nr([d,o.encodeLocation?o.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),a,r,n);return t&&S?k.createElement(zn.Provider,{value:{location:Mn({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:br.Pop}},S):S}function Fg(){let e=Yg(),t=Ng(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n},l=null;return process.env.NODE_ENV!=="production"&&(console.error("Error handled by React Router default ErrorBoundary:",e),l=k.createElement(k.Fragment,null,k.createElement("p",null,"💿 Hey developer 👋"),k.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",k.createElement("code",{style:a},"ErrorBoundary")," or"," ",k.createElement("code",{style:a},"errorElement")," prop on your route."))),k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),r?k.createElement("pre",{style:o},r):null,l)}const Bg=k.createElement(Fg,null);class jg extends k.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,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?k.createElement(or.Provider,{value:this.props.routeContext},k.createElement(Js.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Wg(e){let{routeContext:t,match:r,children:n}=e,o=k.useContext(Dn);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),k.createElement(or.Provider,{value:t},n)}function Lg(e,t,r,n){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var a;if(!r)return null;if(r.errors)e=r.matches;else if((a=n)!=null&&a.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let l=e,c=(o=r)==null?void 0:o.errors;if(c!=null){let p=l.findIndex(h=>h.route.id&&c?.[h.route.id]!==void 0);p>=0||(process.env.NODE_ENV!=="production"?ye(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(c).join(",")):ye(!1)),l=l.slice(0,Math.min(l.length,p+1))}let u=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let p=0;p<l.length;p++){let h=l[p];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(d=p),h.route.id){let{loaderData:y,errors:x}=r,g=h.route.loader&&y[h.route.id]===void 0&&(!x||x[h.route.id]===void 0);if(h.route.lazy||g){u=!0,d>=0?l=l.slice(0,d+1):l=[l[0]];break}}}return l.reduceRight((p,h,y)=>{let x,g=!1,f=null,b=null;r&&(x=c&&h.route.id?c[h.route.id]:void 0,f=h.route.errorElement||Bg,u&&(d<0&&y===0?(Xc("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,b=null):d===y&&(g=!0,b=h.route.hydrateFallbackElement||null)));let S=t.concat(l.slice(0,y+1)),v=()=>{let T;return x?T=f:g?T=b:h.route.Component?T=k.createElement(h.route.Component,null):h.route.element?T=h.route.element:T=p,k.createElement(Wg,{match:h,routeContext:{outlet:p,matches:S,isDataRoute:r!=null},children:T})};return r&&(h.route.ErrorBoundary||h.route.errorElement||y===0)?k.createElement(jg,{location:r.location,revalidation:r.revalidation,component:f,error:x,children:v(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):v()},null)}var Kc=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(Kc||{}),Bn=(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})(Bn||{});function Qs(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function Vg(e){let t=k.useContext(Dn);return t||(process.env.NODE_ENV!=="production"?ye(!1,Qs(e)):ye(!1)),t}function Ug(e){let t=k.useContext(Xs);return t||(process.env.NODE_ENV!=="production"?ye(!1,Qs(e)):ye(!1)),t}function Hg(e){let t=k.useContext(or);return t||(process.env.NODE_ENV!=="production"?ye(!1,Qs(e)):ye(!1)),t}function Zs(e){let t=Hg(e),r=t.matches[t.matches.length-1];return r.route.id||(process.env.NODE_ENV!=="production"?ye(!1,e+' can only be used on routes that contain a unique "id"'):ye(!1)),r.route.id}function qg(){return Zs(Bn.UseRouteId)}function Yg(){var e;let t=k.useContext(Js),r=Ug(Bn.UseRouteError),n=Zs(Bn.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function Gg(){let{router:e}=Vg(Kc.UseNavigateStable),t=Zs(Bn.UseNavigateStable),r=k.useRef(!1);return Gc(()=>{r.current=!0}),k.useCallback(function(o,a){a===void 0&&(a={}),process.env.NODE_ENV!=="production"&&Mt(r.current,Yc),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Mn({fromRouteId:t},a)))},[e,t])}const Rc={};function Xc(e,t,r){!t&&!Rc[e]&&(Rc[e]=!0,process.env.NODE_ENV!=="production"&&Mt(!1,r))}const Jc={};function Kg(e,t){process.env.NODE_ENV!=="production"&&!Jc[t]&&(Jc[t]=!0,console.warn(t))}const Qc=(e,t,r)=>Kg(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+r+"."));function Rg(e,t){e?.v7_startTransition===void 0&&Qc("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&&Qc("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function ut(e){process.env.NODE_ENV!=="production"?ye(!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>."):ye(!1)}function Xg(e){let{basename:t="/",children:r=null,location:n,navigationType:o=br.Pop,navigator:a,static:l=!1,future:c}=e;$n()&&(process.env.NODE_ENV!=="production"?ye(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):ye(!1));let u=t.replace(/^\/*/,"/"),d=k.useMemo(()=>({basename:u,navigator:a,static:l,future:Mn({v7_relativeSplatPath:!1},c)}),[u,c,a,l]);typeof n=="string"&&(n=Kr(n));let{pathname:p="/",search:h="",hash:y="",state:x=null,key:g="default"}=n,f=k.useMemo(()=>{let b=yr(p,u);return b==null?null:{location:{pathname:b,search:h,hash:y,state:x,key:g},navigationType:o}},[u,p,h,y,x,g,o]);return process.env.NODE_ENV!=="production"&&Mt(f!=null,'<Router basename="'+u+'"> is not able to match the URL '+('"'+p+h+y+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),f==null?null:k.createElement(Dt.Provider,{value:d},k.createElement(zn.Provider,{children:r,value:f}))}function Jg(e){let{children:t,location:r}=e;return zg(ea(t),r)}new Promise(()=>{});function ea(e,t){t===void 0&&(t=[]);let r=[];return k.Children.forEach(e,(n,o)=>{if(!k.isValidElement(n))return;let a=[...t,o];if(n.type===k.Fragment){r.push.apply(r,ea(n.props.children,a));return}n.type!==ut&&(process.env.NODE_ENV!=="production"?ye(!1,"["+(typeof n.type=="string"?n.type:n.type.name)+"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>"):ye(!1)),!n.props.index||!n.props.children||(process.env.NODE_ENV!=="production"?ye(!1,"An index route cannot have child routes."):ye(!1));let l={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(l.children=ea(n.props.children,a)),r.push(l)}),r}function Rr(){return Rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rr.apply(this,arguments)}function ta(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}const Ko="get",Ro="application/x-www-form-urlencoded";function Xo(e){return e!=null&&typeof e.tagName=="string"}function Qg(e){return Xo(e)&&e.tagName.toLowerCase()==="button"}function Zg(e){return Xo(e)&&e.tagName.toLowerCase()==="form"}function eb(e){return Xo(e)&&e.tagName.toLowerCase()==="input"}function tb(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function rb(e,t){return e.button===0&&(!t||t==="_self")&&!tb(e)}let Jo=null;function nb(){if(Jo===null)try{new FormData(document.createElement("form"),0),Jo=!1}catch{Jo=!0}return Jo}const ob=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ra(e){return e!=null&&!ob.has(e)?(process.env.NODE_ENV!=="production"&&Mt(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+Ro+'"')),null):e}function ib(e,t){let r,n,o,a,l;if(Zg(e)){let c=e.getAttribute("action");n=c?yr(c,t):null,r=e.getAttribute("method")||Ko,o=ra(e.getAttribute("enctype"))||Ro,a=new FormData(e)}else if(Qg(e)||eb(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 u=e.getAttribute("formaction")||c.getAttribute("action");if(n=u?yr(u,t):null,r=e.getAttribute("formmethod")||c.getAttribute("method")||Ko,o=ra(e.getAttribute("formenctype"))||ra(c.getAttribute("enctype"))||Ro,a=new FormData(c,e),!nb()){let{name:d,type:p,value:h}=e;if(p==="image"){let y=d?d+".":"";a.append(y+"x","0"),a.append(y+"y","0")}else d&&a.append(d,h)}}else{if(Xo(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Ko,n=null,o=Ro,l=e}return a&&o==="text/plain"&&(l=a,a=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:a,body:l}}const sb=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],ab=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],lb=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],cb="6";try{window.__reactRouterVersion=cb}catch{}const Zc=k.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(Zc.displayName="ViewTransition");const db=k.createContext(new Map);process.env.NODE_ENV!=="production"&&(db.displayName="Fetchers");const ed=k["startTransition"];function ub(e){let{basename:t,children:r,future:n,window:o}=e,a=k.useRef();a.current==null&&(a.current=sg({window:o,v5Compat:!0}));let l=a.current,[c,u]=k.useState({action:l.action,location:l.location}),{v7_startTransition:d}=n||{},p=k.useCallback(h=>{d&&ed?ed(()=>u(h)):u(h)},[u,d]);return k.useLayoutEffect(()=>l.listen(p),[l,p]),k.useEffect(()=>Rg(n),[n]),k.createElement(Xg,{basename:t,children:r,location:c.location,navigationType:c.action,navigator:l,future:n})}process.env.NODE_ENV;const pb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",fb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jn=k.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:a,replace:l,state:c,target:u,to:d,preventScrollReset:p,viewTransition:h}=t,y=ta(t,sb),{basename:x}=k.useContext(Dt),g,f=!1;if(typeof d=="string"&&fb.test(d)&&(g=d,pb))try{let T=new URL(window.location.href),C=d.startsWith("//")?new URL(T.protocol+d):new URL(d),E=yr(C.pathname,x);C.origin===T.origin&&E!=null?d=E+C.search+C.hash:f=!0}catch{process.env.NODE_ENV!=="production"&&Mt(!1,'<Link to="'+d+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let b=Mg(d,{relative:o}),S=yb(d,{replace:l,state:c,target:u,preventScrollReset:p,relative:o,viewTransition:h});function v(T){n&&n(T),T.defaultPrevented||S(T)}return k.createElement("a",Rr({},y,{href:g||b,onClick:f||a?n:v,ref:r,target:u}))});process.env.NODE_ENV!=="production"&&(jn.displayName="Link");const hb=k.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:o=!1,className:a="",end:l=!1,style:c,to:u,viewTransition:d,children:p}=t,h=ta(t,ab),y=Fn(u,{relative:h.relative}),x=Et(),g=k.useContext(Xs),{navigator:f,basename:b}=k.useContext(Dt),S=g!=null&&Cb(y)&&d===!0,v=f.encodeLocation?f.encodeLocation(y).pathname:y.pathname,T=x.pathname,C=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;o||(T=T.toLowerCase(),C=C?C.toLowerCase():null,v=v.toLowerCase()),C&&b&&(C=yr(C,b)||C);const E=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let w=T===v||!l&&T.startsWith(v)&&T.charAt(E)==="/",I=C!=null&&(C===v||!l&&C.startsWith(v)&&C.charAt(v.length)==="/"),z={isActive:w,isPending:I,isTransitioning:S},_=w?n:void 0,N;typeof a=="function"?N=a(z):N=[a,w?"active":null,I?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let L=typeof c=="function"?c(z):c;return k.createElement(jn,Rr({},h,{"aria-current":_,className:N,ref:r,style:L,to:u,viewTransition:d}),typeof p=="function"?p(z):p)});process.env.NODE_ENV!=="production"&&(hb.displayName="NavLink");const gb=k.forwardRef((e,t)=>{let{fetcherKey:r,navigate:n,reloadDocument:o,replace:a,state:l,method:c=Ko,action:u,onSubmit:d,relative:p,preventScrollReset:h,viewTransition:y}=e,x=ta(e,lb),g=Sb(),f=wb(u,{relative:p}),b=c.toLowerCase()==="get"?"get":"post",S=v=>{if(d&&d(v),v.defaultPrevented)return;v.preventDefault();let T=v.nativeEvent.submitter,C=T?.getAttribute("formmethod")||c;g(T||v.currentTarget,{fetcherKey:r,method:C,navigate:n,replace:a,state:l,relative:p,preventScrollReset:h,viewTransition:y})};return k.createElement("form",Rr({ref:t,method:b,action:f,onSubmit:o?d:S},x))});process.env.NODE_ENV!=="production"&&(gb.displayName="Form"),process.env.NODE_ENV;var Qo;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Qo||(Qo={}));var td;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(td||(td={}));function bb(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function rd(e){let t=k.useContext(Dn);return t||(process.env.NODE_ENV!=="production"?ye(!1,bb(e)):ye(!1)),t}function yb(e,t){let{target:r,replace:n,state:o,preventScrollReset:a,relative:l,viewTransition:c}=t===void 0?{}:t,u=yt(),d=Et(),p=Fn(e,{relative:l});return k.useCallback(h=>{if(rb(h,r)){h.preventDefault();let y=n!==void 0?n:An(d)===An(p);u(e,{replace:y,state:o,preventScrollReset:a,relative:l,viewTransition:c})}},[d,u,p,n,o,r,e,a,l,c])}function mb(){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 xb=0,vb=()=>"__"+String(++xb)+"__";function Sb(){let{router:e}=rd(Qo.UseSubmit),{basename:t}=k.useContext(Dt),r=qg();return k.useCallback(function(n,o){o===void 0&&(o={}),mb();let{action:a,method:l,encType:c,formData:u,body:d}=ib(n,t);if(o.navigate===!1){let p=o.fetcherKey||vb();e.fetch(p,r,o.action||a,{preventScrollReset:o.preventScrollReset,formData:u,body:d,formMethod:o.method||l,formEncType:o.encType||c,flushSync:o.flushSync})}else e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:u,body:d,formMethod:o.method||l,formEncType:o.encType||c,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,r])}function wb(e,t){let{relative:r}=t===void 0?{}:t,{basename:n}=k.useContext(Dt),o=k.useContext(or);o||(process.env.NODE_ENV!=="production"?ye(!1,"useFormAction must be used inside a RouteContext"):ye(!1));let[a]=o.matches.slice(-1),l=Rr({},Fn(e||".",{relative:r})),c=Et();if(e==null){l.search=c.search;let u=new URLSearchParams(l.search),d=u.getAll("index");if(d.some(h=>h==="")){u.delete("index"),d.filter(y=>y).forEach(y=>u.append("index",y));let h=u.toString();l.search=h?"?"+h:""}}return(!e||e===".")&&a.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:nr([n,l.pathname])),An(l)}function Cb(e,t){t===void 0&&(t={});let r=k.useContext(Zc);r==null&&(process.env.NODE_ENV!=="production"?ye(!1,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):ye(!1));let{basename:n}=rd(Qo.useViewTransitionState),o=Fn(e,{relative:t.relative});if(!r.isTransitioning)return!1;let a=yr(r.currentLocation.pathname,n)||r.currentLocation.pathname,l=yr(r.nextLocation.pathname,n)||r.nextLocation.pathname;return Ks(o.pathname,l)!=null||Ks(o.pathname,a)!=null}function nd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zo={exports:{}},na={};var od;function Eb(){if(od)return na;od=1;var e=F;function t(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,o=e.useRef,a=e.useEffect,l=e.useMemo,c=e.useDebugValue;return na.useSyncExternalStoreWithSelector=function(u,d,p,h,y){var x=o(null);if(x.current===null){var g={hasValue:!1,value:null};x.current=g}else g=x.current;x=l(function(){function b(E){if(!S){if(S=!0,v=E,E=h(E),y!==void 0&&g.hasValue){var w=g.value;if(y(w,E))return T=w}return T=E}if(w=T,r(v,E))return w;var I=h(E);return y!==void 0&&y(w,I)?(v=E,w):(v=E,T=I)}var S=!1,v,T,C=p===void 0?null:p;return[function(){return b(d())},C===null?void 0:function(){return b(C())}]},[d,p,h,y]);var f=n(u,x[0],x[1]);return a(function(){g.hasValue=!0,g.value=f},[f]),c(f),f},na}var oa={};var id;function Tb(){return id||(id=1,process.env.NODE_ENV!=="production"&&(function(){function e(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=F,r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,o=t.useRef,a=t.useEffect,l=t.useMemo,c=t.useDebugValue;oa.useSyncExternalStoreWithSelector=function(u,d,p,h,y){var x=o(null);if(x.current===null){var g={hasValue:!1,value:null};x.current=g}else g=x.current;x=l(function(){function b(E){if(!S){if(S=!0,v=E,E=h(E),y!==void 0&&g.hasValue){var w=g.value;if(y(w,E))return T=w}return T=E}if(w=T,r(v,E))return w;var I=h(E);return y!==void 0&&y(w,I)?(v=E,w):(v=E,T=I)}var S=!1,v,T,C=p===void 0?null:p;return[function(){return b(d())},C===null?void 0:function(){return b(C())}]},[d,p,h,y]);var f=n(u,x[0],x[1]);return a(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())})()),oa}var sd;function kb(){return sd||(sd=1,process.env.NODE_ENV==="production"?Zo.exports=Eb():Zo.exports=Tb()),Zo.exports}var Ob=kb();function Pb(e){e()}function Ib(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Pb(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const o=t={callback:r,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!n||e===null||(n=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var ad={notify(){},get:()=>[]};function Nb(e,t){let r,n=ad,o=0,a=!1;function l(f){p();const b=n.subscribe(f);let S=!1;return()=>{S||(S=!0,b(),h())}}function c(){n.notify()}function u(){g.onStateChange&&g.onStateChange()}function d(){return a}function p(){o++,r||(r=e.subscribe(u),n=Ib())}function h(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=ad)}function y(){a||(a=!0,p())}function x(){a&&(a=!1,h())}const g={addNestedSub:l,notifyNestedSubs:c,handleChangeWrapper:u,isSubscribed:d,trySubscribe:y,tryUnsubscribe:x,getListeners:()=>n};return g}var _b=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ab=_b(),Mb=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Db=Mb(),zb=()=>Ab||Db?k.useLayoutEffect:k.useEffect,$b=zb(),Fb=Symbol.for("react-redux-context"),Bb=typeof globalThis<"u"?globalThis:{};function jb(){if(!k.createContext)return{};const e=Bb[Fb]??=new Map;let t=e.get(k.createContext);return t||(t=k.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(k.createContext,t)),t}var mr=jb();function Wb(e){const{children:t,context:r,serverState:n,store:o}=e,a=k.useMemo(()=>{const u=Nb(o),d={store:o,subscription:u,getServerState:n?()=>n:void 0};if(process.env.NODE_ENV==="production")return d;{const{identityFunctionCheck:p="once",stabilityCheck:h="once"}=e;return Object.assign(d,{stabilityCheck:h,identityFunctionCheck:p})}},[o,n]),l=k.useMemo(()=>o.getState(),[o]);$b(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),l!==o.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,l]);const c=r||mr;return k.createElement(c.Provider,{value:a},t)}var Lb=Wb;function ia(e=mr){return function(){const r=k.useContext(e);if(process.env.NODE_ENV!=="production"&&!r)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return r}}var ld=ia();function cd(e=mr){const t=e===mr?ld:ia(e),r=()=>{const{store:n}=t();return n};return Object.assign(r,{withTypes:()=>r}),r}var Vb=cd();function Ub(e=mr){const t=e===mr?Vb:cd(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var Or=Ub(),Hb=(e,t)=>e===t;function qb(e=mr){const t=e===mr?ld:ia(e),r=(n,o={})=>{const{equalityFn:a=Hb}=typeof o=="function"?{equalityFn:o}:o;if(process.env.NODE_ENV!=="production"){if(!n)throw new Error("You must pass a selector to useSelector");if(typeof n!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof a!="function")throw new Error("You must pass a function as an equality function to useSelector")}const l=t(),{store:c,subscription:u,getServerState:d}=l,p=k.useRef(!0),h=k.useCallback({[n.name](x){const g=n(x);if(process.env.NODE_ENV!=="production"){const{devModeChecks:f={}}=typeof o=="function"?{}:o,{identityFunctionCheck:b,stabilityCheck:S}=l,{identityFunctionCheck:v,stabilityCheck:T}={stabilityCheck:S,identityFunctionCheck:b,...f};if(T==="always"||T==="once"&&p.current){const C=n(x);if(!a(g,C)){let E;try{throw new Error}catch(w){({stack:E}=w)}console.warn("Selector "+(n.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
|
|
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:
|
|
5
|
-
Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,{stack:C})}p.current&&(p.current=!1)}return g}}[n.name],[n]),y=Ob.useSyncExternalStoreWithSelector(u.addNestedSub,c.getState,d||c.getState,h,a);return k.useDebugValue(y),y};return Object.assign(r,{withTypes:()=>r}),r}var Tt=qb(),Wn={},dd;function Yb(){if(dd)return Wn;dd=1,Wn.__esModule=!0,Wn.PersistGate=void 0;var e=t(F);function t(x){if(x&&x.__esModule)return x;var g={};if(x!=null){for(var f in x)if(Object.prototype.hasOwnProperty.call(x,f)){var b=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(x,f):{};b.get||b.set?Object.defineProperty(g,f,b):g[f]=x[f]}}return g.default=x,g}function r(x){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?r=function(f){return typeof f}:r=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},r(x)}function n(x,g){if(!(x instanceof g))throw new TypeError("Cannot call a class as a function")}function o(x,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(x,b.key,b)}}function a(x,g,f){return g&&o(x.prototype,g),x}function l(x,g){return g&&(r(g)==="object"||typeof g=="function")?g:u(x)}function c(x){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(f){return f.__proto__||Object.getPrototypeOf(f)},c(x)}function u(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function d(x,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");x.prototype=Object.create(g&&g.prototype,{constructor:{value:x,writable:!0,configurable:!0}}),g&&p(x,g)}function p(x,g){return p=Object.setPrototypeOf||function(b,S){return b.__proto__=S,b},p(x,g)}function h(x,g,f){return g in x?Object.defineProperty(x,g,{value:f,enumerable:!0,configurable:!0,writable:!0}):x[g]=f,x}var y=(function(x){d(g,x);function g(){var f,b;n(this,g);for(var S=arguments.length,v=new Array(S),T=0;T<S;T++)v[T]=arguments[T];return b=l(this,(f=c(g)).call.apply(f,[this].concat(v))),h(u(b),"state",{bootstrapped:!1}),h(u(b),"_unsubscribe",void 0),h(u(b),"handlePersistorState",function(){var C=b.props.persistor,E=C.getState(),w=E.bootstrapped;w&&(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 a(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 Wn.PersistGate=y,h(y,"defaultProps",{children:null,loading:null}),Wn}var Gb=Yb();function Xe(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 Kb=typeof Symbol=="function"&&Symbol.observable||"@@observable",ud=Kb,sa=()=>Math.random().toString(36).substring(7).split("").join("."),Rb={INIT:`@@redux/INIT${sa()}`,REPLACE:`@@redux/REPLACE${sa()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${sa()}`},Pr=Rb;function Ln(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 Xb(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(Zb(e))return"date";if(Qb(e))return"error";const r=Jb(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function Jb(e){return typeof e.constructor=="function"?e.constructor.name:null}function Qb(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Zb(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function xr(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=Xb(e)),t}function aa(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?Xe(2):`Expected the root reducer to be a function. Instead, received: '${xr(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Xe(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 r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?Xe(1):`Expected the enhancer to be a function. Instead, received: '${xr(r)}'`);return r(aa)(e,t)}let n=e,o=t,a=new Map,l=a,c=0,u=!1;function d(){l===a&&(l=new Map,a.forEach((b,S)=>{l.set(S,b)}))}function p(){if(u)throw new Error(process.env.NODE_ENV==="production"?Xe(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 o}function h(b){if(typeof b!="function")throw new Error(process.env.NODE_ENV==="production"?Xe(4):`Expected the listener to be a function. Instead, received: '${xr(b)}'`);if(u)throw new Error(process.env.NODE_ENV==="production"?Xe(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 S=!0;d();const v=c++;return l.set(v,b),function(){if(S){if(u)throw new Error(process.env.NODE_ENV==="production"?Xe(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.");S=!1,d(),l.delete(v),a=null}}}function y(b){if(!Ln(b))throw new Error(process.env.NODE_ENV==="production"?Xe(7):`Actions must be plain objects. Instead, the actual type was: '${xr(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"?Xe(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"?Xe(17):`Action "type" property must be a string. Instead, the actual type was: '${xr(b.type)}'. Value was: '${b.type}' (stringified)`);if(u)throw new Error(process.env.NODE_ENV==="production"?Xe(9):"Reducers may not dispatch actions.");try{u=!0,o=n(o,b)}finally{u=!1}return(a=l).forEach(v=>{v()}),b}function x(b){if(typeof b!="function")throw new Error(process.env.NODE_ENV==="production"?Xe(10):`Expected the nextReducer to be a function. Instead, received: '${xr(b)}`);n=b,y({type:Pr.REPLACE})}function g(){const b=h;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(process.env.NODE_ENV==="production"?Xe(11):`Expected the observer to be an object. Instead, received: '${xr(S)}'`);function v(){const C=S;C.next&&C.next(p())}return v(),{unsubscribe:b(v)}},[ud](){return this}}}return y({type:Pr.INIT}),{dispatch:y,subscribe:h,getState:p,replaceReducer:x,[ud]:g}}function pd(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function ey(e,t,r,n){const o=Object.keys(t),a=r&&r.type===Pr.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.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(!Ln(e))return`The ${a} has unexpected type of "${xr(e)}". Expected argument to be an object with the following keys: "${o.join('", "')}"`;const l=Object.keys(e).filter(c=>!t.hasOwnProperty(c)&&!n[c]);if(l.forEach(c=>{n[c]=!0}),!(r&&r.type===Pr.REPLACE)&&l.length>0)return`Unexpected ${l.length>1?"keys":"key"} "${l.join('", "')}" found in ${a}. Expected to find one of the known reducer keys instead: "${o.join('", "')}". Unexpected keys will be ignored.`}function ty(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:Pr.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?Xe(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 r(void 0,{type:Pr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?Xe(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 fd(e){const t=Object.keys(e),r={};for(let l=0;l<t.length;l++){const c=t[l];process.env.NODE_ENV!=="production"&&typeof e[c]>"u"&&pd(`No reducer provided for key "${c}"`),typeof e[c]=="function"&&(r[c]=e[c])}const n=Object.keys(r);let o;process.env.NODE_ENV!=="production"&&(o={});let a;try{ty(r)}catch(l){a=l}return function(c={},u){if(a)throw a;if(process.env.NODE_ENV!=="production"){const h=ey(c,r,u,o);h&&pd(h)}let d=!1;const p={};for(let h=0;h<n.length;h++){const y=n[h],x=r[y],g=c[y],f=x(g,u);if(typeof f>"u"){const b=u&&u.type;throw new Error(process.env.NODE_ENV==="production"?Xe(14):`When called with an action of type ${b?`"${String(b)}"`:"(unknown type)"}, the slice reducer for key "${y}" 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.`)}p[y]=f,d=d||f!==g}return d=d||n.length!==Object.keys(c).length,d?p:c}}function ei(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function ry(...e){return t=>(r,n)=>{const o=t(r,n);let a=()=>{throw new Error(process.env.NODE_ENV==="production"?Xe(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const l={getState:o.getState,dispatch:(u,...d)=>a(u,...d)},c=e.map(u=>u(l));return a=ei(...c)(o.dispatch),{...o,dispatch:a}}}function hd(e){return Ln(e)&&"type"in e&&typeof e.type=="string"}var gd=Symbol.for("immer-nothing"),bd=Symbol.for("immer-draftable"),at=Symbol.for("immer-state"),ny=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 mt(e,...t){if(process.env.NODE_ENV!=="production"){const r=ny[e],n=Ir(r)?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var xt=Object,Xr=xt.getPrototypeOf,ti="constructor",ri="prototype",la="configurable",ni="enumerable",oi="writable",Vn="value",ir=e=>!!e&&!!e[at];function zt(e){return e?md(e)||si(e)||!!e[bd]||!!e[ti]?.[bd]||ai(e)||li(e):!1}var oy=xt[ri][ti].toString(),yd=new WeakMap;function md(e){if(!e||!da(e))return!1;const t=Xr(e);if(t===null||t===xt[ri])return!0;const r=xt.hasOwnProperty.call(t,ti)&&t[ti];if(r===Object)return!0;if(!Ir(r))return!1;let n=yd.get(r);return n===void 0&&(n=Function.toString.call(r),yd.set(r,n)),n===oy}function Un(e,t,r=!0){Hn(e)===0?(r?Reflect.ownKeys(e):xt.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((n,o)=>t(o,n,e))}function Hn(e){const t=e[at];return t?t.type_:si(e)?1:ai(e)?2:li(e)?3:0}var xd=(e,t,r=Hn(e))=>r===2?e.has(t):xt[ri].hasOwnProperty.call(e,t),ca=(e,t,r=Hn(e))=>r===2?e.get(t):e[t],ii=(e,t,r,n=Hn(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function iy(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var si=Array.isArray,ai=e=>e instanceof Map,li=e=>e instanceof Set,da=e=>typeof e=="object",Ir=e=>typeof e=="function",ua=e=>typeof e=="boolean",sr=e=>e.copy_||e.base_,pa=e=>e.modified_?e.copy_:e.base_;function fa(e,t){if(ai(e))return new Map(e);if(li(e))return new Set(e);if(si(e))return Array[ri].slice.call(e);const r=md(e);if(t===!0||t==="class_only"&&!r){const n=xt.getOwnPropertyDescriptors(e);delete n[at];let o=Reflect.ownKeys(n);for(let a=0;a<o.length;a++){const l=o[a],c=n[l];c[oi]===!1&&(c[oi]=!0,c[la]=!0),(c.get||c.set)&&(n[l]={[la]:!0,[oi]:!0,[ni]:c[ni],[Vn]:e[l]})}return xt.create(Xr(e),n)}else{const n=Xr(e);if(n!==null&&r)return{...e};const o=xt.create(n);return xt.assign(o,e)}}function ha(e,t=!1){return di(e)||ir(e)||!zt(e)||(Hn(e)>1&&xt.defineProperties(e,{set:ci,add:ci,clear:ci,delete:ci}),xt.freeze(e),t&&Un(e,(r,n)=>{ha(n,!0)},!1)),e}function sy(){mt(2)}var ci={[Vn]:sy};function di(e){return e===null||!da(e)?!0:xt.isFrozen(e)}var ui="MapSet",ga="Patches",vd={};function Jr(e){const t=vd[e];return t||mt(0,e),t}var ay=e=>!!vd[e],qn,Sd=()=>qn,ly=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ay(ui)?Jr(ui):void 0});function wd(e,t){t&&(e.patchPlugin_=Jr(ga),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ba(e){ya(e),e.drafts_.forEach(cy),e.drafts_=null}function ya(e){e===qn&&(qn=e.parent_)}var Cd=e=>qn=ly(qn,e);function cy(e){const t=e[at];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Ed(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[at].modified_&&(ba(t),mt(4)),zt(e)&&(e=Td(t,e));const{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(r[at].base_,e,t)}else e=Td(t,r);return dy(t,e,!0),ba(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==gd?e:void 0}function Td(e,t){if(di(t))return t;const r=t[at];if(!r)return ma(t,e.handledSet_,e);if(!pi(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);Pd(r,e)}return r.copy_}function dy(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ha(t,r)}function kd(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var pi=(e,t)=>e.scope_===t,uy=[];function Od(e,t,r,n){const o=sr(e),a=e.type_;if(n!==void 0&&ca(o,n,a)===t){ii(o,n,r,a);return}if(!e.draftLocations_){const c=e.draftLocations_=new Map;Un(o,(u,d)=>{if(ir(d)){const p=c.get(d)||[];p.push(u),c.set(d,p)}})}const l=e.draftLocations_.get(t)??uy;for(const c of l)ii(o,c,r,a)}function py(e,t,r){e.callbacks_.push(function(o){const a=t;if(!a||!pi(a,o))return;o.mapSetPlugin_?.fixSetContents(a);const l=pa(a);Od(e,a.draft_??a,l,r),Pd(a,o)})}function Pd(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||(e.assigned_?.size??0)>0)){const{patchPlugin_:n}=t;if(n){const o=n.getPath(e);o&&n.generatePatches_(e,o,t)}kd(e)}}function fy(e,t,r){const{scope_:n}=e;if(ir(r)){const o=r[at];pi(o,n)&&o.callbacks_.push(function(){fi(e);const l=pa(o);Od(e,r,l,t)})}else zt(r)&&e.callbacks_.push(function(){const a=sr(e);ca(a,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&ma(ca(e.copy_,t,e.type_),n.handledSet_,n)})}function ma(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||ir(e)||t.has(e)||!zt(e)||di(e)||(t.add(e),Un(e,(n,o)=>{if(ir(o)){const a=o[at];if(pi(a,r)){const l=pa(a);ii(e,n,l,e.type_),kd(a)}}else zt(o)&&ma(o,t,r)})),e}function hy(e,t){const r=si(e),n={type_:r?1:0,scope_:t?t.scope_:Sd(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let o=n,a=xa;r&&(o=[n],a=Yn);const{revoke:l,proxy:c}=Proxy.revocable(o,a);return n.draft_=c,n.revoke_=l,[c,n]}var xa={get(e,t){if(t===at)return e;const r=sr(e);if(!xd(r,t,e.type_))return gy(e,r,t);const n=r[t];if(e.finalized_||!zt(n))return n;if(n===va(e.base_,t)){fi(e);const o=e.type_===1?+t:t,a=wa(e.scope_,n,e,o);return e.copy_[o]=a}return n},has(e,t){return t in sr(e)},ownKeys(e){return Reflect.ownKeys(sr(e))},set(e,t,r){const n=Id(sr(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=va(sr(e),t),a=o?.[at];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(iy(r,o)&&(r!==void 0||xd(e.base_,t,e.type_)))return!0;fi(e),Sa(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),fy(e,t,r)),!0},deleteProperty(e,t){return fi(e),va(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Sa(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=sr(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[oi]:!0,[la]:e.type_!==1||t!=="length",[ni]:n[ni],[Vn]:r[t]}},defineProperty(){mt(11)},getPrototypeOf(e){return Xr(e.base_)},setPrototypeOf(){mt(12)}},Yn={};Un(xa,(e,t)=>{Yn[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}),Yn.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&mt(13),Yn.set.call(this,e,t,void 0)},Yn.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&mt(14),xa.set.call(this,e[0],t,r,e[0])};function va(e,t){const r=e[at];return(r?sr(r):e)[t]}function gy(e,t,r){const n=Id(t,r);return n?Vn in n?n[Vn]:n.get?.call(e.draft_):void 0}function Id(e,t){if(!(t in e))return;let r=Xr(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Xr(r)}}function Sa(e){e.modified_||(e.modified_=!0,e.parent_&&Sa(e.parent_))}function fi(e){e.copy_||(e.assigned_=new Map,e.copy_=fa(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var by=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(Ir(t)&&!Ir(r)){const a=r;r=t;const l=this;return function(u=a,...d){return l.produce(u,p=>r.call(this,p,...d))}}Ir(r)||mt(6),n!==void 0&&!Ir(n)&&mt(7);let o;if(zt(t)){const a=Cd(this),l=wa(a,t,void 0);let c=!0;try{o=r(l),c=!1}finally{c?ba(a):ya(a)}return wd(a,n),Ed(o,a)}else if(!t||!da(t)){if(o=r(t),o===void 0&&(o=t),o===gd&&(o=void 0),this.autoFreeze_&&ha(o,!0),n){const a=[],l=[];Jr(ga).generateReplacementPatches_(t,o,{patches_:a,inversePatches_:l}),n(a,l)}return o}else mt(1,t)},this.produceWithPatches=(t,r)=>{if(Ir(t))return(l,...c)=>this.produceWithPatches(l,u=>t(u,...c));let n,o;return[this.produce(t,r,(l,c)=>{n=l,o=c}),n,o]},ua(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),ua(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),ua(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){zt(e)||mt(8),ir(e)&&(e=yy(e));const t=Cd(this),r=wa(t,e,void 0);return r[at].isManual_=!0,ya(t),r}finishDraft(e,t){const r=e&&e[at];(!r||!r.isManual_)&&mt(9);const{scope_:n}=r;return wd(n,t),Ed(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));const n=Jr(ga).applyPatches_;return ir(e)?n(e,t):this.produce(e,o=>n(o,t))}};function wa(e,t,r,n){const[o,a]=ai(t)?Jr(ui).proxyMap_(t,r):li(t)?Jr(ui).proxySet_(t,r):hy(t,r);return(r?.scope_??Sd()).drafts_.push(o),a.callbacks_=r?.callbacks_??[],a.key_=n,r&&n!==void 0?py(r,a,n):a.callbacks_.push(function(u){u.mapSetPlugin_?.fixSetContents(a);const{patchPlugin_:d}=u;a.modified_&&d&&d.generatePatches_(a,[],u)}),o}function yy(e){return ir(e)||mt(10,e),Nd(e)}function Nd(e){if(!zt(e)||di(e))return e;const t=e[at];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=fa(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=fa(e,!0);return Un(r,(o,a)=>{ii(r,o,Nd(a))},n),t&&(t.finalized_=!1),r}var my=new by,_d=my.produce,xy=(e,t,r)=>{if(t.length===1&&t[0]===r){let n=!1;try{const o={};e(o)===o&&(n=!0)}catch{}if(n){let o;try{throw new Error}catch(a){({stack:o}=a)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
3
|
+
`+('Please change the parent <Route path="'+b+'"> to <Route ')+('path="'+(b==="/"?"*":b+"/*")+'">.'))}let h=yt(),v;if(t){var g;let b=typeof t=="string"?xn(t):t;p==="/"||(g=b.pathname)!=null&&g.startsWith(p)||(process.env.NODE_ENV!=="production"?ve(!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 "'+b.pathname+'" was given in the `location` prop.')):ve(!1)),v=b}else v=h;let y=v.pathname||"/",f=y;if(p!=="/"){let b=p.replace(/^\//,"").split("/");f="/"+y.replace(/^\//,"").split("/").slice(b.length).join("/")}let m=Ey(e,{pathname:f});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&Dt(u||m!=null,'No routes matched location "'+v.pathname+v.search+v.hash+'" '),process.env.NODE_ENV!=="production"&&Dt(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,'Matched leaf route at location "'+v.pathname+v.search+v.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=rm(m&&m.map(b=>Object.assign({},b,{params:Object.assign({},c,b.params),pathname:mr([p,o.encodeLocation?o.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?p:mr([p,o.encodeLocation?o.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),s,r,n);return t&&x?T.createElement(eo.Provider,{value:{location:Qn({pathname:"/",search:"",hash:"",state:null,key:"default"},v),navigationType:zr.Pop}},x):x}function Qy(){let e=am(),t=Ry(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},s={padding:"2px 4px",backgroundColor:n},l=null;return process.env.NODE_ENV!=="production"&&(console.error("Error handled by React Router default ErrorBoundary:",e),l=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:s},"ErrorBoundary")," or"," ",T.createElement("code",{style:s},"errorElement")," prop on your route."))),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},t),r?T.createElement("pre",{style:o},r):null,l)}const Zy=T.createElement(Qy,null);class em extends T.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,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?T.createElement(br.Provider,{value:this.props.routeContext},T.createElement(Ma.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function tm(e){let{routeContext:t,match:r,children:n}=e,o=T.useContext(Zn);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),T.createElement(br.Provider,{value:t},n)}function rm(e,t,r,n){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var s;if(!r)return null;if(r.errors)e=r.matches;else if((s=n)!=null&&s.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let l=e,c=(o=r)==null?void 0:o.errors;if(c!=null){let u=l.findIndex(h=>h.route.id&&c?.[h.route.id]!==void 0);u>=0||(process.env.NODE_ENV!=="production"?ve(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(c).join(",")):ve(!1)),l=l.slice(0,Math.min(l.length,u+1))}let d=!1,p=-1;if(r&&n&&n.v7_partialHydration)for(let u=0;u<l.length;u++){let h=l[u];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(p=u),h.route.id){let{loaderData:v,errors:g}=r,y=h.route.loader&&v[h.route.id]===void 0&&(!g||g[h.route.id]===void 0);if(h.route.lazy||y){d=!0,p>=0?l=l.slice(0,p+1):l=[l[0]];break}}}return l.reduceRight((u,h,v)=>{let g,y=!1,f=null,m=null;r&&(g=c&&h.route.id?c[h.route.id]:void 0,f=h.route.errorElement||Zy,d&&(p<0&&v===0?(Bd("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,m=null):p===v&&(y=!0,m=h.route.hydrateFallbackElement||null)));let x=t.concat(l.slice(0,v+1)),b=()=>{let w;return g?w=f:y?w=m:h.route.Component?w=T.createElement(h.route.Component,null):h.route.element?w=h.route.element:w=u,T.createElement(tm,{match:h,routeContext:{outlet:u,matches:x,isDataRoute:r!=null},children:w})};return r&&(h.route.ErrorBoundary||h.route.errorElement||v===0)?T.createElement(em,{location:r.location,revalidation:r.revalidation,component:f,error:g,children:b(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):b()},null)}var zd=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(zd||{}),no=(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})(no||{});function $a(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function nm(e){let t=T.useContext(Zn);return t||(process.env.NODE_ENV!=="production"?ve(!1,$a(e)):ve(!1)),t}function om(e){let t=T.useContext(Aa);return t||(process.env.NODE_ENV!=="production"?ve(!1,$a(e)):ve(!1)),t}function im(e){let t=T.useContext(br);return t||(process.env.NODE_ENV!=="production"?ve(!1,$a(e)):ve(!1)),t}function Da(e){let t=im(e),r=t.matches[t.matches.length-1];return r.route.id||(process.env.NODE_ENV!=="production"?ve(!1,e+' can only be used on routes that contain a unique "id"'):ve(!1)),r.route.id}function sm(){return Da(no.UseRouteId)}function am(){var e;let t=T.useContext(Ma),r=om(no.UseRouteError),n=Da(no.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function lm(){let{router:e}=nm(zd.UseNavigateStable),t=Da(no.UseNavigateStable),r=T.useRef(!1);return Fd(()=>{r.current=!0}),T.useCallback(function(o,s){s===void 0&&(s={}),process.env.NODE_ENV!=="production"&&Dt(r.current,Dd),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Qn({fromRouteId:t},s)))},[e,t])}const jd={};function Bd(e,t,r){!t&&!jd[e]&&(jd[e]=!0,process.env.NODE_ENV!=="production"&&Dt(!1,r))}const Ld={};function cm(e,t){process.env.NODE_ENV!=="production"&&!Ld[t]&&(Ld[t]=!0,console.warn(t))}const Wd=(e,t,r)=>cm(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+r+"."));function dm(e,t){e?.v7_startTransition===void 0&&Wd("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&&Wd("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function nr(e){process.env.NODE_ENV!=="production"?ve(!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>."):ve(!1)}function pm(e){let{basename:t="/",children:r=null,location:n,navigationType:o=zr.Pop,navigator:s,static:l=!1,future:c}=e;to()&&(process.env.NODE_ENV!=="production"?ve(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):ve(!1));let d=t.replace(/^\/*/,"/"),p=T.useMemo(()=>({basename:d,navigator:s,static:l,future:Qn({v7_relativeSplatPath:!1},c)}),[d,c,s,l]);typeof n=="string"&&(n=xn(n));let{pathname:u="/",search:h="",hash:v="",state:g=null,key:y="default"}=n,f=T.useMemo(()=>{let m=jr(u,d);return m==null?null:{location:{pathname:m,search:h,hash:v,state:g,key:y},navigationType:o}},[d,u,h,v,g,y,o]);return process.env.NODE_ENV!=="production"&&Dt(f!=null,'<Router basename="'+d+'"> is not able to match the URL '+('"'+u+h+v+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),f==null?null:T.createElement(qt.Provider,{value:p},T.createElement(eo.Provider,{children:r,value:f}))}function um(e){let{children:t,location:r}=e;return Xy(Fa(t),r)}new Promise(()=>{});function Fa(e,t){t===void 0&&(t=[]);let r=[];return T.Children.forEach(e,(n,o)=>{if(!T.isValidElement(n))return;let s=[...t,o];if(n.type===T.Fragment){r.push.apply(r,Fa(n.props.children,s));return}n.type!==nr&&(process.env.NODE_ENV!=="production"?ve(!1,"["+(typeof n.type=="string"?n.type:n.type.name)+"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>"):ve(!1)),!n.props.index||!n.props.children||(process.env.NODE_ENV!=="production"?ve(!1,"An index route cannot have child routes."):ve(!1));let l={id:n.props.id||s.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(l.children=Fa(n.props.children,s)),r.push(l)}),r}function Sn(){return Sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sn.apply(this,arguments)}function za(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s<n.length;s++)o=n[s],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}const Pi="get",Ii="application/x-www-form-urlencoded";function Ni(e){return e!=null&&typeof e.tagName=="string"}function fm(e){return Ni(e)&&e.tagName.toLowerCase()==="button"}function hm(e){return Ni(e)&&e.tagName.toLowerCase()==="form"}function gm(e){return Ni(e)&&e.tagName.toLowerCase()==="input"}function ym(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function mm(e,t){return e.button===0&&(!t||t==="_self")&&!ym(e)}function ja(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(o=>[r,o]):[[r,n]])},[]))}function bm(e,t){let r=ja(e);return t&&t.forEach((n,o)=>{r.has(o)||t.getAll(o).forEach(s=>{r.append(o,s)})}),r}let _i=null;function vm(){if(_i===null)try{new FormData(document.createElement("form"),0),_i=!1}catch{_i=!0}return _i}const xm=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ba(e){return e!=null&&!xm.has(e)?(process.env.NODE_ENV!=="production"&&Dt(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+Ii+'"')),null):e}function Sm(e,t){let r,n,o,s,l;if(hm(e)){let c=e.getAttribute("action");n=c?jr(c,t):null,r=e.getAttribute("method")||Pi,o=Ba(e.getAttribute("enctype"))||Ii,s=new FormData(e)}else if(fm(e)||gm(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(n=d?jr(d,t):null,r=e.getAttribute("formmethod")||c.getAttribute("method")||Pi,o=Ba(e.getAttribute("formenctype"))||Ba(c.getAttribute("enctype"))||Ii,s=new FormData(c,e),!vm()){let{name:p,type:u,value:h}=e;if(u==="image"){let v=p?p+".":"";s.append(v+"x","0"),s.append(v+"y","0")}else p&&s.append(p,h)}}else{if(Ni(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Pi,n=null,o=Ii,l=e}return s&&o==="text/plain"&&(l=s,s=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:s,body:l}}const wm=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Cm=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],Em=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],Tm="6";try{window.__reactRouterVersion=Tm}catch{}const Vd=T.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(Vd.displayName="ViewTransition");const Om=T.createContext(new Map);process.env.NODE_ENV!=="production"&&(Om.displayName="Fetchers");const Ud=T["startTransition"];function km(e){let{basename:t,children:r,future:n,window:o}=e,s=T.useRef();s.current==null&&(s.current=Sy({window:o,v5Compat:!0}));let l=s.current,[c,d]=T.useState({action:l.action,location:l.location}),{v7_startTransition:p}=n||{},u=T.useCallback(h=>{p&&Ud?Ud(()=>d(h)):d(h)},[d,p]);return T.useLayoutEffect(()=>l.listen(u),[l,u]),T.useEffect(()=>dm(n),[n]),T.createElement(pm,{basename:t,children:r,location:c.location,navigationType:c.action,navigator:l,future:n})}process.env.NODE_ENV;const Pm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Im=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,oo=T.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:s,replace:l,state:c,target:d,to:p,preventScrollReset:u,viewTransition:h}=t,v=za(t,wm),{basename:g}=T.useContext(qt),y,f=!1;if(typeof p=="string"&&Im.test(p)&&(y=p,Pm))try{let w=new URL(window.location.href),S=p.startsWith("//")?new URL(w.protocol+p):new URL(p),C=jr(S.pathname,g);S.origin===w.origin&&C!=null?p=C+S.search+S.hash:f=!0}catch{process.env.NODE_ENV!=="production"&&Dt(!1,'<Link to="'+p+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let m=Gy(p,{relative:o}),x=Mm(p,{replace:l,state:c,target:d,preventScrollReset:u,relative:o,viewTransition:h});function b(w){n&&n(w),w.defaultPrevented||x(w)}return T.createElement("a",Sn({},v,{href:y||m,onClick:f||s?n:b,ref:r,target:d}))});process.env.NODE_ENV!=="production"&&(oo.displayName="Link");const Nm=T.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:o=!1,className:s="",end:l=!1,style:c,to:d,viewTransition:p,children:u}=t,h=za(t,Cm),v=ro(d,{relative:h.relative}),g=yt(),y=T.useContext(Aa),{navigator:f,basename:m}=T.useContext(qt),x=y!=null&&Lm(v)&&p===!0,b=f.encodeLocation?f.encodeLocation(v).pathname:v.pathname,w=g.pathname,S=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;o||(w=w.toLowerCase(),S=S?S.toLowerCase():null,b=b.toLowerCase()),S&&m&&(S=jr(S,m)||S);const C=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let O=w===b||!l&&w.startsWith(b)&&w.charAt(C)==="/",I=S!=null&&(S===b||!l&&S.startsWith(b)&&S.charAt(b.length)==="/"),F={isActive:O,isPending:I,isTransitioning:x},D=O?n:void 0,L;typeof s=="function"?L=s(F):L=[s,O?"active":null,I?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let z=typeof c=="function"?c(F):c;return T.createElement(oo,Sn({},h,{"aria-current":D,className:L,ref:r,style:z,to:d,viewTransition:p}),typeof u=="function"?u(F):u)});process.env.NODE_ENV!=="production"&&(Nm.displayName="NavLink");const _m=T.forwardRef((e,t)=>{let{fetcherKey:r,navigate:n,reloadDocument:o,replace:s,state:l,method:c=Pi,action:d,onSubmit:p,relative:u,preventScrollReset:h,viewTransition:v}=e,g=za(e,Em),y=jm(),f=Bm(d,{relative:u}),m=c.toLowerCase()==="get"?"get":"post",x=b=>{if(p&&p(b),b.defaultPrevented)return;b.preventDefault();let w=b.nativeEvent.submitter,S=w?.getAttribute("formmethod")||c;y(w||b.currentTarget,{fetcherKey:r,method:S,navigate:n,replace:s,state:l,relative:u,preventScrollReset:h,viewTransition:v})};return T.createElement("form",Sn({ref:t,method:m,action:f,onSubmit:o?p:x},g))});process.env.NODE_ENV!=="production"&&(_m.displayName="Form"),process.env.NODE_ENV;var Ai;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ai||(Ai={}));var Hd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Hd||(Hd={}));function Am(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function Rd(e){let t=T.useContext(Zn);return t||(process.env.NODE_ENV!=="production"?ve(!1,Am(e)):ve(!1)),t}function Mm(e,t){let{target:r,replace:n,state:o,preventScrollReset:s,relative:l,viewTransition:c}=t===void 0?{}:t,d=et(),p=yt(),u=ro(e,{relative:l});return T.useCallback(h=>{if(mm(h,r)){h.preventDefault();let v=n!==void 0?n:Jn(p)===Jn(u);d(e,{replace:v,state:o,preventScrollReset:s,relative:l,viewTransition:c})}},[p,d,u,n,o,r,e,s,l,c])}function $m(e){process.env.NODE_ENV!=="production"&&Dt(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=T.useRef(ja(e)),r=T.useRef(!1),n=yt(),o=T.useMemo(()=>bm(n.search,r.current?null:t.current),[n.search]),s=et(),l=T.useCallback((c,d)=>{const p=ja(typeof c=="function"?c(o):c);r.current=!0,s("?"+p,d)},[s,o]);return[o,l]}function Dm(){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 Fm=0,zm=()=>"__"+String(++Fm)+"__";function jm(){let{router:e}=Rd(Ai.UseSubmit),{basename:t}=T.useContext(qt),r=sm();return T.useCallback(function(n,o){o===void 0&&(o={}),Dm();let{action:s,method:l,encType:c,formData:d,body:p}=Sm(n,t);if(o.navigate===!1){let u=o.fetcherKey||zm();e.fetch(u,r,o.action||s,{preventScrollReset:o.preventScrollReset,formData:d,body:p,formMethod:o.method||l,formEncType:o.encType||c,flushSync:o.flushSync})}else e.navigate(o.action||s,{preventScrollReset:o.preventScrollReset,formData:d,body:p,formMethod:o.method||l,formEncType:o.encType||c,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,r])}function Bm(e,t){let{relative:r}=t===void 0?{}:t,{basename:n}=T.useContext(qt),o=T.useContext(br);o||(process.env.NODE_ENV!=="production"?ve(!1,"useFormAction must be used inside a RouteContext"):ve(!1));let[s]=o.matches.slice(-1),l=Sn({},ro(e||".",{relative:r})),c=yt();if(e==null){l.search=c.search;let d=new URLSearchParams(l.search),p=d.getAll("index");if(p.some(h=>h==="")){d.delete("index"),p.filter(v=>v).forEach(v=>d.append("index",v));let h=d.toString();l.search=h?"?"+h:""}}return(!e||e===".")&&s.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:mr([n,l.pathname])),Jn(l)}function Lm(e,t){t===void 0&&(t={});let r=T.useContext(Vd);r==null&&(process.env.NODE_ENV!=="production"?ve(!1,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):ve(!1));let{basename:n}=Rd(Ai.useViewTransitionState),o=ro(e,{relative:t.relative});if(!r.isTransitioning)return!1;let s=jr(r.currentLocation.pathname,n)||r.currentLocation.pathname,l=jr(r.nextLocation.pathname,n)||r.nextLocation.pathname;return Na(o.pathname,l)!=null||Na(o.pathname,s)!=null}function qd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mi={exports:{}},La={};var Yd;function Wm(){if(Yd)return La;Yd=1;var e=$;function t(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,o=e.useRef,s=e.useEffect,l=e.useMemo,c=e.useDebugValue;return La.useSyncExternalStoreWithSelector=function(d,p,u,h,v){var g=o(null);if(g.current===null){var y={hasValue:!1,value:null};g.current=y}else y=g.current;g=l(function(){function m(C){if(!x){if(x=!0,b=C,C=h(C),v!==void 0&&y.hasValue){var O=y.value;if(v(O,C))return w=O}return w=C}if(O=w,r(b,C))return O;var I=h(C);return v!==void 0&&v(O,I)?(b=C,O):(b=C,w=I)}var x=!1,b,w,S=u===void 0?null:u;return[function(){return m(p())},S===null?void 0:function(){return m(S())}]},[p,u,h,v]);var f=n(d,g[0],g[1]);return s(function(){y.hasValue=!0,y.value=f},[f]),c(f),f},La}var Wa={};var Gd;function Vm(){return Gd||(Gd=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=$,r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,o=t.useRef,s=t.useEffect,l=t.useMemo,c=t.useDebugValue;Wa.useSyncExternalStoreWithSelector=function(d,p,u,h,v){var g=o(null);if(g.current===null){var y={hasValue:!1,value:null};g.current=y}else y=g.current;g=l(function(){function m(C){if(!x){if(x=!0,b=C,C=h(C),v!==void 0&&y.hasValue){var O=y.value;if(v(O,C))return w=O}return w=C}if(O=w,r(b,C))return O;var I=h(C);return v!==void 0&&v(O,I)?(b=C,O):(b=C,w=I)}var x=!1,b,w,S=u===void 0?null:u;return[function(){return m(p())},S===null?void 0:function(){return m(S())}]},[p,u,h,v]);var f=n(d,g[0],g[1]);return s(function(){y.hasValue=!0,y.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())})()),Wa}var Kd;function Um(){return Kd||(Kd=1,process.env.NODE_ENV==="production"?Mi.exports=Wm():Mi.exports=Vm()),Mi.exports}var Hm=Um();function Rm(e){e()}function qm(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Rm(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const o=t={callback:r,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!n||e===null||(n=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var Xd={notify(){},get:()=>[]};function Ym(e,t){let r,n=Xd,o=0,s=!1;function l(f){u();const m=n.subscribe(f);let x=!1;return()=>{x||(x=!0,m(),h())}}function c(){n.notify()}function d(){y.onStateChange&&y.onStateChange()}function p(){return s}function u(){o++,r||(r=e.subscribe(d),n=qm())}function h(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=Xd)}function v(){s||(s=!0,u())}function g(){s&&(s=!1,h())}const y={addNestedSub:l,notifyNestedSubs:c,handleChangeWrapper:d,isSubscribed:p,trySubscribe:v,tryUnsubscribe:g,getListeners:()=>n};return y}var Gm=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Km=Gm(),Xm=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Jm=Xm(),Qm=()=>Km||Jm?T.useLayoutEffect:T.useEffect,Zm=Qm(),eb=Symbol.for("react-redux-context"),tb=typeof globalThis<"u"?globalThis:{};function rb(){if(!T.createContext)return{};const e=tb[eb]??=new Map;let t=e.get(T.createContext);return t||(t=T.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(T.createContext,t)),t}var Br=rb();function nb(e){const{children:t,context:r,serverState:n,store:o}=e,s=T.useMemo(()=>{const d=Ym(o),p={store:o,subscription:d,getServerState:n?()=>n: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})}},[o,n]),l=T.useMemo(()=>o.getState(),[o]);Zm(()=>{const{subscription:d}=s;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),l!==o.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[s,l]);const c=r||Br;return T.createElement(c.Provider,{value:s},t)}var ob=nb;function Va(e=Br){return function(){const r=T.useContext(e);if(process.env.NODE_ENV!=="production"&&!r)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return r}}var Jd=Va();function Qd(e=Br){const t=e===Br?Jd:Va(e),r=()=>{const{store:n}=t();return n};return Object.assign(r,{withTypes:()=>r}),r}var ib=Qd();function sb(e=Br){const t=e===Br?ib:Qd(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var Ft=sb(),ab=(e,t)=>e===t;function lb(e=Br){const t=e===Br?Jd:Va(e),r=(n,o={})=>{const{equalityFn:s=ab}=typeof o=="function"?{equalityFn:o}:o;if(process.env.NODE_ENV!=="production"){if(!n)throw new Error("You must pass a selector to useSelector");if(typeof n!="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 l=t(),{store:c,subscription:d,getServerState:p}=l,u=T.useRef(!0),h=T.useCallback({[n.name](g){const y=n(g);if(process.env.NODE_ENV!=="production"){const{devModeChecks:f={}}=typeof o=="function"?{}:o,{identityFunctionCheck:m,stabilityCheck:x}=l,{identityFunctionCheck:b,stabilityCheck:w}={stabilityCheck:x,identityFunctionCheck:m,...f};if(w==="always"||w==="once"&&u.current){const S=n(g);if(!s(y,S)){let C;try{throw new Error}catch(O){({stack:C}=O)}console.warn("Selector "+(n.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
|
|
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:g,selected:y,selected2:S,stack:C})}}if((b==="always"||b==="once"&&u.current)&&y===g){let S;try{throw new Error}catch(C){({stack:S}=C)}console.warn("Selector "+(n.name||"unknown")+` returned the root state when called. This can lead to unnecessary rerenders.
|
|
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 y}}[n.name],[n]),v=Hm.useSyncExternalStoreWithSelector(d.addNestedSub,c.getState,p||c.getState,h,s);return T.useDebugValue(v),v};return Object.assign(r,{withTypes:()=>r}),r}var Ae=lb(),io={},Zd;function cb(){if(Zd)return io;Zd=1,io.__esModule=!0,io.PersistGate=void 0;var e=t($);function t(g){if(g&&g.__esModule)return g;var y={};if(g!=null){for(var f in g)if(Object.prototype.hasOwnProperty.call(g,f)){var m=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(g,f):{};m.get||m.set?Object.defineProperty(y,f,m):y[f]=g[f]}}return y.default=g,y}function r(g){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?r=function(f){return typeof f}:r=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},r(g)}function n(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function o(g,y){for(var f=0;f<y.length;f++){var m=y[f];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(g,m.key,m)}}function s(g,y,f){return y&&o(g.prototype,y),g}function l(g,y){return y&&(r(y)==="object"||typeof y=="function")?y:d(g)}function c(g){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(f){return f.__proto__||Object.getPrototypeOf(f)},c(g)}function d(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function p(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),y&&u(g,y)}function u(g,y){return u=Object.setPrototypeOf||function(m,x){return m.__proto__=x,m},u(g,y)}function h(g,y,f){return y in g?Object.defineProperty(g,y,{value:f,enumerable:!0,configurable:!0,writable:!0}):g[y]=f,g}var v=(function(g){p(y,g);function y(){var f,m;n(this,y);for(var x=arguments.length,b=new Array(x),w=0;w<x;w++)b[w]=arguments[w];return m=l(this,(f=c(y)).call.apply(f,[this].concat(b))),h(d(m),"state",{bootstrapped:!1}),h(d(m),"_unsubscribe",void 0),h(d(m),"handlePersistorState",function(){var S=m.props.persistor,C=S.getState(),O=C.bootstrapped;O&&(m.props.onBeforeLift?Promise.resolve(m.props.onBeforeLift()).finally(function(){return m.setState({bootstrapped:!0})}):m.setState({bootstrapped:!0}),m._unsubscribe&&m._unsubscribe())}),m}return s(y,[{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}}]),y})(e.PureComponent);return io.PersistGate=v,h(v,"defaultProps",{children:null,loading:null}),io}var db=cb();function it(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 pb=typeof Symbol=="function"&&Symbol.observable||"@@observable",ep=pb,Ua=()=>Math.random().toString(36).substring(7).split("").join("."),ub={INIT:`@@redux/INIT${Ua()}`,REPLACE:`@@redux/REPLACE${Ua()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ua()}`},Jr=ub;function so(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 fb(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(yb(e))return"date";if(gb(e))return"error";const r=hb(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function hb(e){return typeof e.constructor=="function"?e.constructor.name:null}function gb(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function yb(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Lr(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=fb(e)),t}function Ha(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?it(2):`Expected the root reducer to be a function. Instead, received: '${Lr(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?it(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 r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?it(1):`Expected the enhancer to be a function. Instead, received: '${Lr(r)}'`);return r(Ha)(e,t)}let n=e,o=t,s=new Map,l=s,c=0,d=!1;function p(){l===s&&(l=new Map,s.forEach((m,x)=>{l.set(x,m)}))}function u(){if(d)throw new Error(process.env.NODE_ENV==="production"?it(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 o}function h(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?it(4):`Expected the listener to be a function. Instead, received: '${Lr(m)}'`);if(d)throw new Error(process.env.NODE_ENV==="production"?it(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 b=c++;return l.set(b,m),function(){if(x){if(d)throw new Error(process.env.NODE_ENV==="production"?it(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(),l.delete(b),s=null}}}function v(m){if(!so(m))throw new Error(process.env.NODE_ENV==="production"?it(7):`Actions must be plain objects. Instead, the actual type was: '${Lr(m)}'. 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 m.type>"u")throw new Error(process.env.NODE_ENV==="production"?it(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof m.type!="string")throw new Error(process.env.NODE_ENV==="production"?it(17):`Action "type" property must be a string. Instead, the actual type was: '${Lr(m.type)}'. Value was: '${m.type}' (stringified)`);if(d)throw new Error(process.env.NODE_ENV==="production"?it(9):"Reducers may not dispatch actions.");try{d=!0,o=n(o,m)}finally{d=!1}return(s=l).forEach(b=>{b()}),m}function g(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?it(10):`Expected the nextReducer to be a function. Instead, received: '${Lr(m)}`);n=m,v({type:Jr.REPLACE})}function y(){const m=h;return{subscribe(x){if(typeof x!="object"||x===null)throw new Error(process.env.NODE_ENV==="production"?it(11):`Expected the observer to be an object. Instead, received: '${Lr(x)}'`);function b(){const S=x;S.next&&S.next(u())}return b(),{unsubscribe:m(b)}},[ep](){return this}}}return v({type:Jr.INIT}),{dispatch:v,subscribe:h,getState:u,replaceReducer:g,[ep]:y}}function tp(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function mb(e,t,r,n){const o=Object.keys(t),s=r&&r.type===Jr.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.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(!so(e))return`The ${s} has unexpected type of "${Lr(e)}". Expected argument to be an object with the following keys: "${o.join('", "')}"`;const l=Object.keys(e).filter(c=>!t.hasOwnProperty(c)&&!n[c]);if(l.forEach(c=>{n[c]=!0}),!(r&&r.type===Jr.REPLACE)&&l.length>0)return`Unexpected ${l.length>1?"keys":"key"} "${l.join('", "')}" found in ${s}. Expected to find one of the known reducer keys instead: "${o.join('", "')}". Unexpected keys will be ignored.`}function bb(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:Jr.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?it(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 r(void 0,{type:Jr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?it(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Jr.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 rp(e){const t=Object.keys(e),r={};for(let l=0;l<t.length;l++){const c=t[l];process.env.NODE_ENV!=="production"&&typeof e[c]>"u"&&tp(`No reducer provided for key "${c}"`),typeof e[c]=="function"&&(r[c]=e[c])}const n=Object.keys(r);let o;process.env.NODE_ENV!=="production"&&(o={});let s;try{bb(r)}catch(l){s=l}return function(c={},d){if(s)throw s;if(process.env.NODE_ENV!=="production"){const h=mb(c,r,d,o);h&&tp(h)}let p=!1;const u={};for(let h=0;h<n.length;h++){const v=n[h],g=r[v],y=c[v],f=g(y,d);if(typeof f>"u"){const m=d&&d.type;throw new Error(process.env.NODE_ENV==="production"?it(14):`When called with an action of type ${m?`"${String(m)}"`:"(unknown type)"}, the slice reducer for key "${v}" 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[v]=f,p=p||f!==y}return p=p||n.length!==Object.keys(c).length,p?u:c}}function $i(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function vb(...e){return t=>(r,n)=>{const o=t(r,n);let s=()=>{throw new Error(process.env.NODE_ENV==="production"?it(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const l={getState:o.getState,dispatch:(d,...p)=>s(d,...p)},c=e.map(d=>d(l));return s=$i(...c)(o.dispatch),{...o,dispatch:s}}}function np(e){return so(e)&&"type"in e&&typeof e.type=="string"}var op=Symbol.for("immer-nothing"),ip=Symbol.for("immer-draftable"),mt=Symbol.for("immer-state"),xb=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 It(e,...t){if(process.env.NODE_ENV!=="production"){const r=xb[e],n=Qr(r)?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Nt=Object,wn=Nt.getPrototypeOf,Di="constructor",Fi="prototype",Ra="configurable",zi="enumerable",ji="writable",ao="value",vr=e=>!!e&&!!e[mt];function Yt(e){return e?ap(e)||Li(e)||!!e[ip]||!!e[Di]?.[ip]||Wi(e)||Vi(e):!1}var Sb=Nt[Fi][Di].toString(),sp=new WeakMap;function ap(e){if(!e||!Ya(e))return!1;const t=wn(e);if(t===null||t===Nt[Fi])return!0;const r=Nt.hasOwnProperty.call(t,Di)&&t[Di];if(r===Object)return!0;if(!Qr(r))return!1;let n=sp.get(r);return n===void 0&&(n=Function.toString.call(r),sp.set(r,n)),n===Sb}function lo(e,t,r=!0){co(e)===0?(r?Reflect.ownKeys(e):Nt.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((n,o)=>t(o,n,e))}function co(e){const t=e[mt];return t?t.type_:Li(e)?1:Wi(e)?2:Vi(e)?3:0}var lp=(e,t,r=co(e))=>r===2?e.has(t):Nt[Fi].hasOwnProperty.call(e,t),qa=(e,t,r=co(e))=>r===2?e.get(t):e[t],Bi=(e,t,r,n=co(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function wb(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Li=Array.isArray,Wi=e=>e instanceof Map,Vi=e=>e instanceof Set,Ya=e=>typeof e=="object",Qr=e=>typeof e=="function",Ga=e=>typeof e=="boolean",xr=e=>e.copy_||e.base_,Ka=e=>e.modified_?e.copy_:e.base_;function Xa(e,t){if(Wi(e))return new Map(e);if(Vi(e))return new Set(e);if(Li(e))return Array[Fi].slice.call(e);const r=ap(e);if(t===!0||t==="class_only"&&!r){const n=Nt.getOwnPropertyDescriptors(e);delete n[mt];let o=Reflect.ownKeys(n);for(let s=0;s<o.length;s++){const l=o[s],c=n[l];c[ji]===!1&&(c[ji]=!0,c[Ra]=!0),(c.get||c.set)&&(n[l]={[Ra]:!0,[ji]:!0,[zi]:c[zi],[ao]:e[l]})}return Nt.create(wn(e),n)}else{const n=wn(e);if(n!==null&&r)return{...e};const o=Nt.create(n);return Nt.assign(o,e)}}function Ja(e,t=!1){return Hi(e)||vr(e)||!Yt(e)||(co(e)>1&&Nt.defineProperties(e,{set:Ui,add:Ui,clear:Ui,delete:Ui}),Nt.freeze(e),t&&lo(e,(r,n)=>{Ja(n,!0)},!1)),e}function Cb(){It(2)}var Ui={[ao]:Cb};function Hi(e){return e===null||!Ya(e)?!0:Nt.isFrozen(e)}var Ri="MapSet",Qa="Patches",cp={};function Cn(e){const t=cp[e];return t||It(0,e),t}var Eb=e=>!!cp[e],po,dp=()=>po,Tb=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Eb(Ri)?Cn(Ri):void 0});function pp(e,t){t&&(e.patchPlugin_=Cn(Qa),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Za(e){el(e),e.drafts_.forEach(Ob),e.drafts_=null}function el(e){e===po&&(po=e.parent_)}var up=e=>po=Tb(po,e);function Ob(e){const t=e[mt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function fp(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[mt].modified_&&(Za(t),It(4)),Yt(e)&&(e=hp(t,e));const{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(r[mt].base_,e,t)}else e=hp(t,r);return kb(t,e,!0),Za(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==op?e:void 0}function hp(e,t){if(Hi(t))return t;const r=t[mt];if(!r)return tl(t,e.handledSet_,e);if(!qi(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);mp(r,e)}return r.copy_}function kb(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ja(t,r)}function gp(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var qi=(e,t)=>e.scope_===t,Pb=[];function yp(e,t,r,n){const o=xr(e),s=e.type_;if(n!==void 0&&qa(o,n,s)===t){Bi(o,n,r,s);return}if(!e.draftLocations_){const c=e.draftLocations_=new Map;lo(o,(d,p)=>{if(vr(p)){const u=c.get(p)||[];u.push(d),c.set(p,u)}})}const l=e.draftLocations_.get(t)??Pb;for(const c of l)Bi(o,c,r,s)}function Ib(e,t,r){e.callbacks_.push(function(o){const s=t;if(!s||!qi(s,o))return;o.mapSetPlugin_?.fixSetContents(s);const l=Ka(s);yp(e,s.draft_??s,l,r),mp(s,o)})}function mp(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||(e.assigned_?.size??0)>0)){const{patchPlugin_:n}=t;if(n){const o=n.getPath(e);o&&n.generatePatches_(e,o,t)}gp(e)}}function Nb(e,t,r){const{scope_:n}=e;if(vr(r)){const o=r[mt];qi(o,n)&&o.callbacks_.push(function(){Yi(e);const l=Ka(o);yp(e,r,l,t)})}else Yt(r)&&e.callbacks_.push(function(){const s=xr(e);qa(s,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&tl(qa(e.copy_,t,e.type_),n.handledSet_,n)})}function tl(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||vr(e)||t.has(e)||!Yt(e)||Hi(e)||(t.add(e),lo(e,(n,o)=>{if(vr(o)){const s=o[mt];if(qi(s,r)){const l=Ka(s);Bi(e,n,l,e.type_),gp(s)}}else Yt(o)&&tl(o,t,r)})),e}function _b(e,t){const r=Li(e),n={type_:r?1:0,scope_:t?t.scope_:dp(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let o=n,s=rl;r&&(o=[n],s=uo);const{revoke:l,proxy:c}=Proxy.revocable(o,s);return n.draft_=c,n.revoke_=l,[c,n]}var rl={get(e,t){if(t===mt)return e;const r=xr(e);if(!lp(r,t,e.type_))return Ab(e,r,t);const n=r[t];if(e.finalized_||!Yt(n))return n;if(n===nl(e.base_,t)){Yi(e);const o=e.type_===1?+t:t,s=il(e.scope_,n,e,o);return e.copy_[o]=s}return n},has(e,t){return t in xr(e)},ownKeys(e){return Reflect.ownKeys(xr(e))},set(e,t,r){const n=bp(xr(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=nl(xr(e),t),s=o?.[mt];if(s&&s.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(wb(r,o)&&(r!==void 0||lp(e.base_,t,e.type_)))return!0;Yi(e),ol(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Nb(e,t,r)),!0},deleteProperty(e,t){return Yi(e),nl(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),ol(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=xr(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[ji]:!0,[Ra]:e.type_!==1||t!=="length",[zi]:n[zi],[ao]:r[t]}},defineProperty(){It(11)},getPrototypeOf(e){return wn(e.base_)},setPrototypeOf(){It(12)}},uo={};lo(rl,(e,t)=>{uo[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}),uo.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&It(13),uo.set.call(this,e,t,void 0)},uo.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&It(14),rl.set.call(this,e[0],t,r,e[0])};function nl(e,t){const r=e[mt];return(r?xr(r):e)[t]}function Ab(e,t,r){const n=bp(t,r);return n?ao in n?n[ao]:n.get?.call(e.draft_):void 0}function bp(e,t){if(!(t in e))return;let r=wn(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=wn(r)}}function ol(e){e.modified_||(e.modified_=!0,e.parent_&&ol(e.parent_))}function Yi(e){e.copy_||(e.assigned_=new Map,e.copy_=Xa(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Mb=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(Qr(t)&&!Qr(r)){const s=r;r=t;const l=this;return function(d=s,...p){return l.produce(d,u=>r.call(this,u,...p))}}Qr(r)||It(6),n!==void 0&&!Qr(n)&&It(7);let o;if(Yt(t)){const s=up(this),l=il(s,t,void 0);let c=!0;try{o=r(l),c=!1}finally{c?Za(s):el(s)}return pp(s,n),fp(o,s)}else if(!t||!Ya(t)){if(o=r(t),o===void 0&&(o=t),o===op&&(o=void 0),this.autoFreeze_&&Ja(o,!0),n){const s=[],l=[];Cn(Qa).generateReplacementPatches_(t,o,{patches_:s,inversePatches_:l}),n(s,l)}return o}else It(1,t)},this.produceWithPatches=(t,r)=>{if(Qr(t))return(l,...c)=>this.produceWithPatches(l,d=>t(d,...c));let n,o;return[this.produce(t,r,(l,c)=>{n=l,o=c}),n,o]},Ga(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Ga(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Ga(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Yt(e)||It(8),vr(e)&&(e=$b(e));const t=up(this),r=il(t,e,void 0);return r[mt].isManual_=!0,el(t),r}finishDraft(e,t){const r=e&&e[mt];(!r||!r.isManual_)&&It(9);const{scope_:n}=r;return pp(n,t),fp(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));const n=Cn(Qa).applyPatches_;return vr(e)?n(e,t):this.produce(e,o=>n(o,t))}};function il(e,t,r,n){const[o,s]=Wi(t)?Cn(Ri).proxyMap_(t,r):Vi(t)?Cn(Ri).proxySet_(t,r):_b(t,r);return(r?.scope_??dp()).drafts_.push(o),s.callbacks_=r?.callbacks_??[],s.key_=n,r&&n!==void 0?Ib(r,s,n):s.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(s);const{patchPlugin_:p}=d;s.modified_&&p&&p.generatePatches_(s,[],d)}),o}function $b(e){return vr(e)||It(10,e),vp(e)}function vp(e){if(!Yt(e)||Hi(e))return e;const t=e[mt];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Xa(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Xa(e,!0);return lo(r,(o,s)=>{Bi(r,o,vp(s))},n),t&&(t.finalized_=!1),r}var Db=new Mb,xp=Db.produce,Fb=(e,t,r)=>{if(t.length===1&&t[0]===r){let n=!1;try{const o={};e(o)===o&&(n=!0)}catch{}if(n){let o;try{throw new Error}catch(s){({stack:o}=s)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
6
6
|
\`createSelector([state => state.todos], todos => todos)\`
|
|
7
7
|
This could lead to inefficient memoization and unnecessary re-renders.
|
|
8
|
-
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:o})}}},
|
|
8
|
+
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:o})}}},zb=(e,t,r)=>{const{memoize:n,memoizeOptions:o}=t,{inputSelectorResults:s,inputSelectorResultsCopy:l}=e,c=n(()=>({}),...o);if(!(c.apply(null,s)===c.apply(null,l))){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:r,firstInputs:
|
|
12
|
-
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`}function
|
|
11
|
+
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:r,firstInputs:s,secondInputs:l,stack:p})}},jb={inputStabilityCheck:"once",identityFunctionCheck:"once"};function Bb(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Lb(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Wb(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var Sp=e=>Array.isArray(e)?e:[e];function Vb(e){const t=Array.isArray(e[0])?e[0]:e;return Wb(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function wp(e,t){const r=[],{length:n}=e;for(let o=0;o<n;o++)r.push(e[o].apply(null,t));return r}var Ub=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...jb,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:Fb},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:zb}}},Hb=class{constructor(e){this.value=e}deref(){return this.value}},Rb=typeof WeakRef<"u"?WeakRef:Hb,qb=0,Cp=1;function Gi(){return{s:qb,v:void 0,o:null,p:null}}function Ep(e,t={}){let r=Gi();const{resultEqualityCheck:n}=t;let o,s=0;function l(){let c=r;const{length:d}=arguments;for(let h=0,v=d;h<v;h++){const g=arguments[h];if(typeof g=="function"||typeof g=="object"&&g!==null){let y=c.o;y===null&&(c.o=y=new WeakMap);const f=y.get(g);f===void 0?(c=Gi(),y.set(g,c)):c=f}else{let y=c.p;y===null&&(c.p=y=new Map);const f=y.get(g);f===void 0?(c=Gi(),y.set(g,c)):c=f}}const p=c;let u;if(c.s===Cp)u=c.v;else if(u=e.apply(null,arguments),s++,n){const h=o?.deref?.()??o;h!=null&&n(h,u)&&(u=h,s!==0&&s--),o=typeof u=="object"&&u!==null||typeof u=="function"?new Rb(u):u}return p.s=Cp,p.v=u,u}return l.clearCache=()=>{r=Gi(),l.resetResultsCount()},l.resultsCount=()=>s,l.resetResultsCount=()=>{s=0},l}function Yb(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...o)=>{let s=0,l=0,c,d={},p=o.pop();typeof p=="object"&&(d=p,p=o.pop()),Bb(p,`createSelector expects an output function after the inputs, but received: [${typeof p}]`);const u={...r,...d},{memoize:h,memoizeOptions:v=[],argsMemoize:g=Ep,argsMemoizeOptions:y=[],devModeChecks:f={}}=u,m=Sp(v),x=Sp(y),b=Vb(o),w=h(function(){return s++,p.apply(null,arguments)},...m);let S=!0;const C=g(function(){l++;const I=wp(b,arguments);if(c=w.apply(null,I),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:F,inputStabilityCheck:D}=Ub(S,f);if(F.shouldRun&&F.run(p,I,c),D.shouldRun){const L=wp(b,arguments);D.run({inputSelectorResults:I,inputSelectorResultsCopy:L},{memoize:h,memoizeOptions:m},arguments)}S&&(S=!1)}return c},...x);return Object.assign(C,{resultFunc:p,memoizedResultFunc:w,dependencies:b,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>c,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:h,argsMemoize:g})};return Object.assign(n,{withTypes:()=>n}),n}var Gb=Yb(Ep),Kb=Object.assign((e,t=Gb)=>{Lb(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(s=>e[s]);return t(n,(...s)=>s.reduce((l,c,d)=>(l[r[d]]=c,l),{}))},{withTypes:()=>Kb});function Tp(e){return({dispatch:r,getState:n})=>o=>s=>typeof s=="function"?s(r,n,e):o(s)}var Xb=Tp(),Jb=Tp,Qb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?$i:$i.apply(null,arguments)},Op=e=>e&&typeof e.match=="function";function fo(e,t){function r(...n){if(t){let o=t(...n);if(!o)throw new Error(process.env.NODE_ENV==="production"?Be(0):"prepareAction did not return an object");return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>np(n)&&n.type===e,r}function Zb(e){return typeof e=="function"&&"type"in e&&Op(e)}function e0(e){const t=e?`${e}`.split("/"):[],r=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
|
|
12
|
+
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`}function t0(e={}){if(process.env.NODE_ENV==="production")return()=>r=>n=>r(n);const{isActionCreator:t=Zb}=e;return()=>r=>n=>(t(n)&&console.warn(e0(n.type)),r(n))}function kp(e,t){let r=0;return{measureTime(n){const o=Date.now();try{return n()}finally{const s=Date.now();r+=s-o}},warnIfExceeded(){r>e&&console.warn(`${t} took ${r}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
|
-
It is disabled in production builds, so you don't need to worry about that.`)}}}var
|
|
15
|
-
Take a look at the logic that dispatched this action: `,
|
|
14
|
+
It is disabled in production builds, so you don't need to worry about that.`)}}}var Pp=class ki extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,ki.prototype)}static get[Symbol.species](){return ki}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new ki(...t[0].concat(this)):new ki(...t.concat(this))}};function Ip(e){return Yt(e)?xp(e,()=>{}):e}function Ki(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function r0(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function n0(e,t,r){const n=Np(e,t,r);return{detectMutations(){return _p(e,t,n,r)}}}function Np(e,t=[],r,n="",o=new Set){const s={value:r};if(!e(r)&&!o.has(r)){o.add(r),s.children={};const l=t.length>0;for(const c in r){const d=n?n+"."+c:c;l&&t.some(u=>u instanceof RegExp?u.test(d):d===u)||(s.children[c]=Np(e,t,r[c],d))}}return s}function _p(e,t=[],r,n,o=!1,s=""){const l=r?r.value:void 0,c=l===n;if(o&&!c&&!Number.isNaN(n))return{wasMutated:!0,path:s};if(e(l)||e(n))return{wasMutated:!1};const d={};for(let u in r.children)d[u]=!0;for(let u in n)d[u]=!0;const p=t.length>0;for(let u in d){const h=s?s+"."+u:u;if(p&&t.some(y=>y instanceof RegExp?y.test(h):h===y))continue;const v=_p(e,t,r.children[u],n[u],c,h);if(v.wasMutated)return v}return{wasMutated:!1}}function o0(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{let t=function(c,d,p,u){return JSON.stringify(c,r(d,u),p)},r=function(c,d){let p=[],u=[];return d||(d=function(h,v){return p[0]===v?"[Circular ~]":"[Circular ~."+u.slice(0,p.indexOf(v)).join(".")+"]"}),function(h,v){if(p.length>0){var g=p.indexOf(this);~g?p.splice(g+1):p.push(this),~g?u.splice(g,1/0,h):u.push(h),~p.indexOf(v)&&(v=d.call(this,h,v))}else p.push(v);return c==null?v:c.call(this,h,v)}},{isImmutable:n=r0,ignoredPaths:o,warnAfter:s=32}=e;const l=n0.bind(null,n,o);return({getState:c})=>{let d=c(),p=l(d),u;return h=>v=>{const g=kp(s,"ImmutableStateInvariantMiddleware");g.measureTime(()=>{if(d=c(),u=p.detectMutations(),p=l(d),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Be(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 y=h(v);return g.measureTime(()=>{if(d=c(),u=p.detectMutations(),p=l(d),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Be(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(v)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),g.warnIfExceeded(),y}}}}function Ap(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||so(e)}function sl(e,t="",r=Ap,n,o=[],s){let l;if(!r(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||s?.has(e))return!1;const c=n!=null?n(e):Object.entries(e),d=o.length>0;for(const[p,u]of c){const h=t?t+"."+p:p;if(!(d&&o.some(g=>g instanceof RegExp?g.test(h):h===g))){if(!r(u))return{keyPath:h,value:u};if(typeof u=="object"&&(l=sl(u,h,r,n,o,s),l))return l}}return s&&Mp(e)&&s.add(e),!1}function Mp(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!Mp(t))return!1;return!0}function i0(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{const{isSerializable:t=Ap,getEntries:r,ignoredActions:n=[],ignoredActionPaths:o=["meta.arg","meta.baseQueryMeta"],ignoredPaths:s=[],warnAfter:l=32,ignoreState:c=!1,ignoreActions:d=!1,disableCache:p=!1}=e,u=!p&&WeakSet?new WeakSet:void 0;return h=>v=>g=>{if(!np(g))return v(g);const y=v(g),f=kp(l,"SerializableStateInvariantMiddleware");return!d&&!(n.length&&n.indexOf(g.type)!==-1)&&f.measureTime(()=>{const m=sl(g,"",t,r,o,u);if(m){const{keyPath:x,value:b}=m;console.error(`A non-serializable value was detected in an action, in the path: \`${x}\`. Value:`,b,`
|
|
15
|
+
Take a look at the logic that dispatched this action: `,g,`
|
|
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
|
-
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),c||(f.measureTime(()=>{const
|
|
18
|
-
Take a look at the reducer(s) handling this action 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 bi(e){return typeof e=="boolean"}var Uy=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:o=!0,actionCreatorCheck:a=!0}=t??{};let l=new jd;if(r&&(bi(r)?l.push(My):l.push(Dy(r.extraArgument))),process.env.NODE_ENV!=="production"){if(n){let c={};bi(n)||(c=n),l.unshift(Ly(c))}if(o){let c={};bi(o)||(c=o),l.push(Vy(c))}if(a){let c={};bi(a)||(c=a),l.unshift(By(c))}}return l},Hy="RTK_autoBatch",qd=e=>t=>{setTimeout(t,e)},qy=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let o=!0,a=!1,l=!1;const c=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:qd(10):e.type==="callback"?e.queueNotification:qd(e.timeout),d=()=>{l=!1,a&&(a=!1,c.forEach(p=>p()))};return Object.assign({},n,{subscribe(p){const h=()=>o&&p(),y=n.subscribe(h);return c.add(p),()=>{y(),c.delete(p)}},dispatch(p){try{return o=!p?.meta?.[Hy],a=!o,a&&(l||(l=!0,u(d))),n.dispatch(p)}finally{o=!0}}})},Yy=e=>function(r){const{autoBatch:n=!0}=r??{};let o=new jd(e);return n&&o.push(qy(typeof n=="object"?n:void 0)),o};function Gy(e){const t=Uy(),{reducer:r=void 0,middleware:n,devTools:o=!0,duplicateMiddlewareCheck:a=!0,preloadedState:l=void 0,enhancers:c=void 0}=e||{};let u;if(typeof r=="function")u=r;else if(Ln(r))u=fd(r);else throw new Error(process.env.NODE_ENV==="production"?Ae(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"&&n&&typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Ae(2):"`middleware` field must be a callback");let d;if(typeof n=="function"){if(d=n(t),process.env.NODE_ENV!=="production"&&!Array.isArray(d))throw new Error(process.env.NODE_ENV==="production"?Ae(3):"when using a middleware builder function, an array of middleware must be returned")}else d=t();if(process.env.NODE_ENV!=="production"&&d.some(f=>typeof f!="function"))throw new Error(process.env.NODE_ENV==="production"?Ae(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&a){let f=new Set;d.forEach(b=>{if(f.has(b))throw new Error(process.env.NODE_ENV==="production"?Ae(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");f.add(b)})}let p=ei;o&&(p=zy({trace:process.env.NODE_ENV!=="production",...typeof o=="object"&&o}));const h=ry(...d),y=Yy(h);if(process.env.NODE_ENV!=="production"&&c&&typeof c!="function")throw new Error(process.env.NODE_ENV==="production"?Ae(5):"`enhancers` field must be a callback");let x=typeof c=="function"?c(y):y();if(process.env.NODE_ENV!=="production"&&!Array.isArray(x))throw new Error(process.env.NODE_ENV==="production"?Ae(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&x.some(f=>typeof f!="function"))throw new Error(process.env.NODE_ENV==="production"?Ae(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&d.length&&!x.includes(h)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const g=p(...x);return aa(u,l,g)}function Yd(e){const t={},r=[];let n;const o={addCase(a,l){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error(process.env.NODE_ENV==="production"?Ae(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error(process.env.NODE_ENV==="production"?Ae(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const c=typeof a=="string"?a:a.type;if(!c)throw new Error(process.env.NODE_ENV==="production"?Ae(28):"`builder.addCase` cannot be called with an empty action type");if(c in t)throw new Error(process.env.NODE_ENV==="production"?Ae(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${c}'`);return t[c]=l,o},addAsyncThunk(a,l){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?Ae(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return l.pending&&(t[a.pending.type]=l.pending),l.rejected&&(t[a.rejected.type]=l.rejected),l.fulfilled&&(t[a.fulfilled.type]=l.fulfilled),l.settled&&r.push({matcher:a.settled,reducer:l.settled}),o},addMatcher(a,l){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?Ae(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:a,reducer:l}),o},addDefaultCase(a){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?Ae(31):"`builder.addDefaultCase` can only be called once");return n=a,o}};return e(o),[t,r,n]}function Ky(e){return typeof e=="function"}function Ry(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?Ae(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[r,n,o]=Yd(t),a;if(Ky(e))a=()=>Wd(e());else{const c=Wd(e);a=()=>c}function l(c=a(),u){let d=[r[u.type],...n.filter(({matcher:p})=>p(u)).map(({reducer:p})=>p)];return d.filter(p=>!!p).length===0&&(d=[o]),d.reduce((p,h)=>{if(h)if(ir(p)){const x=h(p,u);return x===void 0?p:x}else{if(zt(p))return _d(p,y=>h(y,u));{const y=h(p,u);if(y===void 0){if(p===null)return p;throw Error("A case reducer on a non-draftable value must not return undefined")}return y}}return p},c)}return l.getInitialState=a,l}var Xy=(e,t)=>Fd(e)?e.match(t):e(t);function Jy(...e){return t=>e.some(r=>Xy(r,t))}var Qy="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Zy=(e=21)=>{let t="",r=e;for(;r--;)t+=Qy[Math.random()*64|0];return t},em=["name","message","stack","code"],Ea=class{constructor(e,t){this.payload=e,this.meta=t}_type},Gd=class{constructor(e,t){this.payload=e,this.meta=t}_type},tm=e=>{if(typeof e=="object"&&e!==null){const t={};for(const r of em)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},Kd="External signal was aborted",Ta=(()=>{function e(t,r,n){const o=Gn(t+"/fulfilled",(u,d,p,h)=>({payload:u,meta:{...h||{},arg:p,requestId:d,requestStatus:"fulfilled"}})),a=Gn(t+"/pending",(u,d,p)=>({payload:void 0,meta:{...p||{},arg:d,requestId:u,requestStatus:"pending"}})),l=Gn(t+"/rejected",(u,d,p,h,y)=>({payload:h,error:(n&&n.serializeError||tm)(u||"Rejected"),meta:{...y||{},arg:p,requestId:d,rejectedWithValue:!!h,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"}}));function c(u,{signal:d}={}){return(p,h,y)=>{const x=n?.idGenerator?n.idGenerator(u):Zy(),g=new AbortController;let f,b;function S(T){b=T,g.abort()}d&&(d.aborted?S(Kd):d.addEventListener("abort",()=>S(Kd),{once:!0}));const v=(async function(){let T;try{let E=n?.condition?.(u,{getState:h,extra:y});if(nm(E)&&(E=await E),E===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const w=new Promise((I,z)=>{f=()=>{z({name:"AbortError",message:b||"Aborted"})},g.signal.addEventListener("abort",f,{once:!0})});p(a(x,u,n?.getPendingMeta?.({requestId:x,arg:u},{getState:h,extra:y}))),T=await Promise.race([w,Promise.resolve(r(u,{dispatch:p,getState:h,extra:y,requestId:x,signal:g.signal,abort:S,rejectWithValue:(I,z)=>new Ea(I,z),fulfillWithValue:(I,z)=>new Gd(I,z)})).then(I=>{if(I instanceof Ea)throw I;return I instanceof Gd?o(I.payload,x,u,I.meta):o(I,x,u)})])}catch(E){T=E instanceof Ea?l(null,x,u,E.payload,E.meta):l(E,x,u)}finally{f&&g.signal.removeEventListener("abort",f)}return n&&!n.dispatchConditionRejection&&l.match(T)&&T.meta.condition||p(T),T})();return Object.assign(v,{abort:S,requestId:x,arg:u,unwrap(){return v.then(rm)}})}}return Object.assign(c,{pending:a,rejected:l,fulfilled:o,settled:Jy(l,o),typePrefix:t})}return e.withTypes=()=>e,e})();function rm(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function nm(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var om=Symbol.for("rtk-slice-createasyncthunk");function im(e,t){return`${e}/${t}`}function sm({creators:e}={}){const t=e?.asyncThunk?.[om];return function(n){const{name:o,reducerPath:a=o}=n;if(!o)throw new Error(process.env.NODE_ENV==="production"?Ae(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&n.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const l=(typeof n.reducers=="function"?n.reducers(lm()):n.reducers)||{},c=Object.keys(l),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(T,C){const E=typeof T=="string"?T:T.type;if(!E)throw new Error(process.env.NODE_ENV==="production"?Ae(12):"`context.addCase` cannot be called with an empty action type");if(E in u.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?Ae(13):"`context.addCase` cannot be called with two reducers for the same action type: "+E);return u.sliceCaseReducersByType[E]=C,d},addMatcher(T,C){return u.sliceMatchers.push({matcher:T,reducer:C}),d},exposeAction(T,C){return u.actionCreators[T]=C,d},exposeCaseReducer(T,C){return u.sliceCaseReducersByName[T]=C,d}};c.forEach(T=>{const C=l[T],E={reducerName:T,type:im(o,T),createNotation:typeof n.reducers=="function"};dm(C)?pm(E,C,d,t):cm(E,C,d)});function p(){if(process.env.NODE_ENV!=="production"&&typeof n.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?Ae(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[T={},C=[],E=void 0]=typeof n.extraReducers=="function"?Yd(n.extraReducers):[n.extraReducers],w={...T,...u.sliceCaseReducersByType};return Ry(n.initialState,I=>{for(let z in w)I.addCase(z,w[z]);for(let z of u.sliceMatchers)I.addMatcher(z.matcher,z.reducer);for(let z of C)I.addMatcher(z.matcher,z.reducer);E&&I.addDefaultCase(E)})}const h=T=>T,y=new Map,x=new WeakMap;let g;function f(T,C){return g||(g=p()),g(T,C)}function b(){return g||(g=p()),g.getInitialState()}function S(T,C=!1){function E(I){let z=I[T];if(typeof z>"u"){if(C)z=gi(x,E,b);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Ae(15):"selectSlice returned undefined for an uninjected slice reducer")}return z}function w(I=h){const z=gi(y,C,()=>new WeakMap);return gi(z,I,()=>{const _={};for(const[N,L]of Object.entries(n.selectors??{}))_[N]=am(L,I,()=>gi(x,I,b),C);return _})}return{reducerPath:T,getSelectors:w,get selectors(){return w(E)},selectSlice:E}}const v={name:o,reducer:f,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:b,...S(a),injectInto(T,{reducerPath:C,...E}={}){const w=C??a;return T.inject({reducerPath:w,reducer:f},E),{...v,...S(w,!0)}}};return v}}function am(e,t,r,n){function o(a,...l){let c=t(a);if(typeof c>"u"){if(n)c=r();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Ae(16):"selectState returned undefined for an uninjected slice reducer")}return e(c,...l)}return o.unwrapped=e,o}var ka=sm();function lm(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function cm({type:e,reducerName:t,createNotation:r},n,o){let a,l;if("reducer"in n){if(r&&!um(n))throw new Error(process.env.NODE_ENV==="production"?Ae(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");a=n.reducer,l=n.prepare}else a=n;o.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,l?Gn(e,l):Gn(e))}function dm(e){return e._reducerDefinitionType==="asyncThunk"}function um(e){return e._reducerDefinitionType==="reducerWithPrepare"}function pm({type:e,reducerName:t},r,n,o){if(!o)throw new Error(process.env.NODE_ENV==="production"?Ae(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:a,fulfilled:l,pending:c,rejected:u,settled:d,options:p}=r,h=o(e,a,p);n.exposeAction(t,h),l&&n.addCase(h.fulfilled,l),c&&n.addCase(h.pending,c),u&&n.addCase(h.rejected,u),d&&n.addMatcher(h.settled,d),n.exposeCaseReducer(t,{fulfilled:l||yi,pending:c||yi,rejected:u||yi,settled:d||yi})}function yi(){}function Ae(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 Oa="persist:",Rd="persist/FLUSH",Pa="persist/REHYDRATE",Xd="persist/PAUSE",Jd="persist/PERSIST",Qd="persist/PURGE",Zd="persist/REGISTER",fm=-1;function Kn(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kn=function(r){return typeof r}:Kn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Kn(e)}function eu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function hm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eu(r,!0).forEach(function(n){gm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eu(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gm(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bm(e,t,r,n){var o=n.debug,a=hm({},r);return e&&Kn(e)==="object"&&Object.keys(e).forEach(function(l){if(l!=="_persist"){if(t[l]!==r[l]){process.env.NODE_ENV!=="production"&&o&&console.log("redux-persist/stateReconciler: sub state for key `%s` modified, skipping.",l);return}a[l]=e[l]}}),process.env.NODE_ENV!=="production"&&o&&e&&Kn(e)==="object"&&console.log("redux-persist/stateReconciler: rehydrated keys '".concat(Object.keys(e).join(", "),"'")),a}function ym(e){var t=e.blacklist||null,r=e.whitelist||null,n=e.transforms||[],o=e.throttle||0,a="".concat(e.keyPrefix!==void 0?e.keyPrefix:Oa).concat(e.key),l=e.storage,c;e.serialize===!1?c=function(E){return E}:typeof e.serialize=="function"?c=e.serialize:c=mm;var u=e.writeFailHandler||null,d={},p={},h=[],y=null,x=null,g=function(E){Object.keys(E).forEach(function(w){S(w)&&d[w]!==E[w]&&h.indexOf(w)===-1&&h.push(w)}),Object.keys(d).forEach(function(w){E[w]===void 0&&S(w)&&h.indexOf(w)===-1&&d[w]!==void 0&&h.push(w)}),y===null&&(y=setInterval(f,o)),d=E};function f(){if(h.length===0){y&&clearInterval(y),y=null;return}var C=h.shift(),E=n.reduce(function(w,I){return I.in(w,C,d)},d[C]);if(E!==void 0)try{p[C]=c(E)}catch(w){console.error("redux-persist/createPersistoid: error serializing state",w)}else delete p[C];h.length===0&&b()}function b(){Object.keys(p).forEach(function(C){d[C]===void 0&&delete p[C]}),x=l.setItem(a,c(p)).catch(v)}function S(C){return!(r&&r.indexOf(C)===-1&&C!=="_persist"||t&&t.indexOf(C)!==-1)}function v(C){u&&u(C),C&&process.env.NODE_ENV!=="production"&&console.error("Error storing data",C)}var T=function(){for(;h.length!==0;)f();return x||Promise.resolve()};return{update:g,flush:T}}function mm(e){return JSON.stringify(e)}function xm(e){var t=e.transforms||[],r="".concat(e.keyPrefix!==void 0?e.keyPrefix:Oa).concat(e.key),n=e.storage,o=e.debug,a;return e.deserialize===!1?a=function(c){return c}:typeof e.deserialize=="function"?a=e.deserialize:a=vm,n.getItem(r).then(function(l){if(l)try{var c={},u=a(l);return Object.keys(u).forEach(function(d){c[d]=t.reduceRight(function(p,h){return h.out(p,d,u)},a(u[d]))}),c}catch(d){throw process.env.NODE_ENV!=="production"&&o&&console.log("redux-persist/getStoredState: Error restoring data ".concat(l),d),d}else return})}function vm(e){return JSON.parse(e)}function Sm(e){var t=e.storage,r="".concat(e.keyPrefix!==void 0?e.keyPrefix:Oa).concat(e.key);return t.removeItem(r,wm)}function wm(e){e&&process.env.NODE_ENV!=="production"&&console.error("redux-persist/purgeStoredState: Error purging data stored state",e)}function tu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ar(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tu(r,!0).forEach(function(n){Cm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tu(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Cm(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Em(e,t){if(e==null)return{};var r=Tm(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Tm(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var km=5e3;function Om(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 r=e.version!==void 0?e.version:fm;e.debug;var n=e.stateReconciler===void 0?bm:e.stateReconciler,o=e.getStoredState||xm,a=e.timeout!==void 0?e.timeout:km,l=null,c=!1,u=!0,d=function(h){return h._persist.rehydrated&&l&&!u&&l.update(h),h};return function(p,h){var y=p||{},x=y._persist,g=Em(y,["_persist"]),f=g;if(h.type===Jd){var b=!1,S=function(z,_){process.env.NODE_ENV!=="production"&&b&&console.error('redux-persist: rehydrate for "'.concat(e.key,'" called after timeout.'),z,_),b||(h.rehydrate(e.key,z,_),b=!0)};if(a&&setTimeout(function(){!b&&S(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},a),u=!1,l||(l=ym(e)),x)return ar({},t(f,h),{_persist:x});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),o(e).then(function(I){var z=e.migrate||function(_,N){return Promise.resolve(_)};z(I,r).then(function(_){S(_)},function(_){process.env.NODE_ENV!=="production"&&_&&console.error("redux-persist: migration error",_),S(void 0,_)})},function(I){S(void 0,I)}),ar({},t(f,h),{_persist:{version:r,rehydrated:!1}})}else{if(h.type===Qd)return c=!0,h.result(Sm(e)),ar({},t(f,h),{_persist:x});if(h.type===Rd)return h.result(l&&l.flush()),ar({},t(f,h),{_persist:x});if(h.type===Xd)u=!0;else if(h.type===Pa){if(c)return ar({},f,{_persist:ar({},x,{rehydrated:!0})});if(h.key===e.key){var v=t(f,h),T=h.payload,C=n!==!1&&T!==void 0?n(T,p,v,e):v,E=ar({},C,{_persist:ar({},x,{rehydrated:!0})});return d(E)}}}if(!x)return t(p,h);var w=t(f,h);return w===f?p:d(ar({},w,{_persist:x}))}}function ru(e){return Nm(e)||Im(e)||Pm()}function Pm(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Im(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Nm(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function nu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ia(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nu(r,!0).forEach(function(n){_m(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nu(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ou={registry:[],bootstrapped:!1},Am=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ou,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case Zd:return Ia({},t,{registry:[].concat(ru(t.registry),[r.key])});case Pa:var n=t.registry.indexOf(r.key),o=ru(t.registry);return o.splice(n,1),Ia({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function Mm(e,t,r){if(process.env.NODE_ENV!=="production"){var n={},o=["blacklist","whitelist","transforms","storage","keyPrefix","migrate"];o.forEach(function(d){n[d]&&console.error('redux-persist: invalid option passed to persistStore: "'.concat(d,'". You may be incorrectly passing persistConfig into persistStore, whereas it should be passed into persistReducer.'))})}var a=aa(Am,ou,void 0),l=function(p){a.dispatch({type:Zd,key:p})},c=function(p,h,y){var x={type:Pa,payload:h,err:y,key:p};e.dispatch(x),a.dispatch(x)},u=Ia({},a,{purge:function(){var p=[];return e.dispatch({type:Qd,result:function(y){p.push(y)}}),Promise.all(p)},flush:function(){var p=[];return e.dispatch({type:Rd,result:function(y){p.push(y)}}),Promise.all(p)},pause:function(){e.dispatch({type:Xd})},persist:function(){e.dispatch({type:Jd,register:l,rehydrate:c})}});return u.persist(),u}function iu(e,t){return function(){return e.apply(t,arguments)}}const{toString:Dm}=Object.prototype,{getPrototypeOf:Na}=Object,{iterator:mi,toStringTag:su}=Symbol,xi=(e=>t=>{const r=Dm.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),$t=e=>(e=e.toLowerCase(),t=>xi(t)===e),vi=e=>t=>typeof t===e,{isArray:Qr}=Array,Zr=vi("undefined");function Rn(e){return e!==null&&!Zr(e)&&e.constructor!==null&&!Zr(e.constructor)&&pt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const au=$t("ArrayBuffer");function zm(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&au(e.buffer),t}const $m=vi("string"),pt=vi("function"),lu=vi("number"),Xn=e=>e!==null&&typeof e=="object",Fm=e=>e===!0||e===!1,Si=e=>{if(xi(e)!=="object")return!1;const t=Na(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(su in e)&&!(mi in e)},Bm=e=>{if(!Xn(e)||Rn(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},jm=$t("Date"),Wm=$t("File"),Lm=$t("Blob"),Vm=$t("FileList"),Um=e=>Xn(e)&&pt(e.pipe),Hm=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||pt(e.append)&&((t=xi(e))==="formdata"||t==="object"&&pt(e.toString)&&e.toString()==="[object FormData]"))},qm=$t("URLSearchParams"),[Ym,Gm,Km,Rm]=["ReadableStream","Request","Response","Headers"].map($t),Xm=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Jn(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Qr(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(Rn(e))return;const a=r?Object.getOwnPropertyNames(e):Object.keys(e),l=a.length;let c;for(n=0;n<l;n++)c=a[n],t.call(null,e[c],c,e)}}function cu(e,t){if(Rn(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const Nr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,du=e=>!Zr(e)&&e!==Nr;function _a(){const{caseless:e,skipUndefined:t}=du(this)&&this||{},r={},n=(o,a)=>{const l=e&&cu(r,a)||a;Si(r[l])&&Si(o)?r[l]=_a(r[l],o):Si(o)?r[l]=_a({},o):Qr(o)?r[l]=o.slice():(!t||!Zr(o))&&(r[l]=o)};for(let o=0,a=arguments.length;o<a;o++)arguments[o]&&Jn(arguments[o],n);return r}const Jm=(e,t,r,{allOwnKeys:n}={})=>(Jn(t,(o,a)=>{r&&pt(o)?e[a]=iu(o,r):e[a]=o},{allOwnKeys:n}),e),Qm=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Zm=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},e0=(e,t,r,n)=>{let o,a,l;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)l=o[a],(!n||n(l,e,t))&&!c[l]&&(t[l]=e[l],c[l]=!0);e=r!==!1&&Na(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},t0=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},r0=e=>{if(!e)return null;if(Qr(e))return e;let t=e.length;if(!lu(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},n0=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Na(Uint8Array)),o0=(e,t)=>{const n=(e&&e[mi]).call(e);let o;for(;(o=n.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},i0=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},s0=$t("HTMLFormElement"),a0=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),uu=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),l0=$t("RegExp"),pu=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Jn(r,(o,a)=>{let l;(l=t(o,a,e))!==!1&&(n[a]=l||o)}),Object.defineProperties(e,n)},c0=e=>{pu(e,(t,r)=>{if(pt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(pt(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},d0=(e,t)=>{const r={},n=o=>{o.forEach(a=>{r[a]=!0})};return Qr(e)?n(e):n(String(e).split(t)),r},u0=()=>{},p0=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function f0(e){return!!(e&&pt(e.append)&&e[su]==="FormData"&&e[mi])}const h0=e=>{const t=new Array(10),r=(n,o)=>{if(Xn(n)){if(t.indexOf(n)>=0)return;if(Rn(n))return n;if(!("toJSON"in n)){t[o]=n;const a=Qr(n)?[]:{};return Jn(n,(l,c)=>{const u=r(l,o+1);!Zr(u)&&(a[c]=u)}),t[o]=void 0,a}}return n};return r(e,0)},g0=$t("AsyncFunction"),b0=e=>e&&(Xn(e)||pt(e))&&pt(e.then)&&pt(e.catch),fu=((e,t)=>e?setImmediate:t?((r,n)=>(Nr.addEventListener("message",({source:o,data:a})=>{o===Nr&&a===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Nr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",pt(Nr.postMessage)),y0=typeof queueMicrotask<"u"?queueMicrotask.bind(Nr):typeof process<"u"&&process.nextTick||fu,j={isArray:Qr,isArrayBuffer:au,isBuffer:Rn,isFormData:Hm,isArrayBufferView:zm,isString:$m,isNumber:lu,isBoolean:Fm,isObject:Xn,isPlainObject:Si,isEmptyObject:Bm,isReadableStream:Ym,isRequest:Gm,isResponse:Km,isHeaders:Rm,isUndefined:Zr,isDate:jm,isFile:Wm,isBlob:Lm,isRegExp:l0,isFunction:pt,isStream:Um,isURLSearchParams:qm,isTypedArray:n0,isFileList:Vm,forEach:Jn,merge:_a,extend:Jm,trim:Xm,stripBOM:Qm,inherits:Zm,toFlatObject:e0,kindOf:xi,kindOfTest:$t,endsWith:t0,toArray:r0,forEachEntry:o0,matchAll:i0,isHTMLForm:s0,hasOwnProperty:uu,hasOwnProp:uu,reduceDescriptors:pu,freezeMethods:c0,toObjectSet:d0,toCamelCase:a0,noop:u0,toFiniteNumber:p0,findKey:cu,global:Nr,isContextDefined:du,isSpecCompliantForm:f0,toJSONObject:h0,isAsyncFn:g0,isThenable:b0,setImmediate:fu,asap:y0,isIterable:e=>e!=null&&pt(e[mi])};function be(e,t,r,n,o){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),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}j.inherits(be,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 hu=be.prototype,gu={};["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=>{gu[e]={value:e}}),Object.defineProperties(be,gu),Object.defineProperty(hu,"isAxiosError",{value:!0}),be.from=(e,t,r,n,o,a)=>{const l=Object.create(hu);j.toFlatObject(e,l,function(p){return p!==Error.prototype},d=>d!=="isAxiosError");const c=e&&e.message?e.message:"Error",u=t==null&&e?e.code:t;return be.call(l,c,u,r,n,o),e&&l.cause==null&&Object.defineProperty(l,"cause",{value:e,configurable:!0}),l.name=e&&e.name||"Error",a&&Object.assign(l,a),l};const m0=null;function Aa(e){return j.isPlainObject(e)||j.isArray(e)}function bu(e){return j.endsWith(e,"[]")?e.slice(0,-2):e}function yu(e,t,r){return e?e.concat(t).map(function(o,a){return o=bu(o),!r&&a?"["+o+"]":o}).join(r?".":""):t}function x0(e){return j.isArray(e)&&!e.some(Aa)}const v0=j.toFlatObject(j,{},null,function(t){return/^is[A-Z]/.test(t)});function wi(e,t,r){if(!j.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=j.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,b){return!j.isUndefined(b[f])});const n=r.metaTokens,o=r.visitor||p,a=r.dots,l=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&j.isSpecCompliantForm(t);if(!j.isFunction(o))throw new TypeError("visitor must be a function");function d(g){if(g===null)return"";if(j.isDate(g))return g.toISOString();if(j.isBoolean(g))return g.toString();if(!u&&j.isBlob(g))throw new be("Blob is not supported. Use a Buffer instead.");return j.isArrayBuffer(g)||j.isTypedArray(g)?u&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function p(g,f,b){let S=g;if(g&&!b&&typeof g=="object"){if(j.endsWith(f,"{}"))f=n?f:f.slice(0,-2),g=JSON.stringify(g);else if(j.isArray(g)&&x0(g)||(j.isFileList(g)||j.endsWith(f,"[]"))&&(S=j.toArray(g)))return f=bu(f),S.forEach(function(T,C){!(j.isUndefined(T)||T===null)&&t.append(l===!0?yu([f],C,a):l===null?f:f+"[]",d(T))}),!1}return Aa(g)?!0:(t.append(yu(b,f,a),d(g)),!1)}const h=[],y=Object.assign(v0,{defaultVisitor:p,convertValue:d,isVisitable:Aa});function x(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(S,v){(!(j.isUndefined(S)||S===null)&&o.call(t,S,j.isString(v)?v.trim():v,f,y))===!0&&x(S,f?f.concat(v):[v])}),h.pop()}}if(!j.isObject(e))throw new TypeError("data must be an object");return x(e),t}function mu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Ma(e,t){this._pairs=[],e&&wi(e,this,t)}const xu=Ma.prototype;xu.append=function(t,r){this._pairs.push([t,r])},xu.toString=function(t){const r=t?function(n){return t.call(this,n,mu)}:mu;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function S0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function vu(e,t,r){if(!t)return e;const n=r&&r.encode||S0;j.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let a;if(o?a=o(t,r):a=j.isURLSearchParams(t)?t.toString():new Ma(t,r).toString(n),a){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Su{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.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(n){n!==null&&t(n)})}}const wu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},w0={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Ma,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Da=typeof window<"u"&&typeof document<"u",za=typeof navigator=="object"&&navigator||void 0,C0=Da&&(!za||["ReactNative","NativeScript","NS"].indexOf(za.product)<0),E0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",T0=Da&&window.location.href||"http://localhost",tt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Da,hasStandardBrowserEnv:C0,hasStandardBrowserWebWorkerEnv:E0,navigator:za,origin:T0},Symbol.toStringTag,{value:"Module"})),...w0};function k0(e,t){return wi(e,new tt.classes.URLSearchParams,{visitor:function(r,n,o,a){return tt.isNode&&j.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function O0(e){return j.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function P0(e){const t={},r=Object.keys(e);let n;const o=r.length;let a;for(n=0;n<o;n++)a=r[n],t[a]=e[a];return t}function Cu(e){function t(r,n,o,a){let l=r[a++];if(l==="__proto__")return!0;const c=Number.isFinite(+l),u=a>=r.length;return l=!l&&j.isArray(o)?o.length:l,u?(j.hasOwnProp(o,l)?o[l]=[o[l],n]:o[l]=n,!c):((!o[l]||!j.isObject(o[l]))&&(o[l]=[]),t(r,n,o[l],a)&&j.isArray(o[l])&&(o[l]=P0(o[l])),!c)}if(j.isFormData(e)&&j.isFunction(e.entries)){const r={};return j.forEachEntry(e,(n,o)=>{t(O0(n),o,r,0)}),r}return null}function I0(e,t,r){if(j.isString(e))try{return(t||JSON.parse)(e),j.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Qn={transitional:wu,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,a=j.isObject(t);if(a&&j.isHTMLForm(t)&&(t=new FormData(t)),j.isFormData(t))return o?JSON.stringify(Cu(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 r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return k0(t,this.formSerializer).toString();if((c=j.isFileList(t))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return wi(c?{"files[]":t}:t,u&&new u,this.formSerializer)}}return a||o?(r.setContentType("application/json",!1),I0(t)):t}],transformResponse:[function(t){const r=this.transitional||Qn.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(j.isResponse(t)||j.isReadableStream(t))return t;if(t&&j.isString(t)&&(n&&!this.responseType||o)){const l=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(c){if(l)throw c.name==="SyntaxError"?be.from(c,be.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:tt.classes.FormData,Blob:tt.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=>{Qn.headers[e]={}});const N0=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"]),_0=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
20
|
-
`).forEach(function(l){o=l.indexOf(":"),r=l.substring(0,o).trim().toLowerCase(),n=l.substring(o+1).trim(),!(!r||t[r]&&
|
|
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,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Eu]=this[Eu]={accessors:{}}).accessors,o=this.prototype;function a(l){const c=Zn(l);n[c]||(z0(o,l),n[c]=!0)}return j.isArray(t)?t.forEach(a):a(t),this}};ft.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),j.reduceDescriptors(ft.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),j.freezeMethods(ft);function Fa(e,t){const r=this||Qn,n=t||r,o=ft.from(n.headers);let a=n.data;return j.forEach(e,function(c){a=c.call(r,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function Tu(e){return!!(e&&e.__CANCEL__)}function en(e,t,r){be.call(this,e??"canceled",be.ERR_CANCELED,t,r),this.name="CanceledError"}j.inherits(en,be,{__CANCEL__:!0});function ku(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new be("Request failed with status code "+r.status,[be.ERR_BAD_REQUEST,be.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function $0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function F0(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,a=0,l;return t=t!==void 0?t:1e3,function(u){const d=Date.now(),p=n[a];l||(l=d),r[o]=u,n[o]=d;let h=a,y=0;for(;h!==o;)y+=r[h++],h=h%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),d-l<t)return;const x=p&&d-p;return x?Math.round(y*1e3/x):void 0}}function B0(e,t){let r=0,n=1e3/t,o,a;const l=(d,p=Date.now())=>{r=p,o=null,a&&(clearTimeout(a),a=null),e(...d)};return[(...d)=>{const p=Date.now(),h=p-r;h>=n?l(d,p):(o=d,a||(a=setTimeout(()=>{a=null,l(o)},n-h)))},()=>o&&l(o)]}const Ei=(e,t,r=3)=>{let n=0;const o=F0(50,250);return B0(a=>{const l=a.loaded,c=a.lengthComputable?a.total:void 0,u=l-n,d=o(u),p=l<=c;n=l;const h={loaded:l,total:c,progress:c?l/c:void 0,bytes:u,rate:d||void 0,estimated:d&&c&&p?(c-l)/d:void 0,event:a,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(h)},r)},Ou=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Pu=e=>(...t)=>j.asap(()=>e(...t)),j0=tt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,tt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(tt.origin),tt.navigator&&/(msie|trident)/i.test(tt.navigator.userAgent)):()=>!0,W0=tt.hasStandardBrowserEnv?{write(e,t,r,n,o,a,l){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];j.isNumber(r)&&c.push(`expires=${new Date(r).toUTCString()}`),j.isString(n)&&c.push(`path=${n}`),j.isString(o)&&c.push(`domain=${o}`),a===!0&&c.push("secure"),j.isString(l)&&c.push(`SameSite=${l}`),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 L0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function V0(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Iu(e,t,r){let n=!L0(t);return e&&(n||r==!1)?V0(e,t):t}const Nu=e=>e instanceof ft?{...e}:e;function _r(e,t){t=t||{};const r={};function n(d,p,h,y){return j.isPlainObject(d)&&j.isPlainObject(p)?j.merge.call({caseless:y},d,p):j.isPlainObject(p)?j.merge({},p):j.isArray(p)?p.slice():p}function o(d,p,h,y){if(j.isUndefined(p)){if(!j.isUndefined(d))return n(void 0,d,h,y)}else return n(d,p,h,y)}function a(d,p){if(!j.isUndefined(p))return n(void 0,p)}function l(d,p){if(j.isUndefined(p)){if(!j.isUndefined(d))return n(void 0,d)}else return n(void 0,p)}function c(d,p,h){if(h in t)return n(d,p);if(h in e)return n(void 0,d)}const u={url:a,method:a,data:a,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:c,headers:(d,p,h)=>o(Nu(d),Nu(p),h,!0)};return j.forEach(Object.keys({...e,...t}),function(p){const h=u[p]||o,y=h(e[p],t[p],p);j.isUndefined(y)&&h!==c||(r[p]=y)}),r}const _u=e=>{const t=_r({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:a,headers:l,auth:c}=t;if(t.headers=l=ft.from(l),t.url=vu(Iu(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&l.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),j.isFormData(r)){if(tt.hasStandardBrowserEnv||tt.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(j.isFunction(r.getHeaders)){const u=r.getHeaders(),d=["content-type","content-length"];Object.entries(u).forEach(([p,h])=>{d.includes(p.toLowerCase())&&l.set(p,h)})}}if(tt.hasStandardBrowserEnv&&(n&&j.isFunction(n)&&(n=n(t)),n||n!==!1&&j0(t.url))){const u=o&&a&&W0.read(a);u&&l.set(o,u)}return t},U0=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=_u(e);let a=o.data;const l=ft.from(o.headers).normalize();let{responseType:c,onUploadProgress:u,onDownloadProgress:d}=o,p,h,y,x,g;function f(){x&&x(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let b=new XMLHttpRequest;b.open(o.method.toUpperCase(),o.url,!0),b.timeout=o.timeout;function S(){if(!b)return;const T=ft.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),E={data:!c||c==="text"||c==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:T,config:e,request:b};ku(function(I){r(I),f()},function(I){n(I),f()},E),b=null}"onloadend"in b?b.onloadend=S:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(S)},b.onabort=function(){b&&(n(new be("Request aborted",be.ECONNABORTED,e,b)),b=null)},b.onerror=function(C){const E=C&&C.message?C.message:"Network Error",w=new be(E,be.ERR_NETWORK,e,b);w.event=C||null,n(w),b=null},b.ontimeout=function(){let C=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const E=o.transitional||wu;o.timeoutErrorMessage&&(C=o.timeoutErrorMessage),n(new be(C,E.clarifyTimeoutError?be.ETIMEDOUT:be.ECONNABORTED,e,b)),b=null},a===void 0&&l.setContentType(null),"setRequestHeader"in b&&j.forEach(l.toJSON(),function(C,E){b.setRequestHeader(E,C)}),j.isUndefined(o.withCredentials)||(b.withCredentials=!!o.withCredentials),c&&c!=="json"&&(b.responseType=o.responseType),d&&([y,g]=Ei(d,!0),b.addEventListener("progress",y)),u&&b.upload&&([h,x]=Ei(u),b.upload.addEventListener("progress",h),b.upload.addEventListener("loadend",x)),(o.cancelToken||o.signal)&&(p=T=>{b&&(n(!T||T.type?new en(null,e,b):T),b.abort(),b=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const v=$0(o.url);if(v&&tt.protocols.indexOf(v)===-1){n(new be("Unsupported protocol "+v+":",be.ERR_BAD_REQUEST,e));return}b.send(a||null)})},H0=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const a=function(d){if(!o){o=!0,c();const p=d instanceof Error?d:this.reason;n.abort(p instanceof be?p:new en(p instanceof Error?p.message:p))}};let l=t&&setTimeout(()=>{l=null,a(new be(`timeout ${t} of ms exceeded`,be.ETIMEDOUT))},t);const c=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(a):d.removeEventListener("abort",a)}),e=null)};e.forEach(d=>d.addEventListener("abort",a));const{signal:u}=n;return u.unsubscribe=()=>j.asap(c),u}},q0=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},Y0=async function*(e,t){for await(const r of G0(e))yield*q0(r,t)},G0=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Au=(e,t,r,n)=>{const o=Y0(e,t);let a=0,l,c=u=>{l||(l=!0,n&&n(u))};return new ReadableStream({async pull(u){try{const{done:d,value:p}=await o.next();if(d){c(),u.close();return}let h=p.byteLength;if(r){let y=a+=h;r(y)}u.enqueue(new Uint8Array(p))}catch(d){throw c(d),d}},cancel(u){return c(u),o.return()}},{highWaterMark:2})},Mu=64*1024,{isFunction:Ti}=j,K0=(({Request:e,Response:t})=>({Request:e,Response:t}))(j.global),{ReadableStream:Du,TextEncoder:zu}=j.global,$u=(e,...t)=>{try{return!!e(...t)}catch{return!1}},R0=e=>{e=j.merge.call({skipUndefined:!0},K0,e);const{fetch:t,Request:r,Response:n}=e,o=t?Ti(t):typeof fetch=="function",a=Ti(r),l=Ti(n);if(!o)return!1;const c=o&&Ti(Du),u=o&&(typeof zu=="function"?(g=>f=>g.encode(f))(new zu):async g=>new Uint8Array(await new r(g).arrayBuffer())),d=a&&c&&$u(()=>{let g=!1;const f=new r(tt.origin,{body:new Du,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!f}),p=l&&c&&$u(()=>j.isReadableStream(new n("").body)),h={stream:p&&(g=>g.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!h[g]&&(h[g]=(f,b)=>{let S=f&&f[g];if(S)return S.call(f);throw new be(`Response type '${g}' is not supported`,be.ERR_NOT_SUPPORT,b)})});const y=async g=>{if(g==null)return 0;if(j.isBlob(g))return g.size;if(j.isSpecCompliantForm(g))return(await new r(tt.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 u(g)).byteLength},x=async(g,f)=>{const b=j.toFiniteNumber(g.getContentLength());return b??y(f)};return async g=>{let{url:f,method:b,data:S,signal:v,cancelToken:T,timeout:C,onDownloadProgress:E,onUploadProgress:w,responseType:I,headers:z,withCredentials:_="same-origin",fetchOptions:N}=_u(g),L=t||fetch;I=I?(I+"").toLowerCase():"text";let O=H0([v,T&&T.toAbortSignal()],C),M=null;const A=O&&O.unsubscribe&&(()=>{O.unsubscribe()});let $;try{if(w&&d&&b!=="get"&&b!=="head"&&($=await x(z,S))!==0){let W=new r(f,{method:"POST",body:S,duplex:"half"}),K;if(j.isFormData(S)&&(K=W.headers.get("content-type"))&&z.setContentType(K),W.body){const[J,ee]=Ou($,Ei(Pu(w)));S=Au(W.body,Mu,J,ee)}}j.isString(_)||(_=_?"include":"omit");const D=a&&"credentials"in r.prototype,q={...N,signal:O,method:b.toUpperCase(),headers:z.normalize().toJSON(),body:S,duplex:"half",credentials:D?_:void 0};M=a&&new r(f,q);let H=await(a?L(M,N):L(f,q));const U=p&&(I==="stream"||I==="response");if(p&&(E||U&&A)){const W={};["status","statusText","headers"].forEach(Q=>{W[Q]=H[Q]});const K=j.toFiniteNumber(H.headers.get("content-length")),[J,ee]=E&&Ou(K,Ei(Pu(E),!0))||[];H=new n(Au(H.body,Mu,J,()=>{ee&&ee(),A&&A()}),W)}I=I||"text";let B=await h[j.findKey(h,I)||"text"](H,g);return!U&&A&&A(),await new Promise((W,K)=>{ku(W,K,{data:B,headers:ft.from(H.headers),status:H.status,statusText:H.statusText,config:g,request:M})})}catch(D){throw A&&A(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new be("Network Error",be.ERR_NETWORK,g,M),{cause:D.cause||D}):be.from(D,D&&D.code,g,M)}}},X0=new Map,Fu=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,a=[n,o,r];let l=a.length,c=l,u,d,p=X0;for(;c--;)u=a[c],d=p.get(u),d===void 0&&p.set(u,d=c?new Map:R0(t)),p=d;return d};Fu();const Ba={http:m0,xhr:U0,fetch:{get:Fu}};j.forEach(Ba,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Bu=e=>`- ${e}`,J0=e=>j.isFunction(e)||e===null||e===!1;function Q0(e,t){e=j.isArray(e)?e:[e];const{length:r}=e;let n,o;const a={};for(let l=0;l<r;l++){n=e[l];let c;if(o=n,!J0(n)&&(o=Ba[(c=String(n)).toLowerCase()],o===void 0))throw new be(`Unknown adapter '${c}'`);if(o&&(j.isFunction(o)||(o=o.get(t))))break;a[c||"#"+l]=o}if(!o){const l=Object.entries(a).map(([u,d])=>`adapter ${u} `+(d===!1?"is not supported by the environment":"is not available in the build"));let c=r?l.length>1?`since :
|
|
22
|
-
`+l.map(
|
|
23
|
-
`):" "+
|
|
24
|
-
`+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=_r(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&Oi.assertOptions(n,{silentJSONParsing:Vt.transitional(Vt.boolean),forcedJSONParsing:Vt.transitional(Vt.boolean),clarifyTimeoutError:Vt.transitional(Vt.boolean)},!1),o!=null&&(j.isFunction(o)?r.paramsSerializer={serialize:o}:Oi.assertOptions(o,{encode:Vt.function,serialize:Vt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Oi.assertOptions(r,{baseUrl:Vt.spelling("baseURL"),withXsrfToken:Vt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let l=a&&j.merge(a.common,a[r.method]);a&&j.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),r.headers=ft.concat(l,a);const c=[];let u=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(r)===!1||(u=u&&f.synchronous,c.unshift(f.fulfilled,f.rejected))});const d=[];this.interceptors.response.forEach(function(f){d.push(f.fulfilled,f.rejected)});let p,h=0,y;if(!u){const g=[Wu.bind(this),void 0];for(g.unshift(...c),g.push(...d),y=g.length,p=Promise.resolve(r);h<y;)p=p.then(g[h++],g[h++]);return p}y=c.length;let x=r;for(;h<y;){const g=c[h++],f=c[h++];try{x=g(x)}catch(b){f.call(this,b);break}}try{p=Wu.call(this,x)}catch(g){return Promise.reject(g)}for(h=0,y=d.length;h<y;)p=p.then(d[h++],d[h++]);return p}getUri(t){t=_r(this.defaults,t);const r=Iu(t.baseURL,t.url,t.allowAbsoluteUrls);return vu(r,t.params,t.paramsSerializer)}};j.forEach(["delete","get","head","options"],function(t){Ar.prototype[t]=function(r,n){return this.request(_r(n||{},{method:t,url:r,data:(n||{}).data}))}}),j.forEach(["post","put","patch"],function(t){function r(n){return function(a,l,c){return this.request(_r(c||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:l}))}}Ar.prototype[t]=r(),Ar.prototype[t+"Form"]=r(!0)});let ex=class og{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(o=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null}),this.promise.then=o=>{let a;const l=new Promise(c=>{n.subscribe(c),a=c}).then(o);return l.cancel=function(){n.unsubscribe(a)},l},t(function(a,l,c){n.reason||(n.reason=new en(a,l,c),r(n.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new og(function(o){t=o}),cancel:t}}};function tx(e){return function(r){return e.apply(null,r)}}function rx(e){return j.isObject(e)&&e.isAxiosError===!0}const Wa={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(Wa).forEach(([e,t])=>{Wa[t]=e});function Uu(e){const t=new Ar(e),r=iu(Ar.prototype.request,t);return j.extend(r,Ar.prototype,t,{allOwnKeys:!0}),j.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Uu(_r(e,o))},r}const ze=Uu(Qn);ze.Axios=Ar,ze.CanceledError=en,ze.CancelToken=ex,ze.isCancel=Tu,ze.VERSION=Lu,ze.toFormData=wi,ze.AxiosError=be,ze.Cancel=ze.CanceledError,ze.all=function(t){return Promise.all(t)},ze.spread=tx,ze.isAxiosError=rx,ze.mergeConfig=_r,ze.AxiosHeaders=ft,ze.formToJSON=e=>Cu(j.isHTMLForm(e)?new FormData(e):e),ze.getAdapter=ju.getAdapter,ze.HttpStatusCode=Wa,ze.default=ze;const{Axios:Rk,AxiosError:Xk,CanceledError:Jk,isCancel:Qk,CancelToken:Zk,VERSION:eO,all:tO,Cancel:rO,isAxiosError:nO,spread:oO,toFormData:iO,AxiosHeaders:sO,HttpStatusCode:aO,formToJSON:lO,getAdapter:cO,mergeConfig:dO}=ze;function Pi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var nx={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 La(e,t){function r(o,a,l){if(!(typeof document>"u")){l=Pi({},t,l),typeof l.expires=="number"&&(l.expires=new Date(Date.now()+l.expires*864e5)),l.expires&&(l.expires=l.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var u in l)l[u]&&(c+="; "+u,l[u]!==!0&&(c+="="+l[u].split(";")[0]));return document.cookie=o+"="+e.write(a,o)+c}}function n(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var a=document.cookie?document.cookie.split("; "):[],l={},c=0;c<a.length;c++){var u=a[c].split("="),d=u.slice(1).join("=");try{var p=decodeURIComponent(u[0]);if(l[p]=e.read(d,p),o===p)break}catch{}}return o?l[o]:l}}return Object.create({set:r,get:n,remove:function(o,a){r(o,"",Pi({},a,{expires:-1}))},withAttributes:function(o){return La(this.converter,Pi({},this.attributes,o))},withConverter:function(o){return La(Pi({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var lr=La(nx,{path:"/"});const ox={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};let Mr="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:Ys&&Ys.tagName.toUpperCase()==="SCRIPT"&&Ys.src||new URL("product-app.umd.js",document.baseURI).href}<"u"&&ox?.VITE_API_URL)Mr=void 0;else{const e=typeof process<"u"?process:null;e&&e.env&&e.env.VITE_API_URL&&(Mr=process.env.VITE_API_URL)}}catch{}const ix=e=>{Mr=e,vr.defaults.baseURL=Mr},Hu=()=>Mr,sx=e=>{e?lr.set("token",e,{secure:!0,sameSite:"Strict"}):lr.remove("token")},ax=()=>{const e=lr.get("token");return e||null},vr=ze.create({baseURL:Mr,transformRequest:[function(e,t){const r=ax();return r?t.Authorization=`Bearer ${r}`:delete t.Authorization,JSON.stringify(e)}],headers:{Accept:"application/json","Content-Type":"application/json"}});let Va=!1,Ua=null;vr.interceptors.response.use(e=>e,async e=>{const t=e.config,r=e.response;if(r&&(r.status===401||r.status===402)){const n=lr.get("refreshToken");if(n)try{Va||(Va=!0,Ua=ze.post(`${Mr}/api/v1/auth/refresh`,{},{headers:{Authorization:`Bearer ${n}`}}));const o=await Ua,{token:a,refreshToken:l}=o.data;return lr.set("token",a,{secure:!0,sameSite:"Strict"}),lr.set("refreshToken",l),localStorage.setItem("justRefreshed","true"),t.headers.Authorization=`Bearer ${a}`,vr(t)}catch{lr.remove("token"),lr.remove("refreshToken"),localStorage.clear(),window.location.href="/"}finally{Va=!1,Ua=null}else lr.remove("token"),localStorage.clear(),window.location.href="/"}return Promise.reject(e)});const lx=async()=>(await vr.get("/products/columns")).data,Ha=async e=>{const t=e?`/integrations/tenant/${e}`:"/integrations/tenant/";return(await vr.get(t)).data},tn=Ta("products/fetchAllProducts",async(e={},{rejectWithValue:t})=>{try{const o=(await vr.get("/store-inventory",{params:e})).data||{},a=Array.isArray(o.data)?o.data:Array.isArray(o.products)?o.products:Array.isArray(o)?o:[],l=(d,p=0)=>{if(d==null||d==="")return p;const h=Number(d);return Number.isFinite(h)?h:p},c={},u=[];return a.forEach((d,p)=>{if(!d)return;const h=d.inventoryId?`${d.inventoryId}_${d.sku||p}`:d.sku||`item_${p}`;c[h]={id:h,inventoryId:d.inventoryId,storeId:d.storeId,storeName:d.storeName,name:d.productName,productName:d.productName,sku:d.sku,productDescription:d.productDescription,productShortDescription:d.productShortDescription,quantity:l(d.quantity),productWeight:d.productWeight,productImage:d.productImage,brandId:d.brandId,categoryId:d.categoryId,subCategoryId:d.subCategoryId,status:d.status,stock:l(d.stock),inventory:l(d.inventory),inShelf:l(d.inShelf),price:l(d.price),offer:d.offer||"",percentageOff:l(d.percentageOff),discount:d.discount||"",created:d.created,updated:d.updated,updatedAt:d.updated},u.push(h)}),{productIds:u,productsById:c,pagination:o.pagination||null}}catch(r){return console.log("Error fetching products:",r),t(r.response?.data||r.message)}}),cx=ka({name:"product",initialState:{loading:!1,error:null,productsById:{},productIds:[],pagination:null},reducers:{},extraReducers:e=>{e.addCase(tn.pending,t=>{t.loading=!0,t.loadingMessage="Fetching Schedules"}),e.addCase(tn.fulfilled,(t,r)=>{t.loading=!1,t.loadingMessage="",t.error=null,t.productIds=r.payload?.productIds||[],t.productsById=r.payload?.productsById||{},t.pagination=r.payload?.pagination||null}),e.addCase(tn.rejected,(t,r)=>{t.loading=!1,t.error=r.error.message,t.loadingMessage=""})}}).reducer,eo=Ta("ftpSync/testConnection",async({serverAddress:e,username:t,password:r,tenantId:n},{rejectWithValue:o})=>{try{if(!n)throw new Error("Tenant ID is required");const a=e.match(/^(\w+):\/\/(.*?):(\d+)(\/.*)$/);if(!a)throw new Error("Invalid server address format");let[,l,c,u,d]=a;if(l=l.toLowerCase(),l!=="ftp"&&l!=="sftp")throw new Error("type must be 'ftp' or 'sftp'");const p={tenantId:n,type:l,configs:{host:c,port:Number(u),username:t,password:r,path:d.replace(/^\//,"")},entity_type:""};return(await vr.post("/ftp/sync/test-connection",p)).data}catch(a){return o(a.response?.data||a.message)}}),qu=ka({name:"ftpSync",initialState:{loading:!1,error:null,ftpColumns:[],preview:[],configs:{},integration_type:"",tenantId:""},reducers:{clearFtpSyncState(e){e.loading=!1,e.error=null,e.ftpColumns=[],e.preview=[],e.configs={},e.integration_type="",e.tenantId=""}},extraReducers:e=>{e.addCase(eo.pending,t=>{t.loading=!0,t.error=null}),e.addCase(eo.fulfilled,(t,r)=>{t.loading=!1,t.error=null,t.ftpColumns=r.payload.ftp_columns||[],t.preview=r.payload.preview||[],t.configs=r.payload.configs||{},t.integration_type=r.payload.integration_type||"",t.tenantId=r.payload.tenantId||""}),e.addCase(eo.rejected,(t,r)=>{t.loading=!1,t.error=r.payload||r.error.message})}}),{clearFtpSyncState:hO}=qu.actions,dx=qu.reducer,ux="CLEAR_FTP_SYNC_SUCCESS",px=()=>({type:ux});console.log("[FTP SYNC] actions.js loaded");const Yu="SET_FTP_SYNC_DATA",Gu="SAVE_FTP_SYNC_REQUEST",Ku="SAVE_FTP_SYNC_SUCCESS",Ru="SAVE_FTP_SYNC_FAILURE",rn=e=>(console.log("[FTP SYNC] JSON object updated:",e),{type:Yu,payload:e}),fx=e=>async t=>{console.log("[FTP SYNC] About to call /ftp/sync/save with JSON:",e),t({type:Gu});try{const r="https://omnichannel-apiv1.airaops.com",n={"Content-Type":"application/json"};console.log("[FTP SYNC] Request headers:",n);const o=await ze.post(`${r}/ftp/sync/save`,e,{headers:n});return console.log("[FTP SYNC] API Response:",o),console.log("API Call Successfully"),t({type:Ku,payload:o.data}),o.data}catch(r){throw r.response&&console.error("[FTP SYNC] API Error Response:",r.response),console.error("[FTP SYNC] API Error:",r),t({type:Ru,error:r}),r}},hx={syncData:{tenantId:"",type:"",configs:{host:"",port:"",username:"",password:"",path:"",sync_frequency:"",sync_time:""},entity_type:"",mappings:[]},loading:!1,error:null,result:null,success:!1};function gx(e=hx,t){switch(t.type){case Yu:return{...e,syncData:{...e.syncData,...t.payload}};case Gu:return{...e,loading:!0,error:null,success:!1};case Ku:return{...e,loading:!1,result:t.payload,success:!0};case Ru:return{...e,loading:!1,error:t.error,success:!1};case"CLEAR_FTP_SYNC_SUCCESS":return{...e,success:!1};default:return e}}const bx="FETCH_PRODUCT_COLUMNS_REQUEST",yx="FETCH_PRODUCT_COLUMNS_SUCCESS",mx="FETCH_PRODUCT_COLUMNS_FAILURE",xx=async()=>await lx(),vx={loading:!1,columns:[],error:null},Sx=(e=vx,t)=>{switch(t.type){case bx:return{...e,loading:!0,error:null};case yx:return{...e,loading:!1,columns:t.payload};case mx:return{...e,loading:!1,error:t.payload};default:return e}},Ii=Ta("updateproductsetting/updateProductSetting",async({tenantId:e,data:t},{rejectWithValue:r})=>{try{const n=await Ha(e),o=n.data&&n.data[0];return!o||!o.id?r("No integration found for this tenant"):await vr.patch(`/integrations/${o.id}`,t)}catch(n){return r(n)}}),wx=ka({name:"updateproductsetting",initialState:{loading:!1,error:null,data:null},reducers:{},extraReducers:e=>{e.addCase(Ii.pending,t=>{t.loading=!0,t.error=null}).addCase(Ii.fulfilled,(t,r)=>{t.loading=!1,t.data=r.payload,t.error=null}).addCase(Ii.rejected,(t,r)=>{t.loading=!1,t.error=r.payload||"Update failed"})}}).reducer;var Ni={},_i={},Xu;function Cx(){if(Xu)return _i;Xu=1,_i.__esModule=!0,_i.default=o;function e(a){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(a)}function t(){}var r={getItem:t,setItem:t,removeItem:t};function n(a){if((typeof self>"u"?"undefined":e(self))!=="object"||!(a in self))return!1;try{var l=self[a],c="redux-persist ".concat(a," test");l.setItem(c,"test"),l.getItem(c),l.removeItem(c)}catch{return process.env.NODE_ENV!=="production"&&console.warn("redux-persist ".concat(a," test failed, persistence will be disabled.")),!1}return!0}function o(a){var l="".concat(a,"Storage");return n(l)?self[l]:(process.env.NODE_ENV!=="production"&&console.error("redux-persist failed to create sync storage. falling back to noop storage."),r)}return _i}var Ju;function Ex(){if(Ju)return Ni;Ju=1,Ni.__esModule=!0,Ni.default=r;var e=t(Cx());function t(n){return n&&n.__esModule?n:{default:n}}function r(n){var o=(0,e.default)(n);return{getItem:function(l){return new Promise(function(c,u){c(o.getItem(l))})},setItem:function(l,c){return new Promise(function(u,d){u(o.setItem(l,c))})},removeItem:function(l){return new Promise(function(c,u){c(o.removeItem(l))})}}}return Ni}var Tx=Ex();const kx={key:"auth",storage:typeof window<"u"?nd(Tx)("local"):{getItem(){return Promise.resolve(null)},setItem(e,t){return Promise.resolve(t)},removeItem(){return Promise.resolve()}},whitelist:["auth"]},Ox=fd({products:cx,ftpSync:dx,ftpSyncSave:gx,productColumns:Sx,updateproductsetting:wx}),Px=Om(kx,Ox),Qu=Gy({reducer:Px,middleware:e=>e({serializableCheck:!1})}),Ix=Mm(Qu),Zu=F.createContext(null),Nx=({children:e,apiUrl:t,authToken:r,tenantId:n})=>(F.useEffect(()=>{t&&ix(t)},[t]),F.useEffect(()=>{sx(r||null)},[r]),s.jsx(Zu.Provider,{value:{apiUrl:t,tenantId:n},children:e})),Ai=()=>{const e=F.useContext(Zu);return e||{apiUrl:void 0,tenantId:"8cbb6786-6f6c-45fe-a41a-879f826897c4"}},to={black:"#000",white:"#fff"},nn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},on={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},sn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},an={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},ln={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},ro={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},_x={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 Ut(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}const no="$$material";function Mi(){return Mi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mi.apply(null,arguments)}function Ax(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 Mx(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 Dx=(function(){function e(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Mx(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=Ax(o);try{a.insertRule(n,a.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e})(),rt="-ms-",Di="-moz-",we="-webkit-",ep="comm",qa="rule",Ya="decl",zx="@import",tp="@keyframes",$x="@layer",Fx=Math.abs,zi=String.fromCharCode,Bx=Object.assign;function jx(e,t){return Je(e,0)^45?(((t<<2^Je(e,0))<<2^Je(e,1))<<2^Je(e,2))<<2^Je(e,3):0}function rp(e){return e.trim()}function Wx(e,t){return(e=t.exec(e))?e[0]:e}function Ce(e,t,r){return e.replace(t,r)}function Ga(e,t){return e.indexOf(t)}function Je(e,t){return e.charCodeAt(t)|0}function oo(e,t,r){return e.slice(t,r)}function Ht(e){return e.length}function Ka(e){return e.length}function $i(e,t){return t.push(e),e}function Lx(e,t){return e.map(t).join("")}var Fi=1,cn=1,np=0,ht=0,qe=0,dn="";function Bi(e,t,r,n,o,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:Fi,column:cn,length:l,return:""}}function io(e,t){return Bx(Bi("",null,null,"",null,null,0),e,{length:-e.length},t)}function Vx(){return qe}function Ux(){return qe=ht>0?Je(dn,--ht):0,cn--,qe===10&&(cn=1,Fi--),qe}function vt(){return qe=ht<np?Je(dn,ht++):0,cn++,qe===10&&(cn=1,Fi++),qe}function qt(){return Je(dn,ht)}function ji(){return ht}function so(e,t){return oo(dn,e,t)}function ao(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 op(e){return Fi=cn=1,np=Ht(dn=e),ht=0,[]}function ip(e){return dn="",e}function Wi(e){return rp(so(ht-1,Ra(e===91?e+2:e===40?e+1:e)))}function Hx(e){for(;(qe=qt())&&qe<33;)vt();return ao(e)>2||ao(qe)>3?"":" "}function qx(e,t){for(;--t&&vt()&&!(qe<48||qe>102||qe>57&&qe<65||qe>70&&qe<97););return so(e,ji()+(t<6&&qt()==32&&vt()==32))}function Ra(e){for(;vt();)switch(qe){case e:return ht;case 34:case 39:e!==34&&e!==39&&Ra(qe);break;case 40:e===41&&Ra(e);break;case 92:vt();break}return ht}function Yx(e,t){for(;vt()&&e+qe!==57;)if(e+qe===84&&qt()===47)break;return"/*"+so(t,ht-1)+"*"+zi(e===47?e:vt())}function Gx(e){for(;!ao(qt());)vt();return so(e,ht)}function Kx(e){return ip(Li("",null,null,null,[""],e=op(e),0,[0],e))}function Li(e,t,r,n,o,a,l,c,u){for(var d=0,p=0,h=l,y=0,x=0,g=0,f=1,b=1,S=1,v=0,T="",C=o,E=a,w=n,I=T;b;)switch(g=v,v=vt()){case 40:if(g!=108&&Je(I,h-1)==58){Ga(I+=Ce(Wi(v),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:I+=Wi(v);break;case 9:case 10:case 13:case 32:I+=Hx(g);break;case 92:I+=qx(ji()-1,7);continue;case 47:switch(qt()){case 42:case 47:$i(Rx(Yx(vt(),ji()),t,r),u);break;default:I+="/"}break;case 123*f:c[d++]=Ht(I)*S;case 125*f:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+p:S==-1&&(I=Ce(I,/\f/g,"")),x>0&&Ht(I)-h&&$i(x>32?ap(I+";",n,r,h-1):ap(Ce(I," ","")+";",n,r,h-2),u);break;case 59:I+=";";default:if($i(w=sp(I,t,r,d,p,o,c,T,C=[],E=[],h),a),v===123)if(p===0)Li(I,t,w,w,C,a,h,c,E);else switch(y===99&&Je(I,3)===110?100:y){case 100:case 108:case 109:case 115:Li(e,w,w,n&&$i(sp(e,w,w,0,0,o,c,T,o,C=[],h),E),o,E,h,c,n?C:E);break;default:Li(I,w,w,w,[""],E,0,c,E)}}d=p=x=0,f=S=1,T=I="",h=l;break;case 58:h=1+Ht(I),x=g;default:if(f<1){if(v==123)--f;else if(v==125&&f++==0&&Ux()==125)continue}switch(I+=zi(v),v*f){case 38:S=p>0?1:(I+="\f",-1);break;case 44:c[d++]=(Ht(I)-1)*S,S=1;break;case 64:qt()===45&&(I+=Wi(vt())),y=qt(),p=h=Ht(T=I+=Gx(ji())),v++;break;case 45:g===45&&Ht(I)==2&&(f=0)}}return a}function sp(e,t,r,n,o,a,l,c,u,d,p){for(var h=o-1,y=o===0?a:[""],x=Ka(y),g=0,f=0,b=0;g<n;++g)for(var S=0,v=oo(e,h+1,h=Fx(f=l[g])),T=e;S<x;++S)(T=rp(f>0?y[S]+" "+v:Ce(v,/&\f/g,y[S])))&&(u[b++]=T);return Bi(e,t,r,o===0?qa:c,u,d,p)}function Rx(e,t,r){return Bi(e,t,r,ep,zi(Vx()),oo(e,2,-2),0)}function ap(e,t,r,n){return Bi(e,t,r,Ya,oo(e,0,n),oo(e,n+1,-1),n)}function un(e,t){for(var r="",n=Ka(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Xx(e,t,r,n){switch(e.type){case $x:if(e.children.length)break;case zx:case Ya:return e.return=e.return||e.value;case ep:return"";case tp:return e.return=e.value+"{"+un(e.children,n)+"}";case qa:e.value=e.props.join(",")}return Ht(r=un(e.children,n))?e.return=e.value+"{"+r+"}":""}function Jx(e){var t=Ka(e);return function(r,n,o,a){for(var l="",c=0;c<t;c++)l+=e[c](r,n,o,a)||"";return l}}function Qx(e){return function(t){t.root||(t=t.return)&&e(t)}}function lp(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Zx=function(t,r,n){for(var o=0,a=0;o=a,a=qt(),o===38&&a===12&&(r[n]=1),!ao(a);)vt();return so(t,ht)},ev=function(t,r){var n=-1,o=44;do switch(ao(o)){case 0:o===38&&qt()===12&&(r[n]=1),t[n]+=Zx(ht-1,r,n);break;case 2:t[n]+=Wi(o);break;case 4:if(o===44){t[++n]=qt()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=zi(o)}while(o=vt());return t},tv=function(t,r){return ip(ev(op(t),r))},cp=new WeakMap,rv=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!cp.get(n))&&!o){cp.set(t,!0);for(var a=[],l=tv(r,a),c=n.props,u=0,d=0;u<l.length;u++)for(var p=0;p<c.length;p++,d++)t.props[d]=a[u]?l[u].replace(/&\f/g,c[p]):c[p]+" "+l[u]}}},nv=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function dp(e,t){switch(jx(e,t)){case 5103:return we+"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 we+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return we+e+Di+e+rt+e+e;case 6828:case 4268:return we+e+rt+e+e;case 6165:return we+e+rt+"flex-"+e+e;case 5187:return we+e+Ce(e,/(\w+).+(:[^]+)/,we+"box-$1$2"+rt+"flex-$1$2")+e;case 5443:return we+e+rt+"flex-item-"+Ce(e,/flex-|-self/,"")+e;case 4675:return we+e+rt+"flex-line-pack"+Ce(e,/align-content|flex-|-self/,"")+e;case 5548:return we+e+rt+Ce(e,"shrink","negative")+e;case 5292:return we+e+rt+Ce(e,"basis","preferred-size")+e;case 6060:return we+"box-"+Ce(e,"-grow","")+we+e+rt+Ce(e,"grow","positive")+e;case 4554:return we+Ce(e,/([^-])(transform)/g,"$1"+we+"$2")+e;case 6187:return Ce(Ce(Ce(e,/(zoom-|grab)/,we+"$1"),/(image-set)/,we+"$1"),e,"")+e;case 5495:case 3959:return Ce(e,/(image-set\([^]*)/,we+"$1$`$1");case 4968:return Ce(Ce(e,/(.+:)(flex-)?(.*)/,we+"box-pack:$3"+rt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+we+e+e;case 4095:case 3583:case 4068:case 2532:return Ce(e,/(.+)-inline(.+)/,we+"$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(Ht(e)-1-t>6)switch(Je(e,t+1)){case 109:if(Je(e,t+4)!==45)break;case 102:return Ce(e,/(.+:)(.+)-([^]+)/,"$1"+we+"$2-$3$1"+Di+(Je(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ga(e,"stretch")?dp(Ce(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Je(e,t+1)!==115)break;case 6444:switch(Je(e,Ht(e)-3-(~Ga(e,"!important")&&10))){case 107:return Ce(e,":",":"+we)+e;case 101:return Ce(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+we+(Je(e,14)===45?"inline-":"")+"box$3$1"+we+"$2$3$1"+rt+"$2box$3")+e}break;case 5936:switch(Je(e,t+11)){case 114:return we+e+rt+Ce(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return we+e+rt+Ce(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return we+e+rt+Ce(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return we+e+rt+e+e}return e}var ov=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Ya:t.return=dp(t.value,t.length);break;case tp:return un([io(t,{value:Ce(t.value,"@","@"+we)})],o);case qa:if(t.length)return Lx(t.props,function(a){switch(Wx(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return un([io(t,{props:[Ce(a,/:(read-\w+)/,":"+Di+"$1")]})],o);case"::placeholder":return un([io(t,{props:[Ce(a,/:(plac\w+)/,":"+we+"input-$1")]}),io(t,{props:[Ce(a,/:(plac\w+)/,":"+Di+"$1")]}),io(t,{props:[Ce(a,/:(plac\w+)/,rt+"input-$1")]})],o)}return""})}},iv=[ov],sv=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(f){var b=f.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var o=t.stylisPlugins||iv,a={},l,c=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(f){for(var b=f.getAttribute("data-emotion").split(" "),S=1;S<b.length;S++)a[b[S]]=!0;c.push(f)});var u,d=[rv,nv];{var p,h=[Xx,Qx(function(f){p.insert(f)})],y=Jx(d.concat(o,h)),x=function(b){return un(Kx(b),y)};u=function(b,S,v,T){p=v,x(b?b+"{"+S.styles+"}":S.styles),T&&(g.inserted[S.name]=!0)}}var g={key:r,sheet:new Dx({key:r,container:l,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:u};return g.sheet.hydrate(c),g},Vi={exports:{}},Ee={};var up;function av(){if(up)return Ee;up=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,x=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,S=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function T(E){if(typeof E=="object"&&E!==null){var w=E.$$typeof;switch(w){case t:switch(E=E.type,E){case u:case d:case n:case a:case o:case h:return E;default:switch(E=E&&E.$$typeof,E){case c:case p:case g:case x:case l:return E;default:return w}}case r:return w}}}function C(E){return T(E)===d}return Ee.AsyncMode=u,Ee.ConcurrentMode=d,Ee.ContextConsumer=c,Ee.ContextProvider=l,Ee.Element=t,Ee.ForwardRef=p,Ee.Fragment=n,Ee.Lazy=g,Ee.Memo=x,Ee.Portal=r,Ee.Profiler=a,Ee.StrictMode=o,Ee.Suspense=h,Ee.isAsyncMode=function(E){return C(E)||T(E)===u},Ee.isConcurrentMode=C,Ee.isContextConsumer=function(E){return T(E)===c},Ee.isContextProvider=function(E){return T(E)===l},Ee.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},Ee.isForwardRef=function(E){return T(E)===p},Ee.isFragment=function(E){return T(E)===n},Ee.isLazy=function(E){return T(E)===g},Ee.isMemo=function(E){return T(E)===x},Ee.isPortal=function(E){return T(E)===r},Ee.isProfiler=function(E){return T(E)===a},Ee.isStrictMode=function(E){return T(E)===o},Ee.isSuspense=function(E){return T(E)===h},Ee.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===n||E===d||E===a||E===o||E===h||E===y||typeof E=="object"&&E!==null&&(E.$$typeof===g||E.$$typeof===x||E.$$typeof===l||E.$$typeof===c||E.$$typeof===p||E.$$typeof===b||E.$$typeof===S||E.$$typeof===v||E.$$typeof===f)},Ee.typeOf=T,Ee}var Te={};var pp;function lv(){return pp||(pp=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,x=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,S=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function T(Y){return typeof Y=="string"||typeof Y=="function"||Y===n||Y===d||Y===a||Y===o||Y===h||Y===y||typeof Y=="object"&&Y!==null&&(Y.$$typeof===g||Y.$$typeof===x||Y.$$typeof===l||Y.$$typeof===c||Y.$$typeof===p||Y.$$typeof===b||Y.$$typeof===S||Y.$$typeof===v||Y.$$typeof===f)}function C(Y){if(typeof Y=="object"&&Y!==null){var ge=Y.$$typeof;switch(ge){case t:var oe=Y.type;switch(oe){case u:case d:case n:case a:case o:case h:return oe;default:var ve=oe&&oe.$$typeof;switch(ve){case c:case p:case g:case x:case l:return ve;default:return ge}}case r:return ge}}}var E=u,w=d,I=c,z=l,_=t,N=p,L=n,O=g,M=x,A=r,$=a,D=o,q=h,H=!1;function U(Y){return H||(H=!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(Y)||C(Y)===u}function B(Y){return C(Y)===d}function W(Y){return C(Y)===c}function K(Y){return C(Y)===l}function J(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===t}function ee(Y){return C(Y)===p}function Q(Y){return C(Y)===n}function Z(Y){return C(Y)===g}function re(Y){return C(Y)===x}function ue(Y){return C(Y)===r}function ne(Y){return C(Y)===a}function X(Y){return C(Y)===o}function ie(Y){return C(Y)===h}Te.AsyncMode=E,Te.ConcurrentMode=w,Te.ContextConsumer=I,Te.ContextProvider=z,Te.Element=_,Te.ForwardRef=N,Te.Fragment=L,Te.Lazy=O,Te.Memo=M,Te.Portal=A,Te.Profiler=$,Te.StrictMode=D,Te.Suspense=q,Te.isAsyncMode=U,Te.isConcurrentMode=B,Te.isContextConsumer=W,Te.isContextProvider=K,Te.isElement=J,Te.isForwardRef=ee,Te.isFragment=Q,Te.isLazy=Z,Te.isMemo=re,Te.isPortal=ue,Te.isProfiler=ne,Te.isStrictMode=X,Te.isSuspense=ie,Te.isValidElementType=T,Te.typeOf=C})()),Te}var fp;function Xa(){return fp||(fp=1,process.env.NODE_ENV==="production"?Vi.exports=av():Vi.exports=lv()),Vi.exports}var Ja,hp;function cv(){if(hp)return Ja;hp=1;var e=Xa(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]=n,a[e.Memo]=o;function l(g){return e.isMemo(g)?o:a[g.$$typeof]||t}var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,y=Object.prototype;function x(g,f,b){if(typeof f!="string"){if(y){var S=h(f);S&&S!==y&&x(g,S,b)}var v=u(f);d&&(v=v.concat(d(f)));for(var T=l(g),C=l(f),E=0;E<v.length;++E){var w=v[E];if(!r[w]&&!(b&&b[w])&&!(C&&C[w])&&!(T&&T[w])){var I=p(f,w);try{c(g,w,I)}catch{}}}}return g}return Ja=x,Ja}cv();var dv=!0;function gp(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var Qa=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||dv===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},Za=function(t,r,n){Qa(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function uv(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 pv={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},fv=/[A-Z]|^ms/g,hv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bp=function(t){return t.charCodeAt(1)===45},yp=function(t){return t!=null&&typeof t!="boolean"},el=lp(function(e){return bp(e)?e:e.replace(fv,"-$&").toLowerCase()}),mp=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(hv,function(n,o,a){return Yt={name:o,styles:a,next:Yt},o})}return pv[t]!==1&&!bp(t)&&typeof r=="number"&&r!==0?r+"px":r};function lo(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Yt={name:o.name,styles:o.styles,next:Yt},o.name;var a=r;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)Yt={name:l.name,styles:l.styles,next:Yt},l=l.next;var c=a.styles+";";return c}return gv(e,t,r)}case"function":{if(e!==void 0){var u=Yt,d=r(e);return Yt=u,lo(e,t,d)}break}}var p=r;if(t==null)return p;var h=t[p];return h!==void 0?h:p}function gv(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=lo(e,t,r[o])+";";else for(var a in r){var l=r[a];if(typeof l!="object"){var c=l;t!=null&&t[c]!==void 0?n+=a+"{"+t[c]+"}":yp(c)&&(n+=el(a)+":"+mp(a,c)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var u=0;u<l.length;u++)yp(l[u])&&(n+=el(a)+":"+mp(a,l[u])+";");else{var d=lo(e,t,l);switch(a){case"animation":case"animationName":{n+=el(a)+":"+d+";";break}default:n+=a+"{"+d+"}"}}}return n}var xp=/label:\s*([^\s;{]+)\s*(;|$)/g,Yt;function co(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";Yt=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,o+=lo(r,t,a);else{var l=a;o+=l[0]}for(var c=1;c<e.length;c++)if(o+=lo(r,t,e[c]),n){var u=a;o+=u[c]}xp.lastIndex=0;for(var d="",p;(p=xp.exec(o))!==null;)d+="-"+p[1];var h=uv(o)+d;return{name:h,styles:o,next:Yt}}var bv=function(t){return t()},vp=k.useInsertionEffect?k.useInsertionEffect:!1,Sp=vp||bv,wp=vp||k.useLayoutEffect,Cp=k.createContext(typeof HTMLElement<"u"?sv({key:"css"}):null);Cp.Provider;var tl=function(t){return F.forwardRef(function(r,n){var o=F.useContext(Cp);return t(r,o,n)})},Ui=k.createContext({}),rl={}.hasOwnProperty,nl="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",yv=function(t,r){var n={};for(var o in r)rl.call(r,o)&&(n[o]=r[o]);return n[nl]=t,n},mv=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Qa(r,n,o),Sp(function(){return Za(r,n,o)}),null},xv=tl(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[nl],a=[n],l="";typeof e.className=="string"?l=gp(t.registered,a,e.className):e.className!=null&&(l=e.className+" ");var c=co(a,void 0,k.useContext(Ui));l+=t.key+"-"+c.name;var u={};for(var d in e)rl.call(e,d)&&d!=="css"&&d!==nl&&(u[d]=e[d]);return u.className=l,r&&(u.ref=r),k.createElement(k.Fragment,null,k.createElement(mv,{cache:t,serialized:c,isStringTag:typeof o=="string"}),k.createElement(o,u))}),vv=xv,Ep=function(t,r){var n=arguments;if(r==null||!rl.call(r,"css"))return k.createElement.apply(void 0,n);var o=n.length,a=new Array(o);a[0]=vv,a[1]=yv(t,r);for(var l=2;l<o;l++)a[l]=n[l];return k.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Ep||(Ep={}));var Sv=tl(function(e,t){var r=e.styles,n=co([r],void 0,k.useContext(Ui)),o=k.useRef();return wp(function(){var a=t.key+"-global",l=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),c=!1,u=document.querySelector('style[data-emotion="'+a+" "+n.name+'"]');return t.sheet.tags.length&&(l.before=t.sheet.tags[0]),u!==null&&(c=!0,u.setAttribute("data-emotion",a),l.hydrate([u])),o.current=[l,c],function(){l.flush()}},[t]),wp(function(){var a=o.current,l=a[0],c=a[1];if(c){a[1]=!1;return}if(n.next!==void 0&&Za(t,n.next,!0),l.tags.length){var u=l.tags[l.tags.length-1].nextElementSibling;l.before=u,l.flush()}t.insert("",n,l,!1)},[t,n.name]),null});function ol(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return co(t)}function uo(){var e=ol.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 wv=/^((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)-.*))$/,Cv=lp(function(e){return wv.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Ev=Cv,Tv=function(t){return t!=="theme"},Tp=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Ev:Tv},kp=function(t,r,n){var o;if(r){var a=r.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(l){return t.__emotion_forwardProp(l)&&a(l)}:a}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},kv=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Qa(r,n,o),Sp(function(){return Za(r,n,o)}),null},Ov=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,l;r!==void 0&&(a=r.label,l=r.target);var c=kp(t,r,n),u=c||Tp(o),d=!u("as");return function(){var p=arguments,h=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&h.push("label:"+a+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{var y=p[0];h.push(y[0]);for(var x=p.length,g=1;g<x;g++)h.push(p[g],y[g])}var f=tl(function(b,S,v){var T=d&&b.as||o,C="",E=[],w=b;if(b.theme==null){w={};for(var I in b)w[I]=b[I];w.theme=k.useContext(Ui)}typeof b.className=="string"?C=gp(S.registered,E,b.className):b.className!=null&&(C=b.className+" ");var z=co(h.concat(E),S.registered,w);C+=S.key+"-"+z.name,l!==void 0&&(C+=" "+l);var _=d&&c===void 0?Tp(T):u,N={};for(var L in b)d&&L==="as"||_(L)&&(N[L]=b[L]);return N.className=C,v&&(N.ref=v),k.createElement(k.Fragment,null,k.createElement(kv,{cache:S,serialized:z,isStringTag:typeof T=="string"}),k.createElement(T,N))});return f.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=o,f.__emotion_styles=h,f.__emotion_forwardProp=c,Object.defineProperty(f,"toString",{value:function(){return"."+l}}),f.withComponent=function(b,S){var v=e(b,Mi({},r,S,{shouldForwardProp:kp(f,S,!0)}));return v.apply(void 0,h)},f}},Pv=["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"],il=Ov.bind(null);Pv.forEach(function(e){il[e]=il(e)});var Hi={exports:{}};var sl,Op;function Iv(){if(Op)return sl;Op=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(l).map(function(p){return l[p]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(p){d[p]=p}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return sl=o()?Object.assign:function(a,l){for(var c,u=n(a),d,p=1;p<arguments.length;p++){c=Object(arguments[p]);for(var h in c)t.call(c,h)&&(u[h]=c[h]);if(e){d=e(c);for(var y=0;y<d.length;y++)r.call(c,d[y])&&(u[d[y]]=c[d[y]])}}return u},sl}var al,Pp;function ll(){if(Pp)return al;Pp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return al=e,al}var cl,Ip;function Np(){return Ip||(Ip=1,cl=Function.call.bind(Object.prototype.hasOwnProperty)),cl}var dl,_p;function Nv(){if(_p)return dl;_p=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=ll(),r={},n=Np();e=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function o(a,l,c,u,d){if(process.env.NODE_ENV!=="production"){for(var p in a)if(n(a,p)){var h;try{if(typeof a[p]!="function"){var y=Error((u||"React class")+": "+c+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}h=a[p](l,p,u,c,null,t)}catch(g){h=g}if(h&&!(h instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+p+"` 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 r)){r[h.message]=!0;var x=d?d():"";e("Failed "+c+" type: "+h.message+(x??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},dl=o,dl}var ul,Ap;function _v(){if(Ap)return ul;Ap=1;var e=Xa(),t=Iv(),r=ll(),n=Np(),o=Nv(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function l(){return null}return ul=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function h(B){var W=B&&(d&&B[d]||B[p]);if(typeof W=="function")return W}var y="<<anonymous>>",x={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:v(),arrayOf:T,element:C(),elementType:E(),instanceOf:w,node:N(),objectOf:z,oneOf:I,oneOfType:_,shape:O,exact:M};function g(B,W){return B===W?B!==0||1/B===1/W:B!==B&&W!==W}function f(B,W){this.message=B,this.data=W&&typeof W=="object"?W:{},this.stack=""}f.prototype=Error.prototype;function b(B){if(process.env.NODE_ENV!=="production")var W={},K=0;function J(Q,Z,re,ue,ne,X,ie){if(ue=ue||y,X=X||re,ie!==r){if(u){var Y=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 Y.name="Invariant Violation",Y}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ge=ue+":"+re;!W[ge]&&K<3&&(a("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+ue+"`. 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."),W[ge]=!0,K++)}}return Z[re]==null?Q?Z[re]===null?new f("The "+ne+" `"+X+"` is marked as required "+("in `"+ue+"`, but its value is `null`.")):new f("The "+ne+" `"+X+"` is marked as required in "+("`"+ue+"`, but its value is `undefined`.")):null:B(Z,re,ue,ne,X)}var ee=J.bind(null,!1);return ee.isRequired=J.bind(null,!0),ee}function S(B){function W(K,J,ee,Q,Z,re){var ue=K[J],ne=D(ue);if(ne!==B){var X=q(ue);return new f("Invalid "+Q+" `"+Z+"` of type "+("`"+X+"` supplied to `"+ee+"`, expected ")+("`"+B+"`."),{expectedType:B})}return null}return b(W)}function v(){return b(l)}function T(B){function W(K,J,ee,Q,Z){if(typeof B!="function")return new f("Property `"+Z+"` of component `"+ee+"` has invalid PropType notation inside arrayOf.");var re=K[J];if(!Array.isArray(re)){var ue=D(re);return new f("Invalid "+Q+" `"+Z+"` of type "+("`"+ue+"` supplied to `"+ee+"`, expected an array."))}for(var ne=0;ne<re.length;ne++){var X=B(re,ne,ee,Q,Z+"["+ne+"]",r);if(X instanceof Error)return X}return null}return b(W)}function C(){function B(W,K,J,ee,Q){var Z=W[K];if(!c(Z)){var re=D(Z);return new f("Invalid "+ee+" `"+Q+"` of type "+("`"+re+"` supplied to `"+J+"`, expected a single ReactElement."))}return null}return b(B)}function E(){function B(W,K,J,ee,Q){var Z=W[K];if(!e.isValidElementType(Z)){var re=D(Z);return new f("Invalid "+ee+" `"+Q+"` of type "+("`"+re+"` supplied to `"+J+"`, expected a single ReactElement type."))}return null}return b(B)}function w(B){function W(K,J,ee,Q,Z){if(!(K[J]instanceof B)){var re=B.name||y,ue=U(K[J]);return new f("Invalid "+Q+" `"+Z+"` of type "+("`"+ue+"` supplied to `"+ee+"`, expected ")+("instance of `"+re+"`."))}return null}return b(W)}function I(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("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])."):a("Invalid argument supplied to oneOf, expected an array.")),l;function W(K,J,ee,Q,Z){for(var re=K[J],ue=0;ue<B.length;ue++)if(g(re,B[ue]))return null;var ne=JSON.stringify(B,function(ie,Y){var ge=q(Y);return ge==="symbol"?String(Y):Y});return new f("Invalid "+Q+" `"+Z+"` of value `"+String(re)+"` "+("supplied to `"+ee+"`, expected one of "+ne+"."))}return b(W)}function z(B){function W(K,J,ee,Q,Z){if(typeof B!="function")return new f("Property `"+Z+"` of component `"+ee+"` has invalid PropType notation inside objectOf.");var re=K[J],ue=D(re);if(ue!=="object")return new f("Invalid "+Q+" `"+Z+"` of type "+("`"+ue+"` supplied to `"+ee+"`, expected an object."));for(var ne in re)if(n(re,ne)){var X=B(re,ne,ee,Q,Z+"."+ne,r);if(X instanceof Error)return X}return null}return b(W)}function _(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var W=0;W<B.length;W++){var K=B[W];if(typeof K!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+H(K)+" at index "+W+"."),l}function J(ee,Q,Z,re,ue){for(var ne=[],X=0;X<B.length;X++){var ie=B[X],Y=ie(ee,Q,Z,re,ue,r);if(Y==null)return null;Y.data&&n(Y.data,"expectedType")&&ne.push(Y.data.expectedType)}var ge=ne.length>0?", expected one of type ["+ne.join(", ")+"]":"";return new f("Invalid "+re+" `"+ue+"` supplied to "+("`"+Z+"`"+ge+"."))}return b(J)}function N(){function B(W,K,J,ee,Q){return A(W[K])?null:new f("Invalid "+ee+" `"+Q+"` supplied to "+("`"+J+"`, expected a ReactNode."))}return b(B)}function L(B,W,K,J,ee){return new f((B||"React class")+": "+W+" type `"+K+"."+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ee+"`.")}function O(B){function W(K,J,ee,Q,Z){var re=K[J],ue=D(re);if(ue!=="object")return new f("Invalid "+Q+" `"+Z+"` of type `"+ue+"` "+("supplied to `"+ee+"`, expected `object`."));for(var ne in B){var X=B[ne];if(typeof X!="function")return L(ee,Q,Z,ne,q(X));var ie=X(re,ne,ee,Q,Z+"."+ne,r);if(ie)return ie}return null}return b(W)}function M(B){function W(K,J,ee,Q,Z){var re=K[J],ue=D(re);if(ue!=="object")return new f("Invalid "+Q+" `"+Z+"` of type `"+ue+"` "+("supplied to `"+ee+"`, expected `object`."));var ne=t({},K[J],B);for(var X in ne){var ie=B[X];if(n(B,X)&&typeof ie!="function")return L(ee,Q,Z,X,q(ie));if(!ie)return new f("Invalid "+Q+" `"+Z+"` key `"+X+"` supplied to `"+ee+"`.\nBad object: "+JSON.stringify(K[J],null," ")+`
|
|
25
|
-
Valid keys: `+JSON.stringify(Object.keys(B),null," "));var
|
|
26
|
-
`)):n.some(
|
|
27
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:
|
|
17
|
+
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),c||(f.measureTime(()=>{const m=h.getState(),x=sl(m,"",t,r,s,u);if(x){const{keyPath:b,value:w}=x;console.error(`A non-serializable value was detected in the state, in the path: \`${b}\`. Value:`,w,`
|
|
18
|
+
Take a look at the reducer(s) handling this action type: ${g.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()),y}}}function Xi(e){return typeof e=="boolean"}var s0=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:o=!0,actionCreatorCheck:s=!0}=t??{};let l=new Pp;if(r&&(Xi(r)?l.push(Xb):l.push(Jb(r.extraArgument))),process.env.NODE_ENV!=="production"){if(n){let c={};Xi(n)||(c=n),l.unshift(o0(c))}if(o){let c={};Xi(o)||(c=o),l.push(i0(c))}if(s){let c={};Xi(s)||(c=s),l.unshift(t0(c))}}return l},a0="RTK_autoBatch",$p=e=>t=>{setTimeout(t,e)},l0=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let o=!0,s=!1,l=!1;const c=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:$p(10):e.type==="callback"?e.queueNotification:$p(e.timeout),p=()=>{l=!1,s&&(s=!1,c.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){const h=()=>o&&u(),v=n.subscribe(h);return c.add(u),()=>{v(),c.delete(u)}},dispatch(u){try{return o=!u?.meta?.[a0],s=!o,s&&(l||(l=!0,d(p))),n.dispatch(u)}finally{o=!0}}})},c0=e=>function(r){const{autoBatch:n=!0}=r??{};let o=new Pp(e);return n&&o.push(l0(typeof n=="object"?n:void 0)),o};function d0(e){const t=s0(),{reducer:r=void 0,middleware:n,devTools:o=!0,duplicateMiddlewareCheck:s=!0,preloadedState:l=void 0,enhancers:c=void 0}=e||{};let d;if(typeof r=="function")d=r;else if(so(r))d=rp(r);else throw new Error(process.env.NODE_ENV==="production"?Be(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"&&n&&typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Be(2):"`middleware` field must be a callback");let p;if(typeof n=="function"){if(p=n(t),process.env.NODE_ENV!=="production"&&!Array.isArray(p))throw new Error(process.env.NODE_ENV==="production"?Be(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"?Be(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&s){let f=new Set;p.forEach(m=>{if(f.has(m))throw new Error(process.env.NODE_ENV==="production"?Be(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");f.add(m)})}let u=$i;o&&(u=Qb({trace:process.env.NODE_ENV!=="production",...typeof o=="object"&&o}));const h=vb(...p),v=c0(h);if(process.env.NODE_ENV!=="production"&&c&&typeof c!="function")throw new Error(process.env.NODE_ENV==="production"?Be(5):"`enhancers` field must be a callback");let g=typeof c=="function"?c(v):v();if(process.env.NODE_ENV!=="production"&&!Array.isArray(g))throw new Error(process.env.NODE_ENV==="production"?Be(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&g.some(f=>typeof f!="function"))throw new Error(process.env.NODE_ENV==="production"?Be(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&p.length&&!g.includes(h)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const y=u(...g);return Ha(d,l,y)}function Dp(e){const t={},r=[];let n;const o={addCase(s,l){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error(process.env.NODE_ENV==="production"?Be(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error(process.env.NODE_ENV==="production"?Be(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"?Be(28):"`builder.addCase` cannot be called with an empty action type");if(c in t)throw new Error(process.env.NODE_ENV==="production"?Be(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${c}'`);return t[c]=l,o},addAsyncThunk(s,l){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?Be(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return l.pending&&(t[s.pending.type]=l.pending),l.rejected&&(t[s.rejected.type]=l.rejected),l.fulfilled&&(t[s.fulfilled.type]=l.fulfilled),l.settled&&r.push({matcher:s.settled,reducer:l.settled}),o},addMatcher(s,l){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?Be(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:s,reducer:l}),o},addDefaultCase(s){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?Be(31):"`builder.addDefaultCase` can only be called once");return n=s,o}};return e(o),[t,r,n]}function p0(e){return typeof e=="function"}function u0(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?Be(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[r,n,o]=Dp(t),s;if(p0(e))s=()=>Ip(e());else{const c=Ip(e);s=()=>c}function l(c=s(),d){let p=[r[d.type],...n.filter(({matcher:u})=>u(d)).map(({reducer:u})=>u)];return p.filter(u=>!!u).length===0&&(p=[o]),p.reduce((u,h)=>{if(h)if(vr(u)){const g=h(u,d);return g===void 0?u:g}else{if(Yt(u))return xp(u,v=>h(v,d));{const v=h(u,d);if(v===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return v}}return u},c)}return l.getInitialState=s,l}var f0=(e,t)=>Op(e)?e.match(t):e(t);function h0(...e){return t=>e.some(r=>f0(r,t))}var g0="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",y0=(e=21)=>{let t="",r=e;for(;r--;)t+=g0[Math.random()*64|0];return t},m0=["name","message","stack","code"],al=class{constructor(e,t){this.payload=e,this.meta=t}_type},Fp=class{constructor(e,t){this.payload=e,this.meta=t}_type},b0=e=>{if(typeof e=="object"&&e!==null){const t={};for(const r of m0)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},zp="External signal was aborted",Gt=(()=>{function e(t,r,n){const o=fo(t+"/fulfilled",(d,p,u,h)=>({payload:d,meta:{...h||{},arg:u,requestId:p,requestStatus:"fulfilled"}})),s=fo(t+"/pending",(d,p,u)=>({payload:void 0,meta:{...u||{},arg:p,requestId:d,requestStatus:"pending"}})),l=fo(t+"/rejected",(d,p,u,h,v)=>({payload:h,error:(n&&n.serializeError||b0)(d||"Rejected"),meta:{...v||{},arg:u,requestId:p,rejectedWithValue:!!h,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function c(d,{signal:p}={}){return(u,h,v)=>{const g=n?.idGenerator?n.idGenerator(d):y0(),y=new AbortController;let f,m;function x(w){m=w,y.abort()}p&&(p.aborted?x(zp):p.addEventListener("abort",()=>x(zp),{once:!0}));const b=(async function(){let w;try{let C=n?.condition?.(d,{getState:h,extra:v});if(x0(C)&&(C=await C),C===!1||y.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const O=new Promise((I,F)=>{f=()=>{F({name:"AbortError",message:m||"Aborted"})},y.signal.addEventListener("abort",f,{once:!0})});u(s(g,d,n?.getPendingMeta?.({requestId:g,arg:d},{getState:h,extra:v}))),w=await Promise.race([O,Promise.resolve(r(d,{dispatch:u,getState:h,extra:v,requestId:g,signal:y.signal,abort:x,rejectWithValue:(I,F)=>new al(I,F),fulfillWithValue:(I,F)=>new Fp(I,F)})).then(I=>{if(I instanceof al)throw I;return I instanceof Fp?o(I.payload,g,d,I.meta):o(I,g,d)})])}catch(C){w=C instanceof al?l(null,g,d,C.payload,C.meta):l(C,g,d)}finally{f&&y.signal.removeEventListener("abort",f)}return n&&!n.dispatchConditionRejection&&l.match(w)&&w.meta.condition||u(w),w})();return Object.assign(b,{abort:x,requestId:g,arg:d,unwrap(){return b.then(v0)}})}}return Object.assign(c,{pending:s,rejected:l,fulfilled:o,settled:h0(l,o),typePrefix:t})}return e.withTypes=()=>e,e})();function v0(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function x0(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var S0=Symbol.for("rtk-slice-createasyncthunk");function w0(e,t){return`${e}/${t}`}function C0({creators:e}={}){const t=e?.asyncThunk?.[S0];return function(n){const{name:o,reducerPath:s=o}=n;if(!o)throw new Error(process.env.NODE_ENV==="production"?Be(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&n.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const l=(typeof n.reducers=="function"?n.reducers(T0()):n.reducers)||{},c=Object.keys(l),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(w,S){const C=typeof w=="string"?w:w.type;if(!C)throw new Error(process.env.NODE_ENV==="production"?Be(12):"`context.addCase` cannot be called with an empty action type");if(C in d.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?Be(13):"`context.addCase` cannot be called with two reducers for the same action type: "+C);return d.sliceCaseReducersByType[C]=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=l[w],C={reducerName:w,type:w0(o,w),createNotation:typeof n.reducers=="function"};k0(S)?I0(C,S,p,t):O0(C,S,p)});function u(){if(process.env.NODE_ENV!=="production"&&typeof n.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?Be(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=[],C=void 0]=typeof n.extraReducers=="function"?Dp(n.extraReducers):[n.extraReducers],O={...w,...d.sliceCaseReducersByType};return u0(n.initialState,I=>{for(let F in O)I.addCase(F,O[F]);for(let F of d.sliceMatchers)I.addMatcher(F.matcher,F.reducer);for(let F of S)I.addMatcher(F.matcher,F.reducer);C&&I.addDefaultCase(C)})}const h=w=>w,v=new Map,g=new WeakMap;let y;function f(w,S){return y||(y=u()),y(w,S)}function m(){return y||(y=u()),y.getInitialState()}function x(w,S=!1){function C(I){let F=I[w];if(typeof F>"u"){if(S)F=Ki(g,C,m);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Be(15):"selectSlice returned undefined for an uninjected slice reducer")}return F}function O(I=h){const F=Ki(v,S,()=>new WeakMap);return Ki(F,I,()=>{const D={};for(const[L,z]of Object.entries(n.selectors??{}))D[L]=E0(z,I,()=>Ki(g,I,m),S);return D})}return{reducerPath:w,getSelectors:O,get selectors(){return O(C)},selectSlice:C}}const b={name:o,reducer:f,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:m,...x(s),injectInto(w,{reducerPath:S,...C}={}){const O=S??s;return w.inject({reducerPath:O,reducer:f},C),{...b,...x(O,!0)}}};return b}}function E0(e,t,r,n){function o(s,...l){let c=t(s);if(typeof c>"u"){if(n)c=r();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Be(16):"selectState returned undefined for an uninjected slice reducer")}return e(c,...l)}return o.unwrapped=e,o}var Ji=C0();function T0(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function O0({type:e,reducerName:t,createNotation:r},n,o){let s,l;if("reducer"in n){if(r&&!P0(n))throw new Error(process.env.NODE_ENV==="production"?Be(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");s=n.reducer,l=n.prepare}else s=n;o.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,l?fo(e,l):fo(e))}function k0(e){return e._reducerDefinitionType==="asyncThunk"}function P0(e){return e._reducerDefinitionType==="reducerWithPrepare"}function I0({type:e,reducerName:t},r,n,o){if(!o)throw new Error(process.env.NODE_ENV==="production"?Be(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:l,pending:c,rejected:d,settled:p,options:u}=r,h=o(e,s,u);n.exposeAction(t,h),l&&n.addCase(h.fulfilled,l),c&&n.addCase(h.pending,c),d&&n.addCase(h.rejected,d),p&&n.addMatcher(h.settled,p),n.exposeCaseReducer(t,{fulfilled:l||Qi,pending:c||Qi,rejected:d||Qi,settled:p||Qi})}function Qi(){}function Be(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 ll="persist:",jp="persist/FLUSH",cl="persist/REHYDRATE",Bp="persist/PAUSE",Lp="persist/PERSIST",Wp="persist/PURGE",Vp="persist/REGISTER",N0=-1;function ho(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ho=function(r){return typeof r}:ho=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ho(e)}function Up(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function _0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Up(r,!0).forEach(function(n){A0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Up(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function A0(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M0(e,t,r,n){var o=n.debug,s=_0({},r);return e&&ho(e)==="object"&&Object.keys(e).forEach(function(l){if(l!=="_persist"){if(t[l]!==r[l]){process.env.NODE_ENV!=="production"&&o&&console.log("redux-persist/stateReconciler: sub state for key `%s` modified, skipping.",l);return}s[l]=e[l]}}),process.env.NODE_ENV!=="production"&&o&&e&&ho(e)==="object"&&console.log("redux-persist/stateReconciler: rehydrated keys '".concat(Object.keys(e).join(", "),"'")),s}function $0(e){var t=e.blacklist||null,r=e.whitelist||null,n=e.transforms||[],o=e.throttle||0,s="".concat(e.keyPrefix!==void 0?e.keyPrefix:ll).concat(e.key),l=e.storage,c;e.serialize===!1?c=function(C){return C}:typeof e.serialize=="function"?c=e.serialize:c=D0;var d=e.writeFailHandler||null,p={},u={},h=[],v=null,g=null,y=function(C){Object.keys(C).forEach(function(O){x(O)&&p[O]!==C[O]&&h.indexOf(O)===-1&&h.push(O)}),Object.keys(p).forEach(function(O){C[O]===void 0&&x(O)&&h.indexOf(O)===-1&&p[O]!==void 0&&h.push(O)}),v===null&&(v=setInterval(f,o)),p=C};function f(){if(h.length===0){v&&clearInterval(v),v=null;return}var S=h.shift(),C=n.reduce(function(O,I){return I.in(O,S,p)},p[S]);if(C!==void 0)try{u[S]=c(C)}catch(O){console.error("redux-persist/createPersistoid: error serializing state",O)}else delete u[S];h.length===0&&m()}function m(){Object.keys(u).forEach(function(S){p[S]===void 0&&delete u[S]}),g=l.setItem(s,c(u)).catch(b)}function x(S){return!(r&&r.indexOf(S)===-1&&S!=="_persist"||t&&t.indexOf(S)!==-1)}function b(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 g||Promise.resolve()};return{update:y,flush:w}}function D0(e){return JSON.stringify(e)}function F0(e){var t=e.transforms||[],r="".concat(e.keyPrefix!==void 0?e.keyPrefix:ll).concat(e.key),n=e.storage,o=e.debug,s;return e.deserialize===!1?s=function(c){return c}:typeof e.deserialize=="function"?s=e.deserialize:s=z0,n.getItem(r).then(function(l){if(l)try{var c={},d=s(l);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"&&o&&console.log("redux-persist/getStoredState: Error restoring data ".concat(l),p),p}else return})}function z0(e){return JSON.parse(e)}function j0(e){var t=e.storage,r="".concat(e.keyPrefix!==void 0?e.keyPrefix:ll).concat(e.key);return t.removeItem(r,B0)}function B0(e){e&&process.env.NODE_ENV!=="production"&&console.error("redux-persist/purgeStoredState: Error purging data stored state",e)}function Hp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Sr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hp(r,!0).forEach(function(n){L0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hp(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function L0(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W0(e,t){if(e==null)return{};var r=V0(e,t),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function V0(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s<n.length;s++)o=n[s],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var U0=5e3;function H0(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 r=e.version!==void 0?e.version:N0;e.debug;var n=e.stateReconciler===void 0?M0:e.stateReconciler,o=e.getStoredState||F0,s=e.timeout!==void 0?e.timeout:U0,l=null,c=!1,d=!0,p=function(h){return h._persist.rehydrated&&l&&!d&&l.update(h),h};return function(u,h){var v=u||{},g=v._persist,y=W0(v,["_persist"]),f=y;if(h.type===Lp){var m=!1,x=function(F,D){process.env.NODE_ENV!=="production"&&m&&console.error('redux-persist: rehydrate for "'.concat(e.key,'" called after timeout.'),F,D),m||(h.rehydrate(e.key,F,D),m=!0)};if(s&&setTimeout(function(){!m&&x(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},s),d=!1,l||(l=$0(e)),g)return Sr({},t(f,h),{_persist:g});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),o(e).then(function(I){var F=e.migrate||function(D,L){return Promise.resolve(D)};F(I,r).then(function(D){x(D)},function(D){process.env.NODE_ENV!=="production"&&D&&console.error("redux-persist: migration error",D),x(void 0,D)})},function(I){x(void 0,I)}),Sr({},t(f,h),{_persist:{version:r,rehydrated:!1}})}else{if(h.type===Wp)return c=!0,h.result(j0(e)),Sr({},t(f,h),{_persist:g});if(h.type===jp)return h.result(l&&l.flush()),Sr({},t(f,h),{_persist:g});if(h.type===Bp)d=!0;else if(h.type===cl){if(c)return Sr({},f,{_persist:Sr({},g,{rehydrated:!0})});if(h.key===e.key){var b=t(f,h),w=h.payload,S=n!==!1&&w!==void 0?n(w,u,b,e):b,C=Sr({},S,{_persist:Sr({},g,{rehydrated:!0})});return p(C)}}}if(!g)return t(u,h);var O=t(f,h);return O===f?u:p(Sr({},O,{_persist:g}))}}function Rp(e){return Y0(e)||q0(e)||R0()}function R0(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function q0(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Y0(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function qp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function dl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qp(r,!0).forEach(function(n){G0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qp(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function G0(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Yp={registry:[],bootstrapped:!1},K0=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Yp,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case Vp:return dl({},t,{registry:[].concat(Rp(t.registry),[r.key])});case cl:var n=t.registry.indexOf(r.key),o=Rp(t.registry);return o.splice(n,1),dl({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function X0(e,t,r){if(process.env.NODE_ENV!=="production"){var n={},o=["blacklist","whitelist","transforms","storage","keyPrefix","migrate"];o.forEach(function(p){n[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=Ha(K0,Yp,void 0),l=function(u){s.dispatch({type:Vp,key:u})},c=function(u,h,v){var g={type:cl,payload:h,err:v,key:u};e.dispatch(g),s.dispatch(g)},d=dl({},s,{purge:function(){var u=[];return e.dispatch({type:Wp,result:function(v){u.push(v)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:jp,result:function(v){u.push(v)}}),Promise.all(u)},pause:function(){e.dispatch({type:Bp})},persist:function(){e.dispatch({type:Lp,register:l,rehydrate:c})}});return d.persist(),d}const Gp=Ji({name:"product",initialState:{loading:!1,error:null},reducers:{},extraReducers:e=>{}}),{selectProduct:XI,clearSelectedProducts:JI}=Gp.actions,J0=Gp.reducer;function Kp(e,t){return function(){return e.apply(t,arguments)}}const{toString:Q0}=Object.prototype,{getPrototypeOf:pl}=Object,{iterator:Zi,toStringTag:Xp}=Symbol,es=(e=>t=>{const r=Q0.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Kt=e=>(e=e.toLowerCase(),t=>es(t)===e),ts=e=>t=>typeof t===e,{isArray:En}=Array,Tn=ts("undefined");function go(e){return e!==null&&!Tn(e)&&e.constructor!==null&&!Tn(e.constructor)&&wt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Jp=Kt("ArrayBuffer");function Z0(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Jp(e.buffer),t}const ev=ts("string"),wt=ts("function"),Qp=ts("number"),yo=e=>e!==null&&typeof e=="object",tv=e=>e===!0||e===!1,rs=e=>{if(es(e)!=="object")return!1;const t=pl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Xp in e)&&!(Zi in e)},rv=e=>{if(!yo(e)||go(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},nv=Kt("Date"),ov=Kt("File"),iv=Kt("Blob"),sv=Kt("FileList"),av=e=>yo(e)&&wt(e.pipe),lv=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||wt(e.append)&&((t=es(e))==="formdata"||t==="object"&&wt(e.toString)&&e.toString()==="[object FormData]"))},cv=Kt("URLSearchParams"),[dv,pv,uv,fv]=["ReadableStream","Request","Response","Headers"].map(Kt),hv=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function mo(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),En(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(go(e))return;const s=r?Object.getOwnPropertyNames(e):Object.keys(e),l=s.length;let c;for(n=0;n<l;n++)c=s[n],t.call(null,e[c],c,e)}}function Zp(e,t){if(go(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const Zr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,eu=e=>!Tn(e)&&e!==Zr;function ul(){const{caseless:e,skipUndefined:t}=eu(this)&&this||{},r={},n=(o,s)=>{const l=e&&Zp(r,s)||s;rs(r[l])&&rs(o)?r[l]=ul(r[l],o):rs(o)?r[l]=ul({},o):En(o)?r[l]=o.slice():(!t||!Tn(o))&&(r[l]=o)};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&mo(arguments[o],n);return r}const gv=(e,t,r,{allOwnKeys:n}={})=>(mo(t,(o,s)=>{r&&wt(o)?e[s]=Kp(o,r):e[s]=o},{allOwnKeys:n}),e),yv=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mv=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},bv=(e,t,r,n)=>{let o,s,l;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)l=o[s],(!n||n(l,e,t))&&!c[l]&&(t[l]=e[l],c[l]=!0);e=r!==!1&&pl(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},vv=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},xv=e=>{if(!e)return null;if(En(e))return e;let t=e.length;if(!Qp(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Sv=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&pl(Uint8Array)),wv=(e,t)=>{const n=(e&&e[Zi]).call(e);let o;for(;(o=n.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},Cv=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Ev=Kt("HTMLFormElement"),Tv=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),tu=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ov=Kt("RegExp"),ru=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};mo(r,(o,s)=>{let l;(l=t(o,s,e))!==!1&&(n[s]=l||o)}),Object.defineProperties(e,n)},kv=e=>{ru(e,(t,r)=>{if(wt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(wt(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Pv=(e,t)=>{const r={},n=o=>{o.forEach(s=>{r[s]=!0})};return En(e)?n(e):n(String(e).split(t)),r},Iv=()=>{},Nv=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function _v(e){return!!(e&&wt(e.append)&&e[Xp]==="FormData"&&e[Zi])}const Av=e=>{const t=new Array(10),r=(n,o)=>{if(yo(n)){if(t.indexOf(n)>=0)return;if(go(n))return n;if(!("toJSON"in n)){t[o]=n;const s=En(n)?[]:{};return mo(n,(l,c)=>{const d=r(l,o+1);!Tn(d)&&(s[c]=d)}),t[o]=void 0,s}}return n};return r(e,0)},Mv=Kt("AsyncFunction"),$v=e=>e&&(yo(e)||wt(e))&&wt(e.then)&&wt(e.catch),nu=((e,t)=>e?setImmediate:t?((r,n)=>(Zr.addEventListener("message",({source:o,data:s})=>{o===Zr&&s===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Zr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",wt(Zr.postMessage)),Dv=typeof queueMicrotask<"u"?queueMicrotask.bind(Zr):typeof process<"u"&&process.nextTick||nu,V={isArray:En,isArrayBuffer:Jp,isBuffer:go,isFormData:lv,isArrayBufferView:Z0,isString:ev,isNumber:Qp,isBoolean:tv,isObject:yo,isPlainObject:rs,isEmptyObject:rv,isReadableStream:dv,isRequest:pv,isResponse:uv,isHeaders:fv,isUndefined:Tn,isDate:nv,isFile:ov,isBlob:iv,isRegExp:Ov,isFunction:wt,isStream:av,isURLSearchParams:cv,isTypedArray:Sv,isFileList:sv,forEach:mo,merge:ul,extend:gv,trim:hv,stripBOM:yv,inherits:mv,toFlatObject:bv,kindOf:es,kindOfTest:Kt,endsWith:vv,toArray:xv,forEachEntry:wv,matchAll:Cv,isHTMLForm:Ev,hasOwnProperty:tu,hasOwnProp:tu,reduceDescriptors:ru,freezeMethods:kv,toObjectSet:Pv,toCamelCase:Tv,noop:Iv,toFiniteNumber:Nv,findKey:Zp,global:Zr,isContextDefined:eu,isSpecCompliantForm:_v,toJSONObject:Av,isAsyncFn:Mv,isThenable:$v,setImmediate:nu,asap:Dv,isIterable:e=>e!=null&&wt(e[Zi])};function me(e,t,r,n,o){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),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}V.inherits(me,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:V.toJSONObject(this.config),code:this.code,status:this.status}}});const ou=me.prototype,iu={};["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=>{iu[e]={value:e}}),Object.defineProperties(me,iu),Object.defineProperty(ou,"isAxiosError",{value:!0}),me.from=(e,t,r,n,o,s)=>{const l=Object.create(ou);V.toFlatObject(e,l,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 me.call(l,c,d,r,n,o),e&&l.cause==null&&Object.defineProperty(l,"cause",{value:e,configurable:!0}),l.name=e&&e.name||"Error",s&&Object.assign(l,s),l};const Fv=null;function fl(e){return V.isPlainObject(e)||V.isArray(e)}function su(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function au(e,t,r){return e?e.concat(t).map(function(o,s){return o=su(o),!r&&s?"["+o+"]":o}).join(r?".":""):t}function zv(e){return V.isArray(e)&&!e.some(fl)}const jv=V.toFlatObject(V,{},null,function(t){return/^is[A-Z]/.test(t)});function ns(e,t,r){if(!V.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=V.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,m){return!V.isUndefined(m[f])});const n=r.metaTokens,o=r.visitor||u,s=r.dots,l=r.indexes,d=(r.Blob||typeof Blob<"u"&&Blob)&&V.isSpecCompliantForm(t);if(!V.isFunction(o))throw new TypeError("visitor must be a function");function p(y){if(y===null)return"";if(V.isDate(y))return y.toISOString();if(V.isBoolean(y))return y.toString();if(!d&&V.isBlob(y))throw new me("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(y)||V.isTypedArray(y)?d&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function u(y,f,m){let x=y;if(y&&!m&&typeof y=="object"){if(V.endsWith(f,"{}"))f=n?f:f.slice(0,-2),y=JSON.stringify(y);else if(V.isArray(y)&&zv(y)||(V.isFileList(y)||V.endsWith(f,"[]"))&&(x=V.toArray(y)))return f=su(f),x.forEach(function(w,S){!(V.isUndefined(w)||w===null)&&t.append(l===!0?au([f],S,s):l===null?f:f+"[]",p(w))}),!1}return fl(y)?!0:(t.append(au(m,f,s),p(y)),!1)}const h=[],v=Object.assign(jv,{defaultVisitor:u,convertValue:p,isVisitable:fl});function g(y,f){if(!V.isUndefined(y)){if(h.indexOf(y)!==-1)throw Error("Circular reference detected in "+f.join("."));h.push(y),V.forEach(y,function(x,b){(!(V.isUndefined(x)||x===null)&&o.call(t,x,V.isString(b)?b.trim():b,f,v))===!0&&g(x,f?f.concat(b):[b])}),h.pop()}}if(!V.isObject(e))throw new TypeError("data must be an object");return g(e),t}function lu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function hl(e,t){this._pairs=[],e&&ns(e,this,t)}const cu=hl.prototype;cu.append=function(t,r){this._pairs.push([t,r])},cu.toString=function(t){const r=t?function(n){return t.call(this,n,lu)}:lu;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Bv(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function du(e,t,r){if(!t)return e;const n=r&&r.encode||Bv;V.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let s;if(o?s=o(t,r):s=V.isURLSearchParams(t)?t.toString():new hl(t,r).toString(n),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class pu{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){V.forEach(this.handlers,function(n){n!==null&&t(n)})}}const uu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Lv={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:hl,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},gl=typeof window<"u"&&typeof document<"u",yl=typeof navigator=="object"&&navigator||void 0,Wv=gl&&(!yl||["ReactNative","NativeScript","NS"].indexOf(yl.product)<0),Vv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Uv=gl&&window.location.href||"http://localhost",dt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:gl,hasStandardBrowserEnv:Wv,hasStandardBrowserWebWorkerEnv:Vv,navigator:yl,origin:Uv},Symbol.toStringTag,{value:"Module"})),...Lv};function Hv(e,t){return ns(e,new dt.classes.URLSearchParams,{visitor:function(r,n,o,s){return dt.isNode&&V.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function Rv(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function qv(e){const t={},r=Object.keys(e);let n;const o=r.length;let s;for(n=0;n<o;n++)s=r[n],t[s]=e[s];return t}function fu(e){function t(r,n,o,s){let l=r[s++];if(l==="__proto__")return!0;const c=Number.isFinite(+l),d=s>=r.length;return l=!l&&V.isArray(o)?o.length:l,d?(V.hasOwnProp(o,l)?o[l]=[o[l],n]:o[l]=n,!c):((!o[l]||!V.isObject(o[l]))&&(o[l]=[]),t(r,n,o[l],s)&&V.isArray(o[l])&&(o[l]=qv(o[l])),!c)}if(V.isFormData(e)&&V.isFunction(e.entries)){const r={};return V.forEachEntry(e,(n,o)=>{t(Rv(n),o,r,0)}),r}return null}function Yv(e,t,r){if(V.isString(e))try{return(t||JSON.parse)(e),V.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const bo={transitional:uu,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,s=V.isObject(t);if(s&&V.isHTMLForm(t)&&(t=new FormData(t)),V.isFormData(t))return o?JSON.stringify(fu(t)):t;if(V.isArrayBuffer(t)||V.isBuffer(t)||V.isStream(t)||V.isFile(t)||V.isBlob(t)||V.isReadableStream(t))return t;if(V.isArrayBufferView(t))return t.buffer;if(V.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Hv(t,this.formSerializer).toString();if((c=V.isFileList(t))||n.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return ns(c?{"files[]":t}:t,d&&new d,this.formSerializer)}}return s||o?(r.setContentType("application/json",!1),Yv(t)):t}],transformResponse:[function(t){const r=this.transitional||bo.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(V.isResponse(t)||V.isReadableStream(t))return t;if(t&&V.isString(t)&&(n&&!this.responseType||o)){const l=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(c){if(l)throw c.name==="SyntaxError"?me.from(c,me.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:dt.classes.FormData,Blob:dt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(["delete","get","head","post","put","patch"],e=>{bo.headers[e]={}});const Gv=V.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"]),Kv=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
20
|
+
`).forEach(function(l){o=l.indexOf(":"),r=l.substring(0,o).trim().toLowerCase(),n=l.substring(o+1).trim(),!(!r||t[r]&&Gv[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},hu=Symbol("internals");function vo(e){return e&&String(e).trim().toLowerCase()}function os(e){return e===!1||e==null?e:V.isArray(e)?e.map(os):String(e)}function Xv(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Jv=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ml(e,t,r,n,o){if(V.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!V.isString(t)){if(V.isString(n))return t.indexOf(n)!==-1;if(V.isRegExp(n))return n.test(t)}}function Qv(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Zv(e,t){const r=V.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,s,l){return this[n].call(this,t,o,s,l)},configurable:!0})})}let Ct=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function s(c,d,p){const u=vo(d);if(!u)throw new Error("header name must be a non-empty string");const h=V.findKey(o,u);(!h||o[h]===void 0||p===!0||p===void 0&&o[h]!==!1)&&(o[h||d]=os(c))}const l=(c,d)=>V.forEach(c,(p,u)=>s(p,u,d));if(V.isPlainObject(t)||t instanceof this.constructor)l(t,r);else if(V.isString(t)&&(t=t.trim())&&!Jv(t))l(Kv(t),r);else if(V.isObject(t)&&V.isIterable(t)){let c={},d,p;for(const u of t){if(!V.isArray(u))throw TypeError("Object iterator must return a key-value pair");c[p=u[0]]=(d=c[p])?V.isArray(d)?[...d,u[1]]:[d,u[1]]:u[1]}l(c,r)}else t!=null&&s(r,t,n);return this}get(t,r){if(t=vo(t),t){const n=V.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return Xv(o);if(V.isFunction(r))return r.call(this,o,n);if(V.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=vo(t),t){const n=V.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||ml(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function s(l){if(l=vo(l),l){const c=V.findKey(n,l);c&&(!r||ml(n,n[c],c,r))&&(delete n[c],o=!0)}}return V.isArray(t)?t.forEach(s):s(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const s=r[n];(!t||ml(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const r=this,n={};return V.forEach(this,(o,s)=>{const l=V.findKey(n,s);if(l){r[l]=os(o),delete r[s];return}const c=t?Qv(s):String(s).trim();c!==s&&delete r[s],r[c]=os(o),n[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return V.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&V.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).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,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[hu]=this[hu]={accessors:{}}).accessors,o=this.prototype;function s(l){const c=vo(l);n[c]||(Zv(o,l),n[c]=!0)}return V.isArray(t)?t.forEach(s):s(t),this}};Ct.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),V.reduceDescriptors(Ct.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),V.freezeMethods(Ct);function bl(e,t){const r=this||bo,n=t||r,o=Ct.from(n.headers);let s=n.data;return V.forEach(e,function(c){s=c.call(r,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function gu(e){return!!(e&&e.__CANCEL__)}function On(e,t,r){me.call(this,e??"canceled",me.ERR_CANCELED,t,r),this.name="CanceledError"}V.inherits(On,me,{__CANCEL__:!0});function yu(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new me("Request failed with status code "+r.status,[me.ERR_BAD_REQUEST,me.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function ex(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function tx(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,s=0,l;return t=t!==void 0?t:1e3,function(d){const p=Date.now(),u=n[s];l||(l=p),r[o]=d,n[o]=p;let h=s,v=0;for(;h!==o;)v+=r[h++],h=h%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),p-l<t)return;const g=u&&p-u;return g?Math.round(v*1e3/g):void 0}}function rx(e,t){let r=0,n=1e3/t,o,s;const l=(p,u=Date.now())=>{r=u,o=null,s&&(clearTimeout(s),s=null),e(...p)};return[(...p)=>{const u=Date.now(),h=u-r;h>=n?l(p,u):(o=p,s||(s=setTimeout(()=>{s=null,l(o)},n-h)))},()=>o&&l(o)]}const is=(e,t,r=3)=>{let n=0;const o=tx(50,250);return rx(s=>{const l=s.loaded,c=s.lengthComputable?s.total:void 0,d=l-n,p=o(d),u=l<=c;n=l;const h={loaded:l,total:c,progress:c?l/c:void 0,bytes:d,rate:p||void 0,estimated:p&&c&&u?(c-l)/p:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(h)},r)},mu=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},bu=e=>(...t)=>V.asap(()=>e(...t)),nx=dt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,dt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(dt.origin),dt.navigator&&/(msie|trident)/i.test(dt.navigator.userAgent)):()=>!0,ox=dt.hasStandardBrowserEnv?{write(e,t,r,n,o,s,l){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];V.isNumber(r)&&c.push(`expires=${new Date(r).toUTCString()}`),V.isString(n)&&c.push(`path=${n}`),V.isString(o)&&c.push(`domain=${o}`),s===!0&&c.push("secure"),V.isString(l)&&c.push(`SameSite=${l}`),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 ix(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function sx(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function vu(e,t,r){let n=!ix(t);return e&&(n||r==!1)?sx(e,t):t}const xu=e=>e instanceof Ct?{...e}:e;function en(e,t){t=t||{};const r={};function n(p,u,h,v){return V.isPlainObject(p)&&V.isPlainObject(u)?V.merge.call({caseless:v},p,u):V.isPlainObject(u)?V.merge({},u):V.isArray(u)?u.slice():u}function o(p,u,h,v){if(V.isUndefined(u)){if(!V.isUndefined(p))return n(void 0,p,h,v)}else return n(p,u,h,v)}function s(p,u){if(!V.isUndefined(u))return n(void 0,u)}function l(p,u){if(V.isUndefined(u)){if(!V.isUndefined(p))return n(void 0,p)}else return n(void 0,u)}function c(p,u,h){if(h in t)return n(p,u);if(h in e)return n(void 0,p)}const d={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:c,headers:(p,u,h)=>o(xu(p),xu(u),h,!0)};return V.forEach(Object.keys({...e,...t}),function(u){const h=d[u]||o,v=h(e[u],t[u],u);V.isUndefined(v)&&h!==c||(r[u]=v)}),r}const Su=e=>{const t=en({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:s,headers:l,auth:c}=t;if(t.headers=l=Ct.from(l),t.url=du(vu(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&l.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),V.isFormData(r)){if(dt.hasStandardBrowserEnv||dt.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(V.isFunction(r.getHeaders)){const d=r.getHeaders(),p=["content-type","content-length"];Object.entries(d).forEach(([u,h])=>{p.includes(u.toLowerCase())&&l.set(u,h)})}}if(dt.hasStandardBrowserEnv&&(n&&V.isFunction(n)&&(n=n(t)),n||n!==!1&&nx(t.url))){const d=o&&s&&ox.read(s);d&&l.set(o,d)}return t},ax=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=Su(e);let s=o.data;const l=Ct.from(o.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:p}=o,u,h,v,g,y;function f(){g&&g(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout;function x(){if(!m)return;const w=Ct.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),C={data:!c||c==="text"||c==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:w,config:e,request:m};yu(function(I){r(I),f()},function(I){n(I),f()},C),m=null}"onloadend"in m?m.onloadend=x:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(x)},m.onabort=function(){m&&(n(new me("Request aborted",me.ECONNABORTED,e,m)),m=null)},m.onerror=function(S){const C=S&&S.message?S.message:"Network Error",O=new me(C,me.ERR_NETWORK,e,m);O.event=S||null,n(O),m=null},m.ontimeout=function(){let S=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const C=o.transitional||uu;o.timeoutErrorMessage&&(S=o.timeoutErrorMessage),n(new me(S,C.clarifyTimeoutError?me.ETIMEDOUT:me.ECONNABORTED,e,m)),m=null},s===void 0&&l.setContentType(null),"setRequestHeader"in m&&V.forEach(l.toJSON(),function(S,C){m.setRequestHeader(C,S)}),V.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),c&&c!=="json"&&(m.responseType=o.responseType),p&&([v,y]=is(p,!0),m.addEventListener("progress",v)),d&&m.upload&&([h,g]=is(d),m.upload.addEventListener("progress",h),m.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(u=w=>{m&&(n(!w||w.type?new On(null,e,m):w),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const b=ex(o.url);if(b&&dt.protocols.indexOf(b)===-1){n(new me("Unsupported protocol "+b+":",me.ERR_BAD_REQUEST,e));return}m.send(s||null)})},lx=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const s=function(p){if(!o){o=!0,c();const u=p instanceof Error?p:this.reason;n.abort(u instanceof me?u:new On(u instanceof Error?u.message:u))}};let l=t&&setTimeout(()=>{l=null,s(new me(`timeout ${t} of ms exceeded`,me.ETIMEDOUT))},t);const c=()=>{e&&(l&&clearTimeout(l),l=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}=n;return d.unsubscribe=()=>V.asap(c),d}},cx=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},dx=async function*(e,t){for await(const r of px(e))yield*cx(r,t)},px=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},wu=(e,t,r,n)=>{const o=dx(e,t);let s=0,l,c=d=>{l||(l=!0,n&&n(d))};return new ReadableStream({async pull(d){try{const{done:p,value:u}=await o.next();if(p){c(),d.close();return}let h=u.byteLength;if(r){let v=s+=h;r(v)}d.enqueue(new Uint8Array(u))}catch(p){throw c(p),p}},cancel(d){return c(d),o.return()}},{highWaterMark:2})},Cu=64*1024,{isFunction:ss}=V,ux=(({Request:e,Response:t})=>({Request:e,Response:t}))(V.global),{ReadableStream:Eu,TextEncoder:Tu}=V.global,Ou=(e,...t)=>{try{return!!e(...t)}catch{return!1}},fx=e=>{e=V.merge.call({skipUndefined:!0},ux,e);const{fetch:t,Request:r,Response:n}=e,o=t?ss(t):typeof fetch=="function",s=ss(r),l=ss(n);if(!o)return!1;const c=o&&ss(Eu),d=o&&(typeof Tu=="function"?(y=>f=>y.encode(f))(new Tu):async y=>new Uint8Array(await new r(y).arrayBuffer())),p=s&&c&&Ou(()=>{let y=!1;const f=new r(dt.origin,{body:new Eu,method:"POST",get duplex(){return y=!0,"half"}}).headers.has("Content-Type");return y&&!f}),u=l&&c&&Ou(()=>V.isReadableStream(new n("").body)),h={stream:u&&(y=>y.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!h[y]&&(h[y]=(f,m)=>{let x=f&&f[y];if(x)return x.call(f);throw new me(`Response type '${y}' is not supported`,me.ERR_NOT_SUPPORT,m)})});const v=async y=>{if(y==null)return 0;if(V.isBlob(y))return y.size;if(V.isSpecCompliantForm(y))return(await new r(dt.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(V.isArrayBufferView(y)||V.isArrayBuffer(y))return y.byteLength;if(V.isURLSearchParams(y)&&(y=y+""),V.isString(y))return(await d(y)).byteLength},g=async(y,f)=>{const m=V.toFiniteNumber(y.getContentLength());return m??v(f)};return async y=>{let{url:f,method:m,data:x,signal:b,cancelToken:w,timeout:S,onDownloadProgress:C,onUploadProgress:O,responseType:I,headers:F,withCredentials:D="same-origin",fetchOptions:L}=Su(y),z=t||fetch;I=I?(I+"").toLowerCase():"text";let k=lx([b,w&&w.toAbortSignal()],S),j=null;const _=k&&k.unsubscribe&&(()=>{k.unsubscribe()});let M;try{if(O&&p&&m!=="get"&&m!=="head"&&(M=await g(F,x))!==0){let U=new r(f,{method:"POST",body:x,duplex:"half"}),X;if(V.isFormData(x)&&(X=U.headers.get("content-type"))&&F.setContentType(X),U.body){const[J,Q]=mu(M,is(bu(O)));x=wu(U.body,Cu,J,Q)}}V.isString(D)||(D=D?"include":"omit");const N=s&&"credentials"in r.prototype,A={...L,signal:k,method:m.toUpperCase(),headers:F.normalize().toJSON(),body:x,duplex:"half",credentials:N?D:void 0};j=s&&new r(f,A);let W=await(s?z(j,L):z(f,A));const H=u&&(I==="stream"||I==="response");if(u&&(C||H&&_)){const U={};["status","statusText","headers"].forEach(Y=>{U[Y]=W[Y]});const X=V.toFiniteNumber(W.headers.get("content-length")),[J,Q]=C&&mu(X,is(bu(C),!0))||[];W=new n(wu(W.body,Cu,J,()=>{Q&&Q(),_&&_()}),U)}I=I||"text";let B=await h[V.findKey(h,I)||"text"](W,y);return!H&&_&&_(),await new Promise((U,X)=>{yu(U,X,{data:B,headers:Ct.from(W.headers),status:W.status,statusText:W.statusText,config:y,request:j})})}catch(N){throw _&&_(),N&&N.name==="TypeError"&&/Load failed|fetch/i.test(N.message)?Object.assign(new me("Network Error",me.ERR_NETWORK,y,j),{cause:N.cause||N}):me.from(N,N&&N.code,y,j)}}},hx=new Map,ku=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,s=[n,o,r];let l=s.length,c=l,d,p,u=hx;for(;c--;)d=s[c],p=u.get(d),p===void 0&&u.set(d,p=c?new Map:fx(t)),u=p;return p};ku();const vl={http:Fv,xhr:ax,fetch:{get:ku}};V.forEach(vl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Pu=e=>`- ${e}`,gx=e=>V.isFunction(e)||e===null||e===!1;function yx(e,t){e=V.isArray(e)?e:[e];const{length:r}=e;let n,o;const s={};for(let l=0;l<r;l++){n=e[l];let c;if(o=n,!gx(n)&&(o=vl[(c=String(n)).toLowerCase()],o===void 0))throw new me(`Unknown adapter '${c}'`);if(o&&(V.isFunction(o)||(o=o.get(t))))break;s[c||"#"+l]=o}if(!o){const l=Object.entries(s).map(([d,p])=>`adapter ${d} `+(p===!1?"is not supported by the environment":"is not available in the build"));let c=r?l.length>1?`since :
|
|
22
|
+
`+l.map(Pu).join(`
|
|
23
|
+
`):" "+Pu(l[0]):"as no adapter specified";throw new me("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return o}const Iu={getAdapter:yx,adapters:vl};function xl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new On(null,e)}function Nu(e){return xl(e),e.headers=Ct.from(e.headers),e.data=bl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Iu.getAdapter(e.adapter||bo.adapter,e)(e).then(function(n){return xl(e),n.data=bl.call(e,e.transformResponse,n),n.headers=Ct.from(n.headers),n},function(n){return gu(n)||(xl(e),n&&n.response&&(n.response.data=bl.call(e,e.transformResponse,n.response),n.response.headers=Ct.from(n.response.headers))),Promise.reject(n)})}const _u="1.13.2",as={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{as[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Au={};as.transitional=function(t,r,n){function o(s,l){return"[Axios v"+_u+"] Transitional option '"+s+"'"+l+(n?". "+n:"")}return(s,l,c)=>{if(t===!1)throw new me(o(l," has been removed"+(r?" in "+r:"")),me.ERR_DEPRECATED);return r&&!Au[l]&&(Au[l]=!0,console.warn(o(l," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,l,c):!0}},as.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function mx(e,t,r){if(typeof e!="object")throw new me("options must be an object",me.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const s=n[o],l=t[s];if(l){const c=e[s],d=c===void 0||l(c,s,e);if(d!==!0)throw new me("option "+s+" must be "+d,me.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new me("Unknown option "+s,me.ERR_BAD_OPTION)}}const ls={assertOptions:mx,validators:as},or=ls.validators;let tn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new pu,response:new pu}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
24
|
+
`+s):n.stack=s}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=en(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:s}=r;n!==void 0&&ls.assertOptions(n,{silentJSONParsing:or.transitional(or.boolean),forcedJSONParsing:or.transitional(or.boolean),clarifyTimeoutError:or.transitional(or.boolean)},!1),o!=null&&(V.isFunction(o)?r.paramsSerializer={serialize:o}:ls.assertOptions(o,{encode:or.function,serialize:or.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),ls.assertOptions(r,{baseUrl:or.spelling("baseURL"),withXsrfToken:or.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let l=s&&V.merge(s.common,s[r.method]);s&&V.forEach(["delete","get","head","post","put","patch","common"],y=>{delete s[y]}),r.headers=Ct.concat(l,s);const c=[];let d=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(r)===!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,v;if(!d){const y=[Nu.bind(this),void 0];for(y.unshift(...c),y.push(...p),v=y.length,u=Promise.resolve(r);h<v;)u=u.then(y[h++],y[h++]);return u}v=c.length;let g=r;for(;h<v;){const y=c[h++],f=c[h++];try{g=y(g)}catch(m){f.call(this,m);break}}try{u=Nu.call(this,g)}catch(y){return Promise.reject(y)}for(h=0,v=p.length;h<v;)u=u.then(p[h++],p[h++]);return u}getUri(t){t=en(this.defaults,t);const r=vu(t.baseURL,t.url,t.allowAbsoluteUrls);return du(r,t.params,t.paramsSerializer)}};V.forEach(["delete","get","head","options"],function(t){tn.prototype[t]=function(r,n){return this.request(en(n||{},{method:t,url:r,data:(n||{}).data}))}}),V.forEach(["post","put","patch"],function(t){function r(n){return function(s,l,c){return this.request(en(c||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}tn.prototype[t]=r(),tn.prototype[t+"Form"]=r(!0)});let bx=class vy{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const n=this;this.promise.then(o=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](o);n._listeners=null}),this.promise.then=o=>{let s;const l=new Promise(c=>{n.subscribe(c),s=c}).then(o);return l.cancel=function(){n.unsubscribe(s)},l},t(function(s,l,c){n.reason||(n.reason=new On(s,l,c),r(n.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new vy(function(o){t=o}),cancel:t}}};function vx(e){return function(r){return e.apply(null,r)}}function xx(e){return V.isObject(e)&&e.isAxiosError===!0}const Sl={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(Sl).forEach(([e,t])=>{Sl[t]=e});function Mu(e){const t=new tn(e),r=Kp(tn.prototype.request,t);return V.extend(r,tn.prototype,t,{allOwnKeys:!0}),V.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Mu(en(e,o))},r}const Ue=Mu(bo);Ue.Axios=tn,Ue.CanceledError=On,Ue.CancelToken=bx,Ue.isCancel=gu,Ue.VERSION=_u,Ue.toFormData=ns,Ue.AxiosError=me,Ue.Cancel=Ue.CanceledError,Ue.all=function(t){return Promise.all(t)},Ue.spread=vx,Ue.isAxiosError=xx,Ue.mergeConfig=en,Ue.AxiosHeaders=Ct,Ue.formToJSON=e=>fu(V.isHTMLForm(e)?new FormData(e):e),Ue.getAdapter=Iu.getAdapter,Ue.HttpStatusCode=Sl,Ue.default=Ue;const{Axios:oN,AxiosError:iN,CanceledError:sN,isCancel:aN,CancelToken:lN,VERSION:cN,all:dN,Cancel:pN,isAxiosError:uN,spread:fN,toFormData:hN,AxiosHeaders:gN,HttpStatusCode:yN,formToJSON:mN,getAdapter:bN,mergeConfig:vN}=Ue;function cs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var Sx={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 wl(e,t){function r(o,s,l){if(!(typeof document>"u")){l=cs({},t,l),typeof l.expires=="number"&&(l.expires=new Date(Date.now()+l.expires*864e5)),l.expires&&(l.expires=l.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var d in l)l[d]&&(c+="; "+d,l[d]!==!0&&(c+="="+l[d].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+c}}function n(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],l={},c=0;c<s.length;c++){var d=s[c].split("="),p=d.slice(1).join("=");try{var u=decodeURIComponent(d[0]);if(l[u]=e.read(p,u),o===u)break}catch{}}return o?l[o]:l}}return Object.create({set:r,get:n,remove:function(o,s){r(o,"",cs({},s,{expires:-1}))},withAttributes:function(o){return wl(this.converter,cs({},this.attributes,o))},withConverter:function(o){return wl(cs({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var wr=wl(Sx,{path:"/"});const wx={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};let rn="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:Pa&&Pa.tagName.toUpperCase()==="SCRIPT"&&Pa.src||new URL("product-app.umd.js",document.baseURI).href}<"u"&&wx?.VITE_API_URL)rn=void 0;else{const e=typeof process<"u"?process:null;e&&e.env&&e.env.VITE_API_URL&&(rn=process.env.VITE_API_URL)}}catch{}const Cx=e=>{rn=e,bt.defaults.baseURL=rn},$u=()=>rn,Ex=e=>{e?wr.set("token",e,{secure:!0,sameSite:"Strict"}):wr.remove("token")},Tx=()=>wr.get("token")||null,bt=Ue.create({baseURL:rn,transformRequest:[function(e,t){const r=Tx();return r?t.Authorization=`Bearer ${r}`:delete t.Authorization,JSON.stringify(e)}],headers:{Accept:"application/json","Content-Type":"application/json"}});let Cl=!1,El=null;bt.interceptors.response.use(e=>e,async e=>{const t=e.config,r=e.response;if(r&&(r.status===401||r.status===402)){const n=wr.get("refreshToken");if(n)try{Cl||(Cl=!0,El=Ue.post(`${rn}/api/v1/auth/refresh`,{},{headers:{Authorization:`Bearer ${n}`}}));const o=await El,{token:s,refreshToken:l}=o.data;return wr.set("token",s,{secure:!0,sameSite:"Strict"}),wr.set("refreshToken",l),localStorage.setItem("justRefreshed","true"),t.headers.Authorization=`Bearer ${s}`,bt(t)}catch{(t?.url||t?.baseURL+t?.url||"").includes("/auth/verify")||(wr.remove("token"),wr.remove("refreshToken"),localStorage.clear(),window.location.href="/")}finally{Cl=!1,El=null}else(t?.url||t?.baseURL+t?.url||"").includes("/auth/verify")||(wr.remove("token"),localStorage.clear(),window.location.href="/")}return Promise.reject(e)});const Tl=async e=>{const t=e?`/integrations/tenant/${e}`:"/integrations/tenant/";return(await bt.get(t)).data},Ol=Gt("ftpSync/testConnection",async({serverAddress:e,username:t,password:r,companyId:n,tenantId:o},{rejectWithValue:s})=>{try{const l=n||o;if(!l)throw new Error("Company ID is required");const c=e.match(/^(\w+):\/\/(.*?):(\d+)(\/.*)$/);if(!c)throw new Error("Invalid server address format");let[,d,p,u,h]=c;if(d=d.toLowerCase(),d!=="ftp"&&d!=="sftp")throw new Error("type must be 'ftp' or 'sftp'");const v={tenantId:l,type:d,configs:{host:p,port:Number(u),username:t,password:r,path:h.replace(/^\//,"")},entity_type:""},g=await bt.post("/ftp/sync/test-connection",v);return console.log("=== API Response from /ftp/sync/test-connection ==="),console.log("Full response.data:",g.data),console.log("existing_mapping:",g.data?.existing_mapping),console.log("================================================"),g.data}catch(l){return s(l.response?.data||l.message)}}),Du=Ji({name:"ftpSync",initialState:{loading:!1,error:null,ftpColumns:[],preview:[],configs:{},integration_type:"",tenantId:"",entity_type:"",existingMapping:null},reducers:{clearFtpSyncState(e){e.loading=!1,e.error=null,e.ftpColumns=[],e.preview=[],e.configs={},e.integration_type="",e.tenantId="",e.entity_type="",e.existingMapping=null}},extraReducers:e=>{e.addCase(Ol.pending,t=>{t.loading=!0,t.error=null}),e.addCase(Ol.fulfilled,(t,r)=>{t.loading=!1,t.error=null,console.log("testFtpConnection.fulfilled payload:",r.payload),console.log("existing_mapping in payload:",r.payload.existing_mapping),t.ftpColumns=r.payload.ftp_columns||[],t.preview=r.payload.preview||[],t.configs=r.payload.configs||{},t.integration_type=r.payload.integration_type||"",t.tenantId=r.payload.tenantId||"";let n=r.payload.entity_type;t.entity_type=n||"",console.log("📦 Final entity_type stored in Redux:",t.entity_type),t.existingMapping=r.payload.existing_mapping||null}),e.addCase(Ol.rejected,(t,r)=>{t.loading=!1,t.error=r.payload||r.error.message})}}),{clearFtpSyncState:SN}=Du.actions,Ox=Du.reducer;console.log("[FTP SYNC] actions.js loaded");const kx="SET_FTP_SYNC_DATA",Px="SAVE_FTP_SYNC_REQUEST",Ix="SAVE_FTP_SYNC_SUCCESS",Nx="SAVE_FTP_SYNC_FAILURE",_x={syncData:{tenantId:"",type:"",configs:{host:"",port:"",username:"",password:"",path:"",sync_frequency:"",sync_time:""},entity_type:"",mappings:[]},loading:!1,error:null,result:null,success:!1};function Ax(e=_x,t){switch(t.type){case kx:return{...e,syncData:{...e.syncData,...t.payload}};case Px:return{...e,loading:!0,error:null,success:!1};case Ix:return{...e,loading:!1,result:t.payload,success:!0};case Nx:return{...e,loading:!1,error:t.error,success:!1};case"CLEAR_FTP_SYNC_SUCCESS":return{...e,success:!1};default:return e}}const ds=Gt("dashboard/fetchMetrics",async(e={},{rejectWithValue:t})=>{try{const o=(await bt.get("/dashboard/metrics",{params:e})).data||{};return o.data||o}catch(r){const n=r.response?.data?.message||r.message||"Failed to fetch dashboard metrics";return t(n)}}),xo=Gt("dashboard/verifyAuth",async(e,{rejectWithValue:t})=>{try{console.log("Calling /auth/verify API...");const r=await bt.get("/auth/verify");console.log("/auth/verify response:",r.data);const n=r.data?.companyId||r.data?.data?.companyId;if(n)return n;throw new Error("companyId not found in /auth/verify response")}catch(r){const n=r.response?.data?.message||r.message||"Failed to verify auth";return t(n)}}),Cr=Gt("dashboard/fetchCompanyIntegrations",async(e,{rejectWithValue:t})=>{try{const r=e?`/integrations/tenant/${e}`:"/integrations/tenant/";return(await bt.get(r)).data}catch(r){const n=r.response?.data?.message||r.message||"Failed to fetch dashboard metrics";return t(n)}}),Er=Gt("dashboard/fetchAllProducts",async(e={},{rejectWithValue:t})=>{try{return(await bt.get("/store-inventory",{params:e})).data||{}}catch(r){return console.log("Error fetching products:",r),t(r.response?.data||r.message)}}),Fu=Ji({name:"dashboard",initialState:{loading:!1,companyId:"",error:null,metrics:{},integrationData:{},lastUpdated:null,productsByCategory:{},products:[],categorySummary:[],homePageCardSummary:{totalCategories:0,totalProducts:0,lastSync:""},pagination:{currentPage:1,limit:20,totalCount:0,totalPages:1,hasNextPage:!1}},reducers:{clearMetrics:e=>{e.metrics={},e.error=null,e.lastUpdated=null},clearError:e=>{e.error=null},updateMetric:(e,t)=>{const{key:r,value:n}=t.payload;e.metrics&&(e.metrics[r]=n)}},extraReducers:e=>{e.addCase(ds.pending,t=>{t.loading=!0,t.error=null}).addCase(ds.fulfilled,(t,r)=>{t.loading=!1,t.metrics=r.payload,t.lastUpdated=Date.now(),t.error=null}).addCase(ds.rejected,(t,r)=>{t.loading=!1,t.error=r.payload||"Failed to fetch dashboard metrics"}),e.addCase(Cr.pending,t=>{t.loading=!0}).addCase(Cr.fulfilled,(t,r)=>{t.loading=!1,r.payload&&Array.isArray(r.payload.data)&&r.payload.data.length>0?t.integrationData=r.payload.data[0]:t.integrationData={}}).addCase(Cr.rejected,t=>{t.loading=!1}),e.addCase(xo.pending,t=>{t.loading=!0,t.error=null}),e.addCase(xo.fulfilled,(t,r)=>{t.loading=!1,t.companyId=r.payload,t.error=null}),e.addCase(xo.rejected,(t,r)=>{t.loading=!1,t.error=r.payload||"Failed to verify auth"}),e.addCase(Er.pending,t=>{t.loading=!0,t.loadingMessage="Fetching Schedules"}).addCase(Er.fulfilled,(t,r)=>{t.loading=!1,t.loadingMessage="",t.error=null;const n=r.payload||{},o=Array.isArray(n.data)?n.data:Array.isArray(n.products)?n.products:Array.isArray(n)?n:[];t.products=o;const s=(g,y=0)=>{if(g==null||g==="")return y;const f=Number(g);return Number.isFinite(f)?f:y},l={};o.forEach(g=>{if(!g)return;const y=g.categoryName||"Uncategorized";l[y]||(l[y]=[]),l[y].push({...g,stock:s(g.stock),inventory:s(g.inventory),inShelf:s(g.inShelf)})}),t.categorySummary=Object.entries(l).map(([g,y])=>{let f=0,m=0,x=null,b=[];y.forEach(S=>{f+=Number(S.stock)||0,m+=Number(S.inventory)||0,(!x||S.updated&&new Date(S.updated)>new Date(x.updated))&&(x=S),S.productImage&&b.length<5&&b.push(S.productImage)});const w=m>0?Math.round(f/m*100):0;return{name:g,products:y.length,stock:`${f}/${m}`,osa:`${w}% on shelf`,updated:x?.updated?new Date(x.updated).toLocaleString():"",images:b}});const c=Object.values(l).flat(),d=Object.keys(l).length,p=c.length;let u="";if(c.length>0){const g=c.reduce((y,f)=>y?f?new Date(y.updated)>new Date(f.updated)?y:f:y:f);u=g?.updated?new Date(g.updated).toLocaleString():""}t.homePageCardSummary={totalCategories:d,totalProducts:p,lastSync:u},t.productsByCategory=l;const h=n.pagination||{},v=typeof h.totalCount=="number"?h.totalCount:Object.values(l).reduce((g,y)=>g+y.length,0);t.pagination={currentPage:typeof h.currentPage=="number"?h.currentPage:1,limit:typeof h.limit=="number"?h.limit:20,totalCount:v,totalPages:typeof h.totalPages=="number"?h.totalPages:1,hasNextPage:typeof h.hasNextPage=="boolean"?h.hasNextPage:!1}}).addCase(Er.rejected,(t,r)=>{t.loading=!1,t.error=r.error?.message||r.payload||"Failed to fetch products",t.loadingMessage=""})}}),{clearMetrics:CN,clearError:EN,updateMetric:TN}=Fu.actions,Mx=Fu.reducer,So=Gt("productSettings/testConnection",async({serverAddress:e,username:t,password:r,companyId:n,tenantId:o},{rejectWithValue:s})=>{try{const l=n||o;if(!l)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 v={tenantId:l,type:d,configs:{host:p,port:Number(u),username:t,password:r,path:h.replace(/^\//,"")},entity_type:""},g=await bt.post("/ftp/sync/test-connection",v);return console.log("=== API Response from /ftp/sync/test-connection ==="),console.log("Full response.data:",g.data),console.log("existing_mapping:",g.data?.existing_mapping),console.log("================================================"),g.data}catch(l){const c=l.response?.data?.message||l.message||"Failed to test FTP connection";return s(c)}}),wo=Gt("productSettings/saveFtpSync",async(e,{rejectWithValue:t})=>{try{const r={...e,tenantId:e.tenantId||e.companyId};return console.log("[FTP Sync] Calling POST /ftp/sync/save with payload:",JSON.stringify(r,null,2)),(await bt.post("/ftp/sync/save",r)).data}catch(r){const n=r.response?.data?.message||r.message||"Failed to save FTP sync configuration";return t(n)}}),Co=Gt("productSettings/updateDetails",async(e,{rejectWithValue:t})=>{try{const r={...e,tenantId:e.tenantId||e.companyId};r.companyId&&!r.tenantId&&delete r.companyId,console.log("[FTP SYNC] API payload (mapped):",r);const n=await bt.put("/ftp/sync/update-details",r);if(n.status>=200&&n.status<300)return n.data;{const o=n.data?.message||"Failed to update FTP sync details";return t(o)}}catch(r){const n=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,data:r.response?.data,message:n}),t(n)}}),ps=Gt("productSettings/updateProductSetting",async({companyId:e,tenantId:t,data:r},{rejectWithValue:n})=>{try{const o=e||t;if(!o)throw new Error("Company ID or Tenant ID is required");if(!r||typeof r!="object")throw new Error("Update data is required");const s=await Tl(o),l=s.data&&s.data[0];if(!l||!l.id)return n("No integration found for this tenant/company");const c=await bt.patch(`/integrations/${l.id}`,r);if(c.status>=200&&c.status<300)return c.data;{const d=c.data?.message||"Failed to update product setting";return n(d)}}catch(o){const s=o.response?.data?.message||o.response?.data?.error||o.message||"Failed to update product setting";return n(s)}}),Eo=Gt("productSettings/syncNow",async(e,{rejectWithValue:t})=>{try{if(!e)throw new Error("Channel ID is required");const r=await bt.post(`/ftp/sync/${e}/sync-now`);if(r.status>=200&&r.status<300)return r.data;{const n=r.data?.message||"Failed to start sync";return t(n)}}catch(r){const n=r.response?.data?.message||r.response?.data?.error||r.message||"Failed to start sync";return t(n)}}),To=Gt("productSettings/fetchMappingColumns",async(e="products",{rejectWithValue:t})=>{try{const r=e?{entity_type:e}:{},n=await bt.get("/store-inventory/mapping-columns",{params:r});if(n.status>=200&&n.status<300)return n.data&&typeof n.data=="object"&&"status"in n.data&&n.data.status?n.data.data||[]:n.data||[];{const o=n.data?.message||"Failed to fetch mapping columns";return t(o)}}catch(r){const n=r.response?.data?.message||r.response?.data?.error||r.message||"Failed to fetch mapping columns";return t(n)}}),kl={loading:!1,error:null,testConnectionResult:null,saveResult:null,updateDetailsResult:null,updateProductSettingResult:null,syncNowResult: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},zu=Ji({name:"productSettings",initialState:kl,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},clearUpdateProductSettingResult:e=>{e.updateProductSettingResult=null},clearSyncNowResult:e=>{e.syncNowResult=null},clearMappingColumnsError:e=>{e.mappingColumnsError=null},clearMappingColumns:e=>{e.mappingColumns=[],e.mappingColumnsError=null},setFtpSyncData:(e,t)=>{e.syncData={...e.syncData,...t.payload}},clearFtpSyncData:e=>{e.syncData=kl.syncData}},extraReducers:e=>{e.addCase(So.pending,t=>{t.loading=!0,t.error=null,t.ftpColumns=[],t.preview=[],t.existingMapping=null}).addCase(So.fulfilled,(t,r)=>{t.loading=!1,t.testConnectionResult=r.payload,t.error=null;const n=r.payload;t.ftpColumns=n.ftp_columns||[],t.preview=n.preview||[],t.configs=n.configs||{},t.integration_type=n.integration_type||"",t.companyId=n.companyId||n.tenantId||"";let o=n.entity_type||"";if(!o&&n.existing_mapping?.mappings?.length>0){const s=n.existing_mapping.mappings[0]?.target_table;(s==="products"||s==="storeInventory")&&(o="products",console.log('✅ Inferred entity_type as "products" from existing_mapping target_table'))}t.entity_type=o,t.existingMapping=n.existing_mapping||null,n.existing_mapping?.mappings?.length||(t.syncData.mappings=[]),console.log("=== productSettings reducer: testFtpConnection fulfilled ==="),console.log("ftp_columns from API:",t.ftpColumns),console.log("preview rows count:",t.preview.length),console.log("existingMapping:",t.existingMapping),t.existingMapping?.mappings&&(console.log("existingMapping.mappings count:",t.existingMapping.mappings.length),console.log("First mapping example:",t.existingMapping.mappings[0])),console.log("entity_type:",t.entity_type),console.log("===========================================================")}).addCase(So.rejected,(t,r)=>{t.loading=!1,t.error=r.payload||"Failed to test FTP connection"}),e.addCase(To.pending,t=>{t.mappingColumnsLoading=!0,t.mappingColumnsError=null}).addCase(To.fulfilled,(t,r)=>{t.mappingColumnsLoading=!1,t.mappingColumns=Array.isArray(r.payload)?r.payload:[],t.mappingColumnsError=null}).addCase(To.rejected,(t,r)=>{t.mappingColumnsLoading=!1,t.mappingColumnsError=r.payload||"Failed to fetch mapping columns"}),e.addCase(wo.pending,t=>{t.loading=!0,t.error=null}).addCase(wo.fulfilled,(t,r)=>{t.loading=!1,t.saveResult=r.payload,t.error=null,t.syncData=kl.syncData}).addCase(wo.rejected,(t,r)=>{t.loading=!1,t.error=r.payload||"Failed to save FTP sync configuration"}),e.addCase(Co.pending,t=>{t.loading=!0,t.error=null}).addCase(Co.fulfilled,(t,r)=>{t.loading=!1,t.updateDetailsResult=r.payload,t.error=null}).addCase(Co.rejected,(t,r)=>{t.loading=!1,t.error=r.payload||"Failed to update FTP sync details"}),e.addCase(ps.pending,t=>{t.loading=!0,t.error=null}).addCase(ps.fulfilled,(t,r)=>{t.loading=!1,t.updateProductSettingResult=r.payload,t.error=null}).addCase(ps.rejected,(t,r)=>{t.loading=!1,t.error=r.payload||"Failed to update product setting"}),e.addCase(Eo.pending,t=>{t.loading=!0,t.error=null}).addCase(Eo.fulfilled,(t,r)=>{t.loading=!1,t.syncNowResult=r.payload,t.error=null}).addCase(Eo.rejected,(t,r)=>{t.loading=!1,t.error=r.payload||"Failed to start sync"})}}),{clearError:ON,clearTestConnectionResult:kN,clearSaveResult:$x,clearAll:PN,clearTestConnectionData:IN,clearUpdateDetailsResult:NN,clearUpdateProductSettingResult:_N,clearSyncNowResult:AN,setFtpSyncData:us,clearFtpSyncData:MN,clearMappingColumnsError:$N,clearMappingColumns:DN}=zu.actions,Dx=zu.reducer;var fs={},hs={},ju;function Fx(){if(ju)return hs;ju=1,hs.__esModule=!0,hs.default=o;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 r={getItem:t,setItem:t,removeItem:t};function n(s){if((typeof self>"u"?"undefined":e(self))!=="object"||!(s in self))return!1;try{var l=self[s],c="redux-persist ".concat(s," test");l.setItem(c,"test"),l.getItem(c),l.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 o(s){var l="".concat(s,"Storage");return n(l)?self[l]:(process.env.NODE_ENV!=="production"&&console.error("redux-persist failed to create sync storage. falling back to noop storage."),r)}return hs}var Bu;function zx(){if(Bu)return fs;Bu=1,fs.__esModule=!0,fs.default=r;var e=t(Fx());function t(n){return n&&n.__esModule?n:{default:n}}function r(n){var o=(0,e.default)(n);return{getItem:function(l){return new Promise(function(c,d){c(o.getItem(l))})},setItem:function(l,c){return new Promise(function(d,p){d(o.setItem(l,c))})},removeItem:function(l){return new Promise(function(c,d){c(o.removeItem(l))})}}}return fs}var jx=zx();const Bx={key:"auth",storage:typeof window<"u"?qd(jx)("local"):{getItem(){return Promise.resolve(null)},setItem(e,t){return Promise.resolve(t)},removeItem(){return Promise.resolve()}},whitelist:["auth"]},Lx=rp({products:J0,ftpSync:Ox,ftpSyncSave:Ax,dashboard:Mx,productSettings:Dx}),Wx=H0(Bx,Lx),Lu=d0({reducer:Wx,middleware:e=>e({serializableCheck:!1})}),Vx=X0(Lu),Ux=$.createContext(null),Hx=({children:e,apiUrl:t,authToken:r})=>($.useEffect(()=>{t&&Cx(t)},[t]),$.useEffect(()=>{Ex(r||null)},[r]),a.jsx(Ux.Provider,{value:{apiUrl:t},children:e})),Oo={black:"#000",white:"#fff"},kn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Pn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},In={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Nn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},_n={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},ko={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Rx={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 ir(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}const Po="$$material";function gs(){return gs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gs.apply(null,arguments)}function qx(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 Yx(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 Gx=(function(){function e(r){var n=this;this._insertTag=function(o){var s;n.tags.length===0?n.insertionPoint?s=n.insertionPoint.nextSibling:n.prepend?s=n.container.firstChild:s=n.before:s=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,s),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Yx(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=qx(o);try{s.insertRule(n,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e})(),pt="-ms-",ys="-moz-",Ee="-webkit-",Wu="comm",Pl="rule",Il="decl",Kx="@import",Vu="@keyframes",Xx="@layer",Jx=Math.abs,ms=String.fromCharCode,Qx=Object.assign;function Zx(e,t){return st(e,0)^45?(((t<<2^st(e,0))<<2^st(e,1))<<2^st(e,2))<<2^st(e,3):0}function Uu(e){return e.trim()}function e1(e,t){return(e=t.exec(e))?e[0]:e}function Te(e,t,r){return e.replace(t,r)}function Nl(e,t){return e.indexOf(t)}function st(e,t){return e.charCodeAt(t)|0}function Io(e,t,r){return e.slice(t,r)}function sr(e){return e.length}function _l(e){return e.length}function bs(e,t){return t.push(e),e}function t1(e,t){return e.map(t).join("")}var vs=1,An=1,Hu=0,Et=0,Xe=0,Mn="";function xs(e,t,r,n,o,s,l){return{value:e,root:t,parent:r,type:n,props:o,children:s,line:vs,column:An,length:l,return:""}}function No(e,t){return Qx(xs("",null,null,"",null,null,0),e,{length:-e.length},t)}function r1(){return Xe}function n1(){return Xe=Et>0?st(Mn,--Et):0,An--,Xe===10&&(An=1,vs--),Xe}function _t(){return Xe=Et<Hu?st(Mn,Et++):0,An++,Xe===10&&(An=1,vs++),Xe}function ar(){return st(Mn,Et)}function Ss(){return Et}function _o(e,t){return Io(Mn,e,t)}function Ao(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 Ru(e){return vs=An=1,Hu=sr(Mn=e),Et=0,[]}function qu(e){return Mn="",e}function ws(e){return Uu(_o(Et-1,Al(e===91?e+2:e===40?e+1:e)))}function o1(e){for(;(Xe=ar())&&Xe<33;)_t();return Ao(e)>2||Ao(Xe)>3?"":" "}function i1(e,t){for(;--t&&_t()&&!(Xe<48||Xe>102||Xe>57&&Xe<65||Xe>70&&Xe<97););return _o(e,Ss()+(t<6&&ar()==32&&_t()==32))}function Al(e){for(;_t();)switch(Xe){case e:return Et;case 34:case 39:e!==34&&e!==39&&Al(Xe);break;case 40:e===41&&Al(e);break;case 92:_t();break}return Et}function s1(e,t){for(;_t()&&e+Xe!==57;)if(e+Xe===84&&ar()===47)break;return"/*"+_o(t,Et-1)+"*"+ms(e===47?e:_t())}function a1(e){for(;!Ao(ar());)_t();return _o(e,Et)}function l1(e){return qu(Cs("",null,null,null,[""],e=Ru(e),0,[0],e))}function Cs(e,t,r,n,o,s,l,c,d){for(var p=0,u=0,h=l,v=0,g=0,y=0,f=1,m=1,x=1,b=0,w="",S=o,C=s,O=n,I=w;m;)switch(y=b,b=_t()){case 40:if(y!=108&&st(I,h-1)==58){Nl(I+=Te(ws(b),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:I+=ws(b);break;case 9:case 10:case 13:case 32:I+=o1(y);break;case 92:I+=i1(Ss()-1,7);continue;case 47:switch(ar()){case 42:case 47:bs(c1(s1(_t(),Ss()),t,r),d);break;default:I+="/"}break;case 123*f:c[p++]=sr(I)*x;case 125*f:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:x==-1&&(I=Te(I,/\f/g,"")),g>0&&sr(I)-h&&bs(g>32?Gu(I+";",n,r,h-1):Gu(Te(I," ","")+";",n,r,h-2),d);break;case 59:I+=";";default:if(bs(O=Yu(I,t,r,p,u,o,c,w,S=[],C=[],h),s),b===123)if(u===0)Cs(I,t,O,O,S,s,h,c,C);else switch(v===99&&st(I,3)===110?100:v){case 100:case 108:case 109:case 115:Cs(e,O,O,n&&bs(Yu(e,O,O,0,0,o,c,w,o,S=[],h),C),o,C,h,c,n?S:C);break;default:Cs(I,O,O,O,[""],C,0,c,C)}}p=u=g=0,f=x=1,w=I="",h=l;break;case 58:h=1+sr(I),g=y;default:if(f<1){if(b==123)--f;else if(b==125&&f++==0&&n1()==125)continue}switch(I+=ms(b),b*f){case 38:x=u>0?1:(I+="\f",-1);break;case 44:c[p++]=(sr(I)-1)*x,x=1;break;case 64:ar()===45&&(I+=ws(_t())),v=ar(),u=h=sr(w=I+=a1(Ss())),b++;break;case 45:y===45&&sr(I)==2&&(f=0)}}return s}function Yu(e,t,r,n,o,s,l,c,d,p,u){for(var h=o-1,v=o===0?s:[""],g=_l(v),y=0,f=0,m=0;y<n;++y)for(var x=0,b=Io(e,h+1,h=Jx(f=l[y])),w=e;x<g;++x)(w=Uu(f>0?v[x]+" "+b:Te(b,/&\f/g,v[x])))&&(d[m++]=w);return xs(e,t,r,o===0?Pl:c,d,p,u)}function c1(e,t,r){return xs(e,t,r,Wu,ms(r1()),Io(e,2,-2),0)}function Gu(e,t,r,n){return xs(e,t,r,Il,Io(e,0,n),Io(e,n+1,-1),n)}function $n(e,t){for(var r="",n=_l(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function d1(e,t,r,n){switch(e.type){case Xx:if(e.children.length)break;case Kx:case Il:return e.return=e.return||e.value;case Wu:return"";case Vu:return e.return=e.value+"{"+$n(e.children,n)+"}";case Pl:e.value=e.props.join(",")}return sr(r=$n(e.children,n))?e.return=e.value+"{"+r+"}":""}function p1(e){var t=_l(e);return function(r,n,o,s){for(var l="",c=0;c<t;c++)l+=e[c](r,n,o,s)||"";return l}}function u1(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ku(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var f1=function(t,r,n){for(var o=0,s=0;o=s,s=ar(),o===38&&s===12&&(r[n]=1),!Ao(s);)_t();return _o(t,Et)},h1=function(t,r){var n=-1,o=44;do switch(Ao(o)){case 0:o===38&&ar()===12&&(r[n]=1),t[n]+=f1(Et-1,r,n);break;case 2:t[n]+=ws(o);break;case 4:if(o===44){t[++n]=ar()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=ms(o)}while(o=_t());return t},g1=function(t,r){return qu(h1(Ru(t),r))},Xu=new WeakMap,y1=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Xu.get(n))&&!o){Xu.set(t,!0);for(var s=[],l=g1(r,s),c=n.props,d=0,p=0;d<l.length;d++)for(var u=0;u<c.length;u++,p++)t.props[p]=s[d]?l[d].replace(/&\f/g,c[u]):c[u]+" "+l[d]}}},m1=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Ju(e,t){switch(Zx(e,t)){case 5103:return Ee+"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 Ee+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ee+e+ys+e+pt+e+e;case 6828:case 4268:return Ee+e+pt+e+e;case 6165:return Ee+e+pt+"flex-"+e+e;case 5187:return Ee+e+Te(e,/(\w+).+(:[^]+)/,Ee+"box-$1$2"+pt+"flex-$1$2")+e;case 5443:return Ee+e+pt+"flex-item-"+Te(e,/flex-|-self/,"")+e;case 4675:return Ee+e+pt+"flex-line-pack"+Te(e,/align-content|flex-|-self/,"")+e;case 5548:return Ee+e+pt+Te(e,"shrink","negative")+e;case 5292:return Ee+e+pt+Te(e,"basis","preferred-size")+e;case 6060:return Ee+"box-"+Te(e,"-grow","")+Ee+e+pt+Te(e,"grow","positive")+e;case 4554:return Ee+Te(e,/([^-])(transform)/g,"$1"+Ee+"$2")+e;case 6187:return Te(Te(Te(e,/(zoom-|grab)/,Ee+"$1"),/(image-set)/,Ee+"$1"),e,"")+e;case 5495:case 3959:return Te(e,/(image-set\([^]*)/,Ee+"$1$`$1");case 4968:return Te(Te(e,/(.+:)(flex-)?(.*)/,Ee+"box-pack:$3"+pt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ee+e+e;case 4095:case 3583:case 4068:case 2532:return Te(e,/(.+)-inline(.+)/,Ee+"$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(sr(e)-1-t>6)switch(st(e,t+1)){case 109:if(st(e,t+4)!==45)break;case 102:return Te(e,/(.+:)(.+)-([^]+)/,"$1"+Ee+"$2-$3$1"+ys+(st(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Nl(e,"stretch")?Ju(Te(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(st(e,t+1)!==115)break;case 6444:switch(st(e,sr(e)-3-(~Nl(e,"!important")&&10))){case 107:return Te(e,":",":"+Ee)+e;case 101:return Te(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ee+(st(e,14)===45?"inline-":"")+"box$3$1"+Ee+"$2$3$1"+pt+"$2box$3")+e}break;case 5936:switch(st(e,t+11)){case 114:return Ee+e+pt+Te(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ee+e+pt+Te(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ee+e+pt+Te(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ee+e+pt+e+e}return e}var b1=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Il:t.return=Ju(t.value,t.length);break;case Vu:return $n([No(t,{value:Te(t.value,"@","@"+Ee)})],o);case Pl:if(t.length)return t1(t.props,function(s){switch(e1(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return $n([No(t,{props:[Te(s,/:(read-\w+)/,":"+ys+"$1")]})],o);case"::placeholder":return $n([No(t,{props:[Te(s,/:(plac\w+)/,":"+Ee+"input-$1")]}),No(t,{props:[Te(s,/:(plac\w+)/,":"+ys+"$1")]}),No(t,{props:[Te(s,/:(plac\w+)/,pt+"input-$1")]})],o)}return""})}},v1=[b1],x1=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(f){var m=f.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var o=t.stylisPlugins||v1,s={},l,c=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(f){for(var m=f.getAttribute("data-emotion").split(" "),x=1;x<m.length;x++)s[m[x]]=!0;c.push(f)});var d,p=[y1,m1];{var u,h=[d1,u1(function(f){u.insert(f)})],v=p1(p.concat(o,h)),g=function(m){return $n(l1(m),v)};d=function(m,x,b,w){u=b,g(m?m+"{"+x.styles+"}":x.styles),w&&(y.inserted[x.name]=!0)}}var y={key:r,sheet:new Gx({key:r,container:l,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:d};return y.sheet.hydrate(c),y},Es={exports:{}},Pe={};var Qu;function S1(){if(Qu)return Pe;Qu=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=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,v=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(C){if(typeof C=="object"&&C!==null){var O=C.$$typeof;switch(O){case t:switch(C=C.type,C){case d:case p:case n:case s:case o:case h:return C;default:switch(C=C&&C.$$typeof,C){case c:case u:case y:case g:case l:return C;default:return O}}case r:return O}}}function S(C){return w(C)===p}return Pe.AsyncMode=d,Pe.ConcurrentMode=p,Pe.ContextConsumer=c,Pe.ContextProvider=l,Pe.Element=t,Pe.ForwardRef=u,Pe.Fragment=n,Pe.Lazy=y,Pe.Memo=g,Pe.Portal=r,Pe.Profiler=s,Pe.StrictMode=o,Pe.Suspense=h,Pe.isAsyncMode=function(C){return S(C)||w(C)===d},Pe.isConcurrentMode=S,Pe.isContextConsumer=function(C){return w(C)===c},Pe.isContextProvider=function(C){return w(C)===l},Pe.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},Pe.isForwardRef=function(C){return w(C)===u},Pe.isFragment=function(C){return w(C)===n},Pe.isLazy=function(C){return w(C)===y},Pe.isMemo=function(C){return w(C)===g},Pe.isPortal=function(C){return w(C)===r},Pe.isProfiler=function(C){return w(C)===s},Pe.isStrictMode=function(C){return w(C)===o},Pe.isSuspense=function(C){return w(C)===h},Pe.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===n||C===p||C===s||C===o||C===h||C===v||typeof C=="object"&&C!==null&&(C.$$typeof===y||C.$$typeof===g||C.$$typeof===l||C.$$typeof===c||C.$$typeof===u||C.$$typeof===m||C.$$typeof===x||C.$$typeof===b||C.$$typeof===f)},Pe.typeOf=w,Pe}var Ie={};var Zu;function w1(){return Zu||(Zu=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=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,v=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(q){return typeof q=="string"||typeof q=="function"||q===n||q===p||q===s||q===o||q===h||q===v||typeof q=="object"&&q!==null&&(q.$$typeof===y||q.$$typeof===g||q.$$typeof===l||q.$$typeof===c||q.$$typeof===u||q.$$typeof===m||q.$$typeof===x||q.$$typeof===b||q.$$typeof===f)}function S(q){if(typeof q=="object"&&q!==null){var ce=q.$$typeof;switch(ce){case t:var ie=q.type;switch(ie){case d:case p:case n:case s:case o:case h:return ie;default:var ye=ie&&ie.$$typeof;switch(ye){case c:case u:case y:case g:case l:return ye;default:return ce}}case r:return ce}}}var C=d,O=p,I=c,F=l,D=t,L=u,z=n,k=y,j=g,_=r,M=s,N=o,A=h,W=!1;function H(q){return W||(W=!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 U(q){return S(q)===c}function X(q){return S(q)===l}function J(q){return typeof q=="object"&&q!==null&&q.$$typeof===t}function Q(q){return S(q)===u}function Y(q){return S(q)===n}function K(q){return S(q)===y}function ee(q){return S(q)===g}function oe(q){return S(q)===r}function ae(q){return S(q)===s}function Z(q){return S(q)===o}function re(q){return S(q)===h}Ie.AsyncMode=C,Ie.ConcurrentMode=O,Ie.ContextConsumer=I,Ie.ContextProvider=F,Ie.Element=D,Ie.ForwardRef=L,Ie.Fragment=z,Ie.Lazy=k,Ie.Memo=j,Ie.Portal=_,Ie.Profiler=M,Ie.StrictMode=N,Ie.Suspense=A,Ie.isAsyncMode=H,Ie.isConcurrentMode=B,Ie.isContextConsumer=U,Ie.isContextProvider=X,Ie.isElement=J,Ie.isForwardRef=Q,Ie.isFragment=Y,Ie.isLazy=K,Ie.isMemo=ee,Ie.isPortal=oe,Ie.isProfiler=ae,Ie.isStrictMode=Z,Ie.isSuspense=re,Ie.isValidElementType=w,Ie.typeOf=S})()),Ie}var ef;function Ml(){return ef||(ef=1,process.env.NODE_ENV==="production"?Es.exports=S1():Es.exports=w1()),Es.exports}var $l,tf;function C1(){if(tf)return $l;tf=1;var e=Ml(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=n,s[e.Memo]=o;function l(y){return e.isMemo(y)?o:s[y.$$typeof]||t}var c=Object.defineProperty,d=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,v=Object.prototype;function g(y,f,m){if(typeof f!="string"){if(v){var x=h(f);x&&x!==v&&g(y,x,m)}var b=d(f);p&&(b=b.concat(p(f)));for(var w=l(y),S=l(f),C=0;C<b.length;++C){var O=b[C];if(!r[O]&&!(m&&m[O])&&!(S&&S[O])&&!(w&&w[O])){var I=u(f,O);try{c(y,O,I)}catch{}}}}return y}return $l=g,$l}C1();var E1=!0;function rf(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var Dl=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||E1===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},Fl=function(t,r,n){Dl(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function T1(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 O1={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},k1=/[A-Z]|^ms/g,P1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,nf=function(t){return t.charCodeAt(1)===45},of=function(t){return t!=null&&typeof t!="boolean"},zl=Ku(function(e){return nf(e)?e:e.replace(k1,"-$&").toLowerCase()}),sf=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(P1,function(n,o,s){return lr={name:o,styles:s,next:lr},o})}return O1[t]!==1&&!nf(t)&&typeof r=="number"&&r!==0?r+"px":r};function Mo(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return lr={name:o.name,styles:o.styles,next:lr},o.name;var s=r;if(s.styles!==void 0){var l=s.next;if(l!==void 0)for(;l!==void 0;)lr={name:l.name,styles:l.styles,next:lr},l=l.next;var c=s.styles+";";return c}return I1(e,t,r)}case"function":{if(e!==void 0){var d=lr,p=r(e);return lr=d,Mo(e,t,p)}break}}var u=r;if(t==null)return u;var h=t[u];return h!==void 0?h:u}function I1(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Mo(e,t,r[o])+";";else for(var s in r){var l=r[s];if(typeof l!="object"){var c=l;t!=null&&t[c]!==void 0?n+=s+"{"+t[c]+"}":of(c)&&(n+=zl(s)+":"+sf(s,c)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var d=0;d<l.length;d++)of(l[d])&&(n+=zl(s)+":"+sf(s,l[d])+";");else{var p=Mo(e,t,l);switch(s){case"animation":case"animationName":{n+=zl(s)+":"+p+";";break}default:n+=s+"{"+p+"}"}}}return n}var af=/label:\s*([^\s;{]+)\s*(;|$)/g,lr;function $o(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";lr=void 0;var s=e[0];if(s==null||s.raw===void 0)n=!1,o+=Mo(r,t,s);else{var l=s;o+=l[0]}for(var c=1;c<e.length;c++)if(o+=Mo(r,t,e[c]),n){var d=s;o+=d[c]}af.lastIndex=0;for(var p="",u;(u=af.exec(o))!==null;)p+="-"+u[1];var h=T1(o)+p;return{name:h,styles:o,next:lr}}var N1=function(t){return t()},lf=T.useInsertionEffect?T.useInsertionEffect:!1,cf=lf||N1,df=lf||T.useLayoutEffect,pf=T.createContext(typeof HTMLElement<"u"?x1({key:"css"}):null);pf.Provider;var jl=function(t){return $.forwardRef(function(r,n){var o=$.useContext(pf);return t(r,o,n)})},Ts=T.createContext({}),Bl={}.hasOwnProperty,Ll="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",_1=function(t,r){var n={};for(var o in r)Bl.call(r,o)&&(n[o]=r[o]);return n[Ll]=t,n},A1=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Dl(r,n,o),cf(function(){return Fl(r,n,o)}),null},M1=jl(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[Ll],s=[n],l="";typeof e.className=="string"?l=rf(t.registered,s,e.className):e.className!=null&&(l=e.className+" ");var c=$o(s,void 0,T.useContext(Ts));l+=t.key+"-"+c.name;var d={};for(var p in e)Bl.call(e,p)&&p!=="css"&&p!==Ll&&(d[p]=e[p]);return d.className=l,r&&(d.ref=r),T.createElement(T.Fragment,null,T.createElement(A1,{cache:t,serialized:c,isStringTag:typeof o=="string"}),T.createElement(o,d))}),$1=M1,uf=function(t,r){var n=arguments;if(r==null||!Bl.call(r,"css"))return T.createElement.apply(void 0,n);var o=n.length,s=new Array(o);s[0]=$1,s[1]=_1(t,r);for(var l=2;l<o;l++)s[l]=n[l];return T.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(uf||(uf={}));var D1=jl(function(e,t){var r=e.styles,n=$o([r],void 0,T.useContext(Ts)),o=T.useRef();return df(function(){var s=t.key+"-global",l=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+" "+n.name+'"]');return t.sheet.tags.length&&(l.before=t.sheet.tags[0]),d!==null&&(c=!0,d.setAttribute("data-emotion",s),l.hydrate([d])),o.current=[l,c],function(){l.flush()}},[t]),df(function(){var s=o.current,l=s[0],c=s[1];if(c){s[1]=!1;return}if(n.next!==void 0&&Fl(t,n.next,!0),l.tags.length){var d=l.tags[l.tags.length-1].nextElementSibling;l.before=d,l.flush()}t.insert("",n,l,!1)},[t,n.name]),null});function Wl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return $o(t)}function Do(){var e=Wl.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 F1=/^((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)-.*))$/,z1=Ku(function(e){return F1.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),j1=z1,B1=function(t){return t!=="theme"},ff=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?j1:B1},hf=function(t,r,n){var o;if(r){var s=r.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(l){return t.__emotion_forwardProp(l)&&s(l)}:s}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},L1=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Dl(r,n,o),cf(function(){return Fl(r,n,o)}),null},W1=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,s,l;r!==void 0&&(s=r.label,l=r.target);var c=hf(t,r,n),d=c||ff(o),p=!d("as");return function(){var u=arguments,h=n&&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 v=u[0];h.push(v[0]);for(var g=u.length,y=1;y<g;y++)h.push(u[y],v[y])}var f=jl(function(m,x,b){var w=p&&m.as||o,S="",C=[],O=m;if(m.theme==null){O={};for(var I in m)O[I]=m[I];O.theme=T.useContext(Ts)}typeof m.className=="string"?S=rf(x.registered,C,m.className):m.className!=null&&(S=m.className+" ");var F=$o(h.concat(C),x.registered,O);S+=x.key+"-"+F.name,l!==void 0&&(S+=" "+l);var D=p&&c===void 0?ff(w):d,L={};for(var z in m)p&&z==="as"||D(z)&&(L[z]=m[z]);return L.className=S,b&&(L.ref=b),T.createElement(T.Fragment,null,T.createElement(L1,{cache:x,serialized:F,isStringTag:typeof w=="string"}),T.createElement(w,L))});return f.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=o,f.__emotion_styles=h,f.__emotion_forwardProp=c,Object.defineProperty(f,"toString",{value:function(){return"."+l}}),f.withComponent=function(m,x){var b=e(m,gs({},r,x,{shouldForwardProp:hf(f,x,!0)}));return b.apply(void 0,h)},f}},V1=["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"],Vl=W1.bind(null);V1.forEach(function(e){Vl[e]=Vl(e)});var Os={exports:{}};var Ul,gf;function U1(){if(gf)return Ul;gf=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function o(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(l).map(function(u){return l[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 Ul=o()?Object.assign:function(s,l){for(var c,d=n(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 v=0;v<p.length;v++)r.call(c,p[v])&&(d[p[v]]=c[p[v]])}}return d},Ul}var Hl,yf;function Rl(){if(yf)return Hl;yf=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Hl=e,Hl}var ql,mf;function bf(){return mf||(mf=1,ql=Function.call.bind(Object.prototype.hasOwnProperty)),ql}var Yl,vf;function H1(){if(vf)return Yl;vf=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Rl(),r={},n=bf();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function o(s,l,c,d,p){if(process.env.NODE_ENV!=="production"){for(var u in s)if(n(s,u)){var h;try{if(typeof s[u]!="function"){var v=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 v.name="Invariant Violation",v}h=s[u](l,u,d,c,null,t)}catch(y){h=y}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 r)){r[h.message]=!0;var g=p?p():"";e("Failed "+c+" type: "+h.message+(g??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Yl=o,Yl}var Gl,xf;function R1(){if(xf)return Gl;xf=1;var e=Ml(),t=U1(),r=Rl(),n=bf(),o=H1(),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 l(){return null}return Gl=function(c,d){var p=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function h(B){var U=B&&(p&&B[p]||B[u]);if(typeof U=="function")return U}var v="<<anonymous>>",g={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:b(),arrayOf:w,element:S(),elementType:C(),instanceOf:O,node:L(),objectOf:F,oneOf:I,oneOfType:D,shape:k,exact:j};function y(B,U){return B===U?B!==0||1/B===1/U:B!==B&&U!==U}function f(B,U){this.message=B,this.data=U&&typeof U=="object"?U:{},this.stack=""}f.prototype=Error.prototype;function m(B){if(process.env.NODE_ENV!=="production")var U={},X=0;function J(Y,K,ee,oe,ae,Z,re){if(oe=oe||v,Z=Z||ee,re!==r){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 ce=oe+":"+ee;!U[ce]&&X<3&&(s("You are manually calling a React.PropTypes validation function for the `"+Z+"` prop on `"+oe+"`. 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."),U[ce]=!0,X++)}}return K[ee]==null?Y?K[ee]===null?new f("The "+ae+" `"+Z+"` is marked as required "+("in `"+oe+"`, but its value is `null`.")):new f("The "+ae+" `"+Z+"` is marked as required in "+("`"+oe+"`, but its value is `undefined`.")):null:B(K,ee,oe,ae,Z)}var Q=J.bind(null,!1);return Q.isRequired=J.bind(null,!0),Q}function x(B){function U(X,J,Q,Y,K,ee){var oe=X[J],ae=N(oe);if(ae!==B){var Z=A(oe);return new f("Invalid "+Y+" `"+K+"` of type "+("`"+Z+"` supplied to `"+Q+"`, expected ")+("`"+B+"`."),{expectedType:B})}return null}return m(U)}function b(){return m(l)}function w(B){function U(X,J,Q,Y,K){if(typeof B!="function")return new f("Property `"+K+"` of component `"+Q+"` has invalid PropType notation inside arrayOf.");var ee=X[J];if(!Array.isArray(ee)){var oe=N(ee);return new f("Invalid "+Y+" `"+K+"` of type "+("`"+oe+"` supplied to `"+Q+"`, expected an array."))}for(var ae=0;ae<ee.length;ae++){var Z=B(ee,ae,Q,Y,K+"["+ae+"]",r);if(Z instanceof Error)return Z}return null}return m(U)}function S(){function B(U,X,J,Q,Y){var K=U[X];if(!c(K)){var ee=N(K);return new f("Invalid "+Q+" `"+Y+"` of type "+("`"+ee+"` supplied to `"+J+"`, expected a single ReactElement."))}return null}return m(B)}function C(){function B(U,X,J,Q,Y){var K=U[X];if(!e.isValidElementType(K)){var ee=N(K);return new f("Invalid "+Q+" `"+Y+"` of type "+("`"+ee+"` supplied to `"+J+"`, expected a single ReactElement type."))}return null}return m(B)}function O(B){function U(X,J,Q,Y,K){if(!(X[J]instanceof B)){var ee=B.name||v,oe=H(X[J]);return new f("Invalid "+Y+" `"+K+"` of type "+("`"+oe+"` supplied to `"+Q+"`, expected ")+("instance of `"+ee+"`."))}return null}return m(U)}function I(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.")),l;function U(X,J,Q,Y,K){for(var ee=X[J],oe=0;oe<B.length;oe++)if(y(ee,B[oe]))return null;var ae=JSON.stringify(B,function(re,q){var ce=A(q);return ce==="symbol"?String(q):q});return new f("Invalid "+Y+" `"+K+"` of value `"+String(ee)+"` "+("supplied to `"+Q+"`, expected one of "+ae+"."))}return m(U)}function F(B){function U(X,J,Q,Y,K){if(typeof B!="function")return new f("Property `"+K+"` of component `"+Q+"` has invalid PropType notation inside objectOf.");var ee=X[J],oe=N(ee);if(oe!=="object")return new f("Invalid "+Y+" `"+K+"` of type "+("`"+oe+"` supplied to `"+Q+"`, expected an object."));for(var ae in ee)if(n(ee,ae)){var Z=B(ee,ae,Q,Y,K+"."+ae,r);if(Z instanceof Error)return Z}return null}return m(U)}function D(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var U=0;U<B.length;U++){var X=B[U];if(typeof X!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+W(X)+" at index "+U+"."),l}function J(Q,Y,K,ee,oe){for(var ae=[],Z=0;Z<B.length;Z++){var re=B[Z],q=re(Q,Y,K,ee,oe,r);if(q==null)return null;q.data&&n(q.data,"expectedType")&&ae.push(q.data.expectedType)}var ce=ae.length>0?", expected one of type ["+ae.join(", ")+"]":"";return new f("Invalid "+ee+" `"+oe+"` supplied to "+("`"+K+"`"+ce+"."))}return m(J)}function L(){function B(U,X,J,Q,Y){return _(U[X])?null:new f("Invalid "+Q+" `"+Y+"` supplied to "+("`"+J+"`, expected a ReactNode."))}return m(B)}function z(B,U,X,J,Q){return new f((B||"React class")+": "+U+" type `"+X+"."+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Q+"`.")}function k(B){function U(X,J,Q,Y,K){var ee=X[J],oe=N(ee);if(oe!=="object")return new f("Invalid "+Y+" `"+K+"` of type `"+oe+"` "+("supplied to `"+Q+"`, expected `object`."));for(var ae in B){var Z=B[ae];if(typeof Z!="function")return z(Q,Y,K,ae,A(Z));var re=Z(ee,ae,Q,Y,K+"."+ae,r);if(re)return re}return null}return m(U)}function j(B){function U(X,J,Q,Y,K){var ee=X[J],oe=N(ee);if(oe!=="object")return new f("Invalid "+Y+" `"+K+"` of type `"+oe+"` "+("supplied to `"+Q+"`, expected `object`."));var ae=t({},X[J],B);for(var Z in ae){var re=B[Z];if(n(B,Z)&&typeof re!="function")return z(Q,Y,K,Z,A(re));if(!re)return new f("Invalid "+Y+" `"+K+"` key `"+Z+"` supplied to `"+Q+"`.\nBad object: "+JSON.stringify(X[J],null," ")+`
|
|
25
|
+
Valid keys: `+JSON.stringify(Object.keys(B),null," "));var q=re(ee,Z,Q,Y,K+"."+Z,r);if(q)return q}return null}return m(U)}function _(B){switch(typeof B){case"number":case"string":case"undefined":return!0;case"boolean":return!B;case"object":if(Array.isArray(B))return B.every(_);if(B===null||c(B))return!0;var U=h(B);if(U){var X=U.call(B),J;if(U!==B.entries){for(;!(J=X.next()).done;)if(!_(J.value))return!1}else for(;!(J=X.next()).done;){var Q=J.value;if(Q&&!_(Q[1]))return!1}}else return!1;return!0;default:return!1}}function M(B,U){return B==="symbol"?!0:U?U["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&U instanceof Symbol:!1}function N(B){var U=typeof B;return Array.isArray(B)?"array":B instanceof RegExp?"object":M(U,B)?"symbol":U}function A(B){if(typeof B>"u"||B===null)return""+B;var U=N(B);if(U==="object"){if(B instanceof Date)return"date";if(B instanceof RegExp)return"regexp"}return U}function W(B){var U=A(B);switch(U){case"array":case"object":return"an "+U;case"boolean":case"date":case"regexp":return"a "+U;default:return U}}function H(B){return!B.constructor||!B.constructor.name?v:B.constructor.name}return g.checkPropTypes=o,g.resetWarningCache=o.resetWarningCache,g.PropTypes=g,g},Gl}var Kl,Sf;function q1(){if(Sf)return Kl;Sf=1;var e=Rl();function t(){}function r(){}return r.resetWarningCache=t,Kl=function(){function n(l,c,d,p,u,h){if(h!==e){var v=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 v.name="Invariant Violation",v}}n.isRequired=n;function o(){return n}var s={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},Kl}var wf;function Y1(){if(wf)return Os.exports;if(wf=1,process.env.NODE_ENV!=="production"){var e=Ml(),t=!0;Os.exports=R1()(e.isElement,t)}else Os.exports=q1()();return Os.exports}var G1=Y1();const i=qd(G1);function K1(e){return e==null||Object.keys(e).length===0}function Cf(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(K1(o)?r:o):t;return a.jsx(D1,{styles:n})}process.env.NODE_ENV!=="production"&&(Cf.propTypes={defaultTheme:i.object,styles:i.oneOfType([i.array,i.string,i.object,i.func])});function Ef(e,t){const r=Vl(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
26
|
+
`)):n.some(s=>s===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}function X1(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Tf=[];function Wr(e){return Tf[0]=e,$o(Tf)}var ks={exports:{}},De={};var Of;function J1(){if(Of)return De;Of=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=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"),v=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function y(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case e:switch(f=f.type,f){case r:case o:case n:case d:case p:case v:return f;default:switch(f=f&&f.$$typeof,f){case l:case c:case h:case u:return f;case s:return f;default:return m}}case t:return m}}}return De.ContextConsumer=s,De.ContextProvider=l,De.Element=e,De.ForwardRef=c,De.Fragment=r,De.Lazy=h,De.Memo=u,De.Portal=t,De.Profiler=o,De.StrictMode=n,De.Suspense=d,De.SuspenseList=p,De.isContextConsumer=function(f){return y(f)===s},De.isContextProvider=function(f){return y(f)===l},De.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},De.isForwardRef=function(f){return y(f)===c},De.isFragment=function(f){return y(f)===r},De.isLazy=function(f){return y(f)===h},De.isMemo=function(f){return y(f)===u},De.isPortal=function(f){return y(f)===t},De.isProfiler=function(f){return y(f)===o},De.isStrictMode=function(f){return y(f)===n},De.isSuspense=function(f){return y(f)===d},De.isSuspenseList=function(f){return y(f)===p},De.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===o||f===n||f===d||f===p||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===u||f.$$typeof===l||f.$$typeof===s||f.$$typeof===c||f.$$typeof===g||f.getModuleId!==void 0)},De.typeOf=y,De}var Fe={};var kf;function Q1(){return kf||(kf=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case t:switch(f=f.type,f){case n:case s:case o:case p:case u:case g:return f;default:switch(f=f&&f.$$typeof,f){case c:case d:case v:case h:return f;case l:return f;default:return m}}case r:return m}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=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"),v=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");Fe.ContextConsumer=l,Fe.ContextProvider=c,Fe.Element=t,Fe.ForwardRef=d,Fe.Fragment=n,Fe.Lazy=v,Fe.Memo=h,Fe.Portal=r,Fe.Profiler=s,Fe.StrictMode=o,Fe.Suspense=p,Fe.SuspenseList=u,Fe.isContextConsumer=function(f){return e(f)===l},Fe.isContextProvider=function(f){return e(f)===c},Fe.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},Fe.isForwardRef=function(f){return e(f)===d},Fe.isFragment=function(f){return e(f)===n},Fe.isLazy=function(f){return e(f)===v},Fe.isMemo=function(f){return e(f)===h},Fe.isPortal=function(f){return e(f)===r},Fe.isProfiler=function(f){return e(f)===s},Fe.isStrictMode=function(f){return e(f)===o},Fe.isSuspense=function(f){return e(f)===p},Fe.isSuspenseList=function(f){return e(f)===u},Fe.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===s||f===o||f===p||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===v||f.$$typeof===h||f.$$typeof===c||f.$$typeof===l||f.$$typeof===d||f.$$typeof===y||f.getModuleId!==void 0)},Fe.typeOf=e})()),Fe}var Pf;function Z1(){return Pf||(Pf=1,process.env.NODE_ENV==="production"?ks.exports=J1():ks.exports=Q1()),ks.exports}var Ps=Z1();function cr(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 If(e){if(T.isValidElement(e)||Ps.isValidElementType(e)||!cr(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=If(e[r])}),t}function ut(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return cr(e)&&cr(t)&&Object.keys(t).forEach(o=>{T.isValidElement(t[o])||Ps.isValidElementType(t[o])?n[o]=t[o]:cr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&cr(e[o])?n[o]=ut(e[o],t[o],r):r.clone?n[o]=cr(t[o])?If(t[o]):t[o]:n[o]=t[o]}),n}const eS=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function tS(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,s=eS(t),l=Object.keys(s);function c(v){return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${r})`}function d(v){return`@media (max-width:${(typeof t[v]=="number"?t[v]:v)-n/100}${r})`}function p(v,g){const y=l.indexOf(g);return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${r}) and (max-width:${(y!==-1&&typeof t[l[y]]=="number"?t[l[y]]:g)-n/100}${r})`}function u(v){return l.indexOf(v)+1<l.length?p(v,l[l.indexOf(v)+1]):c(v)}function h(v){const g=l.indexOf(v);return g===0?c(l[1]):g===l.length-1?d(l[g]):p(v,l[l.indexOf(v)+1]).replace("@media","@media not all and")}return{keys:l,values:s,up:c,down:d,between:p,only:u,not:h,unit:r,...o}}function Nf(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,o)=>{const s=/min-width:\s*([0-9.]+)/;return+(n.match(s)?.[1]||0)-+(o.match(s)?.[1]||0)});return r.length?r.reduce((n,o)=>{const s=t[o];return delete n[o],n[o]=s,n},{...t}):t}function rS(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function nS(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){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\`.`:ir(18,`(${t})`));return null}const[,n,o]=r,s=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(s)}function oS(e){const t=(s,l)=>s.replace("@media",l?`@container ${l}`:"@container");function r(s,l){s.up=(...c)=>t(e.breakpoints.up(...c),l),s.down=(...c)=>t(e.breakpoints.down(...c),l),s.between=(...c)=>t(e.breakpoints.between(...c),l),s.only=(...c)=>t(e.breakpoints.only(...c),l),s.not=(...c)=>{const d=t(e.breakpoints.not(...c),l);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const n={},o=s=>(r(n,s),n);return r(o),{...e,containerQueries:o}}const iS={borderRadius:4},Vr=process.env.NODE_ENV!=="production"?i.oneOfType([i.number,i.string,i.object,i.array]):{};function Fo(e,t){return t?ut(e,t,{clone:!1}):e}const Is={xs:0,sm:600,md:900,lg:1200,xl:1536},_f={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Is[e]}px)`},sS={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Is[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Tr(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const s=n.breakpoints||_f;return t.reduce((l,c,d)=>(l[s.up(s.keys[d])]=r(t[d]),l),{})}if(typeof t=="object"){const s=n.breakpoints||_f;return Object.keys(t).reduce((l,c)=>{if(rS(s.keys,c)){const d=nS(n.containerQueries?n:sS,c);d&&(l[d]=r(t[c],c))}else if(Object.keys(s.values||Is).includes(c)){const d=s.up(c);l[d]=r(t[c],c)}else{const d=c;l[d]=t[d]}return l},{})}return r(t)}function aS(e={}){return e.keys?.reduce((r,n)=>{const o=e.up(n);return r[o]={},r},{})||{}}function Af(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function te(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":ir(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ns(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function _s(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Ns(e,r)||n,t&&(o=t(o,n,e)),o}function Ye(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,s=l=>{if(l[t]==null)return null;const c=l[t],d=l.theme,p=Ns(d,n)||{};return Tr(l,c,h=>{let v=_s(p,o,h);return h===v&&typeof h=="string"&&(v=_s(p,o,`${t}${h==="default"?"":te(h)}`,h)),r===!1?v:{[r]:v}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:Vr}:{},s.filterProps=[t],s}function lS(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const cS={m:"margin",p:"padding"},dS={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Mf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},pS=lS(e=>{if(e.length>2)if(Mf[e])e=Mf[e];else return[e];const[t,r]=e.split(""),n=cS[t],o=dS[r]||"";return Array.isArray(o)?o.map(s=>n+s):[n+o]}),As=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ms=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],uS=[...As,...Ms];function zo(e,t,r,n){const o=Ns(e,t,!0)??r;return typeof o=="number"||typeof o=="string"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${s}.`),typeof o=="string"?o.startsWith("var(")&&s===0?0:o.startsWith("var(")&&s===1?o:`calc(${s} * ${o})`:o*s):Array.isArray(o)?s=>{if(typeof s=="string")return s;const l=Math.abs(s);process.env.NODE_ENV!=="production"&&(Number.isInteger(l)?l>o.length-1&&console.error([`MUI: The value provided (${l}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${l} > ${o.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
|
-
`)));const c=o[l];return
|
|
30
|
-
`)),()=>{})}function fl(e){return fo(e,"spacing",8,"spacing")}function ho(e,t){return typeof t=="string"||t==null?t:e(t)}function Zv(e,t){return r=>e.reduce((n,o)=>(n[o]=ho(t,r),n),{})}function e1(e,t,r,n){if(!t.includes(r))return null;const o=Jv(r),a=Zv(o,n),l=e[r];return cr(e,l,a)}function Yp(e,t){const r=fl(e.theme);return Object.keys(e).map(n=>e1(e,t,n,r)).reduce(po,{})}function Be(e){return Yp(e,Xi)}Be.propTypes=process.env.NODE_ENV!=="production"?Xi.reduce((e,t)=>(e[t]=wr,e),{}):{},Be.filterProps=Xi;function je(e){return Yp(e,Ji)}je.propTypes=process.env.NODE_ENV!=="production"?Ji.reduce((e,t)=>(e[t]=wr,e),{}):{},je.filterProps=Ji,process.env.NODE_ENV!=="production"&&Qv.reduce((e,t)=>(e[t]=wr,e),{});function Gp(e=8,t=fl({spacing:e})){if(e.mui)return e;const r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(a=>{const l=t(a);return typeof l=="number"?`${l}px`:l}).join(" "));return r.mui=!0,r}function Qi(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?po(o,t[a](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function kt(e){return typeof e!="number"?e:`${e}px solid`}function Ot(e,t){return Ue({prop:e,themeKey:"borders",transform:t})}const t1=Ot("border",kt),r1=Ot("borderTop",kt),n1=Ot("borderRight",kt),o1=Ot("borderBottom",kt),i1=Ot("borderLeft",kt),s1=Ot("borderColor"),a1=Ot("borderTopColor"),l1=Ot("borderRightColor"),c1=Ot("borderBottomColor"),d1=Ot("borderLeftColor"),u1=Ot("outline",kt),p1=Ot("outlineColor"),Zi=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=fo(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:ho(t,n)});return cr(e,e.borderRadius,r)}return null};Zi.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:wr}:{},Zi.filterProps=["borderRadius"],Qi(t1,r1,n1,o1,i1,s1,a1,l1,c1,d1,Zi,u1,p1);const es=e=>{if(e.gap!==void 0&&e.gap!==null){const t=fo(e.theme,"spacing",8,"gap"),r=n=>({gap:ho(t,n)});return cr(e,e.gap,r)}return null};es.propTypes=process.env.NODE_ENV!=="production"?{gap:wr}:{},es.filterProps=["gap"];const ts=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=fo(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:ho(t,n)});return cr(e,e.columnGap,r)}return null};ts.propTypes=process.env.NODE_ENV!=="production"?{columnGap:wr}:{},ts.filterProps=["columnGap"];const rs=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=fo(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:ho(t,n)});return cr(e,e.rowGap,r)}return null};rs.propTypes=process.env.NODE_ENV!=="production"?{rowGap:wr}:{},rs.filterProps=["rowGap"];const f1=Ue({prop:"gridColumn"}),h1=Ue({prop:"gridRow"}),g1=Ue({prop:"gridAutoFlow"}),b1=Ue({prop:"gridAutoColumns"}),y1=Ue({prop:"gridAutoRows"}),m1=Ue({prop:"gridTemplateColumns"}),x1=Ue({prop:"gridTemplateRows"}),v1=Ue({prop:"gridTemplateAreas"}),S1=Ue({prop:"gridArea"});Qi(es,ts,rs,f1,h1,g1,b1,y1,m1,x1,v1,S1);function pn(e,t){return t==="grey"?t:e}const w1=Ue({prop:"color",themeKey:"palette",transform:pn}),C1=Ue({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:pn}),E1=Ue({prop:"backgroundColor",themeKey:"palette",transform:pn});Qi(w1,C1,E1);function St(e){return e<=1&&e!==0?`${e*100}%`:e}const T1=Ue({prop:"width",transform:St}),hl=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||Gi[r];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:St(r)}};return cr(e,e.maxWidth,t)}return null};hl.filterProps=["maxWidth"];const k1=Ue({prop:"minWidth",transform:St}),O1=Ue({prop:"height",transform:St}),P1=Ue({prop:"maxHeight",transform:St}),I1=Ue({prop:"minHeight",transform:St});Ue({prop:"size",cssProperty:"width",transform:St}),Ue({prop:"size",cssProperty:"height",transform:St});const N1=Ue({prop:"boxSizing"});Qi(T1,hl,k1,O1,P1,I1,N1);const go={border:{themeKey:"borders",transform:kt},borderTop:{themeKey:"borders",transform:kt},borderRight:{themeKey:"borders",transform:kt},borderBottom:{themeKey:"borders",transform:kt},borderLeft:{themeKey:"borders",transform:kt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:kt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Zi},color:{themeKey:"palette",transform:pn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:pn},backgroundColor:{themeKey:"palette",transform:pn},p:{style:je},pt:{style:je},pr:{style:je},pb:{style:je},pl:{style:je},px:{style:je},py:{style:je},padding:{style:je},paddingTop:{style:je},paddingRight:{style:je},paddingBottom:{style:je},paddingLeft:{style:je},paddingX:{style:je},paddingY:{style:je},paddingInline:{style:je},paddingInlineStart:{style:je},paddingInlineEnd:{style:je},paddingBlock:{style:je},paddingBlockStart:{style:je},paddingBlockEnd:{style:je},m:{style:Be},mt:{style:Be},mr:{style:Be},mb:{style:Be},ml:{style:Be},mx:{style:Be},my:{style:Be},margin:{style:Be},marginTop:{style:Be},marginRight:{style:Be},marginBottom:{style:Be},marginLeft:{style:Be},marginX:{style:Be},marginY:{style:Be},marginInline:{style:Be},marginInlineStart:{style:Be},marginInlineEnd:{style:Be},marginBlock:{style:Be},marginBlockStart:{style:Be},marginBlockEnd:{style:Be},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:es},rowGap:{style:rs},columnGap:{style:ts},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:St},maxWidth:{style:hl},minWidth:{transform:St},height:{transform:St},maxHeight:{transform:St},minHeight:{transform:St},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 _1(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function A1(e,t){return typeof e=="function"?e(t):e}function M1(){function e(r,n,o,a){const l={[r]:n,theme:o},c=a[r];if(!c)return{[r]:n};const{cssProperty:u=r,themeKey:d,transform:p,style:h}=c;if(n==null)return null;if(d==="typography"&&n==="inherit")return{[r]:n};const y=Ki(o,d)||{};return h?h(l):cr(l,n,g=>{let f=Ri(y,p,g);return g===f&&typeof g=="string"&&(f=Ri(y,p,`${r}${g==="default"?"":R(g)}`,g)),u===!1?f:{[u]:f}})}function t(r){const{sx:n,theme:o={},nested:a}=r||{};if(!n)return null;const l=o.unstable_sxConfig??go;function c(u){let d=u;if(typeof u=="function")d=u(o);else if(typeof u!="object")return u;if(!d)return null;const p=Gv(o.breakpoints),h=Object.keys(p);let y=p;return Object.keys(d).forEach(x=>{const g=A1(d[x],o);if(g!=null)if(typeof g=="object")if(l[x])y=po(y,e(x,g,o,l));else{const f=cr({theme:o},g,b=>({[x]:b}));_1(f,g)?y[x]=t({sx:g,theme:o,nested:!0}):y=po(y,f)}else y=po(y,e(x,g,o,l))}),!a&&o.modularCssLayers?{"@layer sx":Vp(o,Hp(h,y))}:Vp(o,Hp(h,y))}return Array.isArray(n)?n.map(c):c(n)}return t}const Dr=M1();Dr.filterProps=["sx"];function D1(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function gl(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={},...l}=e,c=Lv(r),u=Gp(o);let d=nt({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:u,shape:{...qv,...a}},l);return d=Hv(d),d.applyStyles=D1,d=t.reduce((p,h)=>nt(p,h),d),d.unstable_sxConfig={...go,...l?.unstable_sxConfig},d.unstable_sx=function(h){return Dr({sx:h,theme:this})},d}function z1(e){return Object.keys(e).length===0}function Kp(e=null){const t=k.useContext(Ui);return!t||z1(t)?e:t}const $1=gl();function bl(e=$1){return Kp(e)}function yl(e){const t=Sr(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Rp({styles:e,themeId:t,defaultTheme:r={}}){const n=bl(r),o=t&&n[t]||n;let a=typeof e=="function"?e(o):e;return o.modularCssLayers&&(Array.isArray(a)?a=a.map(l=>yl(typeof l=="function"?l(o):l)):a=yl(a)),s.jsx(zp,{styles:a})}process.env.NODE_ENV!=="production"&&(Rp.propTypes={defaultTheme:i.object,styles:i.oneOfType([i.array,i.func,i.number,i.object,i.string,i.bool]),themeId:i.string});const F1=e=>{const t={systemProps:{},otherProps:{}},r=e?.theme?.unstable_sxConfig??go;return Object.keys(e).forEach(n=>{r[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]}),t};function Xp(e){const{sx:t,...r}=e,{systemProps:n,otherProps:o}=F1(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...l)=>{const c=t(...l);return Gt(c)?{...n,...c}:n}:a={...n,...t},{...o,sx:a}}const Jp=e=>e,Qp=(()=>{let e=Jp;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Jp}}})();function Zp(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Zp(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function te(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Zp(e))&&(n&&(n+=" "),n+=t);return n}function B1(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,a=$p("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(Dr);return k.forwardRef(function(u,d){const p=bl(r),{className:h,component:y="div",...x}=Xp(u);return s.jsx(a,{as:y,ref:d,className:te(h,o?o(n):n),theme:t&&p[t]||p,...x})})}const j1={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 de(e,t,r="Mui"){const n=j1[t];return n?`${r}-${n}`:`${Qp.generate(e)}-${t}`}function le(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=de(e,o,r)}),n}function ef(e,t=""){return e.displayName||e.name||t}function tf(e,t,r){const n=ef(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function W1(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return ef(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Yi.ForwardRef:return tf(e,e.render,"ForwardRef");case Yi.Memo:return tf(e,e.type,"memo");default:return}}}function rf(e){const{variants:t,...r}=e,n={variants:t,style:Sr(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Sr(o.style))}),n}const L1=gl();function ml(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function zr(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function V1(e){return e?(t,r)=>r[e]:null}function U1(e,t,r){e.theme=G1(e.theme)?r:e.theme[t]||e.theme}function ns(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>ns(e,o,r));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=r?zr(n.style,r):n.style;else{const{variants:a,...l}=n;o=r?zr(Sr(l),r):l}return nf(e,n.variants,[o],r)}return n?.isProcessed?r?zr(Sr(n.style),r):n.style:r?zr(Sr(n),r):n}function nf(e,t,r=[],n=void 0){let o;e:for(let a=0;a<t.length;a+=1){const l=t[a];if(typeof l.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!l.props(o))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&e.ownerState?.[c]!==l.props[c])continue e;typeof l.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},r.push(n?zr(Sr(l.style(o)),n):l.style(o))):r.push(n?zr(Sr(l.style),n):l.style)}return r}function H1(e={}){const{themeId:t,defaultTheme:r=L1,rootShouldForwardProp:n=ml,slotShouldForwardProp:o=ml}=e;function a(c){U1(c,t,r)}return(c,u={})=>{$v(c,w=>w.filter(I=>I!==Dr));const{name:d,slot:p,skipVariantsResolver:h,skipSx:y,overridesResolver:x=V1(of(p)),...g}=u,f=d&&d.startsWith("Mui")||p?"components":"custom",b=h!==void 0?h:p&&p!=="Root"&&p!=="root"||!1,S=y||!1;let v=ml;p==="Root"||p==="root"?v=n:p?v=o:K1(c)&&(v=void 0);const T=$p(c,{shouldForwardProp:v,label:Y1(d,p),...g}),C=w=>{if(w.__emotion_real===w)return w;if(typeof w=="function")return function(z){return ns(z,w,z.theme.modularCssLayers?f:void 0)};if(Gt(w)){const I=rf(w);return function(_){return I.variants?ns(_,I,_.theme.modularCssLayers?f:void 0):_.theme.modularCssLayers?zr(I.style,f):I.style}}return w},E=(...w)=>{const I=[],z=w.map(C),_=[];if(I.push(a),d&&x&&_.push(function(M){const $=M.theme.components?.[d]?.styleOverrides;if(!$)return null;const D={};for(const q in $)D[q]=ns(M,$[q],M.theme.modularCssLayers?"theme":void 0);return x(M,D)}),d&&!b&&_.push(function(M){const $=M.theme?.components?.[d]?.variants;return $?nf(M,$,[],M.theme.modularCssLayers?"theme":void 0):null}),S||_.push(Dr),Array.isArray(z[0])){const O=z.shift(),M=new Array(I.length).fill(""),A=new Array(_.length).fill("");let $;$=[...M,...O,...A],$.raw=[...M,...O.raw,...A],I.unshift($)}const N=[...I,...z,..._],L=T(...N);return c.muiName&&(L.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(L.displayName=q1(d,p,c)),L};return T.withConfig&&(E.withConfig=T.withConfig),E}}function q1(e,t,r){return e?`${e}${R(t||"")}`:`Styled(${W1(r)})`}function Y1(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${of(t||"Root")}`),r}function G1(e){for(const t in e)return!1;return!0}function K1(e){return typeof e=="string"&&e.charCodeAt(0)>96}function of(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function bo(e,t,r=!1){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if(a==="components"||a==="slots")n[a]={...e[a],...n[a]};else if(a==="componentsProps"||a==="slotProps"){const l=e[a],c=t[a];if(!c)n[a]=l||{};else if(!l)n[a]=c;else{n[a]={...c};for(const u in l)if(Object.prototype.hasOwnProperty.call(l,u)){const d=u;n[a][d]=bo(l[d],c[d],r)}}}else a==="className"&&r&&t.className?n.className=te(e?.className,t?.className):a==="style"&&r&&t.style?n.style={...e?.style,...t?.style}:n[a]===void 0&&(n[a]=e[a])}return n}function R1(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:bo(t.components[r].defaultProps,n)}const dr=typeof window<"u"?k.useLayoutEffect:k.useEffect;function X1(e,t,r,n,o){const[a,l]=k.useState(()=>o&&r?r(e).matches:n?n(e).matches:t);return dr(()=>{if(!r)return;const c=r(e),u=()=>{l(c.matches)};return u(),c.addEventListener("change",u),()=>{c.removeEventListener("change",u)}},[e,r]),a}const sf={...k}.useSyncExternalStore;function J1(e,t,r,n,o){const a=k.useCallback(()=>t,[t]),l=k.useMemo(()=>{if(o&&r)return()=>r(e).matches;if(n!==null){const{matches:p}=n(e);return()=>p}return a},[a,e,n,o,r]),[c,u]=k.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const p=r(e);return[()=>p.matches,h=>(p.addEventListener("change",h),()=>{p.removeEventListener("change",h)})]},[a,r,e]);return sf(u,c,l)}function af(e={}){const{themeId:t}=e;return function(n,o={}){let a=Kp();a&&t&&(a=a[t]||a);const l=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:c=!1,matchMedia:u=l?window.matchMedia:null,ssrMatchMedia:d=null,noSsr:p=!1}=R1({name:"MuiUseMediaQuery",props:o,theme:a});process.env.NODE_ENV!=="production"&&typeof n=="function"&&a===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
|
-
`));let h=typeof n=="function"?n(
|
|
32
|
-
`));const
|
|
33
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:
|
|
34
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:
|
|
35
|
-
`))}return
|
|
36
|
-
The color object needs to have a \`main\` property or a \`${
|
|
37
|
-
\`color.main\` should be a string, but \`${JSON.stringify(
|
|
29
|
+
`)));const c=o[l];return s>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
30
|
+
`)),()=>{})}function Xl(e){return zo(e,"spacing",8,"spacing")}function jo(e,t){return typeof t=="string"||t==null?t:e(t)}function fS(e,t){return r=>e.reduce((n,o)=>(n[o]=jo(t,r),n),{})}function hS(e,t,r,n){if(!t.includes(r))return null;const o=pS(r),s=fS(o,n),l=e[r];return Tr(e,l,s)}function $f(e,t){const r=Xl(e.theme);return Object.keys(e).map(n=>hS(e,t,n,r)).reduce(Fo,{})}function He(e){return $f(e,As)}He.propTypes=process.env.NODE_ENV!=="production"?As.reduce((e,t)=>(e[t]=Vr,e),{}):{},He.filterProps=As;function Re(e){return $f(e,Ms)}Re.propTypes=process.env.NODE_ENV!=="production"?Ms.reduce((e,t)=>(e[t]=Vr,e),{}):{},Re.filterProps=Ms,process.env.NODE_ENV!=="production"&&uS.reduce((e,t)=>(e[t]=Vr,e),{});function Df(e=8,t=Xl({spacing:e})){if(e.mui)return e;const r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(s=>{const l=t(s);return typeof l=="number"?`${l}px`:l}).join(" "));return r.mui=!0,r}function $s(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(s=>{n[s]=o}),n),{}),r=n=>Object.keys(n).reduce((o,s)=>t[s]?Fo(o,t[s](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function zt(e){return typeof e!="number"?e:`${e}px solid`}function jt(e,t){return Ye({prop:e,themeKey:"borders",transform:t})}const gS=jt("border",zt),yS=jt("borderTop",zt),mS=jt("borderRight",zt),bS=jt("borderBottom",zt),vS=jt("borderLeft",zt),xS=jt("borderColor"),SS=jt("borderTopColor"),wS=jt("borderRightColor"),CS=jt("borderBottomColor"),ES=jt("borderLeftColor"),TS=jt("outline",zt),OS=jt("outlineColor"),Ds=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=zo(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:jo(t,n)});return Tr(e,e.borderRadius,r)}return null};Ds.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Vr}:{},Ds.filterProps=["borderRadius"],$s(gS,yS,mS,bS,vS,xS,SS,wS,CS,ES,Ds,TS,OS);const Fs=e=>{if(e.gap!==void 0&&e.gap!==null){const t=zo(e.theme,"spacing",8,"gap"),r=n=>({gap:jo(t,n)});return Tr(e,e.gap,r)}return null};Fs.propTypes=process.env.NODE_ENV!=="production"?{gap:Vr}:{},Fs.filterProps=["gap"];const zs=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=zo(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:jo(t,n)});return Tr(e,e.columnGap,r)}return null};zs.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Vr}:{},zs.filterProps=["columnGap"];const js=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=zo(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:jo(t,n)});return Tr(e,e.rowGap,r)}return null};js.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Vr}:{},js.filterProps=["rowGap"];const kS=Ye({prop:"gridColumn"}),PS=Ye({prop:"gridRow"}),IS=Ye({prop:"gridAutoFlow"}),NS=Ye({prop:"gridAutoColumns"}),_S=Ye({prop:"gridAutoRows"}),AS=Ye({prop:"gridTemplateColumns"}),MS=Ye({prop:"gridTemplateRows"}),$S=Ye({prop:"gridTemplateAreas"}),DS=Ye({prop:"gridArea"});$s(Fs,zs,js,kS,PS,IS,NS,_S,AS,MS,$S,DS);function Dn(e,t){return t==="grey"?t:e}const FS=Ye({prop:"color",themeKey:"palette",transform:Dn}),zS=Ye({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Dn}),jS=Ye({prop:"backgroundColor",themeKey:"palette",transform:Dn});$s(FS,zS,jS);function At(e){return e<=1&&e!==0?`${e*100}%`:e}const BS=Ye({prop:"width",transform:At}),Jl=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||Is[r];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:At(r)}};return Tr(e,e.maxWidth,t)}return null};Jl.filterProps=["maxWidth"];const LS=Ye({prop:"minWidth",transform:At}),WS=Ye({prop:"height",transform:At}),VS=Ye({prop:"maxHeight",transform:At}),US=Ye({prop:"minHeight",transform:At});Ye({prop:"size",cssProperty:"width",transform:At}),Ye({prop:"size",cssProperty:"height",transform:At});const HS=Ye({prop:"boxSizing"});$s(BS,Jl,LS,WS,VS,US,HS);const Bo={border:{themeKey:"borders",transform:zt},borderTop:{themeKey:"borders",transform:zt},borderRight:{themeKey:"borders",transform:zt},borderBottom:{themeKey:"borders",transform:zt},borderLeft:{themeKey:"borders",transform:zt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:zt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ds},color:{themeKey:"palette",transform:Dn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Dn},backgroundColor:{themeKey:"palette",transform:Dn},p:{style:Re},pt:{style:Re},pr:{style:Re},pb:{style:Re},pl:{style:Re},px:{style:Re},py:{style:Re},padding:{style:Re},paddingTop:{style:Re},paddingRight:{style:Re},paddingBottom:{style:Re},paddingLeft:{style:Re},paddingX:{style:Re},paddingY:{style:Re},paddingInline:{style:Re},paddingInlineStart:{style:Re},paddingInlineEnd:{style:Re},paddingBlock:{style:Re},paddingBlockStart:{style:Re},paddingBlockEnd:{style:Re},m:{style:He},mt:{style:He},mr:{style:He},mb:{style:He},ml:{style:He},mx:{style:He},my:{style:He},margin:{style:He},marginTop:{style:He},marginRight:{style:He},marginBottom:{style:He},marginLeft:{style:He},marginX:{style:He},marginY:{style:He},marginInline:{style:He},marginInlineStart:{style:He},marginInlineEnd:{style:He},marginBlock:{style:He},marginBlockStart:{style:He},marginBlockEnd:{style:He},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:Fs},rowGap:{style:js},columnGap:{style:zs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:At},maxWidth:{style:Jl},minWidth:{transform:At},height:{transform:At},maxHeight:{transform:At},minHeight:{transform:At},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 RS(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function qS(e,t){return typeof e=="function"?e(t):e}function YS(){function e(r,n,o,s){const l={[r]:n,theme:o},c=s[r];if(!c)return{[r]:n};const{cssProperty:d=r,themeKey:p,transform:u,style:h}=c;if(n==null)return null;if(p==="typography"&&n==="inherit")return{[r]:n};const v=Ns(o,p)||{};return h?h(l):Tr(l,n,y=>{let f=_s(v,u,y);return y===f&&typeof y=="string"&&(f=_s(v,u,`${r}${y==="default"?"":te(y)}`,y)),d===!1?f:{[d]:f}})}function t(r){const{sx:n,theme:o={},nested:s}=r||{};if(!n)return null;const l=o.unstable_sxConfig??Bo;function c(d){let p=d;if(typeof d=="function")p=d(o);else if(typeof d!="object")return d;if(!p)return null;const u=aS(o.breakpoints),h=Object.keys(u);let v=u;return Object.keys(p).forEach(g=>{const y=qS(p[g],o);if(y!=null)if(typeof y=="object")if(l[g])v=Fo(v,e(g,y,o,l));else{const f=Tr({theme:o},y,m=>({[g]:m}));RS(f,y)?v[g]=t({sx:y,theme:o,nested:!0}):v=Fo(v,f)}else v=Fo(v,e(g,y,o,l))}),!s&&o.modularCssLayers?{"@layer sx":Nf(o,Af(h,v))}:Nf(o,Af(h,v))}return Array.isArray(n)?n.map(c):c(n)}return t}const nn=YS();nn.filterProps=["sx"];function GS(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function Ql(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:s={},...l}=e,c=tS(r),d=Df(o);let p=ut({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:d,shape:{...iS,...s}},l);return p=oS(p),p.applyStyles=GS,p=t.reduce((u,h)=>ut(u,h),p),p.unstable_sxConfig={...Bo,...l?.unstable_sxConfig},p.unstable_sx=function(h){return nn({sx:h,theme:this})},p}function KS(e){return Object.keys(e).length===0}function Ff(e=null){const t=T.useContext(Ts);return!t||KS(t)?e:t}const XS=Ql();function Zl(e=XS){return Ff(e)}function ec(e){const t=Wr(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function zf({styles:e,themeId:t,defaultTheme:r={}}){const n=Zl(r),o=t&&n[t]||n;let s=typeof e=="function"?e(o):e;return o.modularCssLayers&&(Array.isArray(s)?s=s.map(l=>ec(typeof l=="function"?l(o):l)):s=ec(s)),a.jsx(Cf,{styles:s})}process.env.NODE_ENV!=="production"&&(zf.propTypes={defaultTheme:i.object,styles:i.oneOfType([i.array,i.func,i.number,i.object,i.string,i.bool]),themeId:i.string});const JS=e=>{const t={systemProps:{},otherProps:{}},r=e?.theme?.unstable_sxConfig??Bo;return Object.keys(e).forEach(n=>{r[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]}),t};function jf(e){const{sx:t,...r}=e,{systemProps:n,otherProps:o}=JS(r);let s;return Array.isArray(t)?s=[n,...t]:typeof t=="function"?s=(...l)=>{const c=t(...l);return cr(c)?{...n,...c}:n}:s={...n,...t},{...o,sx:s}}const Bf=e=>e,Lf=(()=>{let e=Bf;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Bf}}})();function Wf(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Wf(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function se(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Wf(e))&&(n&&(n+=" "),n+=t);return n}function QS(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,s=Ef("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(nn);return T.forwardRef(function(d,p){const u=Zl(r),{className:h,component:v="div",...g}=jf(d);return a.jsx(s,{as:v,ref:p,className:se(h,o?o(n):n),theme:t&&u[t]||u,...g})})}const ZS={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,r="Mui"){const n=ZS[t];return n?`${r}-${n}`:`${Lf.generate(e)}-${t}`}function de(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=pe(e,o,r)}),n}function Vf(e,t=""){return e.displayName||e.name||t}function Uf(e,t,r){const n=Vf(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function ew(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Vf(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ps.ForwardRef:return Uf(e,e.render,"ForwardRef");case Ps.Memo:return Uf(e,e.type,"memo");default:return}}}function Hf(e){const{variants:t,...r}=e,n={variants:t,style:Wr(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Wr(o.style))}),n}const tw=Ql();function tc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function on(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function rw(e){return e?(t,r)=>r[e]:null}function nw(e,t,r){e.theme=aw(e.theme)?r:e.theme[t]||e.theme}function Bs(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>Bs(e,o,r));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=r?on(n.style,r):n.style;else{const{variants:s,...l}=n;o=r?on(Wr(l),r):l}return Rf(e,n.variants,[o],r)}return n?.isProcessed?r?on(Wr(n.style),r):n.style:r?on(Wr(n),r):n}function Rf(e,t,r=[],n=void 0){let o;e:for(let s=0;s<t.length;s+=1){const l=t[s];if(typeof l.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!l.props(o))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&e.ownerState?.[c]!==l.props[c])continue e;typeof l.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},r.push(n?on(Wr(l.style(o)),n):l.style(o))):r.push(n?on(Wr(l.style),n):l.style)}return r}function ow(e={}){const{themeId:t,defaultTheme:r=tw,rootShouldForwardProp:n=tc,slotShouldForwardProp:o=tc}=e;function s(c){nw(c,t,r)}return(c,d={})=>{X1(c,O=>O.filter(I=>I!==nn));const{name:p,slot:u,skipVariantsResolver:h,skipSx:v,overridesResolver:g=rw(qf(u)),...y}=d,f=p&&p.startsWith("Mui")||u?"components":"custom",m=h!==void 0?h:u&&u!=="Root"&&u!=="root"||!1,x=v||!1;let b=tc;u==="Root"||u==="root"?b=n:u?b=o:lw(c)&&(b=void 0);const w=Ef(c,{shouldForwardProp:b,label:sw(p,u),...y}),S=O=>{if(O.__emotion_real===O)return O;if(typeof O=="function")return function(F){return Bs(F,O,F.theme.modularCssLayers?f:void 0)};if(cr(O)){const I=Hf(O);return function(D){return I.variants?Bs(D,I,D.theme.modularCssLayers?f:void 0):D.theme.modularCssLayers?on(I.style,f):I.style}}return O},C=(...O)=>{const I=[],F=O.map(S),D=[];if(I.push(s),p&&g&&D.push(function(j){const M=j.theme.components?.[p]?.styleOverrides;if(!M)return null;const N={};for(const A in M)N[A]=Bs(j,M[A],j.theme.modularCssLayers?"theme":void 0);return g(j,N)}),p&&!m&&D.push(function(j){const M=j.theme?.components?.[p]?.variants;return M?Rf(j,M,[],j.theme.modularCssLayers?"theme":void 0):null}),x||D.push(nn),Array.isArray(F[0])){const k=F.shift(),j=new Array(I.length).fill(""),_=new Array(D.length).fill("");let M;M=[...j,...k,..._],M.raw=[...j,...k.raw,..._],I.unshift(M)}const L=[...I,...F,...D],z=w(...L);return c.muiName&&(z.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(z.displayName=iw(p,u,c)),z};return w.withConfig&&(C.withConfig=w.withConfig),C}}function iw(e,t,r){return e?`${e}${te(t||"")}`:`Styled(${ew(r)})`}function sw(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${qf(t||"Root")}`),r}function aw(e){for(const t in e)return!1;return!0}function lw(e){return typeof e=="string"&&e.charCodeAt(0)>96}function qf(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Lo(e,t,r=!1){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=o;if(s==="components"||s==="slots")n[s]={...e[s],...n[s]};else if(s==="componentsProps"||s==="slotProps"){const l=e[s],c=t[s];if(!c)n[s]=l||{};else if(!l)n[s]=c;else{n[s]={...c};for(const d in l)if(Object.prototype.hasOwnProperty.call(l,d)){const p=d;n[s][p]=Lo(l[p],c[p],r)}}}else s==="className"&&r&&t.className?n.className=se(e?.className,t?.className):s==="style"&&r&&t.style?n.style={...e?.style,...t?.style}:n[s]===void 0&&(n[s]=e[s])}return n}function cw(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Lo(t.components[r].defaultProps,n)}const Xt=typeof window<"u"?T.useLayoutEffect:T.useEffect;function dw(e,t,r,n,o){const[s,l]=T.useState(()=>o&&r?r(e).matches:n?n(e).matches:t);return Xt(()=>{if(!r)return;const c=r(e),d=()=>{l(c.matches)};return d(),c.addEventListener("change",d),()=>{c.removeEventListener("change",d)}},[e,r]),s}const Yf={...T}.useSyncExternalStore;function pw(e,t,r,n,o){const s=T.useCallback(()=>t,[t]),l=T.useMemo(()=>{if(o&&r)return()=>r(e).matches;if(n!==null){const{matches:u}=n(e);return()=>u}return s},[s,e,n,o,r]),[c,d]=T.useMemo(()=>{if(r===null)return[s,()=>()=>{}];const u=r(e);return[()=>u.matches,h=>(u.addEventListener("change",h),()=>{u.removeEventListener("change",h)})]},[s,r,e]);return Yf(d,c,l)}function Gf(e={}){const{themeId:t}=e;return function(n,o={}){let s=Ff();s&&t&&(s=s[t]||s);const l=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:c=!1,matchMedia:d=l?window.matchMedia:null,ssrMatchMedia:p=null,noSsr:u=!1}=cw({name:"MuiUseMediaQuery",props:o,theme:s});process.env.NODE_ENV!=="production"&&typeof n=="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
|
+
`));let h=typeof n=="function"?n(s):n;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
|
+
`));const g=(Yf!==void 0?pw:dw)(h,c,d,p,u);return process.env.NODE_ENV!=="production"&&T.useDebugValue({query:h,match:g}),g}}Gf();function uw(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function rc(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),uw(e,t,r)}function fw(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),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.`),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Ur(e){if(e.type)return e;if(e.charAt(0)==="#")return Ur(fw(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
33
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:ir(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
|
|
34
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:ir(10,o))}else n=n.split(",");return n=n.map(s=>parseFloat(s)),{type:r,values:n,colorSpace:o}}const hw=e=>{const t=Ur(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Wo=(e,t)=>{try{return hw(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Ls(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((o,s)=>s<3?parseInt(o,10):o):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Kf(e){e=Ur(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,s=n*Math.min(o,1-o),l=(p,u=(p+r/30)%12)=>o-s*Math.max(Math.min(u-3,9-u,1),-1);let c="rgb";const d=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(c+="a",d.push(t[3])),Ls({type:c,values:d})}function nc(e){e=Ur(e);let t=e.type==="hsl"||e.type==="hsla"?Ur(Kf(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Xf(e,t){const r=nc(e),n=nc(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Ws(e,t){return e=Ur(e),t=rc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ls(e)}function sn(e,t,r){try{return Ws(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Vs(e,t){if(e=Ur(e),t=rc(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Ls(e)}function Me(e,t,r){try{return Vs(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Us(e,t){if(e=Ur(e),t=rc(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Ls(e)}function $e(e,t,r){try{return Us(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function oc(e,t=.15){return nc(e)>.5?Vs(e,t):Us(e,t)}function Hs(e,t,r){try{return oc(e,t)}catch{return e}}const gw="exact-prop: ";function ic(e){return process.env.NODE_ENV==="production"?e:{...e,[gw]:t=>{const r=Object.keys(t).filter(n=>!e.hasOwnProperty(n));return r.length>0?new Error(`The following props are not supported: ${r.map(n=>`\`${n}\``).join(", ")}. Please remove them.`):null}}}const yw=T.createContext();process.env.NODE_ENV!=="production"&&(i.node,i.bool);const sc=()=>T.useContext(yw)??!1,mw=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(i.node,i.object);function bw(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Lo(o.defaultProps,n,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Lo(o,n,t.components.mergeClassNameAndStyle):n}function vw({props:e,name:t}){const r=T.useContext(mw);return bw({props:e,name:t,theme:{components:r}})}let Jf=0;function xw(e){const[t,r]=T.useState(e),n=e||t;return T.useEffect(()=>{t==null&&(Jf+=1,r(`mui-${Jf}`))},[t]),n}const Qf={...T}.useId;function an(e){if(Qf!==void 0){const t=Qf();return e??t}return xw(e)}const Zf={theme:void 0};function Sw(e){let t,r;return function(o){let s=t;return(s===void 0||o.theme!==r)&&(Zf.theme=o.theme,s=Hf(e(Zf)),t=s,r=o.theme),s}}function ww(e=""){function t(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.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}-`:""}${o}${t(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${e?`${e}-`:""}${n}${t(...o)})`}const eh=(e,t,r,n=[])=>{let o=e;t.forEach((s,l)=>{l===t.length-1?Array.isArray(o)?o[Number(s)]=r:o&&typeof o=="object"&&(o[s]=r):o&&typeof o=="object"&&(o[s]||(o[s]=n.includes(s)?[]:{}),o=o[s])})},Cw=(e,t,r)=>{function n(o,s=[],l=[]){Object.entries(o).forEach(([c,d])=>{(!r||r&&!r([...s,c]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?n(d,[...s,c],Array.isArray(d)?[...l,c]:l):t([...s,c],d,l))})}n(e)},Ew=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function ac(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},s={},l={};return Cw(e,(c,d,p)=>{if((typeof d=="string"||typeof d=="number")&&(!n||!n(c,d))){const u=`--${r?`${r}-`:""}${c.join("-")}`,h=Ew(c,d);Object.assign(o,{[u]:h}),eh(s,c,`var(${u})`,p),eh(l,c,`var(${u}, ${h})`,p)}},c=>c[0]==="vars"),{css:o,vars:s,varsWithDefaults:l}}function Tw(e,t={}){const{getSelector:r=x,disableCssColorScheme:n,colorSchemeSelector:o,enableContrastVars:s}=t,{colorSchemes:l={},components:c,defaultColorScheme:d="light",...p}=e,{vars:u,css:h,varsWithDefaults:v}=ac(p,t);let g=v;const y={},{[d]:f,...m}=l;if(Object.entries(m||{}).forEach(([S,C])=>{const{vars:O,css:I,varsWithDefaults:F}=ac(C,t);g=ut(g,F),y[S]={css:I,vars:O}}),f){const{css:S,vars:C,varsWithDefaults:O}=ac(f,t);g=ut(g,O),y[d]={css:S,vars:C}}function x(S,C){let O=o;if(o==="class"&&(O=".%s"),o==="data"&&(O="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(O=`[${o}="%s"]`),S){if(O==="media")return e.defaultColorScheme===S?":root":{[`@media (prefers-color-scheme: ${l[S]?.palette?.mode||S})`]:{":root":C}};if(O)return e.defaultColorScheme===S?`:root, ${O.replace("%s",String(S))}`:O.replace("%s",String(S))}return":root"}return{vars:g,generateThemeVars:()=>{let S={...u};return Object.entries(y).forEach(([,{vars:C}])=>{S=ut(S,C)}),S},generateStyleSheets:()=>{const S=[],C=e.defaultColorScheme||"light";function O(D,L){Object.keys(L).length&&S.push(typeof D=="string"?{[D]:{...L}}:D)}O(r(void 0,{...h}),h);const{[C]:I,...F}=y;if(I){const{css:D}=I,L=l[C]?.palette?.mode,z=!n&&L?{colorScheme:L,...D}:{...D};O(r(C,{...z}),z)}return Object.entries(F).forEach(([D,{css:L}])=>{const z=l[D]?.palette?.mode,k=!n&&z?{colorScheme:z,...L}:{...L};O(r(D,{...k}),k)}),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 Ow(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}function ue(e,t,r=void 0){const n={};for(const o in e){const s=e[o];let l="",c=!0;for(let d=0;d<s.length;d+=1){const p=s[d];p&&(l+=(c===!0?"":" ")+t(p),c=!1,r&&r[p]&&(l+=" "+r[p]))}n[o]=l}return n}function lc(e,t){return T.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function th(){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:Oo.white,default:Oo.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 rh=th();function nh(){return{text:{primary:Oo.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:Oo.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 cc=nh();function oh(e,t,r,n){const o=n.light||n,s=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Us(e.main,o):t==="dark"&&(e.dark=Vs(e.main,s)))}function ih(e,t,r,n,o){const s=o.light||o,l=o.dark||o*1.5;t[r]||(t.hasOwnProperty(n)?t[r]=t[n]:r==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(s*100).toFixed(0)}%)`:r==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(l*100).toFixed(0)}%)`))}function kw(e="light"){return e==="dark"?{main:In[200],light:In[50],dark:In[400]}:{main:In[700],light:In[400],dark:In[800]}}function Pw(e="light"){return e==="dark"?{main:Pn[200],light:Pn[50],dark:Pn[400]}:{main:Pn[500],light:Pn[300],dark:Pn[700]}}function Iw(e="light"){return e==="dark"?{main:kn[500],light:kn[300],dark:kn[700]}:{main:kn[700],light:kn[400],dark:kn[800]}}function Nw(e="light"){return e==="dark"?{main:Nn[400],light:Nn[300],dark:Nn[700]}:{main:Nn[700],light:Nn[500],dark:Nn[900]}}function _w(e="light"){return e==="dark"?{main:_n[400],light:_n[300],dark:_n[700]}:{main:_n[800],light:_n[500],dark:_n[900]}}function Aw(e="light"){return e==="dark"?{main:ko[400],light:ko[300],dark:ko[700]}:{main:"#ed6c02",light:ko[500],dark:ko[900]}}function Mw(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function dc(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:o,...s}=e,l=e.primary||kw(t),c=e.secondary||Pw(t),d=e.error||Iw(t),p=e.info||Nw(t),u=e.success||_w(t),h=e.warning||Aw(t);function v(m){if(o)return Mw(m);const x=Xf(m,cc.text.primary)>=r?cc.text.primary:rh.text.primary;if(process.env.NODE_ENV!=="production"){const b=Xf(m,x);b<3&&console.error([`MUI: The contrast ratio of ${b}:1 for ${x} on ${m}`,"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
|
+
`))}return x}const g=({color:m,name:x,mainShade:b=500,lightShade:w=300,darkShade:S=700})=>{if(m={...m},!m.main&&m[b]&&(m.main=m[b]),!m.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
|
|
36
|
+
The color object needs to have a \`main\` property or a \`${b}\` property.`:ir(11,x?` (${x})`:"",b));if(typeof m.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
|
|
37
|
+
\`color.main\` should be a string, but \`${JSON.stringify(m.main)}\` was provided instead.
|
|
38
38
|
|
|
39
39
|
Did you intend to use one of the following approaches?
|
|
40
40
|
|
|
@@ -46,21 +46,21 @@ const theme1 = createTheme({ palette: {
|
|
|
46
46
|
|
|
47
47
|
const theme2 = createTheme({ palette: {
|
|
48
48
|
primary: { main: green[500] },
|
|
49
|
-
} });`:
|
|
50
|
-
`)),Object.keys(
|
|
49
|
+
} });`:ir(12,x?` (${x})`:"",JSON.stringify(m.main)));return o?(ih(o,m,"light",w,n),ih(o,m,"dark",S,n)):(oh(m,"light",w,n),oh(m,"dark",S,n)),m.contrastText||(m.contrastText=v(m.main)),m};let y;return t==="light"?y=th():t==="dark"&&(y=nh()),process.env.NODE_ENV!=="production"&&(y||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),ut({common:{...Oo},mode:t,primary:g({color:l,name:"primary"}),secondary:g({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:d,name:"error"}),warning:g({color:h,name:"warning"}),info:g({color:p,name:"info"}),success:g({color:u,name:"success"}),grey:Rx,contrastThreshold:r,getContrastText:v,augmentColor:g,tonalOffset:n,...y},s)}function $w(e){const t={};return Object.entries(e).forEach(n=>{const[o,s]=n;typeof s=="object"&&(t[o]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function Dw(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Fw(e){return Math.round(e*1e5)/1e5}const sh={textTransform:"uppercase"},ah='"Roboto", "Helvetica", "Arial", sans-serif';function zw(e,t){const{fontFamily:r=ah,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:p,pxToRem:u,...h}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof d!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const v=n/14,g=u||(m=>`${m/d*v}rem`),y=(m,x,b,w,S)=>({fontFamily:r,fontWeight:m,fontSize:g(x),lineHeight:b,...r===ah?{letterSpacing:`${Fw(w/x)}em`}:{},...S,...p}),f={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(s,48,1.167,0),h4:y(s,34,1.235,.25),h5:y(s,24,1.334,0),h6:y(l,20,1.6,.15),subtitle1:y(s,16,1.75,.15),subtitle2:y(l,14,1.57,.1),body1:y(s,16,1.5,.15),body2:y(s,14,1.43,.15),button:y(l,14,1.75,.4,sh),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,sh),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ut({htmlFontSize:d,pxToRem:g,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:l,fontWeightBold:c,...f},h,{clone:!1})}const jw=.2,Bw=.14,Lw=.12;function We(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${jw})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Bw})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Lw})`].join(",")}const Ww=["none",We(0,2,1,-1,0,1,1,0,0,1,3,0),We(0,3,1,-2,0,2,2,0,0,1,5,0),We(0,3,3,-2,0,3,4,0,0,1,8,0),We(0,2,4,-1,0,4,5,0,0,1,10,0),We(0,3,5,-1,0,5,8,0,0,1,14,0),We(0,3,5,-1,0,6,10,0,0,1,18,0),We(0,4,5,-2,0,7,10,1,0,2,16,1),We(0,5,5,-3,0,8,10,1,0,3,14,2),We(0,5,6,-3,0,9,12,1,0,3,16,2),We(0,6,6,-3,0,10,14,1,0,4,18,3),We(0,6,7,-4,0,11,15,1,0,4,20,3),We(0,7,8,-4,0,12,17,2,0,5,22,4),We(0,7,8,-4,0,13,19,2,0,5,24,4),We(0,7,9,-4,0,14,21,2,0,5,26,4),We(0,8,9,-5,0,15,22,2,0,6,28,5),We(0,8,10,-5,0,16,24,2,0,6,30,5),We(0,8,11,-5,0,17,26,2,0,6,32,5),We(0,9,11,-5,0,18,28,2,0,7,34,6),We(0,9,12,-6,0,19,29,2,0,7,36,6),We(0,10,13,-6,0,20,31,3,0,8,38,7),We(0,10,13,-6,0,21,33,3,0,8,40,7),We(0,10,14,-6,0,22,35,3,0,8,42,7),We(0,11,14,-7,0,23,36,3,0,9,44,8),We(0,11,15,-7,0,24,38,3,0,9,46,8)],Vw={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Uw={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function lh(e){return`${Math.round(e)}ms`}function Hw(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Rw(e){const t={...Vw,...e.easing},r={...Uw,...e.duration};return{getAutoHeightDuration:Hw,create:(o=["all"],s={})=>{const{duration:l=r.standard,easing:c=t.easeInOut,delay:d=0,...p}=s;if(process.env.NODE_ENV!=="production"){const u=v=>typeof v=="string",h=v=>!Number.isNaN(parseFloat(v));!u(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(l)&&!u(l)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${l}.`),u(c)||console.error('MUI: Argument "easing" must be a string.'),!h(d)&&!u(d)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
50
|
+
`)),Object.keys(p).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(p).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof l=="string"?l:lh(l)} ${c} ${typeof d=="string"?d:lh(d)}`).join(",")},...e,easing:t,duration:r}}const qw={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Yw(e){return cr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function ch(e={}){const t={...e};function r(n){const o=Object.entries(n);for(let s=0;s<o.length;s++){const[l,c]=o[s];!Yw(c)||l.startsWith("unstable_")?delete n[l]:cr(c)&&(n[l]={...c},r(n[l]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
51
51
|
|
|
52
52
|
const theme = ${JSON.stringify(t,null,2)};
|
|
53
53
|
|
|
54
54
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
55
55
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
56
56
|
|
|
57
|
-
export default theme;`}function
|
|
58
|
-
`))}b
|
|
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 US(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Kt=e=>{try{return e()}catch{}},HS=(e="mui")=>cS(e);function Il(e,t,r,n,o){if(!r)return;r=r===!0?{}:r;const a=o==="dark"?"dark":"light";if(!n){t[o]=BS({...r,palette:{mode:a,...r?.palette},colorSpace:e});return}const{palette:l,...c}=Ol({...n,palette:{mode:a,...r?.palette},colorSpace:e});return t[o]={...r,palette:l,opacity:{...Ef(a),...r?.opacity},overlays:r?.overlays||Tf(a)},c}function qS(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",nativeColor:l=!1,shouldSkipGeneratingVar:c=jS,colorSchemeSelector:u=r.light&&r.dark?"media":void 0,rootSelector:d=":root",...p}=e,h=Object.keys(r)[0],y=n||(r.light&&h!=="light"?"light":h),x=HS(a),{[y]:g,light:f,dark:b,...S}=r,v={...S};let T=g;if((y==="dark"&&!("dark"in r)||y==="light"&&!("light"in r))&&(T=!0),!T)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${y}\` option is either missing or invalid.`:Ut(21,y));let C;l&&(C="oklch");const E=Il(C,v,T,p,y);f&&!v.light&&Il(C,v,f,void 0,"light"),b&&!v.dark&&Il(C,v,b,void 0,"dark");let w={defaultColorScheme:y,...E,cssVarPrefix:a,colorSchemeSelector:u,rootSelector:d,getCssVar:x,colorSchemes:v,font:{...SS(E.typography),...E.font},spacing:US(p.spacing)};Object.keys(w.colorSchemes).forEach(L=>{const O=w.colorSchemes[L].palette,M=$=>{const D=$.split("-"),q=D[1],H=D[2];return x($,O[q][H])};O.mode==="light"&&(V(O.common,"background","#fff"),V(O.common,"onBackground","#000")),O.mode==="dark"&&(V(O.common,"background","#000"),V(O.common,"onBackground","#fff"));function A($,D,q){if(C){let H;return $===$r&&(H=`transparent ${((1-q)*100).toFixed(0)}%`),$===ke&&(H=`#000 ${(q*100).toFixed(0)}%`),$===Oe&&(H=`#fff ${(q*100).toFixed(0)}%`),`color-mix(in ${C}, ${D}, ${H})`}return $(D,q)}if(VS(O,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),O.mode==="light"){V(O.Alert,"errorColor",A(ke,O.error.light,.6)),V(O.Alert,"infoColor",A(ke,O.info.light,.6)),V(O.Alert,"successColor",A(ke,O.success.light,.6)),V(O.Alert,"warningColor",A(ke,O.warning.light,.6)),V(O.Alert,"errorFilledBg",M("palette-error-main")),V(O.Alert,"infoFilledBg",M("palette-info-main")),V(O.Alert,"successFilledBg",M("palette-success-main")),V(O.Alert,"warningFilledBg",M("palette-warning-main")),V(O.Alert,"errorFilledColor",Kt(()=>O.getContrastText(O.error.main))),V(O.Alert,"infoFilledColor",Kt(()=>O.getContrastText(O.info.main))),V(O.Alert,"successFilledColor",Kt(()=>O.getContrastText(O.success.main))),V(O.Alert,"warningFilledColor",Kt(()=>O.getContrastText(O.warning.main))),V(O.Alert,"errorStandardBg",A(Oe,O.error.light,.9)),V(O.Alert,"infoStandardBg",A(Oe,O.info.light,.9)),V(O.Alert,"successStandardBg",A(Oe,O.success.light,.9)),V(O.Alert,"warningStandardBg",A(Oe,O.warning.light,.9)),V(O.Alert,"errorIconColor",M("palette-error-main")),V(O.Alert,"infoIconColor",M("palette-info-main")),V(O.Alert,"successIconColor",M("palette-success-main")),V(O.Alert,"warningIconColor",M("palette-warning-main")),V(O.AppBar,"defaultBg",M("palette-grey-100")),V(O.Avatar,"defaultBg",M("palette-grey-400")),V(O.Button,"inheritContainedBg",M("palette-grey-300")),V(O.Button,"inheritContainedHoverBg",M("palette-grey-A100")),V(O.Chip,"defaultBorder",M("palette-grey-400")),V(O.Chip,"defaultAvatarColor",M("palette-grey-700")),V(O.Chip,"defaultIconColor",M("palette-grey-700")),V(O.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),V(O.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),V(O.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),V(O.LinearProgress,"primaryBg",A(Oe,O.primary.main,.62)),V(O.LinearProgress,"secondaryBg",A(Oe,O.secondary.main,.62)),V(O.LinearProgress,"errorBg",A(Oe,O.error.main,.62)),V(O.LinearProgress,"infoBg",A(Oe,O.info.main,.62)),V(O.LinearProgress,"successBg",A(Oe,O.success.main,.62)),V(O.LinearProgress,"warningBg",A(Oe,O.warning.main,.62)),V(O.Skeleton,"bg",C?A($r,O.text.primary,.11):`rgba(${M("palette-text-primaryChannel")} / 0.11)`),V(O.Slider,"primaryTrack",A(Oe,O.primary.main,.62)),V(O.Slider,"secondaryTrack",A(Oe,O.secondary.main,.62)),V(O.Slider,"errorTrack",A(Oe,O.error.main,.62)),V(O.Slider,"infoTrack",A(Oe,O.info.main,.62)),V(O.Slider,"successTrack",A(Oe,O.success.main,.62)),V(O.Slider,"warningTrack",A(Oe,O.warning.main,.62));const $=C?A(ke,O.background.default,.6825):ls(O.background.default,.8);V(O.SnackbarContent,"bg",$),V(O.SnackbarContent,"color",Kt(()=>C?Tl.text.primary:O.getContrastText($))),V(O.SpeedDialAction,"fabHoverBg",ls(O.background.paper,.15)),V(O.StepConnector,"border",M("palette-grey-400")),V(O.StepContent,"border",M("palette-grey-400")),V(O.Switch,"defaultColor",M("palette-common-white")),V(O.Switch,"defaultDisabledColor",M("palette-grey-100")),V(O.Switch,"primaryDisabledColor",A(Oe,O.primary.main,.62)),V(O.Switch,"secondaryDisabledColor",A(Oe,O.secondary.main,.62)),V(O.Switch,"errorDisabledColor",A(Oe,O.error.main,.62)),V(O.Switch,"infoDisabledColor",A(Oe,O.info.main,.62)),V(O.Switch,"successDisabledColor",A(Oe,O.success.main,.62)),V(O.Switch,"warningDisabledColor",A(Oe,O.warning.main,.62)),V(O.TableCell,"border",A(Oe,A($r,O.divider,1),.88)),V(O.Tooltip,"bg",A($r,O.grey[700],.92))}if(O.mode==="dark"){V(O.Alert,"errorColor",A(Oe,O.error.light,.6)),V(O.Alert,"infoColor",A(Oe,O.info.light,.6)),V(O.Alert,"successColor",A(Oe,O.success.light,.6)),V(O.Alert,"warningColor",A(Oe,O.warning.light,.6)),V(O.Alert,"errorFilledBg",M("palette-error-dark")),V(O.Alert,"infoFilledBg",M("palette-info-dark")),V(O.Alert,"successFilledBg",M("palette-success-dark")),V(O.Alert,"warningFilledBg",M("palette-warning-dark")),V(O.Alert,"errorFilledColor",Kt(()=>O.getContrastText(O.error.dark))),V(O.Alert,"infoFilledColor",Kt(()=>O.getContrastText(O.info.dark))),V(O.Alert,"successFilledColor",Kt(()=>O.getContrastText(O.success.dark))),V(O.Alert,"warningFilledColor",Kt(()=>O.getContrastText(O.warning.dark))),V(O.Alert,"errorStandardBg",A(ke,O.error.light,.9)),V(O.Alert,"infoStandardBg",A(ke,O.info.light,.9)),V(O.Alert,"successStandardBg",A(ke,O.success.light,.9)),V(O.Alert,"warningStandardBg",A(ke,O.warning.light,.9)),V(O.Alert,"errorIconColor",M("palette-error-main")),V(O.Alert,"infoIconColor",M("palette-info-main")),V(O.Alert,"successIconColor",M("palette-success-main")),V(O.Alert,"warningIconColor",M("palette-warning-main")),V(O.AppBar,"defaultBg",M("palette-grey-900")),V(O.AppBar,"darkBg",M("palette-background-paper")),V(O.AppBar,"darkColor",M("palette-text-primary")),V(O.Avatar,"defaultBg",M("palette-grey-600")),V(O.Button,"inheritContainedBg",M("palette-grey-800")),V(O.Button,"inheritContainedHoverBg",M("palette-grey-700")),V(O.Chip,"defaultBorder",M("palette-grey-700")),V(O.Chip,"defaultAvatarColor",M("palette-grey-300")),V(O.Chip,"defaultIconColor",M("palette-grey-300")),V(O.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),V(O.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),V(O.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),V(O.LinearProgress,"primaryBg",A(ke,O.primary.main,.5)),V(O.LinearProgress,"secondaryBg",A(ke,O.secondary.main,.5)),V(O.LinearProgress,"errorBg",A(ke,O.error.main,.5)),V(O.LinearProgress,"infoBg",A(ke,O.info.main,.5)),V(O.LinearProgress,"successBg",A(ke,O.success.main,.5)),V(O.LinearProgress,"warningBg",A(ke,O.warning.main,.5)),V(O.Skeleton,"bg",C?A($r,O.text.primary,.13):`rgba(${M("palette-text-primaryChannel")} / 0.13)`),V(O.Slider,"primaryTrack",A(ke,O.primary.main,.5)),V(O.Slider,"secondaryTrack",A(ke,O.secondary.main,.5)),V(O.Slider,"errorTrack",A(ke,O.error.main,.5)),V(O.Slider,"infoTrack",A(ke,O.info.main,.5)),V(O.Slider,"successTrack",A(ke,O.success.main,.5)),V(O.Slider,"warningTrack",A(ke,O.warning.main,.5));const $=C?A(Oe,O.background.default,.985):ls(O.background.default,.98);V(O.SnackbarContent,"bg",$),V(O.SnackbarContent,"color",Kt(()=>C?gf.text.primary:O.getContrastText($))),V(O.SpeedDialAction,"fabHoverBg",ls(O.background.paper,.15)),V(O.StepConnector,"border",M("palette-grey-600")),V(O.StepContent,"border",M("palette-grey-600")),V(O.Switch,"defaultColor",M("palette-grey-300")),V(O.Switch,"defaultDisabledColor",M("palette-grey-600")),V(O.Switch,"primaryDisabledColor",A(ke,O.primary.main,.55)),V(O.Switch,"secondaryDisabledColor",A(ke,O.secondary.main,.55)),V(O.Switch,"errorDisabledColor",A(ke,O.error.main,.55)),V(O.Switch,"infoDisabledColor",A(ke,O.info.main,.55)),V(O.Switch,"successDisabledColor",A(ke,O.success.main,.55)),V(O.Switch,"warningDisabledColor",A(ke,O.warning.main,.55)),V(O.TableCell,"border",A(ke,A($r,O.divider,1),.68)),V(O.Tooltip,"bg",A($r,O.grey[700],.92))}ur(O.background,"default"),ur(O.background,"paper"),ur(O.common,"background"),ur(O.common,"onBackground"),ur(O,"divider"),Object.keys(O).forEach($=>{const D=O[$];$!=="tonalOffset"&&D&&typeof D=="object"&&(D.main&&V(O[$],"mainChannel",yo(mo(D.main))),D.light&&V(O[$],"lightChannel",yo(mo(D.light))),D.dark&&V(O[$],"darkChannel",yo(mo(D.dark))),D.contrastText&&V(O[$],"contrastTextChannel",yo(mo(D.contrastText))),$==="text"&&(ur(O[$],"primary"),ur(O[$],"secondary")),$==="action"&&(D.active&&ur(O[$],"active"),D.selected&&ur(O[$],"selected")))})}),w=t.reduce((L,O)=>nt(L,O),w);const I={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:c,getSelector:LS(w),enableContrastVars:l},{vars:z,generateThemeVars:_,generateStyleSheets:N}=pS(w,I);return w.vars=z,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([L,O])=>{w[L]=O}),w.generateThemeVars=_,w.generateStyleSheets=N,w.generateSpacing=function(){return Gp(p.spacing,fl(this))},w.getColorSchemeSelector=fS(u),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=c,w.unstable_sxConfig={...go,...p?.unstable_sxConfig},w.unstable_sx=function(O){return Dr({sx:O,theme:this})},w.toRuntimeSource=wf,w}function kf(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:kl({...r===!0?{}:r.palette,mode:t})})}function Nl(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:a=r?.mode,...l}=e,c=a||"light",u=o?.[c],d={...o,...r?{[c]:{...typeof u!="boolean"&&u,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return Ol(e,...t);let p=r;"palette"in e||d[c]&&(d[c]!==!0?p=d[c].palette:c==="dark"&&(p={mode:"dark"}));const h=Ol({...e,palette:p},...t);return h.defaultColorScheme=c,h.colorSchemes=d,h.palette.mode==="light"&&(h.colorSchemes.light={...d.light!==!0&&d.light,palette:h.palette},kf(h,"dark",d.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:h.palette},kf(h,"light",d.light)),h}return!r&&!("light"in d)&&c==="light"&&(d.light=!0),qS({...l,colorSchemes:d,defaultColorScheme:c,...typeof n!="boolean"&&n},...t)}const _l=Nl();function We(){const e=bl(_l);return process.env.NODE_ENV!=="production"&&k.useDebugValue(e),e[no]||e}function Of(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ot=e=>Of(e)&&e!=="classes",G=H1({themeId:no,defaultTheme:_l,rootShouldForwardProp:ot});function Al(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function Pf(e){return s.jsx(Rp,{...e,defaultTheme:_l,themeId:no})}process.env.NODE_ENV!=="production"&&(Pf.propTypes={styles:i.oneOfType([i.array,i.func,i.number,i.object,i.string,i.bool])});function YS(e){return function(r){return s.jsx(Pf,{styles:typeof e=="function"?n=>e({theme:n,...r}):e})}}function GS(){return Xp}const he=lS;process.env.NODE_ENV!=="production"&&(i.node,i.object.isRequired);function fe(e){return sS(e)}function KS(e){return de("MuiSvgIcon",e)}le("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const RS=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${R(t)}`,`fontSize${R(r)}`]};return pe(o,KS,n)},XS=G("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${R(r.color)}`],t[`fontSize${R(r.fontSize)}`]]}})(he(({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}}]}))),cs=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:l="inherit",component:c="svg",fontSize:u="medium",htmlColor:d,inheritViewBox:p=!1,titleAccess:h,viewBox:y="0 0 24 24",...x}=n,g=k.isValidElement(o)&&o.type==="svg",f={...n,color:l,component:c,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:y,hasSvgAsChild:g},b={};p||(b.viewBox=y);const S=RS(f);return s.jsxs(XS,{as:c,className:te(S.root,a),focusable:"false",color:d,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:r,...b,...x,...g&&o.props,ownerState:f,children:[g?o.props.children:o,h?s.jsx("title",{children:h}):null]})});process.env.NODE_ENV!=="production"&&(cs.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,fontSize:i.oneOfType([i.oneOf(["inherit","large","medium","small"]),i.string]),htmlColor:i.string,inheritViewBox:i.bool,shapeRendering:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),titleAccess:i.string,viewBox:i.string}),cs.muiName="SvgIcon";function lt(e,t){function r(n,o){return s.jsx(cs,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:o,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=cs.muiName,k.memo(k.forwardRef(r))}function If(e,t=166){let r;function n(...o){const a=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function gt(e){return e&&e.ownerDocument||document}function pr(e){return gt(e).defaultView||window}function Nf(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function ds(e){const{controlled:t,default:r,name:n,state:o="value"}=e,{current:a}=k.useRef(t!==void 0),[l,c]=k.useState(r),u=a?t:l;if(process.env.NODE_ENV!=="production"){k.useEffect(()=>{a!==(t!==void 0)&&console.error([`MUI: A component is changing the ${a?"":"un"}controlled ${o} state of ${n} to be ${a?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} 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
|
-
`))},[o,n,t]);const{current:
|
|
61
|
-
`))},[JSON.stringify(r)])}const d=k.useCallback(p=>{a||c(p)},[]);return[u,d]}function Rt(e){const t=k.useRef(e);return dr(()=>{t.current=e}),k.useRef((...r)=>(0,t.current)(...r)).current}function Qe(...e){const t=k.useRef(void 0),r=k.useCallback(n=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const l=a,c=l(n);return typeof c=="function"?c:()=>{l(null)}}return a.current=n,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},e);return k.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}function JS(e,t){const r=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&r>=65&&r<=90&&typeof t=="function"}function _f(e,t){if(!e)return t;function r(l,c){const u={};return Object.keys(c).forEach(d=>{JS(d,c[d])&&typeof l[d]=="function"&&(u[d]=(...p)=>{l[d](...p),c[d](...p)})}),u}if(typeof e=="function"||typeof t=="function")return l=>{const c=typeof t=="function"?t(l):t,u=typeof e=="function"?e({...l,...c}):e,d=te(l?.className,c?.className,u?.className),p=r(u,c);return{...c,...u,...p,...!!d&&{className:d},...c?.style&&u?.style&&{style:{...c.style,...u.style}},...c?.sx&&u?.sx&&{sx:[...Array.isArray(c.sx)?c.sx:[c.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const n=t,o=r(e,n),a=te(n?.className,e?.className);return{...t,...e,...o,...!!a&&{className:a},...n?.style&&e?.style&&{style:{...n.style,...e.style}},...n?.sx&&e?.sx&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}var us={exports:{}},Ne={};var Af;function QS(){if(Af)return Ne;Af=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),x=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 r:case o:case n:case u:case d:case y:return f;default:switch(f=f&&f.$$typeof,f){case l:case c:case h:case p:return f;case a:return f;default:return b}}case t:return b}}}return Ne.ContextConsumer=a,Ne.ContextProvider=l,Ne.Element=e,Ne.ForwardRef=c,Ne.Fragment=r,Ne.Lazy=h,Ne.Memo=p,Ne.Portal=t,Ne.Profiler=o,Ne.StrictMode=n,Ne.Suspense=u,Ne.SuspenseList=d,Ne.isContextConsumer=function(f){return g(f)===a},Ne.isContextProvider=function(f){return g(f)===l},Ne.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},Ne.isForwardRef=function(f){return g(f)===c},Ne.isFragment=function(f){return g(f)===r},Ne.isLazy=function(f){return g(f)===h},Ne.isMemo=function(f){return g(f)===p},Ne.isPortal=function(f){return g(f)===t},Ne.isProfiler=function(f){return g(f)===o},Ne.isStrictMode=function(f){return g(f)===n},Ne.isSuspense=function(f){return g(f)===u},Ne.isSuspenseList=function(f){return g(f)===d},Ne.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===o||f===n||f===u||f===d||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===p||f.$$typeof===l||f.$$typeof===a||f.$$typeof===c||f.$$typeof===x||f.getModuleId!==void 0)},Ne.typeOf=g,Ne}var _e={};var Mf;function ZS(){return Mf||(Mf=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 n:case a:case o:case d:case p:case x:return f;default:switch(f=f&&f.$$typeof,f){case c:case u:case y:case h:return f;case l:return f;default:return b}}case r:return b}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");_e.ContextConsumer=l,_e.ContextProvider=c,_e.Element=t,_e.ForwardRef=u,_e.Fragment=n,_e.Lazy=y,_e.Memo=h,_e.Portal=r,_e.Profiler=a,_e.StrictMode=o,_e.Suspense=d,_e.SuspenseList=p,_e.isContextConsumer=function(f){return e(f)===l},_e.isContextProvider=function(f){return e(f)===c},_e.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},_e.isForwardRef=function(f){return e(f)===u},_e.isFragment=function(f){return e(f)===n},_e.isLazy=function(f){return e(f)===y},_e.isMemo=function(f){return e(f)===h},_e.isPortal=function(f){return e(f)===r},_e.isProfiler=function(f){return e(f)===a},_e.isStrictMode=function(f){return e(f)===o},_e.isSuspense=function(f){return e(f)===d},_e.isSuspenseList=function(f){return e(f)===p},_e.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===a||f===o||f===d||f===p||typeof f=="object"&&f!==null&&(f.$$typeof===y||f.$$typeof===h||f.$$typeof===c||f.$$typeof===l||f.$$typeof===u||f.$$typeof===g||f.getModuleId!==void 0)},_e.typeOf=e})()),_e}var Df;function ew(){return Df||(Df=1,process.env.NODE_ENV==="production"?us.exports=QS():us.exports=ZS()),us.exports}var Ml=ew();function Er(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function zf(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Dl(e,t){return Dl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Dl(e,t)}function $f(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Dl(e,t)}const Ff={disabled:!1};var tw=process.env.NODE_ENV!=="production"?i.oneOfType([i.number,i.shape({enter:i.number,exit:i.number,appear:i.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&i.oneOfType([i.string,i.shape({enter:i.string,exit:i.string,active:i.string}),i.shape({enter:i.string,enterDone:i.string,enterActive:i.string,exit:i.string,exitDone:i.string,exitActive:i.string})]);const ps=F.createContext(null);var rw=function(t){return t.scrollTop},xo="unmounted",Fr="exited",Br="entering",hn="entered",zl="exiting",Xt=(function(e){$f(t,e);function t(n,o){var a;a=e.call(this,n,o)||this;var l=o,c=l&&!l.isMounting?n.enter:n.appear,u;return a.appearStatus=null,n.in?c?(u=Fr,a.appearStatus=Br):u=hn:n.unmountOnExit||n.mountOnEnter?u=xo:u=Fr,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var l=o.in;return l&&a.status===xo?{status:Fr}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var l=this.state.status;this.props.in?l!==Br&&l!==hn&&(a=Br):(l===Br||l===hn)&&(a=zl)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,l,c;return a=l=c=o,o!=null&&typeof o!="number"&&(a=o.exit,l=o.enter,c=o.appear!==void 0?o.appear:l),{exit:a,enter:l,appear:c}},r.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===Br){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:Nn.findDOMNode(this);l&&rw(l)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Fr&&this.setState({status:xo})},r.performEnter=function(o){var a=this,l=this.props.enter,c=this.context?this.context.isMounting:o,u=this.props.nodeRef?[c]:[Nn.findDOMNode(this),c],d=u[0],p=u[1],h=this.getTimeouts(),y=c?h.appear:h.enter;if(!o&&!l||Ff.disabled){this.safeSetState({status:hn},function(){a.props.onEntered(d)});return}this.props.onEnter(d,p),this.safeSetState({status:Br},function(){a.props.onEntering(d,p),a.onTransitionEnd(y,function(){a.safeSetState({status:hn},function(){a.props.onEntered(d,p)})})})},r.performExit=function(){var o=this,a=this.props.exit,l=this.getTimeouts(),c=this.props.nodeRef?void 0:Nn.findDOMNode(this);if(!a||Ff.disabled){this.safeSetState({status:Fr},function(){o.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:zl},function(){o.props.onExiting(c),o.onTransitionEnd(l.exit,function(){o.safeSetState({status:Fr},function(){o.props.onExited(c)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,l=!0;return this.nextCallback=function(c){l&&(l=!1,a.nextCallback=null,o(c))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var l=this.props.nodeRef?this.props.nodeRef.current:Nn.findDOMNode(this),c=o==null&&!this.props.addEndListener;if(!l||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],d=u[0],p=u[1];this.props.addEndListener(d,p)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===xo)return null;var a=this.props,l=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var c=zf(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return F.createElement(ps.Provider,{value:null},typeof l=="function"?l(o,c):F.cloneElement(F.Children.only(l),c))},t})(F.Component);Xt.contextType=ps,Xt.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:i.shape({current:typeof Element>"u"?i.any:function(e,t,r,n,o,a){var l=e[t];return i.instanceOf(l&&"ownerDocument"in l?l.ownerDocument.defaultView.Element:Element)(e,t,r,n,o,a)}}),children:i.oneOfType([i.func.isRequired,i.element.isRequired]).isRequired,in:i.bool,mountOnEnter:i.bool,unmountOnExit:i.bool,appear:i.bool,enter:i.bool,exit:i.bool,timeout:function(t){var r=tw;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];return r.apply(void 0,[t].concat(o))},addEndListener:i.func,onEnter:i.func,onEntering:i.func,onEntered:i.func,onExit:i.func,onExiting:i.func,onExited:i.func}:{};function gn(){}Xt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:gn,onEntering:gn,onEntered:gn,onExit:gn,onExiting:gn,onExited:gn},Xt.UNMOUNTED=xo,Xt.EXITED=Fr,Xt.ENTERING=Br,Xt.ENTERED=hn,Xt.EXITING=zl;function nw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $l(e,t){var r=function(a){return t&&F.isValidElement(a)?t(a):a},n=Object.create(null);return e&&F.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function ow(e,t){e=e||{},t=t||{};function r(p){return p in t?t[p]:e[p]}var n=Object.create(null),o=[];for(var a in e)a in t?o.length&&(n[a]=o,o=[]):o.push(a);var l,c={};for(var u in t){if(n[u])for(l=0;l<n[u].length;l++){var d=n[u][l];c[n[u][l]]=r(d)}c[u]=r(u)}for(l=0;l<o.length;l++)c[o[l]]=r(o[l]);return c}function jr(e,t,r){return r[t]!=null?r[t]:e.props[t]}function iw(e,t){return $l(e.children,function(r){return F.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:jr(r,"appear",e),enter:jr(r,"enter",e),exit:jr(r,"exit",e)})})}function sw(e,t,r){var n=$l(e.children),o=ow(t,n);return Object.keys(o).forEach(function(a){var l=o[a];if(F.isValidElement(l)){var c=a in t,u=a in n,d=t[a],p=F.isValidElement(d)&&!d.props.in;u&&(!c||p)?o[a]=F.cloneElement(l,{onExited:r.bind(null,l),in:!0,exit:jr(l,"exit",e),enter:jr(l,"enter",e)}):!u&&c&&!p?o[a]=F.cloneElement(l,{in:!1}):u&&c&&F.isValidElement(d)&&(o[a]=F.cloneElement(l,{onExited:r.bind(null,l),in:d.props.in,exit:jr(l,"exit",e),enter:jr(l,"enter",e)}))}}),o}var aw=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},lw={component:"div",childFactory:function(t){return t}},Fl=(function(e){$f(t,e);function t(n,o){var a;a=e.call(this,n,o)||this;var l=a.handleExited.bind(nw(a));return a.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},a}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,a){var l=a.children,c=a.handleExited,u=a.firstRender;return{children:u?iw(o,c):sw(o,l,c),firstRender:!1}},r.handleExited=function(o,a){var l=$l(this.props.children);o.key in l||(o.props.onExited&&o.props.onExited(a),this.mounted&&this.setState(function(c){var u=Mi({},c.children);return delete u[o.key],{children:u}}))},r.render=function(){var o=this.props,a=o.component,l=o.childFactory,c=zf(o,["component","childFactory"]),u=this.state.contextValue,d=aw(this.state.children).map(l);return delete c.appear,delete c.enter,delete c.exit,a===null?F.createElement(ps.Provider,{value:u},d):F.createElement(ps.Provider,{value:u},F.createElement(a,c,d))},t})(F.Component);Fl.propTypes=process.env.NODE_ENV!=="production"?{component:i.any,children:i.node,appear:i.bool,enter:i.bool,exit:i.bool,childFactory:i.func}:{},Fl.defaultProps=lw;const Bf={};function jf(e,t){const r=k.useRef(Bf);return r.current===Bf&&(r.current=e(t)),r}const cw=[];function dw(e){k.useEffect(e,cw)}class Bl{static create(){return new Bl}currentId=null;start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function jl(){const e=jf(Bl.create).current;return dw(e.disposeEffect),e}function uw(e){const{prototype:t={}}=e;return!!t.isReactComponent}function pw(e,t,r,n,o){const a=e[t],l=o||t;if(a==null||typeof window>"u")return null;let c;return typeof a=="function"&&!uw(a)&&(c="Did you accidentally provide a plain function component instead?"),c!==void 0?new Error(`Invalid ${n} \`${l}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Wl=Er(i.elementType,pw),Wf=e=>e.scrollTop;function fs(e,t){const{timeout:r,easing:n,style:o={}}=e;return{duration:o.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[t.mode]:n),delay:o.transitionDelay}}function hs(e){return typeof e=="string"}function Lf(e,t,r){return e===void 0||hs(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function Vf(e,t,r){return typeof e=="function"?e(t,r):e}function gs(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function Uf(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function Hf(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const x=te(r?.className,a,o?.className,n?.className),g={...r?.style,...o?.style,...n?.style},f={...r,...o,...n};return x.length>0&&(f.className=x),Object.keys(g).length>0&&(f.style=g),{props:f,internalRef:void 0}}const l=gs({...o,...n}),c=Uf(n),u=Uf(o),d=t(l),p=te(d?.className,r?.className,a,o?.className,n?.className),h={...d?.style,...r?.style,...o?.style,...n?.style},y={...d,...r,...u,...c};return p.length>0&&(y.className=p),Object.keys(h).length>0&&(y.style=h),{props:y,internalRef:d.ref}}function me(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,internalForwardedProps:l,shouldForwardComponentProp:c=!1,...u}=t,{component:d,slots:p={[e]:void 0},slotProps:h={[e]:void 0},...y}=a,x=p[e]||n,g=Vf(h[e],o),{props:{component:f,...b},internalRef:S}=Hf({className:r,...u,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:g}),v=Qe(S,g?.ref,t.ref),T=e==="root"?f||d:f,C=Lf(x,{...e==="root"&&!d&&!p[e]&&l,...e!=="root"&&!p[e]&&l,...b,...T&&!c&&{as:T},...T&&c&&{component:T},ref:v},o);return[x,C]}function fw(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 qf(e,t,r,n){const o=e[t];if(o==null||!Number.isInteger(o)){const a=fw(o);return new RangeError(`Invalid ${n} \`${t}\` of type \`${a}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function Yf(e,t,r,n){return e[t]===void 0?null:qf(e,t,r,n)}function Ll(){return null}Yf.isRequired=qf,Ll.isRequired=Ll;const Gf=process.env.NODE_ENV==="production"?Ll:Yf;function hw(e){return de("MuiPaper",e)}le("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 gw=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return pe(a,hw,o)},bw=G("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(he(({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)"}}]}))),Re=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiPaper"}),o=We(),{className:a,component:l="div",elevation:c=1,square:u=!1,variant:d="elevation",...p}=n,h={...n,component:l,elevation:c,square:u,variant:d},y=gw(h);return process.env.NODE_ENV!=="production"&&o.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
|
-
`)),
|
|
63
|
-
`))}return!1}class
|
|
57
|
+
export default theme;`}function dh(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Gw=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let n=0;n<t.length;n+=1)r+=+t[n];return r};function Kw(e){Object.assign(e,{alpha(t,r){const n=this||e;return n.colorSpace?`oklch(from ${t} l c h / ${typeof r=="string"?`calc(${r})`:r})`:n.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:Ws(t,Gw(r))},lighten(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #fff ${dh(r)})`:Us(t,r)},darken(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #000 ${dh(r)})`:Vs(t,r)}})}function pc(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:s={},transitions:l={},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.":ir(20));const h=dc({...s,colorSpace:p}),v=Ql(e);let g=ut(v,{mixins:Dw(v.breakpoints,n),palette:h,shadows:Ww.slice(),typography:zw(h,c),transitions:Rw(l),zIndex:{...qw}});if(g=ut(g,u),g=t.reduce((y,f)=>ut(y,f),g),process.env.NODE_ENV!=="production"){const y=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(m,x)=>{let b;for(b in m){const w=m[b];if(y.includes(b)&&Object.keys(w).length>0){if(process.env.NODE_ENV!=="production"){const S=pe("",b);console.error([`MUI: The \`${x}\` component increases the CSS specificity of the \`${b}\` internal state.`,"You can not override it like this: ",JSON.stringify(m,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
|
+
`))}m[b]={}}}};Object.keys(g.components).forEach(m=>{const x=g.components[m].styleOverrides;x&&m.startsWith("Mui")&&f(x,m)})}return g.unstable_sxConfig={...Bo,...u?.unstable_sxConfig},g.unstable_sx=function(f){return nn({sx:f,theme:this})},g.toRuntimeSource=ch,Kw(g),g}function uc(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 Xw=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=uc(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function ph(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function uh(e){return e==="dark"?Xw:[]}function Jw(e){const{palette:t={mode:"light"},opacity:r,overlays:n,colorSpace:o,...s}=e,l=dc({...t,colorSpace:o});return{palette:l,opacity:{...ph(l.mode),...r},overlays:n||uh(l.mode),...s}}function Qw(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 Zw=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],eC=e=>(t,r)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let s=o;if(o==="class"&&(s=".%s"),o==="data"&&(s="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(s=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return Zw(e.cssVarPrefix).forEach(c=>{l[c]=r[c],delete r[c]}),s==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:l}}:s?{[s.replace("%s",t)]:l,[`${n}, ${s.replace("%s",t)}`]:r}:{[n]:{...r,...l}}}if(s&&s!=="media")return`${n}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(s)return s.replace("%s",String(t))}return n};function tC(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function R(e,t,r){!e[t]&&r&&(e[t]=r)}function Vo(e){return typeof e!="string"||!e.startsWith("hsl")?e:Kf(e)}function Or(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Wo(Vo(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 rC(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const dr=e=>{try{return e()}catch{}},nC=(e="mui")=>ww(e);function fc(e,t,r,n,o){if(!r)return;r=r===!0?{}:r;const s=o==="dark"?"dark":"light";if(!n){t[o]=Jw({...r,palette:{mode:s,...r?.palette},colorSpace:e});return}const{palette:l,...c}=pc({...n,palette:{mode:s,...r?.palette},colorSpace:e});return t[o]={...r,palette:l,opacity:{...ph(s),...r?.opacity},overlays:r?.overlays||uh(s)},c}function oC(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",nativeColor:l=!1,shouldSkipGeneratingVar:c=Qw,colorSchemeSelector:d=r.light&&r.dark?"media":void 0,rootSelector:p=":root",...u}=e,h=Object.keys(r)[0],v=n||(r.light&&h!=="light"?"light":h),g=nC(s),{[v]:y,light:f,dark:m,...x}=r,b={...x};let w=y;if((v==="dark"&&!("dark"in r)||v==="light"&&!("light"in r))&&(w=!0),!w)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${v}\` option is either missing or invalid.`:ir(21,v));let S;l&&(S="oklch");const C=fc(S,b,w,u,v);f&&!b.light&&fc(S,b,f,void 0,"light"),m&&!b.dark&&fc(S,b,m,void 0,"dark");let O={defaultColorScheme:v,...C,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:p,getCssVar:g,colorSchemes:b,font:{...$w(C.typography),...C.font},spacing:rC(u.spacing)};Object.keys(O.colorSchemes).forEach(z=>{const k=O.colorSchemes[z].palette,j=M=>{const N=M.split("-"),A=N[1],W=N[2];return g(M,k[A][W])};k.mode==="light"&&(R(k.common,"background","#fff"),R(k.common,"onBackground","#000")),k.mode==="dark"&&(R(k.common,"background","#000"),R(k.common,"onBackground","#fff"));function _(M,N,A){if(S){let W;return M===sn&&(W=`transparent ${((1-A)*100).toFixed(0)}%`),M===Me&&(W=`#000 ${(A*100).toFixed(0)}%`),M===$e&&(W=`#fff ${(A*100).toFixed(0)}%`),`color-mix(in ${S}, ${N}, ${W})`}return M(N,A)}if(tC(k,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),k.mode==="light"){R(k.Alert,"errorColor",_(Me,k.error.light,.6)),R(k.Alert,"infoColor",_(Me,k.info.light,.6)),R(k.Alert,"successColor",_(Me,k.success.light,.6)),R(k.Alert,"warningColor",_(Me,k.warning.light,.6)),R(k.Alert,"errorFilledBg",j("palette-error-main")),R(k.Alert,"infoFilledBg",j("palette-info-main")),R(k.Alert,"successFilledBg",j("palette-success-main")),R(k.Alert,"warningFilledBg",j("palette-warning-main")),R(k.Alert,"errorFilledColor",dr(()=>k.getContrastText(k.error.main))),R(k.Alert,"infoFilledColor",dr(()=>k.getContrastText(k.info.main))),R(k.Alert,"successFilledColor",dr(()=>k.getContrastText(k.success.main))),R(k.Alert,"warningFilledColor",dr(()=>k.getContrastText(k.warning.main))),R(k.Alert,"errorStandardBg",_($e,k.error.light,.9)),R(k.Alert,"infoStandardBg",_($e,k.info.light,.9)),R(k.Alert,"successStandardBg",_($e,k.success.light,.9)),R(k.Alert,"warningStandardBg",_($e,k.warning.light,.9)),R(k.Alert,"errorIconColor",j("palette-error-main")),R(k.Alert,"infoIconColor",j("palette-info-main")),R(k.Alert,"successIconColor",j("palette-success-main")),R(k.Alert,"warningIconColor",j("palette-warning-main")),R(k.AppBar,"defaultBg",j("palette-grey-100")),R(k.Avatar,"defaultBg",j("palette-grey-400")),R(k.Button,"inheritContainedBg",j("palette-grey-300")),R(k.Button,"inheritContainedHoverBg",j("palette-grey-A100")),R(k.Chip,"defaultBorder",j("palette-grey-400")),R(k.Chip,"defaultAvatarColor",j("palette-grey-700")),R(k.Chip,"defaultIconColor",j("palette-grey-700")),R(k.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),R(k.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),R(k.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),R(k.LinearProgress,"primaryBg",_($e,k.primary.main,.62)),R(k.LinearProgress,"secondaryBg",_($e,k.secondary.main,.62)),R(k.LinearProgress,"errorBg",_($e,k.error.main,.62)),R(k.LinearProgress,"infoBg",_($e,k.info.main,.62)),R(k.LinearProgress,"successBg",_($e,k.success.main,.62)),R(k.LinearProgress,"warningBg",_($e,k.warning.main,.62)),R(k.Skeleton,"bg",S?_(sn,k.text.primary,.11):`rgba(${j("palette-text-primaryChannel")} / 0.11)`),R(k.Slider,"primaryTrack",_($e,k.primary.main,.62)),R(k.Slider,"secondaryTrack",_($e,k.secondary.main,.62)),R(k.Slider,"errorTrack",_($e,k.error.main,.62)),R(k.Slider,"infoTrack",_($e,k.info.main,.62)),R(k.Slider,"successTrack",_($e,k.success.main,.62)),R(k.Slider,"warningTrack",_($e,k.warning.main,.62));const M=S?_(Me,k.background.default,.6825):Hs(k.background.default,.8);R(k.SnackbarContent,"bg",M),R(k.SnackbarContent,"color",dr(()=>S?cc.text.primary:k.getContrastText(M))),R(k.SpeedDialAction,"fabHoverBg",Hs(k.background.paper,.15)),R(k.StepConnector,"border",j("palette-grey-400")),R(k.StepContent,"border",j("palette-grey-400")),R(k.Switch,"defaultColor",j("palette-common-white")),R(k.Switch,"defaultDisabledColor",j("palette-grey-100")),R(k.Switch,"primaryDisabledColor",_($e,k.primary.main,.62)),R(k.Switch,"secondaryDisabledColor",_($e,k.secondary.main,.62)),R(k.Switch,"errorDisabledColor",_($e,k.error.main,.62)),R(k.Switch,"infoDisabledColor",_($e,k.info.main,.62)),R(k.Switch,"successDisabledColor",_($e,k.success.main,.62)),R(k.Switch,"warningDisabledColor",_($e,k.warning.main,.62)),R(k.TableCell,"border",_($e,_(sn,k.divider,1),.88)),R(k.Tooltip,"bg",_(sn,k.grey[700],.92))}if(k.mode==="dark"){R(k.Alert,"errorColor",_($e,k.error.light,.6)),R(k.Alert,"infoColor",_($e,k.info.light,.6)),R(k.Alert,"successColor",_($e,k.success.light,.6)),R(k.Alert,"warningColor",_($e,k.warning.light,.6)),R(k.Alert,"errorFilledBg",j("palette-error-dark")),R(k.Alert,"infoFilledBg",j("palette-info-dark")),R(k.Alert,"successFilledBg",j("palette-success-dark")),R(k.Alert,"warningFilledBg",j("palette-warning-dark")),R(k.Alert,"errorFilledColor",dr(()=>k.getContrastText(k.error.dark))),R(k.Alert,"infoFilledColor",dr(()=>k.getContrastText(k.info.dark))),R(k.Alert,"successFilledColor",dr(()=>k.getContrastText(k.success.dark))),R(k.Alert,"warningFilledColor",dr(()=>k.getContrastText(k.warning.dark))),R(k.Alert,"errorStandardBg",_(Me,k.error.light,.9)),R(k.Alert,"infoStandardBg",_(Me,k.info.light,.9)),R(k.Alert,"successStandardBg",_(Me,k.success.light,.9)),R(k.Alert,"warningStandardBg",_(Me,k.warning.light,.9)),R(k.Alert,"errorIconColor",j("palette-error-main")),R(k.Alert,"infoIconColor",j("palette-info-main")),R(k.Alert,"successIconColor",j("palette-success-main")),R(k.Alert,"warningIconColor",j("palette-warning-main")),R(k.AppBar,"defaultBg",j("palette-grey-900")),R(k.AppBar,"darkBg",j("palette-background-paper")),R(k.AppBar,"darkColor",j("palette-text-primary")),R(k.Avatar,"defaultBg",j("palette-grey-600")),R(k.Button,"inheritContainedBg",j("palette-grey-800")),R(k.Button,"inheritContainedHoverBg",j("palette-grey-700")),R(k.Chip,"defaultBorder",j("palette-grey-700")),R(k.Chip,"defaultAvatarColor",j("palette-grey-300")),R(k.Chip,"defaultIconColor",j("palette-grey-300")),R(k.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),R(k.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),R(k.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),R(k.LinearProgress,"primaryBg",_(Me,k.primary.main,.5)),R(k.LinearProgress,"secondaryBg",_(Me,k.secondary.main,.5)),R(k.LinearProgress,"errorBg",_(Me,k.error.main,.5)),R(k.LinearProgress,"infoBg",_(Me,k.info.main,.5)),R(k.LinearProgress,"successBg",_(Me,k.success.main,.5)),R(k.LinearProgress,"warningBg",_(Me,k.warning.main,.5)),R(k.Skeleton,"bg",S?_(sn,k.text.primary,.13):`rgba(${j("palette-text-primaryChannel")} / 0.13)`),R(k.Slider,"primaryTrack",_(Me,k.primary.main,.5)),R(k.Slider,"secondaryTrack",_(Me,k.secondary.main,.5)),R(k.Slider,"errorTrack",_(Me,k.error.main,.5)),R(k.Slider,"infoTrack",_(Me,k.info.main,.5)),R(k.Slider,"successTrack",_(Me,k.success.main,.5)),R(k.Slider,"warningTrack",_(Me,k.warning.main,.5));const M=S?_($e,k.background.default,.985):Hs(k.background.default,.98);R(k.SnackbarContent,"bg",M),R(k.SnackbarContent,"color",dr(()=>S?rh.text.primary:k.getContrastText(M))),R(k.SpeedDialAction,"fabHoverBg",Hs(k.background.paper,.15)),R(k.StepConnector,"border",j("palette-grey-600")),R(k.StepContent,"border",j("palette-grey-600")),R(k.Switch,"defaultColor",j("palette-grey-300")),R(k.Switch,"defaultDisabledColor",j("palette-grey-600")),R(k.Switch,"primaryDisabledColor",_(Me,k.primary.main,.55)),R(k.Switch,"secondaryDisabledColor",_(Me,k.secondary.main,.55)),R(k.Switch,"errorDisabledColor",_(Me,k.error.main,.55)),R(k.Switch,"infoDisabledColor",_(Me,k.info.main,.55)),R(k.Switch,"successDisabledColor",_(Me,k.success.main,.55)),R(k.Switch,"warningDisabledColor",_(Me,k.warning.main,.55)),R(k.TableCell,"border",_(Me,_(sn,k.divider,1),.68)),R(k.Tooltip,"bg",_(sn,k.grey[700],.92))}Or(k.background,"default"),Or(k.background,"paper"),Or(k.common,"background"),Or(k.common,"onBackground"),Or(k,"divider"),Object.keys(k).forEach(M=>{const N=k[M];M!=="tonalOffset"&&N&&typeof N=="object"&&(N.main&&R(k[M],"mainChannel",Wo(Vo(N.main))),N.light&&R(k[M],"lightChannel",Wo(Vo(N.light))),N.dark&&R(k[M],"darkChannel",Wo(Vo(N.dark))),N.contrastText&&R(k[M],"contrastTextChannel",Wo(Vo(N.contrastText))),M==="text"&&(Or(k[M],"primary"),Or(k[M],"secondary")),M==="action"&&(N.active&&Or(k[M],"active"),N.selected&&Or(k[M],"selected")))})}),O=t.reduce((z,k)=>ut(z,k),O);const I={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:c,getSelector:eC(O),enableContrastVars:l},{vars:F,generateThemeVars:D,generateStyleSheets:L}=Tw(O,I);return O.vars=F,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([z,k])=>{O[z]=k}),O.generateThemeVars=D,O.generateStyleSheets=L,O.generateSpacing=function(){return Df(u.spacing,Xl(this))},O.getColorSchemeSelector=Ow(d),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=c,O.unstable_sxConfig={...Bo,...u?.unstable_sxConfig},O.unstable_sx=function(k){return nn({sx:k,theme:this})},O.toRuntimeSource=ch,O}function fh(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:dc({...r===!0?{}:r.palette,mode:t})})}function hc(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:s=r?.mode,...l}=e,c=s||"light",d=o?.[c],p={...o,...r?{[c]:{...typeof d!="boolean"&&d,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return pc(e,...t);let u=r;"palette"in e||p[c]&&(p[c]!==!0?u=p[c].palette:c==="dark"&&(u={mode:"dark"}));const h=pc({...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},fh(h,"dark",p.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:h.palette},fh(h,"light",p.light)),h}return!r&&!("light"in p)&&c==="light"&&(p.light=!0),oC({...l,colorSchemes:p,defaultColorScheme:c,...typeof n!="boolean"&&n},...t)}const gc=hc();function Ge(){const e=Zl(gc);return process.env.NODE_ENV!=="production"&&T.useDebugValue(e),e[Po]||e}function hh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ft=e=>hh(e)&&e!=="classes",G=ow({themeId:Po,defaultTheme:gc,rootShouldForwardProp:ft});function yc(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function gh(e){return a.jsx(zf,{...e,defaultTheme:gc,themeId:Po})}process.env.NODE_ENV!=="production"&&(gh.propTypes={styles:i.oneOfType([i.array,i.func,i.number,i.object,i.string,i.bool])});function iC(e){return function(r){return a.jsx(gh,{styles:typeof e=="function"?n=>e({theme:n,...r}):e})}}function sC(){return jf}const he=Sw;process.env.NODE_ENV!=="production"&&(i.node,i.object.isRequired);function fe(e){return vw(e)}function aC(e){return pe("MuiSvgIcon",e)}de("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const lC=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${te(t)}`,`fontSize${te(r)}`]};return ue(o,aC,n)},cC=G("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${te(r.color)}`],t[`fontSize${te(r.fontSize)}`]]}})(he(({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}}]}))),Uo=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:l="inherit",component:c="svg",fontSize:d="medium",htmlColor:p,inheritViewBox:u=!1,titleAccess:h,viewBox:v="0 0 24 24",...g}=n,y=T.isValidElement(o)&&o.type==="svg",f={...n,color:l,component:c,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:v,hasSvgAsChild:y},m={};u||(m.viewBox=v);const x=lC(f);return a.jsxs(cC,{as:c,className:se(x.root,s),focusable:"false",color:p,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:r,...m,...g,...y&&o.props,ownerState:f,children:[y?o.props.children:o,h?a.jsx("title",{children:h}):null]})});process.env.NODE_ENV!=="production"&&(Uo.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,fontSize:i.oneOfType([i.oneOf(["inherit","large","medium","small"]),i.string]),htmlColor:i.string,inheritViewBox:i.bool,shapeRendering:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),titleAccess:i.string,viewBox:i.string}),Uo.muiName="SvgIcon";function ht(e,t){function r(n,o){return a.jsx(Uo,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:o,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Uo.muiName,T.memo(T.forwardRef(r))}function yh(e,t=166){let r;function n(...o){const s=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(s,t)}return n.clear=()=>{clearTimeout(r)},n}function gt(e){return e&&e.ownerDocument||document}function kr(e){return gt(e).defaultView||window}function mh(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Ho(e){const{controlled:t,default:r,name:n,state:o="value"}=e,{current:s}=T.useRef(t!==void 0),[l,c]=T.useState(r),d=s?t:l;if(process.env.NODE_ENV!=="production"){T.useEffect(()=>{s!==(t!==void 0)&&console.error([`MUI: A component is changing the ${s?"":"un"}controlled ${o} state of ${n} to be ${s?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} 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
|
+
`))},[o,n,t]);const{current:u}=T.useRef(r);T.useEffect(()=>{!s&&JSON.stringify(r)!==JSON.stringify(u)&&console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
|
|
61
|
+
`))},[JSON.stringify(r)])}const p=T.useCallback(u=>{s||c(u)},[]);return[d,p]}function Bt(e){const t=T.useRef(e);return Xt(()=>{t.current=e}),T.useRef((...r)=>(0,t.current)(...r)).current}function Je(...e){const t=T.useRef(void 0),r=T.useCallback(n=>{const o=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const l=s,c=l(n);return typeof c=="function"?c:()=>{l(null)}}return s.current=n,()=>{s.current=null}});return()=>{o.forEach(s=>s?.())}},e);return T.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}function dC(e,t){const r=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&r>=65&&r<=90&&typeof t=="function"}function bh(e,t){if(!e)return t;function r(l,c){const d={};return Object.keys(c).forEach(p=>{dC(p,c[p])&&typeof l[p]=="function"&&(d[p]=(...u)=>{l[p](...u),c[p](...u)})}),d}if(typeof e=="function"||typeof t=="function")return l=>{const c=typeof t=="function"?t(l):t,d=typeof e=="function"?e({...l,...c}):e,p=se(l?.className,c?.className,d?.className),u=r(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 n=t,o=r(e,n),s=se(n?.className,e?.className);return{...t,...e,...o,...!!s&&{className:s},...n?.style&&e?.style&&{style:{...n.style,...e.style}},...n?.sx&&e?.sx&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}var Rs={exports:{}},ze={};var vh;function pC(){if(vh)return ze;vh=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=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"),v=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function y(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case e:switch(f=f.type,f){case r:case o:case n:case d:case p:case v:return f;default:switch(f=f&&f.$$typeof,f){case l:case c:case h:case u:return f;case s:return f;default:return m}}case t:return m}}}return ze.ContextConsumer=s,ze.ContextProvider=l,ze.Element=e,ze.ForwardRef=c,ze.Fragment=r,ze.Lazy=h,ze.Memo=u,ze.Portal=t,ze.Profiler=o,ze.StrictMode=n,ze.Suspense=d,ze.SuspenseList=p,ze.isContextConsumer=function(f){return y(f)===s},ze.isContextProvider=function(f){return y(f)===l},ze.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},ze.isForwardRef=function(f){return y(f)===c},ze.isFragment=function(f){return y(f)===r},ze.isLazy=function(f){return y(f)===h},ze.isMemo=function(f){return y(f)===u},ze.isPortal=function(f){return y(f)===t},ze.isProfiler=function(f){return y(f)===o},ze.isStrictMode=function(f){return y(f)===n},ze.isSuspense=function(f){return y(f)===d},ze.isSuspenseList=function(f){return y(f)===p},ze.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===o||f===n||f===d||f===p||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===u||f.$$typeof===l||f.$$typeof===s||f.$$typeof===c||f.$$typeof===g||f.getModuleId!==void 0)},ze.typeOf=y,ze}var je={};var xh;function uC(){return xh||(xh=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case t:switch(f=f.type,f){case n:case s:case o:case p:case u:case g:return f;default:switch(f=f&&f.$$typeof,f){case c:case d:case v:case h:return f;case l:return f;default:return m}}case r:return m}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=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"),v=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");je.ContextConsumer=l,je.ContextProvider=c,je.Element=t,je.ForwardRef=d,je.Fragment=n,je.Lazy=v,je.Memo=h,je.Portal=r,je.Profiler=s,je.StrictMode=o,je.Suspense=p,je.SuspenseList=u,je.isContextConsumer=function(f){return e(f)===l},je.isContextProvider=function(f){return e(f)===c},je.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},je.isForwardRef=function(f){return e(f)===d},je.isFragment=function(f){return e(f)===n},je.isLazy=function(f){return e(f)===v},je.isMemo=function(f){return e(f)===h},je.isPortal=function(f){return e(f)===r},je.isProfiler=function(f){return e(f)===s},je.isStrictMode=function(f){return e(f)===o},je.isSuspense=function(f){return e(f)===p},je.isSuspenseList=function(f){return e(f)===u},je.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===s||f===o||f===p||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===v||f.$$typeof===h||f.$$typeof===c||f.$$typeof===l||f.$$typeof===d||f.$$typeof===y||f.getModuleId!==void 0)},je.typeOf=e})()),je}var Sh;function fC(){return Sh||(Sh=1,process.env.NODE_ENV==="production"?Rs.exports=pC():Rs.exports=uC()),Rs.exports}var mc=fC();function Pr(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function wh(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function bc(e,t){return bc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},bc(e,t)}function Ch(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,bc(e,t)}const Eh={disabled:!1};var hC=process.env.NODE_ENV!=="production"?i.oneOfType([i.number,i.shape({enter:i.number,exit:i.number,appear:i.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&i.oneOfType([i.string,i.shape({enter:i.string,exit:i.string,active:i.string}),i.shape({enter:i.string,enterDone:i.string,enterActive:i.string,exit:i.string,exitDone:i.string,exitActive:i.string})]);const qs=$.createContext(null);var gC=function(t){return t.scrollTop},Ro="unmounted",ln="exited",cn="entering",Fn="entered",vc="exiting",pr=(function(e){Ch(t,e);function t(n,o){var s;s=e.call(this,n,o)||this;var l=o,c=l&&!l.isMounting?n.enter:n.appear,d;return s.appearStatus=null,n.in?c?(d=ln,s.appearStatus=cn):d=Fn:n.unmountOnExit||n.mountOnEnter?d=Ro:d=ln,s.state={status:d},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var l=o.in;return l&&s.status===Ro?{status:ln}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var s=null;if(o!==this.props){var l=this.state.status;this.props.in?l!==cn&&l!==Fn&&(s=cn):(l===cn||l===Fn)&&(s=vc)}this.updateStatus(!1,s)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,s,l,c;return s=l=c=o,o!=null&&typeof o!="number"&&(s=o.exit,l=o.enter,c=o.appear!==void 0?o.appear:l),{exit:s,enter:l,appear:c}},r.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===cn){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:Kn.findDOMNode(this);l&&gC(l)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ln&&this.setState({status:Ro})},r.performEnter=function(o){var s=this,l=this.props.enter,c=this.context?this.context.isMounting:o,d=this.props.nodeRef?[c]:[Kn.findDOMNode(this),c],p=d[0],u=d[1],h=this.getTimeouts(),v=c?h.appear:h.enter;if(!o&&!l||Eh.disabled){this.safeSetState({status:Fn},function(){s.props.onEntered(p)});return}this.props.onEnter(p,u),this.safeSetState({status:cn},function(){s.props.onEntering(p,u),s.onTransitionEnd(v,function(){s.safeSetState({status:Fn},function(){s.props.onEntered(p,u)})})})},r.performExit=function(){var o=this,s=this.props.exit,l=this.getTimeouts(),c=this.props.nodeRef?void 0:Kn.findDOMNode(this);if(!s||Eh.disabled){this.safeSetState({status:ln},function(){o.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:vc},function(){o.props.onExiting(c),o.onTransitionEnd(l.exit,function(){o.safeSetState({status:ln},function(){o.props.onExited(c)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},r.setNextCallback=function(o){var s=this,l=!0;return this.nextCallback=function(c){l&&(l=!1,s.nextCallback=null,o(c))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},r.onTransitionEnd=function(o,s){this.setNextCallback(s);var l=this.props.nodeRef?this.props.nodeRef.current:Kn.findDOMNode(this),c=o==null&&!this.props.addEndListener;if(!l||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],p=d[0],u=d[1];this.props.addEndListener(p,u)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Ro)return null;var s=this.props,l=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=wh(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return $.createElement(qs.Provider,{value:null},typeof l=="function"?l(o,c):$.cloneElement($.Children.only(l),c))},t})($.Component);pr.contextType=qs,pr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:i.shape({current:typeof Element>"u"?i.any:function(e,t,r,n,o,s){var l=e[t];return i.instanceOf(l&&"ownerDocument"in l?l.ownerDocument.defaultView.Element:Element)(e,t,r,n,o,s)}}),children:i.oneOfType([i.func.isRequired,i.element.isRequired]).isRequired,in:i.bool,mountOnEnter:i.bool,unmountOnExit:i.bool,appear:i.bool,enter:i.bool,exit:i.bool,timeout:function(t){var r=hC;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];return r.apply(void 0,[t].concat(o))},addEndListener:i.func,onEnter:i.func,onEntering:i.func,onEntered:i.func,onExit:i.func,onExiting:i.func,onExited:i.func}:{};function zn(){}pr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:zn,onEntering:zn,onEntered:zn,onExit:zn,onExiting:zn,onExited:zn},pr.UNMOUNTED=Ro,pr.EXITED=ln,pr.ENTERING=cn,pr.ENTERED=Fn,pr.EXITING=vc;function yC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xc(e,t){var r=function(s){return t&&$.isValidElement(s)?t(s):s},n=Object.create(null);return e&&$.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function mC(e,t){e=e||{},t=t||{};function r(u){return u in t?t[u]:e[u]}var n=Object.create(null),o=[];for(var s in e)s in t?o.length&&(n[s]=o,o=[]):o.push(s);var l,c={};for(var d in t){if(n[d])for(l=0;l<n[d].length;l++){var p=n[d][l];c[n[d][l]]=r(p)}c[d]=r(d)}for(l=0;l<o.length;l++)c[o[l]]=r(o[l]);return c}function dn(e,t,r){return r[t]!=null?r[t]:e.props[t]}function bC(e,t){return xc(e.children,function(r){return $.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:dn(r,"appear",e),enter:dn(r,"enter",e),exit:dn(r,"exit",e)})})}function vC(e,t,r){var n=xc(e.children),o=mC(t,n);return Object.keys(o).forEach(function(s){var l=o[s];if($.isValidElement(l)){var c=s in t,d=s in n,p=t[s],u=$.isValidElement(p)&&!p.props.in;d&&(!c||u)?o[s]=$.cloneElement(l,{onExited:r.bind(null,l),in:!0,exit:dn(l,"exit",e),enter:dn(l,"enter",e)}):!d&&c&&!u?o[s]=$.cloneElement(l,{in:!1}):d&&c&&$.isValidElement(p)&&(o[s]=$.cloneElement(l,{onExited:r.bind(null,l),in:p.props.in,exit:dn(l,"exit",e),enter:dn(l,"enter",e)}))}}),o}var xC=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},SC={component:"div",childFactory:function(t){return t}},Sc=(function(e){Ch(t,e);function t(n,o){var s;s=e.call(this,n,o)||this;var l=s.handleExited.bind(yC(s));return s.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},s}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,s){var l=s.children,c=s.handleExited,d=s.firstRender;return{children:d?bC(o,c):vC(o,l,c),firstRender:!1}},r.handleExited=function(o,s){var l=xc(this.props.children);o.key in l||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(c){var d=gs({},c.children);return delete d[o.key],{children:d}}))},r.render=function(){var o=this.props,s=o.component,l=o.childFactory,c=wh(o,["component","childFactory"]),d=this.state.contextValue,p=xC(this.state.children).map(l);return delete c.appear,delete c.enter,delete c.exit,s===null?$.createElement(qs.Provider,{value:d},p):$.createElement(qs.Provider,{value:d},$.createElement(s,c,p))},t})($.Component);Sc.propTypes=process.env.NODE_ENV!=="production"?{component:i.any,children:i.node,appear:i.bool,enter:i.bool,exit:i.bool,childFactory:i.func}:{},Sc.defaultProps=SC;const Th={};function Oh(e,t){const r=T.useRef(Th);return r.current===Th&&(r.current=e(t)),r}const wC=[];function CC(e){T.useEffect(e,wC)}class Ys{static create(){return new Ys}currentId=null;start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function pn(){const e=Oh(Ys.create).current;return CC(e.disposeEffect),e}function EC(e){const{prototype:t={}}=e;return!!t.isReactComponent}function TC(e,t,r,n,o){const s=e[t],l=o||t;if(s==null||typeof window>"u")return null;let c;return typeof s=="function"&&!EC(s)&&(c="Did you accidentally provide a plain function component instead?"),c!==void 0?new Error(`Invalid ${n} \`${l}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const wc=Pr(i.elementType,TC),kh=e=>e.scrollTop;function Gs(e,t){const{timeout:r,easing:n,style:o={}}=e;return{duration:o.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[t.mode]:n),delay:o.transitionDelay}}function Ks(e){return typeof e=="string"}function Ph(e,t,r){return e===void 0||Ks(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function Ih(e,t,r){return typeof e=="function"?e(t,r):e}function Xs(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function Nh(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function _h(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:s}=e;if(!t){const g=se(r?.className,s,o?.className,n?.className),y={...r?.style,...o?.style,...n?.style},f={...r,...o,...n};return g.length>0&&(f.className=g),Object.keys(y).length>0&&(f.style=y),{props:f,internalRef:void 0}}const l=Xs({...o,...n}),c=Nh(n),d=Nh(o),p=t(l),u=se(p?.className,r?.className,s,o?.className,n?.className),h={...p?.style,...r?.style,...o?.style,...n?.style},v={...p,...r,...d,...c};return u.length>0&&(v.className=u),Object.keys(h).length>0&&(v.style=h),{props:v,internalRef:p.ref}}function ge(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:s,internalForwardedProps:l,shouldForwardComponentProp:c=!1,...d}=t,{component:p,slots:u={[e]:void 0},slotProps:h={[e]:void 0},...v}=s,g=u[e]||n,y=Ih(h[e],o),{props:{component:f,...m},internalRef:x}=_h({className:r,...d,externalForwardedProps:e==="root"?v:void 0,externalSlotProps:y}),b=Je(x,y?.ref,t.ref),w=e==="root"?f||p:f,S=Ph(g,{...e==="root"&&!p&&!u[e]&&l,...e!=="root"&&!u[e]&&l,...m,...w&&!c&&{as:w},...w&&c&&{component:w},ref:b},o);return[g,S]}function OC(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 Ah(e,t,r,n){const o=e[t];if(o==null||!Number.isInteger(o)){const s=OC(o);return new RangeError(`Invalid ${n} \`${t}\` of type \`${s}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function Mh(e,t,r,n){return e[t]===void 0?null:Ah(e,t,r,n)}function Cc(){return null}Mh.isRequired=Ah,Cc.isRequired=Cc;const $h=process.env.NODE_ENV==="production"?Cc:Mh;function kC(e){return pe("MuiPaper",e)}de("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 PC=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,s={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return ue(s,kC,o)},IC=G("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(he(({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)"}}]}))),Jt=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiPaper"}),o=Ge(),{className:s,component:l="div",elevation:c=1,square:d=!1,variant:p="elevation",...u}=n,h={...n,component:l,elevation:c,square:d,variant:p},v=PC(h);return process.env.NODE_ENV!=="production"&&o.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
|
+
`)),a.jsx(IC,{as:l,ownerState:h,className:se(v.root,s),ref:r,...u,style:{...p==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[c],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[c]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Ws("#fff",uc(c))}, ${Ws("#fff",uc(c))})`}},...u.style}})});process.env.NODE_ENV!=="production"&&(Jt.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,elevation:Pr($h,e=>{const{elevation:t,variant:r}=e;return t>0&&r==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:i.bool,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["elevation","outlined"]),i.string])});const vt=i.oneOfType([i.func,i.object]);function Js(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 Qs{static create(){return new Qs}static use(){const t=Oh(Qs.create).current,[r,n]=T.useState(!1);return t.shouldMount=r,t.setShouldMount=n,T.useEffect(t.mountEffect,[r]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=_C(),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 NC(){return Qs.use()}function _C(){let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r}function Dh(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:s,rippleSize:l,in:c,onExited:d,timeout:p}=e,[u,h]=T.useState(!1),v=se(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),g={width:l,height:l,top:-(l/2)+s,left:-(l/2)+o},y=se(r.child,u&&r.childLeaving,n&&r.childPulsate);return!c&&!u&&h(!0),T.useEffect(()=>{if(!c&&d!=null){const f=setTimeout(d,p);return()=>{clearTimeout(f)}}},[d,c,p]),a.jsx("span",{className:v,style:g,children:a.jsx("span",{className:y})})}process.env.NODE_ENV!=="production"&&(Dh.propTypes={classes:i.object.isRequired,className:i.string,in:i.bool,onExited:i.func,pulsate:i.bool,rippleSize:i.number,rippleX:i.number,rippleY:i.number,timeout:i.number.isRequired});const Lt=de("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ec=550,AC=80,MC=Do`
|
|
64
64
|
0% {
|
|
65
65
|
transform: scale(0);
|
|
66
66
|
opacity: 0.1;
|
|
@@ -70,7 +70,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
70
70
|
transform: scale(1);
|
|
71
71
|
opacity: 0.3;
|
|
72
72
|
}
|
|
73
|
-
|
|
73
|
+
`,$C=Do`
|
|
74
74
|
0% {
|
|
75
75
|
opacity: 1;
|
|
76
76
|
}
|
|
@@ -78,7 +78,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
78
78
|
100% {
|
|
79
79
|
opacity: 0;
|
|
80
80
|
}
|
|
81
|
-
`,
|
|
81
|
+
`,DC=Do`
|
|
82
82
|
0% {
|
|
83
83
|
transform: scale(1);
|
|
84
84
|
}
|
|
@@ -90,23 +90,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
90
90
|
100% {
|
|
91
91
|
transform: scale(1);
|
|
92
92
|
}
|
|
93
|
-
`,
|
|
93
|
+
`,FC=G("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),zC=G(Dh,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
94
94
|
opacity: 0;
|
|
95
95
|
position: absolute;
|
|
96
96
|
|
|
97
|
-
&.${
|
|
97
|
+
&.${Lt.rippleVisible} {
|
|
98
98
|
opacity: 0.3;
|
|
99
99
|
transform: scale(1);
|
|
100
|
-
animation-name: ${
|
|
101
|
-
animation-duration: ${
|
|
100
|
+
animation-name: ${MC};
|
|
101
|
+
animation-duration: ${Ec}ms;
|
|
102
102
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
&.${
|
|
105
|
+
&.${Lt.ripplePulsate} {
|
|
106
106
|
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
& .${
|
|
109
|
+
& .${Lt.child} {
|
|
110
110
|
opacity: 1;
|
|
111
111
|
display: block;
|
|
112
112
|
width: 100%;
|
|
@@ -115,25 +115,25 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
115
115
|
background-color: currentColor;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
& .${
|
|
118
|
+
& .${Lt.childLeaving} {
|
|
119
119
|
opacity: 0;
|
|
120
|
-
animation-name: ${
|
|
121
|
-
animation-duration: ${
|
|
120
|
+
animation-name: ${$C};
|
|
121
|
+
animation-duration: ${Ec}ms;
|
|
122
122
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
& .${
|
|
125
|
+
& .${Lt.childPulsate} {
|
|
126
126
|
position: absolute;
|
|
127
127
|
/* @noflip */
|
|
128
128
|
left: 0px;
|
|
129
129
|
top: 0;
|
|
130
|
-
animation-name: ${
|
|
130
|
+
animation-name: ${DC};
|
|
131
131
|
animation-duration: 2500ms;
|
|
132
132
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
133
133
|
animation-iteration-count: infinite;
|
|
134
134
|
animation-delay: 200ms;
|
|
135
135
|
}
|
|
136
|
-
`,
|
|
136
|
+
`,Fh=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:l,...c}=n,[d,p]=T.useState([]),u=T.useRef(0),h=T.useRef(null);T.useEffect(()=>{h.current&&(h.current(),h.current=null)},[d]);const v=T.useRef(!1),g=pn(),y=T.useRef(null),f=T.useRef(null),m=T.useCallback(S=>{const{pulsate:C,rippleX:O,rippleY:I,rippleSize:F,cb:D}=S;p(L=>[...L,a.jsx(zC,{classes:{ripple:se(s.ripple,Lt.ripple),rippleVisible:se(s.rippleVisible,Lt.rippleVisible),ripplePulsate:se(s.ripplePulsate,Lt.ripplePulsate),child:se(s.child,Lt.child),childLeaving:se(s.childLeaving,Lt.childLeaving),childPulsate:se(s.childPulsate,Lt.childPulsate)},timeout:Ec,pulsate:C,rippleX:O,rippleY:I,rippleSize:F},u.current)]),u.current+=1,h.current=D},[s]),x=T.useCallback((S={},C={},O=()=>{})=>{const{pulsate:I=!1,center:F=o||C.pulsate,fakeElement:D=!1}=C;if(S?.type==="mousedown"&&v.current){v.current=!1;return}S?.type==="touchstart"&&(v.current=!0);const L=D?null:f.current,z=L?L.getBoundingClientRect():{width:0,height:0,left:0,top:0};let k,j,_;if(F||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)k=Math.round(z.width/2),j=Math.round(z.height/2);else{const{clientX:M,clientY:N}=S.touches&&S.touches.length>0?S.touches[0]:S;k=Math.round(M-z.left),j=Math.round(N-z.top)}if(F)_=Math.sqrt((2*z.width**2+z.height**2)/3),_%2===0&&(_+=1);else{const M=Math.max(Math.abs((L?L.clientWidth:0)-k),k)*2+2,N=Math.max(Math.abs((L?L.clientHeight:0)-j),j)*2+2;_=Math.sqrt(M**2+N**2)}S?.touches?y.current===null&&(y.current=()=>{m({pulsate:I,rippleX:k,rippleY:j,rippleSize:_,cb:O})},g.start(AC,()=>{y.current&&(y.current(),y.current=null)})):m({pulsate:I,rippleX:k,rippleY:j,rippleSize:_,cb:O})},[o,m,g]),b=T.useCallback(()=>{x({},{pulsate:!0})},[x]),w=T.useCallback((S,C)=>{if(g.clear(),S?.type==="touchend"&&y.current){y.current(),y.current=null,g.start(0,()=>{w(S,C)});return}y.current=null,p(O=>O.length>0?O.slice(1):O),h.current=C},[g]);return T.useImperativeHandle(r,()=>({pulsate:b,start:x,stop:w}),[b,x,w]),a.jsx(FC,{className:se(Lt.root,s.root,l),ref:f,...c,children:a.jsx(Sc,{component:null,exit:!0,children:d})})});process.env.NODE_ENV!=="production"&&(Fh.propTypes={center:i.bool,classes:i.object,className:i.string});function jC(e){return pe("MuiButtonBase",e)}const BC=de("MuiButtonBase",["root","disabled","focusVisible"]),LC=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,l=ue({root:["root",t&&"disabled",r&&"focusVisible"]},jC,o);return r&&n&&(l.root+=` ${n}`),l},WC=G("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"},[`&.${BC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),qo=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:l,className:c,component:d="button",disabled:p=!1,disableRipple:u=!1,disableTouchRipple:h=!1,focusRipple:v=!1,focusVisibleClassName:g,LinkComponent:y="a",onBlur:f,onClick:m,onContextMenu:x,onDragLeave:b,onFocus:w,onFocusVisible:S,onKeyDown:C,onKeyUp:O,onMouseDown:I,onMouseLeave:F,onMouseUp:D,onTouchEnd:L,onTouchMove:z,onTouchStart:k,tabIndex:j=0,TouchRippleProps:_,touchRippleRef:M,type:N,...A}=n,W=T.useRef(null),H=NC(),B=Je(H.ref,M),[U,X]=T.useState(!1);p&&U&&X(!1),T.useImperativeHandle(o,()=>({focusVisible:()=>{X(!0),W.current.focus()}}),[]);const J=H.shouldMount&&!u&&!p;T.useEffect(()=>{U&&v&&!u&&H.pulsate()},[u,v,U,H]);const Q=Ir(H,"start",I,h),Y=Ir(H,"stop",x,h),K=Ir(H,"stop",b,h),ee=Ir(H,"stop",D,h),oe=Ir(H,"stop",ne=>{U&&ne.preventDefault(),F&&F(ne)},h),ae=Ir(H,"start",k,h),Z=Ir(H,"stop",L,h),re=Ir(H,"stop",z,h),q=Ir(H,"stop",ne=>{Js(ne.target)||X(!1),f&&f(ne)},!1),ce=Bt(ne=>{W.current||(W.current=ne.currentTarget),Js(ne.target)&&(X(!0),S&&S(ne)),w&&w(ne)}),ie=()=>{const ne=W.current;return d&&d!=="button"&&!(ne.tagName==="A"&&ne.href)},ye=Bt(ne=>{v&&!ne.repeat&&U&&ne.key===" "&&H.stop(ne,()=>{H.start(ne)}),ne.target===ne.currentTarget&&ie()&&ne.key===" "&&ne.preventDefault(),C&&C(ne),ne.target===ne.currentTarget&&ie()&&ne.key==="Enter"&&!p&&(ne.preventDefault(),m&&m(ne))}),Le=Bt(ne=>{v&&ne.key===" "&&U&&!ne.defaultPrevented&&H.stop(ne,()=>{H.pulsate(ne)}),O&&O(ne),m&&ne.target===ne.currentTarget&&ie()&&ne.key===" "&&!ne.defaultPrevented&&m(ne)});let Oe=d;Oe==="button"&&(A.href||A.to)&&(Oe=y);const ke={};if(Oe==="button"){const ne=!!A.formAction;ke.type=N===void 0&&!ne?"button":N,ke.disabled=p}else!A.href&&!A.to&&(ke.role="button"),p&&(ke["aria-disabled"]=p);const Ce=Je(r,W),Ve={...n,centerRipple:s,component:d,disabled:p,disableRipple:u,disableTouchRipple:h,focusRipple:v,tabIndex:j,focusVisible:U},Ne=LC(Ve);return a.jsxs(WC,{as:Oe,className:se(Ne.root,c),ownerState:Ve,onBlur:q,onClick:m,onContextMenu:Y,onFocus:ce,onKeyDown:ye,onKeyUp:Le,onMouseDown:Q,onMouseLeave:oe,onMouseUp:ee,onDragLeave:K,onTouchEnd:Z,onTouchMove:re,onTouchStart:ae,ref:Ce,tabIndex:p?-1:j,type:N,...ke,...A,children:[l,J?a.jsx(Fh,{ref:B,center:s,..._}):null]})});function Ir(e,t,r,n=!1){return Bt(o=>(r&&r(o),n||e[t](o),!0))}process.env.NODE_ENV!=="production"&&(qo.propTypes={action:vt,centerRipple:i.bool,children:i.node,classes:i.object,className:i.string,component:wc,disabled:i.bool,disableRipple:i.bool,disableTouchRipple:i.bool,focusRipple:i.bool,focusVisibleClassName:i.string,formAction:i.oneOfType([i.func,i.string]),href:i.any,LinkComponent:i.elementType,onBlur:i.func,onClick:i.func,onContextMenu:i.func,onDragLeave:i.func,onFocus:i.func,onFocusVisible:i.func,onKeyDown:i.func,onKeyUp:i.func,onMouseDown:i.func,onMouseLeave:i.func,onMouseUp:i.func,onTouchEnd:i.func,onTouchMove:i.func,onTouchStart:i.func,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),tabIndex:i.number,TouchRippleProps:i.object,touchRippleRef:i.oneOfType([i.func,i.shape({current:i.shape({pulsate:i.func.isRequired,start:i.func.isRequired,stop:i.func.isRequired})})]),type:i.oneOfType([i.oneOf(["button","reset","submit"]),i.string])});function VC(e){return typeof e.main=="string"}function UC(e,t=[]){if(!VC(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function Tt(e=[]){return([,t])=>t&&UC(t,e)}function HC(e){return pe("MuiCircularProgress",e)}de("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Qt=44,Tc=Do`
|
|
137
137
|
0% {
|
|
138
138
|
transform: rotate(0deg);
|
|
139
139
|
}
|
|
@@ -141,7 +141,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
141
141
|
100% {
|
|
142
142
|
transform: rotate(360deg);
|
|
143
143
|
}
|
|
144
|
-
`,
|
|
144
|
+
`,Oc=Do`
|
|
145
145
|
0% {
|
|
146
146
|
stroke-dasharray: 1px, 200px;
|
|
147
147
|
stroke-dashoffset: 0;
|
|
@@ -156,26 +156,32 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
156
156
|
stroke-dasharray: 1px, 200px;
|
|
157
157
|
stroke-dashoffset: -126px;
|
|
158
158
|
}
|
|
159
|
-
`,
|
|
160
|
-
animation: ${
|
|
161
|
-
`:null,
|
|
162
|
-
animation: ${
|
|
163
|
-
`:null,
|
|
164
|
-
`)):null),classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),i.string]),disabled:i.bool,disableFocusRipple:i.bool,disableRipple:i.bool,edge:i.oneOf(["end","start",!1]),id:i.string,loading:i.bool,loadingIndicator:i.node,size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function Uw(e){return de("MuiTypography",e)}const Qf=le("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Hw={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},qw=GS(),Yw=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:l}=e,c={root:["root",a,e.align!=="inherit"&&`align${R(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return pe(c,Uw,l)},Gw=G("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${R(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(he(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,r])=>t!=="inherit"&&r&&typeof r=="object").map(([t,r])=>({props:{variant:t},style:r})),...Object.entries(e.palette).filter(bt()).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${R(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}}]}))),Zf={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},P=k.forwardRef(function(t,r){const{color:n,...o}=fe({props:t,name:"MuiTypography"}),a=!Hw[n],l=qw({...o,...a&&{color:n}}),{align:c="inherit",className:u,component:d,gutterBottom:p=!1,noWrap:h=!1,paragraph:y=!1,variant:x="body1",variantMapping:g=Zf,...f}=l,b={...l,align:c,color:n,className:u,component:d,gutterBottom:p,noWrap:h,paragraph:y,variant:x,variantMapping:g},S=d||(y?"p":g[x]||Zf[x])||"span",v=Yw(b);return s.jsx(Gw,{as:S,ref:r,className:te(v.root,u),...f,ownerState:b,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...f.style}})});process.env.NODE_ENV!=="production"&&(P.propTypes={align:i.oneOf(["center","inherit","justify","left","right"]),children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),i.string]),component:i.elementType,gutterBottom:i.bool,noWrap:i.bool,paragraph:i.bool,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),i.string]),variantMapping:i.object});function So(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;const a=e[t],l=o||t;return a==null?null:a&&a.nodeType!==1?new Error(`Invalid ${n} \`${l}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}function Kw(e){const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...a}=e,l=o?{}:Vf(r,n),{props:c,internalRef:u}=Hf({...a,externalSlotProps:l}),d=Qe(u,l?.ref,e.additionalProps?.ref);return Lf(t,{...c,ref:d},n)}function bn(e){return parseInt(k.version,10)>=19?e?.props?.ref||null:e?.ref||null}function Rw(e){return typeof e=="function"?e():e}const ms=k.forwardRef(function(t,r){const{children:n,container:o,disablePortal:a=!1}=t,[l,c]=k.useState(null),u=Qe(k.isValidElement(n)?bn(n):null,r);if(dr(()=>{a||c(Rw(o)||document.body)},[o,a]),dr(()=>{if(l&&!a)return Nf(r,l),()=>{Nf(r,null)}},[r,l,a]),a){if(k.isValidElement(n)){const d={ref:u};return k.cloneElement(n,d)}return n}return l&&ig.createPortal(n,l)});process.env.NODE_ENV!=="production"&&(ms.propTypes={children:i.node,container:i.oneOfType([So,i.func]),disablePortal:i.bool}),process.env.NODE_ENV!=="production"&&(ms.propTypes=wl(ms.propTypes));function xs(e){return parseInt(e,10)||0}const Xw={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Jw(e){for(const t in e)return!1;return!0}function eh(e){return Jw(e)||e.outerHeightStyle===0&&!e.overflowing}const th=k.forwardRef(function(t,r){const{onChange:n,maxRows:o,minRows:a=1,style:l,value:c,...u}=t,{current:d}=k.useRef(c!=null),p=k.useRef(null),h=Qe(r,p),y=k.useRef(null),x=k.useRef(null),g=k.useCallback(()=>{const T=p.current,C=x.current;if(!T||!C)return;const w=pr(T).getComputedStyle(T);if(w.width==="0px")return{outerHeightStyle:0,overflowing:!1};C.style.width=w.width,C.value=T.value||t.placeholder||"x",C.value.slice(-1)===`
|
|
165
|
-
|
|
166
|
-
`)
|
|
167
|
-
`))},[]),ie=Qe(ne,C,T.ref,X),[Y,ge]=k.useState(!1),oe=Jt();process.env.NODE_ENV!=="production"&&k.useEffect(()=>{if(oe)return oe.registerEffect()},[oe]);const ve=Tr({props:n,muiFormControl:oe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ve.focused=oe?oe.focused:Y,k.useEffect(()=>{!oe&&y&&Y&&(ge(!1),N&&N())},[oe,y,Y,N]);const At=oe&&oe.onFilled,dt=oe&&oe.onEmpty,He=k.useCallback(Me=>{Ss(Me)?At&&At():dt&&dt()},[At,dt]);dr(()=>{ue&&He({value:re})},[re,He,ue]);const Ct=Me=>{M&&M(Me),T.onFocus&&T.onFocus(Me),oe&&oe.onFocus?oe.onFocus(Me):ge(!0)},Lt=Me=>{N&&N(Me),T.onBlur&&T.onBlur(Me),oe&&oe.onBlur?oe.onBlur(Me):ge(!1)},Ge=(Me,...Yo)=>{if(!ue){const gr=Me.target||ne.current;if(gr==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.":Ut(1));He({value:gr.value})}T.onChange&&T.onChange(Me,...Yo),L&&L(Me,...Yo)};k.useEffect(()=>{He(ne.current)},[]);const ce=Me=>{ne.current&&Me.currentTarget===Me.target&&ne.current.focus(),O&&O(Me)};let Yr=v,Ke=T;z&&Yr==="input"&&(U?(process.env.NODE_ENV!=="production"&&(I||w)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Ke={type:void 0,minRows:U,maxRows:U,...Ke}):Ke={type:void 0,maxRows:w,minRows:I,...Ke},Yr=th);const qs=Me=>{He(Me.animationName==="mui-auto-fill-cancel"?ne.current:{value:"x"})};k.useEffect(()=>{oe&&oe.setAdornedStart(!!J)},[oe,J]);const kr={...n,color:ve.color||"primary",disabled:ve.disabled,endAdornment:g,error:ve.error,focused:ve.focused,formControl:oe,fullWidth:b,hiddenLabel:ve.hiddenLabel,multiline:z,size:ve.size,startAdornment:J,type:ee},Gr=e2(kr),Pn=K.root||d.Root||Es,Ho=W.root||p.root||{},qo=K.input||d.Input||Ts;return Ke={...Ke,...W.input??p.input},s.jsxs(k.Fragment,{children:[!x&&typeof oh=="function"&&(nh||(nh=s.jsx(oh,{}))),s.jsxs(Pn,{...Ho,ref:r,onClick:ce,...Z,...!hs(Pn)&&{ownerState:{...kr,...Ho.ownerState}},className:te(Gr.root,Ho.className,c,q&&"MuiInputBase-readOnly"),children:[J,s.jsx(vs.Provider,{value:null,children:s.jsx(qo,{"aria-invalid":ve.error,"aria-describedby":o,autoComplete:a,autoFocus:l,defaultValue:h,disabled:ve.disabled,id:S,onAnimationStart:qs,name:_,placeholder:D,readOnly:q,required:ve.required,rows:U,value:re,onKeyDown:A,onKeyUp:$,type:ee,...Ke,...!hs(qo)&&{as:Yr,ownerState:{...kr,...Ke.ownerState}},ref:ie,className:te(Gr.input,Ke.className,q&&"MuiInputBase-readOnly"),onBlur:Lt,onChange:Ge,onFocus:Ct})}),g,H?H({...ve,startAdornment:J}):null]})]})});process.env.NODE_ENV!=="production"&&(mn.propTypes={"aria-describedby":i.string,autoComplete:i.string,autoFocus:i.bool,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),componentsProps:i.shape({input:i.object,root:i.object}),defaultValue:i.any,disabled:i.bool,disableInjectingGlobalStyles:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,id:i.string,inputComponent:Wl,inputProps:i.object,inputRef:wt,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onClick:i.func,onFocus:i.func,onInvalid:i.func,onKeyDown:i.func,onKeyUp:i.func,placeholder:i.string,readOnly:i.bool,renderSuffix:i.func,required:i.bool,rows:i.oneOfType([i.number,i.string]),size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({input:i.object,root:i.object}),slots:i.shape({input:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any});function t2(e){return de("MuiInput",e)}const wo={...yn,...le("MuiInput",["root","underline","input"])};function r2(e){return de("MuiOutlinedInput",e)}const Qt={...yn,...le("MuiOutlinedInput",["root","notchedOutline","input"])};function n2(e){return de("MuiFilledInput",e)}const Wr={...yn,...le("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},o2=lt(s.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),i2=lt(s.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 s2(e){return de("MuiAvatar",e)}le("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const a2=e=>{const{classes:t,variant:r,colorDefault:n}=e;return pe({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},s2,t)},l2=G("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(he(({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]})}}}]}))),c2=G("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),d2=G(i2,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function u2({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[o,a]=k.useState(!1);return k.useEffect(()=>{if(!r&&!n)return;a(!1);let l=!0;const c=new Image;return c.onload=()=>{l&&a("loaded")},c.onerror=()=>{l&&a("error")},c.crossOrigin=e,c.referrerPolicy=t,c.src=r,n&&(c.srcset=n),()=>{l=!1}},[e,t,r,n]),o}const ql=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiAvatar"}),{alt:o,children:a,className:l,component:c="div",slots:u={},slotProps:d={},imgProps:p,sizes:h,src:y,srcSet:x,variant:g="circular",...f}=n;let b=null;const S={...n,component:c,variant:g},v=u2({...p,...typeof d.img=="function"?d.img(S):d.img,src:y,srcSet:x}),T=y||x,C=T&&v!=="error";S.colorDefault=!C,delete S.ownerState;const E=a2(S),[w,I]=me("root",{ref:r,className:te(E.root,l),elementType:l2,externalForwardedProps:{slots:u,slotProps:d,component:c,...f},ownerState:S}),[z,_]=me("img",{className:E.img,elementType:c2,externalForwardedProps:{slots:u,slotProps:{img:{...p,...d.img}}},additionalProps:{alt:o,src:y,srcSet:x,sizes:h},ownerState:S}),[N,L]=me("fallback",{className:E.fallback,elementType:d2,externalForwardedProps:{slots:u,slotProps:d},shouldForwardComponentProp:!0,ownerState:S});return C?b=s.jsx(z,{..._}):a||a===0?b=a:T&&o?b=o[0]:b=s.jsx(N,{...L}),s.jsx(w,{...I,children:b})});process.env.NODE_ENV!=="production"&&(ql.propTypes={alt:i.string,children:i.node,classes:i.object,className:i.string,component:i.elementType,imgProps:i.object,sizes:i.string,slotProps:i.shape({fallback:i.oneOfType([i.func,i.object]),img:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({fallback:i.elementType,img:i.elementType,root:i.elementType}),src:i.string,srcSet:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["circular","rounded","square"]),i.string])});function p2(e){const{prototype:t={}}=e;return!!t.isReactComponent}function ih(e,t,r,n,o){const a=e[t],l=o||t;if(a==null||typeof window>"u")return null;let c;const u=a.type;return typeof u=="function"&&!p2(u)&&(c="Did you accidentally use a plain function component for an element instead?"),c!==void 0?new Error(`Invalid ${n} \`${l}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const xn=Er(i.element,ih);xn.isRequired=Er(i.element.isRequired,ih);const f2={entering:{opacity:1},entered:{opacity:1}},ks=k.forwardRef(function(t,r){const n=We(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:c,easing:u,in:d,onEnter:p,onEntered:h,onEntering:y,onExit:x,onExited:g,onExiting:f,style:b,timeout:S=o,TransitionComponent:v=Xt,...T}=t,C=k.useRef(null),E=Qe(C,bn(c),r),w=A=>$=>{if(A){const D=C.current;$===void 0?A(D):A(D,$)}},I=w(y),z=w((A,$)=>{Wf(A);const D=fs({style:b,timeout:S,easing:u},{mode:"enter"});A.style.webkitTransition=n.transitions.create("opacity",D),A.style.transition=n.transitions.create("opacity",D),p&&p(A,$)}),_=w(h),N=w(f),L=w(A=>{const $=fs({style:b,timeout:S,easing:u},{mode:"exit"});A.style.webkitTransition=n.transitions.create("opacity",$),A.style.transition=n.transitions.create("opacity",$),x&&x(A)}),O=w(g),M=A=>{a&&a(C.current,A)};return s.jsx(v,{appear:l,in:d,nodeRef:C,onEnter:z,onEntered:_,onEntering:I,onExit:L,onExited:O,onExiting:N,addEndListener:M,timeout:S,...T,children:(A,{ownerState:$,...D})=>k.cloneElement(c,{style:{opacity:0,visibility:A==="exited"&&!d?"hidden":void 0,...f2[A],...b,...c.props.style},ref:E,...D})})});process.env.NODE_ENV!=="production"&&(ks.propTypes={addEndListener:i.func,appear:i.bool,children:xn.isRequired,easing:i.oneOfType([i.shape({enter:i.string,exit:i.string}),i.string]),in:i.bool,onEnter:i.func,onEntered:i.func,onEntering:i.func,onExit:i.func,onExited:i.func,onExiting:i.func,style:i.object,timeout:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])});function h2(e){return de("MuiBackdrop",e)}le("MuiBackdrop",["root","invisible"]);const g2=e=>{const{classes:t,invisible:r}=e;return pe({root:["root",r&&"invisible"]},h2,t)},b2=G("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.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"}}]}),Yl=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiBackdrop"}),{children:o,className:a,component:l="div",invisible:c=!1,open:u,components:d={},componentsProps:p={},slotProps:h={},slots:y={},TransitionComponent:x,transitionDuration:g,...f}=n,b={...n,component:l,invisible:c},S=g2(b),v={transition:x,root:d.Root,...y},T={...p,...h},C={component:l,slots:v,slotProps:T},[E,w]=me("root",{elementType:b2,externalForwardedProps:C,className:te(S.root,a),ownerState:b}),[I,z]=me("transition",{elementType:ks,externalForwardedProps:C,ownerState:b});return s.jsx(I,{in:u,timeout:g,...f,...z,children:s.jsx(E,{"aria-hidden":!0,...w,classes:S,ref:r,children:o})})});process.env.NODE_ENV!=="production"&&(Yl.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,components:i.shape({Root:i.elementType}),componentsProps:i.shape({root:i.object}),invisible:i.bool,open:i.bool.isRequired,slotProps:i.shape({root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])});const y2=le("MuiBox",["root"]),m2=Nl(),m=B1({themeId:no,defaultTheme:m2,defaultClassName:y2.root,generateClassName:Qp.generate});process.env.NODE_ENV!=="production"&&(m.propTypes={children:i.node,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function x2(e){return de("MuiButton",e)}const Lr=le("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"]),sh=k.createContext({});process.env.NODE_ENV!=="production"&&(sh.displayName="ButtonGroupContext");const ah=k.createContext(void 0);process.env.NODE_ENV!=="production"&&(ah.displayName="ButtonGroupButtonContext");const v2=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:a,loading:l,loadingPosition:c,classes:u}=e,d={root:["root",l&&"loading",a,`${a}${R(t)}`,`size${R(o)}`,`${a}Size${R(o)}`,`color${R(t)}`,r&&"disableElevation",n&&"fullWidth",l&&`loadingPosition${R(c)}`],startIcon:["icon","startIcon",`iconSize${R(o)}`],endIcon:["icon","endIcon",`iconSize${R(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},p=pe(d,x2,u);return{...u,...p}},lh=[{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}}}],S2=G(vo,{shouldForwardProp:e=>ot(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${R(r.color)}`],t[`size${R(r.size)}`],t[`${r.variant}Size${R(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(he(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=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"},[`&.${Lr.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]},[`&.${Lr.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Lr.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)",[`&.${Lr.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(bt()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(e.vars||e).palette[n].main,"--variant-outlinedColor":(e.vars||e).palette[n].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[n].main,.5),"--variant-containedColor":(e.vars||e).palette[n].contrastText,"--variant-containedBg":(e.vars||e).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[n].dark,"--variant-textBg":e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[n].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[n].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:r,"--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"},[`&.${Lr.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Lr.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}),[`&.${Lr.loading}`]:{color:"transparent"}}}]}})),w2=G("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${R(r.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}},...lh]})),C2=G("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${R(r.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}},...lh]})),E2=G("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}}]})),ch=G("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),ae=k.forwardRef(function(t,r){const n=k.useContext(sh),o=k.useContext(ah),a=bo(n,t),l=fe({props:a,name:"MuiButton"}),{children:c,color:u="primary",component:d="button",className:p,disabled:h=!1,disableElevation:y=!1,disableFocusRipple:x=!1,endIcon:g,focusVisibleClassName:f,fullWidth:b=!1,id:S,loading:v=null,loadingIndicator:T,loadingPosition:C="center",size:E="medium",startIcon:w,type:I,variant:z="text",..._}=l,N=fn(S),L=T??s.jsx(ys,{"aria-labelledby":N,color:"inherit",size:16}),O={...l,color:u,component:d,disabled:h,disableElevation:y,disableFocusRipple:x,fullWidth:b,loading:v,loadingIndicator:L,loadingPosition:C,size:E,type:I,variant:z},M=v2(O),A=(w||v&&C==="start")&&s.jsx(w2,{className:M.startIcon,ownerState:O,children:w||s.jsx(ch,{className:M.loadingIconPlaceholder,ownerState:O})}),$=(g||v&&C==="end")&&s.jsx(C2,{className:M.endIcon,ownerState:O,children:g||s.jsx(ch,{className:M.loadingIconPlaceholder,ownerState:O})}),D=o||"",q=typeof v=="boolean"?s.jsx("span",{className:M.loadingWrapper,style:{display:"contents"},children:v&&s.jsx(E2,{className:M.loadingIndicator,ownerState:O,children:L})}):null;return s.jsxs(S2,{ownerState:O,className:te(n.className,M.root,p,D),component:d,disabled:h||v,focusRipple:!x,focusVisibleClassName:te(M.focusVisible,f),ref:r,type:I,id:v?N:S,..._,classes:M,children:[A,C!=="end"&&q,c,C==="end"&&q,$]})});process.env.NODE_ENV!=="production"&&(ae.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","primary","secondary","success","error","info","warning"]),i.string]),component:i.elementType,disabled:i.bool,disableElevation:i.bool,disableFocusRipple:i.bool,disableRipple:i.bool,endIcon:i.node,focusVisibleClassName:i.string,fullWidth:i.bool,href:i.string,id:i.string,loading:i.bool,loadingIndicator:i.node,loadingPosition:i.oneOf(["center","end","start"]),size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),startIcon:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.oneOfType([i.oneOf(["button","reset","submit"]),i.string]),variant:i.oneOfType([i.oneOf(["contained","outlined","text"]),i.string])});function T2(e){return de("MuiCard",e)}le("MuiCard",["root"]);const k2=e=>{const{classes:t}=e;return pe({root:["root"]},T2,t)},O2=G(Re,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),Zt=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiCard"}),{className:o,raised:a=!1,...l}=n,c={...n,raised:a},u=k2(c);return s.jsx(O2,{className:te(u.root,o),elevation:a?8:void 0,ref:r,ownerState:c,...l})});process.env.NODE_ENV!=="production"&&(Zt.propTypes={children:i.node,classes:i.object,className:i.string,raised:Er(i.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function P2(e){return de("MuiCardContent",e)}le("MuiCardContent",["root"]);const I2=e=>{const{classes:t}=e;return pe({root:["root"]},P2,t)},N2=G("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),dh=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiCardContent"}),{className:o,component:a="div",...l}=n,c={...n,component:a},u=I2(c);return s.jsx(N2,{as:a,className:te(u.root,o),ownerState:c,ref:r,...l})});process.env.NODE_ENV!=="production"&&(dh.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function _2(e){return de("PrivateSwitchBase",e)}le("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const A2=e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,a={root:["root",r&&"checked",n&&"disabled",o&&`edge${R(o)}`],input:["input"]};return pe(a,_2,t)},M2=G(vo,{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}}]}),D2=G("input",{name:"MuiSwitchBase",shouldForwardProp:ot})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Os=k.forwardRef(function(t,r){const{autoFocus:n,checked:o,checkedIcon:a,defaultChecked:l,disabled:c,disableFocusRipple:u=!1,edge:d=!1,icon:p,id:h,inputProps:y,inputRef:x,name:g,onBlur:f,onChange:b,onFocus:S,readOnly:v,required:T=!1,tabIndex:C,type:E,value:w,slots:I={},slotProps:z={},..._}=t,[N,L]=ds({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),O=Jt(),M=Q=>{S&&S(Q),O&&O.onFocus&&O.onFocus(Q)},A=Q=>{f&&f(Q),O&&O.onBlur&&O.onBlur(Q)},$=Q=>{if(Q.nativeEvent.defaultPrevented)return;const Z=Q.target.checked;L(Z),b&&b(Q,Z)};let D=c;O&&typeof D>"u"&&(D=O.disabled);const q=E==="checkbox"||E==="radio",H={...t,checked:N,disabled:D,disableFocusRipple:u,edge:d},U=A2(H),B={slots:I,slotProps:{input:y,...z}},[W,K]=me("root",{ref:r,elementType:M2,className:U.root,shouldForwardComponentProp:!0,externalForwardedProps:{...B,component:"span",..._},getSlotProps:Q=>({...Q,onFocus:Z=>{Q.onFocus?.(Z),M(Z)},onBlur:Z=>{Q.onBlur?.(Z),A(Z)}}),ownerState:H,additionalProps:{centerRipple:!0,focusRipple:!u,disabled:D,role:void 0,tabIndex:null}}),[J,ee]=me("input",{ref:x,elementType:D2,className:U.input,externalForwardedProps:B,getSlotProps:Q=>({...Q,onChange:Z=>{Q.onChange?.(Z),$(Z)}}),ownerState:H,additionalProps:{autoFocus:n,checked:o,defaultChecked:l,disabled:D,id:q?h:void 0,name:g,readOnly:v,required:T,tabIndex:C,type:E,...E==="checkbox"&&w===void 0?{}:{value:w}}});return s.jsxs(W,{...K,children:[s.jsx(J,{...ee}),N?a:p]})});process.env.NODE_ENV!=="production"&&(Os.propTypes={autoFocus:i.bool,checked:i.bool,checkedIcon:i.node.isRequired,classes:i.object,className:i.string,defaultChecked:i.bool,disabled:i.bool,disableFocusRipple:i.bool,edge:i.oneOf(["end","start",!1]),icon:i.node.isRequired,id:i.string,inputProps:i.object,inputRef:wt,name:i.string,onBlur:i.func,onChange:i.func,onFocus:i.func,readOnly:i.bool,required:i.bool,slotProps:i.shape({input:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({input:i.elementType,root:i.elementType}),sx:i.object,tabIndex:i.oneOfType([i.number,i.string]),type:i.string.isRequired,value:i.any});const z2=lt(s.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"),$2=lt(s.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"),F2=lt(s.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 B2(e){return de("MuiCheckbox",e)}const Gl=le("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),j2=e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,a={root:["root",r&&"indeterminate",`color${R(n)}`,`size${R(o)}`]},l=pe(a,B2,t);return{...t,...l}},W2=G(Os,{shouldForwardProp:e=>ot(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${R(r.size)}`],r.color!=="default"&&t[`color${R(r.color)}`]]}})(he(({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(bt()).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(bt()).map(([t])=>({props:{color:t},style:{[`&.${Gl.checked}, &.${Gl.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Gl.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),L2=s.jsx($2,{}),V2=s.jsx(z2,{}),U2=s.jsx(F2,{}),Le=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiCheckbox"}),{checkedIcon:o=L2,color:a="primary",icon:l=V2,indeterminate:c=!1,indeterminateIcon:u=U2,inputProps:d,size:p="medium",disableRipple:h=!1,className:y,slots:x={},slotProps:g={},...f}=n,b=c?u:l,S=c?u:o,v={...n,disableRipple:h,color:a,indeterminate:c,size:p},T=j2(v),C=g.input??d,[E,w]=me("root",{ref:r,elementType:W2,className:te(T.root,y),shouldForwardComponentProp:!0,externalForwardedProps:{slots:x,slotProps:g,...f},ownerState:v,additionalProps:{type:"checkbox",icon:k.cloneElement(b,{fontSize:b.props.fontSize??p}),checkedIcon:k.cloneElement(S,{fontSize:S.props.fontSize??p}),disableRipple:h,slots:x,slotProps:{input:_f(typeof C=="function"?C(v):C,{"data-indeterminate":c})}}});return s.jsx(E,{...w,classes:T})});process.env.NODE_ENV!=="production"&&(Le.propTypes={checked:i.bool,checkedIcon:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["default","primary","secondary","error","info","success","warning"]),i.string]),defaultChecked:i.bool,disabled:i.bool,disableRipple:i.bool,icon:i.node,id:i.string,indeterminate:i.bool,indeterminateIcon:i.node,inputProps:i.object,onChange:i.func,required:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({input:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({input:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.any});function uh(e){return e.substring(2).toLowerCase()}function H2(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Ps(e){const{children:t,disableReactTree:r=!1,mouseEvent:n="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,l=k.useRef(!1),c=k.useRef(null),u=k.useRef(!1),d=k.useRef(!1);k.useEffect(()=>(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const p=Qe(bn(t),c),h=Rt(g=>{const f=d.current;d.current=!1;const b=gt(c.current);if(!u.current||!c.current||"clientX"in g&&H2(g,b))return;if(l.current){l.current=!1;return}let S;g.composedPath?S=g.composedPath().includes(c.current):S=!b.documentElement.contains(g.target)||c.current.contains(g.target),!S&&(r||!f)&&o(g)}),y=g=>f=>{d.current=!0;const b=t.props[g];b&&b(f)},x={ref:p};return a!==!1&&(x[a]=y(a)),k.useEffect(()=>{if(a!==!1){const g=uh(a),f=gt(c.current),b=()=>{l.current=!0};return f.addEventListener(g,h),f.addEventListener("touchmove",b),()=>{f.removeEventListener(g,h),f.removeEventListener("touchmove",b)}}},[h,a]),n!==!1&&(x[n]=y(n)),k.useEffect(()=>{if(n!==!1){const g=uh(n),f=gt(c.current);return f.addEventListener(g,h),()=>{f.removeEventListener(g,h)}}},[h,n]),k.cloneElement(t,x)}process.env.NODE_ENV!=="production"&&(Ps.propTypes={children:xn.isRequired,disableReactTree:i.bool,mouseEvent:i.oneOf(["onClick","onMouseDown","onMouseUp","onPointerDown","onPointerUp",!1]),onClickAway:i.func.isRequired,touchEvent:i.oneOf(["onTouchEnd","onTouchStart",!1])}),process.env.NODE_ENV!=="production"&&(Ps.propTypes=wl(Ps.propTypes));function ph(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function q2(e){const t=gt(e);return t.body===e?pr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Co(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function fh(e){return parseInt(pr(e).getComputedStyle(e).paddingRight,10)||0}function Y2(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function hh(e,t,r,n,o){const a=[t,r,...n];[].forEach.call(e.children,l=>{const c=!a.includes(l),u=!Y2(l);c&&u&&Co(l,o)})}function Kl(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function G2(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(q2(n)){const l=ph(pr(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${fh(n)+l}px`;const c=gt(n).querySelectorAll(".mui-fixed");[].forEach.call(c,u=>{r.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${fh(u)+l}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=gt(n).body;else{const l=n.parentElement,c=pr(n);a=l?.nodeName==="HTML"&&c.getComputedStyle(l).overflowY==="scroll"?l:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:l,property:c})=>{a?l.style.setProperty(c,a):l.style.removeProperty(c)})}}function K2(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class R2{constructor(){this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Co(t.modalRef,!1);const o=K2(r);hh(r,t.mount,t.modalRef,o,!0);const a=Kl(this.containers,l=>l.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:o}),n)}mount(t,r){const n=Kl(this.containers,a=>a.modals.includes(t)),o=this.containers[n];o.restore||(o.restore=G2(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=Kl(this.containers,l=>l.modals.includes(t)),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Co(t.modalRef,r),hh(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const l=a.modals[a.modals.length-1];l.modalRef&&Co(l.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Eo(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const X2=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function J2(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 Q2(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function Z2(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Q2(e))}function eC(e){const t=[],r=[];return Array.from(e.querySelectorAll(X2)).forEach((n,o)=>{const a=J2(n);a===-1||!Z2(n)||(a===0?t.push(n):r.push({documentOrder:o,tabIndex:a,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(t)}function tC(){return!0}function Is(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=eC,isEnabled:l=tC,open:c}=e,u=k.useRef(!1),d=k.useRef(null),p=k.useRef(null),h=k.useRef(null),y=k.useRef(null),x=k.useRef(!1),g=k.useRef(null),f=Qe(bn(t),g),b=k.useRef(null);k.useEffect(()=>{!c||!g.current||(x.current=!r)},[r,c]),k.useEffect(()=>{if(!c||!g.current)return;const T=gt(g.current),C=Eo(T);return g.current.contains(C)||(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(`
|
|
168
|
-
`)),g.current.setAttribute("tabIndex","-1")),x.current&&g.current.focus()),()=>{o||(h.current&&h.current.focus&&(u.current=!0,h.current.focus()),h.current=null)}},[c]),k.useEffect(()=>{if(!c||!g.current)return;const T=gt(g.current),C=Eo(T),E=z=>{b.current=z,!(n||!l()||z.key!=="Tab")&&C===g.current&&z.shiftKey&&(u.current=!0,p.current&&p.current.focus())},w=()=>{const z=g.current;if(z===null)return;const _=Eo(T);if(!T.hasFocus()||!l()||u.current){u.current=!1;return}if(z.contains(_)||n&&_!==d.current&&_!==p.current)return;if(_!==y.current)y.current=null;else if(y.current!==null)return;if(!x.current)return;let N=[];if((_===d.current||_===p.current)&&(N=a(g.current)),N.length>0){const L=!!(b.current?.shiftKey&&b.current?.key==="Tab"),O=N[0],M=N[N.length-1];typeof O!="string"&&typeof M!="string"&&(L?M.focus():O.focus())}else z.focus()};T.addEventListener("focusin",w),T.addEventListener("keydown",E,!0);const I=setInterval(()=>{const z=Eo(T);z&&z.tagName==="BODY"&&w()},50);return()=>{clearInterval(I),T.removeEventListener("focusin",w),T.removeEventListener("keydown",E,!0)}},[r,n,o,l,c,a]);const S=T=>{h.current===null&&(h.current=T.relatedTarget),x.current=!0,y.current=T.target;const C=t.props.onFocus;C&&C(T)},v=T=>{h.current===null&&(h.current=T.relatedTarget),x.current=!0};return s.jsxs(k.Fragment,{children:[s.jsx("div",{tabIndex:c?0:-1,onFocus:v,ref:d,"data-testid":"sentinelStart"}),k.cloneElement(t,{ref:f,onFocus:S}),s.jsx("div",{tabIndex:c?0:-1,onFocus:v,ref:p,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Is.propTypes={children:xn,disableAutoFocus:i.bool,disableEnforceFocus:i.bool,disableRestoreFocus:i.bool,getTabbable:i.func,isEnabled:i.func,open:i.bool.isRequired}),process.env.NODE_ENV!=="production"&&(Is.propTypes=wl(Is.propTypes));function rC(e){return typeof e=="function"?e():e}function nC(e){return e?e.props.hasOwnProperty("in"):!1}const gh=()=>{},Ns=new R2;function oC(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:l,children:c,onClose:u,open:d,rootRef:p}=e,h=k.useRef({}),y=k.useRef(null),x=k.useRef(null),g=Qe(x,p),[f,b]=k.useState(!d),S=nC(c);let v=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(v=!1);const T=()=>gt(y.current),C=()=>(h.current.modalRef=x.current,h.current.mount=y.current,h.current),E=()=>{Ns.mount(C(),{disableScrollLock:n}),x.current&&(x.current.scrollTop=0)},w=Rt(()=>{const $=rC(t)||T().body;Ns.add(C(),$),x.current&&E()}),I=()=>Ns.isTopModal(C()),z=Rt($=>{y.current=$,$&&(d&&I()?E():x.current&&Co(x.current,v))}),_=k.useCallback(()=>{Ns.remove(C(),v)},[v]);k.useEffect(()=>()=>{_()},[_]),k.useEffect(()=>{d?w():(!S||!o)&&_()},[d,_,S,o,w]);const N=$=>D=>{$.onKeyDown?.(D),!(D.key!=="Escape"||D.which===229||!I())&&(r||(D.stopPropagation(),u&&u(D,"escapeKeyDown")))},L=$=>D=>{$.onClick?.(D),D.target===D.currentTarget&&u&&u(D,"backdropClick")};return{getRootProps:($={})=>{const D=gs(e);delete D.onTransitionEnter,delete D.onTransitionExited;const q={...D,...$};return{role:"presentation",...q,onKeyDown:N(q),ref:g}},getBackdropProps:($={})=>{const D=$;return{"aria-hidden":!0,...D,onClick:L(D),open:d}},getTransitionProps:()=>{const $=()=>{b(!1),a&&a()},D=()=>{b(!0),l&&l(),o&&_()};return{onEnter:Al($,c?.props.onEnter??gh),onExited:Al(D,c?.props.onExited??gh)}},rootRef:g,portalRef:z,isTopModal:I,exited:f,hasTransition:S}}function iC(e){return de("MuiModal",e)}le("MuiModal",["root","hidden","backdrop"]);const sC=e=>{const{open:t,exited:r,classes:n}=e;return pe({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},iC,n)},aC=G("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(he(({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"}}]}))),lC=G(Yl,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),vn=k.forwardRef(function(t,r){const n=fe({name:"MuiModal",props:t}),{BackdropComponent:o=lC,BackdropProps:a,classes:l,className:c,closeAfterTransition:u=!1,children:d,container:p,component:h,components:y={},componentsProps:x={},disableAutoFocus:g=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:b=!1,disablePortal:S=!1,disableRestoreFocus:v=!1,disableScrollLock:T=!1,hideBackdrop:C=!1,keepMounted:E=!1,onClose:w,onTransitionEnter:I,onTransitionExited:z,open:_,slotProps:N={},slots:L={},theme:O,...M}=n,A={...n,closeAfterTransition:u,disableAutoFocus:g,disableEnforceFocus:f,disableEscapeKeyDown:b,disablePortal:S,disableRestoreFocus:v,disableScrollLock:T,hideBackdrop:C,keepMounted:E},{getRootProps:$,getBackdropProps:D,getTransitionProps:q,portalRef:H,isTopModal:U,exited:B,hasTransition:W}=oC({...A,rootRef:r}),K={...A,exited:B},J=sC(K),ee={};if(d.props.tabIndex===void 0&&(ee.tabIndex="-1"),W){const{onEnter:X,onExited:ie}=q();ee.onEnter=X,ee.onExited=ie}const Q={slots:{root:y.Root,backdrop:y.Backdrop,...L},slotProps:{...x,...N}},[Z,re]=me("root",{ref:r,elementType:aC,externalForwardedProps:{...Q,...M,component:h},getSlotProps:$,ownerState:K,className:te(c,J?.root,!K.open&&K.exited&&J?.hidden)}),[ue,ne]=me("backdrop",{ref:a?.ref,elementType:o,externalForwardedProps:Q,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:X=>D({...X,onClick:ie=>{X?.onClick&&X.onClick(ie)}}),className:te(a?.className,J?.backdrop),ownerState:K});return!E&&!_&&(!W||B)?null:s.jsx(ms,{ref:H,container:p,disablePortal:S,children:s.jsxs(Z,{...re,children:[!C&&o?s.jsx(ue,{...ne}):null,s.jsx(Is,{disableEnforceFocus:f,disableAutoFocus:g,disableRestoreFocus:v,isEnabled:U,open:_,children:k.cloneElement(d,ee)})]})})});process.env.NODE_ENV!=="production"&&(vn.propTypes={BackdropComponent:i.elementType,BackdropProps:i.object,children:xn.isRequired,classes:i.object,className:i.string,closeAfterTransition:i.bool,component:i.elementType,components:i.shape({Backdrop:i.elementType,Root:i.elementType}),componentsProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),container:i.oneOfType([So,i.func]),disableAutoFocus:i.bool,disableEnforceFocus:i.bool,disableEscapeKeyDown:i.bool,disablePortal:i.bool,disableRestoreFocus:i.bool,disableScrollLock:i.bool,hideBackdrop:i.bool,keepMounted:i.bool,onClose:i.func,onTransitionEnter:i.func,onTransitionExited:i.func,open:i.bool.isRequired,slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function cC(e){return de("MuiDialog",e)}const Rl=le("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Xl=k.createContext({});process.env.NODE_ENV!=="production"&&(Xl.displayName="DialogContext");const dC=G(Yl,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),uC=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:a}=e,l={root:["root"],container:["container",`scroll${R(r)}`],paper:["paper",`paperScroll${R(r)}`,`paperWidth${R(String(n))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return pe(l,cC,t)},pC=G(vn,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),fC=G("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${R(r.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"}}}]}),hC=G(Re,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${R(r.scroll)}`],t[`paperWidth${R(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(he(({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)`,[`&.${Rl.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}`,[`&.${Rl.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,[`&.${Rl.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Sn=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiDialog"}),o=We(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":l,"aria-labelledby":c,"aria-modal":u=!0,BackdropComponent:d,BackdropProps:p,children:h,className:y,disableEscapeKeyDown:x=!1,fullScreen:g=!1,fullWidth:f=!1,maxWidth:b="sm",onClick:S,onClose:v,open:T,PaperComponent:C=Re,PaperProps:E={},scroll:w="paper",slots:I={},slotProps:z={},TransitionComponent:_=ks,transitionDuration:N=a,TransitionProps:L,...O}=n,M={...n,disableEscapeKeyDown:x,fullScreen:g,fullWidth:f,maxWidth:b,scroll:w},A=uC(M),$=k.useRef(),D=ge=>{$.current=ge.target===ge.currentTarget},q=ge=>{S&&S(ge),$.current&&($.current=null,v&&v(ge,"backdropClick"))},H=fn(c),U=k.useMemo(()=>({titleId:H}),[H]),B={transition:_,...I},W={transition:L,paper:E,backdrop:p,...z},K={slots:B,slotProps:W},[J,ee]=me("root",{elementType:pC,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:M,className:te(A.root,y),ref:r}),[Q,Z]=me("backdrop",{elementType:dC,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:M}),[re,ue]=me("paper",{elementType:hC,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:M,className:te(A.paper,E.className)}),[ne,X]=me("container",{elementType:fC,externalForwardedProps:K,ownerState:M,className:A.container}),[ie,Y]=me("transition",{elementType:ks,externalForwardedProps:K,ownerState:M,additionalProps:{appear:!0,in:T,timeout:N,role:"presentation"}});return s.jsx(J,{closeAfterTransition:!0,slots:{backdrop:Q},slotProps:{backdrop:{transitionDuration:N,as:d,...Z}},disableEscapeKeyDown:x,onClose:v,open:T,onClick:q,...ee,...O,children:s.jsx(ie,{...Y,children:s.jsx(ne,{onMouseDown:D,...X,children:s.jsx(re,{as:C,elevation:24,role:"dialog","aria-describedby":l,"aria-labelledby":H,"aria-modal":u,...ue,children:s.jsx(Xl.Provider,{value:U,children:h})})})})})});process.env.NODE_ENV!=="production"&&(Sn.propTypes={"aria-describedby":i.string,"aria-labelledby":i.string,"aria-modal":i.oneOfType([i.oneOf(["false","true"]),i.bool]),BackdropComponent:i.elementType,BackdropProps:i.object,children:i.node,classes:i.object,className:i.string,disableEscapeKeyDown:i.bool,fullScreen:i.bool,fullWidth:i.bool,maxWidth:i.oneOfType([i.oneOf(["xs","sm","md","lg","xl",!1]),i.string]),onClick:i.func,onClose:i.func,open:i.bool.isRequired,PaperComponent:i.elementType,PaperProps:i.object,scroll:i.oneOf(["body","paper"]),slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),container:i.oneOfType([i.func,i.object]),paper:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,container:i.elementType,paper:i.elementType,root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})]),TransitionProps:i.object});function gC(e){return de("MuiDialogActions",e)}le("MuiDialogActions",["root","spacing"]);const bC=e=>{const{classes:t,disableSpacing:r}=e;return pe({root:["root",!r&&"spacing"]},gC,t)},yC=G("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.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}}}]}),To=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1,...l}=n,c={...n,disableSpacing:a},u=bC(c);return s.jsx(yC,{className:te(u.root,o),ownerState:c,ref:r,...l})});process.env.NODE_ENV!=="production"&&(To.propTypes={children:i.node,classes:i.object,className:i.string,disableSpacing:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function mC(e){return de("MuiDialogContent",e)}le("MuiDialogContent",["root","dividers"]);function xC(e){return de("MuiDialogTitle",e)}const vC=le("MuiDialogTitle",["root"]),SC=e=>{const{classes:t,dividers:r}=e;return pe({root:["root",r&&"dividers"]},mC,t)},wC=G("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(he(({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:{[`.${vC.root} + &`]:{paddingTop:0}}}]}))),wn=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1,...l}=n,c={...n,dividers:a},u=SC(c);return s.jsx(wC,{className:te(u.root,o),ownerState:c,ref:r,...l})});process.env.NODE_ENV!=="production"&&(wn.propTypes={children:i.node,classes:i.object,className:i.string,dividers:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const CC=e=>{const{classes:t}=e;return pe({root:["root"]},xC,t)},EC=G(P,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),Cn=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiDialogTitle"}),{className:o,id:a,...l}=n,c=n,u=CC(c),{titleId:d=a}=k.useContext(Xl);return s.jsx(EC,{component:"h2",className:te(u.root,o),ownerState:c,ref:r,variant:"h6",id:a??d,...l})});process.env.NODE_ENV!=="production"&&(Cn.propTypes={children:i.node,classes:i.object,className:i.string,id:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function TC(e){return de("MuiDivider",e)}const bh=le("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),kC=e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:a,orientation:l,textAlign:c,variant:u}=e;return pe({root:["root",t&&"absolute",u,a&&"light",l==="vertical"&&"vertical",o&&"flexItem",r&&"withChildren",r&&l==="vertical"&&"withChildrenVertical",c==="right"&&l!=="vertical"&&"textAlignRight",c==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},TC,n)},OC=G("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(he(({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%"}}}]}))),PC=G("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(he(({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)`}}]}))),$e=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:l,orientation:c="horizontal",component:u=a||c==="vertical"?"div":"hr",flexItem:d=!1,light:p=!1,role:h=u!=="hr"?"separator":void 0,textAlign:y="center",variant:x="fullWidth",...g}=n,f={...n,absolute:o,component:u,flexItem:d,light:p,orientation:c,role:h,textAlign:y,variant:x},b=kC(f);return s.jsx(OC,{as:u,className:te(b.root,l),role:h,ref:r,ownerState:f,"aria-orientation":h==="separator"&&(u!=="hr"||c==="vertical")?c:void 0,...g,children:a?s.jsx(PC,{className:b.wrapper,ownerState:f,children:a}):null})});$e&&($e.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&($e.propTypes={absolute:i.bool,children:i.node,classes:i.object,className:i.string,component:i.elementType,flexItem:i.bool,light:i.bool,orientation:i.oneOf(["horizontal","vertical"]),role:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),textAlign:i.oneOf(["center","left","right"]),variant:i.oneOfType([i.oneOf(["fullWidth","inset","middle"]),i.string])});const IC=e=>{const{classes:t,disableUnderline:r,startAdornment:n,endAdornment:o,size:a,hiddenLabel:l,multiline:c}=e,u={root:["root",!r&&"underline",n&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${R(a)}`,l&&"hiddenLabel",c&&"multiline"],input:["input"]},d=pe(u,n2,t);return{...t,...d}},NC=G(Es,{shouldForwardProp:e=>ot(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ws(e,t),!r.disableUnderline&&t.underline]}})(he(({theme:e})=>{const t=e.palette.mode==="light",r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n,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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n}},[`&.${Wr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n},[`&.${Wr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:l})=>!l.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"},[`&.${Wr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wr.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):r}`,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(.${Wr.disabled}, .${Wr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Wr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(bt()).map(([l])=>({props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[l]?.main}`}}})),{props:({ownerState:l})=>l.startAdornment,style:{paddingLeft:12}},{props:({ownerState:l})=>l.endAdornment,style:{paddingRight:12}},{props:({ownerState:l})=>l.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:l,size:c})=>l.multiline&&c==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel&&l.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),_C=G(Ts,{name:"MuiFilledInput",slot:"Input",overridesResolver:Cs})(he(({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}}]}))),_s=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:a={},componentsProps:l,fullWidth:c=!1,hiddenLabel:u,inputComponent:d="input",multiline:p=!1,slotProps:h,slots:y={},type:x="text",...g}=n,f={...n,disableUnderline:o,fullWidth:c,inputComponent:d,multiline:p,type:x},b=IC(n),S={root:{ownerState:f},input:{ownerState:f}},v=h??l?nt(S,h??l):S,T=y.root??a.Root??NC,C=y.input??a.Input??_C;return s.jsx(mn,{slots:{root:T,input:C},slotProps:v,fullWidth:c,inputComponent:d,multiline:p,ref:r,type:x,...g,classes:b})});process.env.NODE_ENV!=="production"&&(_s.propTypes={autoComplete:i.string,autoFocus:i.bool,classes:i.object,color:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),componentsProps:i.shape({input:i.object,root:i.object}),defaultValue:i.any,disabled:i.bool,disableUnderline:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,hiddenLabel:i.bool,id:i.string,inputComponent:i.elementType,inputProps:i.object,inputRef:wt,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onChange:i.func,placeholder:i.string,readOnly:i.bool,required:i.bool,rows:i.oneOfType([i.number,i.string]),slotProps:i.shape({input:i.object,root:i.object}),slots:i.shape({input:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any}),_s.muiName="Input";function AC(e){return de("MuiFormControl",e)}le("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const MC=e=>{const{classes:t,margin:r,fullWidth:n}=e,o={root:["root",r!=="none"&&`margin${R(r)}`,n&&"fullWidth"]};return pe(o,AC,t)},DC=G("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${R(r.margin)}`],r.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%"}}]}),yh=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiFormControl"}),{children:o,className:a,color:l="primary",component:c="div",disabled:u=!1,error:d=!1,focused:p,fullWidth:h=!1,hiddenLabel:y=!1,margin:x="none",required:g=!1,size:f="medium",variant:b="outlined",...S}=n,v={...n,color:l,component:c,disabled:u,error:d,fullWidth:h,hiddenLabel:y,margin:x,required:g,size:f,variant:b},T=MC(v),[C,E]=k.useState(()=>{let D=!1;return o&&k.Children.forEach(o,q=>{if(!El(q,["Input","Select"]))return;const H=El(q,["Select"])?q.props.input:q;H&&Qw(H.props)&&(D=!0)}),D}),[w,I]=k.useState(()=>{let D=!1;return o&&k.Children.forEach(o,q=>{El(q,["Input","Select"])&&(Ss(q.props,!0)||Ss(q.props.inputProps,!0))&&(D=!0)}),D}),[z,_]=k.useState(!1);u&&z&&_(!1);const N=p!==void 0&&!u?p:z;let L;const O=k.useRef(!1);process.env.NODE_ENV!=="production"&&(L=()=>(O.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
169
|
-
`)),O.current=!0,()=>{O.current=!1}));const M=k.useCallback(()=>{I(!0)},[]),A=k.useCallback(()=>{I(!1)},[]),$=k.useMemo(()=>({adornedStart:C,setAdornedStart:E,color:l,disabled:u,error:d,filled:w,focused:N,fullWidth:h,hiddenLabel:y,size:f,onBlur:()=>{_(!1)},onFocus:()=>{_(!0)},onEmpty:A,onFilled:M,registerEffect:L,required:g,variant:b}),[C,l,u,d,w,N,h,y,L,A,M,g,f,b]);return s.jsx(vs.Provider,{value:$,children:s.jsx(DC,{as:c,ownerState:v,className:te(T.root,a),ref:r,...S,children:o})})});process.env.NODE_ENV!=="production"&&(yh.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,disabled:i.bool,error:i.bool,focused:i.bool,fullWidth:i.bool,hiddenLabel:i.bool,margin:i.oneOf(["dense","none","normal"]),required:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOf(["filled","outlined","standard"])});function zC(e){return de("MuiFormControlLabel",e)}const ko=le("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),$C=e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:a}=e,l={root:["root",r&&"disabled",`labelPlacement${R(n)}`,o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return pe(l,zC,t)},FC=G("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${ko.label}`]:t.label},t.root,t[`labelPlacement${R(r.labelPlacement)}`]]}})(he(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ko.disabled}`]:{cursor:"default"},[`& .${ko.label}`]:{[`&.${ko.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}}]}))),BC=G("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(he(({theme:e})=>({[`&.${ko.error}`]:{color:(e.vars||e).palette.error.main}}))),Ze=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiFormControlLabel"}),{checked:o,className:a,componentsProps:l={},control:c,disabled:u,disableTypography:d,inputRef:p,label:h,labelPlacement:y="end",name:x,onChange:g,required:f,slots:b={},slotProps:S={},value:v,...T}=n,C=Jt(),E=u??c.props.disabled??C?.disabled,w=f??c.props.required,I={disabled:E,required:w};["checked","name","onChange","value","inputRef"].forEach($=>{typeof c.props[$]>"u"&&typeof n[$]<"u"&&(I[$]=n[$])});const z=Tr({props:n,muiFormControl:C,states:["error"]}),_={...n,disabled:E,labelPlacement:y,required:w,error:z.error},N=$C(_),L={slots:b,slotProps:{...l,...S}},[O,M]=me("typography",{elementType:P,externalForwardedProps:L,ownerState:_});let A=h;return A!=null&&A.type!==P&&!d&&(A=s.jsx(O,{component:"span",...M,className:te(N.label,M?.className),children:A})),s.jsxs(FC,{className:te(N.root,a),ownerState:_,ref:r,...T,children:[k.cloneElement(c,I),w?s.jsxs("div",{children:[A,s.jsxs(BC,{ownerState:_,"aria-hidden":!0,className:N.asterisk,children:[" ","*"]})]}):A]})});process.env.NODE_ENV!=="production"&&(Ze.propTypes={checked:i.bool,classes:i.object,className:i.string,componentsProps:i.shape({typography:i.object}),control:i.element.isRequired,disabled:i.bool,disableTypography:i.bool,inputRef:wt,label:i.node,labelPlacement:i.oneOf(["bottom","end","start","top"]),name:i.string,onChange:i.func,required:i.bool,slotProps:i.shape({typography:i.oneOfType([i.func,i.object])}),slots:i.shape({typography:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.any});function jC(e){return de("MuiFormGroup",e)}le("MuiFormGroup",["root","row","error"]);const WC=e=>{const{classes:t,row:r,error:n}=e;return pe({root:["root",r&&"row",n&&"error"]},jC,t)},LC=G("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),mh=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1,...l}=n,c=Jt(),u=Tr({props:n,muiFormControl:c,states:["error"]}),d={...n,row:a,error:u.error},p=WC(d);return s.jsx(LC,{className:te(p.root,o),ownerState:d,ref:r,...l})});process.env.NODE_ENV!=="production"&&(mh.propTypes={children:i.node,classes:i.object,className:i.string,row:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function VC(e){return de("MuiFormHelperText",e)}const xh=le("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var vh;const UC=e=>{const{classes:t,contained:r,size:n,disabled:o,error:a,filled:l,focused:c,required:u}=e,d={root:["root",o&&"disabled",a&&"error",n&&`size${R(n)}`,r&&"contained",c&&"focused",l&&"filled",u&&"required"]};return pe(d,VC,t)},HC=G("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${R(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(he(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${xh.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${xh.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}}]}))),Sh=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:l="p",disabled:c,error:u,filled:d,focused:p,margin:h,required:y,variant:x,...g}=n,f=Jt(),b=Tr({props:n,muiFormControl:f,states:["variant","size","disabled","error","filled","focused","required"]}),S={...n,component:l,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 S.ownerState;const v=UC(S);return s.jsx(HC,{as:l,className:te(v.root,a),ref:r,...g,ownerState:S,children:o===" "?vh||(vh=s.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):o})});process.env.NODE_ENV!=="production"&&(Sh.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,disabled:i.bool,error:i.bool,filled:i.bool,focused:i.bool,margin:i.oneOf(["dense"]),required:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["filled","outlined","standard"]),i.string])});function qC(e){return de("MuiFormLabel",e)}const Oo=le("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),YC=e=>{const{classes:t,color:r,focused:n,disabled:o,error:a,filled:l,required:c}=e,u={root:["root",`color${R(r)}`,o&&"disabled",a&&"error",l&&"filled",n&&"focused",c&&"required"],asterisk:["asterisk",a&&"error"]};return pe(u,qC,t)},GC=G("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(he(({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(bt()).map(([t])=>({props:{color:t},style:{[`&.${Oo.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Oo.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Oo.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),KC=G("span",{name:"MuiFormLabel",slot:"Asterisk"})(he(({theme:e})=>({[`&.${Oo.error}`]:{color:(e.vars||e).palette.error.main}}))),wh=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiFormLabel"}),{children:o,className:a,color:l,component:c="label",disabled:u,error:d,filled:p,focused:h,required:y,...x}=n,g=Jt(),f=Tr({props:n,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),b={...n,color:f.color||"primary",component:c,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required},S=YC(b);return s.jsxs(GC,{as:c,ownerState:b,className:te(S.root,a),ref:r,...x,children:[o,f.required&&s.jsxs(KC,{ownerState:b,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(wh.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["error","info","primary","secondary","success","warning"]),i.string]),component:i.elementType,disabled:i.bool,error:i.bool,filled:i.bool,focused:i.bool,required:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function Jl(e){return`scale(${e}, ${e**2})`}const RC={entering:{opacity:1,transform:Jl(1)},entered:{opacity:1,transform:"none"}},Ql=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Po=k.forwardRef(function(t,r){const{addEndListener:n,appear:o=!0,children:a,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:h,onExited:y,onExiting:x,style:g,timeout:f="auto",TransitionComponent:b=Xt,...S}=t,v=jl(),T=k.useRef(),C=We(),E=k.useRef(null),w=Qe(E,bn(a),r),I=$=>D=>{if($){const q=E.current;D===void 0?$(q):$(q,D)}},z=I(p),_=I(($,D)=>{Wf($);const{duration:q,delay:H,easing:U}=fs({style:g,timeout:f,easing:l},{mode:"enter"});let B;f==="auto"?(B=C.transitions.getAutoHeightDuration($.clientHeight),T.current=B):B=q,$.style.transition=[C.transitions.create("opacity",{duration:B,delay:H}),C.transitions.create("transform",{duration:Ql?B:B*.666,delay:H,easing:U})].join(","),u&&u($,D)}),N=I(d),L=I(x),O=I($=>{const{duration:D,delay:q,easing:H}=fs({style:g,timeout:f,easing:l},{mode:"exit"});let U;f==="auto"?(U=C.transitions.getAutoHeightDuration($.clientHeight),T.current=U):U=D,$.style.transition=[C.transitions.create("opacity",{duration:U,delay:q}),C.transitions.create("transform",{duration:Ql?U:U*.666,delay:Ql?q:q||U*.333,easing:H})].join(","),$.style.opacity=0,$.style.transform=Jl(.75),h&&h($)}),M=I(y),A=$=>{f==="auto"&&v.start(T.current||0,$),n&&n(E.current,$)};return s.jsx(b,{appear:o,in:c,nodeRef:E,onEnter:_,onEntered:N,onEntering:z,onExit:O,onExited:M,onExiting:L,addEndListener:A,timeout:f==="auto"?null:f,...S,children:($,{ownerState:D,...q})=>k.cloneElement(a,{style:{opacity:0,transform:Jl(.75),visibility:$==="exited"&&!c?"hidden":void 0,...RC[$],...g,...a.props.style},ref:w,...q})})});process.env.NODE_ENV!=="production"&&(Po.propTypes={addEndListener:i.func,appear:i.bool,children:xn.isRequired,easing:i.oneOfType([i.shape({enter:i.string,exit:i.string}),i.string]),in:i.bool,onEnter:i.func,onEntered:i.func,onEntering:i.func,onExit:i.func,onExited:i.func,onExiting:i.func,style:i.object,timeout:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])}),Po&&(Po.muiSupportAuto=!0);const XC=e=>{const{classes:t,disableUnderline:r}=e,o=pe({root:["root",!r&&"underline"],input:["input"]},t2,t);return{...t,...o}},JC=G(Es,{shouldForwardProp:e=>ot(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ws(e,t),!r.disableUnderline&&t.underline]}})(he(({theme:e})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.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"},[`&.${wo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${wo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,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(.${wo.disabled}, .${wo.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${wo.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(bt()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),QC=G(Ts,{name:"MuiInput",slot:"Input",overridesResolver:Cs})({}),As=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:a={},componentsProps:l,fullWidth:c=!1,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:h={},type:y="text",...x}=n,g=XC(n),b={root:{ownerState:{disableUnderline:o}}},S=p??l?nt(p??l,b):b,v=h.root??a.Root??JC,T=h.input??a.Input??QC;return s.jsx(mn,{slots:{root:v,input:T},slotProps:S,fullWidth:c,inputComponent:u,multiline:d,ref:r,type:y,...x,classes:g})});process.env.NODE_ENV!=="production"&&(As.propTypes={autoComplete:i.string,autoFocus:i.bool,classes:i.object,color:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),componentsProps:i.shape({input:i.object,root:i.object}),defaultValue:i.any,disabled:i.bool,disableUnderline:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,id:i.string,inputComponent:i.elementType,inputProps:i.object,inputRef:wt,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onChange:i.func,placeholder:i.string,readOnly:i.bool,required:i.bool,rows:i.oneOfType([i.number,i.string]),slotProps:i.shape({input:i.object,root:i.object}),slots:i.shape({input:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any}),As.muiName="Input";function ZC(e){return de("MuiInputLabel",e)}le("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const eE=e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:a,variant:l,required:c}=e,u={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&n!=="medium"&&`size${R(n)}`,l],asterisk:[c&&"asterisk"]},d=pe(u,ZC,t);return{...t,...d}},tE=G(wh,{shouldForwardProp:e=>ot(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Oo.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(he(({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:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:n})=>t==="filled"&&r.shrink&&n==="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:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Ch=k.forwardRef(function(t,r){const n=fe({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:a,shrink:l,variant:c,className:u,...d}=n,p=Jt();let h=l;typeof h>"u"&&p&&(h=p.filled||p.focused||p.adornedStart);const y=Tr({props:n,muiFormControl:p,states:["size","variant","required","focused"]}),x={...n,disableAnimation:o,formControl:p,shrink:h,size:y.size,variant:y.variant,required:y.required,focused:y.focused},g=eE(x);return s.jsx(tE,{"data-shrink":h,ref:r,className:te(g.root,u),...d,ownerState:x,classes:g})});process.env.NODE_ENV!=="production"&&(Ch.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["error","info","primary","secondary","success","warning"]),i.string]),disableAnimation:i.bool,disabled:i.bool,error:i.bool,focused:i.bool,margin:i.oneOf(["dense"]),required:i.bool,shrink:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOf(["filled","outlined","standard"])});const Io=k.createContext({});process.env.NODE_ENV!=="production"&&(Io.displayName="ListContext");function rE(e){return de("MuiList",e)}le("MuiList",["root","padding","dense","subheader"]);const nE=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return pe({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},rE,t)},oE=G("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.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}}]}),Eh=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiList"}),{children:o,className:a,component:l="ul",dense:c=!1,disablePadding:u=!1,subheader:d,...p}=n,h=k.useMemo(()=>({dense:c}),[c]),y={...n,component:l,dense:c,disablePadding:u},x=nE(y);return s.jsx(Io.Provider,{value:h,children:s.jsxs(oE,{as:l,className:te(x.root,a),ref:r,ownerState:y,...p,children:[d,o]})})});process.env.NODE_ENV!=="production"&&(Eh.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,dense:i.bool,disablePadding:i.bool,subheader:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const Th=le("MuiListItemIcon",["root","alignItemsFlexStart"]);function iE(e){return de("MuiListItemText",e)}const En=le("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),sE=e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:a}=e;return pe({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},iE,t)},aE=G("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${En.primary}`]:t.primary},{[`& .${En.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Qf.root}:where(& .${En.primary})`]:{display:"block"},[`.${Qf.root}:where(& .${En.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Vr=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:l=!1,inset:c=!1,primary:u,primaryTypographyProps:d,secondary:p,secondaryTypographyProps:h,slots:y={},slotProps:x={},...g}=n,{dense:f}=k.useContext(Io);let b=u??o,S=p;const v={...n,disableTypography:l,inset:c,primary:!!b,secondary:!!S,dense:f},T=sE(v),C={slots:y,slotProps:{primary:d,secondary:h,...x}},[E,w]=me("root",{className:te(T.root,a),elementType:aE,externalForwardedProps:{...C,...g},ownerState:v,ref:r}),[I,z]=me("primary",{className:T.primary,elementType:P,externalForwardedProps:C,ownerState:v}),[_,N]=me("secondary",{className:T.secondary,elementType:P,externalForwardedProps:C,ownerState:v});return b!=null&&b.type!==P&&!l&&(b=s.jsx(I,{variant:f?"body2":"body1",component:z?.variant?void 0:"span",...z,children:b})),S!=null&&S.type!==P&&!l&&(S=s.jsx(_,{variant:"body2",color:"textSecondary",...N,children:S})),s.jsxs(E,{...w,children:[b,S]})});process.env.NODE_ENV!=="production"&&(Vr.propTypes={children:i.node,classes:i.object,className:i.string,disableTypography:i.bool,inset:i.bool,primary:i.node,primaryTypographyProps:i.object,secondary:i.node,secondaryTypographyProps:i.object,slotProps:i.shape({primary:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),secondary:i.oneOfType([i.func,i.object])}),slots:i.shape({primary:i.elementType,root:i.elementType,secondary:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function Zl(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function kh(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Oh(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join(""))}function No(e,t,r,n,o,a){let l=!1,c=o(e,t,t?r:!1);for(;c;){if(c===e.firstChild){if(l)return!1;l=!0}const u=n?!1:c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||!Oh(c,a)||u)c=o(e,c,r);else return c.focus(),!0}return!1}const Ph=k.forwardRef(function(t,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:l,className:c,disabledItemsFocusable:u=!1,disableListWrap:d=!1,onKeyDown:p,variant:h="selectedMenu",...y}=t,x=k.useRef(null),g=k.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});dr(()=>{o&&x.current.focus()},[o]),k.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(T,{direction:C})=>{const E=!x.current.style.width;if(T.clientHeight<x.current.clientHeight&&E){const w=`${ph(pr(T))}px`;x.current.style[C==="rtl"?"paddingLeft":"paddingRight"]=w,x.current.style.width=`calc(100% + ${w})`}return x.current}}),[]);const f=T=>{const C=x.current,E=T.key;if(T.ctrlKey||T.metaKey||T.altKey){p&&p(T);return}const I=Eo(gt(C));if(E==="ArrowDown")T.preventDefault(),No(C,I,d,u,Zl);else if(E==="ArrowUp")T.preventDefault(),No(C,I,d,u,kh);else if(E==="Home")T.preventDefault(),No(C,null,d,u,Zl);else if(E==="End")T.preventDefault(),No(C,null,d,u,kh);else if(E.length===1){const z=g.current,_=E.toLowerCase(),N=performance.now();z.keys.length>0&&(N-z.lastTime>500?(z.keys=[],z.repeating=!0,z.previousKeyMatched=!0):z.repeating&&_!==z.keys[0]&&(z.repeating=!1)),z.lastTime=N,z.keys.push(_);const L=I&&!z.repeating&&Oh(I,z);z.previousKeyMatched&&(L||No(C,I,!1,u,Zl,z))?T.preventDefault():z.previousKeyMatched=!1}p&&p(T)},b=Qe(x,r);let S=-1;k.Children.forEach(l,(T,C)=>{if(!k.isValidElement(T)){S===C&&(S+=1,S>=l.length&&(S=-1));return}process.env.NODE_ENV!=="production"&&Ml.isFragment(T)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
170
|
-
`)),T.props.disabled||(h==="selectedMenu"&&T.props.selected||S===-1)&&(S=C),S===C&&(T.props.disabled||T.props.muiSkipListHighlight||T.type.muiSkipListHighlight)&&(S+=1,S>=l.length&&(S=-1))});const v=k.Children.map(l,(T,C)=>{if(C===S){const E={};return a&&(E.autoFocus=!0),T.props.tabIndex===void 0&&h==="selectedMenu"&&(E.tabIndex=0),k.cloneElement(T,E)}return T});return s.jsx(Eh,{role:"menu",ref:b,className:c,onKeyDown:f,tabIndex:o?0:-1,...y,children:v})});process.env.NODE_ENV!=="production"&&(Ph.propTypes={autoFocus:i.bool,autoFocusItem:i.bool,children:i.node,className:i.string,disabledItemsFocusable:i.bool,disableListWrap:i.bool,onKeyDown:i.func,variant:i.oneOf(["menu","selectedMenu"])});function lE(e){return de("MuiPopover",e)}le("MuiPopover",["root","paper"]);function Ih(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Nh(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function _h(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function _o(e){return typeof e=="function"?e():e}const cE=e=>{const{classes:t}=e;return pe({root:["root"],paper:["paper"]},lE,t)},dE=G(vn,{name:"MuiPopover",slot:"Root"})({}),Ah=G(Re,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Mh=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiPopover"}),{action:o,anchorEl:a,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:p,container:h,elevation:y=8,marginThreshold:x=16,open:g,PaperProps:f={},slots:b={},slotProps:S={},transformOrigin:v={vertical:"top",horizontal:"left"},TransitionComponent:T,transitionDuration:C="auto",TransitionProps:E={},disableScrollLock:w=!1,...I}=n,z=k.useRef(),_={...n,anchorOrigin:l,anchorReference:u,elevation:y,marginThreshold:x,transformOrigin:v,TransitionComponent:T,transitionDuration:C,TransitionProps:E},N=cE(_),L=k.useCallback(()=>{if(u==="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 X=_o(a),ie=X&&X.nodeType===1?X:gt(z.current).body,Y=ie.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const ge=ie.getBoundingClientRect();process.env.NODE_ENV!=="test"&&ge.top===0&&ge.left===0&&ge.right===0&&ge.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(`
|
|
171
|
-
`))}return{top:Y.top+Ih(Y,l.vertical),left:Y.left+Nh(Y,l.horizontal)}},[a,l.horizontal,l.vertical,c,u]),O=k.useCallback(X=>({vertical:Ih(X,v.vertical),horizontal:Nh(X,v.horizontal)}),[v.horizontal,v.vertical]),M=k.useCallback(X=>{const ie={width:X.offsetWidth,height:X.offsetHeight},Y=O(ie);if(u==="none")return{top:null,left:null,transformOrigin:_h(Y)};const ge=L();let oe=ge.top-Y.vertical,ve=ge.left-Y.horizontal;const At=oe+ie.height,dt=ve+ie.width,He=pr(_o(a)),Ct=He.innerHeight-x,Lt=He.innerWidth-x;if(x!==null&&oe<x){const Ge=oe-x;oe-=Ge,Y.vertical+=Ge}else if(x!==null&&At>Ct){const Ge=At-Ct;oe-=Ge,Y.vertical+=Ge}if(process.env.NODE_ENV!=="production"&&ie.height>Ct&&ie.height&&Ct&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ie.height-Ct}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
172
|
-
`)),x!==null&&ve<x){const Ge=ve-x;ve-=Ge,Y.horizontal+=Ge}else if(dt>Lt){const Ge=dt-Lt;ve-=Ge,Y.horizontal+=Ge}return{top:`${Math.round(oe)}px`,left:`${Math.round(ve)}px`,transformOrigin:_h(Y)}},[a,u,L,O,x]),[A,$]=k.useState(g),D=k.useCallback(()=>{const X=z.current;if(!X)return;const ie=M(X);ie.top!==null&&X.style.setProperty("top",ie.top),ie.left!==null&&(X.style.left=ie.left),X.style.transformOrigin=ie.transformOrigin,$(!0)},[M]);k.useEffect(()=>(w&&window.addEventListener("scroll",D),()=>window.removeEventListener("scroll",D)),[a,w,D]);const q=()=>{D()},H=()=>{$(!1)};k.useEffect(()=>{g&&D()}),k.useImperativeHandle(o,()=>g?{updatePosition:()=>{D()}}:null,[g,D]),k.useEffect(()=>{if(!g)return;const X=If(()=>{D()}),ie=pr(_o(a));return ie.addEventListener("resize",X),()=>{X.clear(),ie.removeEventListener("resize",X)}},[a,g,D]);let U=C;const B={slots:{transition:T,...b},slotProps:{transition:E,paper:f,...S}},[W,K]=me("transition",{elementType:Po,externalForwardedProps:B,ownerState:_,getSlotProps:X=>({...X,onEntering:(ie,Y)=>{X.onEntering?.(ie,Y),q()},onExited:ie=>{X.onExited?.(ie),H()}}),additionalProps:{appear:!0,in:g}});C==="auto"&&!W.muiSupportAuto&&(U=void 0);const J=h||(a?gt(_o(a)).body:void 0),[ee,{slots:Q,slotProps:Z,...re}]=me("root",{ref:r,elementType:dE,externalForwardedProps:{...B,...I},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:b.backdrop},slotProps:{backdrop:_f(typeof S.backdrop=="function"?S.backdrop(_):S.backdrop,{invisible:!0})},container:J,open:g},ownerState:_,className:te(N.root,p)}),[ue,ne]=me("paper",{ref:z,className:N.paper,elementType:Ah,externalForwardedProps:B,shouldForwardComponentProp:!0,additionalProps:{elevation:y,style:A?void 0:{opacity:0}},ownerState:_});return s.jsx(ee,{...re,...!hs(ee)&&{slots:Q,slotProps:Z,disableScrollLock:w},children:s.jsx(W,{...K,timeout:U,children:s.jsx(ue,{...ne,children:d})})})});process.env.NODE_ENV!=="production"&&(Mh.propTypes={action:wt,anchorEl:Er(i.oneOfType([So,i.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=_o(e.anchorEl);if(t&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.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(`
|
|
159
|
+
`,RC=typeof Tc!="string"?Wl`
|
|
160
|
+
animation: ${Tc} 1.4s linear infinite;
|
|
161
|
+
`:null,qC=typeof Oc!="string"?Wl`
|
|
162
|
+
animation: ${Oc} 1.4s ease-in-out infinite;
|
|
163
|
+
`:null,YC=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,s={root:["root",r,`color${te(n)}`],svg:["svg"],track:["track"],circle:["circle",`circle${te(r)}`,o&&"circleDisableShrink"]};return ue(s,HC,t)},GC=G("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${te(r.color)}`]]}})(he(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:RC||{animation:`${Tc} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Tt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),KC=G("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),XC=G("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${te(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(he(({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:qC||{animation:`${Oc} 1.4s ease-in-out infinite`}}]}))),JC=G("circle",{name:"MuiCircularProgress",slot:"Track"})(he(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Zs=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:l=!1,enableTrackSlot:c=!1,size:d=40,style:p,thickness:u=3.6,value:h=0,variant:v="indeterminate",...g}=n,y={...n,color:s,disableShrink:l,size:d,thickness:u,value:h,variant:v,enableTrackSlot:c},f=YC(y),m={},x={},b={};if(v==="determinate"){const w=2*Math.PI*((Qt-u)/2);m.strokeDasharray=w.toFixed(3),b["aria-valuenow"]=Math.round(h),m.strokeDashoffset=`${((100-h)/100*w).toFixed(3)}px`,x.transform="rotate(-90deg)"}return a.jsx(GC,{className:se(f.root,o),style:{width:d,height:d,...x,...p},ownerState:y,ref:r,role:"progressbar",...b,...g,children:a.jsxs(KC,{className:f.svg,ownerState:y,viewBox:`${Qt/2} ${Qt/2} ${Qt} ${Qt}`,children:[c?a.jsx(JC,{className:f.track,ownerState:y,cx:Qt,cy:Qt,r:(Qt-u)/2,fill:"none",strokeWidth:u,"aria-hidden":"true"}):null,a.jsx(XC,{className:f.circle,style:m,ownerState:y,cx:Qt,cy:Qt,r:(Qt-u)/2,fill:"none",strokeWidth:u})]})})});process.env.NODE_ENV!=="production"&&(Zs.propTypes={classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","primary","secondary","error","info","success","warning"]),i.string]),disableShrink:Pr(i.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:i.bool,size:i.oneOfType([i.number,i.string]),style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),thickness:i.number,value:i.number,variant:i.oneOf(["determinate","indeterminate"])});function QC(e){return pe("MuiIconButton",e)}const zh=de("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),ZC=e=>{const{classes:t,disabled:r,color:n,edge:o,size:s,loading:l}=e,c={root:["root",l&&"loading",r&&"disabled",n!=="default"&&`color${te(n)}`,o&&`edge${te(o)}`,`size${te(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return ue(c,QC,t)},e2=G(qo,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${te(r.color)}`],r.edge&&t[`edge${te(r.edge)}`],t[`size${te(r.size)}`]]}})(he(({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}}]})),he(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Tt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Tt()).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)}}],[`&.${zh.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${zh.loading}`]:{color:"transparent"}}))),t2=G("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"}}]})),Wt=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:l,color:c="default",disabled:d=!1,disableFocusRipple:p=!1,size:u="medium",id:h,loading:v=null,loadingIndicator:g,...y}=n,f=an(h),m=g??a.jsx(Zs,{"aria-labelledby":f,color:"inherit",size:16}),x={...n,edge:o,color:c,disabled:d,disableFocusRipple:p,loading:v,loadingIndicator:m,size:u},b=ZC(x);return a.jsxs(e2,{id:v?f:h,className:se(b.root,l),centerRipple:!0,focusRipple:!p,disabled:d||v,ref:r,...y,ownerState:x,children:[typeof v=="boolean"&&a.jsx("span",{className:b.loadingWrapper,style:{display:"contents"},children:a.jsx(t2,{className:b.loadingIndicator,ownerState:x,children:v&&m})}),s]})});process.env.NODE_ENV!=="production"&&(Wt.propTypes={children:Pr(i.node,e=>T.Children.toArray(e.children).some(r=>T.isValidElement(r)&&r.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:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),i.string]),disabled:i.bool,disableFocusRipple:i.bool,disableRipple:i.bool,edge:i.oneOf(["end","start",!1]),id:i.string,loading:i.bool,loadingIndicator:i.node,size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function r2(e){return pe("MuiTypography",e)}const jh=de("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),n2={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},o2=sC(),i2=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:s,classes:l}=e,c={root:["root",s,e.align!=="inherit"&&`align${te(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return ue(c,r2,l)},s2=G("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${te(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(he(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,r])=>t!=="inherit"&&r&&typeof r=="object").map(([t,r])=>({props:{variant:t},style:r})),...Object.entries(e.palette).filter(Tt()).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${te(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}}]}))),Bh={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},P=T.forwardRef(function(t,r){const{color:n,...o}=fe({props:t,name:"MuiTypography"}),s=!n2[n],l=o2({...o,...s&&{color:n}}),{align:c="inherit",className:d,component:p,gutterBottom:u=!1,noWrap:h=!1,paragraph:v=!1,variant:g="body1",variantMapping:y=Bh,...f}=l,m={...l,align:c,color:n,className:d,component:p,gutterBottom:u,noWrap:h,paragraph:v,variant:g,variantMapping:y},x=p||(v?"p":y[g]||Bh[g])||"span",b=i2(m);return a.jsx(s2,{as:x,ref:r,className:se(b.root,d),...f,ownerState:m,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...f.style}})});process.env.NODE_ENV!=="production"&&(P.propTypes={align:i.oneOf(["center","inherit","justify","left","right"]),children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),i.string]),component:i.elementType,gutterBottom:i.bool,noWrap:i.bool,paragraph:i.bool,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),i.string]),variantMapping:i.object});function Nr(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;const s=e[t],l=o||t;return s==null?null:s&&s.nodeType!==1?new Error(`Invalid ${n} \`${l}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}var Ot="top",Vt="bottom",Ut="right",kt="left",kc="auto",Yo=[Ot,Vt,Ut,kt],jn="start",Go="end",a2="clippingParents",Lh="viewport",Ko="popper",l2="reference",Wh=Yo.reduce(function(e,t){return e.concat([t+"-"+jn,t+"-"+Go])},[]),Vh=[].concat(Yo,[kc]).reduce(function(e,t){return e.concat([t,t+"-"+jn,t+"-"+Go])},[]),c2="beforeRead",d2="read",p2="afterRead",u2="beforeMain",f2="main",h2="afterMain",g2="beforeWrite",y2="write",m2="afterWrite",b2=[c2,d2,p2,u2,f2,h2,g2,y2,m2];function ur(e){return e?(e.nodeName||"").toLowerCase():null}function Mt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function un(e){var t=Mt(e).Element;return e instanceof t||e instanceof Element}function Ht(e){var t=Mt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Pc(e){if(typeof ShadowRoot>"u")return!1;var t=Mt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function v2(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},s=t.elements[r];!Ht(s)||!ur(s)||(Object.assign(s.style,n),Object.keys(o).forEach(function(l){var c=o[l];c===!1?s.removeAttribute(l):s.setAttribute(l,c===!0?"":c)}))})}function x2(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],s=t.attributes[n]||{},l=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),c=l.reduce(function(d,p){return d[p]="",d},{});!Ht(o)||!ur(o)||(Object.assign(o.style,c),Object.keys(s).forEach(function(d){o.removeAttribute(d)}))})}}const S2={name:"applyStyles",enabled:!0,phase:"write",fn:v2,effect:x2,requires:["computeStyles"]};function fr(e){return e.split("-")[0]}var fn=Math.max,ea=Math.min,Bn=Math.round;function Ic(){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 Uh(){return!/^((?!chrome|android).)*safari/i.test(Ic())}function Ln(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,s=1;t&&Ht(e)&&(o=e.offsetWidth>0&&Bn(n.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Bn(n.height)/e.offsetHeight||1);var l=un(e)?Mt(e):window,c=l.visualViewport,d=!Uh()&&r,p=(n.left+(d&&c?c.offsetLeft:0))/o,u=(n.top+(d&&c?c.offsetTop:0))/s,h=n.width/o,v=n.height/s;return{width:h,height:v,top:u,right:p+h,bottom:u+v,left:p,x:p,y:u}}function Nc(e){var t=Ln(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Hh(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Pc(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function _r(e){return Mt(e).getComputedStyle(e)}function w2(e){return["table","td","th"].indexOf(ur(e))>=0}function Hr(e){return((un(e)?e.ownerDocument:e.document)||window.document).documentElement}function ta(e){return ur(e)==="html"?e:e.assignedSlot||e.parentNode||(Pc(e)?e.host:null)||Hr(e)}function Rh(e){return!Ht(e)||_r(e).position==="fixed"?null:e.offsetParent}function C2(e){var t=/firefox/i.test(Ic()),r=/Trident/i.test(Ic());if(r&&Ht(e)){var n=_r(e);if(n.position==="fixed")return null}var o=ta(e);for(Pc(o)&&(o=o.host);Ht(o)&&["html","body"].indexOf(ur(o))<0;){var s=_r(o);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 o;o=o.parentNode}return null}function Xo(e){for(var t=Mt(e),r=Rh(e);r&&w2(r)&&_r(r).position==="static";)r=Rh(r);return r&&(ur(r)==="html"||ur(r)==="body"&&_r(r).position==="static")?t:r||C2(e)||t}function _c(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Jo(e,t,r){return fn(e,ea(t,r))}function E2(e,t,r){var n=Jo(e,t,r);return n>r?r:n}function qh(){return{top:0,right:0,bottom:0,left:0}}function Yh(e){return Object.assign({},qh(),e)}function Gh(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var T2=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Yh(typeof t!="number"?t:Gh(t,Yo))};function O2(e){var t,r=e.state,n=e.name,o=e.options,s=r.elements.arrow,l=r.modifiersData.popperOffsets,c=fr(r.placement),d=_c(c),p=[kt,Ut].indexOf(c)>=0,u=p?"height":"width";if(!(!s||!l)){var h=T2(o.padding,r),v=Nc(s),g=d==="y"?Ot:kt,y=d==="y"?Vt:Ut,f=r.rects.reference[u]+r.rects.reference[d]-l[d]-r.rects.popper[u],m=l[d]-r.rects.reference[d],x=Xo(s),b=x?d==="y"?x.clientHeight||0:x.clientWidth||0:0,w=f/2-m/2,S=h[g],C=b-v[u]-h[y],O=b/2-v[u]/2+w,I=Jo(S,O,C),F=d;r.modifiersData[n]=(t={},t[F]=I,t.centerOffset=I-O,t)}}function k2(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Hh(t.elements.popper,o)&&(t.elements.arrow=o))}const P2={name:"arrow",enabled:!0,phase:"main",fn:O2,effect:k2,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Wn(e){return e.split("-")[1]}var I2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function N2(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Bn(r*o)/o||0,y:Bn(n*o)/o||0}}function Kh(e){var t,r=e.popper,n=e.popperRect,o=e.placement,s=e.variation,l=e.offsets,c=e.position,d=e.gpuAcceleration,p=e.adaptive,u=e.roundOffsets,h=e.isFixed,v=l.x,g=v===void 0?0:v,y=l.y,f=y===void 0?0:y,m=typeof u=="function"?u({x:g,y:f}):{x:g,y:f};g=m.x,f=m.y;var x=l.hasOwnProperty("x"),b=l.hasOwnProperty("y"),w=kt,S=Ot,C=window;if(p){var O=Xo(r),I="clientHeight",F="clientWidth";if(O===Mt(r)&&(O=Hr(r),_r(O).position!=="static"&&c==="absolute"&&(I="scrollHeight",F="scrollWidth")),O=O,o===Ot||(o===kt||o===Ut)&&s===Go){S=Vt;var D=h&&O===C&&C.visualViewport?C.visualViewport.height:O[I];f-=D-n.height,f*=d?1:-1}if(o===kt||(o===Ot||o===Vt)&&s===Go){w=Ut;var L=h&&O===C&&C.visualViewport?C.visualViewport.width:O[F];g-=L-n.width,g*=d?1:-1}}var z=Object.assign({position:c},p&&I2),k=u===!0?N2({x:g,y:f},Mt(r)):{x:g,y:f};if(g=k.x,f=k.y,d){var j;return Object.assign({},z,(j={},j[S]=b?"0":"",j[w]=x?"0":"",j.transform=(C.devicePixelRatio||1)<=1?"translate("+g+"px, "+f+"px)":"translate3d("+g+"px, "+f+"px, 0)",j))}return Object.assign({},z,(t={},t[S]=b?f+"px":"",t[w]=x?g+"px":"",t.transform="",t))}function _2(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,s=r.adaptive,l=s===void 0?!0:s,c=r.roundOffsets,d=c===void 0?!0:c,p={placement:fr(t.placement),variation:Wn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Kh(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Kh(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 A2={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_2,data:{}};var ra={passive:!0};function M2(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,s=o===void 0?!0:o,l=n.resize,c=l===void 0?!0:l,d=Mt(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&p.forEach(function(u){u.addEventListener("scroll",r.update,ra)}),c&&d.addEventListener("resize",r.update,ra),function(){s&&p.forEach(function(u){u.removeEventListener("scroll",r.update,ra)}),c&&d.removeEventListener("resize",r.update,ra)}}const $2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:M2,data:{}};var D2={left:"right",right:"left",bottom:"top",top:"bottom"};function na(e){return e.replace(/left|right|bottom|top/g,function(t){return D2[t]})}var F2={start:"end",end:"start"};function Xh(e){return e.replace(/start|end/g,function(t){return F2[t]})}function Ac(e){var t=Mt(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Mc(e){return Ln(Hr(e)).left+Ac(e).scrollLeft}function z2(e,t){var r=Mt(e),n=Hr(e),o=r.visualViewport,s=n.clientWidth,l=n.clientHeight,c=0,d=0;if(o){s=o.width,l=o.height;var p=Uh();(p||!p&&t==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}return{width:s,height:l,x:c+Mc(e),y:d}}function j2(e){var t,r=Hr(e),n=Ac(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=fn(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=fn(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-n.scrollLeft+Mc(e),d=-n.scrollTop;return _r(o||r).direction==="rtl"&&(c+=fn(r.clientWidth,o?o.clientWidth:0)-s),{width:s,height:l,x:c,y:d}}function $c(e){var t=_r(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Jh(e){return["html","body","#document"].indexOf(ur(e))>=0?e.ownerDocument.body:Ht(e)&&$c(e)?e:Jh(ta(e))}function Qo(e,t){var r;t===void 0&&(t=[]);var n=Jh(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),s=Mt(n),l=o?[s].concat(s.visualViewport||[],$c(n)?n:[]):n,c=t.concat(l);return o?c:c.concat(Qo(ta(l)))}function Dc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function B2(e,t){var r=Ln(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Qh(e,t,r){return t===Lh?Dc(z2(e,r)):un(t)?B2(t,r):Dc(j2(Hr(e)))}function L2(e){var t=Qo(ta(e)),r=["absolute","fixed"].indexOf(_r(e).position)>=0,n=r&&Ht(e)?Xo(e):e;return un(n)?t.filter(function(o){return un(o)&&Hh(o,n)&&ur(o)!=="body"}):[]}function W2(e,t,r,n){var o=t==="clippingParents"?L2(e):[].concat(t),s=[].concat(o,[r]),l=s[0],c=s.reduce(function(d,p){var u=Qh(e,p,n);return d.top=fn(u.top,d.top),d.right=ea(u.right,d.right),d.bottom=ea(u.bottom,d.bottom),d.left=fn(u.left,d.left),d},Qh(e,l,n));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Zh(e){var t=e.reference,r=e.element,n=e.placement,o=n?fr(n):null,s=n?Wn(n):null,l=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,d;switch(o){case Ot:d={x:l,y:t.y-r.height};break;case Vt:d={x:l,y:t.y+t.height};break;case Ut:d={x:t.x+t.width,y:c};break;case kt:d={x:t.x-r.width,y:c};break;default:d={x:t.x,y:t.y}}var p=o?_c(o):null;if(p!=null){var u=p==="y"?"height":"width";switch(s){case jn:d[p]=d[p]-(t[u]/2-r[u]/2);break;case Go:d[p]=d[p]+(t[u]/2-r[u]/2);break}}return d}function Zo(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,s=r.strategy,l=s===void 0?e.strategy:s,c=r.boundary,d=c===void 0?a2:c,p=r.rootBoundary,u=p===void 0?Lh:p,h=r.elementContext,v=h===void 0?Ko:h,g=r.altBoundary,y=g===void 0?!1:g,f=r.padding,m=f===void 0?0:f,x=Yh(typeof m!="number"?m:Gh(m,Yo)),b=v===Ko?l2:Ko,w=e.rects.popper,S=e.elements[y?b:v],C=W2(un(S)?S:S.contextElement||Hr(e.elements.popper),d,u,l),O=Ln(e.elements.reference),I=Zh({reference:O,element:w,placement:o}),F=Dc(Object.assign({},w,I)),D=v===Ko?F:O,L={top:C.top-D.top+x.top,bottom:D.bottom-C.bottom+x.bottom,left:C.left-D.left+x.left,right:D.right-C.right+x.right},z=e.modifiersData.offset;if(v===Ko&&z){var k=z[o];Object.keys(L).forEach(function(j){var _=[Ut,Vt].indexOf(j)>=0?1:-1,M=[Ot,Vt].indexOf(j)>=0?"y":"x";L[j]+=k[M]*_})}return L}function V2(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,s=r.rootBoundary,l=r.padding,c=r.flipVariations,d=r.allowedAutoPlacements,p=d===void 0?Vh:d,u=Wn(n),h=u?c?Wh:Wh.filter(function(y){return Wn(y)===u}):Yo,v=h.filter(function(y){return p.indexOf(y)>=0});v.length===0&&(v=h);var g=v.reduce(function(y,f){return y[f]=Zo(e,{placement:f,boundary:o,rootBoundary:s,padding:l})[fr(f)],y},{});return Object.keys(g).sort(function(y,f){return g[y]-g[f]})}function U2(e){if(fr(e)===kc)return[];var t=na(e);return[Xh(e),t,Xh(t)]}function H2(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,s=o===void 0?!0:o,l=r.altAxis,c=l===void 0?!0:l,d=r.fallbackPlacements,p=r.padding,u=r.boundary,h=r.rootBoundary,v=r.altBoundary,g=r.flipVariations,y=g===void 0?!0:g,f=r.allowedAutoPlacements,m=t.options.placement,x=fr(m),b=x===m,w=d||(b||!y?[na(m)]:U2(m)),S=[m].concat(w).reduce(function(Q,Y){return Q.concat(fr(Y)===kc?V2(t,{placement:Y,boundary:u,rootBoundary:h,padding:p,flipVariations:y,allowedAutoPlacements:f}):Y)},[]),C=t.rects.reference,O=t.rects.popper,I=new Map,F=!0,D=S[0],L=0;L<S.length;L++){var z=S[L],k=fr(z),j=Wn(z)===jn,_=[Ot,Vt].indexOf(k)>=0,M=_?"width":"height",N=Zo(t,{placement:z,boundary:u,rootBoundary:h,altBoundary:v,padding:p}),A=_?j?Ut:kt:j?Vt:Ot;C[M]>O[M]&&(A=na(A));var W=na(A),H=[];if(s&&H.push(N[k]<=0),c&&H.push(N[A]<=0,N[W]<=0),H.every(function(Q){return Q})){D=z,F=!1;break}I.set(z,H)}if(F)for(var B=y?3:1,U=function(Y){var K=S.find(function(ee){var oe=I.get(ee);if(oe)return oe.slice(0,Y).every(function(ae){return ae})});if(K)return D=K,"break"},X=B;X>0;X--){var J=U(X);if(J==="break")break}t.placement!==D&&(t.modifiersData[n]._skip=!0,t.placement=D,t.reset=!0)}}const R2={name:"flip",enabled:!0,phase:"main",fn:H2,requiresIfExists:["offset"],data:{_skip:!1}};function eg(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function tg(e){return[Ot,Ut,Vt,kt].some(function(t){return e[t]>=0})}function q2(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,l=Zo(t,{elementContext:"reference"}),c=Zo(t,{altBoundary:!0}),d=eg(l,n),p=eg(c,o,s),u=tg(d),h=tg(p);t.modifiersData[r]={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 Y2={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:q2};function G2(e,t,r){var n=fr(e),o=[kt,Ot].indexOf(n)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=s[0],c=s[1];return l=l||0,c=(c||0)*o,[kt,Ut].indexOf(n)>=0?{x:c,y:l}:{x:l,y:c}}function K2(e){var t=e.state,r=e.options,n=e.name,o=r.offset,s=o===void 0?[0,0]:o,l=Vh.reduce(function(u,h){return u[h]=G2(h,t.rects,s),u},{}),c=l[t.placement],d=c.x,p=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=p),t.modifiersData[n]=l}const X2={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:K2};function J2(e){var t=e.state,r=e.name;t.modifiersData[r]=Zh({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Q2={name:"popperOffsets",enabled:!0,phase:"read",fn:J2,data:{}};function Z2(e){return e==="x"?"y":"x"}function eE(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,s=o===void 0?!0:o,l=r.altAxis,c=l===void 0?!1:l,d=r.boundary,p=r.rootBoundary,u=r.altBoundary,h=r.padding,v=r.tether,g=v===void 0?!0:v,y=r.tetherOffset,f=y===void 0?0:y,m=Zo(t,{boundary:d,rootBoundary:p,padding:h,altBoundary:u}),x=fr(t.placement),b=Wn(t.placement),w=!b,S=_c(x),C=Z2(S),O=t.modifiersData.popperOffsets,I=t.rects.reference,F=t.rects.popper,D=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,L=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(O){if(s){var j,_=S==="y"?Ot:kt,M=S==="y"?Vt:Ut,N=S==="y"?"height":"width",A=O[S],W=A+m[_],H=A-m[M],B=g?-F[N]/2:0,U=b===jn?I[N]:F[N],X=b===jn?-F[N]:-I[N],J=t.elements.arrow,Q=g&&J?Nc(J):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:qh(),K=Y[_],ee=Y[M],oe=Jo(0,I[N],Q[N]),ae=w?I[N]/2-B-oe-K-L.mainAxis:U-oe-K-L.mainAxis,Z=w?-I[N]/2+B+oe+ee+L.mainAxis:X+oe+ee+L.mainAxis,re=t.elements.arrow&&Xo(t.elements.arrow),q=re?S==="y"?re.clientTop||0:re.clientLeft||0:0,ce=(j=z?.[S])!=null?j:0,ie=A+ae-ce-q,ye=A+Z-ce,Le=Jo(g?ea(W,ie):W,A,g?fn(H,ye):H);O[S]=Le,k[S]=Le-A}if(c){var Oe,ke=S==="x"?Ot:kt,Ce=S==="x"?Vt:Ut,Ve=O[C],Ne=C==="y"?"height":"width",ne=Ve+m[ke],tt=Ve-m[Ce],_e=[Ot,kt].indexOf(x)!==-1,Zt=(Oe=z?.[C])!=null?Oe:0,ot=_e?ne:Ve-I[Ne]-F[Ne]-Zt+L.altAxis,lt=_e?Ve+I[Ne]+F[Ne]-Zt-L.altAxis:tt,er=g&&_e?E2(ot,Ve,lt):Jo(g?ot:ne,Ve,g?lt:tt);O[C]=er,k[C]=er-Ve}t.modifiersData[n]=k}}const tE={name:"preventOverflow",enabled:!0,phase:"main",fn:eE,requiresIfExists:["offset"]};function rE(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function nE(e){return e===Mt(e)||!Ht(e)?Ac(e):rE(e)}function oE(e){var t=e.getBoundingClientRect(),r=Bn(t.width)/e.offsetWidth||1,n=Bn(t.height)/e.offsetHeight||1;return r!==1||n!==1}function iE(e,t,r){r===void 0&&(r=!1);var n=Ht(t),o=Ht(t)&&oE(t),s=Hr(t),l=Ln(e,o,r),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(n||!n&&!r)&&((ur(t)!=="body"||$c(s))&&(c=nE(t)),Ht(t)?(d=Ln(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=Mc(s))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function sE(e){var t=new Map,r=new Set,n=[];e.forEach(function(s){t.set(s.name,s)});function o(s){r.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(c){if(!r.has(c)){var d=t.get(c);d&&o(d)}}),n.push(s)}return e.forEach(function(s){r.has(s.name)||o(s)}),n}function aE(e){var t=sE(e);return b2.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function lE(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function cE(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var rg={placement:"bottom",modifiers:[],strategy:"absolute"};function ng(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function dE(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,s=o===void 0?rg:o;return function(c,d,p){p===void 0&&(p=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},rg,s),modifiersData:{},elements:{reference:c,popper:d},attributes:{},styles:{}},h=[],v=!1,g={state:u,setOptions:function(x){var b=typeof x=="function"?x(u.options):x;f(),u.options=Object.assign({},s,u.options,b),u.scrollParents={reference:un(c)?Qo(c):c.contextElement?Qo(c.contextElement):[],popper:Qo(d)};var w=aE(cE([].concat(n,u.options.modifiers)));return u.orderedModifiers=w.filter(function(S){return S.enabled}),y(),g.update()},forceUpdate:function(){if(!v){var x=u.elements,b=x.reference,w=x.popper;if(ng(b,w)){u.rects={reference:iE(b,Xo(w),u.options.strategy==="fixed"),popper:Nc(w)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(L){return u.modifiersData[L.name]=Object.assign({},L.data)});for(var S=0;S<u.orderedModifiers.length;S++){if(u.reset===!0){u.reset=!1,S=-1;continue}var C=u.orderedModifiers[S],O=C.fn,I=C.options,F=I===void 0?{}:I,D=C.name;typeof O=="function"&&(u=O({state:u,options:F,name:D,instance:g})||u)}}}},update:lE(function(){return new Promise(function(m){g.forceUpdate(),m(u)})}),destroy:function(){f(),v=!0}};if(!ng(c,d))return g;g.setOptions(p).then(function(m){!v&&p.onFirstUpdate&&p.onFirstUpdate(m)});function y(){u.orderedModifiers.forEach(function(m){var x=m.name,b=m.options,w=b===void 0?{}:b,S=m.effect;if(typeof S=="function"){var C=S({state:u,name:x,instance:g,options:w}),O=function(){};h.push(C||O)}})}function f(){h.forEach(function(m){return m()}),h=[]}return g}}var pE=[$2,Q2,A2,S2,X2,R2,tE,P2,Y2],uE=dE({defaultModifiers:pE});function og(e){const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...s}=e,l=o?{}:Ih(r,n),{props:c,internalRef:d}=_h({...s,externalSlotProps:l}),p=Je(d,l?.ref,e.additionalProps?.ref);return Ph(t,{...c,ref:p},n)}function hn(e){return parseInt(T.version,10)>=19?e?.props?.ref||null:e?.ref||null}function fE(e){return typeof e=="function"?e():e}const ei=T.forwardRef(function(t,r){const{children:n,container:o,disablePortal:s=!1}=t,[l,c]=T.useState(null),d=Je(T.isValidElement(n)?hn(n):null,r);if(Xt(()=>{s||c(fE(o)||document.body)},[o,s]),Xt(()=>{if(l&&!s)return mh(r,l),()=>{mh(r,null)}},[r,l,s]),s){if(T.isValidElement(n)){const p={ref:d};return T.cloneElement(n,p)}return n}return l&&xy.createPortal(n,l)});process.env.NODE_ENV!=="production"&&(ei.propTypes={children:i.node,container:i.oneOfType([Nr,i.func]),disablePortal:i.bool}),process.env.NODE_ENV!=="production"&&(ei.propTypes=ic(ei.propTypes));function hE(e){return pe("MuiPopper",e)}de("MuiPopper",["root"]);function gE(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 oa(e){return typeof e=="function"?e():e}function ia(e){return e.nodeType!==void 0}function yE(e){return!ia(e)}const mE=e=>{const{classes:t}=e;return ue({root:["root"]},hE,t)},bE={},vE=T.forwardRef(function(t,r){const{anchorEl:n,children:o,direction:s,disablePortal:l,modifiers:c,open:d,placement:p,popperOptions:u,popperRef:h,slotProps:v={},slots:g={},TransitionProps:y,ownerState:f,...m}=t,x=T.useRef(null),b=Je(x,r),w=T.useRef(null),S=Je(w,h),C=T.useRef(S);Xt(()=>{C.current=S},[S]),T.useImperativeHandle(h,()=>w.current,[]);const O=gE(p,s),[I,F]=T.useState(O),[D,L]=T.useState(oa(n));T.useEffect(()=>{w.current&&w.current.forceUpdate()}),T.useEffect(()=>{n&&L(oa(n))},[n]),Xt(()=>{if(!D||!d)return;const M=W=>{F(W.placement)};if(process.env.NODE_ENV!=="production"&&D&&ia(D)&&D.nodeType===1){const W=D.getBoundingClientRect();process.env.NODE_ENV!=="test"&&W.top===0&&W.left===0&&W.right===0&&W.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 N=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{M(W)}}];c!=null&&(N=N.concat(c)),u&&u.modifiers!=null&&(N=N.concat(u.modifiers));const A=uE(D,x.current,{placement:O,...u,modifiers:N});return C.current(A),()=>{A.destroy(),C.current(null)}},[D,l,c,d,u,O]);const z={placement:I};y!==null&&(z.TransitionProps=y);const k=mE(t),j=g.root??"div",_=og({elementType:j,externalSlotProps:v.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:b},ownerState:t,className:k.root});return a.jsx(j,{..._,children:typeof o=="function"?o(z):o})}),ig=T.forwardRef(function(t,r){const{anchorEl:n,children:o,container:s,direction:l="ltr",disablePortal:c=!1,keepMounted:d=!1,modifiers:p,open:u,placement:h="bottom",popperOptions:v=bE,popperRef:g,style:y,transition:f=!1,slotProps:m={},slots:x={},...b}=t,[w,S]=T.useState(!0),C=()=>{S(!1)},O=()=>{S(!0)};if(!d&&!u&&(!f||w))return null;let I;if(s)I=s;else if(n){const L=oa(n);I=L&&ia(L)?gt(L).body:gt(null).body}const F=!u&&d&&(!f||w)?"none":void 0,D=f?{in:u,onEnter:C,onExited:O}:void 0;return a.jsx(ei,{disablePortal:c,container:I,children:a.jsx(vE,{anchorEl:n,direction:l,disablePortal:c,modifiers:p,ref:r,open:f?!w:u,placement:h,popperOptions:v,popperRef:g,slotProps:m,slots:x,...b,style:{position:"fixed",top:0,left:0,display:F,...y},TransitionProps:D,children:o})})});process.env.NODE_ENV!=="production"&&(ig.propTypes={anchorEl:Pr(i.oneOfType([Nr,i.object,i.func]),e=>{if(e.open){const t=oa(e.anchorEl);if(t&&ia(t)&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.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
|
+
`))}else if(!t||typeof t.getBoundingClientRect!="function"||yE(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:i.oneOfType([i.node,i.func]),container:i.oneOfType([Nr,i.func]),direction:i.oneOf(["ltr","rtl"]),disablePortal:i.bool,keepMounted:i.bool,modifiers:i.arrayOf(i.shape({data:i.object,effect:i.func,enabled:i.bool,fn:i.func,name:i.any,options:i.object,phase:i.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:i.arrayOf(i.string),requiresIfExists:i.arrayOf(i.string)})),open:i.bool.isRequired,placement:i.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:i.shape({modifiers:i.array,onFirstUpdate:i.func,placement:i.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:i.oneOf(["absolute","fixed"])}),popperRef:vt,slotProps:i.shape({root:i.oneOfType([i.func,i.object])}),slots:i.shape({root:i.elementType}),transition:i.bool});const xE=G(ig,{name:"MuiPopper",slot:"Root"})({}),Fc=T.forwardRef(function(t,r){const n=sc(),o=fe({props:t,name:"MuiPopper"}),{anchorEl:s,component:l,components:c,componentsProps:d,container:p,disablePortal:u,keepMounted:h,modifiers:v,open:g,placement:y,popperOptions:f,popperRef:m,transition:x,slots:b,slotProps:w,...S}=o,C=b?.root??c?.Root,O={anchorEl:s,container:p,disablePortal:u,keepMounted:h,modifiers:v,open:g,placement:y,popperOptions:f,popperRef:m,transition:x,...S};return a.jsx(xE,{as:l,direction:n?"rtl":"ltr",slots:{root:C},slotProps:w??d,...O,ref:r})});process.env.NODE_ENV!=="production"&&(Fc.propTypes={anchorEl:i.oneOfType([Nr,i.object,i.func]),children:i.oneOfType([i.node,i.func]),component:i.elementType,components:i.shape({Root:i.elementType}),componentsProps:i.shape({root:i.oneOfType([i.func,i.object])}),container:i.oneOfType([Nr,i.func]),disablePortal:i.bool,keepMounted:i.bool,modifiers:i.arrayOf(i.shape({data:i.object,effect:i.func,enabled:i.bool,fn:i.func,name:i.any,options:i.object,phase:i.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:i.arrayOf(i.string),requiresIfExists:i.arrayOf(i.string)})),open:i.bool.isRequired,placement:i.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:i.shape({modifiers:i.array,onFirstUpdate:i.func,placement:i.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:i.oneOf(["absolute","fixed"])}),popperRef:vt,slotProps:i.shape({root:i.oneOfType([i.func,i.object])}),slots:i.shape({root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),transition:i.bool});function sa(e){return parseInt(e,10)||0}const SE={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function wE(e){for(const t in e)return!1;return!0}function sg(e){return wE(e)||e.outerHeightStyle===0&&!e.overflowing}const ag=T.forwardRef(function(t,r){const{onChange:n,maxRows:o,minRows:s=1,style:l,value:c,...d}=t,{current:p}=T.useRef(c!=null),u=T.useRef(null),h=Je(r,u),v=T.useRef(null),g=T.useRef(null),y=T.useCallback(()=>{const w=u.current,S=g.current;if(!w||!S)return;const O=kr(w).getComputedStyle(w);if(O.width==="0px")return{outerHeightStyle:0,overflowing:!1};S.style.width=O.width,S.value=w.value||t.placeholder||"x",S.value.slice(-1)===`
|
|
168
|
+
`&&(S.value+=" ");const I=O.boxSizing,F=sa(O.paddingBottom)+sa(O.paddingTop),D=sa(O.borderBottomWidth)+sa(O.borderTopWidth),L=S.scrollHeight;S.value="x";const z=S.scrollHeight;let k=L;s&&(k=Math.max(Number(s)*z,k)),o&&(k=Math.min(Number(o)*z,k)),k=Math.max(k,z);const j=k+(I==="border-box"?F+D:0),_=Math.abs(k-L)<=1;return{outerHeightStyle:j,overflowing:_}},[o,s,t.placeholder]),f=Bt(()=>{const w=u.current,S=y();if(!w||!S||sg(S))return!1;const C=S.outerHeightStyle;return v.current!=null&&v.current!==C}),m=T.useCallback(()=>{const w=u.current,S=y();if(!w||!S||sg(S))return;const C=S.outerHeightStyle;v.current!==C&&(v.current=C,w.style.height=`${C}px`),w.style.overflow=S.overflowing?"hidden":""},[y]),x=T.useRef(-1);Xt(()=>{const w=yh(m),S=u?.current;if(!S)return;const C=kr(S);C.addEventListener("resize",w);let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(()=>{f()&&(O.unobserve(S),cancelAnimationFrame(x.current),m(),x.current=requestAnimationFrame(()=>{O.observe(S)}))}),O.observe(S)),()=>{w.clear(),cancelAnimationFrame(x.current),C.removeEventListener("resize",w),O&&O.disconnect()}},[y,m,f]),Xt(()=>{m()});const b=w=>{p||m();const S=w.target,C=S.value.length,O=S.value.endsWith(`
|
|
169
|
+
`),I=S.selectionStart===C;O&&I&&S.setSelectionRange(C,C),n&&n(w)};return a.jsxs(T.Fragment,{children:[a.jsx("textarea",{value:c,onChange:b,ref:h,rows:s,style:l,...d}),a.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:g,tabIndex:-1,style:{...SE.shadow,...l,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(ag.propTypes={className:i.string,maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),onChange:i.func,placeholder:i.string,style:i.object,value:i.oneOfType([i.arrayOf(i.string),i.number,i.string])});function Rr({props:e,states:t,muiFormControl:r}){return t.reduce((n,o)=>(n[o]=e[o],r&&typeof e[o]>"u"&&(n[o]=r[o]),n),{})}const aa=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(aa.displayName="FormControlContext");function hr(){return T.useContext(aa)}function lg(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function la(e,t=!1){return e&&(lg(e.value)&&e.value!==""||t&&lg(e.defaultValue)&&e.defaultValue!=="")}function CE(e){return e.startAdornment}function EE(e){return pe("MuiInputBase",e)}const Vn=de("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var cg;const ca=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${te(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},da=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},TE=e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:s,focused:l,formControl:c,fullWidth:d,hiddenLabel:p,multiline:u,readOnly:h,size:v,startAdornment:g,type:y}=e,f={root:["root",`color${te(r)}`,n&&"disabled",o&&"error",d&&"fullWidth",l&&"focused",c&&"formControl",v&&v!=="medium"&&`size${te(v)}`,u&&"multiline",g&&"adornedStart",s&&"adornedEnd",p&&"hiddenLabel",h&&"readOnly"],input:["input",n&&"disabled",y==="search"&&"inputTypeSearch",u&&"inputMultiline",v==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",g&&"inputAdornedStart",s&&"inputAdornedEnd",h&&"readOnly"]};return ue(f,EE,t)},pa=G("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ca})(he(({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",[`&.${Vn.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:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),ua=G("input",{name:"MuiInputBase",slot:"Input",overridesResolver:da})(he(({theme:e})=>{const t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},n={opacity:"0 !important"},o=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":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Vn.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Vn.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"}}]}})),dg=iC({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),ti=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:l,className:c,color:d,components:p={},componentsProps:u={},defaultValue:h,disabled:v,disableInjectingGlobalStyles:g,endAdornment:y,error:f,fullWidth:m=!1,id:x,inputComponent:b="input",inputProps:w={},inputRef:S,margin:C,maxRows:O,minRows:I,multiline:F=!1,name:D,onBlur:L,onChange:z,onClick:k,onFocus:j,onKeyDown:_,onKeyUp:M,placeholder:N,readOnly:A,renderSuffix:W,rows:H,size:B,slotProps:U={},slots:X={},startAdornment:J,type:Q="text",value:Y,...K}=n,ee=w.value!=null?w.value:Y,{current:oe}=T.useRef(ee!=null),ae=T.useRef(),Z=T.useCallback(xe=>{process.env.NODE_ENV!=="production"&&xe&&xe.nodeName!=="INPUT"&&!xe.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
|
+
`))},[]),re=Je(ae,S,w.ref,Z),[q,ce]=T.useState(!1),ie=hr();process.env.NODE_ENV!=="production"&&T.useEffect(()=>{if(ie)return ie.registerEffect()},[ie]);const ye=Rr({props:n,muiFormControl:ie,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ye.focused=ie?ie.focused:q,T.useEffect(()=>{!ie&&v&&q&&(ce(!1),L&&L())},[ie,v,q,L]);const Le=ie&&ie.onFilled,Oe=ie&&ie.onEmpty,ke=T.useCallback(xe=>{la(xe)?Le&&Le():Oe&&Oe()},[Le,Oe]);Xt(()=>{oe&&ke({value:ee})},[ee,ke,oe]);const Ce=xe=>{j&&j(xe),w.onFocus&&w.onFocus(xe),ie&&ie.onFocus?ie.onFocus(xe):ce(!0)},Ve=xe=>{L&&L(xe),w.onBlur&&w.onBlur(xe),ie&&ie.onBlur?ie.onBlur(xe):ce(!1)},Ne=(xe,...rr)=>{if(!oe){const ct=xe.target||ae.current;if(ct==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.":ir(1));ke({value:ct.value})}w.onChange&&w.onChange(xe,...rr),z&&z(xe,...rr)};T.useEffect(()=>{ke(ae.current)},[]);const ne=xe=>{ae.current&&xe.currentTarget===xe.target&&ae.current.focus(),k&&k(xe)};let tt=b,_e=w;F&&tt==="input"&&(H?(process.env.NODE_ENV!=="production"&&(I||O)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),_e={type:void 0,minRows:H,maxRows:H,..._e}):_e={type:void 0,maxRows:O,minRows:I,..._e},tt=ag);const Zt=xe=>{ke(xe.animationName==="mui-auto-fill-cancel"?ae.current:{value:"x"})};T.useEffect(()=>{ie&&ie.setAdornedStart(!!J)},[ie,J]);const ot={...n,color:ye.color||"primary",disabled:ye.disabled,endAdornment:y,error:ye.error,focused:ye.focused,formControl:ie,fullWidth:m,hiddenLabel:ye.hiddenLabel,multiline:F,size:ye.size,startAdornment:J,type:Q},lt=TE(ot),er=X.root||p.Root||pa,tr=U.root||u.root||{},Dr=X.input||p.Input||ua;return _e={..._e,...U.input??u.input},a.jsxs(T.Fragment,{children:[!g&&typeof dg=="function"&&(cg||(cg=a.jsx(dg,{}))),a.jsxs(er,{...tr,ref:r,onClick:ne,...K,...!Ks(er)&&{ownerState:{...ot,...tr.ownerState}},className:se(lt.root,tr.className,c,A&&"MuiInputBase-readOnly"),children:[J,a.jsx(aa.Provider,{value:null,children:a.jsx(Dr,{"aria-invalid":ye.error,"aria-describedby":o,autoComplete:s,autoFocus:l,defaultValue:h,disabled:ye.disabled,id:x,onAnimationStart:Zt,name:D,placeholder:N,readOnly:A,required:ye.required,rows:H,value:ee,onKeyDown:_,onKeyUp:M,type:Q,..._e,...!Ks(Dr)&&{as:tt,ownerState:{...ot,..._e.ownerState}},ref:re,className:se(lt.input,_e.className,A&&"MuiInputBase-readOnly"),onBlur:Ve,onChange:Ne,onFocus:Ce})}),y,W?W({...ye,startAdornment:J}):null]})]})});process.env.NODE_ENV!=="production"&&(ti.propTypes={"aria-describedby":i.string,autoComplete:i.string,autoFocus:i.bool,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),componentsProps:i.shape({input:i.object,root:i.object}),defaultValue:i.any,disabled:i.bool,disableInjectingGlobalStyles:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,id:i.string,inputComponent:wc,inputProps:i.object,inputRef:vt,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onClick:i.func,onFocus:i.func,onInvalid:i.func,onKeyDown:i.func,onKeyUp:i.func,placeholder:i.string,readOnly:i.bool,renderSuffix:i.func,required:i.bool,rows:i.oneOfType([i.number,i.string]),size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({input:i.object,root:i.object}),slots:i.shape({input:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any});function OE(e){return pe("MuiInput",e)}const ri={...Vn,...de("MuiInput",["root","underline","input"])};function kE(e){return pe("MuiOutlinedInput",e)}const gr={...Vn,...de("MuiOutlinedInput",["root","notchedOutline","input"])};function PE(e){return pe("MuiFilledInput",e)}const gn={...Vn,...de("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},IE=ht(a.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),NE=ht(a.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 _E(e){return pe("MuiAvatar",e)}de("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const AE=e=>{const{classes:t,variant:r,colorDefault:n}=e;return ue({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},_E,t)},ME=G("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(he(({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]})}}}]}))),$E=G("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),DE=G(NE,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function FE({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[o,s]=T.useState(!1);return T.useEffect(()=>{if(!r&&!n)return;s(!1);let l=!0;const c=new Image;return c.onload=()=>{l&&s("loaded")},c.onerror=()=>{l&&s("error")},c.crossOrigin=e,c.referrerPolicy=t,c.src=r,n&&(c.srcset=n),()=>{l=!1}},[e,t,r,n]),o}const ni=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiAvatar"}),{alt:o,children:s,className:l,component:c="div",slots:d={},slotProps:p={},imgProps:u,sizes:h,src:v,srcSet:g,variant:y="circular",...f}=n;let m=null;const x={...n,component:c,variant:y},b=FE({...u,...typeof p.img=="function"?p.img(x):p.img,src:v,srcSet:g}),w=v||g,S=w&&b!=="error";x.colorDefault=!S,delete x.ownerState;const C=AE(x),[O,I]=ge("root",{ref:r,className:se(C.root,l),elementType:ME,externalForwardedProps:{slots:d,slotProps:p,component:c,...f},ownerState:x}),[F,D]=ge("img",{className:C.img,elementType:$E,externalForwardedProps:{slots:d,slotProps:{img:{...u,...p.img}}},additionalProps:{alt:o,src:v,srcSet:g,sizes:h},ownerState:x}),[L,z]=ge("fallback",{className:C.fallback,elementType:DE,externalForwardedProps:{slots:d,slotProps:p},shouldForwardComponentProp:!0,ownerState:x});return S?m=a.jsx(F,{...D}):s||s===0?m=s:w&&o?m=o[0]:m=a.jsx(L,{...z}),a.jsx(O,{...I,children:m})});process.env.NODE_ENV!=="production"&&(ni.propTypes={alt:i.string,children:i.node,classes:i.object,className:i.string,component:i.elementType,imgProps:i.object,sizes:i.string,slotProps:i.shape({fallback:i.oneOfType([i.func,i.object]),img:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({fallback:i.elementType,img:i.elementType,root:i.elementType}),src:i.string,srcSet:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["circular","rounded","square"]),i.string])});function zE(e){const{prototype:t={}}=e;return!!t.isReactComponent}function pg(e,t,r,n,o){const s=e[t],l=o||t;if(s==null||typeof window>"u")return null;let c;const d=s.type;return typeof d=="function"&&!zE(d)&&(c="Did you accidentally use a plain function component for an element instead?"),c!==void 0?new Error(`Invalid ${n} \`${l}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const yn=Pr(i.element,pg);yn.isRequired=Pr(i.element.isRequired,pg);const jE={entering:{opacity:1},entered:{opacity:1}},fa=T.forwardRef(function(t,r){const n=Ge(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:s,appear:l=!0,children:c,easing:d,in:p,onEnter:u,onEntered:h,onEntering:v,onExit:g,onExited:y,onExiting:f,style:m,timeout:x=o,TransitionComponent:b=pr,...w}=t,S=T.useRef(null),C=Je(S,hn(c),r),O=_=>M=>{if(_){const N=S.current;M===void 0?_(N):_(N,M)}},I=O(v),F=O((_,M)=>{kh(_);const N=Gs({style:m,timeout:x,easing:d},{mode:"enter"});_.style.webkitTransition=n.transitions.create("opacity",N),_.style.transition=n.transitions.create("opacity",N),u&&u(_,M)}),D=O(h),L=O(f),z=O(_=>{const M=Gs({style:m,timeout:x,easing:d},{mode:"exit"});_.style.webkitTransition=n.transitions.create("opacity",M),_.style.transition=n.transitions.create("opacity",M),g&&g(_)}),k=O(y),j=_=>{s&&s(S.current,_)};return a.jsx(b,{appear:l,in:p,nodeRef:S,onEnter:F,onEntered:D,onEntering:I,onExit:z,onExited:k,onExiting:L,addEndListener:j,timeout:x,...w,children:(_,{ownerState:M,...N})=>T.cloneElement(c,{style:{opacity:0,visibility:_==="exited"&&!p?"hidden":void 0,...jE[_],...m,...c.props.style},ref:C,...N})})});process.env.NODE_ENV!=="production"&&(fa.propTypes={addEndListener:i.func,appear:i.bool,children:yn.isRequired,easing:i.oneOfType([i.shape({enter:i.string,exit:i.string}),i.string]),in:i.bool,onEnter:i.func,onEntered:i.func,onEntering:i.func,onExit:i.func,onExited:i.func,onExiting:i.func,style:i.object,timeout:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])});function BE(e){return pe("MuiBackdrop",e)}de("MuiBackdrop",["root","invisible"]);const LE=e=>{const{classes:t,invisible:r}=e;return ue({root:["root",r&&"invisible"]},BE,t)},WE=G("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.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"}}]}),zc=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiBackdrop"}),{children:o,className:s,component:l="div",invisible:c=!1,open:d,components:p={},componentsProps:u={},slotProps:h={},slots:v={},TransitionComponent:g,transitionDuration:y,...f}=n,m={...n,component:l,invisible:c},x=LE(m),b={transition:g,root:p.Root,...v},w={...u,...h},S={component:l,slots:b,slotProps:w},[C,O]=ge("root",{elementType:WE,externalForwardedProps:S,className:se(x.root,s),ownerState:m}),[I,F]=ge("transition",{elementType:fa,externalForwardedProps:S,ownerState:m});return a.jsx(I,{in:d,timeout:y,...f,...F,children:a.jsx(C,{"aria-hidden":!0,...O,classes:x,ref:r,children:o})})});process.env.NODE_ENV!=="production"&&(zc.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,components:i.shape({Root:i.elementType}),componentsProps:i.shape({root:i.object}),invisible:i.bool,open:i.bool.isRequired,slotProps:i.shape({root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])});const VE=de("MuiBox",["root"]),UE=hc(),E=QS({themeId:Po,defaultTheme:UE,defaultClassName:VE.root,generateClassName:Lf.generate});process.env.NODE_ENV!=="production"&&(E.propTypes={children:i.node,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function HE(e){return pe("MuiButton",e)}const mn=de("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"]),ug=T.createContext({});process.env.NODE_ENV!=="production"&&(ug.displayName="ButtonGroupContext");const fg=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(fg.displayName="ButtonGroupButtonContext");const RE=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:s,loading:l,loadingPosition:c,classes:d}=e,p={root:["root",l&&"loading",s,`${s}${te(t)}`,`size${te(o)}`,`${s}Size${te(o)}`,`color${te(t)}`,r&&"disableElevation",n&&"fullWidth",l&&`loadingPosition${te(c)}`],startIcon:["icon","startIcon",`iconSize${te(o)}`],endIcon:["icon","endIcon",`iconSize${te(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=ue(p,HE,d);return{...d,...u}},hg=[{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}}}],qE=G(qo,{shouldForwardProp:e=>ft(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${te(r.color)}`],t[`size${te(r.size)}`],t[`${r.variant}Size${te(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(he(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=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"},[`&.${mn.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]},[`&.${mn.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${mn.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)",[`&.${mn.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(Tt()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(e.vars||e).palette[n].main,"--variant-outlinedColor":(e.vars||e).palette[n].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[n].main,.5),"--variant-containedColor":(e.vars||e).palette[n].contrastText,"--variant-containedBg":(e.vars||e).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[n].dark,"--variant-textBg":e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[n].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[n].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:r,"--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"},[`&.${mn.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${mn.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}),[`&.${mn.loading}`]:{color:"transparent"}}}]}})),YE=G("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${te(r.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}},...hg]})),GE=G("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${te(r.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}},...hg]})),KE=G("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}}]})),gg=G("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Se=T.forwardRef(function(t,r){const n=T.useContext(ug),o=T.useContext(fg),s=Lo(n,t),l=fe({props:s,name:"MuiButton"}),{children:c,color:d="primary",component:p="button",className:u,disabled:h=!1,disableElevation:v=!1,disableFocusRipple:g=!1,endIcon:y,focusVisibleClassName:f,fullWidth:m=!1,id:x,loading:b=null,loadingIndicator:w,loadingPosition:S="center",size:C="medium",startIcon:O,type:I,variant:F="text",...D}=l,L=an(x),z=w??a.jsx(Zs,{"aria-labelledby":L,color:"inherit",size:16}),k={...l,color:d,component:p,disabled:h,disableElevation:v,disableFocusRipple:g,fullWidth:m,loading:b,loadingIndicator:z,loadingPosition:S,size:C,type:I,variant:F},j=RE(k),_=(O||b&&S==="start")&&a.jsx(YE,{className:j.startIcon,ownerState:k,children:O||a.jsx(gg,{className:j.loadingIconPlaceholder,ownerState:k})}),M=(y||b&&S==="end")&&a.jsx(GE,{className:j.endIcon,ownerState:k,children:y||a.jsx(gg,{className:j.loadingIconPlaceholder,ownerState:k})}),N=o||"",A=typeof b=="boolean"?a.jsx("span",{className:j.loadingWrapper,style:{display:"contents"},children:b&&a.jsx(KE,{className:j.loadingIndicator,ownerState:k,children:z})}):null;return a.jsxs(qE,{ownerState:k,className:se(n.className,j.root,u,N),component:p,disabled:h||b,focusRipple:!g,focusVisibleClassName:se(j.focusVisible,f),ref:r,type:I,id:b?L:x,...D,classes:j,children:[_,S!=="end"&&A,c,S==="end"&&A,M]})});process.env.NODE_ENV!=="production"&&(Se.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","primary","secondary","success","error","info","warning"]),i.string]),component:i.elementType,disabled:i.bool,disableElevation:i.bool,disableFocusRipple:i.bool,disableRipple:i.bool,endIcon:i.node,focusVisibleClassName:i.string,fullWidth:i.bool,href:i.string,id:i.string,loading:i.bool,loadingIndicator:i.node,loadingPosition:i.oneOf(["center","end","start"]),size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),startIcon:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.oneOfType([i.oneOf(["button","reset","submit"]),i.string]),variant:i.oneOfType([i.oneOf(["contained","outlined","text"]),i.string])});function XE(e){return pe("MuiCard",e)}de("MuiCard",["root"]);const JE=e=>{const{classes:t}=e;return ue({root:["root"]},XE,t)},QE=G(Jt,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),$t=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiCard"}),{className:o,raised:s=!1,...l}=n,c={...n,raised:s},d=JE(c);return a.jsx(QE,{className:se(d.root,o),elevation:s?8:void 0,ref:r,ownerState:c,...l})});process.env.NODE_ENV!=="production"&&($t.propTypes={children:i.node,classes:i.object,className:i.string,raised:Pr(i.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function ZE(e){return pe("MuiCardContent",e)}de("MuiCardContent",["root"]);const eT=e=>{const{classes:t}=e;return ue({root:["root"]},ZE,t)},tT=G("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),yg=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiCardContent"}),{className:o,component:s="div",...l}=n,c={...n,component:s},d=eT(c);return a.jsx(tT,{as:s,className:se(d.root,o),ownerState:c,ref:r,...l})});process.env.NODE_ENV!=="production"&&(yg.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function rT(e){return pe("PrivateSwitchBase",e)}de("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const nT=e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,s={root:["root",r&&"checked",n&&"disabled",o&&`edge${te(o)}`],input:["input"]};return ue(s,rT,t)},oT=G(qo,{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}}]}),iT=G("input",{name:"MuiSwitchBase",shouldForwardProp:ft})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ha=T.forwardRef(function(t,r){const{autoFocus:n,checked:o,checkedIcon:s,defaultChecked:l,disabled:c,disableFocusRipple:d=!1,edge:p=!1,icon:u,id:h,inputProps:v,inputRef:g,name:y,onBlur:f,onChange:m,onFocus:x,readOnly:b,required:w=!1,tabIndex:S,type:C,value:O,slots:I={},slotProps:F={},...D}=t,[L,z]=Ho({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),k=hr(),j=Y=>{x&&x(Y),k&&k.onFocus&&k.onFocus(Y)},_=Y=>{f&&f(Y),k&&k.onBlur&&k.onBlur(Y)},M=Y=>{if(Y.nativeEvent.defaultPrevented)return;const K=Y.target.checked;z(K),m&&m(Y,K)};let N=c;k&&typeof N>"u"&&(N=k.disabled);const A=C==="checkbox"||C==="radio",W={...t,checked:L,disabled:N,disableFocusRipple:d,edge:p},H=nT(W),B={slots:I,slotProps:{input:v,...F}},[U,X]=ge("root",{ref:r,elementType:oT,className:H.root,shouldForwardComponentProp:!0,externalForwardedProps:{...B,component:"span",...D},getSlotProps:Y=>({...Y,onFocus:K=>{Y.onFocus?.(K),j(K)},onBlur:K=>{Y.onBlur?.(K),_(K)}}),ownerState:W,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:N,role:void 0,tabIndex:null}}),[J,Q]=ge("input",{ref:g,elementType:iT,className:H.input,externalForwardedProps:B,getSlotProps:Y=>({...Y,onChange:K=>{Y.onChange?.(K),M(K)}}),ownerState:W,additionalProps:{autoFocus:n,checked:o,defaultChecked:l,disabled:N,id:A?h:void 0,name:y,readOnly:b,required:w,tabIndex:S,type:C,...C==="checkbox"&&O===void 0?{}:{value:O}}});return a.jsxs(U,{...X,children:[a.jsx(J,{...Q}),L?s:u]})});process.env.NODE_ENV!=="production"&&(ha.propTypes={autoFocus:i.bool,checked:i.bool,checkedIcon:i.node.isRequired,classes:i.object,className:i.string,defaultChecked:i.bool,disabled:i.bool,disableFocusRipple:i.bool,edge:i.oneOf(["end","start",!1]),icon:i.node.isRequired,id:i.string,inputProps:i.object,inputRef:vt,name:i.string,onBlur:i.func,onChange:i.func,onFocus:i.func,readOnly:i.bool,required:i.bool,slotProps:i.shape({input:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({input:i.elementType,root:i.elementType}),sx:i.object,tabIndex:i.oneOfType([i.number,i.string]),type:i.string.isRequired,value:i.any});const sT=ht(a.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"),aT=ht(a.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"),lT=ht(a.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 cT(e){return pe("MuiCheckbox",e)}const jc=de("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),dT=e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,s={root:["root",r&&"indeterminate",`color${te(n)}`,`size${te(o)}`]},l=ue(s,cT,t);return{...t,...l}},pT=G(ha,{shouldForwardProp:e=>ft(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${te(r.size)}`],r.color!=="default"&&t[`color${te(r.color)}`]]}})(he(({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(Tt()).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(Tt()).map(([t])=>({props:{color:t},style:{[`&.${jc.checked}, &.${jc.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${jc.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),uT=a.jsx(aT,{}),fT=a.jsx(sT,{}),hT=a.jsx(lT,{}),Qe=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiCheckbox"}),{checkedIcon:o=uT,color:s="primary",icon:l=fT,indeterminate:c=!1,indeterminateIcon:d=hT,inputProps:p,size:u="medium",disableRipple:h=!1,className:v,slots:g={},slotProps:y={},...f}=n,m=c?d:l,x=c?d:o,b={...n,disableRipple:h,color:s,indeterminate:c,size:u},w=dT(b),S=y.input??p,[C,O]=ge("root",{ref:r,elementType:pT,className:se(w.root,v),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:y,...f},ownerState:b,additionalProps:{type:"checkbox",icon:T.cloneElement(m,{fontSize:m.props.fontSize??u}),checkedIcon:T.cloneElement(x,{fontSize:x.props.fontSize??u}),disableRipple:h,slots:g,slotProps:{input:bh(typeof S=="function"?S(b):S,{"data-indeterminate":c})}}});return a.jsx(C,{...O,classes:w})});process.env.NODE_ENV!=="production"&&(Qe.propTypes={checked:i.bool,checkedIcon:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["default","primary","secondary","error","info","success","warning"]),i.string]),defaultChecked:i.bool,disabled:i.bool,disableRipple:i.bool,icon:i.node,id:i.string,indeterminate:i.bool,indeterminateIcon:i.node,inputProps:i.object,onChange:i.func,required:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({input:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({input:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.any});function mg(e){return e.substring(2).toLowerCase()}function gT(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function ga(e){const{children:t,disableReactTree:r=!1,mouseEvent:n="onClick",onClickAway:o,touchEvent:s="onTouchEnd"}=e,l=T.useRef(!1),c=T.useRef(null),d=T.useRef(!1),p=T.useRef(!1);T.useEffect(()=>(setTimeout(()=>{d.current=!0},0),()=>{d.current=!1}),[]);const u=Je(hn(t),c),h=Bt(y=>{const f=p.current;p.current=!1;const m=gt(c.current);if(!d.current||!c.current||"clientX"in y&&gT(y,m))return;if(l.current){l.current=!1;return}let x;y.composedPath?x=y.composedPath().includes(c.current):x=!m.documentElement.contains(y.target)||c.current.contains(y.target),!x&&(r||!f)&&o(y)}),v=y=>f=>{p.current=!0;const m=t.props[y];m&&m(f)},g={ref:u};return s!==!1&&(g[s]=v(s)),T.useEffect(()=>{if(s!==!1){const y=mg(s),f=gt(c.current),m=()=>{l.current=!0};return f.addEventListener(y,h),f.addEventListener("touchmove",m),()=>{f.removeEventListener(y,h),f.removeEventListener("touchmove",m)}}},[h,s]),n!==!1&&(g[n]=v(n)),T.useEffect(()=>{if(n!==!1){const y=mg(n),f=gt(c.current);return f.addEventListener(y,h),()=>{f.removeEventListener(y,h)}}},[h,n]),T.cloneElement(t,g)}process.env.NODE_ENV!=="production"&&(ga.propTypes={children:yn.isRequired,disableReactTree:i.bool,mouseEvent:i.oneOf(["onClick","onMouseDown","onMouseUp","onPointerDown","onPointerUp",!1]),onClickAway:i.func.isRequired,touchEvent:i.oneOf(["onTouchEnd","onTouchStart",!1])}),process.env.NODE_ENV!=="production"&&(ga.propTypes=ic(ga.propTypes));function bg(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function yT(e){const t=gt(e);return t.body===e?kr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function oi(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function vg(e){return parseInt(kr(e).getComputedStyle(e).paddingRight,10)||0}function mT(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function xg(e,t,r,n,o){const s=[t,r,...n];[].forEach.call(e.children,l=>{const c=!s.includes(l),d=!mT(l);c&&d&&oi(l,o)})}function Bc(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function bT(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(yT(n)){const l=bg(kr(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${vg(n)+l}px`;const c=gt(n).querySelectorAll(".mui-fixed");[].forEach.call(c,d=>{r.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${vg(d)+l}px`})}let s;if(n.parentNode instanceof DocumentFragment)s=gt(n).body;else{const l=n.parentElement,c=kr(n);s=l?.nodeName==="HTML"&&c.getComputedStyle(l).overflowY==="scroll"?l:n}r.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()=>{r.forEach(({value:s,el:l,property:c})=>{s?l.style.setProperty(c,s):l.style.removeProperty(c)})}}function vT(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class xT{constructor(){this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&oi(t.modalRef,!1);const o=vT(r);xg(r,t.mount,t.modalRef,o,!0);const s=Bc(this.containers,l=>l.container===r);return s!==-1?(this.containers[s].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:o}),n)}mount(t,r){const n=Bc(this.containers,s=>s.modals.includes(t)),o=this.containers[n];o.restore||(o.restore=bT(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=Bc(this.containers,l=>l.modals.includes(t)),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(n,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&oi(t.modalRef,r),xg(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const l=s.modals[s.modals.length-1];l.modalRef&&oi(l.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function ii(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const ST=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function wT(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 CT(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function ET(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||CT(e))}function TT(e){const t=[],r=[];return Array.from(e.querySelectorAll(ST)).forEach((n,o)=>{const s=wT(n);s===-1||!ET(n)||(s===0?t.push(n):r.push({documentOrder:o,tabIndex:s,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(t)}function OT(){return!0}function ya(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:s=TT,isEnabled:l=OT,open:c}=e,d=T.useRef(!1),p=T.useRef(null),u=T.useRef(null),h=T.useRef(null),v=T.useRef(null),g=T.useRef(!1),y=T.useRef(null),f=Je(hn(t),y),m=T.useRef(null);T.useEffect(()=>{!c||!y.current||(g.current=!r)},[r,c]),T.useEffect(()=>{if(!c||!y.current)return;const w=gt(y.current),S=ii(w);return y.current.contains(S)||(y.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
|
+
`)),y.current.setAttribute("tabIndex","-1")),g.current&&y.current.focus()),()=>{o||(h.current&&h.current.focus&&(d.current=!0,h.current.focus()),h.current=null)}},[c]),T.useEffect(()=>{if(!c||!y.current)return;const w=gt(y.current),S=ii(w),C=F=>{m.current=F,!(n||!l()||F.key!=="Tab")&&S===y.current&&F.shiftKey&&(d.current=!0,u.current&&u.current.focus())},O=()=>{const F=y.current;if(F===null)return;const D=ii(w);if(!w.hasFocus()||!l()||d.current){d.current=!1;return}if(F.contains(D)||n&&D!==p.current&&D!==u.current)return;if(D!==v.current)v.current=null;else if(v.current!==null)return;if(!g.current)return;let L=[];if((D===p.current||D===u.current)&&(L=s(y.current)),L.length>0){const z=!!(m.current?.shiftKey&&m.current?.key==="Tab"),k=L[0],j=L[L.length-1];typeof k!="string"&&typeof j!="string"&&(z?j.focus():k.focus())}else F.focus()};w.addEventListener("focusin",O),w.addEventListener("keydown",C,!0);const I=setInterval(()=>{const F=ii(w);F&&F.tagName==="BODY"&&O()},50);return()=>{clearInterval(I),w.removeEventListener("focusin",O),w.removeEventListener("keydown",C,!0)}},[r,n,o,l,c,s]);const x=w=>{h.current===null&&(h.current=w.relatedTarget),g.current=!0,v.current=w.target;const S=t.props.onFocus;S&&S(w)},b=w=>{h.current===null&&(h.current=w.relatedTarget),g.current=!0};return a.jsxs(T.Fragment,{children:[a.jsx("div",{tabIndex:c?0:-1,onFocus:b,ref:p,"data-testid":"sentinelStart"}),T.cloneElement(t,{ref:f,onFocus:x}),a.jsx("div",{tabIndex:c?0:-1,onFocus:b,ref:u,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(ya.propTypes={children:yn,disableAutoFocus:i.bool,disableEnforceFocus:i.bool,disableRestoreFocus:i.bool,getTabbable:i.func,isEnabled:i.func,open:i.bool.isRequired}),process.env.NODE_ENV!=="production"&&(ya.propTypes=ic(ya.propTypes));function kT(e){return typeof e=="function"?e():e}function PT(e){return e?e.props.hasOwnProperty("in"):!1}const Sg=()=>{},ma=new xT;function IT(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:l,children:c,onClose:d,open:p,rootRef:u}=e,h=T.useRef({}),v=T.useRef(null),g=T.useRef(null),y=Je(g,u),[f,m]=T.useState(!p),x=PT(c);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const w=()=>gt(v.current),S=()=>(h.current.modalRef=g.current,h.current.mount=v.current,h.current),C=()=>{ma.mount(S(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},O=Bt(()=>{const M=kT(t)||w().body;ma.add(S(),M),g.current&&C()}),I=()=>ma.isTopModal(S()),F=Bt(M=>{v.current=M,M&&(p&&I()?C():g.current&&oi(g.current,b))}),D=T.useCallback(()=>{ma.remove(S(),b)},[b]);T.useEffect(()=>()=>{D()},[D]),T.useEffect(()=>{p?O():(!x||!o)&&D()},[p,D,x,o,O]);const L=M=>N=>{M.onKeyDown?.(N),!(N.key!=="Escape"||N.which===229||!I())&&(r||(N.stopPropagation(),d&&d(N,"escapeKeyDown")))},z=M=>N=>{M.onClick?.(N),N.target===N.currentTarget&&d&&d(N,"backdropClick")};return{getRootProps:(M={})=>{const N=Xs(e);delete N.onTransitionEnter,delete N.onTransitionExited;const A={...N,...M};return{role:"presentation",...A,onKeyDown:L(A),ref:y}},getBackdropProps:(M={})=>{const N=M;return{"aria-hidden":!0,...N,onClick:z(N),open:p}},getTransitionProps:()=>{const M=()=>{m(!1),s&&s()},N=()=>{m(!0),l&&l(),o&&D()};return{onEnter:yc(M,c?.props.onEnter??Sg),onExited:yc(N,c?.props.onExited??Sg)}},rootRef:y,portalRef:F,isTopModal:I,exited:f,hasTransition:x}}function NT(e){return pe("MuiModal",e)}de("MuiModal",["root","hidden","backdrop"]);const _T=e=>{const{open:t,exited:r,classes:n}=e;return ue({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},NT,n)},AT=G("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(he(({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"}}]}))),MT=G(zc,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),si=T.forwardRef(function(t,r){const n=fe({name:"MuiModal",props:t}),{BackdropComponent:o=MT,BackdropProps:s,classes:l,className:c,closeAfterTransition:d=!1,children:p,container:u,component:h,components:v={},componentsProps:g={},disableAutoFocus:y=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:m=!1,disablePortal:x=!1,disableRestoreFocus:b=!1,disableScrollLock:w=!1,hideBackdrop:S=!1,keepMounted:C=!1,onClose:O,onTransitionEnter:I,onTransitionExited:F,open:D,slotProps:L={},slots:z={},theme:k,...j}=n,_={...n,closeAfterTransition:d,disableAutoFocus:y,disableEnforceFocus:f,disableEscapeKeyDown:m,disablePortal:x,disableRestoreFocus:b,disableScrollLock:w,hideBackdrop:S,keepMounted:C},{getRootProps:M,getBackdropProps:N,getTransitionProps:A,portalRef:W,isTopModal:H,exited:B,hasTransition:U}=IT({..._,rootRef:r}),X={..._,exited:B},J=_T(X),Q={};if(p.props.tabIndex===void 0&&(Q.tabIndex="-1"),U){const{onEnter:Z,onExited:re}=A();Q.onEnter=Z,Q.onExited=re}const Y={slots:{root:v.Root,backdrop:v.Backdrop,...z},slotProps:{...g,...L}},[K,ee]=ge("root",{ref:r,elementType:AT,externalForwardedProps:{...Y,...j,component:h},getSlotProps:M,ownerState:X,className:se(c,J?.root,!X.open&&X.exited&&J?.hidden)}),[oe,ae]=ge("backdrop",{ref:s?.ref,elementType:o,externalForwardedProps:Y,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:Z=>N({...Z,onClick:re=>{Z?.onClick&&Z.onClick(re)}}),className:se(s?.className,J?.backdrop),ownerState:X});return!C&&!D&&(!U||B)?null:a.jsx(ei,{ref:W,container:u,disablePortal:x,children:a.jsxs(K,{...ee,children:[!S&&o?a.jsx(oe,{...ae}):null,a.jsx(ya,{disableEnforceFocus:f,disableAutoFocus:y,disableRestoreFocus:b,isEnabled:H,open:D,children:T.cloneElement(p,Q)})]})})});process.env.NODE_ENV!=="production"&&(si.propTypes={BackdropComponent:i.elementType,BackdropProps:i.object,children:yn.isRequired,classes:i.object,className:i.string,closeAfterTransition:i.bool,component:i.elementType,components:i.shape({Backdrop:i.elementType,Root:i.elementType}),componentsProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),container:i.oneOfType([Nr,i.func]),disableAutoFocus:i.bool,disableEnforceFocus:i.bool,disableEscapeKeyDown:i.bool,disablePortal:i.bool,disableRestoreFocus:i.bool,disableScrollLock:i.bool,hideBackdrop:i.bool,keepMounted:i.bool,onClose:i.func,onTransitionEnter:i.func,onTransitionExited:i.func,open:i.bool.isRequired,slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function $T(e){return pe("MuiDialog",e)}const Lc=de("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Wc=T.createContext({});process.env.NODE_ENV!=="production"&&(Wc.displayName="DialogContext");const DT=G(zc,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),FT=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:s}=e,l={root:["root"],container:["container",`scroll${te(r)}`],paper:["paper",`paperScroll${te(r)}`,`paperWidth${te(String(n))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return ue(l,$T,t)},zT=G(si,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),jT=G("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${te(r.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"}}}]}),BT=G(Jt,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${te(r.scroll)}`],t[`paperWidth${te(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(he(({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)`,[`&.${Lc.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}`,[`&.${Lc.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,[`&.${Lc.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Un=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiDialog"}),o=Ge(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":l,"aria-labelledby":c,"aria-modal":d=!0,BackdropComponent:p,BackdropProps:u,children:h,className:v,disableEscapeKeyDown:g=!1,fullScreen:y=!1,fullWidth:f=!1,maxWidth:m="sm",onClick:x,onClose:b,open:w,PaperComponent:S=Jt,PaperProps:C={},scroll:O="paper",slots:I={},slotProps:F={},TransitionComponent:D=fa,transitionDuration:L=s,TransitionProps:z,...k}=n,j={...n,disableEscapeKeyDown:g,fullScreen:y,fullWidth:f,maxWidth:m,scroll:O},_=FT(j),M=T.useRef(),N=ce=>{M.current=ce.target===ce.currentTarget},A=ce=>{x&&x(ce),M.current&&(M.current=null,b&&b(ce,"backdropClick"))},W=an(c),H=T.useMemo(()=>({titleId:W}),[W]),B={transition:D,...I},U={transition:z,paper:C,backdrop:u,...F},X={slots:B,slotProps:U},[J,Q]=ge("root",{elementType:zT,shouldForwardComponentProp:!0,externalForwardedProps:X,ownerState:j,className:se(_.root,v),ref:r}),[Y,K]=ge("backdrop",{elementType:DT,shouldForwardComponentProp:!0,externalForwardedProps:X,ownerState:j}),[ee,oe]=ge("paper",{elementType:BT,shouldForwardComponentProp:!0,externalForwardedProps:X,ownerState:j,className:se(_.paper,C.className)}),[ae,Z]=ge("container",{elementType:jT,externalForwardedProps:X,ownerState:j,className:_.container}),[re,q]=ge("transition",{elementType:fa,externalForwardedProps:X,ownerState:j,additionalProps:{appear:!0,in:w,timeout:L,role:"presentation"}});return a.jsx(J,{closeAfterTransition:!0,slots:{backdrop:Y},slotProps:{backdrop:{transitionDuration:L,as:p,...K}},disableEscapeKeyDown:g,onClose:b,open:w,onClick:A,...Q,...k,children:a.jsx(re,{...q,children:a.jsx(ae,{onMouseDown:N,...Z,children:a.jsx(ee,{as:S,elevation:24,role:"dialog","aria-describedby":l,"aria-labelledby":W,"aria-modal":d,...oe,children:a.jsx(Wc.Provider,{value:H,children:h})})})})})});process.env.NODE_ENV!=="production"&&(Un.propTypes={"aria-describedby":i.string,"aria-labelledby":i.string,"aria-modal":i.oneOfType([i.oneOf(["false","true"]),i.bool]),BackdropComponent:i.elementType,BackdropProps:i.object,children:i.node,classes:i.object,className:i.string,disableEscapeKeyDown:i.bool,fullScreen:i.bool,fullWidth:i.bool,maxWidth:i.oneOfType([i.oneOf(["xs","sm","md","lg","xl",!1]),i.string]),onClick:i.func,onClose:i.func,open:i.bool.isRequired,PaperComponent:i.elementType,PaperProps:i.object,scroll:i.oneOf(["body","paper"]),slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),container:i.oneOfType([i.func,i.object]),paper:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,container:i.elementType,paper:i.elementType,root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})]),TransitionProps:i.object});function LT(e){return pe("MuiDialogActions",e)}de("MuiDialogActions",["root","spacing"]);const WT=e=>{const{classes:t,disableSpacing:r}=e;return ue({root:["root",!r&&"spacing"]},LT,t)},VT=G("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.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}}}]}),ai=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1,...l}=n,c={...n,disableSpacing:s},d=WT(c);return a.jsx(VT,{className:se(d.root,o),ownerState:c,ref:r,...l})});process.env.NODE_ENV!=="production"&&(ai.propTypes={children:i.node,classes:i.object,className:i.string,disableSpacing:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function UT(e){return pe("MuiDialogContent",e)}de("MuiDialogContent",["root","dividers"]);function HT(e){return pe("MuiDialogTitle",e)}const RT=de("MuiDialogTitle",["root"]),qT=e=>{const{classes:t,dividers:r}=e;return ue({root:["root",r&&"dividers"]},UT,t)},YT=G("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(he(({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:{[`.${RT.root} + &`]:{paddingTop:0}}}]}))),Hn=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1,...l}=n,c={...n,dividers:s},d=qT(c);return a.jsx(YT,{className:se(d.root,o),ownerState:c,ref:r,...l})});process.env.NODE_ENV!=="production"&&(Hn.propTypes={children:i.node,classes:i.object,className:i.string,dividers:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const GT=e=>{const{classes:t}=e;return ue({root:["root"]},HT,t)},KT=G(P,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),Rn=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiDialogTitle"}),{className:o,id:s,...l}=n,c=n,d=GT(c),{titleId:p=s}=T.useContext(Wc);return a.jsx(KT,{component:"h2",className:se(d.root,o),ownerState:c,ref:r,variant:"h6",id:s??p,...l})});process.env.NODE_ENV!=="production"&&(Rn.propTypes={children:i.node,classes:i.object,className:i.string,id:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function XT(e){return pe("MuiDivider",e)}const wg=de("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),JT=e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:s,orientation:l,textAlign:c,variant:d}=e;return ue({root:["root",t&&"absolute",d,s&&"light",l==="vertical"&&"vertical",o&&"flexItem",r&&"withChildren",r&&l==="vertical"&&"withChildrenVertical",c==="right"&&l!=="vertical"&&"textAlignRight",c==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},XT,n)},QT=G("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(he(({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%"}}}]}))),ZT=G("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(he(({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)`}}]}))),Ke=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiDivider"}),{absolute:o=!1,children:s,className:l,orientation:c="horizontal",component:d=s||c==="vertical"?"div":"hr",flexItem:p=!1,light:u=!1,role:h=d!=="hr"?"separator":void 0,textAlign:v="center",variant:g="fullWidth",...y}=n,f={...n,absolute:o,component:d,flexItem:p,light:u,orientation:c,role:h,textAlign:v,variant:g},m=JT(f);return a.jsx(QT,{as:d,className:se(m.root,l),role:h,ref:r,ownerState:f,"aria-orientation":h==="separator"&&(d!=="hr"||c==="vertical")?c:void 0,...y,children:s?a.jsx(ZT,{className:m.wrapper,ownerState:f,children:s}):null})});Ke&&(Ke.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(Ke.propTypes={absolute:i.bool,children:i.node,classes:i.object,className:i.string,component:i.elementType,flexItem:i.bool,light:i.bool,orientation:i.oneOf(["horizontal","vertical"]),role:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),textAlign:i.oneOf(["center","left","right"]),variant:i.oneOfType([i.oneOf(["fullWidth","inset","middle"]),i.string])});const eO=e=>{const{classes:t,disableUnderline:r,startAdornment:n,endAdornment:o,size:s,hiddenLabel:l,multiline:c}=e,d={root:["root",!r&&"underline",n&&"adornedStart",o&&"adornedEnd",s==="small"&&`size${te(s)}`,l&&"hiddenLabel",c&&"multiline"],input:["input"]},p=ue(d,PE,t);return{...t,...p}},tO=G(pa,{shouldForwardProp:e=>ft(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ca(e,t),!r.disableUnderline&&t.underline]}})(he(({theme:e})=>{const t=e.palette.mode==="light",r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=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:n,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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n}},[`&.${gn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n},[`&.${gn.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:l})=>!l.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"},[`&.${gn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${gn.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):r}`,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(.${gn.disabled}, .${gn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${gn.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Tt()).map(([l])=>({props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[l]?.main}`}}})),{props:({ownerState:l})=>l.startAdornment,style:{paddingLeft:12}},{props:({ownerState:l})=>l.endAdornment,style:{paddingRight:12}},{props:({ownerState:l})=>l.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:l,size:c})=>l.multiline&&c==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel&&l.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),rO=G(ua,{name:"MuiFilledInput",slot:"Input",overridesResolver:da})(he(({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}}]}))),ba=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:s={},componentsProps:l,fullWidth:c=!1,hiddenLabel:d,inputComponent:p="input",multiline:u=!1,slotProps:h,slots:v={},type:g="text",...y}=n,f={...n,disableUnderline:o,fullWidth:c,inputComponent:p,multiline:u,type:g},m=eO(n),x={root:{ownerState:f},input:{ownerState:f}},b=h??l?ut(x,h??l):x,w=v.root??s.Root??tO,S=v.input??s.Input??rO;return a.jsx(ti,{slots:{root:w,input:S},slotProps:b,fullWidth:c,inputComponent:p,multiline:u,ref:r,type:g,...y,classes:m})});process.env.NODE_ENV!=="production"&&(ba.propTypes={autoComplete:i.string,autoFocus:i.bool,classes:i.object,color:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),componentsProps:i.shape({input:i.object,root:i.object}),defaultValue:i.any,disabled:i.bool,disableUnderline:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,hiddenLabel:i.bool,id:i.string,inputComponent:i.elementType,inputProps:i.object,inputRef:vt,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onChange:i.func,placeholder:i.string,readOnly:i.bool,required:i.bool,rows:i.oneOfType([i.number,i.string]),slotProps:i.shape({input:i.object,root:i.object}),slots:i.shape({input:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any}),ba.muiName="Input";function nO(e){return pe("MuiFormControl",e)}de("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const oO=e=>{const{classes:t,margin:r,fullWidth:n}=e,o={root:["root",r!=="none"&&`margin${te(r)}`,n&&"fullWidth"]};return ue(o,nO,t)},iO=G("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${te(r.margin)}`],r.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%"}}]}),Cg=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiFormControl"}),{children:o,className:s,color:l="primary",component:c="div",disabled:d=!1,error:p=!1,focused:u,fullWidth:h=!1,hiddenLabel:v=!1,margin:g="none",required:y=!1,size:f="medium",variant:m="outlined",...x}=n,b={...n,color:l,component:c,disabled:d,error:p,fullWidth:h,hiddenLabel:v,margin:g,required:y,size:f,variant:m},w=oO(b),[S,C]=T.useState(()=>{let N=!1;return o&&T.Children.forEach(o,A=>{if(!lc(A,["Input","Select"]))return;const W=lc(A,["Select"])?A.props.input:A;W&&CE(W.props)&&(N=!0)}),N}),[O,I]=T.useState(()=>{let N=!1;return o&&T.Children.forEach(o,A=>{lc(A,["Input","Select"])&&(la(A.props,!0)||la(A.props.inputProps,!0))&&(N=!0)}),N}),[F,D]=T.useState(!1);d&&F&&D(!1);const L=u!==void 0&&!d?u:F;let z;const k=T.useRef(!1);process.env.NODE_ENV!=="production"&&(z=()=>(k.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
172
|
+
`)),k.current=!0,()=>{k.current=!1}));const j=T.useCallback(()=>{I(!0)},[]),_=T.useCallback(()=>{I(!1)},[]),M=T.useMemo(()=>({adornedStart:S,setAdornedStart:C,color:l,disabled:d,error:p,filled:O,focused:L,fullWidth:h,hiddenLabel:v,size:f,onBlur:()=>{D(!1)},onFocus:()=>{D(!0)},onEmpty:_,onFilled:j,registerEffect:z,required:y,variant:m}),[S,l,d,p,O,L,h,v,z,_,j,y,f,m]);return a.jsx(aa.Provider,{value:M,children:a.jsx(iO,{as:c,ownerState:b,className:se(w.root,s),ref:r,...x,children:o})})});process.env.NODE_ENV!=="production"&&(Cg.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,disabled:i.bool,error:i.bool,focused:i.bool,fullWidth:i.bool,hiddenLabel:i.bool,margin:i.oneOf(["dense","none","normal"]),required:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOf(["filled","outlined","standard"])});function sO(e){return pe("MuiFormControlLabel",e)}const li=de("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),aO=e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:s}=e,l={root:["root",r&&"disabled",`labelPlacement${te(n)}`,o&&"error",s&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return ue(l,sO,t)},lO=G("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${li.label}`]:t.label},t.root,t[`labelPlacement${te(r.labelPlacement)}`]]}})(he(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${li.disabled}`]:{cursor:"default"},[`& .${li.label}`]:{[`&.${li.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}}]}))),cO=G("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(he(({theme:e})=>({[`&.${li.error}`]:{color:(e.vars||e).palette.error.main}}))),xt=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiFormControlLabel"}),{checked:o,className:s,componentsProps:l={},control:c,disabled:d,disableTypography:p,inputRef:u,label:h,labelPlacement:v="end",name:g,onChange:y,required:f,slots:m={},slotProps:x={},value:b,...w}=n,S=hr(),C=d??c.props.disabled??S?.disabled,O=f??c.props.required,I={disabled:C,required:O};["checked","name","onChange","value","inputRef"].forEach(M=>{typeof c.props[M]>"u"&&typeof n[M]<"u"&&(I[M]=n[M])});const F=Rr({props:n,muiFormControl:S,states:["error"]}),D={...n,disabled:C,labelPlacement:v,required:O,error:F.error},L=aO(D),z={slots:m,slotProps:{...l,...x}},[k,j]=ge("typography",{elementType:P,externalForwardedProps:z,ownerState:D});let _=h;return _!=null&&_.type!==P&&!p&&(_=a.jsx(k,{component:"span",...j,className:se(L.label,j?.className),children:_})),a.jsxs(lO,{className:se(L.root,s),ownerState:D,ref:r,...w,children:[T.cloneElement(c,I),O?a.jsxs("div",{children:[_,a.jsxs(cO,{ownerState:D,"aria-hidden":!0,className:L.asterisk,children:[" ","*"]})]}):_]})});process.env.NODE_ENV!=="production"&&(xt.propTypes={checked:i.bool,classes:i.object,className:i.string,componentsProps:i.shape({typography:i.object}),control:i.element.isRequired,disabled:i.bool,disableTypography:i.bool,inputRef:vt,label:i.node,labelPlacement:i.oneOf(["bottom","end","start","top"]),name:i.string,onChange:i.func,required:i.bool,slotProps:i.shape({typography:i.oneOfType([i.func,i.object])}),slots:i.shape({typography:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.any});function dO(e){return pe("MuiFormGroup",e)}de("MuiFormGroup",["root","row","error"]);const pO=e=>{const{classes:t,row:r,error:n}=e;return ue({root:["root",r&&"row",n&&"error"]},dO,t)},uO=G("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),Eg=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiFormGroup"}),{className:o,row:s=!1,...l}=n,c=hr(),d=Rr({props:n,muiFormControl:c,states:["error"]}),p={...n,row:s,error:d.error},u=pO(p);return a.jsx(uO,{className:se(u.root,o),ownerState:p,ref:r,...l})});process.env.NODE_ENV!=="production"&&(Eg.propTypes={children:i.node,classes:i.object,className:i.string,row:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function fO(e){return pe("MuiFormHelperText",e)}const Tg=de("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Og;const hO=e=>{const{classes:t,contained:r,size:n,disabled:o,error:s,filled:l,focused:c,required:d}=e,p={root:["root",o&&"disabled",s&&"error",n&&`size${te(n)}`,r&&"contained",c&&"focused",l&&"filled",d&&"required"]};return ue(p,fO,t)},gO=G("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${te(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(he(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Tg.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Tg.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}}]}))),kg=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:l="p",disabled:c,error:d,filled:p,focused:u,margin:h,required:v,variant:g,...y}=n,f=hr(),m=Rr({props:n,muiFormControl:f,states:["variant","size","disabled","error","filled","focused","required"]}),x={...n,component:l,contained:m.variant==="filled"||m.variant==="outlined",variant:m.variant,size:m.size,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required};delete x.ownerState;const b=hO(x);return a.jsx(gO,{as:l,className:se(b.root,s),ref:r,...y,ownerState:x,children:o===" "?Og||(Og=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):o})});process.env.NODE_ENV!=="production"&&(kg.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,disabled:i.bool,error:i.bool,filled:i.bool,focused:i.bool,margin:i.oneOf(["dense"]),required:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["filled","outlined","standard"]),i.string])});function yO(e){return pe("MuiFormLabel",e)}const ci=de("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),mO=e=>{const{classes:t,color:r,focused:n,disabled:o,error:s,filled:l,required:c}=e,d={root:["root",`color${te(r)}`,o&&"disabled",s&&"error",l&&"filled",n&&"focused",c&&"required"],asterisk:["asterisk",s&&"error"]};return ue(d,yO,t)},bO=G("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(he(({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(Tt()).map(([t])=>({props:{color:t},style:{[`&.${ci.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${ci.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ci.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),vO=G("span",{name:"MuiFormLabel",slot:"Asterisk"})(he(({theme:e})=>({[`&.${ci.error}`]:{color:(e.vars||e).palette.error.main}}))),Pg=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiFormLabel"}),{children:o,className:s,color:l,component:c="label",disabled:d,error:p,filled:u,focused:h,required:v,...g}=n,y=hr(),f=Rr({props:n,muiFormControl:y,states:["color","required","focused","disabled","error","filled"]}),m={...n,color:f.color||"primary",component:c,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required},x=mO(m);return a.jsxs(bO,{as:c,ownerState:m,className:se(x.root,s),ref:r,...g,children:[o,f.required&&a.jsxs(vO,{ownerState:m,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Pg.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["error","info","primary","secondary","success","warning"]),i.string]),component:i.elementType,disabled:i.bool,error:i.bool,filled:i.bool,focused:i.bool,required:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function Vc(e){return`scale(${e}, ${e**2})`}const xO={entering:{opacity:1,transform:Vc(1)},entered:{opacity:1,transform:"none"}},Uc=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),qn=T.forwardRef(function(t,r){const{addEndListener:n,appear:o=!0,children:s,easing:l,in:c,onEnter:d,onEntered:p,onEntering:u,onExit:h,onExited:v,onExiting:g,style:y,timeout:f="auto",TransitionComponent:m=pr,...x}=t,b=pn(),w=T.useRef(),S=Ge(),C=T.useRef(null),O=Je(C,hn(s),r),I=M=>N=>{if(M){const A=C.current;N===void 0?M(A):M(A,N)}},F=I(u),D=I((M,N)=>{kh(M);const{duration:A,delay:W,easing:H}=Gs({style:y,timeout:f,easing:l},{mode:"enter"});let B;f==="auto"?(B=S.transitions.getAutoHeightDuration(M.clientHeight),w.current=B):B=A,M.style.transition=[S.transitions.create("opacity",{duration:B,delay:W}),S.transitions.create("transform",{duration:Uc?B:B*.666,delay:W,easing:H})].join(","),d&&d(M,N)}),L=I(p),z=I(g),k=I(M=>{const{duration:N,delay:A,easing:W}=Gs({style:y,timeout:f,easing:l},{mode:"exit"});let H;f==="auto"?(H=S.transitions.getAutoHeightDuration(M.clientHeight),w.current=H):H=N,M.style.transition=[S.transitions.create("opacity",{duration:H,delay:A}),S.transitions.create("transform",{duration:Uc?H:H*.666,delay:Uc?A:A||H*.333,easing:W})].join(","),M.style.opacity=0,M.style.transform=Vc(.75),h&&h(M)}),j=I(v),_=M=>{f==="auto"&&b.start(w.current||0,M),n&&n(C.current,M)};return a.jsx(m,{appear:o,in:c,nodeRef:C,onEnter:D,onEntered:L,onEntering:F,onExit:k,onExited:j,onExiting:z,addEndListener:_,timeout:f==="auto"?null:f,...x,children:(M,{ownerState:N,...A})=>T.cloneElement(s,{style:{opacity:0,transform:Vc(.75),visibility:M==="exited"&&!c?"hidden":void 0,...xO[M],...y,...s.props.style},ref:O,...A})})});process.env.NODE_ENV!=="production"&&(qn.propTypes={addEndListener:i.func,appear:i.bool,children:yn.isRequired,easing:i.oneOfType([i.shape({enter:i.string,exit:i.string}),i.string]),in:i.bool,onEnter:i.func,onEntered:i.func,onEntering:i.func,onExit:i.func,onExited:i.func,onExiting:i.func,style:i.object,timeout:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])}),qn&&(qn.muiSupportAuto=!0);const SO=e=>{const{classes:t,disableUnderline:r}=e,o=ue({root:["root",!r&&"underline"],input:["input"]},OE,t);return{...t,...o}},wO=G(pa,{shouldForwardProp:e=>ft(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ca(e,t),!r.disableUnderline&&t.underline]}})(he(({theme:e})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.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"},[`&.${ri.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ri.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,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(.${ri.disabled}, .${ri.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${ri.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Tt()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),CO=G(ua,{name:"MuiInput",slot:"Input",overridesResolver:da})({}),va=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:s={},componentsProps:l,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:u,slots:h={},type:v="text",...g}=n,y=SO(n),m={root:{ownerState:{disableUnderline:o}}},x=u??l?ut(u??l,m):m,b=h.root??s.Root??wO,w=h.input??s.Input??CO;return a.jsx(ti,{slots:{root:b,input:w},slotProps:x,fullWidth:c,inputComponent:d,multiline:p,ref:r,type:v,...g,classes:y})});process.env.NODE_ENV!=="production"&&(va.propTypes={autoComplete:i.string,autoFocus:i.bool,classes:i.object,color:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),componentsProps:i.shape({input:i.object,root:i.object}),defaultValue:i.any,disabled:i.bool,disableUnderline:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,id:i.string,inputComponent:i.elementType,inputProps:i.object,inputRef:vt,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onChange:i.func,placeholder:i.string,readOnly:i.bool,required:i.bool,rows:i.oneOfType([i.number,i.string]),slotProps:i.shape({input:i.object,root:i.object}),slots:i.shape({input:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any}),va.muiName="Input";function EO(e){return pe("MuiInputLabel",e)}de("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const TO=e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:s,variant:l,required:c}=e,d={root:["root",r&&"formControl",!s&&"animated",o&&"shrink",n&&n!=="medium"&&`size${te(n)}`,l],asterisk:[c&&"asterisk"]},p=ue(d,EO,t);return{...t,...p}},OO=G(Pg,{shouldForwardProp:e=>ft(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${ci.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(he(({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:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:n})=>t==="filled"&&r.shrink&&n==="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:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Ig=T.forwardRef(function(t,r){const n=fe({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:s,shrink:l,variant:c,className:d,...p}=n,u=hr();let h=l;typeof h>"u"&&u&&(h=u.filled||u.focused||u.adornedStart);const v=Rr({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),g={...n,disableAnimation:o,formControl:u,shrink:h,size:v.size,variant:v.variant,required:v.required,focused:v.focused},y=TO(g);return a.jsx(OO,{"data-shrink":h,ref:r,className:se(y.root,d),...p,ownerState:g,classes:y})});process.env.NODE_ENV!=="production"&&(Ig.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["error","info","primary","secondary","success","warning"]),i.string]),disableAnimation:i.bool,disabled:i.bool,error:i.bool,focused:i.bool,margin:i.oneOf(["dense"]),required:i.bool,shrink:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOf(["filled","outlined","standard"])});const di=T.createContext({});process.env.NODE_ENV!=="production"&&(di.displayName="ListContext");function kO(e){return pe("MuiList",e)}de("MuiList",["root","padding","dense","subheader"]);const PO=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return ue({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},kO,t)},IO=G("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.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}}]}),Ng=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiList"}),{children:o,className:s,component:l="ul",dense:c=!1,disablePadding:d=!1,subheader:p,...u}=n,h=T.useMemo(()=>({dense:c}),[c]),v={...n,component:l,dense:c,disablePadding:d},g=PO(v);return a.jsx(di.Provider,{value:h,children:a.jsxs(IO,{as:l,className:se(g.root,s),ref:r,ownerState:v,...u,children:[p,o]})})});process.env.NODE_ENV!=="production"&&(Ng.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,dense:i.bool,disablePadding:i.bool,subheader:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const _g=de("MuiListItemIcon",["root","alignItemsFlexStart"]);function NO(e){return pe("MuiListItemText",e)}const Yn=de("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),_O=e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:s}=e;return ue({root:["root",r&&"inset",s&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},NO,t)},AO=G("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Yn.primary}`]:t.primary},{[`& .${Yn.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${jh.root}:where(& .${Yn.primary})`]:{display:"block"},[`.${jh.root}:where(& .${Yn.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Hc=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiListItemText"}),{children:o,className:s,disableTypography:l=!1,inset:c=!1,primary:d,primaryTypographyProps:p,secondary:u,secondaryTypographyProps:h,slots:v={},slotProps:g={},...y}=n,{dense:f}=T.useContext(di);let m=d??o,x=u;const b={...n,disableTypography:l,inset:c,primary:!!m,secondary:!!x,dense:f},w=_O(b),S={slots:v,slotProps:{primary:p,secondary:h,...g}},[C,O]=ge("root",{className:se(w.root,s),elementType:AO,externalForwardedProps:{...S,...y},ownerState:b,ref:r}),[I,F]=ge("primary",{className:w.primary,elementType:P,externalForwardedProps:S,ownerState:b}),[D,L]=ge("secondary",{className:w.secondary,elementType:P,externalForwardedProps:S,ownerState:b});return m!=null&&m.type!==P&&!l&&(m=a.jsx(I,{variant:f?"body2":"body1",component:F?.variant?void 0:"span",...F,children:m})),x!=null&&x.type!==P&&!l&&(x=a.jsx(D,{variant:"body2",color:"textSecondary",...L,children:x})),a.jsxs(C,{...O,children:[m,x]})});process.env.NODE_ENV!=="production"&&(Hc.propTypes={children:i.node,classes:i.object,className:i.string,disableTypography:i.bool,inset:i.bool,primary:i.node,primaryTypographyProps:i.object,secondary:i.node,secondaryTypographyProps:i.object,slotProps:i.shape({primary:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),secondary:i.oneOfType([i.func,i.object])}),slots:i.shape({primary:i.elementType,root:i.elementType,secondary:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function Rc(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Ag(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Mg(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join(""))}function pi(e,t,r,n,o,s){let l=!1,c=o(e,t,t?r:!1);for(;c;){if(c===e.firstChild){if(l)return!1;l=!0}const d=n?!1:c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||!Mg(c,s)||d)c=o(e,c,r);else return c.focus(),!0}return!1}const $g=T.forwardRef(function(t,r){const{actions:n,autoFocus:o=!1,autoFocusItem:s=!1,children:l,className:c,disabledItemsFocusable:d=!1,disableListWrap:p=!1,onKeyDown:u,variant:h="selectedMenu",...v}=t,g=T.useRef(null),y=T.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Xt(()=>{o&&g.current.focus()},[o]),T.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(w,{direction:S})=>{const C=!g.current.style.width;if(w.clientHeight<g.current.clientHeight&&C){const O=`${bg(kr(w))}px`;g.current.style[S==="rtl"?"paddingLeft":"paddingRight"]=O,g.current.style.width=`calc(100% + ${O})`}return g.current}}),[]);const f=w=>{const S=g.current,C=w.key;if(w.ctrlKey||w.metaKey||w.altKey){u&&u(w);return}const I=ii(gt(S));if(C==="ArrowDown")w.preventDefault(),pi(S,I,p,d,Rc);else if(C==="ArrowUp")w.preventDefault(),pi(S,I,p,d,Ag);else if(C==="Home")w.preventDefault(),pi(S,null,p,d,Rc);else if(C==="End")w.preventDefault(),pi(S,null,p,d,Ag);else if(C.length===1){const F=y.current,D=C.toLowerCase(),L=performance.now();F.keys.length>0&&(L-F.lastTime>500?(F.keys=[],F.repeating=!0,F.previousKeyMatched=!0):F.repeating&&D!==F.keys[0]&&(F.repeating=!1)),F.lastTime=L,F.keys.push(D);const z=I&&!F.repeating&&Mg(I,F);F.previousKeyMatched&&(z||pi(S,I,!1,d,Rc,F))?w.preventDefault():F.previousKeyMatched=!1}u&&u(w)},m=Je(g,r);let x=-1;T.Children.forEach(l,(w,S)=>{if(!T.isValidElement(w)){x===S&&(x+=1,x>=l.length&&(x=-1));return}process.env.NODE_ENV!=="production"&&mc.isFragment(w)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
173
|
+
`)),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>=l.length&&(x=-1))});const b=T.Children.map(l,(w,S)=>{if(S===x){const C={};return s&&(C.autoFocus=!0),w.props.tabIndex===void 0&&h==="selectedMenu"&&(C.tabIndex=0),T.cloneElement(w,C)}return w});return a.jsx(Ng,{role:"menu",ref:m,className:c,onKeyDown:f,tabIndex:o?0:-1,...v,children:b})});process.env.NODE_ENV!=="production"&&($g.propTypes={autoFocus:i.bool,autoFocusItem:i.bool,children:i.node,className:i.string,disabledItemsFocusable:i.bool,disableListWrap:i.bool,onKeyDown:i.func,variant:i.oneOf(["menu","selectedMenu"])});function MO(e){return pe("MuiPopover",e)}de("MuiPopover",["root","paper"]);function Dg(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Fg(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function zg(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function ui(e){return typeof e=="function"?e():e}const $O=e=>{const{classes:t}=e;return ue({root:["root"],paper:["paper"]},MO,t)},DO=G(si,{name:"MuiPopover",slot:"Root"})({}),jg=G(Jt,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),qc=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiPopover"}),{action:o,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:u,container:h,elevation:v=8,marginThreshold:g=16,open:y,PaperProps:f={},slots:m={},slotProps:x={},transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:w,transitionDuration:S="auto",TransitionProps:C={},disableScrollLock:O=!1,...I}=n,F=T.useRef(),D={...n,anchorOrigin:l,anchorReference:d,elevation:v,marginThreshold:g,transformOrigin:b,TransitionComponent:w,transitionDuration:S,TransitionProps:C},L=$O(D),z=T.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 Z=ui(s),re=Z&&Z.nodeType===1?Z:gt(F.current).body,q=re.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const ce=re.getBoundingClientRect();process.env.NODE_ENV!=="test"&&ce.top===0&&ce.left===0&&ce.right===0&&ce.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(`
|
|
174
|
+
`))}return{top:q.top+Dg(q,l.vertical),left:q.left+Fg(q,l.horizontal)}},[s,l.horizontal,l.vertical,c,d]),k=T.useCallback(Z=>({vertical:Dg(Z,b.vertical),horizontal:Fg(Z,b.horizontal)}),[b.horizontal,b.vertical]),j=T.useCallback(Z=>{const re={width:Z.offsetWidth,height:Z.offsetHeight},q=k(re);if(d==="none")return{top:null,left:null,transformOrigin:zg(q)};const ce=z();let ie=ce.top-q.vertical,ye=ce.left-q.horizontal;const Le=ie+re.height,Oe=ye+re.width,ke=kr(ui(s)),Ce=ke.innerHeight-g,Ve=ke.innerWidth-g;if(g!==null&&ie<g){const Ne=ie-g;ie-=Ne,q.vertical+=Ne}else if(g!==null&&Le>Ce){const Ne=Le-Ce;ie-=Ne,q.vertical+=Ne}if(process.env.NODE_ENV!=="production"&&re.height>Ce&&re.height&&Ce&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${re.height-Ce}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
175
|
+
`)),g!==null&&ye<g){const Ne=ye-g;ye-=Ne,q.horizontal+=Ne}else if(Oe>Ve){const Ne=Oe-Ve;ye-=Ne,q.horizontal+=Ne}return{top:`${Math.round(ie)}px`,left:`${Math.round(ye)}px`,transformOrigin:zg(q)}},[s,d,z,k,g]),[_,M]=T.useState(y),N=T.useCallback(()=>{const Z=F.current;if(!Z)return;const re=j(Z);re.top!==null&&Z.style.setProperty("top",re.top),re.left!==null&&(Z.style.left=re.left),Z.style.transformOrigin=re.transformOrigin,M(!0)},[j]);T.useEffect(()=>(O&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N)),[s,O,N]);const A=()=>{N()},W=()=>{M(!1)};T.useEffect(()=>{y&&N()}),T.useImperativeHandle(o,()=>y?{updatePosition:()=>{N()}}:null,[y,N]),T.useEffect(()=>{if(!y)return;const Z=yh(()=>{N()}),re=kr(ui(s));return re.addEventListener("resize",Z),()=>{Z.clear(),re.removeEventListener("resize",Z)}},[s,y,N]);let H=S;const B={slots:{transition:w,...m},slotProps:{transition:C,paper:f,...x}},[U,X]=ge("transition",{elementType:qn,externalForwardedProps:B,ownerState:D,getSlotProps:Z=>({...Z,onEntering:(re,q)=>{Z.onEntering?.(re,q),A()},onExited:re=>{Z.onExited?.(re),W()}}),additionalProps:{appear:!0,in:y}});S==="auto"&&!U.muiSupportAuto&&(H=void 0);const J=h||(s?gt(ui(s)).body:void 0),[Q,{slots:Y,slotProps:K,...ee}]=ge("root",{ref:r,elementType:DO,externalForwardedProps:{...B,...I},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:m.backdrop},slotProps:{backdrop:bh(typeof x.backdrop=="function"?x.backdrop(D):x.backdrop,{invisible:!0})},container:J,open:y},ownerState:D,className:se(L.root,u)}),[oe,ae]=ge("paper",{ref:F,className:L.paper,elementType:jg,externalForwardedProps:B,shouldForwardComponentProp:!0,additionalProps:{elevation:v,style:_?void 0:{opacity:0}},ownerState:D});return a.jsx(Q,{...ee,...!Ks(Q)&&{slots:Y,slotProps:K,disableScrollLock:O},children:a.jsx(U,{...X,timeout:H,children:a.jsx(oe,{...ae,children:p})})})});process.env.NODE_ENV!=="production"&&(qc.propTypes={action:vt,anchorEl:Pr(i.oneOfType([Nr,i.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=ui(e.anchorEl);if(t&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.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(`
|
|
173
176
|
`))}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(`
|
|
174
|
-
`))}return null}),anchorOrigin:i.shape({horizontal:i.oneOfType([i.oneOf(["center","left","right"]),i.number]).isRequired,vertical:i.oneOfType([i.oneOf(["bottom","center","top"]),i.number]).isRequired}),anchorPosition:i.shape({left:i.number.isRequired,top:i.number.isRequired}),anchorReference:i.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:i.elementType,BackdropProps:i.object,children:i.node,classes:i.object,className:i.string,container:i.oneOfType([
|
|
175
|
-
`)),U.props.disabled||(b==="selectedMenu"&&U.props.selected||L===-1)&&(L=B))});const O={slots:S,slotProps:{list:u,transition:f,paper:h,...v}},M=Kw({elementType:S.root,externalSlotProps:v.root,ownerState:E,className:[w.root,l]}),[A,$]=me("paper",{className:w.paper,elementType:bE,externalForwardedProps:O,shouldForwardComponentProp:!0,ownerState:E}),[D,q]=me("list",{className:te(w.list,u.className),elementType:yE,shouldForwardComponentProp:!0,externalForwardedProps:O,getSlotProps:U=>({...U,onKeyDown:B=>{N(B),U.onKeyDown?.(B)}}),ownerState:E}),H=typeof O.slotProps.transition=="function"?O.slotProps.transition(E):O.slotProps.transition;return s.jsx(gE,{onClose:d,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?pE:fE,slots:{root:S.root,paper:A,backdrop:S.backdrop,...S.transition&&{transition:S.transition}},slotProps:{root:M,paper:$,backdrop:typeof v.backdrop=="function"?v.backdrop(E):v.backdrop,transition:{...H,onEntering:(...U)=>{_(...U),H?.onEntering?.(...U)}}},open:p,ref:r,transitionDuration:x,ownerState:E,...T,classes:y,children:s.jsx(D,{actions:z,autoFocus:o&&(L===-1||c),autoFocusItem:I,variant:b,...q,children:a})})});process.env.NODE_ENV!=="production"&&(Ao.propTypes={anchorEl:i.oneOfType([So,i.func]),autoFocus:i.bool,children:i.node,classes:i.object,className:i.string,disableAutoFocusItem:i.bool,MenuListProps:i.object,onClose:i.func,open:i.bool.isRequired,PaperProps:i.object,PopoverClasses:i.object,slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),list:i.oneOfType([i.func,i.object]),paper:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,list:i.elementType,paper:i.elementType,root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),transitionDuration:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})]),TransitionProps:i.object,variant:i.oneOf(["menu","selectedMenu"])});function mE(e){return de("MuiMenuItem",e)}const Mo=le("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),xE=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},vE=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:l}=e,u=pe({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},mE,l);return{...l,...u}},SE=G(vo,{shouldForwardProp:e=>ot(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:xE})(he(({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"}},[`&.${Mo.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Mo.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Mo.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)}},[`&.${Mo.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Mo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${bh.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${bh.inset}`]:{marginLeft:52},[`& .${En.root}`]:{marginTop:0,marginBottom:0},[`& .${En.inset}`]:{paddingLeft:36},[`& .${Th.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,[`& .${Th.root} svg`]:{fontSize:"1.25rem"}}}]}))),Fe=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:l=!1,divider:c=!1,disableGutters:u=!1,focusVisibleClassName:d,role:p="menuitem",tabIndex:h,className:y,...x}=n,g=k.useContext(Io),f=k.useMemo(()=>({dense:l||g.dense||!1,disableGutters:u}),[g.dense,l,u]),b=k.useRef(null);dr(()=>{o&&(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."))},[o]);const S={...n,dense:f.dense,divider:c,disableGutters:u},v=vE(n),T=Qe(b,r);let C;return n.disabled||(C=h!==void 0?h:-1),s.jsx(Io.Provider,{value:f,children:s.jsx(SE,{ref:T,role:p,tabIndex:C,component:a,focusVisibleClassName:te(v.focusVisible,d),className:te(v.root,y),...x,ownerState:S,classes:v})})});process.env.NODE_ENV!=="production"&&(Fe.propTypes={autoFocus:i.bool,children:i.node,classes:i.object,className:i.string,component:i.elementType,dense:i.bool,disabled:i.bool,disableGutters:i.bool,divider:i.bool,focusVisibleClassName:i.string,role:i.string,selected:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),tabIndex:i.number});function wE(e){return de("MuiNativeSelect",e)}const ec=le("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),CE=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:l}=e,c={select:["select",r,n&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${R(r)}`,a&&"iconOpen",n&&"disabled"]};return pe(c,wE,t)},Dh=G("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${ec.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}}}]})),EE=G(Dh,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ot,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${ec.multiple}`]:t.multiple}]}})({}),zh=G("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${ec.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}}]})),TE=G(zh,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${R(r.variant)}`],r.open&&t.iconOpen]}})({}),$h=k.forwardRef(function(t,r){const{className:n,disabled:o,error:a,IconComponent:l,inputRef:c,variant:u="standard",...d}=t,p={...t,disabled:o,variant:u,error:a},h=CE(p);return s.jsxs(k.Fragment,{children:[s.jsx(EE,{ownerState:p,className:te(h.select,n),disabled:o,ref:c||r,...d}),t.multiple?null:s.jsx(TE,{as:l,ownerState:p,className:h.icon})]})});process.env.NODE_ENV!=="production"&&($h.propTypes={children:i.node,classes:i.object,className:i.string,disabled:i.bool,error:i.bool,IconComponent:i.elementType.isRequired,inputRef:wt,multiple:i.bool,name:i.string,onChange:i.func,value:i.any,variant:i.oneOf(["standard","outlined","filled"])});var Fh;const kE=G("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:ot})({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%"}),OE=G("legend",{name:"MuiNotchedOutlined",shouldForwardProp:ot})(he(({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 Bh(e){const{children:t,classes:r,className:n,label:o,notched:a,...l}=e,c=o!=null&&o!=="",u={...e,notched:a,withLabel:c};return s.jsx(kE,{"aria-hidden":!0,className:n,ownerState:u,...l,children:s.jsx(OE,{ownerState:u,children:c?s.jsx("span",{children:o}):Fh||(Fh=s.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&(Bh.propTypes={children:i.node,classes:i.object,className:i.string,label:i.node,notched:i.bool.isRequired,style:i.object});const PE=e=>{const{classes:t}=e,n=pe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},r2,t);return{...t,...n}},IE=G(Es,{shouldForwardProp:e=>ot(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ws})(he(({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 .${Qt.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Qt.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Qt.focused} .${Qt.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(bt()).map(([r])=>({props:{color:r},style:{[`&.${Qt.focused} .${Qt.notchedOutline}`]:{borderColor:(e.vars||e).palette[r].main}}})),{props:{},style:{[`&.${Qt.error} .${Qt.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Qt.disabled} .${Qt.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),NE=G(Bh,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(he(({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}})),_E=G(Ts,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Cs})(he(({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}}]}))),Ms=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:a=!1,inputComponent:l="input",label:c,multiline:u=!1,notched:d,slots:p={},slotProps:h={},type:y="text",...x}=n,g=PE(n),f=Jt(),b=Tr({props:n,muiFormControl:f,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S={...n,color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:f,fullWidth:a,hiddenLabel:b.hiddenLabel,multiline:u,size:b.size,type:y},v=p.root??o.Root??IE,T=p.input??o.Input??_E,[C,E]=me("notchedOutline",{elementType:NE,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:S,externalForwardedProps:{slots:p,slotProps:h},additionalProps:{label:c!=null&&c!==""&&b.required?s.jsxs(k.Fragment,{children:[c," ","*"]}):c}});return s.jsx(mn,{slots:{root:v,input:T},slotProps:h,renderSuffix:w=>s.jsx(C,{...E,notched:typeof d<"u"?d:!!(w.startAdornment||w.filled||w.focused)}),fullWidth:a,inputComponent:l,multiline:u,ref:r,type:y,...x,classes:{...g,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Ms.propTypes={autoComplete:i.string,autoFocus:i.bool,classes:i.object,color:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),defaultValue:i.any,disabled:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,id:i.string,inputComponent:i.elementType,inputProps:i.object,inputRef:wt,label:i.node,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,notched:i.bool,onChange:i.func,placeholder:i.string,readOnly:i.bool,required:i.bool,rows:i.oneOfType([i.number,i.string]),slotProps:i.shape({input:i.object,notchedOutline:i.oneOfType([i.func,i.object]),root:i.object}),slots:i.shape({input:i.elementType,notchedOutline:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any}),Ms.muiName="Input";const AE=lt(s.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"),ME=lt(s.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"),DE=G("span",{name:"MuiRadioButtonIcon",shouldForwardProp:ot})({position:"relative",display:"flex"}),zE=G(AE,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),$E=G(ME,{name:"MuiRadioButtonIcon"})(he(({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 tc(e){const{checked:t=!1,classes:r={},fontSize:n}=e,o={...e,checked:t};return s.jsxs(DE,{className:r.root,ownerState:o,children:[s.jsx(zE,{fontSize:n,className:r.background,ownerState:o}),s.jsx($E,{fontSize:n,className:r.dot,ownerState:o})]})}process.env.NODE_ENV!=="production"&&(tc.propTypes={checked:i.bool,classes:i.object,fontSize:i.oneOf(["small","medium"])});const rc=k.createContext(void 0);process.env.NODE_ENV!=="production"&&(rc.displayName="RadioGroupContext");function FE(){return k.useContext(rc)}function BE(e){return de("MuiRadio",e)}const jh=le("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),jE=e=>{const{classes:t,color:r,size:n}=e,o={root:["root",`color${R(r)}`,n!=="medium"&&`size${R(n)}`]};return{...t,...pe(o,BE,t)}},WE=G(Os,{shouldForwardProp:e=>ot(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size!=="medium"&&t[`size${R(r.size)}`],t[`color${R(r.color)}`]]}})(he(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${jh.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(bt()).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(bt()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${jh.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function LE(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const VE=s.jsx(tc,{checked:!0}),UE=s.jsx(tc,{}),Ds=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiRadio"}),{checked:o,checkedIcon:a=VE,color:l="primary",icon:c=UE,name:u,onChange:d,size:p="medium",className:h,disabled:y,disableRipple:x=!1,slots:g={},slotProps:f={},inputProps:b,...S}=n,v=Jt();let T=y;v&&typeof T>"u"&&(T=v.disabled),T??=!1;const C={...n,disabled:T,disableRipple:x,color:l,size:p},E=jE(C),w=FE();let I=o;const z=Al(d,w&&w.onChange);let _=u;w&&(typeof I>"u"&&(I=LE(w.value,n.value)),typeof _>"u"&&(_=w.name));const N=f.input??b,[L,O]=me("root",{ref:r,elementType:WE,className:te(E.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:f,...S},getSlotProps:M=>({...M,onChange:(A,...$)=>{M.onChange?.(A,...$),z(A,...$)}}),ownerState:C,additionalProps:{type:"radio",icon:k.cloneElement(c,{fontSize:c.props.fontSize??p}),checkedIcon:k.cloneElement(a,{fontSize:a.props.fontSize??p}),disabled:T,name:_,checked:I,slots:g,slotProps:{input:typeof N=="function"?N(C):N}}});return s.jsx(L,{...O,classes:E})});process.env.NODE_ENV!=="production"&&(Ds.propTypes={checked:i.bool,checkedIcon:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["default","primary","secondary","error","info","success","warning"]),i.string]),disabled:i.bool,disableRipple:i.bool,icon:i.node,id:i.string,inputProps:i.object,inputRef:wt,name:i.string,onChange:i.func,required:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({input:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({input:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.any});function HE(e){return de("MuiRadioGroup",e)}le("MuiRadioGroup",["root","row","error"]);const qE=e=>{const{classes:t,row:r,error:n}=e;return pe({root:["root",r&&"row",n&&"error"]},HE,t)},zs=k.forwardRef(function(t,r){const{actions:n,children:o,className:a,defaultValue:l,name:c,onChange:u,value:d,...p}=t,h=k.useRef(null),y=qE(t),[x,g]=ds({controlled:d,default:l,name:"RadioGroup"});k.useImperativeHandle(n,()=>({focus:()=>{let v=h.current.querySelector("input:not(:disabled):checked");v||(v=h.current.querySelector("input:not(:disabled)")),v&&v.focus()}}),[]);const f=Qe(r,h),b=fn(c),S=k.useMemo(()=>({name:b,onChange(v){g(v.target.value),u&&u(v,v.target.value)},value:x}),[b,u,g,x]);return s.jsx(rc.Provider,{value:S,children:s.jsx(mh,{role:"radiogroup",ref:f,className:te(y.root,a),...p,children:o})})});process.env.NODE_ENV!=="production"&&(zs.propTypes={children:i.node,className:i.string,defaultValue:i.any,name:i.string,onChange:i.func,value:i.any});function Wh(e){return de("MuiSelect",e)}const Do=le("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Lh;const YE=G(Dh,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Do.select}`]:t.select},{[`&.${Do.select}`]:t[r.variant]},{[`&.${Do.error}`]:t.error},{[`&.${Do.multiple}`]:t.multiple}]}})({[`&.${Do.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),GE=G(zh,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${R(r.variant)}`],r.open&&t.iconOpen]}})({}),KE=G("input",{shouldForwardProp:e=>Of(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Vh(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function RE(e){return e==null||typeof e=="string"&&!e.trim()}const XE=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:l}=e,c={select:["select",r,n&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${R(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return pe(c,Wh,t)},Uh=k.forwardRef(function(t,r){const{"aria-describedby":n,"aria-label":o,autoFocus:a,autoWidth:l,children:c,className:u,defaultOpen:d,defaultValue:p,disabled:h,displayEmpty:y,error:x=!1,IconComponent:g,inputRef:f,labelId:b,MenuProps:S={},multiple:v,name:T,onBlur:C,onChange:E,onClose:w,onFocus:I,onKeyDown:z,onMouseDown:_,onOpen:N,open:L,readOnly:O,renderValue:M,required:A,SelectDisplayProps:$={},tabIndex:D,type:q,value:H,variant:U="standard",...B}=t,[W,K]=ds({controlled:H,default:p,name:"Select"}),[J,ee]=ds({controlled:L,default:d,name:"Select"}),Q=k.useRef(null),Z=k.useRef(null),[re,ue]=k.useState(null),{current:ne}=k.useRef(L!=null),[X,ie]=k.useState(),Y=Qe(r,f),ge=k.useCallback(se=>{Z.current=se,se&&ue(se)},[]),oe=re?.parentNode;k.useImperativeHandle(Y,()=>({focus:()=>{Z.current.focus()},node:Q.current,value:W}),[W]),k.useEffect(()=>{d&&J&&re&&!ne&&(ie(l?null:oe.clientWidth),Z.current.focus())},[re,l]),k.useEffect(()=>{a&&Z.current.focus()},[a]),k.useEffect(()=>{if(!b)return;const se=gt(Z.current).getElementById(b);if(se){const Se=()=>{getSelection().isCollapsed&&Z.current.focus()};return se.addEventListener("click",Se),()=>{se.removeEventListener("click",Se)}}},[b]);const ve=(se,Se)=>{se?N&&N(Se):w&&w(Se),ne||(ie(l?null:oe.clientWidth),ee(se))},At=se=>{_?.(se),se.button===0&&(se.preventDefault(),Z.current.focus(),ve(!0,se))},dt=se=>{ve(!1,se)},He=k.Children.toArray(c),Ct=se=>{const Se=He.find(et=>et.props.value===se.target.value);Se!==void 0&&(K(Se.props.value),E&&E(se,Se))},Lt=se=>Se=>{let et;if(Se.currentTarget.hasAttribute("tabindex")){if(v){et=Array.isArray(W)?W.slice():[];const In=W.indexOf(se.props.value);In===-1?et.push(se.props.value):et.splice(In,1)}else et=se.props.value;if(se.props.onClick&&se.props.onClick(Se),W!==et&&(K(et),E)){const In=Se.nativeEvent||Se,ng=new In.constructor(In.type,In);Object.defineProperty(ng,"target",{writable:!0,value:{value:et,name:T}}),E(ng,se)}v||ve(!1,Se)}},Ge=se=>{O||([" ","ArrowUp","ArrowDown","Enter"].includes(se.key)&&(se.preventDefault(),ve(!0,se)),z?.(se))},ce=re!==null&&J,Yr=se=>{!ce&&C&&(Object.defineProperty(se,"target",{writable:!0,value:{value:W,name:T}}),C(se))};delete B["aria-invalid"];let Ke,qs;const kr=[];let Gr=!1,Pn=!1;(Ss({value:W})||y)&&(M?Ke=M(W):Gr=!0);const Ho=He.map(se=>{if(!k.isValidElement(se))return null;process.env.NODE_ENV!=="production"&&Ml.isFragment(se)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
176
|
-
`));let
|
|
177
|
-
`))}},[Pn,He,v,T,W]),Gr&&(v?kr.length===0?Ke=null:Ke=kr.reduce((se,Se,et)=>(se.push(Se),et<kr.length-1&&se.push(", "),se),[]):Ke=qs);let qo=X;!l&&ne&&re&&(qo=oe.clientWidth);let Me;typeof D<"u"?Me=D:Me=h?null:0;const Yo=$.id||(T?`mui-component-select-${T}`:void 0),gr={...t,variant:U,value:W,open:ce,error:x},Mc=XE(gr),Dc={...S.PaperProps,...typeof S.slotProps?.paper=="function"?S.slotProps.paper(gr):S.slotProps?.paper},Lk={...S.MenuListProps,...typeof S.slotProps?.list=="function"?S.slotProps.list(gr):S.slotProps?.list},rg=fn();return s.jsxs(k.Fragment,{children:[s.jsx(YE,{as:"div",ref:ge,tabIndex:Me,role:"combobox","aria-controls":ce?rg:void 0,"aria-disabled":h?"true":void 0,"aria-expanded":ce?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[b,Yo].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":A?"true":void 0,"aria-invalid":x?"true":void 0,onKeyDown:Ge,onMouseDown:h||O?null:At,onBlur:Yr,onFocus:I,...$,ownerState:gr,className:te($.className,Mc.select,u),id:Yo,children:RE(Ke)?Lh||(Lh=s.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Ke}),s.jsx(KE,{"aria-invalid":x,value:Array.isArray(W)?W.join(","):W,name:T,ref:Q,"aria-hidden":!0,onChange:Ct,tabIndex:-1,disabled:h,className:Mc.nativeInput,autoFocus:a,required:A,...B,ownerState:gr}),s.jsx(GE,{as:g,className:Mc.icon,ownerState:gr}),s.jsx(Ao,{id:`menu-${T||""}`,anchorEl:oe,open:ce,onClose:dt,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...S,slotProps:{...S.slotProps,list:{"aria-labelledby":b,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:rg,...Lk},paper:{...Dc,style:{minWidth:qo,...Dc!=null?Dc.style:null}}},children:Ho})]})});process.env.NODE_ENV!=="production"&&(Uh.propTypes={"aria-describedby":i.string,"aria-label":i.string,autoFocus:i.bool,autoWidth:i.bool,children:i.node,classes:i.object,className:i.string,defaultOpen:i.bool,defaultValue:i.any,disabled:i.bool,displayEmpty:i.bool,error:i.bool,IconComponent:i.elementType.isRequired,inputRef:wt,labelId:i.string,MenuProps:i.object,multiple:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onClose:i.func,onFocus:i.func,onOpen:i.func,open:i.bool,readOnly:i.bool,renderValue:i.func,required:i.bool,SelectDisplayProps:i.object,tabIndex:i.oneOfType([i.number,i.string]),type:i.any,value:i.any,variant:i.oneOf(["standard","outlined","filled"])});const JE=e=>{const{classes:t}=e,n=pe({root:["root"]},Wh,t);return{...t,...n}},nc={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>ot(e)&&e!=="variant"},QE=G(As,nc)(""),ZE=G(Ms,nc)(""),eT=G(_s,nc)(""),Bt=k.forwardRef(function(t,r){const n=fe({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:l={},className:c,defaultOpen:u=!1,displayEmpty:d=!1,IconComponent:p=o2,id:h,input:y,inputProps:x,label:g,labelId:f,MenuProps:b,multiple:S=!1,native:v=!1,onClose:T,onOpen:C,open:E,renderValue:w,SelectDisplayProps:I,variant:z="outlined",..._}=n,N=v?$h:Uh,L=Jt(),O=Tr({props:n,muiFormControl:L,states:["variant","error"]}),M=O.variant||z,A={...n,variant:M,classes:l},$=JE(A),{root:D,...q}=$,H=y||{standard:s.jsx(QE,{ownerState:A}),outlined:s.jsx(ZE,{label:g,ownerState:A}),filled:s.jsx(eT,{ownerState:A})}[M],U=Qe(r,bn(H));return s.jsx(k.Fragment,{children:k.cloneElement(H,{inputComponent:N,inputProps:{children:a,error:O.error,IconComponent:p,variant:M,type:void 0,multiple:S,...v?{id:h}:{autoWidth:o,defaultOpen:u,displayEmpty:d,labelId:f,MenuProps:b,onClose:T,onOpen:C,open:E,renderValue:w,SelectDisplayProps:{id:h,...I}},...x,classes:x?nt(q,x.classes):q,...y?y.props.inputProps:{}},...(S&&v||d)&&M==="outlined"?{notched:!0}:{},ref:U,className:te(H.props.className,c,$.root),...!y&&{variant:M},..._})})});process.env.NODE_ENV!=="production"&&(Bt.propTypes={autoWidth:i.bool,children:i.node,classes:i.object,className:i.string,defaultOpen:i.bool,defaultValue:i.any,displayEmpty:i.bool,IconComponent:i.elementType,id:i.string,input:i.element,inputProps:i.object,label:i.node,labelId:i.string,MenuProps:i.object,multiple:i.bool,native:i.bool,onChange:i.func,onClose:i.func,onOpen:i.func,open:i.bool,renderValue:i.func,SelectDisplayProps:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.oneOfType([i.oneOf([""]),i.any]),variant:i.oneOf(["filled","outlined","standard"])}),Bt.muiName="Select";function tT(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:a}=e,l=jl();k.useEffect(()=>{if(!o)return;function S(v){v.defaultPrevented||v.key==="Escape"&&n?.(v,"escapeKeyDown")}return document.addEventListener("keydown",S),()=>{document.removeEventListener("keydown",S)}},[o,n]);const c=Rt((S,v)=>{n?.(S,v)}),u=Rt(S=>{!n||S==null||l.start(S,()=>{c(null,"timeout")})});k.useEffect(()=>(o&&u(t),l.clear),[o,t,u,l]);const d=S=>{n?.(S,"clickaway")},p=l.clear,h=k.useCallback(()=>{t!=null&&u(a??t*.5)},[t,a,u]),y=S=>v=>{const T=S.onBlur;T?.(v),h()},x=S=>v=>{const T=S.onFocus;T?.(v),p()},g=S=>v=>{const T=S.onMouseEnter;T?.(v),p()},f=S=>v=>{const T=S.onMouseLeave;T?.(v),h()};return k.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",h),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",p)}},[r,o,h,p]),{getRootProps:(S={})=>{const v={...gs(e),...gs(S)};return{role:"presentation",...S,...v,onBlur:y(v),onFocus:x(v),onMouseEnter:g(v),onMouseLeave:f(v)}},onClickAway:d}}function rT(e){return de("MuiSnackbarContent",e)}le("MuiSnackbarContent",["root","message","action"]);const nT=e=>{const{classes:t}=e;return pe({root:["root"],action:["action"],message:["message"]},rT,t)},oT=G(Re,{name:"MuiSnackbarContent",slot:"Root"})(he(({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(Sl(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:Sl(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),iT=G("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),sT=G("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Hh=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiSnackbarContent"}),{action:o,className:a,message:l,role:c="alert",...u}=n,d=n,p=nT(d);return s.jsxs(oT,{role:c,elevation:6,className:te(p.root,a),ownerState:d,ref:r,...u,children:[s.jsx(iT,{className:p.message,ownerState:d,children:l}),o?s.jsx(sT,{className:p.action,ownerState:d,children:o}):null]})});process.env.NODE_ENV!=="production"&&(Hh.propTypes={action:i.node,classes:i.object,className:i.string,message:i.node,role:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function aT(e){return de("MuiSnackbar",e)}le("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const lT=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${R(r.vertical)}${R(r.horizontal)}`]};return pe(n,aT,t)},cT=G("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${R(r.anchorOrigin.vertical)}${R(r.anchorOrigin.horizontal)}`]]}})(he(({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%)"}}}]}))),Tn=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiSnackbar"}),o=We(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:l,anchorOrigin:{vertical:c,horizontal:u}={vertical:"bottom",horizontal:"left"},autoHideDuration:d=null,children:p,className:h,ClickAwayListenerProps:y,ContentProps:x,disableWindowBlurListener:g=!1,message:f,onBlur:b,onClose:S,onFocus:v,onMouseEnter:T,onMouseLeave:C,open:E,resumeHideDuration:w,slots:I={},slotProps:z={},TransitionComponent:_,transitionDuration:N=a,TransitionProps:{onEnter:L,onExited:O,...M}={},...A}=n,$={...n,anchorOrigin:{vertical:c,horizontal:u},autoHideDuration:d,disableWindowBlurListener:g,TransitionComponent:_,transitionDuration:N},D=lT($),{getRootProps:q,onClickAway:H}=tT($),[U,B]=k.useState(!0),W=ge=>{B(!0),O&&O(ge)},K=(ge,oe)=>{B(!1),L&&L(ge,oe)},J={slots:{transition:_,...I},slotProps:{content:x,clickAwayListener:y,transition:M,...z}},[ee,Q]=me("root",{ref:r,className:[D.root,h],elementType:cT,getSlotProps:q,externalForwardedProps:{...J,...A},ownerState:$}),[Z,{ownerState:re,...ue}]=me("clickAwayListener",{elementType:Ps,externalForwardedProps:J,getSlotProps:ge=>({onClickAway:(...oe)=>{const ve=oe[0];ge.onClickAway?.(...oe),!ve?.defaultMuiPrevented&&H(...oe)}}),ownerState:$}),[ne,X]=me("content",{elementType:Hh,shouldForwardComponentProp:!0,externalForwardedProps:J,additionalProps:{message:f,action:l},ownerState:$}),[ie,Y]=me("transition",{elementType:Po,externalForwardedProps:J,getSlotProps:ge=>({onEnter:(...oe)=>{ge.onEnter?.(...oe),K(...oe)},onExited:(...oe)=>{ge.onExited?.(...oe),W(...oe)}}),additionalProps:{appear:!0,in:E,timeout:N,direction:c==="top"?"down":"up"},ownerState:$});return!E&&U?null:s.jsx(Z,{...ue,...I.clickAwayListener&&{ownerState:re},children:s.jsx(ee,{...Q,children:s.jsx(ie,{...Y,children:p||s.jsx(ne,{...X})})})})});process.env.NODE_ENV!=="production"&&(Tn.propTypes={action:i.node,anchorOrigin:i.shape({horizontal:i.oneOf(["center","left","right"]).isRequired,vertical:i.oneOf(["bottom","top"]).isRequired}),autoHideDuration:i.number,children:i.element,classes:i.object,className:i.string,ClickAwayListenerProps:i.object,ContentProps:i.object,disableWindowBlurListener:i.bool,key:()=>null,message:i.node,onBlur:i.func,onClose:i.func,onFocus:i.func,onMouseEnter:i.func,onMouseLeave:i.func,open:i.bool,resumeHideDuration:i.number,slotProps:i.shape({clickAwayListener:i.oneOfType([i.func,i.object]),content:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({clickAwayListener:i.elementType,content:i.elementType,root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})]),TransitionProps:i.object});function dT(e){return de("MuiSwitch",e)}const ct=le("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),uT=e=>{const{classes:t,edge:r,size:n,color:o,checked:a,disabled:l}=e,c={root:["root",r&&`edge${R(r)}`,`size${R(n)}`],switchBase:["switchBase",`color${R(o)}`,a&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=pe(c,dT,t);return{...t,...u}},pT=G("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${R(r.edge)}`],t[`size${R(r.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,[`& .${ct.thumb}`]:{width:16,height:16},[`& .${ct.switchBase}`]:{padding:4,[`&.${ct.checked}`]:{transform:"translateX(16px)"}}}}]}),fT=G(Os,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${ct.input}`]:t.input},r.color!=="default"&&t[`color${R(r.color)}`]]}})(he(({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}),[`&.${ct.checked}`]:{transform:"translateX(20px)"},[`&.${ct.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${ct.checked} + .${ct.track}`]:{opacity:.5},[`&.${ct.disabled} + .${ct.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${ct.input}`]:{left:"-100%",width:"300%"}})),he(({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(bt(["light"])).map(([t])=>({props:{color:t},style:{[`&.${ct.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"}},[`&.${ct.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)}`}},[`&.${ct.checked} + .${ct.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),hT=G("span",{name:"MuiSwitch",slot:"Track"})(he(({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}`}))),gT=G("span",{name:"MuiSwitch",slot:"Thumb"})(he(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Ur=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:l=!1,size:c="medium",sx:u,slots:d={},slotProps:p={},...h}=n,y={...n,color:a,edge:l,size:c},x=uT(y),g={slots:d,slotProps:p},[f,b]=me("root",{className:te(x.root,o),elementType:pT,externalForwardedProps:g,ownerState:y,additionalProps:{sx:u}}),[S,v]=me("thumb",{className:x.thumb,elementType:gT,externalForwardedProps:g,ownerState:y}),T=s.jsx(S,{...v}),[C,E]=me("track",{className:x.track,elementType:hT,externalForwardedProps:g,ownerState:y});return s.jsxs(f,{...b,children:[s.jsx(fT,{type:"checkbox",icon:T,checkedIcon:T,ref:r,ownerState:y,...h,classes:{...x,root:x.switchBase},slots:{...d.switchBase&&{root:d.switchBase},...d.input&&{input:d.input}},slotProps:{...p.switchBase&&{root:typeof p.switchBase=="function"?p.switchBase(y):p.switchBase},input:{role:"switch"},...p.input&&{input:typeof p.input=="function"?p.input(y):p.input}}}),s.jsx(C,{...E})]})});process.env.NODE_ENV!=="production"&&(Ur.propTypes={checked:i.bool,checkedIcon:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["default","primary","secondary","error","info","success","warning"]),i.string]),defaultChecked:i.bool,disabled:i.bool,disableRipple:i.bool,edge:i.oneOf(["end","start",!1]),icon:i.node,id:i.string,inputProps:i.object,inputRef:wt,onChange:i.func,required:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({input:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),switchBase:i.oneOfType([i.func,i.object]),thumb:i.oneOfType([i.func,i.object]),track:i.oneOfType([i.func,i.object])}),slots:i.shape({input:i.elementType,root:i.elementType,switchBase:i.elementType,thumb:i.elementType,track:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.any});const oc=k.createContext();process.env.NODE_ENV!=="production"&&(oc.displayName="TableContext");function bT(e){return de("MuiTable",e)}le("MuiTable",["root","stickyHeader"]);const yT=e=>{const{classes:t,stickyHeader:r}=e;return pe({root:["root",r&&"stickyHeader"]},bT,t)},mT=G("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(he(({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"}}]}))),qh="table",$s=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiTable"}),{className:o,component:a=qh,padding:l="normal",size:c="medium",stickyHeader:u=!1,...d}=n,p={...n,component:a,padding:l,size:c,stickyHeader:u},h=yT(p),y=k.useMemo(()=>({padding:l,size:c,stickyHeader:u}),[l,c,u]);return s.jsx(oc.Provider,{value:y,children:s.jsx(mT,{as:a,role:a===qh?null:"table",ref:r,className:te(h.root,o),ownerState:p,...d})})});process.env.NODE_ENV!=="production"&&($s.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,padding:i.oneOf(["checkbox","none","normal"]),size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),stickyHeader:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const zo=k.createContext();process.env.NODE_ENV!=="production"&&(zo.displayName="Tablelvl2Context");function xT(e){return de("MuiTableBody",e)}le("MuiTableBody",["root"]);const vT=e=>{const{classes:t}=e;return pe({root:["root"]},xT,t)},ST=G("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),wT={variant:"body"},Yh="tbody",Fs=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiTableBody"}),{className:o,component:a=Yh,...l}=n,c={...n,component:a},u=vT(c);return s.jsx(zo.Provider,{value:wT,children:s.jsx(ST,{className:te(u.root,o),as:a,ref:r,role:a===Yh?null:"rowgroup",ownerState:c,...l})})});process.env.NODE_ENV!=="production"&&(Fs.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function CT(e){return de("MuiTableCell",e)}const ET=le("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),TT=e=>{const{classes:t,variant:r,align:n,padding:o,size:a,stickyHeader:l}=e,c={root:["root",r,l&&"stickyHeader",n!=="inherit"&&`align${R(n)}`,o!=="normal"&&`padding${R(o)}`,`size${R(a)}`]};return pe(c,CT,t)},kT=G("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${R(r.size)}`],r.padding!=="normal"&&t[`padding${R(r.padding)}`],r.align!=="inherit"&&t[`align${R(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(he(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
178
|
-
${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",[`&.${ET.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}}]}))),Ye=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:l,padding:c,scope:u,size:d,sortDirection:p,variant:h,...y}=n,x=k.useContext(oc),g=k.useContext(zo),f=g&&g.variant==="head";let b;l?b=l:b=f?"th":"td";let S=u;b==="td"?S=void 0:!S&&f&&(S="col");const v=h||g&&g.variant,T={...n,align:o,component:b,padding:c||(x&&x.padding?x.padding:"normal"),size:d||(x&&x.size?x.size:"medium"),sortDirection:p,stickyHeader:v==="head"&&x&&x.stickyHeader,variant:v},C=TT(T);let E=null;return p&&(E=p==="asc"?"ascending":"descending"),s.jsx(kT,{as:b,ref:r,className:te(C.root,a),"aria-sort":E,scope:S,ownerState:T,...y})});process.env.NODE_ENV!=="production"&&(Ye.propTypes={align:i.oneOf(["center","inherit","justify","left","right"]),children:i.node,classes:i.object,className:i.string,component:i.elementType,padding:i.oneOf(["checkbox","none","normal"]),scope:i.string,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sortDirection:i.oneOf(["asc","desc",!1]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["body","footer","head"]),i.string])});function OT(e){return de("MuiTableContainer",e)}le("MuiTableContainer",["root"]);const PT=e=>{const{classes:t}=e;return pe({root:["root"]},OT,t)},IT=G("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),Bs=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiTableContainer"}),{className:o,component:a="div",...l}=n,c={...n,component:a},u=PT(c);return s.jsx(IT,{ref:r,as:a,className:te(u.root,o),ownerState:c,...l})});process.env.NODE_ENV!=="production"&&(Bs.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function NT(e){return de("MuiTableHead",e)}le("MuiTableHead",["root"]);const _T=e=>{const{classes:t}=e;return pe({root:["root"]},NT,t)},AT=G("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),MT={variant:"head"},Gh="thead",js=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiTableHead"}),{className:o,component:a=Gh,...l}=n,c={...n,component:a},u=_T(c);return s.jsx(zo.Provider,{value:MT,children:s.jsx(AT,{as:a,className:te(u.root,o),ref:r,role:a===Gh?null:"rowgroup",ownerState:c,...l})})});process.env.NODE_ENV!=="production"&&(js.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function DT(e){return de("MuiTableRow",e)}const Kh=le("MuiTableRow",["root","selected","hover","head","footer"]),zT=e=>{const{classes:t,selected:r,hover:n,head:o,footer:a}=e;return pe({root:["root",r&&"selected",n&&"hover",o&&"head",a&&"footer"]},DT,t)},$T=G("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(he(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Kh.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Kh.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}`)}}}))),Rh="tr",er=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiTableRow"}),{className:o,component:a=Rh,hover:l=!1,selected:c=!1,...u}=n,d=k.useContext(zo),p={...n,component:a,hover:l,selected:c,head:d&&d.variant==="head",footer:d&&d.variant==="footer"},h=zT(p);return s.jsx($T,{as:a,ref:r,className:te(h.root,o),role:a===Rh?null:"row",ownerState:p,...u})});process.env.NODE_ENV!=="production"&&(er.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,hover:i.bool,selected:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function FT(e){return de("MuiTextField",e)}le("MuiTextField",["root"]);const BT={standard:As,filled:_s,outlined:Ms},jT=e=>{const{classes:t}=e;return pe({root:["root"]},FT,t)},WT=G(yh,{name:"MuiTextField",slot:"Root"})({}),$o=k.forwardRef(function(t,r){const n=fe({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:l,className:c,color:u="primary",defaultValue:d,disabled:p=!1,error:h=!1,FormHelperTextProps:y,fullWidth:x=!1,helperText:g,id:f,InputLabelProps:b,inputProps:S,InputProps:v,inputRef:T,label:C,maxRows:E,minRows:w,multiline:I=!1,name:z,onBlur:_,onChange:N,onFocus:L,placeholder:O,required:M=!1,rows:A,select:$=!1,SelectProps:D,slots:q={},slotProps:H={},type:U,value:B,variant:W="outlined",...K}=n,J={...n,autoFocus:a,color:u,disabled:p,error:h,fullWidth:x,multiline:I,required:M,select:$,variant:W},ee=jT(J);process.env.NODE_ENV!=="production"&&$&&!l&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const Q=fn(f),Z=g&&Q?`${Q}-helper-text`:void 0,re=C&&Q?`${Q}-label`:void 0,ue=BT[W],ne={slots:q,slotProps:{input:v,inputLabel:b,htmlInput:S,formHelperText:y,select:D,...H}},X={},ie=ne.slotProps.inputLabel;W==="outlined"&&(ie&&typeof ie.shrink<"u"&&(X.notched=ie.shrink),X.label=C),$&&((!D||!D.native)&&(X.id=void 0),X["aria-describedby"]=void 0);const[Y,ge]=me("root",{elementType:WT,shouldForwardComponentProp:!0,externalForwardedProps:{...ne,...K},ownerState:J,className:te(ee.root,c),ref:r,additionalProps:{disabled:p,error:h,fullWidth:x,required:M,color:u,variant:W}}),[oe,ve]=me("input",{elementType:ue,externalForwardedProps:ne,additionalProps:X,ownerState:J}),[At,dt]=me("inputLabel",{elementType:Ch,externalForwardedProps:ne,ownerState:J}),[He,Ct]=me("htmlInput",{elementType:"input",externalForwardedProps:ne,ownerState:J}),[Lt,Ge]=me("formHelperText",{elementType:Sh,externalForwardedProps:ne,ownerState:J}),[ce,Yr]=me("select",{elementType:Bt,externalForwardedProps:ne,ownerState:J}),Ke=s.jsx(oe,{"aria-describedby":Z,autoComplete:o,autoFocus:a,defaultValue:d,fullWidth:x,multiline:I,name:z,rows:A,maxRows:E,minRows:w,type:U,value:B,id:Q,inputRef:T,onBlur:_,onChange:N,onFocus:L,placeholder:O,inputProps:Ct,slots:{input:q.htmlInput?He:void 0},...ve});return s.jsxs(Y,{...ge,children:[C!=null&&C!==""&&s.jsx(At,{htmlFor:Q,id:re,...dt,children:C}),$?s.jsx(ce,{"aria-describedby":Z,id:Q,labelId:re,value:B,input:Ke,...Yr,children:l}):Ke,g&&s.jsx(Lt,{id:Z,...Ge,children:g})]})});process.env.NODE_ENV!=="production"&&($o.propTypes={autoComplete:i.string,autoFocus:i.bool,children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),defaultValue:i.any,disabled:i.bool,error:i.bool,FormHelperTextProps:i.object,fullWidth:i.bool,helperText:i.node,id:i.string,InputLabelProps:i.object,inputProps:i.object,InputProps:i.object,inputRef:wt,label:i.node,margin:i.oneOf(["dense","none","normal"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onFocus:i.func,placeholder:i.string,required:i.bool,rows:i.oneOfType([i.number,i.string]),select:i.bool,SelectProps:i.object,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({formHelperText:i.oneOfType([i.func,i.object]),htmlInput:i.oneOfType([i.func,i.object]),input:i.oneOfType([i.func,i.object]),inputLabel:i.oneOfType([i.func,i.object]),select:i.oneOfType([i.func,i.object])}),slots:i.shape({formHelperText:i.elementType,htmlInput:i.elementType,input:i.elementType,inputLabel:i.elementType,root:i.elementType,select:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any,variant:i.oneOf(["filled","outlined","standard"])});const xe=af({themeId:no});function It(){return{...F.useMemo(()=>({global:{body:{margin:12,boxSizing:"border-box",width:"100vw",maxWidth:"100vw",overflowX:"hidden",overscrollBehaviorX:"none"},html:{overflowX:"hidden"}},topBar:{root:{bgcolor:"background.paper",py:1.5,px:0,borderBottom:1,borderColor:"divider"},headerRow:{display:"flex",justifyContent:"flex-end",alignItems:"right",mb:1.5},controlRow:{display:"flex",alignItems:"center",gap:1},storeDropdown:{display:"flex",alignItems:"center",gap:.5,bgcolor:"#fff",border:1,borderColor:"#e0e0e0",borderRadius:1,px:1.5,py:.8,cursor:"pointer",fontSize:"13px",color:"#333",fontWeight:500},filterBtn:{display:"flex",alignItems:"center",gap:.5,bgcolor:"#fff",border:1,borderColor:"#e0e0e0",borderRadius:1,px:1.5,py:.8,cursor:"pointer",fontSize:"13px",color:"#333"},iconBtn:{minWidth:36,width:36,height:36,p:0,color:"#666","&:hover":{bgcolor:"#f5f5f5"}},rightIcons:{display:"flex",alignItems:"center",gap:1}},header:{container:{px:0,py:1.5},title:{fontSize:"22px",fontWeight:700,color:"#333",mb:1.5},subtitle:{fontSize:"16px",color:"#666",fontWeight:500,mb:1.5},actionLink:{fontSize:"16px",color:"#2563eb",fontWeight:600,textDecoration:"underline",cursor:"pointer",mt:1},statsScroll:{display:"flex",gap:1.5,overflowX:"auto",pb:1,"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"},statCard:{flex:"0 0 auto",minWidth:140,bgcolor:"background.paper",border:1,borderColor:"#e8e8e8",borderRadius:2,p:1.5},statLabel:{fontSize:"12px",color:"#888",mb:.3,fontWeight:400},statValue:{fontSize:"28px",fontWeight:700,color:"#333",lineHeight:1.2,mb:.3},statMeta:{display:"flex",alignItems:"center",gap:.5},statMetaText:{fontSize:"11px",color:"#888"},statLink:{fontSize:"11px",color:"#3b82f6",textDecoration:"underline",cursor:"pointer",ml:.5}},listHeader:{root:{display:"flex",justifyContent:"space-between",alignItems:"center",px:2,py:1.5,bgcolor:"#fafafa"},productCount:{fontSize:"13px",fontWeight:400,color:"#666"},checkboxIcon:{display:"flex",alignItems:"center",justifyContent:"center"}},productCard:{root:{bgcolor:"background.paper",borderBottom:1,borderColor:"#f0f0f0",p:2,position:"relative"},offerBadge:{position:"absolute",top:12,right:12,color:"#454545",px:1,py:.3,borderRadius:.5,fontSize:"11px",fontWeight:500},contentRow:{display:"flex",alignItems:"flex-start",gap:1.5},checkbox:{p:0,mt:.5},image:{width:56,height:56,bgcolor:"#f8f8f8",borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0},details:{flex:1,minWidth:0,pr:10},name:{fontSize:"14px",fontWeight:600,color:"#333",textDecoration:"none",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",lineHeight:1.3,mb:.3},meta:{fontSize:"12px",color:"#888",mb:.2},sku:{fontSize:"11px",color:"#aaa",mb:.5},priceRow:{display:"flex",alignItems:"center",gap:.5},price:{fontSize:"14px",fontWeight:700,color:"#333"},originalPrice:{fontSize:"12px",color:"#999",textDecoration:"line-through"},discount:{fontSize:"11px",color:"#28a745",fontWeight:600}},floatingActions:{root:{position:"fixed",left:0,right:0,bottom:0,bgcolor:"#1a1a1a",color:"white",px:2,pt:1.5,pb:2,display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,zIndex:1200,borderRadius:"16px 16px 0 0"},countText:{fontSize:"15px",fontWeight:400,color:"#fff",textAlign:"center"},buttonRow:{display:"flex",gap:1.5,width:"100%"},btn:{flex:1,bgcolor:"#333",color:"white",fontSize:"14px",fontWeight:500,py:1.2,borderRadius:1.5,textTransform:"none",display:"flex",alignItems:"center",justifyContent:"center",gap:1,"&:hover":{bgcolor:"#444"}}},logo:{container:{display:"flex",alignItems:"center",gap:1},icon:{width:32,height:32,bgcolor:"#f97316",borderRadius:1.5,display:"flex",alignItems:"center",justifyContent:"center"},iconText:{color:"white",fontSize:"14px",fontWeight:700},textContainer:{display:"flex",flexDirection:"column"},brandName:{fontSize:"16px",fontWeight:700,color:"#333",lineHeight:1.2},tagline:{fontSize:"10px",color:"#888",lineHeight:1}},headerIcons:{container:{display:"flex",alignItems:"center",gap:1.5},iconBtn:{position:"relative",color:"#333"},notificationDot:{position:"absolute",top:0,right:0,width:8,height:8,bgcolor:"#ef4444",borderRadius:"50%"},avatar:{width:32,height:32,bgcolor:"#3b82f6",fontSize:"13px",fontWeight:600}},emptyProduct:{wrapper:{position:"relative",mx:1,my:1,overflowX:"hidden"},card:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"350px",bgcolor:"#fff",mx:2,py:6,px:2,borderRadius:2,border:"1px solid #e8e8e8",position:"relative",zIndex:1,overflowX:"hidden"},iconContainer:{position:"relative",mb:2},sparkleContainer:{position:"absolute",top:-20,left:"50%",transform:"translateX(-50%)",width:40,display:"flex",justifyContent:"space-between"},sparkleLeft:{width:2,height:12,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(-25deg)",transformOrigin:"bottom center"},sparkleCenter:{width:2,height:16,bgcolor:"#5b9bd5",borderRadius:1},sparkleRight:{width:2,height:12,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(25deg)",transformOrigin:"bottom center"},inboxIcon:{width:70,height:55,border:"2px solid #5b9bd5",borderRadius:"6px",bgcolor:"#e8f4fc",position:"relative",overflow:"visible"},notch:{position:"absolute",top:-2,left:"50%",transform:"translateX(-50%)",width:28,height:18,bgcolor:"#fff",borderBottomLeftRadius:14,borderBottomRightRadius:14,borderLeft:"2px solid #5b9bd5",borderRight:"2px solid #5b9bd5",borderBottom:"2px solid #5b9bd5"},title:{fontSize:"22px",fontWeight:600,color:"#1a1a1a",mb:.5},subtitle:{fontSize:"18px",color:"#888",mb:1},actionLink:{fontSize:"18px",fontWeight:500,color:"#3b82f6",textDecoration:"none",cursor:"pointer","&:hover":{textDecoration:"underline"}}},productSetting:{wrapper:{background:"#f7f8fa",minHeight:"100vh",margin:"0 -5px",marginbottom:4},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:0,py:1.5,bgcolor:"#fff",borderBottom:"1px solid #e8e8e8"},headerLeft:{display:"flex",alignItems:"center",gap:1.5},backButton:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#666","&:hover":{color:"#333"}},backText:{fontSize:"13px",color:"inherit"},divider:{height:18,alignSelf:"center"},breadcrumb:{display:"flex",alignItems:"center",gap:.5},breadcrumbText:{fontSize:"15px",color:"#666"},breadcrumbActive:{fontSize:"22px",fontWeight:400,color:"#000"},headerRight:{display:"flex",alignItems:"center",gap:1},bellButton:{color:"#666"},avatar:{width:28,height:28,borderRadius:"50%",bgcolor:"#3b82f6",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},content:{width:"100vw",maxWidth:"100vw",mx:"auto",px:2,py:2,overflowX:"hidden"},section:{mb:2.5,width:"100vw",maxWidth:"93vw",overflowX:"hidden"},sectionHeader:{display:"flex",alignItems:"center",gap:.5,mb:1},sectionTitle:{fontSize:"13px",fontWeight:600,color:"#333"},sectionCount:{fontSize:"11px",color:"#999"},settingCard:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",border:"1px solid #e8e8e8",borderRadius:2,px:1.5,py:1.25,mb:1,cursor:"pointer","&:hover":{bgcolor:"#fafafa"}},settingCardHover:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",border:"1px solid #e8e8e8",borderRadius:2,px:1.5,py:1.25,"&:hover":{bgcolor:"#fafafa"}},settingCardInner:{display:"flex",alignItems:"center",gap:1},settingIcon:{width:32,height:32,borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center"},settingTitle:{fontSize:"13px",fontWeight:700,color:"#000"},settingSubtitle:{fontSize:"11px",color:"#888"},syncHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1,mr:5},syncNowButton:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#888","&:hover":{color:"#3b82f6"}},syncNowText:{fontSize:"11px"},setupSyncCard:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",border:"1px solid #e8e8e8",borderRadius:2,mr:4,px:1.5,py:1.25,cursor:"pointer","&:hover":{bgcolor:"#fafafa"}},switch:{"& .MuiSwitch-switchBase.Mui-checked":{color:"#3b82f6"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"#3b82f6"}}},productSettingModal:{modal:{display:"flex",alignItems:"center",justifyContent:"center","& .MuiBackdrop-root":{backdropFilter:"blur(1px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},container:{bgcolor:"#fff",borderRadius:2,boxShadow:24,width:"100%",maxWidth:300,mx:1,outline:"none",overflow:"hidden"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:1.5,py:1.2,borderBottom:"1px solid #e8e8e8"},headerTitle:{fontSize:"13px",fontWeight:600,color:"#000"},closeButton:{color:"#666"},content:{px:1.5,py:1.2},radioIcon:{width:16,height:16},radioChecked:{color:"#000","&.Mui-checked":{color:"#000"},"&:hover":{bgcolor:"transparent"},"& .MuiTouchRipple-root":{display:"none"}},radioLabel:{fontSize:"12px",color:"#333"},formControlLabel:{mx:0,py:.4,borderRadius:1,"&.Mui-checked":{backgroundColor:"#ffeaea"}},upgradeSection:{display:"flex",alignItems:"center",justifyContent:"space-between",mt:1.2,pt:1.2,pl:1.2,pr:1.2,pb:1.2,borderRadius:1,borderTop:"1px solid #e8e8e8",bgcolor:"#F3F8FF"},upgradeText:{fontSize:"11px",color:"#000000",maxWidth:120},managePlanLink:{fontSize:"11px",fontWeight:500,color:"#2D64B8",cursor:"pointer"},footer:{px:1.5,pb:1.5},saveButton:{bgcolor:"#2D64B8",color:"#fff",textTransform:"none",fontSize:"12px",fontWeight:500,py:1,borderRadius:1.5,boxShadow:"none"}},productsyncsetting:{wrapper:{minHeight:"100vh",bgcolor:"#f5f7fa",px:2,py:0},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:0,py:1.5,bgcolor:"#fff",borderBottom:"1px solid #e8e8e8"},headerLeft:{display:"flex",alignItems:"center",gap:1.5},backButton:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#666","&:hover":{color:"#333"}},backText:{fontSize:"13px",color:"inherit"},divider:{height:18,alignSelf:"center"},breadcrumb:{display:"flex",alignItems:"center",gap:.5},breadcrumbText:{fontSize:"13px",color:"#666"},breadcrumbActive:{fontSize:"13px",fontWeight:600,color:"#000"},headerRight:{display:"flex",alignItems:"center",gap:1},bellButton:{color:"#666"},avatar:{width:28,height:28,borderRadius:"50%",bgcolor:"#3b82f6",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},content:{maxWidth:"100%",mx:"auto",px:2,py:2},section:{maxWidth:"100%",mx:0,mb:2},sectionTitle:{fontSize:"13px",fontWeight:600,color:"#222",mb:1},sectionCount:{fontSize:"11px",color:"#aaa",fontWeight:400},card:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",borderRadius:2,px:1.5,py:1,mb:1,boxShadow:"0 1px 2px rgba(0,0,0,0.03)",cursor:"pointer",border:"none"},cardBlue:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#f3f8ff",border:"1px solid #2D64B8",borderRadius:2,px:1.5,py:1,mb:1,boxShadow:"none",cursor:"pointer"},cardLeft:{display:"flex",alignItems:"center",gap:1},cardTitle:{fontSize:"13px",fontWeight:600,color:"#222"},cardSubtitle:{fontSize:"11px",color:"#888"},ftpIcon:{width:18,height:18,bgcolor:"#2D64B8",borderRadius:1,mr:1}},promoPrintModal:{dialog:{borderRadius:2,maxWidth:"100%",mx:1},header:{display:"flex",justifyContent:"space-between",alignItems:"center",pb:1,borderBottom:1,borderColor:"divider"},content:{pt:2,px:2},section:{mb:2.5},sectionTitle:{fontSize:"13px",fontWeight:600,mb:1},checkboxLabel:{"& .MuiTypography-root":{fontSize:"0.85rem"}},checkboxGrid:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:.5,columnGap:2},designContainer:{display:"flex",gap:1.5,overflowX:"auto",pb:1,"&::-webkit-scrollbar":{display:"none"},msOverflowStyle:"none",scrollbarWidth:"none"},designCard:{base:{border:2,borderRadius:2,p:1,cursor:"pointer",width:130,minWidth:130,height:100,textAlign:"center",bgcolor:"#FFFFFF",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)"},selected:{borderColor:"#1976D2",bgcolor:"linear-gradient(135deg, #E3F2FD 0%, #FFFFFF 100%)",boxShadow:"0 4px 12px rgba(0, 0, 0, 0)"},unselected:{borderColor:"#E0E0E0"}},design1:{topSection:{display:"flex",flexDirection:"column",alignItems:"center",minHeight:40,justifyContent:"center"},saveText:{fontFamily:"Inter, sans-serif",fontSize:"10px",fontWeight:600,letterSpacing:"0.5px",color:"#000000",lineHeight:1.2,mb:.3},percentText:{fontFamily:"Inter, sans-serif",fontSize:"18px",fontWeight:600,fontStyle:"italic",color:"#000000",lineHeight:1,display:"flex",justifyContent:"center",alignItems:"center"},percentSymbol:{fontSize:"14px",fontWeight:600,fontFamily:"Inter, sans-serif",color:"#000000"},bottomSection:{minHeight:25},priceRow:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:.3,gap:.3,minHeight:10},priceText:{fontFamily:"Inter, sans-serif",fontSize:"7px",fontWeight:600,color:"#000000",lineHeight:1.2},ourPrice:{textAlign:"left"},productName:{fontFamily:"Inter, sans-serif",fontSize:"7px",lineHeight:1.2,fontWeight:600,color:"#000000",minHeight:12}},design2:{topSection:{minHeight:50},percentOffText:{fontFamily:"Inter, sans-serif",fontSize:"16px",fontWeight:600,color:"#000000",lineHeight:1},percentSymbol:{fontSize:"14px",fontWeight:600,fontFamily:"Inter, sans-serif"},productName:{fontFamily:"Inter, sans-serif",fontSize:"7px",fontWeight:600,color:"#000000",mt:.3,lineHeight:1.2},priceRow:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:.3,minHeight:10},priceText:{fontFamily:"Inter, sans-serif",fontSize:"7px",fontWeight:600,color:"#000000",textAlign:"left",lineHeight:1.2}},design3:{productName:{fontFamily:"Inter, sans-serif",fontSize:"7px",lineHeight:1.2,fontWeight:600,color:"#000000"},priceRow:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:.3,minHeight:10},priceText:{fontFamily:"Inter, sans-serif",fontSize:"7px",fontWeight:600,color:"#000000",textAlign:"left",lineHeight:1.2},percentOffText:{fontFamily:"Inter, sans-serif",fontSize:"16px",fontWeight:600,color:"#000000",lineHeight:1},percentSymbol:{fontSize:"14px",fontWeight:600,fontFamily:"Inter, sans-serif"}},sheetSizeHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},sheetSizeGroup:{display:"flex",gap:.75},sheetSizeBtn:{flex:1,py:.75,border:1,borderColor:"divider",borderRadius:1,cursor:"pointer",transition:"all 0.2s","&:hover":{borderColor:"primary.main"}},sheetSizeBtnSelected:{borderColor:"primary.main"},actions:{px:2,pb:2},printButton:{bgcolor:"primary.main",color:"white",px:3,py:1,width:"100%",fontSize:"14px","&:hover":{bgcolor:"primary.dark"}}},stepper:{},createCatalogModal:{}}),[]),categoriesView:{root:{p:2,bgcolor:"#f7f8fa",minHeight:"100vh"},summaryCards:{display:"flex",gap:1,my:2,flexDirection:"column"},summaryCard:{flex:1,borderRadius:2,boxShadow:1,p:1,minWidth:120},summaryTitle:{variant:"subtitle2",color:"text.secondary",gutterBottom:!0},summaryValue:{variant:"h4",fontWeight:700,color:"text.primary"},summarySubtitle:{variant:"body2",color:"primary",mt:1},summaryExtra:{variant:"caption",color:"error",mt:.5},categoryTable:{borderRadius:2,boxShadow:1,p:1,mb:2},categoryTableHeader:{display:"flex",alignItems:"center",fontWeight:600,color:"text.secondary",fontSize:13,pb:1,borderBottom:"1px solid #eee"},categoryTableHeaderCell:{flex:2},categoryTableRow:()=>({display:"flex",alignItems:"center",py:1.5,borderBottom:"1px solid #eee"}),categoryNameCell:{flex:2},categoryName:{fontWeight:600,fontSize:13,color:"text.primary"},categoryProducts:{fontSize:11,color:"text.secondary",mt:.2},categoryUpdated:{fontSize:10,color:"#bbb",mt:.2},categoryStockCell:{flex:2},categoryStock:()=>({fontSize:13,color:"#454545",fontWeight:500}),categoryOSA:()=>({fontSize:11,color:"#808080",mt:.2}),categoryImagesCell:{flex:2,display:"flex",gap:.5},categoryImage:{width:28,height:28,borderRadius:2,border:"1px solid #eee",objectFit:"cover"},categoryViewCell:{flex:2,textAlign:"right"},categoryViewButton:{borderRadius:1,px:1.5,fontWeight:600,fontSize:12}}}}function Nt(){return F.useMemo(()=>({topBar:{root:{bgcolor:"#fff",px:2,py:.5,borderBottom:"1px solid #e0e0e0",minWidth:"100vw",overflowX:"auto",marginBottom:0},searchBox:{display:"flex",alignItems:"center",position:"relative",minWidth:180,maxWidth:220,mr:1.5},searchInput:{fontSize:"13px",color:"#222",width:"100%",height:36,bgcolor:"#fff",border:"1px solid #e0e0e0",borderRadius:1,boxSizing:"border-box"},btn:{display:"flex",alignItems:"center",gap:.5,bgcolor:"#fff",border:"1px solid #e0e0e0",borderRadius:1,px:2,height:36,fontSize:13,fontWeight:500,color:"#222",cursor:"pointer",transition:"all 0.2s","&:hover":{bgcolor:"#f3f4f6",borderColor:"#ccc"}},iconOnly:{minWidth:36,width:36,height:36,p:0,color:"#555",borderRadius:1,bgcolor:"#fff",border:"1px solid #e0e0e0",display:"flex",alignItems:"center",justifyContent:"center","&:hover":{bgcolor:"#f3f4f6",color:"#111"}}},header:{container:{display:"flex",flexDirection:"row",gap:2,my:1,px:3,overflowX:"auto","&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"},statCard:{flex:"0 0 auto",minWidth:180,bgcolor:"background.paper",borderRadius:2,p:2,border:1,borderColor:"#e6e6e6",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.04)"},statLabel:{fontSize:"12px",color:"#888",mb:.5},statValue:{fontSize:"26px",fontWeight:700,color:"#333",mb:.5},statMeta:{display:"flex",alignItems:"center",gap:.5},statMetaText:{fontSize:"11px",color:"#888"},statLink:{fontSize:"11px",color:"#3b82f6",textDecoration:"underline",display:"block",mt:.5}},productCard:{root:{borderBottom:1,borderColor:"divider",p:2,mx:2,bgcolor:"background.paper",transition:"all 0.2s ease",borderRadius:1,"&:hover":{bgcolor:"#f9f9f9"}},content:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:2},image:{width:56,height:56,bgcolor:"#f0f0f0",borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center",fontSize:"28px",overflow:"hidden",flexShrink:0},name:{fontSize:"13px",fontWeight:600,color:"#454545",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",mb:.5},badge:{px:2,py:.4,borderRadius:.5,fontSize:"12px",fontWeight:600,whiteSpace:"nowrap",active:{bgcolor:"#dcfce7",color:"#166534"},inactive:{bgcolor:"#f3f4f6",color:"#4b5563"}}},gridSystem:{display:"grid",gridTemplateColumns:"30px minmax(200px, 1fr) 90px 120px 100px 140px",gap:1.5,alignItems:"center",px:2},gridSystemLimited:{display:"grid",gridTemplateColumns:"30px minmax(280px, 1fr) 100px 150px",gap:2,alignItems:"center",px:2},listHeader:{root:{display:"flex",justifyContent:"space-between",alignItems:"center",px:3,py:1.5,bgcolor:"#f9fafb",borderBottom:1,borderColor:"divider"},productCount:{fontSize:"14px",color:"#666"},gridHeader:{display:"grid",bgcolor:"#f9fafb",py:1.5,borderBottom:1,borderColor:"divider",fontWeight:500,fontSize:"13px",color:"#6b7280"}},floatingActions:{root:{position:"fixed",left:"50%",transform:"translateX(-50%)",bottom:24,zIndex:1200},inner:{bgcolor:"#111",color:"white",px:3,py:1.5,borderRadius:2,display:"flex",alignItems:"center",gap:2,boxShadow:"0 4px 16px rgba(0, 0, 0, 0.3)"},count:{fontWeight:600,fontSize:"15px",whiteSpace:"nowrap"},divider:{width:1,height:28,bgcolor:"#333"},btn:{bgcolor:"#333",border:"none",color:"#fff",px:2.5,py:1,borderRadius:1,cursor:"pointer",fontWeight:600,fontSize:"14px",display:"flex",alignItems:"center",gap:1,transition:"background 0.2s",textTransform:"none","&:hover":{bgcolor:"#444"}}},table:{container:{mx:2,borderRadius:2,border:1,borderColor:"divider",overflow:"hidden"},cell:{fontSize:"13px",py:1.5,px:1.5},headerCell:{fontSize:"12px",fontWeight:600,color:"#6b7280",py:1.5,px:1.5,bgcolor:"#f9fafb"}},modal:{dialog:{borderRadius:2,maxWidth:520,mx:3},content:{p:3}},productSetting:{wrapper:{minHeight:"100vh",bgcolor:"#f5f7fa"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:3,py:1.5,bgcolor:"#fff",borderBottom:"1px solid #e8e8e8"},headerLeft:{display:"flex",alignItems:"center",gap:2},backButton:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#666","&:hover":{color:"#333"}},backText:{fontSize:"14px",color:"inherit"},divider:{height:20,alignSelf:"center"},breadcrumb:{display:"flex",alignItems:"center",gap:.5},breadcrumbText:{fontSize:"14px",color:"#666"},breadcrumbActive:{fontSize:"14px",fontWeight:600,color:"#000"},headerRight:{display:"flex",alignItems:"center",gap:1.5},bellButton:{color:"#666"},avatar:{width:32,height:32,borderRadius:"50%",bgcolor:"#3b82f6",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},content:{maxWidth:560,mx:"auto",px:3,py:3},section:{mb:3,bgcolor:"#fff",borderRadius:2,boxShadow:"0 2px 8px rgba(0,0,0,0.06)",p:2.5},sectionHeader:{display:"flex",alignItems:"center",gap:.5,mb:1.5},sectionTitle:{fontSize:"14px",fontWeight:600,color:"#333"},sectionCount:{fontSize:"12px",color:"#999"},settingCard:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",border:"1px solid #e8e8e8",borderRadius:2,px:2,py:1.5,mb:1.5,cursor:"pointer","&:hover":{bgcolor:"#fafafa"}},settingCardHover:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",border:"1px solid #e8e8e8",borderRadius:2,px:2,py:1.5,"&:hover":{bgcolor:"#fafafa"}},settingCardInner:{display:"flex",alignItems:"center",gap:1.5},settingIcon:{width:36,height:36,borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center"},settingTitle:{fontSize:"14px",fontWeight:700,color:"#000"},settingSubtitle:{fontSize:"12px",color:"#888"},syncHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1.5},syncNowButton:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#888","&:hover":{color:"#3b82f6"}},syncNowText:{fontSize:"12px"},setupSyncCard:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",border:"1px solid #e8e8e8",borderRadius:2,px:2,py:1.5,cursor:"pointer","&:hover":{bgcolor:"#fafafa"}},switch:{"& .MuiSwitch-switchBase.Mui-checked":{color:"#3b82f6"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"#3b82f6"}}},productSync:{wrapper:{minHeight:"100vh",background:"#f7f8fa",padding:0,margin:0},stepperHeader:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",margin:"24px 0 16px 0"},stepperContainer:{width:"98vw",maxWidth:400,margin:"0 auto",position:"relative"},stepperRow:{display:"flex",justifyContent:"center",position:"relative",minHeight:40,marginBottom:12},grayLine:{position:"absolute",top:45,height:2,background:"#e0e4ea",borderRadius:2,zIndex:0},grayLineTransition:"left 1.2s cubic-bezier(0.4,0,0.2,1), width 1.2s cubic-bezier(0.4,0,0.2,1)",greenBar:{position:"absolute",top:45,height:2,background:"#2ecc40",borderRadius:2,zIndex:1},greenBarTransition:"width 1.2s cubic-bezier(0.4,0,0.2,1)",stepLabel:{textAlign:"center",flex:1,position:"relative",zIndex:2,fontSize:13,marginBottom:6,fontFamily:"Inter, sans-serif"},activeStepColor:"#222",inactiveStepColor:"#b3b3b3",activeStepWeight:700,inactiveStepWeight:500,tickIconContainer:{height:24,marginBottom:2,display:"flex",alignItems:"center",justifyContent:"center"},mainContainer:{width:"98vw",maxWidth:420,minHeight:400,background:"#fff",borderRadius:12,margin:"0 auto",boxShadow:"0 2px 8px #0001",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"0 0 32px 0"},instructionsContainer:{background:"#f7f8fa",borderRadius:14,padding:"18px 12px 16px 12px",minWidth:220,maxWidth:340,margin:"24px auto 0 auto",boxShadow:"0 1px 4px #0002",display:"flex",flexDirection:"column",alignItems:"center"},instructionsTitle:{fontWeight:700,fontSize:16,marginBottom:10,fontFamily:"Inter, sans-serif",textAlign:"left",width:"100%"},instructionsList:{color:"#222",fontSize:13,margin:0,paddingLeft:18,marginBottom:16,textAlign:"left",width:"100%"},nextButton:{background:"#2563eb",color:"#fff",border:"none",borderRadius:6,padding:"8px 20px",fontWeight:600,fontSize:14,cursor:"pointer",boxShadow:"0 2px 6px #2563eb22",alignSelf:"flex-end",marginTop:6}},emptyProduct:{wrapper:{position:"relative",mx:-1,my:2,width:"100vw",maxWidth:"100vw",overflowX:"hidden"},card:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"500px",bgcolor:"#fff",mx:4,py:8,borderRadius:3,border:"1px solid #e8e8e8",position:"relative",zIndex:1},iconContainer:{position:"relative",mb:3},sparkleContainer:{position:"absolute",top:-24,left:"50%",transform:"translateX(-50%)",width:50,display:"flex",justifyContent:"space-between"},sparkleLeft:{width:2,height:14,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(-25deg)",transformOrigin:"bottom center"},sparkleCenter:{width:2,height:18,bgcolor:"#5b9bd5",borderRadius:1},sparkleRight:{width:2,height:14,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(25deg)",transformOrigin:"bottom center"},inboxIcon:{width:90,height:70,border:"2.5px solid #5b9bd5",borderRadius:"8px",bgcolor:"#e8f4fc",position:"relative",overflow:"visible"},notch:{position:"absolute",top:-3,left:"50%",transform:"translateX(-50%)",width:36,height:22,bgcolor:"#fff",borderBottomLeftRadius:18,borderBottomRightRadius:18,borderLeft:"2.5px solid #5b9bd5",borderRight:"2.5px solid #5b9bd5",borderBottom:"2.5px solid #5b9bd5"},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"}}},productSync1:{wrapper:{minHeight:"100vh",background:"#f7f8fa",padding:0,marginTop:0,marginBottom:0,marginRight:-8,marginLeft:-5},stepperHeader:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",margin:"32px 0 24px 0"},stepperContainer:{width:700,maxWidth:"95vw",margin:"0 auto",position:"relative"},stepperRow:{display:"flex",justifyContent:"center",position:"relative",minHeight:42,marginBottom:12},grayLine:{position:"absolute",top:55,height:2,background:"#e0e4ea",borderRadius:2,zIndex:0},grayLineTransition:"left 1.2s cubic-bezier(0.4,0,0.2,1), width 1.2s cubic-bezier(0.4,0,0.2,1)",greenBar:{position:"absolute",top:55,height:2,background:"#2ecc40",borderRadius:2,zIndex:1},greenBarTransition:"width 1.2s cubic-bezier(0.4,0,0.2,1)",stepLabel:{textAlign:"center",flex:1,position:"relative",zIndex:2,fontSize:15,marginBottom:6,fontFamily:"Inter, sans-serif"},activeStepColor:"#222",inactiveStepColor:"#b3b3b3",activeStepWeight:700,inactiveStepWeight:500,tickIconContainer:{height:28,marginBottom:2,display:"flex",alignItems:"center",justifyContent:"center"},mainContainer:{width:800,maxWidth:"97vw",minHeight:500,background:"#fff",borderRadius:14,margin:"0 auto",boxShadow:"0 2px 12px #0001",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:0},instructionsContainer:{background:"#f7f8fa",borderRadius:18,padding:"24px 24px 20px 24px",minWidth:280,maxWidth:360,margin:"28px auto 0 auto",boxShadow:"0 1px 6px #0002",display:"flex",flexDirection:"column",alignItems:"center"},instructionsTitle:{fontWeight:700,fontSize:18,marginBottom:12,fontFamily:"Inter, sans-serif",textAlign:"left",width:"100%"},instructionsList:{color:"#222",fontSize:15,margin:0,paddingLeft:18,marginBottom:18,textAlign:"left",width:"100%"},nextButton:{background:"#2563eb",color:"#fff",border:"none",borderRadius:8,padding:"9px 24px",fontWeight:600,fontSize:15,cursor:"pointer",boxShadow:"0 2px 8px #2563eb22",alignSelf:"flex-end",marginTop:7},input:{width:"100%",padding:"9px 11px",border:"1px solid #d1d5db",borderRadius:8,fontSize:15,marginBottom:0,background:"#fff",outline:"none",boxSizing:"border-box"},passwordInput:{width:"100%",padding:"9px 34px 9px 11px",border:"1px solid #d1d5db",borderRadius:8,fontSize:15,background:"#fff",outline:"none",boxSizing:"border-box"},backButton:{background:"#fff",color:"#2563eb",border:"1px solid #2563eb",borderRadius:8,padding:"9px 24px",fontWeight:600,fontSize:15,cursor:"pointer",marginRight:8}},productsyncsetting:{wrapper:{minHeight:"100vh",bgcolor:"#f5f7fa",px:2,py:0},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2,py:1.5,bgcolor:"#fff",borderBottom:"1px solid #e8e8e8"},headerLeft:{display:"flex",alignItems:"center",gap:1.5},backButton:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#666","&:hover":{color:"#333"}},backText:{fontSize:"13px",color:"inherit"},divider:{height:18,alignSelf:"center"},breadcrumb:{display:"flex",alignItems:"center",gap:.5},breadcrumbText:{fontSize:"13px",color:"#666"},breadcrumbActive:{fontSize:"13px",fontWeight:600,color:"#000"},headerRight:{display:"flex",alignItems:"center",gap:1},bellButton:{color:"#666"},avatar:{width:30,height:30,borderRadius:"50%",bgcolor:"#3b82f6",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},content:{maxWidth:"100%",mx:"auto",px:2,py:2},section:{maxWidth:"100%",mx:0,mb:2},sectionTitle:{fontSize:"14px",fontWeight:600,color:"#222",mb:1.5},sectionCount:{fontSize:"12px",color:"#aaa",fontWeight:400},sectionTitleRow:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1.5},syncNow:{color:"#1976d2",fontWeight:500,fontSize:"13px",cursor:"pointer"},card:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",borderRadius:2,px:2,py:1.5,mb:1.5,boxShadow:"0 1px 2px rgba(0,0,0,0.03)",border:"1px solid #e0e0e0",cursor:"pointer",transition:"border 0.2s, box-shadow 0.2s, background 0.2s","&:hover":{border:"1.5px solid #1976D2",background:"#f5faff",boxShadow:"0 2px 6px rgba(25, 118, 210, 0.08)"}},cardBlue:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#f3f8ff",border:"1px solid #2D64B8",borderRadius:2,px:2,py:1.5,mb:1.5,boxShadow:"none",cursor:"pointer"},cardLeft:{display:"flex",alignItems:"center",gap:1.5},cardTitle:{fontSize:"14px",fontWeight:600,color:"#222"},cardSubtitle:{fontSize:"12px",color:"#888"},cardGrid:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:1.5,mb:1.5},cardGridItem:{flex:1},ftpIcon:{width:20,height:20,bgcolor:"#2D64B8",borderRadius:1,mr:1.5}},categoriesView:{root:{p:4,bgcolor:"#f7f8fa",minHeight:"100vh"},summaryCards:{display:"flex",gap:2,my:3},summaryCard:{flex:1,borderRadius:2,boxShadow:1,p:2,minWidth:140},summaryTitle:{variant:"subtitle2",color:"text.secondary",gutterBottom:!0},summaryValue:{variant:"h4",fontWeight:700,color:"text.primary"},summarySubtitle:{variant:"body2",color:"primary",mt:1},summaryExtra:{variant:"caption",color:"error",mt:.5},categoryTable:{borderRadius:2,boxShadow:1,p:2,mb:2},categoryTableHeader:{display:"flex",alignItems:"center",fontWeight:600,color:"text.secondary",fontSize:13,pb:1,borderBottom:"1px solid #eee"},categoryTableHeaderCell:{flex:2},categoryTableRow:()=>({display:"flex",alignItems:"center",py:1.5,borderBottom:"1px solid #eee"}),categoryNameCell:{flex:2},categoryName:{fontWeight:600,fontSize:14,color:"text.primary"},categoryProducts:{fontSize:11,color:"text.secondary",mt:.2},categoryUpdated:{fontSize:10,color:"#bbb",mt:.2},categoryStockCell:{flex:2},categoryStock:()=>({fontSize:13,color:"#454545",fontWeight:500}),categoryOSA:()=>({fontSize:11,color:"#808080",mt:.2}),categoryImagesCell:{flex:2,display:"flex",gap:.5},categoryImage:{width:32,height:32,borderRadius:2,border:"1px solid #eee",objectFit:"cover"},categoryViewCell:{flex:2,textAlign:"right"},categoryViewButton:{borderRadius:1,px:2,fontWeight:600}}}),[])}const ic=({product:e,isSelected:t,onToggle:r,styles:n,showLimitedColumns:o})=>{const a=We(),l=xe(a.breakpoints.down("sm")),c=xe(a.breakpoints.between("sm","md")),u=It(),d=Nt(),p=e.price??0,h=e.percentageOff??0;let y=p;p>0&&h>0&&(y=Math.round(p*(1-h/100)));const x=e.inShelf??e.inshelff??e.onShelf??e.quantity??0,g=e.stock??e.totalStock??e.maxStock??0,f=g>0?Math.round(x/g*100):0,S=(v=>v?v.startsWith("http")?v:`${Hu()}${v}`:null)(e.productImage||e.image);if(!l&&!c)return!n||!n.productCard?null:s.jsxs(m,{sx:{...n.productCard.root,...o?n.gridSystemLimited:n.gridSystem,bgcolor:t?"#f0f9ff":"background.paper"},children:[s.jsx(Le,{checked:t||!1,onChange:r,size:"small",sx:{p:.5}}),s.jsxs(m,{sx:n.productCard.content,children:[s.jsx(m,{sx:n.productCard.image,children:S?s.jsx(m,{component:"img",src:S,alt:e.name,sx:{width:"100%",height:"100%",objectFit:"contain"}}):s.jsx("span",{style:{fontSize:"1.5rem"},children:"📷"})}),s.jsxs(m,{sx:{flex:1,minWidth:0},children:[s.jsx(P,{component:jn,to:`/product/${e.id}`,sx:{...n.productCard.name,textDecoration:"none",display:"block"},children:e.name}),s.jsxs(P,{variant:"caption",color:"text.secondary",sx:{display:"block",mb:.5},children:[e.productWeight," • ",e.category]}),s.jsx(P,{variant:"caption",color:"text.disabled",children:e.sku})]})]}),s.jsx(m,{children:s.jsx(m,{sx:{...n.productCard.badge,...e.status===!0||e.status==="Active"?n.productCard.badge.active:n.productCard.badge.inactive},children:e.status===!0||e.status==="Active"?"Active":"No Stock"})}),!o&&s.jsx(m,{children:h>0?s.jsxs(s.Fragment,{children:[s.jsxs(P,{fontWeight:600,fontSize:"0.9rem",color:"text.primary",children:["₹",y]}),s.jsxs(P,{variant:"caption",sx:{textDecoration:"line-through",color:"text.disabled",display:"block",lineHeight:1},children:["₹",p]}),s.jsxs(P,{variant:"caption",color:"success.main",fontWeight:600,sx:{display:"block",lineHeight:1,mt:.2},children:[h,"% OFF"]})]}):s.jsxs(P,{fontWeight:600,fontSize:"0.9rem",color:"text.primary",children:["₹",p]})}),s.jsxs(m,{children:[s.jsxs(m,{sx:{display:"flex",alignItems:"baseline",gap:.2,minHeight:20},children:[s.jsx(P,{fontSize:"1rem",fontWeight:400,sx:{color:"#f2992f"},children:x}),s.jsxs(P,{fontSize:"1rem",fontWeight:400,sx:{color:"#333",ml:.2},children:["/",g.toLocaleString()]})]}),s.jsxs(m,{sx:{display:"flex",alignItems:"baseline",gap:.5,mt:"-2px"},children:[s.jsxs(P,{fontSize:"0.95rem",fontWeight:400,sx:{color:"#f44336"},children:[f,"%"]}),s.jsx(P,{fontSize:"0.85rem",fontWeight:400,sx:{color:"#bdbdbd",ml:.2},children:"on shelf"})]})]}),!o&&s.jsx(m,{children:s.jsx(P,{variant:"body2",fontSize:"0.85rem",color:"text.primary",noWrap:!0,children:e.offer||""})})]});if(l){const v=u;return s.jsxs(m,{sx:{...v.productCard.root,bgcolor:t?"#f0f9ff":"background.paper"},children:[e.offer&&s.jsx(m,{sx:v.productCard.offerBadge,children:e.offer}),s.jsxs(m,{sx:v.productCard.contentRow,children:[s.jsx(Le,{checked:t||!1,onChange:r,size:"small",sx:v.productCard.checkbox}),s.jsx(m,{sx:v.productCard.image,children:S?s.jsx(m,{component:"img",src:S,alt:e.name,sx:{width:"100%",height:"100%",objectFit:"contain"}}):s.jsx("span",{style:{fontSize:"24px"},children:"📷"})}),s.jsxs(m,{sx:v.productCard.details,children:[s.jsx(P,{component:jn,to:`/product/${e.id}`,sx:v.productCard.name,children:e.name}),s.jsx(P,{sx:v.productCard.meta,children:e.productWeight||"43g"}),s.jsxs(P,{sx:v.productCard.sku,children:["SKU: ",e.sku||"234987"]}),s.jsxs(m,{sx:v.productCard.priceRow,children:[s.jsxs(P,{sx:v.productCard.price,children:["₹",y]}),h>0&&s.jsxs(s.Fragment,{children:[s.jsxs(P,{sx:v.productCard.originalPrice,children:["₹",p]}),s.jsxs(P,{sx:v.productCard.discount,children:[h,"% OFF"]})]})]})]})]})]})}if(c){const v=d;return s.jsxs(m,{sx:{...v.productCard.root,bgcolor:t?"#f0f9ff":"background.paper"},children:[s.jsxs(m,{sx:v.productCard.content,children:[s.jsx(m,{sx:v.productCard.image,children:S?s.jsx(m,{component:"img",src:S,alt:e.name,sx:{width:"100%",height:"100%",objectFit:"contain"}}):s.jsx("span",{style:{fontSize:"1.5rem"},children:"📷"})}),s.jsxs(m,{sx:{flex:1,minWidth:0},children:[s.jsx(P,{component:jn,to:`/product/${e.id}`,sx:v.productCard.name,children:e.name}),s.jsxs(P,{variant:"caption",color:"text.secondary",sx:{display:"block",mb:.5},children:[e.productWeight," • ",e.category]}),s.jsx(P,{variant:"caption",color:"text.disabled",children:e.sku})]})]}),s.jsx(m,{children:s.jsx(m,{sx:{...v.productCard.badge,...e.status===!0||e.status==="Active"?v.productCard.badge.active:v.productCard.badge.inactive},children:e.status===!0||e.status==="Active"?"Active":"No Stock"})}),s.jsx(m,{children:h>0?s.jsxs(s.Fragment,{children:[s.jsxs(P,{fontWeight:600,fontSize:"0.9rem",color:"text.primary",children:["₹",y]}),s.jsxs(P,{variant:"caption",sx:{textDecoration:"line-through",color:"text.disabled",display:"block",lineHeight:1},children:["₹",p]}),s.jsxs(P,{variant:"caption",color:"success.main",fontWeight:600,sx:{display:"block",lineHeight:1,mt:.2},children:[h,"% OFF"]})]}):s.jsxs(P,{fontWeight:600,fontSize:"0.9rem",color:"text.primary",children:["₹",p]})}),s.jsxs(m,{children:[s.jsxs(m,{sx:{display:"flex",alignItems:"baseline",gap:.2,minHeight:20},children:[s.jsx(P,{fontSize:"1rem",fontWeight:400,sx:{color:"#f2992f"},children:x}),s.jsxs(P,{fontSize:"1rem",fontWeight:400,sx:{color:"#333",ml:.2},children:["/",g.toLocaleString()]})]}),s.jsxs(m,{sx:{display:"flex",alignItems:"baseline",gap:.5,mt:"-2px"},children:[s.jsxs(P,{fontSize:"0.95rem",fontWeight:400,sx:{color:"#f44336"},children:[f,"%"]}),s.jsx(P,{fontSize:"0.85rem",fontWeight:400,sx:{color:"#bdbdbd",ml:.2},children:"on shelf"})]})]}),s.jsx(m,{children:s.jsx(P,{variant:"body2",fontSize:"0.85rem",color:"text.primary",noWrap:!0,children:e.offer||""})})]})}};function jt(){const t={theme:F.useMemo(()=>Nl({typography:{fontFamily:"'Inter', sans-serif",h1:{fontWeight:700,fontSize:"3.2rem"},h2:{fontWeight:600,fontSize:"2.4rem"},h3:{fontWeight:600,fontSize:"1.8rem"},h4:{fontWeight:600,fontSize:"0.85rem",color:"#444"},body1:{fontSize:"0.9rem",color:"#333"},body2:{fontSize:"0.85rem",color:"#666"},button:{textTransform:"none",fontWeight:500}},palette:{primary:{main:"#3b82f6",light:"#eff6ff"},secondary:{main:"#22d3ee"},text:{primary:"#454545",secondary:"#666666",disabled:"#999999"},divider:"#e0e0e0",background:{default:"#ffffff",paper:"#ffffff",neutral:"#f5f7fa"},success:{main:"#155724",light:"#d4edda"},error:{main:"#721c24",light:"#f8d7da",contrastText:"#d9534f"}},shape:{borderRadius:6},components:{MuiButton:{styleOverrides:{root:{boxShadow:"none","&:hover":{boxShadow:"none"}}}}}}),[]),productsyncsetting:{wrapper:{minHeight:"100vh",bgcolor:"#f5f7fa",px:0,py:0,mx:-1},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:3,py:1.5,bgcolor:"#fff",borderBottom:"1px solid #e8e8e8"},headerLeft:{display:"flex",alignItems:"center",gap:2},backButton:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#666","&:hover":{color:"#333"}},backText:{fontSize:"14px",color:"inherit"},divider:{height:20,alignSelf:"center"},breadcrumb:{display:"flex",alignItems:"center",gap:.5},breadcrumbText:{fontSize:"14px",color:"#666"},breadcrumbActive:{fontSize:"14px",fontWeight:600,color:"#000"},headerRight:{display:"flex",alignItems:"center",gap:1.5},bellButton:{color:"#666"},avatar:{width:32,height:32,borderRadius:"50%",bgcolor:"#3b82f6",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},content:{maxWidth:600,mx:"auto",px:4,py:3},section:{maxWidth:520,mx:"auto",mb:4},sectionTitle:{fontSize:"15px",fontWeight:600,color:"#222",mb:1.5},sectionCount:{fontSize:"13px",color:"#aaa",fontWeight:400},card:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",borderRadius:2,px:3,py:2,mb:1.5,boxShadow:"0 1px 2px rgba(0,0,0,0.03)",border:"1px solid #e0e0e0",cursor:"pointer",transition:"border 0.2s, box-shadow 0.2s, background 0.2s","&:hover":{border:"1.5px solid #1976D2",background:"#f5faff",boxShadow:"0 2px 8px rgba(25, 118, 210, 0.08)"}},cardBlue:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#f3f8ff",border:"1px solid #2D64B8",borderRadius:2,px:3,py:2,mb:1.5,boxShadow:"none",cursor:"pointer"},cardLeft:{display:"flex",alignItems:"center",gap:2},cardTitle:{fontSize:"15px",fontWeight:600,color:"#222"},cardSubtitle:{fontSize:"13px",color:"#888"},ftpIcon:{width:24,height:24,bgcolor:"#2D64B8",borderRadius:1,mr:2}},flexBetween:{display:"flex",justifyContent:"space-between",alignItems:"center"},flexCenter:{display:"flex",justifyContent:"center",alignItems:"center"},topBar:{root:{bgcolor:"background.paper",marginBottom:"20px"},inner:{display:"flex",justifyContent:"space-between",alignItems:"center",px:3,maxWidth:"100%"},searchBox:{display:"flex",alignItems:"center",position:"relative",width:320},searchInput:{fontSize:"0.9rem",color:"text.primary",pl:1,width:"100%"},controlGroup:{display:"flex",alignItems:"center",gap:2},btn:{display:"flex",alignItems:"center",gap:1,bgcolor:"background.paper",border:1,borderColor:"divider",borderRadius:1,px:1.5,height:36,fontSize:"0.85rem",color:"text.primary",cursor:"pointer",transition:"all 0.2s","&:hover":{bgcolor:"#fcfcfc",borderColor:"#ccc"}},viewSwitch:{opt:{border:1,borderColor:"primary.main",borderRadius:2,color:"primary.main",bgcolor:"#fff",px:2,fontWeight:600,fontSize:"0.85rem",cursor:"pointer",height:36,display:"flex",alignItems:"center",gap:1,transition:"all 0.2s"}},iconOnly:{minWidth:34,width:34,height:34,p:0,backgroundColor:"#fff",border:"none",borderRadius:1,cursor:"pointer"},magicBtn:{background:"linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%)",border:"none",width:36,height:36,borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxShadow:"0 4px 10px rgba(34, 211, 238, 0.3)",transition:"all 0.2s ease",color:"#ffffff",overflow:"visible","& svg":{color:"#ffffff",stroke:"#ffffff",fill:"#ffffff",display:"block",width:"20px",height:"20px"},"&:hover":{transform:"translateY(-1px)",boxShadow:"0 6px 12px rgba(34, 211, 238, 0.4)"}}},productCard:{root:{borderBottom:1,borderColor:"divider",p:"0.25rem 0.25rem",m:"4px",bgcolor:"background.paper",transition:"all 0.3s ease",borderRadius:1,width:"100%",maxWidth:1100,mx:"auto"},content:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:3},image:{width:50,height:50,bgcolor:"#f0f0f0",borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center",fontSize:"2rem",overflow:"hidden",flexShrink:0},name:{fontFamily:"'Inter', sans-serif",fontSize:"12px",fontWeight:600,letterSpacing:"0px",color:"#454545",width:"166px",display:"-webkit-box",WebkitLineClamp:2,lineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",mb:.5},badge:{width:"30%",px:2.5,py:.5,mr:2,borderRadius:.5,fontSize:"0.8rem",fontWeight:600,whiteSpace:"nowrap",active:{bgcolor:"#dcfce7",color:"#166534"},inactive:{bgcolor:"#f3f4f6",color:"#4b5563"}}},gridSystem:{display:"grid",gridTemplateColumns:"30px minmax(250px, 1fr) 100px 150px 120px 160px",gap:2,alignItems:"center",px:3},gridSystemLimited:{display:"grid",gridTemplateColumns:"30px minmax(400px, 1fr) 120px 180px",gap:5,alignItems:"center",px:3},listHeader:{root:{bgcolor:"#f9fafb",py:1.5,borderBottom:1,borderColor:"divider",fontWeight:500,fontSize:"0.85rem",color:"#6b7280",width:"100%",maxWidth:1100,mx:"auto"}},header:{container:{display:"flex",gap:3,my:1,width:"100%",px:3,maxWidth:1e3,mx:"auto"},statCard:{bgcolor:"background.paper",borderRadius:2,p:3,flex:1,border:1,borderColor:"#e6e6e6",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.05)"},bigNumber:{fontSize:"1.8rem",fontWeight:700,color:"#000",mb:.5}},floatingActions:{root:{position:"fixed",left:"50%",transform:"translateX(-50%)",bottom:30,zIndex:1200,animation:"slideUp 0.3s ease-out","@keyframes slideUp":{from:{transform:"translate(-50%, 100%)",opacity:0},to:{transform:"translate(-50%, 0)",opacity:1}}},inner:{bgcolor:"#111",color:"white",px:2,py:1,borderRadius:2,display:"flex",alignItems:"center",gap:1.5,boxShadow:"0 4px 12px rgba(0, 0, 0, 0.3)",justifyContent:"space-between"},count:{fontWeight:600,fontSize:"0.9rem",whiteSpace:"nowrap"},divider:{width:1,height:24,bgcolor:"#333"},btn:{bgcolor:"#333",border:"none",color:"#fff",px:2,py:1,borderRadius:1,cursor:"pointer",fontWeight:600,fontSize:"0.85rem",display:"flex",alignItems:"center",gap:1,transition:"background 0.2s",textTransform:"none","&:hover":{bgcolor:"#444"}},btnPrimary:{"&:hover":{bgcolor:"#2563eb"}}},promoPrintModal:{dialog:{borderRadius:2,maxWidth:480},header:{display:"flex",justifyContent:"space-between",alignItems:"center",pb:1,borderBottom:1,borderColor:"divider"},content:{pt:2},section:{mb:3},sectionTitle:{variant:"subtitle2",fontWeight:600,mb:1.5},checkboxLabel:{"& .MuiTypography-root":{fontSize:"0.9rem"}},designContainer:{display:"flex",gap:2,overflowX:"auto","&::-webkit-scrollbar":{display:"none"},msOverflowStyle:"none",scrollbarWidth:"none"},designCard:{base:{border:2,borderRadius:2.5,p:1.5,cursor:"pointer",width:160,height:120,textAlign:"center",bgcolor:"#FFFFFF",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)"},selected:{borderColor:"#1976D2",bgcolor:"linear-gradient(135deg, #E3F2FD 0%, #FFFFFF 100%)",boxShadow:"0 4px 12px rgba(0, 0, 0, 0)"},unselected:{borderColor:"#E0E0E0"}},design1:{topSection:{display:"flex",flexDirection:"column",alignItems:"center",minHeight:50,justifyContent:"center"},saveText:{fontFamily:"Inter, sans-serif",fontSize:"11px",fontWeight:600,letterSpacing:"0.5px",color:"#000000",lineHeight:1.2,mb:.5},percentText:{fontFamily:"Inter, sans-serif",fontSize:"22px",fontWeight:600,fontStyle:"italic",color:"#000000",lineHeight:1,letterSpacing:"0px",display:"flex",justifyContent:"center",alignItems:"center"},percentSymbol:{fontSize:"18px",fontWeight:600,fontFamily:"Inter, sans-serif",color:"#000000"},bottomSection:{minHeight:30},priceRow:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:.5,gap:.5,minHeight:12},priceText:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",lineHeight:1.2,letterSpacing:"0px"},ourPrice:{textAlign:"left"},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",lineHeight:1.3,fontWeight:600,color:"#000000",letterSpacing:"0px",minHeight:14}},design2:{topSection:{minHeight:60},percentOffText:{fontFamily:"Inter, sans-serif",fontSize:"20px",fontWeight:600,color:"#000000",lineHeight:1},percentSymbol:{fontSize:"18px",fontWeight:600,fontFamily:"Inter, sans-serif"},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",fontWeight:600,color:"#000000",mt:.5,lineHeight:1.3,letterSpacing:"0px"},bottomSection:{minHeight:30},priceRow:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:.5,minHeight:12},priceText:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",textAlign:"left",lineHeight:1.2,letterSpacing:"0px"}},design3:{topSection:{minHeight:20},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",lineHeight:1.3,fontWeight:600,color:"#000000",letterSpacing:"0px"},middleSection:{minHeight:30},priceRow:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:.5,minHeight:12},priceText:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",textAlign:"left",lineHeight:1.2,letterSpacing:"0px"},bottomSection:{minHeight:30},percentOffText:{fontFamily:"Inter, sans-serif",fontSize:"20px",fontWeight:600,color:"#000000",lineHeight:1},percentSymbol:{fontSize:"18px",fontWeight:600,fontFamily:"Inter, sans-serif"}},sheetSizeHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1.5},sheetSizeGroup:{display:"flex",gap:1},sheetSizeBtn:{flex:1,py:1,border:1,borderColor:"divider",borderRadius:1,cursor:"pointer",transition:"all 0.2s","&:hover":{borderColor:"primary.main"}},sheetSizeBtnSelected:{borderColor:"primary.main"},actions:{px:3,pb:2},printButton:{bgcolor:"primary.main",color:"white",px:4,py:1,width:"100%","&:hover":{bgcolor:"primary.dark"}}},emptyProduct:{wrapper:{position:"relative",mx:-1,my:2,width:"100vw",maxWidth:"100vw",overflowX:"hidden"},card:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"500px",bgcolor:"#fff",mx:12,py:8,borderRadius:3,border:"1px solid #e8e8e8",position:"relative",zIndex:1},iconContainer:{position:"relative",mb:3},sparkleContainer:{position:"absolute",top:-24,left:"50%",transform:"translateX(-50%)",width:50,display:"flex",justifyContent:"space-between"},sparkleLeft:{width:2,height:14,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(-25deg)",transformOrigin:"bottom center"},sparkleCenter:{width:2,height:18,bgcolor:"#5b9bd5",borderRadius:1},sparkleRight:{width:2,height:14,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(25deg)",transformOrigin:"bottom center"},inboxIcon:{width:90,height:70,border:"2.5px solid #5b9bd5",borderRadius:"8px",bgcolor:"#e8f4fc",position:"relative",overflow:"visible"},notch:{position:"absolute",top:-3,left:"50%",transform:"translateX(-50%)",width:36,height:22,bgcolor:"#fff",borderBottomLeftRadius:18,borderBottomRightRadius:18,borderLeft:"2.5px solid #5b9bd5",borderRight:"2.5px solid #5b9bd5",borderBottom:"2.5px solid #5b9bd5"},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"}}},productSetting:{wrapper:{minHeight:"100vh",bgcolor:"#f5f7fa",mx:-1},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:3,py:1.5,bgcolor:"#fff",borderBottom:"1px solid #e8e8e8"},headerLeft:{display:"flex",alignItems:"center",gap:2},backButton:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#666","&:hover":{color:"#333"}},backText:{fontSize:"14px",color:"inherit"},divider:{height:20,alignSelf:"center"},breadcrumb:{display:"flex",alignItems:"center",gap:.5},breadcrumbText:{fontSize:"14px",color:"#666"},breadcrumbActive:{fontSize:"14px",fontWeight:600,color:"#000"},headerRight:{display:"flex",alignItems:"center",gap:1.5},bellButton:{color:"#666"},avatar:{width:32,height:32,borderRadius:"25%",bgcolor:"#3b82f6",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},content:{maxWidth:600,mx:"auto",px:4,py:3},section:{mb:3},sectionHeader:{display:"flex",alignItems:"center",gap:.5,mb:1.5},sectionTitle:{fontSize:"14px",fontWeight:600,color:"#333"},sectionCount:{fontSize:"12px",color:"#999"},settingCard:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",border:"1px solid #e8e8e8",borderRadius:2,px:2,py:1.5,mb:1.5,cursor:"pointer","&:hover":{bgcolor:"#fafafa"}},settingCardHover:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",border:"1px solid #e8e8e8",borderRadius:2,px:2,py:1.5,"&:hover":{bgcolor:"#fafafa"}},settingCardInner:{display:"flex",alignItems:"center",gap:1.5},settingIcon:{width:36,height:36,borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center"},settingTitle:{fontSize:"14px",fontWeight:700,color:"#000"},settingSubtitle:{fontSize:"12px",color:"#888"},syncHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1.5},syncNowButton:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#888"},syncNowText:{fontSize:"12px"},setupSyncCard:{display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:2,bgcolor:"#fff",border:"1px solid #e8e8e8",px:2,py:1.5,cursor:"pointer","&:hover":{bgcolor:"#fafafa"}},switch:{"& .MuiSwitch-switchBase.Mui-checked":{color:"#3b82f6"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"#3b82f6"}}},productSettingModal:{modal:{display:"flex",alignItems:"center",justifyContent:"center","& .MuiBackdrop-root":{backdropFilter:"blur(1px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},container:{bgcolor:"#fff",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"}},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:"#2D64B8",cursor:"pointer"},footer:{px:2.5,pb:2.5},saveButton:{bgcolor:"#2D64B8",color:"#fff",textTransform:"none",fontSize:"14px",fontWeight:500,py:1.25,borderRadius:1.5,boxShadow:"none"}},stepper:{header:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",margin:"40px 0 32px 0"},container:{width:800,maxWidth:"90vw",margin:"0 auto",position:"relative"},row:{display:"flex",justifyContent:"center",position:"relative",minHeight:48,marginBottom:16},grayLine:{position:"absolute",top:65,height:2,background:"#e0e4ea",borderRadius:2,zIndex:0},greenBar:{position:"absolute",top:65,height:2,background:"#2ecc40",borderRadius:2,zIndex:1},label:{textAlign:"center",flex:1,position:"relative",zIndex:2,fontSize:16,marginBottom:8,fontFamily:"Inter, sans-serif"},activeColor:"#222",inactiveColor:"#b3b3b3",activeWeight:700,inactiveWeight:500,tickIconContainer:{height:32,marginBottom:2,display:"flex",alignItems:"center",justifyContent:"center"}},productSync:{wrapper:{minHeight:"100vh",background:"#f7f8fa",padding:0,marginTop:0,marginBottom:0,marginRight:-8,marginLeft:-5},width:"100%",padding:"10px 12px",border:"1px solid #d1d5db",borderRadius:8,fontSize:15,marginBottom:0,background:"#fff",outline:"none",boxSizing:"border-box"},passwordInput:{width:"100%",padding:"10px 38px 10px 12px",border:"1px solid #d1d5db",borderRadius:8,fontSize:15,background:"#fff",outline:"none",boxSizing:"border-box"},backButton:{background:"#fff",color:"#2563eb",border:"1px solid #2563eb",borderRadius:8,padding:"10px 32px",fontWeight:600,fontSize:16,cursor:"pointer",marginRight:8}},r={root:{p:4,bgcolor:"#f7f8fa",minHeight:"100vh"},summaryCards:{display:"flex",gap:3,my:4},summaryCard:{flex:1,borderRadius:3,boxShadow:1,p:2,minWidth:180},summaryTitle:{variant:"subtitle2",color:"text.secondary",gutterBottom:!0},summaryValue:{variant:"h4",fontWeight:700,color:"text.primary"},summarySubtitle:{variant:"body2",color:"primary",mt:1},summaryExtra:{variant:"caption",color:"error",mt:.5},categoryTable:{borderRadius:3,boxShadow:1,p:3,mb:3},categoryTableHeader:{display:"flex",alignItems:"center",fontWeight:600,color:"text.secondary",fontSize:15,pb:1.5,borderBottom:"1px solid #eee"},categoryTableHeaderCell:{flex:2},categoryTableRow:n=>({display:"flex",alignItems:"center",py:2.2,borderBottom:n<4?"1px solid #eee":"none"}),categoryNameCell:{flex:2},categoryName:{fontWeight:600,fontSize:16,color:"text.primary"},categoryProducts:{fontSize:13,color:"text.secondary",mt:.3},categoryUpdated:{fontSize:12,color:"#bbb",mt:.3},categoryStockCell:{flex:2},categoryStock:()=>({fontSize:15,color:"#454545",fontWeight:500}),categoryOSA:()=>({fontSize:13,color:"#808080",mt:.3}),categoryImagesCell:{flex:2,display:"flex",gap:1},categoryImage:{width:40,height:40,borderRadius:2,border:"1px solid #eee",objectFit:"cover"},categoryViewCell:{flex:2,textAlign:"right"},categoryViewButton:{borderRadius:1,px:2.5,fontWeight:600}};return t.categoriesView=r,t}function sc(){return sc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sc.apply(this,arguments)}function LT(e,t){if(e==null)return{};var r=VT(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function VT(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Fo=F.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,a=o===void 0?24:o,l=LT(e,["color","size"]);return F.createElement("svg",sc({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),F.createElement("line",{x1:"17",y1:"10",x2:"3",y2:"10"}),F.createElement("line",{x1:"21",y1:"6",x2:"3",y2:"6"}),F.createElement("line",{x1:"21",y1:"14",x2:"3",y2:"14"}),F.createElement("line",{x1:"17",y1:"18",x2:"3",y2:"18"}))});Fo.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},Fo.displayName="AlignLeft";function ac(){return ac=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ac.apply(this,arguments)}function UT(e,t){if(e==null)return{};var r=HT(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function HT(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Bo=F.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,a=o===void 0?24:o,l=UT(e,["color","size"]);return F.createElement("svg",ac({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),F.createElement("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),F.createElement("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"}))});Bo.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},Bo.displayName="Bell";function lc(){return lc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lc.apply(this,arguments)}function qT(e,t){if(e==null)return{};var r=YT(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function YT(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Hr=F.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,a=o===void 0?24:o,l=qT(e,["color","size"]);return F.createElement("svg",lc({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),F.createElement("polyline",{points:"6 9 12 15 18 9"}))});Hr.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},Hr.displayName="ChevronDown";function cc(){return cc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cc.apply(this,arguments)}function GT(e,t){if(e==null)return{};var r=KT(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function KT(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var jo=F.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,a=o===void 0?24:o,l=GT(e,["color","size"]);return F.createElement("svg",cc({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),F.createElement("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),F.createElement("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}))});jo.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},jo.displayName="Link";function dc(){return dc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dc.apply(this,arguments)}function RT(e,t){if(e==null)return{};var r=XT(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function XT(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Wo=F.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,a=o===void 0?24:o,l=RT(e,["color","size"]);return F.createElement("svg",dc({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),F.createElement("circle",{cx:"12",cy:"12",r:"1"}),F.createElement("circle",{cx:"12",cy:"5",r:"1"}),F.createElement("circle",{cx:"12",cy:"19",r:"1"}))});Wo.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},Wo.displayName="MoreVertical";function uc(){return uc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},uc.apply(this,arguments)}function JT(e,t){if(e==null)return{};var r=QT(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function QT(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Lo=F.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,a=o===void 0?24:o,l=JT(e,["color","size"]);return F.createElement("svg",uc({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),F.createElement("polyline",{points:"6 9 6 2 18 2 18 9"}),F.createElement("path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"}),F.createElement("rect",{x:"6",y:"14",width:"12",height:"8"}))});Lo.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},Lo.displayName="Printer";function pc(){return pc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pc.apply(this,arguments)}function ZT(e,t){if(e==null)return{};var r=ek(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ek(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Vo=F.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,a=o===void 0?24:o,l=ZT(e,["color","size"]);return F.createElement("svg",pc({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),F.createElement("circle",{cx:"11",cy:"11",r:"8"}),F.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))});Vo.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},Vo.displayName="Search";function fc(){return fc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fc.apply(this,arguments)}function tk(e,t){if(e==null)return{};var r=rk(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rk(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Ws=F.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,a=o===void 0?24:o,l=tk(e,["color","size"]);return F.createElement("svg",fc({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),F.createElement("circle",{cx:"12",cy:"12",r:"3"}),F.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"}))});Ws.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},Ws.displayName="Settings";function hc(){return hc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hc.apply(this,arguments)}function nk(e,t){if(e==null)return{};var r=ok(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ok(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Ls=F.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,a=o===void 0?24:o,l=nk(e,["color","size"]);return F.createElement("svg",hc({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),F.createElement("path",{d:"M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"}),F.createElement("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),F.createElement("path",{d:"M16 10a4 4 0 0 1-8 0"}))});Ls.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},Ls.displayName="ShoppingBag";function gc(){return gc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gc.apply(this,arguments)}function ik(e,t){if(e==null)return{};var r=sk(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function sk(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Vs=F.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,a=o===void 0?24:o,l=ik(e,["color","size"]);return F.createElement("svg",gc({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),F.createElement("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"}))});Vs.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},Vs.displayName="Star";function bc(){return bc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bc.apply(this,arguments)}function ak(e,t){if(e==null)return{};var r=lk(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lk(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Uo=F.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,a=o===void 0?24:o,l=ak(e,["color","size"]);return F.createElement("svg",bc({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),F.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),F.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))});Uo.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},Uo.displayName="X";const kn=({filters:e,onFilterChange:t,stores:r=[],onOpenFilterModal:n,StoresModal:o,storesModalProps:a,onStoreSelect:l,showBackButton:c=!1,hideViewSwitch:u=!1,isHomeDefault:d=!1,tenantStatus:p={matched:!0}})=>{const h=yt(),y=We(),x=xe(y.breakpoints.down("sm")),g=xe(y.breakpoints.between("sm","md")),f=jt(),b=It(),S=Nt(),[v,T]=F.useState("OSA"),[C,E]=F.useState(null),w=!!C,[I,z]=F.useState(!1),_=Array.isArray(e?.store)?e.store:[],N=()=>{E(null)},[L,O]=F.useState(_),M=H=>{let U=[...L];H==="all"?L.includes("all")?U=[]:U=["all"]:L.includes(H)?U=L.filter(B=>B!==H&&B!=="all"):(U=L.filter(B=>B!=="all"),U.push(H)),O(U)},A=H=>{o?z(!0):(O(_),E(H.currentTarget))},$=()=>{t({...e,store:L}),E(null)},D=H=>{l?l(H):t({...e,store:H}),z(!1)},q=()=>{z(!1)};if(!x&&!g){const U=f.topBar||{},B=U&&U.viewSwitch||{};return s.jsxs(s.Fragment,{children:[s.jsx(m,{sx:U.root,children:s.jsxs(m,{sx:U.inner,children:[s.jsxs(m,{sx:{display:"flex",alignItems:"center"},children:[c&&s.jsxs(ae,{variant:"text",size:"small",sx:{minWidth:0,px:2,color:"#222",fontWeight:400,fontSize:15,textTransform:"none",display:"flex",alignItems:"center",background:"none",boxShadow:"none",border:"none","&:hover":{background:"none",boxShadow:"none"}},disableRipple:!0,onClick:()=>h("/home"),children:[s.jsx("span",{style:{fontSize:20,fontWeight:400,color:"#222",marginRight:6},children:"<"}),s.jsx("span",{style:{fontSize:15,fontWeight:400,color:"#222"},children:"Back"})]}),s.jsxs(m,{sx:U.searchBox,children:[s.jsx(Vo,{size:18,style:{position:"absolute",left:0,color:"#888"}}),s.jsx(mn,{placeholder:"Search Products",value:e.search,onChange:W=>t({...e,search:W.target.value}),sx:{...U.searchInput||{},pl:3.5}})]})]}),s.jsxs(m,{sx:U.controlGroup,children:[s.jsxs(m,{sx:{display:"flex",gap:1},children:[s.jsxs(m,{sx:{display:"flex",alignItems:"center",border:"1px solid #e0e0e0",borderRadius:"6px",px:1.5,minWidth:80,cursor:"pointer",gap:1,...U.btn||{}},onClick:A,tabIndex:0,"aria-label":"Select stores",children:[s.jsx(Ls,{size:18,style:{color:"#555",marginRight:4}}),s.jsx(P,{sx:{fontWeight:700,fontSize:15,color:"#222",mr:.5},children:_.length===0||_.includes("all")?"All Stores":`${_.length} Stores`}),s.jsx(P,{sx:{fontWeight:400,fontSize:15,color:"#888",ml:.5},children:` ${r.filter(W=>W.id!=="all").length} stores`}),s.jsx(Hr,{size:16,color:"#888",style:{marginLeft:2}})]}),s.jsxs(Ao,{anchorEl:C,open:w,onClose:N,PaperProps:{style:{minWidth:180}},children:[s.jsxs(Fe,{onClick:()=>M("all"),children:[s.jsx(Le,{checked:L.includes("all")}),s.jsx(Vr,{primary:"All Stores"})]}),s.jsx($e,{}),r.filter(W=>W.id!=="all").map(W=>s.jsxs(Fe,{onClick:()=>M(W.id),children:[s.jsx(Le,{checked:L.includes(W.id)}),s.jsx(Vr,{primary:W.name})]},W.id)),s.jsx($e,{}),s.jsx(m,{sx:{display:"flex",justifyContent:"flex-end",p:1},children:s.jsx(ae,{variant:"contained",size:"small",onClick:$,children:"Apply"})})]}),s.jsxs(m,{sx:U.btn,onClick:n,children:[s.jsx(P,{variant:"body2",children:d?"MTD":"Filters"}),s.jsx(Hr,{size:14,color:"#888"})]}),s.jsxs(m,{sx:U.btn,children:[s.jsx(P,{variant:"body2",children:"Sort"}),s.jsx(Fo,{size:16,style:{transform:"rotate(-90deg)"}})]})]}),s.jsx($e,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}}),!u&&s.jsxs(m,{sx:{display:"flex",gap:1.5},children:[s.jsx(m,{component:"button",onClick:()=>T("OSA"),sx:{...B.opt||{},...v==="OSA"&&B.active},children:"OSA"}),s.jsx(m,{component:"button",onClick:()=>T("Catalogs"),sx:{...B.opt||{},...v==="Catalogs"&&B.active},children:"Catalogs"})]}),!u&&s.jsx($e,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}}),s.jsxs(m,{sx:{display:"flex",gap:1,alignItems:"center"},children:[!u&&s.jsxs(s.Fragment,{children:[s.jsx(m,{component:"button",sx:{...U.iconOnly,cursor:!p.loading&&p.matched?"pointer":"not-allowed",opacity:!p.loading&&p.matched?1:.5,background:"none",border:"none",outline:"none",boxShadow:"none",pointerEvents:!p.loading&&p.matched?"auto":"none"},title:p.loading?"Loading...":p.matched?"Settings":"Disabled: Tenant ID mismatch",tabIndex:-1,onClick:!p.loading&&p.matched?()=>h("/product-sync-setting",{state:{fromSettingsIcon:!0}}):void 0,children:s.jsx(Ws,{size:20})}),s.jsx($e,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}})]}),s.jsx(m,{component:"button",sx:U.iconOnly,title:"More",children:s.jsx(Wo,{size:20})})]}),s.jsx($e,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}}),s.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:2,ml:1},children:[s.jsx(m,{component:"button",sx:U.iconOnly,title:"Notifications",children:s.jsx(Bo,{size:20})}),s.jsx(m,{component:"button",sx:U.magicBtn,title:"AI Actions","aria-label":"AI Actions",children:s.jsx(Vs,{size:20})})]})]})]})}),o&&(()=>{const{open:W,onClose:K,onStoreSelect:J,...ee}=a||{};return s.jsx(o,{open:I,onClose:q,onStoreSelect:D,selectedStores:_,...ee})})()]})}if(x){const H=b;return s.jsxs(s.Fragment,{children:[s.jsxs(m,{sx:H.topBar.root,children:[s.jsx(m,{sx:H.topBar.headerRow,children:s.jsxs(m,{sx:H.headerIcons.container,children:[s.jsx(m,{component:"button",sx:{...H.topBar.iconBtn,bgcolor:"transparent",border:"none"},children:s.jsx(Vo,{size:20,color:"#333"})}),s.jsxs(m,{component:"button",sx:{...H.topBar.iconBtn,bgcolor:"transparent",border:"none",position:"relative"},children:[s.jsx(Bo,{size:20,color:"#333"}),s.jsx(m,{sx:H.headerIcons.notificationDot})]}),s.jsx(ql,{sx:H.headerIcons.avatar,children:"U"})]})}),s.jsxs(m,{sx:H.topBar.controlRow,children:[s.jsxs(m,{sx:H.topBar.storeDropdown,onClick:A,children:[s.jsx(P,{sx:{fontSize:"13px",fontWeight:500},children:_.length===0?"0 stores":_.includes("all")?"All Stores":_.length===1?r.find(U=>U.id===_[0])?.name||"1 store":`${_.length} stores`}),s.jsx(Hr,{size:14,color:"#666"})]}),s.jsxs(m,{sx:H.topBar.filterBtn,children:[s.jsx(P,{sx:{fontSize:"13px"},children:"Filter / Sort"}),s.jsx(Fo,{size:14,color:"#666"})]}),s.jsx(m,{component:"button",sx:{...H.topBar.iconBtn,bgcolor:"transparent",border:"none"},children:s.jsx(Wo,{size:18,color:"#666"})})]}),s.jsxs(Ao,{anchorEl:C,open:w,onClose:N,PaperProps:{style:{minWidth:180}},children:[s.jsxs(Fe,{onClick:()=>M("all"),children:[s.jsx(Le,{checked:L.includes("all"),size:"small"}),s.jsx(Vr,{primary:"All Stores"})]}),s.jsx($e,{}),r.filter(U=>U.id!=="all").map(U=>s.jsxs(Fe,{onClick:()=>M(U.id),children:[s.jsx(Le,{checked:L.includes(U.id),size:"small"}),s.jsx(Vr,{primary:U.name})]},U.id)),s.jsx($e,{}),s.jsx(m,{sx:{display:"flex",justifyContent:"flex-end",p:1},children:s.jsx(ae,{variant:"contained",size:"small",onClick:$,children:"Apply"})})]})]}),o&&(()=>{const{open:U,onClose:B,onStoreSelect:W,...K}=a||{};return s.jsx(o,{open:I,onClose:q,onStoreSelect:D,selectedStores:_,...K})})()]})}if(g){const H=S||{},U=H&&H.topBar?H.topBar:{root:{},searchBox:{},searchInput:{},btn:{},iconOnly:{}};return s.jsxs(s.Fragment,{children:[s.jsxs(m,{sx:{...U.root,display:"flex",alignItems:"center",minHeight:56,gap:1.5},children:[s.jsxs(m,{sx:{...U.searchBox,flexShrink:0},children:[s.jsx(Vo,{size:18,style:{position:"absolute",left:8,color:"#888"}}),s.jsx(mn,{placeholder:"Search Products",value:e.search,onChange:B=>t({...e,search:B.target.value}),sx:{...U.searchInput,pl:4,border:"1px solid #e0e0e0",borderRadius:1,bgcolor:"#fff",height:36,minWidth:180,maxWidth:220,boxSizing:"border-box"}})]}),s.jsxs(m,{sx:{display:"flex",alignItems:"center",border:"1px solid #e0e0e0",borderRadius:"6px",px:1.5,minWidth:80,cursor:"pointer",gap:1,height:36,bgcolor:"#fff",...U.btn},onClick:A,tabIndex:0,"aria-label":"Select stores",children:[s.jsx(Ls,{size:18,style:{color:"#555",marginRight:4}}),s.jsx(P,{sx:{fontWeight:700,fontSize:14,color:"#222",mr:.5},children:_.length===0||_.includes("all")?"All Stores":`${_.length} Stores`}),s.jsx(P,{sx:{fontWeight:400,fontSize:13,color:"#888",ml:.5},children:` ${r.filter(B=>B.id!=="all").length} stores`}),s.jsx(Hr,{size:16,color:"#888",style:{marginLeft:2}})]}),s.jsxs(Ao,{anchorEl:C,open:w,onClose:N,PaperProps:{style:{minWidth:180}},children:[s.jsxs(Fe,{onClick:()=>M("all"),children:[s.jsx(Le,{checked:L.includes("all")}),s.jsx(Vr,{primary:"All Stores"})]}),s.jsx($e,{}),r.filter(B=>B.id!=="all").map(B=>s.jsxs(Fe,{onClick:()=>M(B.id),children:[s.jsx(Le,{checked:L.includes(B.id)}),s.jsx(Vr,{primary:B.name})]},B.id)),s.jsx($e,{}),s.jsx(m,{sx:{display:"flex",justifyContent:"flex-end",p:1},children:s.jsx(ae,{variant:"contained",size:"small",onClick:$,children:"Apply"})})]}),s.jsxs(m,{sx:{...U.btn,height:36,bgcolor:"#fff",border:"1px solid #e0e0e0",borderRadius:1,fontSize:13,fontWeight:500,px:2,display:"flex",alignItems:"center",gap:.5},onClick:n,children:["Filters",s.jsx(Hr,{size:14,color:"#888"})]}),s.jsxs(m,{sx:{...U.btn,height:36,bgcolor:"#fff",border:"1px solid #e0e0e0",borderRadius:1,fontSize:13,fontWeight:500,px:2,display:"flex",alignItems:"center",gap:.5},children:["Sort",s.jsx(Fo,{size:16,style:{transform:"rotate(-90deg)"}})]}),s.jsx(ae,{variant:"outlined",size:"small",sx:{height:36,minWidth:48,px:2,fontWeight:500,fontSize:13,borderColor:"#1976d2",color:"#1976d2",bgcolor:"#fff",borderRadius:1,ml:1,textTransform:"none"},children:"OSA"}),s.jsx(ae,{variant:"outlined",size:"small",sx:{height:36,minWidth:70,px:2,fontWeight:500,fontSize:13,borderColor:"#1976d2",color:"#1976d2",bgcolor:"#fff",borderRadius:1,ml:.5,textTransform:"none"},children:"Catalog"}),s.jsx(m,{component:"button",sx:{...U.iconOnly,ml:1,bgcolor:"#fff",border:"1px solid #e0e0e0",borderRadius:1,width:36,height:36,display:"flex",alignItems:"center",justifyContent:"center",p:0},title:p.loading?"Loading...":p.matched?"Settings":"Disabled: Tenant ID mismatch",tabIndex:-1,onClick:!p.loading&&p.matched?()=>h("/product-sync-setting",{state:{fromSettingsIcon:!0}}):void 0,disabled:p.loading||!p.matched,style:{cursor:!p.loading&&p.matched?"pointer":"not-allowed",opacity:!p.loading&&p.matched?1:.5,pointerEvents:!p.loading&&p.matched?"auto":"none"},children:s.jsx(Ws,{size:20})}),s.jsx(m,{component:"button",sx:{...U.iconOnly,bgcolor:"#fff",border:"1px solid #e0e0e0",borderRadius:1,width:36,height:36,display:"flex",alignItems:"center",justifyContent:"center",p:0,ml:.5},title:"More",children:s.jsx(Wo,{size:20})}),s.jsx(m,{component:"button",sx:{...U.iconOnly,bgcolor:"#fff",border:"1px solid #e0e0e0",borderRadius:1,width:36,height:36,display:"flex",alignItems:"center",justifyContent:"center",p:0,ml:1},title:"Notifications",children:s.jsx(Bo,{size:20})}),s.jsx(m,{component:"button",sx:{...U.iconOnly,bgcolor:"#fff",border:"1px solid #e0e0e0",borderRadius:1,width:36,height:36,display:"flex",alignItems:"center",justifyContent:"center",p:0,ml:.5},title:"Star",children:s.jsx(Vs,{size:20})})]}),o&&(()=>{const{open:B,onClose:W,onStoreSelect:K,...J}=a||{};return s.jsx(o,{open:I,onClose:q,onStoreSelect:D,selectedStores:_,...J})})()]})}};function yc({showTopBar:e=!0}){const t=We(),r=xe(t.breakpoints.down("sm")),n=xe(t.breakpoints.between("sm","md")),o=yt(),a=Or(),{tenantId:l}=Ai(),c=jt(),u=It(),d=Nt(),[p,h]=F.useState({matched:!1,error:"",apiResponse:null,loading:!0});F.useEffect(()=>{if(console.log("Fetching tenant integrations for tenantId:",l),!l){Promise.resolve().then(()=>{h({matched:!1,error:"No tenant ID provided",apiResponse:null,loading:!1})});return}Ha(l).then(E=>{if(E.status&&Array.isArray(E.data)&&E.data.length>0){const w=E.data[0];h({matched:!0,error:"",apiResponse:w,loading:!1}),console.log("Active integrations fetched successfully API Response:",w)}else h({matched:!1,error:"No active integration found for this tenant id",apiResponse:null,loading:!1})}).catch(()=>{h({matched:!1,error:"No active integration found for this tenant id",apiResponse:null,loading:!1})})},[l]);let y={};r?y=u&&u.emptyProduct?u.emptyProduct:{wrapper:{},card:{},iconContainer:{},sparkleContainer:{},sparkleLeft:{},sparkleCenter:{},sparkleRight:{},inboxIcon:{},notch:{},title:{},subtitle:{},actionLink:{}}:n?y=d&&d.emptyProduct?d.emptyProduct:{wrapper:{},card:{},iconContainer:{},sparkleContainer:{},sparkleLeft:{},sparkleCenter:{},sparkleRight:{},inboxIcon:{},notch:{},title:{},subtitle:{},actionLink:{}}:y=c&&c.emptyProduct?c.emptyProduct:{wrapper:{},card:{},iconContainer:{},sparkleContainer:{},sparkleLeft:{},sparkleCenter:{},sparkleRight:{},inboxIcon:{},notch:{},title:{},subtitle:{},actionLink:{}};const x=Tt(E=>E.products),{productsById:g={}}=x||{},[f,b]=F.useState({category:"all",status:"all",search:"",store:[]});F.useEffect(()=>{a(tn())},[a]);const S={};Object.values(g).forEach(E=>{E.storeId&&E.storeName&&(S[E.storeId]=E.storeName)});const v=[{id:"all",name:"All Stores"},...Object.entries(S).map(([E,w])=>({id:E,name:w}))],T=E=>{b(E),e&&E.store&&E.store.length>0&&o("/products",{state:{filters:E,tenantStatus:p}})},C=E=>{E.preventDefault(),o("/settings",{state:{tenantIntegrationData:p.apiResponse}})};return!r&&!n?s.jsxs(m,{sx:{minHeight:"100vh",bgcolor:"#f5f7fa",overflowX:"hidden"},children:[e&&s.jsx(kn,{filters:f,onFilterChange:T,styles:c.topBar,stores:v,tenantStatus:p}),s.jsx(m,{sx:y.wrapper,children:s.jsxs(m,{sx:y.card,children:[s.jsxs(m,{sx:y.iconContainer,children:[s.jsxs(m,{sx:y.sparkleContainer,children:[s.jsx(m,{sx:y.sparkleLeft}),s.jsx(m,{sx:y.sparkleCenter}),s.jsx(m,{sx:y.sparkleRight})]}),s.jsx(m,{sx:y.inboxIcon,children:s.jsx(m,{sx:y.notch})})]}),s.jsx(P,{sx:y.title,children:"No Products"}),s.jsx(P,{sx:y.subtitle,children:p.loading?"Loading...":p.matched?"Active integrations fetched successfully":p.error?p.error:"No active integration found for this tenant id"}),!p.loading&&!p.matched&&s.jsx(P,{component:"a",href:"#",sx:y.actionLink,onClick:C,children:"Start Syncing Products"})]})})]}):r?s.jsxs(m,{sx:{minHeight:"100vh",bgcolor:"#f5f7fa"},children:[e&&s.jsx(kn,{filters:f,onFilterChange:T,styles:u,stores:v}),s.jsx(m,{sx:y.wrapper,children:s.jsxs(m,{sx:y.card,children:[s.jsxs(m,{sx:y.iconContainer,children:[s.jsxs(m,{sx:y.sparkleContainer,children:[s.jsx(m,{sx:y.sparkleLeft}),s.jsx(m,{sx:y.sparkleCenter}),s.jsx(m,{sx:y.sparkleRight})]}),s.jsx(m,{sx:y.inboxIcon,children:s.jsx(m,{sx:y.notch})})]}),s.jsx(P,{sx:y.title,children:"No Products"}),s.jsx(P,{sx:y.subtitle,children:p.loading?"Loading...":p.matched?"Active integrations fetched successfully":p.error?p.error:"No active integration found for this tenant id"}),!p.loading&&!p.matched&&s.jsx(P,{component:"a",href:"#",sx:y.actionLink,onClick:C,children:"Start Syncing Products"})]})})]}):s.jsxs(m,{sx:{minHeight:"100vh",bgcolor:"#f5f7fa"},children:[e&&s.jsx(kn,{filters:f,onFilterChange:T,styles:d&&d.topBar?d.topBar:{root:{},inner:{},searchBox:{},searchInput:{},controlGroup:{},btn:{},iconOnly:{},magicBtn:{},viewSwitch:{opt:{},active:{}}},stores:v}),s.jsx(m,{sx:y.wrapper,children:s.jsxs(m,{sx:y.card,children:[s.jsxs(m,{sx:y.iconContainer,children:[s.jsxs(m,{sx:y.sparkleContainer,children:[s.jsx(m,{sx:y.sparkleLeft}),s.jsx(m,{sx:y.sparkleCenter}),s.jsx(m,{sx:y.sparkleRight})]}),s.jsx(m,{sx:y.inboxIcon,children:s.jsx(m,{sx:y.notch})})]}),s.jsx(P,{sx:y.title,children:"No Products"}),s.jsx(P,{sx:y.subtitle,children:p.loading?"Loading...":p.matched?"Active integrations fetched successfully":p.error?p.error:"No active integration found for this tenant id"}),!p.loading&&!p.matched&&s.jsx(P,{component:"a",href:"#",sx:y.actionLink,onClick:C,children:"Start Syncing Products"})]})})]})}const ck=({products:e,loading:t,selectedProducts:r,onToggleProduct:n,styles:o,onHeaderToggle:a,showLimitedColumns:l})=>{const c=We(),u=xe(c.breakpoints.down("sm")),d=xe(c.breakpoints.between("sm","md")),p=It(),h=Nt();if(t)return s.jsxs(m,{sx:{display:"flex",justifyContent:"center",p:4,bgcolor:"background.paper",borderRadius:2},children:[s.jsx(ys,{}),s.jsx(P,{sx:{ml:2,color:"text.secondary"},children:"Loading products..."})]});if(e.length===0)return s.jsx(yc,{showTopBar:!1});if(!u&&!d)return!o||!o.listHeader?null:s.jsx(s.Fragment,{children:s.jsxs(m,{children:[s.jsxs(m,{sx:{...o.listHeader.root,...l?o.gridSystemLimited:o.gridSystem},children:[s.jsx(m,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",mr:1.5},children:Array.isArray(r)&&r.length>0?s.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 28 28",style:{display:"block"},"aria-hidden":"true",children:[s.jsx("rect",{x:"3",y:"3",width:"22",height:"22",rx:"6",fill:"#F6FAFF",stroke:"#2196F3",strokeWidth:"2"}),s.jsx("rect",{x:"9",y:"13",width:"10",height:"2",rx:"1",fill:"#2196F3"})]}):s.jsx("svg",{width:"28",height:"28",viewBox:"0 0 28 28",style:{display:"block"},"aria-hidden":"true",children:s.jsx("rect",{x:"3",y:"3",width:"22",height:"22",rx:"6",fill:"#fff",stroke:"#b3b0b0ff",strokeWidth:"2"})})}),s.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:.5,cursor:a?"pointer":"default"},onClick:y=>{y.stopPropagation()},onMouseDown:y=>{y.preventDefault()},children:[s.jsx(P,{fontSize:"inherit",fontWeight:"inherit",children:"Product"}),s.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",style:{marginLeft:2,display:"inline",verticalAlign:"middle"},"aria-hidden":"true",children:[s.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19",stroke:"#444",strokeWidth:"2.2",strokeLinecap:"round"}),s.jsx("polyline",{points:"6,13 12,19 18,13",fill:"none",stroke:"#444",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})]})]}),s.jsx(P,{fontSize:"inherit",fontWeight:"inherit",children:"Status"}),!l&&s.jsx(P,{fontSize:"inherit",fontWeight:"inherit",children:"Price"}),s.jsx(P,{fontSize:"inherit",fontWeight:"inherit",children:"Stock / OSA"}),!l&&s.jsx(P,{fontSize:"inherit",fontWeight:"inherit",children:"Offer"})]}),s.jsx(m,{sx:{display:"flex",flexDirection:"column"},children:e.map((y,x)=>s.jsx(ic,{product:y,isSelected:r?.includes(y.id),onToggle:()=>n(y.id),styles:o,showLimitedColumns:l},y.id?`${y.id}-${x}`:x))})]})});if(u){const y=p;return s.jsxs(m,{children:[s.jsxs(m,{sx:y.listHeader.root,children:[s.jsx(m,{sx:y.listHeader.checkboxIcon,children:Array.isArray(r)&&r.length>0?s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 28 28",style:{display:"block"},"aria-hidden":"true",children:[s.jsx("rect",{x:"3",y:"3",width:"22",height:"22",rx:"6",fill:"#F6FAFF",stroke:"#2196F3",strokeWidth:"2"}),s.jsx("rect",{x:"9",y:"13",width:"10",height:"2",rx:"1",fill:"#2196F3"})]}):s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 28 28",style:{display:"block"},"aria-hidden":"true",children:s.jsx("rect",{x:"3",y:"3",width:"22",height:"22",rx:"6",fill:"#fff",stroke:"#ccc",strokeWidth:"2"})})}),s.jsxs(P,{sx:y.listHeader.productCount,children:[e.length," Products"]})]}),s.jsx(m,{sx:{display:"flex",flexDirection:"column"},children:e.map((x,g)=>s.jsx(ic,{product:x,isSelected:r?.includes(x.id),onToggle:()=>n(x.id),styles:y,showLimitedColumns:l},x.id?`${x.id}-${g}`:g))})]})}if(d){const y=h;return s.jsxs(m,{children:[s.jsxs(m,{sx:{...y.listHeader.root,...l?y.gridSystemLimited:y.gridSystem},children:[s.jsx(m,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",mr:1.5},children:Array.isArray(r)&&r.length>0?s.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 28 28",style:{display:"block"},"aria-hidden":"true",children:[s.jsx("rect",{x:"3",y:"3",width:"22",height:"22",rx:"6",fill:"#F6FAFF",stroke:"#2196F3",strokeWidth:"2"}),s.jsx("rect",{x:"9",y:"13",width:"10",height:"2",rx:"1",fill:"#2196F3"})]}):s.jsx("svg",{width:"28",height:"28",viewBox:"0 0 28 28",style:{display:"block"},"aria-hidden":"true",children:s.jsx("rect",{x:"3",y:"3",width:"22",height:"22",rx:"6",fill:"#fff",stroke:"#b3b0b0ff",strokeWidth:"2"})})}),s.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:.5,cursor:a?"pointer":"default"},onClick:x=>{x.stopPropagation()},onMouseDown:x=>{x.preventDefault()},children:[s.jsx(P,{fontSize:"inherit",fontWeight:"inherit",children:"Product"}),s.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",style:{marginLeft:2,display:"inline",verticalAlign:"middle"},"aria-hidden":"true",children:[s.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19",stroke:"#444",strokeWidth:"2.2",strokeLinecap:"round"}),s.jsx("polyline",{points:"6,13 12,19 18,13",fill:"none",stroke:"#444",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})]})]}),s.jsx(P,{fontSize:"inherit",fontWeight:"inherit",children:"Status"}),!l&&s.jsx(P,{fontSize:"inherit",fontWeight:"inherit",children:"Price"}),s.jsx(P,{fontSize:"inherit",fontWeight:"inherit",children:"Stock / OSA"}),!l&&s.jsx(P,{fontSize:"inherit",fontWeight:"inherit",children:"Offer"})]}),s.jsx(m,{sx:{display:"flex",flexDirection:"column"},children:e.map(x=>s.jsx(ic,{product:x,isSelected:r?.includes(x.id),onToggle:()=>n(x.id),styles:y,showLimitedColumns:l},x.id))})]})}},Us=lt(s.jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline");const dk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),uk=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Xh=e=>{const t=uk(e);return t.charAt(0).toUpperCase()+t.slice(1)},Jh=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),pk=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var fk={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 hk=F.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:l,...c},u)=>F.createElement("svg",{ref:u,...fk,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Jh("lucide",o),...!a&&!pk(c)&&{"aria-hidden":"true"},...c},[...l.map(([d,p])=>F.createElement(d,p)),...Array.isArray(a)?a:[a]]));const tr=(e,t)=>{const r=F.forwardRef(({className:n,...o},a)=>F.createElement(hk,{ref:a,iconNode:t,className:Jh(`lucide-${dk(Xh(e))}`,`lucide-${e}`,n),...o}));return r.displayName=Xh(e),r};const Wt=tr("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);const mc=tr("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);const xc=tr("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const vc=tr("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);const rr=tr("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const st=tr("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);const Sc=tr("server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);const qr=tr("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 hr=tr("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);const wc=tr("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),gk=({products:e=[],styles:t})=>{const r=yt(),n=We(),o=xe(n.breakpoints.down("sm")),a=xe(n.breakpoints.between("sm","md")),l=It(),c=Nt(),u=b=>b.status===!0||b.status==="Active",d=()=>{if(!e.length)return null;const b=e.filter(S=>S.updatedAt).sort((S,v)=>new Date(v.updatedAt)-new Date(S.updatedAt))[0];return b?b.updatedAt:null},p=b=>{if(!b)return"Unknown";const S=new Date,v=new Date(b),T=Math.floor((S-v)/6e4);if(T<1)return"Just now";const C=Math.floor(T/1440),E=Math.floor(T%1440/60),w=T%60;let I="";return C>0&&(I+=`${C} days `),E>0&&(I+=`${E} hour `),w>0&&(I+=`${w} minutes `),I=I.trim(),I?`${I} ago`:"Just now"},h=F.useMemo(()=>e.length?e[0]:null,[e]),x=h?(b=>b?b.startsWith("http")?b:`${Hu()}${b}`:null)(h.productImage||h.image):null,g=e.filter(u).length,f=d();if(!o&&!a)return!t||!t.header?null:s.jsxs(m,{component:"header",sx:t.header.container,children:[s.jsxs(m,{sx:t.header.statCard,children:[s.jsx(P,{variant:"h4",sx:t.theme.typography.h4,children:"Active Products"}),s.jsx(P,{sx:t.header.bigNumber,children:g}),s.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1,mt:1},children:[s.jsx(Us,{sx:{color:"#27ae60",fontSize:15,mr:.5}}),s.jsx("span",{style:{color:"#757575",fontWeight:500,fontSize:"0.8rem",letterSpacing:.2,marginRight:1},children:"Sync"}),s.jsx("span",{style:{color:"#757575",fontWeight:500,fontSize:"0.8rem"},children:p(f)})]})]}),s.jsxs(m,{sx:t.header.statCard,children:[s.jsx(P,{variant:"h4",sx:{fontSize:18,fontWeight:500,color:"#444",mb:.5},children:"Active Catalogs"}),s.jsx(P,{sx:{fontSize:36,fontWeight:600,color:"#222",lineHeight:1,mb:.5},children:"34"}),s.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1,mb:1},children:[s.jsxs("svg",{width:"16",height:"16",fill:"none",viewBox:"0 0 24 24",style:{marginRight:4},children:[s.jsx("path",{d:"M7 17h10M7 13h10M7 9h10M5 7v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2Z",stroke:"#888",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M8 7v2a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V7",stroke:"#888",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),s.jsx(P,{sx:{color:"#757575",fontWeight:500,fontSize:"0.95rem"},children:"4 public links"}),s.jsx(m,{sx:{flex:1}}),s.jsxs(P,{component:"span",sx:{color:"#2563eb",fontWeight:500,fontSize:"1rem",textDecoration:"none",cursor:"pointer",ml:1,display:"inline-flex",alignItems:"center"},onClick:()=>window.location.href="/catalogs/manage-shared",children:["Manage ",s.jsx("svg",{width:"18",height:"18",fill:"none",viewBox:"0 0 24 24",style:{verticalAlign:"middle"},children:s.jsx("path",{d:"M9 18l6-6-6-6",stroke:"#2563eb",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})]}),s.jsxs(m,{sx:t.header.statCard,children:[s.jsx(P,{variant:"h4",sx:t.theme.typography.h4,children:"Best Product"}),h?s.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1.5,mt:.5},children:[x?s.jsx(m,{component:"img",src:x,alt:h.name,sx:{width:40,height:40,objectFit:"contain",borderRadius:1}}):s.jsx(m,{sx:{width:40,height:40,bgcolor:"#eee",borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center"},children:"📷"}),s.jsxs(m,{children:[s.jsx(P,{sx:{fontSize:"0.95rem",fontWeight:600,m:0},children:h.name}),s.jsxs(P,{sx:{fontSize:"0.78rem",color:"text.secondary"},children:[h.quantity||h.stock," units",h.category?` · ${h.category}`:""]})]})]}):s.jsx(m,{sx:{display:"flex",alignItems:"center",mt:1},children:s.jsx(P,{variant:"body2",color:"text.secondary",children:"No data available"})})]})]});if(o){const b=l;return s.jsxs(m,{component:"header",sx:b.header.container,children:[s.jsx(P,{sx:b.header.title,children:"Christmas Super Sale 2025"}),s.jsxs(m,{sx:b.header.statsScroll,children:[s.jsxs(m,{sx:b.header.statCard,children:[s.jsx(P,{sx:b.header.statLabel,children:"Active Products"}),s.jsx(P,{sx:b.header.statValue,children:g}),s.jsxs(m,{sx:b.header.statMeta,children:[s.jsx(Us,{sx:{color:"#27ae60",fontSize:14}}),s.jsxs(P,{sx:b.header.statMetaText,children:["Sync ",p(f)]})]})]}),s.jsxs(m,{sx:b.header.statCard,children:[s.jsx(P,{sx:{fontSize:15,fontWeight:500,color:"#444",mb:.5},children:"Active Catalogs"}),s.jsx(P,{sx:{fontSize:28,fontWeight:600,color:"#222",lineHeight:1,mb:.5},children:"34"}),s.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1,mb:1},children:[s.jsxs("svg",{width:"15",height:"15",fill:"none",viewBox:"0 0 24 24",style:{marginRight:4},children:[s.jsx("path",{d:"M7 17h10M7 13h10M7 9h10M5 7v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2Z",stroke:"#888",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M8 7v2a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V7",stroke:"#888",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),s.jsx(P,{sx:{color:"#757575",fontWeight:500,fontSize:"0.95rem"},children:"4 public links"}),s.jsx(m,{sx:{flex:1}}),s.jsxs(P,{component:"span",sx:{color:"#2563eb",fontWeight:500,fontSize:"1rem",textDecoration:"none",cursor:"pointer",ml:1},onClick:()=>r("/catalogs/manage-shared"),children:["Manage ",s.jsx("svg",{width:"16",height:"16",fill:"none",viewBox:"0 0 24 24",style:{verticalAlign:"middle"},children:s.jsx("path",{d:"M9 18l6-6-6-6",stroke:"#2563eb",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})]}),h&&s.jsxs(m,{sx:{...b.header.statCard,minWidth:180,display:"flex",flexDirection:"column",gap:.5},children:[s.jsx(P,{sx:b.header.statLabel,children:"Best Product"}),s.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1.5,mt:.5},children:[x&&s.jsx(m,{component:"img",src:x,alt:h.name,sx:{width:48,height:48,objectFit:"cover",borderRadius:1,bgcolor:"#f5f5f5"}}),s.jsxs(m,{sx:{display:"flex",flexDirection:"column"},children:[s.jsx(P,{sx:{fontSize:"14px",fontWeight:600,color:"#333",lineHeight:1.3},children:h.name}),s.jsx(P,{sx:{fontSize:"12px",color:"rgba(0, 0, 0, 0.6)",fontWeight:500},children:"250 units"})]})]})]})]})]})}if(a){const b=c;return s.jsxs(m,{component:"header",sx:b.header.container,children:[s.jsxs(m,{sx:b.header.statCard,children:[s.jsx(P,{variant:"h4",sx:b.theme.typography.h4,children:"Active Products"}),s.jsx(P,{sx:b.header.bigNumber,children:g}),s.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1,mt:1},children:[s.jsx(Us,{sx:{color:"#27ae60",fontSize:15,mr:.5}}),s.jsx("span",{style:{color:"#757575",fontWeight:500,fontSize:"0.8rem",letterSpacing:.2,marginRight:1},children:"Sync"}),s.jsx("span",{style:{color:"#757575",fontWeight:500,fontSize:"0.8rem"},children:p(f)})]})]}),s.jsxs(m,{sx:b.header.statCard,children:[s.jsx(P,{variant:"h4",sx:b.theme.typography.h4,children:"Active Catalogs"}),s.jsx(m,{sx:{display:"flex",alignItems:"center",gap:.5}})]}),s.jsxs(m,{sx:b.header.statCard,children:[s.jsx(P,{variant:"h4",sx:b.theme.typography.h4,children:"Best Product"}),h?s.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1.5,mt:.5},children:[x?s.jsx(m,{component:"img",src:x,alt:h.name,sx:{width:40,height:40,objectFit:"contain",borderRadius:1}}):s.jsx(m,{sx:{width:40,height:40,bgcolor:"#eee",borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center"},children:"📷"}),s.jsxs(m,{children:[s.jsx(P,{sx:{fontSize:"0.95rem",fontWeight:600,m:0},children:h.name}),s.jsxs(P,{sx:{fontSize:"0.78rem",color:"text.secondary"},children:[h.quantity||h.stock," units",h.category?` · ${h.category}`:""]})]})]}):s.jsx(m,{sx:{display:"flex",alignItems:"center",mt:1},children:s.jsx(P,{variant:"body2",color:"text.secondary",children:"No data available"})})]})]})}},bk=({selectedProducts:e,selectedDesign:t,sheetSize:r,itemsToShow:n})=>{if(console.log("printPromoDesigns called with:",{selectedDesign:t,sheetSize:r,itemsToShow:n,productsCount:e.length,selectedProducts:e}),!e||e.length===0){alert("No products selected for printing");return}const o=window.open("","_blank","width=800,height=600");if(!o){alert("Please allow popups to print promo designs");return}const a={A2:{width:420,height:594,stickersPerSheet:4},A3:{width:297,height:420,stickersPerSheet:6},A4:{width:210,height:297,stickersPerSheet:1},A5:{width:148,height:210,stickersPerSheet:12},A7:{width:74,height:105,stickersPerSheet:24}},l=a[r]||a.A5,u=(()=>{const S=r==="A2"||r==="A3"?2:r==="A4"?1:r==="A5"?3:4,v=Math.ceil(l.stickersPerSheet/S);return{width:r==="A4"?l.width-20:l.width/S-5,height:r==="A4"?l.height-20:l.height/v-5,cols:S,rows:v}})(),d=(S,v=0)=>{const T=Number(S);return Number.isFinite(T)?T:v},x={design1:S=>{const v=S?.productName||S?.name||"Product",T=S?.originalPrice??S?.mrp??S?.price??0,C=S?.price??S?.discountPrice??0,E=d(T,0),w=d(C,0),I=E>w&&E>0?Math.round((E-w)/E*100):5,z=w;return`
|
|
177
|
+
`))}return null}),anchorOrigin:i.shape({horizontal:i.oneOfType([i.oneOf(["center","left","right"]),i.number]).isRequired,vertical:i.oneOfType([i.oneOf(["bottom","center","top"]),i.number]).isRequired}),anchorPosition:i.shape({left:i.number.isRequired,top:i.number.isRequired}),anchorReference:i.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:i.elementType,BackdropProps:i.object,children:i.node,classes:i.object,className:i.string,container:i.oneOfType([Nr,i.func]),disableScrollLock:i.bool,elevation:$h,marginThreshold:i.number,onClose:i.func,open:i.bool.isRequired,PaperProps:i.shape({component:wc}),slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),paper:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,paper:i.elementType,root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),transformOrigin:i.shape({horizontal:i.oneOfType([i.oneOf(["center","left","right"]),i.number]).isRequired,vertical:i.oneOfType([i.oneOf(["bottom","center","top"]),i.number]).isRequired}),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})]),TransitionProps:i.object});function FO(e){return pe("MuiMenu",e)}de("MuiMenu",["root","paper","list"]);const zO={vertical:"top",horizontal:"right"},jO={vertical:"top",horizontal:"left"},BO=e=>{const{classes:t}=e;return ue({root:["root"],paper:["paper"],list:["list"]},FO,t)},LO=G(qc,{shouldForwardProp:e=>ft(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),WO=G(jg,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),VO=G($g,{name:"MuiMenu",slot:"List"})({outline:0}),Yc=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:p,open:u,PaperProps:h={},PopoverClasses:v,transitionDuration:g="auto",TransitionProps:{onEntering:y,...f}={},variant:m="selectedMenu",slots:x={},slotProps:b={},...w}=n,S=sc(),C={...n,autoFocus:o,disableAutoFocusItem:c,MenuListProps:d,onEntering:y,PaperProps:h,transitionDuration:g,TransitionProps:f,variant:m},O=BO(C),I=o&&!c&&u,F=T.useRef(null),D=(H,B)=>{F.current&&F.current.adjustStyleForScrollbar(H,{direction:S?"rtl":"ltr"}),y&&y(H,B)},L=H=>{H.key==="Tab"&&(H.preventDefault(),p&&p(H,"tabKeyDown"))};let z=-1;T.Children.map(s,(H,B)=>{T.isValidElement(H)&&(process.env.NODE_ENV!=="production"&&mc.isFragment(H)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
178
|
+
`)),H.props.disabled||(m==="selectedMenu"&&H.props.selected||z===-1)&&(z=B))});const k={slots:x,slotProps:{list:d,transition:f,paper:h,...b}},j=og({elementType:x.root,externalSlotProps:b.root,ownerState:C,className:[O.root,l]}),[_,M]=ge("paper",{className:O.paper,elementType:WO,externalForwardedProps:k,shouldForwardComponentProp:!0,ownerState:C}),[N,A]=ge("list",{className:se(O.list,d.className),elementType:VO,shouldForwardComponentProp:!0,externalForwardedProps:k,getSlotProps:H=>({...H,onKeyDown:B=>{L(B),H.onKeyDown?.(B)}}),ownerState:C}),W=typeof k.slotProps.transition=="function"?k.slotProps.transition(C):k.slotProps.transition;return a.jsx(LO,{onClose:p,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?zO:jO,slots:{root:x.root,paper:_,backdrop:x.backdrop,...x.transition&&{transition:x.transition}},slotProps:{root:j,paper:M,backdrop:typeof b.backdrop=="function"?b.backdrop(C):b.backdrop,transition:{...W,onEntering:(...H)=>{D(...H),W?.onEntering?.(...H)}}},open:u,ref:r,transitionDuration:g,ownerState:C,...w,classes:v,children:a.jsx(N,{actions:F,autoFocus:o&&(z===-1||c),autoFocusItem:I,variant:m,...A,children:s})})});process.env.NODE_ENV!=="production"&&(Yc.propTypes={anchorEl:i.oneOfType([Nr,i.func]),autoFocus:i.bool,children:i.node,classes:i.object,className:i.string,disableAutoFocusItem:i.bool,MenuListProps:i.object,onClose:i.func,open:i.bool.isRequired,PaperProps:i.object,PopoverClasses:i.object,slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),list:i.oneOfType([i.func,i.object]),paper:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,list:i.elementType,paper:i.elementType,root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),transitionDuration:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})]),TransitionProps:i.object,variant:i.oneOf(["menu","selectedMenu"])});function UO(e){return pe("MuiMenuItem",e)}const fi=de("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),HO=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},RO=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:s,classes:l}=e,d=ue({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",s&&"selected"]},UO,l);return{...l,...d}},qO=G(qo,{shouldForwardProp:e=>ft(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:HO})(he(({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"}},[`&.${fi.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${fi.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${fi.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)}},[`&.${fi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${fi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${wg.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${wg.inset}`]:{marginLeft:52},[`& .${Yn.root}`]:{marginTop:0,marginBottom:0},[`& .${Yn.inset}`]:{paddingLeft:36},[`& .${_g.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,[`& .${_g.root} svg`]:{fontSize:"1.25rem"}}}]}))),Rt=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:s="li",dense:l=!1,divider:c=!1,disableGutters:d=!1,focusVisibleClassName:p,role:u="menuitem",tabIndex:h,className:v,...g}=n,y=T.useContext(di),f=T.useMemo(()=>({dense:l||y.dense||!1,disableGutters:d}),[y.dense,l,d]),m=T.useRef(null);Xt(()=>{o&&(m.current?m.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[o]);const x={...n,dense:f.dense,divider:c,disableGutters:d},b=RO(n),w=Je(m,r);let S;return n.disabled||(S=h!==void 0?h:-1),a.jsx(di.Provider,{value:f,children:a.jsx(qO,{ref:w,role:u,tabIndex:S,component:s,focusVisibleClassName:se(b.focusVisible,p),className:se(b.root,v),...g,ownerState:x,classes:b})})});process.env.NODE_ENV!=="production"&&(Rt.propTypes={autoFocus:i.bool,children:i.node,classes:i.object,className:i.string,component:i.elementType,dense:i.bool,disabled:i.bool,disableGutters:i.bool,divider:i.bool,focusVisibleClassName:i.string,role:i.string,selected:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),tabIndex:i.number});function YO(e){return pe("MuiNativeSelect",e)}const Gc=de("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),GO=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:s,error:l}=e,c={select:["select",r,n&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${te(r)}`,s&&"iconOpen",n&&"disabled"]};return ue(c,YO,t)},Bg=G("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Gc.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}}}]})),KO=G(Bg,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ft,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Gc.multiple}`]:t.multiple}]}})({}),Lg=G("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Gc.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}}]})),XO=G(Lg,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${te(r.variant)}`],r.open&&t.iconOpen]}})({}),Wg=T.forwardRef(function(t,r){const{className:n,disabled:o,error:s,IconComponent:l,inputRef:c,variant:d="standard",...p}=t,u={...t,disabled:o,variant:d,error:s},h=GO(u);return a.jsxs(T.Fragment,{children:[a.jsx(KO,{ownerState:u,className:se(h.select,n),disabled:o,ref:c||r,...p}),t.multiple?null:a.jsx(XO,{as:l,ownerState:u,className:h.icon})]})});process.env.NODE_ENV!=="production"&&(Wg.propTypes={children:i.node,classes:i.object,className:i.string,disabled:i.bool,error:i.bool,IconComponent:i.elementType.isRequired,inputRef:vt,multiple:i.bool,name:i.string,onChange:i.func,value:i.any,variant:i.oneOf(["standard","outlined","filled"])});var Vg;const JO=G("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:ft})({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%"}),QO=G("legend",{name:"MuiNotchedOutlined",shouldForwardProp:ft})(he(({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 Ug(e){const{children:t,classes:r,className:n,label:o,notched:s,...l}=e,c=o!=null&&o!=="",d={...e,notched:s,withLabel:c};return a.jsx(JO,{"aria-hidden":!0,className:n,ownerState:d,...l,children:a.jsx(QO,{ownerState:d,children:c?a.jsx("span",{children:o}):Vg||(Vg=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&(Ug.propTypes={children:i.node,classes:i.object,className:i.string,label:i.node,notched:i.bool.isRequired,style:i.object});const ZO=e=>{const{classes:t}=e,n=ue({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},kE,t);return{...t,...n}},ek=G(pa,{shouldForwardProp:e=>ft(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ca})(he(({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 .${gr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${gr.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${gr.focused} .${gr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Tt()).map(([r])=>({props:{color:r},style:{[`&.${gr.focused} .${gr.notchedOutline}`]:{borderColor:(e.vars||e).palette[r].main}}})),{props:{},style:{[`&.${gr.error} .${gr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${gr.disabled} .${gr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),tk=G(Ug,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(he(({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}})),rk=G(ua,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:da})(he(({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}}]}))),xa=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:s=!1,inputComponent:l="input",label:c,multiline:d=!1,notched:p,slots:u={},slotProps:h={},type:v="text",...g}=n,y=ZO(n),f=hr(),m=Rr({props:n,muiFormControl:f,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x={...n,color:m.color||"primary",disabled:m.disabled,error:m.error,focused:m.focused,formControl:f,fullWidth:s,hiddenLabel:m.hiddenLabel,multiline:d,size:m.size,type:v},b=u.root??o.Root??ek,w=u.input??o.Input??rk,[S,C]=ge("notchedOutline",{elementType:tk,className:y.notchedOutline,shouldForwardComponentProp:!0,ownerState:x,externalForwardedProps:{slots:u,slotProps:h},additionalProps:{label:c!=null&&c!==""&&m.required?a.jsxs(T.Fragment,{children:[c," ","*"]}):c}});return a.jsx(ti,{slots:{root:b,input:w},slotProps:h,renderSuffix:O=>a.jsx(S,{...C,notched:typeof p<"u"?p:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:s,inputComponent:l,multiline:d,ref:r,type:v,...g,classes:{...y,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(xa.propTypes={autoComplete:i.string,autoFocus:i.bool,classes:i.object,color:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),defaultValue:i.any,disabled:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,id:i.string,inputComponent:i.elementType,inputProps:i.object,inputRef:vt,label:i.node,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,notched:i.bool,onChange:i.func,placeholder:i.string,readOnly:i.bool,required:i.bool,rows:i.oneOfType([i.number,i.string]),slotProps:i.shape({input:i.object,notchedOutline:i.oneOfType([i.func,i.object]),root:i.object}),slots:i.shape({input:i.elementType,notchedOutline:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any}),xa.muiName="Input";const nk=ht(a.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"),ok=ht(a.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"),ik=G("span",{name:"MuiRadioButtonIcon",shouldForwardProp:ft})({position:"relative",display:"flex"}),sk=G(nk,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),ak=G(ok,{name:"MuiRadioButtonIcon"})(he(({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 Kc(e){const{checked:t=!1,classes:r={},fontSize:n}=e,o={...e,checked:t};return a.jsxs(ik,{className:r.root,ownerState:o,children:[a.jsx(sk,{fontSize:n,className:r.background,ownerState:o}),a.jsx(ak,{fontSize:n,className:r.dot,ownerState:o})]})}process.env.NODE_ENV!=="production"&&(Kc.propTypes={checked:i.bool,classes:i.object,fontSize:i.oneOf(["small","medium"])});const Xc=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(Xc.displayName="RadioGroupContext");function lk(){return T.useContext(Xc)}function ck(e){return pe("MuiRadio",e)}const Hg=de("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),dk=e=>{const{classes:t,color:r,size:n}=e,o={root:["root",`color${te(r)}`,n!=="medium"&&`size${te(n)}`]};return{...t,...ue(o,ck,t)}},pk=G(ha,{shouldForwardProp:e=>ft(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size!=="medium"&&t[`size${te(r.size)}`],t[`color${te(r.color)}`]]}})(he(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${Hg.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(Tt()).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(Tt()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${Hg.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function uk(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const fk=a.jsx(Kc,{checked:!0}),hk=a.jsx(Kc,{}),Rg=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiRadio"}),{checked:o,checkedIcon:s=fk,color:l="primary",icon:c=hk,name:d,onChange:p,size:u="medium",className:h,disabled:v,disableRipple:g=!1,slots:y={},slotProps:f={},inputProps:m,...x}=n,b=hr();let w=v;b&&typeof w>"u"&&(w=b.disabled),w??=!1;const S={...n,disabled:w,disableRipple:g,color:l,size:u},C=dk(S),O=lk();let I=o;const F=yc(p,O&&O.onChange);let D=d;O&&(typeof I>"u"&&(I=uk(O.value,n.value)),typeof D>"u"&&(D=O.name));const L=f.input??m,[z,k]=ge("root",{ref:r,elementType:pk,className:se(C.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:f,...x},getSlotProps:j=>({...j,onChange:(_,...M)=>{j.onChange?.(_,...M),F(_,...M)}}),ownerState:S,additionalProps:{type:"radio",icon:T.cloneElement(c,{fontSize:c.props.fontSize??u}),checkedIcon:T.cloneElement(s,{fontSize:s.props.fontSize??u}),disabled:w,name:D,checked:I,slots:y,slotProps:{input:typeof L=="function"?L(S):L}}});return a.jsx(z,{...k,classes:C})});process.env.NODE_ENV!=="production"&&(Rg.propTypes={checked:i.bool,checkedIcon:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["default","primary","secondary","error","info","success","warning"]),i.string]),disabled:i.bool,disableRipple:i.bool,icon:i.node,id:i.string,inputProps:i.object,inputRef:vt,name:i.string,onChange:i.func,required:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({input:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({input:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.any});function gk(e){return pe("MuiRadioGroup",e)}de("MuiRadioGroup",["root","row","error"]);const yk=e=>{const{classes:t,row:r,error:n}=e;return ue({root:["root",r&&"row",n&&"error"]},gk,t)},qg=T.forwardRef(function(t,r){const{actions:n,children:o,className:s,defaultValue:l,name:c,onChange:d,value:p,...u}=t,h=T.useRef(null),v=yk(t),[g,y]=Ho({controlled:p,default:l,name:"RadioGroup"});T.useImperativeHandle(n,()=>({focus:()=>{let b=h.current.querySelector("input:not(:disabled):checked");b||(b=h.current.querySelector("input:not(:disabled)")),b&&b.focus()}}),[]);const f=Je(r,h),m=an(c),x=T.useMemo(()=>({name:m,onChange(b){y(b.target.value),d&&d(b,b.target.value)},value:g}),[m,d,y,g]);return a.jsx(Xc.Provider,{value:x,children:a.jsx(Eg,{role:"radiogroup",ref:f,className:se(v.root,s),...u,children:o})})});process.env.NODE_ENV!=="production"&&(qg.propTypes={children:i.node,className:i.string,defaultValue:i.any,name:i.string,onChange:i.func,value:i.any});function Yg(e){return pe("MuiSelect",e)}const hi=de("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Gg;const mk=G(Bg,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${hi.select}`]:t.select},{[`&.${hi.select}`]:t[r.variant]},{[`&.${hi.error}`]:t.error},{[`&.${hi.multiple}`]:t.multiple}]}})({[`&.${hi.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),bk=G(Lg,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${te(r.variant)}`],r.open&&t.iconOpen]}})({}),vk=G("input",{shouldForwardProp:e=>hh(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Kg(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function xk(e){return e==null||typeof e=="string"&&!e.trim()}const Sk=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:s,error:l}=e,c={select:["select",r,n&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${te(r)}`,s&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return ue(c,Yg,t)},Xg=T.forwardRef(function(t,r){const{"aria-describedby":n,"aria-label":o,autoFocus:s,autoWidth:l,children:c,className:d,defaultOpen:p,defaultValue:u,disabled:h,displayEmpty:v,error:g=!1,IconComponent:y,inputRef:f,labelId:m,MenuProps:x={},multiple:b,name:w,onBlur:S,onChange:C,onClose:O,onFocus:I,onKeyDown:F,onMouseDown:D,onOpen:L,open:z,readOnly:k,renderValue:j,required:_,SelectDisplayProps:M={},tabIndex:N,type:A,value:W,variant:H="standard",...B}=t,[U,X]=Ho({controlled:W,default:u,name:"Select"}),[J,Q]=Ho({controlled:z,default:p,name:"Select"}),Y=T.useRef(null),K=T.useRef(null),[ee,oe]=T.useState(null),{current:ae}=T.useRef(z!=null),[Z,re]=T.useState(),q=Je(r,f),ce=T.useCallback(le=>{K.current=le,le&&oe(le)},[]),ie=ee?.parentNode;T.useImperativeHandle(q,()=>({focus:()=>{K.current.focus()},node:Y.current,value:U}),[U]),T.useEffect(()=>{p&&J&&ee&&!ae&&(re(l?null:ie.clientWidth),K.current.focus())},[ee,l]),T.useEffect(()=>{s&&K.current.focus()},[s]),T.useEffect(()=>{if(!m)return;const le=gt(K.current).getElementById(m);if(le){const we=()=>{getSelection().isCollapsed&&K.current.focus()};return le.addEventListener("click",we),()=>{le.removeEventListener("click",we)}}},[m]);const ye=(le,we)=>{le?L&&L(we):O&&O(we),ae||(re(l?null:ie.clientWidth),Q(le))},Le=le=>{D?.(le),le.button===0&&(le.preventDefault(),K.current.focus(),ye(!0,le))},Oe=le=>{ye(!1,le)},ke=T.Children.toArray(c),Ce=le=>{const we=ke.find(rt=>rt.props.value===le.target.value);we!==void 0&&(X(we.props.value),C&&C(le,we))},Ve=le=>we=>{let rt;if(we.currentTarget.hasAttribute("tabindex")){if(b){rt=Array.isArray(U)?U.slice():[];const Kr=U.indexOf(le.props.value);Kr===-1?rt.push(le.props.value):rt.splice(Kr,1)}else rt=le.props.value;if(le.props.onClick&&le.props.onClick(we),U!==rt&&(X(rt),C)){const Kr=we.nativeEvent||we,ka=new Kr.constructor(Kr.type,Kr);Object.defineProperty(ka,"target",{writable:!0,value:{value:rt,name:w}}),C(ka,le)}b||ye(!1,we)}},Ne=le=>{k||([" ","ArrowUp","ArrowDown","Enter"].includes(le.key)&&(le.preventDefault(),ye(!0,le)),F?.(le))},ne=ee!==null&&J,tt=le=>{!ne&&S&&(Object.defineProperty(le,"target",{writable:!0,value:{value:U,name:w}}),S(le))};delete B["aria-invalid"];let _e,Zt;const ot=[];let lt=!1,er=!1;(la({value:U})||v)&&(j?_e=j(U):lt=!0);const tr=ke.map(le=>{if(!T.isValidElement(le))return null;process.env.NODE_ENV!=="production"&&mc.isFragment(le)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
179
|
+
`));let we;if(b){if(!Array.isArray(U))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":ir(2));we=U.some(rt=>Kg(rt,le.props.value)),we&<&&ot.push(le.props.children)}else we=Kg(U,le.props.value),we&<&&(Zt=le.props.children);return we&&(er=!0),T.cloneElement(le,{"aria-selected":we?"true":"false",onClick:Ve(le),onKeyUp:rt=>{rt.key===" "&&rt.preventDefault(),le.props.onKeyUp&&le.props.onKeyUp(rt)},role:"option",selected:we,value:void 0,"data-value":le.props.value})});process.env.NODE_ENV!=="production"&&T.useEffect(()=>{if(!er&&!b&&U!==""){const le=ke.map(we=>we.props.value);console.warn([`MUI: You have provided an out-of-range value \`${U}\` for the select ${w?`(name="${w}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${le.filter(we=>we!=null).map(we=>`\`${we}\``).join(", ")||'""'}.`].join(`
|
|
180
|
+
`))}},[er,ke,b,w,U]),lt&&(b?ot.length===0?_e=null:_e=ot.reduce((le,we,rt)=>(le.push(we),rt<ot.length-1&&le.push(", "),le),[]):_e=Zt);let Dr=Z;!l&&ae&&ee&&(Dr=ie.clientWidth);let xe;typeof N<"u"?xe=N:xe=h?null:0;const rr=M.id||(w?`mui-component-select-${w}`:void 0),ct={...t,variant:H,value:U,open:ne,error:g},Fr=Sk(ct),Ti={...x.PaperProps,...typeof x.slotProps?.paper=="function"?x.slotProps.paper(ct):x.slotProps?.paper},Oi={...x.MenuListProps,...typeof x.slotProps?.list=="function"?x.slotProps.list(ct):x.slotProps?.list},Oa=an();return a.jsxs(T.Fragment,{children:[a.jsx(mk,{as:"div",ref:ce,tabIndex:xe,role:"combobox","aria-controls":ne?Oa:void 0,"aria-disabled":h?"true":void 0,"aria-expanded":ne?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[m,rr].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":_?"true":void 0,"aria-invalid":g?"true":void 0,onKeyDown:Ne,onMouseDown:h||k?null:Le,onBlur:tt,onFocus:I,...M,ownerState:ct,className:se(M.className,Fr.select,d),id:rr,children:xk(_e)?Gg||(Gg=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):_e}),a.jsx(vk,{"aria-invalid":g,value:Array.isArray(U)?U.join(","):U,name:w,ref:Y,"aria-hidden":!0,onChange:Ce,tabIndex:-1,disabled:h,className:Fr.nativeInput,autoFocus:s,required:_,...B,ownerState:ct}),a.jsx(bk,{as:y,className:Fr.icon,ownerState:ct}),a.jsx(Yc,{id:`menu-${w||""}`,anchorEl:ie,open:ne,onClose:Oe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...x,slotProps:{...x.slotProps,list:{"aria-labelledby":m,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:Oa,...Oi},paper:{...Ti,style:{minWidth:Dr,...Ti!=null?Ti.style:null}}},children:tr})]})});process.env.NODE_ENV!=="production"&&(Xg.propTypes={"aria-describedby":i.string,"aria-label":i.string,autoFocus:i.bool,autoWidth:i.bool,children:i.node,classes:i.object,className:i.string,defaultOpen:i.bool,defaultValue:i.any,disabled:i.bool,displayEmpty:i.bool,error:i.bool,IconComponent:i.elementType.isRequired,inputRef:vt,labelId:i.string,MenuProps:i.object,multiple:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onClose:i.func,onFocus:i.func,onOpen:i.func,open:i.bool,readOnly:i.bool,renderValue:i.func,required:i.bool,SelectDisplayProps:i.object,tabIndex:i.oneOfType([i.number,i.string]),type:i.any,value:i.any,variant:i.oneOf(["standard","outlined","filled"])});const wk=e=>{const{classes:t}=e,n=ue({root:["root"]},Yg,t);return{...t,...n}},Jc={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>ft(e)&&e!=="variant"},Ck=G(va,Jc)(""),Ek=G(xa,Jc)(""),Tk=G(ba,Jc)(""),bn=T.forwardRef(function(t,r){const n=fe({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:l={},className:c,defaultOpen:d=!1,displayEmpty:p=!1,IconComponent:u=IE,id:h,input:v,inputProps:g,label:y,labelId:f,MenuProps:m,multiple:x=!1,native:b=!1,onClose:w,onOpen:S,open:C,renderValue:O,SelectDisplayProps:I,variant:F="outlined",...D}=n,L=b?Wg:Xg,z=hr(),k=Rr({props:n,muiFormControl:z,states:["variant","error"]}),j=k.variant||F,_={...n,variant:j,classes:l},M=wk(_),{root:N,...A}=M,W=v||{standard:a.jsx(Ck,{ownerState:_}),outlined:a.jsx(Ek,{label:y,ownerState:_}),filled:a.jsx(Tk,{ownerState:_})}[j],H=Je(r,hn(W));return a.jsx(T.Fragment,{children:T.cloneElement(W,{inputComponent:L,inputProps:{children:s,error:k.error,IconComponent:u,variant:j,type:void 0,multiple:x,...b?{id:h}:{autoWidth:o,defaultOpen:d,displayEmpty:p,labelId:f,MenuProps:m,onClose:w,onOpen:S,open:C,renderValue:O,SelectDisplayProps:{id:h,...I}},...g,classes:g?ut(A,g.classes):A,...v?v.props.inputProps:{}},...(x&&b||p)&&j==="outlined"?{notched:!0}:{},ref:H,className:se(W.props.className,c,M.root),...!v&&{variant:j},...D})})});process.env.NODE_ENV!=="production"&&(bn.propTypes={autoWidth:i.bool,children:i.node,classes:i.object,className:i.string,defaultOpen:i.bool,defaultValue:i.any,displayEmpty:i.bool,IconComponent:i.elementType,id:i.string,input:i.element,inputProps:i.object,label:i.node,labelId:i.string,MenuProps:i.object,multiple:i.bool,native:i.bool,onChange:i.func,onClose:i.func,onOpen:i.func,open:i.bool,renderValue:i.func,SelectDisplayProps:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.oneOfType([i.oneOf([""]),i.any]),variant:i.oneOf(["filled","outlined","standard"])}),bn.muiName="Select";function Ok(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:s}=e,l=pn();T.useEffect(()=>{if(!o)return;function x(b){b.defaultPrevented||b.key==="Escape"&&n?.(b,"escapeKeyDown")}return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[o,n]);const c=Bt((x,b)=>{n?.(x,b)}),d=Bt(x=>{!n||x==null||l.start(x,()=>{c(null,"timeout")})});T.useEffect(()=>(o&&d(t),l.clear),[o,t,d,l]);const p=x=>{n?.(x,"clickaway")},u=l.clear,h=T.useCallback(()=>{t!=null&&d(s??t*.5)},[t,s,d]),v=x=>b=>{const w=x.onBlur;w?.(b),h()},g=x=>b=>{const w=x.onFocus;w?.(b),u()},y=x=>b=>{const w=x.onMouseEnter;w?.(b),u()},f=x=>b=>{const w=x.onMouseLeave;w?.(b),h()};return T.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",h),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",u)}},[r,o,h,u]),{getRootProps:(x={})=>{const b={...Xs(e),...Xs(x)};return{role:"presentation",...x,...b,onBlur:v(b),onFocus:g(b),onMouseEnter:y(b),onMouseLeave:f(b)}},onClickAway:p}}function kk(e){return pe("MuiSnackbarContent",e)}de("MuiSnackbarContent",["root","message","action"]);const Pk=e=>{const{classes:t}=e;return ue({root:["root"],action:["action"],message:["message"]},kk,t)},Ik=G(Jt,{name:"MuiSnackbarContent",slot:"Root"})(he(({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(oc(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:oc(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),Nk=G("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),_k=G("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Jg=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiSnackbarContent"}),{action:o,className:s,message:l,role:c="alert",...d}=n,p=n,u=Pk(p);return a.jsxs(Ik,{role:c,elevation:6,className:se(u.root,s),ownerState:p,ref:r,...d,children:[a.jsx(Nk,{className:u.message,ownerState:p,children:l}),o?a.jsx(_k,{className:u.action,ownerState:p,children:o}):null]})});process.env.NODE_ENV!=="production"&&(Jg.propTypes={action:i.node,classes:i.object,className:i.string,message:i.node,role:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function Ak(e){return pe("MuiSnackbar",e)}de("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Mk=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${te(r.vertical)}${te(r.horizontal)}`]};return ue(n,Ak,t)},$k=G("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${te(r.anchorOrigin.vertical)}${te(r.anchorOrigin.horizontal)}`]]}})(he(({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%)"}}}]}))),gi=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiSnackbar"}),o=Ge(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:l,anchorOrigin:{vertical:c,horizontal:d}={vertical:"bottom",horizontal:"left"},autoHideDuration:p=null,children:u,className:h,ClickAwayListenerProps:v,ContentProps:g,disableWindowBlurListener:y=!1,message:f,onBlur:m,onClose:x,onFocus:b,onMouseEnter:w,onMouseLeave:S,open:C,resumeHideDuration:O,slots:I={},slotProps:F={},TransitionComponent:D,transitionDuration:L=s,TransitionProps:{onEnter:z,onExited:k,...j}={},..._}=n,M={...n,anchorOrigin:{vertical:c,horizontal:d},autoHideDuration:p,disableWindowBlurListener:y,TransitionComponent:D,transitionDuration:L},N=Mk(M),{getRootProps:A,onClickAway:W}=Ok(M),[H,B]=T.useState(!0),U=ce=>{B(!0),k&&k(ce)},X=(ce,ie)=>{B(!1),z&&z(ce,ie)},J={slots:{transition:D,...I},slotProps:{content:g,clickAwayListener:v,transition:j,...F}},[Q,Y]=ge("root",{ref:r,className:[N.root,h],elementType:$k,getSlotProps:A,externalForwardedProps:{...J,..._},ownerState:M}),[K,{ownerState:ee,...oe}]=ge("clickAwayListener",{elementType:ga,externalForwardedProps:J,getSlotProps:ce=>({onClickAway:(...ie)=>{const ye=ie[0];ce.onClickAway?.(...ie),!ye?.defaultMuiPrevented&&W(...ie)}}),ownerState:M}),[ae,Z]=ge("content",{elementType:Jg,shouldForwardComponentProp:!0,externalForwardedProps:J,additionalProps:{message:f,action:l},ownerState:M}),[re,q]=ge("transition",{elementType:qn,externalForwardedProps:J,getSlotProps:ce=>({onEnter:(...ie)=>{ce.onEnter?.(...ie),X(...ie)},onExited:(...ie)=>{ce.onExited?.(...ie),U(...ie)}}),additionalProps:{appear:!0,in:C,timeout:L,direction:c==="top"?"down":"up"},ownerState:M});return!C&&H?null:a.jsx(K,{...oe,...I.clickAwayListener&&{ownerState:ee},children:a.jsx(Q,{...Y,children:a.jsx(re,{...q,children:u||a.jsx(ae,{...Z})})})})});process.env.NODE_ENV!=="production"&&(gi.propTypes={action:i.node,anchorOrigin:i.shape({horizontal:i.oneOf(["center","left","right"]).isRequired,vertical:i.oneOf(["bottom","top"]).isRequired}),autoHideDuration:i.number,children:i.element,classes:i.object,className:i.string,ClickAwayListenerProps:i.object,ContentProps:i.object,disableWindowBlurListener:i.bool,key:()=>null,message:i.node,onBlur:i.func,onClose:i.func,onFocus:i.func,onMouseEnter:i.func,onMouseLeave:i.func,open:i.bool,resumeHideDuration:i.number,slotProps:i.shape({clickAwayListener:i.oneOfType([i.func,i.object]),content:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({clickAwayListener:i.elementType,content:i.elementType,root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})]),TransitionProps:i.object});function Dk(e){return pe("MuiTooltip",e)}const qe=de("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function Fk(e){return Math.round(e*1e5)/1e5}const zk=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:o,placement:s}=e,l={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${te(s.split("-")[0])}`],arrow:["arrow"]};return ue(l,Dk,t)},jk=G(Fc,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(he(({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"] .${qe.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${qe.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${qe.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${qe.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${qe.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${qe.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${qe.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${qe.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Bk=G("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${te(r.placement.split("-")[0])}`]]}})(he(({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,[`.${qe.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${qe.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${qe.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:`${Fk(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${qe.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${qe.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Lk=G("span",{name:"MuiTooltip",slot:"Arrow"})(he(({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 Sa=!1;const Qg=new Ys;let yi={x:0,y:0};function wa(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const Zg=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:s,classes:l,components:c={},componentsProps:d={},describeChild:p=!1,disableFocusListener:u=!1,disableHoverListener:h=!1,disableInteractive:v=!1,disableTouchListener:g=!1,enterDelay:y=100,enterNextDelay:f=0,enterTouchDelay:m=700,followCursor:x=!1,id:b,leaveDelay:w=0,leaveTouchDelay:S=1500,onClose:C,onOpen:O,open:I,placement:F="bottom",PopperComponent:D,PopperProps:L={},slotProps:z={},slots:k={},title:j,TransitionComponent:_,TransitionProps:M,...N}=n,A=T.isValidElement(s)?s:a.jsx("span",{children:s}),W=Ge(),H=sc(),[B,U]=T.useState(),[X,J]=T.useState(null),Q=T.useRef(!1),Y=v||x,K=pn(),ee=pn(),oe=pn(),ae=pn(),[Z,re]=Ho({controlled:I,default:!1,name:"Tooltip",state:"open"});let q=Z;if(process.env.NODE_ENV!=="production"){const{current:be}=T.useRef(I!==void 0);T.useEffect(()=>{B&&B.disabled&&!be&&j!==""&&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(`
|
|
181
|
+
`))},[j,B,be])}const ce=an(b),ie=T.useRef(),ye=Bt(()=>{ie.current!==void 0&&(document.body.style.WebkitUserSelect=ie.current,ie.current=void 0),ae.clear()});T.useEffect(()=>ye,[ye]);const Le=be=>{Qg.clear(),Sa=!0,re(!0),O&&!q&&O(be)},Oe=Bt(be=>{Qg.start(800+w,()=>{Sa=!1}),re(!1),C&&q&&C(be),K.start(W.transitions.duration.shortest,()=>{Q.current=!1})}),ke=be=>{Q.current&&be.type!=="touchstart"||(B&&B.removeAttribute("title"),ee.clear(),oe.clear(),y||Sa&&f?ee.start(Sa?f:y,()=>{Le(be)}):Le(be))},Ce=be=>{ee.clear(),oe.start(w,()=>{Oe(be)})},[,Ve]=T.useState(!1),Ne=be=>{Js(be.target)||(Ve(!1),Ce(be))},ne=be=>{B||U(be.currentTarget),Js(be.target)&&(Ve(!0),ke(be))},tt=be=>{Q.current=!0;const Xr=A.props;Xr.onTouchStart&&Xr.onTouchStart(be)},_e=be=>{tt(be),oe.clear(),K.clear(),ye(),ie.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ae.start(m,()=>{document.body.style.WebkitUserSelect=ie.current,ke(be)})},Zt=be=>{A.props.onTouchEnd&&A.props.onTouchEnd(be),ye(),oe.start(S,()=>{Oe(be)})};T.useEffect(()=>{if(!q)return;function be(Xr){Xr.key==="Escape"&&Oe(Xr)}return document.addEventListener("keydown",be),()=>{document.removeEventListener("keydown",be)}},[Oe,q]);const ot=Je(hn(A),U,r);!j&&j!==0&&(q=!1);const lt=T.useRef(),er=be=>{const Xr=A.props;Xr.onMouseMove&&Xr.onMouseMove(be),yi={x:be.clientX,y:be.clientY},lt.current&<.current.update()},tr={},Dr=typeof j=="string";p?(tr.title=!q&&Dr&&!h?j:null,tr["aria-describedby"]=q?ce:null):(tr["aria-label"]=Dr?j:null,tr["aria-labelledby"]=q&&!Dr?ce:null);const xe={...tr,...N,...A.props,className:se(N.className,A.props.className),onTouchStart:tt,ref:ot,...x?{onMouseMove:er}:{}};process.env.NODE_ENV!=="production"&&(xe["data-mui-internal-clone-element"]=!0,T.useEffect(()=>{B&&!B.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(`
|
|
182
|
+
`))},[B]));const rr={};g||(xe.onTouchStart=_e,xe.onTouchEnd=Zt),h||(xe.onMouseOver=wa(ke,xe.onMouseOver),xe.onMouseLeave=wa(Ce,xe.onMouseLeave),Y||(rr.onMouseOver=ke,rr.onMouseLeave=Ce)),u||(xe.onFocus=wa(ne,xe.onFocus),xe.onBlur=wa(Ne,xe.onBlur),Y||(rr.onFocus=ne,rr.onBlur=Ne)),process.env.NODE_ENV!=="production"&&A.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${A.props.title}\` or the Tooltip component.`].join(`
|
|
183
|
+
`));const ct={...n,isRtl:H,arrow:o,disableInteractive:Y,placement:F,PopperComponentProp:D,touch:Q.current},Fr=typeof z.popper=="function"?z.popper(ct):z.popper,Ti=T.useMemo(()=>{let be=[{name:"arrow",enabled:!!X,options:{element:X,padding:4}}];return L.popperOptions?.modifiers&&(be=be.concat(L.popperOptions.modifiers)),Fr?.popperOptions?.modifiers&&(be=be.concat(Fr.popperOptions.modifiers)),{...L.popperOptions,...Fr?.popperOptions,modifiers:be}},[X,L.popperOptions,Fr?.popperOptions]),Oi=zk(ct),Oa=typeof z.transition=="function"?z.transition(ct):z.transition,le={slots:{popper:c.Popper,transition:c.Transition??_,tooltip:c.Tooltip,arrow:c.Arrow,...k},slotProps:{arrow:z.arrow??d.arrow,popper:{...L,...Fr??d.popper},tooltip:z.tooltip??d.tooltip,transition:{...M,...Oa??d.transition}}},[we,rt]=ge("popper",{elementType:jk,externalForwardedProps:le,ownerState:ct,className:se(Oi.popper,L?.className)}),[Kr,ka]=ge("transition",{elementType:qn,externalForwardedProps:le,ownerState:ct}),[HI,RI]=ge("tooltip",{elementType:Bk,className:Oi.tooltip,externalForwardedProps:le,ownerState:ct}),[qI,YI]=ge("arrow",{elementType:Lk,className:Oi.arrow,externalForwardedProps:le,ownerState:ct,ref:J});return a.jsxs(T.Fragment,{children:[T.cloneElement(A,xe),a.jsx(we,{as:D??Fc,placement:F,anchorEl:x?{getBoundingClientRect:()=>({top:yi.y,left:yi.x,right:yi.x,bottom:yi.y,width:0,height:0})}:B,popperRef:lt,open:B?q:!1,id:ce,transition:!0,...rr,...rt,popperOptions:Ti,children:({TransitionProps:be})=>a.jsx(Kr,{timeout:W.transitions.duration.shorter,...be,...ka,children:a.jsxs(HI,{...RI,children:[j,o?a.jsx(qI,{...YI}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Zg.propTypes={arrow:i.bool,children:yn.isRequired,classes:i.object,className:i.string,components:i.shape({Arrow:i.elementType,Popper:i.elementType,Tooltip:i.elementType,Transition:i.elementType}),componentsProps:i.shape({arrow:i.object,popper:i.object,tooltip:i.object,transition:i.object}),describeChild:i.bool,disableFocusListener:i.bool,disableHoverListener:i.bool,disableInteractive:i.bool,disableTouchListener:i.bool,enterDelay:i.number,enterNextDelay:i.number,enterTouchDelay:i.number,followCursor:i.bool,id:i.string,leaveDelay:i.number,leaveTouchDelay:i.number,onClose:i.func,onOpen:i.func,open:i.bool,placement:i.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:i.elementType,PopperProps:i.object,slotProps:i.shape({arrow:i.oneOfType([i.func,i.object]),popper:i.oneOfType([i.func,i.object]),tooltip:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({arrow:i.elementType,popper:i.elementType,tooltip:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),title:i.node,TransitionComponent:i.elementType,TransitionProps:i.object});function Wk(e){return pe("MuiSwitch",e)}const St=de("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Vk=e=>{const{classes:t,edge:r,size:n,color:o,checked:s,disabled:l}=e,c={root:["root",r&&`edge${te(r)}`,`size${te(n)}`],switchBase:["switchBase",`color${te(o)}`,s&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=ue(c,Wk,t);return{...t,...d}},Uk=G("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${te(r.edge)}`],t[`size${te(r.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,[`& .${St.thumb}`]:{width:16,height:16},[`& .${St.switchBase}`]:{padding:4,[`&.${St.checked}`]:{transform:"translateX(16px)"}}}}]}),Hk=G(ha,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${St.input}`]:t.input},r.color!=="default"&&t[`color${te(r.color)}`]]}})(he(({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}),[`&.${St.checked}`]:{transform:"translateX(20px)"},[`&.${St.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${St.checked} + .${St.track}`]:{opacity:.5},[`&.${St.disabled} + .${St.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${St.input}`]:{left:"-100%",width:"300%"}})),he(({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(Tt(["light"])).map(([t])=>({props:{color:t},style:{[`&.${St.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"}},[`&.${St.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)}`}},[`&.${St.checked} + .${St.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),Rk=G("span",{name:"MuiSwitch",slot:"Track"})(he(({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}`}))),qk=G("span",{name:"MuiSwitch",slot:"Thumb"})(he(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),mi=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiSwitch"}),{className:o,color:s="primary",edge:l=!1,size:c="medium",sx:d,slots:p={},slotProps:u={},...h}=n,v={...n,color:s,edge:l,size:c},g=Vk(v),y={slots:p,slotProps:u},[f,m]=ge("root",{className:se(g.root,o),elementType:Uk,externalForwardedProps:y,ownerState:v,additionalProps:{sx:d}}),[x,b]=ge("thumb",{className:g.thumb,elementType:qk,externalForwardedProps:y,ownerState:v}),w=a.jsx(x,{...b}),[S,C]=ge("track",{className:g.track,elementType:Rk,externalForwardedProps:y,ownerState:v});return a.jsxs(f,{...m,children:[a.jsx(Hk,{type:"checkbox",icon:w,checkedIcon:w,ref:r,ownerState:v,...h,classes:{...g,root:g.switchBase},slots:{...p.switchBase&&{root:p.switchBase},...p.input&&{input:p.input}},slotProps:{...u.switchBase&&{root:typeof u.switchBase=="function"?u.switchBase(v):u.switchBase},input:{role:"switch"},...u.input&&{input:typeof u.input=="function"?u.input(v):u.input}}}),a.jsx(S,{...C})]})});process.env.NODE_ENV!=="production"&&(mi.propTypes={checked:i.bool,checkedIcon:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["default","primary","secondary","error","info","success","warning"]),i.string]),defaultChecked:i.bool,disabled:i.bool,disableRipple:i.bool,edge:i.oneOf(["end","start",!1]),icon:i.node,id:i.string,inputProps:i.object,inputRef:vt,onChange:i.func,required:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({input:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),switchBase:i.oneOfType([i.func,i.object]),thumb:i.oneOfType([i.func,i.object]),track:i.oneOfType([i.func,i.object])}),slots:i.shape({input:i.elementType,root:i.elementType,switchBase:i.elementType,thumb:i.elementType,track:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.any});const Qc=T.createContext();process.env.NODE_ENV!=="production"&&(Qc.displayName="TableContext");function Yk(e){return pe("MuiTable",e)}de("MuiTable",["root","stickyHeader"]);const Gk=e=>{const{classes:t,stickyHeader:r}=e;return ue({root:["root",r&&"stickyHeader"]},Yk,t)},Kk=G("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(he(({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"}}]}))),ey="table",ty=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiTable"}),{className:o,component:s=ey,padding:l="normal",size:c="medium",stickyHeader:d=!1,...p}=n,u={...n,component:s,padding:l,size:c,stickyHeader:d},h=Gk(u),v=T.useMemo(()=>({padding:l,size:c,stickyHeader:d}),[l,c,d]);return a.jsx(Qc.Provider,{value:v,children:a.jsx(Kk,{as:s,role:s===ey?null:"table",ref:r,className:se(h.root,o),ownerState:u,...p})})});process.env.NODE_ENV!=="production"&&(ty.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,padding:i.oneOf(["checkbox","none","normal"]),size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),stickyHeader:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const bi=T.createContext();process.env.NODE_ENV!=="production"&&(bi.displayName="Tablelvl2Context");function Xk(e){return pe("MuiTableBody",e)}de("MuiTableBody",["root"]);const Jk=e=>{const{classes:t}=e;return ue({root:["root"]},Xk,t)},Qk=G("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),Zk={variant:"body"},ry="tbody",ny=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiTableBody"}),{className:o,component:s=ry,...l}=n,c={...n,component:s},d=Jk(c);return a.jsx(bi.Provider,{value:Zk,children:a.jsx(Qk,{className:se(d.root,o),as:s,ref:r,role:s===ry?null:"rowgroup",ownerState:c,...l})})});process.env.NODE_ENV!=="production"&&(ny.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function eP(e){return pe("MuiTableCell",e)}const tP=de("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),rP=e=>{const{classes:t,variant:r,align:n,padding:o,size:s,stickyHeader:l}=e,c={root:["root",r,l&&"stickyHeader",n!=="inherit"&&`align${te(n)}`,o!=="normal"&&`padding${te(o)}`,`size${te(s)}`]};return ue(c,eP,t)},nP=G("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${te(r.size)}`],r.padding!=="normal"&&t[`padding${te(r.padding)}`],r.align!=="inherit"&&t[`align${te(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(he(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
184
|
+
${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",[`&.${tP.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}}]}))),qr=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiTableCell"}),{align:o="inherit",className:s,component:l,padding:c,scope:d,size:p,sortDirection:u,variant:h,...v}=n,g=T.useContext(Qc),y=T.useContext(bi),f=y&&y.variant==="head";let m;l?m=l:m=f?"th":"td";let x=d;m==="td"?x=void 0:!x&&f&&(x="col");const b=h||y&&y.variant,w={...n,align:o,component:m,padding:c||(g&&g.padding?g.padding:"normal"),size:p||(g&&g.size?g.size:"medium"),sortDirection:u,stickyHeader:b==="head"&&g&&g.stickyHeader,variant:b},S=rP(w);let C=null;return u&&(C=u==="asc"?"ascending":"descending"),a.jsx(nP,{as:m,ref:r,className:se(S.root,s),"aria-sort":C,scope:x,ownerState:w,...v})});process.env.NODE_ENV!=="production"&&(qr.propTypes={align:i.oneOf(["center","inherit","justify","left","right"]),children:i.node,classes:i.object,className:i.string,component:i.elementType,padding:i.oneOf(["checkbox","none","normal"]),scope:i.string,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sortDirection:i.oneOf(["asc","desc",!1]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["body","footer","head"]),i.string])});function oP(e){return pe("MuiTableContainer",e)}de("MuiTableContainer",["root"]);const iP=e=>{const{classes:t}=e;return ue({root:["root"]},oP,t)},sP=G("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),oy=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiTableContainer"}),{className:o,component:s="div",...l}=n,c={...n,component:s},d=iP(c);return a.jsx(sP,{ref:r,as:s,className:se(d.root,o),ownerState:c,...l})});process.env.NODE_ENV!=="production"&&(oy.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function aP(e){return pe("MuiTableHead",e)}de("MuiTableHead",["root"]);const lP=e=>{const{classes:t}=e;return ue({root:["root"]},aP,t)},cP=G("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),dP={variant:"head"},iy="thead",sy=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiTableHead"}),{className:o,component:s=iy,...l}=n,c={...n,component:s},d=lP(c);return a.jsx(bi.Provider,{value:dP,children:a.jsx(cP,{as:s,className:se(d.root,o),ref:r,role:s===iy?null:"rowgroup",ownerState:c,...l})})});process.env.NODE_ENV!=="production"&&(sy.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function pP(e){return pe("MuiTableRow",e)}const ay=de("MuiTableRow",["root","selected","hover","head","footer"]),uP=e=>{const{classes:t,selected:r,hover:n,head:o,footer:s}=e;return ue({root:["root",r&&"selected",n&&"hover",o&&"head",s&&"footer"]},pP,t)},fP=G("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(he(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${ay.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ay.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}`)}}}))),ly="tr",vi=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiTableRow"}),{className:o,component:s=ly,hover:l=!1,selected:c=!1,...d}=n,p=T.useContext(bi),u={...n,component:s,hover:l,selected:c,head:p&&p.variant==="head",footer:p&&p.variant==="footer"},h=uP(u);return a.jsx(fP,{as:s,ref:r,className:se(h.root,o),role:s===ly?null:"row",ownerState:u,...d})});process.env.NODE_ENV!=="production"&&(vi.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,hover:i.bool,selected:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function hP(e){return pe("MuiTextField",e)}de("MuiTextField",["root"]);const gP={standard:va,filled:ba,outlined:xa},yP=e=>{const{classes:t}=e;return ue({root:["root"]},hP,t)},mP=G(Cg,{name:"MuiTextField",slot:"Root"})({}),Zc=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:l,className:c,color:d="primary",defaultValue:p,disabled:u=!1,error:h=!1,FormHelperTextProps:v,fullWidth:g=!1,helperText:y,id:f,InputLabelProps:m,inputProps:x,InputProps:b,inputRef:w,label:S,maxRows:C,minRows:O,multiline:I=!1,name:F,onBlur:D,onChange:L,onFocus:z,placeholder:k,required:j=!1,rows:_,select:M=!1,SelectProps:N,slots:A={},slotProps:W={},type:H,value:B,variant:U="outlined",...X}=n,J={...n,autoFocus:s,color:d,disabled:u,error:h,fullWidth:g,multiline:I,required:j,select:M,variant:U},Q=yP(J);process.env.NODE_ENV!=="production"&&M&&!l&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const Y=an(f),K=y&&Y?`${Y}-helper-text`:void 0,ee=S&&Y?`${Y}-label`:void 0,oe=gP[U],ae={slots:A,slotProps:{input:b,inputLabel:m,htmlInput:x,formHelperText:v,select:N,...W}},Z={},re=ae.slotProps.inputLabel;U==="outlined"&&(re&&typeof re.shrink<"u"&&(Z.notched=re.shrink),Z.label=S),M&&((!N||!N.native)&&(Z.id=void 0),Z["aria-describedby"]=void 0);const[q,ce]=ge("root",{elementType:mP,shouldForwardComponentProp:!0,externalForwardedProps:{...ae,...X},ownerState:J,className:se(Q.root,c),ref:r,additionalProps:{disabled:u,error:h,fullWidth:g,required:j,color:d,variant:U}}),[ie,ye]=ge("input",{elementType:oe,externalForwardedProps:ae,additionalProps:Z,ownerState:J}),[Le,Oe]=ge("inputLabel",{elementType:Ig,externalForwardedProps:ae,ownerState:J}),[ke,Ce]=ge("htmlInput",{elementType:"input",externalForwardedProps:ae,ownerState:J}),[Ve,Ne]=ge("formHelperText",{elementType:kg,externalForwardedProps:ae,ownerState:J}),[ne,tt]=ge("select",{elementType:bn,externalForwardedProps:ae,ownerState:J}),_e=a.jsx(ie,{"aria-describedby":K,autoComplete:o,autoFocus:s,defaultValue:p,fullWidth:g,multiline:I,name:F,rows:_,maxRows:C,minRows:O,type:H,value:B,id:Y,inputRef:w,onBlur:D,onChange:L,onFocus:z,placeholder:k,inputProps:Ce,slots:{input:A.htmlInput?ke:void 0},...ye});return a.jsxs(q,{...ce,children:[S!=null&&S!==""&&a.jsx(Le,{htmlFor:Y,id:ee,...Oe,children:S}),M?a.jsx(ne,{"aria-describedby":K,id:Y,labelId:ee,value:B,input:_e,...tt,children:l}):_e,y&&a.jsx(Ve,{id:K,...Ne,children:y})]})});process.env.NODE_ENV!=="production"&&(Zc.propTypes={autoComplete:i.string,autoFocus:i.bool,children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),defaultValue:i.any,disabled:i.bool,error:i.bool,FormHelperTextProps:i.object,fullWidth:i.bool,helperText:i.node,id:i.string,InputLabelProps:i.object,inputProps:i.object,InputProps:i.object,inputRef:vt,label:i.node,margin:i.oneOf(["dense","none","normal"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onFocus:i.func,placeholder:i.string,required:i.bool,rows:i.oneOfType([i.number,i.string]),select:i.bool,SelectProps:i.object,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({formHelperText:i.oneOfType([i.func,i.object]),htmlInput:i.oneOfType([i.func,i.object]),input:i.oneOfType([i.func,i.object]),inputLabel:i.oneOfType([i.func,i.object]),select:i.oneOfType([i.func,i.object])}),slots:i.shape({formHelperText:i.elementType,htmlInput:i.elementType,input:i.elementType,inputLabel:i.elementType,root:i.elementType,select:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any,variant:i.oneOf(["filled","outlined","standard"])});const Ze=Gf({themeId:Po});function Ar(){return{...$.useMemo(()=>({global:{body:{margin:12,boxSizing:"border-box",width:"100vw",maxWidth:"100vw",overflowX:"hidden",overscrollBehaviorX:"none"},html:{overflowX:"hidden"}},topBar:{root:{bgcolor:"background.paper",py:1.5,px:0,borderBottom:1,borderColor:"divider"},headerRow:{display:"flex",justifyContent:"flex-end",alignItems:"right",mb:1.5},controlRow:{display:"flex",alignItems:"center",gap:1},storeDropdown:{display:"flex",alignItems:"center",gap:.5,bgcolor:"#fff",border:1,borderColor:"#e0e0e0",borderRadius:1,px:1.5,py:.8,cursor:"pointer",fontSize:"13px",color:"#333",fontWeight:500},filterBtn:{display:"flex",alignItems:"center",gap:.5,bgcolor:"#fff",border:1,borderColor:"#e0e0e0",borderRadius:1,px:1.5,py:.8,cursor:"pointer",fontSize:"13px",color:"#333"},iconBtn:{minWidth:36,width:36,height:36,p:0,color:"#666","&:hover":{bgcolor:"#f5f5f5"}},rightIcons:{display:"flex",alignItems:"center",gap:1}},header:{container:{px:0,py:1.5},title:{fontSize:"22px",fontWeight:700,color:"#333",mb:1.5},subtitle:{fontSize:"16px",color:"#666",fontWeight:500,mb:1.5},actionLink:{fontSize:"16px",color:"#2563eb",fontWeight:600,textDecoration:"underline",cursor:"pointer",mt:1},statsScroll:{display:"flex",gap:1.5,overflowX:"auto",pb:1,"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"},statCard:{flex:"0 0 auto",minWidth:140,bgcolor:"background.paper",border:1,borderColor:"#e8e8e8",borderRadius:2,p:1.5},statLabel:{fontSize:"12px",color:"#888",mb:.3,fontWeight:400},statValue:{fontSize:"28px",fontWeight:700,color:"#333",lineHeight:1.2,mb:.3},statMeta:{display:"flex",alignItems:"center",gap:.5},statMetaText:{fontSize:"11px",color:"#888"},statLink:{fontSize:"11px",color:"#3b82f6",textDecoration:"underline",cursor:"pointer",ml:.5}},listHeader:{root:{display:"flex",justifyContent:"space-between",alignItems:"center",px:2,py:1.5,bgcolor:"#fafafa"},productCount:{fontSize:"13px",fontWeight:400,color:"#666"},checkboxIcon:{display:"flex",alignItems:"center",justifyContent:"center"}},productCard:{root:{bgcolor:"background.paper",borderBottom:1,borderColor:"#f0f0f0",p:2,position:"relative"},offerBadge:{position:"absolute",top:12,right:12,color:"#454545",px:1,py:.3,borderRadius:.5,fontSize:"11px",fontWeight:500},contentRow:{display:"flex",alignItems:"flex-start",gap:1.5},checkbox:{p:0,mt:.5},image:{width:56,height:56,bgcolor:"#f8f8f8",borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0},details:{flex:1,minWidth:0,pr:10},name:{fontSize:"14px",fontWeight:600,color:"#333",textDecoration:"none",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",lineHeight:1.3,mb:.3},meta:{fontSize:"12px",color:"#888",mb:.2},sku:{fontSize:"11px",color:"#aaa",mb:.5},priceRow:{display:"flex",alignItems:"center",gap:.5},price:{fontSize:"14px",fontWeight:700,color:"#333"},originalPrice:{fontSize:"12px",color:"#999",textDecoration:"line-through"},discount:{fontSize:"11px",color:"#28a745",fontWeight:600}},floatingActions:{root:{position:"fixed",left:0,right:0,bottom:0,bgcolor:"#1a1a1a",color:"white",px:2,pt:1.5,pb:2,display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,zIndex:1200,borderRadius:"16px 16px 0 0"},countText:{fontSize:"15px",fontWeight:400,color:"#fff",textAlign:"center"},buttonRow:{display:"flex",gap:1.5,width:"100%"},btn:{flex:1,bgcolor:"#333",color:"white",fontSize:"14px",fontWeight:500,py:1.2,borderRadius:1.5,textTransform:"none",display:"flex",alignItems:"center",justifyContent:"center",gap:1,"&:hover":{bgcolor:"#444"}}},logo:{container:{display:"flex",alignItems:"center",gap:1},icon:{width:32,height:32,bgcolor:"#f97316",borderRadius:1.5,display:"flex",alignItems:"center",justifyContent:"center"},iconText:{color:"white",fontSize:"14px",fontWeight:700},textContainer:{display:"flex",flexDirection:"column"},brandName:{fontSize:"16px",fontWeight:700,color:"#333",lineHeight:1.2},tagline:{fontSize:"10px",color:"#888",lineHeight:1}},headerIcons:{container:{display:"flex",alignItems:"center",gap:1.5},iconBtn:{position:"relative",color:"#333"},notificationDot:{position:"absolute",top:0,right:0,width:8,height:8,bgcolor:"#ef4444",borderRadius:"50%"},avatar:{width:32,height:32,bgcolor:"#3b82f6",fontSize:"13px",fontWeight:600}},emptyProduct:{wrapper:{position:"relative",mx:1,my:1,overflowX:"hidden"},card:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"350px",bgcolor:"#fff",mx:2,py:6,px:2,borderRadius:2,border:"1px solid #e8e8e8",position:"relative",zIndex:1,overflowX:"hidden"},iconContainer:{position:"relative",mb:2},sparkleContainer:{position:"absolute",top:-20,left:"50%",transform:"translateX(-50%)",width:40,display:"flex",justifyContent:"space-between"},sparkleLeft:{width:2,height:12,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(-25deg)",transformOrigin:"bottom center"},sparkleCenter:{width:2,height:16,bgcolor:"#5b9bd5",borderRadius:1},sparkleRight:{width:2,height:12,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(25deg)",transformOrigin:"bottom center"},inboxIcon:{width:70,height:55,border:"2px solid #5b9bd5",borderRadius:"6px",bgcolor:"#e8f4fc",position:"relative",overflow:"visible"},notch:{position:"absolute",top:-2,left:"50%",transform:"translateX(-50%)",width:28,height:18,bgcolor:"#fff",borderBottomLeftRadius:14,borderBottomRightRadius:14,borderLeft:"2px solid #5b9bd5",borderRight:"2px solid #5b9bd5",borderBottom:"2px solid #5b9bd5"},title:{fontSize:"22px",fontWeight:600,color:"#1a1a1a",mb:.5},subtitle:{fontSize:"18px",color:"#888",mb:1},actionLink:{fontSize:"18px",fontWeight:500,color:"#3b82f6",textDecoration:"none",cursor:"pointer","&:hover":{textDecoration:"underline"}}},productSetting:{wrapper:{background:"#f7f8fa",minHeight:"100vh",margin:"0 -5px",marginbottom:4},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:0,py:1.5,bgcolor:"#fff",borderBottom:"1px solid #e8e8e8"},headerLeft:{display:"flex",alignItems:"center",gap:1.5},backButton:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#666","&:hover":{color:"#333"}},backText:{fontSize:"13px",color:"inherit"},divider:{height:18,alignSelf:"center"},breadcrumb:{display:"flex",alignItems:"center",gap:.5},breadcrumbText:{fontSize:"15px",color:"#666"},breadcrumbActive:{fontSize:"22px",fontWeight:400,color:"#000"},headerRight:{display:"flex",alignItems:"center",gap:1},bellButton:{color:"#666"},avatar:{width:28,height:28,borderRadius:"50%",bgcolor:"#3b82f6",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},content:{width:"100vw",maxWidth:"100vw",mx:"auto",px:2,py:2,overflowX:"hidden"},section:{mb:2.5,width:"100vw",maxWidth:"93vw",overflowX:"hidden"},sectionHeader:{display:"flex",alignItems:"center",gap:.5,mb:1},sectionTitle:{fontSize:"13px",fontWeight:600,color:"#333"},sectionCount:{fontSize:"11px",color:"#999"},settingCard:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",border:"1px solid #e8e8e8",borderRadius:2,px:1.5,py:1.25,mb:1,cursor:"pointer","&:hover":{bgcolor:"#fafafa"}},settingCardHover:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",border:"1px solid #e8e8e8",borderRadius:2,px:1.5,py:1.25,"&:hover":{bgcolor:"#fafafa"}},settingCardInner:{display:"flex",alignItems:"center",gap:1},settingIcon:{width:32,height:32,borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center"},settingTitle:{fontSize:"13px",fontWeight:700,color:"#000"},settingSubtitle:{fontSize:"11px",color:"#888"},syncHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1,mr:5},syncNowButton:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#888","&:hover":{color:"#3b82f6"}},syncNowText:{fontSize:"11px"},setupSyncCard:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",border:"1px solid #e8e8e8",borderRadius:2,mr:4,px:1.5,py:1.25,cursor:"pointer","&:hover":{bgcolor:"#fafafa"}},switch:{"& .MuiSwitch-switchBase.Mui-checked":{color:"#3b82f6"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"#3b82f6"}}},productSettingModal:{modal:{display:"flex",alignItems:"center",justifyContent:"center","& .MuiBackdrop-root":{backdropFilter:"blur(1px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},container:{bgcolor:"#fff",borderRadius:2,boxShadow:24,width:"100%",maxWidth:300,mx:1,outline:"none",overflow:"hidden"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:1.5,py:1.2,borderBottom:"1px solid #e8e8e8"},headerTitle:{fontSize:"13px",fontWeight:600,color:"#000"},closeButton:{color:"#666"},content:{px:1.5,py:1.2},radioIcon:{width:16,height:16},radioChecked:{color:"#000","&.Mui-checked":{color:"#000"},"&:hover":{bgcolor:"transparent"},"& .MuiTouchRipple-root":{display:"none"}},radioLabel:{fontSize:"12px",color:"#333"},formControlLabel:{mx:0,py:.4,borderRadius:1,"&.Mui-checked":{backgroundColor:"#ffeaea"}},upgradeSection:{display:"flex",alignItems:"center",justifyContent:"space-between",mt:1.2,pt:1.2,pl:1.2,pr:1.2,pb:1.2,borderRadius:1,borderTop:"1px solid #e8e8e8",bgcolor:"#F3F8FF"},upgradeText:{fontSize:"11px",color:"#000000",maxWidth:120},managePlanLink:{fontSize:"11px",fontWeight:500,color:"#2D64B8",cursor:"pointer"},footer:{px:1.5,pb:1.5},saveButton:{bgcolor:"#2D64B8",color:"#fff",textTransform:"none",fontSize:"12px",fontWeight:500,py:1,borderRadius:1.5,boxShadow:"none"}},productsyncsetting:{wrapper:{minHeight:"100vh",bgcolor:"#f5f7fa",px:2,py:0},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:0,py:1.5,bgcolor:"#fff",borderBottom:"1px solid #e8e8e8"},headerLeft:{display:"flex",alignItems:"center",gap:1.5},backButton:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#666","&:hover":{color:"#333"}},backText:{fontSize:"13px",color:"inherit"},divider:{height:18,alignSelf:"center"},breadcrumb:{display:"flex",alignItems:"center",gap:.5},breadcrumbText:{fontSize:"13px",color:"#666"},breadcrumbActive:{fontSize:"13px",fontWeight:600,color:"#000"},headerRight:{display:"flex",alignItems:"center",gap:1},bellButton:{color:"#666"},avatar:{width:28,height:28,borderRadius:"50%",bgcolor:"#3b82f6",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},content:{maxWidth:"100%",mx:"auto",px:2,py:2},section:{maxWidth:"100%",mx:0,mb:2},sectionTitle:{fontSize:"13px",fontWeight:600,color:"#222",mb:1},sectionCount:{fontSize:"11px",color:"#aaa",fontWeight:400},card:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",borderRadius:2,px:1.5,py:1,mb:1,boxShadow:"0 1px 2px rgba(0,0,0,0.03)",cursor:"pointer",border:"none"},cardBlue:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#f3f8ff",border:"1px solid #2D64B8",borderRadius:2,px:1.5,py:1,mb:1,boxShadow:"none",cursor:"pointer"},cardLeft:{display:"flex",alignItems:"center",gap:1},cardTitle:{fontSize:"13px",fontWeight:600,color:"#222"},cardSubtitle:{fontSize:"11px",color:"#888"},ftpIcon:{width:18,height:18,bgcolor:"#2D64B8",borderRadius:1,mr:1}},promoPrintModal:{dialog:{borderRadius:2,maxWidth:"100%",mx:1},header:{display:"flex",justifyContent:"space-between",alignItems:"center",pb:1,borderBottom:1,borderColor:"divider"},content:{pt:2,px:2},section:{mb:2.5},sectionTitle:{fontSize:"13px",fontWeight:600,mb:1},checkboxLabel:{"& .MuiTypography-root":{fontSize:"0.85rem"}},checkboxGrid:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:.5,columnGap:2},designContainer:{display:"flex",gap:1.5,overflowX:"auto",pb:1,"&::-webkit-scrollbar":{display:"none"},msOverflowStyle:"none",scrollbarWidth:"none"},designCard:{base:{border:2,borderRadius:2,p:1,cursor:"pointer",width:130,minWidth:130,height:100,textAlign:"center",bgcolor:"#FFFFFF",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)"},selected:{borderColor:"#1976D2",bgcolor:"linear-gradient(135deg, #E3F2FD 0%, #FFFFFF 100%)",boxShadow:"0 4px 12px rgba(0, 0, 0, 0)"},unselected:{borderColor:"#E0E0E0"}},design1:{topSection:{display:"flex",flexDirection:"column",alignItems:"center",minHeight:40,justifyContent:"center"},saveText:{fontFamily:"Inter, sans-serif",fontSize:"10px",fontWeight:600,letterSpacing:"0.5px",color:"#000000",lineHeight:1.2,mb:.3},percentText:{fontFamily:"Inter, sans-serif",fontSize:"18px",fontWeight:600,fontStyle:"italic",color:"#000000",lineHeight:1,display:"flex",justifyContent:"center",alignItems:"center"},percentSymbol:{fontSize:"14px",fontWeight:600,fontFamily:"Inter, sans-serif",color:"#000000"},bottomSection:{minHeight:25},priceRow:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:.3,gap:.3,minHeight:10},priceText:{fontFamily:"Inter, sans-serif",fontSize:"7px",fontWeight:600,color:"#000000",lineHeight:1.2},ourPrice:{textAlign:"left"},productName:{fontFamily:"Inter, sans-serif",fontSize:"7px",lineHeight:1.2,fontWeight:600,color:"#000000",minHeight:12}},design2:{topSection:{minHeight:50},percentOffText:{fontFamily:"Inter, sans-serif",fontSize:"16px",fontWeight:600,color:"#000000",lineHeight:1},percentSymbol:{fontSize:"14px",fontWeight:600,fontFamily:"Inter, sans-serif"},productName:{fontFamily:"Inter, sans-serif",fontSize:"7px",fontWeight:600,color:"#000000",mt:.3,lineHeight:1.2},priceRow:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:.3,minHeight:10},priceText:{fontFamily:"Inter, sans-serif",fontSize:"7px",fontWeight:600,color:"#000000",textAlign:"left",lineHeight:1.2}},design3:{productName:{fontFamily:"Inter, sans-serif",fontSize:"7px",lineHeight:1.2,fontWeight:600,color:"#000000"},priceRow:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:.3,minHeight:10},priceText:{fontFamily:"Inter, sans-serif",fontSize:"7px",fontWeight:600,color:"#000000",textAlign:"left",lineHeight:1.2},percentOffText:{fontFamily:"Inter, sans-serif",fontSize:"16px",fontWeight:600,color:"#000000",lineHeight:1},percentSymbol:{fontSize:"14px",fontWeight:600,fontFamily:"Inter, sans-serif"}},sheetSizeHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},sheetSizeGroup:{display:"flex",gap:.75},sheetSizeBtn:{flex:1,py:.75,border:1,borderColor:"divider",borderRadius:1,cursor:"pointer",transition:"all 0.2s","&:hover":{borderColor:"primary.main"}},sheetSizeBtnSelected:{borderColor:"primary.main"},actions:{px:2,pb:2},printButton:{bgcolor:"primary.main",color:"white",px:3,py:1,width:"100%",fontSize:"14px","&:hover":{bgcolor:"primary.dark"}}},stepper:{},createCatalogModal:{}}),[]),categoriesView:{root:{p:2,bgcolor:"#f7f8fa",minHeight:"100vh"},summaryCards:{display:"flex",gap:1,my:2,flexDirection:"column"},summaryCard:{flex:1,borderRadius:2,boxShadow:1,p:1,minWidth:120},summaryTitle:{variant:"subtitle2",color:"text.secondary",gutterBottom:!0},summaryValue:{variant:"h4",fontWeight:700,color:"text.primary"},summarySubtitle:{variant:"body2",color:"primary",mt:1},summaryExtra:{variant:"caption",color:"error",mt:.5},categoryTable:{borderRadius:2,boxShadow:1,p:1,mb:2},categoryTableHeader:{display:"flex",alignItems:"center",fontWeight:600,color:"text.secondary",fontSize:13,pb:1,borderBottom:"1px solid #eee"},categoryTableHeaderCell:{flex:2},categoryTableRow:()=>({display:"flex",alignItems:"center",py:1.5,borderBottom:"1px solid #eee"}),categoryNameCell:{flex:2},categoryName:{fontWeight:600,fontSize:13,color:"text.primary"},categoryProducts:{fontSize:11,color:"text.secondary",mt:.2},categoryUpdated:{fontSize:10,color:"#bbb",mt:.2},categoryStockCell:{flex:2},categoryStock:()=>({fontSize:13,color:"#454545",fontWeight:500}),categoryOSA:()=>({fontSize:11,color:"#808080",mt:.2}),categoryImagesCell:{flex:2,display:"flex",gap:.5},categoryImage:{width:28,height:28,borderRadius:2,border:"1px solid #eee",objectFit:"cover"},categoryViewCell:{flex:2,textAlign:"right"},categoryViewButton:{borderRadius:1,px:1.5,fontWeight:600,fontSize:12}}}}function Mr(){return $.useMemo(()=>({topBar:{root:{bgcolor:"#fff",px:2,py:.5,borderBottom:"1px solid #e0e0e0",minWidth:"100vw",overflowX:"auto",marginBottom:0},searchBox:{display:"flex",alignItems:"center",position:"relative",minWidth:180,maxWidth:220,mr:1.5},searchInput:{fontSize:"13px",color:"#222",width:"100%",height:36,bgcolor:"#fff",border:"1px solid #e0e0e0",borderRadius:1,boxSizing:"border-box"},btn:{display:"flex",alignItems:"center",gap:.5,bgcolor:"#fff",border:"1px solid #e0e0e0",borderRadius:1,px:2,height:36,fontSize:13,fontWeight:500,color:"#222",cursor:"pointer",transition:"all 0.2s","&:hover":{bgcolor:"#f3f4f6",borderColor:"#ccc"}},iconOnly:{minWidth:36,width:36,height:36,p:0,color:"#555",borderRadius:1,bgcolor:"#fff",border:"1px solid #e0e0e0",display:"flex",alignItems:"center",justifyContent:"center","&:hover":{bgcolor:"#f3f4f6",color:"#111"}}},header:{container:{display:"flex",flexDirection:"row",gap:2,my:1,px:3,overflowX:"auto","&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"},statCard:{flex:"0 0 auto",minWidth:180,bgcolor:"background.paper",borderRadius:2,p:2,border:1,borderColor:"#e6e6e6",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.04)"},statLabel:{fontSize:"12px",color:"#888",mb:.5},statValue:{fontSize:"26px",fontWeight:700,color:"#333",mb:.5},statMeta:{display:"flex",alignItems:"center",gap:.5},statMetaText:{fontSize:"11px",color:"#888"},statLink:{fontSize:"11px",color:"#3b82f6",textDecoration:"underline",display:"block",mt:.5}},productCard:{root:{borderBottom:1,borderColor:"divider",p:2,mx:2,bgcolor:"background.paper",transition:"all 0.2s ease",borderRadius:1,"&:hover":{bgcolor:"#f9f9f9"}},content:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:2},image:{width:56,height:56,bgcolor:"#f0f0f0",borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center",fontSize:"28px",overflow:"hidden",flexShrink:0},name:{fontSize:"13px",fontWeight:600,color:"#454545",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",mb:.5},badge:{px:2,py:.4,borderRadius:.5,fontSize:"12px",fontWeight:600,whiteSpace:"nowrap",active:{bgcolor:"#dcfce7",color:"#166534"},inactive:{bgcolor:"#f3f4f6",color:"#4b5563"}}},gridSystem:{display:"grid",gridTemplateColumns:"30px minmax(200px, 1fr) 90px 120px 100px 140px",gap:1.5,alignItems:"center",px:2},gridSystemLimited:{display:"grid",gridTemplateColumns:"30px minmax(280px, 1fr) 100px 150px",gap:2,alignItems:"center",px:2},listHeader:{root:{display:"flex",justifyContent:"space-between",alignItems:"center",px:3,py:1.5,bgcolor:"#f9fafb",borderBottom:1,borderColor:"divider"},productCount:{fontSize:"14px",color:"#666"},gridHeader:{display:"grid",bgcolor:"#f9fafb",py:1.5,borderBottom:1,borderColor:"divider",fontWeight:500,fontSize:"13px",color:"#6b7280"}},floatingActions:{root:{position:"fixed",left:"50%",transform:"translateX(-50%)",bottom:24,zIndex:1200},inner:{bgcolor:"#111",color:"white",px:3,py:1.5,borderRadius:2,display:"flex",alignItems:"center",gap:2,boxShadow:"0 4px 16px rgba(0, 0, 0, 0.3)"},count:{fontWeight:600,fontSize:"15px",whiteSpace:"nowrap"},divider:{width:1,height:28,bgcolor:"#333"},btn:{bgcolor:"#333",border:"none",color:"#fff",px:2.5,py:1,borderRadius:1,cursor:"pointer",fontWeight:600,fontSize:"14px",display:"flex",alignItems:"center",gap:1,transition:"background 0.2s",textTransform:"none","&:hover":{bgcolor:"#444"}}},table:{container:{mx:2,borderRadius:2,border:1,borderColor:"divider",overflow:"hidden"},cell:{fontSize:"13px",py:1.5,px:1.5},headerCell:{fontSize:"12px",fontWeight:600,color:"#6b7280",py:1.5,px:1.5,bgcolor:"#f9fafb"}},modal:{dialog:{borderRadius:2,maxWidth:520,mx:3},content:{p:3}},productSetting:{wrapper:{minHeight:"100vh",bgcolor:"#f5f7fa"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:3,py:1.5,bgcolor:"#fff",borderBottom:"1px solid #e8e8e8"},headerLeft:{display:"flex",alignItems:"center",gap:2},backButton:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#666","&:hover":{color:"#333"}},backText:{fontSize:"14px",color:"inherit"},divider:{height:20,alignSelf:"center"},breadcrumb:{display:"flex",alignItems:"center",gap:.5},breadcrumbText:{fontSize:"14px",color:"#666"},breadcrumbActive:{fontSize:"14px",fontWeight:600,color:"#000"},headerRight:{display:"flex",alignItems:"center",gap:1.5},bellButton:{color:"#666"},avatar:{width:32,height:32,borderRadius:"50%",bgcolor:"#3b82f6",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},content:{maxWidth:560,mx:"auto",px:3,py:3},section:{mb:3,bgcolor:"#fff",borderRadius:2,boxShadow:"0 2px 8px rgba(0,0,0,0.06)",p:2.5},sectionHeader:{display:"flex",alignItems:"center",gap:.5,mb:1.5},sectionTitle:{fontSize:"14px",fontWeight:600,color:"#333"},sectionCount:{fontSize:"12px",color:"#999"},settingCard:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",border:"1px solid #e8e8e8",borderRadius:2,px:2,py:1.5,mb:1.5,cursor:"pointer","&:hover":{bgcolor:"#fafafa"}},settingCardHover:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",border:"1px solid #e8e8e8",borderRadius:2,px:2,py:1.5,"&:hover":{bgcolor:"#fafafa"}},settingCardInner:{display:"flex",alignItems:"center",gap:1.5},settingIcon:{width:36,height:36,borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center"},settingTitle:{fontSize:"14px",fontWeight:700,color:"#000"},settingSubtitle:{fontSize:"12px",color:"#888"},syncHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1.5},syncNowButton:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#888","&:hover":{color:"#3b82f6"}},syncNowText:{fontSize:"12px"},setupSyncCard:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",border:"1px solid #e8e8e8",borderRadius:2,px:2,py:1.5,cursor:"pointer","&:hover":{bgcolor:"#fafafa"}},switch:{"& .MuiSwitch-switchBase.Mui-checked":{color:"#3b82f6"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"#3b82f6"}}},productSync:{wrapper:{minHeight:"100vh",background:"#f7f8fa",padding:0,margin:0},stepperHeader:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",margin:"24px 0 16px 0"},stepperContainer:{width:"98vw",maxWidth:400,margin:"0 auto",position:"relative"},stepperRow:{display:"flex",justifyContent:"center",position:"relative",minHeight:40,marginBottom:12},grayLine:{position:"absolute",top:45,height:2,background:"#e0e4ea",borderRadius:2,zIndex:0},grayLineTransition:"left 1.2s cubic-bezier(0.4,0,0.2,1), width 1.2s cubic-bezier(0.4,0,0.2,1)",greenBar:{position:"absolute",top:45,height:2,background:"#2ecc40",borderRadius:2,zIndex:1},greenBarTransition:"width 1.2s cubic-bezier(0.4,0,0.2,1)",stepLabel:{textAlign:"center",flex:1,position:"relative",zIndex:2,fontSize:13,marginBottom:6,fontFamily:"Inter, sans-serif"},activeStepColor:"#222",inactiveStepColor:"#b3b3b3",activeStepWeight:700,inactiveStepWeight:500,tickIconContainer:{height:24,marginBottom:2,display:"flex",alignItems:"center",justifyContent:"center"},mainContainer:{width:"98vw",maxWidth:420,minHeight:400,background:"#fff",borderRadius:12,margin:"0 auto",boxShadow:"0 2px 8px #0001",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"0 0 32px 0"},instructionsContainer:{background:"#f7f8fa",borderRadius:14,padding:"18px 12px 16px 12px",minWidth:220,maxWidth:340,margin:"24px auto 0 auto",boxShadow:"0 1px 4px #0002",display:"flex",flexDirection:"column",alignItems:"center"},instructionsTitle:{fontWeight:700,fontSize:16,marginBottom:10,fontFamily:"Inter, sans-serif",textAlign:"left",width:"100%"},instructionsList:{color:"#222",fontSize:13,margin:0,paddingLeft:18,marginBottom:16,textAlign:"left",width:"100%"},nextButton:{background:"#2563eb",color:"#fff",border:"none",borderRadius:6,padding:"8px 20px",fontWeight:600,fontSize:14,cursor:"pointer",boxShadow:"0 2px 6px #2563eb22",alignSelf:"flex-end",marginTop:6}},emptyProduct:{wrapper:{position:"relative",mx:-1,my:2,width:"100vw",maxWidth:"100vw",overflowX:"hidden"},card:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"500px",bgcolor:"#fff",mx:4,py:8,borderRadius:3,border:"1px solid #e8e8e8",position:"relative",zIndex:1},iconContainer:{position:"relative",mb:3},sparkleContainer:{position:"absolute",top:-24,left:"50%",transform:"translateX(-50%)",width:50,display:"flex",justifyContent:"space-between"},sparkleLeft:{width:2,height:14,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(-25deg)",transformOrigin:"bottom center"},sparkleCenter:{width:2,height:18,bgcolor:"#5b9bd5",borderRadius:1},sparkleRight:{width:2,height:14,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(25deg)",transformOrigin:"bottom center"},inboxIcon:{width:90,height:70,border:"2.5px solid #5b9bd5",borderRadius:"8px",bgcolor:"#e8f4fc",position:"relative",overflow:"visible"},notch:{position:"absolute",top:-3,left:"50%",transform:"translateX(-50%)",width:36,height:22,bgcolor:"#fff",borderBottomLeftRadius:18,borderBottomRightRadius:18,borderLeft:"2.5px solid #5b9bd5",borderRight:"2.5px solid #5b9bd5",borderBottom:"2.5px solid #5b9bd5"},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"}}},productSync1:{wrapper:{minHeight:"100vh",background:"#f7f8fa",padding:0,marginTop:0,marginBottom:0,marginRight:-8,marginLeft:-5},stepperHeader:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",margin:"32px 0 24px 0"},stepperContainer:{width:700,maxWidth:"95vw",margin:"0 auto",position:"relative"},stepperRow:{display:"flex",justifyContent:"center",position:"relative",minHeight:42,marginBottom:12},grayLine:{position:"absolute",top:55,height:2,background:"#e0e4ea",borderRadius:2,zIndex:0},grayLineTransition:"left 1.2s cubic-bezier(0.4,0,0.2,1), width 1.2s cubic-bezier(0.4,0,0.2,1)",greenBar:{position:"absolute",top:55,height:2,background:"#2ecc40",borderRadius:2,zIndex:1},greenBarTransition:"width 1.2s cubic-bezier(0.4,0,0.2,1)",stepLabel:{textAlign:"center",flex:1,position:"relative",zIndex:2,fontSize:15,marginBottom:6,fontFamily:"Inter, sans-serif"},activeStepColor:"#222",inactiveStepColor:"#b3b3b3",activeStepWeight:700,inactiveStepWeight:500,tickIconContainer:{height:28,marginBottom:2,display:"flex",alignItems:"center",justifyContent:"center"},mainContainer:{width:800,maxWidth:"97vw",minHeight:500,background:"#fff",borderRadius:14,margin:"0 auto",boxShadow:"0 2px 12px #0001",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:0},instructionsContainer:{background:"#f7f8fa",borderRadius:18,padding:"24px 24px 20px 24px",minWidth:280,maxWidth:360,margin:"28px auto 0 auto",boxShadow:"0 1px 6px #0002",display:"flex",flexDirection:"column",alignItems:"center"},instructionsTitle:{fontWeight:700,fontSize:18,marginBottom:12,fontFamily:"Inter, sans-serif",textAlign:"left",width:"100%"},instructionsList:{color:"#222",fontSize:15,margin:0,paddingLeft:18,marginBottom:18,textAlign:"left",width:"100%"},nextButton:{background:"#2563eb",color:"#fff",border:"none",borderRadius:8,padding:"9px 24px",fontWeight:600,fontSize:15,cursor:"pointer",boxShadow:"0 2px 8px #2563eb22",alignSelf:"flex-end",marginTop:7},input:{width:"100%",padding:"9px 11px",border:"1px solid #d1d5db",borderRadius:8,fontSize:15,marginBottom:0,background:"#fff",outline:"none",boxSizing:"border-box"},passwordInput:{width:"100%",padding:"9px 34px 9px 11px",border:"1px solid #d1d5db",borderRadius:8,fontSize:15,background:"#fff",outline:"none",boxSizing:"border-box"},backButton:{background:"#fff",color:"#2563eb",border:"1px solid #2563eb",borderRadius:8,padding:"9px 24px",fontWeight:600,fontSize:15,cursor:"pointer",marginRight:8}},productsyncsetting:{wrapper:{minHeight:"100vh",bgcolor:"#f5f7fa",px:2,py:0},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2,py:1.5,bgcolor:"#fff",borderBottom:"1px solid #e8e8e8"},headerLeft:{display:"flex",alignItems:"center",gap:1.5},backButton:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#666","&:hover":{color:"#333"}},backText:{fontSize:"13px",color:"inherit"},divider:{height:18,alignSelf:"center"},breadcrumb:{display:"flex",alignItems:"center",gap:.5},breadcrumbText:{fontSize:"13px",color:"#666"},breadcrumbActive:{fontSize:"13px",fontWeight:600,color:"#000"},headerRight:{display:"flex",alignItems:"center",gap:1},bellButton:{color:"#666"},avatar:{width:30,height:30,borderRadius:"50%",bgcolor:"#3b82f6",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},content:{maxWidth:"100%",mx:"auto",px:2,py:2},section:{maxWidth:"100%",mx:0,mb:2},sectionTitle:{fontSize:"14px",fontWeight:600,color:"#222",mb:1.5},sectionCount:{fontSize:"12px",color:"#aaa",fontWeight:400},sectionTitleRow:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1.5},syncNow:{color:"#1976d2",fontWeight:500,fontSize:"13px",cursor:"pointer"},card:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",borderRadius:2,px:2,py:1.5,mb:1.5,boxShadow:"0 1px 2px rgba(0,0,0,0.03)",border:"1px solid #e0e0e0",cursor:"pointer",transition:"border 0.2s, box-shadow 0.2s, background 0.2s","&:hover":{border:"1.5px solid #1976D2",background:"#f5faff",boxShadow:"0 2px 6px rgba(25, 118, 210, 0.08)"}},cardBlue:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#f3f8ff",border:"1px solid #2D64B8",borderRadius:2,px:2,py:1.5,mb:1.5,boxShadow:"none",cursor:"pointer"},cardLeft:{display:"flex",alignItems:"center",gap:1.5},cardTitle:{fontSize:"14px",fontWeight:600,color:"#222"},cardSubtitle:{fontSize:"12px",color:"#888"},cardGrid:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:1.5,mb:1.5},cardGridItem:{flex:1},ftpIcon:{width:20,height:20,bgcolor:"#2D64B8",borderRadius:1,mr:1.5}},categoriesView:{root:{p:4,bgcolor:"#f7f8fa",minHeight:"100vh"},summaryCards:{display:"flex",gap:2,my:3},summaryCard:{flex:1,borderRadius:2,boxShadow:1,p:2,minWidth:140},summaryTitle:{variant:"subtitle2",color:"text.secondary",gutterBottom:!0},summaryValue:{variant:"h4",fontWeight:700,color:"text.primary"},summarySubtitle:{variant:"body2",color:"primary",mt:1},summaryExtra:{variant:"caption",color:"error",mt:.5},categoryTable:{borderRadius:2,boxShadow:1,p:2,mb:2},categoryTableHeader:{display:"flex",alignItems:"center",fontWeight:600,color:"text.secondary",fontSize:13,pb:1,borderBottom:"1px solid #eee"},categoryTableHeaderCell:{flex:2},categoryTableRow:()=>({display:"flex",alignItems:"center",py:1.5,borderBottom:"1px solid #eee"}),categoryNameCell:{flex:2},categoryName:{fontWeight:600,fontSize:14,color:"text.primary"},categoryProducts:{fontSize:11,color:"text.secondary",mt:.2},categoryUpdated:{fontSize:10,color:"#bbb",mt:.2},categoryStockCell:{flex:2},categoryStock:()=>({fontSize:13,color:"#454545",fontWeight:500}),categoryOSA:()=>({fontSize:11,color:"#808080",mt:.2}),categoryImagesCell:{flex:2,display:"flex",gap:.5},categoryImage:{width:32,height:32,borderRadius:2,border:"1px solid #eee",objectFit:"cover"},categoryViewCell:{flex:2,textAlign:"right"},categoryViewButton:{borderRadius:1,px:2,fontWeight:600}}}),[])}const ed=({product:e,isSelected:t,onToggle:r,styles:n,showLimitedColumns:o})=>{const s=Ge(),l=Ze(s.breakpoints.down("sm")),c=Ze(s.breakpoints.between("sm","md")),d=Ar(),p=Mr(),u=e.price??0,h=e.percentageOff??0;let v=u;u>0&&h>0&&(v=Math.round(u*(1-h/100)));const g=e.inShelf??e.inshelff??e.onShelf??e.quantity??0,y=e.stock??e.totalStock??e.maxStock??0,f=y>0?Math.round(g/y*100):0,x=(b=>b?b.startsWith("http")?b:`${$u()}${b}`:null)(e.productImage||e.image);if(!l&&!c)return!n||!n.productCard?null:a.jsxs(E,{sx:{...n.productCard.root,...o?n.gridSystemLimited:n.gridSystem,bgcolor:t?"#f0f9ff":"background.paper"},children:[a.jsx(Qe,{checked:t||!1,onChange:r,size:"small",sx:{p:.5}}),a.jsxs(E,{sx:n.productCard.content,children:[a.jsx(E,{sx:n.productCard.image,children:x?a.jsx(E,{component:"img",src:x,alt:e.name,sx:{width:"100%",height:"100%",objectFit:"contain"}}):a.jsx("span",{style:{fontSize:"1.5rem"},children:"📷"})}),a.jsxs(E,{sx:{flex:1,minWidth:0},children:[a.jsx(P,{component:oo,to:`/product/${e.id}`,sx:{...n.productCard.name,textDecoration:"none",display:"block"},children:e.name}),a.jsxs(P,{variant:"caption",color:"text.secondary",sx:{display:"block",mb:.5},children:[e.productWeight," • ",e.category]}),a.jsx(P,{variant:"caption",color:"text.disabled",children:e.sku})]})]}),a.jsx(E,{children:a.jsx(E,{sx:{...n.productCard.badge,...e.status===!0||e.status==="Active"?n.productCard.badge.active:n.productCard.badge.inactive},children:e.status===!0||e.status==="Active"?"Active":"No Stock"})}),!o&&a.jsx(E,{children:h>0?a.jsxs(a.Fragment,{children:[a.jsxs(P,{fontWeight:600,fontSize:"0.9rem",color:"text.primary",children:["₹",v]}),a.jsxs(P,{variant:"caption",sx:{textDecoration:"line-through",color:"text.disabled",display:"block",lineHeight:1},children:["₹",u]}),a.jsxs(P,{variant:"caption",color:"success.main",fontWeight:600,sx:{display:"block",lineHeight:1,mt:.2},children:[h,"% OFF"]})]}):a.jsxs(P,{fontWeight:600,fontSize:"0.9rem",color:"text.primary",children:["₹",u]})}),a.jsxs(E,{children:[a.jsxs(E,{sx:{display:"flex",alignItems:"baseline",gap:.2,minHeight:20},children:[a.jsx(P,{fontSize:"1rem",fontWeight:400,sx:{color:"#f2992f"},children:g}),a.jsxs(P,{fontSize:"1rem",fontWeight:400,sx:{color:"#333",ml:.2},children:["/",y.toLocaleString()]})]}),a.jsxs(E,{sx:{display:"flex",alignItems:"baseline",gap:.5,mt:"-2px"},children:[a.jsxs(P,{fontSize:"0.95rem",fontWeight:400,sx:{color:"#f44336"},children:[f,"%"]}),a.jsx(P,{fontSize:"0.85rem",fontWeight:400,sx:{color:"#bdbdbd",ml:.2},children:"on shelf"})]})]}),!o&&a.jsx(E,{children:a.jsx(P,{variant:"body2",fontSize:"0.85rem",color:"text.primary",noWrap:!0,children:e.offer||""})})]});if(l){const b=d;return a.jsxs(E,{sx:{...b.productCard.root,bgcolor:t?"#f0f9ff":"background.paper"},children:[e.offer&&a.jsx(E,{sx:b.productCard.offerBadge,children:e.offer}),a.jsxs(E,{sx:b.productCard.contentRow,children:[a.jsx(Qe,{checked:t||!1,onChange:r,size:"small",sx:b.productCard.checkbox}),a.jsx(E,{sx:b.productCard.image,children:x?a.jsx(E,{component:"img",src:x,alt:e.name,sx:{width:"100%",height:"100%",objectFit:"contain"}}):a.jsx("span",{style:{fontSize:"24px"},children:"📷"})}),a.jsxs(E,{sx:b.productCard.details,children:[a.jsx(P,{component:oo,to:`/product/${e.id}`,sx:b.productCard.name,children:e.name}),a.jsx(P,{sx:b.productCard.meta,children:e.productWeight||"43g"}),a.jsxs(P,{sx:b.productCard.sku,children:["SKU: ",e.sku||"234987"]}),a.jsxs(E,{sx:b.productCard.priceRow,children:[a.jsxs(P,{sx:b.productCard.price,children:["₹",v]}),h>0&&a.jsxs(a.Fragment,{children:[a.jsxs(P,{sx:b.productCard.originalPrice,children:["₹",u]}),a.jsxs(P,{sx:b.productCard.discount,children:[h,"% OFF"]})]})]})]})]})]})}if(c){const b=p;return a.jsxs(E,{sx:{...b.productCard.root,bgcolor:t?"#f0f9ff":"background.paper"},children:[a.jsxs(E,{sx:b.productCard.content,children:[a.jsx(E,{sx:b.productCard.image,children:x?a.jsx(E,{component:"img",src:x,alt:e.name,sx:{width:"100%",height:"100%",objectFit:"contain"}}):a.jsx("span",{style:{fontSize:"1.5rem"},children:"📷"})}),a.jsxs(E,{sx:{flex:1,minWidth:0},children:[a.jsx(P,{component:oo,to:`/product/${e.id}`,sx:b.productCard.name,children:e.name}),a.jsxs(P,{variant:"caption",color:"text.secondary",sx:{display:"block",mb:.5},children:[e.productWeight," • ",e.category]}),a.jsx(P,{variant:"caption",color:"text.disabled",children:e.sku})]})]}),a.jsx(E,{children:a.jsx(E,{sx:{...b.productCard.badge,...e.status===!0||e.status==="Active"?b.productCard.badge.active:b.productCard.badge.inactive},children:e.status===!0||e.status==="Active"?"Active":"No Stock"})}),a.jsx(E,{children:h>0?a.jsxs(a.Fragment,{children:[a.jsxs(P,{fontWeight:600,fontSize:"0.9rem",color:"text.primary",children:["₹",v]}),a.jsxs(P,{variant:"caption",sx:{textDecoration:"line-through",color:"text.disabled",display:"block",lineHeight:1},children:["₹",u]}),a.jsxs(P,{variant:"caption",color:"success.main",fontWeight:600,sx:{display:"block",lineHeight:1,mt:.2},children:[h,"% OFF"]})]}):a.jsxs(P,{fontWeight:600,fontSize:"0.9rem",color:"text.primary",children:["₹",u]})}),a.jsxs(E,{children:[a.jsxs(E,{sx:{display:"flex",alignItems:"baseline",gap:.2,minHeight:20},children:[a.jsx(P,{fontSize:"1rem",fontWeight:400,sx:{color:"#f2992f"},children:g}),a.jsxs(P,{fontSize:"1rem",fontWeight:400,sx:{color:"#333",ml:.2},children:["/",y.toLocaleString()]})]}),a.jsxs(E,{sx:{display:"flex",alignItems:"baseline",gap:.5,mt:"-2px"},children:[a.jsxs(P,{fontSize:"0.95rem",fontWeight:400,sx:{color:"#f44336"},children:[f,"%"]}),a.jsx(P,{fontSize:"0.85rem",fontWeight:400,sx:{color:"#bdbdbd",ml:.2},children:"on shelf"})]})]}),a.jsx(E,{children:a.jsx(P,{variant:"body2",fontSize:"0.85rem",color:"text.primary",noWrap:!0,children:e.offer||""})})]})}};function Pt(){const t={theme:$.useMemo(()=>hc({typography:{fontFamily:"'Inter', sans-serif",h1:{fontWeight:700,fontSize:"3.2rem"},h2:{fontWeight:600,fontSize:"2.4rem"},h3:{fontWeight:600,fontSize:"1.8rem"},h4:{fontWeight:600,fontSize:"0.85rem",color:"#444"},body1:{fontSize:"0.9rem",color:"#333"},body2:{fontSize:"0.85rem",color:"#666"},button:{textTransform:"none",fontWeight:500}},palette:{primary:{main:"#3b82f6",light:"#eff6ff"},secondary:{main:"#22d3ee"},text:{primary:"#454545",secondary:"#666666",disabled:"#999999"},divider:"#e0e0e0",background:{default:"#ffffff",paper:"#ffffff",neutral:"#f5f7fa"},success:{main:"#155724",light:"#d4edda"},error:{main:"#721c24",light:"#f8d7da",contrastText:"#d9534f"}},shape:{borderRadius:6},components:{MuiButton:{styleOverrides:{root:{boxShadow:"none","&:hover":{boxShadow:"none"}}}}}}),[]),productsyncsetting:{wrapper:{minHeight:"100vh",bgcolor:"#f5f7fa",px:0,py:0,mx:-1},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:3,py:1.5,bgcolor:"#fff",borderBottom:"1px solid #e8e8e8"},headerLeft:{display:"flex",alignItems:"center",gap:2},backButton:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#666","&:hover":{color:"#333"}},backText:{fontSize:"14px",color:"inherit"},divider:{height:20,alignSelf:"center"},breadcrumb:{display:"flex",alignItems:"center",gap:.5},breadcrumbText:{fontSize:"14px",color:"#666"},breadcrumbActive:{fontSize:"14px",fontWeight:600,color:"#000"},headerRight:{display:"flex",alignItems:"center",gap:1.5},bellButton:{color:"#666"},avatar:{width:32,height:32,borderRadius:"50%",bgcolor:"#3b82f6",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},content:{maxWidth:600,mx:"auto",px:4,py:3},section:{maxWidth:520,mx:"auto",mb:4},sectionTitle:{fontSize:"15px",fontWeight:600,color:"#222",mb:1.5},sectionCount:{fontSize:"13px",color:"#aaa",fontWeight:400},card:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",borderRadius:2,px:3,py:2,mb:1.5,boxShadow:"0 1px 2px rgba(0,0,0,0.03)",border:"1px solid #e0e0e0",cursor:"pointer",transition:"border 0.2s, box-shadow 0.2s, background 0.2s","&:hover":{border:"1.5px solid #1976D2",background:"#f5faff",boxShadow:"0 2px 8px rgba(25, 118, 210, 0.08)"}},cardBlue:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#f3f8ff",border:"1px solid #2D64B8",borderRadius:2,px:3,py:2,mb:1.5,boxShadow:"none",cursor:"pointer"},cardLeft:{display:"flex",alignItems:"center",gap:2},cardTitle:{fontSize:"15px",fontWeight:600,color:"#222"},cardSubtitle:{fontSize:"13px",color:"#888"},ftpIcon:{width:24,height:24,bgcolor:"#2D64B8",borderRadius:1,mr:2}},flexBetween:{display:"flex",justifyContent:"space-between",alignItems:"center"},flexCenter:{display:"flex",justifyContent:"center",alignItems:"center"},topBar:{root:{bgcolor:"background.paper",marginBottom:"20px"},inner:{display:"flex",justifyContent:"space-between",alignItems:"center",px:3,maxWidth:"100%"},searchBox:{display:"flex",alignItems:"center",position:"relative",width:320},searchInput:{fontSize:"0.9rem",color:"text.primary",pl:1,width:"100%"},controlGroup:{display:"flex",alignItems:"center",gap:2,marginRight:"22px"},btn:{display:"flex",alignItems:"center",gap:1,bgcolor:"background.paper",border:1,borderColor:"divider",borderRadius:1,px:1.5,height:36,fontSize:"0.85rem",color:"text.primary",cursor:"pointer",transition:"all 0.2s","&:hover":{bgcolor:"#fcfcfc",borderColor:"#ccc"}},viewSwitch:{opt:{border:1,borderColor:"primary.main",borderRadius:2,color:"primary.main",bgcolor:"#fff",px:2,fontWeight:600,fontSize:"0.85rem",cursor:"pointer",height:36,display:"flex",alignItems:"center",gap:1,transition:"all 0.2s"}},iconOnly:{minWidth:34,width:34,height:34,p:0,backgroundColor:"#fff",border:"none",borderRadius:1,cursor:"pointer"},magicBtn:{background:"linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%)",border:"none",width:36,height:36,borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxShadow:"0 4px 10px rgba(34, 211, 238, 0.3)",transition:"all 0.2s ease",color:"#ffffff",overflow:"visible","& svg":{color:"#ffffff",stroke:"#ffffff",fill:"#ffffff",display:"block",width:"20px",height:"20px"},"&:hover":{transform:"translateY(-1px)",boxShadow:"0 6px 12px rgba(34, 211, 238, 0.4)"}}},productCard:{root:{borderBottom:1,borderColor:"divider",p:"0.25rem 0.25rem",m:"4px",bgcolor:"background.paper",transition:"all 0.3s ease",borderRadius:1,width:"100%",maxWidth:1100,mx:"auto"},content:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:3},image:{width:50,height:50,bgcolor:"#f0f0f0",borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center",fontSize:"2rem",overflow:"hidden",flexShrink:0},name:{fontFamily:"'Inter', sans-serif",fontSize:"12px",fontWeight:600,letterSpacing:"0px",color:"#454545",width:"166px",display:"-webkit-box",WebkitLineClamp:2,lineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",mb:.5},badge:{width:"30%",px:2.5,py:.5,mr:2,borderRadius:.5,fontSize:"0.8rem",fontWeight:600,whiteSpace:"nowrap",active:{bgcolor:"#dcfce7",color:"#166534"},inactive:{bgcolor:"#f3f4f6",color:"#4b5563"}}},gridSystem:{display:"grid",gridTemplateColumns:"30px minmax(250px, 1fr) 100px 150px 120px 160px",gap:2,alignItems:"center",px:3},gridSystemLimited:{display:"grid",gridTemplateColumns:"30px minmax(400px, 1fr) 120px 180px",gap:5,alignItems:"center",px:3},listHeader:{root:{bgcolor:"#f9fafb",py:1.5,borderBottom:1,borderColor:"divider",fontWeight:500,fontSize:"0.85rem",color:"#6b7280",width:"100%",maxWidth:1100,mx:"auto"}},header:{container:{display:"flex",gap:3,my:1,width:"100%",px:3,maxWidth:1e3,mx:"auto"},statCard:{bgcolor:"background.paper",borderRadius:2,p:3,flex:1,border:1,borderColor:"#e6e6e6",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.05)"},bigNumber:{fontSize:"1.8rem",fontWeight:700,color:"#000",mb:.5}},floatingActions:{root:{position:"fixed",left:"50%",transform:"translateX(-50%)",bottom:30,zIndex:1200,animation:"slideUp 0.3s ease-out","@keyframes slideUp":{from:{transform:"translate(-50%, 100%)",opacity:0},to:{transform:"translate(-50%, 0)",opacity:1}}},inner:{bgcolor:"#111",color:"white",px:2,py:1,borderRadius:2,display:"flex",alignItems:"center",gap:1.5,boxShadow:"0 4px 12px rgba(0, 0, 0, 0.3)",justifyContent:"space-between"},count:{fontWeight:600,fontSize:"0.9rem",whiteSpace:"nowrap"},divider:{width:1,height:24,bgcolor:"#333"},btn:{bgcolor:"#333",border:"none",color:"#fff",px:2,py:1,borderRadius:1,cursor:"pointer",fontWeight:600,fontSize:"0.85rem",display:"flex",alignItems:"center",gap:1,transition:"background 0.2s",textTransform:"none","&:hover":{bgcolor:"#444"}},btnPrimary:{"&:hover":{bgcolor:"#2563eb"}}},promoPrintModal:{dialog:{borderRadius:2,maxWidth:480},header:{display:"flex",justifyContent:"space-between",alignItems:"center",pb:1,borderBottom:1,borderColor:"divider"},content:{pt:2},section:{mb:3},sectionTitle:{variant:"subtitle2",fontWeight:600,mb:1.5},checkboxLabel:{"& .MuiTypography-root":{fontSize:"0.9rem"}},designContainer:{display:"flex",gap:2,overflowX:"auto","&::-webkit-scrollbar":{display:"none"},msOverflowStyle:"none",scrollbarWidth:"none"},designCard:{base:{border:2,borderRadius:2.5,p:1.5,cursor:"pointer",width:160,height:120,textAlign:"center",bgcolor:"#FFFFFF",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)"},selected:{borderColor:"#1976D2",bgcolor:"linear-gradient(135deg, #E3F2FD 0%, #FFFFFF 100%)",boxShadow:"0 4px 12px rgba(0, 0, 0, 0)"},unselected:{borderColor:"#E0E0E0"}},design1:{topSection:{display:"flex",flexDirection:"column",alignItems:"center",minHeight:50,justifyContent:"center"},saveText:{fontFamily:"Inter, sans-serif",fontSize:"11px",fontWeight:600,letterSpacing:"0.5px",color:"#000000",lineHeight:1.2,mb:.5},percentText:{fontFamily:"Inter, sans-serif",fontSize:"22px",fontWeight:600,fontStyle:"italic",color:"#000000",lineHeight:1,letterSpacing:"0px",display:"flex",justifyContent:"center",alignItems:"center"},percentSymbol:{fontSize:"18px",fontWeight:600,fontFamily:"Inter, sans-serif",color:"#000000"},bottomSection:{minHeight:30},priceRow:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:.5,gap:.5,minHeight:12},priceText:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",lineHeight:1.2,letterSpacing:"0px"},ourPrice:{textAlign:"left"},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",lineHeight:1.3,fontWeight:600,color:"#000000",letterSpacing:"0px",minHeight:14}},design2:{topSection:{minHeight:60},percentOffText:{fontFamily:"Inter, sans-serif",fontSize:"20px",fontWeight:600,color:"#000000",lineHeight:1},percentSymbol:{fontSize:"18px",fontWeight:600,fontFamily:"Inter, sans-serif"},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",fontWeight:600,color:"#000000",mt:.5,lineHeight:1.3,letterSpacing:"0px"},bottomSection:{minHeight:30},priceRow:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:.5,minHeight:12},priceText:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",textAlign:"left",lineHeight:1.2,letterSpacing:"0px"}},design3:{topSection:{minHeight:20},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",lineHeight:1.3,fontWeight:600,color:"#000000",letterSpacing:"0px"},middleSection:{minHeight:30},priceRow:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:.5,minHeight:12},priceText:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",textAlign:"left",lineHeight:1.2,letterSpacing:"0px"},bottomSection:{minHeight:30},percentOffText:{fontFamily:"Inter, sans-serif",fontSize:"20px",fontWeight:600,color:"#000000",lineHeight:1},percentSymbol:{fontSize:"18px",fontWeight:600,fontFamily:"Inter, sans-serif"}},sheetSizeHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1.5},sheetSizeGroup:{display:"flex",gap:1},sheetSizeBtn:{flex:1,py:1,border:1,borderColor:"divider",borderRadius:1,cursor:"pointer",transition:"all 0.2s","&:hover":{borderColor:"primary.main"}},sheetSizeBtnSelected:{borderColor:"primary.main"},actions:{px:3,pb:2},printButton:{bgcolor:"primary.main",color:"white",px:4,py:1,width:"100%","&:hover":{bgcolor:"primary.dark"}}},emptyProduct:{wrapper:{position:"relative",mx:-1,my:2,width:"100vw",maxWidth:"100vw",overflowX:"hidden"},card:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"500px",bgcolor:"#fff",mx:12,py:8,borderRadius:3,border:"1px solid #e8e8e8",position:"relative",zIndex:1},iconContainer:{position:"relative",mb:3},sparkleContainer:{position:"absolute",top:-24,left:"50%",transform:"translateX(-50%)",width:50,display:"flex",justifyContent:"space-between"},sparkleLeft:{width:2,height:14,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(-25deg)",transformOrigin:"bottom center"},sparkleCenter:{width:2,height:18,bgcolor:"#5b9bd5",borderRadius:1},sparkleRight:{width:2,height:14,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(25deg)",transformOrigin:"bottom center"},inboxIcon:{width:90,height:70,border:"2.5px solid #5b9bd5",borderRadius:"8px",bgcolor:"#e8f4fc",position:"relative",overflow:"visible"},notch:{position:"absolute",top:-3,left:"50%",transform:"translateX(-50%)",width:36,height:22,bgcolor:"#fff",borderBottomLeftRadius:18,borderBottomRightRadius:18,borderLeft:"2.5px solid #5b9bd5",borderRight:"2.5px solid #5b9bd5",borderBottom:"2.5px solid #5b9bd5"},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"}}},productSetting:{wrapper:{minHeight:"100vh",bgcolor:"#f5f7fa",mx:-1},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:3,py:1.5,bgcolor:"#fff",borderBottom:"1px solid #e8e8e8"},headerLeft:{display:"flex",alignItems:"center",gap:2},backButton:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#666","&:hover":{color:"#333"}},backText:{fontSize:"14px",color:"inherit"},divider:{height:20,alignSelf:"center"},breadcrumb:{display:"flex",alignItems:"center",gap:.5},breadcrumbText:{fontSize:"14px",color:"#666"},breadcrumbActive:{fontSize:"14px",fontWeight:600,color:"#000"},headerRight:{display:"flex",alignItems:"center",gap:1.5},bellButton:{color:"#666"},avatar:{width:32,height:32,borderRadius:"25%",bgcolor:"#3b82f6",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},content:{maxWidth:600,mx:"auto",px:4,py:3},section:{mb:3},sectionHeader:{display:"flex",alignItems:"center",gap:.5,mb:1.5},sectionTitle:{fontSize:"14px",fontWeight:600,color:"#333"},sectionCount:{fontSize:"12px",color:"#999"},settingCard:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",border:"1px solid #e8e8e8",borderRadius:2,px:2,py:1.5,mb:1.5,cursor:"pointer","&:hover":{bgcolor:"#fafafa"}},settingCardHover:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",border:"1px solid #e8e8e8",borderRadius:2,px:2,py:1.5,"&:hover":{bgcolor:"#fafafa"}},settingCardInner:{display:"flex",alignItems:"center",gap:1.5},settingIcon:{width:36,height:36,borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center"},settingTitle:{fontSize:"14px",fontWeight:700,color:"#000"},settingSubtitle:{fontSize:"12px",color:"#888"},syncHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1.5},syncNowButton:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#888"},syncNowText:{fontSize:"12px"},setupSyncCard:{display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:2,bgcolor:"#fff",border:"1px solid #e8e8e8",px:2,py:1.5,cursor:"pointer","&:hover":{bgcolor:"#fafafa"}},switch:{"& .MuiSwitch-switchBase.Mui-checked":{color:"#3b82f6"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"#3b82f6"}}},productSettingModal:{modal:{display:"flex",alignItems:"center",justifyContent:"center","& .MuiBackdrop-root":{backdropFilter:"blur(1px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},container:{bgcolor:"#fff",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"}},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:"#2D64B8",cursor:"pointer"},footer:{px:2.5,pb:2.5},saveButton:{bgcolor:"#2D64B8",color:"#fff",textTransform:"none",fontSize:"14px",fontWeight:500,py:1.25,borderRadius:1.5,boxShadow:"none"}},stepper:{header:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",margin:"40px 0 32px 0"},container:{width:800,maxWidth:"90vw",margin:"0 auto",position:"relative"},row:{display:"flex",justifyContent:"center",position:"relative",minHeight:48,marginBottom:16},grayLine:{position:"absolute",top:65,height:2,background:"#e0e4ea",borderRadius:2,zIndex:0},greenBar:{position:"absolute",top:65,height:2,background:"#2ecc40",borderRadius:2,zIndex:1},label:{textAlign:"center",flex:1,position:"relative",zIndex:2,fontSize:16,marginBottom:8,fontFamily:"Inter, sans-serif"},activeColor:"#222",inactiveColor:"#b3b3b3",activeWeight:700,inactiveWeight:500,tickIconContainer:{height:32,marginBottom:2,display:"flex",alignItems:"center",justifyContent:"center"}},productSync:{wrapper:{minHeight:"100vh",background:"#f7f8fa",padding:0,marginTop:0,marginBottom:0,marginRight:-8,marginLeft:-5},width:"100%",padding:"10px 12px",border:"1px solid #d1d5db",borderRadius:8,fontSize:15,marginBottom:0,background:"#fff",outline:"none",boxSizing:"border-box"},passwordInput:{width:"100%",padding:"10px 38px 10px 12px",border:"1px solid #d1d5db",borderRadius:8,fontSize:15,background:"#fff",outline:"none",boxSizing:"border-box"},backButton:{background:"#fff",color:"#2563eb",border:"1px solid #2563eb",borderRadius:8,padding:"10px 32px",fontWeight:600,fontSize:16,cursor:"pointer",marginRight:8}},r={root:{p:4,bgcolor:"#f7f8fa",minHeight:"100vh"},summaryCards:{display:"flex",gap:3,my:4},summaryCard:{flex:1,borderRadius:12,boxShadow:"0 2px 8px #e0e0e0",p:2,minWidth:180,background:"#fff"},summaryTitle:{variant:"subtitle2",color:"text.secondary",gutterBottom:!0},summaryValue:{variant:"h4",fontWeight:700,color:"text.primary"},summarySubtitle:{variant:"body2",color:"primary",mt:1},summaryExtra:{variant:"caption",color:"error",mt:.5},categoryTable:{borderRadius:0,boxShadow:"none",background:"#fff",p:0,mb:3},categoryTableHeader:{display:"flex",alignItems:"center",fontWeight:600,color:"#222",fontSize:16,pb:2,borderBottom:"1px solid #f0f0f0",background:"#f7f8fa",borderTopLeftRadius:0,borderTopRightRadius:0},categoryTableHeaderCell:{flex:2,marginLeft:7},categoryTableRow:()=>({display:"flex",alignItems:"center",py:3,borderBottom:"1px solid #f0f0f0",background:"#fff",borderRadius:0,transition:"background 0.2s",boxShadow:"none",marginLeft:7}),categoryNameCell:{flex:2},categoryName:{fontWeight:700,fontSize:18,color:"#222"},categoryProducts:{fontSize:14,color:"#888",mt:.5},categoryUpdated:{fontSize:13,color:"#aaa",mt:.5},categoryStockCell:{flex:2},categoryStock:()=>({fontSize:16,color:"#222",fontWeight:600}),categoryOSA:()=>({fontSize:14,color:"#e53935",mt:.5}),categoryImagesCell:{flex:2,display:"flex",gap:1.5},categoryImage:{width:48,height:48,borderRadius:8,border:"1px solid #eee",objectFit:"cover",background:"#f5f5f5"},categoryViewCell:{flex:1},categoryViewButton:{background:"none",color:"#444",fontWeight:400,fontSize:18,textTransform:"none",p:0,boxShadow:"none",justifyContent:"flex-end","&:hover":{background:"none",boxShadow:"none"}}};return t.categoriesView=r,t}function td(){return td=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},td.apply(this,arguments)}function bP(e,t){if(e==null)return{};var r=vP(e,t),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vP(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s<n.length;s++)o=n[s],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var rd=$.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,s=o===void 0?24:o,l=bP(e,["color","size"]);return $.createElement("svg",td({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),$.createElement("line",{x1:"17",y1:"10",x2:"3",y2:"10"}),$.createElement("line",{x1:"21",y1:"6",x2:"3",y2:"6"}),$.createElement("line",{x1:"21",y1:"14",x2:"3",y2:"14"}),$.createElement("line",{x1:"17",y1:"18",x2:"3",y2:"18"}))});rd.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},rd.displayName="AlignLeft";function nd(){return nd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nd.apply(this,arguments)}function xP(e,t){if(e==null)return{};var r=SP(e,t),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function SP(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s<n.length;s++)o=n[s],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var od=$.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,s=o===void 0?24:o,l=xP(e,["color","size"]);return $.createElement("svg",nd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),$.createElement("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),$.createElement("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"}))});od.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},od.displayName="Bell";function id(){return id=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},id.apply(this,arguments)}function wP(e,t){if(e==null)return{};var r=CP(e,t),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function CP(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s<n.length;s++)o=n[s],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Ca=$.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,s=o===void 0?24:o,l=wP(e,["color","size"]);return $.createElement("svg",id({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),$.createElement("polyline",{points:"6 9 12 15 18 9"}))});Ca.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},Ca.displayName="ChevronDown";function sd(){return sd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sd.apply(this,arguments)}function EP(e,t){if(e==null)return{};var r=TP(e,t),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function TP(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s<n.length;s++)o=n[s],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var xi=$.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,s=o===void 0?24:o,l=EP(e,["color","size"]);return $.createElement("svg",sd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),$.createElement("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),$.createElement("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}))});xi.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},xi.displayName="Link";function ad(){return ad=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ad.apply(this,arguments)}function OP(e,t){if(e==null)return{};var r=kP(e,t),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function kP(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s<n.length;s++)o=n[s],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var ld=$.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,s=o===void 0?24:o,l=OP(e,["color","size"]);return $.createElement("svg",ad({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),$.createElement("circle",{cx:"12",cy:"12",r:"1"}),$.createElement("circle",{cx:"12",cy:"5",r:"1"}),$.createElement("circle",{cx:"12",cy:"19",r:"1"}))});ld.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},ld.displayName="MoreVertical";function cd(){return cd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cd.apply(this,arguments)}function PP(e,t){if(e==null)return{};var r=IP(e,t),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function IP(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s<n.length;s++)o=n[s],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Si=$.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,s=o===void 0?24:o,l=PP(e,["color","size"]);return $.createElement("svg",cd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),$.createElement("polyline",{points:"6 9 6 2 18 2 18 9"}),$.createElement("path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"}),$.createElement("rect",{x:"6",y:"14",width:"12",height:"8"}))});Si.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},Si.displayName="Printer";function dd(){return dd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dd.apply(this,arguments)}function NP(e,t){if(e==null)return{};var r=_P(e,t),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _P(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s<n.length;s++)o=n[s],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var pd=$.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,s=o===void 0?24:o,l=NP(e,["color","size"]);return $.createElement("svg",dd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),$.createElement("circle",{cx:"11",cy:"11",r:"8"}),$.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))});pd.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},pd.displayName="Search";function ud(){return ud=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ud.apply(this,arguments)}function AP(e,t){if(e==null)return{};var r=MP(e,t),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function MP(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s<n.length;s++)o=n[s],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var fd=$.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,s=o===void 0?24:o,l=AP(e,["color","size"]);return $.createElement("svg",ud({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),$.createElement("circle",{cx:"12",cy:"12",r:"3"}),$.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"}))});fd.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},fd.displayName="Settings";function hd(){return hd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hd.apply(this,arguments)}function $P(e,t){if(e==null)return{};var r=DP(e,t),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function DP(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s<n.length;s++)o=n[s],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var gd=$.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,s=o===void 0?24:o,l=$P(e,["color","size"]);return $.createElement("svg",hd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),$.createElement("path",{d:"M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"}),$.createElement("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),$.createElement("path",{d:"M16 10a4 4 0 0 1-8 0"}))});gd.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},gd.displayName="ShoppingBag";function yd(){return yd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yd.apply(this,arguments)}function FP(e,t){if(e==null)return{};var r=zP(e,t),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zP(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s<n.length;s++)o=n[s],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var md=$.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,s=o===void 0?24:o,l=FP(e,["color","size"]);return $.createElement("svg",yd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),$.createElement("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"}))});md.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},md.displayName="Star";function bd(){return bd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bd.apply(this,arguments)}function jP(e,t){if(e==null)return{};var r=BP(e,t),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function BP(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s<n.length;s++)o=n[s],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var wi=$.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,s=o===void 0?24:o,l=jP(e,["color","size"]);return $.createElement("svg",bd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),$.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),$.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))});wi.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},wi.displayName="X";const Yr=({filters:e,onFilterChange:t,stores:r=[],onOpenFilterModal:n,StoresModal:o,storesModalProps:s,onStoreSelect:l,showBackButton:c=!1,hideViewSwitch:d=!1,isHomeDefault:p=!1,tenantStatus:u={matched:!0}})=>{const h=et();Ge();const v=Pt(),[g,y]=$.useState("OSA"),[f,m]=$.useState(null),x=!!f,[b,w]=$.useState(!1),S=Array.isArray(e?.store)?e.store:[],C=()=>{m(null)},[O,I]=$.useState(S),F=N=>{let A=[...O];N==="all"?O.includes("all")?A=[]:A=["all"]:O.includes(N)?A=O.filter(W=>W!==N&&W!=="all"):(A=O.filter(W=>W!=="all"),A.push(N)),I(A)},D=N=>{o?w(!0):(I(S),m(N.currentTarget))},L=()=>{t({...e,store:O}),m(null)},z=N=>{l?l(N):t({...e,store:N}),w(!1)},k=()=>{w(!1)},_=v.topBar||{},M=_&&_.viewSwitch||{};return a.jsxs(a.Fragment,{children:[a.jsx(E,{sx:_.root,children:a.jsxs(E,{sx:_.inner,children:[a.jsxs(E,{sx:{display:"flex",alignItems:"center",marginBottom:"20px"},children:[c&&a.jsxs(Se,{variant:"text",size:"small",sx:{minWidth:0,px:2,color:"#222",fontWeight:400,fontSize:15,textTransform:"none",display:"flex",alignItems:"center",background:"none",boxShadow:"none",border:"none","&:hover":{background:"none",boxShadow:"none"}},disableRipple:!0,onClick:()=>h("/home"),children:[a.jsx("span",{style:{fontSize:20,fontWeight:400,color:"#222",marginRight:6},children:"<"}),a.jsx("span",{style:{fontSize:15,fontWeight:400,color:"#222"},children:"Back"})]}),a.jsxs(E,{sx:_.searchBox,children:[a.jsx(pd,{size:18,style:{position:"absolute",left:0,color:"#888"}}),a.jsx(ti,{placeholder:"Search Products",value:e.search,onChange:N=>t({...e,search:N.target.value}),sx:{..._.searchInput||{},pl:3.5}})]})]}),a.jsxs(E,{sx:_.controlGroup,children:[a.jsxs(E,{sx:{display:"flex",gap:1},children:[a.jsxs(E,{sx:{display:"flex",alignItems:"center",border:"1px solid #e0e0e0",borderRadius:"6px",px:1.5,minWidth:80,cursor:"pointer",gap:1,..._.btn||{}},onClick:D,tabIndex:0,"aria-label":"Select stores",children:[a.jsx(gd,{size:18,style:{color:"#555",marginRight:4}}),a.jsx(P,{sx:{fontWeight:700,fontSize:15,color:"#222",mr:.5},children:S.length===0||S.includes("all")?"All Stores":`${S.length} Stores`}),a.jsx(P,{sx:{fontWeight:400,fontSize:15,color:"#888",ml:.5},children:` ${r.filter(N=>N.id!=="all").length} stores`}),a.jsx(Ca,{size:16,color:"#888",style:{marginLeft:2}})]}),a.jsxs(Yc,{anchorEl:f,open:x,onClose:C,PaperProps:{style:{minWidth:180}},children:[a.jsxs(Rt,{onClick:()=>F("all"),children:[a.jsx(Qe,{checked:O.includes("all")}),a.jsx(Hc,{primary:"All Stores"})]}),a.jsx(Ke,{}),r.filter(N=>N.id!=="all").map(N=>a.jsxs(Rt,{onClick:()=>F(N.id),children:[a.jsx(Qe,{checked:O.includes(N.id)}),a.jsx(Hc,{primary:N.name})]},N.id)),a.jsx(Ke,{}),a.jsx(E,{sx:{display:"flex",justifyContent:"flex-end",p:1},children:a.jsx(Se,{variant:"contained",size:"small",onClick:L,children:"Apply"})})]}),a.jsxs(E,{sx:_.btn,onClick:n,children:[a.jsx(P,{variant:"body2",children:p?"MTD":"Filters"}),a.jsx(Ca,{size:14,color:"#888"})]}),a.jsxs(E,{sx:_.btn,children:[a.jsx(P,{variant:"body2",children:"Sort"}),a.jsx(rd,{size:16,style:{transform:"rotate(-90deg)"}})]})]}),a.jsx(Ke,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}}),!d&&a.jsxs(E,{sx:{display:"flex",gap:1.5},children:[a.jsx(E,{component:"button",onClick:()=>y("OSA"),sx:{...M.opt||{},...g==="OSA"&&M.active},children:"OSA"}),a.jsx(E,{component:"button",onClick:()=>y("Catalogs"),sx:{...M.opt||{},...g==="Catalogs"&&M.active},children:"Catalogs"})]}),!d&&a.jsx(Ke,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}}),a.jsxs(E,{sx:{display:"flex",gap:1,alignItems:"center"},children:[!d&&a.jsxs(a.Fragment,{children:[a.jsx(E,{component:"button",sx:{..._.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||h("/product-setting",{state:{tenantIntegrationMatched:!!u.matched}})},children:a.jsx(fd,{size:20})}),a.jsx(Ke,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}})]}),a.jsx(E,{component:"button",sx:_.iconOnly,title:"More",children:a.jsx(ld,{size:20})})]}),a.jsx(Ke,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:2,ml:1},children:[a.jsx(E,{component:"button",sx:_.iconOnly,title:"Notifications",children:a.jsx(od,{size:20})}),a.jsx(E,{component:"button",sx:_.magicBtn,title:"AI Actions","aria-label":"AI Actions",children:a.jsx(md,{size:20})})]})]})]})}),o&&(()=>{const{open:N,onClose:A,onStoreSelect:W,...H}=s||{};return a.jsx(o,{open:b,onClose:k,onStoreSelect:z,selectedStores:S,...H})})()]})};function LP({showTopBar:e=!0}){const t=Ge(),r=Ze(t.breakpoints.down("sm")),n=Ze(t.breakpoints.between("sm","md")),o=et(),s=Ft();Ae(C=>C.dashboard?.companyId||"");const l=Pt(),c=Ar(),d=Mr(),[p,u]=$.useState({matched:!1,error:"",apiResponse:null,loading:!1});$.useEffect(()=>{p.matched&&o("/categories")},[p.matched,o]);let h={};r?h=c&&c.emptyProduct?c.emptyProduct:{wrapper:{},card:{},iconContainer:{},sparkleContainer:{},sparkleLeft:{},sparkleCenter:{},sparkleRight:{},inboxIcon:{},notch:{},title:{},subtitle:{},actionLink:{}}:n?h=d&&d.emptyProduct?d.emptyProduct:{wrapper:{},card:{},iconContainer:{},sparkleContainer:{},sparkleLeft:{},sparkleCenter:{},sparkleRight:{},inboxIcon:{},notch:{},title:{},subtitle:{},actionLink:{}}:h=l&&l.emptyProduct?l.emptyProduct:{wrapper:{},card:{},iconContainer:{},sparkleContainer:{},sparkleLeft:{},sparkleCenter:{},sparkleRight:{},inboxIcon:{},notch:{},title:{},subtitle:{},actionLink:{}};const y=(Ae(C=>C.dashboard)?.products||[]).reduce((C,O)=>(O?.id&&(C[O.id]=O),C),{}),[f,m]=$.useState({category:"all",status:"all",search:"",store:[]});$.useEffect(()=>{s(Er())},[s]);const x={};Object.values(y).forEach(C=>{C.storeId&&C.storeName&&(x[C.storeId]=C.storeName)});const b=[{id:"all",name:"All Stores"},...Object.entries(x).map(([C,O])=>({id:C,name:O}))],w=C=>{m(C),e&&C.store&&C.store.length>0&&o("/products",{state:{filters:C,tenantStatus:p}})},S=C=>{C.preventDefault(),o("/settings",{state:{tenantIntegrationData:p.apiResponse}})};return!r&&!n?a.jsxs(E,{sx:{minHeight:"100vh",bgcolor:"#f5f7fa",overflowX:"hidden"},children:[e&&a.jsx(Yr,{filters:f,onFilterChange:w,styles:l.topBar,stores:b,tenantStatus:p}),a.jsx(E,{sx:h.wrapper,children:a.jsxs(E,{sx:h.card,children:[a.jsxs(E,{sx:h.iconContainer,children:[a.jsxs(E,{sx:h.sparkleContainer,children:[a.jsx(E,{sx:h.sparkleLeft}),a.jsx(E,{sx:h.sparkleCenter}),a.jsx(E,{sx:h.sparkleRight})]}),a.jsx(E,{sx:h.inboxIcon,children:a.jsx(E,{sx:h.notch})})]}),a.jsx(P,{sx:h.title,children:"No Products"}),a.jsx(P,{sx:h.subtitle,children:p.loading?"Loading...":p.matched?"Active integrations fetched successfully":p.error?p.error:"No active integration found for this tenant id"}),!p.loading&&!p.matched&&a.jsx(P,{component:"a",href:"#",sx:h.actionLink,onClick:S,children:"Start Syncing Products"})]})})]}):r?a.jsxs(E,{sx:{minHeight:"100vh",bgcolor:"#f5f7fa"},children:[e&&a.jsx(Yr,{filters:f,onFilterChange:w,styles:c,stores:b}),a.jsx(E,{sx:h.wrapper,children:a.jsxs(E,{sx:h.card,children:[a.jsxs(E,{sx:h.iconContainer,children:[a.jsxs(E,{sx:h.sparkleContainer,children:[a.jsx(E,{sx:h.sparkleLeft}),a.jsx(E,{sx:h.sparkleCenter}),a.jsx(E,{sx:h.sparkleRight})]}),a.jsx(E,{sx:h.inboxIcon,children:a.jsx(E,{sx:h.notch})})]}),a.jsx(P,{sx:h.title,children:"No Products"}),a.jsx(P,{sx:h.subtitle,children:p.loading?"Loading...":p.matched?"Active integrations fetched successfully":p.error?p.error:"No active integration found for this tenant id"}),!p.loading&&!p.matched&&a.jsx(P,{component:"a",href:"#",sx:h.actionLink,onClick:S,children:"Start Syncing Products"})]})})]}):a.jsxs(E,{sx:{minHeight:"100vh",bgcolor:"#f5f7fa"},children:[e&&a.jsx(Yr,{filters:f,onFilterChange:w,styles:d&&d.topBar?d.topBar:{root:{},inner:{},searchBox:{},searchInput:{},controlGroup:{},btn:{},iconOnly:{},magicBtn:{},viewSwitch:{opt:{},active:{}}},stores:b}),a.jsx(E,{sx:h.wrapper,children:a.jsxs(E,{sx:h.card,children:[a.jsxs(E,{sx:h.iconContainer,children:[a.jsxs(E,{sx:h.sparkleContainer,children:[a.jsx(E,{sx:h.sparkleLeft}),a.jsx(E,{sx:h.sparkleCenter}),a.jsx(E,{sx:h.sparkleRight})]}),a.jsx(E,{sx:h.inboxIcon,children:a.jsx(E,{sx:h.notch})})]}),a.jsx(P,{sx:h.title,children:"No Products"}),a.jsx(P,{sx:h.subtitle,children:p.loading?"Loading...":p.matched?"Active integrations fetched successfully":p.error?p.error:"No active integration found for this tenant id"}),!p.loading&&!p.matched&&a.jsx(P,{component:"a",href:"#",sx:h.actionLink,onClick:S,children:"Start Syncing Products"})]})})]})}const WP=({products:e,loading:t,selectedProducts:r,onToggleProduct:n,styles:o,onHeaderToggle:s,showLimitedColumns:l})=>{const c=Ge(),d=Ze(c.breakpoints.down("sm")),p=Ze(c.breakpoints.between("sm","md")),u=Ar(),h=Mr();if(t)return a.jsxs(E,{sx:{display:"flex",justifyContent:"center",p:4,bgcolor:"background.paper",borderRadius:2},children:[a.jsx(Zs,{}),a.jsx(P,{sx:{ml:2,color:"text.secondary"},children:"Loading products..."})]});if(e.length===0)return a.jsx(LP,{showTopBar:!1});if(!d&&!p)return!o||!o.listHeader?null:a.jsx(a.Fragment,{children:a.jsxs(E,{children:[a.jsxs(E,{sx:{...o.listHeader.root,...l?o.gridSystemLimited:o.gridSystem},children:[a.jsx(E,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",mr:1.5},children:Array.isArray(r)&&r.length>0?a.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 28 28",style:{display:"block"},"aria-hidden":"true",children:[a.jsx("rect",{x:"3",y:"3",width:"22",height:"22",rx:"6",fill:"#F6FAFF",stroke:"#2196F3",strokeWidth:"2"}),a.jsx("rect",{x:"9",y:"13",width:"10",height:"2",rx:"1",fill:"#2196F3"})]}):a.jsx("svg",{width:"28",height:"28",viewBox:"0 0 28 28",style:{display:"block"},"aria-hidden":"true",children:a.jsx("rect",{x:"3",y:"3",width:"22",height:"22",rx:"6",fill:"#fff",stroke:"#b3b0b0ff",strokeWidth:"2"})})}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:.5,cursor:s?"pointer":"default"},onClick:v=>{v.stopPropagation()},onMouseDown:v=>{v.preventDefault()},children:[a.jsx(P,{fontSize:"inherit",fontWeight:"inherit",children:"Product"}),a.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",style:{marginLeft:2,display:"inline",verticalAlign:"middle"},"aria-hidden":"true",children:[a.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19",stroke:"#444",strokeWidth:"2.2",strokeLinecap:"round"}),a.jsx("polyline",{points:"6,13 12,19 18,13",fill:"none",stroke:"#444",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})]})]}),a.jsx(P,{fontSize:"inherit",fontWeight:"inherit",children:"Status"}),!l&&a.jsx(P,{fontSize:"inherit",fontWeight:"inherit",children:"Price"}),a.jsx(P,{fontSize:"inherit",fontWeight:"inherit",children:"Stock / OSA"}),!l&&a.jsx(P,{fontSize:"inherit",fontWeight:"inherit",children:"Offer"})]}),a.jsx(E,{sx:{display:"flex",flexDirection:"column"},children:e.map((v,g)=>a.jsx(ed,{product:v,isSelected:r?.includes(v.id),onToggle:()=>n(v.id),styles:o,showLimitedColumns:l},v.id?`${v.id}-${g}`:g))})]})});if(d){const v=u;return a.jsxs(E,{children:[a.jsxs(E,{sx:v.listHeader.root,children:[a.jsx(E,{sx:v.listHeader.checkboxIcon,children:Array.isArray(r)&&r.length>0?a.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 28 28",style:{display:"block"},"aria-hidden":"true",children:[a.jsx("rect",{x:"3",y:"3",width:"22",height:"22",rx:"6",fill:"#F6FAFF",stroke:"#2196F3",strokeWidth:"2"}),a.jsx("rect",{x:"9",y:"13",width:"10",height:"2",rx:"1",fill:"#2196F3"})]}):a.jsx("svg",{width:"24",height:"24",viewBox:"0 0 28 28",style:{display:"block"},"aria-hidden":"true",children:a.jsx("rect",{x:"3",y:"3",width:"22",height:"22",rx:"6",fill:"#fff",stroke:"#ccc",strokeWidth:"2"})})}),a.jsxs(P,{sx:v.listHeader.productCount,children:[e.length," Products"]})]}),a.jsx(E,{sx:{display:"flex",flexDirection:"column"},children:e.map((g,y)=>a.jsx(ed,{product:g,isSelected:r?.includes(g.id),onToggle:()=>n(g.id),styles:v,showLimitedColumns:l},g.id?`${g.id}-${y}`:y))})]})}if(p){const v=h;return a.jsxs(E,{children:[a.jsxs(E,{sx:{...v.listHeader.root,...l?v.gridSystemLimited:v.gridSystem},children:[a.jsx(E,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",mr:1.5},children:Array.isArray(r)&&r.length>0?a.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 28 28",style:{display:"block"},"aria-hidden":"true",children:[a.jsx("rect",{x:"3",y:"3",width:"22",height:"22",rx:"6",fill:"#F6FAFF",stroke:"#2196F3",strokeWidth:"2"}),a.jsx("rect",{x:"9",y:"13",width:"10",height:"2",rx:"1",fill:"#2196F3"})]}):a.jsx("svg",{width:"28",height:"28",viewBox:"0 0 28 28",style:{display:"block"},"aria-hidden":"true",children:a.jsx("rect",{x:"3",y:"3",width:"22",height:"22",rx:"6",fill:"#fff",stroke:"#b3b0b0ff",strokeWidth:"2"})})}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:.5,cursor:s?"pointer":"default"},onClick:g=>{g.stopPropagation()},onMouseDown:g=>{g.preventDefault()},children:[a.jsx(P,{fontSize:"inherit",fontWeight:"inherit",children:"Product"}),a.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",style:{marginLeft:2,display:"inline",verticalAlign:"middle"},"aria-hidden":"true",children:[a.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19",stroke:"#444",strokeWidth:"2.2",strokeLinecap:"round"}),a.jsx("polyline",{points:"6,13 12,19 18,13",fill:"none",stroke:"#444",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})]})]}),a.jsx(P,{fontSize:"inherit",fontWeight:"inherit",children:"Status"}),!l&&a.jsx(P,{fontSize:"inherit",fontWeight:"inherit",children:"Price"}),a.jsx(P,{fontSize:"inherit",fontWeight:"inherit",children:"Stock / OSA"}),!l&&a.jsx(P,{fontSize:"inherit",fontWeight:"inherit",children:"Offer"})]}),a.jsx(E,{sx:{display:"flex",flexDirection:"column"},children:e.map(g=>a.jsx(ed,{product:g,isSelected:r?.includes(g.id),onToggle:()=>n(g.id),styles:v,showLimitedColumns:l},g.id))})]})}},Ci=ht(a.jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline");const VP=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),UP=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),cy=e=>{const t=UP(e);return t.charAt(0).toUpperCase()+t.slice(1)},dy=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),HP=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var RP={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 qP=$.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:s,iconNode:l,...c},d)=>$.createElement("svg",{ref:d,...RP,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:dy("lucide",o),...!s&&!HP(c)&&{"aria-hidden":"true"},...c},[...l.map(([p,u])=>$.createElement(p,u)),...Array.isArray(s)?s:[s]]));const Gr=(e,t)=>{const r=$.forwardRef(({className:n,...o},s)=>$.createElement(qP,{ref:s,iconNode:t,className:dy(`lucide-${VP(cy(e))}`,`lucide-${e}`,n),...o}));return r.displayName=cy(e),r};const vd=Gr("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);const YP=Gr("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const xd=Gr("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);const $r=Gr("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const Gn=Gr("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);const at=Gr("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 vn=Gr("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);const GP=Gr("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),KP=({products:e=[],styles:t})=>{const r=et(),n=Ge(),o=Ze(n.breakpoints.down("sm")),s=Ze(n.breakpoints.between("sm","md")),l=Ar(),c=Mr(),d=m=>m.status===!0||m.status==="Active",p=()=>{if(!e.length)return null;const m=e.filter(x=>x.updatedAt).sort((x,b)=>new Date(b.updatedAt)-new Date(x.updatedAt))[0];return m?m.updatedAt:null},u=m=>{if(!m)return"Unknown";const x=new Date,b=new Date(m),w=Math.floor((x-b)/6e4);if(w<1)return"Just now";const S=Math.floor(w/1440),C=Math.floor(w%1440/60),O=w%60;let I="";return S>0&&(I+=`${S} days `),C>0&&(I+=`${C} hour `),O>0&&(I+=`${O} minutes `),I=I.trim(),I?`${I} ago`:"Just now"},h=$.useMemo(()=>e.length?e[0]:null,[e]),g=h?(m=>m?m.startsWith("http")?m:`${$u()}${m}`:null)(h.productImage||h.image):null,y=e.filter(d).length,f=p();if(!o&&!s)return!t||!t.header?null:a.jsxs(E,{component:"header",sx:t.header.container,children:[a.jsxs(E,{sx:t.header.statCard,children:[a.jsx(P,{variant:"h4",sx:t.theme.typography.h4,children:"Active Products"}),a.jsx(P,{sx:t.header.bigNumber,children:y}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:1,mt:1},children:[a.jsx(Ci,{sx:{color:"#27ae60",fontSize:15,mr:.5}}),a.jsx("span",{style:{color:"#757575",fontWeight:500,fontSize:"0.8rem",letterSpacing:.2,marginRight:1},children:"Sync"}),a.jsx("span",{style:{color:"#757575",fontWeight:500,fontSize:"0.8rem"},children:u(f)})]})]}),a.jsxs(E,{sx:t.header.statCard,children:[a.jsx(P,{variant:"h4",sx:{fontSize:18,fontWeight:500,color:"#444",mb:.5},children:"Active Catalogs"}),a.jsx(P,{sx:{fontSize:36,fontWeight:600,color:"#222",lineHeight:1,mb:.5},children:"34"}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:1,mb:1},children:[a.jsxs("svg",{width:"16",height:"16",fill:"none",viewBox:"0 0 24 24",style:{marginRight:4},children:[a.jsx("path",{d:"M7 17h10M7 13h10M7 9h10M5 7v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2Z",stroke:"#888",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M8 7v2a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V7",stroke:"#888",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),a.jsx(P,{sx:{color:"#757575",fontWeight:500,fontSize:"0.95rem"},children:"4 public links"}),a.jsx(E,{sx:{flex:1}}),a.jsxs(P,{component:"span",sx:{color:"#2563eb",fontWeight:500,fontSize:"1rem",textDecoration:"none",cursor:"pointer",ml:1,display:"inline-flex",alignItems:"center"},onClick:()=>window.location.href="/catalogs/manage-shared",children:["Manage ",a.jsx("svg",{width:"18",height:"18",fill:"none",viewBox:"0 0 24 24",style:{verticalAlign:"middle"},children:a.jsx("path",{d:"M9 18l6-6-6-6",stroke:"#2563eb",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})]}),a.jsxs(E,{sx:t.header.statCard,children:[a.jsx(P,{variant:"h4",sx:t.theme.typography.h4,children:"Best Product"}),h?a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:1.5,mt:.5},children:[g?a.jsx(E,{component:"img",src:g,alt:h.name,sx:{width:40,height:40,objectFit:"contain",borderRadius:1}}):a.jsx(E,{sx:{width:40,height:40,bgcolor:"#eee",borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center"},children:"📷"}),a.jsxs(E,{children:[a.jsx(P,{sx:{fontSize:"0.95rem",fontWeight:600,m:0},children:h.name}),a.jsxs(P,{sx:{fontSize:"0.78rem",color:"text.secondary"},children:[h.quantity||h.stock," units",h.category?` · ${h.category}`:""]})]})]}):a.jsx(E,{sx:{display:"flex",alignItems:"center",mt:1},children:a.jsx(P,{variant:"body2",color:"text.secondary",children:"No data available"})})]})]});if(o){const m=l;return a.jsxs(E,{component:"header",sx:m.header.container,children:[a.jsx(P,{sx:m.header.title,children:"Christmas Super Sale 2025"}),a.jsxs(E,{sx:m.header.statsScroll,children:[a.jsxs(E,{sx:m.header.statCard,children:[a.jsx(P,{sx:m.header.statLabel,children:"Active Products"}),a.jsx(P,{sx:m.header.statValue,children:y}),a.jsxs(E,{sx:m.header.statMeta,children:[a.jsx(Ci,{sx:{color:"#27ae60",fontSize:14}}),a.jsxs(P,{sx:m.header.statMetaText,children:["Sync ",u(f)]})]})]}),a.jsxs(E,{sx:m.header.statCard,children:[a.jsx(P,{sx:{fontSize:15,fontWeight:500,color:"#444",mb:.5},children:"Active Catalogs"}),a.jsx(P,{sx:{fontSize:28,fontWeight:600,color:"#222",lineHeight:1,mb:.5},children:"34"}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:1,mb:1},children:[a.jsxs("svg",{width:"15",height:"15",fill:"none",viewBox:"0 0 24 24",style:{marginRight:4},children:[a.jsx("path",{d:"M7 17h10M7 13h10M7 9h10M5 7v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2Z",stroke:"#888",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M8 7v2a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V7",stroke:"#888",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),a.jsx(P,{sx:{color:"#757575",fontWeight:500,fontSize:"0.95rem"},children:"4 public links"}),a.jsx(E,{sx:{flex:1}}),a.jsxs(P,{component:"span",sx:{color:"#2563eb",fontWeight:500,fontSize:"1rem",textDecoration:"none",cursor:"pointer",ml:1},onClick:()=>r("/catalogs/manage-shared"),children:["Manage ",a.jsx("svg",{width:"16",height:"16",fill:"none",viewBox:"0 0 24 24",style:{verticalAlign:"middle"},children:a.jsx("path",{d:"M9 18l6-6-6-6",stroke:"#2563eb",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})]}),h&&a.jsxs(E,{sx:{...m.header.statCard,minWidth:180,display:"flex",flexDirection:"column",gap:.5},children:[a.jsx(P,{sx:m.header.statLabel,children:"Best Product"}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:1.5,mt:.5},children:[g&&a.jsx(E,{component:"img",src:g,alt:h.name,sx:{width:48,height:48,objectFit:"cover",borderRadius:1,bgcolor:"#f5f5f5"}}),a.jsxs(E,{sx:{display:"flex",flexDirection:"column"},children:[a.jsx(P,{sx:{fontSize:"14px",fontWeight:600,color:"#333",lineHeight:1.3},children:h.name}),a.jsx(P,{sx:{fontSize:"12px",color:"rgba(0, 0, 0, 0.6)",fontWeight:500},children:"250 units"})]})]})]})]})]})}if(s){const m=c;return a.jsxs(E,{component:"header",sx:m.header.container,children:[a.jsxs(E,{sx:m.header.statCard,children:[a.jsx(P,{variant:"h4",sx:m.theme.typography.h4,children:"Active Products"}),a.jsx(P,{sx:m.header.bigNumber,children:y}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:1,mt:1},children:[a.jsx(Ci,{sx:{color:"#27ae60",fontSize:15,mr:.5}}),a.jsx("span",{style:{color:"#757575",fontWeight:500,fontSize:"0.8rem",letterSpacing:.2,marginRight:1},children:"Sync"}),a.jsx("span",{style:{color:"#757575",fontWeight:500,fontSize:"0.8rem"},children:u(f)})]})]}),a.jsxs(E,{sx:m.header.statCard,children:[a.jsx(P,{variant:"h4",sx:m.theme.typography.h4,children:"Active Catalogs"}),a.jsx(E,{sx:{display:"flex",alignItems:"center",gap:.5}})]}),a.jsxs(E,{sx:m.header.statCard,children:[a.jsx(P,{variant:"h4",sx:m.theme.typography.h4,children:"Best Product"}),h?a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:1.5,mt:.5},children:[g?a.jsx(E,{component:"img",src:g,alt:h.name,sx:{width:40,height:40,objectFit:"contain",borderRadius:1}}):a.jsx(E,{sx:{width:40,height:40,bgcolor:"#eee",borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center"},children:"📷"}),a.jsxs(E,{children:[a.jsx(P,{sx:{fontSize:"0.95rem",fontWeight:600,m:0},children:h.name}),a.jsxs(P,{sx:{fontSize:"0.78rem",color:"text.secondary"},children:[h.quantity||h.stock," units",h.category?` · ${h.category}`:""]})]})]}):a.jsx(E,{sx:{display:"flex",alignItems:"center",mt:1},children:a.jsx(P,{variant:"body2",color:"text.secondary",children:"No data available"})})]})]})}},XP=({selectedProducts:e,selectedDesign:t,sheetSize:r,itemsToShow:n})=>{if(console.log("printPromoDesigns called with:",{selectedDesign:t,sheetSize:r,itemsToShow:n,productsCount:e.length,selectedProducts:e}),!e||e.length===0){alert("No products selected for printing");return}const o=window.open("","_blank","width=800,height=600");if(!o){alert("Please allow popups to print promo designs");return}const s={A2:{width:420,height:594,stickersPerSheet:4},A3:{width:297,height:420,stickersPerSheet:6},A4:{width:210,height:297,stickersPerSheet:1},A5:{width:148,height:210,stickersPerSheet:12},A7:{width:74,height:105,stickersPerSheet:24}},l=s[r]||s.A5,d=(()=>{const x=r==="A2"||r==="A3"?2:r==="A4"?1:r==="A5"?3:4,b=Math.ceil(l.stickersPerSheet/x);return{width:r==="A4"?l.width-20:l.width/x-5,height:r==="A4"?l.height-20:l.height/b-5,cols:x,rows:b}})(),p=(x,b=0)=>{const w=Number(x);return Number.isFinite(w)?w:b},g={design1:x=>{const b=x?.productName||x?.name||"Product",w=x?.originalPrice??x?.mrp??x?.price??0,S=x?.price??x?.discountPrice??0,C=p(w,0),O=p(S,0),I=C>O&&C>0?Math.round((C-O)/C*100):5,F=O;return`
|
|
179
185
|
<div class="sticker design-1">
|
|
180
186
|
<div class="top-section">
|
|
181
187
|
${n.percentOff?`
|
|
@@ -186,38 +192,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
186
192
|
<div class="bottom-section">
|
|
187
193
|
${n.discountPrice||n.mrp?`
|
|
188
194
|
<div class="price-row">
|
|
189
|
-
${n.discountPrice?`<div class="price-text our-price">OUR PRICE: ₹${
|
|
190
|
-
${n.mrp?`<div class="price-text">MRP: ₹${
|
|
195
|
+
${n.discountPrice?`<div class="price-text our-price">OUR PRICE: ₹${p(F,0).toFixed(0)}</div>`:""}
|
|
196
|
+
${n.mrp?`<div class="price-text">MRP: ₹${p(C,0).toFixed(0)}</div>`:""}
|
|
191
197
|
</div>
|
|
192
198
|
`:""}
|
|
193
|
-
${n.productName?`<div class="product-name">${
|
|
199
|
+
${n.productName?`<div class="product-name">${b}</div>`:""}
|
|
194
200
|
</div>
|
|
195
201
|
</div>
|
|
196
|
-
`},design2:
|
|
202
|
+
`},design2:x=>{const b=x?.productName||x?.name||"Product",w=x?.originalPrice??x?.mrp??x?.price??0,S=x?.price??x?.discountPrice??0,C=p(w,0),O=p(S,0),I=C>O&&C>0?Math.round((C-O)/C*100):5,F=O;return`
|
|
197
203
|
<div class="sticker design-2">
|
|
198
204
|
<div class="top-section">
|
|
199
205
|
${n.percentOff?`<div class="percent-off-text">${I}<span class="percent-symbol">%</span> OFF</div>`:""}
|
|
200
|
-
${n.productName?`<div class="product-name">${
|
|
206
|
+
${n.productName?`<div class="product-name">${b}</div>`:""}
|
|
201
207
|
</div>
|
|
202
208
|
${n.discountPrice||n.mrp?`
|
|
203
209
|
<div class="price-row">
|
|
204
|
-
${n.discountPrice?`<div class="price-text">OUR PRICE: ₹${
|
|
205
|
-
${n.mrp?`<div class="price-text">MRP: ₹${
|
|
210
|
+
${n.discountPrice?`<div class="price-text">OUR PRICE: ₹${p(F,0).toFixed(0)}</div>`:""}
|
|
211
|
+
${n.mrp?`<div class="price-text">MRP: ₹${p(C,0).toFixed(0)}</div>`:""}
|
|
206
212
|
</div>
|
|
207
213
|
`:""}
|
|
208
214
|
</div>
|
|
209
|
-
`},design3:
|
|
215
|
+
`},design3:x=>{const b=x?.productName||x?.name||"Product",w=x?.originalPrice??x?.mrp??x?.price??0,S=x?.price??x?.discountPrice??0,C=p(w,0),O=p(S,0),I=C>O&&C>0?Math.round((C-O)/C*100):5,F=O;return`
|
|
210
216
|
<div class="sticker design-3">
|
|
211
|
-
${n.productName?`<div class="product-name">${
|
|
217
|
+
${n.productName?`<div class="product-name">${b}</div>`:""}
|
|
212
218
|
${n.discountPrice||n.mrp?`
|
|
213
219
|
<div class="price-row">
|
|
214
|
-
${n.discountPrice?`<div class="price-text">OUR PRICE: ₹${
|
|
215
|
-
${n.mrp?`<div class="price-text">MRP: ₹${
|
|
220
|
+
${n.discountPrice?`<div class="price-text">OUR PRICE: ₹${p(F,0).toFixed(0)}</div>`:""}
|
|
221
|
+
${n.mrp?`<div class="price-text">MRP: ₹${p(C,0).toFixed(0)}</div>`:""}
|
|
216
222
|
</div>
|
|
217
223
|
`:""}
|
|
218
224
|
${n.percentOff?`<div class="percent-off-text">${I}<span class="percent-symbol">%</span> OFF</div>`:""}
|
|
219
225
|
</div>
|
|
220
|
-
`}},g
|
|
226
|
+
`}},y=g[t]||g.design1,f=e.map(x=>y(x)).join(""),m=`
|
|
221
227
|
<!DOCTYPE html>
|
|
222
228
|
<html>
|
|
223
229
|
<head>
|
|
@@ -252,8 +258,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
252
258
|
flex-direction: ${r==="A4"?"column":"unset"};
|
|
253
259
|
align-items: ${r==="A4"?"center":"unset"};
|
|
254
260
|
justify-content: ${r==="A4"?"center":"unset"};
|
|
255
|
-
grid-template-columns: ${r==="A4"?"none":`repeat(${
|
|
256
|
-
grid-template-rows: ${r==="A4"?"none":`repeat(${
|
|
261
|
+
grid-template-columns: ${r==="A4"?"none":`repeat(${d.cols}, 1fr)`};
|
|
262
|
+
grid-template-rows: ${r==="A4"?"none":`repeat(${d.rows}, 1fr)`};
|
|
257
263
|
gap: ${r==="A4"?"0":"4mm"};
|
|
258
264
|
padding: ${r==="A4"?"0":"3mm"};
|
|
259
265
|
margin: 0;
|
|
@@ -471,5 +477,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
471
477
|
<\/script>
|
|
472
478
|
</body>
|
|
473
479
|
</html>
|
|
474
|
-
`;console.log("Generated stickers HTML length:",f.length),console.log("Generated HTML content length:",b.length);try{o.document.open(),o.document.write(b),o.document.close(),console.log("HTML written successfully to print window")}catch(S){console.error("Error writing to print window:",S),alert("Error generating print preview. Please check console for details.")}},Cc=({open:e,onClose:t,selectedProducts:r=[]})=>{const n=We(),o=xe(n.breakpoints.down("sm")),a=xe(n.breakpoints.between("sm","md")),l=jt(),c=It(),u=Nt(),[d,p]=F.useState({productName:!0,mrp:!0,percentOff:!0,discountPrice:!0}),[h,y]=F.useState("design1"),[x,g]=F.useState("A5"),f=v=>p(T=>({...T,[v]:!T[v]})),b=()=>{if(!r||r.length===0){alert("No products selected. Please select products first.");return}bk({selectedProducts:r,selectedDesign:h,sheetSize:x,itemsToShow:d}),t()};if(o){const v=c.promoPrintModal;return s.jsxs(Sn,{open:e,onClose:t,maxWidth:"sm",fullWidth:!0,PaperProps:{sx:v.dialog},BackdropProps:{sx:{backdropFilter:"blur(4px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},children:[s.jsx(Cn,{children:s.jsxs(m,{sx:v.header,children:[s.jsx(P,{variant:"h6",fontWeight:600,children:"Promo Print"}),s.jsx(it,{onClick:t,size:"small",children:s.jsx(Uo,{size:20})})]})}),s.jsxs(wn,{sx:v.content,children:[s.jsxs(m,{sx:v.section,children:[s.jsx(P,{sx:v.sectionTitle,children:"Items to show"}),s.jsxs(m,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:1,columnGap:3},children:[s.jsx(Ze,{control:s.jsx(Le,{checked:d.productName,onChange:()=>f("productName"),size:"small"}),label:"Product Name",sx:v.checkboxLabel}),s.jsx(Ze,{control:s.jsx(Le,{checked:d.percentOff,onChange:()=>f("percentOff"),size:"small"}),label:"Percent OFF",sx:v.checkboxLabel}),s.jsx(Ze,{control:s.jsx(Le,{checked:d.mrp,onChange:()=>f("mrp"),size:"small"}),label:"MRP",sx:v.checkboxLabel}),s.jsx(Ze,{control:s.jsx(Le,{checked:d.discountPrice,onChange:()=>f("discountPrice"),size:"small"}),label:"Discount Price",sx:v.checkboxLabel})]})]}),s.jsxs(m,{sx:v.section,children:[s.jsx(P,{sx:v.sectionTitle,children:"Promo Design"}),s.jsxs(m,{sx:v.designContainer,children:[s.jsxs(m,{onClick:()=>y("design1"),sx:{...v.designCard.base,...h==="design1"?v.designCard.selected:v.designCard.unselected},children:[s.jsxs(m,{sx:v.design1.topSection,children:[s.jsx(P,{sx:{...v.design1.saveText,visibility:d.percentOff?"visible":"hidden"},children:"SAVE"}),s.jsxs(P,{sx:{...v.design1.percentText,visibility:d.percentOff?"visible":"hidden"},children:["5",s.jsx(P,{component:"span",sx:v.design1.percentSymbol,children:"%"})]})]}),s.jsxs(m,{sx:v.design1.bottomSection,children:[s.jsxs(m,{sx:{...v.design1.priceRow,visibility:d.discountPrice||d.mrp?"visible":"hidden"},children:[s.jsx(P,{sx:{...v.design1.priceText,...v.design1.ourPrice,visibility:d.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),s.jsx(P,{sx:{...v.design1.priceText,visibility:d.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]}),s.jsx(P,{sx:{...v.design1.productName,visibility:d.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"})]})]}),s.jsxs(m,{onClick:()=>y("design2"),sx:{...v.designCard.base,...h==="design2"?v.designCard.selected:v.designCard.unselected},children:[s.jsxs(m,{sx:v.design2.topSection,children:[s.jsxs(P,{sx:{...v.design2.percentOffText,visibility:d.percentOff?"visible":"hidden"},children:["5",s.jsx(P,{component:"span",sx:v.design2.percentSymbol,children:"%"})," OFF"]}),s.jsx(P,{sx:{...v.design2.productName,visibility:d.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"})]}),s.jsxs(m,{sx:{...v.design2.priceRow,visibility:d.discountPrice||d.mrp?"visible":"hidden"},children:[s.jsx(P,{sx:{...v.design2.priceText,visibility:d.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),s.jsx(P,{sx:{...v.design2.priceText,visibility:d.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]})]}),s.jsxs(m,{onClick:()=>y("design3"),sx:{...v.designCard.base,...h==="design3"?v.designCard.selected:v.designCard.unselected},children:[s.jsx(P,{sx:{...v.design3.productName,visibility:d.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500G COFFEE BIB"}),s.jsxs(m,{sx:{...v.design3.priceRow,visibility:d.discountPrice||d.mrp?"visible":"hidden"},children:[s.jsx(P,{sx:{...v.design3.priceText,visibility:d.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),s.jsx(P,{sx:{...v.design3.priceText,visibility:d.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]}),s.jsxs(P,{sx:{...v.design3.percentOffText,visibility:d.percentOff?"visible":"hidden"},children:["5",s.jsx(P,{component:"span",sx:v.design3.percentSymbol,children:"%"})," OFF"]})]})]})]}),s.jsxs(m,{children:[s.jsxs(m,{sx:v.sheetSizeHeader||{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1.5},children:[s.jsx(P,{variant:"subtitle2",fontWeight:600,children:"Sheet Size"}),s.jsx(P,{variant:"caption",color:"text.secondary",children:"Stickers per sheet: 20"})]}),s.jsx(m,{sx:v.sheetSizeGroup,children:["A2","A3","A4","A5","A7"].map(T=>s.jsx(m,{onClick:()=>g(T),sx:{...v.sheetSizeBtn,...x===T?v.sheetSizeBtnSelected:{}},children:s.jsx(P,{variant:"body2",textAlign:"center",children:T})},T))})]})]}),s.jsx(To,{sx:v.actions||{px:3,pb:2},children:s.jsx(ae,{type:"button",onClick:b,variant:"contained",sx:v.printButton,children:"Print"})})]})}if(a){const v=u.promoPrintModal;return s.jsxs(Sn,{open:e,onClose:t,maxWidth:"sm",fullWidth:!0,PaperProps:{sx:v.dialog},BackdropProps:{sx:{backdropFilter:"blur(4px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},children:[s.jsx(Cn,{children:s.jsxs(m,{sx:v.header,children:[s.jsx(P,{variant:"h6",fontWeight:600,children:"Promo Print"}),s.jsx(it,{onClick:t,size:"small",children:s.jsx(Uo,{size:20})})]})}),s.jsxs(wn,{sx:v.content,children:[s.jsxs(m,{sx:v.section,children:[s.jsx(P,{sx:v.sectionTitle,children:"Items to show"}),s.jsxs(m,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:1,columnGap:3},children:[s.jsx(Ze,{control:s.jsx(Le,{checked:d.productName,onChange:()=>f("productName"),size:"small"}),label:"Product Name",sx:v.checkboxLabel}),s.jsx(Ze,{control:s.jsx(Le,{checked:d.percentOff,onChange:()=>f("percentOff"),size:"small"}),label:"Percent OFF",sx:v.checkboxLabel}),s.jsx(Ze,{control:s.jsx(Le,{checked:d.mrp,onChange:()=>f("mrp"),size:"small"}),label:"MRP",sx:v.checkboxLabel}),s.jsx(Ze,{control:s.jsx(Le,{checked:d.discountPrice,onChange:()=>f("discountPrice"),size:"small"}),label:"Discount Price",sx:v.checkboxLabel})]})]}),s.jsxs(m,{sx:v.section,children:[s.jsx(P,{sx:v.sectionTitle,children:"Promo Design"}),s.jsxs(m,{sx:v.designContainer,children:[s.jsxs(m,{onClick:()=>y("design1"),sx:{...v.designCard.base,...h==="design1"?v.designCard.selected:v.designCard.unselected},children:[s.jsxs(m,{sx:v.design1.topSection,children:[s.jsx(P,{sx:{...v.design1.saveText,visibility:d.percentOff?"visible":"hidden"},children:"SAVE"}),s.jsxs(P,{sx:{...v.design1.percentText,visibility:d.percentOff?"visible":"hidden"},children:["5",s.jsx(P,{component:"span",sx:v.design1.percentSymbol,children:"%"})]})]}),s.jsxs(m,{sx:v.design1.bottomSection,children:[s.jsxs(m,{sx:{...v.design1.priceRow,visibility:d.discountPrice||d.mrp?"visible":"hidden"},children:[s.jsx(P,{sx:{...v.design1.priceText,...v.design1.ourPrice,visibility:d.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),s.jsx(P,{sx:{...v.design1.priceText,visibility:d.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]}),s.jsx(P,{sx:{...v.design1.productName,visibility:d.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"})]})]}),s.jsxs(m,{onClick:()=>y("design2"),sx:{...v.designCard.base,...h==="design2"?v.designCard.selected:v.designCard.unselected},children:[s.jsxs(m,{sx:v.design2.topSection,children:[s.jsxs(P,{sx:{...v.design2.percentOffText,visibility:d.percentOff?"visible":"hidden"},children:["5",s.jsx(P,{component:"span",sx:v.design2.percentSymbol,children:"%"})," OFF"]}),s.jsx(P,{sx:{...v.design2.productName,visibility:d.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"})]}),s.jsxs(m,{sx:{...v.design2.priceRow,visibility:d.discountPrice||d.mrp?"visible":"hidden"},children:[s.jsx(P,{sx:{...v.design2.priceText,visibility:d.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),s.jsx(P,{sx:{...v.design2.priceText,visibility:d.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]})]}),s.jsxs(m,{onClick:()=>y("design3"),sx:{...v.designCard.base,...h==="design3"?v.designCard.selected:v.designCard.unselected},children:[s.jsx(P,{sx:{...v.design3.productName,visibility:d.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500G COFFEE BIB"}),s.jsxs(m,{sx:{...v.design3.priceRow,visibility:d.discountPrice||d.mrp?"visible":"hidden"},children:[s.jsx(P,{sx:{...v.design3.priceText,visibility:d.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),s.jsx(P,{sx:{...v.design3.priceText,visibility:d.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]}),s.jsxs(P,{sx:{...v.design3.percentOffText,visibility:d.percentOff?"visible":"hidden"},children:["5",s.jsx(P,{component:"span",sx:v.design3.percentSymbol,children:"%"})," OFF"]})]})]})]}),s.jsxs(m,{children:[s.jsxs(m,{sx:v.sheetSizeHeader||{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1.5},children:[s.jsx(P,{variant:"subtitle2",fontWeight:600,children:"Sheet Size"}),s.jsx(P,{variant:"caption",color:"text.secondary",children:"Stickers per sheet: 20"})]}),s.jsx(m,{sx:v.sheetSizeGroup,children:["A2","A3","A4","A5","A7"].map(T=>s.jsx(m,{onClick:()=>g(T),sx:{...v.sheetSizeBtn,...x===T?v.sheetSizeBtnSelected:{}},children:s.jsx(P,{variant:"body2",textAlign:"center",children:T})},T))})]})]}),s.jsx(To,{sx:v.actions||{px:3,pb:2},children:s.jsx(ae,{type:"button",onClick:b,variant:"contained",sx:v.printButton,children:"Print"})})]})}const S=l.promoPrintModal;return s.jsxs(Sn,{open:e,onClose:t,maxWidth:"sm",fullWidth:!0,PaperProps:{sx:S.dialog},BackdropProps:{sx:{backdropFilter:"blur(4px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},children:[s.jsx(Cn,{children:s.jsxs(m,{sx:S.header,children:[s.jsx(P,{variant:"h6",fontWeight:600,children:"Promo Print"}),s.jsx(it,{onClick:t,size:"small",children:s.jsx(Uo,{size:20})})]})}),s.jsxs(wn,{sx:S.content,children:[s.jsxs(m,{sx:S.section,children:[s.jsx(P,{sx:S.sectionTitle,children:"Items to show"}),s.jsxs(m,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:1,columnGap:3},children:[s.jsx(Ze,{control:s.jsx(Le,{checked:d.productName,onChange:()=>f("productName"),size:"small"}),label:"Product Name",sx:S.checkboxLabel}),s.jsx(Ze,{control:s.jsx(Le,{checked:d.percentOff,onChange:()=>f("percentOff"),size:"small"}),label:"Percent OFF",sx:S.checkboxLabel}),s.jsx(Ze,{control:s.jsx(Le,{checked:d.mrp,onChange:()=>f("mrp"),size:"small"}),label:"MRP",sx:S.checkboxLabel}),s.jsx(Ze,{control:s.jsx(Le,{checked:d.discountPrice,onChange:()=>f("discountPrice"),size:"small"}),label:"Discount Price",sx:S.checkboxLabel})]})]}),s.jsxs(m,{sx:S.section,children:[s.jsx(P,{sx:S.sectionTitle,children:"Promo Design"}),s.jsxs(m,{sx:S.designContainer,children:[s.jsxs(m,{onClick:()=>y("design1"),sx:{...S.designCard.base,...h==="design1"?S.designCard.selected:S.designCard.unselected},children:[s.jsxs(m,{sx:S.design1.topSection,children:[s.jsx(P,{sx:{...S.design1.saveText,visibility:d.percentOff?"visible":"hidden"},children:"SAVE"}),s.jsxs(P,{sx:{...S.design1.percentText,visibility:d.percentOff?"visible":"hidden"},children:["5",s.jsx(P,{component:"span",sx:S.design1.percentSymbol,children:"%"})]})]}),s.jsxs(m,{sx:S.design1.bottomSection,children:[s.jsxs(m,{sx:{...S.design1.priceRow,visibility:d.discountPrice||d.mrp?"visible":"hidden"},children:[s.jsx(P,{sx:{...S.design1.priceText,...S.design1.ourPrice,visibility:d.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),s.jsx(P,{sx:{...S.design1.priceText,visibility:d.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]}),s.jsx(P,{sx:{...S.design1.productName,visibility:d.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"})]})]}),s.jsxs(m,{onClick:()=>y("design2"),sx:{...S.designCard.base,...h==="design2"?S.designCard.selected:S.designCard.unselected},children:[s.jsxs(m,{sx:S.design2.topSection,children:[s.jsxs(P,{sx:{...S.design2.percentOffText,visibility:d.percentOff?"visible":"hidden"},children:["5",s.jsx(P,{component:"span",sx:S.design2.percentSymbol,children:"%"})," OFF"]}),s.jsx(P,{sx:{...S.design2.productName,visibility:d.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"})]}),s.jsxs(m,{sx:{...S.design2.priceRow,visibility:d.discountPrice||d.mrp?"visible":"hidden"},children:[s.jsx(P,{sx:{...S.design2.priceText,visibility:d.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),s.jsx(P,{sx:{...S.design2.priceText,visibility:d.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]})]}),s.jsxs(m,{onClick:()=>y("design3"),sx:{...S.designCard.base,...h==="design3"?S.designCard.selected:S.designCard.unselected},children:[s.jsx(P,{sx:{...S.design3.productName,visibility:d.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500G COFFEE BIB"}),s.jsxs(m,{sx:{...S.design3.priceRow,visibility:d.discountPrice||d.mrp?"visible":"hidden"},children:[s.jsx(P,{sx:{...S.design3.priceText,visibility:d.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),s.jsx(P,{sx:{...S.design3.priceText,visibility:d.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]}),s.jsxs(P,{sx:{...S.design3.percentOffText,visibility:d.percentOff?"visible":"hidden"},children:["5",s.jsx(P,{component:"span",sx:S.design3.percentSymbol,children:"%"})," OFF"]})]})]})]}),s.jsxs(m,{children:[s.jsxs(m,{sx:S.sheetSizeHeader||{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1.5},children:[s.jsx(P,{variant:"subtitle2",fontWeight:600,children:"Sheet Size"}),s.jsx(P,{variant:"caption",color:"text.secondary",children:"Stickers per sheet: 20"})]}),s.jsx(m,{sx:S.sheetSizeGroup,children:["A2","A3","A4","A5","A7"].map(v=>s.jsx(m,{onClick:()=>g(v),sx:{...S.sheetSizeBtn,...x===v?S.sheetSizeBtnSelected:{}},children:s.jsx(P,{variant:"body2",textAlign:"center",children:v})},v))})]})]}),s.jsx(To,{sx:S.actions||{px:3,pb:2},children:s.jsx(ae,{type:"button",onClick:b,variant:"contained",sx:S.printButton,children:"Print"})})]})},yk=lt(s.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"),mk=lt(s.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");function Ec({onClose:e,selectedCount:t=3,open:r,stores:n=[]}){const[o,a]=F.useState("Christmas Super Sale 2025"),[l,c]=F.useState("company.ariaops.com/catalog/christmas-super-sale-2025"),[u,d]=F.useState("all"),[p,h]=F.useState("Unlisted"),[y,x]=F.useState(!1);return s.jsxs(Sn,{open:r,onClose:e,maxWidth:"sm",fullWidth:!0,PaperProps:{sx:{borderRadius:3,p:4}},BackdropProps:{sx:{backdropFilter:"blur(6px)",backgroundColor:"rgba(0,0,0,0.15)"}},children:[s.jsx(Cn,{children:s.jsxs(m,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[s.jsxs(P,{variant:"h6",fontWeight:600,children:["Create Catalog Of ",t," Items"]}),s.jsx(it,{onClick:e,size:"small","aria-label":"Close",children:s.jsx(yk,{})})]})}),s.jsxs(wn,{sx:{pt:1},children:[s.jsx(P,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"Catalog Name"}),s.jsx("input",{type:"text",value:o,onChange:g=>a(g.target.value),style:{width:"100%",marginBottom:16,padding:"10px 12px",fontSize:16,fontWeight:500,border:"1px solid #d1d5db",borderRadius:6,outline:"none",background:"#fff",color:"#222",boxSizing:"border-box"}}),s.jsx(P,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"Catalog Link"}),s.jsxs("div",{style:{position:"relative",marginBottom:16},children:[s.jsx("input",{type:"text",value:l,onChange:g=>c(g.target.value),style:{width:"100%",padding:"10px 36px 10px 12px",fontSize:16,fontWeight:500,border:"1px solid #d1d5db",borderRadius:6,outline:"none",background:"#f5f7fa",color:"#888",boxSizing:"border-box"}}),l&&s.jsx(Us,{color:"success",fontSize:"small",style:{position:"absolute",right:12,top:"50%",transform:"translateY(-50%)"}})]}),s.jsx(P,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"For These Stores"}),s.jsxs(m,{sx:{position:"relative",mb:3},children:[s.jsxs(m,{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:"#fff"},onClick:()=>x(g=>!g),children:[s.jsx(m,{sx:{display:"flex",alignItems:"center",mr:1},children:s.jsxs("svg",{width:"20",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("rect",{width:"20",height:"20",rx:"4",fill:"#F5F7FA"}),s.jsx("path",{d:"M7.5 8.5a2.5 2.5 0 1 1 5 0v1a2.5 2.5 0 1 1-5 0v-1Z",stroke:"#222",strokeWidth:"1.2"}),s.jsx("rect",{x:"3.5",y:"5.5",width:"13",height:"9",rx:"2.5",stroke:"#222",strokeWidth:"1.2"})]})}),s.jsx("span",{style:{fontWeight:700,color:"#222",marginRight:4},children:u==="all"?"All Stores":n.find(g=>g.id===u)?.name||"Select Store"}),s.jsx("span",{style:{color:"#888",fontWeight:400,fontSize:15,marginLeft:4},children:` ${n.filter(g=>g.id!=="all").length} stores`}),s.jsx(mk,{sx:{color:"#888",ml:"auto"}})]}),y&&s.jsx(m,{sx:{position:"absolute",left:0,right:0,top:"100%",zIndex:10,bgcolor:"#fff",border:"1px solid #e0e0e0",borderRadius:"8px",boxShadow:"0 4px 16px rgba(0,0,0,0.08)",mt:1,maxHeight:220,overflowY:"auto"},children:n.map(g=>s.jsx(m,{sx:{px:2,py:1.2,cursor:"pointer",fontWeight:u===g.id?700:400,color:u===g.id?"#222":"#444",background:u===g.id?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>{d(g.id),x(!1)},children:g.name},g.id))})]}),s.jsxs(m,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:3},children:[s.jsxs(m,{sx:{display:"flex",gap:2},children:[s.jsx(ae,{onClick:()=>h("Public"),sx:{minWidth:100,borderRadius:2,bgcolor:"#F5F5F5",color:"#454545",fontWeight:500,boxShadow:"none"},children:"Public"}),s.jsx(ae,{onClick:()=>h("Unlisted"),sx:{minWidth:100,borderRadius:2,bgcolor:"#F3F8FF",color:"#888",fontWeight:500,border:"1px solid #2D64B8"},children:"Unlisted"})]}),s.jsx(ae,{variant:"contained",color:"primary",sx:{minWidth:140,height:48,borderRadius:2,fontWeight:600,fontSize:16,boxShadow:"none"},children:"Create"})]})]})]})}const xk=({selectedProducts:e=[],stores:t=[]})=>{const[r,n]=F.useState(!1),o=We(),a=xe(o.breakpoints.down("sm")),l=xe(o.breakpoints.between("sm","md")),c=jt(),u=It(),d=Nt(),[p,h]=F.useState(!1);if(!e||e.length===0)return null;if(a){const x=u.floatingActions;return s.jsxs(s.Fragment,{children:[s.jsxs(m,{sx:x.root,"data-floating-actions":!0,children:[s.jsxs(P,{sx:x.countText,children:[e.length," items selected"]}),s.jsxs(m,{sx:x.buttonRow,children:[s.jsxs(ae,{onClick:()=>n(!0),sx:x.btn,children:[s.jsx(Lo,{size:18}),"Promo Print"]}),s.jsxs(ae,{sx:x.btn,onClick:()=>h(!0),children:[s.jsx(jo,{size:18}),"Create Catalog"]})]})]}),s.jsx(Cc,{open:r,onClose:()=>n(!1),selectedProducts:e}),p&&s.jsx(m,{sx:{position:"fixed",zIndex:1299,top:0,left:0,width:"100vw",height:"100vh",bgcolor:"rgba(255,255,255,0.4)",backdropFilter:"blur(36px)",WebkitBackdropFilter:"blur(36px)",transition:"all 0.2s"}}),s.jsx(Ec,{onClose:()=>h(!1),selectedCount:e.length,open:p,stores:t})]})}if(l){const x=d.floatingActions;return s.jsxs(s.Fragment,{children:[s.jsx(m,{sx:x.root,children:s.jsxs(m,{sx:x.inner,children:[s.jsxs(P,{sx:x.count,children:[e.length," items selected"]}),s.jsx(m,{sx:x.divider}),s.jsxs(ae,{sx:x.btn,onClick:()=>n(!0),children:[s.jsx(Lo,{size:16}),s.jsx("span",{children:"Promo Print"})]}),s.jsxs(ae,{sx:x.btn,onClick:()=>h(!0),children:[s.jsx(jo,{size:16}),s.jsx("span",{children:"Create Catalog"})]})]})}),s.jsx(Cc,{open:r,onClose:()=>n(!1),selectedProducts:e}),s.jsx(Ec,{onClose:()=>h(!1),selectedCount:e.length,open:p,stores:t})]})}const y=c.floatingActions;return s.jsxs(s.Fragment,{children:[s.jsx(m,{sx:y.root,children:s.jsxs(m,{sx:y.inner,children:[s.jsxs(P,{sx:y.count,children:[e.length," items selected"]}),s.jsxs(ae,{sx:y.btn,onClick:()=>n(!0),children:[s.jsx(Lo,{size:16}),s.jsx("span",{children:"Promo Print"})]}),s.jsxs(ae,{sx:y.btn,onClick:()=>h(!0),children:[s.jsx(jo,{size:16}),s.jsx("span",{children:"Create Catalog"})]})]})}),s.jsx(Cc,{open:r,onClose:()=>n(!1),selectedProducts:e}),s.jsx(Ec,{onClose:()=>h(!1),selectedCount:e.length,open:p,stores:t})]})},Qh=[{key:"storeId",label:"Store ID",type:"number"},{key:"productId",label:"Product ID",type:"number"},{key:"categoryId",label:"Category ID",type:"number"},{key:"status",label:"Status",type:"boolean"},{key:"minPrice",label:"Min Price",type:"number"},{key:"maxPrice",label:"Max Price",type:"number"},{key:"inStock",label:"In Stock",type:"boolean"}];function vk({open:e,filters:t,onChange:r,onClose:n,onApply:o}){const a=(l,c)=>{let u=c;const d=Qh.find(p=>p.key===l);d&&d.type==="number"&&(u=c===""?void 0:Number(c)),d&&d.type==="boolean"&&(u=!!c),r({...t,[l]:u})};return s.jsxs(Sn,{open:e,onClose:n,maxWidth:"xs",fullWidth:!0,children:[s.jsx(Cn,{children:"Filter Products"}),s.jsx(wn,{children:s.jsx(m,{display:"flex",flexDirection:"column",gap:2,children:Qh.map(l=>s.jsx(m,{children:l.type==="boolean"?s.jsx(Ze,{control:s.jsx(Le,{checked:!!t[l.key],onChange:c=>a(l.key,c.target.checked)}),label:l.label}):s.jsx($o,{label:l.label,type:"number",value:t[l.key]||"",onChange:c=>a(l.key,c.target.value),fullWidth:!0,size:"small"})},l.key))})}),s.jsxs(To,{children:[s.jsx(ae,{onClick:n,children:"Cancel"}),s.jsx(ae,{variant:"contained",onClick:o,children:"Apply"})]})]})}function Sk({StoresModal:e,storesModalProps:t,onStoreSelect:r}){const n=jt(),o=Et(),a=o.state?.filters||{category:"",status:"",search:"",store:[]},[l,c]=F.useState([]),[u,d]=F.useState(!0),[p,h]=F.useState(a),[y,x]=F.useState(!1),[g,f]=F.useState(p),b=Tt(D=>D.products),{productIds:S=[],productsById:v={},loading:T}=b||{};console.log(S,"productIds we get at page");const C=Or();F.useEffect(()=>{C(tn())},[C]),F.useEffect(()=>{o.state?.filters&&setTimeout(()=>{h(o.state.filters)},0)},[o.state]),F.useEffect(()=>{if(!Array.isArray(S)||!v||typeof c!="function")return;const D=()=>{try{if(S&&S.length>0){let q=S.map(H=>v&&v[H]).filter(H=>H&&H.id);p&&p.storeId?q=q.filter(H=>H&&String(H.storeId)===String(p.storeId)):p&&p.store&&Array.isArray(p.store)&&!p.store.includes("all")&&(q=q.filter(H=>H&&p.store.includes(String(H.storeId)))),c(q),d(!1)}else c([]),d(typeof T=="boolean"?T:!1)}catch(q){console.error("Error updating products:",q),c([]),d(!1)}};typeof requestAnimationFrame=="function"?requestAnimationFrame(D):D()},[S,T,p,v]);const E=D=>{h(D)},w=()=>{f(p),x(!0)},[I,z]=F.useState([]),_=D=>{z(q=>q.includes(D)?q.filter(H=>H!==D):[...q,D])},N=l.filter(D=>I.includes(D.id)),L={};Object.values(v).forEach(D=>{D.storeId&&D.storeName&&(L[D.storeId]=D.storeName)});const O=[{id:"all",name:"All Stores"},...Object.entries(L).map(([D,q])=>({id:D,name:q}))],M=Array.isArray(p.store)?p.store:[],A=M.length===0||M.includes("all")||M.length>1,$=o.state&&o.state.tenantStatus||{matched:!0};return s.jsxs("div",{className:"app-container",children:[s.jsx(kn,{styles:n,onFilterChange:E,filters:p,stores:O,onOpenFilterModal:w,StoresModal:e,storesModalProps:t,onStoreSelect:r,showBackButton:!0,tenantStatus:$}),s.jsxs("div",{className:"product-main-container",children:[l.length>0&&s.jsx(gk,{products:l,styles:n}),s.jsx(ck,{products:l,loading:u,selectedProducts:I,onToggleProduct:_,styles:n,showLimitedColumns:A})]}),s.jsx(xk,{selectedProducts:N,stores:O}),s.jsx(vk,{open:y,filters:g,onChange:f,onClose:()=>x(!1),onApply:()=>{h(g),x(!1)}})]})}const wk=()=>{const e=yt(),t=jt(),[r,n]=F.useState({search:"",store:[],category:"all",status:"all"}),o=p=>n(p),[a,l]=F.useState(new Date);F.useEffect(()=>{const p=setInterval(()=>{l(new Date)},6e4);return()=>clearInterval(p)},[]);const c=a.toLocaleString("en-US",{month:"short"}).toUpperCase(),u=a.getDate(),d=a.toLocaleString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0});return s.jsxs(s.Fragment,{children:[s.jsx(kn,{styles:t.topBar,filters:r,onFilterChange:o,stores:[],hideViewSwitch:!0,isHomeDefault:!0}),s.jsxs(m,{sx:{p:4,bgcolor:"#f7f8fa",minHeight:"100vh"},children:[s.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:3,mb:3},children:[s.jsx(Zt,{sx:{minWidth:80,bgcolor:"#f7f8fa",boxShadow:0,borderRadius:2,textAlign:"center",p:1},children:s.jsxs(dh,{sx:{p:1},children:[s.jsx(P,{variant:"body2",color:"text.secondary",children:c}),s.jsx(P,{variant:"h6",fontWeight:400,color:"#000000",children:u}),s.jsx(P,{variant:"caption",color:"text.secondary",children:d})]})}),s.jsxs(m,{children:[s.jsxs(P,{variant:"h6",fontWeight:700,children:["Hi Ashok ",s.jsx("span",{role:"img","aria-label":"wave",children:"👋"})]}),s.jsx(P,{variant:"body2",color:"text.secondary",children:"You have 3 new updates"})]})]}),s.jsx(m,{sx:{mt:2},children:s.jsxs(Zt,{sx:{borderRadius:2,boxShadow:0,p:2,mb:2,maxWidth:520},children:[s.jsxs(m,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:2},children:[s.jsxs(P,{variant:"h6",fontWeight:700,children:["Products ",s.jsx("span",{style:{fontWeight:400,fontSize:"16px",color:"#888"},children:"234"})]}),s.jsxs(P,{variant:"body2",marginRight:10,color:"#4a90e2",sx:{cursor:"pointer"},onClick:()=>e("/categories"),children:["Report ",">"]})]}),s.jsxs(m,{sx:{display:"flex",gap:2},children:[s.jsxs(Zt,{sx:{flex:1,border:"1px solid #F1F1F1",bgcolor:"#FFFFFF",borderRadius:2,boxShadow:0,p:2},children:[s.jsx(P,{variant:"body2",color:"#454545",children:"Active Products"}),s.jsx(P,{variant:"h6",fontWeight:700,children:"234"}),s.jsx(P,{variant:"caption",color:"text.secondary",children:"Sync 4h ago"})]}),s.jsxs(Zt,{sx:{flex:1,border:"1px solid #F1F1F1",bgcolor:"#FFFFFF",borderRadius:2,boxShadow:0,p:2},children:[s.jsx(P,{variant:"body2",color:"#454545",children:"Active Catalogs"}),s.jsx(P,{variant:"h6",fontWeight:700,children:"34"}),s.jsx(P,{variant:"caption",color:"text.secondary",children:"4 public links"})]}),s.jsxs(Zt,{sx:{flex:1,border:"1px solid #F1F1F1",bgcolor:"#FFFFFF",borderRadius:2,boxShadow:0,p:2},children:[s.jsx(P,{variant:"body2",color:"#454545",sx:{mb:0},children:"On Shelf Yesterday"}),s.jsxs(P,{variant:"h6",fontWeight:700,sx:{mb:.5},children:["78%",s.jsx(P,{component:"span",variant:"caption",color:"text.secondary",sx:{ml:.5,fontWeight:400},children:"78K/100K"})]}),s.jsx(P,{variant:"caption",color:"error",children:"22% missing"})]})]})]})})]})]})},Ck=lt(s.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle"),Ek=lt(s.jsx("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link"),Tk=[{name:"Bakery",products:45,stock:"4500/5,600",osa:"96% on shelf",updated:"2 days ago",images:["https://www.bbassets.com/media/uploads/p/l/40091805_5-britannia-atta-bread.jpg","https://www.bbassets.com/media/uploads/p/l/40091805_5-britannia-atta-bread.jpg","https://www.bbassets.com/media/uploads/p/l/40091805_5-britannia-atta-bread.jpg","https://www.bbassets.com/media/uploads/p/l/40091805_5-britannia-atta-bread.jpg","https://www.bbassets.com/media/uploads/p/l/40091805_5-britannia-atta-bread.jpg"]},{name:"Biscuits",products:45,stock:"4500/5,600",osa:"96% on shelf",updated:"2 days ago",images:["https://www.bbassets.com/media/uploads/p/l/40283779_10-cadbury-chocobakes-choco-chip-cookies-delicious-treat.jpg","https://www.bbassets.com/media/uploads/p/l/40283779_10-cadbury-chocobakes-choco-chip-cookies-delicious-treat.jpg","https://www.bbassets.com/media/uploads/p/l/40283779_10-cadbury-chocobakes-choco-chip-cookies-delicious-treat.jpg","https://www.bbassets.com/media/uploads/p/l/40283779_10-cadbury-chocobakes-choco-chip-cookies-delicious-treat.jpg","https://www.bbassets.com/media/uploads/p/l/40283779_10-cadbury-chocobakes-choco-chip-cookies-delicious-treat.jpg"]},{name:"Drinks",products:45,stock:"20/5,600",osa:"5% on shelf",updated:"2 days ago",images:["https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQ2mbJAPrKlGS8rCZETNr0ZPaOq0XcV1o2FG2jeOeN95W7nu3FL","https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQ2mbJAPrKlGS8rCZETNr0ZPaOq0XcV1o2FG2jeOeN95W7nu3FL","https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQ2mbJAPrKlGS8rCZETNr0ZPaOq0XcV1o2FG2jeOeN95W7nu3FL","https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQ2mbJAPrKlGS8rCZETNr0ZPaOq0XcV1o2FG2jeOeN95W7nu3FL","https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQ2mbJAPrKlGS8rCZETNr0ZPaOq0XcV1o2FG2jeOeN95W7nu3FL"]},{name:"Pulses",products:45,stock:"4500/5,600",osa:"96% on shelf",updated:"2 days ago",images:["https://m.media-amazon.com/images/I/41fbvIDRYXL._SY300_SX300_QL70_FMwebp_.jpg","https://m.media-amazon.com/images/I/41fbvIDRYXL._SY300_SX300_QL70_FMwebp_.jpg","https://m.media-amazon.com/images/I/41fbvIDRYXL._SY300_SX300_QL70_FMwebp_.jpg","https://m.media-amazon.com/images/I/41fbvIDRYXL._SY300_SX300_QL70_FMwebp_.jpg","https://m.media-amazon.com/images/I/41fbvIDRYXL._SY300_SX300_QL70_FMwebp_.jpg"]},{name:"Snacks",products:45,stock:"4500/5,600",osa:"96% on shelf",updated:"2 days ago",images:["https://images-eu.ssl-images-amazon.com/images/I/81oQOYKZHxL._AC_UL900_SR615,900_.jpg","https://images-eu.ssl-images-amazon.com/images/I/81oQOYKZHxL._AC_UL900_SR615,900_.jpg","https://images-eu.ssl-images-amazon.com/images/I/81oQOYKZHxL._AC_UL900_SR615,900_.jpg","https://images-eu.ssl-images-amazon.com/images/I/81oQOYKZHxL._AC_UL900_SR615,900_.jpg","https://images-eu.ssl-images-amazon.com/images/I/81oQOYKZHxL._AC_UL900_SR615,900_.jpg"]}],kk=()=>{const e=jt(),t=It(),r=Nt(),n=window.innerWidth<600,o=window.innerWidth>=600&&window.innerWidth<1024,a=n?t.categoriesView:o?r.categoriesView:e.categoriesView,[l,c]=F.useState({category:"all",status:"all",search:"",store:[]}),u=Or(),d=Tt(g=>g.products),{productsById:p={}}=d||{};F.useEffect(()=>{u(tn())},[u]);const h={};Object.values(p).forEach(g=>{g.storeId&&g.storeName&&(h[g.storeId]=g.storeName)});const y=[{id:"all",name:"All Stores"},...Object.entries(h).map(([g,f])=>({id:g,name:f}))],x=g=>{c(g)};return s.jsxs(s.Fragment,{children:[s.jsx(kn,{filters:l,onFilterChange:x,styles:a.topBar,stores:y}),s.jsxs(m,{sx:a.root,children:[s.jsxs(m,{sx:{display:"flex",gap:2,mb:3},children:[s.jsxs(Zt,{sx:{flex:1,bgcolor:"#fff",borderRadius:3,boxShadow:"0 2px 8px #e0e0e0",p:2.5,minWidth:220},children:[s.jsxs(m,{sx:{display:"flex",alignItems:"center",mb:1},children:[s.jsxs(m,{sx:{flex:1,textAlign:"center"},children:[s.jsx(P,{variant:"body2",color:"text.secondary",children:"Categories"}),s.jsx(P,{variant:"h5",fontWeight:500,children:"45"})]}),s.jsx($e,{orientation:"vertical",flexItem:!0,sx:{mx:2}}),s.jsxs(m,{sx:{flex:1,textAlign:"center"},children:[s.jsx(P,{variant:"body2",color:"text.secondary",children:"Products"}),s.jsx(P,{variant:"h5",fontWeight:500,children:"234"})]})]}),s.jsx($e,{}),s.jsxs(m,{sx:{display:"flex",alignItems:"center",mt:1},children:[s.jsxs(m,{sx:{display:"flex",alignItems:"center",flex:1},children:[s.jsx(Ck,{sx:{color:"#22c55e",fontSize:18,mr:.5}}),s.jsx(P,{variant:"caption",color:"text.secondary",children:"Sync 4h ago"})]}),s.jsx(ae,{variant:"text",size:"small",sx:{color:"#2563eb",textTransform:"none",fontWeight:500,minWidth:0,p:0},children:"History >"})]})]}),s.jsxs(Zt,{sx:{flex:1,bgcolor:"#fff",borderRadius:3,boxShadow:"0 2px 8px #e0e0e0",p:2.5,minWidth:220},children:[s.jsxs(m,{sx:{textAlign:"center",mb:1},children:[s.jsx(P,{variant:"body2",color:"text.secondary",children:"Active Catalogs"}),s.jsx(P,{variant:"h5",fontWeight:500,children:"34"})]}),s.jsx($e,{}),s.jsxs(m,{sx:{display:"flex",alignItems:"center",mt:1},children:[s.jsxs(m,{sx:{display:"flex",alignItems:"center",flex:1},children:[s.jsx(Ek,{sx:{color:"#2563eb",fontSize:18,mr:.5}}),s.jsx(P,{variant:"caption",color:"text.secondary",children:"4 public links"})]}),s.jsx(ae,{variant:"text",size:"small",sx:{color:"#2563eb",textTransform:"none",fontWeight:500,minWidth:0,p:0},children:"Manage >"})]})]}),s.jsxs(Zt,{sx:{flex:1,bgcolor:"#fff",borderRadius:3,boxShadow:"0 2px 8px #e0e0e0",p:2.5,minWidth:220},children:[s.jsxs(m,{sx:{textAlign:"center",mb:1},children:[s.jsx(P,{variant:"body2",color:"text.secondary",children:"On Shelf Yesterday"}),s.jsx(P,{variant:"h5",fontWeight:500,children:"78%"}),s.jsx(P,{variant:"caption",color:"text.secondary",children:"78/100X"})]}),s.jsx($e,{}),s.jsxs(m,{sx:{display:"flex",alignItems:"center",mt:1},children:[s.jsx(m,{sx:{flex:1},children:s.jsx(P,{variant:"caption",color:"#ef4444",fontWeight:500,children:"22% missing"})}),s.jsx(ae,{variant:"text",size:"small",sx:{color:"#2563eb",textTransform:"none",fontWeight:500,minWidth:0,p:0},children:"Report >"})]})]})]}),s.jsxs(Zt,{sx:a.categoryTable,children:[s.jsxs(m,{sx:a.categoryTableHeader,children:[s.jsx(m,{sx:a.categoryTableHeaderCell,children:"Category"}),s.jsx(m,{sx:a.categoryTableHeaderCell,children:"Stock / OSA"}),s.jsx(m,{sx:a.categoryTableHeaderCell,children:"Products"}),s.jsx(m,{sx:a.categoryTableHeaderCell})]}),Tk.map((g,f)=>s.jsxs(m,{sx:a.categoryTableRow(f),children:[s.jsxs(m,{sx:a.categoryNameCell,children:[s.jsx(P,{sx:a.categoryName,children:g.name}),s.jsxs(P,{sx:a.categoryProducts,children:[g.products," Products"]}),s.jsxs(P,{sx:a.categoryUpdated,children:["Updated ",g.updated]})]}),s.jsxs(m,{sx:a.categoryStockCell,children:[s.jsx(P,{sx:a.categoryStock(f),children:g.stock}),s.jsx(P,{sx:a.categoryOSA(f),children:g.osa})]}),s.jsx(m,{sx:a.categoryImagesCell,children:g.images.map((b,S)=>s.jsx(ql,{src:b,alt:g.name+" product",sx:a.categoryImage},S))}),s.jsx(m,{sx:a.categoryViewCell,children:s.jsx(ae,{variant:"contained",color:"primary",sx:a.categoryViewButton,children:"View"})})]},g.name))]})]})]})},Ve=({breadcrumbRight:e="Settings",onBack:t,breadcrumbs:r})=>{const n=We(),o=xe(n.breakpoints.down("sm")),a=xe(n.breakpoints.between("sm","md")),l=jt(),c=It(),u=Nt(),d=(p=15)=>!r||!Array.isArray(r)||r.length===0?null:s.jsx(m,{sx:{display:"flex",alignItems:"center"},children:r.map((h,y)=>s.jsxs(F.Fragment,{children:[y>0&&s.jsx(rr,{size:p-2,color:"#bbb",style:{margin:"0 7px"}}),s.jsx(P,{sx:{color:y===r.length-1?"#111":"#888",fontWeight:y===r.length-1?700:500,fontSize:p},children:h.label})]},h.label))});if(!o&&!a){const p=l;return s.jsxs(m,{sx:p.settingTopbar?.root||{display:"flex",alignItems:"center",justifyContent:"space-between",background:"#fff",minHeight:56,px:2,borderBottom:"1px solid #eee",mb:0},children:[s.jsxs(m,{sx:{display:"flex",alignItems:"center"},children:[s.jsxs(m,{onClick:t,sx:{display:"flex",alignItems:"center",cursor:"pointer",mr:2},children:[s.jsx(vc,{size:18}),s.jsx(P,{sx:{ml:1,color:"#888",fontWeight:500},children:"Back"})]}),s.jsx($e,{orientation:"vertical",flexItem:!0,sx:{mx:2,height:24}}),r&&r.length>0?d(16):s.jsxs(s.Fragment,{children:[s.jsx(P,{sx:{color:"#888",fontWeight:500,mr:1},children:"Products"}),s.jsx(rr,{size:16,color:"#bbb",style:{margin:"0 8px"}}),s.jsx(P,{sx:{fontWeight:600},children:e})]})]}),s.jsxs(m,{sx:{display:"flex",alignItems:"center"},children:[s.jsx($e,{orientation:"vertical",flexItem:!0,sx:{height:24,mx:3}}),s.jsx(it,{size:"small",sx:{color:"#888",mx:1},children:s.jsx(mc,{size:20})}),s.jsx(m,{sx:{width:30,height:30,bgcolor:"#1976d2",borderRadius:"30%",display:"flex",alignItems:"center",justifyContent:"center",ml:1},children:s.jsx(hr,{size:16,color:"#fff"})})]})]})}if(o){const p=c;return s.jsxs(m,{sx:p.settingTopbar?.root||{display:"flex",alignItems:"center",justifyContent:"space-between",background:"#fff",minHeight:48,px:1.5,borderBottom:"1px solid #eee",mb:0},children:[s.jsxs(m,{sx:{display:"flex",alignItems:"center"},children:[s.jsxs(m,{onClick:t,sx:{display:"flex",alignItems:"center",cursor:"pointer",mr:1},children:[s.jsx(vc,{size:16}),s.jsx(P,{sx:{ml:.5,color:"#888",fontWeight:500,fontSize:14},children:"Back"})]}),s.jsx($e,{orientation:"vertical",flexItem:!0,sx:{mx:1,height:20}}),r&&r.length>0?d(14):s.jsxs(s.Fragment,{children:[s.jsx(P,{sx:{color:"#888",fontWeight:500,mr:.5,fontSize:13},children:"Products"}),s.jsx(rr,{size:14,color:"#bbb",style:{margin:"0 6px"}}),s.jsx(P,{sx:{fontWeight:600,fontSize:14},children:e})]})]}),s.jsxs(m,{sx:{display:"flex",alignItems:"center"},children:[s.jsx($e,{orientation:"vertical",flexItem:!0,sx:{height:20,mx:1}}),s.jsx(it,{size:"small",sx:{color:"#888"},children:s.jsx(mc,{size:18})}),s.jsx(m,{sx:{width:30,height:30,bgcolor:"#1976d2",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",ml:1},children:s.jsx(hr,{size:14,color:"#fff"})})]})]})}if(a){const p=u;return s.jsxs(m,{sx:p.settingTopbar?.root||{display:"flex",alignItems:"center",justifyContent:"space-between",background:"#fff",minHeight:52,px:2,borderBottom:"1px solid #eee",mb:0},children:[s.jsxs(m,{sx:{display:"flex",alignItems:"center"},children:[s.jsxs(m,{onClick:t,sx:{display:"flex",alignItems:"center",cursor:"pointer",mr:1.5},children:[s.jsx(vc,{size:17}),s.jsx(P,{sx:{ml:.8,color:"#888",fontWeight:500,fontSize:15},children:"Back"})]}),s.jsx($e,{orientation:"vertical",flexItem:!0,sx:{mx:1.5,height:22}}),r&&r.length>0?d(15):s.jsxs(s.Fragment,{children:[s.jsx(P,{sx:{color:"#888",fontWeight:500,mr:.8,fontSize:14},children:"Products"}),s.jsx(rr,{size:15,color:"#bbb",style:{margin:"0 7px"}}),s.jsx(P,{sx:{fontWeight:600,fontSize:15},children:e})]})]}),s.jsxs(m,{sx:{display:"flex",alignItems:"center"},children:[s.jsx($e,{orientation:"vertical",flexItem:!0,sx:{height:22,mx:1.5}}),s.jsx(it,{size:"small",sx:{color:"#888"},children:s.jsx(mc,{size:19})}),s.jsx(m,{sx:{width:34,height:34,bgcolor:"#1976d2",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",ml:1},children:s.jsx(hr,{size:15,color:"#fff"})})]})]})}};function Tc({open:e,onClose:t,onSave:r}){const n=We(),o=xe(n.breakpoints.down("sm")),a=xe(n.breakpoints.between("sm","md")),l=jt(),c=It(),u=Nt(),[d,p]=F.useState("sftp"),h=[{value:"sftp",label:"SFTP"},{value:"webhook",label:"Webhook"},{value:"aira-api",label:"AIRA API"},{value:"file-upload",label:"File Upload"}],y=b=>p(b.target.value),x=()=>{r&&r(d),t()},g=()=>{};if(o){const b=c.productSettingModal;return s.jsx(vn,{open:e,onClose:t,"aria-labelledby":"product-sync-setting-modal",sx:b.modal,children:s.jsxs(m,{sx:b.container,children:[s.jsxs(m,{sx:b.header,children:[s.jsx(P,{sx:b.headerTitle,children:"Sync Method"}),s.jsx(it,{onClick:t,size:"small",sx:b.closeButton,children:s.jsx(wc,{size:18})})]}),s.jsxs(m,{sx:b.content,children:[s.jsx(zs,{value:d,onChange:y,children:h.map(S=>s.jsx(Ze,{value:S.value,control:s.jsx(Ds,{icon:s.jsx(m,{sx:b.radioIcon}),checkedIcon:s.jsx(xc,{size:16,color:"#000"}),sx:b.radioChecked}),label:s.jsx(P,{sx:b.radioLabel,children:S.label}),sx:{...b.formControlLabel,...d===S.value&&{backgroundColor:"#F3F8FF"}}},S.value))}),s.jsxs(m,{sx:b.upgradeSection,children:[s.jsx(P,{sx:b.upgradeText,children:"Upgrade for higher sync limits and more features"}),s.jsx(P,{onClick:g,sx:b.managePlanLink,children:"Manage Plan >"})]})]}),s.jsx(m,{sx:b.footer,children:s.jsx(ae,{fullWidth:!0,variant:"contained",onClick:x,sx:b.saveButton,children:"Save"})})]})})}if(a){const b=u.productSettingModal;return s.jsx(vn,{open:e,onClose:t,"aria-labelledby":"product-sync-setting-modal",sx:b.modal,children:s.jsxs(m,{sx:b.container,children:[s.jsxs(m,{sx:b.header,children:[s.jsx(P,{sx:b.headerTitle,children:"Sync Method"}),s.jsx(it,{onClick:t,size:"small",sx:b.closeButton,children:s.jsx(wc,{size:20})})]}),s.jsxs(m,{sx:b.content,children:[s.jsx(zs,{value:d,onChange:y,children:h.map(S=>s.jsx(Ze,{value:S.value,control:s.jsx(Ds,{icon:s.jsx(m,{sx:b.radioIcon}),checkedIcon:s.jsx(xc,{size:18,color:"#000"}),sx:b.radioChecked}),label:s.jsx(P,{sx:b.radioLabel,children:S.label}),sx:{...b.formControlLabel,...d===S.value&&{backgroundColor:"#F3F8FF"}}},S.value))}),s.jsxs(m,{sx:b.upgradeSection,children:[s.jsx(P,{sx:b.upgradeText,children:"Upgrade for higher sync limits and more features"}),s.jsx(P,{onClick:g,sx:b.managePlanLink,children:"Manage Plan >"})]})]}),s.jsx(m,{sx:b.footer,children:s.jsx(ae,{fullWidth:!0,variant:"contained",onClick:x,sx:b.saveButton,children:"Save"})})]})})}const f=l.productSettingModal;return s.jsx(vn,{open:e,onClose:t,"aria-labelledby":"product-sync-setting-modal",sx:f.modal,children:s.jsxs(m,{sx:f.container,children:[s.jsxs(m,{sx:f.header,children:[s.jsx(P,{sx:f.headerTitle,children:"Sync Method"}),s.jsx(it,{onClick:t,size:"small",sx:f.closeButton,children:s.jsx(wc,{size:20})})]}),s.jsxs(m,{sx:f.content,children:[s.jsx(zs,{value:d,onChange:y,children:h.map(b=>s.jsx(Ze,{value:b.value,control:s.jsx(Ds,{icon:s.jsx(m,{sx:f.radioIcon}),checkedIcon:s.jsx(xc,{size:18,color:"#000"}),sx:f.radioChecked}),label:s.jsx(P,{sx:f.radioLabel,children:b.label}),sx:{...f.formControlLabel,...d===b.value&&{backgroundColor:"#F3F8FF"}}},b.value))}),s.jsxs(m,{sx:f.upgradeSection,children:[s.jsx(P,{sx:f.upgradeText,children:"Upgrade for higher sync limits and more features"}),s.jsx(P,{onClick:g,sx:f.managePlanLink,children:"Manage Plan >"})]})]}),s.jsx(m,{sx:f.footer,children:s.jsx(ae,{fullWidth:!0,variant:"contained",onClick:x,sx:f.saveButton,children:"Save"})})]})})}const Hs={sftp:"SFTP",webhook:"Webhook","aira-api":"AIRA API","file-upload":"File Upload"};function Ok({syncMethod:e,onBack:t}){const[r,n]=F.useState(null),[o,a]=F.useState(e||null),l=We(),c=xe(l.breakpoints.down("sm")),u=xe(l.breakpoints.between("sm","md")),d=jt(),p=Nt(),h=It(),y=yt(),x=Et(),{tenantId:g}=Ai(),f=4,b=!0,S=x.state?.tenantIntegrationData||null,[v,T]=F.useState(S),C=!!(x.state&&x.state.fromSettingsIcon===!0);F.useEffect(()=>{!S&&g&&Ha(g).then(N=>{if(N.status&&Array.isArray(N.data)&&N.data.length>0){const L=N.data[0];T(L)}}).catch(N=>{console.error("Failed to fetch tenant integrations:",N)})},[g,S]);const E=N=>{if(N==="-")return"-";const[L,O]=N.split(":"),M=parseInt(L,10),A=M>=12?"PM":"AM";return`${M===0?12:M>12?M-12:M}:${O} ${A}`},w=v?.configs?.sync_frequency||"-",I=v?.configs?.sync_time||"-",z=E(I);F.useEffect(()=>{if(!e){const N=localStorage.getItem("selectedSyncMethod");N&&a(N)}},[e]);const _=()=>{t?t():y("/settings")};if(!c&&!u){const N=d.productsyncsetting;return s.jsxs(m,{sx:N.wrapper,children:[s.jsx(Ve,{breadcrumbRight:"Settings",onBack:_}),s.jsxs(m,{sx:N.section,children:[s.jsxs(P,{sx:N.sectionTitle,children:["General ",s.jsx("span",{style:N.sectionCount,children:"2"})]}),s.jsxs(m,{sx:{...N.card,...r==="catalogs"&&{bgcolor:"#f3f8ff",border:"1.5px solid #2D64B8"},"&:hover":{bgcolor:"#f5faff",border:"1.5px solid #1976D2"},cursor:"pointer"},onClick:()=>n("catalogs"),children:[s.jsxs(m,{sx:N.cardLeft,children:[s.jsx(qr,{size:20}),s.jsxs(m,{children:[s.jsx(P,{sx:N.cardTitle,children:"Manage Shared Catalogs"}),s.jsxs(P,{sx:N.cardSubtitle,children:[f," shared"]})]})]}),s.jsx(Wt,{size:18})]}),s.jsxs(m,{sx:{...N.card,...r==="ai"&&{bgcolor:"#f3f8ff",border:"1.5px solid #2D64B8"},"&:hover":{bgcolor:"#f5faff",border:"1.5px solid #1976D2"},cursor:"pointer"},onClick:()=>n("ai"),children:[s.jsxs(m,{sx:N.cardLeft,children:[s.jsx(hr,{size:20}),s.jsxs(m,{children:[s.jsx(P,{sx:N.cardTitle,children:"Aira AI"}),s.jsx(P,{sx:N.cardSubtitle,children:"Make your workflows faster and smarter"})]})]}),s.jsx(Ur,{checked:b})]})]}),C?s.jsxs(m,{sx:{maxWidth:530,mx:"auto",mb:3,mt:3,bgcolor:"#F8F9FA",p:3,borderRadius:2},children:[s.jsxs(m,{sx:{display:"flex",alignItems:"center",mb:1},children:[s.jsx(P,{sx:{fontWeight:700,fontSize:16,color:"#222"},children:"Sync"}),s.jsx(P,{sx:{color:"#bdbdbd",fontWeight:400,fontSize:14,ml:1},children:"2"}),s.jsx(m,{sx:{flex:1}}),s.jsx(P,{sx:{color:"#1976d2",fontWeight:500,fontSize:15,cursor:"pointer"},children:"Sync Now"})]}),s.jsxs(m,{sx:{background:"#fff",borderRadius:2,boxShadow:"0 1px 4px #0001",border:"1px solid #e6eaf1",display:"flex",alignItems:"center",px:2.5,py:1.5,mb:2,minHeight:60,opacity:.5,pointerEvents:"none"},children:[s.jsx(m,{sx:{display:"flex",alignItems:"center",mr:2},children:s.jsx(st,{size:20,color:"#888"})}),s.jsxs(m,{sx:{flex:1},children:[s.jsx(P,{sx:{fontWeight:700,fontSize:16,color:"#222",lineHeight:1},children:"Sync Method"}),s.jsx(P,{sx:{color:"#888",fontSize:14,fontWeight:400,mt:.5,lineHeight:1},children:Hs[o]||""})]}),s.jsx(Wt,{size:20,color:"#e0e0e0"})]}),s.jsxs(m,{sx:{background:"#fff",borderRadius:2,boxShadow:"0 1px 4px #0001",border:"1px solid #e6eaf1",display:"flex",alignItems:"center",px:2.5,py:1.5,mb:2,minHeight:60,cursor:"pointer",transition:"background 0.2s, border 0.2s","&:hover":{background:"#f3f8ff",border:"1.5px solid #2D64B8"}},onClick:()=>y("/ftp-sync",{state:{tenantIntegrationData:v}}),children:[s.jsx(m,{sx:{display:"flex",alignItems:"center",mr:2},children:s.jsx(qr,{size:20,color:"#888"})}),s.jsxs(m,{sx:{flex:1},children:[s.jsx(P,{sx:{fontWeight:700,fontSize:16,color:"#222",lineHeight:1.2},children:"FTP Details"}),s.jsx(P,{sx:{color:"#888",fontSize:14,fontWeight:400,mt:.5,lineHeight:1.3},children:"Sync source"})]}),s.jsx(Wt,{size:20,color:"#999"})]}),s.jsxs(m,{sx:{display:"flex",gap:2,mb:2},children:[s.jsxs(m,{sx:{background:"#fff",borderRadius:2,boxShadow:"0 1px 4px #0001",border:"1px solid #e6eaf1",flex:1,display:"flex",alignItems:"center",px:2.5,py:1.5,minHeight:60,cursor:"pointer",transition:"background 0.2s, border 0.2s","&:hover":{background:"#f3f8ff",border:"1.5px solid #2D64B8"}},onClick:()=>y("/ftp-sync-3",{state:{editMode:!0,tenantIntegrationData:v}}),children:[s.jsx(m,{sx:{display:"flex",alignItems:"center",mr:2},children:s.jsx(st,{size:20,color:"#888"})}),s.jsxs(m,{children:[s.jsx(P,{sx:{fontWeight:700,fontSize:16,color:"#222",lineHeight:1.2},children:"Sync Frequency"}),s.jsx(P,{sx:{color:"#888",fontSize:14,fontWeight:400,mt:.5,lineHeight:1.3},children:w})]})]}),s.jsxs(m,{sx:{background:"#fff",borderRadius:2,boxShadow:"0 1px 4px #0001",border:"1px solid #e6eaf1",flex:1,display:"flex",alignItems:"center",px:2.5,py:1.5,minHeight:60,cursor:"pointer",transition:"background 0.2s, border 0.2s","&:hover":{background:"#f3f8ff",border:"1.5px solid #2D64B8"}},onClick:()=>y("/ftp-sync-3",{state:{editMode:!0,tenantIntegrationData:v}}),children:[s.jsx(m,{sx:{display:"flex",alignItems:"center",mr:2},children:s.jsx(st,{size:20,color:"#888"})}),s.jsxs(m,{children:[s.jsx(P,{sx:{fontWeight:700,fontSize:16,color:"#222",lineHeight:1.2},children:"Sync Time"}),s.jsx(P,{sx:{color:"#888",fontSize:14,fontWeight:400,mt:.5,lineHeight:1.3},children:z})]})]})]}),s.jsxs(m,{sx:{background:"#fff",borderRadius:2,boxShadow:"0 1px 4px #0001",border:"1px solid #e6eaf1",display:"flex",alignItems:"center",px:2.5,py:1.5,minHeight:60,cursor:"pointer",transition:"background 0.2s, border 0.2s","&:hover":{background:"#f3f8ff",border:"1.5px solid #2D64B8"}},children:[s.jsx(m,{sx:{display:"flex",alignItems:"center",mr:2},children:s.jsx(st,{size:20,color:"#888"})}),s.jsxs(m,{children:[s.jsx(P,{sx:{fontWeight:700,fontSize:16,color:"#222",lineHeight:1.2},children:"Sync History"}),s.jsx(P,{sx:{color:"#888",fontSize:14,fontWeight:400,mt:.5,lineHeight:1.3},children:"12,139 items"})]})]})]}):s.jsxs(m,{sx:N.section,children:[s.jsxs(P,{sx:N.sectionTitle,children:["Sync ",s.jsx("span",{style:N.sectionCount,children:"2"})]}),s.jsxs(m,{sx:{...N.card,...r==="product-sync-setting"&&{bgcolor:"#f3f8ff",border:"1.5px solid #2D64B8"},"&:hover":{bgcolor:"#f5faff",border:"1.5px solid #1976D2"},cursor:"pointer"},onClick:()=>n("product-sync-setting"),children:[s.jsxs(m,{sx:N.cardLeft,children:[s.jsx(st,{size:20}),s.jsxs(m,{children:[s.jsx(P,{sx:N.cardTitle,children:"Sync Method"}),s.jsx(P,{sx:N.cardSubtitle,children:Hs[o]||"N/A"})]})]}),s.jsx(Wt,{size:18})]}),o&&s.jsxs(m,{sx:{...N.card,...r==="setup-details"&&{bgcolor:"#f3f8ff",border:"1.5px solid #2D64B8"},"&:hover":{bgcolor:"#f5faff",border:"1.5px solid #1976D2"},cursor:"pointer"},onClick:()=>{n("setup-details"),o&&localStorage.setItem("selectedSyncMethod",o),y("/ftp-sync",{state:{tenantIntegrationData:v}})},children:[s.jsxs(m,{sx:N.cardLeft,children:[s.jsx(Sc,{size:28,color:"#444",style:{marginRight:12}}),s.jsxs(m,{children:[s.jsxs(P,{sx:N.cardTitle,children:[o==="sftp"&&"Setup SFTP Details",o==="webhook"&&"Setup Webhook Details",o==="aira-api"&&"Setup AIRA API Details",o==="file-upload"&&"Setup File Upload Details"]}),s.jsx(P,{sx:N.cardSubtitle,children:"Start setup"})]})]}),s.jsx(Wt,{size:18})]})]})]})}if(c){const N=h.productsyncsetting;return s.jsxs(m,{sx:N.wrapper,children:[s.jsx(Ve,{breadcrumbRight:"Settings",onBack:_}),s.jsxs(m,{sx:N.section,children:[s.jsxs(P,{sx:N.sectionTitle,children:["General ",s.jsx("span",{style:N.sectionCount,children:"2"})]}),s.jsxs(m,{sx:{...N.card,...r==="catalogs"&&{bgcolor:"#f3f8ff",border:"1.5px solid #2D64B8"},"&:hover":{bgcolor:"#f5faff",border:"1.5px solid #1976D2"},cursor:"pointer"},onClick:()=>n("catalogs"),children:[s.jsxs(m,{sx:N.cardLeft,children:[s.jsx(qr,{size:20}),s.jsxs(m,{children:[s.jsx(P,{sx:N.cardTitle,children:"Manage Shared Catalogs"}),s.jsxs(P,{sx:N.cardSubtitle,children:[f," shared"]})]})]}),s.jsx(Wt,{size:18})]}),s.jsxs(m,{sx:{...N.card,...r==="ai"&&{bgcolor:"#f3f8ff",border:"1.5px solid #2D64B8"},"&:hover":{bgcolor:"#f5faff",border:"1.5px solid #1976D2"},cursor:"pointer"},onClick:()=>n("ai"),children:[s.jsxs(m,{sx:N.cardLeft,children:[s.jsx(hr,{size:20}),s.jsxs(m,{children:[s.jsx(P,{sx:N.cardTitle,children:"Aira AI"}),s.jsx(P,{sx:N.cardSubtitle,children:"Make your workflows faster and smarter"})]})]}),s.jsx(Ur,{checked:b})]})]}),s.jsxs(m,{sx:N.section,children:[s.jsxs(P,{sx:N.sectionTitle,children:["Sync ",s.jsx("span",{style:N.sectionCount,children:"2"})]}),s.jsxs(m,{sx:{...N.card,...r==="product-sync-setting"&&{bgcolor:"#f3f8ff",border:"1.5px solid #2D64B8"},"&:hover":{bgcolor:"#f5faff",border:"1.5px solid #1976D2"},cursor:"pointer"},onClick:()=>n("product-sync-setting"),children:[s.jsxs(m,{sx:N.cardLeft,children:[s.jsx(st,{size:20}),s.jsxs(m,{children:[s.jsx(P,{sx:N.cardTitle,children:"Sync Method"}),s.jsx(P,{sx:N.cardSubtitle,children:Hs[o]||"N/A"})]})]}),s.jsx(Wt,{size:18})]}),o&&s.jsxs(m,{sx:{...N.card,...r==="setup-details"&&{bgcolor:"#f3f8ff",border:"1.5px solid #2D64B8"},"&:hover":{bgcolor:"#f5faff",border:"1.5px solid #1976D2"},cursor:"pointer"},onClick:()=>{n("setup-details"),y("/ftp-sync",{state:{tenantIntegrationData:v}})},children:[s.jsxs(m,{sx:N.cardLeft,children:[s.jsx(Sc,{size:28,color:"#444",style:{marginRight:12}}),s.jsxs(m,{children:[s.jsxs(P,{sx:N.cardTitle,children:[o==="sftp"&&"Setup SFTP Details",o==="webhook"&&"Setup Webhook Details",o==="aira-api"&&"Setup AIRA API Details",o==="file-upload"&&"Setup File Upload Details"]}),s.jsx(P,{sx:N.cardSubtitle,children:"Start setup"})]})]}),s.jsx(Wt,{size:18})]})]})]})}if(u){const N=p.productsyncsetting;return s.jsxs(m,{sx:{...N.wrapper,bgcolor:"#f5f7fa",minHeight:"100vh"},children:[s.jsx(Ve,{breadcrumbRight:"Settings",onBack:_}),s.jsxs(m,{sx:{...N.section,mb:3,boxShadow:"0 2px 8px rgba(0,0,0,0.06)",borderRadius:2,bgcolor:"#fff",maxWidth:420,mx:"auto",p:2.5},children:[s.jsxs(P,{sx:N.sectionTitle,children:["General ",s.jsx("span",{style:N.sectionCount,children:"2"})]}),s.jsxs(m,{sx:{...N.card,...r==="catalogs"&&{bgcolor:"#f3f8ff",border:"1.5px solid #2D64B8"},"&:hover":{bgcolor:"#f5faff",border:"1.5px solid #1976D2"},cursor:"pointer"},onClick:()=>n("catalogs"),children:[s.jsxs(m,{sx:N.cardLeft,children:[s.jsx(qr,{size:20}),s.jsxs(m,{children:[s.jsx(P,{sx:N.cardTitle,children:"Manage Shared Catalogs"}),s.jsxs(P,{sx:N.cardSubtitle,children:[f," shared"]})]})]}),s.jsx(Wt,{size:18})]}),s.jsxs(m,{sx:{...N.card,...r==="ai"&&{bgcolor:"#f3f8ff",border:"1.5px solid #2D64B8"},"&:hover":{bgcolor:"#f5faff",border:"1.5px solid #1976D2"},cursor:"pointer"},onClick:()=>n("ai"),children:[s.jsxs(m,{sx:N.cardLeft,children:[s.jsx(hr,{size:20}),s.jsxs(m,{children:[s.jsx(P,{sx:N.cardTitle,children:"Aira AI"}),s.jsx(P,{sx:N.cardSubtitle,children:"Make your workflows faster and smarter"})]})]}),s.jsx(Ur,{checked:b})]})]}),s.jsxs(m,{sx:{...N.section,boxShadow:"0 2px 8px rgba(0,0,0,0.06)",borderRadius:2,bgcolor:"#fff",maxWidth:420,mx:"auto",p:2.5},children:[s.jsxs(m,{sx:N.sectionTitleRow,children:[s.jsxs(P,{sx:N.sectionTitle,children:["Sync ",s.jsx("span",{style:N.sectionCount,children:"2"})]}),s.jsx(P,{sx:N.syncNow,children:"Sync Now"})]}),s.jsxs(m,{sx:{...N.card,opacity:.5,pointerEvents:"none",mb:1.5,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[s.jsxs(m,{sx:N.cardLeft,children:[s.jsx(st,{size:20}),s.jsxs(m,{children:[s.jsx(P,{sx:N.cardTitle,children:"Sync Method"}),s.jsx(P,{sx:N.cardSubtitle,children:Hs[o]||"N/A"})]})]}),s.jsx(Wt,{size:18})]}),s.jsxs(m,{sx:{...N.card,cursor:"pointer",mb:1.5,display:"flex",alignItems:"center",justifyContent:"space-between"},onClick:()=>{n("setup-details"),y("/ftp-sync",{state:{tenantIntegrationData:v}})},children:[s.jsxs(m,{sx:N.cardLeft,children:[s.jsx(Sc,{size:28,color:"#444",style:{marginRight:12}}),s.jsxs(m,{children:[s.jsx(P,{sx:N.cardTitle,children:"FTP Details"}),s.jsx(P,{sx:N.cardSubtitle,children:"Sync source"})]})]}),s.jsx(Wt,{size:18})]}),s.jsxs(m,{sx:N.cardGrid,children:[s.jsx(m,{sx:{...N.cardGridItem,...N.card,mb:0,display:"flex",alignItems:"center",justifyContent:"space-between"},children:s.jsxs(m,{sx:N.cardLeft,children:[s.jsx(st,{size:20}),s.jsxs(m,{children:[s.jsx(P,{sx:N.cardTitle,children:"Sync Frequency"}),s.jsx(P,{sx:N.cardSubtitle,children:w})]})]})}),s.jsx(m,{sx:{...N.cardGridItem,...N.card,mb:0,display:"flex",alignItems:"center",justifyContent:"space-between"},children:s.jsxs(m,{sx:N.cardLeft,children:[s.jsx(st,{size:20}),s.jsxs(m,{children:[s.jsx(P,{sx:N.cardTitle,children:"Sync Time"}),s.jsx(P,{sx:N.cardSubtitle,children:z})]})]})})]}),s.jsx(m,{sx:{...N.card,mb:0,display:"flex",alignItems:"center",justifyContent:"space-between"},children:s.jsxs(m,{sx:N.cardLeft,children:[s.jsx(st,{size:20}),s.jsxs(m,{children:[s.jsx(P,{sx:N.cardTitle,children:"Sync History"}),s.jsx(P,{sx:N.cardSubtitle,children:"12,139 items"})]})]})})]})]})}}function Pk(){const e=We(),t=xe(e.breakpoints.down("sm")),r=xe(e.breakpoints.between("sm","md")),n=yt(),o=Et(),a=jt(),l=It(),c=Nt(),[u,d]=F.useState(!0),[p,h]=F.useState(!1),[y,x]=F.useState(),g=o.state?.tenantIntegrationData,f={bgcolor:"#F3F8FF",border:"1px solid #2D64B8"},b=()=>{n("/empty-products")},S=()=>{},v=()=>{x("sync"),h(!0)},T=()=>{h(!1)},C=w=>{localStorage.setItem("selectedSyncMethod",w),h(!1),n("/product-sync-setting",{state:{tenantIntegrationData:g}})},E=()=>{x("catalogs")};if(!t&&!r){const w=a.productSetting;return s.jsxs(m,{sx:w.wrapper,children:[s.jsx(Tc,{open:p,onClose:T,onSave:C}),s.jsx(Ve,{breadcrumbRight:"Settings",onBack:b}),s.jsxs(m,{sx:w.content,children:[s.jsxs(m,{sx:w.section,children:[s.jsxs(m,{sx:w.sectionHeader,children:[s.jsx(P,{sx:w.sectionTitle,children:"General"}),s.jsx(P,{sx:w.sectionCount,children:"2"})]}),s.jsxs(m,{onClick:E,sx:{...w.settingCard,...y==="catalogs"?f:{}},children:[s.jsxs(m,{sx:w.settingCardInner,children:[s.jsx(m,{sx:w.settingIcon,children:s.jsx(qr,{size:18,color:"#666"})}),s.jsxs(m,{children:[s.jsx(P,{sx:w.settingTitle,children:"Manage Shared Catalogs"}),s.jsx(P,{sx:w.settingSubtitle,children:"4 shared"})]})]}),s.jsx(rr,{size:20,color:"#999"})]}),s.jsxs(m,{sx:{background:"#fff",borderRadius:2,boxShadow:"0 1px 4px #0001",border:"1px solid #e6eaf1",display:"flex",alignItems:"center",px:2.5,py:1.5,mb:2,mt:1,minHeight:60},children:[s.jsx(m,{sx:{display:"flex",alignItems:"center",mr:2},children:s.jsx(hr,{size:20,color:"#888"})}),s.jsxs(m,{sx:{flex:1},children:[s.jsx(P,{sx:{fontWeight:700,fontSize:16,color:"#222",lineHeight:1.2},children:"Aira AI"}),s.jsx(P,{sx:{color:"#888",fontSize:14,fontWeight:400,mt:.5,lineHeight:1.3},children:"Make your workflows faster and smarter"})]}),s.jsx(Ur,{checked:u,onChange:I=>d(I.target.checked),sx:{mr:.5,"& .MuiSwitch-switchBase.Mui-checked":{color:"#1976d2"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"#b3e0ff"},"& .MuiSwitch-track":{backgroundColor:"#e3eefa",opacity:1},"& .MuiSwitch-thumb":{boxShadow:"0 1px 4px #1976d233"}}})]})]}),s.jsxs(m,{children:[s.jsxs(m,{sx:w.syncHeader,children:[s.jsxs(m,{sx:w.sectionHeader,children:[s.jsx(P,{sx:w.sectionTitle,children:"Sync"}),s.jsx(P,{sx:w.sectionCount,children:"2"})]}),s.jsxs(m,{onClick:S,sx:w.syncNowButton,children:[s.jsx(st,{size:14}),s.jsx(P,{sx:w.syncNowText,children:"Sync Now"})]})]}),s.jsxs(m,{onClick:v,sx:{...w.setupSyncCard,...y==="sync"?f:{}},children:[s.jsxs(m,{sx:w.settingCardInner,children:[s.jsx(m,{sx:w.settingIcon,children:s.jsx(st,{size:18,color:"#454545"})}),s.jsxs(m,{children:[s.jsx(P,{sx:w.settingTitle,children:"Setup Sync"}),s.jsx(P,{sx:w.settingSubtitle,children:"Sync products"})]})]}),s.jsx(rr,{size:20,color:"#888"})]})]})]})]})}if(t){const w=l.productSetting;return s.jsxs(m,{sx:w.wrapper,children:[s.jsx(Tc,{open:p,onClose:T,onSave:C}),s.jsx(Ve,{breadcrumbRight:"Settings",onBack:b}),s.jsxs(m,{sx:w.content,children:[s.jsxs(m,{sx:w.section,children:[s.jsxs(m,{sx:w.sectionHeader,children:[s.jsx(P,{sx:w.sectionTitle,children:"General"}),s.jsx(P,{sx:w.sectionCount,children:"2"})]}),s.jsxs(m,{onClick:E,sx:{...w.settingCard,...y==="catalogs"?f:{}},children:[s.jsxs(m,{sx:w.settingCardInner,children:[s.jsx(m,{sx:w.settingIcon,children:s.jsx(qr,{size:18,color:"#666"})}),s.jsxs(m,{children:[s.jsx(P,{sx:w.settingTitle,children:"Manage Shared Catalogs"}),s.jsx(P,{sx:w.settingSubtitle,children:"4 shared"})]})]}),s.jsx(rr,{size:20,color:"#999"})]}),s.jsxs(m,{sx:{background:"#fff",borderRadius:2,boxShadow:"0 1px 4px #0001",border:"1px solid #e6eaf1",display:"flex",alignItems:"center",px:2.5,py:1.5,mb:2,mt:1,minHeight:60},children:[s.jsx(m,{sx:{display:"flex",alignItems:"center",mr:2},children:s.jsx(hr,{size:20,color:"#888"})}),s.jsxs(m,{sx:{flex:1},children:[s.jsx(P,{sx:{fontWeight:700,fontSize:16,color:"#222",lineHeight:1.2},children:"Aira AI"}),s.jsx(P,{sx:{color:"#888",fontSize:14,fontWeight:400,mt:.5,lineHeight:1.3},children:"Make your workflows faster and smarter"})]}),s.jsx(Ur,{checked:u,onChange:I=>d(I.target.checked),sx:{mr:.5,"& .MuiSwitch-switchBase.Mui-checked":{color:"#1976d2"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"#b3e0ff"},"& .MuiSwitch-track":{backgroundColor:"#e3eefa",opacity:1},"& .MuiSwitch-thumb":{boxShadow:"0 1px 4px #1976d233"}}})]})]}),s.jsxs(m,{children:[s.jsxs(m,{sx:w.syncHeader,children:[s.jsxs(m,{sx:w.sectionHeader,children:[s.jsx(P,{sx:w.sectionTitle,children:"Sync"}),s.jsx(P,{sx:w.sectionCount,children:"2"})]}),s.jsxs(m,{onClick:S,sx:w.syncNowButton,children:[s.jsx(st,{size:14}),s.jsx(P,{sx:w.syncNowText,children:"Sync Now"})]})]}),s.jsxs(m,{onClick:v,sx:{...w.setupSyncCard,...y==="sync"?f:{}},children:[s.jsxs(m,{sx:w.settingCardInner,children:[s.jsx(m,{sx:w.settingIcon,children:s.jsx(st,{size:18,color:"#454545"})}),s.jsxs(m,{children:[s.jsx(P,{sx:w.settingTitle,children:"Setup Sync"}),s.jsx(P,{sx:w.settingSubtitle,children:"Sync products"})]})]}),s.jsx(rr,{size:20,color:"#888"})]})]})]})]})}if(r){const w=c.productSetting;return s.jsxs(m,{sx:w.wrapper,children:[s.jsx(Tc,{open:p,onClose:T,onSave:C}),s.jsx(Ve,{breadcrumbRight:"Settings",onBack:b}),s.jsxs(m,{sx:w.content,children:[s.jsxs(m,{sx:w.section,children:[s.jsxs(m,{sx:w.sectionHeader,children:[s.jsx(P,{sx:w.sectionTitle,children:"General"}),s.jsx(P,{sx:w.sectionCount,children:"2"})]}),s.jsxs(m,{onClick:E,sx:{...w.settingCard,...y==="catalogs"?f:{}},children:[s.jsxs(m,{sx:w.settingCardInner,children:[s.jsx(m,{sx:w.settingIcon,children:s.jsx(qr,{size:18,color:"#666"})}),s.jsxs(m,{children:[s.jsx(P,{sx:w.settingTitle,children:"Manage Shared Catalogs"}),s.jsx(P,{sx:w.settingSubtitle,children:"4 shared"})]})]}),s.jsx(rr,{size:20,color:"#999"})]}),s.jsxs(m,{sx:{background:"#fff",borderRadius:2,boxShadow:"0 1px 4px #0001",border:"1px solid #e6eaf1",display:"flex",alignItems:"center",px:2.5,py:1.5,mb:2,mt:1,minHeight:60},children:[s.jsx(m,{sx:{display:"flex",alignItems:"center",mr:2},children:s.jsx(hr,{size:20,color:"#888"})}),s.jsxs(m,{sx:{flex:1},children:[s.jsx(P,{sx:{fontWeight:700,fontSize:16,color:"#222",lineHeight:1.2},children:"Aira AI"}),s.jsx(P,{sx:{color:"#888",fontSize:14,fontWeight:400,mt:.5,lineHeight:1.3},children:"Make your workflows faster and smarter"})]}),s.jsx(Ur,{checked:u,onChange:I=>d(I.target.checked),sx:{mr:.5,"& .MuiSwitch-switchBase.Mui-checked":{color:"#1976d2"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"#b3e0ff"},"& .MuiSwitch-track":{backgroundColor:"#e3eefa",opacity:1},"& .MuiSwitch-thumb":{boxShadow:"0 1px 4px #1976d233"}}})]})]}),s.jsxs(m,{children:[s.jsxs(m,{sx:w.syncHeader,children:[s.jsxs(m,{sx:w.sectionHeader,children:[s.jsx(P,{sx:w.sectionTitle,children:"Sync"}),s.jsx(P,{sx:w.sectionCount,children:"2"})]}),s.jsxs(m,{onClick:S,sx:w.syncNowButton,children:[s.jsx(st,{size:14}),s.jsx(P,{sx:w.syncNowText,children:"Sync Now"})]})]}),s.jsxs(m,{onClick:v,sx:{...w.setupSyncCard,...y==="sync"?f:{}},children:[s.jsxs(m,{sx:w.settingCardInner,children:[s.jsx(m,{sx:w.settingIcon,children:s.jsx(st,{size:18,color:"#454545"})}),s.jsxs(m,{children:[s.jsx(P,{sx:w.settingTitle,children:"Setup Sync"}),s.jsx(P,{sx:w.settingSubtitle,children:"Sync products"})]})]}),s.jsx(rr,{size:20,color:"#888"})]})]})]})]})}}const On=["Setup FTP","Check data","Start Sync"],Ik=()=>{const e=yt(),t=Et(),r=We(),n=xe(r.breakpoints.down("sm")),o=xe(r.breakpoints.between("sm","md")),a=t.state?.tenantIntegrationData;return!n&&!o?s.jsxs(m,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[s.jsx(Ve,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],title:"FTP Sync",onBack:()=>e("/product-sync-setting")}),s.jsxs(m,{sx:{maxWidth:800,mx:"auto",pt:4},children:[s.jsx(m,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",px:4,mb:2},children:On.map((l,c)=>s.jsx("span",{style:{fontWeight:c===0?700:400,color:"#222",fontSize:16,flex:1,textAlign:c===0?"left":c===On.length-1?"right":"center"},children:l},l))}),s.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:300,minWidth:600,bgcolor:"#fff"},children:s.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:400},children:s.jsxs(Re,{elevation:0,sx:{mt:4,p:4,borderRadius:4,background:"#fafafa",minWidth:400,maxWidth:420},children:[s.jsx(P,{variant:"h6",gutterBottom:!0,sx:{fontWeight:700},children:"Setup Instructions"}),s.jsxs("ol",{style:{color:"#222",fontSize:16,margin:0,paddingLeft:20,marginBottom:24},children:[s.jsx("li",{children:"Directory should have just one file"}),s.jsx("li",{children:"File format must be in CSV (comma separated)"}),s.jsx("li",{children:"File structure should be flat"})]}),s.jsx(m,{sx:{display:"flex",justifyContent:"flex-end"},children:s.jsx(ae,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:()=>e("/ftp-sync-1",{state:{tenantIntegrationData:a}},{state:{tenantIntegrationData:a}}),children:"Next"})})]})})})]})]}):o?s.jsxs(m,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[s.jsx(Ve,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],title:"FTP Sync",onBack:()=>e("/product-sync-setting")}),s.jsxs(m,{sx:{maxWidth:800,mx:"auto",pt:3,px:2},children:[s.jsx(m,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",px:3,mb:2},children:On.map((l,c)=>s.jsx("span",{style:{fontWeight:c===0?700:400,color:"#222",fontSize:15,flex:1,textAlign:c===0?"left":c===On.length-1?"right":"center"},children:l},l))}),s.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:300,minWidth:600,bgcolor:"#fff",mt:2},children:s.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:400},children:s.jsxs(Re,{elevation:0,sx:{mt:2,p:3,borderRadius:4,background:"#fafafa",minWidth:400,maxWidth:420},children:[s.jsx(P,{variant:"h6",gutterBottom:!0,sx:{fontWeight:700},children:"Setup Instructions"}),s.jsxs("ol",{style:{color:"#222",fontSize:15,margin:0,paddingLeft:20,marginBottom:24},children:[s.jsx("li",{children:"Directory should have just one file"}),s.jsx("li",{children:"File format must be in CSV (comma separated)"}),s.jsx("li",{children:"File structure should be flat"})]}),s.jsx(m,{sx:{display:"flex",justifyContent:"flex-end"},children:s.jsx(ae,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none",fontSize:15},onClick:()=>e("/ftp-sync-1"),children:"Next"})})]})})})]})]}):s.jsxs(m,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[s.jsx(Ve,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],title:"FTP Sync",onBack:()=>e("/product-sync-setting")}),s.jsxs(m,{sx:{maxWidth:"100vw",mx:0,pt:2,px:1},children:[s.jsx(m,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",px:1,mb:2},children:On.map((l,c)=>s.jsx("span",{style:{fontWeight:c===0?700:400,color:"#222",fontSize:14,flex:1,textAlign:c===0?"left":c===On.length-1?"right":"center"},children:l},l))}),s.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:200,minWidth:"100vw",bgcolor:"#fff",px:0},children:s.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:250,width:"100vw",px:0},children:s.jsxs(Re,{elevation:0,sx:{mt:2,p:2,borderRadius:2,background:"#fafafa",minWidth:"90vw",maxWidth:"95vw"},children:[s.jsx(P,{variant:"subtitle1",gutterBottom:!0,sx:{fontWeight:700,fontSize:17},children:"Setup Instructions"}),s.jsxs("ol",{style:{color:"#222",fontSize:14,margin:0,paddingLeft:20,marginBottom:24},children:[s.jsx("li",{children:"Directory should have just one file"}),s.jsx("li",{children:"File format must be in CSV (comma separated)"}),s.jsx("li",{children:"File structure should be flat"})]}),s.jsx(m,{sx:{display:"flex",justifyContent:"center"},children:s.jsx(ae,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none",fontSize:15,px:3,py:1},onClick:()=>e("/ftp-sync-1",{state:{tenantIntegrationData:a}}),children:"Next"})})]})})})]})]})},Zh=lt(s.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"),kc=lt(s.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),Oc=lt(s.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff"),Pc=({active:e,completed:t,showBlue:r})=>s.jsx(m,{sx:{width:24,height:24,borderRadius:"50%",border:`2px solid ${r?"#2563eb":"#bbb"}`,display:"flex",alignItems:"center",justifyContent:"center",background:"#fff"},children:r?s.jsx("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",children:s.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#2563eb",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})}):e||t?s.jsx("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",children:s.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#bbb",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})}):s.jsx("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",children:s.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#bbb",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})}),_t=({steps:e=[],activeStep:t=0,showCheckDataBlueTick:r=!1,progressToCheckData:n=!1,showSetupFtpBlueTick:o=!1,showStartSyncBlueTick:a=!1,instantComplete:l=!1})=>{const c=We(),u=xe(c.breakpoints.down("sm")),d=xe(c.breakpoints.between("sm","md")),[p,h]=F.useState(0),[y,x]=F.useState(!1),g=F.useRef(null),[f,b]=F.useState(0),[S,v]=F.useState(0),[T,C]=F.useState(0);if(F.useEffect(()=>{if(l){setTimeout(()=>{h(1),x(!0)},0);return}if(setTimeout(()=>{h(0),x(!1)},0),n){const E=setTimeout(()=>{h(1),setTimeout(()=>x(!0),600)},100);return()=>clearTimeout(E)}else{const E=setTimeout(()=>{h(1),setTimeout(()=>x(!0),600)},100);return()=>clearTimeout(E)}},[t,e.length,n,l]),F.useEffect(()=>{if(g.current){const E=g.current.querySelector(".stepper-icon-0"),w=g.current.querySelector(".stepper-icon-1"),I=g.current.querySelector(`.stepper-icon-${e.length-1}`);if(E&&w&&I){const z=E.getBoundingClientRect(),_=w.getBoundingClientRect(),N=I.getBoundingClientRect(),L=g.current.getBoundingClientRect(),O=z.left+z.width/2-L.left;b(O),v((_.left+_.width/2-L.left-O)*.4),C(N.left+N.width/2-L.left-O)}}},[e.length,p]),!u&&!d)return s.jsxs(m,{sx:{width:"100%",p:"24px 0 0 0"},children:[s.jsx(m,{ref:g,sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",px:4},children:e.map((E,w)=>s.jsxs(m,{className:`stepper-icon-${w}`,sx:{display:"flex",flexDirection:"column",alignItems:"center",flex:1},children:[s.jsx(Pc,{active:w===t,completed:w<t,showBlue:w===0&&o||w===1&&r&&y||w===2&&a}),s.jsx("span",{style:{fontWeight:w===t?700:400,color:"#222",fontSize:16,marginTop:8},children:E})]},E))}),s.jsxs(m,{sx:{position:"relative",width:"100%",height:6,mt:1.5,mb:0,px:4},children:[s.jsx(m,{sx:{position:"absolute",left:f,top:0,width:T,height:4,bgcolor:"#f2f2f2",borderRadius:2,transition:"left 0.30s, width 0.30s"}}),s.jsx(m,{sx:{position:"absolute",left:f,top:0,height:4,borderRadius:2,bgcolor:"#219653",width:a?p?T:0:n?p?T*.5:0:p?S:0,transition:"width 0.7s cubic-bezier(.47,1.64,.41,.8), left 0.4s"}})]})]});if(u)return s.jsxs(m,{sx:{width:"100%",p:"16px 0 0 0"},children:[s.jsx(m,{ref:g,sx:{display:"flex",justifyContent:"space-between",alignItems:"center",px:1,mb:2},children:e.map((E,w)=>s.jsxs(m,{className:`stepper-icon-${w}`,sx:{display:"flex",flexDirection:"column",alignItems:"center",flex:1},children:[s.jsx(Pc,{active:w===t,completed:w<t,showBlue:w===0&&o||w===1&&r&&y||w===2&&a}),s.jsx("span",{style:{fontWeight:w===t?700:400,color:"#222",fontSize:14,marginTop:6},children:E})]},E))}),s.jsxs(m,{sx:{position:"relative",width:"100%",height:6,mt:1.5,mb:0,px:2},children:[s.jsx(m,{sx:{position:"absolute",left:f,top:0,width:T,height:4,bgcolor:"#f2f2f2",borderRadius:2,transition:"left 0.30s, width 0.30s"}}),s.jsx(m,{sx:{position:"absolute",left:f,top:0,height:4,borderRadius:2,bgcolor:"#219653",width:a?p?T:0:n?p?T*.5:0:p?S:0,transition:"width 0.7s cubic-bezier(.47,1.64,.41,.8), left 0.4s"}})]})]});if(d)return s.jsxs(m,{sx:{width:"100%",p:"20px 0 0 0"},children:[s.jsx(m,{ref:g,sx:{display:"flex",justifyContent:"space-between",alignItems:"center",px:3,mb:2},children:e.map((E,w)=>s.jsxs(m,{className:`stepper-icon-${w}`,sx:{display:"flex",flexDirection:"column",alignItems:"center",flex:1},children:[s.jsx(Pc,{active:w===t,completed:w<t,showBlue:w===0&&o||w===1&&r&&y||w===2&&a}),s.jsx("span",{style:{fontWeight:w===t?700:400,color:"#222",fontSize:15,flex:1,textAlign:w===0?"left":w===e.length-1?"right":"center"},children:E})]},E))}),s.jsxs(m,{sx:{position:"relative",width:"100%",height:6,mt:1.5,mb:0,px:3},children:[s.jsx(m,{sx:{position:"absolute",left:f,top:0,width:T,height:4,bgcolor:"#f2f2f2",borderRadius:2,transition:"left 0.30s, width 0.30s"}}),s.jsx(m,{sx:{position:"absolute",left:f,top:0,height:4,borderRadius:2,bgcolor:"#219653",width:a?p?T:0:n?p?T*.5:0:p?S:0,transition:"width 0.7s cubic-bezier(.47,1.64,.41,.8), left 0.4s"}})]})]})},Ic=["Setup FTP","Check data","Start Sync"],Nk=()=>{const e=yt(),t=Et(),{tenantId:r}=Ai(),n=1,[o,a]=F.useState(!1),[l,c]=F.useState(0);F.useEffect(()=>{let _,N;return setTimeout(()=>{c(0),a(!1),_=setTimeout(()=>{c(1),N=setTimeout(()=>a(!0),600)},100)},0),()=>{_&&clearTimeout(_),N&&clearTimeout(N)}},[]);const[u,d]=F.useState(!1),p=localStorage.getItem("selectedSyncMethod")||"sftp",[h,y]=F.useState(`${p}:`),[x,g]=F.useState(""),[f,b]=F.useState(""),S=Or(),v=Tt(_=>_.ftpSync.loading),T=Tt(_=>_.ftpSync.error),C=We(),E=xe(C.breakpoints.up("lg")),w=xe(C.breakpoints.between("sm","lg")),I=xe(C.breakpoints.down("sm"));F.useEffect(()=>{const _=t.state?.ftpConfig,N=t.state?.tenantIntegrationData;if(N&&N.configs){const L=N.configs,O=L.type||N.type||"sftp",M=L.host||"",A=L.port||"",$=L.path||"",D=`${O}://${M}:${A}${$}`,q=L.username||"",H=L.password||"";setTimeout(()=>{y(D),g(q),b(H)},0)}else if(_){const O=`${_.type||"sftp"}://${_.host}:${_.port}/${_.path}`,M=_.username||"",A=_.password||"";setTimeout(()=>{y(O),g(M),b(A)},0)}},[t.state]);const z=async()=>{if(!r){alert("Tenant ID is required. Please ensure the app is properly configured.");return}function _($){try{const D=new URL($);return{type:D.protocol.replace(":",""),host:D.hostname,port:D.port,path:D.pathname}}catch{return{type:"",host:"",port:"",path:""}}}const{type:N,host:L,port:O,path:M}=_(h);S(rn({tenantId:r,type:N,serverAddress:h,configs:{host:L,port:O,path:M,username:x,password:f,sync_frequency:"",sync_time:""},entity_type:"product",mappings:[]}));const A=await S(eo({serverAddress:h,username:x,password:f,tenantId:r}));eo.fulfilled.match(A)&&e("/ftp-sync-2")};return E?s.jsxs(m,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[s.jsx(Ve,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],title:"FTP Sync",onBack:()=>e("/ftp-sync")}),s.jsxs(m,{sx:{maxWidth:800,mx:"auto",pt:4},children:[s.jsx(_t,{steps:Ic,activeStep:n,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:o,animateSetupFtp:!0}),s.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:600,minWidth:600,bgcolor:"#fff",mt:4},children:s.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:400},children:s.jsx(m,{elevation:0,sx:{p:0,borderRadius:4,background:"#fff",minWidth:440,maxWidth:480},children:s.jsxs(m,{sx:{background:"#f5f5f5",borderRadius:4,p:4},children:[s.jsx(P,{variant:"h6",gutterBottom:!0,sx:{fontWeight:700},children:"Login Details"}),s.jsxs(m,{component:"form",autoComplete:"off",sx:{width:"90%"},children:[s.jsxs("div",{style:{marginBottom:16},children:[s.jsx("label",{style:{display:"block",fontWeight:500,marginBottom:4},children:"Server Address"}),s.jsx("input",{type:"text",value:h,onChange:_=>y(_.target.value),placeholder:"sftp://234.124.12.34:4432/data/sync",style:{width:"100%",background:"#fff",border:"1px solid #d1d5db",borderRadius:"6px",padding:"12px 14px",fontSize:16,marginBottom:0}}),s.jsx("div",{style:{fontSize:13,color:"#888",marginTop:4,marginBottom:0},children:"Eg: //234.124.12.34:4432/data/sync"})]}),s.jsxs("div",{style:{marginBottom:16},children:[s.jsx("label",{style:{display:"block",fontWeight:500,marginBottom:4},children:"Username"}),s.jsx("input",{type:"text",value:x,onChange:_=>g(_.target.value),placeholder:"Enter username",style:{width:"100%",background:"#fff",border:"1px solid #d1d5db",borderRadius:"6px",padding:"12px 14px",fontSize:16,marginBottom:0}})]}),s.jsxs("div",{style:{marginBottom:24,position:"relative"},children:[s.jsx("label",{style:{display:"block",fontWeight:500,marginBottom:4},children:"Password"}),s.jsx("input",{type:u?"text":"password",value:f,onChange:_=>b(_.target.value),placeholder:"Enter password",style:{width:"90%",background:"#fff",border:"1px solid #d1d5db",borderRadius:"6px",padding:"12px 44px 12px 14px",fontSize:16,marginBottom:0}}),s.jsx(it,{"aria-label":"toggle password visibility",onClick:()=>d(_=>!_),edge:"end",tabIndex:-1,style:{position:"absolute",right:4,top:"65%",transform:"translateY(-50%)",zIndex:2},children:u?s.jsx(Oc,{}):s.jsx(kc,{})})]}),s.jsxs(m,{sx:{display:"flex",mt:3,justifyContent:"flex-end",gap:2},children:[s.jsx(ae,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",bgcolor:"#fff"},onClick:()=>e("/ftp-sync"),children:"Back"}),s.jsx(ae,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:z,disabled:v,children:v?"Loading...":"Next"})]}),T&&s.jsx(P,{color:"error",sx:{mt:2},children:"Fill the credentials"})]})]})})})})]})]}):w?s.jsxs(m,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[s.jsx(Ve,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],title:"FTP Sync",onBack:()=>e("/ftp-sync")}),s.jsxs(m,{sx:{maxWidth:800,mx:"auto",pt:4},children:[s.jsx(_t,{steps:Ic,activeStep:n,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:o,animateSetupFtp:!0}),s.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:600,minWidth:600,bgcolor:"#fff",mt:4},children:s.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:400},children:s.jsx(Re,{elevation:0,sx:{p:0,borderRadius:4,background:"#fff",minWidth:440,maxWidth:480},children:s.jsxs(m,{sx:{background:"#f5f5f5",borderRadius:4,p:4},children:[s.jsx(P,{variant:"h6",gutterBottom:!0,sx:{fontWeight:700},children:"Login Details"}),s.jsxs(m,{component:"form",autoComplete:"off",sx:{width:"90%"},children:[s.jsxs("div",{style:{marginBottom:16},children:[s.jsx("label",{style:{display:"block",fontWeight:500,marginBottom:4},children:"Server Address"}),s.jsx("input",{type:"text",value:h,onChange:_=>y(_.target.value),placeholder:"sftp://234.124.12.34:4432/data/sync",style:{width:"100%",background:"#fff",border:"1px solid #d1d5db",borderRadius:"6px",padding:"12px 14px",fontSize:16,marginBottom:0}})]}),s.jsxs("div",{style:{marginBottom:16},children:[s.jsx("label",{style:{display:"block",fontWeight:500,marginBottom:4},children:"Username"}),s.jsx("input",{type:"text",value:x,onChange:_=>g(_.target.value),placeholder:"Enter username",style:{width:"100%",background:"#fff",border:"1px solid #d1d5db",borderRadius:"6px",padding:"12px 14px",fontSize:16,marginBottom:0}})]}),s.jsxs("div",{style:{marginBottom:24,position:"relative"},children:[s.jsx("label",{style:{display:"block",fontWeight:500,marginBottom:4},children:"Password"}),s.jsx("input",{type:u?"text":"password",value:f,onChange:_=>b(_.target.value),placeholder:"Enter password",style:{width:"90%",background:"#fff",border:"1px solid #d1d5db",borderRadius:"6px",padding:"12px 44px 12px 14px",fontSize:16,marginBottom:0}}),s.jsx(it,{"aria-label":"toggle password visibility",onClick:()=>d(_=>!_),edge:"end",tabIndex:-1,style:{position:"absolute",right:4,top:"65%",transform:"translateY(-50%)",zIndex:2},children:u?s.jsx(Oc,{}):s.jsx(kc,{})})]}),s.jsxs(m,{sx:{display:"flex",mt:3,justifyContent:"flex-end",gap:2},children:[s.jsx(ae,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",bgcolor:"#fff"},onClick:()=>e("/ftp-sync"),children:"Back"}),s.jsx(ae,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:z,disabled:v,children:v?"Loading...":"Next"})]}),T&&s.jsx(P,{color:"error",sx:{mt:2},children:"Fill the credentials"})]})]})})})})]})]}):I?s.jsxs(m,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[s.jsx(Ve,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],title:"FTP Sync",onBack:()=>e("/ftp-sync")}),s.jsx(m,{sx:{maxWidth:360,mx:"auto",pt:2,pb:1},children:s.jsx(_t,{steps:Ic,activeStep:n,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:o,animateSetupFtp:!0})}),s.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"60vh",width:"100%"},children:s.jsx(m,{elevation:0,sx:{p:0,borderRadius:4,background:"#fff",minWidth:280,maxWidth:360},children:s.jsxs(m,{sx:{background:"#f5f5f5",borderRadius:4,p:2},children:[s.jsx(P,{variant:"h6",gutterBottom:!0,sx:{fontWeight:700},children:"Login Details"}),s.jsxs(m,{component:"form",autoComplete:"off",sx:{width:"100%"},children:[s.jsxs("div",{style:{marginBottom:12},children:[s.jsx("label",{style:{display:"block",fontWeight:500,marginBottom:4},children:"Server Address"}),s.jsx("input",{type:"text",value:h,onChange:_=>y(_.target.value),placeholder:"sftp://234.124.12.34:4432/data/sync",style:{width:"100%",background:"#fff",border:"1px solid #d1d5db",borderRadius:"6px",padding:"10px 12px",fontSize:15,marginBottom:0}})]}),s.jsxs("div",{style:{marginBottom:12},children:[s.jsx("label",{style:{display:"block",fontWeight:500,marginBottom:4},children:"Username"}),s.jsx("input",{type:"text",value:x,onChange:_=>g(_.target.value),placeholder:"Enter username",style:{width:"100%",background:"#fff",border:"1px solid #d1d5db",borderRadius:"6px",padding:"10px 12px",fontSize:15,marginBottom:0}})]}),s.jsxs("div",{style:{marginBottom:18,position:"relative"},children:[s.jsx("label",{style:{display:"block",fontWeight:500,marginBottom:4},children:"Password"}),s.jsx("input",{type:u?"text":"password",value:f,onChange:_=>b(_.target.value),placeholder:"Enter password",style:{width:"85%",background:"#fff",border:"1px solid #d1d5db",borderRadius:"6px",padding:"10px 38px 10px 12px",fontSize:15,marginBottom:0}}),s.jsx(it,{"aria-label":"toggle password visibility",onClick:()=>d(_=>!_),edge:"end",tabIndex:-1,style:{position:"absolute",right:2,top:"65%",transform:"translateY(-50%)",zIndex:2},children:u?s.jsx(Oc,{}):s.jsx(kc,{})})]}),s.jsxs(m,{sx:{display:"flex",mt:2,justifyContent:"flex-end",gap:1},children:[s.jsx(ae,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:80,fontWeight:500,textTransform:"none",bgcolor:"#fff",fontSize:13},onClick:()=>e("/ftp-sync"),children:"Back"}),s.jsx(ae,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:80,fontWeight:500,textTransform:"none",boxShadow:"none",fontSize:13},onClick:z,disabled:v,children:v?"Loading...":"Next"})]}),T&&s.jsx(P,{color:"error",sx:{mt:2},children:"Fill the credentials"})]})]})})})]}):null},Nc=["Setup FTP","Check data","Start Sync"],_k=e=>e.ftpSync.ftpColumns||[],Ak=e=>e.ftpSync.preview||[],Mk=e=>e.ftpSync.loading,Dk=e=>e.ftpSync.error,zk=()=>{const e=yt(),[t,r]=F.useState({activeStep:1,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!0});F.useEffect(()=>{let T;return setTimeout(()=>{r({activeStep:1,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!0}),T=setTimeout(()=>{r({activeStep:1,showCheckDataBlueTick:!0,progressToCheckData:!0,showSetupFtpBlueTick:!0})},400)},0),()=>{T&&clearTimeout(T)}},[]);const n=Tt(_k),o=Tt(Ak),a=Tt(Mk),l=Tt(Dk),[c,u]=F.useState([]),[d,p]=F.useState({});F.useEffect(()=>{async function T(){const C=await xx();C.status&&u(C.data.map(E=>E.databaseName))}T()},[]);const h=We(),y=xe(h.breakpoints.down("sm")),x=xe(h.breakpoints.between("sm","lg")),g=xe(h.breakpoints.up("lg")),f=n,b=o.filter(T=>Object.keys(T).length>0),S=Or(),v=Tt(T=>T.ftpSyncSave.syncData);if(g){const T=()=>{const C=f.map(w=>({source_field:w||"",target_table:"catalogues",target_field:d[w]||""})),E={tenantId:v.tenantId||"",integration_type:v.integration_type||"",entity_type:"catalogue",configs:v.configs||{},ftp_columns:f,preview:b,mappings:C};S(rn(E)),e("/ftp-sync-3")};return s.jsxs(m,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[s.jsx(Ve,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:()=>e("/ftp-sync-1")}),s.jsxs(m,{sx:{maxWidth:900,mx:"auto",pt:4},children:[s.jsx(_t,{steps:Nc,activeStep:t.activeStep,showCheckDataBlueTick:t.showCheckDataBlueTick,progressToCheckData:t.progressToCheckData,showSetupFtpBlueTick:t.showSetupFtpBlueTick}),s.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:300,mb:4},children:s.jsxs(Re,{elevation:0,sx:{mt:4,p:0,borderRadius:4,width:"100%",maxWidth:900},children:[s.jsxs(m,{sx:{p:3,pb:2,borderBottom:"1px solid #eee",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[s.jsxs(m,{children:[s.jsx(P,{variant:"subtitle1",sx:{fontWeight:700},children:"Map data from FTP to AiraOps"}),s.jsx(P,{variant:"body2",sx:{color:"#888",mt:.5},children:"sftp://234.124.12.34:4432/data/sync"})]}),s.jsxs(m,{children:[s.jsx(ae,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",mr:2},onClick:()=>e("/ftp-sync-1"),children:"Back"}),s.jsx(ae,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:T,children:"Next"})]})]}),s.jsx(Bs,{sx:{background:"#fafafa",borderRadius:4,mt:0,boxShadow:"none",border:"1px solid #eee"},children:a?s.jsx(m,{sx:{p:3,textAlign:"center"},children:"Loading..."}):l?s.jsx(m,{sx:{p:3,color:"red",textAlign:"center"},children:l}):s.jsxs($s,{size:"small",children:[s.jsxs(js,{children:[s.jsxs(er,{children:[s.jsx(Ye,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},children:"Columns in FTP"}),f.map((C,E)=>s.jsx(Ye,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},children:C},C+E))]}),s.jsxs(er,{children:[s.jsx(Ye,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none"},children:"Columns in Aira"}),f.map((C,E)=>s.jsx(Ye,{sx:{background:"#fafafa",borderBottom:"none"},children:s.jsx(Bt,{value:d[C]||"",onChange:w=>p(I=>({...I,[C]:w.target.value})),variant:"standard",disableUnderline:!0,sx:{minWidth:120,fontWeight:500},children:c.map(w=>s.jsx(Fe,{value:w,children:w},w))})},E))]})]}),s.jsx(Fs,{children:b.map((C,E)=>s.jsxs(er,{children:[s.jsx(Ye,{sx:{fontWeight:700,background:"#fff",borderBottom:"none"},children:E===0?"Data preview":""}),f.map((w,I)=>s.jsx(Ye,{sx:{background:"#fff",borderBottom:"none"},children:C[w]||""},I))]},E))})]})})]})})]})]})}if(x){const T=()=>{const C=f.map(w=>({source_field:w||"",target_table:"catalogues",target_field:d[w]||""})),E={tenantId:v.tenantId||"",integration_type:v.integration_type||"",entity_type:"catalogue",configs:v.configs||{},ftp_columns:f,preview:b,mappings:C};S(rn(E)),e("/ftp-sync-3")};return s.jsxs(m,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[s.jsx(Ve,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:()=>e("/ftp-sync-1")}),s.jsxs(m,{sx:{maxWidth:700,mx:"auto",pt:3},children:[s.jsx(_t,{steps:Nc,activeStep:t.activeStep,showCheckDataBlueTick:t.showCheckDataBlueTick,progressToCheckData:t.progressToCheckData,showSetupFtpBlueTick:t.showSetupFtpBlueTick}),s.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:250,mb:3},children:s.jsxs(Re,{elevation:0,sx:{mt:3,p:0,borderRadius:4,width:"100%",maxWidth:700},children:[s.jsxs(m,{sx:{p:2,pb:2,borderBottom:"1px solid #eee",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[s.jsxs(m,{children:[s.jsx(P,{variant:"subtitle1",sx:{fontWeight:700},children:"Map data from FTP to AiraOps"}),s.jsx(P,{variant:"body2",sx:{color:"#888",mt:.5},children:"sftp://234.124.12.34:4432/data/sync"})]}),s.jsxs(m,{children:[s.jsx(ae,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:90,fontWeight:500,textTransform:"none",mr:2},onClick:()=>e("/ftp-sync-1"),children:"Back"}),s.jsx(ae,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:90,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:T,children:"Next"})]})]}),s.jsx(Bs,{sx:{background:"#fafafa",borderRadius:4,mt:0,boxShadow:"none",border:"1px solid #eee"},children:a?s.jsx(m,{sx:{p:3,textAlign:"center"},children:"Loading..."}):l?s.jsx(m,{sx:{p:3,color:"red",textAlign:"center"},children:l}):s.jsxs($s,{size:"small",children:[s.jsxs(js,{children:[s.jsxs(er,{children:[s.jsx(Ye,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},children:"Columns in FTP"}),f.map((C,E)=>s.jsx(Ye,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},children:C},C+E))]}),s.jsxs(er,{children:[s.jsx(Ye,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none"},children:"Columns in Aira"}),f.map((C,E)=>s.jsx(Ye,{sx:{background:"#fafafa",borderBottom:"none"},children:s.jsx(Bt,{value:d[C]||"",onChange:w=>p(I=>({...I,[C]:w.target.value})),variant:"standard",disableUnderline:!0,sx:{minWidth:90,fontWeight:500},children:c.map(w=>s.jsx(Fe,{value:w,children:w},w))})},E))]})]}),s.jsx(Fs,{children:b.map((C,E)=>s.jsxs(er,{children:[s.jsx(Ye,{sx:{fontWeight:700,background:"#fff",borderBottom:"none"},children:E===0?"Data preview":""}),f.map((w,I)=>s.jsx(Ye,{sx:{background:"#fff",borderBottom:"none"},children:C[I]||""},I))]},E))})]})})]})})]})]})}if(y){const T=()=>{const C=f.map(w=>({source_field:w||"",target_table:"catalogues",target_field:d[w]||""})),E={tenantId:v.tenantId||"",integration_type:v.integration_type||"",entity_type:"catalogue",configs:v.configs||{},ftp_columns:f,preview:b,mappings:C};S(rn(E)),e("/ftp-sync-3")};return s.jsxs(m,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[s.jsx(Ve,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:()=>e("/ftp-sync-1")}),s.jsxs(m,{sx:{maxWidth:360,mx:"auto",pt:2},children:[s.jsx(_t,{steps:Nc,activeStep:t.activeStep,showCheckDataBlueTick:t.showCheckDataBlueTick,progressToCheckData:t.progressToCheckData,showSetupFtpBlueTick:t.showSetupFtpBlueTick}),s.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:180,mb:2},children:s.jsxs(Re,{elevation:0,sx:{mt:2,p:0,borderRadius:4,width:"100%",maxWidth:360},children:[s.jsxs(m,{sx:{p:2,pb:2,borderBottom:"1px solid #eee",display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center"},children:[s.jsxs(m,{children:[s.jsx(P,{variant:"subtitle1",sx:{fontWeight:700},children:"Map data from FTP to AiraOps"}),s.jsx(P,{variant:"body2",sx:{color:"#888",mt:.5},children:"sftp://234.124.12.34:4432/data/sync"})]}),s.jsxs(m,{sx:{display:"flex",gap:1,width:"100%",mt:2},children:[s.jsx(ae,{variant:"outlined",color:"primary",sx:{borderRadius:2,fontWeight:500,textTransform:"none",width:"50%"},onClick:()=>e("/ftp-sync-1"),children:"Back"}),s.jsx(ae,{variant:"contained",color:"primary",sx:{borderRadius:2,fontWeight:500,textTransform:"none",width:"50%"},onClick:T,children:"Next"})]})]}),s.jsx(Bs,{sx:{background:"#fafafa",borderRadius:4,mt:0,boxShadow:"none",border:"1px solid #eee"},children:a?s.jsx(m,{sx:{p:3,textAlign:"center"},children:"Loading..."}):l?s.jsx(m,{sx:{p:3,color:"red",textAlign:"center"},children:l}):s.jsxs($s,{size:"small",children:[s.jsxs(js,{children:[s.jsxs(er,{children:[s.jsx(Ye,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:80},children:"Columns in FTP"}),f.map((C,E)=>s.jsx(Ye,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:80},children:C},C+E))]}),s.jsxs(er,{children:[s.jsx(Ye,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none"},children:"Columns in Aira"}),f.map((C,E)=>s.jsx(Ye,{sx:{background:"#fafafa",borderBottom:"none"},children:s.jsx(Bt,{value:d[C]||"",onChange:w=>p(I=>({...I,[C]:w.target.value})),variant:"standard",disableUnderline:!0,sx:{minWidth:80,fontWeight:500},children:c.map(w=>s.jsx(Fe,{value:w,children:w},w))})},E))]})]}),s.jsx(Fs,{children:b.map((C,E)=>s.jsxs(er,{children:[s.jsx(Ye,{sx:{fontWeight:700,background:"#fff",borderBottom:"none"},children:E===0?"Data preview":""}),f.map((w,I)=>s.jsx(Ye,{sx:{background:"#fff",borderBottom:"none"},children:C[I]||""},I))]},E))})]})})]})})]})]})}return null},_c=["Upload File","Check data","Start Sync"],$k=()=>{const e=Et(),t=e.state?.editMode||!1,r=e.state?.tenantIntegrationData||null,[n,o]=F.useState(r?.configs?.sync_frequency||"Daily"),[a,l]=F.useState(r?.configs?.sync_time||""),[c]=F.useState(r?.configs?.sync_frequency||"Daily"),[u]=F.useState(r?.configs?.sync_time||""),d=Or(),{tenantId:p}=Ai(),h=Tt(O=>O.ftpSyncSave.syncData),y=O=>{o(O.target.value),d(rn({...h,configs:{...h&&h.configs||{},sync_frequency:O.target.value,sync_time:a}}))},x=O=>{l(O.target.value),d(rn({...h,configs:{...h&&h.configs||{},sync_frequency:n,sync_time:O.target.value}}))};function g(O){try{const M=new URL(O);return{type:M.protocol.replace(":",""),host:M.hostname,port:M.port,path:M.pathname}}catch{return{type:"",host:"",port:"",path:""}}}const[f,b]=F.useState(!1),[S,v]=F.useState(""),T=async()=>{const O=n!==c,M=a!==u;if(!O&&!M){v("No changes detected"),b(!0);return}const A={configs:{...r?.configs,sync_frequency:n,sync_time:a}};try{await d(Ii({tenantId:p,data:A})).unwrap();let $="";O&&M?$="Sync Frequency and Sync Time updated":O?$="Sync Frequency updated":M&&($="Sync Time updated"),v($),b(!0),setTimeout(()=>{E("/product-sync-setting",{state:{fromSettingsIcon:!0}})},1500)}catch{v("Update failed. Please try again."),b(!0)}},C=async()=>{if(t){T();return}const{type:O,host:M,port:A,path:$}=g(h.serverAddress||""),D=h.username||h.configs&&h.configs.username||"",q=h.password||h.configs&&h.configs.password||"",H=h.configs&&h.configs.sync_frequency||n||"",U=h.configs&&h.configs.sync_time||a||"",B=(h.mappings||[]).filter(K=>K.source_field&&K.target_field).map(K=>({source_field:K.source_field,target_table:"catalogue",target_field:K.target_field}));if(!p){alert("Tenant ID is required. Please ensure the app is properly configured.");return}if(!O||!M||!A||!D||!q||B.length===0){alert("Please fill all required fields and mappings before saving.");return}const W={tenantId:p,type:O,isActive:!0,configs:{host:M,port:parseInt(A,10),username:D,password:q,path:$,sync_frequency:H,sync_time:U},entity_type:"catalogue",mappings:B};try{await d(fx(W))?(v("API Call Successfully"),b(!0),console.log("API Call Successfully"),E("/ftp-sync-4")):(v("API call failed. Please try again."),b(!0))}catch{v("API call failed. Please try again."),b(!0)}},E=yt(),[w,I]=F.useState({activeStep:0,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!1,showStartSyncBlueTick:!1});F.useEffect(()=>{let O,M,A,$;return setTimeout(()=>{I({activeStep:0,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!1,showStartSyncBlueTick:!1}),O=setTimeout(()=>{I(D=>({...D,progressToCheckData:!0})),M=setTimeout(()=>{I(D=>({...D,showSetupFtpBlueTick:!0})),A=setTimeout(()=>{I(D=>({...D,showCheckDataBlueTick:!0,activeStep:2})),$=setTimeout(()=>{I(D=>({...D,showStartSyncBlueTick:!0}))},700)},700)},700)},700)},0),()=>{O&&clearTimeout(O),M&&clearTimeout(M),A&&clearTimeout(A),$&&clearTimeout($)}},[]);const z=We(),_=xe(z.breakpoints.down("sm")),N=xe(z.breakpoints.between("sm","lg"));return xe(z.breakpoints.up("lg"))?s.jsxs(m,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[s.jsx(Ve,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:()=>E("/ftp-sync-2")}),s.jsxs(m,{sx:{maxWidth:900,mx:"auto",pt:4},children:[s.jsx(_t,{steps:_c,activeStep:w.activeStep,showCheckDataBlueTick:w.showCheckDataBlueTick,progressToCheckData:w.progressToCheckData,showSetupFtpBlueTick:w.showSetupFtpBlueTick,showStartSyncBlueTick:w.showStartSyncBlueTick}),s.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",mt:4,borderRadius:2,boxShadow:"0 2px 12px #0001"},children:s.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:180,mt:4,mb:4},children:s.jsxs(Re,{elevation:0,sx:{p:2.5,borderRadius:4,minWidth:300,maxWidth:340,width:1,display:"flex",flexDirection:"column",alignItems:"center",bgcolor:"#f5f5f5"},children:[s.jsxs(m,{sx:{display:"flex",flexDirection:"row",gap:2,width:"100%",mb:2},children:[s.jsxs(m,{sx:{flex:1},children:[s.jsx(P,{variant:"subtitle2",sx:{mb:1,fontSize:14,color:"#222"},children:"Sync Frequency"}),s.jsxs(Bt,{size:"small",value:n,onChange:y,sx:{minWidth:100,borderRadius:2,background:"#fafbfc",fontSize:15,height:36},children:[s.jsx(Fe,{value:"Daily",children:"Daily"}),s.jsx(Fe,{value:"Weekly",children:"Weekly"}),s.jsx(Fe,{value:"Monthly",children:"Monthly"})]})]}),s.jsxs(m,{sx:{flex:1},children:[s.jsx(P,{variant:"subtitle2",sx:{mb:1,fontSize:14,color:"#222"},children:"Sync Time"}),s.jsx($o,{type:"time",size:"small",value:a,onChange:x,sx:{minWidth:80,borderRadius:2,background:"#fafbfc",fontSize:15,height:36},InputLabelProps:{shrink:!0},inputProps:{step:300}})]})]}),s.jsxs(m,{sx:{display:"flex",justifyContent:"center",gap:.5,mt:1,width:"100%"},children:[!t&&s.jsx(ae,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:40,fontWeight:500,textTransform:"none",fontSize:11,height:28,bgcolor:"#fff"},onClick:()=>E("/ftp-sync-2"),children:"Back"}),s.jsx(ae,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:80,fontWeight:500,textTransform:"none",fontSize:11,height:28,boxShadow:"none",flex:t?1:"initial"},onClick:C,children:t?"Save":"Save and Start Sync"})]}),s.jsx(Tn,{open:f,autoHideDuration:4e3,onClose:()=>b(!1),message:S,anchorOrigin:{vertical:"top",horizontal:"center"}})]})})})]})]}):N?s.jsxs(m,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[s.jsx(Ve,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:()=>E("/ftp-sync-2")}),s.jsxs(m,{sx:{maxWidth:700,mx:"auto",pt:3},children:[s.jsx(_t,{steps:_c,activeStep:w.activeStep,showCheckDataBlueTick:w.showCheckDataBlueTick,progressToCheckData:w.progressToCheckData,showSetupFtpBlueTick:w.showSetupFtpBlueTick,showStartSyncBlueTick:w.showStartSyncBlueTick}),s.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:320,bgcolor:"#fff",mt:3,borderRadius:2,boxShadow:"0 2px 12px #0001"},children:s.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:140,mt:3,mb:3},children:s.jsxs(Re,{elevation:0,sx:{p:2,borderRadius:4,minWidth:220,maxWidth:300,width:1,display:"flex",flexDirection:"column",alignItems:"center",bgcolor:"#f5f5f5"},children:[s.jsxs(m,{sx:{display:"flex",flexDirection:"row",gap:1,width:"100%",mb:2},children:[s.jsxs(m,{sx:{flex:1},children:[s.jsx(P,{variant:"subtitle2",sx:{mb:1,fontSize:13,color:"#222"},children:"Sync Frequency"}),s.jsxs(Bt,{size:"small",value:n,onChange:y,sx:{minWidth:80,borderRadius:2,background:"#fafbfc",fontSize:13,height:32},children:[s.jsx(Fe,{value:"Daily",children:"Daily"}),s.jsx(Fe,{value:"Weekly",children:"Weekly"}),s.jsx(Fe,{value:"Monthly",children:"Monthly"})]})]}),s.jsxs(m,{sx:{flex:1},children:[s.jsx(P,{variant:"subtitle2",sx:{mb:1,fontSize:13,color:"#222"},children:"Sync Time"}),s.jsx($o,{type:"time",size:"small",value:a,onChange:x,sx:{minWidth:60,borderRadius:2,background:"#fafbfc",fontSize:13,height:32},InputLabelProps:{shrink:!0},inputProps:{step:300}})]})]}),s.jsxs(m,{sx:{display:"flex",justifyContent:"center",gap:1,mt:1,width:"100%"},children:[!t&&s.jsx(ae,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:80,fontWeight:500,textTransform:"none",fontSize:13,height:32,bgcolor:"#fff"},onClick:()=>E("/ftp-sync-2"),children:"Back"}),s.jsx(ae,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:120,fontWeight:500,textTransform:"none",fontSize:13,height:32,boxShadow:"none",flex:t?1:"initial"},onClick:C,children:t?"Save":"Save and Start Sync"})]}),s.jsx(Tn,{open:f,autoHideDuration:4e3,onClose:()=>b(!1),message:S,anchorOrigin:{vertical:"top",horizontal:"center"}})]})})})]})]}):_?s.jsxs(m,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[s.jsx(Ve,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:()=>E("/ftp-sync-2")}),s.jsxs(m,{sx:{maxWidth:360,mx:"auto",pt:2},children:[s.jsx(_t,{steps:_c,activeStep:w.activeStep,showCheckDataBlueTick:w.showCheckDataBlueTick,progressToCheckData:w.progressToCheckData,showSetupFtpBlueTick:w.showSetupFtpBlueTick,showStartSyncBlueTick:w.showStartSyncBlueTick}),s.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:120,bgcolor:"#fff",mt:2,borderRadius:2,boxShadow:"0 2px 12px #0001"},children:s.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:80,mt:2,mb:2},children:s.jsxs(Re,{elevation:0,sx:{p:1.5,borderRadius:4,minWidth:120,maxWidth:220,width:1,display:"flex",flexDirection:"column",alignItems:"center",bgcolor:"#f5f5f5"},children:[s.jsxs(m,{sx:{display:"flex",flexDirection:"row",gap:.5,width:"100%",mb:1},children:[s.jsxs(m,{sx:{flex:1},children:[s.jsx(P,{variant:"subtitle2",sx:{mb:1,fontSize:11,color:"#222"},children:"Sync Frequency"}),s.jsxs(Bt,{size:"small",value:n,onChange:y,sx:{minWidth:60,borderRadius:2,background:"#fafbfc",fontSize:11,height:28},children:[s.jsx(Fe,{value:"Daily",children:"Daily"}),s.jsx(Fe,{value:"Weekly",children:"Weekly"}),s.jsx(Fe,{value:"Monthly",children:"Monthly"})]})]}),s.jsxs(m,{sx:{flex:1},children:[s.jsx(P,{variant:"subtitle2",sx:{mb:1,fontSize:11,color:"#222"},children:"Sync Time"}),s.jsx($o,{type:"time",size:"small",value:a,onChange:x,sx:{minWidth:40,borderRadius:2,background:"#fafbfc",fontSize:11,height:28},InputLabelProps:{shrink:!0},inputProps:{step:300}})]})]}),s.jsxs(m,{sx:{display:"flex",justifyContent:"center",gap:.5,mt:1,width:"100%"},children:[!t&&s.jsx(ae,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:40,fontWeight:500,textTransform:"none",fontSize:11,height:28,bgcolor:"#fff"},onClick:()=>E("/ftp-sync-2"),children:"Back"}),s.jsx(ae,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:80,fontWeight:500,textTransform:"none",fontSize:11,height:28,boxShadow:"none",flex:t?1:"initial"},onClick:C,children:t?"Save":"Save and Start Sync"})]}),s.jsx(Tn,{open:f,autoHideDuration:4e3,onClose:()=>b(!1),message:S,anchorOrigin:{vertical:"top",horizontal:"center"}})]})})})]})]}):null},Ac=["Upload File","Check data","Start Sync"];Array.from({length:8}).map(()=>({id:"S123",name:"Gurgaon Store",q1:"Answer 1",q2:"Answer 2"}));const Fk=()=>{const e=Or(),t=Tt(p=>p.ftpSyncSave.success),[r,n]=F.useState(t),o=yt();F.useEffect(()=>{t&&(n(!0),e(px()))},[t,e]);const a={showCheckDataBlueTick:!0,showSetupFtpBlueTick:!0,showStartSyncBlueTick:!0},l=We(),c=xe(l.breakpoints.down("sm")),u=xe(l.breakpoints.between("sm","lg"));return xe(l.breakpoints.up("lg"))?s.jsxs(s.Fragment,{children:[s.jsx(Tn,{open:r,autoHideDuration:4e3,onClose:()=>n(!1),message:"Sync setup successful!",anchorOrigin:{vertical:"top",horizontal:"center"}}),s.jsxs(m,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[s.jsx(Ve,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:()=>o("/ftp-sync-3")}),s.jsxs(m,{sx:{maxWidth:900,mx:"auto",pt:4},children:[s.jsx(_t,{steps:Ac,showCheckDataBlueTick:a.showCheckDataBlueTick,showSetupFtpBlueTick:a.showSetupFtpBlueTick,showStartSyncBlueTick:a.showStartSyncBlueTick,activeStep:2,progressToCheckData:!0,instantComplete:!0}),s.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",mt:4,borderRadius:2,boxShadow:"0 2px 12px #0001"},children:s.jsxs(m,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:320,py:6,bgcolor:"#f5f5f5",borderRadius:5},children:[s.jsx(m,{sx:{width:48,height:48,borderRadius:"50%",background:"#2563eb",display:"flex",alignItems:"center",justifyContent:"center",mb:2},children:s.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",children:s.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#fff",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})}),s.jsx(P,{sx:{fontSize:17,color:"#222",mb:1,fontWeight:500},children:"Sync Setup Successfully"}),s.jsx(ae,{variant:"text",sx:{color:"#2563eb",fontWeight:500,fontSize:15,textTransform:"none",mt:1},onClick:()=>o("/products"),children:"Back to all products"})]})})]})]}),s.jsx(Tn,{open:r,autoHideDuration:4e3,onClose:()=>n(!1),message:"Integration saved & sync started",anchorOrigin:{vertical:"top",horizontal:"center"}})]}):u?s.jsxs(m,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[s.jsx(Ve,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:()=>o("/ftp-sync-3")}),s.jsxs(m,{sx:{maxWidth:700,mx:"auto",pt:3},children:[s.jsx(_t,{steps:Ac,showCheckDataBlueTick:a.showCheckDataBlueTick,showSetupFtpBlueTick:a.showSetupFtpBlueTick,showStartSyncBlueTick:a.showStartSyncBlueTick,activeStep:2,progressToCheckData:!0,instantComplete:!0}),s.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:320,bgcolor:"#fff",mt:3,borderRadius:2,boxShadow:"0 2px 12px #0001"},children:s.jsxs(m,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:220,py:4,bgcolor:"#f5f5f5",borderRadius:5},children:[s.jsx(m,{sx:{width:36,height:36,borderRadius:"50%",background:"#2563eb",display:"flex",alignItems:"center",justifyContent:"center",mb:2},children:s.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",children:s.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#fff",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})}),s.jsx(P,{sx:{fontSize:13,color:"#222",mb:1,fontWeight:500},children:"Sync Setup Successfully"}),s.jsx(ae,{variant:"text",sx:{color:"#2563eb",fontWeight:500,fontSize:12,textTransform:"none",mt:1},onClick:()=>o("/products"),children:"Back to all products"})]})})]})]}):c?s.jsxs(m,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[s.jsx(Ve,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:()=>o("/ftp-sync-3")}),s.jsxs(m,{sx:{maxWidth:360,mx:"auto",pt:2},children:[s.jsx(_t,{steps:Ac,showCheckDataBlueTick:a.showCheckDataBlueTick,showSetupFtpBlueTick:a.showSetupFtpBlueTick,showStartSyncBlueTick:a.showStartSyncBlueTick,activeStep:2,progressToCheckData:!0,instantComplete:!0}),s.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:420,bgcolor:"#fff",mt:2,borderRadius:2,boxShadow:"0 2px 12px #0001"},children:s.jsxs(m,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:280,height:280,py:2,bgcolor:"#f5f5f5",borderRadius:5},children:[s.jsx(m,{sx:{width:60,height:60,borderRadius:"50%",background:"#2563eb",display:"flex",alignItems:"center",justifyContent:"center",mb:1},children:s.jsx("svg",{width:"30",height:"30",viewBox:"0 0 24 24",fill:"none",children:s.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#fff",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})}),s.jsx(P,{sx:{fontSize:20,color:"#222",mb:1,fontWeight:500},children:"Sync Setup Successfully"}),s.jsx(ae,{variant:"text",sx:{color:"#2563eb",fontWeight:500,fontSize:20,textTransform:"none",mt:1},onClick:()=>o("/products"),children:"Back to all products"})]})})]})]}):null},eg=[{name:"Christmas Super Sale 2025",url:"/christmas-super-sale-2025",views:4567,type:"Public",avatar:"M",userImg:"https://randomuser.me/api/portraits/men/32.jpg"},{name:"Christmas Super Sale 2025",url:"/christmas-super-sale-2025",views:4567,type:"Public",avatar:"M",userImg:"https://randomuser.me/api/portraits/men/32.jpg"},{name:"Christmas Super Sale 2025",url:"/christmas-super-sale-2025",views:4567,type:"Public",avatar:"M"}],tg=Array.from({length:24}).map(()=>({name:"Christmas Super Sale 2025",url:"/christmas-super-sale-2025",views:4567,type:"Unlisted",avatar:"M"}));function Bk(){const e=yt();return s.jsxs(m,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:[s.jsx(Ve,{title:"Manage Shared Catalogs",breadcrumbs:[{label:"Products",to:"/product"},{label:"Settings",to:"/settings"},{label:"Manage Shared Catalogs"}],onBack:()=>e("/")}),s.jsxs(m,{sx:{maxWidth:900,mx:"auto",pt:4},children:[s.jsxs(P,{sx:{fontWeight:600,fontSize:18,mb:2},children:["Public Catalogs ",s.jsx("span",{style:{color:"#888",fontWeight:400,fontSize:15},children:eg.length})]}),eg.map((t,r)=>s.jsxs(Re,{sx:{p:2,mb:2,borderRadius:3,display:"flex",alignItems:"center",boxShadow:"0 2px 12px #0001"},children:[s.jsxs(m,{sx:{display:"flex",flexDirection:"column",flex:1},children:[s.jsx(P,{sx:{fontWeight:500,fontSize:16},children:t.name}),s.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1,mt:.5},children:[s.jsxs("svg",{width:"16",height:"16",fill:"none",viewBox:"0 0 24 24",children:[s.jsx("path",{d:"M7 17h10M7 13h10M7 9h10M5 7v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2Z",stroke:"#888",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M8 7v2a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V7",stroke:"#888",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),s.jsx(P,{sx:{color:"#888",fontSize:14},children:t.url}),s.jsxs(P,{sx:{color:"#888",fontSize:14},children:[t.views," views"]})]})]}),s.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:2,ml:1},children:[s.jsxs(Bt,{size:"small",value:t.type,sx:{minWidth:140,border:"2px solid #ffffff",borderRadius:2,fontWeight:500,fontSize:20,height:48,boxShadow:"none",".MuiOutlinedInput-notchedOutline":{border:"none"},px:2,display:"flex",alignItems:"center"},IconComponent:n=>s.jsx("svg",{...n,width:"24",height:"24",viewBox:"0 0 24 24",style:{right:12,position:"absolute"},children:s.jsx("path",{d:"M7 10l5 5 5-5",stroke:"#888",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),children:[s.jsx(Fe,{value:"Public",sx:{fontSize:20,fontWeight:500},children:"Public"}),s.jsx(Fe,{value:"Unlisted",sx:{fontSize:20,fontWeight:500},children:"Unlisted"})]}),s.jsx(it,{sx:{ml:2},children:s.jsx(Zh,{sx:{fontSize:28,color:"#888"}})})]})]},r)),s.jsxs(P,{sx:{fontWeight:600,fontSize:18,mb:2},children:["Unlisted Catalogs ",s.jsx("span",{style:{color:"#888",fontWeight:400,fontSize:15},children:tg.length})]}),tg.map((t,r)=>s.jsxs(Re,{sx:{p:2,mb:2,borderRadius:3,display:"flex",alignItems:"center",boxShadow:"0 2px 12px #0001"},children:[s.jsxs(m,{sx:{display:"flex",flexDirection:"column",flex:1},children:[s.jsx(P,{sx:{fontWeight:500,fontSize:16},children:t.name}),s.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1,mt:.5},children:[s.jsxs("svg",{width:"16",height:"16",fill:"none",viewBox:"0 0 24 24",children:[s.jsx("path",{d:"M7 17h10M7 13h10M7 9h10M5 7v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2Z",stroke:"#888",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M8 7v2a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V7",stroke:"#888",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),s.jsx(P,{sx:{color:"#888",fontSize:14},children:t.url}),s.jsxs(P,{sx:{color:"#888",fontSize:14},children:[t.views," views"]})]})]}),s.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:2,ml:1},children:[s.jsxs(Bt,{size:"small",value:t.type,sx:{minWidth:120,borderRadius:2,fontWeight:500,fontSize:18,height:48,boxShadow:"none",".MuiOutlinedInput-notchedOutline":{border:"none"},px:2},children:[s.jsx(Fe,{value:"Public",sx:{fontSize:18,fontWeight:500},children:"Public"}),s.jsx(Fe,{value:"Unlisted",sx:{fontSize:18,fontWeight:500},children:"Unlisted"})]}),s.jsx(it,{sx:{ml:1},children:s.jsx(Zh,{sx:{fontSize:28,color:"#888"}})})]})]},r))]})]})}function jk({StoresModal:e,storesModalProps:t,onStoreSelect:r}){return s.jsxs(Jg,{children:[s.jsx(ut,{path:"/",element:s.jsx(yc,{})}),s.jsx(ut,{path:"/home",element:s.jsx(wk,{})}),s.jsx(ut,{path:"/products",element:s.jsx(Sk,{StoresModal:e,storesModalProps:t,onStoreSelect:r})}),s.jsx(ut,{path:"/categories",element:s.jsx(kk,{})}),s.jsx(ut,{path:"/settings",element:s.jsx(Pk,{})}),s.jsx(ut,{path:"/empty-products",element:s.jsx(yc,{})}),s.jsx(ut,{path:"/product-sync-setting",element:s.jsx(Ok,{})}),s.jsx(ut,{path:"/ftp-sync",element:s.jsx(Ik,{})}),s.jsx(ut,{path:"/ftp-sync-1",element:s.jsx(Nk,{})}),s.jsx(ut,{path:"/ftp-sync-2",element:s.jsx(zk,{})}),s.jsx(ut,{path:"/ftp-sync-3",element:s.jsx($k,{})}),s.jsx(ut,{path:"/ftp-sync-4",element:s.jsx(Fk,{})}),s.jsx(ut,{path:"/catalogs/manage-shared",element:s.jsx(Bk,{})})]})}const Wk=()=>s.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",width:"100%"},children:s.jsx("div",{children:"Loading..."})});return({apiUrl:e,authToken:t,tenantId:r,basePath:n="/",StoresModal:o,storesModalProps:a,onStoreSelect:l})=>s.jsx("div",{style:{width:"100%",minHeight:"100vh"},children:s.jsx(Nx,{apiUrl:e,authToken:t,tenantId:r,children:s.jsx(Lb,{store:Qu,children:s.jsx(Gb.PersistGate,{loading:s.jsx(Wk,{}),persistor:Ix,children:s.jsx(ub,{basename:n,children:s.jsx(jk,{StoresModal:o,storesModalProps:a,onStoreSelect:l})})})})})})}));
|
|
480
|
+
`;console.log("Generated stickers HTML length:",f.length),console.log("Generated HTML content length:",m.length);try{o.document.open(),o.document.write(m),o.document.close(),console.log("HTML written successfully to print window")}catch(x){console.error("Error writing to print window:",x),alert("Error generating print preview. Please check console for details.")}},Sd=({open:e,onClose:t,selectedProducts:r=[]})=>{const n=Ge(),o=Ze(n.breakpoints.down("sm")),s=Ze(n.breakpoints.between("sm","md")),l=Pt(),c=Ar(),d=Mr(),[p,u]=$.useState({productName:!0,mrp:!0,percentOff:!0,discountPrice:!0}),[h,v]=$.useState("design1"),[g,y]=$.useState("A5"),f=b=>u(w=>({...w,[b]:!w[b]})),m=()=>{if(!r||r.length===0){alert("No products selected. Please select products first.");return}XP({selectedProducts:r,selectedDesign:h,sheetSize:g,itemsToShow:p}),t()};if(o){const b=c.promoPrintModal;return a.jsxs(Un,{open:e,onClose:t,maxWidth:"sm",fullWidth:!0,PaperProps:{sx:b.dialog},BackdropProps:{sx:{backdropFilter:"blur(4px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},children:[a.jsx(Rn,{children:a.jsxs(E,{sx:b.header,children:[a.jsx(P,{variant:"h6",fontWeight:600,children:"Promo Print"}),a.jsx(Wt,{onClick:t,size:"small",children:a.jsx(wi,{size:20})})]})}),a.jsxs(Hn,{sx:b.content,children:[a.jsxs(E,{sx:b.section,children:[a.jsx(P,{sx:b.sectionTitle,children:"Items to show"}),a.jsxs(E,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:1,columnGap:3},children:[a.jsx(xt,{control:a.jsx(Qe,{checked:p.productName,onChange:()=>f("productName"),size:"small"}),label:"Product Name",sx:b.checkboxLabel}),a.jsx(xt,{control:a.jsx(Qe,{checked:p.percentOff,onChange:()=>f("percentOff"),size:"small"}),label:"Percent OFF",sx:b.checkboxLabel}),a.jsx(xt,{control:a.jsx(Qe,{checked:p.mrp,onChange:()=>f("mrp"),size:"small"}),label:"MRP",sx:b.checkboxLabel}),a.jsx(xt,{control:a.jsx(Qe,{checked:p.discountPrice,onChange:()=>f("discountPrice"),size:"small"}),label:"Discount Price",sx:b.checkboxLabel})]})]}),a.jsxs(E,{sx:b.section,children:[a.jsx(P,{sx:b.sectionTitle,children:"Promo Design"}),a.jsxs(E,{sx:b.designContainer,children:[a.jsxs(E,{onClick:()=>v("design1"),sx:{...b.designCard.base,...h==="design1"?b.designCard.selected:b.designCard.unselected},children:[a.jsxs(E,{sx:b.design1.topSection,children:[a.jsx(P,{sx:{...b.design1.saveText,visibility:p.percentOff?"visible":"hidden"},children:"SAVE"}),a.jsxs(P,{sx:{...b.design1.percentText,visibility:p.percentOff?"visible":"hidden"},children:["5",a.jsx(P,{component:"span",sx:b.design1.percentSymbol,children:"%"})]})]}),a.jsxs(E,{sx:b.design1.bottomSection,children:[a.jsxs(E,{sx:{...b.design1.priceRow,visibility:p.discountPrice||p.mrp?"visible":"hidden"},children:[a.jsx(P,{sx:{...b.design1.priceText,...b.design1.ourPrice,visibility:p.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),a.jsx(P,{sx:{...b.design1.priceText,visibility:p.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]}),a.jsx(P,{sx:{...b.design1.productName,visibility:p.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"})]})]}),a.jsxs(E,{onClick:()=>v("design2"),sx:{...b.designCard.base,...h==="design2"?b.designCard.selected:b.designCard.unselected},children:[a.jsxs(E,{sx:b.design2.topSection,children:[a.jsxs(P,{sx:{...b.design2.percentOffText,visibility:p.percentOff?"visible":"hidden"},children:["5",a.jsx(P,{component:"span",sx:b.design2.percentSymbol,children:"%"})," OFF"]}),a.jsx(P,{sx:{...b.design2.productName,visibility:p.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"})]}),a.jsxs(E,{sx:{...b.design2.priceRow,visibility:p.discountPrice||p.mrp?"visible":"hidden"},children:[a.jsx(P,{sx:{...b.design2.priceText,visibility:p.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),a.jsx(P,{sx:{...b.design2.priceText,visibility:p.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]})]}),a.jsxs(E,{onClick:()=>v("design3"),sx:{...b.designCard.base,...h==="design3"?b.designCard.selected:b.designCard.unselected},children:[a.jsx(P,{sx:{...b.design3.productName,visibility:p.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500G COFFEE BIB"}),a.jsxs(E,{sx:{...b.design3.priceRow,visibility:p.discountPrice||p.mrp?"visible":"hidden"},children:[a.jsx(P,{sx:{...b.design3.priceText,visibility:p.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),a.jsx(P,{sx:{...b.design3.priceText,visibility:p.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]}),a.jsxs(P,{sx:{...b.design3.percentOffText,visibility:p.percentOff?"visible":"hidden"},children:["5",a.jsx(P,{component:"span",sx:b.design3.percentSymbol,children:"%"})," OFF"]})]})]})]}),a.jsxs(E,{children:[a.jsxs(E,{sx:b.sheetSizeHeader||{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1.5},children:[a.jsx(P,{variant:"subtitle2",fontWeight:600,children:"Sheet Size"}),a.jsx(P,{variant:"caption",color:"text.secondary",children:"Stickers per sheet: 20"})]}),a.jsx(E,{sx:b.sheetSizeGroup,children:["A2","A3","A4","A5","A7"].map(w=>a.jsx(E,{onClick:()=>y(w),sx:{...b.sheetSizeBtn,...g===w?b.sheetSizeBtnSelected:{}},children:a.jsx(P,{variant:"body2",textAlign:"center",children:w})},w))})]})]}),a.jsx(ai,{sx:b.actions||{px:3,pb:2},children:a.jsx(Se,{type:"button",onClick:m,variant:"contained",sx:b.printButton,children:"Print"})})]})}if(s){const b=d.promoPrintModal;return a.jsxs(Un,{open:e,onClose:t,maxWidth:"sm",fullWidth:!0,PaperProps:{sx:b.dialog},BackdropProps:{sx:{backdropFilter:"blur(4px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},children:[a.jsx(Rn,{children:a.jsxs(E,{sx:b.header,children:[a.jsx(P,{variant:"h6",fontWeight:600,children:"Promo Print"}),a.jsx(Wt,{onClick:t,size:"small",children:a.jsx(wi,{size:20})})]})}),a.jsxs(Hn,{sx:b.content,children:[a.jsxs(E,{sx:b.section,children:[a.jsx(P,{sx:b.sectionTitle,children:"Items to show"}),a.jsxs(E,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:1,columnGap:3},children:[a.jsx(xt,{control:a.jsx(Qe,{checked:p.productName,onChange:()=>f("productName"),size:"small"}),label:"Product Name",sx:b.checkboxLabel}),a.jsx(xt,{control:a.jsx(Qe,{checked:p.percentOff,onChange:()=>f("percentOff"),size:"small"}),label:"Percent OFF",sx:b.checkboxLabel}),a.jsx(xt,{control:a.jsx(Qe,{checked:p.mrp,onChange:()=>f("mrp"),size:"small"}),label:"MRP",sx:b.checkboxLabel}),a.jsx(xt,{control:a.jsx(Qe,{checked:p.discountPrice,onChange:()=>f("discountPrice"),size:"small"}),label:"Discount Price",sx:b.checkboxLabel})]})]}),a.jsxs(E,{sx:b.section,children:[a.jsx(P,{sx:b.sectionTitle,children:"Promo Design"}),a.jsxs(E,{sx:b.designContainer,children:[a.jsxs(E,{onClick:()=>v("design1"),sx:{...b.designCard.base,...h==="design1"?b.designCard.selected:b.designCard.unselected},children:[a.jsxs(E,{sx:b.design1.topSection,children:[a.jsx(P,{sx:{...b.design1.saveText,visibility:p.percentOff?"visible":"hidden"},children:"SAVE"}),a.jsxs(P,{sx:{...b.design1.percentText,visibility:p.percentOff?"visible":"hidden"},children:["5",a.jsx(P,{component:"span",sx:b.design1.percentSymbol,children:"%"})]})]}),a.jsxs(E,{sx:b.design1.bottomSection,children:[a.jsxs(E,{sx:{...b.design1.priceRow,visibility:p.discountPrice||p.mrp?"visible":"hidden"},children:[a.jsx(P,{sx:{...b.design1.priceText,...b.design1.ourPrice,visibility:p.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),a.jsx(P,{sx:{...b.design1.priceText,visibility:p.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]}),a.jsx(P,{sx:{...b.design1.productName,visibility:p.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"})]})]}),a.jsxs(E,{onClick:()=>v("design2"),sx:{...b.designCard.base,...h==="design2"?b.designCard.selected:b.designCard.unselected},children:[a.jsxs(E,{sx:b.design2.topSection,children:[a.jsxs(P,{sx:{...b.design2.percentOffText,visibility:p.percentOff?"visible":"hidden"},children:["5",a.jsx(P,{component:"span",sx:b.design2.percentSymbol,children:"%"})," OFF"]}),a.jsx(P,{sx:{...b.design2.productName,visibility:p.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"})]}),a.jsxs(E,{sx:{...b.design2.priceRow,visibility:p.discountPrice||p.mrp?"visible":"hidden"},children:[a.jsx(P,{sx:{...b.design2.priceText,visibility:p.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),a.jsx(P,{sx:{...b.design2.priceText,visibility:p.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]})]}),a.jsxs(E,{onClick:()=>v("design3"),sx:{...b.designCard.base,...h==="design3"?b.designCard.selected:b.designCard.unselected},children:[a.jsx(P,{sx:{...b.design3.productName,visibility:p.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500G COFFEE BIB"}),a.jsxs(E,{sx:{...b.design3.priceRow,visibility:p.discountPrice||p.mrp?"visible":"hidden"},children:[a.jsx(P,{sx:{...b.design3.priceText,visibility:p.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),a.jsx(P,{sx:{...b.design3.priceText,visibility:p.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]}),a.jsxs(P,{sx:{...b.design3.percentOffText,visibility:p.percentOff?"visible":"hidden"},children:["5",a.jsx(P,{component:"span",sx:b.design3.percentSymbol,children:"%"})," OFF"]})]})]})]}),a.jsxs(E,{children:[a.jsxs(E,{sx:b.sheetSizeHeader||{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1.5},children:[a.jsx(P,{variant:"subtitle2",fontWeight:600,children:"Sheet Size"}),a.jsx(P,{variant:"caption",color:"text.secondary",children:"Stickers per sheet: 20"})]}),a.jsx(E,{sx:b.sheetSizeGroup,children:["A2","A3","A4","A5","A7"].map(w=>a.jsx(E,{onClick:()=>y(w),sx:{...b.sheetSizeBtn,...g===w?b.sheetSizeBtnSelected:{}},children:a.jsx(P,{variant:"body2",textAlign:"center",children:w})},w))})]})]}),a.jsx(ai,{sx:b.actions||{px:3,pb:2},children:a.jsx(Se,{type:"button",onClick:m,variant:"contained",sx:b.printButton,children:"Print"})})]})}const x=l.promoPrintModal;return a.jsxs(Un,{open:e,onClose:t,maxWidth:"sm",fullWidth:!0,PaperProps:{sx:x.dialog},BackdropProps:{sx:{backdropFilter:"blur(4px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},children:[a.jsx(Rn,{children:a.jsxs(E,{sx:x.header,children:[a.jsx(P,{variant:"h6",fontWeight:600,children:"Promo Print"}),a.jsx(Wt,{onClick:t,size:"small",children:a.jsx(wi,{size:20})})]})}),a.jsxs(Hn,{sx:x.content,children:[a.jsxs(E,{sx:x.section,children:[a.jsx(P,{sx:x.sectionTitle,children:"Items to show"}),a.jsxs(E,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:1,columnGap:3},children:[a.jsx(xt,{control:a.jsx(Qe,{checked:p.productName,onChange:()=>f("productName"),size:"small"}),label:"Product Name",sx:x.checkboxLabel}),a.jsx(xt,{control:a.jsx(Qe,{checked:p.percentOff,onChange:()=>f("percentOff"),size:"small"}),label:"Percent OFF",sx:x.checkboxLabel}),a.jsx(xt,{control:a.jsx(Qe,{checked:p.mrp,onChange:()=>f("mrp"),size:"small"}),label:"MRP",sx:x.checkboxLabel}),a.jsx(xt,{control:a.jsx(Qe,{checked:p.discountPrice,onChange:()=>f("discountPrice"),size:"small"}),label:"Discount Price",sx:x.checkboxLabel})]})]}),a.jsxs(E,{sx:x.section,children:[a.jsx(P,{sx:x.sectionTitle,children:"Promo Design"}),a.jsxs(E,{sx:x.designContainer,children:[a.jsxs(E,{onClick:()=>v("design1"),sx:{...x.designCard.base,...h==="design1"?x.designCard.selected:x.designCard.unselected},children:[a.jsxs(E,{sx:x.design1.topSection,children:[a.jsx(P,{sx:{...x.design1.saveText,visibility:p.percentOff?"visible":"hidden"},children:"SAVE"}),a.jsxs(P,{sx:{...x.design1.percentText,visibility:p.percentOff?"visible":"hidden"},children:["5",a.jsx(P,{component:"span",sx:x.design1.percentSymbol,children:"%"})]})]}),a.jsxs(E,{sx:x.design1.bottomSection,children:[a.jsxs(E,{sx:{...x.design1.priceRow,visibility:p.discountPrice||p.mrp?"visible":"hidden"},children:[a.jsx(P,{sx:{...x.design1.priceText,...x.design1.ourPrice,visibility:p.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),a.jsx(P,{sx:{...x.design1.priceText,visibility:p.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]}),a.jsx(P,{sx:{...x.design1.productName,visibility:p.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"})]})]}),a.jsxs(E,{onClick:()=>v("design2"),sx:{...x.designCard.base,...h==="design2"?x.designCard.selected:x.designCard.unselected},children:[a.jsxs(E,{sx:x.design2.topSection,children:[a.jsxs(P,{sx:{...x.design2.percentOffText,visibility:p.percentOff?"visible":"hidden"},children:["5",a.jsx(P,{component:"span",sx:x.design2.percentSymbol,children:"%"})," OFF"]}),a.jsx(P,{sx:{...x.design2.productName,visibility:p.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"})]}),a.jsxs(E,{sx:{...x.design2.priceRow,visibility:p.discountPrice||p.mrp?"visible":"hidden"},children:[a.jsx(P,{sx:{...x.design2.priceText,visibility:p.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),a.jsx(P,{sx:{...x.design2.priceText,visibility:p.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]})]}),a.jsxs(E,{onClick:()=>v("design3"),sx:{...x.designCard.base,...h==="design3"?x.designCard.selected:x.designCard.unselected},children:[a.jsx(P,{sx:{...x.design3.productName,visibility:p.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500G COFFEE BIB"}),a.jsxs(E,{sx:{...x.design3.priceRow,visibility:p.discountPrice||p.mrp?"visible":"hidden"},children:[a.jsx(P,{sx:{...x.design3.priceText,visibility:p.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),a.jsx(P,{sx:{...x.design3.priceText,visibility:p.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]}),a.jsxs(P,{sx:{...x.design3.percentOffText,visibility:p.percentOff?"visible":"hidden"},children:["5",a.jsx(P,{component:"span",sx:x.design3.percentSymbol,children:"%"})," OFF"]})]})]})]}),a.jsxs(E,{children:[a.jsxs(E,{sx:x.sheetSizeHeader||{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1.5},children:[a.jsx(P,{variant:"subtitle2",fontWeight:600,children:"Sheet Size"}),a.jsx(P,{variant:"caption",color:"text.secondary",children:"Stickers per sheet: 20"})]}),a.jsx(E,{sx:x.sheetSizeGroup,children:["A2","A3","A4","A5","A7"].map(b=>a.jsx(E,{onClick:()=>y(b),sx:{...x.sheetSizeBtn,...g===b?x.sheetSizeBtnSelected:{}},children:a.jsx(P,{variant:"body2",textAlign:"center",children:b})},b))})]})]}),a.jsx(ai,{sx:x.actions||{px:3,pb:2},children:a.jsx(Se,{type:"button",onClick:m,variant:"contained",sx:x.printButton,children:"Print"})})]})},JP=ht(a.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"),QP=ht(a.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");function wd({onClose:e,selectedCount:t=3,open:r,stores:n=[]}){const[o,s]=$.useState("Christmas Super Sale 2025"),[l,c]=$.useState("company.ariaops.com/catalog/christmas-super-sale-2025"),[d,p]=$.useState("all"),[u,h]=$.useState("Unlisted"),[v,g]=$.useState(!1);return a.jsxs(Un,{open:r,onClose:e,maxWidth:"sm",fullWidth:!0,PaperProps:{sx:{borderRadius:3,p:4}},BackdropProps:{sx:{backdropFilter:"blur(6px)",backgroundColor:"rgba(0,0,0,0.15)"}},children:[a.jsx(Rn,{children:a.jsxs(E,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[a.jsxs(P,{variant:"h6",fontWeight:600,children:["Create Catalog Of ",t," Items"]}),a.jsx(Wt,{onClick:e,size:"small","aria-label":"Close",children:a.jsx(JP,{})})]})}),a.jsxs(Hn,{sx:{pt:1},children:[a.jsx(P,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"Catalog Name"}),a.jsx("input",{type:"text",value:o,onChange:y=>s(y.target.value),style:{width:"100%",marginBottom:16,padding:"10px 12px",fontSize:16,fontWeight:500,border:"1px solid #d1d5db",borderRadius:6,outline:"none",background:"#fff",color:"#222",boxSizing:"border-box"}}),a.jsx(P,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"Catalog Link"}),a.jsxs("div",{style:{position:"relative",marginBottom:16},children:[a.jsx("input",{type:"text",value:l,onChange:y=>c(y.target.value),style:{width:"100%",padding:"10px 36px 10px 12px",fontSize:16,fontWeight:500,border:"1px solid #d1d5db",borderRadius:6,outline:"none",background:"#f5f7fa",color:"#888",boxSizing:"border-box"}}),l&&a.jsx(Ci,{color:"success",fontSize:"small",style:{position:"absolute",right:12,top:"50%",transform:"translateY(-50%)"}})]}),a.jsx(P,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"For These Stores"}),a.jsxs(E,{sx:{position:"relative",mb:3},children:[a.jsxs(E,{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:"#fff"},onClick:()=>g(y=>!y),children:[a.jsx(E,{sx:{display:"flex",alignItems:"center",mr:1},children:a.jsxs("svg",{width:"20",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("rect",{width:"20",height:"20",rx:"4",fill:"#F5F7FA"}),a.jsx("path",{d:"M7.5 8.5a2.5 2.5 0 1 1 5 0v1a2.5 2.5 0 1 1-5 0v-1Z",stroke:"#222",strokeWidth:"1.2"}),a.jsx("rect",{x:"3.5",y:"5.5",width:"13",height:"9",rx:"2.5",stroke:"#222",strokeWidth:"1.2"})]})}),a.jsx("span",{style:{fontWeight:700,color:"#222",marginRight:4},children:d==="all"?"All Stores":n.find(y=>y.id===d)?.name||"Select Store"}),a.jsx("span",{style:{color:"#888",fontWeight:400,fontSize:15,marginLeft:4},children:` ${n.filter(y=>y.id!=="all").length} stores`}),a.jsx(QP,{sx:{color:"#888",ml:"auto"}})]}),v&&a.jsx(E,{sx:{position:"absolute",left:0,right:0,top:"100%",zIndex:10,bgcolor:"#fff",border:"1px solid #e0e0e0",borderRadius:"8px",boxShadow:"0 4px 16px rgba(0,0,0,0.08)",mt:1,maxHeight:220,overflowY:"auto"},children:n.map(y=>a.jsx(E,{sx:{px:2,py:1.2,cursor:"pointer",fontWeight:d===y.id?700:400,color:d===y.id?"#222":"#444",background:d===y.id?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>{p(y.id),g(!1)},children:y.name},y.id))})]}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:3},children:[a.jsxs(E,{sx:{display:"flex",gap:2},children:[a.jsx(Se,{onClick:()=>h("Public"),sx:{minWidth:100,borderRadius:2,bgcolor:"#F5F5F5",color:"#454545",fontWeight:500,boxShadow:"none"},children:"Public"}),a.jsx(Se,{onClick:()=>h("Unlisted"),sx:{minWidth:100,borderRadius:2,bgcolor:"#F3F8FF",color:"#888",fontWeight:500,border:"1px solid #2D64B8"},children:"Unlisted"})]}),a.jsx(Se,{variant:"contained",color:"primary",sx:{minWidth:140,height:48,borderRadius:2,fontWeight:600,fontSize:16,boxShadow:"none"},children:"Create"})]})]})]})}const ZP=({selectedProducts:e=[],stores:t=[]})=>{const[r,n]=$.useState(!1),o=Ge(),s=Ze(o.breakpoints.down("sm")),l=Ze(o.breakpoints.between("sm","md")),c=Pt(),d=Ar(),p=Mr(),[u,h]=$.useState(!1);if(!e||e.length===0)return null;if(s){const g=d.floatingActions;return a.jsxs(a.Fragment,{children:[a.jsxs(E,{sx:g.root,"data-floating-actions":!0,children:[a.jsxs(P,{sx:g.countText,children:[e.length," items selected"]}),a.jsxs(E,{sx:g.buttonRow,children:[a.jsxs(Se,{onClick:()=>n(!0),sx:g.btn,children:[a.jsx(Si,{size:18}),"Promo Print"]}),a.jsxs(Se,{sx:g.btn,onClick:()=>h(!0),children:[a.jsx(xi,{size:18}),"Create Catalog"]})]})]}),a.jsx(Sd,{open:r,onClose:()=>n(!1),selectedProducts:e}),u&&a.jsx(E,{sx:{position:"fixed",zIndex:1299,top:0,left:0,width:"100vw",height:"100vh",bgcolor:"rgba(255,255,255,0.4)",backdropFilter:"blur(36px)",WebkitBackdropFilter:"blur(36px)",transition:"all 0.2s"}}),a.jsx(wd,{onClose:()=>h(!1),selectedCount:e.length,open:u,stores:t})]})}if(l){const g=p.floatingActions;return a.jsxs(a.Fragment,{children:[a.jsx(E,{sx:g.root,children:a.jsxs(E,{sx:g.inner,children:[a.jsxs(P,{sx:g.count,children:[e.length," items selected"]}),a.jsx(E,{sx:g.divider}),a.jsxs(Se,{sx:g.btn,onClick:()=>n(!0),children:[a.jsx(Si,{size:16}),a.jsx("span",{children:"Promo Print"})]}),a.jsxs(Se,{sx:g.btn,onClick:()=>h(!0),children:[a.jsx(xi,{size:16}),a.jsx("span",{children:"Create Catalog"})]})]})}),a.jsx(Sd,{open:r,onClose:()=>n(!1),selectedProducts:e}),a.jsx(wd,{onClose:()=>h(!1),selectedCount:e.length,open:u,stores:t})]})}const v=c.floatingActions;return a.jsxs(a.Fragment,{children:[a.jsx(E,{sx:v.root,children:a.jsxs(E,{sx:v.inner,children:[a.jsxs(P,{sx:v.count,children:[e.length," items selected"]}),a.jsxs(Se,{sx:v.btn,onClick:()=>n(!0),children:[a.jsx(Si,{size:16}),a.jsx("span",{children:"Promo Print"})]}),a.jsxs(Se,{sx:v.btn,onClick:()=>h(!0),children:[a.jsx(xi,{size:16}),a.jsx("span",{children:"Create Catalog"})]})]})}),a.jsx(Sd,{open:r,onClose:()=>n(!1),selectedProducts:e}),a.jsx(wd,{onClose:()=>h(!1),selectedCount:e.length,open:u,stores:t})]})},py=[{key:"storeId",label:"Store ID",type:"number"},{key:"productId",label:"Product ID",type:"number"},{key:"categoryId",label:"Category ID",type:"number"},{key:"status",label:"Status",type:"boolean"},{key:"minPrice",label:"Min Price",type:"number"},{key:"maxPrice",label:"Max Price",type:"number"},{key:"inStock",label:"In Stock",type:"boolean"}];function eI({open:e,filters:t,onChange:r,onClose:n,onApply:o}){const s=(l,c)=>{let d=c;const p=py.find(u=>u.key===l);p&&p.type==="number"&&(d=c===""?void 0:Number(c)),p&&p.type==="boolean"&&(d=!!c),r({...t,[l]:d})};return a.jsxs(Un,{open:e,onClose:n,maxWidth:"xs",fullWidth:!0,children:[a.jsx(Rn,{children:"Filter Products"}),a.jsx(Hn,{children:a.jsx(E,{display:"flex",flexDirection:"column",gap:2,children:py.map(l=>a.jsx(E,{children:l.type==="boolean"?a.jsx(xt,{control:a.jsx(Qe,{checked:!!t[l.key],onChange:c=>s(l.key,c.target.checked)}),label:l.label}):a.jsx(Zc,{label:l.label,type:"number",value:t[l.key]||"",onChange:c=>s(l.key,c.target.value),fullWidth:!0,size:"small"})},l.key))})}),a.jsxs(ai,{children:[a.jsx(Se,{onClick:n,children:"Cancel"}),a.jsx(Se,{variant:"contained",onClick:o,children:"Apply"})]})]})}function tI({StoresModal:e,storesModalProps:t,onStoreSelect:r}){const n=Pt(),o=yt(),s=o.state?.filters||{category:"",status:"",search:"",store:[]},[l,c]=$.useState([]),[d,p]=$.useState(!0),[u,h]=$.useState(s),[v,g]=$.useState(!1),[y,f]=$.useState(u),m=Ae(A=>A.dashboard),x=m?.products||[],b=x.reduce((A,W)=>(W?.id&&(A[W.id]=W),A),{}),w=x.map(A=>A?.id).filter(Boolean),S=m?.loading||!1;console.log(w,"productIds we get at page");const C=Ft();$.useEffect(()=>{C(Er())},[C]),$.useEffect(()=>{o.state?.filters&&setTimeout(()=>{h(o.state.filters)},0)},[o.state]),$.useEffect(()=>{if(!Array.isArray(w)||!b||typeof c!="function")return;const A=()=>{try{if(w&&w.length>0){let W=w.map(H=>b&&b[H]).filter(H=>H&&H.id);u&&u.storeId?W=W.filter(H=>H&&String(H.storeId)===String(u.storeId)):u&&u.store&&Array.isArray(u.store)&&!u.store.includes("all")&&(W=W.filter(H=>H&&u.store.includes(String(H.storeId)))),c(W),p(!1)}else c([]),p(typeof S=="boolean"?S:!1)}catch(W){console.error("Error updating products:",W),c([]),p(!1)}};typeof requestAnimationFrame=="function"?requestAnimationFrame(A):A()},[w,S,u,b]);const O=A=>{h(A)},I=()=>{f(u),g(!0)},[F,D]=$.useState([]),L=A=>{D(W=>W.includes(A)?W.filter(H=>H!==A):[...W,A])},z=l.filter(A=>F.includes(A.id)),k={};Object.values(b).forEach(A=>{A.storeId&&A.storeName&&(k[A.storeId]=A.storeName)});const j=[{id:"all",name:"All Stores"},...Object.entries(k).map(([A,W])=>({id:A,name:W}))],_=Array.isArray(u.store)?u.store:[],M=_.length===0||_.includes("all")||_.length>1,N=o.state&&o.state.tenantStatus||{matched:!0};return a.jsxs("div",{className:"app-container",children:[a.jsx(Yr,{styles:n,onFilterChange:O,filters:u,stores:j,onOpenFilterModal:I,StoresModal:e,storesModalProps:t,onStoreSelect:r,showBackButton:!0,tenantStatus:N}),a.jsxs("div",{className:"product-main-container",children:[l.length>0&&a.jsx(KP,{products:l,styles:n}),a.jsx(WP,{products:l,loading:d,selectedProducts:F,onToggleProduct:L,styles:n,showLimitedColumns:M})]}),a.jsx(ZP,{selectedProducts:z,stores:j}),a.jsx(eI,{open:v,filters:y,onChange:f,onClose:()=>g(!1),onApply:()=>{h(y),g(!1)}})]})}const rI=e=>a.jsx(Uo,{...e,viewBox:"0 0 24 24",children:a.jsx("path",{d:"M21,16.5C21,16.88 20.79,17.21 20.47,17.38L12.57,21.82C12.41,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L3.53,17.38C3.21,17.21 3,16.88 3,16.5V7.5C3,7.12 3.21,6.79 3.53,6.62L11.43,2.18C11.59,2.06 11.79,2 12,2C12.21,2 12.41,2.06 12.57,2.18L20.47,6.62C20.79,6.79 21,7.12 21,7.5V16.5M12,4.15L6.04,7.5L12,10.85L17.96,7.5L12,4.15M5,15.91L11,19.29V12.58L5,9.21V15.91M19,15.91V9.21L13,12.58V19.29L19,15.91Z"})}),nI=()=>{const e=et(),t=Ft(),r=Pt(),{metrics:n,loading:o}=Ae(C=>C.dashboard),[s,l]=$.useState({search:"",store:[],category:"all",status:"all"}),c=C=>l(C),[d,p]=$.useState(new Date);$.useEffect(()=>{t(ds())},[t]),$.useEffect(()=>{const C=setInterval(()=>{p(new Date)},6e4);return()=>clearInterval(C)},[]);const u=d.toLocaleString("en-US",{month:"short"}).toUpperCase(),h=d.getDate(),v=d.toLocaleString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0}),g=n?.activeProducts||0,y=n?.activeCatalogues||0,f=n?.osa||{},m=C=>!C||C===0?"0":C>=1e3?(C/1e3).toFixed(0)+"K":C.toString(),x=f?.availableProducts||0,b=f?.totalRequests||0,w=f?.availabilityPercentage||0,S=b>0?100-w:0;return a.jsxs(a.Fragment,{children:[a.jsx(Yr,{styles:r.topBar,filters:s,onFilterChange:c,stores:[],hideViewSwitch:!0,isHomeDefault:!0}),a.jsxs(E,{sx:{p:4,bgcolor:"#f7f8fa",minHeight:"100vh"},children:[a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:3,mb:3},children:[a.jsx($t,{sx:{minWidth:80,bgcolor:"#f7f8fa",boxShadow:0,borderRadius:2,textAlign:"center",p:1},children:a.jsxs(yg,{sx:{p:1},children:[a.jsx(P,{variant:"body2",color:"text.secondary",children:u}),a.jsx(P,{variant:"h6",fontWeight:400,color:"#000000",children:h}),a.jsx(P,{variant:"caption",color:"text.secondary",children:v})]})}),a.jsxs(E,{children:[a.jsxs(P,{variant:"h6",fontWeight:700,children:["Hi Ashok ",a.jsx("span",{role:"img","aria-label":"wave",children:"👋"})]}),a.jsx(P,{variant:"body2",color:"text.secondary",children:"You have 3 new updates"})]})]}),a.jsx(E,{sx:{mt:2},children:a.jsxs($t,{sx:{borderRadius:2,boxShadow:0,p:2,mb:2,maxWidth:520},children:[a.jsxs(E,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:2},children:[a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:1},children:[a.jsx(rI,{sx:{fontSize:24,color:"#000000"}}),a.jsxs(P,{variant:"h6",fontWeight:700,children:["Products ",a.jsx("span",{style:{fontWeight:400,fontSize:"16px",color:"#888"},children:o?"...":g})]})]}),a.jsxs(P,{variant:"body2",marginRight:10,color:"#4a90e2",sx:{cursor:"pointer"},onClick:()=>e("/categories"),children:["Report ",">"]})]}),a.jsxs(E,{sx:{display:"flex",gap:2},children:[a.jsxs($t,{sx:{flex:1,border:"1px solid #F1F1F1",bgcolor:"#FFFFFF",borderRadius:2,boxShadow:0,p:2},children:[a.jsx(P,{variant:"body2",color:"#454545",children:"Active Products"}),a.jsx(P,{variant:"h6",fontWeight:700,children:o?"...":g}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:.5},children:[a.jsx(Ci,{sx:{fontSize:16,color:"#4caf50"}}),a.jsx(P,{variant:"caption",color:"text.secondary",children:"Sync 4h ago"})]})]}),a.jsxs($t,{sx:{flex:1,border:"1px solid #F1F1F1",bgcolor:"#FFFFFF",borderRadius:2,boxShadow:0,p:2},children:[a.jsx(P,{variant:"body2",color:"#454545",children:"Active Catalogs"}),a.jsx(P,{variant:"h6",fontWeight:700,children:o?"...":y}),a.jsx(P,{variant:"caption",color:"text.secondary",children:"4 public links"})]}),a.jsxs($t,{sx:{flex:1,border:"1px solid #F1F1F1",bgcolor:"#FFFFFF",borderRadius:2,boxShadow:0,p:2},children:[a.jsx(P,{variant:"body2",color:"#454545",sx:{mb:0},children:"On Shelf Yesterday"}),a.jsxs(P,{variant:"h6",fontWeight:700,sx:{mb:.5},children:[o?"...":`${w}%`,a.jsx(P,{component:"span",variant:"caption",color:"text.secondary",sx:{ml:.5,fontWeight:400},children:o?"":`${m(x)}/${m(b)}`})]}),a.jsx(P,{variant:"caption",color:"error",children:o?"":`${S.toFixed(0)}% missing`})]})]})]})})]})]})};function Ei({loading:e,handleStartSyncing:t,categoryName:r,sessionExpired:n=!1,hasIntegration:o=!1}){const s=et(),l=Pt(),[c]=$.useState({matched:!1,error:"",apiResponse:null,loading:!1});let d=l&&l.emptyProduct?l.emptyProduct:{wrapper:{},card:{},iconContainer:{},sparkleContainer:{},sparkleLeft:{},sparkleCenter:{},sparkleRight:{},inboxIcon:{},notch:{},title:{},subtitle:{},actionLink:{}};const u=Ae(y=>y?.dashboard)?.products||[],h=()=>s("/product-setting",{state:{tenantIntegrationMatched:!0}}),v=t||(()=>s("/product-setting")),g=!n&&!e&&Array.isArray(u)&&u.length===0;return a.jsx(E,{sx:{minHeight:"100vh",bgcolor:"#f5f7fa",overflowX:"hidden"},children:a.jsx(E,{sx:d.wrapper,children:a.jsxs(E,{sx:d.card,children:[a.jsxs(E,{sx:d.iconContainer,children:[a.jsxs(E,{sx:d.sparkleContainer,children:[a.jsx(E,{sx:d.sparkleLeft}),a.jsx(E,{sx:d.sparkleCenter}),a.jsx(E,{sx:d.sparkleRight})]}),a.jsx(E,{sx:d.inboxIcon,children:a.jsx(E,{sx:d.notch})})]}),a.jsx(P,{sx:d.title,children:n?"Session Expired":r?`No Products in ${r}`:"No Products"}),a.jsx(P,{sx:d.subtitle,children:n?"Your session has expired or your token is invalid. Please log in again.":e?"Loading products from store inventory...":r&&!g?`No products found in the "${r}" category.`:g?"No products found in store inventory. Start syncing to add products.":c.matched?"Active integrations fetched successfully":c.error?c.error:"No active integration found for this tenant id"}),!e&&!n&&g&&(o?a.jsx(P,{component:"a",href:"#",sx:d.actionLink,onClick:y=>{y.preventDefault(),h()},children:"Go to Settings"}):a.jsx(P,{component:"a",href:"#",sx:d.actionLink,onClick:y=>{y.preventDefault(),v()},children:"Start Syncing Products"}))]})})})}const uy=ht(a.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle"),fy=ht(a.jsx("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link"),hy=({productState:e})=>a.jsxs(E,{sx:{display:"flex",gap:2,mb:3,flexWrap:"wrap"},children:[a.jsx(Cd,{title:"Categories",titleValue:e.homePageCardSummary?.totalCategories||0,subtitle:"Products",subtitleValue:e.homePageCardSummary?.totalProducts||0,recentText:e.homePageCardSummary?.lastSync?`Sync ${e.homePageCardSummary.lastSync}`:"",tickMarkRequired:!0,btnLabel:"History"}),a.jsx(Cd,{title:"Active Catalogs",titleValue:"34",recentText:"4 public links",linkRequired:!0,btnLabel:"Manage"}),a.jsx(Cd,{title:"On Shelf Yesterday",titleValue:"78%",thirdVaue:"78/100X",recentText:"22% mising",btnLabel:"Report"})]});function Cd({title:e="",subtitle:t="",titleValue:r="",thirdVaue:n="",subtitleValue:o="",recentText:s="",btnLabel:l="",tickMarkRequired:c=!1,linkRequired:d=!1}){return a.jsxs($t,{sx:{flex:1,minWidth:250,bgcolor:"#fff",borderRadius:3,boxShadow:"0 2px 8px #e0e0e0",p:2.5},children:[a.jsxs(E,{sx:{display:"flex",alignItems:"center",mb:1},children:[e&&a.jsxs(E,{sx:{flex:1,textAlign:"center"},children:[a.jsx(P,{variant:"body2",color:"text.secondary",children:e}),a.jsx(P,{variant:"h5",fontWeight:500,children:r}),a.jsx(P,{variant:"caption",color:"text.secondary",children:n})]}),t&&a.jsx(Ke,{orientation:"vertical",flexItem:!0,sx:{mx:2}}),t&&a.jsxs(E,{sx:{flex:1,textAlign:"center"},children:[a.jsx(P,{variant:"body2",color:"text.secondary",children:t}),a.jsx(P,{variant:"h5",fontWeight:500,children:o})]})]}),a.jsx(Ke,{}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",mt:1},children:[a.jsxs(E,{sx:{display:"flex",alignItems:"center",flex:1},children:[c&&a.jsx(uy,{sx:{color:"#22c55e",fontSize:18,mr:.5}}),d&&a.jsx(fy,{sx:{color:"#2563eb",fontSize:18,mr:.5}}),a.jsx(P,{variant:"caption",color:"text.secondary",children:s})]}),l&&a.jsxs(Se,{variant:"text",size:"small",sx:{color:"#2563eb",textTransform:"none",fontWeight:500,minWidth:0,p:0},children:[l," >"]})]})]})}function oI(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}var iI=function(t){var r=t.size,n=r===void 0?24:r,o=t.className,s=o===void 0?"":o,l=t.fill,c=l===void 0?"none":l,d=oI(t,["size","className","fill"]);return $.createElement("svg",Object.assign({width:n,height:n,viewBox:"0 0 24 24",fill:c,stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-chevron-right ".concat(s)},d),$.createElement("g",null,$.createElement("polyline",{points:"9 18 15 12 9 6"})))};function sI({categoryData:e=[],styles:t={},onView:r}){return console.log("Table.jsx categoryData:",e),a.jsxs($t,{sx:t.categoryTable,children:[a.jsxs(E,{sx:t.categoryTableHeader,children:[a.jsx(E,{sx:t.categoryTableHeaderCell,children:"Category"}),a.jsx(E,{sx:t.categoryTableHeaderCell,children:"Stock / OSA"}),a.jsx(E,{sx:t.categoryTableHeaderCell,children:"Products"}),a.jsx(E,{sx:t.categoryTableHeaderCell})]}),e.map((n,o)=>a.jsxs(E,{sx:t.categoryTableRow(o),children:[a.jsxs(E,{sx:t.categoryNameCell,children:[a.jsx(P,{sx:t.categoryName,children:n.name}),a.jsxs(P,{sx:t.categoryProducts,children:[n.products," Products"]}),a.jsxs(P,{sx:t.categoryUpdated,children:["Updated ",n.updated]})]}),a.jsxs(E,{sx:t.categoryStockCell,children:[a.jsx(P,{sx:t.categoryStock(o),children:n.stock}),a.jsx(P,{sx:t.categoryOSA(o),children:n.osa})]}),a.jsx(E,{sx:t.categoryImagesCell,children:n.images.map((s,l)=>a.jsx(ni,{src:s,alt:n.name+" product",sx:t.categoryImage},l))}),a.jsx(E,{sx:t.categoryViewCell,children:a.jsxs(Se,{variant:"contained",color:"primary",sx:t.categoryViewButton,onClick:()=>r&&r(n),children:["View",a.jsx(iI,{size:20,style:{marginLeft:6}})]})})]},n.name))]})}const aI=()=>{const e=Ft(),t=et(),n=Pt().categoriesView,[o,s]=$.useState({category:"all",status:"all",search:"",store:[]}),{integrationData:l,companyId:c,loading:d,error:p}=Ae(D=>D.dashboard),u=$.useMemo(()=>l?.status&&Array.isArray(l?.data)&&l.data.length>0?{matched:!0,error:"",apiResponse:l.data[0],loading:!1}:{matched:!1,error:"No active integration found",apiResponse:null,loading:!1},[l]),h=Ae(D=>D.dashboard),{categorySummary:v=[],products:g=[]}=h||{},y=v,f=Array.isArray(g)&&g.length>0,m=()=>{u.matched?t("/product-setting",{state:{tenantIntegrationMatched:!0}}):t("/product-setting",{state:{tenantIntegrationMatched:!1}})},x={},{productsByCategory:b={}}=h||{};Object.values(b).flat().forEach(D=>{D.storeId&&D.storeName&&(x[D.storeId]=D.storeName)});const w=[{id:"all",name:"All Stores"},...Object.entries(x).map(([D,L])=>({id:D,name:L}))],S=D=>{s(D)},[C,O]=$.useState(!1);$.useEffect(()=>{!c&&!C?e(xo()).finally(()=>{O(!0)}):c&&queueMicrotask(()=>O(!0))},[e,c,C]),$.useEffect(()=>{c&&(e(Cr(c)),e(Er()))},[e,c]);const I=D=>{t(`/category?categoryName=${encodeURIComponent(D.name)}`)},F=C&&p&&!c;return a.jsxs(a.Fragment,{children:[!F&&a.jsx(Yr,{filters:o,onFilterChange:S,styles:n.topBar,stores:w,tenantStatus:u,hasProducts:f}),F?a.jsx(Ei,{handleStartSyncing:m,loading:!1,sessionExpired:!0}):!C&&!c?a.jsx(Ei,{handleStartSyncing:m,loading:!0,sessionExpired:!1}):f?a.jsxs(E,{sx:n.root,children:[a.jsx(hy,{productState:h}),a.jsx(sI,{categoryData:y,styles:n,onView:I})]}):a.jsx(Ei,{handleStartSyncing:m,loading:d,sessionExpired:!1,hasIntegration:u.matched})]})},lI=[{name:"Bakery",products:45,stock:"4500/5,600",osa:"96% on shelf",updated:"2 days ago",images:["https://www.bbassets.com/media/uploads/p/l/40091805_5-britannia-atta-bread.jpg","https://www.bbassets.com/media/uploads/p/l/40091805_5-britannia-atta-bread.jpg","https://www.bbassets.com/media/uploads/p/l/40091805_5-britannia-atta-bread.jpg","https://www.bbassets.com/media/uploads/p/l/40091805_5-britannia-atta-bread.jpg","https://www.bbassets.com/media/uploads/p/l/40091805_5-britannia-atta-bread.jpg"]},{name:"Biscuits",products:45,stock:"4500/5,600",osa:"96% on shelf",updated:"2 days ago",images:["https://www.bbassets.com/media/uploads/p/l/40283779_10-cadbury-chocobakes-choco-chip-cookies-delicious-treat.jpg","https://www.bbassets.com/media/uploads/p/l/40283779_10-cadbury-chocobakes-choco-chip-cookies-delicious-treat.jpg","https://www.bbassets.com/media/uploads/p/l/40283779_10-cadbury-chocobakes-choco-chip-cookies-delicious-treat.jpg","https://www.bbassets.com/media/uploads/p/l/40283779_10-cadbury-chocobakes-choco-chip-cookies-delicious-treat.jpg","https://www.bbassets.com/media/uploads/p/l/40283779_10-cadbury-chocobakes-choco-chip-cookies-delicious-treat.jpg"]},{name:"Drinks",products:45,stock:"20/5,600",osa:"5% on shelf",updated:"2 days ago",images:["https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQ2mbJAPrKlGS8rCZETNr0ZPaOq0XcV1o2FG2jeOeN95W7nu3FL","https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQ2mbJAPrKlGS8rCZETNr0ZPaOq0XcV1o2FG2jeOeN95W7nu3FL","https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQ2mbJAPrKlGS8rCZETNr0ZPaOq0XcV1o2FG2jeOeN95W7nu3FL","https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQ2mbJAPrKlGS8rCZETNr0ZPaOq0XcV1o2FG2jeOeN95W7nu3FL","https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQ2mbJAPrKlGS8rCZETNr0ZPaOq0XcV1o2FG2jeOeN95W7nu3FL"]},{name:"Pulses",products:45,stock:"4500/5,600",osa:"96% on shelf",updated:"2 days ago",images:["https://m.media-amazon.com/images/I/41fbvIDRYXL._SY300_SX300_QL70_FMwebp_.jpg","https://m.media-amazon.com/images/I/41fbvIDRYXL._SY300_SX300_QL70_FMwebp_.jpg","https://m.media-amazon.com/images/I/41fbvIDRYXL._SY300_SX300_QL70_FMwebp_.jpg","https://m.media-amazon.com/images/I/41fbvIDRYXL._SY300_SX300_QL70_FMwebp_.jpg","https://m.media-amazon.com/images/I/41fbvIDRYXL._SY300_SX300_QL70_FMwebp_.jpg"]},{name:"Snacks",products:45,stock:"4500/5,600",osa:"96% on shelf",updated:"2 days ago",images:["https://images-eu.ssl-images-amazon.com/images/I/81oQOYKZHxL._AC_UL900_SR615,900_.jpg","https://images-eu.ssl-images-amazon.com/images/I/81oQOYKZHxL._AC_UL900_SR615,900_.jpg","https://images-eu.ssl-images-amazon.com/images/I/81oQOYKZHxL._AC_UL900_SR615,900_.jpg","https://images-eu.ssl-images-amazon.com/images/I/81oQOYKZHxL._AC_UL900_SR615,900_.jpg","https://images-eu.ssl-images-amazon.com/images/I/81oQOYKZHxL._AC_UL900_SR615,900_.jpg"]}],cI=()=>{const e=Pt(),t=Ar(),r=Mr(),n=window.innerWidth<600,o=window.innerWidth>=600&&window.innerWidth<1024,s=n?t.categoriesView:o?r.categoriesView:e.categoriesView,[l,c]=$.useState({category:"all",status:"all",search:"",store:[]}),d=Ft(),h=(Ae(f=>f.dashboard)?.products||[]).reduce((f,m)=>(m?.id&&(f[m.id]=m),f),{});$.useEffect(()=>{d(Er())},[d]);const v={};Object.values(h).forEach(f=>{f.storeId&&f.storeName&&(v[f.storeId]=f.storeName)});const g=[{id:"all",name:"All Stores"},...Object.entries(v).map(([f,m])=>({id:f,name:m}))],y=f=>{c(f)};return a.jsxs(a.Fragment,{children:[a.jsx(Yr,{filters:l,onFilterChange:y,styles:s.topBar,stores:g}),a.jsxs(E,{sx:s.root,children:[a.jsxs(E,{sx:{display:"flex",gap:2,mb:3},children:[a.jsxs($t,{sx:{flex:1,bgcolor:"#fff",borderRadius:3,boxShadow:"0 2px 8px #e0e0e0",p:2.5,minWidth:220},children:[a.jsxs(E,{sx:{display:"flex",alignItems:"center",mb:1},children:[a.jsxs(E,{sx:{flex:1,textAlign:"center"},children:[a.jsx(P,{variant:"body2",color:"text.secondary",children:"Categories"}),a.jsx(P,{variant:"h5",fontWeight:500,children:"45"})]}),a.jsx(Ke,{orientation:"vertical",flexItem:!0,sx:{mx:2}}),a.jsxs(E,{sx:{flex:1,textAlign:"center"},children:[a.jsx(P,{variant:"body2",color:"text.secondary",children:"Products"}),a.jsx(P,{variant:"h5",fontWeight:500,children:"234"})]})]}),a.jsx(Ke,{}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",mt:1},children:[a.jsxs(E,{sx:{display:"flex",alignItems:"center",flex:1},children:[a.jsx(uy,{sx:{color:"#22c55e",fontSize:18,mr:.5}}),a.jsx(P,{variant:"caption",color:"text.secondary",children:"Sync 4h ago"})]}),a.jsx(Se,{variant:"text",size:"small",sx:{color:"#2563eb",textTransform:"none",fontWeight:500,minWidth:0,p:0},children:"History >"})]})]}),a.jsxs($t,{sx:{flex:1,bgcolor:"#fff",borderRadius:3,boxShadow:"0 2px 8px #e0e0e0",p:2.5,minWidth:220},children:[a.jsxs(E,{sx:{textAlign:"center",mb:1},children:[a.jsx(P,{variant:"body2",color:"text.secondary",children:"Active Catalogs"}),a.jsx(P,{variant:"h5",fontWeight:500,children:"34"})]}),a.jsx(Ke,{}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",mt:1},children:[a.jsxs(E,{sx:{display:"flex",alignItems:"center",flex:1},children:[a.jsx(fy,{sx:{color:"#2563eb",fontSize:18,mr:.5}}),a.jsx(P,{variant:"caption",color:"text.secondary",children:"4 public links"})]}),a.jsx(Se,{variant:"text",size:"small",sx:{color:"#2563eb",textTransform:"none",fontWeight:500,minWidth:0,p:0},children:"Manage >"})]})]}),a.jsxs($t,{sx:{flex:1,bgcolor:"#fff",borderRadius:3,boxShadow:"0 2px 8px #e0e0e0",p:2.5,minWidth:220},children:[a.jsxs(E,{sx:{textAlign:"center",mb:1},children:[a.jsx(P,{variant:"body2",color:"text.secondary",children:"On Shelf Yesterday"}),a.jsx(P,{variant:"h5",fontWeight:500,children:"78%"}),a.jsx(P,{variant:"caption",color:"text.secondary",children:"78/100X"})]}),a.jsx(Ke,{}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",mt:1},children:[a.jsx(E,{sx:{flex:1},children:a.jsx(P,{variant:"caption",color:"#ef4444",fontWeight:500,children:"22% missing"})}),a.jsx(Se,{variant:"text",size:"small",sx:{color:"#2563eb",textTransform:"none",fontWeight:500,minWidth:0,p:0},children:"Report >"})]})]})]}),a.jsxs($t,{sx:s.categoryTable,children:[a.jsxs(E,{sx:s.categoryTableHeader,children:[a.jsx(E,{sx:s.categoryTableHeaderCell,children:"Category"}),a.jsx(E,{sx:s.categoryTableHeaderCell,children:"Stock / OSA"}),a.jsx(E,{sx:s.categoryTableHeaderCell,children:"Products"}),a.jsx(E,{sx:s.categoryTableHeaderCell})]}),lI.map((f,m)=>a.jsxs(E,{sx:s.categoryTableRow(m),children:[a.jsxs(E,{sx:s.categoryNameCell,children:[a.jsx(P,{sx:s.categoryName,children:f.name}),a.jsxs(P,{sx:s.categoryProducts,children:[f.products," Products"]}),a.jsxs(P,{sx:s.categoryUpdated,children:["Updated ",f.updated]})]}),a.jsxs(E,{sx:s.categoryStockCell,children:[a.jsx(P,{sx:s.categoryStock(m),children:f.stock}),a.jsx(P,{sx:s.categoryOSA(m),children:f.osa})]}),a.jsx(E,{sx:s.categoryImagesCell,children:f.images.map((x,b)=>a.jsx(ni,{src:x,alt:f.name+" product",sx:s.categoryImage},b))}),a.jsx(E,{sx:s.categoryViewCell,children:a.jsx(Se,{variant:"contained",color:"primary",sx:s.categoryViewButton,children:"View"})})]},f.name))]})]})]})};function nt({icon:e,title:t,subtitle:r,subtitleValue:n,onClick:o,selected:s,highlightStyle:l={},action:c,disabled:d=!1,customStyle:p={}}){const h={card:{...{background:"#fff",borderRadius:2,boxShadow:"0 1px 4px #0001",border:"1px solid #e6eaf1",display:"flex",alignItems:"center",px:2.5,py:1.5,mb:2,cursor:o&&!d?"pointer":"default",minHeight:60,opacity:d?.5:1,...s?l:{}},...p},cardInner:{display:"flex",alignItems:"center",flex:1},icon:{display:"flex",alignItems:"center",mr:2},title:{fontWeight:700,fontSize:15,color:d?"#999":"#222",lineHeight:1.2},subtitle:{color:d?"#bbb":"#888",fontSize:13,fontWeight:400,mt:.5,lineHeight:1.3}};return a.jsxs(E,{onClick:d?void 0:o,sx:{...h.card,...p||{}},children:[e&&a.jsx(E,{sx:h.icon,children:e}),a.jsxs(E,{sx:h.cardInner,children:[a.jsxs(E,{children:[a.jsx(P,{sx:h.title,children:t}),r&&a.jsx(P,{sx:h.subtitle,children:n?`${n} ${r}`:r})]}),c&&a.jsx(E,{sx:{ml:"auto"},children:c})]})]})}function dI({airaAiEnabled:e,setAiraAiEnabled:t,selectedCard:r,setSelectedCard:n,syncStep:o=0,syncMethod:s="",onSetupSync:l=()=>{},onSyncNow:c=()=>{},integrationData:d={},...p}){const u={bgcolor:"#F3F8FF",border:"1px solid #2D64B8"},h=et();d?.configs;const v=d?.configs?.sync_frequency||"Daily",g=d?.configs?.sync_time||"10:00 AM",y=d?.type||s||"FTP";return o===3?a.jsxs(E,{sx:{maxWidth:600,mx:"auto",mt:4},children:[a.jsxs(P,{sx:{fontWeight:700,fontSize:16,mb:1},children:["General ",a.jsx("span",{style:{color:"#bdbdbd",fontWeight:400,fontSize:14},children:"2"})]}),a.jsx(nt,{icon:a.jsx(at,{size:18,color:"#666"}),title:"Manage Shared Catalogs",onClick:()=>n&&n("catalogs"),selected:r==="catalogs",highlightStyle:u}),a.jsx(nt,{icon:a.jsx(vn,{size:18,color:"#888"}),title:"Aira AI",subtitle:"Make your workflows faster and smarter",onClick:()=>n&&n("aira-ai"),selected:r==="aira-ai",highlightStyle:u,action:a.jsx(mi,{checked:e,onChange:f=>t&&t(f.target.checked)})}),a.jsxs(P,{sx:{fontWeight:700,fontSize:16,mb:1,mt:3},children:["Sync ",a.jsx("span",{style:{color:"#bdbdbd",fontWeight:400,fontSize:14},children:"2"}),a.jsx("span",{style:{float:"right",color:"#1976d2",fontWeight:500,fontSize:15,cursor:"pointer"},onClick:c,children:"Sync Now"})]}),a.jsx(nt,{icon:a.jsx(at,{size:18,color:"#888"}),title:"Sync Method",subtitle:y,highlightStyle:u,disabled:!0}),a.jsx(nt,{icon:a.jsx(at,{size:18,color:"#888"}),title:"FTP Details",subtitle:"Sync source",highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromSyncStep:o}})}),a.jsxs(E,{sx:{display:"flex",gap:2},children:[a.jsx(E,{sx:{flex:1},children:a.jsx(nt,{icon:a.jsx(at,{size:18,color:"#888"}),title:"Sync Frequency",subtitle:v,highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncFrequency",integrationData:d}}),customStyle:{boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",border:"1px solid #e0e7ff",transition:"all 0.2s ease","&:hover":{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.12)",transform:"translateY(-1px)",borderColor:"#2D64B8"}}})}),a.jsx(E,{sx:{flex:1},children:a.jsx(nt,{icon:a.jsx(at,{size:18,color:"#888"}),title:"Sync Time",subtitle:g,highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncTime",integrationData:d}}),customStyle:{boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",border:"1px solid #e0e7ff",transition:"all 0.2s ease","&:hover":{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.12)",transform:"translateY(-1px)",borderColor:"#2D64B8"}}})})]}),a.jsx(nt,{icon:a.jsx(at,{size:18,color:"#888"}),title:"Sync History",subtitle:"12,139 items",highlightStyle:u})]}):a.jsxs(E,{sx:{maxWidth:600,mx:"auto",mt:4},children:[a.jsxs(P,{sx:{fontWeight:700,fontSize:16,mb:1},children:["General ",a.jsx("span",{style:{color:"#bdbdbd",fontWeight:400,fontSize:14},children:"2"})]}),a.jsx(nt,{icon:a.jsx(at,{size:18,color:"#666"}),title:"Manage Shared Catalogs",onClick:()=>n&&n("catalogs"),selected:r==="catalogs",highlightStyle:u}),a.jsx(nt,{icon:a.jsx(vn,{size:18,color:"#888"}),title:"Aira AI",subtitle:"Make your workflows faster and smarter",onClick:()=>n&&n("aira-ai"),selected:r==="aira-ai",highlightStyle:u,action:a.jsx(mi,{checked:e,onChange:f=>t&&t(f.target.checked)})}),a.jsxs(P,{sx:{fontWeight:700,fontSize:16,mb:1,mt:3},children:["Sync ",a.jsx("span",{style:{color:"#bdbdbd",fontWeight:400,fontSize:14},children:"2"}),a.jsx("span",{style:{float:"right",color:o===0?"#bbb":"#1976d2",fontWeight:500,fontSize:15,cursor:o===0?"not-allowed":"pointer",opacity:o===0?.5:1},onClick:o===0?void 0:c,children:"Sync Now"})]}),o===0&&a.jsx(nt,{icon:a.jsx(at,{size:18,color:"#888"}),title:"Setup Sync",subtitle:"Sync products",onClick:l,highlightStyle:u}),o===1&&a.jsxs(a.Fragment,{children:[a.jsx(nt,{icon:a.jsx(at,{size:18,color:"#888"}),title:"Sync Method",subtitle:y,highlightStyle:u}),a.jsx(nt,{icon:a.jsx(at,{size:18,color:"#888"}),title:`Setup ${y} Details`,subtitle:"Start setup",onClick:()=>{h("/products/settings/ftp-sync",{state:{fromSyncStep:o}})},highlightStyle:u})]}),o===3&&a.jsxs(a.Fragment,{children:[a.jsx(nt,{icon:a.jsx(at,{size:18,color:"#888"}),title:"Sync Method",subtitle:s||"FTP",highlightStyle:u,disabled:!0}),a.jsx(nt,{icon:a.jsx(at,{size:18,color:"#888"}),title:"FTP Details",subtitle:"Sync source",highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromSyncStep:o}})}),a.jsxs(E,{sx:{display:"flex",gap:2},children:[a.jsx(E,{sx:{flex:1},children:a.jsx(nt,{icon:a.jsx(at,{size:18,color:"#888"}),title:"Sync Frequency",subtitle:"Daily",highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncFrequency",integrationData:d}}),customStyle:{boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",border:"1px solid #e0e7ff",transition:"all 0.2s ease","&:hover":{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.12)",transform:"translateY(-1px)",borderColor:"#2D64B8"}}})}),a.jsx(E,{sx:{flex:1},children:a.jsx(nt,{icon:a.jsx(at,{size:18,color:"#888"}),title:"Sync Time",subtitle:"10:00 AM",highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncTime",integrationData:d}}),customStyle:{boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",border:"1px solid #e0e7ff",transition:"all 0.2s ease","&:hover":{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.12)",transform:"translateY(-1px)",borderColor:"#2D64B8"}}})})]}),a.jsx(nt,{icon:a.jsx(at,{size:18,color:"#888"}),title:"Sync History",subtitle:"12,139 items",highlightStyle:u})]})]})}const yr=({breadcrumbRight:e="Settings",onBack:t,breadcrumbs:r})=>{const n=Ge(),o=Ze(n.breakpoints.down("sm")),s=Ze(n.breakpoints.between("sm","md")),l=Pt(),c=Ar(),d=Mr(),p=(u=15)=>!r||!Array.isArray(r)||r.length===0?null:a.jsx(E,{sx:{display:"flex",alignItems:"center"},children:r.map((h,v)=>a.jsxs($.Fragment,{children:[v>0&&a.jsx($r,{size:u-2,color:"#bbb",style:{margin:"0 7px"}}),a.jsx(P,{sx:{color:v===r.length-1?"#111":"#888",fontWeight:v===r.length-1?700:500,fontSize:u},children:h.label})]},h.label))});if(!o&&!s){const u=l;return a.jsxs(E,{sx:u.settingTopbar?.root||{display:"flex",alignItems:"center",justifyContent:"space-between",background:"#fff",minHeight:56,px:2,borderBottom:"1px solid #eee",mb:0},children:[a.jsxs(E,{sx:{display:"flex",alignItems:"center"},children:[a.jsxs(E,{onClick:t,sx:{display:"flex",alignItems:"center",cursor:"pointer",mr:2},children:[a.jsx(xd,{size:18}),a.jsx(P,{sx:{ml:1,color:"#888",fontWeight:500},children:"Back"})]}),a.jsx(Ke,{orientation:"vertical",flexItem:!0,sx:{mx:2,height:24}}),r&&r.length>0?p(16):a.jsxs(a.Fragment,{children:[a.jsx(P,{sx:{color:"#888",fontWeight:500,mr:1},children:"Products"}),a.jsx($r,{size:16,color:"#bbb",style:{margin:"0 8px"}}),a.jsx(P,{sx:{fontWeight:600},children:e})]})]}),a.jsxs(E,{sx:{display:"flex",alignItems:"center"},children:[a.jsx(Ke,{orientation:"vertical",flexItem:!0,sx:{height:24,mx:3}}),a.jsx(Wt,{size:"small",sx:{color:"#888",mx:1},children:a.jsx(vd,{size:20})}),a.jsx(E,{sx:{width:30,height:30,bgcolor:"#1976d2",borderRadius:"30%",display:"flex",alignItems:"center",justifyContent:"center",ml:1},children:a.jsx(vn,{size:16,color:"#fff"})})]})]})}if(o){const u=c;return a.jsxs(E,{sx:u.settingTopbar?.root||{display:"flex",alignItems:"center",justifyContent:"space-between",background:"#fff",minHeight:48,px:1.5,borderBottom:"1px solid #eee",mb:0},children:[a.jsxs(E,{sx:{display:"flex",alignItems:"center"},children:[a.jsxs(E,{onClick:t,sx:{display:"flex",alignItems:"center",cursor:"pointer",mr:1},children:[a.jsx(xd,{size:16}),a.jsx(P,{sx:{ml:.5,color:"#888",fontWeight:500,fontSize:14},children:"Back"})]}),a.jsx(Ke,{orientation:"vertical",flexItem:!0,sx:{mx:1,height:20}}),r&&r.length>0?p(14):a.jsxs(a.Fragment,{children:[a.jsx(P,{sx:{color:"#888",fontWeight:500,mr:.5,fontSize:13},children:"Products"}),a.jsx($r,{size:14,color:"#bbb",style:{margin:"0 6px"}}),a.jsx(P,{sx:{fontWeight:600,fontSize:14},children:e})]})]}),a.jsxs(E,{sx:{display:"flex",alignItems:"center"},children:[a.jsx(Ke,{orientation:"vertical",flexItem:!0,sx:{height:20,mx:1}}),a.jsx(Wt,{size:"small",sx:{color:"#888"},children:a.jsx(vd,{size:18})}),a.jsx(E,{sx:{width:30,height:30,bgcolor:"#1976d2",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",ml:1},children:a.jsx(vn,{size:14,color:"#fff"})})]})]})}if(s){const u=d;return a.jsxs(E,{sx:u.settingTopbar?.root||{display:"flex",alignItems:"center",justifyContent:"space-between",background:"#fff",minHeight:52,px:2,borderBottom:"1px solid #eee",mb:0},children:[a.jsxs(E,{sx:{display:"flex",alignItems:"center"},children:[a.jsxs(E,{onClick:t,sx:{display:"flex",alignItems:"center",cursor:"pointer",mr:1.5},children:[a.jsx(xd,{size:17}),a.jsx(P,{sx:{ml:.8,color:"#888",fontWeight:500,fontSize:15},children:"Back"})]}),a.jsx(Ke,{orientation:"vertical",flexItem:!0,sx:{mx:1.5,height:22}}),r&&r.length>0?p(15):a.jsxs(a.Fragment,{children:[a.jsx(P,{sx:{color:"#888",fontWeight:500,mr:.8,fontSize:14},children:"Products"}),a.jsx($r,{size:15,color:"#bbb",style:{margin:"0 7px"}}),a.jsx(P,{sx:{fontWeight:600,fontSize:15},children:e})]})]}),a.jsxs(E,{sx:{display:"flex",alignItems:"center"},children:[a.jsx(Ke,{orientation:"vertical",flexItem:!0,sx:{height:22,mx:1.5}}),a.jsx(Wt,{size:"small",sx:{color:"#888"},children:a.jsx(vd,{size:19})}),a.jsx(E,{sx:{width:34,height:34,bgcolor:"#1976d2",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",ml:1},children:a.jsx(vn,{size:15,color:"#fff"})})]})]})}};function Ea({open:e,onClose:t,onSave:r}){Ge();const n=Pt(),[o,s]=$.useState("sftp"),l=[{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=()=>{r&&r(o),t()},p=()=>{},u=n.productSettingModal;return a.jsx(si,{open:e,onClose:t,"aria-labelledby":"product-sync-setting-modal",sx:u.modal,children:a.jsxs(E,{sx:u.container,children:[a.jsxs(E,{sx:u.header,children:[a.jsx(P,{sx:u.headerTitle,children:"Sync Method"}),a.jsx(Wt,{onClick:t,size:"small",sx:u.closeButton,children:a.jsx(GP,{size:20})})]}),a.jsxs(E,{sx:u.content,children:[a.jsx(qg,{value:o,onChange:c,children:l.map(h=>a.jsx(xt,{value:h.value,control:a.jsx(Rg,{icon:a.jsx(E,{sx:u.radioIcon}),checkedIcon:a.jsx(YP,{size:18,color:"#000"}),sx:u.radioChecked}),label:a.jsx(P,{sx:u.radioLabel,children:h.label}),sx:{...u.formControlLabel,...o===h.value&&{backgroundColor:"#F3F8FF"}}},h.value))}),a.jsxs(E,{sx:u.upgradeSection,children:[a.jsx(P,{sx:u.upgradeText,children:"Upgrade for higher sync limits and more features"}),a.jsx(P,{onClick:p,sx:u.managePlanLink,children:"Manage Plan >"})]})]}),a.jsx(E,{sx:u.footer,children:a.jsx(Se,{fullWidth:!0,variant:"contained",onClick:d,sx:u.saveButton,children:"Save"})})]})})}const pI=({isOpen:e,onClose:t,onConfirm:r})=>{const n=Pt();let o;return o=n.productSettingModal,a.jsx(si,{open:e,onClose:t,"aria-labelledby":"sync-now-modal",sx:o.modal,children:a.jsxs(E,{sx:o.container,children:[a.jsx(E,{sx:o.header,children:a.jsx(P,{sx:{...o.headerTitle,fontSize:22},children:"Are you sure to SyncNow ?"})}),a.jsxs(E,{sx:{...o.footer,flexDirection:"row",gap:2,justifyContent:"center"},children:[a.jsx(Se,{variant:"contained",color:"primary",onClick:r,sx:{minWidth:100,mx:4},children:"Yes"}),a.jsx(Se,{variant:"outlined",color:"primary",onClick:t,sx:{minWidth:100},children:"No"})]})]})})};function uI(){const e=yt(),t=et(),r=Ft(),{companyId:n,integrationData:o}=Ae(L=>L?.dashboard||{}),[s,l]=$.useState(!0),[c,d]=$.useState(),[p,u]=$.useState(0),[h,v]=$.useState(""),[g,y]=$.useState(!1),[f,m]=$.useState(!1),[x,b]=$.useState(!1),[w,S]=$.useState("");$.useEffect(()=>{n&&r(Cr(n))},[n,r]),$.useEffect(()=>{let L=!1;e.state&&typeof e.state.tenantIntegrationMatched=="boolean"&&(L=e.state.tenantIntegrationMatched,L&&n&&r(Cr(n)));const z=o&&(o?.id||o?.channelId||o?.configs||Array.isArray(o?.data)&&o.data.length>0),k=e.state?.fromSyncStep===1?1:L===!0||z?3:0;queueMicrotask(()=>u(k))},[e.state,n,r,o]);const C=()=>y(!0),O=L=>{v(L),u(1),y(!1)},I=()=>{t("/products/settings/ftp-sync",{state:{fromSyncStep:p}})},F=async()=>{const L=o?.channelId||o?.id;if(!L){S("Channel ID not found"),b(!0),m(!1);return}m(!1);try{const z=await r(Eo(L));if(Eo.fulfilled.match(z)){const k=z.payload?.message==="Sync started successfully"?"Sync started successfully":"Sync not started successfully";S(k),b(!0),k==="Sync started successfully"&&setTimeout(()=>{r(Cr(n)),r(Er()),t("/")},2500)}else S("Sync not started successfully"),b(!0)}catch{S("Sync not started successfully"),b(!0)}},D=()=>{p===1?(u(0),v("")):t("/")};return a.jsxs(E,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[a.jsx(yr,{breadcrumbRight:"Settings",onBack:D}),a.jsx(Ea,{open:g,onClose:()=>y(!1),onSave:O}),a.jsx(pI,{isOpen:f,onClose:()=>m(!1),onConfirm:F}),a.jsx(gi,{open:x,autoHideDuration:4e3,onClose:()=>b(!1),message:w,anchorOrigin:{vertical:"top",horizontal:"center"}}),a.jsx(dI,{airaAiEnabled:s,setAiraAiEnabled:l,selectedCard:c,setSelectedCard:d,syncStep:p,syncMethod:h,integrationData:o,onSetupSync:C,onSetupFTP:I,onSyncNow:()=>m(!0)})]})}function fI(){const e=Ge(),t=Ze(e.breakpoints.down("sm")),r=Ze(e.breakpoints.between("sm","md")),n=et(),o=yt(),s=Pt(),l=Ar(),c=Mr(),[d,p]=$.useState(!0),[u,h]=$.useState(!1),[v,g]=$.useState(),y=o.state?.tenantIntegrationData,f={bgcolor:"#F3F8FF",border:"1px solid #2D64B8"},m=()=>{n("/empty-products")},x=()=>{},b=()=>{g("sync"),h(!0)},w=()=>{h(!1)},S=O=>{localStorage.setItem("selectedSyncMethod",O),h(!1),n("/product-sync-setting",{state:{tenantIntegrationData:y}})},C=()=>{g("catalogs")};if(!t&&!r){const O=s.productSetting;return a.jsxs(E,{sx:O.wrapper,children:[a.jsx(Ea,{open:u,onClose:w,onSave:S}),a.jsx(yr,{breadcrumbRight:"Settings",onBack:m}),a.jsxs(E,{sx:O.content,children:[a.jsx(nt,{airaAiEnabled:d,setAiraAiEnabled:p,handleManageCatalogs:C,selectedCard:v,highlightStyle:f}),a.jsxs(E,{children:[a.jsxs(E,{sx:O.syncHeader,children:[a.jsxs(E,{sx:O.sectionHeader,children:[a.jsx(P,{sx:O.sectionTitle,children:"Sync"}),a.jsx(P,{sx:O.sectionCount,children:"2"})]}),a.jsxs(E,{onClick:x,sx:O.syncNowButton,children:[a.jsx(Gn,{size:14}),a.jsx(P,{sx:O.syncNowText,children:"Sync Now"})]})]}),a.jsxs(E,{onClick:b,sx:{...O.setupSyncCard,...v==="sync"?f:{}},children:[a.jsxs(E,{sx:O.settingCardInner,children:[a.jsx(E,{sx:O.settingIcon,children:a.jsx(Gn,{size:18,color:"#454545"})}),a.jsxs(E,{children:[a.jsx(P,{sx:O.settingTitle,children:"Setup Sync"}),a.jsx(P,{sx:O.settingSubtitle,children:"Sync products"})]})]}),a.jsx($r,{size:20,color:"#888"})]})]})]})]})}if(t){const O=l.productSetting;return a.jsxs(E,{sx:O.wrapper,children:[a.jsx(Ea,{open:u,onClose:w,onSave:S}),a.jsx(yr,{breadcrumbRight:"Settings",onBack:m}),a.jsxs(E,{sx:O.content,children:[a.jsxs(E,{sx:O.section,children:[a.jsxs(E,{sx:O.sectionHeader,children:[a.jsx(P,{sx:O.sectionTitle,children:"General"}),a.jsx(P,{sx:O.sectionCount,children:"2"})]}),a.jsxs(E,{onClick:C,sx:{...O.settingCard,...v==="catalogs"?f:{}},children:[a.jsxs(E,{sx:O.settingCardInner,children:[a.jsx(E,{sx:O.settingIcon,children:a.jsx(at,{size:18,color:"#666"})}),a.jsxs(E,{children:[a.jsx(P,{sx:O.settingTitle,children:"Manage Shared Catalogs"}),a.jsx(P,{sx:O.settingSubtitle,children:"4 shared"})]})]}),a.jsx($r,{size:20,color:"#999"})]}),a.jsxs(E,{sx:{background:"#fff",borderRadius:2,boxShadow:"0 1px 4px #0001",border:"1px solid #e6eaf1",display:"flex",alignItems:"center",px:2.5,py:1.5,mb:2,mt:1,minHeight:60},children:[a.jsx(E,{sx:{display:"flex",alignItems:"center",mr:2},children:a.jsx(vn,{size:20,color:"#888"})}),a.jsxs(E,{sx:{flex:1},children:[a.jsx(P,{sx:{fontWeight:700,fontSize:16,color:"#222",lineHeight:1.2},children:"Aira AI"}),a.jsx(P,{sx:{color:"#888",fontSize:14,fontWeight:400,mt:.5,lineHeight:1.3},children:"Make your workflows faster and smarter"})]}),a.jsx(mi,{checked:d,onChange:I=>p(I.target.checked),sx:{mr:.5,"& .MuiSwitch-switchBase.Mui-checked":{color:"#1976d2"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"#b3e0ff"},"& .MuiSwitch-track":{backgroundColor:"#e3eefa",opacity:1},"& .MuiSwitch-thumb":{boxShadow:"0 1px 4px #1976d233"}}})]})]}),a.jsxs(E,{children:[a.jsxs(E,{sx:O.syncHeader,children:[a.jsxs(E,{sx:O.sectionHeader,children:[a.jsx(P,{sx:O.sectionTitle,children:"Sync"}),a.jsx(P,{sx:O.sectionCount,children:"2"})]}),a.jsxs(E,{onClick:x,sx:O.syncNowButton,children:[a.jsx(Gn,{size:14}),a.jsx(P,{sx:O.syncNowText,children:"Sync Now"})]})]}),a.jsxs(E,{onClick:b,sx:{...O.setupSyncCard,...v==="sync"?f:{}},children:[a.jsxs(E,{sx:O.settingCardInner,children:[a.jsx(E,{sx:O.settingIcon,children:a.jsx(Gn,{size:18,color:"#454545"})}),a.jsxs(E,{children:[a.jsx(P,{sx:O.settingTitle,children:"Setup Sync"}),a.jsx(P,{sx:O.settingSubtitle,children:"Sync products"})]})]}),a.jsx($r,{size:20,color:"#888"})]})]})]})]})}if(r){const O=c.productSetting;return a.jsxs(E,{sx:O.wrapper,children:[a.jsx(Ea,{open:u,onClose:w,onSave:S}),a.jsx(yr,{breadcrumbRight:"Settings",onBack:m}),a.jsxs(E,{sx:O.content,children:[a.jsxs(E,{sx:O.section,children:[a.jsxs(E,{sx:O.sectionHeader,children:[a.jsx(P,{sx:O.sectionTitle,children:"General"}),a.jsx(P,{sx:O.sectionCount,children:"2"})]}),a.jsxs(E,{onClick:C,sx:{...O.settingCard,...v==="catalogs"?f:{}},children:[a.jsxs(E,{sx:O.settingCardInner,children:[a.jsx(E,{sx:O.settingIcon,children:a.jsx(at,{size:18,color:"#666"})}),a.jsxs(E,{children:[a.jsx(P,{sx:O.settingTitle,children:"Manage Shared Catalogs"}),a.jsx(P,{sx:O.settingSubtitle,children:"4 shared"})]})]}),a.jsx($r,{size:20,color:"#999"})]}),a.jsxs(E,{sx:{background:"#fff",borderRadius:2,boxShadow:"0 1px 4px #0001",border:"1px solid #e6eaf1",display:"flex",alignItems:"center",px:2.5,py:1.5,mb:2,mt:1,minHeight:60},children:[a.jsx(E,{sx:{display:"flex",alignItems:"center",mr:2},children:a.jsx(vn,{size:20,color:"#888"})}),a.jsxs(E,{sx:{flex:1},children:[a.jsx(P,{sx:{fontWeight:700,fontSize:16,color:"#222",lineHeight:1.2},children:"Aira AI"}),a.jsx(P,{sx:{color:"#888",fontSize:14,fontWeight:400,mt:.5,lineHeight:1.3},children:"Make your workflows faster and smarter"})]}),a.jsx(mi,{checked:d,onChange:I=>p(I.target.checked),sx:{mr:.5,"& .MuiSwitch-switchBase.Mui-checked":{color:"#1976d2"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"#b3e0ff"},"& .MuiSwitch-track":{backgroundColor:"#e3eefa",opacity:1},"& .MuiSwitch-thumb":{boxShadow:"0 1px 4px #1976d233"}}})]})]}),a.jsxs(E,{children:[a.jsxs(E,{sx:O.syncHeader,children:[a.jsxs(E,{sx:O.sectionHeader,children:[a.jsx(P,{sx:O.sectionTitle,children:"Sync"}),a.jsx(P,{sx:O.sectionCount,children:"2"})]}),a.jsxs(E,{onClick:x,sx:O.syncNowButton,children:[a.jsx(Gn,{size:14}),a.jsx(P,{sx:O.syncNowText,children:"Sync Now"})]})]}),a.jsxs(E,{onClick:b,sx:{...O.setupSyncCard,...v==="sync"?f:{}},children:[a.jsxs(E,{sx:O.settingCardInner,children:[a.jsx(E,{sx:O.settingIcon,children:a.jsx(Gn,{size:18,color:"#454545"})}),a.jsxs(E,{children:[a.jsx(P,{sx:O.settingTitle,children:"Setup Sync"}),a.jsx(P,{sx:O.settingSubtitle,children:"Sync products"})]})]}),a.jsx($r,{size:20,color:"#888"})]})]})]})]})}}const gy=["Setup FTP","Check data","Start Sync"],hI=e=>{const t=yt(),r=et();t.state?.tenantIntegrationData;const n=t.state?.fromSyncStep,o=()=>{n!==void 0?r("/product-setting",{state:{fromSyncStep:n,tenantIntegrationMatched:n===3}}):r("/product-setting")};return a.jsxs(E,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[a.jsx(yr,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],title:"FTP Sync",onBack:o}),a.jsxs(E,{sx:{maxWidth:800,mx:"auto",pt:4},children:[a.jsx(E,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",px:4,mb:2},children:gy.map((s,l)=>a.jsx("span",{style:{fontWeight:l===0?700:400,color:"#222",fontSize:16,flex:1,textAlign:l===0?"left":l===gy.length-1?"right":"center"},children:s},s))}),a.jsx(E,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:300,minWidth:600,bgcolor:"#fff"},children:a.jsx(E,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:400},children:a.jsxs(Jt,{elevation:0,sx:{mt:4,p:4,borderRadius:4,background:"#fafafa",minWidth:400,maxWidth:420},children:[a.jsx(P,{variant:"h6",gutterBottom:!0,sx:{fontWeight:700},children:"Setup Instructions"}),a.jsxs("ol",{style:{color:"#222",fontSize:16,margin:0,paddingLeft:20,marginBottom:24},children:[a.jsx("li",{children:"Directory should have just one file"}),a.jsx("li",{children:"File format must be in CSV (comma separated)"}),a.jsx("li",{children:"File structure should be flat"})]}),a.jsx(E,{sx:{display:"flex",justifyContent:"flex-end"},children:a.jsx(Se,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:()=>e.onNext&&e.onNext(),children:"Next"})})]})})})]})]})},yy=ht(a.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"),gI=ht(a.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"),yI=ht(a.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),mI=ht(a.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff"),bI=({active:e,completed:t,showBlue:r})=>a.jsx(E,{sx:{width:24,height:24,borderRadius:"50%",border:`2px solid ${r?"#2563eb":"#bbb"}`,display:"flex",alignItems:"center",justifyContent:"center",background:"#fff"},children:r?a.jsx("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",children:a.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#2563eb",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})}):e||t?a.jsx("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",children:a.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#bbb",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})}):a.jsx("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",children:a.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#bbb",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})}),Ta=({steps:e=[],activeStep:t=0,showCheckDataBlueTick:r=!1,progressToCheckData:n=!1,showSetupFtpBlueTick:o=!1,showStartSyncBlueTick:s=!1,instantComplete:l=!1})=>{Ge();const[c,d]=$.useState(0),[p,u]=$.useState(!1),h=$.useRef(null),[v,g]=$.useState(0),[y,f]=$.useState(0),[m,x]=$.useState(0);return $.useEffect(()=>{if(l){setTimeout(()=>{d(1),u(!0)},0);return}if(setTimeout(()=>{d(0),u(!1)},0),n){const b=setTimeout(()=>{d(1),setTimeout(()=>u(!0),600)},100);return()=>clearTimeout(b)}else{const b=setTimeout(()=>{d(1),setTimeout(()=>u(!0),600)},100);return()=>clearTimeout(b)}},[t,e.length,n,l]),$.useEffect(()=>{if(h.current){const b=h.current.querySelector(".stepper-icon-0"),w=h.current.querySelector(".stepper-icon-1"),S=h.current.querySelector(`.stepper-icon-${e.length-1}`);if(b&&w&&S){const C=b.getBoundingClientRect(),O=w.getBoundingClientRect(),I=S.getBoundingClientRect(),F=h.current.getBoundingClientRect(),D=C.left+C.width/2-F.left;g(D),f((O.left+O.width/2-F.left-D)*.4),x(I.left+I.width/2-F.left-D)}}},[e.length,c]),a.jsxs(E,{sx:{width:"100%",p:"24px 0 0 0"},children:[a.jsx(E,{ref:h,sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",px:4},children:e.map((b,w)=>a.jsxs(E,{className:`stepper-icon-${w}`,sx:{display:"flex",flexDirection:"column",alignItems:"center",flex:1},children:[a.jsx(bI,{active:w===t,completed:w<t,showBlue:w===0&&o||w===1&&r&&p||w===2&&s}),a.jsx("span",{style:{fontWeight:w===t?700:400,color:"#222",fontSize:16,marginTop:8},children:b})]},b))}),a.jsxs(E,{sx:{position:"relative",width:"100%",height:6,mt:1.5,mb:0,px:4},children:[a.jsx(E,{sx:{position:"absolute",left:v,top:0,width:m,height:4,bgcolor:"#f2f2f2",borderRadius:2,transition:"left 0.30s, width 0.30s"}}),a.jsx(E,{sx:{position:"absolute",left:v,top:0,height:4,borderRadius:2,bgcolor:"#219653",width:s?c?m:0:n?c?m*.5:0:c?y:0,transition:"width 0.7s cubic-bezier(.47,1.64,.41,.8), left 0.4s"}})]})]})},vI=["Setup FTP","Check data","Start Sync"],xI=e=>e.dashboard?.companyId||"";function SI(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 wI=e=>{const{ftpDetails:t={}}=e,[r,n]=$.useState(null),o=yt(),s=et(),l=Ae(xI),c=1,[d,p]=$.useState(!1),[u,h]=$.useState(0);$.useEffect(()=>{let z,k;return setTimeout(()=>{h(0),p(!1),z=setTimeout(()=>{h(1),k=setTimeout(()=>p(!0),600)},100)},0),()=>{z&&clearTimeout(z),k&&clearTimeout(k)}},[]);const[v,g]=$.useState(!1),y=localStorage.getItem("selectedSyncMethod")||"sftp",[f,m]=$.useState(`${y}:`),[x,b]=$.useState(""),[w,S]=$.useState(""),C=Ft(),O=Ae(z=>z.ftpSync.loading),I=Ae(z=>z.ftpSync.error),F=Ge();Ze(F.breakpoints.up("lg"));const D=Ae(z=>z.productSettings.syncData);$.useEffect(()=>{const z=o.state?.ftpConfig,k=o.state?.tenantIntegrationData;if(D&&D.serverAddress){setTimeout(()=>{m(D.serverAddress||""),b(D.configs&&D.configs.username||""),S(D.configs&&D.configs.password||"")},0);return}if(t&&(t.host||t.username||t.password)){const j=t.type||"sftp",_=t.host||"",M=t.port||"",N=t.path||"",A=`${j}://${_}${M?`:${M}`:""}${N?`/${N}`:""}`;setTimeout(()=>{m(A),b(t.username||""),S(t.password||"")},0);return}if(k&&k.configs){const j=k.configs,_=j.type||k.type||"sftp",M=j.host||"",N=j.port||"",A=j.path||"",W=`${_}://${M}:${N}/${A}`,H=j.username||"",B=j.password||"";setTimeout(()=>{m(W),b(H),S(B)},0);return}if(z){const _=`${z.type||"sftp"}://${z.host}:${z.port}/${z.path}`,M=z.username||"",N=z.password||"";setTimeout(()=>{m(_),b(M),S(N)},0)}},[o.state,D,t]);const L=async()=>{if(!l){alert("Company ID is required. Please ensure the app is properly configured.");return}const{type:z,host:k,port:j,path:_}=SI(f),M=await C(So({serverAddress:f,username:x,password:w,companyId:l}));if(!So.fulfilled.match(M))return;const N=M.payload;if(o.state?.fromSettingsIcon){const H=N?.entity_type||r?.entity_type||"products",B={...r||{},companyId:l,tenantId:l,type:z,configs:{host:k,port:Number(j),path:_,username:x,password:w,sync_frequency:r?.configs?.sync_frequency||t?.sync_frequency||"",sync_time:r?.configs?.sync_time||t?.sync_time||""},entity_type:H,mappings:r?.mappings||N?.existing_mapping?.mappings||[]};console.log("[FTP Sync – Step 1] JSON object created (settings flow):",JSON.stringify(B,null,2)),n(B),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(B)),s("/ftp-sync-2",{state:{fromSettingsIcon:!0,putjson:B}});return}const A=N?.entity_type||"",W={companyId:l,tenantId:l,type:z,serverAddress:f,configs:{host:k,port:Number(j),path:_,username:x,password:w,sync_frequency:"",sync_time:""},entity_type:A||"products",mappings:N?.existing_mapping?.mappings||[]};console.log("[FTP Sync – Step 1] JSON object created (after test connection):",JSON.stringify(W,null,2)),C(us(W)),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(W)),e.onNext&&e.onNext({putjson:W})};return a.jsxs(E,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[a.jsx(yr,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],title:"FTP Sync",onBack:e.onBack}),a.jsxs(E,{sx:{maxWidth:800,mx:"auto",pt:4},children:[a.jsx(Ta,{steps:vI,activeStep:c,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:d,animateSetupFtp:!0}),a.jsx(E,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:600,minWidth:600,bgcolor:"#fff",mt:4},children:a.jsx(E,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:400},children:a.jsx(E,{elevation:0,sx:{p:0,borderRadius:4,background:"#fff",minWidth:440,maxWidth:480},children:a.jsxs(E,{sx:{background:"#f5f5f5",borderRadius:4,p:4},children:[a.jsx(P,{variant:"h6",gutterBottom:!0,sx:{fontWeight:700},children:"Login Details"}),a.jsxs(E,{component:"form",autoComplete:"off",sx:{width:"90%"},children:[a.jsxs("div",{style:{marginBottom:16},children:[a.jsx("label",{style:{display:"block",fontWeight:500,marginBottom:4},children:"Server Address"}),a.jsx("input",{type:"text",value:f,onChange:z=>m(z.target.value),placeholder:"sftp://234.124.12.34:4432/data/sync",style:{width:"90%",background:"#fff",border:"1px solid #d1d5db",borderRadius:"6px",padding:"12px 14px",fontSize:16,marginBottom:0}})]}),a.jsxs("div",{style:{marginBottom:16},children:[a.jsx("label",{style:{display:"block",fontWeight:500,marginBottom:4},children:"Username"}),a.jsx("input",{type:"text",value:x,onChange:z=>b(z.target.value),placeholder:"Enter username",style:{width:"90%",background:"#fff",border:"1px solid #d1d5db",borderRadius:"6px",padding:"12px 14px",fontSize:16,marginBottom:0}})]}),a.jsxs("div",{style:{marginBottom:16,position:"relative"},children:[a.jsx("label",{style:{display:"block",fontWeight:500,marginBottom:4},children:"Password"}),a.jsx("input",{type:v?"text":"password",value:w,onChange:z=>S(z.target.value),placeholder:"Enter password",style:{width:"82%",background:"#fff",border:"1px solid #d1d5db",borderRadius:"6px",padding:"12px 44px 12px 14px",fontSize:16,marginBottom:0}}),a.jsx(Wt,{"aria-label":"toggle password visibility",onClick:()=>g(z=>!z),edge:"end",tabIndex:-1,style:{position:"absolute",right:24,top:"65%",transform:"translateY(-50%)",zIndex:2},children:v?a.jsx(mI,{}):a.jsx(yI,{})})]}),a.jsxs(E,{sx:{display:"flex",mt:3,justifyContent:"flex-end",gap:2},children:[a.jsx(Se,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",bgcolor:"#fff"},onClick:e.onBack,children:"Back"}),a.jsx(Se,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:L,disabled:O,children:O?"Loading...":"Next"})]}),I&&a.jsx(P,{color:"error",sx:{mt:2},children:"Fill the credentials"})]})]})})})})]})]})},CI=["Setup FTP","Check data","Start Sync"],EI=e=>e.productSettings.ftpColumns||[],TI=e=>e.productSettings.preview||[],OI=e=>e.productSettings.loading,kI=e=>e.productSettings.error,PI=e=>e.productSettings.existingMapping,II=e=>e.productSettings.entity_type||"products",NI=e=>{const{mapping:t=[]}=e,r=yt(),n=et(),o=r.state?.fromSettingsIcon,[s,l]=$.useState(r.state?.putjson||(t.length>0?{mappings:t}:null)),[c,d]=$.useState({activeStep:1,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!0}),[p,u]=$.useState([]),[h,v]=$.useState({});$.useEffect(()=>{let _;return setTimeout(()=>{d({activeStep:1,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!0}),_=setTimeout(()=>{d({activeStep:1,showCheckDataBlueTick:!0,progressToCheckData:!0,showSetupFtpBlueTick:!0})},400)},0),()=>{_&&clearTimeout(_)}},[]);const g=Ae(EI),y=Ae(TI),f=Ae(OI),m=Ae(kI),x=Ae(PI),b=Ae(II),w=$.useRef(f);$.useEffect(()=>{f&&!w.current&&queueMicrotask(()=>v({})),w.current=f},[f]);const S=$.useRef(!1);$.useLayoutEffect(()=>{x==null||!x?.mappings||x.mappings.length===0?S.current||(S.current=!0,queueMicrotask(()=>v({}))):S.current=!1},[x]),$.useEffect(()=>{console.log("=== FTPSync_2: Redux State ==="),console.log("ftpColumns:",g),console.log("preview:",y),console.log("existingMapping:",x),console.log("entityType:",b),console.log("loading:",f),console.log("error:",m),console.log("================================")},[g,y,x,b,f,m]);const C=Ft();Ae(_=>_.productSettings.mappingColumns||[]),Ae(_=>_.productSettings.mappingColumnsLoading),$.useEffect(()=>{async function _(){try{let M=[];if(x?.mappings?.length>0){const N=x.mappings.map(A=>A.target_field).filter(A=>A&&typeof A=="string");M=[...new Set(N)],console.log("✅ Using target_fields from existing_mapping as primary Aira columns:",M)}try{const N=await C(To(b));To.fulfilled.match(N)&&Array.isArray(N.payload)&&(N.payload.filter(W=>W&&typeof W=="string").forEach(W=>{M.includes(W)||M.push(W)}),console.log("✅ Merged API columns with existing_mapping:",M))}catch(N){console.warn("⚠️ API fetch failed, using only existing_mapping target_fields:",N)}if(t&&t.length>0){const N=t.map(A=>A.target_field).filter(A=>A&&typeof A=="string"&&!M.includes(A));N.length>0&&(M=[...M,...N],console.log("✅ Added mapping prop fields:",N))}M=M.filter(N=>N&&typeof N=="string"),console.log("✅ Final Aira columns (no undefined):",M),u(M)}catch(M){if(console.error("Error fetching Aira columns:",M),x?.mappings?.length>0){const N=x.mappings.map(W=>W.target_field).filter(W=>W&&typeof W=="string"),A=[...new Set(N)];console.log("✅ Fallback: Using target_fields from existing_mapping:",A),u(A)}else u([])}}(b||x?.mappings?.length>0||t&&t.length>0)&&_()},[b,x,t,C]);const O=$.useMemo(()=>{if(x?.mappings&&x.mappings.length>0){const _=x.mappings.map(M=>M.source_field).filter(M=>M);if(_.length>0)return console.log("✅ Using source_field from existing_mapping as FTP columns:",_),_}return g&&g.length>0?(console.log("✅ Using ftp_columns from API response:",g),g):(console.warn("⚠️ No FTP columns available from existing_mapping or API"),[])},[x,g]),I=$.useMemo(()=>{const _=y.filter(M=>Object.keys(M).length>0);return console.log("✅ Parsed preview data:",_.length,"rows"),_},[y]),F=$.useMemo(()=>{if(x?.mappings&&x.mappings.length>0){const _={};return x.mappings.forEach(M=>{M.source_field&&M.target_field&&(_[M.source_field]=M.target_field)}),console.log("=== FTPSync_2: Initial mappings from existing_mapping ===",_),_}return{}},[x]),L=x?.mappings?.length>0?{...F,...h}:{...h},z=Ge();Ze(z.breakpoints.up("lg"));const k=Ae(_=>_.productSettings.syncData),j=()=>{const _=O.map(W=>({source_field:W||"",target_field:L[W]||""}));if(o&&s){const W=_.filter(B=>B.source_field&&B.target_field),H={...s,tenantId:s.tenantId||s.companyId,type:s.type||k.type||"sftp",entity_type:s.entity_type||k.entity_type||"products",mappings:W};console.log("[FTP Sync – Step 2] JSON object created (settings flow, with mappings):",JSON.stringify({tenantId:H.tenantId,type:H.type,entity_type:H.entity_type,configs:H.configs,mappings:H.mappings},null,2)),l(H),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(H)),e.onNext&&e.onNext({fromSettingsIcon:!0,putjson:H});return}const M=JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"{}"),N=k.companyId||M.companyId||M.tenantId||"",A={...M,companyId:N,tenantId:N,type:k.type||M.type||"sftp",integration_type:k.integration_type||M.integration_type||"",entity_type:M.entity_type||k.entity_type||"products",configs:k.configs||M.configs||{},ftp_columns:O,preview:I,mappings:_};console.log("[FTP Sync – Step 2] JSON object created (with mappings):",JSON.stringify({tenantId:A.tenantId,type:A.type,entity_type:A.entity_type,configs:A.configs,mappings:A.mappings},null,2)),C(us(A)),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(A)),e.onNext&&e.onNext({putjson:A})};return a.jsxs(E,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[a.jsx(yr,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:()=>n("/ftp-sync-1")}),a.jsxs(E,{sx:{maxWidth:900,mx:"auto",pt:4},children:[a.jsx(Ta,{steps:CI,activeStep:c.activeStep,showCheckDataBlueTick:c.showCheckDataBlueTick,progressToCheckData:c.progressToCheckData,showSetupFtpBlueTick:c.showSetupFtpBlueTick}),a.jsx(E,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:300,mb:4},children:a.jsxs(Jt,{elevation:0,sx:{mt:4,p:0,borderRadius:4,width:"100%",maxWidth:900},children:[a.jsxs(E,{sx:{p:3,pb:2,borderBottom:"1px solid #eee",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[a.jsxs(E,{children:[a.jsx(P,{variant:"subtitle1",sx:{fontWeight:700},children:"Map data from FTP to AiraOps"}),a.jsx(P,{variant:"body2",sx:{color:"#888",mt:.5},children:"sftp://234.124.12.34:4432/data/sync"})]}),a.jsxs(E,{children:[a.jsx(Se,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",mr:2},onClick:()=>n("/ftp-sync-1"),children:"Back"}),a.jsx(Se,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:j,children:"Next"})]})]}),a.jsx(oy,{sx:{background:"#fafafa",borderRadius:4,mt:0,boxShadow:"none",border:"1px solid #eee"},children:f?a.jsx(E,{sx:{p:3,textAlign:"center"},children:"Loading..."}):m?a.jsx(E,{sx:{p:3,color:"red",textAlign:"center"},children:m}):O.length===0?a.jsx(E,{sx:{p:3,textAlign:"center",color:"#888"},children:"No columns available. Please check your FTP connection and try again."}):a.jsxs(ty,{size:"small",children:[a.jsxs(sy,{children:[a.jsxs(vi,{children:[a.jsx(qr,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},children:"Columns in FTP"}),O.map((_,M)=>a.jsx(qr,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},children:_},_+M))]}),a.jsxs(vi,{children:[a.jsx(qr,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none"},children:"Columns in Aira"}),O.map((_,M)=>a.jsx(qr,{sx:{background:"#fafafa",borderBottom:"none"},children:a.jsxs(bn,{value:L[_]||"",onChange:N=>v(A=>({...A,[_]:N.target.value})),variant:"standard",disableUnderline:!0,displayEmpty:!0,sx:{minWidth:120,fontWeight:500},MenuProps:{PaperProps:{sx:{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}}},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},MenuListProps:{sx:{padding:0}}},children:[a.jsx(Rt,{value:"",sx:{padding:"8px 16px",minHeight:"auto",fontSize:"14px",margin:0},children:a.jsx("em",{style:{fontStyle:"normal",color:"#888"},children:"Select column"})}),p.map(N=>a.jsx(Rt,{value:N,sx:{padding:"8px 16px",minHeight:"auto",fontSize:"14px",margin:0},children:N},N))]})},M))]})]}),a.jsx(ny,{children:I.length>0?I.map((_,M)=>a.jsxs(vi,{children:[a.jsx(qr,{sx:{fontWeight:700,background:"#fff",borderBottom:"none"},children:M===0?"Data preview":""}),O.map((N,A)=>a.jsx(qr,{sx:{background:"#fff",borderBottom:"none"},children:_[N]||""},A))]},M)):a.jsx(vi,{children:a.jsx(qr,{colSpan:O.length+1,sx:{textAlign:"center",color:"#888",py:2},children:"No preview data available"})})})]})})]})})]})]})},_I=["Upload File","Check data","Start Sync"],AI=e=>e.dashboard?.companyId||"",MI=e=>{const{syncFrequency:t="",syncTime:r=""}=e,n=yt(),o=et(),s=Ae(AI),l=n.state?.fromSettingsIcon;$.useEffect(()=>{console.log("=== FTPSync_3: Props received ==="),console.log("syncFrequencyProp:",t),console.log("syncTimeProp:",r),console.log("==================================")},[t,r]);const[c,d]=$.useState(()=>{if(n.state?.putjson){const A=JSON.parse(JSON.stringify(n.state.putjson));return A.mappings&&(A.originalMappings=JSON.parse(JSON.stringify(A.mappings))),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(A)),A}const N=window.localStorage.getItem("ftpSyncPutjson");if(N){const A=JSON.parse(N);return A.mappings&&!A.originalMappings&&(A.originalMappings=JSON.parse(JSON.stringify(A.mappings))),A}return null});$.useEffect(()=>{c&&window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(c))},[c]);const[p,u]=$.useState(null);$.useEffect(()=>{s&&Tl(s).then(N=>{const A=N&&N.data&&N.data[0];u(A)})},[s]);const h=!!l||!!p,v=N=>{if(!N)return"";const A=N.charAt(0).toUpperCase()+N.slice(1).toLowerCase();return A==="Daily"||A==="Day"?"Daily":A==="Weekly"||A==="Week"?"Weekly":A==="Monthly"||A==="Month"?"Monthly":A},[g,y]=$.useState(()=>{if(t){const A=v(t);return console.log("✅ Initial syncFrequency from prop:",t,"→",A),A}const N=c?.configs?.sync_frequency?v(c.configs.sync_frequency):"";return N?(console.log("✅ Initial syncFrequency from putjson:",c?.configs?.sync_frequency,"→",N),N):(console.log("⚠️ Initial syncFrequency: using default Daily"),"Daily")}),[f,m]=$.useState(r||c&&c.configs?.sync_time||"");$.useEffect(()=>{async function N(){if(s)try{const A=n.state?.fromProductSetting;let W=null;A&&n.state?.integrationData&&(W=n.state.integrationData);const H=W||await Tl(s),B=W||H&&H.data&&H.data[0];if(B){const U=c||JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"null"),X={...B,companyId:B.companyId||s,entity_type:B.entity_type||U?.entity_type||"product",mappings:B.mappings||U?.mappings||[]},J=B.configs?.sync_frequency||"",Q=B.configs?.sync_time||"",Y=v(J);d(X),console.log("=== FTPSync_3: Prefilling syncFrequency ==="),console.log("syncFrequencyProp:",t),console.log("apiSyncFrequencyRaw:",J),console.log("apiSyncFrequency (normalized):",Y),console.log("currentPutjson?.configs?.sync_frequency:",U?.configs?.sync_frequency);const K=t?v(t):"";let ee="";if(K)console.log("✅ Using syncFrequencyProp (normalized):",t,"→",K),ee=K,y(K);else if(Y)console.log("✅ Setting syncFrequency from API:",J,"→",Y),ee=Y,y(Y);else if(U?.configs?.sync_frequency){const oe=v(U.configs.sync_frequency);console.log("✅ Using currentPutjson sync_frequency (normalized):",U.configs.sync_frequency,"→",oe),ee=oe,y(oe)}else console.log("⚠️ No syncFrequency found, using default: Daily"),ee="Daily",y("Daily");console.log("Final syncFrequency state:",ee),console.log("==========================================="),r?m(r):Q?m(Q):U?.configs?.sync_time?m(U.configs.sync_time):m(""),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(X))}}catch(A){console.error("Error fetching integration data:",A);const W=JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"null");!t&&W?.configs?.sync_frequency?y(v(W.configs.sync_frequency)):t&&y(v(t)),!r&&W?.configs?.sync_time?m(W.configs.sync_time):r&&m(r)}}N()},[s]),$.useEffect(()=>{if(t){const N=v(t);console.log("✅ syncFrequencyProp changed, updating state:",t,"→",N),y(N),c&&c.configs?.sync_frequency!==N&&d(A=>{const W={...A,configs:{...A.configs,sync_frequency:N}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(W)),console.log("✅ Updated putjson.configs.sync_frequency:",N),W})}},[t]),$.useEffect(()=>{r&&(console.log("✅ syncTimeProp changed, updating state:",r),m(r),c&&c.configs?.sync_time!==r&&d(N=>{const A={...N,configs:{...N.configs,sync_time:r}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(A)),console.log("✅ Updated putjson.configs.sync_time:",r),A}))},[r]),$.useEffect(()=>{if(c&&h&&(g||f)){const N=c.configs?.sync_frequency,A=c.configs?.sync_time;(N!==g||A!==f)&&d(W=>{const H={...W,configs:{...W.configs,sync_frequency:g||W.configs?.sync_frequency,sync_time:f||W.configs?.sync_time}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(H)),console.log("✅ Updated putjson with syncFrequency and syncTime:",{sync_frequency:H.configs.sync_frequency,sync_time:H.configs.sync_time}),H})}},[g,f,h]);const x=Ft(),b=Ae(N=>N.productSettings.syncData),w=N=>{const A=N.target.value;y(A),c&&d(W=>{const H={...W,configs:{...W.configs,sync_frequency:A}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(H)),H}),h||x(us({...b,configs:{...b&&b.configs||{},sync_frequency:A,sync_time:f}}))},S=N=>{const A=N.target.value;m(A),c&&d(W=>{const H={...W,configs:{...W.configs,sync_time:A}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(H)),H}),h||x(us({...b,configs:{...b&&b.configs||{},sync_frequency:g,sync_time:A}}))};function C(N){try{const A=new URL(N);return{type:A.protocol.replace(":",""),host:A.hostname,port:A.port,path:A.pathname}}catch{return{type:"",host:"",port:"",path:""}}}const[O,I]=$.useState(!1),[F,D]=$.useState(""),[L,z]=$.useState(!1),k=async()=>{const N=n.state?.fromSyncSetting;if(h){if(!c){D("Update failed: missing data."),I(!0);return}c.originalMappings||d(ne=>({...ne,originalMappings:ne.mappings?JSON.parse(JSON.stringify(ne.mappings)):[]}));const re=JSON.parse(JSON.stringify(c.mappings||[])),q=JSON.parse(JSON.stringify(c.originalMappings||[])),ce=c.configs?.sync_frequency,ie=c.configs?.sync_time,ye=JSON.stringify(re)!==JSON.stringify(q),Le=g!==ce,Oe=f!==ie,ke=n.state?.fromProductSetting;if((Le||Oe)&&!ye||N&&(Le||Oe)||ke&&(Le||Oe)){let ne={configs:{}};Le&&(ne.configs.sync_frequency=g),Oe&&(ne.configs.sync_time=f);try{const tt=await x(ps({companyId:c.companyId,data:ne}));if(tt.error){let ot="Update failed. Please try again.";tt.error.response&&tt.error.response.status===500&&(ot="Server error. Please contact support or try again later"),D(ot),I(!0);return}let _e="";Le&&!Oe?_e="SyncFrequency Updated":!Le&&Oe?_e="SyncTime Updated":Le&&Oe&&(_e="SyncFrequency and SyncTime Updated"),D(_e),I(!0),z(!0);const Zt=JSON.parse(JSON.stringify(c.mappings||[]));d(ot=>{const lt={...ot,originalMappings:Zt};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(lt)),lt}),setTimeout(()=>{ke?o("/product-setting",{state:{tenantIntegrationMatched:!0}}):o("/product-sync-setting",{state:{fromSettingsIcon:!0}}),setTimeout(()=>z(!1),2e3)},1500);return}catch{D("Update failed. Please try again."),I(!0),z(!0),setTimeout(()=>z(!1),2e3);return}}const Ce={...c,configs:{...c.configs,sync_frequency:g,sync_time:f}};d(Ce),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(Ce));const Ne={tenantId:Ce.tenantId||Ce.companyId,type:Ce.type,entity_type:Ce.entity_type,configs:{host:Ce.configs.host,port:Number(Ce.configs.port),username:Ce.configs.username,password:Ce.configs.password,path:Ce.configs.path,sync_frequency:g,sync_time:f},mappings:(Ce.mappings||[]).map(ne=>({source_field:ne.source_field,target_field:ne.target_field}))};console.log("[FTP SYNC] JSON object updated:",Ce),console.log("[FTP SYNC] API payload for PUT /ftp/sync/update-details:",Ne);try{if(L)return;console.log("[FTP SYNC] Calling PUT /ftp/sync/update-details API...");const ne=await x(Co(Ne));if(Co.rejected.match(ne)){console.error("[FTP SYNC] API call failed:",ne.error),D("Update failed. Please try again."),I(!0);return}console.log("[FTP SYNC] API call successful:",ne.payload),D("Sync Update Successfully"),I(!0),setTimeout(()=>{o("/product-setting",{state:{tenantIntegrationMatched:!0}})},1500)}catch(ne){console.error("[FTP SYNC] Error calling API:",ne),D("Update failed. Please try again."),I(!0)}return}const A=b.configs||{},W=C(b.serverAddress||""),H=A.host||W.host,B=A.port!=null?Number(A.port):parseInt(W.port,10),U=(A.path||W.path||"").replace(/^\//,""),X=b.type||W.type||"sftp",J=b.username||A.username||"",Q=b.password||A.password||"",Y=g||A.sync_frequency||"",K=typeof Y=="string"?Y.toLowerCase():Y;let ee=f||A.sync_time||"";if(typeof ee=="string"&&/^\d{1,2}:\d{2}\s*[AP]M$/i.test(ee.trim())){const[re,q]=ee.trim().split(/\s+/),[ce,ie]=re.split(":").map(Number),ye=q.toUpperCase()==="PM"&&ce!==12?ce+12:q.toUpperCase()==="AM"&&ce===12?0:ce;ee=`${String(ye).padStart(2,"0")}:${String(ie).padStart(2,"0")}`}else typeof ee=="string"&&(ee=ee.trim());const oe=(b.mappings||[]).filter(re=>re.source_field&&re.target_field).map(re=>({source_field:re.source_field,target_field:re.target_field}));if(!s){D("Company ID is required. Please ensure the app is properly configured."),I(!0);return}if(!H||!B||!J||!Q||oe.length===0){D("Please fill all required fields and mappings before saving."),I(!0);return}const ae=b.entity_type||"products",Z={tenantId:s,type:X,entity_type:ae,configs:{host:H,port:Number(B),username:J,password:Q,path:U,sync_frequency:K,sync_time:ee},mappings:oe};console.log("[FTP Sync – Step 3] JSON object for /ftp/sync/save:",JSON.stringify(Z,null,2));try{const re=await x(wo(Z));wo.fulfilled.match(re)?(D("Save and Start Sync Updated Successfully"),I(!0),e.onNext&&e.onNext()):(D(re?.payload||"Save failed. Please try again."),I(!0))}catch{D("Save failed. Please try again."),I(!0)}},[j,_]=$.useState({activeStep:0,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!1,showStartSyncBlueTick:!1});$.useEffect(()=>{let N,A,W,H;return setTimeout(()=>{_({activeStep:0,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!1,showStartSyncBlueTick:!1}),N=setTimeout(()=>{_(B=>({...B,progressToCheckData:!0})),A=setTimeout(()=>{_(B=>({...B,showSetupFtpBlueTick:!0})),W=setTimeout(()=>{_(B=>({...B,showCheckDataBlueTick:!0,activeStep:2})),H=setTimeout(()=>{_(B=>({...B,showStartSyncBlueTick:!0}))},700)},700)},700)},700)},0),()=>{N&&clearTimeout(N),A&&clearTimeout(A),W&&clearTimeout(W),H&&clearTimeout(H)}},[]);const M=Ge();return Ze(M.breakpoints.up("lg")),a.jsxs(E,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[a.jsx(yr,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:()=>{n.state?.fromProductSetting?o("/product-setting",{state:{tenantIntegrationMatched:!0}}):e.onBack?e.onBack():o("/ftp-sync-2")}}),a.jsxs(E,{sx:{maxWidth:900,mx:"auto",pt:4},children:[a.jsx(Ta,{steps:_I,activeStep:j.activeStep,showCheckDataBlueTick:j.showCheckDataBlueTick,progressToCheckData:j.progressToCheckData,showSetupFtpBlueTick:j.showSetupFtpBlueTick,showStartSyncBlueTick:j.showStartSyncBlueTick}),a.jsx(E,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",mt:4,borderRadius:2,boxShadow:"0 2px 12px #0001"},children:a.jsx(E,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:180,mt:4,mb:4},children:a.jsxs(Jt,{elevation:0,sx:{p:2.5,borderRadius:4,minWidth:300,maxWidth:340,width:1,display:"flex",flexDirection:"column",alignItems:"center",bgcolor:"#f5f5f5"},children:[a.jsxs(E,{sx:{display:"flex",flexDirection:"row",gap:2,width:"100%",mb:2},children:[a.jsxs(E,{sx:{flex:1},children:[a.jsx(P,{variant:"subtitle2",sx:{mb:1,fontSize:14,color:"#222"},children:"Sync Frequency"}),a.jsxs(bn,{size:"small",value:g,onChange:w,sx:{minWidth:100,borderRadius:2,background:"#fafbfc",fontSize:15,height:36},children:[a.jsx(Rt,{value:"Daily",children:"Daily"}),a.jsx(Rt,{value:"Weekly",children:"Weekly"}),a.jsx(Rt,{value:"Monthly",children:"Monthly"})]})]}),a.jsxs(E,{sx:{flex:1},children:[a.jsx(P,{variant:"subtitle2",sx:{mb:1,fontSize:14,color:"#222"},children:"Sync Time"}),a.jsx(Zc,{type:"time",size:"small",value:f,onChange:S,sx:{minWidth:80,borderRadius:2,background:"#fafbfc",fontSize:15,height:36},InputLabelProps:{shrink:!0},inputProps:{step:300}})]})]}),a.jsxs(E,{sx:{display:"flex",justifyContent:"center",gap:.5,mt:1,width:"100%"},children:[h?null:a.jsx(Se,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:40,fontWeight:500,textTransform:"none",fontSize:11,height:28,bgcolor:"#fff"},onClick:()=>{n.state?.fromProductSetting?o("/product-setting",{state:{tenantIntegrationMatched:!0}}):e.onBack?e.onBack():o("/ftp-sync-2")},children:"Back"}),a.jsx(Se,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:80,fontWeight:500,textTransform:"none",fontSize:11,height:28,boxShadow:"none",flex:h?1:"initial"},onClick:k,children:h&&(n.state?.fromSyncSetting||n.state?.editMode)?"Save":h?"Update Sync":"Save and Start Sync"})]}),a.jsx(gi,{open:O,autoHideDuration:4e3,onClose:()=>I(!1),message:F,anchorOrigin:{vertical:"top",horizontal:"center"}})]})})})]})]})},$I=["Upload File","Check data","Start Sync"],DI=()=>{const e=Ft(),r=!!Ae(d=>d.productSettings.saveResult),[n,o]=$.useState(r),s=et();$.useEffect(()=>{r&&(o(!0),e($x()))},[r,e]);const l={showCheckDataBlueTick:!0,showSetupFtpBlueTick:!0,showStartSyncBlueTick:!0},c=Ge();return Ze(c.breakpoints.up("lg")),a.jsxs(a.Fragment,{children:[a.jsx(gi,{open:n,autoHideDuration:4e3,onClose:()=>o(!1),message:"Sync setup successful!",anchorOrigin:{vertical:"top",horizontal:"center"}}),a.jsxs(E,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[a.jsx(yr,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:()=>s("/ftp-sync-3")}),a.jsxs(E,{sx:{maxWidth:900,mx:"auto",pt:4},children:[a.jsx(Ta,{steps:$I,showCheckDataBlueTick:l.showCheckDataBlueTick,showSetupFtpBlueTick:l.showSetupFtpBlueTick,showStartSyncBlueTick:l.showStartSyncBlueTick,activeStep:2,progressToCheckData:!0,instantComplete:!0}),a.jsx(E,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",mt:4,borderRadius:2,boxShadow:"0 2px 12px #0001"},children:a.jsxs(E,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:320,py:6,bgcolor:"#f5f5f5",borderRadius:5},children:[a.jsx(E,{sx:{width:48,height:48,borderRadius:"50%",background:"#2563eb",display:"flex",alignItems:"center",justifyContent:"center",mb:2},children:a.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",children:a.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#fff",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})}),a.jsx(P,{sx:{fontSize:17,color:"#222",mb:1,fontWeight:500},children:"Sync Setup Successfully"}),a.jsx(Se,{variant:"text",sx:{color:"#2563eb",fontWeight:500,fontSize:15,textTransform:"none",mt:1},onClick:()=>s("/products"),children:"Back to all products"})]})})]})]}),a.jsx(gi,{open:n,autoHideDuration:4e3,onClose:()=>o(!1),message:"Integration saved & sync started",anchorOrigin:{vertical:"top",horizontal:"center"}})]})};function FI(e){const t=yt(),r=et(),n=t.state?.fromProductSetting?3:0,[o,s]=$.useState(n),l=Ft(),{companyId:c,integrationData:d}=Ae(x=>x.dashboard),p=t.state?.fromSyncStep;$.useEffect(()=>{c&&l(Cr(c))},[c,l]);const u=()=>{s(x=>Math.min(x+1,4))},h=()=>{if(o===0&&p!==void 0){r("/product-setting",{state:{fromSyncStep:p,tenantIntegrationMatched:p===3}});return}if(t.state?.fromProductSetting&&o===3){r("/product-setting",{state:{tenantIntegrationMatched:!0}});return}s(x=>Math.max(x-1,0))},v=d?.configs||{},g=d?.mappings||d?.dataMappings||[],f=(x=>{if(!x)return"";const b=x.charAt(0).toUpperCase()+x.slice(1).toLowerCase();return b==="Daily"||b==="Day"?"Daily":b==="Weekly"||b==="Week"?"Weekly":b==="Monthly"||b==="Month"?"Monthly":b})(d?.configs?.sync_frequency||""),m=d?.configs?.sync_time||"";switch(o){case 0:return a.jsx(hI,{onNext:u,...e});case 1:return a.jsx(wI,{onNext:u,onBack:h,ftpDetails:v,...e});case 2:return a.jsx(NI,{onNext:u,onBack:h,mapping:g,...e});case 3:return a.jsx(MI,{onNext:u,onBack:h,syncFrequency:f,syncTime:m,...e});case 4:return a.jsx(DI,{onBack:h,...e});default:return null}}const my=[{name:"Christmas Super Sale 2025",url:"/christmas-super-sale-2025",views:4567,type:"Public",avatar:"M",userImg:"https://randomuser.me/api/portraits/men/32.jpg"},{name:"Christmas Super Sale 2025",url:"/christmas-super-sale-2025",views:4567,type:"Public",avatar:"M",userImg:"https://randomuser.me/api/portraits/men/32.jpg"},{name:"Christmas Super Sale 2025",url:"/christmas-super-sale-2025",views:4567,type:"Public",avatar:"M"}],by=Array.from({length:24}).map(()=>({name:"Christmas Super Sale 2025",url:"/christmas-super-sale-2025",views:4567,type:"Unlisted",avatar:"M"}));function zI(){const e=et();return a.jsxs(E,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:[a.jsx(yr,{title:"Manage Shared Catalogs",breadcrumbs:[{label:"Products",to:"/product"},{label:"Settings",to:"/settings"},{label:"Manage Shared Catalogs"}],onBack:()=>e("/")}),a.jsxs(E,{sx:{maxWidth:900,mx:"auto",pt:4},children:[a.jsxs(P,{sx:{fontWeight:600,fontSize:18,mb:2},children:["Public Catalogs ",a.jsx("span",{style:{color:"#888",fontWeight:400,fontSize:15},children:my.length})]}),my.map((t,r)=>a.jsxs(Jt,{sx:{p:2,mb:2,borderRadius:3,display:"flex",alignItems:"center",boxShadow:"0 2px 12px #0001"},children:[a.jsxs(E,{sx:{display:"flex",flexDirection:"column",flex:1},children:[a.jsx(P,{sx:{fontWeight:500,fontSize:16},children:t.name}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:1,mt:.5},children:[a.jsxs("svg",{width:"16",height:"16",fill:"none",viewBox:"0 0 24 24",children:[a.jsx("path",{d:"M7 17h10M7 13h10M7 9h10M5 7v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2Z",stroke:"#888",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M8 7v2a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V7",stroke:"#888",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),a.jsx(P,{sx:{color:"#888",fontSize:14},children:t.url}),a.jsxs(P,{sx:{color:"#888",fontSize:14},children:[t.views," views"]})]})]}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:2,ml:1},children:[a.jsxs(bn,{size:"small",value:t.type,sx:{minWidth:140,border:"2px solid #ffffff",borderRadius:2,fontWeight:500,fontSize:20,height:48,boxShadow:"none",".MuiOutlinedInput-notchedOutline":{border:"none"},px:2,display:"flex",alignItems:"center"},IconComponent:n=>a.jsx("svg",{...n,width:"24",height:"24",viewBox:"0 0 24 24",style:{right:12,position:"absolute"},children:a.jsx("path",{d:"M7 10l5 5 5-5",stroke:"#888",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),children:[a.jsx(Rt,{value:"Public",sx:{fontSize:20,fontWeight:500},children:"Public"}),a.jsx(Rt,{value:"Unlisted",sx:{fontSize:20,fontWeight:500},children:"Unlisted"})]}),a.jsx(Wt,{sx:{ml:2},children:a.jsx(yy,{sx:{fontSize:28,color:"#888"}})})]})]},r)),a.jsxs(P,{sx:{fontWeight:600,fontSize:18,mb:2},children:["Unlisted Catalogs ",a.jsx("span",{style:{color:"#888",fontWeight:400,fontSize:15},children:by.length})]}),by.map((t,r)=>a.jsxs(Jt,{sx:{p:2,mb:2,borderRadius:3,display:"flex",alignItems:"center",boxShadow:"0 2px 12px #0001"},children:[a.jsxs(E,{sx:{display:"flex",flexDirection:"column",flex:1},children:[a.jsx(P,{sx:{fontWeight:500,fontSize:16},children:t.name}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:1,mt:.5},children:[a.jsxs("svg",{width:"16",height:"16",fill:"none",viewBox:"0 0 24 24",children:[a.jsx("path",{d:"M7 17h10M7 13h10M7 9h10M5 7v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2Z",stroke:"#888",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M8 7v2a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V7",stroke:"#888",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),a.jsx(P,{sx:{color:"#888",fontSize:14},children:t.url}),a.jsxs(P,{sx:{color:"#888",fontSize:14},children:[t.views," views"]})]})]}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:2,ml:1},children:[a.jsxs(bn,{size:"small",value:t.type,sx:{minWidth:120,borderRadius:2,fontWeight:500,fontSize:18,height:48,boxShadow:"none",".MuiOutlinedInput-notchedOutline":{border:"none"},px:2},children:[a.jsx(Rt,{value:"Public",sx:{fontSize:18,fontWeight:500},children:"Public"}),a.jsx(Rt,{value:"Unlisted",sx:{fontSize:18,fontWeight:500},children:"Unlisted"})]}),a.jsx(Wt,{sx:{ml:1},children:a.jsx(yy,{sx:{fontSize:28,color:"#888"}})})]})]},r))]})]})}function jI({styles:e={},selectedProducts:t=[],data:r,onSelectProduct:n,categoryName:o}){const s=g=>t.some(y=>y.id===g.id),[l,c]=$.useState(null),[d,p]=$.useState([]),u=(g,y)=>{c(g.currentTarget),p(y)},h=()=>{c(null),p([])},v=!!l;return a.jsxs($t,{sx:{...e.categoryTable},children:[a.jsx(E,{sx:{bgcolor:"#808080",color:"#fff",fontWeight:600,fontSize:19,borderRadius:3,px:3,py:1.7,mb:0,letterSpacing:.5},children:o}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",background:"#f7f8fa",borderBottom:"1px solid #e0e0e0",px:2.5,py:1.2,fontWeight:700,fontSize:16,color:"#666",letterSpacing:.2},children:[a.jsxs(E,{sx:{flex:2,pl:1,display:"flex",alignItems:"center",gap:12},children:[a.jsx(Qe,{checked:r.length>0&&r.every(s),indeterminate:r.some(s)&&!r.every(s),onChange:()=>{r.every(s)?r.forEach(g=>n(g,o,!1)):r.forEach(g=>{s(g)||n(g,o,!0)})},sx:{p:0,mr:1,"& .MuiSvgIcon-root":{fontSize:22,borderRadius:"8px",border:"2px solid #1976d2",background:"#fff",color:"#1976d2",boxShadow:"none"},"&.Mui-checked .MuiSvgIcon-root":{background:"#e3f2fd",color:"#1976d2",border:"2px solid #1976d2"},"&.MuiCheckbox-indeterminate .MuiSvgIcon-root":{background:"#fff",color:"#1976d2",border:"2px solid #1976d2"}},icon:a.jsx("span",{style:{display:"inline-block",width:22,height:22,borderRadius:8,border:"2px solid #1976d2",background:"#fff"}}),checkedIcon:a.jsx("span",{style:{display:"inline-block",width:22,height:22,borderRadius:8,border:"2px solid #1976d2",background:"#e3f2fd",position:"relative"},children:a.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:12,height:2,background:"#1976d2",borderRadius:2}})}),indeterminateIcon:a.jsx("span",{style:{display:"inline-block",width:22,height:22,borderRadius:8,border:"2px solid #1976d2",background:"#fff",position:"relative"},children:a.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:12,height:2,background:"#1976d2",borderRadius:2}})})}),"Product"]}),a.jsx(E,{sx:{flex:1,textAlign:"center",ml:3},children:"Status"}),a.jsx(E,{sx:{flex:1,ml:6},children:"Price"}),a.jsx(E,{sx:{flex:1,ml:3},children:"Stock"}),a.jsx(E,{sx:{flex:2,ml:3},children:"Offer"})]}),r.map((g,y)=>{let f=[];g.offers&&Array.isArray(g.offers)?f=g.offers:g.offer&&typeof g.offer=="string"&&g.offer.includes(`
|
|
481
|
+
`)?f=g.offer.split(`
|
|
482
|
+
`):g.offer&&Array.isArray(g.offer)?f=g.offer:g.offer&&(f=[g.offer]);const m=f[0]||"",x=f.length>1?f.slice(1):[];return a.jsxs(E,{sx:{display:"flex",alignItems:"center",px:2,py:2.2,mb:2.2,background:"#fff",borderRadius:3,boxShadow:"0 2px 8px 0 rgba(60,60,60,0.06)",transition:"box-shadow 0.2s, border 0.2s"},children:[a.jsxs(E,{sx:{flex:2,display:"flex",alignItems:"center",gap:2},children:[a.jsx(Qe,{checked:s(g),onChange:()=>n(g,o),sx:{p:0,mr:2}}),g.productImage?a.jsx(ni,{src:g.productImage,alt:g.productName,sx:{width:48,height:48,mr:2,borderRadius:2}}):a.jsx(ni,{sx:{width:48,height:48,mr:2,borderRadius:2,bgcolor:"#e0e0e0",color:"#888",fontWeight:700,fontSize:22},children:g.productName&&g.productName[0]}),a.jsxs(E,{sx:{display:"flex",flexDirection:"column",justifyContent:"center"},children:[a.jsx(P,{sx:{fontWeight:700,fontSize:18,color:"#333",mb:.2,lineHeight:1.2},children:g.productName}),a.jsxs(P,{sx:{fontSize:15,color:"#555",mb:.2,lineHeight:1.3,display:"flex",alignItems:"center",gap:1},children:[g.productWeight,g.categoryName&&a.jsxs(a.Fragment,{children:[a.jsx("span",{style:{display:"inline-block",margin:"0 6px",fontSize:18,color:"#bbb",lineHeight:1,verticalAlign:"middle"},children:"•"}),g.categoryName]})]}),a.jsxs(P,{sx:{fontSize:15,color:"#bbb",lineHeight:1.1,fontWeight:500},children:["SKU: ",g.sku]})]})]}),a.jsx(E,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",ml:3},children:a.jsx(P,{sx:{bgcolor:g.status===!0?"#dcfce7":"#f9eaea",color:g.status===!0?"#222":"#d32f2f",borderRadius:"12px",px:3,py:1,fontWeight:600,fontSize:16,letterSpacing:.2,display:"inline-block",textAlign:"center",minWidth:90,boxShadow:"none",border:"none",transition:"all 0.2s"},children:g.status===!0?"Active":"No Stock"})}),a.jsxs(E,{sx:{flex:1,display:"flex",flexDirection:"column",alignItems:"flex-start",minWidth:90,ml:6},children:[a.jsx(E,{sx:{display:"flex",alignItems:"center",gap:.5},children:a.jsxs(P,{sx:{fontWeight:700,fontSize:16,color:"#222"},children:["₹",g.price]})}),g.mrp&&a.jsxs(P,{sx:{fontSize:13,color:"#888",textDecoration:"line-through",mb:.2},children:["₹",g.mrp]}),g.discount&&a.jsx(P,{sx:{fontSize:14,color:"#22c55e",fontWeight:700},children:g.discount})]}),a.jsxs(E,{sx:{flex:1,display:"flex",flexDirection:"column",alignItems:"flex-start",minWidth:80,ml:3},children:[a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:.5},children:[g.stock===0&&a.jsx(Zg,{title:"No stock",children:a.jsx(gI,{sx:{color:"#d32f2f",fontSize:18,mr:.5}})}),a.jsxs(P,{sx:{fontWeight:700,fontSize:16,color:g.stock>0?g.stock<10?"#e65100":"#222":"#d32f2f"},children:[g.stock,g.quantity?a.jsxs("span",{style:{color:"#888",fontWeight:400},children:["/ ",g.quantity]}):null]})]}),a.jsxs(P,{sx:{fontSize:13,color:g.osa===0?"#d32f2f":"#888",fontWeight:500},children:[g.osa,"% on shelf"]})]}),a.jsxs(E,{sx:{flex:2,display:"flex",alignItems:"center",position:"relative",ml:3},children:[a.jsx(P,{sx:{fontSize:15,color:"#222",fontWeight:500,whiteSpace:"pre-line"},children:m}),x.length>0&&a.jsx(a.Fragment,{children:a.jsxs(P,{sx:{ml:1,color:"#888",fontSize:14,cursor:"pointer",textDecoration:"underline",fontWeight:500},onClick:b=>u(b,f),children:["+",x.length," more"]})})]})]},g.id||y)}),a.jsxs(qc,{open:v,anchorEl:l,onClose:h,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{sx:{p:2,minWidth:220}},children:[a.jsx(P,{sx:{fontWeight:700,mb:1},children:"Offers"}),d.map((g,y)=>a.jsxs(P,{sx:{fontSize:14,color:"#222",mb:.5},children:[y+1,". ",g]},y))]})]})}const BI=({onPromoPrint:e,onCreateCatalog:t,onOsaRequest:r,selectedProducts:n,selectedCategory:o})=>{const s=n||[];return s.length?a.jsxs(E,{sx:{position:"fixed",bottom:24,left:"50%",transform:"translateX(-50%)",bgcolor:"#18181B",borderRadius:"16px",boxShadow:3,px:3,py:2,display:"flex",alignItems:"center",zIndex:1300,minWidth:400},children:[a.jsx(P,{sx:{color:"#fff",mr:1},children:a.jsxs("b",{children:[s.length," items selected"]})}),a.jsx(Se,{variant:"contained",color:"primary",sx:{mx:1,bgcolor:"#2563EB"},onClick:e,children:"Promo Print"}),a.jsx(Se,{variant:"contained",color:"primary",sx:{mx:1,bgcolor:"#2563EB"},onClick:t,children:"Create Catalog"}),a.jsx(Se,{variant:"contained",color:"primary",sx:{mx:1,bgcolor:"#2563EB"},onClick:r,children:"OSA Request"})]}):null},LI=()=>{const e=Ft(),t=et(),[r]=$m(),n=r.get("categoryName"),s=Pt().categoriesView,[l,c]=$.useState({category:"all",status:"all",search:"",store:[]}),[d,p]=$.useState([]),[u,h]=$.useState(null),{integrationData:v,companyId:g,loading:y}=Ae(z=>z.dashboard);$.useEffect(()=>{g||e(xo())},[e,g]);const f=$.useMemo(()=>v?.status&&Array.isArray(v?.data)&&v.data.length>0?{matched:!0,error:"",apiResponse:v.data[0],loading:!1}:{matched:!1,error:"No active integration found",apiResponse:null,loading:!1},[v]),m=Ae(z=>z.dashboard),{products:x=[]}=Ae(z=>z.dashboard),b=$.useMemo(()=>{if(!n||!Array.isArray(x))return[];const z=n.trim();return x.filter(k=>k.categoryName&&k.categoryName.trim().toLowerCase()===z.toLowerCase()).map(k=>({...k,id:k.id||k.sku||k.productName}))},[x,n]),w=b.length>0,S=Array.isArray(x)&&x.length>0,C=z=>{z.preventDefault(),t("/settings",{state:{tenantIntegrationData:f.apiResponse}})},O={},{productsByCategory:I={}}=m||{};Object.values(I).flat().forEach(z=>{z.storeId&&z.storeName&&(O[z.storeId]=z.storeName)});const F=[{id:"all",name:"All Stores"},...Object.entries(O).map(([z,k])=>({id:z,name:k}))],D=z=>{c(z)},L=(z,k)=>{p(j=>{const _=j[k]||[];let M;return _.some(N=>N.id===z.id)?M=_.filter(N=>N.id!==z.id):M=[..._,z],{...j,[k]:M}}),h(k)};return $.useEffect(()=>{g&&(e(Cr(g)),e(Er()))},[e,g]),a.jsxs(a.Fragment,{children:[a.jsx(Yr,{filters:l,onFilterChange:D,styles:s.topBar,stores:F,tenantStatus:f,hasProducts:S}),y||!g?a.jsx(E,{sx:{minHeight:300,display:"flex",alignItems:"center",justifyContent:"center"},children:"Loading..."}):n?w?a.jsxs(E,{sx:s.root,children:[a.jsx(hy,{productState:m}),a.jsx(jI,{data:b,styles:s,selectedProducts:d[n]||[],onSelectProduct:L,categoryName:n})]}):a.jsx(Ei,{handleStartSyncing:C,loading:!1,categoryName:n}):a.jsx(Ei,{handleStartSyncing:C,loading:!1}),a.jsx(BI,{onPromoPrint:()=>{},onCreateCatalog:()=>{},onOsaRequest:()=>{},selectedProducts:d[n]||[],selectedCategory:u})]})};function WI({StoresModal:e,storesModalProps:t,onStoreSelect:r}){return a.jsxs(um,{children:[a.jsx(nr,{path:"/",element:a.jsx(aI,{})}),a.jsx(nr,{path:"/home",element:a.jsx(nI,{})}),a.jsx(nr,{path:"/products",element:a.jsx(tI,{StoresModal:e,storesModalProps:t,onStoreSelect:r})}),a.jsx(nr,{path:"/product-setting",element:a.jsx(uI,{})}),a.jsx(nr,{path:"/categories",element:a.jsx(cI,{})}),a.jsx(nr,{path:"/settings",element:a.jsx(fI,{})}),a.jsx(nr,{path:"/products/settings/ftp-sync",element:a.jsx(FI,{})}),a.jsx(nr,{path:"/catalogs/manage-shared",element:a.jsx(zI,{})}),a.jsx(nr,{path:"/category",element:a.jsx(LI,{})})]})}function VI({StoresModal:e,storesModalProps:t,onStoreSelect:r}){return a.jsx(WI,{StoresModal:e,storesModalProps:t,onStoreSelect:r})}const UI=()=>a.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",width:"100%"},children:a.jsx("div",{children:"Loading..."})});return({apiUrl:e,authToken:t,basePath:r="/",StoresModal:n,storesModalProps:o,onStoreSelect:s})=>a.jsx("div",{style:{width:"100%",minHeight:"100vh"},children:a.jsx(Hx,{apiUrl:e,authToken:t,children:a.jsx(ob,{store:Lu,children:a.jsx(db.PersistGate,{loading:a.jsx(UI,{}),persistor:Vx,children:a.jsx(km,{basename:r,children:a.jsx(VI,{StoresModal:n,storesModalProps:o,onStoreSelect:s})})})})})})}));
|
|
475
483
|
//# sourceMappingURL=product-app.umd.js.map
|