UNPKG

mongodb-chatbot-ui

Version:

UI React components for the MongoDB Chatbot Framework

98 lines (97 loc) 4.52 kB
import { c as Z, g as _ } from "./jsx-runtime.js"; import q from "react"; import { r as A } from "./index2.js"; var N = { exports: {} }; (function(S, F) { (function(h, f) { S.exports = f(q, A); })(Z, function(h, f) { function X(e) { if (e && typeof e == "object" && "default" in e) return e; var r = /* @__PURE__ */ Object.create(null); return e && Object.keys(e).forEach(function(a) { if (a !== "default") { var t = Object.getOwnPropertyDescriptor(e, a); Object.defineProperty(r, a, t.get ? t : { enumerable: !0, get: function() { return e[a]; } }); } }), r.default = e, Object.freeze(r); } var w = X(h); function c(e, r, a) { return (r = function(t) { var s = function(n, j) { if (typeof n != "object" || !n) return n; var b = n[Symbol.toPrimitive]; if (b !== void 0) { var p = b.call(n, j); if (typeof p != "object") return p; throw new TypeError("@@toPrimitive must return a primitive value."); } return String(n); }(t, "string"); return typeof s == "symbol" ? s : s + ""; }(r)) in e ? Object.defineProperty(e, r, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = a, e; } function g() { return g = Object.assign ? Object.assign.bind() : function(e) { for (var r = 1; r < arguments.length; r++) { var a = arguments[r]; for (var t in a) ({}).hasOwnProperty.call(a, t) && (e[t] = a[t]); } return e; }, g.apply(null, arguments); } function x(e, r) { return r || (r = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(r) } })); } var L, C, P = { small: 14, default: 16, large: 20, xlarge: 24 }, $ = ["className", "size", "title", "aria-label", "aria-labelledby", "fill", "role"], O = function(e) { var r = e.className, a = e.size, t = a === void 0 ? 16 : a, s = e.title, n = e["aria-label"], j = e["aria-labelledby"], b = e.fill, p = e.role, E = p === void 0 ? "img" : p, k = function(i, d) { if (i == null) return {}; var l, o, m = function(u, R) { if (u == null) return {}; var z = {}; for (var y in u) if ({}.hasOwnProperty.call(u, y)) { if (R.indexOf(y) !== -1) continue; z[y] = u[y]; } return z; }(i, d); if (Object.getOwnPropertySymbols) { var v = Object.getOwnPropertySymbols(i); for (o = 0; o < v.length; o++) l = v[o], d.indexOf(l) === -1 && {}.propertyIsEnumerable.call(i, l) && (m[l] = i[l]); } return m; }(e, $), D = f.css(L || (L = x([` color: `, `; `])), b), G = f.css(C || (C = x([` flex-shrink: 0; `]))), I = function(i, d, l) { var o, m = l["aria-label"], v = l["aria-labelledby"], u = l.title; switch (i) { case "img": return m || v || u ? c(c(c({}, "aria-labelledby", v), "aria-label", m), "title", u) : { "aria-label": (o = d, "".concat(o.replace(/([a-z])([A-Z])/g, "$1 $2"), " Icon")) }; case "presentation": return { "aria-hidden": !0, alt: "" }; } }(E, "X", c(c({ title: s }, "aria-label", n), "aria-labelledby", j)); return w.createElement("svg", g({ className: f.cx(c({}, D, b != null), G, r), height: typeof t == "number" ? t : P[t], width: typeof t == "number" ? t : P[t], role: E }, I, k, { viewBox: "0 0 16 16" }), w.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.2028 3.40381C11.8123 3.01329 11.1791 3.01329 10.7886 3.40381L8.3137 5.87869L5.83883 3.40381C5.44831 3.01329 4.81514 3.01329 4.42462 3.40381L3.71751 4.11092C3.32699 4.50144 3.32699 5.13461 3.71751 5.52513L6.19238 8.00001L3.71751 10.4749C3.32699 10.8654 3.32699 11.4986 3.71751 11.8891L4.42462 12.5962C4.81514 12.9867 5.44831 12.9867 5.83883 12.5962L8.3137 10.1213L10.7886 12.5962C11.1791 12.9867 11.8123 12.9867 12.2028 12.5962L12.9099 11.8891C13.3004 11.4986 13.3004 10.8654 12.9099 10.4749L10.435 8.00001L12.9099 5.52513C13.3004 5.13461 13.3004 4.50144 12.9099 4.11092L12.2028 3.40381Z", fill: "currentColor" })); }; return O.displayName = "X", O.isGlyph = !0, O; }); })(N); var B = N.exports; const J = /* @__PURE__ */ _(B); export { J as l };