{"version":3,"sources":["../src/components/Rating/useRating.tsx"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { useRatingBase_unstable } from '@fluentui/react-rating';\n\nimport type { RatingProps, RatingState } from './Rating.types';\n\n/**\n * Returns the state for a Rating component, given its props and ref.\n * The returned state can be modified with hooks before being passed to `renderRating`.\n */\nexport const useRating = (props: RatingProps, ref: React.Ref<HTMLDivElement>): RatingState => {\n  const state = useRatingBase_unstable(props, ref);\n\n  return state;\n};\n"],"names":["useRating","props","ref","state","useRatingBase_unstable"],"mappings":"AAAA;;;;;+BAWaA;;;eAAAA;;;6BAR0B;AAQhC,MAAMA,YAAY,CAACC,OAAoBC;IAC5C,MAAMC,QAAQC,IAAAA,mCAAsB,EAACH,OAAOC;IAE5C,OAAOC;AACT"}