@nulib/clover 4.3.1 → 4.4.1
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/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.css +1 -1
- package/dist/templates/document/Document.mjs +2 -3
- package/dist/templates/document/Sheets.mjs +30 -0
- 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/templates.css +1 -1
- package/dist/ui/Button.mjs +3 -1
- package/dist/web-components/{About-j3O9cA3r.mjs → About-DgBOPS3N.mjs} +1 -1
- package/dist/web-components/{AnnotationItems-U0WmWGOh.mjs → AnnotationItems-CBEb7Cew.mjs} +1 -1
- package/dist/web-components/{AnnotationMenu-C1fAWWYy.mjs → AnnotationMenu-DiQyu45i.mjs} +1 -1
- package/dist/web-components/{AnnotationState-C9UhGpsr.mjs → AnnotationState-DemGGP7N.mjs} +1 -1
- package/dist/web-components/{Annotations-BtJ4IVmy.mjs → Annotations-CDVyd69_.mjs} +1 -1
- package/dist/web-components/{Annotations-YcFbQRJx.mjs → Annotations-oXpa3fvs.mjs} +1 -1
- package/dist/web-components/{Body-Ccxmucbr.mjs → Body-BNLhtQi3.mjs} +1 -1
- package/dist/web-components/{BodyAlert-BBSStCpI.mjs → BodyAlert-B0AblEtp.mjs} +1 -1
- package/dist/web-components/Button-0dU8Owcz.mjs +1 -0
- package/dist/web-components/{Camera-DSk-YFpW.mjs → Camera-BS8iIH74.mjs} +1 -1
- package/dist/web-components/{Canvas2DBackend-CYAJ-W6-.mjs → Canvas2DBackend-U4BLi8EN.mjs} +1 -1
- package/dist/web-components/{CanvasView-BAJ6OYvn.mjs → CanvasView-DeM04pm-.mjs} +2 -2
- package/dist/web-components/{CaptionDetails-Dg9Y11o_.mjs → CaptionDetails-CtRzBSwh.mjs} +1 -1
- package/dist/web-components/{ChaptersMenu-i4bFwR8c.mjs → ChaptersMenu-DJRfJSwC.mjs} +1 -1
- package/dist/web-components/{Chevron-BnlK9F4K.mjs → Chevron-BJFhP5wm.mjs} +1 -1
- package/dist/web-components/{ChoiceMenu-YXA7Ku8M.mjs → ChoiceMenu-Cfjnk3NG.mjs} +1 -1
- package/dist/web-components/{Collection-DgSFQbN-.mjs → Collection-C2ji8AVd.mjs} +1 -1
- package/dist/web-components/{CollectionSelect-PUcTh3Uv.mjs → CollectionSelect-CSTSqjG3.mjs} +1 -1
- package/dist/web-components/{Connected-B_caNIrW.mjs → Connected-B42WdjMx.mjs} +1 -1
- package/dist/web-components/{Connected-YgL5BWf5.mjs → Connected-C-Ars8eC.mjs} +1 -1
- package/dist/web-components/{Connected-XhRc6yaA.mjs → Connected-D2y_qBDh.mjs} +1 -1
- package/dist/web-components/{Contents-CoC4TK6G.mjs → Contents-BLbU9Qvc.mjs} +1 -1
- package/dist/web-components/{ControlMenu-CYfLg3Ok.mjs → ControlMenu-CJtszzgx.mjs} +1 -1
- package/dist/web-components/ControlsFade-Pye8AyCz.mjs +1 -0
- package/dist/web-components/{CountMenu-C7XawAoa.mjs → CountMenu-3-t8974M.mjs} +1 -1
- package/dist/web-components/Cue-eTms5gbr.mjs +1 -0
- package/dist/web-components/Document-CkKoLQ51.mjs +1 -0
- package/dist/web-components/{DomLayers-Bbrulm6v.mjs → DomLayers-DDRNVemT.mjs} +1 -1
- package/dist/web-components/{Download-CfRPt74Y.mjs → Download-VPFf23Kw.mjs} +1 -1
- package/dist/web-components/{EntryBodies-Bz8hyAUW.mjs → EntryBodies-CKgmBQCk.mjs} +1 -1
- package/dist/web-components/{EntryThumbnail-R9h0AXcu.mjs → EntryThumbnail-CgukpUtr.mjs} +1 -1
- package/dist/web-components/{FieldPill-DFIdy-hn.mjs → FieldPill-M9u0eLtz.mjs} +1 -1
- package/dist/web-components/{FrameAnimation-DFDuFwwt.mjs → FrameAnimation-C2EFrQl0.mjs} +1 -1
- package/dist/web-components/{Gallery-BrYWLufL.mjs → Gallery-mqXXjGtK.mjs} +1 -1
- package/dist/web-components/{HideToggle-geO9QfFR.mjs → HideToggle-HVrk9D6t.mjs} +1 -1
- package/dist/web-components/{ImageControls-B9PhCHqi.mjs → ImageControls-BsGWsB_S.mjs} +1 -1
- package/dist/web-components/Items-BoFm0Hlx.mjs +1 -0
- package/dist/web-components/{Label-S7o8PlWU.mjs → Label-GTBsGDCC.mjs} +1 -1
- package/dist/web-components/{LanguageChoice-URJJAdah.mjs → LanguageChoice-BEiskuVG.mjs} +1 -1
- package/dist/web-components/LightboxView-Daz0RCee.mjs +1 -0
- package/dist/web-components/{ListEnd-B0wGr87o.mjs → ListEnd-BPSaqeEg.mjs} +1 -1
- package/dist/web-components/{Loaded-Do53YvYw.mjs → Loaded-vg9q9y73.mjs} +1 -1
- package/dist/web-components/{LoadedCanvas-BrtGPpSm.mjs → LoadedCanvas-BtNg_QnI.mjs} +1 -1
- package/dist/web-components/LoadedMap-D9Z3zl12.mjs +1 -0
- package/dist/web-components/{Loading-Du3wn1EM.mjs → Loading-DnCFXiNy.mjs} +1 -1
- package/dist/web-components/{Map-B6LVO0gx.mjs → Map-CIGzy4XB.mjs} +1 -1
- package/dist/web-components/MapView-CExlNO5E.mjs +3 -0
- package/dist/web-components/{Markup-DACv7sRg.mjs → Markup-Csh1bNkq.mjs} +1 -1
- package/dist/web-components/{MediaBody-CcuO5IZT.mjs → MediaBody-CRJFBpMk.mjs} +1 -1
- package/dist/web-components/{MediaBody-DGd2uFfK.mjs → MediaBody-CeEWPIDp.mjs} +1 -1
- package/dist/web-components/{NavDate-DRKmjc54.mjs → NavDate-qoFXy3Ou.mjs} +1 -1
- package/dist/web-components/{Navigator-CA8zB6CU.mjs → Navigator-9n2yLQdc.mjs} +1 -1
- package/dist/web-components/{Pager-DWp6u3iv.mjs → Pager-4rZjWBna.mjs} +1 -1
- package/dist/web-components/PagerLayout-l6UNSoQ1.mjs +1 -0
- package/dist/web-components/{Panel-CzUDNn8M.mjs → Panel-ikILE92M.mjs} +1 -1
- package/dist/web-components/PanelPart-VPAwSoQZ.mjs +1 -0
- package/dist/web-components/PanelToggle-0K2YTp6k.mjs +1 -0
- package/dist/web-components/{PartOfManifest-Ct-I8Ofm.mjs → PartOfManifest-ZUGZW86B.mjs} +1 -1
- package/dist/web-components/{Pending-f1heQNo7.mjs → Pending-lpHOVvqE.mjs} +1 -1
- package/dist/web-components/{PlaceBox-_an9ya_W.mjs → PlaceBox-D73C--SU.mjs} +1 -1
- package/dist/web-components/{Placeholder-D4-VCxeD.mjs → Placeholder-ChFeaw7a.mjs} +1 -1
- package/dist/web-components/{Position-DA4rzRiy.mjs → Position-C2Hm7tJZ.mjs} +1 -1
- package/dist/web-components/{Primitives-DU_VhdO2.mjs → Primitives-CBRreXtS.mjs} +1 -1
- package/dist/web-components/{Provider-Dl_t_qEC.mjs → Provider-HPVBNZPr.mjs} +1 -1
- package/dist/web-components/{ReadMore-BpA8Dex8.mjs → ReadMore-DsthjUIZ.mjs} +1 -1
- package/dist/web-components/{Root-DixSZV9Y.mjs → Root-BJwk-F1e.mjs} +1 -1
- package/dist/web-components/Scene-DC7ofvsK.mjs +1 -0
- package/dist/web-components/{SceneView-BJNlboix.mjs → SceneView-C53yZtMZ.mjs} +1 -1
- package/dist/web-components/{Search-CvpKzlYP.mjs → Search-Cd0xLU3y.mjs} +1 -1
- package/dist/web-components/{Sections-BhfcUyaf.mjs → Sections-Cf3JDxnz.mjs} +1 -1
- package/dist/web-components/{SeekMarks-BfOrFnvQ.mjs → SeekMarks-DNHLgUaX.mjs} +1 -1
- package/dist/web-components/{StandaloneItems-CoiceHd8.mjs → StandaloneItems-DEchYe7Y.mjs} +1 -1
- package/dist/web-components/{Status-B4327UOL.mjs → Status-DLZANUzF.mjs} +1 -1
- package/dist/web-components/{Steps-ACdXJZrV.mjs → Steps-BigQvWNW.mjs} +1 -1
- package/dist/web-components/{TargetItems-D1bLKA_B.mjs → TargetItems-DzNzoEeh.mjs} +1 -1
- package/dist/web-components/Timeline--uq4-_TD.mjs +1 -0
- package/dist/web-components/{Tip-BatwzZZo.mjs → Tip-CoSRaKjm.mjs} +1 -1
- package/dist/web-components/{Transcript-B1nh9UJK.mjs → Transcript-Dex719tP.mjs} +1 -1
- package/dist/web-components/{Transport-DKb3XTMA.mjs → Transport-BV0Rg5Ym.mjs} +1 -1
- package/dist/web-components/{Transport-BsjGGbFJ.mjs → Transport-CHkvmPbN.mjs} +1 -1
- package/dist/web-components/{annotation-collection-CtxYL-V3.mjs → annotation-collection-DwJ2R8tG.mjs} +1 -1
- package/dist/web-components/{annotation-name-KQ4wAi8-.mjs → annotation-name-2rUtUYsN.mjs} +1 -1
- package/dist/web-components/{annotations-content-XVgQ5me7.mjs → annotations-content-fTNYRgN_.mjs} +1 -1
- package/dist/web-components/{body-CbYkzpmQ.mjs → body-qFClz6nF.mjs} +1 -1
- package/dist/web-components/{canvas-Du31_Dru.mjs → canvas-DqmG6v1g.mjs} +1 -1
- package/dist/web-components/{cloverEngine-CuRCXZNZ.mjs → cloverEngine-BBfVDNbE.mjs} +1 -1
- package/dist/web-components/{content-state-reader-DLlBY4Ox.mjs → content-state-reader-DYXL5lFa.mjs} +1 -1
- package/dist/web-components/{controlGlyphs-ClH59vLg.mjs → controlGlyphs-DqZmaT9n.mjs} +1 -1
- package/dist/web-components/{controls-smixEi0i.mjs → controls-BvC6zo32.mjs} +1 -1
- package/dist/web-components/custom-elements.json +22 -0
- package/dist/web-components/{downloads-BqkNwsM0.mjs → downloads-CFz0RnMz.mjs} +1 -1
- package/dist/web-components/{dragToClose-2joCF413.mjs → dragToClose-wFiErDub.mjs} +1 -1
- package/dist/web-components/{engine-DNTgJBST.mjs → engine-B0W3FXuQ.mjs} +1 -1
- package/dist/web-components/{engines-BpFZX2dO.mjs → engines-DVRUnyFv.mjs} +1 -1
- package/dist/web-components/{fetchManifest-B-poGgag.mjs → fetchManifest-f8gYlPDK.mjs} +1 -1
- package/dist/web-components/{fromManifest-Dw3BwjHM.mjs → fromManifest-BmpOsc5g.mjs} +1 -1
- package/dist/web-components/{glyphs-VoJVEqLE.mjs → glyphs-oAgi4Au0.mjs} +1 -1
- package/dist/web-components/{hooks-Syt1XLVX.mjs → hooks-uer3ZRx7.mjs} +1 -1
- package/dist/web-components/{image-layers-ryUJ_0bq.mjs → image-layers-CndzdWOW.mjs} +1 -1
- package/dist/web-components/{imageService-DBU_Xks1.mjs → imageService-DTp1mc0F.mjs} +1 -1
- package/dist/web-components/index-BkADsP3U.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-BWG13qDG.mjs +1 -0
- package/dist/web-components/{items-BQPvL5D6.mjs → items-SD92pRMN.mjs} +1 -1
- package/dist/web-components/label-Bw9SwLh8.mjs +1 -0
- package/dist/web-components/{layout-MzMKFa5I.mjs → layout-DrVnUBcm.mjs} +1 -1
- package/dist/web-components/{link-BUQQE9P2.mjs → link-CEfxl5hU.mjs} +1 -1
- package/dist/web-components/logo-Dzr2M4F7.mjs +1 -0
- package/dist/web-components/{models-wl-5vW2i.mjs → models-B-kri8Ov.mjs} +1 -1
- package/dist/web-components/{nodes-CmOpA3s7.mjs → nodes-BKoxD-el.mjs} +1 -1
- package/dist/web-components/{overlayImage-tb9-Md51.mjs → overlayImage-Dp8CjA_L.mjs} +1 -1
- package/dist/web-components/{panel-BPVyAugu.mjs → panel-ldBDfuIV.mjs} +1 -1
- package/dist/web-components/part-dr-d1XPo.mjs +1 -0
- package/dist/web-components/{playerSurface-BxxMV-va.mjs → playerSurface-CLWTmyt1.mjs} +1 -1
- package/dist/web-components/{pointer-BqgxBJ82.mjs → pointer-IZcH8rZy.mjs} +1 -1
- package/dist/web-components/{provider-B9oAQG-u.mjs → provider-D24Pm3a1.mjs} +1 -1
- package/dist/web-components/{range-regions-BFB1374L.mjs → range-regions-9vY5ikPm.mjs} +1 -1
- package/dist/web-components/{read-more-oWPk0OLi.mjs → read-more-CoOeWZOF.mjs} +1 -1
- package/dist/web-components/{readingLanguages-BigCi6rZ.mjs → readingLanguages-Bd4MD2DP.mjs} +1 -1
- package/dist/web-components/{rendererSurface-B_OOhxzA.mjs → rendererSurface-Ox625xUL.mjs} +2 -2
- package/dist/web-components/{renderers-CBupZj8Z.mjs → renderers-BXcv_AqV.mjs} +1 -1
- package/dist/web-components/{resource-B6uUsU6D.mjs → resource-DmK-8hJ-.mjs} +1 -1
- package/dist/web-components/{save-file-BaIrLp1V.mjs → save-file-Dj3MRR7Y.mjs} +1 -1
- package/dist/web-components/{search-DaGpvTki.mjs → search-C9OyY1qk.mjs} +1 -1
- package/dist/web-components/{shared-D2RadIoz.mjs → shared-BmkV0s_d.mjs} +1 -1
- package/dist/web-components/{show-link-Cxylys81.mjs → show-link-4mlfdoeo.mjs} +1 -1
- package/dist/web-components/{sizedImage-DchqGFdt.mjs → sizedImage-COfCkv_8.mjs} +1 -1
- package/dist/web-components/{split-oaEIep3T.mjs → split-Ci426kxC.mjs} +1 -1
- package/dist/web-components/{status-CfCgO5OB.mjs → status-CzasXLV8.mjs} +1 -1
- package/dist/web-components/styles-On1ck1Ob.mjs +1 -0
- package/dist/web-components/three.mjs +1 -1
- package/dist/web-components/{thumbnail-D83GaQ8C.mjs → thumbnail-ByuoouMG.mjs} +1 -1
- package/dist/web-components/{tip-CMEBtCil.mjs → tip-CQEGLOst.mjs} +1 -1
- package/dist/web-components/toggle-Dro_EmUU.mjs +1 -0
- package/dist/web-components/{useContainerName-fp0-n_9x.mjs → useContainerName-CUP-TlA5.mjs} +1 -1
- package/dist/web-components/{useControlsVisibility-BYZlgiAt.mjs → useControlsVisibility-DeI3NHWp.mjs} +1 -1
- package/dist/web-components/{useNearViewport-DMqMdvue.mjs → useNearViewport-yyUYq47j.mjs} +1 -1
- package/dist/web-components/{useScrollTrack-BHuPAWxB.mjs → useScrollTrack-CcFLYR4o.mjs} +1 -1
- package/dist/web-components/viewer/AnnotationItems-ByWBkMRd.mjs +1 -0
- package/dist/web-components/viewer/{AnnotationMenu-BO18q_Ze.mjs → AnnotationMenu-C-9tbH4G.mjs} +1 -1
- package/dist/web-components/viewer/AnnotationState-CV4g-WUB.mjs +1 -0
- package/dist/web-components/viewer/{Annotations-C46kSUA6.mjs → Annotations-CJRF_IwO.mjs} +1 -1
- package/dist/web-components/viewer/{Annotations-DEKa_9xz.mjs → Annotations-t1K8U5Kp.mjs} +2 -2
- package/dist/web-components/viewer/{Canvas2DBackend-DHSI3dKr.mjs → Canvas2DBackend-DPDF0a8D.mjs} +1 -1
- package/dist/web-components/viewer/CaptionDetails-xzvdqP5N.mjs +1 -0
- package/dist/web-components/viewer/{ChaptersMenu-CIwIM2Pb.mjs → ChaptersMenu-D7b9t6bm.mjs} +1 -1
- package/dist/web-components/viewer/ChoiceMenu-f2774ZaY.mjs +1 -0
- package/dist/web-components/viewer/Collection-D1E6A8es.mjs +1 -0
- package/dist/web-components/viewer/{Connected-Bbk8M5rE.mjs → Connected-BLeqNIOf.mjs} +1 -1
- package/dist/web-components/viewer/{Connected-DAOMKtJR.mjs → Connected-DfqFYcTn.mjs} +1 -1
- package/dist/web-components/viewer/{Contents-BnRBx3rc.mjs → Contents-DvmP8OGy.mjs} +1 -1
- package/dist/web-components/viewer/{ControlMenu-Co6yBttc.mjs → ControlMenu-DIfN3xYJ.mjs} +1 -1
- package/dist/web-components/viewer/ControlsFade-sckPhZ4x.mjs +1 -0
- package/dist/web-components/viewer/{CountMenu-lu21fO_7.mjs → CountMenu-BQVCtVfu.mjs} +1 -1
- package/dist/web-components/viewer/Cue-DQ8q-fgb.mjs +1 -0
- package/dist/web-components/viewer/Document-B-nJpfDh.mjs +1 -0
- package/dist/web-components/viewer/{DomLayers-BjxGaZkt.mjs → DomLayers-CD56oMcR.mjs} +1 -1
- package/dist/web-components/viewer/{Download-DhMD4AJt.mjs → Download-DAOzY3Nu.mjs} +1 -1
- package/dist/web-components/viewer/{EntryBodies-DL5UolEz.mjs → EntryBodies-0A0uyEwC.mjs} +1 -1
- package/dist/web-components/viewer/{EntryThumbnail-CJisDcni.mjs → EntryThumbnail-fBaBZJGd.mjs} +1 -1
- package/dist/web-components/viewer/{FieldPill-DAk6zxxD.mjs → FieldPill-BQcDb4xM.mjs} +1 -1
- package/dist/web-components/viewer/{FrameAnimation-DGMuFNdW.mjs → FrameAnimation-kba5V4Vk.mjs} +1 -1
- package/dist/web-components/viewer/{Gallery-CbHhyWlF.mjs → Gallery-_0dEBq2w.mjs} +1 -1
- package/dist/web-components/viewer/HideToggle-D8c_7URN.mjs +1 -0
- package/dist/web-components/viewer/{ImageControls-BDx7C1q5.mjs → ImageControls-C_C0LSj7.mjs} +1 -1
- package/dist/web-components/viewer/{LanguageChoice-BM9xZr_D.mjs → LanguageChoice-0UWQ5V-y.mjs} +1 -1
- package/dist/web-components/viewer/LightboxView-Dnlf7m8l.mjs +1 -0
- package/dist/web-components/viewer/ListEnd-B2hnHrcl.mjs +1 -0
- package/dist/web-components/viewer/MapView-Cr3RiB1K.mjs +3 -0
- package/dist/web-components/viewer/{MediaBody-BokgnTO-.mjs → MediaBody-4ZFKNnr3.mjs} +1 -1
- package/dist/web-components/viewer/{MediaBody-DPOcyiYH.mjs → MediaBody-xjpo27Vw.mjs} +1 -1
- package/dist/web-components/viewer/{NavDate-B6rCV-Cd.mjs → NavDate-Dz5eW2XY.mjs} +1 -1
- package/dist/web-components/viewer/{Navigator-CjgUcgKY.mjs → Navigator-DNZcaADs.mjs} +1 -1
- package/dist/web-components/viewer/PagerLayout-PYWFPFSJ.mjs +1 -0
- package/dist/web-components/viewer/PanelPart-Bd0JqUwF.mjs +1 -0
- package/dist/web-components/viewer/{PartOfManifest-B0TYADTv.mjs → PartOfManifest-BHpVLJOn.mjs} +1 -1
- package/dist/web-components/viewer/{PlaceBox-Cjdjg-_9.mjs → PlaceBox-Bh9V3RLS.mjs} +1 -1
- package/dist/web-components/viewer/{Placeholder-MYLjXbiF.mjs → Placeholder-CLITKdu6.mjs} +1 -1
- package/dist/web-components/viewer/{Search-CyRrBHsr.mjs → Search-C0B5Jh9V.mjs} +1 -1
- package/dist/web-components/viewer/{SeekMarks-1WSjARP5.mjs → SeekMarks-B8cuyVgz.mjs} +1 -1
- package/dist/web-components/viewer/StandaloneItems-Cu0aBqAo.mjs +1 -0
- package/dist/web-components/viewer/Steps-DqszSHcR.mjs +1 -0
- package/dist/web-components/viewer/{TargetItems-BpmZEVMS.mjs → TargetItems-DN8ebfbK.mjs} +1 -1
- package/dist/web-components/viewer/{Transcript-CE4BsnWd.mjs → Transcript-D3mKmdQY.mjs} +1 -1
- package/dist/web-components/viewer/Transport-9f_lhebG.mjs +1 -0
- package/dist/web-components/viewer/{Transport-1ROUkfsf.mjs → Transport-BudReE7Y.mjs} +1 -1
- package/dist/web-components/viewer/{annotation-collection-vM0aeJgP.mjs → annotation-collection-Drwfws4R.mjs} +1 -1
- package/dist/web-components/viewer/{annotation-name-kjUrGbhg.mjs → annotation-name-Bp2GHdpi.mjs} +1 -1
- package/dist/web-components/viewer/{annotations-content-CysDLy4t.mjs → annotations-content-Ci-orrao.mjs} +1 -1
- package/dist/web-components/viewer/{cloverEngine-S8GEd-YZ.mjs → cloverEngine-BmUppb5Y.mjs} +2 -2
- package/dist/web-components/viewer/{content-state-reader-BTZKS9Hq.mjs → content-state-reader-B9u1vc3t.mjs} +1 -1
- package/dist/web-components/viewer/{dragToClose-Bt4QtVSO.mjs → dragToClose-C9KwbQpA.mjs} +1 -1
- package/dist/web-components/viewer/{fetchManifest-D4aIqcDV.mjs → fetchManifest-gl9fyg7D.mjs} +1 -1
- package/dist/web-components/viewer/{host-ClJe-BX1.mjs → host-D3tVEhAD.mjs} +1 -1
- package/dist/web-components/viewer/image-layers-DSehEFmU.mjs +1 -0
- package/dist/web-components/viewer/index.mjs +1 -1
- package/dist/web-components/viewer/{link-CU71f0wU.mjs → link-BYKFtAno.mjs} +1 -1
- package/dist/web-components/viewer/overlayImage-CdgpMutd.mjs +1 -0
- package/dist/web-components/viewer/range-regions-CEM4sQKi.mjs +1 -0
- package/dist/web-components/viewer/{renderers-2BgvLkI0.mjs → renderers-BiDrFLxn.mjs} +1 -1
- package/dist/web-components/viewer/{save-file-BW7D7oYG.mjs → save-file-CzYUFJNg.mjs} +1 -1
- package/dist/web-components/viewer/{search-DBMO82DV.mjs → search-Dr6AQ3Lb.mjs} +1 -1
- package/dist/web-components/viewer/styles-DvZTMHkr.mjs +1 -0
- package/dist/web-components/viewer/{useControlsVisibility-DSSIzst5.mjs → useControlsVisibility-CP5m7oBd.mjs} +1 -1
- package/dist/web-components/viewer/viewer-DaG51iO3.mjs +29 -0
- package/dist/web-components/viewer/{vtt-Dk5bwDVQ.mjs → vtt-CDqR3lHn.mjs} +1 -1
- package/dist/web-components/viewer-DeAUI9Fi.mjs +1 -0
- package/dist/web-components/{vtt-9Ui3h60h.mjs → vtt-DHZRkZ_P.mjs} +1 -1
- package/package.json +1 -1
- package/dist/templates/shared/useLazyPanelPane.mjs +0 -16
- package/dist/web-components/Button-Bphsp8rv.mjs +0 -1
- package/dist/web-components/ControlsFade-BcGL7yUH.mjs +0 -1
- package/dist/web-components/Cue-DZJ5TBKU.mjs +0 -1
- package/dist/web-components/Document-DZDYR2Tk.mjs +0 -1
- package/dist/web-components/Items-C7wjylgH.mjs +0 -1
- package/dist/web-components/LightboxView-65ROPr0_.mjs +0 -1
- package/dist/web-components/LoadedMap-C06TIgvf.mjs +0 -1
- package/dist/web-components/MapView-CzV3y5iI.mjs +0 -3
- package/dist/web-components/PagerLayout-DHRpcI8x.mjs +0 -1
- package/dist/web-components/PanelPart-DKb9dXm6.mjs +0 -1
- package/dist/web-components/PanelToggle-D5sx5FP9.mjs +0 -1
- package/dist/web-components/Scene-CSaXgBNr.mjs +0 -1
- package/dist/web-components/Timeline-DY8LpnOG.mjs +0 -1
- package/dist/web-components/index-DGXCFoHu.mjs +0 -1
- package/dist/web-components/items-TIbaHoB8.mjs +0 -1
- package/dist/web-components/label-Bd-QYEXn.mjs +0 -1
- package/dist/web-components/logo-Cn820OoX.mjs +0 -1
- package/dist/web-components/part-DeZI8Hmp.mjs +0 -1
- package/dist/web-components/styles-DZIDbHxL.mjs +0 -1
- package/dist/web-components/toggle-3NncfBSZ.mjs +0 -1
- package/dist/web-components/useLazyPanelPane-DXYGGS7f.mjs +0 -1
- package/dist/web-components/viewer/AnnotationItems-B5Vs0dYi.mjs +0 -1
- package/dist/web-components/viewer/AnnotationState-ZPmnCpbZ.mjs +0 -1
- package/dist/web-components/viewer/CaptionDetails-BVCqV9NT.mjs +0 -1
- package/dist/web-components/viewer/ChoiceMenu-Ww7lcPnq.mjs +0 -1
- package/dist/web-components/viewer/Collection-DCYM9eE6.mjs +0 -1
- package/dist/web-components/viewer/ControlsFade-pOQ5VQ5i.mjs +0 -1
- package/dist/web-components/viewer/Cue-oaiVO9ZO.mjs +0 -1
- package/dist/web-components/viewer/Document-ByBRhL68.mjs +0 -1
- package/dist/web-components/viewer/HideToggle-C6B9B2Bo.mjs +0 -1
- package/dist/web-components/viewer/LightboxView-RrioB0CN.mjs +0 -1
- package/dist/web-components/viewer/ListEnd-8vdKw6Py.mjs +0 -1
- package/dist/web-components/viewer/MapView-G3yj-Bjd.mjs +0 -3
- package/dist/web-components/viewer/PagerLayout-LZmC6VpV.mjs +0 -1
- package/dist/web-components/viewer/PanelPart-Cw1G5W4b.mjs +0 -1
- package/dist/web-components/viewer/StandaloneItems-CQrzTSPC.mjs +0 -1
- package/dist/web-components/viewer/Steps-Bd42-eq7.mjs +0 -1
- package/dist/web-components/viewer/Transport-g0_Cjy0f.mjs +0 -1
- package/dist/web-components/viewer/image-layers-DGa5HJt8.mjs +0 -1
- package/dist/web-components/viewer/overlayImage-D9GHzMmm.mjs +0 -1
- package/dist/web-components/viewer/range-regions-CiceyEuu.mjs +0 -1
- package/dist/web-components/viewer/styles-DogZyfVz.mjs +0 -1
- package/dist/web-components/viewer/useLazyPanelPane-_6IY7cV5.mjs +0 -1
- package/dist/web-components/viewer/viewer-ClQD1LNQ.mjs +0 -29
- package/dist/web-components/viewer-DLfZQmZs.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as W,a as X,e as Y,c as $,J as Z,C as O,d as N,b as _,T as tt,A as et,y as B,u as o,t as rt,l as k,k as st,v as nt,K as j,E as at,L as A}from"./shared-
|
|
1
|
+
import{D as W,a as X,e as Y,c as $,J as Z,C as O,d as N,b as _,T as tt,A as et,y as B,u as o,t as rt,l as k,k as st,v as nt,K as j,E as at,L as A}from"./shared-BmkV0s_d.mjs";import{imageSource as it}from"./thumbnail-ByuoouMG.mjs";import{j as ot}from"./classnames-DukgfdpI.mjs";import{C as ct}from"./Chevron-BJFhP5wm.mjs";import{E as lt}from"./EntryThumbnail-CgukpUtr.mjs";import{S as ut}from"./Steps-BigQvWNW.mjs";import{C as dt}from"./Cue-eTms5gbr.mjs";import{u as mt}from"./useContainerName-CUP-TlA5.mjs";import"./styles-On1ck1Ob.mjs";const Nt=W(function({as:d="nav",className:n,...u},h){const{t:p,langOf:c}=X(),{clover:s,language:F}=Y("Contents"),x=mt(p("informationPanelTabsContents"),c("informationPanelTabsContents"),u["aria-label"]!==void 0||u["aria-labelledby"]!==void 0),f=$(e=>Z(e.manifest)),T=$(e=>e.canvasId),z=$(e=>e.annotationId),S=O(s.media.subscribe,s.media.get,s.media.get),[D,w]=N(null),v=gt(f,T,S,D),H=O(s.chapter.subscribe,s.chapter.get,s.chapter.get),J=_(),C=tt(()=>pt(f,v),[f,v]),[K,L]=N(()=>new Map),M=et(new Set);B(()=>{const e=[...C].filter(r=>!M.current.has(r));M.current=C,L(r=>{if(!e.some(t=>r.has(t)))return r;const i=new Map(r);return e.forEach(t=>i.delete(t)),i})},[C]);const[b,U]=N();if(!f.length)return null;const G=e=>K.get(e.id)??C.has(e.id),P=(e,r)=>{var m,l;const i=(m=e.parts)==null?void 0:m[r];if(!i)return;U({node:e.id,index:r}),w(e.id);const t=A(e.id,r);i.region&&((l=s.store.get().regions)!=null&&l.entries.some(a=>a.id===t))?s.selectAnnotation(t):s.goTo(i.canvasId,i.region?{region:i.region}:{})},Q=e=>{if(e.canvasId){if(w(e.id),e.parts){P(e,0);return}if(e.canvasId===T&&e.time&&S){at(S,e.time.start);return}s.goTo(e.canvasId,{...e.time?{time:e.time.start,autoplay:true}:{},...e.region?{region:e.region}:{}})}},R=(e,r)=>{var l;const i=r.findIndex((a,y)=>!!a.region&&A(e.id,y)===z),t=(b==null?void 0:b.node)===e.id&&((l=r[b.index])==null?void 0:l.canvasId)===T?b.index:-1,m=i>=0?i:t>=0?t:r.findIndex(a=>a.canvasId===T);return{position:m,total:r.length,step:a=>P(e,m+a)}},q=(e,r,i=false)=>o("ol",{className:"clover-contents-list",id:r,hidden:i,children:e.map((t,m)=>{const l=rt(t.label,F),a=r?`${r}-${m}`:`${J}-${m}`,y=t.children.length>0,I=y&&G(t),E=t.id===v?it(t.thumbnail):null;return o("li",{className:"clover-contents-item",children:[o("div",{className:"clover-contents-row","data-current":t.id===v?"true":void 0,children:[o("button",{type:"button",id:`${a}-entry`,className:"clover-contents-button","data-trail":C.has(t.id)?"true":void 0,"aria-current":t.id===v?"true":void 0,"data-highlighted":t.id===H?"true":void 0,disabled:!t.canvasId,onMouseEnter:()=>s.chapter.emit(t.id),onMouseLeave:()=>s.chapter.emit(null),onFocus:()=>s.chapter.emit(t.id),onBlur:()=>s.chapter.emit(null),"data-timed":t.time?"true":void 0,"data-pictured":E?"true":void 0,...k(l.text&&!t.time&&!E?l.lang:void 0),onClick:()=>Q(t),children:t.time||E?o(st,{children:[t.time&&o(dt,{start:t.time.start,className:"clover-contents-time"}),o("span",{className:"clover-cue-text",...k(l.text?l.lang:void 0),children:l.text||t.id}),o(lt,{source:E,request:s.request,large:true})]}):l.text||t.id}),t.id===v&&t.parts&&t.parts.length>1&&o(ut,{className:"clover-contents-steps",steps:R(t,t.parts)}),y&&o("button",{type:"button",className:"clover-contents-toggle","aria-expanded":I,"aria-controls":`${a}-list`,"aria-labelledby":`${a}-toggle ${a}-entry`,onClick:()=>L(V=>new Map(V).set(t.id,!I)),children:[o("span",{id:`${a}-toggle`,style:nt,...k(c("contentsSectionsIn")),children:p("contentsSectionsIn")}),o(ct,{open:I,className:"clover-contents-chevron"})]})]}),y&&q(t.children,`${a}-list`,!I)]},t.id)})});return o(d,{ref:h,...x.props,className:ot("clover-contents",n),...u,children:[x.node,q(f)]})});function pt(g,d){const n=new Set;if(!d)return n;const u=(h,p)=>h.some(c=>c.id===d?(p.forEach(s=>n.add(s)),true):u(c.children,[...p,c.id]));return u(g,[]),n}function gt(g,d,n,u){const[h,p]=N(()=>j(g,d,void 0,u));return B(()=>{const c=()=>p(j(g,d,n==null?void 0:n.currentTime,u));if(c(),!!n)return n.addEventListener("timeupdate",c),n.addEventListener("seeked",c),()=>{n.removeEventListener("timeupdate",c),n.removeEventListener("seeked",c)}},[g,d,n,u]),h}export{Nt as Contents};
|
|
@@ -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-BmkV0s_d.mjs";import{j as B}from"./classnames-DukgfdpI.mjs";import"./styles-On1ck1Ob.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-BmkV0s_d.mjs";import{u}from"./useControlsVisibility-DeI3NHWp.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-BmkV0s_d.mjs";import"./styles-On1ck1Ob.mjs";const k=b(()=>import("./ControlMenu-CJtszzgx.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-BmkV0s_d.mjs";import{j as i}from"./classnames-DukgfdpI.mjs";import"./styles-On1ck1Ob.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 E,T as oe,y as O,_ as le,d as Z,u as o,b as re,v as ce,k as ie}from"./shared-BmkV0s_d.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-DeAUI9Fi.mjs";import{d as ge,c as ne,g as we,h as ye}from"./hooks-uer3ZRx7.mjs";import{B as xe}from"./Body-BNLhtQi3.mjs";import{stillSource as Se,resolveThumbnail as Ee}from"./thumbnail-ByuoouMG.mjs";import{a as Le}from"./index-BkADsP3U.mjs";import{t as Te}from"./heading-Cjt0f-Eu.mjs";import{R as Ae}from"./Root-BJwk-F1e.mjs";import{Position as ke}from"./Position-C2Hm7tJZ.mjs";import{T as Ne}from"./Tip-CoSRaKjm.mjs";import{L as ze}from"./Label-GTBsGDCC.mjs";import{Download as De}from"./Download-VPFf23Kw.mjs";import{P as Me,L as Pe}from"./Provider-HPVBNZPr.mjs";import{S as qe}from"./Status-DLZANUzF.mjs";import{I as Oe}from"./Items-BoFm0Hlx.mjs";const Re=1600,Be=200,X=.25,Fe=1500,Y=typeof window>"u"?O:le,ae=n=>{const d=Number(n==null?void 0:n.width),a=Number(n==null?void 0:n.height);return d>0&&a>0?d/a:void 0};function Ie({collapseControls:n,canvasOptions:d,children:a}){const{clover:p}=te("Document"),b=ge(),m=ne(),i=E(null),L=E(null),h=E(null),A=b.direction==="right-to-left"||b.direction==="bottom-to-top",f=oe(()=>b.views.map(e=>{var s;const t=e.map(u=>b.canvases[u]),r=A?[...t].reverse():t,c=r.map(ae);return{key:t.map(u=>u.id).join("|"),first:(s=t[0])==null?void 0:s.id,canvases:r,ratio:c.every(Boolean)?c.reduce((u,I)=>u+I,0):void 0}}),[b,A]),g=Math.max(0,m.position),T=E({sheets:f,position:g});T.current={sheets:f,position:g};const w=E(null),S=E(null),N=E(0),y=E(()=>{}),K=E(false),R=e=>{var t;return(t=L.current)==null?void 0:t.children[e]},z=e=>{const t=i.current,r=R(e);return!t||!r||r===h.current?0:Math.min(r.offsetTop,t.scrollHeight-t.clientHeight)},U=()=>{const e=h.current,t=R(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=i.current;if(!e||e.hasAttribute("data-scrolling")||S.current!==null)return;const t=z(T.current.position);N.current=t,!(Math.abs(e.scrollTop-t)<=1)&&(K.current=true,e.scrollTop=t,requestAnimationFrame(()=>requestAnimationFrame(()=>K.current=false)))}Y(U),O(()=>{const e=new ResizeObserver(()=>{U(),l()});return L.current&&e.observe(L.current),i.current&&e.observe(i.current),()=>e.disconnect()},[]);const D=()=>{y.current();for(const[e,t]of[[i.current,"data-scrolling"],[h.current,"data-moved"]])e&&!e.hasAttribute(t)&&e.setAttribute(t,"")},M=()=>{const e=i.current,t=h.current;if(!e||!t)return;y.current(),N.current=e.scrollTop;const r=()=>{const _=t.querySelector(".clover-canvas");return!_||_.getAttribute("data-status")!=="loading"||_.getAttribute("data-placeholder")==="true"};let c=0;const s=new MutationObserver(()=>r()&&H()),u=setTimeout(()=>H(),Fe),I=()=>{cancelAnimationFrame(c),clearTimeout(u),s.disconnect()},H=()=>{I(),t.removeAttribute("data-moved"),e.removeAttribute("data-scrolling")};y.current=I,c=requestAnimationFrame(()=>{c=requestAnimationFrame(()=>{if(r())return H();s.observe(t,{attributes:true,subtree:true,attributeFilter:["data-status","data-placeholder"]})})})};O(()=>{const e=i.current,t=h.current;if(!e||!t)return;const r=()=>{const s=t.querySelector(".clover-canvas"),u=t.querySelector("video");e.toggleAttribute("data-covered",!!(s&&u&&u.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA&&s.getAttribute("data-media")==="video"&&s.getAttribute("data-placeholder")!=="true"&&!t.hasAttribute("data-moved")))};r();const c=new MutationObserver(r);c.observe(t,{attributes:true,childList:true,subtree:true,attributeFilter:["data-media","data-placeholder","data-moved"]});for(const s of["loadeddata","emptied"])t.addEventListener(s,r,true);return()=>{c.disconnect();for(const s of["loadeddata","emptied"])t.removeEventListener(s,r,true)}},[]);const k=(e,t=false)=>{var u;const r=i.current;if(!r)return;const c=z(e);if(Math.abs(r.scrollTop-c)<=1)return M();D(),S.current=e;const s=t||((u=window.matchMedia)==null?void 0:u.call(window,"(prefers-reduced-motion: reduce)").matches);r.scrollTo({top:c,behavior:s?"auto":"smooth"})},V=E(null);Y(()=>{const e=V.current!==f;if(V.current=f,F(false),w.current===g&&!e){w.current=null;return}w.current=null,k(g,e)},[g,f]),O(()=>{const e=i.current;if(!e)return;let t=0,r,c=false;const s=v=>{const P=T.current.sheets.length;if(P<2)return 0;let x=0;for(let G=0;G<P&&z(G)<=v+.5;G++)x=G;if(x>=P-1)return P-1;const C=z(x),q=(v-C)/Math.max(1,z(x+1)-C);return v>=N.current?q>X?x+1:x:q<1-X?x:x+1},u=()=>{if(t=0,S.current!==null)return;const v=s(e.scrollTop),{sheets:P,position:x}=T.current;v===x||!P[v]||(D(),F(false),w.current=v,p.goTo(P[v].first))},I=()=>{if(c)return;const{sheets:v,position:P}=T.current,x=e.scrollTop,C=S.current;S.current=null;const q=C!==null&&Math.abs(x-z(C))<=1?C:s(x);if(!v[q])return M();q!==P&&(D(),F(false),w.current=q,p.goTo(v[q].first)),k(q)},H=()=>{clearTimeout(r),r=setTimeout(I,Be)},_=()=>{K.current||(D(),H(),t||(t=requestAnimationFrame(u)))},$=v=>{S.current=null,(v.type==="touchstart"||v.type==="pointerdown"&&v.target===e)&&(c=true)},j=()=>{c&&(c=false,H())};return e.addEventListener("scroll",_,{passive:true}),e.addEventListener("wheel",$,{passive:true}),e.addEventListener("touchstart",$,{passive:true}),e.addEventListener("pointerdown",$),window.addEventListener("touchend",j),window.addEventListener("touchcancel",j),window.addEventListener("pointerup",j),()=>{cancelAnimationFrame(t),clearTimeout(r),y.current(),e.removeEventListener("scroll",_),e.removeEventListener("wheel",$),e.removeEventListener("touchstart",$),e.removeEventListener("pointerdown",$),window.removeEventListener("touchend",j),window.removeEventListener("touchcancel",j),window.removeEventListener("pointerup",j)}},[p]);const[B,W]=Z(null);function F(e){const t=i.current;!t||t.hasAttribute("data-zoomed")===e||(t.toggleAttribute("data-zoomed",e),e&&l())}return O(()=>{if(B)return B.on("viewport",()=>F(!B.atHome))},[B]),o("div",{ref:i,className:"clover-template-document-column",onKeyDown:e=>{if(!(e.defaultPrevented||e.altKey||e.ctrlKey)){if(e.key==="PageDown"&&m.hasNext)m.next();else if(e.key==="PageUp"&&m.hasPrevious)m.previous();else return;e.preventDefault()}},children:o("div",{ref:L,className:"clover-template-document-sheets","data-single":f.length<2||void 0,children:[f.map((e,t)=>o("div",{"aria-hidden":"true",className:"clover-template-document-sheet","data-active":t===g||void 0,"data-fill":e.ratio===void 0||void 0,onClick:()=>t!==g&&p.goTo(e.first),style:e.ratio===void 0?void 0:{"--ratio":e.ratio},children:e.canvases.map(r=>o(_e,{canvas:r},r.id))},e.key)),o("div",{ref:h,className:"clover-template-document-live",children:o(xe,{className:"clover-template-document-body",collapseControls:n,options:d,onReady:W,children:a})})]})})}function He(n){const[d,a]=Z(()=>typeof IntersectionObserver>"u");return O(()=>{if(d||!n)return;const p=new IntersectionObserver(b=>{b.some(m=>m.isIntersecting)&&(a(true),p.disconnect())},{root:n.closest(".clover-template-document-column"),rootMargin:"100% 0px"});return p.observe(n),()=>p.disconnect()},[n,d]),d}function _e({canvas:n}){const{clover:d}=te("Document"),a=oe(()=>Se(n),[n]),[p,b]=Z(null),m=He(p),[i,L]=Z(a==null?void 0:a.src);O(()=>{if(!a||a.src)return L(a==null?void 0:a.src);if(!m)return;let f=true;return Ee(a,Re,d.request).then(g=>f&&L(g)),()=>{f=false}},[a,d,m]);const h=ae(n),A=h?{aspectRatio:String(h)}:void 0;return i?o("img",{alt:"",decoding:"async",loading:"lazy",src:i,style:A}):o("span",{ref:b,style:A})}Le(47,"templates/document/Document","@layer clover{.clover-template-document{--clover-template-document-height: min(85vh, 56rem);display:flex;flex-direction:column;height:var(--clover-template-document-height);min-height:min-content;overflow:hidden;background-color:var(--clover-color-secondary, #fff);color:var(--clover-color-primary, #1a1d1e)}@supports (height: 1svh){.clover-template-document{--clover-template-document-height: min(85svh, 56rem)}}.clover-template-document-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--clover-space-s);padding:var(--clover-space-m) var(--clover-inset);border-bottom:1px solid var(--clover-color-secondary-muted, #e6e8eb)}.clover-template-document-provider{max-width:100%;margin-inline-start:auto}.clover-template-document-toolbar .clover-download-groups{flex-direction:row;flex-wrap:wrap;column-gap:var(--clover-space-m)}.clover-template-document-toolbar .clover-download-group{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:var(--clover-space-s)}.clover-template-document-toolbar .clover-download-title{margin:0}.clover-template-document-toolbar .clover-download-list{display:flex;flex-wrap:wrap;column-gap:var(--clover-space-s)}.clover-template-document-title{flex:1 1 6rem;min-width:0}button.clover-template-document-sidebar-toggle{display:inline-flex;flex:none;align-items:center;gap:var(--clover-space-xs);min-height:var(--clover-control);padding-block:0;padding-inline:var(--clover-space-s) calc(var(--clover-space-xs) + var(--clover-space-3xs));border:0;border-radius:var(--clover-radius-pill, 2rem);background-color:var(--clover-color-control, #1a1d1e);color:var(--clover-color-control-glyph, #fff);cursor:pointer;transition:var(--clover-transition, all .2s cubic-bezier(.16, 1, .3, 1))}button.clover-template-document-sidebar-toggle:is(:hover,:focus-visible){background-color:var(--clover-color-accent, #0065c3)}:where([data-high-contrast]) button.clover-template-document-sidebar-toggle:is(:hover,:focus-visible){background-color:var(--clover-accent-fill)}:where([data-high-contrast]) button.clover-template-document-sidebar-toggle:hover:not(:focus-visible){outline:var(--clover-accent-ring-hover);outline-offset:1px}button.clover-template-document-sidebar-toggle:focus-visible{outline:2px solid var(--clover-color-accent, #0065c3);outline-offset:2px}.clover-template-document-sidebar-toggle .clover-template-document-position{color:inherit;font-size:var(--clover-text-xs);white-space:nowrap}.clover-template-document-sidebar-toggle .clover-template-document-position>.clover-pager-room[hidden]{display:none}.clover-template-document-panes{position:relative;flex:1 1 auto;min-height:16rem}.clover-template-document-panes:is([data-panel=over],[data-narrow])>.clover-template-document-main{isolation:isolate}.clover-template-document-sidebar{contain:size;overflow-y:auto;overscroll-behavior:contain;padding:var(--clover-inset);scroll-padding-top:calc(2 * var(--clover-inset) + var(--clover-control));background-color:var(--clover-color-secondary, #fff)}.clover-template-document-sidebar-closed{position:absolute;top:var(--clover-inset);inset-inline-start:var(--clover-inset);z-index:3}@media (width < 31rem){.clover-template-document-toolbar,.clover-template-document-sidebar-closed,.clover-template-document-spine{--clover-inset: var(--clover-space-m)}}.clover-template-document-sidebar[hidden]{display:none}.clover-template-document-sidebar+.clover-split-handle:before{inset-inline-start:0;inset-inline-end:calc(3px - var(--clover-space-l))}.clover-template-document-sidebar .clover-items[data-layout] .clover-items-figure{grid-template-columns:repeat(var(--parts, 1),minmax(0,1fr));gap:var(--clover-space-xs) 0}.clover-template-document-sidebar .clover-items[data-layout] :is(.clover-items-pictures,.clover-items-caption){grid-column:1 / -1;grid-template-columns:subgrid}.clover-template-document-sidebar .clover-items[data-layout] .clover-items-label{contain:inline-size}.clover-template-document-sidebar .clover-items[data-layout] .clover-items-picture[data-empty],.clover-template-document-sidebar .clover-items[data-layout] .clover-items-picture img{width:100%;height:auto;max-height:20rem;aspect-ratio:var(--clover-items-ratio, auto);object-fit:contain}.clover-template-document-sidebar .clover-items[data-layout] .clover-items-caption{font-size:var(--clover-text-s)}.clover-template-document-main{position:relative;overflow:hidden;background-color:var(--clover-color-secondary-muted, #e6e8eb)}.clover-template-document-column{position:absolute;inset:0;overflow-x:hidden;overflow-y:auto;container-type:size}.clover-template-document-sheets{position:relative}.clover-template-document-sheet{--clover-template-document-tease: calc(2 * var(--clover-inset));display:flex;justify-content:center;box-sizing:border-box;height:min(100cqh - var(--clover-template-document-tease),(100cqw - 2 * var(--clover-inset)) / var(--ratio) + 2 * var(--clover-inset));padding:var(--clover-inset);transition:opacity .2s ease,height .24s cubic-bezier(.16,1,.3,1)}.clover-template-document-sheet[data-fill]{height:calc(100cqh - var(--clover-template-document-tease))}.clover-template-document-column[data-zoomed] .clover-template-document-sheet[data-active]{height:100cqh}.clover-template-document-column[data-zoomed] .clover-template-document-sheet[data-active]>*,.clover-template-document-column[data-covered] .clover-template-document-sheet[data-active]>*{visibility:hidden}.clover-template-document-column[data-zoomed] .clover-template-document-sheet:not([data-active]){--clover-template-document-muted: 0;pointer-events:none}.clover-template-document-sheet:not([data-active]){--clover-template-document-muted: .618;cursor:pointer;opacity:var(--clover-template-document-muted)}.clover-template-document-sheet:not([data-active]):hover{--clover-template-document-muted: .809}@media (prefers-reduced-motion: reduce){.clover-template-document-sheet{transition:none}}.clover-template-document-sheets[data-single]>.clover-template-document-sheet{--clover-template-document-tease: 0px}.clover-template-document-sheet>*{display:block;height:100%;min-width:0}.clover-template-document-sheet[data-fill]>*{object-fit:contain}.clover-template-document-live{--clover-body-height: 100%;position:absolute;inset-inline:0;top:0;height:100%;transition:opacity .16s ease}.clover-template-document-body .clover-canvas{--clover-canvas-inset: var(--clover-inset);background-color:transparent}.clover-template-document-live[data-moved]:not(:focus-within){opacity:0;pointer-events:none}.clover-template-document-column[data-scrolling] .clover-template-document-live:not(:focus-within) .clover-canvas-controls>*{--clover-controls-shown: 0;--clover-controls-events: none}.clover-template-document-column:not([data-zoomed]) :not(.clover-scene)>.clover-canvas-viewport{touch-action:pan-y}.clover-template-document-scrim[data-for=sidebar]{z-index:2}.clover-template-document-panes[data-narrow]{--clover-template-sidebar-width: min(14rem, 80%)}.clover-template-document-panes[data-narrow]>.clover-template-document-sidebar{position:absolute;inset-block:0;inset-inline-start:0;z-index:3;width:var(--clover-template-sidebar-width);border-inline-end:1px solid var(--clover-color-secondary-muted, #e6e8eb);--clover-template-inner: right;--clover-template-toward: 1}.clover-template-document-panes[data-narrow]>.clover-template-document-sidebar:dir(rtl){--clover-template-inner: left;--clover-template-toward: -1}.clover-template-document-spine{position:relative;z-index:4;flex:none;width:0}.clover-template-document-spine>*{position:absolute;top:var(--clover-inset);inset-inline-start:-1.5px;translate:-50%}.clover-template-document-spine:dir(rtl)>*{translate:50%}.clover-template-document-spine[data-for=sidebar]>*{inset-inline:auto calc(1.5px - var(--clover-control) / 2);translate:none}.clover-template-document-panes[data-narrow]>.clover-template-document-spine[data-for=sidebar]{inset-inline-start:var(--clover-template-sidebar-width)}.clover-template-document-panes[data-narrow]>.clover-template-document-spine[data-for=sidebar]>*{inset-inline-end:calc(var(--clover-control) / -2)}}");function at({className:n,defaultSidebarOpen:d,singleItem:a=false,defaultPanelOpen:p=false,panelLayout:b="accordion",panelSections:m,panelLabels:i,download:L=true,languages:h=true,headingLevel:A=2,storageKey:f="clover-template-document",collapseControls:g,canvasOptions:T,...w}){const S=Te(A,`${re().replace(/:/g,"")}-title`);return o(Ae,{className:["clover-template-document",n].filter(Boolean).join(" "),...S.group,...w,children:o(Ce,{title:S,defaultSidebarOpen:d,singleItem:a,defaultPanelOpen:p,panelLayout:b,panelSections:m,panelLabels:i,download:L,languages:h,headingLevel:A,storageKey:f,collapseControls:g,canvasOptions:T})})}const ee=n=>n+1,$e=9,je=40;function Ce({defaultSidebarOpen:n,singleItem:d,defaultPanelOpen:a,download:p,languages:b,headingLevel:m=2,storageKey:i,panelLayout:L,panelSections:h,panelLabels:A,collapseControls:f,canvasOptions:g,title:T}){const w=we(),S=ye(),N=S("templateSidebar"),y=re().replace(/:/g,""),K=ne(),R=E(null),z=E(null),U=se(),l=de({id:`${y}-sidebar`,beside:J(R,je),defaultOpen:n??true,side:"start",focus:t=>t.querySelector('[role="option"][aria-selected="true"]'),slides:false,alongside:z,followFocus:U}),D=K.total>(d?0:1),M=D&&l.open,k=me({id:`${y}-panel`,beside:J(R,ue+(M?$e:0)),defaultOpen:!!a,followFocus:U,sections:h}),V=t=>{var r,c;l.over&&((c=(r=t.target).closest)!=null&&c.call(r,`[aria-controls~="${y}-sidebar"]`))&&be()},B=()=>{l.over&&l.close()},W=k.docked,F=k.toggle,e=D&&o("button",{type:"button",className:"clover-template-document-sidebar-toggle","aria-expanded":l.open,"aria-controls":`${y}-sidebar`,lang:S("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:w("templateSidebarToggle")}),o(ke,{className:"clover-template-document-position"}),o(Ne,{label:w("templateSidebarToggle")})]});return o(ie,{children:[o("header",{className:"clover-template-document-toolbar",children:[o(ze,{as:T.as,className:"clover-template-document-title clover-template-title clover-title",...T.title}),p&&o(De,{headingLevel:ee(m)}),o(Me,{className:"clover-template-document-provider",children:o(Pe,{})})]}),o(qe,{loading:false}),o(ve,{ref:R,className:"clover-template-document-panes clover-template-panes","data-sidebar":M?"open":"closed","data-narrow":l.over||void 0,"data-panel":k.splitProps["data-panel"],storageKey:i||void 0,onKeyDown:t=>{k.onKeyDown(t),l.onKeyDown(t)},onPointerOver:t=>{k.splitProps.onPointerOver(t),V(t)},onFocus:t=>{k.splitProps.onFocus(t),V(t)},children:[o(Q,{ref:l.pane,as:"aside",id:`${y}-sidebar`,name:"sidebar",className:["clover-template-document-sidebar",l.over&&"clover-template-float"].filter(Boolean).join(" "),"aria-label":N?void 0:w("templateSidebar"),"aria-labelledby":N?`${y}-sidebar-name`:void 0,size:"13rem",min:l.over?void 0:"8rem",max:"24rem",hidden:!M,children:[N&&o("span",{hidden:true,id:`${y}-sidebar-name`,lang:N,children:w("templateSidebar")}),o(Oe,{layout:"list",singleItem:d,"aria-label":N?void 0:w("templateSidebar"),thumbnailSize:320,onSelect:B})]}),M&&!l.over&&o(pe,{"aria-controls":`${y}-sidebar`}),M&&o("div",{ref:z,className:"clover-template-document-spine","data-for":"sidebar",children:e}),o(Q,{className:"clover-template-document-main",min:M&&!l.over||W?he:void 0,children:[D&&!l.open&&o("div",{className:"clover-template-document-sidebar-closed",children:e}),o(Ie,{collapseControls:f,canvasOptions:g,children:!W&&F})]}),o(fe,{pane:k,className:"clover-template-document-panel",layout:L,sections:h,labels:A,headingLevel:ee(m),download:false,languages:b}),D&&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-DeM04pm-.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-BmkV0s_d.mjs";import{j as $}from"./classnames-DukgfdpI.mjs";import{a as k}from"./heading-Cjt0f-Eu.mjs";import{u as C}from"./downloads-CFz0RnMz.mjs";import"./styles-On1ck1Ob.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-Dj3MRR7Y.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-BmkV0s_d.mjs";import{b as g}from"./annotation-name-2rUtUYsN.mjs";import{M as m}from"./Markup-Csh1bNkq.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-BmkV0s_d.mjs";import{resolveThumbnail as y}from"./thumbnail-ByuoouMG.mjs";import{j as v}from"./classnames-DukgfdpI.mjs";import"./styles-On1ck1Ob.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-BmkV0s_d.mjs";import{j as n}from"./classnames-DukgfdpI.mjs";import{S as k}from"./Steps-BigQvWNW.mjs";import{T as m}from"./Tip-CoSRaKjm.mjs";import"./styles-On1ck1Ob.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-D2RadIoz.mjs";import ce from"./ChoiceMenu-YXA7Ku8M.mjs";import{i as le,r as de}from"./layout-MzMKFa5I.mjs";import{M as Z}from"./Markup-DACv7sRg.mjs";import{T as ue}from"./Tip-BatwzZZo.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-BsjGGbFJ.mjs";import{imageSource as xe,resolveThumbnail as Me}from"./thumbnail-D83GaQ8C.mjs";import"./MediaBody-CcuO5IZT.mjs";import"./styles-DZIDbHxL.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-BmkV0s_d.mjs";import ce from"./ChoiceMenu-Cfjnk3NG.mjs";import{i as le,r as de}from"./layout-DrVnUBcm.mjs";import{M as Z}from"./Markup-Csh1bNkq.mjs";import{T as ue}from"./Tip-CoSRaKjm.mjs";import{g as he,a as me,u as pe,b as fe,p as ve,s as ge,T as z,c as ye,P as ke,V as we,d as be}from"./Transport-CHkvmPbN.mjs";import{imageSource as xe,resolveThumbnail as Me}from"./thumbnail-ByuoouMG.mjs";import"./MediaBody-CRJFBpMk.mjs";import"./styles-On1ck1Ob.mjs";const R=(e,l)=>l<10?`${Q(e)}.${Math.min(9,Math.floor((e||0)%1*10))}`:Q(e),Te=e=>{try{return e.matches(":focus-visible")}catch{return false}},Ce=50,Ae=250,Ne=(e,l)=>{let u=0;return e.forEach((d,c)=>{d.start<=l&&(u=c)}),u};function U(e,l,u){const d=Math.min(l,u),c=[];return e.forEach((m,k)=>{m.start<=d&&(d<m.end||d>=u&&m.end>=u)&&c.push(k)}),c}const $e=(e,l,u)=>{let d=u;for(const c of e)c.start>l&&c.start<d&&(d=c.start),c.end>l&&c.end<d&&(d=c.end);return d},Pe=128;function Se(e,l){const[u,d]=$([]);return I(()=>{let c=true;return Promise.all(e.map(m=>{const{body:k}=m.annotation,i=de(Array.isArray(k)?k[0]:k),t=(i==null?void 0:i.body.type)==="Image"?xe(i.body,i.region):void 0;return t?Me(t,Pe,l):void 0})).then(m=>c&&d(m)),()=>{c=false}},[e,l]),u}function Be(e,l,{autoplay:u=false,loop:d=false,duration:c,isReady:m,onEnded:k}){const i=V(()=>{if(c&&Number.isFinite(c)&&c>0)return c;const s=e.map(p=>p.end).filter(Number.isFinite);return s.length?Math.max(...s):0},[e,c]),[t,v]=$(0),[g,f]=$(false),[w,h]=$(d),[E,x]=$(0),M=F(0),b=F(m);b.current=m;const C=F(k);C.current=k;const A=X(s=>{const p=Math.max(0,Math.min(i,s));M.current=p,v(p),x(S=>S+1)},[i]);I(()=>{M.current=0,v(0),h(d);const s=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion: reduce)").matches;f(u&&e.length>1&&!s)},[l]),I(()=>{if(!g||e.length<2||!(i>0))return;let s={at:Date.now(),time:M.current>=i?0:M.current},p;const S=N=>{M.current=N,v(N)},L=N=>Math.max(0,Math.min(Ae,($e(e,N,i)-N)*1e3)),H=()=>{var j;const N=M.current;let B=s.time+(Date.now()-s.at)/1e3;if(B>=i){if(!w){S(i),f(false),(j=C.current)==null||j.call(C);return}B=0,s={at:Date.now(),time:0}}const D=U(e,N,i),W=U(e,B,i).filter(O=>!D.includes(O));if(b.current&&W.some(O=>!b.current(O))){s={at:Date.now(),time:N},p=setTimeout(H,Ce);return}S(B),p=setTimeout(H,L(B))};return s.time!==M.current&&S(s.time),p=setTimeout(H,L(s.time)),()=>clearTimeout(p)},[g,e,i,w,E]);const P=Ne(e,t),T=U(e,t,i).join(","),r=V(()=>T?T.split(",").map(Number):[],[T]),n=X(s=>{var p;return A(((p=e[s])==null?void 0:p.start)??0)},[e,A]);return{frame:P,shown:r,time:t,total:i,playing:g,repeat:w,setFrame:n,seek:A,setPlaying:f,setRepeat:h}}function Ie({frames:e,animation:l,language:u,sound:d}){var G;const{t:c,langOf:m}=te(),{frame:k,time:i,total:t,playing:v,repeat:g,setFrame:f,seek:w,setPlaying:h,setRepeat:E}=l,x=V(()=>[...new Set(e.map(o=>o.start))].sort((o,y)=>o-y),[e]);let M=0;x.forEach((o,y)=>{o<=i&&(M=y)});const b=t>0?Math.min(i,t)/t*100:0,C=V(()=>{const o=he(e,t);return o.length?me(o):void 0},[e,t]),A=`${ne().replace(/:/g,"")}-frames`,P=`${A}-menu`,[T,r]=$(false),n=F(null);pe(n);const s=X(o=>{var y;r(false),o&&((y=document.getElementById(A))==null||y.focus())},[A]),p=Se(e,(G=oe())==null?void 0:G.clover.request),S=V(()=>({key:"frame",items:e.map((o,y)=>({label:o.annotation.label,id:o.annotation.id,image:p[y]}))}),[e,p]),[L,H]=$(null),[N,B]=$(false),D=F(null),W=`${k+1} / ${e.length}`;Y(()=>{var o;L===null&&((o=D.current)==null||o.style.setProperty("--clover-transport-preview",fe(b)))},[L,b]);const j=F(null);Y(()=>{const o=j.current,y=o==null?void 0:o.querySelector(".clover-canvas-menu"),q=o==null?void 0:o.closest(".clover-canvas-transport"),K=o==null?void 0:o.closest(".clover-canvas-media");if(!T||!o||!y||!q||!K)return;const J=()=>ve(y,o,q,K);J();const _=new ResizeObserver(J);return _.observe(K),_.observe(q),_.observe(y),()=>_.disconnect()},[T]);const O=o=>{const y=x[M+o];y!==void 0&&(h(false),f(e.findIndex(q=>q.start===y)))};return a("div",{className:"clover-canvas-transport","data-kind":"frames","data-testid":"clover-canvas-frames",children:[a("div",{className:"clover-canvas-transport-seek-area",onPointerMove:o=>{if(!t||o.target.closest(".clover-tip"))return;const y=o.currentTarget.getBoundingClientRect();H(R(ge(o.currentTarget,o.clientX)*t,t)),o.currentTarget.style.setProperty("--clover-transport-preview",`${(o.clientX-y.left)/y.width*100}%`)},onPointerLeave:()=>H(null),ref:D,children:[(L!==null||N)&&a(ue,{label:"",lead:L??R(i,t)}),a("input",{"aria-label":c("playerSeek"),"aria-valuetext":`${R(i,t)} / ${R(t,t)}, ${W}`,onFocus:o=>B(Te(o.currentTarget)),onBlur:()=>B(false),lang:m("playerSeek"),className:"clover-canvas-transport-seek",max:t,min:0,step:"any",type:"range",value:Math.min(i,t),onChange:o=>w(Number(o.target.value)),"data-gaps":C?"":void 0,style:{"--clover-transport-progress":`${b}%`,...C&&{"--clover-transport-gaps":C,"--clover-transport-at":b/100}}})]}),a("div",{className:"clover-canvas-transport-bar",ref:n,children:[a(z,{words:v?"playerPause":"playerPlay",button:v?"pause":"play",onClick:()=>{!v&&i>=t&&w(0),h(!v)},children:v?a(ye,{}):a(ke,{})}),a(z,{words:"frameRepeat",button:"repeat",pressed:g,onClick:()=>E(!g),children:a("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16",children:a("path",{d:"M3 7V6a2 2 0 0 1 2-2h7l-2-2M13 9v1a2 2 0 0 1-2 2H4l2 2",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})})}),d&&a(z,{words:d.muted?"playerUnmute":"playerMute",button:"mute",onClick:d.toggle,children:d.muted?a(we,{}):a(be,{})}),a("span",{className:"clover-canvas-transport-status","aria-hidden":"true",children:a("span",{className:"clover-canvas-transport-time",children:[R(i,t)," / ",R(t,t)]})}),a("div",{className:"clover-canvas-transport-end",children:[a("span",{className:"clover-canvas-transport-frames",ref:j,children:[a("button",{type:"button",id:A,className:"clover-canvas-transport-time","aria-controls":T?P:void 0,"aria-expanded":T,onClick:()=>{T||h(false),r(!T)},children:[a("span",{className:"clover-canvas-transport-place","aria-live":"off",children:[a("span",{children:W}),a("span",{className:"clover-canvas-transport-place-room","aria-hidden":"true",hidden:true,children:[e.length," / ",e.length]})]}),a("svg",{"aria-hidden":"true",focusable:"false",width:"12",height:"12",viewBox:"0 0 12 12",children:a("path",{d:"M3 7.5l3-3 3 3",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),T&&a(ce,{id:P,triggerId:A,label:c("playerChapters"),labelLang:m("playerChapters"),language:u,choices:[S],selections:{frame:k},onSelect:(o,y)=>{h(false),f(y)},onClose:s})]}),a(z,{words:"commonPrevious",disabled:M===0,onClick:()=>O(-1),children:a("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16",children:a("path",{d:"M10 3L5 8l5 5",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),a(z,{words:"commonNext",disabled:M===x.length-1,onClick:()=>O(1),children:a("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16",children:a("path",{d:"M6 3l5 5-5 5",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]})]})}function Le(e,l,u){const d=le(l),c=u.width/(d.width||1),m=u.height/(d.height||1);return e.flatMap((k,i)=>{var h;const t=ae(k.annotation)[0],v=t==null?void 0:t.type,g=v==="Video"?"video":re(v)?"audio":v==="TextualBody"&&typeof(t==null?void 0:t.value)=="string"?"text":null;if(!g||!t||g!=="text"&&typeof t.id!="string")return[];const f=(h=se(k.annotation.target))==null?void 0:h.rect,w=f?{x:f.x,y:f.y,width:f.w,height:f.h}:{x:0,y:0,width:d.width,height:d.height};return[{index:i,id:`${k.annotation.id??i}#${g}`,kind:g,body:t,placement:{x:u.x+w.x*c,y:u.y+w.y*m,width:w.width*c,height:w.height*m}}]})}function Fe({host:e,item:l,shown:u,language:d}){return I(()=>{if(!u||e.dataset.fitted)return;let c=0;const m=()=>{if(!e.isConnected){c=requestAnimationFrame(m);return}const{width:k,height:i}=l.placement,t=f=>(e.style.fontSize=`${f}px`,e.scrollWidth<=k+1&&e.scrollHeight<=i+1);let v=1,g=i*.8;if(t(g))v=g;else for(let f=0;f<16;f+=1){const w=(v+g)/2;t(w)?v=w:g=w}e.style.fontSize=`${v}px`,e.dataset.fitted=""};return c=requestAnimationFrame(m),()=>cancelAnimationFrame(c)},[e,l,u]),ie(a(Z,{as:"div",markup:{[l.body.language??"none"]:[l.body.value]},format:l.body.format,language:d}),e)}function We({renderer:e,frames:l,byFrame:u,animationKey:d,sceneVersion:c,autoplay:m,loop:k,onEnded:i,language:t,duration:v,canvas:g,place:f,onItems:w}){const h=Be(l,d,{autoplay:m,loop:k,duration:v,onEnded:i,isReady:r=>(u[r]??[]).every(n=>e.isReady(n))}),E=V(()=>g&&f?Le(l,g,f):[],[l,g,f]),[x,M]=$([]);I(()=>{const r=E.map(n=>{if(n.kind==="text"){const p=document.createElement("div");return p.className="clover-canvas-painted-text",p.setAttribute("aria-hidden","true"),{item:n,element:p}}const s=document.createElement(n.kind);return s.preload="auto",s.playsInline=true,s.src=n.body.id,{item:n,element:s}});return M(r),()=>{for(const{element:n}of r)n instanceof HTMLMediaElement&&(n.pause(),n.removeAttribute("src"),n.load())}},[E]);const b=F(w);b.current=w,I(()=>{var r;return(r=b.current)==null||r.call(b,x.filter(({item:n})=>n.kind!=="audio").map(({item:n,element:s})=>({id:n.id,placement:n.placement,width:n.placement.width,height:n.placement.height,media:{element:s},hidden:true}))),()=>{var n;return(n=b.current)==null?void 0:n.call(b,[])}},[x]);const[C,A]=$(!!m);I(()=>{var r;for(const{item:n,element:s}of x){if(!(s instanceof HTMLMediaElement))continue;if(s.muted=C,!h.shown.includes(n.index)){s.paused||s.pause();continue}const p=Math.max(0,h.time-l[n.index].start);if(Math.abs(s.currentTime-p)>(h.playing?1:.1))try{s.currentTime=p}catch{}h.playing&&s.paused?(r=s.play())==null||r.catch(()=>{}):!h.playing&&!s.paused&&s.pause()}},[x,l,h.shown,h.time,h.playing,C]),I(()=>{const r=new Set([...h.shown.flatMap(n=>u[n]??[]),...x.filter(({item:n})=>h.shown.includes(n.index)).map(({item:n})=>n.id)]);e.setHidden([...u.flat(),...x.map(({item:n})=>n.id)].filter(n=>!r.has(n)))},[e,u,x,h.shown,c]);const P=x.filter(({item:r})=>r.kind==="text"),T=x.some(({item:r})=>r.kind!=="text");return a("div",{className:"clover-canvas-media","data-kind":"frames",children:[P.some(({item:r})=>h.shown.includes(r.index))&&a("div",{style:ee,children:P.filter(({item:r})=>h.shown.includes(r.index)).map(({item:r})=>a(Z,{as:"p",markup:{[r.body.language??"none"]:[r.body.value]},format:r.body.format,language:t},r.id))}),P.map(({item:r,element:n})=>a(Fe,{host:n,item:r,shown:h.shown.includes(r.index),language:t},r.id)),a(Ie,{frames:l,animation:h,language:t,sound:T?{muted:C,toggle:()=>A(r=>!r)}:void 0})]})}export{Ie as FrameControls,R as clockTime,We as default,U as framesAt,Be as useAnimation};
|
|
@@ -1 +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-BmkV0s_d.mjs";import{u as ie,g as W,h as U,i as X,e as H}from"./hooks-uer3ZRx7.mjs";import{a as J}from"./index-BkADsP3U.mjs";import{L as D}from"./Label-GTBsGDCC.mjs";import{t as Q}from"./heading-Cjt0f-Eu.mjs";import{T as Y}from"./Tip-CoSRaKjm.mjs";import{R as ce}from"./Root-BJwk-F1e.mjs";import{Summary as ne}from"./Primitives-CBRreXtS.mjs";import{S as se}from"./Status-DLZANUzF.mjs";import{I as me}from"./Items-BoFm0Hlx.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-Daz0RCee.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-BmkV0s_d.mjs";import{T as p}from"./Tip-CoSRaKjm.mjs";import"./styles-On1ck1Ob.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-BmkV0s_d.mjs";import{B as K}from"./Button-0dU8Owcz.mjs";import{u as $}from"./useContainerName-CUP-TlA5.mjs";import{d as H,O as _}from"./glyphs-oAgi4Au0.mjs";import{p as q,T as G}from"./Tip-CoSRaKjm.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-BmkV0s_d.mjs";import{thumbnailSource as jt,resolveThumbnail as Ut}from"./thumbnail-ByuoouMG.mjs";import{a as Wt,N as _t,u as Gt,h as Yt}from"./useNearViewport-yyUYq47j.mjs";import{h as zt,T as Jt}from"./Tip-CoSRaKjm.mjs";import{r as Qt}from"./dates-DR3gfcON.mjs";import{i as Xt,a as Zt}from"./items-SD92pRMN.mjs";import{j as te}from"./classnames-DukgfdpI.mjs";import{u as ee}from"./useContainerName-CUP-TlA5.mjs";import{a as ne}from"./heading-Cjt0f-Eu.mjs";import{u as oe}from"./useScrollTrack-CcFLYR4o.mjs";import"./styles-On1ck1Ob.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-qoFXy3Ou.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-DEchYe7Y.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-DzNzoEeh.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-CBEb7Cew.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-l6UNSoQ1.mjs")),Ne=B(()=>import("./PagerLayout-l6UNSoQ1.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-BmkV0s_d.mjs";import{t as P}from"./text-BTAkxEfQ.mjs";import{j}from"./classnames-DukgfdpI.mjs";import{u as h}from"./resource-DmK-8hJ-.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-BmkV0s_d.mjs";import{l as y}from"./languageCode-cCpiU0b0.mjs";import{T as C}from"./Tip-CoSRaKjm.mjs";import{u as N}from"./useContainerName-CUP-TlA5.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-BmkV0s_d.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-DeAUI9Fi.mjs";import{B as _}from"./Body-BNLhtQi3.mjs";import{L as k}from"./Label-GTBsGDCC.mjs";import{I as G}from"./Items-BoFm0Hlx.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-BmkV0s_d.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-BmkV0s_d.mjs";import{S as b}from"./SceneView-C53yZtMZ.mjs";import{C as u}from"./Pending-lpHOVvqE.mjs";import{B as p}from"./BodyAlert-B0AblEtp.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-BmkV0s_d.mjs";import{C as k}from"./CanvasView-DeM04pm-.mjs";import{a as y,u as tt}from"./fromManifest-BmpOsc5g.mjs";import{j as K}from"./layout-DrVnUBcm.mjs";import{C as M}from"./Pending-lpHOVvqE.mjs";import{B as nt}from"./BodyAlert-B0AblEtp.mjs";import{loadAnnotationSets as at}from"./annotation-collection-DwJ2R8tG.mjs";const et=()=>import("./shared-BmkV0s_d.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-BmkV0s_d.mjs";import{ConnectedMap as l}from"./MapView-CExlNO5E.mjs";import{R as p}from"./Root-BJwk-F1e.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-BmkV0s_d.mjs";import{j as i}from"./classnames-DukgfdpI.mjs";import"./styles-On1ck1Ob.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-BmkV0s_d.mjs";import{ConnectedMap as v,GivenMap as f}from"./MapView-CExlNO5E.mjs";import{j as m}from"./classnames-DukgfdpI.mjs";const g=s(()=>import("./LoadedMap-D9Z3zl12.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};
|