1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[898,4951],{17359:(e,l,s)=>{"use strict";s.r(l),s.d(l,{__N_SSP:()=>T,default:()=>N});var n=s(6029),i=s(80898),t=s(35402),a=s(50433),r=s(13445),o=s(53551),d=s(99690),c=s(24565),h=s(56266),u=s(84335),x=s(87462),g=s(74536),p=s(37948),m=s(13347),j=s(51638),f=s(6058),w=s(27835),v=s(34417),b=s(1751),_=s(58943),y=s(92907),C=s(78138),S=s(82203),k=s.n(S),z=s(81278),E=s(55729),T=!0;let N=()=>{var e,l;let s=(0,z.useRouter)(),S=s.query,T=S.tags,N=S.page?parseInt(S.page):1,[A,D]=(0,E.useState)(S.search||""),[P,W]=(0,E.useState)(S.search||""),[B,I]=(0,E.useState)(S.downloaded||"yes");(0,E.useEffect)(()=>{S.search&&S.search!==A&&D(S.search)},[S.search]),(0,E.useEffect)(()=>{S.downloaded&&S.downloaded!==B&&I(S.downloaded)},[S.downloaded]);let{data:M,isLoading:L}=(0,b.bB_)({tags:T||"",itemsPerPage:500,possible_nsfw:!0,page:N,downloaded:(e=>{let{downloaded:l}=e;if(null!=l){if("yes"===l||"true"===l)return!0;if("no"===l||"false"===l)return!1}})({downloaded:B}),ordering:"-download_count",search:A,model_type:(e=[_._U.Checkpoint,_._U.LORA,_._U.LoCon,_._U.TextualInversion],e.join(","))}),{data:Y}=(0,v.P)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a.a,{sx:e=>({maxWidth:"90%",[e.fn.smallerThan("md")]:{maxWidth:"100%"}}),children:[(0,n.jsx)(w.A,{url:"".concat(y._g.frontendUrl).concat(C.J.aieasypic.inspireModelAll),title:"Model List - ".concat(y._g.fullSiteName),description:"".concat(y._g.fullSiteName," Model List. Discover all the new SD models and start creating your own AI generated images."),image:"https://aieasypic.com/api/next-api/images/models/".concat((null==M?void 0:M.results)&&(null==M||null==(l=M.results[0])?void 0:l.slug)||5616,"?leftText=Start%20Creating%20Now&withCreateButton=true")}),(0,n.jsxs)(r.B,{spacing:"xs",py:30,children:[(0,n.jsx)(o.o,{sx:{marginTop:"10px"},children:(0,n.jsx)("form",{onSubmit:e=>{e.preventDefault(),s.push({pathname:s.pathname,query:{...S,search:P,page:1}})},children:(0,n.jsxs)(d.Y,{children:[(0,n.jsx)(c.k,{size:"lg",value:P,placeholder:"Search",onChange:e=>{W(e.target.value)},rightSection:L?(0,n.jsx)(h.a,{variant:"oval",size:"xs"}):null}),(0,n.jsx)(u.$,{type:"submit",leftIcon:"\uD83D\uDD0E",size:"lg",children:"Search"})]})})}),(0,n.jsxs)(x.h,{order:1,align:"center",children:[(null==M?void 0:M.count)||0," Models Found"]}),T&&(0,n.jsx)(a.a,{mb:"md",children:(0,n.jsx)(o.o,{children:(0,n.jsx)(r.B,{spacing:"xs",children:(0,n.jsxs)(x.h,{order:3,align:"center",transform:"uppercase",children:["Tag: ",null==T?void 0:T.split(",").join(" & ")]})})})})]}),(0,n.jsx)(d.Y,{position:"right",my:20,children:(0,n.jsx)(g.Z,{p:5,children:(0,n.jsxs)(r.B,{align:"center",spacing:"xs",children:[(0,n.jsx)(p.E,{weight:600,children:"Downloaded"}),(0,n.jsx)(m.I,{data:[{label:"All",value:"all"},{label:"Yes",value:"yes"},{label:"No",value:"no"}],value:B,onChange:e=>{s.push({pathname:s.pathname,query:{...S,downloaded:e,page:1}})}})]})})}),L&&(0,n.jsx)(a.a,{sx:{height:500,position:"relative"},children:(0,n.jsx)(j.p,{visible:!0})}),!L&&(0,n.jsx)(t.A,{modelsData:(null==M?void 0:M.results)||[]}),((null==M?void 0:M.count)||0)>500&&(0,n.jsx)(o.o,{pt:40,children:(0,n.jsx)(f.d,{size:"xl",onChange:e=>{window.scrollTo(0,0)},total:Math.floor(((null==M?void 0:M.count)||0)/500)+1,value:N,getItemProps:e=>({component:k(),href:"?".concat(new URLSearchParams({...s.query,page:String(e)}).toString())})})})]}),!(null==Y?void 0:Y.id)&&(0,n.jsx)(i.default,{mainTitle:y._g.OwnAdBottom.mainTitle,mainText:y._g.OwnAdBottom.mainText,actionButton:{event:"Text to Image Landing Signup",text:"Start Creating For Free",url:(null==Y?void 0:Y.id)?C.J.aieasypic.textToImage:C.J.common.register},fullWidth:!0})]})}},35402:(e,l,s)=>{"use strict";s.d(l,{A:()=>N,u:()=>T});var n=s(6029),i=s(34494),t=s(1721),a=s(52553),r=s(50433),o=s(13692),d=s(53551),c=s(37948),h=s(84335),u=s(52482),x=s(13445),g=s(74536),p=s(99690),m=s(93944),j=s(63887),f=s(69943),w=s(50016),v=s(34417),b=s(1751),_=s(82108),y=s(78138),C=s(93258),S=s(82203),k=s.n(S),z=s(81278),E=s(55729);let T=e=>{var l,s,a,j;let{data:f}=e,v=(0,_.lv)({url:(null==f||null==(s=f.images)||null==(l=s[0])?void 0:l.url)||"",width:500,civitai:!0,type:"webp",quality:60,sigma:(0,t.c)({nsfwLevel:null==f||null==(j=f.images)||null==(a=j[0])?void 0:a.nsfw_level,showNsfw:!1})}),b=(0,z.useRouter)(),C=(0,E.useMemo)(()=>{var e;return null==(e=i.Po.find(e=>{var l;return(null==(l=e.base_model_allowed)?void 0:l.includes(f.base_model||""))||!1}))?void 0:e.version},[f.base_model]);return(0,n.jsxs)(r.a,{children:[(0,n.jsx)(o._,{src:v,alt:f.name,withPlaceholder:!0,height:"400px",imageProps:{loading:"lazy",width:"auto",height:"100%"},sx:{img:{"&:hover":{boxShadow:"0 4px 16px 0 rgba(0, 0, 0, 0.3)",filter:"brightness(80%)",transform:"scale(1.03)"},transition:"box-shadow 0.25s, filter 0.2s , transform 0.2s"}},placeholder:(0,n.jsx)(r.a,{sx:{backgroundColor:"black",height:"100%",width:"100%"},children:(0,n.jsx)(d.o,{children:(0,n.jsx)(c.E,{color:"white",size:"xl",weight:700,style:{textShadow:"0 0 10px black"},children:"N/A"})})})}),(0,n.jsx)(r.a,{sx:{position:"absolute",top:0,right:0},children:(0,n.jsx)(h.$,{radius:50,size:"xs",leftIcon:(0,n.jsx)(w.Dud,{}),onClick:()=>{b.push("".concat(y.J.aieasypic.inspireModelCreate).concat(f.slug,"?ignore_nsfw=true"))},children:"Create"})}),C?(0,n.jsx)(r.a,{sx:{position:"absolute",top:0,left:0},children:(0,n.jsxs)(u.E,{color:"dark",variant:"filled",sx:{position:"absolute",top:0,left:0,margin:10},children:["V",C]})}):null,(0,n.jsx)(r.a,{pt:15,py:5,sx:{position:"absolute",bottom:0,left:0,background:"linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0.9) 90%)",width:"100%"},children:(0,n.jsxs)(x.B,{spacing:2,children:[(0,n.jsx)(c.E,{color:"white",lineClamp:1,weight:700,size:"lg",px:10,children:f.name}),(0,n.jsx)(g.Z,{p:3,mx:10,sx:{backgroundColor:"rgba(0, 0, 0, 0.2)"},children:(0,n.jsxs)(p.Y,{noWrap:!0,spacing:5,position:"apart",children:[(0,n.jsxs)(p.Y,{noWrap:!0,position:"left",spacing:2,children:[(0,n.jsx)(m.G,{readOnly:!0,size:"xs",count:1,value:1}),(0,n.jsxs)(c.E,{color:"white",weight:500,size:"xs",children:["(",f.rating,")"]})]}),(0,n.jsxs)(p.Y,{noWrap:!0,position:"left",spacing:4,children:[(0,n.jsx)(w.N5q,{color:"white"}),(0,n.jsx)(c.E,{color:"white",weight:500,size:"xs",children:f.view_count})]}),(0,n.jsxs)(c.E,{color:"white",weight:500,size:"xs",children:[f.rating_count," Ratings"," "]})]})})]})})]})},N=E.memo(e=>{let{modelsData:l}=e,{data:s}=(0,v.P)(),{mutate:i}=(0,b.Cv1)(),t=(0,C.jE)(),r=async e=>{let{slug:l}=e;i({slug:l},{onSuccess:async()=>{await t.refetchQueries((0,b.dNH)())}})},o=(0,E.useMemo)(()=>(0,a.a)({items:l,colProps:{span:6,xs:4,md:2.3},renderItem:e=>(0,n.jsxs)(j.f,{span:6,xs:4,md:2.3,children:[(0,n.jsx)(k(),{href:"".concat(y.J.aieasypic.inspireModelDetail).concat(e.slug),passHref:!0,children:(0,n.jsx)(g.Z,{p:0,radius:10,children:(0,n.jsx)(T,{data:e})})}),(null==s?void 0:s.is_staff)&&(0,n.jsx)(h.$,{onClick:()=>r({slug:(null==e?void 0:e.slug)||""}),fullWidth:!0,color:"red",size:"lg",children:"Delete"})]},e.slug)}),[l,null==s?void 0:s.is_staff,r]);return(0,n.jsx)(f.x,{children:o})})},80898:(e,l,s)=>{"use strict";s.r(l),s.d(l,{default:()=>g});var n=s(6029),i=s(50433),t=s(48408),a=s(13445),r=s(87462),o=s(37948),d=s(99690),c=s(84335),h=s(82203),u=s.n(h),x=s(67051);let g=e=>{let{mainTitle:l,mainText:s,actionButton:h,secondaryActionButton:g,fullWidth:p=!1}=e,m=e=>{x.Ay.event({category:e,action:"Clicked ".concat(e)})};return(0,n.jsx)(i.a,{my:20,children:(0,n.jsx)(t.m,{size:p?"xl":"lg",py:40,children:(0,n.jsx)(i.a,{sx:e=>({padding:p?"60px":"40px",background:"radial-gradient(ellipse 100% 90% at 90% 50%, rgba(70, 0, 30, 1), rgba(30, 0, 15, .95))",borderRadius:e.radius.lg,[e.fn.smallerThan("md")]:{padding:"30px 20px"}}),children:(0,n.jsxs)(a.B,{spacing:40,align:"center",children:[(0,n.jsx)(r.h,{order:2,color:"white",size:36,sx:{textAlign:"center"},children:l}),(0,n.jsx)(o.E,{color:"white",size:"xl",sx:e=>({textAlign:"center",maxWidth:p?800:600,[e.fn.smallerThan("sm")]:{fontSize:e.fontSizes.lg}}),children:s}),(0,n.jsxs)(d.Y,{spacing:"md",sx:e=>({width:"100%",maxWidth:p?600:400,[e.fn.smallerThan("sm")]:{flexDirection:"column"}}),children:[g&&(0,n.jsx)(c.$,{component:u(),href:g.url,size:"xl",variant:"outline",color:"white",fullWidth:!0,onClick:()=>m(g.event),sx:e=>({borderColor:"rgba(255, 255, 255, 0.3)","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.1)"}}),children:g.text}),(0,n.jsx)(c.$,{component:u(),href:h.url,size:"xl",fullWidth:!0,onClick:()=>m(h.event),sx:e=>({backgroundColor:"white",color:e.colors.dark[9],"&:hover":{backgroundColor:e.colors.gray[0]}}),children:h.text})]})]})})})})}},90969:(e,l,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/frontend-admin/models",function(){return s(17359)}])}},e=>{e.O(0,[6058,1951,3297,3462,4494,7077,6625,636,6593,8792],()=>e(e.s=90969)),_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.