@dcl/builder-site 7.12.0 → 7.12.1-16758968085.commit-584a3db

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/assets/{Back-DQoXbeYM.js → Back-D5STX2lw.js} +1 -1
  2. package/assets/CollectionProvider.container-BaEMB-wp.js +1 -0
  3. package/assets/{CollectionStatus.container-DKgxtW3U.js → CollectionStatus.container-B2OPK2Ue.js} +1 -1
  4. package/assets/{ConfirmDelete-ByscZFVO.js → ConfirmDelete-Bs3FcWOF.js} +1 -1
  5. package/assets/{FileSaver.min-QgUKiRmw.js → FileSaver.min-EoiSD4gI.js} +1 -1
  6. package/assets/ItemProvider.container-CGmqD6PU.js +1 -0
  7. package/assets/{JumpIn.container-BiqC78Ge.js → JumpIn.container-BIyRudXB.js} +1 -1
  8. package/assets/{LandAction-CvKFbUMl.js → LandAction-DOytAk-q.js} +1 -1
  9. package/assets/LandProviderPage-COudVDk6.js +1 -0
  10. package/assets/LoggedInDetailPage.container-vr7Cw4cZ.js +1 -0
  11. package/assets/{Navigation-BF79MFFc.css → Navigation-MHkrS5J4.css} +1 -1
  12. package/assets/Navigation.container-CW-ABnAA.js +1 -0
  13. package/assets/{NotFound-Dbd8gZSK.js → NotFound-CfvqR_51.js} +1 -1
  14. package/assets/{OptionsDropdown-BWBuC7KW.js → OptionsDropdown-H4Zg0eZ8.js} +1 -1
  15. package/assets/{RentalPeriod-CG-gyky7.js → RentalPeriod-BrppyRRD.js} +1 -1
  16. package/assets/{SDKTag-CFCXHU8H.js → SDKTag-B7DWlXZ9.js} +1 -1
  17. package/assets/{SceneStats.container-BUtGE_VO.js → SceneStats.container-1wNXzlOf.js} +1 -1
  18. package/assets/{SignInRequired-C_nU0wec.js → SignInRequired-DPkhoSXa.js} +1 -1
  19. package/assets/{ThirdPartyKindBadge-zrKPoF7F.js → ThirdPartyKindBadge-5ike70QT.js} +1 -1
  20. package/assets/{dataReader-0czo1JS_.js → dataReader-rfmttWrC.js} +1 -1
  21. package/assets/{date-FmFpH_C4.js → date-DENw_2Xc.js} +1 -1
  22. package/assets/{fortmatic-BrEIUkkm.js → fortmatic-BgIBiTDd.js} +1 -1
  23. package/assets/hooks-CDZe9Lu5.js +1 -0
  24. package/assets/index-8wGhoQ8Y.js +1 -0
  25. package/assets/{index-C1Myejmp.js → index-9SJ3UOTG.js} +1 -1
  26. package/assets/{index-qclQwEt-.js → index-B-nWj7ez.js} +1 -1
  27. package/assets/index-B-sKTBem.css +1 -0
  28. package/assets/{index-CLk3PLzN.js → index-B7oNBWvX.js} +1 -1
  29. package/assets/{index-CjE61Bgg.js → index-BGPqosiB.js} +1 -1
  30. package/assets/index-BNAQrDIs.js +1 -0
  31. package/assets/index-BPD3Zu-2.js +1 -0
  32. package/assets/{index-BearCfEI.js → index-BR0ofDWx.js} +33 -33
  33. package/assets/index-BXlsGIRR.js +1 -0
  34. package/assets/index-BaHLlwKw.js +1 -0
  35. package/assets/{index-CtrdQAF7.js → index-BthJ0w6M.js} +2 -2
  36. package/assets/{index-Bz9-hv1M.js → index-BuQVBO_f.js} +1 -1
  37. package/assets/index-BuhJD_ui.js +1 -0
  38. package/assets/{index-wXD7RGfH.js → index-ByleWi4d.js} +1 -1
  39. package/assets/index-BzKxaGj5.css +1 -0
  40. package/assets/{index-V7VZvdlb.css → index-C0Oh-tmd.css} +7 -7
  41. package/assets/{index-BXAXL7Cc.js → index-CAIaAe2b.js} +1 -1
  42. package/assets/index-CP9nod7z.js +1 -0
  43. package/assets/{index-DTfO5cLO.js → index-CjHBnYia.js} +1 -1
  44. package/assets/{index-CYW0Q70l.js → index-CtVWfxz2.js} +1 -1
  45. package/assets/{index-CajmgluS.js → index-Cx8X0BDJ.js} +1 -1
  46. package/assets/{index-Kjv6OouU.js → index-CzYmRIiY.js} +1 -1
  47. package/assets/index-D-sHHmDj.js +2 -0
  48. package/assets/index-D0vlqAN4.js +1 -0
  49. package/assets/{index-CmcYgJHD.css → index-D70ZlrJ6.css} +1 -1
  50. package/assets/{index-Dc9Et61g.js → index-DCE6rxhI.js} +1 -1
  51. package/assets/index-DH4vF6Ym.js +1 -0
  52. package/assets/{index-BHpIdKs3.js → index-DJNRUtaJ.js} +1 -1
  53. package/assets/index-DOHfwAz0.js +1 -0
  54. package/assets/{index-DQ2AFQhT.js → index-DOnKJtgq.js} +1 -1
  55. package/assets/index-DVkX9BeB.js +1 -0
  56. package/assets/index-DkcQftO1.js +1 -0
  57. package/assets/{index-B7WmTM6z.js → index-DpYx8jO4.js} +1 -1
  58. package/assets/index-DqeZULYN.css +1 -0
  59. package/assets/index-DyKuHhZQ.js +1 -0
  60. package/assets/{index-UkHdfAsI.js → index-EsYepVsM.js} +1 -1
  61. package/assets/index-JsbjsMyk.js +1 -0
  62. package/assets/index-KfL_z-Ma.css +1 -0
  63. package/assets/{index-CPuLTOrJ.js → index-QhKGcgc8.js} +1 -1
  64. package/assets/index-Vf3QROaF.js +1 -0
  65. package/assets/{index-Bnv5GFLy.js → index-dNbhHo5A.js} +1 -1
  66. package/assets/index-flOj5Hy1.js +1 -0
  67. package/assets/index-ksyOZk5H.js +1 -0
  68. package/assets/index-mS0rT_pG.js +1 -0
  69. package/assets/index-oFDP35qN.js +1 -0
  70. package/assets/{index-CmEObJpJ.css → index-olBQrqCQ.css} +1 -1
  71. package/assets/{index-ApEZI19q.js → index-p7MIwvGn.js} +1 -1
  72. package/assets/index-zEN2qdfp.js +1 -0
  73. package/assets/{index.es-DnykoLDv.js → index.es-DvcruW81.js} +4 -4
  74. package/assets/selectors-CpsYGKcu.js +1 -0
  75. package/index.html +3 -3
  76. package/package.json +3 -3
  77. package/assets/CollectionProvider.container-B3-Cph8S.js +0 -1
  78. package/assets/ItemProvider.container-DCcmBNU2.js +0 -1
  79. package/assets/LandProviderPage-BWPMhRsc.js +0 -1
  80. package/assets/LoggedInDetailPage.container-B2RBWKCs.js +0 -1
  81. package/assets/Navigation.container-CNk-oi6a.js +0 -1
  82. package/assets/index-B4XjxWcB.js +0 -1
  83. package/assets/index-B5I1K1RV.js +0 -1
  84. package/assets/index-BBoLEJK-.js +0 -1
  85. package/assets/index-BbEA3PXZ.js +0 -1
  86. package/assets/index-ByK4zAfp.js +0 -1
  87. package/assets/index-C4HOIUiG.js +0 -1
  88. package/assets/index-CJV7xl7b.js +0 -1
  89. package/assets/index-CT2jMw7r.js +0 -1
  90. package/assets/index-CWjKNZDR.js +0 -1
  91. package/assets/index-CbswjC0k.js +0 -1
  92. package/assets/index-CrGd2yii.css +0 -1
  93. package/assets/index-D7ZlIOIa.js +0 -1
  94. package/assets/index-DIM2zvTY.js +0 -1
  95. package/assets/index-DIpghzlz.js +0 -1
  96. package/assets/index-DSEKMIHC.js +0 -2
  97. package/assets/index-DTDatg6N.css +0 -1
  98. package/assets/index-DaXG71WG.css +0 -1
  99. package/assets/index-DfHP73AZ.js +0 -1
  100. package/assets/index-DtmlCjTH.js +0 -1
  101. package/assets/index-VO_KxvBV.js +0 -1
  102. package/assets/index-ialSxpLk.css +0 -1
  103. package/assets/index-q7duD2UN.js +0 -1
  104. package/assets/index-sczLlTJD.js +0 -1
  105. package/assets/index-uZ7kGo8x.js +0 -1
  106. package/assets/index-wPLvF6wj.js +0 -1
  107. package/assets/selectors-1tqbakPd.js +0 -1
@@ -0,0 +1 @@
1
+ import{bD as d,bE as u,b4 as o,bF as L}from"./index-BR0ofDWx.js";const f=n=>typeof n=="object"&&n!==null&&"en-US"in n,i=n=>n.campaign,s=n=>i(n).data,b=n=>i(n).loading,y=n=>i(n).error,E=n=>d(b(n),u),T=n=>{var e;return(e=s(n))==null?void 0:e.mainTag},U=n=>{var e;return((e=s(n))==null?void 0:e.name)||null},m=n=>{var e;return((e=s(n))==null?void 0:e.assets)||null},S=(n,e)=>{var t;return((t=s(n))==null?void 0:t.banners[e])??null},z=(n,e)=>{const t=m(n),r=S(n,e);return r?Object.entries(r).reduce((c,[p,g])=>{if(f(g)){const a=g["en-US"];if(o.isSysLink(a)){const l=t==null?void 0:t[a.sys.id];l&&(c[a.sys.id]=l)}}return c},{}):{}},A=n=>{const e=L(n);return["en","zh","es"].includes(e)?e==="en"?o.ContentfulLocale.enUS:e:o.ContentfulLocale.enUS};export{z as a,y as b,A as c,T as d,U as e,S as g,E as i};
package/index.html CHANGED
@@ -32,7 +32,7 @@
32
32
  <meta itemprop="image" content="https://decentraland.org/images/logo.png" />
33
33
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
34
34
  <meta name="theme-color" content="#000000" />
35
- <link rel="manifest" href="https://cdn.decentraland.org/@dcl/builder-site/7.12.0/manifest.json" />
35
+ <link rel="manifest" href="https://cdn.decentraland.org/@dcl/builder-site/7.12.1-16758968085.commit-584a3db/manifest.json" />
36
36
 
37
37
  <style>
38
38
  .loading-overlay {
@@ -71,8 +71,8 @@
71
71
  </style>
72
72
 
73
73
  <title>Builder | Decentraland</title>
74
- <script type="module" crossorigin src="https://cdn.decentraland.org/@dcl/builder-site/7.12.0/assets/index-BearCfEI.js"></script>
75
- <link rel="stylesheet" crossorigin href="https://cdn.decentraland.org/@dcl/builder-site/7.12.0/assets/index-V7VZvdlb.css">
74
+ <script type="module" crossorigin src="https://cdn.decentraland.org/@dcl/builder-site/7.12.1-16758968085.commit-584a3db/assets/index-BR0ofDWx.js"></script>
75
+ <link rel="stylesheet" crossorigin href="https://cdn.decentraland.org/@dcl/builder-site/7.12.1-16758968085.commit-584a3db/assets/index-C0Oh-tmd.css">
76
76
  </head>
77
77
  <body class="dcl-loading">
78
78
  <div id="load-messages-wrapper"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/builder-site",
3
- "version": "7.12.0",
3
+ "version": "7.12.1-16758968085.commit-584a3db",
4
4
  "description": "Builder website",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -13,6 +13,6 @@
13
13
  "type": "git",
14
14
  "url": "https://github.com/decentraland/builder.git"
15
15
  },
16
- "homepage": "https://cdn.decentraland.org/@dcl/builder-site/7.12.0",
17
- "commit": "745005cef53276566568f0a72e1ad0a48b268597"
16
+ "homepage": "https://cdn.decentraland.org/@dcl/builder-site/7.12.1-16758968085.commit-584a3db",
17
+ "commit": "584a3dbab694bbf3e8c7a7e87c6dd80ec5ec3946"
18
18
  }
@@ -1 +0,0 @@
1
- var O=Object.defineProperty;var U=(e,i,t)=>i in e?O(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t;var u=(e,i,t)=>U(e,typeof i!="symbol"?i+"":i,t);import{D as x,fU as p,H as T,N as y,fO as D,fc as M,fr as R,ey as z,fV as F,ex as H,fW as N,fX as $,da as j,bw as E,eC as q,fY as G,eD as Q,fm as Z,fZ as b,fo as V,f_ as W,f$ as X}from"./index-BearCfEI.js";const m=1,Y=50;let k=class extends x.PureComponent{constructor(){super(...arguments);u(this,"state",{initialPage:m})}fetchCollectionItems(t=m){const{id:n,onFetchCollectionItems:o,itemsPageSize:c,fetchCollectionItemsOptions:a}=this.props;n&&o(n,{page:t,limit:c||Y,...a})}componentDidMount(){const{id:t,onFetchCollection:n,isConnected:o,itemsPage:c}=this.props;t&&o&&(n(t),this.fetchCollectionItems(c))}componentDidUpdate(t,n){const{id:o,isConnected:c,collection:a,items:C,itemsPage:s,itemsPageSize:h,itemSelected:g,fetchCollectionItemsOptions:r,paginatedItems:d,onFetchCollection:P,onChangePage:S}=this.props,_=!t.isConnected&&c;if(o&&_&&(P(o),this.fetchCollectionItems(s)),a&&d.length&&g&&Array.isArray(s)&&(this.state.initialPage===m||n.initialPage<this.state.initialPage)&&!d.find(l=>l.id===g)){const l=s[s.length-1],f=Math.ceil(C.length/h),I=Math.min(f,l+1);s.includes(I)||this.setState({initialPage:I},()=>S(I))}o&&o!==t.id&&(a||P(o),this.fetchCollectionItems(m));const L=!p(s,t.itemsPage),A=!p(r,t.fetchCollectionItemsOptions);if(o&&(s&&L||A)){const l=t.itemsPage;this.fetchCollectionItems(Array.isArray(s)&&Array.isArray(l)?s.filter(f=>!(l!=null&&l.includes(f))):s)}}render(){const{collection:t,paginatedCollections:n,items:o,paginatedItems:c,curation:a,itemCurations:C,isLoadingCollection:s,isLoadingCollectionItems:h,children:g,onFetchCollectionItems:r}=this.props,{initialPage:d}=this.state;return T.jsx(T.Fragment,{children:g({collection:t,items:o,paginatedItems:c,initialPage:d,paginatedCollections:n,curation:a,itemCurations:C,isLoadingCollection:s,isLoadingCollectionItems:h,onFetchCollectionItemsPages:r})})}};const B=(e,i)=>{const t=i.id||D(e),n=t?M(e,t):null,o=n?R(e,n.id):[],c=n?z(e,n.id,i.itemsPageSize||F):[],a=H(e,i.itemsPageSize||F)??[],C=n?N(e,n.id):[],s=t?$(e,t):null;return{id:t,collection:n,items:o,paginatedItems:c,paginatedCollections:a,itemCurations:C,curation:s,isConnected:j(e),isLoadingCollection:E(q(e),V),isLoadingCollectionItems:E(G(e),W)||E(Q(e),X)}},J=e=>({onFetchCollection:i=>e(Z(i)),onFetchCollectionItems:(i,t)=>e(b(i,t))}),tt=y(B,J)(k);export{tt as C};
@@ -1 +0,0 @@
1
- var E=Object.defineProperty;var f=(o,n,e)=>n in o?E(o,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[n]=e;var I=(o,n,e)=>f(o,typeof n!="symbol"?n+"":n,e);import{D as p,H as r,N as C,fa as h,fj as g,fk as T,da as u,bw as d,eD as a,a5 as F,a6 as _,fl as R,fm as S,fn as L,fo as x,fi as D,dV as P}from"./index-BearCfEI.js";let U=class extends p.PureComponent{constructor(){super(...arguments);I(this,"state",{loadedItemId:void 0})}componentDidMount(){const{id:e,item:t,onFetchItem:s,onFetchCollection:i,isConnected:l,collection:c}=this.props;l&&e&&!t&&this.setState({loadedItemId:e},()=>s(e)),l&&e&&(t!=null&&t.collectionId)&&!c&&i(t.collectionId)}componentDidUpdate(){const{id:e,item:t,collection:s,onFetchItem:i,onFetchCollection:l,isConnected:c}=this.props,{loadedItemId:m}=this.state;c&&e&&!t&&m!==e&&this.setState({loadedItemId:e},()=>i(e)),c&&e&&(t!=null&&t.collectionId)&&!s&&l(t.collectionId)}render(){const{item:e,collection:t,isLoading:s,children:i}=this.props;return r.jsx(r.Fragment,{children:i(e,t,s)})}};const v=(o,n)=>{const e=n.id||h(o),t=g(o),s=T(o),i=t.find(c=>c.id===e)||null;let l=null;return i&&i.collectionId&&(l=s.find(c=>c.id===i.collectionId)||null),{id:e,item:i,collection:l,isConnected:u(o),isLoading:d(a(o),L)||d(a(o),x)||d(a(o),D)||d(a(o),P)||F(o)||_(o)}},N=o=>({onFetchItem:n=>o(R(n)),onFetchCollection:n=>o(S(n))}),H=C(v,N)(U);export{H as I};
@@ -1 +0,0 @@
1
- import{D as g,H as n,N as p,bV as L,bJ as u,bF as m,bG as x,bw as h,c0 as j,a5 as F,a6 as P,c1 as N,M as c,ah as v,aj as y}from"./index-BearCfEI.js";import{N as b}from"./NotFound-Dbd8gZSK.js";let E=class extends g.PureComponent{render(){const{id:a,land:d,isLoading:t,deployments:e,rental:r,children:o}=this.props;return n.jsx(n.Fragment,{children:o(a,d,t,{deployments:e,rental:r})})}};const f=(s,a)=>{const d=a.id||L(s),e=u(s).find(l=>l.id===d)||null,r=m(s),o=e&&e.id in r?r[e.id]:[];let i=null;return e&&(i=x(s,e)),{id:d,land:e,isLoading:h(j(s),N)||F(s)||P(s),deployments:o,rental:i}},C=p(f)(E);class S extends g.PureComponent{renderLoading(){return n.jsx(c.Center,{children:n.jsx(c.Loader,{active:!0,size:"large"})})}renderNotFound(){return n.jsx(b,{})}render(){const{className:a,children:d}=this.props,t=["LandProviderPage"];return a&&t.push(a),n.jsxs(n.Fragment,{children:[n.jsx(v,{}),n.jsx(c.Page,{className:t.join(" "),children:n.jsx(C,{children:(e,r,o,{deployments:i,rental:l})=>n.jsxs(n.Fragment,{children:[o?this.renderLoading():null,!o&&!(e&&r)?this.renderNotFound():null,e&&r?d(r,{deployments:i,rental:l}):null]})})}),n.jsx(y,{})]})}}export{S as L};
@@ -1 +0,0 @@
1
- var m=Object.defineProperty;var x=(s,e,a)=>e in s?m(s,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[e]=a;var g=(s,e,a)=>x(s,typeof e!="symbol"?e+"":e,a);import{D as F,H as r,M as i,G as N,ah as j,a1 as I,aj as v,N as P,a5 as f,ae as D,b7 as E}from"./index-BearCfEI.js";import{a as b}from"./Navigation.container-CNk-oi6a.js";import{S as _}from"./SignInRequired-C_nU0wec.js";var o;let S=(o=class extends F.PureComponent{renderLogin(){return r.jsx(_,{})}renderLoading(){return r.jsx(i.Loader,{size:"large",active:!0})}renderError(){const{error:e}=this.props;return r.jsx(i.Narrow,{children:r.jsx(i.Message,{error:!0,size:"tiny",visible:!0,content:e,header:N("logged_in_detail_page.error_title")})})}render(){const{activeTab:e,className:a,hasNavigation:c,isPageFullscreen:d,isFooterFullscreen:u,isNavigationFullscreen:p,isLoggedIn:t,isLoggingIn:L,children:h,error:l}=this.props,n=L||this.props.isLoading;return r.jsxs(r.Fragment,{children:[r.jsx(j,{}),c?r.jsx(b,{activeTab:e,isFullscreen:p}):null,r.jsxs(i.Page,{className:I("LoggedInDetailPage",a),isFullscreen:d,children:[n?this.renderLoading():null,!t&&!n&&!l?this.renderLogin():null,t&&!n?h:null,!n&&l?this.renderError():null]}),r.jsx(v,{isFullscreen:u})]})}},g(o,"defaultProps",{className:"",isPageFullscreen:!1,isFooterFullscreen:!1,isNavigationFullscreen:!1,hasNavigation:!0,isLoading:!1}),o);const z=(s,e)=>({isLoggingIn:f(s),isLoggedIn:D(s),error:E(s)||e.error}),M=()=>({}),G=P(z,M)(S);export{G as L};
@@ -1 +0,0 @@
1
- var D=Object.defineProperty;var U=(e,t,a)=>t in e?D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;var h=(e,t,a)=>U(e,typeof t!="symbol"?t+"":t,a);import{b8 as u,b9 as _,H as n,ba as R,bb as M,bc as $,bd as W,be as V,bf as P,bg as H,bh as z,bi as F,bj as G,D as S,bk as A,bl as K,af as Y,N as f,G as c,M as r,bm as q,T as Q,U as X,a4 as Z,ae as J,bn as ee,bo as ne,bp as se,X as te,bq as ae,br as oe,bs as O,Z as w,K as g,a0 as ie,ah as re,a1 as le,aj as ce,bt as de}from"./index-BearCfEI.js";import{g as ue,a as ge,i as me,b as Ce,c as he}from"./selectors-1tqbakPd.js";const k=(e,t,a)=>{var d,i;if(!a)return"";const s=(i=(d=e[a.sys.id])==null?void 0:d.fields.file[t])==null?void 0:i.url;return s?s.startsWith("https:")||s.startsWith("http:")?s:`https:${s}`:""},Se=e=>{switch(e){case"left":return"flex-start";case"center":return"center";case"right":return"flex-end";default:return"flex-start"}},xe=e=>{var T,N,y,E,v;const{isLoading:t,onClick:a,fields:s,assets:d,locale:i=u.ContentfulLocale.enUS,error:m}=e,o=_();if(t)return n.jsx(R,{children:n.jsx(M,{})});if(!s||m)return null;const C=k(d,u.ContentfulLocale.enUS,o?s.mobileBackground[u.ContentfulLocale.enUS]:s.fullSizeBackground[u.ContentfulLocale.enUS]),b=o?s.mobileTitle[i]:s.desktopTitle[i],L=(T=o?s.mobileTitleAlignment[u.ContentfulLocale.enUS]:s.desktopTitleAlignment[u.ContentfulLocale.enUS])==null?void 0:T.toLowerCase(),x=o?s.mobileText[i]:s.desktopText[i],j=(N=o?s.mobileTextAlignment[u.ContentfulLocale.enUS]:s.desktopTextAlignment[u.ContentfulLocale.enUS])==null?void 0:N.toLowerCase(),B=Se((y=o?s.mobileButtonAlignment[u.ContentfulLocale.enUS]:s.desktopButtonAlignment[u.ContentfulLocale.enUS])==null?void 0:y.toLowerCase());return n.jsxs($,{background:C,children:[n.jsxs(W,{children:[n.jsx(V,{variant:"h1",textAlign:L,children:b}),n.jsx(P,{textAlign:j,children:x?H(x):null}),s.showButton[u.ContentfulLocale.enUS]&&((E=s.buttonLink)!=null&&E[u.ContentfulLocale.enUS])&&((v=s.buttonsText)!=null&&v[i])?n.jsx(z,{justifyContent:B,children:n.jsx(F,{onClick:a,href:s.buttonLink[u.ContentfulLocale.enUS],variant:"contained",disableElevation:!0,children:s.buttonsText[i]})}):null]}),s.logo&&s.logo[u.ContentfulLocale.enUS]&&n.jsx(G,{src:k(d,u.ContentfulLocale.enUS,s.logo[u.ContentfulLocale.enUS]),alt:"Banner logo"})]})},be=e=>{const{fields:t,id:a,...s}=e,d=S.useCallback(i=>{const m=i;m.preventDefault();const o=A();o&&o.track("CLICK_BANNER",{id:t==null?void 0:t.id,location:a}),K(300).then(()=>{window.location.href=m.target.href})},[t==null?void 0:t.id,a]);return Y.createElement(xe,{onClick:d,fields:t,...s})},Le=(e,t)=>({fields:ue(e,t.id)??null,assets:ge(e,t.id),isLoading:me(e),error:Ce(e),locale:he(e)}),je=f(Le)(be),pe="Sign in from sync toast";let fe=class extends S.PureComponent{constructor(){super(...arguments);h(this,"state",{isSynced:!1});h(this,"analytics",A());h(this,"handleRetry",()=>{const{onRetry:a}=this.props;a()});h(this,"handleLogin",()=>{var a;(a=this.analytics)==null||a.track(pe),this.props.onOpenModal("WalletLoginModal")})}componentWillReceiveProps(a){a.syncCount>0&&this.props.syncCount===0?this.setState({isSynced:!1}):a.syncCount===0&&this.props.syncCount>0&&this.setState({isSynced:!0})}render(){const{syncCount:a,errorCount:s,projectCount:d,didDismissSignInToast:i,didDismissSyncedToast:m,isLoggedIn:o,onDismissSignInToast:C,onDismissSyncedToast:b}=this.props,{isSynced:L}=this.state,x=L&&!m,j=!o&&!i&&d>0;return a>0?n.jsx("div",{className:"SyncToast",children:n.jsx("div",{className:"message",children:c("sync.loading")})}):s>0?n.jsx("div",{className:"SyncToast",children:n.jsxs("div",{className:"message",children:[n.jsx("div",{className:"error-indicator"}),c("sync.error",{errorCount:s}),n.jsx(r.Button,{basic:!0,onClick:this.handleRetry,children:c("sync.retry")})]})}):x?n.jsx("div",{className:"SyncToast",children:n.jsxs("div",{className:"message",children:[c("sync.success"),n.jsx(r.Close,{small:!0,onClick:b})]})}):j?n.jsx("div",{className:"SyncToast",children:n.jsxs("div",{className:"message",children:[n.jsx(q,{id:"toasts.localstorage",values:{sign_in:n.jsxs("span",{className:"sign-in",onClick:this.handleLogin,children:[" ",c("global.sign_in")," "]})}}),n.jsx(r.Close,{small:!0,onClick:C})]})}):null}};const Te=e=>({syncCount:Q(e).size,errorCount:X(e).size,projectCount:Z(e).length,isLoggedIn:J(e),didDismissSignInToast:ee(e),didDismissSyncedToast:ne(e)}),Ne=e=>({onRetry:()=>e(se()),onOpenModal:(t,a)=>e(te(t,a)),onDismissSignInToast:()=>e(ae()),onDismissSyncedToast:()=>e(oe())}),ye=f(Te,Ne)(fe);var l=(e=>(e.OVERVIEW="overview",e.SCENES="scenes",e.LAND="land",e.COLLECTIONS="collections",e.NAMES="names",e.WORLDS="worlds",e.CURATION="curation",e))(l||{});const Ee="builderCampaignBanner",p="builder-last-visited-section",I=O(),ve=[l.COLLECTIONS,l.SCENES,l.LAND,l.NAMES],ke=e=>{const{isLoggingIn:t,isLoggedIn:a}=e,s=w();S.useEffect(()=>{const o=I.getItem(p)??"";a&&!s.length&&o!==g.root()&&s.push(o)},[a,s]);const d=S.useCallback(o=>{I.setItem(p,o),s.push(o)},[s]),i=o=>{switch(o){case l.COLLECTIONS:return d(g.collections());case l.SCENES:return d(g.scenes());case l.LAND:return d(g.land());case l.NAMES:return d(g.ens());default:throw new Error("Invalid NavigationTab")}},m=o=>{switch(o){case l.COLLECTIONS:return"https://docs.decentraland.org/creator/wearables/wearables-overview/#collections";case l.SCENES:return"https://docs.decentraland.org/creator/editor/about-scene-editor/";case l.LAND:return"https://docs.decentraland.org/player/market/land-manager/";case l.NAMES:return"https://decentraland.org/blog/project-updates/manage-names-in-the-builder/";default:throw new Error("Invalid Navigation Tab")}};return t?n.jsx(ie,{}):n.jsxs(n.Fragment,{children:[n.jsx(re,{}),n.jsxs(r.Page,{isFullscreen:!0,className:"HomePage",children:[n.jsx(we,{activeTab:l.OVERVIEW,children:n.jsx(ye,{})}),n.jsx(je,{id:Ee}),n.jsxs(r.Container,{children:[n.jsx("h1",{className:"title",children:c("home_page.title")}),n.jsx(r.Card.Group,{itemsPerRow:4,centered:!0,children:ve.map((o,C)=>n.jsxs(r.Card,{children:[n.jsxs(r.Card.Content,{textAlign:"center",children:[n.jsx(r.Card.Header,{children:c(`home_page.${o}.card_title`)}),n.jsxs(r.Card.Description,{children:[n.jsx("p",{className:"card-description",children:c(`home_page.${o}.card_description`)}),n.jsx("div",{className:le("card-image",o)})]})]}),n.jsxs(r.Card.Content,{extra:!0,children:[n.jsx(r.Button,{primary:!0,content:c(`home_page.${o}.cta_label`),onClick:()=>i(o)}),n.jsx(r.Button,{as:"a",basic:!0,content:c("global.learn_more"),href:m(o),rel:"noopener noreferrer",target:"_blank"})]})]},C))})]})]}),n.jsx(ce,{})]})},Re=ke,Ie=O();function Ae({activeTab:e,isFullscreen:t,isCommitteeMember:a,children:s}){const d=w(),i=S.useCallback(m=>{Ie.setItem(p,m),d.push(m)},[]);return n.jsx("div",{className:"Navigation",children:n.jsxs(r.Tabs,{isFullscreen:t,children:[s,n.jsx(r.Tabs.Tab,{active:e===l.OVERVIEW,onClick:()=>i(g.root()),children:c("navigation.overview")}),n.jsx(r.Tabs.Tab,{active:e===l.COLLECTIONS,onClick:()=>i(g.collections()),children:c("navigation.collections")}),n.jsx(r.Tabs.Tab,{active:e===l.SCENES,onClick:()=>i(g.scenes()),children:c("navigation.scenes")}),n.jsx(r.Tabs.Tab,{active:e===l.LAND,onClick:()=>i(g.land()),children:c("navigation.land")}),n.jsx(r.Tabs.Tab,{active:e===l.NAMES,onClick:()=>i(g.ens()),children:c("navigation.names")}),n.jsx(r.Tabs.Tab,{active:e===l.WORLDS,onClick:()=>i(g.worlds()),children:c("navigation.worlds")}),a?n.jsx(r.Tabs.Tab,{active:e===l.CURATION,onClick:()=>i(g.curation()),children:c("navigation.curation")}):null]})})}const Oe=e=>({isCommitteeMember:de(e)}),we=f(Oe)(Ae);export{je as B,Re as H,l as N,ye as S,we as a,Ee as b};
@@ -1 +0,0 @@
1
- var f=Object.defineProperty;var N=(a,l,e)=>l in a?f(a,l,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[l]=e;var c=(a,l,e)=>N(a,typeof l!="symbol"?l+"":l,e);import{D as j,aA as S,H as s,L as y,K as p,J as C,G as r,N as P,O as F,R as L,X as _,aM as d,ah as w,M as n,aj as A,aN as D,ac as E,aO as I,aP as M,aQ as O,aR as b,aS as B,aT as T,aU as R,aV as k,ae as G,ad as V,aW as m}from"./index-BearCfEI.js";import{B as $}from"./Back-DQoXbeYM.js";const W=["page","sortBy","sortOrder","group","ethAddress"];var x;let z=(x=class extends j.PureComponent{constructor(){super(...arguments);c(this,"state",{isDeleting:!1});c(this,"handleOnClick",()=>{const{onClick:e,pool:t}=this.props;e&&e(t)});c(this,"handleConfirmDeleteProject",()=>{this.setState({isDeleting:!0})});c(this,"handleCancelDeleteProject",()=>{this.setState({isDeleting:!1})});c(this,"handleClearDeployment",()=>{const{pool:e,onOpenModal:t}=this.props;t("DeployModal",{view:S.CLEAR_DEPLOYMENT,projectId:e.id})})}render(){const{pool:e}=this.props,t=e.statistics?e.statistics.parcels:e.layout.cols*e.layout.rows;return s.jsxs(y,{to:p.poolView(e.id,"pool"),className:"PoolCard",children:[s.jsx("div",{className:"thumbnail",style:{backgroundImage:`url(${e.thumbnail})`}}),s.jsxs("div",{className:"project-data",children:[s.jsx("div",{className:"title-wrapper",children:s.jsx("div",{className:"title",children:e.title})}),s.jsx("div",{className:"description",title:e.description,children:s.jsxs("div",{className:"component-list",children:[s.jsxs("div",{className:"component",children:[s.jsx(C,{name:"scene-parcel"})," ",r("public_page.parcel_count",{parcels:t})]}),e.statistics&&s.jsxs("div",{className:"component",children:[s.jsx(C,{name:"scene-object"})," ",r("public_page.item_count",{items:e.statistics.transforms})]})]})})]})]})}},c(x,"defaultProps",{items:0}),x);const U=(a,l)=>{const{pool:e}=l,t=F(a)[e.sceneId];return{items:t&&t.sdk6?t.sdk6.metrics.entities:0,deploymentStatus:L(a)[l.pool.id]}},H=a=>({onOpenModal:(l,e)=>a(_(l,e))}),K=P(U,H)(z);let q=class extends j.PureComponent{constructor(){super(...arguments);c(this,"handleChangeGroup",(e,t)=>{const{group:i,...o}=this.getFilters(),h=1;t.value==="all"?this.handleChangeFilters({...o,page:h}):this.handleChangeFilters({...o,page:h,group:t.value})});c(this,"handleChangeUser",(e,t)=>{const{ethAddress:i,...o}=this.getFilters(),h=1;t.value==="all"?this.handleChangeFilters({...o,page:h}):this.handleChangeFilters({...o,page:h,ethAddress:t.value})});c(this,"handleChangeSort",(e,t)=>{const i=this.getFilters(),o=1;if(t.value&&i.sortBy!==t.value)switch(t.value){case d.NAME:this.handleChangeFilters({...i,page:o,sortBy:t.value,sortOrder:"asc"});break;default:this.handleChangeFilters({...i,page:o,sortBy:t.value,sortOrder:"desc"})}});c(this,"handlePageChange",(e,t)=>{const i=this.getFilters(),o=Number(t.activePage);!Number.isNaN(o)&&o>0&&this.handleChangeFilters({...i,page:o})})}componentDidMount(){const{location:e}=this.props,t=this.getFilters();(e.search===""||e.search==="?")&&(t.sortBy=d.NEWEST,t.sortOrder="desc"),this.handleChangeFilters(t)}getFilters(e=this.props){return W.reduce((t,i)=>{const o=e[i];return o!==void 0&&(t[i]=o),t},{})}handleChangeFilters(e){const{onPageChange:t,onLoadPools:i}=this.props;t(e),i(e)}render(){const{pools:e,total:t,totalPages:i,isLoggedIn:o,onNavigateToScenes:h}=this.props,g=this.getFilters(),u={firstItem:null,lastItem:null};return g.page===1&&(u.prevItem=null),g.page===i&&(u.nextItem=null),s.jsxs(s.Fragment,{children:[s.jsx(w,{}),s.jsx(n.Page,{isFullscreen:!0,children:s.jsxs("div",{className:"SceneListPage",children:[s.jsxs(n.Container,{children:[s.jsx(n.Section,{className:"navigation",children:s.jsxs(n.Row,{children:[s.jsx($,{absolute:!0,onClick:h}),s.jsx(n.Narrow,{children:s.jsxs(n.Row,{children:[s.jsx(n.Column,{children:s.jsx(n.Row,{children:s.jsx(n.Header,{size:"large",children:r("scene_list_page.projects_title")})})}),s.jsx(n.Column,{align:"right",children:s.jsxs(n.Row,{children:[s.jsx(n.Responsive,{minWidth:1025,as:j.Fragment,children:o&&s.jsx(n.Dropdown,{direction:"left",value:g.ethAddress||"all",options:[{value:"all",text:r("scene_list_page.filters.all_users")},{value:"me",text:r("scene_list_page.filters.only_me")}],onChange:this.handleChangeUser})}),s.jsx(n.Dropdown,{direction:"left",value:g.sortBy,options:[{value:d.NEWEST,text:r("scene_list_page.filters.newest")},{value:d.NAME,text:r("scene_list_page.filters.name")},{value:d.LIKES,text:r("scene_list_page.filters.likes")},{value:d.ITEMS,text:r("scene_list_page.filters.items")},{value:d.SMART_ITEMS,text:r("scene_list_page.filters.smart_items")},{value:d.SIZE,text:r("scene_list_page.filters.size")}],onChange:this.handleChangeSort})]})})]})})]})}),s.jsx(n.Narrow,{children:s.jsxs("div",{className:"PoolCardList",children:[e===null&&s.jsx(n.Loader,{active:!0,size:"huge"}),Array.isArray(e)&&t===0&&s.jsx("div",{className:"empty-projects",children:r("scene_list_page.no_projects")}),Array.isArray(e)&&t!==0&&s.jsx(s.Fragment,{children:e.map(v=>s.jsx(K,{pool:v},v.id))})]})})]}),s.jsx(n.Container,{children:t!==null&&i!==null&&s.jsx(n.Pagination,{totalPages:i,activePage:g.page,onPageChange:this.handlePageChange,...u})})]})}),s.jsx(A,{})]})}};const J=a=>({location:D(a),pools:E(a),poolGroups:I(a),total:M(a),totalPages:O(a),page:b(a),sortBy:B(a),sortOrder:T(a),group:R(a),ethAddress:k(a),isLoggedIn:G(a)}),Q=a=>({onOpenModal:(l,e)=>a(_(l,e)),onLoadPools:l=>a(V(l)),onPageChange:l=>a(m(p.poolSearch(l))),onNavigateToScenes:()=>a(m(p.scenes())),onNavegateToViewPool:l=>a(m(p.poolView(l)))}),te=P(J,Q)(q);export{te as default};
@@ -1 +0,0 @@
1
- import{af as ne,H as e,M as a,G as n,D as r,fp as K,fq as Ne,eO as v,ce as Fe,b8 as V,N as F,eQ as fe,fr as le,fs as Ue,X as M,ft as He,fu as ve,eZ as J,cB as ue,fv as me,e8 as ye,cC as We,bw as $,eC as Y,fw as Oe,et as ze,fx as Ge,fd as ke,bk as Ye,Z as Ee,fy as q,fz as te,K as w,eR as Te,er as _e,fA as qe,fB as Qe,bu as ee,f4 as Ve,f3 as Je,f5 as Ze,e$ as Pe,eT as Se,L as pe,fC as Xe,dC as Ke,ep as es,f8 as ss,fD as as,fE as Q,fF as ts,f2 as ns,eD as he,fG as xe,aH as ls,cN as os,fH as Re,eo as is,fI as rs,fJ as cs,bv as ds,eX as f,fK as us,eu as ms,J as L,fL as be,a1 as se,fM as _s,f6 as ae,fN as ge,fO as ps,fc as hs,fP as xs,fQ as bs,fR as gs,fS as Cs,fT as js}from"./index-BearCfEI.js";import{g as Is}from"./selector-CtnQnmhq.js";import{C as Ns}from"./CollectionProvider.container-B3-Cph8S.js";import{L as fs}from"./LoggedInDetailPage.container-B2RBWKCs.js";import{N as vs}from"./NotFound-Dbd8gZSK.js";import{B as ys}from"./Back-DQoXbeYM.js";import{C as ks}from"./CollectionStatus.container-DKgxtW3U.js";import{J as Es}from"./JumpIn.container-BiqC78Ge.js";import{C as Ts}from"./ConfirmDelete-ByscZFVO.js";import"./Navigation.container-CNk-oi6a.js";import"./selectors-1tqbakPd.js";import"./SignInRequired-C_nU0wec.js";const Ps=({type:s})=>e.jsx(a.Popup,{content:n(s==="publish"?"collection_detail_page.cant_mint":"collection_detail_page.cant_push"),position:"top center",trigger:e.jsx("div",{className:"popup-button",children:e.jsx(a.Button,{secondary:!0,compact:!0,disabled:!0,children:n("collection_detail_page.under_review")})}),hideOnScroll:!0,on:"hover",inverted:!0,flowing:s==="publish"}),Ce=ne.memo(Ps),Ss=s=>{const{collection:l,items:o,status:t,hasPendingCuration:u,onPublish:d,onPush:_,onInit:j}=s;r.useEffect(()=>{l.isPublished&&j()},[l,j]);const x=o.length>K,k=r.useMemo(()=>o.length===0||!o.every(Ne)||x,[o,x]);let g;if(l.isPublished)l.isApproved?u?g=e.jsx(Ce,{type:"push"}):t===v.UNSYNCED?g=e.jsx(a.Button,{primary:!0,compact:!0,onClick:_,children:n("collection_detail_page.push_changes")}):g=e.jsx(a.Button,{secondary:!0,compact:!0,disabled:!0,children:n("global.published")}):g=e.jsx(Ce,{type:"publish"});else{const y=e.jsx(Fe,{disabled:k,primary:!0,compact:!0,onClick:d,network:V.Network.MATIC,children:n("collection_detail_page.publish")});if(k){let b;o.length>K?b=n("collection_detail_page.publish_reason_max_items",{maxItems:K}):o.length===0?b=n("collection_detail_page.publish_reason_no_items"):b=n("collection_detail_page.publish_reason_items_not_complete"),g=e.jsx(a.Popup,{content:b,position:"top center",trigger:e.jsx("div",{className:"popup-button",children:y}),hideOnScroll:!0,on:"hover",inverted:!0,flowing:!0})}else g=y}return g},Rs=ne.memo(Ss),ws=(s,l)=>{const{id:o}=l.collection,t=fe(s);return{items:le(s,o),status:t[o],hasPendingCuration:Ue(s,o)}},Ms=(s,l)=>{const{id:o}=l.collection;return{onPublish:()=>s(M("PublishWizardCollectionModal",{collectionId:o})),onPush:()=>s(M("PushCollectionChangesModal",{collectionId:o})),onInit:()=>s(He(o))}},je=F(ws,Ms)(Rs),Ds="_dropdown_1a07a_1",As="_ellipsis_1a07a_9",Bs="_menu_1a07a_13",Ls="_disabled_1a07a_13",$s="_item_1a07a_13",Ie={dropdown:Ds,ellipsis:As,menu:Bs,disabled:Ls,item:$s},Fs=({collection:s,wallet:l,onOpenModal:o,onDelete:t})=>{const u=()=>{o("ManageCollectionRoleModal",{type:me.MANAGER,collectionId:s.id,roles:s.managers})},d=()=>{o("ManageCollectionRoleModal",{type:me.MINTER,collectionId:s.id,roles:s.minters})},_=()=>{o("AddExistingItemModal",{collectionId:s.id})},j=()=>{t(s)},x=ve(s,l.address);return e.jsx(a.Dropdown,{className:Ie.dropdown,trigger:e.jsx(a.Button,{basic:!0,children:e.jsx(a.Icon,{className:Ie.ellipsis,name:"ellipsis horizontal"})}),inline:!0,direction:"left",children:e.jsxs(a.Dropdown.Menu,{children:[s.isPublished?x?e.jsxs(e.Fragment,{children:[e.jsx(a.Dropdown.Item,{text:n("collection_context_menu.managers"),onClick:u}),e.jsx(a.Dropdown.Item,{text:n("collection_context_menu.minters"),onClick:d})]}):null:J(s)?null:e.jsxs(e.Fragment,{children:[e.jsx(a.Dropdown.Item,{text:n("collection_context_menu.add_existing_item"),onClick:_}),e.jsx(Ts,{name:s.name,onDelete:j,trigger:e.jsx(a.Dropdown.Item,{text:n("global.delete")})})]}),e.jsx(ue,{role:"option",className:"item",text:s.urn,children:e.jsx(a.Dropdown.Item,{text:n("collection_context_menu.copy_urn")})}),e.jsx(a.Popup,{content:n("collection_context_menu.unpublished"),position:"right center",disabled:s.isPublished,trigger:e.jsx(ue,{role:"option",className:"item",text:s.contractAddress,children:e.jsx(a.Dropdown.Item,{disabled:!s.isPublished,text:n("collection_context_menu.copy_address")})}),hideOnScroll:!0,on:"hover",inverted:!0,flowing:!0})]})})},Us=Fs,Hs=(s,l)=>({wallet:ye(s),items:le(s,l.collection.id),name:We(s)||"",isForumPostLoading:$(Y(s),Ge)}),Ws=s=>({onOpenModal:(l,o)=>s(M(l,o)),onPostToForum:(l,o)=>s(Oe(l,o)),onDelete:l=>s(ze(l))}),Os=F(Hs,Ws)(Us),zs=({isEnabled:s,onClick:l})=>s?e.jsx(a.Dropdown.Item,{text:n("collection_item.reset_item"),onClick:l}):null,Gs=ne.memo(zs),Ys=(s,l)=>{const{itemId:o}=l;return{isEnabled:ke(s)[o]===v.UNSYNCED}},qs=(s,l)=>{const{itemId:o}=l;return{onClick:()=>s(M("ResetItemModal",{itemId:o}))}},Qs=F(Ys,qs)(Gs),Vs="_itemImage_10lcv_1",Js="_itemStatus_10lcv_9",Zs="_mana_10lcv_13",Xs="_grid_10lcv_19",Ks="_row_10lcv_30",ea="_avatarColumn_10lcv_35",sa="_avatarContainer_10lcv_40",aa="_info_10lcv_44",ta="_nameWrapper_10lcv_49",na="_badgeContainer_10lcv_54",la="_badge_10lcv_54",oa="_name_10lcv_49",ia="_linkAction_10lcv_76",ra="_subtitle_10lcv_80",ca="_itemActions_10lcv_86",da="_removeSaleButton_10lcv_93",ua="_status_10lcv_98",ma="_ready_10lcv_112",_a="_notReady_10lcv_117",pa="_incomplete_10lcv_122",ha="_published_10lcv_126",xa="_underReview_10lcv_131",ba="_unsynced_10lcv_132",ga="_alertIcon_10lcv_137",Ca="_check_10lcv_148",ja="_contextMenuButton_10lcv_152",Ia="_contextMenu_10lcv_152",i={itemImage:Vs,itemStatus:Js,mana:Zs,grid:Xs,row:Ks,avatarColumn:ea,avatarContainer:sa,info:aa,nameWrapper:ta,badgeContainer:na,badge:la,name:oa,linkAction:ia,subtitle:ra,itemActions:ca,removeSaleButton:da,status:ua,ready:ma,notReady:_a,incomplete:pa,published:ha,underReview:xa,unsynced:ba,alertIcon:ga,check:Ca,contextMenuButton:ja,contextMenu:Ia},Na=25;function fa({onOpenModal:s,onSetItems:l,onRemoveFromSale:o,item:t,isOffchainPublicItemOrdersEnabled:u,collection:d,status:_,ethAddress:j,wallet:x,loadingTradeIds:k,isCancellingItemOrder:g}){const y=Ye(),b=Ee(),E=x&&q(d,x),C=x&&u&&te(d,x),U=!u||C&&t.tradeId||E,T=r.useCallback(()=>{if(u&&C){s("PutForSaleOffchainModal",{itemId:t.id});return}s("EditPriceAndBeneficiaryModal",{itemId:t.id})},[t,s]),D=r.useCallback(()=>{s("SeeInWorldModal",{itemIds:[t.id]})},[s,t]),N=r.useCallback(()=>{l([t]),b.push(w.itemEditor({itemId:t.id,collectionId:t.collectionId}),{fromParam:Te.COLLECTIONS}),y==null||y.track("Preview Item",{ITEM_ID:t!=null&&t.urn?_e(t.urn)?qe(t.urn):Qe(t.urn):null,ITEM_TYPE:t.type,ITEM_NAME:t.name,ITEM_IS_THIRD_PARTY:_e(t.urn)})},[t,l,b]),A=r.useCallback(()=>{s("DeleteItemModal",{item:t})},[t,s]),P=r.useCallback(()=>{s("MoveItemToAnotherCollectionModal",{item:t,fromCollection:d})},[t,s,d]),H=r.useCallback(()=>{s("PutForSaleOffchainModal",{itemId:t.id})},[]),W=r.useCallback(()=>{t.tradeId&&o(t.tradeId)},[t]),Z=r.useCallback(()=>t.price?t.price===Ve.toString()||u&&!E&&!t.tradeId?e.jsx("span",{children:"-"}):Je(t)?e.jsx("span",{children:n("global.free")}):e.jsx(a.Mana,{className:i.mana,network:V.Network.MATIC,showTooltip:!0,children:Ze(t.price)}):e.jsx("div",{className:`link ${i.linkAction}`,onClick:ee(T),children:n("collection_item.set_price")}),[t,E,u,T]),S=r.useCallback(()=>_===v.UNSYNCED?e.jsxs("div",{className:`${i.unsynced} ${i.status}`,children:[e.jsx("div",{className:i.alertIcon}),n("collection_item.unsynced")]}):_===v.UNDER_REVIEW||t.isPublished&&!t.isApproved?e.jsxs("div",{className:`${i.underReview} ${i.status}`,children:[e.jsx(a.Icon,{name:"clock outline"}),n("collection_item.under_review")]}):t.isPublished&&t.isApproved?e.jsxs("div",{className:`${i.published} ${i.status}`,children:[e.jsx(a.Icon,{name:"check circle outline"}),n("collection_item.published")]}):Ne(t)?e.jsxs("div",{className:`${i.ready} ${i.status}`,children:[e.jsx(a.Icon,{className:i.check,name:"cloud upload"}),n("collection_item.ready")]}):!t.price||Pe(t)&&!(Se in t.contents)?e.jsxs("div",{className:`${i.notReady} ${i.status}`,children:[e.jsx(a.Icon,{name:"exclamation circle"}),n("collection_item.not_ready")]}):e.jsx("span",{onClick:ee(N),className:`link ${i.linkAction}`,children:n("collection_item.edit_item")}),[N,t,_]),R=r.useCallback(()=>e.jsx("div",{className:i.itemActions,children:e.jsx(a.Dropdown,{trigger:e.jsx(a.Button,{basic:!0,children:e.jsx(a.Icon,{name:"ellipsis horizontal"})}),inline:!0,direction:"left",className:i.action,onClick:ee(),children:e.jsxs(a.Dropdown.Menu,{className:i.contextMenu,children:[e.jsx(a.Dropdown.Item,{text:n("collection_item.see_details"),as:pe,to:w.itemDetail(t.id)}),e.jsx(a.Dropdown.Item,{text:n("collection_context_menu.see_in_decentraland"),onClick:D}),e.jsx(a.Dropdown.Item,{text:n("collection_item.preview"),onClick:N}),!d.isPublished&&e.jsx(a.Dropdown.Item,{text:n("collection_item.move_to_another_collection"),onClick:P}),Xe(d,t,j)&&!J(d)?e.jsxs(e.Fragment,{children:[t.price&&U?e.jsx(a.Dropdown.Item,{text:n("collection_item.edit_price"),onClick:T}):null,e.jsx(Qs,{itemId:t.id}),t.isPublished?null:e.jsxs(e.Fragment,{children:[e.jsx(a.Dropdown.Divider,{}),e.jsx(a.Dropdown.Item,{text:n("collection_item.delete_item"),onClick:A})]})]}):null]})})}),[d,t,j,D,N,P,T,A]),I=t.data;return e.jsxs(a.Table.Row,{className:`CollectionItem ${i.row}`,children:[e.jsx(a.Table.Cell,{className:`${i.avatarColumn}`,width:t.name.length>Na?6:5,children:e.jsx(pe,{to:w.itemDetail(t.id),className:"CollectionItem",children:e.jsxs("div",{className:i.avatarContainer,children:[e.jsx(Ke,{className:i.itemImage,item:t}),e.jsx("div",{className:i.info,children:e.jsx("div",{className:i.nameWrapper,children:e.jsxs("div",{className:i.name,title:t.name,children:[e.jsx(es,{className:i.itemStatus,item:t}),t.name,e.jsx("div",{className:i.badgeContainer,children:e.jsx(ss,{className:i.badge,item:t,size:"small"})})]})})})]})})}),e.jsx(a.Table.Cell,{className:i.column,children:t.rarity&&I.category?e.jsx(as,{size:"medium",rarity:t.rarity,withTooltip:!0}):null}),e.jsx(a.Table.Cell,{className:i.column,children:I.category?e.jsx("div",{children:n(`${t.type}.category.${I.category}`)}):null}),Q(t)&&ts(I)?e.jsx(a.Table.Cell,{className:i.column,children:I.category?e.jsx("div",{children:n(`emote.play_mode.${I.loop?"loop":"simple"}.text`)}):null}):null,u&&!d.isPublished?null:e.jsx(a.Table.Cell,{className:i.column,children:Z()}),t.isPublished&&t.isApproved?e.jsx(a.Table.Cell,{className:i.column,children:e.jsxs("div",{children:[t.totalSupply,"/",ns(t)]})}):null,e.jsx(a.Table.Cell,{children:S()}),u&&!E&&!t.tradeId&&t.isPublished&&e.jsx(a.Table.Cell,{children:e.jsx(a.Button,{primary:!0,size:"tiny",disabled:!C,onClick:H,children:n("collection_item.put_for_sale")})}),u&&t.tradeId&&e.jsx(a.Table.Cell,{children:e.jsx(a.Button,{secondary:!0,size:"tiny",className:i.removeSaleButton,onClick:W,loading:g&&k.includes(t.tradeId),children:n("collection_item.remove_from_sale")})}),e.jsx(a.Table.Cell,{className:i.contextMenuButton,children:R()})]})}const va=(s,l)=>{const o=ke(s),t=he(s).filter(u=>u.type===xe).map(u=>u.payload.tradeId);return{ethAddress:ls(s),status:o[l.item.id],wallet:os(s),isOffchainPublicItemOrdersEnabled:Re(s),isCancellingItemOrder:$(he(s),xe),loadingTradeIds:t}},ya=s=>({onOpenModal:(l,o)=>s(M(l,o)),onDeleteItem:l=>s(is(l)),onSetItems:l=>s(rs(l)),onRemoveFromSale:l=>s(cs(l,!0))}),ka=F(va,ya)(fa);function Ea({collection:s,wallet:l,items:o,isOnSaleLoading:t,lastLocation:u,status:d,onOpenModal:_,isLoading:j,isOffchainPublicItemOrdersEnabled:x,onFetchCollectionForumPostReply:k}){const g=ds(),y=r.useMemo(()=>new URLSearchParams(g.search).get("tab"),[g]),[b,E]=r.useState(y||f.WEARABLE),C=Ee(),U=u===w.collections(),T=r.useCallback(()=>{s&&s.isPublished&&!s.isApproved&&s.forumLink&&k(s.id)},[s,k]);r.useEffect(()=>{s&&T()},[s]);const D=r.useCallback(()=>{_("MintItemsModal",{collectionId:s.id})},[s,_]),N=r.useCallback(()=>{_("CreateSingleItemModal",{collectionId:s.id})},[s,_]),A=r.useCallback(()=>{s&&!s.isPublished&&_("EditCollectionNameModal",{collection:s})},[s,_]),P=r.useCallback(()=>{s&&_("SellCollectionModal",{collectionId:s.id,isOnSale:te(s,l)||q(s,l)})},[s,l,_]),H=r.useCallback(()=>{U?C.goBack():C.push(w.collections())},[C,U]),W=r.useCallback(()=>{s&&C.push(us(s,o),{fromParam:Te.COLLECTIONS})},[C,s,o]),Z=r.useCallback((c,p="")=>{const m=window.open(c,p);m&&m.focus()},[]),S=r.useCallback(()=>{s&&s.isPublished&&s.forumLink&&Z(s.forumLink,"_blank")},[s]),R=r.useCallback(c=>{E(c),C.push(w.collectionDetail(s.id,ms.STANDARD,{tab:b}))},[s,C]),I=r.useCallback(c=>{const p=c===f.WEARABLE?n("collection_detail_page.wearables"):n("collection_detail_page.emotes");return e.jsx(a.Popup,{className:"modal-tooltip",content:n("collection_detail_page.missing_item_price",{item_type:p.toLowerCase()}),position:"top center",trigger:e.jsx("i",{"aria-hidden":"true",className:"circle icon tiny"})})},[]),oe=r.useCallback(()=>e.jsx(a.Popup,{className:"modal-tooltip",content:n("collection_detail_page.missing_smart_wearable_video"),position:"top center",trigger:e.jsx("i",{"aria-hidden":"true",className:"circle icon tiny"})}),[]),X=r.useCallback(c=>{if(!s)return null;const p=J(s),m=c.length>0;return e.jsxs(e.Fragment,{children:[e.jsx(Es,{size:"small",active:!0,collection:s,text:n("global.see_in_decentraland"),disabled:p||!m}),e.jsxs(a.Button,{basic:!0,className:"action-button",disabled:p||!m,onClick:W,children:[e.jsx(L,{name:"cube"}),e.jsx("span",{className:"text",children:n("collection_detail_page.preview")})]}),m&&!s.isPublished?e.jsxs(a.Button,{basic:!0,className:"action-button add-items",disabled:p,onClick:N,children:[e.jsx(L,{name:"add-active"}),e.jsx("span",{className:"text",children:n("collection_detail_page.add_item")})]}):null]})},[s,W,N]),ie=r.useCallback(()=>{if(!s)return null;const c=q(s,l),p=te(s,l);return x&&!c?p?null:e.jsx(be,{network:V.Network.MATIC,children:m=>e.jsxs(a.Button,{className:se("action-button",p?"secondary":"primary"),disabled:t||!m,onClick:P,children:[e.jsx(a.Icon,{name:"lock"}),e.jsx("span",{className:"text",children:n("collection_detail_page.enable_sales")})]})}):e.jsx(be,{network:V.Network.MATIC,children:m=>e.jsx(a.Button,{className:se("action-button",c?"basic":"primary"),disabled:t||!m,onClick:P,children:e.jsx("span",{className:"text",children:c?n("collection_detail_page.remove_from_marketplace"):n("collection_detail_page.put_for_sale")})})})},[s,x,P]),O=r.useCallback((c="tiny")=>{if(s!=null&&s.forumPostReply){const{highest_post_number:p,last_read_post_number:m}=s.forumPostReply,z=p-(m??0);return e.jsx(a.Label,{className:"badge-forum-unread-posts",circular:!0,size:c,children:z})}return null},[s]),re=r.useCallback(()=>!(s!=null&&s.isApproved)||![v.UNSYNCED,v.UNDER_REVIEW].includes(d)?null:e.jsxs("div",{className:"unsynced-collection container",children:[e.jsx("i",{className:"unsynced-collection alert-icon"}),e.jsxs("div",{className:"unsynced-collection message",children:[e.jsx("h4",{className:"unsynced-collection title",children:n("collection_detail_page.unsynced_collection_title")}),e.jsx("p",{className:"unsynced-collection text",children:n(`collection_detail_page.${d}_collection_message`,{br:e.jsx("br",{})})})]}),d===v.UNDER_REVIEW?e.jsxs(a.Button,{primary:!0,onClick:S,className:"unsynced-collection action-button",children:[e.jsx("span",{children:n("collection_context_menu.forum_post")}),O("medium")]}):null,d===v.UNSYNCED?e.jsx(je,{collection:s}):null]}),[s,d,O,S]),we=r.useCallback(c=>{if(!s)return null;const p=_s(s,l.address),m=J(s),z=q(s,l),G=c.some(Q),B=c.some(ae),Me=G?c.some(h=>Q(h)&&!h.price):!1,De=B?c.some(h=>ae(h)&&!h.price):!1,Ae=B&&c.some(h=>Pe(h)&&!(Se in h.contents)),de=G&&!B,Be=B&&!G,Le=c.filter(h=>Be?ae(h):de?Q(h):h.type===b),$e=G&&B;return e.jsxs(e.Fragment,{children:[e.jsx(a.Section,{className:se({"is-published":s.isPublished}),children:e.jsxs(a.Row,{children:[e.jsx(ys,{absolute:!0,onClick:H}),e.jsx(a.Narrow,{children:e.jsxs(a.Row,{children:[e.jsx(a.Column,{grow:!1,className:"name-container",children:m?e.jsxs(a.Header,{size:"huge",className:"name",children:[s.isPublished&&e.jsx(ks,{collection:s}),s.name]}):e.jsxs(a.Row,{className:"header-row",onClick:A,children:[e.jsx(a.Header,{size:"huge",className:"name",children:s.name}),e.jsx(L,{name:"edit",className:"edit-collection-name"}),z?e.jsx(a.Label,{className:"badge-on-sale",size:"small",circular:!0,children:n("collection_detail_page.on_sale")}):null]})}),e.jsx(a.Column,{align:"right",className:"actions-container",shrink:!1,grow:!1,children:e.jsxs(a.Row,{className:"actions",children:[s.isPublished&&s.isApproved?e.jsx(a.Popup,{content:n("collection_detail_page.can_mint"),className:"CollectionDetailPage popup-mint",position:"top center",trigger:e.jsx(a.Button,{basic:!0,className:"action-button",disabled:!p,onClick:D,children:e.jsx("span",{className:"text",children:n("collection_detail_page.mint_items")})}),on:"hover",inverted:!0,flowing:!0}):null,s.isPublished&&s.forumLink&&!s.isApproved?e.jsxs(e.Fragment,{children:[e.jsx(a.Button,{basic:!0,onClick:S,children:e.jsx("span",{children:n("collection_context_menu.forum_post")})}),s!=null&&s.forumPostReply?O():null]}):null,!(s.isPublished&&s.isApproved)&&d!==v.UNSYNCED?e.jsx(je,{collection:s}):null,ve(s,l.address)&&s.isPublished&&s.isApproved?ie():null,ge(s,l.address)?e.jsx(Os,{collection:s}):null]})})]})})]})}),e.jsxs(a.Narrow,{children:[re(),$e?e.jsxs(a.Tabs,{isFullscreen:!0,children:[e.jsxs(a.Tabs.Tab,{active:b===f.WEARABLE,onClick:()=>R(f.WEARABLE),children:[e.jsx(L,{name:"wearable"}),n("collection_detail_page.wearables"),De?I(f.WEARABLE):Ae?oe():null]}),e.jsxs(a.Tabs.Tab,{active:b===f.EMOTE,onClick:()=>R(f.EMOTE),children:[e.jsx(L,{name:"emote"}),n("collection_detail_page.emotes"),Me?I(f.EMOTE):null]}),e.jsx("div",{className:"secondary-actions tab",children:X(c)})]}):e.jsx("div",{className:"secondary-actions",children:X(c)}),c.length>0?e.jsxs(a.Table,{basic:"very",children:[e.jsx(a.Table.Header,{children:e.jsxs(a.Table.Row,{children:[e.jsx(a.Table.HeaderCell,{children:n("collection_detail_page.table.item")}),e.jsx(a.Table.HeaderCell,{children:n("collection_detail_page.table.rarity")}),e.jsx(a.Table.HeaderCell,{children:n("collection_detail_page.table.category")}),b===f.EMOTE||de?e.jsx(a.Table.HeaderCell,{children:n("collection_detail_page.table.play_mode")}):null,x&&!s.isPublished?null:e.jsx(a.Table.HeaderCell,{children:n("collection_detail_page.table.price")}),s.isPublished&&s.isApproved?e.jsx(a.Table.HeaderCell,{children:n("collection_detail_page.table.supply")}):null,e.jsx(a.Table.HeaderCell,{children:n("collection_detail_page.table.status")}),x&&!z&&e.jsx(a.Table.HeaderCell,{children:n("collection_detail_page.table.actions")}),e.jsx(a.Table.HeaderCell,{})]})}),e.jsx(a.Table.Body,{children:Le.map(h=>e.jsx(ka,{collection:s,item:h},h.id))})]}):e.jsxs("div",{className:"empty",children:[e.jsx("div",{className:"sparkles"}),e.jsxs("div",{children:[e.jsx("span",{className:"empty-collection-title",children:n("collection_detail_page.add_items_title")}),e.jsx("br",{}),n("collection_detail_page.add_items_subtitle"),e.jsx("br",{}),n("collection_detail_page.cant_remove"),e.jsx("br",{}),e.jsx(a.Button,{basic:!0,className:"empty-action-button",disabled:m,onClick:N,children:e.jsx("span",{className:"text",children:n("collection_detail_page.add_item")})})]})]})]})]})},[b,d,l,s,N,X,A,I,R,re,ie,R,S,oe,O,D,H]),ce=l!==null&&s!==null&&ge(s,l.address);return e.jsx(Ns,{id:s==null?void 0:s.id,itemsPage:1,itemsPageSize:5e3,children:({isLoadingCollection:c,isLoadingCollectionItems:p,items:m})=>e.jsx(fs,{className:"CollectionDetailPage",hasNavigation:!ce&&!j&&!c,isLoading:j||c||p,children:ce?we(m):e.jsx(vs,{})})})}const Ta=s=>{const l=ps(s)||"",o=hs(s,l),t=fe(s);return{wallet:ye(s),collection:o,isOnSaleLoading:xs(s)||$(Y(s),gs),items:le(s,l),status:t[l],isLoading:$(Y(s),Cs)||$(Y(s),js),lastLocation:Is(s),isOffchainPublicItemOrdersEnabled:Re(s)}},Pa=s=>({onOpenModal:(l,o)=>s(M(l,o)),onFetchCollectionForumPostReply:l=>s(bs(l))}),Oa=F(Ta,Pa)(Ea);export{Oa as default};
@@ -1 +0,0 @@
1
- var x=Object.defineProperty;var h=(t,s,a)=>s in t?x(t,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[s]=a;var c=(t,s,a)=>h(t,typeof s!="symbol"?s+"":s,a);import{D as f,cc as g,H as e,bD as p,G as i,bm as u,M as l,cd as b,L as j,K as L,ce as v,bI as T,b8 as w,N as E,cf as N}from"./index-BearCfEI.js";import{L as _}from"./LandAction-CvKFbUMl.js";import{L as P}from"./LandProviderPage-BWPMhRsc.js";import"./Back-DQoXbeYM.js";import"./NotFound-Dbd8gZSK.js";let R=class extends f.PureComponent{constructor(){super(...arguments);c(this,"state",{address:"",isValid:!0});c(this,"handleChange",(a,r)=>{this.setState({isValid:!r.value||g(r.value),address:r.value})})}render(){const{onTransfer:a}=this.props,{address:r,isValid:o}=this.state;return e.jsx(P,{className:"LandTransferPage",children:n=>{let d;const m=p(n.owner,r);return m?d=i("transfer_page.same_owner"):o||(d=i("transfer_page.invalid_address")),e.jsx(_,{land:n,title:i("transfer_page.title"),subtitle:e.jsx(u,{id:"transfer_page.subtitle",values:{name:e.jsx("strong",{children:n.name})}}),children:e.jsxs(l.Form,{onSubmit:()=>a(n,r),children:[e.jsx(b,{label:"Address",value:r,onChange:this.handleChange,placeholder:"0x...",error:!o||m,message:d}),e.jsx(l.Section,{className:"disclaimer",children:e.jsx("p",{className:"danger-text",children:e.jsx(u,{id:"transfer_page.disclaimer",values:{br:e.jsx("br",{})}})})}),e.jsxs(l.Row,{children:[e.jsx(j,{className:"cancel",to:L.landDetail(n.id),children:e.jsx(l.Button,{children:i("global.cancel")})}),e.jsx(v,{type:"submit",primary:!0,disabled:!r||!o||n.role!==T.OWNER||p(n.owner,r),network:w.Network.ETHEREUM,children:i("global.submit")})]})]})})}})}};const V=t=>({onTransfer:(s,a)=>t(N(s,a))}),B=E(void 0,V)(R);export{B as default};
@@ -1 +0,0 @@
1
- var F=Object.defineProperty;var D=(n,a,e)=>a in n?F(n,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[a]=e;var h=(n,a,e)=>D(n,typeof a!="symbol"?a+"":a,e);import{D as w,K as y,df as O,dg as P,dh as H,dd as U,di as C,H as s,M as r,G as t,ce as v,b8 as T,bm as q,L as I,N as Q,a_ as G,de as M,dj as V,cE as K,bw as E,cH as p,dk as z,dl as $,dm as J,dn as X,dp as Y,dq as Z,dr as ss,ds as L,dt as k,cP as es,cK as ns}from"./index-BearCfEI.js";import{L as as}from"./LandProviderPage-BWPMhRsc.js";import{L as ts}from"./LandAction-CvKFbUMl.js";import"./NotFound-Dbd8gZSK.js";import"./Back-DQoXbeYM.js";class os extends w.PureComponent{constructor(){super(...arguments);h(this,"handleFinish",()=>{const{onNavigate:e}=this.props;e(y.ens())});h(this,"handleSetResolver",()=>{const{onSetENSResolver:e,ens:o}=this.props;e(o)});h(this,"handleReclaim",()=>{const{onReclaimName:e,ens:o}=this.props;e(o)});h(this,"handleSetContent",()=>{const{onSetENSContent:e,ens:o,land:d}=this.props;e(o,d)});h(this,"handleBack",()=>{this.props.onBack()})}render(){const{ens:e,land:o,isLoading:d,isWaitingTxSetContent:i,isWaitingTxSetResolver:l,isWaitingTxReclaim:R,error:x}=this.props,_=e.ensOwnerAddress!==e.nftOwnerAddress,c=!O(e)&&e.resolver.toLowerCase()===P.toLowerCase(),g=!H(e)&&U(e,o),m=c||g,S=x&&x.code===4001,N=S&&x.origin===C.RESOLVER,b=S&&x.origin===C.CONTENT,B=S,W=c&&!l&&!N?"grey-button":"",f=g&&!i&&!b?"grey-button":"",u=N||m||_||l||R,j=b||N||B||!c||_||g||l||i||R;return s.jsxs(r.Form,{className:"LandAssignENSForm",children:[s.jsx(r.Row,{children:s.jsx("p",{className:"message",children:t("land_assign_ens_page.set_name_message",{strong:A=>s.jsx("strong",{children:A})})})}),s.jsx(r.Row,{children:s.jsxs("div",{className:u?"box box-disabled":"box",children:[s.jsx("h3",{children:t("land_assign_ens_page.set_resolver")}),s.jsxs("div",{className:"message-box",children:[s.jsx("p",{children:t("land_assign_ens_page.set_resolver_explanation")}),s.jsx(v,{type:"submit",disabled:u,onClick:this.handleSetResolver,className:W,loading:l,primary:!0,network:T.Network.ETHEREUM,children:N?t("global.retry_tx"):c?s.jsxs(s.Fragment,{children:[t("global.approved_tx"),l?null:s.jsx(r.Icon,{name:"check"})]}):t("global.submit")})]})]})}),s.jsx(r.Row,{children:s.jsxs("div",{className:j?"box box-disabled":"box",children:[s.jsx("h3",{children:t("land_assign_ens_page.set_content")}),s.jsxs("div",{className:"message-box",children:[s.jsx("p",{children:t("land_assign_ens_page.set_content_explanation")}),s.jsx(v,{type:"submit",disabled:j,onClick:this.handleSetContent,className:f,loading:i,primary:!0,network:T.Network.ETHEREUM,children:b?t("global.retry_tx"):g?s.jsxs(s.Fragment,{children:[t("global.approved_tx"),i?null:s.jsx(r.Icon,{name:"check"})]}):t("global.submit")})]})]})}),s.jsxs(r.Row,{className:"confirmation-buttons",children:[s.jsx(r.Button,{onClick:this.handleBack,disabled:m,children:t("global.back")}),s.jsx(r.Button,{disabled:!c||!g||d||i||l,onClick:this.handleFinish,primary:!0,children:t("global.finish")})]})]})}}let is=class extends w.PureComponent{constructor(){super(...arguments);h(this,"handleGoBack",()=>{this.props.history.goBack()})}render(){const{ens:e,isLoading:o,error:d,isWaitingTxSetContent:i,isWaitingTxReclaim:l,isWaitingTxSetResolver:R,history:x,onSetENSResolver:_,onSetENSContent:c,onReclaimName:g}=this.props;return s.jsx(as,{children:m=>e?s.jsx(ts,{land:m,title:t("land_assign_ens_page.title",{name:e.subdomain}),subtitle:s.jsx(q,{id:"land_assign_ens_page.subtitle",values:{land:s.jsx(I,{to:y.landDetail(m.id),children:m.name})}}),children:s.jsx(os,{land:m,ens:e,error:d,isLoading:o,isWaitingTxSetResolver:R,isWaitingTxSetContent:i,isWaitingTxReclaim:l,onSetENSContent:c,onSetENSResolver:_,onReclaimName:g,onBack:this.handleGoBack,onNavigate:S=>x.push(S)})}):s.jsx(r.Loader,{active:!0,size:"large"})})}};const rs=(n,a)=>{const{landId:e,subdomain:o}=a.match.params,d=M(n),i=V(d,o);return{ens:i,error:K(n),isWaitingTxSetResolver:E(p(n),L)||z(n),isWaitingTxSetContent:E(p(n),k)||$(n,e),isWaitingTxReclaim:i?J(n,i.subdomain)||X(n):!1,isLoading:E(p(n),L)||E(p(n),k)||E(p(n),es)||E(p(n),ns)}},ls=n=>({onSetENSResolver:a=>n(Y(a)),onSetENSContent:(a,e)=>n(Z(a,e)),onReclaimName:a=>n(ss(a))}),ps=Q(rs,ls)(G(is));export{ps as default};
@@ -1 +0,0 @@
1
- var X=Object.defineProperty;var Y=(n,a,l)=>a in n?X(n,a,{enumerable:!0,configurable:!0,writable:!0,value:l}):n[a]=l;var E=(n,a,l)=>Y(n,typeof a!="symbol"?a+"":a,l);import{D as o,H as e,J as Z,Z as J,K as S,er as q,eR as F,eS as k,eT as j,eO as H,eU as $,eV as ee,eW as _,eX as se,eY as ae,eZ as ie,M as t,G as i,dC as te,e_ as le,e$ as y,f0 as ne,f1 as ce,f2 as re,L as oe,eq as de,cB as ue,f3 as me,f4 as z,b8 as he,f5 as xe,cA as pe,f6 as je,f7 as ge,f8 as ve,f9 as Ne,N as be,fa as Ie,fb as fe,e8 as _e,fc as ye,fd as Ce,fe as Ee,bw as T,eD as P,ff as Se,fg as ke,eo as Te,X as Pe,eM as we,fh as De,fi as Me}from"./index-BearCfEI.js";import{I as Le}from"./ItemProvider.container-DCcmBNU2.js";import{C as Re}from"./ConfirmDelete-ByscZFVO.js";import{L as Be}from"./LoggedInDetailPage.container-B2RBWKCs.js";import{N as Ue}from"./NotFound-Dbd8gZSK.js";import{B as Oe}from"./Back-DQoXbeYM.js";import"./Navigation.container-CNk-oi6a.js";import"./selectors-1tqbakPd.js";import"./SignInRequired-C_nU0wec.js";class Ae extends o.PureComponent{constructor(l){super(l);E(this,"state",{isNoticeClosed:!1});E(this,"handleCloseNotice",()=>{const{storageKey:l}=this.props;this.setState({isNoticeClosed:!0}),localStorage.setItem(l,"1")});const{storageKey:u}=l;this.state={isNoticeClosed:localStorage.getItem(u)!==null}}render(){const{children:l}=this.props,{isNoticeClosed:u}=this.state;return u?null:e.jsxs("div",{className:"Notice",children:[e.jsx("div",{className:"text",children:l}),e.jsx(Z,{name:"close",onClick:this.handleCloseNotice})]})}}const Ve="dcl-item-notice";function qe(n){const{item:a,itemId:l,isLoading:u,status:h,collection:g,hasAccess:v,isWearableUtilityEnabled:w,onDelete:D,onSaveItem:x,onOpenModal:d}=n,p=o.useRef(null),N=J(),C=o.useCallback(()=>{a&&N.push(S.itemEditor({itemId:a.id,collectionId:a.collectionId}),{fromParam:q(a.urn)?F.TP_COLLECTIONS:F.COLLECTIONS})},[N,a]),M=o.useCallback(async s=>{const c=await k({[j]:s}),m={...a,contents:{...a==null?void 0:a.contents,[j]:c[j]}};h&&[H.UNPUBLISHED,H.UNDER_REVIEW].includes(h)&&(m.video=c[j]),x(m,{[j]:s})},[x,a,h]),b=o.useCallback(()=>{d("EditVideoModal",{item:a,onSaveVideo:M})},[a,d,M]),L=o.useCallback(()=>{D(a)},[a,D]),I=o.useCallback(()=>{a&&$(a)?d("CreateSingleItemModal",{item:a,addRepresentation:!0}):d("CreateSingleItemModal",{item:a,changeItemFile:!0})},[d,a]),R=o.useCallback(()=>{d("EditItemURNModal",{item:a})},[a,d]),B=o.useCallback(async s=>{const c=ee(s);x({...a,contents:{...a==null?void 0:a.contents,...await k({[_]:c})}},{[_]:c})},[x,a]),U=o.useCallback(()=>{(a==null?void 0:a.type)===se.EMOTE?d("EditThumbnailModal",{onSaveThumbnail:B,item:a,collection:g}):p.current&&p.current.click()},[p.current,g,a,d,B]),O=o.useCallback(async s=>{const{files:c}=s.target;if(c&&c.length>0){const m=c[0],f=await ae(m,1024,1024);f&&a&&(a.contents={...a.contents,...await k({[_]:f})},x(a,{[_]:f}))}},[x,a]),A=o.useCallback(()=>{d("MoveItemToCollectionModal",{item:a})},[a,d]),W=o.useCallback((s,c)=>{var V;const m=s.data,K=!(c&&ie(c));return e.jsxs(e.Fragment,{children:[e.jsx(t.Section,{children:e.jsx(t.Row,{children:e.jsx(Oe,{onClick:()=>N.push(S.collectionDetail(s.collectionId))})})}),e.jsxs(t.Narrow,{children:[!c&&!s.collectionId?e.jsx(Ae,{storageKey:Ve,children:i("item_detail_page.notice")}):null,e.jsxs("div",{className:"item-data",children:[e.jsxs("div",{className:"item-data-left-panel",children:[e.jsx(te,{item:s,hasBadge:!0,hasRarityBadge:!0,hasUtilityBadge:!0}),e.jsx("div",{children:e.jsxs(t.Button,{primary:!0,onClick:U,children:[e.jsx("input",{type:"file",ref:p,onChange:O,accept:"image/png"}),e.jsx(t.Icon,{name:"camera"}),i("item_detail_page.edit_thumbnail")]})}),e.jsxs("div",{className:"metrics",children:[e.jsx("span",{className:"subtitle",children:i("item_detail_page.properties")}),e.jsx(le,{item:s})]}),y(s)?e.jsx(ne,{item:s,onClick:b,children:(r,Q,G,$e)=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"overlay",children:e.jsx(t.Icon,{name:"play",className:"play-video-button",onClick:b})}),e.jsxs(t.Button,{primary:!0,onClick:b,children:[e.jsx(t.Icon,{name:"video"}),i("item_detail_page.edit_video")]}),e.jsxs("div",{className:"metrics",children:[e.jsx("div",{className:"subtitle",children:i("item_detail_page.properties")}),e.jsx(ce,{duration:Q,size:G,showIcons:!1})]})]})}):null,e.jsxs("div",{className:"details",children:[e.jsx("div",{className:"subtitle",children:i("item_detail_page.details")}),s.isPublished&&e.jsxs("div",{children:[e.jsx("div",{className:"subtitle",children:i("item_detail_page.details_info.id")}),e.jsxs("div",{className:"value",children:["#",s.tokenId]})]}),m.category?e.jsxs("div",{children:[e.jsx("div",{className:"subtitle",children:i("item.category")}),e.jsx("div",{className:"value",children:i(`${s.type}.category.${m.category}`)})]}):null,s.isPublished&&s.rarity?e.jsxs("div",{children:[e.jsx("div",{className:"subtitle",children:i("item.supply")}),e.jsxs("div",{className:"value",children:[s.totalSupply,"/",re(s)]})]}):null,c?e.jsxs("div",{children:[e.jsx("div",{className:"subtitle",children:i("item.collection")}),e.jsx(oe,{className:"collection-link",to:S.collectionDetail(c.id,de(c)),children:c.name})]}):null,s.urn?e.jsxs("div",{children:[e.jsx("div",{className:"subtitle",children:i("global.urn")}),e.jsxs("div",{className:"value urn",children:[e.jsxs("span",{children:[s.urn,e.jsx(ue,{role:"button",text:s.urn,children:e.jsx(t.Icon,{"aria-label":"Copy urn","aria-hidden":"false",className:"link copy",name:"copy outline"})})]}),e.jsx("div",{className:"urn-actions",children:q(s.urn)?e.jsx(t.Popup,{content:i("collection_item.cannot_edit_urn"),disabled:!s.isPublished,position:"top center",trigger:e.jsx("div",{children:e.jsx("button",{disabled:s.isPublished,className:"link",onClick:R,children:i("item.edit_urn")})}),hideOnScroll:!0,on:"hover",inverted:!0,flowing:!0}):null})]})]}):null]})]}),e.jsxs("div",{className:"cards-container",children:[e.jsxs("div",{className:"card",children:[e.jsxs("div",{className:"title-card-container",children:[e.jsx("div",{className:"title",children:s.name}),e.jsxs("div",{className:"actions",children:[y(s)&&e.jsx(t.Button,{className:"edit",inverted:!0,size:"small",onClick:I,children:i("global.edit")}),e.jsx(t.Button,{inverted:!0,size:"small",onClick:C,children:i("collection_detail_page.preview")}),K?e.jsx(t.Dropdown,{trigger:e.jsx(t.Button,{basic:!0,className:"more-actions-button",children:e.jsx(t.Icon,{name:"ellipsis horizontal"})}),inline:!0,direction:"left",children:e.jsxs(t.Dropdown.Menu,{children:[e.jsx(Re,{name:s.name,onDelete:L,trigger:s.isPublished?e.jsx(t.Popup,{content:i("item_detail_page.delete_published_item"),position:"right center",trigger:e.jsx(t.Dropdown.Item,{disabled:!0,text:i("global.delete")}),hideOnScroll:!0,on:"hover",inverted:!0,flowing:!0}):e.jsx(t.Dropdown.Item,{text:i("global.delete")})}),!s.collectionId&&e.jsx(t.Dropdown.Item,{text:i("collection_item.move_to_another_collection"),onClick:A})]})}):null]})]}),e.jsxs("div",{className:"attribute-row",children:[s.description&&e.jsxs("div",{className:"attribute-column",children:[e.jsx("div",{className:"subtitle",children:i("global.description")}),e.jsx("div",{className:"data",children:s.description})]}),s.utility&&w&&e.jsxs("div",{className:"attribute-column",children:[e.jsx("div",{className:"subtitle",children:i("global.utility")}),e.jsx("div",{className:"data",children:s.utility})]})]}),s.data.tags.length?e.jsx("div",{className:"attribute-row",children:e.jsxs("div",{className:"attribute-column",children:[e.jsx("div",{className:"subtitle",children:i("item_detail_page.tags.title")}),e.jsx("div",{className:"data tags-container",children:s.data.tags.map(r=>e.jsx("span",{className:"tag",children:r},r))})]})}):null]}),e.jsxs("div",{className:"card",children:[e.jsx("div",{className:"title",children:i("item_detail_page.selling.title")}),e.jsxs("div",{className:"data",children:[me(s)?e.jsxs(t.Section,{className:"price-container",children:[e.jsx("div",{className:"subtitle",children:i("item.price")}),e.jsx("div",{className:"value",children:i("global.free")})]}):s.price?e.jsxs(t.Section,{className:"price-container",children:[e.jsx("div",{className:"subtitle",children:i("item.price")}),s.price&&s.price!==z.toString()?e.jsx(t.Mana,{showTooltip:!0,network:he.Network.MATIC,className:"mana-price-container",children:(()=>{const r=xe(s.price);return r.length>10?e.jsx(t.Popup,{content:r,position:"top center",trigger:e.jsx("span",{children:`${r.slice(0,3)}...${r.slice(-4)}`}),hideOnScroll:!0,on:"hover",inverted:!0,flowing:!0}):e.jsx("div",{className:"value",children:r})})()}):s.price===z.toString()?e.jsx("div",{className:"value",children:i("item.not_for_sale")}):"-"]}):null,e.jsxs(t.Section,{className:"beneficiary-container",children:[e.jsx("div",{className:"subtitle",children:i("item.beneficiary")}),s.beneficiary?e.jsx("div",{className:"value",children:pe(s.beneficiary)}):"-"]})]})]}),je(s)&&!y(s)?e.jsxs("div",{className:"card",children:[e.jsxs("div",{className:"title-card-container",children:[e.jsx("div",{className:"title",children:i("item_detail_page.representations.title")}),e.jsx(t.Button,{className:"edit-button",inverted:!0,size:"small",onClick:I,children:$(s)?i("global.add"):i("global.edit")})]}),e.jsx("div",{className:"data",children:e.jsx("div",{className:"representations-container",children:s.data.representations.map(r=>e.jsxs("div",{className:"representation",children:[e.jsx("img",{className:"item-image",src:ge(s),alt:s.name}),r.mainFile,e.jsx(ve,{item:s,bodyShape:r.bodyShapes[0]})]},r.mainFile))})})]}):null,y(s)&&((V=s.data.requiredPermissions)!=null&&V.length)?e.jsxs("div",{className:"card",children:[e.jsxs("div",{className:"title-card-container",children:[e.jsx("div",{className:"title",children:i("item_detail_page.required_permissions")}),e.jsx(t.Button,{inverted:!0,className:"learn-more-permissions",size:"small",href:"https://docs.decentraland.org/creator/development-guide/sdk7/scene-metadata/#required-permissions",rel:"noopener noreferrer",target:"_blank",content:i("global.learn_more")})]}),e.jsx("div",{className:"data",children:e.jsx(Ne,{requiredPermissions:s.data.requiredPermissions,basic:!0})})]}):null]})]})]})]})},[w,N,p,U,O,b,R,I,I,A,C,L,C]);return e.jsx(Le,{id:l,children:(s,c,m)=>e.jsx(Be,{className:"ItemDetailPage",hasNavigation:!v&&!u,isLoading:u||m,children:v&&s?W(s,c):e.jsx(Ue,{})})})}const Fe=n=>{const a=Ie(n),l=a?fe(n,a):null,u=_e(n),h=l&&l.collectionId?ye(n,l.collectionId):null,g=Ce(n),v=l?g[l.id]:null;return{itemId:a,wallet:u,item:l,collection:h,status:v,isWearableUtilityEnabled:Ee(n),isLoading:T(P(n),we)||T(P(n),De)||T(P(n),Me),hasAccess:l!==null&&Se(n,u.address,h,l)}},He=n=>({onSaveItem:(a,l)=>n(ke(a,l)),onDelete:a=>n(Te(a)),onOpenModal:(a,l)=>n(Pe(a,l))}),ss=be(Fe,He)(qe);export{ss as default};
@@ -1 +0,0 @@
1
- import{N as n,am as s,an as r,ao as i,ap as m,aq as g,ar as t,ae as d,as as c,at as u,au as S,X as I,av as P,aw as l,ax as p,ay as y,az as O}from"./index-BearCfEI.js";const R=a=>({isPreviewing:r(a),isSidebarOpen:i(a),isReady:m(a),isLoading:g(a),isFetching:t(a),isLoggedIn:d(a),isScreenshotReady:c(a),currentProject:u(a),numItems:S(a)}),C=a=>({onOpenModal:(e,o)=>a(I(e,o)),onCloseEditor:()=>a(P()),onZoomIn:()=>a(l()),onZoomOut:()=>a(p()),onResetCamera:()=>a(y()),onTakeScreenshot:()=>a(O())}),L=n(R,C)(s);export{L as default};
@@ -1 +0,0 @@
1
- var h=Object.defineProperty;var m=(a,s,e)=>s in a?h(a,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[s]=e;var r=(a,s,e)=>m(a,typeof s!="symbol"?s+"":s,e);import{D as p,H as t,G as d,bm as g,M as o,L as u,K as x,ce as b,bI as E,b8 as N,N as j,cg as L}from"./index-BearCfEI.js";import{L as D}from"./LandAction-CvKFbUMl.js";import{L as f}from"./LandProviderPage-BWPMhRsc.js";import"./Back-DQoXbeYM.js";import"./NotFound-Dbd8gZSK.js";let v=class extends p.PureComponent{constructor(){super(...arguments);r(this,"state",{});r(this,"handleNameChange",(e,n)=>{this.setState({name:n.value})});r(this,"handleDescriptionChange",(e,n)=>{this.setState({description:n.value})})}getName(e){return typeof this.state.name>"u"?e.name:this.state.name}getDescription(e){return typeof this.state.description>"u"?e.description||"":this.state.description}render(){const{onEdit:e}=this.props,{name:n,description:c}=this.state,l=!n&&!c;return t.jsx(f,{className:"LandEditPage",children:i=>t.jsx(D,{land:i,title:d("edit_page.title"),subtitle:t.jsx(g,{id:"edit_page.subtitle",values:{name:t.jsx("strong",{children:i.name})}}),children:t.jsxs(o.Form,{onSubmit:()=>e(i,this.getName(i),this.getDescription(i)),children:[t.jsx(o.Field,{label:"Name",value:this.getName(i),onChange:this.handleNameChange}),t.jsx(o.Field,{label:"Description",value:this.getDescription(i),onChange:this.handleDescriptionChange}),t.jsxs(o.Row,{children:[t.jsx(u,{className:"cancel",to:x.landDetail(i.id),children:t.jsx(o.Button,{children:d("global.cancel")})}),t.jsx(b,{type:"submit",primary:!0,disabled:l||!this.getName(i)||i.role!==E.OWNER,network:N.Network.ETHEREUM,children:d("global.submit")})]})]})})})}};const P=a=>({onEdit:(s,e,n)=>a(L(s,e,n))}),S=j(null,P)(v);export{S as default};
@@ -1 +0,0 @@
1
- var k=Object.defineProperty;var j=(r,a,e)=>a in r?k(r,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[a]=e;var i=(r,a,e)=>j(r,typeof a!="symbol"?a+"":a,e);import{D as b,dv as O,bD as v,dw as L,bI as x,H as s,M as u,cd as S,G as o,L as y,K as E,ce as R,b8 as N,cc as _,bm as P,N as w,dx as C}from"./index-BearCfEI.js";import{L as A}from"./LandAction-CvKFbUMl.js";import{L as D}from"./LandProviderPage-BWPMhRsc.js";import"./Back-DQoXbeYM.js";import"./NotFound-Dbd8gZSK.js";class T extends b.PureComponent{constructor(){super(...arguments);i(this,"state",{address:"",initial:"",loading:!1,editing:!1,dirty:!1,revoked:!1});i(this,"handleSetOperator",()=>{const{land:e,onSetOperator:t}=this.props,{address:n,revoked:p}=this.state;t(e,p?null:n)});i(this,"handleChange",(e,t)=>{this.setState({address:t.value,dirty:!0,revoked:!1})});i(this,"handleRevoke",()=>{this.setState({revoked:!0,dirty:!0})});i(this,"handleUndo",()=>{this.setState({revoked:!1,dirty:!1})})}async componentWillMount(){this.setState({loading:!0});const{land:e}=this.props,t=await O(e);t!==null?this.setState({address:t,initial:t,loading:!1,editing:!0}):this.setState({loading:!1})}render(){const{land:e}=this.props,{address:t,loading:n,dirty:p,revoked:d,editing:g,initial:m}=this.state,c=g&&v(t,m),h=!n&&!!t&&!_(t),f=n||!p||(v(t,m)||h)&&!d||!L(e,[x.OWNER,x.TENANT]),l=[];return d&&l.push("revoked"),g&&l.push("editing"),c&&l.push("is-revokable"),s.jsxs(u.Form,{className:"LandOperatorForm",children:[s.jsx(S,{placeholder:"0x...",label:o("operator_page.address"),className:l.join(" "),value:t,onChange:this.handleChange,loading:n,action:c?d?o("operator_page.undo"):o("operator_page.revoke"):void 0,onAction:c?d?this.handleUndo:this.handleRevoke:void 0,error:h,message:h?o("operator_page.invalid_address"):void 0}),s.jsxs(u.Row,{children:[s.jsx(y,{className:"cancel",to:E.landDetail(e.id),children:s.jsx(u.Button,{children:o("global.cancel")})}),s.jsx(R,{type:"submit",primary:!0,disabled:f,onClick:this.handleSetOperator,network:N.Network.ETHEREUM,children:o("global.submit")})]})]})}}let F=class extends b.PureComponent{render(){const{onSetOperator:a}=this.props;return s.jsx(D,{children:e=>s.jsx(A,{land:e,title:o("operator_page.title"),subtitle:s.jsx(P,{id:"operator_page.subtitle",values:{name:s.jsx("strong",{children:e.name}),b:t=>s.jsx("strong",{children:t}),br:()=>s.jsx("br",{})}}),children:s.jsx(T,{land:e,onSetOperator:a})})})}};const U=r=>({onSetOperator:(a,e)=>r(C(a,e))}),K=w(void 0,U)(F);export{K as default};
@@ -1 +0,0 @@
1
- import{Z as k,D as d,aB as C,K as f,H as a,G as l,M as i,J as h,a1 as x,cz as A,cA as L,cy as T,L as P,cB as S,N as M,cL as R,cM as w,bw as O,cH as V,cC as D,cG as $,cN as H,cO as U,X as G,cP as K}from"./index-BearCfEI.js";import{L as q}from"./LoggedInDetailPage.container-B2RBWKCs.js";import{N as z}from"./Navigation.container-CNk-oi6a.js";import"./SignInRequired-C_nU0wec.js";import"./selectors-1tqbakPd.js";const J="_main_7p9v2_1",Q="_fields_7p9v2_9",W="_ensImage_7p9v2_16",X="_field_7p9v2_9",Z="_fieldContainer_7p9v2_29",Y="_fieldTitle_7p9v2_41",ee="_subdomain_7p9v2_50",ae="_actionBtn_7p9v2_64",se="_editableFieldValue_7p9v2_84",le="_avatar_7p9v2_90",ie="_avatarImg_7p9v2_97",ne="_avatarName_7p9v2_104",te="_ensBtn_7p9v2_109",de="_address_7p9v2_116",ce="_returnLink_7p9v2_122",re="_editableField_7p9v2_84",oe="_emptyFieldPlaceholder_7p9v2_138",me="_pin_7p9v2_144",_e="_externalLink_7p9v2_154",pe="_unclaimedBadge_7p9v2_159",ue="_disabled_7p9v2_170",s={main:J,fields:Q,ensImage:W,field:X,fieldContainer:Z,fieldTitle:Y,subdomain:ee,actionBtn:ae,editableFieldValue:se,avatar:le,avatarImg:ie,avatarName:ne,ensBtn:te,address:de,returnLink:ce,editableField:re,emptyFieldPlaceholder:oe,pin:me,externalLink:_e,unclaimedBadge:pe,disabled:ue};function he(t){const{ens:e,isLoading:_,alias:N,avatar:o,name:p,wallet:g,onOpenModal:r,onFetchENS:j}=t,v=k(),F=d.useMemo(()=>e?`${C.get("MARKETPLACE_API")}/ens/generate?ens=${e.name}&width=330&height=330`:"",[e]),c=(e==null?void 0:e.ensOwnerAddress)!==(e==null?void 0:e.nftOwnerAddress);d.useEffect(()=>{p&&g&&j(p)},[p,g,j]);const u=d.useCallback(()=>{r("EnsMapAddressModal",{ens:e})},[r,e]),b=d.useCallback(()=>{r("UseAsAliasModal",{newName:e==null?void 0:e.name})},[r,e==null?void 0:e.name]),m=d.useCallback(()=>{v.push(f.ensSelectLand(e==null?void 0:e.subdomain))},[v,e==null?void 0:e.subdomain]),B=d.useCallback(()=>{r("ReclaimNameModal",{ens:e})},[r]),I=d.useMemo(()=>{let n;return N!==(e==null?void 0:e.name)?n=a.jsxs("div",{className:s.editableField,children:[a.jsx("span",{className:s.emptyFieldPlaceholder,children:l("ens_detail_page.unassign")}),a.jsx(i.Button,{compact:!0,primary:!0,onClick:b,className:s.actionBtn,"aria-label":l("ens_detail_page.set_as_primary"),children:a.jsx(i.Icon,{name:"user plus"})})]}):n=a.jsx("div",{className:s.editableField,children:a.jsxs("span",{className:s.avatar,"data-testid":"alias-avatar",children:[o?a.jsx("img",{className:s.avatarImg,src:o.avatar.snapshots.face256,alt:o.realName}):a.jsx(h,{name:"profile"}),a.jsx("span",{className:s.avatarName,children:e.name}),l("ens_list_page.table.you")]})}),a.jsxs("div",{className:s.field,children:[a.jsxs("span",{className:s.fieldTitle,children:[l("ens_detail_page.alias"),a.jsx(i.InfoTooltip,{on:"click",content:l("ens_detail_page.tooltips.alias")})]}),n]})},[e==null?void 0:e.name,c,o,N,b]),y=d.useMemo(()=>{let n=null;return c?n=a.jsxs("div",{className:x(s.editableField,s.disabled),children:[a.jsx("span",{className:s.emptyFieldPlaceholder,children:l("ens_detail_page.reclaim_for_address")}),a.jsx(i.Button,{compact:!0,secondary:!0,disabled:!0,className:s.actionBtn,"aria-label":l("ens_detail_page.reclaim_for_address"),children:a.jsx(i.Icon,{name:"pencil alternate"})})]}):e!=null&&e.ensAddressRecord?n=a.jsxs("span",{className:s.editableField,children:[a.jsxs("span",{className:s.editableFieldValue,children:[a.jsx("img",{src:A,alt:"Ethereum"}),L(e.ensAddressRecord)]}),a.jsx(i.Button,{compact:!0,secondary:!0,inverted:!0,onClick:u,className:s.actionBtn,"aria-label":l("ens_detail_page.edit_address"),children:a.jsx(i.Icon,{name:"pencil alternate"})})]}):n=a.jsxs("div",{className:s.editableField,children:[a.jsx("span",{className:s.emptyFieldPlaceholder,children:l("ens_detail_page.assign_address")}),a.jsx(i.Button,{compact:!0,secondary:!0,onClick:u,className:s.actionBtn,"aria-label":l("ens_detail_page.assign_address"),children:a.jsx(i.Icon,{name:"pencil alternate"})})]}),a.jsxs("div",{className:x(s.field,{[s.disabled]:c}),children:[a.jsxs("span",{className:s.fieldTitle,children:[l("ens_detail_page.address"),a.jsx(i.InfoTooltip,{on:"click",content:l("ens_detail_page.tooltips.address")})]}),n]})},[e==null?void 0:e.ensAddressRecord,c,u]),E=d.useMemo(()=>{let n=null;return c?n=a.jsxs("div",{className:s.editableField,children:[a.jsx("span",{className:s.emptyFieldPlaceholder,children:l("ens_detail_page.reclaim_for_location")}),a.jsx(i.Button,{compact:!0,disabled:!0,className:s.actionBtn,"aria-label":l("ens_detail_page.reclaim_for_location"),children:a.jsx(i.Icon,{name:"crosshairs"})})]}):e!=null&&e.landId?T(e.landId)?n=a.jsxs("div",{className:s.editableField,"data-testid":"land-field",children:[a.jsxs("span",{className:s.editableFieldValue,children:[a.jsx("div",{className:s.pin,children:a.jsx(h,{name:"pin"})}),e==null?void 0:e.landId]}),a.jsx(i.Button,{compact:!0,onClick:m,className:s.actionBtn,"aria-label":l("ens_list_page.button.assign_to_land"),children:a.jsx(i.Icon,{name:"pencil alternate"})})]}):n=a.jsxs("div",{className:s.editableField,"data-testid":"estate-field",children:[a.jsxs("span",{className:s.editableFieldValue,children:[a.jsx("div",{className:s.pin,children:a.jsx(h,{name:"pin"})}),`Estate (${e.landId})`]}),a.jsx(i.Button,{compact:!0,className:s.actionBtn,onClick:m,"aria-label":l("ens_list_page.button.assign_to_land"),children:a.jsx(i.Icon,{name:"pencil alternate"})})]}):n=a.jsxs("div",{className:s.editableField,children:[a.jsx("span",{className:s.emptyFieldPlaceholder,children:l("ens_detail_page.point_location")}),a.jsx(i.Button,{compact:!0,className:s.actionBtn,onClick:m,"aria-label":l("ens_list_page.button.assign_to_land"),children:a.jsx(i.Icon,{name:"crosshairs"})})]}),a.jsxs("div",{className:x(s.field,{[s.disabled]:c}),children:[a.jsxs("span",{className:s.fieldTitle,children:[l("ens_detail_page.land"),a.jsx(i.InfoTooltip,{on:"click",content:l("ens_detail_page.tooltips.land")})]}),n]})},[e==null?void 0:e.landId,c,m]);return a.jsxs(q,{activeTab:z.NAMES,isPageFullscreen:!0,isLoading:_||!e,children:[a.jsx(P,{to:f.ens(),children:a.jsxs(i.Button,{basic:!0,className:s.returnLink,children:[a.jsx(i.Icon,{name:"chevron left"}),"Return"]})}),a.jsxs("div",{className:s.main,children:[a.jsx("img",{alt:e==null?void 0:e.subdomain,src:F,className:s.ensImage}),a.jsxs("div",{className:s.fields,children:[a.jsxs("div",{className:s.fieldContainer,children:[a.jsxs("div",{children:[a.jsx("span",{className:s.fieldTitle,children:l("ens_detail_page.name")}),a.jsxs("span",{className:s.subdomain,children:[a.jsxs("span",{children:[a.jsx("span",{children:e==null?void 0:e.name}),".dcl.eth"]}),a.jsx(S,{role:"button",text:(e==null?void 0:e.subdomain)||"",showPopup:!0,className:"copy-to-clipboard",children:a.jsx(i.Icon,{"aria-label":"copy name","aria-hidden":"false",name:"clone outline"})}),(e==null?void 0:e.ensOwnerAddress)!==(e==null?void 0:e.nftOwnerAddress)?a.jsx("span",{className:s.unclaimedBadge,children:l("ens_detail_page.unclaimed")}):null]})]}),a.jsx(i.Button,{primary:!0,onClick:B,children:l("ens_detail_page.reclaim_name")})]}),a.jsxs("div",{className:s.fieldContainer,children:[I,y,E]})]})]})]})}const xe=t=>{const e=R(t);return{name:e,ens:e?w(t,`${e}.dcl.eth`):null,isLoading:O(V(t),K),alias:D(t),avatar:$(t),wallet:H(t)}},Ne=t=>({onFetchENS:e=>t(U(e)),onOpenModal:(e,_)=>t(G(e,_))}),Fe=M(xe,Ne)(he);export{Fe as default};
@@ -1 +0,0 @@
1
- var V=Object.defineProperty;var q=(t,s,a)=>s in t?V(t,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[s]=a;var T=(t,s,a)=>q(t,typeof s!="symbol"?s+"":s,a);import{aB as z,D as r,eb as X,H as e,bA as J,bS as Z,bT as ee,ec as te,ed as se,G as l,ee as ne,a1 as B,K as I,cB as ae,M as n,aA as oe,bB as le,N as P,a_ as ie,bZ as re,X as K,ef as ce,eg as de,bw as S,eh as me,ei as ue,T as ge,ej as pe,b3 as G,ek as he,af as _e,ah as xe,aj as je,I as be,el as Se,b_ as Ee,S as De,O as ye,cH as Ce,c$ as A,c0 as Ne,aW as Te,V as Ie,W as fe,Y as ke,em as Re,cK as Me,en as we,c_ as Le,c1 as ve}from"./index-BearCfEI.js";import{B as Oe}from"./Back-DQoXbeYM.js";import{N as Pe}from"./NotFound-Dbd8gZSK.js";import{S as $e}from"./SDKTag-CFCXHU8H.js";import{a as F,S as Be}from"./SceneStats.container-BUtGE_VO.js";import"./date-FmFpH_C4.js";import"./index-UkHdfAsI.js";const U=z.get("EXPLORER_URL",""),Ae=z.get("WORLDS_CONTENT_SERVER","");let Fe=class extends r.PureComponent{constructor(){super(...arguments);T(this,"getHighlightLayer",(a,o)=>(c,u)=>{const{deployment:d,landTiles:g}=this.props,i=le(c,u),h=g[i];return h&&d.parcels.some(_=>_===i)?{color:a[h.land.role],scale:o}:null});T(this,"renderThumbnail",()=>{const{deployment:a,landTiles:o,project:c}=this.props,[u,d]=X(a.base);return(a.base in o?o[a.base].land.id:null)?e.jsx("div",{className:"atlas-wrapper",children:e.jsx(J,{x:u,y:d,isDraggable:!1,zoom:.75,layers:[this.getHighlightLayer(Z,1.4),this.getHighlightLayer(ee,1.2)]})}):e.jsx("div",{className:"thumbnail-wrapper",children:e.jsx("img",{className:"thumbnail",src:c.thumbnail,alt:c.description})})});T(this,"getExplorerUrl",a=>te?`${U}/?realm=${Ae}/world/${a}&NETWORK=sepolia`:`${U}/world/${a}`)}render(){const{project:a,deployment:o,landTiles:c,history:u,onOpenModal:d}=this.props,g=o.base in c?c[o.base].land.id:null,i=o.world?o.world:o.base,h=se(a,o);let _=l("scene_detail_page.published");return h===ne.NEEDS_SYNC&&(_=l("scene_detail_page.unsynced")),e.jsxs("div",{className:B("DeploymentDetail",{clickable:g}),onClick:()=>g&&u.push(I.landDetail(g)),children:[this.renderThumbnail(),e.jsx(F,{label:l("scene_detail_page.status"),children:_}),e.jsx(F,{label:l("scene_detail_page.location"),children:e.jsxs("div",{className:B({"world-url":o.world}),children:[i,o.world?e.jsxs(e.Fragment,{children:[e.jsx(ae,{role:"button",text:this.getExplorerUrl(o.world),showPopup:!0,children:e.jsx(n.Icon,{"aria-label":"Copy urn","aria-hidden":"false",className:"link copy",name:"copy outline"})}),e.jsx("a",{href:this.getExplorerUrl(o.world),target:"_blank",rel:"noopener noreferrer",children:e.jsx(n.Icon,{name:"external alternate"})})]}):null]})}),e.jsx(Be,{deployment:o}),e.jsx(n.Dropdown,{trigger:e.jsx(n.Button,{basic:!0,children:e.jsx(n.Icon,{name:"ellipsis horizontal"})}),inline:!0,direction:"left",children:e.jsx(n.Dropdown.Menu,{children:e.jsx(n.Dropdown.Item,{text:l("scene_detail_page.actions.unpublish"),onClick:()=>d("DeployModal",{view:oe.CLEAR_DEPLOYMENT,deploymentId:o.id})})})})]})}};const Ue=t=>({landTiles:re(t)}),He=t=>({onOpenModal:(s,a)=>t(K(s,a))}),ze=P(Ue,He)(ie(Fe)),Ke="https://cdn.decentraland.org/@dcl/builder-site/7.12.0/assets/automatic_migrate-DQYv7lI_.webp",Ge="https://cdn.decentraland.org/@dcl/builder-site/7.12.0/assets/migrate_smart_items-D2zNoKEa.webp";var m=(t=>(t.INFO="info",t.MIGRATE="migrate",t))(m||{});function H(t){return t&&t.sdk6?Object.values(t.sdk6.components).filter(a=>a.type===ce.Script).length:0}const Qe="_modalContainer_5geih_1",We="_subtitle_5geih_20",Ye="_content_5geih_27",Ve="_actions_5geih_35",qe="_loadingMessage_5geih_53",Xe="_loader_5geih_57",b={modalContainer:Qe,subtitle:We,content:Ye,actions:Ve,loadingMessage:qe,loader:Xe};function Je({project:t,scene:s,isLoading:a,isSavingSDK6Copy:o,isSavingScene:c,onNavigate:u,onClose:d,onMigrateScene:g}){const[i,h]=r.useState(m.INFO),[_,x]=r.useState(!1),j=r.useMemo(()=>H(s)>0,[s]),D=r.useCallback(()=>{h(m.INFO)},[]),y=r.useCallback(()=>{a||d()},[a,d]),f=r.useCallback(()=>{switch(i){case m.INFO:return de;case m.MIGRATE:return t!=null&&t.thumbnail?t.thumbnail:j?Ge:Ke}},[i,j,t]),k=r.useCallback(()=>{switch(i){case m.INFO:h(m.MIGRATE);break;case m.MIGRATE:t&&g(t,_);break}},[i,_,t,g]),R=()=>i===m.MIGRATE&&j?{smartItemsCount:H(s)}:{},M=()=>!a||i!==m.MIGRATE?e.jsx(n.Button,{disabled:a,primary:!0,onClick:k,children:l(`migrate_to_sdk7_modal.${E}.action`)}):o?e.jsxs("span",{className:b.loadingMessage,children:[e.jsx(n.Loader,{size:"tiny",inline:!0,className:b.loader}),l("migrate_to_sdk7_modal.saving_copy")]}):c?e.jsxs("span",{className:b.loadingMessage,children:[e.jsx(n.Loader,{size:"tiny"}),l("migrate_to_sdk7_modal.migrating_scene")]}):null,E=j?`${i}_smart_items`:i,w=!a&&(i!==m.MIGRATE||j);return e.jsxs(n.Modal,{open:!0,className:b.modalContainer,onClose:y,children:[e.jsx(n.ModalNavigation,{title:l(`migrate_to_sdk7_modal.${E}.title`),onBack:i!==m.INFO?D:void 0,onClose:y}),e.jsxs(n.ModalContent,{className:b.content,children:[e.jsx("p",{className:b.subtitle,children:l(`migrate_to_sdk7_modal.${E}.subtitle`,{b:C=>e.jsx("b",{children:C}),br:()=>e.jsx("br",{}),...R()})}),e.jsx("div",{style:{width:"648px",height:"324px",backgroundPosition:"center",backgroundSize:"cover",backgroundImage:`url(${f()}`}}),i===m.MIGRATE&&e.jsx(n.Checkbox,{disabled:a,checked:_,label:l("migrate_to_sdk7_modal.save_a_copy"),onChange:(C,{checked:L})=>{x(!!L)}})]}),e.jsxs(n.ModalActions,{className:b.actions,children:[M(),w&&e.jsx(n.Button,{disabled:a,secondary:!0,onClick:()=>u(I.sceneEditor(t==null?void 0:t.id)),children:l("migrate_to_sdk7_modal.use_legacy_builder")})]})]})}const Ze=(t,s)=>{var a,o;return{isLoading:S(ue(t),me),isSavingScene:!!((a=s.project)!=null&&a.id)&&ge(t).has((o=s.project)==null?void 0:o.id),isSavingSDK6Copy:S(G(t),pe)}},et=t=>({onMigrateScene:(s,a)=>t(he(s,a))}),tt=P(Ze,et)(Je),st=t=>{const{project:s,scene:a,isLoading:o,deployments:c,onOpenModal:u,onDelete:d,onDuplicate:g,onNavigate:i,onLoadProjectScene:h}=t,[_,x]=r.useState(!1),[j,D]=r.useState(!1);r.useEffect(()=>{s&&!a&&h(s)},[s,a,h]);const y=()=>e.jsx(n.Center,{children:e.jsx(n.Loader,{active:!0,size:"large"})}),f=()=>e.jsx(Pe,{}),k=r.useCallback(()=>{u("EditProjectModal")},[u]),R=r.useCallback(()=>{x(!0)},[x]),M=r.useCallback(()=>{g(s)},[s,g]),E=r.useCallback(()=>{d(s),x(!1)},[s,d,x]),w=r.useCallback(()=>{x(!1)},[x]),C=r.useCallback(()=>{a!=null&&a.sdk6?D(!0):i(I.inspector(s==null?void 0:s.id))},[s,a,i]),L=()=>{const{project:p,isLoading:N,isLoadingDeployments:v}=t;return N||v||!p?null:e.jsx(be,{projectId:p.id,className:"deployment-status"})},Q=(p,N)=>{const{isLoadingDeployments:v,onNavigate:W,onOpenModal:Y,scene:O}=t;return e.jsxs(e.Fragment,{children:[e.jsxs(n.Section,{size:"large",children:[e.jsxs(n.Row,{children:[e.jsx(n.Column,{children:e.jsxs(n.Row,{children:[e.jsx(Oe,{absolute:!0,onClick:()=>W(I.scenes())}),e.jsxs(n.Header,{className:"name",children:[p.title,e.jsx(n.Icon,{name:"edit outline",onClick:k})]})]})}),e.jsx(n.Column,{className:"actions",align:"right",children:e.jsxs(n.Row,{children:[e.jsxs(n.Button,{inverted:!0,className:"download-button",onClick:()=>Y("ExportModal",{project:p}),children:[e.jsx(n.Icon,{name:"download"}),l("scene_detail_page.download_scene")]}),e.jsxs(n.Button,{primary:!0,className:"edit-button",disabled:!O,loading:!O,onClick:C,children:[e.jsx(n.Icon,{name:"edit outline"}),l("scene_detail_page.edit_scene")]}),e.jsx(n.Dropdown,{trigger:e.jsx(n.Button,{basic:!0,children:e.jsx(n.Icon,{name:"ellipsis horizontal"})}),inline:!0,direction:"left",children:e.jsxs(n.Dropdown.Menu,{children:[e.jsx(n.Dropdown.Item,{text:l("scene_detail_page.actions.duplicate"),onClick:M}),e.jsx(n.Dropdown.Item,{text:l("scene_detail_page.actions.delete"),onClick:R})]})})]})})]}),e.jsxs(n.Row,{className:"status-container",children:[L(),e.jsx($e,{scene:O})]})]}),e.jsx(n.Section,{children:e.jsx("div",{className:"header-image",style:{backgroundImage:p.thumbnail?`url(${p.thumbnail})`:""}})}),e.jsxs(n.Section,{className:p.description?"":"no-margin-bottom",children:[e.jsx(n.Header,{sub:!0,children:l("scene_detail_page.published_in")}),v?e.jsx(n.Loader,{active:!0,size:"small"}):N.length===0?e.jsxs(n.Empty,{className:"empty-deployments-container",children:[e.jsx("div",{className:"empty-deployments-thumbnail"}),l("scene_detail_page.no_deployments")]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"deployments",children:N.map($=>e.jsx(ze,{project:p,deployment:$},$.id))}),e.jsx("div",{className:"notice",children:l("analytics.notice")})]})]}),p.description?e.jsxs(n.Section,{className:"description no-margin-bottom",children:[e.jsx(n.Header,{sub:!0,children:l("scene_detail_page.description")}),e.jsx("p",{className:"description-content",children:p.description})]}):null]})};return e.jsxs(e.Fragment,{children:[e.jsx(xe,{}),e.jsxs(n.Page,{className:"SceneDetailPage",isFullscreen:!0,children:[o&&!s?y():null,!o&&!s?f():null,s?e.jsxs(e.Fragment,{children:[Q(s,c),e.jsx(n.Confirm,{size:"tiny",open:_,header:l("project_card.confirm_delete_header",{title:s.title}),content:l("project_card.confirm_delete_content",{title:s.title}),confirmButton:e.jsx(n.Button,{primary:!0,children:l("global.confirm")}),cancelButton:e.jsx(n.Button,{secondary:!0,children:l("global.cancel")}),onCancel:w,onConfirm:E})]}):null,j&&e.jsx(tt,{project:s,scene:a,onNavigate:i,onClose:()=>D(!1)})]}),e.jsx(je,{})]})},nt=_e.memo(st),at=t=>{const s=Se(t),a=Ee(t),o=s&&s in a?a[s]:null,c=De(t),u=s&&s in c?c[s]:[],d=o&&ye(t)[o.sceneId];return{project:o,deployments:u,scene:d,isLoading:S(G(t),Re),isLoadingDeployments:S(Ce(t),Me)||S(A(t),we)||S(A(t),Le)||S(Ne(t),ve)}},ot=t=>({onNavigate:s=>t(Te(s)),onOpenModal:(s,a)=>t(K(s,a)),onDelete:s=>t(Ie(s)),onDuplicate:s=>t(fe(s)),onLoadProjectScene:(s,a)=>t(ke(s,a))}),ht=P(at,ot)(nt);export{ht as default};
@@ -1 +0,0 @@
1
- ._dropdown_1a07a_1{border:1px solid var(--gray);border-radius:0 5px 5px 0;border-left:0}._ellipsis_1a07a_9{margin:auto!important}._dropdown_1a07a_1 ._menu_1a07a_13>._disabled_1a07a_13._item_1a07a_13{pointer-events:all}._dropdown_1a07a_1 ._menu_1a07a_13>._disabled_1a07a_13._item_1a07a_13 a{cursor:default}._itemImage_10lcv_1{min-width:48px;max-width:48px;height:48px;padding:5px;margin-right:24px}._itemStatus_10lcv_9{margin-right:4px}._mana_10lcv_13{font-size:15px!important;font-weight:400;line-height:0}._grid_10lcv_19{padding:10px 0!important;color:var(--text);border-bottom:1px solid var(--divider)}._grid_10lcv_19:hover{background-color:#24212966;color:var(--text)}._row_10lcv_30{align-items:center;font-size:15px}._avatarColumn_10lcv_35{align-items:center;flex-direction:inherit!important}._avatarContainer_10lcv_40{display:flex}._info_10lcv_44{width:calc(100% - 80px);display:flex}._nameWrapper_10lcv_49{display:flex;align-items:center}._badgeContainer_10lcv_54{margin-left:8px}._badge_10lcv_54{background-color:#37333d}._badge_10lcv_54:before{filter:none}._name_10lcv_49{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;text-decoration:underline}._linkAction_10lcv_76{text-transform:uppercase}._subtitle_10lcv_80{margin-top:2px;color:var(--secondary-text);text-transform:uppercase}._itemActions_10lcv_86{display:flex;align-items:center;justify-content:flex-end;width:100%}._removeSaleButton_10lcv_93.ui.button.secondary{background:#fff;color:#000}._status_10lcv_98{padding:4px 10px 4px 8px;border-radius:32px;align-items:center;width:fit-content;text-transform:uppercase;font-weight:700;font-size:12px}._status_10lcv_98 i{margin-right:5px}._ready_10lcv_112{color:#63b4f6;background:#2196f333}._notReady_10lcv_117{background:#fb3b3b33;color:#e97177}._incomplete_10lcv_122{color:var(--primary)}._published_10lcv_126{color:#65d890;background:#34ce7733}._underReview_10lcv_131,._unsynced_10lcv_132{color:#fe9c2a;background:#fe9c2a33}._alertIcon_10lcv_137{display:inline-block;margin-right:.25rem;height:15px;width:15px;vertical-align:text-bottom;background:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M-1-1h16v16H-1z'/%3e%3cpath%20fill='%23FFF'%20d='M7%2013.667A6.667%206.667%200%201%201%207%20.333a6.667%206.667%200%200%201%200%2013.334zM7%2012.5a5.5%205.5%200%201%200%200-11%205.5%205.5%200%200%200%200%2011zm0-8.833c.368%200%20.667.298.667.666V7a.667.667%200%200%201-1.334%200V4.333c0-.368.299-.666.667-.666zM7%209a.667.667%200%201%201%200%201.333A.667.667%200%200%201%207%209z'/%3e%3c/g%3e%3c/svg%3e") no-repeat;background-size:contain;filter:invert(64%) sepia(34%) saturate(797%) hue-rotate(331deg) brightness(140%) contrast(98%)}._check_10lcv_148{margin-left:2px}._contextMenuButton_10lcv_152{width:18px!important;background-color:transparent!important;box-shadow:none!important}._contextMenu_10lcv_152{background-color:var(--smart-grey)!important}.CollectionDetailPage>.ui.container>.dcl.section{margin-bottom:48px}.CollectionDetailPage .header-column{flex:none;width:calc(100% - 300px)}.CollectionDetailPage .header-row{width:100%}.CollectionDetailPage .header-row .ui.header.name{line-height:29px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CollectionDetailPage .edit-collection-name{display:none;margin-left:16px;margin-bottom:2px}.CollectionDetailPage .section:not(.is-published) .header-row:hover .edit-collection-name{display:inline-block}.CollectionDetailPage .ui.circular.label.badge-on-sale{margin-left:1em;padding:.5em .667em!important;color:var(--text);background-color:var(--primary);text-transform:uppercase}.CollectionDetailPage .section:not(.is-published) .header-row:hover{cursor:pointer}.CollectionDetailPage .ui.toggle.on-sale{text-transform:uppercase;margin-right:16px}.CollectionDetailPage .ui.toggle.on-sale>label{white-space:nowrap}.CollectionDetailPage .ui.toggle.checkbox input.hidden:focus+label,.CollectionDetailPage .ui.toggle.on-sale input.hidden+label{padding-left:40px;color:var(--secondary-text)!important}.CollectionDetailPage .dcl.row.actions>.ui.button.action-button{border:1px solid rgba(115,110,125,.4);border-radius:5px;padding:9px 20px;white-space:nowrap}.CollectionDetailPage .left.actions .ui.dropdown{margin-left:8px;border:1px solid rgba(115,110,125,.4);border-radius:5px}.CollectionDetailPage .actions .ui.button.basic.action-button>.text{color:var(--primary)}.CollectionDetailPage .actions .ui.button.compact{padding:10px}.CollectionDetailPage .actions .popup-button{margin-left:16px}.CollectionDetailPage .dcl.row.left.actions.grow.shrink{margin-left:12px}.CollectionDetailPage .actions-container{margin-left:auto}.CollectionDetailPage .Notice{margin-bottom:32px}.CollectionDetailPage .ui.grid.equal.width>.row>.column{padding-left:0}.CollectionDetailPage .dcl.narrow>.empty{padding:200px 0;width:100%;border-radius:8px;border:1px solid var(--divider);justify-content:center;color:var(--secondary-text);text-align:center;line-height:22px;font-size:15px}.CollectionDetailPage .sparkles{width:54px;height:56px;background-image:url(https://cdn.decentraland.org/@dcl/builder-site/7.12.0/assets/sparkles-C-WJN0Gh.svg);background-repeat:no-repeat;margin:auto auto 20px}.CollectionDetailPage .CollectionItem:first-child .grid{border-top:1px solid var(--divider)}.CollectionDetailPage .narrow.dcl{width:100%;max-width:1200px}.CollectionDetailPage .CollectionStatus{width:16px;height:16px;margin-bottom:6px;margin-right:12px}.CollectionDetailPage .empty-collection-title{font-weight:500;font-size:17px;line-height:26px;color:#fff;padding-bottom:8px;display:inline-block}.CollectionDetailPage .ui.basic.button.empty-action-button{border:1px solid rgba(115,110,125,.4);border-radius:5px;padding:8px 58px;margin-top:32px;color:var(--primary)}.CollectionDetailPage .ui.basic.button.empty-action-button span{color:var(--primary);font-weight:600}.CollectionDetailPage .ui.container .dcl.back{position:absolute}.CollectionDetailPage .dcl.column.left.shrink.name-container{min-width:0}.CollectionDetailPage .Icon.wearable,.CollectionDetailPage .Icon.emote{margin-right:12px;filter:brightness(100)}.CollectionDetailPage .dcl.tab{display:inline-flex;align-items:center}.CollectionDetailPage .dcl.tab i.circle.icon{margin-left:5px;color:#ff3d61}.CollectionDetailPage .dcl.tabs.fullscreen .ui.container{border-bottom:1px solid rgba(115,110,125,.32)}.CollectionDetailPage.toast.move-item-to-another-collection{padding:0;margin-bottom:96px}.CollectionDetailPage.toast.move-item-to-another-collection>div{margin:16px}.CollectionDetailPage.toast.move-item-to-another-collection .title{color:var(--text);font-size:17px;font-weight:600;line-height:26px;margin-bottom:0}.CollectionDetailPage.toast.move-item-to-another-collection .body{display:flex;flex-direction:column;max-width:348px}.CollectionDetailPage.toast.move-item-to-another-collection .body .description{color:var(--text);font-size:15px;line-height:24px;letter-spacing:0px;margin-bottom:8px}.CollectionDetailPage.toast.move-item-to-another-collection .body .cta{font-size:13px;font-weight:600;line-height:18px;text-transform:uppercase}.CollectionDetailPage.toast.move-item-to-another-collection .toast-icon{margin-right:16px}.CollectionDetailPage.toast.move-item-to-another-collection .toast-icon .two-way-arrow-icon{background-image:url("data:image/svg+xml,%3csvg%20width='48'%20height='48'%20viewBox='0%200%2048%2048'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='48'%20height='48'%20rx='24'%20fill='%23242129'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20.9395%2024.375C20.8612%2024.481%2020.7309%2024.5417%2020.5989%2024.5417C20.5023%2024.5417%2020.4041%2024.5086%2020.3145%2024.4459L14.2202%2020.1759C14.0799%2020.0776%2014%2019.9299%2014%2019.7707C14%2019.6115%2014.0817%2019.4638%2014.222%2019.3655L20.3188%2015.0959C20.4084%2015.0332%2020.5118%2015%2020.6084%2015C20.8181%2015%2021.0402%2015.1593%2021.0402%2015.4637V18.0513H32.7371C33.0518%2018.0513%2033.2776%2018.3291%2033.2776%2018.6437V20.8986C33.2776%2021.2132%2033.0518%2021.4752%2032.7371%2021.4752H21.0402V24.078C21.0402%2024.1917%2020.999%2024.2944%2020.9395%2024.375ZM27.6837%2024.0846L33.7783%2028.3545C33.9186%2028.4527%2034%2028.5996%2034%2028.7588C34%2028.918%2033.9201%2029.0647%2033.7798%2029.163L27.687%2033.4306C27.5983%2033.4928%2027.5037%2033.5221%2027.4081%2033.5226C27.1994%2033.5213%2027.0003%2033.3698%2027.0003%2033.0668V30.4791H15.2609C14.9462%2030.4791%2014.6995%2030.2013%2014.6995%2029.8867V27.6318C14.6995%2027.3172%2014.9462%2027.0552%2015.2609%2027.0552H27.0003V24.4523C27.0003%2024.1479%2027.2009%2023.9886%2027.4106%2023.9886C27.5073%2023.9886%2027.5941%2024.0218%2027.6837%2024.0846ZM27.4081%2033.5226C27.4071%2033.5226%2027.4061%2033.5226%2027.4052%2033.5226H27.4108C27.4099%2033.5226%2027.409%2033.5226%2027.4081%2033.5226Z'%20fill='white'/%3e%3c/svg%3e");height:48px;width:48px}.CollectionDetailPage .dcl.tabs .secondary-actions.tab{display:inline-flex;position:absolute;right:0;padding:19px 0}.CollectionDetailPage .dcl.narrow .secondary-actions{display:flex;justify-content:flex-end}.CollectionDetailPage .secondary-actions.tab .button.action-button,.CollectionDetailPage .dcl.narrow .secondary-actions .button.action-button{display:flex;align-items:center}.CollectionDetailPage .dcl.tabs .secondary-actions.tab .button.action-button:not(:last-child),.CollectionDetailPage .dcl.narrow .secondary-actions .button.action-button:not(:last-child){margin-right:24px}.CollectionDetailPage .dcl.tabs .secondary-actions.tab .button.basic.inverted{border:1px solid rgba(115,110,125,.4);border-radius:5px;box-shadow:none!important;padding:7px 20px}.CollectionDetailPage .dcl.tabs .secondary-actions.tab .button.action-button>.Icon,.CollectionDetailPage .dcl.narrow .secondary-actions .button.action-button>.Icon{margin-right:5px}.CollectionDetailPage .dcl.tabs .secondary-actions.tab .button.action-button.add-items,.CollectionDetailPage .dcl.narrow .secondary-actions .button.action-button.add-items{border:1px solid rgba(115,110,125,.4);padding:7px 20px}.CollectionDetailPage .dcl.tabs .secondary-actions.tab .button span,.CollectionDetailPage .dcl.narrow .secondary-actions .button span{color:var(--primary)}.CollectionDetailPage .badge-forum-unread-posts{margin-left:8px;color:var(--text);background-color:var(--primary)}.CollectionDetailPage .unsynced-collection.container{display:flex;padding:24px 30px;margin:24px 0;border-radius:8px;background-color:var(--dark-two);align-items:center;text-align:justify}.CollectionDetailPage .unsynced-collection.message{flex:1}.CollectionDetailPage .unsynced-collection.title{margin:0;font-size:15px;font-weight:600;line-height:24px}.CollectionDetailPage .unsynced-collection.text{font-size:15px;font-weight:400;line-height:24px}.CollectionDetailPage .unsynced-collection.alert-icon{margin-right:30px;height:36px;width:36px;background:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M-1-1h16v16H-1z'/%3e%3cpath%20fill='%23FFF'%20d='M7%2013.667A6.667%206.667%200%201%201%207%20.333a6.667%206.667%200%200%201%200%2013.334zM7%2012.5a5.5%205.5%200%201%200%200-11%205.5%205.5%200%200%200%200%2011zm0-8.833c.368%200%20.667.298.667.666V7a.667.667%200%200%201-1.334%200V4.333c0-.368.299-.666.667-.666zM7%209a.667.667%200%201%201%200%201.333A.667.667%200%200%201%207%209z'/%3e%3c/g%3e%3c/svg%3e") no-repeat;background-size:contain;filter:invert(64%) sepia(34%) saturate(797%) hue-rotate(331deg) brightness(160%) contrast(98%)}.CollectionDetailPage .unsynced-collection.action-button{padding:7px 12px}.CollectionDetailPage .unsynced-collection.action-button .badge-forum-unread-posts{background-color:var(--text-on-primary);color:var(--primary)}.CollectionDetailPage.toast.deleted-item{padding:0;width:480px}.CollectionDetailPage.toast.deleted-item .toast-info{align-items:center;margin:16px}.CollectionDetailPage.toast.deleted-item .title{font-size:17px;font-weight:600;line-height:26px;margin-bottom:0}.CollectionDetailPage.toast.deleted-item .body .description{font-size:15px;font-weight:400;line-height:24px}.CollectionDetailPage.toast.deleted-item .toast-icon .delete-icon{background:url("data:image/svg+xml,%3csvg%20width='48'%20height='48'%20viewBox='0%200%2048%2048'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='48'%20height='48'%20rx='24'%20fill='%23242129'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M21.5693%2015.0303H17.2345C16.8856%2015.0303%2016.6029%2015.3131%2016.6029%2015.662V17.6462H31.5093V15.6619C31.5093%2015.3131%2031.2265%2015.0303%2030.8777%2015.0303H26.5428V14.2108C26.5428%2014.0944%2026.4485%2014%2026.3321%2014H21.7801C21.6636%2014%2021.5693%2014.0944%2021.5693%2014.2108V15.0303ZM28.7541%2034C29.2936%2034%2029.7372%2033.5746%2029.7598%2033.0355L30.4308%2018.8701H17.6812L18.3522%2033.0355C18.3748%2033.5746%2018.8184%2034%2019.3579%2034H28.7541ZM21.5216%2021.9797C21.7474%2021.9797%2021.9305%2022.1628%2021.9305%2022.3885V30.4815C21.9305%2030.7074%2021.7473%2030.8903%2021.5216%2030.8903H20.8677C20.6419%2030.8903%2020.4589%2030.7073%2020.4589%2030.4815V22.3885C20.4589%2022.1628%2020.6421%2021.9797%2020.8677%2021.9797H21.5216ZM24.3829%2021.9797C24.6087%2021.9797%2024.7917%2022.1628%2024.7917%2022.3885V30.4815C24.7917%2030.7074%2024.6087%2030.8903%2024.3829%2030.8903H23.7291C23.5033%2030.8903%2023.3203%2030.7073%2023.3203%2030.4815V22.3885C23.3203%2022.1628%2023.5034%2021.9797%2023.7291%2021.9797H24.3829ZM27.2443%2021.9797C27.4701%2021.9797%2027.6531%2022.1628%2027.6531%2022.3885V30.4815C27.6531%2030.7074%2027.47%2030.8903%2027.2443%2030.8903H26.5904C26.3646%2030.8903%2026.1816%2030.7073%2026.1816%2030.4815V22.3885C26.1816%2022.1628%2026.3647%2021.9797%2026.5904%2021.9797H27.2443Z'%20fill='white'/%3e%3c/svg%3e") no-repeat;background-size:contain;height:48px;width:48px}.CollectionDetailPage.popup-mint,.CollectionDetailPage.popup-mint:before{background-color:var(--smart-grey)!important}.toast-info .body{max-width:450px;overflow:hidden}
@@ -1 +0,0 @@
1
- import{bv as be,Z as F,D as n,af as je,H as e,G as s,L as de,K as E,dC as me,M as a,N as U,eo as Ie,X as he,ep as Se,eq as Z,a1 as fe,dB as Ce,er as Ne,es as ue,et as ve,eu as oe,J as Re,ev as N,aZ as ce,ew as w,aH as we,ex as Le,ey as De,ez as Ee,eA as Ae,eB as Oe,bw as G,eC as ye,eD as ie,eE as Pe,eF as ke,eG as Me,eH as He,eI as $e,eJ as Be,eK as Fe,eL as Ue,eM as Ve,eN as ze}from"./index-BearCfEI.js";import{B as qe,b as Ge,N as Ye}from"./Navigation.container-CNk-oi6a.js";import{L as Ze}from"./LoggedInDetailPage.container-B2RBWKCs.js";import{O as ge}from"./OptionsDropdown-BWBuC7KW.js";import{a as B}from"./date-FmFpH_C4.js";import{C as _e}from"./CollectionStatus.container-DKgxtW3U.js";import"./selectors-1tqbakPd.js";import"./SignInRequired-C_nU0wec.js";import"./index-UkHdfAsI.js";const Qe=l=>l.ui.collection,We=l=>Qe(l).view,re=20;function Je(l){const{search:t,pathname:o}=be(),d=F(),r=d.push.bind(d),c=n.useMemo(()=>{var i;return((i=l==null?void 0:l.pageSize)==null?void 0:i.toString())??re.toString()},[l==null?void 0:l.pageSize]),x=n.useMemo(()=>{const i=new URLSearchParams(t);return i.delete("page"),i.delete("first"),i.delete("offset"),i.delete("sortBy"),Object.fromEntries(i.entries())},[t]),u=n.useMemo(()=>new URLSearchParams(t).get("sortBy"),[t])??void 0,[g,b,A]=n.useMemo(()=>{const i=new URLSearchParams(t),_=parseInt(i.get("page")??"1"),p=parseInt(i.get("first")??c),I=(_-1)*p;return[_,p,I]},[c,t]),j=n.useCallback(()=>{const i=new URLSearchParams(t);i.set("page",(g+1).toString()),r(`${o}?${i.toString()}`)},[t,g,r,o]),S=n.useCallback(i=>{const _=new URLSearchParams(t);_.set("page",i.toString()),r(`${o}?${_.toString()}`)},[t,r,o]),O=n.useCallback(i=>{const _=new URLSearchParams(t);_.set("page","1"),_.set("sortBy",i),r(`${o}?${_.toString()}`)},[o,r,t]),V=n.useCallback((i,_,p={clearOldFilters:!1})=>{const I=new URLSearchParams(p.clearOldFilters?{}:t);I.set("page","1"),p.clearOldFilters&&u&&I.set("sortBy",u),I.set(i,_),r(`${o}?${I.toString()}`)},[o,r,t,u]),v=l!=null&&l.count?Math.ceil((l==null?void 0:l.count)/((l==null?void 0:l.pageSize)??re)):void 0,f=v?g<v:void 0;return{page:g,pages:v,hasMorePages:f,first:b,offset:A,sortBy:u,filters:x,goToNextPage:j,goToPage:S,changeSorting:O,changeFilter:V}}const Ke="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%2018H28V28H18V18Z'%20fill='%23A09BA8'/%3e%3cpath%20d='M4%204H14V14H4V4Z'%20fill='%23A09BA8'/%3e%3cpath%20d='M18%204H28V14H18V4Z'%20fill='%23A09BA8'/%3e%3cpath%20d='M4%2018H14V28H4V18Z'%20fill='%23A09BA8'/%3e%3c/svg%3e",Xe=l=>{const{item:t,onDeleteItem:o,onOpenModal:d}=l,[r,c]=n.useState(!1),x=n.useCallback(()=>c(!1),[c]),u=n.useCallback(()=>c(!0),[c]),g=n.useCallback(()=>d("MoveItemToCollectionModal"),[d]),b=n.useCallback(()=>{c(!1),o()},[c,o]);return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"ItemCard is-card",children:[e.jsx(ge,{className:"options-dropdown",options:[{text:s("item_card.move_to_collection"),handler:g},{text:s("global.delete"),handler:u}]}),e.jsxs(de,{to:E.itemDetail(t.id),children:[e.jsx(me,{item:t}),e.jsxs(a.Card.Content,{children:[e.jsx("div",{className:"text",title:t.name,children:t.name}),e.jsx("div",{className:"subtitle",children:s(`item.type.${t.type}`)})]})]})]}),e.jsx(a.Confirm,{size:"tiny",open:r,header:s("item_card.confirm_delete_header",{name:t.name}),content:s("item_card.confirm_delete_content",{name:t.name}),confirmButton:e.jsx(a.Button,{primary:!0,children:s("global.confirm")}),cancelButton:e.jsx(a.Button,{secondary:!0,children:s("global.cancel")}),onCancel:x,onConfirm:b})]})},et=je.memo(Xe),tt=(l,t)=>({onDeleteItem:()=>l(Ie(t.item)),onOpenModal:o=>l(he(o,{item:t.item}))}),at=U(void 0,tt)(et),lt="_ItemRow_xmdia_1",st="_image_xmdia_7",nt="_name_xmdia_21",ot="_title_xmdia_29",ct="_imageColumn_xmdia_30",it="_published_xmdia_35",D={ItemRow:lt,image:st,name:nt,title:ot,imageColumn:ct,published:it};function rt(l){const{item:t}=l,o=F(),d=n.useCallback(()=>{o.push(E.itemDetail(t.id))},[o]);return e.jsxs(a.Table.Row,{className:D.ItemRow,onClick:d,children:[e.jsx(a.Table.Cell,{width:4,children:e.jsxs("div",{className:D.imageColumn,children:[e.jsx(me,{className:D.image,item:t}),e.jsxs("div",{className:D.title,children:[e.jsx(Se,{item:t}),e.jsx("div",{className:D.name,children:t.name})]})]})}),e.jsx(a.Table.Cell,{width:3,children:B(t.createdAt,{addSuffix:!0})}),e.jsx(a.Table.Cell,{width:3,children:B(t.updatedAt,{addSuffix:!0})})]})}const dt=l=>{const{collection:t,onDeleteCollection:o,itemCount:d}=l,[r,c]=n.useState(!1),x=n.useCallback(()=>c(!1),[c]),u=n.useCallback(()=>c(!0),[c]),g=n.useCallback(()=>{c(!1),o()},[c,o]),b=Z(t);return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"CollectionCard is-card",children:[!t.isPublished&&e.jsx(ge,{className:fe({"empty-collection-options":d===0},"options-dropdown"),options:[{text:s("global.delete"),handler:u}]}),e.jsxs(de,{to:E.collectionDetail(t.id,b),children:[e.jsx(Ce,{collectionId:t.id}),e.jsxs(a.Card.Content,{children:[e.jsxs("div",{className:"text",title:t.name,children:[e.jsx(_e,{collection:t})," ",t.name]}),e.jsxs("div",{className:"subtitle",children:[s(`collection.type.${b}`)," · ",s("collection_card.item_count",{count:d})]}),!t.isMappingComplete&&Ne(t.urn)&&e.jsxs("div",{className:"pending-migration",children:[e.jsx(a.Icon,{name:"warning circle"})," ",s("item_status.pending_migration")]})]})]})]}),e.jsx(a.Confirm,{size:"tiny",open:r,header:s("collection_card.confirm_delete_header",{name:t.name}),content:s("collection_card.confirm_delete_content",{name:t.name}),confirmButton:e.jsx(a.Button,{primary:!0,children:s("global.confirm")}),cancelButton:e.jsx(a.Button,{secondary:!0,children:s("global.cancel")}),onCancel:x,onConfirm:g,className:"delete-collection-confirm"})]})},mt=n.memo(dt),ht=(l,t)=>({itemCount:ue(l,t.collection.id)}),Ct=(l,t)=>({onDeleteCollection:()=>l(ve(t.collection))}),ut=U(ht,Ct)(mt),gt="_CollectionRow_k7d4q_1",_t="_image_k7d4q_7",xt="_name_k7d4q_16",pt="_title_k7d4q_24",Tt="_imageColumn_k7d4q_25",bt="_published_k7d4q_30",L={CollectionRow:gt,image:_t,name:xt,title:pt,imageColumn:Tt,published:bt};function jt(l){const{collection:t,itemCount:o}=l,d=F(),r=n.useCallback(()=>{d.push(E.collectionDetail(t.id,Z(t)))},[d]),c=Z(t);return e.jsxs(a.Table.Row,{className:L.CollectionRow,onClick:r,children:[e.jsx(a.Table.Cell,{width:3,children:e.jsxs("div",{className:L.imageColumn,children:[e.jsx(Ce,{className:L.image,collectionId:t.id}),e.jsxs("div",{className:L.title,children:[e.jsx(_e,{collection:t}),e.jsx("div",{className:L.name,children:t.name})]})]})}),e.jsx(a.Table.Cell,{width:3,children:s(`collection.type.${c}`)}),e.jsx(a.Table.Cell,{width:2,children:o}),e.jsx(a.Table.Cell,{width:3,children:B(t.createdAt,{addSuffix:!0})}),e.jsx(a.Table.Cell,{width:3,children:B(t.updatedAt,{addSuffix:!0})}),e.jsx(a.Table.Cell,{width:3,children:t.isPublished?e.jsxs("div",{className:L.published,children:[s("global.published")," ",e.jsx(a.Icon,{name:"check"})]}):null})]})}const It=(l,t)=>({itemCount:ue(l,t.collection.id)}),St=U(It)(jt);var m=(l=>(l.STANDARD_COLLECTIONS="standard_collections",l.THIRD_PARTY_COLLECTIONS="third_party_collections",l.ITEMS="orphan_items",l))(m||{});const Y=20;function ft(l){const{address:t,items:o,collections:d,view:r,collectionsPaginationData:c,itemsPaginationData:x,hasUserOrphanItems:u,isLoadingItems:g,isLoadingCollections:b,isLoadingOrphanItem:A,isLinkedWearablesPaymentsEnabled:j,isThirdPartyManager:S,onFetchCollections:O,onFetchOrphanItem:V,onFetchOrphanItems:v,onOpenModal:f,onSetView:i}=l,_=F(),{page:p,pages:I,goToPage:Q,filters:y,changeFilter:P,sortBy:k,changeSorting:W}=Je({pageSize:Y,count:c==null?void 0:c.total}),h=y.section??m.STANDARD_COLLECTIONS,M=h===m.STANDARD_COLLECTIONS||h===m.THIRD_PARTY_COLLECTIONS,[J,xe]=n.useState(y.search??""),H=n.useRef(null);n.useEffect(()=>{u===void 0&&t&&V(t)},[t,u]),n.useEffect(()=>{t&&(h===m.ITEMS?v(t,{page:p,limit:Y}):O(t,{page:p,limit:Y,q:y.search??void 0,type:h===m.STANDARD_COLLECTIONS?oe.STANDARD:oe.THIRD_PARTY,sort:k}))},[t,p,h,y.search,k,v,O]);const pe=n.useCallback(()=>{f("CreateThirdPartyCollectionModal")},[f]),$=n.useCallback(()=>{f(j?"CreateCollectionSelectorModal":"CreateCollectionModal")},[f,j]),K=n.useCallback((C,T)=>{xe(T.value),H.current&&(clearTimeout(H.current),H.current=null),H.current=setTimeout(()=>{P("search",T.value)},500)},[P]),X=n.useCallback(()=>{_.push(E.itemEditor())},[_]),ee=n.useCallback((C,{value:T})=>{W(T)},[W]),z=n.useCallback(C=>{h!==C&&P("section",C)},[t,h,P]),te=n.useCallback(()=>e.jsx(a.Card.Group,{children:M?d.map((C,T)=>e.jsx(ut,{collection:C},T)):g?e.jsx(a.Loader,{size:"large",active:!0}):o.map((C,T)=>e.jsx(at,{item:C},T))}),[o,d,g,M,h]),ae=n.useCallback(()=>M?e.jsx(a.Section,{children:e.jsxs(a.Table,{basic:"very",children:[e.jsx(a.Table.Header,{children:e.jsxs(a.Table.Row,{children:[e.jsx(a.Table.HeaderCell,{children:s("collections_page.collection")}),e.jsx(a.Table.HeaderCell,{children:s("collections_page.type")}),e.jsx(a.Table.HeaderCell,{children:s("collections_page.items")}),e.jsx(a.Table.HeaderCell,{children:s("collections_page.created_at")}),e.jsx(a.Table.HeaderCell,{children:s("collections_page.last_modified")}),e.jsx(a.Table.HeaderCell,{})]})}),e.jsx(a.Table.Body,{children:d.map(C=>e.jsx(St,{collection:C},C.id))})]})}):e.jsx(a.Section,{children:e.jsxs(a.Table,{basic:"very",children:[e.jsx(a.Table.Header,{children:e.jsxs(a.Table.Row,{children:[e.jsx(a.Table.HeaderCell,{children:s("global.item")}),e.jsx(a.Table.HeaderCell,{children:s("collections_page.created_at")}),e.jsx(a.Table.HeaderCell,{children:s("collections_page.last_modified")})]})}),e.jsx(a.Table.Body,{children:o.map(C=>e.jsx(rt,{item:C},C.id))})]})}),[o,d,M]),le=n.useCallback((C,T)=>{p!==T.activePage&&Q(Number(T.activePage))},[p,Q]),se=n.useCallback(()=>e.jsxs("div",{className:"collections-main-actions",children:[h!==m.ITEMS&&e.jsx(a.Field,{placeholder:s("itemdrawer.search_items"),className:"collections-search-field",input:{icon:"search"},onChange:K,icon:e.jsx(a.Icon,{name:"search",className:"searchIcon"}),iconPosition:"left",value:J,isClearable:!0}),e.jsxs(a.Row,{className:"actions",grow:!1,children:[S&&!j&&e.jsx(a.Button,{className:"action-button",size:"small",basic:!0,onClick:pe,children:s("collections_page.new_third_party_collection")}),e.jsxs(a.Button,{className:"action-button open-editor",size:"small",basic:!0,onClick:X,children:[e.jsx(Re,{name:"cube"}),s("item_editor.open")]}),e.jsxs(a.Button,{className:"action-button",size:"small",primary:!0,onClick:$,children:[e.jsx(a.Icon,{name:"plus square"})," ",s("collections_page.new_collection")]})]})]}),[J,S,j,K,X,$]),ne=n.useCallback(()=>e.jsx(a.Column,{align:"right",children:e.jsxs(a.Row,{className:"actions",children:[h===m.STANDARD_COLLECTIONS||m.THIRD_PARTY_COLLECTIONS&&e.jsx(a.Dropdown,{direction:"left",value:k,options:[{value:N.MOST_RELEVANT,text:s("curation_page.order.most_relevant")},{value:N.CREATED_AT_DESC,text:s("global.order.newest")},{value:N.CREATED_AT_ASC,text:s("global.order.oldest")},{value:N.UPDATED_AT_DESC,text:s("global.order.updated_at_desc")},{value:N.UPDATED_AT_ASC,text:s("global.order.updated_at_asc")},{value:N.NAME_DESC,text:s("global.order.name_desc")},{value:N.NAME_ASC,text:s("global.order.name_asc")}],onChange:ee}),e.jsx(ce,{className:"grid",icon:"grid",isActive:r===w.GRID,onClick:()=>i(w.GRID)}),e.jsx(ce,{className:"list",icon:"table",isActive:r===w.LIST,onClick:()=>i(w.LIST)})]})}),[r,i,k,ee]),Te=n.useCallback(()=>{const C=c==null?void 0:c.total,T=x==null?void 0:x.total,R=h===m.STANDARD_COLLECTIONS||h===m.THIRD_PARTY_COLLECTIONS?C:T,q=h===m.STANDARD_COLLECTIONS||h===m.THIRD_PARTY_COLLECTIONS?I:x==null?void 0:x.totalPages;return A?e.jsx(a.Loader,{active:!0,size:"large"}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"banner-container",children:e.jsx(qe,{id:Ge})}),e.jsx("div",{className:"filters",children:e.jsxs(a.Container,{children:[(u||S||j)&&e.jsxs("div",{className:"action-tabs-container",children:[e.jsx("img",{src:Ke,className:"collections-icon"}),e.jsxs(a.Tabs,{isFullscreen:!0,children:[e.jsx(a.Tabs.Tab,{active:h===m.STANDARD_COLLECTIONS,onClick:()=>z(m.STANDARD_COLLECTIONS),children:s("collections_page.collections")}),(S||j)&&e.jsx(a.Tabs.Tab,{active:h===m.THIRD_PARTY_COLLECTIONS,onClick:()=>z(m.THIRD_PARTY_COLLECTIONS),children:s("collections_page.third_party_collections")}),u&&e.jsx(a.Tabs.Tab,{active:h===m.ITEMS,onClick:()=>z(m.ITEMS),children:s("collections_page.single_items")})]})]}),se(),e.jsxs(a.Row,{height:30,children:[e.jsx(a.Column,{children:e.jsx(a.Row,{children:!g&&!b&&!!R&&R>0&&e.jsx(a.Header,{sub:!0,children:s("collections_page.results",{count:R})})})}),ne()]})]})}),g||b||R===void 0?e.jsx(a.Loader,{active:!0,size:"large"}):R>0?e.jsxs(e.Fragment,{children:[r===w.GRID?te():r===w.LIST?ae():null,!!q&&q>1&&e.jsx(a.Pagination,{className:"pagination",firstItem:null,lastItem:null,totalPages:q,activePage:p,onPageChange:le})]}):e.jsxs("div",{className:"empty",children:[e.jsx(a.Header,{className:"title",size:"large",children:s("collections_page.no_items")}),e.jsx("div",{className:"empty-description",children:s("collections_page.empty_description")}),e.jsx("div",{className:"create-new-wrapper",children:e.jsx("div",{className:"create-new create-new-collection",onClick:$,children:e.jsx("div",{className:"text",children:s("collections_page.new_collection")})})})]})]})},[p,I,c,x,r,u,g,b,A,j,S,le,$,te,ae,ne,se]);return e.jsx(Ze,{className:"CollectionsPage",activeTab:Ye.COLLECTIONS,children:Te()})}const Nt=l=>{const t=we(l),o=Le(l),d=t?De(l,t):[],r=t?Ee(l,t):null,c=Ae(l);return{items:d,address:t,collections:o,collectionsPaginationData:c,itemsPaginationData:r,view:We(l),isThirdPartyManager:Oe(l),isLoadingCollections:G(ye(l),Ue),isLoadingItems:G(ie(l),Ve),isLoadingOrphanItem:G(ie(l),ze),isLinkedWearablesPaymentsEnabled:Pe(l),isCampaignEnabled:ke(l),hasUserOrphanItems:Me(l)}},vt=l=>({onSetView:t=>l(He(t)),onOpenModal:(t,o)=>l(he(t,o)),onFetchOrphanItems:(t,o)=>l($e(t,o)),onFetchCollections:(t,o)=>l(Be(t,o)),onFetchOrphanItem:t=>l(Fe(t))}),kt=U(Nt,vt)(ft);export{kt as default};
@@ -1 +0,0 @@
1
- var S=Object.defineProperty;var L=(n,a,s)=>a in n?S(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s;var r=(n,a,s)=>L(n,typeof a!="symbol"?a+"":a,s);import{aB as b,D as x,dd as g,H as e,M as c,G as o,L as m,K as p,bm as j,ce as C,b8 as R,N as w,a_ as P,de as f,cO as k}from"./index-BearCfEI.js";import{L as v}from"./LandAction-CvKFbUMl.js";import{L as B}from"./LandProviderPage-BWPMhRsc.js";import"./Back-DQoXbeYM.js";import"./NotFound-Dbd8gZSK.js";const u=b.get("MARKETPLACE_WEB_URL","");class F extends x.PureComponent{constructor(){super(...arguments);r(this,"state",{selectedName:""});r(this,"handleChange",(s,i)=>{const{onFetchENS:l,land:t}=this.props,d=i.value;l(d,t),this.setState({selectedName:d})});r(this,"handleContinue",()=>{const{selectedName:s}=this.state,{onUpdateSubdomain:i,ensList:l}=this.props,t=l.find(d=>d.name===s);i(t.subdomain)})}render(){const{land:s,ensList:i,isLoading:l}=this.props,{selectedName:t}=this.state,d=i.map(({name:_,subdomain:E})=>({value:_,text:E})),h=i.find(_=>_.name===t),N=!h||g(h,s);return e.jsx(c.Form,{className:"LandSelectENSForm",children:!l&&d.length===0?e.jsxs(e.Fragment,{children:[e.jsx(c.Section,{size:"large",children:o("land_select_ens_page.empty_options_message")}),e.jsxs(c.Row,{children:[e.jsx(m,{className:"cancel",to:p.landDetail(s.id),children:e.jsx(c.Button,{children:o("global.cancel")})}),e.jsx(m,{to:`${u}/names/claim`,children:e.jsx(c.Button,{primary:!0,children:o("land_select_ens_page.claim_new_name")})})]})]}):e.jsxs(e.Fragment,{children:[e.jsxs(c.Section,{size:"large",children:[e.jsxs("div",{className:"select-names",children:[e.jsx(c.Header,{sub:!0,className:"name",children:o("land_select_ens_page.select_name_title")}),e.jsx(c.Dropdown,{value:t,options:d,placeholder:o("land_select_ens_page.select_name_placeholder"),onChange:this.handleChange})]}),e.jsx("div",{className:"select-message",children:h&&g(h,s)?e.jsx("span",{className:"danger-text",children:o("land_select_ens_page.name_assigned")}):e.jsx(j,{id:"land_select_ens_page.click_to_claim_new_name",values:{click_here:e.jsx(m,{to:`${u}/names/claim`,children:o("global.click_here")})}})})]}),e.jsxs(c.Row,{children:[e.jsx(m,{className:"cancel",to:p.landDetail(s.id),children:e.jsx(c.Button,{children:o("global.cancel")})}),e.jsx(C,{type:"submit",disabled:N||l,primary:!0,onClick:this.handleContinue,loading:l,network:R.Network.ETHEREUM,children:o("global.continue")})]})]})})}}let D=class extends x.PureComponent{constructor(){super(...arguments);r(this,"handleUpdateSubdomain",(s,i)=>{const{history:l}=this.props;l.push(p.landAssignENS(s.id,i))})}render(){const{ensList:s,isLoading:i,onFetchENS:l}=this.props;return e.jsx(B,{children:t=>e.jsx(v,{land:t,title:o("land_select_ens_page.title"),subtitle:e.jsx(j,{id:"land_select_ens_page.subtitle",values:{land:e.jsx(m,{to:p.landDetail(t.id),children:t.name})}}),children:e.jsx(F,{land:t,ensList:s,isLoading:i,onUpdateSubdomain:d=>this.handleUpdateSubdomain(t,d),onFetchENS:l})})})}};const U=n=>({ensList:f(n)}),A=n=>({onFetchENS:(a,s)=>n(k(a,s))}),z=w(U,A)(P(D));export{z as default};
@@ -1 +0,0 @@
1
- import{N as g,ae as n,a5 as a,a6 as i}from"./index-BearCfEI.js";import{H as s}from"./Navigation.container-CNk-oi6a.js";import"./selectors-1tqbakPd.js";const e=o=>({isLoggedIn:n(o),isLoggingIn:a(o)||i(o)}),c=g(e)(s);export{c as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Bnv5GFLy.js","assets/index-BearCfEI.js","assets/index-V7VZvdlb.css"])))=>i.map(i=>d[i]);
2
- import{B as pe,_ as me}from"./index-BearCfEI.js";const he=Symbol(),ee=Object.getPrototypeOf,Y=new WeakMap,ge=e=>e&&(Y.has(e)?Y.get(e):ee(e)===Object.prototype||ee(e)===Array.prototype),ye=e=>ge(e)&&e[he]||null,te=(e,t=!0)=>{Y.set(e,t)},z={BASE_URL:"https://cdn.decentraland.org/@dcl/builder-site/7.12.0",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_BASE_URL:"https://cdn.decentraland.org/@dcl/builder-site/7.12.0",VITE_REACT_APP_WEBSITE_VERSION:"7.12.0"},F=e=>typeof e=="object"&&e!==null,C=new WeakMap,x=new WeakSet,ve=(e=Object.is,t=(o,g)=>new Proxy(o,g),s=o=>F(o)&&!x.has(o)&&(Array.isArray(o)||!(Symbol.iterator in o))&&!(o instanceof WeakMap)&&!(o instanceof WeakSet)&&!(o instanceof Error)&&!(o instanceof Number)&&!(o instanceof Date)&&!(o instanceof String)&&!(o instanceof RegExp)&&!(o instanceof ArrayBuffer),n=o=>{switch(o.status){case"fulfilled":return o.value;case"rejected":throw o.reason;default:throw o}},l=new WeakMap,c=(o,g,I=n)=>{const v=l.get(o);if((v==null?void 0:v[0])===g)return v[1];const b=Array.isArray(o)?[]:Object.create(Object.getPrototypeOf(o));return te(b,!0),l.set(o,[g,b]),Reflect.ownKeys(o).forEach(j=>{if(Object.getOwnPropertyDescriptor(b,j))return;const O=Reflect.get(o,j),A={value:O,enumerable:!0,configurable:!0};if(x.has(O))te(O,!1);else if(O instanceof Promise)delete A.value,A.get=()=>I(O);else if(C.has(O)){const[y,H]=C.get(O);A.value=c(y,H(),I)}Object.defineProperty(b,j,A)}),Object.preventExtensions(b)},d=new WeakMap,f=[1,1],W=o=>{if(!F(o))throw new Error("object required");const g=d.get(o);if(g)return g;let I=f[0];const v=new Set,b=(i,a=++f[0])=>{I!==a&&(I=a,v.forEach(r=>r(i,a)))};let j=f[1];const O=(i=++f[1])=>(j!==i&&!v.size&&(j=i,y.forEach(([a])=>{const r=a[1](i);r>I&&(I=r)})),I),A=i=>(a,r)=>{const h=[...a];h[1]=[i,...h[1]],b(h,r)},y=new Map,H=(i,a)=>{if((z?"production":void 0)!=="production"&&y.has(i))throw new Error("prop listener already exists");if(v.size){const r=a[3](A(i));y.set(i,[a,r])}else y.set(i,[a])},Z=i=>{var a;const r=y.get(i);r&&(y.delete(i),(a=r[1])==null||a.call(r))},ue=i=>(v.add(i),v.size===1&&y.forEach(([r,h],U)=>{if((z?"production":void 0)!=="production"&&h)throw new Error("remove already exists");const N=r[3](A(U));y.set(U,[r,N])}),()=>{v.delete(i),v.size===0&&y.forEach(([r,h],U)=>{h&&(h(),y.set(U,[r]))})}),q=Array.isArray(o)?[]:Object.create(Object.getPrototypeOf(o)),k=t(q,{deleteProperty(i,a){const r=Reflect.get(i,a);Z(a);const h=Reflect.deleteProperty(i,a);return h&&b(["delete",[a],r]),h},set(i,a,r,h){const U=Reflect.has(i,a),N=Reflect.get(i,a,h);if(U&&(e(N,r)||d.has(r)&&e(N,d.get(r))))return!0;Z(a),F(r)&&(r=ye(r)||r);let V=r;if(r instanceof Promise)r.then(L=>{r.status="fulfilled",r.value=L,b(["resolve",[a],L])}).catch(L=>{r.status="rejected",r.reason=L,b(["reject",[a],L])});else{!C.has(r)&&s(r)&&(V=W(r));const L=!x.has(V)&&C.get(V);L&&H(a,L)}return Reflect.set(i,a,V,h),b(["set",[a],r,N]),!0}});d.set(o,k);const fe=[q,O,c,ue];return C.set(k,fe),Reflect.ownKeys(o).forEach(i=>{const a=Object.getOwnPropertyDescriptor(o,i);"value"in a&&(k[i]=o[i],delete a.value,delete a.writable),Object.defineProperty(q,i,a)}),k})=>[W,C,x,e,t,s,n,l,c,d,f],[be]=ve();function P(e={}){return be(e)}function D(e,t,s){const n=C.get(e);(z?"production":void 0)!=="production"&&!n&&console.warn("Please use proxy object");let l;const c=[],d=n[3];let f=!1;const o=d(g=>{c.push(g),l||(l=Promise.resolve().then(()=>{l=void 0,f&&t(c.splice(0))}))});return f=!0,()=>{f=!1,o()}}function we(e,t){const s=C.get(e);(z?"production":void 0)!=="production"&&!s&&console.warn("Please use proxy object");const[n,l,c]=s;return c(n,l(),t)}const u=P({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),de={state:u,subscribe(e){return D(u,()=>e(u))},push(e,t){e!==u.view&&(u.view=e,t&&(u.data=t),u.history.push(e))},reset(e){u.view=e,u.history=[e]},replace(e){u.history.length>1&&(u.history[u.history.length-1]=e,u.view=e)},goBack(){if(u.history.length>1){u.history.pop();const[e]=u.history.slice(-1);u.view=e}},setData(e){u.data=e}},m={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return m.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return m.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},isTelegram(){return typeof window<"u"&&(!!window.TelegramWebviewProxy||!!window.Telegram||!!window.TelegramWebviewProxyProto)},formatNativeUrl(e,t,s){if(m.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let n=e;n.includes("://")||(n=e.replaceAll("/","").replaceAll(":",""),n=`${n}://`),n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,s);const l=encodeURIComponent(t);return`${n}wc?uri=${l}`},formatUniversalUrl(e,t,s){if(!m.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let n=e;if(n.startsWith("https://t.me")){const c=pe.from(t).toString("base64").replace(/[=]/g,"");n.endsWith("/")&&(n=n.slice(0,-1)),this.setWalletConnectDeepLink(n,s);const d=new URL(n);return d.searchParams.set("startapp",c),d.toString()}n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,s);const l=encodeURIComponent(t);return`${n}wc?uri=${l}`},async wait(e){return new Promise(t=>{setTimeout(t,e)})},openHref(e,t){const s=this.isTelegram()?"_blank":t;window.open(e,s,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(m.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(m.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(m.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(m.WCM_VERSION,"2.7.0")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;const t=(e=de.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},Ie=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),p=P({enabled:Ie,userSessionId:"",events:[],connectedWalletId:void 0}),_e={state:p,subscribe(e){return D(p.events,()=>e(we(p.events[p.events.length-1])))},initialize(){p.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(p.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){p.connectedWalletId=e},click(e){if(p.enabled){const t={type:"CLICK",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}},track(e){if(p.enabled){const t={type:"TRACK",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}},view(e){if(p.enabled){const t={type:"VIEW",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}}},_=P({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),w={state:_,subscribe(e){return D(_,()=>e(_))},setChains(e){_.chains=e},setWalletConnectUri(e){_.walletConnectUri=e},setIsCustomDesktop(e){_.isCustomDesktop=e},setIsCustomMobile(e){_.isCustomMobile=e},setIsDataLoaded(e){_.isDataLoaded=e},setIsUiLoaded(e){_.isUiLoaded=e},setIsAuth(e){_.isAuth=e}},B=P({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),$={state:B,subscribe(e){return D(B,()=>e(B))},setConfig(e){var t,s;_e.initialize(),w.setChains(e.chains),w.setIsAuth(!!e.enableAuthMode),w.setIsCustomMobile(!!((t=e.mobileWallets)!=null&&t.length)),w.setIsCustomDesktop(!!((s=e.desktopWallets)!=null&&s.length)),m.setModalVersionInStorage(),Object.assign(B,e)}};var Ee=Object.defineProperty,se=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,ne=(e,t,s)=>t in e?Ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Le=(e,t)=>{for(var s in t||(t={}))Oe.call(t,s)&&ne(e,s,t[s]);if(se)for(var s of se(t))We.call(t,s)&&ne(e,s,t[s]);return e};const G="https://explorer-api.walletconnect.com",Q="wcm",X="js-2.7.0";async function K(e,t){const s=Le({sdkType:Q,sdkVersion:X},t),n=new URL(e,G);return n.searchParams.append("projectId",$.state.projectId),Object.entries(s).forEach(([c,d])=>{d&&n.searchParams.append(c,String(d))}),(await fetch(n)).json()}const S={async getDesktopListings(e){return K("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return K("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return K("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return K("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return`${G}/w3m/v1/getWalletImage/${e}?projectId=${$.state.projectId}&sdkType=${Q}&sdkVersion=${X}`},getAssetImageUrl(e){return`${G}/w3m/v1/getAssetImage/${e}?projectId=${$.state.projectId}&sdkType=${Q}&sdkVersion=${X}`}};var Ce=Object.defineProperty,oe=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,re=(e,t,s)=>t in e?Ce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Se=(e,t)=>{for(var s in t||(t={}))Pe.call(t,s)&&re(e,s,t[s]);if(oe)for(var s of oe(t))Ae.call(t,s)&&re(e,s,t[s]);return e};const ae=m.isMobile(),E=P({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),ke={state:E,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=$.state;if(e==="NONE"||t==="ALL"&&!e)return E.recomendedWallets;if(m.isArray(e)){const n={recommendedIds:e.join(",")},{listings:l}=await S.getAllListings(n),c=Object.values(l);c.sort((d,f)=>{const W=e.indexOf(d.id),o=e.indexOf(f.id);return W-o}),E.recomendedWallets=c}else{const{chains:s,isAuth:n}=w.state,l=s==null?void 0:s.join(","),c=m.isArray(t),d={page:1,sdks:n?"auth_v1":void 0,entries:m.RECOMMENDED_WALLET_AMOUNT,chains:l,version:2,excludedIds:c?t.join(","):void 0},{listings:f}=ae?await S.getMobileListings(d):await S.getDesktopListings(d);E.recomendedWallets=Object.values(f)}return E.recomendedWallets},async getWallets(e){const t=Se({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:n}=$.state,{recomendedWallets:l}=E;if(n==="ALL")return E.wallets;l.length?t.excludedIds=l.map(I=>I.id).join(","):m.isArray(s)&&(t.excludedIds=s.join(",")),m.isArray(n)&&(t.excludedIds=[t.excludedIds,n].filter(Boolean).join(",")),w.state.isAuth&&(t.sdks="auth_v1");const{page:c,search:d}=e,{listings:f,total:W}=ae?await S.getMobileListings(t):await S.getDesktopListings(t),o=Object.values(f),g=d?"search":"wallets";return E[g]={listings:[...E[g].listings,...o],total:W,page:c??1},{listings:o,total:W}},getWalletImageUrl(e){return S.getWalletImageUrl(e)},getAssetImageUrl(e){return S.getAssetImageUrl(e)},resetSearch(){E.search={listings:[],total:0,page:1}}},T=P({open:!1}),J={state:T,subscribe(e){return D(T,()=>e(T))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:n}=w.state;if(m.removeWalletConnectDeepLink(),w.setWalletConnectUri(e==null?void 0:e.uri),w.setChains(e==null?void 0:e.chains),de.reset("ConnectWallet"),s&&n)T.open=!0,t();else{const l=setInterval(()=>{const c=w.state;c.isUiLoaded&&c.isDataLoaded&&(clearInterval(l),T.open=!0,t())},200)}})},close(){T.open=!1}};var Me=Object.defineProperty,ie=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,le=(e,t,s)=>t in e?Me(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Ue=(e,t)=>{for(var s in t||(t={}))De.call(t,s)&&le(e,s,t[s]);if(ie)for(var s of ie(t))je.call(t,s)&&le(e,s,t[s]);return e};function Te(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const R=P({themeMode:Te()?"dark":"light"}),ce={state:R,subscribe(e){return D(R,()=>e(R))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(R.themeMode=t),s&&(R.themeVariables=Ue({},s))}},M=P({open:!1,message:"",variant:"success"}),Ve={state:M,subscribe(e){return D(M,()=>e(M))},openToast(e,t){M.open=!0,M.message=e,M.variant=t},closeToast(){M.open=!1}};class $e{constructor(t){this.openModal=J.open,this.closeModal=J.close,this.subscribeModal=J.subscribe,this.setTheme=ce.setThemeConfig,ce.setThemeConfig(t),$.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await me(()=>import("./index-Bnv5GFLy.js"),__vite__mapDeps([0,1,2]));const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),w.setIsUiLoaded(!0)}}}const xe=Object.freeze(Object.defineProperty({__proto__:null,WalletConnectModal:$e},Symbol.toStringTag,{value:"Module"}));export{m as C,ke as E,J as M,w as O,de as R,ce as T,Ve as a,_e as b,$ as c,xe as i};
@@ -1 +0,0 @@
1
- .ProjectCard{position:relative;width:100%;max-width:var(--scenespage-card-width);height:var(--scenespage-card-height);border-radius:10px;background:rgba(var(--bluish-steel-raw),.16);cursor:pointer;display:flex;justify-content:flex-end;flex-direction:column}.ProjectCard .project-thumbnail{height:170px;width:100%;max-width:256px;background-size:100% 170px;border-top-left-radius:10px;border-top-right-radius:10px}.ProjectCard .deployment-status{align-self:flex-end;margin-right:8px;margin-bottom:8px;position:absolute;right:0;bottom:70px}.ProjectCard .project-data{height:70px;width:100%;padding:12px 9px 14px;background-color:#313131;align-self:flex-end;color:var(--text);z-index:1;border-bottom-left-radius:10px;border-bottom-right-radius:10px}.ProjectCard .title{font-size:18px;line-height:24px;font-weight:600;overflow:hidden;white-space:nowrap;width:240px;text-overflow:ellipsis}.ProjectCard .description{display:flex;align-items:center;font-size:14px;font-weight:400;line-height:24px;letter-spacing:0px;text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;-webkit-user-select:none;user-select:none}.ProjectCard .description .Icon{margin-right:5px}.ProjectCard .description .Icon.scene-object{margin-left:11px}.ProjectCard .overlay{position:absolute;left:0;right:0;top:0;bottom:0;background:var(--background);opacity:.3}.ProjectCard:hover{z-index:999}.ProjectCard .options-container{display:flex;justify-content:space-between;align-items:center;position:absolute;top:0;width:100%;padding:8px}.ProjectCard .options-container .options-dropdown{visibility:hidden}.ProjectCard:hover .options-container .options-dropdown{visibility:visible}.ProjectCard .options-dropdown .icon:before{color:var(--text)!important}.ProjectCard.has-thumbnail{position:relative;background-size:cover;background-position:center}.ProjectCard .title-wrapper{display:flex}.ProjectCard .Icon.is-uploading{margin-left:4px;margin-top:2px}.ProjectCard .error-indicator{width:16px;height:16px;background:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%3e%3cdefs%3e%3cfilter%20id='a'%20width='108.5%25'%20height='175%25'%20x='-4.2%25'%20y='-37.5%25'%20filterUnits='objectBoundingBox'%3e%3cfeOffset%20dy='2'%20in='SourceAlpha'%20result='shadowOffsetOuter1'/%3e%3cfeGaussianBlur%20in='shadowOffsetOuter1'%20result='shadowBlurOuter1'%20stdDeviation='2'/%3e%3cfeColorMatrix%20in='shadowBlurOuter1'%20result='shadowMatrixOuter1'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.16%200'/%3e%3cfeMerge%3e%3cfeMergeNode%20in='shadowMatrixOuter1'/%3e%3cfeMergeNode%20in='SourceGraphic'/%3e%3c/feMerge%3e%3c/filter%3e%3ccircle%20id='c'%20cx='8'%20cy='8'%20r='8'/%3e%3cfilter%20id='b'%20width='187.5%25'%20height='187.5%25'%20x='-43.8%25'%20y='-31.2%25'%20filterUnits='objectBoundingBox'%3e%3cfeOffset%20dy='2'%20in='SourceAlpha'%20result='shadowOffsetOuter1'/%3e%3cfeGaussianBlur%20in='shadowOffsetOuter1'%20result='shadowBlurOuter1'%20stdDeviation='2'/%3e%3cfeComposite%20in='shadowBlurOuter1'%20in2='SourceAlpha'%20operator='out'%20result='shadowBlurOuter1'/%3e%3cfeColorMatrix%20in='shadowBlurOuter1'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.5%200'/%3e%3c/filter%3e%3c/defs%3e%3cg%20fill='none'%20fill-rule='evenodd'%20filter='url(%23a)'%20transform='translate(-2%20-6)'%3e%3cg%20transform='translate(8%208)'%3e%3cuse%20fill='%23000'%20filter='url(%23b)'%20xlink:href='%23c'/%3e%3ccircle%20cx='8'%20cy='8'%20r='7.25'%20fill='%23F00'%20stroke='%23FFF'%20stroke-linejoin='square'%20stroke-width='1.5'/%3e%3c/g%3e%3cpath%20fill='%23FFF'%20d='M17%2012.5v4a1%201%200%201%201-2%200v-4a1%201%200%201%201%202%200zm-2%207a1%201%200%201%201%202%200%201%201%200%200%201-2%200z'/%3e%3c/g%3e%3c/svg%3e");background-repeat:no-repeat;background-position:center -2px;margin-top:3px;margin-left:7px}.ScenesPageAd{padding-top:32px}.ScenesPage .ui.button.inverted,.ScenesPage .ui.button.inverted:hover{background-color:#fff;color:var(--shadows)}.ScenesPage .project-cards{position:relative}.ScenesPage .subtitle{display:flex;align-items:center;justify-content:space-between}.ScenesPage .empty-projects{display:flex;flex-direction:column;width:100%;border-radius:12px;border:1px solid var(--divider);align-items:center;justify-content:center;color:var(--text);background-color:var(--dark-two);-webkit-user-select:none;user-select:none;text-align:center;line-height:28px;padding-top:105px;padding-bottom:122px}.ScenesPage .empty-projects .empty-project-thumbnail{width:86px;height:86px;background:url(https://cdn.decentraland.org/@dcl/builder-site/7.12.0/assets/scene-CZXq89b-.svg);background-size:contain;background-repeat:no-repeat;background-position:center;margin-bottom:30px}.ScenesPage .empty-projects .description{margin-bottom:40px}.ScenesPage .empty-projects .actions{display:flex;align-items:center;justify-content:center;gap:14px}.ScenesPage .template-cards{margin-top:80px}.ScenesPage .template-cards.animate .TemplateCard{animation:templateAnimation 2s}.ScenesPage .project-cards .subtitle,.ScenesPage .template-cards .subtitle{font-size:20px}.ScenesPage .CardList .ProjectCard,.ScenesPage .CardList .ProjectCard .project-thumbnail{max-width:unset}.ScenesPage .CardList{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:var(--scenespage-card-margin)}.ScenesPage .ProjectCard{transition:transform .2s ease-in-out;box-shadow:0 2px 4px #00000029}.ScenesPage .ProjectCard:hover{box-shadow:0 10px 20px #0000003d;transform:translateY(-4px)}.ScenesPage .dcl.tabs,.ScenesPage .dcl.tabs .ui.container{position:relative}.ScenesPage .projects-menu .items-count,.ScenesPage .scene-pool-menu .ui.header.sub{flex:1 0 auto;color:var(--secondary-text);text-transform:uppercase;font-size:13px;line-height:18px;font-weight:500}.ScenesPage .projects-menu .actions{display:flex;flex:1 0 auto;align-items:center;justify-content:flex-end;font-size:13px;line-height:18px;text-transform:uppercase;margin-bottom:8px}.ScenesPage .projects-menu .actions .ui.button{font-size:14px;font-weight:600}.ScenesPage .projects-menu .actions .ui.button+.ui.button{margin-left:16px}.ScenesPage .projects-menu .actions .ui.button.create-scene{display:flex;align-items:center}.ScenesPage .projects-menu .actions .ui.dropdown.active.visible{z-index:99999}.ScenesPage .projects-menu .actions .ui.dropdown+.ui.button{margin-left:24px}.ScenesPage .project-cards.has-pagination .CardList{min-height:606px}.ScenesPage .project-cards .ui.pagination{width:100%;display:flex;justify-content:center}.ScenesPage .project-cards .ui.pagination{margin-top:40px}.ScenesPage .project-cards .ui.pagination .item[type=nextItem],.ScenesPage .project-cards .ui.pagination .item[type=prevItem]{position:absolute;background-color:var(--secondary)}.ScenesPage .project-cards .ui.pagination .item[type=prevItem]{left:0}.ScenesPage .project-cards .ui.pagination .item[type=nextItem]{right:0}.ScenesPage .SyncToast{top:77px}.ScenesPage .scene-pool-projects{display:flex;overflow:auto;padding-top:20px;gap:var(--scenespage-card-margin)}.ScenesPage .scene-pool-projects .ProjectCard{flex:none}.ScenesPage .ui.button.import-scene,.ScenesPage .ui.button.create-scene{display:flex;align-items:center;justify-content:center;gap:10px;padding:12px 18px}.ScenesPage .import-scene:before,.ScenesPage .create-scene:before{content:"";width:20px;height:20px;background-position:center;background-repeat:no-repeat;display:block}.ScenesPage .import-scene:before{background-image:url("data:image/svg+xml,%3csvg%20width='19'%20height='18'%20viewBox='0%200%2019%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.25%203H14.75C15.1625%203%2015.5%203.3375%2015.5%203.75V5.25C15.5%205.6625%2015.1625%206%2014.75%206C14.3375%206%2014%205.6625%2014%205.25V4.5H5V5.25C5%205.6625%204.6625%206%204.25%206C3.8375%206%203.5%205.6625%203.5%205.25V3.75C3.5%203.3375%203.8375%203%204.25%203ZM6.50075%2010.5C6.272%2010.5%206.04775%2010.3965%205.9%2010.2C5.651%209.8685%205.7185%209.39825%206.05%209.15L9.05%206.9C9.3095%206.705%209.6665%206.69975%209.93125%206.8865L12.9312%208.997C13.2703%209.2355%2013.352%209.7035%2013.1135%2010.0417C12.875%2010.38%2012.4078%2010.4625%2012.0688%2010.224L10.2479%208.94308C10.2493%208.96187%2010.25%208.98085%2010.25%209V15C10.25%2015.414%209.91475%2015.75%209.5%2015.75C9.08525%2015.75%208.75%2015.414%208.75%2015V9.00013L6.95%2010.35C6.815%2010.4513%206.6575%2010.5%206.50075%2010.5Z'%20fill='black'/%3e%3c/svg%3e")}.ScenesPage .create-scene:before{background-image:url("data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.7829%2015.3424V16.7893C10.7824%2016.9117%2010.7338%2017.0289%2010.6479%2017.1152C10.562%2017.2015%2010.4457%2017.25%2010.3245%2017.25H8.48794C8.36653%2017.25%208.25008%2017.2014%208.16414%2017.1148C8.0782%2017.0283%208.02979%2016.9109%208.02954%2016.7883V15.3424H10.7829ZM13.1042%2011.8362L14.1897%2013.7281C14.2295%2013.7983%2014.2502%2013.8779%2014.25%2013.9588C14.2498%2014.0397%2014.2285%2014.1192%2014.1883%2014.1892C14.1481%2014.2592%2014.0905%2014.3174%2014.0211%2014.3579C13.9516%2014.3984%2013.8729%2014.4198%2013.7927%2014.42H4.95725C4.87708%2014.4198%204.79835%2014.3984%204.72894%2014.3579C4.65953%2014.3174%204.60186%2014.2592%204.56169%2014.1892C4.52152%2014.1192%204.50025%2014.0397%204.5%2013.9588C4.49976%2013.8779%204.52055%2013.7983%204.5603%2013.7281L5.64681%2011.8362H13.1042ZM12.3493%208.32899L13.4358%2010.2219C13.4755%2010.2921%2013.4963%2010.3717%2013.4961%2010.4526C13.4958%2010.5335%2013.4746%2010.613%2013.4344%2010.683C13.3942%2010.753%2013.3365%2010.8112%2013.2671%2010.8517C13.1977%2010.8922%2013.119%2010.9136%2013.0388%2010.9138H5.71216C5.63198%2010.9136%205.55326%2010.8922%205.48385%2010.8517C5.41443%2010.8112%205.35677%2010.753%205.31659%2010.683C5.27642%2010.613%205.25515%2010.5335%205.25491%2010.4526C5.25466%2010.3717%205.27545%2010.2921%205.3152%2010.2219L6.40074%208.32899H12.3493ZM9.77342%201.731L12.635%206.71468C12.6748%206.78496%2012.6956%206.86453%2012.6953%206.94545C12.6951%207.02636%2012.6738%207.1058%2012.6336%207.17583C12.5935%207.24586%2012.5358%207.30403%2012.4664%207.34454C12.397%207.38504%2012.3183%207.40647%2012.2381%207.40667H6.5129C6.43272%207.40647%206.354%207.38504%206.28459%207.34454C6.21518%207.30403%206.15751%207.24586%206.11734%207.17583C6.07716%207.1058%206.05589%207.02636%206.05565%206.94545C6.0554%206.86453%206.07619%206.78496%206.11594%206.71468L8.97755%201.731C9.01806%201.66073%209.07612%201.60241%209.14595%201.56187C9.21578%201.52133%209.29493%201.5%209.37549%201.5C9.45604%201.5%209.53519%201.52133%209.60502%201.56187C9.67485%201.60241%209.73292%201.66073%209.77342%201.731Z'%20fill='white'/%3e%3c/svg%3e")}.ScenesPage .no-scenes-container{display:flex;flex-direction:column;width:100%;padding:50px;background:#242129;border-radius:10px;align-items:center;justify-content:center}.ScenesPage .no-scenes-title{font-size:24px}.ScenesPage .no-scenes-description{color:#fff;width:100%;max-width:620px;font-size:14px;line-height:24px;text-align:center;margin-bottom:36px}.ScenesPage .no-scenes-description a{color:#fff;text-decoration:underline}@keyframes templateAnimation{0%{background:rgba(var(--bluish-steel-raw),.16)}25%{background:rgba(var(--bluish-steel-raw),.3)}50%{background:rgba(var(--bluish-steel-raw),.16)}75%{background:rgba(var(--bluish-steel-raw),.3)}to{background:rgba(var(--bluish-steel-raw),.16)}}
@@ -1 +0,0 @@
1
- ._container_12bci_1{background-color:var(--dark-two);border-radius:10px;padding:22px}._container_12bci_1 ._used_12bci_7{font-weight:600;font-size:16px;margin-bottom:8px}._container_12bci_1 ._description_12bci_13{color:#cfcdd4;font-size:14px;font-weight:400;margin-bottom:12px}._container_12bci_1 ._description_12bci_13 ._link_12bci_20{color:#fff;cursor:pointer;text-decoration:underline;font-weight:700}._container_12bci_1 ._space_12bci_27{display:flex;align-items:center;gap:1rem}._container_12bci_1 ._space_12bci_27 ._current_12bci_33{flex:1;font-size:1.5rem}._container_12bci_1 ._space_12bci_27 ._bar_12bci_38{flex:1;margin-bottom:0!important;background-color:#a09ba8!important}._container_12bci_1 ._space_12bci_27 ._bar_12bci_38.ui.progress .bar{background-color:#ff2d55}._worldUrl_1sb6i_1{display:flex;width:100%;justify-content:space-between}._rightContainer_1sb6i_7{display:flex;align-items:center;margin-right:20px}._rightContainer_1sb6i_7 ._copyUrn_1sb6i_13{color:var(--text)}.WorldListPage .filters{margin-bottom:16px}.WorldListPage .filters .ui.header.items-count,.WorldListPage .ui.table>thead>tr th{color:var(--text)}.WorldListPage .TableRow{cursor:default}.WorldListPage .empty-names-container{display:flex;flex-direction:column;text-align:center}.WorldListPage .empty-names-container .empty-icon{margin-bottom:30px;height:87px;width:87px}.WorldListPage .empty-names-container .empty-icon.dcl-icon{background-image:url(https://cdn.decentraland.org/@dcl/builder-site/7.12.0/assets/dcl-empty-state-icon-BDDqmD-V.svg)}.WorldListPage .empty-names-container .empty-icon.ens-icon{background-image:url("data:image/svg+xml,%3csvg%20width='87'%20height='87'%20viewBox='0%200%2087%2087'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='43.5'%20cy='43.5'%20r='43.5'%20fill='white'/%3e%3cg%20clip-path='url(%23clip0_119_22392)'%3e%3cpath%20d='M22.9004%2037.517C23.5096%2038.8466%2025.0327%2041.5058%2025.0327%2041.5058L42.4718%2011.8638L25.4896%2024.0647C24.4996%2024.7686%2023.6619%2025.7071%2023.0527%2026.8021C21.4534%2030.1652%2021.4534%2034.0757%2022.9004%2037.517Z'%20fill='url(%23paint0_linear_119_22392)'/%3e%3cpath%20d='M16.0466%2047.215C16.4274%2052.9244%2019.2451%2058.2427%2023.662%2061.684L42.4719%2075.1363C42.4719%2075.1363%2030.6681%2057.6952%2020.7681%2040.3324C19.7781%2038.5335%2019.0928%2036.5%2018.7881%2034.3884C18.6358%2033.4498%2018.6358%2032.5113%2018.7881%2031.5728C18.5597%2032.042%2018.0266%2033.0588%2018.0266%2033.0588C17.0366%2035.1705%2016.3512%2037.4386%2015.9705%2039.7849C15.742%2042.2877%2015.742%2044.7904%2016.0466%2047.215Z'%20fill='%23A0A8D4'/%3e%3cpath%20d='M64.0234%2049.5615C63.4141%2048.2319%2061.8911%2045.5728%2061.8911%2045.5728L44.4519%2075.1365L61.5103%2063.0138C62.5003%2062.3099%2063.338%2061.3714%2063.9472%2060.2764C65.4703%2056.9134%2065.5464%2053.0028%2064.0234%2049.5615Z'%20fill='url(%23paint1_linear_119_22392)'/%3e%3cpath%20d='M70.9534%2039.7851C70.5726%2034.0757%2067.7549%2028.7574%2063.338%2025.3161L44.5281%2011.8638C44.5281%2011.8638%2056.3319%2029.3048%2066.2318%2046.6677C67.2218%2048.4665%2067.9072%2050.5%2068.2118%2052.6117C68.3641%2053.5503%2068.3641%2054.4888%2068.2118%2055.4273C68.4403%2054.9581%2068.9734%2053.9413%2068.9734%2053.9413C69.9634%2051.8296%2070.6487%2049.5615%2071.0295%2047.2934C71.1818%2044.7124%2071.1818%2042.2879%2070.9534%2039.7851Z'%20fill='%23A0A8D4'/%3e%3cpath%20d='M23.0535%2026.8021C23.6627%2025.7071%2024.4242%2024.7686%2025.4904%2024.0647L42.4726%2011.8638L25.0335%2041.4275C25.0335%2041.4275%2023.5104%2038.7684%2022.9012%2037.4388C21.4543%2034.0757%2021.4543%2030.1652%2023.0535%2026.8021ZM16.0474%2047.2152C16.4281%2052.9246%2019.2458%2058.2429%2023.6627%2061.6842L42.4726%2075.1365C42.4726%2075.1365%2030.6688%2057.6954%2020.7689%2040.3326C19.7789%2038.5337%2019.0935%2036.5002%2018.7889%2034.3885C18.6366%2033.45%2018.6366%2032.5115%2018.7889%2031.573C18.5604%2032.0422%2018.0273%2033.059%2018.0273%2033.059C17.0373%2035.1707%2016.352%2037.4388%2015.9712%2039.7851C15.7427%2042.2879%2015.7427%2044.7906%2016.0474%2047.2152ZM64.0241%2049.5615C63.4149%2048.2319%2061.8918%2045.5727%2061.8918%2045.5727L44.4526%2075.1365L61.511%2063.0138C62.501%2062.3099%2063.3387%2061.3714%2063.9479%2060.2764C65.471%2056.9133%2065.5472%2053.0028%2064.0241%2049.5615ZM70.8779%2039.8633C70.4972%2034.1539%2067.6795%2028.8356%2063.2626%2025.3943L44.5288%2011.8638C44.5288%2011.8638%2056.3326%2029.3048%2066.2325%2046.6677C67.2225%2048.4665%2067.9079%2050.5%2068.2125%2052.6117C68.3649%2053.5503%2068.3649%2054.4888%2068.2125%2055.4273C68.441%2054.958%2068.9741%2053.9413%2068.9741%2053.9413C69.9641%2051.8296%2070.6495%2049.5615%2071.0302%2047.2934C71.1825%2044.7124%2071.1825%2042.2879%2070.8779%2039.8633Z'%20fill='url(%23paint2_linear_119_22392)'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_119_22392'%20x1='43.265'%20y1='12.6053'%20x2='20.2441'%20y2='36.9051'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.58'%20stop-color='%23A0A8D4'/%3e%3cstop%20offset='0.73'%20stop-color='%238791C7'/%3e%3cstop%20offset='0.91'%20stop-color='%236470B4'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_119_22392'%20x1='43.735'%20y1='74.4471'%20x2='66.7471'%20y2='50.1648'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.58'%20stop-color='%23A0A8D4'/%3e%3cstop%20offset='0.73'%20stop-color='%238791C7'/%3e%3cstop%20offset='0.91'%20stop-color='%236470B4'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_119_22392'%20x1='43.4798'%20y1='11.551'%20x2='43.4798'%20y2='75.3711'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23513EFF'/%3e%3cstop%20offset='0.18'%20stop-color='%235157FF'/%3e%3cstop%20offset='0.57'%20stop-color='%235298FF'/%3e%3cstop%20offset='1'%20stop-color='%2352E5FF'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_119_22392'%3e%3crect%20width='55.3636'%20height='63.2727'%20fill='white'%20transform='translate(15.8181%2011.8638)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e")}.WorldListPage .empty-names-container .empty-title{font-size:24px;font-weight:600;line-height:29px;color:var(--text)}.WorldListPage .empty-names-container .empty-description{font-size:14px;font-weight:500;line-height:24px;color:var(--text);max-width:612px}.WorldListPage .empty-names-container .empty-action{margin-top:40px;width:372px}.WorldListPage .Icon.right-round-arrow{margin-bottom:-2px}.WorldListPage .TableRow .dcl.column.subdomain-wrapper{display:flex;flex:none;flex-direction:row}.WorldListPage .TableRow .empty-url{color:#fffc;font-style:italic}.WorldListPage .TableRow .publish-scene{display:flex;width:100%;justify-content:space-between;align-items:center}.WorldListPage .TableRow .publish-scene span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100px}.WorldListPage .TableRow .publish-scene button{margin-right:20px;width:168px}.WorldListPage .TableRow .world-status.active{color:#34ce76}.WorldListPage .TableRow .world-status.inactive{color:#cfcdd4}.WorldListPage .TableRow .world-status.warning{color:var(--danger)}.WorldListPage .TableRow .world-status.blocked{color:var(--error)}.WorldListPage .ui.pagination{width:100%;display:flex;justify-content:center}.WorldListPage .ui.pagination .item[type=nextItem],.WorldListPage .ui.pagination .item[type=prevItem]{position:absolute;background-color:var(--secondary)}.WorldListPage .ui.pagination .item[type=prevItem]{left:0}.WorldListPage .ui.pagination .item[type=nextItem]{right:0}.WorldListPage .pagination-section{width:100%}.WorldListPage .ui.sub.header.items-count{flex:1 0 auto;text-transform:uppercase;font-size:13px;line-height:18px;font-weight:500}.WorldListPage .actions{display:flex;flex:1 0 auto;align-items:center;justify-content:flex-end;font-size:13px;line-height:18px;text-transform:uppercase}.WorldListPage .actions .ui.button.basic{width:16px;height:16px;box-sizing:content-box;padding:5px 10px;border-radius:4px;border:solid 1px var(--gray)}.WorldListPage .claim-name .Icon{display:block}.WorldListPage .ui.dropdown{margin-right:20px}.WorldListPage .worlds-storage{margin-bottom:24px}.WorldListPage .insufficient-storage-message{display:flex;align-items:center;gap:1rem;background-color:var(--dark-two);border-radius:10px;padding:22px;margin-bottom:24px}
@@ -1 +0,0 @@
1
- import{bv as Re,af as X,Z,H as e,cQ as U,G as l,N as J,cR as _e,a1 as ee,cS as H,M as n,cT as $,cU as ke,cV as L,cB as De,D as o,K as N,aB as se,bC as ye,cW as Pe,cX as he,a4 as me,cY as Ae,bw as E,cZ as Oe,cH as V,c_ as q,c$ as pe,d0 as ge,d1 as oe,d2 as ce,d3 as M,d4 as I,J as de,$ as ue,cD as We,d5 as Be,d6 as Ue,cE as Me,d7 as Ie,c0 as He,d8 as $e,a5 as Fe,ae as ze,d9 as Ke,da as Qe,cI as Ye,X as Q,db as Ge,cJ as Ve,cK as qe,c1 as Xe,dc as Ze}from"./index-BearCfEI.js";import{L as Je}from"./LoggedInDetailPage.container-B2RBWKCs.js";import{N as es}from"./Navigation.container-CNk-oi6a.js";import"./SignInRequired-C_nU0wec.js";import"./selectors-1tqbakPd.js";var T=(s=>(s.DESC="DESC",s.ASC="ASC",s))(T||{});const xe="tab";var c=(s=>(s.DCL="dcl",s.ENS="ens",s.CONTRIBUTOR="contributor",s))(c||{});const Ce=()=>{const s=Re(),a=new URLSearchParams(s.search),r=a.get(xe),m={urlSearchParams:a,pathname:s.pathname};switch(r){case"dcl":m.tab="dcl";break;case"ens":m.tab="ens";break;case"contributor":m.tab="contributor";break}return m},ss=({isWorldContributorEnabled:s})=>{const{tab:a,pathname:r,urlSearchParams:m}=Ce(),u=Z(),p=d=>{const b=new URLSearchParams(m);b.set(xe,d),u.push(`${r}?${b.toString()}`)};return!a||a===c.CONTRIBUTOR&&!s?(p(c.DCL),null):e.jsxs(U,{children:[e.jsx(U.Tab,{active:a===c.DCL,onClick:()=>p(c.DCL),children:l("worlds_list_page.name_tabs.dcl_names")}),e.jsx(U.Tab,{active:a===c.ENS,onClick:()=>p(c.ENS),children:l("worlds_list_page.name_tabs.ens_names")}),s&&e.jsx(U.Tab,{active:a===c.CONTRIBUTOR,onClick:()=>p(c.CONTRIBUTOR),children:l("worlds_list_page.name_tabs.contributor_names")})]})},ns=X.memo(ss),as=s=>({isWorldContributorEnabled:_e(s)}),ls=J(as)(ns),ts="_container_12bci_1",rs="_used_12bci_7",is="_description_12bci_13",os="_link_12bci_20",cs="_space_12bci_27",ds="_current_12bci_33",us="_bar_12bci_38",w={container:ts,used:rs,description:is,link:os,space:cs,current:ds,bar:us},bs="worlds-storage-current-mbs",_s="worlds-storage-bar-front",hs="worlds-storage",ms=({maxBytes:s,currentBytes:a,className:r,onViewDetails:m})=>{const u=$(s),p=$(a),d=p*100/u;return e.jsxs("div",{"data-testid":hs,className:ee(w.container,r),children:[e.jsx("span",{className:w.used,children:l("worlds_list_page.worlds_storage.used")}),e.jsxs("div",{className:w.description,children:[e.jsx("span",{children:l("worlds_list_page.worlds_storage.description")})," ",e.jsx("span",{className:w.link,onClick:m,children:l("worlds_list_page.worlds_storage.link")})]}),e.jsxs("div",{className:w.space,children:[e.jsxs("div",{"data-testid":bs,children:[e.jsx("span",{className:w.current,children:H(p)})," / ",H(u)," Mb"]}),e.jsx(n.Progress,{"data-testid":_s,percent:Math.trunc(d),className:w.bar,size:"small"})]})]})},ps=X.memo(ms),gs="_worldUrl_1sb6i_1",xs="_rightContainer_1sb6i_7",Cs="_copyUrn_1sb6i_13",Y={worldUrl:gs,rightContainer:xs,copyUrn:Cs};function je({ens:s,deploymentsByWorlds:a}){const r=ke(s.subdomain);return L(a,s)?e.jsxs("div",{className:Y.worldUrl,children:[e.jsx("span",{children:r}),e.jsxs("div",{className:Y.rightContainer,children:[e.jsx(De,{role:"button",text:r,showPopup:!0,children:e.jsx(n.Icon,{"aria-label":"Copy urn","aria-hidden":"false",className:ee("copy",Y.copyUrn),name:"copy outline"})}),e.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",children:e.jsx(n.Icon,{name:"external alternate"})})]})]}):e.jsx("span",{className:"empty-url",children:l("worlds_list_page.table.empty_url")})}function we({deploymentsByWorlds:s,ens:a,projects:r,onEditScene:m,onUnpublishScene:u,onPublishScene:p}){const d=s[a.subdomain];return L(s,a)?e.jsxs("div",{className:"publish-scene",children:[e.jsx(n.Popup,{content:d==null?void 0:d.name,on:"hover",trigger:e.jsx("span",{children:d==null?void 0:d.name})}),r.find(b=>b.id===(d==null?void 0:d.projectId))?m&&e.jsx(n.Button,{inverted:!0,size:"small",onClick:()=>m(a),children:l("worlds_list_page.table.edit_scene")}):u&&e.jsx(n.Popup,{content:l("worlds_list_page.table.scene_published_outside_builder"),on:"hover",position:"top center",trigger:e.jsx(n.Button,{inverted:!0,size:"small",onClick:()=>u(a),children:l("worlds_list_page.table.unpublish_scene")})})]}):e.jsxs("div",{className:"publish-scene",children:[e.jsx("span",{children:"-"}),p&&e.jsx(n.Button,{primary:!0,size:"small",onClick:p,children:l("worlds_list_page.table.publish_scene")})]})}function js({items:s,deploymentsByWorlds:a,projects:r,loading:m,error:u,onUnpublishWorld:p}){const d=Z(),b=o.useCallback(()=>{d.push(N.scenes())},[d]),f=o.useCallback(h=>{const{projectId:x}=a[h.subdomain];d.push(N.sceneDetail(x))},[a,N,d]),S=o.useCallback(h=>{var C;const x=(C=a[h.subdomain])==null?void 0:C.id;x&&p(x)},[a,p]);return u?e.jsx(n.Message,{error:!0,size:"tiny",visible:!0,content:u.message,header:l("worlds_list_page.error_title")}):m?e.jsx(n.Loader,{active:!0,size:"big"}):s.length?e.jsxs(n.Table,{basic:"very",children:[e.jsx(n.Table.Header,{children:e.jsxs(n.Table.Row,{children:[e.jsx(n.Table.HeaderCell,{width:"1",children:l("worlds_list_page.table.name")}),e.jsx(n.Table.HeaderCell,{width:"1",children:l("worlds_list_page.table.owner")}),e.jsx(n.Table.HeaderCell,{width:"2",children:l("worlds_list_page.table.url")}),e.jsx(n.Table.HeaderCell,{width:"1",children:l("worlds_list_page.table.published_scene")}),e.jsx(n.Table.HeaderCell,{width:"1",children:l("worlds_list_page.table.size")}),e.jsx(n.Table.HeaderCell,{width:"1",children:l("worlds_list_page.table.permissions")})]})}),e.jsx(n.Table.Body,{children:s.map((h,x)=>{var R,k;const C=(R=h.userPermissions)==null?void 0:R.includes("deployment"),v=(k=h.userPermissions)==null?void 0:k.map(D=>l(`worlds_list_page.table.user_permissions.${D}`)).join("/");return e.jsxs(n.Table.Row,{className:"TableRow",children:[e.jsx(n.Table.Cell,{width:1,children:h.name}),e.jsx(n.Table.Cell,{width:1,children:e.jsx(ye,{address:h.nftOwnerAddress||""})}),e.jsx(n.Table.Cell,{width:2,children:e.jsx(je,{deploymentsByWorlds:a,ens:h})}),e.jsx(n.Table.Cell,{width:1,children:e.jsx(we,{deploymentsByWorlds:a,ens:h,projects:r,onEditScene:C?f:void 0,onPublishScene:C?b:void 0,onUnpublishScene:C?S:void 0})}),e.jsx(n.Table.Cell,{width:1,children:H($(Number(h.size)||0))}),e.jsx(n.Table.Cell,{width:1,children:v})]},x)})})]}):e.jsxs(n.Empty,{className:"empty-names-container",height:500,children:[e.jsx("div",{className:"empty-icon dcl-icon"}),e.jsx("div",{className:"empty-title",children:l("worlds_list_page.empty_contributor_list.title")}),e.jsx("div",{className:"empty-description",children:l("worlds_list_page.empty_contributor_list.description",{b:h=>e.jsx("b",{children:h})})}),e.jsx(n.Button,{as:"a",href:`${se.get("MARKETPLACE_WEB_URL")}/names/claim`,target:"_blank",className:"empty-action",primary:!0,children:l("worlds_list_page.empty_list.cta")})]})}const ws=s=>({items:Pe(s),deploymentsByWorlds:he(s),projects:me(s),error:Ae(s),loading:E(V(s),Oe)||E(pe(s),q)}),Es=s=>({onUnpublishWorld:a=>s(ge(a))}),Ns=J(ws,Es)(js),be="Worlds List Page Action",Ss=se.get("ENS_DOMAINS_URL",""),Ts=se.get("MARKETPLACE_WEB_URL"),G=12,Ls=s=>{const{ensList:a,externalNames:r,error:m,deploymentsByWorlds:u,isLoading:p,projects:d,worldsWalletStats:b,isConnected:f,isWorldContributorEnabled:S,ensTotal:h,onOpenYourStorageModal:x,onOpenWorldsForENSOwnersAnnouncementModal:C,onUnpublishWorld:v,onOpenPermissionsModal:R,onFetchContributableNames:k,onFetchENSList:D}=s,[ne,y]=o.useState(T.DESC),[F,z]=o.useState(1),{tab:_}=Ce(),P=Z();o.useEffect(()=>{f&&S&&k()},[f,S]),o.useEffect(()=>{_===c.DCL&&D(G,(F-1)*G)},[D,F]);const A=o.useCallback(()=>{_===c.DCL?(oe(be,{action:"Click Claim NAME"}),window.open(`${Ts}/names/claim`,"_blank","noopener,noreferrer")):(oe(be,{action:"Click Claim ENS Domain"}),window.open(Ss,"_blank","noopener,noreferrer"))},[_]),Ee=o.useCallback(()=>{P.push(N.scenes())},[N,P]),Ne=o.useCallback(i=>{const{projectId:t}=u[i.subdomain];P.push(N.sceneDetail(t))},[u,N,P]),Se=o.useCallback(i=>{var g;const t=(g=u[i.subdomain])==null?void 0:g.id;t&&v(t)},[u,v]),ae=o.useCallback((i,t)=>{z(+t.activePage)},[]),le=o.useCallback(()=>e.jsx(n.Dropdown,{direction:"left",value:ne,options:[{value:T.ASC,text:l("global.order.name_asc")},{value:T.DESC,text:l("global.order.name_desc")}],onChange:(i,{value:t})=>y(t)}),[ne,y]),te=o.useCallback(i=>{let t=L(u,i)?"active":"inactive";if(t==="active"&&b&&!ce(i.subdomain))switch(M(b).status){case I.BLOCKED:{t="blocked";break}case I.TO_BE_BLOCKED:t="warning"}return e.jsx("span",{className:`world-status ${t}`,children:l(`worlds_list_page.table.status_${t}`)})},[M,ce,L]),re=o.useCallback((i,t)=>{var B;const g=_===c.DCL?t==null?void 0:t.dclNames:t==null?void 0:t.ensNames;if(!L(u,i)||!g)return"-";const j=(B=g.find(ve=>ve.name===i.subdomain))==null?void 0:B.size,K=_===c.ENS?" / 25":"";return H($(Number(j)))+K},[_]),Te=o.useCallback((i,t)=>{R(t)},[]),O=o.useCallback(()=>{const i=_===c.DCL?h:r.length,t=Math.ceil(i/G),g=_===c.DCL?a:r;return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"filters",children:e.jsx(n.Container,{children:e.jsxs(n.Row,{children:[e.jsx(n.Column,{children:e.jsx(n.Row,{children:e.jsx(n.Header,{sub:!0,className:"items-count",children:l("ens_list_page.items",{count:s.ensTotal.toLocaleString()})})})}),e.jsx(n.Column,{align:"right",children:e.jsx(n.Row,{children:le()})}),e.jsx(n.Column,{align:"right",grow:!1,shrink:!0,children:e.jsx(n.Row,{children:e.jsx("div",{className:"actions",children:e.jsx(n.Button,{basic:!0,onClick:A,children:e.jsx(de,{name:"add-active"})})})})})]})})}),e.jsx(n.Container,{children:e.jsxs(n.Section,{className:"table-section",children:[e.jsxs(n.Table,{basic:"very",children:[e.jsx(n.Table.Header,{children:e.jsxs(n.Table.Row,{children:[e.jsx(n.Table.HeaderCell,{width:"2",children:l("worlds_list_page.table.name")}),e.jsx(n.Table.HeaderCell,{width:"2",children:l("worlds_list_page.table.url")}),e.jsx(n.Table.HeaderCell,{width:"1",children:l("worlds_list_page.table.published_scene")}),e.jsx(n.Table.HeaderCell,{width:"1",textAlign:"center",children:l("worlds_list_page.table.size")}),e.jsx(n.Table.HeaderCell,{width:"1",textAlign:"center",children:l("worlds_list_page.table.status")}),e.jsx(n.Table.HeaderCell,{width:"1",textAlign:"center"})]})}),e.jsx(n.Table.Body,{children:g.map((j,K)=>e.jsxs(n.Table.Row,{className:"TableRow",children:[e.jsx(n.Table.Cell,{width:2,children:j.name}),e.jsx(n.Table.Cell,{width:2,children:e.jsx(je,{deploymentsByWorlds:u,ens:j})}),e.jsx(n.Table.Cell,{width:1,children:e.jsx(we,{deploymentsByWorlds:u,ens:j,projects:d,onEditScene:Ne,onPublishScene:Ee,onUnpublishScene:Se})}),e.jsx(n.Table.Cell,{width:1,textAlign:"center",children:re(j,b)}),e.jsx(n.Table.Cell,{width:1,textAlign:"center",children:te(j)}),e.jsx(n.Table.Cell,{width:1,textAlign:"center",children:e.jsx(n.Button,{basic:!0,onClick:B=>Te(B,j.subdomain),children:"Permissions"})})]},K))})]}),t>1&&e.jsx(n.Pagination,{firstItem:null,lastItem:null,totalPages:t,activePage:F,onPageChange:ae})]})})]})},[_,a,r,A,le,re,te,ae,h]),W=o.useCallback(()=>e.jsxs(n.Empty,{className:"empty-names-container",height:500,children:[e.jsx("div",{className:ee("empty-icon",_===c.DCL?"dcl-icon":"ens-icon")}),e.jsx("div",{className:"empty-title",children:_===c.DCL?l("worlds_list_page.empty_list.title"):l("worlds_list_page.empty_list.title_ens")}),e.jsx("div",{className:"empty-description",children:_===c.DCL?l("worlds_list_page.empty_list.description",{b:i=>e.jsx("b",{children:i})}):l("worlds_list_page.empty_list.description_ens",{b:i=>e.jsx("b",{children:i})})}),e.jsx(n.Button,{className:"empty-action",primary:!0,onClick:A,children:_===c.DCL?l("worlds_list_page.empty_list.cta"):l("worlds_list_page.empty_list.cta_ens")})]}),[_,A]),ie=o.useCallback(()=>{if(!b)return null;const i=M(b);if(i.status===I.OK)return null;let t;return i.status===I.TO_BE_BLOCKED?t=l("worlds_list_page.worlds_warning_message.to_be_blocked",{toBeBlockedAt:i.toBeBlockedAt.toLocaleDateString(),b:g=>e.jsx("b",{children:g})}):t=l("worlds_list_page.worlds_warning_message.blocked",{blockedAt:i.blockedAt.toLocaleDateString(),b:g=>e.jsx("b",{children:g})}),e.jsxs("div",{className:"insufficient-storage-message",children:[e.jsx("div",{children:e.jsx(de,{name:"alert-warning"})}),e.jsx("div",{children:t})]})},[b,M]),Le=o.useCallback(()=>a.length?e.jsxs("div",{children:[b?e.jsx(ps,{maxBytes:Number(b.maxAllowedSpace),currentBytes:Number(b.usedSpace),className:"worlds-storage",onViewDetails:()=>{x({stats:b})}}):null,ie(),O()]}):e.jsx("div",{children:W()}),[a,b,O,W,ie,x]),fe=o.useCallback(()=>e.jsx("div",{children:r.length>0?O():W()}),[r,W,O]);return o.useEffect(()=>{y(T.ASC),z(1)},[_,z,y]),o.useEffect(()=>{ue()&&C()},[ue,C]),e.jsx(Je,{className:"WorldListPage view",error:m,activeTab:es.WORLDS,isLoading:p,isPageFullscreen:!0,children:e.jsxs(n.Container,{children:[e.jsx("h1",{children:l("worlds_list_page.title")}),e.jsx(ls,{}),_===c.DCL&&Le(),_===c.ENS&&fe(),_===c.CONTRIBUTOR&&S&&e.jsx(Ns,{})]})})},fs=X.memo(Ls),vs=s=>{var a;return{ensList:We(s),externalNames:Be(s),deploymentsByWorlds:he(s),projects:me(s),worldsPermissions:Ue(s),error:((a=Me(s))==null?void 0:a.message)??Ie(s)??void 0,isLoading:E(V(s),qe)||E(pe(s),q)||E(He(s),Xe)||E($e(s),q)||E(V(s),Ze)||Fe(s),isLoggedIn:ze(s),worldsWalletStats:Ke(s),isConnected:Qe(s),isWorldContributorEnabled:_e(s),ensTotal:Ye(s)}},Rs=s=>({onOpenYourStorageModal:a=>s(Q("WorldsYourStorageModal",a)),onOpenPermissionsModal:(a,r)=>s(Q("WorldPermissionsModal",{worldName:a,isCollaboratorsTabShown:r})),onOpenWorldsForENSOwnersAnnouncementModal:()=>s(Q("WorldsForENSOwnersAnnouncementModal")),onUnpublishWorld:a=>s(ge(a)),onFetchContributableNames:()=>s(Ge()),onFetchENSList:(a,r)=>s(Ve(a,r))}),Os=J(vs,Rs)(fs);export{Os as default};
@@ -1 +0,0 @@
1
- import{af as b,Z as k,bk as T,D as i,K as C,H as e,ah as f,M as s,aj as w,G as l,N as D,hO as S,hM as L,O as E,bw as P,b3 as M,X as R,Y as v,Q as F,em as y}from"./index-BearCfEI.js";import{N as H}from"./NotFound-Dbd8gZSK.js";const I=n=>{const{template:a,isLoading:t,scene:c,onOpenModal:r,onLoadTemplateScene:m}=n,u=k(),o=T(),d=i.useMemo(()=>({id:a==null?void 0:a.id,name:a==null?void 0:a.title,description:a==null?void 0:a.description}),[a]);i.useEffect(()=>{a&&!c&&m(a)},[a,c,m]);const x=()=>e.jsx(s.Center,{children:e.jsx(s.Loader,{active:!0,size:"large"})}),j=()=>e.jsx(H,{}),h=i.useCallback(()=>{o==null||o.track("Download Template",d),r("ExportModal",{project:a})},[o,a,d,r]),g=i.useCallback(()=>{u.push(C.templates())},[u]),_=i.useCallback(()=>{a&&(o==null||o.track("Select Template",d),r("CloneTemplateModal",{template:a}))},[o,a,d,r]),N=p=>e.jsxs(e.Fragment,{children:[e.jsx(s.Section,{size:"large",children:e.jsx(s.Row,{children:e.jsx(s.Column,{children:e.jsx(s.Row,{children:e.jsxs("div",{className:"title-container",children:[e.jsx(s.Button,{className:"back-button",basic:!0,icon:e.jsx(s.Icon,{name:"arrow alternate circle left outline"}),onClick:g,"aria-label":l("templates_page.back_to_scenes")}),e.jsx(s.Header,{className:"name",children:p.title})]})})})})}),e.jsx(s.Section,{children:e.jsx("div",{className:"header-image",style:{backgroundImage:`url(${p.thumbnail})`}})}),e.jsxs(s.Section,{children:[e.jsxs(s.Row,{className:"content info-container",children:[e.jsxs(s.Column,{className:"creator-container",children:[e.jsx(s.Header,{children:l("template_detail_page.creator")}),e.jsxs("p",{className:"description-content",children:[e.jsx(s.Logo,{})," Decentraland",e.jsx("br",{}),"Foundation"]})]}),e.jsxs(s.Column,{className:"description-container",children:[e.jsx(s.Header,{children:l("template_detail_page.description")}),e.jsx("p",{className:"description-content",children:p.description})]}),e.jsxs(s.Column,{className:"action-buttons-container",children:[e.jsx(s.Button,{primary:!0,className:"select-button",onClick:_,children:l("template_detail_page.select_template")}),e.jsx(s.Button,{inverted:!0,className:"download-button",onClick:h,children:l("template_detail_page.download_scene")})]})]}),e.jsx(s.Row,{className:"content",children:e.jsxs(s.Column,{className:"scene-details-container",children:[e.jsx(s.Header,{children:l("template_detail_page.scene_details")}),e.jsx("p",{className:"description-content world",children:l("template_detail_page.built_for_world")}),e.jsx("p",{className:"description-content size-scene",children:l("template_detail_page.parcels",{...p.layout})}),e.jsx("p",{className:"description-content personalize-content",children:l("template_detail_page.personalize_it_yourself")}),c&&e.jsx("p",{className:"description-content sdk",children:c!=null&&c.sdk6?"SDK 6":"SDK 7"})]})})]})]});return e.jsxs(e.Fragment,{children:[e.jsx(f,{}),e.jsxs(s.Page,{className:"TemplateDetailPage",isFullscreen:!0,children:[t&&!a?x():null,!t&&!a?j():null,a?N(a):null]}),e.jsx(w,{})]})},O=b.memo(I),z=n=>{const a=S(n),t=a&&L(n)[a],c=t?E(n)[t.sceneId]:null;return{template:t||null,scene:c,isLoading:P(M(n),y)}},B=n=>({onOpenModal:(a,t)=>n(R(a,t)),onLoadTemplateScene:a=>n(v(a,F.TEMPLATE))}),$=D(z,B)(O);export{$ as default};