PageSourceSearch

https://chatsmith.io/_next/static/chunks/app/%5Blocale%5D/(main)/(…/design-studio/page-26a031686337a3f6.js

js chatsmith.io collected 2026-09-25 02:56:34 UTC 5,854 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[35977,76486],{7565:function(e,t,n){Promise.resolve().then(n.bind(n,2092)),Promise.resolve().then(n.bind(n,25613)),Promise.resolve().then(n.bind(n,69152)),Promise.resolve().then(n.bind(n,7716)),Promise.resolve().then(n.bind(n,33769)),Promise.resolve().then(n.bind(n,81159)),Promise.resolve().then(n.bind(n,79601)),Promise.resolve().then(n.bind(n,73586)),Promise.resolve().then(n.bind(n,49847)),Promise.resolve().then(n.bind(n,91065)),Promise.resolve().then(n.bind(n,25274)),Promise.resolve().then(n.bind(n,7505)),Promise.resolve().then(n.bind(n,5429)),Promise.resolve().then(n.bind(n,7081)),Promise.resolve().then(n.bind(n,16535)),Promise.resolve().then(n.bind(n,22143)),Promise.resolve().then(n.bind(n,49341)),Promise.resolve().then(n.bind(n,77143)),Promise.resolve().then(n.bind(n,32487)),Promise.resolve().then(n.bind(n,90526)),Promise.resolve().then(n.bind(n,84083)),Promise.resolve().then(n.bind(n,3270)),Promise.resolve().then(n.bind(n,5088)),Promise.resolve().then(n.bind(n,77039)),Promise.resolve().then(n.bind(n,73233)),Promise.resolve().then(n.bind(n,17834)),Promise.resolve().then(n.bind(n,65122))},51714:function(e,t,n){"use strict";var i=n(92397);n.o(i,"permanentRedirect")&&n.d(t,{permanentRedirect:function(){return i.permanentRedirect}}),n.o(i,"redirect")&&n.d(t,{redirect:function(){return i.redirect}}),n.o(i,"usePathname")&&n.d(t,{usePathname:function(){return i.usePathname}}),n.o(i,"useRouter")&&n.d(t,{useRouter:function(){return i.useRouter}}),n.o(i,"useSearchParams")&&n.d(t,{useSearchParams:function(){return i.useSearchParams}}),n.o(i,"useSelectedLayoutSegment")&&n.d(t,{useSelectedLayoutSegment:function(){return i.useSelectedLayoutSegment}})},16535:function(e,t,n){"use strict";n.d(t,{default:function(){return T}});var i=n(7812),r=n(99891),s=n(6632),o=n(80753),l=n(49382),a=n(96872),d=n(38999),u=n(23558),c=n(62647),v=n(79989);let m={HOME_TITLE:"home-title",TEMPLATES_SHUFFLE:"templates-shuffle"};var h=n(45489),P=n(35416),f=n(8677);let p=new Map,b=(e,t)=>{let n=p.get(e);return void 0!==n?n:(p.set(e,t),t)};var g=n(65478),S=n(38939),x=n(41176),j=n(64135),E=n(60731),L=n(55041),N=n(65233),T=e=>{var t,n;let{isGuest:p=!1,tool:T,initialUsecaseSlug:k,shuffleSeed:w,titleSeed:F,dismissedNewBadges:I,templatesInitialData:M}=e,C=v.gj[T],U=k?(0,S.wf)(T,k):void 0,_=(0,v.n9)(C,null==U?void 0:U.slug),y=(0,j.jD)(),A=(0,S.VS)(T).find(e=>y==="".concat(C.HOME,"/").concat(e.slug)),H=(0,c.W)(),R=(0,L.j)(e=>e.isFinishFetchProfile),O=(0,r.useRef)(!1);(0,r.useEffect)(()=>{!O.current&&(p||R)&&(O.current=!0,H.trackView())},[p,R,H]);let V=(0,s.bU)(),W=(0,a.Sl)({pageSize:3,isEnabled:!p}),z=(0,r.useMemo)(()=>{var e,t;return null!==(t=null===(e=W.data)||void 0===e?void 0:e.pages.flatMap(e=>{var t;return null!==(t=null==e?void 0:e.projects.map(e=>({date:(0,P.L)(e.updatedAt,V),id:e.id,thumbnail:e.coverImageUrl,title:e.title})))&&void 0!==t?t:[]}))&&void 0!==t?t:[]},[W.data,V]),B=z.length>0,D=null!==(t=null==U?void 0:U.promptForm.task)&&void 0!==t?t:h.FP,[G,Y]=(0,r.useState)(D),[$,q]=(0,r.useState)(null!==(n=null==A?void 0:A.chipId)&&void 0!==n?n:null),J=(0,d.n)({category:G,pageSize:h.iW},G===D?M:void 0),[K]=(0,r.useState)(()=>void 0===w?void 0:b(m.TEMPLATES_SHUFFLE,w)),[Q]=(0,r.useState)(()=>void 0===F?void 0:b(m.HOME_TITLE,F)),X=(0,g.L)(V,G),Z=(0,r.useMemo)(()=>{var e,t;return null!==(t=null===(e=J.data)||void 0===e?void 0:e.pages.flatMap((e,t)=>{var n;let i=null!==(n=null==e?void 0:e.templates.map(e=>({id:e.id,imageUrl:e.imageUrl,inputUrls:e.inputUrls,thumbnail:e.thumbnailUrl,title:e.name})))&&void 0!==n?n:[];return X&&void 0!==K?(0,f.l)(i,K+t):i}))&&void 0!==t?t:[]},[J.data,K,X]),ee=(0,E.F)(e=>e.setIsOpenLoginModal),{activeDetailEntryType:et,activeProjectId:en,activeTemplateAttachment:ei,ensureActiveProjectId:er,handleBackToHome:es,handleCreateNew:eo,handleProjectClick:el,handleSubmitPrompt:ea,handleUseTemplate:ed,isDetailActive:eu,isProjectActivating:ec}=(0,u.f)({isGuest:p,routes:C,tool:T,baseRoute:_}),ev=(0,x.W)({enabled:!eu,fn:()=>{J.fetchNextPage()},hasNextPage:!!J.hasNextPage,loading:J.isFetchingNextPage,rootMargin:h.r$});return eu?(0,i.jsx)(N.default,{entryType:et,projectId:en,templateAttachment:ei,tool:T,onBack:es,onEnsureProjectId:er,isProjectActivating:ec}):(0,i.jsxs)("div",{className:"bg-v1-surface-hierarchy-base flex min-h-screen flex-col items-center justify-center px-4 sm:px-6 lg:px-8",children:[(0,i.jsx)(l.g4,{tool:T,titleSeed:Q,dismissedNewBadges:I,selectedChipId:$,onSelectedChipIdChange:e=>{q(e);let t=e?(0,S.Gn)(T,e):void 0;t&&(0,r.startTransition)(()=>{Y(t.promptForm.task)})},onSubmitAction:ea,onUploadClick:p?()=>ee(!0):void 0}),(0,i.jsxs)("div",{className:"gap-v1-structural-section-compact flex w-full flex-col items-center",children:[!p&&B&&(0,i.jsx)(l.Vv,{projects:z,showViewAll:!!W.hasNextPage,viewAllHref:C.VIEW_ALL,getProjectHref:e=>C.DETAIL(e),onCreateNew:eo,onProjectClick:el}),(0,i.jsx)(l.Se,{templates:Z,activeTab:G,onTabChange:e=>{let t=(0,S.Yl)(T,e);t&&q(t.chipId),(0,r.startTransition)(()=>{Y(e)})},isLoading:J.isLoading,skeletonCount:h.iW,shuffleSeed:K,onUseTemplate:e=>{H.trackTemplateClick(G),ed(e,G)}}),J.hasNextPage&&(0,i.jsx)("div",{ref:ev,className:"h-px w-full"}),J.isFetchingNextPage&&(0,i.jsx)("div",{className:"py-v1-structural-content-normal flex w-full justify-center",children:(0,i.jsx)(o.z,{})})]})]})}},65478:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var i=n(45489);let r=(e,t)=>{var n;return!(null!==(n=i.Bi[e])&&void 0!==n?n:[]).includes(t)}}},function(e){e.O(0,[17507,68425,3166,41200,49986,43767,26192,10590,81368,21751,98341,71210,6632,92471,27980,93603,97910,52686,32753,7081,47091,4742,99941,85360,14086,94227,28605,22678,50615,41438,38597,82843,69888,5224,37947,30914,62113,17599,58152,17193,41467,83167,26745,29450,7439,1744],function(){return e(e.s=7565)}),_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.