{"version":3,"file":"index.mjs","sources":["../../../../../packages/formily/input/index.ts"],"sourcesContent":["import { connect, mapProps, mapReadPretty } from '@formily/vue'\nimport { ElInput } from 'element-plus'\nimport { composeExport, transformComponent } from '../__builtins__'\nimport { PreviewText } from '../preview-text'\nimport type { InputProps } from 'element-plus'\n\nconst TransformElInput = transformComponent<InputProps>(ElInput, {\n  change: 'update:modelValue',\n})\n\nconst InnerInput = connect(\n  TransformElInput,\n  mapProps({\n    value: 'modelValue',\n    readOnly: 'readonly',\n  }),\n  mapReadPretty(PreviewText.Input)\n)\n\nconst TextArea = connect(\n  InnerInput,\n  mapProps((props) => {\n    return {\n      ...props,\n      type: 'textarea',\n    }\n  }),\n  mapReadPretty(PreviewText.Input)\n)\n\nexport const Input = composeExport(InnerInput, {\n  TextArea,\n})\nexport default Input\n"],"names":[],"mappings":";;;;;;AAMA,MAAM,gBAAA,GAAmB,mBAA+B,OAAS,EAAA;AAAA,EAC/D,MAAQ,EAAA,mBAAA;AACV,CAAC,CAAA,CAAA;AAED,MAAM,UAAa,GAAA,OAAA;AAAA,EACjB,gBAAA;AAAA,EACA,QAAS,CAAA;AAAA,IACP,KAAO,EAAA,YAAA;AAAA,IACP,QAAU,EAAA,UAAA;AAAA,GACX,CAAA;AAAA,EACD,aAAA,CAAc,YAAY,KAAK,CAAA;AACjC,CAAA,CAAA;AAEA,MAAM,QAAW,GAAA,OAAA;AAAA,EACf,UAAA;AAAA,EACA,QAAA,CAAS,CAAC,KAAU,KAAA;AAClB,IAAO,OAAA;AAAA,MACL,GAAG,KAAA;AAAA,MACH,IAAM,EAAA,UAAA;AAAA,KACR,CAAA;AAAA,GACD,CAAA;AAAA,EACD,aAAA,CAAc,YAAY,KAAK,CAAA;AACjC,CAAA,CAAA;AAEa,MAAA,KAAA,GAAQ,cAAc,UAAY,EAAA;AAAA,EAC7C,QAAA;AACF,CAAC;;;;"}