PageSourceSearch

https://usedalil.ai/_next/static/chunks/app/blog/page-c9cc3d3bf614fa31.js

js usedalil.ai collected 2026-10-05 13:11:27 UTC 12,180 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9404],{98486:function(e,t,r){Promise.resolve().then(r.bind(r,68540))},68540:function(e,t,r){"use strict";r.d(t,{default:function(){return x}});var i=r(57437),n=r(2265),s=r(48614),l=r(34478),a=r(27648);let o={"Giuseppe Manzone":"/images/founders/giuseppe.jpg","Sagnik Nath":"/images/founders/sagnik.jpg","Pulkit Suhasaria":"/images/founders/pulkit.jpg"};function d(e){return new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}function c(e){let{category:t}=e;return t?(0,i.jsx)("span",{className:"section-label w-fit",style:{fontSize:11,padding:"2px 8px"},children:t}):null}function u(e){let{size:t=30}=e;return(0,i.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,i.jsx)("path",{d:"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z"}),(0,i.jsx)("polyline",{points:"14 2 14 8 20 8"}),(0,i.jsx)("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),(0,i.jsx)("line",{x1:"16",y1:"17",x2:"8",y2:"17"})]})}function p(e){var t,r;let{article:n}=e;return(0,i.jsx)(a.default,{href:"/blog/".concat(n.slug),className:"group block mb-10",children:(0,i.jsx)("div",{className:"card overflow-hidden",style:{borderRadius:20},children:(0,i.jsxs)("div",{className:"grid md:grid-cols-2 gap-0",children:[(0,i.jsxs)("div",{className:"relative overflow-hidden flex items-center justify-center",style:{minHeight:300,background:"linear-gradient(135deg, #E7FCF4 0%, #D1FAE5 50%, #BAF5D6 100%)"},children:[(0,i.jsx)("div",{style:{position:"absolute",right:-40,top:-40,width:220,height:220,borderRadius:"50%",background:"rgba(22,167,108,0.12)"}}),(0,i.jsx)("div",{style:{position:"absolute",left:-20,bottom:-20,width:150,height:150,borderRadius:"50%",background:"rgba(22,167,108,0.08)"}}),(0,i.jsx)("div",{style:{position:"absolute",right:80,bottom:30,width:70,height:70,borderRadius:"50%",background:"rgba(22,167,108,0.14)"}}),n.image?(0,i.jsx)("img",{src:n.image,alt:n.title,className:"w-full h-full object-cover absolute inset-0"}):(0,i.jsx)("div",{style:{width:68,height:68,borderRadius:18,zIndex:1,background:"var(--green-primary)",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 12px 36px rgba(22,167,108,0.38)"},children:(0,i.jsx)(u,{size:30})}),(0,i.jsx)("span",{style:{position:"absolute",top:16,left:16,zIndex:2,background:"var(--green-primary)",color:"#fff",fontSize:11,fontWeight:600,padding:"4px 12px",borderRadius:9999,boxShadow:"0 2px 8px rgba(22,167,108,0.32)",letterSpacing:"0.02em"},children:"✦ Featured"})]}),(0,i.jsxs)("div",{className:"p-8 md:p-10 flex flex-col gap-4 justify-center",style:{borderLeft:"1px solid var(--border-card)"},children:[(0,i.jsx)(c,{category:n.category}),(0,i.jsx)("h2",{className:"font-heading font-medium text-2xl md:text-3xl leading-snug group-hover:text-[var(--green-primary)] transition-colors",style:{color:"var(--text-primary)",letterSpacing:"-0.02em"},children:n.title}),(0,i.jsx)("p",{className:"text-base leading-relaxed",style:{color:"var(--text-body)"},children:n.description}),(0,i.jsxs)("div",{className:"flex flex-wrap items-center gap-3 text-sm",style:{color:"var(--text-muted)"},children:[n.author&&(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[(0,i.jsx)("img",{src:null!==(r=o[null!==(t=n.author)&&void 0!==t?t:""])&&void 0!==r?r:"/images/founders/giuseppe.jpg",alt:n.author,style:{width:28,height:28,borderRadius:"50%",objectFit:"cover",border:"1.5px solid var(--border-card)"}}),(0,i.jsx)("span",{style:{color:"var(--text-secondary)",fontWeight:500},children:n.author})]}),(0,i.jsx)("span",{children:"\xb7"}),(0,i.jsx)("span",{children:d(n.date)}),(0,i.jsx)("span",{children:"\xb7"}),(0,i.jsx)("span",{style:{color:"var(--green-primary)",fontWeight:500},children:n.readingTime})]}),(0,i.jsx)("div",{children:(0,i.jsxs)("span",{className:"btn-primary",style:{display:"inline-flex",width:"fit-content",gap:6},children:["Read article ",(0,i.jsx)("span",{children:"→"})]})})]})]})})})}function h(e){var t,r;let{article:n}=e;return(0,i.jsx)(a.default,{href:"/blog/".concat(n.slug),className:"group block h-full",children:(0,i.jsxs)("div",{className:"card overflow-hidden h-full flex flex-col",style:{borderRadius:16},children:[(0,i.jsx)("div",{className:"relative flex items-center justify-center overflow-hidden",style:{height:160,background:"linear-gradient(135deg, var(--bg-green-tint) 0%, var(--bg-muted) 100%)",flexShrink:0},children:n.image?(0,i.jsx)("img",{src:n.image,alt:n.title,className:"w-full h-full object-cover absolute inset-0",style:{border:"1px solid #2a2a2a"}}):(0,i.jsx)("span",{className:"font-heading font-bold text-5xl",style:{color:"var(--green-light)",opacity:.45},children:n.title.charAt(0)})}),(0,i.jsxs)("div",{className:"p-5 flex flex-col gap-2.5 flex-1",children:[(0,i.jsx)(c,{category:n.category}),(0,i.jsx)("h3",{className:"font-heading font-medium text-base leading-snug group-hover:text-[var(--green-primary)] transition-colors line-clamp-2",style:{color:"var(--text-primary)"},children:n.title}),(0,i.jsx)("p",{className:"text-sm leading-relaxed line-clamp-2 flex-1",style:{color:"var(--text-body)"},children:n.description}),(0,i.jsxs)("div",{className:"flex items-center justify-between text-xs pt-3 mt-auto",style:{color:"var(--text-muted)",borderTop:"1px solid var(--border-default)"},children:[n.author?(0,i.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,i.jsx)("img",{src:null!==(r=o[null!==(t=n.author)&&void 0!==t?t:""])&&void 0!==r?r:"/images/founders/giuseppe.jpg",alt:n.author,style:{width:18,height:18,borderRadius:"50%",objectFit:"cover",border:"1px solid var(--border-card)"}}),(0,i.jsx)("span",{children:n.author.split(" ")[0]})]}):(0,i.jsx)("span",{children:d(n.date)}),(0,i.jsx)("span",{style:{color:"var(--green-primary)",fontWeight:500},children:n.readingTime})]})]})]})})}function x(e){let{articles:t}
1=e,[r,a]=(0,n.useState)("All"),[o,d]=(0,n.useState)(""),c=(0,n.useMemo)(()=>["All",...new Set(t.flatMap(e=>e.category?[e.category]:[]))],[t]),u=(0,n.useMemo)(()=>{var e;return null!==(e=t.find(e=>e.featured))&&void 0!==e?e:t[0]},[t]),x=(0,n.useMemo)(()=>{let e="All"===r?t:t.filter(e=>e.category===r);if(o.trim()){let t=o.toLowerCase();e=e.filter(e=>{var r;return e.title.toLowerCase().includes(t)||e.description.toLowerCase().includes(t)||(null!==(r=e.category)&&void 0!==r?r:"").toLowerCase().includes(t)})}return"All"===r&&!o.trim()&&u?e.filter(e=>e.slug!==u.slug):e},[t,r,u,o]),f="All"===r&&!o.trim()&&!!u;return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 mb-8",children:[(0,i.jsxs)("div",{className:"relative flex-1 max-w-xs",children:[(0,i.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{position:"absolute",left:12,top:"50%",transform:"translateY(-50%)",color:"var(--text-muted)",pointerEvents:"none"},children:[(0,i.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,i.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),(0,i.jsx)("input",{type:"text",placeholder:"Search articles…",value:o,onChange:e=>d(e.target.value),style:{width:"100%",paddingLeft:36,paddingRight:12,paddingTop:7,paddingBottom:7,borderRadius:9999,fontSize:13,fontFamily:"Inter, sans-serif",border:"1px solid var(--border-card)",background:"var(--bg-surface)",color:"var(--text-primary)",outline:"none"}})]}),(0,i.jsx)("div",{className:"flex flex-wrap gap-2",children:c.map(e=>(0,i.jsx)("button",{onClick:()=>a(e),style:{padding:"6px 16px",borderRadius:9999,fontSize:13,fontWeight:500,fontFamily:"Inter, sans-serif",cursor:"pointer",border:"1px solid",transition:"all 0.2s ease",background:r===e?"var(--green-primary)":"transparent",color:r===e?"#fff":"var(--text-body)",borderColor:r===e?"var(--green-primary)":"var(--border-card)"},children:e},e))})]}),(0,i.jsx)(s.M,{children:f&&(0,i.jsx)(l.E.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.35},children:(0,i.jsx)(p,{article:u})},"featured-banner")}),(0,i.jsx)(s.M,{mode:"wait",children:(0,i.jsx)(l.E.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},exit:{opacity:0},transition:{duration:.3},className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-5",children:x.map((e,t)=>(0,i.jsx)(l.E.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:.06*t,duration:.4},children:(0,i.jsx)(h,{article:e})},e.slug))},r)}),0===x.length&&(0,i.jsx)("div",{className:"text-center py-20",children:(0,i.jsx)("p",{style:{color:"var(--text-muted)"},children:"No articles in this category yet, check back soon."})}),0===t.length&&(0,i.jsx)("div",{className:"text-center py-20",children:(0,i.jsx)("p",{style:{color:"var(--text-muted)"},children:"No articles yet, check back soon."})})]})}},27648:function(e,t,r){"use strict";r.d(t,{default:function(){return n.a}});var i=r(72972),n=r.n(i)},48614:function(e,t,r){"use strict";r.d(t,{M:function(){return m}});var i=r(57437),n=r(2265),s=r(58881),l=r(53576),a=r(64252),o=r(45750);class d extends n.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function c(e){let{children:t,isPresent:r}=e,s=(0,n.useId)(),l=(0,n.useRef)(null),a=(0,n.useRef)({width:0,height:0,top:0,left:0}),{nonce:c}=(0,n.useContext)(o._);return(0,n.useInsertionEffect)(()=>{let{width:e,height:t,top:i,left:n}=a.current;if(r||!l.current||!e||!t)return;l.current.dataset.motionPopId=s;let o=document.createElement("style");return c&&(o.nonce=c),document.head.appendChild(o),o.sheet&&o.sheet.insertRule('\n          [data-motion-pop-id="'.concat(s,'"] {\n            position: absolute !important;\n            width: ').concat(e,"px !important;\n            height: ").concat(t,"px !important;\n            top: ").concat(i,"px !important;\n            left: ").concat(n,"px !important;\n          }\n        ")),()=>{document.head.removeChild(o)}},[r]),(0,i.jsx)(d,{isPresent:r,childRef:l,sizeRef:a,children:n.cloneElement(t,{ref:l})})}let u=e=>{let{children:t,initial:r,isPresent:s,onExitComplete:o,custom:d,presenceAffectsLayout:u,mode:h}=e,x=(0,l.h)(p),f=(0,n.useId)(),g=(0,n.useCallback)(e=>
1{for(let t of(x.set(e,!0),x.values()))if(!t)return;o&&o()},[x,o]),m=(0,n.useMemo)(()=>({id:f,initial:r,isPresent:s,custom:d,onExitComplete:g,register:e=>(x.set(e,!1),()=>x.delete(e))}),u?[Math.random(),g]:[s,g]);return(0,n.useMemo)(()=>{x.forEach((e,t)=>x.set(t,!1))},[s]),n.useEffect(()=>{s||x.size||!o||o()},[s]),"popLayout"===h&&(t=(0,i.jsx)(c,{isPresent:s,children:t})),(0,i.jsx)(a.O.Provider,{value:m,children:t})};function p(){return new Map}var h=r(49637);let x=e=>e.key||"";function f(e){let t=[];return n.Children.forEach(e,e=>{(0,n.isValidElement)(e)&&t.push(e)}),t}var g=r(11534);let m=e=>{let{children:t,custom:r,initial:a=!0,onExitComplete:o,presenceAffectsLayout:d=!0,mode:c="sync",propagate:p=!1}=e,[m,y]=(0,h.oO)(p),v=(0,n.useMemo)(()=>f(t),[t]),j=p&&!m?[]:v.map(x),b=(0,n.useRef)(!0),w=(0,n.useRef)(v),k=(0,l.h)(()=>new Map),[N,R]=(0,n.useState)(v),[C,S]=(0,n.useState)(v);(0,g.L)(()=>{b.current=!1,w.current=v;for(let e=0;e<C.length;e++){let t=x(C[e]);j.includes(t)?k.delete(t):!0!==k.get(t)&&k.set(t,!1)}},[C,j.length,j.join("-")]);let E=[];if(v!==N){let e=[...v];for(let t=0;t<C.length;t++){let r=C[t],i=x(r);j.includes(i)||(e.splice(t,0,r),E.push(r))}"wait"===c&&E.length&&(e=E),S(f(e)),R(v);return}let{forceRender:L}=(0,n.useContext)(s.p);return(0,i.jsx)(i.Fragment,{children:C.map(e=>{let t=x(e),n=(!p||!!m)&&(v===C||j.includes(t));return(0,i.jsx)(u,{isPresent:n,initial:(!b.current||!!a)&&void 0,custom:n?void 0:r,presenceAffectsLayout:d,mode:c,onExitComplete:n?void 0:()=>{if(!k.has(t))return;k.set(t,!0);let e=!0;k.forEach(t=>{t||(e=!1)}),e&&(null==L||L(),S(w.current),p&&(null==y||y()),o&&o())},children:e},t)})})}}},function(e){e.O(0,[2972,4478,2971,2117,1744],function(){return e(e.s=98486)}),_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.