1 line
3.8 KiB
JSON
1 line
3.8 KiB
JSON
{"ast":null,"code":"\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport omit from \"rc-util/es/omit\";\nimport { ConfigContext } from '../config-provider';\nimport Element from './Element';\nimport useStyle from './style';\nconst SkeletonAvatar = props => {\n const {\n prefixCls: customizePrefixCls,\n className,\n rootClassName,\n active,\n shape = 'circle',\n size = 'default'\n } = props;\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('skeleton', customizePrefixCls);\n const [wrapCSSVar, hashId, cssVarCls] = useStyle(prefixCls);\n const otherProps = omit(props, ['prefixCls', 'className']);\n const cls = classNames(prefixCls, `${prefixCls}-element`, {\n [`${prefixCls}-active`]: active\n }, className, rootClassName, hashId, cssVarCls);\n return wrapCSSVar( /*#__PURE__*/React.createElement(\"div\", {\n className: cls\n }, /*#__PURE__*/React.createElement(Element, Object.assign({\n prefixCls: `${prefixCls}-avatar`,\n shape: shape,\n size: size\n }, otherProps))));\n};\nexport default SkeletonAvatar;","map":{"version":3,"names":["React","classNames","omit","ConfigContext","Element","useStyle","SkeletonAvatar","props","prefixCls","customizePrefixCls","className","rootClassName","active","shape","size","getPrefixCls","useContext","wrapCSSVar","hashId","cssVarCls","otherProps","cls","createElement","Object","assign"],"sources":["C:/Users/Аришина)/source/repos/PromoCursed/node_modules/antd/es/skeleton/Avatar.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport omit from \"rc-util/es/omit\";\nimport { ConfigContext } from '../config-provider';\nimport Element from './Element';\nimport useStyle from './style';\nconst SkeletonAvatar = props => {\n const {\n prefixCls: customizePrefixCls,\n className,\n rootClassName,\n active,\n shape = 'circle',\n size = 'default'\n } = props;\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('skeleton', customizePrefixCls);\n const [wrapCSSVar, hashId, cssVarCls] = useStyle(prefixCls);\n const otherProps = omit(props, ['prefixCls', 'className']);\n const cls = classNames(prefixCls, `${prefixCls}-element`, {\n [`${prefixCls}-active`]: active\n }, className, rootClassName, hashId, cssVarCls);\n return wrapCSSVar( /*#__PURE__*/React.createElement(\"div\", {\n className: cls\n }, /*#__PURE__*/React.createElement(Element, Object.assign({\n prefixCls: `${prefixCls}-avatar`,\n shape: shape,\n size: size\n }, otherProps))));\n};\nexport default SkeletonAvatar;"],"mappings":"AAAA,YAAY;;AAEZ,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,IAAI,MAAM,iBAAiB;AAClC,SAASC,aAAa,QAAQ,oBAAoB;AAClD,OAAOC,OAAO,MAAM,WAAW;AAC/B,OAAOC,QAAQ,MAAM,SAAS;AAC9B,MAAMC,cAAc,GAAGC,KAAK,IAAI;EAC9B,MAAM;IACJC,SAAS,EAAEC,kBAAkB;IAC7BC,SAAS;IACTC,aAAa;IACbC,MAAM;IACNC,KAAK,GAAG,QAAQ;IAChBC,IAAI,GAAG;EACT,CAAC,GAAGP,KAAK;EACT,MAAM;IACJQ;EACF,CAAC,GAAGf,KAAK,CAACgB,UAAU,CAACb,aAAa,CAAC;EACnC,MAAMK,SAAS,GAAGO,YAAY,CAAC,UAAU,EAAEN,kBAAkB,CAAC;EAC9D,MAAM,CAACQ,UAAU,EAAEC,MAAM,EAAEC,SAAS,CAAC,GAAGd,QAAQ,CAACG,SAAS,CAAC;EAC3D,MAAMY,UAAU,GAAGlB,IAAI,CAACK,KAAK,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;EAC1D,MAAMc,GAAG,GAAGpB,UAAU,CAACO,SAAS,EAAE,GAAGA,SAAS,UAAU,EAAE;IACxD,CAAC,GAAGA,SAAS,SAAS,GAAGI;EAC3B,CAAC,EAAEF,SAAS,EAAEC,aAAa,EAAEO,MAAM,EAAEC,SAAS,CAAC;EAC/C,OAAOF,UAAU,EAAE,aAAajB,KAAK,CAACsB,aAAa,CAAC,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