PromoCursed/node_modules/.cache/babel-loader/c895995334d2986a0070c62fba55b4b4d6c3fdded2eb204c7b6f2e927425b5c2.json
2024-08-20 23:25:37 +04:00

1 line
7.1 KiB
JSON

{"ast":null,"code":"\"use client\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { ConfigContext } from '../config-provider';\nconst TimelineItem = _a => {\n var {\n prefixCls: customizePrefixCls,\n className,\n color = 'blue',\n dot,\n pending = false,\n position /** Dead, but do not pass in <li {...omit()} */,\n label,\n children\n } = _a,\n restProps = __rest(_a, [\"prefixCls\", \"className\", \"color\", \"dot\", \"pending\", \"position\", \"label\", \"children\"]);\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('timeline', customizePrefixCls);\n const itemClassName = classNames(`${prefixCls}-item`, {\n [`${prefixCls}-item-pending`]: pending\n }, className);\n const customColor = /blue|red|green|gray/.test(color || '') ? undefined : color;\n const dotClassName = classNames(`${prefixCls}-item-head`, {\n [`${prefixCls}-item-head-custom`]: !!dot,\n [`${prefixCls}-item-head-${color}`]: !customColor\n });\n return /*#__PURE__*/React.createElement(\"li\", Object.assign({}, restProps, {\n className: itemClassName\n }), label && /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-item-label`\n }, label), /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-item-tail`\n }), /*#__PURE__*/React.createElement(\"div\", {\n className: dotClassName,\n style: {\n borderColor: customColor,\n color: customColor\n }\n }, dot), /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-item-content`\n }, children));\n};\nexport default TimelineItem;","map":{"version":3,"names":["__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","React","classNames","ConfigContext","TimelineItem","_a","prefixCls","customizePrefixCls","className","color","dot","pending","position","label","children","restProps","getPrefixCls","useContext","itemClassName","customColor","test","undefined","dotClassName","createElement","assign","style","borderColor"],"sources":["C:/Users/Аришина)/Desktop/promo/node_modules/antd/es/timeline/TimelineItem.js"],"sourcesContent":["\"use client\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { ConfigContext } from '../config-provider';\nconst TimelineItem = _a => {\n var {\n prefixCls: customizePrefixCls,\n className,\n color = 'blue',\n dot,\n pending = false,\n position /** Dead, but do not pass in <li {...omit()} */,\n label,\n children\n } = _a,\n restProps = __rest(_a, [\"prefixCls\", \"className\", \"color\", \"dot\", \"pending\", \"position\", \"label\", \"children\"]);\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('timeline', customizePrefixCls);\n const itemClassName = classNames(`${prefixCls}-item`, {\n [`${prefixCls}-item-pending`]: pending\n }, className);\n const customColor = /blue|red|green|gray/.test(color || '') ? undefined : color;\n const dotClassName = classNames(`${prefixCls}-item-head`, {\n [`${prefixCls}-item-head-custom`]: !!dot,\n [`${prefixCls}-item-head-${color}`]: !customColor\n });\n return /*#__PURE__*/React.createElement(\"li\", Object.assign({}, restProps, {\n className: itemClassName\n }), label && /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-item-label`\n }, label), /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-item-tail`\n }), /*#__PURE__*/React.createElement(\"div\", {\n className: dotClassName,\n style: {\n borderColor: customColor,\n color: customColor\n }\n }, dot), /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-item-content`\n }, children));\n};\nexport default TimelineItem;"],"mappings":"AAAA,YAAY;;AAEZ,IAAIA,MAAM,GAAG,IAAI,IAAI,IAAI,CAACA,MAAM,IAAI,UAAUC,CAAC,EAAEC,CAAC,EAAE;EAClD,IAAIC,CAAC,GAAG,CAAC,CAAC;EACV,KAAK,IAAIC,CAAC,IAAIH,CAAC,EAAE,IAAII,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACP,CAAC,EAAEG,CAAC,CAAC,IAAIF,CAAC,CAACO,OAAO,CAACL,CAAC,CAAC,GAAG,CAAC,EAAED,CAAC,CAACC,CAAC,CAAC,GAAGH,CAAC,CAACG,CAAC,CAAC;EAChG,IAAIH,CAAC,IAAI,IAAI,IAAI,OAAOI,MAAM,CAACK,qBAAqB,KAAK,UAAU,EAAE,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEP,CAAC,GAAGC,MAAM,CAACK,qBAAqB,CAACT,CAAC,CAAC,EAAEU,CAAC,GAAGP,CAAC,CAACQ,MAAM,EAAED,CAAC,EAAE,EAAE;IAC3I,IAAIT,CAAC,CAACO,OAAO,CAACL,CAAC,CAACO,CAAC,CAAC,CAAC,GAAG,CAAC,IAAIN,MAAM,CAACC,SAAS,CAACO,oBAAoB,CAACL,IAAI,CAACP,CAAC,EAAEG,CAAC,CAACO,CAAC,CAAC,CAAC,EAAER,CAAC,CAACC,CAAC,CAACO,CAAC,CAAC,CAAC,GAAGV,CAAC,CAACG,CAAC,CAACO,CAAC,CAAC,CAAC;EACnG;EACA,OAAOR,CAAC;AACV,CAAC;AACD,OAAO,KAAKW,KAAK,MAAM,OAAO;AAC9B,OAAOC,UAAU,MAAM,YAA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