{"version":3,"sources":["../../../src/admin/fields/Join.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { JoinField, JoinFieldClient } from '../../fields/config/types.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldPaths,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldDiffClientComponent,\n FieldDiffServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype JoinFieldClientWithoutType = MarkOptional\n\ntype JoinFieldBaseClientProps = {\n readonly path: string\n}\n\ntype JoinFieldBaseServerProps = Pick\n\nexport type JoinFieldClientProps = ClientFieldBase &\n JoinFieldBaseClientProps\n\nexport type JoinFieldServerProps = JoinFieldBaseServerProps & ServerFieldBase\n\nexport type JoinFieldServerComponent = FieldServerComponent<\n JoinField,\n JoinFieldClientWithoutType,\n JoinFieldBaseServerProps\n>\n\nexport type JoinFieldClientComponent = FieldClientComponent<\n JoinFieldClientWithoutType,\n JoinFieldBaseClientProps\n>\n\nexport type JoinFieldLabelServerComponent = FieldLabelServerComponent\n\nexport type JoinFieldLabelClientComponent = FieldLabelClientComponent\n\nexport type JoinFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n JoinField,\n JoinFieldClientWithoutType\n>\n\nexport type JoinFieldDescriptionClientComponent =\n FieldDescriptionClientComponent\n\nexport type JoinFieldErrorServerComponent = FieldErrorServerComponent<\n JoinField,\n JoinFieldClientWithoutType\n>\n\nexport type JoinFieldErrorClientComponent = FieldErrorClientComponent\n\nexport type JoinFieldDiffServerComponent = FieldDiffServerComponent\n\nexport type JoinFieldDiffClientComponent = FieldDiffClientComponent\n"],"names":[],"mappings":"AAiEA,WAAoF"}