{"version":3,"sources":["jsdelivr-header.js","/npm/@radix-ui/react-separator@1.2.0/src/index.ts","/npm/@radix-ui/react-separator@1.2.0/src/separator.tsx"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,kzBCNA,cAAA,GAAA,SAAA,cAAA,CAAA,KAAA,IAAA,oBAAA,IAAA,YAAA,OAAA,QAAA,aAAA,eCAA,IAAA,MAAuB,QAAA,QAAA,UACvB,uBAA0B,QAAA,6BAwCpB,mBAAA,QAAA,qBAnCA,YAAc,CAClB,WAAY,aACZ,SAAU,YAGN,oBAAsB,YAAY,WAClC,aAAe,OAAO,OAAO,aAkB7B,UAAkC,MAAA,WACtC,OAAA,SAAmB,EAAO,GACxB,MAAM,WAAE,EAAY,YAAa,EAAkB,uBAAwB,GAAa,EAClF,EAAc,mBAAmB,GAAmB,EAAkB,oBAEtE,EAAkB,IAAgB,YAAY,SAAW,OAAc,EACvE,EAAgB,EAClB,CAAE,KAAM,QACR,CAAE,mBAAoB,EAAiB,KAAM,aAEjD,OACE,EAAA,mBAAA,KAAC,uBAAA,UAAU,IAAV,CACC,mBAAkB,KACd,KACA,EACJ,IAAK,GAGX,EAjBA,cAsBF,SAAS,mBAAmB,GAC1B,OAAO,aAAa,SAAS,EAC/B,CAFS,OAAA,mBAAA","file":"/npm/@radix-ui/react-separator@1.2.0/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.48.0.\n * Original file: /npm/@radix-ui/react-separator@1.2.0/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","'use client';\nexport {\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 * -----------------------------------------------------------------------------------------------*/\nconst Orientation = {\n  Horizontal: 'horizontal',\n  Vertical: 'vertical',\n} as const;\n\nconst DEFAULT_ORIENTATION = Orientation.Horizontal;\nconst ORIENTATIONS = Object.values(Orientation);\n\ntype Orientation = (typeof Orientation)[keyof typeof Orientation];\n\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 | undefined;\n  /**\n   * Whether or not the component is purely decorative. When true, accessibility-related attributes\n   * are updated so that the rendered element is removed from the accessibility tree.\n   */\n  decorative?: boolean | undefined;\n}\n\nconst Separator = /* @__PURE__ */ React.forwardRef<SeparatorElement, SeparatorProps>(\n  function Separator(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 === 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);\n\n/* -----------------------------------------------------------------------------------------------*/\n\nfunction isValidOrientation(orientation: any): orientation is Orientation {\n  return ORIENTATIONS.includes(orientation);\n}\n\nexport {\n  Separator,\n  //\n  Separator as Root,\n};\nexport type { SeparatorProps };\n"]}