PageSourceSearch

https://app.clariumhealth.com/assets/iconPropTypes-C5chbmyn-CpVo52O4.js

js clariumhealth.com collected 2026-09-25 15:15:35 UTC 5,652 bytes, 132 lines download raw bytes

1import { o as __toESM } from "./chunk-6z4oVpB-.js";
2import { t as require_react } from "./react-CCT1erMQ.js";
3import { t as require_prop_types } from "./prop-types-BP3O0vhg.js";
4import { n as _objectSpread2, r as init_objectSpread2, t as _objectWithoutProperties } from "./objectWithoutProperties-Cgp7QKOy.js";
5function _defineProperty(e, r, t) {
6	return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
7		value: t,
8		enumerable: true,
9		configurable: true,
10		writable: true
11	}) : e[r] = t, e;
12}
13function ownKeys(e, r) {
14	var t = Object.keys(e);
15	if (Object.getOwnPropertySymbols) {
16		var o = Object.getOwnPropertySymbols(e);
17		r && (o = o.filter(function(r$1) {
18			return Object.getOwnPropertyDescriptor(e, r$1).enumerable;
19		})), t.push.apply(t, o);
20	}
21	return t;
22}
23function _objectSpread2$1(e) {
24	for (var r = 1; r < arguments.length; r++) {
25		var t = null != arguments[r] ? arguments[r] : {};
26		r % 2 ? ownKeys(Object(t), true).forEach(function(r$1) {
27			_defineProperty(e, r$1, t[r$1]);
28		}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r$1) {
29			Object.defineProperty(e, r$1, Object.getOwnPropertyDescriptor(t, r$1));
30		});
31	}
32	return e;
33}
34function _objectWithoutProperties$1(e, t) {
35	if (null == e) return {};
36	var o, r, i = _objectWithoutPropertiesLoose(e, t);
37	if (Object.getOwnPropertySymbols) {
38		var n = Object.getOwnPropertySymbols(e);
39		for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
40	}
41	return i;
42}
43function _objectWithoutPropertiesLoose(r, e) {
44	if (null == r) return {};
45	var t = {};
46	for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
47		if (-1 !== e.indexOf(n)) continue;
48		t[n] = r[n];
49	}
50	return t;
51}
52function _toPrimitive(t, r) {
53	if ("object" != typeof t || !t) return t;
54	var e = t[Symbol.toPrimitive];
55	if (void 0 !== e) {
56		var i = e.call(t, r);
57		if ("object" != typeof i) return i;
58		throw new TypeError("@@toPrimitive must return a primitive value.");
59	}
60	return ("string" === r ? String : Number)(t);
61}
62function _toPropertyKey(t) {
63	var i = _toPrimitive(t, "string");
64	return "symbol" == typeof i ? i : i + "";
65}
66var _excluded$1 = [
67	"width",
68	"height",
69	"viewBox"
70], _excluded2$1 = ["tabindex"];
71var defaultAttributes = {
72	focusable: "false",
73	preserveAspectRatio: "xMidYMid meet"
74};
75function getAttributes() {
76	var _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, width = _ref.width, height = _ref.height, _ref$viewBox = _ref.viewBox, viewBox = _ref$viewBox === void 0 ? "0 0 ".concat(width, " ").concat(height) : _ref$viewBox, attributes = _objectWithoutProperties$1(_ref, _excluded$1);
77	var tabindex = attributes.tabindex, rest = _objectWithoutProperties$1(attributes, _excluded2$1);
78	var iconAttributes = _objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, defaultAttributes), rest), {}, {
79		width,
80		height,
81		viewBox
82	});
83	if (iconAttributes["aria-label"] || iconAttributes["aria-labelledby"] || iconAttributes.title) {
84		iconAttributes.role = "img";
85		if (tabindex !== void 0 && tabindex !== null) {
86			iconAttributes.focusable = "true";
87			iconAttributes.tabindex = tabindex;
88		}
89	} else iconAttributes["aria-hidden"] = true;
90	return iconAttributes;
91}
92var import_prop_types$1 = /* @__PURE__ */ __toESM(require_prop_types());
93var import_react = /* @__PURE__ */ __toESM(require_react());
94init_objectSpread2();
95var _excluded = [
96	"className",
97	"children",
98	"tabIndex",
99	"xmlns",
100	"preserveAspectRatio"
101], _excluded2 = ["tabindex"];
102var Icon = /* @__PURE__ */ import_react.forwardRef(function Icon$1(_ref, ref) {
103	let { className, children, tabIndex, xmlns = "http://www.w3.org/2000/svg", preserveAspectRatio = "xMidYMid meet" } = _ref;
104	const _getAttributes = getAttributes(_objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded)), {}, { tabindex: tabIndex })), { tabindex } = _getAttributes;
105	const props = _objectWithoutProperties(_getAttributes, _excluded2);
106	if (className) props.className = className;
107	if (tabindex !== void 0 && tabindex !== null) if (typeof tabindex === "number") props.tabIndex = tabindex;
108	else props.tabIndex = Number(tabIndex);
109	if (ref) props.ref = ref;
110	if (xmlns) props.xmlns = xmlns;
111	if (preserveAspectRatio) props.preserveAspectRatio = preserveAspectRatio;
112	return /* @__PURE__ */ import_react.createElement("svg", props, children);
113});
114Icon.displayName = "Icon";
115Icon.propTypes = {
116	"aria-hidden": import_prop_types$1.default.oneOfType([import_prop_types$1.default.bool, import_prop_types$1.default.oneOf(["true", "false"])]),
117	"aria-label": import_prop_types$1.default.string,
118	"aria-labelledby": import_prop_types$1.default.string,
119	children: import_prop_types$1.default.node,
120	className: import_prop_types$1.default.string,
121	height: import_prop_types$1.default.oneOfType([import_prop_types$1.default.number, import_prop_types$1.default.string]),
122	preserveAspectRatio: import_prop_types$1.default.string,
123	tabIndex: import_prop_types$1.default.oneOfType([import_prop_types$1.default.number, import_prop_types$1.default.string]),
124	viewBox: import_prop_types$1.default.string,
125	width: import_prop_types$1.default.oneOfType([import_prop_types$1.default.number, import_prop_types$1.default.string]),
126	xmlns: import_prop_types$1.default.string
127};
128var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types());
129var iconPropTypes = { size: import_prop_types.default.oneOfType([import_prop_types.default.number, import_prop_types.default.string]) };
130export { Icon as n, iconPropTypes as t };
131
132//# sourceMappingURL=iconPropTypes-C5chbmyn-CpVo52O4.js.map

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.