{"ast":null,"code":"import { useEffect } from 'react';\nimport { devUseWarning } from '../../_util/warning';\nconst names = {};\nexport default function useFormWarning(_ref) {\n let {\n name\n } = _ref;\n const warning = devUseWarning('Form');\n useEffect(() => {\n if (name) {\n names[name] = (names[name] || 0) + 1;\n process.env.NODE_ENV !== \"production\" ? warning(names[name] <= 1, 'usage', 'There exist multiple Form with same `name`.') : void 0;\n return () => {\n names[name] -= 1;\n };\n }\n }, [name]);\n}","map":{"version":3,"names":["useEffect","devUseWarning","names","useFormWarning","_ref","name","warning","process","env","NODE_ENV"],"sources":["C:/Users/Аришина)/source/repos/PromoCursed/node_modules/antd/es/form/hooks/useFormWarning.js"],"sourcesContent":["import { useEffect } from 'react';\nimport { devUseWarning } from '../../_util/warning';\nconst names = {};\nexport default function useFormWarning(_ref) {\n let {\n name\n } = _ref;\n const warning = devUseWarning('Form');\n useEffect(() => {\n if (name) {\n names[name] = (names[name] || 0) + 1;\n process.env.NODE_ENV !== \"production\" ? warning(names[name] <= 1, 'usage', 'There exist multiple Form with same `name`.') : void 0;\n return () => {\n names[name] -= 1;\n };\n }\n }, [name]);\n}"],"mappings":"AAAA,SAASA,SAAS,QAAQ,OAAO;AACjC,SAASC,aAAa,QAAQ,qBAAqB;AACnD,MAAMC,KAAK,GAAG,CAAC,CAAC;AAChB,eAAe,SAASC,cAAcA,CAACC,IAAI,EAAE;EAC3C,IAAI;IACFC;EACF,CAAC,GAAGD,IAAI;EACR,MAAME,OAAO,GAAGL,aAAa,CAAC,MAAM,CAAC;EACrCD,SAAS,CAAC,MAAM;IACd,IAAIK,IAAI,EAAE;MACRH,KAAK,CAACG,IAAI,CAAC,GAAG,CAACH,KAAK,CAACG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;MACpCE,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,GAAGH,OAAO,CAACJ,KAAK,CAACG,IAAI,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,6CAA6C,CAAC,GAAG,KAAK,CAAC;MAClI,OAAO,MAAM;QACXH,KAAK,CAACG,IAAI,CAAC,IAAI,CAAC;MAClB,CAAC;IACH;EACF,CAAC,EAAE,CAACA,IAAI,CAAC,CAAC;AACZ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}