UNPKG

@glasnost-ui/react

Version:

React components for Glasnost UI with liquid glass aesthetics

1,079 lines (1,063 loc) 37.2 kB
import Me, { useEffect as B } from "react"; var re = { exports: {} }, $ = {}; /** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var _e; function vr() { if (_e) return $; _e = 1; var c = Me, h = Symbol.for("react.element"), v = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, g = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 }; function j(E, f, R) { var N, _ = {}, C = null, W = null; R !== void 0 && (C = "" + R), f.key !== void 0 && (C = "" + f.key), f.ref !== void 0 && (W = f.ref); for (N in f) u.call(f, N) && !p.hasOwnProperty(N) && (_[N] = f[N]); if (E && E.defaultProps) for (N in f = E.defaultProps, f) _[N] === void 0 && (_[N] = f[N]); return { $$typeof: h, type: E, key: C, ref: W, props: _, _owner: g.current }; } return $.Fragment = v, $.jsx = j, $.jsxs = j, $; } var I = {}; /** * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var Ce; function mr() { return Ce || (Ce = 1, process.env.NODE_ENV !== "production" && function() { var c = Me, h = Symbol.for("react.element"), v = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), E = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), N = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), te = Symbol.iterator, Oe = "@@iterator"; function Te(e) { if (e === null || typeof e != "object") return null; var r = te && e[te] || e[Oe]; return typeof r == "function" ? r : null; } var T = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; function b(e) { { for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++) t[n - 1] = arguments[n]; Ge("error", e, t); } } function Ge(e, r, t) { { var n = T.ReactDebugCurrentFrame, o = n.getStackAddendum(); o !== "" && (r += "%s", t = t.concat([o])); var l = t.map(function(s) { return String(s); }); l.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, l); } } var Pe = !1, Be = !1, ke = !1, De = !1, Fe = !1, ae; ae = Symbol.for("react.module.reference"); function Ae(e) { return !!(typeof e == "string" || typeof e == "function" || e === u || e === p || Fe || e === g || e === R || e === N || De || e === W || Pe || Be || ke || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === _ || e.$$typeof === j || e.$$typeof === E || e.$$typeof === f || // This needs to include all possible module reference object // types supported by any Flight configuration anywhere since // we don't know which Flight build this will end up being used // with. e.$$typeof === ae || e.getModuleId !== void 0)); } function $e(e, r, t) { var n = e.displayName; if (n) return n; var o = r.displayName || r.name || ""; return o !== "" ? t + "(" + o + ")" : t; } function ne(e) { return e.displayName || "Context"; } function S(e) { if (e == null) return null; if (typeof e.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function") return e.displayName || e.name || null; if (typeof e == "string") return e; switch (e) { case u: return "Fragment"; case v: return "Portal"; case p: return "Profiler"; case g: return "StrictMode"; case R: return "Suspense"; case N: return "SuspenseList"; } if (typeof e == "object") switch (e.$$typeof) { case E: var r = e; return ne(r) + ".Consumer"; case j: var t = e; return ne(t._context) + ".Provider"; case f: return $e(e, e.render, "ForwardRef"); case _: var n = e.displayName || null; return n !== null ? n : S(e.type) || "Memo"; case C: { var o = e, l = o._payload, s = o._init; try { return S(s(l)); } catch { return null; } } } return null; } var M = Object.assign, D = 0, ie, se, oe, le, ue, ce, fe; function de() { } de.__reactDisabledLog = !0; function Ie() { { if (D === 0) { ie = console.log, se = console.info, oe = console.warn, le = console.error, ue = console.group, ce = console.groupCollapsed, fe = console.groupEnd; var e = { configurable: !0, enumerable: !0, value: de, writable: !0 }; Object.defineProperties(console, { info: e, log: e, warn: e, error: e, group: e, groupCollapsed: e, groupEnd: e }); } D++; } } function We() { { if (D--, D === 0) { var e = { configurable: !0, enumerable: !0, writable: !0 }; Object.defineProperties(console, { log: M({}, e, { value: ie }), info: M({}, e, { value: se }), warn: M({}, e, { value: oe }), error: M({}, e, { value: le }), group: M({}, e, { value: ue }), groupCollapsed: M({}, e, { value: ce }), groupEnd: M({}, e, { value: fe }) }); } D < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue."); } } var U = T.ReactCurrentDispatcher, J; function Y(e, r, t) { { if (J === void 0) try { throw Error(); } catch (o) { var n = o.stack.trim().match(/\n( *(at )?)/); J = n && n[1] || ""; } return ` ` + J + e; } } var K = !1, q; { var Ye = typeof WeakMap == "function" ? WeakMap : Map; q = new Ye(); } function ve(e, r) { if (!e || K) return ""; { var t = q.get(e); if (t !== void 0) return t; } var n; K = !0; var o = Error.prepareStackTrace; Error.prepareStackTrace = void 0; var l; l = U.current, U.current = null, Ie(); try { if (r) { var s = function() { throw Error(); }; if (Object.defineProperty(s.prototype, "props", { set: function() { throw Error(); } }), typeof Reflect == "object" && Reflect.construct) { try { Reflect.construct(s, []); } catch (x) { n = x; } Reflect.construct(e, [], s); } else { try { s.call(); } catch (x) { n = x; } e.call(s.prototype); } } else { try { throw Error(); } catch (x) { n = x; } e(); } } catch (x) { if (x && n && typeof x.stack == "string") { for (var i = x.stack.split(` `), y = n.stack.split(` `), d = i.length - 1, m = y.length - 1; d >= 1 && m >= 0 && i[d] !== y[m]; ) m--; for (; d >= 1 && m >= 0; d--, m--) if (i[d] !== y[m]) { if (d !== 1 || m !== 1) do if (d--, m--, m < 0 || i[d] !== y[m]) { var w = ` ` + i[d].replace(" at new ", " at "); return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && q.set(e, w), w; } while (d >= 1 && m >= 0); break; } } } finally { K = !1, U.current = l, We(), Error.prepareStackTrace = o; } var P = e ? e.displayName || e.name : "", O = P ? Y(P) : ""; return typeof e == "function" && q.set(e, O), O; } function qe(e, r, t) { return ve(e, !1); } function Le(e) { var r = e.prototype; return !!(r && r.isReactComponent); } function L(e, r, t) { if (e == null) return ""; if (typeof e == "function") return ve(e, Le(e)); if (typeof e == "string") return Y(e); switch (e) { case R: return Y("Suspense"); case N: return Y("SuspenseList"); } if (typeof e == "object") switch (e.$$typeof) { case f: return qe(e.render); case _: return L(e.type, r, t); case C: { var n = e, o = n._payload, l = n._init; try { return L(l(o), r, t); } catch { } } } return ""; } var F = Object.prototype.hasOwnProperty, me = {}, he = T.ReactDebugCurrentFrame; function V(e) { if (e) { var r = e._owner, t = L(e.type, e._source, r ? r.type : null); he.setExtraStackFrame(t); } else he.setExtraStackFrame(null); } function Ve(e, r, t, n, o) { { var l = Function.call.bind(F); for (var s in e) if (l(e, s)) { var i = void 0; try { if (typeof e[s] != "function") { var y = Error((n || "React class") + ": " + t + " type `" + s + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[s] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); throw y.name = "Invariant Violation", y; } i = e[s](r, s, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); } catch (d) { i = d; } i && !(i instanceof Error) && (V(o), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, s, typeof i), V(null)), i instanceof Error && !(i.message in me) && (me[i.message] = !0, V(o), b("Failed %s type: %s", t, i.message), V(null)); } } } var Ue = Array.isArray; function z(e) { return Ue(e); } function Je(e) { { var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object"; return t; } } function Ke(e) { try { return ge(e), !1; } catch { return !0; } } function ge(e) { return "" + e; } function pe(e) { if (Ke(e)) return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), ge(e); } var A = T.ReactCurrentOwner, ze = { key: !0, ref: !0, __self: !0, __source: !0 }, be, ye, H; H = {}; function He(e) { if (F.call(e, "ref")) { var r = Object.getOwnPropertyDescriptor(e, "ref").get; if (r && r.isReactWarning) return !1; } return e.ref !== void 0; } function Xe(e) { if (F.call(e, "key")) { var r = Object.getOwnPropertyDescriptor(e, "key").get; if (r && r.isReactWarning) return !1; } return e.key !== void 0; } function Ze(e, r) { if (typeof e.ref == "string" && A.current && r && A.current.stateNode !== r) { var t = S(A.current.type); H[t] || (b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', S(A.current.type), e.ref), H[t] = !0); } } function Qe(e, r) { { var t = function() { be || (be = !0, b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r)); }; t.isReactWarning = !0, Object.defineProperty(e, "key", { get: t, configurable: !0 }); } } function er(e, r) { { var t = function() { ye || (ye = !0, b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r)); }; t.isReactWarning = !0, Object.defineProperty(e, "ref", { get: t, configurable: !0 }); } } var rr = function(e, r, t, n, o, l, s) { var i = { // This tag allows us to uniquely identify this as a React Element $$typeof: h, // Built-in properties that belong on the element type: e, key: r, ref: t, props: s, // Record the component responsible for creating this element. _owner: l }; return i._store = {}, Object.defineProperty(i._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: !1 }), Object.defineProperty(i, "_self", { configurable: !1, enumerable: !1, writable: !1, value: n }), Object.defineProperty(i, "_source", { configurable: !1, enumerable: !1, writable: !1, value: o }), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i; }; function tr(e, r, t, n, o) { { var l, s = {}, i = null, y = null; t !== void 0 && (pe(t), i = "" + t), Xe(r) && (pe(r.key), i = "" + r.key), He(r) && (y = r.ref, Ze(r, o)); for (l in r) F.call(r, l) && !ze.hasOwnProperty(l) && (s[l] = r[l]); if (e && e.defaultProps) { var d = e.defaultProps; for (l in d) s[l] === void 0 && (s[l] = d[l]); } if (i || y) { var m = typeof e == "function" ? e.displayName || e.name || "Unknown" : e; i && Qe(s, m), y && er(s, m); } return rr(e, i, y, o, n, A.current, s); } } var X = T.ReactCurrentOwner, xe = T.ReactDebugCurrentFrame; function G(e) { if (e) { var r = e._owner, t = L(e.type, e._source, r ? r.type : null); xe.setExtraStackFrame(t); } else xe.setExtraStackFrame(null); } var Z; Z = !1; function Q(e) { return typeof e == "object" && e !== null && e.$$typeof === h; } function je() { { if (X.current) { var e = S(X.current.type); if (e) return ` Check the render method of \`` + e + "`."; } return ""; } } function ar(e) { { if (e !== void 0) { var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber; return ` Check your code at ` + r + ":" + t + "."; } return ""; } } var Ee = {}; function nr(e) { { var r = je(); if (!r) { var t = typeof e == "string" ? e : e.displayName || e.name; t && (r = ` Check the top-level render call using <` + t + ">."); } return r; } } function Ne(e, r) { { if (!e._store || e._store.validated || e.key != null) return; e._store.validated = !0; var t = nr(r); if (Ee[t]) return; Ee[t] = !0; var n = ""; e && e._owner && e._owner !== X.current && (n = " It was passed a child from " + S(e._owner.type) + "."), G(e), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), G(null); } } function we(e, r) { { if (typeof e != "object") return; if (z(e)) for (var t = 0; t < e.length; t++) { var n = e[t]; Q(n) && Ne(n, r); } else if (Q(e)) e._store && (e._store.validated = !0); else if (e) { var o = Te(e); if (typeof o == "function" && o !== e.entries) for (var l = o.call(e), s; !(s = l.next()).done; ) Q(s.value) && Ne(s.value, r); } } } function ir(e) { { var r = e.type; if (r == null || typeof r == "string") return; var t; if (typeof r == "function") t = r.propTypes; else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here. // Inner props are checked in the reconciler. r.$$typeof === _)) t = r.propTypes; else return; if (t) { var n = S(r); Ve(t, e.props, "prop", n, e); } else if (r.PropTypes !== void 0 && !Z) { Z = !0; var o = S(r); b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown"); } typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); } } function sr(e) { { for (var r = Object.keys(e.props), t = 0; t < r.length; t++) { var n = r[t]; if (n !== "children" && n !== "key") { G(e), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), G(null); break; } } e.ref !== null && (G(e), b("Invalid attribute `ref` supplied to `React.Fragment`."), G(null)); } } var Re = {}; function Se(e, r, t, n, o, l) { { var s = Ae(e); if (!s) { var i = ""; (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); var y = ar(o); y ? i += y : i += je(); var d; e === null ? d = "null" : z(e) ? d = "array" : e !== void 0 && e.$$typeof === h ? (d = "<" + (S(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : d = typeof e, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", d, i); } var m = tr(e, r, t, o, l); if (m == null) return m; if (s) { var w = r.children; if (w !== void 0) if (n) if (z(w)) { for (var P = 0; P < w.length; P++) we(w[P], e); Object.freeze && Object.freeze(w); } else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."); else we(w, e); } if (F.call(r, "key")) { var O = S(e), x = Object.keys(r).filter(function(dr) { return dr !== "key"; }), ee = x.length > 0 ? "{key: someKey, " + x.join(": ..., ") + ": ...}" : "{key: someKey}"; if (!Re[O + ee]) { var fr = x.length > 0 ? "{" + x.join(": ..., ") + ": ...}" : "{}"; b(`A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`, ee, O, fr, O), Re[O + ee] = !0; } } return e === u ? sr(m) : ir(m), m; } } function or(e, r, t) { return Se(e, r, t, !0); } function lr(e, r, t) { return Se(e, r, t, !1); } var ur = lr, cr = or; I.Fragment = u, I.jsx = ur, I.jsxs = cr; }()), I; } process.env.NODE_ENV === "production" ? re.exports = vr() : re.exports = mr(); var a = re.exports; const hr = ` <svg style="display: none;" xmlns="http://www.w3.org/2000/svg"> <defs> <!-- Advanced Glass Morphism Filter --> <filter id="glassDistortion" x="-50%" y="-50%" width="200%" height="200%"> <feTurbulence baseFrequency="0.02" numOctaves="3" result="turbulence"/> <feDisplacementMap in="SourceGraphic" in2="turbulence" scale="8" result="displacement"/> <feGaussianBlur in="displacement" stdDeviation="4" result="blur"/> <feColorMatrix in="blur" type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.9 0"/> <feOffset in="blur" dx="0" dy="8" result="shadow"/> <feMerge> <feMergeNode in="shadow"/> <feMergeNode in="SourceGraphic"/> </feMerge> </filter> <!-- Liquid Glass Navbar Filter --> <filter id="liquidNavbar" x="-50%" y="-50%" width="200%" height="200%"> <feTurbulence baseFrequency="0.01" numOctaves="2" result="noise"/> <feDisplacementMap in="SourceGraphic" in2="noise" scale="3" result="distort"/> <feGaussianBlur in="distort" stdDeviation="2" result="blur"/> <feColorMatrix in="blur" type="matrix" values="1.1 0 0 0 0 0 1.1 0 0 0 0 0 1.2 0 0 0 0 0 0.95 0"/> <feOffset in="blur" dx="0" dy="4" result="shadow"/> <feMerge> <feMergeNode in="shadow"/> <feMergeNode in="SourceGraphic"/> </feMerge> </filter> <!-- Frosted Glass Effect --> <filter id="frostedGlass" x="-20%" y="-20%" width="140%" height="140%"> <feTurbulence baseFrequency="0.9" numOctaves="4" stitchTiles="stitch" result="noise"/> <feColorMatrix in="noise" type="saturate" values="0"/> <feComponentTransfer in="noise" result="morenoise"> <feFuncA type="discrete" tableValues="0.1 0.15 0.2 0.25 0.3"/> </feComponentTransfer> <feComposite in="SourceGraphic" in2="morenoise" operator="over" result="composite"/> <feGaussianBlur in="composite" stdDeviation="1.5" result="blur"/> <feOffset in="blur" dx="0" dy="2" result="offset"/> <feMerge> <feMergeNode in="offset"/> <feMergeNode in="SourceGraphic"/> </feMerge> </filter> <!-- Clean Glass Base Filter --> <filter id="glassBase" x="-50%" y="-50%" width="200%" height="200%"> <feGaussianBlur in="SourceGraphic" stdDeviation="2" result="blur"/> <feColorMatrix in="blur" type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.85 0"/> <feOffset in="blur" dx="0" dy="4" result="shadow"/> <feMerge> <feMergeNode in="shadow"/> <feMergeNode in="SourceGraphic"/> </feMerge> </filter> <!-- Clean Button Glass Effect --> <filter id="buttonGlass" x="-25%" y="-25%" width="150%" height="150%"> <feGaussianBlur in="SourceGraphic" stdDeviation="1.5" result="buttonBlur"/> <feColorMatrix in="buttonBlur" type="matrix" values="1.02 0 0 0 0 0 1.02 0 0 0 0 0 1.05 0 0 0 0 0 0.88 0"/> <feOffset in="buttonBlur" dx="0" dy="3" result="buttonShadow"/> <feMerge> <feMergeNode in="buttonShadow"/> <feMergeNode in="SourceGraphic"/> </feMerge> </filter> <!-- Clean Card Glass Effect --> <filter id="cardGlass" x="-50%" y="-50%" width="200%" height="200%"> <feGaussianBlur in="SourceGraphic" stdDeviation="2.5" result="cardBlur"/> <feColorMatrix in="cardBlur" type="matrix" values="1.05 0 0 0 0 0 1.05 0 0 0 0 0 1.1 0 0 0 0 0 0.8 0"/> <feOffset in="cardBlur" dx="0" dy="6" result="cardShadow"/> <feMerge> <feMergeNode in="cardShadow"/> <feMergeNode in="SourceGraphic"/> </feMerge> </filter> <!-- Clean Glow Effect --> <filter id="cleanGlow" x="-100%" y="-100%" width="300%" height="300%"> <feGaussianBlur in="SourceGraphic" stdDeviation="4" result="coloredBlur"/> <feColorMatrix in="coloredBlur" type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.6 0"/> <feOffset in="coloredBlur" dx="0" dy="2" result="glowShadow"/> <feMerge> <feMergeNode in="glowShadow"/> <feMergeNode in="coloredBlur"/> <feMergeNode in="SourceGraphic"/> </feMerge> </filter> <!-- Clean Subtle Enhancement --> <filter id="subtleEnhancement" x="-20%" y="-20%" width="140%" height="140%"> <feGaussianBlur in="SourceGraphic" stdDeviation="0.8" result="subtleBlur"/> <feColorMatrix in="subtleBlur" type="matrix" values="1.01 0 0 0 0 0 1.01 0 0 0 0 0 1.02 0 0 0 0 0 0.92 0"/> <feOffset in="subtleBlur" dx="0" dy="1" result="subtleOffset"/> <feMerge> <feMergeNode in="subtleOffset"/> <feMergeNode in="SourceGraphic"/> </feMerge> </filter> <!-- Clean Shimmer Effect --> <filter id="shimmerEffect" x="-50%" y="-50%" width="200%" height="200%"> <feGaussianBlur in="SourceGraphic" stdDeviation="1" result="shimmerBlur"/> <feColorMatrix in="shimmerBlur" type="matrix" values="1.2 0 0 0 0 0 1.2 0 0 0 0 0 1.3 0 0 0 0 0 0.7 0"/> <feOffset in="shimmerBlur" dx="0" dy="1" result="shimmerOffset"/> <feMerge> <feMergeNode in="shimmerOffset"/> <feMergeNode in="SourceGraphic"/> </feMerge> </filter> <!-- Clean Navbar Glass Effect --> <filter id="navbarGlass" x="-20%" y="-20%" width="140%" height="140%"> <feGaussianBlur in="SourceGraphic" stdDeviation="1.5" result="navBlur"/> <feColorMatrix in="navBlur" type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.9 0"/> <feOffset in="navBlur" dx="0" dy="2" result="navShadow"/> <feMerge> <feMergeNode in="navShadow"/> <feMergeNode in="SourceGraphic"/> </feMerge> </filter> <!-- Clean Profile Glass Effect --> <filter id="profileGlass" x="-50%" y="-50%" width="200%" height="200%"> <feGaussianBlur in="SourceGraphic" stdDeviation="3" result="profileBlur"/> <feColorMatrix in="profileBlur" type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.7 0"/> <feOffset in="profileBlur" dx="0" dy="8" result="profileShadow"/> <feMerge> <feMergeNode in="profileShadow"/> <feMergeNode in="SourceGraphic"/> </feMerge> </filter> <!-- Clean Avatar Glow Effect --> <filter id="avatarGlow" x="-100%" y="-100%" width="300%" height="300%"> <feGaussianBlur in="SourceGraphic" stdDeviation="6" result="avatarBlur"/> <feColorMatrix in="avatarBlur" type="matrix" values="1.1 0 0 0 0 0 1.1 0 0 0 0 0 1.2 0 0 0 0 0 0.6 0"/> <feMerge> <feMergeNode in="avatarBlur"/> <feMergeNode in="SourceGraphic"/> </feMerge> </filter> <!-- Clean Comment Glass Effect --> <filter id="commentGlass" x="-50%" y="-50%" width="200%" height="200%"> <feGaussianBlur in="SourceGraphic" stdDeviation="2.5" result="commentBlur"/> <feColorMatrix in="commentBlur" type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.8 0"/> <feOffset in="commentBlur" dx="0" dy="6" result="commentShadow"/> <feMerge> <feMergeNode in="commentShadow"/> <feMergeNode in="SourceGraphic"/> </feMerge> </filter> </defs> </svg> `; function k() { if (typeof window < "u" && !document.querySelector("#glasnost-filters")) { const c = document.createElement("div"); c.id = "glasnost-filters", c.innerHTML = hr, document.body.appendChild(c); } } const pr = ({ leftSlot: c, centerLogo: h, rightSlot: v, children: u, className: g = "", style: p }) => (B(() => { k(); }, []), /* @__PURE__ */ a.jsxs( "nav", { className: `glasnost-navbar ${g}`, style: p, children: [ /* @__PURE__ */ a.jsx("div", { className: "navbar-glass-overlay" }), /* @__PURE__ */ a.jsx("div", { className: "navbar-liquid-distortion" }), /* @__PURE__ */ a.jsxs("div", { className: "navbar-content", children: [ /* @__PURE__ */ a.jsxs("div", { className: "navbar-left", children: [ c, u && /* @__PURE__ */ a.jsx("div", { className: "navbar-left-slot", children: u }) ] }), /* @__PURE__ */ a.jsx("div", { className: "navbar-center", children: h }), /* @__PURE__ */ a.jsx("div", { className: "navbar-right", children: v }) ] }) ] } )), br = ({ avatar: c, name: h, title: v, actions: u, children: g, className: p = "", style: j }) => (B(() => { k(); }, []), /* @__PURE__ */ a.jsxs( "div", { className: `glasnost-profile-card ${p}`, style: j, children: [ /* @__PURE__ */ a.jsx("div", { className: "profile-glass-overlay" }), /* @__PURE__ */ a.jsx("div", { className: "profile-liquid-distortion" }), /* @__PURE__ */ a.jsxs("div", { className: "profile-card-content", children: [ /* @__PURE__ */ a.jsxs("div", { className: "avatar-container", children: [ /* @__PURE__ */ a.jsx("div", { className: "avatar-glow-ring" }), /* @__PURE__ */ a.jsx( "img", { src: c, alt: `${h} avatar`, className: "profile-avatar" } ), /* @__PURE__ */ a.jsx("div", { className: "avatar-shimmer" }) ] }), /* @__PURE__ */ a.jsxs("div", { className: "profile-info", children: [ /* @__PURE__ */ a.jsx("h3", { className: "profile-name", children: h }), v && /* @__PURE__ */ a.jsx("p", { className: "profile-title", children: v }) ] }), (u || g) && /* @__PURE__ */ a.jsxs("div", { className: "profile-actions", children: [ u, g ] }) ] }), /* @__PURE__ */ a.jsx("div", { className: "card-shine" }) ] } )), yr = ({ variant: c = "primary", size: h = "medium", disabled: v = !1, onClick: u, children: g, className: p = "", style: j }) => { B(() => { k(); }, []); const E = [ "glasnost-glass-button", `glass-button--${c}`, `glass-button--${h}`, v ? "glass-button--disabled" : "", p ].filter(Boolean).join(" "), f = () => { !v && u && u(); }; return /* @__PURE__ */ a.jsxs( "button", { className: E, disabled: v, onClick: f, type: "button", style: j, children: [ /* @__PURE__ */ a.jsx("div", { className: "button-glass-overlay" }), /* @__PURE__ */ a.jsx("div", { className: "button-liquid-distortion" }), /* @__PURE__ */ a.jsx("span", { className: "button-content", children: g }), /* @__PURE__ */ a.jsx("div", { className: "button-shine" }) ] } ); }, xr = ({ title: c = "Comments", comments: h, count: v = 0, children: u, className: g = "", style: p, showMoreButton: j = !0, moreButtonText: E = "More", onMore: f }) => { B(() => { k(); }, []); const R = () => { f && f(); }; return /* @__PURE__ */ a.jsxs( "div", { className: `glasnost-comment-card ${g}`, style: p, children: [ /* @__PURE__ */ a.jsx("div", { className: "comment-glass-overlay" }), /* @__PURE__ */ a.jsx("div", { className: "comment-liquid-distortion" }), /* @__PURE__ */ a.jsxs("div", { className: "comment-card-header", children: [ /* @__PURE__ */ a.jsx("h3", { className: "comment-title", children: c }), /* @__PURE__ */ a.jsx("div", { className: "comment-count", children: v }) ] }), /* @__PURE__ */ a.jsx("div", { className: "comment-card-content", children: u || h || /* @__PURE__ */ a.jsxs("div", { className: "no-comments", children: [ /* @__PURE__ */ a.jsx("div", { className: "no-comments-icon", children: "💬" }), /* @__PURE__ */ a.jsx("p", { children: "No comments yet. Be the first to share your thoughts!" }) ] }) }), j && /* @__PURE__ */ a.jsx("div", { className: "comment-card-footer", children: /* @__PURE__ */ a.jsxs( "button", { className: "more-button", onClick: R, type: "button", children: [ /* @__PURE__ */ a.jsx("span", { className: "more-button-text", children: E }), /* @__PURE__ */ a.jsx("div", { className: "more-button-shine" }) ] } ) }), /* @__PURE__ */ a.jsx("div", { className: "floating-particle particle-1" }), /* @__PURE__ */ a.jsx("div", { className: "floating-particle particle-2" }), /* @__PURE__ */ a.jsx("div", { className: "floating-particle particle-3" }), /* @__PURE__ */ a.jsx("div", { className: "comment-shine" }) ] } ); }, jr = ({ isOpen: c, onToggle: h, className: v = "", style: u }) => { B(() => { k(); }, []); const g = [ "glasnost-hamburger-menu", c ? "hamburger-menu--open" : "", v ].filter(Boolean).join(" "), p = () => { h(); }; return /* @__PURE__ */ a.jsxs( "button", { className: g, onClick: p, type: "button", "aria-label": c ? "Close menu" : "Open menu", "aria-expanded": c, style: u, children: [ /* @__PURE__ */ a.jsx("div", { className: "hamburger-glass-overlay" }), /* @__PURE__ */ a.jsx("div", { className: "hamburger-liquid-distortion" }), /* @__PURE__ */ a.jsxs("div", { className: "hamburger-icon", children: [ /* @__PURE__ */ a.jsx("span", { className: "hamburger-line hamburger-line--top" }), /* @__PURE__ */ a.jsx("span", { className: "hamburger-line hamburger-line--middle" }), /* @__PURE__ */ a.jsx("span", { className: "hamburger-line hamburger-line--bottom" }) ] }), /* @__PURE__ */ a.jsx("div", { className: "hamburger-shine" }) ] } ); }, Er = ({ checked: c, onChange: h, label: v = "", disabled: u = !1, className: g = "", style: p, size: j = "medium", variant: E = "primary" }) => { B(() => { k(); }, []); const f = [ "glasnost-toggle-button", c ? "toggle-button--checked" : "", u ? "toggle-button--disabled" : "", `toggle-button--${j}`, `toggle-button--${E}`, g ].filter(Boolean).join(" "), R = () => { !u && h && h(!c); }; return /* @__PURE__ */ a.jsxs( "label", { className: f, "aria-disabled": u, style: p, children: [ /* @__PURE__ */ a.jsx( "input", { type: "checkbox", checked: c, disabled: u, onChange: R, className: "toggle-input", "aria-labelledby": v ? "toggle-label" : void 0 } ), /* @__PURE__ */ a.jsxs("div", { className: "toggle-track", children: [ /* @__PURE__ */ a.jsx("div", { className: "toggle-track-overlay" }), /* @__PURE__ */ a.jsx("div", { className: "toggle-liquid-distortion" }), /* @__PURE__ */ a.jsxs("div", { className: "toggle-knob", children: [ /* @__PURE__ */ a.jsx("div", { className: "knob-inner" }), /* @__PURE__ */ a.jsx("div", { className: "knob-shine" }) ] }), /* @__PURE__ */ a.jsx("div", { className: "toggle-shine" }) ] }), v && /* @__PURE__ */ a.jsx("span", { id: "toggle-label", className: "toggle-label", children: v }) ] } ); }; export { xr as CommentListCard, yr as GlassButton, Er as GlassToggleButton, jr as HamburgerMenu, pr as Navbar, br as ProfileCard, k as injectLiquidGlassFilters };