@dcl/builder-site 7.16.0 → 7.16.1-19644308472.commit-c4256dc
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.
- package/assets/{Back-D94RsYQI.js → Back-CDOxIrnn.js} +1 -1
- package/assets/{CollectionProvider.container-B6B7jeBx.js → CollectionProvider.container-3333NUxE.js} +1 -1
- package/assets/{CollectionStatus.container-CmB5tcfq.js → CollectionStatus.container-DzhTjeP9.js} +1 -1
- package/assets/{ConfirmDelete-DmmVVAp0.js → ConfirmDelete-Bi0mUMu0.js} +1 -1
- package/assets/{FileSaver.min-C38aG5Wv.js → FileSaver.min-CZvv48fT.js} +1 -1
- package/assets/{ItemProvider.container-C3ASCRbL.js → ItemProvider.container-7qkDLYej.js} +2 -2
- package/assets/{JumpIn.container-DNWn05IB.js → JumpIn.container-Db9sy8sq.js} +1 -1
- package/assets/{LandAction-DhmPYdL8.js → LandAction-CiY0RweX.js} +1 -1
- package/assets/{LandProviderPage-D2JQ3F7v.js → LandProviderPage-DMoeh5ZK.js} +1 -1
- package/assets/{LoggedInDetailPage.container-D3YwBYzF.js → LoggedInDetailPage.container-C9GSQhch.js} +1 -1
- package/assets/{Navigation-C34bp3Mt.css → Navigation-CV4Ecri2.css} +1 -1
- package/assets/{Navigation.container-Bvr99qLy.js → Navigation.container-DdDz8aQR.js} +1 -1
- package/assets/{NotFound-mNWy5xM3.js → NotFound-BxsG7cuR.js} +1 -1
- package/assets/{OptionsDropdown-DEuKM56F.js → OptionsDropdown-DdF7xSCX.js} +1 -1
- package/assets/{RentalPeriod-D_beCQN0.js → RentalPeriod-DgXK5WFQ.js} +1 -1
- package/assets/{SDKTag-26bb1MRo.js → SDKTag-ChEtvoIS.js} +1 -1
- package/assets/{SceneStats.container-BzjcXk6l.js → SceneStats.container-ZJOdavL5.js} +1 -1
- package/assets/{SignInRequired-NQYfoxmv.js → SignInRequired-DmF9Qp0Q.js} +1 -1
- package/assets/{ThirdPartyKindBadge-Be0Ad4fF.js → ThirdPartyKindBadge-BA3-jy7a.js} +1 -1
- package/assets/{dataReader-BNRTZZiJ.js → dataReader-DAefHot9.js} +1 -1
- package/assets/{date-C9ArxA_e.js → date-XnshaYAj.js} +1 -1
- package/assets/{fortmatic-DGqcSaN2.js → fortmatic-Bxn9btu4.js} +1 -1
- package/assets/{hooks-BBT2z0gO.js → hooks-BR9ATp8C.js} +1 -1
- package/assets/{index-jRpvNFmH.js → index-1qhlYVJo.js} +1 -1
- package/assets/index-8nDAcs6q.js +1 -0
- package/assets/{index-Zh552Wzc.js → index-B6z24HhG.js} +1 -1
- package/assets/{index-Dnz1DwyM.js → index-B7JMFszx.js} +1 -1
- package/assets/{index-UYYEhvXh.js → index-BBxq5T5O.js} +1 -1
- package/assets/{index-WzZM31bL.js → index-BCXSooAS.js} +1 -1
- package/assets/{index-DmeQdYL_.js → index-BDqGuP6d.js} +1 -1
- package/assets/{index-DN6zeLPW.js → index-BNWfs07B.js} +1 -1
- package/assets/{index-YAqkouTP.js → index-BQKKZYid.js} +1 -1
- package/assets/{index-BJF4F6E2.js → index-BZVd6DXW.js} +1 -1
- package/assets/{index-CHW3a1d8.css → index-BdXvBSq9.css} +7 -7
- package/assets/{index-DDKLiU5I.js → index-Bg3kbxT6.js} +1 -1
- package/assets/{index-iqc2hUgY.js → index-BgAj-Cjh.js} +1 -1
- package/assets/{index-wJpnjryc.js → index-BhcZNLcf.js} +1 -1
- package/assets/index-Biexqjwx.css +1 -0
- package/assets/index-C71GMpBg.css +1 -0
- package/assets/{index-DV-S_Vo4.js → index-CAEFSp6T.js} +1 -1
- package/assets/{index-Dal8DaD9.js → index-CDypNyWX.js} +1 -1
- package/assets/index-CIJ-Apwv.js +1 -0
- package/assets/{index--dRbXcCy.js → index-CJe-sWhe.js} +1 -1
- package/assets/{index-BWehEcif.js → index-CLws8iD9.js} +1 -1
- package/assets/index-CTHhGxUn.js +1 -0
- package/assets/{index-DdbnxO3S.css → index-CUpuV6SS.css} +1 -1
- package/assets/{index-hi-6PNHv.js → index-CYwns7My.js} +1 -1
- package/assets/{index-BspQeoNu.js → index-CmdFvF1a.js} +1 -1
- package/assets/{index-dORSrkG_.js → index-D3CkOUIz.js} +1 -1
- package/assets/{index-C3s6sasx.js → index-D7MNQUVi.js} +1 -1
- package/assets/index-DDJJ4aT_.css +1 -0
- package/assets/{index-BpSWUH3N.js → index-DDLQh72H.js} +22 -22
- package/assets/{index-ZYJx20me.js → index-DTyOeuDD.js} +1 -1
- package/assets/{index-Dj7mQiFF.js → index-D_KoEYmR.js} +1 -1
- package/assets/{index-wJdvWbwQ.js → index-DfkdTSnc.js} +1 -1
- package/assets/{index-C4HHYdhM.js → index-DhbZhfsJ.js} +1 -1
- package/assets/{index-BYp2WENw.js → index-DhhNoSjU.js} +1 -1
- package/assets/{index-DybHUI1B.css → index-Dje7cGpR.css} +1 -1
- package/assets/{index-kotSpI1A.js → index-Dlnzy_Ws.js} +1 -1
- package/assets/{index-BqzYHGMh.js → index-Dmtoehcg.js} +1 -1
- package/assets/{index-By6X_sWo.js → index-Dr1aQrkO.js} +1 -1
- package/assets/{index-B1GtOexf.css → index-DtoAxbrz.css} +1 -1
- package/assets/{index-CvYXhhW4.js → index-DxDsw9f1.js} +1 -1
- package/assets/index-Fo4geG3i.css +1 -0
- package/assets/{index-BTGNYpgk.js → index-HyBfIc0E.js} +1 -1
- package/assets/{index--jj2eEdN.js → index-KdMkTi9U.js} +1 -1
- package/assets/{index-hHyn87hK.js → index-TCqfus0x.js} +1 -1
- package/assets/{index-D-omXGcm.js → index-Tn0fe1c8.js} +1 -1
- package/assets/index-VqI7gByO.js +2 -0
- package/assets/{index-CgalNfsG.js → index-Y7uEsaMN.js} +1 -1
- package/assets/{index-lVsZiQbZ.js → index-bgQz0P48.js} +1 -1
- package/assets/index-dkUDE4T4.js +1 -0
- package/assets/{index-BIQTKV6z.js → index-s-JRPuW3.js} +1 -1
- package/assets/{index.es-CZG9hSjz.js → index.es-DjPcoY42.js} +4 -4
- package/assets/{selectors-Hr22Peqo.js → selectors-BFWzed6x.js} +1 -1
- package/index.html +3 -3
- package/package.json +3 -3
- package/assets/index-BiiQf61S.css +0 -1
- package/assets/index-Blc255Kh.js +0 -1
- package/assets/index-BpxsDhC6.css +0 -1
- package/assets/index-BwKOgET4.js +0 -2
- package/assets/index-CWBtF0Bm.css +0 -1
- package/assets/index-DDGKUpl1.js +0 -1
- package/assets/index-D_n7A5EP.css +0 -1
- package/assets/index-DgjHmPjs.js +0 -1
- package/assets/index-wgtjB6lV.js +0 -1
|
@@ -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-
|
|
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-DDLQh72H.js";import{N as W}from"./Navigation.container-DdDz8aQR.js";import{L as M}from"./LoggedInDetailPage.container-C9GSQhch.js";import{R as X}from"./RentalPeriod-DgXK5WFQ.js";import"./selectors-BFWzed6x.js";import"./SignInRequired-DmF9Qp0Q.js";import"./index-BBxq5T5O.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,4 +1,4 @@
|
|
|
1
|
-
import{q as le}from"./index-
|
|
1
|
+
import{q as le}from"./index-DDLQh72H.js";function me(w,f){for(var h=0;h<f.length;h++){const x=f[h];if(typeof x!="string"&&!Array.isArray(x)){for(const u in x)if(u!=="default"&&!(u in w)){const s=Object.getOwnPropertyDescriptor(x,u);s&&Object.defineProperty(w,u,s.get?s:{enumerable:!0,get:()=>x[u]})}}}return Object.freeze(Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}))}var J=function(w,f){var h={};function x(u){if(h[u])return h[u].exports;var s=h[u]={i:u,l:!1,exports:{}};return w[u].call(s.exports,s,s.exports,x),s.l=!0,s.exports}return x(732)}({336:function(w,f,h){Object.defineProperty(f,"__esModule",{value:!0});const x=h(946),u=h(623);class s extends u.SceneWriter{constructor(){super(...arguments),this.instanceCount=0,this.nameMapping={}}addEntity(a,e){if(this.entities.has(a))throw new Error(`There is already an entity with name "${a}"`);this.nameMapping[a]=++this.instanceCount,this.entities.set(a,e)}getEntityName(a){const e=super.getEntityName(a);return e&&""+this.nameMapping[e]}stepPrologue(){return`dcl.subscribe('sceneStart');
|
|
2
2
|
`}stepStartEntity(a,e){return`dcl.addEntity('${e}');
|
|
3
3
|
`}stepSetEntityParent(a,e,n){let t="0";if(n&&(t=this.getEntityName(n),!t))throw new Error(`Parent entity of "${super.getEntityName(a)}" is missing, you should add parents first.`);return`dcl.setParent('${e}', '${t}');
|
|
4
4
|
`}stepWriteComponentDeclaration(a,e,n,t){return x.getComponentName(e)==="engine.transform"?`dcl.updateEntityComponent('${this.getEntityName(a)}', 'engine.transform', ${x.getComponentClassId(e)}, JSON.stringify(${JSON.stringify(e)}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b1 as ye,ak as te,a4 as ae,N as e,c$ as z,M as a,T as Re,d0 as me,a7 as ne,d1 as G,S as s,d2 as Y,d3 as Pe,d4 as M,cN as De,J as l,R as k,aG as le,bQ as Ae,aa as ge,ab as _,d5 as We,d6 as pe,d7 as Oe,bq as L,d8 as Ue,cT as xe,d9 as se,da as Ce,db as je,dc as de,dd as ue,de as K,df as Q,P as be,a5 as he,cP as Be,dg as Me,dh as Ie,cQ as He,di as $e,cc as Fe,dj as ze,ac as Ke,aj as Qe,dk as Ge,dl as Ye,cU as Ve,a2 as X,dm as qe,cV as Je,cW as Xe,cd as Ze,dn as es}from"./index-BpSWUH3N.js";import{a as we,N as ss}from"./Navigation.container-Bvr99qLy.js";import{L as ts}from"./LoggedInDetailPage.container-D3YwBYzF.js";import"./selectors-Hr22Peqo.js";import"./SignInRequired-NQYfoxmv.js";var B=(t=>(t.DESC="DESC",t.ASC="ASC",t))(B||{});const Ne="tab";var b=(t=>(t.DCL="dcl",t.ENS="ens",t.CONTRIBUTOR="contributor",t))(b||{});const Ee=()=>{const t=ye(),n=new URLSearchParams(t.search),d=n.get(Ne),m={urlSearchParams:n,pathname:t.pathname};switch(d){case"dcl":m.tab="dcl";break;case"ens":m.tab="ens";break;case"contributor":m.tab="contributor";break}return m},as=({isWorldContributorEnabled:t})=>{const{tab:n,pathname:d,urlSearchParams:m}=Ee(),c=ae(),g=o=>{const i=new URLSearchParams(m);i.set(Ne,o),c.push(`${d}?${i.toString()}`)};return!n||n===b.CONTRIBUTOR&&!t?(g(b.DCL),null):e.jsxs(z,{children:[e.jsx(z.Tab,{active:n===b.DCL,onClick:()=>g(b.DCL),children:a("worlds_list_page.name_tabs.dcl_names")}),e.jsx(z.Tab,{active:n===b.ENS,onClick:()=>g(b.ENS),children:a("worlds_list_page.name_tabs.ens_names")}),t&&e.jsx(z.Tab,{active:n===b.CONTRIBUTOR,onClick:()=>g(b.CONTRIBUTOR),children:a("worlds_list_page.name_tabs.contributor_names")})]})},ns=te.memo(as),ls=t=>({isWorldContributorEnabled:me(t)}),rs=Re(ls)(ns),os="_container_12bci_1",is="_used_12bci_7",cs="_description_12bci_13",ds="_link_12bci_20",us="_space_12bci_27",bs="_current_12bci_33",hs="_bar_12bci_38",S={container:os,used:is,description:cs,link:ds,space:us,current:bs,bar:hs},_s="worlds-storage-current-mbs",ms="worlds-storage-bar-front",gs="worlds-storage",ps=({maxBytes:t,currentBytes:n,className:d,onViewDetails:m})=>{const c=Y(t),g=Y(n),o=g*100/c;return e.jsxs("div",{"data-testid":gs,className:ne(S.container,d),children:[e.jsx("span",{className:S.used,children:a("worlds_list_page.worlds_storage.used")}),e.jsxs("div",{className:S.description,children:[e.jsx("span",{children:a("worlds_list_page.worlds_storage.description")})," ",e.jsx("span",{className:S.link,onClick:m,children:a("worlds_list_page.worlds_storage.link")})]}),e.jsxs("div",{className:S.space,children:[e.jsxs("div",{"data-testid":_s,children:[e.jsx("span",{className:S.current,children:G(g)})," / ",G(c)," Mb"]}),e.jsx(s.Progress,{"data-testid":ms,percent:Math.trunc(o),className:S.bar,size:"small"})]})]})},xs=te.memo(ps),Cs="_worldUrl_1sb6i_1",js="_rightContainer_1sb6i_7",ws="_copyUrn_1sb6i_13",Z={worldUrl:Cs,rightContainer:js,copyUrn:ws};function Te({ens:t,deploymentsByWorlds:n}){const d=Pe(t.subdomain);return M(n,t)?e.jsxs("div",{className:Z.worldUrl,children:[e.jsx("span",{children:d}),e.jsxs("div",{className:Z.rightContainer,children:[e.jsx(De,{role:"button",text:d,showPopup:!0,children:e.jsx(s.Icon,{"aria-label":"Copy urn","aria-hidden":"false",className:ne("copy",Z.copyUrn),name:"copy outline"})}),e.jsx("a",{href:d,target:"_blank",rel:"noopener noreferrer",children:e.jsx(s.Icon,{name:"external alternate"})})]})]}):e.jsx("span",{className:"empty-url",children:a("worlds_list_page.table.empty_url")})}function Se({deploymentsByWorlds:t,ens:n,projects:d,onEditScene:m,onUnpublishScene:c,onPublishScene:g}){const o=t[n.subdomain];return M(t,n)?e.jsxs("div",{className:"publish-scene",children:[e.jsx(s.Popup,{content:o==null?void 0:o.name,on:"hover",trigger:e.jsx("span",{children:o==null?void 0:o.name})}),d.find(i=>i.id===(o==null?void 0:o.projectId))?m&&e.jsx(s.Button,{inverted:!0,size:"small",onClick:()=>m(n),children:a("worlds_list_page.table.edit_scene")}):c&&e.jsx(s.Popup,{content:a("worlds_list_page.table.scene_published_outside_builder"),on:"hover",position:"top center",trigger:e.jsx(s.Button,{inverted:!0,size:"small",onClick:()=>c(n),children:a("worlds_list_page.table.unpublish_scene")})})]}):e.jsxs("div",{className:"publish-scene",children:[e.jsx("span",{children:"-"}),g&&e.jsx(s.Button,{primary:!0,size:"small",onClick:g,children:a("worlds_list_page.table.publish_scene")})]})}function Ns({items:t,deploymentsByWorlds:n,projects:d,loading:m,error:c,onUnpublishWorld:g}){const o=ae(),i=l.useCallback(()=>{o.push(k.scenes())},[o]),N=l.useCallback(p=>{const{projectId:x}=n[p.subdomain];o.push(k.sceneDetail(x))},[n,k,o]),E=l.useCallback(p=>{var C;const x=(C=n[p.subdomain])==null?void 0:C.id;x&&g(x)},[n,g]);return c?e.jsx(s.Message,{error:!0,size:"tiny",visible:!0,content:c.message,header:a("worlds_list_page.error_title")}):m?e.jsx(s.Loader,{active:!0,size:"big"}):t.length?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:"1",children:a("worlds_list_page.table.name")}),e.jsx(s.Table.HeaderCell,{width:"1",children:a("worlds_list_page.table.owner")}),e.jsx(s.Table.HeaderCell,{width:"2",children:a("worlds_list_page.table.url")}),e.jsx(s.Table.HeaderCell,{width:"1",children:a("worlds_list_page.table.published_scene")}),e.jsx(s.Table.HeaderCell,{width:"1",children:a("worlds_list_page.table.size")}),e.jsx(s.Table.HeaderCell,{width:"1",children:a("worlds_list_page.table.permissions")})]})}),e.jsx(s.Table.Body,{children:t.map((p,x)=>{var v,y;const C=(v=p.userPermissions)==null?void 0:v.includes("deployment"),f=(y=p.userPermissions)==null?void 0:y.map(R=>a(`worlds_list_page.table.user_permissions.${R}`)).join("/");return e.jsxs(s.Table.Row,{className:"TableRow",children:[e.jsx(s.Table.Cell,{width:1,children:p.name}),e.jsx(s.Table.Cell,{width:1,children:e.jsx(Ae,{address:p.nftOwnerAddress||""})}),e.jsx(s.Table.Cell,{width:2,children:e.jsx(Te,{deploymentsByWorlds:n,ens:p})}),e.jsx(s.Table.Cell,{width:1,children:e.jsx(Se,{deploymentsByWorlds:n,ens:p,projects:d,onEditScene:C?N:void 0,onPublishScene:C?i:void 0,onUnpublishScene:C?E:void 0})}),e.jsx(s.Table.Cell,{width:1,children:G(Y(Number(p.size)||0))}),e.jsx(s.Table.Cell,{width:1,children:f})]},x)})})]}):e.jsxs(s.Empty,{className:"empty-names-container",height:500,children:[e.jsx("div",{className:"empty-icon dcl-icon"}),e.jsx("div",{className:"empty-title",children:a("worlds_list_page.empty_contributor_list.title")}),e.jsx("div",{className:"empty-description",children:a("worlds_list_page.empty_contributor_list.description",{b:p=>e.jsx("b",{children:p})})}),e.jsx(s.Button,{as:"a",href:`${le.get("MARKETPLACE_WEB_URL")}/names/claim`,target:"_blank",className:"empty-action",primary:!0,children:a("worlds_list_page.empty_list.cta")})]})}const Es=()=>{const t=ge(),n=we(),d=_(We),m=_(pe),c=_(Oe),g=_(i=>L(xe(i),Ue)||L(Ce(i),se)),o=l.useCallback(i=>t(je(i)),[t]);return e.jsx(Ns,{items:d,deploymentsByWorlds:m,projects:n,loading:g,error:c,onUnpublishWorld:o})},_e="Worlds List Page Action",Ts=le.get("ENS_DOMAINS_URL",""),Ss=le.get("MARKETPLACE_WEB_URL"),ee=12,Ls=t=>{const{ensList:n,externalNames:d,error:m,deploymentsByWorlds:c,isLoading:g,projects:o,worldsWalletStats:i,isConnected:N,isWorldContributorEnabled:E,ensTotal:p,onOpenYourStorageModal:x,onOpenWorldsForENSOwnersAnnouncementModal:C,onUnpublishWorld:f,onOpenPermissionsModal:v,onFetchContributableNames:y,onFetchENSList:R}=t,[I,P]=l.useState(B.DESC),[O,U]=l.useState(1),{tab:h}=Ee(),D=ae();l.useEffect(()=>{N&&E&&y()},[N,E]),l.useEffect(()=>{h===b.DCL&&R(ee,(O-1)*ee)},[R,O]);const A=l.useCallback(()=>{h===b.DCL?(de(_e,{action:"Click Claim NAME"}),window.open(`${Ss}/names/claim`,"_blank","noopener,noreferrer")):(de(_e,{action:"Click Claim ENS Domain"}),window.open(Ts,"_blank","noopener,noreferrer"))},[h]),V=l.useCallback(()=>{D.push(k.scenes())},[k,D]),q=l.useCallback(u=>{const{projectId:r}=c[u.subdomain];D.push(k.sceneDetail(r))},[c,k,D]),w=l.useCallback(u=>{var j;const r=(j=c[u.subdomain])==null?void 0:j.id;r&&f(r)},[c,f]),W=l.useCallback((u,r)=>{U(+r.activePage)},[]),re=l.useCallback(()=>e.jsx(s.Dropdown,{direction:"left",value:I,options:[{value:B.ASC,text:a("global.order.name_asc")},{value:B.DESC,text:a("global.order.name_desc")}],onChange:(u,{value:r})=>P(r)}),[I,P]),oe=l.useCallback(u=>{let r=M(c,u)?"active":"inactive";if(r==="active"&&i&&!ue(u.subdomain))switch(K(i).status){case Q.BLOCKED:{r="blocked";break}case Q.TO_BE_BLOCKED:r="warning"}return e.jsx("span",{className:`world-status ${r}`,children:a(`worlds_list_page.table.status_${r}`)})},[c,K,ue,M]),ie=l.useCallback((u,r)=>{var F;const j=h===b.DCL?r==null?void 0:r.dclNames:r==null?void 0:r.ensNames;if(!M(c,u)||!j)return"-";const T=(F=j.find(ve=>ve.name===u.subdomain))==null?void 0:F.size,J=h===b.ENS?" / 25":"";return G(Y(Number(T)))+J},[h]),Le=l.useCallback((u,r)=>{v(r)},[]),H=l.useCallback(()=>{const u=h===b.DCL?p:d.length,r=Math.ceil(u/ee),j=h===b.DCL?n:d;return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"filters",children:e.jsx(s.Container,{children:e.jsxs(s.Row,{children:[e.jsx(s.Column,{children:e.jsx(s.Row,{children:e.jsx(s.Header,{sub:!0,className:"items-count",children:a("ens_list_page.items",{count:t.ensTotal.toLocaleString()})})})}),e.jsx(s.Column,{align:"right",children:e.jsx(s.Row,{children:re()})}),e.jsx(s.Column,{align:"right",grow:!1,shrink:!0,children:e.jsx(s.Row,{children:e.jsx("div",{className:"actions",children:e.jsx(s.Button,{basic:!0,onClick:A,children:e.jsx(be,{name:"add-active"})})})})})]})})}),e.jsx(s.Container,{children:e.jsxs(s.Section,{className:"table-section",children:[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:"2",children:a("worlds_list_page.table.name")}),e.jsx(s.Table.HeaderCell,{width:"2",children:a("worlds_list_page.table.url")}),e.jsx(s.Table.HeaderCell,{width:"1",children:a("worlds_list_page.table.published_scene")}),e.jsx(s.Table.HeaderCell,{width:"1",textAlign:"center",children:a("worlds_list_page.table.size")}),e.jsx(s.Table.HeaderCell,{width:"1",textAlign:"center",children:a("worlds_list_page.table.status")}),e.jsx(s.Table.HeaderCell,{width:"1",textAlign:"center"})]})}),e.jsx(s.Table.Body,{children:j.map((T,J)=>e.jsxs(s.Table.Row,{className:"TableRow",children:[e.jsx(s.Table.Cell,{width:2,children:T.name}),e.jsx(s.Table.Cell,{width:2,children:e.jsx(Te,{deploymentsByWorlds:c,ens:T})}),e.jsx(s.Table.Cell,{width:1,children:e.jsx(Se,{deploymentsByWorlds:c,ens:T,projects:o,onEditScene:q,onPublishScene:V,onUnpublishScene:w})}),e.jsx(s.Table.Cell,{width:1,textAlign:"center",children:ie(T,i)}),e.jsx(s.Table.Cell,{width:1,textAlign:"center",children:oe(T)}),e.jsx(s.Table.Cell,{width:1,textAlign:"center",children:e.jsx(s.Button,{basic:!0,onClick:F=>Le(F,T.subdomain),children:a("worlds_list_page.table.permissions")})})]},J))})]}),r>1&&e.jsx(s.Pagination,{firstItem:null,lastItem:null,totalPages:r,activePage:O,onPageChange:W})]})})]})},[h,n,d,A,re,ie,oe,W,p]),$=l.useCallback(()=>e.jsxs(s.Empty,{className:"empty-names-container",height:500,children:[e.jsx("div",{className:ne("empty-icon",h===b.DCL?"dcl-icon":"ens-icon")}),e.jsx("div",{className:"empty-title",children:h===b.DCL?a("worlds_list_page.empty_list.title"):a("worlds_list_page.empty_list.title_ens")}),e.jsx("div",{className:"empty-description",children:h===b.DCL?a("worlds_list_page.empty_list.description",{b:u=>e.jsx("b",{children:u})}):a("worlds_list_page.empty_list.description_ens",{b:u=>e.jsx("b",{children:u})})}),e.jsx(s.Button,{className:"empty-action",primary:!0,onClick:A,children:h===b.DCL?a("worlds_list_page.empty_list.cta"):a("worlds_list_page.empty_list.cta_ens")})]}),[h,A]),ce=l.useCallback(()=>{if(!i)return null;const u=K(i);if(u.status===Q.OK)return null;let r;return u.status===Q.TO_BE_BLOCKED?r=a("worlds_list_page.worlds_warning_message.to_be_blocked",{toBeBlockedAt:u.toBeBlockedAt.toLocaleDateString(),b:j=>e.jsx("b",{children:j})}):r=a("worlds_list_page.worlds_warning_message.blocked",{blockedAt:u.blockedAt.toLocaleDateString(),b:j=>e.jsx("b",{children:j})}),e.jsxs("div",{className:"insufficient-storage-message",children:[e.jsx("div",{children:e.jsx(be,{name:"alert-warning"})}),e.jsx("div",{children:r})]})},[i,K]),ke=l.useCallback(()=>n.length?e.jsxs("div",{children:[i?e.jsx(xs,{maxBytes:Number(i.maxAllowedSpace),currentBytes:Number(i.usedSpace),className:"worlds-storage",onViewDetails:()=>{x({stats:i})}}):null,ce(),H()]}):e.jsx("div",{children:$()}),[n,i,H,$,ce,x]),fe=l.useCallback(()=>e.jsx("div",{children:d.length>0?H():$()}),[d,$,H]);return l.useEffect(()=>{P(B.ASC),U(1)},[h,U,P]),l.useEffect(()=>{he()&&C()},[he,C]),e.jsx(ts,{className:"WorldListPage view",error:m,activeTab:ss.WORLDS,isLoading:g,isPageFullscreen:!0,children:e.jsxs(s.Container,{children:[e.jsx("h1",{children:a("worlds_list_page.title")}),e.jsx(rs,{}),h===b.DCL&&ke(),h===b.ENS&&fe(),h===b.CONTRIBUTOR&&E&&e.jsx(Es,{})]})})},ks=te.memo(Ls),fs=()=>{const t=ge(),n=we(),d=_(Be),m=_(Me),c=_(pe),g=_(Ie),o=_(He),i=_($e),N=_(xe),E=_(Ce),p=_(Fe),x=_(ze),C=_(Ke),f=_(Qe),v=_(Ge),y=_(Ye),R=_(me),I=_(Ve),P=(o==null?void 0:o.message)??i??void 0,O=l.useMemo(()=>L(N,Xe)||L(E,se)||L(p,Ze)||L(x,se)||L(N,es)||C,[N,E,p,x,C]),U=l.useCallback(w=>t(X("WorldsYourStorageModal",w)),[t]),h=l.useCallback((w,W)=>t(X("WorldPermissionsModal",{worldName:w,isCollaboratorsTabShown:W})),[t]),D=l.useCallback(()=>t(X("WorldsForENSOwnersAnnouncementModal")),[t]),A=l.useCallback(w=>t(je(w)),[t]),V=l.useCallback(()=>t(qe()),[t]),q=l.useCallback((w,W)=>t(Je(w,W)),[t]);return e.jsx(ks,{ensList:d,externalNames:m,deploymentsByWorlds:c,projects:n,worldsPermissions:g,error:P,isLoading:O,isLoggedIn:f,worldsWalletStats:v,isConnected:y,isWorldContributorEnabled:R,ensTotal:I,onOpenYourStorageModal:U,onOpenPermissionsModal:h,onOpenWorldsForENSOwnersAnnouncementModal:D,onUnpublishWorld:A,onFetchContributableNames:V,onFetchENSList:q})},As=fs;export{As as default};
|
|
1
|
+
import{b1 as ye,ak as te,a4 as ae,N as e,c$ as z,M as a,T as Re,d0 as me,a7 as ne,d1 as G,S as s,d2 as Y,d3 as Pe,d4 as M,cN as De,J as l,R as k,aG as le,bQ as Ae,aa as ge,ab as _,d5 as We,d6 as pe,d7 as Oe,bq as L,d8 as Ue,cT as xe,d9 as se,da as Ce,db as je,dc as de,dd as ue,de as K,df as Q,P as be,a5 as he,cP as Be,dg as Me,dh as Ie,cQ as He,di as $e,cc as Fe,dj as ze,ac as Ke,aj as Qe,dk as Ge,dl as Ye,cU as Ve,a2 as X,dm as qe,cV as Je,cW as Xe,cd as Ze,dn as es}from"./index-DDLQh72H.js";import{a as we,N as ss}from"./Navigation.container-DdDz8aQR.js";import{L as ts}from"./LoggedInDetailPage.container-C9GSQhch.js";import"./selectors-BFWzed6x.js";import"./SignInRequired-DmF9Qp0Q.js";var B=(t=>(t.DESC="DESC",t.ASC="ASC",t))(B||{});const Ne="tab";var b=(t=>(t.DCL="dcl",t.ENS="ens",t.CONTRIBUTOR="contributor",t))(b||{});const Ee=()=>{const t=ye(),n=new URLSearchParams(t.search),d=n.get(Ne),m={urlSearchParams:n,pathname:t.pathname};switch(d){case"dcl":m.tab="dcl";break;case"ens":m.tab="ens";break;case"contributor":m.tab="contributor";break}return m},as=({isWorldContributorEnabled:t})=>{const{tab:n,pathname:d,urlSearchParams:m}=Ee(),c=ae(),g=o=>{const i=new URLSearchParams(m);i.set(Ne,o),c.push(`${d}?${i.toString()}`)};return!n||n===b.CONTRIBUTOR&&!t?(g(b.DCL),null):e.jsxs(z,{children:[e.jsx(z.Tab,{active:n===b.DCL,onClick:()=>g(b.DCL),children:a("worlds_list_page.name_tabs.dcl_names")}),e.jsx(z.Tab,{active:n===b.ENS,onClick:()=>g(b.ENS),children:a("worlds_list_page.name_tabs.ens_names")}),t&&e.jsx(z.Tab,{active:n===b.CONTRIBUTOR,onClick:()=>g(b.CONTRIBUTOR),children:a("worlds_list_page.name_tabs.contributor_names")})]})},ns=te.memo(as),ls=t=>({isWorldContributorEnabled:me(t)}),rs=Re(ls)(ns),os="_container_12bci_1",is="_used_12bci_7",cs="_description_12bci_13",ds="_link_12bci_20",us="_space_12bci_27",bs="_current_12bci_33",hs="_bar_12bci_38",S={container:os,used:is,description:cs,link:ds,space:us,current:bs,bar:hs},_s="worlds-storage-current-mbs",ms="worlds-storage-bar-front",gs="worlds-storage",ps=({maxBytes:t,currentBytes:n,className:d,onViewDetails:m})=>{const c=Y(t),g=Y(n),o=g*100/c;return e.jsxs("div",{"data-testid":gs,className:ne(S.container,d),children:[e.jsx("span",{className:S.used,children:a("worlds_list_page.worlds_storage.used")}),e.jsxs("div",{className:S.description,children:[e.jsx("span",{children:a("worlds_list_page.worlds_storage.description")})," ",e.jsx("span",{className:S.link,onClick:m,children:a("worlds_list_page.worlds_storage.link")})]}),e.jsxs("div",{className:S.space,children:[e.jsxs("div",{"data-testid":_s,children:[e.jsx("span",{className:S.current,children:G(g)})," / ",G(c)," Mb"]}),e.jsx(s.Progress,{"data-testid":ms,percent:Math.trunc(o),className:S.bar,size:"small"})]})]})},xs=te.memo(ps),Cs="_worldUrl_1sb6i_1",js="_rightContainer_1sb6i_7",ws="_copyUrn_1sb6i_13",Z={worldUrl:Cs,rightContainer:js,copyUrn:ws};function Te({ens:t,deploymentsByWorlds:n}){const d=Pe(t.subdomain);return M(n,t)?e.jsxs("div",{className:Z.worldUrl,children:[e.jsx("span",{children:d}),e.jsxs("div",{className:Z.rightContainer,children:[e.jsx(De,{role:"button",text:d,showPopup:!0,children:e.jsx(s.Icon,{"aria-label":"Copy urn","aria-hidden":"false",className:ne("copy",Z.copyUrn),name:"copy outline"})}),e.jsx("a",{href:d,target:"_blank",rel:"noopener noreferrer",children:e.jsx(s.Icon,{name:"external alternate"})})]})]}):e.jsx("span",{className:"empty-url",children:a("worlds_list_page.table.empty_url")})}function Se({deploymentsByWorlds:t,ens:n,projects:d,onEditScene:m,onUnpublishScene:c,onPublishScene:g}){const o=t[n.subdomain];return M(t,n)?e.jsxs("div",{className:"publish-scene",children:[e.jsx(s.Popup,{content:o==null?void 0:o.name,on:"hover",trigger:e.jsx("span",{children:o==null?void 0:o.name})}),d.find(i=>i.id===(o==null?void 0:o.projectId))?m&&e.jsx(s.Button,{inverted:!0,size:"small",onClick:()=>m(n),children:a("worlds_list_page.table.edit_scene")}):c&&e.jsx(s.Popup,{content:a("worlds_list_page.table.scene_published_outside_builder"),on:"hover",position:"top center",trigger:e.jsx(s.Button,{inverted:!0,size:"small",onClick:()=>c(n),children:a("worlds_list_page.table.unpublish_scene")})})]}):e.jsxs("div",{className:"publish-scene",children:[e.jsx("span",{children:"-"}),g&&e.jsx(s.Button,{primary:!0,size:"small",onClick:g,children:a("worlds_list_page.table.publish_scene")})]})}function Ns({items:t,deploymentsByWorlds:n,projects:d,loading:m,error:c,onUnpublishWorld:g}){const o=ae(),i=l.useCallback(()=>{o.push(k.scenes())},[o]),N=l.useCallback(p=>{const{projectId:x}=n[p.subdomain];o.push(k.sceneDetail(x))},[n,k,o]),E=l.useCallback(p=>{var C;const x=(C=n[p.subdomain])==null?void 0:C.id;x&&g(x)},[n,g]);return c?e.jsx(s.Message,{error:!0,size:"tiny",visible:!0,content:c.message,header:a("worlds_list_page.error_title")}):m?e.jsx(s.Loader,{active:!0,size:"big"}):t.length?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:"1",children:a("worlds_list_page.table.name")}),e.jsx(s.Table.HeaderCell,{width:"1",children:a("worlds_list_page.table.owner")}),e.jsx(s.Table.HeaderCell,{width:"2",children:a("worlds_list_page.table.url")}),e.jsx(s.Table.HeaderCell,{width:"1",children:a("worlds_list_page.table.published_scene")}),e.jsx(s.Table.HeaderCell,{width:"1",children:a("worlds_list_page.table.size")}),e.jsx(s.Table.HeaderCell,{width:"1",children:a("worlds_list_page.table.permissions")})]})}),e.jsx(s.Table.Body,{children:t.map((p,x)=>{var v,y;const C=(v=p.userPermissions)==null?void 0:v.includes("deployment"),f=(y=p.userPermissions)==null?void 0:y.map(R=>a(`worlds_list_page.table.user_permissions.${R}`)).join("/");return e.jsxs(s.Table.Row,{className:"TableRow",children:[e.jsx(s.Table.Cell,{width:1,children:p.name}),e.jsx(s.Table.Cell,{width:1,children:e.jsx(Ae,{address:p.nftOwnerAddress||""})}),e.jsx(s.Table.Cell,{width:2,children:e.jsx(Te,{deploymentsByWorlds:n,ens:p})}),e.jsx(s.Table.Cell,{width:1,children:e.jsx(Se,{deploymentsByWorlds:n,ens:p,projects:d,onEditScene:C?N:void 0,onPublishScene:C?i:void 0,onUnpublishScene:C?E:void 0})}),e.jsx(s.Table.Cell,{width:1,children:G(Y(Number(p.size)||0))}),e.jsx(s.Table.Cell,{width:1,children:f})]},x)})})]}):e.jsxs(s.Empty,{className:"empty-names-container",height:500,children:[e.jsx("div",{className:"empty-icon dcl-icon"}),e.jsx("div",{className:"empty-title",children:a("worlds_list_page.empty_contributor_list.title")}),e.jsx("div",{className:"empty-description",children:a("worlds_list_page.empty_contributor_list.description",{b:p=>e.jsx("b",{children:p})})}),e.jsx(s.Button,{as:"a",href:`${le.get("MARKETPLACE_WEB_URL")}/names/claim`,target:"_blank",className:"empty-action",primary:!0,children:a("worlds_list_page.empty_list.cta")})]})}const Es=()=>{const t=ge(),n=we(),d=_(We),m=_(pe),c=_(Oe),g=_(i=>L(xe(i),Ue)||L(Ce(i),se)),o=l.useCallback(i=>t(je(i)),[t]);return e.jsx(Ns,{items:d,deploymentsByWorlds:m,projects:n,loading:g,error:c,onUnpublishWorld:o})},_e="Worlds List Page Action",Ts=le.get("ENS_DOMAINS_URL",""),Ss=le.get("MARKETPLACE_WEB_URL"),ee=12,Ls=t=>{const{ensList:n,externalNames:d,error:m,deploymentsByWorlds:c,isLoading:g,projects:o,worldsWalletStats:i,isConnected:N,isWorldContributorEnabled:E,ensTotal:p,onOpenYourStorageModal:x,onOpenWorldsForENSOwnersAnnouncementModal:C,onUnpublishWorld:f,onOpenPermissionsModal:v,onFetchContributableNames:y,onFetchENSList:R}=t,[I,P]=l.useState(B.DESC),[O,U]=l.useState(1),{tab:h}=Ee(),D=ae();l.useEffect(()=>{N&&E&&y()},[N,E]),l.useEffect(()=>{h===b.DCL&&R(ee,(O-1)*ee)},[R,O]);const A=l.useCallback(()=>{h===b.DCL?(de(_e,{action:"Click Claim NAME"}),window.open(`${Ss}/names/claim`,"_blank","noopener,noreferrer")):(de(_e,{action:"Click Claim ENS Domain"}),window.open(Ts,"_blank","noopener,noreferrer"))},[h]),V=l.useCallback(()=>{D.push(k.scenes())},[k,D]),q=l.useCallback(u=>{const{projectId:r}=c[u.subdomain];D.push(k.sceneDetail(r))},[c,k,D]),w=l.useCallback(u=>{var j;const r=(j=c[u.subdomain])==null?void 0:j.id;r&&f(r)},[c,f]),W=l.useCallback((u,r)=>{U(+r.activePage)},[]),re=l.useCallback(()=>e.jsx(s.Dropdown,{direction:"left",value:I,options:[{value:B.ASC,text:a("global.order.name_asc")},{value:B.DESC,text:a("global.order.name_desc")}],onChange:(u,{value:r})=>P(r)}),[I,P]),oe=l.useCallback(u=>{let r=M(c,u)?"active":"inactive";if(r==="active"&&i&&!ue(u.subdomain))switch(K(i).status){case Q.BLOCKED:{r="blocked";break}case Q.TO_BE_BLOCKED:r="warning"}return e.jsx("span",{className:`world-status ${r}`,children:a(`worlds_list_page.table.status_${r}`)})},[c,K,ue,M]),ie=l.useCallback((u,r)=>{var F;const j=h===b.DCL?r==null?void 0:r.dclNames:r==null?void 0:r.ensNames;if(!M(c,u)||!j)return"-";const T=(F=j.find(ve=>ve.name===u.subdomain))==null?void 0:F.size,J=h===b.ENS?" / 25":"";return G(Y(Number(T)))+J},[h]),Le=l.useCallback((u,r)=>{v(r)},[]),H=l.useCallback(()=>{const u=h===b.DCL?p:d.length,r=Math.ceil(u/ee),j=h===b.DCL?n:d;return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"filters",children:e.jsx(s.Container,{children:e.jsxs(s.Row,{children:[e.jsx(s.Column,{children:e.jsx(s.Row,{children:e.jsx(s.Header,{sub:!0,className:"items-count",children:a("ens_list_page.items",{count:t.ensTotal.toLocaleString()})})})}),e.jsx(s.Column,{align:"right",children:e.jsx(s.Row,{children:re()})}),e.jsx(s.Column,{align:"right",grow:!1,shrink:!0,children:e.jsx(s.Row,{children:e.jsx("div",{className:"actions",children:e.jsx(s.Button,{basic:!0,onClick:A,children:e.jsx(be,{name:"add-active"})})})})})]})})}),e.jsx(s.Container,{children:e.jsxs(s.Section,{className:"table-section",children:[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:"2",children:a("worlds_list_page.table.name")}),e.jsx(s.Table.HeaderCell,{width:"2",children:a("worlds_list_page.table.url")}),e.jsx(s.Table.HeaderCell,{width:"1",children:a("worlds_list_page.table.published_scene")}),e.jsx(s.Table.HeaderCell,{width:"1",textAlign:"center",children:a("worlds_list_page.table.size")}),e.jsx(s.Table.HeaderCell,{width:"1",textAlign:"center",children:a("worlds_list_page.table.status")}),e.jsx(s.Table.HeaderCell,{width:"1",textAlign:"center"})]})}),e.jsx(s.Table.Body,{children:j.map((T,J)=>e.jsxs(s.Table.Row,{className:"TableRow",children:[e.jsx(s.Table.Cell,{width:2,children:T.name}),e.jsx(s.Table.Cell,{width:2,children:e.jsx(Te,{deploymentsByWorlds:c,ens:T})}),e.jsx(s.Table.Cell,{width:1,children:e.jsx(Se,{deploymentsByWorlds:c,ens:T,projects:o,onEditScene:q,onPublishScene:V,onUnpublishScene:w})}),e.jsx(s.Table.Cell,{width:1,textAlign:"center",children:ie(T,i)}),e.jsx(s.Table.Cell,{width:1,textAlign:"center",children:oe(T)}),e.jsx(s.Table.Cell,{width:1,textAlign:"center",children:e.jsx(s.Button,{basic:!0,onClick:F=>Le(F,T.subdomain),children:a("worlds_list_page.table.permissions")})})]},J))})]}),r>1&&e.jsx(s.Pagination,{firstItem:null,lastItem:null,totalPages:r,activePage:O,onPageChange:W})]})})]})},[h,n,d,A,re,ie,oe,W,p]),$=l.useCallback(()=>e.jsxs(s.Empty,{className:"empty-names-container",height:500,children:[e.jsx("div",{className:ne("empty-icon",h===b.DCL?"dcl-icon":"ens-icon")}),e.jsx("div",{className:"empty-title",children:h===b.DCL?a("worlds_list_page.empty_list.title"):a("worlds_list_page.empty_list.title_ens")}),e.jsx("div",{className:"empty-description",children:h===b.DCL?a("worlds_list_page.empty_list.description",{b:u=>e.jsx("b",{children:u})}):a("worlds_list_page.empty_list.description_ens",{b:u=>e.jsx("b",{children:u})})}),e.jsx(s.Button,{className:"empty-action",primary:!0,onClick:A,children:h===b.DCL?a("worlds_list_page.empty_list.cta"):a("worlds_list_page.empty_list.cta_ens")})]}),[h,A]),ce=l.useCallback(()=>{if(!i)return null;const u=K(i);if(u.status===Q.OK)return null;let r;return u.status===Q.TO_BE_BLOCKED?r=a("worlds_list_page.worlds_warning_message.to_be_blocked",{toBeBlockedAt:u.toBeBlockedAt.toLocaleDateString(),b:j=>e.jsx("b",{children:j})}):r=a("worlds_list_page.worlds_warning_message.blocked",{blockedAt:u.blockedAt.toLocaleDateString(),b:j=>e.jsx("b",{children:j})}),e.jsxs("div",{className:"insufficient-storage-message",children:[e.jsx("div",{children:e.jsx(be,{name:"alert-warning"})}),e.jsx("div",{children:r})]})},[i,K]),ke=l.useCallback(()=>n.length?e.jsxs("div",{children:[i?e.jsx(xs,{maxBytes:Number(i.maxAllowedSpace),currentBytes:Number(i.usedSpace),className:"worlds-storage",onViewDetails:()=>{x({stats:i})}}):null,ce(),H()]}):e.jsx("div",{children:$()}),[n,i,H,$,ce,x]),fe=l.useCallback(()=>e.jsx("div",{children:d.length>0?H():$()}),[d,$,H]);return l.useEffect(()=>{P(B.ASC),U(1)},[h,U,P]),l.useEffect(()=>{he()&&C()},[he,C]),e.jsx(ts,{className:"WorldListPage view",error:m,activeTab:ss.WORLDS,isLoading:g,isPageFullscreen:!0,children:e.jsxs(s.Container,{children:[e.jsx("h1",{children:a("worlds_list_page.title")}),e.jsx(rs,{}),h===b.DCL&&ke(),h===b.ENS&&fe(),h===b.CONTRIBUTOR&&E&&e.jsx(Es,{})]})})},ks=te.memo(Ls),fs=()=>{const t=ge(),n=we(),d=_(Be),m=_(Me),c=_(pe),g=_(Ie),o=_(He),i=_($e),N=_(xe),E=_(Ce),p=_(Fe),x=_(ze),C=_(Ke),f=_(Qe),v=_(Ge),y=_(Ye),R=_(me),I=_(Ve),P=(o==null?void 0:o.message)??i??void 0,O=l.useMemo(()=>L(N,Xe)||L(E,se)||L(p,Ze)||L(x,se)||L(N,es)||C,[N,E,p,x,C]),U=l.useCallback(w=>t(X("WorldsYourStorageModal",w)),[t]),h=l.useCallback((w,W)=>t(X("WorldPermissionsModal",{worldName:w,isCollaboratorsTabShown:W})),[t]),D=l.useCallback(()=>t(X("WorldsForENSOwnersAnnouncementModal")),[t]),A=l.useCallback(w=>t(je(w)),[t]),V=l.useCallback(()=>t(qe()),[t]),q=l.useCallback((w,W)=>t(Je(w,W)),[t]);return e.jsx(ks,{ensList:d,externalNames:m,deploymentsByWorlds:c,projects:n,worldsPermissions:g,error:P,isLoading:O,isLoggedIn:f,worldsWalletStats:v,isConnected:y,isWorldContributorEnabled:R,ensTotal:I,onOpenYourStorageModal:U,onOpenPermissionsModal:h,onOpenWorldsForENSOwnersAnnouncementModal:D,onUnpublishWorld:A,onFetchContributableNames:V,onFetchENSList:q})},As=fs;export{As as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ProjectCard{position:relative;width:100%;max-width:var(--scenespage-card-width);height:var(--scenespage-card-height);border-radius:10px;background:rgba(var(--bluish-steel-raw),.16);cursor:pointer;display:flex;justify-content:flex-end;flex-direction:column}.ProjectCard .project-thumbnail{height:170px;width:100%;max-width:256px;background-size:100% 170px;border-top-left-radius:10px;border-top-right-radius:10px}.ProjectCard .deployment-status{align-self:flex-end;margin-right:8px;margin-bottom:8px;position:absolute;right:0;bottom:70px}.ProjectCard .project-data{height:70px;width:100%;padding:12px 9px 14px;background-color:#313131;align-self:flex-end;color:var(--text);z-index:1;border-bottom-left-radius:10px;border-bottom-right-radius:10px}.ProjectCard .title{font-size:18px;line-height:24px;font-weight:600;overflow:hidden;white-space:nowrap;width:240px;text-overflow:ellipsis}.ProjectCard .description{display:flex;align-items:center;font-size:14px;font-weight:400;line-height:24px;letter-spacing:0px;text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;-webkit-user-select:none;user-select:none}.ProjectCard .description .Icon{margin-right:5px}.ProjectCard .description .Icon.scene-object{margin-left:11px}.ProjectCard .overlay{position:absolute;left:0;right:0;top:0;bottom:0;background:var(--background);opacity:.3}.ProjectCard:hover{z-index:999}.ProjectCard .options-container{display:flex;justify-content:space-between;align-items:center;position:absolute;top:0;width:100%;padding:8px}.ProjectCard .options-container .options-dropdown{visibility:hidden}.ProjectCard:hover .options-container .options-dropdown{visibility:visible}.ProjectCard .options-dropdown .icon:before{color:var(--text)!important}.ProjectCard.has-thumbnail{position:relative;background-size:cover;background-position:center}.ProjectCard .title-wrapper{display:flex}.ProjectCard .Icon.is-uploading{margin-left:4px;margin-top:2px}.ProjectCard .error-indicator{width:16px;height:16px;background:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%3e%3cdefs%3e%3cfilter%20id='a'%20width='108.5%25'%20height='175%25'%20x='-4.2%25'%20y='-37.5%25'%20filterUnits='objectBoundingBox'%3e%3cfeOffset%20dy='2'%20in='SourceAlpha'%20result='shadowOffsetOuter1'/%3e%3cfeGaussianBlur%20in='shadowOffsetOuter1'%20result='shadowBlurOuter1'%20stdDeviation='2'/%3e%3cfeColorMatrix%20in='shadowBlurOuter1'%20result='shadowMatrixOuter1'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.16%200'/%3e%3cfeMerge%3e%3cfeMergeNode%20in='shadowMatrixOuter1'/%3e%3cfeMergeNode%20in='SourceGraphic'/%3e%3c/feMerge%3e%3c/filter%3e%3ccircle%20id='c'%20cx='8'%20cy='8'%20r='8'/%3e%3cfilter%20id='b'%20width='187.5%25'%20height='187.5%25'%20x='-43.8%25'%20y='-31.2%25'%20filterUnits='objectBoundingBox'%3e%3cfeOffset%20dy='2'%20in='SourceAlpha'%20result='shadowOffsetOuter1'/%3e%3cfeGaussianBlur%20in='shadowOffsetOuter1'%20result='shadowBlurOuter1'%20stdDeviation='2'/%3e%3cfeComposite%20in='shadowBlurOuter1'%20in2='SourceAlpha'%20operator='out'%20result='shadowBlurOuter1'/%3e%3cfeColorMatrix%20in='shadowBlurOuter1'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.5%200'/%3e%3c/filter%3e%3c/defs%3e%3cg%20fill='none'%20fill-rule='evenodd'%20filter='url(%23a)'%20transform='translate(-2%20-6)'%3e%3cg%20transform='translate(8%208)'%3e%3cuse%20fill='%23000'%20filter='url(%23b)'%20xlink:href='%23c'/%3e%3ccircle%20cx='8'%20cy='8'%20r='7.25'%20fill='%23F00'%20stroke='%23FFF'%20stroke-linejoin='square'%20stroke-width='1.5'/%3e%3c/g%3e%3cpath%20fill='%23FFF'%20d='M17%2012.5v4a1%201%200%201%201-2%200v-4a1%201%200%201%201%202%200zm-2%207a1%201%200%201%201%202%200%201%201%200%200%201-2%200z'/%3e%3c/g%3e%3c/svg%3e");background-repeat:no-repeat;background-position:center -2px;margin-top:3px;margin-left:7px}.ScenesPageAd{padding-top:32px}.ScenesPage .ui.button.inverted,.ScenesPage .ui.button.inverted:hover{background-color:#fff;color:var(--shadows)}.ScenesPage .project-cards{position:relative}.ScenesPage .subtitle{display:flex;align-items:center;justify-content:space-between}.ScenesPage .empty-projects{display:flex;flex-direction:column;width:100%;border-radius:12px;border:1px solid var(--divider);align-items:center;justify-content:center;color:var(--text);background-color:var(--dark-two);-webkit-user-select:none;user-select:none;text-align:center;line-height:28px;padding-top:105px;padding-bottom:122px}.ScenesPage .empty-projects .empty-project-thumbnail{width:86px;height:86px;background:url(https://cdn.decentraland.org/@dcl/builder-site/7.16.1-19644308472.commit-c4256dc/assets/scene-CZXq89b-.svg);background-size:contain;background-repeat:no-repeat;background-position:center;margin-bottom:30px}.ScenesPage .empty-projects .description{margin-bottom:40px}.ScenesPage .empty-projects .actions{display:flex;align-items:center;justify-content:center;gap:14px}.ScenesPage .template-cards{margin-top:80px}.ScenesPage .template-cards.animate .TemplateCard{animation:templateAnimation 2s}.ScenesPage .project-cards .subtitle,.ScenesPage .template-cards .subtitle{font-size:20px}.ScenesPage .CardList .ProjectCard,.ScenesPage .CardList .ProjectCard .project-thumbnail{max-width:unset}.ScenesPage .CardList{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:var(--scenespage-card-margin)}.ScenesPage .ProjectCard{transition:transform .2s ease-in-out;box-shadow:0 2px 4px #00000029}.ScenesPage .ProjectCard:hover{box-shadow:0 10px 20px #0000003d;transform:translateY(-4px)}.ScenesPage .dcl.tabs,.ScenesPage .dcl.tabs .ui.container{position:relative}.ScenesPage .projects-menu .items-count,.ScenesPage .scene-pool-menu .ui.header.sub{flex:1 0 auto;color:var(--secondary-text);text-transform:uppercase;font-size:13px;line-height:18px;font-weight:500}.ScenesPage .projects-menu .actions{display:flex;flex:1 0 auto;align-items:center;justify-content:flex-end;font-size:13px;line-height:18px;text-transform:uppercase;margin-bottom:8px}.ScenesPage .projects-menu .actions .ui.button{font-size:14px;font-weight:600}.ScenesPage .projects-menu .actions .ui.button+.ui.button{margin-left:16px}.ScenesPage .projects-menu .actions .ui.button.create-scene{display:flex;align-items:center}.ScenesPage .projects-menu .actions .ui.dropdown.active.visible{z-index:99999}.ScenesPage .projects-menu .actions .ui.dropdown+.ui.button{margin-left:24px}.ScenesPage .project-cards.has-pagination .CardList{min-height:606px}.ScenesPage .project-cards .ui.pagination{width:100%;display:flex;justify-content:center}.ScenesPage .project-cards .ui.pagination{margin-top:40px}.ScenesPage .project-cards .ui.pagination .item[type=nextItem],.ScenesPage .project-cards .ui.pagination .item[type=prevItem]{position:absolute;background-color:var(--secondary)}.ScenesPage .project-cards .ui.pagination .item[type=prevItem]{left:0}.ScenesPage .project-cards .ui.pagination .item[type=nextItem]{right:0}.ScenesPage .SyncToast{top:77px}.ScenesPage .scene-pool-projects{display:flex;overflow:auto;padding-top:20px;gap:var(--scenespage-card-margin)}.ScenesPage .scene-pool-projects .ProjectCard{flex:none}.ScenesPage .ui.button.import-scene,.ScenesPage .ui.button.create-scene{display:flex;align-items:center;justify-content:center;gap:10px;padding:12px 18px}.ScenesPage .import-scene:before,.ScenesPage .create-scene:before{content:"";width:20px;height:20px;background-position:center;background-repeat:no-repeat;display:block}.ScenesPage .import-scene:before{background-image:url("data:image/svg+xml,%3csvg%20width='19'%20height='18'%20viewBox='0%200%2019%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.25%203H14.75C15.1625%203%2015.5%203.3375%2015.5%203.75V5.25C15.5%205.6625%2015.1625%206%2014.75%206C14.3375%206%2014%205.6625%2014%205.25V4.5H5V5.25C5%205.6625%204.6625%206%204.25%206C3.8375%206%203.5%205.6625%203.5%205.25V3.75C3.5%203.3375%203.8375%203%204.25%203ZM6.50075%2010.5C6.272%2010.5%206.04775%2010.3965%205.9%2010.2C5.651%209.8685%205.7185%209.39825%206.05%209.15L9.05%206.9C9.3095%206.705%209.6665%206.69975%209.93125%206.8865L12.9312%208.997C13.2703%209.2355%2013.352%209.7035%2013.1135%2010.0417C12.875%2010.38%2012.4078%2010.4625%2012.0688%2010.224L10.2479%208.94308C10.2493%208.96187%2010.25%208.98085%2010.25%209V15C10.25%2015.414%209.91475%2015.75%209.5%2015.75C9.08525%2015.75%208.75%2015.414%208.75%2015V9.00013L6.95%2010.35C6.815%2010.4513%206.6575%2010.5%206.50075%2010.5Z'%20fill='black'/%3e%3c/svg%3e")}.ScenesPage .create-scene:before{background-image:url("data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.7829%2015.3424V16.7893C10.7824%2016.9117%2010.7338%2017.0289%2010.6479%2017.1152C10.562%2017.2015%2010.4457%2017.25%2010.3245%2017.25H8.48794C8.36653%2017.25%208.25008%2017.2014%208.16414%2017.1148C8.0782%2017.0283%208.02979%2016.9109%208.02954%2016.7883V15.3424H10.7829ZM13.1042%2011.8362L14.1897%2013.7281C14.2295%2013.7983%2014.2502%2013.8779%2014.25%2013.9588C14.2498%2014.0397%2014.2285%2014.1192%2014.1883%2014.1892C14.1481%2014.2592%2014.0905%2014.3174%2014.0211%2014.3579C13.9516%2014.3984%2013.8729%2014.4198%2013.7927%2014.42H4.95725C4.87708%2014.4198%204.79835%2014.3984%204.72894%2014.3579C4.65953%2014.3174%204.60186%2014.2592%204.56169%2014.1892C4.52152%2014.1192%204.50025%2014.0397%204.5%2013.9588C4.49976%2013.8779%204.52055%2013.7983%204.5603%2013.7281L5.64681%2011.8362H13.1042ZM12.3493%208.32899L13.4358%2010.2219C13.4755%2010.2921%2013.4963%2010.3717%2013.4961%2010.4526C13.4958%2010.5335%2013.4746%2010.613%2013.4344%2010.683C13.3942%2010.753%2013.3365%2010.8112%2013.2671%2010.8517C13.1977%2010.8922%2013.119%2010.9136%2013.0388%2010.9138H5.71216C5.63198%2010.9136%205.55326%2010.8922%205.48385%2010.8517C5.41443%2010.8112%205.35677%2010.753%205.31659%2010.683C5.27642%2010.613%205.25515%2010.5335%205.25491%2010.4526C5.25466%2010.3717%205.27545%2010.2921%205.3152%2010.2219L6.40074%208.32899H12.3493ZM9.77342%201.731L12.635%206.71468C12.6748%206.78496%2012.6956%206.86453%2012.6953%206.94545C12.6951%207.02636%2012.6738%207.1058%2012.6336%207.17583C12.5935%207.24586%2012.5358%207.30403%2012.4664%207.34454C12.397%207.38504%2012.3183%207.40647%2012.2381%207.40667H6.5129C6.43272%207.40647%206.354%207.38504%206.28459%207.34454C6.21518%207.30403%206.15751%207.24586%206.11734%207.17583C6.07716%207.1058%206.05589%207.02636%206.05565%206.94545C6.0554%206.86453%206.07619%206.78496%206.11594%206.71468L8.97755%201.731C9.01806%201.66073%209.07612%201.60241%209.14595%201.56187C9.21578%201.52133%209.29493%201.5%209.37549%201.5C9.45604%201.5%209.53519%201.52133%209.60502%201.56187C9.67485%201.60241%209.73292%201.66073%209.77342%201.731Z'%20fill='white'/%3e%3c/svg%3e")}.ScenesPage .no-scenes-container{display:flex;flex-direction:column;width:100%;padding:50px;background:#242129;border-radius:10px;align-items:center;justify-content:center}.ScenesPage .no-scenes-title{font-size:24px}.ScenesPage .no-scenes-description{color:#fff;width:100%;max-width:620px;font-size:14px;line-height:24px;text-align:center;margin-bottom:36px}.ScenesPage .no-scenes-description a{color:#fff;text-decoration:underline}@keyframes templateAnimation{0%{background:rgba(var(--bluish-steel-raw),.16)}25%{background:rgba(var(--bluish-steel-raw),.3)}50%{background:rgba(var(--bluish-steel-raw),.16)}75%{background:rgba(var(--bluish-steel-raw),.3)}to{background:rgba(var(--bluish-steel-raw),.16)}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ItemCard .image-wrapper{display:flex;align-items:center;text-align:center}.ItemCard .content{background:none;margin-top:16px;text-align:center}.ItemCard .content .text{font-size:17px;max-width:248px;overflow:hidden;text-overflow:ellipsis}.ItemCard .subtitle{margin-top:5px;color:var(--secondary-text)}.ui.cards>.ui.card.link.ItemCard.is-dragging{transform:translateY(0);border:1px solid var(--primary)!important}.ItemCard.is-dragging .ItemImage{border:1px solid var(--primary)}.ItemCard:hover .options-dropdown.ui.dropdown>.dropdown.icon{visibility:visible}.ItemCard .options-dropdown.ui.dropdown>.dropdown.icon{visibility:hidden}@media (max-width: 1200px){.ItemCard .content .text{max-width:215px}}._ItemRow_xmdia_1:hover{background-color:#24212966;color:var(--text);cursor:pointer}._image_xmdia_7{width:64px;height:64px;margin-right:10px;border-radius:8px;overflow:hidden;flex:none}._image_xmdia_7 img{width:100%;height:100%}._name_xmdia_21{display:inline-block;margin-left:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._title_xmdia_29,._imageColumn_xmdia_30{display:flex;align-items:center}._published_xmdia_35{color:var(--light-blue-raw)}.CollectionCard .content{margin-top:16px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}.CollectionCard .content .text{font-size:17px;max-width:248px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CollectionCard .subtitle{margin-top:5px;max-width:248px;color:var(--secondary-text)}.CollectionCard .CollectionBadge{margin-left:5px}.CollectionCard .sparkles{width:54px;height:56px;margin-bottom:5px;background-image:url(https://cdn.decentraland.org/@dcl/builder-site/7.16.1-19644308472.commit-c4256dc/assets/sparkles-C-WJN0Gh.svg);background-repeat:no-repeat}.CollectionCard.is-over .CollectionImage{border:1px solid var(--primary)!important}.CollectionCard .empty-collection-options .icon:before{color:var(--text)!important}.CollectionCard:hover .options-dropdown.ui.dropdown>.dropdown.icon{visibility:visible}.CollectionCard .options-dropdown.ui.dropdown>.dropdown.icon{visibility:hidden}.CollectionCard .pending-migration{text-transform:uppercase;padding:4px 8px;border-radius:32px;display:inline-flex;align-items:center;gap:4px;color:#ffbc5b;background-color:#ffbc5b33;margin-top:16px}.CollectionCard .pending-migration .icon{height:18px}@media (max-width: 1200px){.CollectionCard .content .text{max-width:215px}}.delete-collection-confirm .header{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._CollectionRow_k7d4q_1:hover{background-color:#24212966;color:var(--text);cursor:pointer}._image_k7d4q_7{width:64px;height:64px;margin-right:10px;border-radius:8px;overflow:hidden;flex:none}._name_k7d4q_16{display:inline-block;margin-left:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._title_k7d4q_24,._imageColumn_k7d4q_25{display:flex;align-items:center}._published_k7d4q_30{color:var(--light-blue-raw)}.CollectionsPage .ui.cards{margin:0}.CollectionsPage .empty{margin-top:28px;padding:112px 0;width:100%;border-radius:8px;border:1px solid var(--divider);justify-content:center;color:var(--secondary-text);text-align:center;line-height:28px;font-size:17px}.CollectionsPage .empty .header.title{margin:0}.CollectionsPage .empty .empty-description{margin:8px auto 34px;width:500px}.CollectionsPage .empty .create-new-wrapper{display:flex;justify-content:center}.CollectionsPage .empty .create-new{width:240px;height:204px;position:relative;background-color:rgba(var(--bluish-steel-raw),.16);border-radius:8px;background-position:50% 35%;cursor:pointer}.CollectionsPage .empty .create-new:first-child{margin-right:24px}.CollectionsPage .empty .create-new>.text{position:absolute;flex:1 1;color:#fff;bottom:31px;width:100%}.CollectionsPage .empty .create-new-item{background-image:url("data:image/svg+xml,%3csvg%20width='96'%20height='70'%20viewBox='0%200%2096%2070'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M94.7941%2054.5156H74.6855L79.6698%205.31259C79.6698%203.69125%2077.9661%202.41876%2069.6516%201.4775C64.084%200.847025%2056.4659%200.5%2048.201%200.5C39.9361%200.5%2032.318%200.847025%2026.7498%201.4775C18.4353%202.41876%2016.7316%203.69125%2016.7316%205.31259L21.7303%2054.5156H1.20588C0.53989%2054.5156%200%2055.0595%200%2055.7304C0%2057.5657%201.48584%2059.3693%204.41633%2061.0912C6.95671%2062.5838%2010.6085%2064.027%2014.9768%2065.2659C24.4687%2067.9566%2036.5783%2069.5%2048.201%2069.5C59.8068%2069.5%2071.8444%2067.9562%2081.2276%2065.2648C85.5422%2064.0272%2089.1474%2062.5826%2091.6534%2061.087C94.5377%2059.366%2096%2057.5641%2096%2055.7304C96%2055.0595%2095.4601%2054.5156%2094.7941%2054.5156ZM28.2371%203.76191C33.5781%203.22518%2040.6681%202.92958%2048.201%202.92958C55.7339%202.92958%2062.8239%203.22518%2068.1649%203.76191C73.4374%204.29176%2075.7292%204.92365%2076.6979%205.31239C75.7296%205.70071%2073.4378%206.3324%2068.1637%206.86185C62.8231%207.39818%2055.7335%207.69357%2048.201%207.69357C40.6685%207.69357%2033.5799%207.39798%2028.2375%206.86124C22.9668%206.3318%2020.6744%205.70051%2019.7047%205.31218C20.6738%204.92325%2022.9656%204.29176%2028.2371%203.76191ZM20.2817%208.04769C19.9589%207.96103%2019.6639%207.87195%2019.3895%207.78023L22.8556%2041.7797C25.5439%2042.0648%2028.2326%2042.3092%2030.8623%2042.5027C31.5103%2042.549%2032.0054%2043.104%2031.9822%2043.758C31.9589%2044.4121%2031.4255%2044.9299%2030.7758%2044.9293C30.7469%2044.9293%2030.7165%2044.9281%2030.6866%2044.9258C28.1961%2044.7424%2025.6531%2044.5138%2023.1074%2044.2492L24.1662%2054.633C40.9818%2056.5169%2055.4425%2056.5169%2072.2488%2054.633L73.3112%2044.2097C64.9039%2045.1073%2056.4558%2045.5605%2048.0014%2045.5676C44.0282%2045.5676%2040.0619%2045.4656%2036.0803%2045.2619C35.4151%2045.2279%2034.9033%2044.6572%2034.937%2043.9871C34.9708%2043.317%2035.5373%2042.8014%2036.2025%2042.8354C48.6658%2043.465%2061.159%2043.0979%2073.5646%2041.7374L77.0249%207.77658C76.75%207.86891%2076.4539%207.9588%2076.1301%208.04586C74.5092%208.48157%2072.236%208.8624%2069.3734%209.17744C63.8348%209.78726%2056.3155%2010.1232%2048.201%2010.1232C40.0939%2010.1232%2032.5784%209.78747%2027.0392%209.17805C24.1777%208.86321%2021.9042%208.48278%2020.2817%208.04769ZM80.5678%2062.928C71.3902%2065.56%2059.5933%2067.0704%2048.2016%2067.0704C36.7904%2067.0704%2024.9189%2065.5602%2015.6308%2062.9272C7.79601%2060.7059%204.28067%2058.4424%203.01068%2056.9452H22.9981L23.2493%2056.9737C40.7442%2058.9781%2055.669%2058.9781%2073.1554%2056.9757L73.4183%2056.9452H93.0339C91.6488%2058.6329%2087.6232%2060.9042%2080.5672%2062.928H80.5678ZM42.7852%2028.6841L41.9678%2033.4888C41.8902%2033.9446%2042.0762%2034.4052%2042.4475%2034.677C42.8189%2034.9488%2043.3112%2034.9846%2043.7175%2034.7694L48%2032.5014L52.2825%2034.769C52.6888%2034.9842%2053.1811%2034.9484%2053.5525%2034.6766C53.9238%2034.4048%2054.1098%2033.9442%2054.0322%2033.4884L53.2148%2028.6837L56.6799%2025.2817C57.0087%2024.9589%2057.1271%2024.4761%2056.9852%2024.0362C56.8433%2023.5964%2056.4658%2023.2759%2056.0115%2023.2095L51.2225%2022.5095L49.0815%2018.1383C48.8784%2017.7235%2048.4591%2017.4609%2048%2017.4609C47.5409%2017.4609%2047.1216%2017.7235%2046.9185%2018.1383L44.7775%2022.5095L39.9885%2023.2095C39.5342%2023.2759%2039.1567%2023.5964%2039.0148%2024.0362C38.8729%2024.4761%2038.9913%2024.9589%2039.3201%2025.2817L42.7852%2028.6841ZM45.7514%2024.8217C46.1443%2024.7642%2046.484%2024.5157%2046.6597%2024.157L48%2021.4205L49.3403%2024.157C49.516%2024.5157%2049.8557%2024.7642%2050.2486%2024.8217L53.2466%2025.2598L51.0774%2027.3902C50.7932%2027.6692%2050.6635%2028.0712%2050.7305%2028.4652L51.2424%2031.4737L48.5611%2030.0536C48.2098%2029.8675%2047.7902%2029.8675%2047.4389%2030.0536L44.7576%2031.4737L45.2695%2028.4652C45.3365%2028.0712%2045.2068%2027.6692%2044.9226%2027.3902L42.7544%2025.2598L45.7514%2024.8217Z'%20fill='white'/%3e%3c/svg%3e");background-repeat:no-repeat}.CollectionsPage .empty .create-new-collection{background-image:url("data:image/svg+xml,%3csvg%20width='80'%20height='68'%20viewBox='0%200%2080%2068'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M41.0076%2012.269L41.0075%2012.2691L41.0168%2012.2788C41.9992%2013.2997%2043.3962%2013.8831%2044.8227%2013.8831H70.143C74.7432%2013.8831%2078.4998%2017.6467%2078.4998%2022.2832L78.4998%2058.0694L78.4998%2058.0761C78.5204%2062.6953%2074.7818%2066.4778%2070.1849%2066.5H70.1792H9.85685C5.25666%2066.5%201.5%2062.7363%201.5%2058.0997V9.90034C1.5%205.26392%205.25664%201.50022%209.85681%201.50036H9.85685L27.0684%201.50038L27.077%201.50033C29.3256%201.48732%2031.5245%202.33413%2033.1219%203.92557L41.0076%2012.269Z'%20stroke='white'%20stroke-width='3'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M58.5227%2046.9194H50.563L52.536%2026.9529C52.536%2026.295%2051.8616%2025.7786%2048.5704%2025.3967C46.3666%2025.1408%2043.3511%2025%2040.0796%2025C36.808%2025%2033.7925%2025.1408%2031.5885%2025.3967C28.2973%2025.7786%2027.6229%2026.295%2027.6229%2026.9529L29.6016%2046.9194H21.4773C21.2137%2046.9194%2021%2047.1401%2021%2047.4123C21%2048.1571%2021.5881%2048.889%2022.7481%2049.5877C23.7537%2050.1934%2025.1992%2050.7791%2026.9283%2051.2818C30.6855%2052.3737%2035.4789%2053%2040.0796%2053C44.6735%2053%2049.4384%2052.3735%2053.1526%2051.2814C54.8605%2050.7791%2056.2875%2050.1929%2057.2795%2049.586C58.4212%2048.8877%2059%2048.1564%2059%2047.4123C59%2047.1401%2058.7863%2046.9194%2058.5227%2046.9194ZM32.1772%2026.3237C34.2913%2026.1059%2037.0978%2025.9859%2040.0796%2025.9859C43.0613%2025.9859%2045.8678%2026.1059%2047.9819%2026.3237C50.069%2026.5387%2050.9761%2026.7951%2051.3596%2026.9529C50.9763%2027.1104%2050.0691%2027.3668%2047.9815%2027.5816C45.8675%2027.7993%2043.0612%2027.9191%2040.0796%2027.9191C37.0979%2027.9191%2034.292%2027.7992%2032.1773%2027.5814C30.091%2027.3665%2029.1836%2027.1104%2028.7998%2026.9528C29.1834%2026.7949%2030.0905%2026.5387%2032.1772%2026.3237ZM29.0282%2028.0628C28.9004%2028.0277%2028.7836%2027.9915%2028.675%2027.9543L30.047%2041.7512C31.1111%2041.8669%2032.1754%2041.966%2033.2163%2042.0446C33.4728%2042.0634%2033.6688%2042.2886%2033.6596%2042.554C33.6504%2042.8194%2033.4392%2043.0295%2033.1821%2043.0293C33.1706%2043.0293%2033.1586%2043.0288%2033.1468%2043.0279C32.1609%2042.9534%2031.1543%2042.8607%2030.1467%2042.7533L30.5658%2046.967C37.222%2047.7315%2042.946%2047.7315%2049.5985%2046.967L50.019%2042.7373C46.6911%2043.1015%2043.3471%2043.2854%2040.0006%2043.2883C38.4278%2043.2883%2036.8578%2043.2469%2035.2818%2043.1643C35.0185%2043.1505%2034.8159%2042.9189%2034.8292%2042.6469C34.8426%2042.375%2035.0669%2042.1658%2035.3302%2042.1796C40.2635%2042.4351%2045.2088%2042.2861%2050.1193%2041.734L51.489%2027.9528C51.3802%2027.9903%2051.263%2028.0268%2051.1348%2028.0621C50.4932%2028.2389%2049.5934%2028.3934%2048.4603%2028.5213C46.2679%2028.7687%2043.2916%2028.905%2040.0796%2028.905C36.8705%2028.905%2033.8956%2028.7688%2031.703%2028.5215C30.5703%2028.3938%2029.6704%2028.2394%2029.0282%2028.0628ZM52.8914%2050.3331C49.2586%2051.4012%2044.589%2052.0141%2040.0798%2052.0141C35.5628%2052.0141%2030.8637%2051.4013%2027.1872%2050.3328C24.0859%2049.4314%2022.6944%2048.5129%2022.1917%2047.9053H30.1034L30.2029%2047.9169C37.1279%2048.7302%2043.0356%2048.7302%2049.9574%2047.9177L50.0614%2047.9053H57.8259C57.2776%2048.5902%2055.6842%2049.5118%2052.8912%2050.3331H52.8914ZM37.9358%2036.437L37.6123%2038.3868C37.5815%2038.5717%2037.6552%2038.7586%2037.8021%2038.8689C37.9491%2038.9792%2038.144%2038.9938%2038.3049%2038.9064L40%2037.9861L41.6951%2038.9063C41.856%2038.9936%2042.0508%2038.979%2042.1978%2038.8688C42.3448%2038.7585%2042.4185%2038.5715%2042.3877%2038.3866L42.0642%2036.4369L43.4358%2035.0563C43.5659%2034.9254%2043.6128%2034.7294%2043.5566%2034.5509C43.5005%2034.3724%2043.351%2034.2424%2043.1712%2034.2154L41.2756%2033.9314L40.4281%2032.1576C40.3477%2031.9893%2040.1817%2031.8827%2040%2031.8827C39.8183%2031.8827%2039.6523%2031.9893%2039.5719%2032.1576L38.7244%2033.9314L36.8288%2034.2154C36.649%2034.2424%2036.4995%2034.3724%2036.4434%2034.5509C36.3872%2034.7294%2036.4341%2034.9254%2036.5642%2035.0563L37.9358%2036.437ZM39.1099%2034.8697C39.2655%2034.8464%2039.3999%2034.7455%2039.4694%2034.5999L40%2033.4895L40.5305%2034.5999C40.6001%2034.7455%2040.7345%2034.8464%2040.8901%2034.8697L42.0768%2035.0475L41.2181%2035.9119C41.1056%2036.0252%2041.0543%2036.1883%2041.0808%2036.3482L41.2835%2037.569L40.2221%2036.9928C40.0831%2036.9173%2039.9169%2036.9173%2039.7779%2036.9928L38.7165%2037.569L38.9192%2036.3482C38.9457%2036.1883%2038.8944%2036.0252%2038.7819%2035.9119L37.9236%2035.0475L39.1099%2034.8697Z'%20fill='white'/%3e%3c/svg%3e");background-repeat:no-repeat}.CollectionsPage .ui.cards .ui.card{width:248px;background-color:transparent;box-shadow:none}.CollectionsPage .card .image-wrapper{height:248px;padding:15px}.CollectionsPage .filters{margin-bottom:20px}.dcl.page.LoggedInDetailPage.CollectionsPage{padding:0 24px}.CollectionsPage .filters .dcl.row.actions .ui.dropdown .ui.button{width:16px;height:16px;box-sizing:content-box;padding:5px 10px;border-radius:4px;border:solid 1px var(--gray)}.CollectionsPage .filters .dcl.row.actions .ui.button.open-editor{display:flex;align-items:center}.CollectionsPage .filters .dcl.row.actions .ui.button.open-editor .Icon{margin-right:6px}.CollectionsPage .filters .dcl.row.actions .ui.button.open-editor:hover{transform:translateY(0)}.CollectionsPage .Chip{padding:4px;height:28px;width:32px}.CollectionsPage .Chip.grid{border-radius:4px 0 0 4px;margin-left:16px}.CollectionsPage .Chip.list{border-radius:0 4px 4px 0}.CollectionsPage .is-card{transition:transform .2s ease-in-out,-webkit-transform .2s ease-in-out;box-shadow:none;transform:translateY(0)}.CollectionsPage .is-card:nth-child(4n){margin-right:0}.CollectionsPage .is-card:hover{transform:translateY(-4px)}.CollectionsPage .is-card .is-image{aspect-ratio:1 / 1;transition:box-shadow .2s ease-in-out;width:100%;overflow:hidden;border-radius:8px!important}.CollectionsPage .is-card:hover .is-image{box-shadow:var(--shadow-2)}.CollectionsPage .is-card .is-image .is-image{border-radius:0!important;box-shadow:none}.dcl.page.CollectionsPage .ui.container{width:100%;max-width:100%!important}.CollectionsPage .ui.container .ui.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(248px,1fr));gap:20px}.CollectionsPage .dcl.tabs.fullscreen .dcl.column.right{float:right;padding:19px 0}.CollectionsPage .pagination{width:100%;display:flex;justify-content:center;margin-top:16px}.CollectionsPage .ui.pagination.menu{margin-top:16px}.CollectionsPage .dcl.tabs .ui.container{margin-bottom:20px}.CollectionsPage .collections-main-actions{display:flex;justify-content:end;gap:20px;min-height:74px}.CollectionsPage .collections-main-actions>:first-child{flex:1}.CollectionsPage .dcl.field .collections-search-field.ui.input input{padding:8px;background:var(--shadows);border-radius:10px;border:none;font-size:16px}.CollectionsPage .collections-main-actions>.actions{align-self:baseline;justify-self:end;flex:none}.CollectionsPage .collections-icon{width:32px;height:32px;margin-bottom:20px}.CollectionsPage .action-tabs-container{display:flex;align-items:center;flex-direction:row;gap:8px}.CollectionsPage .banner-container{margin-bottom:24px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var F=Object.defineProperty;var D=(n,a,e)=>a in n?F(n,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[a]=e;var h=(n,a,e)=>D(n,typeof a!="symbol"?a+"":a,e);import{J as y,R as B,dr as O,ds as q,dt as P,dp as Q,du as T,N as s,S as r,M as t,cq as j,aR as v,b6 as U,Q as H,T as I,bE as M,dq as V,dv as z,cQ as G,bq as E,cT as p,dw as J,dx as $,dy as K,dz as X,dA as Y,dB as Z,dC as ss,dD as L,dE as k,c_ as es,cW as ns}from"./index-
|
|
1
|
+
var F=Object.defineProperty;var D=(n,a,e)=>a in n?F(n,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[a]=e;var h=(n,a,e)=>D(n,typeof a!="symbol"?a+"":a,e);import{J as y,R as B,dr as O,ds as q,dt as P,dp as Q,du as T,N as s,S as r,M as t,cq as j,aR as v,b6 as U,Q as H,T as I,bE as M,dq as V,dv as z,cQ as G,bq as E,cT as p,dw as J,dx as $,dy as K,dz as X,dA as Y,dB as Z,dC as ss,dD as L,dE as k,c_ as es,cW as ns}from"./index-DDLQh72H.js";import{L as as}from"./LandProviderPage-DMoeh5ZK.js";import{L as ts}from"./LandAction-CiY0RweX.js";import"./NotFound-BxsG7cuR.js";import"./hooks-BR9ATp8C.js";import"./Back-CDOxIrnn.js";class os extends y.PureComponent{constructor(){super(...arguments);h(this,"handleFinish",()=>{const{onNavigate:e}=this.props;e(B.ens())});h(this,"handleSetResolver",()=>{const{onSetENSResolver:e,ens:o}=this.props;e(o)});h(this,"handleReclaim",()=>{const{onReclaimName:e,ens:o}=this.props;e(o)});h(this,"handleSetContent",()=>{const{onSetENSContent:e,ens:o,land:d}=this.props;e(o,d)});h(this,"handleBack",()=>{this.props.onBack()})}render(){const{ens:e,land:o,isLoading:d,isWaitingTxSetContent:i,isWaitingTxSetResolver:l,isWaitingTxReclaim:R,error:x}=this.props,_=e.ensOwnerAddress!==e.nftOwnerAddress,c=!O(e)&&e.resolver.toLowerCase()===q.toLowerCase(),g=!P(e)&&Q(e,o),m=c||g,S=x&&x.code===4001,N=S&&x.origin===T.RESOLVER,b=S&&x.origin===T.CONTENT,w=S,W=c&&!l&&!N?"grey-button":"",A=g&&!i&&!b?"grey-button":"",u=N||m||_||l||R,C=b||N||w||!c||_||g||l||i||R;return s.jsxs(r.Form,{className:"LandAssignENSForm",children:[s.jsx(r.Row,{children:s.jsx("p",{className:"message",children:t("land_assign_ens_page.set_name_message",{strong:f=>s.jsx("strong",{children:f})})})}),s.jsx(r.Row,{children:s.jsxs("div",{className:u?"box box-disabled":"box",children:[s.jsx("h3",{children:t("land_assign_ens_page.set_resolver")}),s.jsxs("div",{className:"message-box",children:[s.jsx("p",{children:t("land_assign_ens_page.set_resolver_explanation")}),s.jsx(j,{type:"submit",disabled:u,onClick:this.handleSetResolver,className:W,loading:l,primary:!0,network:v.Network.ETHEREUM,children:N?t("global.retry_tx"):c?s.jsxs(s.Fragment,{children:[t("global.approved_tx"),l?null:s.jsx(r.Icon,{name:"check"})]}):t("global.submit")})]})]})}),s.jsx(r.Row,{children:s.jsxs("div",{className:C?"box box-disabled":"box",children:[s.jsx("h3",{children:t("land_assign_ens_page.set_content")}),s.jsxs("div",{className:"message-box",children:[s.jsx("p",{children:t("land_assign_ens_page.set_content_explanation")}),s.jsx(j,{type:"submit",disabled:C,onClick:this.handleSetContent,className:A,loading:i,primary:!0,network:v.Network.ETHEREUM,children:b?t("global.retry_tx"):g?s.jsxs(s.Fragment,{children:[t("global.approved_tx"),i?null:s.jsx(r.Icon,{name:"check"})]}):t("global.submit")})]})]})}),s.jsxs(r.Row,{className:"confirmation-buttons",children:[s.jsx(r.Button,{onClick:this.handleBack,disabled:m,children:t("global.back")}),s.jsx(r.Button,{disabled:!c||!g||d||i||l,onClick:this.handleFinish,primary:!0,children:t("global.finish")})]})]})}}let is=class extends y.PureComponent{constructor(){super(...arguments);h(this,"handleGoBack",()=>{this.props.history.goBack()})}render(){const{ens:e,isLoading:o,error:d,isWaitingTxSetContent:i,isWaitingTxReclaim:l,isWaitingTxSetResolver:R,history:x,onSetENSResolver:_,onSetENSContent:c,onReclaimName:g}=this.props;return s.jsx(as,{children:m=>e?s.jsx(ts,{land:m,title:t("land_assign_ens_page.title",{name:e.subdomain}),subtitle:s.jsx(U,{id:"land_assign_ens_page.subtitle",values:{land:s.jsx(H,{to:B.landDetail(m.id),children:m.name})}}),children:s.jsx(os,{land:m,ens:e,error:d,isLoading:o,isWaitingTxSetResolver:R,isWaitingTxSetContent:i,isWaitingTxReclaim:l,onSetENSContent:c,onSetENSResolver:_,onReclaimName:g,onBack:this.handleGoBack,onNavigate:S=>x.push(S)})}):s.jsx(r.Loader,{active:!0,size:"large"})})}};const rs=(n,a)=>{const{landId:e,subdomain:o}=a.match.params,d=V(n),i=z(d,o);return{ens:i,error:G(n),isWaitingTxSetResolver:E(p(n),L)||J(n),isWaitingTxSetContent:E(p(n),k)||$(n,e),isWaitingTxReclaim:i?K(n,i.subdomain)||X(n):!1,isLoading:E(p(n),L)||E(p(n),k)||E(p(n),es)||E(p(n),ns)}},ls=n=>({onSetENSResolver:a=>n(Y(a)),onSetENSContent:(a,e)=>n(Z(a,e)),onReclaimName:a=>n(ss(a))}),Ss=I(rs,ls)(M(is));export{Ss as default};
|