{"version":3,"file":"jsx-runtime-strict.cjs","names":["htmlStrict"],"sources":["../src/jsx-runtime-strict.ts"],"sourcesContent":["import type { HTMLString } from './html-strict'\nimport { htmlStrict } from './html-strict'\n\n// Strict JSX runtime, use with `\"jsxImportSource\": \"zeed-dom/strict\"`.\n// Like `zeed-dom/jsx-runtime`, but text is always escaped, see `htmlStrict()`.\n\n/** Fragment for the automatic runtime, `<>...</>` renders only its children */\nexport const Fragment = ''\n\nexport function jsx(tag: any, props?: Record<string, unknown> | null, _key?: unknown): HTMLString {\n  if (typeof tag === 'function')\n    return tag(props ?? {})\n  const { children, ...attrs } = props ?? {}\n  if (children === undefined)\n    return htmlStrict(tag, attrs)\n  return htmlStrict(tag, attrs, ...(Array.isArray(children)\n    ? children\n    : [children]))\n}\n\nexport {\n  htmlStrict as h,\n  jsx as jsxDEV,\n  jsx as jsxs,\n}\n\n// eslint-disable-next-line ts/no-namespace\nexport namespace JSX {\n  export type Element = HTMLString\n  export interface IntrinsicElements {\n    [elemName: string]: any\n  }\n}\n"],"mappings":";;;;AAOA,MAAa,WAAW;AAExB,SAAgB,IAAI,KAAU,OAAwC,MAA4B;CAChG,IAAI,OAAO,QAAQ,YACjB,OAAO,IAAI,SAAS,CAAC,CAAC;CACxB,MAAM,EAAE,UAAU,GAAG,UAAU,SAAS,CAAC;CACzC,IAAI,aAAa,KAAA,GACf,OAAOA,oBAAAA,WAAW,KAAK,KAAK;CAC9B,OAAOA,oBAAAA,WAAW,KAAK,OAAO,GAAI,MAAM,QAAQ,QAAQ,IACpD,WACA,CAAC,QAAQ,CAAE;AACjB"}