@nulib/clover 4.3.0 → 4.4.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/dist/components/Canvas/CanvasView.mjs +4 -0
- package/dist/components/Canvas/media/MediaBody.mjs +38 -10
- package/dist/components/Canvas/media/SeekMarks.mjs +236 -0
- package/dist/components/Canvas/media/Transport.mjs +26 -3
- package/dist/components/Canvas/media/useMediaElement.mjs +23 -11
- package/dist/components/Items/Item.mjs +30 -21
- package/dist/components/Items/Items.mjs +3 -1
- package/dist/components/Items/PagerLayout.mjs +1 -0
- package/dist/components/Map/MapView.mjs +7 -6
- package/dist/components/Panel/PanelToggle.mjs +3 -1
- package/dist/index.d.mts +26 -3
- package/dist/index.mjs +2 -1
- package/dist/map/index.d.mts +6 -0
- package/dist/react/hooks.mjs +3 -1
- package/dist/styles/core.css +1 -1
- package/dist/styles/default.css +1 -1
- package/dist/styles/media.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/templates/document/Document.mjs +2 -3
- package/dist/templates/index.d.mts +433 -0
- package/dist/templates/index.mjs +19 -2
- package/dist/templates/shared/LightboxView.mjs +7 -5
- package/dist/templates/shared/PanelPane.mjs +27 -13
- package/dist/ui/Button.mjs +3 -1
- package/dist/ui/sheets/media.mjs +1 -1
- package/dist/web-components/{About-uNCjvWgs.mjs → About-BtaFd4AF.mjs} +1 -1
- package/dist/web-components/{AnnotationItems-JwlcCvPo.mjs → AnnotationItems-CowjcNUd.mjs} +1 -1
- package/dist/web-components/{AnnotationMenu-BWyKEyvW.mjs → AnnotationMenu-CuR-ZArp.mjs} +1 -1
- package/dist/web-components/{AnnotationState-Bhqs75Br.mjs → AnnotationState-DYkjbBGk.mjs} +1 -1
- package/dist/web-components/{Annotations-ZwcRh2UE.mjs → Annotations-BbSg10Oz.mjs} +1 -1
- package/dist/web-components/{Annotations-C7y0N8Lj.mjs → Annotations-CzeyfbPR.mjs} +1 -1
- package/dist/web-components/{Body-DyrvRDkt.mjs → Body-Bh8Nu8Fo.mjs} +1 -1
- package/dist/web-components/{BodyAlert-XV88XjL8.mjs → BodyAlert-Cra_XvnG.mjs} +1 -1
- package/dist/web-components/Button-CE-5ew-f.mjs +1 -0
- package/dist/web-components/{Camera-7SlnmGtb.mjs → Camera-Cr2RIqCs.mjs} +1 -1
- package/dist/web-components/{Canvas2DBackend-DBGZRGid.mjs → Canvas2DBackend-CH8h2VnH.mjs} +1 -1
- package/dist/web-components/CanvasView-DcrhjwpU.mjs +2 -0
- package/dist/web-components/{CaptionDetails-Bxz8AXMz.mjs → CaptionDetails-BgsrrXAm.mjs} +1 -1
- package/dist/web-components/{ChaptersMenu-CMQiBqvx.mjs → ChaptersMenu-Bl6PPqt2.mjs} +1 -1
- package/dist/web-components/{Chevron-B3XaClVT.mjs → Chevron-CePM9HdR.mjs} +1 -1
- package/dist/web-components/{ChoiceMenu-pugo5zxI.mjs → ChoiceMenu-ClsLiaxQ.mjs} +1 -1
- package/dist/web-components/{Collection-Ch_FeSKp.mjs → Collection-a_DaYUM4.mjs} +1 -1
- package/dist/web-components/{CollectionSelect-2jDEkOcK.mjs → CollectionSelect-XLruVPnQ.mjs} +1 -1
- package/dist/web-components/{Connected-3hnIPSWM.mjs → Connected-BqaysSD7.mjs} +1 -1
- package/dist/web-components/{Connected-Bne3I5E1.mjs → Connected-D30kPwoX.mjs} +1 -1
- package/dist/web-components/{Connected-DuANHN93.mjs → Connected-D_Y8fBZk.mjs} +1 -1
- package/dist/web-components/{Contents-DIQrin_-.mjs → Contents-CA6CnTu3.mjs} +1 -1
- package/dist/web-components/{ControlMenu-BydnCTTQ.mjs → ControlMenu-BTGCnS_-.mjs} +1 -1
- package/dist/web-components/ControlsFade-D-SexeLX.mjs +1 -0
- package/dist/web-components/{CountMenu-CReBYVwu.mjs → CountMenu-CpM-FXwx.mjs} +1 -1
- package/dist/web-components/Cue-DghSvEx4.mjs +1 -0
- package/dist/web-components/Document-FFVXMPwT.mjs +1 -0
- package/dist/web-components/{DomLayers-D9X_FPto.mjs → DomLayers-mS4hhHRF.mjs} +1 -1
- package/dist/web-components/{Download-B8MpVqgk.mjs → Download-CqYuifok.mjs} +1 -1
- package/dist/web-components/{EntryBodies-DdpRfU5U.mjs → EntryBodies-3IO45Orn.mjs} +1 -1
- package/dist/web-components/{EntryThumbnail-DM7Zjj1z.mjs → EntryThumbnail-Anfv7mFZ.mjs} +1 -1
- package/dist/web-components/{FieldPill-BAql8_6s.mjs → FieldPill-pocIy1LB.mjs} +1 -1
- package/dist/web-components/{FrameAnimation-Dj46RxuL.mjs → FrameAnimation-R4MeMOFu.mjs} +1 -1
- package/dist/web-components/{Gallery-B9FNA02Z.mjs → Gallery-DvS3b7CP.mjs} +1 -1
- package/dist/web-components/{HideToggle-duXvDvDw.mjs → HideToggle-29T-__gd.mjs} +1 -1
- package/dist/web-components/{ImageControls-DODKjC0d.mjs → ImageControls-1LGEiMZc.mjs} +1 -1
- package/dist/web-components/Items-GF8INTZw.mjs +1 -0
- package/dist/web-components/{Label-D4dlrtpH.mjs → Label-CMEDN1xd.mjs} +1 -1
- package/dist/web-components/{LanguageChoice-DR3X-dtJ.mjs → LanguageChoice-E8VCduh-.mjs} +1 -1
- package/dist/web-components/LightboxView-CKK5mjZc.mjs +1 -0
- package/dist/web-components/{ListEnd-CQ4vX-NW.mjs → ListEnd-YjSPUw9O.mjs} +1 -1
- package/dist/web-components/{Loaded-DsNSPXWf.mjs → Loaded-CTi6A9VS.mjs} +1 -1
- package/dist/web-components/{LoadedCanvas-Cq7_O2bw.mjs → LoadedCanvas-Bdqqh01C.mjs} +1 -1
- package/dist/web-components/LoadedMap-DN3MdhcJ.mjs +1 -0
- package/dist/web-components/{Loading-4PmhMeZ-.mjs → Loading-tVzMiUqD.mjs} +1 -1
- package/dist/web-components/{Map-B29Ba50b.mjs → Map-X1sSxMhL.mjs} +1 -1
- package/dist/web-components/MapView-nkpoN7X_.mjs +3 -0
- package/dist/web-components/{Markup-BZ7l5GbG.mjs → Markup-Bowjvwik.mjs} +1 -1
- package/dist/web-components/MediaBody-B-sQOihV.mjs +1 -0
- package/dist/web-components/MediaBody-DZZrA-DM.mjs +1 -0
- package/dist/web-components/{NavDate-0MsHRjBW.mjs → NavDate-Cc5i7OTE.mjs} +1 -1
- package/dist/web-components/{Navigator-qJ79A8Nk.mjs → Navigator-BAlMH9x3.mjs} +1 -1
- package/dist/web-components/{Pager-SPd_u0qz.mjs → Pager-DmIPop9E.mjs} +1 -1
- package/dist/web-components/PagerLayout-DPIiFt_i.mjs +1 -0
- package/dist/web-components/{Panel-C8r3EsWn.mjs → Panel-COAOFI-u.mjs} +1 -1
- package/dist/web-components/PanelPart-DGYFBVl7.mjs +1 -0
- package/dist/web-components/PanelToggle-C4B6UY5p.mjs +1 -0
- package/dist/web-components/{PartOfManifest-BdDSxK4k.mjs → PartOfManifest-DpZTyo9I.mjs} +1 -1
- package/dist/web-components/{Pending-CmgVU1kF.mjs → Pending-Ci8Pe6Ip.mjs} +1 -1
- package/dist/web-components/{PlaceBox-D7HLNGxE.mjs → PlaceBox-vlZhTMoG.mjs} +1 -1
- package/dist/web-components/{Placeholder-DVAlXejQ.mjs → Placeholder-DrJKiL3N.mjs} +1 -1
- package/dist/web-components/{Position-C6KUAceQ.mjs → Position-D46qbQob.mjs} +1 -1
- package/dist/web-components/{Primitives-ClQVjY6x.mjs → Primitives-CijKEUFK.mjs} +1 -1
- package/dist/web-components/{Provider-C0IUdU6v.mjs → Provider-hKagyo0v.mjs} +1 -1
- package/dist/web-components/{ReadMore-BiEJA4yO.mjs → ReadMore-B-l-lJxV.mjs} +1 -1
- package/dist/web-components/{Root-Drt5N4_s.mjs → Root-3orKkAAl.mjs} +1 -1
- package/dist/web-components/Scene-CQmIsctH.mjs +1 -0
- package/dist/web-components/{SceneView-BHg37-rs.mjs → SceneView-B8_AOroA.mjs} +1 -1
- package/dist/web-components/{Search-Bpd_lGzH.mjs → Search-BQhTX9cc.mjs} +1 -1
- package/dist/web-components/{Sections-D_bS5IQH.mjs → Sections-DK04V31W.mjs} +1 -1
- package/dist/web-components/SeekMarks-tjdJi7bR.mjs +1 -0
- package/dist/web-components/{StandaloneItems-YV9O9M8F.mjs → StandaloneItems-3l4YBXUu.mjs} +1 -1
- package/dist/web-components/{Status-BCG7AN9B.mjs → Status-ZeDFIe5P.mjs} +1 -1
- package/dist/web-components/{Steps-Dnn8Ajqf.mjs → Steps-Dw4i3bYY.mjs} +1 -1
- package/dist/web-components/{TargetItems-xxbtePln.mjs → TargetItems-DkNwteSd.mjs} +1 -1
- package/dist/web-components/Timeline-wqnaRrC1.mjs +1 -0
- package/dist/web-components/{Tip-DPFWlNLu.mjs → Tip-Dd_jhbIx.mjs} +1 -1
- package/dist/web-components/{Transcript-C-_DbUO5.mjs → Transcript-CVfpxNjD.mjs} +1 -1
- package/dist/web-components/Transport-DGXTdsId.mjs +1 -0
- package/dist/web-components/Transport-DJB0UXR1.mjs +1 -0
- package/dist/web-components/{annotation-collection-nmxzo_hO.mjs → annotation-collection-BTpPigqD.mjs} +1 -1
- package/dist/web-components/{annotation-name-DoUUo-8D.mjs → annotation-name-CFvHyKti.mjs} +1 -1
- package/dist/web-components/{annotations-content-Cl1upbdd.mjs → annotations-content-GrkrBVh0.mjs} +1 -1
- package/dist/web-components/{body-DC8Oq8rY.mjs → body-fIGeqGQD.mjs} +1 -1
- package/dist/web-components/{canvas-gzoTnBxw.mjs → canvas-BS2SLLKS.mjs} +1 -1
- package/dist/web-components/{cloverEngine-CFL1Bd7n.mjs → cloverEngine-CQIuzG6M.mjs} +1 -1
- package/dist/web-components/{content-state-reader-DYbmXxCp.mjs → content-state-reader-CYaSfkCN.mjs} +1 -1
- package/dist/web-components/{controlGlyphs-d7KUIUwi.mjs → controlGlyphs-DbocsVHI.mjs} +1 -1
- package/dist/web-components/{controls-VC9D1mwr.mjs → controls-wzIEvR64.mjs} +1 -1
- package/dist/web-components/custom-elements.json +22 -0
- package/dist/web-components/{downloads-D2cnWDbs.mjs → downloads-7EkgG29z.mjs} +1 -1
- package/dist/web-components/{dragToClose-CzYeh_12.mjs → dragToClose-Bop25BOK.mjs} +1 -1
- package/dist/web-components/{engine-Dcfyp2DV.mjs → engine-cAKeOT-F.mjs} +1 -1
- package/dist/web-components/{engines-BMr7naGM.mjs → engines-DJ3NJG7R.mjs} +1 -1
- package/dist/web-components/{fetchManifest-DxptUh4u.mjs → fetchManifest-BchmTYKJ.mjs} +1 -1
- package/dist/web-components/{fromManifest-BpPFLVyZ.mjs → fromManifest-IctmL1Dl.mjs} +1 -1
- package/dist/web-components/{glyphs-BCnJl8py.mjs → glyphs-BO-1m6-c.mjs} +1 -1
- package/dist/web-components/{hooks-Dz_5UXXp.mjs → hooks-Dl6ZSn_E.mjs} +1 -1
- package/dist/web-components/{image-layers-BPnq7jk1.mjs → image-layers-BWmHzoSJ.mjs} +1 -1
- package/dist/web-components/{imageService-DFPkPNfe.mjs → imageService-Dhb-E5rq.mjs} +1 -1
- package/dist/web-components/index-BAkCMEQf.mjs +1 -0
- package/dist/web-components/index.d.mts +3 -0
- package/dist/web-components/index.mjs +1 -1
- package/dist/web-components/{items-D03KhDg6.mjs → items-CDbMZvPN.mjs} +1 -1
- package/dist/web-components/items-Z6uMtKSM.mjs +1 -0
- package/dist/web-components/label-B32XGxUM.mjs +1 -0
- package/dist/web-components/{layout-DVa_DnGH.mjs → layout-BixQWLYR.mjs} +1 -1
- package/dist/web-components/{link-DxXxMXiw.mjs → link-DoDZrIK7.mjs} +1 -1
- package/dist/web-components/logo-DFdob1X0.mjs +1 -0
- package/dist/web-components/{models-pO77sm3z.mjs → models-qg8TrXAe.mjs} +1 -1
- package/dist/web-components/{nodes-CmL3eoRE.mjs → nodes-C_TYa0cJ.mjs} +1 -1
- package/dist/web-components/{overlayImage-DFGetjMh.mjs → overlayImage-utUhUeIp.mjs} +1 -1
- package/dist/web-components/{panel-B1vzUm6_.mjs → panel-Do2CIE4L.mjs} +1 -1
- package/dist/web-components/part-1MCSi0Gx.mjs +1 -0
- package/dist/web-components/{playerSurface-CQ1wrIAQ.mjs → playerSurface-D3T1sYp4.mjs} +1 -1
- package/dist/web-components/{pointer-DWnCT3D3.mjs → pointer-CAZRjvDP.mjs} +1 -1
- package/dist/web-components/{provider-U7xzX_0T.mjs → provider-CTvn2JYS.mjs} +1 -1
- package/dist/web-components/{range-regions-Di_lmVqZ.mjs → range-regions-Bn6iZRLa.mjs} +1 -1
- package/dist/web-components/{read-more-BtA1sriO.mjs → read-more-sUL-TwGp.mjs} +1 -1
- package/dist/web-components/{readingLanguages-Ptho-Co9.mjs → readingLanguages-JQPbnrhL.mjs} +1 -1
- package/dist/web-components/{rendererSurface-BgZPnAwj.mjs → rendererSurface-CE09-Vp6.mjs} +2 -2
- package/dist/web-components/{renderers-hoD3WKYA.mjs → renderers-J_Go4mqn.mjs} +1 -1
- package/dist/web-components/{resource-DuTMsPEj.mjs → resource-DU94ocC-.mjs} +1 -1
- package/dist/web-components/{save-file-CLB5IM4a.mjs → save-file-CYFtT-_E.mjs} +1 -1
- package/dist/web-components/{search-Dd2Y1dsZ.mjs → search-BhcYrsRY.mjs} +1 -1
- package/dist/web-components/{shared-CCg1Iag8.mjs → shared-BtCBrxx9.mjs} +1 -1
- package/dist/web-components/{show-link-NjacLIdz.mjs → show-link-21y7MiKT.mjs} +1 -1
- package/dist/web-components/{sizedImage-CKOGmqhN.mjs → sizedImage-C4pD0cZa.mjs} +1 -1
- package/dist/web-components/{split-CcoXZcGX.mjs → split-w6D-xEIb.mjs} +1 -1
- package/dist/web-components/{status-B4a3Izph.mjs → status-Yo7BOr8p.mjs} +1 -1
- package/dist/web-components/styles-CAv9WP3T.mjs +1 -0
- package/dist/web-components/three.mjs +1 -1
- package/dist/web-components/{thumbnail-ez20ssEY.mjs → thumbnail-BdKVLxxw.mjs} +1 -1
- package/dist/web-components/{tip-DeFPN33O.mjs → tip-D1BgXKQ-.mjs} +1 -1
- package/dist/web-components/toggle-Cqtdko9H.mjs +1 -0
- package/dist/web-components/{useContainerName-BfyeBf6_.mjs → useContainerName-C2L1lj9-.mjs} +1 -1
- package/dist/web-components/{useControlsVisibility-oRiMiQhD.mjs → useControlsVisibility-B4X3mKyY.mjs} +1 -1
- package/dist/web-components/{useNearViewport-BADiMpLi.mjs → useNearViewport-DWtnayYx.mjs} +1 -1
- package/dist/web-components/{useScrollTrack-9QsMaHSx.mjs → useScrollTrack-D-Yh7v0Q.mjs} +1 -1
- package/dist/web-components/viewer/AnnotationItems-DJxYDDLY.mjs +1 -0
- package/dist/web-components/viewer/{AnnotationMenu-d5PT7q8D.mjs → AnnotationMenu-CBQft8tP.mjs} +1 -1
- package/dist/web-components/viewer/AnnotationState-D-pYs13c.mjs +1 -0
- package/dist/web-components/viewer/{Annotations-D_wg4O99.mjs → Annotations-KDQunny2.mjs} +1 -1
- package/dist/web-components/viewer/{Annotations-DKWYJOo2.mjs → Annotations-yD1LhlP3.mjs} +2 -2
- package/dist/web-components/viewer/{Canvas2DBackend-B4IXvdsN.mjs → Canvas2DBackend-M6vNWI1j.mjs} +1 -1
- package/dist/web-components/viewer/CaptionDetails-BhXwMQyX.mjs +1 -0
- package/dist/web-components/viewer/{ChaptersMenu-CaAIaRZN.mjs → ChaptersMenu-CQoZerOz.mjs} +1 -1
- package/dist/web-components/viewer/ChoiceMenu-zk7-RWGR.mjs +1 -0
- package/dist/web-components/viewer/Collection-CMHNssor.mjs +1 -0
- package/dist/web-components/viewer/{Connected-9VGl2Xnx.mjs → Connected-CWTe22Y4.mjs} +1 -1
- package/dist/web-components/viewer/{Connected-Cd2qwuuo.mjs → Connected-o-wFtqr5.mjs} +1 -1
- package/dist/web-components/viewer/{Contents-CsG9e7v2.mjs → Contents-6XNd1KtI.mjs} +1 -1
- package/dist/web-components/viewer/{ControlMenu-q_u_UC8q.mjs → ControlMenu-D5LwsByV.mjs} +1 -1
- package/dist/web-components/viewer/ControlsFade-C164aYHv.mjs +1 -0
- package/dist/web-components/viewer/{CountMenu-Dn0-z5A9.mjs → CountMenu-DGWnbRTj.mjs} +1 -1
- package/dist/web-components/viewer/Cue-RCMyZKdq.mjs +1 -0
- package/dist/web-components/viewer/Document-XCWKzfno.mjs +1 -0
- package/dist/web-components/viewer/{DomLayers-CwHg1jZg.mjs → DomLayers-D5F-HKU-.mjs} +1 -1
- package/dist/web-components/viewer/{Download-Clx_e2ga.mjs → Download-D9sTED6x.mjs} +1 -1
- package/dist/web-components/viewer/{EntryBodies-B4SnV6NJ.mjs → EntryBodies-D9GDp-K4.mjs} +1 -1
- package/dist/web-components/viewer/{EntryThumbnail-CsAqKh38.mjs → EntryThumbnail-FgoJmUgn.mjs} +1 -1
- package/dist/web-components/viewer/{FieldPill-NQfq8SXA.mjs → FieldPill-BRzwSwLf.mjs} +1 -1
- package/dist/web-components/viewer/{FrameAnimation-wN2VNW7D.mjs → FrameAnimation-BfqvPgd9.mjs} +1 -1
- package/dist/web-components/viewer/{Gallery-nX9kQlft.mjs → Gallery-71gebgEA.mjs} +1 -1
- package/dist/web-components/viewer/HideToggle-rX4vxm05.mjs +1 -0
- package/dist/web-components/viewer/{ImageControls--qeUY5kg.mjs → ImageControls-XEFV3Uq0.mjs} +1 -1
- package/dist/web-components/viewer/{LanguageChoice-CZ6K3Mhv.mjs → LanguageChoice-DXFfN1n1.mjs} +1 -1
- package/dist/web-components/viewer/LightboxView-CF4mcC0I.mjs +1 -0
- package/dist/web-components/viewer/ListEnd-BlsK9wx6.mjs +1 -0
- package/dist/web-components/viewer/MapView-DCxcUkUC.mjs +3 -0
- package/dist/web-components/viewer/MediaBody-4ZFKNnr3.mjs +1 -0
- package/dist/web-components/viewer/MediaBody-B_T8alBZ.mjs +1 -0
- package/dist/web-components/viewer/{NavDate-Clj6OMa6.mjs → NavDate-DtMXkvCo.mjs} +1 -1
- package/dist/web-components/viewer/{Navigator-DPdR3SYX.mjs → Navigator-B4RQiJXK.mjs} +1 -1
- package/dist/web-components/viewer/PagerLayout-CAk2XDZs.mjs +1 -0
- package/dist/web-components/viewer/PanelPart-DyxYm0ly.mjs +1 -0
- package/dist/web-components/viewer/{PartOfManifest-NAXs2DYd.mjs → PartOfManifest-Cu4fmoxn.mjs} +1 -1
- package/dist/web-components/viewer/{PlaceBox-C2k5Fsfo.mjs → PlaceBox-CSYpxMgb.mjs} +1 -1
- package/dist/web-components/viewer/{Placeholder-DF6dRMjt.mjs → Placeholder-DLJ6qaSl.mjs} +1 -1
- package/dist/web-components/viewer/{Search-DoUc8tWu.mjs → Search-BOI3sJa2.mjs} +1 -1
- package/dist/web-components/viewer/SeekMarks-DfTSWZph.mjs +1 -0
- package/dist/web-components/viewer/StandaloneItems-B1Ul8G2q.mjs +1 -0
- package/dist/web-components/viewer/Steps-5eg2Dbfd.mjs +1 -0
- package/dist/web-components/viewer/{TargetItems-DOFSQtYR.mjs → TargetItems-5JGXJ5e4.mjs} +1 -1
- package/dist/web-components/viewer/{Transcript-Dy-FHWMo.mjs → Transcript-jk8NyuUI.mjs} +1 -1
- package/dist/web-components/viewer/Transport-BbvsG9Qr.mjs +1 -0
- package/dist/web-components/viewer/Transport-D0-7mRrT.mjs +1 -0
- package/dist/web-components/viewer/{annotation-collection-A0PNdPhI.mjs → annotation-collection-C_5hyuvw.mjs} +1 -1
- package/dist/web-components/viewer/{annotation-name-CfQs7Mb2.mjs → annotation-name-Bb6Dgo3i.mjs} +1 -1
- package/dist/web-components/viewer/{annotations-content-B52-zM99.mjs → annotations-content-Jts8hjGT.mjs} +1 -1
- package/dist/web-components/viewer/{cloverEngine-4sgpB7Rz.mjs → cloverEngine-rvO-m6rC.mjs} +2 -2
- package/dist/web-components/viewer/{content-state-reader-vtATl-W3.mjs → content-state-reader-CP0H4Gnm.mjs} +1 -1
- package/dist/web-components/viewer/{dragToClose-B4rj1D3r.mjs → dragToClose-CfijwC7H.mjs} +1 -1
- package/dist/web-components/viewer/{fetchManifest-gAj8phm4.mjs → fetchManifest-CI3k9v0b.mjs} +1 -1
- package/dist/web-components/viewer/{host-Hv8WXfiF.mjs → host-CTbjXNd9.mjs} +1 -1
- package/dist/web-components/viewer/image-layers-C3YwnNvq.mjs +1 -0
- package/dist/web-components/viewer/index.mjs +1 -1
- package/dist/web-components/viewer/{link-DIh6ysyo.mjs → link-CUm6T-7L.mjs} +1 -1
- package/dist/web-components/viewer/overlayImage-JHIugjA0.mjs +1 -0
- package/dist/web-components/viewer/range-regions-ulWKWvhS.mjs +1 -0
- package/dist/web-components/viewer/{renderers-C5EfPrd7.mjs → renderers-Hs9tzSPp.mjs} +1 -1
- package/dist/web-components/viewer/{save-file-dIa0LCAn.mjs → save-file-CWKAFvNb.mjs} +1 -1
- package/dist/web-components/viewer/{search-Bbv9dCNq.mjs → search-HCPnXtXW.mjs} +1 -1
- package/dist/web-components/viewer/styles-DvZTMHkr.mjs +1 -0
- package/dist/web-components/viewer/{useControlsVisibility-jopIdHZi.mjs → useControlsVisibility-ClvKjBYI.mjs} +1 -1
- package/dist/web-components/viewer/viewer-BFDNip3h.mjs +29 -0
- package/dist/web-components/viewer/{vtt-DpgB_K8v.mjs → vtt-B3wqH_vT.mjs} +1 -1
- package/dist/web-components/viewer-C-eGBKAn.mjs +1 -0
- package/dist/web-components/{vtt-KUQbi4PK.mjs → vtt-BYJ_dF4L.mjs} +1 -1
- package/package.json +1 -1
- package/dist/templates/shared/useLazyPanelPane.mjs +0 -16
- package/dist/web-components/Button-BIaw5k1q.mjs +0 -1
- package/dist/web-components/CanvasView-CmDxczm9.mjs +0 -2
- package/dist/web-components/ControlsFade-CleBsk-W.mjs +0 -1
- package/dist/web-components/Cue-2zGQuUOC.mjs +0 -1
- package/dist/web-components/Document-pjc2qOX4.mjs +0 -1
- package/dist/web-components/Items-BHTQJU7T.mjs +0 -1
- package/dist/web-components/LightboxView-D-aBaKfB.mjs +0 -1
- package/dist/web-components/LoadedMap-0_prxuA4.mjs +0 -1
- package/dist/web-components/MapView-nHeg39Kz.mjs +0 -3
- package/dist/web-components/MediaBody-DH-rr_0N.mjs +0 -1
- package/dist/web-components/MediaBody-eSThjFzH.mjs +0 -1
- package/dist/web-components/PagerLayout-CkSwDAnp.mjs +0 -1
- package/dist/web-components/PanelPart-BA1NoeLA.mjs +0 -1
- package/dist/web-components/PanelToggle-CrKP8BqE.mjs +0 -1
- package/dist/web-components/Scene-C7t16NjC.mjs +0 -1
- package/dist/web-components/Timeline-Danuk_Nn.mjs +0 -1
- package/dist/web-components/Transport-BKona8RD.mjs +0 -1
- package/dist/web-components/Transport-Bonmu77-.mjs +0 -1
- package/dist/web-components/index-ClM6Kq8w.mjs +0 -1
- package/dist/web-components/items-BHporT5i.mjs +0 -1
- package/dist/web-components/label-r0ki6r1U.mjs +0 -1
- package/dist/web-components/logo-Br42Vlsk.mjs +0 -1
- package/dist/web-components/part-DmRBh4pf.mjs +0 -1
- package/dist/web-components/styles-C7PVxtkQ.mjs +0 -1
- package/dist/web-components/toggle-CGSnnjW-.mjs +0 -1
- package/dist/web-components/useLazyPanelPane-CReKsr8z.mjs +0 -1
- package/dist/web-components/viewer/AnnotationItems-Cvh3jfmf.mjs +0 -1
- package/dist/web-components/viewer/AnnotationState-DbtYTHMy.mjs +0 -1
- package/dist/web-components/viewer/CaptionDetails-Bxh9VD7n.mjs +0 -1
- package/dist/web-components/viewer/ChoiceMenu-Clp4Zeog.mjs +0 -1
- package/dist/web-components/viewer/Collection-C5BfoUOH.mjs +0 -1
- package/dist/web-components/viewer/ControlsFade-Db3IWArv.mjs +0 -1
- package/dist/web-components/viewer/Cue-slOJQhPI.mjs +0 -1
- package/dist/web-components/viewer/Document-r3Sz3RfH.mjs +0 -1
- package/dist/web-components/viewer/HideToggle-B843JuKU.mjs +0 -1
- package/dist/web-components/viewer/LightboxView-BcbP3cJD.mjs +0 -1
- package/dist/web-components/viewer/ListEnd-DbYDv46a.mjs +0 -1
- package/dist/web-components/viewer/MapView-Dj7Iq7P2.mjs +0 -3
- package/dist/web-components/viewer/MediaBody-TN4XsCm7.mjs +0 -1
- package/dist/web-components/viewer/MediaBody-iAxGgXNy.mjs +0 -1
- package/dist/web-components/viewer/PagerLayout-CtlmDRjI.mjs +0 -1
- package/dist/web-components/viewer/PanelPart-DzZWRlK1.mjs +0 -1
- package/dist/web-components/viewer/StandaloneItems-DuXasJO0.mjs +0 -1
- package/dist/web-components/viewer/Steps-B3MrG4Cv.mjs +0 -1
- package/dist/web-components/viewer/Transport-C5wkxVOF.mjs +0 -1
- package/dist/web-components/viewer/Transport-CUXmY_jW.mjs +0 -1
- package/dist/web-components/viewer/image-layers-gFEDKVkV.mjs +0 -1
- package/dist/web-components/viewer/overlayImage-BRjcH40Q.mjs +0 -1
- package/dist/web-components/viewer/range-regions-uPqjKIER.mjs +0 -1
- package/dist/web-components/viewer/styles-L1HpSoL2.mjs +0 -1
- package/dist/web-components/viewer/useLazyPanelPane-CoPgtYkx.mjs +0 -1
- package/dist/web-components/viewer/viewer-DqpSyvH-.mjs +0 -29
- package/dist/web-components/viewer-D2lGdifc.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as h,ab as k,_ as T,y as x,u as S}from"./shared-
|
|
1
|
+
import{A as h,ab as k,_ as T,y as x,u as S}from"./shared-BtCBrxx9.mjs";import{j as B}from"./classnames-DukgfdpI.mjs";import"./styles-CAv9WP3T.mjs";const H=({id:a,triggerId:c,onClose:n,"data-testid":s,className:p,holds:e,inside:l=false,children:w})=>{const u=h(null);return k(true,()=>n(false)),T(()=>{const t=u.current;t&&l&&L(t)},[l]),x(()=>{const t=u.current,i=(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=i==null?void 0:i.closest('label, [role="option"]');if(t&&d){const o=d.offsetTop+d.offsetHeight;o>t.scrollTop+t.clientHeight&&(t.scrollTop=o-t.clientHeight),d.offsetTop<t.scrollTop&&(t.scrollTop=d.offsetTop)}i==null||i.focus({preventScroll:true});const v=o=>{var y,m,f;const r=o.target;(y=u.current)!=null&&y.contains(r)||(m=document.getElementById(c))!=null&&m.contains(r)||r&&((f=e==null?void 0:e())!=null&&f.contains(r))||n(false)},E=o=>{var f,g;if(o.key!=="Escape")return;const r=document.activeElement;if(!!((f=u.current)!=null&&f.contains(r)||(g=document.getElementById(c))!=null&&g.contains(r))){o.preventDefault(),n(true);return}const m=b=>{b===o&&!o.defaultPrevented&&n(false)};document.addEventListener("keydown",m,{once:true})};return document.addEventListener("pointerdown",v),document.addEventListener("keydown",E,true),()=>{document.removeEventListener("pointerdown",v),document.removeEventListener("keydown",E,true)}},[c,n,e]),S("div",{className:B("clover-canvas-menu",p),"data-testid":s,id:a,ref:u,children:w})};function L(a){const c=a.getBoundingClientRect();let n=0,s=document.documentElement.clientWidth;for(let e=a.parentElement;e;e=e.parentElement){if(getComputedStyle(e).overflowX==="visible")continue;const l=e.getBoundingClientRect();n=Math.max(n,l.left),s=Math.min(s,l.right);break}const p=Math.max(n-c.left,Math.min(0,s-c.right));p&&(a.style.translate=`${p}px 0`)}export{H as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{y as l}from"./shared-BtCBrxx9.mjs";import{u}from"./useControlsVisibility-B4X3mKyY.mjs";function f({element:i,hideDelay:r,picture:s,onChange:o}){const t=u(i,r,s);return l(()=>o(t),[t,o]),null}export{f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as m,d as g,A as v,q as u,u as e,P as f,z as b}from"./shared-
|
|
1
|
+
import{b as m,d as g,A as v,q as u,u as e,P as f,z as b}from"./shared-BtCBrxx9.mjs";import"./styles-CAv9WP3T.mjs";const k=b(()=>import("./ControlMenu-BTGCnS_-.mjs"));function I({position:c,total:l,list:p}){const n=`${m().replace(/:/g,"")}-count`,t=`${n}-menu`,[r,s]=g(false),a=v(null),h=u(()=>{var o;return(o=a.current)==null?void 0:o.closest(".clover-pager")},[]),i=u(o=>{var d;s(false),o&&((d=document.getElementById(n))==null||d.focus())},[n]);return e("span",{className:"clover-pager-count",ref:a,children:[e("button",{type:"button",id:n,className:"clover-pager-count-button","aria-controls":r?t:void 0,"aria-expanded":r,onClick:()=>s(!r),children:[e("span",{className:"clover-pager-position","aria-live":"polite",children:[e("span",{children:[c>=0?c+1:"\u2013"," / ",l]}),e("span",{className:"clover-pager-room","aria-hidden":"true",hidden:true,children:[l," / ",l]})]}),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"})})]}),r&&e(f,{fallback:null,children:e(k,{id:t,triggerId:n,onClose:i,holds:h,inside:true,className:"clover-pager-menu",children:e("div",{className:"clover-collection clover-pager-list",children:p(()=>i(true))})})})]})}export{I as C};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as m,ah as o}from"./shared-BtCBrxx9.mjs";import{j as i}from"./classnames-DukgfdpI.mjs";import"./styles-CAv9WP3T.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 K,_ as le,d as Z,u as o,b as re,v as ce,k as ie}from"./shared-BtCBrxx9.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-C-eGBKAn.mjs";import{d as ge,c as ne,g as we,h as ye}from"./hooks-Dl6ZSn_E.mjs";import{B as xe}from"./Body-Bh8Nu8Fo.mjs";import{stillSource as Se,resolveThumbnail as Ee}from"./thumbnail-BdKVLxxw.mjs";import{a as Te}from"./index-BAkCMEQf.mjs";import{t as Le}from"./heading-Cjt0f-Eu.mjs";import{R as ke}from"./Root-3orKkAAl.mjs";import{Position as Ne}from"./Position-D46qbQob.mjs";import{T as ze}from"./Tip-Dd_jhbIx.mjs";import{L as Ae}from"./Label-CMEDN1xd.mjs";import{Download as Pe}from"./Download-CqYuifok.mjs";import{P as De,L as Me}from"./Provider-hKagyo0v.mjs";import{S as qe}from"./Status-ZeDFIe5P.mjs";import{I as Oe}from"./Items-GF8INTZw.mjs";const Be=1600,Fe=200,X=.25,Re=1500,Y=typeof window>"u"?K:le,ae=r=>{const s=Number(r==null?void 0:r.width),a=Number(r==null?void 0:r.height);return s>0&&a>0?s/a:void 0};function Ie({collapseControls:r,canvasOptions:s,children:a}){const{clover:u}=te("Document"),p=ge(),d=ne(),c=S(null),E=S(null),h=S(null),L=p.direction==="right-to-left"||p.direction==="bottom-to-top",v=oe(()=>p.views.map(e=>{var N;const t=e.map(x=>p.canvases[x]),n=L?[...t].reverse():t,i=n.map(ae);return{key:t.map(x=>x.id).join("|"),first:(N=t[0])==null?void 0:N.id,canvases:n,ratio:i.every(Boolean)?i.reduce((x,R)=>x+R,0):void 0}}),[p,L]),f=Math.max(0,d.position),T=S({sheets:v,position:f});T.current={sheets:v,position:f};const b=S(null),y=S(null),z=S(0),g=S(()=>{}),C=S(false),O=e=>{var t;return(t=E.current)==null?void 0:t.children[e]},A=e=>{const t=c.current,n=O(e);return!t||!n||n===h.current?0:Math.min(n.offsetTop,t.scrollHeight-t.clientHeight)},U=()=>{const e=h.current,t=O(T.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 l(){const e=c.current;if(!e||e.hasAttribute("data-scrolling")||y.current!==null)return;const t=A(T.current.position);z.current=t,!(Math.abs(e.scrollTop-t)<=1)&&(C.current=true,e.scrollTop=t,requestAnimationFrame(()=>requestAnimationFrame(()=>C.current=false)))}Y(U),K(()=>{const e=new ResizeObserver(()=>{U(),l()});return E.current&&e.observe(E.current),c.current&&e.observe(c.current),()=>e.disconnect()},[]);const P=()=>{g.current();for(const[e,t]of[[c.current,"data-scrolling"],[h.current,"data-moved"]])e&&!e.hasAttribute(t)&&e.setAttribute(t,"")},D=()=>{const e=c.current,t=h.current;if(!e||!t)return;g.current(),z.current=e.scrollTop;const n=()=>{const $=t.querySelector(".clover-canvas");return!$||$.getAttribute("data-status")!=="loading"||$.getAttribute("data-placeholder")==="true"};let i=0;const N=new MutationObserver(()=>n()&&I()),x=setTimeout(()=>I(),Re),R=()=>{cancelAnimationFrame(i),clearTimeout(x),N.disconnect()},I=()=>{R(),t.removeAttribute("data-moved"),e.removeAttribute("data-scrolling")};g.current=R,i=requestAnimationFrame(()=>{i=requestAnimationFrame(()=>{if(n())return I();N.observe(t,{attributes:true,subtree:true,attributeFilter:["data-status","data-placeholder"]})})})},k=(e,t=false)=>{var x;const n=c.current;if(!n)return;const i=A(e);if(Math.abs(n.scrollTop-i)<=1)return D();P(),y.current=e;const N=t||((x=window.matchMedia)==null?void 0:x.call(window,"(prefers-reduced-motion: reduce)").matches);n.scrollTo({top:i,behavior:N?"auto":"smooth"})},W=S(null);Y(()=>{const e=W.current!==v;if(W.current=v,F(false),b.current===f&&!e){b.current=null;return}b.current=null,k(f,e)},[f,v]),K(()=>{const e=c.current;if(!e)return;let t=0,n,i=false;const N=m=>{const M=T.current.sheets.length;if(M<2)return 0;let w=0;for(let V=0;V<M&&A(V)<=m+.5;V++)w=V;if(w>=M-1)return M-1;const j=A(w),q=(m-j)/Math.max(1,A(w+1)-j);return m>=z.current?q>X?w+1:w:q<1-X?w:w+1},x=()=>{if(t=0,y.current!==null)return;const m=N(e.scrollTop),{sheets:M,position:w}=T.current;m===w||!M[m]||(P(),F(false),b.current=m,u.goTo(M[m].first))},R=()=>{if(i)return;const{sheets:m,position:M}=T.current,w=e.scrollTop,j=y.current;y.current=null;const q=j!==null&&Math.abs(w-A(j))<=1?j:N(w);if(!m[q])return D();q!==M&&(P(),F(false),b.current=q,u.goTo(m[q].first)),k(q)},I=()=>{clearTimeout(n),n=setTimeout(R,Fe)},$=()=>{C.current||(P(),I(),t||(t=requestAnimationFrame(x)))},H=m=>{y.current=null,(m.type==="touchstart"||m.type==="pointerdown"&&m.target===e)&&(i=true)},_=()=>{i&&(i=false,I())};return e.addEventListener("scroll",$,{passive:true}),e.addEventListener("wheel",H,{passive:true}),e.addEventListener("touchstart",H,{passive:true}),e.addEventListener("pointerdown",H),window.addEventListener("touchend",_),window.addEventListener("touchcancel",_),window.addEventListener("pointerup",_),()=>{cancelAnimationFrame(t),clearTimeout(n),g.current(),e.removeEventListener("scroll",$),e.removeEventListener("wheel",H),e.removeEventListener("touchstart",H),e.removeEventListener("pointerdown",H),window.removeEventListener("touchend",_),window.removeEventListener("touchcancel",_),window.removeEventListener("pointerup",_)}},[u]);const[B,G]=Z(null);function F(e){const t=c.current;!t||t.hasAttribute("data-zoomed")===e||(t.toggleAttribute("data-zoomed",e),e&&l())}return K(()=>{if(B)return B.on("viewport",()=>F(!B.atHome))},[B]),o("div",{ref:c,className:"clover-template-document-column",onKeyDown:e=>{if(!(e.defaultPrevented||e.altKey||e.ctrlKey)){if(e.key==="PageDown"&&d.hasNext)d.next();else if(e.key==="PageUp"&&d.hasPrevious)d.previous();else return;e.preventDefault()}},children:o("div",{ref:E,className:"clover-template-document-sheets","data-single":v.length<2||void 0,children:[v.map((e,t)=>o("div",{"aria-hidden":"true",className:"clover-template-document-sheet","data-active":t===f||void 0,"data-fill":e.ratio===void 0||void 0,onClick:()=>t!==f&&u.goTo(e.first),style:e.ratio===void 0?void 0:{"--ratio":e.ratio},children:e.canvases.map(n=>o(He,{canvas:n},n.id))},e.key)),o("div",{ref:h,className:"clover-template-document-live",children:o(xe,{className:"clover-template-document-body",collapseControls:r,options:s,onReady:G,children:a})})]})})}function $e(r){const[s,a]=Z(()=>typeof IntersectionObserver>"u");return K(()=>{if(s||!r)return;const u=new IntersectionObserver(p=>{p.some(d=>d.isIntersecting)&&(a(true),u.disconnect())},{root:r.closest(".clover-template-document-column"),rootMargin:"100% 0px"});return u.observe(r),()=>u.disconnect()},[r,s]),s}function He({canvas:r}){const{clover:s}=te("Document"),a=oe(()=>Se(r),[r]),[u,p]=Z(null),d=$e(u),[c,E]=Z(a==null?void 0:a.src);K(()=>{if(!a||a.src)return E(a==null?void 0:a.src);if(!d)return;let v=true;return Ee(a,Be,s.request).then(f=>v&&E(f)),()=>{v=false}},[a,s,d]);const h=ae(r),L=h?{aspectRatio:String(h)}:void 0;return c?o("img",{alt:"",decoding:"async",loading:"lazy",src:c,style:L}):o("span",{ref:p,style:L})}Te(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]>*{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:r,defaultSidebarOpen:s,singleItem:a=false,defaultPanelOpen:u=false,panelLayout:p="accordion",panelSections:d,panelLabels:c,download:E=true,languages:h=true,headingLevel:L=2,storageKey:v="clover-template-document",collapseControls:f,canvasOptions:T,...b}){const y=Le(L,`${re().replace(/:/g,"")}-title`);return o(ke,{className:["clover-template-document",r].filter(Boolean).join(" "),...y.group,...b,children:o(Ke,{title:y,defaultSidebarOpen:s,singleItem:a,defaultPanelOpen:u,panelLayout:p,panelSections:d,panelLabels:c,download:E,languages:h,headingLevel:L,storageKey:v,collapseControls:f,canvasOptions:T})})}const ee=r=>r+1,_e=9,je=40;function Ke({defaultSidebarOpen:r,singleItem:s,defaultPanelOpen:a,download:u,languages:p,headingLevel:d=2,storageKey:c,panelLayout:E,panelSections:h,panelLabels:L,collapseControls:v,canvasOptions:f,title:T}){const b=we(),y=ye(),z=y("templateSidebar"),g=re().replace(/:/g,""),C=ne(),O=S(null),A=S(null),U=se(),l=de({id:`${g}-sidebar`,beside:J(O,je),defaultOpen:r??true,side:"start",focus:t=>t.querySelector('[role="option"][aria-selected="true"]'),slides:false,alongside:A,followFocus:U}),P=C.total>(s?0:1),D=P&&l.open,k=me({id:`${g}-panel`,beside:J(O,ue+(D?_e:0)),defaultOpen:!!a,followFocus:U,sections:h}),W=t=>{var n,i;l.over&&((i=(n=t.target).closest)!=null&&i.call(n,`[aria-controls~="${g}-sidebar"]`))&&be()},B=()=>{l.over&&l.close()},G=k.docked,F=k.toggle,e=P&&o("button",{type:"button",className:"clover-template-document-sidebar-toggle","aria-expanded":l.open,"aria-controls":`${g}-sidebar`,lang:y("templateSidebarToggle"),onClick:()=>l.setOpen(!l.open),children:[o("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16",fill:l.open?"currentColor":"none",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",children:[o("rect",{x:"1.5",y:"2",width:"5.5",height:"4.5",rx:"1"}),o("rect",{x:"1.5",y:"9.5",width:"5.5",height:"4.5",rx:"1"}),o("path",{d:"M9.5 4.25h5M9.5 11.75h5",fill:"none"})]}),o("span",{style:ce,children:b("templateSidebarToggle")}),o(Ne,{className:"clover-template-document-position"}),o(ze,{label:b("templateSidebarToggle")})]});return o(ie,{children:[o("header",{className:"clover-template-document-toolbar",children:[o(Ae,{as:T.as,className:"clover-template-document-title clover-template-title clover-title",...T.title}),u&&o(Pe,{headingLevel:ee(d)}),o(De,{className:"clover-template-document-provider",children:o(Me,{})})]}),o(qe,{loading:false}),o(ve,{ref:O,className:"clover-template-document-panes clover-template-panes","data-sidebar":D?"open":"closed","data-narrow":l.over||void 0,"data-panel":k.splitProps["data-panel"],storageKey:c||void 0,onKeyDown:t=>{k.onKeyDown(t),l.onKeyDown(t)},onPointerOver:t=>{k.splitProps.onPointerOver(t),W(t)},onFocus:t=>{k.splitProps.onFocus(t),W(t)},children:[o(Q,{ref:l.pane,as:"aside",id:`${g}-sidebar`,name:"sidebar",className:["clover-template-document-sidebar",l.over&&"clover-template-float"].filter(Boolean).join(" "),"aria-label":z?void 0:b("templateSidebar"),"aria-labelledby":z?`${g}-sidebar-name`:void 0,size:"13rem",min:l.over?void 0:"8rem",max:"24rem",hidden:!D,children:[z&&o("span",{hidden:true,id:`${g}-sidebar-name`,lang:z,children:b("templateSidebar")}),o(Oe,{layout:"list",singleItem:s,"aria-label":z?void 0:b("templateSidebar"),thumbnailSize:320,onSelect:B})]}),D&&!l.over&&o(pe,{"aria-controls":`${g}-sidebar`}),D&&o("div",{ref:A,className:"clover-template-document-spine","data-for":"sidebar",children:e}),o(Q,{className:"clover-template-document-main",min:D&&!l.over||G?he:void 0,children:[P&&!l.open&&o("div",{className:"clover-template-document-sidebar-closed",children:e}),o(Ie,{collapseControls:v,canvasOptions:f,children:!G&&F})]}),o(fe,{pane:k,className:"clover-template-document-panel",layout:E,sections:h,labels:L,headingLevel:ee(d),download:false,languages:p}),P&&l.scrim&&o("div",{className:"clover-template-document-scrim clover-template-scrim","data-for":"sidebar",...l.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-DcrhjwpU.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-BtCBrxx9.mjs";import{j as $}from"./classnames-DukgfdpI.mjs";import{a as k}from"./heading-Cjt0f-Eu.mjs";import{u as C}from"./downloads-7EkgG29z.mjs";import"./styles-CAv9WP3T.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-CYFtT-_E.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-BtCBrxx9.mjs";import{b as g}from"./annotation-name-CFvHyKti.mjs";import{M as m}from"./Markup-Bowjvwik.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-BtCBrxx9.mjs";import{resolveThumbnail as y}from"./thumbnail-BdKVLxxw.mjs";import{j as v}from"./classnames-DukgfdpI.mjs";import"./styles-CAv9WP3T.mjs";const m=52,E=336;function T(t,i,n,l=false){const[a,r]=h(t==null?void 0:t.src),d=t?JSON.stringify(t):"";return e(()=>{if(!t||t.src)return r(t==null?void 0:t.src);l||r(void 0);let f=true;return y(t,i,n).then(o=>f&&r(o)),()=>{f=false}},[d,i]),a}function N({source:t,request:i,large:n=false,className:l}){const a=T(t,n?E:m,i);return a?s("img",{className:v("clover-entry-thumbnail",l),"data-large":n?"":void 0,src:a,alt:"",...!n&&{width:m/2,height:m/2},loading:"lazy",decoding:"async"}):null}export{N as E,E as P,T as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as g,a as y,u as e,l as o,v as c}from"./shared-
|
|
1
|
+
import{D as g,a as y,u as e,l as o,v as c}from"./shared-BtCBrxx9.mjs";import{j as n}from"./classnames-DukgfdpI.mjs";import{S as k}from"./Steps-Dw4i3bYY.mjs";import{T as m}from"./Tip-Dd_jhbIx.mjs";import"./styles-CAv9WP3T.mjs";const F=g(function({id:s,value:h,onChange:u,onSubmit:f,onClear:b,results:a,size:S="large",classes:t={}},v){const{t:l,langOf:r}=y(),d=l("commonSearch"),p=l("contentSearchClear");return e("form",{role:"search",className:n("clover-field-pill",t.form),"data-size":S,onSubmit:i=>{i.preventDefault(),f()},children:[e("label",{htmlFor:s,style:c,...o(r("informationPanelTabsSearch")),children:l("informationPanelTabsSearch")}),e("input",{ref:v,id:s,type:"search",className:n("clover-field-pill-query",t.query),value:h,placeholder:l("contentSearchPlaceholder"),lang:r("contentSearchPlaceholder"),onChange:i=>u(i.target.value)}),a&&(a.total?e(k,{steps:a,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",t.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:c,children:p}),e(m,{label:p})]}),e("button",{type:"submit",className:n("clover-field-pill-submit",t.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:c,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-CCg1Iag8.mjs";import ce from"./ChoiceMenu-pugo5zxI.mjs";import{i as le,r as de}from"./layout-DVa_DnGH.mjs";import{M as Z}from"./Markup-BZ7l5GbG.mjs";import{T as ue}from"./Tip-DPFWlNLu.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-Bonmu77-.mjs";import{imageSource as xe,resolveThumbnail as Me}from"./thumbnail-ez20ssEY.mjs";import"./MediaBody-eSThjFzH.mjs";import"./styles-C7PVxtkQ.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{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-BtCBrxx9.mjs";import ce from"./ChoiceMenu-ClsLiaxQ.mjs";import{i as le,r as de}from"./layout-BixQWLYR.mjs";import{M as Z}from"./Markup-Bowjvwik.mjs";import{T as ue}from"./Tip-Dd_jhbIx.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-DGXTdsId.mjs";import{imageSource as xe,resolveThumbnail as Me}from"./thumbnail-BdKVLxxw.mjs";import"./MediaBody-B-sQOihV.mjs";import"./styles-CAv9WP3T.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 +1 @@
|
|
|
1
|
-
import{c as q,A,b as R,y as ee,u as e,P as te,z as oe,d as le,q as re,k as ae}from"./shared-
|
|
1
|
+
import{c as q,A,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-BtCBrxx9.mjs";import{u as ie,g as W,h as U,i as X,e as H}from"./hooks-Dl6ZSn_E.mjs";import{a as J}from"./index-BAkCMEQf.mjs";import{L as D}from"./Label-CMEDN1xd.mjs";import{t as Q}from"./heading-Cjt0f-Eu.mjs";import{T as Y}from"./Tip-Dd_jhbIx.mjs";import{R as ce}from"./Root-3orKkAAl.mjs";import{Summary as ne}from"./Primitives-CijKEUFK.mjs";import{S as se}from"./Status-ZeDFIe5P.mjs";import{I as me}from"./Items-GF8INTZw.mjs";function z(){const o=q(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-CKK5mjZc.mjs"),ve=oe(Z),$=()=>void Z();function he({open:o,onClose:t,headingLevel:r=3,items:i="slider",className:n,...l}){var C;const c=W(),m=U(),u=A(null),s=A(null),L=A(null),f=R().replace(/:/g,""),x=`${f}-title`,y=`${f}-view`,S=X((C=H())==null?void 0:C.label).text?x:y,T=!!z(),N=A(t);return N.current=t,ee(()=>{var E,j,K,M;const a=u.current,I=a==null?void 0:a.parentElement;if(!o||!a||!I)return;const p=a.ownerDocument.activeElement,k=Array.from(I.children).filter(v=>v!==a&&!v.classList.contains("clover-announcer")&&!v.classList.contains("clover-status"));k.forEach(v=>v.inert=true),(j=(E=s.current)==null?void 0:E.scrollIntoView)==null||j.call(E,{block:"nearest"}),(M=((K=s.current)==null?void 0:K.querySelector('[role="listbox"] [role="option"][aria-selected="true"]'))??L.current)==null||M.focus({preventScroll:true});const d=a.ownerDocument;let g;const B=v=>{var w;if(v.key!=="Tab"||!((w=s.current)!=null&&w.contains(v.target)))return;const h=v.shiftKey;clearTimeout(g),g=setTimeout(()=>{var V;const b=s.current;if(!b||b.contains(d.activeElement))return;const O=_(b);(V=h?O.at(-1):O[0])==null||V.focus()})};return d.addEventListener("keydown",B,true),()=>{var w,b;d.removeEventListener("keydown",B,true),clearTimeout(g),k.forEach(O=>O.inert=false);const h=((w=p==null?void 0:p.closest('[role="listbox"]'))==null?void 0:w.querySelector('[role="option"][aria-selected="true"]'))??p;h!=null&&h.isConnected&&(h.focus({preventScroll:true}),(b=h.scrollIntoView)==null||b.call(h,{block:"nearest"}))}},[o]),e("div",{ref:u,className:["clover-template-lightbox",n].filter(Boolean).join(" "),hidden:!o,onClick:a=>{a.target===u.current&&t()},onKeyDown:a=>{if(!a.defaultPrevented){if(a.key==="Tab"&&s.current){pe(s.current,a);return}a.key==="Escape"&&(a.preventDefault(),N.current())}},children:o&&e("div",{ref:s,role:"dialog","aria-modal":"true","aria-labelledby":S,className:"clover-template-lightbox-content",children:[e("header",{className:"clover-template-lightbox-header",children:[e(de,{onOut:t}),e(D,{as:Q(r,x).as,id:x,className:"clover-template-lightbox-title clover-template-title clover-title"}),S===y&&e(D,{of:"canvas",id:y,hidden:true}),e("button",{ref:L,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:T,items:i,headingLevel:r,...l})})]})})}const ue='a[href], button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])',_=o=>Array.from(o.querySelectorAll(ue)).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=q(s=>s.throughCollection?s.collection:null),n=z(),l=H(),c=X(n?n.label:(i==null?void 0:i.label)??(l==null?void 0:l.label)),m=c.text?"templateBackTo":"templateBack",u=t(m,{label:c.text});return e("button",{type:"button",className:"clover-template-lightbox-back","aria-label":u,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:u,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:u=true,defaultPanelOpen:s=true,panelLayout:L="accordion",panelSections:f,panelLabels:x,download:y=true,languages:G=true,storageKey:S="clover-template-gallery",headingLevel:T=2,collapseControls:N,canvasOptions:C,style:a,...I}){const[p,k]=le(false),P=re(()=>k(false),[]),d=Q(T,`${R().replace(/:/g,"")}-title`),g=r!=="auto",B={...t&&{"--clover-items-size":t},...g&&{"--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:{...a,...B},"data-height":g?"fixed":"auto",onPointerOver:$,onFocus:$,...d.group,...I,children:[e(be,{title:d,layout:n==="masonry"?"masonry":"grid",secondary:l,summary:c,onOpen:()=>k(true)}),e(he,{open:p,onClose:P,headingLevel:ge(T),items:m,panel:u,defaultPanelOpen:s,panelLayout:L,panelSections:f,panelLabels:x,download:y,languages:G,storageKey:S,collapseControls:N,canvasOptions:C})]})}function be({title:o,layout:t,secondary:r,summary:i,onOpen:n}){const l=q(m=>m.throughCollection?m.collection:null),c=z();return e(ae,{children:[e("header",{className:"clover-template-gallery-header",children:[e(D,{as:o.as,className:"clover-template-gallery-title clover-template-title clover-title",label:c?c.label:l==null?void 0:l.label,...o.title}),i&&!c&&e(ne,{className:"clover-template-gallery-summary",value:l==null?void 0:l.summary})]}),e(se,{loading:l||c?false:void 0}),e(me,{layout:t,secondary:r,of:c?"annotations":l?"members":"views",singleItem:true,onSelect:n})]})}export{Ie as Gallery};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{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-BtCBrxx9.mjs";import{T as p}from"./Tip-Dd_jhbIx.mjs";import"./styles-CAv9WP3T.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,ab as W,_ as P,u as a,R as j,l as z}from"./shared-
|
|
1
|
+
import{a as V,A as D,ab as W,_ as P,u as a,R as j,l as z}from"./shared-BtCBrxx9.mjs";import{B as K}from"./Button-CE-5ew-f.mjs";import{u as $}from"./useContainerName-C2L1lj9-.mjs";import{d as H,O as _}from"./glyphs-BO-1m6-c.mjs";import{p as q,T as G}from"./Tip-Dd_jhbIx.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(),b=`more-${c}`,B=`${b}-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(b))==null||t.focus())},[e,b]),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)}},L=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",L),t.addEventListener("animationend",s);const g=new ResizeObserver(()=>s());return g.observe(t),()=>{t.removeEventListener("scroll",E),t.removeEventListener("focusin",L),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:b,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:L,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,L),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 D,u as o,v as kt,P as V,z as B,l as x,d as $,aa as Dt,ah as St,A as T,y as S,q as wt,D as Rt,O as et,c as R,af as qt,a3 as Bt,ag as Ht,F as Ot,a as Ft,b as $t,a2 as Vt,a6 as Kt}from"./shared-BtCBrxx9.mjs";import{thumbnailSource as jt,resolveThumbnail as Ut}from"./thumbnail-BdKVLxxw.mjs";import{a as Wt,N as _t,u as Gt,h as Yt}from"./useNearViewport-DWtnayYx.mjs";import{h as zt,T as Jt}from"./Tip-Dd_jhbIx.mjs";import{r as Qt}from"./dates-DR3gfcON.mjs";import{i as Xt,a as Zt}from"./items-CDbMZvPN.mjs";import{j as te}from"./classnames-DukgfdpI.mjs";import{u as ee}from"./useContainerName-C2L1lj9-.mjs";import{a as ne}from"./heading-Cjt0f-Eu.mjs";import{u as oe}from"./useScrollTrack-D-Yh7v0Q.mjs";import"./styles-CAv9WP3T.mjs";const yt='.clover-items-item[role="option"], .clover-items-link',q=new Map;let w=null,C=null,Z=0;function nt(t){const e=q.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 tt(){cancelAnimationFrame(Z),Z=requestAnimationFrame(()=>q.forEach((t,e)=>nt(e)))}function Nt(t){var r,l;if(t.key!=="Escape")return;const e=new Set,n=(l=(r=document.activeElement)==null?void 0:r.closest)==null?void 0:l.call(r,yt);n&&e.add(n);try{document.querySelectorAll(`:is(${yt}):hover`).forEach(i=>e.add(i))}catch{}const s=[...e].filter(i=>i.dataset.fullHidden===void 0&&i.querySelector(".clover-items-label-full"));s.length&&(t.preventDefault(),t.stopPropagation(),s.forEach(i=>zt(i,"fullHidden",["pointerenter",i===n?"blur":"focus"])))}function re(){var t,e;w=typeof ResizeObserver>"u"?null:new ResizeObserver(n=>n.forEach(s=>nt(s.target))),C=typeof MutationObserver>"u"?null:new MutationObserver(tt),C==null||C.observe(document.head,{childList:true,subtree:true,characterData:true}),C==null||C.observe(document.documentElement,{attributes:true,attributeFilter:["style","class"]}),(e=(t=document.fonts)==null?void 0:t.addEventListener)==null||e.call(t,"loadingdone",tt),document.addEventListener("keydown",Nt,true)}function ae(){var t,e,n;cancelAnimationFrame(Z),(t=w==null?void 0:w.disconnect)==null||t.call(w),C==null||C.disconnect(),w=C=null,(n=(e=document.fonts)==null?void 0:e.removeEventListener)==null||n.call(e,"loadingdone",tt),document.removeEventListener("keydown",Nt,true)}function se(t,e){var n;return q.size||re(),q.set(t,{change:e}),(n=w==null?void 0:w.observe)==null||n.call(w,t),nt(t),()=>{var s;q.delete(t),(s=w==null?void 0:w.unobserve)==null||s.call(w,t),q.size||ae()}}const le=B(()=>import("./NavDate-Cc5i7OTE.mjs").then(t=>t.a).then(({NavDate:t})=>({default:t})));function ie(t,e,n,s){const r=t.source!==void 0?t.source:jt(t.resource),[l,i]=$(r==null?void 0:r.src),v=(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(!s)return;let c=true;return Ut(r,e,n).then(h=>{c&&i(h)}),()=>{c=false}},[v,e,s]),{src:l,none:!r}}const ce=()=>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 ue({part:t,size:e,request:n,alt:s,altLang:r}){const[l,i]=$(null),v=Wt(l,_t,l==null?void 0:l.closest('[data-layout="slider"] .clover-items-viewport')),{src:c,none:h}=ie(t,e,n,v),[f,u]=$(false),{width:p,height:b}=t.resource??{},k=p&&b?p/b:1;return o("span",{ref:i,className:"clover-items-picture","data-loaded":f,"data-empty":c?void 0:true,style:c&&!(p&&b)?void 0:{"--clover-items-ratio":k},children:[!c&&h&&Dt(t.media)&&o(ce,{}),c&&o("img",{src:c,alt:s,...x(s?r:void 0),width:e,height:Math.round(e/k),loading:"lazy",decoding:"async",draggable:false,onLoad:()=>u(true),onError:()=>u(true)}),t.duration?o("span",{className:"clover-items-duration",children:St(t.duration)}):null]})}function de({text:t,lang:e,first:n}){const s=T(null),[r,l]=$(false);return S(()=>{const i=s.current;if(!(!i||!t))return se(i,l)},[t]),o("span",{className:"clover-items-label","data-clamped":r||void 0,children:[!n&&" ",o("span",{ref:s,className:"clover-items-label-text",...x(t?e:void 0),children:t}),r&&o("span",{className:"clover-items-label-full",...x(e),"aria-hidden":"true",hidden:true,children:t})]})}function me({item:t,size:e,language:n,request:s,showSummary:r=false,secondary:l="summary",labels:i=true}){var u,p;const v=t.parts.map(b=>D(t.parts.length===1?t.label:b.label,n)),c=r&&l==="summary"?D(t.summary,n):null,h=r&&l==="navDate"?Qt(t.navDate):null,f=v.some(b=>b.text);return o("figure",{role:"none",className:"clover-items-figure","data-parts":t.parts.length,"data-media":(p=(u=t.parts[0])==null?void 0:u.media)==null?void 0:p.toLowerCase(),style:{"--parts":t.parts.length},children:[o("span",{className:"clover-items-pictures",children:t.parts.map((b,k)=>{const m=v[k].text?{text:""}:D(b.label,n);return o(ue,{part:b,size:e,request:s,alt:m.text,altLang:m.lang},b.id)})}),(f||h||(c==null?void 0:c.text))&&o("figcaption",{className:"clover-items-caption",style:i?void 0:kt,children:[v.map((b,k)=>o(de,{text:b.text,lang:b.lang,first:k===0},t.parts[k].id)),h&&o(V,{fallback:null,children:o(le,{value:t.navDate,className:"clover-items-date"})}),(c==null?void 0:c.text)&&o("span",{className:"clover-items-summary",...x(c.lang),children:c.text.replace(/<[^>]*>/g,"")})]})]})}function fe(t,e,{orientation:n="both",rtl:s=false,onActivate:r,onMove:l}={}){const[i,v]=$(Math.max(0,e)),c=T([]),h=T(r);h.current=r;const f=T(l);f.current=l,S(()=>{e>=0&&v(e)},[e]);const u=Math.min(i,Math.max(0,t-1)),p=wt(m=>{var y;v(m),(y=c.current[m])==null||y.focus()},[]),b=wt((m,y)=>{var K,H;const Y=s?"ArrowLeft":"ArrowRight",z=s?"ArrowRight":"ArrowLeft",L=n!=="vertical",J=n!=="horizontal";let I=null;if(L&&m.key===Y||J&&m.key==="ArrowDown")I=Math.min(t-1,y+1);else if(L&&m.key===z||J&&m.key==="ArrowUp")I=Math.max(0,y-1);else if(m.key==="Home")I=0;else if(m.key==="End")I=t-1;else if(m.key==="Enter"||m.key===" "){(K=h.current)==null||K.call(h,y,m),m.preventDefault();return}I!==null&&(m.preventDefault(),p(I),I!==y&&((H=f.current)==null||H.call(f,I,m)))},[t,n,s,p]);return{focused:u,itemProps:m=>({ref:y=>{c.current[m]=y},tabIndex:m===u?0:-1,onKeyDown:y=>b(y,m),onFocus:()=>v(m)})}}const qe=Rt(function(e,n){return!et()||e.iiifContent!==void 0||e.items!==void 0?o(V,{fallback:null,children:o(ve,{...e,forwardedRef:n})}):o(he,{...e,forwardedRef:n})}),ve=B(()=>import("./StandaloneItems-3l4YBXUu.mjs"));function he({of:t="views",...e}){return t==="targets"?o(ge,{...e}):t==="annotations"?o(we,{...e}):t==="members"?o(Ct,{...e}):o(ye,{...e})}const pe=B(()=>import("./TargetItems-DkNwteSd.mjs"));function ge(t){return R(n=>{var s;return(((s=n.targets)==null?void 0:s.items.length)??0)>1})?o(V,{fallback:null,children:o(pe,{...t})}):null}const be=B(()=>import("./AnnotationItems-CowjcNUd.mjs"));function we(t){return R(n=>!!qt(n.manifest,n.addedSets))?o(V,{fallback:null,children:o(be,{...t})}):null}function Ct({onSelect:t,forwardedRef:e,...n}){const{clover:s,language:r}=et(),l=R(f=>f.collection),i=R(f=>{var u;return((u=f.manifest)==null?void 0:u.id)??null}),v=Xt(l),c=Bt(l==null?void 0:l.viewingDirection);if(!v.length)return null;const h=(f,u)=>{t==null||t(f,u),s.goToManifest(f.id)};if(n.layout==="pager"){const f=v.findIndex(u=>u.id===i);return o(It,{...n,forwardedRef:e,steps:xt(v,f,c,h),nameKey:"informationPanelTabsCollection",position:o(Ne,{position:f,total:v.length,list:u=>o(Ct,{layout:"list",forwardedRef:null,onSelect:u})})})}return o(Mt,{...n,forwardedRef:e,items:v,selected:v.findIndex(f=>f.id===i),navigation:"id",rtl:c==="right-to-left",language:r,request:s.request,showSummary:true,onActivate:h})}function ye({onSelect:t,forwardedRef:e,singleItem:n=false,...s}){const{clover:r,language:l}=et(),i=R(u=>u.manifest),v=R(u=>Ht(u.manifest,u.canvasId)),c=R(u=>Ot(u.manifest).direction),h=Zt(i);if(h.length<(n?1:2))return null;const f=u=>r.goTo(u.id);return s.layout==="pager"?o(It,{...s,forwardedRef:e,steps:xt(h,v,c,f)}):o(Mt,{...s,forwardedRef:e,items:h,selected:v,navigation:"id",rtl:c==="right-to-left",language:l,request:r.request,onActivate:(u,p)=>{t==null||t(u,p),r.goTo(u.id)},followFocus:f})}function xt(t,e,n,s){return{position:e,total:t.length,direction:n,step:(r,l)=>{const i=t[e+r];i&&s(i,l)}}}const ke=B(()=>import("./PagerLayout-DPIiFt_i.mjs")),Ne=B(()=>import("./PagerLayout-DPIiFt_i.mjs").then(({CountMenu:t})=>({default:t})));function It(t){return o(V,{fallback:null,children:o(ke,{...t})})}function Mt({forwardedRef:t,items:e,selected:n,navigation:s,rtl:r=false,layout:l="slider",thumbnailSize:i=200,request:v,language:c,showSummary:h=false,secondary:f="summary",labels:u=true,heading:p,headingLevel:b=2,renderItem:k,onActivate:m,followFocus:y,as:Y="section",className:z,"aria-label":L,size:J,singleItem:I,highContrast:K,...H}){var pt;const{t:j}=Ft(),O=$t(),U=Vt(t,H.lang),{langOf:W}=U,Tt=Gt(K),A=l==="slider",_=s==="id",ot=T(null),rt=l==="masonry";S(()=>{const a=ot.current;if(!rt||!a)return;let d,g=true;return import("./masonry-BZCdA3bV.mjs").then(({attachMasonry:M})=>{g&&(d=M(a))}),()=>{g=false,d==null||d()}},[rt]);const P=oe({align:_?"center":"start",itemCount:e.length}),Q=T(void 0);S(()=>()=>window.clearTimeout(Q.current),[]);const At=fe(e.length,n,{orientation:l==="slider"?"horizontal":l==="list"?"vertical":"both",rtl:r,onActivate:(a,d)=>m(e[a],d),onMove:y?(a,d)=>{window.clearTimeout(Q.current);const g=()=>y(e[a]);d.repeat?Q.current=window.setTimeout(g,150):g()}:void 0}),F=T(null),at=T(false);at.current=!!((pt=F.current)!=null&&pt.contains(F.current.ownerDocument.activeElement)),S(()=>{var M;const a=F.current;if(!a||!at.current)return;const{activeElement:d,body:g}=a.ownerDocument;d&&d!==g||(M=a.querySelector(`[data-track-index="${Math.max(0,n)}"]`))==null||M.focus()},[e]);const X=T(false);S(()=>{var g;if(n<0)return;const a=!X.current;if(A){P.scrollToIndex(n,{instant:a})&&(X.current=true);return}X.current=true;const d=(g=F.current)==null?void 0:g.querySelector(`[data-track-index="${n}"]`);d&&Ce(d,a)},[A,n,P.scrollToIndex]);const Et=ne(b),N=p?D(p.label,c):null,E=p?D(p.summary,c):null,st=L===void 0&&!!(N!=null&&N.text),lt=ee(j("itemsLabel"),W("itemsLabel"),L!==void 0||st,U.hostLanguage),it=st?{"aria-labelledby":`${O}-title`}:L!==void 0?{"aria-label":L}:lt.props,ct=(a,d)=>k?k(a,{selected:d}):o(me,{item:a,size:i,language:c,request:v,showSummary:h,secondary:f,labels:u}),ut=a=>!(k||D(a.label,c).text||h&&f==="summary"&&D(a.summary,c).text),dt=(a,d)=>ut(a)?j("canvasPosition",{index:d+1,total:e.length}):void 0,mt=a=>ut(a)?W("canvasPosition"):void 0,ft=A?{display:"flex",margin:0,padding:0,listStyle:"none"}:void 0,vt=A?{flex:"0 0 auto",scrollSnapAlign:_?"center":"start"}:void 0,G=_&&n>=0,ht=a=>{const d=n+(a==="prev"?-1:1),g=G?d>=0&&d<e.length:a==="prev"?P.canScrollPrev:P.canScrollNext,M=G?a==="prev"?"commonPrevious":"commonNext":a==="prev"?"itemsScrollBack":"itemsScrollForward",gt=j(M),Lt=Pt=>{if(!g)return;if(!G)return(a==="prev"?P.scrollPrev:P.scrollNext)();const bt=e[d];y?y(bt):m(bt,Pt)};return o("button",{type:"button",className:`clover-items-scroll-${a}`,"aria-controls":G?void 0:`${O}-viewport`,...x(W(M)),"aria-disabled":!g||void 0,tabIndex:g?void 0:-1,onClick:Lt,children:[o("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16",children:o("path",{d: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:kt,children:gt}),o(Jt,{label:gt})]})};return o(Kt.Provider,{value:U.hostLanguage,children:o(Y,{ref:U.ref,className:te("clover-items",z),"data-layout":l,"data-navigation":s,...Yt(Tt),...H,children:[p&&((N==null?void 0:N.text)||(E==null?void 0:E.text))&&o("header",{className:"clover-items-header",children:[(N==null?void 0:N.text)&&o(Et,{className:"clover-items-title clover-title",id:`${O}-title`,...x(N.lang),children:N.text}),(E==null?void 0:E.text)&&o("p",{className:"clover-items-description",...x(E.lang),children:E.text.replace(/<[^>]*>/g,"")}),p.homepage&&o("a",{className:"clover-items-homepage",href:p.homepage,hrefLang:p.homepageLang,...x(W("commonViewAll")),children:j("commonViewAll")})]}),o("div",{className:"clover-items-frame",style:{position:"relative"},dir:r?"rtl":void 0,children:[A&&ht("prev"),o("div",{id:`${O}-viewport`,className:"clover-items-viewport",ref:A?P.ref:ot,children:_?o("div",{ref:F,role:"listbox",...it,"aria-orientation":A?"horizontal":"vertical",className:"clover-items-track",style:ft,children:e.map((a,d)=>{const g=d===n;return o("div",{id:`${O}-${d}`,role:"option","aria-selected":g,"aria-label":dt(a,d),...x(mt(a)),className:"clover-items-item","data-track-index":d,style:vt,...At.itemProps(d),onClick:M=>m(a,M),children:ct(a,g)},a.id)})}):o("ul",{...it,className:"clover-items-track",style:ft,children:e.map((a,d)=>o("li",{className:"clover-items-item","data-track-index":d,style:vt,children:o("a",{className:"clover-items-link",href:a.href,hrefLang:a.hrefLang,"aria-label":dt(a,d),...x(mt(a)),draggable:false,onClick:g=>m(a,g),children:ct(a,false)})},a.id))})}),A&&ht("next")]}),lt.node]})})}function Ce(t,e){var i;let n=t.parentElement;for(;n&&n!==document.body;){const{overflowY:v}=getComputedStyle(n);if(/(auto|scroll)/.test(v)&&n.scrollHeight>n.clientHeight)break;n=n.parentElement}if(!n||n===document.body)return;const s=n.getBoundingClientRect(),r=t.getBoundingClientRect(),l=r.top<s.top?r.top-s.top:r.bottom>s.bottom?r.bottom-s.bottom:0;l&&((i=n.scrollBy)==null||i.call(n,{top:l,behavior:e?"auto":"smooth"}))}export{qe as I,It as P,Mt as a,xt as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as g,X as b,O as d,t as x,u as C,l as L,Z as O}from"./shared-
|
|
1
|
+
import{D as g,X as b,O as d,t as x,u as C,l as L,Z as O}from"./shared-BtCBrxx9.mjs";import{t as P}from"./text-BTAkxEfQ.mjs";import{j}from"./classnames-DukgfdpI.mjs";import{u as h}from"./resource-DU94ocC-.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as d,b as p,u as n,l as g,v as f,k as h}from"./shared-
|
|
1
|
+
import{a as d,b as p,u as n,l as g,v as f,k as h}from"./shared-BtCBrxx9.mjs";import{l as y}from"./languageCode-cCpiU0b0.mjs";import{T as C}from"./Tip-Dd_jhbIx.mjs";import{u as N}from"./useContainerName-C2L1lj9-.mjs";function $(a){try{return new Intl.DisplayNames([a],{type:"language"}).of(a)??a}catch{return a}}function w({languages:a,chosen:i,onChange:u,nameKey:s,part:l}){const{t:c,langOf:m}=d(),t=p(),o=N(c(s),m(s));return n(h,{children:[o.node,n("fieldset",{...o.props,className:`${l}-languages`,children:a.map(e=>{const r=$(e);return n("label",{className:`${l}-language`,children:[n("input",{type:"radio",name:`${t}-language`,checked:e===i,onChange:()=>u(e)}),n("span",{className:`${l}-language-code`,children:y(e)})," ",n("span",{style:f,...g(e),children:r}),n(C,{label:r,lang:e})]},e)})})]})}export{w as LanguageChoice};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as B,y as L,u as t}from"./shared-BtCBrxx9.mjs";import{c as N,u as I,b as F,B as M,d as q,P as A,f as D,S as O}from"./viewer-C-eGBKAn.mjs";import{B as _}from"./Body-Bh8Nu8Fo.mjs";import{L as k}from"./Label-CMEDN1xd.mjs";import{I as G}from"./Items-GF8INTZw.mjs";function j({id:p,annotations:m,items:i,headingLevel:b,panel:a=true,defaultPanelOpen:f=true,panelLayout:g="accordion",panelSections:c,panelLabels:v,download:h=true,languages:y=true,storageKey:x,collapseControls:P,canvasOptions:w,placeholder:E,caption:S=true}){const s=B(null);L(()=>{var d;const e=(d=s.current)==null?void 0:d.closest('[role="dialog"]');if(!e||i==="pager")return;const l=()=>{var o;return(o=e.ownerDocument.activeElement)==null?void 0:o.matches(".clover-template-lightbox-close")},u=()=>{const o=e.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');return o&&l()&&o.focus({preventScroll:true}),!!o};if(u()||!l())return;const n=new MutationObserver(()=>{(u()||!l())&&n.disconnect()});return n.observe(e,{childList:true,subtree:true}),()=>n.disconnect()},[]);const r=N({id:`${p}-panel`,beside:F(s,M),defaultOpen:f,followFocus:I(),sections:c,body:()=>{var e;return(e=s.current)==null?void 0:e.querySelector(".clover-template-lightbox-body")}});return t(O,{ref:s,className:"clover-template-lightbox-panes clover-template-panes",storageKey:x||void 0,...a?r.splitProps:{"data-panel":"beside"},children:[t(q,{className:"clover-template-lightbox-main",min:a&&r.over?void 0:A,children:[t(_,{className:"clover-template-lightbox-body",collapseControls:P,options:w,placeholder:E,children:a&&!r.docked&&r.toggle}),S&&t(k,{of:"canvas",as:"p",className:"clover-template-lightbox-caption"}),t(G,{layout:i==="pager"?"pager":"slider",...m&&{of:"annotations"}})]}),a&&t(D,{pane:r,layout:g,sections:c,labels:v,download:h,languages:y,headingLevel:(b??3)+1})]})}export{j as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as x,c as u,w as y,ap as g,n as P,d as p,y as h,q as w,A as f,u as A}from"./shared-
|
|
1
|
+
import{e as x,c as u,w as y,ap as g,n as P,d as p,y as h,q as w,A as f,u as A}from"./shared-BtCBrxx9.mjs";function M(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]=p(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=w(()=>d(e=>Math.max(e,a)),[a]);return{loaded:a,more:a<n.length,reachNext:m}}function k({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()},[]),A("span",{ref:s,className:"clover-list-end","aria-hidden":"true",style:{display:"block",height:1}})}export{k as L,M as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as y,y as S,aH as h,u as a}from"./shared-
|
|
1
|
+
import{d as y,y as S,aH as h,u as a}from"./shared-BtCBrxx9.mjs";import{S as b}from"./SceneView-B8_AOroA.mjs";import{C as u}from"./Pending-Ci8Pe6Ip.mjs";import{B as p}from"./BodyAlert-Cra_XvnG.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 O,y as q,aH as Z,A as b,q as $,f as _,u as p,ax as J,aA as R}from"./shared-
|
|
1
|
+
import{d as O,y as q,aH as Z,A as b,q as $,f as _,u as p,ax as J,aA as R}from"./shared-BtCBrxx9.mjs";import{C as k}from"./CanvasView-DcrhjwpU.mjs";import{a as y,u as tt}from"./fromManifest-IctmL1Dl.mjs";import{j as K}from"./layout-BixQWLYR.mjs";import{C as M}from"./Pending-Ci8Pe6Ip.mjs";import{B as nt}from"./BodyAlert-Cra_XvnG.mjs";import{loadAnnotationSets as at}from"./annotation-collection-BTpPigqD.mjs";const et=()=>import("./shared-BtCBrxx9.mjs").then(o=>o.aL);function dt({iiifContent:o,onAnnotationLink:d,onReady:u,onMediaElement:i,placeholder:A=true,of:l,...r}){var T,z,D,E;const[n,s]=O({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]=O(null),c=(h==null?void 0:h.key)===L?h:null;q(()=>{let a=true;return s(e=>e.state==="ready"?{...e,next:true}:{state:"loading"}),(async()=>{var G;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)??((G=e.target)==null?void 0:G.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]=O([]),j=!!r.annotations;q(()=>{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})},B=((z=t==null?void 0:t.content.target)==null?void 0:z.canvasId)===(t==null?void 0:t.canvas.id)&&!!((D=t==null?void 0:t.content.target)!=null&&D.region||((E=t==null?void 0:t.content.target)==null?void 0:E.time)!==void 0),P=b(null),C=b(null),F=b(null),S=b(null);S.current=(t==null?void 0:t.canvas)??null;const f=$(()=>{const a=P.current;if(!a||!S.current)return;const e=K(S.current).length>0;y(a,C.current,F.current,e)&&(P.current=null)},[]);q(()=>{P.current=B?(t==null?void 0:t.content.target)??null:null,f()},[t==null?void 0:t.content,t==null?void 0:t.canvas,B,f]);const W=$(a=>{C.current=a,a.on("change",f),f(),u==null||u(a)},[f,u]),X=$(a=>{F.current=a,a&&f(),i==null||i(a)},[f,i]),H=t&&K(t.canvas).length?t.canvas:void 0,x=_(et,!!H),Y=tt(t==null?void 0:t.content.manifest,H,r.language,(x==null?void 0:x.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&&!B,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-BtCBrxx9.mjs";import{ConnectedMap as l}from"./MapView-nkpoN7X_.mjs";import{R as p}from"./Root-3orKkAAl.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-BtCBrxx9.mjs";import{j as i}from"./classnames-DukgfdpI.mjs";import"./styles-CAv9WP3T.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-BtCBrxx9.mjs";import{ConnectedMap as v,GivenMap as f}from"./MapView-nkpoN7X_.mjs";import{j as m}from"./classnames-DukgfdpI.mjs";const g=s(()=>import("./LoadedMap-DN3MdhcJ.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};
|