@nulib/clover 4.4.1 → 4.5.0
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/README.md +4 -3
- package/dist/components/Annotations/Annotations.mjs +11 -5
- package/dist/components/Body/Caption.mjs +1 -1
- package/dist/components/Canvas/AnnotationMenu.mjs +16 -2
- package/dist/components/Canvas/AnnotationState.mjs +27 -23
- package/dist/components/Canvas/ControlMenu.mjs +9 -0
- package/dist/components/Canvas/PlaceBox.mjs +8 -0
- package/dist/components/Canvas/media/Transport.mjs +32 -18
- package/dist/components/Items/CountMenu.mjs +13 -1
- package/dist/components/Items/Items.mjs +24 -7
- package/dist/components/Items/PagerLayout.mjs +1 -0
- package/dist/components/Map/MapView.mjs +31 -19
- package/dist/components/Panel/About.mjs +16 -5
- package/dist/components/Panel/AboutActions.mjs +10 -16
- package/dist/components/Panel/LanguageToggle.mjs +69 -0
- package/dist/components/Panel/Panel.mjs +9 -1
- package/dist/components/Panel/ReadingLanguages.mjs +2 -16
- package/dist/components/Panel/sections.mjs +6 -1
- package/dist/components/Root/useRootState.mjs +43 -4
- package/dist/components/Search/Search.mjs +10 -7
- package/dist/components/Transcript/Transcript.mjs +42 -33
- package/dist/core/image-service-content.mjs +108 -0
- package/dist/core/load.mjs +38 -1
- package/dist/core/value.mjs +1 -1
- package/dist/i18n/config.mjs +88 -14
- package/dist/i18n/direction.mjs +2 -2
- package/dist/i18n/languages.mjs +42 -8
- package/dist/i18n/locales/index.mjs +4 -1
- package/dist/i18n/locales/ja.json.mjs +5 -0
- package/dist/i18n/locales/zh-Hans.json.mjs +5 -0
- package/dist/i18n/locales/zh-Hant.json.mjs +5 -0
- package/dist/index.d.mts +109 -24
- package/dist/lib/renderer/CanvasRenderer.mjs +20 -5
- package/dist/map/index.d.mts +3 -2
- package/dist/react/readingLanguages.mjs +15 -2
- package/dist/styles/core.css +1 -1
- package/dist/styles/default.css +1 -1
- package/dist/styles/items.css +1 -1
- package/dist/styles/map.css +1 -1
- package/dist/styles/media.css +1 -1
- package/dist/styles/panel.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/templates/default/Default.mjs +3 -0
- package/dist/templates/document/Document.mjs +6 -1
- package/dist/templates/gallery/Gallery.mjs +2 -0
- package/dist/templates/index.d.mts +56 -11
- package/dist/templates/shared/LightboxView.mjs +3 -0
- package/dist/templates/shared/useDrawer.mjs +14 -2
- package/dist/ui/ErrorBoundary.mjs +19 -5
- package/dist/ui/FieldPill.mjs +2 -0
- package/dist/ui/GlobeGlyph.mjs +26 -0
- package/dist/ui/LanguageChoice.mjs +87 -20
- package/dist/ui/LanguageMenu.mjs +94 -0
- package/dist/ui/Sections.mjs +18 -5
- package/dist/ui/Tip.mjs +4 -2
- package/dist/ui/sheets/map.mjs +1 -1
- package/dist/ui/sheets/media.mjs +1 -1
- package/dist/ui/useScrollTrack.mjs +34 -19
- package/dist/web-components/About-BklM8JA9.mjs +1 -0
- package/dist/web-components/AnnotationItems-4mbvOrhN.mjs +1 -0
- package/dist/web-components/AnnotationMenu-DtMaxXf5.mjs +1 -0
- package/dist/web-components/AnnotationState-BuEpq99k.mjs +1 -0
- package/dist/web-components/Annotations-Dyg-RAdd.mjs +2 -0
- package/dist/web-components/{Annotations-oXpa3fvs.mjs → Annotations-oPabBO7j.mjs} +1 -1
- package/dist/web-components/{Body-BNLhtQi3.mjs → Body-CD7AtOPv.mjs} +1 -1
- package/dist/web-components/{BodyAlert-B0AblEtp.mjs → BodyAlert-DzW4__bK.mjs} +1 -1
- package/dist/web-components/{Button-0dU8Owcz.mjs → Button-1To2Pwuz.mjs} +1 -1
- package/dist/web-components/{Camera-BS8iIH74.mjs → Camera-B82ZMekU.mjs} +1 -1
- package/dist/web-components/{Canvas2DBackend-U4BLi8EN.mjs → Canvas2DBackend-Ds-qoQ0W.mjs} +1 -1
- package/dist/web-components/CanvasView-B4fnYim4.mjs +2 -0
- package/dist/web-components/{CaptionDetails-CtRzBSwh.mjs → CaptionDetails-TTAEPH02.mjs} +1 -1
- package/dist/web-components/{ChaptersMenu-DJRfJSwC.mjs → ChaptersMenu-DhbAktrS.mjs} +1 -1
- package/dist/web-components/{Chevron-BJFhP5wm.mjs → Chevron-Br3zRRMX.mjs} +1 -1
- package/dist/web-components/{ChoiceMenu-Cfjnk3NG.mjs → ChoiceMenu-B4_doj7b.mjs} +1 -1
- package/dist/web-components/{Collection-C2ji8AVd.mjs → Collection-DrMfq53r.mjs} +1 -1
- package/dist/web-components/{CollectionSelect-CSTSqjG3.mjs → CollectionSelect-PP7IEcwu.mjs} +1 -1
- package/dist/web-components/{Connected-B42WdjMx.mjs → Connected-BOPNEv3j.mjs} +1 -1
- package/dist/web-components/{Connected-D2y_qBDh.mjs → Connected-BguZSgy4.mjs} +1 -1
- package/dist/web-components/{Connected-C-Ars8eC.mjs → Connected-CN94wOYw.mjs} +1 -1
- package/dist/web-components/{Contents-BLbU9Qvc.mjs → Contents-Dn7MutL9.mjs} +1 -1
- package/dist/web-components/ControlMenu-DlP3JsqV.mjs +1 -0
- package/dist/web-components/ControlsFade-Cuh5Mqe7.mjs +1 -0
- package/dist/web-components/CountMenu-Aoott7Hu.mjs +1 -0
- package/dist/web-components/Cue-BAj92VWz.mjs +1 -0
- package/dist/web-components/Document-BjTWX_7P.mjs +1 -0
- package/dist/web-components/{DomLayers-DDRNVemT.mjs → DomLayers-GnBlZ7yI.mjs} +1 -1
- package/dist/web-components/{Download-VPFf23Kw.mjs → Download-C1RNBLdn.mjs} +1 -1
- package/dist/web-components/{EntryBodies-CKgmBQCk.mjs → EntryBodies-BG4F8uub.mjs} +1 -1
- package/dist/web-components/{EntryThumbnail-CgukpUtr.mjs → EntryThumbnail-BJPQwkQw.mjs} +1 -1
- package/dist/web-components/FieldPill-CgMPW9BB.mjs +1 -0
- package/dist/web-components/{FrameAnimation-C2EFrQl0.mjs → FrameAnimation-DWd0yBuN.mjs} +1 -1
- package/dist/web-components/Gallery-DpJqgaft.mjs +1 -0
- package/dist/web-components/GlobeGlyph-CLM28n1E.mjs +1 -0
- package/dist/web-components/{HideToggle-HVrk9D6t.mjs → HideToggle-C4mW4-CK.mjs} +1 -1
- package/dist/web-components/{ImageControls-BsGWsB_S.mjs → ImageControls-B36Hng03.mjs} +1 -1
- package/dist/web-components/Items-BApzELFW.mjs +1 -0
- package/dist/web-components/Label-CRTQApU-.mjs +1 -0
- package/dist/web-components/LanguageChoice-B1941Wuu.mjs +1 -0
- package/dist/web-components/LanguageMenu-yWDzK3U0.mjs +1 -0
- package/dist/web-components/LightboxView-BLHI5EIj.mjs +1 -0
- package/dist/web-components/{ListEnd-BPSaqeEg.mjs → ListEnd-CIiLZZzc.mjs} +1 -1
- package/dist/web-components/{Loaded-vg9q9y73.mjs → Loaded-X_Pr53fq.mjs} +1 -1
- package/dist/web-components/{LoadedCanvas-BtNg_QnI.mjs → LoadedCanvas-1Bi6-QtF.mjs} +1 -1
- package/dist/web-components/LoadedMap-58bpxj_6.mjs +1 -0
- package/dist/web-components/{Loading-DnCFXiNy.mjs → Loading-CyoVEwax.mjs} +1 -1
- package/dist/web-components/{Map-CIGzy4XB.mjs → Map-2oeDIJzq.mjs} +1 -1
- package/dist/web-components/MapView-DX3ZLqmp.mjs +3 -0
- package/dist/web-components/{Markup-Csh1bNkq.mjs → Markup-B2GbrisO.mjs} +1 -1
- package/dist/web-components/{MediaBody-CRJFBpMk.mjs → MediaBody-DZ9JgkKF.mjs} +1 -1
- package/dist/web-components/{MediaBody-CeEWPIDp.mjs → MediaBody-eFAZIyGv.mjs} +1 -1
- package/dist/web-components/{NavDate-qoFXy3Ou.mjs → NavDate-BwV4kPl-.mjs} +1 -1
- package/dist/web-components/{Navigator-9n2yLQdc.mjs → Navigator-CTrfNuwj.mjs} +1 -1
- package/dist/web-components/{Pager-4rZjWBna.mjs → Pager-BGjj90LQ.mjs} +1 -1
- package/dist/web-components/PagerLayout-Ce7zW_yB.mjs +1 -0
- package/dist/web-components/Panel-77xi6y2C.mjs +1 -0
- package/dist/web-components/PanelPart-Cm9VykIu.mjs +1 -0
- package/dist/web-components/{PanelToggle-0K2YTp6k.mjs → PanelToggle-Cj_FjIgS.mjs} +1 -1
- package/dist/web-components/{PartOfManifest-ZUGZW86B.mjs → PartOfManifest-B0RwR4iy.mjs} +1 -1
- package/dist/web-components/{Pending-lpHOVvqE.mjs → Pending-s7yYnZzR.mjs} +1 -1
- package/dist/web-components/PlaceBox-pt7Vmrs1.mjs +1 -0
- package/dist/web-components/{Placeholder-ChFeaw7a.mjs → Placeholder-BK-eqSCl.mjs} +1 -1
- package/dist/web-components/{Position-C2Hm7tJZ.mjs → Position-CKsSKMgZ.mjs} +1 -1
- package/dist/web-components/Primitives-T7usOLie.mjs +1 -0
- package/dist/web-components/Provider-B2k1G-E0.mjs +1 -0
- package/dist/web-components/{ReadMore-DsthjUIZ.mjs → ReadMore-Cs2t9xkI.mjs} +1 -1
- package/dist/web-components/Root-D942bSXu.mjs +1 -0
- package/dist/web-components/Scene-Cwzisn4E.mjs +1 -0
- package/dist/web-components/SceneView-_CNm8cGL.mjs +1 -0
- package/dist/web-components/Search-u43mfzT8.mjs +1 -0
- package/dist/web-components/Sections-CPU5bGvk.mjs +2 -0
- package/dist/web-components/{SeekMarks-DNHLgUaX.mjs → SeekMarks-CnqVS-ym.mjs} +1 -1
- package/dist/web-components/StandaloneItems-D9Og9pdI.mjs +1 -0
- package/dist/web-components/{Status-DLZANUzF.mjs → Status-Cxev3WuC.mjs} +1 -1
- package/dist/web-components/{Steps-BigQvWNW.mjs → Steps-l7_NsIBr.mjs} +1 -1
- package/dist/web-components/{TargetItems-DzNzoEeh.mjs → TargetItems-nP3Oa9hh.mjs} +1 -1
- package/dist/web-components/Timeline-C1g1MXp5.mjs +1 -0
- package/dist/web-components/{Tip-CoSRaKjm.mjs → Tip-D2pR3HW4.mjs} +1 -1
- package/dist/web-components/Transcript-D_a9jio-.mjs +1 -0
- package/dist/web-components/Transport-CowDRPK7.mjs +1 -0
- package/dist/web-components/Transport-uqpqUIKE.mjs +1 -0
- package/dist/web-components/{annotation-collection-DwJ2R8tG.mjs → annotation-collection-d6JyHnML.mjs} +1 -1
- package/dist/web-components/{annotation-name-2rUtUYsN.mjs → annotation-name-BWTrB9nK.mjs} +1 -1
- package/dist/web-components/{annotations-content-fTNYRgN_.mjs → annotations-content-Bomfao_5.mjs} +1 -1
- package/dist/web-components/{body-qFClz6nF.mjs → body-Dfn0GJa2.mjs} +1 -1
- package/dist/web-components/{canvas-DqmG6v1g.mjs → canvas-DHIn2DIV.mjs} +1 -1
- package/dist/web-components/{cloverEngine-BBfVDNbE.mjs → cloverEngine-DDVOcZTv.mjs} +1 -1
- package/dist/web-components/{content-state-reader-DYXL5lFa.mjs → content-state-reader-CyNkhTZY.mjs} +1 -1
- package/dist/web-components/{controlGlyphs-DqZmaT9n.mjs → controlGlyphs-Dymy1PkA.mjs} +1 -1
- package/dist/web-components/{controls-BvC6zo32.mjs → controls-CIkf2UoE.mjs} +1 -1
- package/dist/web-components/custom-elements.json +35 -3
- package/dist/web-components/downloads-DCsDCcA8.mjs +1 -0
- package/dist/web-components/{dragToClose-wFiErDub.mjs → dragToClose-BKcu5guw.mjs} +1 -1
- package/dist/web-components/{engine-B0W3FXuQ.mjs → engine-BhdQsvOB.mjs} +1 -1
- package/dist/web-components/{engines-DVRUnyFv.mjs → engines-pnfVMoUH.mjs} +1 -1
- package/dist/web-components/{fetchManifest-f8gYlPDK.mjs → fetchManifest-QmVIeaHo.mjs} +1 -1
- package/dist/web-components/{fromManifest-BmpOsc5g.mjs → fromManifest-CvXwGGRI.mjs} +1 -1
- package/dist/web-components/{glyphs-oAgi4Au0.mjs → glyphs-BAh9Lia0.mjs} +1 -1
- package/dist/web-components/hooks-CTqjdpYl.mjs +1 -0
- package/dist/web-components/{image-layers-CndzdWOW.mjs → image-layers-Dp2qOSA5.mjs} +1 -1
- package/dist/web-components/image-service-content-B5ICMeIO.mjs +1 -0
- package/dist/web-components/{imageService-DTp1mc0F.mjs → imageService-XKWMYAcG.mjs} +1 -1
- package/dist/web-components/index-BuoWCrun.mjs +1 -0
- package/dist/web-components/index.mjs +1 -1
- package/dist/web-components/items-8ZEJCxWU.mjs +1 -0
- package/dist/web-components/items-DjpIYUxD.mjs +1 -0
- package/dist/web-components/ja-Cg1enUhM.mjs +1 -0
- package/dist/web-components/label-BWHRHAY2.mjs +1 -0
- package/dist/web-components/layout-B3HyDCsP.mjs +1 -0
- package/dist/web-components/{link-CEfxl5hU.mjs → link-Mnt5GrKM.mjs} +1 -1
- package/dist/web-components/logo-YR9jXUE4.mjs +1 -0
- package/dist/web-components/{models-B-kri8Ov.mjs → models-NfaX6B8u.mjs} +1 -1
- package/dist/web-components/{nodes-BKoxD-el.mjs → nodes-CRrc5Svn.mjs} +1 -1
- package/dist/web-components/{overlayImage-Dp8CjA_L.mjs → overlayImage-D7Knsh4X.mjs} +1 -1
- package/dist/web-components/{panel-ldBDfuIV.mjs → panel-DUMFdAc8.mjs} +1 -1
- package/dist/web-components/part-C_V28rvN.mjs +1 -0
- package/dist/web-components/{playerSurface-CLWTmyt1.mjs → playerSurface-CF5g-4Po.mjs} +1 -1
- package/dist/web-components/pointer-PJLHbbSD.mjs +1 -0
- package/dist/web-components/{provider-D24Pm3a1.mjs → provider-b4id5kCa.mjs} +1 -1
- package/dist/web-components/{range-regions-9vY5ikPm.mjs → range-regions-DCY76ydS.mjs} +1 -1
- package/dist/web-components/{read-more-CoOeWZOF.mjs → read-more-UM90-AEc.mjs} +1 -1
- package/dist/web-components/readingLanguages-Qdn21-7Q.mjs +1 -0
- package/dist/web-components/rendererSurface-PZlq-wa_.mjs +22 -0
- package/dist/web-components/{renderers-BXcv_AqV.mjs → renderers-DIHonXTq.mjs} +1 -1
- package/dist/web-components/resource-BlU2Ese6.mjs +1 -0
- package/dist/web-components/{save-file-Dj3MRR7Y.mjs → save-file-GI0ekTmd.mjs} +1 -1
- package/dist/web-components/{search-C9OyY1qk.mjs → search-CHjjiXkB.mjs} +1 -1
- package/dist/web-components/shared-DgJ0bXca.mjs +1 -0
- package/dist/web-components/{show-link-4mlfdoeo.mjs → show-link-BlLkTYtm.mjs} +1 -1
- package/dist/web-components/{sizedImage-COfCkv_8.mjs → sizedImage-BoGT1x5n.mjs} +1 -1
- package/dist/web-components/{split-Ci426kxC.mjs → split-OO6-WiG3.mjs} +1 -1
- package/dist/web-components/{status-CzasXLV8.mjs → status-CSenPCO4.mjs} +1 -1
- package/dist/web-components/styles-Bvw9LFU7.mjs +1 -0
- package/dist/web-components/three.mjs +1 -1
- package/dist/web-components/{thumbnail-ByuoouMG.mjs → thumbnail-DYJHCrW_.mjs} +1 -1
- package/dist/web-components/{tip-CQEGLOst.mjs → tip-Dr1mfd4o.mjs} +1 -1
- package/dist/web-components/{toggle-Dro_EmUU.mjs → toggle-86lqpaU9.mjs} +1 -1
- package/dist/web-components/{useContainerName-CUP-TlA5.mjs → useContainerName-BfNL6p3O.mjs} +1 -1
- package/dist/web-components/{useControlsVisibility-DeI3NHWp.mjs → useControlsVisibility-C3LCnrb7.mjs} +1 -1
- package/dist/web-components/useNearViewport-Dk5q1rzk.mjs +1 -0
- package/dist/web-components/useScrollTrack-B_yYmQDS.mjs +1 -0
- package/dist/web-components/viewer/{AnnotationItems-ByWBkMRd.mjs → AnnotationItems-BbPnS9EE.mjs} +1 -1
- package/dist/web-components/viewer/AnnotationMenu-BGv-HimF.mjs +1 -0
- package/dist/web-components/viewer/AnnotationState-uRm7bEwg.mjs +1 -0
- package/dist/web-components/viewer/{Annotations-CJRF_IwO.mjs → Annotations-_2PMmUfu.mjs} +1 -1
- package/dist/web-components/viewer/Annotations-reaO1ILe.mjs +2 -0
- package/dist/web-components/viewer/{Canvas2DBackend-DPDF0a8D.mjs → Canvas2DBackend-Dru1ImJh.mjs} +1 -1
- package/dist/web-components/viewer/CaptionDetails-3OlEaKmX.mjs +1 -0
- package/dist/web-components/viewer/{ChaptersMenu-D7b9t6bm.mjs → ChaptersMenu-kchuXDZy.mjs} +1 -1
- package/dist/web-components/viewer/{ChoiceMenu-f2774ZaY.mjs → ChoiceMenu-C8pEoSC6.mjs} +1 -1
- package/dist/web-components/viewer/{Collection-D1E6A8es.mjs → Collection-B4LN_80C.mjs} +1 -1
- package/dist/web-components/viewer/{Connected-BLeqNIOf.mjs → Connected-80hCJuhg.mjs} +1 -1
- package/dist/web-components/viewer/{Connected-DfqFYcTn.mjs → Connected-CzPY2rgu.mjs} +1 -1
- package/dist/web-components/viewer/{Contents-DvmP8OGy.mjs → Contents-D4jw_lGe.mjs} +1 -1
- package/dist/web-components/viewer/ControlMenu-C3Jh10iR.mjs +1 -0
- package/dist/web-components/viewer/ControlsFade-BKkJ95B5.mjs +1 -0
- package/dist/web-components/viewer/CountMenu-Blz1oHgs.mjs +1 -0
- package/dist/web-components/viewer/Cue-BnC9XuZp.mjs +1 -0
- package/dist/web-components/viewer/Document-BG0F97nL.mjs +1 -0
- package/dist/web-components/viewer/{DomLayers-CD56oMcR.mjs → DomLayers-BL6vNcmI.mjs} +1 -1
- package/dist/web-components/viewer/{Download-DAOzY3Nu.mjs → Download-B0BD_SzR.mjs} +1 -1
- package/dist/web-components/viewer/{EntryBodies-0A0uyEwC.mjs → EntryBodies-Cbmr-Eg4.mjs} +1 -1
- package/dist/web-components/viewer/{EntryThumbnail-fBaBZJGd.mjs → EntryThumbnail-DAdEyIuL.mjs} +1 -1
- package/dist/web-components/viewer/FieldPill-DNL96sDW.mjs +1 -0
- package/dist/web-components/viewer/{FrameAnimation-kba5V4Vk.mjs → FrameAnimation-BO3QVSUw.mjs} +1 -1
- package/dist/web-components/viewer/Gallery-DN7ajF4i.mjs +1 -0
- package/dist/web-components/viewer/GlobeGlyph-B-Wd0AkW.mjs +1 -0
- package/dist/web-components/viewer/{HideToggle-D8c_7URN.mjs → HideToggle-DH0u1wFC.mjs} +1 -1
- package/dist/web-components/viewer/{ImageControls-C_C0LSj7.mjs → ImageControls-Lz-ESk1X.mjs} +1 -1
- package/dist/web-components/viewer/LanguageChoice-BkQkSsPE.mjs +1 -0
- package/dist/web-components/viewer/LanguageMenu-gIJHQiBc.mjs +1 -0
- package/dist/web-components/viewer/LightboxView-D066VR5m.mjs +1 -0
- package/dist/web-components/viewer/{ListEnd-B2hnHrcl.mjs → ListEnd-D4nNouKZ.mjs} +1 -1
- package/dist/web-components/viewer/{MapView-Cr3RiB1K.mjs → MapView-C_8iciAK.mjs} +3 -3
- package/dist/web-components/viewer/{MediaBody-4ZFKNnr3.mjs → MediaBody-BgBDbfHg.mjs} +1 -1
- package/dist/web-components/viewer/{MediaBody-xjpo27Vw.mjs → MediaBody-D4hiLqhm.mjs} +1 -1
- package/dist/web-components/viewer/{NavDate-Dz5eW2XY.mjs → NavDate-BMVT6UwB.mjs} +1 -1
- package/dist/web-components/viewer/{Navigator-DNZcaADs.mjs → Navigator-DbBBbDZn.mjs} +1 -1
- package/dist/web-components/viewer/PagerLayout-D771pC5E.mjs +1 -0
- package/dist/web-components/viewer/PanelPart-2H7jd6PS.mjs +1 -0
- package/dist/web-components/viewer/{PartOfManifest-BHpVLJOn.mjs → PartOfManifest-BMaH_tsn.mjs} +1 -1
- package/dist/web-components/viewer/PlaceBox-OytRM9_s.mjs +1 -0
- package/dist/web-components/viewer/{Placeholder-CLITKdu6.mjs → Placeholder-BWuq47Sw.mjs} +1 -1
- package/dist/web-components/viewer/Search-Bmz7mUbA.mjs +1 -0
- package/dist/web-components/viewer/{SeekMarks-B8cuyVgz.mjs → SeekMarks-CAsMUj2N.mjs} +1 -1
- package/dist/web-components/viewer/{StandaloneItems-Cu0aBqAo.mjs → StandaloneItems-BCHhR9sF.mjs} +1 -1
- package/dist/web-components/viewer/{Steps-DqszSHcR.mjs → Steps-BDT2W9QN.mjs} +1 -1
- package/dist/web-components/viewer/{TargetItems-DN8ebfbK.mjs → TargetItems-CkZbD8GE.mjs} +1 -1
- package/dist/web-components/viewer/Transcript-BbFXEJSc.mjs +1 -0
- package/dist/web-components/viewer/Transport-CI5UkA3K.mjs +1 -0
- package/dist/web-components/viewer/Transport-PgBpf33S.mjs +1 -0
- package/dist/web-components/viewer/{annotation-collection-Drwfws4R.mjs → annotation-collection-l4zuf56A.mjs} +1 -1
- package/dist/web-components/viewer/{annotation-name-Bp2GHdpi.mjs → annotation-name-CRl0w7NR.mjs} +1 -1
- package/dist/web-components/viewer/annotations-content-CYjPRTZn.mjs +1 -0
- package/dist/web-components/viewer/{cloverEngine-BmUppb5Y.mjs → cloverEngine-2b_guC4P.mjs} +2 -2
- package/dist/web-components/viewer/{content-state-reader-B9u1vc3t.mjs → content-state-reader-Cm-rvusT.mjs} +1 -1
- package/dist/web-components/viewer/{dragToClose-C9KwbQpA.mjs → dragToClose-DXXIWV62.mjs} +1 -1
- package/dist/web-components/viewer/{fetchManifest-gl9fyg7D.mjs → fetchManifest-DorkDXGC.mjs} +1 -1
- package/dist/web-components/viewer/{host-D3tVEhAD.mjs → host-DscGC2S0.mjs} +1 -1
- package/dist/web-components/viewer/{image-layers-DSehEFmU.mjs → image-layers-CZ9-efD2.mjs} +1 -1
- package/dist/web-components/viewer/image-service-content-C60w8IZm.mjs +1 -0
- package/dist/web-components/viewer/index.mjs +1 -1
- package/dist/web-components/viewer/{link-BYKFtAno.mjs → link-CysSctMX.mjs} +1 -1
- package/dist/web-components/viewer/overlayImage-CwPnVnIi.mjs +1 -0
- package/dist/web-components/viewer/{range-regions-CEM4sQKi.mjs → range-regions-C7ZBtSyb.mjs} +1 -1
- package/dist/web-components/viewer/{renderers-BiDrFLxn.mjs → renderers-D4wJiQYv.mjs} +1 -1
- package/dist/web-components/viewer/{save-file-CzYUFJNg.mjs → save-file-uqsNOVPU.mjs} +1 -1
- package/dist/web-components/viewer/{search-Dr6AQ3Lb.mjs → search-CWuD5EZA.mjs} +1 -1
- package/dist/web-components/viewer/styles-BjjJM8OS.mjs +1 -0
- package/dist/web-components/viewer/{useControlsVisibility-CP5m7oBd.mjs → useControlsVisibility-KTxa_3yJ.mjs} +1 -1
- package/dist/web-components/viewer/viewer-C3d_TgAI.mjs +29 -0
- package/dist/web-components/viewer/{vtt-CDqR3lHn.mjs → vtt-DqtJ20x0.mjs} +1 -1
- package/dist/web-components/viewer-BoyWG64n.mjs +1 -0
- package/dist/web-components/{vtt-DHZRkZ_P.mjs → vtt-BNuRzGap.mjs} +1 -1
- package/dist/web-components/zh-Hans-DnYm6PWu.mjs +1 -0
- package/dist/web-components/zh-Hant-DsxnuLPZ.mjs +1 -0
- package/package.json +1 -1
- package/dist/web-components/About-DgBOPS3N.mjs +0 -1
- package/dist/web-components/AnnotationItems-CBEb7Cew.mjs +0 -1
- package/dist/web-components/AnnotationMenu-DiQyu45i.mjs +0 -1
- package/dist/web-components/AnnotationState-DemGGP7N.mjs +0 -1
- package/dist/web-components/Annotations-CDVyd69_.mjs +0 -2
- package/dist/web-components/CanvasView-DeM04pm-.mjs +0 -2
- package/dist/web-components/ControlMenu-CJtszzgx.mjs +0 -1
- package/dist/web-components/ControlsFade-Pye8AyCz.mjs +0 -1
- package/dist/web-components/CountMenu-3-t8974M.mjs +0 -1
- package/dist/web-components/Cue-eTms5gbr.mjs +0 -1
- package/dist/web-components/Document-CkKoLQ51.mjs +0 -1
- package/dist/web-components/FieldPill-M9u0eLtz.mjs +0 -1
- package/dist/web-components/Gallery-mqXXjGtK.mjs +0 -1
- package/dist/web-components/Items-BoFm0Hlx.mjs +0 -1
- package/dist/web-components/Label-GTBsGDCC.mjs +0 -1
- package/dist/web-components/LanguageChoice-BEiskuVG.mjs +0 -1
- package/dist/web-components/LightboxView-Daz0RCee.mjs +0 -1
- package/dist/web-components/LoadedMap-D9Z3zl12.mjs +0 -1
- package/dist/web-components/MapView-CExlNO5E.mjs +0 -3
- package/dist/web-components/PagerLayout-l6UNSoQ1.mjs +0 -1
- package/dist/web-components/Panel-ikILE92M.mjs +0 -1
- package/dist/web-components/PanelPart-VPAwSoQZ.mjs +0 -1
- package/dist/web-components/PlaceBox-D73C--SU.mjs +0 -1
- package/dist/web-components/Primitives-CBRreXtS.mjs +0 -1
- package/dist/web-components/Provider-HPVBNZPr.mjs +0 -1
- package/dist/web-components/Root-BJwk-F1e.mjs +0 -1
- package/dist/web-components/Scene-DC7ofvsK.mjs +0 -1
- package/dist/web-components/SceneView-C53yZtMZ.mjs +0 -1
- package/dist/web-components/Search-Cd0xLU3y.mjs +0 -1
- package/dist/web-components/Sections-Cf3JDxnz.mjs +0 -2
- package/dist/web-components/StandaloneItems-DEchYe7Y.mjs +0 -1
- package/dist/web-components/Timeline--uq4-_TD.mjs +0 -1
- package/dist/web-components/Transcript-Dex719tP.mjs +0 -1
- package/dist/web-components/Transport-BV0Rg5Ym.mjs +0 -1
- package/dist/web-components/Transport-CHkvmPbN.mjs +0 -1
- package/dist/web-components/downloads-CFz0RnMz.mjs +0 -1
- package/dist/web-components/hooks-uer3ZRx7.mjs +0 -1
- package/dist/web-components/index-BkADsP3U.mjs +0 -1
- package/dist/web-components/items-BWG13qDG.mjs +0 -1
- package/dist/web-components/items-SD92pRMN.mjs +0 -1
- package/dist/web-components/label-Bw9SwLh8.mjs +0 -1
- package/dist/web-components/layout-DrVnUBcm.mjs +0 -1
- package/dist/web-components/logo-Dzr2M4F7.mjs +0 -1
- package/dist/web-components/part-dr-d1XPo.mjs +0 -1
- package/dist/web-components/pointer-IZcH8rZy.mjs +0 -1
- package/dist/web-components/readingLanguages-Bd4MD2DP.mjs +0 -1
- package/dist/web-components/rendererSurface-Ox625xUL.mjs +0 -22
- package/dist/web-components/resource-DmK-8hJ-.mjs +0 -1
- package/dist/web-components/shared-BmkV0s_d.mjs +0 -1
- package/dist/web-components/styles-On1ck1Ob.mjs +0 -1
- package/dist/web-components/useNearViewport-yyUYq47j.mjs +0 -1
- package/dist/web-components/useScrollTrack-CcFLYR4o.mjs +0 -1
- package/dist/web-components/viewer/AnnotationMenu-C-9tbH4G.mjs +0 -1
- package/dist/web-components/viewer/AnnotationState-CV4g-WUB.mjs +0 -1
- package/dist/web-components/viewer/Annotations-t1K8U5Kp.mjs +0 -2
- package/dist/web-components/viewer/CaptionDetails-xzvdqP5N.mjs +0 -1
- package/dist/web-components/viewer/ControlMenu-DIfN3xYJ.mjs +0 -1
- package/dist/web-components/viewer/ControlsFade-sckPhZ4x.mjs +0 -1
- package/dist/web-components/viewer/CountMenu-BQVCtVfu.mjs +0 -1
- package/dist/web-components/viewer/Cue-DQ8q-fgb.mjs +0 -1
- package/dist/web-components/viewer/Document-B-nJpfDh.mjs +0 -1
- package/dist/web-components/viewer/FieldPill-BQcDb4xM.mjs +0 -1
- package/dist/web-components/viewer/Gallery-_0dEBq2w.mjs +0 -1
- package/dist/web-components/viewer/LanguageChoice-0UWQ5V-y.mjs +0 -1
- package/dist/web-components/viewer/LightboxView-Dnlf7m8l.mjs +0 -1
- package/dist/web-components/viewer/PagerLayout-PYWFPFSJ.mjs +0 -1
- package/dist/web-components/viewer/PanelPart-Bd0JqUwF.mjs +0 -1
- package/dist/web-components/viewer/PlaceBox-Bh9V3RLS.mjs +0 -1
- package/dist/web-components/viewer/Search-C0B5Jh9V.mjs +0 -1
- package/dist/web-components/viewer/Transcript-D3mKmdQY.mjs +0 -1
- package/dist/web-components/viewer/Transport-9f_lhebG.mjs +0 -1
- package/dist/web-components/viewer/Transport-BudReE7Y.mjs +0 -1
- package/dist/web-components/viewer/annotations-content-Ci-orrao.mjs +0 -1
- package/dist/web-components/viewer/overlayImage-CdgpMutd.mjs +0 -1
- package/dist/web-components/viewer/styles-DvZTMHkr.mjs +0 -1
- package/dist/web-components/viewer/viewer-DaG51iO3.mjs +0 -29
- package/dist/web-components/viewer-DeAUI9Fi.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as N,e as $,a as j,b as A,c as u,I as H,y as S,u as o,l as T}from"./shared-
|
|
1
|
+
import{D as N,e as $,a as j,b as A,c as u,I as H,y as S,u as o,l as T}from"./shared-DgJ0bXca.mjs";import{I as q}from"./Items-BApzELFW.mjs";import{L as w}from"./Label-CRTQApU-.mjs";import{Summary as x,Id as D,Homepage as L}from"./Primitives-T7usOLie.mjs";import{j as O}from"./classnames-DukgfdpI.mjs";import{t as p}from"./heading-Cjt0f-Eu.mjs";import"./styles-Bvw9LFU7.mjs";const J=N(function({headingLevel:r=3,className:v,...b},d){const{clover:n}=$("Collection"),{t:f,langOf:g}=j(),i=A(),a=u(e=>e.collection),l=u(e=>H(e.manifest));S(()=>{!a&&(l!=null&&l.id)&&n.openCollection(l.id)},[n,a,l]);const t=a??l;if(!t)return null;const s=t.homepage,c=p(r,`${i}-label`),m=(e,C)=>{const{as:h,title:y,group:I}=p(r,`${i}-${e}`);return o("section",{className:"clover-about-section",...I,children:[o(h,{className:"clover-about-heading",...T(g(e)),...y,children:f(e)}),C]})};return o("div",{ref:d,className:O("clover-about clover-collection",v),...t.label?c.group:null,...b,children:[o(w,{as:c.as,label:t.label,className:"clover-collection-title clover-title",...c.title}),o(x,{value:t.summary,className:"clover-about-summary"}),o(q,{of:"members",layout:"list"}),Array.isArray(s)&&s.length>0&&m("aboutHomepage",o(L,{value:s})),m("aboutCollection",o(D,{value:t.id}))]})});export{J as Collection};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as C,a as k,e as I,c as v,b as K,d as L,y as w,A as b,t as h,u as r,l as S}from"./shared-
|
|
1
|
+
import{D as C,a as k,e as I,c as v,b as K,d as L,y as w,A as b,t as h,u as r,l as S}from"./shared-DgJ0bXca.mjs";import{i as N}from"./items-DjpIYUxD.mjs";import{j as U}from"./classnames-DukgfdpI.mjs";import"./styles-Bvw9LFU7.mjs";const j=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"]),B=100,z=C(function({onChange:s,className:y,...A},E){const{t:P,langOf:D}=k(),{clover:T,language:u}=I("CollectionSelect"),t=v(e=>e.collection),n=v(e=>{var l;return((l=e.manifest)==null?void 0:l.id)??""}),f=K(),[c,i]=L(null);w(()=>i(null),[n,t]);const d=b(-1/0),o=b(null);w(()=>{o.current=null},[n,t]);const p=e=>{!e||e===n||e===o.current||(o.current=e,s==null||s(e),T.goToManifest(e).finally(()=>{o.current===e&&(o.current=null)}))},m=()=>c===null||c===n||c===o.current?false:(i(null),true),g=N(t);if(g.length<2)return null;const a=h(t==null?void 0:t.label,u);return r("div",{ref:E,className:U("clover-collection-select",y),...A,children:[r("label",{htmlFor:`${f}-select`,className:"clover-collection-select-label",...S(a.text?a.lang:D("collectionLabel")),children:a.text||P("collectionLabel")}),r("select",{id:`${f}-select`,className:"clover-collection-select-control",value:c??n,onKeyDown:e=>{const{key:l}=e;l==="Enter"?p(c):l==="Escape"?m()&&e.preventDefault():(j.has(l)||l.length===1&&!e.ctrlKey&&!e.metaKey)&&(d.current=performance.now())},onBlur:m,onChange:e=>{const l=e.target.value;i(l),performance.now()-d.current>B&&p(l)},children:g.map(e=>{const l=h(e.label,u);return r("option",{value:e.id,...S(l.text?l.lang:void 0),children:l.text||e.id},e.id)})})]})});export{z as CollectionSelect};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as ve,C as
|
|
1
|
+
import{e as ve,C as P,c as h,A as l,d as me,y as O,T as R,N as be,q as f,ap as d,u as Se,aq as we,ar as Ae,as as Ie,o as Ce}from"./shared-DgJ0bXca.mjs";import{C as Le}from"./CanvasView-B4fnYim4.mjs";import{u as ke,a as xe}from"./fromManifest-CvXwGGRI.mjs";import{j as z,k as ye}from"./layout-B3HyDCsP.mjs";import{s as qe}from"./show-link-BlLkTYtm.mjs";import{a as Pe,d as Oe,e as Re,f as Te}from"./hooks-CTqjdpYl.mjs";const Ue=({options:i,onReady:T,onViewportChange:v,onMediaElement:m,onCaptionChange:A,caption:j,onEnded:b,placeholder:F=true,label:G,partOf:J,language:Q,annotations:I,chapters:W,...p})=>{const C=ve("Canvas"),{clover:t}=C,X=P(t.captions.subscribe,t.captions.get,t.captions.get),Y=j??X,B=Q??C.language,c=Pe(),{direction:Z}=Oe(),n=Re(),o=Te(),_=h(e=>{var a;return e.status==="loading"?"loading":((a=e.manifest)==null?void 0:a.id)??""}),S=h(e=>e.target),D=h(e=>we(e.manifest,e.addedSets,e.search.set,e.regions)),E=h(e=>Ie(e.manifest,e.addedSets,e.hiddenSets,e.shownSets)),ee=h(e=>Ce(e.manifest,e.addedSets,e.hiddenSets,e.shownSets)),L=h(e=>e.annotationId),H=l(L);H.current=L;const[te,ae]=me(0);O(()=>t.found.subscribe(e=>{e&&e===H.current&&ae(a=>a+1)}),[t]);const ne=P(t.highlight.subscribe,t.highlight.get,t.highlight.get),se=P(t.chapter.subscribe,t.chapter.get,t.chapter.get),u=c.map(e=>e.id).join("|"),ce=R(()=>{if(I)return I;const e=c.map(a=>a.id);return D.flatMap(a=>a.entries.filter(s=>e.includes(s.canvasId)).map(s=>({annotation:s.annotation,targetIndex:e.indexOf(s.canvasId),pageId:a.id,...a.label?{pageLabel:a.label}:{},...s.place?{place:s.place}:{},...s.layer?{layer:{key:s.layer.key,item:s.layer.item}}:{}})))},[I,D,c]),ie=S?(e=>!!e&&c.some(a=>a.id===e))(S.canvasId):false,M=l(null);ie&&(M.current=u);const oe=F&&M.current!==u,k=l(null),x=l(null),y=R(()=>c.some(e=>z(e).length>0),[c]),g=y?c.find(e=>z(e).length>0):void 0,re=ke(n,g,B,Ae),K=l(y);K.current=y;const q=j===void 0?C.language:void 0,le=g==null?void 0:g.id;O(()=>{if(!q||!g)return;const e=ye(g).find(a=>a.language&&be(a.language,q));e&&t.captions.get()!==e.id&&t.captions.emit(e.id)},[q,le,t]);const r=f(()=>{const e=t.store.get().target;!e||!t.store.get().canvasId||xe(e,k.current,x.current,K.current)&&t.consumeTarget()},[t]),N=l(u);O(()=>{N.current!==u&&(N.current=u,x.current=null),S&&r()},[S,u,r]);const w=l(T);w.current=T;const de=f(e=>{var a;k.current=e,e.on("change",r),r(),(a=w.current)==null||a.call(w,e)},[r]),ue=f(e=>{var s;const a=(s=k.current)==null?void 0:s.getCanvasRegion();t.viewport.emit(a?{canvasId:a.canvasId,region:{x:a.rect.x,y:a.rect.y,w:a.rect.width,h:a.rect.height}}:null),v==null||v(e)},[t,v]),ge=f(e=>{x.current=e,t.media.emit(e),e&&r(),m==null||m(e)},[t,r,m]),he=f(()=>{b==null||b(),(d(n,"auto-advance")||d(o,"auto-advance"))&&t.next({autoplay:true,wrap:d(n,"repeat")})},[t,n,o,b]),fe=f(e=>void qe(t,e),[t]),U=(i==null?void 0:i.request)??t.request,V=d(o,"auto-advance")||d(n,"auto-advance"),$=d(o,"repeat")||d(n,"repeat"),pe=R(()=>({...i,request:U,animation:(i==null?void 0:i.animation)??{autoplay:V,loop:$}}),[i,U,V,$]);return c.length?Se(Le,{...p,manifestId:_,navPlace:n==null?void 0:n.navPlace,canvases:c,viewingDirection:Z,language:B,label:G??(o==null?void 0:o.label)??(n==null?void 0:n.label),partOf:J??(n==null?void 0:n.label),options:pe,placeholder:oe,onReady:de,onViewportChange:ue,onMediaElement:ge,caption:Y,onCaptionChange:e=>{t.captions.emit((e==null?void 0:e.id)??null),A==null||A(e)},onEnded:he,annotations:ce,hiddenPages:ee,unlistedPages:E,onPageVisibilityChange:(e,a)=>e.forEach(s=>t.setSetVisible(s,a)),chapters:W??re,highlightedChapter:se,onChapterHighlight:e=>t.chapter.emit(e),selectedAnnotation:L,refind:te,highlightedAnnotation:ne,onAnnotationSelect:e=>t.selectAnnotation(e),onAnnotationLink:p.onAnnotationLink??fe,onAnnotationActive:e=>{var a;t.highlight.emit(e),(a=p.onAnnotationActive)==null||a.call(p,e)}}):null};export{Ue as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as o}from"./shared-
|
|
1
|
+
import{u as o}from"./shared-DgJ0bXca.mjs";import{p as a}from"./playerSurface-CF5g-4Po.mjs";import n from"./Connected-BOPNEv3j.mjs";import{j as t}from"./classnames-DukgfdpI.mjs";import{a as m}from"./hooks-CTqjdpYl.mjs";function v({className:e,...r}){return m().some(i=>i.type==="Timeline")?o(n,{...r,className:t("clover-timeline",e),navigator:false,surface:a}):null}export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as v,c as u,y as S,T as b,u as C}from"./shared-
|
|
1
|
+
import{e as v,c as u,y as S,T as b,u as C}from"./shared-DgJ0bXca.mjs";import{S as q}from"./SceneView-_CNm8cGL.mjs";import{a as w,e as x}from"./hooks-CTqjdpYl.mjs";function M({label:i,language:d,options:t,...f}){const r=v("Scene"),{clover:a}=r,e=w().find(n=>n.type==="Scene"),s=x(),g=u(n=>{var o;return n.status==="loading"?"loading":((o=n.manifest)==null?void 0:o.id)??""}),c=u(n=>n.target);S(()=>{c&&e&&c.canvasId===e.id&&a.consumeTarget()},[c,e,a]);const l=(t==null?void 0:t.request)??a.request,m=b(()=>({...t,request:l}),[t,l]);return e?C(q,{...f,scene:e,manifestId:g,label:i??e.label??(s==null?void 0:s.label),language:d??r.language,options:m}):null}export{M as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as W,a as X,e as Y,c as $,J as Z,C as O,d as N,b as _,T as tt,A as et,y as B,u as o,t as rt,l as k,k as st,v as nt,K as j,E as at,L as A}from"./shared-
|
|
1
|
+
import{D as W,a as X,e as Y,c as $,J as Z,C as O,d as N,b as _,T as tt,A as et,y as B,u as o,t as rt,l as k,k as st,v as nt,K as j,E as at,L as A}from"./shared-DgJ0bXca.mjs";import{imageSource as it}from"./thumbnail-DYJHCrW_.mjs";import{j as ot}from"./classnames-DukgfdpI.mjs";import{C as ct}from"./Chevron-Br3zRRMX.mjs";import{E as lt}from"./EntryThumbnail-BJPQwkQw.mjs";import{S as ut}from"./Steps-l7_NsIBr.mjs";import{C as dt}from"./Cue-BAj92VWz.mjs";import{u as mt}from"./useContainerName-BfNL6p3O.mjs";import"./styles-Bvw9LFU7.mjs";const Nt=W(function({as:d="nav",className:n,...u},h){const{t:p,langOf:c}=X(),{clover:s,language:F}=Y("Contents"),x=mt(p("informationPanelTabsContents"),c("informationPanelTabsContents"),u["aria-label"]!==void 0||u["aria-labelledby"]!==void 0),f=$(e=>Z(e.manifest)),T=$(e=>e.canvasId),z=$(e=>e.annotationId),S=O(s.media.subscribe,s.media.get,s.media.get),[D,w]=N(null),v=gt(f,T,S,D),H=O(s.chapter.subscribe,s.chapter.get,s.chapter.get),J=_(),C=tt(()=>pt(f,v),[f,v]),[K,L]=N(()=>new Map),M=et(new Set);B(()=>{const e=[...C].filter(r=>!M.current.has(r));M.current=C,L(r=>{if(!e.some(t=>r.has(t)))return r;const i=new Map(r);return e.forEach(t=>i.delete(t)),i})},[C]);const[b,U]=N();if(!f.length)return null;const G=e=>K.get(e.id)??C.has(e.id),P=(e,r)=>{var m,l;const i=(m=e.parts)==null?void 0:m[r];if(!i)return;U({node:e.id,index:r}),w(e.id);const t=A(e.id,r);i.region&&((l=s.store.get().regions)!=null&&l.entries.some(a=>a.id===t))?s.selectAnnotation(t):s.goTo(i.canvasId,i.region?{region:i.region}:{})},Q=e=>{if(e.canvasId){if(w(e.id),e.parts){P(e,0);return}if(e.canvasId===T&&e.time&&S){at(S,e.time.start);return}s.goTo(e.canvasId,{...e.time?{time:e.time.start,autoplay:true}:{},...e.region?{region:e.region}:{}})}},R=(e,r)=>{var l;const i=r.findIndex((a,y)=>!!a.region&&A(e.id,y)===z),t=(b==null?void 0:b.node)===e.id&&((l=r[b.index])==null?void 0:l.canvasId)===T?b.index:-1,m=i>=0?i:t>=0?t:r.findIndex(a=>a.canvasId===T);return{position:m,total:r.length,step:a=>P(e,m+a)}},q=(e,r,i=false)=>o("ol",{className:"clover-contents-list",id:r,hidden:i,children:e.map((t,m)=>{const l=rt(t.label,F),a=r?`${r}-${m}`:`${J}-${m}`,y=t.children.length>0,I=y&&G(t),E=t.id===v?it(t.thumbnail):null;return o("li",{className:"clover-contents-item",children:[o("div",{className:"clover-contents-row","data-current":t.id===v?"true":void 0,children:[o("button",{type:"button",id:`${a}-entry`,className:"clover-contents-button","data-trail":C.has(t.id)?"true":void 0,"aria-current":t.id===v?"true":void 0,"data-highlighted":t.id===H?"true":void 0,disabled:!t.canvasId,onMouseEnter:()=>s.chapter.emit(t.id),onMouseLeave:()=>s.chapter.emit(null),onFocus:()=>s.chapter.emit(t.id),onBlur:()=>s.chapter.emit(null),"data-timed":t.time?"true":void 0,"data-pictured":E?"true":void 0,...k(l.text&&!t.time&&!E?l.lang:void 0),onClick:()=>Q(t),children:t.time||E?o(st,{children:[t.time&&o(dt,{start:t.time.start,className:"clover-contents-time"}),o("span",{className:"clover-cue-text",...k(l.text?l.lang:void 0),children:l.text||t.id}),o(lt,{source:E,request:s.request,large:true})]}):l.text||t.id}),t.id===v&&t.parts&&t.parts.length>1&&o(ut,{className:"clover-contents-steps",steps:R(t,t.parts)}),y&&o("button",{type:"button",className:"clover-contents-toggle","aria-expanded":I,"aria-controls":`${a}-list`,"aria-labelledby":`${a}-toggle ${a}-entry`,onClick:()=>L(V=>new Map(V).set(t.id,!I)),children:[o("span",{id:`${a}-toggle`,style:nt,...k(c("contentsSectionsIn")),children:p("contentsSectionsIn")}),o(ct,{open:I,className:"clover-contents-chevron"})]})]}),y&&q(t.children,`${a}-list`,!I)]},t.id)})});return o(d,{ref:h,...x.props,className:ot("clover-contents",n),...u,children:[x.node,q(f)]})});function pt(g,d){const n=new Set;if(!d)return n;const u=(h,p)=>h.some(c=>c.id===d?(p.forEach(s=>n.add(s)),true):u(c.children,[...p,c.id]));return u(g,[]),n}function gt(g,d,n,u){const[h,p]=N(()=>j(g,d,void 0,u));return B(()=>{const c=()=>p(j(g,d,n==null?void 0:n.currentTime,u));if(c(),!!n)return n.addEventListener("timeupdate",c),n.addEventListener("seeked",c),()=>{n.removeEventListener("timeupdate",c),n.removeEventListener("seeked",c)}},[g,d,n,u]),h}export{Nt as Contents};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as k,af as L,_ as T,y as x,u as S}from"./shared-DgJ0bXca.mjs";import{j as B}from"./classnames-DukgfdpI.mjs";import"./styles-Bvw9LFU7.mjs";const j=({id:l,triggerId:c,onClose:o,"data-testid":u,className:m,holds:r,inside:f=false,children:b})=>{const i=k(null);return L(true,()=>o(false)),T(()=>{const t=i.current;t&&f&&M(t)},[f]),x(()=>{const t=i.current,s=(t==null?void 0:t.querySelector('input[type="radio"]:checked'))??(t==null?void 0:t.querySelector('input[type="radio"]:not(:disabled)'))??(t==null?void 0:t.querySelector("input"))??(t==null?void 0:t.querySelector('[role="option"][tabindex="0"]')),d=s==null?void 0:s.closest('label, [role="option"]');if(t&&d){const n=d.offsetTop+d.offsetHeight;n>t.scrollTop+t.clientHeight&&(t.scrollTop=n-t.clientHeight),d.offsetTop<t.scrollTop&&(t.scrollTop=d.offsetTop)}s==null||s.focus({preventScroll:true});const y=n=>{var a,v,p;const e=n.target;(a=i.current)!=null&&a.contains(e)||(v=document.getElementById(c))!=null&&v.contains(e)||e&&((p=r==null?void 0:r())!=null&&p.contains(e))||o(false)},E=n=>{var p,w;if(n.key!=="Escape")return;const e=document.activeElement;if(!!((p=i.current)!=null&&p.contains(e)||(w=document.getElementById(c))!=null&&w.contains(e))){n.preventDefault(),o(true);return}const v=h=>{h===n&&!n.defaultPrevented&&o(false)};document.addEventListener("keydown",v,{once:true})},g=n=>{var a;const e=n.target;e!=null&&e.closest(".clover-canvas-viewport")&&((a=i.current)!=null&&a.contains(e)||o(false))};return document.addEventListener("pointerdown",y),document.addEventListener("keydown",E,true),document.addEventListener("focusin",g),()=>{document.removeEventListener("pointerdown",y),document.removeEventListener("keydown",E,true),document.removeEventListener("focusin",g)}},[c,o,r]),S("div",{className:B("clover-canvas-menu",m),"data-testid":u,id:l,ref:i,children:b})};function M(l){const c=l.getBoundingClientRect();let o=0,u=document.documentElement.clientWidth;for(let r=l.parentElement;r;r=r.parentElement){if(getComputedStyle(r).overflowX==="visible")continue;const f=r.getBoundingClientRect();o=Math.max(o,f.left),u=Math.min(u,f.right);break}const m=Math.max(o-c.left,Math.min(0,u-c.right));m&&(l.style.translate=`${m}px 0`)}export{j as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{y as l}from"./shared-DgJ0bXca.mjs";import{u}from"./useControlsVisibility-C3LCnrb7.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};
|
|
@@ -0,0 +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-DgJ0bXca.mjs";import"./styles-Bvw9LFU7.mjs";const I=y(()=>import("./ControlMenu-DlP3JsqV.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 m,al as o}from"./shared-DgJ0bXca.mjs";import{j as i}from"./classnames-DukgfdpI.mjs";import"./styles-Bvw9LFU7.mjs";function s({start:r,className:e}){return m("span",{className:i("clover-cue-time",e),children:o(r)})}export{s as C};
|
|
@@ -0,0 +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-DgJ0bXca.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-BoyWG64n.mjs";import{d as ge,c as ne,g as we,h as ye}from"./hooks-CTqjdpYl.mjs";import{B as xe}from"./Body-CD7AtOPv.mjs";import{stillSource as Se,resolveThumbnail as Ee}from"./thumbnail-DYJHCrW_.mjs";import{a as Le}from"./index-BuoWCrun.mjs";import{t as Te}from"./heading-Cjt0f-Eu.mjs";import{R as Ae}from"./Root-D942bSXu.mjs";import{Position as ke}from"./Position-CKsSKMgZ.mjs";import{T as Ne}from"./Tip-D2pR3HW4.mjs";import{L as ze}from"./Label-CRTQApU-.mjs";import{Download as De}from"./Download-C1RNBLdn.mjs";import{P as Me,L as Pe}from"./Provider-B2k1G-E0.mjs";import{S as qe}from"./Status-Cxev3WuC.mjs";import{I as Oe}from"./Items-BApzELFW.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;overscroll-behavior:contain;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-B4fnYim4.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-DgJ0bXca.mjs";import{j as $}from"./classnames-DukgfdpI.mjs";import{a as k}from"./heading-Cjt0f-Eu.mjs";import{u as C}from"./downloads-DCsDCcA8.mjs";import"./styles-Bvw9LFU7.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-GI0ekTmd.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-DgJ0bXca.mjs";import{b as g}from"./annotation-name-BWTrB9nK.mjs";import{M as m}from"./Markup-B2GbrisO.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-DgJ0bXca.mjs";import{resolveThumbnail as y}from"./thumbnail-DYJHCrW_.mjs";import{j as v}from"./classnames-DukgfdpI.mjs";import"./styles-Bvw9LFU7.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as g,a as y,u as e,l as o,v as s}from"./shared-DgJ0bXca.mjs";import{j as n}from"./classnames-DukgfdpI.mjs";import{S as k}from"./Steps-l7_NsIBr.mjs";import{T as m}from"./Tip-D2pR3HW4.mjs";import"./styles-Bvw9LFU7.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{ah as Q,T as V,d as $,y as I,A as F,u as a,v as ee,q as X,a as te,b as ne,O as oe,_ as Y,a9 as ae,aa as re,a8 as se,$ as ie}from"./shared-BmkV0s_d.mjs";import ce from"./ChoiceMenu-Cfjnk3NG.mjs";import{i as le,r as de}from"./layout-DrVnUBcm.mjs";import{M as Z}from"./Markup-Csh1bNkq.mjs";import{T as ue}from"./Tip-CoSRaKjm.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-CHkvmPbN.mjs";import{imageSource as xe,resolveThumbnail as Me}from"./thumbnail-ByuoouMG.mjs";import"./MediaBody-CRJFBpMk.mjs";import"./styles-On1ck1Ob.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 $e=(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},Pe=128;function Se(e,l){const[u,d]=$([]);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,Pe,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]=$(0),[g,f]=$(false),[w,h]=$(d),[E,x]=$(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(S=>S+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 S=N=>{M.current=N,v(N)},L=N=>Math.max(0,Math.min(Ae,($e(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){S(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}S(B),p=setTimeout(H,L(B))};return s.time!==M.current&&S(s.time),p=setTimeout(H,L(s.time)),()=>clearTimeout(p)},[g,e,i,w,E]);const P=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:P,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`,P=`${A}-menu`,[T,r]=$(false),n=F(null);pe(n);const s=X(o=>{var y;r(false),o&&((y=document.getElementById(A))==null||y.focus())},[A]),p=Se(e,(G=oe())==null?void 0:G.clover.request),S=V(()=>({key:"frame",items:e.map((o,y)=>({label:o.annotation.label,id:o.annotation.id,image:p[y]}))}),[e,p]),[L,H]=$(null),[N,B]=$(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?P: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:P,triggerId:A,label:c("playerChapters"),labelLang:m("playerChapters"),language:u,choices:[S],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]=$([]);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]=$(!!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 P=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:[P.some(({item:r})=>h.shown.includes(r.index))&&a("div",{style:ee,children:P.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))}),P.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{al as Q,T as V,d as $,y as I,A as F,u as a,v as ee,q as X,a as te,b as ne,O as oe,_ as Y,ad as ae,ae as re,ac as se,$ as ie}from"./shared-DgJ0bXca.mjs";import ce from"./ChoiceMenu-B4_doj7b.mjs";import{i as le,r as de}from"./layout-B3HyDCsP.mjs";import{M as Z}from"./Markup-B2GbrisO.mjs";import{T as ue}from"./Tip-D2pR3HW4.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-uqpqUIKE.mjs";import{imageSource as xe,resolveThumbnail as Me}from"./thumbnail-DYJHCrW_.mjs";import"./MediaBody-DZ9JgkKF.mjs";import"./styles-Bvw9LFU7.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 $e=(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},Pe=128;function Se(e,l){const[u,d]=$([]);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,Pe,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]=$(0),[g,f]=$(false),[w,h]=$(d),[E,x]=$(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(S=>S+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 S=N=>{M.current=N,v(N)},L=N=>Math.max(0,Math.min(Ae,($e(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){S(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}S(B),p=setTimeout(H,L(B))};return s.time!==M.current&&S(s.time),p=setTimeout(H,L(s.time)),()=>clearTimeout(p)},[g,e,i,w,E]);const P=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:P,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`,P=`${A}-menu`,[T,r]=$(false),n=F(null);pe(n);const s=X(o=>{var y;r(false),o&&((y=document.getElementById(A))==null||y.focus())},[A]),p=Se(e,(G=oe())==null?void 0:G.clover.request),S=V(()=>({key:"frame",items:e.map((o,y)=>({label:o.annotation.label,id:o.annotation.id,image:p[y]}))}),[e,p]),[L,H]=$(null),[N,B]=$(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?P: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:P,triggerId:A,label:c("playerChapters"),labelLang:m("playerChapters"),language:u,choices:[S],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]=$([]);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]=$(!!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 P=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:[P.some(({item:r})=>h.shown.includes(r.index))&&a("div",{style:ee,children:P.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))}),P.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};
|
|
@@ -0,0 +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-DgJ0bXca.mjs";import{u as ie,g as W,h as U,i as X,e as H}from"./hooks-CTqjdpYl.mjs";import{a as J}from"./index-BuoWCrun.mjs";import{L as q}from"./Label-CRTQApU-.mjs";import{t as Q}from"./heading-Cjt0f-Eu.mjs";import{T as Y}from"./Tip-D2pR3HW4.mjs";import{R as ce}from"./Root-D942bSXu.mjs";import{Summary as ne}from"./Primitives-T7usOLie.mjs";import{S as se}from"./Status-Cxev3WuC.mjs";import{I as me}from"./Items-BApzELFW.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-BLHI5EIj.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as r}from"./shared-DgJ0bXca.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-DgJ0bXca.mjs";import{T as p}from"./Tip-D2pR3HW4.mjs";import"./styles-Bvw9LFU7.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,
|
|
1
|
+
import{a as V,A as D,af as W,_ as P,u as a,R as j,l as z}from"./shared-DgJ0bXca.mjs";import{B as K}from"./Button-1To2Pwuz.mjs";import{u as $}from"./useContainerName-BfNL6p3O.mjs";import{d as H,O as _}from"./glyphs-BAh9Lia0.mjs";import{p as q,T as G}from"./Tip-D2pR3HW4.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as P,u as o,v as xt,P as j,z as O,l as C,d as V,ae as Rt,al as qt,A,y as S,q as kt,D as Bt,O as nt,c as R,aj as Ht,a6 as Ot,ak as Ft,F as $t,a as Vt,b as jt,a4 as Kt,a5 as Ut,a9 as Wt,aa as _t}from"./shared-DgJ0bXca.mjs";import{thumbnailSource as zt,resolveThumbnail as Gt}from"./thumbnail-DYJHCrW_.mjs";import{u as Yt,N as Jt}from"./useNearViewport-Dk5q1rzk.mjs";import{h as Qt,T as Xt}from"./Tip-D2pR3HW4.mjs";import{r as Zt}from"./dates-DR3gfcON.mjs";import{i as te,a as ee}from"./items-DjpIYUxD.mjs";import{j as ne}from"./classnames-DukgfdpI.mjs";import{u as oe}from"./useContainerName-BfNL6p3O.mjs";import{a as re}from"./heading-Cjt0f-Eu.mjs";import{u as ae}from"./useScrollTrack-B_yYmQDS.mjs";import"./styles-Bvw9LFU7.mjs";const Nt='.clover-items-item[role="option"], .clover-items-link',H=new Map;let b=null,N=null,tt=0;function ot(t){const e=H.get(t);if(!e)return;const n=t.clientHeight>0&&t.scrollHeight>t.clientHeight+1;n!==e.cut&&(e.cut=n,e.change(n))}function et(){cancelAnimationFrame(tt),tt=requestAnimationFrame(()=>H.forEach((t,e)=>ot(e)))}function Ct(t){var r,s;if(t.key!=="Escape")return;const e=new Set,n=(s=(r=document.activeElement)==null?void 0:r.closest)==null?void 0:s.call(r,Nt);n&&e.add(n);try{document.querySelectorAll(`:is(${Nt}):hover`).forEach(i=>e.add(i))}catch{}const l=[...e].filter(i=>i.dataset.fullHidden===void 0&&i.querySelector(".clover-items-label-full"));l.length&&(t.preventDefault(),t.stopPropagation(),l.forEach(i=>Qt(i,"fullHidden",["pointerenter",i===n?"blur":"focus"])))}function le(){var t,e;b=typeof ResizeObserver>"u"?null:new ResizeObserver(n=>n.forEach(l=>ot(l.target))),N=typeof MutationObserver>"u"?null:new MutationObserver(et),N==null||N.observe(document.head,{childList:true,subtree:true,characterData:true}),N==null||N.observe(document.documentElement,{attributes:true,attributeFilter:["style","class"]}),(e=(t=document.fonts)==null?void 0:t.addEventListener)==null||e.call(t,"loadingdone",et),document.addEventListener("keydown",Ct,true)}function se(){var t,e,n;cancelAnimationFrame(tt),(t=b==null?void 0:b.disconnect)==null||t.call(b),N==null||N.disconnect(),b=N=null,(n=(e=document.fonts)==null?void 0:e.removeEventListener)==null||n.call(e,"loadingdone",et),document.removeEventListener("keydown",Ct,true)}function ie(t,e){var n;return H.size||le(),H.set(t,{change:e}),(n=b==null?void 0:b.observe)==null||n.call(b,t),ot(t),()=>{var l;H.delete(t),(l=b==null?void 0:b.unobserve)==null||l.call(b,t),H.size||se()}}const ce=O(()=>import("./NavDate-BwV4kPl-.mjs").then(t=>t.a).then(({NavDate:t})=>({default:t})));function ue(t,e,n,l){const r=t.source!==void 0?t.source:zt(t.resource),[s,i]=V(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 S(()=>{if(!r)return i(void 0);if(r.src)return i(r.src);if(!l)return;let c=true;return Gt(r,e,n).then(p=>{c&&i(p)}),()=>{c=false}},[f,e,l]),{src:s,none:!r}}const de=()=>o("svg",{"aria-hidden":"true",focusable:"false",viewBox:"0 0 512 512",children:[o("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"}),o("path",{d:"M336 176a112 112 0 010 160M384 128a176 176 0 010 256",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"32"})]});function me({part:t,size:e,request:n,alt:l,altLang:r}){const[s,i]=V(null),f=Yt(s,Jt,s==null?void 0:s.closest('[data-layout="slider"] .clover-items-viewport')),{src:c,none:p}=ue(t,e,n,f),[v,u]=V(false),{width:y,height:h}=t.resource??{},x=y&&h?y/h:1;return o("span",{ref:i,className:"clover-items-picture","data-loaded":v,"data-empty":c?void 0:true,style:c&&!(y&&h)?void 0:{"--clover-items-ratio":x},children:[!c&&p&&Rt(t.media)&&o(de,{}),c&&o("img",{src:c,alt:l,...C(l?r:void 0),width:e,height:Math.round(e/x),loading:"lazy",decoding:"async",draggable:false,onLoad:()=>u(true),onError:()=>u(true)}),t.duration?o("span",{className:"clover-items-duration",children:qt(t.duration)}):null]})}function fe({text:t,lang:e,first:n}){const l=A(null),[r,s]=V(false);return S(()=>{const i=l.current;if(!(!i||!t))return ie(i,s)},[t]),o("span",{className:"clover-items-label","data-clamped":r||void 0,children:[!n&&" ",o("span",{ref:l,className:"clover-items-label-text",...C(t?e:void 0),children:t}),r&&o("span",{className:"clover-items-label-full",...C(e),"aria-hidden":"true",hidden:true,children:t})]})}function ve({item:t,size:e,language:n,request:l,showSummary:r=false,secondary:s="summary",labels:i=true}){var u,y;const f=t.parts.map(h=>P(t.parts.length===1?t.label:h.label,n)),c=r&&s==="summary"?P(t.summary,n):null,p=r&&s==="navDate"?Zt(t.navDate):null,v=f.some(h=>h.text);return o("figure",{role:"none",className:"clover-items-figure","data-parts":t.parts.length,"data-media":(y=(u=t.parts[0])==null?void 0:u.media)==null?void 0:y.toLowerCase(),style:{"--parts":t.parts.length},children:[o("span",{className:"clover-items-pictures",children:t.parts.map((h,x)=>{const m=f[x].text?{text:""}:P(h.label,n);return o(me,{part:h,size:e,request:l,alt:m.text,altLang:m.lang},h.id)})}),(v||p||(c==null?void 0:c.text))&&o("figcaption",{className:"clover-items-caption",style:i?void 0:xt,children:[f.map((h,x)=>o(fe,{text:h.text,lang:h.lang,first:x===0},t.parts[x].id)),p&&o(j,{fallback:null,children:o(ce,{value:t.navDate,className:"clover-items-date"})}),(c==null?void 0:c.text)&&o("span",{className:"clover-items-summary",...C(c.lang),children:c.text.replace(/<[^>]*>/g,"")})]})]})}function he(t,e,{orientation:n="both",rtl:l=false,onActivate:r,onMove:s}={}){const[i,f]=V(Math.max(0,e)),c=A([]),p=A(r);p.current=r;const v=A(s);v.current=s,S(()=>{e>=0&&f(e)},[e]);const u=Math.min(i,Math.max(0,t-1)),y=kt(m=>{var w;f(m),(w=c.current[m])==null||w.focus()},[]),h=kt((m,w)=>{var Q,U;const q=l?"ArrowLeft":"ArrowRight",J=l?"ArrowRight":"ArrowLeft",K=n!=="vertical",L=n!=="horizontal";let M=null;if(K&&m.key===q||L&&m.key==="ArrowDown")M=Math.min(t-1,w+1);else if(K&&m.key===J||L&&m.key==="ArrowUp")M=Math.max(0,w-1);else if(m.key==="Home")M=0;else if(m.key==="End")M=t-1;else if(m.key==="Enter"||m.key===" "){(Q=p.current)==null||Q.call(p,w,m),m.preventDefault();return}M!==null&&(m.preventDefault(),y(M),M!==w&&((U=v.current)==null||U.call(v,M,m)))},[t,n,l,y]);return{focused:u,itemProps:m=>({ref:w=>{c.current[m]=w},tabIndex:m===u?0:-1,onKeyDown:w=>h(w,m),onFocus:()=>f(m)})}}const He=Bt(function(e,n){return!nt()||e.iiifContent!==void 0||e.items!==void 0?o(j,{fallback:null,children:o(pe,{...e,forwardedRef:n})}):o(ge,{...e,forwardedRef:n})}),pe=O(()=>import("./StandaloneItems-D9Og9pdI.mjs"));function ge({of:t="views",...e}){return t==="targets"?o(we,{...e}):t==="annotations"?o(ke,{...e}):t==="members"?o(Mt,{...e}):o(Ne,{...e})}const be=O(()=>import("./TargetItems-nP3Oa9hh.mjs"));function we(t){return R(n=>{var l;return(((l=n.targets)==null?void 0:l.items.length)??0)>1})?o(j,{fallback:null,children:o(be,{...t})}):null}const ye=O(()=>import("./AnnotationItems-4mbvOrhN.mjs"));function ke(t){return R(n=>!!Ht(n.manifest,n.addedSets))?o(j,{fallback:null,children:o(ye,{...t})}):null}function Mt({onSelect:t,forwardedRef:e,...n}){const{clover:l,language:r}=nt(),s=R(v=>v.collection),i=R(v=>{var u;return((u=v.manifest)==null?void 0:u.id)??null}),f=te(s),c=Ot(s==null?void 0:s.viewingDirection);if(!f.length)return null;const p=(v,u)=>{t==null||t(v,u),l.goToManifest(v.id)};if(n.layout==="pager"){const v=f.findIndex(u=>u.id===i);return o(Tt,{...n,forwardedRef:e,steps:It(f,v,c,p),nameKey:"informationPanelTabsCollection",position:o(Ce,{position:v,total:f.length,list:u=>o(Mt,{layout:"list",forwardedRef:null,onSelect:u})})})}return o(At,{...n,forwardedRef:e,items:f,selected:f.findIndex(v=>v.id===i),navigation:"id",rtl:c==="right-to-left",language:r,request:l.request,showSummary:true,onActivate:p})}function Ne({onSelect:t,forwardedRef:e,singleItem:n=false,...l}){const{clover:r,language:s}=nt(),i=R(u=>u.manifest),f=R(u=>Ft(u.manifest,u.canvasId)),c=R(u=>$t(u.manifest).direction),p=ee(i);if(p.length<(n?1:2))return null;const v=u=>r.goTo(u.id);return l.layout==="pager"?o(Tt,{...l,forwardedRef:e,steps:It(p,f,c,v)}):o(At,{...l,forwardedRef:e,items:p,selected:f,navigation:"id",rtl:c==="right-to-left",language:s,request:r.request,onActivate:(u,y)=>{t==null||t(u,y),r.goTo(u.id)},followFocus:v})}function It(t,e,n,l){return{position:e,total:t.length,direction:n,step:(r,s)=>{const i=t[e+r];i&&l(i,s)}}}const xe=O(()=>import("./PagerLayout-Ce7zW_yB.mjs")),Ce=O(()=>import("./PagerLayout-Ce7zW_yB.mjs").then(({CountMenu:t})=>({default:t})));function Tt(t){return o(j,{fallback:null,children:o(xe,{...t})})}function At({forwardedRef:t,items:e,selected:n,navigation:l,rtl:r=false,layout:s="slider",orientation:i="horizontal",thumbnailSize:f=200,request:c,language:p,showSummary:v=false,secondary:u="summary",labels:y=true,heading:h,headingLevel:x=2,renderItem:m,onActivate:w,followFocus:q,as:J="section",className:K,"aria-label":L,size:M,singleItem:Q,highContrast:U,...rt}){var bt;const{t:W}=Vt(),F=jt(),_=Kt(t,rt.lang),{langOf:z}=_,Et=Ut(U),I=s==="slider",B=I&&i==="vertical",G=l==="id",at=A(null),lt=s==="masonry";S(()=>{const a=at.current;if(!lt||!a)return;let d,g=true;return import("./masonry-BZCdA3bV.mjs").then(({attachMasonry:T})=>{g&&(d=T(a))}),()=>{g=false,d==null||d()}},[lt]);const D=ae({align:G?"center":"start",itemCount:e.length,axis:B?"y":"x"}),X=A(void 0);S(()=>()=>window.clearTimeout(X.current),[]);const Lt=he(e.length,n,{orientation:B?"vertical":s==="slider"?"horizontal":s==="list"?"vertical":"both",rtl:r,onActivate:(a,d)=>w(e[a],d),onMove:q?(a,d)=>{window.clearTimeout(X.current);const g=()=>q(e[a]);d.repeat?X.current=window.setTimeout(g,150):g()}:void 0}),$=A(null),st=A(false);st.current=!!((bt=$.current)!=null&&bt.contains($.current.ownerDocument.activeElement)),S(()=>{var T;const a=$.current;if(!a||!st.current)return;const{activeElement:d,body:g}=a.ownerDocument;d&&d!==g||(T=a.querySelector(`[data-track-index="${Math.max(0,n)}"]`))==null||T.focus()},[e]);const Z=A(false);S(()=>{var g;if(n<0)return;const a=!Z.current;if(I){D.scrollToIndex(n,{instant:a})&&(Z.current=true);return}Z.current=true;const d=(g=$.current)==null?void 0:g.querySelector(`[data-track-index="${n}"]`);d&&Me(d,a)},[I,n,D.scrollToIndex]);const Dt=re(x),k=h?P(h.label,p):null,E=h?P(h.summary,p):null,it=L===void 0&&!!(k!=null&&k.text),ct=oe(W("itemsLabel"),z("itemsLabel"),L!==void 0||it,_.hostLanguage),ut=it?{"aria-labelledby":`${F}-title`}:L!==void 0?{"aria-label":L}:ct.props,dt=(a,d)=>m?m(a,{selected:d}):o(ve,{item:a,size:f,language:p,request:c,showSummary:v,secondary:u,labels:y}),mt=a=>!(m||P(a.label,p).text||v&&u==="summary"&&P(a.summary,p).text),ft=(a,d)=>mt(a)?W("canvasPosition",{index:d+1,total:e.length}):void 0,vt=a=>mt(a)?z("canvasPosition"):void 0,ht=I?{display:"flex",flexDirection:B?"column":void 0,margin:0,padding:0,listStyle:"none"}:void 0,pt=I?{flex:"0 0 auto",scrollSnapAlign:G?"center":"start"}:void 0,Y=G&&n>=0,gt=a=>{const d=n+(a==="prev"?-1:1),g=Y?d>=0&&d<e.length:a==="prev"?D.canScrollPrev:D.canScrollNext,T=Y?a==="prev"?"commonPrevious":"commonNext":a==="prev"?"itemsScrollBack":"itemsScrollForward",wt=W(T),Pt=St=>{if(!g)return;if(!Y)return(a==="prev"?D.scrollPrev:D.scrollNext)();const yt=e[d];q?q(yt):w(yt,St)};return o("button",{type:"button",className:`clover-items-scroll-${a}`,"aria-controls":Y?void 0:`${F}-viewport`,...C(z(T)),"aria-disabled":!g||void 0,tabIndex:g?void 0:-1,onClick:Pt,children:[o("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16",children:o("path",{d:B?a==="next"?"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"})}),o("span",{style:xt,children:wt}),o(Xt,{label:wt})]})};return o(_t.Provider,{value:_.hostLanguage,children:o(J,{ref:_.ref,className:ne("clover-items",K),"data-layout":s,"data-orientation":B?"vertical":void 0,"data-navigation":l,...Wt(Et),...rt,children:[h&&((k==null?void 0:k.text)||(E==null?void 0:E.text))&&o("header",{className:"clover-items-header",children:[(k==null?void 0:k.text)&&o(Dt,{className:"clover-items-title clover-title",id:`${F}-title`,...C(k.lang),children:k.text}),(E==null?void 0:E.text)&&o("p",{className:"clover-items-description",...C(E.lang),children:E.text.replace(/<[^>]*>/g,"")}),h.homepage&&o("a",{className:"clover-items-homepage",href:h.homepage,hrefLang:h.homepageLang,...C(z("commonViewAll")),children:W("commonViewAll")})]}),o("div",{className:"clover-items-frame",style:{position:"relative"},dir:r?"rtl":void 0,children:[I&>("prev"),o("div",{id:`${F}-viewport`,className:"clover-items-viewport",ref:I?D.ref:at,children:G?o("div",{ref:$,role:"listbox",...ut,"aria-orientation":B?"vertical":I?"horizontal":s==="list"?"vertical":void 0,className:"clover-items-track",style:ht,children:e.map((a,d)=>{const g=d===n;return o("div",{id:`${F}-${d}`,role:"option","aria-selected":g,"aria-label":ft(a,d),...C(vt(a)),className:"clover-items-item","data-track-index":d,style:pt,...Lt.itemProps(d),onClick:T=>w(a,T),children:dt(a,g)},a.id)})}):o("ul",{...ut,className:"clover-items-track",style:ht,children:e.map((a,d)=>o("li",{className:"clover-items-item","data-track-index":d,style:pt,children:o("a",{className:"clover-items-link",href:a.href,hrefLang:a.hrefLang,"aria-label":ft(a,d),...C(vt(a)),draggable:false,onClick:g=>w(a,g),children:dt(a,false)})},a.id))})}),I&>("next")]}),ct.node]})})}function Me(t,e){var i,f;let n=t.parentElement;for(;n&&n!==document.body;){const{overflowY:c}=getComputedStyle(n);if(/(auto|scroll)/.test(c)&&n.scrollHeight>n.clientHeight)break;n=n.parentElement}if(!n||n===document.body)return;const l=n.getBoundingClientRect(),r=t.getBoundingClientRect(),s=r.top<l.top?r.top-l.top:r.bottom>l.bottom?r.bottom-l.bottom:0;if(s){const c=(i=window.matchMedia)==null?void 0:i.call(window,"(prefers-reduced-motion: reduce)").matches;(f=n.scrollBy)==null||f.call(n,{top:s,behavior:e||c?"auto":"smooth"})}}export{He as I,Tt as P,At as a,It as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as g,Z as b,O as d,t as x,u as C,l as L,a1 as O}from"./shared-DgJ0bXca.mjs";import{t as P}from"./text-BTAkxEfQ.mjs";import{j}from"./classnames-DukgfdpI.mjs";import{u as h}from"./resource-BlU2Ese6.mjs";const S=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=O(a.manifest,a.canvasId))==null?void 0:s.label:(n=a.manifest)==null?void 0:n.label},void 0),o=h(),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:j("clover-label",c),...L(v),...m,children:P(e)}):null});export{S as L};
|
|
@@ -0,0 +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-DgJ0bXca.mjs";import{l as F}from"./languageCode-cCpiU0b0.mjs";import{T as G}from"./Tip-D2pR3HW4.mjs";import{u as I}from"./useContainerName-BfNL6p3O.mjs";import{G as P}from"./GlobeGlyph-CLM28n1E.mjs";function W(e){try{return new Intl.DisplayNames([e],{type:"language"}).of(e)??e}catch{return e}}const x=$(()=>import("./LanguageMenu-yWDzK3U0.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as C,d as $,b as N,q as T,u as a,l as i}from"./shared-DgJ0bXca.mjs";import y from"./ControlMenu-DlP3JsqV.mjs";import{a as x}from"./LanguageChoice-B1941Wuu.mjs";import{l as d}from"./languageCode-cCpiU0b0.mjs";import{C as G}from"./Chevron-Br3zRRMX.mjs";import{G as I}from"./GlobeGlyph-CLM28n1E.mjs";import{T as k}from"./Tip-D2pR3HW4.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as L,y as N,u as r}from"./shared-DgJ0bXca.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-BoyWG64n.mjs";import{B as k}from"./Body-CD7AtOPv.mjs";import{L as G}from"./Label-CRTQApU-.mjs";import{I as K}from"./Items-BApzELFW.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,
|
|
1
|
+
import{e as x,c as u,w as y,at as g,n as P,d as w,y as h,q as A,A as f,u as C}from"./shared-DgJ0bXca.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,
|
|
1
|
+
import{d as y,y as S,aL as h,u as a}from"./shared-DgJ0bXca.mjs";import{S as b}from"./SceneView-_CNm8cGL.mjs";import{C as u}from"./Pending-s7yYnZzR.mjs";import{B as p}from"./BodyAlert-DzW4__bK.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
|
|
1
|
+
import{d as q,y as x,aL as Z,A as b,q as $,f as _,u as p,aA as J,aD as R}from"./shared-DgJ0bXca.mjs";import{C as k}from"./CanvasView-B4fnYim4.mjs";import{a as y,u as tt}from"./fromManifest-CvXwGGRI.mjs";import{j as K}from"./layout-B3HyDCsP.mjs";import{C as M}from"./Pending-s7yYnZzR.mjs";import{B as nt}from"./BodyAlert-DzW4__bK.mjs";import{loadAnnotationSets as at}from"./annotation-collection-d6JyHnML.mjs";const et=()=>import("./shared-DgJ0bXca.mjs").then(o=>o.aP);function dt({iiifContent:o,onAnnotationLink:d,onReady:u,onMediaElement:i,placeholder:A=true,of:l,...r}){var T,z,E,G;const[n,s]=q({state:"loading"}),v=(T=r.options)==null?void 0:T.request,L=typeof o=="string"?o:String((o==null?void 0:o.id)??""),[h,N]=q(null),c=(h==null?void 0:h.key)===L?h:null;x(()=>{let a=true;return s(e=>e.state==="ready"?{...e,next:true}:{state:"loading"}),(async()=>{var H;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)??((H=e.target)==null?void 0:H.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}},[L,c==null?void 0:c.manifestId,c==null?void 0:c.canvasId,v,l]);const t=n.state==="ready"?n:null,[Q,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&&N({...a,key:L,manifestId:a.manifestId})},P=((z=t==null?void 0:t.content.target)==null?void 0:z.canvasId)===(t==null?void 0:t.canvas.id)&&!!((E=t==null?void 0:t.content.target)!=null&&E.region||((G=t==null?void 0:t.content.target)==null?void 0:G.time)!==void 0),B=b(null),C=b(null),D=b(null),S=b(null);S.current=(t==null?void 0:t.canvas)??null;const f=$(()=>{const a=B.current;if(!a||!S.current)return;const e=K(S.current).length>0;y(a,C.current,D.current,e)&&(B.current=null)},[]);x(()=>{B.current=P?(t==null?void 0:t.content.target)??null:null,f()},[t==null?void 0:t.content,t==null?void 0:t.canvas,P,f]);const W=$(a=>{C.current=a,a.on("change",f),f(),u==null||u(a)},[f,u]),X=$(a=>{D.current=a,a&&f(),i==null||i(a)},[f,i]),F=t&&K(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??Q,onAnnotationLink:d??U,chapters:r.chapters??Y,placeholder:A&&!P,onReady:W,onMediaElement:X}):n.state==="error"?p(M,{children:p(nt,{error:n.error})}):p(M,{})}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:J(n,n.id??`annotations-${s}`,o.id)})),...l.length?await at(l,{request:u}):[],...d.annotation?[{id:"content-state",entries:J({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-DgJ0bXca.mjs";import{ConnectedMap as l}from"./MapView-DX3ZLqmp.mjs";import{R as p}from"./Root-D942bSXu.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-DgJ0bXca.mjs";import{j as i}from"./classnames-DukgfdpI.mjs";import"./styles-Bvw9LFU7.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,O as l,u as e,z as s,P as c}from"./shared-
|
|
1
|
+
import{D as d,O as l,u as e,z as s,P as c}from"./shared-DgJ0bXca.mjs";import{ConnectedMap as v,GivenMap as f}from"./MapView-DX3ZLqmp.mjs";import{j as m}from"./classnames-DukgfdpI.mjs";const g=s(()=>import("./LoadedMap-58bpxj_6.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};
|