{"version":3,"file":"painting-annotations-DCBL_qBY.d.ts","names":["IIIFExternalWebResource","SpecificResource","InternationalString","AnnotationNormalized","BoxStyle","SelectorTransform","TransformPoint","SingleChoice","Array","ComplexChoice","ChoiceDescription","Paintables","AnnotationNormalized","CanvasNormalized","Paintables","CompatVault","createPaintingAnnotationsHelper","__types0","ChoiceDescription","ChoiceBody","ContentResource","parseSpecificResource"],"sources":["../src/painting-annotations/types.d.ts","../src/painting-annotations/helper.d.ts","../src/painting-annotations/parse-specific-resource.d.ts"],"sourcesContent":["import { IIIFExternalWebResource, SpecificResource } from '@iiif/presentation-3';\nimport { InternationalString } from '@iiif/presentation-3';\nimport { AnnotationNormalized } from '@iiif/presentation-3-normalized';\nimport { BoxStyle, SelectorTransform, TransformPoint } from '../annotation-targets/selector-types';\nexport interface SingleChoice {\n    type: 'single-choice';\n    label?: InternationalString;\n    items: Array<{\n        id: string;\n        label?: InternationalString;\n        selected?: true;\n    }>;\n}\nexport interface ComplexChoice {\n    type: 'complex-choice';\n    items: SingleChoice[];\n}\nexport type ChoiceDescription = SingleChoice | ComplexChoice;\nexport interface Paintables {\n    choice: ChoiceDescription | null;\n    allChoices: ComplexChoice | null;\n    types: string[];\n    items: Array<{\n        type: string;\n        resource: IIIFExternalWebResource | SpecificResource;\n        annotationId: string;\n        annotation: AnnotationNormalized;\n        target: any;\n        selector: any;\n        styleClass?: string;\n        style?: BoxStyle;\n        rotation?: number;\n        rotationOrigin?: TransformPoint;\n        translate?: TransformPoint;\n        transform?: SelectorTransform;\n    }>;\n}\n","import { AnnotationNormalized, CanvasNormalized } from '@iiif/presentation-3-normalized';\nimport { Paintables } from './types';\nimport { CompatVault } from '../compat';\nexport declare function createPaintingAnnotationsHelper(vault?: CompatVault): {\n    getAllPaintingAnnotations: (canvasOrId: string | CanvasNormalized | undefined | null) => AnnotationNormalized[];\n    getPaintables: (paintingAnnotationsOrCanvas: string | CanvasNormalized | AnnotationNormalized[], enabledChoices?: string[]) => Paintables;\n    extractChoices: (paintingAnnotationsOrCanvas: string | CanvasNormalized | AnnotationNormalized[]) => import(\"./types\").ChoiceDescription | null;\n};\n","import { ChoiceBody, ContentResource } from '@iiif/presentation-3';\nexport declare function parseSpecificResource(resource: ContentResource): [ContentResource | ChoiceBody, {\n    selector?: any;\n    styleClass?: string;\n}];\n"],"mappings":";;;;;;UAIiBO,YAAAA;;EAAAA,KAAAA,CAAAA,EAELL,mBAFiB;EAEjBA,KAAAA,EACDM,KADCN,CAAAA;IAGIA,EAAAA,EAAAA,MAAAA;IAFLM,KAAAA,CAAAA,EAEKN,mBAFLM;IAAK,QAAA,CAAA,EAAA,IAAA;EAMCC,CAAAA,CAAAA;AAIjB;AACiBE,UALAF,aAAAA,CAKU;EACfC,IAAAA,EAAAA,gBAAAA;EACID,KAAAA,EALLF,YAKKE,EAAAA;;AAI4BR,KAPhCS,iBAAAA,GAAoBH,YAOYN,GAPGQ,aAOHR;AAExBE,UARHQ,UAAAA,CAQGR;EAIJC,MAAAA,EAXJM,iBAWIN,GAAAA,IAAAA;EAESE,UAAAA,EAZTG,aAYSH,GAAAA,IAAAA;EACLA,KAAAA,EAAAA,MAAAA,EAAAA;EACAD,KAAAA,EAZTG,KAYSH,CAAAA;IAZTG,IAAAA,EAAAA,MAAAA;IAAK,QAAA,EAEER,uBAFF,GAE4BC,gBAF5B;;gBAIIE;;ICvBIa,QAAAA,EAAAA,GAAAA;IAAwCD,UAAAA,CAAAA,EAAAA,MAAAA;IACXF,KAAAA,CAAAA,ED0BrCT,QC1BqCS;IAAwCD,QAAAA,CAAAA,EAAAA,MAAAA;IACnCC,cAAAA,CAAAA,ED2BjCP,cC3BiCO;IAAmBD,SAAAA,CAAAA,ED4BzDN,cC5ByDM;IAAsDE,SAAAA,CAAAA,ED6B/GT,iBC7B+GS;EACxED,CAAAA,CAAAA;;;;iBAHnCG,+BAAAA,SAAwCD;mDACXF,wCAAwCD;wDACnCC,mBAAmBD,sDAAsDE;EDDlHP,cAAAA,EAAY,CAAA,2BAAA,EAAA,MAAA,GCE8BM,gBDF9B,GCEiDD,oBDFjD,EAAA,EAAA,GCEqEK,iBAAAA,GDFrE,IAAA;CAEjBf;;;iBELYmB,qBAAAA,WAAgCD,mBAAmBA,kBAAkBD"}