PageSourceSearch

https://antler.digital/_next/static/chunks/46-e9ffccd73f3fa4eb.js

js antler.digital collected 2026-10-06 06:10:17 UTC 6,977 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[46],{8263:function(e,t,n){var l=n(85893),i=n(93967),a=n.n(i),r=n(16893),s=n(18834),o=n(67294);t.Z=e=>{let{className:t,fromRight:n=!1,decreasingLengths:i=!1,customRowColor:c,numRows:h=3}=e,barWidth=e=>"calc(".concat(i?75:60,"% - ").concat(i?5*e:-(5*e),"%)"),d=(0,o.useRef)(null),u=(0,r.Y)(d);return(0,l.jsx)("div",{className:a()("flex flex-col w-screen space-y-4",t,n?"items-end":"items-start"),children:Array.from({length:h}).map((e,t)=>(0,l.jsx)(s.m.div,{ref:d,className:a()(t%2==0?"bg-white":c||"bg-green","h-6"),initial:{width:0},animate:u&&{width:barWidth(t)},transition:{duration:.5,delay:.2*t},viewport:{once:!0}},"".concat(t,"-staggered-horizontal")))})}},28045:function(e,t,n){var l=n(85893),i=n(18834),a=n(67294),r=n(70478),s=n(8263);t.Z=e=>{let{title:t,children:n,includeStaggeredHorizontal:o=!0,headerSize:c="h1"}=e,h=t.split(" "),d=i.m[c];return(0,l.jsx)("div",{className:"".concat(o?"min-h-[900px]":"min-h-[400px] sm:min-h-[500px]"," flex overflow-hidden mt-20 sm:mt-0"),children:(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center max-w-screen-lg gap-8 mx-auto grow",children:[(0,l.jsxs)(d,{initial:{color:"#fff"},animate:{color:"#000"},transition:{type:"tween",delay:.25},className:"relative py-3 sm:pr-8 text-6xl text-center text-black ".concat(r.ptSerif.variable," font-serif font-bold"),children:[(0,l.jsx)(i.m.div,{initial:{x:"-100%"},animate:{x:0},transition:{type:"tween",delay:.2},className:"absolute top-0 bottom-0 right-0 w-screen bg-white -z-10"}),(0,l.jsx)(i.m.span,{initial:{opacity:0}
1,animate:{opacity:1},transition:{type:"tween",delay:.2},children:h.map((e,t)=>t===h.length-1?(0,l.jsx)("span",{className:"text-highlight",children:e},e):(0,l.jsxs)(a.Fragment,{children:[e," "]},e))})]}),n,o&&(0,l.jsx)(s.Z,{fromRight:!0,className:"mt-4"})]})})}},19572:function(e,t,n){n.d(t,{Z:function(){return blogs_BlogList}});var l=n(85893),i=n(93967),a=n.n(i),r=n(67294),s=n(41664),o=n.n(s),elements_Pagination=e=>{let{currentPage:t,totalPages:n,baseUrl:i}=e,r=[];for(let e=1;e<=n;e++)r.push(e);return(0,l.jsx)("nav",{className:"flex justify-center mt-8",children:(0,l.jsx)("ul",{className:"flex space-x-2",children:r.map(e=>{let n=1===e,r=n?i:"".concat(i,"/").concat(e);return(0,l.jsx)("li",{children:(0,l.jsx)("button",{className:a()("px-3 py-1 rounded",e===t?"bg-highlight text-white":"bg-white text-black hover:bg-gray-200"),children:(0,l.jsx)(o(),{href:r,children:e})})},e)})})})},c=n(70478),h=n(1421),d=n(72658),blogs_BlogList=e=>{let{blogs:t,topics:n,currentPage:i,totalPages:s,topic:o}=e,u=null==o?void 0:o.toLowerCase(),m=o&&""!==o.trim()?o.trim():void 0,x=m?(0,h._h)(m):"/blog",[g,f]=(0,r.useState)([]),[p,v]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if((null==t?void 0:t.length)!==(null==g?void 0:g.length)){let e=(null==t?void 0:t.length)-(null==g?void 0:g.length),n=Array.from({length:e},()=>({lengthWhite:"".concat(Math.max(5,Math.round(100*Math.random())),"%"),lengthColor:"".concat(Math.max(5,Math.round(100*Math.random())),"%"),colorBar:Math.round(Math.random())%2==0?"bg-green":"bg-highlight"}));f([...g,...n])}},[t]),(0,l.jsxs)("section",{className:"pb-24",children:[(0,l.jsxs)("div",{className:"flex flex-col-reverse justify-between max-w-screen-lg gap-8 px-4 sm:px-12 mx-auto md:flex-row",children:[(0,l.jsx)("ul",{className:"max-w-screen-md",children:t&&(null==t?void 0:t.map((e,t)=>{var n,i,r,s;e.id;let o=e.title,h=e.description,u=(null===(n=e.author)||void 0===n?void 0:n.name)||"Sam Loyd";return(0,l.jsx)("li",{className:"w-full pb-12",children:(0,l.jsxs)(d.Z,{linkTo:"/blog/".concat(e.slug),className:"space-y-4 duration-150 hover:text-highlight",children:[(0,l.jsx)("h3",{className:"text-2xl font-bold font-serif ".concat(c.ptSerif.variable),children:o}),(0,l.jsx)("p",{children:h}),(0,l.jsxs)("div",{className:"flex items-center gap-2 text-sm text-gray-500",children:[(0,l.jsx)("span",{children:e.publishedAt}),(0,l.jsx)("span",{children:"•"}),(0,l.jsx)("span",{children:u})]}),(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)("div",{style:{width:null==g?void 0:null===(i=g[t])||void 0===i?void 0:i.lengthWhite},className:"h-4 bg-white"}),(0,l.jsx)("div",{style:{width:null==g?void 0:null===(r=g[t])||void 0===r?void 0:r.lengthColor},className:a()("h-4",null==g?void 0:null===(s=g[t])||void 0===s?void 0:s.colorBar)})]})]})},"blog-".concat(o,"-").concat(t))}))}),(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsx)("h5",{className:"font-bold font-serif text-2xl ".concat(c.ptSerif.variable),children:"Topics"}),(0,l.jsx)("ul",{className:"overflow-auto max-w-full flex flex-row md:flex-col gap-4 min-w-[200px]",children:Object.entries(n||{}).sort((e,t)=>{let[,n]=e,[,l]=t;return l-n}).slice(0,p?void 0:10).map(e=>{let[t,n]=e;return(0,l.jsx)("li",{children:(0,l.jsx)("button",{type:"button",className:a()((null==t?void 0:t.toLowerCase())===u?"font-bold sm:text-highlight text-green ":"font-normal  sm:text-white","flex gap-1"),children:(0,l.jsxs)(d.Z,{linkTo:(null==t?void 0:t.toLowerCase())===u?"/blog":(0,h._h)(t),children:[(0,l.jsx)("span",{children:t}),(0,l.jsx)("span",{children:"(".concat(n,")")})]})})},"topic-".concat(t))})}),Object.keys(n||{}).length>10&&(0,l.jsx)("button",{onClick:()=>v(!p),className:"text-sm text-highlight hover:text-white transition-colors mt-2",children:p?"Show less":"Show more"})]})]}),s>1&&(0,l.jsx)(elements_Pagination,{currentPage:i,totalPages:s,baseUrl:x})]})}},1421:function(e,t,n){n.d(t,{_h:function(){return blogTopicHref},oB:function(){return blogTopicPathname}});var l=n(42455);function blogTopicPathname(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=(0,l.lV)(e);return t>1?"blog/topic/".concat(n,"/").concat(t):"blog/topic/".concat(n)}function blogTopicHref(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return"/".concat(blogTopicPathname(e,t))}},42455:function(e,t,n){n.d(t,{lV:function(){return slugify}});let l=/[̀-ͯ]/g,i=/['‘’ʼ`´"“”]/g;function slugify(e){return e?e.normalize("NFKD").replace(l,"").toLowerCase().replace(i,"").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,""):""}},16893:function(e,t,n){n.d(t,{Y:function(){return useInView}});var l=n(67294),i=n(11816);let a={some:0,all:1};function useInView(e,{root:t,margin:n,amount:r,once:s=!1,initial:o=!1}={}){let[c,h]=(0,l.useState)(o);return(0,l.useEffect)(()=>
1{if(!e.current||s&&c)return;let l={root:t&&t.current||void 0,margin:n,amount:r};return function(e,t,{root:n,margin:l,amount:r="some"}={}){let s=(0,i.I)(e),o=new WeakMap,c=new IntersectionObserver(e=>{e.forEach(e=>{let n=o.get(e.target);if(!!n!==e.isIntersecting){if(e.isIntersecting){let n=t(e.target,e);"function"==typeof n?o.set(e.target,n):c.unobserve(e.target)}else"function"==typeof n&&(n(e),o.delete(e.target))}})},{root:n,rootMargin:l,threshold:"number"==typeof r?r:a[r]});return s.forEach(e=>c.observe(e)),()=>c.disconnect()}(e.current,()=>(h(!0),s?void 0:()=>h(!1)),l)},[t,e,n,s,r]),c}}}]);

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.