@nulib/clover 4.5.8 → 4.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Transcript/Transcript.mjs +17 -2
- package/dist/web-components/{About-CVX3WjIM.mjs → About-CGMm1-_m.mjs} +1 -1
- package/dist/web-components/{AnnotationItems-DKP8AOB9.mjs → AnnotationItems-D5YRBYo7.mjs} +1 -1
- package/dist/web-components/{AnnotationMenu-DS8hpHt_.mjs → AnnotationMenu-CkTdOVgU.mjs} +1 -1
- package/dist/web-components/{AnnotationState-C6XuLyjK.mjs → AnnotationState-DMgUWawu.mjs} +1 -1
- package/dist/web-components/{Annotations-C6jdThgl.mjs → Annotations-CEshACVg.mjs} +1 -1
- package/dist/web-components/{Annotations-DZ0uCsSA.mjs → Annotations-DZX4QhcQ.mjs} +1 -1
- package/dist/web-components/{Body-BSgaX-3F.mjs → Body-CLEco7_N.mjs} +1 -1
- package/dist/web-components/{BodyAlert-B4aQaIUq.mjs → BodyAlert-BP4r3Cd6.mjs} +1 -1
- package/dist/web-components/{Button-DjjrKoEn.mjs → Button-JqNjqiWi.mjs} +1 -1
- package/dist/web-components/{Camera-BEeXRxzV.mjs → Camera-Ccshr6VH.mjs} +1 -1
- package/dist/web-components/{Canvas2DBackend-nJRJutaS.mjs → Canvas2DBackend-B6073uEb.mjs} +1 -1
- package/dist/web-components/{CanvasView-DK0lfyWR.mjs → CanvasView-BCyHQxwA.mjs} +2 -2
- package/dist/web-components/{CaptionDetails-ljenvCyI.mjs → CaptionDetails-Cg-Qs1Vo.mjs} +1 -1
- package/dist/web-components/{ChaptersMenu-DDgnLAtO.mjs → ChaptersMenu-BlH2m--N.mjs} +1 -1
- package/dist/web-components/{Chevron-JoTeVk7K.mjs → Chevron-h5qzcEcw.mjs} +1 -1
- package/dist/web-components/{ChoiceMenu-82jUcgr6.mjs → ChoiceMenu-DJzv0hit.mjs} +1 -1
- package/dist/web-components/{Collection-JI80uk-a.mjs → Collection-DdgyAL7y.mjs} +1 -1
- package/dist/web-components/{CollectionSelect-CxOlBjmO.mjs → CollectionSelect-CI-gJrdr.mjs} +1 -1
- package/dist/web-components/{Connected-DTYB8ubW.mjs → Connected-Bfk00vQd.mjs} +1 -1
- package/dist/web-components/{Connected-CC10s8oE.mjs → Connected-Dz38Bzpd.mjs} +1 -1
- package/dist/web-components/{Connected-Bur9iAGb.mjs → Connected-XzGCGV5F.mjs} +1 -1
- package/dist/web-components/{Contents-cwsn0zpJ.mjs → Contents-RRatJCsY.mjs} +1 -1
- package/dist/web-components/{ControlMenu-BBBRHutV.mjs → ControlMenu-CbGB6ddJ.mjs} +1 -1
- package/dist/web-components/ControlsFade-BPl7QLD-.mjs +1 -0
- package/dist/web-components/{CountMenu-DFOUdzB0.mjs → CountMenu-sy7-np4i.mjs} +1 -1
- package/dist/web-components/Cue-BtLDY60I.mjs +1 -0
- package/dist/web-components/{Document-CKJYtix1.mjs → Document-CeqDB3XD.mjs} +1 -1
- package/dist/web-components/{DomLayers-vrvJUN5_.mjs → DomLayers-taxnJRum.mjs} +1 -1
- package/dist/web-components/{Download-CQX7fDub.mjs → Download-Car7CU2u.mjs} +1 -1
- package/dist/web-components/{EntryBodies-BvHccb-L.mjs → EntryBodies-BtpwwwYE.mjs} +1 -1
- package/dist/web-components/{EntryThumbnail-YuRsScmh.mjs → EntryThumbnail-BsvULLOE.mjs} +1 -1
- package/dist/web-components/{FieldPill-D8JBm03i.mjs → FieldPill-cf9eBuE6.mjs} +1 -1
- package/dist/web-components/{FrameAnimation-DJRLNImC.mjs → FrameAnimation-HthNp8Wy.mjs} +1 -1
- package/dist/web-components/{Gallery-BH4b0bkJ.mjs → Gallery-QK3ww9Sn.mjs} +1 -1
- package/dist/web-components/{GlobeGlyph-DU4HgIlU.mjs → GlobeGlyph-D3XRo_IQ.mjs} +1 -1
- package/dist/web-components/{HideToggle-C5GjtOeD.mjs → HideToggle-BdulLE7z.mjs} +1 -1
- package/dist/web-components/{ImageControls-D4NriMaR.mjs → ImageControls-CiL_D1jJ.mjs} +1 -1
- package/dist/web-components/{Items-V4WBXxYO.mjs → Items-Ch80infd.mjs} +1 -1
- package/dist/web-components/{Label-AzCladKz.mjs → Label-Bo3CK-L6.mjs} +1 -1
- package/dist/web-components/{LanguageChoice-BjOVXoTc.mjs → LanguageChoice-CPvKeMS_.mjs} +1 -1
- package/dist/web-components/{LanguageMenu-DYKPJWTQ.mjs → LanguageMenu-DEoDIxlR.mjs} +1 -1
- package/dist/web-components/{LightboxView-BTtyMjPN.mjs → LightboxView-D42ogB9b.mjs} +1 -1
- package/dist/web-components/{ListEnd-Dp2ZLTtS.mjs → ListEnd-1VWK96re.mjs} +1 -1
- package/dist/web-components/{Loaded-B_afJf30.mjs → Loaded-1HMGKert.mjs} +1 -1
- package/dist/web-components/{LoadedCanvas-DisvEU6k.mjs → LoadedCanvas-CDXDAq7C.mjs} +1 -1
- package/dist/web-components/LoadedMap-CKE1VBTk.mjs +1 -0
- package/dist/web-components/{Loading-BXzghLiL.mjs → Loading-DJ1DTuTP.mjs} +1 -1
- package/dist/web-components/{Map-Sr8lEkIx.mjs → Map-1SoA6_NY.mjs} +1 -1
- package/dist/web-components/{MapView-Cyuq8ZjK.mjs → MapView-Bh4hjBql.mjs} +2 -2
- package/dist/web-components/{Markup-D_j5vPvk.mjs → Markup-CGp-sAk0.mjs} +1 -1
- package/dist/web-components/{MediaBody-BFkIoL-g.mjs → MediaBody-BCwNSKUW.mjs} +1 -1
- package/dist/web-components/{MediaBody-DRkphCAw.mjs → MediaBody-nPvqRq1E.mjs} +1 -1
- package/dist/web-components/{NavDate-DWIV5F6P.mjs → NavDate-BQjEV2AU.mjs} +1 -1
- package/dist/web-components/{Navigator-R3SCVscB.mjs → Navigator-BVKUD0-V.mjs} +1 -1
- package/dist/web-components/{Pager-D6slnuet.mjs → Pager-Ccdj43ZQ.mjs} +1 -1
- package/dist/web-components/{PagerLayout-B-a-Bj7s.mjs → PagerLayout-DwHzuFi9.mjs} +1 -1
- package/dist/web-components/{Panel-CuGSpuMG.mjs → Panel-xCi9RT4Z.mjs} +1 -1
- package/dist/web-components/PanelPart-BZDTLVZL.mjs +1 -0
- package/dist/web-components/{PanelToggle-DGi2sN1Y.mjs → PanelToggle-CSRKyPCu.mjs} +1 -1
- package/dist/web-components/{PartOfManifest-dHMlHOeZ.mjs → PartOfManifest-VSzd2d_m.mjs} +1 -1
- package/dist/web-components/{Pending-DqTfvy6z.mjs → Pending-Dagi9Hhc.mjs} +1 -1
- package/dist/web-components/{PlaceBox-DW79A9P1.mjs → PlaceBox-C4_JBM6I.mjs} +1 -1
- package/dist/web-components/{Placeholder-D2xzRHzw.mjs → Placeholder-BLHxv7em.mjs} +1 -1
- package/dist/web-components/{Position-CZxedOcV.mjs → Position-SN6EMJW-.mjs} +1 -1
- package/dist/web-components/{Primitives-DjUlp4ln.mjs → Primitives-C2f-ZV1J.mjs} +1 -1
- package/dist/web-components/{Provider-BhDLDrIb.mjs → Provider-DQ5Gz-Bh.mjs} +1 -1
- package/dist/web-components/{ReadMore-l-ljjCbA.mjs → ReadMore-D4zZ4ZJ5.mjs} +1 -1
- package/dist/web-components/{Root-DdfxetNr.mjs → Root-ijCOCdMK.mjs} +1 -1
- package/dist/web-components/Scene-BnuKH1Ht.mjs +1 -0
- package/dist/web-components/{SceneView-C-5ZBOMj.mjs → SceneView-BgjiTjRe.mjs} +1 -1
- package/dist/web-components/{Search-DvSuOWsf.mjs → Search-DGAEkL-h.mjs} +1 -1
- package/dist/web-components/{Sections-WeQ6ifoH.mjs → Sections-CPCPWIFr.mjs} +1 -1
- package/dist/web-components/{SeekMarks-CnV7psCC.mjs → SeekMarks-DemiDpFP.mjs} +1 -1
- package/dist/web-components/{StandaloneItems-BrGYircX.mjs → StandaloneItems-DSTZPmPt.mjs} +1 -1
- package/dist/web-components/{Status-CjAX4ZcY.mjs → Status-BYnM-ITS.mjs} +1 -1
- package/dist/web-components/{Steps-WGighDCr.mjs → Steps-DByLc8pX.mjs} +1 -1
- package/dist/web-components/{TargetItems-CHK11XsC.mjs → TargetItems-BDt6OXh8.mjs} +1 -1
- package/dist/web-components/Timeline-DtE58r-z.mjs +1 -0
- package/dist/web-components/{Tip-MXBlEQhp.mjs → Tip-h4Abk6aH.mjs} +1 -1
- package/dist/web-components/Transcript-CfOhWPdJ.mjs +1 -0
- package/dist/web-components/{Transport-B4jS-QyR.mjs → Transport-B58M-XIa.mjs} +1 -1
- package/dist/web-components/{Transport-DkJkLd_9.mjs → Transport-Xwq6Cpn3.mjs} +1 -1
- package/dist/web-components/{annotation-collection-DgDTaqZJ.mjs → annotation-collection-BH66kiGL.mjs} +1 -1
- package/dist/web-components/{annotation-name-BQPsnye0.mjs → annotation-name-Biu7-abB.mjs} +1 -1
- package/dist/web-components/{annotations-content-C2Ard-Wu.mjs → annotations-content-tLJ5sUiC.mjs} +1 -1
- package/dist/web-components/{body-CsDqGyS1.mjs → body-BIieugrZ.mjs} +1 -1
- package/dist/web-components/{canvas-DYIiw-An.mjs → canvas-Cni09Q09.mjs} +1 -1
- package/dist/web-components/{cloverEngine-BjfUbU7f.mjs → cloverEngine-qypryrZ2.mjs} +1 -1
- package/dist/web-components/{content-state-reader-W2X5SbX2.mjs → content-state-reader-DtRv0vnr.mjs} +1 -1
- package/dist/web-components/{controlGlyphs-DO8zuBuP.mjs → controlGlyphs-QLLc8cpa.mjs} +1 -1
- package/dist/web-components/{controls-B-kceETo.mjs → controls-DuLb0zYy.mjs} +1 -1
- package/dist/web-components/{downloads-b2ula2rS.mjs → downloads-DUWW30ai.mjs} +1 -1
- package/dist/web-components/{dragToClose-CyySNxZo.mjs → dragToClose-DAS5OWSl.mjs} +1 -1
- package/dist/web-components/{engine-BO2NyZbt.mjs → engine-DaDzKDum.mjs} +1 -1
- package/dist/web-components/{engines-ByJdQYM6.mjs → engines-DGQYmjhi.mjs} +1 -1
- package/dist/web-components/{fetchManifest-BJPcndui.mjs → fetchManifest-CDLkWDgP.mjs} +1 -1
- package/dist/web-components/{follow-content-Bta7Cphz.mjs → follow-content-Rav98zXa.mjs} +1 -1
- package/dist/web-components/{fromManifest-toVz2G-X.mjs → fromManifest-B8AlKP6a.mjs} +1 -1
- package/dist/web-components/{glyphs-C9dkvLmy.mjs → glyphs-BzZKC9_8.mjs} +1 -1
- package/dist/web-components/{hooks-C1S0JZNP.mjs → hooks-BGorrvz7.mjs} +1 -1
- package/dist/web-components/{image-layers-hf965hJE.mjs → image-layers-DPZluciF.mjs} +1 -1
- package/dist/web-components/{image-service-content-kG5TIiB7.mjs → image-service-content-BGBge-Nu.mjs} +1 -1
- package/dist/web-components/{imageService-DVoE9khh.mjs → imageService-DygjhKL0.mjs} +1 -1
- package/dist/web-components/{index-BqgqqnqN.mjs → index-GH8QRDv1.mjs} +1 -1
- package/dist/web-components/index.mjs +1 -1
- package/dist/web-components/items-BSsoG42S.mjs +1 -0
- package/dist/web-components/{items-DNfIV4vN.mjs → items-CtOmANs8.mjs} +1 -1
- package/dist/web-components/label-WSQUfpL6.mjs +1 -0
- package/dist/web-components/{layout--P98JuFG.mjs → layout-BmDYodJC.mjs} +1 -1
- package/dist/web-components/{link-p71HL3dn.mjs → link-CQUMZL8-.mjs} +1 -1
- package/dist/web-components/logo-QdGDNl77.mjs +1 -0
- package/dist/web-components/{models-BnyeBKu_.mjs → models-BbiJP5tM.mjs} +1 -1
- package/dist/web-components/{nodes-DZbVJvjk.mjs → nodes-DARyEM2G.mjs} +1 -1
- package/dist/web-components/{overlayImage-D6TfbX70.mjs → overlayImage-F-EX6YpI.mjs} +1 -1
- package/dist/web-components/{panel-COA5_tL_.mjs → panel-COE-wxFK.mjs} +1 -1
- package/dist/web-components/part-CLteOpEJ.mjs +1 -0
- package/dist/web-components/{playerSurface-Uc4JAuxZ.mjs → playerSurface-BAK0g9ik.mjs} +1 -1
- package/dist/web-components/{pointer-BPJduQ1u.mjs → pointer-DnJMax9Y.mjs} +1 -1
- package/dist/web-components/{provider-B4tq-84F.mjs → provider-B9I7nScH.mjs} +1 -1
- package/dist/web-components/{range-regions-92kmJCAy.mjs → range-regions-DEnDbiy7.mjs} +1 -1
- package/dist/web-components/{read-more-BnhdOE8Y.mjs → read-more-DkDjZsOx.mjs} +1 -1
- package/dist/web-components/{readingLanguages-Bf_HW2UJ.mjs → readingLanguages-DZxj1se7.mjs} +1 -1
- package/dist/web-components/{rendererSurface-BZa3x_Xh.mjs → rendererSurface-DKU6SaHP.mjs} +2 -2
- package/dist/web-components/{renderers-CX9SrgrB.mjs → renderers-17347cy8.mjs} +1 -1
- package/dist/web-components/{resource-DF5HkAfv.mjs → resource-CtPBxzcn.mjs} +1 -1
- package/dist/web-components/{save-file-oScSwFhH.mjs → save-file-BF9IHyiG.mjs} +1 -1
- package/dist/web-components/{search-BvpD-NWY.mjs → search-CE2oKdT4.mjs} +1 -1
- package/dist/web-components/{shared-w6hjs-L1.mjs → shared-BzLnvFn3.mjs} +1 -1
- package/dist/web-components/{show-link-DRCdG8ae.mjs → show-link-DuRktUta.mjs} +1 -1
- package/dist/web-components/{sizedImage-BtyysLax.mjs → sizedImage-DAaoYkRy.mjs} +1 -1
- package/dist/web-components/{split-DFthztSD.mjs → split-BP3eTM8x.mjs} +1 -1
- package/dist/web-components/{status-BZuOJ0UE.mjs → status-CpVNchw2.mjs} +1 -1
- package/dist/web-components/{styles-BeCG47FS.mjs → styles-DbqlZvMR.mjs} +1 -1
- package/dist/web-components/three.mjs +1 -1
- package/dist/web-components/{thumbnail-DhVhVkd8.mjs → thumbnail-BcediRH4.mjs} +1 -1
- package/dist/web-components/{tip-ukHtKmqe.mjs → tip-BRNRex1D.mjs} +1 -1
- package/dist/web-components/{toggle-DX4vFKqT.mjs → toggle-hREejXk6.mjs} +1 -1
- package/dist/web-components/{useContainerName-CM_MIZu9.mjs → useContainerName-DeDFbnAs.mjs} +1 -1
- package/dist/web-components/{useControlsVisibility-DZFyrqAJ.mjs → useControlsVisibility-BYHbIHGH.mjs} +1 -1
- package/dist/web-components/{useNearViewport-DHvgWl-0.mjs → useNearViewport-BgvHaTUu.mjs} +1 -1
- package/dist/web-components/{useScrollTrack-B0Nx9ZZ7.mjs → useScrollTrack-B7zWqV5x.mjs} +1 -1
- package/dist/web-components/viewer/{AnnotationItems-CLssRyMA.mjs → AnnotationItems-CDMYXEJY.mjs} +1 -1
- package/dist/web-components/viewer/{AnnotationMenu-i4ieWtOL.mjs → AnnotationMenu-R-IJnoJr.mjs} +1 -1
- package/dist/web-components/viewer/{AnnotationState-BmDac4UI.mjs → AnnotationState-CvRSbJoR.mjs} +1 -1
- package/dist/web-components/viewer/{Annotations-CEwycZ2M.mjs → Annotations-CX2kTFir.mjs} +1 -1
- package/dist/web-components/viewer/{Annotations-C-zxQ4wJ.mjs → Annotations-D-vxlAH-.mjs} +1 -1
- package/dist/web-components/viewer/{Canvas2DBackend-BFb2tuhl.mjs → Canvas2DBackend-CRyXTdaF.mjs} +1 -1
- package/dist/web-components/viewer/{CaptionDetails-Et5z9c7X.mjs → CaptionDetails-CpfNg-6d.mjs} +1 -1
- package/dist/web-components/viewer/{ChaptersMenu-CSFNWKY2.mjs → ChaptersMenu-B84VO_Mr.mjs} +1 -1
- package/dist/web-components/viewer/{ChoiceMenu-Ccv0BI0G.mjs → ChoiceMenu-CDG8LFjh.mjs} +1 -1
- package/dist/web-components/viewer/{Collection-86-r4tY9.mjs → Collection-BE7-wcaT.mjs} +1 -1
- package/dist/web-components/viewer/{Connected-D_7Zs7Hq.mjs → Connected-BgYoWJ9x.mjs} +1 -1
- package/dist/web-components/viewer/{Connected-DbLzPNdX.mjs → Connected-CDglyxHQ.mjs} +1 -1
- package/dist/web-components/viewer/{Contents-DUjhQjnI.mjs → Contents-YlFDgYna.mjs} +1 -1
- package/dist/web-components/viewer/{ControlMenu-CKcTiPrh.mjs → ControlMenu-CwOThPXI.mjs} +1 -1
- package/dist/web-components/viewer/ControlsFade-JiHTC1PR.mjs +1 -0
- package/dist/web-components/viewer/{CountMenu-B1_cvbuR.mjs → CountMenu-Bio1pBA5.mjs} +1 -1
- package/dist/web-components/viewer/{Cue-DzOw4BLm.mjs → Cue-Dtgk1XOR.mjs} +1 -1
- package/dist/web-components/viewer/{Document-BGRVcflJ.mjs → Document-D3QFxaMG.mjs} +1 -1
- package/dist/web-components/viewer/{DomLayers-wxV3sHPY.mjs → DomLayers-DqluSP_z.mjs} +1 -1
- package/dist/web-components/viewer/{Download-Cyfhran6.mjs → Download-COC-nK6_.mjs} +1 -1
- package/dist/web-components/viewer/{EntryBodies-B2WCkj8y.mjs → EntryBodies-UbloKBFE.mjs} +1 -1
- package/dist/web-components/viewer/{EntryThumbnail-dUTxyqTj.mjs → EntryThumbnail-DftAANer.mjs} +1 -1
- package/dist/web-components/viewer/{FieldPill-D8gW-r_p.mjs → FieldPill-D9c-u2aG.mjs} +1 -1
- package/dist/web-components/viewer/{FrameAnimation-ChG6Louz.mjs → FrameAnimation-DljklLUX.mjs} +1 -1
- package/dist/web-components/viewer/{Gallery-OZ5ZiwmB.mjs → Gallery-ByCLq8nD.mjs} +1 -1
- package/dist/web-components/viewer/{GlobeGlyph-CXycpMBJ.mjs → GlobeGlyph-KKxBlsfc.mjs} +1 -1
- package/dist/web-components/viewer/{HideToggle-BMddH3GA.mjs → HideToggle-BNnJlKG3.mjs} +1 -1
- package/dist/web-components/viewer/{ImageControls-Bu_6VlDO.mjs → ImageControls-BCz88aeX.mjs} +1 -1
- package/dist/web-components/viewer/{LanguageChoice-BUTtsHEi.mjs → LanguageChoice-DSERkWEF.mjs} +1 -1
- package/dist/web-components/viewer/{LanguageMenu-DOYyHpdr.mjs → LanguageMenu-Cv7bWG0F.mjs} +1 -1
- package/dist/web-components/viewer/{LightboxView-DP4_ElsL.mjs → LightboxView-ClQSmYRQ.mjs} +1 -1
- package/dist/web-components/viewer/{ListEnd-CEdhO0md.mjs → ListEnd-B6VtWReK.mjs} +1 -1
- package/dist/web-components/viewer/{MapView-qaaRmnM-.mjs → MapView-4SX7XTs-.mjs} +2 -2
- package/dist/web-components/viewer/{MediaBody-Cjl76Spk.mjs → MediaBody-Cshfh_3F.mjs} +1 -1
- package/dist/web-components/viewer/{NavDate-OJND1QQD.mjs → NavDate-l4WnJ7Ph.mjs} +1 -1
- package/dist/web-components/viewer/{Navigator-DRwnm5an.mjs → Navigator-DilJ4hOg.mjs} +1 -1
- package/dist/web-components/viewer/{PagerLayout-DN7ZEktF.mjs → PagerLayout-ZMGl6Hso.mjs} +1 -1
- package/dist/web-components/viewer/PanelPart-BiYn_NxJ.mjs +1 -0
- package/dist/web-components/viewer/{PartOfManifest-3cK5il9_.mjs → PartOfManifest-Ci8XArjU.mjs} +1 -1
- package/dist/web-components/viewer/{PlaceBox-C9qj6wIy.mjs → PlaceBox-DIKp5Qgf.mjs} +1 -1
- package/dist/web-components/viewer/{Placeholder-DmX-oTRS.mjs → Placeholder-BFtTc4a5.mjs} +1 -1
- package/dist/web-components/viewer/{Search-DLRmliHy.mjs → Search-CffzBngs.mjs} +1 -1
- package/dist/web-components/viewer/{SeekMarks-BsAVx2o9.mjs → SeekMarks-BEujwiot.mjs} +1 -1
- package/dist/web-components/viewer/{StandaloneItems-BOXI-FO-.mjs → StandaloneItems-t0PWVVTU.mjs} +1 -1
- package/dist/web-components/viewer/{Steps-Dl85Vj2l.mjs → Steps-MQSxvD8B.mjs} +1 -1
- package/dist/web-components/viewer/{TargetItems-BVT2_Bey.mjs → TargetItems-BdAvyfvp.mjs} +1 -1
- package/dist/web-components/viewer/Transcript-DR4SbDcf.mjs +1 -0
- package/dist/web-components/viewer/{Transport-DKUQM7Hn.mjs → Transport-CWkJ1XOL.mjs} +1 -1
- package/dist/web-components/viewer/{Transport-Bu1B2DCX.mjs → Transport-e9YUnvid.mjs} +1 -1
- package/dist/web-components/viewer/{annotation-collection-B7DNaCRe.mjs → annotation-collection-BmIgw-9-.mjs} +1 -1
- package/dist/web-components/viewer/{annotation-name-DCAh29x5.mjs → annotation-name-BcZahQW_.mjs} +1 -1
- package/dist/web-components/viewer/{annotations-content-BG992gjT.mjs → annotations-content-BsCUZUiG.mjs} +1 -1
- package/dist/web-components/viewer/{cloverEngine-SxAYyRtz.mjs → cloverEngine-Cd4MoqAY.mjs} +1 -1
- package/dist/web-components/viewer/{content-state-reader-CRGjvYpM.mjs → content-state-reader-CZzZVuIS.mjs} +1 -1
- package/dist/web-components/viewer/{dragToClose-Di8WUOHC.mjs → dragToClose-DwFUE5k_.mjs} +1 -1
- package/dist/web-components/viewer/{fetchManifest-B3gCtveO.mjs → fetchManifest--iK6wT8O.mjs} +1 -1
- package/dist/web-components/viewer/{follow-content-2RmNmRMy.mjs → follow-content-CEoIPewi.mjs} +1 -1
- package/dist/web-components/viewer/{host-CM3zmrKp.mjs → host-B9_p4Vyw.mjs} +1 -1
- package/dist/web-components/viewer/{image-layers-CmimeZYQ.mjs → image-layers-TE9lUAo8.mjs} +1 -1
- package/dist/web-components/viewer/{image-service-content-DNYciFvo.mjs → image-service-content-BghMNjSP.mjs} +1 -1
- package/dist/web-components/viewer/index.mjs +1 -1
- package/dist/web-components/viewer/{link-CrW4CND2.mjs → link-BDYoIIG6.mjs} +1 -1
- package/dist/web-components/viewer/{overlayImage-Bgl_ar2I.mjs → overlayImage-B43PyGj2.mjs} +1 -1
- package/dist/web-components/viewer/{range-regions-DwMexshz.mjs → range-regions-BD5RPgtX.mjs} +1 -1
- package/dist/web-components/viewer/{renderers-Cs9Wbr3d.mjs → renderers-BGTNG2ao.mjs} +1 -1
- package/dist/web-components/viewer/{save-file-CpREFWq3.mjs → save-file-B9oonwkE.mjs} +1 -1
- package/dist/web-components/viewer/{search-CI1xScP1.mjs → search-BFTaFcIE.mjs} +1 -1
- package/dist/web-components/viewer/{useControlsVisibility-CCTZH1aT.mjs → useControlsVisibility-CdHbUJ_5.mjs} +1 -1
- package/dist/web-components/viewer/{viewer-BDXZbbZI.mjs → viewer-xpsvi-tg.mjs} +5 -5
- package/dist/web-components/viewer/{vtt-DJjsoNz1.mjs → vtt-CDmiwLtu.mjs} +1 -1
- package/dist/web-components/{viewer-DD2bGSYe.mjs → viewer-PeMy2VzH.mjs} +1 -1
- package/dist/web-components/{vtt-D30pzLou.mjs → vtt-DRrShcvI.mjs} +1 -1
- package/package.json +1 -1
- package/dist/web-components/ControlsFade-DNHDI2WA.mjs +0 -1
- package/dist/web-components/Cue-C2a4Pvi3.mjs +0 -1
- package/dist/web-components/LoadedMap-DCMWMk1e.mjs +0 -1
- package/dist/web-components/PanelPart-C5T9XPgt.mjs +0 -1
- package/dist/web-components/Scene-CoKy2-jQ.mjs +0 -1
- package/dist/web-components/Timeline-CylMxHCg.mjs +0 -1
- package/dist/web-components/Transcript-BdmTrR_U.mjs +0 -1
- package/dist/web-components/items-Di34gCGN.mjs +0 -1
- package/dist/web-components/label-Dt_ns3jW.mjs +0 -1
- package/dist/web-components/logo-QsMwaY8M.mjs +0 -1
- package/dist/web-components/part-DgEyWjer.mjs +0 -1
- package/dist/web-components/viewer/ControlsFade-Bo9VWCLG.mjs +0 -1
- package/dist/web-components/viewer/PanelPart-CF2Fw2b4.mjs +0 -1
- package/dist/web-components/viewer/Transcript-fRjfw6kB.mjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{y as l}from"./shared-BzLnvFn3.mjs";import{u}from"./useControlsVisibility-BYHbIHGH.mjs";function f({element:i,hideDelay:r,picture:s,onChange:o}){const t=u(i,r,s);return l(()=>o(t),[t,o]),null}export{f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m,b as f,d as C,A as b,q as u,u as e,l as k,v as N,P as x,z as y}from"./shared-
|
|
1
|
+
import{a as m,b as f,d as C,A as b,q as u,u as e,l as k,v as N,P as x,z as y}from"./shared-BzLnvFn3.mjs";import"./styles-DbqlZvMR.mjs";const I=y(()=>import("./ControlMenu-CbGB6ddJ.mjs"));function q({position:n,total:o,list:p}){const{t:h,langOf:v}=m(),r=`${f().replace(/:/g,"")}-count`,s=`${r}-menu`,[a,c]=C(false),i=b(null),g=u(()=>{var l;return(l=i.current)==null?void 0:l.closest(".clover-pager")},[]),t=u(l=>{var d;c(false),l&&((d=document.getElementById(r))==null||d.focus())},[r]);return e("span",{className:"clover-pager-count",ref:i,children:[e("button",{type:"button",id:r,className:"clover-pager-count-button","aria-controls":a?s:void 0,"aria-expanded":a,onClick:()=>c(!a),children:[e("span",{className:"clover-pager-position","aria-live":"polite",children:[e("span",{"aria-hidden":n>=0||void 0,children:[n>=0?n+1:"\u2013"," / ",o]}),n>=0&&e("span",{style:N,...k(v("canvasPosition")),children:h("canvasPosition",{index:n+1,total:o})}),e("span",{className:"clover-pager-room","aria-hidden":"true",hidden:true,children:[o," / ",o]})]}),e("svg",{"aria-hidden":"true",focusable:"false",width:"12",height:"12",viewBox:"0 0 12 12",children:e("path",{d:"M3 4.5l3 3 3-3",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),a&&e(x,{fallback:null,children:e(I,{id:s,triggerId:r,onClose:t,holds:g,inside:true,className:"clover-pager-menu",children:e("div",{className:"clover-collection clover-pager-list",children:p(()=>t(true))})})})]})}export{q as C};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as e,am as o}from"./shared-BzLnvFn3.mjs";import{j as i}from"./classnames-DukgfdpI.mjs";import"./styles-DbqlZvMR.mjs";function s({start:m,className:r}){return e("span",{className:i("clover-cue-time",r),children:o(m)})}export{s as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as te,A as S,T as oe,y as F,_ as le,d as G,u as r,b as re,v as ce,k as ie}from"./shared-w6hjs-L1.mjs";import{u as se,a as de,b as J,c as me,B as ue,S as ve,d as Q,e as pe,P as he,f as fe,p as be}from"./viewer-DD2bGSYe.mjs";import{a as ge,d as ne,g as we,h as ye}from"./hooks-C1S0JZNP.mjs";import{B as xe}from"./Body-BSgaX-3F.mjs";import{stillSource as Se,resolveThumbnail as Ee}from"./thumbnail-DhVhVkd8.mjs";import{a as Le}from"./index-BqgqqnqN.mjs";import{t as Te}from"./heading-Cjt0f-Eu.mjs";import{R as Ae}from"./Root-DdfxetNr.mjs";import{Position as ke}from"./Position-CZxedOcV.mjs";import{T as Ne}from"./Tip-MXBlEQhp.mjs";import{L as ze}from"./Label-AzCladKz.mjs";import{Download as De}from"./Download-CQX7fDub.mjs";import{P as Me,L as Pe}from"./Provider-BhDLDrIb.mjs";import{S as qe}from"./Status-CjAX4ZcY.mjs";import{I as Oe}from"./Items-V4WBXxYO.mjs";const Re=1600,Be=200,X=.25,Fe=1500,Y=typeof window>"u"?F:le,ae=n=>{const d=Number(n==null?void 0:n.width),l=Number(n==null?void 0:n.height);return d>0&&l>0?d/l:void 0};function Ie({collapseControls:n,canvasOptions:d,children:l}){const{clover:p}=te("Document"),b=ge(),h=ne(),s=S(null),E=S(null),g=S(null),T=b.direction==="right-to-left"||b.direction==="bottom-to-top",m=oe(()=>b.views.map(e=>{var c;const t=e.map(u=>b.canvases[u]),o=T?[...t].reverse():t,i=o.map(ae);return{key:t.map(u=>u.id).join("|"),first:(c=t[0])==null?void 0:c.id,canvases:o,ratio:i.every(Boolean)?i.reduce((u,I)=>u+I,0):void 0}}),[b,T]),w=Math.max(0,h.position),A=S({sheets:m,position:w});A.current={sheets:m,position:w};const k=S(null),f=S(null),D=S(0),N=S(()=>{}),x=S(false),V=e=>{var t;return(t=E.current)==null?void 0:t.children[e]},z=e=>{const t=s.current,o=V(e);return!t||!o||o===g.current?0:Math.min(o.offsetTop,t.scrollHeight-t.clientHeight)},K=()=>{const e=g.current,t=V(A.current.position);if(e){if(!t||t===e){e.style.top="0px",e.style.height="100%";return}e.style.top=`${t.offsetTop}px`,e.style.height=`${t.offsetHeight}px`}};function U(){const e=s.current;if(!e||e.hasAttribute("data-scrolling")||f.current!==null)return;const t=z(A.current.position);D.current=t,!(Math.abs(e.scrollTop-t)<=1)&&(x.current=true,e.scrollTop=t,requestAnimationFrame(()=>requestAnimationFrame(()=>x.current=false)))}Y(K),F(()=>{const e=new ResizeObserver(()=>{K(),U()});return E.current&&e.observe(E.current),s.current&&e.observe(s.current),()=>e.disconnect()},[]);const a=()=>{N.current();for(const[e,t]of[[s.current,"data-scrolling"],[g.current,"data-moved"]])e&&!e.hasAttribute(t)&&e.setAttribute(t,"")},O=()=>{const e=s.current,t=g.current;if(!e||!t)return;N.current(),D.current=e.scrollTop;const o=()=>{const _=t.querySelector(".clover-canvas");return!_||_.getAttribute("data-status")!=="loading"||_.getAttribute("data-placeholder")==="true"};let i=0;const c=new MutationObserver(()=>o()&&H()),u=setTimeout(()=>H(),Fe),I=()=>{cancelAnimationFrame(i),clearTimeout(u),c.disconnect()},H=()=>{I(),t.removeAttribute("data-moved"),e.removeAttribute("data-scrolling")};N.current=I,i=requestAnimationFrame(()=>{i=requestAnimationFrame(()=>{if(o())return H();c.observe(t,{attributes:true,subtree:true,attributeFilter:["data-status","data-placeholder"]})})})};F(()=>{const e=s.current,t=g.current;if(!e||!t)return;const o=()=>{const c=t.querySelector(".clover-canvas"),u=t.querySelector("video");e.toggleAttribute("data-covered",!!(c&&u&&u.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA&&c.getAttribute("data-media")==="video"&&c.getAttribute("data-placeholder")!=="true"&&!t.hasAttribute("data-moved")))};o();const i=new MutationObserver(o);i.observe(t,{attributes:true,childList:true,subtree:true,attributeFilter:["data-media","data-placeholder","data-moved"]});for(const c of["loadeddata","emptied"])t.addEventListener(c,o,true);return()=>{i.disconnect();for(const c of["loadeddata","emptied"])t.removeEventListener(c,o,true)}},[]);const M=(e,t=false)=>{var u;const o=s.current;if(!o)return;const i=z(e);if(Math.abs(o.scrollTop-i)<=1)return O();a(),f.current=e;const c=t||((u=window.matchMedia)==null?void 0:u.call(window,"(prefers-reduced-motion: reduce)").matches);o.scrollTo({top:i,behavior:c?"auto":"smooth"})},L=S(null);Y(()=>{const e=L.current!==m;if(L.current=m,B(false),k.current===w&&!e){k.current=null;return}k.current=null,M(w,e)},[w,m]),F(()=>{const e=s.current;if(!e)return;let t=0,o,i=false;const c=v=>{const P=A.current.sheets.length;if(P<2)return 0;let y=0;for(let W=0;W<P&&z(W)<=v+.5;W++)y=W;if(y>=P-1)return P-1;const C=z(y),q=(v-C)/Math.max(1,z(y+1)-C);return v>=D.current?q>X?y+1:y:q<1-X?y:y+1},u=()=>{if(t=0,f.current!==null)return;const v=c(e.scrollTop),{sheets:P,position:y}=A.current;v===y||!P[v]||(a(),B(false),k.current=v,p.goTo(P[v].first))},I=()=>{if(i)return;const{sheets:v,position:P}=A.current,y=e.scrollTop,C=f.current;f.current=null;const q=C!==null&&Math.abs(y-z(C))<=1?C:c(y);if(!v[q])return O();q!==P&&(a(),B(false),k.current=q,p.goTo(v[q].first)),M(q)},H=()=>{clearTimeout(o),o=setTimeout(I,Be)},_=()=>{x.current||(a(),H(),t||(t=requestAnimationFrame(u)))},$=v=>{f.current=null,(v.type==="touchstart"||v.type==="pointerdown"&&v.target===e)&&(i=true)},j=()=>{i&&(i=false,H())};return e.addEventListener("scroll",_,{passive:true}),e.addEventListener("wheel",$,{passive:true}),e.addEventListener("touchstart",$,{passive:true}),e.addEventListener("pointerdown",$),window.addEventListener("touchend",j),window.addEventListener("touchcancel",j),window.addEventListener("pointerup",j),()=>{cancelAnimationFrame(t),clearTimeout(o),N.current(),e.removeEventListener("scroll",_),e.removeEventListener("wheel",$),e.removeEventListener("touchstart",$),e.removeEventListener("pointerdown",$),window.removeEventListener("touchend",j),window.removeEventListener("touchcancel",j),window.removeEventListener("pointerup",j)}},[p]);const[R,Z]=G(null);function B(e){const t=s.current;!t||t.hasAttribute("data-zoomed")===e||(t.toggleAttribute("data-zoomed",e),e&&U())}return F(()=>{if(R)return R.on("viewport",()=>B(!R.atHome))},[R]),r("div",{ref:s,className:"clover-template-document-column",onKeyDown:e=>{if(!(e.defaultPrevented||e.altKey||e.ctrlKey)){if(e.key==="PageDown"&&h.hasNext)h.next();else if(e.key==="PageUp"&&h.hasPrevious)h.previous();else return;e.preventDefault()}},children:r("div",{ref:E,className:"clover-template-document-sheets","data-single":m.length<2||void 0,children:[m.map((e,t)=>r("div",{"aria-hidden":"true",className:"clover-template-document-sheet","data-active":t===w||void 0,"data-fill":e.ratio===void 0||void 0,onClick:()=>t!==w&&p.goTo(e.first),style:e.ratio===void 0?void 0:{"--ratio":e.ratio},children:e.canvases.map(o=>r(_e,{canvas:o},o.id))},e.key)),r("div",{ref:g,className:"clover-template-document-live",children:r(xe,{className:"clover-template-document-body",collapseControls:n,options:d,onReady:Z,children:l})})]})})}function He(n){const[d,l]=G(()=>typeof IntersectionObserver>"u");return F(()=>{if(d||!n)return;const p=new IntersectionObserver(b=>{b.some(h=>h.isIntersecting)&&(l(true),p.disconnect())},{root:n.closest(".clover-template-document-column"),rootMargin:"100% 0px"});return p.observe(n),()=>p.disconnect()},[n,d]),d}function _e({canvas:n}){const{clover:d}=te("Document"),l=oe(()=>Se(n),[n]),[p,b]=G(null),h=He(p),[s,E]=G(l==null?void 0:l.src);F(()=>{if(!l||l.src)return E(l==null?void 0:l.src);if(!h)return;let m=true;return Ee(l,Re,d.request).then(w=>m&&E(w)),()=>{m=false}},[l,d,h]);const g=ae(n),T=g?{aspectRatio:String(g)}:void 0;return s?r("img",{alt:"",decoding:"async",loading:"lazy",src:s,style:T}):r("span",{ref:b,style:T})}Le(47,"templates/document/Document","@layer clover{.clover-template-document{--clover-template-document-height: min(85vh, 56rem);display:flex;flex-direction:column;height:var(--clover-template-document-height);min-height:min-content;overflow:hidden;background-color:var(--clover-color-secondary, #fff);color:var(--clover-color-primary, #1a1d1e)}@supports (height: 1svh){.clover-template-document{--clover-template-document-height: min(85svh, 56rem)}}.clover-template-document-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--clover-space-s);padding:var(--clover-space-m) var(--clover-inset);border-bottom:1px solid var(--clover-color-secondary-muted, #e6e8eb)}.clover-template-document-provider{max-width:100%;margin-inline-start:auto}.clover-template-document-toolbar .clover-download-groups{flex-direction:row;flex-wrap:wrap;column-gap:var(--clover-space-m)}.clover-template-document-toolbar .clover-download-group{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:var(--clover-space-s)}.clover-template-document-toolbar .clover-download-title{margin:0}.clover-template-document-toolbar .clover-download-list{display:flex;flex-wrap:wrap;column-gap:var(--clover-space-s)}.clover-template-document-title{flex:1 1 6rem;min-width:0}button.clover-template-document-sidebar-toggle{display:inline-flex;flex:none;align-items:center;gap:var(--clover-space-xs);min-height:var(--clover-control);padding-block:0;padding-inline:var(--clover-space-s) calc(var(--clover-space-xs) + var(--clover-space-3xs));border:0;border-radius:var(--clover-radius-pill, 2rem);background-color:var(--clover-color-control, #1a1d1e);color:var(--clover-color-control-glyph, #fff);cursor:pointer;transition:var(--clover-transition, all .2s cubic-bezier(.16, 1, .3, 1))}button.clover-template-document-sidebar-toggle:is(:hover,:focus-visible){background-color:var(--clover-color-accent, #0065c3)}:where([data-high-contrast]) button.clover-template-document-sidebar-toggle:is(:hover,:focus-visible){background-color:var(--clover-accent-fill)}:where([data-high-contrast]) button.clover-template-document-sidebar-toggle:hover:not(:focus-visible){outline:var(--clover-accent-ring-hover);outline-offset:1px}button.clover-template-document-sidebar-toggle:focus-visible{outline:2px solid var(--clover-color-accent, #0065c3);outline-offset:2px}.clover-template-document-sidebar-toggle .clover-template-document-position{color:inherit;font-size:var(--clover-text-xs);white-space:nowrap}.clover-template-document-sidebar-toggle .clover-template-document-position>.clover-pager-room[hidden]{display:none}.clover-template-document-panes{position:relative;flex:1 1 auto;min-height:16rem}.clover-template-document-panes:is([data-panel=over],[data-narrow])>.clover-template-document-main{isolation:isolate}.clover-template-document-sidebar{contain:size;overflow-y:auto;padding:var(--clover-inset);scroll-padding-top:calc(2 * var(--clover-inset) + var(--clover-control));background-color:var(--clover-color-secondary, #fff)}.clover-template-document-sidebar-closed{position:absolute;top:var(--clover-inset);inset-inline-start:var(--clover-inset);z-index:3}@media (width < 31rem){.clover-template-document-toolbar,.clover-template-document-sidebar-closed,.clover-template-document-spine{--clover-inset: var(--clover-space-m)}}.clover-template-document-sidebar[hidden]{display:none}.clover-template-document-sidebar+.clover-split-handle:before{inset-inline-start:0;inset-inline-end:calc(3px - var(--clover-space-l))}.clover-template-document-sidebar .clover-items[data-layout] .clover-items-figure{grid-template-columns:repeat(var(--parts, 1),minmax(0,1fr));gap:var(--clover-space-xs) 0}.clover-template-document-sidebar .clover-items[data-layout] :is(.clover-items-pictures,.clover-items-caption){grid-column:1 / -1;grid-template-columns:subgrid}.clover-template-document-sidebar .clover-items[data-layout] .clover-items-label{contain:inline-size}.clover-template-document-sidebar .clover-items[data-layout] .clover-items-picture[data-empty],.clover-template-document-sidebar .clover-items[data-layout] .clover-items-picture img{width:100%;height:auto;max-height:20rem;aspect-ratio:var(--clover-items-ratio, auto);object-fit:contain}.clover-template-document-sidebar .clover-items[data-layout] .clover-items-caption{font-size:var(--clover-text-s)}.clover-template-document-main{position:relative;overflow:hidden;background-color:var(--clover-color-secondary-muted, #e6e8eb)}.clover-template-document-column{position:absolute;inset:0;overflow-x:hidden;overflow-y:auto;container-type:size}.clover-template-document-sheets{position:relative}.clover-template-document-sheet{--clover-template-document-tease: calc(2 * var(--clover-inset));display:flex;justify-content:center;box-sizing:border-box;height:min(100cqh - var(--clover-template-document-tease),(100cqw - 2 * var(--clover-inset)) / var(--ratio) + 2 * var(--clover-inset));padding:var(--clover-inset);transition:opacity .2s ease,height .24s cubic-bezier(.16,1,.3,1)}.clover-template-document-sheet[data-fill]{height:calc(100cqh - var(--clover-template-document-tease))}.clover-template-document-column[data-zoomed] .clover-template-document-sheet[data-active]{height:100cqh}.clover-template-document-column[data-zoomed] .clover-template-document-sheet[data-active]>*,.clover-template-document-column[data-covered] .clover-template-document-sheet[data-active]>*{visibility:hidden}.clover-template-document-column[data-zoomed] .clover-template-document-sheet:not([data-active]){--clover-template-document-muted: 0;pointer-events:none}.clover-template-document-sheet:not([data-active]){--clover-template-document-muted: .618;cursor:pointer;opacity:var(--clover-template-document-muted)}.clover-template-document-sheet:not([data-active]):hover{--clover-template-document-muted: .809}@media (prefers-reduced-motion: reduce){.clover-template-document-sheet{transition:none}}.clover-template-document-sheets[data-single]>.clover-template-document-sheet{--clover-template-document-tease: 0px}.clover-template-document-sheet>*{display:block;height:100%;min-width:0}.clover-template-document-sheet[data-fill]>*{object-fit:contain}.clover-template-document-live{--clover-body-height: 100%;position:absolute;inset-inline:0;top:0;height:100%;transition:opacity .16s ease}.clover-template-document-body .clover-canvas{--clover-canvas-inset: var(--clover-inset);background-color:transparent}.clover-template-document-live[data-moved]:not(:focus-within){opacity:0;pointer-events:none}.clover-template-document-column[data-scrolling] .clover-template-document-live:not(:focus-within) .clover-canvas-controls>*{--clover-controls-shown: 0;--clover-controls-events: none}.clover-template-document-column:not([data-zoomed]) :not(.clover-scene)>.clover-canvas-viewport{touch-action:pan-y}.clover-template-document-scrim[data-for=sidebar]{z-index:2}.clover-template-document-panes[data-narrow]{--clover-template-sidebar-width: min(14rem, 80%)}.clover-template-document-panes[data-narrow]>.clover-template-document-sidebar{position:absolute;inset-block:0;inset-inline-start:0;z-index:3;width:var(--clover-template-sidebar-width);border-inline-end:1px solid var(--clover-color-secondary-muted, #e6e8eb);--clover-template-inner: right;--clover-template-toward: 1}.clover-template-document-panes[data-narrow]>.clover-template-document-sidebar:dir(rtl){--clover-template-inner: left;--clover-template-toward: -1}.clover-template-document-spine{position:relative;z-index:4;flex:none;width:0}.clover-template-document-spine>*{position:absolute;top:var(--clover-inset);inset-inline-start:-1.5px;translate:-50%}.clover-template-document-spine:dir(rtl)>*{translate:50%}.clover-template-document-spine[data-for=sidebar]>*{inset-inline:auto calc(1.5px - var(--clover-control) / 2);translate:none}.clover-template-document-panes[data-narrow]>.clover-template-document-spine[data-for=sidebar]{inset-inline-start:var(--clover-template-sidebar-width)}.clover-template-document-panes[data-narrow]>.clover-template-document-spine[data-for=sidebar]>*{inset-inline-end:calc(var(--clover-control) / -2)}}");function at({className:n,defaultSidebarOpen:d,singleItem:l=false,defaultPanelOpen:p=false,panelLayout:b="accordion",panelSections:h,panelLabels:s,download:E=true,languages:g=true,interfaceLanguages:T=true,headingLevel:m=2,storageKey:w="clover-template-document",collapseControls:A,canvasOptions:k,...f}){const D=Te(m,`${re().replace(/:/g,"")}-title`);return r(Ae,{className:["clover-template-document",n].filter(Boolean).join(" "),...D.group,...f,children:r(Ce,{title:D,defaultSidebarOpen:d,singleItem:l,defaultPanelOpen:p,panelLayout:b,panelSections:h,panelLabels:s,download:E,languages:g,interfaceLanguages:T,headingLevel:m,storageKey:w,collapseControls:A,canvasOptions:k})})}const ee=n=>n+1,$e=9,je=40;function Ce({defaultSidebarOpen:n,singleItem:d,defaultPanelOpen:l,download:p,languages:b,interfaceLanguages:h,headingLevel:s=2,storageKey:E,panelLayout:g,panelSections:T,panelLabels:m,collapseControls:w,canvasOptions:A,title:k}){const f=we(),D=ye(),N=D("templateSidebar"),x=re().replace(/:/g,""),V=ne(),z=S(null),K=S(null),U=se(),a=de({id:`${x}-sidebar`,beside:J(z,je),defaultOpen:n??true,side:"start",focus:o=>o.querySelector('[role="option"][aria-selected="true"]'),slides:false,alongside:K,followFocus:U}),O=V.total>(d?0:1),M=O&&a.open,L=me({id:`${x}-panel`,beside:J(z,ue+(M?$e:0)),defaultOpen:!!l,followFocus:U,sections:T}),R=o=>{var i,c;a.over&&((c=(i=o.target).closest)!=null&&c.call(i,`[aria-controls~="${x}-sidebar"]`))&&be()},Z=()=>{a.over&&a.close()},B=L.docked,e=L.toggle,t=O&&r("button",{type:"button",className:"clover-template-document-sidebar-toggle","aria-expanded":a.open,"aria-controls":`${x}-sidebar`,lang:D("templateSidebarToggle"),onClick:()=>a.setOpen(!a.open),children:[r("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16",fill:a.open?"currentColor":"none",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",children:[r("rect",{x:"1.5",y:"2",width:"5.5",height:"4.5",rx:"1"}),r("rect",{x:"1.5",y:"9.5",width:"5.5",height:"4.5",rx:"1"}),r("path",{d:"M9.5 4.25h5M9.5 11.75h5",fill:"none"})]}),r("span",{style:ce,children:f("templateSidebarToggle")}),r(ke,{className:"clover-template-document-position"}),r(Ne,{label:f("templateSidebarToggle")})]});return r(ie,{children:[r("header",{className:"clover-template-document-toolbar",children:[r(ze,{as:k.as,className:"clover-template-document-title clover-template-title clover-title",...k.title}),p&&r(De,{headingLevel:ee(s)}),r(Me,{className:"clover-template-document-provider",children:r(Pe,{})})]}),r(qe,{loading:false}),r(ve,{ref:z,className:"clover-template-document-panes clover-template-panes","data-sidebar":M?"open":"closed","data-narrow":a.over||void 0,"data-panel":L.splitProps["data-panel"],storageKey:E||void 0,onKeyDown:o=>{L.onKeyDown(o),a.onKeyDown(o)},onPointerOver:o=>{L.splitProps.onPointerOver(o),R(o)},onFocus:o=>{L.splitProps.onFocus(o),R(o)},children:[r(Q,{ref:a.pane,as:"aside",id:`${x}-sidebar`,name:"sidebar",className:["clover-template-document-sidebar",a.over&&"clover-template-float"].filter(Boolean).join(" "),"aria-label":N?void 0:f("templateSidebar"),"aria-labelledby":N?`${x}-sidebar-name`:void 0,size:"13rem",min:a.over?void 0:"8rem",max:"24rem",hidden:!M,children:[N&&r("span",{hidden:true,id:`${x}-sidebar-name`,lang:N,children:f("templateSidebar")}),r(Oe,{layout:"list",singleItem:d,"aria-label":N?void 0:f("templateSidebar"),thumbnailSize:320,onSelect:Z})]}),M&&!a.over&&r(pe,{"aria-controls":`${x}-sidebar`}),M&&r("div",{ref:K,className:"clover-template-document-spine","data-for":"sidebar",children:t}),r(Q,{ref:L.main,className:"clover-template-document-main",min:M&&!a.over||B?he:void 0,children:[O&&!a.open&&r("div",{className:"clover-template-document-sidebar-closed",children:t}),r(Ie,{collapseControls:w,canvasOptions:A,children:!B&&e})]}),r(fe,{pane:L,className:"clover-template-document-panel",layout:g,sections:T,labels:m,headingLevel:ee(s),download:false,languages:b,interfaceLanguages:h}),O&&a.scrim&&r("div",{className:"clover-template-document-scrim clover-template-scrim","data-for":"sidebar",...a.scrim})]})]})}export{at as Document};
|
|
1
|
+
import{e as te,A as S,T as oe,y as F,_ as le,d as G,u as r,b as re,v as ce,k as ie}from"./shared-BzLnvFn3.mjs";import{u as se,a as de,b as J,c as me,B as ue,S as ve,d as Q,e as pe,P as he,f as fe,p as be}from"./viewer-PeMy2VzH.mjs";import{a as ge,d as ne,g as we,h as ye}from"./hooks-BGorrvz7.mjs";import{B as xe}from"./Body-CLEco7_N.mjs";import{stillSource as Se,resolveThumbnail as Ee}from"./thumbnail-BcediRH4.mjs";import{a as Le}from"./index-GH8QRDv1.mjs";import{t as Te}from"./heading-Cjt0f-Eu.mjs";import{R as Ae}from"./Root-ijCOCdMK.mjs";import{Position as ke}from"./Position-SN6EMJW-.mjs";import{T as Ne}from"./Tip-h4Abk6aH.mjs";import{L as ze}from"./Label-Bo3CK-L6.mjs";import{Download as De}from"./Download-Car7CU2u.mjs";import{P as Me,L as Pe}from"./Provider-DQ5Gz-Bh.mjs";import{S as qe}from"./Status-BYnM-ITS.mjs";import{I as Oe}from"./Items-Ch80infd.mjs";const Re=1600,Be=200,X=.25,Fe=1500,Y=typeof window>"u"?F:le,ae=n=>{const d=Number(n==null?void 0:n.width),l=Number(n==null?void 0:n.height);return d>0&&l>0?d/l:void 0};function Ie({collapseControls:n,canvasOptions:d,children:l}){const{clover:p}=te("Document"),b=ge(),h=ne(),s=S(null),E=S(null),g=S(null),T=b.direction==="right-to-left"||b.direction==="bottom-to-top",m=oe(()=>b.views.map(e=>{var c;const t=e.map(u=>b.canvases[u]),o=T?[...t].reverse():t,i=o.map(ae);return{key:t.map(u=>u.id).join("|"),first:(c=t[0])==null?void 0:c.id,canvases:o,ratio:i.every(Boolean)?i.reduce((u,I)=>u+I,0):void 0}}),[b,T]),w=Math.max(0,h.position),A=S({sheets:m,position:w});A.current={sheets:m,position:w};const k=S(null),f=S(null),D=S(0),N=S(()=>{}),x=S(false),V=e=>{var t;return(t=E.current)==null?void 0:t.children[e]},z=e=>{const t=s.current,o=V(e);return!t||!o||o===g.current?0:Math.min(o.offsetTop,t.scrollHeight-t.clientHeight)},K=()=>{const e=g.current,t=V(A.current.position);if(e){if(!t||t===e){e.style.top="0px",e.style.height="100%";return}e.style.top=`${t.offsetTop}px`,e.style.height=`${t.offsetHeight}px`}};function U(){const e=s.current;if(!e||e.hasAttribute("data-scrolling")||f.current!==null)return;const t=z(A.current.position);D.current=t,!(Math.abs(e.scrollTop-t)<=1)&&(x.current=true,e.scrollTop=t,requestAnimationFrame(()=>requestAnimationFrame(()=>x.current=false)))}Y(K),F(()=>{const e=new ResizeObserver(()=>{K(),U()});return E.current&&e.observe(E.current),s.current&&e.observe(s.current),()=>e.disconnect()},[]);const a=()=>{N.current();for(const[e,t]of[[s.current,"data-scrolling"],[g.current,"data-moved"]])e&&!e.hasAttribute(t)&&e.setAttribute(t,"")},O=()=>{const e=s.current,t=g.current;if(!e||!t)return;N.current(),D.current=e.scrollTop;const o=()=>{const _=t.querySelector(".clover-canvas");return!_||_.getAttribute("data-status")!=="loading"||_.getAttribute("data-placeholder")==="true"};let i=0;const c=new MutationObserver(()=>o()&&H()),u=setTimeout(()=>H(),Fe),I=()=>{cancelAnimationFrame(i),clearTimeout(u),c.disconnect()},H=()=>{I(),t.removeAttribute("data-moved"),e.removeAttribute("data-scrolling")};N.current=I,i=requestAnimationFrame(()=>{i=requestAnimationFrame(()=>{if(o())return H();c.observe(t,{attributes:true,subtree:true,attributeFilter:["data-status","data-placeholder"]})})})};F(()=>{const e=s.current,t=g.current;if(!e||!t)return;const o=()=>{const c=t.querySelector(".clover-canvas"),u=t.querySelector("video");e.toggleAttribute("data-covered",!!(c&&u&&u.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA&&c.getAttribute("data-media")==="video"&&c.getAttribute("data-placeholder")!=="true"&&!t.hasAttribute("data-moved")))};o();const i=new MutationObserver(o);i.observe(t,{attributes:true,childList:true,subtree:true,attributeFilter:["data-media","data-placeholder","data-moved"]});for(const c of["loadeddata","emptied"])t.addEventListener(c,o,true);return()=>{i.disconnect();for(const c of["loadeddata","emptied"])t.removeEventListener(c,o,true)}},[]);const M=(e,t=false)=>{var u;const o=s.current;if(!o)return;const i=z(e);if(Math.abs(o.scrollTop-i)<=1)return O();a(),f.current=e;const c=t||((u=window.matchMedia)==null?void 0:u.call(window,"(prefers-reduced-motion: reduce)").matches);o.scrollTo({top:i,behavior:c?"auto":"smooth"})},L=S(null);Y(()=>{const e=L.current!==m;if(L.current=m,B(false),k.current===w&&!e){k.current=null;return}k.current=null,M(w,e)},[w,m]),F(()=>{const e=s.current;if(!e)return;let t=0,o,i=false;const c=v=>{const P=A.current.sheets.length;if(P<2)return 0;let y=0;for(let W=0;W<P&&z(W)<=v+.5;W++)y=W;if(y>=P-1)return P-1;const C=z(y),q=(v-C)/Math.max(1,z(y+1)-C);return v>=D.current?q>X?y+1:y:q<1-X?y:y+1},u=()=>{if(t=0,f.current!==null)return;const v=c(e.scrollTop),{sheets:P,position:y}=A.current;v===y||!P[v]||(a(),B(false),k.current=v,p.goTo(P[v].first))},I=()=>{if(i)return;const{sheets:v,position:P}=A.current,y=e.scrollTop,C=f.current;f.current=null;const q=C!==null&&Math.abs(y-z(C))<=1?C:c(y);if(!v[q])return O();q!==P&&(a(),B(false),k.current=q,p.goTo(v[q].first)),M(q)},H=()=>{clearTimeout(o),o=setTimeout(I,Be)},_=()=>{x.current||(a(),H(),t||(t=requestAnimationFrame(u)))},$=v=>{f.current=null,(v.type==="touchstart"||v.type==="pointerdown"&&v.target===e)&&(i=true)},j=()=>{i&&(i=false,H())};return e.addEventListener("scroll",_,{passive:true}),e.addEventListener("wheel",$,{passive:true}),e.addEventListener("touchstart",$,{passive:true}),e.addEventListener("pointerdown",$),window.addEventListener("touchend",j),window.addEventListener("touchcancel",j),window.addEventListener("pointerup",j),()=>{cancelAnimationFrame(t),clearTimeout(o),N.current(),e.removeEventListener("scroll",_),e.removeEventListener("wheel",$),e.removeEventListener("touchstart",$),e.removeEventListener("pointerdown",$),window.removeEventListener("touchend",j),window.removeEventListener("touchcancel",j),window.removeEventListener("pointerup",j)}},[p]);const[R,Z]=G(null);function B(e){const t=s.current;!t||t.hasAttribute("data-zoomed")===e||(t.toggleAttribute("data-zoomed",e),e&&U())}return F(()=>{if(R)return R.on("viewport",()=>B(!R.atHome))},[R]),r("div",{ref:s,className:"clover-template-document-column",onKeyDown:e=>{if(!(e.defaultPrevented||e.altKey||e.ctrlKey)){if(e.key==="PageDown"&&h.hasNext)h.next();else if(e.key==="PageUp"&&h.hasPrevious)h.previous();else return;e.preventDefault()}},children:r("div",{ref:E,className:"clover-template-document-sheets","data-single":m.length<2||void 0,children:[m.map((e,t)=>r("div",{"aria-hidden":"true",className:"clover-template-document-sheet","data-active":t===w||void 0,"data-fill":e.ratio===void 0||void 0,onClick:()=>t!==w&&p.goTo(e.first),style:e.ratio===void 0?void 0:{"--ratio":e.ratio},children:e.canvases.map(o=>r(_e,{canvas:o},o.id))},e.key)),r("div",{ref:g,className:"clover-template-document-live",children:r(xe,{className:"clover-template-document-body",collapseControls:n,options:d,onReady:Z,children:l})})]})})}function He(n){const[d,l]=G(()=>typeof IntersectionObserver>"u");return F(()=>{if(d||!n)return;const p=new IntersectionObserver(b=>{b.some(h=>h.isIntersecting)&&(l(true),p.disconnect())},{root:n.closest(".clover-template-document-column"),rootMargin:"100% 0px"});return p.observe(n),()=>p.disconnect()},[n,d]),d}function _e({canvas:n}){const{clover:d}=te("Document"),l=oe(()=>Se(n),[n]),[p,b]=G(null),h=He(p),[s,E]=G(l==null?void 0:l.src);F(()=>{if(!l||l.src)return E(l==null?void 0:l.src);if(!h)return;let m=true;return Ee(l,Re,d.request).then(w=>m&&E(w)),()=>{m=false}},[l,d,h]);const g=ae(n),T=g?{aspectRatio:String(g)}:void 0;return s?r("img",{alt:"",decoding:"async",loading:"lazy",src:s,style:T}):r("span",{ref:b,style:T})}Le(47,"templates/document/Document","@layer clover{.clover-template-document{--clover-template-document-height: min(85vh, 56rem);display:flex;flex-direction:column;height:var(--clover-template-document-height);min-height:min-content;overflow:hidden;background-color:var(--clover-color-secondary, #fff);color:var(--clover-color-primary, #1a1d1e)}@supports (height: 1svh){.clover-template-document{--clover-template-document-height: min(85svh, 56rem)}}.clover-template-document-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--clover-space-s);padding:var(--clover-space-m) var(--clover-inset);border-bottom:1px solid var(--clover-color-secondary-muted, #e6e8eb)}.clover-template-document-provider{max-width:100%;margin-inline-start:auto}.clover-template-document-toolbar .clover-download-groups{flex-direction:row;flex-wrap:wrap;column-gap:var(--clover-space-m)}.clover-template-document-toolbar .clover-download-group{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:var(--clover-space-s)}.clover-template-document-toolbar .clover-download-title{margin:0}.clover-template-document-toolbar .clover-download-list{display:flex;flex-wrap:wrap;column-gap:var(--clover-space-s)}.clover-template-document-title{flex:1 1 6rem;min-width:0}button.clover-template-document-sidebar-toggle{display:inline-flex;flex:none;align-items:center;gap:var(--clover-space-xs);min-height:var(--clover-control);padding-block:0;padding-inline:var(--clover-space-s) calc(var(--clover-space-xs) + var(--clover-space-3xs));border:0;border-radius:var(--clover-radius-pill, 2rem);background-color:var(--clover-color-control, #1a1d1e);color:var(--clover-color-control-glyph, #fff);cursor:pointer;transition:var(--clover-transition, all .2s cubic-bezier(.16, 1, .3, 1))}button.clover-template-document-sidebar-toggle:is(:hover,:focus-visible){background-color:var(--clover-color-accent, #0065c3)}:where([data-high-contrast]) button.clover-template-document-sidebar-toggle:is(:hover,:focus-visible){background-color:var(--clover-accent-fill)}:where([data-high-contrast]) button.clover-template-document-sidebar-toggle:hover:not(:focus-visible){outline:var(--clover-accent-ring-hover);outline-offset:1px}button.clover-template-document-sidebar-toggle:focus-visible{outline:2px solid var(--clover-color-accent, #0065c3);outline-offset:2px}.clover-template-document-sidebar-toggle .clover-template-document-position{color:inherit;font-size:var(--clover-text-xs);white-space:nowrap}.clover-template-document-sidebar-toggle .clover-template-document-position>.clover-pager-room[hidden]{display:none}.clover-template-document-panes{position:relative;flex:1 1 auto;min-height:16rem}.clover-template-document-panes:is([data-panel=over],[data-narrow])>.clover-template-document-main{isolation:isolate}.clover-template-document-sidebar{contain:size;overflow-y:auto;padding:var(--clover-inset);scroll-padding-top:calc(2 * var(--clover-inset) + var(--clover-control));background-color:var(--clover-color-secondary, #fff)}.clover-template-document-sidebar-closed{position:absolute;top:var(--clover-inset);inset-inline-start:var(--clover-inset);z-index:3}@media (width < 31rem){.clover-template-document-toolbar,.clover-template-document-sidebar-closed,.clover-template-document-spine{--clover-inset: var(--clover-space-m)}}.clover-template-document-sidebar[hidden]{display:none}.clover-template-document-sidebar+.clover-split-handle:before{inset-inline-start:0;inset-inline-end:calc(3px - var(--clover-space-l))}.clover-template-document-sidebar .clover-items[data-layout] .clover-items-figure{grid-template-columns:repeat(var(--parts, 1),minmax(0,1fr));gap:var(--clover-space-xs) 0}.clover-template-document-sidebar .clover-items[data-layout] :is(.clover-items-pictures,.clover-items-caption){grid-column:1 / -1;grid-template-columns:subgrid}.clover-template-document-sidebar .clover-items[data-layout] .clover-items-label{contain:inline-size}.clover-template-document-sidebar .clover-items[data-layout] .clover-items-picture[data-empty],.clover-template-document-sidebar .clover-items[data-layout] .clover-items-picture img{width:100%;height:auto;max-height:20rem;aspect-ratio:var(--clover-items-ratio, auto);object-fit:contain}.clover-template-document-sidebar .clover-items[data-layout] .clover-items-caption{font-size:var(--clover-text-s)}.clover-template-document-main{position:relative;overflow:hidden;background-color:var(--clover-color-secondary-muted, #e6e8eb)}.clover-template-document-column{position:absolute;inset:0;overflow-x:hidden;overflow-y:auto;container-type:size}.clover-template-document-sheets{position:relative}.clover-template-document-sheet{--clover-template-document-tease: calc(2 * var(--clover-inset));display:flex;justify-content:center;box-sizing:border-box;height:min(100cqh - var(--clover-template-document-tease),(100cqw - 2 * var(--clover-inset)) / var(--ratio) + 2 * var(--clover-inset));padding:var(--clover-inset);transition:opacity .2s ease,height .24s cubic-bezier(.16,1,.3,1)}.clover-template-document-sheet[data-fill]{height:calc(100cqh - var(--clover-template-document-tease))}.clover-template-document-column[data-zoomed] .clover-template-document-sheet[data-active]{height:100cqh}.clover-template-document-column[data-zoomed] .clover-template-document-sheet[data-active]>*,.clover-template-document-column[data-covered] .clover-template-document-sheet[data-active]>*{visibility:hidden}.clover-template-document-column[data-zoomed] .clover-template-document-sheet:not([data-active]){--clover-template-document-muted: 0;pointer-events:none}.clover-template-document-sheet:not([data-active]){--clover-template-document-muted: .618;cursor:pointer;opacity:var(--clover-template-document-muted)}.clover-template-document-sheet:not([data-active]):hover{--clover-template-document-muted: .809}@media (prefers-reduced-motion: reduce){.clover-template-document-sheet{transition:none}}.clover-template-document-sheets[data-single]>.clover-template-document-sheet{--clover-template-document-tease: 0px}.clover-template-document-sheet>*{display:block;height:100%;min-width:0}.clover-template-document-sheet[data-fill]>*{object-fit:contain}.clover-template-document-live{--clover-body-height: 100%;position:absolute;inset-inline:0;top:0;height:100%;transition:opacity .16s ease}.clover-template-document-body .clover-canvas{--clover-canvas-inset: var(--clover-inset);background-color:transparent}.clover-template-document-live[data-moved]:not(:focus-within){opacity:0;pointer-events:none}.clover-template-document-column[data-scrolling] .clover-template-document-live:not(:focus-within) .clover-canvas-controls>*{--clover-controls-shown: 0;--clover-controls-events: none}.clover-template-document-column:not([data-zoomed]) :not(.clover-scene)>.clover-canvas-viewport{touch-action:pan-y}.clover-template-document-scrim[data-for=sidebar]{z-index:2}.clover-template-document-panes[data-narrow]{--clover-template-sidebar-width: min(14rem, 80%)}.clover-template-document-panes[data-narrow]>.clover-template-document-sidebar{position:absolute;inset-block:0;inset-inline-start:0;z-index:3;width:var(--clover-template-sidebar-width);border-inline-end:1px solid var(--clover-color-secondary-muted, #e6e8eb);--clover-template-inner: right;--clover-template-toward: 1}.clover-template-document-panes[data-narrow]>.clover-template-document-sidebar:dir(rtl){--clover-template-inner: left;--clover-template-toward: -1}.clover-template-document-spine{position:relative;z-index:4;flex:none;width:0}.clover-template-document-spine>*{position:absolute;top:var(--clover-inset);inset-inline-start:-1.5px;translate:-50%}.clover-template-document-spine:dir(rtl)>*{translate:50%}.clover-template-document-spine[data-for=sidebar]>*{inset-inline:auto calc(1.5px - var(--clover-control) / 2);translate:none}.clover-template-document-panes[data-narrow]>.clover-template-document-spine[data-for=sidebar]{inset-inline-start:var(--clover-template-sidebar-width)}.clover-template-document-panes[data-narrow]>.clover-template-document-spine[data-for=sidebar]>*{inset-inline-end:calc(var(--clover-control) / -2)}}");function at({className:n,defaultSidebarOpen:d,singleItem:l=false,defaultPanelOpen:p=false,panelLayout:b="accordion",panelSections:h,panelLabels:s,download:E=true,languages:g=true,interfaceLanguages:T=true,headingLevel:m=2,storageKey:w="clover-template-document",collapseControls:A,canvasOptions:k,...f}){const D=Te(m,`${re().replace(/:/g,"")}-title`);return r(Ae,{className:["clover-template-document",n].filter(Boolean).join(" "),...D.group,...f,children:r(Ce,{title:D,defaultSidebarOpen:d,singleItem:l,defaultPanelOpen:p,panelLayout:b,panelSections:h,panelLabels:s,download:E,languages:g,interfaceLanguages:T,headingLevel:m,storageKey:w,collapseControls:A,canvasOptions:k})})}const ee=n=>n+1,$e=9,je=40;function Ce({defaultSidebarOpen:n,singleItem:d,defaultPanelOpen:l,download:p,languages:b,interfaceLanguages:h,headingLevel:s=2,storageKey:E,panelLayout:g,panelSections:T,panelLabels:m,collapseControls:w,canvasOptions:A,title:k}){const f=we(),D=ye(),N=D("templateSidebar"),x=re().replace(/:/g,""),V=ne(),z=S(null),K=S(null),U=se(),a=de({id:`${x}-sidebar`,beside:J(z,je),defaultOpen:n??true,side:"start",focus:o=>o.querySelector('[role="option"][aria-selected="true"]'),slides:false,alongside:K,followFocus:U}),O=V.total>(d?0:1),M=O&&a.open,L=me({id:`${x}-panel`,beside:J(z,ue+(M?$e:0)),defaultOpen:!!l,followFocus:U,sections:T}),R=o=>{var i,c;a.over&&((c=(i=o.target).closest)!=null&&c.call(i,`[aria-controls~="${x}-sidebar"]`))&&be()},Z=()=>{a.over&&a.close()},B=L.docked,e=L.toggle,t=O&&r("button",{type:"button",className:"clover-template-document-sidebar-toggle","aria-expanded":a.open,"aria-controls":`${x}-sidebar`,lang:D("templateSidebarToggle"),onClick:()=>a.setOpen(!a.open),children:[r("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16",fill:a.open?"currentColor":"none",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",children:[r("rect",{x:"1.5",y:"2",width:"5.5",height:"4.5",rx:"1"}),r("rect",{x:"1.5",y:"9.5",width:"5.5",height:"4.5",rx:"1"}),r("path",{d:"M9.5 4.25h5M9.5 11.75h5",fill:"none"})]}),r("span",{style:ce,children:f("templateSidebarToggle")}),r(ke,{className:"clover-template-document-position"}),r(Ne,{label:f("templateSidebarToggle")})]});return r(ie,{children:[r("header",{className:"clover-template-document-toolbar",children:[r(ze,{as:k.as,className:"clover-template-document-title clover-template-title clover-title",...k.title}),p&&r(De,{headingLevel:ee(s)}),r(Me,{className:"clover-template-document-provider",children:r(Pe,{})})]}),r(qe,{loading:false}),r(ve,{ref:z,className:"clover-template-document-panes clover-template-panes","data-sidebar":M?"open":"closed","data-narrow":a.over||void 0,"data-panel":L.splitProps["data-panel"],storageKey:E||void 0,onKeyDown:o=>{L.onKeyDown(o),a.onKeyDown(o)},onPointerOver:o=>{L.splitProps.onPointerOver(o),R(o)},onFocus:o=>{L.splitProps.onFocus(o),R(o)},children:[r(Q,{ref:a.pane,as:"aside",id:`${x}-sidebar`,name:"sidebar",className:["clover-template-document-sidebar",a.over&&"clover-template-float"].filter(Boolean).join(" "),"aria-label":N?void 0:f("templateSidebar"),"aria-labelledby":N?`${x}-sidebar-name`:void 0,size:"13rem",min:a.over?void 0:"8rem",max:"24rem",hidden:!M,children:[N&&r("span",{hidden:true,id:`${x}-sidebar-name`,lang:N,children:f("templateSidebar")}),r(Oe,{layout:"list",singleItem:d,"aria-label":N?void 0:f("templateSidebar"),thumbnailSize:320,onSelect:Z})]}),M&&!a.over&&r(pe,{"aria-controls":`${x}-sidebar`}),M&&r("div",{ref:K,className:"clover-template-document-spine","data-for":"sidebar",children:t}),r(Q,{ref:L.main,className:"clover-template-document-main",min:M&&!a.over||B?he:void 0,children:[O&&!a.open&&r("div",{className:"clover-template-document-sidebar-closed",children:t}),r(Ie,{collapseControls:w,canvasOptions:A,children:!B&&e})]}),r(fe,{pane:L,className:"clover-template-document-panel",layout:g,sections:T,labels:m,headingLevel:ee(s),download:false,languages:b,interfaceLanguages:h}),O&&a.scrim&&r("div",{className:"clover-template-document-scrim clover-template-scrim","data-for":"sidebar",...a.scrim})]})]})}export{at as Document};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var c=Object.defineProperty;var h=(o,t,e)=>t in o?c(o,t,{enumerable:true,configurable:true,writable:true,value:e}):o[t]=e;var l=(o,t,e)=>h(o,typeof t!="symbol"?t+"":t,e);import{j as d,c as p,t as x}from"./CanvasView-
|
|
1
|
+
var c=Object.defineProperty;var h=(o,t,e)=>t in o?c(o,t,{enumerable:true,configurable:true,writable:true,value:e}):o[t]=e;var l=(o,t,e)=>h(o,typeof t!="symbol"?t+"":t,e);import{j as d,c as p,t as x}from"./CanvasView-BCyHQxwA.mjs";class f{constructor(t){l(this,"container");l(this,"boxes",new Map);const e=document.createElement("div");e.className="clover-canvas-dom-layer",Object.assign(e.style,{position:"absolute",inset:"0",overflow:"hidden",pointerEvents:"none"}),t.appendChild(e),this.container=e}sync(t){const e=new Set;t.forEach((s,i)=>{e.add(s.key);const a=this.boxFor(s),n=s.crop??{x:0,y:0,width:s.width,height:s.height};a.style.width=`${n.width}px`,a.style.height=`${n.height}px`,a.style.transform=d(p(s.transform,x(n.x,n.y))),a.style.opacity=String(s.opacity),a.style.zIndex=String(i);const r=s.element;r.style.width=`${s.width}px`,r.style.height=`${s.height}px`,r.style.transform=`translate(${-n.x}px, ${-n.y}px)`});for(const[s,i]of this.boxes)e.has(s)||(i.remove(),this.boxes.delete(s))}dispose(){this.boxes.clear(),this.container.remove()}boxFor(t){let e=this.boxes.get(t.key);return e&&e.firstChild!==t.element&&(e.remove(),e=void 0),e||(e=document.createElement("div"),e.className="clover-canvas-dom-item",e.dataset.key=t.key,Object.assign(e.style,{position:"absolute",top:"0",left:"0",overflow:"hidden",transformOrigin:"0 0"}),t.element.classList.add("clover-canvas-dom-media"),Object.assign(t.element.style,{position:"absolute",top:"0",left:"0",maxWidth:"none",maxHeight:"none",transformOrigin:"0 0"}),e.appendChild(t.element),this.container.appendChild(e),this.boxes.set(t.key,e)),e}}export{f as DomLayers};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as N,e as D,b as y,u as l,l as h}from"./shared-
|
|
1
|
+
import{a as N,e as D,b as y,u as l,l as h}from"./shared-BzLnvFn3.mjs";import{j as $}from"./classnames-DukgfdpI.mjs";import{a as k}from"./heading-Cjt0f-Eu.mjs";import{u as C}from"./downloads-DUWW30ai.mjs";import"./styles-DbqlZvMR.mjs";const g=new Set,p=a=>{var n;try{return new URL(a,(n=globalThis.location)==null?void 0:n.href).origin}catch{return a}};function K(a,n){import("./save-file-BF9IHyiG.mjs").then(({saveFile:r})=>r(a,n)).then(r=>{r||(g.add(p(a)),window.open(a,"_blank","noopener,noreferrer"))})}function L({page:a,all:n,headingLevel:r=3,inPopover:e=false}){const{t:s,langOf:w}=N(),{clover:m}=D("Download"),c=y(),b=e?"span":k(r),v=e?"div":"section",t=(i,f,u)=>f.length>0&&l(v,{className:"clover-download-group",role:e?"group":void 0,"aria-labelledby":`${c}-${u}`,children:[l(b,{className:"clover-download-title",id:`${c}-${u}`,...h(w(i)),children:s(i)}),l("ul",{className:"clover-download-list",children:f.map(o=>l("li",{children:l("a",{className:"clover-download-link",href:o.id,target:"_blank",rel:"noopener noreferrer",download:"",hrefLang:o.hrefLang,...h(o.lang),onClick:d=>{d.button!==0||d.metaKey||d.ctrlKey||d.shiftKey||d.altKey||g.has(p(o.id))||(d.preventDefault(),K(o.id,m.request))},children:[o.label,o.format&&o.format!==o.label&&l("span",{className:"clover-download-format",children:[" ","(",o.format,")"]})]})},o.id))})]});return l("div",{className:"clover-download-groups",children:[t("downloadPage",a,"page"),t("downloadAll",n,"all")]})}function U({className:a,headingLevel:n=3,...r}){const{page:e,all:s}=C();return!e.length&&!s.length?null:l("div",{...r,className:$("clover-download",a),children:l(L,{page:e,all:s,headingLevel:n})})}export{U as Download,L as DownloadGroups,C as useDownloads};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as u,u as r,l as h,k as p,t as v}from"./shared-
|
|
1
|
+
import{a as u,u as r,l as h,k as p,t as v}from"./shared-BzLnvFn3.mjs";import{b as g}from"./annotation-name-Biu7-abB.mjs";import{M as m}from"./Markup-CGp-sAk0.mjs";const x=o=>o.some(n=>{var e;return(e=n.value)==null?void 0:e.trim()}),w=(o,n)=>{const e=new Map;for(const t of o)t.choice!==void 0&&e.set(t.choice,[...e.get(t.choice)??[],t]);if(!e.size)return o;const i=new Set([...e.values()].map(t=>g(t,n)));return o.filter(t=>t.choice===void 0||i.has(t))};function M({bodies:o,language:n,headingLevel:e}){const{t:i,langOf:t}=u(),l=w(o,n),f=a=>{if(x(l))return{text:""};const s=v(a.label,n);return s.text?s:{text:i("annotationsImage"),lang:t("annotationsImage")}};return r(p,{children:l.map((a,s)=>{if(a.place)return r(m,{as:"div",markup:a.label,language:n,className:"clover-annotations-text"},s);if(!a.image)return r(m,{as:"div",markup:{[a.language??"none"]:[a.value??""]},format:a.format,headingLevel:e,language:n,className:"clover-annotations-text"},s);const c=f(a);return r("img",{src:a.image,alt:c.text,...h(c.text?c.lang:void 0),width:200,loading:"lazy",className:"clover-annotations-image"},s)})})}export{M as E};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as s,d as h,y as e}from"./shared-
|
|
1
|
+
import{u as s,d as h,y as e}from"./shared-BzLnvFn3.mjs";import{resolveThumbnail as y}from"./thumbnail-BcediRH4.mjs";import{j as v}from"./classnames-DukgfdpI.mjs";import"./styles-DbqlZvMR.mjs";const m=52,E=336;function T(t,i,n,l=false){const[a,r]=h(t==null?void 0:t.src),d=t?JSON.stringify(t):"";return e(()=>{if(!t||t.src)return r(t==null?void 0:t.src);l||r(void 0);let f=true;return y(t,i,n).then(o=>f&&r(o)),()=>{f=false}},[d,i]),a}function N({source:t,request:i,large:n=false,className:l}){const a=T(t,n?E:m,i);return a?s("img",{className:v("clover-entry-thumbnail",l),"data-large":n?"":void 0,src:a,alt:"",...!n&&{width:m/2,height:m/2},loading:"lazy",decoding:"async"}):null}export{N as E,E as P,T as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as g,a as y,u as e,l as o,v as s}from"./shared-
|
|
1
|
+
import{D as g,a as y,u as e,l as o,v as s}from"./shared-BzLnvFn3.mjs";import{j as n}from"./classnames-DukgfdpI.mjs";import{S as k}from"./Steps-DByLc8pX.mjs";import{T as m}from"./Tip-h4Abk6aH.mjs";import"./styles-DbqlZvMR.mjs";const F=g(function({id:t,value:h,onChange:u,onSubmit:f,onClear:b,results:i,size:S="large",classes:a={}},v){const{t:l,langOf:r}=y(),d=l("commonSearch"),p=l("contentSearchClear");return e("form",{role:"search","aria-labelledby":`${t}-label`,className:n("clover-field-pill",a.form),"data-size":S,onSubmit:c=>{c.preventDefault(),f()},children:[e("label",{htmlFor:t,id:`${t}-label`,style:s,...o(r("informationPanelTabsSearch")),children:l("informationPanelTabsSearch")}),e("input",{ref:v,id:t,type:"search",className:n("clover-field-pill-query",a.query),value:h,placeholder:l("contentSearchPlaceholder"),lang:r("contentSearchPlaceholder"),onChange:c=>u(c.target.value)}),i&&(i.total?e(k,{steps:i,sentence:"contentSearchPosition"}):e("span",{className:"clover-field-pill-note","aria-hidden":"true",...o(r("contentSearchResultsNone")),children:l("contentSearchResultsNone")})),h&&e("button",{type:"button",className:n("clover-field-pill-clear",a.clear),...o(r("contentSearchClear")),onClick:b,children:[e("svg",{"aria-hidden":"true",focusable:"false",width:"12",height:"12",viewBox:"0 0 16 16",children:e("path",{d:"M4 4l8 8M12 4l-8 8",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})}),e("span",{style:s,children:p}),e(m,{label:p})]}),e("button",{type:"submit",className:n("clover-field-pill-submit",a.submit),...o(r("commonSearch")),children:[e("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16",children:[e("circle",{cx:"7",cy:"7",r:"4.5",fill:"none",stroke:"currentColor",strokeWidth:"2"}),e("path",{d:"M10.5 10.5L14 14",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),e("span",{style:s,children:d}),e(m,{label:d})]})]})});export{F};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{am as Q,T as V,d as S,y as I,A as F,u as a,v as ee,q as X,a as te,b as ne,S as oe,_ as Y,ae,af as re,ad as se,$ as ie}from"./shared-w6hjs-L1.mjs";import ce from"./ChoiceMenu-82jUcgr6.mjs";import{i as le,r as de}from"./layout--P98JuFG.mjs";import{M as Z}from"./Markup-D_j5vPvk.mjs";import{T as ue}from"./Tip-MXBlEQhp.mjs";import{g as he,a as me,u as pe,b as fe,p as ve,s as ge,T as z,c as ye,P as ke,V as we,d as be}from"./Transport-B4jS-QyR.mjs";import{imageSource as xe,resolveThumbnail as Me}from"./thumbnail-DhVhVkd8.mjs";import"./MediaBody-DRkphCAw.mjs";import"./styles-BeCG47FS.mjs";const R=(e,l)=>l<10?`${Q(e)}.${Math.min(9,Math.floor((e||0)%1*10))}`:Q(e),Te=e=>{try{return e.matches(":focus-visible")}catch{return false}},Ce=50,Ae=250,Ne=(e,l)=>{let u=0;return e.forEach((d,c)=>{d.start<=l&&(u=c)}),u};function U(e,l,u){const d=Math.min(l,u),c=[];return e.forEach((m,k)=>{m.start<=d&&(d<m.end||d>=u&&m.end>=u)&&c.push(k)}),c}const Se=(e,l,u)=>{let d=u;for(const c of e)c.start>l&&c.start<d&&(d=c.start),c.end>l&&c.end<d&&(d=c.end);return d},$e=128;function Pe(e,l){const[u,d]=S([]);return I(()=>{let c=true;return Promise.all(e.map(m=>{const{body:k}=m.annotation,i=de(Array.isArray(k)?k[0]:k),t=(i==null?void 0:i.body.type)==="Image"?xe(i.body,i.region):void 0;return t?Me(t,$e,l):void 0})).then(m=>c&&d(m)),()=>{c=false}},[e,l]),u}function Be(e,l,{autoplay:u=false,loop:d=false,duration:c,isReady:m,onEnded:k}){const i=V(()=>{if(c&&Number.isFinite(c)&&c>0)return c;const s=e.map(p=>p.end).filter(Number.isFinite);return s.length?Math.max(...s):0},[e,c]),[t,v]=S(0),[g,f]=S(false),[w,h]=S(d),[E,x]=S(0),M=F(0),b=F(m);b.current=m;const C=F(k);C.current=k;const A=X(s=>{const p=Math.max(0,Math.min(i,s));M.current=p,v(p),x(P=>P+1)},[i]);I(()=>{M.current=0,v(0),h(d);const s=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion: reduce)").matches;f(u&&e.length>1&&!s)},[l]),I(()=>{if(!g||e.length<2||!(i>0))return;let s={at:Date.now(),time:M.current>=i?0:M.current},p;const P=N=>{M.current=N,v(N)},L=N=>Math.max(0,Math.min(Ae,(Se(e,N,i)-N)*1e3)),H=()=>{var j;const N=M.current;let B=s.time+(Date.now()-s.at)/1e3;if(B>=i){if(!w){P(i),f(false),(j=C.current)==null||j.call(C);return}B=0,s={at:Date.now(),time:0}}const D=U(e,N,i),W=U(e,B,i).filter(O=>!D.includes(O));if(b.current&&W.some(O=>!b.current(O))){s={at:Date.now(),time:N},p=setTimeout(H,Ce);return}P(B),p=setTimeout(H,L(B))};return s.time!==M.current&&P(s.time),p=setTimeout(H,L(s.time)),()=>clearTimeout(p)},[g,e,i,w,E]);const $=Ne(e,t),T=U(e,t,i).join(","),r=V(()=>T?T.split(",").map(Number):[],[T]),n=X(s=>{var p;return A(((p=e[s])==null?void 0:p.start)??0)},[e,A]);return{frame:$,shown:r,time:t,total:i,playing:g,repeat:w,setFrame:n,seek:A,setPlaying:f,setRepeat:h}}function Ie({frames:e,animation:l,language:u,sound:d}){var G;const{t:c,langOf:m}=te(),{frame:k,time:i,total:t,playing:v,repeat:g,setFrame:f,seek:w,setPlaying:h,setRepeat:E}=l,x=V(()=>[...new Set(e.map(o=>o.start))].sort((o,y)=>o-y),[e]);let M=0;x.forEach((o,y)=>{o<=i&&(M=y)});const b=t>0?Math.min(i,t)/t*100:0,C=V(()=>{const o=he(e,t);return o.length?me(o):void 0},[e,t]),A=`${ne().replace(/:/g,"")}-frames`,$=`${A}-menu`,[T,r]=S(false),n=F(null);pe(n);const s=X(o=>{var y;r(false),o&&((y=document.getElementById(A))==null||y.focus())},[A]),p=Pe(e,(G=oe())==null?void 0:G.clover.request),P=V(()=>({key:"frame",items:e.map((o,y)=>({label:o.annotation.label,id:o.annotation.id,image:p[y]}))}),[e,p]),[L,H]=S(null),[N,B]=S(false),D=F(null),W=`${k+1} / ${e.length}`;Y(()=>{var o;L===null&&((o=D.current)==null||o.style.setProperty("--clover-transport-preview",fe(b)))},[L,b]);const j=F(null);Y(()=>{const o=j.current,y=o==null?void 0:o.querySelector(".clover-canvas-menu"),q=o==null?void 0:o.closest(".clover-canvas-transport"),K=o==null?void 0:o.closest(".clover-canvas-media");if(!T||!o||!y||!q||!K)return;const J=()=>ve(y,o,q,K);J();const _=new ResizeObserver(J);return _.observe(K),_.observe(q),_.observe(y),()=>_.disconnect()},[T]);const O=o=>{const y=x[M+o];y!==void 0&&(h(false),f(e.findIndex(q=>q.start===y)))};return a("div",{className:"clover-canvas-transport","data-kind":"frames","data-testid":"clover-canvas-frames",children:[a("div",{className:"clover-canvas-transport-seek-area",onPointerMove:o=>{if(!t||o.target.closest(".clover-tip"))return;const y=o.currentTarget.getBoundingClientRect();H(R(ge(o.currentTarget,o.clientX)*t,t)),o.currentTarget.style.setProperty("--clover-transport-preview",`${(o.clientX-y.left)/y.width*100}%`)},onPointerLeave:()=>H(null),ref:D,children:[(L!==null||N)&&a(ue,{label:"",lead:L??R(i,t)}),a("input",{"aria-label":c("playerSeek"),"aria-valuetext":`${R(i,t)} / ${R(t,t)}, ${W}`,onFocus:o=>B(Te(o.currentTarget)),onBlur:()=>B(false),lang:m("playerSeek"),className:"clover-canvas-transport-seek",max:t,min:0,step:"any",type:"range",value:Math.min(i,t),onChange:o=>w(Number(o.target.value)),"data-gaps":C?"":void 0,style:{"--clover-transport-progress":`${b}%`,...C&&{"--clover-transport-gaps":C,"--clover-transport-at":b/100}}})]}),a("div",{className:"clover-canvas-transport-bar",ref:n,children:[a(z,{words:v?"playerPause":"playerPlay",button:v?"pause":"play",onClick:()=>{!v&&i>=t&&w(0),h(!v)},children:v?a(ye,{}):a(ke,{})}),a(z,{words:"frameRepeat",button:"repeat",pressed:g,onClick:()=>E(!g),children:a("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16",children:a("path",{d:"M3 7V6a2 2 0 0 1 2-2h7l-2-2M13 9v1a2 2 0 0 1-2 2H4l2 2",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})})}),d&&a(z,{words:d.muted?"playerUnmute":"playerMute",button:"mute",onClick:d.toggle,children:d.muted?a(we,{}):a(be,{})}),a("span",{className:"clover-canvas-transport-status","aria-hidden":"true",children:a("span",{className:"clover-canvas-transport-time",children:[R(i,t)," / ",R(t,t)]})}),a("div",{className:"clover-canvas-transport-end",children:[a("span",{className:"clover-canvas-transport-frames",ref:j,children:[a("button",{type:"button",id:A,className:"clover-canvas-transport-time","aria-controls":T?$:void 0,"aria-expanded":T,onClick:()=>{T||h(false),r(!T)},children:[a("span",{className:"clover-canvas-transport-place","aria-live":"off",children:[a("span",{children:W}),a("span",{className:"clover-canvas-transport-place-room","aria-hidden":"true",hidden:true,children:[e.length," / ",e.length]})]}),a("svg",{"aria-hidden":"true",focusable:"false",width:"12",height:"12",viewBox:"0 0 12 12",children:a("path",{d:"M3 7.5l3-3 3 3",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),T&&a(ce,{id:$,triggerId:A,label:c("playerChapters"),labelLang:m("playerChapters"),language:u,choices:[P],selections:{frame:k},onSelect:(o,y)=>{h(false),f(y)},onClose:s})]}),a(z,{words:"commonPrevious",disabled:M===0,onClick:()=>O(-1),children:a("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16",children:a("path",{d:"M10 3L5 8l5 5",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),a(z,{words:"commonNext",disabled:M===x.length-1,onClick:()=>O(1),children:a("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16",children:a("path",{d:"M6 3l5 5-5 5",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]})]})}function Le(e,l,u){const d=le(l),c=u.width/(d.width||1),m=u.height/(d.height||1);return e.flatMap((k,i)=>{var h;const t=ae(k.annotation)[0],v=t==null?void 0:t.type,g=v==="Video"?"video":re(v)?"audio":v==="TextualBody"&&typeof(t==null?void 0:t.value)=="string"?"text":null;if(!g||!t||g!=="text"&&typeof t.id!="string")return[];const f=(h=se(k.annotation.target))==null?void 0:h.rect,w=f?{x:f.x,y:f.y,width:f.w,height:f.h}:{x:0,y:0,width:d.width,height:d.height};return[{index:i,id:`${k.annotation.id??i}#${g}`,kind:g,body:t,placement:{x:u.x+w.x*c,y:u.y+w.y*m,width:w.width*c,height:w.height*m}}]})}function Fe({host:e,item:l,shown:u,language:d}){return I(()=>{if(!u||e.dataset.fitted)return;let c=0;const m=()=>{if(!e.isConnected){c=requestAnimationFrame(m);return}const{width:k,height:i}=l.placement,t=f=>(e.style.fontSize=`${f}px`,e.scrollWidth<=k+1&&e.scrollHeight<=i+1);let v=1,g=i*.8;if(t(g))v=g;else for(let f=0;f<16;f+=1){const w=(v+g)/2;t(w)?v=w:g=w}e.style.fontSize=`${v}px`,e.dataset.fitted=""};return c=requestAnimationFrame(m),()=>cancelAnimationFrame(c)},[e,l,u]),ie(a(Z,{as:"div",markup:{[l.body.language??"none"]:[l.body.value]},format:l.body.format,language:d}),e)}function We({renderer:e,frames:l,byFrame:u,animationKey:d,sceneVersion:c,autoplay:m,loop:k,onEnded:i,language:t,duration:v,canvas:g,place:f,onItems:w}){const h=Be(l,d,{autoplay:m,loop:k,duration:v,onEnded:i,isReady:r=>(u[r]??[]).every(n=>e.isReady(n))}),E=V(()=>g&&f?Le(l,g,f):[],[l,g,f]),[x,M]=S([]);I(()=>{const r=E.map(n=>{if(n.kind==="text"){const p=document.createElement("div");return p.className="clover-canvas-painted-text",p.setAttribute("aria-hidden","true"),{item:n,element:p}}const s=document.createElement(n.kind);return s.preload="auto",s.playsInline=true,s.src=n.body.id,{item:n,element:s}});return M(r),()=>{for(const{element:n}of r)n instanceof HTMLMediaElement&&(n.pause(),n.removeAttribute("src"),n.load())}},[E]);const b=F(w);b.current=w,I(()=>{var r;return(r=b.current)==null||r.call(b,x.filter(({item:n})=>n.kind!=="audio").map(({item:n,element:s})=>({id:n.id,placement:n.placement,width:n.placement.width,height:n.placement.height,media:{element:s},hidden:true}))),()=>{var n;return(n=b.current)==null?void 0:n.call(b,[])}},[x]);const[C,A]=S(!!m);I(()=>{var r;for(const{item:n,element:s}of x){if(!(s instanceof HTMLMediaElement))continue;if(s.muted=C,!h.shown.includes(n.index)){s.paused||s.pause();continue}const p=Math.max(0,h.time-l[n.index].start);if(Math.abs(s.currentTime-p)>(h.playing?1:.1))try{s.currentTime=p}catch{}h.playing&&s.paused?(r=s.play())==null||r.catch(()=>{}):!h.playing&&!s.paused&&s.pause()}},[x,l,h.shown,h.time,h.playing,C]),I(()=>{const r=new Set([...h.shown.flatMap(n=>u[n]??[]),...x.filter(({item:n})=>h.shown.includes(n.index)).map(({item:n})=>n.id)]);e.setHidden([...u.flat(),...x.map(({item:n})=>n.id)].filter(n=>!r.has(n)))},[e,u,x,h.shown,c]);const $=x.filter(({item:r})=>r.kind==="text"),T=x.some(({item:r})=>r.kind!=="text");return a("div",{className:"clover-canvas-media","data-kind":"frames",children:[$.some(({item:r})=>h.shown.includes(r.index))&&a("div",{style:ee,children:$.filter(({item:r})=>h.shown.includes(r.index)).map(({item:r})=>a(Z,{as:"p",markup:{[r.body.language??"none"]:[r.body.value]},format:r.body.format,language:t},r.id))}),$.map(({item:r,element:n})=>a(Fe,{host:n,item:r,shown:h.shown.includes(r.index),language:t},r.id)),a(Ie,{frames:l,animation:h,language:t,sound:T?{muted:C,toggle:()=>A(r=>!r)}:void 0})]})}export{Ie as FrameControls,R as clockTime,We as default,U as framesAt,Be as useAnimation};
|
|
1
|
+
import{am as Q,T as V,d as S,y as I,A as F,u as a,v as ee,q as X,a as te,b as ne,S as oe,_ as Y,ae,af as re,ad as se,$ as ie}from"./shared-BzLnvFn3.mjs";import ce from"./ChoiceMenu-DJzv0hit.mjs";import{i as le,r as de}from"./layout-BmDYodJC.mjs";import{M as Z}from"./Markup-CGp-sAk0.mjs";import{T as ue}from"./Tip-h4Abk6aH.mjs";import{g as he,a as me,u as pe,b as fe,p as ve,s as ge,T as z,c as ye,P as ke,V as we,d as be}from"./Transport-B58M-XIa.mjs";import{imageSource as xe,resolveThumbnail as Me}from"./thumbnail-BcediRH4.mjs";import"./MediaBody-nPvqRq1E.mjs";import"./styles-DbqlZvMR.mjs";const R=(e,l)=>l<10?`${Q(e)}.${Math.min(9,Math.floor((e||0)%1*10))}`:Q(e),Te=e=>{try{return e.matches(":focus-visible")}catch{return false}},Ce=50,Ae=250,Ne=(e,l)=>{let u=0;return e.forEach((d,c)=>{d.start<=l&&(u=c)}),u};function U(e,l,u){const d=Math.min(l,u),c=[];return e.forEach((m,k)=>{m.start<=d&&(d<m.end||d>=u&&m.end>=u)&&c.push(k)}),c}const Se=(e,l,u)=>{let d=u;for(const c of e)c.start>l&&c.start<d&&(d=c.start),c.end>l&&c.end<d&&(d=c.end);return d},$e=128;function Pe(e,l){const[u,d]=S([]);return I(()=>{let c=true;return Promise.all(e.map(m=>{const{body:k}=m.annotation,i=de(Array.isArray(k)?k[0]:k),t=(i==null?void 0:i.body.type)==="Image"?xe(i.body,i.region):void 0;return t?Me(t,$e,l):void 0})).then(m=>c&&d(m)),()=>{c=false}},[e,l]),u}function Be(e,l,{autoplay:u=false,loop:d=false,duration:c,isReady:m,onEnded:k}){const i=V(()=>{if(c&&Number.isFinite(c)&&c>0)return c;const s=e.map(p=>p.end).filter(Number.isFinite);return s.length?Math.max(...s):0},[e,c]),[t,v]=S(0),[g,f]=S(false),[w,h]=S(d),[E,x]=S(0),M=F(0),b=F(m);b.current=m;const C=F(k);C.current=k;const A=X(s=>{const p=Math.max(0,Math.min(i,s));M.current=p,v(p),x(P=>P+1)},[i]);I(()=>{M.current=0,v(0),h(d);const s=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion: reduce)").matches;f(u&&e.length>1&&!s)},[l]),I(()=>{if(!g||e.length<2||!(i>0))return;let s={at:Date.now(),time:M.current>=i?0:M.current},p;const P=N=>{M.current=N,v(N)},L=N=>Math.max(0,Math.min(Ae,(Se(e,N,i)-N)*1e3)),H=()=>{var j;const N=M.current;let B=s.time+(Date.now()-s.at)/1e3;if(B>=i){if(!w){P(i),f(false),(j=C.current)==null||j.call(C);return}B=0,s={at:Date.now(),time:0}}const D=U(e,N,i),W=U(e,B,i).filter(O=>!D.includes(O));if(b.current&&W.some(O=>!b.current(O))){s={at:Date.now(),time:N},p=setTimeout(H,Ce);return}P(B),p=setTimeout(H,L(B))};return s.time!==M.current&&P(s.time),p=setTimeout(H,L(s.time)),()=>clearTimeout(p)},[g,e,i,w,E]);const $=Ne(e,t),T=U(e,t,i).join(","),r=V(()=>T?T.split(",").map(Number):[],[T]),n=X(s=>{var p;return A(((p=e[s])==null?void 0:p.start)??0)},[e,A]);return{frame:$,shown:r,time:t,total:i,playing:g,repeat:w,setFrame:n,seek:A,setPlaying:f,setRepeat:h}}function Ie({frames:e,animation:l,language:u,sound:d}){var G;const{t:c,langOf:m}=te(),{frame:k,time:i,total:t,playing:v,repeat:g,setFrame:f,seek:w,setPlaying:h,setRepeat:E}=l,x=V(()=>[...new Set(e.map(o=>o.start))].sort((o,y)=>o-y),[e]);let M=0;x.forEach((o,y)=>{o<=i&&(M=y)});const b=t>0?Math.min(i,t)/t*100:0,C=V(()=>{const o=he(e,t);return o.length?me(o):void 0},[e,t]),A=`${ne().replace(/:/g,"")}-frames`,$=`${A}-menu`,[T,r]=S(false),n=F(null);pe(n);const s=X(o=>{var y;r(false),o&&((y=document.getElementById(A))==null||y.focus())},[A]),p=Pe(e,(G=oe())==null?void 0:G.clover.request),P=V(()=>({key:"frame",items:e.map((o,y)=>({label:o.annotation.label,id:o.annotation.id,image:p[y]}))}),[e,p]),[L,H]=S(null),[N,B]=S(false),D=F(null),W=`${k+1} / ${e.length}`;Y(()=>{var o;L===null&&((o=D.current)==null||o.style.setProperty("--clover-transport-preview",fe(b)))},[L,b]);const j=F(null);Y(()=>{const o=j.current,y=o==null?void 0:o.querySelector(".clover-canvas-menu"),q=o==null?void 0:o.closest(".clover-canvas-transport"),K=o==null?void 0:o.closest(".clover-canvas-media");if(!T||!o||!y||!q||!K)return;const J=()=>ve(y,o,q,K);J();const _=new ResizeObserver(J);return _.observe(K),_.observe(q),_.observe(y),()=>_.disconnect()},[T]);const O=o=>{const y=x[M+o];y!==void 0&&(h(false),f(e.findIndex(q=>q.start===y)))};return a("div",{className:"clover-canvas-transport","data-kind":"frames","data-testid":"clover-canvas-frames",children:[a("div",{className:"clover-canvas-transport-seek-area",onPointerMove:o=>{if(!t||o.target.closest(".clover-tip"))return;const y=o.currentTarget.getBoundingClientRect();H(R(ge(o.currentTarget,o.clientX)*t,t)),o.currentTarget.style.setProperty("--clover-transport-preview",`${(o.clientX-y.left)/y.width*100}%`)},onPointerLeave:()=>H(null),ref:D,children:[(L!==null||N)&&a(ue,{label:"",lead:L??R(i,t)}),a("input",{"aria-label":c("playerSeek"),"aria-valuetext":`${R(i,t)} / ${R(t,t)}, ${W}`,onFocus:o=>B(Te(o.currentTarget)),onBlur:()=>B(false),lang:m("playerSeek"),className:"clover-canvas-transport-seek",max:t,min:0,step:"any",type:"range",value:Math.min(i,t),onChange:o=>w(Number(o.target.value)),"data-gaps":C?"":void 0,style:{"--clover-transport-progress":`${b}%`,...C&&{"--clover-transport-gaps":C,"--clover-transport-at":b/100}}})]}),a("div",{className:"clover-canvas-transport-bar",ref:n,children:[a(z,{words:v?"playerPause":"playerPlay",button:v?"pause":"play",onClick:()=>{!v&&i>=t&&w(0),h(!v)},children:v?a(ye,{}):a(ke,{})}),a(z,{words:"frameRepeat",button:"repeat",pressed:g,onClick:()=>E(!g),children:a("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16",children:a("path",{d:"M3 7V6a2 2 0 0 1 2-2h7l-2-2M13 9v1a2 2 0 0 1-2 2H4l2 2",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})})}),d&&a(z,{words:d.muted?"playerUnmute":"playerMute",button:"mute",onClick:d.toggle,children:d.muted?a(we,{}):a(be,{})}),a("span",{className:"clover-canvas-transport-status","aria-hidden":"true",children:a("span",{className:"clover-canvas-transport-time",children:[R(i,t)," / ",R(t,t)]})}),a("div",{className:"clover-canvas-transport-end",children:[a("span",{className:"clover-canvas-transport-frames",ref:j,children:[a("button",{type:"button",id:A,className:"clover-canvas-transport-time","aria-controls":T?$:void 0,"aria-expanded":T,onClick:()=>{T||h(false),r(!T)},children:[a("span",{className:"clover-canvas-transport-place","aria-live":"off",children:[a("span",{children:W}),a("span",{className:"clover-canvas-transport-place-room","aria-hidden":"true",hidden:true,children:[e.length," / ",e.length]})]}),a("svg",{"aria-hidden":"true",focusable:"false",width:"12",height:"12",viewBox:"0 0 12 12",children:a("path",{d:"M3 7.5l3-3 3 3",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),T&&a(ce,{id:$,triggerId:A,label:c("playerChapters"),labelLang:m("playerChapters"),language:u,choices:[P],selections:{frame:k},onSelect:(o,y)=>{h(false),f(y)},onClose:s})]}),a(z,{words:"commonPrevious",disabled:M===0,onClick:()=>O(-1),children:a("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16",children:a("path",{d:"M10 3L5 8l5 5",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),a(z,{words:"commonNext",disabled:M===x.length-1,onClick:()=>O(1),children:a("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16",children:a("path",{d:"M6 3l5 5-5 5",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]})]})}function Le(e,l,u){const d=le(l),c=u.width/(d.width||1),m=u.height/(d.height||1);return e.flatMap((k,i)=>{var h;const t=ae(k.annotation)[0],v=t==null?void 0:t.type,g=v==="Video"?"video":re(v)?"audio":v==="TextualBody"&&typeof(t==null?void 0:t.value)=="string"?"text":null;if(!g||!t||g!=="text"&&typeof t.id!="string")return[];const f=(h=se(k.annotation.target))==null?void 0:h.rect,w=f?{x:f.x,y:f.y,width:f.w,height:f.h}:{x:0,y:0,width:d.width,height:d.height};return[{index:i,id:`${k.annotation.id??i}#${g}`,kind:g,body:t,placement:{x:u.x+w.x*c,y:u.y+w.y*m,width:w.width*c,height:w.height*m}}]})}function Fe({host:e,item:l,shown:u,language:d}){return I(()=>{if(!u||e.dataset.fitted)return;let c=0;const m=()=>{if(!e.isConnected){c=requestAnimationFrame(m);return}const{width:k,height:i}=l.placement,t=f=>(e.style.fontSize=`${f}px`,e.scrollWidth<=k+1&&e.scrollHeight<=i+1);let v=1,g=i*.8;if(t(g))v=g;else for(let f=0;f<16;f+=1){const w=(v+g)/2;t(w)?v=w:g=w}e.style.fontSize=`${v}px`,e.dataset.fitted=""};return c=requestAnimationFrame(m),()=>cancelAnimationFrame(c)},[e,l,u]),ie(a(Z,{as:"div",markup:{[l.body.language??"none"]:[l.body.value]},format:l.body.format,language:d}),e)}function We({renderer:e,frames:l,byFrame:u,animationKey:d,sceneVersion:c,autoplay:m,loop:k,onEnded:i,language:t,duration:v,canvas:g,place:f,onItems:w}){const h=Be(l,d,{autoplay:m,loop:k,duration:v,onEnded:i,isReady:r=>(u[r]??[]).every(n=>e.isReady(n))}),E=V(()=>g&&f?Le(l,g,f):[],[l,g,f]),[x,M]=S([]);I(()=>{const r=E.map(n=>{if(n.kind==="text"){const p=document.createElement("div");return p.className="clover-canvas-painted-text",p.setAttribute("aria-hidden","true"),{item:n,element:p}}const s=document.createElement(n.kind);return s.preload="auto",s.playsInline=true,s.src=n.body.id,{item:n,element:s}});return M(r),()=>{for(const{element:n}of r)n instanceof HTMLMediaElement&&(n.pause(),n.removeAttribute("src"),n.load())}},[E]);const b=F(w);b.current=w,I(()=>{var r;return(r=b.current)==null||r.call(b,x.filter(({item:n})=>n.kind!=="audio").map(({item:n,element:s})=>({id:n.id,placement:n.placement,width:n.placement.width,height:n.placement.height,media:{element:s},hidden:true}))),()=>{var n;return(n=b.current)==null?void 0:n.call(b,[])}},[x]);const[C,A]=S(!!m);I(()=>{var r;for(const{item:n,element:s}of x){if(!(s instanceof HTMLMediaElement))continue;if(s.muted=C,!h.shown.includes(n.index)){s.paused||s.pause();continue}const p=Math.max(0,h.time-l[n.index].start);if(Math.abs(s.currentTime-p)>(h.playing?1:.1))try{s.currentTime=p}catch{}h.playing&&s.paused?(r=s.play())==null||r.catch(()=>{}):!h.playing&&!s.paused&&s.pause()}},[x,l,h.shown,h.time,h.playing,C]),I(()=>{const r=new Set([...h.shown.flatMap(n=>u[n]??[]),...x.filter(({item:n})=>h.shown.includes(n.index)).map(({item:n})=>n.id)]);e.setHidden([...u.flat(),...x.map(({item:n})=>n.id)].filter(n=>!r.has(n)))},[e,u,x,h.shown,c]);const $=x.filter(({item:r})=>r.kind==="text"),T=x.some(({item:r})=>r.kind!=="text");return a("div",{className:"clover-canvas-media","data-kind":"frames",children:[$.some(({item:r})=>h.shown.includes(r.index))&&a("div",{style:ee,children:$.filter(({item:r})=>h.shown.includes(r.index)).map(({item:r})=>a(Z,{as:"p",markup:{[r.body.language??"none"]:[r.body.value]},format:r.body.format,language:t},r.id))}),$.map(({item:r,element:n})=>a(Fe,{host:n,item:r,shown:h.shown.includes(r.index),language:t},r.id)),a(Ie,{frames:l,animation:h,language:t,sound:T?{muted:C,toggle:()=>A(r=>!r)}:void 0})]})}export{Ie as FrameControls,R as clockTime,We as default,U as framesAt,Be as useAnimation};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as z,A as O,b as R,y as ee,u as e,P as te,z as oe,d as le,q as re,k as ae}from"./shared-
|
|
1
|
+
import{c as z,A as O,b as R,y as ee,u as e,P as te,z as oe,d as le,q as re,k as ae}from"./shared-BzLnvFn3.mjs";import{u as ie,g as W,h as U,i as X,e as H}from"./hooks-BGorrvz7.mjs";import{a as J}from"./index-GH8QRDv1.mjs";import{L as q}from"./Label-Bo3CK-L6.mjs";import{t as Q}from"./heading-Cjt0f-Eu.mjs";import{T as Y}from"./Tip-h4Abk6aH.mjs";import{R as ce}from"./Root-ijCOCdMK.mjs";import{Summary as ne}from"./Primitives-C2f-ZV1J.mjs";import{S as se}from"./Status-BYnM-ITS.mjs";import{I as me}from"./Items-Ch80infd.mjs";function G(){const o=z(r=>r.addedSets.some(i=>!!i.content)),t=ie();return o?t:null}J(46,"templates/shared/Lightbox","@layer clover{.clover-template-lightbox{position:absolute;inset:0;z-index:10;padding:var(--clover-template-lightbox-inset, 0);background:var(--clover-template-lightbox-backdrop, transparent)}.clover-template-lightbox[hidden]{display:none}.clover-template-lightbox-content{position:sticky;overflow-y:auto;top:calc(var(--clover-template-lightbox-top, 0px) + var(--clover-template-lightbox-inset, 0px));box-sizing:border-box;display:flex;flex-direction:column;gap:var(--clover-space-m);height:min(100%,calc(100vh - var(--clover-template-lightbox-top, 0px) - 2 * var(--clover-template-lightbox-inset, 0px)));padding:var(--clover-inset);border-radius:var(--clover-template-lightbox-radius, 0);background:var(--clover-color-secondary, #fff);color:var(--clover-color-primary, #1a1d1e);--clover-body-height: min(70vh, 48rem)}@supports (height: 1svh){.clover-template-lightbox-content{height:min(100%,calc(100svh - var(--clover-template-lightbox-top, 0px) - 2 * var(--clover-template-lightbox-inset, 0px)));--clover-body-height: min(70svh, 48rem)}}.clover-template-lightbox-content>.clover-template-lightbox-panes{flex:1 1 auto;min-height:16rem}.clover-template-lightbox-main{display:flex;flex-direction:column;gap:var(--clover-space-m);min-height:0}.clover-template-lightbox-main>.clover-template-lightbox-body{flex:1 1 auto;min-height:0}.clover-template-lightbox-main>.clover-items[data-layout=slider]{flex:none;--clover-items-height: 4rem;--clover-items-lines: 1}.clover-template-lightbox-pending{height:var(--clover-body-height, 60vh);background-color:#0001}.clover-template-lightbox-header{display:flex;align-items:center;gap:var(--clover-space-m)}.clover-template-lightbox-title{flex:1 1 auto;min-width:0}.clover-template-lightbox-caption{flex:none;margin:calc(var(--clover-space-xs) - var(--clover-space-m)) 0 0;overflow-wrap:anywhere}.clover-template-lightbox-back:dir(rtl) svg{transform:scaleX(-1)}button:is(.clover-template-lightbox-back,.clover-template-lightbox-close){flex:none;display:inline-flex;align-items:center;justify-content:center;width:var(--clover-control);height:var(--clover-control);padding:0;border:0;border-radius:var(--clover-radius-pill, 2rem);background:transparent;color:inherit;cursor:pointer}button:is(.clover-template-lightbox-back,.clover-template-lightbox-close):is(:hover,:focus-visible){background:var(--clover-color-accent, #0065c3);color:var(--clover-color-control-glyph, #fff)}:where([data-high-contrast]) button:is(.clover-template-lightbox-back,.clover-template-lightbox-close):is(:hover,:focus-visible){background:var(--clover-accent-fill)}:where([data-high-contrast]) button:is(.clover-template-lightbox-back,.clover-template-lightbox-close):hover:not(:focus-visible){outline:var(--clover-accent-ring-hover);outline-offset:1px}}");const Z=()=>import("./LightboxView-D42ogB9b.mjs"),ve=oe(Z),$=()=>void Z();function ue({open:o,onClose:t,headingLevel:r=3,items:i="slider",className:n,...l}){var C;const c=W(),m=U(),h=O(null),s=O(null),T=O(null),f=R().replace(/:/g,""),x=`${f}-title`,y=`${f}-view`,N=X((C=H())==null?void 0:C.label).text?x:y,A=!!G(),k=O(t);return k.current=t,ee(()=>{var g,j,K,M;const a=h.current,I=a==null?void 0:a.parentElement;if(!o||!a||!I)return;const p=a.ownerDocument.activeElement,B=Array.from(I.children).filter(v=>v!==a&&!v.classList.contains("clover-announcer")&&!v.classList.contains("clover-status"));B.forEach(v=>v.inert=true),(j=(g=s.current)==null?void 0:g.scrollIntoView)==null||j.call(g,{block:"nearest"}),(M=((K=s.current)==null?void 0:K.querySelector('[role="listbox"] [role="option"][aria-selected="true"]'))??T.current)==null||M.focus({preventScroll:true});const w=a.ownerDocument;let d;const L=v=>{var S;if(v.key!=="Tab"||!((S=s.current)!=null&&S.contains(v.target)))return;const u=v.shiftKey;clearTimeout(d),d=setTimeout(()=>{var V;const b=s.current;if(!b||b.contains(w.activeElement))return;const E=_(b);(V=u?E.at(-1):E[0])==null||V.focus()})};return w.addEventListener("keydown",L,true),()=>{var S,b;w.removeEventListener("keydown",L,true),clearTimeout(d),B.forEach(E=>E.inert=false);const u=((S=p==null?void 0:p.closest('[role="listbox"]'))==null?void 0:S.querySelector('[role="option"][aria-selected="true"]'))??p;u!=null&&u.isConnected&&(u.focus({preventScroll:true}),(b=u.scrollIntoView)==null||b.call(u,{block:"nearest"}))}},[o]),e("div",{ref:h,className:["clover-template-lightbox",n].filter(Boolean).join(" "),hidden:!o,onClick:a=>{a.target===h.current&&t()},onKeyDown:a=>{if(!a.defaultPrevented){if(a.key==="Tab"&&s.current){pe(s.current,a);return}a.key==="Escape"&&(a.preventDefault(),k.current())}},children:o&&e("div",{ref:s,role:"dialog","aria-modal":"true","aria-labelledby":N,className:"clover-template-lightbox-content",children:[e("header",{className:"clover-template-lightbox-header",children:[e(de,{onOut:t}),e(q,{as:Q(r,x).as,id:x,className:"clover-template-lightbox-title clover-template-title clover-title"}),N===y&&e(q,{of:"canvas",id:y,hidden:true}),e("button",{ref:T,type:"button",className:"clover-template-lightbox-close","aria-label":c("commonClose"),lang:m("commonClose"),onClick:t,children:[e("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16",children:e("path",{d:"M3 3l10 10M13 3L3 13",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})}),e(Y,{label:c("commonClose")})]})]}),e(te,{fallback:e("div",{className:"clover-template-lightbox-body clover-template-lightbox-pending","aria-busy":"true"}),children:e(ve,{id:f,annotations:A,items:i,headingLevel:r,...l})})]})})}const he='a[href], button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])',_=o=>Array.from(o.querySelectorAll(he)).filter(t=>{var r;return t.tabIndex>=0&&!t.matches(":disabled")&&!t.closest("[inert]")&&(((r=t.checkVisibility)==null?void 0:r.call(t,{visibilityProperty:true}))??true)});function pe(o,t){const r=_(o),i=r[0],n=r.at(-1);if(!i||!n)return;const l=o.ownerDocument.activeElement;(t.shiftKey?l===i:l===n)&&(t.preventDefault(),(t.shiftKey?n:i).focus())}function de({onOut:o}){const t=W(),r=U(),i=z(s=>s.throughCollection?s.collection:null),n=G(),l=H(),c=X(n?n.label:(i==null?void 0:i.label)??(l==null?void 0:l.label)),m=c.text?"templateBackTo":"templateBack",h=t(m,{label:c.text});return e("button",{type:"button",className:"clover-template-lightbox-back","aria-label":h,lang:r(m),onClick:o,children:[e("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16",children:e("path",{d:"M10 3L5 8l5 5",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),e(Y,{label:h,lang:r(m)})]})}J(48,"templates/gallery/Gallery","@layer clover{.clover-template-gallery{position:relative;isolation:isolate;display:flex;flex-direction:column;gap:var(--clover-space-l);padding:var(--clover-inset);color:var(--clover-color-primary, #1a1d1e)}.clover-template-gallery[data-height=fixed]{box-sizing:border-box;height:var(--clover-template-gallery-height)}.clover-template-gallery[data-height=fixed]>.clover-items{flex:1 1 auto;min-height:0;overflow:auto;margin:calc(-1 * var(--clover-items-ring-room, 4px));padding:var(--clover-items-ring-room, 4px)}.clover-template-gallery-header{flex:none;display:flex;flex-direction:column;gap:var(--clover-space-2xs)}.clover-template-gallery-summary{margin:0;--clover-summary-lines: 2}.clover-template-gallery .clover-items{--clover-items-gap: var(--clover-template-gallery-gap, var(--clover-inset));--clover-items-lines: none}}");const ge=o=>o+1,F=o=>typeof o=="number"?`${o}px`:o;function Ie({className:o,size:t,height:r="auto",gap:i,items:n="grid",secondary:l,summary:c=true,lightboxItems:m="slider",panel:h=true,defaultPanelOpen:s=true,panelLayout:T="accordion",panelSections:f,panelLabels:x,download:y=true,languages:P=true,interfaceLanguages:N=true,storageKey:A="clover-template-gallery",headingLevel:k=2,collapseControls:C,canvasOptions:a,style:I,...p}){const[B,D]=le(false),w=re(()=>D(false),[]),d=Q(k,`${R().replace(/:/g,"")}-title`),L=r!=="auto",g={...t&&{"--clover-items-size":t},...L&&{"--clover-template-gallery-height":F(r)},...i!=null&&{"--clover-template-gallery-gap":F(i)}};return e(ce,{className:["clover-template-gallery",o].filter(Boolean).join(" "),style:{...I,...g},"data-height":L?"fixed":"auto",onPointerOver:$,onFocus:$,...d.group,...p,children:[e(be,{title:d,layout:n==="masonry"?"masonry":"grid",secondary:l,summary:c,onOpen:()=>D(true)}),e(ue,{open:B,onClose:w,headingLevel:ge(k),items:m,panel:h,defaultPanelOpen:s,panelLayout:T,panelSections:f,panelLabels:x,download:y,languages:P,interfaceLanguages:N,storageKey:A,collapseControls:C,canvasOptions:a})]})}function be({title:o,layout:t,secondary:r,summary:i,onOpen:n}){const l=z(m=>m.throughCollection?m.collection:null),c=G();return e(ae,{children:[e("header",{className:"clover-template-gallery-header",children:[e(q,{as:o.as,className:"clover-template-gallery-title clover-template-title clover-title",label:c?c.label:l==null?void 0:l.label,...o.title}),i&&!c&&e(ne,{className:"clover-template-gallery-summary",value:l==null?void 0:l.summary})]}),e(se,{loading:l||c?false:void 0}),e(me,{layout:t,secondary:r,of:c?"annotations":l?"members":"views",singleItem:true,onSelect:n})]})}export{Ie as Gallery};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as r}from"./shared-
|
|
1
|
+
import{u as r}from"./shared-BzLnvFn3.mjs";function o(){return r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","aria-hidden":"true",focusable:"false",fill:"none",stroke:"currentColor",strokeWidth:"48",strokeLinecap:"round",strokeLinejoin:"round",children:[r("circle",{cx:"256",cy:"256",r:"200"}),r("ellipse",{cx:"256",cy:"256",rx:"84",ry:"200"}),r("path",{d:"M56 256h400M88 160h336M88 352h336"})]})}export{o as G};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as c,b as d,u as e,l as h}from"./shared-
|
|
1
|
+
import{a as c,b as d,u as e,l as h}from"./shared-BzLnvFn3.mjs";import{T as p}from"./Tip-h4Abk6aH.mjs";import"./styles-DbqlZvMR.mjs";function b({hidden:i,onChange:s,of:n}){const{t,langOf:o}=c(),a=d(),r=n?"annotationsHideTip":"annotationsHide";return e("label",{className:"clover-hide",children:[e("input",{type:"checkbox",checked:i,"aria-labelledby":n?`${a} ${n}`:a,onChange:l=>s(l.target.checked)}),e("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,viewBox:"0 0 512 512","aria-hidden":"true",focusable:"false",fill:"none",stroke:"currentColor",strokeWidth:40,strokeLinecap:"round",strokeLinejoin:"round",children:[e("path",{d:"M32 256s80-144 224-144 224 144 224 144-80 144-224 144S32 256 32 256z"}),e("circle",{cx:256,cy:256,r:72}),i&&e("path",{d:"M80 80l352 352"})]}),e("span",{id:a,hidden:true,...h(o(r)),children:t(r)}),e(p,{label:t("annotationsHideTip"),lang:o("annotationsHideTip")})]})}export{b as H};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as V,A as D,ag as W,_ as P,u as a,R as j,l as z}from"./shared-
|
|
1
|
+
import{a as V,A as D,ag as W,_ as P,u as a,R as j,l as z}from"./shared-BzLnvFn3.mjs";import{B as K}from"./Button-JqNjqiWi.mjs";import{u as $}from"./useContainerName-DeDFbnAs.mjs";import{d as H,O as _}from"./glyphs-BzZKC9_8.mjs";import{p as q,T as G}from"./Tip-h4Abk6aH.mjs";function I(c){var d,f;const e=c.getBoundingClientRect(),m=parseFloat(getComputedStyle(c).paddingLeft)||0,i=(d=c.firstElementChild)==null?void 0:d.getBoundingClientRect(),C=(f=c.lastElementChild)==null?void 0:f.getBoundingClientRect();return{box:e,ring:m,left:i?e.left-(i.left-m):0,right:C?C.right+m-e.right:0}}function Z({instance:c,open:e,onOpenChange:m,toggle:i,children:C}){const{t:d,langOf:f}=V(),L=`more-${c}`,B=`${L}-list`,M=D(null),k=e?"canvasCollapseControls":"canvasExpandControls",R=$(d("canvasViewerControls"),f("canvasViewerControls"));W(e&&!i,()=>{});const w=D(false),S=(t,r)=>{w.current=r,m(t)};P(()=>{var t;w.current&&(w.current=false,(t=document.getElementById(L))==null||t.focus())},[e,L]),P(()=>{const t=M.current;if(!e||!t)return;const r=()=>I(t),s=()=>{t.scrollTop&&(t.scrollTop=0);const{box:o,left:n,right:l}=r(),h=t.scrollLeft<0||t.scrollLeft>t.scrollWidth-t.clientWidth;if(t.dataset.past&&!h&&l<-.5&&n>.5){t.scrollLeft-=Math.min(-l,n);return}if(t.dataset.past&&!h&&n<-.5&&l>.5){t.scrollLeft+=Math.min(-n,l);return}const y=[n>1&&"left",l>1&&"right"].filter(Boolean).join(" ");y?t.dataset.past=y:delete t.dataset.past;const x=parseFloat(getComputedStyle(t).scrollPaddingLeft)||0;for(const u of Array.from(t.children)){const p=u.getBoundingClientRect(),v=n>1&&p.left<o.left+x-.5||l>1&&p.right>o.right-x+.5;v!==u.hasAttribute("data-partial")&&u.toggleAttribute("data-partial",v)}},b=o=>{const n=o.target;if(!(n instanceof HTMLElement)||n.parentElement!==t)return;s();const{box:l,ring:h,left:y,right:x}=r(),u=n.getBoundingClientRect(),p=parseFloat(getComputedStyle(t).scrollPaddingLeft)||0,v=u.right-(l.right-(n.nextElementSibling?p:h)),O=l.left+(n.previousElementSibling?p:h)-u.left;v>0?t.scrollLeft+=Math.min(v,Math.max(x,0)):O>0&&(t.scrollLeft-=Math.min(O,Math.max(y,0))),s()},E=()=>{s();const o=t.ownerDocument.activeElement;o&&t.contains(o)&&q(o)};s(),t.addEventListener("scroll",E,{passive:true}),t.addEventListener("focusin",b),t.addEventListener("animationend",s);const g=new ResizeObserver(()=>s());return g.observe(t),()=>{t.removeEventListener("scroll",E),t.removeEventListener("focusin",b),t.removeEventListener("animationend",s),g.disconnect(),delete t.dataset.past;for(const o of Array.from(t.children))o.removeAttribute("data-partial")}},[e]);const T=i?a(j.Fragment,{children:i},"more"):a(K,{id:L,label:d(k),lang:f(k),expanded:e,controls:B,onClick:t=>S(!e,document.activeElement===t.currentTarget),children:e?a(H,{}):a(_,{})},"more"),N=t=>{const r=M.current;if(!r)return;const{box:s,left:b,right:E}=I(r),g=getComputedStyle(r),o=s.width-2*(parseFloat(g.scrollPaddingLeft)||0),n=t!==(g.direction==="rtl");r.scrollBy({left:n?Math.min(o,E):-Math.min(o,b),behavior:matchMedia("(prefers-reduced-motion: reduce)").matches?"instant":"smooth"})},A=t=>{const r=t?"canvasScrollForward":"canvasScrollBack";return a("button",{type:"button",className:"clover-steps-step clover-canvas-more-step","data-step":t?"next":"prev","aria-hidden":"true",tabIndex:-1,...z(f(r)),onMouseDown:s=>s.preventDefault(),onClick:()=>N(t),children:[a("svg",{"aria-hidden":"true",focusable:"false",width:"12",height:"12",viewBox:"0 0 16 16",children:a("path",{d:t?"M6 3l5 5-5 5":"M10 3L5 8l5 5",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),a(G,{label:d(r)})]},r)},F=a("div",{className:"clover-canvas-more-list",hidden:!e,id:B,ref:M,role:"group",...R.props,children:C},"list");return a("div",{className:"clover-canvas-more","data-open":e||void 0,onKeyDown:t=>{i||!e||t.key!=="Escape"||t.defaultPrevented||(t.preventDefault(),S(false,true))},children:[e?[F,T]:[T,F],R.node,e&&[A(false),A(true)]]})}export{Z as ImageControls};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as S,u as n,v as Mt,P as _,z as O,l as M,d as W,af as Bt,am as Ht,A as T,y as R,q as xt,D as Ft,S as at,c as q,ak as Ot,a7 as $t,al as Vt,F as Kt,a as Ut,b as jt,a5 as Wt,a6 as _t,aa as zt,ab as Gt}from"./shared-w6hjs-L1.mjs";import{thumbnailSource as Yt,resolveThumbnail as Jt}from"./thumbnail-DhVhVkd8.mjs";import{u as Qt,N as Xt}from"./useNearViewport-DHvgWl-0.mjs";import{h as Zt,T as te}from"./Tip-MXBlEQhp.mjs";import{r as ee}from"./dates-DR3gfcON.mjs";import{i as oe,a as ne}from"./items-DNfIV4vN.mjs";import{j as re}from"./classnames-DukgfdpI.mjs";import{u as ae}from"./useContainerName-CM_MIZu9.mjs";import{a as se}from"./heading-Cjt0f-Eu.mjs";import{u as le}from"./useScrollTrack-B0Nx9ZZ7.mjs";import"./styles-BeCG47FS.mjs";const Ct='.clover-items-item[role="option"], .clover-items-link',F=new Map;let w=null,x=null,nt=0;function st(t){const e=F.get(t);if(!e)return;const o=t.clientHeight>0&&t.scrollHeight>t.clientHeight+1;o!==e.cut&&(e.cut=o,e.change(o))}function rt(){cancelAnimationFrame(nt),nt=requestAnimationFrame(()=>F.forEach((t,e)=>st(e)))}function It(t){var r,u;if(t.key!=="Escape")return;const e=new Set,o=(u=(r=document.activeElement)==null?void 0:r.closest)==null?void 0:u.call(r,Ct);o&&e.add(o);try{document.querySelectorAll(`:is(${Ct}):hover`).forEach(l=>e.add(l))}catch{}const s=[...e].filter(l=>l.dataset.fullHidden===void 0&&l.querySelector(".clover-items-label-full"));s.length&&(t.preventDefault(),t.stopPropagation(),s.forEach(l=>Zt(l,"fullHidden",["pointerenter",l===o?"blur":"focus"])))}function ie(){var t,e;w=typeof ResizeObserver>"u"?null:new ResizeObserver(o=>o.forEach(s=>st(s.target))),x=typeof MutationObserver>"u"?null:new MutationObserver(rt),x==null||x.observe(document.head,{childList:true,subtree:true,characterData:true}),x==null||x.observe(document.documentElement,{attributes:true,attributeFilter:["style","class"]}),(e=(t=document.fonts)==null?void 0:t.addEventListener)==null||e.call(t,"loadingdone",rt),document.addEventListener("keydown",It,true)}function ce(){var t,e,o;cancelAnimationFrame(nt),(t=w==null?void 0:w.disconnect)==null||t.call(w),x==null||x.disconnect(),w=x=null,(o=(e=document.fonts)==null?void 0:e.removeEventListener)==null||o.call(e,"loadingdone",rt),document.removeEventListener("keydown",It,true)}function ue(t,e){var o;return F.size||ie(),F.set(t,{change:e}),(o=w==null?void 0:w.observe)==null||o.call(w,t),st(t),()=>{var s;F.delete(t),(s=w==null?void 0:w.unobserve)==null||s.call(w,t),F.size||ce()}}const de=O(()=>import("./NavDate-DWIV5F6P.mjs").then(t=>t.a).then(({NavDate:t})=>({default:t})));function me(t,e,o,s){const r=t.source!==void 0?t.source:Yt(t.resource),[u,l]=W(r==null?void 0:r.src),f=(r==null?void 0:r.src)??(r==null?void 0:r.service)??(r==null?void 0:r.fallback);return R(()=>{if(!r)return l(void 0);if(r.src)return l(r.src);if(!s)return;let i=true;return Jt(r,e,o).then(g=>{i&&l(g)}),()=>{i=false}},[f,e,s]),{src:u,none:!r}}const fe=()=>n("svg",{"aria-hidden":"true",focusable:"false",viewBox:"0 0 512 512",children:[n("path",{d:"M232 416a24 24 0 01-14.9-5.2L125.8 336H56a24 24 0 01-24-24V200a24 24 0 0124-24h69.8l91.3-74.8A24 24 0 01256 120v272a24 24 0 01-24 24z"}),n("path",{d:"M336 176a112 112 0 010 160M384 128a176 176 0 010 256",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"32"})]});function ve({part:t,size:e,request:o,alt:s,altLang:r}){const[u,l]=W(null),f=Qt(u,Xt,u==null?void 0:u.closest('[data-layout="slider"] .clover-items-viewport')),{src:i,none:g}=me(t,e,o,f),[m,c]=W(false),{width:k,height:h}=t.resource??{},b=k&&h?k/h:1;return n("span",{ref:l,className:"clover-items-picture","data-loaded":m,"data-empty":i?void 0:true,style:i&&!(k&&h)?void 0:{"--clover-items-ratio":b},children:[!i&&g&&Bt(t.media)&&n(fe,{}),i&&n("img",{src:i,alt:s,...M(s?r:void 0),width:e,height:Math.round(e/b),loading:"lazy",decoding:"async",draggable:false,onLoad:()=>c(true),onError:()=>c(true)}),t.duration?n("span",{className:"clover-items-duration",children:Ht(t.duration)}):null]})}function he({text:t,lang:e,first:o}){const s=T(null),[r,u]=W(false);return R(()=>{const l=s.current;if(!(!l||!t))return ue(l,u)},[t]),n("span",{className:"clover-items-label","data-clamped":r||void 0,children:[!o&&" ",n("span",{ref:s,className:"clover-items-label-text",...M(t?e:void 0),children:t}),r&&n("span",{className:"clover-items-label-full",...M(e),"aria-hidden":"true",hidden:true,children:t})]})}function pe({item:t,size:e,language:o,request:s,showSummary:r=false,secondary:u="summary",labels:l=true}){var c,k;const f=t.parts.map(h=>S(t.parts.length===1?t.label:h.label,o)),i=r&&u==="summary"?S(t.summary,o):null,g=r&&u==="navDate"?ee(t.navDate):null,m=f.some(h=>h.text);return n("figure",{role:"none",className:"clover-items-figure","data-parts":t.parts.length,"data-media":(k=(c=t.parts[0])==null?void 0:c.media)==null?void 0:k.toLowerCase(),style:{"--parts":t.parts.length},children:[n("span",{className:"clover-items-pictures",children:t.parts.map((h,b)=>{const $=f[b].text?{text:""}:S(h.label,o);return n(ve,{part:h,size:e,request:s,alt:$.text,altLang:$.lang},h.id)})}),(m||g||(i==null?void 0:i.text))&&n("figcaption",{className:"clover-items-caption",style:l?void 0:Mt,children:[f.map((h,b)=>n(he,{text:h.text,lang:h.lang,first:b===0},t.parts[b].id)),g&&n(_,{fallback:null,children:n(de,{value:t.navDate,className:"clover-items-date"})}),(i==null?void 0:i.text)&&n("span",{className:"clover-items-summary",...M(i.lang),children:i.text.replace(/<[^>]*>/g,"")})]})]})}function ge(t,e,{orientation:o="both",rtl:s=false,upward:r=false,onActivate:u,onMove:l}={}){const[f,i]=W(Math.max(0,e)),g=T([]),m=T(u);m.current=u;const c=T(l);c.current=l,R(()=>{e>=0&&i(e)},[e]);const k=Math.min(f,Math.max(0,t-1)),h=xt(v=>{var y;i(v),(y=g.current[v])==null||y.focus()},[]),b=xt((v,y)=>{var V,E;const B=s?"ArrowLeft":"ArrowRight",Q=s?"ArrowRight":"ArrowLeft",X=r?"ArrowUp":"ArrowDown",H=r?"ArrowDown":"ArrowUp",Z=o!=="vertical",tt=o!=="horizontal";let C=null;if(Z&&v.key===B||tt&&v.key===X)C=Math.min(t-1,y+1);else if(Z&&v.key===Q||tt&&v.key===H)C=Math.max(0,y-1);else if(v.key==="Home")C=0;else if(v.key==="End")C=t-1;else if(v.key==="Enter"||v.key===" "){(V=m.current)==null||V.call(m,y,v),v.preventDefault();return}C!==null&&(v.preventDefault(),h(C),C!==y&&((E=c.current)==null||E.call(c,C,v)))},[t,o,s,r,h]);return{focused:k,itemProps:v=>({ref:y=>{g.current[v]=y},tabIndex:v===k?0:-1,onKeyDown:y=>b(y,v),onFocus:()=>i(v)})}}const Oe=Ft(function(e,o){return!at()||e.iiifContent!==void 0||e.items!==void 0?n(_,{fallback:null,children:n(be,{...e,forwardedRef:o})}):n(we,{...e,forwardedRef:o})}),be=O(()=>import("./StandaloneItems-BrGYircX.mjs"));function we({of:t="views",...e}){return t==="targets"?n(ke,{...e}):t==="annotations"?n(xe,{...e}):t==="members"?n(At,{...e}):n(Ce,{...e})}const ye=O(()=>import("./TargetItems-CHK11XsC.mjs"));function ke(t){return q(o=>{var s;return(((s=o.targets)==null?void 0:s.items.length)??0)>1})?n(_,{fallback:null,children:n(ye,{...t})}):null}const Ne=O(()=>import("./AnnotationItems-DKP8AOB9.mjs"));function xe(t){return q(o=>!!Ot(o.manifest,o.addedSets))?n(_,{fallback:null,children:n(Ne,{...t})}):null}function At({onSelect:t,forwardedRef:e,...o}){const{clover:s,language:r}=at(),u=q(m=>m.collection),l=q(m=>{var c;return((c=m.manifest)==null?void 0:c.id)??null}),f=oe(u),i=$t(u==null?void 0:u.viewingDirection);if(!f.length)return null;const g=(m,c)=>{t==null||t(m,c),s.goToManifest(m.id)};if(o.layout==="pager"){const m=f.findIndex(c=>c.id===l);return n(Dt,{...o,forwardedRef:e,steps:Tt(f,m,i,g),nameKey:"informationPanelTabsCollection",position:n(Ie,{position:m,total:f.length,list:c=>n(At,{layout:"list",forwardedRef:null,onSelect:c})})})}return n(Et,{...o,forwardedRef:e,items:f,selected:f.findIndex(m=>m.id===l),navigation:"id",rtl:i==="right-to-left",upward:i==="bottom-to-top",language:r,request:s.request,showSummary:true,onActivate:g})}function Ce({onSelect:t,forwardedRef:e,singleItem:o=false,...s}){const{clover:r,language:u}=at(),l=q(c=>c.manifest),f=q(c=>Vt(c.manifest,c.canvasId)),i=q(c=>Kt(c.manifest).direction),g=ne(l);if(g.length<(o?1:2))return null;const m=c=>r.goTo(c.id);return s.layout==="pager"?n(Dt,{...s,forwardedRef:e,steps:Tt(g,f,i,m)}):n(Et,{...s,forwardedRef:e,items:g,selected:f,navigation:"id",rtl:i==="right-to-left",upward:i==="bottom-to-top",language:u,request:r.request,onActivate:(c,k)=>{t==null||t(c,k),r.goTo(c.id)},followFocus:m})}function Tt(t,e,o,s){return{position:e,total:t.length,direction:o,step:(r,u)=>{const l=t[e+r];l&&s(l,u)}}}const Me=O(()=>import("./PagerLayout-B-a-Bj7s.mjs")),Ie=O(()=>import("./PagerLayout-B-a-Bj7s.mjs").then(({CountMenu:t})=>({default:t})));function Dt(t){return n(_,{fallback:null,children:n(Me,{...t})})}function Et({forwardedRef:t,items:e,selected:o,navigation:s,rtl:r=false,upward:u=false,layout:l="slider",orientation:f="horizontal",thumbnailSize:i=200,request:g,language:m,showSummary:c=false,secondary:k="summary",labels:h=true,heading:b,headingLevel:$=2,renderItem:v,onActivate:y,followFocus:B,as:Q="section",className:X,"aria-label":H,size:Z,singleItem:tt,highContrast:C,...V}){var yt;const{t:E}=Ut(),K=jt(),z=Wt(t,V.lang),{langOf:G}=z,Lt=_t(C),I=l==="slider",L=I&&f==="vertical",U=L&&u,Y=s==="id",lt=T(null),it=l==="masonry";R(()=>{const a=lt.current;if(!it||!a)return;let d,p=true;return import("./masonry-BZCdA3bV.mjs").then(({attachMasonry:A})=>{p&&(d=A(a))}),()=>{p=false,d==null||d()}},[it]);const P=le({align:Y?"center":"start",itemCount:e.length,axis:L?"y":"x",upward:U}),et=T(void 0);R(()=>()=>window.clearTimeout(et.current),[]);const Pt=ge(e.length,o,{orientation:L?"vertical":l==="slider"?"horizontal":l==="list"?"vertical":"both",rtl:r,upward:U,onActivate:(a,d)=>y(e[a],d),onMove:B?(a,d)=>{window.clearTimeout(et.current);const p=()=>B(e[a]);d.repeat?et.current=window.setTimeout(p,150):p()}:void 0}),j=T(null),ct=T(false);ct.current=!!((yt=j.current)!=null&&yt.contains(j.current.ownerDocument.activeElement)),R(()=>{var A;const a=j.current;if(!a||!ct.current)return;const{activeElement:d,body:p}=a.ownerDocument;d&&d!==p||(A=a.querySelector(`[data-track-index="${Math.max(0,o)}"]`))==null||A.focus()},[e]);const ot=T(false);R(()=>{var p;if(o<0)return;const a=!ot.current;if(I){P.scrollToIndex(o,{instant:a})&&(ot.current=true);return}ot.current=true;const d=(p=j.current)==null?void 0:p.querySelector(`[data-track-index="${o}"]`);d&&Ae(d,a)},[I,o,P.scrollToIndex]);const St=se($),N=b?S(b.label,m):null,D=b?S(b.summary,m):null,ut=H===void 0&&!!(N!=null&&N.text),dt=ae(E("itemsLabel"),G("itemsLabel"),H!==void 0||ut,z.hostLanguage),mt=ut?{"aria-labelledby":`${K}-title`}:H!==void 0?{"aria-label":H}:dt.props,ft=(a,d)=>v?v(a,{selected:d}):n(pe,{item:a,size:i,language:m,request:g,showSummary:c,secondary:k,labels:h}),vt=a=>!(v||S(a.label,m).text||c&&k==="summary"&&S(a.summary,m).text),ht=(a,d)=>vt(a)?E("canvasPosition",{index:d+1,total:e.length}):void 0,pt=a=>vt(a)?G("canvasPosition"):void 0,gt=I?{display:"flex",flexDirection:U?"column-reverse":L?"column":void 0,margin:0,padding:0,listStyle:"none"}:void 0,bt=I?{flex:"0 0 auto",scrollSnapAlign:Y?"center":"start"}:void 0,J=Y&&o>=0,wt=a=>{const d=o+(a==="prev"?-1:1),p=J?d>=0&&d<e.length:a==="prev"?P.canScrollPrev:P.canScrollNext,A=J?a==="prev"?"commonPrevious":"commonNext":a==="prev"?"itemsScrollBack":"itemsScrollForward",kt=E(A),Rt=qt=>{if(!p)return;if(!J)return(a==="prev"?P.scrollPrev:P.scrollNext)();const Nt=e[d];B?B(Nt):y(Nt,qt)};return n("button",{type:"button",className:`clover-items-scroll-${a}`,"aria-controls":J?void 0:`${K}-viewport`,...M(G(A)),"aria-disabled":!p||void 0,tabIndex:p?void 0:-1,onClick:Rt,children:[n("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16",children:n("path",{d:L?a==="next"!==U?"M3 6l5 5 5-5":"M3 10l5-5 5 5":a==="next"!==r?"M6 3l5 5-5 5":"M10 3L5 8l5 5",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),n("span",{style:Mt,children:kt}),n(te,{label:kt})]})};return n(Gt.Provider,{value:z.hostLanguage,children:n(Q,{ref:z.ref,className:re("clover-items",X),"data-layout":l,"data-orientation":L?"vertical":void 0,"data-upward":U||void 0,"data-navigation":s,...zt(Lt),...V,children:[b&&((N==null?void 0:N.text)||(D==null?void 0:D.text))&&n("header",{className:"clover-items-header",children:[(N==null?void 0:N.text)&&n(St,{className:"clover-items-title clover-title",id:`${K}-title`,...M(N.lang),children:N.text}),(D==null?void 0:D.text)&&n("p",{className:"clover-items-description",...M(D.lang),children:D.text.replace(/<[^>]*>/g,"")}),b.homepage&&n("a",{className:"clover-items-homepage",href:b.homepage,hrefLang:b.homepageLang,...M(G("commonViewAll")),children:E("commonViewAll")})]}),n("div",{className:"clover-items-frame",style:{position:"relative"},dir:r?"rtl":void 0,children:[I&&wt("prev"),n("div",{id:`${K}-viewport`,className:"clover-items-viewport",ref:I?P.ref:lt,children:Y?n("div",{ref:j,role:"listbox",...mt,"aria-orientation":L?"vertical":I?"horizontal":l==="list"?"vertical":void 0,className:"clover-items-track",style:gt,children:e.map((a,d)=>{const p=d===o;return n("div",{id:`${K}-${d}`,role:"option","aria-selected":p,"aria-label":ht(a,d),...M(pt(a)),className:"clover-items-item","data-track-index":d,style:bt,...Pt.itemProps(d),onClick:A=>y(a,A),children:ft(a,p)},a.id)})}):n("ul",{...mt,className:"clover-items-track",style:gt,children:e.map((a,d)=>n("li",{className:"clover-items-item","data-track-index":d,style:bt,children:n("a",{className:"clover-items-link",href:a.href,hrefLang:a.hrefLang,"aria-label":ht(a,d),...M(pt(a)),draggable:false,onClick:p=>y(a,p),children:ft(a,false)})},a.id))})}),I&&wt("next")]}),dt.node]})})}function Ae(t,e){var l,f;let o=t.parentElement;for(;o&&o!==document.body;){const{overflowY:i}=getComputedStyle(o);if(/(auto|scroll)/.test(i)&&o.scrollHeight>o.clientHeight)break;o=o.parentElement}if(!o||o===document.body)return;const s=o.getBoundingClientRect(),r=t.getBoundingClientRect(),u=r.top<s.top?r.top-s.top:r.bottom>s.bottom?r.bottom-s.bottom:0;if(u){const i=(l=window.matchMedia)==null?void 0:l.call(window,"(prefers-reduced-motion: reduce)").matches;(f=o.scrollBy)==null||f.call(o,{top:u,behavior:e||i?"auto":"smooth"})}}export{Oe as I,Dt as P,Et as a,Tt as s};
|
|
1
|
+
import{t as S,u as n,v as Mt,P as _,z as O,l as M,d as W,af as Bt,am as Ht,A as T,y as R,q as xt,D as Ft,S as at,c as q,ak as Ot,a7 as $t,al as Vt,F as Kt,a as Ut,b as jt,a5 as Wt,a6 as _t,aa as zt,ab as Gt}from"./shared-BzLnvFn3.mjs";import{thumbnailSource as Yt,resolveThumbnail as Jt}from"./thumbnail-BcediRH4.mjs";import{u as Qt,N as Xt}from"./useNearViewport-BgvHaTUu.mjs";import{h as Zt,T as te}from"./Tip-h4Abk6aH.mjs";import{r as ee}from"./dates-DR3gfcON.mjs";import{i as oe,a as ne}from"./items-CtOmANs8.mjs";import{j as re}from"./classnames-DukgfdpI.mjs";import{u as ae}from"./useContainerName-DeDFbnAs.mjs";import{a as se}from"./heading-Cjt0f-Eu.mjs";import{u as le}from"./useScrollTrack-B7zWqV5x.mjs";import"./styles-DbqlZvMR.mjs";const Ct='.clover-items-item[role="option"], .clover-items-link',F=new Map;let w=null,x=null,nt=0;function st(t){const e=F.get(t);if(!e)return;const o=t.clientHeight>0&&t.scrollHeight>t.clientHeight+1;o!==e.cut&&(e.cut=o,e.change(o))}function rt(){cancelAnimationFrame(nt),nt=requestAnimationFrame(()=>F.forEach((t,e)=>st(e)))}function It(t){var r,u;if(t.key!=="Escape")return;const e=new Set,o=(u=(r=document.activeElement)==null?void 0:r.closest)==null?void 0:u.call(r,Ct);o&&e.add(o);try{document.querySelectorAll(`:is(${Ct}):hover`).forEach(l=>e.add(l))}catch{}const s=[...e].filter(l=>l.dataset.fullHidden===void 0&&l.querySelector(".clover-items-label-full"));s.length&&(t.preventDefault(),t.stopPropagation(),s.forEach(l=>Zt(l,"fullHidden",["pointerenter",l===o?"blur":"focus"])))}function ie(){var t,e;w=typeof ResizeObserver>"u"?null:new ResizeObserver(o=>o.forEach(s=>st(s.target))),x=typeof MutationObserver>"u"?null:new MutationObserver(rt),x==null||x.observe(document.head,{childList:true,subtree:true,characterData:true}),x==null||x.observe(document.documentElement,{attributes:true,attributeFilter:["style","class"]}),(e=(t=document.fonts)==null?void 0:t.addEventListener)==null||e.call(t,"loadingdone",rt),document.addEventListener("keydown",It,true)}function ce(){var t,e,o;cancelAnimationFrame(nt),(t=w==null?void 0:w.disconnect)==null||t.call(w),x==null||x.disconnect(),w=x=null,(o=(e=document.fonts)==null?void 0:e.removeEventListener)==null||o.call(e,"loadingdone",rt),document.removeEventListener("keydown",It,true)}function ue(t,e){var o;return F.size||ie(),F.set(t,{change:e}),(o=w==null?void 0:w.observe)==null||o.call(w,t),st(t),()=>{var s;F.delete(t),(s=w==null?void 0:w.unobserve)==null||s.call(w,t),F.size||ce()}}const de=O(()=>import("./NavDate-BQjEV2AU.mjs").then(t=>t.a).then(({NavDate:t})=>({default:t})));function me(t,e,o,s){const r=t.source!==void 0?t.source:Yt(t.resource),[u,l]=W(r==null?void 0:r.src),f=(r==null?void 0:r.src)??(r==null?void 0:r.service)??(r==null?void 0:r.fallback);return R(()=>{if(!r)return l(void 0);if(r.src)return l(r.src);if(!s)return;let i=true;return Jt(r,e,o).then(g=>{i&&l(g)}),()=>{i=false}},[f,e,s]),{src:u,none:!r}}const fe=()=>n("svg",{"aria-hidden":"true",focusable:"false",viewBox:"0 0 512 512",children:[n("path",{d:"M232 416a24 24 0 01-14.9-5.2L125.8 336H56a24 24 0 01-24-24V200a24 24 0 0124-24h69.8l91.3-74.8A24 24 0 01256 120v272a24 24 0 01-24 24z"}),n("path",{d:"M336 176a112 112 0 010 160M384 128a176 176 0 010 256",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"32"})]});function ve({part:t,size:e,request:o,alt:s,altLang:r}){const[u,l]=W(null),f=Qt(u,Xt,u==null?void 0:u.closest('[data-layout="slider"] .clover-items-viewport')),{src:i,none:g}=me(t,e,o,f),[m,c]=W(false),{width:k,height:h}=t.resource??{},b=k&&h?k/h:1;return n("span",{ref:l,className:"clover-items-picture","data-loaded":m,"data-empty":i?void 0:true,style:i&&!(k&&h)?void 0:{"--clover-items-ratio":b},children:[!i&&g&&Bt(t.media)&&n(fe,{}),i&&n("img",{src:i,alt:s,...M(s?r:void 0),width:e,height:Math.round(e/b),loading:"lazy",decoding:"async",draggable:false,onLoad:()=>c(true),onError:()=>c(true)}),t.duration?n("span",{className:"clover-items-duration",children:Ht(t.duration)}):null]})}function he({text:t,lang:e,first:o}){const s=T(null),[r,u]=W(false);return R(()=>{const l=s.current;if(!(!l||!t))return ue(l,u)},[t]),n("span",{className:"clover-items-label","data-clamped":r||void 0,children:[!o&&" ",n("span",{ref:s,className:"clover-items-label-text",...M(t?e:void 0),children:t}),r&&n("span",{className:"clover-items-label-full",...M(e),"aria-hidden":"true",hidden:true,children:t})]})}function pe({item:t,size:e,language:o,request:s,showSummary:r=false,secondary:u="summary",labels:l=true}){var c,k;const f=t.parts.map(h=>S(t.parts.length===1?t.label:h.label,o)),i=r&&u==="summary"?S(t.summary,o):null,g=r&&u==="navDate"?ee(t.navDate):null,m=f.some(h=>h.text);return n("figure",{role:"none",className:"clover-items-figure","data-parts":t.parts.length,"data-media":(k=(c=t.parts[0])==null?void 0:c.media)==null?void 0:k.toLowerCase(),style:{"--parts":t.parts.length},children:[n("span",{className:"clover-items-pictures",children:t.parts.map((h,b)=>{const $=f[b].text?{text:""}:S(h.label,o);return n(ve,{part:h,size:e,request:s,alt:$.text,altLang:$.lang},h.id)})}),(m||g||(i==null?void 0:i.text))&&n("figcaption",{className:"clover-items-caption",style:l?void 0:Mt,children:[f.map((h,b)=>n(he,{text:h.text,lang:h.lang,first:b===0},t.parts[b].id)),g&&n(_,{fallback:null,children:n(de,{value:t.navDate,className:"clover-items-date"})}),(i==null?void 0:i.text)&&n("span",{className:"clover-items-summary",...M(i.lang),children:i.text.replace(/<[^>]*>/g,"")})]})]})}function ge(t,e,{orientation:o="both",rtl:s=false,upward:r=false,onActivate:u,onMove:l}={}){const[f,i]=W(Math.max(0,e)),g=T([]),m=T(u);m.current=u;const c=T(l);c.current=l,R(()=>{e>=0&&i(e)},[e]);const k=Math.min(f,Math.max(0,t-1)),h=xt(v=>{var y;i(v),(y=g.current[v])==null||y.focus()},[]),b=xt((v,y)=>{var V,E;const B=s?"ArrowLeft":"ArrowRight",Q=s?"ArrowRight":"ArrowLeft",X=r?"ArrowUp":"ArrowDown",H=r?"ArrowDown":"ArrowUp",Z=o!=="vertical",tt=o!=="horizontal";let C=null;if(Z&&v.key===B||tt&&v.key===X)C=Math.min(t-1,y+1);else if(Z&&v.key===Q||tt&&v.key===H)C=Math.max(0,y-1);else if(v.key==="Home")C=0;else if(v.key==="End")C=t-1;else if(v.key==="Enter"||v.key===" "){(V=m.current)==null||V.call(m,y,v),v.preventDefault();return}C!==null&&(v.preventDefault(),h(C),C!==y&&((E=c.current)==null||E.call(c,C,v)))},[t,o,s,r,h]);return{focused:k,itemProps:v=>({ref:y=>{g.current[v]=y},tabIndex:v===k?0:-1,onKeyDown:y=>b(y,v),onFocus:()=>i(v)})}}const Oe=Ft(function(e,o){return!at()||e.iiifContent!==void 0||e.items!==void 0?n(_,{fallback:null,children:n(be,{...e,forwardedRef:o})}):n(we,{...e,forwardedRef:o})}),be=O(()=>import("./StandaloneItems-DSTZPmPt.mjs"));function we({of:t="views",...e}){return t==="targets"?n(ke,{...e}):t==="annotations"?n(xe,{...e}):t==="members"?n(At,{...e}):n(Ce,{...e})}const ye=O(()=>import("./TargetItems-BDt6OXh8.mjs"));function ke(t){return q(o=>{var s;return(((s=o.targets)==null?void 0:s.items.length)??0)>1})?n(_,{fallback:null,children:n(ye,{...t})}):null}const Ne=O(()=>import("./AnnotationItems-D5YRBYo7.mjs"));function xe(t){return q(o=>!!Ot(o.manifest,o.addedSets))?n(_,{fallback:null,children:n(Ne,{...t})}):null}function At({onSelect:t,forwardedRef:e,...o}){const{clover:s,language:r}=at(),u=q(m=>m.collection),l=q(m=>{var c;return((c=m.manifest)==null?void 0:c.id)??null}),f=oe(u),i=$t(u==null?void 0:u.viewingDirection);if(!f.length)return null;const g=(m,c)=>{t==null||t(m,c),s.goToManifest(m.id)};if(o.layout==="pager"){const m=f.findIndex(c=>c.id===l);return n(Dt,{...o,forwardedRef:e,steps:Tt(f,m,i,g),nameKey:"informationPanelTabsCollection",position:n(Ie,{position:m,total:f.length,list:c=>n(At,{layout:"list",forwardedRef:null,onSelect:c})})})}return n(Et,{...o,forwardedRef:e,items:f,selected:f.findIndex(m=>m.id===l),navigation:"id",rtl:i==="right-to-left",upward:i==="bottom-to-top",language:r,request:s.request,showSummary:true,onActivate:g})}function Ce({onSelect:t,forwardedRef:e,singleItem:o=false,...s}){const{clover:r,language:u}=at(),l=q(c=>c.manifest),f=q(c=>Vt(c.manifest,c.canvasId)),i=q(c=>Kt(c.manifest).direction),g=ne(l);if(g.length<(o?1:2))return null;const m=c=>r.goTo(c.id);return s.layout==="pager"?n(Dt,{...s,forwardedRef:e,steps:Tt(g,f,i,m)}):n(Et,{...s,forwardedRef:e,items:g,selected:f,navigation:"id",rtl:i==="right-to-left",upward:i==="bottom-to-top",language:u,request:r.request,onActivate:(c,k)=>{t==null||t(c,k),r.goTo(c.id)},followFocus:m})}function Tt(t,e,o,s){return{position:e,total:t.length,direction:o,step:(r,u)=>{const l=t[e+r];l&&s(l,u)}}}const Me=O(()=>import("./PagerLayout-DwHzuFi9.mjs")),Ie=O(()=>import("./PagerLayout-DwHzuFi9.mjs").then(({CountMenu:t})=>({default:t})));function Dt(t){return n(_,{fallback:null,children:n(Me,{...t})})}function Et({forwardedRef:t,items:e,selected:o,navigation:s,rtl:r=false,upward:u=false,layout:l="slider",orientation:f="horizontal",thumbnailSize:i=200,request:g,language:m,showSummary:c=false,secondary:k="summary",labels:h=true,heading:b,headingLevel:$=2,renderItem:v,onActivate:y,followFocus:B,as:Q="section",className:X,"aria-label":H,size:Z,singleItem:tt,highContrast:C,...V}){var yt;const{t:E}=Ut(),K=jt(),z=Wt(t,V.lang),{langOf:G}=z,Lt=_t(C),I=l==="slider",L=I&&f==="vertical",U=L&&u,Y=s==="id",lt=T(null),it=l==="masonry";R(()=>{const a=lt.current;if(!it||!a)return;let d,p=true;return import("./masonry-BZCdA3bV.mjs").then(({attachMasonry:A})=>{p&&(d=A(a))}),()=>{p=false,d==null||d()}},[it]);const P=le({align:Y?"center":"start",itemCount:e.length,axis:L?"y":"x",upward:U}),et=T(void 0);R(()=>()=>window.clearTimeout(et.current),[]);const Pt=ge(e.length,o,{orientation:L?"vertical":l==="slider"?"horizontal":l==="list"?"vertical":"both",rtl:r,upward:U,onActivate:(a,d)=>y(e[a],d),onMove:B?(a,d)=>{window.clearTimeout(et.current);const p=()=>B(e[a]);d.repeat?et.current=window.setTimeout(p,150):p()}:void 0}),j=T(null),ct=T(false);ct.current=!!((yt=j.current)!=null&&yt.contains(j.current.ownerDocument.activeElement)),R(()=>{var A;const a=j.current;if(!a||!ct.current)return;const{activeElement:d,body:p}=a.ownerDocument;d&&d!==p||(A=a.querySelector(`[data-track-index="${Math.max(0,o)}"]`))==null||A.focus()},[e]);const ot=T(false);R(()=>{var p;if(o<0)return;const a=!ot.current;if(I){P.scrollToIndex(o,{instant:a})&&(ot.current=true);return}ot.current=true;const d=(p=j.current)==null?void 0:p.querySelector(`[data-track-index="${o}"]`);d&&Ae(d,a)},[I,o,P.scrollToIndex]);const St=se($),N=b?S(b.label,m):null,D=b?S(b.summary,m):null,ut=H===void 0&&!!(N!=null&&N.text),dt=ae(E("itemsLabel"),G("itemsLabel"),H!==void 0||ut,z.hostLanguage),mt=ut?{"aria-labelledby":`${K}-title`}:H!==void 0?{"aria-label":H}:dt.props,ft=(a,d)=>v?v(a,{selected:d}):n(pe,{item:a,size:i,language:m,request:g,showSummary:c,secondary:k,labels:h}),vt=a=>!(v||S(a.label,m).text||c&&k==="summary"&&S(a.summary,m).text),ht=(a,d)=>vt(a)?E("canvasPosition",{index:d+1,total:e.length}):void 0,pt=a=>vt(a)?G("canvasPosition"):void 0,gt=I?{display:"flex",flexDirection:U?"column-reverse":L?"column":void 0,margin:0,padding:0,listStyle:"none"}:void 0,bt=I?{flex:"0 0 auto",scrollSnapAlign:Y?"center":"start"}:void 0,J=Y&&o>=0,wt=a=>{const d=o+(a==="prev"?-1:1),p=J?d>=0&&d<e.length:a==="prev"?P.canScrollPrev:P.canScrollNext,A=J?a==="prev"?"commonPrevious":"commonNext":a==="prev"?"itemsScrollBack":"itemsScrollForward",kt=E(A),Rt=qt=>{if(!p)return;if(!J)return(a==="prev"?P.scrollPrev:P.scrollNext)();const Nt=e[d];B?B(Nt):y(Nt,qt)};return n("button",{type:"button",className:`clover-items-scroll-${a}`,"aria-controls":J?void 0:`${K}-viewport`,...M(G(A)),"aria-disabled":!p||void 0,tabIndex:p?void 0:-1,onClick:Rt,children:[n("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16",children:n("path",{d:L?a==="next"!==U?"M3 6l5 5 5-5":"M3 10l5-5 5 5":a==="next"!==r?"M6 3l5 5-5 5":"M10 3L5 8l5 5",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),n("span",{style:Mt,children:kt}),n(te,{label:kt})]})};return n(Gt.Provider,{value:z.hostLanguage,children:n(Q,{ref:z.ref,className:re("clover-items",X),"data-layout":l,"data-orientation":L?"vertical":void 0,"data-upward":U||void 0,"data-navigation":s,...zt(Lt),...V,children:[b&&((N==null?void 0:N.text)||(D==null?void 0:D.text))&&n("header",{className:"clover-items-header",children:[(N==null?void 0:N.text)&&n(St,{className:"clover-items-title clover-title",id:`${K}-title`,...M(N.lang),children:N.text}),(D==null?void 0:D.text)&&n("p",{className:"clover-items-description",...M(D.lang),children:D.text.replace(/<[^>]*>/g,"")}),b.homepage&&n("a",{className:"clover-items-homepage",href:b.homepage,hrefLang:b.homepageLang,...M(G("commonViewAll")),children:E("commonViewAll")})]}),n("div",{className:"clover-items-frame",style:{position:"relative"},dir:r?"rtl":void 0,children:[I&&wt("prev"),n("div",{id:`${K}-viewport`,className:"clover-items-viewport",ref:I?P.ref:lt,children:Y?n("div",{ref:j,role:"listbox",...mt,"aria-orientation":L?"vertical":I?"horizontal":l==="list"?"vertical":void 0,className:"clover-items-track",style:gt,children:e.map((a,d)=>{const p=d===o;return n("div",{id:`${K}-${d}`,role:"option","aria-selected":p,"aria-label":ht(a,d),...M(pt(a)),className:"clover-items-item","data-track-index":d,style:bt,...Pt.itemProps(d),onClick:A=>y(a,A),children:ft(a,p)},a.id)})}):n("ul",{...mt,className:"clover-items-track",style:gt,children:e.map((a,d)=>n("li",{className:"clover-items-item","data-track-index":d,style:bt,children:n("a",{className:"clover-items-link",href:a.href,hrefLang:a.hrefLang,"aria-label":ht(a,d),...M(pt(a)),draggable:false,onClick:p=>y(a,p),children:ft(a,false)})},a.id))})}),I&&wt("next")]}),dt.node]})})}function Ae(t,e){var l,f;let o=t.parentElement;for(;o&&o!==document.body;){const{overflowY:i}=getComputedStyle(o);if(/(auto|scroll)/.test(i)&&o.scrollHeight>o.clientHeight)break;o=o.parentElement}if(!o||o===document.body)return;const s=o.getBoundingClientRect(),r=t.getBoundingClientRect(),u=r.top<s.top?r.top-s.top:r.bottom>s.bottom?r.bottom-s.bottom:0;if(u){const i=(l=window.matchMedia)==null?void 0:l.call(window,"(prefers-reduced-motion: reduce)").matches;(f=o.scrollBy)==null||f.call(o,{top:u,behavior:e||i?"auto":"smooth"})}}export{Oe as I,Dt as P,Et as a,Tt as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as g,a0 as b,S as d,t as x,u as C,l as L,a2 as P}from"./shared-
|
|
1
|
+
import{D as g,a0 as b,S as d,t as x,u as C,l as L,a2 as P}from"./shared-BzLnvFn3.mjs";import{t as j}from"./text-BTAkxEfQ.mjs";import{j as O}from"./classnames-DukgfdpI.mjs";import{u as S}from"./resource-CtPBxzcn.mjs";const R=g(function({of:r="manifest",label:t,as:i="span",className:c,...m},u){var l;const f=b(a=>{var s,n;return r==="canvas"?(s=P(a.manifest,a.canvasId))==null?void 0:s.label:(n=a.manifest)==null?void 0:n.label},void 0),o=S(),p=(l=d())==null?void 0:l.language,{text:e,lang:v}=x(t??(o?o.label:f),p);return e?C(i,{ref:u,className:O("clover-label",c),...L(v),...m,children:j(e)}):null});export{R as L};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as _,b as T,u as o,z as $,P as k,l as z,v as L,k as M,d as m,A as j,_ as E}from"./shared-
|
|
1
|
+
import{a as _,b as T,u as o,z as $,P as k,l as z,v as L,k as M,d as m,A as j,_ as E}from"./shared-BzLnvFn3.mjs";import{l as F}from"./languageCode-cCpiU0b0.mjs";import{T as G}from"./Tip-h4Abk6aH.mjs";import{u as I}from"./useContainerName-DeDFbnAs.mjs";import{G as P}from"./GlobeGlyph-D3XRo_IQ.mjs";function W(e){try{return new Intl.DisplayNames([e],{type:"language"}).of(e)??e}catch{return e}}const x=$(()=>import("./LanguageMenu-DEoDIxlR.mjs")),B=5;function q(e,s){const r=e.style.whiteSpace;e.style.whiteSpace="nowrap";const n=e.getBoundingClientRect();return e.style.whiteSpace=r,s?n.left:n.right}function A(e,s,r){const[n,a]=m(null),i=j(0),[c,d]=m(false),[g,u]=m(false),[p,h]=m(r);return p!==r&&(h(r),d(false)),E(()=>{const t=n&&(e==null?void 0:e(n));if(n&&u(!!t),!n||!t)return;const{label:l,box:y}=t,v=()=>{const f=getComputedStyle(y).direction==="rtl",w=y.getBoundingClientRect();c||(i.current=w.width);const S=f?w.left:w.right,C=f?S+i.current:S-i.current,O=parseFloat(getComputedStyle(y).paddingInlineStart)||0,N=q(l,f),R=f?N<C+O:N>C-O;R!==c&&d(R)};if(v(),typeof ResizeObserver>"u")return;const b=new ResizeObserver(v);return b.observe(l),l.parentElement&&b.observe(l.parentElement),()=>b.disconnect()},[e,c,s,n]),{place:a,folded:g?c:s>B}}function D({languages:e,chosen:s,onChange:r,nameKey:n,part:a,fit:i}){const{t:c,langOf:d}=_(),g=T(),u=I(c(n),d(n)),{place:p,folded:h}=A(i,e.length,e.join(" "));return h?o(k,{fallback:null,children:o(x,{languages:e,chosen:s,onChange:r,nameKey:n,part:a,placeRef:p})}):o(M,{children:[u.node,o("fieldset",{...u.props,className:`${a}-languages`,ref:p,children:[o("span",{className:"clover-languages-glyph","aria-hidden":"true",children:o(P,{})}),e.map(t=>{const l=W(t);return o("label",{className:`${a}-language`,children:[o("input",{type:"radio",name:`${g}-language`,checked:t===s,onChange:()=>r(t)}),o("span",{className:`${a}-language-code`,children:F(t)})," ",o("span",{style:L,...z(t),children:l}),o(G,{label:l,lang:t})]},t)})]})]})}const X=Object.freeze(Object.defineProperty({__proto__:null,LanguageChoice:D},Symbol.toStringTag,{value:"Module"}));export{D as L,W as a,X as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as C,d as $,b as N,q as T,u as a,l as i}from"./shared-
|
|
1
|
+
import{a as C,d as $,b as N,q as T,u as a,l as i}from"./shared-BzLnvFn3.mjs";import y from"./ControlMenu-CbGB6ddJ.mjs";import{a as x}from"./LanguageChoice-CPvKeMS_.mjs";import{l as d}from"./languageCode-cCpiU0b0.mjs";import{C as G}from"./Chevron-h5qzcEcw.mjs";import{G as I}from"./GlobeGlyph-D3XRo_IQ.mjs";import{T as k}from"./Tip-h4Abk6aH.mjs";function j({languages:g,chosen:r,onChange:m,nameKey:u,part:p,placeRef:f}){const{t:h,langOf:b}=C(),[l,s]=$(false),n=`${N()}-languages`,v=T(e=>{var o;s(false),e&&((o=document.getElementById(n))==null||o.focus())},[n]),t=h(u),c=b(u);return a("span",{ref:f,className:`${p}-languages clover-languages-folded`,onBlur:e=>{const o=e.relatedTarget;l&&o&&!e.currentTarget.contains(o)&&s(false)},children:[a("button",{type:"button",id:n,className:"clover-languages-button","aria-label":`${d(r)}, ${t}`,...i(c),"aria-expanded":l,"aria-controls":l?`${n}-menu`:void 0,onClick:()=>s(e=>!e),children:[a(I,{}),a("span",{className:"clover-languages-code","aria-hidden":"true",children:d(r)}),a(G,{open:l,className:"clover-languages-caret"}),a(k,{label:t,lang:c})]}),l&&a(y,{id:`${n}-menu`,triggerId:n,onClose:v,className:"clover-languages-menu",children:a("fieldset",{children:[a("legend",{...i(c),children:t}),g.map(e=>a("label",{className:"clover-languages-option",children:[a("input",{type:"radio",name:`${n}-language`,checked:e===r,onChange:()=>m(e)}),a("span",{...i(e),children:x(e)})]},e))]})})]})}export{j as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as L,y as N,u as r}from"./shared-
|
|
1
|
+
import{A as L,y as N,u as r}from"./shared-BzLnvFn3.mjs";import{c as I,u as F,b as M,B as q,d as A,P as D,f as O,S as _}from"./viewer-PeMy2VzH.mjs";import{B as k}from"./Body-CLEco7_N.mjs";import{L as G}from"./Label-Bo3CK-L6.mjs";import{I as K}from"./Items-Ch80infd.mjs";function z({id:m,annotations:p,items:i,headingLevel:b,panel:a=true,defaultPanelOpen:f=true,panelLayout:g="accordion",panelSections:c,panelLabels:v,download:h=true,languages:y=true,interfaceLanguages:x=true,storageKey:P,collapseControls:w,canvasOptions:E,placeholder:S,caption:B=true}){const s=L(null);N(()=>{var d;const e=(d=s.current)==null?void 0:d.closest('[role="dialog"]');if(!e||i==="pager")return;const l=()=>{var t;return(t=e.ownerDocument.activeElement)==null?void 0:t.matches(".clover-template-lightbox-close")},u=()=>{const t=e.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');return t&&l()&&t.focus({preventScroll:true}),!!t};if(u()||!l())return;const n=new MutationObserver(()=>{(u()||!l())&&n.disconnect()});return n.observe(e,{childList:true,subtree:true}),()=>n.disconnect()},[]);const o=I({id:`${m}-panel`,beside:M(s,q),defaultOpen:f,followFocus:F(),sections:c,body:()=>{var e;return(e=s.current)==null?void 0:e.querySelector(".clover-template-lightbox-body")}});return r(_,{ref:s,className:"clover-template-lightbox-panes clover-template-panes",storageKey:P||void 0,...a?o.splitProps:{"data-panel":"beside"},children:[r(A,{ref:o.main,className:"clover-template-lightbox-main",min:a&&o.over?void 0:D,children:[r(k,{className:"clover-template-lightbox-body",collapseControls:w,options:E,placeholder:S,children:a&&!o.docked&&o.toggle}),B&&r(G,{of:"canvas",as:"p",className:"clover-template-lightbox-caption"}),r(K,{layout:i==="pager"?"pager":"slider",...p&&{of:"annotations"}})]}),a&&r(O,{pane:o,layout:g,sections:c,labels:v,download:h,languages:y,interfaceLanguages:x,headingLevel:(b??3)+1})]})}export{z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as x,c as u,w as y,au as g,n as P,d as w,y as h,q as A,A as f,u as C}from"./shared-
|
|
1
|
+
import{e as x,c as u,w as y,au as g,n as P,d as w,y as h,q as A,A as f,u as C}from"./shared-BzLnvFn3.mjs";function k(n){const{clover:s}=x("Annotations"),c=u(e=>{var t;return e.annotationId?(t=y(g(e.manifest),e.annotationId))==null?void 0:t.setId:void 0}),o=u(e=>P(e.manifest,e.canvasId)),[r,d]=w(0),i=n.findIndex(e=>!e.fetched),a=i===-1?n.length:i,v=n.reduce((e,t,I)=>o.some(b=>b.id===t.canvasId)?I:e,-1),l=Math.max(r,n.findIndex(e=>e.id===c),v,0);h(()=>{const e=n.slice(0,l+1).filter(t=>!t.fetched).map(t=>t.id);e.length&&s.fetchAnnotationPages(e)},[s,n,l]);const m=A(()=>d(e=>Math.max(e,a)),[a]);return{loaded:a,more:a<n.length,reachNext:m}}function p({onReached:n}){const s=f(null),c=f(n);return c.current=n,h(()=>{const o=s.current;if(!o||typeof IntersectionObserver>"u")return;const r=new IntersectionObserver(d=>{d.some(i=>i.isIntersecting)&&c.current()});return r.observe(o),()=>r.disconnect()},[]),C("span",{ref:s,className:"clover-list-end","aria-hidden":"true",style:{display:"block",height:1}})}export{p as L,k as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as y,y as S,aM as h,u as a}from"./shared-
|
|
1
|
+
import{d as y,y as S,aM as h,u as a}from"./shared-BzLnvFn3.mjs";import{S as b}from"./SceneView-BgjiTjRe.mjs";import{C as u}from"./Pending-Dagi9Hhc.mjs";import{B as p}from"./BodyAlert-BP4r3Cd6.mjs";function B({iiifContent:r,...s}){var l;const[e,n]=y({state:"loading"}),d=(l=s.options)==null?void 0:l.request,w=typeof r=="string"?r:String((r==null?void 0:r.id)??"");return S(()=>{let o=true;return n({state:"loading"}),(async()=>{var m;const t=await h(r,{request:d}),i=(t.manifest.items??[]).filter(c=>c.type==="Scene"),g=(m=t.target)==null?void 0:m.canvasId,f=i.find(c=>c.id===g)??i[0];if(!f)throw new Error("It has no Scene to show.");o&&n({state:"ready",scene:f,manifest:t.manifest})})().catch(t=>{o&&n({state:"error",error:t instanceof Error?t:new Error(String(t))})}),()=>{o=false}},[w,d]),e.state==="ready"?a(b,{...s,scene:e.scene,manifestId:String(e.manifest.id??""),label:s.label??e.scene.label??e.manifest.label}):e.state==="error"?a(u,{children:a(p,{error:e.error})}):a(u,{})}export{B as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as q,y as x,aM as Z,A as b,q as $,f as _,u as p,aB as G,aE as R}from"./shared-
|
|
1
|
+
import{d as q,y as x,aM as Z,A as b,q as $,f as _,u as p,aB as G,aE as R}from"./shared-BzLnvFn3.mjs";import{C as k}from"./CanvasView-BCyHQxwA.mjs";import{a as y,u as tt}from"./fromManifest-B8AlKP6a.mjs";import{j as H}from"./layout-BmDYodJC.mjs";import{C as J}from"./Pending-Dagi9Hhc.mjs";import{B as nt}from"./BodyAlert-BP4r3Cd6.mjs";import{loadAnnotationSets as at}from"./annotation-collection-BH66kiGL.mjs";const et=()=>import("./shared-BzLnvFn3.mjs").then(o=>o.aQ);function dt({iiifContent:o,onAnnotationLink:d,onReady:u,onMediaElement:i,placeholder:A=true,of:l,...r}){var M,Q,T,z;const[n,s]=q({state:"loading"}),v=(M=r.options)==null?void 0:M.request,B=typeof o=="string"?o:String((o==null?void 0:o.id)??""),[h,K]=q(null),c=(h==null?void 0:h.key)===B?h:null;x(()=>{let a=true;return s(e=>e.state==="ready"?{...e,next:true}:{state:"loading"}),(async()=>{var D;const e=await Z((c==null?void 0:c.manifestId)??o,{request:v}),m=(e.manifest.items??[]).filter(w=>l?w.type===l:w.type!=="Scene"),g=(c==null?void 0:c.canvasId)??((D=e.target)==null?void 0:D.canvasId),I=m.find(w=>w.id===g)??m[0];if(!I)throw new Error(`It has no ${l??"Canvas"} to show.`);a&&s({state:"ready",content:e,canvas:I})})().catch(e=>{a&&s({state:"error",error:e instanceof Error?e:new Error(String(e))})}),()=>{a=false}},[B,c==null?void 0:c.manifestId,c==null?void 0:c.canvasId,v,l]);const t=n.state==="ready"?n:null,[N,V]=q([]),j=!!r.annotations;x(()=>{if(V(e=>e.length?[]:e),!t||j)return;let a=true;return st(t.canvas,t.content,v).then(e=>{a&&e.length&&V(e)}).catch(()=>{}),()=>{a=false}},[t==null?void 0:t.canvas,t==null?void 0:t.content,v,j]);const U=a=>{var g;if(!t)return;const{manifest:e}=t.content,m=(g=e.items)==null?void 0:g.find(I=>I.id===a.canvasId);m?s({...t,canvas:m}):a.manifestId&&a.manifestId!==e.id&&K({...a,key:B,manifestId:a.manifestId})},L=((Q=t==null?void 0:t.content.target)==null?void 0:Q.canvasId)===(t==null?void 0:t.canvas.id)&&!!((T=t==null?void 0:t.content.target)!=null&&T.region||((z=t==null?void 0:t.content.target)==null?void 0:z.time)!==void 0),P=b(null),C=b(null),E=b(null),S=b(null);S.current=(t==null?void 0:t.canvas)??null;const f=$(()=>{const a=P.current;if(!a||!S.current)return;const e=H(S.current).length>0;y(a,C.current,E.current,e)&&(P.current=null)},[]);x(()=>{P.current=L?(t==null?void 0:t.content.target)??null:null,f()},[t==null?void 0:t.content,t==null?void 0:t.canvas,L,f]);const W=$(a=>{C.current=a,a.on("change",f),f(),u==null||u(a)},[f,u]),X=$(a=>{E.current=a,a&&f(),i==null||i(a)},[f,i]),F=t&&H(t.canvas).length?t.canvas:void 0,O=_(et,!!F),Y=tt(t==null?void 0:t.content.manifest,F,r.language,(O==null?void 0:O.chaptersOf)??null);return n.state==="ready"?p(k,{...r,manifestId:n.next?"loading":n.content.manifest.id,canvases:[n.canvas],label:r.label??n.canvas.label??n.content.manifest.label,partOf:r.partOf??n.content.manifest.label,navPlace:r.navPlace??n.content.manifest.navPlace,annotations:r.annotations??N,onAnnotationLink:d??U,chapters:r.chapters??Y,placeholder:A&&!L,onReady:W,onMediaElement:X}):n.state==="error"?p(J,{children:p(nt,{error:n.error})}):p(J,{})}async function st(o,d,u){const i=o.annotations??[],A=i.filter(n=>Array.isArray(n==null?void 0:n.items)),l=i.filter(n=>!Array.isArray(n==null?void 0:n.items));return[...A.map((n,s)=>({id:n.id??`annotations-${s}`,label:R(n),entries:G(n,n.id??`annotations-${s}`,o.id)})),...l.length?await at(l,{request:u}):[],...d.annotation?[{id:"content-state",entries:G({items:[d.annotation]},"content-state")}]:[],...d.annotationSets??[]].flatMap(n=>n.entries.filter(s=>s.canvasId===o.id).map(s=>({annotation:s.annotation,targetIndex:0,pageId:n.id,...n.label?{pageLabel:n.label}:{},...s.place?{place:s.place}:{}})))}export{dt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as o}from"./shared-BzLnvFn3.mjs";import{ConnectedMap as l}from"./MapView-Bh4hjBql.mjs";import{R as p}from"./Root-ijCOCdMK.mjs";function m({iiifContent:t,request:a,language:e,forwardedRef:n,...r}){return o(p,{iiifContent:t,request:a,language:e,annotationPages:"all",style:{display:"contents"},children:o(l,{...r,scope:"all",forwardedRef:n})})}export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as a}from"./shared-
|
|
1
|
+
import{u as a}from"./shared-BzLnvFn3.mjs";import{j as i}from"./classnames-DukgfdpI.mjs";import"./styles-DbqlZvMR.mjs";function d({overlay:o=false,className:r}){return a("span",{"aria-hidden":"true",className:i("clover-loading",r),"data-overlay":o||void 0,children:a("span",{})})}export{d as L};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as d,S as l,u as e,z as s,P as c}from"./shared-
|
|
1
|
+
import{D as d,S as l,u as e,z as s,P as c}from"./shared-BzLnvFn3.mjs";import{ConnectedMap as v,GivenMap as f}from"./MapView-Bh4hjBql.mjs";import{j as m}from"./classnames-DukgfdpI.mjs";const g=s(()=>import("./LoadedMap-CKE1VBTk.mjs")),y=d(function(o,t){const r=l(),{iiifContent:i,request:u,language:h,...a}=o;if(i!==void 0)return e(c,{fallback:e("div",{className:m("clover-geomap",a.className),"data-status":"loading",style:a.style,children:e("div",{style:{height:"var(--clover-map-height, 24rem)"}})}),children:e(g,{...o,forwardedRef:t})});const n=o.navPlace!==void 0||o.georeferences!==void 0;return r&&!n?e(v,{...a,scope:"view",forwardedRef:t}):e(f,{...a,forwardedRef:t})});export{y as CloverMap};
|