{"version":3,"file":"getRegion.mjs","names":[],"sources":["../../src/request/getRegion.ts"],"sourcesContent":["import { use } from '../utils/use';\nimport { getAsyncConditionStore } from '../condition-store/AsyncConditionStore';\n\n/**\n * Gets the user's current region code.\n *\n * @returns {Promise<string | undefined>} The user's region code (e.g., 'US', 'CA'), or `undefined` if not set.\n *\n * @example\n * const region = await getRegion();\n * console.log(region); // 'US' or undefined\n */\nexport function getRegion(): Promise<string | undefined> {\n  return getAsyncConditionStore().getRegion();\n}\n\nexport function useRegion() {\n  return use(getRegion());\n}\n"],"mappings":";;;;;;;;;;;;AAYA,SAAgB,YAAyC;AACvD,QAAO,wBAAwB,CAAC,WAAW;;AAG7C,SAAgB,YAAY;AAC1B,QAAO,IAAI,WAAW,CAAC"}