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] = "98d795fd-b722-450c-b57a-b97707184ecb", e._sentryDebugIdIdentifier = "sentry-dbid-98d795fd-b722-450c-b57a-b97707184ecb"); 7 } catch (e) {} 8})(); 9import { a as __toESM, n as __esmMin } from "./rolldown-runtime-sLwMD6dS.js"; 10import { t as require_react } from "./react-CrLPhuc5.js"; 11//#region node_modules/.pnpm/@[email protected]_@[email protected][email protected]/node_modules/@radix-ui/react-compose-refs/dist/index.mjs 12function setRef(ref, value) { 13 if (typeof ref === "function") return ref(value); 14 else if (ref !== null && ref !== void 0) ref.current = value; 15} 16function composeRefs(...refs) { 17 return (node) => { 18 let hasCleanup = false; 19 const cleanups = refs.map((ref) => { 20 const cleanup = setRef(ref, node); 21 if (!hasCleanup && typeof cleanup == "function") hasCleanup = true; 22 return cleanup; 23 }); 24 if (hasCleanup) return () => { 25 for (let i = 0; i < cleanups.length; i++) { 26 const cleanup = cleanups[i]; 27 if (typeof cleanup == "function") cleanup(); 28 else setRef(refs[i], null); 29 } 30 }; 31 }; 32} 33function useComposedRefs(...refs) { 34 return import_react$1.useCallback(composeRefs(...refs), refs); 35} 36var import_react$1, __defProp$1, __name$1; 37function init_dist() { 38 return (init_dist = __esmMin((() => { 39 import_react$1 = /* @__PURE__ */ __toESM(require_react(), 1); 40 __defProp$1 = Object.defineProperty; 41 __name$1 = (target, value) => __defProp$1(target, "name", { 42 value, 43 configurable: true 44 }); 45 __name$1(setRef, "setRef"); 46 __name$1(composeRefs, "composeRefs"); 47 __name$1(useComposedRefs, "useComposedRefs"); 48 })))(); 49} 50//#endregion 51//#region node_modules/.pnpm/@[email protected]_@[email protected][email protected]/node_modules/@radix-ui/react-slot/dist/index.mjs 52// @__NO_SIDE_EFFECTS__ 53function createSlot(ownerName) { 54 const Slot2 = import_react.forwardRef((props, forwardedRef) => { 55 let { children, ...slotProps } = props; 56 let slottableElement = null; 57 let hasSlottable = false; 58 const newChildren = []; 59 if (isLazyComponent(children) && typeof use === "function") children = use(children._payload); 60 import_react.Children.forEach(children, (maybeSlottable) => { 61 if (isSlottable(maybeSlottable)) { 62 hasSlottable = true; 63 const slottable = maybeSlottable; 64 let child = "child" in slottable.props ? slottable.props.child : slottable.props.children; 65 if (isLazyComponent(child) && typeof use === "function") child = use(child._payload); 66 slottableElement = getSlottableElementFromSlottable(slottable, child); 67 newChildren.push(slottableElement?.props?.children); 68 } else newChildren.push(maybeSlottable); 69 }); 70 if (slottableElement) slottableElement = import_react.cloneElement(slottableElement, void 0, newChildren); 71 else if (!hasSlottable && import_react.Children.count(children) === 1 && import_react.isValidElement(children)) slottableElement = children; 72 const slottableElementRef = slottableElement ? getElementRef(slottableElement) : void 0; 73 const composedRef = useComposedRefs(forwardedRef, slottableElementRef); 74 if (!slottableElement) { 75 if (children || children === 0) throw new Error(hasSlottable ? createSlottableError(ownerName) : createSlotError(ownerName)); 76 return children; 77 } 78 const mergedProps = mergeProps(slotProps, slottableElement.props ?? {}); 79 if (slottableElement.type !== import_react.Fragment) mergedProps.ref = forwardedRef ? composedRef : slottableElementRef; 80 return import_react.cloneElement(slottableElement, mergedProps); 81 }); 82 Slot2.displayName = `${ownerName}.Slot`; 83 return Slot2; 84} 85// @__NO_SIDE_EFFECTS__ 86function createSlottable(ownerName) { 87 const Slottable2 = /* @__PURE__ */ __name((props) => "child" in props ? props.children(props.child) : props.children, "Slottable"); 88 Slottable2.displayName = `${ownerName}.Slottable`; 89 Slottable2.__radixId = SLOTTABLE_IDENTIFIER; 90 return Slottable2; 91} 92function mergeProps(slotProps, childProps) { 93 const overrideProps = { ...childProps }; 94 for (const propName in childProps) { 95 const slotPropValue = slotProps[propName];
96 const childPropValue = childProps[propName]; 97 if (/^on[A-Z]/.test(propName)) { 98 if (slotPropValue && childPropValue) overrideProps[propName] = (...args) => { 99 const result = childPropValue(...args); 100 slotPropValue(...args); 101 return result; 102 }; 103 else if (slotPropValue) overrideProps[propName] = slotPropValue; 104 } else if (propName === "style") overrideProps[propName] = { 105 ...slotPropValue, 106 ...childPropValue 107 }; 108 else if (propName === "className") overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" "); 109 } 110 return { 111 ...slotProps, 112 ...overrideProps 113 }; 114} 115function getElementRef(element) { 116 let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get; 117 let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning; 118 if (mayWarn) return element.ref; 119 getter = Object.getOwnPropertyDescriptor(element, "ref")?.get; 120 mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning; 121 if (mayWarn) return element.props.ref; 122 return element.props.ref || element.ref; 123} 124function isSlottable(child) { 125 return import_react.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER; 126} 127function isLazyComponent(element) { 128 return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload); 129} 130function isPromiseLike(value) { 131 return typeof value === "object" && value !== null && "then" in value; 132} 133var import_react, __defProp, __name, Slot, SLOTTABLE_IDENTIFIER, Slottable, getSlottableElementFromSlottable, REACT_LAZY_TYPE, createSlotError, createSlottableError, use; 134function init_dist$1() { 135 return (init_dist$1 = __esmMin((() => { 136 import_react = /* @__PURE__ */ __toESM(require_react(), 1); 137 init_dist(); 138 __defProp = Object.defineProperty; 139 __name = (target, value) => __defProp(target, "name", { 140 value, 141 configurable: true 142 }); 143 __name(createSlot, "createSlot"); 144 Slot = /* @__PURE__ */ createSlot("Slot"); 145 SLOTTABLE_IDENTIFIER = Symbol.for("radix.slottable"); 146 __name(createSlottable, "createSlottable"); 147 Slottable = /* @__PURE__ */ createSlottable("Slottable"); 148 getSlottableElementFromSlottable = /* @__PURE__ */ __name((slottable, child) => { 149 if ("child" in slottable.props) { 150 const child2 = slottable.props.child; 151 if (!import_react.isValidElement(child2)) return null; 152 return import_react.cloneElement(child2, void 0, slottable.props.children(child2.props.children)); 153 } 154 return import_react.isValidElement(child) ? child : null; 155 }, "getSlottableElementFromSlottable"); 156 __name(mergeProps, "mergeProps"); 157 __name(getElementRef, "getElementRef"); 158 __name(isSlottable, "isSlottable"); 159 REACT_LAZY_TYPE = Symbol.for("react.lazy"); 160 __name(isLazyComponent, "isLazyComponent"); 161 __name(isPromiseLike, "isPromiseLike"); 162 createSlotError = /* @__PURE__ */ __name((ownerName) => { 163 return `${ownerName} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`; 164 }, "createSlotError"); 165 createSlottableError = /* @__PURE__ */ __name((ownerName) => { 166 return `${ownerName} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`; 167 }, "createSlottableError"); 168 use = import_react[" use ".trim().toString()]; 169 })))(); 170} 171//#endregion 172export { init_dist$1 as a, createSlottable as i, Slottable as n, init_dist as o, createSlot as r, useComposedRefs as s, Slot 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.