{"version":3,"names":["dynamic","omit","useDialogRootContext","mergeRootProps","resolveClassStyle","DRAWER_CONTENT_ATTRIBUTE","DrawerContent","props","internal","userClassStyle","userProps","merged","Tag","as"],"sources":["drawer-content.tsx"],"sourcesContent":["import type { JSX, ValidComponent } from \"@solidjs/web\";\n/**\n * `<Drawer.Content>` — marker container for the drawer's interactive body.\n */\n\nimport { dynamic } from \"@solidjs/web\";\nimport { omit } from \"solid-js\";\nimport { useDialogRootContext } from \"../../dialog/dialog-root-context\";\nimport { mergeRootProps } from \"../../internals/merge-root-props\";\nimport { resolveClassStyle } from \"../../internals/resolve-class-style\";\nimport type { BaseUIComponentProps } from \"../../internals/types\";\nimport { DRAWER_CONTENT_ATTRIBUTE } from \"./drawer-content-data-attributes\";\n\n// biome-ignore lint/complexity/noBannedTypes: state is empty — matches React.\nexport type DrawerContentState = {};\n\nexport interface DrawerContentProps\n\textends BaseUIComponentProps<\"div\", DrawerContentState> {\n\t/**\n\t * Tag/component to render. Defaults to `\"div\"`. Replaces the\n\t * pre-spike `render` prop (axis G).\n\t */\n\tas?: ValidComponent;\n}\n\n/**\n * A container for the drawer contents. Renders a `<div>` element.\n */\nexport function DrawerContent(props: DrawerContentProps): JSX.Element {\n\tuseDialogRootContext();\n\n\tconst internal: Record<string, unknown> = {\n\t\t[DRAWER_CONTENT_ATTRIBUTE]: \"\",\n\t};\n\n\tconst userClassStyle = resolveClassStyle(props, () => ({}));\n\n\tconst userProps = omit(props, \"as\", \"class\", \"style\", \"attrs\");\n\n\tlet merged: Record<string, unknown> = mergeRootProps(\n\t\tinternal,\n\t\tuserClassStyle,\n\t);\n\tmerged = mergeRootProps(merged, userProps);\n\n\tconst Tag = dynamic(() => props.as ?? \"div\");\n\treturn <Tag {...merged} />;\n}\n"],"mappings":"AACA;AACA;AACA;;AAEA,SAASA,OAAO,QAAQ,cAAc;AACtC,SAASC,IAAI,QAAQ,UAAU;AAC/B,SAASC,oBAAoB,QAAQ,kCAAkC;AACvE,SAASC,cAAc,QAAQ,kCAAkC;AACjE,SAASC,iBAAiB,QAAQ,qCAAqC;AAEvE,SAASC,wBAAwB,QAAQ,kCAAkC;;AAE3E;;AAYA;AACA;AACA;AACA,OAAO,SAASC,aAAaA,CAACC,KAAyB,EAAe;EACrEL,oBAAoB,CAAC,CAAC;EAEtB,MAAMM,QAAiC,GAAG;IACzC,CAACH,wBAAwB,GAAG;EAC7B,CAAC;EAED,MAAMI,cAAc,GAAGL,iBAAiB,CAACG,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;EAE3D,MAAMG,SAAS,GAAGT,IAAI,CAACM,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC;EAE9D,IAAII,MAA+B,GAAGR,cAAc,CACnDK,QAAQ,EACRC,cACD,CAAC;EACDE,MAAM,GAAGR,cAAc,CAACQ,MAAM,EAAED,SAAS,CAAC;EAE1C,MAAME,GAAG,GAAGZ,OAAO,CAAC,MAAMO,KAAK,CAACM,EAAE,IAAI,KAAK,CAAC;EAC5C,OAAO,CAAC,GAAG,CAAC,IAAIF,MAAM,CAAC,GAAG;AAC3B","ignoreList":[]}