{"version":3,"file":"LoadingContext.mjs","sources":["../../../src/lib/contexts/LoadingContext.ts"],"sourcesContent":["/**\n * @file Loading Context\n * @description Context for loading state management (Fast Refresh compliant).\n */\n\nimport { createContext } from 'react';\n\n/**\n * Loading state\n */\nexport type LoadingState = 'idle' | 'loading' | 'success' | 'error' | 'timeout';\n\n/**\n * Loading phase for progressive display\n */\nexport type LoadingPhase = 'initial' | 'spinner' | 'skeleton' | 'message' | 'timeout';\n\n/**\n * Loading context value\n */\nexport interface LoadingContextValue {\n  state: LoadingState;\n  phase: LoadingPhase;\n  message: string | null;\n  progress: number | null;\n  error: Error | null;\n  startLoading: (message?: string) => void;\n  stopLoading: () => void;\n  setProgress: (progress: number) => void;\n  setError: (error: Error) => void;\n  reset: () => void;\n}\n\n/**\n * Loading context - extracted for Fast Refresh compliance\n */\nexport const LoadingContext = createContext<LoadingContextValue | null>(null);\n"],"names":["LoadingContext","createContext"],"mappings":";AAoCO,MAAMA,IAAiBC,EAA0C,IAAI;"}