PageSourceSearch

https://grokimagineapp.com/assets/prompt-gallery-state-BZAZQHbM.js

js grokimagineapp.com collected 2026-10-08 06:16:24 UTC 4,993 bytes, 2 lines download raw bytes

1import{h as u,c as m,r as c,j as s}from"./main-Bel9aniX.js";import{S as x}from"./skeleton-CATTQG4R.js";const N=()=>"No prompts match the search criteria.",v=()=>"No prompts match the search criteria.",C=()=>"No prompts match the search criteria.",k=()=>"No prompts match the search criteria.",w=()=>"No prompts match the search criteria.",b=()=>"No prompts match the search criteria.",j=((r={},t={})=>{const e=t.locale??u();return e==="en"?N():e==="ko"?v():e==="es"?C():e==="fr"?k():e==="de"?w():b()}),M=()=>"No prompts found",S=()=>"No prompts found",P=()=>"No prompts found",E=()=>"No prompts found",z=()=>"No prompts found",O=()=>"No prompts found",R=((r={},t={})=>{const e=t.locale??u();return e==="en"?M():e==="ko"?S():e==="es"?P():e==="fr"?E():e==="de"?z():O()}),W=()=>"Please try again later.",F=()=>"Please try again later.",A=()=>"Please try again later.",L=()=>"Please try again later.",I=()=>"Please try again later.",T=()=>"Please try again later.",$=((r={},t={})=>{const e=t.locale??u();return e==="en"?W():e==="ko"?F():e==="es"?A():e==="fr"?L():e==="de"?I():T()}),G=()=>"Failed to load prompts",U=()=>"Failed to load prompts",B=()=>"Failed to load prompts",K=()=>"Failed to load prompts",V=()=>"Failed to load prompts",Y=()=>"Failed to load prompts",q=((r={},t={})=>{const e=t.locale??u();return e==="en"?G():e==="ko"?U():e==="es"?B():e==="fr"?K():e==="de"?V():Y()});const D=[["path",{d:"M9.58 5.548c.24 -.11 .492 -.207 .752 -.286c1.88 -.572 3.956 -.193 5.444 1c1.488 1.19 2.162 3.007 1.77 4.769h.99c1.913 0 3.464 1.56 3.464 3.486c0 .957 -.383 1.824 -1.003 2.454m-2.997 1.033h-11.343c-2.572 -.004 -4.657 -2.011 -4.657 -4.487c0 -2.475 2.085 -4.482 4.657 -4.482c.13 -.582 .37 -1.128 .7 -1.62",key:"svg-0"}],["path",{d:"M3 3l18 18",key:"svg-1"}]],H=m("outline","cloud-off","CloudOff",D);const J=[["path",{d:"M15 8h.01",key:"svg-0"}],["path",{d:"M7 3h11a3 3 0 0 1 3 3v11m-.856 3.099a2.991 2.991 0 0 1 -2.144 .901h-12a3 3 0 0 1 -3 -3v-12c0 -.845 .349 -1.608 .91 -2.153",key:"svg-1"}],["path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5",key:"svg-2"}],["path",{d:"M16.33 12.338c.574 -.054 1.155 .166 1.67 .662l3 3",key:"svg-3"}],["path",{d:"M3 3l18 18",key:"svg-4"}]],Q=m("outline","photo-off","PhotoOff",J),X=[{minWidth:1120,columns:5},{minWidth:860,columns:4},{minWidth:560,columns:3},{minWidth:0,columns:2}],p=5;function Z(r){return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)}function d(r){for(const t of X)if(r>=t.minWidth)return t.columns;return p}function ee(){return typeof window>"u"?p:d(window.innerWidth)}function _(r){const[t,e]=c.useState(p),i=c.useSyncExternalStore(Z,ee,()=>p);return c.useEffect(()=>{const o=r?.current;if(!o)return;const n=()=>{e(d(o.clientWidth))};if(n(),typeof ResizeObserver>"u")return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n);const l=new ResizeObserver(n);return l.observe(o),()=>l.disconnect()},[r]),r?t:i}function f(r,t,e){const i=Array.from({length:t},()=>[]),o=new Array(t).fill(0);for(const n of r){let l=0;for(let a=1;a<t;a+=1)o[a]<o[l]&&(l=a);i[l].push(n),o[l]+=e(n)}return i}function h({height:r}){return s.jsx(x,{className:"mb-4 w-full rounded-2xl",style:{height:`${r}px`}})}function ne(){const r=c.useRef(null),t=c.useMemo(()=>y(20,12648430),[]),e=_(r),i=c.useMemo(()=>f(t,e,o=>o.height),[t,e]);return s.jsx("div",{ref:r,className:"flex gap-4",children:i.map((o,n)=>s.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:o.map(l=>s.jsx(h,{height:l.height},l.id))},`skeleton-col-${n}`))})}function se(){const r=c.useRef(null),t=_(r),e=t*2,i=c.useMemo(()=>y(e,12245589),[e]),o=c.useMemo(()=>f(i,t,n=>n.height),[i,t]);return s.jsx("div",{ref:r,className:"flex gap-4",children:o.map((n,l)=>s.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:n.map(a=>s.jsx(h,{height:a.height},a.id))},`append-col-${l}`))})}function y(r,t){const e=te(t);return Array.from({length:r},(i,o)=>{const n=(e()+e())/2,l=Math.round(275+n*300);return{id:o,height:l}})}function te(r){let t=r>>>0;return()=>{t=t+1831565813>>>0;let e=Math.imul(t^t>>>15,1|t);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296}}function g({icon:r,title:t,description:e}){return s.jsxs("div",{className:"mx-auto mt-16 flex max-w-md flex-col items-center justify-center gap-4 roun
1ded-2xl border border-border/50 bg-card/40 px-10 py-8 text-center",children:[s.jsx("div",{className:"flex size-10 items-center justify-center rounded-full bg-muted text-muted-foreground",children:r}),s.jsx("h2",{className:"font-semibold text-base",children:t}),s.jsx("p",{className:"max-w-sm text-muted-foreground text-sm",children:e})]})}function le({title:r=q(),description:t}){return s.jsx(g,{icon:s.jsx(H,{className:"size-5"}),title:r,description:t||$()})}function ie({title:r=R(),description:t=j()}={}){return s.jsx(g,{icon:s.jsx(Q,{className:"size-5"}),title:r,description:t})}export{le as E,se as P,g as S,ne as a,ie as b,f as d,_ as u};
2//# sourceMappingURL=prompt-gallery-state-BZAZQHbM.js.map

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.