PageSourceSearch

https://somniumspace.com/static/js/8900.8345aea1.chunk.js

js somniumspace.com collected 2026-10-02 04:16:48 UTC 24,424 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunksomniumspace=self.webpackChunksomniumspace||[]).push([[8900],{33769:function(e,s,t){t(47313);s.Z=t.p+"static/media/mark.f88519f4da4498e9e40e702d9254b24c.svg"},47880:function(e,s,t){t(47313);s.Z=t.p+"static/media/type.d0fc1341e6304e4845914faa3a35c1a2.svg"},50183:function(e,s,t){t(47313);s.Z=t.p+"static/media/views.31e6c06eabea21df3a7200db50a412a3.svg"},42616:function(e,s,t){t.d(s,{A:function(){return d}});var n=t(47313),a=t(19218),r=t(58467),i=t(1975),c=t(82036),o=t(69663),l=t(87879),d=function(){var e=(0,i.$G)().t,s=(0,r.s0)(),t=(0,r.TH)();return(0,n.useCallback)((function(n){var r,i,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=d.message,p=d.fallbackMessage;if(404!==(a.Z.isAxiosError(n)?null===(r=n.response)||void 0===r?void 0:r.status:void 0))return!1;var _=(0,l.SG)(t.pathname);return c.Am.error(null!==(i=null!==u&&void 0!==u?u:p)&&void 0!==i?i:e("hooks.usenotfoundredirect.messages.could_not_be_found")),s((0,l.SZ)(_,o.Z6.MAIN),{replace:!0}),!0}),[t.pathname,s,e])}},42882:function(e,s,t){t.r(s),t.d(s,{default:function(){return Ve}});var n=t(37762),a=t(93433),r=t(1413),i=t(59121),c=t(15861),o=t(29439),l=t(47313),d=t(58467),u=t(2135),p=t(41826),_=t
1(85281),m=t(82036),g=t(87089),x=t(68816),v=t(78941),f=t(12009),h=t(68278),y=t(16077),j=t(32275),N=t(74649),b=t(42616),w=t(1156),Z=t(50183);var k=t.p+"static/media/downloads.efc8ba96ddc6332ecf3a215167e73bfc.svg",C=t(47880);var I=t.p+"static/media/file.252548ff542741b9ebe42ca5d45c2a66.svg",S=t(33769),T=t(32265),A=t(82623),R=t(57121),E=t(69663),L=t(56558),z=t(69279),D=(t(49640),"styles_assetContainer__72MGO"),M="styles_modal__QRI04",U="styles_modalContent__umVdc",F="styles_scrollableContent__zJYRH",B="styles_headerRow__Bve0F",H="styles_assetDetails__y3Bp-",O="styles_assetDownloadSection__j4-VQ",V="styles_assetTitleRow__cz3B6",G="styles_assetTitle__KeU0b",P="styles_favoriteIcon__WUMlj",W="styles_cardCreator__2X1al",X="styles_cardRatingOwn__Yts+G",Y="styles_assetImage__yAN54",J="styles_assetInfo__BZP+B",q="styles_downloadButton__Po1VL",Q="styles_assetStats__J9zU1",K="styles_assetSubtitle__mB-Ox",$="styles_underrow__O+Ec9",ee="styles_assetDescription__4kOY6",se="styles_assetTags__KuY+s",te="styles_tag__QC7KX",ne="styles_fileContents__Ip27N",ae="styles_backdrop__jxASg",re="styles_closeButton__kfRGw",ie="styles_buttonContainer__eQL+Z",ce="styles_underline__QYJR5",oe="styles_creatorLeft__9+Jb7",le="styles_creatorLink__V0iNi",de="styles_creatorAvatar__IS1EB",ue="styles_creatorInfo__Bebmv",pe="styles_creatorLabel__93jEW",_e="styles_creatorName__sYmOq",me="styles_ratingStars__Wwwd1",ge="styles_starIcon__GH43n",xe="styles_filledStar__WYJjg",ve="styles_staticStar__YnpX4",fe="styles_ratingInfo__TlP6e",he="styles_ratingNumber__h6+vc",ye="styles_ratingLabel__Jfyfw",je="styles_ratingCount__VV7uY",Ne="styles_mainImageWrapper__-1fn6",be="styles_image__DL7b8",we="styles_blurredImage__4GklC",Ze="styles_placeholder__-Uymp",ke="styles_statItem__TuLIa",Ce="styles_statIcon__CZ8Mf",Ie="styles_statItemEx__XLiqK",Se="styles_statIconEx__uVxo4",Te="styles_creatorTitle__RE5k8",Ae="styles_masonryWrapper__ihFg3",Re="styles_card__Js4kL",Ee="styles_cardUpper__BGj2M",Le="styles_cardImage__AHEXD",ze="styles_cardLower__Io1L-",De="styles_cardTitleRow__D8uIQ",Me="styles_cardTitle__H0xDy",Ue="styles_cardSubtitle__2HuyX",Fe="styles_cardRating__AD8xp",Be="styles_cardTags__LgVgL",He=t(1975),Oe=t(46417),Ve=function(){var e,s,t,Ve=(0,He.$G)().t,Ge=(0,d.UO)().assetId,Pe=(0,d.s0)(),We=(0,d.TH)(),Xe=(0,b.A)(),Ye=(0,L.SG)(We.pathname),Je=(0,z.oR)(),qe=Je.userStore,Qe=Je.assetsStore,Ke=Je.accountStore,$e=Je.loadingStore,es=(0,l.useState)(!1),ss=(0,o.Z)(es,2),ts=ss[0],ns=ss[1],as=(0,l.useState)(null),rs=(0,o.Z)(as,2),is=rs[0],cs=rs[1],os=(0,l.useState)(null),ls=(0,o.Z)(os,2),ds=ls[0],us=ls[1],ps=(0,l.useState)(null),_s=(0,o.Z)(ps,2),ms=_s[0],gs=_s[1],xs=(0,l.useState)([]),vs=(0,o.Z)(xs,2),fs=vs[0],hs=vs[1],ys=(0,l.useState)(!1),js=(0,o.Z)(ys,2),Ns=js[0],bs=js[1],ws=(0,l.useState)(null),Zs=(0,o.Z)(ws,2),ks=Zs[0],Cs=Zs[1],Is=(0,l.useState)(!1),Ss=(0,o.Z)(Is,2),Ts=Ss[0],As=Ss[1],Rs=(0,l.useState)(null),Es=(0,o.Z)(Rs,2),Ls=Es[0],zs=Es[1],Ds=(0,l.useState)(!1),Ms=(0,o.Z)(Ds,2),Us=Ms[0],Fs=Ms[1],Bs=(0,l.useState)(0),Hs=(0,o.Z)(Bs,2),Os=Hs[0],Vs=Hs[1],Gs=(0,l.useState)(!0),Ps=(0,o.Z)(Gs,2),Ws=Ps[0],Xs=Ps[1],Ys={"image/jpeg":"jpeg","image/png":"png","image/gif":"gif"},Js=(0,l.useMemo)((function(){var e=null!==ds&&void 0!==ds&&ds.PictureType?Ys[ds.PictureType]:void 0;return null!==ds&&void 0!==ds&&ds.Id&&e?"".concat("https://somniumspace.org","/userImage/").concat(ds.Id,"/UserProfileImage.").concat(e):null}),[null===ds||void 0===ds?void 0:ds.Id,null===ds||void 0===ds?void 0:ds.PictureType]),qs=(0,E.h8)(Ke.accountRole,[E.Du.Dev],"oneOf"),Qs={0:Ve("pages.asset.index.content.avatars"),1:Ve("pages.asset.index.content.wearables"),2:Ve("pages.asset.index.content.vehicles"),3:Ve("pages.asset.index.content.buildings"),4:Ve("pages.asset.index.content.media_items"),5:Ve("pages.asset.index.content.landscaping"),6:Ve("pages.asset.index.content.worlds"),7:Ve("pages.asset.index.content.miscellaneous"),8:Ve("pages.asset.index.content.unity_projects"),9:Ve("pages.asset.index.content.scripts")},Ks=(0,l.useRef)(0),$s=function(){Ks.current+=1,$e.setLoading(!0)},et=function(){Ks.current=Math.max(0,Ks.current-1),0===Ks.current&&$e.setLoading(!1)},st=function(){var e=(0,c.Z)((0,i.Z)().mark((function e(){var s;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return $s(),e.prev=1,e.next=4,Qe.getCommunityAssetItemById(Ge);case 4:s=e.sent,gs(s),e.next=14;break;case 8:if(e.prev=8,e.t0=e.catch(1),!Xe(e.t0,{message:Ve("pages.asset.index.messages.asset_could_not_be_found")})){e.next=13;break}return e.abrupt("return");case 13:console.error("Error fetching asset data:",e.t0);case 14:return e.prev=14,et(),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[1,8,14,17]])})));return function(){return e.apply(this,arguments)}}(),tt=function(){var e=(0,c.Z)((0,i.Z)().mark((function e(s,t){var n;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return $s(),e.prev=1,Xs(!0),e.next=5,Qe.getOtherCommunityAssetItemByCreator({creatorId:s,currentAssetId:t});case 5:n=e.sent,hs(n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),console.error("Error fetching assets:",e.t0);case 12:return e.prev=12,Xs(!1),et(),e.finish(12);case 16:case"end":return e.stop()}}),e,null,[[1,9,12,16]])})));return function(s,t){return e.apply(this,arguments)}}();(0,l.useEffect)((function(){var e;if(null!==ms&&void 0!==ms&&null!==(e=ms.Creator)&&void 0!==e&&e.UserId){var s=function(){var e=(0,c.Z)((0,i.Z)().mark((function e(){var s,t;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return $s(),e.prev=1,e.next=4,Qe.getUserProfileInfo(null===(s=ms.Creator)||void 0===s?void 0:s.UserId);case 4:null!==(t=e.sent)&&void 0!==t&&t.Id&&us(t),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.error("Error fetching profile info:",e.t0);case 11:return e.prev=11,et(),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[1,8,11,14]])}
1)));return function(){return e.apply(this,arguments)}}();s()}}),[ms]),(0,l.useEffect)((function(){st(),ns(!0)}),[Ge]),(0,l.useEffect)((function(){null!==qe&&void 0!==qe&&qe.isAuthenticated&&nt()}),[null===qe||void 0===qe?void 0:qe.isAuthenticated]);var nt=function(){var e=(0,c.Z)((0,i.Z)().mark((function e(){var s;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return $s(),e.prev=1,e.next=4,(0,j.D0)();case 4:s=e.sent,cs(s.data),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.error("Error fetching user account:",e.t0);case 11:return e.prev=11,et(),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[1,8,11,14]])})));return function(){return e.apply(this,arguments)}}();(0,l.useEffect)((function(){ms&&tt(ms.Creator.UserId,ms.Id)}),[ms]),(0,l.useEffect)((function(){var e=function(e){e&&"RequestParentURL"===e.data&&e.source&&e.source.postMessage&&e.origin&&e.source.postMessage(window.location.href,e.origin)};return window.addEventListener("message",e),function(){window.removeEventListener("message",e)}}),[]);var at=function(){var e=(0,c.Z)((0,i.Z)().mark((function e(){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Ls){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,Qe.deleteAssetForDev(Ls);case 5:As(!1),m.Am.success(Ve("pages.asset.index.messages.asset_deleted_successfully")),Pe((0,L.SZ)(Ye,"/community-hub/my-assets")),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(2),m.Am.error(Ve("pages.asset.index.messages.failed_to_delete_asset_please_try_again")),console.error("Error deleting asset:",e.t0);case 14:return e.prev=14,As(!1),zs(null),e.finish(14);case 18:case"end":return e.stop()}}),e,null,[[2,10,14,18]])})));return function(){return e.apply(this,arguments)}}(),rt=function(e){return e>=1e3?"".concat((e/1e3).toFixed(1).replace(/\.0$/,""),"k"):e.toString()},it=(0,y.X)(null===ms||void 0===ms?void 0:ms.Description),ct=function(){var e=(0,c.Z)((0,i.Z)().mark((function e(){var s,t,n,a,o;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(ms){e.next=3;break}return m.Am.error(Ve("pages.asset.index.messages.asset_data_is_not_available")),e.abrupt("return");case 3:t=(null===(s=ms.FileType)||void 0===s?void 0:s.toLowerCase())||"unknown",n="".concat(ms.Name,".").concat(t),a="https://ai-space.fra1.cdn.digitaloceanspaces.com/ai-space/website/community-assets/".concat(ms.Creator.UserId,"/").concat(ms.Id,"/files/file.").concat(t);try{(o=document.createElement("a")).href=a,o.download=n,o.target="_blank",document.body.appendChild(o),o.click(),document.body.removeChild(o),setTimeout((0,c.Z)((0,i.Z)().mark((function e(){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Qe.addDownloadsCount(ms.Id);case 3:gs((function(e){return(0,r.Z)((0,r.Z)({},e),{},{TotalDownloads:((null===e||void 0===e?void 0:e.TotalDownloads)||0)+1})})),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),console.error("Error incrementing download count:",e.t0);case 9:case"end":return e.stop()}}),e,null,[[0,6]])}))),3e3),m.Am.success(Ve("pages.asset.index.messages.file_download_started"))}catch(l){console.error("Error downloading file:",l),m.Am.error(Ve("pages.asset.index.messages.failed_to_download_file_please_try_again"))}case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ot=function(){var e=(0,c.Z)((0,i.Z)().mark((function e(s){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Ge&&!Ns){e.next=2;break}return e.abrupt("return");case 2:if(is){e.next=5;break}return Pe((0,L.SZ)(Ye,"/auth")),e.abrupt("return");case 5:return e.prev=5,bs(!0),e.next=9,Qe.addRating(Ge,s);case 9:gs((function(e){return(0,r.Z)((0,r.Z)({},e),{},{RatingStars:(e.RatingStars*e.VotersCount+s)/(e.VotersCount+1),VotersCount:e.VotersCount+1,CanSetRating:!1})})),m.Am.success(Ve("pages.asset.index.messages.asset_rating_has_been_added")),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(5),console.error("Error submitting rating:",e.t0),m.Am.error(Ve("pages.asset.index.messages.failed_to_add_rating_value_please_try_again"));case 17:return e.prev=17,bs(!1),e.finish(17);case 20:case"end":return e.stop()}}),e,null,[[5,13,17,20]])})));return function(s){return e.apply(this,arguments)}}(),lt=function(){var e=(0,c.Z)((0,i.Z)().mark((function e(){var s;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Ge){e.next=2;break}return e.abrupt("return");case 2:if(is){e.next=5;break}return Pe((0,L.SZ)(Ye,"/auth")),e.abrupt("return");case 5:return e.prev=5,s=ms.Favorite,e.next=9,Qe.setFavorite(Ge,!s);case 9:gs((function(e){return(0,r.Z)((0,r.Z)({},e),{},{Favorite:!s})})),s?m.Am.success(Ve("pages.asset.index.messages.asset_has_been_removed_from_favorites")):m.Am.success(Ve("pages.asset.index.messages.asset_has_been_added_to_favorites")),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(5),console.error("Error toggling favorite:",e.t0),m.Am.error(Ve("pages.asset.index.messages.failed_to_update_favorite_status_please_try_again"));case 17:case"end":return e.stop()}}),e,null,[[5,13]])})));return function(){return e.apply(this,arguments)}}(),dt=function(e){e&&"number"===typeof e||(e=0);var s=Math.floor(e),t=e%1>=.5,n=5-s-(t?1:0);return(0,Oe.jsxs)("div",{className:me,children:[(0,a.Z)(Array(s)).map((function(e,s){return(0,Oe.jsx)(x.Z,{className:ve},"full-".concat(s))})),t&&(0,Oe.jsx)(x.Z,{className:ve},"half"),(0,a.Z)(Array(n)).map((function(e,s){return(0,Oe.jsx)(v.Z,{className:ve},"empty-".concat(s))}))]})},ut=null!==ms&&void 0!==ms&&ms.Creator?["https://ai-space.fra1.cdn.digitaloceanspaces.com/ai-space/website/community-assets/".concat(ms.Creator.UserId,"/").concat(ms.Id,"/images/main.").concat(ms.MainImageType)]:[];return ts&&ms?(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsx)(N.Z,{title:null!==ms&&void 0!==ms&&ms.Name?"Somnium Asset: ".concat(ms.Name):Ve("pages.asset.index.title.somnium_asset"),description:null!==ms&&void 0!==ms&&null!==(e=ms.Creator)&&void 0!==e&&e.Nickname?"".concat(Ve("pages.asset.index.description.explore")," ").concat(ms.Creator.Nickname).concat(Ve("pages.asset.index.description.s_asset_in_somnium_space")):Ve("pages.asset.index.description.explore_asset_in_somnium_space")}),(0,Oe.jsxs)("div",{style:{position:"relative",width:"100%",minHeight:"100vh",display:"flex",justifyContent:"center",alignItems:"center",background:"\n            linear-gradient(0deg, #002644, #002644)",backgroundSize:"100% 100%",backgroundPosition:"center",backgroundRepeat:"no-repeat"},children:[(0,Oe.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundImage:"url(".concat(w,")"),backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",opacity:.35,zIndex:0}}),(0,Oe.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"radial-gradient(100% 210.99% at 0% 50%, rgba(0, 0, 0, 0.8) 10%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0) 100%)",zIndex:1,pointerEvents:"none"}}),(0,Oe.jsxs)("div",{style:{position:"relative",zIndex:2},className:D,children:[Ts&&(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsx)("div",{className:ae}),(0,Oe.jsx)("div",{className:M,children:(0,Oe.jsxs)("div",{className:U,children:[(0,Oe.jsx)("button",{className:re,onClick:function(){As(!1),zs(null)},children:Ve("pages.asset.index.content.close_x")}),(0,Oe.jsx)("h2",{children:Ve("pages.asset.index.content.are_you_sure")}),(0,Oe.jsxs)("div",{className:F,children:[(0,Oe.jsxs)("p",{children:[Ve("pages.asset.index.content.are_you_sure_you_want_to_delete_these_assets_from_our_servers"),(0,Oe.jsx)("br",{}),Ve("pages.asset.index.content.once_deleted_all_associated_data_will_be_permanently_removed")]}),(0,Oe.jsx)("h3",{children:Ve("pages.asset.index.content.this_action_is_irreversible")})]}),(0,Oe.jsx)("div",{className:ie,children:(0,Oe.jsx)(g.O,{styleType:"red_4",onClick:at,sx:{width:"80% !important",maxHeight:"50px",fontSize:"16px !important",fontWeight:"500 !important"},children:Ve("pages.asset.index.content.confirm_delete")})})]})})]}),Us&&ut.length>0&&(0,Oe.jsx)(h.Z,{mainSrc:ut[Os],nextSrc:ut[(Os+1)%ut.length],prevSrc:ut[(Os+ut.length-1)%ut.length],onCloseRequest:function(){Fs(!1)},onMovePrevRequest:function(){Vs((function(e){return 0===e?ut.length-1:e-1}))},onMoveNextRequest:function(){Vs((function(e){return e===ut.length-1?0:e+1}))}}),(0,Oe.jsx)("div",{className:B,children:(0,Oe.jsxs)("div",{className:V,children:[(0,Oe.jsx)("h1",{className:G,children:null===(s=ms.Name)||void 0===s?void 0:s.replace(/-/g," ")}),(0,Oe.jsx)("div",{className:P,onClick:lt,children:(0,Oe.jsx)("img",{loading:"lazy",decoding:"async",src:null!==ms&&void 0!==ms&&ms.Favorite?R.Z:A.Z,alt:Ve("pages.asset.index.content.favorite_icon")})})]})}),(0,Oe.jsx)("div",{className:ce}),(0,Oe.jsxs)("div",{className:H,children:[(0,Oe.jsx)("div",{className:W,children:(0,Oe.jsx)("div",{className:oe,children:(0,Oe.jsxs)(u.rU,{to:(0,L.SZ)(Ye,"/user/".concat(ms.Creator.UserId)),className:le,children:[(0,Oe.jsx)("img",{loading:"lazy",decoding:"async",src:null!==Js&&void 0!==Js?Js:T.Z,onError:function(e){e.currentTarget.onerror=null,e.currentTarget.src=T.Z},alt:Ve("pages.asset.index.content.creator_avatar"),className:de}),(0,Oe.jsxs)("div",{className:ue,children:[(0,Oe.jsx)("span",{className:pe,children:Ve("pages.asset.index.content.creator")}),(0,Oe.jsx)("span",{className:_e,children:ms.Creator.Nickname})]})]})})}),(0,Oe.jsxs)("div",{className:X,children:[ms.CanSetRating?(0,Oe.jsx)("div",{className:me,children:[1,2,3,4,5].map((function(e){return(0,Oe.jsx)(x.Z,{className:"".concat(ge," ").concat(ks&&ks>=e?xe:""),onMouseEnter:function(){return!Ns&&Cs(e)},onMouseLeave:function(){return!Ns&&Cs(null)},onClick:function(){return!Ns&&ot(e)},style:{cursor:Ns?"not-allowed":"pointer",opacity:Ns?.5:1}},e)}))}):dt(ms.RatingStars),(0,Oe.jsxs)("div",{className:fe,children:[(0,Oe.jsx)("span",{className:he,children:ms.RatingStars?ms.RatingStars.toFixed(1):"0.0"}),(0,Oe.jsx)("span",{className:ye,children:Ve("pages.asset.index.content.av_rating")}),(0,Oe.jsxs)("span",{className:je,children:["(",ms.VotersCount||0,")"]})]})]})]}),(0,Oe.jsxs)("div",{className:O,children:[(0,Oe.jsx)("div",{className:Y,children:(0,Oe.jsx)("div",{className:Ne,children:ut.length>0?(0,Oe.jsx)("img",{loading:"lazy",decoding:"async",src:ut[0],alt:Ve("pages.asset.index.content.main_asset"),className:"".concat(be," ").concat(null!==ms&&void 0!==ms&&ms.Nsfw?we:""),onClick:function(){return Vs(0),void Fs(!0)}}):(0,Oe.jsx)("div",{className:Ze})})}),(0,Oe.jsxs)("div",{className:J,children:[qs&&(0,Oe.jsx)(g.O,{styleType:"red_4",onClick:function(){var e;e=ms.Id,zs(e),As(!0)},sx:{maxWidth:"40%",maxHeight:"48px",fontSize:"16px !important",marginTop:"30px !important"},children:Ve("pages.asset.index.content.remove_asset")}),(0,Oe.jsx)(p.Z,{variant:"contained",className:q,onClick:ct,sx:{maxWidth:"45%",maxHeight:"48px",fontSize:"16px !important",marginTop:qs?"30px !important":"108px !important"},children:Ve("pages.asset.index.content.download_asset")}),(0,Oe.jsxs)("div",{className:Q,children:[(0,Oe.jsxs)("div",{className:ke,children:[(0,Oe.jsx)("img",{loading:"lazy",decoding:"async",src:Z.Z,alt:Ve("pages.asset.index.content.views_icon"),
1className:Ce}),(0,Oe.jsxs)("span",{children:[rt(ms.TotalViews)," ",Ve("pages.asset.index.content.total_views")]})]}),(0,Oe.jsxs)("div",{className:ke,children:[(0,Oe.jsx)("img",{loading:"lazy",decoding:"async",src:k,alt:Ve("pages.asset.index.content.downloads_icon"),className:Ce}),(0,Oe.jsxs)("span",{children:[rt(ms.TotalDownloads)," ",Ve("pages.asset.index.content.total_downloads")]})]}),(0,Oe.jsxs)("div",{className:ke,children:[(0,Oe.jsx)("img",{loading:"lazy",decoding:"async",src:C.Z,alt:Ve("pages.asset.index.content.type_icon"),className:Ce}),(0,Oe.jsxs)("span",{children:[Ve("pages.asset.index.content.asset_type"),": ",Qs[ms.Category]||Ve("pages.asset.index.content.unknown")]})]}),(0,Oe.jsxs)("div",{className:ke,children:[(0,Oe.jsx)("img",{loading:"lazy",decoding:"async",src:I,alt:Ve("pages.asset.index.content.file_icon"),className:Ce}),(0,Oe.jsxs)("span",{children:[Ve("pages.asset.index.content.file"),": ",ms.FileType.toUpperCase()]})]}),ms.Nsfw&&(0,Oe.jsxs)("div",{className:Ie,children:[(0,Oe.jsx)("img",{loading:"lazy",decoding:"async",src:S.Z,alt:Ve("pages.asset.index.content.mark_icon"),className:Se}),(0,Oe.jsx)("span",{children:Ve("pages.asset.index.content.marked_as_nsfw")})]})]})]})]}),(0,Oe.jsx)("div",{className:B,children:(0,Oe.jsx)("h3",{className:K,children:Ve("pages.asset.index.content.description")})}),(0,Oe.jsx)("div",{className:$}),(0,Oe.jsx)("div",{className:ee,dangerouslySetInnerHTML:{__html:it}}),(0,Oe.jsx)("div",{className:B,children:(0,Oe.jsx)("h3",{className:K,children:Ve("pages.asset.index.content.related_tags")})}),(0,Oe.jsx)("div",{className:$}),(0,Oe.jsx)("div",{className:se,children:ms.Tags&&(0,a.Z)(new Map(ms.Tags.map((function(e){return[e.Text,e]}))).values()).map((function(e,s){return(0,Oe.jsx)("span",{className:te,children:e.Text},s)}))}),(0,Oe.jsx)("div",{className:B,children:(0,Oe.jsx)("h3",{className:K,children:Ve("pages.asset.index.content.file_contents")})}),(0,Oe.jsx)("div",{className:$}),(0,Oe.jsx)("div",{className:ne,children:(0,Oe.jsx)("ul",{children:null===ms||void 0===ms||null===(t=ms.FileContents)||void 0===t?void 0:t.split(", ").filter((function(e){return!e.startsWith("__MACOSX")&&!e.endsWith("/")})).map((function(e,s){return(0,Oe.jsx)("li",{children:"/".concat(e)},s)}))})}),fs.length>0&&(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsx)("div",{className:B,children:(0,Oe.jsx)("h1",{className:Te,children:Ve("pages.asset.index.content.other_items_from_this_creator")})}),(0,Oe.jsx)("div",{className:Ae,children:Ws?(0,Oe.jsx)("div",{className:Ze,children:(0,Oe.jsx)(_.Z,{})}):(0,Oe.jsx)(f.G,{columnsCountBreakPoints:{400:1,720:3,1080:4,1280:4,1440:4},children:(0,Oe.jsx)(f.Z,{gutter:"20px",children:fs.map((function(e,s){return(0,Oe.jsxs)(u.rU,{to:(0,L.SZ)(Ye,"/asset/".concat(e.Id)),className:Re,children:[(0,Oe.jsx)("div",{className:Ee,children:(0,Oe.jsx)("img",{loading:"lazy",decoding:"async",src:"https://ai-space.fra1.cdn.digitaloceanspaces.com/ai-space/website/community-assets/".concat(e.Creator.UserId,"/").concat(e.Id,"/images/main.").concat(e.MainImageType),alt:e.MainImageType,className:"".concat(Le," ").concat(e.Nsfw?we:"")})}),(0,Oe.jsxs)("div",{className:ze,children:[(0,Oe.jsxs)("div",{className:De,children:[(0,Oe.jsx)("div",{className:Me,children:e.Name}),(0,Oe.jsx)("div",{className:P,children:(0,Oe.jsx)("img",{loading:"lazy",decoding:"async",src:e.Favorite?R.Z:A.Z,alt:Ve("pages.asset.index.content.favorite_icon")})})]}),(0,Oe.jsx)("div",{className:Ue,children:Qs[e.Category]||Ve("pages.asset.index.content.unknown")}),(0,Oe.jsxs)("div",{className:W,children:[(0,Oe.jsxs)("div",{className:oe,children:[(0,Oe.jsx)("img",{loading:"lazy",decoding:"async",src:null!==Js&&void 0!==Js?Js:T.Z,onError:function(e){e.currentTarget.onerror=null,e.currentTarget.src=T.Z},alt:Ve("pages.asset.index.content.creator_avatar"),className:de}),(0,Oe.jsxs)("div",{className:ue,children:[(0,Oe.jsx)("span",{className:pe,children:Ve("pages.asset.index.content.creator")}),(0,Oe.jsx)("span",{className:_e,children:e.Creator.Nickname})]})]}),(0,Oe.jsxs)("div",{className:Fe,children:[dt(e.RatingStars),(0,Oe.jsx)("div",{className:fe,children:(0,Oe.jsx)("span",{className:he,children:e.RatingStars?e.RatingStars.toFixed(1):"0.0"})})]})]}),(0,Oe.jsx)("div",{className:Be,children:function(){var s=0,t=[],a=new Set,r=document.createElement("div");r.style.display="inline-block",r.style.visibility="hidden",r.style.position="absolute",document.body.appendChild(r);var i,c=(0,n.Z)((e.Tags||[]).filter((function(e){return!a.has(e.Text)&&(a.add(e.Text),!0)})));try{for(c.s();!(i=c.n()).done;){var o=i.value,l=document.createElement("span");l.style.display="inline-block",l.style.font="14px Exo",l.style.padding="0.05rem 0.3rem",l.textContent=o.Text,r.appendChild(l);var d=l.offsetWidth;if(!(s+d<300)){t.push({Text:"..."});break}t.push(o),s+=d,r.innerHTML=""}}catch(u){c.e(u)}finally{c.f()}return document.body.removeChild(r),t.map((function(e,s){return(0,Oe.jsx)("span",{className:te,children:e.Text},s)}))}()})]})]},s)}))})})})]})]})]})]}):null}},16077:function(e,s,t){t.d(s,{L:function(){return u},X:function(){return d}});var n=t(14987),a=["style","form","input","button","textarea","select","option"],r=["style"],i=["youtube.com","www.youtube.com","youtube-nocookie.com","www.youtube-nocookie.com","youtu.be","player.vimeo.com","vimeo.com"],c=["target","allow","allowfullscreen","frameborder"],o=!1,l=function(){o||(o=!0,n.Z.addHook("afterSanitizeAttributes",(function(e){var s=e;"IFRAME"!==s.tagName||function(e){if(!e)return!1;try{var s=new URL(e,"https://somniumspace.com");return("https:"===s.protocol||"http:"===s.protocol)&&i.includes(s.hostname.toLowerCase())}catch(t){return!1}}(s.getAttribute("src"))?"A"===s.tagName&&"_blank"===s.getAttribute("target")&&s.setAttribute("rel","noopener noreferrer"):s.remove()})))},d=function(e){return e?(l(),n.Z.sanitize(e,{FORBID_TAGS:a,FORBID_ATTR:r,ADD_TAGS:["iframe"],ADD_ATTR:c})):""},u=function(e){var s=null===e||void 0===e?void 0:e.trim();if(s){var t=/^[a-z][a-z0-9+.-]*:/i.test(s)?s:"https://".concat(s);try{var n=new URL(t);return"http:"===n.protocol||"https:"===n.protocol?n.href:void 0}catch(a){return}}}}}]);

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.