{"version":3,"file":"useSlotProps.mjs","sources":["../../../../../../../../../node_modules/@mui/utils/esm/useSlotProps/useSlotProps.js"],"sourcesContent":["'use client';\n\nimport useForkRef from \"../useForkRef/index.js\";\nimport appendOwnerState from \"../appendOwnerState/index.js\";\nimport mergeSlotProps from \"../mergeSlotProps/index.js\";\nimport resolveComponentProps from \"../resolveComponentProps/index.js\";\n/**\n * @ignore - do not document.\n * Builds the props to be passed into the slot of an unstyled component.\n * It merges the internal props of the component with the ones supplied by the user, allowing to customize the behavior.\n * If the slot component is not a host component, it also merges in the `ownerState`.\n *\n * @param parameters.getSlotProps - A function that returns the props to be passed to the slot component.\n */\nfunction useSlotProps(parameters) {\n  const {\n    elementType,\n    externalSlotProps,\n    ownerState,\n    skipResolvingSlotProps = false,\n    ...other\n  } = parameters;\n  const resolvedComponentsProps = skipResolvingSlotProps ? {} : resolveComponentProps(externalSlotProps, ownerState);\n  const {\n    props: mergedProps,\n    internalRef\n  } = mergeSlotProps({\n    ...other,\n    externalSlotProps: resolvedComponentsProps\n  });\n  const ref = useForkRef(internalRef, resolvedComponentsProps?.ref, parameters.additionalProps?.ref);\n  const props = appendOwnerState(elementType, {\n    ...mergedProps,\n    ref\n  }, ownerState);\n  return props;\n}\nexport default useSlotProps;"],"names":[],"mappings":";;;;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,YAAY,CAAC,UAAU,EAAE;AAClC,EAAE,MAAM;AACR,IAAI,WAAW;AACf,IAAI,iBAAiB;AACrB,IAAI,UAAU;AACd,IAAI,sBAAsB,GAAG,KAAK;AAClC,IAAI,GAAG;AACP,GAAG,GAAG,UAAU;AAChB,EAAE,MAAM,uBAAuB,GAAG,sBAAsB,GAAG,EAAE,GAAG,qBAAqB,CAAC,iBAAiB,EAAE,UAAU,CAAC;AACpH,EAAE,MAAM;AACR,IAAI,KAAK,EAAE,WAAW;AACtB,IAAI;AACJ,GAAG,GAAG,cAAc,CAAC;AACrB,IAAI,GAAG,KAAK;AACZ,IAAI,iBAAiB,EAAE;AACvB,GAAG,CAAC;AACJ,EAAE,MAAM,GAAG,GAAG,UAAU,CAAC,WAAW,EAAE,uBAAuB,EAAE,GAAG,EAAE,UAAU,CAAC,eAAe,EAAE,GAAG,CAAC;AACpG,EAAE,MAAM,KAAK,GAAG,gBAAgB,CAAC,WAAW,EAAE;AAC9C,IAAI,GAAG,WAAW;AAClB,IAAI;AACJ,GAAG,EAAE,UAAU,CAAC;AAChB,EAAE,OAAO,KAAK;AACd;;;;","x_google_ignoreList":[0]}