{"version":3,"file":"shared.mjs","sources":["../../../../../../../packages/components/time-picker/src/props/shared.ts"],"sourcesContent":["import { buildProps, definePropType } from '@bigin/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type { Dayjs } from 'dayjs'\n\nexport type GetDisabledHours = (role: string, comparingDate?: Dayjs) => number[]\nexport type GetDisabledMinutes = (\n  hour: number,\n  role: string,\n  comparingDate?: Dayjs\n) => number[]\nexport type GetDisabledSeconds = (\n  hour: number,\n  minute: number,\n  role: string,\n  comparingDate?: Dayjs\n) => number[]\n\nexport const disabledTimeListsProps = buildProps({\n  disabledHours: {\n    type: definePropType<GetDisabledHours>(Function),\n  },\n  disabledMinutes: {\n    type: definePropType<GetDisabledMinutes>(Function),\n  },\n  disabledSeconds: {\n    type: definePropType<GetDisabledSeconds>(Function),\n  },\n} as const)\n\nexport type DisabledTimeListsProps = ExtractPropTypes<\n  typeof disabledTimeListsProps\n>\n\nexport const timePanelSharedProps = buildProps({\n  visible: Boolean,\n  actualVisible: {\n    type: Boolean,\n    default: undefined,\n  },\n  format: {\n    type: String,\n    default: '',\n  },\n} as const)\n\nexport type TimePanelSharedProps = ExtractPropTypes<typeof timePanelSharedProps>\n"],"names":[],"mappings":";;;AAkBO,MAAM,yBAAyB,UAAW,CAAA;AAAA,EAC/C,aAAe,EAAA;AAAA,IACb,IAAA,EAAM,eAAiC,QAAQ,CAAA;AAAA,GACjD;AAAA,EACA,eAAiB,EAAA;AAAA,IACf,IAAA,EAAM,eAAmC,QAAQ,CAAA;AAAA,GACnD;AAAA,EACA,eAAiB,EAAA;AAAA,IACf,IAAA,EAAM,eAAmC,QAAQ,CAAA;AAAA,GACnD;AACF,CAAU,EAAA;AAMH,MAAM,uBAAuB,UAAW,CAAA;AAAA,EAC7C,OAAS,EAAA,OAAA;AAAA,EACT,aAAe,EAAA;AAAA,IACb,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA,CAAA;AAAA,GACX;AAAA,EACA,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AACF,CAAU;;;;"}