@cp949/mui-react19 2.0.2 → 2.1.0

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.
Files changed (54) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +12 -3
  3. package/dist/closables-CeOGJV-d.d.cts +136 -0
  4. package/dist/closables-CeOGJV-d.d.ts +136 -0
  5. package/dist/file-drop/index.cjs +1 -1
  6. package/dist/file-drop/index.cjs.map +1 -1
  7. package/dist/file-drop/index.d.cts +224 -217
  8. package/dist/file-drop/index.d.ts +224 -217
  9. package/dist/file-drop/index.js +1 -1
  10. package/dist/file-drop/index.js.map +1 -1
  11. package/dist/helper/index.cjs +1 -1
  12. package/dist/helper/index.cjs.map +1 -1
  13. package/dist/helper/index.d.cts +22 -38
  14. package/dist/helper/index.d.ts +22 -38
  15. package/dist/helper/index.js +1 -1
  16. package/dist/helper/index.js.map +1 -1
  17. package/dist/hooks/index.cjs +1 -1
  18. package/dist/hooks/index.cjs.map +1 -1
  19. package/dist/hooks/index.d.cts +439 -305
  20. package/dist/hooks/index.d.ts +439 -305
  21. package/dist/hooks/index.js +1 -1
  22. package/dist/hooks/index.js.map +1 -1
  23. package/dist/index.cjs +1 -1
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +1150 -737
  26. package/dist/index.d.ts +1150 -737
  27. package/dist/index.js +1 -1
  28. package/dist/index.js.map +1 -1
  29. package/dist/misc-utils-B2de-HS4.cjs +2 -0
  30. package/dist/misc-utils-B2de-HS4.cjs.map +1 -0
  31. package/dist/misc-utils-BXQ8UU0R.js +2 -0
  32. package/dist/misc-utils-BXQ8UU0R.js.map +1 -0
  33. package/dist/parallel-map-DyuHvxYY.js +2 -0
  34. package/dist/parallel-map-DyuHvxYY.js.map +1 -0
  35. package/dist/parallel-map-_ZhC5iBn.cjs +2 -0
  36. package/dist/parallel-map-_ZhC5iBn.cjs.map +1 -0
  37. package/dist/rolldown-runtime-Chgba0Kb.cjs +1 -0
  38. package/dist/rolldown-runtime-DK3Fl9T5.js +1 -0
  39. package/llm.txt +350 -0
  40. package/package.json +31 -28
  41. package/dist/chunk-4C666HHU.js +0 -2
  42. package/dist/chunk-4C666HHU.js.map +0 -1
  43. package/dist/chunk-DGBGKY22.cjs +0 -2
  44. package/dist/chunk-DGBGKY22.cjs.map +0 -1
  45. package/dist/chunk-J5UGIABI.js +0 -2
  46. package/dist/chunk-J5UGIABI.js.map +0 -1
  47. package/dist/chunk-M4G6J7DP.cjs +0 -2
  48. package/dist/chunk-M4G6J7DP.cjs.map +0 -1
  49. package/dist/closables-BK0Db72u.d.cts +0 -135
  50. package/dist/closables-BK0Db72u.d.ts +0 -135
  51. package/dist/parallel-map-M764G6IE.js +0 -2
  52. package/dist/parallel-map-M764G6IE.js.map +0 -1
  53. package/dist/parallel-map-V2OVUIFQ.cjs +0 -2
  54. package/dist/parallel-map-V2OVUIFQ.cjs.map +0 -1
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../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","../src/components/FloatingIndicator/FloatingIndicator.tsx","../src/components/FloatingIndicator/useFloatingIndicator.ts","../src/components/FloatingIndicator/index.ts","../src/components/flex/FlexColumn.tsx","../src/util/override-props.ts","../src/components/flex/create-component.tsx","../src/components/flex/FlexRow.tsx","../src/components/Hide.tsx","../src/components/Highlight/Highlight.tsx","../src/components/Mark.tsx","../src/components/Highlight/highlighter/highlighter.ts","../src/components/LengthLimitHelperText.tsx","../src/components/LgOrUp.tsx","../src/components/MdOrDown.tsx","../src/components/MdOrUp.tsx","../src/components/Paper.tsx","../src/components/portlet/Portlet.tsx","../src/components/portlet/PortletContent.tsx","../src/components/portlet/PortletFooter.tsx","../src/components/portlet/PortletHeader.tsx","../src/components/SegmentedControl/SegmentedControl.tsx","../src/components/SegmentedControl/components.ts","../src/components/Show.tsx","../src/components/SmOrDown.tsx","../src/components/SmOrUp.tsx","../src/components/Space.tsx","../src/components/Spoiler.tsx","../src/components/stack/StackColumn.tsx","../src/components/stack/create-component.tsx","../src/components/stack/StackRow.tsx","../src/components/top-absolute/TopAbsolute.tsx","../src/components/top-absolute/TopAbsoluteCenter.tsx","../src/components/top-absolute/TopAbsoluteLeft.tsx","../src/components/top-absolute/TopAbsoluteRight.tsx","../src/components/XsOrDown.tsx","../src/util/event-utils.ts","../src/util/sx-props.ts"],"sourcesContent":["import { Box, type BoxProps } from '@mui/material';\nimport type { CSSProperties } 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.FunctionComponent<BottomAbsoluteProps> {\n Left: typeof BottomAbsoluteLeft;\n Right: typeof BottomAbsoluteRight;\n Center: typeof BottomAbsoluteCenter;\n}\n\nconst BottomAbsoluteBase = (({\n bottom = 0,\n left = 0,\n right = 0,\n sx,\n ref,\n ...props\n}: BottomAbsoluteProps) => {\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}) 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 } from 'react';\n\nexport interface BottomAbsoluteCenterProps extends BoxProps {\n fullWidth?: boolean;\n bottom?: CSSProperties['bottom'];\n}\n\nexport const BottomAbsoluteCenter = ({\n fullWidth,\n bottom = 0,\n sx,\n ref,\n ...props\n}: BottomAbsoluteCenterProps) => {\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\nBottomAbsoluteCenter.displayName = 'BottomAbsolute.Center';\n","import { Box, type BoxProps } from '@mui/material';\nimport type { CSSProperties } from 'react';\n\nexport interface BottomAbsoluteLeftProps extends BoxProps {\n fullWidth?: boolean;\n bottom?: CSSProperties['bottom'];\n left?: CSSProperties['left'];\n}\n\nexport const BottomAbsoluteLeft = ({\n fullWidth,\n left = 0,\n bottom = 0,\n sx,\n ref,\n ...props\n}: BottomAbsoluteLeftProps) => {\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\nBottomAbsoluteLeft.displayName = 'BottomAbsolute.Left';\n","import { Box, type BoxProps } from '@mui/material';\nimport type { CSSProperties } from 'react';\n\nexport interface BottomAbsoluteRightProps extends BoxProps {\n fullWidth?: boolean;\n bottom?: CSSProperties['bottom'];\n right?: CSSProperties['right'];\n}\n\nexport const BottomAbsoluteRight = ({\n fullWidth,\n right = 0,\n bottom = 0,\n sx,\n ref,\n ...props\n}: BottomAbsoluteRightProps) => {\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\nBottomAbsoluteRight.displayName = 'BottomAbsolute.Right';\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 type { MouseEvent } from 'react';\nimport { useState } from 'react';\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, setIsCooldown] = useState(false);\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={ref} onClick={handleClick} 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 type { MouseEvent } from 'react';\nimport { useState } from 'react';\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, setIsCooldown] = useState(false);\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 {...props} ref={ref} onClick={handleClick} 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 type { MouseEvent } from 'react';\nimport { useState } from 'react';\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, setIsCooldown] = useState(false);\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 {...props} ref={ref} onClick={handleClick} 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 { Box, type BoxProps } from '@mui/material';\nimport type { CSSProperties } 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.FunctionComponent<CenterAbsoluteProps> {\n Left: typeof CenterAbsoluteLeft;\n Right: typeof CenterAbsoluteRight;\n Center: typeof CenterAbsoluteCenter;\n}\n\nconst CenterAbsoluteBase = (({ left = 0, right = 0, sx, ref, ...props }: CenterAbsoluteProps) => {\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}) 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';\n\nexport interface CenterAbsoluteCenterProps extends BoxProps {\n fullWidth?: boolean;\n}\n\nexport const CenterAbsoluteCenter = ({\n fullWidth,\n sx,\n ref,\n ...props\n}: CenterAbsoluteCenterProps) => {\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\nCenterAbsoluteCenter.displayName = 'CenterAbsolute.Center';\n","import { Box, type BoxProps } from '@mui/material';\nimport type { CSSProperties } from 'react';\n\nexport interface CenterAbsoluteLeftProps extends BoxProps {\n left?: CSSProperties['left'];\n fullWidth?: boolean;\n}\n\nexport const CenterAbsoluteLeft = ({\n fullWidth,\n left = 0,\n sx,\n ref,\n ...props\n}: CenterAbsoluteLeftProps) => {\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\nCenterAbsoluteLeft.displayName = 'CenterAbsolute.Left';\n","import { Box, type BoxProps } from '@mui/material';\nimport type { CSSProperties } from 'react';\n\nexport interface CenterAbsoluteRightProps extends BoxProps {\n right?: CSSProperties['right'];\n fullWidth?: boolean;\n}\n\nexport const CenterAbsoluteRight = ({\n fullWidth,\n right = 0,\n sx,\n ref,\n ...props\n}: CenterAbsoluteRightProps) => {\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\nCenterAbsoluteRight.displayName = 'CenterAbsolute.Right';\n","'use client';\n\nimport { Button, type ButtonProps } from '@mui/material';\nimport type { MouseEvent } from 'react';\nimport { 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 = ({\n debounce = 700,\n onClick,\n disabled,\n children,\n ref,\n ...props\n}: DebouncedButtonProps) => {\n const debounceTimeout = useRef<ReturnType<typeof setTimeout> | null>(null);\n\n // 언마운트 시 타이머 정리\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","'use client';\n\nimport { ButtonBase, type ButtonBaseProps } from '@mui/material';\nimport type { MouseEvent } from 'react';\nimport { 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 = ({\n debounce = 700,\n onClick,\n disabled,\n children,\n ref,\n ...props\n}: DebouncedButtonBaseProps) => {\n const debounceTimeout = useRef<ReturnType<typeof setTimeout> | null>(null);\n\n // 언마운트 시 타이머 정리\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","'use client';\n\nimport { IconButton, type IconButtonProps } from '@mui/material';\nimport type { MouseEvent } from 'react';\nimport { 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 = ({\n debounce = 700,\n onClick,\n disabled,\n ref,\n ...props\n}: DebouncedIconButtonProps) => {\n const debounceTimeout = useRef<ReturnType<typeof setTimeout> | null>(null);\n\n // 언마운트 시 타이머 정리\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","'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","'use client';\n\nimport type { BoxProps } from '@mui/material';\nimport { Box } from '@mui/material';\nimport clsx from 'clsx';\nimport { useRef } from 'react';\nimport { useComposedRefs } from '../../hooks/useComposedRefs.js';\nimport { useFloatingIndicator } from './useFloatingIndicator.js';\n\n/**\n * FloatingIndicator 컴포넌트의 속성 타입입니다.\n */\nexport interface FloatingIndicatorProps extends BoxProps {\n /** 인디케이터가 표시될 대상 요소 */\n target: HTMLElement | null | undefined;\n\n /** 인디케이터의 위치를 기준으로 계산할 부모 요소 */\n parent: HTMLElement | null | undefined;\n\n /** 전환 시간(ms), 기본값은 150ms */\n transitionDuration?: number | string;\n\n /** 인디케이터가 전환이 끝난 후에 표시되는지 여부 (transform: scale(n) 스타일이 적용된 컨테이너 내부에서 사용 시 설정해야 함) */\n displayAfterTransitionEnd?: boolean;\n\n /**\n * 대상 요소의 보더 두께를 제외하여 인디케이터 크기를 계산할지 여부\n * 기본적으로는 대상 요소의 보더를 포함한 크기로 계산됩니다.\n */\n excludeTargetBorderWidth?: boolean;\n}\n\n/**\n * 주어진 `target`과 `parent` 요소를 기준으로 인디케이터를 화면에 표시하는 컴포넌트입니다.\n * 인디케이터는 부모 요소를 기준으로 `absolute` 위치로 배치되며, 다양한 전환 효과를 지원합니다.\n */\nexport const FloatingIndicator = (props: FloatingIndicatorProps) => {\n const {\n target,\n parent,\n transitionDuration = 150,\n excludeTargetBorderWidth = false,\n displayAfterTransitionEnd,\n sx,\n className,\n ref,\n ...restProps\n } = props;\n\n // 인디케이터 요소의 참조\n const innerRef = useRef<HTMLDivElement>(null!);\n\n // 커스텀 훅을 통해 인디케이터의 초기화 및 표시 여부를 관리\n const { initialized, hidden } = useFloatingIndicator({\n target,\n parent,\n indicatorRef: innerRef,\n excludeTargetBorderWidth,\n displayAfterTransitionEnd,\n });\n\n // forwarded ref와 내부 ref 결합\n const mergedRef = useComposedRefs(ref, innerRef);\n\n // 대상 요소와 부모 요소가 없으면 렌더링하지 않음\n if (!target || !parent) {\n return null;\n }\n\n return (\n <Box\n className={clsx('FloatingIndicator-root', className)}\n ref={mergedRef} // mergedRef를 사용하여 ref 전달\n sx={[\n {\n position: 'absolute', // 절대 위치 지정\n top: 0,\n left: 0,\n transition: `transform ${transitionDuration}ms`, // 전환 효과 적용\n opacity: initialized ? 1 : 0, // 초기화 여부에 따른 opacity\n ...(hidden ? { display: 'none' } : undefined), // 숨겨진 경우 display: none 설정\n },\n ...(Array.isArray(sx) ? sx : [sx ?? false]),\n ]}\n {...restProps} // 나머지 속성들\n />\n );\n};\n","'use client';\n\nimport { type RefObject, useEffect, useRef, useState } from 'react';\nimport { useLatest } from '../../hooks/useLatest.js';\nimport { useMutationObserver } from '../../hooks/useMutationObserver.js';\nimport { useTimeout } from '../../hooks/useTimeout.js';\nimport { isNotNil } from '../../util/internal-util.js';\n\n/**\n * 문자열 값을 정수로 변환하는 유틸리티 함수입니다.\n * @param value 변환할 값\n * @returns 정수 값으로 변환된 숫자\n */\nfunction toInt(value?: string) {\n return value ? parseInt(value, 10) : 0;\n}\n\n/**\n * 부모 요소가 자식 요소를 포함하는지 여부를 확인하는 함수입니다.\n * @param parentElement 부모 요소\n * @param childElement 자식 요소\n * @returns 부모가 자식을 포함하는 경우 true, 그렇지 않으면 false\n */\nfunction isParent(\n parentElement: HTMLElement | EventTarget | null,\n childElement: HTMLElement | null,\n) {\n if (!childElement || !parentElement) {\n return false;\n }\n\n let parent = childElement.parentNode;\n while (isNotNil(parent)) {\n if (parent === parentElement) {\n return true;\n }\n parent = parent.parentNode;\n }\n return false;\n}\n\ninterface UseFloatingIndicatorInput {\n /** 표시할 인디케이터의 대상 요소 */\n target: HTMLElement | null | undefined;\n\n /** 인디케이터가 위치할 부모 요소 */\n parent: HTMLElement | null | undefined;\n\n /** 인디케이터 DOM 참조 */\n indicatorRef: RefObject<HTMLDivElement | null>;\n\n /** 인디케이터 크기 계산 시 대상 요소의 보더 두께를 제외할지 여부 */\n excludeTargetBorderWidth?: boolean;\n\n /** 전환이 끝난 후에 인디케이터를 표시할지 여부 */\n displayAfterTransitionEnd?: boolean;\n}\n\n/**\n * `target` 요소의 위치와 크기를 기반으로 인디케이터를 위치시킵니다.\n * 인디케이터는 `parent` 요소를 기준으로 절대 위치가 지정되며, 보더 두께를 고려하여 계산됩니다.\n * @param target 대상 요소\n * @param parent 부모 요소\n * @param indicatorRef 인디케이터 DOM 참조\n * @param excludeTargetBorderWidth 대상 요소의 보더 두께를 제외할지 여부\n * @param displayAfterTransitionEnd 전환 종료 후에 인디케이터 표시 여부\n * @returns 초기화 여부와 숨김 상태 반환\n */\nexport function useFloatingIndicator({\n target,\n parent,\n indicatorRef,\n excludeTargetBorderWidth = false,\n displayAfterTransitionEnd = false,\n}: UseFloatingIndicatorInput) {\n const transitionTimeout = useRef(-1);\n const [initialized, setInitialized] = useState(false);\n\n const [hidden, setHidden] = useState(displayAfterTransitionEnd);\n\n /**\n * 인디케이터의 위치를 업데이트하는 함수입니다.\n * target과 parent 요소의 크기 및 위치를 계산하여 인디케이터에 적용합니다.\n */\n const updatePosition = useLatest(() => {\n if (!target || !parent || !indicatorRef.current) {\n return;\n }\n\n // getBoundingClientRect()를 사용하여 대상과 부모 요소의 크기 및 위치를 가져옵니다\n // getBoundingClientRect()는 보더의 두께를 포함합니다\n const targetRect = target.getBoundingClientRect();\n const parentRect = parent.getBoundingClientRect();\n\n const targetComputedStyle = window.getComputedStyle(target);\n const parentComputedStyle = window.getComputedStyle(parent);\n\n const parentBorderWidth = {\n top: toInt(parentComputedStyle.borderTopWidth),\n left: toInt(parentComputedStyle.borderLeftWidth),\n };\n\n const targetBorderWidth = {\n top: toInt(targetComputedStyle.borderTopWidth),\n bottom: toInt(targetComputedStyle.borderBottomWidth),\n left: toInt(targetComputedStyle.borderLeftWidth),\n right: toInt(targetComputedStyle.borderRightWidth),\n };\n\n // 인디케이터의 위치 및 크기 계산\n const indicatorRect = {\n top: targetRect.top - parentRect.top - parentBorderWidth.top,\n left: targetRect.left - parentRect.left - parentBorderWidth.left,\n width: targetRect.width,\n height: targetRect.height,\n };\n\n // 보더 두께 제외 설정이 활성화되면 보더 두께를 제외한 크기로 설정\n if (excludeTargetBorderWidth) {\n indicatorRect.top += targetBorderWidth.top;\n indicatorRect.left += targetBorderWidth.left;\n indicatorRect.height -= targetBorderWidth.top + targetBorderWidth.bottom;\n indicatorRect.width -= targetBorderWidth.left + targetBorderWidth.right;\n }\n\n // 인디케이터 스타일 업데이트\n indicatorRef.current.style.transform = `translateX(${indicatorRect.left}px) translateY(${indicatorRect.top}px)`;\n indicatorRef.current.style.width = `${indicatorRect.width}px`;\n indicatorRef.current.style.height = `${indicatorRect.height}px`;\n });\n\n /**\n * 애니메이션 없이 인디케이터의 위치를 업데이트하는 함수입니다.\n * 애니메이션을 제거한 후 즉시 위치를 업데이트하고, 잠시 후 다시 전환 지속 시간을 원상 복구합니다.\n */\n const updatePositionWithoutAnimation = useLatest(() => {\n window.clearTimeout(transitionTimeout.current);\n if (indicatorRef.current) {\n indicatorRef.current.style.transitionDuration = '0ms';\n }\n updatePosition.current();\n transitionTimeout.current = window.setTimeout(() => {\n if (indicatorRef.current) {\n indicatorRef.current.style.transitionDuration = '';\n }\n }, 30);\n });\n\n const targetResizeObserver = useRef<ResizeObserver | null>(null);\n const parentResizeObserver = useRef<ResizeObserver | null>(null);\n\n useEffect(() => {\n updatePosition.current();\n\n // target과 parent 요소에 리사이즈 이벤트 리스너 설정\n if (target) {\n targetResizeObserver.current = new ResizeObserver(updatePositionWithoutAnimation.current);\n targetResizeObserver.current.observe(target);\n\n if (parent) {\n parentResizeObserver.current = new ResizeObserver(updatePositionWithoutAnimation.current);\n parentResizeObserver.current.observe(parent);\n }\n\n return () => {\n targetResizeObserver.current?.disconnect();\n parentResizeObserver.current?.disconnect();\n };\n }\n\n return undefined;\n }, [parent, target, updatePosition, updatePositionWithoutAnimation]);\n\n useEffect(() => {\n if (parent) {\n const handleTransitionEnd = (event: TransitionEvent) => {\n if (isParent(event.target, parent)) {\n updatePositionWithoutAnimation.current();\n setHidden(false);\n }\n };\n\n parent.addEventListener('transitionend', handleTransitionEnd);\n return () => {\n parent.removeEventListener('transitionend', handleTransitionEnd);\n };\n }\n\n return undefined;\n }, [parent, updatePositionWithoutAnimation]);\n\n // 초기화 타이머 설정\n useTimeout(\n () => {\n setInitialized(true);\n },\n 20,\n { autoInvoke: true },\n );\n\n // DOM 변화 감지 및 처리\n useMutationObserver(\n (mutations) => {\n mutations.forEach((mutation) => {\n if (mutation.type === 'attributes' && mutation.attributeName === 'dir') {\n updatePositionWithoutAnimation.current();\n }\n });\n },\n { attributes: true, attributeFilter: ['dir'] },\n () => document.documentElement,\n );\n\n return { initialized, hidden };\n}\n","import { FloatingIndicator } from './FloatingIndicator.js';\n\nexport * from './FloatingIndicator.js';\n\nexport default FloatingIndicator;\n","import { Box } from '@mui/material';\nimport { overrideProps } from '../../util/override-props.js';\nimport { createFlexComponent } from './create-component.js';\nimport type { FlexBaseProps } from './types.js';\n\nconst FlexColumnStart = createFlexComponent('FlexColumn.Start', 'column', {\n justifyContent: 'flex-start',\n});\n\nconst FlexColumnEnd = createFlexComponent('FlexColumn.End', 'column', {\n justifyContent: 'flex-end',\n});\n\nconst FlexColumnCenter = createFlexComponent('FlexColumn.Center', 'column', {\n justifyContent: 'center',\n});\n\nconst FlexColumnAround = createFlexComponent('FlexColumn.Around', 'column', {\n justifyContent: 'space-around',\n});\n\nconst FlexColumnBetween = createFlexComponent('FlexColumn.Between', 'column', {\n justifyContent: 'space-between',\n});\n\nconst FlexColumnEvenly = createFlexComponent('FlexColumn.Evenly', 'column', {\n justifyContent: 'space-evenly',\n});\n\nexport interface FlexColumnProps extends FlexBaseProps {\n center?: boolean;\n}\n\ninterface FlexColumnComponent extends React.FunctionComponent<FlexColumnProps> {\n Start: typeof FlexColumnStart;\n End: typeof FlexColumnEnd;\n Center: typeof FlexColumnCenter;\n Between: typeof FlexColumnBetween;\n Around: typeof FlexColumnAround;\n Evenly: typeof FlexColumnEvenly;\n}\n\nconst FlexColumnBase = (({\n center,\n inlineFlex,\n justifyContent,\n alignItems,\n flexWrap,\n sx,\n ref,\n ...props\n}: FlexColumnProps) => {\n return (\n <Box\n ref={ref}\n sx={[\n {\n display: inlineFlex ? 'inline-flex' : 'flex',\n flexDirection: 'column',\n ...overrideProps(\n center\n ? {\n justifyContent: 'center',\n alignItems: 'center',\n }\n : {},\n { justifyContent, alignItems, flexWrap },\n ),\n },\n ...(Array.isArray(sx) ? sx : [sx]),\n ]}\n {...props}\n />\n );\n}) as FlexColumnComponent;\nFlexColumnBase.displayName = 'FlexColumnBase';\n\nexport const FlexColumn = FlexColumnBase;\nFlexColumn.displayName = 'FlexColumn';\nFlexColumn.Start = FlexColumnStart;\nFlexColumn.End = FlexColumnEnd;\nFlexColumn.Center = FlexColumnCenter;\nFlexColumn.Between = FlexColumnBetween;\nFlexColumn.Evenly = FlexColumnEvenly;\nFlexColumn.Around = FlexColumnAround;\n","/**\n * 기본 props 객체와 여러 오버라이드 props 객체를 병합하여 하나의 새로운 객체를 반환합니다.\n *\n * - `overrides`에 전달된 값들 중 `undefined`는 무시됩니다.\n * - 반환된 객체의 모든 프로퍼티에서 `undefined`가 제거됩니다.\n *\n * @template T - 기본 props 타입\n * @template R - 오버라이드할 props 타입 배열\n *\n * @param targetProps - 병합의 기준이 되는 기본 props 객체\n * @param overrides - 병합할 여러 오버라이드 props 객체 (가변인자)\n * @returns 병합된 새로운 객체로, `undefined` 값이 제거된 상태로 반환됩니다.\n *\n * @example\n * ```typescript\n * const defaultProps = {\n * label: \"기본값\",\n * onClick: () => console.log(\"기본 클릭\"),\n * };\n *\n * const override1 = {\n * label: \"오버라이드 1\",\n * onClick: undefined, // undefined는 무시\n * };\n *\n * const override2 = {\n * style: { color: \"red\" },\n * };\n *\n * const finalProps = overrideProps(defaultProps, override1, override2);\n *\n * // 결과:\n * // {\n * // label: \"오버라이드 1\",\n * // onClick: () => console.log(\"기본 클릭\"), // 기본값 유지\n * // style: { color: \"red\" }\n * // }\n * ```\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function overrideProps<T extends Record<string, any>, R extends Record<string, any>[]>(\n targetProps: T,\n ...overrides: R\n): { [K in keyof (T & R[number])]: Exclude<(T & R[number])[K], undefined> } {\n // 기본 props를 필터링\n const filteredTargetProps = Object.fromEntries(\n Object.entries(targetProps).filter(([_, value]) => value !== undefined),\n );\n\n // 모든 overrides를 순차적으로 병합\n const filteredOverrides = overrides.reduce<Record<string, unknown>>((acc, current) => {\n const filteredCurrent = Object.fromEntries(\n Object.entries(current).filter(([_, value]) => value !== undefined),\n );\n Object.assign(acc, filteredCurrent);\n return acc;\n }, {});\n\n // 최종 병합된 결과 반환\n return {\n ...filteredTargetProps,\n ...filteredOverrides,\n } as { [K in keyof (T & R[number])]: Exclude<(T & R[number])[K], undefined> };\n}\n","import { Box } from '@mui/material';\nimport type { CSSProperties, FunctionComponent } from 'react';\nimport { overrideProps } from '../../util/override-props.js';\nimport type { FlexBaseProps } from './types.js';\n\nexport function createFlexComponent(\n displayName: string,\n flexDirection: CSSProperties['flexDirection'],\n defaultProps: object,\n) {\n // ref-as-prop: FlexBaseProps가 BoxProps를 extends하므로 ref는 자동 포함된다(D-02a).\n // FunctionComponent 캐스트로 Component.displayName 동적 할당을 타입 에러 없이 유지한다(D-02).\n const Component = (({\n inlineFlex,\n justifyContent,\n alignItems,\n flexWrap,\n sx,\n ref,\n ...props\n }: FlexBaseProps) => {\n return (\n <Box\n ref={ref}\n sx={[\n {\n display: inlineFlex ? 'inline-flex' : 'flex',\n flexDirection,\n ...overrideProps(defaultProps, {\n justifyContent,\n alignItems,\n flexWrap,\n }),\n },\n ...(Array.isArray(sx) ? sx : [sx]),\n ]}\n {...props}\n />\n );\n }) as FunctionComponent<FlexBaseProps>;\n Component.displayName = displayName;\n return Component;\n}\n","import { Box } from '@mui/material';\nimport { overrideProps } from '../../util/override-props.js';\nimport { createFlexComponent } from './create-component.js';\nimport type { FlexBaseProps } from './types.js';\n\nconst FlexRowStart = createFlexComponent('FlexRow.Start', 'row', {\n justifyContent: 'flex-start',\n});\n\nconst FlexRowEnd = createFlexComponent('FlexRow.End', 'row', {\n justifyContent: 'flex-end',\n});\n\nconst FlexRowAround = createFlexComponent('FlexRow.Around', 'row', {\n justifyContent: 'space-around',\n});\n\nconst FlexRowBetween = createFlexComponent('FlexRow.Between', 'row', {\n justifyContent: 'space-between',\n});\n\nconst FlexRowEvenly = createFlexComponent('FlexRow.Evenly', 'row', {\n justifyContent: 'space-evenly',\n});\n\nconst FlexRowCenter = createFlexComponent('FlexRow.Center', 'row', {\n justifyContent: 'center',\n});\n\nexport interface FlexRowProps extends FlexBaseProps {\n center?: boolean;\n}\n\ninterface FlexRowComponent extends React.FunctionComponent<FlexRowProps> {\n Start: typeof FlexRowStart;\n End: typeof FlexRowEnd;\n Center: typeof FlexRowCenter;\n Between: typeof FlexRowBetween;\n Around: typeof FlexRowAround;\n Evenly: typeof FlexRowEvenly;\n}\n\nconst FlexRowBase = (({\n center,\n inlineFlex = false,\n justifyContent,\n alignItems,\n flexWrap,\n sx,\n ref,\n ...props\n}: FlexRowProps) => {\n // undefined/null/false 완전히 제거하여 hydration error 방지\n const sxArray = Array.isArray(sx) ? sx.filter(Boolean) : sx ? [sx] : [];\n\n const baseStyle = {\n display: inlineFlex ? 'inline-flex' : 'flex',\n flexDirection: 'row' as const,\n ...overrideProps(\n center\n ? {\n justifyContent: 'center' as const,\n alignItems: 'center' as const,\n }\n : {},\n { justifyContent, alignItems, flexWrap },\n ),\n };\n\n return <Box ref={ref} sx={sxArray.length > 0 ? [baseStyle, ...sxArray] : baseStyle} {...props} />;\n}) as FlexRowComponent;\nFlexRowBase.displayName = 'FlexRowBase';\n\nexport const FlexRow = FlexRowBase;\nFlexRow.displayName = 'FlexRow';\nFlexRow.Start = FlexRowStart;\nFlexRow.End = FlexRowEnd;\nFlexRow.Center = FlexRowCenter;\nFlexRow.Between = FlexRowBetween;\nFlexRow.Around = FlexRowAround;\nFlexRow.Evenly = FlexRowEvenly;\n","import type { ReactNode } from 'react';\n\nexport interface HideProps {\n /**\n * 개발자 설명\n */\n devComment?: unknown;\n\n children?: ReactNode;\n}\n\nexport function Hide(_props: HideProps) {\n return null;\n}\n","import type { SxProps, Theme, TypographyProps } from '@mui/material';\nimport { Typography } from '@mui/material';\nimport clsx from 'clsx';\nimport { type CSSProperties, type Ref, useMemo } from 'react';\nimport { Mark } from '../Mark.js';\nimport { highlighter } from './highlighter/highlighter.js';\n\n/**\n * 특정 텍스트의 부분 문자열을 강조 표시하는 컴포넌트입니다.\n *\n * - `highlight` 속성을 사용해 강조 표시할 문자열 또는 문자열 배열을 지정할 수 있습니다.\n * - 강조 표시된 텍스트는 `Mark` 컴포넌트를 사용하여 스타일링됩니다.\n * - 다양한 사용자 정의 스타일과 속성을 지원합니다.\n */\nexport interface HighlightProps {\n /**\n * `sx` 속성을 사용해 스타일을 추가로 설정할 수 있습니다.\n */\n sx?: SxProps<Theme>;\n\n /**\n * 추가로 적용할 CSS 클래스 이름입니다.\n */\n className?: string;\n\n /**\n * 인라인 스타일을 적용할 수 있습니다.\n */\n style?: CSSProperties;\n\n /**\n * MUI `Typography` 컴포넌트의 `variant` 속성입니다.\n */\n variant?: TypographyProps['variant'];\n\n /**\n * 강조 표시할 부분 문자열 또는 문자열 배열입니다.\n *\n * @example\n * ```tsx\n * <Highlight highlight=\"React\">React is amazing!</Highlight>\n * <Highlight highlight={[\"React\", \"amazing\"]}>React is amazing!</Highlight>\n * ```\n */\n highlight: string | string[];\n\n /**\n * 강조 표시된 텍스트의 색상을 지정합니다.\n * `theme.colors` 키 또는 유효한 CSS 색상 값을 사용할 수 있습니다.\n * 기본값은 `yellow`입니다.\n */\n color?: string;\n\n /**\n * 강조 표시된 텍스트에 적용할 추가 스타일입니다.\n */\n highlightSx?: SxProps;\n\n /**\n * 강조 표시 작업을 수행할 문자열입니다.\n */\n children: string;\n\n /**\n * 대소문자를 무시하고 강조 표시할지 여부를 설정합니다.\n *\n * @default false\n */\n ignorecase?: boolean;\n\n /**\n * 강조 표시된 텍스트에 `data-highlight` 속성을 추가할지 여부를 설정합니다.\n *\n * @default false\n */\n includeDataAttribute?: boolean;\n\n ref?: Ref<HTMLElement>;\n}\n\n/**\n * `Highlight` 컴포넌트는 주어진 텍스트에서 특정 문자열을 강조 표시합니다.\n *\n * - 강조 표시된 텍스트는 `Mark` 컴포넌트를 사용하여 스타일링됩니다.\n * - 대소문자 무시, 사용자 정의 색상 및 스타일 등 다양한 옵션을 제공합니다.\n *\n * @param props - `HighlightProps` 속성\n * @returns 강조 표시된 텍스트를 포함한 `Typography` 컴포넌트를 렌더링합니다.\n *\n * @example\n * ```tsx\n * <Highlight\n * highlight=\"highlight\"\n * color=\"red\"\n * ignorecase\n * includeDataAttribute\n * >\n * This is a highlight example.\n * </Highlight>\n * ```\n */\nexport const Highlight = (props: HighlightProps) => {\n const {\n sx,\n className,\n style,\n variant,\n highlight,\n color,\n highlightSx,\n ignorecase = false,\n includeDataAttribute = false,\n children,\n ref,\n ...restProps\n } = props;\n\n const highlightChunks = useMemo<{ chunk: string; highlighted: boolean }[]>(\n () => highlighter(children, highlight, { ignorecase }),\n [children, highlight, ignorecase],\n );\n\n return (\n <Typography\n ref={ref}\n variant={variant}\n className={clsx('Highlight-root', className)}\n sx={sx}\n style={style}\n {...restProps}\n >\n {highlightChunks.map(({ chunk, highlighted }, i) =>\n highlighted ? (\n includeDataAttribute ? (\n <Mark key={i} color={color} sx={highlightSx} data-highlight={chunk}>\n {chunk}\n </Mark>\n ) : (\n <Mark key={i} color={color} sx={highlightSx}>\n {chunk}\n </Mark>\n )\n ) : (\n <span key={i}>{chunk}</span>\n ),\n )}\n </Typography>\n );\n};\n\nHighlight.displayName = 'Highlight';\n","import type { SxProps } from '@mui/material';\nimport { Box } from '@mui/material';\nimport clsx from 'clsx';\nimport type { ReactNode, Ref } from 'react';\n\nexport interface MarkProps {\n sx?: SxProps;\n\n className?: string;\n\n color?: string;\n\n bgcolor?: string;\n\n children?: ReactNode;\n\n ref?: Ref<HTMLElement>;\n}\n\nexport const Mark = (props: MarkProps) => {\n // restProps는 data-xxx를 적용하기 위해 필요함\n const { sx, className, color = '#000', bgcolor = '#ff0', children, ref, ...restProps } = props;\n return (\n <Box\n className={clsx('Mark-root', className)}\n component='mark'\n ref={ref}\n sx={[\n {\n display: 'inline-block',\n color,\n bgcolor,\n },\n ...(Array.isArray(sx) ? sx : [sx ?? false]),\n ]}\n {...restProps}\n >\n {children}\n </Box>\n );\n};\n\nMark.displayName = 'Mark';\n","function escapeRegex(value: string) {\n return value.replace(/[-[\\]{}()*+?.,\\\\^$|#]/g, '\\\\$&');\n}\n\nexport function highlighter(\n value: string,\n _highlight: string | string[],\n option?: {\n ignorecase?: boolean;\n },\n) {\n if (!_highlight || _highlight.length === 0) {\n return [{ chunk: value, highlighted: false }];\n }\n\n const ignorecase = option?.ignorecase ?? true;\n\n const highlight = Array.isArray(_highlight)\n ? _highlight.map(escapeRegex)\n : escapeRegex(_highlight);\n\n const shouldHighlight = Array.isArray(highlight)\n ? highlight.filter((part) => part.trim().length > 0).length > 0\n : highlight.trim() !== '';\n\n if (!shouldHighlight) {\n return [{ chunk: value, highlighted: false }];\n }\n\n const matcher =\n typeof highlight === 'string'\n ? highlight.trim()\n : highlight\n .filter((part) => part.trim().length !== 0)\n .map((part) => part.trim())\n .sort((a, b) => b.length - a.length)\n .join('|');\n\n const re = new RegExp(`(${matcher})`, ignorecase ? 'gi' : 'g');\n const chunks = value\n .split(re)\n .map((part) => ({ chunk: part, highlighted: re.test(part) }))\n .filter(({ chunk }) => chunk);\n\n return chunks;\n}\n","import { Box, type SxProps } from '@mui/material';\nimport clsx from 'clsx';\nimport type { ReactNode } from 'react';\n\ninterface Props {\n sx?: SxProps;\n className?: string;\n text?: ReactNode;\n maxLen: number;\n currentLen?: number;\n}\n\nexport function LengthLimitHelperText(props: Props) {\n const { sx, className, text, maxLen, currentLen = 0 } = props;\n\n const error = currentLen > maxLen;\n\n if (text) {\n return (\n <Box\n className={clsx('LengthLimitHelperText-root', className)}\n component='span'\n sx={[\n {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n color: error ? 'error.main' : 'text.secondary',\n },\n ...(Array.isArray(sx) ? sx : [sx ?? false]),\n ]}\n >\n {typeof text === 'string' ? <span>{text}</span> : text}\n <Box component='span' sx={{ ml: 2, whiteSpace: 'nowrap' }}>\n {currentLen} / {maxLen}\n </Box>\n </Box>\n );\n }\n\n return (\n <Box\n className={clsx('LengthLimitHelperText-root', className)}\n component='span'\n sx={[\n {\n display: 'flex',\n justifyContent: 'flex-end',\n alignItems: 'center',\n color: error ? 'error.main' : 'text.secondary',\n whiteSpace: 'nowrap',\n },\n ...(Array.isArray(sx) ? sx : [sx ?? false]),\n ]}\n >\n {currentLen} / {maxLen}\n </Box>\n );\n}\n","'use client';\n\nimport { type Theme, useMediaQuery } from '@mui/material';\nimport type { ReactNode } from 'react';\n\nexport interface LgOrUpProps {\n children?: ReactNode | ReactNode[];\n}\n\nexport function LgOrUp(props: LgOrUpProps) {\n const { children } = props;\n const matched = useMediaQuery((theme: Theme) => theme.breakpoints.up('lg'));\n if (!matched || !children) return null;\n return <>{children}</>;\n}\n","'use client';\n\nimport { type Theme, useMediaQuery } from '@mui/material';\nimport type { ReactNode } from 'react';\n\nexport interface MdOrDownProps {\n children?: ReactNode | ReactNode[];\n}\n\nexport function MdOrDown(props: MdOrDownProps) {\n const { children } = props;\n const matched = useMediaQuery((theme: Theme) => theme.breakpoints.down('lg'));\n if (!matched || !children) return null;\n return <>{children}</>;\n}\n","'use client';\n\nimport { type Theme, useMediaQuery } from '@mui/material';\nimport type { ReactNode } from 'react';\n\nexport interface MdOrUpProps {\n children?: ReactNode | ReactNode[];\n}\n\nexport function MdOrUp(props: MdOrUpProps) {\n const { children } = props;\n const matched = useMediaQuery((theme: Theme) => theme.breakpoints.up('md'));\n if (!matched || !children) return null;\n return <>{children}</>;\n}\n","import { Paper as MuiPaper, type PaperProps as MuiPaperProps } from '@mui/material';\nimport clsx from 'clsx';\n\nexport interface PaperProps extends MuiPaperProps {\n squared?: boolean;\n outlined?: boolean;\n}\n\nexport function Paper(props: PaperProps) {\n const { className, sx, squared, outlined, children, ...rest } = props;\n return (\n <MuiPaper\n {...rest}\n className={clsx('Paper-root', className)}\n sx={[\n {\n borderRadius: squared ? 0 : 1,\n border: outlined ? '1px solid #ddd' : 'none',\n },\n ...(Array.isArray(sx) ? sx : [sx ?? false]),\n ]}\n >\n {children}\n </MuiPaper>\n );\n}\n","import { Paper, type PaperProps } from '@mui/material';\nimport type { ReactNode } from 'react';\nimport { PortletContent } from './PortletContent.js';\nimport { PortletFooter } from './PortletFooter.js';\nimport { PortletHeader } from './PortletHeader.js';\n\nexport type { PortletContentProps } from './PortletContent.js';\nexport type { PortletFooterProps } from './PortletFooter.js';\nexport type { PortletHeaderProps } from './PortletHeader.js';\n\nconst defaultProps: PaperProps = {\n square: true,\n};\n\nexport interface PortletProps extends Omit<PaperProps, 'elevation' | 'component' | 'nonce'> {\n children?: ReactNode;\n}\n\ninterface PortletComponent extends React.FunctionComponent<PortletProps> {\n Content: typeof PortletContent;\n Header: typeof PortletHeader;\n Footer: typeof PortletFooter;\n}\n\nexport const Portlet = ((props: PortletProps) => {\n const { sx, className, children, ref, ...restProps } = props;\n return (\n <Paper\n {...defaultProps}\n {...restProps}\n elevation={0}\n ref={ref}\n component='div'\n className={className ? `Portlet-root ${className}` : 'Portlet-root'}\n sx={[\n {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'stretch',\n border: '1px solid #E0E4EE',\n },\n ...(Array.isArray(sx) ? sx : [sx ?? false]),\n ]}\n >\n {children}\n </Paper>\n );\n}) as PortletComponent;\n\nPortlet.displayName = 'Portlet';\nPortlet.Content = PortletContent;\nPortlet.Header = PortletHeader;\nPortlet.Footer = PortletFooter;\n","import { Box, type BoxProps } from '@mui/material';\nimport { clsx } from 'clsx';\n\nexport interface PortletContentProps extends BoxProps {\n noPadding?: boolean;\n}\n\nexport const PortletContent = (props: PortletContentProps) => {\n const { noPadding = false, className, sx, children, ref, ...restProps } = props;\n return (\n <Box\n {...restProps}\n className={clsx('PortletContent-root', className, {\n 'PortletContent-noPadding': noPadding,\n })}\n ref={ref}\n sx={[\n (theme) => ({\n flex: 1,\n p: theme.spacing(2, 3),\n '&.PortletContent-noPadding': {\n p: 0,\n },\n }),\n ...(Array.isArray(sx) ? sx : [sx ?? false]),\n ]}\n >\n {children}\n </Box>\n );\n};\n\nPortletContent.displayName = 'PortletContent';\n","import { Box, type BoxProps } from '@mui/material';\nimport { clsx } from 'clsx';\n\nexport interface PortletFooterProps extends BoxProps {\n noDivider?: boolean;\n}\n\nexport const PortletFooter = (props: PortletFooterProps) => {\n const { noDivider, sx, className, children, ref, ...rest } = props;\n return (\n <Box\n {...rest}\n className={clsx('PortletFooter-root', className, {\n 'PortletFooter-noDivider': noDivider,\n })}\n ref={ref}\n sx={[\n (theme) => ({\n p: theme.spacing(1, 2),\n borderTop: '1px solid #E0E4EE',\n borderBottomLeftRadius: '2px',\n borderBottomRightRadius: '2px',\n '&.PortletFooter-noDivider': {\n borderTop: 'none',\n },\n }),\n ...(Array.isArray(sx) ? sx : [sx ?? false]),\n ]}\n >\n {children}\n </Box>\n );\n};\n\nPortletFooter.displayName = 'PortletFooter';\n","import { Box, type BoxProps } from '@mui/material';\nimport { clsx } from 'clsx';\n\nexport interface PortletHeaderProps extends BoxProps {\n noDivider?: boolean;\n noPadding?: boolean;\n}\n\nexport const PortletHeader = (props: PortletHeaderProps) => {\n const { children, noDivider, className, noPadding = false, sx, ref, ...rest } = props;\n\n return (\n <Box\n {...rest}\n className={clsx('PortletHeader-root', className, {\n 'PortletHeader-noPadding': noPadding,\n 'PortletHeader-noDivider': noDivider,\n })}\n ref={ref}\n sx={[\n (theme) => ({\n position: 'relative',\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n borderBottom: '1px solid #E0E4EE',\n borderTopLeftRadius: 2,\n borderTopRightRadius: 2,\n height: 56,\n minHeight: 56,\n p: theme.spacing(0.5, 1, 0.5, 3),\n '&.PortletHeader-noPadding': {\n p: theme.spacing(0.5, 0, 0.5, 0),\n },\n '&.PortletHeader-noDivider': {\n borderBottom: 'none',\n },\n }),\n ...(Array.isArray(sx) ? sx : [sx ?? false]),\n ]}\n >\n {children}\n </Box>\n );\n};\n\nPortletHeader.displayName = 'PortletHeader';\n","import type { SxProps, Theme, TypographyProps } from '@mui/material';\nimport { Box } from '@mui/material';\nimport clsx from 'clsx';\nimport type { CSSProperties, ReactNode, Ref } from 'react';\nimport { useState } from 'react';\nimport { useComposedRefs } from '../../hooks/useComposedRefs.js';\nimport { useId } from '../../hooks/useId.js';\nimport { useUncontrolled } from '../../hooks/useUncontrolled.js';\nimport FloatingIndicator from '../FloatingIndicator/index.js';\nimport {\n SegmentedControlInput,\n SegmentedControlItem,\n SegmentedControlLabel,\n SegmentedControlRoot,\n} from './components.js';\n\n/**\n * 불리언 값이 true인 경우 true를 반환하고, 그렇지 않으면 undefined를 반환하는 함수입니다.\n * @param value true, false, 또는 undefined일 수 있는 값\n * @returns true 또는 undefined\n */\nfunction trueOrUndef(value: boolean | null | undefined): true | undefined {\n return value ? true : undefined;\n}\n\nexport interface SegmentedControlItem {\n /** 항목의 값 */\n value: string;\n\n /** 항목의 레이블 (내용) */\n label: ReactNode;\n\n /** 항목이 비활성화되었는지 여부 */\n disabled?: boolean;\n}\n\nexport interface SegmentedControlProps {\n /** 루트 DOM 요소로 전달되는 ref (MUI 미상속 인터페이스라 명시 선언) */\n ref?: Ref<HTMLDivElement>;\n\n sx?: SxProps<Theme>;\n\n className?: string;\n\n style?: CSSProperties;\n\n disabled?: boolean;\n\n /** 렌더링할 데이터를 기반으로 컨트롤 항목이 생성됩니다. */\n data: (string | SegmentedControlItem)[];\n\n /** 컨트롤된 컴포넌트의 값 */\n value?: string;\n\n /** 비제어 컴포넌트의 기본값 */\n defaultValue?: string;\n\n /** 값이 변경될 때 호출되는 함수 */\n onChange?: (value: string) => void;\n\n /** 부모의 100% 너비를 사용할지 여부, 기본값은 false */\n fullWidth?: boolean;\n\n /** 인디케이터의 전환 시간(ms), 기본값은 200 */\n transitionDuration?: number;\n\n /** 인디케이터의 transition-timing-function 속성, 기본값은 'ease' */\n transitionTimingFunction?: string;\n\n /** 컴포넌트가 수직 방향으로 표시될지 여부, 기본값은 'horizontal' */\n vertical?: boolean;\n\n /** 값이 변경될 수 있는지 여부, 읽기 전용 모드일 경우 변경 불가 */\n readOnly?: boolean;\n\n /** 항목의 경계를 표시할지 여부 */\n withItemBorder?: boolean;\n\n /** 항목 레이블의 기본 색상 */\n primaryColor?: TypographyProps['color'];\n\n /** 항목 레이블의 보조 색상 */\n secondaryColor?: TypographyProps['color'];\n\n /** 인디케이터로 표시할 ReactNode */\n indicator?: ReactNode;\n\n /** 컴포넌트 크기, 'small', 'medium', 'large' 중 하나 */\n size?: 'small' | 'medium' | 'large';\n}\n\n/**\n * 세그먼트 컨트롤 컴포넌트는 여러 항목 중 하나를 선택하는 UI 컴포넌트입니다.\n * 각 항목은 라디오 버튼처럼 동작하며, 선택 시 인디케이터가 항목에 맞춰 이동합니다.\n * @param props 세그먼트 컨트롤의 다양한 설정을 정의하는 props\n * @returns 세그먼트 컨트롤 컴포넌트\n */\nexport const SegmentedControl = (props: SegmentedControlProps) => {\n const {\n sx,\n className,\n style,\n disabled,\n data,\n value,\n defaultValue,\n onChange,\n fullWidth,\n withItemBorder,\n primaryColor = 'primary',\n secondaryColor = 'textSecondary',\n transitionDuration,\n transitionTimingFunction,\n vertical,\n readOnly,\n size = 'medium',\n indicator,\n ref,\n } = props;\n\n // data 항목이 문자열이면 객체로 변환하여 처리\n const _data = data.map((item) =>\n typeof item === 'string' ? { label: item, value: item } : item,\n );\n const [parent, setParent] = useState<HTMLElement | null>(null); // 부모 요소 상태\n const [refs, setRefs] = useState<Record<string, HTMLElement | null>>({}); // 항목 참조 상태\n\n // 각 항목에 대한 참조를 설정하는 함수\n const setElementRef = (val: string) => (element: HTMLElement | null) => {\n refs[val] = element;\n setRefs(refs);\n };\n\n // 비제어 컴포넌트 값 상태 관리\n const [_value, handleValueChange] = useUncontrolled({\n value,\n defaultValue,\n finalValue: Array.isArray(data)\n ? (_data.find((item) => !item.disabled)?.value ?? _data[0]?.value ?? undefined)\n : undefined,\n onChange,\n });\n\n const uuid = useId(); // 고유 ID 생성\n const mergedRef = useComposedRefs(ref, setParent); // ref 결합\n\n // 데이터가 비어있으면 렌더링하지 않음\n if (data.length === 0) {\n return null;\n }\n\n return (\n <SegmentedControlRoot\n className={clsx('SegmentedControl-root', className, {\n x_readOnly: readOnly,\n x_fullWidth: fullWidth,\n 'Mui-disabled': disabled,\n 'Mui-readOnly': readOnly,\n })}\n sx={sx}\n style={style}\n ref={mergedRef}\n role='radiogroup'\n data-vertical={trueOrUndef(vertical)} // 수직 여부\n data-fullwidth={trueOrUndef(fullWidth)} // 100% 너비 여부\n data-with-item-border={trueOrUndef(withItemBorder)} // 항목 경계 표시 여부\n data-size={size} // 크기 설정\n >\n {typeof _value === 'string' && (\n <FloatingIndicator\n className='SegmentedControl-indicator'\n component='span'\n target={refs[_value]} // 인디케이터 대상\n parent={parent} // 부모 요소\n transitionDuration={transitionDuration} // 전환 시간\n sx={{\n display: 'block',\n zIndex: 1,\n borderRadius: 1,\n bgcolor: '#fff',\n // boxShadow는 mantine에서 복사\n boxShadow: 'rgba(0, 0, 0, 0.05) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px 0px',\n }}\n >\n {indicator}\n </FloatingIndicator>\n )}\n {_data.map((item) => (\n <SegmentedControlItem\n key={item.value}\n className={clsx('SegmentedControl-item', {\n 'Mui-active': _value === item.value,\n 'Mui-disabled': item.disabled || disabled,\n 'Mui-readOnly': readOnly,\n })}\n transitionDuration={transitionDuration}\n transitionTimingFunction={transitionTimingFunction}\n >\n <SegmentedControlInput\n component='input'\n className='SegmentedControl-input'\n key={`${item.value}-input`}\n type='radio'\n name={uuid}\n value={item.value}\n checked={_value === item.value}\n id={`${uuid}-${item.value}`}\n onChange={() => {\n if (!readOnly && !item.disabled && !disabled) {\n handleValueChange(item.value);\n }\n }}\n />\n <SegmentedControlLabel\n component='label'\n key={`${item.value}-label`}\n className='SegmentedControl-label'\n ref={setElementRef(item.value)}\n htmlFor={`${uuid}-${item.value}`}\n primaryColor={primaryColor}\n secondaryColor={secondaryColor}\n transitionDuration={transitionDuration}\n transitionTimingFunction={transitionTimingFunction}\n >\n <Box\n component='span'\n sx={{\n position: 'relative',\n zIndex: 2,\n }}\n >\n {item.label}\n </Box>\n </SegmentedControlLabel>\n </SegmentedControlItem>\n ))}\n </SegmentedControlRoot>\n );\n};\n","import type { Theme, TypographyProps } from '@mui/material';\nimport { Box, type BoxProps, styled } from '@mui/material';\nimport type { ComponentType } from 'react';\n\nexport const SegmentedControlRoot: ComponentType<BoxProps> = styled(Box)<BoxProps>(({ theme }) => {\n return {\n position: 'relative',\n display: 'inline-flex',\n flexDirection: 'row',\n width: 'auto',\n borderRadius: theme.shape.borderRadius,\n overflow: 'hidden',\n padding: '0.25rem',\n backgroundColor: '#f1f3f5',\n\n '&[data-vertical=\"true\"]': {\n display: 'flex',\n flexDirection: 'column',\n width: 'max-content',\n },\n\n '&[data-fullwidth=\"true\"]': {\n display: 'flex',\n width: 'auto',\n },\n\n '&[data-size=\"small\"]': {\n padding: '0.15rem',\n },\n '&[data-size=\"large\"]': {\n padding: '0.35rem',\n },\n };\n});\nSegmentedControlRoot.displayName = 'SegmentedControlRoot';\n\nexport const SegmentedControlItem: ComponentType<\n BoxProps & {\n transitionDuration?: number;\n transitionTimingFunction?: string;\n }\n> = styled(Box, {\n shouldForwardProp: (prop) => prop !== 'transitionDuration' && prop !== 'transitionTimingFunction',\n})<\n BoxProps & {\n transitionDuration?: number;\n transitionTimingFunction?: string;\n }\n>(({ theme, transitionDuration = 150, transitionTimingFunction = 'ease' }) => {\n return {\n position: 'relative',\n flex: 1,\n zIndex: 2,\n transition: `border-color ${transitionDuration}ms ${transitionTimingFunction}`,\n\n '.SegmentedControl-root[data-with-item-border=\"true\"] &::before': {\n content: '\"\"',\n position: 'absolute',\n top: 0,\n bottom: 0,\n insetInlineStart: 0,\n backgroundColor: theme.palette.divider,\n width: '1px',\n transition: `background-color ${transitionDuration}ms ${transitionTimingFunction}`,\n },\n\n '.SegmentedControl-root[data-with-item-border=\"true\"] &:first-of-type::before': {\n backgroundColor: 'transparent',\n },\n\n '.SegmentedControl-root[data-vertical=\"true\"] &::before': {\n top: 0,\n insetInline: 0,\n bottom: 'auto',\n height: '1px',\n width: 'auto',\n },\n };\n});\n\nSegmentedControlItem.displayName = 'SegmentedControlItem';\n\nexport const SegmentedControlInput: ComponentType<BoxProps<'input'>> = styled(Box)<\n BoxProps<'input'>\n>(() => ({\n height: 0,\n width: 0,\n position: 'absolute',\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n opacity: 0,\n}));\n\nSegmentedControlInput.displayName = 'SegmentedControlInput';\n\ntype PaletteColorKey = 'primary' | 'secondary' | 'info' | 'warning' | 'error' | 'success';\ntype TextColorKey = 'primary' | 'secondary' | 'disabled';\n\nfunction resolveColor(theme: Theme, color: TypographyProps['color']): string | undefined {\n if (!color) return undefined;\n const paletteColors: PaletteColorKey[] = [\n 'primary',\n 'secondary',\n 'info',\n 'warning',\n 'error',\n 'success',\n ];\n const textColors = ['textPrimary', 'textSecondary', 'textDisabled'];\n\n if (paletteColors.includes(color as PaletteColorKey)) {\n return theme.palette[color as PaletteColorKey].main;\n }\n if (textColors.includes(color as string)) {\n const textKey = (color as string).substring(4).toLowerCase() as TextColorKey;\n return theme.palette.text[textKey];\n }\n return color as string;\n}\n\ntype SegmentedControlLabelProps = BoxProps & {\n primaryColor?: string;\n secondaryColor?: string;\n transitionDuration?: number;\n transitionTimingFunction?: string;\n htmlFor?: string;\n};\n\nexport const SegmentedControlLabel: ComponentType<SegmentedControlLabelProps> = styled(Box, {\n shouldForwardProp: (prop) =>\n prop !== 'transitionDuration' &&\n prop !== 'transitionTimingFunction' &&\n prop !== 'primaryColor' &&\n prop !== 'secondaryColor',\n})<SegmentedControlLabelProps>(\n ({\n theme,\n transitionDuration = 150,\n transitionTimingFunction = 'ease',\n primaryColor,\n secondaryColor,\n }) => {\n const _primaryColor = resolveColor(theme, primaryColor) ?? theme.palette.primary.main;\n const _secondaryColor = resolveColor(theme, secondaryColor) ?? theme.palette.text.secondary;\n\n return {\n fontWeight: 500,\n display: 'block',\n textAlign: 'center',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n userSelect: 'none',\n borderRadius: 1,\n padding: '0.3125rem 0.625rem',\n fontSize: theme.typography.body1.fontSize,\n cursor: 'pointer',\n color: _secondaryColor,\n transition: `color ${transitionDuration}ms ${transitionTimingFunction}`,\n\n '.SegmentedControl-item.Mui-active > &&': {\n color: _primaryColor,\n '&::before': {\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n zIndex: 0,\n },\n },\n\n '.SegmentedControl-item.Mui-readOnly > &&': {\n cursor: 'default',\n },\n\n '.SegmentedControl-item.Mui-disabled > &&': {\n cursor: 'not-allowed',\n color: theme.palette.text.disabled,\n opacity: 0.7,\n },\n\n '.SegmentedControl-root[data-size=\"small\"] &': {\n padding: '0.2rem 0.4rem',\n fontSize: '0.7rem',\n },\n '.SegmentedControl-root[data-size=\"large\"] &': {\n padding: '0.4rem 0.8rem',\n fontSize: theme.typography.subtitle1.fontSize,\n },\n };\n },\n);\n\nSegmentedControlLabel.displayName = 'SegmentedControlLabel';\n","import type { FC, ReactNode } from 'react';\n\nexport interface ShowProps {\n when: boolean | null | undefined;\n children?: ReactNode;\n fallback?: ReactNode;\n}\n\nexport const Show: FC<ShowProps> = ({ when, fallback, children }) => {\n if (when) {\n return children;\n }\n return fallback;\n};\n\nShow.displayName = 'Show';\n","'use client';\n\nimport { type Theme, useMediaQuery } from '@mui/material';\nimport type { ReactNode } from 'react';\n\nexport interface SmOrDownProps {\n children?: ReactNode | ReactNode[];\n}\n\nexport function SmOrDown(props: SmOrDownProps) {\n const { children } = props;\n const matched = useMediaQuery((theme: Theme) => theme.breakpoints.down('md'));\n if (!matched || !children) return null;\n return <>{children}</>;\n}\n","'use client';\n\nimport { type Theme, useMediaQuery } from '@mui/material';\nimport type { ReactNode } from 'react';\n\nexport interface SmOrUpProps {\n children?: ReactNode | ReactNode[];\n}\n\nexport function SmOrUp(props: SmOrUpProps) {\n const { children } = props;\n const matched = useMediaQuery((theme: Theme) => theme.breakpoints.up('sm'));\n if (!matched || !children) return null;\n return <>{children}</>;\n}\n","import { Box, type BoxProps } from '@mui/material';\n\nexport interface SpaceProps extends BoxProps {\n width?: number;\n height?: number;\n minWidth?: number;\n minHeight?: number;\n}\n\nexport const Space = ({ width, height, minWidth, minHeight, sx, ref, ...props }: SpaceProps) => {\n return (\n <Box\n ref={ref}\n sx={[\n {\n width,\n height,\n minWidth: minWidth ?? width,\n minHeight: minHeight ?? height,\n },\n ...(Array.isArray(sx) ? sx : [sx]),\n ]}\n {...props}\n />\n );\n};\n\nSpace.displayName = 'Space';\n","'use client';\n\nimport type { BoxProps, LinkProps, SxProps } from '@mui/material';\nimport { Box, Link, styled } from '@mui/material';\nimport clsx from 'clsx';\nimport type { CSSProperties, ReactNode, Ref } from 'react';\nimport { useElementSize } from '../hooks/useElementSize.js';\nimport { useId } from '../hooks/useId.js';\nimport { useUncontrolled } from '../hooks/useUncontrolled.js';\n\nexport interface SpoilerProps {\n sx?: SxProps;\n\n className?: string;\n\n style?: CSSProperties;\n\n id?: string;\n\n /** Maximum height of the visible content, when this point is reached spoiler appears, `100` by default */\n maxHeight?: number;\n\n /** Label for close spoiler action */\n hideLabel: React.ReactNode;\n\n /** Label for open spoiler action */\n showLabel: React.ReactNode;\n\n /** Get ref of spoiler toggle button */\n controlRef?: React.ForwardedRef<HTMLButtonElement>;\n\n /** Initial spoiler state, true to wrap content in spoiler, false to show content without spoiler, opened state is updated on mount */\n initialState?: boolean;\n\n /** Controlled expanded state value */\n expanded?: boolean;\n\n /** Called when expanded state changes (when spoiler visibility is toggled by the user) */\n onExpandedChange?: (expanded: boolean) => void;\n\n /** Spoiler reveal transition duration in ms, set 0 or null to turn off animation, `200` by default */\n transitionDuration?: number;\n\n children?: ReactNode;\n\n ref?: Ref<HTMLElement>;\n}\n\nexport const Spoiler = (props: SpoilerProps) => {\n const {\n sx,\n className,\n style,\n id,\n initialState,\n maxHeight = 100,\n hideLabel,\n showLabel,\n expanded,\n onExpandedChange,\n controlRef,\n children,\n transitionDuration = 100,\n ref,\n ...restProps\n } = props;\n\n const _id = useId(id);\n const regionId = `${_id}-region`;\n const [show, setShowState] = useUncontrolled({\n value: expanded,\n defaultValue: initialState,\n finalValue: false,\n onChange: onExpandedChange,\n });\n const { ref: contentRef, height } = useElementSize<HTMLDivElement>();\n\n const spoilerMoreContent = show ? hideLabel : showLabel;\n const hasSpoiler = spoilerMoreContent !== null && maxHeight < height;\n\n return (\n <RootBox\n className={clsx('Spoiler-root', className)}\n sx={[sx, ...(Array.isArray(sx) ? sx : [sx ?? false])]}\n style={style}\n id={_id}\n ref={ref}\n data-has-spoiler={hasSpoiler}\n {...restProps}\n >\n {hasSpoiler && (\n <StyledMoreButton\n component='button'\n ref={controlRef}\n onClick={() => {\n setShowState(!show);\n }}\n aria-expanded={show}\n aria-controls={regionId}\n >\n {spoilerMoreContent}\n </StyledMoreButton>\n )}\n <StyledContent\n data-reduce-motion\n role='region'\n id={regionId}\n transitionDuration={transitionDuration}\n style={{\n maxHeight: !show ? maxHeight : (height ?? undefined),\n }}\n >\n <div ref={contentRef}>{children}</div>\n </StyledContent>\n </RootBox>\n );\n};\n\nSpoiler.displayName = 'Spoiler';\n\nconst RootBox = styled(Box)<BoxProps>(() => ({\n position: 'relative',\n '&:where([data-has-spoiler=\"true\"])': {\n marginBottom: 24,\n },\n}));\n\nconst StyledMoreButton = styled(Link<'button'>)<LinkProps<'button'>>(() => ({\n position: 'absolute',\n insetInlineStart: 0,\n top: '100%',\n height: 32,\n textDecoration: 'none',\n '&:hover': {\n textDecoration: 'underline',\n },\n}));\n\nconst StyledContent = styled(Box, {\n shouldForwardProp: (prop) => prop !== 'transitionDuration',\n})<\n BoxProps & {\n transitionDuration?: number;\n }\n>(({ transitionDuration = 200 }) => ({\n display: 'flex',\n flexDirection: 'column',\n overflow: 'hidden',\n transition: `max-height ${transitionDuration}ms ease`,\n}));\n","import type { StackProps } from '@mui/material';\nimport { Stack } from '@mui/material';\nimport { createComponent } from './create-component.js';\n\nexport interface StackColumnProps extends Omit<StackProps, 'direction'> {\n center?: boolean;\n alignItems?: React.CSSProperties['alignItems'];\n justifyContent?: React.CSSProperties['justifyContent'];\n}\n\nconst StackColumnCenter = createComponent('StackColumn.Center', 'column', {\n justifyContent: 'center',\n});\n\nconst StackColumnStart = createComponent('StackColumn.Start', 'column', {\n justifyContent: 'flex-start',\n});\n\nconst StackColumnEnd = createComponent('StackColumn.End', 'column', {\n justifyContent: 'flex-end',\n});\n\nconst StackColumnBetween = createComponent('StackColumn.Between', 'column', {\n justifyContent: 'space-between',\n});\n\nconst StackColumnAround = createComponent('StackColumn.Around', 'column', {\n justifyContent: 'space-around',\n});\n\nconst StackColumnEvenly = createComponent('StackColumn.Evenly', 'column', {\n justifyContent: 'space-evenly',\n});\n\ninterface StackColumnComponent extends React.FunctionComponent<StackColumnProps> {\n Start: typeof StackColumnStart;\n End: typeof StackColumnEnd;\n Between: typeof StackColumnBetween;\n Around: typeof StackColumnAround;\n Center: typeof StackColumnCenter;\n Evenly: typeof StackColumnEvenly;\n}\n\nexport const StackColumn = (({\n center = false,\n alignItems,\n justifyContent,\n children,\n ref,\n ...props\n}: StackColumnProps) => {\n return (\n <Stack\n direction='column'\n {...props}\n ref={ref}\n sx={[\n {\n alignItems: center ? 'center' : alignItems,\n justifyContent: center ? 'center' : justifyContent,\n },\n ...(Array.isArray(props.sx) ? props.sx : [props.sx ?? false]),\n ]}\n >\n {children}\n </Stack>\n );\n}) as StackColumnComponent;\n\nStackColumn.displayName = 'StackColumn';\nStackColumn.Start = StackColumnStart;\nStackColumn.End = StackColumnEnd;\nStackColumn.Between = StackColumnBetween;\nStackColumn.Around = StackColumnAround;\nStackColumn.Center = StackColumnCenter;\nStackColumn.Evenly = StackColumnEvenly;\n","import type { StackProps } from '@mui/material';\nimport { Stack } from '@mui/material';\nimport type { FunctionComponent } from 'react';\nimport { overrideProps } from '../../util/override-props.js';\n\nexport interface CreateComponentProps extends StackProps {\n alignItems?: React.CSSProperties['alignItems'];\n justifyContent?: React.CSSProperties['justifyContent'];\n}\n\nexport function createComponent(\n displayName: string,\n direction: StackProps['direction'],\n defaultProps: object,\n) {\n // ref-as-prop: CreateComponentProps가 StackProps를 extends하므로 ref는 자동 포함된다(D-02a).\n // FunctionComponent 캐스트로 Component.displayName 동적 할당을 타입 에러 없이 유지한다(D-02).\n const Component = (({ alignItems, justifyContent, ref, ...props }: CreateComponentProps) => {\n const sxOverride = overrideProps(defaultProps, {\n alignItems,\n justifyContent,\n });\n return (\n <Stack\n direction={direction}\n {...props}\n ref={ref}\n sx={[sxOverride, ...(Array.isArray(props.sx) ? props.sx : [props.sx ?? false])]}\n />\n );\n }) as FunctionComponent<CreateComponentProps>;\n Component.displayName = displayName;\n return Component;\n}\n","import type { StackProps } from '@mui/material';\nimport { Stack } from '@mui/material';\nimport { createComponent } from './create-component.js';\n\nexport interface StackRowProps extends Omit<StackProps, 'direction'> {\n center?: boolean;\n alignItems?: React.CSSProperties['alignItems'];\n justifyContent?: React.CSSProperties['justifyContent'];\n}\n\nconst StackRowCenter = createComponent('StackRow.Center', 'row', {\n justifyContent: 'center',\n});\n\nconst StackRowStart = createComponent('StackRow.Start', 'row', {\n justifyContent: 'flex-start',\n});\n\nconst StackRowEnd = createComponent('StackRow.End', 'row', {\n justifyContent: 'flex-end',\n});\n\nconst StackRowBetween = createComponent('StackRow.Between', 'row', {\n justifyContent: 'space-between',\n});\n\nconst StackRowAround = createComponent('StackRow.Around', 'row', {\n justifyContent: 'space-around',\n});\n\nconst StackRowEvenly = createComponent('StackRow.Evenly', 'row', {\n justifyContent: 'space-evenly',\n});\n\ninterface StackRowComponent extends React.FunctionComponent<StackRowProps> {\n Start: typeof StackRowStart;\n End: typeof StackRowEnd;\n Between: typeof StackRowBetween;\n Around: typeof StackRowAround;\n Center: typeof StackRowCenter;\n Evenly: typeof StackRowEvenly;\n}\n\nexport const StackRow = (({\n center = false,\n alignItems,\n justifyContent,\n children,\n ref,\n ...props\n}: StackRowProps) => {\n return (\n <Stack\n direction='row'\n {...props}\n ref={ref}\n sx={[\n {\n alignItems: center ? 'center' : alignItems,\n justifyContent: center ? 'center' : justifyContent,\n },\n ...(Array.isArray(props.sx) ? props.sx : [props.sx ?? false]),\n ]}\n >\n {children}\n </Stack>\n );\n}) as StackRowComponent;\n\nStackRow.displayName = 'StackRow';\nStackRow.Start = StackRowStart;\nStackRow.End = StackRowEnd;\nStackRow.Between = StackRowBetween;\nStackRow.Around = StackRowAround;\nStackRow.Center = StackRowCenter;\nStackRow.Evenly = StackRowEvenly;\n","import { Box, type BoxProps } from '@mui/material';\nimport type { CSSProperties } from 'react';\nimport { TopAbsoluteCenter } from './TopAbsoluteCenter.js';\nimport { TopAbsoluteLeft } from './TopAbsoluteLeft.js';\nimport { TopAbsoluteRight } from './TopAbsoluteRight.js';\n\nexport type { TopAbsoluteCenterProps } from './TopAbsoluteCenter.js';\nexport type { TopAbsoluteLeftProps } from './TopAbsoluteLeft.js';\nexport type { TopAbsoluteRightProps } from './TopAbsoluteRight.js';\n\n/**\n * `TopAbsolute` 컴포넌트의 속성을 정의합니다.\n */\nexport interface TopAbsoluteProps extends BoxProps {\n /**\n * 상단 위치를 설정합니다.\n *\n * @default 0\n */\n top?: CSSProperties['top'];\n\n /**\n * 좌측 위치를 설정합니다.\n *\n * @default 0\n */\n left?: CSSProperties['left'];\n\n /**\n * 우측 위치를 설정합니다.\n *\n * @default 0\n */\n right?: CSSProperties['right'];\n}\n\ninterface TopAbsoluteComponent extends React.FunctionComponent<TopAbsoluteProps> {\n Left: typeof TopAbsoluteLeft;\n Right: typeof TopAbsoluteRight;\n Center: typeof TopAbsoluteCenter;\n}\n\nconst TopAbsoluteBase = (({\n top = 0,\n left = 0,\n right = 0,\n sx,\n ref,\n ...props\n}: TopAbsoluteProps) => {\n return (\n <Box\n ref={ref}\n sx={[\n {\n position: 'absolute',\n top,\n left,\n right,\n },\n ...(Array.isArray(sx) ? sx : [sx]),\n ]}\n {...props}\n />\n );\n}) as TopAbsoluteComponent;\nTopAbsoluteBase.displayName = 'TopAbsoluteBase';\n\nexport const TopAbsolute = TopAbsoluteBase;\nTopAbsolute.displayName = 'TopAbsolute';\nTopAbsolute.Left = TopAbsoluteLeft;\nTopAbsolute.Right = TopAbsoluteRight;\nTopAbsolute.Center = TopAbsoluteCenter;\n","import { Box, type BoxProps } from '@mui/material';\nimport type { CSSProperties } from 'react';\n\n/**\n * `TopAbsoluteCenter` 컴포넌트의 속성을 정의합니다.\n */\nexport interface TopAbsoluteCenterProps extends BoxProps {\n /**\n * 컴포넌트가 부모 컨테이너의 전체 너비를 차지하도록 설정합니다.\n *\n * @default false\n */\n fullWidth?: boolean;\n\n /**\n * 상단 위치를 설정합니다. CSS의 `top` 속성과 동일합니다.\n *\n * @default 0\n */\n top?: CSSProperties['top'];\n}\n\n/**\n * `TopAbsoluteCenter` 컴포넌트는 요소를 상단 중앙에 배치하는 데 사용됩니다.\n *\n * - `position: \"absolute\"`를 기본으로 설정합니다.\n * - `left: \"50%\"`와 `transform: \"translate(-50%, -50%)\"`를 사용하여 수평 중앙에 위치시킵니다.\n * - `fullWidth` 속성을 사용하여 너비를 100%로 설정할 수 있습니다.\n *\n * @param props - `TopAbsoluteCenterProps` 속성\n * @returns 상단 중앙에 배치된 스타일의 박스를 렌더링합니다.\n *\n * @example\n * ```tsx\n * <TopAbsolute.Center top=\"20px\" fullWidth>\n * 상단 중앙에 위치한 요소\n * </TopAbsolute.Center>\n * ```\n */\nexport const TopAbsoluteCenter = ({\n fullWidth,\n top,\n sx,\n ref,\n ...props\n}: TopAbsoluteCenterProps) => {\n return (\n <Box\n ref={ref}\n sx={[\n {\n position: 'absolute', // 절대 위치 설정\n top, // 사용자 정의 top 값\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// 컴포넌트 디스플레이 이름 설정\nTopAbsoluteCenter.displayName = 'TopAbsolute.Center';\n","import { Box, type BoxProps } from '@mui/material';\nimport type { CSSProperties } from 'react';\n\n/**\n * `TopAbsoluteLeft` 컴포넌트의 속성을 정의합니다.\n */\nexport interface TopAbsoluteLeftProps extends BoxProps {\n /**\n * 컴포넌트가 부모 컨테이너의 전체 너비를 차지하도록 설정합니다.\n *\n * @default false\n */\n fullWidth?: boolean;\n\n /**\n * 상단 위치를 설정합니다. CSS의 `top` 속성과 동일합니다.\n *\n * @default 0\n */\n top?: CSSProperties['top'];\n\n /**\n * 좌측 위치를 설정합니다. CSS의 `left` 속성과 동일합니다.\n *\n * @default 0\n */\n left?: CSSProperties['left'];\n}\n\n/**\n * `TopAbsoluteLeft` 컴포넌트는 요소를 상단 좌측에 배치하는 데 사용됩니다.\n *\n * - `position: \"absolute\"`를 기본으로 설정합니다.\n * - `top`과 `left` 속성을 사용하여 요소의 위치를 조정할 수 있습니다.\n * - `fullWidth` 속성을 사용하여 너비를 100%로 설정할 수 있습니다.\n *\n * @param props - `TopAbsoluteLeftProps` 속성\n * @returns 상단 좌측에 배치된 스타일의 박스를 렌더링합니다.\n *\n * @example\n * ```tsx\n * <TopAbsolute.Left top=\"20px\" left=\"10px\" fullWidth>\n * 상단 좌측에 위치한 요소\n * </TopAbsolute.Left>\n * ```\n */\nexport const TopAbsoluteLeft = ({\n fullWidth,\n left = 0,\n top = 0,\n sx,\n ref,\n ...props\n}: TopAbsoluteLeftProps) => {\n return (\n <Box\n ref={ref}\n sx={[\n {\n position: 'absolute', // 절대 위치 설정\n left, // 사용자 정의 left 값\n top, // 사용자 정의 top 값\n ...(fullWidth && {\n width: '100%', // 전체 너비 설정\n }),\n },\n ...(Array.isArray(sx) ? sx : [sx]),\n ]}\n {...props}\n />\n );\n};\n\n// 컴포넌트 디스플레이 이름 설정\nTopAbsoluteLeft.displayName = 'TopAbsolute.Left';\n","import { Box, type BoxProps } from '@mui/material';\nimport type { CSSProperties } from 'react';\n\n/**\n * `TopAbsoluteRight` 컴포넌트의 속성을 정의합니다.\n */\nexport interface TopAbsoluteRightProps extends BoxProps {\n /**\n * 컴포넌트가 부모 컨테이너의 전체 너비를 차지하도록 설정합니다.\n *\n * @default false\n */\n fullWidth?: boolean;\n\n /**\n * 상단 위치를 설정합니다. CSS의 `top` 속성과 동일합니다.\n *\n * @default 0\n */\n top?: CSSProperties['top'];\n\n /**\n * 우측 위치를 설정합니다. CSS의 `right` 속성과 동일합니다.\n *\n * @default 0\n */\n right?: CSSProperties['right'];\n}\n\n/**\n * `TopAbsoluteRight` 컴포넌트는 요소를 상단 우측에 배치하는 데 사용됩니다.\n *\n * - `position: \"absolute\"`를 기본으로 설정합니다.\n * - `top`과 `right` 속성을 사용하여 요소의 위치를 조정할 수 있습니다.\n * - `fullWidth` 속성을 사용하여 너비를 100%로 설정할 수 있습니다.\n *\n * @param props - `TopAbsoluteRightProps` 속성\n * @returns 상단 우측에 배치된 스타일의 박스를 렌더링합니다.\n *\n * @example\n * ```tsx\n * <TopAbsolute.Right top=\"10px\" right=\"20px\" fullWidth>\n * 상단 우측에 위치한 요소\n * </TopAbsolute.Right>\n * ```\n */\nexport const TopAbsoluteRight = ({\n fullWidth,\n right = 0,\n top = 0,\n sx,\n ref,\n ...props\n}: TopAbsoluteRightProps) => {\n return (\n <Box\n ref={ref}\n sx={[\n {\n position: 'absolute', // 절대 위치 설정\n right, // 사용자 정의 right 값\n top, // 사용자 정의 top 값\n ...(fullWidth && {\n width: '100%', // 전체 너비 설정\n }),\n },\n ...(Array.isArray(sx) ? sx : [sx]),\n ]}\n {...props}\n />\n );\n};\n\n// 컴포넌트 디스플레이 이름 설정\nTopAbsoluteRight.displayName = 'TopAbsolute.Right';\n","'use client';\n\nimport { type Theme, useMediaQuery } from '@mui/material';\nimport type { ReactNode } from 'react';\n\nexport interface XsOrDownProps {\n children?: ReactNode | ReactNode[];\n}\n\nexport function XsOrDown(props: XsOrDownProps) {\n const { children } = props;\n const matched = useMediaQuery((theme: Theme) => theme.breakpoints.down('sm'));\n if (!matched || !children) return null;\n return <>{children}</>;\n}\n","export const isTabKeyEvent = (e: React.KeyboardEvent): boolean => {\n return !e.shiftKey && e.key === 'Tab';\n};\n\nexport const isEnterOrTabKeyEvent = (e: React.KeyboardEvent): boolean => {\n return e.key === 'Enter' || (!e.shiftKey && e.key === 'Tab');\n};\n\nexport const isEnterKeyEvent = (e: React.KeyboardEvent): boolean => {\n return e.key === 'Enter';\n};\n\nexport const isEscapeKeyEvent = (e: React.KeyboardEvent): boolean => {\n return e.key === 'Escape';\n};\n\nexport const isTouchEvent = (event: MouseEvent | TouchEvent): event is TouchEvent => {\n return Boolean((event as TouchEvent).touches?.length);\n};\n\nexport const isMouseEvent = (event: MouseEvent | TouchEvent): event is MouseEvent => {\n return Boolean(\n ((event as MouseEvent).clientX || (event as MouseEvent).clientX === 0) &&\n ((event as MouseEvent).clientY || (event as MouseEvent).clientY === 0),\n );\n};\n\nexport const blurEventTarget = (event: { target: EventTarget | null }, delay = -1) => {\n const target = event.target as HTMLElement | null;\n if (!target) return;\n if (typeof target.blur !== 'function') return;\n if (delay >= 0) {\n setTimeout(() => {\n target.blur();\n }, delay);\n } else {\n target.blur();\n }\n};\n","import type { SxProps, Theme } from '@mui/material';\n\n/**\n * SxProps를 flatten 한 배열로 만든다.\n * @param sxArray - SxProps의 배열\n * @returns SxProps\n */\nexport function flatSx<T extends Theme = Theme>(\n ...sxArray: (SxProps<T> | undefined | false | null)[]\n): SxProps<T> {\n const result: SxProps<T>[] = [];\n sxArray.forEach((item) => {\n if (item) {\n if (Array.isArray(item)) {\n item.forEach((it) => {\n if (it) {\n result.push(it);\n }\n });\n } else {\n result.push(item);\n }\n }\n });\n return result as SxProps<T>;\n}\n\nexport function firstSx<T extends Theme = Theme>(...sxArray: (SxProps<T> | undefined)[]) {\n const arr = flatSx(...sxArray) as SxProps<T>[];\n return arr.length > 0 ? (arr[0] as SxProps<T>) : undefined;\n}\n\n/**\n * 다이얼로그 높이 SxProps\n * @param key - key of height\n * @param heightInPercent - height in percent [0~100]\n * @returns Mui Dialog의 높이 설정 SxProps\n */\nexport const sxDialogHeight = (\n key: 'height' | 'minHeight' | 'maxHeight' = 'height',\n heightInPercent = 100,\n) => {\n return {\n '& .MuiDialog-scrollPaper > .MuiDialog-paper': {\n [key]: `calc(${heightInPercent}% - 64px)`,\n },\n };\n};\n"],"mappings":"yMAAA,OAAS,OAAAA,OAA0B,gBCAnC,OAAS,OAAAC,OAA0B,gBAgB/B,cAAAC,OAAA,oBARG,IAAMC,EAAuB,CAAC,CACnC,UAAAC,EACA,OAAAC,EAAS,EACT,GAAAC,EACA,IAAAC,EACA,GAAGC,CACL,IAEIN,GAACD,GAAA,CACC,IAAKM,EACL,GAAI,CACF,CACE,SAAU,WACV,OAAAF,EACA,KAAM,MACN,UAAW,wBACX,GAAID,GAAa,CACf,MAAO,MACT,CACF,EACA,GAAI,MAAM,QAAQE,CAAE,EAAIA,EAAK,CAACA,CAAE,CAClC,EACC,GAAGE,EACN,EAIJL,EAAqB,YAAc,wBCnCnC,OAAS,OAAAM,OAA0B,gBAkB/B,cAAAC,OAAA,oBATG,IAAMC,EAAqB,CAAC,CACjC,UAAAC,EACA,KAAAC,EAAO,EACP,OAAAC,EAAS,EACT,GAAAC,EACA,IAAAC,EACA,GAAGC,CACL,IAEIP,GAACD,GAAA,CACC,IAAKO,EACL,GAAI,CACF,CACE,SAAU,WACV,KAAAH,EACA,OAAAC,EACA,GAAIF,GAAa,CACf,MAAO,MACT,CACF,EACA,GAAI,MAAM,QAAQG,CAAE,EAAIA,EAAK,CAACA,CAAE,CAClC,EACC,GAAGE,EACN,EAIJN,EAAmB,Y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th","left","bottom","sx","ref","props","Box","jsx","BottomAbsoluteRight","fullWidth","right","bottom","sx","ref","props","jsx","BottomAbsoluteBase","bottom","left","right","sx","ref","props","Box","BottomAbsolute","BottomAbsoluteLeft","BottomAbsoluteRight","BottomAbsoluteCenter","Box","jsx","Center","vertical","sx","ref","props","Button","useState","jsx","CooldownButton","cooldown","onClick","disabled","ref","props","isCooldown","setIsCooldown","event","ButtonBase","useState","jsx","CooldownButtonBase","cooldown","onClick","disabled","ref","props","isCooldown","setIsCooldown","event","IconButton","useState","jsx","CooldownIconButton","cooldown","onClick","disabled","ref","props","isCooldown","setIsCooldown","event","Fragment","jsx","CopyButtonWrapper","props","children","onCopySuccess","value","timeout","clipboard","useClipboard","v","copied","TableBody","clsx","jsx","CustomTableBody","props","sx","className","loading","stripe","otherProps","Box","Box","jsx","CenterAbsoluteCenter","fullWidth","sx","ref","props","Box","jsx","CenterAbsoluteLeft","fullWidth","left","sx","ref","props","Box","jsx","CenterAbsoluteRight","fullWidth","right","sx","ref","props","jsx","CenterAbsoluteBase","left","right","sx","ref","props","Box","CenterAbsolute","CenterAbsoluteLeft","CenterAbsoluteRight","CenterAbsoluteCenter","Button","useEffect","useRef","jsx","DebouncedButton","debounce","onClick","disabled","children","ref","props","debounceTimeout","event","ButtonBase","useEffect","useRef","jsx","DebouncedButtonBase","debounce","onClick","disabled","children","ref","props","debounceTimeout","event","IconButton","useEffect","useRef","jsx","DebouncedIconButton","debounce","onClick","disabled","ref","props","debounceTimeout","event","useCallback","useEffect","useRef","useState","Fragment","jsx","DebouncedRender","children","leading","trailing","maxWait","content","setContent","timeoutRef","lastCallTimeRef","closeTimer","now","invoke","useCallback","useEffect","useRef","useState","Fragment","jsx","jsxs","assignRef","ref","value","FileButton","props","onChange","children","multiple","accept","name","form","resetRef","disabled","capture","inputProps","inputRef","useRef","openRequest","setOpenRequest","useState","onClick","useCallback","v","useEffect","handleChange","event","files","file","reset","useComposedRefs","Grid","clsx","isNil","v","isNotNil","jsx","FlexItemsContainer","props","className","items","getItemKey","getItemSize","isLineBreakItem","breakBefore","breakAfter","children","lineBreakHeight","lineBreakGroup","restProps","Grid","clsx","createItems","renderItem","elements","lineStarting","previousGroup","item","i","getLineBreakNode","currGrp","isGroupChanged","prev","curr","isNil","keyPrefix","height","Box","clsx","useRef","useEffect","useRef","useState","toInt","value","isParent","parentElement","childElement","parent","isNotNil","useFloatingIndicator","target","indicatorRef","excludeTargetBorderWidth","displayAfterTransitionEnd","transitionTimeout","useRef","initialized","setInitialized","useState","hidden","setHidden","updatePosition","useLatest","targetRect","parentRect","targetComputedStyle","parentComputedStyle","parentBorderWidth","targetBorderWidth","indicatorRect","updatePositionWithoutAnimation","targetResizeObserver","parentResizeObserver","useEffect","handleTransitionEnd","event","useTimeout","useMutationObserver","mutations","mutation","jsx","FloatingIndicator","props","target","parent","transitionDuration","excludeTargetBorderWidth","displayAfterTransitionEnd","sx","className","ref","restProps","innerRef","useRef","initialized","hidden","useFloatingIndicator","mergedRef","useComposedRefs","Box","clsx","FloatingIndicator_default","FloatingIndicator","Box","overrideProps","targetProps","overrides","filteredTargetProps","_","value","filteredOverrides","acc","current","filteredCurrent","Box","jsx","createFlexComponent","displayName","flexDirection","defaultProps","Component","inlineFlex","justifyContent","alignItems","flexWrap","sx","ref","props","Box","overrideProps","jsx","FlexColumnStart","createFlexComponent","FlexColumnEnd","FlexColumnCenter","FlexColumnAround","FlexColumnBetween","FlexColumnEvenly","FlexColumnBase","center","inlineFlex","justifyContent","alignItems","flexWrap","sx","ref","props","Box","overrideProps","FlexColumn","Box","jsx","FlexRowStart","createFlexComponent","FlexRowEnd","FlexRowAround","FlexRowBetween","FlexRowEvenly","FlexRowCenter","FlexRowBase","center","inlineFlex","justifyContent","alignItems","flexWrap","sx","ref","props","sxArray","baseStyle","overrideProps","Box","FlexRow","Hide","_props","Typography","clsx","useMemo","Box","clsx","jsx","Mark","props","sx","className","color","bgcolor","children","ref","restProps","escapeRegex","value","highlighter","_highlight","option","ignorecase","highlight","part","matcher","a","b","re","chunk","jsx","Highlight","props","sx","className","style","variant","highlight","color","highlightSx","ignorecase","includeDataAttribute","children","ref","restProps","highlightChunks","useMemo","highlighter","Typography","clsx","chunk","highlighted","i","Mark","Box","clsx","jsx","jsxs","LengthLimitHelperText","props","sx","className","text","maxLen","currentLen","error","useMediaQuery","Fragment","jsx","LgOrUp","props","children","theme","useMediaQuery","Fragment","jsx","MdOrDown","props","children","theme","useMediaQuery","Fragment","jsx","MdOrUp","props","children","theme","MuiPaper","clsx","jsx","Paper","props","className","sx","squared","outlined","children","rest","Paper","Box","clsx","jsx","PortletContent","props","noPadding","className","sx","children","ref","restProps","theme","Box","clsx","jsx","PortletFooter","props","noDivider","sx","className","children","ref","rest","theme","Box","clsx","jsx","PortletHeader","props","children","noDivider","className","noPadding","sx","ref","rest","theme","jsx","defaultProps","Portlet","props","sx","className","children","ref","restProps","Paper","PortletContent","PortletHeader","PortletFooter","Box","clsx","useState","Box","styled","SegmentedControlRoot","theme","SegmentedControlItem","prop","transitionDuration","transitionTimingFunction","SegmentedControlInput","resolveColor","color","paletteColors","textColors","textKey","SegmentedControlLabel","primaryColor","secondaryColor","_primaryColor","_secondaryColor","jsx","jsxs","trueOrUndef","value","SegmentedControl","props","sx","className","style","disabled","data","defaultValue","onChange","fullWidth","withItemBorder","primaryColor","secondaryColor","transitionDuration","transitionTimingFunction","vertical","readOnly","size","indicator","ref","_data","item","parent","setParent","useState","refs","setRefs","setElementRef","val","element","_value","handleValueChange","useUncontrolled","uuid","useId","mergedRef","useComposedRefs","SegmentedControlRoot","clsx","FloatingIndicator_default","SegmentedControlItem","SegmentedControlInput","SegmentedControlLabel","Box","Show","when","fallback","children","useMediaQuery","Fragment","jsx","SmOrDown","props","children","theme","useMediaQuery","Fragment","jsx","SmOrUp","props","children","theme","Box","jsx","Space","width","height","minWidth","minHeight","sx","ref","props","Box","Link","styled","clsx","jsx","jsxs","Spoiler","props","sx","className","style","id","initialState","maxHeight","hideLabel","showLabel","expanded","onExpandedChange","controlRef","children","transitionDuration","ref","restProps","_id","useId","regionId","show","setShowState","useUncontrolled","contentRef","height","useElementSize","spoilerMoreContent","hasSpoiler","RootBox","clsx","StyledMoreButton","StyledContent","styled","Box","Link","prop","Stack","Stack","jsx","createComponent","displayName","direction","defaultProps","Component","alignItems","justifyContent","ref","props","sxOverride","overrideProps","Stack","jsx","StackColumnCenter","createComponent","StackColumnStart","StackColumnEnd","StackColumnBetween","StackColumnAround","StackColumnEvenly","StackColumn","center","alignItems","justifyContent","children","ref","props","Stack","Stack","jsx","StackRowCenter","createComponent","StackRowStart","StackRowEnd","StackRowBetween","StackRowAround","StackRowEvenly","StackRow","center","alignItems","justifyContent","children","ref","props","Stack","Box","Box","jsx","TopAbsoluteCenter","fullWidth","top","sx","ref","props","Box","jsx","TopAbsoluteLeft","fullWidth","left","top","sx","ref","props","Box","jsx","TopAbsoluteRight","fullWidth","right","top","sx","ref","props","jsx","TopAbsoluteBase","top","left","right","sx","ref","props","Box","TopAbsolute","TopAbsoluteLeft","TopAbsoluteRight","TopAbsoluteCenter","useMediaQuery","Fragment","jsx","XsOrDown","props","children","theme","isTabKeyEvent","isEnterOrTabKeyEvent","isEnterKeyEvent","isEscapeKeyEvent","isTouchEvent","event","isMouseEvent","blurEventTarget","delay","target","flatSx","sxArray","result","item","it","firstSx","arr","sxDialogHeight","key","heightInPercent"]}
1
+ {"version":3,"file":"index.js","names":["clsx","clsx","clsx","clsx","clsx","clsx","clsx","clsx","Paper","useId","clsx","FloatingIndicator","useId","clsx","clsx","clsx","useClipboard","useLatest","useDebouncedCallback","isWebSerialSupportBrowser","useMutationObserver","requestFocusSelector","useElementSize","useDebouncedParams","useId$1","isTouchDevice","useCooldown","requestSelector","useUncontrolled","isBrowser","matchesOrClosest","isNavigator","noop","getAbsolutePosition","Closables","useComposedRefs","useTimeout","Box","Stack","Button","ButtonBase","IconButton","TableBody","clsx$1","Grid","Typography","useMediaQuery","Pagination","MuiPaper","InputAdornment","TextField","CircularProgress","SvgIcon","Link","createAbsoluteBox","Component","domProps","allProps","fullWidth","config","axisStyle","axis","sx","BottomAbsoluteCenter","BottomAbsoluteLeft","BottomAbsoluteRight","BottomAbsolute","Center","props","vertical","CooldownButton","onClick","cooldown","trigger","disabled","isCooldown","CooldownButtonBase","CooldownIconButton","CopyButtonWrapper","clipboard","Fragment","children","v","value","copied","onCopySuccess","CustomTableBody","otherProps","className","stripe","loading","CenterAbsoluteCenter","CenterAbsoluteLeft","CenterAbsoluteRight","CenterAbsolute","DebouncedButton","handleClick","event","debounce","DebouncedButtonBase","DebouncedIconButton","DebouncedRender","content","setContent","useState","leading","timeoutRef","useRef","lastCallTimeRef","closeTimer","useCallback","useEffect","now","invoke","trailing","maxWait","DelayedRender","delay","delayMs","elapsedDelay","setElapsedDelay","timerId","assignRef","ref","FileButton","inputRef","openRequest","setOpenRequest","handleChange","files","multiple","onChange","file","reset","resetRef","inputProps","isNil","isNotNil","FlexItemsContainer","restProps","items","createItems","elements","lineStarting","previousGroup","isLineBreakItem","item","i","getLineBreakNode","lineBreakHeight","lineBreakGroup","currGrp","isGroupChanged","breakBefore","getItemSize","renderItem","getItemKey","breakAfter","prev","curr","keyPrefix","toInt","isParent","childElement","parentElement","parent","useFloatingIndicator","transitionTimeout","initialized","setInitialized","hidden","setHidden","displayAfterTransitionEnd","updatePosition","target","indicatorRef","targetRect","parentRect","targetComputedStyle","parentComputedStyle","parentBorderWidth","targetBorderWidth","indicatorRect","excludeTargetBorderWidth","updatePositionWithoutAnimation","targetResizeObserver","parentResizeObserver","handleTransitionEnd","mutations","mutation","FloatingIndicator","innerRef","mergedRef","transitionDuration","FloatingIndicator_default","overrideProps","overrides","filteredTargetProps","targetProps","_","filteredOverrides","filteredCurrent","current","acc","createLayoutComponent","staticDefaults","centerActive","center","centerDefaults","resolvedStyle","sxArray","inlineFlex","FlexColumnStart","FlexColumnEnd","FlexColumnCenter","FlexColumnAround","FlexColumnBetween","FlexColumnEvenly","FlexColumn","FlexRowStart","FlexRowEnd","FlexRowAround","FlexRowBetween","FlexRowEvenly","FlexRowCenter","FlexRow","Hide","Mark","escapeRegex","highlighter","_highlight","ignorecase","option","highlight","part","matcher","b","a","re","chunk","Highlight","highlightChunks","useMemo","highlighted","includeDataAttribute","highlightSx","LengthLimitHelperText","error","currentLen","maxLen","text","LgOrUp","theme","ListPagination","paginationProps","count","offset","muiPage","disableAutoScroll","page","MdOrDown","MdOrUp","Paper","rest","outlined","VisibilityIcon","createSvgIcon","VisibilityOffIcon","PasswordTextField","visible","setVisible","toggleAdornment","hideLabel","showLabel","previousVisible","size","jsx","userInput","slotProps","input","ownerState","PortletContent","clsx","noPadding","PortletFooter","noDivider","PortletHeader","PortletLabel","icon","title","subtitle","defaultFormatItemCount","PortletTitle","titleVariant","disableNowrapTitle","itemCount","formatItemCount","onClickRefresh","refreshLabel","PortletToolbar","defaultProps","Portlet","SearchBoxDebouncer","debounced","params","SegmentedControlRoot","styled","SegmentedControlItem","prop","transitionTimingFunction","SegmentedControlInput","resolveColor","color","paletteColors","textColors","textKey","SegmentedControlLabel","_primaryColor","primaryColor","_secondaryColor","secondaryColor","trueOrUndef","SegmentedControl","_data","data","setParent","refs","setRefs","setElementRef","val","element","_value","handleValueChange","uuid","readOnly","withItemBorder","indicator","Show","when","fallback","SmOrDown","SmOrUp","Space","minWidth","width","minHeight","height","Spoiler","_id","id","regionId","show","setShowState","expanded","initialState","onExpandedChange","contentRef","spoilerMoreContent","hasSpoiler","maxHeight","RootBox","StyledMoreButton","controlRef","StyledContent","StackColumnCenter","StackColumnStart","StackColumnEnd","StackColumnBetween","StackColumnAround","StackColumnEvenly","StackColumn","StackRowCenter","StackRowStart","StackRowEnd","StackRowBetween","StackRowAround","StackRowEvenly","StackRow","TopAbsoluteCenter","TopAbsoluteLeft","TopAbsoluteRight","TopAbsolute","XsOrDown","normalizeNumericDate","expandYearToFourDigits","yyStr","yy","currentYear","resultYear","formatYmd","digits","isSixDigits","rawYear","rawMonth","rawDay","options","year","resultFormat","normalizeNumericMonth","formatYm","getRequiredDateDigits","format","formatNumericDateWhenComplete","requiredDigits","YmdTextField","textFieldProps","next","userHtmlInput","htmlInput","placeholder","YmdTypography","typographyProps","display","raw","YmTypography","isTabKeyEvent","isEnterOrTabKeyEvent","isEnterKeyEvent","isEscapeKeyEvent","isTouchEvent","isMouseEvent","blurEventTarget","flatSx","result","it","firstSx","arr","sxDialogHeight","key","heightInPercent"],"sources":["../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/DelayedRender.tsx","../src/components/FileButton.tsx","../src/util/internal-util.ts","../src/components/FlexItemsContainer.tsx","../src/components/FloatingIndicator/useFloatingIndicator.ts","../src/components/FloatingIndicator/FloatingIndicator.tsx","../src/components/FloatingIndicator/index.ts","../src/util/override-props.ts","../src/components/layout/create-layout-component.tsx","../src/components/flex/FlexColumn.tsx","../src/components/flex/FlexRow.tsx","../src/components/Hide.tsx","../src/components/Mark.tsx","../src/components/Highlight/highlighter/highlighter.ts","../src/components/Highlight/Highlight.tsx","../src/components/LengthLimitHelperText.tsx","../src/components/LgOrUp.tsx","../src/components/ListPagination.tsx","../src/components/MdOrDown.tsx","../src/components/MdOrUp.tsx","../src/components/Paper.tsx","../src/components/PasswordTextField.tsx","../src/components/portlet/PortletContent.tsx","../src/components/portlet/PortletFooter.tsx","../src/components/portlet/PortletHeader.tsx","../src/components/portlet/PortletLabel.tsx","../src/components/portlet/PortletTitle.tsx","../src/components/portlet/PortletToolbar.tsx","../src/components/portlet/Portlet.tsx","../src/components/SearchBoxDebouncer.tsx","../src/components/SegmentedControl/components.ts","../src/components/SegmentedControl/SegmentedControl.tsx","../src/components/Show.tsx","../src/components/SmOrDown.tsx","../src/components/SmOrUp.tsx","../src/components/Space.tsx","../src/components/Spoiler.tsx","../src/components/stack/StackColumn.tsx","../src/components/stack/StackRow.tsx","../src/components/top-absolute/TopAbsoluteCenter.tsx","../src/components/top-absolute/TopAbsoluteLeft.tsx","../src/components/top-absolute/TopAbsoluteRight.tsx","../src/components/top-absolute/TopAbsolute.tsx","../src/components/XsOrDown.tsx","../src/util/ymd-date.ts","../src/components/YmdTextField.tsx","../src/components/YmdTypography.tsx","../src/components/YmTypography.tsx","../src/util/event-utils.ts","../src/util/sx-props.ts"],"sourcesContent":["import Box, { type BoxProps } from '@mui/material/Box';\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/Box';\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/Box';\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/Box';\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/Box';\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 Stack, { type StackProps } from '@mui/material/Stack';\n\nexport interface CenterProps extends Omit<StackProps, 'direction'> {\n vertical?: boolean;\n}\n\nexport const Center = ({ vertical = false, sx, ref, ...props }: CenterProps) => {\n return (\n <Stack\n ref={ref}\n {...props}\n direction={vertical ? 'column' : 'row'}\n sx={[\n {\n alignItems: 'center',\n justifyContent: 'center',\n },\n ...(Array.isArray(sx) ? sx : [sx ?? false]),\n ]}\n />\n );\n};\n\nCenter.displayName = 'Center';\n","'use client';\n\nimport Button, { type ButtonProps } from '@mui/material/Button';\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/ButtonBase';\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/IconButton';\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/TableBody';\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/Box';\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/Box';\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/Box';\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/Box';\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/Button';\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/ButtonBase';\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/IconButton';\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 // biome-ignore lint/correctness/useExhaustiveDependencies: 기존 훅의 의도된 의존성 및 실행 시점 계약을 유지합니다.\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, useEffect, useState } from 'react';\n\n/**\n * 지연 렌더링 컴포넌트의 속성입니다.\n */\nexport interface DelayedRenderProps {\n /**\n * 자식을 렌더링하기 전에 기다릴 시간(ms)입니다.\n * 0 이하이면 지연 없이 바로 렌더링합니다. 기본값: 500\n */\n delayMs?: number;\n\n /** 지연 후 표시할 콘텐츠입니다. */\n children: ReactNode;\n}\n\n/**\n * 마운트 후 `delayMs`가 지나면 자식을 렌더링합니다.\n *\n * 빈 목록 안내처럼 로딩이 짧게 끝나면 보이지 않아도 되는 UI의 깜빡임을 줄일 때 씁니다.\n * 지연 중에는 아무것도 렌더링하지 않습니다.\n *\n * - `delayMs`가 바뀌면 자식을 숨기고 새 지연 시간부터 다시 센다.\n * - 한 번 표시된 뒤 `children`이 바뀌면 지연 없이 반영한다.\n * - 지연 없이 보이려면 `delayMs={0}`을 지정한다.\n *\n * @example\n * ```tsx\n * <DelayedRender delayMs={300}>\n * <EmptyView />\n * </DelayedRender>\n * ```\n */\nexport function DelayedRender(props: DelayedRenderProps) {\n const { delayMs = 500, children } = props;\n const delay = Math.max(0, delayMs);\n\n // 어떤 지연 시간에 대해 대기가 끝났는지 기록한다. delay가 바뀌면 같은 렌더에서 바로 숨겨진다.\n const [elapsedDelay, setElapsedDelay] = useState<number | null>(null);\n\n useEffect(() => {\n if (delay === 0) return;\n\n const timerId = setTimeout(() => setElapsedDelay(delay), delay);\n\n return () => {\n clearTimeout(timerId);\n setElapsedDelay(null);\n };\n }, [delay]);\n\n if (delay === 0 || elapsedDelay === delay) return children;\n return null;\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","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","import Grid, { type GridProps } from '@mui/material/Grid';\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","'use client';\n\nimport { type RefObject, useEffect, useRef, useState } from 'react';\nimport { useLatest } from '../../hooks/useLatest.js';\nimport { useMutationObserver } from '../../hooks/useMutationObserver.js';\nimport { useTimeout } from '../../hooks/useTimeout.js';\nimport { isNotNil } from '../../util/internal-util.js';\n\n/**\n * 문자열 값을 정수로 변환하는 유틸리티 함수입니다.\n * @param value 변환할 값\n * @returns 정수 값으로 변환된 숫자\n */\nfunction toInt(value?: string) {\n return value ? parseInt(value, 10) : 0;\n}\n\n/**\n * 부모 요소가 자식 요소를 포함하는지 여부를 확인하는 함수입니다.\n * @param parentElement 부모 요소\n * @param childElement 자식 요소\n * @returns 부모가 자식을 포함하는 경우 true, 그렇지 않으면 false\n */\nfunction isParent(\n parentElement: HTMLElement | EventTarget | null,\n childElement: HTMLElement | null,\n) {\n if (!childElement || !parentElement) {\n return false;\n }\n\n let parent = childElement.parentNode;\n while (isNotNil(parent)) {\n if (parent === parentElement) {\n return true;\n }\n parent = parent.parentNode;\n }\n return false;\n}\n\ninterface UseFloatingIndicatorInput {\n /** 표시할 인디케이터의 대상 요소 */\n target: HTMLElement | null | undefined;\n\n /** 인디케이터가 위치할 부모 요소 */\n parent: HTMLElement | null | undefined;\n\n /** 인디케이터 DOM 참조 */\n indicatorRef: RefObject<HTMLDivElement | null>;\n\n /** 인디케이터 크기 계산 시 대상 요소의 보더 두께를 제외할지 여부 */\n excludeTargetBorderWidth?: boolean;\n\n /** 전환이 끝난 후에 인디케이터를 표시할지 여부 */\n displayAfterTransitionEnd?: boolean;\n}\n\n/**\n * `target` 요소의 위치와 크기를 기반으로 인디케이터를 위치시킵니다.\n * 인디케이터는 `parent` 요소를 기준으로 절대 위치가 지정되며, 보더 두께를 고려하여 계산됩니다.\n * @param target 대상 요소\n * @param parent 부모 요소\n * @param indicatorRef 인디케이터 DOM 참조\n * @param excludeTargetBorderWidth 대상 요소의 보더 두께를 제외할지 여부\n * @param displayAfterTransitionEnd 전환 종료 후에 인디케이터 표시 여부\n * @returns 초기화 여부와 숨김 상태 반환\n */\nexport function useFloatingIndicator({\n target,\n parent,\n indicatorRef,\n excludeTargetBorderWidth = false,\n displayAfterTransitionEnd = false,\n}: UseFloatingIndicatorInput) {\n const transitionTimeout = useRef(-1);\n const [initialized, setInitialized] = useState(false);\n\n const [hidden, setHidden] = useState(displayAfterTransitionEnd);\n\n /**\n * 인디케이터의 위치를 업데이트하는 함수입니다.\n * target과 parent 요소의 크기 및 위치를 계산하여 인디케이터에 적용합니다.\n */\n const updatePosition = useLatest(() => {\n if (!target || !parent || !indicatorRef.current) {\n return;\n }\n\n // getBoundingClientRect()를 사용하여 대상과 부모 요소의 크기 및 위치를 가져옵니다\n // getBoundingClientRect()는 보더의 두께를 포함합니다\n const targetRect = target.getBoundingClientRect();\n const parentRect = parent.getBoundingClientRect();\n\n const targetComputedStyle = window.getComputedStyle(target);\n const parentComputedStyle = window.getComputedStyle(parent);\n\n const parentBorderWidth = {\n top: toInt(parentComputedStyle.borderTopWidth),\n left: toInt(parentComputedStyle.borderLeftWidth),\n };\n\n const targetBorderWidth = {\n top: toInt(targetComputedStyle.borderTopWidth),\n bottom: toInt(targetComputedStyle.borderBottomWidth),\n left: toInt(targetComputedStyle.borderLeftWidth),\n right: toInt(targetComputedStyle.borderRightWidth),\n };\n\n // 인디케이터의 위치 및 크기 계산\n const indicatorRect = {\n top: targetRect.top - parentRect.top - parentBorderWidth.top,\n left: targetRect.left - parentRect.left - parentBorderWidth.left,\n width: targetRect.width,\n height: targetRect.height,\n };\n\n // 보더 두께 제외 설정이 활성화되면 보더 두께를 제외한 크기로 설정\n if (excludeTargetBorderWidth) {\n indicatorRect.top += targetBorderWidth.top;\n indicatorRect.left += targetBorderWidth.left;\n indicatorRect.height -= targetBorderWidth.top + targetBorderWidth.bottom;\n indicatorRect.width -= targetBorderWidth.left + targetBorderWidth.right;\n }\n\n // 인디케이터 스타일 업데이트\n indicatorRef.current.style.transform = `translateX(${indicatorRect.left}px) translateY(${indicatorRect.top}px)`;\n indicatorRef.current.style.width = `${indicatorRect.width}px`;\n indicatorRef.current.style.height = `${indicatorRect.height}px`;\n });\n\n /**\n * 애니메이션 없이 인디케이터의 위치를 업데이트하는 함수입니다.\n * 애니메이션을 제거한 후 즉시 위치를 업데이트하고, 잠시 후 다시 전환 지속 시간을 원상 복구합니다.\n */\n const updatePositionWithoutAnimation = useLatest(() => {\n window.clearTimeout(transitionTimeout.current);\n if (indicatorRef.current) {\n indicatorRef.current.style.transitionDuration = '0ms';\n }\n updatePosition.current();\n transitionTimeout.current = window.setTimeout(() => {\n if (indicatorRef.current) {\n indicatorRef.current.style.transitionDuration = '';\n }\n }, 30);\n });\n\n const targetResizeObserver = useRef<ResizeObserver | null>(null);\n const parentResizeObserver = useRef<ResizeObserver | null>(null);\n\n useEffect(() => {\n updatePosition.current();\n\n // target과 parent 요소에 리사이즈 이벤트 리스너 설정\n if (target) {\n targetResizeObserver.current = new ResizeObserver(updatePositionWithoutAnimation.current);\n targetResizeObserver.current.observe(target);\n\n if (parent) {\n parentResizeObserver.current = new ResizeObserver(updatePositionWithoutAnimation.current);\n parentResizeObserver.current.observe(parent);\n }\n\n return () => {\n targetResizeObserver.current?.disconnect();\n parentResizeObserver.current?.disconnect();\n };\n }\n\n return undefined;\n }, [parent, target, updatePosition, updatePositionWithoutAnimation]);\n\n useEffect(() => {\n if (parent) {\n const handleTransitionEnd = (event: TransitionEvent) => {\n if (isParent(event.target, parent)) {\n updatePositionWithoutAnimation.current();\n setHidden(false);\n }\n };\n\n parent.addEventListener('transitionend', handleTransitionEnd);\n return () => {\n parent.removeEventListener('transitionend', handleTransitionEnd);\n };\n }\n\n return undefined;\n }, [parent, updatePositionWithoutAnimation]);\n\n // 초기화 타이머 설정\n useTimeout(\n () => {\n setInitialized(true);\n },\n 20,\n { autoInvoke: true },\n );\n\n // DOM 변화 감지 및 처리\n useMutationObserver(\n (mutations) => {\n mutations.forEach((mutation) => {\n if (mutation.type === 'attributes' && mutation.attributeName === 'dir') {\n updatePositionWithoutAnimation.current();\n }\n });\n },\n { attributes: true, attributeFilter: ['dir'] },\n () => document.documentElement,\n );\n\n return { initialized, hidden };\n}\n","'use client';\n\nimport Box, { type BoxProps } from '@mui/material/Box';\nimport clsx from 'clsx';\nimport { useRef } from 'react';\nimport { useComposedRefs } from '../../hooks/useComposedRefs.js';\nimport { useFloatingIndicator } from './useFloatingIndicator.js';\n\n/**\n * FloatingIndicator 컴포넌트의 속성 타입입니다.\n */\nexport interface FloatingIndicatorProps extends BoxProps {\n /** 인디케이터가 표시될 대상 요소 */\n target: HTMLElement | null | undefined;\n\n /** 인디케이터의 위치를 기준으로 계산할 부모 요소 */\n parent: HTMLElement | null | undefined;\n\n /** 전환 시간(ms), 기본값은 150ms */\n transitionDuration?: number | string;\n\n /** 인디케이터가 전환이 끝난 후에 표시되는지 여부 (transform: scale(n) 스타일이 적용된 컨테이너 내부에서 사용 시 설정해야 함) */\n displayAfterTransitionEnd?: boolean;\n\n /**\n * 대상 요소의 보더 두께를 제외하여 인디케이터 크기를 계산할지 여부\n * 기본적으로는 대상 요소의 보더를 포함한 크기로 계산됩니다.\n */\n excludeTargetBorderWidth?: boolean;\n}\n\n/**\n * 주어진 `target`과 `parent` 요소를 기준으로 인디케이터를 화면에 표시하는 컴포넌트입니다.\n * 인디케이터는 부모 요소를 기준으로 `absolute` 위치로 배치되며, 다양한 전환 효과를 지원합니다.\n */\nexport const FloatingIndicator = (props: FloatingIndicatorProps) => {\n const {\n target,\n parent,\n transitionDuration = 150,\n excludeTargetBorderWidth = false,\n displayAfterTransitionEnd,\n sx,\n className,\n ref,\n ...restProps\n } = props;\n\n // 인디케이터 요소의 참조\n const innerRef = useRef<HTMLDivElement>(null!);\n\n // 커스텀 훅을 통해 인디케이터의 초기화 및 표시 여부를 관리\n const { initialized, hidden } = useFloatingIndicator({\n target,\n parent,\n indicatorRef: innerRef,\n excludeTargetBorderWidth,\n displayAfterTransitionEnd,\n });\n\n // forwarded ref와 내부 ref 결합\n const mergedRef = useComposedRefs(ref, innerRef);\n\n // 대상 요소와 부모 요소가 없으면 렌더링하지 않음\n if (!target || !parent) {\n return null;\n }\n\n return (\n <Box\n className={clsx('FloatingIndicator-root', className)}\n ref={mergedRef} // mergedRef를 사용하여 ref 전달\n sx={[\n {\n position: 'absolute', // 절대 위치 지정\n top: 0,\n left: 0,\n transition: `transform ${transitionDuration}ms`, // 전환 효과 적용\n opacity: initialized ? 1 : 0, // 초기화 여부에 따른 opacity\n ...(hidden ? { display: 'none' } : undefined), // 숨겨진 경우 display: none 설정\n },\n ...(Array.isArray(sx) ? sx : [sx ?? false]),\n ]}\n {...restProps} // 나머지 속성들\n />\n );\n};\n","import { FloatingIndicator } from './FloatingIndicator.js';\n\nexport * from './FloatingIndicator.js';\n\nexport default FloatingIndicator;\n","/**\n * 기본 props 객체와 여러 오버라이드 props 객체를 병합하여 하나의 새로운 객체를 반환합니다.\n *\n * - `overrides`에 전달된 값들 중 `undefined`는 무시됩니다.\n * - 반환된 객체의 모든 프로퍼티에서 `undefined`가 제거됩니다.\n *\n * @template T - 기본 props 타입\n * @template R - 오버라이드할 props 타입 배열\n *\n * @param targetProps - 병합의 기준이 되는 기본 props 객체\n * @param overrides - 병합할 여러 오버라이드 props 객체 (가변인자)\n * @returns 병합된 새로운 객체로, `undefined` 값이 제거된 상태로 반환됩니다.\n *\n * @example\n * ```typescript\n * const defaultProps = {\n * label: \"기본값\",\n * onClick: () => console.log(\"기본 클릭\"),\n * };\n *\n * const override1 = {\n * label: \"오버라이드 1\",\n * onClick: undefined, // undefined는 무시\n * };\n *\n * const override2 = {\n * style: { color: \"red\" },\n * };\n *\n * const finalProps = overrideProps(defaultProps, override1, override2);\n *\n * // 결과:\n * // {\n * // label: \"오버라이드 1\",\n * // onClick: () => console.log(\"기본 클릭\"), // 기본값 유지\n * // style: { color: \"red\" }\n * // }\n * ```\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function overrideProps<T extends Record<string, any>, R extends Record<string, any>[]>(\n targetProps: T,\n ...overrides: R\n): { [K in keyof (T & R[number])]: Exclude<(T & R[number])[K], undefined> } {\n // 기본 props를 필터링\n const filteredTargetProps = Object.fromEntries(\n Object.entries(targetProps).filter(([_, value]) => value !== undefined),\n );\n\n // 모든 overrides를 순차적으로 병합\n const filteredOverrides = overrides.reduce<Record<string, unknown>>((acc, current) => {\n const filteredCurrent = Object.fromEntries(\n Object.entries(current).filter(([_, value]) => value !== undefined),\n );\n Object.assign(acc, filteredCurrent);\n return acc;\n }, {});\n\n // 최종 병합된 결과 반환\n return {\n ...filteredTargetProps,\n ...filteredOverrides,\n } as { [K in keyof (T & R[number])]: Exclude<(T & R[number])[K], undefined> };\n}\n","import Box, { type BoxProps } from '@mui/material/Box';\nimport Stack, { type StackProps } from '@mui/material/Stack';\nimport type { CSSProperties, FunctionComponent } from 'react';\nimport { overrideProps } from '../../util/override-props.js';\n\nexport type LayoutBase = 'stack' | 'box';\n\nexport interface LayoutComponentConfig {\n displayName: string;\n base: LayoutBase;\n direction: 'row' | 'column';\n defaultProps?: {\n justifyContent?: CSSProperties['justifyContent'];\n alignItems?: CSSProperties['alignItems'];\n };\n supportsCenterProp?: boolean;\n}\n\nexport interface LayoutComponentRenderProps extends BoxProps {\n center?: boolean;\n alignItems?: CSSProperties['alignItems'];\n justifyContent?: CSSProperties['justifyContent'];\n flexWrap?: CSSProperties['flexWrap'];\n inlineFlex?: boolean;\n}\n\n/**\n * Stack 계열(justify/align 변형)과 Flex 계열(justify/align + flexWrap/inlineFlex 변형)의\n * 서브변형·메인 컴포넌트 sx 조립·ref 전달·props 스프레드 로직을 흡수하는 내부 전용 팩토리.\n * 각 파일의 공개 Props 타입은 이 팩토리와 무관하게 파일별로 직접 선언하고, 팩토리 반환값을\n * 해당 타입으로 캐스트해 사용한다.\n *\n * center 정책은 base에 암묵적으로 연동된다: base==='stack'이면 center가 명시\n * alignItems/justifyContent를 무시하고 강제 override, base==='box'면 center는 기본값일\n * 뿐이고 명시 prop이 있으면 그게 우선한다(기존 StackColumn/StackRow vs FlexColumn/FlexRow\n * 동작 차이를 그대로 보존).\n *\n * @remarks\n * 반환 타입은 `base` 값과 무관하게 항상 `LayoutComponentRenderProps`(= `BoxProps` +\n * `flexWrap`/`inlineFlex`)이지만, `base:'stack'` 렌더 경로는 `flexWrap`/`inlineFlex`를\n * 내부적으로 무시한다(MUI `Stack`이 지원하지 않으므로). 따라서 이 함수를 호출하는 쪽은\n * Stack 계열에 한해 반드시 `flexWrap`/`inlineFlex`/`center`가 없는 좁은 타입으로 캐스트해야\n * 공개 타입 표면이 실제 동작과 어긋나지 않는다(`components/stack/StackColumn.tsx`의\n * `StackColumnSubVariantProps` 캐스트 참고).\n */\nexport function createLayoutComponent(\n config: LayoutComponentConfig,\n): FunctionComponent<LayoutComponentRenderProps> {\n const staticDefaults = config.defaultProps ?? {};\n\n const Component = ((allProps: LayoutComponentRenderProps) => {\n const { center, alignItems, justifyContent, flexWrap, inlineFlex, sx, ref, ...domProps } =\n allProps;\n\n const centerActive = Boolean(config.supportsCenterProp && center);\n const centerDefaults = { alignItems: 'center' as const, justifyContent: 'center' as const };\n\n let resolvedStyle: {\n alignItems?: CSSProperties['alignItems'];\n justifyContent?: CSSProperties['justifyContent'];\n flexWrap?: CSSProperties['flexWrap'];\n };\n if (config.base === 'stack') {\n resolvedStyle = centerActive\n ? centerDefaults\n : overrideProps(staticDefaults, { alignItems, justifyContent });\n } else {\n resolvedStyle = overrideProps(centerActive ? centerDefaults : staticDefaults, {\n alignItems,\n justifyContent,\n flexWrap,\n });\n }\n\n const sxArray = Array.isArray(sx) ? sx : [sx];\n\n if (config.base === 'stack') {\n return (\n <Stack\n direction={config.direction}\n {...(domProps as StackProps)}\n ref={ref as React.Ref<HTMLDivElement>}\n sx={[resolvedStyle, ...sxArray]}\n />\n );\n }\n\n return (\n <Box\n ref={ref}\n sx={[\n {\n display: inlineFlex ? 'inline-flex' : 'flex',\n flexDirection: config.direction,\n ...resolvedStyle,\n },\n ...sxArray,\n ]}\n {...domProps}\n />\n );\n }) as FunctionComponent<LayoutComponentRenderProps>;\n\n Component.displayName = config.displayName;\n return Component;\n}\n","import type { FunctionComponent } from 'react';\nimport { createLayoutComponent } from '../layout/create-layout-component.js';\nimport type { FlexBaseProps } from './types.js';\n\nconst FlexColumnStart = createLayoutComponent({\n displayName: 'FlexColumn.Start',\n base: 'box',\n direction: 'column',\n defaultProps: { justifyContent: 'flex-start' },\n}) as FunctionComponent<FlexBaseProps>;\n\nconst FlexColumnEnd = createLayoutComponent({\n displayName: 'FlexColumn.End',\n base: 'box',\n direction: 'column',\n defaultProps: { justifyContent: 'flex-end' },\n}) as FunctionComponent<FlexBaseProps>;\n\nconst FlexColumnCenter = createLayoutComponent({\n displayName: 'FlexColumn.Center',\n base: 'box',\n direction: 'column',\n defaultProps: { justifyContent: 'center' },\n}) as FunctionComponent<FlexBaseProps>;\n\nconst FlexColumnAround = createLayoutComponent({\n displayName: 'FlexColumn.Around',\n base: 'box',\n direction: 'column',\n defaultProps: { justifyContent: 'space-around' },\n}) as FunctionComponent<FlexBaseProps>;\n\nconst FlexColumnBetween = createLayoutComponent({\n displayName: 'FlexColumn.Between',\n base: 'box',\n direction: 'column',\n defaultProps: { justifyContent: 'space-between' },\n}) as FunctionComponent<FlexBaseProps>;\n\nconst FlexColumnEvenly = createLayoutComponent({\n displayName: 'FlexColumn.Evenly',\n base: 'box',\n direction: 'column',\n defaultProps: { justifyContent: 'space-evenly' },\n}) as FunctionComponent<FlexBaseProps>;\n\nexport interface FlexColumnProps extends FlexBaseProps {\n center?: boolean;\n}\n\ninterface FlexColumnComponent extends React.FunctionComponent<FlexColumnProps> {\n Start: typeof FlexColumnStart;\n End: typeof FlexColumnEnd;\n Center: typeof FlexColumnCenter;\n Between: typeof FlexColumnBetween;\n Around: typeof FlexColumnAround;\n Evenly: typeof FlexColumnEvenly;\n}\n\nconst FlexColumnBase = createLayoutComponent({\n displayName: 'FlexColumn',\n base: 'box',\n direction: 'column',\n supportsCenterProp: true,\n}) as FlexColumnComponent;\n\nexport const FlexColumn = FlexColumnBase;\nFlexColumn.Start = FlexColumnStart;\nFlexColumn.End = FlexColumnEnd;\nFlexColumn.Center = FlexColumnCenter;\nFlexColumn.Between = FlexColumnBetween;\nFlexColumn.Evenly = FlexColumnEvenly;\nFlexColumn.Around = FlexColumnAround;\n","import type { FunctionComponent } from 'react';\nimport { createLayoutComponent } from '../layout/create-layout-component.js';\nimport type { FlexBaseProps } from './types.js';\n\nconst FlexRowStart = createLayoutComponent({\n displayName: 'FlexRow.Start',\n base: 'box',\n direction: 'row',\n defaultProps: { justifyContent: 'flex-start' },\n}) as FunctionComponent<FlexBaseProps>;\n\nconst FlexRowEnd = createLayoutComponent({\n displayName: 'FlexRow.End',\n base: 'box',\n direction: 'row',\n defaultProps: { justifyContent: 'flex-end' },\n}) as FunctionComponent<FlexBaseProps>;\n\nconst FlexRowAround = createLayoutComponent({\n displayName: 'FlexRow.Around',\n base: 'box',\n direction: 'row',\n defaultProps: { justifyContent: 'space-around' },\n}) as FunctionComponent<FlexBaseProps>;\n\nconst FlexRowBetween = createLayoutComponent({\n displayName: 'FlexRow.Between',\n base: 'box',\n direction: 'row',\n defaultProps: { justifyContent: 'space-between' },\n}) as FunctionComponent<FlexBaseProps>;\n\nconst FlexRowEvenly = createLayoutComponent({\n displayName: 'FlexRow.Evenly',\n base: 'box',\n direction: 'row',\n defaultProps: { justifyContent: 'space-evenly' },\n}) as FunctionComponent<FlexBaseProps>;\n\nconst FlexRowCenter = createLayoutComponent({\n displayName: 'FlexRow.Center',\n base: 'box',\n direction: 'row',\n defaultProps: { justifyContent: 'center' },\n}) as FunctionComponent<FlexBaseProps>;\n\nexport interface FlexRowProps extends FlexBaseProps {\n center?: boolean;\n}\n\ninterface FlexRowComponent extends React.FunctionComponent<FlexRowProps> {\n Start: typeof FlexRowStart;\n End: typeof FlexRowEnd;\n Center: typeof FlexRowCenter;\n Between: typeof FlexRowBetween;\n Around: typeof FlexRowAround;\n Evenly: typeof FlexRowEvenly;\n}\n\nconst FlexRowBase = createLayoutComponent({\n displayName: 'FlexRow',\n base: 'box',\n direction: 'row',\n supportsCenterProp: true,\n}) as FlexRowComponent;\n\nexport const FlexRow = FlexRowBase;\nFlexRow.Start = FlexRowStart;\nFlexRow.End = FlexRowEnd;\nFlexRow.Center = FlexRowCenter;\nFlexRow.Between = FlexRowBetween;\nFlexRow.Around = FlexRowAround;\nFlexRow.Evenly = FlexRowEvenly;\n","import type { ReactNode } from 'react';\n\nexport interface HideProps {\n /**\n * 개발자 설명\n */\n devComment?: unknown;\n\n children?: ReactNode;\n}\n\nexport function Hide(_props: HideProps) {\n return null;\n}\n","import Box from '@mui/material/Box';\nimport type { SxProps } from '@mui/material/styles';\nimport clsx from 'clsx';\nimport type { ReactNode, Ref } from 'react';\n\nexport interface MarkProps {\n sx?: SxProps;\n\n className?: string;\n\n color?: string;\n\n bgcolor?: string;\n\n children?: ReactNode;\n\n ref?: Ref<HTMLElement>;\n}\n\nexport const Mark = (props: MarkProps) => {\n // restProps는 data-xxx를 적용하기 위해 필요함\n const { sx, className, color = '#000', bgcolor = '#ff0', children, ref, ...restProps } = props;\n return (\n <Box\n className={clsx('Mark-root', className)}\n component='mark'\n ref={ref}\n sx={[\n {\n display: 'inline-block',\n color,\n bgcolor,\n },\n ...(Array.isArray(sx) ? sx : [sx ?? false]),\n ]}\n {...restProps}\n >\n {children}\n </Box>\n );\n};\n\nMark.displayName = 'Mark';\n","function escapeRegex(value: string) {\n return value.replace(/[-[\\]{}()*+?.,\\\\^$|#]/g, '\\\\$&');\n}\n\nexport function highlighter(\n value: string,\n _highlight: string | string[],\n option?: {\n ignorecase?: boolean;\n },\n) {\n if (!_highlight || _highlight.length === 0) {\n return [{ chunk: value, highlighted: false }];\n }\n\n const ignorecase = option?.ignorecase ?? true;\n\n const highlight = Array.isArray(_highlight)\n ? _highlight.map(escapeRegex)\n : escapeRegex(_highlight);\n\n const shouldHighlight = Array.isArray(highlight)\n ? highlight.filter((part) => part.trim().length > 0).length > 0\n : highlight.trim() !== '';\n\n if (!shouldHighlight) {\n return [{ chunk: value, highlighted: false }];\n }\n\n const matcher =\n typeof highlight === 'string'\n ? highlight.trim()\n : highlight\n .filter((part) => part.trim().length !== 0)\n .map((part) => part.trim())\n .sort((a, b) => b.length - a.length)\n .join('|');\n\n const re = new RegExp(`(${matcher})`, ignorecase ? 'gi' : 'g');\n const chunks = value\n .split(re)\n .map((part) => ({ chunk: part, highlighted: re.test(part) }))\n .filter(({ chunk }) => chunk);\n\n return chunks;\n}\n","import type { SxProps, Theme } from '@mui/material/styles';\nimport Typography, { type TypographyProps } from '@mui/material/Typography';\nimport clsx from 'clsx';\nimport { type CSSProperties, type Ref, useMemo } from 'react';\nimport { Mark } from '../Mark.js';\nimport { highlighter } from './highlighter/highlighter.js';\n\n/**\n * 특정 텍스트의 부분 문자열을 강조 표시하는 컴포넌트입니다.\n *\n * - `highlight` 속성을 사용해 강조 표시할 문자열 또는 문자열 배열을 지정할 수 있습니다.\n * - 강조 표시된 텍스트는 `Mark` 컴포넌트를 사용하여 스타일링됩니다.\n * - 다양한 사용자 정의 스타일과 속성을 지원합니다.\n */\nexport interface HighlightProps {\n /**\n * `sx` 속성을 사용해 스타일을 추가로 설정할 수 있습니다.\n */\n sx?: SxProps<Theme>;\n\n /**\n * 추가로 적용할 CSS 클래스 이름입니다.\n */\n className?: string;\n\n /**\n * 인라인 스타일을 적용할 수 있습니다.\n */\n style?: CSSProperties;\n\n /**\n * MUI `Typography` 컴포넌트의 `variant` 속성입니다.\n */\n variant?: TypographyProps['variant'];\n\n /**\n * 강조 표시할 부분 문자열 또는 문자열 배열입니다.\n *\n * @example\n * ```tsx\n * <Highlight highlight=\"React\">React is amazing!</Highlight>\n * <Highlight highlight={[\"React\", \"amazing\"]}>React is amazing!</Highlight>\n * ```\n */\n highlight: string | string[];\n\n /**\n * 강조 표시된 텍스트의 색상을 지정합니다.\n * `theme.colors` 키 또는 유효한 CSS 색상 값을 사용할 수 있습니다.\n * 기본값은 `yellow`입니다.\n */\n color?: string;\n\n /**\n * 강조 표시된 텍스트에 적용할 추가 스타일입니다.\n */\n highlightSx?: SxProps;\n\n /**\n * 강조 표시 작업을 수행할 문자열입니다.\n */\n children: string;\n\n /**\n * 대소문자를 무시하고 강조 표시할지 여부를 설정합니다.\n *\n * @default false\n */\n ignorecase?: boolean;\n\n /**\n * 강조 표시된 텍스트에 `data-highlight` 속성을 추가할지 여부를 설정합니다.\n *\n * @default false\n */\n includeDataAttribute?: boolean;\n\n ref?: Ref<HTMLElement>;\n}\n\n/**\n * `Highlight` 컴포넌트는 주어진 텍스트에서 특정 문자열을 강조 표시합니다.\n *\n * - 강조 표시된 텍스트는 `Mark` 컴포넌트를 사용하여 스타일링됩니다.\n * - 대소문자 무시, 사용자 정의 색상 및 스타일 등 다양한 옵션을 제공합니다.\n *\n * @param props - `HighlightProps` 속성\n * @returns 강조 표시된 텍스트를 포함한 `Typography` 컴포넌트를 렌더링합니다.\n *\n * @example\n * ```tsx\n * <Highlight\n * highlight=\"highlight\"\n * color=\"red\"\n * ignorecase\n * includeDataAttribute\n * >\n * This is a highlight example.\n * </Highlight>\n * ```\n */\nexport const Highlight = (props: HighlightProps) => {\n const {\n sx,\n className,\n style,\n variant,\n highlight,\n color,\n highlightSx,\n ignorecase = false,\n includeDataAttribute = false,\n children,\n ref,\n ...restProps\n } = props;\n\n const highlightChunks = useMemo<{ chunk: string; highlighted: boolean }[]>(\n () => highlighter(children, highlight, { ignorecase }),\n [children, highlight, ignorecase],\n );\n\n return (\n <Typography\n ref={ref}\n variant={variant}\n className={clsx('Highlight-root', className)}\n sx={sx}\n style={style}\n {...restProps}\n >\n {highlightChunks.map(({ chunk, highlighted }, i) =>\n highlighted ? (\n includeDataAttribute ? (\n <Mark key={i} color={color} sx={highlightSx} data-highlight={chunk}>\n {chunk}\n </Mark>\n ) : (\n <Mark key={i} color={color} sx={highlightSx}>\n {chunk}\n </Mark>\n )\n ) : (\n <span key={i}>{chunk}</span>\n ),\n )}\n </Typography>\n );\n};\n\nHighlight.displayName = 'Highlight';\n","import Box from '@mui/material/Box';\nimport type { SxProps } from '@mui/material/styles';\nimport clsx from 'clsx';\nimport type { ReactNode } from 'react';\n\ninterface Props {\n sx?: SxProps;\n className?: string;\n text?: ReactNode;\n maxLen: number;\n currentLen?: number;\n}\n\nexport function LengthLimitHelperText(props: Props) {\n const { sx, className, text, maxLen, currentLen = 0 } = props;\n\n const error = currentLen > maxLen;\n\n if (text) {\n return (\n <Box\n className={clsx('LengthLimitHelperText-root', className)}\n component='span'\n sx={[\n {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n color: error ? 'error.main' : 'text.secondary',\n },\n ...(Array.isArray(sx) ? sx : [sx ?? false]),\n ]}\n >\n {typeof text === 'string' ? <span>{text}</span> : text}\n <Box component='span' sx={{ ml: 2, whiteSpace: 'nowrap' }}>\n {currentLen} / {maxLen}\n </Box>\n </Box>\n );\n }\n\n return (\n <Box\n className={clsx('LengthLimitHelperText-root', className)}\n component='span'\n sx={[\n {\n display: 'flex',\n justifyContent: 'flex-end',\n alignItems: 'center',\n color: error ? 'error.main' : 'text.secondary',\n whiteSpace: 'nowrap',\n },\n ...(Array.isArray(sx) ? sx : [sx ?? false]),\n ]}\n >\n {currentLen} / {maxLen}\n </Box>\n );\n}\n","'use client';\n\nimport type { Theme } from '@mui/material/styles';\nimport useMediaQuery from '@mui/material/useMediaQuery';\nimport type { ReactNode } from 'react';\n\nexport interface LgOrUpProps {\n children?: ReactNode | ReactNode[];\n}\n\nexport function LgOrUp(props: LgOrUpProps) {\n const { children } = props;\n const matched = useMediaQuery((theme: Theme) => theme.breakpoints.up('lg'));\n if (!matched || !children) return null;\n return <>{children}</>;\n}\n","import Pagination, { type PaginationProps } from '@mui/material/Pagination';\nimport clsx from 'clsx';\nimport { Center } from './Center.js';\n\nexport interface ListPaginationProps\n extends Omit<PaginationProps, 'page' | 'count' | 'onChange' | 'hidden' | 'ref'> {\n /**\n * 현재 페이지 번호입니다.\n * 기본은 MUI `Pagination`과 같은 1-based이며, `zeroBased`가 true이면 첫 페이지가 `0`입니다.\n */\n page: number;\n\n /** 전체 페이지 수입니다. */\n count: number;\n\n /**\n * 사용자가 페이지를 바꿨을 때 호출합니다.\n * 전달되는 번호의 기준은 `page`와 같습니다.\n */\n onChange?: (pageNumber: number) => void;\n\n /**\n * `page`와 `onChange`의 페이지 번호를 0-based로 다룰지 여부입니다.\n * 서버가 0-based 페이지 번호를 쓸 때 변환 코드를 반복하지 않도록 제공합니다.\n * @default false\n */\n zeroBased?: boolean;\n\n /**\n * 컴포넌트를 강제로 숨길지 여부입니다.\n * @default false\n */\n hidden?: boolean;\n\n /**\n * 페이지 이동 후 화면 상단으로 스크롤하는 동작을 막을지 여부입니다.\n * @default false\n */\n disableAutoScroll?: boolean;\n}\n\n/**\n * 목록 화면 하단에 쓰는 페이지네이션입니다.\n * MUI `Pagination`을 가운데 정렬하고 위아래 여백(`py: 1.5`)을 더합니다.\n *\n * @remarks\n * - `count`가 1 이하이면 아무것도 렌더링하지 않습니다.\n * - 페이지를 바꾸면 기본으로 `window.scrollTo`로 화면 상단으로 이동합니다.\n * - `className`과 `sx`는 바깥 래퍼에 적용되고, 나머지 props는 MUI `Pagination`에 전달됩니다.\n *\n * @example\n * ```tsx\n * <ListPagination page={page} count={totalPages} onChange={setPage} />\n *\n * // 서버가 0-based 페이지 번호를 쓸 때\n * <ListPagination zeroBased page={pageNumber} count={totalPages} onChange={setPageNumber} />\n * ```\n */\nexport const ListPagination = ({\n page,\n count,\n onChange,\n zeroBased = false,\n hidden = false,\n disableAutoScroll = false,\n className,\n sx,\n ...paginationProps\n}: ListPaginationProps) => {\n if (hidden) return null;\n\n // 페이지가 하나뿐이면 보여줄 필요가 없다\n if (count <= 1) return null;\n\n // MUI는 1-based이므로 0-based 입력은 렌더링 직전에 보정한다\n const offset = zeroBased ? 1 : 0;\n\n const handleChange = (_: React.ChangeEvent<unknown>, muiPage: number) => {\n onChange?.(muiPage - offset);\n\n // 목록 문맥을 유지하기 위해 이동 후 상단으로 스크롤한다\n if (!disableAutoScroll) {\n window.scrollTo({ top: 0, behavior: 'instant' });\n }\n };\n\n return (\n <Center\n className={clsx(className, 'ListPagination-root')}\n sx={[{ py: 1.5 }, ...(Array.isArray(sx) ? sx : [sx ?? false])]}\n >\n <Pagination\n {...paginationProps}\n page={page + offset}\n count={count}\n onChange={onChange ? handleChange : undefined}\n />\n </Center>\n );\n};\n\nListPagination.displayName = 'ListPagination';\n","'use client';\n\nimport type { Theme } from '@mui/material/styles';\nimport useMediaQuery from '@mui/material/useMediaQuery';\nimport type { ReactNode } from 'react';\n\nexport interface MdOrDownProps {\n children?: ReactNode | ReactNode[];\n}\n\nexport function MdOrDown(props: MdOrDownProps) {\n const { children } = props;\n const matched = useMediaQuery((theme: Theme) => theme.breakpoints.down('lg'));\n if (!matched || !children) return null;\n return <>{children}</>;\n}\n","'use client';\n\nimport type { Theme } from '@mui/material/styles';\nimport useMediaQuery from '@mui/material/useMediaQuery';\nimport type { ReactNode } from 'react';\n\nexport interface MdOrUpProps {\n children?: ReactNode | ReactNode[];\n}\n\nexport function MdOrUp(props: MdOrUpProps) {\n const { children } = props;\n const matched = useMediaQuery((theme: Theme) => theme.breakpoints.up('md'));\n if (!matched || !children) return null;\n return <>{children}</>;\n}\n","import MuiPaper, { type PaperProps as MuiPaperProps } from '@mui/material/Paper';\nimport clsx from 'clsx';\n\nexport interface PaperProps extends MuiPaperProps {\n squared?: boolean;\n outlined?: boolean;\n}\n\nexport function Paper(props: PaperProps) {\n const { className, sx, squared, outlined, children, ...rest } = props;\n return (\n <MuiPaper\n {...rest}\n className={clsx('Paper-root', className)}\n sx={[\n {\n borderRadius: squared ? 0 : 1,\n border: outlined ? '1px solid #ddd' : 'none',\n },\n ...(Array.isArray(sx) ? sx : [sx ?? false]),\n ]}\n >\n {children}\n </MuiPaper>\n );\n}\n","'use client';\n\nimport IconButton from '@mui/material/IconButton';\nimport InputAdornment from '@mui/material/InputAdornment';\nimport type { TextFieldProps } from '@mui/material/TextField';\nimport TextField from '@mui/material/TextField';\nimport { createSvgIcon } from '@mui/material/utils';\nimport type { MouseEvent } from 'react';\nimport { useState } from 'react';\n\n// @mui/icons-material을 peer로 요구하지 않기 위해 Material Icons의 경로를 직접 정의한다.\nconst VisibilityIcon = createSvgIcon(\n <path d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3' />,\n 'Visibility',\n);\n\nconst VisibilityOffIcon = createSvgIcon(\n <path d='M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z' />,\n 'VisibilityOff',\n);\n\n/**\n * 비밀번호 표시 상태를 전환할 수 있는 입력 컴포넌트의 속성입니다.\n *\n * `type`은 내부에서 `password`/`text`로 전환하므로 받지 않습니다.\n */\nexport type PasswordTextFieldProps = Omit<TextFieldProps, 'type'> & {\n /** 비밀번호가 가려져 있을 때 토글 버튼의 접근성 레이블입니다. 기본값: `비밀번호 보기` */\n showLabel?: string;\n\n /** 비밀번호가 표시되어 있을 때 토글 버튼의 접근성 레이블입니다. 기본값: `비밀번호 숨기기` */\n hideLabel?: string;\n};\n\n/**\n * 비밀번호를 마스킹 상태와 평문 상태로 전환해 표시하는 `TextField`.\n *\n * 동작 규칙:\n * - 끝 장식(endAdornment)에 보기/숨기기 토글 버튼을 둔다.\n * - 버튼 크기는 `size`를 따르고, `disabled`이면 버튼도 비활성화한다.\n * - `slotProps.input.endAdornment`를 지정하면 기본 토글 버튼 대신 그 값을 쓴다.\n * - `slotProps.input` 외 슬롯(`htmlInput` 등)은 그대로 전달한다.\n */\nexport function PasswordTextField(props: PasswordTextFieldProps) {\n const {\n slotProps,\n size,\n disabled,\n showLabel = '비밀번호 보기',\n hideLabel = '비밀번호 숨기기',\n ...rest\n } = props;\n const [visible, setVisible] = useState(false);\n\n // 비밀번호 표시 상태를 토글합니다.\n const handleToggleVisibility = () => {\n setVisible((previousVisible) => !previousVisible);\n };\n\n // 마우스 다운 시 입력 포커스가 불필요하게 바뀌지 않도록 막습니다.\n const handleMouseDown = (event: MouseEvent<HTMLButtonElement>) => {\n event.preventDefault();\n };\n\n const toggleAdornment = (\n <InputAdornment position='end'>\n <IconButton\n aria-label={visible ? hideLabel : showLabel}\n edge='end'\n disabled={disabled}\n onClick={handleToggleVisibility}\n onMouseDown={handleMouseDown}\n size={size === 'small' ? 'small' : 'medium'}\n >\n {visible ? <VisibilityIcon /> : <VisibilityOffIcon />}\n </IconButton>\n </InputAdornment>\n );\n\n // 사용자가 넘긴 input 슬롯(객체 또는 함수)과 병합한다. 사용자 값이 우선한다.\n const userInput = slotProps?.input;\n const input =\n typeof userInput === 'function'\n ? (ownerState: Parameters<typeof userInput>[0]) => ({\n endAdornment: toggleAdornment,\n ...userInput(ownerState),\n })\n : { endAdornment: toggleAdornment, ...userInput };\n\n return (\n <TextField\n type={visible ? 'text' : 'password'}\n size={size}\n disabled={disabled}\n {...rest}\n slotProps={{ ...slotProps, input }}\n />\n );\n}\n","import Box, { type BoxProps } from '@mui/material/Box';\nimport { clsx } from 'clsx';\n\nexport interface PortletContentProps extends BoxProps {\n noPadding?: boolean;\n}\n\n/**\n * Portlet의 본문 영역을 렌더링합니다.\n *\n * @param props Box 속성과 여백 설정\n * @returns 본문 레이아웃이 적용된 Box\n * @example\n * ```tsx\n * <Portlet.Content noPadding>내용</Portlet.Content>\n * ```\n */\nexport const PortletContent = (props: PortletContentProps) => {\n const { noPadding = false, className, sx, children, ref, ...restProps } = props;\n return (\n <Box\n {...restProps}\n className={clsx('PortletContent-root', className, {\n 'PortletContent-noPadding': noPadding,\n })}\n ref={ref}\n sx={[\n (theme) => ({\n flex: 1,\n p: theme.spacing(2, 3),\n '&.PortletContent-noPadding': {\n p: 0,\n },\n }),\n ...(Array.isArray(sx) ? sx : [sx ?? false]),\n ]}\n >\n {children}\n </Box>\n );\n};\n\nPortletContent.displayName = 'PortletContent';\n","import Box, { type BoxProps } from '@mui/material/Box';\nimport { clsx } from 'clsx';\n\nexport interface PortletFooterProps extends BoxProps {\n noDivider?: boolean;\n}\n\n/**\n * Portlet의 하단 영역을 렌더링합니다.\n *\n * @param props Box 속성과 구분선 설정\n * @returns 하단 레이아웃이 적용된 Box\n * @example\n * ```tsx\n * <Portlet.Footer noDivider>하단 내용</Portlet.Footer>\n * ```\n */\nexport const PortletFooter = (props: PortletFooterProps) => {\n const { noDivider, sx, className, children, ref, ...rest } = props;\n return (\n <Box\n {...rest}\n className={clsx('PortletFooter-root', className, {\n 'PortletFooter-noDivider': noDivider,\n })}\n ref={ref}\n sx={[\n (theme) => ({\n p: theme.spacing(1, 2),\n borderTop: '1px solid #E0E4EE',\n borderBottomLeftRadius: '2px',\n borderBottomRightRadius: '2px',\n '&.PortletFooter-noDivider': {\n borderTop: 'none',\n },\n }),\n ...(Array.isArray(sx) ? sx : [sx ?? false]),\n ]}\n >\n {children}\n </Box>\n );\n};\n\nPortletFooter.displayName = 'PortletFooter';\n","import Box, { type BoxProps } from '@mui/material/Box';\nimport { clsx } from 'clsx';\n\nexport interface PortletHeaderProps extends BoxProps {\n noDivider?: boolean;\n noPadding?: boolean;\n}\n\n/**\n * Portlet의 Label과 Toolbar를 배치하는 상단 영역을 렌더링합니다.\n *\n * @param props Box 속성과 여백·구분선 설정\n * @returns 상단 레이아웃이 적용된 Box\n * @example\n * ```tsx\n * <Portlet.Header>\n * <Portlet.Label title='제목' />\n * <Portlet.Toolbar>도구</Portlet.Toolbar>\n * </Portlet.Header>\n * ```\n */\nexport const PortletHeader = (props: PortletHeaderProps) => {\n const { children, noDivider, className, noPadding = false, sx, ref, ...rest } = props;\n\n return (\n <Box\n {...rest}\n className={clsx('PortletHeader-root', className, {\n 'PortletHeader-noPadding': noPadding,\n 'PortletHeader-noDivider': noDivider,\n })}\n ref={ref}\n sx={[\n (theme) => ({\n position: 'relative',\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n borderBottom: '1px solid #E0E4EE',\n borderTopLeftRadius: 2,\n borderTopRightRadius: 2,\n height: 56,\n minHeight: 56,\n p: theme.spacing(0.5, 1, 0.5, 3),\n '&.PortletHeader-noPadding': {\n p: theme.spacing(0.5, 0, 0.5, 0),\n },\n '&.PortletHeader-noDivider': {\n borderBottom: 'none',\n },\n }),\n ...(Array.isArray(sx) ? sx : [sx ?? false]),\n ]}\n >\n {children}\n </Box>\n );\n};\n\nPortletHeader.displayName = 'PortletHeader';\n","import Box, { type BoxProps } from '@mui/material/Box';\nimport Typography from '@mui/material/Typography';\nimport { clsx } from 'clsx';\nimport type { ReactNode } from 'react';\n\nexport interface PortletLabelProps extends BoxProps {\n icon?: ReactNode;\n /** 제목 Typography에 표시할 텍스트입니다. HTML `title` 속성으로 전달되지 않습니다. */\n title?: string;\n subtitle?: string;\n}\n\n/**\n * Portlet Header에 아이콘, 제목, 부제목을 표시합니다.\n *\n * @param props Box 속성과 표시할 아이콘·제목·부제목\n * @returns Label 레이아웃이 적용된 Box\n * @example\n * ```tsx\n * <Portlet.Label title='제목' subtitle='부제목' />\n * ```\n */\nexport const PortletLabel = (props: PortletLabelProps) => {\n const { icon, title, subtitle, className, sx, ref, ...rest } = props;\n return (\n <Box\n {...rest}\n className={clsx('PortletLabel-root', className)}\n ref={ref}\n sx={[\n {\n display: 'flex',\n alignItems: 'center',\n },\n ...(Array.isArray(sx) ? sx : [sx ?? false]),\n ]}\n >\n {icon && (\n <Box\n component='span'\n sx={{\n fontSize: '1.2rem',\n mr: 1,\n color: 'text.secondary',\n alignItems: 'center',\n display: 'flex',\n }}\n >\n {icon}\n </Box>\n )}\n {title && (\n <Typography\n sx={{\n fontWeight: 500,\n fontSize: '1.1rem',\n }}\n variant='h6'\n >\n {title}\n </Typography>\n )}\n {subtitle && (\n <Typography\n variant='subtitle2'\n sx={{\n fontWeight: 400,\n ml: 1,\n color: 'text.secondary',\n }}\n >\n {subtitle}\n </Typography>\n )}\n </Box>\n );\n};\n\nPortletLabel.displayName = 'PortletLabel';\n","import Box from '@mui/material/Box';\nimport CircularProgress from '@mui/material/CircularProgress';\nimport IconButton from '@mui/material/IconButton';\nimport Stack, { type StackProps } from '@mui/material/Stack';\nimport SvgIcon from '@mui/material/SvgIcon';\nimport Typography, { type TypographyProps } from '@mui/material/Typography';\nimport { clsx } from 'clsx';\nimport type { MouseEventHandler, ReactNode } from 'react';\n\nexport interface PortletTitleProps extends Omit<StackProps, 'title' | 'direction' | 'children'> {\n /** 문자열이면 Typography로 감싸 표시하고, 그 외 노드는 그대로 렌더링합니다. */\n title: ReactNode;\n /** 제목 Typography의 variant입니다. 기본값은 `h5`입니다. 문자열 제목에만 적용됩니다. */\n titleVariant?: TypographyProps['variant'];\n /** 0보다 클 때만 제목 옆에 표시합니다. */\n itemCount?: number;\n /** 건수 표시 형식입니다. 기본값은 천 단위 구분자를 넣은 숫자입니다. 단위나 번역은 여기서 붙입니다. */\n formatItemCount?: (count: number) => ReactNode;\n /** true이면 새로고침 버튼 대신 로딩 표시를 보여줍니다. */\n loading?: boolean;\n /** true이면 제목의 `nowrap` 처리를 해제합니다. */\n disableNowrapTitle?: boolean;\n /** 새로고침 버튼의 접근성 이름(aria-label)입니다. 기본값은 `새로고침`입니다. */\n refreshLabel?: string;\n /** 지정했을 때만 새로고침 버튼을 표시합니다. */\n onClickRefresh?: MouseEventHandler<HTMLButtonElement>;\n}\n\nconst defaultFormatItemCount = (count: number): ReactNode => count.toLocaleString();\n\n/**\n * Portlet Header에 제목, 건수, 새로고침 버튼(또는 로딩 표시)을 한 줄로 표시합니다.\n *\n * @param props Stack 속성과 제목·건수·새로고침 설정\n * @returns 제목과 새로고침 영역을 가로로 배치한 Stack\n * @remarks 새로고침 영역은 버튼과 로딩 표시가 번갈아 나타나도 제목 위치가 흔들리지 않도록 최소 너비 40px을 유지합니다.\n * @example\n * ```tsx\n * <Portlet.Header>\n * <Portlet.Title\n * title='사용자 목록'\n * titleVariant='h6'\n * itemCount={120}\n * formatItemCount={(n) => `${n.toLocaleString()}건`}\n * loading={loading}\n * onClickRefresh={reload}\n * />\n * </Portlet.Header>\n * ```\n */\nexport const PortletTitle = (props: PortletTitleProps) => {\n const {\n title,\n titleVariant = 'h5',\n itemCount = 0,\n formatItemCount = defaultFormatItemCount,\n loading,\n disableNowrapTitle = false,\n refreshLabel = '새로고침',\n onClickRefresh,\n className,\n sx,\n ref,\n ...rest\n } = props;\n\n return (\n <Stack\n direction='row'\n spacing={0.5}\n {...rest}\n ref={ref}\n className={clsx('PortletTitle-root', className)}\n sx={[{ alignItems: 'center' }, ...(Array.isArray(sx) ? sx : [sx ?? false])]}\n >\n {typeof title === 'string' ? (\n <Typography\n variant={titleVariant}\n className='PortletTitle-title'\n sx={{\n display: 'flex',\n alignItems: 'center',\n whiteSpace: disableNowrapTitle ? 'inherit' : 'nowrap',\n '& small': {\n display: 'inline-block',\n ml: 1,\n color: 'text.secondary',\n fontSize: '0.7rem',\n },\n }}\n >\n {title}\n {itemCount > 0 && <small>{formatItemCount(itemCount)}</small>}\n </Typography>\n ) : (\n title\n )}\n\n <Box\n className='PortletTitle-reloadBtnBox'\n sx={{ display: 'flex', flexDirection: 'column', alignItems: 'center', minWidth: 40 }}\n >\n {!loading && onClickRefresh ? (\n <IconButton\n color='primary'\n size='small'\n aria-label={refreshLabel}\n className='PortletTitle-reloadBtn'\n onClick={onClickRefresh}\n >\n <SvgIcon>\n <path d='M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z' />\n </SvgIcon>\n </IconButton>\n ) : null}\n\n {loading ? <CircularProgress color='primary' size='1rem' /> : null}\n </Box>\n </Stack>\n );\n};\n\nPortletTitle.displayName = 'PortletTitle';\n","import Box, { type BoxProps } from '@mui/material/Box';\nimport { clsx } from 'clsx';\n\nexport type PortletToolbarProps = BoxProps;\n\n/**\n * Portlet Header의 도구를 우측에 배치합니다.\n *\n * @param props Box 속성과 Toolbar 자식 요소\n * @returns 우측 정렬된 Toolbar Box\n * @example\n * ```tsx\n * <Portlet.Toolbar>도구</Portlet.Toolbar>\n * ```\n */\nexport const PortletToolbar = (props: PortletToolbarProps) => {\n const { className, sx, children, ref, ...restProps } = props;\n return (\n <Box\n {...restProps}\n ref={ref}\n className={clsx('PortletToolbar-root', className)}\n sx={[\n {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'flex-end',\n ml: 'auto',\n },\n ...(Array.isArray(sx) ? sx : [sx ?? false]),\n ]}\n >\n {children}\n </Box>\n );\n};\n\nPortletToolbar.displayName = 'PortletToolbar';\n","import Paper, { type PaperProps } from '@mui/material/Paper';\nimport { clsx } from 'clsx';\nimport type { FunctionComponent, ReactNode } from 'react';\nimport { PortletContent } from './PortletContent.js';\nimport { PortletFooter } from './PortletFooter.js';\nimport { PortletHeader } from './PortletHeader.js';\nimport { PortletLabel } from './PortletLabel.js';\nimport { PortletTitle } from './PortletTitle.js';\nimport { PortletToolbar } from './PortletToolbar.js';\n\nexport type { PortletContentProps } from './PortletContent.js';\nexport type { PortletFooterProps } from './PortletFooter.js';\nexport type { PortletHeaderProps } from './PortletHeader.js';\nexport type { PortletLabelProps } from './PortletLabel.js';\nexport type { PortletTitleProps } from './PortletTitle.js';\nexport type { PortletToolbarProps } from './PortletToolbar.js';\n\nconst defaultProps: PaperProps = {\n square: true,\n};\n\nexport interface PortletProps extends Omit<PaperProps, 'elevation' | 'component' | 'nonce'> {\n children?: ReactNode;\n}\n\ninterface PortletComponent extends FunctionComponent<PortletProps> {\n Content: typeof PortletContent;\n Header: typeof PortletHeader;\n Footer: typeof PortletFooter;\n Label: typeof PortletLabel;\n Title: typeof PortletTitle;\n Toolbar: typeof PortletToolbar;\n}\n\n/**\n * Label, Toolbar, Content, Footer를 조립하는 카드형 컨테이너입니다.\n *\n * @param props Paper 속성과 Portlet 자식 요소\n * @returns 테두리와 세로 레이아웃이 적용된 Portlet\n * @example\n * ```tsx\n * <Portlet>\n * <Portlet.Header>\n * <Portlet.Label title='상태' />\n * <Portlet.Toolbar>도구</Portlet.Toolbar>\n * </Portlet.Header>\n * <Portlet.Content>내용</Portlet.Content>\n * </Portlet>\n * ```\n */\nexport const Portlet = ((props: PortletProps) => {\n const { sx, className, children, ref, ...restProps } = props;\n return (\n <Paper\n {...defaultProps}\n {...restProps}\n elevation={0}\n ref={ref}\n component='div'\n className={clsx('Portlet-root', className)}\n sx={[\n {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'stretch',\n border: '1px solid #E0E4EE',\n },\n ...(Array.isArray(sx) ? sx : [sx ?? false]),\n ]}\n >\n {children}\n </Paper>\n );\n}) as PortletComponent;\n\nPortlet.displayName = 'Portlet';\nPortlet.Content = PortletContent;\nPortlet.Header = PortletHeader;\nPortlet.Footer = PortletFooter;\nPortlet.Label = PortletLabel;\nPortlet.Title = PortletTitle;\nPortlet.Toolbar = PortletToolbar;\n","'use client';\n\nimport type { ReactNode } from 'react';\nimport { useDebouncedParams } from '../hooks/useDebouncedParams.js';\n\n/**\n * 검색 입력 초안과 외부 검색 조건을 중계하는 디바운서 컴포넌트의 속성입니다.\n */\nexport interface SearchBoxDebouncerProps<T> {\n /** 디바운스 시간(ms). 기본값: 200 */\n delayMs?: number;\n\n /** 외부 검색 조건입니다. */\n params: Partial<T>;\n\n /** 입력이 멈춘 뒤 초안 전체를 전달받는 콜백입니다. */\n onChange: (params: Partial<T>) => void;\n\n /**\n * 초안 상태로 검색 UI를 그립니다.\n *\n * - `params`: 화면에 보여줄 초안 조건\n * - `onChange`: 부분 변경을 초안에 병합하고 발행을 예약\n * - `flush`: 대기 중인 입력을 바로 발행 (예: Enter로 즉시 검색)\n */\n children: (props: {\n params: Partial<T>;\n onChange: (params: Partial<T>) => void;\n flush: () => void;\n }) => ReactNode;\n}\n\n/**\n * 검색 조건 변경을 일정 시간 모아서 외부 변경 콜백으로 전달합니다.\n *\n * 훅 `useDebouncedParams`를 render prop으로 감싼 컴포넌트입니다.\n *\n * @example\n * ```tsx\n * <SearchBoxDebouncer<SearchParams> params={searchParams} onChange={setSearchParams}>\n * {({ params, onChange, flush }) => (\n * <TextField\n * value={params.keyword ?? ''}\n * onChange={(e) => onChange({ keyword: e.target.value })}\n * onKeyDown={(e) => e.key === 'Enter' && flush()}\n * />\n * )}\n * </SearchBoxDebouncer>\n * ```\n */\nexport function SearchBoxDebouncer<T>(props: SearchBoxDebouncerProps<T>) {\n const { delayMs, params, onChange, children } = props;\n const debounced = useDebouncedParams<T>(params, onChange, { delayMs });\n\n return <>{children(debounced)}</>;\n}\n","import Box, { type BoxProps } from '@mui/material/Box';\nimport { styled, type Theme } from '@mui/material/styles';\nimport type { TypographyProps } from '@mui/material/Typography';\nimport type { ComponentType } from 'react';\n\nexport const SegmentedControlRoot: ComponentType<BoxProps> = styled(Box)<BoxProps>(({ theme }) => {\n return {\n position: 'relative',\n display: 'inline-flex',\n flexDirection: 'row',\n width: 'auto',\n borderRadius: theme.shape.borderRadius,\n overflow: 'hidden',\n padding: '0.25rem',\n backgroundColor: '#f1f3f5',\n\n '&[data-vertical=\"true\"]': {\n display: 'flex',\n flexDirection: 'column',\n width: 'max-content',\n },\n\n '&[data-fullwidth=\"true\"]': {\n display: 'flex',\n width: 'auto',\n },\n\n '&[data-size=\"small\"]': {\n padding: '0.15rem',\n },\n '&[data-size=\"large\"]': {\n padding: '0.35rem',\n },\n };\n});\nSegmentedControlRoot.displayName = 'SegmentedControlRoot';\n\nexport const SegmentedControlItem: ComponentType<\n BoxProps & {\n transitionDuration?: number;\n transitionTimingFunction?: string;\n }\n> = styled(Box, {\n shouldForwardProp: (prop) => prop !== 'transitionDuration' && prop !== 'transitionTimingFunction',\n})<\n BoxProps & {\n transitionDuration?: number;\n transitionTimingFunction?: string;\n }\n>(({ theme, transitionDuration = 150, transitionTimingFunction = 'ease' }) => {\n return {\n position: 'relative',\n flex: 1,\n zIndex: 2,\n transition: `border-color ${transitionDuration}ms ${transitionTimingFunction}`,\n\n '.SegmentedControl-root[data-with-item-border=\"true\"] &::before': {\n content: '\"\"',\n position: 'absolute',\n top: 0,\n bottom: 0,\n insetInlineStart: 0,\n backgroundColor: theme.palette.divider,\n width: '1px',\n transition: `background-color ${transitionDuration}ms ${transitionTimingFunction}`,\n },\n\n '.SegmentedControl-root[data-with-item-border=\"true\"] &:first-of-type::before': {\n backgroundColor: 'transparent',\n },\n\n '.SegmentedControl-root[data-vertical=\"true\"] &::before': {\n top: 0,\n insetInline: 0,\n bottom: 'auto',\n height: '1px',\n width: 'auto',\n },\n };\n});\n\nSegmentedControlItem.displayName = 'SegmentedControlItem';\n\nexport const SegmentedControlInput: ComponentType<BoxProps<'input'>> = styled(Box)<\n BoxProps<'input'>\n>(() => ({\n height: 0,\n width: 0,\n position: 'absolute',\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n opacity: 0,\n}));\n\nSegmentedControlInput.displayName = 'SegmentedControlInput';\n\ntype PaletteColorKey = 'primary' | 'secondary' | 'info' | 'warning' | 'error' | 'success';\ntype TextColorKey = 'primary' | 'secondary' | 'disabled';\n\nfunction resolveColor(theme: Theme, color: TypographyProps['color']): string | undefined {\n if (!color) return undefined;\n const paletteColors: PaletteColorKey[] = [\n 'primary',\n 'secondary',\n 'info',\n 'warning',\n 'error',\n 'success',\n ];\n const textColors = ['textPrimary', 'textSecondary', 'textDisabled'];\n\n if (paletteColors.includes(color as PaletteColorKey)) {\n return theme.palette[color as PaletteColorKey].main;\n }\n if (textColors.includes(color as string)) {\n const textKey = (color as string).substring(4).toLowerCase() as TextColorKey;\n return theme.palette.text[textKey];\n }\n return color as string;\n}\n\ntype SegmentedControlLabelProps = BoxProps & {\n primaryColor?: string;\n secondaryColor?: string;\n transitionDuration?: number;\n transitionTimingFunction?: string;\n htmlFor?: string;\n};\n\nexport const SegmentedControlLabel: ComponentType<SegmentedControlLabelProps> = styled(Box, {\n shouldForwardProp: (prop) =>\n prop !== 'transitionDuration' &&\n prop !== 'transitionTimingFunction' &&\n prop !== 'primaryColor' &&\n prop !== 'secondaryColor',\n})<SegmentedControlLabelProps>(\n ({\n theme,\n transitionDuration = 150,\n transitionTimingFunction = 'ease',\n primaryColor,\n secondaryColor,\n }) => {\n const _primaryColor = resolveColor(theme, primaryColor) ?? theme.palette.primary.main;\n const _secondaryColor = resolveColor(theme, secondaryColor) ?? theme.palette.text.secondary;\n\n return {\n fontWeight: 500,\n display: 'block',\n textAlign: 'center',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n userSelect: 'none',\n borderRadius: 1,\n padding: '0.3125rem 0.625rem',\n fontSize: theme.typography.body1.fontSize,\n cursor: 'pointer',\n color: _secondaryColor,\n transition: `color ${transitionDuration}ms ${transitionTimingFunction}`,\n\n '.SegmentedControl-item.Mui-active > &&': {\n color: _primaryColor,\n '&::before': {\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n zIndex: 0,\n },\n },\n\n '.SegmentedControl-item.Mui-readOnly > &&': {\n cursor: 'default',\n },\n\n '.SegmentedControl-item.Mui-disabled > &&': {\n cursor: 'not-allowed',\n color: theme.palette.text.disabled,\n opacity: 0.7,\n },\n\n '.SegmentedControl-root[data-size=\"small\"] &': {\n padding: '0.2rem 0.4rem',\n fontSize: '0.7rem',\n },\n '.SegmentedControl-root[data-size=\"large\"] &': {\n padding: '0.4rem 0.8rem',\n fontSize: theme.typography.subtitle1.fontSize,\n },\n };\n },\n);\n\nSegmentedControlLabel.displayName = 'SegmentedControlLabel';\n","import Box from '@mui/material/Box';\nimport type { SxProps, Theme } from '@mui/material/styles';\nimport type { TypographyProps } from '@mui/material/Typography';\nimport clsx from 'clsx';\nimport type { CSSProperties, ReactNode, Ref } from 'react';\nimport { useState } from 'react';\nimport { useComposedRefs } from '../../hooks/useComposedRefs.js';\nimport { useId } from '../../hooks/useId.js';\nimport { useUncontrolled } from '../../hooks/useUncontrolled.js';\nimport FloatingIndicator from '../FloatingIndicator/index.js';\nimport {\n SegmentedControlInput,\n SegmentedControlItem,\n SegmentedControlLabel,\n SegmentedControlRoot,\n} from './components.js';\n\n/**\n * 불리언 값이 true인 경우 true를 반환하고, 그렇지 않으면 undefined를 반환하는 함수입니다.\n * @param value true, false, 또는 undefined일 수 있는 값\n * @returns true 또는 undefined\n */\nfunction trueOrUndef(value: boolean | null | undefined): true | undefined {\n return value ? true : undefined;\n}\n\nexport interface SegmentedControlItem {\n /** 항목의 값 */\n value: string;\n\n /** 항목의 레이블 (내용) */\n label: ReactNode;\n\n /** 항목이 비활성화되었는지 여부 */\n disabled?: boolean;\n}\n\nexport interface SegmentedControlProps {\n /** 루트 DOM 요소로 전달되는 ref (MUI 미상속 인터페이스라 명시 선언) */\n ref?: Ref<HTMLDivElement>;\n\n sx?: SxProps<Theme>;\n\n className?: string;\n\n style?: CSSProperties;\n\n disabled?: boolean;\n\n /** 렌더링할 데이터를 기반으로 컨트롤 항목이 생성됩니다. */\n data: (string | SegmentedControlItem)[];\n\n /** 컨트롤된 컴포넌트의 값 */\n value?: string;\n\n /** 비제어 컴포넌트의 기본값 */\n defaultValue?: string;\n\n /** 값이 변경될 때 호출되는 함수 */\n onChange?: (value: string) => void;\n\n /** 부모의 100% 너비를 사용할지 여부, 기본값은 false */\n fullWidth?: boolean;\n\n /** 인디케이터의 전환 시간(ms), 기본값은 200 */\n transitionDuration?: number;\n\n /** 인디케이터의 transition-timing-function 속성, 기본값은 'ease' */\n transitionTimingFunction?: string;\n\n /** 컴포넌트가 수직 방향으로 표시될지 여부, 기본값은 'horizontal' */\n vertical?: boolean;\n\n /** 값이 변경될 수 있는지 여부, 읽기 전용 모드일 경우 변경 불가 */\n readOnly?: boolean;\n\n /** 항목의 경계를 표시할지 여부 */\n withItemBorder?: boolean;\n\n /** 항목 레이블의 기본 색상 */\n primaryColor?: TypographyProps['color'];\n\n /** 항목 레이블의 보조 색상 */\n secondaryColor?: TypographyProps['color'];\n\n /** 인디케이터로 표시할 ReactNode */\n indicator?: ReactNode;\n\n /** 컴포넌트 크기, 'small', 'medium', 'large' 중 하나 */\n size?: 'small' | 'medium' | 'large';\n}\n\n/**\n * 세그먼트 컨트롤 컴포넌트는 여러 항목 중 하나를 선택하는 UI 컴포넌트입니다.\n * 각 항목은 라디오 버튼처럼 동작하며, 선택 시 인디케이터가 항목에 맞춰 이동합니다.\n * @param props 세그먼트 컨트롤의 다양한 설정을 정의하는 props\n * @returns 세그먼트 컨트롤 컴포넌트\n */\nexport const SegmentedControl = (props: SegmentedControlProps) => {\n const {\n sx,\n className,\n style,\n disabled,\n data,\n value,\n defaultValue,\n onChange,\n fullWidth,\n withItemBorder,\n primaryColor = 'primary',\n secondaryColor = 'textSecondary',\n transitionDuration,\n transitionTimingFunction,\n vertical,\n readOnly,\n size = 'medium',\n indicator,\n ref,\n } = props;\n\n // data 항목이 문자열이면 객체로 변환하여 처리\n const _data = data.map((item) =>\n typeof item === 'string' ? { label: item, value: item } : item,\n );\n const [parent, setParent] = useState<HTMLElement | null>(null); // 부모 요소 상태\n const [refs, setRefs] = useState<Record<string, HTMLElement | null>>({}); // 항목 참조 상태\n\n // 각 항목에 대한 참조를 설정하는 함수\n const setElementRef = (val: string) => (element: HTMLElement | null) => {\n refs[val] = element;\n setRefs(refs);\n };\n\n // 비제어 컴포넌트 값 상태 관리\n const [_value, handleValueChange] = useUncontrolled({\n value,\n defaultValue,\n finalValue: Array.isArray(data)\n ? (_data.find((item) => !item.disabled)?.value ?? _data[0]?.value ?? undefined)\n : undefined,\n onChange,\n });\n\n const uuid = useId(); // 고유 ID 생성\n const mergedRef = useComposedRefs(ref, setParent); // ref 결합\n\n // 데이터가 비어있으면 렌더링하지 않음\n if (data.length === 0) {\n return null;\n }\n\n return (\n <SegmentedControlRoot\n className={clsx('SegmentedControl-root', className, {\n x_readOnly: readOnly,\n x_fullWidth: fullWidth,\n 'Mui-disabled': disabled,\n 'Mui-readOnly': readOnly,\n })}\n sx={sx}\n style={style}\n ref={mergedRef}\n role='radiogroup'\n data-vertical={trueOrUndef(vertical)} // 수직 여부\n data-fullwidth={trueOrUndef(fullWidth)} // 100% 너비 여부\n data-with-item-border={trueOrUndef(withItemBorder)} // 항목 경계 표시 여부\n data-size={size} // 크기 설정\n >\n {typeof _value === 'string' && (\n <FloatingIndicator\n className='SegmentedControl-indicator'\n component='span'\n target={refs[_value]} // 인디케이터 대상\n parent={parent} // 부모 요소\n transitionDuration={transitionDuration} // 전환 시간\n sx={{\n display: 'block',\n zIndex: 1,\n borderRadius: 1,\n bgcolor: '#fff',\n // boxShadow는 mantine에서 복사\n boxShadow: 'rgba(0, 0, 0, 0.05) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px 0px',\n }}\n >\n {indicator}\n </FloatingIndicator>\n )}\n {_data.map((item) => (\n <SegmentedControlItem\n key={item.value}\n className={clsx('SegmentedControl-item', {\n 'Mui-active': _value === item.value,\n 'Mui-disabled': item.disabled || disabled,\n 'Mui-readOnly': readOnly,\n })}\n transitionDuration={transitionDuration}\n transitionTimingFunction={transitionTimingFunction}\n >\n <SegmentedControlInput\n component='input'\n className='SegmentedControl-input'\n key={`${item.value}-input`}\n type='radio'\n name={uuid}\n value={item.value}\n checked={_value === item.value}\n id={`${uuid}-${item.value}`}\n onChange={() => {\n if (!readOnly && !item.disabled && !disabled) {\n handleValueChange(item.value);\n }\n }}\n />\n <SegmentedControlLabel\n component='label'\n key={`${item.value}-label`}\n className='SegmentedControl-label'\n ref={setElementRef(item.value)}\n htmlFor={`${uuid}-${item.value}`}\n primaryColor={primaryColor}\n secondaryColor={secondaryColor}\n transitionDuration={transitionDuration}\n transitionTimingFunction={transitionTimingFunction}\n >\n <Box\n component='span'\n sx={{\n position: 'relative',\n zIndex: 2,\n }}\n >\n {item.label}\n </Box>\n </SegmentedControlLabel>\n </SegmentedControlItem>\n ))}\n </SegmentedControlRoot>\n );\n};\n","import type { FC, ReactNode } from 'react';\n\nexport interface ShowProps {\n when: boolean | null | undefined;\n children?: ReactNode;\n fallback?: ReactNode;\n}\n\nexport const Show: FC<ShowProps> = ({ when, fallback, children }) => {\n if (when) {\n return children;\n }\n return fallback;\n};\n\nShow.displayName = 'Show';\n","'use client';\n\nimport type { Theme } from '@mui/material/styles';\nimport useMediaQuery from '@mui/material/useMediaQuery';\nimport type { ReactNode } from 'react';\n\nexport interface SmOrDownProps {\n children?: ReactNode | ReactNode[];\n}\n\nexport function SmOrDown(props: SmOrDownProps) {\n const { children } = props;\n const matched = useMediaQuery((theme: Theme) => theme.breakpoints.down('md'));\n if (!matched || !children) return null;\n return <>{children}</>;\n}\n","'use client';\n\nimport type { Theme } from '@mui/material/styles';\nimport useMediaQuery from '@mui/material/useMediaQuery';\nimport type { ReactNode } from 'react';\n\nexport interface SmOrUpProps {\n children?: ReactNode | ReactNode[];\n}\n\nexport function SmOrUp(props: SmOrUpProps) {\n const { children } = props;\n const matched = useMediaQuery((theme: Theme) => theme.breakpoints.up('sm'));\n if (!matched || !children) return null;\n return <>{children}</>;\n}\n","import Box, { type BoxProps } from '@mui/material/Box';\n\nexport interface SpaceProps extends BoxProps {\n width?: number;\n height?: number;\n minWidth?: number;\n minHeight?: number;\n}\n\nexport const Space = ({ width, height, minWidth, minHeight, sx, ref, ...props }: SpaceProps) => {\n return (\n <Box\n ref={ref}\n sx={[\n {\n width,\n height,\n minWidth: minWidth ?? width,\n minHeight: minHeight ?? height,\n },\n ...(Array.isArray(sx) ? sx : [sx]),\n ]}\n {...props}\n />\n );\n};\n\nSpace.displayName = 'Space';\n","'use client';\n\nimport Box, { type BoxProps } from '@mui/material/Box';\nimport Link, { type LinkProps } from '@mui/material/Link';\nimport { type SxProps, styled } from '@mui/material/styles';\nimport clsx from 'clsx';\nimport type { CSSProperties, ReactNode, Ref } from 'react';\nimport { useElementSize } from '../hooks/useElementSize.js';\nimport { useId } from '../hooks/useId.js';\nimport { useUncontrolled } from '../hooks/useUncontrolled.js';\n\nexport interface SpoilerProps {\n sx?: SxProps;\n\n className?: string;\n\n style?: CSSProperties;\n\n id?: string;\n\n /** Maximum height of the visible content, when this point is reached spoiler appears, `100` by default */\n maxHeight?: number;\n\n /** Label for close spoiler action */\n hideLabel: React.ReactNode;\n\n /** Label for open spoiler action */\n showLabel: React.ReactNode;\n\n /** Get ref of spoiler toggle button */\n controlRef?: React.ForwardedRef<HTMLButtonElement>;\n\n /** Initial spoiler state, true to wrap content in spoiler, false to show content without spoiler, opened state is updated on mount */\n initialState?: boolean;\n\n /** Controlled expanded state value */\n expanded?: boolean;\n\n /** Called when expanded state changes (when spoiler visibility is toggled by the user) */\n onExpandedChange?: (expanded: boolean) => void;\n\n /** Spoiler reveal transition duration in ms, set 0 or null to turn off animation, `200` by default */\n transitionDuration?: number;\n\n children?: ReactNode;\n\n ref?: Ref<HTMLElement>;\n}\n\nexport const Spoiler = (props: SpoilerProps) => {\n const {\n sx,\n className,\n style,\n id,\n initialState,\n maxHeight = 100,\n hideLabel,\n showLabel,\n expanded,\n onExpandedChange,\n controlRef,\n children,\n transitionDuration = 100,\n ref,\n ...restProps\n } = props;\n\n const _id = useId(id);\n const regionId = `${_id}-region`;\n const [show, setShowState] = useUncontrolled({\n value: expanded,\n defaultValue: initialState,\n finalValue: false,\n onChange: onExpandedChange,\n });\n const { ref: contentRef, height } = useElementSize<HTMLDivElement>();\n\n const spoilerMoreContent = show ? hideLabel : showLabel;\n const hasSpoiler = spoilerMoreContent !== null && maxHeight < height;\n\n return (\n <RootBox\n className={clsx('Spoiler-root', className)}\n sx={[sx, ...(Array.isArray(sx) ? sx : [sx ?? false])]}\n style={style}\n id={_id}\n ref={ref}\n data-has-spoiler={hasSpoiler}\n {...restProps}\n >\n {hasSpoiler && (\n <StyledMoreButton\n component='button'\n ref={controlRef}\n onClick={() => {\n setShowState(!show);\n }}\n aria-expanded={show}\n aria-controls={regionId}\n >\n {spoilerMoreContent}\n </StyledMoreButton>\n )}\n <StyledContent\n data-reduce-motion\n role='region'\n id={regionId}\n transitionDuration={transitionDuration}\n style={{\n maxHeight: !show ? maxHeight : (height ?? undefined),\n }}\n >\n <div ref={contentRef}>{children}</div>\n </StyledContent>\n </RootBox>\n );\n};\n\nSpoiler.displayName = 'Spoiler';\n\nconst RootBox = styled(Box)<BoxProps>(() => ({\n position: 'relative',\n '&:where([data-has-spoiler=\"true\"])': {\n marginBottom: 24,\n },\n}));\n\nconst StyledMoreButton = styled(Link<'button'>)<LinkProps<'button'>>(() => ({\n position: 'absolute',\n insetInlineStart: 0,\n top: '100%',\n height: 32,\n textDecoration: 'none',\n '&:hover': {\n textDecoration: 'underline',\n },\n}));\n\nconst StyledContent = styled(Box, {\n shouldForwardProp: (prop) => prop !== 'transitionDuration',\n})<\n BoxProps & {\n transitionDuration?: number;\n }\n>(({ transitionDuration = 200 }) => ({\n display: 'flex',\n flexDirection: 'column',\n overflow: 'hidden',\n transition: `max-height ${transitionDuration}ms ease`,\n}));\n","import type { StackProps } from '@mui/material/Stack';\nimport type { FunctionComponent } from 'react';\nimport { createLayoutComponent } from '../layout/create-layout-component.js';\n\nexport interface StackColumnProps extends Omit<StackProps, 'direction'> {\n center?: boolean;\n alignItems?: React.CSSProperties['alignItems'];\n justifyContent?: React.CSSProperties['justifyContent'];\n}\n\n/** 원본 createComponent가 노출하던 서브변형 Props 타입 표면과 동일(StackProps 기반, direction 포함). */\ninterface StackColumnSubVariantProps extends StackProps {\n alignItems?: React.CSSProperties['alignItems'];\n justifyContent?: React.CSSProperties['justifyContent'];\n}\n\nconst StackColumnCenter = createLayoutComponent({\n displayName: 'StackColumn.Center',\n base: 'stack',\n direction: 'column',\n defaultProps: { justifyContent: 'center' },\n}) as FunctionComponent<StackColumnSubVariantProps>;\n\nconst StackColumnStart = createLayoutComponent({\n displayName: 'StackColumn.Start',\n base: 'stack',\n direction: 'column',\n defaultProps: { justifyContent: 'flex-start' },\n}) as FunctionComponent<StackColumnSubVariantProps>;\n\nconst StackColumnEnd = createLayoutComponent({\n displayName: 'StackColumn.End',\n base: 'stack',\n direction: 'column',\n defaultProps: { justifyContent: 'flex-end' },\n}) as FunctionComponent<StackColumnSubVariantProps>;\n\nconst StackColumnBetween = createLayoutComponent({\n displayName: 'StackColumn.Between',\n base: 'stack',\n direction: 'column',\n defaultProps: { justifyContent: 'space-between' },\n}) as FunctionComponent<StackColumnSubVariantProps>;\n\nconst StackColumnAround = createLayoutComponent({\n displayName: 'StackColumn.Around',\n base: 'stack',\n direction: 'column',\n defaultProps: { justifyContent: 'space-around' },\n}) as FunctionComponent<StackColumnSubVariantProps>;\n\nconst StackColumnEvenly = createLayoutComponent({\n displayName: 'StackColumn.Evenly',\n base: 'stack',\n direction: 'column',\n defaultProps: { justifyContent: 'space-evenly' },\n}) as FunctionComponent<StackColumnSubVariantProps>;\n\ninterface StackColumnComponent extends React.FunctionComponent<StackColumnProps> {\n Start: typeof StackColumnStart;\n End: typeof StackColumnEnd;\n Between: typeof StackColumnBetween;\n Around: typeof StackColumnAround;\n Center: typeof StackColumnCenter;\n Evenly: typeof StackColumnEvenly;\n}\n\nconst StackColumnBase = createLayoutComponent({\n displayName: 'StackColumn',\n base: 'stack',\n direction: 'column',\n supportsCenterProp: true,\n}) as StackColumnComponent;\n\nexport const StackColumn = StackColumnBase;\nStackColumn.Start = StackColumnStart;\nStackColumn.End = StackColumnEnd;\nStackColumn.Between = StackColumnBetween;\nStackColumn.Around = StackColumnAround;\nStackColumn.Center = StackColumnCenter;\nStackColumn.Evenly = StackColumnEvenly;\n","import type { StackProps } from '@mui/material/Stack';\nimport type { FunctionComponent } from 'react';\nimport { createLayoutComponent } from '../layout/create-layout-component.js';\n\nexport interface StackRowProps extends Omit<StackProps, 'direction'> {\n center?: boolean;\n alignItems?: React.CSSProperties['alignItems'];\n justifyContent?: React.CSSProperties['justifyContent'];\n}\n\ninterface StackRowSubVariantProps extends StackProps {\n alignItems?: React.CSSProperties['alignItems'];\n justifyContent?: React.CSSProperties['justifyContent'];\n}\n\nconst StackRowCenter = createLayoutComponent({\n displayName: 'StackRow.Center',\n base: 'stack',\n direction: 'row',\n defaultProps: { justifyContent: 'center' },\n}) as FunctionComponent<StackRowSubVariantProps>;\n\nconst StackRowStart = createLayoutComponent({\n displayName: 'StackRow.Start',\n base: 'stack',\n direction: 'row',\n defaultProps: { justifyContent: 'flex-start' },\n}) as FunctionComponent<StackRowSubVariantProps>;\n\nconst StackRowEnd = createLayoutComponent({\n displayName: 'StackRow.End',\n base: 'stack',\n direction: 'row',\n defaultProps: { justifyContent: 'flex-end' },\n}) as FunctionComponent<StackRowSubVariantProps>;\n\nconst StackRowBetween = createLayoutComponent({\n displayName: 'StackRow.Between',\n base: 'stack',\n direction: 'row',\n defaultProps: { justifyContent: 'space-between' },\n}) as FunctionComponent<StackRowSubVariantProps>;\n\nconst StackRowAround = createLayoutComponent({\n displayName: 'StackRow.Around',\n base: 'stack',\n direction: 'row',\n defaultProps: { justifyContent: 'space-around' },\n}) as FunctionComponent<StackRowSubVariantProps>;\n\nconst StackRowEvenly = createLayoutComponent({\n displayName: 'StackRow.Evenly',\n base: 'stack',\n direction: 'row',\n defaultProps: { justifyContent: 'space-evenly' },\n}) as FunctionComponent<StackRowSubVariantProps>;\n\ninterface StackRowComponent extends React.FunctionComponent<StackRowProps> {\n Start: typeof StackRowStart;\n End: typeof StackRowEnd;\n Between: typeof StackRowBetween;\n Around: typeof StackRowAround;\n Center: typeof StackRowCenter;\n Evenly: typeof StackRowEvenly;\n}\n\nconst StackRowBase = createLayoutComponent({\n displayName: 'StackRow',\n base: 'stack',\n direction: 'row',\n supportsCenterProp: true,\n}) as StackRowComponent;\n\nexport const StackRow = StackRowBase;\nStackRow.Start = StackRowStart;\nStackRow.End = StackRowEnd;\nStackRow.Between = StackRowBetween;\nStackRow.Around = StackRowAround;\nStackRow.Center = StackRowCenter;\nStackRow.Evenly = StackRowEvenly;\n","import type { BoxProps } from '@mui/material/Box';\nimport type { CSSProperties, FunctionComponent } from 'react';\nimport { createAbsoluteBox } from '../absolute-box/create-absolute-box.js';\n\n/**\n * `TopAbsoluteCenter` 컴포넌트의 속성을 정의합니다.\n */\nexport interface TopAbsoluteCenterProps extends BoxProps {\n /**\n * 컴포넌트가 부모 컨테이너의 전체 너비를 차지하도록 설정합니다.\n *\n * @default false\n */\n fullWidth?: boolean;\n\n /**\n * 상단 위치를 설정합니다. CSS의 `top` 속성과 동일합니다.\n *\n * @default 0\n */\n top?: CSSProperties['top'];\n}\n\n/**\n * `TopAbsoluteCenter` 컴포넌트는 요소를 상단 중앙에 배치하는 데 사용됩니다.\n *\n * - `position: \"absolute\"`를 기본으로 설정합니다.\n * - `left: \"50%\"`와 `transform: \"translate(-50%, -50%)\"`를 사용하여 수평 중앙에 위치시킵니다.\n * - `fullWidth` 속성을 사용하여 너비를 100%로 설정할 수 있습니다.\n *\n * @param props - `TopAbsoluteCenterProps` 속성\n * @returns 상단 중앙에 배치된 스타일의 박스를 렌더링합니다.\n *\n * @example\n * ```tsx\n * <TopAbsolute.Center top=\"20px\" fullWidth>\n * 상단 중앙에 위치한 요소\n * </TopAbsolute.Center>\n * ```\n */\nexport const TopAbsoluteCenter = createAbsoluteBox({\n displayName: 'TopAbsolute.Center',\n axes: [{ cssProp: 'top' }],\n fixedStyle: { left: '50%', transform: 'translate(-50%, -50%)' },\n supportsFullWidth: true,\n}) as FunctionComponent<TopAbsoluteCenterProps>;\n","import type { BoxProps } from '@mui/material/Box';\nimport type { CSSProperties, FunctionComponent } from 'react';\nimport { createAbsoluteBox } from '../absolute-box/create-absolute-box.js';\n\n/**\n * `TopAbsoluteLeft` 컴포넌트의 속성을 정의합니다.\n */\nexport interface TopAbsoluteLeftProps extends BoxProps {\n /**\n * 컴포넌트가 부모 컨테이너의 전체 너비를 차지하도록 설정합니다.\n *\n * @default false\n */\n fullWidth?: boolean;\n\n /**\n * 상단 위치를 설정합니다. CSS의 `top` 속성과 동일합니다.\n *\n * @default 0\n */\n top?: CSSProperties['top'];\n\n /**\n * 좌측 위치를 설정합니다. CSS의 `left` 속성과 동일합니다.\n *\n * @default 0\n */\n left?: CSSProperties['left'];\n}\n\n/**\n * `TopAbsoluteLeft` 컴포넌트는 요소를 상단 좌측에 배치하는 데 사용됩니다.\n *\n * - `position: \"absolute\"`를 기본으로 설정합니다.\n * - `top`과 `left` 속성을 사용하여 요소의 위치를 조정할 수 있습니다.\n * - `fullWidth` 속성을 사용하여 너비를 100%로 설정할 수 있습니다.\n *\n * @param props - `TopAbsoluteLeftProps` 속성\n * @returns 상단 좌측에 배치된 스타일의 박스를 렌더링합니다.\n *\n * @example\n * ```tsx\n * <TopAbsolute.Left top=\"20px\" left=\"10px\" fullWidth>\n * 상단 좌측에 위치한 요소\n * </TopAbsolute.Left>\n * ```\n */\nexport const TopAbsoluteLeft = createAbsoluteBox({\n displayName: 'TopAbsolute.Left',\n axes: [\n { cssProp: 'left', defaultValue: 0 },\n { cssProp: 'top', defaultValue: 0 },\n ],\n supportsFullWidth: true,\n}) as FunctionComponent<TopAbsoluteLeftProps>;\n","import type { BoxProps } from '@mui/material/Box';\nimport type { CSSProperties, FunctionComponent } from 'react';\nimport { createAbsoluteBox } from '../absolute-box/create-absolute-box.js';\n\n/**\n * `TopAbsoluteRight` 컴포넌트의 속성을 정의합니다.\n */\nexport interface TopAbsoluteRightProps extends BoxProps {\n /**\n * 컴포넌트가 부모 컨테이너의 전체 너비를 차지하도록 설정합니다.\n *\n * @default false\n */\n fullWidth?: boolean;\n\n /**\n * 상단 위치를 설정합니다. CSS의 `top` 속성과 동일합니다.\n *\n * @default 0\n */\n top?: CSSProperties['top'];\n\n /**\n * 우측 위치를 설정합니다. CSS의 `right` 속성과 동일합니다.\n *\n * @default 0\n */\n right?: CSSProperties['right'];\n}\n\n/**\n * `TopAbsoluteRight` 컴포넌트는 요소를 상단 우측에 배치하는 데 사용됩니다.\n *\n * - `position: \"absolute\"`를 기본으로 설정합니다.\n * - `top`과 `right` 속성을 사용하여 요소의 위치를 조정할 수 있습니다.\n * - `fullWidth` 속성을 사용하여 너비를 100%로 설정할 수 있습니다.\n *\n * @param props - `TopAbsoluteRightProps` 속성\n * @returns 상단 우측에 배치된 스타일의 박스를 렌더링합니다.\n *\n * @example\n * ```tsx\n * <TopAbsolute.Right top=\"10px\" right=\"20px\" fullWidth>\n * 상단 우측에 위치한 요소\n * </TopAbsolute.Right>\n * ```\n */\nexport const TopAbsoluteRight = createAbsoluteBox({\n displayName: 'TopAbsolute.Right',\n axes: [\n { cssProp: 'right', defaultValue: 0 },\n { cssProp: 'top', defaultValue: 0 },\n ],\n supportsFullWidth: true,\n}) as FunctionComponent<TopAbsoluteRightProps>;\n","import type { BoxProps } from '@mui/material/Box';\nimport type { CSSProperties } from 'react';\nimport { createAbsoluteBox } from '../absolute-box/create-absolute-box.js';\nimport { TopAbsoluteCenter } from './TopAbsoluteCenter.js';\nimport { TopAbsoluteLeft } from './TopAbsoluteLeft.js';\nimport { TopAbsoluteRight } from './TopAbsoluteRight.js';\n\nexport type { TopAbsoluteCenterProps } from './TopAbsoluteCenter.js';\nexport type { TopAbsoluteLeftProps } from './TopAbsoluteLeft.js';\nexport type { TopAbsoluteRightProps } from './TopAbsoluteRight.js';\n\n/**\n * `TopAbsolute` 컴포넌트의 속성을 정의합니다.\n */\nexport interface TopAbsoluteProps extends BoxProps {\n /**\n * 상단 위치를 설정합니다.\n *\n * @default 0\n */\n top?: CSSProperties['top'];\n\n /**\n * 좌측 위치를 설정합니다.\n *\n * @default 0\n */\n left?: CSSProperties['left'];\n\n /**\n * 우측 위치를 설정합니다.\n *\n * @default 0\n */\n right?: CSSProperties['right'];\n}\n\ninterface TopAbsoluteComponent extends React.FunctionComponent<TopAbsoluteProps> {\n Left: typeof TopAbsoluteLeft;\n Right: typeof TopAbsoluteRight;\n Center: typeof TopAbsoluteCenter;\n}\n\nconst TopAbsoluteBase = createAbsoluteBox({\n displayName: 'TopAbsolute',\n axes: [\n { cssProp: 'top', defaultValue: 0 },\n { cssProp: 'left', defaultValue: 0 },\n { cssProp: 'right', defaultValue: 0 },\n ],\n supportsFullWidth: false,\n}) as TopAbsoluteComponent;\n\nexport const TopAbsolute = TopAbsoluteBase;\nTopAbsolute.Left = TopAbsoluteLeft;\nTopAbsolute.Right = TopAbsoluteRight;\nTopAbsolute.Center = TopAbsoluteCenter;\n","'use client';\n\nimport type { Theme } from '@mui/material/styles';\nimport useMediaQuery from '@mui/material/useMediaQuery';\nimport type { ReactNode } from 'react';\n\nexport interface XsOrDownProps {\n children?: ReactNode | ReactNode[];\n}\n\nexport function XsOrDown(props: XsOrDownProps) {\n const { children } = props;\n const matched = useMediaQuery((theme: Theme) => theme.breakpoints.down('sm'));\n if (!matched || !children) return null;\n return <>{children}</>;\n}\n","const MAX_DATE_DIGITS = 8;\nconst MAX_MONTH_DIGITS = 6;\n\n/**\n * 날짜 포맷 옵션.\n *\n * @example\n * ```ts\n * formatYmd('19900101', { format: 'YYYY/MM/DD' }); // '1990/01/01'\n * ```\n */\nexport interface NumericDateFormatOptions {\n /**\n * 출력 포맷. 예: `YYYY-MM-DD`, `YY.MM.DD`, `YYYYMMDD`.\n * `YYYY`, `YY`, `MM`, `DD` 토큰을 실제 날짜 값으로 치환한다.\n * 지정하지 않으면 입력 연도 길이에 따라 `YY-MM-DD` 또는 `YYYY-MM-DD`로 표시한다.\n */\n format?: string;\n}\n\n/**\n * 날짜 입력값에서 숫자만 남기고 최대 8자리로 자른다.\n *\n * @example\n * ```ts\n * normalizeNumericDate('19-90 0101abc22'); // '19900101'\n * normalizeNumericDate('990101'); // '990101'\n * ```\n */\nexport function normalizeNumericDate(value?: string | null): string {\n return String(value ?? '')\n .replace(/\\D/g, '')\n .slice(0, MAX_DATE_DIGITS);\n}\n\n/**\n * 2자리 연도(YY)를 4자리 연도(YYYY)로 확장한다.\n * 현재 연도보다 20년 넘게 미래가 되면 이전 세기로 추론한다.\n * (예: 현재 2026년일 때 '80'은 2080년이 아니라 1980년)\n */\nfunction expandYearToFourDigits(yyStr: string): string {\n if (yyStr.length !== 2) return yyStr;\n\n const yy = Number.parseInt(yyStr, 10);\n const currentYear = new Date().getFullYear();\n const currentCentury = Math.floor(currentYear / 100) * 100;\n\n let resultYear = currentCentury + yy;\n if (resultYear > currentYear + 20) {\n resultYear -= 100;\n }\n\n return resultYear.toString();\n}\n\n/**\n * YYYYMMDD(8자리) 또는 YYMMDD(6자리) 숫자 날짜를 표시용 문자열로 변환한다.\n *\n * - `number`는 YYYYMMDD/YYMMDD 숫자로 해석한다. epoch 값이 아니다.\n * - `number`는 앞자리 0이 사라지므로 `00`으로 시작하는 YYMMDD는 문자열로 넘긴다.\n * - 숫자 외 문자는 제거하고, 8자리를 넘는 입력은 잘라낸다.\n * - 값이 없으면 빈 문자열을 반환한다.\n * - 존재하는 날짜인지는 검사하지 않는다.\n *\n * @example\n * ```ts\n * formatYmd('990101'); // '99-01-01'\n * formatYmd(19900101); // '1990-01-01'\n * formatYmd('19900101', { format: 'YYYY.MM.DD' }); // '1990.01.01'\n * formatYmd('990101', { format: 'YYYY/MM/DD' }); // '1999/01/01'\n * ```\n */\nexport function formatYmd(\n value?: number | string | null,\n options?: NumericDateFormatOptions,\n): string {\n const digits = normalizeNumericDate(value == null ? null : String(value));\n\n if (!digits) {\n return '';\n }\n\n const isSixDigits = digits.length <= 6;\n const rawYear = isSixDigits ? digits.slice(0, 2) : digits.slice(0, 4);\n const rawMonth = isSixDigits ? digits.slice(2, 4) : digits.slice(4, 6);\n const rawDay = isSixDigits ? digits.slice(4, 6) : digits.slice(6, 8);\n\n if (!options?.format) {\n return [rawYear, rawMonth, rawDay].filter(Boolean).join('-');\n }\n\n let year = rawYear;\n const resultFormat = options.format;\n\n // 포맷이 요구하는 연도 자릿수에 맞춰 입력 연도를 확장하거나 줄인다.\n if (resultFormat.includes('YYYY') && year.length === 2) {\n year = expandYearToFourDigits(year);\n } else if (resultFormat.includes('YY') && !resultFormat.includes('YYYY') && year.length === 4) {\n year = year.slice(2, 4);\n }\n\n return resultFormat\n .replace('YYYY', year)\n .replace('YY', year.length === 4 ? year.slice(2, 4) : year)\n .replace('MM', rawMonth)\n .replace('DD', rawDay);\n}\n\n/**\n * 연월 입력값에서 숫자만 남기고 최대 6자리로 자른다.\n */\nfunction normalizeNumericMonth(value?: string | null): string {\n return String(value ?? '')\n .replace(/\\D/g, '')\n .slice(0, MAX_MONTH_DIGITS);\n}\n\n/**\n * YYYYMM(6자리) 숫자 연월을 표시용 문자열로 변환한다.\n *\n * - 기본 출력은 `YYYY-MM`이다.\n * - `format`을 지정하면 `YYYY`, `MM` 토큰을 치환한다.\n * - `number`는 YYYYMM 숫자로 해석한다.\n * - 숫자 외 문자는 제거하고, 6자리를 넘는 입력은 잘라낸다.\n * - 값이 없으면 빈 문자열을 반환한다.\n * - 존재하는 연월인지는 검사하지 않는다.\n *\n * @example\n * ```ts\n * formatYm('202601'); // '2026-01'\n * formatYm(202601); // '2026-01'\n * formatYm('202601', { format: 'YYYY/MM' }); // '2026/01'\n * formatYm('2026'); // '2026'\n * ```\n */\nexport function formatYm(\n value?: number | string | null,\n options?: Pick<NumericDateFormatOptions, 'format'>,\n): string {\n const digits = normalizeNumericMonth(value == null ? null : String(value));\n\n if (!digits) {\n return '';\n }\n\n const rawYear = digits.slice(0, 4);\n const rawMonth = digits.slice(4, 6);\n\n if (!options?.format) {\n return [rawYear, rawMonth].filter(Boolean).join('-');\n }\n\n return options.format.replace('YYYY', rawYear).replace('MM', rawMonth);\n}\n\n/**\n * 포맷 문자열이 요구하는 날짜 자릿수를 계산한다.\n *\n * @returns `YYYY`가 있으면 8, `YY`만 있으면 6, 판별할 수 없으면 `null`\n */\nfunction getRequiredDateDigits(format?: string): 6 | 8 | null {\n if (!format) return null;\n if (format.includes('YYYY')) return 8;\n if (format.includes('YY')) return 6;\n return null;\n}\n\n/**\n * 숫자 날짜 입력이 완성 길이(6/8자리)에 도달했을 때만 포맷한다.\n * 입력 중인 값은 숫자 원문 그대로 돌려줘 타이핑을 방해하지 않는다.\n *\n * - `format`이 있으면 `format`이 요구하는 자릿수와 입력 길이가 같을 때만 포맷한다.\n * - `format`이 없거나 자릿수를 판별할 수 없으면 6자리/8자리에서만 기본 포맷을 적용한다.\n * - 값이 없으면 빈 문자열을 반환한다.\n *\n * @example\n * ```ts\n * formatNumericDateWhenComplete('19900101', { format: 'YYYY-MM-DD' }); // '1990-01-01'\n * formatNumericDateWhenComplete('199001', { format: 'YYYY-MM-DD' }); // '199001'\n * formatNumericDateWhenComplete('990101', { format: 'YY/MM/DD' }); // '99/01/01'\n * ```\n */\nexport function formatNumericDateWhenComplete(\n value?: string | null,\n options?: NumericDateFormatOptions,\n): string {\n const digits = normalizeNumericDate(value);\n if (!digits) return '';\n\n const requiredDigits = getRequiredDateDigits(options?.format);\n\n if (requiredDigits) {\n if (digits.length !== requiredDigits) return digits;\n return formatYmd(digits, options);\n }\n\n if (digits.length === 6 || digits.length === 8) {\n return formatYmd(digits, options);\n }\n\n return digits;\n}\n","'use client';\n\nimport type { TextFieldProps } from '@mui/material/TextField';\nimport TextField from '@mui/material/TextField';\nimport type { ChangeEvent } from 'react';\nimport { formatNumericDateWhenComplete, normalizeNumericDate } from '../util/ymd-date.js';\n\n/**\n * 숫자 기반 생년월일 입력을 다루는 텍스트 필드 속성입니다.\n *\n * 핵심 계약:\n * - `value`는 \"숫자만\" 보관한다. (예: `19900101`)\n * - `onChange`는 항상 정규화된 숫자 문자열을 전달한다.\n * - `format`은 필수이며, 표시 포맷 기준(6자리/8자리)을 결정한다.\n */\nexport interface YmdTextFieldProps extends Omit<TextFieldProps, 'value' | 'onChange'> {\n /**\n * 제어값(숫자만).\n *\n * @example\n * - `990101`\n * - `19900101`\n */\n value: string;\n\n /**\n * 값 변경 핸들러.\n * 사용자 입력 문자열은 내부에서 숫자만 남긴 뒤 이 콜백으로 전달된다.\n */\n onChange: (value: string) => void;\n\n /**\n * 화면 표시용 포맷 문자열.\n *\n * - `YYYY`가 포함되면 8자리 입력이 완성됐을 때 포맷이 적용된다.\n * - `YY`(without `YYYY`)가 포함되면 6자리 입력이 완성됐을 때 포맷이 적용된다.\n *\n * @example\n * - `YYYY-MM-DD`\n * - `YY/MM/DD`\n */\n format: string;\n}\n\n/**\n * YYMMDD / YYYYMMDD 날짜 입력 전용 `TextField`.\n *\n * 동작 규칙:\n * - 표시값은 `formatNumericDateWhenComplete`를 사용해 \"완성 길이(6/8)\"에서만 포맷 적용\n * - 입력값은 `normalizeNumericDate`로 숫자 외 문자를 제거한 뒤 부모 상태로 전달\n * - `placeholder` 미지정 시 `format` 문자열을 그대로 표시\n * - 모바일 숫자 키패드를 위해 `input`에 `inputMode='numeric'`을 적용 (`slotProps.htmlInput`으로 덮어쓸 수 있음)\n */\nexport function YmdTextField(props: YmdTextFieldProps) {\n const { value, onChange, format, placeholder, slotProps, ...textFieldProps } = props;\n\n // 사용자가 입력한 값을 숫자 문자열로 정규화해 부모 상태에 전달합니다.\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n const next = event.target.value ?? '';\n\n onChange(normalizeNumericDate(next));\n };\n\n // inputMode는 TextField 루트 div가 아니라 실제 input에 적용해야 숫자 키패드가 뜬다.\n const userHtmlInput = slotProps?.htmlInput;\n const htmlInput =\n typeof userHtmlInput === 'function'\n ? (ownerState: Parameters<typeof userHtmlInput>[0]) => ({\n inputMode: 'numeric' as const,\n ...userHtmlInput(ownerState),\n })\n : { inputMode: 'numeric' as const, ...userHtmlInput };\n\n return (\n <TextField\n // 길이가 format 요구 길이와 일치할 때만 자동 포맷한다.\n value={formatNumericDateWhenComplete(value ?? '', { format })}\n onChange={handleChange}\n placeholder={placeholder ?? format}\n {...textFieldProps}\n slotProps={{ ...slotProps, htmlInput }}\n />\n );\n}\n","'use client';\n\nimport type { TypographyProps } from '@mui/material/Typography';\nimport Typography from '@mui/material/Typography';\nimport clsx from 'clsx';\nimport { formatYmd } from '../util/ymd-date.js';\n\n/**\n * 숫자 날짜 문자열을 포매팅해 출력하는 타이포그래피 컴포넌트 속성입니다.\n */\nexport interface YmdTypographyProps extends Omit<TypographyProps, 'children'> {\n /** YYYYMMDD 또는 YYMMDD 형식의 날짜 문자열 또는 숫자입니다. */\n value: number | string | null | undefined;\n\n /** 출력 포맷입니다. 예: `YYYY-MM-DD`, `YY/MM/DD` */\n format?: string;\n\n /** 값이 없거나 포매팅에 실패했을 때 대신 표시할 문자열입니다. */\n fallback?: string;\n\n /**\n * 가공하지 않고 표시, 기본값: false\n */\n raw?: boolean;\n}\n\n/**\n * YMD 날짜 문자열을 지정한 형식으로 변환해 표시합니다.\n */\nexport function YmdTypography(props: YmdTypographyProps) {\n const { className, value, format, fallback = '-', raw = false, ...typographyProps } = props;\n const formatted = raw ? value : formatYmd(value, format ? { format } : undefined);\n const display = formatted || fallback;\n\n return (\n <Typography className={clsx('YmdTypography-root', className)} {...typographyProps}>\n {display}\n </Typography>\n );\n}\n","'use client';\n\nimport type { TypographyProps } from '@mui/material/Typography';\nimport Typography from '@mui/material/Typography';\nimport clsx from 'clsx';\nimport { formatYm } from '../util/ymd-date.js';\n\n/**\n * 숫자 연월 문자열을 포매팅해 출력하는 타이포그래피 컴포넌트 속성입니다.\n */\nexport interface YmTypographyProps extends Omit<TypographyProps, 'children'> {\n /** YYYYMM 형식의 연월 문자열 또는 숫자입니다. */\n value: number | string | null | undefined;\n\n /** 출력 포맷입니다. 예: `YYYY-MM`, `YYYY/MM` */\n format?: string;\n\n /** 값이 없거나 포매팅에 실패했을 때 대신 표시할 문자열입니다. */\n fallback?: string;\n\n /**\n * 가공하지 않고 표시, 기본값: false\n */\n raw?: boolean;\n}\n\n/**\n * YM 연월 문자열을 지정한 형식으로 변환해 표시합니다.\n */\nexport function YmTypography(props: YmTypographyProps) {\n const { className, value, format, fallback = '-', raw = false, ...typographyProps } = props;\n const formatted = raw ? value : formatYm(value, format ? { format } : undefined);\n const display = formatted || fallback;\n\n return (\n <Typography className={clsx('YmTypography-root', className)} {...typographyProps}>\n {display}\n </Typography>\n );\n}\n","export const isTabKeyEvent = (e: React.KeyboardEvent): boolean => {\n return !e.shiftKey && e.key === 'Tab';\n};\n\nexport const isEnterOrTabKeyEvent = (e: React.KeyboardEvent): boolean => {\n return e.key === 'Enter' || (!e.shiftKey && e.key === 'Tab');\n};\n\nexport const isEnterKeyEvent = (e: React.KeyboardEvent): boolean => {\n return e.key === 'Enter';\n};\n\nexport const isEscapeKeyEvent = (e: React.KeyboardEvent): boolean => {\n return e.key === 'Escape';\n};\n\nexport const isTouchEvent = (event: MouseEvent | TouchEvent): event is TouchEvent => {\n return Boolean((event as TouchEvent).touches?.length);\n};\n\nexport const isMouseEvent = (event: MouseEvent | TouchEvent): event is MouseEvent => {\n return Boolean(\n ((event as MouseEvent).clientX || (event as MouseEvent).clientX === 0) &&\n ((event as MouseEvent).clientY || (event as MouseEvent).clientY === 0),\n );\n};\n\nexport const blurEventTarget = (event: { target: EventTarget | null }, delay = -1) => {\n const target = event.target as HTMLElement | null;\n if (!target) return;\n if (typeof target.blur !== 'function') return;\n if (delay >= 0) {\n setTimeout(() => {\n target.blur();\n }, delay);\n } else {\n target.blur();\n }\n};\n","import type { SxProps, Theme } from '@mui/material/styles';\n\n/**\n * SxProps를 flatten 한 배열로 만든다.\n * @param sxArray - SxProps의 배열\n * @returns SxProps\n */\nexport function flatSx<T extends Theme = Theme>(\n ...sxArray: (SxProps<T> | undefined | false | null)[]\n): SxProps<T> {\n const result: SxProps<T>[] = [];\n sxArray.forEach((item) => {\n if (item) {\n if (Array.isArray(item)) {\n item.forEach((it) => {\n if (it) {\n result.push(it);\n }\n });\n } else {\n result.push(item);\n }\n }\n });\n return result as SxProps<T>;\n}\n\nexport function firstSx<T extends Theme = Theme>(...sxArray: (SxProps<T> | undefined)[]) {\n const arr = flatSx(...sxArray) as SxProps<T>[];\n return arr.length > 0 ? (arr[0] as SxProps<T>) : undefined;\n}\n\n/**\n * 다이얼로그 높이 SxProps\n * @param key - key of height\n * @param heightInPercent - height in percent [0~100]\n * @returns Mui Dialog의 높이 설정 SxProps\n */\nexport const sxDialogHeight = (\n key: 'height' | 'minHeight' | 'maxHeight' = 'height',\n heightInPercent = 100,\n) => {\n return {\n '& .MuiDialog-scrollPaper > .MuiDialog-paper': {\n [key]: `calc(${heightInPercent}% - 64px)`,\n },\n };\n};\n"],"mappings":"qkCAuCA,SAAgBsD,EACd,EAC2C,CAC3C,IAAMC,GAAc,GAAqC,CACvD,GAAM,CAAE,KAAI,MAAK,GAAGC,GAAaC,EAE7BC,EACAC,EAAO,oBACT,EAAYH,EAAS,UACrB,OAAOA,EAAS,WAGlB,IAAMI,EAAqC,CAAC,EAC5C,IAAK,IAAMC,KAAQF,EAAO,KACxB,EAAUE,EAAK,SAAWL,EAASK,EAAK,UAAYA,EAAK,aACzD,OAAOL,EAASK,EAAK,SAGvB,MACE,kBAACxB,EAAD,CACO,MACL,GAAI,CACF,CACE,SAAU,WACV,GAAGuB,EACH,GAAGD,EAAO,WACV,GAAID,EAAY,CAAE,MAAO,MAAO,EAAI,CAAC,CACvC,EACA,GAAI,MAAM,QAAQI,CAAE,EAAIA,EAAK,CAACA,CAAE,CAClC,EACA,GAAIN,CACL,CAAA,CAEL,GAGA,MADA,GAAU,YAAcG,EAAO,YACxBJ,CACT,CCnEA,MAAaQ,GAAuBT,EAAkB,CACpD,YAAa,wBACb,KAAM,CAAC,CAAE,QAAS,SAAU,aAAc,CAAE,CAAC,EAC7C,WAAY,CAAE,KAAM,MAAO,UAAW,uBAAwB,EAC9D,kBAAmB,EACrB,CAAC,EC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