PageSourceSearch

https://app.sundaysky.com/client/react-router-dom.DXk3bR6C.js

js sundaysky.com collected 2026-09-24 08:28:52 UTC 7,127 bytes, 158 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d967174e-a97c-545e-8241-48957d632a43")}catch(e){}}();
3import { o as __toESM } from "./rolldown-runtime.D1cXj70v.js";
4import { $ as require_prop_types, ct as _extends, dt as require_react, lt as init_extends, nt as init_inheritsLoose, ot as _objectWithoutPropertiesLoose, st as init_objectWithoutPropertiesLoose, tt as _inheritsLoose } from "./vendor~index~newNavigation~AccountTierManagementPage~AdminContainer~AISystemPromptManager~C~h0mf93xb.B-8UGg7U.js";
5import { Cr as invariant, Sr as createPath, dr as Router, mr as matchPath, pr as context, xr as createLocation, yr as createBrowserHistory } from "./vendor~index~newNavigation~AccountTierManagementPage~AdminContainer~AISystemPromptManager~C~hh2h6ti1.CxCdS9_4.js";
6//#region node_modules/react-router-dom/esm/react-router-dom.js
7init_inheritsLoose();
8var import_react = /* @__PURE__ */ __toESM(require_react());
9require_prop_types();
10init_extends();
11init_objectWithoutPropertiesLoose();
12/**
13* The public API for a <Router> that uses HTML5 history.
14*/
15var BrowserRouter = /*#__PURE__*/ function(_React$Component) {
16	_inheritsLoose(BrowserRouter, _React$Component);
17	function BrowserRouter() {
18		var _this;
19		for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
20		_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
21		_this.history = createBrowserHistory(_this.props);
22		return _this;
23	}
24	var _proto = BrowserRouter.prototype;
25	_proto.render = function render() {
26		return /*#__PURE__*/ import_react.createElement(Router, {
27			history: this.history,
28			children: this.props.children
29		});
30	};
31	return BrowserRouter;
32}(import_react.Component);
33import_react.Component;
34var resolveToLocation = function resolveToLocation(to, currentLocation) {
35	return typeof to === "function" ? to(currentLocation) : to;
36};
37var normalizeToLocation = function normalizeToLocation(to, currentLocation) {
38	return typeof to === "string" ? createLocation(to, null, null, currentLocation) : to;
39};
40var forwardRefShim = function forwardRefShim(C) {
41	return C;
42};
43var forwardRef = import_react.forwardRef;
44if (typeof forwardRef === "undefined") forwardRef = forwardRefShim;
45function isModifiedEvent(event) {
46	return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
47}
48var LinkAnchor = forwardRef(function(_ref, forwardedRef) {
49	var innerRef = _ref.innerRef, navigate = _ref.navigate, _onClick = _ref.onClick, rest = _objectWithoutPropertiesLoose(_ref, [
50		"innerRef",
51		"navigate",
52		"onClick"
53	]);
54	var target = rest.target;
55	var props = _extends({}, rest, { onClick: function onClick(event) {
56		try {
57			if (_onClick) _onClick(event);
58		} catch (ex) {
59			event.preventDefault();
60			throw ex;
61		}
62		if (!event.defaultPrevented && event.button === 0 && (!target || target === "_self") && !isModifiedEvent(event)) {
63			event.preventDefault();
64			navigate();
65		}
66	} });
67	if (forwardRefShim !== forwardRef) props.ref = forwardedRef || innerRef;
68	else props.ref = innerRef;
69	return /*#__PURE__*/ import_react.createElement("a", props);
70});
71/**
72* The public API for rendering a history-aware <a>.
73*/
74var Link = forwardRef(function(_ref2, forwardedRef) {
75	var _ref2$component = _ref2.component, component = _ref2$component === void 0 ? LinkAnchor : _ref2$component, replace = _ref2.replace, to = _ref2.to, innerRef = _ref2.innerRef, rest = _objectWithoutPropertiesLoose(_ref2, [
76		"component",
77		"replace",
78		"to",
79		"innerRef"
80	]);
81	return /*#__PURE__*/ import_react.createElement(context.Consumer, null, function(context) {
82		!context && invariant(false);
83		var history = context.history;
84		var location = normalizeToLocation(resolveToLocation(to, context.location), context.location);
85		var props = _extends({}, rest, {
86			href: location ? history.createHref(location) : "",
87			navigate: function navigate() {
88				var location = resolveToLocation(to, context.location);
89				var isDuplicateNavigation = createPath(context.location) === createPath(normalizeToLocation(location));
90				(replace || isDuplicateNavigation ? history.replace : history.push)(location);
91			}
92		});
93		if (forwardRefShim !== forwardRef) props.ref = forwardedRef || innerRef;
94		else props.innerRef = innerRef;
95		return /*#__PURE__*/ import_react.createElement(component, props);
96	});
97});
98var forwardRefShim$1 = function forwardRefShim(C) {
99	return C;
100};
101var forwardRef$1 = import_react.forwardRef;
102if (typeof forwardRef$1 === "undefined") forwardRef$1 = forwardRefShim$1;
103function joinClassnames() {
104	for (var _len = arguments.length, classnames = new Array(_len), _key = 0; _key < _len; _key++) classnames[_key] = arguments[_key];
105	return classnames.filter(function(i) {
106		return i;
107	}).join(" ");
108}
109forwardRef$1(function(_ref, forwardedRef) {
110	var _ref$ariaCurrent = _ref["aria-current"], ariaCurrent = _ref$ariaCurrent === void 0 ? "page" : _ref$ariaCurrent, _ref$activeClassName = _ref.activeClassName, activeClassName = _ref$activeClassName === void 0 ? "active" : _ref$activeClassName, activeStyle = _ref.activeStyle, classNameProp = _ref.className, exact = _ref.exact, isActiveProp = _ref.isActive, locationProp = _ref.location, sensitive = _ref.sensitive, strict = _ref.strict, styleProp = _ref.style, to = _ref.to, innerRef = _ref.innerRef, rest = _objectWithoutPropertiesLoose(_ref, [
111		"aria-current",
112		"activeClassName",
113		"activeStyle",
114		"className",
115		"exact",
116		"isActive",
117		"location",
118		"sensitive",
119		"strict",
120		"style",
121		"to",
122		"innerRef"
123	]);
124	return /*#__PURE__*/ import_react.createElement(context.Consumer, null, function(context) {
125		!context && invariant(false);
126		var currentLocation = locationProp || context.location;
127		var toLocation = normalizeToLocation(resolveToLocation(to, currentLocation), currentLocation);
128		var path = toLocation.pathname;
129		var escapedPath = path && path.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
130		var match = escapedPath ? matchPath(currentLocation.pathname, {
131			path: escapedPath,
132			exact,
133			sensitive,
134			strict
135		}) : null;
136		var isActive = !!(isActiveProp ? isActiveProp(match, currentLocation) : match);
137		var className = typeof classNameProp === "function" ? classNameProp(isActive) : classNameProp;
138		var style = typeof styleProp === "function" ? styleProp(isActive) : styleProp;
139		if (isActive) {
140			className = joinClassnames(className, activeClassName);
141			style = _extends({}, style, activeStyle);
142		}
143		var props = _extends({
144			"aria-current": isActive && ariaCurrent || null,
145			className,
146			style,
147			to: toLocation
148		}, rest);
149		if (forwardRefShim$1 !== forwardRef$1) props.ref = forwardedRef || innerRef;
150		else props.innerRef = innerRef;
151		return /*#__PURE__*/ import_react.createElement(Link, props);
152	});
153});
154//#endregion
155export { Link as n, BrowserRouter as t };
156
157//# sourceMappingURL=react-router-dom.DXk3bR6C.js.map
158//# debugId=d967174e-a97c-545e-8241-48957d632a43

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.