PageSourceSearch

https://ironfish.network/_next/static/chunks/370-a99268773a1a16be.js

js ironfish.network collected 2026-10-03 19:03:31 UTC 6,983 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[370],{4052:function(e,n,t){t.d(n,{U:function(){return _}});var l=t(5893),r=t(7335),s=t(3100),i=t(8138),o=t(3863),c=t(3775),a=t(1686);function u(e){let{as:n,...t}=e,r="button"===n;return(0,l.jsxs)(o.B,{children:[(0,l.jsx)(c.Z,{pointerEvents:"none",children:(0,l.jsx)(i.w75,{})}),(0,l.jsx)(a.I,{role:r?"button":void 0,readOnly:r,type:r?void 0:"text",fontSize:"sm",borderColor:"black",borderRadius:4,_hover:{borderColor:"black",outline:"none"},_focusVisible:{borderColor:"black",outline:"none"},...t})]})}var h=t(2752),d=t(1963),x=t(5030),p=t(3793),g=t(4641),f=t(295),m=t(8911),j=t(7633),b=t(7294);function v(e){let{content:n,highlights:t,skipToHighlight:r,...s}=e,i=(0,b.useMemo)(()=>{let e=[],s=0;return t.forEach(t=>{let[i,o]=t,c=i+o;if(i>s){let t=n.substring(s,i),o=r&&0===s&&t.length>50,c=o?"...":n.substring(s,i);e.push((0,l.jsx)(m.x,{as:"span",children:c},s))}e.push((0,l.jsx)(m.x,{as:"span",backgroundColor:"#FFEC1F",children:n.substring(i,c)},i)),s=c}),s<n.length&&e.push((0,l.jsx)("span",{children:n.substring(s)},s)),e},[n,t,r]);return(0,l.jsx)(m.x,{as:"span",noOfLines:2,...s,children:i})}var C=t(5434),k=t(5678);function F(e){let{heading:n,children:t}=e;return(0,l.jsxs)(s.xu,{children:[(0,l.jsx)(m.x,{fontWeight:"bold",mb:3,children:n}),(0,l.jsx)(s.xu,{children:t})]})}F.Item=function(e){let{children:n,icon:t,onClick:r}=e,i="12px";return(0,l.jsxs)(g.U,{gap:3,mx:"-".concat(i),px:i,py:2,borderRadius:4,onClick:r,cursor:r?"pointer":void 0,_focus:{backgroundColor:"#F6F6F6",outline:0},_hover:{backgroundColor:"#F6F6F6"},as:r?"button":"div",textAlign:"left",w:"calc(100% + ".concat(i," * 2)"),children:[(0,l.jsx)(s.xu,{fontSize:"1.4rem",children:t}),(0,l.jsx)(s.xu,{minW:0,children:n})]})};var y=t(1163);let w={documentation:{endpoint:"/api/search/documentation",placeholder:"Search the docs"},blog:{endpoint:"/api/search/blog",placeholder:"Search the blog"}};function S(e){let{domain:n,suggestions:t,isOpen:r,onClose:i}=e,o=(0,y.useRouter)(),[c,a]=(0,b.useState)(""),S=(0,k.Nr)(c.toLowerCase(),1e3),{data:_,isLoading:I}=(0,j.a)({queryKey:["SearchField",n,S],queryFn:()=>(function(e,n){let t=w[e].endpoint;return fetch("".concat(t,"?q=").concat(encodeURIComponent(n))).then(e=>e.json())})(n,c),enabled:S.length>0}),U=(0,b.useCallback)(()=>{i(),a("")},[i]),W=S.length>0,R=W&&!I&&(null==_?void 0:_.length)>0,q=W&&!I&&(null==_?void 0:_.length)===0,z=!!t&&(!W||q);return(0,l.jsxs)(h.u_,{isOpen:r,onClose:U,children:[(0,l.jsx)(d.Z,{}),(0,l.jsx)(x.h,{w:"calc(100% - 1rem)",maxW:"650px",children:(0,l.jsxs)(p.f,{px:6,pt:4,pb:W||z?6:4,children:[(0,l.jsxs)(g.U,{gap:6,mb:W||z?8:0,children:[(0,l.jsx)(u,{value:c,onChange:e=>a(e.target.value)}),(0,l.jsx)(s.xu,{as:"button","aria-label":"Close modal",cursor:"pointer",onClick:U,children:(0,l.jsx)(C.FU5,{size:"1.8rem",color:"#7F7F7F"})})]}),W&&(0,l.jsxs)(F,{heading:"Search Results",children:[I&&(0,l.jsx)(g.U,{justifyContent:"center",children:(0,l.jsx)(f.$,{thickness:"4px",speed:"0.65s",color:"gray.300",size:"xl"})}),R&&(null==_?void 0:_.map((e,n)=>{var t,r;return(0,l.jsxs)(F.Item,{icon:(0,l.jsx)(C.GrM,{}),onClick:()=>{U(),o.push(e.slug)},children:[(0,l.jsx)(v,{content:e.title,highlights:null!==(t=e.highlights.title)&&void 0!==t?t:[],fontWeight:"bold",mb:1}),(0,l.jsx)(v,{skipToHighlight:!0,content:e.body,highlights:null!==(r=e.highlights.body)&&void 0!==r?r:[]})]},n)})),q&&(0,l.jsx)(m.x,{textAlign:"center",py:4,children:"No results found"})]}),z&&(0,l.jsx)(F,{heading:"Suggested",children:t.map((e,n)=>(0,l.jsx)(F.Item,{icon:(0,l.jsx)(C.GrM,{}),onClick:()=>{U(),o.push(e.slug)},children:(0,l.jsx)(m.x,{fontWeight:"bold",children:e.heading})},n))})]})})]})}function _(e){let{domain:n,suggestions:t,...i}=e,{isOpen:o,onOpen:c,onClose:a}=(0,r.q)();return(0,l.jsxs)(s.xu,{...i,children:[(0,l.jsx)(u,{as:"button",onClick:c,placeholder:w[n].placeholder,_placeholder:{color:"#7F7F7F"}}),(0,l.jsx)(S,{domain:n,suggestions:t,isOpen:o,onClose:a})]})}},7370:function(e,n,t){t.d(n,{L:function(){return g}});var l=t(5893),r=t(4052),s=t(5366),i=t(7405),o=t(9008),c=t.n(o),a=t(1664),u=t.n(a),h=t(1163),d=t(7294),x=t(5678);let p=[{heading:"Installing the CLI",slug:"/developers/documentation/install-npm"},{heading:"Download the Desktop App",slug:"/use/node-app"},{heading:"Mining",slug:"/use/get-started/mining"}];function g(e){let{frontMatter:n,markdown:t,sidebarItems:o,sidebarWidth:a="250px",githubPath:u,seoTitlePrefix:h=""}=e,x=(0,s.Sx0)({base:!1,xl:!0}),g=(0,d.useRef)(null),m=(0,d.useRef)(null),[j,b]=(0,d.useState)(null);return(0,d.useEffect)(()=>
1{if(!g.current||m.current===t.compiledSource)return;m.current=t.compiledSource;let e=Array.from(g.current.querySelectorAll("h1[id], h2[id], h3[id], h4[id], h5[id], h6[id]")).map(e=>({label:e.innerText,href:"#".concat((0,s.V7H)(e))}));b(e)},[t]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c(),{children:(0,l.jsx)("title",{children:h+(n["seo-title"]||n.title)})}),(0,l.jsxs)(s.rjZ,{templateColumns:{base:"100%",md:"".concat(a," 1fr"),xl:"".concat(a," auto ").concat(a)},flexGrow:{base:0,md:1},children:[(0,l.jsx)(s.w32,{items:o}),(0,l.jsxs)(s.xuv,{as:"article",maxW:"container.lg",py:8,pb:40,px:8,mx:"auto",w:"100%",overflow:"auto",ref:g,children:[(0,l.jsx)(s.Ugi,{justifyContent:"flex-end",children:(0,l.jsx)(s.xuv,{w:"100%",maxW:{base:"100%",sm:"250px"},children:(0,l.jsx)(r.U,{domain:"documentation",suggestions:p})})}),(0,l.jsx)(s.X6q,{as:"h1",size:"2xl",mt:8,mb:16,fontWeight:"medium",children:n.title}),(0,l.jsx)(s.Wtb,{markdown:t}),(0,l.jsx)(f,{sidebarItems:o})]}),x&&j&&j.length>0&&(0,l.jsxs)(s.xuv,{py:"96px",pr:14,maxH:"100vh",position:"sticky",overflow:"auto",top:s.nIh,children:[u&&(0,l.jsx)(s.xuv,{textAlign:"left",mb:5,children:(0,l.jsx)(s.xvT,{as:"a",color:"#7F7F7F",_hover:{textDecoration:"underline"},href:"https://github.com/iron-fish/website/tree/master/".concat(u),target:"_blank",rel:"noreferrer",children:"Edit Page on Github"})}),(0,l.jsx)(s.xvT,{textTransform:"uppercase",mb:5,children:"On This Page"}),(0,l.jsx)(s.gCW,{alignItems:"flex-start",gap:0,children:j.map((e,n)=>(0,l.jsx)(s.xvT,{as:"a",href:e.href,color:"#7f7f7f",onClick:n=>{n.preventDefault();let t=document.querySelector(e.href);t&&(0,i.AU)(t)},children:e.label},n))})]})]})]})}function f(e){let{sidebarItems:n}=e,t=(0,h.useRouter)(),r=(0,x.O_)(),i=(0,d.useMemo)(()=>(function e(n){return n.flatMap(n=>"items"in n?e(n.items):n)})(n),[n]),{prevHref:o,nextHref:c}=(0,d.useMemo)(()=>{var e,n,l,r;let s=i.findIndex(e=>e.href===t.asPath);return{prevHref:null!==(l=null===(e=i[s-1])||void 0===e?void 0:e.href)&&void 0!==l?l:null,nextHref:null!==(r=null===(n=i[s+1])||void 0===n?void 0:n.href)&&void 0!==r?r:null}},[i,t.asPath]);return r?(0,l.jsxs)(s.Ugi,{justifyContent:"space-between",mt:20,children:[(0,l.jsx)(s.b4Z,{size:"sm",colorScheme:"white",arrowStyle:"left",...o?{as:u(),href:o}:{isDisabled:!0},children:"Prev"}),(0,l.jsx)(s.b4Z,{size:"sm",colorScheme:"white",...c?{as:u(),href:c}:{isDisabled:!0},children:"Next"})]}):null}}}]);

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.