{"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 React, { useContext } from 'react';\nimport RCTour from '@rc-component/tour';\nimport classNames from 'classnames';\nimport { useZIndex } from '../_util/hooks/useZIndex';\nimport getPlacements from '../_util/placements';\nimport zIndexContext from '../_util/zindexContext';\nimport { ConfigContext } from '../config-provider';\nimport { useToken } from '../theme/internal';\nimport TourPanel from './panelRender';\nimport PurePanel from './PurePanel';\nimport useStyle from './style';\nconst Tour = props => {\n const {\n prefixCls: customizePrefixCls,\n type,\n rootClassName,\n indicatorsRender,\n steps,\n closeIcon\n } = props,\n restProps = __rest(props, [\"prefixCls\", \"type\", \"rootClassName\", \"indicatorsRender\", \"steps\", \"closeIcon\"]);\n const {\n getPrefixCls,\n direction,\n tour\n } = useContext(ConfigContext);\n const prefixCls = getPrefixCls('tour', customizePrefixCls);\n const [wrapCSSVar, hashId, cssVarCls] = useStyle(prefixCls);\n const [, token] = useToken();\n const mergedSteps = React.useMemo(() => steps === null || steps === void 0 ? void 0 : steps.map(step => {\n var _a;\n return Object.assign(Object.assign({}, step), {\n className: classNames(step.className, {\n [`${prefixCls}-primary`]: ((_a = step.type) !== null && _a !== void 0 ? _a : type) === 'primary'\n })\n });\n }), [steps, type]);\n const builtinPlacements = config => {\n var _a;\n return getPlacements({\n arrowPointAtCenter: (_a = config === null || config === void 0 ? void 0 : config.arrowPointAtCenter) !== null && _a !== void 0 ? _a : true,\n autoAdjustOverflow: true,\n offset: token.marginXXS,\n arrowWidth: token.sizePopupArrow,\n borderRadius: token.borderRadius\n });\n };\n const customClassName = classNames({\n [`${prefixCls}-rtl`]: direction === 'rtl'\n }, hashId, cssVarCls, rootClassName);\n const mergedRenderPanel = (stepProps, stepCurrent) => ( /*#__PURE__*/React.createElement(TourPanel, {\n type: type,\n stepProps: stepProps,\n current: stepCurrent,\n indicatorsRender: indicatorsRender\n }));\n // ============================ zIndex ============================\n const [zIndex, contextZIndex] = useZIndex('Tour', restProps.zIndex);\n return wrapCSSVar( /*#__PURE__*/React.createElement(zIndexContext.Provider, {\n value: contextZIndex\n }, /*#__PURE__*/React.createElement(RCTour, Object.assign({}, restProps, {\n closeIcon: closeIcon !== null && closeIcon !== void 0 ? closeIcon : tour === null || tour === void 0 ? void 0 : tour.closeIcon,\n zIndex: zIndex,\n rootClassName: customClassName,\n prefixCls: prefixCls,\n animated: true,\n renderPanel: mergedRenderPanel,\n builtinPlacements: builtinPlacements,\n steps: mergedSteps\n }))));\n};\nif (process.env.NODE_ENV !== 'production') {\n Tour.displayName = 'Tour';\n}\nTour._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;\nexport default Tour;","map":{"version":3,"names":["__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","React","useContext","RCTour","classNames","useZIndex","getPlacements","zIndexContext","ConfigContext","useToken","TourPanel","PurePanel","useStyle","Tour","props","prefixCls","customizePrefixCls","type","rootClassName","indicatorsRender","steps","closeIcon","restProps","getPrefixCls","direction","tour","wrapCSSVar","hashId","cssVarCls","token","mergedSteps","useMemo","map","step","_a","assign","className","builtinPlacements","config","arrowPointAtCenter","autoAdjustOverflow","offset","marginXXS","arrowWidth","sizePopupArrow","borderRadius","customClassName","mergedRenderPanel","stepProps","stepCurrent","createElement","current","zIndex","contextZIndex","Provider","value","animated","renderPanel","process","env","NODE_ENV","displayName","_InternalPanelDoNotUseOrYouWillBeFired"],"sources":["C:/Users/Аришина)/source/repos/PromoCursed/node_modules/antd/es/tour/index.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 React, { useContext } from 'react';\nimport RCTour from '@rc-component/tour';\nimport classNames from 'classnames';\nimport { useZIndex } from '../_util/hooks/useZIndex';\nimport getPlacements from '../_util/placements';\nimport zIndexContext from '../_util/zindexContext';\nimport { ConfigContext } from '../config-provider';\nimport { useToken } from '../theme/internal';\nimport TourPanel from './panelRender';\nimport PurePanel from './PurePanel';\nimport useStyle from './style';\nconst Tour = props => {\n const {\n prefixCls: customizePrefixCls,\n type,\n rootClassName,\n indicatorsRender,\n steps,\n closeIcon\n } = props,\n restProps = __rest(props, [\"prefixCls\", \"type\", \"rootClassName\", \"indicatorsRender\", \"steps\", \"closeIcon\"]);\n const {\n getPrefixCls,\n direction,\n tour\n } = useContext(ConfigContext);\n const prefixCls = getPrefixCls('tour', customizePrefixCls);\n const [wrapCSSVar, hashId, cssVarCls] = useStyle(prefixCls);\n const [, token] = useToken();\n const mergedSteps = React.useMemo(() => steps === null || steps === void 0 ? void 0 : steps.map(step => {\n var _a;\n return Object.assign(Object.assign({}, step), {\n className: classNames(step.className, {\n [`${prefixCls}-primary`]: ((_a = step.type) !== null && _a !== void 0 ? _a : type) === 'primary'\n })\n });\n }), [steps, type]);\n const builtinPlacements = config => {\n var _a;\n return getPlacements({\n arrowPointAtCenter: (_a = config === null || config === void 0 ? void 0 : config.arrowPointAtCenter) !== null && _a !== void 0 ? _a : true,\n autoAdjustOverflow: true,\n offset: token.marginXXS,\n arrowWidth: token.sizePopupArrow,\n borderRadius: token.borderRadius\n });\n };\n const customClassName = classNames({\n [`${prefixCls}-rtl`]: direction === 'rtl'\n }, hashId, cssVarCls, rootClassName);\n const mergedRenderPanel = (stepProps, stepCurrent) => ( /*#__PURE__*/React.createElement(TourPanel, {\n type: type,\n stepProps: stepProps,\n current: stepCurrent,\n indicatorsRender: indicatorsRender\n }));\n // ============================ zIndex ============================\n const [zIndex, contextZIndex] = useZIndex('Tour', restProps.zIndex);\n return wrapCSSVar( /*#__PURE__*/React.createElement(zIndexContext.Provider, {\n value: contextZIndex\n }, /*#__PURE__*/React.createElement(RCTour, Object.assign({}, restProps, {\n closeIcon: closeIcon !== null && closeIcon !== void 0 ? closeIcon : tour === null || tour === void 0 ? void 0 : tour.closeIcon,\n zIndex: zIndex,\n rootClassName: customClassName,\n prefixCls: prefixCls,\n animated: true,\n renderPanel: mergedRenderPanel,\n builtinPlacements: builtinPlacements,\n steps: mergedSteps\n }))));\n};\nif (process.env.NODE_ENV !== 'production') {\n Tour.displayName = 'Tour';\n}\nTour._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;\nexport default Tour;"],"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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