{"version":3,"file":"drawer-v2.mjs","sources":["../../../../../../packages/components/drawer-v2/src/drawer-v2.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\n\nimport type {\n  CancelProps,\n  SureProps,\n  TriggerProps,\n} from '@element-plus/components/dialog-v2/src/dialog-v2'\n\nexport const drawerV2Props = buildProps({\n  title: {\n    type: String,\n  },\n  triggerProps: {\n    type: definePropType<TriggerProps>(Object),\n  },\n  cancelProps: {\n    type: definePropType<CancelProps>(Object),\n  },\n  sureProps: {\n    type: definePropType<SureProps>(Object),\n  },\n  onCancel: {\n    type: definePropType<({ close }: { close: () => void }) => void>(Function),\n  },\n  onSure: {\n    type: definePropType<\n      ({ close }: { close: () => void }) => void | Promise<any>\n    >(Function),\n  },\n} as const)\nexport type DrawerV2Props = ExtractPropTypes<typeof drawerV2Props>\n\nexport const drawerV2Emits = {}\nexport type DrawerV2Emits = typeof drawerV2Emits\n"],"names":[],"mappings":";;AASO,MAAM,gBAAgB,UAAW,CAAA;AAAA,EACtC,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,GACR;AAAA,EACA,YAAc,EAAA;AAAA,IACZ,IAAA,EAAM,eAA6B,MAAM,CAAA;AAAA,GAC3C;AAAA,EACA,WAAa,EAAA;AAAA,IACX,IAAA,EAAM,eAA4B,MAAM,CAAA;AAAA,GAC1C;AAAA,EACA,SAAW,EAAA;AAAA,IACT,IAAA,EAAM,eAA0B,MAAM,CAAA;AAAA,GACxC;AAAA,EACA,QAAU,EAAA;AAAA,IACR,IAAA,EAAM,eAA2D,QAAQ,CAAA;AAAA,GAC3E;AAAA,EACA,MAAQ,EAAA;AAAA,IACN,IAAA,EAAM,eAEJ,QAAQ,CAAA;AAAA,GACZ;AACF,CAAU,EAAA;AAGH,MAAM,gBAAgB;;;;"}