{"version":3,"file":"appendOwnerState.mjs","sources":["../../../../../../../../../node_modules/@mui/utils/esm/appendOwnerState/appendOwnerState.js"],"sourcesContent":["import isHostComponent from \"../isHostComponent/index.js\";\n\n/**\n * Type of the ownerState based on the type of an element it applies to.\n * This resolves to the provided OwnerState for React components and `undefined` for host components.\n * Falls back to `OwnerState | undefined` when the exact type can't be determined in development time.\n */\n\n/**\n * Appends the ownerState object to the props, merging with the existing one if necessary.\n *\n * @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node or undefined, `ownerState` is not applied.\n * @param otherProps Props of the element.\n * @param ownerState\n */\nfunction appendOwnerState(elementType, otherProps, ownerState) {\n  if (elementType === undefined || isHostComponent(elementType)) {\n    return otherProps;\n  }\n  return {\n    ...otherProps,\n    ownerState: {\n      ...otherProps.ownerState,\n      ...ownerState\n    }\n  };\n}\nexport default appendOwnerState;"],"names":[],"mappings":";;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,gBAAgB,CAAC,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE;AAC/D,EAAE,IAAI,WAAW,KAAK,SAAS,IAAI,eAAe,CAAC,WAAW,CAAC,EAAE;AACjE,IAAI,OAAO,UAAU;AACrB,EAAE;AACF,EAAE,OAAO;AACT,IAAI,GAAG,UAAU;AACjB,IAAI,UAAU,EAAE;AAChB,MAAM,GAAG,UAAU,CAAC,UAAU;AAC9B,MAAM,GAAG;AACT;AACA,GAAG;AACH;;;;","x_google_ignoreList":[0]}