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

1 line
7.9 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 useClosable from '../_util/hooks/useClosable';\nimport { withPureRenderTheme } from '../_util/PurePanel';\nimport { cloneElement } from '../_util/reactNode';\nimport { ConfigContext } from '../config-provider';\nimport { RawPurePanel as PopoverRawPurePanel } from '../popover/PurePanel';\nimport TourPanel from './panelRender';\nimport useStyle from './style';\nconst PurePanel = props => {\n const {\n prefixCls: customizePrefixCls,\n current = 0,\n total = 6,\n className,\n style,\n type,\n closable,\n closeIcon\n } = props,\n restProps = __rest(props, [\"prefixCls\", \"current\", \"total\", \"className\", \"style\", \"type\", \"closable\", \"closeIcon\"]);\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('tour', customizePrefixCls);\n const [wrapCSSVar, hashId, cssVarCls] = useStyle(prefixCls);\n const [mergedClosable, mergedCloseIcon] = useClosable({\n closable,\n closeIcon\n }, null, {\n closable: true,\n closeIconRender: icon => /*#__PURE__*/React.isValidElement(icon) ? cloneElement(icon, {\n className: classNames(icon.props.className, `${prefixCls}-close-icon`)\n }) : icon\n });\n return wrapCSSVar( /*#__PURE__*/React.createElement(PopoverRawPurePanel, {\n prefixCls: prefixCls,\n hashId: hashId,\n className: classNames(className, `${prefixCls}-pure`, type && `${prefixCls}-${type}`, cssVarCls),\n style: style\n }, /*#__PURE__*/React.createElement(TourPanel, {\n stepProps: Object.assign(Object.assign({}, restProps), {\n prefixCls,\n total,\n closable: mergedClosable ? {\n closeIcon: mergedCloseIcon\n } : undefined\n }),\n current: current,\n type: type\n })));\n};\nexport default withPureRenderTheme(PurePanel);","map":{"version":3,"names":["__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","React","classNames","useClosable","withPureRenderTheme","cloneElement","ConfigContext","RawPurePanel","PopoverRawPurePanel","TourPanel","useStyle","PurePanel","props","prefixCls","customizePrefixCls","current","total","className","style","type","closable","closeIcon","restProps","getPrefixCls","useContext","wrapCSSVar","hashId","cssVarCls","mergedClosable","mergedCloseIcon","closeIconRender","icon","isValidElement","createElement","stepProps","assign","undefined"],"sources":["C:/Users/Аришина)/Desktop/promo/node_modules/antd/es/tour/PurePanel.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 useClosable from '../_util/hooks/useClosable';\nimport { withPureRenderTheme } from '../_util/PurePanel';\nimport { cloneElement } from '../_util/reactNode';\nimport { ConfigContext } from '../config-provider';\nimport { RawPurePanel as PopoverRawPurePanel } from '../popover/PurePanel';\nimport TourPanel from './panelRender';\nimport useStyle from './style';\nconst PurePanel = props => {\n const {\n prefixCls: customizePrefixCls,\n current = 0,\n total = 6,\n className,\n style,\n type,\n closable,\n closeIcon\n } = props,\n restProps = __rest(props, [\"prefixCls\", \"current\", \"total\", \"className\", \"style\", \"type\", \"closable\", \"closeIcon\"]);\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('tour', customizePrefixCls);\n const [wrapCSSVar, hashId, cssVarCls] = useStyle(prefixCls);\n const [mergedClosable, mergedCloseIcon] = useClosable({\n closable,\n closeIcon\n }, null, {\n closable: true,\n closeIconRender: icon => /*#__PURE__*/React.isValidElement(icon) ? cloneElement(icon, {\n className: classNames(icon.props.className, `${prefixCls}-close-icon`)\n }) : icon\n });\n return wrapCSSVar( /*#__PURE__*/React.createElement(PopoverRawPurePanel, {\n prefixCls: prefixCls,\n hashId: hashId,\n className: classNames(className, `${prefixCls}-pure`, type && `${prefixCls}-${type}`, cssVarCls),\n style: style\n }, /*#__PURE__*/React.createElement(TourPanel, {\n stepProps: Object.assign(Object.assign({}, restProps), {\n prefixCls,\n total,\n closable: mergedClosable ? {\n closeIcon: mergedCloseIcon\n } : undefined\n }),\n current: current,\n type: type\n })));\n};\nexport default withPureRenderTheme(PurePanel);"],"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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