{"version":3,"file":"index.js","names":["React","WatchCondition","withCondition","Field","CheckForCondition","props","path","_jsx"],"sources":["../../../src/forms/withCondition/index.tsx"],"sourcesContent":["'use client'\nimport type { FieldPaths } from 'payload'\nimport type { MarkOptional } from 'ts-essentials'\n\nimport React from 'react'\n\nimport { WatchCondition } from './WatchCondition.js'\n\nexport const withCondition =

>(\n Field: React.ComponentType

,\n): React.FC

=> {\n const CheckForCondition: React.FC

= (props) => {\n const { path } = props\n\n return (\n \n \n \n )\n }\n\n return CheckForCondition\n}\n"],"mappings":"AAAA;;;AAIA,OAAOA,KAAA,MAAW;AAElB,SAASC,cAAc,QAAQ;AAE/B,OAAO,MAAMC,aAAA,GACXC,KAAA;EAEA,MAAMC,iBAAA,GAAkCC,KAAA;IACtC,MAAM;MAAEC;IAAI,CAAE,GAAGD,KAAA;IAEjB,oBACEE,IAAA,CAACN,cAAA;MAAeK,IAAA,EAAMA,IAAA;gBACpB,aAAAC,IAAA,CAACJ,KAAA;QAAO,GAAGE;;;EAGjB;EAEA,OAAOD,iBAAA;AACT","ignoreList":[]}