{"ast":null,"code":"\"use client\";\n\nimport confirm, { modalGlobalConfig, withConfirm, withError, withInfo, withSuccess, withWarn } from './confirm';\nimport destroyFns from './destroyFns';\nimport OriginModal from './Modal';\nimport PurePanel from './PurePanel';\nimport useModal from './useModal';\nfunction modalWarn(props) {\n return confirm(withWarn(props));\n}\nconst Modal = OriginModal;\nModal.useModal = useModal;\nModal.info = function infoFn(props) {\n return confirm(withInfo(props));\n};\nModal.success = function successFn(props) {\n return confirm(withSuccess(props));\n};\nModal.error = function errorFn(props) {\n return confirm(withError(props));\n};\nModal.warning = modalWarn;\nModal.warn = modalWarn;\nModal.confirm = function confirmFn(props) {\n return confirm(withConfirm(props));\n};\nModal.destroyAll = function destroyAllFn() {\n while (destroyFns.length) {\n const close = destroyFns.pop();\n if (close) {\n close();\n }\n }\n};\nModal.config = modalGlobalConfig;\nModal._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;\nif (process.env.NODE_ENV !== 'production') {\n Modal.displayName = 'Modal';\n}\nexport default Modal;","map":{"version":3,"names":["confirm","modalGlobalConfig","withConfirm","withError","withInfo","withSuccess","withWarn","destroyFns","OriginModal","PurePanel","useModal","modalWarn","props","Modal","info","infoFn","success","successFn","error","errorFn","warning","warn","confirmFn","destroyAll","destroyAllFn","length","close","pop","config","_InternalPanelDoNotUseOrYouWillBeFired","process","env","NODE_ENV","displayName"],"sources":["C:/Users/Аришина)/Desktop/promo/node_modules/antd/es/modal/index.js"],"sourcesContent":["\"use client\";\n\nimport confirm, { modalGlobalConfig, withConfirm, withError, withInfo, withSuccess, withWarn } from './confirm';\nimport destroyFns from './destroyFns';\nimport OriginModal from './Modal';\nimport PurePanel from './PurePanel';\nimport useModal from './useModal';\nfunction modalWarn(props) {\n return confirm(withWarn(props));\n}\nconst Modal = OriginModal;\nModal.useModal = useModal;\nModal.info = function infoFn(props) {\n return confirm(withInfo(props));\n};\nModal.success = function successFn(props) {\n return confirm(withSuccess(props));\n};\nModal.error = function errorFn(props) {\n return confirm(withError(props));\n};\nModal.warning = modalWarn;\nModal.warn = modalWarn;\nModal.confirm = function confirmFn(props) {\n return confirm(withConfirm(props));\n};\nModal.destroyAll = function destroyAllFn() {\n while (destroyFns.length) {\n const close = destroyFns.pop();\n if (close) {\n close();\n }\n }\n};\nModal.config = modalGlobalConfig;\nModal._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;\nif (process.env.NODE_ENV !== 'production') {\n Modal.displayName = 'Modal';\n}\nexport default Modal;"],"mappings":"AAAA,YAAY;;AAEZ,OAAOA,OAAO,IAAIC,iBAAiB,EAAEC,WAAW,EAAEC,SAAS,EAAEC,QAAQ,EAAEC,WAAW,EAAEC,QAAQ,QAAQ,WAAW;AAC/G,OAAOC,UAAU,MAAM,cAAc;AACrC,OAAOC,WAAW,MAAM,SAAS;AACjC,OAAOC,SAAS,MAAM,aAAa;AACnC,OAAOC,QAAQ,MAAM,YAAY;AACjC,SAASC,SAASA,CAACC,KAAK,EAAE;EACxB,OAAOZ,OAAO,CAACM,QAAQ,CAACM,KAAK,CAAC,CAAC;AACjC;AACA,MAAMC,KAAK,GAAGL,WAAW;AACzBK,KAAK,CAACH,QAAQ,GAAGA,QAAQ;AACzBG,KAAK,CAACC,IAAI,GAAG,SAASC,MAAMA,CAACH,KAAK,EAAE;EAClC,OAAOZ,OAAO,CAACI,QAAQ,CAACQ,KAAK,CAAC,CAAC;AACjC,CAAC;AACDC,KAAK,CAACG,OAAO,GAAG,SAASC,SAASA,CAACL,KAAK,EAAE;EACxC,OAAOZ,OAAO,CAACK,WAAW,CAACO,KAAK,CAAC,CAAC;AACpC,CAAC;AACDC,KAAK,CAACK,KAAK,GAAG,SAASC,OAAOA,CAACP,KAAK,EAAE;EACpC,OAAOZ,OAAO,CAACG,SAAS,CAACS,KAAK,CAAC,CAAC;AAClC,CAAC;AACDC,KAAK,CAACO,OAAO,GAAGT,SAAS;AACzBE,KAAK,CAACQ,IAAI,GAAGV,SAAS;AACtBE,KAAK,CAACb,OAAO,GAAG,SAAS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