PageSourceSearch

https://playgroundai.com/_next/static/chunks/pages/design/new-c31373aacc5d4969.js

js playgroundai.com collected 2026-09-24 17:55:50 UTC 1,932 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[385],{1289:(e,t,a)=>{"use strict";a.d(t,{_:()=>i,k:()=>r});var s=a(14232);let i=(0,a(34957).vt)(e=>({hasGivenFeedback:!1,setHasGivenFeedback:t=>e({hasGivenFeedback:t})}));function r(e){let{setHasGivenFeedback:t}=i();(0,s.useEffect)(()=>{void 0!==e&&t(e)},[e,t])}},57546:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/design/new",function(){return a(78828)}])},78828:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSP:()=>i,default:()=>s.A});var s=a(94706),i=!0},94706:(e,t,a)=>{"use strict";a.d(t,{A:()=>b});var s=a(37876),i=a(14232),r=a(75656),n=a(10553),d=a(1289),l=a(89099),o=a(87420),u=a(75991),c=a(89803),p=a(6381),f=a(36692),h=a(60571),_=a(72031),g=a(18847),k=a.n(g),w=a(6977);let y=k()(()=>Promise.all([a.e(7947),a.e(5023),a.e(8215),a.e(9885),a.e(3788)]).then(a.bind(a,21407)).then(e=>e.DesignEditor),{loadableGenerated:{webpack:()=>[21407]},ssr:!1});function b(e){let t=(0,l.useRouter)(),a=(0,h.dj)(),g=(0,n.useSession)(),k=(0,u.ZA)(),b=(0,u.X4)(),E=(0,c.Eb)(g?.data),m=(0,c.BA)(g?.data)===e.templateId&&E;return((0,d.k)(e.hasAlreadyGivenFeedback),"loading"!==g.status||g.data?.user)?!e?.designFile&&e?.statusCode?(0,s.jsx)(f.A,{error:e?.statusCode}):g.data?.user&&(!e.isPremium||k||b)||m||(0,_.yv)(t.query)?(0,s.jsx)(r.BE,{value:{fallback:{"/api/templates/tags?type=MAJOR&visibility=ga&withExamplePrompts=true":e.tags}},children:(0,i.createElement)(y,{...e,key:e.id})}):(0,s.jsx)(w.G,{...e,onCreate:async()=>{try{let e=await fetch("/api/design/files/new",{method:"POST",body:JSON.stringify({templateId:(0,o.Ht)(t.query.templateSlug)}),headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Failed to create design file");let a=await e.json(),s=p.z.string().parse(a.fileId);t.push(`/design/${s}`)}catch(e){a.toast({type:"error",description:"Failed to create file"})}}}):null}}},e=>{e.O(0,[9027,8588,6977,636,6593,8792],()=>e(e.s=57546)),_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.