{"ast":null,"code":"\"use client\";\n\nimport { resetComponent } from '../../style';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nconst genRateStarStyle = token => {\n  const {\n    componentCls\n  } = token;\n  return {\n    [`${componentCls}-star`]: {\n      position: 'relative',\n      display: 'inline-block',\n      color: 'inherit',\n      cursor: 'pointer',\n      '&:not(:last-child)': {\n        marginInlineEnd: token.marginXS\n      },\n      '> div': {\n        transition: `all ${token.motionDurationMid}, outline 0s`,\n        '&:hover': {\n          transform: token.starHoverScale\n        },\n        '&:focus': {\n          outline: 0\n        },\n        '&:focus-visible': {\n          outline: `${token.lineWidth}px dashed ${token.starColor}`,\n          transform: token.starHoverScale\n        }\n      },\n      '&-first, &-second': {\n        color: token.starBg,\n        transition: `all ${token.motionDurationMid}`,\n        userSelect: 'none'\n      },\n      '&-first': {\n        position: 'absolute',\n        top: 0,\n        insetInlineStart: 0,\n        width: '50%',\n        height: '100%',\n        overflow: 'hidden',\n        opacity: 0\n      },\n      [`&-half ${componentCls}-star-first, &-half ${componentCls}-star-second`]: {\n        opacity: 1\n      },\n      [`&-half ${componentCls}-star-first, &-full ${componentCls}-star-second`]: {\n        color: 'inherit'\n      }\n    }\n  };\n};\nconst genRateRtlStyle = token => ({\n  [`&-rtl${token.componentCls}`]: {\n    direction: 'rtl'\n  }\n});\nconst genRateStyle = token => {\n  const {\n    componentCls\n  } = token;\n  return {\n    [componentCls]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, resetComponent(token)), {\n      display: 'inline-block',\n      margin: 0,\n      padding: 0,\n      color: token.starColor,\n      fontSize: token.starSize,\n      lineHeight: 1,\n      listStyle: 'none',\n      outline: 'none',\n      // disable styles\n      [`&-disabled${componentCls} ${componentCls}-star`]: {\n        cursor: 'default',\n        '> div:hover': {\n          transform: 'scale(1)'\n        }\n      }\n    }), genRateStarStyle(token)), {\n      // text styles\n      [`+ ${componentCls}-text`]: {\n        display: 'inline-block',\n        marginInlineStart: token.marginXS,\n        fontSize: token.fontSize\n      }\n    }), genRateRtlStyle(token))\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Rate', token => {\n  const rateToken = mergeToken(token, {});\n  return [genRateStyle(rateToken)];\n}, token => ({\n  starColor: token.yellow6,\n  starSize: token.controlHeightLG * 0.5,\n  starHoverScale: 'scale(1.1)',\n  starBg: token.colorFillContent\n}));","map":{"version":3,"names":["resetComponent","genComponentStyleHook","mergeToken","genRateStarStyle","token","componentCls","position","display","color","cursor","marginInlineEnd","marginXS","transition","motionDurationMid","transform","starHoverScale","outline","lineWidth","starColor","starBg","userSelect","top","insetInlineStart","width","height","overflow","opacity","genRateRtlStyle","direction","genRateStyle","Object","assign","margin","padding","fontSize","starSize","lineHeight","listStyle","marginInlineStart","rateToken","yellow6","controlHeightLG","colorFillContent"],"sources":["/Users/chrishaack/UC_Trains_Voice/react-demo/node_modules/antd/es/rate/style/index.js"],"sourcesContent":["\"use client\";\n\nimport { resetComponent } from '../../style';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nconst genRateStarStyle = token => {\n  const {\n    componentCls\n  } = token;\n  return {\n    [`${componentCls}-star`]: {\n      position: 'relative',\n      display: 'inline-block',\n      color: 'inherit',\n      cursor: 'pointer',\n      '&:not(:last-child)': {\n        marginInlineEnd: token.marginXS\n      },\n      '> div': {\n        transition: `all ${token.motionDurationMid}, outline 0s`,\n        '&:hover': {\n          transform: token.starHoverScale\n        },\n        '&:focus': {\n          outline: 0\n        },\n        '&:focus-visible': {\n          outline: `${token.lineWidth}px dashed ${token.starColor}`,\n          transform: token.starHoverScale\n        }\n      },\n      '&-first, &-second': {\n        color: token.starBg,\n        transition: `all ${token.motionDurationMid}`,\n        userSelect: 'none'\n      },\n      '&-first': {\n        position: 'absolute',\n        top: 0,\n        insetInlineStart: 0,\n        width: '50%',\n        height: '100%',\n        overflow: 'hidden',\n        opacity: 0\n      },\n      [`&-half ${componentCls}-star-first, &-half ${componentCls}-star-second`]: {\n        opacity: 1\n      },\n      [`&-half ${componentCls}-star-first, &-full ${componentCls}-star-second`]: {\n        color: 'inherit'\n      }\n    }\n  };\n};\nconst genRateRtlStyle = token => ({\n  [`&-rtl${token.componentCls}`]: {\n    direction: 'rtl'\n  }\n});\nconst genRateStyle = token => {\n  const {\n    componentCls\n  } = token;\n  return {\n    [componentCls]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, resetComponent(token)), {\n      display: 'inline-block',\n      margin: 0,\n      padding: 0,\n      color: token.starColor,\n      fontSize: token.starSize,\n      lineHeight: 1,\n      listStyle: 'none',\n      outline: 'none',\n      // disable styles\n      [`&-disabled${componentCls} ${componentCls}-star`]: {\n        cursor: 'default',\n        '> div:hover': {\n          transform: 'scale(1)'\n        }\n      }\n    }), genRateStarStyle(token)), {\n      // text styles\n      [`+ ${componentCls}-text`]: {\n        display: 'inline-block',\n        marginInlineStart: token.marginXS,\n        fontSize: token.fontSize\n      }\n    }), genRateRtlStyle(token))\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Rate', token => {\n  const rateToken = mergeToken(token, {});\n  return [genRateStyle(rateToken)];\n}, token => ({\n  starColor: token.yellow6,\n  starSize: token.controlHeightLG * 0.5,\n  starHoverScale: 'scale(1.1)',\n  starBg: token.colorFillContent\n}));"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,cAAc,QAAQ,aAAa;AAC5C,SAASC,qBAAqB,EAAEC,UAAU,QAAQ,sBAAsB;AACxE,MAAMC,gBAAgB,GAAGC,KAAK,IAAI;EAChC,MAAM;IACJC;EACF,CAAC,GAAGD,KAAK;EACT,OAAO;IACL,CAAE,GAAEC,YAAa,OAAM,GAAG;MACxBC,QAAQ,EAAE,UAAU;MACpBC,OAAO,EAAE,cAAc;MACvBC,KAAK,EAAE,SAAS;MAChBC,MAAM,EAAE,SAAS;MACjB,oBAAoB,EAAE;QACpBC,eAAe,EAAEN,KAAK,CAACO;MACzB,CAAC;MACD,OAAO,EAAE;QACPC,UAAU,EAAG,OAAMR,KAA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