PageSourceSearch

https://airawath.com/_next/static/chunks/3940.ac838210522acd5d.js

js airawath.com collected 2026-10-02 01:23:46 UTC 6,101 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3940],{92451:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},10407:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},82023:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]])},32489:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},63940:function(e,t,r){r.r(t),r.d(t,{default:function(){return f}});var n=r(57437),o=r(2265),i=r(76501),l=r(63804),s=r(78693),a=r(5002),c=r(32489),d=r(92451),u=r(10407),p=r(82023),x=r(88781);function f(e){var t;let{open:r,generation:f,onClose:b,onUseAsBackground:h,onRefine:y}=e,[g,k]=(0,o.useState)(0);(0,o.useEffect)(()=>{f&&k(f.versionCount-1)},[f]);let m=f?Math.min(g,f.versionCount-1):0,j=null!==(t=null==f?void 0:f.versions[m])&&void 0!==t?t:null,v=(0,o.useCallback)(()=>{k(e=>Math.max(0,e-1))},[]),w=(0,o.useCallback)(()=>{f&&k(e=>Math.min(f.versionCount-1,e+1))},[f]);if((0,o.useEffect)(()=>{if(!r)return;let e=e=>{"ArrowLeft"===e.key?v():"ArrowRight"===e.key&&w()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[r,v,w]),!f||!j)return null;let C=m<f.versionCount-1;return(0,n.jsx)(i.Z,{open:r,onClose:b,closeAfterTransition:!0,slots:{backdrop:l.Z},slotProps:{backdrop:{sx:{backgroundColor:"rgba(0, 0, 0, 0.6)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"}}},children:(0,n.jsxs)(s.Z,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:{xs:"95vw",sm:"80vw",md:"60vw",lg:"50vw"},maxWidth:640,maxHeight:"90vh",bgcolor:"#fff",borderRadius:"24px",overflow:"hidden",display:"flex",flexDirection:"column",boxShadow:"0 24px 80px rgba(0, 0, 0, 0.25)",outline:"none"},children:[(0,n.jsxs)(s.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",px:3,py:2},children:[(0,n.jsxs)(a.Z,{sx:{fontFamily:x.ut,fontWeight:600,fontSize:16,color:"#080808"},children:["Version ",m+1," of ",f.versionCount]}),(0,n.jsx)("button",{type:"button",onClick:b,className:"flex items-center justify-center rounded-full transition-colors hover:bg-gray-100 cursor-pointer",style:{border:"none",background:"none",padding:6},children:(0,n.jsx)(c.Z,{size:20,color:"#080808"})})]}),(0,n.jsxs)(s.Z,{sx:{position:"relative",px:3,display:"flex",justifyContent:"center"},children:[m>0&&(0,n.jsx)("button",{type:"button",onClick:v,className:"absolute left-4 top-1/2 -translate-y-1/2 flex items-center justify-center rounded-full cursor-pointer transition-all hover:scale-110 z-10",style:{width:36,height:36,border:"none",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)",backdropFilter:"blur(4px)",WebkitBackdropFilter:"blur(4px)"},children:(0,n.jsx)(d.Z,{size:20,color:"#080808"})}),(0,n.jsx)("img",{src:j.url,alt:j.prompt||"AI generation",crossOrigin:"anonymous",style:{width:"100%",maxHeight:"50vh",objectFit:"contain",borderRadius:16,background:"#f3f4f6"}}),C&&(0,n.jsx)("button",{type:"button",onClick:w,className:"absolute right-4 top-1/2 -translate-y-1/2 flex items-center justify-center rounded-full cursor-pointer transition-all hover:scale-110 z-10",style:{width:36,height:36,border:"none",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)",backdropFilter:"blur(4px)",WebkitBackdropFilter:"blur(4px)"},children:(0,n.jsx)(u.Z,{size:20,color:"#080808"})})]}),f.versionCount>1&&(0,n.jsx)(s.Z,{sx:{display:"flex",justifyContent:"center",gap:"6px",mt:1.5},children:f.versions.map((e,t)=>(0,n.jsx)("button",{type:"button",onClick:()=>k(t),className:"cursor-pointer transition-all",style:{width:t===m?18:8,he
1ight:8,borderRadius:4,border:"none",backgroundColor:t===m?"#1C4B5A":"#d1d5db",padding:0}},t))}),(0,n.jsxs)(s.Z,{sx:{px:3,pt:1.5,pb:1},children:[(0,n.jsx)(a.Z,{sx:{fontFamily:x.ut,fontSize:13,color:"rgba(8, 8, 8, 0.6)",lineHeight:1.4,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:j.prompt}),(0,n.jsxs)(s.Z,{sx:{display:"flex",alignItems:"center",gap:1,mt:.5},children:[(0,n.jsx)(a.Z,{sx:{fontFamily:x.ut,fontSize:11,color:"rgba(8, 8, 8, 0.4)",textTransform:"capitalize"},children:j.model}),(0,n.jsx)("span",{style:{color:"rgba(8, 8, 8, 0.2)"},children:"\xb7"}),(0,n.jsx)(a.Z,{sx:{fontFamily:x.ut,fontSize:11,color:"rgba(8, 8, 8, 0.4)"},children:new Date(1e3*j.createdAt).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}),"edit"===j.type&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{style:{color:"rgba(8, 8, 8, 0.2)"},children:"\xb7"}),(0,n.jsx)(a.Z,{sx:{fontFamily:x.ut,fontSize:11,color:"#8B5CF6",fontWeight:500},children:"Refined"})]})]})]}),(0,n.jsxs)(s.Z,{sx:{display:"flex",gap:1.5,px:3,pb:3,pt:1},children:[(0,n.jsxs)("button",{type:"button",onClick:()=>y(f,m),className:"flex-1 flex items-center justify-center gap-1.5 rounded-xl cursor-pointer transition-colors hover:bg-gray-50",style:{border:"1.5px solid #d1d5db",borderRadius:12,background:"transparent",fontFamily:x.ut,fontSize:14,fontWeight:600,color:"#080808",padding:"10px 16px"},children:[(0,n.jsx)(p.Z,{size:15,color:"#8B5CF6"}),"Refine further"]}),(0,n.jsx)("button",{type:"button",onClick:()=>h(j.url),className:"flex-1 flex items-center justify-center gap-1.5 rounded-xl cursor-pointer transition-colors",style:{border:"none",borderRadius:12,background:"#1C4B5A",fontFamily:x.ut,fontSize:14,fontWeight:600,color:"#fff",padding:"10px 16px"},children:"Use as background"})]})]})})}}}]);

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.