{"ast":null,"code":"import { useContext } from 'react';\nimport { devUseWarning } from '../../_util/warning';\nimport { FormItemInputContext } from '../context';\nconst useFormItemStatus = () => {\n const {\n status,\n errors = [],\n warnings = []\n } = useContext(FormItemInputContext);\n if (process.env.NODE_ENV !== 'production') {\n const warning = devUseWarning('Form.Item');\n process.env.NODE_ENV !== \"production\" ? warning(status !== undefined, 'usage', 'Form.Item.useStatus should be used under Form.Item component. For more information: https://u.ant.design/form-item-usestatus') : void 0;\n }\n return {\n status,\n errors,\n warnings\n };\n};\n// Only used for compatible package. Not promise this will work on future version.\nuseFormItemStatus.Context = FormItemInputContext;\nexport default useFormItemStatus;","map":{"version":3,"names":["useContext","devUseWarning","FormItemInputContext","useFormItemStatus","status","errors","warnings","process","env","NODE_ENV","warning","undefined","Context"],"sources":["C:/Users/Аришина)/Desktop/promo/node_modules/antd/es/form/hooks/useFormItemStatus.js"],"sourcesContent":["import { useContext } from 'react';\nimport { devUseWarning } from '../../_util/warning';\nimport { FormItemInputContext } from '../context';\nconst useFormItemStatus = () => {\n const {\n status,\n errors = [],\n warnings = []\n } = useContext(FormItemInputContext);\n if (process.env.NODE_ENV !== 'production') {\n const warning = devUseWarning('Form.Item');\n process.env.NODE_ENV !== \"production\" ? warning(status !== undefined, 'usage', 'Form.Item.useStatus should be used under Form.Item component. For more information: https://u.ant.design/form-item-usestatus') : void 0;\n }\n return {\n status,\n errors,\n warnings\n };\n};\n// Only used for compatible package. Not promise this will work on future version.\nuseFormItemStatus.Context = FormItemInputContext;\nexport default useFormItemStatus;"],"mappings":"AAAA,SAASA,UAAU,QAAQ,OAAO;AAClC,SAASC,aAAa,QAAQ,qBAAqB;AACnD,SAASC,oBAAoB,QAAQ,YAAY;AACjD,MAAMC,iBAAiB,GAAGA,CAAA,KAAM;EAC9B,MAAM;IACJC,MAAM;IACNC,MAAM,GAAG,EAAE;IACXC,QAAQ,GAAG;EACb,CAAC,GAAGN,UAAU,CAACE,oBAAoB,CAAC;EACpC,IAAIK,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,EAAE;IACzC,MAAMC,OAAO,GAAGT,aAAa,CAAC,WAAW,CAAC;IAC1CM,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,GAAGC,OAAO,CAACN,MAAM,KAAKO,SAAS,EAAE,OAAO,EAAE,8HAA8H,CAAC,GAAG,KAAK,CAAC;EACzN;EACA,OAAO;IACLP,MAAM;IACNC,MAAM;IACNC;EACF,CAAC;AACH,CAAC;AACD;AACAH,iBAAiB,CAACS,OAAO,GAAGV,oBAAoB;AAChD,eAAeC,iBAAiB","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}