@cp949/mui-react19 2.0.1 → 2.0.3
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 +12 -5
- package/dist/chunk-2OEB5VHZ.js +2 -0
- package/dist/chunk-2OEB5VHZ.js.map +1 -0
- package/dist/chunk-M4G6J7DP.cjs.map +1 -1
- package/dist/chunk-QNR3IXPA.cjs +2 -0
- package/dist/chunk-QNR3IXPA.cjs.map +1 -0
- package/dist/file-drop/index.cjs +1 -1
- package/dist/file-drop/index.cjs.map +1 -1
- package/dist/file-drop/index.d.cts +3 -2
- package/dist/file-drop/index.d.ts +3 -2
- package/dist/file-drop/index.js +1 -1
- package/dist/file-drop/index.js.map +1 -1
- package/dist/helper/index.cjs.map +1 -1
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.cts +64 -34
- package/dist/hooks/index.d.ts +64 -34
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/index.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +213 -74
- package/dist/index.d.ts +213 -74
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/parallel-map-V2OVUIFQ.cjs.map +1 -1
- package/package.json +26 -28
- package/dist/chunk-F2OL5PTS.js +0 -2
- package/dist/chunk-F2OL5PTS.js.map +0 -1
- package/dist/chunk-YXXXYWHI.cjs +0 -2
- package/dist/chunk-YXXXYWHI.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkYXXXYWHIcjs = require('./chunk-YXXXYWHI.cjs');require('./chunk-M4G6J7DP.cjs');var _material = require('@mui/material');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var Y=_react.forwardRef.call(void 0, ({fullWidth:e,bottom:t=0,sx:o,...r},n)=>_jsxruntime.jsx.call(void 0, _material.Box,{ref:n,sx:[{position:"absolute",bottom:t,left:"50%",transform:"translate(-50%, -50%)",...e&&{width:"100%"}},...Array.isArray(o)?o:[o]],...r}));Y.displayName="BottomAbsolute.Center";var q=_react.forwardRef.call(void 0, ({fullWidth:e,left:t=0,bottom:o=0,sx:r,...n},i)=>_jsxruntime.jsx.call(void 0, _material.Box,{ref:i,sx:[{position:"absolute",left:t,bottom:o,...e&&{width:"100%"}},...Array.isArray(r)?r:[r]],...n}));q.displayName="BottomAbsolute.Left";var J=_react.forwardRef.call(void 0, ({fullWidth:e,right:t=0,bottom:o=0,sx:r,...n},i)=>_jsxruntime.jsx.call(void 0, _material.Box,{ref:i,sx:[{position:"absolute",right:t,bottom:o,...e&&{width:"100%"}},...Array.isArray(r)?r:[r]],...n}));J.displayName="BottomAbsolute.Right";var Te=_react.forwardRef.call(void 0, ({bottom:e=0,left:t=0,right:o=0,sx:r,...n},i)=>_jsxruntime.jsx.call(void 0, _material.Box,{ref:i,sx:[{position:"absolute",bottom:e,left:t,right:o},...Array.isArray(r)?r:[r]],...n}));Te.displayName="BottomAbsoluteBase";var D=Te;D.displayName="BottomAbsolute";D.Left=q;D.Right=J;D.Center=Y;var dt=_react.forwardRef.call(void 0, ({vertical:e=!1,sx:t,...o},r)=>_jsxruntime.jsx.call(void 0, _material.Box,{ref:r,sx:[{display:"flex",flexDirection:e?"column":"row",alignItems:"center",justifyContent:"center"},...Array.isArray(t)?t:[t]],...o}));dt.displayName="Center";var Pt=_react.forwardRef.call(void 0, ({cooldown:e=1e3,onClick:t,disabled:o,...r},n)=>{let[i,s]=_react.useState.call(void 0, !1),a=_react.useRef.call(void 0, null);return _react.useImperativeHandle.call(void 0, n,()=>a.current),_jsxruntime.jsx.call(void 0, _material.Button,{...r,ref:a,onClick:l=>{!i&&t&&(t(l),s(!0),setTimeout(()=>s(!1),e))},disabled:o||i,children:r.children})});Pt.displayName="CooldownButton";var At=_react.forwardRef.call(void 0, ({cooldown:e=1e3,onClick:t,disabled:o,...r},n)=>{let[i,s]=_react.useState.call(void 0, !1),a=_react.useRef.call(void 0, null);return _react.useImperativeHandle.call(void 0, n,()=>a.current),_jsxruntime.jsx.call(void 0, _material.ButtonBase,{...r,ref:a,onClick:l=>{!i&&t&&(t(l),s(!0),setTimeout(()=>s(!1),e))},disabled:o||i,children:r.children})});At.displayName="CooldownButtonBase";var It=_react.forwardRef.call(void 0, ({cooldown:e=700,onClick:t,disabled:o,...r},n)=>{let[i,s]=_react.useState.call(void 0, !1),a=_react.useRef.call(void 0, null);return _react.useImperativeHandle.call(void 0, n,()=>a.current),_jsxruntime.jsx.call(void 0, _material.IconButton,{...r,ref:a,onClick:l=>{!i&&t&&(t(l),s(!0),setTimeout(()=>s(!1),e))},disabled:o||i,children:r.children})});It.displayName="CooldownIconButton";function Ki(e){let{children:t,value:o,timeout:r=1e3}=e,n=_chunkYXXXYWHIcjs.a.call(void 0, {timeout:r});return _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:t({copy:()=>{let s=typeof o=="function"?o():o;typeof s=="string"&&s.length>0&&n.copy(s)},copied:n.copied})})}var _clsx = require('clsx'); var _clsx2 = _interopRequireDefault(_clsx);function Qi(e){let{sx:t,className:o,loading:r,stripe:n,...i}=e;return _jsxruntime.jsx.call(void 0, _material.TableBody,{className:_clsx2.default.call(void 0, "CustomTableBody-root",o,{"CustomTableBody-stripe":!!n,"CustomTableBody-loading":!!r}),sx:[{"&.CustomTableBody-loading":{opacity:.5},"&.CustomTableBody-stripe":{"& .MuiTableRow-root:nth-of-type(even)":{backgroundColor:"action.hover"}}},...Array.isArray(t)?t:[_nullishCoalesce(t, () => (!1))]],...i})}var Z=_react.forwardRef.call(void 0, ({fullWidth:e,sx:t,...o},r)=>_jsxruntime.jsx.call(void 0, _material.Box,{ref:r,sx:[{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",...e&&{width:"100%"}},...Array.isArray(t)?t:[t]],...o}));Z.displayName="CenterAbsolute.Center";var ee=_react.forwardRef.call(void 0, ({fullWidth:e,left:t=0,sx:o,...r},n)=>_jsxruntime.jsx.call(void 0, _material.Box,{ref:n,sx:[{position:"absolute",top:"50%",left:t,transform:"translateY(-50%)",...e&&{width:"100%"}},...Array.isArray(o)?o:[o]],...r}));ee.displayName="CenterAbsolute.Left";var te=_react.forwardRef.call(void 0, ({fullWidth:e,right:t=0,sx:o,...r},n)=>_jsxruntime.jsx.call(void 0, _material.Box,{ref:n,sx:[{position:"absolute",top:"50%",right:t,transform:"translateY(-50%)",...e&&{width:"100%"}},...Array.isArray(o)?o:[o]],...r}));te.displayName="CenterAbsolute.Right";var we=_react.forwardRef.call(void 0, ({left:e=0,right:t=0,sx:o,...r},n)=>_jsxruntime.jsx.call(void 0, _material.Box,{ref:n,sx:[{position:"absolute",top:"50%",left:e,right:t,transform:"translateY(-50%)"},...Array.isArray(o)?o:[o]],...r}));we.displayName="CenterAbsoluteBase";var O=we;O.displayName="CenterAbsolute";O.Left=ee;O.Right=te;O.Center=Z;var ro=_react.forwardRef.call(void 0, ({debounce:e=700,onClick:t,disabled:o,children:r,...n},i)=>{let s=_react.useRef.call(void 0, null);return _react.useEffect.call(void 0, ()=>()=>{s.current&&clearTimeout(s.current)},[]),_jsxruntime.jsx.call(void 0, _material.Button,{...n,ref:i,onClick:p=>{s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{!o&&t&&t(p)},e)},disabled:o,children:r})});ro.displayName="DebouncedButton";var po=_react.forwardRef.call(void 0, ({debounce:e=700,onClick:t,disabled:o,children:r,...n},i)=>{let s=_react.useRef.call(void 0, null);return _react.useEffect.call(void 0, ()=>()=>{s.current&&clearTimeout(s.current)},[]),_jsxruntime.jsx.call(void 0, _material.ButtonBase,{...n,ref:i,onClick:p=>{s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{!o&&t&&t(p)},e)},disabled:o,children:r})});po.displayName="DebouncedButtonBase";var xo=_react.forwardRef.call(void 0, ({debounce:e=700,onClick:t,disabled:o,...r},n)=>{let i=_react.useRef.call(void 0, null);return _react.useEffect.call(void 0, ()=>()=>{i.current&&clearTimeout(i.current)},[]),_jsxruntime.jsx.call(void 0, _material.IconButton,{...r,ref:n,onClick:a=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{!o&&t&&t(a)},e)},disabled:o,children:r.children})});xo.displayName="DebouncedIconButton";var Es=({children:e,leading:t=!1,trailing:o=!0,maxWait:r=100})=>{let[n,i]=_react.useState.call(void 0, t?e:void 0),s=_react.useRef.call(void 0, null),a=_react.useRef.call(void 0, null),p=_react.useCallback.call(void 0, ()=>{s.current&&clearTimeout(s.current)},[]);return _react.useEffect.call(void 0, ()=>{let l=Date.now(),u=()=>{i(e),a.current=l};return t&&a.current===null&&u(),s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{o&&u(),s.current=null},r),t&&a.current!==null&&l-(a.current||0)>=r&&u(),()=>{s.current&&clearTimeout(s.current)}},[e,t,o,r,p]),_jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:n})};function ke(e,t){typeof e=="function"?e(t):typeof e=="object"&&e!==null&&"current"in e&&(e.current=t)}var wo=_react.forwardRef.call(void 0, (e,t)=>{let{onChange:o,children:r,multiple:n,accept:i,name:s,form:a,resetRef:p,disabled:l,capture:u,inputProps:c}=e,y=_react.useRef.call(void 0, null),[d,m]=_react.useState.call(void 0, 0),x=_react.useCallback.call(void 0, ()=>{l||m(B=>B+1)},[l]);_react.useEffect.call(void 0, ()=>{d!==0&&_optionalChain([y, 'access', _2 => _2.current, 'optionalAccess', _3 => _3.click, 'call', _4 => _4()])},[d]);let b=B=>{let g=_optionalChain([B, 'access', _5 => _5.currentTarget, 'optionalAccess', _6 => _6.files]);if(g)if(n)o(Array.from(g));else{let C=g[0];C&&o(C)}},S=_react.useCallback.call(void 0, ()=>{y.current&&(y.current.value="")},[]);return _react.useEffect.call(void 0, ()=>{if(p)return ke(p,S),()=>{ke(p,()=>{})}},[p,S]),_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[r({onClick:x}),_jsxruntime.jsx.call(void 0, "input",{style:{display:"none"},type:"file",accept:i,multiple:n,onChange:b,ref:_chunkYXXXYWHIcjs.c.call(void 0, t,y),name:s,form:a,capture:u,...c})]})});wo.displayName="FileButton";function z(e){return typeof e>"u"||e===null}function Ne(e){return!z(e)}function No(e){let{className:t,items:o,getItemKey:r,getItemSize:n,isLineBreakItem:i,breakBefore:s,breakAfter:a,children:p,lineBreakHeight:l,lineBreakGroup:u,...c}=e;return Array.isArray(o)?_jsxruntime.jsx.call(void 0, _material.Grid,{className:_clsx2.default.call(void 0, "FlexItemsContainer-root",t),container:!0,role:"grid",...c,children:Fo({items:o,isLineBreakItem:i,lineBreakGroup:u,lineBreakHeight:l,breakBefore:s,breakAfter:a,getItemKey:r,getItemSize:n,renderItem:p})}):(console.error("FlexItemsContainer: items must be an array"),null)}No.displayName="FlexItemsContainer";function Fo(e){let{items:t,getItemKey:o,getItemSize:r,isLineBreakItem:n,lineBreakHeight:i=0,lineBreakGroup:s,breakBefore:a,breakAfter:p,renderItem:l}=e,u=[],c=!0,y;return t.forEach((d,m)=>{if(_optionalChain([n, 'optionalCall', _7 => _7(d,m)])){c||(c=!0,u.push(W(m,"break-item",i)));return}if(s){let x=s(d,m);Lo(y,x)&&(y=x,c||(c=!0,u.push(W(m,"group",i))))}!c&&_optionalChain([a, 'optionalCall', _8 => _8(d,m)])&&(c=!0,u.push(W(m,"break-before",i))),c=!1,u.push(_jsxruntime.jsx.call(void 0, _material.Grid,{size:_optionalChain([r, 'optionalCall', _9 => _9(d,m)]),children:l(d,m)},o(d,m))),_optionalChain([p, 'optionalCall', _10 => _10(d,m)])&&(c=!0,u.push(W(m,"break-after",i)))}),c&&u.length>0&&u.pop(),u}function Lo(e,t){return z(e)&&z(t)?!1:e!==t}function W(e,t,o){return _jsxruntime.jsx.call(void 0, _material.Grid,{className:"FlexItemsContainer-emptyLine",size:"auto",style:{flexBasis:"100%",width:0,height:o}},`FlexItemsContainer:${t}:${e}`)}function N(e){return e?parseInt(e,10):0}function Io(e,t){if(!t||!e)return!1;let o=t.parentNode;for(;Ne(o);){if(o===e)return!0;o=o.parentNode}return!1}function Ie({target:e,parent:t,indicatorRef:o,excludeTargetBorderWidth:r=!1,displayAfterTransitionEnd:n=!1}){let i=_react.useRef.call(void 0, -1),[s,a]=_react.useState.call(void 0, !1),[p,l]=_react.useState.call(void 0, n),u=_chunkYXXXYWHIcjs.e.call(void 0, ()=>{if(!e||!t||!o.current)return;let m=e.getBoundingClientRect(),x=t.getBoundingClientRect(),b=window.getComputedStyle(e),S=window.getComputedStyle(t),B={top:N(S.borderTopWidth),left:N(S.borderLeftWidth)},g={top:N(b.borderTopWidth),bottom:N(b.borderBottomWidth),left:N(b.borderLeftWidth),right:N(b.borderRightWidth)},C={top:m.top-x.top-B.top,left:m.left-x.left-B.left,width:m.width,height:m.height};r&&(C.top+=g.top,C.left+=g.left,C.height-=g.top+g.bottom,C.width-=g.left+g.right),o.current.style.transform=`translateX(${C.left}px) translateY(${C.top}px)`,o.current.style.width=`${C.width}px`,o.current.style.height=`${C.height}px`}),c=_chunkYXXXYWHIcjs.e.call(void 0, ()=>{window.clearTimeout(i.current),o.current&&(o.current.style.transitionDuration="0ms"),u.current(),i.current=window.setTimeout(()=>{o.current&&(o.current.style.transitionDuration="")},30)}),y=_react.useRef.call(void 0, null),d=_react.useRef.call(void 0, null);return _react.useEffect.call(void 0, ()=>{if(u.current(),e)return y.current=new ResizeObserver(c.current),y.current.observe(e),t&&(d.current=new ResizeObserver(c.current),d.current.observe(t)),()=>{_optionalChain([y, 'access', _11 => _11.current, 'optionalAccess', _12 => _12.disconnect, 'call', _13 => _13()]),_optionalChain([d, 'access', _14 => _14.current, 'optionalAccess', _15 => _15.disconnect, 'call', _16 => _16()])}},[t,e,u,c]),_react.useEffect.call(void 0, ()=>{if(t){let m=x=>{Io(x.target,t)&&(c.current(),l(!1))};return t.addEventListener("transitionend",m),()=>{t.removeEventListener("transitionend",m)}}},[t,c]),_chunkYXXXYWHIcjs.j.call(void 0, ()=>{a(!0)},20,{autoInvoke:!0}),_chunkYXXXYWHIcjs.i.call(void 0, m=>{m.forEach(x=>{x.type==="attributes"&&x.attributeName==="dir"&&c.current()})},{attributes:!0,attributeFilter:["dir"]},()=>document.documentElement),{initialized:s,hidden:p}}var ie=_react.forwardRef.call(void 0, (e,t)=>{let{target:o,parent:r,transitionDuration:n=150,excludeTargetBorderWidth:i=!1,displayAfterTransitionEnd:s,sx:a,className:p,...l}=e,u=_react.useRef.call(void 0, null),{initialized:c,hidden:y}=Ie({target:o,parent:r,indicatorRef:u,excludeTargetBorderWidth:i,displayAfterTransitionEnd:s}),d=_chunkYXXXYWHIcjs.c.call(void 0, t,u);return!o||!r?null:_jsxruntime.jsx.call(void 0, _material.Box,{className:_clsx2.default.call(void 0, "FloatingIndicator-root",p),ref:d,sx:[{position:"absolute",top:0,left:0,transition:`transform ${n}ms`,opacity:c?1:0,...y?{display:"none"}:void 0},...Array.isArray(a)?a:[_nullishCoalesce(a, () => (!1))]],...l})});ie.displayName="FloatingIndicator";var Me=ie;function R(e,...t){let o=Object.fromEntries(Object.entries(e).filter(([n,i])=>i!==void 0)),r=t.reduce((n,i)=>{let s=Object.fromEntries(Object.entries(i).filter(([a,p])=>p!==void 0));return Object.assign(n,s),n},{});return{...o,...r}}function P(e,t,o){let r=_react.forwardRef.call(void 0, ({inlineFlex:n,justifyContent:i,alignItems:s,flexWrap:a,sx:p,...l},u)=>_jsxruntime.jsx.call(void 0, _material.Box,{ref:u,sx:[{display:n?"inline-flex":"flex",flexDirection:t,...R(o,{justifyContent:i,alignItems:s,flexWrap:a})},...Array.isArray(p)?p:[p]],...l}));return r.displayName=e,r}var Uo=P("FlexColumn.Start","column",{justifyContent:"flex-start"}),_o=P("FlexColumn.End","column",{justifyContent:"flex-end"}),Qo=P("FlexColumn.Center","column",{justifyContent:"center"}),Vo=P("FlexColumn.Around","column",{justifyContent:"space-around"}),Xo=P("FlexColumn.Between","column",{justifyContent:"space-between"}),Yo=P("FlexColumn.Evenly","column",{justifyContent:"space-evenly"}),He=_react.forwardRef.call(void 0, ({center:e,inlineFlex:t,justifyContent:o,alignItems:r,flexWrap:n,sx:i,...s},a)=>_jsxruntime.jsx.call(void 0, _material.Box,{ref:a,sx:[{display:t?"inline-flex":"flex",flexDirection:"column",...R(e?{justifyContent:"center",alignItems:"center"}:{},{justifyContent:o,alignItems:r,flexWrap:n})},...Array.isArray(i)?i:[i]],...s}));He.displayName="FlexColumnBase";var T=He;T.displayName="FlexColumn";T.Start=Uo;T.End=_o;T.Center=Qo;T.Between=Xo;T.Evenly=Yo;T.Around=Vo;var er=P("FlexRow.Start","row",{justifyContent:"flex-start"}),tr=P("FlexRow.End","row",{justifyContent:"flex-end"}),or=P("FlexRow.Around","row",{justifyContent:"space-around"}),rr=P("FlexRow.Between","row",{justifyContent:"space-between"}),nr=P("FlexRow.Evenly","row",{justifyContent:"space-evenly"}),ir=P("FlexRow.Center","row",{justifyContent:"center"}),De=_react.forwardRef.call(void 0, ({center:e,inlineFlex:t=!1,justifyContent:o,alignItems:r,flexWrap:n,sx:i,...s},a)=>{let p=Array.isArray(i)?i.filter(Boolean):i?[i]:[],l={display:t?"inline-flex":"flex",flexDirection:"row",...R(e?{justifyContent:"center",alignItems:"center"}:{},{justifyContent:o,alignItems:r,flexWrap:n})};return _jsxruntime.jsx.call(void 0, _material.Box,{ref:a,sx:p.length>0?[l,...p]:l,...s})});De.displayName="FlexRowBase";var w=De;w.displayName="FlexRow";w.Start=er;w.End=tr;w.Center=ir;w.Between=rr;w.Around=or;w.Evenly=nr;function ha(e){return null}var $=_react.forwardRef.call(void 0, (e,t)=>{let{sx:o,className:r,color:n="#000",bgcolor:i="#ff0",children:s,...a}=e;return _jsxruntime.jsx.call(void 0, _material.Box,{className:_clsx2.default.call(void 0, "Mark-root",r),component:"mark",ref:t,sx:[{display:"inline-block",color:n,bgcolor:i},...Array.isArray(o)?o:[_nullishCoalesce(o, () => (!1))]],...a,children:s})});$.displayName="Mark";function Oe(e){return e.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")}function ze(e,t,o){if(!t||t.length===0)return[{chunk:e,highlighted:!1}];let r=_nullishCoalesce(_optionalChain([o, 'optionalAccess', _17 => _17.ignorecase]), () => (!0)),n=Array.isArray(t)?t.map(Oe):Oe(t);if(!(Array.isArray(n)?n.filter(l=>l.trim().length>0).length>0:n.trim()!==""))return[{chunk:e,highlighted:!1}];let s=typeof n=="string"?n.trim():n.filter(l=>l.trim().length!==0).map(l=>l.trim()).sort((l,u)=>u.length-l.length).join("|"),a=new RegExp(`(${s})`,r?"gi":"g");return e.split(a).map(l=>({chunk:l,highlighted:a.test(l)})).filter(({chunk:l})=>l)}var We=_react.forwardRef.call(void 0, (e,t)=>{let{sx:o,className:r,style:n,variant:i,highlight:s,color:a,highlightSx:p,ignorecase:l=!1,includeDataAttribute:u=!1,children:c,...y}=e,d=_react.useMemo.call(void 0, ()=>ze(c,s,{ignorecase:l}),[c,s,l]);return _jsxruntime.jsx.call(void 0, _material.Typography,{ref:t,variant:i,className:_clsx2.default.call(void 0, "Highlight-root",r),sx:o,style:n,...y,children:d.map(({chunk:m,highlighted:x},b)=>x?u?_jsxruntime.jsx.call(void 0, $,{color:a,sx:p,"data-highlight":m,children:m},b):_jsxruntime.jsx.call(void 0, $,{color:a,sx:p,children:m},b):_jsxruntime.jsx.call(void 0, "span",{children:m},b))})});We.displayName="Highlight";function Wa(e){let{sx:t,className:o,text:r,maxLen:n,currentLen:i=0}=e,s=i>n;return r?_jsxruntime.jsxs.call(void 0, _material.Box,{className:_clsx2.default.call(void 0, "LengthLimitHelperText-root",o),component:"span",sx:[{display:"flex",justifyContent:"space-between",alignItems:"center",color:s?"error.main":"text.secondary"},...Array.isArray(t)?t:[_nullishCoalesce(t, () => (!1))]],children:[typeof r=="string"?_jsxruntime.jsx.call(void 0, "span",{children:r}):r,_jsxruntime.jsxs.call(void 0, _material.Box,{component:"span",sx:{ml:2,whiteSpace:"nowrap"},children:[i," / ",n]})]}):_jsxruntime.jsxs.call(void 0, _material.Box,{className:_clsx2.default.call(void 0, "LengthLimitHelperText-root",o),component:"span",sx:[{display:"flex",justifyContent:"flex-end",alignItems:"center",color:s?"error.main":"text.secondary",whiteSpace:"nowrap"},...Array.isArray(t)?t:[_nullishCoalesce(t, () => (!1))]],children:[i," / ",n]})}function Ga(e){let{children:t}=e;return!_material.useMediaQuery.call(void 0, r=>r.breakpoints.up("lg"))||!t?null:_jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:t})}function Va(e){let{children:t}=e;return!_material.useMediaQuery.call(void 0, r=>r.breakpoints.down("lg"))||!t?null:_jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:t})}function Ja(e){let{children:t}=e;return!_material.useMediaQuery.call(void 0, r=>r.breakpoints.up("md"))||!t?null:_jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:t})}function rl(e){let{className:t,sx:o,squared:r,outlined:n,children:i,...s}=e;return _jsxruntime.jsx.call(void 0, _material.Paper,{...s,className:_clsx2.default.call(void 0, "Paper-root",t),sx:[{borderRadius:r?0:1,border:n?"1px solid #ddd":"none"},...Array.isArray(o)?o:[_nullishCoalesce(o, () => (!1))]],children:i})}var le=_react.forwardRef.call(void 0, (e,t)=>{let{noPadding:o=!1,className:r,sx:n,children:i,...s}=e;return _jsxruntime.jsx.call(void 0, _material.Box,{...s,className:_clsx.clsx.call(void 0, "PortletContent-root",r,{"PortletContent-noPadding":o}),ref:t,sx:[a=>({flex:1,p:a.spacing(2,3),"&.PortletContent-noPadding":{p:0}}),...Array.isArray(n)?n:[_nullishCoalesce(n, () => (!1))]],children:i})});le.displayName="PortletContent";var pe=_react.forwardRef.call(void 0, (e,t)=>{let{noDivider:o,sx:r,className:n,children:i,...s}=e;return _jsxruntime.jsx.call(void 0, _material.Box,{...s,className:_clsx.clsx.call(void 0, "PortletFooter-root",n,{"PortletFooter-noDivider":o}),ref:t,sx:[a=>({p:a.spacing(1,2),borderTop:"1px solid #E0E4EE",borderBottomLeftRadius:"2px",borderBottomRightRadius:"2px","&.PortletFooter-noDivider":{borderTop:"none"}}),...Array.isArray(r)?r:[_nullishCoalesce(r, () => (!1))]],children:i})});pe.displayName="PortletFooter";var ue=_react.forwardRef.call(void 0, (e,t)=>{let{children:o,noDivider:r,className:n,noPadding:i=!1,sx:s,...a}=e;return _jsxruntime.jsx.call(void 0, _material.Box,{...a,className:_clsx.clsx.call(void 0, "PortletHeader-root",n,{"PortletHeader-noPadding":i,"PortletHeader-noDivider":r}),ref:t,sx:[p=>({position:"relative",display:"flex",justifyContent:"space-between",alignItems:"center",borderBottom:"1px solid #E0E4EE",borderTopLeftRadius:2,borderTopRightRadius:2,height:56,minHeight:56,p:p.spacing(.5,1,.5,3),"&.PortletHeader-noPadding":{p:p.spacing(.5,0,.5,0)},"&.PortletHeader-noDivider":{borderBottom:"none"}}),...Array.isArray(s)?s:[_nullishCoalesce(s, () => (!1))]],children:o})});ue.displayName="PortletHeader";var Kr={square:!0},j= exports.Portlet =_react.forwardRef.call(void 0, (e,t)=>{let{sx:o,className:r,children:n,...i}=e;return _jsxruntime.jsx.call(void 0, _material.Paper,{...Kr,...i,elevation:0,ref:t,component:"div",className:r?`Portlet-root ${r}`:"Portlet-root",sx:[{display:"flex",flexDirection:"column",alignItems:"stretch",border:"1px solid #E0E4EE"},...Array.isArray(o)?o:[_nullishCoalesce(o, () => (!1))]],children:n})});j.displayName="Portlet";j.Content=le;j.Header=ue;j.Footer=pe;var me=_material.styled.call(void 0, (0, _material.Box))(({theme:e})=>({position:"relative",display:"inline-flex",flexDirection:"row",width:"auto",borderRadius:e.shape.borderRadius,overflow:"hidden",padding:"0.25rem",backgroundColor:"#f1f3f5",'&[data-vertical="true"]':{display:"flex",flexDirection:"column",width:"max-content"},'&[data-fullwidth="true"]':{display:"flex",width:"auto"},'&[data-size="small"]':{padding:"0.15rem"},'&[data-size="large"]':{padding:"0.35rem"}}));me.displayName="SegmentedControlRoot";var ce=_material.styled.call(void 0, _material.Box,{shouldForwardProp:e=>e!=="transitionDuration"&&e!=="transitionTimingFunction"})(({theme:e,transitionDuration:t=150,transitionTimingFunction:o="ease"})=>({position:"relative",flex:1,zIndex:2,transition:`border-color ${t}ms ${o}`,'.SegmentedControl-root[data-with-item-border="true"] &::before':{content:'""',position:"absolute",top:0,bottom:0,insetInlineStart:0,backgroundColor:e.palette.divider,width:"1px",transition:`background-color ${t}ms ${o}`},'.SegmentedControl-root[data-with-item-border="true"] &:first-of-type::before':{backgroundColor:"transparent"},'.SegmentedControl-root[data-vertical="true"] &::before':{top:0,insetInline:0,bottom:"auto",height:"1px",width:"auto"}}));ce.displayName="SegmentedControlItem";var de=_material.styled.call(void 0, (0, _material.Box))(()=>({height:0,width:0,position:"absolute",overflow:"hidden",whiteSpace:"nowrap",opacity:0}));de.displayName="SegmentedControlInput";function Ke(e,t){if(!t)return;let o=["primary","secondary","info","warning","error","success"],r=["textPrimary","textSecondary","textDisabled"];if(o.includes(t))return e.palette[t].main;if(r.includes(t)){let n=t.substring(4).toLowerCase();return e.palette.text[n]}return t}var fe=_material.styled.call(void 0, _material.Box,{shouldForwardProp:e=>e!=="transitionDuration"&&e!=="transitionTimingFunction"&&e!=="primaryColor"&&e!=="secondaryColor"})(({theme:e,transitionDuration:t=150,transitionTimingFunction:o="ease",primaryColor:r,secondaryColor:n})=>{let i=_nullishCoalesce(Ke(e,r), () => (e.palette.primary.main)),s=_nullishCoalesce(Ke(e,n), () => (e.palette.text.secondary));return{fontWeight:500,display:"block",textAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",userSelect:"none",borderRadius:1,padding:"0.3125rem 0.625rem",fontSize:e.typography.body1.fontSize,cursor:"pointer",color:s,transition:`color ${t}ms ${o}`,".SegmentedControl-item.Mui-active > &&":{color:i,"&::before":{content:'""',position:"absolute",inset:0,zIndex:0}},".SegmentedControl-item.Mui-readOnly > &&":{cursor:"default"},".SegmentedControl-item.Mui-disabled > &&":{cursor:"not-allowed",color:e.palette.text.disabled,opacity:.7},'.SegmentedControl-root[data-size="small"] &':{padding:"0.2rem 0.4rem",fontSize:"0.7rem"},'.SegmentedControl-root[data-size="large"] &':{padding:"0.4rem 0.8rem",fontSize:e.typography.subtitle1.fontSize}}});fe.displayName="SegmentedControlLabel";function ye(e){return e?!0:void 0}var _r=_react.forwardRef.call(void 0, (e,t)=>{let{sx:o,className:r,style:n,disabled:i,data:s,value:a,defaultValue:p,onChange:l,fullWidth:u,withItemBorder:c,primaryColor:y="primary",secondaryColor:d="textSecondary",transitionDuration:m,transitionTimingFunction:x,vertical:b,readOnly:S,size:B="medium",indicator:g}=e,C=s.map(f=>typeof f=="string"?{label:f,value:f}:f),[F,L]=_react.useState.call(void 0, null),[v,Ve]=_react.useState.call(void 0, {}),Xe=f=>Je=>{v[f]=Je,Ve(v)},[I,Ye]=_chunkYXXXYWHIcjs.l.call(void 0, {value:a,defaultValue:p,finalValue:Array.isArray(s)?_nullishCoalesce(_nullishCoalesce(_optionalChain([C, 'access', _18 => _18.find, 'call', _19 => _19(f=>!f.disabled), 'optionalAccess', _20 => _20.value]), () => (_optionalChain([C, 'access', _21 => _21[0], 'optionalAccess', _22 => _22.value]))), () => (void 0)):void 0,onChange:l}),V=_chunkYXXXYWHIcjs.k.call(void 0, ),qe=_chunkYXXXYWHIcjs.c.call(void 0, t,L);return s.length===0?null:_jsxruntime.jsxs.call(void 0, me,{className:_clsx2.default.call(void 0, "SegmentedControl-root",r,{x_readOnly:S,x_fullWidth:u,"Mui-disabled":i,"Mui-readOnly":S}),sx:o,style:n,ref:qe,role:"radiogroup","data-vertical":ye(b),"data-fullwidth":ye(u),"data-with-item-border":ye(c),"data-size":B,children:[typeof I=="string"&&_jsxruntime.jsx.call(void 0, Me,{className:"SegmentedControl-indicator",component:"span",target:v[I],parent:F,transitionDuration:m,sx:{display:"block",zIndex:1,borderRadius:1,bgcolor:"#fff",boxShadow:"rgba(0, 0, 0, 0.05) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px 0px"},children:g}),C.map(f=>_jsxruntime.jsxs.call(void 0, ce,{className:_clsx2.default.call(void 0, "SegmentedControl-item",{"Mui-active":I===f.value,"Mui-disabled":f.disabled||i,"Mui-readOnly":S}),transitionDuration:m,transitionTimingFunction:x,children:[_jsxruntime.jsx.call(void 0, de,{component:"input",className:"SegmentedControl-input",type:"radio",name:V,value:f.value,checked:I===f.value,id:`${V}-${f.value}`,onChange:()=>{!S&&!f.disabled&&!i&&Ye(f.value)}},`${f.value}-input`),_jsxruntime.jsx.call(void 0, fe,{component:"label",className:"SegmentedControl-label",ref:Xe(f.value),htmlFor:`${V}-${f.value}`,primaryColor:y,secondaryColor:d,transitionDuration:m,transitionTimingFunction:x,children:_jsxruntime.jsx.call(void 0, _material.Box,{component:"span",sx:{position:"relative",zIndex:2},children:f.label})},`${f.value}-label`)]},f.value))]})});_r.displayName="SegmentedControl";var Qr=({when:e,fallback:t,children:o})=>e?o:t;Qr.displayName="Show";function Kl(e){let{children:t}=e;return!_material.useMediaQuery.call(void 0, r=>r.breakpoints.down("md"))||!t?null:_jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:t})}function _l(e){let{children:t}=e;return!_material.useMediaQuery.call(void 0, r=>r.breakpoints.up("sm"))||!t?null:_jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:t})}var on=_react.forwardRef.call(void 0, ({width:e,height:t,minWidth:o,minHeight:r,sx:n,...i},s)=>_jsxruntime.jsx.call(void 0, _material.Box,{ref:s,sx:[{width:e,height:t,minWidth:_nullishCoalesce(o, () => (e)),minHeight:_nullishCoalesce(r, () => (t))},...Array.isArray(n)?n:[n]],...i}));on.displayName="Space";var ln=_react.forwardRef.call(void 0, (e,t)=>{let{sx:o,className:r,style:n,id:i,initialState:s,maxHeight:a=100,hideLabel:p,showLabel:l,expanded:u,onExpandedChange:c,controlRef:y,children:d,transitionDuration:m=100,...x}=e,b=_chunkYXXXYWHIcjs.k.call(void 0, i),S=`${b}-region`,[B,g]=_chunkYXXXYWHIcjs.l.call(void 0, {value:u,defaultValue:s,finalValue:!1,onChange:c}),{ref:C,height:F}=_chunkYXXXYWHIcjs.n.call(void 0, ),L=B?p:l,v=L!==null&&a<F;return _jsxruntime.jsxs.call(void 0, pn,{className:_clsx2.default.call(void 0, "Spoiler-root",r),sx:[o,...Array.isArray(o)?o:[_nullishCoalesce(o, () => (!1))]],style:n,id:b,ref:t,"data-has-spoiler":v,...x,children:[v&&_jsxruntime.jsx.call(void 0, un,{component:"button",ref:y,onClick:()=>{g(!B)},"aria-expanded":B,"aria-controls":S,children:L}),_jsxruntime.jsx.call(void 0, mn,{"data-reduce-motion":!0,role:"region",id:S,transitionDuration:m,style:{maxHeight:B?_nullishCoalesce(F, () => (void 0)):a},children:_jsxruntime.jsx.call(void 0, "div",{ref:C,children:d})})]})});ln.displayName="Spoiler";var pn=_material.styled.call(void 0, (0, _material.Box))(()=>({position:"relative",'&:where([data-has-spoiler="true"])':{marginBottom:24}})),un=_material.styled.call(void 0, (0, _material.Link))(()=>({position:"absolute",insetInlineStart:0,top:"100%",height:32,textDecoration:"none","&:hover":{textDecoration:"underline"}})),mn=_material.styled.call(void 0, _material.Box,{shouldForwardProp:e=>e!=="transitionDuration"})(({transitionDuration:e=200})=>({display:"flex",flexDirection:"column",overflow:"hidden",transition:`max-height ${e}ms ease`}));function h(e,t,o){let r=_react.forwardRef.call(void 0, ({alignItems:n,justifyContent:i,...s},a)=>{let p=R(o,{alignItems:n,justifyContent:i});return _jsxruntime.jsx.call(void 0, _material.Stack,{direction:t,...s,ref:a,sx:[p,...Array.isArray(s.sx)?s.sx:[_nullishCoalesce(s.sx, () => (!1))]]})});return r.displayName=e,r}var bn=h("StackColumn.Center","column",{justifyContent:"center"}),gn=h("StackColumn.Start","column",{justifyContent:"flex-start"}),Pn=h("StackColumn.End","column",{justifyContent:"flex-end"}),hn=h("StackColumn.Between","column",{justifyContent:"space-between"}),Sn=h("StackColumn.Around","column",{justifyContent:"space-around"}),Bn=h("StackColumn.Evenly","column",{justifyContent:"space-evenly"}),A= exports.StackColumn =_react.forwardRef.call(void 0, ({center:e=!1,alignItems:t,justifyContent:o,children:r,...n},i)=>_jsxruntime.jsx.call(void 0, _material.Stack,{direction:"column",...n,ref:i,sx:[{alignItems:e?"center":t,justifyContent:e?"center":o},...Array.isArray(n.sx)?n.sx:[_nullishCoalesce(n.sx, () => (!1))]],children:r}));A.displayName="StackColumn";A.Start=gn;A.End=Pn;A.Between=hn;A.Around=Sn;A.Center=bn;A.Evenly=Bn;var An=h("StackRow.Center","row",{justifyContent:"center"}),En=h("StackRow.Start","row",{justifyContent:"flex-start"}),vn=h("StackRow.End","row",{justifyContent:"flex-end"}),kn=h("StackRow.Between","row",{justifyContent:"space-between"}),Nn=h("StackRow.Around","row",{justifyContent:"space-around"}),Fn=h("StackRow.Evenly","row",{justifyContent:"space-evenly"}),E= exports.StackRow =_react.forwardRef.call(void 0, ({center:e=!1,alignItems:t,justifyContent:o,children:r,...n},i)=>_jsxruntime.jsx.call(void 0, _material.Stack,{direction:"row",...n,ref:i,sx:[{alignItems:e?"center":t,justifyContent:e?"center":o},...Array.isArray(n.sx)?n.sx:[_nullishCoalesce(n.sx, () => (!1))]],children:r}));E.displayName="StackRow";E.Start=En;E.End=vn;E.Between=kn;E.Around=Nn;E.Center=An;E.Evenly=Fn;var be=_react.forwardRef.call(void 0, ({fullWidth:e,top:t,sx:o,...r},n)=>_jsxruntime.jsx.call(void 0, _material.Box,{ref:n,sx:[{position:"absolute",top:t,left:"50%",transform:"translate(-50%, -50%)",...e&&{width:"100%"}},...Array.isArray(o)?o:[o]],...r}));be.displayName="TopAbsolute.Center";var ge=_react.forwardRef.call(void 0, ({fullWidth:e,left:t=0,top:o=0,sx:r,...n},i)=>_jsxruntime.jsx.call(void 0, _material.Box,{ref:i,sx:[{position:"absolute",left:t,top:o,...e&&{width:"100%"}},...Array.isArray(r)?r:[r]],...n}));ge.displayName="TopAbsolute.Left";var Pe=_react.forwardRef.call(void 0, ({fullWidth:e,right:t=0,top:o=0,sx:r,...n},i)=>_jsxruntime.jsx.call(void 0, _material.Box,{ref:i,sx:[{position:"absolute",right:t,top:o,...e&&{width:"100%"}},...Array.isArray(r)?r:[r]],...n}));Pe.displayName="TopAbsolute.Right";var Qe=_react.forwardRef.call(void 0, ({top:e=0,left:t=0,right:o=0,sx:r,...n},i)=>_jsxruntime.jsx.call(void 0, _material.Box,{ref:i,sx:[{position:"absolute",top:e,left:t,right:o},...Array.isArray(r)?r:[r]],...n}));Qe.displayName="TopAbsoluteBase";var Q=Qe;Q.displayName="TopAbsolute";Q.Left=ge;Q.Right=Pe;Q.Center=be;function Kp(e){let{children:t}=e;return!_material.useMediaQuery.call(void 0, r=>r.breakpoints.down("sm"))||!t?null:_jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:t})}var Up=e=>!e.shiftKey&&e.key==="Tab",_p= exports.isEnterOrTabKeyEvent =e=>e.key==="Enter"||!e.shiftKey&&e.key==="Tab",Qp= exports.isEnterKeyEvent =e=>e.key==="Enter",Vp= exports.isEscapeKeyEvent =e=>e.key==="Escape",Xp= exports.isTouchEvent =e=>!!_optionalChain([e, 'access', _23 => _23.touches, 'optionalAccess', _24 => _24.length]),Yp= exports.isMouseEvent =e=>!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0)),qp= exports.blurEventTarget =(e,t=-1)=>{let o=e.target;o&&typeof o.blur=="function"&&(t>=0?setTimeout(()=>{o.blur()},t):o.blur())};function Xn(...e){let t=[];return e.forEach(o=>{o&&(Array.isArray(o)?o.forEach(r=>{r&&t.push(r)}):t.push(o))}),t}function Zp(...e){let t=Xn(...e);return t.length>0?t[0]:void 0}var eu=(e="height",t=100)=>({"& .MuiDialog-scrollPaper > .MuiDialog-paper":{[e]:`calc(${t}% - 64px)`}});exports.BottomAbsolute = D; exports.Center = dt; exports.CenterAbsolute = O; exports.Closables = _chunkYXXXYWHIcjs.p; exports.CooldownButton = Pt; exports.CooldownButtonBase = At; exports.CooldownIconButton = It; exports.CopyButtonWrapper = Ki; exports.CustomTableBody = Qi; exports.DebouncedButton = ro; exports.DebouncedButtonBase = po; exports.DebouncedIconButton = xo; exports.DebouncedRender = Es; exports.FileButton = wo; exports.FlexColumn = T; exports.FlexItemsContainer = No; exports.FlexRow = w; exports.FloatingIndicator = ie; exports.Hide = ha; exports.Highlight = We; exports.LengthLimitHelperText = Wa; exports.LgOrUp = Ga; exports.Mark = $; exports.MdOrDown = Va; exports.MdOrUp = Ja; exports.Paper = rl; exports.Portlet = j; exports.SegmentedControl = _r; exports.Show = Qr; exports.SmOrDown = Kl; exports.SmOrUp = _l; exports.Space = on; exports.Spoiler = ln; exports.StackColumn = A; exports.StackRow = E; exports.TopAbsolute = Q; exports.XsOrDown = Kp; exports.blurEventTarget = qp; exports.firstSx = Zp; exports.flatSx = Xn; exports.getAbsolutePosition = _chunkYXXXYWHIcjs.v; exports.isBrowser = _chunkYXXXYWHIcjs.w; exports.isEnterKeyEvent = Qp; exports.isEnterOrTabKeyEvent = _p; exports.isEscapeKeyEvent = Vp; exports.isMouseEvent = Yp; exports.isNavigator = _chunkYXXXYWHIcjs.x; exports.isTabKeyEvent = Up; exports.isTouchDevice = _chunkYXXXYWHIcjs.t; exports.isTouchEvent = Xp; exports.isWebSerialSupportBrowser = _chunkYXXXYWHIcjs.s; exports.matchesOrClosest = _chunkYXXXYWHIcjs.u; exports.noop = _chunkYXXXYWHIcjs.y; exports.requestFocusSelector = _chunkYXXXYWHIcjs.q; exports.requestSelector = _chunkYXXXYWHIcjs.r; exports.sxDialogHeight = eu;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkQNR3IXPAcjs = require('./chunk-QNR3IXPA.cjs');require('./chunk-M4G6J7DP.cjs');var _material = require('@mui/material');var _jsxruntime = require('react/jsx-runtime');function x(e){let t=(o=>{let{sx:r,ref:n,...s}=o,i;e.supportsFullWidth&&(i=s.fullWidth,delete s.fullWidth);let a={};for(let u of e.axes)a[u.cssProp]=_nullishCoalesce(s[u.cssProp], () => (u.defaultValue)),delete s[u.cssProp];return _jsxruntime.jsx.call(void 0, _material.Box,{ref:n,sx:[{position:"absolute",...a,...e.fixedStyle,...i?{width:"100%"}:{}},...Array.isArray(r)?r:[r]],...s})});return t.displayName=e.displayName,t}var ge=x({displayName:"BottomAbsolute.Center",axes:[{cssProp:"bottom",defaultValue:0}],fixedStyle:{left:"50%",transform:"translate(-50%, -50%)"},supportsFullWidth:!0});var he=x({displayName:"BottomAbsolute.Left",axes:[{cssProp:"left",defaultValue:0},{cssProp:"bottom",defaultValue:0}],supportsFullWidth:!0});var Se=x({displayName:"BottomAbsolute.Right",axes:[{cssProp:"right",defaultValue:0},{cssProp:"bottom",defaultValue:0}],supportsFullWidth:!0});var nt=x({displayName:"BottomAbsolute",axes:[{cssProp:"bottom",defaultValue:0},{cssProp:"left",defaultValue:0},{cssProp:"right",defaultValue:0}],supportsFullWidth:!1}),Q= exports.BottomAbsolute =nt;Q.Left=he;Q.Right=Se;Q.Center=ge;var it=({vertical:e=!1,sx:t,ref:o,...r})=>_jsxruntime.jsx.call(void 0, _material.Box,{ref:o,sx:[{display:"flex",flexDirection:e?"column":"row",alignItems:"center",justifyContent:"center"},...Array.isArray(t)?t:[t]],...r});it.displayName="Center";var pt=({cooldown:e=1e3,onClick:t,disabled:o,ref:r,...n})=>{let{isCooldown:s,trigger:i}=_chunkQNR3IXPAcjs.a.call(void 0, t,e);return _jsxruntime.jsx.call(void 0, _material.Button,{...n,ref:r,onClick:i,disabled:o||s,children:n.children})};pt.displayName="CooldownButton";var ct=({cooldown:e=1e3,onClick:t,disabled:o,ref:r,...n})=>{let{isCooldown:s,trigger:i}=_chunkQNR3IXPAcjs.a.call(void 0, t,e);return _jsxruntime.jsx.call(void 0, _material.ButtonBase,{...n,ref:r,onClick:i,disabled:o||s,children:n.children})};ct.displayName="CooldownButtonBase";var xt=({cooldown:e=700,onClick:t,disabled:o,ref:r,...n})=>{let{isCooldown:s,trigger:i}=_chunkQNR3IXPAcjs.a.call(void 0, t,e);return _jsxruntime.jsx.call(void 0, _material.IconButton,{...n,ref:r,onClick:i,disabled:o||s,children:n.children})};xt.displayName="CooldownIconButton";function Pn(e){let{children:t,onCopySuccess:o,value:r,timeout:n=1e3}=e,s=_chunkQNR3IXPAcjs.b.call(void 0, {timeout:n});return _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:t({copy:()=>{let a=typeof r=="function"?r():r;typeof a=="string"&&a.length>0&&s.copy(a).then(u=>{u&&_optionalChain([o, 'optionalCall', _2 => _2(a)])})},copied:s.copied})})}var _clsx = require('clsx'); var _clsx2 = _interopRequireDefault(_clsx);function Rn(e){let{sx:t,className:o,loading:r,stripe:n,...s}=e;return _jsxruntime.jsx.call(void 0, _material.TableBody,{className:_clsx2.default.call(void 0, "CustomTableBody-root",o,{"CustomTableBody-stripe":!!n,"CustomTableBody-loading":!!r}),sx:[{"&.CustomTableBody-loading":{opacity:.5},"&.CustomTableBody-stripe":{"& .MuiTableRow-root:nth-of-type(even)":{backgroundColor:"action.hover"}}},...Array.isArray(t)?t:[_nullishCoalesce(t, () => (!1))]],...s})}var Be=x({displayName:"CenterAbsolute.Center",axes:[],fixedStyle:{top:"50%",left:"50%",transform:"translate(-50%, -50%)"},supportsFullWidth:!0});var Re=x({displayName:"CenterAbsolute.Left",axes:[{cssProp:"left",defaultValue:0}],fixedStyle:{top:"50%",transform:"translateY(-50%)"},supportsFullWidth:!0});var Te=x({displayName:"CenterAbsolute.Right",axes:[{cssProp:"right",defaultValue:0}],fixedStyle:{top:"50%",transform:"translateY(-50%)"},supportsFullWidth:!0});var St=x({displayName:"CenterAbsolute",axes:[{cssProp:"left",defaultValue:0},{cssProp:"right",defaultValue:0}],fixedStyle:{top:"50%",transform:"translateY(-50%)"},supportsFullWidth:!1}),X= exports.CenterAbsolute =St;X.Left=Re;X.Right=Te;X.Center=Be;var Vn=({debounce:e=700,onClick:t,disabled:o,children:r,ref:n,...s})=>{let i=_chunkQNR3IXPAcjs.g.call(void 0, a=>{!o&&t&&t(a)},e);return _jsxruntime.jsx.call(void 0, _material.Button,{...s,ref:n,onClick:i,disabled:o,children:r})};var Gn=({debounce:e=700,onClick:t,disabled:o,children:r,ref:n,...s})=>{let i=_chunkQNR3IXPAcjs.g.call(void 0, a=>{!o&&t&&t(a)},e);return _jsxruntime.jsx.call(void 0, _material.ButtonBase,{...s,ref:n,onClick:i,disabled:o,children:r})};var Yn=({debounce:e=700,onClick:t,disabled:o,ref:r,...n})=>{let s=_chunkQNR3IXPAcjs.g.call(void 0, i=>{!o&&t&&t(i)},e);return _jsxruntime.jsx.call(void 0, _material.IconButton,{...n,ref:r,onClick:s,disabled:o,children:n.children})};var _react = require('react');var es=({children:e,leading:t=!1,trailing:o=!0,maxWait:r=100})=>{let[n,s]=_react.useState.call(void 0, t?e:void 0),i=_react.useRef.call(void 0, null),a=_react.useRef.call(void 0, null),u=_react.useCallback.call(void 0, ()=>{i.current&&clearTimeout(i.current)},[]);return _react.useEffect.call(void 0, ()=>{let p=Date.now(),m=()=>{s(e),a.current=p};return t&&a.current===null&&m(),i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{o&&m(),i.current=null},r),t&&a.current!==null&&p-(a.current||0)>=r&&m(),()=>{i.current&&clearTimeout(i.current)}},[e,t,o,r,u]),_jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:n})};function ke(e,t){typeof e=="function"?e(t):typeof e=="object"&&e!==null&&"current"in e&&(e.current=t)}var Dt=(e=>{let{ref:t,onChange:o,children:r,multiple:n,accept:s,name:i,form:a,resetRef:u,disabled:p,capture:m,inputProps:d}=e,y=_react.useRef.call(void 0, null),[f,l]=_react.useState.call(void 0, 0),C=_react.useCallback.call(void 0, ()=>{p||l(S=>S+1)},[p]);_react.useEffect.call(void 0, ()=>{f!==0&&_optionalChain([y, 'access', _3 => _3.current, 'optionalAccess', _4 => _4.click, 'call', _5 => _5()])},[f]);let P=S=>{let h=_optionalChain([S, 'access', _6 => _6.currentTarget, 'optionalAccess', _7 => _7.files]);if(h)if(n)o(Array.from(h));else{let g=h[0];g&&o(g)}},B=_react.useCallback.call(void 0, ()=>{y.current&&(y.current.value="")},[]);return _react.useEffect.call(void 0, ()=>{if(u)return ke(u,B),()=>{ke(u,()=>{})}},[u,B]),_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[r({onClick:C}),_jsxruntime.jsx.call(void 0, "input",{style:{display:"none"},type:"file",accept:s,multiple:n,onChange:P,ref:_chunkQNR3IXPAcjs.i.call(void 0, t,y),name:i,form:a,capture:m,...d})]})});Dt.displayName="FileButton";function O(e){return typeof e>"u"||e===null}function Ne(e){return!O(e)}function jt(e){let{className:t,items:o,getItemKey:r,getItemSize:n,isLineBreakItem:s,breakBefore:i,breakAfter:a,children:u,lineBreakHeight:p,lineBreakGroup:m,...d}=e;return Array.isArray(o)?_jsxruntime.jsx.call(void 0, _material.Grid,{className:_clsx2.default.call(void 0, "FlexItemsContainer-root",t),container:!0,role:"grid",...d,children:zt({items:o,isLineBreakItem:s,lineBreakGroup:m,lineBreakHeight:p,breakBefore:i,breakAfter:a,getItemKey:r,getItemSize:n,renderItem:u})}):(console.error("FlexItemsContainer: items must be an array"),null)}jt.displayName="FlexItemsContainer";function zt(e){let{items:t,getItemKey:o,getItemSize:r,isLineBreakItem:n,lineBreakHeight:s=0,lineBreakGroup:i,breakBefore:a,breakAfter:u,renderItem:p}=e,m=[],d=!0,y;return t.forEach((f,l)=>{if(_optionalChain([n, 'optionalCall', _8 => _8(f,l)])){d||(d=!0,m.push(V(l,"break-item",s)));return}if(i){let C=i(f,l);Kt(y,C)&&(y=C,d||(d=!0,m.push(V(l,"group",s))))}!d&&_optionalChain([a, 'optionalCall', _9 => _9(f,l)])&&(d=!0,m.push(V(l,"break-before",s))),d=!1,m.push(_jsxruntime.jsx.call(void 0, _material.Grid,{size:_optionalChain([r, 'optionalCall', _10 => _10(f,l)]),children:p(f,l)},o(f,l))),_optionalChain([u, 'optionalCall', _11 => _11(f,l)])&&(d=!0,m.push(V(l,"break-after",s)))}),d&&m.length>0&&m.pop(),m}function Kt(e,t){return O(e)&&O(t)?!1:e!==t}function V(e,t,o){return _jsxruntime.jsx.call(void 0, _material.Grid,{className:"FlexItemsContainer-emptyLine",size:"auto",style:{flexBasis:"100%",width:0,height:o}},`FlexItemsContainer:${t}:${e}`)}function A(e){return e?parseInt(e,10):0}function $t(e,t){if(!t||!e)return!1;let o=t.parentNode;for(;Ne(o);){if(o===e)return!0;o=o.parentNode}return!1}function Ie({target:e,parent:t,indicatorRef:o,excludeTargetBorderWidth:r=!1,displayAfterTransitionEnd:n=!1}){let s=_react.useRef.call(void 0, -1),[i,a]=_react.useState.call(void 0, !1),[u,p]=_react.useState.call(void 0, n),m=_chunkQNR3IXPAcjs.f.call(void 0, ()=>{if(!e||!t||!o.current)return;let l=e.getBoundingClientRect(),C=t.getBoundingClientRect(),P=window.getComputedStyle(e),B=window.getComputedStyle(t),S={top:A(B.borderTopWidth),left:A(B.borderLeftWidth)},h={top:A(P.borderTopWidth),bottom:A(P.borderBottomWidth),left:A(P.borderLeftWidth),right:A(P.borderRightWidth)},g={top:l.top-C.top-S.top,left:l.left-C.left-S.left,width:l.width,height:l.height};r&&(g.top+=h.top,g.left+=h.left,g.height-=h.top+h.bottom,g.width-=h.left+h.right),o.current.style.transform=`translateX(${g.left}px) translateY(${g.top}px)`,o.current.style.width=`${g.width}px`,o.current.style.height=`${g.height}px`}),d=_chunkQNR3IXPAcjs.f.call(void 0, ()=>{window.clearTimeout(s.current),o.current&&(o.current.style.transitionDuration="0ms"),m.current(),s.current=window.setTimeout(()=>{o.current&&(o.current.style.transitionDuration="")},30)}),y=_react.useRef.call(void 0, null),f=_react.useRef.call(void 0, null);return _react.useEffect.call(void 0, ()=>{if(m.current(),e)return y.current=new ResizeObserver(d.current),y.current.observe(e),t&&(f.current=new ResizeObserver(d.current),f.current.observe(t)),()=>{_optionalChain([y, 'access', _12 => _12.current, 'optionalAccess', _13 => _13.disconnect, 'call', _14 => _14()]),_optionalChain([f, 'access', _15 => _15.current, 'optionalAccess', _16 => _16.disconnect, 'call', _17 => _17()])}},[t,e,m,d]),_react.useEffect.call(void 0, ()=>{if(t){let l=C=>{$t(C.target,t)&&(d.current(),p(!1))};return t.addEventListener("transitionend",l),()=>{t.removeEventListener("transitionend",l)}}},[t,d]),_chunkQNR3IXPAcjs.n.call(void 0, ()=>{a(!0)},20,{autoInvoke:!0}),_chunkQNR3IXPAcjs.m.call(void 0, l=>{l.forEach(C=>{C.type==="attributes"&&C.attributeName==="dir"&&d.current()})},{attributes:!0,attributeFilter:["dir"]},()=>document.documentElement),{initialized:i,hidden:u}}var Le=e=>{let{target:t,parent:o,transitionDuration:r=150,excludeTargetBorderWidth:n=!1,displayAfterTransitionEnd:s,sx:i,className:a,ref:u,...p}=e,m=_react.useRef.call(void 0, null),{initialized:d,hidden:y}=Ie({target:t,parent:o,indicatorRef:m,excludeTargetBorderWidth:n,displayAfterTransitionEnd:s}),f=_chunkQNR3IXPAcjs.i.call(void 0, u,m);return!t||!o?null:_jsxruntime.jsx.call(void 0, _material.Box,{className:_clsx2.default.call(void 0, "FloatingIndicator-root",a),ref:f,sx:[{position:"absolute",top:0,left:0,transition:`transform ${r}ms`,opacity:d?1:0,...y?{display:"none"}:void 0},...Array.isArray(i)?i:[_nullishCoalesce(i, () => (!1))]],...p})};var Me=Le;function Z(e,...t){let o=Object.fromEntries(Object.entries(e).filter(([n,s])=>s!==void 0)),r=t.reduce((n,s)=>{let i=Object.fromEntries(Object.entries(s).filter(([a,u])=>u!==void 0));return Object.assign(n,i),n},{});return{...o,...r}}function c(e){let t=_nullishCoalesce(e.defaultProps, () => ({})),o=(r=>{let{center:n,alignItems:s,justifyContent:i,flexWrap:a,inlineFlex:u,sx:p,ref:m,...d}=r,y=!!(e.supportsCenterProp&&n),f={alignItems:"center",justifyContent:"center"},l;e.base==="stack"?l=y?f:Z(t,{alignItems:s,justifyContent:i}):l=Z(y?f:t,{alignItems:s,justifyContent:i,flexWrap:a});let C=Array.isArray(p)?p:[p];return e.base==="stack"?_jsxruntime.jsx.call(void 0, _material.Stack,{direction:e.direction,...d,ref:m,sx:[l,...C]}):_jsxruntime.jsx.call(void 0, _material.Box,{ref:m,sx:[{display:u?"inline-flex":"flex",flexDirection:e.direction,...l},...C],...d})});return o.displayName=e.displayName,o}var qt=c({displayName:"FlexColumn.Start",base:"box",direction:"column",defaultProps:{justifyContent:"flex-start"}}),Jt=c({displayName:"FlexColumn.End",base:"box",direction:"column",defaultProps:{justifyContent:"flex-end"}}),Zt=c({displayName:"FlexColumn.Center",base:"box",direction:"column",defaultProps:{justifyContent:"center"}}),eo=c({displayName:"FlexColumn.Around",base:"box",direction:"column",defaultProps:{justifyContent:"space-around"}}),to=c({displayName:"FlexColumn.Between",base:"box",direction:"column",defaultProps:{justifyContent:"space-between"}}),oo=c({displayName:"FlexColumn.Evenly",base:"box",direction:"column",defaultProps:{justifyContent:"space-evenly"}}),ro=c({displayName:"FlexColumn",base:"box",direction:"column",supportsCenterProp:!0}),k= exports.FlexColumn =ro;k.Start=qt;k.End=Jt;k.Center=Zt;k.Between=to;k.Evenly=oo;k.Around=eo;var no=c({displayName:"FlexRow.Start",base:"box",direction:"row",defaultProps:{justifyContent:"flex-start"}}),so=c({displayName:"FlexRow.End",base:"box",direction:"row",defaultProps:{justifyContent:"flex-end"}}),io=c({displayName:"FlexRow.Around",base:"box",direction:"row",defaultProps:{justifyContent:"space-around"}}),ao=c({displayName:"FlexRow.Between",base:"box",direction:"row",defaultProps:{justifyContent:"space-between"}}),lo=c({displayName:"FlexRow.Evenly",base:"box",direction:"row",defaultProps:{justifyContent:"space-evenly"}}),po=c({displayName:"FlexRow.Center",base:"box",direction:"row",defaultProps:{justifyContent:"center"}}),uo=c({displayName:"FlexRow",base:"box",direction:"row",supportsCenterProp:!0}),N= exports.FlexRow =uo;N.Start=no;N.End=so;N.Center=po;N.Between=ao;N.Around=io;N.Evenly=lo;function Ws(e){return null}var j=e=>{let{sx:t,className:o,color:r="#000",bgcolor:n="#ff0",children:s,ref:i,...a}=e;return _jsxruntime.jsx.call(void 0, _material.Box,{className:_clsx2.default.call(void 0, "Mark-root",o),component:"mark",ref:i,sx:[{display:"inline-block",color:r,bgcolor:n},...Array.isArray(t)?t:[_nullishCoalesce(t, () => (!1))]],...a,children:s})};j.displayName="Mark";function He(e){return e.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")}function We(e,t,o){if(!t||t.length===0)return[{chunk:e,highlighted:!1}];let r=_nullishCoalesce(_optionalChain([o, 'optionalAccess', _18 => _18.ignorecase]), () => (!0)),n=Array.isArray(t)?t.map(He):He(t);if(!(Array.isArray(n)?n.filter(p=>p.trim().length>0).length>0:n.trim()!==""))return[{chunk:e,highlighted:!1}];let i=typeof n=="string"?n.trim():n.filter(p=>p.trim().length!==0).map(p=>p.trim()).sort((p,m)=>m.length-p.length).join("|"),a=new RegExp(`(${i})`,r?"gi":"g");return e.split(a).map(p=>({chunk:p,highlighted:a.test(p)})).filter(({chunk:p})=>p)}var Oe=e=>{let{sx:t,className:o,style:r,variant:n,highlight:s,color:i,highlightSx:a,ignorecase:u=!1,includeDataAttribute:p=!1,children:m,ref:d,...y}=e,f=_react.useMemo.call(void 0, ()=>We(m,s,{ignorecase:u}),[m,s,u]);return _jsxruntime.jsx.call(void 0, _material.Typography,{ref:d,variant:n,className:_clsx2.default.call(void 0, "Highlight-root",o),sx:t,style:r,...y,children:f.map(({chunk:l,highlighted:C},P)=>C?p?_jsxruntime.jsx.call(void 0, j,{color:i,sx:a,"data-highlight":l,children:l},P):_jsxruntime.jsx.call(void 0, j,{color:i,sx:a,children:l},P):_jsxruntime.jsx.call(void 0, "span",{children:l},P))})};Oe.displayName="Highlight";function oi(e){let{sx:t,className:o,text:r,maxLen:n,currentLen:s=0}=e,i=s>n;return r?_jsxruntime.jsxs.call(void 0, _material.Box,{className:_clsx2.default.call(void 0, "LengthLimitHelperText-root",o),component:"span",sx:[{display:"flex",justifyContent:"space-between",alignItems:"center",color:i?"error.main":"text.secondary"},...Array.isArray(t)?t:[_nullishCoalesce(t, () => (!1))]],children:[typeof r=="string"?_jsxruntime.jsx.call(void 0, "span",{children:r}):r,_jsxruntime.jsxs.call(void 0, _material.Box,{component:"span",sx:{ml:2,whiteSpace:"nowrap"},children:[s," / ",n]})]}):_jsxruntime.jsxs.call(void 0, _material.Box,{className:_clsx2.default.call(void 0, "LengthLimitHelperText-root",o),component:"span",sx:[{display:"flex",justifyContent:"flex-end",alignItems:"center",color:i?"error.main":"text.secondary",whiteSpace:"nowrap"},...Array.isArray(t)?t:[_nullishCoalesce(t, () => (!1))]],children:[s," / ",n]})}function ii(e){let{children:t}=e;return!_material.useMediaQuery.call(void 0, r=>r.breakpoints.up("lg"))||!t?null:_jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:t})}function ui(e){let{children:t}=e;return!_material.useMediaQuery.call(void 0, r=>r.breakpoints.down("lg"))||!t?null:_jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:t})}function fi(e){let{children:t}=e;return!_material.useMediaQuery.call(void 0, r=>r.breakpoints.up("md"))||!t?null:_jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:t})}function Pi(e){let{className:t,sx:o,squared:r,outlined:n,children:s,...i}=e;return _jsxruntime.jsx.call(void 0, _material.Paper,{...i,className:_clsx2.default.call(void 0, "Paper-root",t),sx:[{borderRadius:r?0:1,border:n?"1px solid #ddd":"none"},...Array.isArray(o)?o:[_nullishCoalesce(o, () => (!1))]],children:s})}var oe=e=>{let{noPadding:t=!1,className:o,sx:r,children:n,ref:s,...i}=e;return _jsxruntime.jsx.call(void 0, _material.Box,{...i,className:_clsx.clsx.call(void 0, "PortletContent-root",o,{"PortletContent-noPadding":t}),ref:s,sx:[a=>({flex:1,p:a.spacing(2,3),"&.PortletContent-noPadding":{p:0}}),...Array.isArray(r)?r:[_nullishCoalesce(r, () => (!1))]],children:n})};oe.displayName="PortletContent";var re=e=>{let{noDivider:t,sx:o,className:r,children:n,ref:s,...i}=e;return _jsxruntime.jsx.call(void 0, _material.Box,{...i,className:_clsx.clsx.call(void 0, "PortletFooter-root",r,{"PortletFooter-noDivider":t}),ref:s,sx:[a=>({p:a.spacing(1,2),borderTop:"1px solid #E0E4EE",borderBottomLeftRadius:"2px",borderBottomRightRadius:"2px","&.PortletFooter-noDivider":{borderTop:"none"}}),...Array.isArray(o)?o:[_nullishCoalesce(o, () => (!1))]],children:n})};re.displayName="PortletFooter";var ne=e=>{let{children:t,noDivider:o,className:r,noPadding:n=!1,sx:s,ref:i,...a}=e;return _jsxruntime.jsx.call(void 0, _material.Box,{...a,className:_clsx.clsx.call(void 0, "PortletHeader-root",r,{"PortletHeader-noPadding":n,"PortletHeader-noDivider":o}),ref:i,sx:[u=>({position:"relative",display:"flex",justifyContent:"space-between",alignItems:"center",borderBottom:"1px solid #E0E4EE",borderTopLeftRadius:2,borderTopRightRadius:2,height:56,minHeight:56,p:u.spacing(.5,1,.5,3),"&.PortletHeader-noPadding":{p:u.spacing(.5,0,.5,0)},"&.PortletHeader-noDivider":{borderBottom:"none"}}),...Array.isArray(s)?s:[_nullishCoalesce(s, () => (!1))]],children:t})};ne.displayName="PortletHeader";var ie=e=>{let{icon:t,title:o,subtitle:r,className:n,sx:s,ref:i,...a}=e;return _jsxruntime.jsxs.call(void 0, _material.Box,{...a,className:_clsx.clsx.call(void 0, "PortletLabel-root",n),ref:i,sx:[{display:"flex",alignItems:"center"},...Array.isArray(s)?s:[_nullishCoalesce(s, () => (!1))]],children:[t&&_jsxruntime.jsx.call(void 0, _material.Box,{component:"span",sx:{fontSize:"1.2rem",mr:1,color:"text.secondary",alignItems:"center",display:"flex"},children:t}),o&&_jsxruntime.jsx.call(void 0, _material.Typography,{sx:{fontWeight:500,fontSize:"1.1rem"},variant:"h6",children:o}),r&&_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"subtitle2",sx:{fontWeight:400,ml:1,color:"text.secondary"},children:r})]})};ie.displayName="PortletLabel";var ae=e=>{let{className:t,sx:o,children:r,ref:n,...s}=e;return _jsxruntime.jsx.call(void 0, _material.Box,{...s,ref:n,className:_clsx.clsx.call(void 0, "PortletToolbar-root",t),sx:[{display:"flex",alignItems:"center",justifyContent:"flex-end",ml:"auto"},...Array.isArray(o)?o:[_nullishCoalesce(o, () => (!1))]],children:r})};ae.displayName="PortletToolbar";var _o={square:!0},v= exports.Portlet =(e=>{let{sx:t,className:o,children:r,ref:n,...s}=e;return _jsxruntime.jsx.call(void 0, _material.Paper,{..._o,...s,elevation:0,ref:n,component:"div",className:_clsx.clsx.call(void 0, "Portlet-root",o),sx:[{display:"flex",flexDirection:"column",alignItems:"stretch",border:"1px solid #E0E4EE"},...Array.isArray(t)?t:[_nullishCoalesce(t, () => (!1))]],children:r})});v.displayName="Portlet";v.Content=oe;v.Header=ne;v.Footer=re;v.Label=ie;v.Toolbar=ae;var le=_material.styled.call(void 0, (0, _material.Box))(({theme:e})=>({position:"relative",display:"inline-flex",flexDirection:"row",width:"auto",borderRadius:e.shape.borderRadius,overflow:"hidden",padding:"0.25rem",backgroundColor:"#f1f3f5",'&[data-vertical="true"]':{display:"flex",flexDirection:"column",width:"max-content"},'&[data-fullwidth="true"]':{display:"flex",width:"auto"},'&[data-size="small"]':{padding:"0.15rem"},'&[data-size="large"]':{padding:"0.35rem"}}));le.displayName="SegmentedControlRoot";var pe=_material.styled.call(void 0, _material.Box,{shouldForwardProp:e=>e!=="transitionDuration"&&e!=="transitionTimingFunction"})(({theme:e,transitionDuration:t=150,transitionTimingFunction:o="ease"})=>({position:"relative",flex:1,zIndex:2,transition:`border-color ${t}ms ${o}`,'.SegmentedControl-root[data-with-item-border="true"] &::before':{content:'""',position:"absolute",top:0,bottom:0,insetInlineStart:0,backgroundColor:e.palette.divider,width:"1px",transition:`background-color ${t}ms ${o}`},'.SegmentedControl-root[data-with-item-border="true"] &:first-of-type::before':{backgroundColor:"transparent"},'.SegmentedControl-root[data-vertical="true"] &::before':{top:0,insetInline:0,bottom:"auto",height:"1px",width:"auto"}}));pe.displayName="SegmentedControlItem";var ue=_material.styled.call(void 0, (0, _material.Box))(()=>({height:0,width:0,position:"absolute",overflow:"hidden",whiteSpace:"nowrap",opacity:0}));ue.displayName="SegmentedControlInput";function Ke(e,t){if(!t)return;let o=["primary","secondary","info","warning","error","success"],r=["textPrimary","textSecondary","textDisabled"];if(o.includes(t))return e.palette[t].main;if(r.includes(t)){let n=t.substring(4).toLowerCase();return e.palette.text[n]}return t}var me=_material.styled.call(void 0, _material.Box,{shouldForwardProp:e=>e!=="transitionDuration"&&e!=="transitionTimingFunction"&&e!=="primaryColor"&&e!=="secondaryColor"})(({theme:e,transitionDuration:t=150,transitionTimingFunction:o="ease",primaryColor:r,secondaryColor:n})=>{let s=_nullishCoalesce(Ke(e,r), () => (e.palette.primary.main)),i=_nullishCoalesce(Ke(e,n), () => (e.palette.text.secondary));return{fontWeight:500,display:"block",textAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",userSelect:"none",borderRadius:1,padding:"0.3125rem 0.625rem",fontSize:e.typography.body1.fontSize,cursor:"pointer",color:i,transition:`color ${t}ms ${o}`,".SegmentedControl-item.Mui-active > &&":{color:s,"&::before":{content:'""',position:"absolute",inset:0,zIndex:0}},".SegmentedControl-item.Mui-readOnly > &&":{cursor:"default"},".SegmentedControl-item.Mui-disabled > &&":{cursor:"not-allowed",color:e.palette.text.disabled,opacity:.7},'.SegmentedControl-root[data-size="small"] &':{padding:"0.2rem 0.4rem",fontSize:"0.7rem"},'.SegmentedControl-root[data-size="large"] &':{padding:"0.4rem 0.8rem",fontSize:e.typography.subtitle1.fontSize}}});me.displayName="SegmentedControlLabel";function ce(e){return e?!0:void 0}var aa=e=>{let{sx:t,className:o,style:r,disabled:n,data:s,value:i,defaultValue:a,onChange:u,fullWidth:p,withItemBorder:m,primaryColor:d="primary",secondaryColor:y="textSecondary",transitionDuration:f,transitionTimingFunction:l,vertical:C,readOnly:P,size:B="medium",indicator:S,ref:h}=e,g=s.map(b=>typeof b=="string"?{label:b,value:b}:b),[L,M]=_react.useState.call(void 0, null),[R,qe]=_react.useState.call(void 0, {}),Je=b=>tt=>{R[b]=tt,qe(R)},[D,Ze]=_chunkQNR3IXPAcjs.p.call(void 0, {value:i,defaultValue:a,finalValue:Array.isArray(s)?_nullishCoalesce(_nullishCoalesce(_optionalChain([g, 'access', _19 => _19.find, 'call', _20 => _20(b=>!b.disabled), 'optionalAccess', _21 => _21.value]), () => (_optionalChain([g, 'access', _22 => _22[0], 'optionalAccess', _23 => _23.value]))), () => (void 0)):void 0,onChange:u}),U=_chunkQNR3IXPAcjs.o.call(void 0, ),et=_chunkQNR3IXPAcjs.i.call(void 0, h,M);return s.length===0?null:_jsxruntime.jsxs.call(void 0, le,{className:_clsx2.default.call(void 0, "SegmentedControl-root",o,{x_readOnly:P,x_fullWidth:p,"Mui-disabled":n,"Mui-readOnly":P}),sx:t,style:r,ref:et,role:"radiogroup","data-vertical":ce(C),"data-fullwidth":ce(p),"data-with-item-border":ce(m),"data-size":B,children:[typeof D=="string"&&_jsxruntime.jsx.call(void 0, Me,{className:"SegmentedControl-indicator",component:"span",target:R[D],parent:L,transitionDuration:f,sx:{display:"block",zIndex:1,borderRadius:1,bgcolor:"#fff",boxShadow:"rgba(0, 0, 0, 0.05) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px 0px"},children:S}),g.map(b=>_jsxruntime.jsxs.call(void 0, pe,{className:_clsx2.default.call(void 0, "SegmentedControl-item",{"Mui-active":D===b.value,"Mui-disabled":b.disabled||n,"Mui-readOnly":P}),transitionDuration:f,transitionTimingFunction:l,children:[_jsxruntime.jsx.call(void 0, ue,{component:"input",className:"SegmentedControl-input",type:"radio",name:U,value:b.value,checked:D===b.value,id:`${U}-${b.value}`,onChange:()=>{!P&&!b.disabled&&!n&&Ze(b.value)}},`${b.value}-input`),_jsxruntime.jsx.call(void 0, me,{component:"label",className:"SegmentedControl-label",ref:Je(b.value),htmlFor:`${U}-${b.value}`,primaryColor:d,secondaryColor:y,transitionDuration:f,transitionTimingFunction:l,children:_jsxruntime.jsx.call(void 0, _material.Box,{component:"span",sx:{position:"relative",zIndex:2},children:b.label})},`${b.value}-label`)]},b.value))]})};var Yo=({when:e,fallback:t,children:o})=>e?o:t;Yo.displayName="Show";function ca(e){let{children:t}=e;return!_material.useMediaQuery.call(void 0, r=>r.breakpoints.down("md"))||!t?null:_jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:t})}function ya(e){let{children:t}=e;return!_material.useMediaQuery.call(void 0, r=>r.breakpoints.up("sm"))||!t?null:_jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:t})}var nr=({width:e,height:t,minWidth:o,minHeight:r,sx:n,ref:s,...i})=>_jsxruntime.jsx.call(void 0, _material.Box,{ref:s,sx:[{width:e,height:t,minWidth:_nullishCoalesce(o, () => (e)),minHeight:_nullishCoalesce(r, () => (t))},...Array.isArray(n)?n:[n]],...i});nr.displayName="Space";var lr=e=>{let{sx:t,className:o,style:r,id:n,initialState:s,maxHeight:i=100,hideLabel:a,showLabel:u,expanded:p,onExpandedChange:m,controlRef:d,children:y,transitionDuration:f=100,ref:l,...C}=e,P=_chunkQNR3IXPAcjs.o.call(void 0, n),B=`${P}-region`,[S,h]=_chunkQNR3IXPAcjs.p.call(void 0, {value:p,defaultValue:s,finalValue:!1,onChange:m}),{ref:g,height:L}=_chunkQNR3IXPAcjs.r.call(void 0, ),M=S?a:u,R=M!==null&&i<L;return _jsxruntime.jsxs.call(void 0, pr,{className:_clsx2.default.call(void 0, "Spoiler-root",o),sx:[t,...Array.isArray(t)?t:[_nullishCoalesce(t, () => (!1))]],style:r,id:P,ref:l,"data-has-spoiler":R,...C,children:[R&&_jsxruntime.jsx.call(void 0, ur,{component:"button",ref:d,onClick:()=>{h(!S)},"aria-expanded":S,"aria-controls":B,children:M}),_jsxruntime.jsx.call(void 0, mr,{"data-reduce-motion":!0,role:"region",id:B,transitionDuration:f,style:{maxHeight:S?_nullishCoalesce(L, () => (void 0)):i},children:_jsxruntime.jsx.call(void 0, "div",{ref:g,children:y})})]})};lr.displayName="Spoiler";var pr=_material.styled.call(void 0, (0, _material.Box))(()=>({position:"relative",'&:where([data-has-spoiler="true"])':{marginBottom:24}})),ur=_material.styled.call(void 0, (0, _material.Link))(()=>({position:"absolute",insetInlineStart:0,top:"100%",height:32,textDecoration:"none","&:hover":{textDecoration:"underline"}})),mr=_material.styled.call(void 0, _material.Box,{shouldForwardProp:e=>e!=="transitionDuration"})(({transitionDuration:e=200})=>({display:"flex",flexDirection:"column",overflow:"hidden",transition:`max-height ${e}ms ease`}));var dr=c({displayName:"StackColumn.Center",base:"stack",direction:"column",defaultProps:{justifyContent:"center"}}),fr=c({displayName:"StackColumn.Start",base:"stack",direction:"column",defaultProps:{justifyContent:"flex-start"}}),xr=c({displayName:"StackColumn.End",base:"stack",direction:"column",defaultProps:{justifyContent:"flex-end"}}),yr=c({displayName:"StackColumn.Between",base:"stack",direction:"column",defaultProps:{justifyContent:"space-between"}}),br=c({displayName:"StackColumn.Around",base:"stack",direction:"column",defaultProps:{justifyContent:"space-around"}}),Cr=c({displayName:"StackColumn.Evenly",base:"stack",direction:"column",defaultProps:{justifyContent:"space-evenly"}}),Pr=c({displayName:"StackColumn",base:"stack",direction:"column",supportsCenterProp:!0}),E= exports.StackColumn =Pr;E.Start=fr;E.End=xr;E.Between=yr;E.Around=br;E.Center=dr;E.Evenly=Cr;var gr=c({displayName:"StackRow.Center",base:"stack",direction:"row",defaultProps:{justifyContent:"center"}}),hr=c({displayName:"StackRow.Start",base:"stack",direction:"row",defaultProps:{justifyContent:"flex-start"}}),Sr=c({displayName:"StackRow.End",base:"stack",direction:"row",defaultProps:{justifyContent:"flex-end"}}),Br=c({displayName:"StackRow.Between",base:"stack",direction:"row",defaultProps:{justifyContent:"space-between"}}),Rr=c({displayName:"StackRow.Around",base:"stack",direction:"row",defaultProps:{justifyContent:"space-around"}}),Tr=c({displayName:"StackRow.Evenly",base:"stack",direction:"row",defaultProps:{justifyContent:"space-evenly"}}),wr=c({displayName:"StackRow",base:"stack",direction:"row",supportsCenterProp:!0}),I= exports.StackRow =wr;I.Start=hr;I.End=Sr;I.Between=Br;I.Around=Rr;I.Center=gr;I.Evenly=Tr;var Qe=x({displayName:"TopAbsolute.Center",axes:[{cssProp:"top"}],fixedStyle:{left:"50%",transform:"translate(-50%, -50%)"},supportsFullWidth:!0});var Xe=x({displayName:"TopAbsolute.Left",axes:[{cssProp:"left",defaultValue:0},{cssProp:"top",defaultValue:0}],supportsFullWidth:!0});var Ye=x({displayName:"TopAbsolute.Right",axes:[{cssProp:"right",defaultValue:0},{cssProp:"top",defaultValue:0}],supportsFullWidth:!0});var Fr=x({displayName:"TopAbsolute",axes:[{cssProp:"top",defaultValue:0},{cssProp:"left",defaultValue:0},{cssProp:"right",defaultValue:0}],supportsFullWidth:!1}),xe= exports.TopAbsolute =Fr;xe.Left=Xe;xe.Right=Ye;xe.Center=Qe;function Ga(e){let{children:t}=e;return!_material.useMediaQuery.call(void 0, r=>r.breakpoints.down("sm"))||!t?null:_jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:t})}var Qa=e=>!e.shiftKey&&e.key==="Tab",Xa= exports.isEnterOrTabKeyEvent =e=>e.key==="Enter"||!e.shiftKey&&e.key==="Tab",Ya= exports.isEnterKeyEvent =e=>e.key==="Enter",qa= exports.isEscapeKeyEvent =e=>e.key==="Escape",Ja= exports.isTouchEvent =e=>!!_optionalChain([e, 'access', _24 => _24.touches, 'optionalAccess', _25 => _25.length]),Za= exports.isMouseEvent =e=>!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0)),el= exports.blurEventTarget =(e,t=-1)=>{let o=e.target;o&&typeof o.blur=="function"&&(t>=0?setTimeout(()=>{o.blur()},t):o.blur())};function vr(...e){let t=[];return e.forEach(o=>{o&&(Array.isArray(o)?o.forEach(r=>{r&&t.push(r)}):t.push(o))}),t}function ol(...e){let t=vr(...e);return t.length>0?t[0]:void 0}var rl=(e="height",t=100)=>({"& .MuiDialog-scrollPaper > .MuiDialog-paper":{[e]:`calc(${t}% - 64px)`}});exports.BottomAbsolute = Q; exports.Center = it; exports.CenterAbsolute = X; exports.Closables = _chunkQNR3IXPAcjs.t; exports.CooldownButton = pt; exports.CooldownButtonBase = ct; exports.CooldownIconButton = xt; exports.CopyButtonWrapper = Pn; exports.CustomTableBody = Rn; exports.DebouncedButton = Vn; exports.DebouncedButtonBase = Gn; exports.DebouncedIconButton = Yn; exports.DebouncedRender = es; exports.FileButton = Dt; exports.FlexColumn = k; exports.FlexItemsContainer = jt; exports.FlexRow = N; exports.FloatingIndicator = Le; exports.Hide = Ws; exports.Highlight = Oe; exports.LengthLimitHelperText = oi; exports.LgOrUp = ii; exports.Mark = j; exports.MdOrDown = ui; exports.MdOrUp = fi; exports.Paper = Pi; exports.Portlet = v; exports.SegmentedControl = aa; exports.Show = Yo; exports.SmOrDown = ca; exports.SmOrUp = ya; exports.Space = nr; exports.Spoiler = lr; exports.StackColumn = E; exports.StackRow = I; exports.TopAbsolute = xe; exports.XsOrDown = Ga; exports.blurEventTarget = el; exports.firstSx = ol; exports.flatSx = vr; exports.getAbsolutePosition = _chunkQNR3IXPAcjs.z; exports.isBrowser = _chunkQNR3IXPAcjs.A; exports.isEnterKeyEvent = Ya; exports.isEnterOrTabKeyEvent = Xa; exports.isEscapeKeyEvent = qa; exports.isMouseEvent = Za; exports.isNavigator = _chunkQNR3IXPAcjs.B; exports.isTabKeyEvent = Qa; exports.isTouchDevice = _chunkQNR3IXPAcjs.x; exports.isTouchEvent = Ja; exports.isWebSerialSupportBrowser = _chunkQNR3IXPAcjs.w; exports.matchesOrClosest = _chunkQNR3IXPAcjs.y; exports.noop = _chunkQNR3IXPAcjs.C; exports.requestFocusSelector = _chunkQNR3IXPAcjs.u; exports.requestSelector = _chunkQNR3IXPAcjs.v; exports.sxDialogHeight = rl;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/jjfive/p/cp949/mui-react19/packages/mui/dist/index.cjs","../src/components/bottom-absolute/BottomAbsolute.tsx","../src/components/bottom-absolute/BottomAbsoluteCenter.tsx","../src/components/bottom-absolute/BottomAbsoluteLeft.tsx","../src/components/bottom-absolute/BottomAbsoluteRight.tsx","../src/components/Center.tsx","../src/components/CooldownButton.tsx","../src/components/CooldownButtonBase.tsx","../src/components/CooldownIconButton.tsx","../src/components/CopyButtonWrapper.tsx","../src/components/CustomTableBody.tsx","../src/components/center-absolute/CenterAbsolute.tsx","../src/components/center-absolute/CenterAbsoluteCenter.tsx","../src/components/center-absolute/CenterAbsoluteLeft.tsx","../src/components/center-absolute/CenterAbsoluteRight.tsx","../src/components/DebouncedButton.tsx","../src/components/DebouncedButtonBase.tsx","../src/components/DebouncedIconButton.tsx","../src/components/DebouncedRender.tsx","../src/components/FileButton.tsx","../src/components/FlexItemsContainer.tsx","../src/util/internal-util.ts"],"names":["BottomAbsoluteCenter","forwardRef","fullWidth","bottom","sx","props","ref","jsx","Box","BottomAbsoluteLeft","left","BottomAbsoluteRight","right","BottomAbsoluteBase","BottomAbsolute","Center","vertical","CooldownButton","cooldown","onClick","disabled","isCooldown","setIsCooldown","useState","internalRef","useRef","useImperativeHandle","Button","event","CooldownButtonBase","ButtonBase","CooldownIconButton","IconButton","CopyButtonWrapper","children","value","timeout","clipboard","useClipboard","Fragment","v","CustomTableBody","className","loading","stripe","otherProps","TableBody","clsx","CenterAbsoluteCenter","CenterAbsoluteLeft","CenterAbsoluteRight","CenterAbsoluteBase","CenterAbsolute","DebouncedButton","debounce","debounceTimeout","useEffect","DebouncedButtonBase","DebouncedIconButton","DebouncedRender","leading","trailing","maxWait","content","setContent","timeoutRef","lastCallTimeRef","closeTimer","useCallback","now","invoke","assignRef","FileButton","onChange","multiple","accept","name","form","resetRef","capture","inputProps","inputRef","openRequest","setOpenRequest","handleChange","files","file","reset","jsxs","useComposedRefs","isNil","isNotNil","FlexItemsContainer","items","getItemKey","getItemSize","isLineBreakItem","breakBefore","breakAfter","lineBreakHeight","lineBreakGroup","restProps","Grid","createItems","renderItem","elements","lineStarting","previousGroup","item","i","getLineBreakNode","currGrp","isGroupChanged","prev","curr","keyPrefix","height"],"mappings":"AAAA,y0BAA6K,gCAA6B,yCCAvK,8BAER,+CCSrB,IAHOA,CAAAA,CAAuBC,+BAAAA,CACjC,CAAE,SAAA,CAAAC,CAAAA,CAAW,MAAA,CAAAC,CAAAA,CAAS,CAAA,C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esContent":[null,"import { Box, type BoxProps } from '@mui/material';\nimport type { CSSProperties } from 'react';\nimport { forwardRef } from 'react';\nimport { BottomAbsoluteCenter } from './BottomAbsoluteCenter.js';\nimport { BottomAbsoluteLeft } from './BottomAbsoluteLeft.js';\nimport { BottomAbsoluteRight } from './BottomAbsoluteRight.js';\n\nexport type { BottomAbsoluteCenterProps } from './BottomAbsoluteCenter.js';\nexport type { BottomAbsoluteLeftProps } from './BottomAbsoluteLeft.js';\nexport type { BottomAbsoluteRightProps } from './BottomAbsoluteRight.js';\n\nexport interface BottomAbsoluteProps extends BoxProps {\n left?: CSSProperties['left'];\n right?: CSSProperties['right'];\n bottom?: CSSProperties['bottom'];\n}\n\ninterface BottomAbsoluteComponent extends React.ForwardRefExoticComponent<BottomAbsoluteProps> {\n Left: typeof BottomAbsoluteLeft;\n Right: typeof BottomAbsoluteRight;\n Center: typeof BottomAbsoluteCenter;\n}\n\nconst BottomAbsoluteBase = forwardRef<HTMLDivElement, BottomAbsoluteProps>(\n ({ bottom = 0, left = 0, right = 0, sx, ...props }, ref) => {\n return (\n <Box\n ref={ref}\n sx={[\n {\n position: 'absolute',\n bottom,\n left,\n right,\n },\n ...(Array.isArray(sx) ? sx : [sx]),\n ]}\n {...props}\n />\n );\n },\n) as BottomAbsoluteComponent;\n\nBottomAbsoluteBase.displayName = 'BottomAbsoluteBase';\n\nexport const BottomAbsolute = BottomAbsoluteBase;\nBottomAbsolute.displayName = 'BottomAbsolute';\nBottomAbsolute.Left = BottomAbsoluteLeft;\nBottomAbsolute.Right = BottomAbsoluteRight;\nBottomAbsolute.Center = BottomAbsoluteCenter;\n","import { Box, type BoxProps } from '@mui/material';\nimport { type CSSProperties, forwardRef } from 'react';\n\nexport interface BottomAbsoluteCenterProps extends BoxProps {\n fullWidth?: boolean;\n bottom?: CSSProperties['bottom'];\n}\n\nexport const BottomAbsoluteCenter = forwardRef<HTMLDivElement, BottomAbsoluteCenterProps>(\n ({ fullWidth, bottom = 0, sx, ...props }, ref) => {\n return (\n <Box\n ref={ref}\n sx={[\n {\n position: 'absolute',\n bottom,\n left: '50%',\n transform: 'translate(-50%, -50%)',\n ...(fullWidth && {\n width: '100%',\n }),\n },\n ...(Array.isArray(sx) ? sx : [sx]),\n ]}\n {...props}\n />\n );\n },\n);\n\nBottomAbsoluteCenter.displayName = 'BottomAbsolute.Center';\n","import { Box, type BoxProps } from '@mui/material';\nimport { type CSSProperties, forwardRef } from 'react';\n\nexport interface BottomAbsoluteLeftProps extends BoxProps {\n fullWidth?: boolean;\n bottom?: CSSProperties['bottom'];\n left?: CSSProperties['left'];\n}\n\nexport const BottomAbsoluteLeft = forwardRef<HTMLDivElement, BottomAbsoluteLeftProps>(\n ({ fullWidth, left = 0, bottom = 0, sx, ...props }, ref) => {\n return (\n <Box\n ref={ref}\n sx={[\n {\n position: 'absolute',\n left,\n bottom,\n ...(fullWidth && {\n width: '100%',\n }),\n },\n ...(Array.isArray(sx) ? sx : [sx]),\n ]}\n {...props}\n />\n );\n },\n);\n\nBottomAbsoluteLeft.displayName = 'BottomAbsolute.Left';\n","import { Box, type BoxProps } from '@mui/material';\nimport { type CSSProperties, forwardRef } from 'react';\n\nexport interface BottomAbsoluteRightProps extends BoxProps {\n fullWidth?: boolean;\n bottom?: CSSProperties['bottom'];\n right?: CSSProperties['right'];\n}\n\nexport const BottomAbsoluteRight = forwardRef<HTMLDivElement, BottomAbsoluteRightProps>(\n ({ fullWidth, right = 0, bottom = 0, sx, ...props }, ref) => {\n return (\n <Box\n ref={ref}\n sx={[\n {\n position: 'absolute',\n right,\n bottom,\n ...(fullWidth && {\n width: '100%',\n }),\n },\n ...(Array.isArray(sx) ? sx : [sx]),\n ]}\n {...props}\n />\n );\n },\n);\n\nBottomAbsoluteRight.displayName = 'BottomAbsolute.Right';\n","import { Box, type BoxProps } from '@mui/material';\nimport { forwardRef } from 'react';\n\nexport interface CenterProps extends BoxProps {\n vertical?: boolean;\n}\n\nexport const Center = forwardRef<HTMLDivElement, CenterProps>(\n ({ vertical = false, sx, ...props }, ref) => {\n return (\n <Box\n ref={ref}\n sx={[\n {\n display: 'flex',\n flexDirection: vertical ? 'column' : 'row',\n alignItems: 'center',\n justifyContent: 'center',\n },\n ...(Array.isArray(sx) ? sx : [sx]),\n ]}\n {...props}\n />\n );\n },\n);\n\nCenter.displayName = 'Center';\n","'use client';\n\nimport { Button, type ButtonProps } from '@mui/material';\nimport type { MouseEvent } from 'react';\nimport { forwardRef, useImperativeHandle, useRef, useState } from 'react';\n\nexport interface CooldownButtonProps extends ButtonProps {\n /**\n * Cooldown duration in milliseconds\n */\n cooldown?: number;\n}\n\nexport const CooldownButton = forwardRef<HTMLButtonElement, CooldownButtonProps>(\n ({ cooldown = 1000, onClick, disabled, ...props }, ref) => {\n const [isCooldown, setIsCooldown] = useState(false);\n const internalRef = useRef<HTMLButtonElement>(null);\n\n useImperativeHandle(ref, () => internalRef.current!);\n\n const handleClick = (event: MouseEvent<HTMLButtonElement>) => {\n if (!isCooldown && onClick) {\n onClick(event);\n setIsCooldown(true);\n setTimeout(() => setIsCooldown(false), cooldown);\n }\n };\n\n return (\n <Button {...props} ref={internalRef} onClick={handleClick} disabled={disabled || isCooldown}>\n {props.children}\n </Button>\n );\n },\n);\n\nCooldownButton.displayName = 'CooldownButton';\n","'use client';\n\nimport { ButtonBase, type ButtonBaseProps } from '@mui/material';\nimport type { MouseEvent } from 'react';\nimport { forwardRef, useImperativeHandle, useRef, useState } from 'react';\n\nexport interface CooldownButtonBaseProps extends ButtonBaseProps {\n /**\n * Cooldown duration in milliseconds\n */\n cooldown?: number;\n}\n\nexport const CooldownButtonBase = forwardRef<HTMLButtonElement, CooldownButtonBaseProps>(\n ({ cooldown = 1000, onClick, disabled, ...props }, ref) => {\n const [isCooldown, setIsCooldown] = useState(false);\n const internalRef = useRef<HTMLButtonElement>(null);\n\n useImperativeHandle(ref, () => internalRef.current!);\n\n const handleClick = (event: MouseEvent<HTMLButtonElement>) => {\n if (!isCooldown && onClick) {\n onClick(event);\n setIsCooldown(true);\n setTimeout(() => setIsCooldown(false), cooldown);\n }\n };\n\n return (\n <ButtonBase\n {...props}\n ref={internalRef}\n onClick={handleClick}\n disabled={disabled || isCooldown}\n >\n {props.children}\n </ButtonBase>\n );\n },\n);\n\nCooldownButtonBase.displayName = 'CooldownButtonBase';\n","'use client';\n\nimport { IconButton, type IconButtonProps } from '@mui/material';\nimport type { MouseEvent } from 'react';\nimport { forwardRef, useImperativeHandle, useRef, useState } from 'react';\n\nexport interface CooldownIconButtonProps extends IconButtonProps {\n /**\n * Cooldown duration in milliseconds\n */\n cooldown?: number;\n}\n\nexport const CooldownIconButton = forwardRef<HTMLButtonElement, CooldownIconButtonProps>(\n ({ cooldown = 700, onClick, disabled, ...props }, ref) => {\n const [isCooldown, setIsCooldown] = useState(false);\n const internalRef = useRef<HTMLButtonElement>(null);\n\n useImperativeHandle(ref, () => internalRef.current!);\n\n const handleClick = (event: MouseEvent<HTMLButtonElement>) => {\n if (!isCooldown && onClick) {\n onClick(event);\n setIsCooldown(true);\n setTimeout(() => setIsCooldown(false), cooldown);\n }\n };\n\n return (\n <IconButton\n {...props}\n ref={internalRef}\n onClick={handleClick}\n disabled={disabled || isCooldown}\n >\n {props.children}\n </IconButton>\n );\n },\n);\n\nCooldownIconButton.displayName = 'CooldownIconButton';\n","'use client';\n\nimport type { ReactNode } from 'react';\nimport { useClipboard } from '../hooks/useClipboard.js';\n\nexport interface CopyButtonWrapperProps {\n /**\n * 자식 컴포넌트 렌더링을 위한 콜백 함수입니다.\n * 현재 복사 상태(`copied`)와 복사 함수(`copy`)를 인자로 제공합니다.\n *\n * @param payload - 현재 상태 및 복사 함수\n * @param payload.copied - 복사 성공 여부를 나타내는 상태\n * @param payload.copy - 값을 클립보드에 복사하는 함수\n *\n * @example\n * ```tsx\n * <CopyButtonWrapper value=\"복사할 텍스트\">\n * {({ copy, copied }) => (\n * <button onClick={copy}>\n * {copied ? \"복사 완료!\" : \"복사하기\"}\n * </button>\n * )}\n * </CopyButtonWrapper>\n * ```\n */\n children: (payload: { copied: boolean; copy: () => void }) => ReactNode;\n\n /**\n * 버튼 클릭 시 클립보드에 복사될 값입니다.\n * 문자열 또는 문자열을 반환하는 함수 형태를 지원합니다.\n *\n * @example\n * ```tsx\n * <CopyButtonWrapper value=\"복사할 텍스트\">\n * ...\n * </CopyButtonWrapper>\n *\n * <CopyButtonWrapper value={() => dynamicValue()}>\n * ...\n * </CopyButtonWrapper>\n * ```\n */\n value: string | null | undefined | (() => string | null | undefined);\n\n /**\n * 복사 성공 상태가 유지되는 시간(밀리초)입니다. 기본값은 `1000`ms입니다.\n *\n * @default 1000\n */\n timeout?: number;\n}\n\n/**\n * 클립보드 복사 버튼을 쉽게 구현하기 위한 래퍼 컴포넌트입니다.\n *\n * @param props - `CopyButtonWrapper`의 속성\n * @returns 자식 콜백 함수로 전달된 UI 요소를 렌더링합니다.\n *\n * @example\n * ```tsx\n * <CopyButtonWrapper value=\"복사할 텍스트\" timeout={2000}>\n * {({ copy, copied }) => (\n * <button onClick={copy}>\n * {copied ? \"복사되었습니다!\" : \"복사\"}\n * </button>\n * )}\n * </CopyButtonWrapper>\n * ```\n */\nexport function CopyButtonWrapper(props: CopyButtonWrapperProps) {\n const { children, value, timeout = 1000 } = props;\n const clipboard = useClipboard({ timeout });\n\n // 클립보드에 값을 복사합니다. `value`가 함수인 경우 값을 동적으로 평가합니다.\n const copy = () => {\n const v = typeof value === 'function' ? value() : value;\n if (typeof v === 'string' && v.length > 0) {\n clipboard.copy(v);\n }\n };\n\n return <>{children({ copy, copied: clipboard.copied })}</>;\n}\n","import { TableBody, type TableBodyProps } from '@mui/material';\nimport clsx from 'clsx';\n\nexport interface CustomTableBodyProps extends TableBodyProps {\n loading?: boolean;\n stripe?: boolean;\n}\n\nexport function CustomTableBody(props: CustomTableBodyProps) {\n const { sx, className, loading, stripe, ...otherProps } = props;\n\n return (\n <TableBody\n className={clsx('CustomTableBody-root', className, {\n 'CustomTableBody-stripe': !!stripe,\n 'CustomTableBody-loading': !!loading,\n })}\n sx={[\n {\n '&.CustomTableBody-loading': {\n opacity: 0.5,\n },\n '&.CustomTableBody-stripe': {\n '& .MuiTableRow-root:nth-of-type(even)': {\n backgroundColor: 'action.hover',\n },\n },\n },\n ...(Array.isArray(sx) ? sx : [sx ?? false]),\n ]}\n {...otherProps}\n />\n );\n}\n","import { Box, type BoxProps } from '@mui/material';\nimport type { CSSProperties } from 'react';\nimport { forwardRef } from 'react';\nimport { CenterAbsoluteCenter } from './CenterAbsoluteCenter.js';\nimport { CenterAbsoluteLeft } from './CenterAbsoluteLeft.js';\nimport { CenterAbsoluteRight } from './CenterAbsoluteRight.js';\n\nexport type { CenterAbsoluteCenterProps } from './CenterAbsoluteCenter.js';\nexport type { CenterAbsoluteLeftProps } from './CenterAbsoluteLeft.js';\nexport type { CenterAbsoluteRightProps } from './CenterAbsoluteRight.js';\n\nexport interface CenterAbsoluteProps extends BoxProps {\n left?: CSSProperties['left'];\n right?: CSSProperties['right'];\n}\n\ninterface CenterAbsoluteComponent extends React.ForwardRefExoticComponent<CenterAbsoluteProps> {\n Left: typeof CenterAbsoluteLeft;\n Right: typeof CenterAbsoluteRight;\n Center: typeof CenterAbsoluteCenter;\n}\n\nconst CenterAbsoluteBase = forwardRef<HTMLDivElement, CenterAbsoluteProps>(\n ({ left = 0, right = 0, sx, ...props }, ref) => {\n return (\n <Box\n ref={ref}\n sx={[\n {\n position: 'absolute',\n top: '50%',\n left,\n right,\n transform: 'translateY(-50%)',\n },\n ...(Array.isArray(sx) ? sx : [sx]),\n ]}\n {...props}\n />\n );\n },\n) as CenterAbsoluteComponent;\n\nCenterAbsoluteBase.displayName = 'CenterAbsoluteBase';\n\nexport const CenterAbsolute = CenterAbsoluteBase;\nCenterAbsolute.displayName = 'CenterAbsolute';\nCenterAbsolute.Left = CenterAbsoluteLeft;\nCenterAbsolute.Right = CenterAbsoluteRight;\nCenterAbsolute.Center = CenterAbsoluteCenter;\n","import { Box, type BoxProps } from '@mui/material';\nimport { forwardRef } from 'react';\n\nexport interface CenterAbsoluteCenterProps extends BoxProps {\n fullWidth?: boolean;\n}\n\nexport const CenterAbsoluteCenter = forwardRef<HTMLDivElement, CenterAbsoluteCenterProps>(\n ({ fullWidth, sx, ...props }, ref) => {\n return (\n <Box\n ref={ref}\n sx={[\n {\n position: 'absolute',\n top: '50%',\n left: '50%',\n transform: 'translate(-50%, -50%)',\n ...(fullWidth && {\n width: '100%',\n }),\n },\n ...(Array.isArray(sx) ? sx : [sx]),\n ]}\n {...props}\n />\n );\n },\n);\n\nCenterAbsoluteCenter.displayName = 'CenterAbsolute.Center';\n","import { Box, type BoxProps } from '@mui/material';\nimport type { CSSProperties } from 'react';\nimport { forwardRef } from 'react';\n\nexport interface CenterAbsoluteLeftProps extends BoxProps {\n left?: CSSProperties['left'];\n fullWidth?: boolean;\n}\n\nexport const CenterAbsoluteLeft = forwardRef<HTMLDivElement, CenterAbsoluteLeftProps>(\n ({ fullWidth, left = 0, sx, ...props }, ref) => {\n return (\n <Box\n ref={ref}\n sx={[\n {\n position: 'absolute',\n top: '50%',\n left,\n transform: 'translateY(-50%)',\n ...(fullWidth && {\n width: '100%',\n }),\n },\n ...(Array.isArray(sx) ? sx : [sx]),\n ]}\n {...props}\n />\n );\n },\n);\n\nCenterAbsoluteLeft.displayName = 'CenterAbsolute.Left';\n","import { Box, type BoxProps } from '@mui/material';\nimport type { CSSProperties } from 'react';\nimport { forwardRef } from 'react';\n\nexport interface CenterAbsoluteRightProps extends BoxProps {\n right?: CSSProperties['right'];\n fullWidth?: boolean;\n}\n\nexport const CenterAbsoluteRight = forwardRef<HTMLDivElement, CenterAbsoluteRightProps>(\n ({ fullWidth, right = 0, sx, ...props }, ref) => {\n return (\n <Box\n ref={ref}\n sx={[\n {\n position: 'absolute',\n top: '50%',\n right,\n transform: 'translateY(-50%)',\n ...(fullWidth && {\n width: '100%',\n }),\n },\n ...(Array.isArray(sx) ? sx : [sx]),\n ]}\n {...props}\n />\n );\n },\n);\n\nCenterAbsoluteRight.displayName = 'CenterAbsolute.Right';\n","'use client';\n\nimport { Button, type ButtonProps } from '@mui/material';\nimport type { MouseEvent } from 'react';\nimport { forwardRef, useEffect, useRef } from 'react';\n\nexport interface DebouncedButtonProps extends ButtonProps {\n /**\n * Debounce duration in milliseconds\n */\n debounce?: number;\n}\n\nexport const DebouncedButton = forwardRef<HTMLButtonElement, DebouncedButtonProps>(\n ({ debounce = 700, onClick, disabled, children, ...props }, ref) => {\n const debounceTimeout = useRef<ReturnType<typeof setTimeout> | null>(null);\n\n // Cleanup timer on unmount\n useEffect(() => {\n return () => {\n if (debounceTimeout.current) {\n clearTimeout(debounceTimeout.current);\n }\n };\n }, []);\n\n const handleClick = (event: MouseEvent<HTMLButtonElement>) => {\n if (debounceTimeout.current) {\n clearTimeout(debounceTimeout.current);\n }\n debounceTimeout.current = setTimeout(() => {\n if (!disabled && onClick) onClick(event);\n }, debounce);\n };\n\n return (\n <Button {...props} ref={ref} onClick={handleClick} disabled={disabled}>\n {children}\n </Button>\n );\n },\n);\n\nDebouncedButton.displayName = 'DebouncedButton';\n","'use client';\n\nimport { ButtonBase, type ButtonBaseProps } from '@mui/material';\nimport type { MouseEvent } from 'react';\nimport { forwardRef, useEffect, useRef } from 'react';\n\nexport interface DebouncedButtonBaseProps extends ButtonBaseProps {\n /**\n * Debounce duration in milliseconds\n */\n debounce?: number;\n}\n\nexport const DebouncedButtonBase = forwardRef<HTMLButtonElement, DebouncedButtonBaseProps>(\n ({ debounce = 700, onClick, disabled, children, ...props }, ref) => {\n const debounceTimeout = useRef<ReturnType<typeof setTimeout> | null>(null);\n\n // Cleanup timer on unmount\n useEffect(() => {\n return () => {\n if (debounceTimeout.current) {\n clearTimeout(debounceTimeout.current);\n }\n };\n }, []);\n\n const handleClick = (event: MouseEvent<HTMLButtonElement>) => {\n if (debounceTimeout.current) {\n clearTimeout(debounceTimeout.current);\n }\n\n debounceTimeout.current = setTimeout(() => {\n if (!disabled && onClick) {\n onClick(event);\n }\n }, debounce);\n };\n\n return (\n <ButtonBase {...props} ref={ref} onClick={handleClick} disabled={disabled}>\n {children}\n </ButtonBase>\n );\n },\n);\n\nDebouncedButtonBase.displayName = 'DebouncedButtonBase';\n","'use client';\n\nimport { IconButton, type IconButtonProps } from '@mui/material';\nimport type { MouseEvent } from 'react';\nimport { forwardRef, useEffect, useRef } from 'react';\n\nexport interface DebouncedIconButtonProps extends IconButtonProps {\n /**\n * Debounce duration in milliseconds\n */\n debounce?: number;\n}\n\nexport const DebouncedIconButton = forwardRef<HTMLButtonElement, DebouncedIconButtonProps>(\n ({ debounce = 700, onClick, disabled, ...props }, ref) => {\n const debounceTimeout = useRef<ReturnType<typeof setTimeout> | null>(null);\n\n // Cleanup timer on unmount\n useEffect(() => {\n return () => {\n if (debounceTimeout.current) {\n clearTimeout(debounceTimeout.current);\n }\n };\n }, []);\n\n const handleClick = (event: MouseEvent<HTMLButtonElement>) => {\n if (debounceTimeout.current) {\n clearTimeout(debounceTimeout.current);\n }\n debounceTimeout.current = setTimeout(() => {\n if (!disabled && onClick) {\n onClick(event);\n }\n }, debounce);\n };\n\n return (\n <IconButton {...props} ref={ref} onClick={handleClick} disabled={disabled}>\n {props.children}\n </IconButton>\n );\n },\n);\n\nDebouncedIconButton.displayName = 'DebouncedIconButton';\n","'use client';\n\nimport type { FC } from 'react';\nimport { type ReactNode, useCallback, useEffect, useRef, useState } from 'react';\n\n/**\n * @example\n * ```tsx\n * <DebouncedRender leading trailing maxWait={200} disabled={false}>\n * <p>{value}</p>\n * </DebouncedRender>\n * ```\n */\n\n/**\n * DebouncedRender 컴포넌트\n *\n * 이 컴포넌트는 `debounce` 기능을 이용해 자식 컴포넌트를 렌더링하는 빈도를 제어합니다.\n *\n * @param children - 렌더링할 React 노드\n * @param leading - `true`로 설정하면 첫 호출 시 즉시 렌더링합니다. (기본값: `false`)\n * @param trailing - `true`로 설정하면 마지막 호출 후 `maxWait` 시간이 지나면 렌더링합니다. (기본값: `true`)\n * @param maxWait - 렌더링 대기 시간(ms)으로, 기본값은 100ms입니다.\n *\n * @returns DebouncedRender 컴포넌트\n */\nexport interface DebouncedRenderProps {\n children: ReactNode;\n leading?: boolean;\n trailing?: boolean;\n maxWait?: number;\n}\n\nexport const DebouncedRender: FC<DebouncedRenderProps> = ({\n children,\n leading = false,\n trailing = true,\n maxWait = 100,\n}) => {\n const [content, setContent] = useState<ReactNode>(leading ? children : undefined);\n const timeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n const lastCallTimeRef = useRef<number | null>(null);\n\n const closeTimer = useCallback(() => {\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current);\n }\n }, []);\n\n useEffect(() => {\n const now = Date.now();\n const invoke = () => {\n setContent(children);\n lastCallTimeRef.current = now;\n };\n\n if (leading && lastCallTimeRef.current === null) {\n invoke();\n }\n\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current);\n }\n\n timeoutRef.current = setTimeout(() => {\n if (trailing) {\n invoke();\n }\n timeoutRef.current = null;\n }, maxWait);\n\n if (\n leading &&\n lastCallTimeRef.current !== null &&\n now - (lastCallTimeRef.current || 0) >= maxWait\n ) {\n invoke();\n }\n\n return () => {\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current);\n }\n };\n }, [children, leading, trailing, maxWait, closeTimer]);\n\n return <>{content}</>;\n};\n","'use client';\n\nimport type { ReactNode } from 'react';\nimport { forwardRef, useCallback, useEffect, useRef, useState } from 'react';\nimport { useComposedRefs } from '../hooks/useComposedRefs.js';\n\nexport interface FileButtonProps<Multiple extends boolean = false> {\n /**\n * 파일이 선택되었을 때 호출되는 콜백 함수입니다.\n *\n * @param payload - 선택된 파일 또는 파일 배열 (다중 파일 선택 여부에 따라 달라짐)\n */\n onChange: (payload: Multiple extends true ? File[] : File) => void;\n\n /**\n * 버튼 렌더링에 필요한 속성을 제공하는 콜백 함수입니다.\n *\n * @param props - 렌더링할 버튼의 속성\n * @param props.onClick - 파일 선택 다이얼로그를 여는 함수\n *\n * @returns React 노드\n */\n children: (props: { onClick: () => void }) => ReactNode;\n\n /**\n * 사용자가 여러 파일을 선택할 수 있는지 여부를 결정합니다.\n *\n * @default false\n */\n multiple?: Multiple;\n\n /**\n * 파일 입력의 `accept` 속성입니다.\n * 선택할 수 있는 파일 유형을 지정합니다.\n *\n * @example \"image/png,image/jpeg\"\n */\n accept?: string;\n\n /**\n * 파일 입력의 `name` 속성입니다.\n */\n name?: string;\n\n /**\n * 파일 입력의 `form` 속성입니다.\n */\n form?: string;\n\n /**\n * 값이 `null` 또는 빈 배열로 변경될 때 호출되는 함수의 참조입니다.\n */\n resetRef?: React.ForwardedRef<() => void>;\n\n /**\n * 파일 선택기를 비활성화합니다.\n *\n * @default false\n */\n disabled?: boolean;\n\n /**\n * 새 파일을 캡처할 때 사용할 장치를 지정합니다.\n *\n * @example \"user\" (사용자 측 카메라), \"environment\" (환경 카메라)\n */\n capture?: boolean | 'user' | 'environment';\n\n /**\n * 파일 입력 요소에 전달할 추가 속성입니다.\n */\n inputProps?: React.ComponentPropsWithoutRef<'input'>;\n}\n\n/**\n * 주어진 참조(ref)에 값을 할당합니다.\n *\n * @param ref - React 참조\n * @param value - 할당할 값\n */\nfunction assignRef<T>(ref: React.Ref<T> | undefined, value: T) {\n if (typeof ref === 'function') {\n ref(value);\n } else if (typeof ref === 'object' && ref !== null && 'current' in ref) {\n (ref as React.RefObject<T>).current = value;\n }\n}\n\ntype FileButtonComponent = (<Multiple extends boolean = false>(\n props: FileButtonProps<Multiple>,\n) => React.ReactElement) & { displayName?: string };\n\n/**\n * 파일 선택 버튼 컴포넌트입니다.\n *\n * 사용자가 파일을 선택하거나 새로 캡처할 수 있는 버튼을 렌더링합니다.\n *\n * @param props - `FileButtonProps` 속성\n * @returns 파일 선택 버튼을 렌더링합니다.\n *\n * @example\n * ```tsx\n * <FileButton onChange={(file) => console.log(file)} accept=\"image/png,image/jpeg\">\n * {({ onClick }) => <button onClick={onClick}>파일 선택</button>}\n * </FileButton>\n * ```\n */\nexport const FileButton: FileButtonComponent = forwardRef<\n HTMLInputElement,\n FileButtonProps<boolean>\n>((props, ref) => {\n const {\n onChange,\n children,\n multiple,\n accept,\n name,\n form,\n resetRef,\n disabled,\n capture,\n inputProps,\n } = props;\n\n const inputRef = useRef<HTMLInputElement>(null);\n const [openRequest, setOpenRequest] = useState(0);\n\n /**\n * 파일 선택 다이얼로그를 엽니다.\n */\n const onClick = useCallback(() => {\n if (disabled) return;\n setOpenRequest((v) => v + 1);\n }, [disabled]);\n\n useEffect(() => {\n if (openRequest === 0) return;\n inputRef.current?.click();\n }, [openRequest]);\n\n /**\n * 파일 선택 후 호출됩니다.\n * @param event - 파일 입력 변경 이벤트\n */\n const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n const files = event.currentTarget?.files;\n if (!files) return;\n if (multiple) {\n onChange(Array.from(files));\n } else {\n const file = files[0];\n if (file) {\n onChange(file);\n }\n }\n };\n\n // 파일 선택 상태를 초기화합니다.\n const reset = useCallback(() => {\n if (inputRef.current) {\n inputRef.current.value = '';\n }\n }, []);\n\n useEffect(() => {\n if (!resetRef) return;\n assignRef(resetRef, reset);\n return () => {\n assignRef(resetRef, () => {});\n };\n }, [resetRef, reset]);\n return (\n <>\n {children({ onClick })}\n <input\n style={{ display: 'none' }}\n type='file'\n accept={accept}\n multiple={multiple}\n onChange={handleChange}\n ref={useComposedRefs(ref, inputRef)}\n name={name}\n form={form}\n capture={capture}\n {...inputProps}\n />\n </>\n );\n}) as FileButtonComponent;\n\nFileButton.displayName = 'FileButton';\n","import { Grid, type GridProps } from '@mui/material';\nimport clsx from 'clsx';\nimport type { ReactElement, ReactNode } from 'react';\nimport { isNil } from '../util/internal-util.js';\n\n/**\n * `FlexItemsContainer`의 속성을 정의하는 인터페이스\n *\n * @template TItem - 리스트 아이템의 타입\n */\nexport type FlexItemsContainerProps<TItem> = Omit<GridProps, 'container' | 'children'> & {\n /** 렌더링할 아이템 배열 */\n items: readonly TItem[];\n\n /** 각 아이템의 고유 키를 반환하는 함수 */\n getItemKey: (item: TItem, index: number) => string | number;\n\n /** 각 아이템의 크기(size)를 결정하는 함수 (선택적) */\n getItemSize?: (item: TItem, index: number) => GridProps['size'] | undefined;\n\n /** 특정 아이템이 줄 바꿈 요소인지 확인하는 함수 (선택적) */\n isLineBreakItem?: (item: TItem, index: number) => boolean;\n\n /** 줄 바꿈을 그룹화하는 함수 (선택적) */\n lineBreakGroup?: (item: TItem, index: number) => unknown;\n\n /** 특정 아이템 전에 줄 바꿈을 적용할지 결정하는 함수 (선택적) */\n breakBefore?: (item: TItem, index: number) => boolean;\n\n /** 특정 아이템 후에 줄 바꿈을 적용할지 결정하는 함수 (선택적) */\n breakAfter?: (item: TItem, index: number) => boolean;\n\n /** 각 아이템을 렌더링하는 함수 */\n children: (item: TItem, index: number) => ReactNode;\n\n /** 줄 바꿈의 높이 (예: `16px`, `1.5rem`, 숫자 등) */\n lineBreakHeight?: number | string;\n};\n\n/**\n * `FlexItemsContainer`는 리스트 아이템을 유연하게 배치하는 컨테이너입니다.\n * forwardRef를 하면 items 타입 추론이 안되므로, 일반 함수 컴포넌트로 작성함\n * @template TItem - 리스트 아이템의 타입\n *\n * @example\n * ```tsx\n * <FlexItemsContainer\n * items={[\"Apple\", \"Banana\", \"Cherry\"]}\n * getItemKey={(item) => item}\n * getItemSize={() => \"auto\"}\n * breakAfter={(item) => item === \"Banana\"}\n * >\n * {(item) => <div>{item}</div>}\n * </FlexItemsContainer>\n * ```\n */\nexport function FlexItemsContainer<TItem>(\n props: FlexItemsContainerProps<TItem>,\n): ReactElement | null {\n const {\n className,\n items,\n getItemKey,\n getItemSize,\n isLineBreakItem,\n breakBefore,\n breakAfter,\n children,\n lineBreakHeight,\n lineBreakGroup,\n ...restProps\n } = props;\n\n if (!Array.isArray(items)) {\n console.error('FlexItemsContainer: items must be an array');\n return null;\n }\n\n return (\n <Grid\n className={clsx('FlexItemsContainer-root', className)}\n container\n role='grid'\n {...restProps}\n >\n {createItems<TItem>({\n items,\n isLineBreakItem,\n lineBreakGroup,\n lineBreakHeight,\n breakBefore,\n breakAfter,\n getItemKey,\n getItemSize,\n renderItem: children,\n })}\n </Grid>\n );\n}\n\nFlexItemsContainer.displayName = 'FlexItemsContainer';\n\ninterface CreateItemsProps<TItem> {\n items: readonly TItem[];\n getItemKey: (item: TItem, index: number) => string | number;\n getItemSize?: (item: TItem, index: number) => GridProps['size'] | undefined;\n isLineBreakItem?: (item: TItem, index: number) => boolean;\n lineBreakGroup?: (item: TItem, index: number) => unknown;\n lineBreakHeight?: number | string;\n breakBefore?: (item: TItem, index: number) => boolean;\n breakAfter?: (item: TItem, index: number) => boolean;\n renderItem: (item: TItem, index: number) => ReactNode;\n}\n\n/**\n * 리스트 아이템을 렌더링하는 함수\n *\n * @template TItem - 리스트 아이템의 타입\n * @param props - 아이템과 렌더링 설정을 포함하는 객체\n * @returns 렌더링된 React 요소 배열\n */\nfunction createItems<TItem>(props: CreateItemsProps<TItem>): ReactElement[] {\n const {\n items,\n getItemKey,\n getItemSize,\n isLineBreakItem,\n lineBreakHeight = 0,\n lineBreakGroup,\n breakBefore,\n breakAfter,\n renderItem,\n } = props;\n\n const elements: ReactElement[] = [];\n let lineStarting = true;\n let previousGroup: unknown;\n\n items.forEach((item, i) => {\n if (isLineBreakItem?.(item, i)) {\n if (!lineStarting) {\n lineStarting = true;\n elements.push(getLineBreakNode(i, 'break-item', lineBreakHeight));\n }\n return;\n }\n\n if (lineBreakGroup) {\n const currGrp = lineBreakGroup(item, i);\n if (isGroupChanged(previousGroup, currGrp)) {\n previousGroup = currGrp;\n if (!lineStarting) {\n lineStarting = true;\n elements.push(getLineBreakNode(i, 'group', lineBreakHeight));\n }\n }\n }\n\n if (!lineStarting && breakBefore?.(item, i)) {\n lineStarting = true;\n elements.push(getLineBreakNode(i, 'break-before', lineBreakHeight));\n }\n\n lineStarting = false;\n elements.push(\n <Grid key={getItemKey(item, i)} size={getItemSize?.(item, i)}>\n {renderItem(item, i)}\n </Grid>,\n );\n\n if (breakAfter?.(item, i)) {\n lineStarting = true;\n elements.push(getLineBreakNode(i, 'break-after', lineBreakHeight));\n }\n });\n\n if (lineStarting && elements.length > 0) {\n elements.pop();\n }\n\n return elements;\n}\n\n/**\n * 두 그룹이 변경되었는지 확인하는 함수\n *\n * @param prev - 이전 그룹\n * @param curr - 현재 그룹\n * @returns `true`이면 그룹이 변경된 것\n */\nfunction isGroupChanged(prev: unknown, curr: unknown): boolean {\n if (isNil(prev) && isNil(curr)) {\n return false;\n }\n return prev !== curr;\n}\n\n/**\n * 줄 바꿈 요소를 생성하는 함수\n *\n * @param i - 요소의 인덱스\n * @param keyPrefix - 키 프리픽스\n * @param height - 줄 바꿈 높이\n * @returns 줄 바꿈을 위한 `Grid2` 요소\n */\nfunction getLineBreakNode(i: number, keyPrefix: string, height: number | string): ReactElement {\n return (\n <Grid\n key={`FlexItemsContainer:${keyPrefix}:${i}`}\n className='FlexItemsContainer-emptyLine'\n size='auto'\n style={{\n flexBasis: '100%',\n width: 0,\n height,\n }}\n />\n );\n}\n","export function isNil<T>(v: T | null | undefined): v is null | undefined {\n return typeof v === 'undefined' || v === null;\n}\n\nexport function isNotNil<T>(v: T | null | undefined): v is T {\n return !isNil(v);\n}\n\nexport function isEmptyObject(value: object) {\n for (const _ in value) {\n return false;\n }\n return true;\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["/work/cp949/mui-react19/packages/mui/dist/index.cjs","../src/components/absolute-box/create-absolute-box.tsx","../src/components/bottom-absolute/BottomAbsoluteCenter.tsx","../src/components/bottom-absolute/BottomAbsoluteLeft.tsx","../src/components/bottom-absolute/BottomAbsoluteRight.tsx","../src/components/bottom-absolute/BottomAbsolute.tsx","../src/components/Center.tsx","../src/components/CooldownButton.tsx","../src/components/CooldownButtonBase.tsx","../src/components/CooldownIconButton.tsx","../src/components/CopyButtonWrapper.tsx","../src/components/CustomTableBody.tsx","../src/components/center-absolute/CenterAbsoluteCenter.tsx","../src/components/center-absolute/CenterAbsoluteLeft.tsx","../src/components/center-absolute/CenterAbsoluteRight.tsx","../src/components/center-absolute/CenterAbsolute.tsx","../src/components/DebouncedButton.tsx","../src/components/DebouncedButtonBase.tsx","../src/components/DebouncedIconButton.tsx","../src/components/DebouncedRender.tsx","../src/components/FileButton.tsx","../src/components/FlexItemsContainer.tsx","../src/util/internal-util.ts"],"names":["createAbsoluteBox","config","Component","allProps","sx","ref","domProps","fullWidth","axisStyle","axis","jsx","Box","BottomAbsoluteCenter","BottomAbsoluteLeft","BottomAbsoluteRight","BottomAbsoluteBase","BottomAbsolute","Center","vertical","props","CooldownButton","cooldown","onClick","disabled","isCooldown","trigger","useCooldown","Button","CooldownButtonBase","ButtonBase","CooldownIconButton","IconButton","CopyButtonWrapper","children","onCopySuccess","value","timeout","clipboard","useClipboard","Fragment","v","copied","CustomTableBody","className","loading","stripe","otherProps","TableBody","clsx","CenterAbsoluteCenter","CenterAbsoluteLeft","CenterAbsoluteRight","CenterAbsoluteBase","CenterAbsolute","DebouncedButton","debounce","handleClick","useDebouncedCallback","event","DebouncedButtonBase","DebouncedIconButton","DebouncedRender","leading","trailing","maxWait","content","setContent","useState","timeoutRef","useRef","lastCallTimeRef","closeTimer","useCallback","useEffect","now","invoke","assignRef","FileButton","onChange","multiple","accept","name","form","resetRef","capture","inputProps","inputRef","openRequest","setOpenRequest","handleChange","files","file","reset","jsxs","useComposedRefs","isNil","isNotNil","FlexItemsContainer","items","getItemKey","getItemSize","isLineBreakItem","breakBefore","breakAfter","lineBreakHeight","lineBreakGroup","restProps","Grid","createItems","renderItem","elements","lineStarting","previousGroup","item","i","getLineBreakNode","currGrp","isGroupChanged","prev","curr","keyPrefix","height"],"mappings":"AAAA,y0BAA2L,gCAA6B,yCCArL,+CA0D7B,SAnBUA,CAAAA,CACdC,CAAAA,CAC2C,CAC3C,IAAMC,CAAAA,CAAAA,CAAcC,CAAAA,EAAqC,CACvD,GAAM,CAAE,EAAA,CAAAC,CAAAA,C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C,SAAA,CAAU,8BAAA,CACV,IAAA,CAAK,MAAA,CACL,KAAA,CAAO,CACL,SAAA,CAAW,MAAA,CACX,KAAA,CAAO,CAAA,CACP,MAAA,CAAAc,CACF,CAAA,CAAA,CAPK,CAAA,mBAAA,EAAsBD,CAAS,CAAA,CAAA,EAAIN,CAAC,CAAA,CAAA","file":"/work/cp949/mui-react19/packages/mui/dist/index.cjs","sourcesContent":[null,"import { Box, type BoxProps } from '@mui/material';\nimport type { CSSProperties, FunctionComponent } from 'react';\n\ntype AbsoluteAxisProp = 'top' | 'left' | 'right' | 'bottom';\n\nexport interface AbsoluteBoxAxisConfig {\n cssProp: AbsoluteAxisProp;\n defaultValue?: CSSProperties[AbsoluteAxisProp];\n}\n\nexport interface AbsoluteBoxConfig {\n displayName: string;\n axes: AbsoluteBoxAxisConfig[];\n fixedStyle?: Record<string, string | number>;\n supportsFullWidth: boolean;\n}\n\nexport interface AbsoluteBoxRenderProps extends BoxProps {\n top?: CSSProperties['top'];\n left?: CSSProperties['left'];\n right?: CSSProperties['right'];\n bottom?: CSSProperties['bottom'];\n fullWidth?: boolean;\n}\n\n/**\n * position:absolute 배치 컴포넌트 12종(top/bottom/center-absolute 패밀리)의\n * 공통 sx 조립·ref 전달·props 스프레드 로직을 흡수하는 내부 전용 팩토리.\n * 각 파일의 공개 Props 타입은 이 팩토리와 무관하게 파일별로 직접 선언한다.\n *\n * sx 병합 우선순위(뒤로 갈수록 우선): position → axes(축별 계산값) →\n * config.fixedStyle → fullWidth에 의한 width:100% → 마지막으로 호출자가\n * 전달한 sx prop이 배열 끝에 스프레드되어 위 계산값을 모두 덮어쓴다.\n *\n * `domProps[axis.cssProp] ?? axis.defaultValue`는 nullish coalescing이므로\n * 원래 파일별 기본 매개변수 문법(`{ top = 0 }`)과 달리 명시적 `null`도\n * \"기본값 사용\"으로 취급한다. `CSSProperties`의 position 값은 타입상 `null`을\n * 허용하지 않아 타입 있는 호출자에는 영향 없음 — 회귀가 아닌 의도된 사소한 동작 확장.\n */\nexport function createAbsoluteBox(\n config: AbsoluteBoxConfig,\n): FunctionComponent<AbsoluteBoxRenderProps> {\n const Component = ((allProps: AbsoluteBoxRenderProps) => {\n const { sx, ref, ...domProps } = allProps;\n\n let fullWidth: boolean | undefined;\n if (config.supportsFullWidth) {\n fullWidth = domProps.fullWidth;\n delete domProps.fullWidth;\n }\n\n const axisStyle: Record<string, unknown> = {};\n for (const axis of config.axes) {\n axisStyle[axis.cssProp] = domProps[axis.cssProp] ?? axis.defaultValue;\n delete domProps[axis.cssProp];\n }\n\n return (\n <Box\n ref={ref}\n sx={[\n {\n position: 'absolute',\n ...axisStyle,\n ...config.fixedStyle,\n ...(fullWidth ? { width: '100%' } : {}),\n },\n ...(Array.isArray(sx) ? sx : [sx]),\n ]}\n {...domProps}\n />\n );\n }) as FunctionComponent<AbsoluteBoxRenderProps>;\n\n Component.displayName = config.displayName;\n return Component;\n}\n","import type { BoxProps } from '@mui/material';\nimport type { CSSProperties, FunctionComponent } from 'react';\nimport { createAbsoluteBox } from '../absolute-box/create-absolute-box.js';\n\nexport interface BottomAbsoluteCenterProps extends BoxProps {\n fullWidth?: boolean;\n bottom?: CSSProperties['bottom'];\n}\n\nexport const BottomAbsoluteCenter = createAbsoluteBox({\n displayName: 'BottomAbsolute.Center',\n axes: [{ cssProp: 'bottom', defaultValue: 0 }],\n fixedStyle: { left: '50%', transform: 'translate(-50%, -50%)' },\n supportsFullWidth: true,\n}) as FunctionComponent<BottomAbsoluteCenterProps>;\n","import type { BoxProps } from '@mui/material';\nimport type { CSSProperties, FunctionComponent } from 'react';\nimport { createAbsoluteBox } from '../absolute-box/create-absolute-box.js';\n\nexport interface BottomAbsoluteLeftProps extends BoxProps {\n fullWidth?: boolean;\n bottom?: CSSProperties['bottom'];\n left?: CSSProperties['left'];\n}\n\nexport const BottomAbsoluteLeft = createAbsoluteBox({\n displayName: 'BottomAbsolute.Left',\n axes: [\n { cssProp: 'left', defaultValue: 0 },\n { cssProp: 'bottom', defaultValue: 0 },\n ],\n supportsFullWidth: true,\n}) as FunctionComponent<BottomAbsoluteLeftProps>;\n","import type { BoxProps } from '@mui/material';\nimport type { CSSProperties, FunctionComponent } from 'react';\nimport { createAbsoluteBox } from '../absolute-box/create-absolute-box.js';\n\nexport interface BottomAbsoluteRightProps extends BoxProps {\n fullWidth?: boolean;\n bottom?: CSSProperties['bottom'];\n right?: CSSProperties['right'];\n}\n\nexport const BottomAbsoluteRight = createAbsoluteBox({\n displayName: 'BottomAbsolute.Right',\n axes: [\n { cssProp: 'right', defaultValue: 0 },\n { cssProp: 'bottom', defaultValue: 0 },\n ],\n supportsFullWidth: true,\n}) as FunctionComponent<BottomAbsoluteRightProps>;\n","import type { BoxProps } from '@mui/material';\nimport type { CSSProperties } from 'react';\nimport { createAbsoluteBox } from '../absolute-box/create-absolute-box.js';\nimport { BottomAbsoluteCenter } from './BottomAbsoluteCenter.js';\nimport { BottomAbsoluteLeft } from './BottomAbsoluteLeft.js';\nimport { BottomAbsoluteRight } from './BottomAbsoluteRight.js';\n\nexport type { BottomAbsoluteCenterProps } from './BottomAbsoluteCenter.js';\nexport type { BottomAbsoluteLeftProps } from './BottomAbsoluteLeft.js';\nexport type { BottomAbsoluteRightProps } from './BottomAbsoluteRight.js';\n\nexport interface BottomAbsoluteProps extends BoxProps {\n left?: CSSProperties['left'];\n right?: CSSProperties['right'];\n bottom?: CSSProperties['bottom'];\n}\n\ninterface BottomAbsoluteComponent extends React.FunctionComponent<BottomAbsoluteProps> {\n Left: typeof BottomAbsoluteLeft;\n Right: typeof BottomAbsoluteRight;\n Center: typeof BottomAbsoluteCenter;\n}\n\nconst BottomAbsoluteBase = createAbsoluteBox({\n displayName: 'BottomAbsolute',\n axes: [\n { cssProp: 'bottom', defaultValue: 0 },\n { cssProp: 'left', defaultValue: 0 },\n { cssProp: 'right', defaultValue: 0 },\n ],\n supportsFullWidth: false,\n}) as BottomAbsoluteComponent;\n\nexport const BottomAbsolute = BottomAbsoluteBase;\nBottomAbsolute.Left = BottomAbsoluteLeft;\nBottomAbsolute.Right = BottomAbsoluteRight;\nBottomAbsolute.Center = BottomAbsoluteCenter;\n","import { Box, type BoxProps } from '@mui/material';\n\nexport interface CenterProps extends BoxProps {\n vertical?: boolean;\n}\n\nexport const Center = ({ vertical = false, sx, ref, ...props }: CenterProps) => {\n return (\n <Box\n ref={ref}\n sx={[\n {\n display: 'flex',\n flexDirection: vertical ? 'column' : 'row',\n alignItems: 'center',\n justifyContent: 'center',\n },\n ...(Array.isArray(sx) ? sx : [sx]),\n ]}\n {...props}\n />\n );\n};\n\nCenter.displayName = 'Center';\n","'use client';\n\nimport { Button, type ButtonProps } from '@mui/material';\nimport { useCooldown } from '../hooks/useCooldown.js';\n\nexport interface CooldownButtonProps extends ButtonProps {\n /**\n * Cooldown duration in milliseconds\n */\n cooldown?: number;\n}\n\nexport const CooldownButton = ({\n cooldown = 1000,\n onClick,\n disabled,\n ref,\n ...props\n}: CooldownButtonProps) => {\n const { isCooldown, trigger } = useCooldown(onClick, cooldown);\n\n return (\n <Button {...props} ref={ref} onClick={trigger} disabled={disabled || isCooldown}>\n {props.children}\n </Button>\n );\n};\n\nCooldownButton.displayName = 'CooldownButton';\n","'use client';\n\nimport { ButtonBase, type ButtonBaseProps } from '@mui/material';\nimport { useCooldown } from '../hooks/useCooldown.js';\n\nexport interface CooldownButtonBaseProps extends ButtonBaseProps {\n /**\n * Cooldown duration in milliseconds\n */\n cooldown?: number;\n}\n\nexport const CooldownButtonBase = ({\n cooldown = 1000,\n onClick,\n disabled,\n ref,\n ...props\n}: CooldownButtonBaseProps) => {\n const { isCooldown, trigger } = useCooldown(onClick, cooldown);\n\n return (\n <ButtonBase {...props} ref={ref} onClick={trigger} disabled={disabled || isCooldown}>\n {props.children}\n </ButtonBase>\n );\n};\n\nCooldownButtonBase.displayName = 'CooldownButtonBase';\n","'use client';\n\nimport { IconButton, type IconButtonProps } from '@mui/material';\nimport { useCooldown } from '../hooks/useCooldown.js';\n\nexport interface CooldownIconButtonProps extends IconButtonProps {\n /**\n * Cooldown duration in milliseconds\n */\n cooldown?: number;\n}\n\nexport const CooldownIconButton = ({\n cooldown = 700,\n onClick,\n disabled,\n ref,\n ...props\n}: CooldownIconButtonProps) => {\n const { isCooldown, trigger } = useCooldown(onClick, cooldown);\n\n return (\n <IconButton {...props} ref={ref} onClick={trigger} disabled={disabled || isCooldown}>\n {props.children}\n </IconButton>\n );\n};\n\nCooldownIconButton.displayName = 'CooldownIconButton';\n","'use client';\n\nimport type { ReactNode } from 'react';\nimport { useClipboard } from '../hooks/useClipboard.js';\n\nexport interface CopyButtonWrapperProps {\n /**\n * 자식 컴포넌트 렌더링을 위한 콜백 함수입니다.\n * 현재 복사 상태(`copied`)와 복사 함수(`copy`)를 인자로 제공합니다.\n *\n * @param payload - 현재 상태 및 복사 함수\n * @param payload.copied - 복사 성공 여부를 나타내는 상태\n * @param payload.copy - 값을 클립보드에 복사하는 함수\n *\n * @example\n * ```tsx\n * <CopyButtonWrapper value=\"복사할 텍스트\">\n * {({ copy, copied }) => (\n * <button onClick={copy}>\n * {copied ? \"복사 완료!\" : \"복사하기\"}\n * </button>\n * )}\n * </CopyButtonWrapper>\n * ```\n */\n children: (payload: { copied: boolean; copy: () => void }) => ReactNode;\n\n /**\n * 버튼 클릭 시 클립보드에 복사될 값입니다.\n * 문자열 또는 문자열을 반환하는 함수 형태를 지원합니다.\n *\n * @example\n * ```tsx\n * <CopyButtonWrapper value=\"복사할 텍스트\">\n * ...\n * </CopyButtonWrapper>\n *\n * <CopyButtonWrapper value={() => dynamicValue()}>\n * ...\n * </CopyButtonWrapper>\n * ```\n */\n value: string | null | undefined | (() => string | null | undefined);\n\n /**\n * 복사 성공 상태가 유지되는 시간(밀리초)입니다. 기본값은 `1000`ms입니다.\n *\n * @default 1000\n */\n timeout?: number;\n\n /**\n * 클립보드 복사가 성공했을 때 호출되는 콜백 함수입니다.\n *\n * @param value - 클립보드에 복사된 문자열\n */\n onCopySuccess?: (value: string) => void;\n}\n\n/**\n * 클립보드 복사 버튼을 쉽게 구현하기 위한 래퍼 컴포넌트입니다.\n *\n * @param props - `CopyButtonWrapper`의 속성\n * @returns 자식 콜백 함수로 전달된 UI 요소를 렌더링합니다.\n *\n * @example\n * ```tsx\n * <CopyButtonWrapper value=\"복사할 텍스트\" timeout={2000}>\n * {({ copy, copied }) => (\n * <button onClick={copy}>\n * {copied ? \"복사되었습니다!\" : \"복사\"}\n * </button>\n * )}\n * </CopyButtonWrapper>\n * ```\n */\nexport function CopyButtonWrapper(props: CopyButtonWrapperProps) {\n const { children, onCopySuccess, value, timeout = 1000 } = props;\n const clipboard = useClipboard({ timeout });\n\n // 클립보드에 값을 복사합니다. `value`가 함수인 경우 값을 동적으로 평가합니다.\n const copy = () => {\n const v = typeof value === 'function' ? value() : value;\n if (typeof v === 'string' && v.length > 0) {\n void clipboard.copy(v).then((copied) => {\n if (copied) {\n onCopySuccess?.(v);\n }\n });\n }\n };\n\n return <>{children({ copy, copied: clipboard.copied })}</>;\n}\n","import { TableBody, type TableBodyProps } from '@mui/material';\nimport clsx from 'clsx';\n\nexport interface CustomTableBodyProps extends TableBodyProps {\n loading?: boolean;\n stripe?: boolean;\n}\n\nexport function CustomTableBody(props: CustomTableBodyProps) {\n const { sx, className, loading, stripe, ...otherProps } = props;\n\n return (\n <TableBody\n className={clsx('CustomTableBody-root', className, {\n 'CustomTableBody-stripe': !!stripe,\n 'CustomTableBody-loading': !!loading,\n })}\n sx={[\n {\n '&.CustomTableBody-loading': {\n opacity: 0.5,\n },\n '&.CustomTableBody-stripe': {\n '& .MuiTableRow-root:nth-of-type(even)': {\n backgroundColor: 'action.hover',\n },\n },\n },\n ...(Array.isArray(sx) ? sx : [sx ?? false]),\n ]}\n {...otherProps}\n />\n );\n}\n","import type { BoxProps } from '@mui/material';\nimport type { FunctionComponent } from 'react';\nimport { createAbsoluteBox } from '../absolute-box/create-absolute-box.js';\n\nexport interface CenterAbsoluteCenterProps extends BoxProps {\n fullWidth?: boolean;\n}\n\nexport const CenterAbsoluteCenter = createAbsoluteBox({\n displayName: 'CenterAbsolute.Center',\n axes: [],\n fixedStyle: { top: '50%', left: '50%', transform: 'translate(-50%, -50%)' },\n supportsFullWidth: true,\n}) as FunctionComponent<CenterAbsoluteCenterProps>;\n","import type { BoxProps } from '@mui/material';\nimport type { CSSProperties, FunctionComponent } from 'react';\nimport { createAbsoluteBox } from '../absolute-box/create-absolute-box.js';\n\nexport interface CenterAbsoluteLeftProps extends BoxProps {\n left?: CSSProperties['left'];\n fullWidth?: boolean;\n}\n\nexport const CenterAbsoluteLeft = createAbsoluteBox({\n displayName: 'CenterAbsolute.Left',\n axes: [{ cssProp: 'left', defaultValue: 0 }],\n fixedStyle: { top: '50%', transform: 'translateY(-50%)' },\n supportsFullWidth: true,\n}) as FunctionComponent<CenterAbsoluteLeftProps>;\n","import type { BoxProps } from '@mui/material';\nimport type { CSSProperties, FunctionComponent } from 'react';\nimport { createAbsoluteBox } from '../absolute-box/create-absolute-box.js';\n\nexport interface CenterAbsoluteRightProps extends BoxProps {\n right?: CSSProperties['right'];\n fullWidth?: boolean;\n}\n\nexport const CenterAbsoluteRight = createAbsoluteBox({\n displayName: 'CenterAbsolute.Right',\n axes: [{ cssProp: 'right', defaultValue: 0 }],\n fixedStyle: { top: '50%', transform: 'translateY(-50%)' },\n supportsFullWidth: true,\n}) as FunctionComponent<CenterAbsoluteRightProps>;\n","import type { BoxProps } from '@mui/material';\nimport type { CSSProperties } from 'react';\nimport { createAbsoluteBox } from '../absolute-box/create-absolute-box.js';\nimport { CenterAbsoluteCenter } from './CenterAbsoluteCenter.js';\nimport { CenterAbsoluteLeft } from './CenterAbsoluteLeft.js';\nimport { CenterAbsoluteRight } from './CenterAbsoluteRight.js';\n\nexport type { CenterAbsoluteCenterProps } from './CenterAbsoluteCenter.js';\nexport type { CenterAbsoluteLeftProps } from './CenterAbsoluteLeft.js';\nexport type { CenterAbsoluteRightProps } from './CenterAbsoluteRight.js';\n\nexport interface CenterAbsoluteProps extends BoxProps {\n left?: CSSProperties['left'];\n right?: CSSProperties['right'];\n}\n\ninterface CenterAbsoluteComponent extends React.FunctionComponent<CenterAbsoluteProps> {\n Left: typeof CenterAbsoluteLeft;\n Right: typeof CenterAbsoluteRight;\n Center: typeof CenterAbsoluteCenter;\n}\n\nconst CenterAbsoluteBase = createAbsoluteBox({\n displayName: 'CenterAbsolute',\n axes: [\n { cssProp: 'left', defaultValue: 0 },\n { cssProp: 'right', defaultValue: 0 },\n ],\n fixedStyle: { top: '50%', transform: 'translateY(-50%)' },\n supportsFullWidth: false,\n}) as CenterAbsoluteComponent;\n\nexport const CenterAbsolute = CenterAbsoluteBase;\nCenterAbsolute.Left = CenterAbsoluteLeft;\nCenterAbsolute.Right = CenterAbsoluteRight;\nCenterAbsolute.Center = CenterAbsoluteCenter;\n","'use client';\n\nimport { Button, type ButtonProps } from '@mui/material';\nimport type { MouseEvent } from 'react';\nimport { useDebouncedCallback } from '../hooks/useDebouncedCallback.js';\n\nexport interface DebouncedButtonProps extends ButtonProps {\n /**\n * Debounce duration in milliseconds\n */\n debounce?: number;\n}\n\nexport const DebouncedButton = ({\n debounce = 700,\n onClick,\n disabled,\n children,\n ref,\n ...props\n}: DebouncedButtonProps) => {\n const handleClick = useDebouncedCallback((event: MouseEvent<HTMLButtonElement>) => {\n if (!disabled && onClick) {\n onClick(event);\n }\n }, debounce);\n\n return (\n <Button {...props} ref={ref} onClick={handleClick} disabled={disabled}>\n {children}\n </Button>\n );\n};\n","'use client';\n\nimport { ButtonBase, type ButtonBaseProps } from '@mui/material';\nimport type { MouseEvent } from 'react';\nimport { useDebouncedCallback } from '../hooks/useDebouncedCallback.js';\n\nexport interface DebouncedButtonBaseProps extends ButtonBaseProps {\n /**\n * Debounce duration in milliseconds\n */\n debounce?: number;\n}\n\nexport const DebouncedButtonBase = ({\n debounce = 700,\n onClick,\n disabled,\n children,\n ref,\n ...props\n}: DebouncedButtonBaseProps) => {\n const handleClick = useDebouncedCallback((event: MouseEvent<HTMLButtonElement>) => {\n if (!disabled && onClick) {\n onClick(event);\n }\n }, debounce);\n\n return (\n <ButtonBase {...props} ref={ref} onClick={handleClick} disabled={disabled}>\n {children}\n </ButtonBase>\n );\n};\n","'use client';\n\nimport { IconButton, type IconButtonProps } from '@mui/material';\nimport type { MouseEvent } from 'react';\nimport { useDebouncedCallback } from '../hooks/useDebouncedCallback.js';\n\nexport interface DebouncedIconButtonProps extends IconButtonProps {\n /**\n * Debounce duration in milliseconds\n */\n debounce?: number;\n}\n\nexport const DebouncedIconButton = ({\n debounce = 700,\n onClick,\n disabled,\n ref,\n ...props\n}: DebouncedIconButtonProps) => {\n const handleClick = useDebouncedCallback((event: MouseEvent<HTMLButtonElement>) => {\n if (!disabled && onClick) {\n onClick(event);\n }\n }, debounce);\n\n return (\n <IconButton {...props} ref={ref} onClick={handleClick} disabled={disabled}>\n {props.children}\n </IconButton>\n );\n};\n","'use client';\n\nimport type { FC } from 'react';\nimport { type ReactNode, useCallback, useEffect, useRef, useState } from 'react';\n\n/**\n * @example\n * ```tsx\n * <DebouncedRender leading trailing maxWait={200} disabled={false}>\n * <p>{value}</p>\n * </DebouncedRender>\n * ```\n */\n\n/**\n * DebouncedRender 컴포넌트\n *\n * 이 컴포넌트는 `debounce` 기능을 이용해 자식 컴포넌트를 렌더링하는 빈도를 제어합니다.\n *\n * @param children - 렌더링할 React 노드\n * @param leading - `true`로 설정하면 첫 호출 시 즉시 렌더링합니다. (기본값: `false`)\n * @param trailing - `true`로 설정하면 마지막 호출 후 `maxWait` 시간이 지나면 렌더링합니다. (기본값: `true`)\n * @param maxWait - 렌더링 대기 시간(ms)으로, 기본값은 100ms입니다.\n *\n * @returns DebouncedRender 컴포넌트\n */\nexport interface DebouncedRenderProps {\n children: ReactNode;\n leading?: boolean;\n trailing?: boolean;\n maxWait?: number;\n}\n\nexport const DebouncedRender: FC<DebouncedRenderProps> = ({\n children,\n leading = false,\n trailing = true,\n maxWait = 100,\n}) => {\n const [content, setContent] = useState<ReactNode>(leading ? children : undefined);\n const timeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n const lastCallTimeRef = useRef<number | null>(null);\n\n const closeTimer = useCallback(() => {\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current);\n }\n }, []);\n\n useEffect(() => {\n const now = Date.now();\n const invoke = () => {\n setContent(children);\n lastCallTimeRef.current = now;\n };\n\n if (leading && lastCallTimeRef.current === null) {\n invoke();\n }\n\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current);\n }\n\n timeoutRef.current = setTimeout(() => {\n if (trailing) {\n invoke();\n }\n timeoutRef.current = null;\n }, maxWait);\n\n if (\n leading &&\n lastCallTimeRef.current !== null &&\n now - (lastCallTimeRef.current || 0) >= maxWait\n ) {\n invoke();\n }\n\n return () => {\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current);\n }\n };\n }, [children, leading, trailing, maxWait, closeTimer]);\n\n return <>{content}</>;\n};\n","'use client';\n\nimport type { ReactNode } from 'react';\nimport { useCallback, useEffect, useRef, useState } from 'react';\nimport { useComposedRefs } from '../hooks/useComposedRefs.js';\n\nexport interface FileButtonProps<Multiple extends boolean = false> {\n /**\n * 파일이 선택되었을 때 호출되는 콜백 함수입니다.\n *\n * @param payload - 선택된 파일 또는 파일 배열 (다중 파일 선택 여부에 따라 달라짐)\n */\n onChange: (payload: Multiple extends true ? File[] : File) => void;\n\n /**\n * 버튼 렌더링에 필요한 속성을 제공하는 콜백 함수입니다.\n *\n * @param props - 렌더링할 버튼의 속성\n * @param props.onClick - 파일 선택 다이얼로그를 여는 함수\n *\n * @returns React 노드\n */\n children: (props: { onClick: () => void }) => ReactNode;\n\n /**\n * 사용자가 여러 파일을 선택할 수 있는지 여부를 결정합니다.\n *\n * @default false\n */\n multiple?: Multiple;\n\n /**\n * 파일 입력의 `accept` 속성입니다.\n * 선택할 수 있는 파일 유형을 지정합니다.\n *\n * @example \"image/png,image/jpeg\"\n */\n accept?: string;\n\n /**\n * 파일 입력의 `name` 속성입니다.\n */\n name?: string;\n\n /**\n * 파일 입력의 `form` 속성입니다.\n */\n form?: string;\n\n /**\n * 값이 `null` 또는 빈 배열로 변경될 때 호출되는 함수의 참조입니다.\n */\n resetRef?: React.ForwardedRef<() => void>;\n\n /**\n * 파일 선택기를 비활성화합니다.\n *\n * @default false\n */\n disabled?: boolean;\n\n /**\n * 새 파일을 캡처할 때 사용할 장치를 지정합니다.\n *\n * @example \"user\" (사용자 측 카메라), \"environment\" (환경 카메라)\n */\n capture?: boolean | 'user' | 'environment';\n\n /**\n * 파일 입력 요소에 전달할 추가 속성입니다.\n */\n inputProps?: React.ComponentPropsWithoutRef<'input'>;\n\n /**\n * 내부 파일 입력(`<input type=\"file\">`) 요소로 전달되는 참조입니다.\n */\n ref?: React.Ref<HTMLInputElement>;\n}\n\n/**\n * 주어진 참조(ref)에 값을 할당합니다.\n *\n * @param ref - React 참조\n * @param value - 할당할 값\n */\nfunction assignRef<T>(ref: React.Ref<T> | undefined, value: T) {\n if (typeof ref === 'function') {\n ref(value);\n } else if (typeof ref === 'object' && ref !== null && 'current' in ref) {\n (ref as React.RefObject<T | null>).current = value;\n }\n}\n\ntype FileButtonComponent = (<Multiple extends boolean = false>(\n props: FileButtonProps<Multiple>,\n) => React.ReactElement) & { displayName?: string };\n\n/**\n * 파일 선택 버튼 컴포넌트입니다.\n *\n * 사용자가 파일을 선택하거나 새로 캡처할 수 있는 버튼을 렌더링합니다.\n *\n * @param props - `FileButtonProps` 속성\n * @returns 파일 선택 버튼을 렌더링합니다.\n *\n * @example\n * ```tsx\n * <FileButton onChange={(file) => console.log(file)} accept=\"image/png,image/jpeg\">\n * {({ onClick }) => <button onClick={onClick}>파일 선택</button>}\n * </FileButton>\n * ```\n */\nexport const FileButton: FileButtonComponent = ((props: FileButtonProps<boolean>) => {\n const {\n ref,\n onChange,\n children,\n multiple,\n accept,\n name,\n form,\n resetRef,\n disabled,\n capture,\n inputProps,\n } = props;\n\n const inputRef = useRef<HTMLInputElement>(null);\n const [openRequest, setOpenRequest] = useState(0);\n\n /**\n * 파일 선택 다이얼로그를 엽니다.\n */\n const onClick = useCallback(() => {\n if (disabled) return;\n setOpenRequest((v) => v + 1);\n }, [disabled]);\n\n useEffect(() => {\n if (openRequest === 0) return;\n inputRef.current?.click();\n }, [openRequest]);\n\n /**\n * 파일 선택 후 호출됩니다.\n * @param event - 파일 입력 변경 이벤트\n */\n const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n const files = event.currentTarget?.files;\n if (!files) return;\n if (multiple) {\n onChange(Array.from(files));\n } else {\n const file = files[0];\n if (file) {\n onChange(file);\n }\n }\n };\n\n // 파일 선택 상태를 초기화합니다.\n const reset = useCallback(() => {\n if (inputRef.current) {\n inputRef.current.value = '';\n }\n }, []);\n\n useEffect(() => {\n if (!resetRef) return;\n assignRef(resetRef, reset);\n return () => {\n assignRef(resetRef, () => {});\n };\n }, [resetRef, reset]);\n return (\n <>\n {children({ onClick })}\n <input\n style={{ display: 'none' }}\n type='file'\n accept={accept}\n multiple={multiple}\n onChange={handleChange}\n ref={useComposedRefs(ref, inputRef)}\n name={name}\n form={form}\n capture={capture}\n {...inputProps}\n />\n </>\n );\n}) as FileButtonComponent;\n\nFileButton.displayName = 'FileButton';\n","import { Grid, type GridProps } from '@mui/material';\nimport clsx from 'clsx';\nimport type { ReactElement, ReactNode } from 'react';\nimport { isNil } from '../util/internal-util.js';\n\n/**\n * `FlexItemsContainer`의 속성을 정의하는 인터페이스\n *\n * @template TItem - 리스트 아이템의 타입\n */\nexport type FlexItemsContainerProps<TItem> = Omit<GridProps, 'container' | 'children'> & {\n /** 렌더링할 아이템 배열 */\n items: readonly TItem[];\n\n /** 각 아이템의 고유 키를 반환하는 함수 */\n getItemKey: (item: TItem, index: number) => string | number;\n\n /** 각 아이템의 크기(size)를 결정하는 함수 (선택적) */\n getItemSize?: (item: TItem, index: number) => GridProps['size'] | undefined;\n\n /** 특정 아이템이 줄 바꿈 요소인지 확인하는 함수 (선택적) */\n isLineBreakItem?: (item: TItem, index: number) => boolean;\n\n /** 줄 바꿈을 그룹화하는 함수 (선택적) */\n lineBreakGroup?: (item: TItem, index: number) => unknown;\n\n /** 특정 아이템 전에 줄 바꿈을 적용할지 결정하는 함수 (선택적) */\n breakBefore?: (item: TItem, index: number) => boolean;\n\n /** 특정 아이템 후에 줄 바꿈을 적용할지 결정하는 함수 (선택적) */\n breakAfter?: (item: TItem, index: number) => boolean;\n\n /** 각 아이템을 렌더링하는 함수 */\n children: (item: TItem, index: number) => ReactNode;\n\n /** 줄 바꿈의 높이 (예: `16px`, `1.5rem`, 숫자 등) */\n lineBreakHeight?: number | string;\n};\n\n/**\n * `FlexItemsContainer`는 리스트 아이템을 유연하게 배치하는 컨테이너입니다.\n * forwardRef를 하면 items 타입 추론이 안되므로, 일반 함수 컴포넌트로 작성함\n * @template TItem - 리스트 아이템의 타입\n *\n * @example\n * ```tsx\n * <FlexItemsContainer\n * items={[\"Apple\", \"Banana\", \"Cherry\"]}\n * getItemKey={(item) => item}\n * getItemSize={() => \"auto\"}\n * breakAfter={(item) => item === \"Banana\"}\n * >\n * {(item) => <div>{item}</div>}\n * </FlexItemsContainer>\n * ```\n */\nexport function FlexItemsContainer<TItem>(\n props: FlexItemsContainerProps<TItem>,\n): ReactElement | null {\n const {\n className,\n items,\n getItemKey,\n getItemSize,\n isLineBreakItem,\n breakBefore,\n breakAfter,\n children,\n lineBreakHeight,\n lineBreakGroup,\n ...restProps\n } = props;\n\n if (!Array.isArray(items)) {\n console.error('FlexItemsContainer: items must be an array');\n return null;\n }\n\n return (\n <Grid\n className={clsx('FlexItemsContainer-root', className)}\n container\n role='grid'\n {...restProps}\n >\n {createItems<TItem>({\n items,\n isLineBreakItem,\n lineBreakGroup,\n lineBreakHeight,\n breakBefore,\n breakAfter,\n getItemKey,\n getItemSize,\n renderItem: children,\n })}\n </Grid>\n );\n}\n\nFlexItemsContainer.displayName = 'FlexItemsContainer';\n\ninterface CreateItemsProps<TItem> {\n items: readonly TItem[];\n getItemKey: (item: TItem, index: number) => string | number;\n getItemSize?: (item: TItem, index: number) => GridProps['size'] | undefined;\n isLineBreakItem?: (item: TItem, index: number) => boolean;\n lineBreakGroup?: (item: TItem, index: number) => unknown;\n lineBreakHeight?: number | string;\n breakBefore?: (item: TItem, index: number) => boolean;\n breakAfter?: (item: TItem, index: number) => boolean;\n renderItem: (item: TItem, index: number) => ReactNode;\n}\n\n/**\n * 리스트 아이템을 렌더링하는 함수\n *\n * @template TItem - 리스트 아이템의 타입\n * @param props - 아이템과 렌더링 설정을 포함하는 객체\n * @returns 렌더링된 React 요소 배열\n */\nfunction createItems<TItem>(props: CreateItemsProps<TItem>): ReactElement[] {\n const {\n items,\n getItemKey,\n getItemSize,\n isLineBreakItem,\n lineBreakHeight = 0,\n lineBreakGroup,\n breakBefore,\n breakAfter,\n renderItem,\n } = props;\n\n const elements: ReactElement[] = [];\n let lineStarting = true;\n let previousGroup: unknown;\n\n items.forEach((item, i) => {\n if (isLineBreakItem?.(item, i)) {\n if (!lineStarting) {\n lineStarting = true;\n elements.push(getLineBreakNode(i, 'break-item', lineBreakHeight));\n }\n return;\n }\n\n if (lineBreakGroup) {\n const currGrp = lineBreakGroup(item, i);\n if (isGroupChanged(previousGroup, currGrp)) {\n previousGroup = currGrp;\n if (!lineStarting) {\n lineStarting = true;\n elements.push(getLineBreakNode(i, 'group', lineBreakHeight));\n }\n }\n }\n\n if (!lineStarting && breakBefore?.(item, i)) {\n lineStarting = true;\n elements.push(getLineBreakNode(i, 'break-before', lineBreakHeight));\n }\n\n lineStarting = false;\n elements.push(\n <Grid key={getItemKey(item, i)} size={getItemSize?.(item, i)}>\n {renderItem(item, i)}\n </Grid>,\n );\n\n if (breakAfter?.(item, i)) {\n lineStarting = true;\n elements.push(getLineBreakNode(i, 'break-after', lineBreakHeight));\n }\n });\n\n if (lineStarting && elements.length > 0) {\n elements.pop();\n }\n\n return elements;\n}\n\n/**\n * 두 그룹이 변경되었는지 확인하는 함수\n *\n * @param prev - 이전 그룹\n * @param curr - 현재 그룹\n * @returns `true`이면 그룹이 변경된 것\n */\nfunction isGroupChanged(prev: unknown, curr: unknown): boolean {\n if (isNil(prev) && isNil(curr)) {\n return false;\n }\n return prev !== curr;\n}\n\n/**\n * 줄 바꿈 요소를 생성하는 함수\n *\n * @param i - 요소의 인덱스\n * @param keyPrefix - 키 프리픽스\n * @param height - 줄 바꿈 높이\n * @returns 줄 바꿈을 위한 `Grid2` 요소\n */\nfunction getLineBreakNode(i: number, keyPrefix: string, height: number | string): ReactElement {\n return (\n <Grid\n key={`FlexItemsContainer:${keyPrefix}:${i}`}\n className='FlexItemsContainer-emptyLine'\n size='auto'\n style={{\n flexBasis: '100%',\n width: 0,\n height,\n }}\n />\n );\n}\n","export function isNil<T>(v: T | null | undefined): v is null | undefined {\n return typeof v === 'undefined' || v === null;\n}\n\nexport function isNotNil<T>(v: T | null | undefined): v is T {\n return !isNil(v);\n}\n\nexport function isEmptyObject(value: object) {\n for (const _ in value) {\n return false;\n }\n return true;\n}\n"]}
|