{"version":3,"file":"lottie.mjs","sources":["../../../../../../../packages/components/lottie/src/lottie.ts"],"sourcesContent":["import { buildProps } from '@xzx-design/utils'\nimport type { ExtractPropTypes } from 'vue-demi' // test vue-demi\nimport type Lottie from './lottie.vue'\n\nexport const lottieProps = buildProps({\n  progress: {\n    type: [Number, String],\n    default: undefined,\n  },\n  width: {\n    type: [String, Number],\n    default: 200,\n  },\n  height: {\n    type: [String, Number],\n    default: 200,\n  },\n  data: {\n    type: JSON || Object,\n    default: () => ({}),\n  },\n  loop: {\n    type: Boolean,\n    default: false,\n  },\n  autoplay: {\n    type: Boolean,\n    default: true,\n  },\n  renderer: {\n    type: String,\n    values: ['svg', 'canvas', 'html'],\n    default: 'svg',\n  },\n})\n\nexport const lottieEmits = {\n  'update:progress': Number,\n}\n\nexport type LottieProps = ExtractPropTypes<typeof lottieProps>\nexport type LottieInstance = InstanceType<typeof Lottie>\nexport type LottieEmits = typeof lottieEmits\n"],"names":[],"mappings":";;;AAIO,MAAM,cAAc,UAAW,CAAA;AAAA,EACpC,QAAU,EAAA;AAAA,IACR,IAAA,EAAM,CAAC,MAAA,EAAQ,MAAM,CAAA;AAAA,IACrB,OAAS,EAAA,KAAA,CAAA;AAAA,GACX;AAAA,EACA,KAAO,EAAA;AAAA,IACL,IAAA,EAAM,CAAC,MAAA,EAAQ,MAAM,CAAA;AAAA,IACrB,OAAS,EAAA,GAAA;AAAA,GACX;AAAA,EACA,MAAQ,EAAA;AAAA,IACN,IAAA,EAAM,CAAC,MAAA,EAAQ,MAAM,CAAA;AAAA,IACrB,OAAS,EAAA,GAAA;AAAA,GACX;AAAA,EACA,IAAM,EAAA;AAAA,IACJ,MAAM,IAAQ,IAAA,MAAA;AAAA,IACd,OAAA,EAAS,OAAO,EAAC,CAAA;AAAA,GACnB;AAAA,EACA,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AAAA,EACA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA,EACA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,MAAA;AAAA,IACN,MAAQ,EAAA,CAAC,KAAO,EAAA,QAAA,EAAU,MAAM,CAAA;AAAA,IAChC,OAAS,EAAA,KAAA;AAAA,GACX;AACF,CAAC,EAAA;AAEM,MAAM,WAAc,GAAA;AAAA,EACzB,iBAAmB,EAAA,MAAA;AACrB;;;;"}