{"version":3,"file":"interface.cjs","sources":["../../../../../../packages/vue-components/vc-tour/src/interface.ts"],"sourcesContent":["import type { VueNode } from '@antdv/types';\nimport type { CSSProperties, ExtractPropTypes } from 'vue';\nimport type { PlacementType } from './placements';\nimport { functionType, objectType, someType, stringType } from '@antdv/utils';\n\nexport function tourStepInfo() {\n  return {\n    arrow: someType<boolean | { pointAtCenter: boolean }>([Boolean, Object]),\n    target: someType<HTMLElement | (() => HTMLElement) | null | (() => null)>([\n      String,\n      Function,\n      Object,\n    ]),\n    title: someType<string | VueNode>([String, Object]),\n    description: someType<string | VueNode>([String, Object]),\n    placement: stringType<PlacementType>(),\n    mask: someType<boolean | { style?: CSSProperties; color?: string }>([Object, Boolean], true),\n    className: { type: String },\n    style: objectType<CSSProperties>(),\n    scrollIntoViewOptions: someType<boolean | ScrollIntoViewOptions>([Boolean, Object]),\n  };\n}\n\nexport type TourStepInfo = Partial<ExtractPropTypes<ReturnType<typeof tourStepInfo>>>;\n\nexport function tourStepProps() {\n  return {\n    ...tourStepInfo(),\n    prefixCls: { type: String },\n    total: { type: Number },\n    current: { type: Number },\n    onClose: functionType<(e: MouseEvent) => void>(),\n    onFinish: functionType<(e: MouseEvent) => void>(),\n    renderPanel: functionType<(step: any, current: number) => VueNode>(),\n    onPrev: functionType<(e: MouseEvent) => void>(),\n    onNext: functionType<(e: MouseEvent) => void>(),\n  };\n}\n\nexport type TourStepProps = Partial<ExtractPropTypes<ReturnType<typeof tourStepProps>>>;\n"],"names":["someType","stringType","objectType","functionType"],"mappings":";;;;;AAKO,SAAS,YAAe,GAAA;AAC7B,EAAO,OAAA;AAAA,IACL,KAAO,EAAAA,iBAAA,CAA+C,CAAC,OAAA,EAAS,MAAM,CAAC,CAAA;AAAA,IACvE,QAAQA,iBAAkE,CAAA;AAAA,MACxE,MAAA;AAAA,MACA,QAAA;AAAA,MACA,MAAA;AAAA,KACD,CAAA;AAAA,IACD,KAAO,EAAAA,iBAAA,CAA2B,CAAC,MAAA,EAAQ,MAAM,CAAC,CAAA;AAAA,IAClD,WAAa,EAAAA,iBAAA,CAA2B,CAAC,MAAA,EAAQ,MAAM,CAAC,CAAA;AAAA,IACxD,WAAWC,mBAA0B,EAAA;AAAA,IACrC,MAAMD,iBAA8D,CAAA,CAAC,MAAQ,EAAA,OAAO,GAAG,IAAI,CAAA;AAAA,IAC3F,SAAA,EAAW,EAAE,IAAA,EAAM,MAAO,EAAA;AAAA,IAC1B,OAAOE,mBAA0B,EAAA;AAAA,IACjC,qBAAuB,EAAAF,iBAAA,CAA0C,CAAC,OAAA,EAAS,MAAM,CAAC,CAAA;AAAA,GACpF,CAAA;AACF,CAAA;AAIO,SAAS,aAAgB,GAAA;AAC9B,EAAO,OAAA;AAAA,IACL,GAAG,YAAa,EAAA;AAAA,IAChB,SAAA,EAAW,EAAE,IAAA,EAAM,MAAO,EAAA;AAAA,IAC1B,KAAA,EAAO,EAAE,IAAA,EAAM,MAAO,EAAA;AAAA,IACtB,OAAA,EAAS,EAAE,IAAA,EAAM,MAAO,EAAA;AAAA,IACxB,SAASG,qBAAsC,EAAA;AAAA,IAC/C,UAAUA,qBAAsC,EAAA;AAAA,IAChD,aAAaA,qBAAsD,EAAA;AAAA,IACnE,QAAQA,qBAAsC,EAAA;AAAA,IAC9C,QAAQA,qBAAsC,EAAA;AAAA,GAChD,CAAA;AACF;;;;;"}