@dcl/builder-site 7.14.3 → 7.14.4-19333247245.commit-881855f

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-Du-3PX5t.js → Back-Bq3Xcoly.js} +1 -1
  2. package/assets/{CollectionProvider.container-Lqsy-tws.js → CollectionProvider.container-78TB9kiH.js} +1 -1
  3. package/assets/{CollectionStatus.container-BEIqfJjn.js → CollectionStatus.container-DBfnW5vX.js} +1 -1
  4. package/assets/{ConfirmDelete-BnSJSqBZ.js → ConfirmDelete-71BcCucu.js} +1 -1
  5. package/assets/{FileSaver.min-Dwax41FS.js → FileSaver.min-BZiMcTZh.js} +1 -1
  6. package/assets/{ItemProvider.container-DdEAL_Ri.js → ItemProvider.container-B_BAvEtH.js} +1 -1
  7. package/assets/{JumpIn.container-DBOPalEu.js → JumpIn.container-CeSOEwOc.js} +1 -1
  8. package/assets/{LandAction-DweppjnN.js → LandAction-Be_9Vd4x.js} +1 -1
  9. package/assets/{LandProviderPage-BKfn97qy.js → LandProviderPage-C-6H7vWP.js} +1 -1
  10. package/assets/{LoggedInDetailPage.container-D8H5VCWI.js → LoggedInDetailPage.container-BwMfJFSQ.js} +1 -1
  11. package/assets/{Navigation-C-ZlQ9p1.css → Navigation-jXq70jgH.css} +1 -1
  12. package/assets/{Navigation.container-Czf_aMXt.js → Navigation.container-gTCRHjj6.js} +1 -1
  13. package/assets/{NotFound-B5Bl_gw1.js → NotFound-BnVf99__.js} +1 -1
  14. package/assets/{OptionsDropdown-DePMzHXt.js → OptionsDropdown-Ct56jDIF.js} +1 -1
  15. package/assets/{RentalPeriod-Bsw3l3b-.js → RentalPeriod-Dur2tZPB.js} +1 -1
  16. package/assets/{SDKTag-CBAhu_lg.js → SDKTag-B-Q47VXc.js} +1 -1
  17. package/assets/{SceneStats.container-Ca4F8ZRq.js → SceneStats.container-DWiDhtTP.js} +1 -1
  18. package/assets/{SignInRequired-BWM3m5Bh.js → SignInRequired-hq09yAsv.js} +1 -1
  19. package/assets/{ThirdPartyKindBadge-ET9ggHTR.js → ThirdPartyKindBadge-BMfvIxcg.js} +1 -1
  20. package/assets/{dataReader-DbDcjw59.js → dataReader-BKwQpqk0.js} +1 -1
  21. package/assets/{date-B6b7CVrN.js → date-fu0Q5SmK.js} +1 -1
  22. package/assets/{fortmatic-9H4P56_9.js → fortmatic-DFjOPMpn.js} +1 -1
  23. package/assets/{hooks-CZx9E4HM.js → hooks-C8UcKsSN.js} +1 -1
  24. package/assets/{index-DbMEblf5.js → index-1kC9v6hM.js} +1 -1
  25. package/assets/{index-DBg5WiYR.js → index-AIRgE-AH.js} +1 -1
  26. package/assets/{index-BOF2b_tG.js → index-B70jPWUC.js} +1 -1
  27. package/assets/{index-D29Huvez.js → index-B7l7sJg2.js} +1 -1
  28. package/assets/{index-BLEwdEin.js → index-BHBiKgzq.js} +1 -1
  29. package/assets/{index-CbSrvQ3n.js → index-BO-dI8RM.js} +1 -1
  30. package/assets/{index-BXMsz2Lh.js → index-BSV0ASyT.js} +1 -1
  31. package/assets/{index-liv2k8mp.js → index-BTDa9rgp.js} +1 -1
  32. package/assets/{index-DBMOLm39.js → index-BdDRr38Q.js} +1 -1
  33. package/assets/{index-BmS9iM1I.js → index-BdqF7tuc.js} +1 -1
  34. package/assets/{index-76S3Bul4.js → index-BlcMW_g6.js} +204 -198
  35. package/assets/{index-DVF64vJ1.js → index-BllbtnmR.js} +1 -1
  36. package/assets/{index-Cf7CBDBP.js → index-BnzPu6kN.js} +1 -1
  37. package/assets/{index-YFxMXAOn.js → index-BpbrfPnW.js} +1 -1
  38. package/assets/{index-jccc0hDE.css → index-BwtkRqt7.css} +1 -1
  39. package/assets/index-C1dGl8XT.css +1 -0
  40. package/assets/{index-peDfbbNt.js → index-C5rcmfcn.js} +1 -1
  41. package/assets/{index-CFo4HO7Z.js → index-CA5U2eoi.js} +1 -1
  42. package/assets/{index-BTfmHeNN.js → index-CBJhwCuq.js} +1 -1
  43. package/assets/{index-BAOisAir.js → index-CEJEtJkL.js} +1 -1
  44. package/assets/index-CHxHn296.js +1 -0
  45. package/assets/{index-C5uvfXcz.js → index-COGtA8En.js} +1 -1
  46. package/assets/{index-CYF1jnKQ.js → index-CVnoGzvQ.js} +1 -1
  47. package/assets/{index-CVBrzwuh.js → index-CY1Kg1DY.js} +1 -1
  48. package/assets/index-C_uyOxRe.js +1 -0
  49. package/assets/{index-CFjpjxhQ.js → index-CcVM_MVj.js} +1 -1
  50. package/assets/{index-B8MpIaEn.js → index-CczDtxja.js} +1 -1
  51. package/assets/{index-DODo_AA2.css → index-Co-_AGGw.css} +7 -7
  52. package/assets/{index-xVCHzlfE.js → index-CqH-gavs.js} +1 -1
  53. package/assets/{index-BfpOuMxx.js → index-D2E7HW9r.js} +1 -1
  54. package/assets/{index-D-DTCEtL.js → index-DBkNL0Th.js} +1 -1
  55. package/assets/{index-BrUJYumw.js → index-DFRQoFbj.js} +1 -1
  56. package/assets/{index-D75j3LJB.js → index-DGtPjzZG.js} +1 -1
  57. package/assets/index-DJ8x8wA3.css +1 -0
  58. package/assets/index-DJzhTL6b.css +1 -0
  59. package/assets/{index-DU5kC8Wa.js → index-DM0r5dUd.js} +1 -1
  60. package/assets/{index-CBcwD23d.js → index-DYUIlIfe.js} +1 -1
  61. package/assets/{index-BUPxmR5g.js → index-D_RXKLMK.js} +1 -1
  62. package/assets/index-Dg630mlC.js +2 -0
  63. package/assets/{index-CV6TLvQx.js → index-Dub0PLTM.js} +1 -1
  64. package/assets/{index-CZDGtJQc.js → index-DyL3RKfL.js} +1 -1
  65. package/assets/{index-7VHsQJBX.js → index-Ijwig6A9.js} +1 -1
  66. package/assets/{index-DPO6HDpi.js → index-Pg38vW63.js} +1 -1
  67. package/assets/index-e8nO5duU.js +1 -0
  68. package/assets/{index-jxJOvrFv.js → index-l01ZXTQD.js} +1 -1
  69. package/assets/{index-B3trRFJD.js → index-oifEF-AL.js} +1 -1
  70. package/assets/{index-WGbYHmSa.js → index-p2SgPRC2.js} +1 -1
  71. package/assets/index-rcrcGNw2.css +1 -0
  72. package/assets/{index-DTQ3d5tX.css → index-wzlt3Ngs.css} +1 -1
  73. package/assets/{index.es-z67bobBT.js → index.es-B8BKm5UV.js} +4 -4
  74. package/assets/{selectors-xoM-YAcs.js → selectors-C5Krcz9D.js} +1 -1
  75. package/index.html +3 -3
  76. package/package.json +3 -3
  77. package/assets/index-BiQ1dBjY.js +0 -2
  78. package/assets/index-BnlS84my.css +0 -1
  79. package/assets/index-CqplWHDN.js +0 -1
  80. package/assets/index-D8EUOW_O.js +0 -1
  81. package/assets/index-DSqpzpNh.js +0 -1
  82. package/assets/index-DbEtkDpc.css +0 -1
  83. package/assets/index-DfMVurEC.css +0 -1
  84. package/assets/index-kJ09AvL0.css +0 -1
@@ -1,4 +1,4 @@
1
- import{p as dt}from"./index-76S3Bul4.js";var U=(e=>(e.MissingApiKey="MISSING_API_KEY",e.ModalNotReady="MODAL_NOT_READY",e.MalformedResponse="MALFORMED_RESPONSE",e.InvalidArgument="INVALID_ARGUMENT",e.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",e.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",e))(U||{}),j=(e=>(e.SyncWeb3Method="SYNC_WEB3_METHOD",e.DuplicateIframe="DUPLICATE_IFRAME",e.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",e.DeprecationNotice="DEPRECATION_NOTICE",e.ProductAnnouncement="ANNOUNCEMENT",e))(j||{}),ve=(e=>(e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",e[e.MagicLinkExpired=-10001]="MagicLinkExpired",e[e.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",e[e.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",e[e.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",e[e.UpdateEmailFailed=-10004]="UpdateEmailFailed",e[e.UserRequestEditEmail=-10005]="UserRequestEditEmail",e[e.InactiveRecipient=-10010]="InactiveRecipient",e[e.AccessDeniedToUser=-10011]="AccessDeniedToUser",e[e.RedirectLoginComplete=-10015]="RedirectLoginComplete",e))(ve||{}),M=(e=>(e.MetaMask="metamask",e.CoinbaseWallet="coinbase_wallet",e))(M||{}),ae=(e=>(e.WalletSelected="wallet_selected",e.WalletConnected="wallet_connected",e.WalletRejected="wallet_rejected",e))(ae||{}),h=(e=>(e.LoginWithSms="magic_auth_login_with_sms",e.LoginWithEmailOTP="magic_auth_login_with_email_otp",e.LoginWithMagicLink="magic_auth_login_with_magic_link",e.LoginWithCredential="magic_auth_login_with_credential",e.SetAuthorizationToken="magic_auth_set_authorization_token",e.GetIdToken="magic_auth_get_id_token",e.GenerateIdToken="magic_auth_generate_id_token",e.GetMetadata="magic_auth_get_metadata",e.IsLoggedIn="magic_is_logged_in",e.Logout="magic_auth_logout",e.UpdateEmail="magic_auth_update_email",e.UserSettings="magic_auth_settings",e.UserSettingsTestMode="magic_auth_settings_testing_mode",e.LoginWithSmsTestMode="magic_auth_login_with_sms_testing_mode",e.LoginWithEmailOTPTestMode="magic_auth_login_with_email_otp_testing_mode",e.LoginWithMagicLinkTestMode="magic_login_with_magic_link_testing_mode",e.LoginWithCredentialTestMode="magic_auth_login_with_credential_testing_mode",e.GetIdTokenTestMode="magic_auth_get_id_token_testing_mode",e.GenerateIdTokenTestMode="magic_auth_generate_id_token_testing_mode",e.GetMetadataTestMode="magic_auth_get_metadata_testing_mode",e.IsLoggedInTestMode="magic_auth_is_logged_in_testing_mode",e.LogoutTestMode="magic_auth_logout_testing_mode",e.UpdateEmailTestMode="magic_auth_update_email_testing_mode",e.IntermediaryEvent="magic_intermediary_event",e.RequestAccounts="eth_requestAccounts",e.GetInfo="magic_get_info",e.ShowUI="magic_wallet",e.NFTPurchase="magic_nft_purchase",e.NFTCheckout="magic_nft_checkout",e.NFTTransfer="magic_nft_transfer",e.RequestUserInfoWithUI="mc_request_user_info",e.Disconnect="mc_disconnect",e.RecoverAccount="magic_auth_recover_account",e.RecoverAccountTestMode="magic_auth_recover_account_testing_mode",e.MagicBoxHeartBeat="magic_box_heart_beat",e.AutoConnect="mc_auto_connect",e.Login="mc_login",e.EncryptV1="magic_auth_encrypt_v1",e.DecryptV1="magic_auth_decrypt_v1",e.ShowNFTs="magic_show_nfts",e.ShowOnRamp="magic_show_fiat_onramp",e.ShowSendTokensUI="magic_show_send_tokens_ui",e.ShowAddress="magic_show_address",e.ShowBalances="magic_show_balances",e.SendGaslessTransaction="eth_sendGaslessTransaction",e))(h||{}),k=(e=>(e.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",e.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",e.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",e.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",e.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",e.MAGIC_MG_BOX_SEND_RECEIPT="MAGIC_MG_BOX_SEND_RECEIPT",e.MAGIC_SEND_PRODUCT_ANNOUNCEMENT="MAGIC_SEND_PRODUCT_ANNOUNCEMENT",e))(k||{}),ce=(e=>(e.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",e))(ce||{}),ht=(e=>(e.UpdateEmail="update-email",e.MFA="mfa",e.Recovery="recovery",e))(ht||{}),pt=(e=>(e.Retry="retry",e))(pt||{}),mt=(e=>(e.EmailSent="email-sent",e.EmailNotDeliverable="email-not-deliverable",e))(mt||{}),X=(e=>(e.VerifyEmailOtp="verify-email-otp",e.Cancel="cancel",e))(X||{}),Et=(e=>(e.EmailOTPSent="email-otp-sent",e.InvalidEmailOtp="invalid-email-otp",e.ExpiredEmailOtp="expired-email-otp",e))(Et||{}),ge=(e=>(e.Retry="device-retry",e))(ge||{}),ft=(e=>(e.DeviceApproved="device-approved",e.DeviceNeedsApproval="device-needs-approval",e.DeviceVerificationLinkExpired="device-verification-link-expired",e.DeviceVerificationEmailSent="device-verification-email-sent",e))(ft||{}),b=(e=>(e.Retry="Recency/auth-factor-retry",e.Cancel="Recency/auth-factor-verification-cancel",e.VerifyEmailOtp="Recency/auth-factor-verify-email-otp",e))(b||{}),gt=(e=>(e.PrimaryAuthFactorNeedsVerification="Recency/auth-factor-needs-verification",e.PrimaryAuthFactorVerified="Recency/auth-factor-verified",e.InvalidEmailOtp="Recency/auth-factor-invalid-email-otp",e.EmailExpired="Recency/auth-factor-verification-email-expired",e.EmailSent="Recency/auth-factor-verification-email-sent",e.EmailNotDeliverable="Recency/auth-factor-verification-email-not-deliverable",e))(gt||{}),P=(e=>(e.RetryWithNewEmail="UpdateEmail/retry-with-new-email",e.Cancel="UpdateEmail/new-email-verification-cancel",e.VerifyEmailOtp="UpdateEmail/new-email-verify-otp",e))(P||{}),_t=(e=>(e.NewAuthFactorNeedsVerification="UpdateEmail/new-email-needs-verification",e.EmailUpdated="UpdateEmail/email-updated",e.InvalidEmailOtp="UpdateEmail/new-email-invalid-email-otp",e.EmailExpired="UpdateEmail/new-email-verification-email-expired",e.EmailSent="UpdateEmail/new-email-verification-email-sent",e.EmailNotDeliverable="UpdateEmail/new-email-verification-email-not-deliverable",e.InvalidEmail="UpdateEmail/new-email-invalid",e.EmailAlreadyExists="UpdateEmail/new-email-already-exists",e))(_t||{}),vt=(e=>(e.Harmony="HARMONY",e))(vt||{}),It=(e=>(e.PhoneNumber="phone_number",e))(It||{}),Ee={VITE_BASE_URL:"https://cdn.decentraland.org/@dcl/builder-site/7.14.3"},yt=Object.create,pe=Object.defineProperty,wt=Object.defineProperties,Rt=Object.getOwnPropertyDescriptor,$t=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertyNames,Te=Object.getOwnPropertySymbols,At=Object.getPrototypeOf,He=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,Le=(e,t,r)=>t in e?pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ie=(e,t)=>{for(var r in t||(t={}))He.call(t,r)&&Le(e,r,t[r]);if(Te)for(var r of Te(t))Ot.call(t,r)&&Le(e,r,t[r]);return e},ye=(e,t)=>wt(e,$t(t)),Mt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Tt=(e,t)=>{for(var r in t)pe(e,r,{get:t[r],enumerable:!0})},Lt=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Nt(t))!He.call(e,n)&&n!==r&&pe(e,n,{get:()=>t[n],enumerable:!(i=Rt(t,n))||i.enumerable});return e},St=(e,t,r)=>(r=e!=null?yt(At(e)):{},Lt(!e||!e.__esModule?pe(r,"default",{value:e,enumerable:!0}):r,e)),v=(e,t,r)=>new Promise((i,n)=>{var s=u=>{try{o(r.next(u))}catch(l){n(l)}},a=u=>{try{o(r.throw(u))}catch(l){n(l)}},o=u=>u.done?i(u.value):Promise.resolve(u.value).then(s,a);o((r=r.apply(e,t)).next())}),Ct=Mt((e,t)=>{var r=Object.prototype.hasOwnProperty,i="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(i=!1));function s(l,c,d){this.fn=l,this.context=c,this.once=d||!1}function a(l,c,d,f,_){if(typeof d!="function")throw new TypeError("The listener must be a function");var I=new s(d,f||l,_),$=i?i+c:c;return l._events[$]?l._events[$].fn?l._events[$]=[l._events[$],I]:l._events[$].push(I):(l._events[$]=I,l._eventsCount++),l}function o(l,c){--l._eventsCount===0?l._events=new n:delete l._events[c]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var l=[],c,d;if(this._eventsCount===0)return l;for(d in c=this._events)r.call(c,d)&&l.push(i?d.slice(1):d);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(c)):l},u.prototype.listeners=function(l){var c=i?i+l:l,d=this._events[c];if(!d)return[];if(d.fn)return[d.fn];for(var f=0,_=d.length,I=new Array(_);f<_;f++)I[f]=d[f].fn;return I},u.prototype.listenerCount=function(l){var c=i?i+l:l,d=this._events[c];return d?d.fn?1:d.length:0},u.prototype.emit=function(l,c,d,f,_,I){var $=i?i+l:l;if(!this._events[$])return!1;var p=this._events[$],L=arguments.length,C,y;if(p.fn){switch(p.once&&this.removeListener(l,p.fn,void 0,!0),L){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,c),!0;case 3:return p.fn.call(p.context,c,d),!0;case 4:return p.fn.call(p.context,c,d,f),!0;case 5:return p.fn.call(p.context,c,d,f,_),!0;case 6:return p.fn.call(p.context,c,d,f,_,I),!0}for(y=1,C=new Array(L-1);y<L;y++)C[y-1]=arguments[y];p.fn.apply(p.context,C)}else{var ut=p.length,V;for(y=0;y<ut;y++)switch(p[y].once&&this.removeListener(l,p[y].fn,void 0,!0),L){case 1:p[y].fn.call(p[y].context);break;case 2:p[y].fn.call(p[y].context,c);break;case 3:p[y].fn.call(p[y].context,c,d);break;case 4:p[y].fn.call(p[y].context,c,d,f);break;default:if(!C)for(V=1,C=new Array(L-1);V<L;V++)C[V-1]=arguments[V];p[y].fn.apply(p[y].context,C)}}return!0},u.prototype.on=function(l,c,d){return a(this,l,c,d,!1)},u.prototype.once=function(l,c,d){return a(this,l,c,d,!0)},u.prototype.removeListener=function(l,c,d,f){var _=i?i+l:l;if(!this._events[_])return this;if(!c)return o(this,_),this;var I=this._events[_];if(I.fn)I.fn===c&&(!f||I.once)&&(!d||I.context===d)&&o(this,_);else{for(var $=0,p=[],L=I.length;$<L;$++)(I[$].fn!==c||f&&!I[$].once||d&&I[$].context!==d)&&p.push(I[$]);p.length?this._events[_]=p.length===1?p[0]:p:o(this,_)}return this},u.prototype.removeAllListeners=function(l){var c;return l?(c=i?i+l:l,this._events[c]&&o(this,c)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=i,u.EventEmitter=u,typeof t<"u"&&(t.exports=u)});function bt(e){let t={exports:{}};return e(t,t.exports),t.exports}var Pt=Number.MAX_SAFE_INTEGER||9007199254740991,we={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Pt,MAX_SAFE_COMPONENT_LENGTH:16},kt=typeof dt=="object"&&Ee&&Ee.NODE_DEBUG&&/\bsemver\b/i.test(Ee.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},E=kt,ee=bt(function(e,t){let{MAX_SAFE_COMPONENT_LENGTH:r}=we,i=(t=e.exports={}).re=[],n=t.src=[],s=t.t={},a=0,o=(u,l,c)=>{let d=a++;E(d,l),s[u]=d,n[d]=l,i[d]=new RegExp(l,c?"g":void 0)};o("NUMERICIDENTIFIER","0|[1-9]\\d*"),o("NUMERICIDENTIFIERLOOSE","[0-9]+"),o("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),o("MAINVERSION",`(${n[s.NUMERICIDENTIFIER]})\\.(${n[s.NUMERICIDENTIFIER]})\\.(${n[s.NUMERICIDENTIFIER]})`),o("MAINVERSIONLOOSE",`(${n[s.NUMERICIDENTIFIERLOOSE]})\\.(${n[s.NUMERICIDENTIFIERLOOSE]})\\.(${n[s.NUMERICIDENTIFIERLOOSE]})`),o("PRERELEASEIDENTIFIER",`(?:${n[s.NUMERICIDENTIFIER]}|${n[s.NONNUMERICIDENTIFIER]})`),o("PRERELEASEIDENTIFIERLOOSE",`(?:${n[s.NUMERICIDENTIFIERLOOSE]}|${n[s.NONNUMERICIDENTIFIER]})`),o("PRERELEASE",`(?:-(${n[s.PRERELEASEIDENTIFIER]}(?:\\.${n[s.PRERELEASEIDENTIFIER]})*))`),o("PRERELEASELOOSE",`(?:-?(${n[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${n[s.PRERELEASEIDENTIFIERLOOSE]})*))`),o("BUILDIDENTIFIER","[0-9A-Za-z-]+"),o("BUILD",`(?:\\+(${n[s.BUILDIDENTIFIER]}(?:\\.${n[s.BUILDIDENTIFIER]})*))`),o("FULLPLAIN",`v?${n[s.MAINVERSION]}${n[s.PRERELEASE]}?${n[s.BUILD]}?`),o("FULL",`^${n[s.FULLPLAIN]}$`),o("LOOSEPLAIN",`[v=\\s]*${n[s.MAINVERSIONLOOSE]}${n[s.PRERELEASELOOSE]}?${n[s.BUILD]}?`),o("LOOSE",`^${n[s.LOOSEPLAIN]}$`),o("GTLT","((?:<|>)?=?)"),o("XRANGEIDENTIFIERLOOSE",`${n[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),o("XRANGEIDENTIFIER",`${n[s.NUMERICIDENTIFIER]}|x|X|\\*`),o("XRANGEPLAIN",`[v=\\s]*(${n[s.XRANGEIDENTIFIER]})(?:\\.(${n[s.XRANGEIDENTIFIER]})(?:\\.(${n[s.XRANGEIDENTIFIER]})(?:${n[s.PRERELEASE]})?${n[s.BUILD]}?)?)?`),o("XRANGEPLAINLOOSE",`[v=\\s]*(${n[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[s.XRANGEIDENTIFIERLOOSE]})(?:${n[s.PRERELEASELOOSE]})?${n[s.BUILD]}?)?)?`),o("XRANGE",`^${n[s.GTLT]}\\s*${n[s.XRANGEPLAIN]}$`),o("XRANGELOOSE",`^${n[s.GTLT]}\\s*${n[s.XRANGEPLAINLOOSE]}$`),o("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),o("COERCERTL",n[s.COERCE],!0),o("LONETILDE","(?:~>?)"),o("TILDETRIM",`(\\s*)${n[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",o("TILDE",`^${n[s.LONETILDE]}${n[s.XRANGEPLAIN]}$`),o("TILDELOOSE",`^${n[s.LONETILDE]}${n[s.XRANGEPLAINLOOSE]}$`),o("LONECARET","(?:\\^)"),o("CARETTRIM",`(\\s*)${n[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",o("CARET",`^${n[s.LONECARET]}${n[s.XRANGEPLAIN]}$`),o("CARETLOOSE",`^${n[s.LONECARET]}${n[s.XRANGEPLAINLOOSE]}$`),o("COMPARATORLOOSE",`^${n[s.GTLT]}\\s*(${n[s.LOOSEPLAIN]})$|^$`),o("COMPARATOR",`^${n[s.GTLT]}\\s*(${n[s.FULLPLAIN]})$|^$`),o("COMPARATORTRIM",`(\\s*)${n[s.GTLT]}\\s*(${n[s.LOOSEPLAIN]}|${n[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",o("HYPHENRANGE",`^\\s*(${n[s.XRANGEPLAIN]})\\s+-\\s+(${n[s.XRANGEPLAIN]})\\s*$`),o("HYPHENRANGELOOSE",`^\\s*(${n[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${n[s.XRANGEPLAINLOOSE]})\\s*$`),o("STAR","(<|>)?=?\\s*\\*"),o("GTE0","^\\s*>=\\s*0.0.0\\s*$"),o("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}),Se=/^[0-9]+$/,Be=(e,t)=>{let r=Se.test(e),i=Se.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1},Ut=(e,t)=>Be(t,e),Dt={compareIdentifiers:Be,rcompareIdentifiers:Ut},{MAX_LENGTH:Ce,MAX_SAFE_INTEGER:re}=we,{re:be,t:Pe}=ee,{compareIdentifiers:H}=Dt,w=class{constructor(e,t){if(t&&typeof t=="object"||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid Version: ${e}`);if(e.length>Ce)throw new TypeError(`version is longer than ${Ce} characters`);E("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let r=e.trim().match(t.loose?be[Pe.LOOSE]:be[Pe.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>re||this.major<0)throw new TypeError("Invalid major version");if(this.minor>re||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>re||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let n=+i;if(n>=0&&n<re)return n}return i}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(E("SemVer.compare",this.version,this.options,e),!(e instanceof w)){if(typeof e=="string"&&e===this.version)return 0;e=new w(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof w||(e=new w(e,this.options)),H(this.major,e.major)||H(this.minor,e.minor)||H(this.patch,e.patch)}comparePre(e){if(e instanceof w||(e=new w(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let r=this.prerelease[t],i=e.prerelease[t];if(E("prerelease compare",t,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r!==i)return H(r,i)}while(++t)}compareBuild(e){e instanceof w||(e=new w(e,this.options));let t=0;do{let r=this.build[t],i=e.build[t];if(E("prerelease compare",t,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r!==i)return H(r,i)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t),this.inc("pre",t);break;case"major":this.minor===0&&this.patch===0&&this.prerelease.length!==0||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":this.patch===0&&this.prerelease.length!==0||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]=="number"&&(this.prerelease[r]++,r=-2);r===-1&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}},Gt=(e,t,r)=>new w(e,r).compare(new w(t,r)),q=Gt,xt=(e,t,r)=>q(e,t,r)===0,Ft=xt,Wt=(e,t,r)=>q(e,t,r)!==0,jt=Wt,qt=(e,t,r)=>q(e,t,r)>0,Vt=qt,Ht=(e,t,r)=>q(e,t,r)>=0,Bt=Ht,Xt=(e,t,r)=>q(e,t,r)<0,Kt=Xt,Yt=(e,t,r)=>q(e,t,r)<=0,zt=Yt,Jt=(e,t,r,i)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return Ft(e,r,i);case"!=":return jt(e,r,i);case">":return Vt(e,r,i);case">=":return Bt(e,r,i);case"<":return Kt(e,r,i);case"<=":return zt(e,r,i);default:throw new TypeError(`Invalid operator: ${t}`)}},fe=Jt,B=Symbol("SemVer ANY"),Q=class{static get ANY(){return B}constructor(e,t){if(t&&typeof t=="object"||(t={loose:!!t,includePrerelease:!1}),e instanceof Q){if(e.loose===!!t.loose)return e;e=e.value}E("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===B?this.value="":this.value=this.operator+this.semver.version,E("comp",this)}parse(e){let t=this.options.loose?ke[Ue.COMPARATORLOOSE]:ke[Ue.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=r[1]!==void 0?r[1]:"",this.operator==="="&&(this.operator=""),r[2]?this.semver=new w(r[2],this.options.loose):this.semver=B}toString(){return this.value}test(e){if(E("Comparator.test",e,this.options.loose),this.semver===B||e===B)return!0;if(typeof e=="string")try{e=new w(e,this.options)}catch{return!1}return fe(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Q))throw new TypeError("a Comparator is required");if(t&&typeof t=="object"||(t={loose:!!t,includePrerelease:!1}),this.operator==="")return this.value===""||new F(e.value,t).test(this.value);if(e.operator==="")return e.value===""||new F(this.value,t).test(e.semver);let r=!(this.operator!==">="&&this.operator!==">"||e.operator!==">="&&e.operator!==">"),i=!(this.operator!=="<="&&this.operator!=="<"||e.operator!=="<="&&e.operator!=="<"),n=this.semver.version===e.semver.version,s=!(this.operator!==">="&&this.operator!=="<="||e.operator!==">="&&e.operator!=="<="),a=fe(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),o=fe(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return r||i||n&&s||a||o}},{re:ke,t:Ue}=ee,F=class{constructor(e,t){if(t&&typeof t=="object"||(t={loose:!!t,includePrerelease:!1}),e instanceof F)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new F(e.raw,t);if(e instanceof Q)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(r=>this.parseRange(r.trim())).filter(r=>r.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let{loose:t}=this.options;e=e.trim();let r=t?N[R.HYPHENRANGELOOSE]:N[R.HYPHENRANGE];e=e.replace(r,ur(this.options.includePrerelease)),E("hyphen replace",e),e=e.replace(N[R.COMPARATORTRIM],Qt),E("comparator trim",e,N[R.COMPARATORTRIM]),e=(e=(e=e.replace(N[R.TILDETRIM],Zt)).replace(N[R.CARETTRIM],er)).split(/\s+/).join(" ");let i=t?N[R.COMPARATORLOOSE]:N[R.COMPARATOR];return e.split(" ").map(n=>tr(n,this.options)).join(" ").split(/\s+/).map(n=>cr(n,this.options)).filter(this.options.loose?n=>!!n.match(i):()=>!0).map(n=>new Q(n,this.options))}intersects(e,t){if(!(e instanceof F))throw new TypeError("a Range is required");return this.set.some(r=>De(r,t)&&e.set.some(i=>De(i,t)&&r.every(n=>i.every(s=>n.intersects(s,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new w(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(dr(this.set[t],e,this.options))return!0;return!1}},{re:N,t:R,comparatorTrimReplace:Qt,tildeTrimReplace:Zt,caretTrimReplace:er}=ee,De=(e,t)=>{let r=!0,i=e.slice(),n=i.pop();for(;r&&i.length;)r=i.every(s=>n.intersects(s,t)),n=i.pop();return r},tr=(e,t)=>(E("comp",e,t),e=nr(e,t),E("caret",e),e=rr(e,t),E("tildes",e),e=or(e,t),E("xrange",e),e=lr(e,t),E("stars",e),e),A=e=>!e||e.toLowerCase()==="x"||e==="*",rr=(e,t)=>e.trim().split(/\s+/).map(r=>ir(r,t)).join(" "),ir=(e,t)=>{let r=t.loose?N[R.TILDELOOSE]:N[R.TILDE];return e.replace(r,(i,n,s,a,o)=>{let u;return E("tilde",e,i,n,s,a,o),A(n)?u="":A(s)?u=`>=${n}.0.0 <${+n+1}.0.0-0`:A(a)?u=`>=${n}.${s}.0 <${n}.${+s+1}.0-0`:o?(E("replaceTilde pr",o),u=`>=${n}.${s}.${a}-${o} <${n}.${+s+1}.0-0`):u=`>=${n}.${s}.${a} <${n}.${+s+1}.0-0`,E("tilde return",u),u})},nr=(e,t)=>e.trim().split(/\s+/).map(r=>sr(r,t)).join(" "),sr=(e,t)=>{E("caret",e,t);let r=t.loose?N[R.CARETLOOSE]:N[R.CARET],i=t.includePrerelease?"-0":"";return e.replace(r,(n,s,a,o,u)=>{let l;return E("caret",e,n,s,a,o,u),A(s)?l="":A(a)?l=`>=${s}.0.0${i} <${+s+1}.0.0-0`:A(o)?l=s==="0"?`>=${s}.${a}.0${i} <${s}.${+a+1}.0-0`:`>=${s}.${a}.0${i} <${+s+1}.0.0-0`:u?(E("replaceCaret pr",u),l=s==="0"?a==="0"?`>=${s}.${a}.${o}-${u} <${s}.${a}.${+o+1}-0`:`>=${s}.${a}.${o}-${u} <${s}.${+a+1}.0-0`:`>=${s}.${a}.${o}-${u} <${+s+1}.0.0-0`):(E("no pr"),l=s==="0"?a==="0"?`>=${s}.${a}.${o}${i} <${s}.${a}.${+o+1}-0`:`>=${s}.${a}.${o}${i} <${s}.${+a+1}.0-0`:`>=${s}.${a}.${o} <${+s+1}.0.0-0`),E("caret return",l),l})},or=(e,t)=>(E("replaceXRanges",e,t),e.split(/\s+/).map(r=>ar(r,t)).join(" ")),ar=(e,t)=>{e=e.trim();let r=t.loose?N[R.XRANGELOOSE]:N[R.XRANGE];return e.replace(r,(i,n,s,a,o,u)=>{E("xRange",e,i,n,s,a,o,u);let l=A(s),c=l||A(a),d=c||A(o),f=d;return n==="="&&f&&(n=""),u=t.includePrerelease?"-0":"",l?i=n===">"||n==="<"?"<0.0.0-0":"*":n&&f?(c&&(a=0),o=0,n===">"?(n=">=",c?(s=+s+1,a=0,o=0):(a=+a+1,o=0)):n==="<="&&(n="<",c?s=+s+1:a=+a+1),n==="<"&&(u="-0"),i=`${n+s}.${a}.${o}${u}`):c?i=`>=${s}.0.0${u} <${+s+1}.0.0-0`:d&&(i=`>=${s}.${a}.0${u} <${s}.${+a+1}.0-0`),E("xRange return",i),i})},lr=(e,t)=>(E("replaceStars",e,t),e.trim().replace(N[R.STAR],"")),cr=(e,t)=>(E("replaceGTE0",e,t),e.trim().replace(N[t.includePrerelease?R.GTE0PRE:R.GTE0],"")),ur=e=>(t,r,i,n,s,a,o,u,l,c,d,f,_)=>`${r=A(i)?"":A(n)?`>=${i}.0.0${e?"-0":""}`:A(s)?`>=${i}.${n}.0${e?"-0":""}`:a?`>=${r}`:`>=${r}${e?"-0":""}`} ${u=A(l)?"":A(c)?`<${+l+1}.0.0-0`:A(d)?`<${l}.${+c+1}.0-0`:f?`<=${l}.${c}.${d}-${f}`:e?`<${l}.${c}.${+d+1}-0`:`<=${u}`}`.trim(),dr=(e,t,r)=>{for(let i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let i=0;i<e.length;i++)if(E(e[i].semver),e[i].semver!==Q.ANY&&e[i].semver.prerelease.length>0){let n=e[i].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0},hr=(e,t,r)=>{try{t=new F(t,r)}catch{return!1}return t.test(e)},{MAX_LENGTH:pr}=we,{re:Ge,t:xe}=ee,mr=(e,t)=>{if(t&&typeof t=="object"||(t={loose:!!t,includePrerelease:!1}),e instanceof w)return e;if(typeof e!="string"||e.length>pr||!(t.loose?Ge[xe.LOOSE]:Ge[xe.FULL]).test(e))return null;try{return new w(e,t)}catch{return null}},Er=mr,{re:ie,t:ne}=ee,fr=(e,t)=>{if(e instanceof w)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;let r=null;if((t=t||{}).rtl){let i;for(;(i=ie[ne.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&i.index+i[0].length===r.index+r[0].length||(r=i),ie[ne.COERCERTL].lastIndex=i.index+i[1].length+i[2].length;ie[ne.COERCERTL].lastIndex=-1}else r=e.match(ie[ne.COERCE]);return r===null?null:Er(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};function gr(e){return String.fromCharCode(parseInt(e.slice(1),16))}function _r(e){return`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`}function vr(e){return btoa(encodeURIComponent(e).replace(/%[0-9A-F]{2}/g,gr))}function Ir(e){return decodeURIComponent(Array.from(atob(e),_r).join(""))}function Xe(e){return vr(JSON.stringify(e))}function yr(e){return JSON.parse(Ir(e))}function K(e){return typeof e>"u"}function wr(e){return e===null}function Ke(e){return wr(e)||K(e)}function Rr(e){return Ke(e)?!1:!K(e.jsonrpc)&&!K(e.id)&&(!K(e.result)||!K(e.error))}function $r(e){return Ke(e)?!1:typeof e=="number"&&Object.values(ve).includes(e)}function ue(e){if(!e)return!0;for(let t in e)if(Object.hasOwnProperty.call(e,t))return!1;return!0}var g={};function Ii(e,t){return Object.assign(g,t),e}var Nr={"magic-sdk":"magic-sdk","@magic-sdk/react-native":"magic-sdk-rn","@magic-sdk/react-native-bare":"magic-sdk-rn-bare","@magic-sdk/react-native-expo":"magic-sdk-rn-expo"},D=class extends Error{constructor(e,t){super(`Magic SDK Error: [${e}] ${t}`),this.code=e,this.rawMessage=t,this.__proto__=Error,Object.setPrototypeOf(this,D.prototype)}},de=class extends Error{constructor(e){super(),this.__proto__=Error;let t=Number(e==null?void 0:e.code);this.rawMessage=(e==null?void 0:e.message)||"Internal error",this.code=$r(t)?t:ve.InternalError,this.message=`Magic RPC Error: [${this.code}] ${this.rawMessage}`,this.data=(e==null?void 0:e.data)||void 0,Object.setPrototypeOf(this,de.prototype)}},te=class{constructor(e,t){this.code=e,this.rawMessage=t,this.message=`Magic SDK Warning: [${e}] ${t}`}log(){console.warn(this.message)}},Ye=class extends Error{constructor(e,t,r,i){super(`Magic Extension Error (${e.name}): [${t}] ${r}`),this.code=t,this.rawMessage=r,this.data=i,this.__proto__=Error,Object.setPrototypeOf(this,Ye.prototype)}},Fe=class{constructor(e,t,r){this.code=t,this.rawMessage=r,this.message=`Magic Extension Warning (${e.name}): [${t}] ${r}`}log(){console.warn(this.message)}};function Ar(){return new D(U.MissingApiKey,"Please provide an API key that you acquired from the Magic developer dashboard.")}function Or(){return new D(U.ModalNotReady,"Modal is not ready.")}function Mr(){return new D(U.MalformedResponse,"Response from the Magic iframe is malformed.")}function Tr(e){return new D(U.ExtensionNotInitialized,`Extensions must be initialized with a Magic SDK instance before \`Extension.${e}\` can be accessed. Do not invoke \`Extension.${e}\` inside an extension constructor.`)}function Lr(e){let t=`Some extensions are incompatible with \`${g.sdkName}@${g.version}\`:`;return e.filter(r=>typeof r.compat<"u"&&r.compat!==null).forEach(r=>{let i=r.compat[g.sdkName];typeof i=="string"?t+=`
1
+ import{p as dt}from"./index-BlcMW_g6.js";var U=(e=>(e.MissingApiKey="MISSING_API_KEY",e.ModalNotReady="MODAL_NOT_READY",e.MalformedResponse="MALFORMED_RESPONSE",e.InvalidArgument="INVALID_ARGUMENT",e.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",e.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",e))(U||{}),j=(e=>(e.SyncWeb3Method="SYNC_WEB3_METHOD",e.DuplicateIframe="DUPLICATE_IFRAME",e.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",e.DeprecationNotice="DEPRECATION_NOTICE",e.ProductAnnouncement="ANNOUNCEMENT",e))(j||{}),ve=(e=>(e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",e[e.MagicLinkExpired=-10001]="MagicLinkExpired",e[e.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",e[e.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",e[e.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",e[e.UpdateEmailFailed=-10004]="UpdateEmailFailed",e[e.UserRequestEditEmail=-10005]="UserRequestEditEmail",e[e.InactiveRecipient=-10010]="InactiveRecipient",e[e.AccessDeniedToUser=-10011]="AccessDeniedToUser",e[e.RedirectLoginComplete=-10015]="RedirectLoginComplete",e))(ve||{}),M=(e=>(e.MetaMask="metamask",e.CoinbaseWallet="coinbase_wallet",e))(M||{}),ae=(e=>(e.WalletSelected="wallet_selected",e.WalletConnected="wallet_connected",e.WalletRejected="wallet_rejected",e))(ae||{}),h=(e=>(e.LoginWithSms="magic_auth_login_with_sms",e.LoginWithEmailOTP="magic_auth_login_with_email_otp",e.LoginWithMagicLink="magic_auth_login_with_magic_link",e.LoginWithCredential="magic_auth_login_with_credential",e.SetAuthorizationToken="magic_auth_set_authorization_token",e.GetIdToken="magic_auth_get_id_token",e.GenerateIdToken="magic_auth_generate_id_token",e.GetMetadata="magic_auth_get_metadata",e.IsLoggedIn="magic_is_logged_in",e.Logout="magic_auth_logout",e.UpdateEmail="magic_auth_update_email",e.UserSettings="magic_auth_settings",e.UserSettingsTestMode="magic_auth_settings_testing_mode",e.LoginWithSmsTestMode="magic_auth_login_with_sms_testing_mode",e.LoginWithEmailOTPTestMode="magic_auth_login_with_email_otp_testing_mode",e.LoginWithMagicLinkTestMode="magic_login_with_magic_link_testing_mode",e.LoginWithCredentialTestMode="magic_auth_login_with_credential_testing_mode",e.GetIdTokenTestMode="magic_auth_get_id_token_testing_mode",e.GenerateIdTokenTestMode="magic_auth_generate_id_token_testing_mode",e.GetMetadataTestMode="magic_auth_get_metadata_testing_mode",e.IsLoggedInTestMode="magic_auth_is_logged_in_testing_mode",e.LogoutTestMode="magic_auth_logout_testing_mode",e.UpdateEmailTestMode="magic_auth_update_email_testing_mode",e.IntermediaryEvent="magic_intermediary_event",e.RequestAccounts="eth_requestAccounts",e.GetInfo="magic_get_info",e.ShowUI="magic_wallet",e.NFTPurchase="magic_nft_purchase",e.NFTCheckout="magic_nft_checkout",e.NFTTransfer="magic_nft_transfer",e.RequestUserInfoWithUI="mc_request_user_info",e.Disconnect="mc_disconnect",e.RecoverAccount="magic_auth_recover_account",e.RecoverAccountTestMode="magic_auth_recover_account_testing_mode",e.MagicBoxHeartBeat="magic_box_heart_beat",e.AutoConnect="mc_auto_connect",e.Login="mc_login",e.EncryptV1="magic_auth_encrypt_v1",e.DecryptV1="magic_auth_decrypt_v1",e.ShowNFTs="magic_show_nfts",e.ShowOnRamp="magic_show_fiat_onramp",e.ShowSendTokensUI="magic_show_send_tokens_ui",e.ShowAddress="magic_show_address",e.ShowBalances="magic_show_balances",e.SendGaslessTransaction="eth_sendGaslessTransaction",e))(h||{}),k=(e=>(e.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",e.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",e.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",e.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",e.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",e.MAGIC_MG_BOX_SEND_RECEIPT="MAGIC_MG_BOX_SEND_RECEIPT",e.MAGIC_SEND_PRODUCT_ANNOUNCEMENT="MAGIC_SEND_PRODUCT_ANNOUNCEMENT",e))(k||{}),ce=(e=>(e.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",e))(ce||{}),ht=(e=>(e.UpdateEmail="update-email",e.MFA="mfa",e.Recovery="recovery",e))(ht||{}),pt=(e=>(e.Retry="retry",e))(pt||{}),mt=(e=>(e.EmailSent="email-sent",e.EmailNotDeliverable="email-not-deliverable",e))(mt||{}),X=(e=>(e.VerifyEmailOtp="verify-email-otp",e.Cancel="cancel",e))(X||{}),Et=(e=>(e.EmailOTPSent="email-otp-sent",e.InvalidEmailOtp="invalid-email-otp",e.ExpiredEmailOtp="expired-email-otp",e))(Et||{}),ge=(e=>(e.Retry="device-retry",e))(ge||{}),ft=(e=>(e.DeviceApproved="device-approved",e.DeviceNeedsApproval="device-needs-approval",e.DeviceVerificationLinkExpired="device-verification-link-expired",e.DeviceVerificationEmailSent="device-verification-email-sent",e))(ft||{}),b=(e=>(e.Retry="Recency/auth-factor-retry",e.Cancel="Recency/auth-factor-verification-cancel",e.VerifyEmailOtp="Recency/auth-factor-verify-email-otp",e))(b||{}),gt=(e=>(e.PrimaryAuthFactorNeedsVerification="Recency/auth-factor-needs-verification",e.PrimaryAuthFactorVerified="Recency/auth-factor-verified",e.InvalidEmailOtp="Recency/auth-factor-invalid-email-otp",e.EmailExpired="Recency/auth-factor-verification-email-expired",e.EmailSent="Recency/auth-factor-verification-email-sent",e.EmailNotDeliverable="Recency/auth-factor-verification-email-not-deliverable",e))(gt||{}),P=(e=>(e.RetryWithNewEmail="UpdateEmail/retry-with-new-email",e.Cancel="UpdateEmail/new-email-verification-cancel",e.VerifyEmailOtp="UpdateEmail/new-email-verify-otp",e))(P||{}),_t=(e=>(e.NewAuthFactorNeedsVerification="UpdateEmail/new-email-needs-verification",e.EmailUpdated="UpdateEmail/email-updated",e.InvalidEmailOtp="UpdateEmail/new-email-invalid-email-otp",e.EmailExpired="UpdateEmail/new-email-verification-email-expired",e.EmailSent="UpdateEmail/new-email-verification-email-sent",e.EmailNotDeliverable="UpdateEmail/new-email-verification-email-not-deliverable",e.InvalidEmail="UpdateEmail/new-email-invalid",e.EmailAlreadyExists="UpdateEmail/new-email-already-exists",e))(_t||{}),vt=(e=>(e.Harmony="HARMONY",e))(vt||{}),It=(e=>(e.PhoneNumber="phone_number",e))(It||{}),Ee={VITE_BASE_URL:"https://cdn.decentraland.org/@dcl/builder-site/7.14.4-19333247245.commit-881855f"},yt=Object.create,pe=Object.defineProperty,wt=Object.defineProperties,Rt=Object.getOwnPropertyDescriptor,$t=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertyNames,Te=Object.getOwnPropertySymbols,At=Object.getPrototypeOf,He=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,Le=(e,t,r)=>t in e?pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ie=(e,t)=>{for(var r in t||(t={}))He.call(t,r)&&Le(e,r,t[r]);if(Te)for(var r of Te(t))Ot.call(t,r)&&Le(e,r,t[r]);return e},ye=(e,t)=>wt(e,$t(t)),Mt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Tt=(e,t)=>{for(var r in t)pe(e,r,{get:t[r],enumerable:!0})},Lt=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Nt(t))!He.call(e,n)&&n!==r&&pe(e,n,{get:()=>t[n],enumerable:!(i=Rt(t,n))||i.enumerable});return e},St=(e,t,r)=>(r=e!=null?yt(At(e)):{},Lt(!e||!e.__esModule?pe(r,"default",{value:e,enumerable:!0}):r,e)),v=(e,t,r)=>new Promise((i,n)=>{var s=u=>{try{o(r.next(u))}catch(l){n(l)}},a=u=>{try{o(r.throw(u))}catch(l){n(l)}},o=u=>u.done?i(u.value):Promise.resolve(u.value).then(s,a);o((r=r.apply(e,t)).next())}),Ct=Mt((e,t)=>{var r=Object.prototype.hasOwnProperty,i="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(i=!1));function s(l,c,d){this.fn=l,this.context=c,this.once=d||!1}function a(l,c,d,f,_){if(typeof d!="function")throw new TypeError("The listener must be a function");var I=new s(d,f||l,_),$=i?i+c:c;return l._events[$]?l._events[$].fn?l._events[$]=[l._events[$],I]:l._events[$].push(I):(l._events[$]=I,l._eventsCount++),l}function o(l,c){--l._eventsCount===0?l._events=new n:delete l._events[c]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var l=[],c,d;if(this._eventsCount===0)return l;for(d in c=this._events)r.call(c,d)&&l.push(i?d.slice(1):d);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(c)):l},u.prototype.listeners=function(l){var c=i?i+l:l,d=this._events[c];if(!d)return[];if(d.fn)return[d.fn];for(var f=0,_=d.length,I=new Array(_);f<_;f++)I[f]=d[f].fn;return I},u.prototype.listenerCount=function(l){var c=i?i+l:l,d=this._events[c];return d?d.fn?1:d.length:0},u.prototype.emit=function(l,c,d,f,_,I){var $=i?i+l:l;if(!this._events[$])return!1;var p=this._events[$],L=arguments.length,C,y;if(p.fn){switch(p.once&&this.removeListener(l,p.fn,void 0,!0),L){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,c),!0;case 3:return p.fn.call(p.context,c,d),!0;case 4:return p.fn.call(p.context,c,d,f),!0;case 5:return p.fn.call(p.context,c,d,f,_),!0;case 6:return p.fn.call(p.context,c,d,f,_,I),!0}for(y=1,C=new Array(L-1);y<L;y++)C[y-1]=arguments[y];p.fn.apply(p.context,C)}else{var ut=p.length,V;for(y=0;y<ut;y++)switch(p[y].once&&this.removeListener(l,p[y].fn,void 0,!0),L){case 1:p[y].fn.call(p[y].context);break;case 2:p[y].fn.call(p[y].context,c);break;case 3:p[y].fn.call(p[y].context,c,d);break;case 4:p[y].fn.call(p[y].context,c,d,f);break;default:if(!C)for(V=1,C=new Array(L-1);V<L;V++)C[V-1]=arguments[V];p[y].fn.apply(p[y].context,C)}}return!0},u.prototype.on=function(l,c,d){return a(this,l,c,d,!1)},u.prototype.once=function(l,c,d){return a(this,l,c,d,!0)},u.prototype.removeListener=function(l,c,d,f){var _=i?i+l:l;if(!this._events[_])return this;if(!c)return o(this,_),this;var I=this._events[_];if(I.fn)I.fn===c&&(!f||I.once)&&(!d||I.context===d)&&o(this,_);else{for(var $=0,p=[],L=I.length;$<L;$++)(I[$].fn!==c||f&&!I[$].once||d&&I[$].context!==d)&&p.push(I[$]);p.length?this._events[_]=p.length===1?p[0]:p:o(this,_)}return this},u.prototype.removeAllListeners=function(l){var c;return l?(c=i?i+l:l,this._events[c]&&o(this,c)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=i,u.EventEmitter=u,typeof t<"u"&&(t.exports=u)});function bt(e){let t={exports:{}};return e(t,t.exports),t.exports}var Pt=Number.MAX_SAFE_INTEGER||9007199254740991,we={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Pt,MAX_SAFE_COMPONENT_LENGTH:16},kt=typeof dt=="object"&&Ee&&Ee.NODE_DEBUG&&/\bsemver\b/i.test(Ee.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},E=kt,ee=bt(function(e,t){let{MAX_SAFE_COMPONENT_LENGTH:r}=we,i=(t=e.exports={}).re=[],n=t.src=[],s=t.t={},a=0,o=(u,l,c)=>{let d=a++;E(d,l),s[u]=d,n[d]=l,i[d]=new RegExp(l,c?"g":void 0)};o("NUMERICIDENTIFIER","0|[1-9]\\d*"),o("NUMERICIDENTIFIERLOOSE","[0-9]+"),o("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),o("MAINVERSION",`(${n[s.NUMERICIDENTIFIER]})\\.(${n[s.NUMERICIDENTIFIER]})\\.(${n[s.NUMERICIDENTIFIER]})`),o("MAINVERSIONLOOSE",`(${n[s.NUMERICIDENTIFIERLOOSE]})\\.(${n[s.NUMERICIDENTIFIERLOOSE]})\\.(${n[s.NUMERICIDENTIFIERLOOSE]})`),o("PRERELEASEIDENTIFIER",`(?:${n[s.NUMERICIDENTIFIER]}|${n[s.NONNUMERICIDENTIFIER]})`),o("PRERELEASEIDENTIFIERLOOSE",`(?:${n[s.NUMERICIDENTIFIERLOOSE]}|${n[s.NONNUMERICIDENTIFIER]})`),o("PRERELEASE",`(?:-(${n[s.PRERELEASEIDENTIFIER]}(?:\\.${n[s.PRERELEASEIDENTIFIER]})*))`),o("PRERELEASELOOSE",`(?:-?(${n[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${n[s.PRERELEASEIDENTIFIERLOOSE]})*))`),o("BUILDIDENTIFIER","[0-9A-Za-z-]+"),o("BUILD",`(?:\\+(${n[s.BUILDIDENTIFIER]}(?:\\.${n[s.BUILDIDENTIFIER]})*))`),o("FULLPLAIN",`v?${n[s.MAINVERSION]}${n[s.PRERELEASE]}?${n[s.BUILD]}?`),o("FULL",`^${n[s.FULLPLAIN]}$`),o("LOOSEPLAIN",`[v=\\s]*${n[s.MAINVERSIONLOOSE]}${n[s.PRERELEASELOOSE]}?${n[s.BUILD]}?`),o("LOOSE",`^${n[s.LOOSEPLAIN]}$`),o("GTLT","((?:<|>)?=?)"),o("XRANGEIDENTIFIERLOOSE",`${n[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),o("XRANGEIDENTIFIER",`${n[s.NUMERICIDENTIFIER]}|x|X|\\*`),o("XRANGEPLAIN",`[v=\\s]*(${n[s.XRANGEIDENTIFIER]})(?:\\.(${n[s.XRANGEIDENTIFIER]})(?:\\.(${n[s.XRANGEIDENTIFIER]})(?:${n[s.PRERELEASE]})?${n[s.BUILD]}?)?)?`),o("XRANGEPLAINLOOSE",`[v=\\s]*(${n[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[s.XRANGEIDENTIFIERLOOSE]})(?:${n[s.PRERELEASELOOSE]})?${n[s.BUILD]}?)?)?`),o("XRANGE",`^${n[s.GTLT]}\\s*${n[s.XRANGEPLAIN]}$`),o("XRANGELOOSE",`^${n[s.GTLT]}\\s*${n[s.XRANGEPLAINLOOSE]}$`),o("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),o("COERCERTL",n[s.COERCE],!0),o("LONETILDE","(?:~>?)"),o("TILDETRIM",`(\\s*)${n[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",o("TILDE",`^${n[s.LONETILDE]}${n[s.XRANGEPLAIN]}$`),o("TILDELOOSE",`^${n[s.LONETILDE]}${n[s.XRANGEPLAINLOOSE]}$`),o("LONECARET","(?:\\^)"),o("CARETTRIM",`(\\s*)${n[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",o("CARET",`^${n[s.LONECARET]}${n[s.XRANGEPLAIN]}$`),o("CARETLOOSE",`^${n[s.LONECARET]}${n[s.XRANGEPLAINLOOSE]}$`),o("COMPARATORLOOSE",`^${n[s.GTLT]}\\s*(${n[s.LOOSEPLAIN]})$|^$`),o("COMPARATOR",`^${n[s.GTLT]}\\s*(${n[s.FULLPLAIN]})$|^$`),o("COMPARATORTRIM",`(\\s*)${n[s.GTLT]}\\s*(${n[s.LOOSEPLAIN]}|${n[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",o("HYPHENRANGE",`^\\s*(${n[s.XRANGEPLAIN]})\\s+-\\s+(${n[s.XRANGEPLAIN]})\\s*$`),o("HYPHENRANGELOOSE",`^\\s*(${n[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${n[s.XRANGEPLAINLOOSE]})\\s*$`),o("STAR","(<|>)?=?\\s*\\*"),o("GTE0","^\\s*>=\\s*0.0.0\\s*$"),o("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}),Se=/^[0-9]+$/,Be=(e,t)=>{let r=Se.test(e),i=Se.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1},Ut=(e,t)=>Be(t,e),Dt={compareIdentifiers:Be,rcompareIdentifiers:Ut},{MAX_LENGTH:Ce,MAX_SAFE_INTEGER:re}=we,{re:be,t:Pe}=ee,{compareIdentifiers:H}=Dt,w=class{constructor(e,t){if(t&&typeof t=="object"||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid Version: ${e}`);if(e.length>Ce)throw new TypeError(`version is longer than ${Ce} characters`);E("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let r=e.trim().match(t.loose?be[Pe.LOOSE]:be[Pe.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>re||this.major<0)throw new TypeError("Invalid major version");if(this.minor>re||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>re||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let n=+i;if(n>=0&&n<re)return n}return i}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(E("SemVer.compare",this.version,this.options,e),!(e instanceof w)){if(typeof e=="string"&&e===this.version)return 0;e=new w(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof w||(e=new w(e,this.options)),H(this.major,e.major)||H(this.minor,e.minor)||H(this.patch,e.patch)}comparePre(e){if(e instanceof w||(e=new w(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let r=this.prerelease[t],i=e.prerelease[t];if(E("prerelease compare",t,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r!==i)return H(r,i)}while(++t)}compareBuild(e){e instanceof w||(e=new w(e,this.options));let t=0;do{let r=this.build[t],i=e.build[t];if(E("prerelease compare",t,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r!==i)return H(r,i)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t),this.inc("pre",t);break;case"major":this.minor===0&&this.patch===0&&this.prerelease.length!==0||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":this.patch===0&&this.prerelease.length!==0||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]=="number"&&(this.prerelease[r]++,r=-2);r===-1&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}},Gt=(e,t,r)=>new w(e,r).compare(new w(t,r)),q=Gt,xt=(e,t,r)=>q(e,t,r)===0,Ft=xt,Wt=(e,t,r)=>q(e,t,r)!==0,jt=Wt,qt=(e,t,r)=>q(e,t,r)>0,Vt=qt,Ht=(e,t,r)=>q(e,t,r)>=0,Bt=Ht,Xt=(e,t,r)=>q(e,t,r)<0,Kt=Xt,Yt=(e,t,r)=>q(e,t,r)<=0,zt=Yt,Jt=(e,t,r,i)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return Ft(e,r,i);case"!=":return jt(e,r,i);case">":return Vt(e,r,i);case">=":return Bt(e,r,i);case"<":return Kt(e,r,i);case"<=":return zt(e,r,i);default:throw new TypeError(`Invalid operator: ${t}`)}},fe=Jt,B=Symbol("SemVer ANY"),Q=class{static get ANY(){return B}constructor(e,t){if(t&&typeof t=="object"||(t={loose:!!t,includePrerelease:!1}),e instanceof Q){if(e.loose===!!t.loose)return e;e=e.value}E("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===B?this.value="":this.value=this.operator+this.semver.version,E("comp",this)}parse(e){let t=this.options.loose?ke[Ue.COMPARATORLOOSE]:ke[Ue.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=r[1]!==void 0?r[1]:"",this.operator==="="&&(this.operator=""),r[2]?this.semver=new w(r[2],this.options.loose):this.semver=B}toString(){return this.value}test(e){if(E("Comparator.test",e,this.options.loose),this.semver===B||e===B)return!0;if(typeof e=="string")try{e=new w(e,this.options)}catch{return!1}return fe(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Q))throw new TypeError("a Comparator is required");if(t&&typeof t=="object"||(t={loose:!!t,includePrerelease:!1}),this.operator==="")return this.value===""||new F(e.value,t).test(this.value);if(e.operator==="")return e.value===""||new F(this.value,t).test(e.semver);let r=!(this.operator!==">="&&this.operator!==">"||e.operator!==">="&&e.operator!==">"),i=!(this.operator!=="<="&&this.operator!=="<"||e.operator!=="<="&&e.operator!=="<"),n=this.semver.version===e.semver.version,s=!(this.operator!==">="&&this.operator!=="<="||e.operator!==">="&&e.operator!=="<="),a=fe(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),o=fe(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return r||i||n&&s||a||o}},{re:ke,t:Ue}=ee,F=class{constructor(e,t){if(t&&typeof t=="object"||(t={loose:!!t,includePrerelease:!1}),e instanceof F)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new F(e.raw,t);if(e instanceof Q)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(r=>this.parseRange(r.trim())).filter(r=>r.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let{loose:t}=this.options;e=e.trim();let r=t?N[R.HYPHENRANGELOOSE]:N[R.HYPHENRANGE];e=e.replace(r,ur(this.options.includePrerelease)),E("hyphen replace",e),e=e.replace(N[R.COMPARATORTRIM],Qt),E("comparator trim",e,N[R.COMPARATORTRIM]),e=(e=(e=e.replace(N[R.TILDETRIM],Zt)).replace(N[R.CARETTRIM],er)).split(/\s+/).join(" ");let i=t?N[R.COMPARATORLOOSE]:N[R.COMPARATOR];return e.split(" ").map(n=>tr(n,this.options)).join(" ").split(/\s+/).map(n=>cr(n,this.options)).filter(this.options.loose?n=>!!n.match(i):()=>!0).map(n=>new Q(n,this.options))}intersects(e,t){if(!(e instanceof F))throw new TypeError("a Range is required");return this.set.some(r=>De(r,t)&&e.set.some(i=>De(i,t)&&r.every(n=>i.every(s=>n.intersects(s,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new w(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(dr(this.set[t],e,this.options))return!0;return!1}},{re:N,t:R,comparatorTrimReplace:Qt,tildeTrimReplace:Zt,caretTrimReplace:er}=ee,De=(e,t)=>{let r=!0,i=e.slice(),n=i.pop();for(;r&&i.length;)r=i.every(s=>n.intersects(s,t)),n=i.pop();return r},tr=(e,t)=>(E("comp",e,t),e=nr(e,t),E("caret",e),e=rr(e,t),E("tildes",e),e=or(e,t),E("xrange",e),e=lr(e,t),E("stars",e),e),A=e=>!e||e.toLowerCase()==="x"||e==="*",rr=(e,t)=>e.trim().split(/\s+/).map(r=>ir(r,t)).join(" "),ir=(e,t)=>{let r=t.loose?N[R.TILDELOOSE]:N[R.TILDE];return e.replace(r,(i,n,s,a,o)=>{let u;return E("tilde",e,i,n,s,a,o),A(n)?u="":A(s)?u=`>=${n}.0.0 <${+n+1}.0.0-0`:A(a)?u=`>=${n}.${s}.0 <${n}.${+s+1}.0-0`:o?(E("replaceTilde pr",o),u=`>=${n}.${s}.${a}-${o} <${n}.${+s+1}.0-0`):u=`>=${n}.${s}.${a} <${n}.${+s+1}.0-0`,E("tilde return",u),u})},nr=(e,t)=>e.trim().split(/\s+/).map(r=>sr(r,t)).join(" "),sr=(e,t)=>{E("caret",e,t);let r=t.loose?N[R.CARETLOOSE]:N[R.CARET],i=t.includePrerelease?"-0":"";return e.replace(r,(n,s,a,o,u)=>{let l;return E("caret",e,n,s,a,o,u),A(s)?l="":A(a)?l=`>=${s}.0.0${i} <${+s+1}.0.0-0`:A(o)?l=s==="0"?`>=${s}.${a}.0${i} <${s}.${+a+1}.0-0`:`>=${s}.${a}.0${i} <${+s+1}.0.0-0`:u?(E("replaceCaret pr",u),l=s==="0"?a==="0"?`>=${s}.${a}.${o}-${u} <${s}.${a}.${+o+1}-0`:`>=${s}.${a}.${o}-${u} <${s}.${+a+1}.0-0`:`>=${s}.${a}.${o}-${u} <${+s+1}.0.0-0`):(E("no pr"),l=s==="0"?a==="0"?`>=${s}.${a}.${o}${i} <${s}.${a}.${+o+1}-0`:`>=${s}.${a}.${o}${i} <${s}.${+a+1}.0-0`:`>=${s}.${a}.${o} <${+s+1}.0.0-0`),E("caret return",l),l})},or=(e,t)=>(E("replaceXRanges",e,t),e.split(/\s+/).map(r=>ar(r,t)).join(" ")),ar=(e,t)=>{e=e.trim();let r=t.loose?N[R.XRANGELOOSE]:N[R.XRANGE];return e.replace(r,(i,n,s,a,o,u)=>{E("xRange",e,i,n,s,a,o,u);let l=A(s),c=l||A(a),d=c||A(o),f=d;return n==="="&&f&&(n=""),u=t.includePrerelease?"-0":"",l?i=n===">"||n==="<"?"<0.0.0-0":"*":n&&f?(c&&(a=0),o=0,n===">"?(n=">=",c?(s=+s+1,a=0,o=0):(a=+a+1,o=0)):n==="<="&&(n="<",c?s=+s+1:a=+a+1),n==="<"&&(u="-0"),i=`${n+s}.${a}.${o}${u}`):c?i=`>=${s}.0.0${u} <${+s+1}.0.0-0`:d&&(i=`>=${s}.${a}.0${u} <${s}.${+a+1}.0-0`),E("xRange return",i),i})},lr=(e,t)=>(E("replaceStars",e,t),e.trim().replace(N[R.STAR],"")),cr=(e,t)=>(E("replaceGTE0",e,t),e.trim().replace(N[t.includePrerelease?R.GTE0PRE:R.GTE0],"")),ur=e=>(t,r,i,n,s,a,o,u,l,c,d,f,_)=>`${r=A(i)?"":A(n)?`>=${i}.0.0${e?"-0":""}`:A(s)?`>=${i}.${n}.0${e?"-0":""}`:a?`>=${r}`:`>=${r}${e?"-0":""}`} ${u=A(l)?"":A(c)?`<${+l+1}.0.0-0`:A(d)?`<${l}.${+c+1}.0-0`:f?`<=${l}.${c}.${d}-${f}`:e?`<${l}.${c}.${+d+1}-0`:`<=${u}`}`.trim(),dr=(e,t,r)=>{for(let i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let i=0;i<e.length;i++)if(E(e[i].semver),e[i].semver!==Q.ANY&&e[i].semver.prerelease.length>0){let n=e[i].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0},hr=(e,t,r)=>{try{t=new F(t,r)}catch{return!1}return t.test(e)},{MAX_LENGTH:pr}=we,{re:Ge,t:xe}=ee,mr=(e,t)=>{if(t&&typeof t=="object"||(t={loose:!!t,includePrerelease:!1}),e instanceof w)return e;if(typeof e!="string"||e.length>pr||!(t.loose?Ge[xe.LOOSE]:Ge[xe.FULL]).test(e))return null;try{return new w(e,t)}catch{return null}},Er=mr,{re:ie,t:ne}=ee,fr=(e,t)=>{if(e instanceof w)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;let r=null;if((t=t||{}).rtl){let i;for(;(i=ie[ne.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&i.index+i[0].length===r.index+r[0].length||(r=i),ie[ne.COERCERTL].lastIndex=i.index+i[1].length+i[2].length;ie[ne.COERCERTL].lastIndex=-1}else r=e.match(ie[ne.COERCE]);return r===null?null:Er(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};function gr(e){return String.fromCharCode(parseInt(e.slice(1),16))}function _r(e){return`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`}function vr(e){return btoa(encodeURIComponent(e).replace(/%[0-9A-F]{2}/g,gr))}function Ir(e){return decodeURIComponent(Array.from(atob(e),_r).join(""))}function Xe(e){return vr(JSON.stringify(e))}function yr(e){return JSON.parse(Ir(e))}function K(e){return typeof e>"u"}function wr(e){return e===null}function Ke(e){return wr(e)||K(e)}function Rr(e){return Ke(e)?!1:!K(e.jsonrpc)&&!K(e.id)&&(!K(e.result)||!K(e.error))}function $r(e){return Ke(e)?!1:typeof e=="number"&&Object.values(ve).includes(e)}function ue(e){if(!e)return!0;for(let t in e)if(Object.hasOwnProperty.call(e,t))return!1;return!0}var g={};function Ii(e,t){return Object.assign(g,t),e}var Nr={"magic-sdk":"magic-sdk","@magic-sdk/react-native":"magic-sdk-rn","@magic-sdk/react-native-bare":"magic-sdk-rn-bare","@magic-sdk/react-native-expo":"magic-sdk-rn-expo"},D=class extends Error{constructor(e,t){super(`Magic SDK Error: [${e}] ${t}`),this.code=e,this.rawMessage=t,this.__proto__=Error,Object.setPrototypeOf(this,D.prototype)}},de=class extends Error{constructor(e){super(),this.__proto__=Error;let t=Number(e==null?void 0:e.code);this.rawMessage=(e==null?void 0:e.message)||"Internal error",this.code=$r(t)?t:ve.InternalError,this.message=`Magic RPC Error: [${this.code}] ${this.rawMessage}`,this.data=(e==null?void 0:e.data)||void 0,Object.setPrototypeOf(this,de.prototype)}},te=class{constructor(e,t){this.code=e,this.rawMessage=t,this.message=`Magic SDK Warning: [${e}] ${t}`}log(){console.warn(this.message)}},Ye=class extends Error{constructor(e,t,r,i){super(`Magic Extension Error (${e.name}): [${t}] ${r}`),this.code=t,this.rawMessage=r,this.data=i,this.__proto__=Error,Object.setPrototypeOf(this,Ye.prototype)}},Fe=class{constructor(e,t,r){this.code=t,this.rawMessage=r,this.message=`Magic Extension Warning (${e.name}): [${t}] ${r}`}log(){console.warn(this.message)}};function Ar(){return new D(U.MissingApiKey,"Please provide an API key that you acquired from the Magic developer dashboard.")}function Or(){return new D(U.ModalNotReady,"Modal is not ready.")}function Mr(){return new D(U.MalformedResponse,"Response from the Magic iframe is malformed.")}function Tr(e){return new D(U.ExtensionNotInitialized,`Extensions must be initialized with a Magic SDK instance before \`Extension.${e}\` can be accessed. Do not invoke \`Extension.${e}\` inside an extension constructor.`)}function Lr(e){let t=`Some extensions are incompatible with \`${g.sdkName}@${g.version}\`:`;return e.filter(r=>typeof r.compat<"u"&&r.compat!==null).forEach(r=>{let i=r.compat[g.sdkName];typeof i=="string"?t+=`
2
2
  - Extension \`${r.name}\` supports version(s) \`${i}\``:i||(t+=`
3
3
  - Extension \`${r.name}\` does not support ${g.platform} environments.`)}),new D(U.IncompatibleExtensions,t)}function Sr(e){let t=r=>{let i=r+1,n=i%10,s=i%100;return n===1&&s!==11?`${i}st`:n===2&&s!==12?`${i}nd`:n===3&&s!==13?`${i}rd`:`${i}th`};return new D(U.InvalidArgument,`Invalid ${t(e.argument)} argument given to \`${e.procedure}\`.
4
4
  Expected: \`${e.expected}\`
@@ -1 +1 @@
1
- import{aM as ye,ae as te,Z as ne,H as e,cU as z,G as n,N as Re,cV as me,a1 as ae,cW as Y,M as s,cX as Q,cY as De,cZ as M,cG as Pe,D as l,K as k,aA as le,bJ as Ae,a4 as ge,a5 as _,c_ as We,c$ as pe,d0 as Oe,bD as L,d1 as Ue,cM as xe,d2 as se,d3 as Ce,d4 as je,d5 as de,d6 as ue,d7 as K,d8 as G,J as be,$ as he,cI as Be,d9 as Me,da as Ie,cJ as He,db as $e,c5 as Fe,dc as ze,a6 as Ke,ad as Ge,dd as Ye,de as Qe,cN as Ve,X,df as qe,cO as Je,cP as Xe,c6 as Ze,dg as es}from"./index-76S3Bul4.js";import{a as we,N as ss}from"./Navigation.container-Czf_aMXt.js";import{L as ts}from"./LoggedInDetailPage.container-D8H5VCWI.js";import"./selectors-xoM-YAcs.js";import"./SignInRequired-BWM3m5Bh.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(),a=new URLSearchParams(t.search),c=a.get(Ne),m={urlSearchParams:a,pathname:t.pathname};switch(c){case"dcl":m.tab="dcl";break;case"ens":m.tab="ens";break;case"contributor":m.tab="contributor";break}return m},ns=({isWorldContributorEnabled:t})=>{const{tab:a,pathname:c,urlSearchParams:m}=Ee(),d=ne(),g=o=>{const i=new URLSearchParams(m);i.set(Ne,o),d.push(`${c}?${i.toString()}`)};return!a||a===b.CONTRIBUTOR&&!t?(g(b.DCL),null):e.jsxs(z,{children:[e.jsx(z.Tab,{active:a===b.DCL,onClick:()=>g(b.DCL),children:n("worlds_list_page.name_tabs.dcl_names")}),e.jsx(z.Tab,{active:a===b.ENS,onClick:()=>g(b.ENS),children:n("worlds_list_page.name_tabs.ens_names")}),t&&e.jsx(z.Tab,{active:a===b.CONTRIBUTOR,onClick:()=>g(b.CONTRIBUTOR),children:n("worlds_list_page.name_tabs.contributor_names")})]})},as=te.memo(ns),ls=t=>({isWorldContributorEnabled:me(t)}),rs=Re(ls)(as),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",T={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:a,className:c,onViewDetails:m})=>{const d=Q(t),g=Q(a),o=g*100/d;return e.jsxs("div",{"data-testid":gs,className:ae(T.container,c),children:[e.jsx("span",{className:T.used,children:n("worlds_list_page.worlds_storage.used")}),e.jsxs("div",{className:T.description,children:[e.jsx("span",{children:n("worlds_list_page.worlds_storage.description")})," ",e.jsx("span",{className:T.link,onClick:m,children:n("worlds_list_page.worlds_storage.link")})]}),e.jsxs("div",{className:T.space,children:[e.jsxs("div",{"data-testid":_s,children:[e.jsx("span",{className:T.current,children:Y(g)})," / ",Y(d)," Mb"]}),e.jsx(s.Progress,{"data-testid":ms,percent:Math.trunc(o),className:T.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 Se({ens:t,deploymentsByWorlds:a}){const c=De(t.subdomain);return M(a,t)?e.jsxs("div",{className:Z.worldUrl,children:[e.jsx("span",{children:c}),e.jsxs("div",{className:Z.rightContainer,children:[e.jsx(Pe,{role:"button",text:c,showPopup:!0,children:e.jsx(s.Icon,{"aria-label":"Copy urn","aria-hidden":"false",className:ae("copy",Z.copyUrn),name:"copy outline"})}),e.jsx("a",{href:c,target:"_blank",rel:"noopener noreferrer",children:e.jsx(s.Icon,{name:"external alternate"})})]})]}):e.jsx("span",{className:"empty-url",children:n("worlds_list_page.table.empty_url")})}function Te({deploymentsByWorlds:t,ens:a,projects:c,onEditScene:m,onUnpublishScene:d,onPublishScene:g}){const o=t[a.subdomain];return M(t,a)?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})}),c.find(i=>i.id===(o==null?void 0:o.projectId))?m&&e.jsx(s.Button,{inverted:!0,size:"small",onClick:()=>m(a),children:n("worlds_list_page.table.edit_scene")}):d&&e.jsx(s.Popup,{content:n("worlds_list_page.table.scene_published_outside_builder"),on:"hover",position:"top center",trigger:e.jsx(s.Button,{inverted:!0,size:"small",onClick:()=>d(a),children:n("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:n("worlds_list_page.table.publish_scene")})]})}function Ns({items:t,deploymentsByWorlds:a,projects:c,loading:m,error:d,onUnpublishWorld:g}){const o=ne(),i=l.useCallback(()=>{o.push(k.scenes())},[o]),N=l.useCallback(p=>{const{projectId:x}=a[p.subdomain];o.push(k.sceneDetail(x))},[a,k,o]),E=l.useCallback(p=>{var C;const x=(C=a[p.subdomain])==null?void 0:C.id;x&&g(x)},[a,g]);return d?e.jsx(s.Message,{error:!0,size:"tiny",visible:!0,content:d.message,header:n("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:n("worlds_list_page.table.name")}),e.jsx(s.Table.HeaderCell,{width:"1",children:n("worlds_list_page.table.owner")}),e.jsx(s.Table.HeaderCell,{width:"2",children:n("worlds_list_page.table.url")}),e.jsx(s.Table.HeaderCell,{width:"1",children:n("worlds_list_page.table.published_scene")}),e.jsx(s.Table.HeaderCell,{width:"1",children:n("worlds_list_page.table.size")}),e.jsx(s.Table.HeaderCell,{width:"1",children:n("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=>n(`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(Se,{deploymentsByWorlds:a,ens:p})}),e.jsx(s.Table.Cell,{width:1,children:e.jsx(Te,{deploymentsByWorlds:a,ens:p,projects:c,onEditScene:C?N:void 0,onPublishScene:C?i:void 0,onUnpublishScene:C?E:void 0})}),e.jsx(s.Table.Cell,{width:1,children:Y(Q(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:n("worlds_list_page.empty_contributor_list.title")}),e.jsx("div",{className:"empty-description",children:n("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:n("worlds_list_page.empty_list.cta")})]})}const Es=()=>{const t=ge(),a=we(),c=_(We),m=_(pe),d=_(Oe),g=_(i=>L(xe(i),Ue)||L(Ce(i),se)),o=l.useCallback(i=>t(je(i)),[t]);return e.jsx(Ns,{items:c,deploymentsByWorlds:m,projects:a,loading:g,error:d,onUnpublishWorld:o})},_e="Worlds List Page Action",Ss=le.get("ENS_DOMAINS_URL",""),Ts=le.get("MARKETPLACE_WEB_URL"),ee=12,Ls=t=>{const{ensList:a,externalNames:c,error:m,deploymentsByWorlds:d,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,D]=l.useState(B.DESC),[O,U]=l.useState(1),{tab:h}=Ee(),P=ne();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(`${Ts}/names/claim`,"_blank","noopener,noreferrer")):(de(_e,{action:"Click Claim ENS Domain"}),window.open(Ss,"_blank","noopener,noreferrer"))},[h]),V=l.useCallback(()=>{P.push(k.scenes())},[k,P]),q=l.useCallback(u=>{const{projectId:r}=d[u.subdomain];P.push(k.sceneDetail(r))},[d,k,P]),w=l.useCallback(u=>{var j;const r=(j=d[u.subdomain])==null?void 0:j.id;r&&f(r)},[d,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:n("global.order.name_asc")},{value:B.DESC,text:n("global.order.name_desc")}],onChange:(u,{value:r})=>D(r)}),[I,D]),oe=l.useCallback(u=>{let r=M(d,u)?"active":"inactive";if(r==="active"&&i&&!ue(u.subdomain))switch(K(i).status){case G.BLOCKED:{r="blocked";break}case G.TO_BE_BLOCKED:r="warning"}return e.jsx("span",{className:`world-status ${r}`,children:n(`worlds_list_page.table.status_${r}`)})},[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(d,u)||!j)return"-";const S=(F=j.find(ve=>ve.name===u.subdomain))==null?void 0:F.size,J=h===b.ENS?" / 25":"";return Y(Q(Number(S)))+J},[h]),Le=l.useCallback((u,r)=>{v(r)},[]),H=l.useCallback(()=>{const u=h===b.DCL?p:c.length,r=Math.ceil(u/ee),j=h===b.DCL?a:c;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:n("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:n("worlds_list_page.table.name")}),e.jsx(s.Table.HeaderCell,{width:"2",children:n("worlds_list_page.table.url")}),e.jsx(s.Table.HeaderCell,{width:"1",children:n("worlds_list_page.table.published_scene")}),e.jsx(s.Table.HeaderCell,{width:"1",textAlign:"center",children:n("worlds_list_page.table.size")}),e.jsx(s.Table.HeaderCell,{width:"1",textAlign:"center",children:n("worlds_list_page.table.status")}),e.jsx(s.Table.HeaderCell,{width:"1",textAlign:"center"})]})}),e.jsx(s.Table.Body,{children:j.map((S,J)=>e.jsxs(s.Table.Row,{className:"TableRow",children:[e.jsx(s.Table.Cell,{width:2,children:S.name}),e.jsx(s.Table.Cell,{width:2,children:e.jsx(Se,{deploymentsByWorlds:d,ens:S})}),e.jsx(s.Table.Cell,{width:1,children:e.jsx(Te,{deploymentsByWorlds:d,ens:S,projects:o,onEditScene:q,onPublishScene:V,onUnpublishScene:w})}),e.jsx(s.Table.Cell,{width:1,textAlign:"center",children:ie(S,i)}),e.jsx(s.Table.Cell,{width:1,textAlign:"center",children:oe(S)}),e.jsx(s.Table.Cell,{width:1,textAlign:"center",children:e.jsx(s.Button,{basic:!0,onClick:F=>Le(F,S.subdomain),children:"Permissions"})})]},J))})]}),r>1&&e.jsx(s.Pagination,{firstItem:null,lastItem:null,totalPages:r,activePage:O,onPageChange:W})]})})]})},[h,a,c,A,re,ie,oe,W,p]),$=l.useCallback(()=>e.jsxs(s.Empty,{className:"empty-names-container",height:500,children:[e.jsx("div",{className:ae("empty-icon",h===b.DCL?"dcl-icon":"ens-icon")}),e.jsx("div",{className:"empty-title",children:h===b.DCL?n("worlds_list_page.empty_list.title"):n("worlds_list_page.empty_list.title_ens")}),e.jsx("div",{className:"empty-description",children:h===b.DCL?n("worlds_list_page.empty_list.description",{b:u=>e.jsx("b",{children:u})}):n("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?n("worlds_list_page.empty_list.cta"):n("worlds_list_page.empty_list.cta_ens")})]}),[h,A]),ce=l.useCallback(()=>{if(!i)return null;const u=K(i);if(u.status===G.OK)return null;let r;return u.status===G.TO_BE_BLOCKED?r=n("worlds_list_page.worlds_warning_message.to_be_blocked",{toBeBlockedAt:u.toBeBlockedAt.toLocaleDateString(),b:j=>e.jsx("b",{children:j})}):r=n("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(()=>a.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:$()}),[a,i,H,$,ce,x]),fe=l.useCallback(()=>e.jsx("div",{children:c.length>0?H():$()}),[c,$,H]);return l.useEffect(()=>{D(B.ASC),U(1)},[h,U,D]),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:n("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(),a=we(),c=_(Be),m=_(Me),d=_(pe),g=_(Ie),o=_(He),i=_($e),N=_(xe),E=_(Ce),p=_(Fe),x=_(ze),C=_(Ke),f=_(Ge),v=_(Ye),y=_(Qe),R=_(me),I=_(Ve),D=(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]),P=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:c,externalNames:m,deploymentsByWorlds:d,projects:a,worldsPermissions:g,error:D,isLoading:O,isLoggedIn:f,worldsWalletStats:v,isConnected:y,isWorldContributorEnabled:R,ensTotal:I,onOpenYourStorageModal:U,onOpenPermissionsModal:h,onOpenWorldsForENSOwnersAnnouncementModal:P,onUnpublishWorld:A,onFetchContributableNames:V,onFetchENSList:q})},As=fs;export{As as default};
1
+ import{aM as ye,ae as te,Z as ne,H as e,cU as z,G as n,N as Re,cV as me,a1 as ae,cW as Y,M as s,cX as Q,cY as De,cZ as M,cG as Pe,D as l,K as k,aA as le,bJ as Ae,a4 as ge,a5 as _,c_ as We,c$ as pe,d0 as Oe,bD as L,d1 as Ue,cM as xe,d2 as se,d3 as Ce,d4 as je,d5 as de,d6 as ue,d7 as K,d8 as G,J as be,$ as he,cI as Be,d9 as Me,da as Ie,cJ as He,db as $e,c5 as Fe,dc as ze,a6 as Ke,ad as Ge,dd as Ye,de as Qe,cN as Ve,X,df as qe,cO as Je,cP as Xe,c6 as Ze,dg as es}from"./index-BlcMW_g6.js";import{a as we,N as ss}from"./Navigation.container-gTCRHjj6.js";import{L as ts}from"./LoggedInDetailPage.container-BwMfJFSQ.js";import"./selectors-C5Krcz9D.js";import"./SignInRequired-hq09yAsv.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(),a=new URLSearchParams(t.search),c=a.get(Ne),m={urlSearchParams:a,pathname:t.pathname};switch(c){case"dcl":m.tab="dcl";break;case"ens":m.tab="ens";break;case"contributor":m.tab="contributor";break}return m},ns=({isWorldContributorEnabled:t})=>{const{tab:a,pathname:c,urlSearchParams:m}=Ee(),d=ne(),g=o=>{const i=new URLSearchParams(m);i.set(Ne,o),d.push(`${c}?${i.toString()}`)};return!a||a===b.CONTRIBUTOR&&!t?(g(b.DCL),null):e.jsxs(z,{children:[e.jsx(z.Tab,{active:a===b.DCL,onClick:()=>g(b.DCL),children:n("worlds_list_page.name_tabs.dcl_names")}),e.jsx(z.Tab,{active:a===b.ENS,onClick:()=>g(b.ENS),children:n("worlds_list_page.name_tabs.ens_names")}),t&&e.jsx(z.Tab,{active:a===b.CONTRIBUTOR,onClick:()=>g(b.CONTRIBUTOR),children:n("worlds_list_page.name_tabs.contributor_names")})]})},as=te.memo(ns),ls=t=>({isWorldContributorEnabled:me(t)}),rs=Re(ls)(as),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",T={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:a,className:c,onViewDetails:m})=>{const d=Q(t),g=Q(a),o=g*100/d;return e.jsxs("div",{"data-testid":gs,className:ae(T.container,c),children:[e.jsx("span",{className:T.used,children:n("worlds_list_page.worlds_storage.used")}),e.jsxs("div",{className:T.description,children:[e.jsx("span",{children:n("worlds_list_page.worlds_storage.description")})," ",e.jsx("span",{className:T.link,onClick:m,children:n("worlds_list_page.worlds_storage.link")})]}),e.jsxs("div",{className:T.space,children:[e.jsxs("div",{"data-testid":_s,children:[e.jsx("span",{className:T.current,children:Y(g)})," / ",Y(d)," Mb"]}),e.jsx(s.Progress,{"data-testid":ms,percent:Math.trunc(o),className:T.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 Se({ens:t,deploymentsByWorlds:a}){const c=De(t.subdomain);return M(a,t)?e.jsxs("div",{className:Z.worldUrl,children:[e.jsx("span",{children:c}),e.jsxs("div",{className:Z.rightContainer,children:[e.jsx(Pe,{role:"button",text:c,showPopup:!0,children:e.jsx(s.Icon,{"aria-label":"Copy urn","aria-hidden":"false",className:ae("copy",Z.copyUrn),name:"copy outline"})}),e.jsx("a",{href:c,target:"_blank",rel:"noopener noreferrer",children:e.jsx(s.Icon,{name:"external alternate"})})]})]}):e.jsx("span",{className:"empty-url",children:n("worlds_list_page.table.empty_url")})}function Te({deploymentsByWorlds:t,ens:a,projects:c,onEditScene:m,onUnpublishScene:d,onPublishScene:g}){const o=t[a.subdomain];return M(t,a)?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})}),c.find(i=>i.id===(o==null?void 0:o.projectId))?m&&e.jsx(s.Button,{inverted:!0,size:"small",onClick:()=>m(a),children:n("worlds_list_page.table.edit_scene")}):d&&e.jsx(s.Popup,{content:n("worlds_list_page.table.scene_published_outside_builder"),on:"hover",position:"top center",trigger:e.jsx(s.Button,{inverted:!0,size:"small",onClick:()=>d(a),children:n("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:n("worlds_list_page.table.publish_scene")})]})}function Ns({items:t,deploymentsByWorlds:a,projects:c,loading:m,error:d,onUnpublishWorld:g}){const o=ne(),i=l.useCallback(()=>{o.push(k.scenes())},[o]),N=l.useCallback(p=>{const{projectId:x}=a[p.subdomain];o.push(k.sceneDetail(x))},[a,k,o]),E=l.useCallback(p=>{var C;const x=(C=a[p.subdomain])==null?void 0:C.id;x&&g(x)},[a,g]);return d?e.jsx(s.Message,{error:!0,size:"tiny",visible:!0,content:d.message,header:n("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:n("worlds_list_page.table.name")}),e.jsx(s.Table.HeaderCell,{width:"1",children:n("worlds_list_page.table.owner")}),e.jsx(s.Table.HeaderCell,{width:"2",children:n("worlds_list_page.table.url")}),e.jsx(s.Table.HeaderCell,{width:"1",children:n("worlds_list_page.table.published_scene")}),e.jsx(s.Table.HeaderCell,{width:"1",children:n("worlds_list_page.table.size")}),e.jsx(s.Table.HeaderCell,{width:"1",children:n("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=>n(`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(Se,{deploymentsByWorlds:a,ens:p})}),e.jsx(s.Table.Cell,{width:1,children:e.jsx(Te,{deploymentsByWorlds:a,ens:p,projects:c,onEditScene:C?N:void 0,onPublishScene:C?i:void 0,onUnpublishScene:C?E:void 0})}),e.jsx(s.Table.Cell,{width:1,children:Y(Q(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:n("worlds_list_page.empty_contributor_list.title")}),e.jsx("div",{className:"empty-description",children:n("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:n("worlds_list_page.empty_list.cta")})]})}const Es=()=>{const t=ge(),a=we(),c=_(We),m=_(pe),d=_(Oe),g=_(i=>L(xe(i),Ue)||L(Ce(i),se)),o=l.useCallback(i=>t(je(i)),[t]);return e.jsx(Ns,{items:c,deploymentsByWorlds:m,projects:a,loading:g,error:d,onUnpublishWorld:o})},_e="Worlds List Page Action",Ss=le.get("ENS_DOMAINS_URL",""),Ts=le.get("MARKETPLACE_WEB_URL"),ee=12,Ls=t=>{const{ensList:a,externalNames:c,error:m,deploymentsByWorlds:d,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,D]=l.useState(B.DESC),[O,U]=l.useState(1),{tab:h}=Ee(),P=ne();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(`${Ts}/names/claim`,"_blank","noopener,noreferrer")):(de(_e,{action:"Click Claim ENS Domain"}),window.open(Ss,"_blank","noopener,noreferrer"))},[h]),V=l.useCallback(()=>{P.push(k.scenes())},[k,P]),q=l.useCallback(u=>{const{projectId:r}=d[u.subdomain];P.push(k.sceneDetail(r))},[d,k,P]),w=l.useCallback(u=>{var j;const r=(j=d[u.subdomain])==null?void 0:j.id;r&&f(r)},[d,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:n("global.order.name_asc")},{value:B.DESC,text:n("global.order.name_desc")}],onChange:(u,{value:r})=>D(r)}),[I,D]),oe=l.useCallback(u=>{let r=M(d,u)?"active":"inactive";if(r==="active"&&i&&!ue(u.subdomain))switch(K(i).status){case G.BLOCKED:{r="blocked";break}case G.TO_BE_BLOCKED:r="warning"}return e.jsx("span",{className:`world-status ${r}`,children:n(`worlds_list_page.table.status_${r}`)})},[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(d,u)||!j)return"-";const S=(F=j.find(ve=>ve.name===u.subdomain))==null?void 0:F.size,J=h===b.ENS?" / 25":"";return Y(Q(Number(S)))+J},[h]),Le=l.useCallback((u,r)=>{v(r)},[]),H=l.useCallback(()=>{const u=h===b.DCL?p:c.length,r=Math.ceil(u/ee),j=h===b.DCL?a:c;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:n("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:n("worlds_list_page.table.name")}),e.jsx(s.Table.HeaderCell,{width:"2",children:n("worlds_list_page.table.url")}),e.jsx(s.Table.HeaderCell,{width:"1",children:n("worlds_list_page.table.published_scene")}),e.jsx(s.Table.HeaderCell,{width:"1",textAlign:"center",children:n("worlds_list_page.table.size")}),e.jsx(s.Table.HeaderCell,{width:"1",textAlign:"center",children:n("worlds_list_page.table.status")}),e.jsx(s.Table.HeaderCell,{width:"1",textAlign:"center"})]})}),e.jsx(s.Table.Body,{children:j.map((S,J)=>e.jsxs(s.Table.Row,{className:"TableRow",children:[e.jsx(s.Table.Cell,{width:2,children:S.name}),e.jsx(s.Table.Cell,{width:2,children:e.jsx(Se,{deploymentsByWorlds:d,ens:S})}),e.jsx(s.Table.Cell,{width:1,children:e.jsx(Te,{deploymentsByWorlds:d,ens:S,projects:o,onEditScene:q,onPublishScene:V,onUnpublishScene:w})}),e.jsx(s.Table.Cell,{width:1,textAlign:"center",children:ie(S,i)}),e.jsx(s.Table.Cell,{width:1,textAlign:"center",children:oe(S)}),e.jsx(s.Table.Cell,{width:1,textAlign:"center",children:e.jsx(s.Button,{basic:!0,onClick:F=>Le(F,S.subdomain),children:"Permissions"})})]},J))})]}),r>1&&e.jsx(s.Pagination,{firstItem:null,lastItem:null,totalPages:r,activePage:O,onPageChange:W})]})})]})},[h,a,c,A,re,ie,oe,W,p]),$=l.useCallback(()=>e.jsxs(s.Empty,{className:"empty-names-container",height:500,children:[e.jsx("div",{className:ae("empty-icon",h===b.DCL?"dcl-icon":"ens-icon")}),e.jsx("div",{className:"empty-title",children:h===b.DCL?n("worlds_list_page.empty_list.title"):n("worlds_list_page.empty_list.title_ens")}),e.jsx("div",{className:"empty-description",children:h===b.DCL?n("worlds_list_page.empty_list.description",{b:u=>e.jsx("b",{children:u})}):n("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?n("worlds_list_page.empty_list.cta"):n("worlds_list_page.empty_list.cta_ens")})]}),[h,A]),ce=l.useCallback(()=>{if(!i)return null;const u=K(i);if(u.status===G.OK)return null;let r;return u.status===G.TO_BE_BLOCKED?r=n("worlds_list_page.worlds_warning_message.to_be_blocked",{toBeBlockedAt:u.toBeBlockedAt.toLocaleDateString(),b:j=>e.jsx("b",{children:j})}):r=n("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(()=>a.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:$()}),[a,i,H,$,ce,x]),fe=l.useCallback(()=>e.jsx("div",{children:c.length>0?H():$()}),[c,$,H]);return l.useEffect(()=>{D(B.ASC),U(1)},[h,U,D]),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:n("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(),a=we(),c=_(Be),m=_(Me),d=_(pe),g=_(Ie),o=_(He),i=_($e),N=_(xe),E=_(Ce),p=_(Fe),x=_(ze),C=_(Ke),f=_(Ge),v=_(Ye),y=_(Qe),R=_(me),I=_(Ve),D=(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]),P=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:c,externalNames:m,deploymentsByWorlds:d,projects:a,worldsPermissions:g,error:D,isLoading:O,isLoggedIn:f,worldsWalletStats:v,isConnected:y,isWorldContributorEnabled:R,ensTotal:I,onOpenYourStorageModal:U,onOpenPermissionsModal:h,onOpenWorldsForENSOwnersAnnouncementModal:P,onUnpublishWorld:A,onFetchContributableNames:V,onFetchENSList:q})},As=fs;export{As as default};
@@ -1 +1 @@
1
- import{N as n,al as s,am as r,an as i,ao as m,ap as d,aq as g,ad as t,ar as c,as as u,at as S,X as l,au as I,av as P,aw as p,ax as y,ay as O}from"./index-76S3Bul4.js";const R=a=>({isPreviewing:r(a),isSidebarOpen:i(a),isReady:m(a),isLoading:d(a),isFetching:g(a),isLoggedIn:t(a),isScreenshotReady:c(a),currentProject:u(a),numItems:S(a)}),C=a=>({onOpenModal:(e,o)=>a(l(e,o)),onCloseEditor:()=>a(I()),onZoomIn:()=>a(P()),onZoomOut:()=>a(p()),onResetCamera:()=>a(y()),onTakeScreenshot:()=>a(O())}),L=n(R,C)(s);export{L as default};
1
+ import{N as n,al as s,am as r,an as i,ao as m,ap as d,aq as g,ad as t,ar as c,as as u,at as S,X as l,au as I,av as P,aw as p,ax as y,ay as O}from"./index-BlcMW_g6.js";const R=a=>({isPreviewing:r(a),isSidebarOpen:i(a),isReady:m(a),isLoading:d(a),isFetching:g(a),isLoggedIn:t(a),isScreenshotReady:c(a),currentProject:u(a),numItems:S(a)}),C=a=>({onOpenModal:(e,o)=>a(l(e,o)),onCloseEditor:()=>a(I()),onZoomIn:()=>a(P()),onZoomOut:()=>a(p()),onResetCamera:()=>a(y()),onTakeScreenshot:()=>a(O())}),L=n(R,C)(s);export{L as default};
@@ -1 +1 @@
1
- var I=Object.defineProperty;var R=(c,o,s)=>o in c?I(c,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):c[o]=s;var x=(c,o,s)=>R(c,typeof o!="symbol"?o+"":o,s);import{D as j,K as m,H as e,aW as B,M as t,N as O,aX as z,bX as H,bY as P,az as A,bI as y,bZ as F,b_ as $,bP as g,b$ as E,G as r,bT as X,bH as Y,bJ as L,a4 as U,Z as W,a5 as v,c0 as J,c1 as G,c2 as V,c3 as Z,c4 as K,X as q}from"./index-76S3Bul4.js";import{a as Q}from"./hooks-CZx9E4HM.js";import{L as ee}from"./LandProviderPage-BKfn97qy.js";import{B as se}from"./Back-Du-3PX5t.js";import{J as te}from"./JumpIn.container-DBOPalEu.js";import{R as oe}from"./RentalPeriod-Bsw3l3b-.js";import{S as ie}from"./SceneStats.container-Ca4F8ZRq.js";import"./NotFound-B5Bl_gw1.js";import"./index-CFjpjxhQ.js";import"./date-B6b7CVrN.js";let ne=class extends j.PureComponent{constructor(){super(...arguments);x(this,"handleOnClick",()=>{const{isLoading:s,history:i}=this.props;s&&i.push(m.activity())})}render(){const{ens:s,isLoading:i,onIconClick:n}=this.props;return e.jsx(B,{className:"ENSChip",text:i?e.jsxs(e.Fragment,{children:[s.subdomain,e.jsx(t.Loader,{active:!0,size:"tiny"})]}):s.subdomain,isActive:i,icon:i?"":"minus",onClick:this.handleOnClick,onIconClick:n})}};const le=(c,o)=>{const{ens:s}=o;return{isLoading:H(c)[s.subdomain]||P(c)[s.subdomain]}},ae=O(le)(z(ne)),re=c=>{const{deployment:o,onMouseEnter:s,onMouseLeave:i,onNavigate:n,onOpenModal:p,projects:h,disabled:a}=c,d=o.projectId&&o.projectId in h?h[o.projectId]:null,l=j.useCallback(()=>{a||s(o)},[s,a,o]),u=j.useCallback(()=>{a||i(o)},[i,a,o]),S=j.useCallback(()=>{d&&!a&&n(m.sceneDetail(d.id))},[n,d,a]),C=j.useCallback(()=>{p("DeployModal",{view:A.CLEAR_DEPLOYMENT,deploymentId:o.id})},[p,o]);return e.jsxs("div",{className:`Scene ${d&&!a?"clickable":""}`,onClick:S,onMouseEnter:l,onMouseLeave:u,children:[o.thumbnail?e.jsx("div",{className:"thumbnail",style:{backgroundImage:`url(${o.thumbnail})`}}):e.jsx("div",{className:"no-thumbnail"}),e.jsxs("div",{className:"stat",children:[e.jsx("div",{className:"title",title:o.name,children:o.name}),o.layout?e.jsxs("div",{className:"secondary-text",children:[o.layout.rows,"x",o.layout.cols]}):null]}),e.jsx(ie,{deployment:o}),e.jsx(t.Dropdown,{trigger:e.jsx(t.Button,{basic:!0,children:e.jsx(t.Icon,{name:"ellipsis horizontal"})}),inline:!0,disabled:a,direction:"left",children:e.jsx(t.Dropdown.Menu,{children:e.jsx(t.Dropdown.Item,{text:"Unpublish",onClick:C})})})]})},D=({children:c,land:o})=>{const s=j.Children.map(c,i=>j.isValidElement(i)?j.cloneElement(i,{disabled:o.roles.includes(g.LESSOR)}):i);return e.jsx(t.Popup,{content:r("land_detail_page.land_is_locked"),position:"top left",disabled:!o.roles.includes(g.LESSOR),trigger:e.jsx("span",{children:s})})};let de=class extends j.PureComponent{constructor(){super(...arguments);x(this,"state",{hovered:null,mouseX:0,mouseY:0,showTooltip:!1});x(this,"handleMouseEnter",s=>{this.setState({hovered:s,showTooltip:!1})});x(this,"handleMouseLeave",()=>{this.setState({hovered:null,showTooltip:!1})});x(this,"handleMouseMove",s=>{this.setState({mouseX:s.clientX,mouseY:s.clientY})});x(this,"handleHover",s=>(i,n)=>{const{deploymentsByCoord:p}=this.props,h=p[y(i,n)];h&&s.some(a=>a.id===h.id)?this.setState({hovered:h,showTooltip:!0}):this.setState({hovered:null,showTooltip:!1})});x(this,"handleClick",(s,i)=>{const{deploymentsByCoord:n,projects:p,history:h,landTiles:a}=this.props,d=y(s,i),l=n[d];l&&l.projectId&&l.projectId in p?h.push(m.sceneDetail(l.projectId)):d in a&&h.replace(m.landDetail(a[d].land.id))});x(this,"isHovered",(s,i)=>{const{deploymentsByCoord:n}=this.props,{hovered:p}=this.state,h=y(s,i),a=n[h];return!!a&&!!p&&p.id===a.id});x(this,"getHoverStrokeLayer",s=>(i,n)=>this.isHovered(i,n)?{color:F[s.role],scale:1.4}:null);x(this,"getHoverFillLayer",s=>(i,n)=>this.isHovered(i,n)?{color:$[s.role],scale:1.2}:null)}computeOccupiedLand(s,i){const{landTiles:n}=this.props;return i.reduce((h,a)=>h+a.parcels.filter(d=>{const l=n[d];return!!l&&l.land.id===s.id}).length,0)}renderDetail(s,i,n){const{ensList:p,parcelsAvailableToBuildEstates:h,projects:a,history:d,onOpenModal:l}=this.props,{hovered:u,mouseX:S,mouseY:C,showTooltip:N}=this.state,w=this.computeOccupiedLand(s,i),k=n&&(s.roles.includes(g.LESSOR)||s.roles.includes(g.TENANT))?n.lessor:s.owner,M=s.roles.includes(g.LESSOR),T=h[s.id],f=N&&u&&u.projectId&&u.projectId in a;return e.jsxs(e.Fragment,{children:[u&&N?e.jsxs("div",{className:"tooltip",style:{top:C,left:S},children:[u.thumbnail?e.jsx("div",{className:"thumbnail",style:{backgroundImage:`url(${u.thumbnail})`}}):null,e.jsx("div",{className:"name",children:u.name})]}):null,e.jsx(t.Section,{size:"large",children:e.jsxs(t.Row,{children:[e.jsx(se,{absolute:!0,onClick:()=>d.push(m.land())}),e.jsx(t.Narrow,{children:e.jsxs(t.Row,{children:[e.jsx(t.Column,{children:e.jsxs(t.Row,{children:[e.jsx(t.Header,{size:"huge",children:s.name}),s.type===E.PARCEL?e.jsx(e.Fragment,{children:e.jsxs(t.Badge,{color:"#37333D",children:[e.jsx("i",{className:"pin"}),s.id]})}):e.jsxs(t.Badge,{color:"#37333D",children:[s.size," LAND"]}),e.jsx(te,{land:s})]})}),s.role===g.OWNER||s.role===g.LESSOR?e.jsx(t.Column,{className:"actions",align:"right",children:e.jsxs(t.Row,{children:[e.jsx(D,{land:s,children:e.jsx(t.Button,{basic:!0,onClick:()=>d.push(m.landTransfer(s.id)),children:r("land_detail_page.transfer")})}),e.jsx(D,{land:s,children:e.jsx(t.Button,{basic:!0,onClick:()=>d.push(m.landEdit(s.id)),children:r("global.edit")})}),e.jsx(D,{land:s,children:e.jsx(t.Dropdown,{trigger:e.jsx(t.Button,{basic:!0,children:e.jsx(t.Icon,{name:"ellipsis horizontal"})}),inline:!0,direction:"left",children:e.jsxs(t.Dropdown.Menu,{children:[T?e.jsxs(e.Fragment,{children:[e.jsx(t.Dropdown.Item,{text:r("land_detail_page.build_estate"),onClick:()=>l("EstateEditorModal",{land:s})}),e.jsx(t.Dropdown.Divider,{})]}):null,s.type===E.ESTATE?e.jsxs(e.Fragment,{children:[e.jsx(t.Dropdown.Item,{text:r("land_detail_page.add_or_remove_parcels"),onClick:()=>l("EstateEditorModal",{land:s})}),e.jsx(t.Dropdown.Item,{text:r("land_detail_page.dissolve_estate"),onClick:()=>l("DissolveModal",{land:s})}),e.jsx(t.Dropdown.Divider,{})]}):null,e.jsxs(e.Fragment,{children:[e.jsx(t.Dropdown.Item,{text:r("land_detail_page.assign_name"),onClick:()=>d.push(m.landSelectENS(s.id))}),e.jsx(t.Dropdown.Divider,{})]}),e.jsx(t.Dropdown.Item,{text:r("land_detail_page.set_operator"),onClick:()=>d.push(m.landOperator(s.id))})]})})})]})}):s.roles.includes(g.TENANT)&&n&&!X(n)?e.jsx(t.Dropdown,{trigger:e.jsx(t.Button,{basic:!0,children:e.jsx(t.Icon,{name:"ellipsis horizontal"})}),inline:!0,direction:"left",children:e.jsx(t.Dropdown.Menu,{children:e.jsx(t.Dropdown.Item,{text:r("land_detail_page.set_operator"),onClick:()=>d.push(m.landOperator(s.id))})})}):null]})})]})}),e.jsxs(t.Narrow,{children:[e.jsx(t.Section,{size:"large",children:e.jsx("div",{className:`atlas-wrapper ${f?"clickable":""}`,onMouseLeave:this.handleMouseLeave,onMouseMove:this.handleMouseMove,children:e.jsx(Y,{landId:s.id,layers:[this.getHoverStrokeLayer(s),this.getHoverFillLayer(s)],isDraggable:!0,zoom:s.size&&s.size>=1e3?.5:1,onHover:this.handleHover(i),onClick:this.handleClick})})}),e.jsxs(t.Section,{size:"large",children:[e.jsx(t.Header,{sub:!0,children:r("land_detail_page.online_scenes")}),i.length===0?e.jsx(t.Empty,{height:100,children:r("global.none")}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"deployments",children:i.map(b=>e.jsx(re,{disabled:M,deployment:b,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onNavigate:_=>d.push(_),onOpenModal:l,projects:a},b.id))}),e.jsx("div",{className:"notice",children:r("analytics.notice")})]})]}),p.length>0?e.jsxs(t.Section,{size:"large",children:[e.jsx(t.Header,{sub:!0,children:e.jsx(t.Row,{children:e.jsx(t.Column,{children:r("land_detail_page.assigned_names")})})}),e.jsx("div",{className:"ens-list",children:p.map(b=>e.jsx(ae,{ens:b,onIconClick:()=>l("UnsetENSContentModal",{ens:b,land:s})},b.subdomain))})]}):null,s.description?e.jsxs(t.Section,{size:"large",children:[e.jsx(t.Header,{sub:!0,children:r("land_detail_page.description")}),e.jsx("p",{children:s.description})]}):null,e.jsxs(t.Section,{className:"data",children:[e.jsxs(t.Stats,{title:r("global.role"),className:"role",children:[e.jsx(t.Header,{children:r(`roles.${s.role}`)}),n?e.jsx(oe,{land:s,rental:n}):null]}),e.jsx(t.Stats,{title:r("land_detail_page.owner"),children:e.jsx(L,{address:k,size:"large"})}),n&&s.roles.includes(g.LESSOR)?e.jsx(t.Stats,{title:r("land_detail_page.tenant"),children:e.jsx(L,{address:n.tenant,size:"large"})}):null,s.operators.length>0?e.jsx(t.Stats,{title:r("land_detail_page.operated_by"),className:"operators",children:e.jsx(t.Row,{children:s.operators.map((b,_)=>e.jsx(L,{address:b,size:"large"},_))})}):null,s.type===E.ESTATE?e.jsxs(e.Fragment,{children:[e.jsx(t.Stats,{title:r("land_detail_page.total_land"),children:e.jsx(t.Header,{children:s.size})}),e.jsx(t.Stats,{title:r("land_detail_page.empty_land"),children:e.jsx(t.Header,{children:s.size-w})})]}):null]})]})]})}render(){return e.jsx(ee,{className:"LandDetailPage",children:(s,{deployments:i,rental:n})=>this.renderDetail(s,i,n)})}};const ce=()=>{const c=U(),o=W(),s=Q()||"",i=v(l=>J(l,s)),n=v(l=>G(l)),p=v(l=>V(l)),h=v(l=>Z(l)),a=v(l=>K(l)),d=j.useCallback((l,u)=>c(q(l,u)),[c]);return e.jsx(de,{ensList:i,parcelsAvailableToBuildEstates:n,deploymentsByCoord:p,landTiles:h,projects:a,onOpenModal:d,history:o})},Ee=ce;export{Ee as default};
1
+ var I=Object.defineProperty;var R=(c,o,s)=>o in c?I(c,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):c[o]=s;var x=(c,o,s)=>R(c,typeof o!="symbol"?o+"":o,s);import{D as j,K as m,H as e,aW as B,M as t,N as O,aX as z,bX as H,bY as P,az as A,bI as y,bZ as F,b_ as $,bP as g,b$ as E,G as r,bT as X,bH as Y,bJ as L,a4 as U,Z as W,a5 as v,c0 as J,c1 as G,c2 as V,c3 as Z,c4 as K,X as q}from"./index-BlcMW_g6.js";import{a as Q}from"./hooks-C8UcKsSN.js";import{L as ee}from"./LandProviderPage-C-6H7vWP.js";import{B as se}from"./Back-Bq3Xcoly.js";import{J as te}from"./JumpIn.container-CeSOEwOc.js";import{R as oe}from"./RentalPeriod-Dur2tZPB.js";import{S as ie}from"./SceneStats.container-DWiDhtTP.js";import"./NotFound-BnVf99__.js";import"./index-CcVM_MVj.js";import"./date-fu0Q5SmK.js";let ne=class extends j.PureComponent{constructor(){super(...arguments);x(this,"handleOnClick",()=>{const{isLoading:s,history:i}=this.props;s&&i.push(m.activity())})}render(){const{ens:s,isLoading:i,onIconClick:n}=this.props;return e.jsx(B,{className:"ENSChip",text:i?e.jsxs(e.Fragment,{children:[s.subdomain,e.jsx(t.Loader,{active:!0,size:"tiny"})]}):s.subdomain,isActive:i,icon:i?"":"minus",onClick:this.handleOnClick,onIconClick:n})}};const le=(c,o)=>{const{ens:s}=o;return{isLoading:H(c)[s.subdomain]||P(c)[s.subdomain]}},ae=O(le)(z(ne)),re=c=>{const{deployment:o,onMouseEnter:s,onMouseLeave:i,onNavigate:n,onOpenModal:p,projects:h,disabled:a}=c,d=o.projectId&&o.projectId in h?h[o.projectId]:null,l=j.useCallback(()=>{a||s(o)},[s,a,o]),u=j.useCallback(()=>{a||i(o)},[i,a,o]),S=j.useCallback(()=>{d&&!a&&n(m.sceneDetail(d.id))},[n,d,a]),C=j.useCallback(()=>{p("DeployModal",{view:A.CLEAR_DEPLOYMENT,deploymentId:o.id})},[p,o]);return e.jsxs("div",{className:`Scene ${d&&!a?"clickable":""}`,onClick:S,onMouseEnter:l,onMouseLeave:u,children:[o.thumbnail?e.jsx("div",{className:"thumbnail",style:{backgroundImage:`url(${o.thumbnail})`}}):e.jsx("div",{className:"no-thumbnail"}),e.jsxs("div",{className:"stat",children:[e.jsx("div",{className:"title",title:o.name,children:o.name}),o.layout?e.jsxs("div",{className:"secondary-text",children:[o.layout.rows,"x",o.layout.cols]}):null]}),e.jsx(ie,{deployment:o}),e.jsx(t.Dropdown,{trigger:e.jsx(t.Button,{basic:!0,children:e.jsx(t.Icon,{name:"ellipsis horizontal"})}),inline:!0,disabled:a,direction:"left",children:e.jsx(t.Dropdown.Menu,{children:e.jsx(t.Dropdown.Item,{text:"Unpublish",onClick:C})})})]})},D=({children:c,land:o})=>{const s=j.Children.map(c,i=>j.isValidElement(i)?j.cloneElement(i,{disabled:o.roles.includes(g.LESSOR)}):i);return e.jsx(t.Popup,{content:r("land_detail_page.land_is_locked"),position:"top left",disabled:!o.roles.includes(g.LESSOR),trigger:e.jsx("span",{children:s})})};let de=class extends j.PureComponent{constructor(){super(...arguments);x(this,"state",{hovered:null,mouseX:0,mouseY:0,showTooltip:!1});x(this,"handleMouseEnter",s=>{this.setState({hovered:s,showTooltip:!1})});x(this,"handleMouseLeave",()=>{this.setState({hovered:null,showTooltip:!1})});x(this,"handleMouseMove",s=>{this.setState({mouseX:s.clientX,mouseY:s.clientY})});x(this,"handleHover",s=>(i,n)=>{const{deploymentsByCoord:p}=this.props,h=p[y(i,n)];h&&s.some(a=>a.id===h.id)?this.setState({hovered:h,showTooltip:!0}):this.setState({hovered:null,showTooltip:!1})});x(this,"handleClick",(s,i)=>{const{deploymentsByCoord:n,projects:p,history:h,landTiles:a}=this.props,d=y(s,i),l=n[d];l&&l.projectId&&l.projectId in p?h.push(m.sceneDetail(l.projectId)):d in a&&h.replace(m.landDetail(a[d].land.id))});x(this,"isHovered",(s,i)=>{const{deploymentsByCoord:n}=this.props,{hovered:p}=this.state,h=y(s,i),a=n[h];return!!a&&!!p&&p.id===a.id});x(this,"getHoverStrokeLayer",s=>(i,n)=>this.isHovered(i,n)?{color:F[s.role],scale:1.4}:null);x(this,"getHoverFillLayer",s=>(i,n)=>this.isHovered(i,n)?{color:$[s.role],scale:1.2}:null)}computeOccupiedLand(s,i){const{landTiles:n}=this.props;return i.reduce((h,a)=>h+a.parcels.filter(d=>{const l=n[d];return!!l&&l.land.id===s.id}).length,0)}renderDetail(s,i,n){const{ensList:p,parcelsAvailableToBuildEstates:h,projects:a,history:d,onOpenModal:l}=this.props,{hovered:u,mouseX:S,mouseY:C,showTooltip:N}=this.state,w=this.computeOccupiedLand(s,i),k=n&&(s.roles.includes(g.LESSOR)||s.roles.includes(g.TENANT))?n.lessor:s.owner,M=s.roles.includes(g.LESSOR),T=h[s.id],f=N&&u&&u.projectId&&u.projectId in a;return e.jsxs(e.Fragment,{children:[u&&N?e.jsxs("div",{className:"tooltip",style:{top:C,left:S},children:[u.thumbnail?e.jsx("div",{className:"thumbnail",style:{backgroundImage:`url(${u.thumbnail})`}}):null,e.jsx("div",{className:"name",children:u.name})]}):null,e.jsx(t.Section,{size:"large",children:e.jsxs(t.Row,{children:[e.jsx(se,{absolute:!0,onClick:()=>d.push(m.land())}),e.jsx(t.Narrow,{children:e.jsxs(t.Row,{children:[e.jsx(t.Column,{children:e.jsxs(t.Row,{children:[e.jsx(t.Header,{size:"huge",children:s.name}),s.type===E.PARCEL?e.jsx(e.Fragment,{children:e.jsxs(t.Badge,{color:"#37333D",children:[e.jsx("i",{className:"pin"}),s.id]})}):e.jsxs(t.Badge,{color:"#37333D",children:[s.size," LAND"]}),e.jsx(te,{land:s})]})}),s.role===g.OWNER||s.role===g.LESSOR?e.jsx(t.Column,{className:"actions",align:"right",children:e.jsxs(t.Row,{children:[e.jsx(D,{land:s,children:e.jsx(t.Button,{basic:!0,onClick:()=>d.push(m.landTransfer(s.id)),children:r("land_detail_page.transfer")})}),e.jsx(D,{land:s,children:e.jsx(t.Button,{basic:!0,onClick:()=>d.push(m.landEdit(s.id)),children:r("global.edit")})}),e.jsx(D,{land:s,children:e.jsx(t.Dropdown,{trigger:e.jsx(t.Button,{basic:!0,children:e.jsx(t.Icon,{name:"ellipsis horizontal"})}),inline:!0,direction:"left",children:e.jsxs(t.Dropdown.Menu,{children:[T?e.jsxs(e.Fragment,{children:[e.jsx(t.Dropdown.Item,{text:r("land_detail_page.build_estate"),onClick:()=>l("EstateEditorModal",{land:s})}),e.jsx(t.Dropdown.Divider,{})]}):null,s.type===E.ESTATE?e.jsxs(e.Fragment,{children:[e.jsx(t.Dropdown.Item,{text:r("land_detail_page.add_or_remove_parcels"),onClick:()=>l("EstateEditorModal",{land:s})}),e.jsx(t.Dropdown.Item,{text:r("land_detail_page.dissolve_estate"),onClick:()=>l("DissolveModal",{land:s})}),e.jsx(t.Dropdown.Divider,{})]}):null,e.jsxs(e.Fragment,{children:[e.jsx(t.Dropdown.Item,{text:r("land_detail_page.assign_name"),onClick:()=>d.push(m.landSelectENS(s.id))}),e.jsx(t.Dropdown.Divider,{})]}),e.jsx(t.Dropdown.Item,{text:r("land_detail_page.set_operator"),onClick:()=>d.push(m.landOperator(s.id))})]})})})]})}):s.roles.includes(g.TENANT)&&n&&!X(n)?e.jsx(t.Dropdown,{trigger:e.jsx(t.Button,{basic:!0,children:e.jsx(t.Icon,{name:"ellipsis horizontal"})}),inline:!0,direction:"left",children:e.jsx(t.Dropdown.Menu,{children:e.jsx(t.Dropdown.Item,{text:r("land_detail_page.set_operator"),onClick:()=>d.push(m.landOperator(s.id))})})}):null]})})]})}),e.jsxs(t.Narrow,{children:[e.jsx(t.Section,{size:"large",children:e.jsx("div",{className:`atlas-wrapper ${f?"clickable":""}`,onMouseLeave:this.handleMouseLeave,onMouseMove:this.handleMouseMove,children:e.jsx(Y,{landId:s.id,layers:[this.getHoverStrokeLayer(s),this.getHoverFillLayer(s)],isDraggable:!0,zoom:s.size&&s.size>=1e3?.5:1,onHover:this.handleHover(i),onClick:this.handleClick})})}),e.jsxs(t.Section,{size:"large",children:[e.jsx(t.Header,{sub:!0,children:r("land_detail_page.online_scenes")}),i.length===0?e.jsx(t.Empty,{height:100,children:r("global.none")}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"deployments",children:i.map(b=>e.jsx(re,{disabled:M,deployment:b,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onNavigate:_=>d.push(_),onOpenModal:l,projects:a},b.id))}),e.jsx("div",{className:"notice",children:r("analytics.notice")})]})]}),p.length>0?e.jsxs(t.Section,{size:"large",children:[e.jsx(t.Header,{sub:!0,children:e.jsx(t.Row,{children:e.jsx(t.Column,{children:r("land_detail_page.assigned_names")})})}),e.jsx("div",{className:"ens-list",children:p.map(b=>e.jsx(ae,{ens:b,onIconClick:()=>l("UnsetENSContentModal",{ens:b,land:s})},b.subdomain))})]}):null,s.description?e.jsxs(t.Section,{size:"large",children:[e.jsx(t.Header,{sub:!0,children:r("land_detail_page.description")}),e.jsx("p",{children:s.description})]}):null,e.jsxs(t.Section,{className:"data",children:[e.jsxs(t.Stats,{title:r("global.role"),className:"role",children:[e.jsx(t.Header,{children:r(`roles.${s.role}`)}),n?e.jsx(oe,{land:s,rental:n}):null]}),e.jsx(t.Stats,{title:r("land_detail_page.owner"),children:e.jsx(L,{address:k,size:"large"})}),n&&s.roles.includes(g.LESSOR)?e.jsx(t.Stats,{title:r("land_detail_page.tenant"),children:e.jsx(L,{address:n.tenant,size:"large"})}):null,s.operators.length>0?e.jsx(t.Stats,{title:r("land_detail_page.operated_by"),className:"operators",children:e.jsx(t.Row,{children:s.operators.map((b,_)=>e.jsx(L,{address:b,size:"large"},_))})}):null,s.type===E.ESTATE?e.jsxs(e.Fragment,{children:[e.jsx(t.Stats,{title:r("land_detail_page.total_land"),children:e.jsx(t.Header,{children:s.size})}),e.jsx(t.Stats,{title:r("land_detail_page.empty_land"),children:e.jsx(t.Header,{children:s.size-w})})]}):null]})]})]})}render(){return e.jsx(ee,{className:"LandDetailPage",children:(s,{deployments:i,rental:n})=>this.renderDetail(s,i,n)})}};const ce=()=>{const c=U(),o=W(),s=Q()||"",i=v(l=>J(l,s)),n=v(l=>G(l)),p=v(l=>V(l)),h=v(l=>Z(l)),a=v(l=>K(l)),d=j.useCallback((l,u)=>c(q(l,u)),[c]);return e.jsx(de,{ensList:i,parcelsAvailableToBuildEstates:n,deploymentsByCoord:p,landTiles:h,projects:a,onOpenModal:d,history:o})},Ee=ce;export{Ee as default};