-
Notifications
You must be signed in to change notification settings - Fork 1
/
122-0f0a358ec7c0b18b.js
1 lines (1 loc) · 19.6 KB
/
122-0f0a358ec7c0b18b.js
1
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[122],{7516:function(e,n,t){var r=t(5893),a=t(7294),o=t(4245),s=t(3633),i=(0,o.QM)({wrapper:{marginTop:"-20px",cursor:"pointer",userSelect:"none","&:hover":{}},dropdown:{width:"125px",background:"white",position:"absolute",right:"-20px",borderRadius:"2px"},dropdownEntry:{width:"100%","&:hover":{background:"#e3e3e3"}},dropdownText:{marginBottom:0,fontSize:"16px",padding:"8px 10px",color:"rgb(33, 37, 41)"},dropdownDots:{letterSpacing:"3px",fontWeight:100}});n.Z=function(e){var n=(0,a.useState)(!1),t=n[0],o=n[1],c=(0,s.Z)(),u=i();return(0,r.jsxs)("div",{className:u.wrapper,children:[(0,r.jsx)("p",{className:"mb-0 "+u.dropdownDots,onClick:function(){o(!t)},children:"..."}),t&&(0,r.jsx)("div",{className:u.dropdown+" "+c.card,children:e.options.map((function(e){return(0,r.jsx)("a",{href:e.url||"#",onClick:e.onClick,children:(0,r.jsx)("div",{className:u.dropdownEntry,children:(0,r.jsx)("p",{className:u.dropdownText,children:e.name})},e.name)})}))})]})}},1669:function(e,n,t){var r=t(5893),a=t(4245),o=(t(465),t(1747)),s=t(9125),i=t(7294),c=(0,a.QM)({image:{maxWidth:"400px",width:"100%",margin:"0 auto",height:"auto",paddingTop:"20px"}});n.Z=function(e){var n=c(),t=o.Z.useContainer(),a=(0,i.useState)(0),u=a[0],l=a[1],d=(0,i.useState)(t.getPlaceholder()),p=d[0],m=d[1];return(0,i.useEffect)((function(){m(t.getAssetThumbnail(e.id,"420x420"))}),[e,t.thumbnails]),(0,r.jsx)("img",{className:n.image+" "+(e.className||""),src:p,alt:e.name,onError:function(e){u>=3||((0,s.a)({errorEvent:e,type:"assetThumbnail",src:p}),l(u+1),m(t.getPlaceholder()))}})}},4081:function(e,n,t){var r=t(5893),a=(0,t(4245).QM)({buttonWrapper:{margin:"0 auto",display:"flex",justifyContent:"center",maxWidth:"300px"},buttonPaginate:{color:"#1a1a1a",background:"#fff",border:"1px solid #dbdbdb",padding:"0px 12px",fontSize:"24px",fontWeight:600,borderRadius:"4px",marginBottom:0,height:"34px",cursor:"pointer"},textCurrentPage:{margin:"8px 16px 0 16px",fontWeight:"300"},buttonPaginateDisabled:{color:"#c3c3c3",cursor:"default"}});n.Z=function(e){var n=e.totalItems,t=e.limit,o=e.page,s=e.nextPageAvailable,i=e.previousPageAvailable,c=e.loadPreviousPage,u=e.loadNextPage,l=a(),d=n?"of "+Math.ceil(n/t):s()?"of many":null;return(0,r.jsx)("div",{className:"row",children:(0,r.jsx)("div",{className:"col-12",children:(0,r.jsxs)("div",{className:l.buttonWrapper,children:[(0,r.jsx)("div",{className:l.buttonPaginate+" "+(i()?"":l.buttonPaginateDisabled),onClick:function(){i()&&c()},children:(0,r.jsx)("p",{children:"<"})}),(0,r.jsxs)("p",{className:l.textCurrentPage,children:["Page ",o," ",d]}),(0,r.jsx)("div",{className:l.buttonPaginate+" "+(s()?"":l.buttonPaginateDisabled),onClick:function(){s()&&u()},children:(0,r.jsx)("p",{children:">"})})]})})})}},4008:function(e,n,t){var r=t(5893),a=t(7294),o=(0,t(4245).QM)({selectorWrapper:{},selectorClosed:{padding:"10px 15px",textAlign:"left",width:"100%",color:"#666",background:"white",borderRadius:"4px",border:"1px solid #c3c3c3",fontSize:"16px",userSelect:"none",cursor:"pointer","&:hover":{background:"#01a2fd",color:"#ffffff"}},selectorOpen:{background:"#01a2fd",color:"#ffffff"},selectorCaret:{float:"right"},selectorMenuOpen:{position:"absolute",width:"100%",background:"white",zIndex:3},selectOption:{padding:"10px 15px",marginBottom:0,cursor:"pointer",userSelect:"none",fontSize:"16px","&:hover":{boxShadow:"4px 0 0 0 #00a2ff inset"}}});n.Z=function(e){var n=o(),t=(0,a.useState)(!1),s=t[0],i=t[1],c=(0,a.useState)((function(){return e.value?e.options.find((function(n){return n.value===e.value})):e.options[0]})),u=c[0],l=c[1],d=(0,a.useRef)(null);return(0,r.jsxs)("div",{className:n.selectorWrapper,children:[(0,r.jsxs)("div",{ref:d,className:n.selectorClosed+" "+(s?n.selectorOpen:""),onClick:function(){i(!s)},children:[(0,r.jsx)("span",{children:u.name}),(0,r.jsx)("span",{className:n.selectorCaret,children:"V"})]}),s&&d.current&&(0,r.jsx)("div",{className:n.selectorMenuOpen,style:{width:d.current.clientWidth+"px"},children:e.options.map((function(t){return(0,r.jsx)("p",{className:n.selectOption,onClick:function(){l(t),i(!1),e.onChange(t)},children:t.name},t.value)}))})]})}},8660:function(e,n,t){var r=t(5893);n.Z=function(e){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{id:"theme-2016-enabled"}),e.children]})}},1122:function(e,n,t){t.d(n,{Z:function(){return T}});var r=t(5893),a=t(7294),o=t(8305),s=t(3766),i=t(8246),c=t(2300),u=(0,o.f)((function(){var e=(0,c.Z)("inventoryPageLimit",24),n=(0,a.useState)(null),t=n[0],r=n[1],o=(0,a.useState)(null),s=o[0],u=o[1],l=(0,a.useState)({name:"Hats",value:8}),d=l[0],p=l[1],m=(0,a.useState)(null),f=m[0],v=m[1],h=(0,a.useState)(null),g=h[0],x=h[1],b=(0,a.useState)(null),I=b[0],P=b[1],y=function(n,t,r,a){("Inventory"===n?i.$v:i._l)({userId:t,limit:e,cursor:a,assetTypeId:r}).then((function(e){v(e.Data)})).catch((function(e){x(e)}))};return{userId:t,setUserId:function(e){r(e),u(null)},userInfo:s,setUserInfo:u,mode:I,setMode:P,error:g,setError:x,data:f,limit:e,category:d,setCategory:function(e){p(e),v(null),y(I,t,e.value,"")},loadNextPage:function(){y(I,t,d.value,f.nextPageCursor)},loadPreviousPage:function(){y(I,t,d.value,f.previousPageCursor)},nextPageAvailable:function(){return f&&null!==f.nextPageCursor},previousPageAvailable:function(){return f&&null!==f.previousPageCursor},requestInventory:y}})),l=t(4245),d=(t(7516),t(4008)),p=(0,l.QM)({categoryTitle:{fontWeight:300,fontSize:"24px"},categoryBgDesktop:{background:"#fff",borderRadius:"4px",boxShadow:"0 1px 3px rgba(150,150,150,0.75)"},selectorOptionSelected:{color:"rgb(0, 162, 255)",borderRight:"4px solid rgb(0, 162, 255)"},selectorOption:{cursor:"pointer",marginLeft:"1rem",paddingBottom:"0.5rem",paddingTop:"0.5rem",fontWeight:"300",fontSize:"18px","&:hover":{color:"rgb(0, 162, 255)",borderRight:"4px solid rgb(0, 162, 255)"}},childSelector:{position:"absolute",width:"140px",marginTop:"-35px",marginLeft:"143px",zIndex:4}}),m=function(e){var n=p(),t=u.useContainer(),o=[{name:"Heads",value:17},{name:"Faces",value:18},{name:"Gears",value:19},(0,c.Z)("accessoriesEnabled",!1)?{name:"Accessories",value:"Accessories",children:[{name:"Hats",value:8},{name:"Hair",value:41},{name:"Face",value:42},{name:"Neck",value:43},{name:"Shoulder",value:44},{name:"Front",value:45},{name:"Back",value:46},{name:"Waist",value:47}]}:{name:"Hats",value:8},{name:"T-Shirts",value:2},{name:"Shirts",value:11},{name:"Pants",value:12},{name:"Decals",value:13},{name:"Models",value:10},{name:"Plugins",value:38},{name:"Animations",value:24},{name:"Places",value:9},{name:"Game Passes",value:34},{name:"Audio",value:3},{name:"Badges",value:21},{name:"Torsos",value:27},(0,c.Z)("packagesEnabled",!1)&&{name:"Packages",value:32}].filter((function(e){return!!e})),s=(0,a.useState)((function(){return window.innerWidth>=992?null:o.find((function(e){return e.value===((0,c.Z)("accessoriesEnabled",!1)?"Accessories":8)}))})),i=s[0],l=s[1],m=function(e){e.children?l(i===e?null:e):t.setCategory(e)};return(0,r.jsxs)("div",{className:"col-12 col-lg-2",children:[(0,r.jsxs)("div",{className:"d-block d-lg-none",children:[(0,r.jsx)("h2",{className:n.categoryTitle,children:"CATEGORY"}),(0,r.jsx)(d.Z,{options:o,onChange:m,value:(0,c.Z)("accessoriesEnabled",!1)?"Accessories":8}),i&&(0,c.Z)("accessoriesEnabled",!1)&&i.children?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h2",{className:n.categoryTitle,children:"SUBCATEGORY"}),(0,r.jsx)(d.Z,{options:i.children,onChange:function(e){t.setCategory(e)},value:8})]}):null]}),(0,r.jsx)("div",{className:"d-none d-lg-block d-xl-block",children:(0,r.jsxs)("div",{className:n.categoryBgDesktop,children:[(0,r.jsx)("div",{className:"ps-3 pe-3 pt-4",children:(0,r.jsx)("h2",{className:n.categoryTitle,children:"CATEGORY"})}),o.map((function(e){var a=t.category.value===e.value;return(0,r.jsxs)("div",{onMouseEnter:function(){l(e)},children:[(0,r.jsx)("div",{onClick:function(n){m(e)},className:n.selectorOption+" "+(a?n.selectorOptionSelected:""),children:e.name},e.value),i&&i.children&&i.value===e.value?(0,r.jsx)("div",{className:n.categoryBgDesktop+" "+n.childSelector,children:i.children.map((function(e){var a=t.category.value===e.value;return(0,r.jsx)("div",{onMouseLeave:function(){},onClick:function(n){m(e),l(null)},className:n.selectorOption+" "+(a?n.selectorOptionSelected:""),children:e.name},e.value)}))}):null]},e.value+e.name)}))]})})]})},f=t(1669),v=t(5304),h=t(8452),g=(0,l.QM)({itemCard:{background:"#fff",padding:"4px",borderRadius:"4px",boxShadow:"0 1px 3px rgba(150,150,150,0.75)",marginBottom:"1rem","&:hover":{boxShadow:"0 1px 6px 0 #757575"},cursor:"pointer"},serial:{background:"#000",color:"#fff",padding:"4px 8px",borderRadius:"4px",display:"inline-block",float:"right",fontSize:"12px",marginTop:"10px",marginRight:"10px",marginBottom:"-34px",zIndex:"2",position:"relative"},fakeLimitedLabel:{width:"100%",height:"16px",display:"inline-block"},itemImage:{marginTop:"-20px",marginBottom:"-16px"},itemLabel:{fontWeight:"400",fontSize:"12px",color:"rgb(25, 25, 25)",borderTop:"1px solid #f2f2f2",marginTop:"2px"},creatorLabel:{fontWeight:"400",fontSize:"12px",color:"#757575",marginTop:"2px"},creatorUrl:{color:"rgb(25, 25, 25)"},column:{paddingLeft:"4px",paddingRight:"4px"}}),x=function(e){var n=g(),t=e.isLimited,a=e.isLimitedUnique,o=e.serialNumber;return(0,r.jsx)("div",{className:"col-4 col-md-3 col-lg-2 ps-1 pe-1",children:(0,r.jsx)(h.Z,{href:(0,v.yz)({name:e.name,assetId:e.id}),children:(0,r.jsx)("a",{children:(0,r.jsxs)("div",{className:n.itemCard,children:["number"===typeof o?(0,r.jsxs)("p",{className:n.serial,children:["#",o]}):null,(0,r.jsx)("div",{className:n.itemImage,children:(0,r.jsx)(f.Z,{id:e.id})}),(0,r.jsx)("span",{className:a?"icon-limited-unique-label":t?"icon-limited-label":n.fakeLimitedLabel}),(0,r.jsx)("p",{className:n.itemLabel+" text-truncate",children:e.name}),(0,r.jsxs)("p",{className:n.creatorLabel+" text-truncate",children:["By ",(0,r.jsx)("a",{className:n.creatorUrl,href:1===e.creatorType?"/users/".concat(e.creatorId,"/profile"):"/My/Groups.aspx?gid=".concat(e.creatorId),children:e.creatorName})," "]})]})})})})},b=t(4081),I=function(e){var n=u.useContainer();return n.data?(0,r.jsx)(b.Z,{page:n.data.Page,totalItems:n.data.TotalItems,limit:n.limit,nextPageAvailable:n.nextPageAvailable,previousPageAvailable:n.previousPageAvailable,loadNextPage:n.loadNextPage,loadPreviousPage:n.loadPreviousPage}):null},P=(0,l.QM)({categoryValue:{fontWeight:300,fontSize:"24px"},showingLabel:{fontWeight:400,color:"#757575"}}),y=function(e){var n,t,a=P(),o=u.useContainer(),s=o.data?o.data.Page:null,i=o.data&&0===o.data.Items.length&&!o.previousPageAvailable(),l=o.data&&!i,d=o.data?(null===(n=o.data)||void 0===n||null===(t=n.TotalItems)||void 0===t?void 0:t.toLocaleString())||"many":null;return 1===s&&o.data.Items.length<=(0,c.Z)("inventoryPageLimit",24)&&(d="1"),(0,r.jsx)("div",{className:"col-12 col-lg-10",children:(0,r.jsxs)("div",{className:"row",children:[(0,r.jsxs)("div",{className:"col-12 pe-1 ps-1",children:[(0,r.jsx)("h2",{className:a.categoryValue,children:o.category.name.toUpperCase()}),(0,r.jsx)("p",{className:a.showingLabel,children:s?"Showing ".concat(s," to ").concat(o.data.Items.length," of ").concat(d):null})]}),(0,r.jsxs)("div",{className:"col-12",children:[(0,r.jsx)("div",{className:"row",children:o.data?o.data.Items.map((function(e){var n="limited"===e.AssetRestrictionIcon.CssTag,t="limited-unique"===e.AssetRestrictionIcon.CssTag,a=e.Product.SerialNumber;return(0,r.jsx)(x,{id:e.Item.AssetId,name:e.Item.Name,creatorId:e.Creator.Id,creatorType:e.Creator.Type,creatorName:e.Creator.Name,isLimited:n,isLimitedUnique:t,serialNumber:a},e.Item.AssetId+" "+a)})):null}),i?(0,r.jsx)("p",{className:"text-center mt-4",children:"Player does not have any items in this category."}):null,l?(0,r.jsx)(I,{}):null]})]})})},j=(0,l.QM)({title:{fontSize:"48px",fontWeight:300,color:"rgb(25,25,25)"},container:{background:"#e3e3e3"}}),N=function(e){var n,t=u.useContainer(),o=j();return(0,a.useEffect)((function(){t.setMode(e.mode),t.setUserId(e.userId),e.userId&&((0,s.bG)({userId:e.userId}).then((function(e){return t.setUserInfo(e)})),t.requestInventory(e.mode,e.userId,t.category.value,""))}),[e]),(0,r.jsx)("div",{className:"container "+o.container,children:(0,r.jsxs)("div",{className:"row",children:[(0,r.jsx)("div",{className:"col-12",children:(0,r.jsxs)("h1",{className:o.title,children:[null===(n=t.userInfo)||void 0===n?void 0:n.name,"'s ",e.mode]})}),(0,r.jsx)(m,{}),(0,r.jsx)(y,{})]})})},w=t(8660),T=function(e){var n=e.userId;return(0,r.jsx)(w.Z,{children:(0,r.jsx)(u.Provider,{children:(0,r.jsx)(N,{userId:n,mode:e.mode})})})}},3633:function(e,n,t){var r=(0,t(4245).QM)({card:{borderRadius:0,boxShadow:"0 1px 4px 0 rgb(25 25 25 / 30%)",background:"white"}});n.Z=r},5304:function(e,n,t){t.d(n,{FS:function(){return u},yz:function(){return l},_w:function(){return d},rV:function(){return p},$K:function(){return m},li:function(){return f},Yr:function(){return v},Dt:function(){return h},Ol:function(){return g},Ic:function(){return x},r7:function(){return b}});var r=t(4051),a=t.n(r),o=t(465),s=t(2300);function i(e,n,t,r,a,o,s){try{var i=e[o](s),c=i.value}catch(u){return void t(u)}i.done?n(c):Promise.resolve(c).then(r,a)}function c(e){return function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function s(e){i(o,r,a,s,c,"next",e)}function c(e){i(o,r,a,s,c,"throw",e)}s(void 0)}))}}var u=function(e){return"string"!==typeof e&&(e=""),e.replace(/'/g,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").replace(/^(COM\d|LPT\d|AUX|PRT|NUL|CON|BIN)$/i,"")||"unnamed"},l=((0,s.Z)("itemPageLate2016Enabled",!1),(0,s.Z)("clientSideRenderingEnabled",!1),function(e){var n=e.assetId,t=e.name;return"/catalog/".concat(n,"/").concat(u(t))}),d=function(e){var n=e.category,t=e.subCategory,r=e.query,a=e.limit,s=e.cursor,i=e.sort,c=e.creatorType,u=e.creatorId,l="/v1/search/items?category="+n+"&limit="+a+"&sortType="+i;return s&&(l+="&cursor="+encodeURIComponent(s)),r&&(l+="&keyword="+encodeURIComponent(r)),t&&(l+="&subcategory="+encodeURIComponent(t)),c&&u&&(l+="&creatorTargetId="+u+"&creatorType="+c),(0,o.ZP)("GET",(0,o.mn)("catalog",l)).then((function(e){return e.data}))},p=(function(){var e=c(a().mark((function e(n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,o.ZP)("GET",(0,o.mn)("api","/marketplace/productinfo?assetId="+n)).then((function(e){return e.data})));case 1:case"end":return e.stop()}}),e)})))}(),function(){var e=c(a().mark((function e(n){var t,r,s,i,c,u,l;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==n.length){e.next=2;break}return e.abrupt("return",{data:{data:[]}});case 2:return e.prev=3,e.next=6,(0,o.ZP)("POST",(0,o.mn)("catalog","/v1/catalog/items/details"),{items:n.map((function(e){return{itemType:"Asset",id:e}}))});case 6:for(t=e.sent,r=!0,s=!1,i=void 0,e.prev=8,c=t.data.data[Symbol.iterator]();!(r=(u=c.next()).done);r=!0)"undefined"===typeof(l=u.value).isForSale&&(l.isForSale=0!==l.unitsAvailableForConsumption&&"number"===typeof l.price&&"undefined"===typeof l.lowestPrice);e.next=16;break;case 12:e.prev=12,e.t0=e.catch(8),s=!0,i=e.t0;case 16:e.prev=16,e.prev=17,r||null==c.return||c.return();case 19:if(e.prev=19,!s){e.next=22;break}throw i;case 22:return e.finish(19);case 23:return e.finish(16);case 24:return e.abrupt("return",t);case 27:if(e.prev=27,e.t1=e.catch(3),!e.t1.response||429!==e.t1.response.status){e.next=33;break}return e.next=32,new Promise((function(e){return setTimeout(e,2500)}));case 32:return e.abrupt("continue",2);case 33:throw e.t1;case 34:e.next=2;break;case 36:case"end":return e.stop()}}),e,null,[[3,27],[8,12,16,24],[17,,19,23]])})));return function(n){return e.apply(this,arguments)}}()),m=function(e){var n=e.assetId,t=e.assetTypeId,r=e.limit;return(0,o.ZP)("GET",(0,o.mn)("catalog","/v1/recommendations/asset/"+t+"?contextAssetId="+n+"&numItems="+r)).then((function(e){return e.data}))},f=function(){var e=c(a().mark((function e(n){var t,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.assetId,r=n.offset,e.abrupt("return",(0,o.ZP)("GET",(0,o.SV)()+"/comments/get-json?assetId="+t+"&startIndex="+r+"&thumbnailWidth=100&thumbnailHeight=100&thumbnailFormat=PNG&cachebuster="+Math.random()).then((function(e){return e.data})));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),v=function(){var e=c(a().mark((function e(n){var t,r,s;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.assetId,r=n.comment,e.next=3,(0,o.ZP)("POST",(0,o.SV)()+"/comments/post",{text:r,assetId:t});case 3:if("string"!==typeof(s=e.sent).data.ErrorCode){e.next=6;break}throw new Error(s.data.ErrorCode);case 6:return e.abrupt("return",s.data);case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),h=function(e){var n=e.assetId,t=e.addToProfile;return(0,o.ZP)("POST",(0,o.SV)()+"/asset/toggle-profile",{assetId:n,addToProfile:t})},g=function(){var e=c(a().mark((function e(n){var t,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.assetId,r=n.userId,e.next=3,(0,o.ZP)("GET",(0,o.mn)("catalog","/v1/favorites/users/"+r+"/assets/"+t+"/favorite")).then((function(e){return e.data}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),x=function(){var e=c(a().mark((function e(n){var t,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.assetId,r=n.userId,e.next=3,(0,o.ZP)("POST",(0,o.mn)("catalog","/v1/favorites/users/"+r+"/assets/"+t+"/favorite"));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),b=function(){var e=c(a().mark((function e(n){var t,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.assetId,r=n.userId,e.next=3,(0,o.ZP)("DELETE",(0,o.mn)("catalog","/v1/favorites/users/"+r+"/assets/"+t+"/favorite"));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()},8246:function(e,n,t){t.d(n,{Z0:function(){return o},$v:function(){return s},_l:function(){return i},bG:function(){return c},ov:function(){return u},zg:function(){return l}});var r=t(465),a=(0,r.mn)("inventory",""),o=function(e){var n=e.assetId,t=e.userId;return(0,r.ZP)("GET","".concat(a,"/v1/users/").concat(t,"/items/Asset/").concat(n)).then((function(e){return e.data.data.map((function(e){return{userAssetId:e.instanceId,seller:null,price:null,serialNumber:null}}))}))},s=function(e){var n=e.userId,t=e.limit,a=e.cursor,o=e.assetTypeId;return(0,r.ZP)("GET",(0,r.SV)()+"/users/inventory/list-json?userId=".concat(n,"&assetTypeId=").concat(o,"&cursor=").concat(encodeURIComponent(a||""),"&itemsPerPage=").concat(t)).then((function(e){return e.data}))},i=function(e){var n=e.userId,t=e.limit,a=e.cursor,o=e.assetTypeId;return(0,r.ZP)("GET",(0,r.SV)()+"/users/favorites/list-json?userId=".concat(n,"&assetTypeId=").concat(o,"&pageNumber=").concat(a||1,"&itemsPerPage=").concat(t)).then((function(e){return e.data})).then((function(e){return e.Data.nextPageCursor=a+1,e.Data.previousPageCursor=a-1,e}))},c=function(e){var n=e.userId;return(0,r.ZP)("GET",(0,r.SV)()+"/users/profile/robloxcollections-json?userId=".concat(n)).then((function(e){return e.data.CollectionsItems}))},u=function(e){var n=e.userId,t=e.cursor,a=e.limit,o=e.assetTypeId,s=void 0===o?"null":o;return(0,r.ZP)("GET",(0,r.mn)("inventory","/v1/users/".concat(n,"/assets/collectibles?cursor=").concat(encodeURIComponent(t||""),"&limit=").concat(a,"&assetType=").concat(s))).then((function(e){return e.data}))},l=function(e){var n=e.assetId,t=e.limit,a=e.sort,o=e.cursor;return(0,r.ZP)("GET",(0,r.mn)("inventory","/v2/assets/".concat(n,"/owners?cursor=").concat(encodeURIComponent(o||""),"&limit=").concat(t,"&sortOrder=").concat(a))).then((function(e){return e.data}))}}}]);