@leapdevuk/component-toolbox 0.0.4 → 0.0.6
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/README.md +3 -2
- package/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +5 -5
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -53,13 +53,14 @@ To build the component toolbox as a package.
|
|
|
53
53
|
## Publish to NPM
|
|
54
54
|
|
|
55
55
|
To publish the component toolbox package to the NPM account (currently public).
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
npm run build
|
|
57
|
+
npm publish --access public
|
|
58
58
|
|
|
59
59
|
## Installing locally
|
|
60
60
|
|
|
61
61
|
To use / test locally in an application.
|
|
62
62
|
|
|
63
|
+
npm run build
|
|
63
64
|
npm pack
|
|
64
65
|
|
|
65
66
|
This will create a 'leapdevuk-component-toolbox-{version}.tgz' file which can be added as a dependency in the applications _package.json_ file.
|
package/dist/index.cjs.js
CHANGED
|
@@ -71,13 +71,13 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Ze(18,`(${r})`));return
|
|
|
71
71
|
`)):console.error([`MUI: The \`theme.${r}\` 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.${r}\` as a number.`].join(`
|
|
72
72
|
`)));const c=o[i];return a>=0?c:typeof c=="number"?-c:`-${c}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${r}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
73
73
|
`)),()=>{})}function qr(e){return Rt(e,"spacing",8,"spacing")}function $t(e,r){return typeof r=="string"||r==null?r:e(r)}function tu(e,r){return t=>e.reduce((n,o)=>(n[o]=$t(r,t),n),{})}function ru(e,r,t,n){if(!r.includes(t))return null;const o=Zc(t),a=tu(o,n),i=e[t];return Qe(e,i,a)}function Ao(e,r){const t=qr(e.theme);return Object.keys(e).map(n=>ru(e,r,n,t)).reduce(St,{})}function ye(e){return Ao(e,er)}ye.propTypes=process.env.NODE_ENV!=="production"?er.reduce((e,r)=>(e[r]=tt,e),{}):{};ye.filterProps=er;function ge(e){return Ao(e,tr)}ge.propTypes=process.env.NODE_ENV!=="production"?tr.reduce((e,r)=>(e[r]=tt,e),{}):{};ge.filterProps=tr;process.env.NODE_ENV!=="production"&&eu.reduce((e,r)=>(e[r]=tt,e),{});function rr(...e){const r=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),t=n=>Object.keys(n).reduce((o,a)=>r[a]?St(o,r[a](n)):o,{});return t.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},t.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),t}function Ie(e){return typeof e!="number"?e:`${e}px solid`}function Ne(e,r){return Ce({prop:e,themeKey:"borders",transform:r})}const nu=Ne("border",Ie),ou=Ne("borderTop",Ie),au=Ne("borderRight",Ie),iu=Ne("borderBottom",Ie),su=Ne("borderLeft",Ie),cu=Ne("borderColor"),uu=Ne("borderTopColor"),lu=Ne("borderRightColor"),fu=Ne("borderBottomColor"),du=Ne("borderLeftColor"),hu=Ne("outline",Ie),mu=Ne("outlineColor"),nr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const r=Rt(e.theme,"shape.borderRadius",4,"borderRadius"),t=n=>({borderRadius:$t(r,n)});return Qe(e,e.borderRadius,t)}return null};nr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:tt}:{};nr.filterProps=["borderRadius"];rr(nu,ou,au,iu,su,cu,uu,lu,fu,du,nr,hu,mu);const or=e=>{if(e.gap!==void 0&&e.gap!==null){const r=Rt(e.theme,"spacing",8,"gap"),t=n=>({gap:$t(r,n)});return Qe(e,e.gap,t)}return null};or.propTypes=process.env.NODE_ENV!=="production"?{gap:tt}:{};or.filterProps=["gap"];const ar=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const r=Rt(e.theme,"spacing",8,"columnGap"),t=n=>({columnGap:$t(r,n)});return Qe(e,e.columnGap,t)}return null};ar.propTypes=process.env.NODE_ENV!=="production"?{columnGap:tt}:{};ar.filterProps=["columnGap"];const ir=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const r=Rt(e.theme,"spacing",8,"rowGap"),t=n=>({rowGap:$t(r,n)});return Qe(e,e.rowGap,t)}return null};ir.propTypes=process.env.NODE_ENV!=="production"?{rowGap:tt}:{};ir.filterProps=["rowGap"];const pu=Ce({prop:"gridColumn"}),yu=Ce({prop:"gridRow"}),gu=Ce({prop:"gridAutoFlow"}),bu=Ce({prop:"gridAutoColumns"}),wu=Ce({prop:"gridAutoRows"}),vu=Ce({prop:"gridTemplateColumns"}),Tu=Ce({prop:"gridTemplateRows"}),xu=Ce({prop:"gridTemplateAreas"}),Cu=Ce({prop:"gridArea"});rr(or,ar,ir,pu,yu,gu,bu,wu,vu,Tu,xu,Cu);function ht(e,r){return r==="grey"?r:e}const Eu=Ce({prop:"color",themeKey:"palette",transform:ht}),Su=Ce({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ht}),Ou=Ce({prop:"backgroundColor",themeKey:"palette",transform:ht});rr(Eu,Su,Ou);function Re(e){return e<=1&&e!==0?`${e*100}%`:e}const ku=Ce({prop:"width",transform:Re}),zr=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const r=t=>{var o,a,i,c,l;const n=((i=(a=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:a.values)==null?void 0:i[t])||Jt[t];return n?((l=(c=e.theme)==null?void 0:c.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Re(t)}};return Qe(e,e.maxWidth,r)}return null};zr.filterProps=["maxWidth"];const _u=Ce({prop:"minWidth",transform:Re}),Mu=Ce({prop:"height",transform:Re}),Pu=Ce({prop:"maxHeight",transform:Re}),Du=Ce({prop:"minHeight",transform:Re});Ce({prop:"size",cssProperty:"width",transform:Re});Ce({prop:"size",cssProperty:"height",transform:Re});const Ru=Ce({prop:"boxSizing"});rr(ku,zr,_u,Mu,Pu,Du,Ru);const At={border:{themeKey:"borders",transform:Ie},borderTop:{themeKey:"borders",transform:Ie},borderRight:{themeKey:"borders",transform:Ie},borderBottom:{themeKey:"borders",transform:Ie},borderLeft:{themeKey:"borders",transform:Ie},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ie},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:nr},color:{themeKey:"palette",transform:ht},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ht},backgroundColor:{themeKey:"palette",transform:ht},p:{style:ge},pt:{style:ge},pr:{style:ge},pb:{style:ge},pl:{style:ge},px:{style:ge},py:{style:ge},padding:{style:ge},paddingTop:{style:ge},paddingRight:{style:ge},paddingBottom:{style:ge},paddingLeft:{style:ge},paddingX:{style:ge},paddingY:{style:ge},paddingInline:{style:ge},paddingInlineStart:{style:ge},paddingInlineEnd:{style:ge},paddingBlock:{style:ge},paddingBlockStart:{style:ge},paddingBlockEnd:{style:ge},m:{style:ye},mt:{style:ye},mr:{style:ye},mb:{style:ye},ml:{style:ye},mx:{style:ye},my:{style:ye},margin:{style:ye},marginTop:{style:ye},marginRight:{style:ye},marginBottom:{style:ye},marginLeft:{style:ye},marginX:{style:ye},marginY:{style:ye},marginInline:{style:ye},marginInlineStart:{style:ye},marginInlineEnd:{style:ye},marginBlock:{style:ye},marginBlockStart:{style:ye},marginBlockEnd:{style:ye},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:or},rowGap:{style:ir},columnGap:{style:ar},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Re},maxWidth:{style:zr},minWidth:{transform:Re},height:{transform:Re},maxHeight:{transform:Re},minHeight:{transform:Re},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 $u(...e){const r=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),t=new Set(r);return e.every(n=>t.size===Object.keys(n).length)}function Au(e,r){return typeof e=="function"?e(r):e}function Iu(){function e(t,n,o,a){const i={[t]:n,theme:o},c=a[t];if(!c)return{[t]:n};const{cssProperty:l=t,themeKey:f,transform:d,style:h}=c;if(n==null)return null;if(f==="typography"&&n==="inherit")return{[t]:n};const p=Zt(o,f)||{};return h?h(i):Qe(i,n,E=>{let g=Gt(p,d,E);return E===g&&typeof E=="string"&&(g=Gt(p,d,`${t}${E==="default"?"":Le(E)}`,E)),l===!1?g:{[l]:g}})}function r(t){const{sx:n,theme:o={}}=t||{};if(!n)return null;const a=o.unstable_sxConfig??At;function i(c){let l=c;if(typeof c=="function")l=c(o);else if(typeof c!="object")return c;if(!l)return null;const f=Uc(o.breakpoints),d=Object.keys(f);let h=f;return Object.keys(l).forEach(p=>{const T=Au(l[p],o);if(T!=null)if(typeof T=="object")if(a[p])h=St(h,e(p,T,o,a));else{const E=Qe({theme:o},T,g=>({[p]:g}));$u(E,T)?h[p]=r({sx:T,theme:o}):h=St(h,E)}else h=St(h,e(p,T,o,a))}),Hc(o,Qc(d,h))}return Array.isArray(n)?n.map(i):i(n)}return r}const It=Iu();It.filterProps=["sx"];const ju=e=>{var n;const r={systemProps:{},otherProps:{}},t=((n=e==null?void 0:e.theme)==null?void 0:n.unstable_sxConfig)??At;return Object.keys(e).forEach(o=>{t[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function Nu(e){const{sx:r,...t}=e,{systemProps:n,otherProps:o}=ju(t);let a;return Array.isArray(r)?a=[n,...r]:typeof r=="function"?a=(...i)=>{const c=r(...i);return qe(c)?{...n,...c}:n}:a={...n,...r},{...o,sx:a}}/**
|
|
74
|
-
* @mui/styled-engine v6.
|
|
74
|
+
* @mui/styled-engine v6.0.2
|
|
75
75
|
*
|
|
76
76
|
* @license MIT
|
|
77
77
|
* This source code is licensed under the MIT license found in the
|
|
78
78
|
* LICENSE file in the root directory of this source tree.
|
|
79
79
|
*/function Fu(e,r){const t=ga(e,r);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(`
|
|
80
|
-
`)):n.some(a=>a===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),t(...n)}:t}const Lu=(e,r)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=r(e.__emotion_styles))},Yu=e=>{const r=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return r.sort((t,n)=>t.val-n.val),r.reduce((t,n)=>({...t,[n.key]:n.val}),{})};function Wu(e){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:t="px",step:n=5,...o}=e,a=Yu(r),i=Object.keys(a);function c(p){return`@media (min-width:${typeof r[p]=="number"?r[p]:p}${t})`}function l(p){return`@media (max-width:${(typeof r[p]=="number"?r[p]:p)-n/100}${t})`}function f(p,T){const E=i.indexOf(T);return`@media (min-width:${typeof r[p]=="number"?r[p]:p}${t}) and (max-width:${(E!==-1&&typeof r[i[E]]=="number"?r[i[E]]:T)-n/100}${t})`}function d(p){return i.indexOf(p)+1<i.length?f(p,i[i.indexOf(p)+1]):c(p)}function h(p){const T=i.indexOf(p);return T===0?c(i[1]):T===i.length-1?l(i[T]):f(p,i[i.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:i,values:a,up:c,down:l,between:f,only:d,not:h,unit:t,...o}}const Bu={borderRadius:4};function Io(e=8,r=qr({spacing:e})){if(e.mui)return e;const t=(...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 i=r(a);return typeof i=="number"?`${i}px`:i}).join(" "));return t.mui=!0,t}function Hu(e,r){var n;const t=this;if(t.vars){if(!((n=t.colorSchemes)!=null&&n[e])||typeof t.getColorSchemeSelector!="function")return{};let o=t.getColorSchemeSelector(e);return
|
|
80
|
+
`)):n.some(a=>a===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),t(...n)}:t}const Lu=(e,r)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=r(e.__emotion_styles))},Yu=e=>{const r=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return r.sort((t,n)=>t.val-n.val),r.reduce((t,n)=>({...t,[n.key]:n.val}),{})};function Wu(e){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:t="px",step:n=5,...o}=e,a=Yu(r),i=Object.keys(a);function c(p){return`@media (min-width:${typeof r[p]=="number"?r[p]:p}${t})`}function l(p){return`@media (max-width:${(typeof r[p]=="number"?r[p]:p)-n/100}${t})`}function f(p,T){const E=i.indexOf(T);return`@media (min-width:${typeof r[p]=="number"?r[p]:p}${t}) and (max-width:${(E!==-1&&typeof r[i[E]]=="number"?r[i[E]]:T)-n/100}${t})`}function d(p){return i.indexOf(p)+1<i.length?f(p,i[i.indexOf(p)+1]):c(p)}function h(p){const T=i.indexOf(p);return T===0?c(i[1]):T===i.length-1?l(i[T]):f(p,i[i.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:i,values:a,up:c,down:l,between:f,only:d,not:h,unit:t,...o}}const Bu={borderRadius:4};function Io(e=8,r=qr({spacing:e})){if(e.mui)return e;const t=(...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 i=r(a);return typeof i=="number"?`${i}px`:i}).join(" "));return t.mui=!0,t}function Hu(e,r){var n;const t=this;if(t.vars){if(!((n=t.colorSchemes)!=null&&n[e])||typeof t.getColorSchemeSelector!="function")return{};let o=t.getColorSchemeSelector(e);return(o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:r}}return t.palette.mode===e?r:{}}function jo(e={},...r){const{breakpoints:t={},palette:n={},spacing:o,shape:a={},...i}=e,c=Wu(t),l=Io(o);let f=$e({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:l,shape:{...Bu,...a}},i);return f=zc(f),f.applyStyles=Hu,f=r.reduce((d,h)=>$e(d,h),f),f.unstable_sxConfig={...At,...i==null?void 0:i.unstable_sxConfig},f.unstable_sx=function(h){return It({sx:h,theme:this})},f}const Vu=jo();function Er(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Ar(e,r,t){return Gu(r)?t:r[e]||r}const Ft=Symbol("mui.processed_props");function Lt(e,r,t){if(Ft in e)return e[Ft];const n={...e,theme:Ar(r,e.theme,t)};return e[Ft]=n,n[Ft]=n,n}function qu(e){return e?(r,t)=>t[e]:null}function Vt(e,r){var n;const t=typeof e=="function"?e(r):e;if(Array.isArray(t))return t.flatMap(o=>Vt(o,r));if(Array.isArray(t==null?void 0:t.variants)){const{variants:o,...a}=t;let i=a,c;e:for(let l=0;l<o.length;l+=1){const f=o[l];if(typeof f.props=="function"){if(c??(c={...r,...r.ownerState,ownerState:r.ownerState}),!f.props(c))continue}else for(const d in f.props)if(r[d]!==f.props[d]&&((n=r.ownerState)==null?void 0:n[d])!==f.props[d])continue e;Array.isArray(i)||(i=[i]),typeof f.style=="function"?(c??(c={...r,...r.ownerState,ownerState:r.ownerState}),i.push(f.style(c))):i.push(f.style)}return i}return t}function zu(e={}){const{themeId:r,defaultTheme:t=Vu,rootShouldForwardProp:n=Er,slotShouldForwardProp:o=Er}=e,a=c=>It(Lt(c,r,t));return a.__mui_systemSx=!0,(c,l={})=>{Lu(c,U=>U.filter($=>!($!=null&&$.__mui_systemSx)));const{name:f,slot:d,skipVariantsResolver:h,skipSx:p,overridesResolver:T=qu(Hn(d)),...E}=l,g=h!==void 0?h:d&&d!=="Root"&&d!=="root"||!1,m=p||!1;let k;process.env.NODE_ENV!=="production"&&f&&(k=`${f}-${Hn(d||"Root")}`);let S=Er;d==="Root"||d==="root"?S=n:d?S=o:Uu(c)&&(S=void 0);const v=Fu(c,{shouldForwardProp:S,label:k,...E}),D=U=>typeof U=="function"&&U.__emotion_real!==U||qe(U)?$=>Vt(U,Lt($,r,t)):U,w=(U,...$)=>{let F=D(U);const s=$?$.map(D):[];f&&T&&s.push(N=>{const ee=Ar(r,N.theme,t);if(!ee.components||!ee.components[f]||!ee.components[f].styleOverrides)return null;const ue=ee.components[f].styleOverrides,Ee={},Se=Lt(N,r,t);for(const _e in ue)Ee[_e]=Vt(ue[_e],Se);return T(N,Ee)}),f&&!g&&s.push(N=>{var Ee,Se;const ee=Ar(r,N.theme,t),ue=(Se=(Ee=ee==null?void 0:ee.components)==null?void 0:Ee[f])==null?void 0:Se.variants;return ue?Vt({variants:ue},Lt(N,r,t)):null}),m||s.push(a);const R=s.length-$.length;if(Array.isArray(U)&&R>0){const N=new Array(R).fill("");F=[...U,...N],F.raw=[...U.raw,...N]}const L=v(F,...s);if(process.env.NODE_ENV!=="production"){let N;f&&(N=`${f}${Le(d||"")}`),N===void 0&&(N=`Styled(${kc(c)})`),L.displayName=N}return c.muiName&&(L.muiName=c.muiName),L};return v.withConfig&&(w.withConfig=v.withConfig),w}}function Gu(e){for(const r in e)return!1;return!0}function Uu(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Hn(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Gr(e,r=0,t=1){return process.env.NODE_ENV!=="production"&&(e<r||e>t)&&console.error(`MUI: The value provided ${e} is out of range [${r}, ${t}].`),Bc(e,r,t)}function Qu(e){e=e.slice(1);const r=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let t=e.match(r);return t&&t[0].length===1&&(t=t.map(n=>n+n)),t?`rgb${t.length===4?"a":""}(${t.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function et(e){if(e.type)return e;if(e.charAt(0)==="#")return et(Qu(e));const r=e.indexOf("("),t=e.substring(0,r);if(!["rgb","rgba","hsl","hsla","color"].includes(t))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
81
81
|
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Ze(9,e));let n=e.substring(r+1,e.length-1),o;if(t==="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.
|
|
82
82
|
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Ze(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:t,values:n,colorSpace:o}}const Xu=e=>{const r=et(e);return r.values.slice(0,3).map((t,n)=>r.type.includes("hsl")&&n!==0?`${t}%`:t).join(" ")},Ct=(e,r)=>{try{return Xu(e)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}};function sr(e){const{type:r,colorSpace:t}=e;let{values:n}=e;return r.includes("rgb")?n=n.map((o,a)=>a<3?parseInt(o,10):o):r.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),r.includes("color")?n=`${t} ${n.join(" ")}`:n=`${n.join(", ")}`,`${r}(${n})`}function No(e){e=et(e);const{values:r}=e,t=r[0],n=r[1]/100,o=r[2]/100,a=n*Math.min(o,1-o),i=(f,d=(f+t/30)%12)=>o-a*Math.max(Math.min(d-3,9-d,1),-1);let c="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(c+="a",l.push(r[3])),sr({type:c,values:l})}function Ir(e){e=et(e);let r=e.type==="hsl"||e.type==="hsla"?et(No(e)).values:e.values;return r=r.map(t=>(e.type!=="color"&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function Vn(e,r){const t=Ir(e),n=Ir(r);return(Math.max(t,n)+.05)/(Math.min(t,n)+.05)}function Ku(e,r){return e=et(e),r=Gr(r),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${r}`:e.values[3]=r,sr(e)}function Yt(e,r,t){try{return Ku(e,r)}catch{return e}}function Ur(e,r){if(e=et(e),r=Gr(r),e.type.includes("hsl"))e.values[2]*=1-r;else if(e.type.includes("rgb")||e.type.includes("color"))for(let t=0;t<3;t+=1)e.values[t]*=1-r;return sr(e)}function fe(e,r,t){try{return Ur(e,r)}catch{return e}}function Qr(e,r){if(e=et(e),r=Gr(r),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*r;else if(e.type.includes("rgb"))for(let t=0;t<3;t+=1)e.values[t]+=(255-e.values[t])*r;else if(e.type.includes("color"))for(let t=0;t<3;t+=1)e.values[t]+=(1-e.values[t])*r;return sr(e)}function de(e,r,t){try{return Qr(e,r)}catch{return e}}function Ju(e,r=.15){return Ir(e)>.5?Ur(e,r):Qr(e,r)}function Wt(e,r,t){try{return Ju(e,r)}catch{return e}}const Zu=be.createContext(void 0);process.env.NODE_ENV!=="production"&&(I.node,I.object);function el(e){const{theme:r,name:t,props:n}=e;if(!r||!r.components||!r.components[t])return n;const o=r.components[t];return o.defaultProps?$r(o.defaultProps,n):!o.styleOverrides&&!o.variants?$r(o,n):n}function tl({props:e,name:r}){const t=be.useContext(Zu);return el({props:e,name:r,theme:{components:t}})}function rl(e=""){function r(...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}${r(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${e?`${e}-`:""}${n}${r(...o)})`}const qn=(e,r,t,n=[])=>{let o=e;r.forEach((a,i)=>{i===r.length-1?Array.isArray(o)?o[Number(a)]=t:o&&typeof o=="object"&&(o[a]=t):o&&typeof o=="object"&&(o[a]||(o[a]=n.includes(a)?[]:{}),o=o[a])})},nl=(e,r,t)=>{function n(o,a=[],i=[]){Object.entries(o).forEach(([c,l])=>{(!t||t&&!t([...a,c]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?n(l,[...a,c],Array.isArray(l)?[...i,c]:i):r([...a,c],l,i))})}n(e)},ol=(e,r)=>typeof r=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().indexOf("opacity")>=0?r:`${r}px`:r;function Sr(e,r){const{prefix:t,shouldSkipGeneratingVar:n}=r||{},o={},a={},i={};return nl(e,(c,l,f)=>{if((typeof l=="string"||typeof l=="number")&&(!n||!n(c,l))){const d=`--${t?`${t}-`:""}${c.join("-")}`,h=ol(c,l);Object.assign(o,{[d]:h}),qn(a,c,`var(${d})`,f),qn(i,c,`var(${d}, ${h})`,f)}},c=>c[0]==="vars"),{css:o,vars:a,varsWithDefaults:i}}function al(e,r={}){const{getSelector:t=m,disableCssColorScheme:n,colorSchemeSelector:o}=r,{colorSchemes:a={},components:i,defaultColorScheme:c="light",...l}=e,{vars:f,css:d,varsWithDefaults:h}=Sr(l,r);let p=h;const T={},{[c]:E,...g}=a;if(Object.entries(g||{}).forEach(([v,D])=>{const{vars:w,css:U,varsWithDefaults:$}=Sr(D,r);p=$e(p,$),T[v]={css:U,vars:w}}),E){const{css:v,vars:D,varsWithDefaults:w}=Sr(E,r);p=$e(p,w),T[c]={css:v,vars:D}}function m(v,D){var U,$;let w=o;if(o==="class"&&(w=".%s"),o==="data"&&(w="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(w=`[${o}="%s"]`),v){if(w==="media")return e.defaultColorScheme===v?":root":{[`@media (prefers-color-scheme: ${(($=(U=a[v])==null?void 0:U.palette)==null?void 0:$.mode)||v})`]:{":root":D}};if(w)return e.defaultColorScheme===v?`:root, ${w.replace("%s",String(v))}`:w.replace("%s",String(v))}return":root"}return{vars:p,generateThemeVars:()=>{let v={...f};return Object.entries(T).forEach(([,{vars:D}])=>{v=$e(v,D)}),v},generateStyleSheets:()=>{var F,s;const v=[],D=e.defaultColorScheme||"light";function w(R,L){Object.keys(L).length&&v.push(typeof R=="string"?{[R]:{...L}}:R)}w(t(void 0,{...d}),d);const{[D]:U,...$}=T;if(U){const{css:R}=U,L=(s=(F=a[D])==null?void 0:F.palette)==null?void 0:s.mode,N=!n&&L?{colorScheme:L,...R}:{...R};w(t(D,{...N}),N)}return Object.entries($).forEach(([R,{css:L}])=>{var ue,Ee;const N=(Ee=(ue=a[R])==null?void 0:ue.palette)==null?void 0:Ee.mode,ee=!n&&N?{colorScheme:N,...L}:{...L};w(t(R,{...ee}),ee)}),v}}}function il(e){return function(t){return e==="media"?(process.env.NODE_ENV!=="production"&&t!=="light"&&t!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${t}'.`),`@media (prefers-color-scheme: ${t})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:e==="class"?`.${t} &`:e==="data"?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}const Pt={black:"#000",white:"#fff"},sl={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"},ct={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},ut={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},xt={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},lt={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},ft={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},dt={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},zn={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:Pt.white,default:Pt.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}},Or={text:{primary:Pt.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:Pt.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}};function Gn(e,r,t,n){const o=n.light||n,a=n.dark||n*1.5;e[r]||(e.hasOwnProperty(t)?e[r]=e[t]:r==="light"?e.light=Qr(e.main,o):r==="dark"&&(e.dark=Ur(e.main,a)))}function cl(e="light"){return e==="dark"?{main:lt[200],light:lt[50],dark:lt[400]}:{main:lt[700],light:lt[400],dark:lt[800]}}function ul(e="light"){return e==="dark"?{main:ct[200],light:ct[50],dark:ct[400]}:{main:ct[500],light:ct[300],dark:ct[700]}}function ll(e="light"){return e==="dark"?{main:ut[500],light:ut[300],dark:ut[700]}:{main:ut[700],light:ut[400],dark:ut[800]}}function fl(e="light"){return e==="dark"?{main:ft[400],light:ft[300],dark:ft[700]}:{main:ft[700],light:ft[500],dark:ft[900]}}function dl(e="light"){return e==="dark"?{main:dt[400],light:dt[300],dark:dt[700]}:{main:dt[800],light:dt[500],dark:dt[900]}}function hl(e="light"){return e==="dark"?{main:xt[400],light:xt[300],dark:xt[700]}:{main:"#ed6c02",light:xt[500],dark:xt[900]}}function Xr(e){const{mode:r="light",contrastThreshold:t=3,tonalOffset:n=.2,...o}=e,a=e.primary||cl(r),i=e.secondary||ul(r),c=e.error||ll(r),l=e.info||fl(r),f=e.success||dl(r),d=e.warning||hl(r);function h(g){const m=Vn(g,Or.text.primary)>=t?Or.text.primary:zn.text.primary;if(process.env.NODE_ENV!=="production"){const k=Vn(g,m);k<3&&console.error([`MUI: The contrast ratio of ${k}:1 for ${m} on ${g}`,"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(`
|
|
83
83
|
`))}return m}const p=({color:g,name:m,mainShade:k=500,lightShade:S=300,darkShade:v=700})=>{if(g={...g},!g.main&&g[k]&&(g.main=g[k]),!g.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${m?` (${m})`:""} provided to augmentColor(color) is invalid.
|
|
@@ -105,5 +105,5 @@ theme.transitions = createTransitions(theme.transitions || {});
|
|
|
105
105
|
|
|
106
106
|
export default theme;`}function Il(e,r){r.forEach(t=>{e[t]||(e[t]={})})}function y(e,r,t){!e[r]&&t&&(e[r]=t)}function Et(e){return!e||!e.startsWith("hsl")?e:No(e)}function Ge(e,r){`${r}Channel`in e||(e[`${r}Channel`]=Ct(Et(e[r]),`MUI: Can't create \`palette.${r}Channel\` because \`palette.${r}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
107
107
|
To suppress this warning, you need to explicitly provide the \`palette.${r}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function jl(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Be=e=>{try{return e()}catch{}},Nl=(e="mui")=>rl(e);function kr(e,r,t,n){if(!r)return;r=r===!0?{}:r;const o=n==="dark"?"dark":"light";if(!t){e[n]=Ml({...r,palette:{mode:o,...r==null?void 0:r.palette}});return}const{palette:a,...i}=jr({...t,palette:{mode:o,...r==null?void 0:r.palette}});return e[n]={...r,palette:a,opacity:{...Fo(o),...r==null?void 0:r.opacity},overlays:(r==null?void 0:r.overlays)||Lo(o)},i}function Fl(e={},...r){const{colorSchemes:t={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:i=Pl,colorSchemeSelector:c=t.light&&t.dark?"media":void 0,...l}=e,f=Object.keys(t)[0],d=n||(t.light&&f!=="light"?"light":f),h=Nl(a),{[d]:p,light:T,dark:E,...g}=t,m={...g};let k=p;if((d==="dark"&&!("dark"in t)||d==="light"&&!("light"in t))&&(k=!0),!k)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${d}\` option is either missing or invalid.`:Ze(21,d));const S=kr(m,k,l,d);T&&!m.light&&kr(m,T,void 0,"light"),E&&!m.dark&&kr(m,E,void 0,"dark");let v={defaultColorScheme:d,...S,cssVarPrefix:a,colorSchemeSelector:c,getCssVar:h,colorSchemes:m,font:{...ml(S.typography),...S.font},spacing:jl(l.spacing)};Object.keys(v.colorSchemes).forEach(F=>{const s=v.colorSchemes[F].palette,R=L=>{const N=L.split("-"),ee=N[1],ue=N[2];return h(L,s[ee][ue])};if(s.mode==="light"&&(y(s.common,"background","#fff"),y(s.common,"onBackground","#000")),s.mode==="dark"&&(y(s.common,"background","#000"),y(s.common,"onBackground","#fff")),Il(s,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),s.mode==="light"){y(s.Alert,"errorColor",fe(s.error.light,.6)),y(s.Alert,"infoColor",fe(s.info.light,.6)),y(s.Alert,"successColor",fe(s.success.light,.6)),y(s.Alert,"warningColor",fe(s.warning.light,.6)),y(s.Alert,"errorFilledBg",R("palette-error-main")),y(s.Alert,"infoFilledBg",R("palette-info-main")),y(s.Alert,"successFilledBg",R("palette-success-main")),y(s.Alert,"warningFilledBg",R("palette-warning-main")),y(s.Alert,"errorFilledColor",Be(()=>s.getContrastText(s.error.main))),y(s.Alert,"infoFilledColor",Be(()=>s.getContrastText(s.info.main))),y(s.Alert,"successFilledColor",Be(()=>s.getContrastText(s.success.main))),y(s.Alert,"warningFilledColor",Be(()=>s.getContrastText(s.warning.main))),y(s.Alert,"errorStandardBg",de(s.error.light,.9)),y(s.Alert,"infoStandardBg",de(s.info.light,.9)),y(s.Alert,"successStandardBg",de(s.success.light,.9)),y(s.Alert,"warningStandardBg",de(s.warning.light,.9)),y(s.Alert,"errorIconColor",R("palette-error-main")),y(s.Alert,"infoIconColor",R("palette-info-main")),y(s.Alert,"successIconColor",R("palette-success-main")),y(s.Alert,"warningIconColor",R("palette-warning-main")),y(s.AppBar,"defaultBg",R("palette-grey-100")),y(s.Avatar,"defaultBg",R("palette-grey-400")),y(s.Button,"inheritContainedBg",R("palette-grey-300")),y(s.Button,"inheritContainedHoverBg",R("palette-grey-A100")),y(s.Chip,"defaultBorder",R("palette-grey-400")),y(s.Chip,"defaultAvatarColor",R("palette-grey-700")),y(s.Chip,"defaultIconColor",R("palette-grey-700")),y(s.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),y(s.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),y(s.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),y(s.LinearProgress,"primaryBg",de(s.primary.main,.62)),y(s.LinearProgress,"secondaryBg",de(s.secondary.main,.62)),y(s.LinearProgress,"errorBg",de(s.error.main,.62)),y(s.LinearProgress,"infoBg",de(s.info.main,.62)),y(s.LinearProgress,"successBg",de(s.success.main,.62)),y(s.LinearProgress,"warningBg",de(s.warning.main,.62)),y(s.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.11)`),y(s.Slider,"primaryTrack",de(s.primary.main,.62)),y(s.Slider,"secondaryTrack",de(s.secondary.main,.62)),y(s.Slider,"errorTrack",de(s.error.main,.62)),y(s.Slider,"infoTrack",de(s.info.main,.62)),y(s.Slider,"successTrack",de(s.success.main,.62)),y(s.Slider,"warningTrack",de(s.warning.main,.62));const L=Wt(s.background.default,.8);y(s.SnackbarContent,"bg",L),y(s.SnackbarContent,"color",Be(()=>s.getContrastText(L))),y(s.SpeedDialAction,"fabHoverBg",Wt(s.background.paper,.15)),y(s.StepConnector,"border",R("palette-grey-400")),y(s.StepContent,"border",R("palette-grey-400")),y(s.Switch,"defaultColor",R("palette-common-white")),y(s.Switch,"defaultDisabledColor",R("palette-grey-100")),y(s.Switch,"primaryDisabledColor",de(s.primary.main,.62)),y(s.Switch,"secondaryDisabledColor",de(s.secondary.main,.62)),y(s.Switch,"errorDisabledColor",de(s.error.main,.62)),y(s.Switch,"infoDisabledColor",de(s.info.main,.62)),y(s.Switch,"successDisabledColor",de(s.success.main,.62)),y(s.Switch,"warningDisabledColor",de(s.warning.main,.62)),y(s.TableCell,"border",de(Yt(s.divider,1),.88)),y(s.Tooltip,"bg",Yt(s.grey[700],.92))}if(s.mode==="dark"){y(s.Alert,"errorColor",de(s.error.light,.6)),y(s.Alert,"infoColor",de(s.info.light,.6)),y(s.Alert,"successColor",de(s.success.light,.6)),y(s.Alert,"warningColor",de(s.warning.light,.6)),y(s.Alert,"errorFilledBg",R("palette-error-dark")),y(s.Alert,"infoFilledBg",R("palette-info-dark")),y(s.Alert,"successFilledBg",R("palette-success-dark")),y(s.Alert,"warningFilledBg",R("palette-warning-dark")),y(s.Alert,"errorFilledColor",Be(()=>s.getContrastText(s.error.dark))),y(s.Alert,"infoFilledColor",Be(()=>s.getContrastText(s.info.dark))),y(s.Alert,"successFilledColor",Be(()=>s.getContrastText(s.success.dark))),y(s.Alert,"warningFilledColor",Be(()=>s.getContrastText(s.warning.dark))),y(s.Alert,"errorStandardBg",fe(s.error.light,.9)),y(s.Alert,"infoStandardBg",fe(s.info.light,.9)),y(s.Alert,"successStandardBg",fe(s.success.light,.9)),y(s.Alert,"warningStandardBg",fe(s.warning.light,.9)),y(s.Alert,"errorIconColor",R("palette-error-main")),y(s.Alert,"infoIconColor",R("palette-info-main")),y(s.Alert,"successIconColor",R("palette-success-main")),y(s.Alert,"warningIconColor",R("palette-warning-main")),y(s.AppBar,"defaultBg",R("palette-grey-900")),y(s.AppBar,"darkBg",R("palette-background-paper")),y(s.AppBar,"darkColor",R("palette-text-primary")),y(s.Avatar,"defaultBg",R("palette-grey-600")),y(s.Button,"inheritContainedBg",R("palette-grey-800")),y(s.Button,"inheritContainedHoverBg",R("palette-grey-700")),y(s.Chip,"defaultBorder",R("palette-grey-700")),y(s.Chip,"defaultAvatarColor",R("palette-grey-300")),y(s.Chip,"defaultIconColor",R("palette-grey-300")),y(s.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),y(s.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),y(s.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),y(s.LinearProgress,"primaryBg",fe(s.primary.main,.5)),y(s.LinearProgress,"secondaryBg",fe(s.secondary.main,.5)),y(s.LinearProgress,"errorBg",fe(s.error.main,.5)),y(s.LinearProgress,"infoBg",fe(s.info.main,.5)),y(s.LinearProgress,"successBg",fe(s.success.main,.5)),y(s.LinearProgress,"warningBg",fe(s.warning.main,.5)),y(s.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.13)`),y(s.Slider,"primaryTrack",fe(s.primary.main,.5)),y(s.Slider,"secondaryTrack",fe(s.secondary.main,.5)),y(s.Slider,"errorTrack",fe(s.error.main,.5)),y(s.Slider,"infoTrack",fe(s.info.main,.5)),y(s.Slider,"successTrack",fe(s.success.main,.5)),y(s.Slider,"warningTrack",fe(s.warning.main,.5));const L=Wt(s.background.default,.98);y(s.SnackbarContent,"bg",L),y(s.SnackbarContent,"color",Be(()=>s.getContrastText(L))),y(s.SpeedDialAction,"fabHoverBg",Wt(s.background.paper,.15)),y(s.StepConnector,"border",R("palette-grey-600")),y(s.StepContent,"border",R("palette-grey-600")),y(s.Switch,"defaultColor",R("palette-grey-300")),y(s.Switch,"defaultDisabledColor",R("palette-grey-600")),y(s.Switch,"primaryDisabledColor",fe(s.primary.main,.55)),y(s.Switch,"secondaryDisabledColor",fe(s.secondary.main,.55)),y(s.Switch,"errorDisabledColor",fe(s.error.main,.55)),y(s.Switch,"infoDisabledColor",fe(s.info.main,.55)),y(s.Switch,"successDisabledColor",fe(s.success.main,.55)),y(s.Switch,"warningDisabledColor",fe(s.warning.main,.55)),y(s.TableCell,"border",fe(Yt(s.divider,1),.68)),y(s.Tooltip,"bg",Yt(s.grey[700],.92))}Ge(s.background,"default"),Ge(s.background,"paper"),Ge(s.common,"background"),Ge(s.common,"onBackground"),Ge(s,"divider"),Object.keys(s).forEach(L=>{const N=s[L];N&&typeof N=="object"&&(N.main&&y(s[L],"mainChannel",Ct(Et(N.main))),N.light&&y(s[L],"lightChannel",Ct(Et(N.light))),N.dark&&y(s[L],"darkChannel",Ct(Et(N.dark))),N.contrastText&&y(s[L],"contrastTextChannel",Ct(Et(N.contrastText))),L==="text"&&(Ge(s[L],"primary"),Ge(s[L],"secondary")),L==="action"&&(N.active&&Ge(s[L],"active"),N.selected&&Ge(s[L],"selected")))})}),v=r.reduce((F,s)=>$e(F,s),v);const D={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:i,getSelector:Rl(v)},{vars:w,generateThemeVars:U,generateStyleSheets:$}=al(v,D);return v.vars=w,Object.entries(v.colorSchemes[v.defaultColorScheme]).forEach(([F,s])=>{v[F]=s}),v.generateThemeVars=U,v.generateStyleSheets=$,v.generateSpacing=function(){return Io(l.spacing,qr(this))},v.getColorSchemeSelector=il(c),v.spacing=v.generateSpacing(),v.shouldSkipGeneratingVar=i,v.unstable_sxConfig={...At,...l==null?void 0:l.unstable_sxConfig},v.unstable_sx=function(s){return It({sx:s,theme:this})},v.toRuntimeSource=Al,v}function Kn(e,r,t){e.colorSchemes&&t&&(e.colorSchemes[r]={...t!==!0&&t,palette:Xr({...t===!0?{}:t.palette,mode:r})})}function Ll(e={},...r){const{palette:t,cssVariables:n=!1,colorSchemes:o=t?void 0:{light:!0},defaultColorScheme:a=t==null?void 0:t.mode,...i}=e,c=a||"light",l=o==null?void 0:o[c],f={...o,...t?{[c]:{...typeof l!="boolean"&&l,palette:t}}:void 0};if(n===!1){if(!("colorSchemes"in e))return jr(e,...r);let d=t;"palette"in e||f[c]&&(f[c]!==!0?d=f[c].palette:c==="dark"&&(d={mode:"dark"}));const h=jr({...e,palette:d},...r);return h.defaultColorScheme=c,h.colorSchemes=f,h.palette.mode==="light"&&(h.colorSchemes.light={...f.light!==!0&&f.light,palette:h.palette},Kn(h,"dark",f.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:h.palette},Kn(h,"light",f.light)),h}return!t&&!("light"in f)&&c==="light"&&(f.light=!0),Fl({...i,colorSchemes:f,defaultColorScheme:c,...typeof n!="boolean"&&n},...r)}const Yl=Ll(),Wl="$$material";function Bl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Hl=e=>Bl(e)&&e!=="classes",Yo=zu({themeId:Wl,defaultTheme:Yl,rootShouldForwardProp:Hl});function Vl(){return Nu}const Jn={theme:void 0};function Kr(e){let r,t;return n=>{let o=r;return(o===void 0||n.theme!==t)&&(Jn.theme=n.theme,o=e(Jn),r=o,t=n.theme),o}}process.env.NODE_ENV!=="production"&&(I.node,I.object.isRequired);function Wo(e){return tl(e)}function ql(e){return Kt("MuiSvgIcon",e)}Do("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const zl=e=>{const{color:r,fontSize:t,classes:n}=e,o={root:["root",r!=="inherit"&&`color${Le(r)}`,`fontSize${Le(t)}`]};return Mo(o,ql,n)},Gl=Yo("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.color!=="inherit"&&r[`color${Le(t.color)}`],r[`fontSize${Le(t.fontSize)}`]]}})(Kr(({theme:e})=>{var r,t,n,o,a,i,c,l,f,d,h,p,T,E;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(r=e.transitions)==null?void 0:r.create)==null?void 0:o.call(r,"fill",{duration:(n=(t=(e.vars??e).transitions)==null?void 0:t.duration)==null?void 0:n.shorter}),variants:[{props:g=>!g.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((i=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:l.call(c,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(f=e.typography)==null?void 0:f.pxToRem)==null?void 0:d.call(f,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,g])=>g&&g.main).map(([g])=>{var m,k;return{props:{color:g},style:{color:(k=(m=(e.vars??e).palette)==null?void 0:m[g])==null?void 0:k.main}}}),{props:{color:"action"},style:{color:(p=(h=(e.vars??e).palette)==null?void 0:h.action)==null?void 0:p.active}},{props:{color:"disabled"},style:{color:(E=(T=(e.vars??e).palette)==null?void 0:T.action)==null?void 0:E.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Dt=be.forwardRef(function(r,t){const n=Wo({props:r,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:c="svg",fontSize:l="medium",htmlColor:f,inheritViewBox:d=!1,titleAccess:h,viewBox:p="0 0 24 24",...T}=n,E=be.isValidElement(o)&&o.type==="svg",g={...n,color:i,component:c,fontSize:l,instanceFontSize:r.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:E},m={};d||(m.viewBox=p);const k=zl(g);return b.jsxs(Gl,{as:c,className:$o(k.root,a),focusable:"false",color:f,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:t,...m,...T,...E&&o.props,ownerState:g,children:[E?o.props.children:o,h?b.jsx("title",{children:h}):null]})});process.env.NODE_ENV!=="production"&&(Dt.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});Dt&&(Dt.muiName="SvgIcon");function Ul(e,r){function t(n,o){return b.jsx(Dt,{"data-testid":`${r}Icon`,ref:o,...n,children:e})}return process.env.NODE_ENV!=="production"&&(t.displayName=`${r}Icon`),t.muiName=Dt.muiName,be.memo(be.forwardRef(t))}const Ql={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
108
|
-
`)),Po.configure(e)}},Xl=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Le,createChainedFunction:_c,createSvgIcon:Ul,debounce:Mc,deprecatedPropType:Pc,isMuiElement:Dc,ownerDocument:Oo,ownerWindow:Rc,requirePropFactory:$c,setRef:ko,unstable_ClassNameGenerator:Ql,unstable_memoTheme:Kr,unstable_useEnhancedEffect:_o,unstable_useId:Ic,unsupportedProp:jc,useControlled:Nc,useEventCallback:Fc,useForkRef:Lc},Symbol.toStringTag,{value:"Module"})),Kl=va(Xl);var Zn;function Jl(){return Zn||(Zn=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=Kl}(gr)),gr}var Zl=pc;Object.defineProperty(Hr,"__esModule",{value:!0});var Jr=Hr.default=void 0,ef=Zl(Jl()),tf=b;Jr=Hr.default=(0,ef.default)((0,tf.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"}),"CloseOutlined");function Bo(){return b.jsxs(K.SvgIcon,{viewBox:"0 0 16 16","aria-hidden":"true",height:"16",width:"16",style:{width:16,height:16},children:[b.jsx("path",{fill:"#1E365E",d:"M0 0h16v16H0z"}),b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.118 7.71l-4.43-.5 1.306-3.147 4.444 2.098-.785 5.245-.535-3.696zM6.421 8l.262-.781 2.098.52-.786 1.824-5.245 2.343L6.421 8z",fill:"#F69139"})]})}function rf(){return b.jsx(K.SvgIcon,{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 20 20",style:{width:56,height:56},children:b.jsxs("g",{fill:"#FFBF00",fillRule:"evenodd",transform:"translate(1 1)",children:[b.jsx("path",{d:"m9.5.5 9 16h-18z",stroke:"#000000",strokeLinecap:"round",strokeLinejoin:"round"}),b.jsx("path",{d:"m9.5 10.5v-5",stroke:"#000000",strokeLinecap:"round",strokeLinejoin:"round"}),b.jsx("circle",{cx:"9.5",cy:"13.5",fill:"#000000",r:"1"})]})})}const Ho=({actions:e,children:r,closeIcon:t,hideOverflow:n,isOpen:o,key:a,maxWidth:i,minWidth:c,onClose:l,showWarningIcon:f,title:d})=>b.jsx(b.Fragment,{children:b.jsxs(K.Dialog,{open:o,maxWidth:i||"xl",children:[b.jsxs(K.DialogContent,{sx:n?{padding:0,minWidth:c||400,overflowY:"hidden"}:{padding:0,minWidth:c||400},children:[b.jsx(K.DialogTitle,{style:{backgroundColor:"#f0f1f2",padding:0},children:b.jsxs("div",{style:{alignItems:"center",display:"flex",minHeight:28,paddingLeft:8,verticalAlign:"center"},children:[b.jsx(Bo,{}),b.jsx("div",{style:{flex:1,paddingLeft:5},children:b.jsx(K.Typography,{variant:"body1",children:d})}),b.jsx("div",{children:t&&b.jsx(K.IconButton,{disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,sx:{borderRadius:0,":hover":{backgroundColor:"#c42b1c",".MuiSvgIcon-root":{path:{color:"#ffffff"}}}},onClick:()=>{l&&l()},children:b.jsx(Jr,{style:{height:20}})})})]})}),b.jsxs("div",{style:{display:"flex",minHeight:120},children:[!!f&&b.jsx("div",{style:{marginLeft:15,marginTop:"auto",marginBottom:"auto"},children:b.jsx(rf,{})}),b.jsx("div",{style:{flex:1,marginTop:"auto",marginBottom:"auto",marginLeft:15,marginRight:15},children:r})]})]}),e&&b.jsx(K.DialogActions,{style:{borderTop:"1px solid rgba(224, 224, 224, 1)",backgroundColor:"rgb(241, 243, 249)"},children:e})]},a)}),nf=({disabled:e,fullWidth:r,isUTC:t,startOfDate:n,endOfDate:o,onUpdate:a,additionalActions:i,size:c,validate30Days:l,validate:f,value:d,locale:h})=>{const[p,T]=Ke.useState(null),[E,g]=Ke.useState(null),[m,k]=Ke.useState(null);return Ke.useEffect(()=>{g(d&&new Date(d))},[d,wo]),b.jsxs(b.Fragment,{children:[b.jsx(mr.LocalizationProvider,{dateAdapter:Gs,adapterLocale:h,children:b.jsx(mr.DatePicker,{disabled:e,value:E,onAccept:S=>{if(d&&l&&he.differenceInDays(new Date(S),new Date)>30&&k({keepButton:!0,message:"Selected date is in the future.",originalValue:d}),d=S||null,f){const v=f(d);v&&k(v)}g(d),a(Ht(d?new Date(d):null,n,o,t))},slotProps:{inputAdornment:{onClick:S=>T(S.currentTarget),sx:{padding:"0px",borderRadius:0,":hover":{borderRadius:0,padding:"0px"},".MuiButtonBase-root":{borderRadius:0,paddingTop:"1px",paddingBottom:"1px"}}},popper:{anchorEl:p},textField:{onBlur:S=>{const v=S.target.value;if(v!==d){const D=vo(v,cc,!0);if(d&&D&&l&&he.differenceInDays(new Date(D),new Date)>30&&k({keepButton:!0,message:"Selected date is in the future.",originalValue:d}),f){const w=f(D||null);w&&k(w)}g(D&&new Date(D)),a(Ht(D?new Date(D):null,n,o,t))}},size:c||"small",placeholder:h&&h.formatLong.date({width:"short"}).toLowerCase(),value:E?new Date(E):null},layout:{sx:{[`.${mr.pickersLayoutClasses.actionBar}`]:{gridColumn:1,gridRow:2}}}},slots:{openPickerIcon:mc,actionBar:S=>{var v;return b.jsxs(K.List,{className:S.className,style:{marginTop:"auto",marginBottom:"auto"},children:[(i==null?void 0:i.showToday)&&b.jsx(K.ListItem,{disablePadding:!0,children:b.jsx(K.ListItemButton,{onClick:()=>{const D=new Date;g(D),a(Ht(D?new Date(D):null,n,o,t)),S.onCancel()},children:b.jsx(K.ListItemText,{primary:"Today"})})},"today"),(i==null?void 0:i.customActions)&&((v=i==null?void 0:i.customActions)==null?void 0:v.map(D=>b.jsx(K.ListItem,{disablePadding:!0,children:b.jsx(K.ListItemButton,{onClick:()=>{g(D.value),a(he.format(new Date(D.value),Bt)),S.onCancel()},children:b.jsx(K.ListItemText,{primary:D.label})})},D.label))),(i==null?void 0:i.showClear)&&b.jsx(K.ListItem,{disablePadding:!0,children:b.jsx(K.ListItemButton,{onClick:()=>{S.onClear(),a(null),S.onCancel()},children:b.jsx(K.ListItemText,{primary:"Clear"})})},"clear")]})}},sx:{width:r?"100%":129,"& .MuiInputBase-input":{width:"75%",paddingRight:0},"& .MuiInputBase-root":{paddingRight:"12px"}},views:["year","month","day"]})}),b.jsx(Ho,{actions:b.jsxs(b.Fragment,{children:[(m==null?void 0:m.keepButton)&&b.jsx("div",{style:{marginRight:5},children:b.jsx(Je,{onClick:()=>{k(null)},children:"Keep Value"})}),b.jsx(Je,{variant:"outlined",onClick:()=>{const S=m==null?void 0:m.originalValue;a(S||null),g(S),k(null)},primary:!1,children:"Revert"})]}),isOpen:!!m,onClose:()=>k(null),showWarningIcon:!0,title:"Warning",children:b.jsx(K.Typography,{children:m==null?void 0:m.message})})]})},of=({children:e,closeIcon:r,fullWidth:t,hideOverflow:n,isOpen:o,maxWidth:a,minWidth:i,onCancel:c,onClose:l,onSave:f,title:d})=>b.jsx(b.Fragment,{children:b.jsxs(K.Dialog,{fullWidth:t||!1,maxWidth:a||"xl",open:o,children:[b.jsxs(K.DialogContent,{sx:n?{padding:0,minWidth:i||400,overflowY:"hidden"}:{padding:0,minWidth:i||400},children:[b.jsx("div",{style:{width:"100%",backgroundColor:"#f1f3f9"},children:b.jsxs("div",{className:"displayFlex",style:{alignItems:"center",paddingLeft:8,minHeight:28},children:[b.jsx(Bo,{}),b.jsx("div",{className:"flex1",style:{paddingLeft:5},children:b.jsx(K.Typography,{variant:"body1",children:d})}),b.jsx("div",{children:r&&b.jsx(K.IconButton,{disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,sx:{borderRadius:0,":hover":{backgroundColor:"#c42b1c",".MuiSvgIcon-root":{path:{color:"#ffffff"}}}},onClick:()=>{l&&l()},children:b.jsx(Jr,{style:{height:20}})})})]})}),b.jsx("div",{className:"displayFlex",style:{alignItems:"baseline",minHeight:120},children:b.jsx("div",{className:"flex1 formBody",children:e})})]}),b.jsxs(K.DialogActions,{children:[f&&b.jsx("div",{style:{marginRight:5},children:b.jsx(Je,{onClick:f,primary:!0,size:"small",children:"Save & Close"})}),c&&b.jsx(Je,{onClick:c,size:"small",children:"Cancel"})]})]})}),af=({leftComponents:e,onCancel:r,onClose:t,onOK:n,onSaveDisable:o})=>b.jsxs(b.Fragment,{children:[e&&b.jsx(b.Fragment,{children:e}),b.jsx("div",{className:"flex1"}),r&&b.jsx(Je,{onClick:r,primary:!1,size:"small",children:"Cancel"}),n&&b.jsx("div",{style:{marginRight:5},children:b.jsx(Je,{disabled:o||!1,onClick:n,primary:!0,size:"small",children:"OK"})}),t&&b.jsx(Je,{primary:!1,onClick:t,size:"small",children:"Close"})]}),sf=({overlay:e})=>b.jsx(b.Fragment,{children:b.jsx(K.Backdrop,{open:!0,invisible:!e,style:{zIndex:1350},children:b.jsx(K.CircularProgress,{style:{position:"absolute",left:"calc(50vw - 20px)",top:"calc(50vh - 20px)"}})})}),Vo=Ke.forwardRef((e,r)=>{const{onChange:t,...n}=e;return b.jsx(to.NumericFormat,{...n,getInputRef:r,onValueChange:o=>{t({target:{name:e.name,value:o.value}})},allowNegative:!1})});Vo.displayName="LCTNumberInputNumericFormat";const cf=({autoFocus:e,disabled:r,placeholder:t,size:n,updater:o,value:a,width:i,...c})=>b.jsx(b.Fragment,{children:b.jsx(K.OutlinedInput,{autoFocus:e,disabled:r,inputComponent:Vo,onBlur:l=>{o&&o(l.target.value)},placeholder:t,size:n||"small",sx:{width:i||130,"& .MuiInputBase-input":{textAlign:"end"},"& .MuiOutlinedInput-notchedOutline ":{border:"1px solid rgba(0, 0, 0, 0.23)"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline ":{border:"1px solid rgba(0, 0, 0, 0.23)"}},value:a,...c})}),uf=({autoComplete:e,disabled:r,fullWidth:t,id:n,items:o,onUpdate:a,size:i,value:c,...l})=>{if(e)console.log("autoComplete");else return b.jsx(K.Select,{disabled:r,fullWidth:t,onChange:f=>{c=f.target.value,a(c)},size:i||"small",value:o?c:"",...l,children:o.map((f,d)=>b.jsx(K.MenuItem,{value:f.value,children:f.name},`${n}-${d}`))})};function lf(e){return Kt("MuiTypography",e)}Do("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ff={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},df=Vl(),hf=e=>{const{align:r,gutterBottom:t,noWrap:n,paragraph:o,variant:a,classes:i}=e,c={root:["root",a,e.align!=="inherit"&&`align${Le(r)}`,t&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return Mo(c,lf,i)},mf=Yo("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.variant&&r[t.variant],t.align!=="inherit"&&r[`align${Le(t.align)}`],t.noWrap&&r.noWrap,t.gutterBottom&&r.gutterBottom,t.paragraph&&r.paragraph]}})(Kr(({theme:e})=>{var r;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(((r=e.palette)==null?void 0:r.text)||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${Le(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}}]}})),eo={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},qo=be.forwardRef(function(r,t){const{color:n,...o}=Wo({props:r,name:"MuiTypography"}),a=!ff[n],i=df({...o,...a&&{color:n}}),{align:c="inherit",className:l,component:f,gutterBottom:d=!1,noWrap:h=!1,paragraph:p=!1,variant:T="body1",variantMapping:E=eo,...g}=i,m={...i,align:c,color:n,className:l,component:f,gutterBottom:d,noWrap:h,paragraph:p,variant:T,variantMapping:E},k=f||(p?"p":E[T]||eo[T])||"span",S=hf(m);return b.jsx(mf,{as:k,ref:t,className:$o(S.root,l),...g,ownerState:m,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...g.style}})});process.env.NODE_ENV!=="production"&&(qo.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});const pf=({children:e,variant:r="body1"})=>b.jsx(qo,{variant:r,children:e});exports.LCTAppBar=Ca;exports.LCTButton=Je;exports.LCTCurrencyInput=Ea;exports.LCTDatePicker=nf;exports.LCTDialog=Ho;exports.LCTFooter=af;exports.LCTFormDialog=of;exports.LCTLoader=sf;exports.LCTNumberInput=cf;exports.LCTSelect=uf;exports.LCTTypography=pf;exports.lctFormatDate=Ht;exports.lctGetLocalDisplayFormattedDate=dc;exports.lctGetLocalDisplayFormattedDateTime=hc;exports.lctGetLocale=fc;exports.lctParseDate=vo;
|
|
108
|
+
`)),Po.configure(e)}},Xl=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Le,createChainedFunction:_c,createSvgIcon:Ul,debounce:Mc,deprecatedPropType:Pc,isMuiElement:Dc,ownerDocument:Oo,ownerWindow:Rc,requirePropFactory:$c,setRef:ko,unstable_ClassNameGenerator:Ql,unstable_memoTheme:Kr,unstable_useEnhancedEffect:_o,unstable_useId:Ic,unsupportedProp:jc,useControlled:Nc,useEventCallback:Fc,useForkRef:Lc},Symbol.toStringTag,{value:"Module"})),Kl=va(Xl);var Zn;function Jl(){return Zn||(Zn=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=Kl}(gr)),gr}var Zl=pc;Object.defineProperty(Hr,"__esModule",{value:!0});var Jr=Hr.default=void 0,ef=Zl(Jl()),tf=b;Jr=Hr.default=(0,ef.default)((0,tf.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"}),"CloseOutlined");function Bo(){return b.jsxs(K.SvgIcon,{viewBox:"0 0 16 16","aria-hidden":"true",height:"16",width:"16",style:{width:16,height:16},children:[b.jsx("path",{fill:"#1E365E",d:"M0 0h16v16H0z"}),b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.118 7.71l-4.43-.5 1.306-3.147 4.444 2.098-.785 5.245-.535-3.696zM6.421 8l.262-.781 2.098.52-.786 1.824-5.245 2.343L6.421 8z",fill:"#F69139"})]})}function rf(){return b.jsx(K.SvgIcon,{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 20 20",style:{width:56,height:56},children:b.jsxs("g",{fill:"#FFBF00",fillRule:"evenodd",transform:"translate(1 1)",children:[b.jsx("path",{d:"m9.5.5 9 16h-18z",stroke:"#000000",strokeLinecap:"round",strokeLinejoin:"round"}),b.jsx("path",{d:"m9.5 10.5v-5",stroke:"#000000",strokeLinecap:"round",strokeLinejoin:"round"}),b.jsx("circle",{cx:"9.5",cy:"13.5",fill:"#000000",r:"1"})]})})}const Ho=({actions:e,children:r,closeIcon:t,hideOverflow:n,isOpen:o,key:a,maxWidth:i,minWidth:c,onClose:l,showWarningIcon:f,title:d})=>b.jsx(b.Fragment,{children:b.jsxs(K.Dialog,{open:o,maxWidth:i||"xl",children:[b.jsxs(K.DialogContent,{sx:n?{padding:0,minWidth:c||400,overflowY:"hidden"}:{padding:0,minWidth:c||400},children:[b.jsx(K.DialogTitle,{style:{backgroundColor:"#f0f1f2",padding:0},children:b.jsxs("div",{style:{alignItems:"center",display:"flex",minHeight:28,paddingLeft:8,verticalAlign:"center"},children:[b.jsx(Bo,{}),b.jsx("div",{style:{flex:1,paddingLeft:5},children:b.jsx(K.Typography,{variant:"body1",children:d})}),b.jsx("div",{children:t&&b.jsx(K.IconButton,{disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,sx:{borderRadius:0,":hover":{backgroundColor:"#c42b1c",".MuiSvgIcon-root":{path:{color:"#ffffff"}}}},onClick:()=>{l&&l()},children:b.jsx(Jr,{style:{height:20}})})})]})}),b.jsxs("div",{style:{display:"flex",minHeight:120},children:[!!f&&b.jsx("div",{style:{marginLeft:15,marginTop:"auto",marginBottom:"auto"},children:b.jsx(rf,{})}),b.jsx("div",{style:{flex:1,marginTop:"auto",marginBottom:"auto",marginLeft:15,marginRight:15},children:r})]})]}),e&&b.jsx(K.DialogActions,{style:{borderTop:"1px solid rgba(224, 224, 224, 1)",backgroundColor:"rgb(241, 243, 249)"},children:e})]},a)}),nf=({disabled:e,fullWidth:r,isUTC:t,startOfDate:n,endOfDate:o,onUpdate:a,additionalActions:i,size:c,validate30Days:l,validate:f,value:d,locale:h})=>{const[p,T]=Ke.useState(null),[E,g]=Ke.useState(null),[m,k]=Ke.useState(null);return Ke.useEffect(()=>{g(d&&new Date(d))},[d,wo]),b.jsxs(b.Fragment,{children:[b.jsx(mr.LocalizationProvider,{dateAdapter:Gs,adapterLocale:h,children:b.jsx(mr.DatePicker,{disabled:e,value:E,onAccept:S=>{if(d&&l&&he.differenceInDays(new Date(S),new Date)>30&&k({keepButton:!0,message:"Selected date is in the future.",originalValue:d}),d=S||null,f){const v=f(d);v&&k(v)}g(d),a(Ht(d?new Date(d):null,n,o,t))},slotProps:{inputAdornment:{onClick:S=>T(S.currentTarget),sx:{padding:"0px",borderRadius:0,":hover":{borderRadius:0,padding:"0px"},".MuiButtonBase-root":{borderRadius:0,paddingTop:"1px",paddingBottom:"1px"}}},popper:{anchorEl:p},textField:{onBlur:S=>{const v=S.target.value;if(v!==d){const D=vo(v,cc,!0);if(d&&D&&l&&he.differenceInDays(new Date(D),new Date)>30&&k({keepButton:!0,message:"Selected date is in the future.",originalValue:d}),f){const w=f(D||null);w&&k(w)}g(D&&new Date(D)),a(Ht(D?new Date(D):null,n,o,t))}},size:c||"small",placeholder:h&&h.formatLong.date({width:"short"}).toUpperCase(),value:E?new Date(E):null},layout:{sx:{[`.${mr.pickersLayoutClasses.actionBar}`]:{gridColumn:1,gridRow:2}}}},slots:{openPickerIcon:mc,actionBar:S=>{var v;return b.jsxs(K.List,{className:S.className,style:{marginTop:"auto",marginBottom:"auto"},children:[(i==null?void 0:i.showToday)&&b.jsx(K.ListItem,{disablePadding:!0,children:b.jsx(K.ListItemButton,{onClick:()=>{const D=new Date;g(D),a(Ht(D?new Date(D):null,n,o,t)),S.onCancel()},children:b.jsx(K.ListItemText,{primary:"Today"})})},"today"),(i==null?void 0:i.customActions)&&((v=i==null?void 0:i.customActions)==null?void 0:v.map(D=>b.jsx(K.ListItem,{disablePadding:!0,children:b.jsx(K.ListItemButton,{onClick:()=>{g(D.value),a(he.format(new Date(D.value),Bt)),S.onCancel()},children:b.jsx(K.ListItemText,{primary:D.label})})},D.label))),(i==null?void 0:i.showClear)&&b.jsx(K.ListItem,{disablePadding:!0,children:b.jsx(K.ListItemButton,{onClick:()=>{S.onClear(),a(null),S.onCancel()},children:b.jsx(K.ListItemText,{primary:"Clear"})})},"clear")]})}},sx:{width:r?"100%":129,"& .MuiInputBase-input":{width:"75%",paddingRight:0},"& .MuiInputBase-root":{paddingRight:"12px"}},views:["year","month","day"]})}),b.jsx(Ho,{actions:b.jsxs(b.Fragment,{children:[(m==null?void 0:m.keepButton)&&b.jsx("div",{style:{marginRight:5},children:b.jsx(Je,{onClick:()=>{k(null)},children:"Keep Value"})}),b.jsx(Je,{variant:"outlined",onClick:()=>{const S=m==null?void 0:m.originalValue;a(S||null),g(S),k(null)},primary:!1,children:"Revert"})]}),isOpen:!!m,onClose:()=>k(null),showWarningIcon:!0,title:"Warning",children:b.jsx(K.Typography,{children:m==null?void 0:m.message})})]})},of=({children:e,closeIcon:r,fullWidth:t,hideOverflow:n,isOpen:o,maxWidth:a,minWidth:i,onCancel:c,onClose:l,onSave:f,title:d})=>b.jsx(b.Fragment,{children:b.jsxs(K.Dialog,{fullWidth:t||!1,maxWidth:a||"xl",open:o,children:[b.jsxs(K.DialogContent,{sx:n?{padding:0,minWidth:i||400,overflowY:"hidden"}:{padding:0,minWidth:i||400},children:[b.jsx("div",{style:{width:"100%",backgroundColor:"#f1f3f9"},children:b.jsxs("div",{className:"displayFlex",style:{alignItems:"center",paddingLeft:8,minHeight:28},children:[b.jsx(Bo,{}),b.jsx("div",{className:"flex1",style:{paddingLeft:5},children:b.jsx(K.Typography,{variant:"body1",children:d})}),b.jsx("div",{children:r&&b.jsx(K.IconButton,{disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,sx:{borderRadius:0,":hover":{backgroundColor:"#c42b1c",".MuiSvgIcon-root":{path:{color:"#ffffff"}}}},onClick:()=>{l&&l()},children:b.jsx(Jr,{style:{height:20}})})})]})}),b.jsx("div",{className:"displayFlex",style:{alignItems:"baseline",minHeight:120},children:b.jsx("div",{className:"flex1 formBody",children:e})})]}),b.jsxs(K.DialogActions,{children:[f&&b.jsx("div",{style:{marginRight:5},children:b.jsx(Je,{onClick:f,primary:!0,size:"small",children:"Save & Close"})}),c&&b.jsx(Je,{onClick:c,size:"small",children:"Cancel"})]})]})}),af=({leftComponents:e,onCancel:r,onClose:t,onOK:n,onSaveDisable:o})=>b.jsxs(b.Fragment,{children:[e&&b.jsx(b.Fragment,{children:e}),b.jsx("div",{className:"flex1"}),r&&b.jsx(Je,{onClick:r,primary:!1,size:"small",children:"Cancel"}),n&&b.jsx("div",{style:{marginRight:5},children:b.jsx(Je,{disabled:o||!1,onClick:n,primary:!0,size:"small",children:"OK"})}),t&&b.jsx(Je,{variant:"outlined",onClick:t,size:"small",children:"Close"})]}),sf=({overlay:e})=>b.jsx(b.Fragment,{children:b.jsx(K.Backdrop,{open:!0,invisible:!e,style:{zIndex:1350},children:b.jsx(K.CircularProgress,{style:{position:"absolute",left:"calc(50vw - 20px)",top:"calc(50vh - 20px)"}})})}),Vo=Ke.forwardRef((e,r)=>{const{onChange:t,...n}=e;return b.jsx(to.NumericFormat,{...n,getInputRef:r,onValueChange:o=>{t({target:{name:e.name,value:o.value}})},allowNegative:!1})});Vo.displayName="LCTNumberInputNumericFormat";const cf=({autoFocus:e,disabled:r,placeholder:t,size:n,updater:o,value:a,width:i,...c})=>b.jsx(b.Fragment,{children:b.jsx(K.OutlinedInput,{autoFocus:e,disabled:r,inputComponent:Vo,onBlur:l=>{o&&o(l.target.value)},placeholder:t,size:n||"small",sx:{width:i||130,"& .MuiInputBase-input":{textAlign:"end"},"& .MuiOutlinedInput-notchedOutline ":{border:"1px solid rgba(0, 0, 0, 0.23)"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline ":{border:"1px solid rgba(0, 0, 0, 0.23)"}},value:a,...c})}),uf=({autoComplete:e,disabled:r,fullWidth:t,id:n,items:o,onUpdate:a,size:i,value:c,...l})=>{if(e)console.log("autoComplete");else return b.jsx(K.Select,{disabled:r,fullWidth:t,onChange:f=>{c=f.target.value,a(c)},size:i||"small",value:o?c:"",...l,children:o.map((f,d)=>b.jsx(K.MenuItem,{value:f.value,children:f.name},`${n}-${d}`))})};function lf(e){return Kt("MuiTypography",e)}Do("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ff={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},df=Vl(),hf=e=>{const{align:r,gutterBottom:t,noWrap:n,paragraph:o,variant:a,classes:i}=e,c={root:["root",a,e.align!=="inherit"&&`align${Le(r)}`,t&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return Mo(c,lf,i)},mf=Yo("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.variant&&r[t.variant],t.align!=="inherit"&&r[`align${Le(t.align)}`],t.noWrap&&r.noWrap,t.gutterBottom&&r.gutterBottom,t.paragraph&&r.paragraph]}})(Kr(({theme:e})=>{var r;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(((r=e.palette)==null?void 0:r.text)||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${Le(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}}]}})),eo={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},qo=be.forwardRef(function(r,t){const{color:n,...o}=Wo({props:r,name:"MuiTypography"}),a=!ff[n],i=df({...o,...a&&{color:n}}),{align:c="inherit",className:l,component:f,gutterBottom:d=!1,noWrap:h=!1,paragraph:p=!1,variant:T="body1",variantMapping:E=eo,...g}=i,m={...i,align:c,color:n,className:l,component:f,gutterBottom:d,noWrap:h,paragraph:p,variant:T,variantMapping:E},k=f||(p?"p":E[T]||eo[T])||"span",S=hf(m);return b.jsx(mf,{as:k,ref:t,className:$o(S.root,l),...g,ownerState:m,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...g.style}})});process.env.NODE_ENV!=="production"&&(qo.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});const pf=({children:e,variant:r="body1"})=>b.jsx(qo,{variant:r,children:e});exports.LCTAppBar=Ca;exports.LCTButton=Je;exports.LCTCurrencyInput=Ea;exports.LCTDatePicker=nf;exports.LCTDialog=Ho;exports.LCTFooter=af;exports.LCTFormDialog=of;exports.LCTLoader=sf;exports.LCTNumberInput=cf;exports.LCTSelect=uf;exports.LCTTypography=pf;exports.lctFormatDate=Ht;exports.lctGetLocalDisplayFormattedDate=dc;exports.lctGetLocalDisplayFormattedDateTime=hc;exports.lctGetLocale=fc;exports.lctParseDate=vo;
|
|
109
109
|
//# sourceMappingURL=index.cjs.js.map
|