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.
67 lines (66 loc) • 2.25 kB
JavaScript
import { U as e, a as t, at as n, dt as r, ft as i, g as a, st as o } from "./getters-B4oepJRC.js";
import { u as s } from "./window-COQOIAli.js";
import { t as c } from "./createSvgIcon-Cwt8YPfm.js";
import { useCallback as l } from "react";
import { jsx as u, jsxs as d } from "react/jsx-runtime";
import { useTranslation as f } from "react-i18next";
import p from "@mui/material/Typography";
import m from "@mui/material/Button";
import h from "@mui/material/Stack";
import g from "@mui/material/Grid";
//#region node_modules/@mui/icons-material/esm/ListSharp.js
var _ = /* @__PURE__ */ i(n(), 1), v = c(/*#__PURE__*/ u("path", { d: "M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7zm-4 6h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z" }), "ListSharp");
//#endregion
//#region src/components/SelectCollection.jsx
function y({ collectionPath: e = [], manifestId: t = null, showCollectionDialog: n, windowId: r = null }) {
let { t: i } = f(), a = l(() => {
n(t, e.slice(0, -1), r);
}, [
e,
t,
n,
r
]);
return /* @__PURE__ */ u(g, {
container: !0,
sx: {
alignContent: "center",
justifyContent: "center",
width: "100%"
},
children: /* @__PURE__ */ d(h, { children: [/* @__PURE__ */ u(p, {
variant: "h4",
component: "p",
sx: {
mb: 2,
textAlign: "center"
},
children: /* @__PURE__ */ u("em", { children: i("noItemSelected") })
}), /* @__PURE__ */ u(m, {
"aria-label": "show collection",
color: "primary",
variant: "contained",
onClick: a,
startIcon: /* @__PURE__ */ u(v, {}),
children: i("showCollection")
})] })
});
}
y.propTypes = {
collectionPath: _.default.arrayOf(_.default.string),
manifestId: _.default.string,
showCollectionDialog: _.default.func.isRequired,
windowId: _.default.string
};
//#endregion
//#region src/containers/SelectCollection.js
var b = /* @__PURE__ */ r({ default: () => x }), x = e(o((e, { windowId: n }) => {
let { collectionPath: r, manifestId: i } = t(e, { windowId: n }) || {};
return {
collectionPath: r,
manifestId: i
};
}, { showCollectionDialog: s }), a("SelectCollection"))(y);
//#endregion
export { b as n, y as r, x as t };
//# sourceMappingURL=SelectCollection-BK9ZDkK3.js.map