{"version":3,"file":"props.cjs","sources":["../../../components/anchor/props.ts"],"sourcesContent":["import { booleanProp, buildProps, eventProp, wrapProps } from '@vexip-ui/config'\n\nimport type { ExtractPropTypes, PropType } from 'vue'\nimport type { ConfigurableProps } from '@vexip-ui/config'\nimport type { AnchorLinkOptions, AnchorSlots } from './symbol'\n\nexport const anchorProps = buildProps({\n  active: String,\n  viewer: [String, Object, Function] as PropType<unknown>,\n  offset: Number,\n  marker: booleanProp,\n  scrollDuration: Number,\n  markerTransition: String,\n  options: Array as PropType<AnchorLinkOptions[]>,\n  bindHash: booleanProp,\n  forceActive: booleanProp,\n  slots: Object as PropType<AnchorSlots>,\n  onChange: eventProp<(value: string) => void>(),\n})\n\nexport type AnchorProps = ExtractPropTypes<typeof anchorProps>\nexport type AnchorCProps = ConfigurableProps<AnchorProps, 'viewer'>\n\nexport const anchorLinkProps = wrapProps({\n  to: {\n    type: String,\n    default: '',\n  },\n  title: {\n    type: String,\n    default: '',\n  },\n  children: {\n    type: Array as PropType<AnchorLinkOptions[]>,\n    default: () => [],\n  },\n})\n\nexport type AnchorLinkProps = ExtractPropTypes<typeof anchorLinkProps>\n"],"names":["anchorProps","buildProps","booleanProp","eventProp","anchorLinkProps","wrapProps"],"mappings":"oHAMaA,EAAcC,EAAAA,WAAW,CACpC,OAAQ,OACR,OAAQ,CAAC,OAAQ,OAAQ,QAAQ,EACjC,OAAQ,OACR,OAAQC,EAAA,YACR,eAAgB,OAChB,iBAAkB,OAClB,QAAS,MACT,SAAUA,EAAA,YACV,YAAaA,EAAA,YACb,MAAO,OACP,SAAUC,EAAmC,UAAA,CAC/C,CAAC,EAKYC,EAAkBC,EAAAA,UAAU,CACvC,GAAI,CACF,KAAM,OACN,QAAS,EACX,EACA,MAAO,CACL,KAAM,OACN,QAAS,EACX,EACA,SAAU,CACR,KAAM,MACN,QAAS,IAAM,CAAA,CAAC,CAEpB,CAAC"}