UNPKG

@bonfida/sns-widget

Version:

SNS Widget for 3rd-party apps for quick domain search and register

161 lines (160 loc) 26.4 kB
"use client"; import { jsxs as A, jsx as y } from "react/jsx-runtime"; import { lazy as U, useState as X, Suspense as Y } from "react"; const ee = (e) => { const r = oe(e), { conflictingClassGroups: o, conflictingClassGroupModifiers: t } = e; return { getClassGroupId: (s) => { const n = s.split("-"); return n[0] === "" && n.length !== 1 && n.shift(), F(n, r) || re(s); }, getConflictingClassGroupIds: (s, n) => { const a = o[s] || []; return n && t[s] ? [...a, ...t[s]] : a; } }; }, F = (e, r) => { var a; if (e.length === 0) return r.classGroupId; const o = e[0], t = r.nextPart.get(o), s = t ? F(e.slice(1), t) : void 0; if (s) return s; if (r.validators.length === 0) return; const n = e.join("-"); return (a = r.validators.find(({ validator: i }) => i(n))) == null ? void 0 : a.classGroupId; }, _ = /^\[(.+)\]$/, re = (e) => { if (_.test(e)) { const r = _.exec(e)[1], o = r == null ? void 0 : r.substring(0, r.indexOf(":")); if (o) return "arbitrary.." + o; } }, oe = (e) => { const { theme: r, prefix: o } = e, t = { nextPart: /* @__PURE__ */ new Map(), validators: [] }; return ne(Object.entries(e.classGroups), o).forEach(([s, n]) => { T(n, t, s, r); }), t; }, T = (e, r, o, t) => { e.forEach((s) => { if (typeof s != "string") { if (typeof s == "function") return te(s) ? void T(s(t), r, o, t) : void r.validators.push({ validator: s, classGroupId: o }); Object.entries(s).forEach(([n, a]) => { T(a, D(r, n), o, t); }); } else (s === "" ? r : D(r, s)).classGroupId = o; }); }, D = (e, r) => { let o = e; return r.split("-").forEach((t) => { o.nextPart.has(t) || o.nextPart.set(t, { nextPart: /* @__PURE__ */ new Map(), validators: [] }), o = o.nextPart.get(t); }), o; }, te = (e) => e.isThemeGetter, ne = (e, r) => r ? e.map(([o, t]) => [o, t.map((s) => typeof s == "string" ? r + s : typeof s == "object" ? Object.fromEntries(Object.entries(s).map(([n, a]) => [r + n, a])) : s)]) : e, se = (e) => { if (e < 1) return { get: () => { }, set: () => { } }; let r = 0, o = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map(); const s = (n, a) => { o.set(n, a), r++, r > e && (r = 0, t = o, o = /* @__PURE__ */ new Map()); }; return { get(n) { let a = o.get(n); return a !== void 0 ? a : (a = t.get(n)) !== void 0 ? (s(n, a), a) : void 0; }, set(n, a) { o.has(n) ? o.set(n, a) : s(n, a); } }; }, le = (e) => { const { separator: r, experimentalParseClassName: o } = e, t = r.length === 1, s = r[0], n = r.length, a = (i) => { const x = []; let b, w = 0, v = 0; for (let m = 0; m < i.length; m++) { let u = i[m]; if (w === 0) { if (u === s && (t || i.slice(m, m + n) === r)) { x.push(i.slice(v, m)), v = m + n; continue; } if (u === "/") { b = m; continue; } } u === "[" ? w++ : u === "]" && w--; } const k = x.length === 0 ? i : i.substring(v), z = k.startsWith("!"); return { modifiers: x, hasImportantModifier: z, baseClassName: z ? k.substring(1) : k, maybePostfixModifierPosition: b && b > v ? b - v : void 0 }; }; return o ? (i) => o({ className: i, parseClassName: a }) : a; }, ae = (e) => { if (e.length <= 1) return e; const r = []; let o = []; return e.forEach((t) => { t[0] === "[" ? (r.push(...o.sort(), t), o = []) : o.push(t); }), r.push(...o.sort()), r; }, ie = /\s+/; function de() { let e, r, o = 0, t = ""; for (; o < arguments.length; ) (e = arguments[o++]) && (r = H(e)) && (t && (t += " "), t += r); return t; } const H = (e) => { if (typeof e == "string") return e; let r, o = ""; for (let t = 0; t < e.length; t++) e[t] && (r = H(e[t])) && (o && (o += " "), o += r); return o; }; function ce(e, ...r) { let o, t, s, n = function(i) { const x = r.reduce((b, w) => w(b), e()); return o = ((b) => ({ cache: se(b.cacheSize), parseClassName: le(b), ...ee(b) }))(x), t = o.cache.get, s = o.cache.set, n = a, a(i); }; function a(i) { const x = t(i); if (x) return x; const b = ((w, v) => { const { parseClassName: k, getClassGroupId: z, getConflictingClassGroupIds: m } = v, u = [], h = w.trim().split(ie); let p = ""; for (let g = h.length - 1; g >= 0; g -= 1) { const G = h[g], { modifiers: $, hasImportantModifier: Z, baseClassName: W, maybePostfixModifierPosition: O } = k(G); let P = !!O, C = z(P ? W.substring(0, O) : W); if (!C) { if (!P) { p = G + (p.length > 0 ? " " + p : p); continue; } if (C = z(W), !C) { p = G + (p.length > 0 ? " " + p : p); continue; } P = !1; } const d = ae($).join(":"), B = Z ? d + "!" : d, I = B + C; if (u.includes(I)) continue; u.push(I); const M = m(C, P); for (let f = 0; f < M.length; ++f) { const Q = M[f]; u.push(B + Q); } p = G + (p.length > 0 ? " " + p : p); } return p; })(i, o); return s(i, b), b; } return function() { return n(de.apply(null, arguments)); }; } const c = (e) => { const r = (o) => o[e] || []; return r.isThemeGetter = !0, r; }, J = /^\[(?:([a-z-]+):)?(.+)\]$/i, pe = /^\d+\/\d+$/, ue = /* @__PURE__ */ new Set(["px", "full", "screen"]), be = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, me = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ge = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, fe = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, he = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, j = (e) => L(e) || ue.has(e) || pe.test(e), N = (e) => E(e, "length", je), L = (e) => !!e && !Number.isNaN(Number(e)), q = (e) => E(e, "number", L), V = (e) => !!e && Number.isInteger(Number(e)), xe = (e) => e.endsWith("%") && L(e.slice(0, -1)), l = (e) => J.test(e), S = (e) => be.test(e), ye = /* @__PURE__ */ new Set(["length", "size", "percentage"]), we = (e) => E(e, ye, K), ve = (e) => E(e, "position", K), ke = /* @__PURE__ */ new Set(["image", "url"]), ze = (e) => E(e, ke, Ne), Ce = (e) => E(e, "", Me), R = () => !0, E = (e, r, o) => { const t = J.exec(e); return !!t && (t[1] ? typeof r == "string" ? t[1] === r : r.has(t[1]) : o(t[2])); }, je = (e) => me.test(e) && !ge.test(e), K = () => !1, Me = (e) => fe.test(e), Ne = (e) => he.test(e), Se = ce(() => { const e = c("colors"), r = c("spacing"), o = c("blur"), t = c("brightness"), s = c("borderColor"), n = c("borderRadius"), a = c("borderSpacing"), i = c("borderWidth"), x = c("contrast"), b = c("grayscale"), w = c("hueRotate"), v = c("invert"), k = c("gap"), z = c("gradientColorStops"), m = c("gradientColorStopPositions"), u = c("inset"), h = c("margin"), p = c("opacity"), g = c("padding"), G = c("saturate"), $ = c("scale"), Z = c("sepia"), W = c("skew"), O = c("space"), P = c("translate"), C = () => ["auto", l, r], d = () => [l, r], B = () => ["", j, N], I = () => ["auto", L, l], M = () => ["", "0", l], f = () => [L, l]; return { cacheSize: 500, separator: ":", theme: { colors: [R], spacing: [j, N], blur: ["none", "", S, l], brightness: f(), borderColor: [e], borderRadius: ["none", "", "full", S, l], borderSpacing: d(), borderWidth: B(), contrast: f(), grayscale: M(), hueRotate: f(), invert: M(), gap: d(), gradientColorStops: [e], gradientColorStopPositions: [xe, N], inset: C(), margin: C(), opacity: f(), padding: d(), saturate: f(), scale: f(), sepia: M(), skew: f(), space: d(), translate: d() }, classGroups: { aspect: [{ aspect: ["auto", "square", "video", l] }], container: ["container"], columns: [{ columns: [S] }], "break-after": [{ "break-after": ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"] }], "break-before": [{ "break-before": ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"] }], "break-inside": [{ "break-inside": ["auto", "avoid", "avoid-page", "avoid-column"] }], "box-decoration": [{ "box-decoration": ["slice", "clone"] }], box: [{ box: ["border", "content"] }], display: ["block", "inline-block", "inline", "flex", "inline-flex", "table", "inline-table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row-group", "table-row", "flow-root", "grid", "inline-grid", "contents", "list-item", "hidden"], float: [{ float: ["right", "left", "none", "start", "end"] }], clear: [{ clear: ["left", "right", "both", "none", "start", "end"] }], isolation: ["isolate", "isolation-auto"], "object-fit": [{ object: ["contain", "cover", "fill", "none", "scale-down"] }], "object-position": [{ object: ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top", l] }], overflow: [{ overflow: ["auto", "hidden", "clip", "visible", "scroll"] }], "overflow-x": [{ "overflow-x": ["auto", "hidden", "clip", "visible", "scroll"] }], "overflow-y": [{ "overflow-y": ["auto", "hidden", "clip", "visible", "scroll"] }], overscroll: [{ overscroll: ["auto", "contain", "none"] }], "overscroll-x": [{ "overscroll-x": ["auto", "contain", "none"] }], "overscroll-y": [{ "overscroll-y": ["auto", "contain", "none"] }], position: ["static", "fixed", "absolute", "relative", "sticky"], inset: [{ inset: [u] }], "inset-x": [{ "inset-x": [u] }], "inset-y": [{ "inset-y": [u] }], start: [{ start: [u] }], end: [{ end: [u] }], top: [{ top: [u] }], right: [{ right: [u] }], bottom: [{ bottom: [u] }], left: [{ left: [u] }], visibility: ["visible", "invisible", "collapse"], z: [{ z: ["auto", V, l] }], basis: [{ basis: C() }], "flex-direction": [{ flex: ["row", "row-reverse", "col", "col-reverse"] }], "flex-wrap": [{ flex: ["wrap", "wrap-reverse", "nowrap"] }], flex: [{ flex: ["1", "auto", "initial", "none", l] }], grow: [{ grow: M() }], shrink: [{ shrink: M() }], order: [{ order: ["first", "last", "none", V, l] }], "grid-cols": [{ "grid-cols": [R] }], "col-start-end": [{ col: ["auto", { span: ["full", V, l] }, l] }], "col-start": [{ "col-start": I() }], "col-end": [{ "col-end": I() }], "grid-rows": [{ "grid-rows": [R] }], "row-start-end": [{ row: ["auto", { span: [V, l] }, l] }], "row-start": [{ "row-start": I() }], "row-end": [{ "row-end": I() }], "grid-flow": [{ "grid-flow": ["row", "col", "dense", "row-dense", "col-dense"] }], "auto-cols": [{ "auto-cols": ["auto", "min", "max", "fr", l] }], "auto-rows": [{ "auto-rows": ["auto", "min", "max", "fr", l] }], gap: [{ gap: [k] }], "gap-x": [{ "gap-x": [k] }], "gap-y": [{ "gap-y": [k] }], "justify-content": [{ justify: ["normal", "start", "end", "center", "between", "around", "evenly", "stretch"] }], "justify-items": [{ "justify-items": ["start", "end", "center", "stretch"] }], "justify-self": [{ "justify-self": ["auto", "start", "end", "center", "stretch"] }], "align-content": [{ content: ["normal", "start", "end", "center", "between", "around", "evenly", "stretch", "baseline"] }], "align-items": [{ items: ["start", "end", "center", "baseline", "stretch"] }], "align-self": [{ self: ["auto", "start", "end", "center", "stretch", "baseline"] }], "place-content": [{ "place-content": ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline"] }], "place-items": [{ "place-items": ["start", "end", "center", "baseline", "stretch"] }], "place-self": [{ "place-self": ["auto", "start", "end", "center", "stretch"] }], p: [{ p: [g] }], px: [{ px: [g] }], py: [{ py: [g] }], ps: [{ ps: [g] }], pe: [{ pe: [g] }], pt: [{ pt: [g] }], pr: [{ pr: [g] }], pb: [{ pb: [g] }], pl: [{ pl: [g] }], m: [{ m: [h] }], mx: [{ mx: [h] }], my: [{ my: [h] }], ms: [{ ms: [h] }], me: [{ me: [h] }], mt: [{ mt: [h] }], mr: [{ mr: [h] }], mb: [{ mb: [h] }], ml: [{ ml: [h] }], "space-x": [{ "space-x": [O] }], "space-x-reverse": ["space-x-reverse"], "space-y": [{ "space-y": [O] }], "space-y-reverse": ["space-y-reverse"], w: [{ w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", l, r] }], "min-w": [{ "min-w": [l, r, "min", "max", "fit"] }], "max-w": [{ "max-w": [l, r, "none", "full", "min", "max", "fit", "prose", { screen: [S] }, S] }], h: [{ h: [l, r, "auto", "min", "max", "fit", "svh", "lvh", "dvh"] }], "min-h": [{ "min-h": [l, r, "min", "max", "fit", "svh", "lvh", "dvh"] }], "max-h": [{ "max-h": [l, r, "min", "max", "fit", "svh", "lvh", "dvh"] }], size: [{ size: [l, r, "auto", "min", "max", "fit"] }], "font-size": [{ text: ["base", S, N] }], "font-smoothing": ["antialiased", "subpixel-antialiased"], "font-style": ["italic", "not-italic"], "font-weight": [{ font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", q] }], "font-family": [{ font: [R] }], "fvn-normal": ["normal-nums"], "fvn-ordinal": ["ordinal"], "fvn-slashed-zero": ["slashed-zero"], "fvn-figure": ["lining-nums", "oldstyle-nums"], "fvn-spacing": ["proportional-nums", "tabular-nums"], "fvn-fraction": ["diagonal-fractions", "stacked-fractons"], tracking: [{ tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", l] }], "line-clamp": [{ "line-clamp": ["none", L, q] }], leading: [{ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", j, l] }], "list-image": [{ "list-image": ["none", l] }], "list-style-type": [{ list: ["none", "disc", "decimal", l] }], "list-style-position": [{ list: ["inside", "outside"] }], "placeholder-color": [{ placeholder: [e] }], "placeholder-opacity": [{ "placeholder-opacity": [p] }], "text-alignment": [{ text: ["left", "center", "right", "justify", "start", "end"] }], "text-color": [{ text: [e] }], "text-opacity": [{ "text-opacity": [p] }], "text-decoration": ["underline", "overline", "line-through", "no-underline"], "text-decoration-style": [{ decoration: ["solid", "dashed", "dotted", "double", "none", "wavy"] }], "text-decoration-thickness": [{ decoration: ["auto", "from-font", j, N] }], "underline-offset": [{ "underline-offset": ["auto", j, l] }], "text-decoration-color": [{ decoration: [e] }], "text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"], "text-overflow": ["truncate", "text-ellipsis", "text-clip"], "text-wrap": [{ text: ["wrap", "nowrap", "balance", "pretty"] }], indent: [{ indent: d() }], "vertical-align": [{ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", l] }], whitespace: [{ whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"] }], break: [{ break: ["normal", "words", "all", "keep"] }], hyphens: [{ hyphens: ["none", "manual", "auto"] }], content: [{ content: ["none", l] }], "bg-attachment": [{ bg: ["fixed", "local", "scroll"] }], "bg-clip": [{ "bg-clip": ["border", "padding", "content", "text"] }], "bg-opacity": [{ "bg-opacity": [p] }], "bg-origin": [{ "bg-origin": ["border", "padding", "content"] }], "bg-position": [{ bg: ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top", ve] }], "bg-repeat": [{ bg: ["no-repeat", { repeat: ["", "x", "y", "round", "space"] }] }], "bg-size": [{ bg: ["auto", "cover", "contain", we] }], "bg-image": [{ bg: ["none", { "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"] }, ze] }], "bg-color": [{ bg: [e] }], "gradient-from-pos": [{ from: [m] }], "gradient-via-pos": [{ via: [m] }], "gradient-to-pos": [{ to: [m] }], "gradient-from": [{ from: [z] }], "gradient-via": [{ via: [z] }], "gradient-to": [{ to: [z] }], rounded: [{ rounded: [n] }], "rounded-s": [{ "rounded-s": [n] }], "rounded-e": [{ "rounded-e": [n] }], "rounded-t": [{ "rounded-t": [n] }], "rounded-r": [{ "rounded-r": [n] }], "rounded-b": [{ "rounded-b": [n] }], "rounded-l": [{ "rounded-l": [n] }], "rounded-ss": [{ "rounded-ss": [n] }], "rounded-se": [{ "rounded-se": [n] }], "rounded-ee": [{ "rounded-ee": [n] }], "rounded-es": [{ "rounded-es": [n] }], "rounded-tl": [{ "rounded-tl": [n] }], "rounded-tr": [{ "rounded-tr": [n] }], "rounded-br": [{ "rounded-br": [n] }], "rounded-bl": [{ "rounded-bl": [n] }], "border-w": [{ border: [i] }], "border-w-x": [{ "border-x": [i] }], "border-w-y": [{ "border-y": [i] }], "border-w-s": [{ "border-s": [i] }], "border-w-e": [{ "border-e": [i] }], "border-w-t": [{ "border-t": [i] }], "border-w-r": [{ "border-r": [i] }], "border-w-b": [{ "border-b": [i] }], "border-w-l": [{ "border-l": [i] }], "border-opacity": [{ "border-opacity": [p] }], "border-style": [{ border: ["solid", "dashed", "dotted", "double", "none", "hidden"] }], "divide-x": [{ "divide-x": [i] }], "divide-x-reverse": ["divide-x-reverse"], "divide-y": [{ "divide-y": [i] }], "divide-y-reverse": ["divide-y-reverse"], "divide-opacity": [{ "divide-opacity": [p] }], "divide-style": [{ divide: ["solid", "dashed", "dotted", "double", "none"] }], "border-color": [{ border: [s] }], "border-color-x": [{ "border-x": [s] }], "border-color-y": [{ "border-y": [s] }], "border-color-t": [{ "border-t": [s] }], "border-color-r": [{ "border-r": [s] }], "border-color-b": [{ "border-b": [s] }], "border-color-l": [{ "border-l": [s] }], "divide-color": [{ divide: [s] }], "outline-style": [{ outline: ["", "solid", "dashed", "dotted", "double", "none"] }], "outline-offset": [{ "outline-offset": [j, l] }], "outline-w": [{ outline: [j, N] }], "outline-color": [{ outline: [e] }], "ring-w": [{ ring: B() }], "ring-w-inset": ["ring-inset"], "ring-color": [{ ring: [e] }], "ring-opacity": [{ "ring-opacity": [p] }], "ring-offset-w": [{ "ring-offset": [j, N] }], "ring-offset-color": [{ "ring-offset": [e] }], shadow: [{ shadow: ["", "inner", "none", S, Ce] }], "shadow-color": [{ shadow: [R] }], opacity: [{ opacity: [p] }], "mix-blend": [{ "mix-blend": ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter", "plus-darker"] }], "bg-blend": [{ "bg-blend": ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"] }], filter: [{ filter: ["", "none"] }], blur: [{ blur: [o] }], brightness: [{ brightness: [t] }], contrast: [{ contrast: [x] }], "drop-shadow": [{ "drop-shadow": ["", "none", S, l] }], grayscale: [{ grayscale: [b] }], "hue-rotate": [{ "hue-rotate": [w] }], invert: [{ invert: [v] }], saturate: [{ saturate: [G] }], sepia: [{ sepia: [Z] }], "backdrop-filter": [{ "backdrop-filter": ["", "none"] }], "backdrop-blur": [{ "backdrop-blur": [o] }], "backdrop-brightness": [{ "backdrop-brightness": [t] }], "backdrop-contrast": [{ "backdrop-contrast": [x] }], "backdrop-grayscale": [{ "backdrop-grayscale": [b] }], "backdrop-hue-rotate": [{ "backdrop-hue-rotate": [w] }], "backdrop-invert": [{ "backdrop-invert": [v] }], "backdrop-opacity": [{ "backdrop-opacity": [p] }], "backdrop-saturate": [{ "backdrop-saturate": [G] }], "backdrop-sepia": [{ "backdrop-sepia": [Z] }], "border-collapse": [{ border: ["collapse", "separate"] }], "border-spacing": [{ "border-spacing": [a] }], "border-spacing-x": [{ "border-spacing-x": [a] }], "border-spacing-y": [{ "border-spacing-y": [a] }], "table-layout": [{ table: ["auto", "fixed"] }], caption: [{ caption: ["top", "bottom"] }], transition: [{ transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", l] }], duration: [{ duration: f() }], ease: [{ ease: ["linear", "in", "out", "in-out", l] }], delay: [{ delay: f() }], animate: [{ animate: ["none", "spin", "ping", "pulse", "bounce", l] }], transform: [{ transform: ["", "gpu", "none"] }], scale: [{ scale: [$] }], "scale-x": [{ "scale-x": [$] }], "scale-y": [{ "scale-y": [$] }], rotate: [{ rotate: [V, l] }], "translate-x": [{ "translate-x": [P] }], "translate-y": [{ "translate-y": [P] }], "skew-x": [{ "skew-x": [W] }], "skew-y": [{ "skew-y": [W] }], "transform-origin": [{ origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", l] }], accent: [{ accent: ["auto", e] }], appearance: [{ appearance: ["none", "auto"] }], cursor: [{ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", l] }], "caret-color": [{ caret: [e] }], "pointer-events": [{ "pointer-events": ["none", "auto"] }], resize: [{ resize: ["none", "y", "x", ""] }], "scroll-behavior": [{ scroll: ["auto", "smooth"] }], "scroll-m": [{ "scroll-m": d() }], "scroll-mx": [{ "scroll-mx": d() }], "scroll-my": [{ "scroll-my": d() }], "scroll-ms": [{ "scroll-ms": d() }], "scroll-me": [{ "scroll-me": d() }], "scroll-mt": [{ "scroll-mt": d() }], "scroll-mr": [{ "scroll-mr": d() }], "scroll-mb": [{ "scroll-mb": d() }], "scroll-ml": [{ "scroll-ml": d() }], "scroll-p": [{ "scroll-p": d() }], "scroll-px": [{ "scroll-px": d() }], "scroll-py": [{ "scroll-py": d() }], "scroll-ps": [{ "scroll-ps": d() }], "scroll-pe": [{ "scroll-pe": d() }], "scroll-pt": [{ "scroll-pt": d() }], "scroll-pr": [{ "scroll-pr": d() }], "scroll-pb": [{ "scroll-pb": d() }], "scroll-pl": [{ "scroll-pl": d() }], "snap-align": [{ snap: ["start", "end", "center", "align-none"] }], "snap-stop": [{ snap: ["normal", "always"] }], "snap-type": [{ snap: ["none", "x", "y", "both"] }], "snap-strictness": [{ snap: ["mandatory", "proximity"] }], touch: [{ touch: ["auto", "none", "manipulation"] }], "touch-x": [{ "touch-pan": ["x", "left", "right"] }], "touch-y": [{ "touch-pan": ["y", "up", "down"] }], "touch-pz": ["touch-pinch-zoom"], select: [{ select: ["none", "text", "all", "auto"] }], "will-change": [{ "will-change": ["auto", "scroll", "contents", "transform", l] }], fill: [{ fill: [e, "none"] }], "stroke-w": [{ stroke: [j, N, q] }], stroke: [{ stroke: [e, "none"] }], sr: ["sr-only", "not-sr-only"], "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }] }, conflictingClassGroups: { overflow: ["overflow-x", "overflow-y"], overscroll: ["overscroll-x", "overscroll-y"], inset: ["inset-x", "inset-y", "start", "end", "top", "right", "bottom", "left"], "inset-x": ["right", "left"], "inset-y": ["top", "bottom"], flex: ["basis", "grow", "shrink"], gap: ["gap-x", "gap-y"], p: ["px", "py", "ps", "pe", "pt", "pr", "pb", "pl"], px: ["pr", "pl"], py: ["pt", "pb"], m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"], mx: ["mr", "ml"], my: ["mt", "mb"], size: ["w", "h"], "font-size": ["leading"], "fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"], "fvn-ordinal": ["fvn-normal"], "fvn-slashed-zero": ["fvn-normal"], "fvn-figure": ["fvn-normal"], "fvn-spacing": ["fvn-normal"], "fvn-fraction": ["fvn-normal"], "line-clamp": ["display", "overflow"], rounded: ["rounded-s", "rounded-e", "rounded-t", "rounded-r", "rounded-b", "rounded-l", "rounded-ss", "rounded-se", "rounded-ee", "rounded-es", "rounded-tl", "rounded-tr", "rounded-br", "rounded-bl"], "rounded-s": ["rounded-ss", "rounded-es"], "rounded-e": ["rounded-se", "rounded-ee"], "rounded-t": ["rounded-tl", "rounded-tr"], "rounded-r": ["rounded-tr", "rounded-br"], "rounded-b": ["rounded-br", "rounded-bl"], "rounded-l": ["rounded-tl", "rounded-bl"], "border-spacing": ["border-spacing-x", "border-spacing-y"], "border-w": ["border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"], "border-w-x": ["border-w-r", "border-w-l"], "border-w-y": ["border-w-t", "border-w-b"], "border-color": ["border-color-t", "border-color-r", "border-color-b", "border-color-l"], "border-color-x": ["border-color-r", "border-color-l"], "border-color-y": ["border-color-t", "border-color-b"], "scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"], "scroll-mx": ["scroll-mr", "scroll-ml"], "scroll-my": ["scroll-mt", "scroll-mb"], "scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"], "scroll-px": ["scroll-pr", "scroll-pl"], "scroll-py": ["scroll-pt", "scroll-pb"], touch: ["touch-x", "touch-y", "touch-pz"], "touch-x": ["touch"], "touch-y": ["touch"], "touch-pz": ["touch"] }, conflictingClassGroupModifiers: { "font-size": ["leading"] } }; }), Ge = (e) => A("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 56 64", ...e, children: [y("path", { stroke: "currentColor", strokeLinejoin: "round", d: "m28 4 .015 13.1M52.46 46.01l-11.137-6.555M4.099 46.01l11.137-6.555" }), y("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M28.009 32.01 15 24.49l13.009-7.518L41 24.52l-12.991 7.49Z" }), y("path", { stroke: "currentColor", strokeLinejoin: "round", strokeWidth: "2", d: "m28.02 46.969-13.003-7.463L15 24.49l13.02 7.52V46.97Z" }), y("path", { stroke: "currentColor", strokeLinejoin: "round", strokeWidth: "2", d: "m28 46.969 13.003-7.43V24.521L28 32.01v14.958Z" }), y("path", { stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "3", d: "M52 46.01V18.032L28 4.042 4 18.032V46.01L28 60l24-13.99Z" }), y("path", { stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "3", d: "M4.04 18.056 28 32.047l24.04-13.99" }), y("path", { stroke: "currentColor", strokeLinecap: "round", strokeMiterlimit: "10", strokeWidth: "3", d: "M28 32.046V60" })] }), Pe = U(() => import("./widget-DVSH-ZgJ.js")), Le = ({ rootWrapperClassNames: e, rootWrapperStyles: r, isDark: o, ...t }) => { const [s, n] = X(!1); return A("div", { className: Se("sns-widget-root sns-bw", e, o && "dark"), style: r, children: [y("button", { onClick: () => n(!s), className: "flex size-[50px] items-center justify-center overflow-hidden rounded-full bg-background-primary p-2 text-text-primary shadow-xl dark:border dark:border-interactive-border", type: "button", "aria-label": s ? "Close SNS widget" : "Open SNS widget", "aria-haspopup": "true", tabIndex: 0, children: y(Ge, { className: "h-full w-full" }) }), s && y(Y, { children: y(Pe, { ...t }) })] }); }; export { Le as E, Se as t };