import { openBlock as d, createElementBlock as p, normalizeClass as X, createElementVNode as Y } from "vue";
const x = (n, t) => {
const e = n.__vccOpts || n;
for (const [i, s] of t)
e[i] = s;
return e;
}, nn = ["xlink:href"], en = {
__name: "SvgIcon",
props: {
/**
* The svg icon to show.
*/
icon: {
type: String,
required: !0
},
/**
* The option to spin the icon.
*/
spin: {
type: Boolean,
default: !1
}
},
setup(n) {
return (t, e) => (d(), p("svg", {
class: X(["map-icon", { "map-icon-spin": n.spin }])
}, [
Y("use", {
"xlink:href": `#${n.icon}`
}, null, 8, nn)
], 2));
}
}, wn = /* @__PURE__ */ x(en, [["__scopeId", "data-v-e172d5ff"]]), v = `
`, w = `
`, F = `
`, h = `
`, y = `
`, k = `
`, f = `
`, m = `
`, u = `
`, _ = `
`, C = `
`, L = `
`, b = `
`, G = `
`, B = `
`, T = `
`, q = `
`, O = `
`, S = `
`, A = `
`, z = '', U = `
`, M = ``, $ = `
`, H = `
`, V = `
`, R = `
`, P = `
`, Z = `
`, I = `
`, j = `
`, E = `
`, N = `
`, W = (n, t, e, i) => {
const s = ["title", "desc", "defs", "style"], r = ["width", "height"], J = i || [];
let o = document.createElement("div");
o.innerHTML = n, s.map((l) => {
const c = o.querySelector(l);
c && c.remove();
}), r.map((l) => {
o.querySelector("svg").removeAttribute(l);
}), i && J.map((l) => {
Object.values(o.querySelectorAll(`[${l}]`)).map((Q) => {
Q.removeAttribute(l);
});
});
const K = o.innerHTML;
return o = null, K;
}, D = (n) => [
// Remove XML stuffs and comments
[/<\?xml[\s\S]*?>/gi, ""],
[//gi, ""],
[//gi, ""],
// SVG XML -> HTML5
[/\<([A-Za-z]+)([^\>]*)\/\>/g, "<$1$2>$1>"],
// convert self-closing XML SVG nodes to explicitly closed HTML5 SVG nodes
[/\s+/g, " "],
// replace whitespace sequences with a single space
[/\> \<"]
// remove whitespace between tags
].reduce((i, s) => "".replace.apply(i, s), n).trim(), tn = !0, sn = !0, on = ["fill"], a = /* @__PURE__ */ Object.assign({
"/assets/icons/2horpanel.svg": v,
"/assets/icons/2vertpanel.svg": w,
"/assets/icons/3panel.svg": F,
"/assets/icons/4panel.svg": h,
"/assets/icons/5panel.svg": y,
"/assets/icons/6panel.svg": k,
"/assets/icons/6panelVertical.svg": f,
"/assets/icons/changeBckgd.svg": m,
"/assets/icons/close-no-bk.svg": u,
"/assets/icons/close.svg": _,
"/assets/icons/closeFullScreen.svg": C,
"/assets/icons/comment.svg": L,
"/assets/icons/connection.svg": b,
"/assets/icons/dock.svg": G,
"/assets/icons/drawLine.svg": B,
"/assets/icons/drawPoint.svg": T,
"/assets/icons/drawPolygon.svg": q,
"/assets/icons/drawTrash.svg": O,
"/assets/icons/fitWindow.svg": S,
"/assets/icons/fullScreen.svg": A,
"/assets/icons/help.svg": z,
"/assets/icons/magnifyingGlass.svg": U,
"/assets/icons/noun-filter.svg": M,
"/assets/icons/openMap.svg": $,
"/assets/icons/pause.svg": H,
"/assets/icons/permalink.svg": V,
"/assets/icons/play.svg": R,
"/assets/icons/resetZoom.svg": P,
"/assets/icons/singlepanel.svg": Z,
"/assets/icons/tooltips.svg": I,
"/assets/icons/undock.svg": j,
"/assets/icons/zoomIn.svg": E,
"/assets/icons/zoomOut.svg": N
}), ln = Object.keys(a).map((n) => {
const t = W(a[n], tn, sn, on), e = n.replace(/^.+\/(\w+).svg$/, "$1");
return D(t).replace("