PageSourceSearch

https://socialselling.ai/_next/static/chunks/52367.27dab01c047ae555.js

js socialselling.ai collected 2026-10-05 14:51:40 UTC 23,015 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[52367],{52367:function(e,t,a){a.r(t),a.d(t,{default:function(){return Z}});var r=a(57437),s=a(2265),l=a(79820),n=a(12381),i=a(40279),o=a(69174),d=a(15291),c=a(74291),m=a(60332),u=a(73247),x=a(15863),f=a(53113),g=a(82023),p=a(30401),h=a(78867),b=a(92735),y=a(18930),v=a(31047),j=a(96362),N=a(71837),w=a(14438),k=a(27648);let C={"flux-pro":"bg-purple-100 text-purple-700 dark:bg-purple-900/30 dark:text-purple-300","flux-pro-1.1":"bg-purple-100 text-purple-700 dark:bg-purple-900/30 dark:text-purple-300","flux-dev":"bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-300","flux-schnell":"bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-300",ideogram:"bg-orange-100 text-orange-700 dark:bg-orange-900/30 dark:text-orange-300","flux-kontext":"bg-pink-100 text-pink-700 dark:bg-pink-900/30 dark:text-pink-300","sdxl-turbo":"bg-teal-100 text-teal-700 dark:bg-teal-900/30 dark:text-teal-300"};function _(e){return e&&C[e]||"bg-gray-100 text-gray-600 dark:bg-gray-800 dark:text-gray-400"}function Z(){let[e,t]=(0,s.useState)([]),[a,C]=(0,s.useState)(0),[Z,z]=(0,s.useState)(!1),[R,S]=(0,s.useState)(!0),[A,D]=(0,s.use
1State)(!1),[F,I]=(0,s.useState)(0),[L,U]=(0,s.useState)(""),[V,Y]=(0,s.useState)(""),[T,O]=(0,s.useState)("all"),[P,B]=(0,s.useState)([]),[G,M]=(0,s.useState)(null),[E,q]=(0,s.useState)(null),[Q,H]=(0,s.useState)(null),J=(0,s.useRef)(null),K=(0,s.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{a?D(!0):S(!0);let r={limit:24,offset:e};L&&(r.search=L),T&&"all"!==T&&(r.model=T);let s=(await N.api.get("/image-gallery",{params:r})).data;s.success&&(a?t(e=>[...e,...s.data.images]):t(s.data.images),C(s.data.total),z(s.data.has_more),I(e+24))}catch(e){console.error("Failed to fetch gallery images:",e),w.A.error("Failed to load images")}finally{S(!1),D(!1)}},[L,T]),W=(0,s.useCallback)(async()=>{try{let e=(await N.api.get("/image-gallery/models")).data;e.success&&B(e.data.models)}catch(e){console.error("Failed to fetch models:",e)}},[]);(0,s.useEffect)(()=>{K(0),W()},[K,W]);let $=e=>{Y(e),J.current&&clearTimeout(J.current),J.current=setTimeout(()=>{U(e)},400)},X=async(e,a)=>{a&&a.stopPropagation(),q(e);try{(await N.api.delete("/image-gallery/".concat(e))).data.success&&(t(t=>t.filter(t=>t.id!==e)),C(e=>e-1),(null==G?void 0:G.id)===e&&M(null),w.A.success("Image deleted"))}catch(e){console.error("Failed to delete image:",e),w.A.error("Failed to delete image")}finally{q(null)}},ee=async(e,t,a)=>{a&&a.stopPropagation();try{await navigator.clipboard.writeText(e),H(t),w.A.success("URL copied to clipboard"),setTimeout(()=>H(null),2e3)}catch(e){w.A.error("Failed to copy URL")}},et=async(e,t,a)=>{a&&a.stopPropagation();try{let a=await fetch(e),r=await a.blob(),s=document.createElement("a");s.href=URL.createObjectURL(r);let l=(t||"ai-image").slice(0,40).replace(/[^a-zA-Z0-9]/g,"_");s.download="".concat(l,".png"),document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(s.href)}catch(t){window.open(e,"_blank")}};return(0,r.jsxs)("div",{className:"min-h-screen bg-gradient-to-br from-gray-50 via-white to-purple-50/30 dark:from-gray-950 dark:via-gray-900 dark:to-purple-950/20",children:[(0,r.jsxs)("div",{className:"max-w-[1600px] mx-auto px-4 sm:px-6 lg:px-8 py-6 space-y-6",children:[(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-2xl sm:text-3xl font-bold bg-gradient-to-r from-purple-600 to-pink-600 bg-clip-text text-transparent",children:"AI Image Gallery"}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:a>0?"".concat(a," images generated"):"Your AI-generated images appear here"})]}),(0,r.jsx)(k.default,{href:"/dashboard/ai-studio",children:(0,r.jsxs)(n.z,{className:"bg-gradient-to-r from-purple-600 to-pink-600 hover:from-purple-700 hover:to-pink-700 text-white shadow-md",children:[(0,r.jsx)(m.Z,{className:"h-4 w-4 mr-2"}),"Generate New Image"]})})]}),(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3",children:[(0,r.jsxs)("div",{className:"relative flex-1 max-w-md",children:[(0,r.jsx)(u.Z,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),(0,r.jsx)(i.I,{placeholder:"Search by prompt...",value:V,onChange:e=>$(e.target.value),className:"pl-10"})]}),P.length>0&&(0,r.jsxs)(d.Ph,{value:T,onValueChange:O,children:[(0,r.jsx)(d.i4,{className:"w-[180px]",children:(0,r.jsx)(d.ki,{placeholder:"All models"})}),(0,r.jsxs)(d.Bw,{children:[(0,r.jsx)(d.Ql,{value:"all",children:"All models"}),P.map(e=>(0,r.jsx)(d.Ql,{value:e,children:e},e))]})]})]}),R&&(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center py-20 gap-3",children:[(0,r.jsx)(x.Z,{className:"h-8 w-8 animate-spin text-purple-500"}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:"Loading your gallery..."})]}),!R&&0===e.length&&(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center py-20 gap-4",children:[(0,r.jsx)("div",{className:"w-20 h-20 rounded-2xl bg-gradient-to-br from-purple-100 to-pink-100 dark:from-purple-900/30 dark:to-pink-900/30 flex items-center justify-center",children:(0,r.jsx)(f.Z,{className:"h-10 w-10 text-purple-500"})}),(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("h3",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100",children:L?"No images match your search":"No images yet"}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground mt-1 max-w-sm",children:L?"Try a different search term or clear the filter.":"Generate your first AI image to start building your gallery."})]}),!L&&(0,r.jsx)(k.default,{href:"/dashboard/ai-studio",children:(0,r.jsxs)(n.z,{className:"mt-2 bg-gradient-to-r from-purple-600 to-pink-600 hover:from-purple-700 hover:to-pink-700 text-white",children:[(0,r.jsx)(g.Z,{className:"h-4 w-4 mr-2"}),"Generate Your First Image"]})})]}),!R&&e.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:e.map(e=>(0,r.jsxs)(l.Zb,{className:"group overflow-hidden cursor-pointer hover:shadow-lg transition-all duration-200 hover:-translate-y-0.5 border-gray-200/80 dark:border-gray-700/80",onClick:()=>M(e),children:[(0,r.jsxs)("div",{className:"relative aspect-square bg-gray-100 dark:bg-gray-800 overflow-hidden",children:[(0,r.jsx)("img",{src:e.thumbnail_url||e.s3_url,alt:e.prompt||"AI generated image",className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",loading:"lazy"}),(0,r.jsx)("div",{className:"absolute inset-0 bg-black/0 group-hover:bg-black/40 transition-all duration-200 flex items-center justify-center opacity-0 group-hover:opacity-100",children:(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)("button",{onClick:t=>ee(e.s3_url,e.id,t),className:"p-2 rounded-full bg-white/90 hover:bg-white text-gray-700 transition-colors",title:"Copy URL",children:Q===e.id?(0,r.jsx)(p.Z,{className:"h-4 w-4 text-green-600"}):(0,r.jsx)(h.Z,{className:"h-4 w-4"})}),(0,r.jsx)("button",{onClick:t=>et(e.s3_url,e.prompt,t),className:"p-2 rounded-full bg-white/90 hover:bg-white text-gray-700 transition-colors",title:"Download",children:(0,r.jsx)(b.Z,{className:"h-4 w-4"})}),(0,r.jsx)("button",{onClick:t=>X(e.id,t),className:"p-2 rounded-full bg-white/90 hover:bg-white text-red-600 transition-colors",title:"Delete",children:E===e.id?(0,r.jsx)(x.Z,{className:"h-4 w-4 animate-spin"}):(0,r.jsx)(y.Z,{className:"h-4 w-4"})})]})}),e.aspect_ratio&&(0,r.jsx)("div",{className:"absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity",children:(0,r.jsx)(o.C,{variant:"secondary",className:"bg-black/60 text-white border-0 text-[10px]",children:e.aspect_ratio})})]}),(0,r.jsxs)(l.aY,{className:"p-3 space-y-2",children:[(0,r.jsx)("p",{className:"text-xs text-gray-700 dark:text-gray-300 line-clamp-2 min-h-[2rem] leading-relaxed",children:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:80;return e?e.length>t?e.substring(0,t)+"...":e:"No prompt"}(e.prompt,100)}),(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[e.model&&(0,r.jsx)(o.C,{variant:"secondary",className:"text-[10px] px-1.5 py-0 ".concat(_(e.model)),children:e.model}),(0,r.jsxs)("span",{className:"text-[10px] text-muted-foreground flex items-center gap-1",children:[(0,r.jsx)(v.Z,{className:"h-3 w-3"}),function(e){if(!e)return"";let t=new Date(e),a=new Date,r=a.getTime()-t.getTime(),s=Math.floor(r/6e4),l=
1Math.floor(r/36e5),n=Math.floor(r/864e5);return s<1?"Just now":s<60?"".concat(s,"m ago"):l<24?"".concat(l,"h ago"):n<7?"".concat(n,"d ago"):t.toLocaleDateString("en-US",{month:"short",day:"numeric",year:t.getFullYear()!==a.getFullYear()?"numeric":void 0})}(e.created_at)]})]})]})]},e.id))}),Z&&(0,r.jsx)("div",{className:"flex justify-center pt-4 pb-8",children:(0,r.jsx)(n.z,{variant:"outline",onClick:()=>{K(F,!0)},disabled:A,className:"min-w-[200px]",children:A?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.Z,{className:"h-4 w-4 mr-2 animate-spin"}),"Loading..."]}):"Load More (".concat(a-e.length," remaining)")})})]})]}),(0,r.jsx)(c.Vq,{open:!!G,onOpenChange:e=>{e||M(null)},children:(0,r.jsx)(c.cZ,{className:"max-w-4xl w-[95vw] max-h-[90vh] overflow-hidden p-0",children:G&&(0,r.jsxs)("div",{className:"flex flex-col md:flex-row h-full max-h-[90vh]",children:[(0,r.jsx)("div",{className:"flex-1 bg-gray-950 flex items-center justify-center min-h-[300px] md:min-h-0 relative",children:(0,r.jsx)("img",{src:G.s3_url,alt:G.prompt||"AI generated image",className:"max-w-full max-h-[60vh] md:max-h-[85vh] object-contain"})}),(0,r.jsxs)("div",{className:"w-full md:w-[320px] flex flex-col border-l border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-900",children:[(0,r.jsxs)(c.fK,{className:"p-4 pb-2 border-b border-gray-100 dark:border-gray-800",children:[(0,r.jsxs)(c.$N,{className:"text-sm font-semibold flex items-center gap-2",children:[(0,r.jsx)(g.Z,{className:"h-4 w-4 text-purple-500"}),"Image Details"]}),(0,r.jsx)(c.Be,{className:"sr-only",children:"Details for the selected AI-generated image"})]}),(0,r.jsxs)("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:"Prompt"}),(0,r.jsx)("p",{className:"text-sm mt-1 text-gray-800 dark:text-gray-200 leading-relaxed",children:G.prompt||"No prompt recorded"})]}),G.model&&(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:"Model"}),(0,r.jsx)("div",{className:"mt-1",children:(0,r.jsx)(o.C,{variant:"secondary",className:_(G.model),children:G.model})})]}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[G.aspect_ratio&&(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:"Aspect Ratio"}),(0,r.jsx)("p",{className:"text-sm mt-1",children:G.aspect_ratio})]}),G.width&&G.height&&(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:"Size"}),(0,r.jsxs)("p",{className:"text-sm mt-1",children:[G.width," x ",G.height]})]})]}),G.created_at&&(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:"Generated"}),(0,r.jsx)("p",{className:"text-sm mt-1",children:new Date(G.created_at).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit"})})]})]}),(0,r.jsxs)("div",{className:"p-4 border-t border-gray-100 dark:border-gray-800 space-y-2",children:[(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(n.z,{variant:"outline",size:"sm",className:"flex-1",onClick:()=>ee(G.s3_url,G.id),children:Q===G.id?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Z,{className:"h-3.5 w-3.5 mr-1.5 text-green-600"})," Copied"]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.Z,{className:"h-3.5 w-3.5 mr-1.5"})," Copy URL"]})}),(0,r.jsxs)(n.z,{variant:"outline",size:"sm",className:"flex-1",onClick:()=>et(G.s3_url,G.prompt),children:[(0,r.jsx)(b.Z,{className:"h-3.5 w-3.5 mr-1.5"}),"Download"]})]}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsxs)(n.z,{variant:"outline",size:"sm",className:"flex-1",onClick:()=>window.open(G.s3_url,"_blank"),children:[(0,r.jsx)(j.Z,{className:"h-3.5 w-3.5 mr-1.5"}),"Open Original"]}),(0,r.jsxs)(n.z,{variant:"outline",size:"sm",className:"flex-1 text-red-600 hover:text-red-700 hover:bg-red-50 dark:hover:bg-red-900/20",onClick:()=>X(G.id),disabled:E===G.id,children:[E===G.id?(0,r.jsx)(x.Z,{className:"h-3.5 w-3.5 mr-1.5 animate-spin"}):(0,r.jsx)(y.Z,{className:"h-3.5 w-3.5 mr-1.5"}),"Delete"]})]})]})]})]})})})]})}},69174:function(e,t,a){a.d(t,{C:function(){return i}});var r=a(57437);a(2265);var s=a(90535),l=a(93448);let n=(0,s.j)("inline-flex items-center rounded-[4px] border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function i(e){let{className:t,variant:a,...s}=e;return(0,r.jsx)("div",{className:(0,l.cn)(n({variant:a}),t),...s})}},12381:function(e,t,a){a.d(t,{d:function(){return o},z:function(){return d}});var r=a(57437),s=a(2265),l=a(37053),n=a(90535),i=a(93448);let o=(0,n.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[4px] text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-[4px] px-3 text-xs",lg:"h-10 rounded-[4px] px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=s.forwardRef((e,t)=>
1{let{className:a,variant:s,size:n,asChild:d=!1,...c}=e,m=d?l.g7:"button";return(0,r.jsx)(m,{className:(0,i.cn)(o({variant:s,size:n,className:a})),ref:t,...c})});d.displayName="Button"},79820:function(e,t,a){a.d(t,{Ol:function(){return i},SZ:function(){return d},Zb:function(){return n},aY:function(){return c},eW:function(){return m},ll:function(){return o}});var r=a(57437),s=a(2265),l=a(93448);let n=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,l.cn)("rounded-[4px] border bg-card text-card-foreground shadow",a),...s})});n.displayName="Card";let i=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",a),...s})});i.displayName="CardHeader";let o=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,l.cn)("font-display font-semibold leading-none tracking-tight",a),...s})});o.displayName="CardTitle";let d=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",a),...s})});d.displayName="CardDescription";let c=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,l.cn)("p-6 pt-0",a),...s})});c.displayName="CardContent";let m=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,l.cn)("flex items-center p-6 pt-0",a),...s})});m.displayName="CardFooter"},74291:function(e,t,a){a.d(t,{$N:function(){return g},Be:function(){return p},Vq:function(){return o},cN:function(){return f},cZ:function(){return u},fK:function(){return x},hg:function(){return d}});var r=a(57437),s=a(2265),l=a(49027),n=a(93448),i=a(20653);let o=l.fC,d=l.xz,c=l.h_;l.x8;let m=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(l.aV,{ref:t,className:(0,n.cn)("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...s})});m.displayName=l.aV.displayName;let u=s.forwardRef((e,t)=>{let{className:a,children:s,overlayClassName:o,...d}=e;return(0,r.jsxs)(c,{children:[(0,r.jsx)(m,{className:o}),(0,r.jsxs)(l.VY,{ref:t,className:(0,n.cn)("fixed left-[50%] top-[50%] z-50 translate-x-[-50%] translate-y-[-50%] border bg-background shadow-lg duration-200","w-[calc(100%-1rem)] xs:w-[calc(100%-2rem)] sm:w-full max-w-lg","p-4 sm:p-6","max-h-[90vh] sm:max-h-[85vh]","rounded-lg sm:rounded-lg","flex flex-col","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",a),...d,children:[s,(0,r.jsxs)(l.x8,{className:"absolute right-3 top-3 sm:right-4 sm:top-4 z-50 rounded-full opacity-70 ring-offset-background transition-all hover:opacity-100 hover:bg-gray-100 dark:hover:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground bg-white dark:bg-gray-900 shadow-md border border-gray-200 dark:border-gray-700 p-1.5",children:[(0,r.jsx)(i.Pxu,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});u.displayName=l.VY.displayName;let x=e=>{let{className:t,...a}=e;return(0,r.jsx)("div",{className:(0,n.cn)("flex flex-col space-y-1.5 text-center sm:text-left flex-shrink-0",t),...a})};x.displayName="DialogHeader";let f=e=>{let{className:t,...a}=e;return(0,r.jsx)("div",{className:(0,n.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2 flex-shrink-0 mt-4",t),...a})};f.displayName="DialogFooter";let g=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(l.Dx,{ref:t,className:(0,n.cn)("font-display text-lg font-semibold leading-none tracking-tight",a),...s})});g.displayName=l.Dx.displayName;let p=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(l.dk,{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",a),...s})});p.displayName=l.dk.displayName},40279:function(e,t,a){a.d(t,{I:function(){return n}});var r=a(57437),s=a(2265),l=a(93448);let n=s.forwardRef((e,t)=>
1{let{className:a,type:s,error:n,...i}=e;return(0,r.jsx)("input",{type:s,"aria-invalid":n?"true":void 0,className:(0,l.cn)("flex h-9 w-full rounded-[4px] border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n&&"border-red-500 focus-visible:ring-red-500",a),ref:t,...i})});n.displayName="Input"},15291:function(e,t,a){a.d(t,{Bw:function(){return x},DI:function(){return c},Ph:function(){return d},Ql:function(){return g},i4:function(){return u},ki:function(){return m},n5:function(){return f}});var r=a(57437),s=a(2265),l=a(56873),n=a(40875),i=a(30401),o=a(93448);let d=l.fC,c=l.ZA,m=l.B4,u=s.forwardRef((e,t)=>{let{className:a,children:s,...i}=e;return(0,r.jsxs)(l.xz,{ref:t,className:(0,o.cn)("flex h-10 w-full items-center justify-between rounded-[4px] border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 dark:text-gray-100 px-3 py-2 text-sm r
1ing-offset-white dark:ring-offset-gray-950 placeholder:text-gray-500 dark:placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-gray-950 dark:focus:ring-gray-300 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",a),...i,children:[s,(0,r.jsx)(l.JO,{asChild:!0,children:(0,r.jsx)(n.Z,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=l.xz.displayName;let x=s.forwardRef((e,t)=>{let{className:a,children:s,position:n="popper",...i}=e;return(0,r.jsx)(l.h_,{children:(0,r.jsx)(l.VY,{ref:t,className:(0,o.cn)("relative z-50 min-w-[8rem] overflow-hidden rounded-[4px] border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 text-gray-950 dark:text-gray-100 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:n,...i,children:(0,r.jsx)(l.l_,{className:(0,o.cn)("p-1 max-h-[300px] overflow-y-auto","popper"===n&&"w-full min-w-[var(--radix-select-trigger-width)]"),children:s})})})});x.displayName=l.VY.displayName;let f=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(l.__,{ref:t,className:(0,o.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",a),...s})});f.displayName=l.__.displayName;let g=s.forwardRef((e,t)=>{let{className:a,children:s,...n}=e;return(0,r.jsxs)(l.ck,{ref:t,className:(0,o.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-gray-100 dark:focus:bg-gray-700 focus:text-gray-900 dark:focus:text-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...n,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(l.wU,{children:(0,r.jsx)(i.Z,{className:"h-4 w-4"})})}),(0,r.jsx)(l.eT,{children:s})]})});g.displayName=l.ck.displayName,s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(l.Z0,{ref:t,className:(0,o.cn)("-mx-1 my-1 h-px bg-gray-100 dark:bg-gray-700",a),...s})}).displayName=l.Z0.displayName},93448:function(e,t,a){a.d(t,{cn:function(){return l}});var r=a(61994),s=a(53335);function l(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,s.m6)((0,r.W)(t))}}}]);

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.