1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4873,7969],{12514:(e,t,r)=>{r.d(t,{i:()=>l});var o=r(64685),s=r(33671);function l(e){let t,r=(0,s.c)(3),{children:l,className:i}=e,a=void 0===i?"":i;return r[0]!==l||r[1]!==a?(t=(0,o.jsx)("div",{className:a,children:l}),r[0]=l,r[1]=a,r[2]=t):t=r[2],t}r(18169)},17969:(e,t,r)=>{r.d(t,{A:()=>o});let o=(0,r(1294).A)("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]])},44873:(e,t,r)=>{r.r(t),r.d(t,{Ideogram45Gallery:()=>v});var o=r(64685),s=r(33671),l=r(18169),i=r(17969),a=r(92082),n=r(5363),c=r(58062),m=r(54336),d=r(72897),p=r(30004),u=r(74421),x=r(59640),h=r(98680),g=r(12514),b=r(92375),f=r(41074),y=r(82636);let w={en:{showPrompt:"Show prompt",promptTitle:"Prompt",copyPrompt:"Copy prompt",copied:"Copied",close:"Close",sharedBy:"Prompt shared by",openPreview:"Open image preview"},zh:{showPrompt:"æ¥çæç¤ºè¯",promptTitle:"æç¤ºè¯",copyPrompt:"å¤å¶æç¤ºè¯",copied:"å·²å¤å¶",close:"å
³é",sharedBy:"æç¤ºè¯æ¥èª",openPreview:"æ¥ç大å¾"},ja:{showPrompt:"ããã³ãããè¦ã",promptTitle:"ããã³ãã",copyPrompt:"ããã³ãããã³ãã¼",copied:"ã³ãã¼ãã¾ãã",close:"éãã",sharedBy:"ããã³ããæä¾",openPreview:"ç»åãæ¡å¤§"},es:{showPrompt:"Ver prompt",promptTitle:"Prompt",copyPrompt:"Copiar prompt",copied:"Copiado",close:"Cerrar",sharedBy:"Prompt compartido por",openPreview:"Ampliar imagen"},pt:{showPrompt:"Ver prompt",promptTitle:"Prompt",copyPrompt:"Copiar prompt",copied:"Copiado",close:"Fechar",sharedBy:"Prompt compartilhado por",openPreview:"Ampliar imagem"}};function j(e){(0,u.y9)({source:y.IDEOGRAM_45_GENERATOR_SOURCE,example:{id:e.id,src:e.image.src,alt:e.image.alt,title:e.title,summary:e.description,prompt:e.prompt}})}function v(e){let t,r,c,m,d,u,y,v,_,P,k,C,z,T,A,D,B,S,$,E,M=(0,s.c)(66),{section:O,className:H}=e,I=(0,p.Ym)(),R=w[I.slice(0,2)]||w.en,[G,L]=(0,l.useState)(null);if(M[0]!==H||M[1]!==R||M[2]!==I||M[3]!==O.description||M[4]!==O.eyebrow||M[5]!==O.id||M[6]!==O.title||M[7]!==O.use_prompt_label){let e,s,l,p,h=(0,f.b)(I),w=O.use_prompt_label||"Use prompt";y=O.id||"gallery",M[16]!==H?(v=(0,b.cn)("bg-muted/35 border-border/60 border-y py-16 md:py-24",H),M[16]=H,M[17]=v):v=M[17],d="container",M[18]!==O.eyebrow?(e=O.eyebrow?(0,o.jsx)("p",{className:"text-primary mb-3 text-sm font-semibold tracking-[0.14em] uppercase",children:O.eyebrow}):null,M[18]=O.eyebrow,M[19]=e):e=M[19],M[20]!==O.title?(s=(0,o.jsx)("h2",{className:"text-foreground text-3xl font-semibold tracking-tight text-balance md:text-5xl",children:O.title}),M[20]=O.title,M[21]=s):s=M[21];let _=O.description||"";M[22]!==_?(l=(0,o.jsx)("p",{className:"text-muted-foreground mx-auto mt-4 max-w-2xl leading-7 text-pretty",dangerouslySetInnerHTML:{__html:_}}),M[22]=_,M[23]=l):l=M[23],M[24]!==l||M[25]!==e||M[26]!==s?(u=(0,o.jsx)(g.i,{children:(0,o.jsxs)("div",{className:"mx-auto max-w-3xl text-center",children:[e,s,l]})}),M[24]=l,M[25]=e,M[26]=s,M[27]=u):u=M[27],t=g.i,m=.12,r="mt-10 columns-1 gap-4 sm:columns-2 lg:columns-3 2xl:columns-4",M[28]!==R||M[29]!==w?(p=e=>(0,o.jsxs)("article",{className:"bg-card border-border/70 group mb-4 break-inside-avoid overflow-hidden rounded-2xl border shadow-sm transition duration-300 hover:shadow-lg",children:[(0,o.jsxs)("button",{type:"button",onClick:()=>L(e),"aria-label":`${R.openPreview}: ${e.title}`,className:"bg-muted focus-visible:ring-primary relative block w-full cursor-zoom-in overflow-hidden text-left focus-visible:ring-2 focus-visible:outline-none focus-visible:ring-inset",children:[(0,o.jsx)("img",{src:e.image.src,alt:e.image.alt,width:e.image.width,height:e.image.height,loading:"lazy",className:"h-auto w-full transition duration-500 group-hover:scale-[1.02]"}),(0,o.jsx)("span",{className:"bg-background/90 text-foreground pointer-events-none absolute top-3 left-3 rounded-full px-2.5 py-1 text-[11px] font-semibold opacity-0 shadow-sm backdrop-blur transition-opacity duration-200 group-focus-within:opacity-100 group-hover:opacity-100",children:"Ideogram 4.5"}),(0,o.jsx)("span",{className:"bg-background/90 text-foreground pointer-events-none absolute top-3 right-3 flex size-9 items-center justify-center rounded-full opacity-0 shadow-sm backdrop-blur transition-opacity duration-200 group-focus-within:opacity-100 group-hover:opacity-100",children:(0,o.jsx)(i.A,{className:"size-4"})})]}),(0,o.jsxs)("div",{className:"space-y-3 p-4",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)("h3",{className:"text-foreground font-semibold",children:e.title}),(0,o.jsx)("p",{className:"text-muted-foreground mt-1 text-sm leading-5",children:e.description})]}),(0,o.jsxs)("p",{className:"text-muted-foreground text-xs",children:[R.sharedBy," ",(0,o.jsxs)("a",{href:e.source.url,target:"_blank",rel:"noreferrer nofollow",className:"text-foreground inline-flex items-center gap-0.5 font-medium underline-offset-4 hover:underline",children:["@",e.source.handle,(0,o.jsx)(a.A,{className:"size-3"})]})]}),(0,o.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,o.jsxs)(x.$,{type:"button",size:"sm",variant:"outline",className:"min-h-10 flex-1 rounded-xl",onClick:()=>j(e),children:[(0,o.jsx)(n.A,{className:"size-4"}),w]}),(0,o.jsx)(N,{example:e,labels:R,useLabel:w})]})]})]},e.id),M[28]=R,M[29]=w,M[30]=p):p=M[30],c=h.map(p),M[0]=H,M[1]=R,M[2]=I,M[3]=O.description,M[4]=O.eyebrow,M[5]=O.id,M[6]=O.title,M[7]=O.use_prompt_label,M[8]=t,M[9]=r,M[10]=c,M[11]=m,M[12]=d,M[13]=u,M[14]=y,M[15]=v}else t=M[8],r=M[9],c=M[10],m=M[11],d=M[12],u=M[13],y=M[14],v=M[15];M[31]!==r||M[32]!==c?(_=(0,o.jsx)("div",{className:r,children:c}),M[31]=r,M[32]=c,M[33]=_):_=M[33],M[34]!==t||M[35]!==m||M[36]!==_?(P=(0,o.jsx)(t,{delay:m,children:_}),M[34]=t,M[35]=m,M[36]=_,M[37]=P):P=M[37];let U=null!==G;M[38]===Symbol.for("react.memo_cache_sentinel")?(k=e=>!e&&L(null),M[38]=k):k=M[38];let V=G?.title;M[39]!==V?(C=(0,o.jsx)(h.DialogTitle,{className:"px-1 pr-12 text-lg",children:V}),M[39]=V,M[40]=C):C=M[40];let q=G?.image.alt||G?.title;return M[41]!==q?(z=(0,o.jsx)(h.DialogDescription,{className:"sr-only",children:q}),M[41]=q,M[42]=z):z=M[42],M[43]!==G?(T=G?(0,o.jsx)("img",{src:G.image.src,alt:G.image.alt,width:G.image.width,height:G.image.height,loading:"eager",className:"max-h-[calc(100dvh-10rem)] max-w-full object-contain"}):null,M[43]=G,M[44]=T):T=M[44],M[45]!==T?(A=(0,o.jsx)("div",{className:"bg-muted flex max-h-[calc(100dvh-9rem)] min-h-0 items-center justify-center overflow-hidden rounded-xl p-2 sm:p-4",children:T}),M[45]=T,M[46]=A):A=M[46],M[47]!==C||M[48]!==z||M[49]!==A?(D=(0,o.jsxs)(h.DialogContent,{closeButtonClassName:"focus:ring-0 focus:ring-offset-0",className:"w-[calc(100vw-2rem)] max-w-4xl overflow-hidden rounded-2xl p-3 sm:p-5",children:[C,z,A]}),M[47]=C,M[48]=z,M[49]=A,M[50]=D):D=M[50],M[51]!==U||M[52]!==D?(B=(0,o.jsx)(h.Dialog,{open:U,onOpenChange:k,children:D}
1),M[51]=U,M[52]=D,M[53]=B):B=M[53],M[54]!==O.source_note?(S=O.source_note?(0,o.jsx)("p",{className:"text-muted-foreground mx-auto mt-8 max-w-2xl text-center text-xs leading-5",children:O.source_note}):null,M[54]=O.source_note,M[55]=S):S=M[55],M[56]!==B||M[57]!==S||M[58]!==d||M[59]!==u||M[60]!==P?($=(0,o.jsxs)("div",{className:d,children:[u,P,B,S]}),M[56]=B,M[57]=S,M[58]=d,M[59]=u,M[60]=P,M[61]=$):$=M[61],M[62]!==$||M[63]!==y||M[64]!==v?(E=(0,o.jsx)("section",{id:y,className:v,children:$}),M[62]=$,M[63]=y,M[64]=v,M[65]=E):E=M[65],E}function N(e){let t,r,i,p,u,g,b,f,y,w,v,N,_,P,k,C,z,T=(0,s.c)(43),{example:A,labels:D,useLabel:B}=e,[S,$]=(0,l.useState)(!1);T[0]!==A.prompt?(t=async()=>{try{await navigator.clipboard.writeText(A.prompt),$(!0),window.setTimeout(()=>$(!1),1600)}catch{}},T[0]=A.prompt,T[1]=t):t=T[1];let E=t,M=`${D.showPrompt} \xb7 ${A.title}`;T[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,o.jsx)(c.A,{className:"text-primary size-4","aria-hidden":"true"}),T[2]=r):r=T[2],T[3]!==D.showPrompt||T[4]!==M?(i=(0,o.jsx)(h.DialogTrigger,{asChild:!0,children:(0,o.jsxs)(x.$,{type:"button",size:"sm",variant:"outline","aria-haspopup":"dialog","aria-label":M,className:"min-h-10 flex-1 rounded-xl",children:[r,D.showPrompt]})}),T[3]=D.showPrompt,T[4]=M,T[5]=i):i=T[5],T[6]!==A.title||T[7]!==D.promptTitle?(p=(0,o.jsxs)(h.DialogTitle,{children:[D.promptTitle," \xb7 ",A.title]}),T[6]=A.title,T[7]=D.promptTitle,T[8]=p):p=T[8],T[9]===Symbol.for("react.memo_cache_sentinel")?(u=(0,o.jsx)(a.A,{className:"size-3"}),T[9]=u):u=T[9],T[10]!==A.source.handle||T[11]!==A.source.url?(g=(0,o.jsxs)("a",{href:A.source.url,target:"_blank",rel:"noreferrer nofollow",className:"text-foreground inline-flex items-center gap-0.5 font-medium underline-offset-4 hover:underline",children:["@",A.source.handle,u]}),T[10]=A.source.handle,T[11]=A.source.url,T[12]=g):g=T[12],T[13]!==D.sharedBy||T[14]!==g?(b=(0,o.jsxs)(h.DialogDescription,{children:[D.sharedBy," ",g]}),T[13]=D.sharedBy,T[14]=g,T[15]=b):b=T[15],T[16]!==p||T[17]!==b?(f=(0,o.jsxs)(h.DialogHeader,{className:"border-border border-b px-5 py-5 pr-14 text-left sm:px-6",children:[p,b]}),T[16]=p,T[17]=b,T[18]=f):f=T[18],T[19]!==A.prompt?(y=(0,o.jsx)("div",{className:"min-h-32 overflow-y-auto px-5 py-5 sm:px-6",children:(0,o.jsx)("p",{className:"text-foreground bg-muted/55 rounded-xl p-4 text-base leading-7 break-words whitespace-pre-wrap select-text",children:A.prompt})}),T[19]=A.prompt,T[20]=y):y=T[20],T[21]!==S?(w=S?(0,o.jsx)(m.A,{className:"size-4"}):(0,o.jsx)(d.A,{className:"size-4"}),T[21]=S,T[22]=w):w=T[22];let O=S?D.copied:D.copyPrompt;return T[23]!==E||T[24]!==w||T[25]!==O?(v=(0,o.jsxs)(x.$,{type:"button",variant:"outline",onClick:E,children:[w,O]}),T[23]=E,T[24]=w,T[25]=O,T[26]=v):v=T[26],T[27]!==A?(N=()=>j(A),T[27]=A,T[28]=N):N=T[28],T[29]===Symbol.for("react.memo_cache_sentinel")?(_=(0,o.jsx)(n.A,{className:"size-4"}),T[29]=_):_=T[29],T[30]!==N||T[31]!==B?(P=(0,o.jsx)(h.HM,{asChild:!0,children:(0,o.jsxs)(x.$,{type:"button",onClick:N,children:[_,B]})}),T[30]=N,T[31]=B,T[32]=P):P=T[32],T[33]!==v||T[34]!==P?(k=(0,o.jsxs)(h.Es,{className:"border-border bg-muted/30 border-t px-5 py-4 sm:px-6",children:[v,P]}),T[33]=v,T[34]=P,T[35]=k):k=T[35],T[36]!==y||T[37]!==k||T[38]!==f?(C=(0,o.jsxs)(h.DialogContent,{className:"max-h-[min(85dvh,42rem)] grid-rows-[auto_minmax(0,1fr)_auto] overflow-hidden rounded-2xl p-0 sm:max-w-2xl",children:[f,y,k]}),T[36]=y,T[37]=k,T[38]=f,T[39]=C):C=T[39],T[40]!==C||T[41]!==i?(z=(0,o.jsxs)(h.Dialog,{children:[i,C]}),T[40]=C,T[41]=i,T[42]=z):z=T[42],z}}}]);
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.