{"ast":null,"code":"import $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 * -----------------------------------------------------------------------------------------------*/\nconst $89eedd556c436f6a$var$NAME = 'Separator';\nconst $89eedd556c436f6a$var$DEFAULT_ORIENTATION = 'horizontal';\nconst $89eedd556c436f6a$var$ORIENTATIONS = ['horizontal', 'vertical'];\nconst $89eedd556c436f6a$export$1ff3c3f08ae963c0 = /*#__PURE__*/$5WXm8$forwardRef((props, forwardedRef) => {\n  const {\n    decorative: decorative,\n    orientation: orientationProp = $89eedd556c436f6a$var$DEFAULT_ORIENTATION,\n    ...domProps\n  } = props;\n  const 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  const ariaOrientation = orientation === 'vertical' ? orientation : undefined;\n  const 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(props, propName, componentName) {\n    const propValue = props[propName];\n    const 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 \\`${value}\\` supplied to \\`${componentName}\\`, expected one of:\n  - horizontal\n  - vertical\n\nDefaulting to \\`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\\`.`;\n}\nfunction $89eedd556c436f6a$var$isValidOrientation(orientation) {\n  return $89eedd556c436f6a$var$ORIENTATIONS.includes(orientation);\n}\nconst $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","domProps","$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","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,MAAMA,0BAAI,GAAG,WAAb;AACA,MAAMC,yCAAmB,GAAG,YAA5B;AACA,MAAMC,kCAAY,GAAG,CAAC,YAAD,EAAe,UAAf,CAArB;AAiBA,MAAMC,yCAAS,gBAAGC,iBAAA,CAAmD,CAACC,KAAD,EAAQC,YAAR,KAAyB;EAC5F,MAAM;gBAAEC,UAAF;IAAcC,WAAW,EAAEC,eAAe,GAAGR,yCAA7C;IAAkE,GAAGS;EAAH,CAAlE,GAAkFL,KAAxF;EACA,MAAMG,WAAW,GAAGG,wCAAkB,CAACF,eAAD,CAAlB,GAAsCA,eAAtC,GAAwDR,yCAA5E,CAF4F,CAG5F;EACA,MAAMW,eAAe,GAAGJ,WAAW,KAAK,UAAhB,GAA6BA,WAA7B,GAA2CK,SAAnE;EACA,MAAMC,aAAa,GAAGP,UAAU,GAC5B;IAAEQ,IAAI,EAAE;GADoB,GAE5B;IAAE,oBAAoBH,eAAtB;IAAuCG,IAAI,EAAE;GAFjD;EAIA,oBACEC,oBAAA,CAACC,gBAAD,CAAWC,GAAX,EADFC,oCAAA;IAEI,oBAAkBX;GADpB,EAEMM,aAFN,EAGMJ,QAHN;IAIEU,GAAG,EAAEd;GAJP,EADF;CATgB,CAAlB;AAmBA;AAAAe,MAAA,CAAAC,MAAA,CAAAnB,yCAAA;EAAAoB,WAAA,EAAAvB;CAAA;AAEAG,yCAAS,CAACqB,SAAV,GAAsB;EACpBhB,WAAWA,CAACH,KAAD,EAAQoB,QAAR,EAAkBC,aAAlB,EAAiC;IAC1C,MAAMC,SAAS,GAAGtB,KAAK,CAACoB,QAAD,CAAvB;IACA,MAAMG,MAAM,GAAGC,MAAM,CAACF,SAAD,CAArB;IACA,IAAIA,SAAS,IAAI,CAAChB,wCAAkB,CAACgB,SAAD,CAApC,EACE,OAAO,IAAIG,KAAJ,CAAUC,gDAA0B,CAACH,MAAD,EAASF,aAAT,CAApC,CAAP;IAEF,OAAO,IAAP;;CAPJ;AAWA,qGAEA;AACA,SAASK,gDAATC,CAAoCC,KAApC,EAAmDP,aAAnD,EAA0E;EACxE,OAAQ,2CAA0CO,KAAM,oBAAmBP,aAA3E;;;;kBAIgBzB,yCAAoB,KAJpC;;AAOF,SAASU,wCAATuB,CAA4B1B,WAA5B,EAA0E;EACxE,OAAON,kCAAY,CAACiC,QAAb,CAAsB3B,WAAtB,CAAP;;AAGF,MAAM4B,yCAAI,GAAGjC,yCAAb"},"metadata":{},"sourceType":"module","externalDependencies":[]}