UNPKG

mirador

Version:

An open-source, web-based 'multi-up' viewer that supports zoom-pan-rotate functionality, ability to display/compare simple images, and images with annotations.

40 lines (39 loc) 1.51 kB
import { U as e, at as t, dt as n, ft as r, g as i, st as a } from "./getters-B4oepJRC.js"; import { d as o, f as s, mt as c } from "./canvases-CeUwRIFA.js"; import { Fragment as l } from "react"; import { jsx as u, jsxs as d } from "react/jsx-runtime"; import { styled as f } from "@mui/material/styles"; //#region src/components/AudioViewer.jsx var p = /* @__PURE__ */ r(t(), 1), m = f("div")({ alignItems: "center", display: "flex", width: "100%" }), h = f("audio")({ width: "100%" }); function g({ audioOptions: e = {}, audioResources: t = [], captions: n = [] }) { return /* @__PURE__ */ u(m, { children: /* @__PURE__ */ d(h, { ...e, children: [t.map((e) => /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("source", { src: e.id, type: e.getFormat() }) }, e.id)), n.map((e) => /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("track", { src: e.id, label: e.getDefaultLabel(), srcLang: e.getProperty("language") }) }, e.id))] }) }); } g.propTypes = { audioOptions: p.default.object, audioResources: p.default.arrayOf(p.default.object), captions: p.default.arrayOf(p.default.object) }; //#endregion //#region src/containers/AudioViewer.js var _ = /* @__PURE__ */ n({ default: () => v }), v = e(a((e, { windowId: t }) => ({ audioOptions: c(e).audioOptions, audioResources: o(e, { windowId: t }) || [], captions: s(e, { windowId: t }) || [] }), null), i("AudioViewer"))(g); //#endregion export { _ as n, g as r, v as t }; //# sourceMappingURL=AudioViewer-BN6kHouu.js.map