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

1 line
4.7 KiB
JSON

{"ast":null,"code":"\"use client\";\n\nimport React from 'react';\nimport { ReloadOutlined } from '@ant-design/icons';\nimport Button from '../button';\nimport Spin from '../spin';\nconst defaultSpin = /*#__PURE__*/React.createElement(Spin, null);\nexport default function QRcodeStatus(_ref) {\n let {\n prefixCls,\n locale,\n onRefresh,\n statusRender,\n status\n } = _ref;\n const defaultExpiredNode = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"p\", {\n className: `${prefixCls}-expired`\n }, locale === null || locale === void 0 ? void 0 : locale.expired), onRefresh && ( /*#__PURE__*/React.createElement(Button, {\n type: \"link\",\n icon: /*#__PURE__*/React.createElement(ReloadOutlined, null),\n onClick: onRefresh\n }, locale === null || locale === void 0 ? void 0 : locale.refresh)));\n const defaultScannedNode = /*#__PURE__*/React.createElement(\"p\", {\n className: `${prefixCls}-scanned`\n }, locale === null || locale === void 0 ? void 0 : locale.scanned);\n const defaultNodes = {\n expired: defaultExpiredNode,\n loading: defaultSpin,\n scanned: defaultScannedNode\n };\n const defaultStatusRender = info => defaultNodes[info.status];\n const mergedStatusRender = statusRender !== null && statusRender !== void 0 ? statusRender : defaultStatusRender;\n return mergedStatusRender({\n status,\n locale\n });\n}","map":{"version":3,"names":["React","ReloadOutlined","Button","Spin","defaultSpin","createElement","QRcodeStatus","_ref","prefixCls","locale","onRefresh","statusRender","status","defaultExpiredNode","Fragment","className","expired","type","icon","onClick","refresh","defaultScannedNode","scanned","defaultNodes","loading","defaultStatusRender","info","mergedStatusRender"],"sources":["C:/Users/Аришина)/source/repos/PromoCursed/node_modules/antd/es/qr-code/QrcodeStatus.js"],"sourcesContent":["\"use client\";\n\nimport React from 'react';\nimport { ReloadOutlined } from '@ant-design/icons';\nimport Button from '../button';\nimport Spin from '../spin';\nconst defaultSpin = /*#__PURE__*/React.createElement(Spin, null);\nexport default function QRcodeStatus(_ref) {\n let {\n prefixCls,\n locale,\n onRefresh,\n statusRender,\n status\n } = _ref;\n const defaultExpiredNode = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"p\", {\n className: `${prefixCls}-expired`\n }, locale === null || locale === void 0 ? void 0 : locale.expired), onRefresh && ( /*#__PURE__*/React.createElement(Button, {\n type: \"link\",\n icon: /*#__PURE__*/React.createElement(ReloadOutlined, null),\n onClick: onRefresh\n }, locale === null || locale === void 0 ? void 0 : locale.refresh)));\n const defaultScannedNode = /*#__PURE__*/React.createElement(\"p\", {\n className: `${prefixCls}-scanned`\n }, locale === null || locale === void 0 ? void 0 : locale.scanned);\n const defaultNodes = {\n expired: defaultExpiredNode,\n loading: defaultSpin,\n scanned: defaultScannedNode\n };\n const defaultStatusRender = info => defaultNodes[info.status];\n const mergedStatusRender = statusRender !== null && statusRender !== void 0 ? statusRender : defaultStatusRender;\n return mergedStatusRender({\n status,\n locale\n });\n}"],"mappings":"AAAA,YAAY;;AAEZ,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,QAAQ,mBAAmB;AAClD,OAAOC,MAAM,MAAM,WAAW;AAC9B,OAAOC,IAAI,MAAM,SAAS;AAC1B,MAAMC,WAAW,GAAG,aAAaJ,KAAK,CAACK,aAAa,CAACF,IAAI,EAAE,IAAI,CAAC;AAChE,eAAe,SAASG,YAAYA,CAACC,IAAI,EAAE;EACzC,IAAI;IACFC,SAAS;IACTC,MAAM;IACNC,SAAS;IACTC,YAAY;IACZC;EACF,CAAC,GAAGL,IAAI;EACR,MAAMM,kBAAkB,GAAG,aAAab,KAAK,CAACK,aAAa,CAACL,KAAK,CAACc,QAAQ,EAAE,IAAI,EAAE,aAAad,KAAK,CAACK,aAAa,CAAC,GAAG,EAAE;IACtHU,SAAS,EAAE,GAAGP,SAAS;EACzB,CAAC,EAAEC,MAAM,KAAK,IAAI,IAAIA,MAAM,KAAK,KAA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