{"version":3,"file":"RelativeTime.cjs","names":["computeRelativeTime","useEnableI18n","useLocale"],"sources":["../../../src/components/variables/RelativeTime.tsx"],"sourcesContent":["import { useEnableI18n, useLocale } from '../../hooks/condition-store';\nimport {\n  computeRelativeTime,\n  type RelativeTimeProps,\n} from './RelativeTime.shared';\n\n// ===== Component ===== //\n\nfunction GtInternalRelativeTime({\n  _enableI18n,\n  _locale,\n  ...props\n}: RelativeTimeProps): string | null {\n  return computeRelativeTime({\n    ...props,\n    _enableI18n: _enableI18n ?? useEnableI18n(),\n    _locale: _locale ?? useLocale(),\n  });\n}\n\nfunction RelativeTime(props: RelativeTimeProps): React.JSX.Element {\n  return <GtInternalRelativeTime {...props} />;\n}\n\n/** @internal _gtt - The GT transformation for the component. */\nGtInternalRelativeTime._gtt = 'variable-relativetime-automatic';\nRelativeTime._gtt = 'variable-relativetime';\n\n// ===== Exports ===== //\n\nexport { GtInternalRelativeTime, RelativeTime };\n"],"mappings":"6KAQA,SAAS,EAAuB,CAC9B,cACA,UACA,GAAG,GACgC,CACnC,OAAOA,EAAAA,oBAAoB,CACzB,GAAG,EACH,YAAa,GAAeC,EAAAA,eAAe,CAC3C,QAAS,GAAWC,EAAAA,WAAW,CAChC,CAAC,CAGJ,SAAS,EAAa,EAA6C,CACjE,OAAO,EAAA,EAAA,KAAC,EAAD,CAAwB,GAAI,EAAS,CAAA,CAI9C,EAAuB,KAAO,kCAC9B,EAAa,KAAO"}