1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3791],{38181:(e,l,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/tools/professional-headshots/[id]",function(){return n(92379)}])},92379:(e,l,n)=>{"use strict";n.r(l),n.d(l,{default:()=>A});var i=n(6029),t=n(99690),s=n(84335),a=n(87462),o=n(69943),r=n(63887),d=n(53551),u=n(6058),m=n(74422),c=n(50016),p=n(37650),x=n(95468),h=n(87041),_=n(48285),v=n(1751),g=n(78138),f=n(82203),j=n.n(f),w=n(81278),y=n(55729);let A=e=>{var l;let{allowUseModel:n=!0}=e,[f,A]=(0,y.useState)(1),[N,P]=(0,y.useState)(null),b=(0,w.useRouter)().query.id,{data:E}=(0,v.p3W)(Number(b)),I=(0,m.U)("(min-width: 768px)"),{data:M,isLoading:T,refetch:k}=(0,v.U4J)({page:f,has_images:!0,itemsPerPage:20,loras_used:null==E||null==(l=E.created_model_version)?void 0:l.toString()},{query:{enabled:null!=E&&!!E.created_model_version}}),z=(0,y.useMemo)(()=>{var e,l,n;return null!=(n=null==M||null==(l=M.results)||null==(e=l.map(e=>{var l;return null==e||null==(l=e.prediction_images)?void 0:l.map(l=>({...l,prompt:(null==e?void 0:e.prompt)||"",negative_prompt:(null==e?void 0:e.negative_prompt)||""}))}))?void 0:e.flat().sort((e,l)=>new Date(l.created_at).getTime()-new Date(e.created_at).getTime()))?n:[]},[null==M?void 0:M.results]);return(0,i.jsxs)(h.A,{children:[(0,i.jsx)(t.Y,{position:"left",my:5,mx:20,children:(0,i.jsx)(s.$,{leftIcon:(0,i.jsx)(c.A60,{}),component:j(),variant:"outline",href:g.J.aieasypic.trainProfessionalHeadshotsAll,children:"All Studios"})}),(0,i.jsx)(a.h,{order:1,align:"center",my:20,children:"Your Professional Headshots Gallery"}),E&&n&&(0,i.jsx)(t.Y,{position:"right",my:5,mx:20,children:(0,i.jsx)(s.$,{leftIcon:(0,i.jsx)(c.udU,{}),component:"a",href:(0,_.rW)(E),children:"Use Model"})}),(0,i.jsx)(p.A,{maximizedImage:N,prediction_images:z,setMaximizedImage:P}),(0,i.jsx)(o.x,{px:10,mx:0,children:null==z?void 0:z.map(e=>(0,i.jsx)(r.f,{span:6,xs:6,sm:12,md:6,lg:4,xl:3,children:(0,i.jsx)(x.A,{image:e,setMaximizedImage:P,features:["basic_actions"]})},e.id))}),((null==M?void 0:M.count)||0)>20&&(0,i.jsx)(d.o,{pt:10,children:(0,i.jsx)(u.d,{size:"xl",onChange:e=>{A(e),I&&window.scrollTo(0,0)},total:Math.ceil(((null==M?void 0:M.count)||0)/20),value:f})})]})}}},e=>{e.O(0,[6058,9568,8183,636,6593,8792],()=>e(e.s=38181)),_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.