1import { a as __toESM } from "./rolldown-runtime-Cql5ZV07.js"; 2import { g as require_compiler_runtime, t as require_jsx_runtime } from "./vendor-react-HZz3WA9p.js"; 3import { a as cn, i as Spinner } from "./button-BWyXpawe.js"; 4var import_compiler_runtime = /* @__PURE__ */ __toESM(require_compiler_runtime()); 5var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime()); 6const Spin = (t0) => { 7 const $ = (0, import_compiler_runtime.c)(23); 8 const { spinning: t1, tip, children, className, wrapperClassName } = t0; 9 const spinning = t1 === void 0 ? false : t1; 10 let t2; 11 if ($[0] !== className) { 12 t2 = cn("inline-flex items-center justify-center", className); 13 $[0] = className; 14 $[1] = t2; 15 } else t2 = $[1]; 16 let t3; 17 if ($[2] === Symbol.for("react.memo_cache_sentinel")) { 18 t3 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Spinner, { className: "text-primary" }); 19 $[2] = t3; 20 } else t3 = $[2]; 21 const t4 = tip ?? "Loading..."; 22 let t5; 23 if ($[3] !== t4) { 24 t5 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { 25 className: "ml-2 text-sm font-medium text-foreground", 26 children: t4 27 }); 28 $[3] = t4; 29 $[4] = t5; 30 } else t5 = $[4]; 31 let t6; 32 if ($[5] !== t2 || $[6] !== t5) { 33 t6 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { 34 className: t2, 35 children: [t3, t5] 36 }); 37 $[5] = t2; 38 $[6] = t5; 39 $[7] = t6; 40 } else t6 = $[7]; 41 const spinner = t6; 42 if (!children) return spinner; 43 const t7 = spinning ? "spinning" : ""; 44 let t8; 45 if ($[8] !== wrapperClassName) { 46 t8 = cn("relative h-full w-full", wrapperClassName); 47 $[8] = wrapperClassName; 48 $[9] = t8; 49 } else t8 = $[9]; 50 let t9; 51 if ($[10] !== spinner || $[11] !== spinning) { 52 t9 = spinning && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { 53 "data-slot": "spinner", 54 className: cn("absolute inset-0 z-50 flex flex-col items-center justify-center bg-background/90"), 55 children: spinner 56 }); 57 $[10] = spinner; 58 $[11] = spinning; 59 $[12] = t9; 60 } else t9 = $[12]; 61 const t10 = spinning && "pointer-events-none"; 62 let t11; 63 if ($[13] !== t10) { 64 t11 = cn("h-full w-full", t10); 65 $[13] = t10; 66 $[14] = t11; 67 } else t11 = $[14]; 68 let t12; 69 if ($[15] !== children || $[16] !== t11) { 70 t12 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { 71 "data-slot": "spin-inset", 72 className: t11, 73 children 74 }); 75 $[15] = children; 76 $[16] = t11; 77 $[17] = t12; 78 } else t12 = $[17]; 79 let t13; 80 if ($[18] !== t12 || $[19] !== t7 || $[20] !== t8 || $[21] !== t9) { 81 t13 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { 82 "data-slot": "spin-container", 83 "data-state": t7, 84 className: t8, 85 children: [t9, t12] 86 }); 87 $[18] = t12; 88 $[19] = t7; 89 $[20] = t8; 90 $[21] = t9; 91 $[22] = t13; 92 } else t13 = $[22]; 93 return t13; 94}; 95export { Spin 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.