{"version":3,"file":"isServer.mjs","names":[],"sources":["../../../src/utils/isServer/isServer.ts"],"sourcesContent":["/**\n * @description\n * `isServer` is a utility function that checks if the code is running on the server.\n * It returns `true` in SSR (Server-Side Rendering) environments where `window` is undefined,\n * and `false` in client-side environments.\n *\n * @returns {boolean} `true` if running in a server environment (SSR), `false` otherwise.\n *\n * @example\n * if (isServer()) {\n *   // SSR-safe code\n *   return null;\n * }\n *\n * // Client-only code\n * window.addEventListener('resize', handleResize);\n */\nexport function isServer(): boolean {\n  return typeof window === 'undefined';\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAiBA,SAAgB,WAAoB;CAClC,OAAO,OAAO,WAAW;AAC3B"}