PageSourceSearch

https://www.fancycomponents.dev/_next/static/chunks/de28e51c2137b496.js

js fancycomponents.dev collected 2026-10-04 00:06:38 UTC 10,605 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,32303,e=>{e.v({plain:{color:"#FFFFFF",backgroundColor:"#151515"},styles:[{types:["comment"],style:{color:"#757575",fontStyle:"italic"}},{types:["keyword","property","property-access","attr-name"],style:{color:"#77b7d7"}},{types:["tag"],style:{color:"#dfab5c"}},{types:["punctuation","symbol","dom"],style:{color:"#ffffff"}},{types:["definition","function"],style:{color:"#86d9ca"}},{types:["string","char","attr-value"],style:{color:"#977cdc"}},{types:["static","number"],style:{color:"#ff6658"}}]})},6236,e=>{"use strict";var t=e.i(71645),n="undefined"==typeof window?t.default.useEffect:t.default.useLayoutEffect,r=0,a=()=>++r,i=!1;function o(){let[e,r]=t.default.useState(i?a:void 0);return n(()=>{void 0===e&&r(a()),i=!0},[]),void 0===e?e:`rwb-${e.toString(32)}`}var s="__wrap_b",l="__wrap_n",c="__wrap_o",d=(e,t,n)=>{let r=null==(n=n||document.querySelector(`[data-br="${e}"]`))?void 0:n.parentElement;if(!r)return;let a=e=>n.style.maxWidth=e+"px";n.style.maxWidth="";let i=r.clientWidth,o=r.clientHeight,s=i/2-.25,l=i+.5,c;if(i){for(a(s),s=Math.max(n.scrollWidth,s);s+1<l;)a(c=Math.round((s+l)/2)),r.clientHeight===o?l=c:s=c;a(l*t+i*(1-t))}n.__wrap_o||"undefined"!=typeof ResizeObserver&&(n.__wrap_o=new ResizeObserver(()=>{self.__wrap_b(0,+n.dataset.brr,n)})).observe(r)},u=d.toString(),f=(e,n,r="")=>(r&&(r=`self.${l}!=1&&${r}`),t.default.createElement("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:(e?"":`self.${l}=self.${l}||(self.CSS&&CSS.supports("text-wrap","balance")?1:2);self.${s}=${u};`)+r},nonce:n})),p=t.default.createContext({preferNative:!0,hasProvider:!1}),h=({preferNative:e=!0,nonce:n,children:r})=>{let a=t.default.useMemo(()=>({preferNative:e,hasProvider:!0}),[e]);return t.default.createElement(p.Provider,{value:a},f(!1,n),r)},m=t.default.forwardRef(({ratio:e=1,preferNative:r,nonce:a,children:i,as:u,...h},m)=>{let g=t.default.useMemo(()=>"useId"in t.default?t.default.useId:o,[])(),x=t.default.useRef(),v=t.default.useContext(p),y=null!=r?r:v.preferNative;return t.default.useImperativeHandle(m,()=>x.current,[]),n(()=>{y&&1===self[l]||x.current&&(self[s]=d)(0,e,x.current)},[i,y,e]),n(()=>{if(!(y&&1===self[l]))return()=>{if(!x.current)return;let e=x.current[c];e&&(e.disconnect(),delete x.current[c])}},[y]),t.default.createElement(t.default.Fragment,null,t.default.createElement(u||"span",{...h,"data-br":g,"data-brr":e,ref:x,style:{display:"inline-block",verticalAlign:"top",textDecoration:"inherit",textWrap:y?"balance":"initial"},suppressHydrationWarning:!0},i),f(v.hasProvider,a,`self.${s}("${g}",${e})`))});e.s(["Balancer",()=>m,"Provider",()=>h,"default",()=>m])},40080,e=>{"use strict";var t=e.i(43476),n=e.i(22016),r=e.i(46932),a=e.i(78263);let i=r.motion.create(n.default);function o({doc:e}){let n=s(e);return(0,t.jsxs)("div",{className:`flex flex-row items-center ${n.prev&&n.next?"justify-between":n.next?"justify-end":"justify-start"} text`,children:[n?.prev?.href&&(0,t.jsxs)(i,{href:n.prev.href,className:"items-center flex flex-row justify-center bg-muted rounded-xl pl-2 pr-6 py-2 hover:bg-muted/60 duration-300 ease-out transition-[colors,background-color] focus-ring",whileHover:"hover",whileTap:{scale:.97},children:[(0,t.jsx)(r.motion.p,{className:"font-serif sm:mr-2 h-7 w-7 rotate-180",variants:{hover:{x:5,transition:{duration:.3,ease:"easeOut"}}},children:"→"}),(0,t.jsx)("span",{className:"truncate hidden sm:block",children:n.prev.title})]}),n?.next?.href&&(0,t.jsxs)(i,{href:n.next.href,className:"flex flex-row hover:bg-muted/60 duration-300 ease-out transition-[colors,background-color] items-center justify-center rounded-xl pr-2 pl-6 py-2 bg-muted focus-ring",whileHover:"hover",whileTap:{scale:.97},children:[(0,t.jsx)("span",{className:"truncate hidden sm:block",children:n.next.title}),(0,t.jsx)(r.motion.span,{className:"font-serif h-7 w-7 sm:ml-2",variants:{hover:{x:5,transition:{duration:.3,ease:"easeOut"}}},children:"→"})]})]})}function s(e){let t=l(a.docsConfig),n=t.findIndex(t=>e.slug===t.href?.replace(/^\/docs\//,""));return{prev:n>0?t[n-1]:null,next:n<t.length-1?t[n+1]:null}}function l(e){return e.reduce((e,t)=>
1e.concat(t.items?.length?l(t.items):t),[]).filter(e=>!e?.disabled)}e.s(["DocsPager",()=>o,"flatten",()=>l,"getPagerForDoc",()=>s])},89749,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(75157),a=e.i(46932);function i({toc:e}){let r=function(e){let[t,r]=n.useState(null);return n.useEffect(()=>{let t=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&r(e.target.id)})},{rootMargin:"0% 0% -80% 0%"});return e?.forEach(e=>{let n=document.getElementById(e);n&&t.observe(n)}),()=>{e?.forEach(e=>{let n=document.getElementById(e);n&&t.unobserve(n)})}},[e]),t}(n.useMemo(()=>e.items?e.items.flatMap(e=>[e.url,e?.items?.map(e=>e.url)]).flat().filter(Boolean).map(e=>e?.split("#")[1]):[],[e])),a=function(){let[e,t]=n.useState(!1);return n.useEffect(()=>{t(!0)},[]),e}();return e?.items&&a?(0,t.jsxs)("div",{className:"space-y-2 p-6",children:[(0,t.jsx)("p",{className:"font-medium",children:"On This Page"}),(0,t.jsx)(o,{tree:e,activeItem:r})]}):null}function o({tree:e,level:n=1,activeItem:i}){return e?.items?.length&&n<3?(0,t.jsx)("ul",{className:(0,r.cn)("m-0 list-none",{"pl-3":1!==n}),children:e.items.map((e,s)=>(0,t.jsxs)("li",{className:(0,r.cn)("mt-0 pt-1"),children:[(0,t.jsx)(a.motion.a,{href:e.url,onClick:t=>{t.preventDefault(),document.querySelector(e.url)?.scrollIntoView({behavior:"smooth"})},initial:{fontVariationSettings:"'wght' 400",color:e.url===`#${i}`?"var(--foreground)":"hsl(var(--muted-foreground))"},whileHover:{fontVariationSettings:"'wght' 500",color:"var(--foreground)",transition:{duration:.3,ease:"easeOut"}},animate:{fontVariationSettings:e.url===`#${i}`?"'wght' 500":"'wght' 400",color:e.url===`#${i}`?"var(--foreground)":"hsl(var(--muted-foreground))",transition:{duration:.3,ease:"easeOut"}},className:(0,r.cn)("inline-block no-underline duration-300 transition-[color] ease-out focus-outline",e.url===`#${i}`?"text-foreground":"text-muted-foreground"),children:e.title}),e.items?.length?(0,t.jsx)(o,{tree:e,level:n+1,activeItem:i}):null]},s))}):null}e.s(["DashboardTableOfContents",()=>i],89749)}
1,58319,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(74886);let a=(0,e.i(75254).default)("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);var i=e.i(43531),o=e.i(91124),o=o,s=e.i(19455),l=e.i(55146),c=e.i(8164),d=e.i(46932);let u={idle:{opacity:1,scale:1,transition:{duration:.2,ease:"easeOut"}},copying:{opacity:0,scale:.8,transition:{duration:.2,ease:"easeOut"}},copied:{opacity:0,scale:.8,transition:{duration:.2,ease:"easeOut"}}},f={idle:{opacity:0,scale:.8,transition:{duration:.2,ease:"easeOut"}},copying:{opacity:0,scale:.8,transition:{duration:.2,ease:"easeOut"}},copied:{opacity:1,scale:1,transition:{duration:.2,ease:"easeOut"}}},p={idle:{pathLength:0,opacity:0,transition:{duration:.2,ease:"easeOut"}},copying:{pathLength:0,opacity:1,transition:{duration:.2,ease:"easeOut"}},copied:{pathLength:1,opacity:1,transition:{duration:.3,ease:"easeOut"}}};function h({title:e,content:h,currentUrl:m}){let[g,x]=(0,n.useState)("idle"),v=async e=>{try{await navigator.clipboard.writeText(e)}catch(e){throw console.error("Failed to copy to clipboard:",e),e}},y=async()=>{if("idle"===g){x("copying");try{let e=new URL(m),t=`${e.pathname}.md`,n=await fetch(t);if(!n.ok)throw Error(`Failed to fetch markdown: ${n.statusText}`);let r=await n.text();await v(r),setTimeout(()=>{x("copied")},100),setTimeout(()=>{x("idle")},2e3)}catch(e){console.error("Failed to copy markdown:",e),x("idle")}}};return(0,t.jsxs)(l.DropdownMenu,{children:[(0,t.jsx)(l.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)(d.motion.button,{className:"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm cursor-pointer font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-blue disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 border border-input bg-background hover:bg-accent hover:text-accent-foreground h-8 w-8",transition:{type:"spring",stiffness:400,damping:30},children:(0,t.jsxs)("div",{className:"relative w-4 h-4",children:[(0,t.jsx)(d.motion.div,{className:"absolute inset-0 flex items-center justify-center",animate:g,variants:u,children:(0,t.jsx)(o.default,{className:"w-4 h-4"})}),(0,t.jsx)(d.motion.div,{className:"absolute inset-0 flex items-center justify-center",animate:g,variants:f,children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)(d.motion.path,{d:"M4 12 9 17L20 6",animate:g,variants:p})})})]})})}),(0,t.jsxs)(l.DropdownMenuContent,{align:"end",children:[(0,t.jsx)(l.DropdownMenuItem,{children:(0,t.jsxs)(s.Button,{variant:"ghost",className:"justify-start text-left px-0 h-6 gap-2 flex w-full border-none",onClick:y,children:["copied"===g?(0,t.jsx)(i.Check,{className:"h-4 w-4"}):(0,t.jsx)(r.Copy,{className:"h-4 w-4"}),"Copy page as Markdown for LLMs"]})}),(0,t.jsx)(l.DropdownMenuItem,{children:(0,t.jsxs)(s.Button,{variant:"ghost",className:"justify-start text-left px-0 h-6 gap-2 flex w-full border-none",onClick:()=>{let e=`${m}.md`;window.open(e,"_blank")},children:[(0,t.jsx)(a,{className:"h-4 w-4"}),"View as Markdown"]})}),(0,t.jsx)(l.DropdownMenuItem,{children:(0,t.jsxs)(s.Button,{variant:"ghost",className:"justify-start text-left px-0 h-6 gap-2 flex w-full border-none",onClick:()=>{let e=`Please help me understand this documentation: ${m}.md`,t=`https://chat.openai.com/?model=gpt-4&q=${encodeURIComponent(e)}`;window.open(t,"_blank")},children:[(0,t.jsx)(c.Icons.openai,{className:"h-4 w-4"}),"Open in ChatGPT"]})}),(0,t.jsx)(l.DropdownMenuItem,{children:(0,t.jsxs)(s.Button,{variant:"ghost",className:"justify-start text-left px-0 h-6 gap-2 flex w-full border-none",onClick:()=>{let e=`Please help me understand this documentation: ${m}.md`,t=`https://claude.ai/new?q=${encodeURIComponent(e)}`;window.open(t,"_blank")},children:[(0,t.jsx)(c.Icons.anthropic,{className:"h-4 w-4"}),"Open in Claude"]})})]})]})}e.s(["CopyPageMenu",()=>h],58319)}]);

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.