PageSourceSearch

https://www.affire.ai/_next/static/chunks/961.2a980428f2e36002.js

js affire.ai collected 2026-10-02 00:14:02 UTC 3,665 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[961],{3738:function(e,t,a){a.d(t,{Z:function(){return PrismicNextImage}});var n=a(5893),i=a(5675),r=a.n(i);let camelCaseToParamCase=e=>e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`),buildURL=(e,t)=>{let a=new URL(e);for(let e in t){let n=camelCaseToParamCase(e),i=t[e];void 0===i?a.searchParams.delete(n):Array.isArray(i)?a.searchParams.set(n,i.join(",")):a.searchParams.set(n,`${i}`)}let n=a.searchParams.get("s");return n&&(a.searchParams.delete("s"),a.searchParams.append("s",n)),a.toString()},imgixLoader=e=>{let t=new URL(e.src),a={fit:t.searchParams.get("fit")||"max",w:e.width,h:void 0};return e.quality&&(a.q=e.quality),buildURL(e.src,a)};var s=a(5118);let castInt=e=>{if("number"==typeof e||void 0===e)return e;{let t=Number.parseInt(e);if(Number.isNaN(t))return;return t}},PrismicNextImage=({field:e,imgixParams:t={},alt:a,fallbackAlt:i,fill:l,width:d,height:c,fallback:o=null,...m})=>{if(!(0,s.S)(e))return(0,n.jsx)(n.Fragment,{children:o});{for(let e in t)null===t[e]&&(t[e]=void 0);let s=buildURL(e.url,t),o=e.dimensions.width/e.dimensions.height,u=castInt(d),h=castInt(c),g=u??e.dimensions.width,x=h??e.dimensions.height;null!=u&&null==h?x=u/o:null==u&&null!=h&&(g=h*o);let f=a??(e.alt||i),b=r();return"default"in b&&(b=b.default),(0,n.jsx)(b,{src:s,width:l?void 0:g,height:l?void 0:x,alt:f,fill:l,loader:imgixLoader,...m})}}},1280:function(e,t,a){a.d(t,{N:function(){return FormatDateToHumanString}});let FormatDateToHumanString=e=>e?new Date(e).toLocaleDateString("en-US",{day:"numeric",month:"long",year:"numeric"}):""},961:function(e,t,a){a.r(t);var n=a(5893),i=a(1280),r=a(3470),s=a(3738),l=a(7294);t.default=e=>{let{slice:t,context:a}=e,[d,c]=l.useState(null),{posts:o,categories:m}=a,getProperCategory=e=>e?m.find(t=>t.uid===e.uid):{data:{name:""}},getPost=e=>{let t=o.find(t=>t.uid===e);return t||{data:{title:""}}},changeActiveCategory=e=>{c(e)};return(0,n.jsx)("section",{className:"py-9","data-slice-type":t.slice_type,"data-slice-variation":t.variation,children:(0,n.jsxs)("div",{className:"container",children:[(0,n.jsx)("div",{className:"col text-center mb-5",children:(0,n.jsx)("h2",{className:"mb-10",children:t.primary.title})}),(0,n.jsxs)("div",{className:"text-center mb-5",children:[(0,n.jsx)("button",{onClick:()=>changeActiveCategory(null),className:"".concat(d?"btn-outline-secondary text-dark":"btn-outline-dark"," btn btn-sm px-4 rounded-pill mb-3 me-3"),children:"All"}),m&&m.map(e=>(0,n.jsx)("button",{onClick:()=>changeActiveCategory(e),className:"btn btn-sm px-4 rounded-pill mb-3 \n                ".concat(m[m.length-1]===e?"":"me-3","\n                ").concat(d===e?"btn-outline-dark":"btn-outline-secondary text-dark","\n              "),children:e.data.name},e.uid))]}),(0,n.jsx)("div",{className:"row justify-content-center",children:o&&o.map(e=>{var t,a;return(!d||d.uid===e.data.category.uid)&&(0,n.jsx)("div",{className:"col-md-3 col-12 col-sm-4 mb-5",children:(0,n.jsx)(r.f,{field:e,children:(0,n.jsxs)("div",{className:"card h-100",children:[(0,n.jsx)(s.Z,{field:null===(t=e.data)||void 0===t?void 0:t.image,className:"img-fluid rounded-top-1",width:"400",height:"260"}),(0,n.jsxs)("div",{className:"card-body d-flex align-items-start justify-content-between flex-column",children:[(0,n.jsxs)("div",{className:"mb-1",children:[(0,n.jsx)("span",{children:getProperCategory(e.data.category).data.name}),(0,n.jsx)("h4",{className:"fs-3 mt-1",children:e.data.title})]}),(0,n.jsx)("span",{className:"text-gray-600 fs-5",children:(0,i.N)((null===(a=getPost(e.uid))||void 0===a?void 0:a.first_publication_date)||"")})]})]})})},e.uid)})})]})})}}}]);

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.