1import { a as __toESM } from "./rolldown-runtime-Cql5ZV07.js"; 2import { p as require_react } from "./vendor-charts-D81iZKCV.js"; 3import { d as useMatches, g as require_compiler_runtime, r as Link, t as require_jsx_runtime } from "./vendor-react-HZz3WA9p.js"; 4import { a as BreadcrumbPage, i as BreadcrumbList, n as BreadcrumbItem, o as BreadcrumbSeparator, r as BreadcrumbLink, t as Breadcrumb } from "./breadcrumb-DaQ4spt4.js"; 5const useAppMatches = () => { 6 return useMatches(); 7}; 8var import_compiler_runtime = /* @__PURE__ */ __toESM(require_compiler_runtime()); 9var import_react = /* @__PURE__ */ __toESM(require_react()); 10var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime()); 11const AppBreadcrumb = (t0) => { 12 const $ = (0, import_compiler_runtime.c)(18); 13 let lastTitle; 14 let props; 15 if ($[0] !== t0) { 16 ({lastTitle, ...props} = t0); 17 $[0] = t0; 18 $[1] = lastTitle; 19 $[2] = props; 20 } else { 21 lastTitle = $[1]; 22 props = $[2]; 23 } 24 const matches = useAppMatches(); 25 let T0; 26 let T1; 27 let t1; 28 let t2; 29 let t3; 30 if ($[3] !== lastTitle || $[4] !== matches || $[5] !== props) { 31 t3 = Symbol.for("react.early_return_sentinel"); 32 bb0: { 33 const crumbs = matches.filter(_temp).map(_temp2); 34 if (crumbs.length === 0) { 35 t3 = null; 36 break bb0; 37 } 38 T1 = Breadcrumb; 39 t2 = props; 40 T0 = BreadcrumbList; 41 t1 = crumbs.map((crumb, index) => { 42 const isLast = index === crumbs.length - 1; 43 return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(BreadcrumbItem, { children: isLast ? /* @__P
43URE__ */ (0, import_jsx_runtime.jsx)(BreadcrumbPage, { children: lastTitle ?? crumb.title }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BreadcrumbLink, { 44 asChild: true, 45 children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, { 46 to: crumb.pathname, 47 children: crumb.title 48 }) 49 }) }), !isLast && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BreadcrumbSeparator, {})] }, crumb.id); 50 }); 51 } 52 $[3] = lastTitle; 53 $[4] = matches; 54 $[5] = props; 55 $[6] = T0; 56 $[7] = T1; 57 $[8] = t1; 58 $[9] = t2; 59 $[10] = t3; 60 } else { 61 T0 = $[6]; 62 T1 = $[7]; 63 t1 = $[8]; 64 t2 = $[9]; 65 t3 = $[10]; 66 } 67 if (t3 !== Symbol.for("react.early_return_sentinel")) return t3; 68 let t4; 69 if ($[11] !== T0 || $[12] !== t1) { 70 t4 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(T0, { children: t1 }); 71 $[11] = T0; 72 $[12] = t1; 73 $[13] = t4; 74 } else t4 = $[13]; 75 let t5; 76 if ($[14] !== T1 || $[15] !== t2 || $[16] !== t4) { 77 t5 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(T1, { 78 ...t2, 79 children: t4 80 }); 81 $[14] = T1; 82 $[15] = t2; 83 $[16] = t4; 84 $[17] = t5; 85 } else t5 = $[17]; 86 return t5; 87}; 88function _temp(match) { 89 return Boolean(match.handle?.breadcrumb); 90} 91function _temp2(match_0) { 92 const breadcrumb = match_0.handle.breadcrumb; 93 const title = typeof breadcrumb === "function" ? breadcrumb(match_0) : breadcrumb; 94 return { 95 id: match_0.id, 96 title, 97 pathname: match_0.pathname 98 }; 99} 100export { AppBreadcrumb 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.