{"version":3,"sources":["../src/components/SwatchPicker/EmptySwatch/useEmptySwatch.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { useEmptySwatchBase_unstable } from '@fluentui/react-swatch-picker';\nimport { stringifyDataAttribute } from '../../../utils';\nimport type { EmptySwatchProps, EmptySwatchState } from './EmptySwatch.types';\n\nexport const useEmptySwatch = (props: EmptySwatchProps, ref: React.Ref<HTMLButtonElement>): EmptySwatchState => {\n  const state: EmptySwatchState = useEmptySwatchBase_unstable(props, ref);\n\n  // eslint-disable-next-line react-hooks/immutability\n  state.root['data-selected'] = stringifyDataAttribute(state.root['aria-checked']);\n  // eslint-disable-next-line react-hooks/immutability\n  state.root['data-disabled'] = stringifyDataAttribute(state.root.disabled);\n\n  return state;\n};\n"],"names":["useEmptySwatch","props","ref","state","useEmptySwatchBase_unstable","root","stringifyDataAttribute","disabled"],"mappings":"AAAA;;;;;+BAOaA;;;eAAAA;;;mCAJ+B;uBACL;AAGhC,MAAMA,iBAAiB,CAACC,OAAyBC;IACtD,MAAMC,QAA0BC,IAAAA,8CAA2B,EAACH,OAAOC;IAEnE,oDAAoD;IACpDC,MAAME,IAAI,CAAC,gBAAgB,GAAGC,IAAAA,6BAAsB,EAACH,MAAME,IAAI,CAAC,eAAe;IAC/E,oDAAoD;IACpDF,MAAME,IAAI,CAAC,gBAAgB,GAAGC,IAAAA,6BAAsB,EAACH,MAAME,IAAI,CAACE,QAAQ;IAExE,OAAOJ;AACT"}