PageSourceSearch

https://imagineers.studio/_next/static/chunks/app/%5Bapp%5D/page-f6112946cb0c0490.js

js imagineers.studio collected 2026-10-09 17:38:07 UTC 36,614 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2157],{66278:function(e,t,a){var s={"./3dartist/config.web.json":[24294,4294],"./animator/config.web.json":[42307,2307],"./animeify/config.web.json":[91267,1267],"./animelineart/config.web.json":[95286,5286],"./artify/config.web.json":[10446,446],"./artvatar/config.web.json":[79137,9137],"./avatarify/config.web.json":[75467,5467],"./caricature/config.web.json":[59230,9230],"./cartoonfilter/config.web.json":[74761,4761],"./cartoonify/config.web.json":[89775,9775],"./cartoonist/config.web.json":[56097,6097],"./childrensbook/config.web.json":[85815,5815],"./colorify/config.web.json":[68723,8723],"./coloringbook/config.web.json":[45780,5780],"./comicbook/config.web.json":[30601,601],"./crochetcraft/config.web.json":[19335,9335],"./cyberavatar/config.web.json":[78192,8192],"./doodlecraft/config.web.json":[42656,2656],"./emoartist/config.web.json":[48546,8546],"./faceartist/config.web.json":[81601,1601],"./faceswapit/config.web.json":[77975,7975],"./framefusion/config.web.json":[2158,2158],"./headshotpro/config.web.json":[89182,9182],"./iconwiz/config.web.json":[47516,7516],"./illusionist/config.web.json":[35299,5299],"./imageascii/config.web.json":[98860,6872],"./imagegenie/config.web.json":[14177,4177],"./impressionistart/config.web.json":[18623,8623],"./instantaiart/config.web.json":[77922,7922],"./kebabletters/config.web.json":[29126,9126],"./letterart/config.web.json":[33512,3512],"./lineart/config.web.json":[8611,8611],"./logogen/config.web.json":[30331,331],"./melodymuse/config.web.json":[99014,9014],"./neonartist/config.web.json":[59730,9730],"./oilpaintingeffect/config.web.json":[25341,5341],"./paintsplashart/config.web.json":[28958,8958],"./photostylist/config.web.json":[4975,4975],"./pixelartist/config.web.json":[59103,9103],"./pixelify/config.web.json":[76731,6731],"./pixelperfect/config.web.json":[96294,6294],"./productphoto/config.web.json":[7604,7604],"./quickgen/config.web.json":[69150,9150],"./realistic/config.web.json":[82848,2848],"./reimagine/config.web.json":[72308,2308],"./renaissanceavatarparadise/config.web.json":[21006,1006],"./scifigen/config.web.json":[60363,363],"./scribblediffusion/config.web.json":[44115,4115],"./secretink/config.web.json":[9659,9659],"./sketchify/config.web.json":[51753,1753],"./slidesgen/config.web.json":[33254,3254],"./stickermaker/config.web.json":[42090,2090],"./sunglassify/config.web.json":[95269,5269],"./textanywhere/config.web.json":[50831,831],"./textart/config.web.json":[3414,3414],"./tshirtdesigner/config.web.json":[67377,7377],"./voxelart/config.web.json":[54675,4675],"./voxellab/config.web.json":[99242,9242],"./watercolorart/config.web.json":[15681,5681],"./youthful/config.web.json":[66371,6371]};function i(e){if(!a.o(s,e))return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=s[e],i=t[0];return a.e(t[1]).then(function(){return a.t(i,19)})}i.keys=function(){return Object.keys(s)},i.id=66278,e.exports=i},87567:function(e,t,a){Promise.resolve().then(a.bind(a,98220)),Promise.resolve().then(a.bind(a,27915)),Promise.resolve().then(a.bind(a,14024)),Promise.resolve().then(a.bind(a,99782)),Promise.resolve().then(a.t.bind(a,65878,23)),Promise.resolve().then(a.t.bind(a,72972,23))},61299:function(e,t,a){"use strict";a.d(t,{Ge:function(){return i},_j:function(){return s}});let s={emojiartist:"emoartist",stickergen:"stickermaker","3dartist":"3dartist",paintify:"artify",cartoonist:"cartoonist",iconwiz:"iconwiz",logogen:"logogen",childrensbook:"childrensbook",coloringbook:"coloringbook",pixelartist:"pixelartist",voxellab:"voxellab",ultrareal:"imagegenie",caricaturemaker:"caricature",pixelartstudio:"pixelify",mockupstudio:"productphoto",renaissanceavatar:"renaissanceavatarparadise",pixelenhancer:"pixelperfect",pixellineart:"lineart",faceswap:"faceswapit",textart:"textart",profilephoto:"headshotpro",animator:"animator",quickgen:"quickgen",illusionist:"illusionist",reimagine:"reimagine",realistic:"realistic",sketchtolife:"scribblediffusion"};function i(e){return s[e]||e}Object.entries(s).reduce((e,t)=>
1{let[a,s]=t;return e[s]||(e[s]=a),e},{})},99782:function(e,t,a){"use strict";a.d(t,{default:function(){return r}});var s=a(57437),i=a(27648),n=a(94508),o=a(99376),r=e=>{var t;let{children:a,href:r,className:l,end:c=!0,disabled:d=!1,onClick:u,...m}=e,p=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],a=(0,o.usePathname)()||"/";if(!e||e.startsWith("http://")||e.startsWith("https://"))return!1;let s=e.split("?")[0].split("#")[0]||"/";return t||"/"===s?a===s:a===s||a.startsWith("".concat(s,"/"))}("string"==typeof r?r:null!==(t=r.pathname)&&void 0!==t?t:"",c);return(0,s.jsx)(i.default,{href:r,...m,"aria-current":p&&!d?"page":void 0,"aria-disabled":d||void 0,tabIndex:d?-1:m.tabIndex,onClick:e=>{if(d){e.preventDefault();return}null==u||u(e)},className:(0,n.cn)("h-10 py-2.5 px-4 text-center rounded-lg duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",p&&!d&&"bg-primary/10 text-primary font-medium",d&&"cursor-not-allowed pointer-events-none opacity-60",l),children:a})}},17871:function(e,t,a){"use strict";a.d(t,{f:function(){return r}});var s=a(57437),i=a(33145),n=a(2265),o=a(33276);function r(e){let{image:t,onClick:a,href:r,ref:l}=e,[c,d]=(0,n.useState)(!0),[u,m]=(0,n.useState)(!1),[p,g]=(0,n.useState)(!1),[f,h]=(0,n.useState)(!1),b=/\.(mp4|webm|mov)(\?|#|$)/i.test(t.url),x=b?t.url:void 0,v=b?t.url.replace(/\.(mp4|webm|mov)(\?|#|$)/i,".png"):void 0;if((0,n.useEffect)(()=>{if(b&&v){let e=new window.Image;e.onload=()=>g(!1),e.onerror=()=>g(!0),e.src=v}},[b,v]),b&&(p||f))return null;let y="group aspect-square relative block overflow-hidden rounded-xl ring-1 ring-gray-900/5 bg-gray-100 transition-shadow duration-300 hover:shadow-lg hover:shadow-primary-500/10 hover:ring-primary-300 "+(a||r?"cursor-pointer":"cursor-default"),w=(0,s.jsxs)("div",{ref:l,className:"w-full h-full",children:[c&&(0,s.jsx)("div",{className:"absolute inset-0 bg-gray-200 animate-pulse"}),b&&x?(0,s.jsxs)("div",{className:"absolute inset-0",children:[(0,s.jsx)("video",{poster:v,className:"w-full h-full object-cover "+(c?"opacity-0":"opacity-100"),preload:"metadata",muted:!0,playsInline:!0,onLoadedMetadata:()=>d(!1),onError:()=>{h(!0),d(!1)},children:(0,s.jsx)("source",{src:x,type:"video/mp4"})}),(0,s.jsx)("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:(0,s.jsx)("div",{className:"bg-black/60 text-white rounded-full p-3",children:(0,s.jsx)(o.Z,{size:24,fill:"currentColor"})})})]}):u?(0,s.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-gradient-to-br from-gray-100 to-gray-200",children:(0,s.jsx)("div",{className:"text-gray-700 text-xs font-medium px-3 text-center",children:"Preview unavailable"})}):(0,s.jsx)(i.default,{src:t.url,alt:t.title||"Generated image",f
1ill:!0,sizes:"(max-width: 640px) 50vw, (max-width: 1024px) 33vw, 20vw",onLoad:()=>d(!1),onError:()=>{m(!0),d(!1)},onContextMenu:e=>e.preventDefault(),className:"object-cover "+(a?"transition-transform duration-300 hover:scale-110":"")+(c?" opacity-0":" opacity-100")})]});return r?(0,s.jsx)("a",{href:r,className:y,onClick:e=>{a&&!(r&&(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||0!==e.button))&&(e.preventDefault(),a(t))},children:w}):(0,s.jsx)("div",{className:y,onClick:()=>null==a?void 0:a(t),children:w})}},27915:function(e,t,a){"use strict";a.d(t,{ImageGalleryComponent:function(){return K}});var s,i=a(57437),n=a(2265),o=a(95186),r=a(62869),l=a(15785),c=a(24454),d=a(65934),u=a(20341),m=a(69064),p=a(11540),g=a(88870),f=a(52780),h=a(17871);a(99376);var b=a(61299),x=a(93340),v=a(40257);let y=globalThis,w=null!==(s=y.prisma)&&void 0!==s?s:new x.PrismaClient({datasourceUrl:function(e){if(!e)return e;let t=[];return(/[?&]connection_limit=/.test(e)||t.push("connection_limit=".concat(v.env.PRISMA_CONNECTION_LIMIT||"5")),/[?&]pool_timeout=/.test(e)||t.push("pool_timeout=".concat(v.env.PRISMA_POOL_TIMEOUT||"20")),t.length)?e+(e.includes("?")?"&":"?")+t.join("&"):e}(v.env.GLOBAL_DATABASE_URL)});y.prisma=w;var j=JSON.parse('{"inputs":{"prompt":{"_type":"text","label":"Prompt","placeholder":"Describe your emoji... (e.g. cat with sunglasses)","required":true}},"messages":{"loading_title":"Creating your emoji","loading_text":"This usually takes a few seconds"}}'),_=JSON.parse('{"dc":true,"noun":"image","tabs":["Generate"],"button":{"label":"Make realistic","batch_label":"Make {count} images realistic","update_label":"Make realistic and replace","batch_processing_label":"Making images realistic...","check_for_images_label":"Check for images","replace_existing_image":true},"inputs":{"image":{"id":"image","_type":"image","label":"","props":{"variant":"secondary","useBase64":false,"selectedLabel":"Uploaded image","showClearButton":false,"hideIfFileExists":true,"showFileInputItem":true,"hideSelectedButton":true},"_value":"","errors":{"empty":"Please upload an image."},"multiline":true,"selection":true,"validation":{"nullable":false},"description":"Maximum file size: 10MB. Accepted file formats: PNG, JPG, JPEG.","show_preview":true,"submit_on_upload":false},"instructions":{"id":"instructions","_type":"text","label":"Custom instructions","props":{"minRows":2},"_value":"","multiline":true,"selection":false,"validation":{"nullable":true,"maxLength":150},"payload_key":"instructions","placeholder":"Enhance colors, add dramatic lighting...","preserve_input":true}},"output":"image","library":{"tab":"Explore","enabled":false,"results":20},"loading":{"cancelable":true,"durationEstimate":20},"messages":{"instruction":"Upload your image or select one in your design to make it realistic.","loading_text":"Please wait, this may take a few seconds","loading_title":"Making your image more realistic","not_supported":"[warn]Realistic currently doesn’t support this element. Please try an image instead.","batch_processing":{"success":"Successfully made {count} images more realistic!","processing":"Making images more realistic...","found_images":"Found {count} image{plural} on this page that can be made realistic","no_images_found":"No processable images found on this page","partial_success":"Made {processed} of {total} images realistic"},"multiple_images_selected":"**Multiple images selected.** Please only select one image at a time."},"short_id":"realistic","analytics":{"enabled":false,"mixpanel":"c2f2b0b0b0b0b0b0b0b0b0b0b0b0b0b0"},"output_review":{"label":"Generated image","start_over_label":"Generate again","clear_inputs_on_back":true,"regenerate_on_start_over":true},"output_mimetype":"image/png","batch_processing":{"enabled":false,"max_images":5,"button_variant":"secondary","auto_refresh_count":true,"require_confirmation":false,"show_progress_toasts":true,"delay_between_requests":500},"enable_selection":true,"enable_status_check":true,"enable_output_review":true,"enable_batch_processing":false}'),N=JSON.parse('{"inputs":{"prompt":{"_type":"text","label":"Describe your music","placeholder":"New Orleans street jazz","required":true,"validation":{"maxLength":300},"errors":{"empty":"Please enter a music description."}},"duration":{"_type":"slider","label":"Duration (seconds)","description":"The maximum duration is {max_duration} seconds.","min":1,"max":15,"step":1,"_value":5,"variables":{"max_duration":15}}},"messages":{"instruction":"Describe the music you want, and set how long it should be.","loading_title":"Generating your melody","loading_text":"Please wait as we bring your idea to life."}}'),k=JSON.parse('{"name":"LogoGen","backend_host":"https://logogen.api.imagineers.studio","messages":{"loading_title":"Generating your logo","loading_text":"Please wait, this may take a few seconds","instruction":"","not_supported":"[warn]LogoGen currently doesn’t support this element. Please try an image instead."},"loading":{"cancelable":true,"durationEstimate":25},"noun":"logo","short_id":"logo","enable_selection":false,"inputs":{"de
1scription":{"payload_key":"prompt","_type":"text","_value":"","id":"description","description":"For best results, mention the background color and the color scheme. Try to be as descriptive as you can.","label":"Describe your logo","placeholder":"An online teen fashion shop, color scheme magenta and black...","multiline":true,"props":{"minRows":4},"examples":["An online teen fashion shop, color scheme magenta and black","A lemonade stand, yellow, juicy, cheerful, color scheme yellow and green","A coffee shop, minimalist, color scheme black and white","A burger stand, color scheme red and white"],"validation":{"nullable":false},"errors":{"empty":"Please enter a description."}},"image":{"_type":"image","_value":"","description":"Maximum file size: 10MB. Accepted file formats: PNG, JPG, JPEG.","label":"Upload or select a reference image (optional)","nullable":true,"show_preview":false,"selection":true,"submit_on_upload":false,"props":{"showSelectionPreview":false,"useRemoveButton":true,"hideIfFileExists":true,"selectedButtonText":"Use selected image","showPreviewBorder":false,"variant":"secondary"}},"text":{"_type":"text","_value":"","id":"text","label":"Text in logo","description":"Text to display in the logo. Leave blank for no text.","placeholder":"LogoGen","multiline":false,"validation":{"nullable":true}},"style":{"_type":"gallery","_value":"classic","preserve_input":true,"label":"Style","options":[{"label":"Classic","image":"https://assets.imagineersapp.com/logogen-styles/classic.jpg","value":"classic"},{"label":"Minimalist","image":"https://assets.imagineersapp.com/logogen-styles/minimalist.jpg","value":"minimalist"},{"label":"Bold","image":"https://assets.imagineersapp.com/logogen-styles/bold.jpg","value":"bold"},{"label":"Collegiate","image":"https://assets.imagineersapp.com/logogen-styles/college.jpg","value":"college"}],"props":{"columns":4}},"signature_touch":{"_type":"switch","_value":false,"label":"Singature touch","description":"Add some imprefection to the logo related to the brand to make it more memorable.","preserve_input":true},"remove_background":{"_type":"switch","_value":false,"label":"Remove background","description":"","preserve_input":true}},"library":{"enabled":false,"tab":"Explore","results":20},"tabs":["Generate"],"output":"image","output_mimetype":"image/png","button":{"label":"Generate logo"},"analytics":{"enabled":false,"mixpanel":"c2f2b0b0b0b0b0b0b0b0b0b0b0b0b0b0"},"genericized":{"verb":"generate","verbing":"generating","noun":"logo","plural_noun":"logos"},"enable_status_check":true,"enable_output_review":true,"raised_footer":true,"output_review":{"label":"Generated image","start_over_label":"Generate again","clear_inputs_on_back":true,"use_replace_button":false,"regenerate_on_start_over":true},"dc":true}'),E=a(68795);class S extends Error{constructor(e="Upstream request timed out"){super(e),this.name="UpstreamTimeoutError"}}class C extends Error{constructor(e,t){super(e),this.name="UpstreamHttpError",this.status=t}}let P=new Set(["GET","HEAD","OPTIONS"]);async function T(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{timeoutMs:s=2e4,retry:i=!0,label:n}="number"==typeof a?{timeoutMs:a}:a,o=(t.method||"GET").toUpperCase(),r=n||e,l=new AbortController,c=!1,d=setTimeout(()=>{c=!0,l.abort()},s),u=t.signal,m=()=>l.abort(null==u?void 0:u.reason);u&&(u.aborted?m():u.addEventListener("abort",m,{once:!0}));let p=()=>fetch(e,{...t,signal:l.signal});try{try{return await p()}catch(e){if(l.signal.aborted)throw e;if(i&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET";if(!(e instanceof TypeError))return!1;let a=e.cause;if(!a||"object"!=typeof a)return!1;let s=P.has(t.toUpperCase());if("UND_ERR_SOCKET"===a.code){var i,n,o,r;let e=Number(null!==(o=null===(i=a.socket)||void 0===i?void 0:i.bytesRead)&&void 0!==o?o:0),t=Number(null!==(r=null===(n=a.socket)||void 0===n?void 0:n.bytesWritten)&&void 0!==r?r:0);return!(e>0)&&(s||0===t)}return"ECONNRESET"===a.code&&(!!s||/before secure TLS connection/i.test(String(a.message||"")))}(e,o))return console.warn("[upstream] ".concat(r,": socket closed before any response 
1(").concat(function(e){let t=null==e?void 0:e.cause;return t&&"object"==typeof t?String(t.code||t.message||t):e instanceof Error?e.message:String(e)}(e),"), retrying once")),await p();throw e}}catch(e){if(c)throw console.warn("[upstream] ".concat(r,": no response within ").concat(s,"ms")),new S("Upstream request timed out after ".concat(s,"ms"));throw e}finally{clearTimeout(d),null==u||u.removeEventListener("abort",m)}}var A=a(40257);function O(e){let t=(0,E.dT)(e);return(null===b._j||void 0===b._j?void 0:b._j[t])||t}let D={headshotpro:"https://profilephoto-v2.api.imagineers.studio",cartoonify:"https://cartoonify-v3.api.imagineers.studio",animator:"https://animator-v2.api.imagineers.studio",artify:"https://paintify-v2.api.imagineers.studio",sketchtolife:"https://sketchtolife-v2.api.imagineers.studio",scribblediffusion:"https://sketchtolife-v2.api.imagineers.studio",textanywhere:"https://textanywhere-v2.api.imagineers.studio",textart:"https://textart-v2.api.imagineers.studio",cyberavatar:"https://cyberavatar.api.imagineers.studio",doodlecraft:"https://doodlecraft.api.imagineers.studio",photostylist:"https://photostylist.api.imagineers.studio",youthful:"https://youthful.api.imagineers.studio",kebabletters:"https://kebabletters.api.imagineers.studio"};function G(e){let t,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=("sketchtolife"===(t=O(e))&&(t="scribblediffusion"),t);if(a)return A.env.BASE_URL.replace("[app]","global")+"/".concat(s);let i=D[s];return i?i.replace(/\/$/,""):A.env.BASE_URL.replace("[app]",s)}async function I(e){let t=O(e);return{logo:"https://static.imagineersapp.com/"+t+"/logo.png",thumbnail:"https://static.imagineersapp.com/"+t+"/featured_image.png",thumbnail2:"https://static.imagineersapp.com/"+t+"/featured_image_1.png"}}(0,n.cache)(async e=>{let t=await a(66278)("./".concat(e,"/config.web.json")),s=t.default||t;return console.log("Loaded local config for:",e),console.log("config",s),s}),(0,n.cache)(async e=>{if(!e)return{appId:e,appConfig:null};let t=await w.app.findUnique({where:{slug:e},select:{id:!0,ab_config:!0,model_config:!0,subscription_config:!0,updated_at:!0,support_url:!0,config:!0,published:!0,type:!0}});if(!t)return{appId:e,appConfig:null};let{id:a,ab_config:s,model_config:i,subscription_config:n,updated_at:o,support_url:r,config:l,published:c,type:d}=t;if(!(null==s?void 0:s.name))return{appId:e,appConfig:null};let u="".concat("https://static.imagineersapp.com","/").concat(e,"/logo.png"),m="".concat("https://static.imagineersapp.com","/").concat(e,"/featured_image.png"),p="".concat("https://static.imagineersapp.com","/").concat(e,"/featured_image_1.png");s.logo||(s.logo=u),s.featured_image||(s.featured_image=m),s.featured_image_1||(s.featured_image_1=p);let g=await I(e);return{id:a,appId:e,appConfig:{name:s.name,url:s.company_or_developers_website_url,short_description:s.short_description,tagline:s.tagline,description:s.description,logo:s.logo||g.logo,thumbnail:s.thumbnail||g.thumbnail,thumbnail2:s.thumbnail2||g.thumbnail2,support:{form:r||"https://docs.google.com/forms/d/e/1FAIpQLSfEUpM9K5Yb1FxbchT_abEZKgpTIb7DDSzyvx_Xj0JycbqNhQ/viewform?embedded=true&entry.843287310="+encodeURIComponent(s.name)},checkout:{pricing_table_id:"",publishable_key:""},legal:{privacy:{usecase:"generate custom media assets",last_updated_date:"Wed. Aug 07, 2024"},terms:{last_updated_date:"Wed. Aug 07, 2024"}},last_updated_date:{year:new Date(o).getFullYear(),month:new Date(o).getMonth(),day:new Date(o).getDate()}},_id:e,config:l,model_config:i,subscription_config:n,published:c,ab_config:s,type:d}}),(0,n.cache)(async e=>{let t="".concat(A.env.APPS_BASE_URL,"/").concat(e,"/config.web.json"),a=await T(t,{next:{revalidate:300}},{timeoutMs:8e3,label:"config.web.json ".concat(e)});if(!a.ok)throw console.error("Error fetching app config for ".concat(e,": ").concat(a.status," ").concat(a.statusText)),new C("Failed to fetch config: ".concat(e," ").concat(a.status," ").concat(a.statusText),a.status);return a.json()});let M={emoartist:j,realistic:_,melodymuse:N,logogen:k};(0,n.cache)(async e=>{let t=D[e],a=t?"".concat(t.replace(/\/$/,""),"/config.json?_view_=1"):"".concat(A.env.BASE_URL.replace("[app]",e),"/config.json?_view_=1");if(console.log("config url",a),"instantaiart"===e)return{};if("melodymuse"===e)return M[e]||null;try{let t=await T(a,{next:{revalidate:60}},{timeoutMs:8e3,label:"config.json ".concat(e)});if(!t.ok)throw new C("Failed to fetch generate config: ".concat(t.status," ").concat(t.statusText),t.status);return t.json()}catch(a){let t=M[e]||null;if(t)return console.warn("Using local generate fallback for",e),t;throw a}}),(0,n.cache)(async e=>{let t="".concat(G(e,!0),"/config.json?_view_=1"),a=await T(t,{next:{revalidate:60}},{timeoutMs:8e3,label:"global config.json ".concat(e)});if(!a.ok)throw new C("Failed to fetch global generate config: ".concat(a.status," ").concat(a.statusText),a.status);return a.json()});let L=["3dartist","animator","animeify","animelineart","artify","artvatar","avatarify","caricature","cartoonfilter","cartoonify","cartoonist","childrensbook","colorify","coloringbook","comicbook","crochetcraft","cyberavatar","doodlecraft","emoartist","faceartist","faceswapit","framefusion","headshotpro","iconwiz","illusionist","imageascii","imagegenie","impressionistart","instantaiart","instantpaint","kebabletters","letterart","lineart","logogen","melodymuse","mountainavatar","neonartist","oilpaintingeffect","paintsplashart","photostylist","pixelartist","pixelify","pixelperfect","productphoto","qart","quickgen","realistic","reimagine","renaissanceavatarparadise","scifigen","secretink","sketchify","sketchtolife","scribblediffusion","slidesgen","starterkit","stickermaker","sunglassify","textart","textanywhere","tshirtdesigner","ultrareal","voxelart","voxellab","watercolorart","youthful"].map(e=>(function(e){let t=Object.fromEntries(Object.entries(b._j).map(e=>
1{let[t,a]=e;return[a,t]}));return(null==t?void 0:t[e])||e})(e)),R=e=>L.includes((0,E.dT)(e)),U=e=>!R(e);(0,n.cache)(async(e,t)=>{let a=U(e);console.log("app",e,a);let s=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return G(e,t)+"/status"}(e,a);console.log("url",s);try{let a=await T("".concat(s),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"WebKey ".concat(A.env.WEB_API_KEY),"X-User-Id":t},next:{revalidate:120}},{timeoutMs:1e4,label:"status ".concat(e)});if(!a.ok){let e=await a.json();throw console.log(e),Error((null==e?void 0:e.detail)||"Error generating image")}let i=await a.json();return console.log("data",i),i}catch(e){return console.error("Error fetching status:",e),null}});let z=async(e,t,a,s,i)=>{let n=await fetch("".concat("","/api/").concat(function(e){let t=Object.fromEntries(Object.entries(b._j).map(e=>{let[t,a]=e;return[a,t]})),a=(null==t?void 0:t[e])||e;return(0,E.K$)(a)}(e),"/generations?page=").concat(t,"&query=").concat(a)+(i?"&per_page=".concat(i):""),{signal:s});if(!n.ok)return[];let o=await n.json();return o&&o.length?o:[]};var q=a(20653),B=a(6403),F=a(33688);function K(e){var t,a,s,b;let{_id:x,appId:v,topImages:y,config:w}=e,{data:j}=(0,d.kP)(),[_,N]=(0,n.useState)([]),[k,E]=(0,n.useState)(1),[S,C]=(0,n.useState)(""),[P,T]=(0,n.useState)(null),[A,O]=(0,n.useState)(!1),[D,G]=(0,n.useState)(null),[I,M]=(0,n.useState)(!1),[L,R]=(0,n.useState)(!1),[U,K]=(0,n.useState)(null),[W,J]=(0,n.useState)(!0),Y=(0,f.N)(S,500),Z=Y.length>1&&y&&y.length>0;(0,n.useEffect)(()=>{Y&&Y.length<2||(N([]),E(1),R(!1))},[Y]),(0,n.useEffect)(()=>{if(Y&&Y.length<2)return;let e=!0;O(!0),G(null);let t=new AbortController;return z(x,Z?k+1:k,Y,t.signal,30).then(t=>{if(e){let e=(t||[]).filter(e=>!(0,B.l)(null==e?void 0:e.id));0===e.length?(R(!0),0===_.length&&G("No images found")):N(t=>[...t,...e])}}).catch(t=>{e&&!t.name.startsWith("AbortError")&&G("Error fetching images")}).finally(()=>{O(!1)}),()=>{e=!1,t.abort()}},[k,Y]);let $=(0,n.useRef)(null),V=async e=>{if(e.preventDefault(),!(null==j?void 0:j.user)){(0,p.jc)(),(0,m.Am)("Hi there! Please login to start generating images",{icon:"\uD83D\uDC4B"});return}if(!S){G("Please enter a description");return}G(null),M(!0),K(null);try{let e=await fetch("/api/".concat(v,"/generate"),{method:"POST",body:JSON.stringify({prompt:S})});if(!e.ok||200!==e.status){let t=await e.text();throw(0,F.a6)(e.status,t)}let t=await e.json();K(t),c.ZP.track("generate_success",{appId:v,prompt:S})}catch(e){c.ZP.track("generate_error",{appId:v,prompt:S,error:e.message,user:(null==j?void 0:j.user.id)||"guest"}),G((0,F.zV)(e))}finally{M(!1),$.current&&await $.current()}},H=e=>{(0,B.l)(null==e?void 0:e.id)||(T(e),window.history.pushState(null,"","/".concat(v,"/image/").concat(e.id)))},Q=!Z&&y?y.filter(e=>!(0,B.l)(null==e?void 0:e.id)):[],X=_.filter(e=>!(0,B.l)(null==e?void 0:e.id));return(0,i.jsxs)("div",{className:"container mx-auto px-1 sm:px-6 lg:px-8 py-8 sm:py-12",children:[(0,i.jsxs)("div",{className:"max-w-4xl mx-auto mb-12 sm:mb-16",children:[(0,i.jsx)("form",{onSubmit:V,className:"relative",children:(0,i.jsxs)("div",{className:"relative group",children:[(0,i.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-primary-400 to-primary-600 rounded-xl sm:rounded-2xl blur-lg opacity-20 group-hover:opacity-30 transition-opacity duration-300"}),(0,i.jsx)("div",{className:"relative bg-white rounded-xl sm:rounded-2xl shadow-xl border border-gray-100 p-1.5 sm:p-2",children:(0,i.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2 sm:gap-3",children:[(0,i.jsxs)("div",{className:"relative flex-1",children:[(0,i.jsx)(q._Ve,{className:"absolute left-3 sm:left-4 top-1/2 transform -translate-y-1/2 text-gray-400 w-4 h-4 sm:w-5 sm:h-5"}),(0,i.jsx)("label",{htmlFor:"gallery-prompt",className:"sr-only",children:"Describe what to generate"}),(0,i.jsx)(o.I,{id:"gallery-prompt",type:"text","aria-label":"Describe what to generate",value:S,onKeyDown:e=>{var t,a;if("Tab"===e.key&&(null==w?void 0:null===(a=w.inputs)||void 0===a?void 0:null===(t=a.prompt)||void 0===t?void 0:t.placeholder)){e.preventDefault();let t=w.inputs.prompt.placeholder;t.trim().endsWith("...")&&(t=t.trim().slice(0,-3).trim()),C(t)}},onChange:e=>C(e.target.value),placeholder:(null==w?void 0:null===(a=w.inputs)||void 0===a?void 0:null===(t=a.prompt)||void 0===t?void 0:t.placeholder)||"Describe your emoji... (e.g. cat with sunglasses)",className:"pl-10 sm:pl-12 pr-3 sm:pr-4 py-3 sm:py-4 text-base sm:text-lg border-0 focus:ring-0 focus:outline-none bg-transparent placeholder:text-gray-400",disabled:I})]}),(0,i.jsx)(r.z,{disabled:I||!S.trim(),type:"submit",size:"lg",className:"px-6 sm:px-8 py-3 sm:py-4 bg-gradient-to-r from-primary-500 to-primary-600 hover:from-primary-600 hover:to-primary-700 text-white font-semibold rounded-lg sm:rounded-xl transition-all duration-200 shadow-lg hover:shadow-xl disabled:opacity-50 disabled:cursor-not-allowed group",children:I?(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[(0,i.jsxs)("div",{className:"flex gap-1",children:[(0,i.jsx)("div",{className:"w-2 h-2 bg-white rounded-full animate-bounce [animation-delay:-0.3s]"}),(0,i.jsx)("div",{className:"w-2 h-2 bg-white rounded-full animate-bounce [animation-delay:-0.15s]"}),(0,i.jsx)("div",{className:"w-2 h-2 bg-white rounded-full animate-bounce"})]}),(0,i.jsx)("span",{className:"hidden sm:inline",children:"Generating..."}),(0,i.jsx)("span",{className:"sm:hidden",children:"..."})]}):(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[(0,i.jsx)("span",{className:"inline",children:"Generate"}),(0,i.jsx)(q.LZ3,{className:"w-4 h-4 sm:w-5 sm:h-5 group-hover:translate-x-1 transition-transform duration-200"})]})})]})})]})}),D&&!I&&!U&&(0,i.jsx)("div",{className:"mt-4 sm:mt-6 px-2",children:(0,i.jsx)(g.ZP,{errorMsg:D,setErrorMsg:G})}),(0,i.jsx)("div",{className:"mt-6 sm:mt-8",children:(null==j?void 0:j.user)?W?(0,i.jsx)("div",{className:"max-w-2xl mx-auto",children:(0,i.jsxs)("div",{className:"bg-gray-50/50 rounded-xl sm:rounded-2xl",children:[(0,i.jsxs)("div",{className:"flex items-center justify-center gap-2 mb-3",children:[(0,i.jsx)(q.YGl,{className:"w-4 h-4 sm:w-5 sm:h-5 text-primary-500"}),(0,i.jsx)("h3",{className:"font-medium text-gray-900 text-sm sm:text-base",children:"Your credits"})]}),(0,i.jsx)("div",{className:"text-center",children:(0,i.jsx)(g.v0,{ref:$,appId:v})}),(0,i.jsx)("button",{onClick:()=>J(!1),className:"block mx-auto mt-3 sm:mt-4 text-gray-500 hover:text-gray-700 text-xs sm:text-sm transition-colors duration-200",children:"Hide credits status"})]})}):(0,i.jsx)("div",{className:"text-center",children:(0,i.jsxs)("button",{onClick:()=>J(!0),className:"inline-flex items-center gap-2 text-gray-500 hover:text-primary-600 text-xs sm:text-sm font-medium transition-colors duration-200 px-3 sm:px-4 py-2 rounded-lg hover:bg-gray-50",children:[(0,i.jsx)(q.YGl,{className:"w-3 h-3 sm:w-4 sm:h-4"}),"Show credits status"]})}):(0,i.jsx)("div",{className:"text-center px-2",children:(0,i.jsxs)("div",{className:"inline-flex items-center gap-2 sm:gap-3 bg-gradient-to-r from-gray-50 to-gray-100 rounded-xl sm:rounded-2xl px-4 sm:px-8 py-3 sm:py-4",children:[(0,i.jsxs)("div",{className:"flex gap-1",children:[(0,i.jsx)("div",{className:"w-1.5 h-1.5 sm:w-2 sm:h-2 bg-primary-400 rounded-full animate-pulse"}),(0,i.jsx)("div",{className:"w-1.5 h-1.5 sm:w-2 sm:h-2 bg-primary-500 rounded-full animate-pulse [animation-delay:0.2s]"}),(0,i.jsx)("div",{className:"w-1.5 h-1.5 sm:w-2 sm:h-2 bg-primary-400 rounded-full animate-pulse [animation-delay:0.4s]"})]}),(0,i.jsxs)("button",{onClick:p.jc,className:"text-gray-700 font-medium sm:font-semibold hover:text-primary-700 transition-colors duration-200 flex items-center gap-1 sm:gap-2 text-sm sm:text-base",children:[(0,i.jsx)("span",{className:"hidden sm:inline",children:"Sign up for FREE daily generations"}),(0,i.jsx)("span",{className:"sm:hidden",children:"Get FREE daily credits"}),(0,i.jsx)(q.LZ3,{className:"w-3 h-3 sm:w-4 sm:h-4"})]})]})})})]}),(0,i.jsxs)("div",{className:"max-w-6xl mx-auto",children:[I&&(0,i.jsx)(u.h,{variant:"primary",title:null==w?void 0:null===(s=w.messages)||void 0===s?void 0:s.loading_title,text:null==w?void 0:null===(b=w.messages)||void 0===b?void 0:b.loading_text}),(0,i.jsx)(u.Z,{response:U,isLoading:!1}),(X.length>0||Q.length>0)&&(0,i.jsxs)("div",{className:"mb-8",children:[(0,i.jsxs)("div",{className:"text-center mb-6 sm:mb-8 px-2",children:[(0,i.jsx)("h3",{className:"text-xl sm:text-2xl font-bold tracking-tight text-gray-900",children:Y?"Search results":"Recent creations"}),!Y&&(0,i.jsx)("p",{className:"mt-1.5 text-sm sm:text-base text-gray-500",children:"Fresh from the community, click any image to see its prompt"})]}),(0,i.jsxs)("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 ga
1p-3 sm:gap-4 lg:gap-6",children:[Q.map((e,t)=>(0,i.jsx)(h.f,{image:e,href:"/".concat(v,"/image/").concat(e.id),onClick:H,ref:void 0},e.id)),X.map((e,t)=>(0,i.jsx)(h.f,{image:e,href:"/".concat(v,"/image/").concat(e.id),onClick:H,ref:void 0},e.id))]})]}),A&&(0,i.jsx)("div",{className:"mb-8",children:(0,i.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-3 sm:gap-4 lg:gap-6",children:Array.from({length:20}).map((e,t)=>(0,i.jsx)("div",{className:"aspect-square bg-gray-200 animate-pulse rounded-xl"},t))})}),!A&&!L&&X.length>0&&(0,i.jsx)("div",{className:"flex justify-center mt-8 sm:mt-12 px-4",children:(0,i.jsxs)(r.z,{onClick:()=>{if(!(null==j?void 0:j.user)){(0,p.jc)();return}E(e=>e+1)},variant:"outline",size:"lg",className:"rounded-full px-6 sm:px-8 py-2 sm:py-3 border-2 border-primary-200 text-primary-700 bg-white hover:bg-primary-50 hover:border-primary-300 shadow-sm transition-all duration-200 group text-sm sm:text-base",children:["Load more",(0,i.jsx)(q.LZ3,{className:"w-3 h-3 sm:w-4 sm:h-4 ml-2 group-hover:translate-x-1 transition-transform duration-200"})]})}),L&&X.length>0&&(0,i.jsx)("div",{className:"text-center mt-8 sm:mt-12 px-4",children:(0,i.jsxs)("div",{className:"inline-flex items-center gap-2 text-gray-500 bg-gray-50 rounded-lg px-3 sm:px-4 py-2 text-sm",children:[(0,i.jsx)("div",{className:"w-1.5 h-1.5 sm:w-2 sm:h-2 bg-gray-400 rounded-full"}),"You've reached the end"]})})]}),(0,i.jsx)(l.y,{image:P,onClose:()=>{T(null),window.history.pushState(null,"","/"+v)}}),(0,i.jsx)(m.Toaster,{position:"bottom-center",toastOptions:{className:"bg-white border border-gray-200 text-gray-900",duration:4e3}})]})}},15785:function(e,t,a){"use strict";a.d(t,{y:function(){return b}});var s=a(57437),i=a(99376),n=a(33145),o=a(2265),r=a(49027),l=a(32489),c=a(94508);let d=r.fC;r.xz;let u=r.h_;r.x8;let m=o.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,s.jsx)(r.aV,{ref:t,className:(0,c.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),...i})});m.displayName=r.aV.displayName;let p=o.forwardRef((e,t)=>{let{className:a,children:i,...n}=e;return(0,s.jsxs)(u,{children:[(0,s.jsx)(m,{}),(0,s.jsxs)(r.VY,{ref:t,className:(0,c.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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%] sm:rounded-lg",a),...n,children:[i,(0,s.jsxs)(r.x8,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 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",children:[(0,s.jsx)(l.Z,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});p.displayName=r.VY.displayName;let g=e=>{let{className:t,...a}=e;return(0,s.jsx)("div",{className:(0,c.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...a})};g.displayName="DialogHeader";let f=o.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,s.jsx)(r.Dx,{ref:t,className:(0,c.cn)("text-lg font-semibold leading-none tracking-tight",a),...i})});f.displayName=r.Dx.displayName,o.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,s.jsx)(r.dk,{ref:t,className:(0,c.cn)("text-sm text-muted-foreground",a),...i})}).displayName=r.dk.displayName;var h=a(95214);function b(e){let{image:t,onClose:a,downloadable:o=!1,app:r}=e;if((0,i.useRouter)(),!t)return null;let l=/\.(mp4|webm|mov)(\?|#|$)/i.test(t.url),c=l?t.url:void 0,u=l?t.url.replace(/\.(mp4|webm|mov)(\?|#|$)/i,".png"):void 0,m=["A TOK emoji of one ","A TOK emoji of a "];return(0,s.jsx)(d,{open:!!t,onOpenChange:a,children:(0,s.jsxs)(p,{children:[(0,s.jsxs)(g,{children:[(0,s.jsx)(f,{children:m.some(e=>t.title.startsWith(e))?t.title.replace(m[0],"").replace(m[1],""):t.title}),r&&(0,s.jsxs)("a",{href:r.href,className:"inline-flex items-center gap-2 w-fit text-sm text-gray-500 hover:text-primary-700 transition-colors duration-200",children:[r.logo&&(0,s.jsx)("img",{src:r.logo,alt:"",className:"w-5 h-5 rounded-full object-cover ring-1 ring-black/10 bg-white"}),(0,s.jsxs)("span",{children:["Made with ",r.name]})]})]}),(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)("div",{className:"aspect-square relative overflow-hidden rounded-lg",children:l&&c?(0,s.jsxs)("video",{controls:!0,poster:u,className:"absolute inset-0 w-full h-full object-contain bg-black",preload:"metadata",children:[(0,s.jsx)("source",{src:c,type:"video/mp4"}),"Your browser does not support the video tag."]}):(0,s.jsx)(n.default,{src:t.url,alt:t.title,layout:"fill",objectFit:"contain"})})}),(0,s.jsx)(h.default,{imageUrl:t.url,imageTitle:t.title,likes:o?null:t.weight,imageId:t.id})]})})}},52780:function(e,t,a){"use strict";a.d(t,{N:function(){return i}});var s=a(2265);function i(e,t){let[a,i]=(0,s.useState)(e);return(0,s.useEffect)(()=>{let a=setTimeout(()=>{i(e)},t);return()=>{clearTimeout(a)}},[e,t]),a}}},function(e){e.O(0,[4443,8310,2972,9687,3145,2165,5446,4530,9064,2101,7979,7378,5862,4024,917,5214,3970,8220,2971,2117,1744],function(){return e(e.s=87567)}),_N_E=e.O()}]);

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.