PageSourceSearch

https://hunter.io/assets/upgrade-button-B2Gr6gB4.js

js hunter.io collected 2026-09-24 07:50:59 UTC 3,528 bytes, 86 lines download raw bytes

1(function() {
2	try {
3		var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {};
4		e.SENTRY_RELEASE = { id: "b96dc26" };
5		var n = new e.Error().stack;
6		n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "dda2006d-de25-4ac3-ac3b-47a5ed7897bf", e._sentryDebugIdIdentifier = "sentry-dbid-dda2006d-de25-4ac3-ac3b-47a5ed7897bf");
7	} catch (e) {}
8})();
9import { a as __toESM, n as __esmMin } from "./rolldown-runtime-sLwMD6dS.js";
10import { a as cn, t as require_jsx_runtime, u as init_utils } from "./jsx-runtime-CHSMGLHp.js";
11import { t as require_react } from "./react-CrLPhuc5.js";
12import { n as init_icon, t as Icon } from "./icon-BNzYbsdJ.js";
13import { r as init_button, t as Button } from "./button-DOiPZHfy.js";
14//#region app/frontend/react/ui/upgrade-tag/index.tsx
15var import_react$1, import_jsx_runtime$1, UpgradeTag;
16function init_upgrade_tag() {
17	return (init_upgrade_tag = __esmMin((() => {
18		import_react$1 = /* @__PURE__ */ __toESM(require_react());
19		init_utils();
20		init_icon();
21		import_jsx_runtime$1 = require_jsx_runtime();
22		UpgradeTag = import_react$1.forwardRef(({ className, iconOnly = false, label = "Premium", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime$1.jsxs)("span", {
23			ref,
24			"data-component": "UpgradeTag",
25			className: cn("h-upgrade-tag", className),
26			...props,
27			children: [/* @__PURE__ */ (0, import_jsx_runtime$1.jsx)("span", {
28				className: "h-upgrade-tag__icon",
29				"data-slot": "icon",
30				children: /* @__PURE__ */ (0, import_jsx_runtime$1.jsx)(Icon, {
31					size: "sm",
32					icon: "gem",
33					className: "upgrade-gradient-icon",
34					opticalAlignment: true,
35					sizeCorrection: true
36				})
37			}), !iconOnly && /* @__PURE__ */ (0, import_jsx_runtime$1.jsx)("span", {
38				className: "h-upgrade-tag__label",
39				"data-slot": "label",
40				children: label
41			})]
42		}));
43		UpgradeTag.displayName = "UpgradeTag";
44	})))();
45}
46//#endregion
47//#region app/frontend/react/ui/upgrade-button.tsx
48var import_react, import_jsx_runtime, UpgradeButton;
49function init_upgrade_button() {
50	return (init_upgrade_button = __esmMin((() => {
51		import_react = /* @__PURE__ */ __toESM(require_react());
52		init_utils();
53		init_button();
54		init_icon();
55		import_jsx_runtime = require_jsx_runtime();
56		UpgradeButton = import_react.forwardRef(({ className, variant = "default", asChild = false, children = "Upgrade to Premium", ...props }, ref) => {
57			const icon = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, {
58				icon: "gem",
59				className: "upgrade-gradient-icon",
60				"aria-hidden": "true"
61			});
62			if (asChild && import_react.isValidElement(children)) {
63				const child = children;
64				const clonedChild = import_react.cloneElement(child, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [icon, child.props.children] }) });
65				return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
66					ref,
67					variant,
68					className: cn("upgrade-button", className),
69					asChild: true,
70					...props,
71					children: clonedChild
72				});
73			}
74			return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button, {
75				ref,
76				variant,
77				className: cn("upgrade-button", className),
78				...props,
79				children: [icon, children]
80			});
81		});
82		UpgradeButton.displayName = "UpgradeButton";
83	})))();
84}
85//#endregion
86export { init_upgrade_tag as i, init_upgrade_button as n, UpgradeTag as r, UpgradeButton as t };

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.