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

1 line
3.1 KiB
JSON

{"ast":null,"code":"\"use client\";\n\nimport React, { useContext } from 'react';\nimport ActionButton from '../../_util/ActionButton';\nimport { ModalContext } from '../context';\nconst ConfirmCancelBtn = () => {\n const {\n autoFocusButton,\n cancelButtonProps,\n cancelTextLocale,\n isSilent,\n mergedOkCancel,\n rootPrefixCls,\n close,\n onCancel,\n onConfirm\n } = useContext(ModalContext);\n return mergedOkCancel ? ( /*#__PURE__*/React.createElement(ActionButton, {\n isSilent: isSilent,\n actionFn: onCancel,\n close: function () {\n close === null || close === void 0 ? void 0 : close.apply(void 0, arguments);\n onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm(false);\n },\n autoFocus: autoFocusButton === 'cancel',\n buttonProps: cancelButtonProps,\n prefixCls: `${rootPrefixCls}-btn`\n }, cancelTextLocale)) : null;\n};\nexport default ConfirmCancelBtn;","map":{"version":3,"names":["React","useContext","ActionButton","ModalContext","ConfirmCancelBtn","autoFocusButton","cancelButtonProps","cancelTextLocale","isSilent","mergedOkCancel","rootPrefixCls","close","onCancel","onConfirm","createElement","actionFn","apply","arguments","autoFocus","buttonProps","prefixCls"],"sources":["C:/Users/Аришина)/source/repos/PromoCursed/node_modules/antd/es/modal/components/ConfirmCancelBtn.js"],"sourcesContent":["\"use client\";\n\nimport React, { useContext } from 'react';\nimport ActionButton from '../../_util/ActionButton';\nimport { ModalContext } from '../context';\nconst ConfirmCancelBtn = () => {\n const {\n autoFocusButton,\n cancelButtonProps,\n cancelTextLocale,\n isSilent,\n mergedOkCancel,\n rootPrefixCls,\n close,\n onCancel,\n onConfirm\n } = useContext(ModalContext);\n return mergedOkCancel ? ( /*#__PURE__*/React.createElement(ActionButton, {\n isSilent: isSilent,\n actionFn: onCancel,\n close: function () {\n close === null || close === void 0 ? void 0 : close.apply(void 0, arguments);\n onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm(false);\n },\n autoFocus: autoFocusButton === 'cancel',\n buttonProps: cancelButtonProps,\n prefixCls: `${rootPrefixCls}-btn`\n }, cancelTextLocale)) : null;\n};\nexport default ConfirmCancelBtn;"],"mappings":"AAAA,YAAY;;AAEZ,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,OAAOC,YAAY,MAAM,0BAA0B;AACnD,SAASC,YAAY,QAAQ,YAAY;AACzC,MAAMC,gBAAgB,GAAGA,CAAA,KAAM;EAC7B,MAAM;IACJC,eAAe;IACfC,iBAAiB;IACjBC,gBAAgB;IAChBC,QAAQ;IACRC,cAAc;IACdC,aAAa;IACbC,KAAK;IACLC,QAAQ;IACRC;EACF,CAAC,GAAGZ,UAAU,CAACE,YAAY,CAAC;EAC5B,OAAOM,cAAc,KAAK,aAAaT,KAAK,CAACc,aAAa,CAACZ,YAAY,EAAE;IACvEM,QAAQ,EAAEA,QAAQ;IAClBO,QAAQ,EAAEH,QAAQ;IAClBD,KAAK,EAAE,SAAAA,CAAA,EAAY;MACjBA,KAAK,KAAK,IAAI,IAAIA,KAAK,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,KAAK,CAACK,KAAK,CAAC,KAAK,CAAC,EAAEC,SAAS,CAAC;MAC5EJ,SAAS,KAAK,IAAI,IAAIA,SAAS,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,SAAS,CAAC,KAAK,CAAC;IACxE,CAAC;IACDK,SAAS,EAAEb,eAAe,KAAK,QAAQ;IACvCc,WAAW,EAAEb,iBAAiB;IAC9Bc,SAAS,EAAE,GAAGV,aAAa;EAC7B,CAAC,EAAEH,gBAAgB,CAAC,IAAI,IAAI;AAC9B,CAAC;AACD,eAAeH,gBAAgB","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}