@dcl/builder-site 7.17.0 → 7.17.1-19665485717.commit-62c4593

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 (84) hide show
  1. package/assets/{Back-CncB3o4T.js → Back-BYSQbKgv.js} +1 -1
  2. package/assets/{CollectionProvider.container-CD3TWvFB.js → CollectionProvider.container-BLrdFsDk.js} +1 -1
  3. package/assets/{CollectionStatus.container-BPchWQUD.js → CollectionStatus.container-DbUGIXyo.js} +1 -1
  4. package/assets/{ConfirmDelete-BvGTAe45.js → ConfirmDelete-BW2RwuzQ.js} +1 -1
  5. package/assets/{FileSaver.min-Dg7bIGCI.js → FileSaver.min-Bc4J6Zl_.js} +1 -1
  6. package/assets/{ItemProvider.container-QONgvAiC.js → ItemProvider.container-BqJb4rtJ.js} +2 -2
  7. package/assets/{JumpIn.container-AE58qhmT.js → JumpIn.container-UEpaqsc9.js} +1 -1
  8. package/assets/{LandAction-Bo3Q-UiE.js → LandAction-U4Bn5_Gk.js} +1 -1
  9. package/assets/{LandProviderPage-BtxZ9fV8.js → LandProviderPage-Bbu5ui2b.js} +1 -1
  10. package/assets/{LoggedInDetailPage.container-CsvKBMuj.js → LoggedInDetailPage.container-Dp65JdFz.js} +1 -1
  11. package/assets/{Navigation-Bt17L3k8.css → Navigation-Di5OS5LS.css} +1 -1
  12. package/assets/{Navigation.container-Uoa9cAN5.js → Navigation.container-BYylJCxT.js} +1 -1
  13. package/assets/{NotFound-4sT-K9SU.js → NotFound-2BVxtvD7.js} +1 -1
  14. package/assets/{OptionsDropdown-CKwEKh_m.js → OptionsDropdown-14CoqoGx.js} +1 -1
  15. package/assets/{RentalPeriod-S_0N5yaP.js → RentalPeriod-DKDcS0Fs.js} +1 -1
  16. package/assets/{SDKTag-C-O7sptA.js → SDKTag-BqUgYK7u.js} +1 -1
  17. package/assets/{SceneStats.container-Dh-TTGFp.js → SceneStats.container-Ds8tChtm.js} +1 -1
  18. package/assets/{SignInRequired-BIpJsBqT.js → SignInRequired-h3oN0Zc4.js} +1 -1
  19. package/assets/{ThirdPartyKindBadge-BN8ggssH.js → ThirdPartyKindBadge-Uz7XsHUz.js} +1 -1
  20. package/assets/{dataReader-DJcrOVif.js → dataReader-DjAD-DBm.js} +1 -1
  21. package/assets/{date-CZsUie1B.js → date-Bzm8zmJv.js} +1 -1
  22. package/assets/{fortmatic-CYvj3-Jb.js → fortmatic-D0N0g--v.js} +1 -1
  23. package/assets/{hooks-DXNgH_m2.js → hooks-CPkpImRF.js} +1 -1
  24. package/assets/index-6BJo8GQN.css +1 -0
  25. package/assets/{index-CBtGoL1F.js → index-9Lv1489c.js} +1 -1
  26. package/assets/{index-CixSQqWW.js → index-AVliSVYt.js} +1 -1
  27. package/assets/{index-EXCDxiHh.js → index-B1e5FfwM.js} +1 -1
  28. package/assets/{index-ONTdrfoq.js → index-B4EEO1B2.js} +1 -1
  29. package/assets/index-BAuoz4Mg.css +1 -0
  30. package/assets/{index-q0Hp3cUL.js → index-BFuqM4_I.js} +1 -1
  31. package/assets/{index-Da5K-OVa.js → index-BToo-KQd.js} +1 -1
  32. package/assets/{index-Bvxiv59-.js → index-BUKWgzJO.js} +1 -1
  33. package/assets/{index-C5iQL77p.js → index-BVPeyjaX.js} +1 -1
  34. package/assets/{index-G5g_lqVY.css → index-BZRG97Xv.css} +1 -1
  35. package/assets/{index-CMgHsYV6.js → index-Bdnj5rZH.js} +1 -1
  36. package/assets/{index-BRw7dj1X.js → index-BeJGgcZy.js} +1 -1
  37. package/assets/{index-DkdR6D1n.js → index-BhiZTtvk.js} +1 -1
  38. package/assets/{index-DilEbCYA.js → index-BkuD7JTk.js} +1 -1
  39. package/assets/{index-BRLowEIM.js → index-BoMQiC-C.js} +1 -1
  40. package/assets/{index-m2Cs5HA_.js → index-C-Z1LW-G.js} +1 -1
  41. package/assets/{index-CGMgDr0o.js → index-CP6ZaMvl.js} +1 -1
  42. package/assets/{index-Bj_YcMD7.js → index-CSsAt7Aa.js} +1 -1
  43. package/assets/{index-Cg_PYXls.js → index-CiwoXCa5.js} +1 -1
  44. package/assets/{index-D5UYQxDV.js → index-Crd8carq.js} +1 -1
  45. package/assets/{index-ByLmQ-CK.js → index-Cz7dPT7S.js} +1 -1
  46. package/assets/{index-MzNAR7ES.js → index-D7YYkSOL.js} +1 -1
  47. package/assets/{index-D84ioOJ4.js → index-D9BkYU5y.js} +1 -1
  48. package/assets/index-DFPABN1Z.css +1 -0
  49. package/assets/{index-BcJ8MhYC.js → index-DHYWV3bH.js} +24 -24
  50. package/assets/{index-Cnr1P3Xj.js → index-DHsQ4tUC.js} +1 -1
  51. package/assets/index-DIufDzmN.js +1 -0
  52. package/assets/{index-Dl1hLSOh.css → index-DPNCS2Ok.css} +1 -1
  53. package/assets/{index-DQl3Ihkd.js → index-DUHy5etq.js} +1 -1
  54. package/assets/index-DULbKNvA.js +1 -0
  55. package/assets/{index-CPknQw8k.js → index-DZrnlbEd.js} +1 -1
  56. package/assets/{index-B90FxvBn.js → index-D_EnRUgC.js} +1 -1
  57. package/assets/{index-Cwwvy4BS.js → index-DmxtZPx_.js} +1 -1
  58. package/assets/{index-uqyPr3xj.js → index-DrEEHvIL.js} +1 -1
  59. package/assets/{index-DDtHVlhA.js → index-DyUUHiq1.js} +1 -1
  60. package/assets/index-DzcTshUU.js +1 -0
  61. package/assets/{index-BcjjfgH-.js → index-DzioqhSp.js} +1 -1
  62. package/assets/{index-BM_phcrK.js → index-Jc6EGrXD.js} +1 -1
  63. package/assets/{index-CN86XliR.js → index-P1aQ78yQ.js} +1 -1
  64. package/assets/{index-Cubp4xIl.js → index-Pf6-B5St.js} +1 -1
  65. package/assets/{index-B_smWDsS.js → index-T44Le_OO.js} +1 -1
  66. package/assets/index-bjBYhEFt.js +2 -0
  67. package/assets/index-cQzNECyZ.css +1 -0
  68. package/assets/{index-CpibsF0Z.js → index-co3Ia-l5.js} +1 -1
  69. package/assets/{index-CXbpVbSz.js → index-kBiuP__c.js} +1 -1
  70. package/assets/{index-BWdryV1d.js → index-tScP6_CS.js} +1 -1
  71. package/assets/{index-bzHqEpBm.css → index-z8fIJzxE.css} +7 -7
  72. package/assets/{index-CtRxWoCW.js → index-zmAi8p_P.js} +1 -1
  73. package/assets/{index.es-D5ysKyju.js → index.es-iO2GJHgp.js} +4 -4
  74. package/assets/{selectors-DHi87VFf.js → selectors-BWYCilYH.js} +1 -1
  75. package/index.html +3 -3
  76. package/package.json +3 -3
  77. package/assets/index-B2Xzk_Ov.css +0 -1
  78. package/assets/index-Bd-Yq1oE.js +0 -1
  79. package/assets/index-CPJuM5bC.js +0 -1
  80. package/assets/index-CdWcLYVd.js +0 -1
  81. package/assets/index-ChRpi1rW.js +0 -2
  82. package/assets/index-CuNxZfi7.css +0 -1
  83. package/assets/index-DOu2R82n.css +0 -1
  84. package/assets/index-DrKQAU9n.css +0 -1
@@ -1 +1 @@
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{J as f,co as g,N as e,bR as p,M as i,b6 as u,S as l,cp as j,Q as b,R as v,cq as L,bW as T,aR as R,T as w,cr as E}from"./index-BcJ8MhYC.js";import{L as N}from"./LandAction-Bo3Q-UiE.js";import{L as _}from"./LandProviderPage-BtxZ9fV8.js";import"./Back-CncB3o4T.js";import"./NotFound-4sT-K9SU.js";import"./hooks-DXNgH_m2.js";let P=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(_,{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(N,{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(j,{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(b,{className:"cancel",to:v.landDetail(n.id),children:e.jsx(l.Button,{children:i("global.cancel")})}),e.jsx(L,{type:"submit",primary:!0,disabled:!r||!o||n.role!==T.OWNER||p(n.owner,r),network:R.Network.ETHEREUM,children:i("global.submit")})]})]})})}})}};const V=t=>({onTransfer:(s,a)=>t(E(s,a))}),F=w(void 0,V)(P);export{F as default};
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{J as f,co as g,N as e,bR as p,M as i,b6 as u,S as l,cp as j,Q as b,R as v,cq as L,bW as T,aR as R,T as w,cr as E}from"./index-DHYWV3bH.js";import{L as N}from"./LandAction-U4Bn5_Gk.js";import{L as _}from"./LandProviderPage-Bbu5ui2b.js";import"./Back-BYSQbKgv.js";import"./NotFound-2BVxtvD7.js";import"./hooks-CPkpImRF.js";let P=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(_,{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(N,{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(j,{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(b,{className:"cancel",to:v.landDetail(n.id),children:e.jsx(l.Button,{children:i("global.cancel")})}),e.jsx(L,{type:"submit",primary:!0,disabled:!r||!o||n.role!==T.OWNER||p(n.owner,r),network:R.Network.ETHEREUM,children:i("global.submit")})]})]})})}})}};const V=t=>({onTransfer:(s,a)=>t(E(s,a))}),F=w(void 0,V)(P);export{F as default};
@@ -0,0 +1 @@
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.17.1-19665485717.commit-62c4593/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 +1 @@
1
- import{ak as N,N as s,a7 as P,M as x,dJ as k,S as l,dK as v,dL as H,J as j,bP as y,cf as w,bO as B,bQ as _,dM as z,dN as $,dO as F,b6 as i,Q as S,R as h,dP as K,dQ as V,dR as Q,dS as G,dT as J,dU as Y,dV as W,dW as A,dX as q,dY as f,dZ as X,d_ as Z,d$ as b,e0 as L,e1 as R,e2 as O,e3 as ss,e4 as es,e5 as as,e6 as ts,e7 as ns,e8 as is,e9 as cs,ea as os,eb as rs,ec as ls,ed as D,ee as M,ef as U,am as ds,ao as ms,T as xs,aj as us,aM as _s,eg as js,eh as Ss}from"./index-BcJ8MhYC.js";import{b as hs}from"./Navigation.container-Uoa9cAN5.js";import{S as Cs}from"./SignInRequired-BIpJsBqT.js";import{a as Es}from"./date-CZsUie1B.js";import"./selectors-DHi87VFf.js";import"./index-MzNAR7ES.js";const ps="_ensImage_er26d_1",gs="_name_er26d_15",Ns="_small_er26d_23",I={ensImage:ps,name:gs,small:Ns};class Ts extends N.PureComponent{render(){const{subdomain:a,isSmall:e}=this.props;return s.jsx("div",{className:P(I.ensImage,{[I.small]:e}),children:s.jsx("div",{className:I.name,children:a.slice(0,2)})})}}const vs=c=>{const a=c.replacedBy||c.hash;return a?H({txHash:a},c.chainId):""},ys=c=>{const{selection:a,address:e,collectionId:t,item:n,subdomain:r,slotsToyBuy:d}=c,u=j.useMemo(()=>new Set((a||[]).map(C=>y(C.x,C.y))),[a]),E=j.useCallback((C,T)=>u.has(y(C,T))?{color:"#ff0044",scale:1.4}:null,[u]),p=j.useCallback((C,T)=>u.has(y(C,T))?{color:"#ff9990",scale:1.2}:null,[u]),[m,g]=j.useMemo(()=>a?w(a):[0,0],[a]);return a?s.jsx(B,{x:m,y:g,layers:[E,p],width:48,height:48,size:9,isDraggable:!1}):e?s.jsx(_,{address:e,size:"huge",imageOnly:!0}):t?s.jsx(z,{collectionId:t}):n?s.jsx($,{item:n}):r?s.jsx(Ts,{subdomain:r,isSmall:!0}):d?s.jsx("div",{className:"slot-image"}):null},Is=c=>{const{text:a,tx:e}=c;return s.jsxs("div",{className:"TransactionDetail",children:[s.jsxs("div",{className:"left",children:[s.jsx("div",{className:"image",children:s.jsx(ys,{...c})}),s.jsxs("div",{className:"text",children:[s.jsx("div",{className:"description",children:a}),s.jsxs("div",{className:"timestamp",children:[Es(e.timestamp),"."]})]})]}),s.jsx("div",{className:"right",children:s.jsxs("a",{href:vs(e),className:e.status?"status "+e.status:"status",target:"_blank",rel:"noopener noreferrer",children:[s.jsx("div",{className:"description",children:e.status||x("global.loading")}),k(e.status)?s.jsx("div",{className:"spinner",children:s.jsx(l.Loader,{active:!0,size:"mini"})}):null,e.status===v.REVERTED?s.jsx(l.Icon,{name:"warning sign"}):null,e.status===v.CONFIRMED||e.status===v.REPLACED?s.jsx(l.Icon,{name:"check"}):null]})})]})},o=N.memo(Is),As=c=>{const{tx:a}=c;switch(a.actionType){case M:case ls:{const{authorization:e}=a.payload,t=D(e.authorizedAddress),n=D(e.contractAddress),r=a.actionType===M?x("transaction.approved"):x("transaction.unapproved");return s.jsx(o,{address:e.address,text:s.jsx(i,{id:"transaction.approve_token",values:{action:r,contract:s.jsx(U,{chainId:e.chainId,address:e.authorizedAddress,txHash:"",children:t}),token:s.jsx(U,{chainId:e.chainId,address:e.contractAddress,txHash:"",children:n})}}),tx:a})}case rs:{const{name:e,address:t,selection:n}=a.payload;return s.jsx(o,{selection:n,text:s.jsx(i,{id:"transaction.transfer",values:{name:s.jsx("strong",{children:e}),address:s.jsx(_,{address:t})}}),tx:a})}case os:{const{name:e,selection:t}=a.payload;return s.jsx(o,{selection:t,text:s.jsx(i,{id:"transaction.edit",values:{name:s.jsx("strong",{children:e})}}),tx:a})}case cs:{const{name:e,address:t,selection:n}=a.payload;return s.jsx(o,{selection:n,text:s.jsx(i,{id:t?"transaction.set_operator_assigned":"transaction.set_operator_revoked",values:{name:s.jsx("strong",{children:e}),address:s.jsx(_,{address:t})}}),tx:a})}case is:{const{name:e,selection:t}=a.payload;return s.jsx(o,{selection:t,text:s.jsx(i,{id:"transaction.create_estate",values:{name:s.jsx("strong",{children:e})}}),tx:a})}case ns:{const{name:e,count:t,type:n,selection:r}=a.payload;return s.jsx(o,{selection:r,text:s.jsx(i,{id:`transaction.edit_estate_${n}`,values:{name:s.jsx("strong",{children:e}),count:t}}),tx:a})}case ts:{const{name:e,selection:t}=a.payload;return s.jsx(o,{selection:t,text:s.jsx(i,{id:"transaction.dissolve_estate",values:{name:s.jsx("strong",{children:e})}}),tx:a})}case as:{const{address:e,type:t,isApproved:n}=a.payload;return s.jsx(o,{address:e,text:s.jsx(i,{id:n?"transaction.set_manager_assigned":"transaction.set_manager_revoked",values:{address:s.jsx(_,{address:e,textOnly:!0}),type:x(`global.${t}_plural`)}}),tx:a})}case es:{const{item:e}=a.payload;return s.jsx(o,{item:e,text:s.jsx(i,{id:"transaction.set_price_and_beneficiary",values:{name:s.jsx(S,{to:h.itemDetail(e.id),children:e.name})}}),tx:a})}case ss:{const{thirdPartyId:e,thirdPartyName:t}=a.payload;return s.jsx(o,{thirdPartyId:e,text:s.jsx(i,{id:"transaction.disable_third_party",values:{name:t}}),tx:a})}case L:case R:case O:case b:{const{collection:e}=a.payload,t={[L]:"collection_published",[R]:"collection_approved",[O]:"collection_rejected",[b]:"updated_collection_managers"}[a.actionType];return s.jsx(o,{collectionId:e.id,text:s.jsx(i,{id:`transaction.${t}`,values:{name:s.jsx(S,{to:h.collectionDetail(e.id),children:e.name})}}),tx:a})}case X:{const{collection:e,mints:t}=a.payload,n=t.length===1,r=t[0].item,d=n?{item:r}:{collection:e};return s.jsx(o,{...d,text:s.jsx(i,{id:n?"transaction.collection_item_minted":"transaction.collection_items_minted",values:{collectionName:s.jsx(S,{to:h.collectionDetail(e.id),children:e.name}),itemName:s.jsx(S,{to:h.itemDetail(r.id),children:r.name}),count:Z(t)}}),tx:a})}case W:{const{chainId:e}=a,{collection:t,minters:n}=a.payload,r=A(n,t.minters),d=A(t.minters,n),u=q(e),E=f(d,u),p=f(r,u);let m="";return E?m="transaction.unset_collection_on_sale":p?m="transaction.set_collection_on_sale":m="transaction.updated_collection_minters",s.jsx(o,{collectionId:t.id,text:s.jsx(i,{id:m,values:{name:s.jsx(S,{to:h.collectionDetail(t.id),children:t.name})}}),tx:a})}case Y:{const{address:e,ens:t}=a.payload;return s.jsx(o,{subdomain:t.subdomain,text:s.jsx(i,{id:"transaction.set_ens_resolver",values:{address:s.jsx(_,{address:e}),name:t.subdomain}}),tx:a})}case J:{const{address:e,ens:t,land:n}=a.payload;return s.jsx(o,{subdomain:t.subdomain,text:n?s.jsx(i,{id:"transaction.set_ens_content",values:{address:s.jsx(_,{address:e}),name:t.subdomain,land_link:s.jsx(S,{to:h.landDetail(n.id),children:n.name})}}):s.jsx(i,{id:"transaction.unset_ens_content",values:{address:s.jsx(_,{address:e}),name:t.subdomain}}),tx:a})}case Q:{const{address:e,allowance:t}=a.payload;return s.jsx(o,{address:e,text:G(t)?s.jsx(i,{id:"transaction.allowed_claim_mana",values:{address:s.jsx(_,{address:e})}}):s.jsx(i,{id:"transaction.disallowed_claim_mana",values:{address:s.jsx(_,{address:e})}}),tx:a})}case V:{const{subdomain:e}=a.payload;return s.jsx(o,{subdomain:e,text:s.jsx(i,{id:"transaction.claim_name",values:{name:e}}),tx:a})}case K:{const{ens:e}=a.payload;return s.jsx(o,{subdomain:e.subdomain,text:s.jsx(i,{id:"transaction.reclaim_name",values:{subdomain:e.subdomain}}),tx:a})}case F:{const{count:e,collectionId:t,collectionName:n}=a.payload;return s.jsx(o,{tx:a,collectionId:t,text:s.jsx(i,{id:"transaction.rescue_items",values:{count:e,collectionName:s.jsx(S,{to:h.collectionDetail(t),children:n})}})})}default:return null}},fs=N.memo(As),bs=c=>{const{address:a,transactions:e,onClearHistory:t,isLoggedIn:n}=c,[r,d]=j.useState(!1),u=j.useCallback(()=>{a&&t(a),d(!1)},[a,t]),E=j.useCallback(()=>d(!0),[d]),p=j.useCallback(()=>d(!1),[d]);let m=null;return n?e.length===0?m=s.jsx("div",{className:"center",children:s.jsx("p",{children:x("activity_page.empty")})}):m=s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"history-header",children:[s.jsx("div",{className:"left",children:s.jsx(l.Header,{sub:!0,children:x("activity_page.latest_activity")})}),s.jsx("div",{className:"right",children:s.jsx(l.Button,{basic:!0,onClick:E,children:x("activity_page.clear_history")})})]}),s.jsx("div",{className:"transactions",children:e.map(g=>s.jsx(fs,{tx:g},g.hash)).reverse()})]}):m=s.jsx(Cs,{}),s.jsxs(s.Fragment,{children:[s.jsx(ds,{}),s.jsx(hs,{}),s.jsx(l.Page,{className:"ActivityPage",children:m}),s.jsxs(l.Modal,{size:"tiny",open:r,children:[s.jsx(l.Modal.Header,{children:x("activity_page.clear_history_modal.title")}),s.jsx(l.Modal.Content,{children:x("activity_page.clear_history_modal.text")}),s.jsxs(l.Modal.Actions,{children:[s.jsx(l.Button,{onClick:p,children:x("global.cancel")}),s.jsx(l.Button,{primary:!0,onClick:u,children:x("global.proceed")})]})]}),s.jsx(ms,{})]})},Ls=N.memo(bs),Rs=c=>({isLoggedIn:us(c),address:_s(c),transactions:js(c)}),Os=c=>({onClearHistory:a=>c(Ss(a))}),ws=xs(Rs,Os)(Ls);export{ws as default};
1
+ import{ak as N,N as s,a7 as P,M as x,dJ as k,S as l,dK as v,dL as H,J as j,bP as y,cf as w,bO as B,bQ as _,dM as z,dN as $,dO as F,b6 as i,Q as S,R as h,dP as K,dQ as V,dR as Q,dS as G,dT as J,dU as Y,dV as W,dW as A,dX as q,dY as f,dZ as X,d_ as Z,d$ as b,e0 as L,e1 as R,e2 as O,e3 as ss,e4 as es,e5 as as,e6 as ts,e7 as ns,e8 as is,e9 as cs,ea as os,eb as rs,ec as ls,ed as D,ee as M,ef as U,am as ds,ao as ms,T as xs,aj as us,aM as _s,eg as js,eh as Ss}from"./index-DHYWV3bH.js";import{b as hs}from"./Navigation.container-BYylJCxT.js";import{S as Cs}from"./SignInRequired-h3oN0Zc4.js";import{a as Es}from"./date-Bzm8zmJv.js";import"./selectors-BWYCilYH.js";import"./index-D7YYkSOL.js";const ps="_ensImage_er26d_1",gs="_name_er26d_15",Ns="_small_er26d_23",I={ensImage:ps,name:gs,small:Ns};class Ts extends N.PureComponent{render(){const{subdomain:a,isSmall:e}=this.props;return s.jsx("div",{className:P(I.ensImage,{[I.small]:e}),children:s.jsx("div",{className:I.name,children:a.slice(0,2)})})}}const vs=c=>{const a=c.replacedBy||c.hash;return a?H({txHash:a},c.chainId):""},ys=c=>{const{selection:a,address:e,collectionId:t,item:n,subdomain:r,slotsToyBuy:d}=c,u=j.useMemo(()=>new Set((a||[]).map(C=>y(C.x,C.y))),[a]),E=j.useCallback((C,T)=>u.has(y(C,T))?{color:"#ff0044",scale:1.4}:null,[u]),p=j.useCallback((C,T)=>u.has(y(C,T))?{color:"#ff9990",scale:1.2}:null,[u]),[m,g]=j.useMemo(()=>a?w(a):[0,0],[a]);return a?s.jsx(B,{x:m,y:g,layers:[E,p],width:48,height:48,size:9,isDraggable:!1}):e?s.jsx(_,{address:e,size:"huge",imageOnly:!0}):t?s.jsx(z,{collectionId:t}):n?s.jsx($,{item:n}):r?s.jsx(Ts,{subdomain:r,isSmall:!0}):d?s.jsx("div",{className:"slot-image"}):null},Is=c=>{const{text:a,tx:e}=c;return s.jsxs("div",{className:"TransactionDetail",children:[s.jsxs("div",{className:"left",children:[s.jsx("div",{className:"image",children:s.jsx(ys,{...c})}),s.jsxs("div",{className:"text",children:[s.jsx("div",{className:"description",children:a}),s.jsxs("div",{className:"timestamp",children:[Es(e.timestamp),"."]})]})]}),s.jsx("div",{className:"right",children:s.jsxs("a",{href:vs(e),className:e.status?"status "+e.status:"status",target:"_blank",rel:"noopener noreferrer",children:[s.jsx("div",{className:"description",children:e.status||x("global.loading")}),k(e.status)?s.jsx("div",{className:"spinner",children:s.jsx(l.Loader,{active:!0,size:"mini"})}):null,e.status===v.REVERTED?s.jsx(l.Icon,{name:"warning sign"}):null,e.status===v.CONFIRMED||e.status===v.REPLACED?s.jsx(l.Icon,{name:"check"}):null]})})]})},o=N.memo(Is),As=c=>{const{tx:a}=c;switch(a.actionType){case M:case ls:{const{authorization:e}=a.payload,t=D(e.authorizedAddress),n=D(e.contractAddress),r=a.actionType===M?x("transaction.approved"):x("transaction.unapproved");return s.jsx(o,{address:e.address,text:s.jsx(i,{id:"transaction.approve_token",values:{action:r,contract:s.jsx(U,{chainId:e.chainId,address:e.authorizedAddress,txHash:"",children:t}),token:s.jsx(U,{chainId:e.chainId,address:e.contractAddress,txHash:"",children:n})}}),tx:a})}case rs:{const{name:e,address:t,selection:n}=a.payload;return s.jsx(o,{selection:n,text:s.jsx(i,{id:"transaction.transfer",values:{name:s.jsx("strong",{children:e}),address:s.jsx(_,{address:t})}}),tx:a})}case os:{const{name:e,selection:t}=a.payload;return s.jsx(o,{selection:t,text:s.jsx(i,{id:"transaction.edit",values:{name:s.jsx("strong",{children:e})}}),tx:a})}case cs:{const{name:e,address:t,selection:n}=a.payload;return s.jsx(o,{selection:n,text:s.jsx(i,{id:t?"transaction.set_operator_assigned":"transaction.set_operator_revoked",values:{name:s.jsx("strong",{children:e}),address:s.jsx(_,{address:t})}}),tx:a})}case is:{const{name:e,selection:t}=a.payload;return s.jsx(o,{selection:t,text:s.jsx(i,{id:"transaction.create_estate",values:{name:s.jsx("strong",{children:e})}}),tx:a})}case ns:{const{name:e,count:t,type:n,selection:r}=a.payload;return s.jsx(o,{selection:r,text:s.jsx(i,{id:`transaction.edit_estate_${n}`,values:{name:s.jsx("strong",{children:e}),count:t}}),tx:a})}case ts:{const{name:e,selection:t}=a.payload;return s.jsx(o,{selection:t,text:s.jsx(i,{id:"transaction.dissolve_estate",values:{name:s.jsx("strong",{children:e})}}),tx:a})}case as:{const{address:e,type:t,isApproved:n}=a.payload;return s.jsx(o,{address:e,text:s.jsx(i,{id:n?"transaction.set_manager_assigned":"transaction.set_manager_revoked",values:{address:s.jsx(_,{address:e,textOnly:!0}),type:x(`global.${t}_plural`)}}),tx:a})}case es:{const{item:e}=a.payload;return s.jsx(o,{item:e,text:s.jsx(i,{id:"transaction.set_price_and_beneficiary",values:{name:s.jsx(S,{to:h.itemDetail(e.id),children:e.name})}}),tx:a})}case ss:{const{thirdPartyId:e,thirdPartyName:t}=a.payload;return s.jsx(o,{thirdPartyId:e,text:s.jsx(i,{id:"transaction.disable_third_party",values:{name:t}}),tx:a})}case L:case R:case O:case b:{const{collection:e}=a.payload,t={[L]:"collection_published",[R]:"collection_approved",[O]:"collection_rejected",[b]:"updated_collection_managers"}[a.actionType];return s.jsx(o,{collectionId:e.id,text:s.jsx(i,{id:`transaction.${t}`,values:{name:s.jsx(S,{to:h.collectionDetail(e.id),children:e.name})}}),tx:a})}case X:{const{collection:e,mints:t}=a.payload,n=t.length===1,r=t[0].item,d=n?{item:r}:{collection:e};return s.jsx(o,{...d,text:s.jsx(i,{id:n?"transaction.collection_item_minted":"transaction.collection_items_minted",values:{collectionName:s.jsx(S,{to:h.collectionDetail(e.id),children:e.name}),itemName:s.jsx(S,{to:h.itemDetail(r.id),children:r.name}),count:Z(t)}}),tx:a})}case W:{const{chainId:e}=a,{collection:t,minters:n}=a.payload,r=A(n,t.minters),d=A(t.minters,n),u=q(e),E=f(d,u),p=f(r,u);let m="";return E?m="transaction.unset_collection_on_sale":p?m="transaction.set_collection_on_sale":m="transaction.updated_collection_minters",s.jsx(o,{collectionId:t.id,text:s.jsx(i,{id:m,values:{name:s.jsx(S,{to:h.collectionDetail(t.id),children:t.name})}}),tx:a})}case Y:{const{address:e,ens:t}=a.payload;return s.jsx(o,{subdomain:t.subdomain,text:s.jsx(i,{id:"transaction.set_ens_resolver",values:{address:s.jsx(_,{address:e}),name:t.subdomain}}),tx:a})}case J:{const{address:e,ens:t,land:n}=a.payload;return s.jsx(o,{subdomain:t.subdomain,text:n?s.jsx(i,{id:"transaction.set_ens_content",values:{address:s.jsx(_,{address:e}),name:t.subdomain,land_link:s.jsx(S,{to:h.landDetail(n.id),children:n.name})}}):s.jsx(i,{id:"transaction.unset_ens_content",values:{address:s.jsx(_,{address:e}),name:t.subdomain}}),tx:a})}case Q:{const{address:e,allowance:t}=a.payload;return s.jsx(o,{address:e,text:G(t)?s.jsx(i,{id:"transaction.allowed_claim_mana",values:{address:s.jsx(_,{address:e})}}):s.jsx(i,{id:"transaction.disallowed_claim_mana",values:{address:s.jsx(_,{address:e})}}),tx:a})}case V:{const{subdomain:e}=a.payload;return s.jsx(o,{subdomain:e,text:s.jsx(i,{id:"transaction.claim_name",values:{name:e}}),tx:a})}case K:{const{ens:e}=a.payload;return s.jsx(o,{subdomain:e.subdomain,text:s.jsx(i,{id:"transaction.reclaim_name",values:{subdomain:e.subdomain}}),tx:a})}case F:{const{count:e,collectionId:t,collectionName:n}=a.payload;return s.jsx(o,{tx:a,collectionId:t,text:s.jsx(i,{id:"transaction.rescue_items",values:{count:e,collectionName:s.jsx(S,{to:h.collectionDetail(t),children:n})}})})}default:return null}},fs=N.memo(As),bs=c=>{const{address:a,transactions:e,onClearHistory:t,isLoggedIn:n}=c,[r,d]=j.useState(!1),u=j.useCallback(()=>{a&&t(a),d(!1)},[a,t]),E=j.useCallback(()=>d(!0),[d]),p=j.useCallback(()=>d(!1),[d]);let m=null;return n?e.length===0?m=s.jsx("div",{className:"center",children:s.jsx("p",{children:x("activity_page.empty")})}):m=s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"history-header",children:[s.jsx("div",{className:"left",children:s.jsx(l.Header,{sub:!0,children:x("activity_page.latest_activity")})}),s.jsx("div",{className:"right",children:s.jsx(l.Button,{basic:!0,onClick:E,children:x("activity_page.clear_history")})})]}),s.jsx("div",{className:"transactions",children:e.map(g=>s.jsx(fs,{tx:g},g.hash)).reverse()})]}):m=s.jsx(Cs,{}),s.jsxs(s.Fragment,{children:[s.jsx(ds,{}),s.jsx(hs,{}),s.jsx(l.Page,{className:"ActivityPage",children:m}),s.jsxs(l.Modal,{size:"tiny",open:r,children:[s.jsx(l.Modal.Header,{children:x("activity_page.clear_history_modal.title")}),s.jsx(l.Modal.Content,{children:x("activity_page.clear_history_modal.text")}),s.jsxs(l.Modal.Actions,{children:[s.jsx(l.Button,{onClick:p,children:x("global.cancel")}),s.jsx(l.Button,{primary:!0,onClick:u,children:x("global.proceed")})]})]}),s.jsx(ms,{})]})},Ls=N.memo(bs),Rs=c=>({isLoggedIn:us(c),address:_s(c),transactions:js(c)}),Os=c=>({onClearHistory:a=>c(Ss(a))}),ws=xs(Rs,Os)(Ls);export{ws as default};
@@ -1 +1 @@
1
- var B=Object.defineProperty;var D=(e,t,n)=>t in e?B(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var R=(e,t,n)=>D(e,typeof t!="symbol"?t+"":t,n);import{a4 as f,J as d,aF as $,aG as E,aH as v,M as _,N as s,S as o,P as g,O as U,T,ay as j,aI as O,aJ as V,aK as w,aL as y,a2 as k,aM as M,aj as A,aN as G,aO as J,aP as X,aQ as z}from"./index-BcJ8MhYC.js";import{S as H}from"./SignInRequired-BIpJsBqT.js";const K="_container_1abv2_1",q="_nameContainer_1abv2_8",F="_editNameBtn_1abv2_20",Y="_actions_1abv2_30",Q="_downloadBtn_1abv2_36",W="_button_1abv2_13",I={container:K,nameContainer:q,editNameBtn:F,actions:Y,downloadBtn:Q,button:W},Z=E.get("EXPLORER_URL",""),ee=E.get("BUILDER_SERVER_URL",""),se=E.get("PEER_TESTING_URL","");function te({currentProject:e,metrics:t,limits:n,areEntitiesOutOfBoundaries:r,isUploading:c,onOpenModal:l}){const b=f(),m=d.useCallback(()=>{l("ExportModal",{project:e})},[e,l]),u=d.useCallback(()=>{l("EditProjectModal")},[l]),a=d.useCallback(()=>{l("DeployModal",{view:$.NONE,projectId:e.id})},[l,e]),h=d.useMemo(()=>{if(!e)return"";const i=new URL(Z);return i.searchParams.set("skipSetup","true"),i.searchParams.set("realm",`${ee}/projects/${e.id}`),i.searchParams.set("DEBUG_MODE","true"),E.is(v.Env.DEVELOPMENT)?(i.searchParams.set("NETWORK","sepolia"),i.searchParams.set("DEBUG_SCENE_LOG","")):i.searchParams.set("CATALYST",se),i.toString()},[]),N=d.useMemo(()=>Object.keys(t).some(i=>t[i]>n[i]),[t]),x=d.useMemo(()=>c||r,[t,n,r,c]),C=d.useMemo(()=>c||!x,[c,x]),L=d.useCallback(()=>r?_("topbar.bounds_exceeded",{br:s.jsx("br",{})}):N?_("topbar.limits_exceeded"):null,[r,N]),S=d.useCallback(()=>{b.goBack()},[b]);return s.jsxs("div",{className:I.container,children:[s.jsxs("div",{className:I.nameContainer,children:[s.jsx(o.Button,{basic:!0,"aria-label":_("inspector.top_bar.back"),onClick:S,children:s.jsx(o.Icon,{name:"chevron left"})}),e&&s.jsxs(o.Button,{basic:!0,onClick:u,disabled:c,className:I.editNameBtn,children:[e.title,s.jsx(g,{name:"layout",className:"edit-project-icon"})]}),c&&s.jsx(g,{name:"cloud-upload",className:"cloud-upload-indicator is-uploading"})]}),s.jsxs("div",{className:I.actions,children:[e?s.jsx(U,{projectId:e.id}):null,s.jsx(o.Popup,{content:_("inspector.top_bar.download"),trigger:s.jsx(o.Button,{secondary:!0,"aria-label":_("inspector.top_bar.download"),size:"small",className:I.downloadBtn,disabled:c,onClick:m,children:s.jsx(o.Icon,{name:"download"})})}),s.jsxs(o.Button,{as:"a",href:h,target:"_blank",secondary:!0,size:"small",disabled:c,children:[s.jsx(o.Icon,{name:"eye"}),_("inspector.top_bar.preview")]}),s.jsx(o.Popup,{content:L(),position:"bottom center",disabled:C,trigger:s.jsx("span",{children:s.jsxs(o.Button,{primary:!0,size:"small",disabled:x,onClick:a,children:[s.jsx(o.Icon,{name:"globe"}),_("inspector.top_bar.publish")]})}),on:"hover"})]})]})}const ne=e=>({currentProject:j(e),metrics:O(e),limits:V(e),areEntitiesOutOfBoundaries:w(e)>0,isUploading:y(e)}),ae=e=>({onOpenModal:(t,n)=>e(k(t,n))}),oe=T(ne,ae)(te);var p={VITE_BASE_URL:"https://cdn.decentraland.org/@dcl/builder-site/7.17.0"};const re=e=>e.replace(/\/$/,""),P=re(p.VITE_BASE_URL);let ce=class extends d.PureComponent{constructor(){super(...arguments);R(this,"state",{isLoaded:!1});R(this,"refIframe",n=>{const{onConnect:r}=this.props;n&&(n.onload=()=>{this.setState({isLoaded:!0})},r(n.id))})}componentDidMount(){const{onOpen:n}=this.props;n()}render(){const{scene:n,project:r,isLoggedIn:c,isReloading:l,address:b=""}=this.props;if(!c)return s.jsx(H,{});let m=`${P}/inspector-index.html`,u=`${P}/bin/index.js`;p.VITE_INSPECTOR_PORT&&(m=`http://localhost:${p.VITE_INSPECTOR_PORT}`,u=`${m}/bin/index.js`);let a=`?dataLayerRpcParentUrl=${window.location.origin}`;if(p.VITE_BIN_INDEX_JS_DEV_PORT&&p.VITE_BIN_INDEX_JS_DEV_PATH){const h=btoa(p.VITE_BIN_INDEX_JS_DEV_PATH);u=`http://localhost:${p.VITE_BIN_INDEX_JS_DEV_PORT}/content/contents/b64-${h}`}return a=a.concat(`&binIndexJsUrl=${u}`),a=a.concat(`&contentUrl=${E.get("INSPECTOR_CONTENT_URL")}`),a=a.concat(`&segmentKey=${E.get("INSPECTOR_SEGMENT_API_KEY")}`),a=a.concat(`&segmentAppId=${E.get("INSPECTOR_SEGMENT_APP_ID")}`),a=a.concat(`&segmentUserId=${b}`),r!=null&&r.id&&(a=a.concat(`&projectId=${r.id}`)),s.jsxs("div",{className:"InspectorPage",children:[(!this.state.isLoaded||l)&&s.jsx(o.Loader,{active:!0}),n&&!l&&s.jsxs(s.Fragment,{children:[s.jsx(oe,{}),s.jsx("iframe",{ref:this.refIframe,title:"inspector",id:"inspector",src:`${m}${a}`})]})]})}};const ie=e=>({address:M(e),isLoggedIn:A(e),scene:G(e),project:j(e),isReloading:J(e)}),de=e=>({onOpen:()=>e(X()),onConnect:t=>e(z(t))}),me=T(ie,de)(ce);export{me as default};
1
+ var B=Object.defineProperty;var D=(e,t,n)=>t in e?B(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var R=(e,t,n)=>D(e,typeof t!="symbol"?t+"":t,n);import{a4 as f,J as d,aF as $,aG as m,aH as v,M as _,N as s,S as o,P as g,O as U,T,ay as j,aI as O,aJ as V,aK as w,aL as y,a2 as k,aM as M,aj as A,aN as G,aO as J,aP as X,aQ as z}from"./index-DHYWV3bH.js";import{S as H}from"./SignInRequired-h3oN0Zc4.js";const K="_container_1abv2_1",q="_nameContainer_1abv2_8",F="_editNameBtn_1abv2_20",Y="_actions_1abv2_30",Q="_downloadBtn_1abv2_36",W="_button_1abv2_13",I={container:K,nameContainer:q,editNameBtn:F,actions:Y,downloadBtn:Q,button:W},Z=m.get("EXPLORER_URL",""),ee=m.get("BUILDER_SERVER_URL",""),se=m.get("PEER_TESTING_URL","");function te({currentProject:e,metrics:t,limits:n,areEntitiesOutOfBoundaries:r,isUploading:c,onOpenModal:l}){const b=f(),E=d.useCallback(()=>{l("ExportModal",{project:e})},[e,l]),u=d.useCallback(()=>{l("EditProjectModal")},[l]),a=d.useCallback(()=>{l("DeployModal",{view:$.NONE,projectId:e.id})},[l,e]),h=d.useMemo(()=>{if(!e)return"";const i=new URL(Z);return i.searchParams.set("skipSetup","true"),i.searchParams.set("realm",`${ee}/projects/${e.id}`),i.searchParams.set("DEBUG_MODE","true"),m.is(v.Env.DEVELOPMENT)?(i.searchParams.set("NETWORK","sepolia"),i.searchParams.set("DEBUG_SCENE_LOG","")):i.searchParams.set("CATALYST",se),i.toString()},[]),N=d.useMemo(()=>Object.keys(t).some(i=>t[i]>n[i]),[t]),x=d.useMemo(()=>c||r,[t,n,r,c]),C=d.useMemo(()=>c||!x,[c,x]),L=d.useCallback(()=>r?_("topbar.bounds_exceeded",{br:s.jsx("br",{})}):N?_("topbar.limits_exceeded"):null,[r,N]),S=d.useCallback(()=>{b.goBack()},[b]);return s.jsxs("div",{className:I.container,children:[s.jsxs("div",{className:I.nameContainer,children:[s.jsx(o.Button,{basic:!0,"aria-label":_("inspector.top_bar.back"),onClick:S,children:s.jsx(o.Icon,{name:"chevron left"})}),e&&s.jsxs(o.Button,{basic:!0,onClick:u,disabled:c,className:I.editNameBtn,children:[e.title,s.jsx(g,{name:"layout",className:"edit-project-icon"})]}),c&&s.jsx(g,{name:"cloud-upload",className:"cloud-upload-indicator is-uploading"})]}),s.jsxs("div",{className:I.actions,children:[e?s.jsx(U,{projectId:e.id}):null,s.jsx(o.Popup,{content:_("inspector.top_bar.download"),trigger:s.jsx(o.Button,{secondary:!0,"aria-label":_("inspector.top_bar.download"),size:"small",className:I.downloadBtn,disabled:c,onClick:E,children:s.jsx(o.Icon,{name:"download"})})}),s.jsxs(o.Button,{as:"a",href:h,target:"_blank",secondary:!0,size:"small",disabled:c,children:[s.jsx(o.Icon,{name:"eye"}),_("inspector.top_bar.preview")]}),s.jsx(o.Popup,{content:L(),position:"bottom center",disabled:C,trigger:s.jsx("span",{children:s.jsxs(o.Button,{primary:!0,size:"small",disabled:x,onClick:a,children:[s.jsx(o.Icon,{name:"globe"}),_("inspector.top_bar.publish")]})}),on:"hover"})]})]})}const ne=e=>({currentProject:j(e),metrics:O(e),limits:V(e),areEntitiesOutOfBoundaries:w(e)>0,isUploading:y(e)}),ae=e=>({onOpenModal:(t,n)=>e(k(t,n))}),oe=T(ne,ae)(te);var p={VITE_BASE_URL:"https://cdn.decentraland.org/@dcl/builder-site/7.17.1-19665485717.commit-62c4593"};const re=e=>e.replace(/\/$/,""),P=re(p.VITE_BASE_URL);let ce=class extends d.PureComponent{constructor(){super(...arguments);R(this,"state",{isLoaded:!1});R(this,"refIframe",n=>{const{onConnect:r}=this.props;n&&(n.onload=()=>{this.setState({isLoaded:!0})},r(n.id))})}componentDidMount(){const{onOpen:n}=this.props;n()}render(){const{scene:n,project:r,isLoggedIn:c,isReloading:l,address:b=""}=this.props;if(!c)return s.jsx(H,{});let E=`${P}/inspector-index.html`,u=`${P}/bin/index.js`;p.VITE_INSPECTOR_PORT&&(E=`http://localhost:${p.VITE_INSPECTOR_PORT}`,u=`${E}/bin/index.js`);let a=`?dataLayerRpcParentUrl=${window.location.origin}`;if(p.VITE_BIN_INDEX_JS_DEV_PORT&&p.VITE_BIN_INDEX_JS_DEV_PATH){const h=btoa(p.VITE_BIN_INDEX_JS_DEV_PATH);u=`http://localhost:${p.VITE_BIN_INDEX_JS_DEV_PORT}/content/contents/b64-${h}`}return a=a.concat(`&binIndexJsUrl=${u}`),a=a.concat(`&contentUrl=${m.get("INSPECTOR_CONTENT_URL")}`),a=a.concat(`&segmentKey=${m.get("INSPECTOR_SEGMENT_API_KEY")}`),a=a.concat(`&segmentAppId=${m.get("INSPECTOR_SEGMENT_APP_ID")}`),a=a.concat(`&segmentUserId=${b}`),r!=null&&r.id&&(a=a.concat(`&projectId=${r.id}`)),s.jsxs("div",{className:"InspectorPage",children:[(!this.state.isLoaded||l)&&s.jsx(o.Loader,{active:!0}),n&&!l&&s.jsxs(s.Fragment,{children:[s.jsx(oe,{}),s.jsx("iframe",{ref:this.refIframe,title:"inspector",id:"inspector",src:`${E}${a}`})]})]})}};const ie=e=>({address:M(e),isLoggedIn:A(e),scene:G(e),project:j(e),isReloading:J(e)}),de=e=>({onOpen:()=>e(X()),onConnect:t=>e(z(t))}),Ee=T(ie,de)(ce);export{Ee as default};
@@ -1 +1 @@
1
- import{N as e,g9 as Ge,ga as Re,a7 as Z,dM as Ue,S as s,T as F,fl as Ie,a4 as Q,f7 as We,M as o,fU as Oe,e$ as te,gb as He,cO as Fe,a2 as M,eD as ze,gc as qe,g2 as Ve,bq as ke,g4 as Ye,g5 as Ze,eO as Ne,gd as Qe,J as l,R as B,ge as Je,gf as Ke,eY as $,dN as fe,ez as Xe,gg as et,bp as ye,Q as be,fm as ve,ey as we,eB as ue,gh as tt,gi as ge,gj as st,gk as nt,gl as at,gm as it,gn as ot,fp as lt,go as rt,gp as Se,eE as ct,gq as dt,gr as mt,gs as he,P as _t,cM as ut,cN as gt,aa as ht,ab as w,eZ as pe,eJ as Ce,fB as pt,ej as Ct,gt as xt,gu as jt,gv as It,eM as kt,gw as Nt,gx as ft,gy as yt,gz as bt,gA as vt,f$ as wt}from"./index-BcJ8MhYC.js";import{e as St,f as Pt}from"./hooks-DXNgH_m2.js";import{g as Dt}from"./selector-CtnQnmhq.js";import{L as Et}from"./LoggedInDetailPage.container-CsvKBMuj.js";import{C as Mt}from"./CollectionProvider.container-CD3TWvFB.js";import{N as Tt}from"./NotFound-4sT-K9SU.js";import{B as $t}from"./Back-CncB3o4T.js";import{C as Bt,T as Lt}from"./ThirdPartyKindBadge-BN8ggssH.js";import{C as se}from"./ConfirmDelete-BvGTAe45.js";import"./Navigation.container-Uoa9cAN5.js";import"./selectors-DHi87VFf.js";import"./SignInRequired-BIpJsBqT.js";const At=t=>e.jsx("img",{"data-testid":Ge,src:Re[t.network],alt:t.network,className:t.className}),Gt="_image_142g7_1",Rt="_main_142g7_2",Ut="_network_142g7_13",q={image:Gt,main:Rt,network:Ut},Wt=t=>{const{collection:n,collectionId:r,className:i,shape:m}=t;return e.jsxs("div",{className:Z(q.main,i),children:[n!=null&&n.itemCount?e.jsx(Ue,{collectionId:r,className:q.image}):e.jsx(s.Blockie,{className:q.image,seed:r,size:8,scale:8,shape:m??"circle"}),n!=null&&n.linkedContractNetwork?e.jsx(At,{network:n==null?void 0:n.linkedContractNetwork,className:q.network}):null]})},Ot=(t,n)=>({collection:Ie(t,n.collectionId)}),Ht=F(Ot)(Wt),Ft="_ellipsis_4huv2_1",xe={ellipsis:Ft},zt=t=>{const{collection:n}=t,r=Q(),i=()=>{n.isPublished&&n.forumLink&&S(n.forumLink,"_blank")},m=()=>{const{items:_,onOpenModal:d}=t;d("SeeInWorldModal",{itemIds:_.map(f=>f.id)})},a=()=>{const{collection:_,items:d}=t;r.push(Oe(_,d),{fromParam:te.TP_COLLECTIONS})},j=()=>{const{collection:_,onDelete:d}=t;d(_)},C=()=>{const{collection:_,onOpenModal:d}=t;_.isPublished||d("EditCollectionURNModal",{collection:_})},b=()=>{const{collection:_,onOpenModal:d}=t;d("CreateAndEditMultipleItemsModal",{collectionId:_.id,type:He.EDIT})},S=(_,d="")=>{const f=window.open(_,d);f&&f.focus()},I=!We(n)&&!n.isPublished;return e.jsx(s.Dropdown,{className:xe.dropdown,trigger:e.jsx(s.Button,{basic:!0,children:e.jsx(s.Icon,{className:xe.ellipsis,size:"large",name:"ellipsis horizontal"})}),inline:!0,direction:"left",children:e.jsxs(s.Dropdown.Menu,{children:[e.jsx(s.Dropdown.Item,{text:o("collection_context_menu.see_in_decentraland"),onClick:m}),e.jsx(s.Dropdown.Item,{text:o("global.open_in_editor"),onClick:a}),e.jsx(s.Popup,{content:o("collection_context_menu.delete_published_collection"),position:"right center",disabled:I,trigger:I?e.jsx(se,{name:n.name,onDelete:j,trigger:e.jsx(s.Dropdown.Item,{text:o("global.delete")})}):e.jsx(s.Dropdown.Item,{text:o("global.delete"),disabled:!0}),hideOnScroll:!0,on:"hover",inverted:!0}),e.jsx(s.Popup,{content:o("collection_context_menu.change_published_urn"),position:"right center",disabled:!n.isPublished,trigger:e.jsx(s.Dropdown.Item,{text:o("collection_context_menu.edit_urn"),onClick:C,disabled:n.isPublished}),hideOnScroll:!0,on:"hover",inverted:!0}),e.jsx(s.Dropdown.Item,{text:o("collection_context_menu.edit_in_bulk"),onClick:b}),e.jsx(s.Popup,{content:o("collection_context_menu.unpublished"),position:"right center",disabled:n.isPublished||!!n.forumLink,trigger:e.jsx(s.Dropdown.Item,{disabled:!n.isPublished||!n.forumLink,text:o("collection_context_menu.forum_post"),onClick:i}),hideOnScroll:!0,on:"hover",inverted:!0})]})})},qt=t=>({name:Fe(t)||""}),Vt=t=>({onOpenModal:(n,r)=>t(M(n,r)),onDelete:n=>t(ze(n))}),Yt=F(qt,Vt)(zt),Zt=(t,n)=>{const{collection:r,items:i}=n;return{itemCurations:Ve(t,r.id),isLoadingItemCurations:ke(Ze(t),Ye),isLinkedWearablesPaymentsEnabled:Ne(t),itemsStatus:Qe(t,i.map(m=>m.id))}},Qt=t=>({onNewClick:(n,r,i)=>t(M("PublishWizardCollectionModal",{collectionId:n,itemsWithChanges:r,itemsToPublish:i})),onPushChangesClick:(n,r)=>t(M("PushChangesModal",{collectionId:n,itemsWithChanges:r})),onClick:(n,r,i)=>t(M("PublishThirdPartyCollectionModal",{collectionId:n,itemIds:r,action:i}))}),Jt=F(Zt,Qt)(qe),Kt="_itemImage_1y9df_1",Xt="_itemStatus_1y9df_10",es="_grid_1y9df_14",ts="_row_1y9df_25",ss="_column_1y9df_30",ns="_statusColumn_1y9df_34",as="_synced_1y9df_39",is="_unsynced_1y9df_43",os="_avatarColumn_1y9df_47",ls="_nameWrapper_1y9df_52",rs="_name_1y9df_52",cs="_itemActions_1y9df_65",ds="_action_1y9df_72",x={itemImage:Kt,itemStatus:Xt,grid:es,row:ts,column:ss,statusColumn:ns,synced:as,unsynced:is,avatarColumn:os,nameWrapper:ls,name:rs,itemActions:cs,action:ds};function ms({item:t,status:n,selected:r,onSelect:i,onOpenModal:m,onDelete:a}){const j=Q(),C=l.useCallback((h,D)=>{i(t,D.checked)},[t,i]),b=l.useCallback(()=>{m("SeeInWorldModal",{itemIds:[t.id]})},[t,m]),S=l.useCallback(()=>{t.isPublished||m("EditItemURNModal",{item:t})},[t,m]),I=l.useCallback(()=>{j.push(B.itemEditor({itemId:t.id,collectionId:t.collectionId}),{fromParam:te.TP_COLLECTIONS})},[t,j]),_=l.useCallback(()=>{a(t)},[a,t]),d=l.useMemo(()=>{if(!t.urn)return"";try{const h=Je(t.urn);return Ke(h)?h.thirdPartyTokenId??"":""}catch{return""}},[t]),f=l.useMemo(()=>{switch(n){case $.UNDER_REVIEW:return e.jsx(s.Icon,{name:"clock outline"});case $.SYNCED:return e.jsx(s.Icon,{name:"check circle outline"});case $.UNSYNCED:return e.jsx(s.Icon,{name:"exclamation circle"});default:return null}},[n]),y=t.data;return e.jsx(s.Grid,{className:`CollectionItem ${x.grid}`,columns:"equal",children:e.jsxs(s.Grid.Row,{className:x.row,children:[e.jsxs(s.Grid.Column,{className:`${x.column} ${x.avatarColumn}`,width:5,children:[e.jsx(s.Checkbox,{checked:r,disabled:t.isPublished,onClick:C}),e.jsx(fe,{className:x.itemImage,item:t,hasBadge:!0,badgeSize:"small"}),e.jsx("div",{className:x.nameWrapper,children:e.jsxs("div",{className:x.name,title:t.name,children:[e.jsx(Xe,{className:x.itemStatus,item:t}),t.name]})})]}),e.jsx(s.Grid.Column,{className:x.column,children:y.category?e.jsx("div",{children:o(`wearable.category.${y.category}`)}):null}),e.jsx(s.Grid.Column,{className:x.column,children:e.jsx("div",{children:o(`body_shapes.${et(t)}`)})}),e.jsx(s.Grid.Column,{className:x.column,children:e.jsx("div",{children:d})}),e.jsxs(s.Grid.Column,{width:3,className:`${x.column} ${x.statusColumn} ${x[n]}`,children:[f,e.jsx("div",{children:o(`third_party_collection_detail_page.synced_statuses.${n}`)})]}),e.jsx(s.Grid.Column,{width:1,className:x.column,children:e.jsx("div",{className:x.itemActions,children:e.jsx(s.Dropdown,{trigger:e.jsx(s.Button,{basic:!0,children:e.jsx(s.Icon,{name:"ellipsis horizontal"})}),inline:!0,direction:"left",className:x.action,onClick:ye(),children:e.jsxs(s.Dropdown.Menu,{children:[e.jsx(s.Dropdown.Item,{text:o("collection_item.see_details"),as:be,to:B.itemDetail(t.id)}),e.jsx(s.Dropdown.Item,{text:o("collection_context_menu.see_in_decentraland"),onClick:b}),e.jsx(s.Dropdown.Item,{text:o("global.open_in_editor"),onClick:I}),e.jsx(s.Popup,{content:o("collection_item.cannot_edit_urn"),position:"right center",disabled:!t.isPublished,trigger:e.jsx(s.Dropdown.Item,{text:o("collection_item.edit_urn"),onClick:S,disabled:t.isPublished}),hideOnScroll:!0,on:"hover",inverted:!0,flowing:!0}),!t.isPublished&&e.jsx(se,{name:t.name,onDelete:_,trigger:e.jsx(s.Dropdown.Item,{text:o("global.delete")})})]})})})})]})})}const _s=(t,n)=>({status:ve(t)[n.item.id]}),us=t=>({onDelete:n=>t(we(n)),onOpenModal:(n,r)=>t(M(n,r))}),gs=F(_s,us)(ms),hs="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_8524_427)'%3e%3cpath%20d='M20.5%203L20.34%203.03L15%205.1L9%203L3.36%204.9C3.15%204.97%203%205.15%203%205.38V20.5C3%2020.78%203.22%2021%203.5%2021L3.66%2020.97L9%2018.9L15%2021L20.64%2019.1C20.85%2019.03%2021%2018.85%2021%2018.62V3.5C21%203.22%2020.78%203%2020.5%203ZM15%2019L9%2016.89V5L15%207.11V19Z'%20fill='%23A09BA8'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_8524_427'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",ps="data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.669%200H1.33362C0.593463%200%200%200.600131%200%201.33362V10.669C0%2011.4025%200.593463%2012.0026%201.33362%2012.0026H10.669C11.4025%2012.0026%2012.0026%2011.4025%2012.0026%2010.669V1.33362C12.0026%200.600131%2011.4092%200%2010.669%200ZM10.669%2010.669H1.33362V2.66725H10.669V10.669ZM7.00152%206.66812C7.00152%207.22157%206.55476%207.66834%206.00131%207.66834C5.44785%207.66834%205.00109%207.22157%205.00109%206.66812C5.00109%206.11466%205.44785%205.6679%206.00131%205.6679C6.55476%205.6679%207.00152%206.11466%207.00152%206.66812ZM6.00131%204.00087C4.18091%204.00087%202.62724%205.10778%202.00044%206.66812C2.62724%208.22846%204.18091%209.33537%206.00131%209.33537C7.8217%209.33537%209.37537%208.22846%2010.0022%206.66812C9.37537%205.10778%207.8217%204.00087%206.00131%204.00087ZM6.00131%208.33515C5.08111%208.33515%204.33428%207.58832%204.33428%206.66812C4.33428%205.74792%205.08111%205.00109%206.00131%205.00109C6.92151%205.00109%207.66834%205.74792%207.66834%206.66812C7.66834%207.58832%206.92151%208.33515%206.00131%208.33515Z'%20fill='%23ECEBED'/%3e%3c/svg%3e",Cs="_status_rgxu1_1",xs="_pending_migration_rgxu1_14",js="_synced_rgxu1_19",Is="_unpublished_rgxu1_24",ks="_unsynced_rgxu1_25",Ns="_pending_mapping_rgxu1_30",fs="_under_review_rgxu1_31",ys="_icon_rgxu1_10",V={status:Cs,pending_migration:xs,synced:js,unpublished:Is,unsynced:ks,pending_mapping:Ns,under_review:fs,icon:ys},bs=t=>{const{status:n,item:r}=t,i=!r.mappings&&ue(r.urn),m=!r.isMappingComplete&&ue(r.urn),a=l.useMemo(()=>{if(i)return e.jsx("img",{src:hs,className:V.icon});if(m)return e.jsx(s.Icon,{name:"warning circle"});switch(n){case $.UNDER_REVIEW:return e.jsx("img",{src:ps,className:V.icon});case $.SYNCED:return e.jsx(s.Icon,{name:"check circle"});case $.UNSYNCED:case $.UNPUBLISHED:return e.jsx(s.Icon,{name:"cloud upload"})}},[n,i,m]),j=l.useMemo(()=>i?o("item_status.pending_mapping"):m?o("item_status.pending_migration"):o(`item_status.${n}`),[n,i,m]),C=l.useMemo(()=>i?"pending_mapping":m?"pending_migration":n,[n,i,m]);return e.jsxs("div",{className:Z(V[C],V.status),children:[a," ",j]})},vs="_itemImage_1rili_1",ws="_itemStatus_1rili_10",Ss="_grid_1rili_14",Ps="_loading_1rili_21",Ds="_row_1rili_26",Es="_column_1rili_31",Ms="_avatarColumn_1rili_35",Ts="_nameWrapper_1rili_40",$s="_name_1rili_40",Bs="_itemActions_1rili_53",Ls="_action_1rili_60",As="_overlay_1rili_65",N={itemImage:vs,itemStatus:ws,grid:Ss,loading:Ps,row:Ds,column:Es,avatarColumn:Ms,nameWrapper:Ts,name:$s,itemActions:Bs,action:Ls,overlay:As};function Gs({item:t,status:n,selected:r,loading:i,collection:m,onSaveItem:a,onSelect:j,onOpenModal:C,onDelete:b}){const S=Q(),I=l.useMemo(()=>tt(t),[t]),_=l.useMemo(()=>m.linkedContractAddress&&m.linkedContractNetwork?{address:m.linkedContractAddress,network:m.linkedContractNetwork}:null,[m]),[d,f]=l.useState(I),y=l.useMemo(()=>{if(d&&_){const v=ge(d,_);return st(v)?void 0:"Invalid mapping"}},[d,_]);l.useEffect(()=>{!_||y||(!I&&d||I&&d&&!nt(I,d))&&h(d,_)},[I,y,d,_]);const h=l.useCallback(at((v,T)=>{const A=ge(v,T);a({...t,mappings:A})},1e3),[a]),D=l.useCallback((v,T)=>{i||j(t,T.checked)},[t,i,j]),P=l.useCallback(()=>{C("SeeInWorldModal",{itemIds:[t.id]})},[t,C]),L=l.useCallback(()=>{t.isPublished||C("EditItemURNModal",{item:t})},[t,C]),R=l.useCallback(()=>{S.push(B.itemEditor({itemId:t.id,collectionId:t.collectionId}),{fromParam:te.TP_COLLECTIONS})},[t,S]),c=l.useCallback(()=>{b(t)},[b,t]);return e.jsxs(s.Grid,{className:Z(N.grid,i&&N.loading),columns:"equal",children:[i&&e.jsx("div",{className:N.overlay,children:e.jsx(s.Loader,{size:"large",active:!0})}),e.jsxs(s.Grid.Row,{className:N.row,children:[e.jsxs(s.Grid.Column,{className:`${N.column} ${N.avatarColumn}`,width:4,children:[e.jsx(s.Checkbox,{checked:r,disabled:t.isPublished||i,onClick:D}),e.jsx(fe,{className:N.itemImage,item:t,hasBadge:!0,badgeSize:"small"}),e.jsx("div",{className:N.nameWrapper,children:e.jsx("div",{className:N.name,title:t.name,children:t.name})})]}),e.jsx(s.Grid.Column,{children:_&&e.jsx(it,{disabled:i,mapping:d,error:y,onChange:f,isCompact:!0})}),e.jsx(s.Grid.Column,{width:3,className:Z(N.column,N.statusColumn),children:e.jsx(bs,{status:n,item:t})}),e.jsx(s.Grid.Column,{width:1,className:N.column,children:e.jsx("div",{className:N.itemActions,children:e.jsx(s.Dropdown,{trigger:e.jsx(s.Button,{basic:!0,children:e.jsx(s.Icon,{name:"ellipsis horizontal"})}),inline:!0,direction:"left",className:N.action,disabled:i,onClick:ye(),children:e.jsxs(s.Dropdown.Menu,{children:[e.jsx(s.Dropdown.Item,{text:o("collection_item.see_details"),as:be,to:B.itemDetail(t.id)}),e.jsx(s.Dropdown.Item,{text:o("collection_context_menu.see_in_decentraland"),onClick:P}),e.jsx(s.Dropdown.Item,{text:o("global.open_in_editor"),onClick:R}),e.jsx(s.Popup,{content:o("collection_item.cannot_edit_urn"),position:"right center",disabled:!t.isPublished,trigger:e.jsx(s.Dropdown.Item,{text:o("collection_item.edit_urn"),onClick:L,disabled:t.isPublished}),hideOnScroll:!0,on:"hover",inverted:!0,flowing:!0}),!t.isPublished&&e.jsx(se,{name:t.name,onDelete:c,trigger:e.jsx(s.Dropdown.Item,{text:o("global.delete")})})]})})})})]})]})}const Rs=(t,n)=>{const r=ve(t);return{loading:!!ot(t)[n.item.id],status:r[n.item.id]}},Us=t=>({onDelete:n=>t(we(n)),onSaveItem:n=>t(lt(n,{},{onlySaveItem:!0})),onOpenModal:(n,r)=>t(M(n,r))}),Ws=F(Rs,Us)(Gs),G=50,Os="_itemCheckbox_2k9qa_1",Hs="_gridHeader_2k9qa_5",Fs="_itemColumn_2k9qa_15",ee={itemCheckbox:Os,gridHeader:Hs,itemColumn:Fs},zs=({areAllSelected:t,onSelectedAllClick:n})=>e.jsx(s.Grid,{columns:"equal",className:ee.gridHeader,children:e.jsxs(s.Grid.Row,{children:[e.jsxs(s.Grid.Column,{width:5,className:ee.itemColumn,children:[e.jsx(s.Checkbox,{className:ee.itemCheckbox,checked:t,onClick:n})," ",o("global.item")]}),e.jsx(s.Grid.Column,{children:o("global.category")}),e.jsx(s.Grid.Column,{children:o("global.body_shape")}),e.jsx(s.Grid.Column,{children:"URN ID"}),e.jsxs(s.Grid.Column,{width:3,children:[" ",o("collection_row.status")," "]}),e.jsx(s.Grid.Column,{width:1})]})}),qs="_gridHeader_4acv6_1",Vs="_itemColumn_4acv6_11",Ys="_itemCheckbox_4acv6_16",Zs="_linkedToColumn_4acv6_20",Y={gridHeader:qs,itemColumn:Vs,itemCheckbox:Ys,linkedToColumn:Zs},Qs=({areAllSelected:t,onSelectedAllClick:n})=>e.jsx(s.Grid,{columns:"equal",className:Y.gridHeader,children:e.jsxs(s.Grid.Row,{children:[e.jsxs(s.Grid.Column,{width:4,className:Y.itemColumn,children:[e.jsx(s.Checkbox,{className:Y.itemCheckbox,checked:t,onClick:n})," ",o("global.item")]}),e.jsxs(s.Grid.Column,{className:Y.linkedToColumn,children:[e.jsx("span",{children:o("third_party_collection_detail_page.linked_to")}),e.jsx(rt,{})]}),e.jsxs(s.Grid.Column,{width:3,children:[" ",o("collection_row.status")," "]}),e.jsx(s.Grid.Column,{width:1})]})}),Js="_main_16i8r_3",Ks="_slots_16i8r_11",Xs="_empty_16i8r_28",en="_searchContainer_16i8r_32",tn="_searchInfo_16i8r_42",sn="_syncedStatusList_16i8r_46",nn="_selectionInfo_16i8r_53",an="_header_16i8r_63",on="_content_16i8r_74",ln="_title_16i8r_83",rn="_editCollectionName_16i8r_96",cn="_name_16i8r_101",dn="_nameAndType_16i8r_105",mn="_nameWrapper_16i8r_115",_n="_size_16i8r_139",un="_actions_16i8r_143",gn="_body_16i8r_151",hn="_info_16i8r_162",pn="_infoHeader_16i8r_170",Cn="_infoContent_16i8r_178",xn="_slotsIcon_16i8r_195",jn="_copyButton_16i8r_207",In="_sparkles_16i8r_232",kn="_start_16i8r_241",Nn="_migrationBanner_16i8r_254",fn="_type_16i8r_277",yn="_linkedWearableBadge_16i8r_283",bn="_typeBadge_16i8r_288",vn="_programmaticBadge_16i8r_292",wn="_standardBadge_16i8r_296",Sn="_loader_16i8r_302",u={main:Js,slots:Ks,empty:Xs,searchContainer:en,searchInfo:tn,syncedStatusList:sn,selectionInfo:nn,header:an,content:on,title:ln,editCollectionName:rn,name:cn,nameAndType:dn,nameWrapper:mn,size:_n,actions:un,body:gn,info:hn,infoHeader:pn,infoContent:Cn,slotsIcon:xn,copyButton:jn,sparkles:In,start:kn,migrationBanner:Nn,type:fn,linkedWearableBadge:yn,typeBadge:bn,programmaticBadge:vn,standardBadge:wn,loader:Sn},je=({children:t,title:n,info:r})=>e.jsxs("div",{className:u.info,children:[e.jsxs("div",{className:u.infoHeader,children:[n," ",r&&e.jsx(s.InfoTooltip,{content:r})]}),e.jsx("div",{className:u.infoContent,children:t})]});function Pn({currentPage:t,lastLocation:n,wallet:r,thirdParty:i,items:m,collection:a,totalItems:j,isLoading:C,isThirdPartyV2Enabled:b,isLinkedWearablesPaymentsEnabled:S,onFetchAvailableSlots:I,onFetchThirdParty:_,onNewItem:d,onEditName:f,isLoadingAvailableSlots:y}){const[h,D]=l.useState({}),[P,L]=l.useState(t),[R,c]=l.useState(!1),[v,T]=l.useState(!1),[A,ne]=l.useState("ALL"),U=Q(),ae=n===B.collections();l.useEffect(()=>{i&&i.availableSlots===void 0&&!y&&I(i.id)},[i,y,I]),l.useEffect(()=>{!C&&!i&&(a!=null&&a.urn)&&_(Se(a.urn))},[a==null?void 0:a.urn,C,i]),l.useEffect(()=>{if(t!==P&&L(t),v){const g=m.reduce((p,k)=>(p[k.id]=!0,p),{});D(g),c(!1)}},[P,v,m,i,t]);const Pe=l.useCallback(()=>{a!=null&&a.id&&d(a.id)},[a==null?void 0:a.id,d]),De=l.useCallback(()=>{a&&f(a)},[a,f]),Ee=l.useCallback(()=>{ae?U.goBack():U.push(B.collections(ct.THIRD_PARTY))},[U,ae]),Me=l.useCallback((g,p)=>{L(+p.activePage),U.push(B.thirdPartyCollectionDetail(a.id,{page:+p.activePage}))},[a,U]),J=l.useCallback((g,p)=>{D({...h,[g.id]:p}),T(!1),c(!1)},[h]),W=l.useCallback(g=>g.every(p=>h[p.id]),[h]),ie=l.useCallback((g,p)=>{const k={...h},O=!W(g);for(const H of g)k[H.id]=O;D(k),c(!0),T(v&&!!p.checked)},[h,v,W]),oe=l.useCallback(()=>{D({})},[]),le=l.useMemo(()=>a&&i&&r&&dt(r.address,i),[a,i,r]),Te=l.useCallback(g=>{if(T(!0),a){const p=Math.ceil(j/G);g(a.id,{page:mt(p),limit:G,overridePaginationData:!1})}},[j]),re=l.useCallback((g,{value:p})=>{ne(p)},[ne]),$e=[{value:"ALL",text:o("third_party_collection_detail_page.synced_filter.all")},{value:"SYNCED",text:o("item_status.synced")},{value:"UNSYNCED",text:o("item_status.unsynced")},...a!=null&&a.isMappingComplete?[]:[{value:"MIGRATION_REQUIRED",text:o("item_status.pending_migration")},{value:"MAPPING_PENDING",text:o("item_status.pending_mapping")}]],Be=l.useMemo(()=>{switch(A){case"SYNCED":return{synced:!0};case"UNSYNCED":return{synced:!1};case"MIGRATION_REQUIRED":return{mappingStatus:he.UNPUBLISHED_MAPPING};case"MAPPING_PENDING":return{mappingStatus:he.MISSING_MAPPING};default:return{}}},[A]),Le=l.useCallback((g,p,k,O,H)=>{const ce=p.filter(E=>h[E.id]),de=ce.length,me=!!(a!=null&&a.linkedContractAddress&&(a!=null&&a.linkedContractNetwork)),z=j,K=Math.ceil(z/G),_e=(a==null?void 0:a.itemCount)===0;return a?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:u.header,children:[e.jsx($t,{absolute:!0,onClick:Ee}),e.jsxs("div",{className:u.content,children:[e.jsxs("div",{className:u.title,children:[e.jsx(Ht,{collectionId:a.id}),e.jsxs("div",{className:u.nameAndType,children:[e.jsxs("div",{className:u.nameWrapper,children:[e.jsx(s.Header,{size:"large",className:u.name,onClick:De,children:a.name}),!a.isPublished&&e.jsx(_t,{name:"edit",className:u.editCollectionName})]}),e.jsxs("div",{className:u.type,children:[e.jsx(Bt,{isThirdParty:!0}),e.jsx(Lt,{isProgrammatic:g.isProgrammatic})]})]})]}),e.jsxs("div",{className:u.actions,children:[a.linkedContractAddress&&a.linkedContractNetwork&&e.jsxs(je,{title:o("third_party_collection_detail_page.smart_contract_address_short"),info:o("third_party_collection_detail_page.smart_contract_address_long"),children:[ut(a.linkedContractAddress)," ",e.jsx(gt,{className:u.copyButton,showPopup:!0,text:a.linkedContractAddress,role:"button",children:e.jsx(s.Icon,{name:"copy outline"})})]}),!S&&e.jsxs(je,{title:o("third_party_collection_detail_page.slots_short"),info:o("third_party_collection_detail_page.slots_long"),children:[e.jsx("div",{className:u.slotsIcon}),y?e.jsx(s.Loader,{active:!0,inline:!0,size:"tiny"}):e.jsxs("span",{children:[g.availableSlots??0," / ",g.maxItems]})]}),e.jsxs(s.Button,{inverted:!0,onClick:Pe,children:[e.jsx(s.Icon,{name:"plus"}),o("third_party_collection_detail_page.new_items")]}),g.availableSlots!==void 0?e.jsx(Jt,{collection:a,items:ce,slots:g.availableSlots}):null,e.jsx(Yt,{collection:a,items:k})]})]})]}),!a.isMappingComplete&&e.jsxs("div",{className:u.migrationBanner,children:[e.jsx(s.Icon,{name:"sync"})," ",o("third_party_collection_detail_page.migration_banner")]}),e.jsx("div",{className:u.body,children:O?e.jsx("div",{className:u.loader,children:e.jsx(s.Loader,{size:"massive",inline:!0,active:!0})}):e.jsxs(e.Fragment,{children:[(a.itemCount??0)>0&&e.jsxs("div",{className:u.searchContainer,children:[k.length>0&&e.jsx("div",{className:u.searchInfo,children:o("third_party_collection_detail_page.search_info",{page:(P-1)*G+1,pageTotal:Math.min(z,P*G),total:z})}),e.jsx(s.Dropdown,{className:u.syncedStatusList,direction:"left",value:A,options:$e,onChange:re})]}),k.length?e.jsxs(e.Fragment,{children:[de>0?e.jsxs("div",{className:u.selectionInfo,children:[o("third_party_collection_detail_page.selection",{count:de})," ",e.jsx("span",{className:"link",onClick:oe,children:o("third_party_collection_detail_page.clear_selection")}),".  ",R&&K>1?e.jsx("span",{className:"link",onClick:()=>Te(H),children:o("third_party_collection_detail_page.select_all",{total:z})}):null," "]}):null,e.jsxs("div",{children:[b&&me?e.jsx(Qs,{areAllSelected:W(k),onSelectedAllClick:(E,X)=>ie(k,X)}):e.jsx(zs,{areAllSelected:W(k),onSelectedAllClick:(E,X)=>ie(k,X)}),k.map(E=>b&&me?e.jsx(Ws,{collection:a,item:E,selected:!!h[E.id],onSelect:J},E.id):e.jsx(gs,{collection:a,item:E,selected:!!h[E.id],onSelect:J},E.id)),K>1?e.jsx(s.Pagination,{firstItem:null,lastItem:null,totalPages:K,activePage:P,onPageChange:Me}):null]})]}):e.jsxs("div",{className:u.empty,children:[e.jsx("div",{className:_e?u.start:u.sparkles}),_e?e.jsxs(e.Fragment,{children:[e.jsx("h3",{children:o("third_party_collection_detail_page.start_adding_items")}),e.jsx("p",{children:o("third_party_collection_detail_page.cant_remove")})]}):e.jsxs(e.Fragment,{children:[e.jsx("h3",{children:o("third_party_collection_detail_page.not_found")}),e.jsx("p",{children:o("third_party_collection_detail_page.try_again")})]})]})]})})]}):(console.error("No collection defined"),null)},[a,h,y,S,b,j,P,J,W,re,oe,A]),Ae=le&&a;return e.jsx(Mt,{id:a==null?void 0:a.id,itemsPage:P,itemsPageSize:G,fetchCollectionItemsOptions:Be,children:({isLoadingCollection:g,isLoadingCollectionItems:p,items:k,paginatedItems:O,onFetchCollectionItemsPages:H})=>e.jsx(Et,{className:u.main,hasNavigation:!le&&!C&&!g,isLoading:C||g,children:Ae&&i?Le(i,k,O,p,H):e.jsx(Tt,{})})})}const Dn=()=>{const t=ht(),n=St()||"",r=Pt(),i=w(c=>Ie(c,n)),m=l.useMemo(()=>i?pe(i):!1,[i]),a=w(c=>{var v;return((v=Ce(c,n))==null?void 0:v.total)||null}),j=w(c=>i?pt(c,i.id):[]),C=w(c=>i&&Ce(c,i.id)||null),b=w(Ct),S=w(xt),I=w(Ne),_=w(c=>i&&pe(i)?jt(c,i):null),d=w(c=>It(c)),f=w(c=>ke(kt(c),wt)||Nt(c)||!!(m&&i&&ft(c,Se(i.urn)))),y=w(c=>yt(c)),h=w(c=>Dt(c)),D=l.useCallback(c=>t(M("CreateItemsModal",{collectionId:c})),[t]),P=l.useCallback(c=>t(M("EditCollectionNameModal",{collection:c})),[t]),L=l.useCallback(c=>t(bt(c)),[t]),R=l.useCallback(c=>t(vt(c)),[t]);return e.jsx(Pn,{items:j,totalItems:a,currentPage:r,paginatedData:C,wallet:b,collection:i,isThirdPartyV2Enabled:S,isLinkedWearablesPaymentsEnabled:I,thirdParty:_,authorizations:d,isLoading:f,isLoadingAvailableSlots:y,lastLocation:h,onNewItem:D,onEditName:P,onFetchAvailableSlots:L,onFetchThirdParty:R})},Hn=Dn;export{Hn as default};
1
+ import{N as e,g9 as Ge,ga as Re,a7 as Z,dM as Ue,S as s,T as F,fl as Ie,a4 as Q,f7 as We,M as o,fU as Oe,e$ as te,gb as He,cO as Fe,a2 as M,eD as ze,gc as qe,g2 as Ve,bq as ke,g4 as Ye,g5 as Ze,eO as Ne,gd as Qe,J as l,R as B,ge as Je,gf as Ke,eY as $,dN as fe,ez as Xe,gg as et,bp as ye,Q as be,fm as ve,ey as we,eB as ue,gh as tt,gi as ge,gj as st,gk as nt,gl as at,gm as it,gn as ot,fp as lt,go as rt,gp as Se,eE as ct,gq as dt,gr as mt,gs as he,P as _t,cM as ut,cN as gt,aa as ht,ab as w,eZ as pe,eJ as Ce,fB as pt,ej as Ct,gt as xt,gu as jt,gv as It,eM as kt,gw as Nt,gx as ft,gy as yt,gz as bt,gA as vt,f$ as wt}from"./index-DHYWV3bH.js";import{e as St,f as Pt}from"./hooks-CPkpImRF.js";import{g as Dt}from"./selector-CtnQnmhq.js";import{L as Et}from"./LoggedInDetailPage.container-Dp65JdFz.js";import{C as Mt}from"./CollectionProvider.container-BLrdFsDk.js";import{N as Tt}from"./NotFound-2BVxtvD7.js";import{B as $t}from"./Back-BYSQbKgv.js";import{C as Bt,T as Lt}from"./ThirdPartyKindBadge-Uz7XsHUz.js";import{C as se}from"./ConfirmDelete-BW2RwuzQ.js";import"./Navigation.container-BYylJCxT.js";import"./selectors-BWYCilYH.js";import"./SignInRequired-h3oN0Zc4.js";const At=t=>e.jsx("img",{"data-testid":Ge,src:Re[t.network],alt:t.network,className:t.className}),Gt="_image_142g7_1",Rt="_main_142g7_2",Ut="_network_142g7_13",q={image:Gt,main:Rt,network:Ut},Wt=t=>{const{collection:n,collectionId:r,className:i,shape:m}=t;return e.jsxs("div",{className:Z(q.main,i),children:[n!=null&&n.itemCount?e.jsx(Ue,{collectionId:r,className:q.image}):e.jsx(s.Blockie,{className:q.image,seed:r,size:8,scale:8,shape:m??"circle"}),n!=null&&n.linkedContractNetwork?e.jsx(At,{network:n==null?void 0:n.linkedContractNetwork,className:q.network}):null]})},Ot=(t,n)=>({collection:Ie(t,n.collectionId)}),Ht=F(Ot)(Wt),Ft="_ellipsis_4huv2_1",xe={ellipsis:Ft},zt=t=>{const{collection:n}=t,r=Q(),i=()=>{n.isPublished&&n.forumLink&&S(n.forumLink,"_blank")},m=()=>{const{items:_,onOpenModal:d}=t;d("SeeInWorldModal",{itemIds:_.map(f=>f.id)})},a=()=>{const{collection:_,items:d}=t;r.push(Oe(_,d),{fromParam:te.TP_COLLECTIONS})},j=()=>{const{collection:_,onDelete:d}=t;d(_)},C=()=>{const{collection:_,onOpenModal:d}=t;_.isPublished||d("EditCollectionURNModal",{collection:_})},b=()=>{const{collection:_,onOpenModal:d}=t;d("CreateAndEditMultipleItemsModal",{collectionId:_.id,type:He.EDIT})},S=(_,d="")=>{const f=window.open(_,d);f&&f.focus()},I=!We(n)&&!n.isPublished;return e.jsx(s.Dropdown,{className:xe.dropdown,trigger:e.jsx(s.Button,{basic:!0,children:e.jsx(s.Icon,{className:xe.ellipsis,size:"large",name:"ellipsis horizontal"})}),inline:!0,direction:"left",children:e.jsxs(s.Dropdown.Menu,{children:[e.jsx(s.Dropdown.Item,{text:o("collection_context_menu.see_in_decentraland"),onClick:m}),e.jsx(s.Dropdown.Item,{text:o("global.open_in_editor"),onClick:a}),e.jsx(s.Popup,{content:o("collection_context_menu.delete_published_collection"),position:"right center",disabled:I,trigger:I?e.jsx(se,{name:n.name,onDelete:j,trigger:e.jsx(s.Dropdown.Item,{text:o("global.delete")})}):e.jsx(s.Dropdown.Item,{text:o("global.delete"),disabled:!0}),hideOnScroll:!0,on:"hover",inverted:!0}),e.jsx(s.Popup,{content:o("collection_context_menu.change_published_urn"),position:"right center",disabled:!n.isPublished,trigger:e.jsx(s.Dropdown.Item,{text:o("collection_context_menu.edit_urn"),onClick:C,disabled:n.isPublished}),hideOnScroll:!0,on:"hover",inverted:!0}),e.jsx(s.Dropdown.Item,{text:o("collection_context_menu.edit_in_bulk"),onClick:b}),e.jsx(s.Popup,{content:o("collection_context_menu.unpublished"),position:"right center",disabled:n.isPublished||!!n.forumLink,trigger:e.jsx(s.Dropdown.Item,{disabled:!n.isPublished||!n.forumLink,text:o("collection_context_menu.forum_post"),onClick:i}),hideOnScroll:!0,on:"hover",inverted:!0})]})})},qt=t=>({name:Fe(t)||""}),Vt=t=>({onOpenModal:(n,r)=>t(M(n,r)),onDelete:n=>t(ze(n))}),Yt=F(qt,Vt)(zt),Zt=(t,n)=>{const{collection:r,items:i}=n;return{itemCurations:Ve(t,r.id),isLoadingItemCurations:ke(Ze(t),Ye),isLinkedWearablesPaymentsEnabled:Ne(t),itemsStatus:Qe(t,i.map(m=>m.id))}},Qt=t=>({onNewClick:(n,r,i)=>t(M("PublishWizardCollectionModal",{collectionId:n,itemsWithChanges:r,itemsToPublish:i})),onPushChangesClick:(n,r)=>t(M("PushChangesModal",{collectionId:n,itemsWithChanges:r})),onClick:(n,r,i)=>t(M("PublishThirdPartyCollectionModal",{collectionId:n,itemIds:r,action:i}))}),Jt=F(Zt,Qt)(qe),Kt="_itemImage_1y9df_1",Xt="_itemStatus_1y9df_10",es="_grid_1y9df_14",ts="_row_1y9df_25",ss="_column_1y9df_30",ns="_statusColumn_1y9df_34",as="_synced_1y9df_39",is="_unsynced_1y9df_43",os="_avatarColumn_1y9df_47",ls="_nameWrapper_1y9df_52",rs="_name_1y9df_52",cs="_itemActions_1y9df_65",ds="_action_1y9df_72",x={itemImage:Kt,itemStatus:Xt,grid:es,row:ts,column:ss,statusColumn:ns,synced:as,unsynced:is,avatarColumn:os,nameWrapper:ls,name:rs,itemActions:cs,action:ds};function ms({item:t,status:n,selected:r,onSelect:i,onOpenModal:m,onDelete:a}){const j=Q(),C=l.useCallback((h,D)=>{i(t,D.checked)},[t,i]),b=l.useCallback(()=>{m("SeeInWorldModal",{itemIds:[t.id]})},[t,m]),S=l.useCallback(()=>{t.isPublished||m("EditItemURNModal",{item:t})},[t,m]),I=l.useCallback(()=>{j.push(B.itemEditor({itemId:t.id,collectionId:t.collectionId}),{fromParam:te.TP_COLLECTIONS})},[t,j]),_=l.useCallback(()=>{a(t)},[a,t]),d=l.useMemo(()=>{if(!t.urn)return"";try{const h=Je(t.urn);return Ke(h)?h.thirdPartyTokenId??"":""}catch{return""}},[t]),f=l.useMemo(()=>{switch(n){case $.UNDER_REVIEW:return e.jsx(s.Icon,{name:"clock outline"});case $.SYNCED:return e.jsx(s.Icon,{name:"check circle outline"});case $.UNSYNCED:return e.jsx(s.Icon,{name:"exclamation circle"});default:return null}},[n]),y=t.data;return e.jsx(s.Grid,{className:`CollectionItem ${x.grid}`,columns:"equal",children:e.jsxs(s.Grid.Row,{className:x.row,children:[e.jsxs(s.Grid.Column,{className:`${x.column} ${x.avatarColumn}`,width:5,children:[e.jsx(s.Checkbox,{checked:r,disabled:t.isPublished,onClick:C}),e.jsx(fe,{className:x.itemImage,item:t,hasBadge:!0,badgeSize:"small"}),e.jsx("div",{className:x.nameWrapper,children:e.jsxs("div",{className:x.name,title:t.name,children:[e.jsx(Xe,{className:x.itemStatus,item:t}),t.name]})})]}),e.jsx(s.Grid.Column,{className:x.column,children:y.category?e.jsx("div",{children:o(`wearable.category.${y.category}`)}):null}),e.jsx(s.Grid.Column,{className:x.column,children:e.jsx("div",{children:o(`body_shapes.${et(t)}`)})}),e.jsx(s.Grid.Column,{className:x.column,children:e.jsx("div",{children:d})}),e.jsxs(s.Grid.Column,{width:3,className:`${x.column} ${x.statusColumn} ${x[n]}`,children:[f,e.jsx("div",{children:o(`third_party_collection_detail_page.synced_statuses.${n}`)})]}),e.jsx(s.Grid.Column,{width:1,className:x.column,children:e.jsx("div",{className:x.itemActions,children:e.jsx(s.Dropdown,{trigger:e.jsx(s.Button,{basic:!0,children:e.jsx(s.Icon,{name:"ellipsis horizontal"})}),inline:!0,direction:"left",className:x.action,onClick:ye(),children:e.jsxs(s.Dropdown.Menu,{children:[e.jsx(s.Dropdown.Item,{text:o("collection_item.see_details"),as:be,to:B.itemDetail(t.id)}),e.jsx(s.Dropdown.Item,{text:o("collection_context_menu.see_in_decentraland"),onClick:b}),e.jsx(s.Dropdown.Item,{text:o("global.open_in_editor"),onClick:I}),e.jsx(s.Popup,{content:o("collection_item.cannot_edit_urn"),position:"right center",disabled:!t.isPublished,trigger:e.jsx(s.Dropdown.Item,{text:o("collection_item.edit_urn"),onClick:S,disabled:t.isPublished}),hideOnScroll:!0,on:"hover",inverted:!0,flowing:!0}),!t.isPublished&&e.jsx(se,{name:t.name,onDelete:_,trigger:e.jsx(s.Dropdown.Item,{text:o("global.delete")})})]})})})})]})})}const _s=(t,n)=>({status:ve(t)[n.item.id]}),us=t=>({onDelete:n=>t(we(n)),onOpenModal:(n,r)=>t(M(n,r))}),gs=F(_s,us)(ms),hs="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_8524_427)'%3e%3cpath%20d='M20.5%203L20.34%203.03L15%205.1L9%203L3.36%204.9C3.15%204.97%203%205.15%203%205.38V20.5C3%2020.78%203.22%2021%203.5%2021L3.66%2020.97L9%2018.9L15%2021L20.64%2019.1C20.85%2019.03%2021%2018.85%2021%2018.62V3.5C21%203.22%2020.78%203%2020.5%203ZM15%2019L9%2016.89V5L15%207.11V19Z'%20fill='%23A09BA8'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_8524_427'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",ps="data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.669%200H1.33362C0.593463%200%200%200.600131%200%201.33362V10.669C0%2011.4025%200.593463%2012.0026%201.33362%2012.0026H10.669C11.4025%2012.0026%2012.0026%2011.4025%2012.0026%2010.669V1.33362C12.0026%200.600131%2011.4092%200%2010.669%200ZM10.669%2010.669H1.33362V2.66725H10.669V10.669ZM7.00152%206.66812C7.00152%207.22157%206.55476%207.66834%206.00131%207.66834C5.44785%207.66834%205.00109%207.22157%205.00109%206.66812C5.00109%206.11466%205.44785%205.6679%206.00131%205.6679C6.55476%205.6679%207.00152%206.11466%207.00152%206.66812ZM6.00131%204.00087C4.18091%204.00087%202.62724%205.10778%202.00044%206.66812C2.62724%208.22846%204.18091%209.33537%206.00131%209.33537C7.8217%209.33537%209.37537%208.22846%2010.0022%206.66812C9.37537%205.10778%207.8217%204.00087%206.00131%204.00087ZM6.00131%208.33515C5.08111%208.33515%204.33428%207.58832%204.33428%206.66812C4.33428%205.74792%205.08111%205.00109%206.00131%205.00109C6.92151%205.00109%207.66834%205.74792%207.66834%206.66812C7.66834%207.58832%206.92151%208.33515%206.00131%208.33515Z'%20fill='%23ECEBED'/%3e%3c/svg%3e",Cs="_status_rgxu1_1",xs="_pending_migration_rgxu1_14",js="_synced_rgxu1_19",Is="_unpublished_rgxu1_24",ks="_unsynced_rgxu1_25",Ns="_pending_mapping_rgxu1_30",fs="_under_review_rgxu1_31",ys="_icon_rgxu1_10",V={status:Cs,pending_migration:xs,synced:js,unpublished:Is,unsynced:ks,pending_mapping:Ns,under_review:fs,icon:ys},bs=t=>{const{status:n,item:r}=t,i=!r.mappings&&ue(r.urn),m=!r.isMappingComplete&&ue(r.urn),a=l.useMemo(()=>{if(i)return e.jsx("img",{src:hs,className:V.icon});if(m)return e.jsx(s.Icon,{name:"warning circle"});switch(n){case $.UNDER_REVIEW:return e.jsx("img",{src:ps,className:V.icon});case $.SYNCED:return e.jsx(s.Icon,{name:"check circle"});case $.UNSYNCED:case $.UNPUBLISHED:return e.jsx(s.Icon,{name:"cloud upload"})}},[n,i,m]),j=l.useMemo(()=>i?o("item_status.pending_mapping"):m?o("item_status.pending_migration"):o(`item_status.${n}`),[n,i,m]),C=l.useMemo(()=>i?"pending_mapping":m?"pending_migration":n,[n,i,m]);return e.jsxs("div",{className:Z(V[C],V.status),children:[a," ",j]})},vs="_itemImage_1rili_1",ws="_itemStatus_1rili_10",Ss="_grid_1rili_14",Ps="_loading_1rili_21",Ds="_row_1rili_26",Es="_column_1rili_31",Ms="_avatarColumn_1rili_35",Ts="_nameWrapper_1rili_40",$s="_name_1rili_40",Bs="_itemActions_1rili_53",Ls="_action_1rili_60",As="_overlay_1rili_65",N={itemImage:vs,itemStatus:ws,grid:Ss,loading:Ps,row:Ds,column:Es,avatarColumn:Ms,nameWrapper:Ts,name:$s,itemActions:Bs,action:Ls,overlay:As};function Gs({item:t,status:n,selected:r,loading:i,collection:m,onSaveItem:a,onSelect:j,onOpenModal:C,onDelete:b}){const S=Q(),I=l.useMemo(()=>tt(t),[t]),_=l.useMemo(()=>m.linkedContractAddress&&m.linkedContractNetwork?{address:m.linkedContractAddress,network:m.linkedContractNetwork}:null,[m]),[d,f]=l.useState(I),y=l.useMemo(()=>{if(d&&_){const v=ge(d,_);return st(v)?void 0:"Invalid mapping"}},[d,_]);l.useEffect(()=>{!_||y||(!I&&d||I&&d&&!nt(I,d))&&h(d,_)},[I,y,d,_]);const h=l.useCallback(at((v,T)=>{const A=ge(v,T);a({...t,mappings:A})},1e3),[a]),D=l.useCallback((v,T)=>{i||j(t,T.checked)},[t,i,j]),P=l.useCallback(()=>{C("SeeInWorldModal",{itemIds:[t.id]})},[t,C]),L=l.useCallback(()=>{t.isPublished||C("EditItemURNModal",{item:t})},[t,C]),R=l.useCallback(()=>{S.push(B.itemEditor({itemId:t.id,collectionId:t.collectionId}),{fromParam:te.TP_COLLECTIONS})},[t,S]),c=l.useCallback(()=>{b(t)},[b,t]);return e.jsxs(s.Grid,{className:Z(N.grid,i&&N.loading),columns:"equal",children:[i&&e.jsx("div",{className:N.overlay,children:e.jsx(s.Loader,{size:"large",active:!0})}),e.jsxs(s.Grid.Row,{className:N.row,children:[e.jsxs(s.Grid.Column,{className:`${N.column} ${N.avatarColumn}`,width:4,children:[e.jsx(s.Checkbox,{checked:r,disabled:t.isPublished||i,onClick:D}),e.jsx(fe,{className:N.itemImage,item:t,hasBadge:!0,badgeSize:"small"}),e.jsx("div",{className:N.nameWrapper,children:e.jsx("div",{className:N.name,title:t.name,children:t.name})})]}),e.jsx(s.Grid.Column,{children:_&&e.jsx(it,{disabled:i,mapping:d,error:y,onChange:f,isCompact:!0})}),e.jsx(s.Grid.Column,{width:3,className:Z(N.column,N.statusColumn),children:e.jsx(bs,{status:n,item:t})}),e.jsx(s.Grid.Column,{width:1,className:N.column,children:e.jsx("div",{className:N.itemActions,children:e.jsx(s.Dropdown,{trigger:e.jsx(s.Button,{basic:!0,children:e.jsx(s.Icon,{name:"ellipsis horizontal"})}),inline:!0,direction:"left",className:N.action,disabled:i,onClick:ye(),children:e.jsxs(s.Dropdown.Menu,{children:[e.jsx(s.Dropdown.Item,{text:o("collection_item.see_details"),as:be,to:B.itemDetail(t.id)}),e.jsx(s.Dropdown.Item,{text:o("collection_context_menu.see_in_decentraland"),onClick:P}),e.jsx(s.Dropdown.Item,{text:o("global.open_in_editor"),onClick:R}),e.jsx(s.Popup,{content:o("collection_item.cannot_edit_urn"),position:"right center",disabled:!t.isPublished,trigger:e.jsx(s.Dropdown.Item,{text:o("collection_item.edit_urn"),onClick:L,disabled:t.isPublished}),hideOnScroll:!0,on:"hover",inverted:!0,flowing:!0}),!t.isPublished&&e.jsx(se,{name:t.name,onDelete:c,trigger:e.jsx(s.Dropdown.Item,{text:o("global.delete")})})]})})})})]})]})}const Rs=(t,n)=>{const r=ve(t);return{loading:!!ot(t)[n.item.id],status:r[n.item.id]}},Us=t=>({onDelete:n=>t(we(n)),onSaveItem:n=>t(lt(n,{},{onlySaveItem:!0})),onOpenModal:(n,r)=>t(M(n,r))}),Ws=F(Rs,Us)(Gs),G=50,Os="_itemCheckbox_2k9qa_1",Hs="_gridHeader_2k9qa_5",Fs="_itemColumn_2k9qa_15",ee={itemCheckbox:Os,gridHeader:Hs,itemColumn:Fs},zs=({areAllSelected:t,onSelectedAllClick:n})=>e.jsx(s.Grid,{columns:"equal",className:ee.gridHeader,children:e.jsxs(s.Grid.Row,{children:[e.jsxs(s.Grid.Column,{width:5,className:ee.itemColumn,children:[e.jsx(s.Checkbox,{className:ee.itemCheckbox,checked:t,onClick:n})," ",o("global.item")]}),e.jsx(s.Grid.Column,{children:o("global.category")}),e.jsx(s.Grid.Column,{children:o("global.body_shape")}),e.jsx(s.Grid.Column,{children:"URN ID"}),e.jsxs(s.Grid.Column,{width:3,children:[" ",o("collection_row.status")," "]}),e.jsx(s.Grid.Column,{width:1})]})}),qs="_gridHeader_4acv6_1",Vs="_itemColumn_4acv6_11",Ys="_itemCheckbox_4acv6_16",Zs="_linkedToColumn_4acv6_20",Y={gridHeader:qs,itemColumn:Vs,itemCheckbox:Ys,linkedToColumn:Zs},Qs=({areAllSelected:t,onSelectedAllClick:n})=>e.jsx(s.Grid,{columns:"equal",className:Y.gridHeader,children:e.jsxs(s.Grid.Row,{children:[e.jsxs(s.Grid.Column,{width:4,className:Y.itemColumn,children:[e.jsx(s.Checkbox,{className:Y.itemCheckbox,checked:t,onClick:n})," ",o("global.item")]}),e.jsxs(s.Grid.Column,{className:Y.linkedToColumn,children:[e.jsx("span",{children:o("third_party_collection_detail_page.linked_to")}),e.jsx(rt,{})]}),e.jsxs(s.Grid.Column,{width:3,children:[" ",o("collection_row.status")," "]}),e.jsx(s.Grid.Column,{width:1})]})}),Js="_main_16i8r_3",Ks="_slots_16i8r_11",Xs="_empty_16i8r_28",en="_searchContainer_16i8r_32",tn="_searchInfo_16i8r_42",sn="_syncedStatusList_16i8r_46",nn="_selectionInfo_16i8r_53",an="_header_16i8r_63",on="_content_16i8r_74",ln="_title_16i8r_83",rn="_editCollectionName_16i8r_96",cn="_name_16i8r_101",dn="_nameAndType_16i8r_105",mn="_nameWrapper_16i8r_115",_n="_size_16i8r_139",un="_actions_16i8r_143",gn="_body_16i8r_151",hn="_info_16i8r_162",pn="_infoHeader_16i8r_170",Cn="_infoContent_16i8r_178",xn="_slotsIcon_16i8r_195",jn="_copyButton_16i8r_207",In="_sparkles_16i8r_232",kn="_start_16i8r_241",Nn="_migrationBanner_16i8r_254",fn="_type_16i8r_277",yn="_linkedWearableBadge_16i8r_283",bn="_typeBadge_16i8r_288",vn="_programmaticBadge_16i8r_292",wn="_standardBadge_16i8r_296",Sn="_loader_16i8r_302",u={main:Js,slots:Ks,empty:Xs,searchContainer:en,searchInfo:tn,syncedStatusList:sn,selectionInfo:nn,header:an,content:on,title:ln,editCollectionName:rn,name:cn,nameAndType:dn,nameWrapper:mn,size:_n,actions:un,body:gn,info:hn,infoHeader:pn,infoContent:Cn,slotsIcon:xn,copyButton:jn,sparkles:In,start:kn,migrationBanner:Nn,type:fn,linkedWearableBadge:yn,typeBadge:bn,programmaticBadge:vn,standardBadge:wn,loader:Sn},je=({children:t,title:n,info:r})=>e.jsxs("div",{className:u.info,children:[e.jsxs("div",{className:u.infoHeader,children:[n," ",r&&e.jsx(s.InfoTooltip,{content:r})]}),e.jsx("div",{className:u.infoContent,children:t})]});function Pn({currentPage:t,lastLocation:n,wallet:r,thirdParty:i,items:m,collection:a,totalItems:j,isLoading:C,isThirdPartyV2Enabled:b,isLinkedWearablesPaymentsEnabled:S,onFetchAvailableSlots:I,onFetchThirdParty:_,onNewItem:d,onEditName:f,isLoadingAvailableSlots:y}){const[h,D]=l.useState({}),[P,L]=l.useState(t),[R,c]=l.useState(!1),[v,T]=l.useState(!1),[A,ne]=l.useState("ALL"),U=Q(),ae=n===B.collections();l.useEffect(()=>{i&&i.availableSlots===void 0&&!y&&I(i.id)},[i,y,I]),l.useEffect(()=>{!C&&!i&&(a!=null&&a.urn)&&_(Se(a.urn))},[a==null?void 0:a.urn,C,i]),l.useEffect(()=>{if(t!==P&&L(t),v){const g=m.reduce((p,k)=>(p[k.id]=!0,p),{});D(g),c(!1)}},[P,v,m,i,t]);const Pe=l.useCallback(()=>{a!=null&&a.id&&d(a.id)},[a==null?void 0:a.id,d]),De=l.useCallback(()=>{a&&f(a)},[a,f]),Ee=l.useCallback(()=>{ae?U.goBack():U.push(B.collections(ct.THIRD_PARTY))},[U,ae]),Me=l.useCallback((g,p)=>{L(+p.activePage),U.push(B.thirdPartyCollectionDetail(a.id,{page:+p.activePage}))},[a,U]),J=l.useCallback((g,p)=>{D({...h,[g.id]:p}),T(!1),c(!1)},[h]),W=l.useCallback(g=>g.every(p=>h[p.id]),[h]),ie=l.useCallback((g,p)=>{const k={...h},O=!W(g);for(const H of g)k[H.id]=O;D(k),c(!0),T(v&&!!p.checked)},[h,v,W]),oe=l.useCallback(()=>{D({})},[]),le=l.useMemo(()=>a&&i&&r&&dt(r.address,i),[a,i,r]),Te=l.useCallback(g=>{if(T(!0),a){const p=Math.ceil(j/G);g(a.id,{page:mt(p),limit:G,overridePaginationData:!1})}},[j]),re=l.useCallback((g,{value:p})=>{ne(p)},[ne]),$e=[{value:"ALL",text:o("third_party_collection_detail_page.synced_filter.all")},{value:"SYNCED",text:o("item_status.synced")},{value:"UNSYNCED",text:o("item_status.unsynced")},...a!=null&&a.isMappingComplete?[]:[{value:"MIGRATION_REQUIRED",text:o("item_status.pending_migration")},{value:"MAPPING_PENDING",text:o("item_status.pending_mapping")}]],Be=l.useMemo(()=>{switch(A){case"SYNCED":return{synced:!0};case"UNSYNCED":return{synced:!1};case"MIGRATION_REQUIRED":return{mappingStatus:he.UNPUBLISHED_MAPPING};case"MAPPING_PENDING":return{mappingStatus:he.MISSING_MAPPING};default:return{}}},[A]),Le=l.useCallback((g,p,k,O,H)=>{const ce=p.filter(E=>h[E.id]),de=ce.length,me=!!(a!=null&&a.linkedContractAddress&&(a!=null&&a.linkedContractNetwork)),z=j,K=Math.ceil(z/G),_e=(a==null?void 0:a.itemCount)===0;return a?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:u.header,children:[e.jsx($t,{absolute:!0,onClick:Ee}),e.jsxs("div",{className:u.content,children:[e.jsxs("div",{className:u.title,children:[e.jsx(Ht,{collectionId:a.id}),e.jsxs("div",{className:u.nameAndType,children:[e.jsxs("div",{className:u.nameWrapper,children:[e.jsx(s.Header,{size:"large",className:u.name,onClick:De,children:a.name}),!a.isPublished&&e.jsx(_t,{name:"edit",className:u.editCollectionName})]}),e.jsxs("div",{className:u.type,children:[e.jsx(Bt,{isThirdParty:!0}),e.jsx(Lt,{isProgrammatic:g.isProgrammatic})]})]})]}),e.jsxs("div",{className:u.actions,children:[a.linkedContractAddress&&a.linkedContractNetwork&&e.jsxs(je,{title:o("third_party_collection_detail_page.smart_contract_address_short"),info:o("third_party_collection_detail_page.smart_contract_address_long"),children:[ut(a.linkedContractAddress)," ",e.jsx(gt,{className:u.copyButton,showPopup:!0,text:a.linkedContractAddress,role:"button",children:e.jsx(s.Icon,{name:"copy outline"})})]}),!S&&e.jsxs(je,{title:o("third_party_collection_detail_page.slots_short"),info:o("third_party_collection_detail_page.slots_long"),children:[e.jsx("div",{className:u.slotsIcon}),y?e.jsx(s.Loader,{active:!0,inline:!0,size:"tiny"}):e.jsxs("span",{children:[g.availableSlots??0," / ",g.maxItems]})]}),e.jsxs(s.Button,{inverted:!0,onClick:Pe,children:[e.jsx(s.Icon,{name:"plus"}),o("third_party_collection_detail_page.new_items")]}),g.availableSlots!==void 0?e.jsx(Jt,{collection:a,items:ce,slots:g.availableSlots}):null,e.jsx(Yt,{collection:a,items:k})]})]})]}),!a.isMappingComplete&&e.jsxs("div",{className:u.migrationBanner,children:[e.jsx(s.Icon,{name:"sync"})," ",o("third_party_collection_detail_page.migration_banner")]}),e.jsx("div",{className:u.body,children:O?e.jsx("div",{className:u.loader,children:e.jsx(s.Loader,{size:"massive",inline:!0,active:!0})}):e.jsxs(e.Fragment,{children:[(a.itemCount??0)>0&&e.jsxs("div",{className:u.searchContainer,children:[k.length>0&&e.jsx("div",{className:u.searchInfo,children:o("third_party_collection_detail_page.search_info",{page:(P-1)*G+1,pageTotal:Math.min(z,P*G),total:z})}),e.jsx(s.Dropdown,{className:u.syncedStatusList,direction:"left",value:A,options:$e,onChange:re})]}),k.length?e.jsxs(e.Fragment,{children:[de>0?e.jsxs("div",{className:u.selectionInfo,children:[o("third_party_collection_detail_page.selection",{count:de})," ",e.jsx("span",{className:"link",onClick:oe,children:o("third_party_collection_detail_page.clear_selection")}),".  ",R&&K>1?e.jsx("span",{className:"link",onClick:()=>Te(H),children:o("third_party_collection_detail_page.select_all",{total:z})}):null," "]}):null,e.jsxs("div",{children:[b&&me?e.jsx(Qs,{areAllSelected:W(k),onSelectedAllClick:(E,X)=>ie(k,X)}):e.jsx(zs,{areAllSelected:W(k),onSelectedAllClick:(E,X)=>ie(k,X)}),k.map(E=>b&&me?e.jsx(Ws,{collection:a,item:E,selected:!!h[E.id],onSelect:J},E.id):e.jsx(gs,{collection:a,item:E,selected:!!h[E.id],onSelect:J},E.id)),K>1?e.jsx(s.Pagination,{firstItem:null,lastItem:null,totalPages:K,activePage:P,onPageChange:Me}):null]})]}):e.jsxs("div",{className:u.empty,children:[e.jsx("div",{className:_e?u.start:u.sparkles}),_e?e.jsxs(e.Fragment,{children:[e.jsx("h3",{children:o("third_party_collection_detail_page.start_adding_items")}),e.jsx("p",{children:o("third_party_collection_detail_page.cant_remove")})]}):e.jsxs(e.Fragment,{children:[e.jsx("h3",{children:o("third_party_collection_detail_page.not_found")}),e.jsx("p",{children:o("third_party_collection_detail_page.try_again")})]})]})]})})]}):(console.error("No collection defined"),null)},[a,h,y,S,b,j,P,J,W,re,oe,A]),Ae=le&&a;return e.jsx(Mt,{id:a==null?void 0:a.id,itemsPage:P,itemsPageSize:G,fetchCollectionItemsOptions:Be,children:({isLoadingCollection:g,isLoadingCollectionItems:p,items:k,paginatedItems:O,onFetchCollectionItemsPages:H})=>e.jsx(Et,{className:u.main,hasNavigation:!le&&!C&&!g,isLoading:C||g,children:Ae&&i?Le(i,k,O,p,H):e.jsx(Tt,{})})})}const Dn=()=>{const t=ht(),n=St()||"",r=Pt(),i=w(c=>Ie(c,n)),m=l.useMemo(()=>i?pe(i):!1,[i]),a=w(c=>{var v;return((v=Ce(c,n))==null?void 0:v.total)||null}),j=w(c=>i?pt(c,i.id):[]),C=w(c=>i&&Ce(c,i.id)||null),b=w(Ct),S=w(xt),I=w(Ne),_=w(c=>i&&pe(i)?jt(c,i):null),d=w(c=>It(c)),f=w(c=>ke(kt(c),wt)||Nt(c)||!!(m&&i&&ft(c,Se(i.urn)))),y=w(c=>yt(c)),h=w(c=>Dt(c)),D=l.useCallback(c=>t(M("CreateItemsModal",{collectionId:c})),[t]),P=l.useCallback(c=>t(M("EditCollectionNameModal",{collection:c})),[t]),L=l.useCallback(c=>t(bt(c)),[t]),R=l.useCallback(c=>t(vt(c)),[t]);return e.jsx(Pn,{items:j,totalItems:a,currentPage:r,paginatedData:C,wallet:b,collection:i,isThirdPartyV2Enabled:S,isLinkedWearablesPaymentsEnabled:I,thirdParty:_,authorizations:d,isLoading:f,isLoadingAvailableSlots:y,lastLocation:h,onNewItem:D,onEditName:P,onFetchAvailableSlots:L,onFetchThirdParty:R})},Hn=Dn;export{Hn as default};
@@ -1 +1 @@
1
- import{ak as C,a4 as k,b4 as T,J as o,R as S,N as e,am as f,S as s,ao as w,M as n,aa as D,ab as x,h_ as L,U as P,bq as E,bJ as R,a2 as F,a3 as M,W as v,ew as y}from"./index-BcJ8MhYC.js";import{j as I}from"./hooks-DXNgH_m2.js";import{N as z}from"./NotFound-4sT-K9SU.js";const H=c=>{const{template:a,isLoading:r,scene:l,onOpenModal:i,onLoadTemplateScene:p}=c,m=k(),t=T(),d=o.useMemo(()=>({id:a==null?void 0:a.id,name:a==null?void 0:a.title,description:a==null?void 0:a.description}),[a]);o.useEffect(()=>{a&&!l&&p(a)},[a,l,p]);const j=()=>e.jsx(s.Center,{children:e.jsx(s.Loader,{active:!0,size:"large"})}),h=()=>e.jsx(z,{}),g=o.useCallback(()=>{t==null||t.track("Download Template",d),i("ExportModal",{project:a})},[t,a,d,i]),_=o.useCallback(()=>{m.push(S.templates())},[m]),N=o.useCallback(()=>{a&&(t==null||t.track("Select Template",d),i("CloneTemplateModal",{template:a}))},[t,a,d,i]),b=u=>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:_,"aria-label":n("templates_page.back_to_scenes")}),e.jsx(s.Header,{className:"name",children:u.title})]})})})})}),e.jsx(s.Section,{children:e.jsx("div",{className:"header-image",style:{backgroundImage:`url(${u.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:n("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:n("template_detail_page.description")}),e.jsx("p",{className:"description-content",children:u.description})]}),e.jsxs(s.Column,{className:"action-buttons-container",children:[e.jsx(s.Button,{primary:!0,className:"select-button",onClick:N,children:n("template_detail_page.select_template")}),e.jsx(s.Button,{inverted:!0,className:"download-button",onClick:g,children:n("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:n("template_detail_page.scene_details")}),e.jsx("p",{className:"description-content world",children:n("template_detail_page.built_for_world")}),e.jsx("p",{className:"description-content size-scene",children:n("template_detail_page.parcels",{...u.layout})}),e.jsx("p",{className:"description-content personalize-content",children:n("template_detail_page.personalize_it_yourself")}),l&&e.jsx("p",{className:"description-content sdk",children:l!=null&&l.sdk6?"SDK 6":"SDK 7"})]})})]})]});return e.jsxs(e.Fragment,{children:[e.jsx(f,{}),e.jsxs(s.Page,{className:"TemplateDetailPage",isFullscreen:!0,children:[r&&!a?j():null,!r&&!a?h():null,a?b(a):null]}),e.jsx(w,{})]})},B=C.memo(H),O=()=>{const c=D(),a=I(),r=x(t=>a&&L(t)[a]||null),l=x(t=>r&&P(t)[r.sceneId]||null),i=x(t=>E(R(t),y)),p=o.useCallback((t,d)=>c(F(t,d)),[c]),m=o.useCallback(t=>c(M(t,v.TEMPLATE)),[c]);return e.jsx(B,{template:r,scene:l,isLoading:i,onOpenModal:p,onLoadTemplateScene:m})},$=O;export{$ as default};
1
+ import{ak as C,a4 as k,b4 as T,J as o,R as S,N as e,am as f,S as s,ao as w,M as n,aa as D,ab as x,h_ as L,U as P,bq as E,bJ as R,a2 as F,a3 as M,W as v,ew as y}from"./index-DHYWV3bH.js";import{j as I}from"./hooks-CPkpImRF.js";import{N as z}from"./NotFound-2BVxtvD7.js";const H=c=>{const{template:a,isLoading:r,scene:l,onOpenModal:i,onLoadTemplateScene:p}=c,m=k(),t=T(),d=o.useMemo(()=>({id:a==null?void 0:a.id,name:a==null?void 0:a.title,description:a==null?void 0:a.description}),[a]);o.useEffect(()=>{a&&!l&&p(a)},[a,l,p]);const j=()=>e.jsx(s.Center,{children:e.jsx(s.Loader,{active:!0,size:"large"})}),h=()=>e.jsx(z,{}),g=o.useCallback(()=>{t==null||t.track("Download Template",d),i("ExportModal",{project:a})},[t,a,d,i]),_=o.useCallback(()=>{m.push(S.templates())},[m]),N=o.useCallback(()=>{a&&(t==null||t.track("Select Template",d),i("CloneTemplateModal",{template:a}))},[t,a,d,i]),b=u=>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:_,"aria-label":n("templates_page.back_to_scenes")}),e.jsx(s.Header,{className:"name",children:u.title})]})})})})}),e.jsx(s.Section,{children:e.jsx("div",{className:"header-image",style:{backgroundImage:`url(${u.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:n("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:n("template_detail_page.description")}),e.jsx("p",{className:"description-content",children:u.description})]}),e.jsxs(s.Column,{className:"action-buttons-container",children:[e.jsx(s.Button,{primary:!0,className:"select-button",onClick:N,children:n("template_detail_page.select_template")}),e.jsx(s.Button,{inverted:!0,className:"download-button",onClick:g,children:n("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:n("template_detail_page.scene_details")}),e.jsx("p",{className:"description-content world",children:n("template_detail_page.built_for_world")}),e.jsx("p",{className:"description-content size-scene",children:n("template_detail_page.parcels",{...u.layout})}),e.jsx("p",{className:"description-content personalize-content",children:n("template_detail_page.personalize_it_yourself")}),l&&e.jsx("p",{className:"description-content sdk",children:l!=null&&l.sdk6?"SDK 6":"SDK 7"})]})})]})]});return e.jsxs(e.Fragment,{children:[e.jsx(f,{}),e.jsxs(s.Page,{className:"TemplateDetailPage",isFullscreen:!0,children:[r&&!a?j():null,!r&&!a?h():null,a?b(a):null]}),e.jsx(w,{})]})},B=C.memo(H),O=()=>{const c=D(),a=I(),r=x(t=>a&&L(t)[a]||null),l=x(t=>r&&P(t)[r.sceneId]||null),i=x(t=>E(R(t),y)),p=o.useCallback((t,d)=>c(F(t,d)),[c]),m=o.useCallback(t=>c(M(t,v.TEMPLATE)),[c]);return e.jsx(B,{template:r,scene:l,isLoading:i,onOpenModal:p,onLoadTemplateScene:m})},$=O;export{$ as default};
@@ -1 +1 @@
1
- ._image_142g7_1,._main_142g7_2{position:relative;width:64px;height:64px;border-radius:50%!important}._image_142g7_1{overflow:hidden}._network_142g7_13{position:absolute;bottom:0;right:0;width:32px;height:32px;z-index:1}._ellipsis_4huv2_1{margin:auto!important;color:var(--primary-text)}._itemImage_1y9df_1{min-width:64px;max-width:64px;height:64px;padding:5px;margin-left:18px;margin-right:24px}._itemStatus_1y9df_10{margin-right:4px}._grid_1y9df_14{padding:10px 0!important;color:var(--text);border-bottom:1px solid var(--divider)}._grid_1y9df_14:hover{background-color:#24212966;color:var(--text)}._row_1y9df_25{align-items:center!important;font-size:15px}._column_1y9df_30{display:flex!important}._statusColumn_1y9df_34{font-size:13px;text-transform:uppercase}._statusColumn_1y9df_34._synced_1y9df_39{color:#34ce76}._statusColumn_1y9df_34._unsynced_1y9df_43{color:#fc9965}._avatarColumn_1y9df_47{align-items:center;padding-left:10px!important}._nameWrapper_1y9df_52{display:flex;align-items:center;overflow:hidden}._name_1y9df_52{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._itemActions_1y9df_65{display:flex;align-items:center;justify-content:flex-end;width:100%}._action_1y9df_72{margin-left:5px}._status_rgxu1_1{text-transform:uppercase;padding:4px 8px;border-radius:32px;display:inline-flex;align-items:center;gap:4px}._status_rgxu1_1 .icon{height:18px}._pending_migration_rgxu1_14{color:#ffbc5b;background-color:#ffbc5b33}._synced_rgxu1_19{color:#65d890;background-color:#65d89033}._unpublished_rgxu1_24,._unsynced_rgxu1_25{color:#63b4f6;background-color:#63b4f633}._pending_mapping_rgxu1_30,._under_review_rgxu1_31{color:#ecebed;background-color:#ecebed33}._icon_rgxu1_10{width:17px;height:17px}._itemImage_1rili_1{min-width:64px;max-width:64px;height:64px;padding:5px;margin-left:18px;margin-right:24px}._itemStatus_1rili_10{margin-right:4px}._grid_1rili_14{padding:10px 0!important;color:var(--text);border-bottom:1px solid var(--divider);position:relative}._grid_1rili_14:not(._loading_1rili_21):hover{background-color:#24212966;color:var(--text)}._row_1rili_26{align-items:center!important;font-size:15px}._column_1rili_31{display:flex!important}._avatarColumn_1rili_35{align-items:center;padding-left:10px!important}._nameWrapper_1rili_40{display:flex;align-items:center;overflow:hidden}._name_1rili_40{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._itemActions_1rili_53{display:flex;align-items:center;justify-content:flex-end;width:100%}._action_1rili_60{margin-left:5px}._overlay_1rili_65{position:absolute;pointer-events:none;z-index:100000000;top:0;left:0;width:100%;height:100%;background-color:#00000046;z-index:1000;display:flex;justify-content:center;align-items:center}._itemCheckbox_2k9qa_1{margin-right:10px}._gridHeader_2k9qa_5.ui.grid{border-bottom:1px solid var(--divider);padding-bottom:10px;color:var(--secondary-text)}._gridHeader_2k9qa_5.ui.grid>.row>.column:first-child{padding-left:10px}._gridHeader_2k9qa_5.ui.grid>.row>.column._itemColumn_2k9qa_15{display:flex;align-items:center}._gridHeader_4acv6_1.ui.grid{border-bottom:1px solid var(--divider);padding-bottom:10px;color:var(--secondary-text)}._gridHeader_4acv6_1.ui.grid>.row>.column:first-child{padding-left:10px}._gridHeader_4acv6_1.ui.grid>.row>.column._itemColumn_4acv6_11{display:flex;align-items:center}._itemCheckbox_4acv6_16{margin-right:10px}._linkedToColumn_4acv6_20>span{margin-right:6px}._main_16i8r_3,._main_16i8r_3>.ui.container{display:flex;flex-direction:column;min-height:0;flex:1}._slots_16i8r_11{font-weight:700;text-transform:uppercase;position:relative}._slots_16i8r_11:before{content:"";display:inline-block;background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%202C4%203.10457%203.10457%204%202%204C0.89543%204%200%203.10457%200%202C0%200.89543%200.89543%200%202%200C3.10457%200%204%200.89543%204%202Z'%20fill='%23FF2D55'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%208C4%209.10457%203.10457%2010%202%2010C0.89543%2010%200%209.10457%200%208C0%206.89543%200.89543%206%202%206C3.10457%206%204%206.89543%204%208Z'%20fill='%23FF2D55'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%2014C4%2015.1046%203.10457%2016%202%2016C0.89543%2016%200%2015.1046%200%2014C0%2012.8954%200.89543%2012%202%2012C3.10457%2012%204%2012.8954%204%2014Z'%20fill='%23FF2D55'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10%202C10%203.10457%209.10457%204%208%204C6.89543%204%206%203.10457%206%202C6%200.89543%206.89543%200%208%200C9.10457%200%2010%200.89543%2010%202Z'%20fill='%23FF2D55'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10%208C10%209.10457%209.10457%2010%208%2010C6.89543%2010%206%209.10457%206%208C6%206.89543%206.89543%206%208%206C9.10457%206%2010%206.89543%2010%208Z'%20fill='%23FF2D55'/%3e%3cpath%20d='M8%2015.5C8.82843%2015.5%209.5%2014.8284%209.5%2014C9.5%2013.1716%208.82843%2012.5%208%2012.5C7.17157%2012.5%206.5%2013.1716%206.5%2014C6.5%2014.8284%207.17157%2015.5%208%2015.5Z'%20stroke='%23FF2D55'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16%202C16%203.10457%2015.1046%204%2014%204C12.8954%204%2012%203.10457%2012%202C12%200.89543%2012.8954%200%2014%200C15.1046%200%2016%200.89543%2016%202Z'%20fill='%23FF2D55'/%3e%3cpath%20d='M14%209.5C14.8284%209.5%2015.5%208.82843%2015.5%208C15.5%207.17157%2014.8284%206.5%2014%206.5C13.1716%206.5%2012.5%207.17157%2012.5%208C12.5%208.82843%2013.1716%209.5%2014%209.5Z'%20stroke='%23FF2D55'/%3e%3cpath%20d='M14%2015.5C14.8284%2015.5%2015.5%2014.8284%2015.5%2014C15.5%2013.1716%2014.8284%2012.5%2014%2012.5C13.1716%2012.5%2012.5%2013.1716%2012.5%2014C12.5%2014.8284%2013.1716%2015.5%2014%2015.5Z'%20stroke='%23FF2D55'/%3e%3c/svg%3e");width:16px;height:16px;top:3px;position:relative;margin-right:8px}.button._slots_16i8r_11._empty_16i8r_28:before{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%202C4%203.10457%203.10457%204%202%204C0.89543%204%200%203.10457%200%202C0%200.89543%200.89543%200%202%200C3.10457%200%204%200.89543%204%202Z'%20fill='%23736E7D'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%208C4%209.10457%203.10457%2010%202%2010C0.89543%2010%200%209.10457%200%208C0%206.89543%200.89543%206%202%206C3.10457%206%204%206.89543%204%208Z'%20fill='%23736E7D'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%2014C4%2015.1046%203.10457%2016%202%2016C0.89543%2016%200%2015.1046%200%2014C0%2012.8954%200.89543%2012%202%2012C3.10457%2012%204%2012.8954%204%2014Z'%20fill='%23736E7D'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10%202C10%203.10457%209.10457%204%208%204C6.89543%204%206%203.10457%206%202C6%200.89543%206.89543%200%208%200C9.10457%200%2010%200.89543%2010%202Z'%20fill='%23736E7D'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10%208C10%209.10457%209.10457%2010%208%2010C6.89543%2010%206%209.10457%206%208C6%206.89543%206.89543%206%208%206C9.10457%206%2010%206.89543%2010%208Z'%20fill='%23736E7D'/%3e%3cpath%20d='M8%2015.5C8.82843%2015.5%209.5%2014.8284%209.5%2014C9.5%2013.1716%208.82843%2012.5%208%2012.5C7.17157%2012.5%206.5%2013.1716%206.5%2014C6.5%2014.8284%207.17157%2015.5%208%2015.5Z'%20stroke='%23736E7D'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16%202C16%203.10457%2015.1046%204%2014%204C12.8954%204%2012%203.10457%2012%202C12%200.89543%2012.8954%200%2014%200C15.1046%200%2016%200.89543%2016%202Z'%20fill='%23736E7D'/%3e%3cpath%20d='M14%209.5C14.8284%209.5%2015.5%208.82843%2015.5%208C15.5%207.17157%2014.8284%206.5%2014%206.5C13.1716%206.5%2012.5%207.17157%2012.5%208C12.5%208.82843%2013.1716%209.5%2014%209.5Z'%20stroke='%23736E7D'/%3e%3cpath%20d='M14%2015.5C14.8284%2015.5%2015.5%2014.8284%2015.5%2014C15.5%2013.1716%2014.8284%2012.5%2014%2012.5C13.1716%2012.5%2012.5%2013.1716%2012.5%2014C12.5%2014.8284%2013.1716%2015.5%2014%2015.5Z'%20stroke='%23736E7D'/%3e%3c/svg%3e")}._searchContainer_16i8r_32{display:flex;align-items:center;justify-content:end}._searchContainer_16i8r_32 .dcl.text-filter{flex:1}._searchContainer_16i8r_32 ._searchInfo_16i8r_42{color:var(--secondary-text)}._syncedStatusList_16i8r_46.ui.dropdown{margin-left:25px;padding-left:7px;margin-right:10px;color:var(--primary)}._selectionInfo_16i8r_53{display:flex;justify-content:center;align-items:center;margin-bottom:20px;padding:10px 0;border:1px solid var(--secondary-text);border-radius:4px}._header_16i8r_63{display:flex;flex-direction:row;align-items:center;gap:16px;padding-right:142px;padding-left:90px;min-width:1400px;width:100%}._header_16i8r_63 ._content_16i8r_74{display:flex;flex-direction:row;background-color:#242129;padding:24px;width:calc(100% - 50px);border-radius:8px}._header_16i8r_63 ._title_16i8r_83{display:flex;flex-direction:row;align-items:center;gap:12px;overflow:hidden;margin-right:20px;flex:1 1 auto;min-width:0}._editCollectionName_16i8r_96{visibility:hidden;padding-left:16px}._header_16i8r_63 ._title_16i8r_83 ._name_16i8r_101:hover+._editCollectionName_16i8r_96{visibility:visible}._nameAndType_16i8r_105{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}._nameWrapper_16i8r_115{display:flex;flex-direction:row;align-items:center;gap:15px;min-width:0;flex:1}._header_16i8r_63 ._title_16i8r_83 ._name_16i8r_101{margin-top:0;margin-bottom:0;cursor:pointer;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;min-width:0;width:fit-content}._header_16i8r_63 ._title_16i8r_83 ._size_16i8r_139{font-size:16px}._header_16i8r_63 ._actions_16i8r_143{display:flex;flex-direction:row;align-items:center;gap:16px;flex:0 0 auto}._body_16i8r_151{display:flex;flex-direction:column;padding-right:142px;padding-left:142px;margin-top:16px;gap:16px;min-width:1400px;flex:1}._info_16i8r_162{display:flex;flex-direction:row;gap:10px;align-items:center;font-weight:600}._infoHeader_16i8r_170{display:flex;flex-direction:row;text-transform:uppercase;color:#a09ba8;gap:10px}._infoContent_16i8r_178{display:flex;flex-direction:row;align-items:center;gap:5px;border-radius:6px;padding:8px;background-color:#43404a}._info_16i8r_162 .dui-info-tooltip__trigger{background-repeat:no-repeat;background-size:cover;height:20px;width:20px}._slotsIcon_16i8r_195{background-color:#5e5b67;border-radius:32px;padding:2px;height:24px;width:24px;background-image:url("data:image/svg+xml,%3csvg%20width='19'%20height='14'%20viewBox='0%200%2019%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204H4V0H2C0.9%200%200%200.9%200%202V4ZM0%209H4V5H0V9ZM5%209H9V5H5V9ZM10%209H14V5H10V9ZM5%204H9V0H5V4ZM10%200V4H14V0H10ZM15%209H19V5H15V9ZM2%2014H4V10H0V12C0%2013.1%200.9%2014%202%2014ZM5%2014H9V10H5V14ZM10%2014H14V10H10V14ZM15%2014H17C18.1%2014%2019%2013.1%2019%2012V10H15V14ZM15%200V4H19V2C19%200.9%2018.1%200%2017%200H15Z'%20fill='white'/%3e%3c/svg%3e");background-size:70%;background-position:center;background-repeat:no-repeat}._copyButton_16i8r_207{cursor:pointer}._empty_16i8r_28{padding:200px 0;width:100%;border-radius:8px;justify-content:center;color:var(--secondary-text);text-align:center;line-height:22px;font-size:15px;background-color:#242129}._empty_16i8r_28 h3{color:#cfcdd4;margin-bottom:5px}._empty_16i8r_28 p{color:#a09ba8}._sparkles_16i8r_232{width:54px;height:56px;background-image:url(https://cdn.decentraland.org/@dcl/builder-site/7.17.0/assets/sparkles-C-WJN0Gh.svg);background-repeat:no-repeat;margin:auto auto 20px}._start_16i8r_241{width:80px;height:80px;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%3cg%20clip-path='url(%23clip0_6709_15241)'%3e%3cpath%20d='M20%2032.0004H28C29.1%2032.0004%2030%2031.1004%2030%2030.0004V20.0004H33.18C34.96%2020.0004%2035.86%2017.8404%2034.6%2016.5804L25.42%207.40043C24.64%206.62043%2023.38%206.62043%2022.6%207.40043L13.42%2016.5804C12.16%2017.8404%2013.04%2020.0004%2014.82%2020.0004H18V30.0004C18%2031.1004%2018.9%2032.0004%2020%2032.0004ZM12%2036.0004H36C37.1%2036.0004%2038%2036.9004%2038%2038.0004C38%2039.1004%2037.1%2040.0004%2036%2040.0004H12C10.9%2040.0004%2010%2039.1004%2010%2038.0004C10%2036.9004%2010.9%2036.0004%2012%2036.0004Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_6709_15241'%3e%3crect%20width='48'%20height='48'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e");background-size:48px;background-position:center;background-repeat:no-repeat;border-radius:50%;background-color:#43404a;margin:auto auto 20px}._migrationBanner_16i8r_254{min-width:1116px;color:#000;display:flex;align-items:center;background-color:#ffbc5b;padding:9px 16px;min-height:42px;font-weight:700;text-transform:uppercase;border-radius:8px;margin-right:142px;margin-left:142px;margin-top:15px}._migrationBanner_16i8r_254 .icon{height:18px;margin-right:10px}._type_16i8r_277{display:flex;flex-direction:row;gap:8px}._linkedWearableBadge_16i8r_283{padding:4px 8px;border-radius:32px}._typeBadge_16i8r_288{background-color:#00a146}._programmaticBadge_16i8r_292{background-color:#691fa9}._standardBadge_16i8r_296{background-color:#43404a}._loader_16i8r_302{display:flex;justify-content:center;align-items:center;min-height:0;flex:1}
1
+ ._image_142g7_1,._main_142g7_2{position:relative;width:64px;height:64px;border-radius:50%!important}._image_142g7_1{overflow:hidden}._network_142g7_13{position:absolute;bottom:0;right:0;width:32px;height:32px;z-index:1}._ellipsis_4huv2_1{margin:auto!important;color:var(--primary-text)}._itemImage_1y9df_1{min-width:64px;max-width:64px;height:64px;padding:5px;margin-left:18px;margin-right:24px}._itemStatus_1y9df_10{margin-right:4px}._grid_1y9df_14{padding:10px 0!important;color:var(--text);border-bottom:1px solid var(--divider)}._grid_1y9df_14:hover{background-color:#24212966;color:var(--text)}._row_1y9df_25{align-items:center!important;font-size:15px}._column_1y9df_30{display:flex!important}._statusColumn_1y9df_34{font-size:13px;text-transform:uppercase}._statusColumn_1y9df_34._synced_1y9df_39{color:#34ce76}._statusColumn_1y9df_34._unsynced_1y9df_43{color:#fc9965}._avatarColumn_1y9df_47{align-items:center;padding-left:10px!important}._nameWrapper_1y9df_52{display:flex;align-items:center;overflow:hidden}._name_1y9df_52{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._itemActions_1y9df_65{display:flex;align-items:center;justify-content:flex-end;width:100%}._action_1y9df_72{margin-left:5px}._status_rgxu1_1{text-transform:uppercase;padding:4px 8px;border-radius:32px;display:inline-flex;align-items:center;gap:4px}._status_rgxu1_1 .icon{height:18px}._pending_migration_rgxu1_14{color:#ffbc5b;background-color:#ffbc5b33}._synced_rgxu1_19{color:#65d890;background-color:#65d89033}._unpublished_rgxu1_24,._unsynced_rgxu1_25{color:#63b4f6;background-color:#63b4f633}._pending_mapping_rgxu1_30,._under_review_rgxu1_31{color:#ecebed;background-color:#ecebed33}._icon_rgxu1_10{width:17px;height:17px}._itemImage_1rili_1{min-width:64px;max-width:64px;height:64px;padding:5px;margin-left:18px;margin-right:24px}._itemStatus_1rili_10{margin-right:4px}._grid_1rili_14{padding:10px 0!important;color:var(--text);border-bottom:1px solid var(--divider);position:relative}._grid_1rili_14:not(._loading_1rili_21):hover{background-color:#24212966;color:var(--text)}._row_1rili_26{align-items:center!important;font-size:15px}._column_1rili_31{display:flex!important}._avatarColumn_1rili_35{align-items:center;padding-left:10px!important}._nameWrapper_1rili_40{display:flex;align-items:center;overflow:hidden}._name_1rili_40{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._itemActions_1rili_53{display:flex;align-items:center;justify-content:flex-end;width:100%}._action_1rili_60{margin-left:5px}._overlay_1rili_65{position:absolute;pointer-events:none;z-index:100000000;top:0;left:0;width:100%;height:100%;background-color:#00000046;z-index:1000;display:flex;justify-content:center;align-items:center}._itemCheckbox_2k9qa_1{margin-right:10px}._gridHeader_2k9qa_5.ui.grid{border-bottom:1px solid var(--divider);padding-bottom:10px;color:var(--secondary-text)}._gridHeader_2k9qa_5.ui.grid>.row>.column:first-child{padding-left:10px}._gridHeader_2k9qa_5.ui.grid>.row>.column._itemColumn_2k9qa_15{display:flex;align-items:center}._gridHeader_4acv6_1.ui.grid{border-bottom:1px solid var(--divider);padding-bottom:10px;color:var(--secondary-text)}._gridHeader_4acv6_1.ui.grid>.row>.column:first-child{padding-left:10px}._gridHeader_4acv6_1.ui.grid>.row>.column._itemColumn_4acv6_11{display:flex;align-items:center}._itemCheckbox_4acv6_16{margin-right:10px}._linkedToColumn_4acv6_20>span{margin-right:6px}._main_16i8r_3,._main_16i8r_3>.ui.container{display:flex;flex-direction:column;min-height:0;flex:1}._slots_16i8r_11{font-weight:700;text-transform:uppercase;position:relative}._slots_16i8r_11:before{content:"";display:inline-block;background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%202C4%203.10457%203.10457%204%202%204C0.89543%204%200%203.10457%200%202C0%200.89543%200.89543%200%202%200C3.10457%200%204%200.89543%204%202Z'%20fill='%23FF2D55'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%208C4%209.10457%203.10457%2010%202%2010C0.89543%2010%200%209.10457%200%208C0%206.89543%200.89543%206%202%206C3.10457%206%204%206.89543%204%208Z'%20fill='%23FF2D55'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%2014C4%2015.1046%203.10457%2016%202%2016C0.89543%2016%200%2015.1046%200%2014C0%2012.8954%200.89543%2012%202%2012C3.10457%2012%204%2012.8954%204%2014Z'%20fill='%23FF2D55'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10%202C10%203.10457%209.10457%204%208%204C6.89543%204%206%203.10457%206%202C6%200.89543%206.89543%200%208%200C9.10457%200%2010%200.89543%2010%202Z'%20fill='%23FF2D55'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10%208C10%209.10457%209.10457%2010%208%2010C6.89543%2010%206%209.10457%206%208C6%206.89543%206.89543%206%208%206C9.10457%206%2010%206.89543%2010%208Z'%20fill='%23FF2D55'/%3e%3cpath%20d='M8%2015.5C8.82843%2015.5%209.5%2014.8284%209.5%2014C9.5%2013.1716%208.82843%2012.5%208%2012.5C7.17157%2012.5%206.5%2013.1716%206.5%2014C6.5%2014.8284%207.17157%2015.5%208%2015.5Z'%20stroke='%23FF2D55'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16%202C16%203.10457%2015.1046%204%2014%204C12.8954%204%2012%203.10457%2012%202C12%200.89543%2012.8954%200%2014%200C15.1046%200%2016%200.89543%2016%202Z'%20fill='%23FF2D55'/%3e%3cpath%20d='M14%209.5C14.8284%209.5%2015.5%208.82843%2015.5%208C15.5%207.17157%2014.8284%206.5%2014%206.5C13.1716%206.5%2012.5%207.17157%2012.5%208C12.5%208.82843%2013.1716%209.5%2014%209.5Z'%20stroke='%23FF2D55'/%3e%3cpath%20d='M14%2015.5C14.8284%2015.5%2015.5%2014.8284%2015.5%2014C15.5%2013.1716%2014.8284%2012.5%2014%2012.5C13.1716%2012.5%2012.5%2013.1716%2012.5%2014C12.5%2014.8284%2013.1716%2015.5%2014%2015.5Z'%20stroke='%23FF2D55'/%3e%3c/svg%3e");width:16px;height:16px;top:3px;position:relative;margin-right:8px}.button._slots_16i8r_11._empty_16i8r_28:before{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%202C4%203.10457%203.10457%204%202%204C0.89543%204%200%203.10457%200%202C0%200.89543%200.89543%200%202%200C3.10457%200%204%200.89543%204%202Z'%20fill='%23736E7D'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%208C4%209.10457%203.10457%2010%202%2010C0.89543%2010%200%209.10457%200%208C0%206.89543%200.89543%206%202%206C3.10457%206%204%206.89543%204%208Z'%20fill='%23736E7D'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%2014C4%2015.1046%203.10457%2016%202%2016C0.89543%2016%200%2015.1046%200%2014C0%2012.8954%200.89543%2012%202%2012C3.10457%2012%204%2012.8954%204%2014Z'%20fill='%23736E7D'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10%202C10%203.10457%209.10457%204%208%204C6.89543%204%206%203.10457%206%202C6%200.89543%206.89543%200%208%200C9.10457%200%2010%200.89543%2010%202Z'%20fill='%23736E7D'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10%208C10%209.10457%209.10457%2010%208%2010C6.89543%2010%206%209.10457%206%208C6%206.89543%206.89543%206%208%206C9.10457%206%2010%206.89543%2010%208Z'%20fill='%23736E7D'/%3e%3cpath%20d='M8%2015.5C8.82843%2015.5%209.5%2014.8284%209.5%2014C9.5%2013.1716%208.82843%2012.5%208%2012.5C7.17157%2012.5%206.5%2013.1716%206.5%2014C6.5%2014.8284%207.17157%2015.5%208%2015.5Z'%20stroke='%23736E7D'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16%202C16%203.10457%2015.1046%204%2014%204C12.8954%204%2012%203.10457%2012%202C12%200.89543%2012.8954%200%2014%200C15.1046%200%2016%200.89543%2016%202Z'%20fill='%23736E7D'/%3e%3cpath%20d='M14%209.5C14.8284%209.5%2015.5%208.82843%2015.5%208C15.5%207.17157%2014.8284%206.5%2014%206.5C13.1716%206.5%2012.5%207.17157%2012.5%208C12.5%208.82843%2013.1716%209.5%2014%209.5Z'%20stroke='%23736E7D'/%3e%3cpath%20d='M14%2015.5C14.8284%2015.5%2015.5%2014.8284%2015.5%2014C15.5%2013.1716%2014.8284%2012.5%2014%2012.5C13.1716%2012.5%2012.5%2013.1716%2012.5%2014C12.5%2014.8284%2013.1716%2015.5%2014%2015.5Z'%20stroke='%23736E7D'/%3e%3c/svg%3e")}._searchContainer_16i8r_32{display:flex;align-items:center;justify-content:end}._searchContainer_16i8r_32 .dcl.text-filter{flex:1}._searchContainer_16i8r_32 ._searchInfo_16i8r_42{color:var(--secondary-text)}._syncedStatusList_16i8r_46.ui.dropdown{margin-left:25px;padding-left:7px;margin-right:10px;color:var(--primary)}._selectionInfo_16i8r_53{display:flex;justify-content:center;align-items:center;margin-bottom:20px;padding:10px 0;border:1px solid var(--secondary-text);border-radius:4px}._header_16i8r_63{display:flex;flex-direction:row;align-items:center;gap:16px;padding-right:142px;padding-left:90px;min-width:1400px;width:100%}._header_16i8r_63 ._content_16i8r_74{display:flex;flex-direction:row;background-color:#242129;padding:24px;width:calc(100% - 50px);border-radius:8px}._header_16i8r_63 ._title_16i8r_83{display:flex;flex-direction:row;align-items:center;gap:12px;overflow:hidden;margin-right:20px;flex:1 1 auto;min-width:0}._editCollectionName_16i8r_96{visibility:hidden;padding-left:16px}._header_16i8r_63 ._title_16i8r_83 ._name_16i8r_101:hover+._editCollectionName_16i8r_96{visibility:visible}._nameAndType_16i8r_105{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}._nameWrapper_16i8r_115{display:flex;flex-direction:row;align-items:center;gap:15px;min-width:0;flex:1}._header_16i8r_63 ._title_16i8r_83 ._name_16i8r_101{margin-top:0;margin-bottom:0;cursor:pointer;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;min-width:0;width:fit-content}._header_16i8r_63 ._title_16i8r_83 ._size_16i8r_139{font-size:16px}._header_16i8r_63 ._actions_16i8r_143{display:flex;flex-direction:row;align-items:center;gap:16px;flex:0 0 auto}._body_16i8r_151{display:flex;flex-direction:column;padding-right:142px;padding-left:142px;margin-top:16px;gap:16px;min-width:1400px;flex:1}._info_16i8r_162{display:flex;flex-direction:row;gap:10px;align-items:center;font-weight:600}._infoHeader_16i8r_170{display:flex;flex-direction:row;text-transform:uppercase;color:#a09ba8;gap:10px}._infoContent_16i8r_178{display:flex;flex-direction:row;align-items:center;gap:5px;border-radius:6px;padding:8px;background-color:#43404a}._info_16i8r_162 .dui-info-tooltip__trigger{background-repeat:no-repeat;background-size:cover;height:20px;width:20px}._slotsIcon_16i8r_195{background-color:#5e5b67;border-radius:32px;padding:2px;height:24px;width:24px;background-image:url("data:image/svg+xml,%3csvg%20width='19'%20height='14'%20viewBox='0%200%2019%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204H4V0H2C0.9%200%200%200.9%200%202V4ZM0%209H4V5H0V9ZM5%209H9V5H5V9ZM10%209H14V5H10V9ZM5%204H9V0H5V4ZM10%200V4H14V0H10ZM15%209H19V5H15V9ZM2%2014H4V10H0V12C0%2013.1%200.9%2014%202%2014ZM5%2014H9V10H5V14ZM10%2014H14V10H10V14ZM15%2014H17C18.1%2014%2019%2013.1%2019%2012V10H15V14ZM15%200V4H19V2C19%200.9%2018.1%200%2017%200H15Z'%20fill='white'/%3e%3c/svg%3e");background-size:70%;background-position:center;background-repeat:no-repeat}._copyButton_16i8r_207{cursor:pointer}._empty_16i8r_28{padding:200px 0;width:100%;border-radius:8px;justify-content:center;color:var(--secondary-text);text-align:center;line-height:22px;font-size:15px;background-color:#242129}._empty_16i8r_28 h3{color:#cfcdd4;margin-bottom:5px}._empty_16i8r_28 p{color:#a09ba8}._sparkles_16i8r_232{width:54px;height:56px;background-image:url(https://cdn.decentraland.org/@dcl/builder-site/7.17.1-19665485717.commit-62c4593/assets/sparkles-C-WJN0Gh.svg);background-repeat:no-repeat;margin:auto auto 20px}._start_16i8r_241{width:80px;height:80px;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%3cg%20clip-path='url(%23clip0_6709_15241)'%3e%3cpath%20d='M20%2032.0004H28C29.1%2032.0004%2030%2031.1004%2030%2030.0004V20.0004H33.18C34.96%2020.0004%2035.86%2017.8404%2034.6%2016.5804L25.42%207.40043C24.64%206.62043%2023.38%206.62043%2022.6%207.40043L13.42%2016.5804C12.16%2017.8404%2013.04%2020.0004%2014.82%2020.0004H18V30.0004C18%2031.1004%2018.9%2032.0004%2020%2032.0004ZM12%2036.0004H36C37.1%2036.0004%2038%2036.9004%2038%2038.0004C38%2039.1004%2037.1%2040.0004%2036%2040.0004H12C10.9%2040.0004%2010%2039.1004%2010%2038.0004C10%2036.9004%2010.9%2036.0004%2012%2036.0004Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_6709_15241'%3e%3crect%20width='48'%20height='48'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e");background-size:48px;background-position:center;background-repeat:no-repeat;border-radius:50%;background-color:#43404a;margin:auto auto 20px}._migrationBanner_16i8r_254{min-width:1116px;color:#000;display:flex;align-items:center;background-color:#ffbc5b;padding:9px 16px;min-height:42px;font-weight:700;text-transform:uppercase;border-radius:8px;margin-right:142px;margin-left:142px;margin-top:15px}._migrationBanner_16i8r_254 .icon{height:18px;margin-right:10px}._type_16i8r_277{display:flex;flex-direction:row;gap:8px}._linkedWearableBadge_16i8r_283{padding:4px 8px;border-radius:32px}._typeBadge_16i8r_288{background-color:#00a146}._programmaticBadge_16i8r_292{background-color:#691fa9}._standardBadge_16i8r_296{background-color:#43404a}._loader_16i8r_302{display:flex;justify-content:center;align-items:center;min-height:0;flex:1}
@@ -1 +1 @@
1
- import{J as l,a4 as E,dF as w,R as I,bP as h,N as e,S as t,M as r,bO as T,T as y,dq as B,dv as H,ad as R,bq as O,cT as P,bY as F,ca as A,cW as q}from"./index-BcJ8MhYC.js";import{L as z}from"./LoggedInDetailPage.container-CsvKBMuj.js";import{B as D}from"./Back-CncB3o4T.js";import{N as M}from"./NotFound-4sT-K9SU.js";import"./Navigation.container-Uoa9cAN5.js";import"./selectors-DHi87VFf.js";import"./SignInRequired-BIpJsBqT.js";function G(i){const[s,u]=l.useState(void 0),[g,L]=l.useState(void 0),{isLoading:b,ens:o,landTiles:c}=i,m=E(),x=l.useMemo(()=>{const a=Object.values(c||{});if(a.length===1)return a[0].land;let n;for(const d of a)if(d.land.id!==o.landId){n=d.land;break}return n},[c]);l.useEffect(()=>{!s&&!b&&o&&u(x)},[x]);const j=l.useCallback((a,n)=>{const d=h(a,n);return c&&d in c?c[d].land:void 0},[c]),f=l.useCallback((a,n)=>{const d=j(a,n);d&&u(d)},[]),v=l.useCallback(()=>{const a=w(c,s.id);u(a)},[s,c]),S=l.useCallback(()=>{s&&m.push(I.landAssignENS(s.id,o.subdomain))},[o,m,s]),C=l.useCallback((a,n)=>{const d=h(a,n);return(!s||s.id!==d)&&g===d},[]),_=l.useCallback((a,n)=>C(a,n)&&j(a,n)?{color:"#fcc6d1",scale:1.4}:null,[]),k=l.useCallback((a,n)=>{L(h(a,n))},[]),p=l.useCallback(()=>{m.goBack()},[m]),N=s&&o&&s.id===o.landId;return e.jsx(z,{className:"ENSSelectLandPage",hasNavigation:!1,children:b?e.jsx(t.Loader,{active:!0,size:"massive"}):o?e.jsxs(e.Fragment,{children:[e.jsx(D,{absolute:!0,onClick:p}),e.jsxs(t.Narrow,{children:[e.jsx(t.Row,{children:e.jsx(t.Column,{children:e.jsxs(t.Section,{children:[e.jsx(t.Header,{className:"title",size:"large",children:r("ens_select_land_page.title",{name:o?o.subdomain:r("global.name")})}),e.jsx("span",{className:"subtitle",children:r("ens_select_land_page.subtitle")})]})})}),e.jsx("div",{className:"atlas-wrapper",children:e.jsx(T,{showControls:!0,showOwner:!0,isDraggable:!0,landId:s?s.id:void 0,onClick:f,onHover:k,onLocateLand:v,layers:[_]})}),e.jsxs(t.Row,{className:"atlas-footer",children:[e.jsx(t.Column,{grow:!0,children:s?e.jsxs("div",{className:"selected-land",children:[e.jsx("div",{className:"label",children:r("ens_select_land_page.land_selected")}),e.jsxs("div",{className:"land",children:[s.name," (",s.id,")"]})]}):null}),e.jsx(t.Column,{grow:!1,children:e.jsxs("div",{className:"actions",children:[e.jsx(t.Button,{secondary:!0,onClick:p,children:r("global.cancel")}),e.jsx(t.Button,{primary:!0,disabled:!s||N,onClick:S,children:N?r("ens_select_land_page.already_assigned"):r("global.continue")})]})})]})]})]}):e.jsx(M,{})})}const J=(i,s)=>{const{subdomain:u}=s.match.params,g=B(i);return{ens:H(g,u),isLoading:R(i)||O(P(i),q)||F(i),landTiles:A(i)}},X=y(J)(G);export{X as default};
1
+ import{J as l,a4 as E,dF as w,R as I,bP as h,N as e,S as t,M as r,bO as T,T as y,dq as B,dv as H,ad as R,bq as O,cT as P,bY as F,ca as A,cW as q}from"./index-DHYWV3bH.js";import{L as z}from"./LoggedInDetailPage.container-Dp65JdFz.js";import{B as D}from"./Back-BYSQbKgv.js";import{N as M}from"./NotFound-2BVxtvD7.js";import"./Navigation.container-BYylJCxT.js";import"./selectors-BWYCilYH.js";import"./SignInRequired-h3oN0Zc4.js";function G(i){const[s,u]=l.useState(void 0),[g,L]=l.useState(void 0),{isLoading:b,ens:o,landTiles:c}=i,m=E(),x=l.useMemo(()=>{const a=Object.values(c||{});if(a.length===1)return a[0].land;let n;for(const d of a)if(d.land.id!==o.landId){n=d.land;break}return n},[c]);l.useEffect(()=>{!s&&!b&&o&&u(x)},[x]);const j=l.useCallback((a,n)=>{const d=h(a,n);return c&&d in c?c[d].land:void 0},[c]),f=l.useCallback((a,n)=>{const d=j(a,n);d&&u(d)},[]),v=l.useCallback(()=>{const a=w(c,s.id);u(a)},[s,c]),S=l.useCallback(()=>{s&&m.push(I.landAssignENS(s.id,o.subdomain))},[o,m,s]),C=l.useCallback((a,n)=>{const d=h(a,n);return(!s||s.id!==d)&&g===d},[]),_=l.useCallback((a,n)=>C(a,n)&&j(a,n)?{color:"#fcc6d1",scale:1.4}:null,[]),k=l.useCallback((a,n)=>{L(h(a,n))},[]),p=l.useCallback(()=>{m.goBack()},[m]),N=s&&o&&s.id===o.landId;return e.jsx(z,{className:"ENSSelectLandPage",hasNavigation:!1,children:b?e.jsx(t.Loader,{active:!0,size:"massive"}):o?e.jsxs(e.Fragment,{children:[e.jsx(D,{absolute:!0,onClick:p}),e.jsxs(t.Narrow,{children:[e.jsx(t.Row,{children:e.jsx(t.Column,{children:e.jsxs(t.Section,{children:[e.jsx(t.Header,{className:"title",size:"large",children:r("ens_select_land_page.title",{name:o?o.subdomain:r("global.name")})}),e.jsx("span",{className:"subtitle",children:r("ens_select_land_page.subtitle")})]})})}),e.jsx("div",{className:"atlas-wrapper",children:e.jsx(T,{showControls:!0,showOwner:!0,isDraggable:!0,landId:s?s.id:void 0,onClick:f,onHover:k,onLocateLand:v,layers:[_]})}),e.jsxs(t.Row,{className:"atlas-footer",children:[e.jsx(t.Column,{grow:!0,children:s?e.jsxs("div",{className:"selected-land",children:[e.jsx("div",{className:"label",children:r("ens_select_land_page.land_selected")}),e.jsxs("div",{className:"land",children:[s.name," (",s.id,")"]})]}):null}),e.jsx(t.Column,{grow:!1,children:e.jsxs("div",{className:"actions",children:[e.jsx(t.Button,{secondary:!0,onClick:p,children:r("global.cancel")}),e.jsx(t.Button,{primary:!0,disabled:!s||N,onClick:S,children:N?r("ens_select_land_page.already_assigned"):r("global.continue")})]})})]})]})]}):e.jsx(M,{})})}const J=(i,s)=>{const{subdomain:u}=s.match.params,g=B(i);return{ens:H(g,u),isLoading:R(i)||O(P(i),q)||F(i),landTiles:A(i)}},X=y(J)(G);export{X as default};
@@ -1 +1 @@
1
- var i=Object.defineProperty;var c=(n,e,t)=>e in n?i(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var s=(n,e,t)=>c(n,typeof e!="symbol"?e+"":e,t);import{ak as r,al as d,N as a,am as p,S as h,an as g,ao as l,T as C,aj as m,ad as x,ap as u}from"./index-BcJ8MhYC.js";let j=class extends r.PureComponent{constructor(){super(...arguments);s(this,"handleOnConnect",t=>{this.props.onConnect(t)});s(this,"handleRedirectToAuthDapp",()=>{if(!this.props.isConnected&&!this.props.isConnecting){const t=new URLSearchParams(window.location.search),o=/^decentraland.(zone|org|today)$/.test(window.location.host)?"/builder":"";d(`${o}${t.get("redirectTo")||"/"}`)}})}render(){const{isConnected:t}=this.props;return a.jsxs(a.Fragment,{children:[a.jsx(p,{}),a.jsx(h.Page,{children:a.jsx(g,{onConnect:this.handleRedirectToAuthDapp,isConnected:t,handleLoginConnect:this.handleOnConnect})}),a.jsx(l,{})]})}};const P=n=>({isConnected:m(n),isConnecting:x(n)}),S=n=>({onConnect:e=>n(u(e))}),T=C(P,S)(j);export{T as default};
1
+ var i=Object.defineProperty;var c=(n,e,t)=>e in n?i(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var s=(n,e,t)=>c(n,typeof e!="symbol"?e+"":e,t);import{ak as r,al as d,N as a,am as p,S as h,an as g,ao as l,T as C,aj as m,ad as x,ap as u}from"./index-DHYWV3bH.js";let j=class extends r.PureComponent{constructor(){super(...arguments);s(this,"handleOnConnect",t=>{this.props.onConnect(t)});s(this,"handleRedirectToAuthDapp",()=>{if(!this.props.isConnected&&!this.props.isConnecting){const t=new URLSearchParams(window.location.search),o=/^decentraland.(zone|org|today)$/.test(window.location.host)?"/builder":"";d(`${o}${t.get("redirectTo")||"/"}`)}})}render(){const{isConnected:t}=this.props;return a.jsxs(a.Fragment,{children:[a.jsx(p,{}),a.jsx(h.Page,{children:a.jsx(g,{onConnect:this.handleRedirectToAuthDapp,isConnected:t,handleLoginConnect:this.handleOnConnect})}),a.jsx(l,{})]})}};const P=n=>({isConnected:m(n),isConnecting:x(n)}),S=n=>({onConnect:e=>n(u(e))}),T=C(P,S)(j);export{T as default};
@@ -1 +1 @@
1
- var E=Object.defineProperty;var _=(n,t,a)=>t in n?E(n,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[t]=a;var j=(n,t,a)=>_(n,typeof t!="symbol"?t+"":t,a);import{J as R,N as e,b6 as v,M as r,bN as T,S as s,R as k,bO as y,bP as D,bQ as I,bR as f,bS as S,T as O,bE as F,bT as $,bU as H,bV as h,bW as g,bD as C,bX as V,bY as B,bZ as G}from"./index-BcJ8MhYC.js";import{N as W}from"./Navigation.container-Uoa9cAN5.js";import{L as M}from"./LoggedInDetailPage.container-CsvKBMuj.js";import{R as X}from"./RentalPeriod-S_0N5yaP.js";import"./selectors-DHi87VFf.js";import"./SignInRequired-BIpJsBqT.js";import"./index-MzNAR7ES.js";const Y=n=>n.ui.land,Z=n=>Y(n).view;class A extends R.PureComponent{render(){const{list:t}=this.props;switch(t.length){case 0:return r("global.none");case 1:return t[0];case 2:return e.jsx(v,{id:"list.two",values:{first:t[0],second:t[1]}});default:return e.jsx(v,{id:"list.two",values:{first:t[0],second:r("list.more",{count:t.length-1})}})}}}const q=(n,t)=>f(n,S)?1:f(t,S)?-1:n>t?1:-1;let z=class extends R.PureComponent{render(){const{land:t,deployments:a,rental:l,history:o}=this.props,{x:d,y:p}=T(t);return e.jsxs(s.Table.Row,{className:"TableRow",onClick:()=>o.push(k.landDetail(t.id)),children:[e.jsx(s.Table.Cell,{children:e.jsxs(s.Row,{children:[e.jsx(s.Column,{width:67,grow:!1,shrink:!1,children:e.jsx(y,{landId:t.id,width:45,height:45,isDraggable:!1,size:9})}),e.jsx(s.Column,{className:"name",children:e.jsxs("div",{children:[t.name," ",e.jsx("span",{className:"secondary-text",children:D(d,p)})]})})]})}),e.jsx(s.Table.Cell,{children:e.jsxs("div",{children:[r(`roles.${t.role}`)," ",l?e.jsx(X,{land:t,rental:l}):null]})}),e.jsx(s.Table.Cell,{children:e.jsx(A,{list:t.operators.sort(q).map(c=>e.jsx(I,{address:c}))})}),e.jsx(s.Table.Cell,{children:e.jsx(A,{list:a.map(c=>c.name)})})]})}};const J=(n,t)=>{const{land:a}=t,o=$(n)[a.id]||[],d=H(n,a);return{deployments:o,rental:d}},Q=O(J)(F(z)),b=20;let U=class extends R.PureComponent{constructor(){super(...arguments);j(this,"state",{showOwner:!0,showOperator:!0,showLessor:!0,showTenant:!0,page:1,selectedLand:0});j(this,"handleNext",()=>{const{selectedLand:a}=this.state,l=this.getFilteredLands();a===l.length-1?this.setState({selectedLand:0}):this.setState({selectedLand:a+1})});j(this,"handlePrev",()=>{const{selectedLand:a}=this.state;if(a===0){const l=this.getFilteredLands();this.setState({selectedLand:l.length-1})}else this.setState({selectedLand:a-1})})}componentWillReceiveProps(a){a.lands!==this.props.lands&&this.setState({page:1})}renderLand(){const{view:a,onSetView:l}=this.props,{page:o,showOwner:d,showOperator:p,showTenant:c,showLessor:u,selectedLand:N}=this.state,i=this.getFilteredLands(),P=Math.ceil(i.length/b);let w,L;if(i.length>1&&N<i.length){const{x:m,y:x}=T(i[N]);w=m,L=x}else if(i.length===1){const{x:m,y:x}=T(i[0]);w=m,L=x}return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"filters",children:e.jsx(s.Container,{children:e.jsxs(s.Row,{height:30,children:[e.jsx(s.Column,{children:e.jsxs(s.Row,{children:[e.jsx(s.Header,{sub:!0,children:r("land_page.results",{count:i.length.toLocaleString()})}),a===h.ATLAS&&i.length>1?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"arrow prev",onClick:this.handlePrev}),e.jsx("div",{className:"arrow next",onClick:this.handleNext})]}):null]})}),e.jsx(s.Column,{align:"right",children:e.jsxs(s.Row,{children:[e.jsx(s.Popup,{trigger:e.jsx(s.Radio,{value:"owner",checked:d,onClick:()=>this.setState({showOwner:!d}),label:r(`roles.${g.OWNER}`)}),content:r("land_page.owner_explanation")}),e.jsx(s.Popup,{trigger:e.jsx(s.Radio,{className:"operator-checkbox",value:"operator",checked:p,onClick:()=>this.setState({showOperator:!p}),label:r(`roles.${g.OPERATOR}`)}),className:"radio-popup",content:e.jsx("div",{children:r("land_page.operator_explanation")})}),e.jsx(s.Popup,{trigger:e.jsx(s.Radio,{className:"tenant-checkbox",value:"tentant",checked:c,onClick:()=>this.setState({showTenant:!c}),label:r(`roles.${g.TENANT}`)}),className:"radio-popup",content:e.jsx("div",{children:r("land_page.tenant_explanation")})}),e.jsx(C,{className:"grid",icon:"table",isActive:a===h.GRID,onClick:()=>l(h.GRID)}),e.jsx(C,{className:"atlas",icon:"pin",isActive:a===h.ATLAS,onClick:()=>l(h.ATLAS)})]})})]})})}),a===h.GRID?e.jsxs(s.Container,{children:[e.jsx(s.Section,{className:"table-section",children:i.length>0?e.jsxs(s.Table,{basic:"very",children:[e.jsx(s.Table.Header,{children:e.jsxs(s.Table.Row,{children:[e.jsx(s.Table.HeaderCell,{width:"4",children:r("global.name")}),e.jsx(s.Table.HeaderCell,{width:"4",children:r("global.role")}),e.jsx(s.Table.HeaderCell,{width:"4",children:r("land_page.operated_by")}),e.jsx(s.Table.HeaderCell,{width:"4",children:r("land_page.online_scenes")})]})}),e.jsx(s.Table.Body,{children:i.slice((o-1)*b,o*b).map((m,x)=>e.jsx(Q,{land:m},x))})]}):null}),P>1?e.jsx(s.Section,{className:"pagination-section",children:e.jsx(s.Pagination,{firstItem:null,lastItem:null,activePage:o,onPageChange:(m,x)=>this.setState({page:+x.activePage}),totalPages:P})}):null]}):e.jsx("div",{className:"atlas-wrapper",children:e.jsx(y,{className:"main",x:w,y:L,showOperator:p,showOwner:d,showTenant:c,showLessor:u,hasPopup:!0})})]})}getFilteredLands(){const{lands:a}=this.props,{showOwner:l,showOperator:o,showLessor:d,showTenant:p}=this.state;return a.filter(u=>!!(l&&u.roles.includes(g.OWNER)||o&&u.roles.includes(g.OPERATOR)||p&&u.roles.includes(g.TENANT)||d&&u.roles.includes(g.LESSOR)))}render(){const{isLoading:a,view:l}=this.props;return e.jsx(M,{className:`LandPage ${l}-view`,activeTab:W.LAND,isLoading:a,isPageFullscreen:!0,isFooterFullscreen:l===h.ATLAS,isNavigationFullscreen:l===h.ATLAS,children:this.renderLand()})}};const K=n=>({lands:V(n),view:Z(n),isLoading:B(n)}),ee=n=>({onSetView:t=>n(G(t))}),he=O(K,ee)(U);export{he as default};
1
+ var E=Object.defineProperty;var _=(n,t,a)=>t in n?E(n,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[t]=a;var j=(n,t,a)=>_(n,typeof t!="symbol"?t+"":t,a);import{J as R,N as e,b6 as v,M as r,bN as T,S as s,R as k,bO as y,bP as D,bQ as I,bR as f,bS as S,T as O,bE as F,bT as $,bU as H,bV as h,bW as g,bD as C,bX as V,bY as B,bZ as G}from"./index-DHYWV3bH.js";import{N as W}from"./Navigation.container-BYylJCxT.js";import{L as M}from"./LoggedInDetailPage.container-Dp65JdFz.js";import{R as X}from"./RentalPeriod-DKDcS0Fs.js";import"./selectors-BWYCilYH.js";import"./SignInRequired-h3oN0Zc4.js";import"./index-D7YYkSOL.js";const Y=n=>n.ui.land,Z=n=>Y(n).view;class A extends R.PureComponent{render(){const{list:t}=this.props;switch(t.length){case 0:return r("global.none");case 1:return t[0];case 2:return e.jsx(v,{id:"list.two",values:{first:t[0],second:t[1]}});default:return e.jsx(v,{id:"list.two",values:{first:t[0],second:r("list.more",{count:t.length-1})}})}}}const q=(n,t)=>f(n,S)?1:f(t,S)?-1:n>t?1:-1;let z=class extends R.PureComponent{render(){const{land:t,deployments:a,rental:l,history:o}=this.props,{x:d,y:p}=T(t);return e.jsxs(s.Table.Row,{className:"TableRow",onClick:()=>o.push(k.landDetail(t.id)),children:[e.jsx(s.Table.Cell,{children:e.jsxs(s.Row,{children:[e.jsx(s.Column,{width:67,grow:!1,shrink:!1,children:e.jsx(y,{landId:t.id,width:45,height:45,isDraggable:!1,size:9})}),e.jsx(s.Column,{className:"name",children:e.jsxs("div",{children:[t.name," ",e.jsx("span",{className:"secondary-text",children:D(d,p)})]})})]})}),e.jsx(s.Table.Cell,{children:e.jsxs("div",{children:[r(`roles.${t.role}`)," ",l?e.jsx(X,{land:t,rental:l}):null]})}),e.jsx(s.Table.Cell,{children:e.jsx(A,{list:t.operators.sort(q).map(c=>e.jsx(I,{address:c}))})}),e.jsx(s.Table.Cell,{children:e.jsx(A,{list:a.map(c=>c.name)})})]})}};const J=(n,t)=>{const{land:a}=t,o=$(n)[a.id]||[],d=H(n,a);return{deployments:o,rental:d}},Q=O(J)(F(z)),b=20;let U=class extends R.PureComponent{constructor(){super(...arguments);j(this,"state",{showOwner:!0,showOperator:!0,showLessor:!0,showTenant:!0,page:1,selectedLand:0});j(this,"handleNext",()=>{const{selectedLand:a}=this.state,l=this.getFilteredLands();a===l.length-1?this.setState({selectedLand:0}):this.setState({selectedLand:a+1})});j(this,"handlePrev",()=>{const{selectedLand:a}=this.state;if(a===0){const l=this.getFilteredLands();this.setState({selectedLand:l.length-1})}else this.setState({selectedLand:a-1})})}componentWillReceiveProps(a){a.lands!==this.props.lands&&this.setState({page:1})}renderLand(){const{view:a,onSetView:l}=this.props,{page:o,showOwner:d,showOperator:p,showTenant:c,showLessor:u,selectedLand:N}=this.state,i=this.getFilteredLands(),P=Math.ceil(i.length/b);let w,L;if(i.length>1&&N<i.length){const{x:m,y:x}=T(i[N]);w=m,L=x}else if(i.length===1){const{x:m,y:x}=T(i[0]);w=m,L=x}return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"filters",children:e.jsx(s.Container,{children:e.jsxs(s.Row,{height:30,children:[e.jsx(s.Column,{children:e.jsxs(s.Row,{children:[e.jsx(s.Header,{sub:!0,children:r("land_page.results",{count:i.length.toLocaleString()})}),a===h.ATLAS&&i.length>1?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"arrow prev",onClick:this.handlePrev}),e.jsx("div",{className:"arrow next",onClick:this.handleNext})]}):null]})}),e.jsx(s.Column,{align:"right",children:e.jsxs(s.Row,{children:[e.jsx(s.Popup,{trigger:e.jsx(s.Radio,{value:"owner",checked:d,onClick:()=>this.setState({showOwner:!d}),label:r(`roles.${g.OWNER}`)}),content:r("land_page.owner_explanation")}),e.jsx(s.Popup,{trigger:e.jsx(s.Radio,{className:"operator-checkbox",value:"operator",checked:p,onClick:()=>this.setState({showOperator:!p}),label:r(`roles.${g.OPERATOR}`)}),className:"radio-popup",content:e.jsx("div",{children:r("land_page.operator_explanation")})}),e.jsx(s.Popup,{trigger:e.jsx(s.Radio,{className:"tenant-checkbox",value:"tentant",checked:c,onClick:()=>this.setState({showTenant:!c}),label:r(`roles.${g.TENANT}`)}),className:"radio-popup",content:e.jsx("div",{children:r("land_page.tenant_explanation")})}),e.jsx(C,{className:"grid",icon:"table",isActive:a===h.GRID,onClick:()=>l(h.GRID)}),e.jsx(C,{className:"atlas",icon:"pin",isActive:a===h.ATLAS,onClick:()=>l(h.ATLAS)})]})})]})})}),a===h.GRID?e.jsxs(s.Container,{children:[e.jsx(s.Section,{className:"table-section",children:i.length>0?e.jsxs(s.Table,{basic:"very",children:[e.jsx(s.Table.Header,{children:e.jsxs(s.Table.Row,{children:[e.jsx(s.Table.HeaderCell,{width:"4",children:r("global.name")}),e.jsx(s.Table.HeaderCell,{width:"4",children:r("global.role")}),e.jsx(s.Table.HeaderCell,{width:"4",children:r("land_page.operated_by")}),e.jsx(s.Table.HeaderCell,{width:"4",children:r("land_page.online_scenes")})]})}),e.jsx(s.Table.Body,{children:i.slice((o-1)*b,o*b).map((m,x)=>e.jsx(Q,{land:m},x))})]}):null}),P>1?e.jsx(s.Section,{className:"pagination-section",children:e.jsx(s.Pagination,{firstItem:null,lastItem:null,activePage:o,onPageChange:(m,x)=>this.setState({page:+x.activePage}),totalPages:P})}):null]}):e.jsx("div",{className:"atlas-wrapper",children:e.jsx(y,{className:"main",x:w,y:L,showOperator:p,showOwner:d,showTenant:c,showLessor:u,hasPopup:!0})})]})}getFilteredLands(){const{lands:a}=this.props,{showOwner:l,showOperator:o,showLessor:d,showTenant:p}=this.state;return a.filter(u=>!!(l&&u.roles.includes(g.OWNER)||o&&u.roles.includes(g.OPERATOR)||p&&u.roles.includes(g.TENANT)||d&&u.roles.includes(g.LESSOR)))}render(){const{isLoading:a,view:l}=this.props;return e.jsx(M,{className:`LandPage ${l}-view`,activeTab:W.LAND,isLoading:a,isPageFullscreen:!0,isFooterFullscreen:l===h.ATLAS,isNavigationFullscreen:l===h.ATLAS,children:this.renderLand()})}};const K=n=>({lands:V(n),view:Z(n),isLoading:B(n)}),ee=n=>({onSetView:t=>n(G(t))}),he=O(K,ee)(U);export{he as default};
@@ -1 +1 @@
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{aG as b,J as x,dp as g,N as e,S as c,M as o,Q as m,R as p,b6 as j,cq as R,aR as C,T as w,bE as P,dq as f,cZ as k}from"./index-BcJ8MhYC.js";import{L as v}from"./LandAction-Bo3Q-UiE.js";import{L as F}from"./LandProviderPage-BtxZ9fV8.js";import"./Back-CncB3o4T.js";import"./NotFound-4sT-K9SU.js";import"./hooks-DXNgH_m2.js";const u=b.get("MARKETPLACE_WEB_URL","");class B 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:N})=>({value:_,text:N})),h=i.find(_=>_.name===t),E=!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(R,{type:"submit",disabled:E||l,primary:!0,onClick:this.handleContinue,loading:l,network:C.Network.ETHEREUM,children:o("global.continue")})]})]})})}}let U=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(F,{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(B,{land:t,ensList:s,isLoading:i,onUpdateSubdomain:d=>this.handleUpdateSubdomain(t,d),onFetchENS:l})})})}};const A=n=>({ensList:f(n)}),D=n=>({onFetchENS:(a,s)=>n(k(a,s))}),W=w(A,D)(P(U));export{W as default};
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{aG as b,J as x,dp as g,N as e,S as c,M as o,Q as m,R as p,b6 as j,cq as R,aR as C,T as w,bE as P,dq as f,cZ as k}from"./index-DHYWV3bH.js";import{L as v}from"./LandAction-U4Bn5_Gk.js";import{L as F}from"./LandProviderPage-Bbu5ui2b.js";import"./Back-BYSQbKgv.js";import"./NotFound-2BVxtvD7.js";import"./hooks-CPkpImRF.js";const u=b.get("MARKETPLACE_WEB_URL","");class B 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:N})=>({value:_,text:N})),h=i.find(_=>_.name===t),E=!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(R,{type:"submit",disabled:E||l,primary:!0,onClick:this.handleContinue,loading:l,network:C.Network.ETHEREUM,children:o("global.continue")})]})]})})}}let U=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(F,{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(B,{land:t,ensList:s,isLoading:i,onUpdateSubdomain:d=>this.handleUpdateSubdomain(t,d),onFetchENS:l})})})}};const A=n=>({ensList:f(n)}),D=n=>({onFetchENS:(a,s)=>n(k(a,s))}),W=w(A,D)(P(U));export{W as default};
@@ -1 +1 @@
1
- import{ct as U,C as Z,cu as B,J as b,cv as $,cw as q,cx as _e,cy as Ye,cz as be,d as x,cA as $e,cB as qe,cC as Xe,cD as ea,cE as aa,cF as ta,cG as la,cH as na,cI as ra,cJ as sa,ak as Pe,a4 as ia,R as Te,aG as re,aH as da,N as a,S as C,M as _,P as G,cK as ca,cL as oa,cM as ua,cN as Ee,Q as va,T as fa,cO as ma,aM as ga,cP as _a,bX as ba,cQ as ha,cR as Ca,cS as Ne,bq as xe,cc as ya,cT as pa,ac as Pa,aj as Ta,cU as Ea,a2 as Na,cV as xa,cd as Aa,cW as wa}from"./index-BcJ8MhYC.js";import{N as ja}from"./Navigation.container-Uoa9cAN5.js";import{L as Ra}from"./LoggedInDetailPage.container-CsvKBMuj.js";import"./selectors-DHi87VFf.js";import"./SignInRequired-BIpJsBqT.js";var ge={},de={},He={},Ue={},ce={},z={},Ae;function La(){if(Ae)return z;Ae=1;var e=q;z.__esModule=!0,z.default=void 0;var u=e(U),i=e(Z);e(B);var d=e(b),t=$();function l(s){var n=s.children,r=s.className,o=(0,i.default)(r),p=(0,t.getUnhandledProps)(l,s),f=(0,t.getElementType)(l,s);return d.default.createElement(f,(0,u.default)({},p,{className:o}),n)}l.handledProps=["as","children","className"],l.defaultProps={as:"tbody"},l.propTypes={};var v=l;return z.default=v,z}var J={},we;function he(){if(we)return J;we=1;var e=q;J.__esModule=!0,J.default=void 0;var u=e(U);e(_e());var i=e(Z);e(B);var d=e(b),t=$(),l=e(Ye());function v(n){var r=n.active,o=n.children,p=n.className,f=n.collapsing,m=n.content,y=n.disabled,P=n.error,h=n.icon,N=n.negative,E=n.positive,D=n.selectable,k=n.singleLine,S=n.textAlign,A=n.verticalAlign,w=n.warning,j=n.width,R=(0,i.default)((0,t.useKeyOnly)(r,"active"),(0,t.useKeyOnly)(f,"collapsing"),(0,t.useKeyOnly)(y,"disabled"),(0,t.useKeyOnly)(P,"error"),(0,t.useKeyOnly)(N,"negative"),(0,t.useKeyOnly)(E,"positive"),(0,t.useKeyOnly)(D,"selectable"),(0,t.useKeyOnly)(k,"single line"),(0,t.useKeyOnly)(w,"warning"),(0,t.useTextAlignProp)(S),(0,t.useVerticalAlignProp)(A),(0,t.useWidthProp)(j,"wide"),p),K=(0,t.getUnhandledProps)(v,n),L=(0,t.getElementType)(v,n);return t.childrenUtils.isNil(o)?d.default.createElement(L,(0,u.default)({},K,{className:R}),l.default.create(h),m):d.default.createElement(L,(0,u.default)({},K,{className:R}),o)}v.handledProps=["active","as","children","className","collapsing","content","disabled","error","icon","negative","positive","selectable","singleLine","textAlign","verticalAlign","warning","width"],v.defaultProps={as:"td"},v.propTypes={},v.create=(0,t.createShorthandFactory)(v,function(n){return{content:n}});var s=v;return J.default=s,J}var Y={},X={},je;function Fe(){if(je)return X;je=1;var e=q;X.__esModule=!0,X.default=void 0;var u=e(U),i=e(Z);e(B);var d=e(b),t=$();function l(s){var n=s.children,r=s.className,o=s.content,p=s.fullWidth,f=(0,i.default)((0,t.useKeyOnly)(p,"full-width"),r),m=(0,t.getUnhandledProps)(l,s),y=(0,t.getElementType)(l,s);return d.default.createElement(y,(0,u.default)({},m,{className:f}),t.childrenUtils.isNil(n)?o:n)}l.handledProps=["as","children","className","content","fullWidth"],l.defaultProps={as:"thead"},l.propTypes={};var v=l;return X.default=v,X}var Re;function Ia(){if(Re)return Y;Re=1;var e=q;Y.__esModule=!0,Y.default=void 0;var u=e(U);e(B);var i=e(b),d=$(),t=e(Fe());function l(s){var n=s.as,r=(0,d.getUnhandledProps)(l,s);return i.default.createElement(t.default,(0,u.default)({},r,{as:n}))}l.handledProps=["as"],l.propTypes={},l.defaultProps={as:"tfoot"};var v=l;return Y.default=v,Y}var ee={},Le;function Oa(){if(Le)return ee;Le=1;var e=q;ee.__esModule=!0,ee.default=void 0;var u=e(U),i=e(Z);e(B);var d=e(b),t=$(),l=e(he());function v(n){var r=n.as,o=n.className,p=n.sorted,f=(0,i.default)((0,t.useValueAndKey)(p,"sorted"),o),m=(0,t.getUnhandledProps)(v,n);return d.default.createElement(l.default,(0,u.default)({},m,{as:r,className:f}))}v.handledProps=["as","className","sorted"],v.propTypes={},v.defaultProps={as:"th"};var s=v;return ee.default=s,ee}var ae={},Ie;function Ma(){if(Ie)return ae;Ie=1;var e=q;ae.__esModule=!0,ae.default=void 0;var u=e(U);e(_e());var i=e(be()),d=e(Z);e(B);var t=e(b),l=$(),v=e(he());function s(r){var o=r.active,p=r.cellAs,f=r.cells,m=r.children,y=r.className,P=r.disabled,h=r.error,N=r.negative,E=r.positive,D=r.textAlign,k=r.verticalAlign,S=r.warning,A=(0,d.default)((0,l.useKeyOnly)(o,"active"),(0,l.useKeyOnly)(P,"disabled"),(0,l.useKeyOnly)(h,"error"),(0,l.useKeyOnly)(N,"negative"),(0,l.useKeyOnly)(E,"positive"),(0,l.useKeyOnly)(S,"warning"),(0,l.useTextAlignProp)(D),(0,l.useVerticalAlignProp)(k),y),w=(0,l.getUnhandledProps)(s,r),j=(0,l.getElementType)(s,r);return l.childrenUtils.isNil(m)?t.default.createElement(j,(0,u.default)({},w,{className:A}),(0,i.default)(f,function(R){return v.default.create(R,{defaultProps:{as:p}})})):t.default.createElement(j,(0,u.default)({},w,{className:A}),m)}s.handledProps=["active","as","cellAs","cells","children","className","disabled","error","negative","positive","textAlign","verticalAlign","warning"],s.defaultProps={as:"tr",cellAs:"td"},s.propTypes={},s.create=(0,l.createShorthandFactory)(s,function(r){return{cells:r}});var n=s;return ae.default=n,ae}var M=q;ce.__esModule=!0;ce.default=void 0;var Oe=M(U);M(_e());var Me=M(be()),ka=M(Z);M(B);var te=M(b),T=$(),Ge=M(La()),Sa=M(he()),Ve=M(Ia()),We=M(Fe()),Da=M(Oa()),ne=M(Ma());function O(e){var u=e.attached,i=e.basic,d=e.celled,t=e.children,l=e.className,v=e.collapsing,s=e.color,n=e.columns,r=e.compact,o=e.definition,p=e.fixed,f=e.footerRow,m=e.headerRow,y=e.headerRows,P=e.inverted,h=e.padded,N=e.renderBodyRow,E=e.selectable,D=e.singleLine,k=e.size,S=e.sortable,A=e.stackable,w=e.striped,j=e.structured,R=e.tableData,K=e.textAlign,L=e.unstackable,F=e.verticalAlign,I=(0,ka.default)("ui",s,k,(0,T.useKeyOnly)(d,"celled"),(0,T.useKeyOnly)(v,"collapsing"),(0,T.useKeyOnly)(o,"definition"),(0,T.useKeyOnly)(p,"fixed"),(0,T.useKeyOnly)(P,"inverted"),(0,T.useKeyOnly)(E,"selectable"),(0,T.useKeyOnly)(D,"single line"),(0,T.useKeyOnly)(S,"sortable"),(0,T.useKeyOnly)(A,"stackable"),(0,T.useKeyOnly)(w,"striped"),(0,T.useKeyOnly)(j,"structured"),(0,T.useKeyOnly)(L,"unstackable"),(0,T.useKeyOrValueAndKey)(u,"attached"),(0,T.useKeyOrValueAndKey)(i,"basic"),(0,T.useKeyOrValueAndKey)(r,"compact"),(0,T.useKeyOrValueAndKey)(h,"padded"),(0,T.useTextAlignProp)(K),(0,T.useVerticalAlignProp)(F),(0,T.useWidthProp)(n,"column"),"table",l),c=(0,T.getUnhandledProps)(O,e),g=(0,T.getElementType)(O,e);if(!T.childrenUtils.isNil(t))return te.default.createElement(g,(0,Oe.default)({},c,{className:I}),t);var se=m||y,pe={defaultProps:{cellAs:"th"}},ze=se&&te.default.createElement(We.default,null,ne.default.create(m,pe),(0,Me.default)(y,function(ue){return ne.default.create(ue,pe)}));return te.default.createElement(g,(0,Oe.default)({},c,{className:I}),ze,te.default.createElement(Ge.default,null,N&&(0,Me.default)(R,function(ue,Je){return ne.default.create(N(ue,Je))})),f&&te.default.createElement(Ve.default,null,ne.default.create(f)))}O.handledProps=["as","attached","basic","celled","children","className","collapsing","color","columns","compact","definition","fixed","footerRow","headerRow","headerRows","inverted","padded","renderBodyRow","selectable","singleLine","size","sortable","stackable","striped","structured","tableData","textAlign","unstackable","verticalAlign"];O.defaultProps={as:"table"};O.propTypes={};O.Body=Ge.default;O.Cell=Sa.default;O.Footer=Ve.default;O.Header=We.default;O.HeaderCell=Da.default;O.Row=ne.default;var Ka=O;ce.default=Ka;(function(e){var u=x&&x.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.Table=void 0;var i=ce;Object.defineProperty(e,"Table",{enumerable:!0,get:function(){return u(i).default}})})(Ue);var Ze={},oe={},le={},ke;function Ba(){if(ke)return le;ke=1;var e=q;le.__esModule=!0,le.default=void 0;var u=e($e()),i=e(qe()),d=e(Xe());e(B);var t=b,l=$(),v=e(ea()),s=function(r){(0,u.default)(o,r);function o(){for(var f,m=arguments.length,y=new Array(m),P=0;P<m;P++)y[P]=arguments[P];return f=r.call.apply(r,[this].concat(y))||this,f.handleClick=function(h){(0,i.default)(f.props,"onClick",h,f.props)},f.handleKeyDown=function(h){(0,i.default)(f.props,"onKeyDown",h,f.props),d.default.getCode(h)===d.default.Enter&&(0,i.default)(f.props,"onClick",h,f.props)},f.handleOverrides=function(){return{onClick:f.handleClick,onKeyDown:f.handleKeyDown}},f}var p=o.prototype;return p.render=function(){var m=this.props,y=m.active,P=m.type,h=this.props.disabled||P==="ellipsisItem";return v.default.create(this.props,{defaultProps:{active:y,"aria-current":y,"aria-disabled":h,disabled:h,onClick:this.handleClick,onKeyDown:this.handleKeyDown,tabIndex:h?-1:0},overrideProps:this.handleOverrides})},o}(t.Component);s.handledProps=["active","disabled","onClick","onKeyDown","type"],s.propTypes={},s.create=(0,l.createShorthandFactory)(s,function(r){return{content:r}});var n=s;return le.default=n,le}var H=q;oe.__esModule=!0;oe.default=void 0;var Se=H(U),$a=H($e()),qa=H(be()),Ha=H(aa()),De=H(qe());H(B);var Ua=H(b),ve=$(),Fa=H(ta),Qe=H(Ba()),Q=function(e){(0,$a.default)(u,e);function u(){for(var d,t=arguments.length,l=new Array(t),v=0;v<t;v++)l[v]=arguments[v];return d=e.call.apply(e,[this].concat(l))||this,d.handleItemClick=function(s,n){var r=n.value,o=d.state.activePage;+o!=+r&&(d.setState({activePage:r}),(0,De.default)(d.props,"onPageChange",s,(0,Se.default)({},d.props,{activePage:r})))},d.handleItemOverrides=function(s,n,r){return function(o){return{active:s,type:n,key:n+"-"+r,onClick:function(f,m){(0,De.default)(o,"onClick",f,m),m.type!=="ellipsisItem"&&d.handleItemClick(f,m)}}}},d}var i=u.prototype;return i.getInitialAutoControlledState=function(){return{activePage:1}},i.render=function(){var t=this,l=this.props,v=l["aria-label"],s=l.boundaryRange,n=l.disabled,r=l.ellipsisItem,o=l.siblingRange,p=l.totalPages,f=this.state.activePage,m=(0,ve.createPaginationItems)({activePage:f,boundaryRange:s,hideEllipsis:(0,Ha.default)(r),siblingRange:o,totalPages:p}),y=(0,ve.getUnhandledProps)(u,this.props);return Ua.default.createElement(Fa.default,(0,Se.default)({},y,{"aria-label":v,pagination:!0,role:"navigation"}),(0,qa.default)(m,function(P){var h=P.active,N=P.type,E=P.value;return Qe.default.create(t.props[N],{defaultProps:{content:E,disabled:n,value:E},overrideProps:t.handleItemOverrides(h,N,E)})}))},u}(ve.ModernAutoControlledComponent);oe.default=Q;Q.handledProps=["activePage","aria-label","boundaryRange","defaultActivePage","disabled","ellipsisItem","firstItem","lastItem","nextItem","onPageChange","pageItem","prevItem","siblingRange","totalPages"];Q.propTypes={};Q.autoControlledProps=["activePage"];Q.defaultProps={"aria-label":"Pagination Navigation",boundaryRange:1,ellipsisItem:"...",firstItem:{"aria-label":"First item",content:"«"},lastItem:{"aria-label":"Last item",content:"»"},nextItem:{"aria-label":"Next item",content:"⟩"},pageItem:{},prevItem:{"aria-label":"Previous item",content:"⟨"},siblingRange:1};Q.Item=Qe.default;(function(e){var u=x&&x.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.Pagination=void 0;var i=oe;Object.defineProperty(e,"Pagination",{enumerable:!0,get:function(){return u(i).default}})})(Ze);(function(e){var u=x&&x.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.ROWS_PER_PAGE=void 0;var i=u(b),d=la,t=Ue,l=na,v=Ze,s=0,n=1;e.ROWS_PER_PAGE=10;var r=function(o){var p=o.empty,f=o.data,m=o.isLoading,y=o.totalPages,P=o.activePage,h=P===void 0?1:P,N=o.setPage,E=o.total,D=o.rowsPerPage,k=D===void 0?e.ROWS_PER_PAGE:D,S=o.hasHeaders,A=S===void 0?!1:S,w=o.customHeaders,j=w===void 0?{}:w,R=o.i18n,K=(0,d.useMobileMediaQuery)(),L=f.length>0?Object.keys(f[0]):null,F=y&&y>1;return i.default.createElement("div",{className:"dui-table-content ".concat(F?"":"dui-table-content--radius-ending"," ").concat(A?"":"dui-table-content__headers--empty")},m?i.default.createElement("div",{className:"dui-table-content__table--empty"},i.default.createElement(l.Loader,{active:!0,"data-testid":"loader"})):L?i.default.createElement(t.Table,{basic:"very","data-testid":"table-content"},i.default.createElement(t.Table.Body,{className:m?"dui-table-content__table--loading":""},i.default.createElement(t.Table.Row,null,L.map(function(I){return i.default.createElement(t.Table.HeaderCell,{key:I},i.default.createElement("span",null,j[I]?j[I]:I))})),f==null?void 0:f.map(function(I,c){return i.default.createElement(t.Table.Row,{key:c},L.map(function(g){return i.default.createElement(t.Table.Cell,{style:{width:"".concat(100/L.length,"%")},key:g},I[g])}))}))):p(),F&&E&&o.activePage!==void 0?i.default.createElement("div",{className:"dui-table-content__pagination"},"".concat(R.sortBy.showing," ").concat((h-1)*k+1,"-").concat(Math.min(h*k,E)," ").concat(R.sortBy.of," ").concat(E),i.default.createElement(v.Pagination,{siblingRange:K?s:n,activePage:h,totalPages:y,onPageChange:function(I,c){return N&&N(+c.activePage)},firstItem:null,lastItem:null})):null)};r.defaultProps={i18n:{sortBy:{showing:"Showing",of:"of"}}},e.default=i.default.memo(r)})(He);var Ga=x&&x.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(de,"__esModule",{value:!0});de.TableContent=void 0;var Va=Ga(He);de.TableContent=Va.default;var Ce={},ye={},Wa=x&&x.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ye,"__esModule",{value:!0});var V=Wa(b),Za=b,Qa=ra,Ke=sa,za=(0,Za.forwardRef)(function(e,u){var i=e.children,d=e.tabsList,t=e.activeTab,l=e.handleTabChange,v=e.sortbyList,s=e.handleSortByChange,n=e.sortBy;return V.default.createElement("div",{className:"dui-table-container",ref:u},d.length||v!=null&&v.length?V.default.createElement("div",{className:"dui-table-container__filters"},d.length>0?V.default.createElement(Ke.Tabs,{isFullscreen:!0},d.map(function(r){return V.default.createElement(Ke.Tabs.Tab,{key:r.value,active:t===r.value,onClick:function(){l&&l(r.value)}},V.default.createElement("div",{className:"dui-table-container__tabs"},r.displayValue))})):null,v&&V.default.createElement(Qa.Dropdown,{direction:"left",className:"dui-table-container__sort-by",value:n,onChange:function(r,o){var p=o.value.toString();s&&s(p)},options:v})):null,i)});ye.default=za;var Ja=x&&x.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ce,"__esModule",{value:!0});var Ya=Ja(ye);Ce.default=Ya.default;(function(e){var u=x&&x.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.TableContainer=e.TableContent=void 0;var i=de;Object.defineProperty(e,"TableContent",{enumerable:!0,get:function(){return i.TableContent}});var d=u(Ce);e.TableContainer=d.default})(ge);const Be="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.1122%209.03225H10.9677V5.88775C10.9677%205.3526%2010.5351%204.91997%209.99997%204.91997C9.46482%204.91997%209.0322%205.3526%209.0322%205.88775V9.03225H5.8877C5.35255%209.03225%204.91992%209.46487%204.91992%2010C4.91992%2010.5352%205.35255%2010.9678%205.8877%2010.9678H9.0322V14.1123C9.0322%2014.6474%209.46482%2015.0801%209.99997%2015.0801C10.5351%2015.0801%2010.9677%2014.6474%2010.9677%2014.1123V10.9678H14.1122C14.6474%2010.9678%2015.08%2010.5352%2015.08%2010C15.08%209.46487%2014.6445%209.03225%2014.1122%209.03225Z'%20fill='%23716B7C'/%3e%3cpath%20d='M10%200C4.48525%200%200%204.48525%200%2010C0%2015.5147%204.48525%2020%2010%2020C15.5147%2020%2020%2015.5147%2020%2010C20%204.48525%2015.5147%200%2010%200ZM10%2018.0675C5.55275%2018.0675%201.9325%2014.4502%201.9325%2010C1.9325%205.55275%205.54975%201.9325%2010%201.9325C14.4502%201.9325%2018.0675%205.5525%2018.0675%2010C18.0675%2014.4475%2014.4475%2018.0675%2010%2018.0675Z'%20fill='%23716B7C'/%3e%3c/svg%3e",Xa="data:image/svg+xml,%3csvg%20width='87'%20height='86'%20viewBox='0%200%2087%2086'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M43.4522%2016.27C54.6209%2016.27%2065.7884%2016.2686%2076.9574%2016.2706C81.2354%2016.2713%2084.1347%2018.9961%2084.1347%2023.0135C84.1361%2036.4649%2084.0708%2049.9164%2084.1754%2063.3671C84.2056%2067.2418%2080.8901%2070.2593%2076.8614%2070.2455C54.5917%2070.1678%2032.322%2070.2093%2010.0523%2070.208C5.70207%2070.2073%202.82599%2067.5055%202.82527%2063.4197C2.82387%2049.9367%202.82387%2036.4544%202.82527%2022.9717C2.82597%2019.0142%205.73783%2016.2724%209.94628%2016.2717C21.1149%2016.2691%2032.2825%2016.2704%2043.4514%2016.2704L43.4522%2016.27ZM43.4796%2018.677C32.4098%2018.677%2021.3393%2018.7342%2010.271%2018.6382C7.41108%2018.6132%205.33524%2020.5104%205.35357%2023.2483C5.44413%2036.5762%205.44203%2049.9054%205.35357%2063.2331C5.33602%2065.8624%207.26371%2067.8539%2010.2724%2067.8459C32.4127%2067.7874%2054.5512%2067.7887%2076.6915%2067.8453C79.6538%2067.8525%2081.6294%2065.9455%2081.6139%2063.2318C81.5388%2049.9032%2081.5395%2036.5747%2081.6139%2023.2453C81.6301%2020.4179%2079.4982%2018.6141%2076.6888%2018.6379C65.6197%2018.7313%2054.5485%2018.676%2043.4802%2018.676L43.4796%2018.677Z'%20fill='white'/%3e%3cpath%20d='M21.8166%2043.8094C16.7813%2039.5807%2017.5065%2033.5202%2021.068%2030.2574C24.917%2026.7321%2030.9878%2026.7645%2034.7483%2030.3164C38.312%2033.6821%2038.8665%2039.6729%2033.9155%2043.8162C34.3623%2044.0263%2034.7759%2044.2033%2035.1711%2044.4101C40.506%2047.2083%2043.4953%2051.4026%2043.7906%2057.1773C43.8494%2058.3341%2043.1143%2058.7696%2042.5024%2058.8426C41.8367%2058.936%2040.7425%2058.4839%2040.6704%2057.3152C40.5245%2054.9479%2039.7809%2052.7914%2038.3376%2050.8405C35.2967%2046.7296%2029.6635%2044.8179%2024.4633%2046.1411C19.3401%2047.4444%2015.5584%2051.6659%2015.1001%2056.5948C15.0703%2056.9103%2015.0604%2057.2279%2015.0108%2057.5408C14.8515%2058.5451%2014.0434%2058.9561%2013.1866%2058.8712C12.6314%2058.8255%2011.812%2058.4324%2011.8658%2057.3372C12.1491%2051.5414%2015.0853%2047.2768%2020.4512%2044.4401C20.8585%2044.2246%2021.2912%2044.0509%2021.8181%2043.8097L21.8166%2043.8094ZM27.8165%2042.9397C28.8179%2042.8575%2029.9071%2042.9868%2030.8038%2042.6566C34.0572%2041.4567%2035.7101%2037.7821%2034.5799%2034.5882C33.4482%2031.3888%2029.8186%2029.4525%2026.3783%2030.2123C22.6779%2031.029%2020.3664%2034.1288%2020.8827%2037.6555C21.1157%2039.2458%2021.9528%2040.5524%2023.205%2041.6589C24.5307%2042.8296%2026.0965%2043.061%2027.8169%2042.9403L27.8165%2042.9397ZM64.7436%2031.0727C67.6834%2031.0727%2070.6231%2031.0694%2073.5629%2031.0747C74.5714%2031.0767%2075.133%2032.0114%2075.1365%2032.7306C75.1394%2033.3671%2074.553%2034.2965%2073.5927%2034.2971C67.7138%2034.2998%2061.8345%2034.2998%2055.9549%2034.2971C54.9684%2034.2965%2054.3728%2033.4267%2054.3728%2032.5385C54.3728%2031.9418%2054.8232%2031.0741%2055.9252%2031.0734C58.865%2031.0721%2061.804%2031.0727%2064.7438%2031.0727L64.7436%2031.0727ZM64.9837%2044.9265C62.0787%2044.9265%2059.1736%2044.9304%2056.2686%2044.9245C55.27%2044.9225%2054.7332%2044.0269%2054.6992%2043.2566C54.746%2042.6652%2055.2446%2041.7033%2056.2537%2041.7027C61.9959%2041.7%2067.7387%2041.7%2073.4808%2041.7027C74.541%2041.7033%2075.1352%2042.6527%2075.1359%2043.3938C75.1366%2044.1025%2074.4199%2044.9265%2073.33%2044.9265C70.493%2044.9278%2067.8208%2044.9271%2064.9831%2044.9271L64.9837%2044.9265ZM66.6168%2052.3293C68.9815%2052.3293%2071.3469%2052.3379%2073.7123%2052.3306C74.7038%2052.3273%2075.1337%2053.3224%2075.1365%2053.98C75.14%2054.735%2074.5593%2055.5524%2073.7215%2055.5531C68.8895%2055.5571%2064.0581%2055.5584%2059.2261%2055.5518C58.2856%2055.5504%2057.6971%2054.912%2057.6921%2053.9362C57.6872%2052.9511%2058.2608%2052.3346%2059.2162%2052.332C61.6827%2052.3247%2064.1495%2052.3293%2066.6161%2052.3293L66.6168%2052.3293Z'%20fill='white'/%3e%3c/svg%3e";var W=(e=>(e.DESC="DESC",e.ASC="ASC",e))(W||{});const ie=12,fe=re.get("MARKETPLACE_WEB_URL",""),et=re.get("MARKETPLACE_API",""),at=re.get("REGISTRAR_CONTRACT_ADDRESS",""),me=re.get("ENS_GATEWAY");function tt(e){const{ensList:u,alias:i,hasProfileCreated:d,avatar:t,isLoading:l,error:v,onOpenModal:s,total:n,onFetchENSList:r}=e,[o,p]=Pe.useState(W.ASC),[f,m]=Pe.useState(1),y=ia();b.useEffect(()=>{r(ie,(f-1)*ie)},[r,f]);const P=b.useCallback(c=>{m(c)},[]),h=b.useMemo(()=>[...u].sort((c,g)=>{switch(o){case W.ASC:return c.subdomain.toLowerCase()<g.subdomain.toLowerCase()?-1:1;case W.DESC:return c.subdomain.toLowerCase()>g.subdomain.toLowerCase()?-1:1;default:return 0}}),[u,o]),N=b.useCallback(c=>y.push(Te.ensSelectLand(c.subdomain)),[y]),E=b.useCallback(c=>{if(re.is(da.Env.DEVELOPMENT)){const g=c.subdomain.split(".");return g.splice(g.length-1,0,"istest"),`https://${g.join(".")}.${me}`}return`https://${c.subdomain}.${me}`},[me]),D=b.useCallback(c=>{s("UseAsAliasModal",{newName:c})},[s]),k=b.useCallback(c=>D(c),[]),S=b.useCallback(c=>{s("EnsMapAddressModal",{ens:c})},[s]),A=b.useCallback(c=>{s("ReclaimNameModal",{ens:c})},[s]),w=b.useCallback(()=>a.jsx(C.Dropdown,{direction:"left",value:o,options:[{value:W.ASC,text:_("global.order.name_asc")},{value:W.DESC,text:_("global.order.name_desc")}],onChange:(c,{value:g})=>p(g)}),[o]),j=b.useCallback(c=>i?c.name==i:!1,[i]),R=b.useCallback(c=>c.ensOwnerAddress!==c.nftOwnerAddress?a.jsxs(C.Button,{compact:!0,className:"ens-list-btn",onClick:A.bind(null,c),children:[a.jsx(C.Icon,{name:"arrow alternate circle down outline",className:"ens-list-reclaim-icon"}),_("ens_list_page.button.reclaim_land")]}):c.landId?ca(c.landId)?a.jsxs("div",{className:"ens-list-land",children:[a.jsxs("span",{className:"ens-list-land-coord",children:[a.jsx(G,{name:"pin"}),c.landId]}),a.jsx(C.Button,{compact:!0,className:"ens-list-land-redirect",target:"_blank",href:E(c),rel:"noopener noreferrer",children:a.jsx(G,{name:"right-round-arrow",className:"ens-list-land-redirect-icon"})})]}):a.jsxs("div",{className:"ens-list-land",children:[a.jsxs("span",{className:"ens-list-land-coord",children:[a.jsx(G,{name:"pin"}),`Estate (${c.landId})`]}),a.jsx(C.Button,{compact:!0,className:"ens-list-land-redirect",target:"_blank",href:E(c),rel:"noopener noreferrer",children:a.jsx(G,{name:"right-round-arrow",className:"ens-list-land-redirect-icon"})})]}):a.jsxs(C.Button,{compact:!0,className:"ens-list-btn",onClick:N.bind(null,c),children:[a.jsx(G,{name:"pin"}),_("ens_list_page.button.assign_to_land")]}),[N,A]),K=b.useCallback(c=>c.ensOwnerAddress!==c.nftOwnerAddress?a.jsxs(C.Button,{compact:!0,className:"ens-list-btn",onClick:A.bind(null,c),children:[a.jsx(C.Icon,{name:"arrow alternate circle down outline",className:"ens-list-reclaim-icon"}),_("ens_list_page.button.reclaim_address")]}):c.ensAddressRecord?a.jsxs("span",{className:"ens-list-address",children:[a.jsx("img",{className:"ens-list-address-icon",src:oa,alt:"Ethereum"}),ua(c.ensAddressRecord),a.jsx(Ee,{role:"button",text:c.ensAddressRecord,showPopup:!0,className:"copy-to-clipboard",children:a.jsx(C.Icon,{"aria-label":"copy address","aria-hidden":"false",name:"clone outline"})})]}):a.jsxs(C.Button,{compact:!0,className:"ens-list-btn",onClick:S.bind(null,c),children:[a.jsx("img",{src:Be,alt:_("ens_list_page.button.link_to_address"),className:"ens-list-add-icon"}),_("ens_list_page.button.link_to_address")]}),[S,A]),L=b.useCallback(c=>c.map(g=>{var se;return{name:a.jsxs("div",{className:"ens-list-name",children:[a.jsx("img",{className:"ens-list-name-icon",alt:g.subdomain,src:`${et}/ens/generate?ens=${g.name}&width=330&height=330&onlyLogo=true`}),a.jsxs("span",{className:"ens-list-subdomain",children:[a.jsx("span",{children:g.name}),".dcl.eth"]}),a.jsx(Ee,{role:"button",text:g.subdomain,showPopup:!0,className:"copy-to-clipboard",children:a.jsx(C.Icon,{"aria-label":"copy subdomain","aria-hidden":"false",name:"clone outline"})}),g.ensOwnerAddress!==g.nftOwnerAddress?a.jsx("span",{className:"ens-list-unclaimed-badge",children:_("ens_list_page.unclaimed")}):null]}),alias:j(g)?a.jsxs("span",{className:"ens-list-avatar",children:[t?a.jsx("img",{className:"ens-list-avatar-img",src:((se=t.avatar.snapshots)==null?void 0:se.face256)||"",alt:t.realName}):a.jsx(G,{name:"profile"}),a.jsx("span",{className:"ens-list-avatar-name",children:g.name}),_("ens_list_page.table.you")]}):a.jsxs(C.Button,{compact:!0,className:"ens-list-btn",onClick:k.bind(null,g.name),disabled:!d,children:[a.jsx("img",{src:Be,alt:_("ens_list_page.button.add_to_avatar"),className:"ens-list-add-icon"}),_("ens_list_page.button.add_to_avatar")]}),address:K(g),land:R(g),actions:a.jsxs("div",{className:"ens-list-actions",children:[a.jsxs(C.Button,{secondary:!0,compact:!0,className:"ens-list-transfer-btn",target:"_blank",href:`${fe}/contracts/${at}/tokens/${g.tokenId}/transfer`,children:[a.jsx(C.Icon,{name:"exchange"}),_("ens_list_page.transfer")]}),a.jsx(va,{to:Te.ensDetail(g.name),children:a.jsxs(C.Button,{primary:!0,compact:!0,className:"ens-list-edit-btn",children:[a.jsx(C.Icon,{name:"pencil alternate"}),_("ens_list_page.edit")]})})]})}}),[d,j,R,K,k]),F=b.useCallback(()=>a.jsxs("div",{className:"ens-list-page-empty",children:[a.jsx("div",{className:"ens-list-page-empty-image",children:a.jsx("img",{src:Xa,alt:"empty names"})}),a.jsx("h3",{className:"ens-list-page-empty-title",children:_("ens_list_page.empty_state.title")}),a.jsx("span",{className:"ens-list-page-empty-subtitle",children:_("ens_list_page.empty_state.subtitle")}),a.jsx("div",{className:"ens-list-page-empty-actions",children:a.jsx(C.Button,{primary:!0,href:`${fe}/names/claim`,target:"_blank",children:_("ens_list_page.empty_state.mint_name")})})]}),[]),I=b.useCallback(()=>{const c=Math.ceil(n/ie);return a.jsxs("div",{className:"ens-page-content",children:[a.jsxs("div",{className:"ens-page-header",children:[a.jsxs("div",{className:"ens-page-title",children:[a.jsx("h1",{children:_("ens_list_page.title")}),_("ens_list_page.result",{count:n})]}),a.jsxs("div",{className:"ens-page-actions",children:[u.length>1?a.jsxs("div",{children:[_("ens_list_page.sort_by")," ",w()]}):null,a.jsx(C.Button,{compact:!0,href:`${fe}/names/claim`,target:"_blank",primary:!0,children:_("ens_list_page.mint_name")})]})]}),a.jsx(ge.TableContainer,{children:a.jsx(ge.TableContent,{data:L(h),isLoading:l,activePage:f,setPage:P,totalPages:c,empty:F,total:n,rowsPerPage:ie,hasHeaders:!0,customHeaders:{name:a.jsx("span",{className:"ens-list-page-table-headers",children:_("ens_list_page.table.name")}),alias:a.jsxs("span",{className:"ens-list-page-table-headers",children:[_("ens_list_page.table.alias"),a.jsx(C.Popup,{on:"click",content:_("ens_detail_page.tooltips.alias"),trigger:a.jsx(C.Icon,{name:"info circle"})})]}),address:a.jsxs("span",{className:"ens-list-page-table-headers",children:[_("ens_list_page.table.address"),a.jsx(C.Popup,{on:"click",content:_("ens_detail_page.tooltips.address"),trigger:a.jsx(C.Icon,{name:"info circle"})})]}),land:a.jsxs("span",{className:"ens-list-page-table-headers",children:[_("ens_list_page.table.land"),a.jsx(C.Popup,{on:"click",content:_("ens_detail_page.tooltips.land"),trigger:a.jsx(C.Icon,{name:"info circle"})})]}),actions:a.jsx("span",{className:"ens-list-page-table-headers",children:_("ens_list_page.table.actions")})}}),tabsList:[]})]})},[h,l,f,n,P,L,F,w,u.length]);return a.jsx(Ra,{className:"ENSListPage view",error:v,activeTab:ja.NAMES,isLoading:l,isPageFullscreen:!0,children:I()})}const lt=e=>{var u;return{alias:ma(e),address:ga(e),ensList:_a(e),lands:ba(e),error:((u=ha(e))==null?void 0:u.message)||(Ca(e)??void 0),hasProfileCreated:Ne(e)!==null,isLoading:xe(ya(e),Aa)||xe(pa(e),wa)||Pa(e),isLoggedIn:Ta(e),avatar:Ne(e),total:Ea(e)}},nt=e=>({onOpenModal:(u,i)=>e(Na(u,i)),onFetchENSList:(u,i)=>e(xa(u,i))}),ot=fa(lt,nt)(tt);export{ot as default};
1
+ import{ct as U,C as Z,cu as B,J as b,cv as $,cw as q,cx as _e,cy as Ye,cz as be,d as x,cA as $e,cB as qe,cC as Xe,cD as ea,cE as aa,cF as ta,cG as la,cH as na,cI as ra,cJ as sa,ak as Pe,a4 as ia,R as Te,aG as re,aH as da,N as a,S as C,M as _,P as G,cK as ca,cL as oa,cM as ua,cN as Ee,Q as va,T as fa,cO as ma,aM as ga,cP as _a,bX as ba,cQ as ha,cR as Ca,cS as Ne,bq as xe,cc as ya,cT as pa,ac as Pa,aj as Ta,cU as Ea,a2 as Na,cV as xa,cd as Aa,cW as wa}from"./index-DHYWV3bH.js";import{N as ja}from"./Navigation.container-BYylJCxT.js";import{L as Ra}from"./LoggedInDetailPage.container-Dp65JdFz.js";import"./selectors-BWYCilYH.js";import"./SignInRequired-h3oN0Zc4.js";var ge={},de={},He={},Ue={},ce={},z={},Ae;function La(){if(Ae)return z;Ae=1;var e=q;z.__esModule=!0,z.default=void 0;var u=e(U),i=e(Z);e(B);var d=e(b),t=$();function l(s){var n=s.children,r=s.className,o=(0,i.default)(r),p=(0,t.getUnhandledProps)(l,s),f=(0,t.getElementType)(l,s);return d.default.createElement(f,(0,u.default)({},p,{className:o}),n)}l.handledProps=["as","children","className"],l.defaultProps={as:"tbody"},l.propTypes={};var v=l;return z.default=v,z}var J={},we;function he(){if(we)return J;we=1;var e=q;J.__esModule=!0,J.default=void 0;var u=e(U);e(_e());var i=e(Z);e(B);var d=e(b),t=$(),l=e(Ye());function v(n){var r=n.active,o=n.children,p=n.className,f=n.collapsing,m=n.content,y=n.disabled,P=n.error,h=n.icon,N=n.negative,E=n.positive,D=n.selectable,k=n.singleLine,S=n.textAlign,A=n.verticalAlign,w=n.warning,j=n.width,R=(0,i.default)((0,t.useKeyOnly)(r,"active"),(0,t.useKeyOnly)(f,"collapsing"),(0,t.useKeyOnly)(y,"disabled"),(0,t.useKeyOnly)(P,"error"),(0,t.useKeyOnly)(N,"negative"),(0,t.useKeyOnly)(E,"positive"),(0,t.useKeyOnly)(D,"selectable"),(0,t.useKeyOnly)(k,"single line"),(0,t.useKeyOnly)(w,"warning"),(0,t.useTextAlignProp)(S),(0,t.useVerticalAlignProp)(A),(0,t.useWidthProp)(j,"wide"),p),K=(0,t.getUnhandledProps)(v,n),L=(0,t.getElementType)(v,n);return t.childrenUtils.isNil(o)?d.default.createElement(L,(0,u.default)({},K,{className:R}),l.default.create(h),m):d.default.createElement(L,(0,u.default)({},K,{className:R}),o)}v.handledProps=["active","as","children","className","collapsing","content","disabled","error","icon","negative","positive","selectable","singleLine","textAlign","verticalAlign","warning","width"],v.defaultProps={as:"td"},v.propTypes={},v.create=(0,t.createShorthandFactory)(v,function(n){return{content:n}});var s=v;return J.default=s,J}var Y={},X={},je;function Fe(){if(je)return X;je=1;var e=q;X.__esModule=!0,X.default=void 0;var u=e(U),i=e(Z);e(B);var d=e(b),t=$();function l(s){var n=s.children,r=s.className,o=s.content,p=s.fullWidth,f=(0,i.default)((0,t.useKeyOnly)(p,"full-width"),r),m=(0,t.getUnhandledProps)(l,s),y=(0,t.getElementType)(l,s);return d.default.createElement(y,(0,u.default)({},m,{className:f}),t.childrenUtils.isNil(n)?o:n)}l.handledProps=["as","children","className","content","fullWidth"],l.defaultProps={as:"thead"},l.propTypes={};var v=l;return X.default=v,X}var Re;function Ia(){if(Re)return Y;Re=1;var e=q;Y.__esModule=!0,Y.default=void 0;var u=e(U);e(B);var i=e(b),d=$(),t=e(Fe());function l(s){var n=s.as,r=(0,d.getUnhandledProps)(l,s);return i.default.createElement(t.default,(0,u.default)({},r,{as:n}))}l.handledProps=["as"],l.propTypes={},l.defaultProps={as:"tfoot"};var v=l;return Y.default=v,Y}var ee={},Le;function Oa(){if(Le)return ee;Le=1;var e=q;ee.__esModule=!0,ee.default=void 0;var u=e(U),i=e(Z);e(B);var d=e(b),t=$(),l=e(he());function v(n){var r=n.as,o=n.className,p=n.sorted,f=(0,i.default)((0,t.useValueAndKey)(p,"sorted"),o),m=(0,t.getUnhandledProps)(v,n);return d.default.createElement(l.default,(0,u.default)({},m,{as:r,className:f}))}v.handledProps=["as","className","sorted"],v.propTypes={},v.defaultProps={as:"th"};var s=v;return ee.default=s,ee}var ae={},Ie;function Ma(){if(Ie)return ae;Ie=1;var e=q;ae.__esModule=!0,ae.default=void 0;var u=e(U);e(_e());var i=e(be()),d=e(Z);e(B);var t=e(b),l=$(),v=e(he());function s(r){var o=r.active,p=r.cellAs,f=r.cells,m=r.children,y=r.className,P=r.disabled,h=r.error,N=r.negative,E=r.positive,D=r.textAlign,k=r.verticalAlign,S=r.warning,A=(0,d.default)((0,l.useKeyOnly)(o,"active"),(0,l.useKeyOnly)(P,"disabled"),(0,l.useKeyOnly)(h,"error"),(0,l.useKeyOnly)(N,"negative"),(0,l.useKeyOnly)(E,"positive"),(0,l.useKeyOnly)(S,"warning"),(0,l.useTextAlignProp)(D),(0,l.useVerticalAlignProp)(k),y),w=(0,l.getUnhandledProps)(s,r),j=(0,l.getElementType)(s,r);return l.childrenUtils.isNil(m)?t.default.createElement(j,(0,u.default)({},w,{className:A}),(0,i.default)(f,function(R){return v.default.create(R,{defaultProps:{as:p}})})):t.default.createElement(j,(0,u.default)({},w,{className:A}),m)}s.handledProps=["active","as","cellAs","cells","children","className","disabled","error","negative","positive","textAlign","verticalAlign","warning"],s.defaultProps={as:"tr",cellAs:"td"},s.propTypes={},s.create=(0,l.createShorthandFactory)(s,function(r){return{cells:r}});var n=s;return ae.default=n,ae}var M=q;ce.__esModule=!0;ce.default=void 0;var Oe=M(U);M(_e());var Me=M(be()),ka=M(Z);M(B);var te=M(b),T=$(),Ge=M(La()),Sa=M(he()),Ve=M(Ia()),We=M(Fe()),Da=M(Oa()),ne=M(Ma());function O(e){var u=e.attached,i=e.basic,d=e.celled,t=e.children,l=e.className,v=e.collapsing,s=e.color,n=e.columns,r=e.compact,o=e.definition,p=e.fixed,f=e.footerRow,m=e.headerRow,y=e.headerRows,P=e.inverted,h=e.padded,N=e.renderBodyRow,E=e.selectable,D=e.singleLine,k=e.size,S=e.sortable,A=e.stackable,w=e.striped,j=e.structured,R=e.tableData,K=e.textAlign,L=e.unstackable,F=e.verticalAlign,I=(0,ka.default)("ui",s,k,(0,T.useKeyOnly)(d,"celled"),(0,T.useKeyOnly)(v,"collapsing"),(0,T.useKeyOnly)(o,"definition"),(0,T.useKeyOnly)(p,"fixed"),(0,T.useKeyOnly)(P,"inverted"),(0,T.useKeyOnly)(E,"selectable"),(0,T.useKeyOnly)(D,"single line"),(0,T.useKeyOnly)(S,"sortable"),(0,T.useKeyOnly)(A,"stackable"),(0,T.useKeyOnly)(w,"striped"),(0,T.useKeyOnly)(j,"structured"),(0,T.useKeyOnly)(L,"unstackable"),(0,T.useKeyOrValueAndKey)(u,"attached"),(0,T.useKeyOrValueAndKey)(i,"basic"),(0,T.useKeyOrValueAndKey)(r,"compact"),(0,T.useKeyOrValueAndKey)(h,"padded"),(0,T.useTextAlignProp)(K),(0,T.useVerticalAlignProp)(F),(0,T.useWidthProp)(n,"column"),"table",l),c=(0,T.getUnhandledProps)(O,e),g=(0,T.getElementType)(O,e);if(!T.childrenUtils.isNil(t))return te.default.createElement(g,(0,Oe.default)({},c,{className:I}),t);var se=m||y,pe={defaultProps:{cellAs:"th"}},ze=se&&te.default.createElement(We.default,null,ne.default.create(m,pe),(0,Me.default)(y,function(ue){return ne.default.create(ue,pe)}));return te.default.createElement(g,(0,Oe.default)({},c,{className:I}),ze,te.default.createElement(Ge.default,null,N&&(0,Me.default)(R,function(ue,Je){return ne.default.create(N(ue,Je))})),f&&te.default.createElement(Ve.default,null,ne.default.create(f)))}O.handledProps=["as","attached","basic","celled","children","className","collapsing","color","columns","compact","definition","fixed","footerRow","headerRow","headerRows","inverted","padded","renderBodyRow","selectable","singleLine","size","sortable","stackable","striped","structured","tableData","textAlign","unstackable","verticalAlign"];O.defaultProps={as:"table"};O.propTypes={};O.Body=Ge.default;O.Cell=Sa.default;O.Footer=Ve.default;O.Header=We.default;O.HeaderCell=Da.default;O.Row=ne.default;var Ka=O;ce.default=Ka;(function(e){var u=x&&x.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.Table=void 0;var i=ce;Object.defineProperty(e,"Table",{enumerable:!0,get:function(){return u(i).default}})})(Ue);var Ze={},oe={},le={},ke;function Ba(){if(ke)return le;ke=1;var e=q;le.__esModule=!0,le.default=void 0;var u=e($e()),i=e(qe()),d=e(Xe());e(B);var t=b,l=$(),v=e(ea()),s=function(r){(0,u.default)(o,r);function o(){for(var f,m=arguments.length,y=new Array(m),P=0;P<m;P++)y[P]=arguments[P];return f=r.call.apply(r,[this].concat(y))||this,f.handleClick=function(h){(0,i.default)(f.props,"onClick",h,f.props)},f.handleKeyDown=function(h){(0,i.default)(f.props,"onKeyDown",h,f.props),d.default.getCode(h)===d.default.Enter&&(0,i.default)(f.props,"onClick",h,f.props)},f.handleOverrides=function(){return{onClick:f.handleClick,onKeyDown:f.handleKeyDown}},f}var p=o.prototype;return p.render=function(){var m=this.props,y=m.active,P=m.type,h=this.props.disabled||P==="ellipsisItem";return v.default.create(this.props,{defaultProps:{active:y,"aria-current":y,"aria-disabled":h,disabled:h,onClick:this.handleClick,onKeyDown:this.handleKeyDown,tabIndex:h?-1:0},overrideProps:this.handleOverrides})},o}(t.Component);s.handledProps=["active","disabled","onClick","onKeyDown","type"],s.propTypes={},s.create=(0,l.createShorthandFactory)(s,function(r){return{content:r}});var n=s;return le.default=n,le}var H=q;oe.__esModule=!0;oe.default=void 0;var Se=H(U),$a=H($e()),qa=H(be()),Ha=H(aa()),De=H(qe());H(B);var Ua=H(b),ve=$(),Fa=H(ta),Qe=H(Ba()),Q=function(e){(0,$a.default)(u,e);function u(){for(var d,t=arguments.length,l=new Array(t),v=0;v<t;v++)l[v]=arguments[v];return d=e.call.apply(e,[this].concat(l))||this,d.handleItemClick=function(s,n){var r=n.value,o=d.state.activePage;+o!=+r&&(d.setState({activePage:r}),(0,De.default)(d.props,"onPageChange",s,(0,Se.default)({},d.props,{activePage:r})))},d.handleItemOverrides=function(s,n,r){return function(o){return{active:s,type:n,key:n+"-"+r,onClick:function(f,m){(0,De.default)(o,"onClick",f,m),m.type!=="ellipsisItem"&&d.handleItemClick(f,m)}}}},d}var i=u.prototype;return i.getInitialAutoControlledState=function(){return{activePage:1}},i.render=function(){var t=this,l=this.props,v=l["aria-label"],s=l.boundaryRange,n=l.disabled,r=l.ellipsisItem,o=l.siblingRange,p=l.totalPages,f=this.state.activePage,m=(0,ve.createPaginationItems)({activePage:f,boundaryRange:s,hideEllipsis:(0,Ha.default)(r),siblingRange:o,totalPages:p}),y=(0,ve.getUnhandledProps)(u,this.props);return Ua.default.createElement(Fa.default,(0,Se.default)({},y,{"aria-label":v,pagination:!0,role:"navigation"}),(0,qa.default)(m,function(P){var h=P.active,N=P.type,E=P.value;return Qe.default.create(t.props[N],{defaultProps:{content:E,disabled:n,value:E},overrideProps:t.handleItemOverrides(h,N,E)})}))},u}(ve.ModernAutoControlledComponent);oe.default=Q;Q.handledProps=["activePage","aria-label","boundaryRange","defaultActivePage","disabled","ellipsisItem","firstItem","lastItem","nextItem","onPageChange","pageItem","prevItem","siblingRange","totalPages"];Q.propTypes={};Q.autoControlledProps=["activePage"];Q.defaultProps={"aria-label":"Pagination Navigation",boundaryRange:1,ellipsisItem:"...",firstItem:{"aria-label":"First item",content:"«"},lastItem:{"aria-label":"Last item",content:"»"},nextItem:{"aria-label":"Next item",content:"⟩"},pageItem:{},prevItem:{"aria-label":"Previous item",content:"⟨"},siblingRange:1};Q.Item=Qe.default;(function(e){var u=x&&x.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.Pagination=void 0;var i=oe;Object.defineProperty(e,"Pagination",{enumerable:!0,get:function(){return u(i).default}})})(Ze);(function(e){var u=x&&x.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.ROWS_PER_PAGE=void 0;var i=u(b),d=la,t=Ue,l=na,v=Ze,s=0,n=1;e.ROWS_PER_PAGE=10;var r=function(o){var p=o.empty,f=o.data,m=o.isLoading,y=o.totalPages,P=o.activePage,h=P===void 0?1:P,N=o.setPage,E=o.total,D=o.rowsPerPage,k=D===void 0?e.ROWS_PER_PAGE:D,S=o.hasHeaders,A=S===void 0?!1:S,w=o.customHeaders,j=w===void 0?{}:w,R=o.i18n,K=(0,d.useMobileMediaQuery)(),L=f.length>0?Object.keys(f[0]):null,F=y&&y>1;return i.default.createElement("div",{className:"dui-table-content ".concat(F?"":"dui-table-content--radius-ending"," ").concat(A?"":"dui-table-content__headers--empty")},m?i.default.createElement("div",{className:"dui-table-content__table--empty"},i.default.createElement(l.Loader,{active:!0,"data-testid":"loader"})):L?i.default.createElement(t.Table,{basic:"very","data-testid":"table-content"},i.default.createElement(t.Table.Body,{className:m?"dui-table-content__table--loading":""},i.default.createElement(t.Table.Row,null,L.map(function(I){return i.default.createElement(t.Table.HeaderCell,{key:I},i.default.createElement("span",null,j[I]?j[I]:I))})),f==null?void 0:f.map(function(I,c){return i.default.createElement(t.Table.Row,{key:c},L.map(function(g){return i.default.createElement(t.Table.Cell,{style:{width:"".concat(100/L.length,"%")},key:g},I[g])}))}))):p(),F&&E&&o.activePage!==void 0?i.default.createElement("div",{className:"dui-table-content__pagination"},"".concat(R.sortBy.showing," ").concat((h-1)*k+1,"-").concat(Math.min(h*k,E)," ").concat(R.sortBy.of," ").concat(E),i.default.createElement(v.Pagination,{siblingRange:K?s:n,activePage:h,totalPages:y,onPageChange:function(I,c){return N&&N(+c.activePage)},firstItem:null,lastItem:null})):null)};r.defaultProps={i18n:{sortBy:{showing:"Showing",of:"of"}}},e.default=i.default.memo(r)})(He);var Ga=x&&x.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(de,"__esModule",{value:!0});de.TableContent=void 0;var Va=Ga(He);de.TableContent=Va.default;var Ce={},ye={},Wa=x&&x.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ye,"__esModule",{value:!0});var V=Wa(b),Za=b,Qa=ra,Ke=sa,za=(0,Za.forwardRef)(function(e,u){var i=e.children,d=e.tabsList,t=e.activeTab,l=e.handleTabChange,v=e.sortbyList,s=e.handleSortByChange,n=e.sortBy;return V.default.createElement("div",{className:"dui-table-container",ref:u},d.length||v!=null&&v.length?V.default.createElement("div",{className:"dui-table-container__filters"},d.length>0?V.default.createElement(Ke.Tabs,{isFullscreen:!0},d.map(function(r){return V.default.createElement(Ke.Tabs.Tab,{key:r.value,active:t===r.value,onClick:function(){l&&l(r.value)}},V.default.createElement("div",{className:"dui-table-container__tabs"},r.displayValue))})):null,v&&V.default.createElement(Qa.Dropdown,{direction:"left",className:"dui-table-container__sort-by",value:n,onChange:function(r,o){var p=o.value.toString();s&&s(p)},options:v})):null,i)});ye.default=za;var Ja=x&&x.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ce,"__esModule",{value:!0});var Ya=Ja(ye);Ce.default=Ya.default;(function(e){var u=x&&x.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.TableContainer=e.TableContent=void 0;var i=de;Object.defineProperty(e,"TableContent",{enumerable:!0,get:function(){return i.TableContent}});var d=u(Ce);e.TableContainer=d.default})(ge);const Be="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.1122%209.03225H10.9677V5.88775C10.9677%205.3526%2010.5351%204.91997%209.99997%204.91997C9.46482%204.91997%209.0322%205.3526%209.0322%205.88775V9.03225H5.8877C5.35255%209.03225%204.91992%209.46487%204.91992%2010C4.91992%2010.5352%205.35255%2010.9678%205.8877%2010.9678H9.0322V14.1123C9.0322%2014.6474%209.46482%2015.0801%209.99997%2015.0801C10.5351%2015.0801%2010.9677%2014.6474%2010.9677%2014.1123V10.9678H14.1122C14.6474%2010.9678%2015.08%2010.5352%2015.08%2010C15.08%209.46487%2014.6445%209.03225%2014.1122%209.03225Z'%20fill='%23716B7C'/%3e%3cpath%20d='M10%200C4.48525%200%200%204.48525%200%2010C0%2015.5147%204.48525%2020%2010%2020C15.5147%2020%2020%2015.5147%2020%2010C20%204.48525%2015.5147%200%2010%200ZM10%2018.0675C5.55275%2018.0675%201.9325%2014.4502%201.9325%2010C1.9325%205.55275%205.54975%201.9325%2010%201.9325C14.4502%201.9325%2018.0675%205.5525%2018.0675%2010C18.0675%2014.4475%2014.4475%2018.0675%2010%2018.0675Z'%20fill='%23716B7C'/%3e%3c/svg%3e",Xa="data:image/svg+xml,%3csvg%20width='87'%20height='86'%20viewBox='0%200%2087%2086'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M43.4522%2016.27C54.6209%2016.27%2065.7884%2016.2686%2076.9574%2016.2706C81.2354%2016.2713%2084.1347%2018.9961%2084.1347%2023.0135C84.1361%2036.4649%2084.0708%2049.9164%2084.1754%2063.3671C84.2056%2067.2418%2080.8901%2070.2593%2076.8614%2070.2455C54.5917%2070.1678%2032.322%2070.2093%2010.0523%2070.208C5.70207%2070.2073%202.82599%2067.5055%202.82527%2063.4197C2.82387%2049.9367%202.82387%2036.4544%202.82527%2022.9717C2.82597%2019.0142%205.73783%2016.2724%209.94628%2016.2717C21.1149%2016.2691%2032.2825%2016.2704%2043.4514%2016.2704L43.4522%2016.27ZM43.4796%2018.677C32.4098%2018.677%2021.3393%2018.7342%2010.271%2018.6382C7.41108%2018.6132%205.33524%2020.5104%205.35357%2023.2483C5.44413%2036.5762%205.44203%2049.9054%205.35357%2063.2331C5.33602%2065.8624%207.26371%2067.8539%2010.2724%2067.8459C32.4127%2067.7874%2054.5512%2067.7887%2076.6915%2067.8453C79.6538%2067.8525%2081.6294%2065.9455%2081.6139%2063.2318C81.5388%2049.9032%2081.5395%2036.5747%2081.6139%2023.2453C81.6301%2020.4179%2079.4982%2018.6141%2076.6888%2018.6379C65.6197%2018.7313%2054.5485%2018.676%2043.4802%2018.676L43.4796%2018.677Z'%20fill='white'/%3e%3cpath%20d='M21.8166%2043.8094C16.7813%2039.5807%2017.5065%2033.5202%2021.068%2030.2574C24.917%2026.7321%2030.9878%2026.7645%2034.7483%2030.3164C38.312%2033.6821%2038.8665%2039.6729%2033.9155%2043.8162C34.3623%2044.0263%2034.7759%2044.2033%2035.1711%2044.4101C40.506%2047.2083%2043.4953%2051.4026%2043.7906%2057.1773C43.8494%2058.3341%2043.1143%2058.7696%2042.5024%2058.8426C41.8367%2058.936%2040.7425%2058.4839%2040.6704%2057.3152C40.5245%2054.9479%2039.7809%2052.7914%2038.3376%2050.8405C35.2967%2046.7296%2029.6635%2044.8179%2024.4633%2046.1411C19.3401%2047.4444%2015.5584%2051.6659%2015.1001%2056.5948C15.0703%2056.9103%2015.0604%2057.2279%2015.0108%2057.5408C14.8515%2058.5451%2014.0434%2058.9561%2013.1866%2058.8712C12.6314%2058.8255%2011.812%2058.4324%2011.8658%2057.3372C12.1491%2051.5414%2015.0853%2047.2768%2020.4512%2044.4401C20.8585%2044.2246%2021.2912%2044.0509%2021.8181%2043.8097L21.8166%2043.8094ZM27.8165%2042.9397C28.8179%2042.8575%2029.9071%2042.9868%2030.8038%2042.6566C34.0572%2041.4567%2035.7101%2037.7821%2034.5799%2034.5882C33.4482%2031.3888%2029.8186%2029.4525%2026.3783%2030.2123C22.6779%2031.029%2020.3664%2034.1288%2020.8827%2037.6555C21.1157%2039.2458%2021.9528%2040.5524%2023.205%2041.6589C24.5307%2042.8296%2026.0965%2043.061%2027.8169%2042.9403L27.8165%2042.9397ZM64.7436%2031.0727C67.6834%2031.0727%2070.6231%2031.0694%2073.5629%2031.0747C74.5714%2031.0767%2075.133%2032.0114%2075.1365%2032.7306C75.1394%2033.3671%2074.553%2034.2965%2073.5927%2034.2971C67.7138%2034.2998%2061.8345%2034.2998%2055.9549%2034.2971C54.9684%2034.2965%2054.3728%2033.4267%2054.3728%2032.5385C54.3728%2031.9418%2054.8232%2031.0741%2055.9252%2031.0734C58.865%2031.0721%2061.804%2031.0727%2064.7438%2031.0727L64.7436%2031.0727ZM64.9837%2044.9265C62.0787%2044.9265%2059.1736%2044.9304%2056.2686%2044.9245C55.27%2044.9225%2054.7332%2044.0269%2054.6992%2043.2566C54.746%2042.6652%2055.2446%2041.7033%2056.2537%2041.7027C61.9959%2041.7%2067.7387%2041.7%2073.4808%2041.7027C74.541%2041.7033%2075.1352%2042.6527%2075.1359%2043.3938C75.1366%2044.1025%2074.4199%2044.9265%2073.33%2044.9265C70.493%2044.9278%2067.8208%2044.9271%2064.9831%2044.9271L64.9837%2044.9265ZM66.6168%2052.3293C68.9815%2052.3293%2071.3469%2052.3379%2073.7123%2052.3306C74.7038%2052.3273%2075.1337%2053.3224%2075.1365%2053.98C75.14%2054.735%2074.5593%2055.5524%2073.7215%2055.5531C68.8895%2055.5571%2064.0581%2055.5584%2059.2261%2055.5518C58.2856%2055.5504%2057.6971%2054.912%2057.6921%2053.9362C57.6872%2052.9511%2058.2608%2052.3346%2059.2162%2052.332C61.6827%2052.3247%2064.1495%2052.3293%2066.6161%2052.3293L66.6168%2052.3293Z'%20fill='white'/%3e%3c/svg%3e";var W=(e=>(e.DESC="DESC",e.ASC="ASC",e))(W||{});const ie=12,fe=re.get("MARKETPLACE_WEB_URL",""),et=re.get("MARKETPLACE_API",""),at=re.get("REGISTRAR_CONTRACT_ADDRESS",""),me=re.get("ENS_GATEWAY");function tt(e){const{ensList:u,alias:i,hasProfileCreated:d,avatar:t,isLoading:l,error:v,onOpenModal:s,total:n,onFetchENSList:r}=e,[o,p]=Pe.useState(W.ASC),[f,m]=Pe.useState(1),y=ia();b.useEffect(()=>{r(ie,(f-1)*ie)},[r,f]);const P=b.useCallback(c=>{m(c)},[]),h=b.useMemo(()=>[...u].sort((c,g)=>{switch(o){case W.ASC:return c.subdomain.toLowerCase()<g.subdomain.toLowerCase()?-1:1;case W.DESC:return c.subdomain.toLowerCase()>g.subdomain.toLowerCase()?-1:1;default:return 0}}),[u,o]),N=b.useCallback(c=>y.push(Te.ensSelectLand(c.subdomain)),[y]),E=b.useCallback(c=>{if(re.is(da.Env.DEVELOPMENT)){const g=c.subdomain.split(".");return g.splice(g.length-1,0,"istest"),`https://${g.join(".")}.${me}`}return`https://${c.subdomain}.${me}`},[me]),D=b.useCallback(c=>{s("UseAsAliasModal",{newName:c})},[s]),k=b.useCallback(c=>D(c),[]),S=b.useCallback(c=>{s("EnsMapAddressModal",{ens:c})},[s]),A=b.useCallback(c=>{s("ReclaimNameModal",{ens:c})},[s]),w=b.useCallback(()=>a.jsx(C.Dropdown,{direction:"left",value:o,options:[{value:W.ASC,text:_("global.order.name_asc")},{value:W.DESC,text:_("global.order.name_desc")}],onChange:(c,{value:g})=>p(g)}),[o]),j=b.useCallback(c=>i?c.name==i:!1,[i]),R=b.useCallback(c=>c.ensOwnerAddress!==c.nftOwnerAddress?a.jsxs(C.Button,{compact:!0,className:"ens-list-btn",onClick:A.bind(null,c),children:[a.jsx(C.Icon,{name:"arrow alternate circle down outline",className:"ens-list-reclaim-icon"}),_("ens_list_page.button.reclaim_land")]}):c.landId?ca(c.landId)?a.jsxs("div",{className:"ens-list-land",children:[a.jsxs("span",{className:"ens-list-land-coord",children:[a.jsx(G,{name:"pin"}),c.landId]}),a.jsx(C.Button,{compact:!0,className:"ens-list-land-redirect",target:"_blank",href:E(c),rel:"noopener noreferrer",children:a.jsx(G,{name:"right-round-arrow",className:"ens-list-land-redirect-icon"})})]}):a.jsxs("div",{className:"ens-list-land",children:[a.jsxs("span",{className:"ens-list-land-coord",children:[a.jsx(G,{name:"pin"}),`Estate (${c.landId})`]}),a.jsx(C.Button,{compact:!0,className:"ens-list-land-redirect",target:"_blank",href:E(c),rel:"noopener noreferrer",children:a.jsx(G,{name:"right-round-arrow",className:"ens-list-land-redirect-icon"})})]}):a.jsxs(C.Button,{compact:!0,className:"ens-list-btn",onClick:N.bind(null,c),children:[a.jsx(G,{name:"pin"}),_("ens_list_page.button.assign_to_land")]}),[N,A]),K=b.useCallback(c=>c.ensOwnerAddress!==c.nftOwnerAddress?a.jsxs(C.Button,{compact:!0,className:"ens-list-btn",onClick:A.bind(null,c),children:[a.jsx(C.Icon,{name:"arrow alternate circle down outline",className:"ens-list-reclaim-icon"}),_("ens_list_page.button.reclaim_address")]}):c.ensAddressRecord?a.jsxs("span",{className:"ens-list-address",children:[a.jsx("img",{className:"ens-list-address-icon",src:oa,alt:"Ethereum"}),ua(c.ensAddressRecord),a.jsx(Ee,{role:"button",text:c.ensAddressRecord,showPopup:!0,className:"copy-to-clipboard",children:a.jsx(C.Icon,{"aria-label":"copy address","aria-hidden":"false",name:"clone outline"})})]}):a.jsxs(C.Button,{compact:!0,className:"ens-list-btn",onClick:S.bind(null,c),children:[a.jsx("img",{src:Be,alt:_("ens_list_page.button.link_to_address"),className:"ens-list-add-icon"}),_("ens_list_page.button.link_to_address")]}),[S,A]),L=b.useCallback(c=>c.map(g=>{var se;return{name:a.jsxs("div",{className:"ens-list-name",children:[a.jsx("img",{className:"ens-list-name-icon",alt:g.subdomain,src:`${et}/ens/generate?ens=${g.name}&width=330&height=330&onlyLogo=true`}),a.jsxs("span",{className:"ens-list-subdomain",children:[a.jsx("span",{children:g.name}),".dcl.eth"]}),a.jsx(Ee,{role:"button",text:g.subdomain,showPopup:!0,className:"copy-to-clipboard",children:a.jsx(C.Icon,{"aria-label":"copy subdomain","aria-hidden":"false",name:"clone outline"})}),g.ensOwnerAddress!==g.nftOwnerAddress?a.jsx("span",{className:"ens-list-unclaimed-badge",children:_("ens_list_page.unclaimed")}):null]}),alias:j(g)?a.jsxs("span",{className:"ens-list-avatar",children:[t?a.jsx("img",{className:"ens-list-avatar-img",src:((se=t.avatar.snapshots)==null?void 0:se.face256)||"",alt:t.realName}):a.jsx(G,{name:"profile"}),a.jsx("span",{className:"ens-list-avatar-name",children:g.name}),_("ens_list_page.table.you")]}):a.jsxs(C.Button,{compact:!0,className:"ens-list-btn",onClick:k.bind(null,g.name),disabled:!d,children:[a.jsx("img",{src:Be,alt:_("ens_list_page.button.add_to_avatar"),className:"ens-list-add-icon"}),_("ens_list_page.button.add_to_avatar")]}),address:K(g),land:R(g),actions:a.jsxs("div",{className:"ens-list-actions",children:[a.jsxs(C.Button,{secondary:!0,compact:!0,className:"ens-list-transfer-btn",target:"_blank",href:`${fe}/contracts/${at}/tokens/${g.tokenId}/transfer`,children:[a.jsx(C.Icon,{name:"exchange"}),_("ens_list_page.transfer")]}),a.jsx(va,{to:Te.ensDetail(g.name),children:a.jsxs(C.Button,{primary:!0,compact:!0,className:"ens-list-edit-btn",children:[a.jsx(C.Icon,{name:"pencil alternate"}),_("ens_list_page.edit")]})})]})}}),[d,j,R,K,k]),F=b.useCallback(()=>a.jsxs("div",{className:"ens-list-page-empty",children:[a.jsx("div",{className:"ens-list-page-empty-image",children:a.jsx("img",{src:Xa,alt:"empty names"})}),a.jsx("h3",{className:"ens-list-page-empty-title",children:_("ens_list_page.empty_state.title")}),a.jsx("span",{className:"ens-list-page-empty-subtitle",children:_("ens_list_page.empty_state.subtitle")}),a.jsx("div",{className:"ens-list-page-empty-actions",children:a.jsx(C.Button,{primary:!0,href:`${fe}/names/claim`,target:"_blank",children:_("ens_list_page.empty_state.mint_name")})})]}),[]),I=b.useCallback(()=>{const c=Math.ceil(n/ie);return a.jsxs("div",{className:"ens-page-content",children:[a.jsxs("div",{className:"ens-page-header",children:[a.jsxs("div",{className:"ens-page-title",children:[a.jsx("h1",{children:_("ens_list_page.title")}),_("ens_list_page.result",{count:n})]}),a.jsxs("div",{className:"ens-page-actions",children:[u.length>1?a.jsxs("div",{children:[_("ens_list_page.sort_by")," ",w()]}):null,a.jsx(C.Button,{compact:!0,href:`${fe}/names/claim`,target:"_blank",primary:!0,children:_("ens_list_page.mint_name")})]})]}),a.jsx(ge.TableContainer,{children:a.jsx(ge.TableContent,{data:L(h),isLoading:l,activePage:f,setPage:P,totalPages:c,empty:F,total:n,rowsPerPage:ie,hasHeaders:!0,customHeaders:{name:a.jsx("span",{className:"ens-list-page-table-headers",children:_("ens_list_page.table.name")}),alias:a.jsxs("span",{className:"ens-list-page-table-headers",children:[_("ens_list_page.table.alias"),a.jsx(C.Popup,{on:"click",content:_("ens_detail_page.tooltips.alias"),trigger:a.jsx(C.Icon,{name:"info circle"})})]}),address:a.jsxs("span",{className:"ens-list-page-table-headers",children:[_("ens_list_page.table.address"),a.jsx(C.Popup,{on:"click",content:_("ens_detail_page.tooltips.address"),trigger:a.jsx(C.Icon,{name:"info circle"})})]}),land:a.jsxs("span",{className:"ens-list-page-table-headers",children:[_("ens_list_page.table.land"),a.jsx(C.Popup,{on:"click",content:_("ens_detail_page.tooltips.land"),trigger:a.jsx(C.Icon,{name:"info circle"})})]}),actions:a.jsx("span",{className:"ens-list-page-table-headers",children:_("ens_list_page.table.actions")})}}),tabsList:[]})]})},[h,l,f,n,P,L,F,w,u.length]);return a.jsx(Ra,{className:"ENSListPage view",error:v,activeTab:ja.NAMES,isLoading:l,isPageFullscreen:!0,children:I()})}const lt=e=>{var u;return{alias:ma(e),address:ga(e),ensList:_a(e),lands:ba(e),error:((u=ha(e))==null?void 0:u.message)||(Ca(e)??void 0),hasProfileCreated:Ne(e)!==null,isLoading:xe(ya(e),Aa)||xe(pa(e),wa)||Pa(e),isLoggedIn:Ta(e),avatar:Ne(e),total:Ea(e)}},nt=e=>({onOpenModal:(u,i)=>e(Na(u,i)),onFetchENSList:(u,i)=>e(xa(u,i))}),ot=fa(lt,nt)(tt);export{ot as default};