PageSourceSearch

https://ironfish.network/_next/static/chunks/pages/learn/blog-61750d23ec83e87d.js

js ironfish.network collected 2026-10-03 19:03:51 UTC 8,940 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[907],{8831:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/learn/blog",function(){return n(1293)}])},9519:function(e,t,n){"use strict";n.d(t,{F:function(){return h}});var l=n(5893),r=n(1664),i=n.n(r),s=n(5366),o=n(5675),a=n.n(o);function h(e){let{href:t,img:n,date:r,title:o,headingLevel:h}=e,c=t.startsWith("/");return(0,l.jsxs)(s.J3d,{shadowColor:"white",borderWidth:"2px",borderRadius:"4px",overflow:"hidden",children:[(0,l.jsx)(s.oM5,{ratio:465/309,borderBottom:"1.5px solid black",children:(0,l.jsx)(a(),{alt:"",src:n,fill:!0})}),(0,l.jsxs)(s.xuv,{p:8,pb:16,children:[(0,l.jsx)(s.xvT,{textStyle:"sm",mb:4,children:r}),(0,l.jsx)(s.xvT,{as:h,textStyle:"h4",marginBottom:4,minHeight:"2.5em",children:o}),(0,l.jsx)(s.zxk,{as:c?i():"a",href:t,size:"sm",bg:"white",_hover:{bg:"gray.200"},...!c&&{target:"_blank",rel:"noreferrer"},children:"Read Now"})]})]})}},4052:function(e,t,n){"use strict";n.d(t,{U:function(){return S}});var l=n(5893),r=n(7335),i=n(3100),s=n(8138),o=n(3863),a=n(3775),h=n(1686);function c(e){let{as:t,...n}=e,r="button"===t;return(0,l.jsxs)(o.B,{children:[(0,l.jsx)(a.Z,{pointerEvents:"none",children:(0,l.jsx)(s.w75,{})}),(0,l.jsx)(h.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"},...n})]})}var d=n(2752),u=n(1963),x=n(5030),g=n(3793),b=n(4641),p=n(295),m=n(8911),j=n(7633),f=n(7294);function v(e){let{content:t,highlights:n,skipToHighlight:r,...i}=e,s=(0,f.useMemo)(()=>{let e=[],i=0;return n.forEach(n=>{let[s,o]=n,a=s+o;if(s>i){let n=t.substring(i,s),o=r&&0===i&&n.length>50,a=o?"...":t.substring(i,s);e.push((0,l.jsx)(m.x,{as:"span",children:a},i))}e.push((0,l.jsx)(m.x,{as:"span",backgroundColor:"#FFEC1F",children:t.substring(s,a)},s)),i=a}),i<t.length&&e.push((0,l.jsx)("span",{children:t.substring(i)},i)),e},[t,n,r]);return(0,l.jsx)(m.x,{as:"span",noOfLines:2,...i,children:s})}var y=n(5434),C=n(5678);function w(e){let{heading:t,children:n}=e;return(0,l.jsxs)(i.xu,{children:[(0,l.jsx)(m.x,{fontWeight:"bold",mb:3,children:t}),(0,l.jsx)(i.xu,{children:n})]})}w.Item=function(e){let{children:t,icon:n,onClick:r}=e,s="12px";return(0,l.jsxs)(b.U,{gap:3,mx:"-".concat(s),px:s,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(s," * 2)"),children:[(0,l.jsx)(i.xu,{fontSize:"1.4rem",children:n}),(0,l.jsx)(i.xu,{minW:0,children:t})]})};var F=n(1163);let k={documentation:{endpoint:"/api/search/documentation",placeholder:"Search the docs"},blog:{endpoint:"/api/search/blog",placeholder:"Search the blog"}};function _(e){let{domain:t,suggestions:n,isOpen:r,onClose:s}=e,o=(0,F.useRouter)(),[a,h]=(0,f.useState)(""),_=(0,C.Nr)(a.toLowerCase(),1e3),{data:S,isLoading:W}=(0,j.a)({queryKey:["SearchField",t,_],queryFn:()=>(function(e,t){let n=k[e].endpoint;return fetch("".concat(n,"?q=").concat(encodeURIComponent(t))).then(e=>e.json())})(t,a),enabled:_.length>0}),I=(0,f.useCallback)(()=>{s(),h("")},[s]),T=_.length>0,E=T&&!W&&(null==S?void 0:S.length)>0,N=T&&!W&&(null==S?void 0:S.length)===0,R=!!n&&(!T||N);return(0,l.jsxs)(d.u_,{isOpen:r,onClose:I,children:[(0,l.jsx)(u.Z,{}),(0,l.jsx)(x.h,{w:"calc(100% - 1rem)",maxW:"650px",children:(0,l.jsxs)(g.f,{px:6,pt:4,pb:T||R?6:4,children:[(0,l.jsxs)(b.U,{gap:6,mb:T||R?8:0,children:[(0,l.jsx)(c,{value:a,onChange:e=>h(e.target.value)}),(0,l.jsx)(i.xu,{as:"button","aria-label":"Close modal",cursor:"pointer",onClick:I,children:(0,l.jsx)(y.FU5,{size:"1.8rem",color:"#7F7F7F"})})]}),T&&(0,l.jsxs)(w,{heading:"Search Results",children:[W&&(0,l.jsx)(b.U,{justifyContent:"center",children:(0,l.jsx)(p.$,{thickness:"4px",speed:"0.65s",color:"gray.300",size:"xl"})}),E&&(null==S?void 0:S.map((e,t)=>{var n,r;return(0,l.jsxs)(w.Item,{icon:(0,l.jsx)(y.GrM,{}),onClick:()=>{I(),o.push(e.slug)},children:[(0,l.jsx)(v,{content:e.title,highlights:null!==(n=e.highlights.title)&&void 0!==n?n:[],fontWeight:"bold",mb:1}
1),(0,l.jsx)(v,{skipToHighlight:!0,content:e.body,highlights:null!==(r=e.highlights.body)&&void 0!==r?r:[]})]},t)})),N&&(0,l.jsx)(m.x,{textAlign:"center",py:4,children:"No results found"})]}),R&&(0,l.jsx)(w,{heading:"Suggested",children:n.map((e,t)=>(0,l.jsx)(w.Item,{icon:(0,l.jsx)(y.GrM,{}),onClick:()=>{I(),o.push(e.slug)},children:(0,l.jsx)(m.x,{fontWeight:"bold",children:e.heading})},t))})]})})]})}function S(e){let{domain:t,suggestions:n,...s}=e,{isOpen:o,onOpen:a,onClose:h}=(0,r.q)();return(0,l.jsxs)(i.xu,{...s,children:[(0,l.jsx)(c,{as:"button",onClick:a,placeholder:k[t].placeholder,_placeholder:{color:"#7F7F7F"}}),(0,l.jsx)(_,{domain:t,suggestions:n,isOpen:o,onClose:h})]})}},1293:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return v},default:function(){return y}});var l=n(5893),r=n(9008),i=n.n(r),s=n(5366),o=n(7294),a=n(1163),h=n(9519);let c={all:{label:"All",value:"all"},media:{label:"Media",value:"media"},"community-highlight":{label:"Community Spotlights",value:"community-highlight"},"ecosystem-spotlight":{label:"Ecosystem Spotlights",value:"ecosystem-spotlight"},"product-highlight":{label:"Product Highlights",value:"product-highlight"}},d=Object.values(c);function u(e){let{blogItems:t}=e,{query:n,replace:r}=(0,a.useRouter)(),[i,u]=(0,o.useState)(1),{options:x,handleFilterChange:g}=(0,s.xQm)(d),b=6*i,p=(0,o.useMemo)(()=>n.category&&"string"==typeof n.category&&n.category in c?c[n.category]:d[0],[n.category]),m=(0,o.useMemo)(()=>t.filter(e=>{var t;return"all"===p.value||(null===(t=e.tags)||void 0===t?void 0:t.includes(p.value))}),[t,p.value]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s.wn$,{options:x,selectedOption:p,onChange:e=>{g(e),u(1),r({query:{...n,category:e.value}},void 0,{shallow:!0})},mb:16}),(0,l.jsx)(s.rjZ,{templateColumns:{base:"100%",lg:"repeat(2, 1fr)",xl:"repeat(3, 1fr)"},gap:6,children:m.slice(0,b).map(e=>{var t;let n=null!==(t=e.image)&&void 0!==t?t:"/images/blog/thumbnail-default.png";return e.href.startsWith("/"),(0,l.jsx)(s.P4e,{display:"flex",children:(0,l.jsx)(h.F,{img:n,href:e.href,date:e.date,title:e.title,headingLevel:"h2"})},e.href)})}),m.length>b&&(0,l.jsx)(s.kCb,{justifyContent:"center",mt:16,children:(0,l.jsx)(s.b4Z,{colorScheme:"white",size:"sm",onClick:()=>u(e=>e+1),children:"Load More"})})]})}var x=n(4052),g=n(1664),b=n.n(g),p=n(5675),m=n.n(p);function j(e){let{image:t,title:n,href:r}=e;return(0,l.jsx)(s.xuv,{bg:"purple.500",borderBottom:"1.5px solid black",py:{base:8,md:16},px:{base:6,md:12},mb:{base:8,md:"150px"},children:(0,l.jsx)(s.W20,{w:"100%",maxW:"container.lg",children:(0,l.jsxs)(s.kCb,{direction:{base:"column",lg:"row"},alignItems:{base:"stretch",lg:"center"},children:[(0,l.jsx)(s.xuv,{mb:{base:8,lg:0},w:{base:"100%",lg:"50%"},children:(0,l.jsx)(s.J3d,{shadowColor:"transparent",overflow:"hidden",borderWidth:"2px",borderRadius:"4px",children:(0,l.jsx)(s.oM5,{ratio:465/309,children:t&&(0,l.jsx)(m(),{alt:"",src:t,fill:!0})})})}),(0,l.jsxs)(s.kCb,{direction:"column",alignItems:"flex-start",justifyContent:"center",px:{base:0,sm:8,lg:16},w:{base:"100%",lg:"50%"},children:[(0,l.jsx)(s.xvT,{textStyle:"h4",textTransform:"uppercase",mb:4,children:"Featured Blog"}),(0,l.jsx)(s.xvT,{as:"h3",textStyle:"h3",marginBottom:4,minHeight:"2.5em",children:n}),(0,l.jsx)(s.zxk,{as:b(),href:r,size:"sm",bg:"white",_hover:{bg:"gray.200"},children:"Read Now"})]})]})})})}let f=[{heading:"Web3: Our Vision for the Future of the Internet",slug:"/learn/blog/2023-04-24-web3-our-vision"},{heading:"A Clear Use Case: Digital Transactions",slug:"/learn/blog/2023-04-10-digital-transactions"},{heading:"The Story Behind the 'Iron Fish' Name",slug:"/learn/blog/2021-03-02-why-iron-fish"}];var v=!0;function y(e){let{blogItems:t}=e,n=t.find(e=>e.href.startsWith("/")),r=t.filter(e=>e.href!==(null==n?void 0:n.href));if(!n||!r)throw Error("Unable to find blogs");return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(i(),{children:[(0,l.jsx)("title",{children:"Stay up to Date with Iron Fish | Iron Fish Blog"}),(0,l.jsx)("link",{href:"/learn/blog/feed.rss",type:"application/rss+xml",rel:"alternate",title:"Iron Fish Blog RSS Feed"}),(0,l.jsx)("link",{href:"/learn/blog/feed.atom",type:"application/atom+xml",rel:"alternate",title:"Iron Fish Blog Atom Feed"})]}),(0,l.jsxs)(s.xuv,{mb:"150px",children:[(0,l.jsx)(j,{image:n.image,title:n.title,href:n.href}),(0,l.jsx)(s.W20,{w:"100%",maxW:"container.2xl",px:{base:6,lg:10,xl:16},children:(0,l.jsxs)(s.kCb,{direction:"column",gap:8,alignItems:"center",children:[(0,l.jsx)(s.xvT,{as:"h3",textStyle:"h3",textAlign:"center",children:"Explore Topics"}),(0,l.jsx)(x.U,{domain:"blog",suggestions:f,w:"100%",maxW:"800px"}),(0,l.jsx)(u,{blogItems:r})]})})]})]})}}},function(e){e.O(0,[228,401,225,458,774,888,179],function(){return e(e.s=8831)}),_N_E=e.O()}]);

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.