PageSourceSearch

https://www.edgelinking.com/_next/static/chunks/3--u0mfjt7-l3.js

js edgelinking.com collected 2026-10-04 20:57:45 UTC 38,438 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="21d7a711-d0d3-6942-b9d1-5982b44fe701")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,820045,e=>{"use strict";var t=e.i(843476),r=e.i(657688),s=e.i(522016),a=e.i(824511),i=e.i(310542),l=e.i(271645);function n(){return(0,t.jsxs)("div",{className:"md:hidden flex h-full flex-col px-6 pt-30 pb-7",children:[(0,t.jsxs)(a.m.h1,{initial:{opacity:0,y:40},animate:{opacity:1,y:0},transition:{duration:.8},className:"max-w-[220px] blog-text-hero leading-[0.95]  text-white",children:["Latest ",(0,t.jsx)("br",{})," Insights"]}),(0,t.jsxs)("p",{className:"mt-auto self-end max-w-[260px] blog-text-heading leading-relaxed text-white",children:["We combine strategy and insights to amplify"," ",(0,t.jsx)("span",{children:"your brand"})," to ",(0,t.jsx)("span",{children:"the right"})," audience."]})]})}var o=e.i(399642),c=e.i(547877);let d=e=>{let t=(0,c.resolveBlogCategory)(e,"General"),r=e.publishedAt?._seconds||0;return{id:e.id,title:e.title,description:e.description,image:e.imageUrl,slug:e.slug,category:t.name,categorySlug:t.slug,date:r?(0,o.formatDate)(r):"",timestamp:r,isLarge:!1}},u=(e,r)=>{if(!r.trim())return e;let s=e.split(RegExp(`(${r})`,"gi"));return(0,t.jsx)(t.Fragment,{children:s.map((e,s)=>e.toLowerCase()===r.toLowerCase()?(0,t.jsx)("span",{className:"text-[#f38a05] font-bold",children:e},s):e)})};var g=e.i(114271);let h=(e,t)=>{switch(t.type){case"SET_PAGE":return{...e,currentPage:t.payload,jumpPage:t.payload.toString().padStart(2,"0")};case"SET_QUERY":return{...e,query:t.payload,currentPage:1,jumpPage:"01"};case"SET_SEARCH_INPUT":return{...e,searchInputValue:t.payload};case"SET_JUMP_PAGE":return{...e,jumpPage:t.payload};case"SET_SORT":return{...e,sortType:t.payload,currentPage:1,jumpPage:"01"};case"SET_CATEGORY":return{...e,selectedCategory:t.payload,currentPage:1,jumpPage:"01"};case"SET_POSTS_PER_PAGE":if(e.postsPerPage===t.payload)return e;return{...e,postsPerPage:t.payload,currentPage:1,jumpPage:"01"};default:return e}};var p=e.i(895420),m=e.i(591994);let f=({word:e,index:r,total:s,scrollYProgress:i,animateFromWord:l})=>{let n=Math.max(s-l,1),o=Math.max(r-l,0)/n,c=(0,p.useTransform)(i,[o,o+1/n],[r<l?1:.25,1]),d=(0,m.useSpring)(c,{stiffness:120,damping:30,mass:.2});return(0,t.jsxs)(a.m.span,{style:{opacity:d},className:"inline-block text-white will-change-transform",children:[e," "]})},x=({categories:e,selectedCategory:r,onSelectCategory:s,highlightText:a})=>{let[i,n]=(0,l.useState)(!1),[o,c]=(0,l.useState)(""),d=(0,l.useRef)(null);(0,l.useEffect)(()=>{if(!i)return void c("");let e=e=>{d.current&&!d.current.contains(e.target)&&n(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[i]);let u=l.default.useMemo(()=>{let t=new Set;return e.filter(e=>{let r=e.name||e.slug||"";return!(!r||t.has(r))&&(t.add(r),!0)})},[e]).filter(e=>(e.name||e.slug||"Unknown").toLowerCase().includes(o.toLowerCase())).sort((e,t)=>{let r=o.toLowerCase(),s=(e.name||e.slug||"Unknown").toLowerCase(),a=(t.name||t.slug||"Unknown").toLowerCase();if(s===r&&a!==r)return -1;if(a===r&&s!==r)return 1;let i=s.startsWith(r),l=a.startsWith(r);return i&&!l?-1:l&&!i?1:s.localeCompare(a)});return(0,t.jsxs)("div",{className:"relative w-full md:w-auto",ref:d,children:[(0,t.jsxs)("button",{onClick:()=>n(!i),className:"flex items-center justify-between gap-4 w-full md:w-auto bg-black/40 backdrop-blur-md border border-white/10 rounded-full py-3 px-8 hover:border-white/30 transition-colors uppercase text-[12px] tracking-widest text-white","aria-haspopup":"listbox","aria-expanded":i,children:[(0,t.jsx)("span",{className:"truncate max-w-[120px]",children:r||"Categories"}),(0,t.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`transition-transform duration-200 ${i?"rotate-180":""}`,children:(0,t.jsx)("path",{d:"M6 9l6 6 6-6",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]}),i&&(0,t.jsxs)("div",{className:"absolute top-full left-0 mt-2 w-full bg-[#222222] border border-white/10 rounded-xl overflow-hidden z-40 shadow-2xl","data-lenis-prevent":!0,children:[(0,t.jsx)("div",{className:"p-3 border-b border-white/10",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{type:"text",placeholder:"Search Category...",value:o,onChange:e=>c(e.target.value),className:"autofill-dark w-full bg-white/5 border border-white/10 rounded-lg py-2 px-3 pl-9 text-[10px] uppercase tracking-widest text-white focus:outline-none focus:border-white/30"}),(0,t.jsx)("svg",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-white/40",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M21 21L15 15M17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})}),(0,t.jsxs)("div",{className:"max-h-60 overflow-y-auto custom-scrollbar",role:"listbox",children:[(0,t.jsx)("button",{onClick:()=>{s(null),n(!1)},className:`w-full text-left px-6 py-4 text-[10px] uppercase tracking-widest transition-colors hover:bg-white/5 ${!r?"text-white font-bold":"text-gray-400"}`,role:"option","aria-selected":!r,children:"All Categories"}),u.map(e=>(0,t.jsx)("button",{onClick:()=>{s(e.slug),n(!1)},className:`w-full text-left px-6 py-4 text-[10px] uppercase tracking-widest transition-colors hover:bg-white/5 ${r===e.slug?"text-white font-bold":"text-gray-400"}`,role:"option","aria-selected":r===e.slug,children:a(e.name||e.slug||"Unknown",o)},e.slug))]})]})]})},w=({sortType:e,onSortChange:r})=>{let[s,a]=(0,l.useState)(!1),i=(0,l.useRef)(null);return(0,l.useEffect)(()=>{let e=e=>{i.current&&!i.current.contains(e.target)&&a(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,t.jsxs)("div",{className:"relative w-full md:w-auto",ref:i,children:[(0,t.jsxs)("button",{onClick:()=>a(!s),className:"flex items-center justify-between gap-4 w-full md:w-auto bg-black/40 backdrop-blur-md border border-white/10 rounded-full py-3 px-8 hover:border-white/30 transition-colors uppercase text-[12px] tracking-widest text-white","aria-haspopup":"listbox","aria-expanded":s,children:[(0,t.jsx)("span",{children:"Sort by"}),(0,t.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M3 6H21M3 12H15M3 18H9",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]}),s&&(0,t.jsxs)("div",{className:"absolute top-full right-0 mt-2 w-full bg-[#222222] border border-white/10 rounded-xl overflow-hidden z-40 shadow-2xl",children:[(0,t.jsx)("button",{onClick:()=>{r("newest"),a(!1)},className:`w-full text-left px-6 py-4 text-[10px] uppercase tracking-widest transition-colors hover:bg-white/5 ${"newest"===e?"text-white font-bold":"text-gray-400"}`,role:"option","aria-selected":"newest"===e,children:"Newest First"}),(0,t.jsx)("button",{onClick:()=>{r("oldest"),a(!1)},className:`w-full text-left px-6 py-4 text-[10px] uppercase tracking-widest transition-colors hover:bg-white/5 ${"oldest"===e?"text-white font-bold":"text-gray-400"}`,role:"option","aria-selected":"oldest"===e,children:"Oldest First"})]})]})};var y=e.i(88653);
2let v=({value:e,onChange:r})=>{let[s,i]=(0,l.useState)(!1),n=(0,l.useRef)(null);return(0,l.useEffect)(()=>{let e=e=>{n.current&&!n.current.contains(e.target)&&i(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"relative flex items-center h-12 w-full max-w-md md:hidden",children:[(0,t.jsx)("input",{type:"text",placeholder:"SEARCH...",value:e,onChange:e=>r(e.target.value),className:"autofill-dark w-full h-full bg-black border border-white/20 rounded-full py-3 px-6 pr-12 focus:outline-none focus:border-white/50 transition-colors uppercase text-[12px] tracking-widest text-white placeholder:text-white/50 shadow-2xl"}),(0,t.jsx)("div",{className:"absolute right-4 top-1/2 -translate-y-1/2 text-white/50",children:(0,t.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M21 21L15 15M17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),(0,t.jsxs)("div",{ref:n,className:"hidden md:flex relative items-center h-12 w-full md:w-auto justify-center md:justify-end",children:[(0,t.jsx)(y.AnimatePresence,{children:s&&(0,t.jsx)(a.m.div,{initial:{width:0,opacity:0},animate:{width:"300px",opacity:1},exit:{width:0,opacity:0},transition:{duration:.3,ease:"easeInOut"},className:"absolute right-0 top-0 h-full z-10 overflow-hidden pointer-events-none",children:(0,t.jsxs)("div",{className:"absolute right-0 top-0 w-[300px] h-full pointer-events-auto",children:[(0,t.jsx)("input",{type:"text",placeholder:"Search...",value:e,autoFocus:!0,onChange:e=>r(e.target.value),className:"autofill-dark w-full h-full bg-black border border-white/20 rounded-full py-3 px-6 pr-20 focus:outline-none focus:border-white/50 transition-colors uppercase text-[12px] tracking-widest text-white placeholder:text-white/50 shadow-2xl"}),e&&(0,t.jsx)("button",{onClick:()=>r(""),className:"absolute right-12 top-1/2 -translate-y-1/2 p-2 text-white/50 hover:text-white transition-colors cursor-pointer","aria-label":"Clear search",children:(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M18 6L6 18M6 6L18 18",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})})}),(0,t.jsx)("div",{className:"flex justify-end relative z-20",children:(0,t.jsx)("button",{onClick:()=>i(!s),className:"flex items-center justify-center w-12 h-12 rounded-full transition-colors hover:bg-white/10 text-white cursor-pointer","aria-label":s?"Close search":"Open search",children:(0,t.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M21 21L15 15M17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})]})]})},b=({currentPage:e,totalPages:r,jumpPage:s,onPageChange:a,onJumpPageChange:i,onJumpPageBlur:l,onJumpPageKeyDown:n,onNextHover:o})=>r<=1?null:(0,t.jsx)("div",{className:"mt-20 flex justify-center md:justify-end",children:(0,t.jsxs)("div",{className:"inline-flex items-center bg-[#222222] border border-white/10 rounded-full h-12 overflow-hidden",children:[(0,t.jsx)("button",{disabled:1===e,onClick:()=>a(Math.max(e-1,1)),className:"flex items-center justify-center px-6 h-full text-gray-400 hover:text-white disabled:opacity-20 transition-colors cursor-pointer disabled:cursor-default","aria-label":"Previous page",children:(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M19 12H5M5 12L12 19M5 12L12 5",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,t.jsx)("div",{className:"w-[1px] h-6 bg-white/10"}),(0,t.jsx)("div",{className:"px-4",children:(0,t.jsx)("input",{type:"text",value:s,onChange:i,onBlur:l,onKeyDown:n,className:"autofill-dark bg-transparent text-white font-medium text-lg w-10 text-center focus:outline-none focus:ring-1 focus:ring-white/30 rounded","aria-label":"Jump to page"})}),(0,t.jsx)("div",{className:"w-[1px] h-6 bg-white/10"}),(0,t.jsx)("button",{disabled:e===r,onClick:()=>a(Math.min(e+1,r)),onMouseEnter:o,className:"flex items-center justify-center px-6 h-full text-gray-400 hover:text-white disabled:opacity-20 transition-colors cursor-pointer disabled:cursor-default","aria-label":"Next page",children:(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M5 12H19M19 12L12 5M19 12L12 19",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})});var j=e.i(200030);let N=()=>(0,t.jsxs)("div",{className:"border border-white/10 rounded-xl overflow-hidden bg-black h-full flex flex-col",children:[(0,t.jsx)("div",{className:"aspect-video p-2",children:(0,t.jsx)("div",{className:"w-full h-full rounded-lg bg-white/5 animate-pulse"})}),(0,t.jsxs)("div",{className:"p-4 sm:p-5 md:p-4 pt-2 flex flex-col flex-grow",children:[(0,t.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,t.jsx)("div",{className:"h-3 w-20 bg-white/5 rounded animate-pulse"}),(0,t.jsx)("div",{className:"h-3 w-24 bg-white/5 rounded animate-pulse"})]}),(0,t.jsx)("div",{className:"h-5 w-full bg-white/5 rounded animate-pulse mb-1"}),(0,t.jsx)("div",{className:"h-5 w-2/3 bg-white/5 rounded animate-pulse mb-3"}),(0,t.jsxs)("div",{className:"mt-auto",children:[(0,t.jsx)("div",{className:"h-3 w-full bg-white/5 rounded animate-pulse mb-1"}),(0,t.jsx)("div",{className:"h-3 w-4/5 bg-white/5 rounded animate-pulse"})]})]})]}),k=({posts:e,recentPosts:r,loading:s,currentPage:i,query:l,postsPerPage:n})=>(0,t.jsx)(y.AnimatePresence,{mode:"wait",children:s?(0,t.jsx)(a.m.div,{initial:{opacity:0}
2,animate:{opacity:1},exit:{opacity:0},className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-x-4 gap-y-6",children:[...Array(n)].map((e,r)=>(0,t.jsx)(N,{},r))},"skeleton-grid"):e.length>0||r.length>0?(0,t.jsxs)("div",{className:"flex flex-col gap-14",children:[e.length>0&&(0,t.jsx)(a.m.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.4,ease:"easeInOut"},className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-x-4 gap-y-6",children:e.map((e,r)=>(0,t.jsx)(j.BlogCard,{insight:e,compact:!0,highlight:l,priority:1===i&&r<6},e.id))},`page-${i}`),0===e.length&&(0,t.jsx)(a.m.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center py-20 text-gray-500 uppercase tracking-widest",children:l.trim()?"No insights available.":"No insights found."},"no-results"),r.length>0&&(0,t.jsxs)(a.m.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.3,delay:.08},children:[(0,t.jsx)("h3",{className:"mb-6 text-[12px] sm:text-[13px] uppercase tracking-widest text-white/70",children:"Recent Blogs"}),(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-x-4 gap-y-6",children:r.map((r,s)=>(0,t.jsx)(j.BlogCard,{insight:r,compact:!0,priority:1===i&&e.length+s<6},`recent-${r.id}`))})]})]}):(0,t.jsx)(a.m.div,{initial:{opacity:0}
2,animate:{opacity:1},className:"text-center py-20 text-gray-500 uppercase tracking-widest",children:l.trim()?"No insights available.":"No insights found."},"no-results-empty")});e.s(["BlogsContent",0,function({initialData:e}){let c=(0,l.useRef)(null),p=(0,l.useRef)(null),m=(0,l.useRef)(!0),y=(0,l.useRef)(!1),{state:j,setPage:N,setSearchInput:C,setSort:P,setCategory:E,prefetchNextPage:L,handleJumpPageChange:S,handleJumpPageBlur:T,handleJumpPageKeyDown:M}=(e=>{let t=(0,g.useQueryClient)(),[r,s]=(0,l.useReducer)(h,{currentPage:1,postsPerPage:12,query:"",searchInputValue:"",jumpPage:"01",sortType:"newest",selectedCategory:null});(0,l.useEffect)(()=>{let e=()=>{let e=12;window.innerWidth<768?e=4:window.innerWidth<1024&&(e=6),s({type:"SET_POSTS_PER_PAGE",payload:e})};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,l.useEffect)(()=>{let e=setTimeout(()=>{s({type:"SET_QUERY",payload:r.searchInputValue})},500);return()=>clearTimeout(e)},[r.searchInputValue]);let{currentPage:a,query:i,selectedCategory:n,postsPerPage:c,sortType:u}=r,p=(0,l.useCallback)(async e=>{let t=i.trim(),r=(0,o.getApiBaseUrl)(),s=!!t,a=!!n,l="id,title,description,slug,imageUrl,authorName,publishedAt,categoryName",g=`${r}/blogs`;a?g+=`/fetchBlogsByCategory?categoryName=${encodeURIComponent(n)}&page=${e}&limit=${c}&sort=${u}&searchQuery=${encodeURIComponent(t)}&fields=${l}`:g+=`/getBlogs?page=${e}&limit=${c}&sort=${u}&searchQuery=${encodeURIComponent(t)}&fields=${l}`;let h=`${r}/blogs/getBlogs?page=1&limit=${3*c}&sort=newest&searchQuery=&fields=${l}`,p=async e=>{let t=new AbortController,r=setTimeout(()=>t.abort(),25e3);try{let s=await fetch(e,{signal:t.signal});if(clearTimeout(r),!s.ok)throw Error(`HTTP error! status: ${s.status}`);return await s.json()}catch(e){throw clearTimeout(r),e}},[m,f]=await Promise.all([p(g),s||a?p(h):Promise.resolve(null)]),x=(Array.isArray(m?.data)?m.data:[]).map(d),w=s?x.filter(e=>{let r;return r=t.toLowerCase(),e.title.toLowerCase().includes(r)||e.description.toLowerCase().includes(r)||e.slug.toLowerCase().includes(r)}):x,y=m?.pagination?.total||0,v=a?y:s?w.length:y,b=[],j=1;if(t||a){if(v>=9||v>=c)j=a?m?.pagination?.pageCount||1:Math.ceil(v/c);else if(f){let e=(Array.isArray(f?.data)?f.data:[]).map(d),t=new Set(w.map(e=>e.id)),r=e.filter(e=>!t.has(e.id)),s=12===c?3:6===c?2:1,a=Math.max(0,c-Math.ceil(w.length/s)*s);b=r.slice(0,a)}}else j=Math.max(1,Math.ceil(Number(y)/c));return{posts:w,recentPosts:b,totalPages:j}},[i,n,c,u]),m=(0,g.useQuery)({queryKey:["blogs","posts",a,i,n,c,u],queryFn:()=>p(a),staleTime:6e4,initialData:1!==a||i||n||!e?void 0:{posts:e.posts,recentPosts:[],totalPages:e.totalPages}}),f=(0,g.useQuery)({queryKey:["blogs","categories"],queryFn:async()=>{try{return await (0,o.getAllCategories)()}catch(e){return console.error("Error loading categories:",e),[]}},staleTime:3e5}),x=(0,l.useCallback)(async()=>{let e=a+1;e<=(m.data?.totalPages||0)&&t.fetchQuery(["blogs","posts",e,i,n,c,u],()=>p(e))},[a,m.data?.totalPages,t,i,n,c,u,p]);return{state:(0,l.useMemo)(()=>({posts:m.data?.posts||[],recentPosts:m.data?.recentPosts||[],loading:m.isLoading,error:m.error?m.error.message:null,currentPage:a,totalPages:m.data?.totalPages||1,postsPerPage:c,query:i,sortType:u,selectedCategory:n,categories:f.data||[],searchInputValue:r.searchInputValue,jumpPage:r.jumpPage}),[m.data,m.isLoading,m.error,a,c,i,u,n,f.data,r.searchInputValue,r.jumpPage]),dispatch:s,setPage:e=>s({type:"SET_PAGE",payload:e}),setQuery:e=>s({type:"SET_QUERY",payload:e}),setSearchInput:e=>s({type:"SET_SEARCH_INPUT",payload:e}),setSort:e=>s({type:"SET_SORT",payload:e}),setCategory:e=>s({type:"SET_CATEGORY",payload:e}),setPostsPerPage:e=>s({type:"SET_POSTS_PER_PAGE",payload:e}),prefetchNextPage:x,handleJumpPageChange:e=>{let t=e.target.value;(""===t||/^\d+$/.test(t))&&s({type:"SET_JUMP_PAGE",payload:t})},handleJumpPageBlur:()=>{let e=parseInt(r.jumpPage),t=m.data?.totalPages||1;isNaN(e)||e<1?s({type:"SET_JUMP_PAGE",payload:r.currentPage.toString().padStart(2,"0")}):e>t?(s({type:"SET_JUMP_PAGE",payload:t.toString().padStart(2,"0")}),s({type:"SET_PAGE",payload:t})):e!==r.currentPage&&s({type:"SET_PAGE",payload:e})},handleJumpPageKeyDown:e=>{"Enter"===e.key&&e.target.blur()}}})(e),{posts:A,recentPosts:$,loading:_,currentPage:R,totalPages:B,postsPerPage:W,searchInputValue:O,query:I,sortType:V,selectedCategory:U,categories:H,jumpPage:F}=j;(0,l.useEffect)(()=>
2{if(m.current){_||(m.current=!1);return}if(p.current&&!_){if(y.current){y.current=!1;return}let e=setTimeout(()=>{if(p.current){let e=p.current.getBoundingClientRect().top+window.pageYOffset-120;window.scrollTo({top:e,behavior:"smooth"})}},100);return()=>clearTimeout(e)}},[R,_]);let{scrollYProgress:G}=(0,i.useScroll)({target:c,offset:["start start","end end"]}),z=(0,l.useMemo)(()=>"We combine strategy and insights to amplify your brand to the right audience.".split(" "),[]);return(0,t.jsxs)("div",{className:"bg-black min-h-screen text-white",children:[(0,t.jsx)("section",{ref:c,className:"relative h-[50vh] sm:h-[50vh] md:h-[135vh] lg:h-[185vh] xl:h-[200vh] w-full text-white",children:(0,t.jsxs)("div",{className:"sticky top-0 h-[50vh] sm:h-[50vh] md:h-[82vh] lg:h-screen w-full overflow-hidden",children:[(0,t.jsx)(r.default,{src:"/Images/blog-hero.png",alt:"hero",fill:!0,priority:!0,className:"object-cover object-[62%_56%] sm:object-[60%_54%] md:object-center scale-[1.14] sm:scale-[1.08] md:scale-100"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-[linear-gradient(180deg,rgba(110,169,157,0.38)_0%,rgba(9,18,20,0.76)_55%,rgba(0,0,0,0.88)_100%)] md:bg-[linear-gradient(to_bottom,rgba(0,0,0,0.2),rgba(0,0,0,0.7))]"}),(0,t.jsxs)("div",{className:"relative z-10 w-full h-full",children:[(0,t.jsx)(n,{}),(0,t.jsxs)("div",{className:"hidden md:flex w-full h-full flex-col justify-between md:px-8 lg:px-12 xl:px-16 md:py-10 lg:py-12 md:relative lg:static",children:[(0,t.jsx)("div",{className:"md:pt-14 lg:pt-24 xl:pt-30",children:(0,t.jsxs)(a.m.h1,{initial:{opacity:0,y:40},animate:{opacity:1,y:0},transition:{duration:.8},className:"blog-text-hero leading-[0.95] md:mt-0 lg:mt-20 xl:mt-34 px-0",children:["Latest ",(0,t.jsx)("br",{})," Insights"]})}),(0,t.jsx)("div",{className:"flex justify-end md:absolute md:right-8 md:bottom-20 md:w-full md:pb-0 lg:static lg:w-auto lg:pb-12",children:(0,t.jsx)("p",{className:"max-w-md md:max-w-[280px] lg:max-w-md xl:max-w-[480px] blog-text-heading leading-relaxed text-gray-200 md:text-white lg:text-gray-200",children:z.map((e,r)=>(0,t.jsx)(f,{word:e,index:r,total:z.length,scrollYProgress:G,animateFromWord:0},r))})})]})]})]})}),(0,t.jsxs)("section",{ref:p,className:"max-w-7xl mx-auto px-6 py-16",children:[(0,t.jsxs)("div",{className:"flex flex-col md:flex-row justify-between items-center md:items-end gap-6 w-full mb-12",children:[(0,t.jsxs)("nav",{className:"flex w-full md:w-auto justify-center md:justify-start items-center gap-2 text-[12px] font-medium uppercase tracking-widest text-gray-400",children:[(0,t.jsx)(s.default,{href:"/",className:"hover:text-white transition-colors",children:"HOME"}),(0,t.jsx)("span",{children:"/"}),(0,t.jsx)("span",{className:"text-white uppercase",children:"Latest Insights"})]}),(0,t.jsxs)("div",{className:"flex flex-col md:flex-row items-center gap-4 w-full md:w-auto",children:[(0,t.jsx)(v,{value:O,onChange:C}),(0,t.jsx)(x,{categories:H,selectedCategory:U,onSelectCategory:E,highlightText:u}),(0,t.jsx)(w,{sortType:V,onSortChange:P})]})]}),j.error?(0,t.jsx)(a.m.div,{initial:{opacity:0}
2,animate:{opacity:1},className:"py-20 text-center text-red-500 uppercase tracking-widest",children:j.error}):(0,t.jsx)(k,{posts:A,recentPosts:$,loading:_,currentPage:R,query:I,postsPerPage:W}),(0,t.jsx)(b,{currentPage:R,totalPages:B,jumpPage:F,onPageChange:N,onJumpPageChange:S,onJumpPageBlur:T,onJumpPageKeyDown:M,onNextHover:L})]})]})}],820045)},200030,e=>{"use strict";var t=e.i(843476),r=e.i(824511),s=e.i(657688),a=e.i(271645),i=e.i(522016),l=e.i(114693);let n=({text:e,highlight:r})=>{if(!r||!r.trim())return(0,t.jsx)(t.Fragment,{children:e});let s=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=e.split(RegExp(`(${s})`,"gi"));return(0,t.jsx)(t.Fragment,{children:a.map((e,s)=>e.toLowerCase()===r.toLowerCase()?(0,t.jsx)("span",{className:"bg-[#FF6B00] text-black px-1 rounded-sm font-bold",children:e},s):e)})};e.s(["BlogCard",0,function({insight:e,className:o,hideDescription:c,compact:d,highlight:u,priority:g}){let[h,p]=(0,a.useState)(!1),m=(0,a.useRef)(!1),f=(0,a.useRef)(null),{setCursorText:x}=(0,l.useCursor)(),w=(0,a.useCallback)(()=>{p(!0),m.current=!0,x("VIEW BLOG")},[x]),y=(0,a.useCallback)(()=>{p(!1),m.current=!1,x(null)},[x]);return(0,a.useEffect)(()=>{let e=e=>{let{x:t,y:r}=e.detail,s=f.current;if(!s)return;let a=document.elementFromPoint(t,r),i=!!a&&s.contains(a);i&&!m.current?w():!i&&m.current&&y()};return window.addEventListener("cursor-hover-sync",e),()=>{window.removeEventListener("cursor-hover-sync",e)}},[w,y,x]),(0,t.jsx)(r.m.div,{ref:f,onMouseEnter:w,onMouseLeave:y,initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.3},className:`${o||""} group lg:cursor-none relative flex-col`,children:(0,t.jsx)(i.default,{href:`/blogs/${e.categorySlug||"uncategorized"}/${e.slug}`,className:"flex flex-col h-full lg:cursor-none",style:{cursor:h?"none":"auto"},children:(0,t.jsx)("div",{className:"relative w-full border border-white/10 rounded-xl overflow-hidden flex flex-col h-full bg-black",children:e.isLarge&&!o?.includes("md:col-span-1")?(0,t.jsxs)("div",{className:"relative w-full aspect-video xl:aspect-auto xl:h-full flex-grow overflow-hidden",children:[(0,t.jsxs)("div",{className:"absolute inset-0 transition-transform duration-500 ease-out group-hover:scale-98",children:[(0,t.jsx)(s.default,{src:e.image,alt:e.title,fill:!0,priority:g,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",className:"object-cover object-center"}),(0,t.jsx)("div",{className:"absolute inset-0 image-vignette"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-black/20 group-hover:bg-black/40 transition-colors duration-300"})]}),(0,t.jsxs)("div",{className:"absolute inset-0 p-5 sm:p-6 md:p-8 flex flex-col justify-end z-10",children:[(0,t.jsxs)("div",{className:"flex justify-between items-center mb-4",children:[(0,t.jsx)("p",{className:"text-description-small text-light uppercase tracking-wider",children:e.date}),(0,t.jsx)("p",{className:"text-description-small text-light uppercase tracking-wider",children:(0,t.jsx)(n,{text:e.category,highlight:u})})]}),(0,t.jsx)("h3",{className:"blog-title sm:text-[18px] lg:text-[22px] xl:text-heading-4 uppercase leading-tight max-w-[95%] line-clamp-2",children:(0,t.jsx)(n,{text:e.title,highlight:u})})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"relative w-full aspect-video p-2",children:(0,t.jsxs)("div",{className:"relative w-full h-full rounded-lg overflow-hidden",children:[(0,t.jsx)(s.default,{src:e.image,alt:e.title,fill:!0,priority:g,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",className:"object-cover transition-transform duration-500 ease-out group-hover:scale-95"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-black/10 group-hover:bg-black/40 transition-colors duration-300"})]})}),(0,t.jsxs)("div",{className:`p-4 sm:p-5 flex flex-col flex-grow ${d?"md:p-4":"md:p-6"} pt-2`,children:[(0,t.jsxs)("div",{className:`flex justify-between items-center ${d?"mb
2-2":"mb-4 md:mb-8"}`,children:[(0,t.jsx)("p",{className:"text-description-small text-light uppercase tracking-wider",children:e.date}),(0,t.jsx)("p",{className:"text-description-small text-light uppercase tracking-wider",children:(0,t.jsx)(n,{text:e.category,highlight:u})})]}),(0,t.jsx)("h3",{className:`blog-title sm:text-[15px] md:text-[18px] line-clamp-2 leading-tight uppercase group-hover:text-white transition-colors ${d?"mb-1":"mb-3 md:mb-4"}`,children:(0,t.jsx)(n,{text:e.title,highlight:u})}),!c&&(0,t.jsx)("p",{className:"blog-description text-light line-clamp-2 mt-auto",children:(0,t.jsx)(n,{text:(e=>{if(!e)return"";let t=e.replace(/<(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hgroup|hr|li|main|nav|noscript|ol|p|pre|section|table|tfoot|ul|video) [^>]*>|<\/(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hgroup|hr|li|main|nav|noscript|ol|p|pre|section|table|tfoot|ul|video)>/gi," ");t=t.replace(/<[^>]*>/g,"");let r={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&nbsp;":" "};return t.replace(/&[a-z0-9]+;/gi,e=>r[e.toLowerCase()]||e).trim()})(e.description),highlight:u})})]})]})})})})}])},310542,895420,e=>{"use strict";var t=e.i(560140),r=e.i(930551),s=e.i(486427),a=e.i(965566),i=e.i(271645),l=e.i(260830),n=e.i(287022);function o(e,t){let r,s=()=>{let{currentTime:s}=t,a=(null===s?0:s.value)/100;r!==a&&e(a),r=a};return n.frame.preUpdate(s,!0),()=>(0,n.cancelFrame)(s)}function c(e){return!("u"<typeof window)&&(e?(0,r.supportsViewTimeline)():(0,r.supportsScrollTimeline)())}var d=e.i(661327),u=e.i(783920),g=e.i(325791);let h=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),p={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function m(e,t,r,s){let a=r[t],{length:i,position:l}=p[t],n=a.current,o=r.time;a.current=Math.abs(e[`scroll${l}`]),a.scrollLength=e[`scroll${i}`]-e[`client${i}`],a.offset.length=0,a.offset[0]=0,a.offset[1]=a.scrollLength,a.progress=(0,u.progress)(0,a.scrollLength,a.current);let c=s-o;a.velocity=c>50?0:(0,g.velocityPerSecond)(a.current-n,c)}var f=e.i(344230),x=e.i(515923),w=e.i(476959),y=e.i(772846);let v={start:0,center:.5,end:1};function b(e,t,r=0){let s=0;if(e in v&&(e=v[e]),"string"==typeof e){let t=parseFloat(e);e.endsWith("px")?s=t:e.endsWith("%")?e=t/100:e.endsWith("vw")?s=t/100*document.documentElement.clientWidth:e.endsWith("vh")?s=t/100*document.documentElement.clientHeight:e=t}return"number"==typeof e&&(s=t*e),r+s}let j=[0,0],N=[[0,0],[1,1]],k={x:0,y:0},C=new WeakMap,P=new WeakMap,E=new WeakMap,L=new WeakMap,S=new WeakMap,T=e=>e===document.scrollingElement?window:e;function M(e,{container:t=document.scrollingElement,trackContentSize:r=!1,...s}={}){if(!t)return l.noop;let a=E.get(t);a||(a=new Set,E.set(t,a));let i=function(e,t,r,s={}){return{measure:t=>{!function(e,t=e,r){if(r.x.targetOffset=0,r.y.targetOffset=0,t!==e){let s=t;for(;s&&s!==e;)r.x.targetOffset+=s.offsetLeft,r.y.targetOffset+=s.offsetTop,s=s.offsetParent}r.x.targetLength=t===e?t.scrollWidth:t.clientWidth,r.y.targetLength=t===e?t.scrollHeight:t.clientHeight,r.x.containerLength=e.clientWidth,r.y.containerLength=e.clientHeight}(e,s.target,r),m(e,"x",r,t),m(e,"y",r,t),r.time=t,(s.offset||s.target)&&function(e,t,r){let{offset:s=N}=r,{target:a=e,axis:i="y"}=r,l="y"===i?"height":"width",n=a!==e?function(e,t){let r={x:0,y:0},s=e;for(;s&&s!==t;)if((0,y.isHTMLElement)(s))r.x+=s.offsetLeft,r.y+=s.offsetTop,s=s.offsetParent;else if("svg"===s.tagName){let e=s.getBoundingClientRect(),t=(s=s.parentElement).getBoundingClientRect();r.x+=e.left-t.left,r.y+=e.top-t.top}else if(s instanceof SVGGraphicsElement){let{x:e,y:t}=s.getBBox();r.x+=e,r.y+=t;let a=null,i=s.parentNode;for(;!a;)"svg"===i.tagName&&(a=i),i=s.parentNode;s=a}else break;return r}(a,e):k,o=a===e?{width:e.scrollWidth,height:e.scrollHeight}:"getBBox"in a&&"svg"!==a.tagName?a.getBBox():{width:a.clientWidth,height:a.clientHeight},c={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let d=!t[i].interpolate,u=s.length;for(let e=0;e<u;e++){let r=function(e,t,r,s){let a=Array.isArray(e)?e:j,i=0;
2return"number"==typeof e?a=[e,e]:"string"==typeof e&&(a=(e=e.trim()).includes(" ")?e.split(" "):[e,v[e]?e:"0"]),(i=b(a[0],r,s))-b(a[1],t)}(s[e],c[l],o[l],n[i]);d||r===t[i].interpolatorOffsets[e]||(d=!0),t[i].offset[e]=r}d&&(t[i].interpolate=(0,f.interpolate)(t[i].offset,(0,x.defaultOffset)(s),{clamp:!1}),t[i].interpolatorOffsets=[...t[i].offset]),t[i].progress=(0,w.clamp)(0,1,t[i].interpolate(t[i].current))}(e,r,s)},notify:()=>t(r)}}(t,e,{time:0,x:h(),y:h()},s);if(a.add(i),!C.has(t)){let e=()=>{for(let e of a)e.measure(n.frameData.timestamp);n.frame.preUpdate(r)},r=()=>{for(let e of a)e.notify()},s=()=>n.frame.read(e);C.set(t,s);let i=T(t);window.addEventListener("resize",s),t!==document.documentElement&&P.set(t,(0,d.resize)(t,s)),i.addEventListener("scroll",s),s()}if(r&&!S.has(t)){let e=C.get(t),r={width:t.scrollWidth,height:t.scrollHeight};L.set(t,r);let s=n.frame.read(()=>{let s=t.scrollWidth,a=t.scrollHeight;(r.width!==s||r.height!==a)&&(e(),r.width=s,r.height=a)},!0);S.set(t,s)}let o=C.get(t);return n.frame.read(o,!1,!0),()=>{(0,n.cancelFrame)(o);let e=E.get(t);if(!e||(e.delete(i),e.size))return;let r=C.get(t);C.delete(t),r&&(T(t).removeEventListener("scroll",r),P.get(t)?.(),window.removeEventListener("resize",r));let s=S.get(t);s&&((0,n.cancelFrame)(s),S.delete(t)),L.delete(t)}}let A=[[[[0,1],[1,1]],"entry"],[[[0,0],[1,0]],"exit"],[[[1,0],[0,1]],"cover"],[N,"contain"]],$={start:0,end:1};function _(e){if(!e)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(let[t,r]of A)if(function(e,t){let r=function(e){if(2!==e.length)return;let t=[];for(let r of e)if(Array.isArray(r))t.push(r);else{if("string"!=typeof r)return;let e=function(e){let t=e.trim().split(/\s+/);if(2!==t.length)return;let r=$[t[0]],s=$[t[1]];if(void 0!==r&&void 0!==s)return[r,s]}(r);if(!e)return;t.push(e)}return t}(e);if(!r)return!1;for(let e=0;e<2;e++){let s=r[e],a=t[e];if(s[0]!==a[0]||s[1]!==a[1])return!1}return!0}(e,t))return{rangeStart:`${r} 0%`,rangeEnd:`${r} 100%`}}let R=new Map;function B(e){let t={value:0},r=M(r=>{t.value=100*r[e.axis].progress},e);return{currentTime:t,cancel:r}}function W({source:e,container:t,...r}){let{axis:s}=r;e&&(t=e);let a=R.get(t);a||(a=new Map,R.set(t,a));let i=r.target??"self",l=a.get(i);l||(l={},a.set(i,l));let n=s+(r.offset??[]).join(",");return l[n]||(r.target&&c(r.target)?_(r.offset)?l[n]=new ViewTimeline({subject:r.target,axis:s}):l[n]=B({container:t,...r}):c()?l[n]=new ScrollTimeline({source:t,axis:s}):l[n]=B({container:t,...r})),l[n]}function O(e,{axis:t="y",container:r=document.scrollingElement,...s}={}){let a,i,n;if(!r)return l.noop;let d={axis:t,container:r,...s};return"function"==typeof e?function(e,t){return 2===e.length||t&&(t.target||t.offset)?M(r=>{e(r[t.axis].progress,r)},t):o(e,W(t))}(e,d):(a=W(d),i=d.target?_(d.offset):void 0,n=d.target?c(d.target)&&!!i:c(),e.attachTimeline({timeline:n?a:void 0,...i&&n&&{rangeStart:i.rangeStart,rangeEnd:i.rangeEnd},observe:e=>(e.pause(),o(t=>{e.time=e.iterationDuration*t},a))}))}var I=e.i(947414),V=e.i(674008);let U=()=>({scrollX:(0,s.motionValue)(0),scrollY:(0,s.motionValue)(0),scrollXProgress:(0,s.motionValue)(0),scrollYProgress:(0,s.motionValue)(0)}),H=e=>!!e&&!e.current;function F(e,r,s,a){return{factory:i=>{let l,n=()=>{H(s)||H(a)?t.microtask.read(n):l=O(i,{...r,axis:e,container:s?.current||void 0,target:a?.current||void 0})};return t.microtask.read(n),()=>{(0,t.cancelMicrotask)(n),l?.()}},times:[0,1],keyframes:[0,1],ease:e=>e,duration:1}}e.s(["useScroll",0,function({container:e,target:s,...l}={}){var n;let o=(0,I.useConstant)(U);n=l.offset,!("u"<typeof window)&&(s?(0,r.supportsViewTimeline)()&&!!_(n):(0,r.supportsScrollTimeline)())&&(o.scrollXProgress.accelerate=F("x",l,e,s),o.scrollYProgress.accelerate=F("y",l,e,s));let c=(0,i.useRef)(null),d=(0,i.useRef)(!1),u=(0,i.useCallback)(()=>(c.current=O((e,{x:t,y:r})=>{o.scrollX.set(t.current),o.scrollXProgress.set(t.progress),o.scrollY.set(r.current),o.scrollYProgress.set(r.progress)},{...l,container:e?.current||void 0,target:s?.current||void 0}),()=>{c.current?.()}),[e,s,JSON.stringify(l.offset)]);return(0,V.useIsomorphicLayoutEffect)(()=>
2{if(d.current=!1,!(H(e)||H(s)))return u();d.current=!0},[u]),(0,i.useEffect)(()=>{let r;if(!d.current)return;let i=()=>{let t=H(e),i=H(s);(0,a.invariant)(!t,"Container ref is defined but not hydrated","use-scroll-ref"),(0,a.invariant)(!i,"Target ref is defined but not hydrated","use-scroll-ref"),t||i||(r=u())};return t.microtask.read(i),()=>{(0,t.cancelMicrotask)(i),r?.()}},[u]),o}],310542);var G=e.i(887652);function z(e,t){let r=(0,G.useMotionValue)(t()),s=()=>r.set(t());return s(),(0,V.useIsomorphicLayoutEffect)(()=>{let t=()=>n.frame.preRender(s,!1,!0),r=e.map(e=>e.on("change",t));return()=>{r.forEach(e=>e()),(0,n.cancelFrame)(s)}}),r}function J(e,t){let r=(0,I.useConstant)(()=>[]);return z(e,()=>{r.length=0;let s=e.length;for(let t=0;t<s;t++)r[t]=e[t].get();return t(r)})}e.s(["useTransform",0,function e(t,r,a,i){if("function"==typeof t){let e;return s.collectMotionValues.current=[],t(),e=z(s.collectMotionValues.current,t),s.collectMotionValues.current=void 0,e}if(void 0!==a&&!Array.isArray(a)&&"function"!=typeof r){var l=t,n=r,o=a,c=i;let s=(0,I.useConstant)(()=>Object.keys(o)),d=(0,I.useConstant)(()=>({}));for(let t of s)d[t]=e(l,n,o[t],c);return d}let d="function"==typeof r?r:function(...e){let t=!Array.isArray(e[0]),r=t?0:-1,s=e[0+r],a=e[1+r],i=e[2+r],l=e[3+r],n=(0,f.interpolate)(a,i,l);return t?n(s):n}(r,a,i),u=Array.isArray(t)?J(t,d):J([t],([e])=>d(e)),g=Array.isArray(t)?void 0:t.accelerate;return g&&!g.isTransformed&&"function"!=typeof r&&Array.isArray(a)&&i?.clamp!==!1&&(u.accelerate={...g,times:r,keyframes:a,isTransformed:!0,...i?.ease?{ease:i.ease}:{}}),u}],895420)},591994,e=>{"use strict";e.i(486427);var t=e.i(83352),r=e.i(83411),s=e.i(287022);function a(e){return"number"==typeof e?e:parseFloat(e)}var i=e.i(271645),l=e.i(737806),n=e.i(887652),o=e.i(895420);e.s(["useSpring",0,function(e,c={}){return function(e,c={}){let{isStatic:d}=(0,i.useContext)(l.MotionConfigContext),u=()=>(0,r.isMotionValue)(e)?e.get():e;if(d)return(0,o.useTransform)(u);let g=(0,n.useMotionValue)(u());return(0,i.useInsertionEffect)(()=>(function(e,i,l={}){let n,o=e.get(),c=null,d=o,u="string"==typeof o?o.replace(/[\d.-]/g,""):void 0,g=()=>{c&&(c.stop(),c=null),e.animation=void 0},h=()=>{(()=>{let r=a(e.get()),s=a(d);if(r===s)return g();let i=c?c.getGeneratorVelocity():e.getVelocity();g(),c=new t.JSAnimation({keyframes:[r,s],velocity:i,type:"spring",restDelta:.001,restSpeed:.01,...l,onUpdate:n})})(),e.animation=c??void 0,e.events.animationStart?.notify(),c?.then(()=>{e.animation=void 0,e.events.animationComplete?.notify()})};if(e.attach((e,t)=>{d=e,n=e=>{var r,s;return t((r=e,(s=u)?r+s:r))},s.frame.postRender(h)},g),(0,r.isMotionValue)(i)){let t=!0===l.skipInitialAnimation,r=i.on("change",r=>{var s,a,i,l;t?(t=!1,e.jump((s=r,(a=u)?s+a:s),!1)):e.set((i=r,(l=u)?i+l:i))}),s=e.on("destroy",r);return()=>{r(),s()}}return g})(g,e,c),[g,JSON.stringify(c)]),g}(e,{type:"spring",...c})}],591994)},547877,e=>{"use strict";let t=e=>"string"==typeof e?e.trim():"";e.s(["resolveBlogCategory",0,(e,r="General")=>{let s=Array.isArray(e.categories)?e.categories.find(e=>!!e&&!!(t(e.name)||t(e.slug)||void 0!==e.id&&null!==e.id)):void 0,a=s?.id!==void 0&&s?.id!==null?String(s.id).trim():"",i=t(s?.name)||t(e.categoryName)||t(e.category)||a||r,l=t(s?.slug)||t(e.categorySlug)||i.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"")||"general";return{name:i,slug:l}}])}]);
3
4//# debugId=21d7a711-d0d3-6942-b9d1-5982b44fe701

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.