{"version":3,"sources":["jsdelivr-header.js","/npm/@radix-ui/react-separator@1.1.8/src/index.ts","/npm/@radix-ui/react-separator@1.1.8/src/separator.tsx"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,svBCNA,cAAA,GAAA,SAAA,cAAA,CAAA,KAAA,IAAA,KAAA,UAAA,IAAA,YAAA,OAAA,QAAA,aAAA,eCAA,IAAA,MAAuB,QAAA,QAAA,UACvB,uBAA0B,QAAA,6BAmCtB,mBAAA,QAAA,qBA7BE,KAAO,YACP,oBAAsB,aACtB,aAAe,CAAC,aAAc,YAiB9B,UAAkB,MAAA,YAA6C,CAAC,EAAO,KAC3E,MAAM,WAAE,EAAY,YAAa,EAAkB,uBAAwB,GAAa,EAClF,EAAc,mBAAmB,GAAmB,EAAkB,oBAGtE,EAAgB,EAClB,CAAE,KAAM,QACR,CAAE,mBAHkC,aAAhB,EAA6B,OAAc,EAGxB,KAAM,aAEjD,OACE,EAAA,mBAAA,KAAC,uBAAA,UAAU,IAAV,CACC,mBAAkB,KACd,KACA,EACJ,IAAK,GACP,IAQJ,SAAS,mBAAmB,GAC1B,OAAO,aAAa,SAAS,EAC/B,CANA,UAAU,YAAc,KAQxB,IAAM,KAAO","file":"/npm/@radix-ui/react-separator@1.1.8/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@radix-ui/react-separator@1.1.8/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","export {\n  Separator,\n  //\n  Root,\n} from './separator';\nexport type { SeparatorProps } from './separator';\n","import * as React from 'react';\nimport { Primitive } from '@radix-ui/react-primitive';\n\n/* -------------------------------------------------------------------------------------------------\n *  Separator\n * -----------------------------------------------------------------------------------------------*/\n\nconst NAME = 'Separator';\nconst DEFAULT_ORIENTATION = 'horizontal';\nconst ORIENTATIONS = ['horizontal', 'vertical'] as const;\n\ntype Orientation = (typeof ORIENTATIONS)[number];\ntype SeparatorElement = React.ComponentRef<typeof Primitive.div>;\ntype PrimitiveDivProps = React.ComponentPropsWithoutRef<typeof Primitive.div>;\ninterface SeparatorProps extends PrimitiveDivProps {\n  /**\n   * Either `vertical` or `horizontal`. Defaults to `horizontal`.\n   */\n  orientation?: Orientation;\n  /**\n   * Whether or not the component is purely decorative. When true, accessibility-related attributes\n   * are updated so that that the rendered element is removed from the accessibility tree.\n   */\n  decorative?: boolean;\n}\n\nconst Separator = React.forwardRef<SeparatorElement, SeparatorProps>((props, forwardedRef) => {\n  const { decorative, orientation: orientationProp = DEFAULT_ORIENTATION, ...domProps } = props;\n  const orientation = isValidOrientation(orientationProp) ? orientationProp : DEFAULT_ORIENTATION;\n  // `aria-orientation` defaults to `horizontal` so we only need it if `orientation` is vertical\n  const ariaOrientation = orientation === 'vertical' ? orientation : undefined;\n  const semanticProps = decorative\n    ? { role: 'none' }\n    : { 'aria-orientation': ariaOrientation, role: 'separator' };\n\n  return (\n    <Primitive.div\n      data-orientation={orientation}\n      {...semanticProps}\n      {...domProps}\n      ref={forwardedRef}\n    />\n  );\n});\n\nSeparator.displayName = NAME;\n\n/* -----------------------------------------------------------------------------------------------*/\n\nfunction isValidOrientation(orientation: any): orientation is Orientation {\n  return ORIENTATIONS.includes(orientation);\n}\n\nconst Root = Separator;\n\nexport {\n  Separator,\n  //\n  Root,\n};\nexport type { SeparatorProps };\n"]}