1import{c as e,l as t,m as n,n as r,t as i}from"./Dyel_G7_.js";import{_n as a,gn as o,pn as s,vt as c}from"./DXWZxXDX.js";import{a as l}from"./DA5OfB-X.js";import{t as u}from"./xboHpoZJ.js";import{d,l as f,n as p,s as m}from"./CHQleysi.js";import{l as h,o as g,s as _}from"./Dm-bD_xC.js";import{n as v,t as y}from"./BxPKLjKl.js";import{n as b}from"./6W8LSlRf.js";import{t as x}from"./BOlPxojZ.js";import{u as S}from"./DVkJn-l0.js";var C=d(`image-plus`,[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),w=d(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),T=n(t(),1),E=[`image/jpeg`,`image/jpg`,`image/png`,`image/webp`],D=10485760,O=e();function k({value:e,onChange:t,previewUrl:n,title:r=`Upload Your Photo`,description:i=`Drag & drop your photo here`,hint:a=`JPG, PNG, WebP - Max 10MB`,showTakePhoto:o=!0,heightVariant:c=`default`,appearance:l=`default`,chooseFileLabel:u=`Choose File`,takePhotoLabel:d=`Take Photo`,removeLabel:f=`Remove image`,previewAlt:p=`Preview`,cameraTitle:m,cameraDescription:g,cameraPreviewLabel:v,cameraCaptureLabel:y,cameraCancelLabel:b,cameraLoadingLabel:x,cameraUnsupportedMessage:k,cameraPermissionDeniedMessage:A,cameraCaptureErrorMessage:j,className:M,maxFileSize:N=D,acceptedTypes:P=E,invalidTypeMessage:F=`Invalid file type. Please upload JPG, PNG, or WebP.`,fileTooLargeMessage:I=`File too large.`,toast:L}){let[R,z]=(0,T.useState)(null),[B,V]=(0,T.useState)(!1),[H,U]=(0,T.useState)(!1),W=(0,T.useRef)(null),G=(0,T.useId)(),K=n??R,q=(0,T.useCallback)(e=>P.includes(e.type)?e.size>N?I:null:F,[P,I,F,N]),J=(0,T.useCallback)(e=>{let n=q(e);if(n){L?.error?.(n);return}R&&URL.revokeObjectURL(R);let r=URL.createObjectURL(e);z(r),t(e)},[R,t,L,q]),Y=(0,T.useCallback)(e=>{let t=e?.[0];t&&(J(t),W.current&&(W.current.value=``))},[J]),ee=(0,T.useCallback)(e=>{J(e)},[J]),te=(0,T.useCallback)(()=>{R&&(URL.revokeObjectURL(R),z(null)),t(null)},[R,t]),X=(0,T.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),B||V(!0)},[B]),Z=(0,T.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),V(!1)},[]),Q=(0,T.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),V(!1),Y(e.dataTransfer.files)},[Y]),$=(0,T.useCallback)(()=>{W.current?.click()},[]);(0,T.useEffect)(()=>()=>{R&&URL.revokeObjectURL(R)},[R]);let ne=c===`compact`?`aspect-[2/1]`:`aspect-square`,re=c===`compact`?`p-4`:`p-8`;return(0,O.jsxs)(`div`,{className:M,children:[(0,O.jsx)(`label`,{htmlFor:G,className:`sr-only`,children:r}),(0,O.jsx)(`input`,{id:G,ref:W,type:`file`,accept:P.join(`,`),onChange:e=>Y(e.target.files),className:`sr-only`}),l===`compact-inline`?(0,O.jsxs)(`div`,{className:`flex items-stretch gap-3`,children:[K?(0,O.jsxs)(`div`,{className:`relative h-24 w-24 shrink-0 overflow-hidden rounded-xl border border-border bg-muted`,children:[(0,O.jsx)(`img`,{src:K,alt:p,className:`size-full object-cover`}),(0,O.jsx)(S,{type:`button`,variant:`ghost`,size:`icon`,"aria-label":f,onClick:te,className:`absolute right-1 top-1 size-7 rounded-full bg-background/90 text-foreground shadow-sm hover:bg-background`,children:(0,O.jsx)(s,{className:`size-4`})})]}):null,(0,O.jsxs)(`div`,{className:`flex h-24 min-w-0 flex-1 items-center gap-3 overflow-hidden rounded-xl border border-dashed px-4 py-3 transition-colors hover:cursor-pointer ${B?`border-primary bg-primary/5`:`border-border bg-background hover:border-primary hover:bg-primary/5`}`,onClick:$,onDragOver:X,onDragLeave:Z,onDrop:Q,children:[(0,O.jsx)(`div`,{className:`flex size-11 shrink-0 items-center justify-center rounded-xl bg-primary/10`,children:(0,O.jsx)(w,{className:`size-5 text-primary`})}),(0,O.jsxs)(`div`,{className:`min-w-0`,children:[(0,O.jsx)(`p`,{className:`text-sm font-semibold text-foreground`,children:K?u:r}),K?null:(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(`p`,{className:`mt-0.5 text-xs text-muted-foreground`,children:i}),(0,O.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:a})]})]})]})]}):K?(0,O.jsxs)(`div`,{className:`relative ${ne} overflow-hidden rounded-2xl border-2 border-dashed bg-card/50 transition-colors hover:cursor-pointer ${B?`border-primary bg-primary/5`:`border-primary/30`}`,onClick:$,onDragOver:X,onDragLeave:Z,onDrop:Q,children:[(0,O.jsx)(`img`,{src:K,alt:p,className:`size-full object-contain`}),(0,O.jsx)(S,{type:`button`,variant:`ghost`,size:`icon`,"aria-label":f,onClick:e=>{e.stopPropagation(),te()},className:`absolute right-2 top-2 rounded-full bg-background/80 text-foreground shadow-sm hover:bg-background`,children:(0,O.jsx)(s,{className:`h-4 w-4`})})]}):(0,O.jsxs)(`div`,{className:`flex ${ne} ${re} w-full flex-col items-center justify-center rounded-2xl border-2 border-dashed bg-card/50 transition-all duration-300 hover:cursor-pointer ${B?`border-primary bg-primary/5`:`border-border hover:border-primary hover:bg-primary/5`}`,onClick:$,onDragOver:X,onDragLeave:Z,onDrop:Q,children:[(0,O.jsx)(`div`,{className:`mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-primary/10`,children:(0,O.jsx)(w,{className:`h-7 w-7 text-primary`})}),(0,O.jsx)(`h3`,{className:`mb-1 text-base font-semibold text-foreground`,children:r}),(0,O.jsx)(`p`,{className:`mb-4 text-center text-sm text-muted-foreground`,children:i}),(0,O.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,O.jsxs)(S,{type:`button`,size:`sm`,className:`gap-1.5 hover:cursor-pointer`,onClick:e=>{e.stopPropagation(),W.current?.click()},children:[(0,O.jsx)(C,{className:`h-4 w-4`}),u]}),o&&(0,O.jsxs)(S,{type:`button`,variant:`outline`,size:`sm`,className:`gap-1.5 hover:cursor-pointer`,onClick:e=>{e.stopPropagation(),U(!0)},children:[(0,O.jsx)(h,{className:`h-4 w-4`}),d]})]}),(0,O.jsx)(`p`,{className:`mt-4 text-xs text-muted-foreground`,children:a})]}),o?(0,O.jsx)(_,{open:H,onOpenChange:U,onCapture:ee,title:m??d,description:g,previewLabel:v,captureLabel:y,cancelLabel:b,loadingLabel:x,unsupportedMessage:k,permissionDeniedMessage:A,captureErrorMessage:j,onError:L?.error}):null]})}function A(e){return(0,O.jsx)(k,{maxFileSize:g,fileTooLargeMessage:`File too large. Max 10MB.`,toast:p,...e})}function j({appearance:e=`default`,originalImage:t,mode:n,results:s,sidebarHairstyles:d=[],referenceImageUrl:p=null,selectedIndex:m,onSelectIndex:h,onTryAnother:g,onGenerateMore:_,onCh
1angePhotoStyle:y,onDownload:S,onDownloadAll:C,t:w,generateMoreCost:T=null,isAfterLoading:E=!1,isDownloading:D=!1,isGenerateMoreDisabled:k=!1,isActionDisabled:A=!1,sidebarItemSize:j=`md`}){let P=e===`brand`,F=s.length>0,I=F?s[m]:null,L=I?.status!==`succeeded`||!I.imageUrl,R=()=>{F&&h((m-1+s.length)%s.length)},z=()=>{F&&h((m+1)%s.length)},B=E?(0,O.jsx)(b,{className:`h-6 w-6 animate-spin`}):(0,O.jsx)(v,{className:`h-6 w-6`}),V=T!==null&&Number.isFinite(T)?T.toLocaleString(`en-US`):`--`,H=r(w.result.original)||`Original`,U=r(w.result.after)||`After`;if(e===`landing-workspace`)return(0,O.jsx)(N,{originalImage:t,mode:n,results:s,referenceImageUrl:p,selectedIndex:m,onSelectIndex:h,onGenerateMore:_,onChangePhotoStyle:y,onDownload:e=>{if(C){C(e);return}e.forEach(S)},t:w,formattedGenerateCost:V,isDownloading:D,isGenerateMoreDisabled:k,isActionDisabled:A});let W=j===`sm`?{grid:`grid-cols-4 gap-2 sm:grid-cols-6 lg:grid-cols-4`,item:`group relative size-14 overflow-hidden rounded-full border border-border text-left hover:cursor-pointer`,ring:P?`ring-2 ring-primary ring-offset-2 ring-offset-background`:`ring-2 ring-orange-500 ring-offset-2 ring-offset-background`,empty:`col-span-4 flex h-16 items-center justify-center rounded-full border border-dashed bg-muted/30 text-sm text-muted-foreground sm:col-span-6 lg:col-span-4`,imageSizes:`56px`}:{grid:`grid-cols-3 gap-2.5 sm:grid-cols-4 lg:grid-cols-2 lg:gap-3`,item:`group relative aspect-square overflow-hidden rounded-xl border border-border text-left hover:cursor-pointer lg:aspect-3/4`,ring:P?`ring-2 ring-primary ring-offset-2 ring-offset-background`:`ring-2 ring-orange-500 ring-offset-2 ring-offset-background`,empty:`col-span-3 flex h-24 items-center justify-center rounded-xl border border-dashed bg-muted/30 text-sm text-muted-foreground sm:col-span-4 lg:col-span-2 lg:h-40`,imageSizes:`(min-width: 1024px) 25vw, (min-width: 640px) 25vw, 33vw`};return(0,O.jsxs)(`div`,{className:`space-y-6`,children:[(0,O.jsxs)(`div`,{className:l(`flex flex-col gap-3 rounded-xl bg-card p-4 sm:flex-row sm:items-center sm:justify-between`,P?`rounded-lg border border-border`:`shadow-sm`),children:[(0,O.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,O.jsx)(`div`,{className:l(`flex h-10 w-10 items-center justify-center rounded-full`,P?E?`bg-primary-soft text-primary`:`bg-signal-lime text-ink`:E?`bg-orange-100 text-orange-600`:`bg-green-100 text-green-600`),children:B}),(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`h3`,{className:`font-semibold text-lg`,children:r(E?w.generate.generating:w.result.title)}),(0,O.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:E?r(w.generate.generating):i(w.result.subtitle,{count:s.length})})]})]}),(0,O.jsxs)(u,{variant:`outline`,onClick:g,className:`min-h-11 w-full gap-2 hover:cursor-pointer sm:w-auto`,disabled:A,children:[(0,O.jsx)(b,{className:`h-4 w-4`}),r(w.result.regenerate)]})]}),(0,O.jsxs)(`div`,{className:`grid gap-5 sm:gap-6 lg:grid-cols-12`,children:[(0,O.jsxs)(`div`,{className:`lg:col-span-8`,children:[(0,O.jsxs)(`div`,{className:l(`relative overflow-hidden bg-muted/30 p-3 sm:p-4`,P?`rounded-lg border border-border`:`rounded-2xl`),children:[(0,O.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-2 sm:gap-4`,children:[(0,O.jsxs)(`div`,{className:`relative aspect-4/5 overflow-hidden rounded-lg bg-white/50 sm:aspect-3/4`,children:[(0,O.jsx)(`span`,{className:l(`absolute top-3 left-3 z-10 px-3 py-1 text-xs font-medium sm:top-4 sm:left-4`,P?`rounded-sm bg-surface text-ink shadow-tight`:`rounded-full bg-white/90 shadow-sm`),children:H}),(0,O.jsx)(c,{src:t,alt:H,width:900,height:1200,layout:`constrained`,sizes:`(min-width: 1024px) 33vw, (min-width: 640px) 50vw, 100vw`,loading:`eager`,fetchpriority:`high`,className:`h-full w-full object-cover`})]}),(0,O.jsxs)(`div`,{className:l(`relative aspect-4/5 overflow-hidden rounded-lg sm:aspect-3/4`,P?`bg-primary-soft`:`bg-orange-50/50`),children:[(0,O.jsx)(`span`,{className:l(`absolute top-3 right-3 z-10 px-3 py-1 text-xs font-medium sm:top-4 sm:right-4`,P?`rounded-sm bg-signal-lime text-ink`:`rounded-full bg-orange-500 text-white shadow-sm`),children:U}),E||L?(0,O.jsxs)(`div`,{className:l(`absolute inset-0 flex flex-col items-center justify-center gap-3`,P?`bg-primary-soft`:`bg-orange-100/50`),children:[(0,O.jsx)(b,{className:l(`h-6 w-6 animate-spin`,P?`text-primary`:`text-orange-500`)}),(0,O.jsx)(`p`,{className:l(`text-sm font-medium`,P?`text-primary`:`text-orange-600`),children:r(w.generate.generating)})]}):(0,O.jsx)(c,{src:I.imageUrl??``,width:900,height:1200,layout:`constrained`,sizes:`(min-width: 1024px) 33vw, (min-width: 640px) 50vw, 100vw`,loading:`eager`,fetchpriority:`high`,alt:I.name,className:`h-full w-full object-cover`})]})]}),s.length>1&&F&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(u,{variant:`secondary`,size:`icon`,className:l(`absolute left-2 top-1/2 h-11 w-11 -translate-y-1/2 roun
1ded-full bg-white/90 hover:bg-white`,P?`border border-border shadow-tight`:`shadow-md`),onClick:R,children:(0,O.jsx)(a,{className:`h-5 w-5`})}),(0,O.jsx)(u,{variant:`secondary`,size:`icon`,className:l(`absolute right-2 top-1/2 h-11 w-11 -translate-y-1/2 rounded-full bg-white/90 hover:bg-white`,P?`border border-border shadow-tight`:`shadow-md`),onClick:z,children:(0,O.jsx)(o,{className:`h-5 w-5`})}),(0,O.jsx)(`div`,{className:`absolute bottom-4 left-0 right-0 flex justify-center gap-2`,children:s.map((e,t)=>(0,O.jsx)(`button`,{type:`button`,onClick:()=>h(t),className:`flex h-11 w-11 items-center justify-center rounded-full`,children:(0,O.jsx)(`span`,{className:l(`block h-2 w-2 rounded-full transition-all`,t===m?P?`w-4 bg-primary`:`w-4 bg-orange-500`:P?`bg-border-strong hover:bg-primary`:`bg-gray-300 hover:bg-gray-400`)})},t))})]})]}),(0,O.jsx)(`div`,{className:`mt-4 flex gap-3`,children:(0,O.jsxs)(u,{className:l(`min-h-11 flex-1 text-white hover:cursor-pointer`,P?`bg-primary hover:bg-primary-hover`:`bg-orange-500 hover:bg-orange-600`),size:`lg`,onClick:()=>I&&S(I.id),disabled:!I||E||I.status!==`succeeded`||!M(I.imageUrl),children:[(0,O.jsx)(f,{className:`mr-2 h-5 w-5`}),r(w.result.download)]})})]}),(0,O.jsxs)(`div`,{className:`space-y-6 lg:col-span-4`,children:[(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`h4`,{className:`mb-3 font-semibold`,children:r(n===`gallery`?w.hairstyle.title:w.reference?.referencePhoto)}),n===`gallery`?(0,O.jsx)(`div`,{className:l(`grid`,W.grid),children:d.length>0?d.map((e,t)=>(0,O.jsx)(`button`,{type:`button`,className:l(W.item,t===m&&W.ring),onClick:()=>h(t),children:(0,O.jsx)(c,{src:e.imageUrl,alt:e.name,width:320,height:427,layout:`constrained`,sizes:W.imageSizes,className:`h-full w-full object-cover`})},e.id)):(0,O.jsx)(`div`,{className:W.empty,children:r(w.hairstyle.empty)})}):(0,O.jsx)(`div`,{className:l(`grid gap-3`,`grid-cols-2`),children:(0,O.jsx)(`div`,{className:`relative aspect-9/10 overflow-hidden rounded-xl border border-border bg-muted/30`,children:p?(0,O.jsx)(c,{src:p,alt:r(w.reference?.referencePhoto),width:360,height:400,layout:`constrained`,sizes:`(min-width: 1024px) 25vw, 50vw`,className:`h-full w-full object-cover`}):(0,O.jsx)(`div`,{className:`flex h-full items-center justify-center text-sm text-muted-foreground`,children:r(w.upload.description)})})})]}),(0,O.jsxs)(`div`,{className:l(`border bg-card p-4`,P?`rounded-lg`:`rounded-xl`),children:[(0,O.jsx)(`h4`,{className:`mb-3 font-semibold`,children:r(w.result.wantMore)}),(0,O.jsxs)(`div`,{className:`space-y-3`,children:[(0,O.jsxs)(u,{className:l(`min-h-11 w-full text-white hover:cursor-pointer`,P?`bg-primary hover:bg-primary-hover`:`bg-orange-500 hover:bg-orange-600`),onClick:_,disabled:k,children:[(0,O.jsx)(x,{className:`mr-2 h-4 w-4`}),i(w.result.generateMore,{credits:V})]}),(0,O.jsxs)(u,{variant:`outline`,className:`min-h-11 w-full hover:cursor-pointer`,onClick:y,disabled:A,children:[(0,O.jsx)(b,{className:`mr-2 h-4 w-4`}),r(w.result.changePhoto)]})]})]})]})]})]})}function M(e){return!(!e||e.startsWith(`pending://`))}function N({originalImage:e,mode:t,results:n,referenceImageUrl:a,selectedIndex:o,onSelectIndex:s,onGenerateMore:c,onChangePhotoStyle:d,onDownload:p,t:h,formattedGenerateCost:g,isDownloading:_,isGenerateMoreDisabled:S,isActionDisabled:C}){let w=r(h.result.original)||`Original`,T=r(h.reference?.referencePhoto)||r(h.hairstyle.title),E=e=>r(h.card?.status?.[e])||(e===`canceled`?`Canceled`:e===`failed`?r(h.polling?.failed)||`Failed`:e===`succeeded`?`Succeeded`:r(h.generate.generating)||`Generating`),D=n.filter(e=>e.status===`succeeded`&&M(e.imageUrl)).map(e=>e.id),k=n.some(e=>e.status===`pending`||e.status===`processing`),A=[{id:`original`,kind:`context`,imageUrl:e,label:w},...t===`reference`&&a&&!k?[{id:`reference`,kind:`context`,imageUrl:a,label:T}]:[]];return(0,O.jsxs)(`div`,{className:`overflow-hidden bg-background`,children:[(0,O.jsxs)(`div`,{className:`border-b border-border px-4 py-4 sm:px-5`,children:[(0,O.jsx)(`h3`,{className:`text-lg font-semibold text-foreground`,children:r(h.result.title)}),(0,O.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:i(h.result.subtitle,{count:n.length})})]}),(0,O.jsxs)(`div`,{className:`flex min-w-0 flex-col bg-surface p-4 sm:p-5`,children:[(0,O.jsxs)(`div`,{className:`landing-tool-scrollbar flex snap-x gap-3 overflow-x-auto pb-3`,children:[A.map(e=>(0,O.jsxs)(`figure`,{className:`flex w-[78%] min-w-60 shrink-0 snap-start flex-col gap-2 sm:w-[48%] lg:w-[30%]`,children:[(0,O.jsx)(`div`,{className:`relative aspect-[4/5] overflow-hidden rounded-xl border border-border bg-muted`,children:(0,O.jsx)(`img`,{src:e.imageUrl,alt:e.label,className:`size-full object-contain`})}),(0,O.jsx)(`figcaption`,{className:`truncate text-sm font-medium text-foreground`,children:e.label})]},e.id)),n.map((e,t)=>{let n=e.status===`succeeded`&&M(e.imageUrl),r=e.status===`failed`||e.status===`canceled`;return(0,O.jsxs)(`button`,{type:`button`,onClick:()=>s(t),"aria-pressed":o===t,className:`flex w-[78%] min-w-60 shrink-0 snap-start flex-col gap-2 text-left sm:w-[48%] lg:w-[30%]`,children:[(0,O.jsx)(`span`,{className:l(`relative aspect-[4/5] overflow-hidden rounded-xl border-2 bg-muted transition-colors`,o===t?`border-primary`:`border-transparent hover:border-primary/40`),children:n?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(`img`,{src:e.imageUrl??``,alt:e.name,className:`size-full object-contain`}),(0,O.jsxs)(`span`,{className:`absolute right-2 top-2 flex items-center gap-1 rounded-full bg-lime-400 px-2 py-1 text-xs font-semibold text-black`,children:[(0,O.jsx)(v,{className:`size-3.5`,"aria-hidden":!0}),E(e.status)]})]}):(0,O.jsx)(`output`,{className:`flex size-full flex-col items-center justify-center gap-3 px-4 text-center`,children:r?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(`span`,{className:`flex size-12 items-center justify-center rounded-full bg-destructive/10 text-destructive`,children:(0,O.jsx)(y,{className:`size-6`,"aria-hidden":!0})}),(0,O.jsx)(`span`,{className:`text-sm font-semibold text-destructive`,children:E(e.status)})]}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(`span`,{className:`flex size-12 items-center justify-center rounded-full bg-primary/10 text-primary`,children:(0,O.jsx)(m,{className:`size-6 animate-spin`,"aria-hidden":!0})}),(0,O.jsx)(`span`,{className:`text-sm font-semibold text-primary`,children:E(e.status)})]})})}
1),e.status===`pending`||e.status===`processing`?null:(0,O.jsx)(`span`,{className:`truncate text-sm font-medium text-foreground`,children:e.name})]},e.id)})]}),(0,O.jsxs)(`div`,{className:`mt-3 grid gap-3 border-t border-border pt-4 sm:grid-cols-3`,children:[(0,O.jsxs)(u,{className:`min-h-12 w-full gap-2 bg-primary text-primary-foreground hover:cursor-pointer hover:bg-primary/90`,onClick:()=>p(D),disabled:D.length===0||_,"aria-busy":_,children:[_?(0,O.jsx)(m,{className:`size-5 animate-spin`,"aria-hidden":!0}):(0,O.jsx)(f,{className:`size-5`,"aria-hidden":!0}),r(h.result.download),_?`â¦`:null]}),(0,O.jsxs)(u,{variant:`outline`,className:`min-h-12 w-full gap-2 hover:cursor-pointer`,onClick:c,disabled:S,children:[(0,O.jsx)(x,{className:`size-5`,"aria-hidden":!0}),i(h.result.generateMore,{credits:g})]}),(0,O.jsxs)(u,{variant:`outline`,className:`min-h-12 w-full gap-2 hover:cursor-pointer`,onClick:d,disabled:C,children:[(0,O.jsx)(b,{className:`size-5`,"aria-hidden":!0}),r(h.result.changePhoto)]})]})]})]})}export{A as n,w as r,j as 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.