{"version":3,"file":"T.mjs","names":["RscT"],"sources":["../../../src/server-dir/buildtime/T.tsx"],"sourcesContent":["import { getRequestConditions } from '../../request/getRequestConditions';\nimport { T as RscT } from 'gt-react';\nimport { renderPreparedT } from './renderPipeline';\nimport type { ReactNode } from 'react';\n\ntype TProps = {\n  children: ReactNode;\n  id?: string;\n  context?: string;\n  _hash?: string;\n  $id?: string;\n  $context?: string;\n  $maxChars?: number;\n  requiresReview?: boolean;\n  $requiresReview?: boolean;\n  [key: string]: ReactNode;\n};\n\n/**\n * Build-time translation component that renders its children in the user's given locale.\n */\nexport async function T(props: TProps): Promise<ReactNode> {\n  return renderT(props);\n}\n\nexport async function GtInternalTranslateJsx(\n  props: TProps\n): Promise<ReactNode> {\n  return renderT(props);\n}\n\nasync function renderT(props: TProps): Promise<ReactNode> {\n  const conditions = await getRequestConditions();\n  return RscT({\n    ...props,\n    ...conditions,\n    _renderPreparedT: renderPreparedT,\n  });\n}\n\n/** @internal _gtt - The GT transformation for the component. */\nT._gtt = 'translate-server';\nGtInternalTranslateJsx._gtt = 'translate-server-automatic';\n"],"mappings":";;;;;;;AAqBA,eAAsB,EAAE,OAAmC;AACzD,QAAO,QAAQ,MAAM;;AAGvB,eAAsB,uBACpB,OACoB;AACpB,QAAO,QAAQ,MAAM;;AAGvB,eAAe,QAAQ,OAAmC;CACxD,MAAM,aAAa,MAAM,sBAAsB;AAC/C,QAAOA,IAAK;EACV,GAAG;EACH,GAAG;EACH,kBAAkB;EACnB,CAAC;;;AAIJ,EAAE,OAAO;AACT,uBAAuB,OAAO"}