{"version":3,"file":"result2.mjs","sources":["../../../../../../../packages/components/result/src/result.ts"],"sourcesContent":["import { buildProps } from '@hd-front-end/utils'\nimport {\n  CircleCheckFilled,\n  CircleCloseFilled,\n  InfoFilled,\n  WarningFilled,\n} from '@element-plus/icons-vue'\n\nimport type { Component, ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\nimport type Result from './result.vue'\n\nexport const IconMap = {\n  primary: 'icon-primary',\n  success: 'icon-success',\n  warning: 'icon-warning',\n  error: 'icon-error',\n  info: 'icon-info',\n} as const\n\nexport const IconComponentMap: Record<\n  typeof IconMap[keyof typeof IconMap],\n  Component\n> = {\n  [IconMap.primary]: InfoFilled,\n  [IconMap.success]: CircleCheckFilled,\n  [IconMap.warning]: WarningFilled,\n  [IconMap.error]: CircleCloseFilled,\n  [IconMap.info]: InfoFilled,\n}\n\nexport const resultProps = buildProps({\n  /**\n   * @description title of result\n   */\n  title: {\n    type: String,\n    default: '',\n  },\n  /**\n   * @description sub title of result\n   */\n  subTitle: {\n    type: String,\n    default: '',\n  },\n  /**\n   * @description icon type of result\n   */\n  icon: {\n    type: String,\n    values: ['primary', 'success', 'warning', 'info', 'error'],\n    default: 'info',\n  },\n} as const)\n\nexport type ResultProps = ExtractPropTypes<typeof resultProps>\nexport type ResultPropsPublic = __ExtractPublicPropTypes<typeof resultProps>\n\nexport type ResultInstance = InstanceType<typeof Result> & unknown\n"],"names":[],"mappings":";;;AAWO,MAAM,OAAU,GAAA;AAAA,EACrB,OAAS,EAAA,cAAA;AAAA,EACT,OAAS,EAAA,cAAA;AAAA,EACT,OAAS,EAAA,cAAA;AAAA,EACT,KAAO,EAAA,YAAA;AAAA,EACP,IAAM,EAAA,WAAA;AACR,EAAA;AAEO,MAAM,gBAGT,GAAA;AAAA,EACF,CAAC,QAAQ,OAAU,GAAA,UAAA;AAAA,EACnB,CAAC,QAAQ,OAAU,GAAA,iBAAA;AAAA,EACnB,CAAC,QAAQ,OAAU,GAAA,aAAA;AAAA,EACnB,CAAC,QAAQ,KAAQ,GAAA,iBAAA;AAAA,EACjB,CAAC,QAAQ,IAAO,GAAA,UAAA;AAClB,EAAA;AAEO,MAAM,cAAc,UAAW,CAAA;AAAA,EAIpC,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA,EAIA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA,EAIA,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,QAAQ,CAAC,SAAA,EAAW,SAAW,EAAA,SAAA,EAAW,QAAQ,OAAO,CAAA;AAAA,IACzD,OAAS,EAAA,MAAA;AAAA,GACX;AACF,CAAU;;;;"}