{"version":3,"file":"popconfirm.mjs","sources":["../../../../../packages/components/popconfirm/src/popconfirm.ts"],"sourcesContent":["import type { ButtonType } from '@element-ultra/components/button'\nimport { QuestionFilled } from 'icon-ultra'\nimport { useTooltipContentProps } from '@element-ultra/components/tooltip'\nimport type { Component, ExtractPropTypes, PropType } from 'vue'\n\nexport const popconfirmProps = {\n  title: {\n    type: String\n  },\n  content: {\n    type: String\n  },\n  confirmButtonText: {\n    type: String,\n    default: '确定'\n  },\n  cancelButtonText: {\n    type: String,\n    default: '取消'\n  },\n  confirmButtonType: {\n    type: String as PropType<ButtonType>,\n    default: 'primary'\n  },\n  cancelButtonType: {\n    type: String as PropType<ButtonType>\n  },\n  icon: {\n    type: [String, Function, Object] as PropType<string | Component>,\n    default: QuestionFilled as Component\n  },\n  iconColor: {\n    type: String,\n    default: '#f90'\n  },\n  hideIcon: {\n    type: Boolean,\n    default: false\n  },\n  hideAfter: {\n    type: Number,\n    default: 200\n  },\n  onConfirm: {\n    type: Function as PropType<(e: Event) => Promise<void> | void>\n  },\n  onCancel: {\n    type: Function as PropType<(e: Event) => Promise<void> | void>\n  },\n  teleported: useTooltipContentProps.teleported,\n  persistent: useTooltipContentProps.persistent\n} as const\n\nexport type PopconfirmProps = ExtractPropTypes<typeof popconfirmProps>\n"],"names":[],"mappings":";;;;AAKO,MAAM,eAAkB,GAAA;AAAA,EAC7B,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,GACR;AAAA,EACA,OAAS,EAAA;AAAA,IACP,IAAM,EAAA,MAAA;AAAA,GACR;AAAA,EACA,iBAAmB,EAAA;AAAA,IACjB,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,cAAA;AAAA,GACX;AAAA,EACA,gBAAkB,EAAA;AAAA,IAChB,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,cAAA;AAAA,GACX;AAAA,EACA,iBAAmB,EAAA;AAAA,IACjB,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,SAAA;AAAA,GACX;AAAA,EACA,gBAAkB,EAAA;AAAA,IAChB,IAAM,EAAA,MAAA;AAAA,GACR;AAAA,EACA,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,CAAC,MAAQ,EAAA,QAAA,EAAU,MAAM,CAAA;AAAA,IAC/B,OAAS,EAAA,cAAA;AAAA,GACX;AAAA,EACA,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,MAAA;AAAA,GACX;AAAA,EACA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AAAA,EACA,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,GAAA;AAAA,GACX;AAAA,EACA,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,QAAA;AAAA,GACR;AAAA,EACA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,QAAA;AAAA,GACR;AAAA,EACA,YAAY,sBAAuB,CAAA,UAAA;AAAA,EACnC,YAAY,sBAAuB,CAAA,UAAA;AACrC;;;;"}