@dcl/auth-site 5.1.2-34526761043.commit-0cb2477 → 5.1.2-34527380948.commit-800b743
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{ConstantsUtil-CRuGrYJD.js → ConstantsUtil-C8ECmZhU.js} +1 -1
- package/assets/{ContentfulRichText-KBOZjR14.js → ContentfulRichText-B8EsGupg.js} +1 -1
- package/assets/{ExchangeController-DHNAaTZ-.js → ExchangeController-2EREmGS6.js} +1 -1
- package/assets/{HelpersUtil-CK9lJDnL.js → HelpersUtil-BEYLlBvJ.js} +1 -1
- package/assets/{LoginPage-Dfdm0zjw.js → LoginPage-M2pAlMG7.js} +1 -1
- package/assets/{NetworkUtil-BERiyjNo.js → NetworkUtil-wJaKVJLn.js} +1 -1
- package/assets/{SwapController-eqP0v8vk.js → SwapController-CJSfh-mR.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-BxMNbfPx.js → W3MFrameProviderSingleton-BocmJdyW.js} +3 -3
- package/assets/{biconomy-BJE2U7EA.js → biconomy-DDYTEovS.js} +1 -1
- package/assets/{browser-Bpeu3q3_.js → browser-DtA1iGET.js} +1 -1
- package/assets/browser-ponyfill-Nb_5PKPO.js +1 -0
- package/assets/{ccip-Br7uKwD7.js → ccip-Cls81NUZ.js} +1 -1
- package/assets/{ccip-C_yWSr_i.js → ccip-D-IlJFu_.js} +1 -1
- package/assets/{chains-UbQzoHVE.js → chains-6VsvPhKC.js} +1 -1
- package/assets/{common-CrHMbhlW.js → common-DFM5OWHL.js} +1 -1
- package/assets/{controller-DbA-TxZR.js → controller-Bl_MPuC4.js} +2 -2
- package/assets/{data-capture-Bnd0k_fw.js → data-capture-X5Mf2Qoa.js} +1 -1
- package/assets/{email-JqiPEAcW.js → email-HDTfmK4C.js} +1 -1
- package/assets/{embedded-wallet-YeHD1GKa.js → embedded-wallet-CMV8lWTB.js} +1 -1
- package/assets/{engine-BaeCEjpB.js → engine-DoG7SCFM.js} +1 -1
- package/assets/{estimate-l1-fee-BJ1jyZIi.js → estimate-l1-fee-BBmB0mvh.js} +1 -1
- package/assets/{ethereum-DdXSE558.js → ethereum-DVP4Atgo.js} +1 -1
- package/assets/{extractIPFS-CXo4rGs5.js → extractIPFS-dC87FCbF.js} +1 -1
- package/assets/{features-D_oILY36.js → features-B_P5QAUC.js} +1 -1
- package/assets/{fetchTokenMetadata-FqsgBcWZ.js → fetchTokenMetadata-DL6Gbtxx.js} +1 -1
- package/assets/{fortmatic-B8VPG6wq.js → fortmatic-DydcY1cL.js} +1 -1
- package/assets/{get-ecosystem-wallet-info-CkoTnxYu.js → get-ecosystem-wallet-info-CsLInMQo.js} +1 -1
- package/assets/{getBalance-BBREXab6.js → getBalance-DtwITx47.js} +1 -1
- package/assets/{getInstalledModules-SzkatVK7.js → getInstalledModules-BNFqYqcn.js} +1 -1
- package/assets/{getNFT-BxGHCl2n.js → getNFT-BgQWQfdm.js} +1 -1
- package/assets/{getNFT-DBhPvj1r.js → getNFT-D5BqU6GU.js} +2 -2
- package/assets/{if-defined-0oqEUHFB.js → if-defined-DUohvO5V.js} +1 -1
- package/assets/{in-app-BcumEtll.js → in-app-rHBiV1-L.js} +2 -2
- package/assets/{in-app-wallet-calls-EmYOZODz.js → in-app-wallet-calls-DuUU9868.js} +1 -1
- package/assets/{index-_HFlbxGn.js → index--YIYpyo9.js} +1 -1
- package/assets/{index-BgbQNK92.js → index-2HNTJL6G.js} +1 -1
- package/assets/{index-D-i6mqdk.js → index-6Fpt2zZw.js} +2 -2
- package/assets/{index-deWcHo3H.js → index-B2C-8ONi.js} +1 -1
- package/assets/{index-BHzgRwg1.js → index-BAlxm-qQ.js} +2 -2
- package/assets/{index-CzgyaIvu.js → index-BHREycPk.js} +1 -1
- package/assets/{index--EzhqM4s.js → index-BJKTN3fZ.js} +1 -1
- package/assets/{index-ZK7nlbEC.js → index-BMRcjULh.js} +1 -1
- package/assets/{index-BwUdV_8x.js → index-BQAz_bkv.js} +1 -1
- package/assets/{index-D6YLIZcL.js → index-BZPzhMxI.js} +1 -1
- package/assets/{index-BB9Kkir_.css → index-B_fE_8wi.css} +1 -1
- package/assets/{index-BWZn22uL.js → index-Be4Gc4pU.js} +3 -3
- package/assets/{index-BqTOGQil.js → index-Bi2SrRD3.js} +1 -1
- package/assets/{index-CQsmmJcH.js → index-Bpa11_Gz.js} +1 -1
- package/assets/{index-DbYJHGnX.js → index-Bq8alsp4.js} +1 -1
- package/assets/{index-CGxhSlsI.js → index-BrjikWJo.js} +12 -12
- package/assets/{index-PhLR7Exo.js → index-BsbeuIQs.js} +1 -1
- package/assets/{index-BsvMDcwH.js → index-Bw8YcLUQ.js} +1 -1
- package/assets/{index-D5gUfQ5q.js → index-C03_gX71.js} +1 -1
- package/assets/{index-BC_o8PxR.js → index-C1rZSnuU.js} +1 -1
- package/assets/{index-BvKvFizd.js → index-C3EsNm0L.js} +1 -1
- package/assets/{index-Cbz0CZAp.js → index-C3T37ZwO.js} +1 -1
- package/assets/{index-HJ3_ow7H.js → index-CCQJdEsd.js} +1 -1
- package/assets/{index-yBJ3PQin.js → index-CD6YKi-4.js} +1 -1
- package/assets/{index-BQuaC5KF.js → index-CN8Emqbp.js} +1 -1
- package/assets/{index-DJ1SmuWF.js → index-CXf9heLl.js} +1 -1
- package/assets/{index-baorVScf.js → index-D1isKCM4.js} +3 -3
- package/assets/{index-Dl-scGJu.js → index-D6L1etNM.js} +1 -1
- package/assets/{index-BDvpOcDC.js → index-DDTcK-qU.js} +1 -1
- package/assets/{index-BhqPaUFL.js → index-DEDY4tq2.js} +1 -1
- package/assets/{index-CoNGN7CD.js → index-DLC_CweH.js} +1 -1
- package/assets/{index-NYaAuDSf.js → index-DSBZH4iY.js} +1 -1
- package/assets/{index-B2WUItg1.js → index-DTvwD9S0.js} +1 -1
- package/assets/{index-Dpd_bhsE.js → index-DWjwKnh8.js} +3 -3
- package/assets/{index-DZSoVsRk.js → index-Dgm3ttZY.js} +1 -1
- package/assets/{index-DKFzZMaX.js → index-Dj5uImB2.js} +1 -1
- package/assets/{index-D59oVZiW.js → index-DnneMju0.js} +1 -1
- package/assets/{index-oAiqI9Ar.js → index-DnuQi5WI.js} +1 -1
- package/assets/{index-Dk-ImyEu.js → index-DodOW1Wt.js} +1 -1
- package/assets/{index-DDC57BVv.js → index-Ds72qZSZ.js} +1 -1
- package/assets/{index-C_pTPRm2.js → index-JzEB5g04.js} +1 -1
- package/assets/{index-DHRKXsr3.js → index-XBQ5Br_v.js} +1 -1
- package/assets/{index-DsacemoS.js → index-YAfFJt2_.js} +1 -1
- package/assets/{index-DRJvpa_W.js → index-_dxkXQSu.js} +1 -1
- package/assets/{index-Cys_5Bhg.js → index-cDF4M3wz.js} +1 -1
- package/assets/{index-2FDFXAWK.js → index-e1u8n10M.js} +1 -1
- package/assets/{index-H7wNWiVt.js → index-fl6qKDcH.js} +1 -1
- package/assets/{index-CuKWw6vW.js → index-tNxiIPfs.js} +1 -1
- package/assets/{index-BiI2BEO7.js → index-zjUSMdGN.js} +1 -1
- package/assets/{index.es-zrPfhTv0.js → index.es-B01KqDbC.js} +1 -1
- package/assets/{index.es-CUsVEfHR.js → index.es-x9-iTI-5.js} +1 -1
- package/assets/{linkAccount-BPrG5HSI.js → linkAccount-CWWS9njK.js} +1 -1
- package/assets/{native-D12x3LA9.js → native-CaPYzoa_.js} +1 -1
- package/assets/{networks-CRzW5a4q.js → networks-DGAoWb-A.js} +3 -3
- package/assets/{onramp-AMIM7KKc.js → onramp-7o3aBeIm.js} +1 -1
- package/assets/{openzeppelin-Ct4_3LRT.js → openzeppelin-DGbz_rk9.js} +1 -1
- package/assets/{ownerOf-DglQCSM2.js → ownerOf-D9skLcOE.js} +1 -1
- package/assets/{parseNft-BWBRCOWR.js → parseNft-CHZtZ4_y.js} +2 -2
- package/assets/{pay-with-exchange-CUZyyVLl.js → pay-with-exchange-D2lDJF_V.js} +1 -1
- package/assets/{qr-overlay-D6Az0daL.js → qr-overlay-CiJMrATX.js} +3 -3
- package/assets/{receive-wWXvft83.js → receive-c1uDVl1c.js} +1 -1
- package/assets/{ref-CJfwWNVZ.js → ref-Ba1Lu66V.js} +1 -1
- package/assets/{resolveImplementation-DFvWM0MO.js → resolveImplementation-CKe673d_.js} +1 -1
- package/assets/{secp256k1-Bv9ZY-83.js → secp256k1-GsuJbDQC.js} +1 -1
- package/assets/{send-BVfKyPP1.js → send-AACpSoKu.js} +1 -1
- package/assets/{send-eip712-transaction-x8xPKvlC.js → send-eip712-transaction-GQGQjcsY.js} +1 -1
- package/assets/{send-gasless-transaction-C5RVYRle.js → send-gasless-transaction-ghMFE10K.js} +2 -2
- package/assets/{session-proposal-DLZ1JyDZ.js → session-proposal-CePlUwzE.js} +1 -1
- package/assets/{session-request-CWSm7c_r.js → session-request-CsOrPe7h.js} +2 -2
- package/assets/{socials-ByyYpGvv.js → socials-gcOsIlac.js} +1 -1
- package/assets/{swaps-BwbbjzzI.js → swaps-B6DbBvl9.js} +1 -1
- package/assets/{thirdweb-CeukVEkJ.js → thirdweb-B6-3DUyb.js} +5 -5
- package/assets/{totalSupply-BLsSDC8g.js → totalSupply-CBuBUeFj.js} +1 -1
- package/assets/{transactions-CgYiBfEU.js → transactions-CewnQNUl.js} +1 -1
- package/assets/{ui-CAKbhuN_.js → ui-DF3UBKHP.js} +5 -5
- package/assets/{vendor-C6eUiik6.js → vendor-EnciFPIR.js} +1 -1
- package/assets/{w3m-modal-BAKTo8cm.js → w3m-modal-Cx14K2WR.js} +1 -1
- package/assets/{wallets-DiPNABk8.js → wallets-BuQNLf7I.js} +4 -4
- package/assets/{web-connector-Bjoow8ky.js → web-connector-CAmR4wmW.js} +3 -3
- package/index.html +5 -5
- package/package.json +3 -3
- package/assets/browser-ponyfill-DmZVnpQm.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as u,r as h,e as f,i as p,h as g}from"./index-
|
|
1
|
+
import{d as u,r as h,e as f,i as p,h as g}from"./index-D1isKCM4.js";import{n as d,c as m}from"./index-Bq8alsp4.js";import{o as b}from"./if-defined-DUohvO5V.js";const y=u`
|
|
2
2
|
:host {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as T}from"./index-CpWZ5dtQ.js";import{b3 as y,b4 as k,b5 as I}from"./index-
|
|
1
|
+
import{r as T}from"./index-CpWZ5dtQ.js";import{b3 as y,b4 as k,b5 as I}from"./index-BrjikWJo.js";import"./thirdweb-B6-3DUyb.js";import"./ui-DF3UBKHP.js";import"./vendor-EnciFPIR.js";const q=()=>"9.1.0",v=t=>t.toString(16).padStart(2,"0"),C=t=>{const e=new Uint8Array(t/2);return window.crypto.getRandomValues(e),Array.from(e,v).join("")},R=()=>typeof window<"u"?C(10):new Date().getTime().toString(36);class g{}g.makeRequest=(t,e)=>({id:R(),method:t,params:e,env:{sdkVersion:q()}});g.makeResponse=(t,e,s)=>({id:t,success:!0,version:s,data:e});g.makeErrorResponse=(t,e,s)=>({id:t,success:!1,error:e,version:s});var r;(function(t){t.sendTransactions="sendTransactions",t.rpcCall="rpcCall",t.getChainInfo="getChainInfo",t.getSafeInfo="getSafeInfo",t.getTxBySafeTxHash="getTxBySafeTxHash",t.getSafeBalances="getSafeBalances",t.signMessage="signMessage",t.signTypedMessage="signTypedMessage",t.getEnvironmentInfo="getEnvironmentInfo",t.getOffChainSignature="getOffChainSignature",t.requestAddressBook="requestAddressBook",t.wallet_getPermissions="wallet_getPermissions",t.wallet_requestPermissions="wallet_requestPermissions"})(r||(r={}));var m;(function(t){t.requestAddressBook="requestAddressBook"})(m||(m={}));class H{constructor(e=null,s=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:a,data:n,source:i})=>{const o=!n,l=!this.isServer&&i===window.parent,u=typeof n.version<"u"&&parseInt(n.version.split(".")[0]),B=typeof u=="number"&&u>=1;let p=!0;return Array.isArray(this.allowedOrigins)&&(p=this.allowedOrigins.find(P=>P.test(a))!==void 0),!o&&l&&B&&p},this.logIncomingMessage=a=>{console.info(`Safe Apps SDK v1: A message was received from origin ${a.origin}. `,a.data)},this.onParentMessage=a=>{this.isValidMessage(a)&&(this.debugMode&&this.logIncomingMessage(a),this.handleIncomingMessage(a.data))},this.handleIncomingMessage=a=>{const{id:n}=a,i=this.callbacks.get(n);i&&(i(a),this.callbacks.delete(n))},this.send=(a,n)=>{const i=g.makeRequest(a,n);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(i,"*"),new Promise((o,l)=>{this.callbacks.set(i.id,u=>{if(!u.success){l(new Error(u.error));return}o(u)})})},this.allowedOrigins=e,this.debugMode=s,this.isServer||window.addEventListener("message",this.onParentMessage)}}const b=t=>typeof t=="object"&&t!=null&&"domain"in t&&"types"in t&&"message"in t;T();class E{constructor(e){this.communicator=e}async getBySafeTxHash(e){if(!e)throw new Error("Invalid safeTxHash");return(await this.communicator.send(r.getTxBySafeTxHash,{safeTxHash:e})).data}async signMessage(e){const s={message:e};return(await this.communicator.send(r.signMessage,s)).data}async signTypedMessage(e){if(!b(e))throw new Error("Invalid typed data");return(await this.communicator.send(r.signTypedMessage,{typedData:e})).data}async send({txs:e,params:s}){if(!e||!e.length)throw new Error("No transactions were passed");const a={txs:e,params:s};return(await this.communicator.send(r.sendTransactions,a)).data}}const c={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"},h={defaultBlockParam:(t="latest")=>t,returnFullTxObjectParam:(t=!1)=>t,blockNumberToHex:t=>Number.isInteger(t)?`0x${t.toString(16)}`:t};class A{constructor(e){this.communicator=e,this.call=this.buildRequest({call:c.eth_call,formatters:[null,h.defaultBlockParam]}),this.getBalance=this.buildRequest({call:c.eth_getBalance,formatters:[null,h.defaultBlockParam]}),this.getCode=this.buildRequest({call:c.eth_getCode,formatters:[null,h.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:c.eth_getStorageAt,formatters:[null,h.blockNumberToHex,h.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:c.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:c.eth_getBlockByHash,formatters:[null,h.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:c.eth_getBlockByNumber,formatters:[h.blockNumberToHex,h.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:c.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:c.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:c.eth_getTransactionCount,formatters:[null,h.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:c.eth_gasPrice}),this.getEstimateGas=s=>this.buildRequest({call:c.eth_estimateGas})([s]),this.setSafeSettings=this.buildRequest({call:c.safe_setSettings})}buildRequest(e){const{call:s,formatters:a}=e;return async n=>{a&&Array.isArray(n)&&a.forEach((l,u)=>{l&&(n[u]=l(n[u]))});const i={call:s,params:n||[]};return(await this.communicator.send(r.rpcCall,i)).data}}}const x="0x1626ba7e",O="0x20c13b0b",f=4001;class d extends Error{constructor(e,s,a){super(e),this.code=s,this.data=a,Object.setPrototypeOf(this,d.prototype)}}class S{constructor(e){this.communicator=e}async getPermissions(){return(await this.communicator.send(r.wallet_getPermissions,void 0)).data}async requestPermissions(e){if(!this.isPermissionRequestValid(e))throw new d("Permissions request is invalid",f);try{return(await this.communicator.send(r.wallet_requestPermissions,e)).data}catch{throw new d("Permissions rejected",f)}}isPermissionRequestValid(e){return e.every(s=>typeof s=="object"?Object.keys(s).every(a=>!!Object.values(m).includes(a)):!1)}}const w=(t,e)=>e.some(s=>s.parentCapability===t),V=()=>(t,e,s)=>{const a=s.value;return s.value=async function(){const n=new S(this.communicator);let i=await n.getPermissions();if(w(e,i)||(i=await n.requestPermissions([{[e]:{}}])),!w(e,i))throw new d("Permissions rejected",f);return a.apply(this)},s};var M=function(t,e,s,a){var n=arguments.length,i=n<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,s):a,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,s,a);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(i=(n<3?o(i):n>3?o(e,s,i):o(e,s))||i);return n>3&&i&&Object.defineProperty(e,s,i),i};class _{constructor(e){this.communicator=e}async getChainInfo(){return(await this.communicator.send(r.getChainInfo,void 0)).data}async getInfo(){return(await this.communicator.send(r.getSafeInfo,void 0)).data}async experimental_getBalances({currency:e="usd"}={}){return(await this.communicator.send(r.getSafeBalances,{currency:e})).data}async check1271Signature(e,s="0x"){const a=await this.getInfo(),n=y({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,s]}),i={call:c.eth_call,params:[{to:a.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(r.rpcCall,i)).data.slice(0,10).toLowerCase()===x}catch{return!1}}async check1271SignatureBytes(e,s="0x"){const a=await this.getInfo(),n=y({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,s]}),i={call:c.eth_call,params:[{to:a.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(r.rpcCall,i)).data.slice(0,10).toLowerCase()===O}catch{return!1}}calculateMessageHash(e){return k(e)}calculateTypedMessageHash(e){const s=typeof e.domain.chainId=="object"?e.domain.chainId.toNumber():Number(e.domain.chainId);let a=e.primaryType;if(!a){const n=Object.values(e.types),i=Object.keys(e.types).filter(o=>n.every(l=>l.every(({type:u})=>u.replace("[","").replace("]","")!==o)));if(i.length===0||i.length>1)throw new Error("Please specify primaryType");a=i[0]}return I({message:e.message,domain:{...e.domain,chainId:s,verifyingContract:e.domain.verifyingContract,salt:e.domain.salt},types:e.types,primaryType:a})}async getOffChainSignature(e){return(await this.communicator.send(r.getOffChainSignature,e)).data}async isMessageSigned(e,s="0x"){let a;if(typeof e=="string"&&(a=async()=>{const n=this.calculateMessageHash(e);return await this.isMessageHashSigned(n,s)}),b(e)&&(a=async()=>{const n=this.calculateTypedMessageHash(e);return await this.isMessageHashSigned(n,s)}),a)return await a();throw new Error("Invalid message type")}async isMessageHashSigned(e,s="0x"){const a=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(const n of a)if(await n(e,s))return!0;return!1}async getEnvironmentInfo(){return(await this.communicator.send(r.getEnvironmentInfo,void 0)).data}async requestAddressBook(){return(await this.communicator.send(r.requestAddressBook,void 0)).data}}M([V()],_.prototype,"requestAddressBook",null);class G{constructor(e={}){const{allowedDomains:s=null,debug:a=!1}=e;this.communicator=new H(s,a),this.eth=new A(this.communicator),this.txs=new E(this.communicator),this.safe=new _(this.communicator),this.wallet=new S(this.communicator)}}export{g as MessageFormatter,r as Methods,c as RPC_CALLS,m as RestrictedMethods,G as default,q as getSDKVersion,b as isObjectEIP712TypedData};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as l,E as g,R as h,i as m,S as w,a as c,r as E,k as _}from"./W3MFrameProviderSingleton-
|
|
1
|
+
import{C as l,E as g,R as h,i as m,S as w,a as c,r as E,k as _}from"./W3MFrameProviderSingleton-BocmJdyW.js";import{C as R}from"./NetworkUtil-wJaKVJLn.js";import{d as y,r as b,i as C,h as v,e as O}from"./index-D1isKCM4.js";import{n as d,c as S}from"./index-Bq8alsp4.js";import{o as $}from"./if-defined-DUohvO5V.js";function I(){try{return c.returnOpenHref(`${R.SECURE_SITE_SDK_ORIGIN}/loading`,"popupWindow","width=600,height=800,scrollbars=yes")}catch{throw new Error("Could not open social popup")}}async function L(){h.push("ConnectingFarcaster");const e=m.getAuthConnector();if(e){const o=l.getAccountData();if(!(o!=null&&o.farcasterUrl))try{const{url:t}=await e.provider.getFarcasterUri();l.setAccountProp("farcasterUrl",t,l.state.activeChain)}catch(t){h.goBack(),w.showError(t)}}}async function T(e){h.push("ConnectingSocial");const o=m.getAuthConnector();let t=null;try{const i=setTimeout(()=>{throw new Error("Social login timed out. Please try again.")},45e3);if(o&&e){if(c.isTelegram()||(t=I()),t)l.setAccountProp("socialWindow",E(t),l.state.activeChain);else if(!c.isTelegram())throw new Error("Could not create social popup");const{uri:n}=await o.provider.getSocialRedirectUri({provider:e});if(!n)throw t==null||t.close(),new Error("Could not fetch the social redirect uri");if(t&&(t.location.href=n),c.isTelegram()){_.setTelegramSocialProvider(e);const r=c.formatTelegramSocialLoginUrl(n);c.openHref(r,"_top")}clearTimeout(i)}}catch(i){t==null||t.close();const n=c.parseError(i);w.showError(n),g.sendEvent({type:"track",event:"SOCIAL_LOGIN_ERROR",properties:{provider:e,message:n}})}}async function F(e){l.setAccountProp("socialProvider",e,l.state.activeChain),g.sendEvent({type:"track",event:"SOCIAL_LOGIN_STARTED",properties:{provider:e}}),e==="farcaster"?await L():await T(e)}const U=y`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as B,c as v,p as w}from"./thirdweb-
|
|
1
|
+
import{a as B,c as v,p as w}from"./thirdweb-B6-3DUyb.js";var m={};/*! *****************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation.
|
|
3
3
|
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as v,r as _,e as W,i as f,h as l,j as ee}from"./index-
|
|
1
|
+
import{d as v,r as _,e as W,i as f,h as l,j as ee}from"./index-D1isKCM4.js";import{n as c,c as p,U as F,r as u,b as Ii}from"./index-Bq8alsp4.js";import{o as w}from"./if-defined-DUohvO5V.js";import"./index-e1u8n10M.js";import"./index-CN8Emqbp.js";import"./index-DEDY4tq2.js";import{C as d,O as m,D as Ee,j as S,a as y,M as P,E as C,k as me,i as b,R as h,b as D,S as A,d as x,e as ze,W as Fe,a4 as Xt,a3 as he,U as J,L as qi,q as I,a8 as tt,A as _i,u as Ki,t as Gi,o as Xi,T as ft,F as Yt,G as Qt,a6 as Yi,ad as Qi,I as Bt,ae as Ji}from"./W3MFrameProviderSingleton-BocmJdyW.js";import"./index-BsbeuIQs.js";import{a as Ps,W as Ds}from"./index-D6L1etNM.js";import"./index-DDTcK-qU.js";import"./index-CXf9heLl.js";import"./index-zjUSMdGN.js";import{C as E}from"./NetworkUtil-wJaKVJLn.js";import{H as Jt}from"./HelpersUtil-BEYLlBvJ.js";import{n as Zi}from"./index-BZPzhMxI.js";import{E as Q}from"./ExchangeController-2EREmGS6.js";import"./index-DnneMju0.js";import"./index-XBQ5Br_v.js";import"./index-CD6YKi-4.js";import{M as mt}from"./MathUtil-BGCe3rZ3.js";import"./index-DodOW1Wt.js";import{e as Zt,n as ei}from"./ref-Ba1Lu66V.js";import"./index-C3T37ZwO.js";import"./index-cDF4M3wz.js";import"./index-DnuQi5WI.js";import"./index-Ds72qZSZ.js";import{O as bt}from"./index-BQAz_bkv.js";import{e as en}from"./index-C03_gX71.js";import"./index-B2C-8ONi.js";import"./index-2HNTJL6G.js";import{N as tn}from"./NavigationUtil-DmfK5sOV.js";import"./index-BJKTN3fZ.js";import"./thirdweb-B6-3DUyb.js";import"./ui-DF3UBKHP.js";import"./vendor-EnciFPIR.js";import"./index-BrjikWJo.js";import"./index-DLC_CweH.js";import"./index-C1rZSnuU.js";import"./index-nibyPLVP.js";import"./index.es-x9-iTI-5.js";import"./browser-ponyfill-Nb_5PKPO.js";import"./fromHex-CMtWckFK.js";import"./ConstantsUtil-C8ECmZhU.js";import"./browser-DtA1iGET.js";const nn=v`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as c,r as h,e as m,i as b,h as a}from"./index-
|
|
1
|
+
import{d as c,r as h,e as m,i as b,h as a}from"./index-D1isKCM4.js";import{n as o,c as x}from"./index-Bq8alsp4.js";import{o as f}from"./if-defined-DUohvO5V.js";import{e as $,n as g}from"./ref-Ba1Lu66V.js";const w=c`
|
|
2
2
|
:host {
|
|
3
3
|
position: relative;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as u,r as g,e as m,i as p,h as n}from"./index-
|
|
1
|
+
import{d as u,r as g,e as m,i as p,h as n}from"./index-D1isKCM4.js";import{n as r,c as x}from"./index-Bq8alsp4.js";import"./index-e1u8n10M.js";import"./index-cDF4M3wz.js";const b=u`
|
|
2
2
|
button {
|
|
3
3
|
display: block;
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as b,i as g,h as m,d as v}from"./index-
|
|
1
|
+
import{j as b,i as g,h as m,d as v}from"./index-D1isKCM4.js";import{n as y,r as h,c as w}from"./index-Bq8alsp4.js";import{w as x,p as $,s as R,c as T,R as C,M as P}from"./W3MFrameProviderSingleton-BocmJdyW.js";const a=$({message:"",open:!1,triggerRect:{width:0,height:0,top:0,left:0},variant:"shade"}),_={state:a,subscribe(t){return T(a,()=>t(a))},subscribeKey(t,e){return R(a,t,e)},showTooltip({message:t,triggerRect:e,variant:o}){a.open=!0,a.message=t,a.triggerRect=e,a.variant=o},hide(){a.open=!1,a.message="",a.triggerRect={width:0,height:0,top:0,left:0}}},s=x(_),j=b`
|
|
2
2
|
:host {
|
|
3
3
|
width: 100%;
|
|
4
4
|
display: block;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as d,r as p,i as m,v as r,h as x}from"./index-
|
|
1
|
+
import{j as d,r as p,i as m,v as r,h as x}from"./index-D1isKCM4.js";import{n as h,c as f}from"./index-Bq8alsp4.js";const g=d`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as h,r as m,e as g,i as y,h as d}from"./index-
|
|
1
|
+
import{d as h,r as m,e as g,i as y,h as d}from"./index-D1isKCM4.js";import{n as i,c as b}from"./index-Bq8alsp4.js";import{o as c}from"./if-defined-DUohvO5V.js";import"./index-CN8Emqbp.js";const f=h`
|
|
2
2
|
:host {
|
|
3
3
|
width: 100%;
|
|
4
4
|
}
|