{"ast":null,"code":"import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport pickAttrs from \"rc-util/es/pickAttrs\";\nexport default function DefaultPanel(props) {\n var _closable$closeIcon;\n var prefixCls = props.prefixCls,\n current = props.current,\n total = props.total,\n title = props.title,\n description = props.description,\n onClose = props.onClose,\n onPrev = props.onPrev,\n onNext = props.onNext,\n onFinish = props.onFinish,\n className = props.className,\n closable = props.closable;\n var ariaProps = pickAttrs(closable || {}, true);\n var closeIcon = (_closable$closeIcon = closable === null || closable === void 0 ? void 0 : closable.closeIcon) !== null && _closable$closeIcon !== void 0 ? _closable$closeIcon : /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-close-x\")\n }, \"\\xD7\");\n var mergedClosable = !!closable;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: classNames(\"\".concat(prefixCls, \"-content\"), className)\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-inner\")\n }, mergedClosable && /*#__PURE__*/React.createElement(\"button\", _extends({\n type: \"button\",\n onClick: onClose,\n \"aria-label\": \"Close\"\n }, ariaProps, {\n className: \"\".concat(prefixCls, \"-close\")\n }), closeIcon), /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-header\")\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-title\")\n }, title)), /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-description\")\n }, description), /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-footer\")\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-sliders\")\n }, total > 1 ? _toConsumableArray(Array.from({\n length: total\n }).keys()).map(function (item, index) {\n return /*#__PURE__*/React.createElement(\"span\", {\n key: item,\n className: index === current ? 'active' : ''\n });\n }) : null), /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-buttons\")\n }, current !== 0 ? /*#__PURE__*/React.createElement(\"button\", {\n className: \"\".concat(prefixCls, \"-prev-btn\"),\n onClick: onPrev\n }, \"Prev\") : null, current === total - 1 ? /*#__PURE__*/React.createElement(\"button\", {\n className: \"\".concat(prefixCls, \"-finish-btn\"),\n onClick: onFinish\n }, \"Finish\") : /*#__PURE__*/React.createElement(\"button\", {\n className: \"\".concat(prefixCls, \"-next-btn\"),\n onClick: onNext\n }, \"Next\")))));\n}","map":{"version":3,"names":["_toConsumableArray","_extends","React","classNames","pickAttrs","DefaultPanel","props","_closable$closeIcon","prefixCls","current","total","title","description","onClose","onPrev","onNext","onFinish","className","closable","ariaProps","closeIcon","createElement","concat","mergedClosable","type","onClick","Array","from","length","keys","map","item","index","key"],"sources":["C:/Users/Аришина)/Desktop/promo/node_modules/@rc-component/tour/es/TourStep/DefaultPanel.js"],"sourcesContent":["import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport pickAttrs from \"rc-util/es/pickAttrs\";\nexport default function DefaultPanel(props) {\n var _closable$closeIcon;\n var prefixCls = props.prefixCls,\n current = props.current,\n total = props.total,\n title = props.title,\n description = props.description,\n onClose = props.onClose,\n onPrev = props.onPrev,\n onNext = props.onNext,\n onFinish = props.onFinish,\n className = props.className,\n closable = props.closable;\n var ariaProps = pickAttrs(closable || {}, true);\n var closeIcon = (_closable$closeIcon = closable === null || closable === void 0 ? void 0 : closable.closeIcon) !== null && _closable$closeIcon !== void 0 ? _closable$closeIcon : /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-close-x\")\n }, \"\\xD7\");\n var mergedClosable = !!closable;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: classNames(\"\".concat(prefixCls, \"-content\"), className)\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-inner\")\n }, mergedClosable && /*#__PURE__*/React.createElement(\"button\", _extends({\n type: \"button\",\n onClick: onClose,\n \"aria-label\": \"Close\"\n }, ariaProps, {\n className: \"\".concat(prefixCls, \"-close\")\n }), closeIcon), /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-header\")\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-title\")\n }, title)), /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-description\")\n }, description), /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-footer\")\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-sliders\")\n }, total > 1 ? _toConsumableArray(Array.from({\n length: total\n }).keys()).map(function (item, index) {\n return /*#__PURE__*/React.createElement(\"span\", {\n key: item,\n className: index === current ? 'active' : ''\n });\n }) : null), /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-buttons\")\n }, current !== 0 ? /*#__PURE__*/React.createElement(\"button\", {\n className: \"\".concat(prefixCls, \"-prev-btn\"),\n onClick: onPrev\n }, \"Prev\") : null, current === total - 1 ? /*#__PURE__*/React.createElement(\"button\", {\n className: \"\".concat(prefixCls, \"-finish-btn\"),\n onClick: onFinish\n }, \"Finish\") : /*#__PURE__*/React.createElement(\"button\", {\n className: \"\".concat(prefixCls, \"-next-btn\"),\n onClick: onNext\n }, \"Next\")))));\n}"],"mappings":"AAAA,OAAOA,kBAAkB,MAAM,8CAA8C;AAC7E,OAAOC,QAAQ,MAAM,oCAAoC;AACzD,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,SAAS,MAAM,sBAAsB;AAC5C,eAAe,SAASC,YAAYA,CAACC,KAAK,EAAE;EAC1C,IAAIC,mBAAmB;EACvB,IAAIC,SAAS,GAAGF,KAAK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