{"version":3,"file":"Currency.cjs","names":["computeCurrency","useEnableI18n","useLocale"],"sources":["../../../src/components/variables/Currency.tsx"],"sourcesContent":["import { useEnableI18n, useLocale } from '../../hooks/condition-store';\nimport { computeCurrency, type CurrencyProps } from './Currency.shared';\n\n// ===== Component ===== //\n\nfunction GtInternalCurrency({\n  _enableI18n,\n  _locale,\n  ...props\n}: CurrencyProps): string | null {\n  return computeCurrency({\n    ...props,\n    _enableI18n: _enableI18n ?? useEnableI18n(),\n    _locale: _locale ?? useLocale(),\n  });\n}\n\nfunction Currency(props: CurrencyProps): React.JSX.Element {\n  return <GtInternalCurrency {...props} />;\n}\n\n/** @internal _gtt - The GT transformation for the component. */\nGtInternalCurrency._gtt = 'variable-currency-automatic';\nCurrency._gtt = 'variable-currency';\n\n// ===== Exports ===== //\n\nexport { GtInternalCurrency, Currency };\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"}