{"version":3,"file":"DateTime.cjs","names":["computeDateTime","useEnableI18n","useLocale"],"sources":["../../../src/components/variables/DateTime.tsx"],"sourcesContent":["import { useEnableI18n, useLocale } from '../../hooks/condition-store';\nimport { computeDateTime, type DateTimeProps } from './DateTime.shared';\n\n// ===== Component ===== //\n\nfunction GtInternalDateTime({\n  _enableI18n,\n  _locale,\n  ...props\n}: DateTimeProps): string | null {\n  return computeDateTime({\n    ...props,\n    _enableI18n: _enableI18n ?? useEnableI18n(),\n    _locale: _locale ?? useLocale(),\n  });\n}\n\nfunction DateTime(props: DateTimeProps): React.JSX.Element {\n  return <GtInternalDateTime {...props} />;\n}\n\n/** @internal _gtt - The GT transformation for the component. */\nGtInternalDateTime._gtt = 'variable-datetime-automatic';\nDateTime._gtt = 'variable-datetime';\n\n// ===== Exports ===== //\n\nexport { GtInternalDateTime, DateTime };\n"],"mappings":"yKAKA,SAAS,EAAmB,CAC1B,cACA,UACA,GAAG,GAC4B,CAC/B,OAAOA,EAAAA,gBAAgB,CACrB,GAAG,EACH,YAAa,GAAeC,EAAAA,eAAe,CAC3C,QAAS,GAAWC,EAAAA,WAAW,CAChC,CAAC,CAGJ,SAAS,EAAS,EAAyC,CACzD,OAAO,EAAA,EAAA,KAAC,EAAD,CAAoB,GAAI,EAAS,CAAA,CAI1C,EAAmB,KAAO,8BAC1B,EAAS,KAAO"}