{"ast":null,"code":"import _objectWithoutProperties from \"C:/Users/user/Desktop/000newport/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js\";\nvar _excluded = [\"decorative\", \"orientation\"];\nimport $5WXm8$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport { forwardRef as $5WXm8$forwardRef, createElement as $5WXm8$createElement } from \"react\";\nimport { Primitive as $5WXm8$Primitive } from \"@radix-ui/react-primitive\";\n\n/* -------------------------------------------------------------------------------------------------\n *  Separator\n * -----------------------------------------------------------------------------------------------*/\nvar $89eedd556c436f6a$var$NAME = 'Separator';\nvar $89eedd556c436f6a$var$DEFAULT_ORIENTATION = 'horizontal';\nvar $89eedd556c436f6a$var$ORIENTATIONS = ['horizontal', 'vertical'];\nvar $89eedd556c436f6a$export$1ff3c3f08ae963c0 = /*#__PURE__*/$5WXm8$forwardRef(function (props, forwardedRef) {\n  var decorative = props.decorative,\n    _props$orientation = props.orientation,\n    orientationProp = _props$orientation === void 0 ? $89eedd556c436f6a$var$DEFAULT_ORIENTATION : _props$orientation,\n    domProps = _objectWithoutProperties(props, _excluded);\n  var orientation = $89eedd556c436f6a$var$isValidOrientation(orientationProp) ? orientationProp : $89eedd556c436f6a$var$DEFAULT_ORIENTATION; // `aria-orientation` defaults to `horizontal` so we only need it if `orientation` is vertical\n  var ariaOrientation = orientation === 'vertical' ? orientation : undefined;\n  var semanticProps = decorative ? {\n    role: 'none'\n  } : {\n    'aria-orientation': ariaOrientation,\n    role: 'separator'\n  };\n  return /*#__PURE__*/$5WXm8$createElement($5WXm8$Primitive.div, $5WXm8$babelruntimehelpersesmextends({\n    \"data-orientation\": orientation\n  }, semanticProps, domProps, {\n    ref: forwardedRef\n  }));\n});\n/*#__PURE__*/\nObject.assign($89eedd556c436f6a$export$1ff3c3f08ae963c0, {\n  displayName: $89eedd556c436f6a$var$NAME\n});\n$89eedd556c436f6a$export$1ff3c3f08ae963c0.propTypes = {\n  orientation: function orientation(props, propName, componentName) {\n    var propValue = props[propName];\n    var strVal = String(propValue);\n    if (propValue && !$89eedd556c436f6a$var$isValidOrientation(propValue)) return new Error($89eedd556c436f6a$var$getInvalidOrientationError(strVal, componentName));\n    return null;\n  }\n};\n/* -----------------------------------------------------------------------------------------------*/ // Split this out for clearer readability of the error message.\nfunction $89eedd556c436f6a$var$getInvalidOrientationError(value, componentName) {\n  return \"Invalid prop `orientation` of value `\".concat(value, \"` supplied to `\").concat(componentName, \"`, expected one of:\\n  - horizontal\\n  - vertical\\n\\nDefaulting to `\").concat($89eedd556c436f6a$var$DEFAULT_ORIENTATION, \"`.\");\n}\nfunction $89eedd556c436f6a$var$isValidOrientation(orientation) {\n  return $89eedd556c436f6a$var$ORIENTATIONS.includes(orientation);\n}\nvar $89eedd556c436f6a$export$be92b6f5f03c0fe9 = $89eedd556c436f6a$export$1ff3c3f08ae963c0;\nexport { $89eedd556c436f6a$export$1ff3c3f08ae963c0 as Separator, $89eedd556c436f6a$export$be92b6f5f03c0fe9 as Root };","map":{"version":3,"names":["$89eedd556c436f6a$var$NAME","$89eedd556c436f6a$var$DEFAULT_ORIENTATION","$89eedd556c436f6a$var$ORIENTATIONS","$89eedd556c436f6a$export$1ff3c3f08ae963c0","$5WXm8$forwardRef","props","forwardedRef","decorative","orientation","orientationProp","_props$orientation","domProps","_objectWithoutProperties","_excluded","$89eedd556c436f6a$var$isValidOrientation","ariaOrientation","undefined","semanticProps","role","$5WXm8$createElement","$5WXm8$Primitive","div","$5WXm8$babelruntimehelpersesmextends","ref","Object","assign","displayName","propTypes","propName","componentName","propValue","strVal","String","Error","$89eedd556c436f6a$var$getInvalidOrientationError","getInvalidOrientationError","value","concat","isValidOrientation","includes","$89eedd556c436f6a$export$be92b6f5f03c0fe9"],"sources":["C:\\Users\\user\\Desktop\\000newport\\node_modules\\@radix-ui\\react-separator\\dist\\packages\\react\\separator\\src\\index.ts","C:\\Users\\user\\Desktop\\000newport\\node_modules\\@radix-ui\\react-separator\\dist\\packages\\react\\separator\\src\\Separator.tsx"],"sourcesContent":["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\nimport type * as Radix 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.ElementRef<typeof Primitive.div>;\ntype PrimitiveDivProps = Radix.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\nSeparator.propTypes = {\n  orientation(props, propName, componentName) {\n    const propValue = props[propName];\n    const strVal = String(propValue);\n    if (propValue && !isValidOrientation(propValue)) {\n      return new Error(getInvalidOrientationError(strVal, componentName));\n    }\n    return null;\n  },\n};\n\n/* -----------------------------------------------------------------------------------------------*/\n\n// Split this out for clearer readability of the error message.\nfunction getInvalidOrientationError(value: string, componentName: string) {\n  return `Invalid prop \\`orientation\\` of value \\`${value}\\` supplied to \\`${componentName}\\`, expected one of:\n  - horizontal\n  - vertical\n\nDefaulting to \\`${DEFAULT_ORIENTATION}\\`.`;\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"],"mappings":";;;;;;ACKA;;;AAIA,IAAMA,0BAAI,GAAG,WAAb;AACA,IAAMC,yCAAmB,GAAG,YAA5B;AACA,IAAMC,kCAAY,GAAG,CAAC,YAAD,EAAe,UAAf,CAArB;AAiBA,IAAMC,yCAAS,gBAAGC,iBAAA,CAAmD,UAACC,KAAD,EAAQC,YAAR,EAAyB;EAC5F,IAAQC,UAAF,GAAkFF,KAAxF,C;yBAAwFA,KAAxF,CAAoBG,WAAW;IAAEC,eAAe,GAAAC,kBAAA,cAAGT,yCAA7C,GAAAS,kBAAA;IAAqEC,QAAH,GAAAC,wBAAA,CAAgBP,KAAxF,EAAAQ,SAAA;EACA,IAAML,WAAW,GAAGM,wCAAkB,CAACL,eAAD,CAAlB,GAAsCA,eAAtC,GAAwDR,yCAA5E,CAF4F,CAG5F;EACA,IAAMc,eAAe,GAAGP,WAAW,KAAK,UAAhB,GAA6BA,WAA7B,GAA2CQ,SAAnE;EACA,IAAMC,aAAa,GAAGV,UAAU,GAC5B;IAAEW,IAAI,EAAE;GADoB,GAE5B;IAAE,oBAAoBH,eAAtB;IAAuCG,IAAI,EAAE;GAFjD;EAIA,oBACEC,oBAAA,CAACC,gBAAD,CAAWC,GAAX,EADFC,oCAAA;IAEI,oBAAkBd;GADpB,EAEMS,aAFN,EAGMN,QAHN;IAIEY,GAAG,EAAEjB;GAJP,EADF;CATgB,CAAlB;AAmBA;AAAAkB,MAAA,CAAAC,MAAA,CAAAtB,yCAAA;EAAAuB,WAAA,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