@dcl/governance-site 2.1.1 → 2.1.2-21396561927.commit-5f7c81e
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/{BlockOverrides-b253ac3c.js → BlockOverrides-303f7e9f.js} +5 -5
- package/assets/{ConstantsUtil-8392393d.js → ConstantsUtil-a131dde8.js} +1 -1
- package/assets/ContentfulRichText-16284a17.js +1 -0
- package/assets/{ExchangeController-8312cbac.js → ExchangeController-a14191f2.js} +1 -1
- package/assets/{HelpersUtil-422d6b63.js → HelpersUtil-2b99f8bd.js} +1 -1
- package/assets/{NetworkUtil-f04f30f1.js → NetworkUtil-c907cd4d.js} +1 -1
- package/assets/{ReownAuthentication-95163b2a.js → ReownAuthentication-b2c2d543.js} +1 -1
- package/assets/{SwapController-a78fa27a.js → SwapController-cd0f257b.js} +1 -1
- package/assets/{UserAvatar-ba80ecc0.js → UserAvatar-fd309664.js} +1 -1
- package/assets/__vite-optional-peer-dep_lottie-react_decentraland-ui2-b25bb000.js +1 -0
- package/assets/{ccip-afcae892.js → ccip-44049d54.js} +1 -1
- package/assets/{data-capture-a3e503e9.js → data-capture-7e26f0ce.js} +1 -1
- package/assets/{email-707c1fd2.js → email-8a377eee.js} +1 -1
- package/assets/{embedded-wallet-5cdc1540.js → embedded-wallet-0fb24cc2.js} +1 -1
- package/assets/features-7aff3cdd.js +1 -0
- package/assets/{fortmatic-c27206e9.js → fortmatic-19aac1db.js} +1 -1
- package/assets/{if-defined-7c3cfad4.js → if-defined-5ecb5632.js} +1 -1
- package/assets/{index-1912ccb5.js → index-02cebb5e.js} +208 -211
- package/assets/{index-3beb72c7.js → index-0687b660.js} +1 -1
- package/assets/{index-2a442cfb.js → index-088190d3.js} +1 -1
- package/assets/{index-3d9f7aa4.js → index-12ec15f0.js} +1 -1
- package/assets/{index-c1960f8b.js → index-15da260e.js} +1 -1
- package/assets/{index-11611d06.js → index-1ef89fbf.js} +1 -1
- package/assets/{index-25743d75.js → index-2428c92d.js} +1 -1
- package/assets/{index-24f70ec2.js → index-304c2025.js} +1 -1
- package/assets/{index-0d9e7a1b.js → index-45573641.js} +1 -1
- package/assets/{index-a6ebc22c.js → index-4795bc6d.js} +1 -1
- package/assets/{index-d606cdd8.js → index-52bd0c54.js} +3 -2
- package/assets/{index-f1b0fa49.js → index-557ac282.js} +1 -1
- package/assets/{index-8a1e4e8f.js → index-5b7f5468.js} +1 -1
- package/assets/{index-50d289a7.js → index-5db900d2.js} +1 -1
- package/assets/{index-378e1ef5.js → index-61219cbe.js} +46 -43
- package/assets/{index-29524bff.js → index-67af3d9f.js} +1 -1
- package/assets/{index-0155e9d0.js → index-6a478a1a.js} +1 -1
- package/assets/{index-674cfbc1.js → index-6aa35c4c.js} +1 -1
- package/assets/{index-6b3f1dc3.js → index-6d67eda0.js} +1 -1
- package/assets/{index-c4bd5468.js → index-6efd5958.js} +1 -1
- package/assets/{index-d3a32d19.js → index-7cb264a1.js} +1 -1
- package/assets/index-863e8fd6.js +277 -0
- package/assets/{index-b079bc07.js → index-906aeedb.js} +39 -39
- package/assets/{index-e65926ac.js → index-91e7b718.js} +1 -1
- package/assets/{index-88b3d2d0.js → index-9c5f86d3.js} +1 -1
- package/assets/{index-9b4b1d43.js → index-9ed03248.js} +1 -1
- package/assets/{index-033dbcb1.js → index-a30fd37b.js} +1 -1
- package/assets/index-b249573f.js +43 -0
- package/assets/{index-3aca6a72.js → index-b612aba6.js} +1 -1
- package/assets/{index-cae81f79.css → index-bad2d6e3.css} +4 -4
- package/assets/{index-327f2bbb.js → index-bfa1b0b2.js} +1 -1
- package/assets/{index-66b13afd.js → index-bfcb1eaf.js} +2 -2
- package/assets/{index-e4a556a6.js → index-cdede9c1.js} +1 -1
- package/assets/{index-e66b5a2a.js → index-d4cf6fd5.js} +1 -1
- package/assets/{index-628f4c66.js → index-e0285d09.js} +1 -1
- package/assets/{index-a1f961e2.js → index-e82b1bf2.js} +1 -1
- package/assets/networks-f92d44f1.js +1 -0
- package/assets/{onramp-e920d24b.js → onramp-531cac52.js} +1 -1
- package/assets/{pay-with-exchange-591f2a34.js → pay-with-exchange-7c86030c.js} +1 -1
- package/assets/{receive-731a2ffa.js → receive-168aa468.js} +1 -1
- package/assets/{ref-27933252.js → ref-f07b284a.js} +1 -1
- package/assets/rich-text-react-renderer_decentraland-ui2-b25bb000.js +1 -0
- package/assets/{send-40d251c3.js → send-d84e8cd4.js} +28 -28
- package/assets/{socials-4e758372.js → socials-a7521156.js} +1 -1
- package/assets/{swaps-62f6ad92.js → swaps-35bf1db5.js} +1 -1
- package/assets/{transactions-6223734a.js → transactions-ffdabf4e.js} +1 -1
- package/assets/{tslib.es6-08ac7de7.js → tslib.es6-f2b18d1b.js} +1 -1
- package/assets/{w3m-modal-caef023e.js → w3m-modal-c647dc65.js} +1 -1
- package/assets/zoraTestnet-bea7fe0f.js +36 -0
- package/index.html +4 -4
- package/package.json +3 -3
- package/assets/features-eaf3f10e.js +0 -1
- package/assets/index-139e0e8d.js +0 -277
- package/assets/index-7a343a6c.js +0 -43
- package/assets/networks-afe9d5a8.js +0 -1
- package/assets/zoraTestnet-f8dce652.js +0 -36
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as ot,l as st,m as w,r as Tt,C as ht,a2 as F,h as gt,R as Ot,E as At,y as Ct,W as Ft,O as Nt}from"./index-139e0e8d.js";import{U as vt,n as I,r as Q,c as at}from"./index-378e1ef5.js";import{c as mt,g as ft}from"./index-1912ccb5.js";import"./index-9b4b1d43.js";import"./index-a6ebc22c.js";import{o as Rt}from"./if-defined-7c3cfad4.js";import"./index-a1f961e2.js";import"./index-3aca6a72.js";var _t={exports:{}};(function(t,e){(function(i,r){t.exports=r()})(mt,function(){var i=1e3,r=6e4,o=36e5,n="millisecond",s="second",u="minute",g="hour",h="day",y="week",$="month",L="quarter",D="year",N="date",Y="Invalid Date",X=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,tt=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,et={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(p){var l=["th","st","nd","rd"],a=p%100;return"["+p+(l[(a-20)%10]||l[a]||l[0])+"]"}},it=function(p,l,a){var d=String(p);return!d||d.length>=l?p:""+Array(l+1-d.length).join(a)+p},B={s:it,z:function(p){var l=-p.utcOffset(),a=Math.abs(l),d=Math.floor(a/60),c=a%60;return(l<=0?"+":"-")+it(d,2,"0")+":"+it(c,2,"0")},m:function p(l,a){if(l.date()<a.date())return-p(a,l);var d=12*(a.year()-l.year())+(a.month()-l.month()),c=l.clone().add(d,$),m=a-c<0,f=l.clone().add(d+(m?-1:1),$);return+(-(d+(a-c)/(m?c-f:f-c))||0)},a:function(p){return p<0?Math.ceil(p)||0:Math.floor(p)},p:function(p){return{M:$,y:D,w:y,d:h,D:N,h:g,m:u,s,ms:n,Q:L}[p]||String(p||"").toLowerCase().replace(/s$/,"")},u:function(p){return p===void 0}},S="en",O={};O[S]=et;var V="$isDayjsObject",W=function(p){return p instanceof lt||!(!p||!p[V])},ct=function p(l,a,d){var c;if(!l)return S;if(typeof l=="string"){var m=l.toLowerCase();O[m]&&(c=m),a&&(O[m]=a,c=m);var f=l.split("-");if(!c&&f.length>1)return p(f[0])}else{var b=l.name;O[b]=l,c=b}return!d&&c&&(S=c),c||!d&&S},T=function(p,l){if(W(p))return p.clone();var a=typeof l=="object"?l:{};return a.date=p,a.args=arguments,new lt(a)},x=B;x.l=ct,x.i=W,x.w=function(p,l){return T(p,{locale:l.$L,utc:l.$u,x:l.$x,$offset:l.$offset})};var lt=function(){function p(a){this.$L=ct(a.locale,null,!0),this.parse(a),this.$x=this.$x||a.x||{},this[V]=!0}var l=p.prototype;return l.parse=function(a){this.$d=function(d){var c=d.date,m=d.utc;if(c===null)return new Date(NaN);if(x.u(c))return new Date;if(c instanceof Date)return new Date(c);if(typeof c=="string"&&!/Z$/i.test(c)){var f=c.match(X);if(f){var b=f[2]-1||0,v=(f[7]||"0").substring(0,3);return m?new Date(Date.UTC(f[1],b,f[3]||1,f[4]||0,f[5]||0,f[6]||0,v)):new Date(f[1],b,f[3]||1,f[4]||0,f[5]||0,f[6]||0,v)}}return new Date(c)}(a),this.init()},l.init=function(){var a=this.$d;this.$y=a.getFullYear(),this.$M=a.getMonth(),this.$D=a.getDate(),this.$W=a.getDay(),this.$H=a.getHours(),this.$m=a.getMinutes(),this.$s=a.getSeconds(),this.$ms=a.getMilliseconds()},l.$utils=function(){return x},l.isValid=function(){return this.$d.toString()!==Y},l.isSame=function(a,d){var c=T(a);return this.startOf(d)<=c&&c<=this.endOf(d)},l.isAfter=function(a,d){return T(a)<this.startOf(d)},l.isBefore=function(a,d){return this.endOf(d)<T(a)},l.$g=function(a,d,c){return x.u(a)?this[d]:this.set(c,a)},l.unix=function(){return Math.floor(this.valueOf()/1e3)},l.valueOf=function(){return this.$d.getTime()},l.startOf=function(a,d){var c=this,m=!!x.u(d)||d,f=x.p(a),b=function(H,A){var z=x.w(c.$u?Date.UTC(c.$y,A,H):new Date(c.$y,A,H),c);return m?z:z.endOf(h)},v=function(H,A){return x.w(c.toDate()[H].apply(c.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(A)),c)},_=this.$W,M=this.$M,C=this.$D,J="set"+(this.$u?"UTC":"");switch(f){case D:return m?b(1,0):b(31,11);case $:return m?b(1,M):b(0,M+1);case y:var P=this.$locale().weekStart||0,rt=(_<P?_+7:_)-P;return b(m?C-rt:C+(6-rt),M);case h:case N:return v(J+"Hours",0);case g:return v(J+"Minutes",1);case u:return v(J+"Seconds",2);case s:return v(J+"Milliseconds",3);default:return this.clone()}},l.endOf=function(a){return this.startOf(a,!1)},l.$set=function(a,d){var c,m=x.p(a),f="set"+(this.$u?"UTC":""),b=(c={},c[h]=f+"Date",c[N]=f+"Date",c[$]=f+"Month",c[D]=f+"FullYear",c[g]=f+"Hours",c[u]=f+"Minutes",c[s]=f+"Seconds",c[n]=f+"Milliseconds",c)[m],v=m===h?this.$D+(d-this.$W):d;if(m===$||m===D){var _=this.clone().set(N,1);_.$d[b](v),_.init(),this.$d=_.set(N,Math.min(this.$D,_.daysInMonth())).$d}else b&&this.$d[b](v);return this.init(),this},l.set=function(a,d){return this.clone().$set(a,d)},l.get=function(a){return this[x.p(a)]()},l.add=function(a,d){var c,m=this;a=Number(a);var f=x.p(d),b=function(M){var C=T(m);return x.w(C.date(C.date()+Math.round(M*a)),m)};if(f===$)return this.set($,this.$M+a);if(f===D)return this.set(D,this.$y+a);if(f===h)return b(1);if(f===y)return b(7);var v=(c={},c[u]=r,c[g]=o,c[s]=i,c)[f]||1,_=this.$d.getTime()+a*v;return x.w(_,this)},l.subtract=function(a,d){return this.add(-1*a,d)},l.format=function(a){var d=this,c=this.$locale();if(!this.isValid())return c.invalidDate||Y;var m=a||"YYYY-MM-DDTHH:mm:ssZ",f=x.z(this),b=this.$H,v=this.$m,_=this.$M,M=c.weekdays,C=c.months,J=c.meridiem,P=function(A,z,nt,dt){return A&&(A[z]||A(d,m))||nt[z].slice(0,dt)},rt=function(A){return x.s(b%12||12,A,"0")},H=J||function(A,z,nt){var dt=A<12?"AM":"PM";return nt?dt.toLowerCase():dt};return m.replace(tt,function(A,z){return z||function(nt){switch(nt){case"YY":return String(d.$y).slice(-2);case"YYYY":return x.s(d.$y,4,"0");case"M":return _+1;case"MM":return x.s(_+1,2,"0");case"MMM":return P(c.monthsShort,_,C,3);case"MMMM":return P(C,_);case"D":return d.$D;case"DD":return x.s(d.$D,2,"0");case"d":return String(d.$W);case"dd":return P(c.weekdaysMin,d.$W,M,2);case"ddd":return P(c.weekdaysShort,d.$W,M,3);case"dddd":return M[d.$W];case"H":return String(b);case"HH":return x.s(b,2,"0");case"h":return rt(1);case"hh":return rt(2);case"a":return H(b,v,!0);case"A":return H(b,v,!1);case"m":return String(v);case"mm":return x.s(v,2,"0");case"s":return String(d.$s);case"ss":return x.s(d.$s,2,"0");case"SSS":return x.s(d.$ms,3,"0");case"Z":return f}return null}(A)||f.replace(":","")})},l.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},l.diff=function(a,d,c){var m,f=this,b=x.p(d),v=T(a),_=(v.utcOffset()-this.utcOffset())*r,M=this-v,C=function(){return x.m(f,v)};switch(b){case D:m=C()/12;break;case $:m=C();break;case L:m=C()/3;break;case y:m=(M-_)/6048e5;break;case h:m=(M-_)/864e5;break;case g:m=M/o;break;case u:m=M/r;break;case s:m=M/i;break;default:m=M}return c?m:x.a(m)},l.daysInMonth=function(){return this.endOf($).$D},l.$locale=function(){return O[this.$L]},l.locale=function(a,d){if(!a)return this.$L;var c=this.clone(),m=ct(a,d,!0);return m&&(c.$L=m),c},l.clone=function(){return x.w(this.$d,this)},l.toDate=function(){return new Date(this.valueOf())},l.toJSON=function(){return this.isValid()?this.toISOString():null},l.toISOString=function(){return this.$d.toISOString()},l.toString=function(){return this.$d.toUTCString()},p}(),$t=lt.prototype;return T.prototype=$t,[["$ms",n],["$s",s],["$m",u],["$H",g],["$W",h],["$M",$],["$y",D],["$D",N]].forEach(function(p){$t[p[1]]=function(l){return this.$g(l,p[0],p[1])}}),T.extend=function(p,l){return p.$i||(p(l,lt,T),p.$i=!0),T},T.locale=ct,T.isDayjs=W,T.unix=function(p){return T(1e3*p)},T.en=O[S],T.Ls=O,T.p={},T})})(_t);var jt=_t.exports;const K=ft(jt);var It={exports:{}};(function(t,e){(function(i,r){t.exports=r()})(mt,function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(i){var r=["th","st","nd","rd"],o=i%100;return"["+i+(r[(o-20)%10]||r[o]||r[0])+"]"}}})})(It);var Lt=It.exports;const kt=ft(Lt);var Mt={exports:{}};(function(t,e){(function(i,r){t.exports=r()})(mt,function(){return function(i,r,o){i=i||{};var n=r.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function u(h,y,$,L){return n.fromToBase(h,y,$,L)}o.en.relativeTime=s,n.fromToBase=function(h,y,$,L,D){for(var N,Y,X,tt=$.$locale().relativeTime||s,et=i.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],it=et.length,B=0;B<it;B+=1){var S=et[B];S.d&&(N=L?o(h).diff($,S.d,!0):$.diff(h,S.d,!0));var O=(i.rounding||Math.round)(Math.abs(N));if(X=N>0,O<=S.r||!S.r){O<=1&&B>0&&(S=et[B-1]);var V=tt[S.l];D&&(O=D(""+O)),Y=typeof V=="string"?V.replace("%d",O):V(O,y,S.l,X);break}}if(y)return Y;var W=X?tt.future:tt.past;return typeof W=="function"?W(Y):W.replace("%s",Y)},n.to=function(h,y){return u(h,y,this,!0)},n.from=function(h,y){return u(h,y,this)};var g=function(h){return h.$u?o.utc():o()};n.toNow=function(h){return this.to(g(this),h)},n.fromNow=function(h){return this.from(g(this),h)}}})})(Mt);var zt=Mt.exports;const Ut=ft(zt);var St={exports:{}};(function(t,e){(function(i,r){t.exports=r()})(mt,function(){return function(i,r,o){o.updateLocale=function(n,s){var u=o.Ls[n];if(u)return(s?Object.keys(s):[]).forEach(function(g){u[g]=s[g]}),u}}})})(St);var Et=St.exports;const Yt=ft(Et);K.extend(Ut);K.extend(Yt);const Bt={...kt,name:"en-web3-modal",relativeTime:{future:"in %s",past:"%s ago",s:"%d sec",m:"1 min",mm:"%d min",h:"1 hr",hh:"%d hrs",d:"1 d",dd:"%d d",M:"1 mo",MM:"%d mo",y:"1 yr",yy:"%d yr"}},Wt=["January","February","March","April","May","June","July","August","September","October","November","December"];K.locale("en-web3-modal",Bt);const yt={getMonthNameByIndex(t){return Wt[t]},getYear(t=new Date().toISOString()){return K(t).year()},getRelativeDateFromNow(t){return K(t).locale("en-web3-modal").fromNow(!0)},formatDate(t,e="DD MMM"){return K(t).format(e)}},Pt=3,pt=.1,Ht=["receive","deposit","borrow","claim"],Gt=["withdraw","repay","burn"],Z={getTransactionGroupTitle(t,e){const i=yt.getYear(),r=yt.getMonthNameByIndex(e);return t===i?r:`${r} ${t}`},getTransactionImages(t){const[e]=t;return(t==null?void 0:t.length)>1?t.map(r=>this.getTransactionImage(r)):[this.getTransactionImage(e)]},getTransactionImage(t){return{type:Z.getTransactionTransferTokenType(t),url:Z.getTransactionImageURL(t)}},getTransactionImageURL(t){var o,n,s,u,g;let e;const i=!!(t!=null&&t.nft_info),r=!!(t!=null&&t.fungible_info);return t&&i?e=(s=(n=(o=t==null?void 0:t.nft_info)==null?void 0:o.content)==null?void 0:n.preview)==null?void 0:s.url:t&&r&&(e=(g=(u=t==null?void 0:t.fungible_info)==null?void 0:u.icon)==null?void 0:g.url),e},getTransactionTransferTokenType(t){if(t!=null&&t.fungible_info)return"FUNGIBLE";if(t!=null&&t.nft_info)return"NFT"},getTransactionDescriptions(t,e){var L;const i=(L=t==null?void 0:t.metadata)==null?void 0:L.operationType,r=e||(t==null?void 0:t.transfers),o=r&&r.length>0,n=r&&r.length>1,s=o&&r.every(D=>!!(D!=null&&D.fungible_info)),[u,g]=r||[];let h=this.getTransferDescription(u),y=this.getTransferDescription(g);if(!o)return(i==="send"||i==="receive")&&s?(h=vt.getTruncateString({string:t==null?void 0:t.metadata.sentFrom,charsStart:4,charsEnd:6,truncate:"middle"}),y=vt.getTruncateString({string:t==null?void 0:t.metadata.sentTo,charsStart:4,charsEnd:6,truncate:"middle"}),[h,y]):[t.metadata.status];if(n)return r==null?void 0:r.map(D=>this.getTransferDescription(D));let $="";return Ht.includes(i)?$="+":Gt.includes(i)&&($="-"),h=$.concat(h),[h]},getTransferDescription(t){var i;let e="";return t&&(t!=null&&t.nft_info?e=((i=t==null?void 0:t.nft_info)==null?void 0:i.name)||"-":t!=null&&t.fungible_info&&(e=this.getFungibleTransferDescription(t)||"-")),e},getFungibleTransferDescription(t){var r;return t?[this.getQuantityFixedValue(t==null?void 0:t.quantity.numeric),(r=t==null?void 0:t.fungible_info)==null?void 0:r.symbol].join(" ").trim():null},mergeTransfers(t){if((t==null?void 0:t.length)<=1)return t;const i=this.filterGasFeeTransfers(t).reduce((o,n)=>{var g;const s=(g=n==null?void 0:n.fungible_info)==null?void 0:g.name,u=o.find(({fungible_info:h,direction:y})=>s&&s===(h==null?void 0:h.name)&&y===n.direction);if(u){const h=Number(u.quantity.numeric)+Number(n.quantity.numeric);u.quantity.numeric=h.toString(),u.value=(u.value||0)+(n.value||0)}else o.push(n);return o},[]);let r=i;return i.length>2&&(r=i.sort((o,n)=>(n.value||0)-(o.value||0)).slice(0,2)),r=r.sort((o,n)=>o.direction==="out"&&n.direction==="in"?-1:o.direction==="in"&&n.direction==="out"?1:0),r},filterGasFeeTransfers(t){const e=t==null?void 0:t.reduce((r,o)=>{var s;const n=(s=o==null?void 0:o.fungible_info)==null?void 0:s.name;return n&&(r[n]||(r[n]=[]),r[n].push(o)),r},{}),i=[];return Object.values(e??{}).forEach(r=>{if(r.length===1){const o=r[0];o&&i.push(o)}else{const o=r.filter(s=>s.direction==="in"),n=r.filter(s=>s.direction==="out");if(o.length===1&&n.length===1){const s=o[0],u=n[0];let g=!1;if(s&&u){const h=Number(s.quantity.numeric),y=Number(u.quantity.numeric);y<h*pt?(i.push(s),g=!0):h<y*pt&&(i.push(u),g=!0)}g||i.push(...r)}else{const s=this.filterGasFeesFromTokenGroup(r);i.push(...s)}}}),t==null||t.forEach(r=>{var o;(o=r==null?void 0:r.fungible_info)!=null&&o.name||i.push(r)}),i},filterGasFeesFromTokenGroup(t){if(t.length<=1)return t;const e=t==null?void 0:t.map(u=>Number(u.quantity.numeric)),i=Math.max(...e),r=Math.min(...e),o=.01;if(r<i*o)return t==null?void 0:t.filter(g=>Number(g.quantity.numeric)>=i*o);const n=t==null?void 0:t.filter(u=>u.direction==="in"),s=t==null?void 0:t.filter(u=>u.direction==="out");if(n.length===1&&s.length===1){const u=n[0],g=s[0];if(u&&g){const h=Number(u.quantity.numeric),y=Number(g.quantity.numeric);if(y<h*pt)return[u];if(h<y*pt)return[g]}}return t},getQuantityFixedValue(t){return t?parseFloat(t).toFixed(Pt):null}};var xt;(function(t){t.approve="approved",t.bought="bought",t.borrow="borrowed",t.burn="burnt",t.cancel="canceled",t.claim="claimed",t.deploy="deployed",t.deposit="deposited",t.execute="executed",t.mint="minted",t.receive="received",t.repay="repaid",t.send="sent",t.sell="sold",t.stake="staked",t.trade="swapped",t.unstake="unstaked",t.withdraw="withdrawn"})(xt||(xt={}));const qt=ot`
|
|
1
|
+
import{j as ot,l as st,m as w,r as Tt,C as ht,a2 as F,h as gt,R as Ot,E as At,y as Ct,W as Ft,O as Nt}from"./index-863e8fd6.js";import{U as vt,n as I,r as Q,c as at}from"./index-61219cbe.js";import{c as mt,g as ft}from"./index-02cebb5e.js";import"./index-9ed03248.js";import"./index-4795bc6d.js";import{o as Rt}from"./if-defined-5ecb5632.js";import"./index-e82b1bf2.js";import"./index-b612aba6.js";var _t={exports:{}};(function(t,e){(function(i,r){t.exports=r()})(mt,function(){var i=1e3,r=6e4,o=36e5,n="millisecond",s="second",u="minute",g="hour",h="day",y="week",$="month",L="quarter",D="year",N="date",Y="Invalid Date",X=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,tt=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,et={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(p){var l=["th","st","nd","rd"],a=p%100;return"["+p+(l[(a-20)%10]||l[a]||l[0])+"]"}},it=function(p,l,a){var d=String(p);return!d||d.length>=l?p:""+Array(l+1-d.length).join(a)+p},B={s:it,z:function(p){var l=-p.utcOffset(),a=Math.abs(l),d=Math.floor(a/60),c=a%60;return(l<=0?"+":"-")+it(d,2,"0")+":"+it(c,2,"0")},m:function p(l,a){if(l.date()<a.date())return-p(a,l);var d=12*(a.year()-l.year())+(a.month()-l.month()),c=l.clone().add(d,$),m=a-c<0,f=l.clone().add(d+(m?-1:1),$);return+(-(d+(a-c)/(m?c-f:f-c))||0)},a:function(p){return p<0?Math.ceil(p)||0:Math.floor(p)},p:function(p){return{M:$,y:D,w:y,d:h,D:N,h:g,m:u,s,ms:n,Q:L}[p]||String(p||"").toLowerCase().replace(/s$/,"")},u:function(p){return p===void 0}},S="en",O={};O[S]=et;var V="$isDayjsObject",W=function(p){return p instanceof lt||!(!p||!p[V])},ct=function p(l,a,d){var c;if(!l)return S;if(typeof l=="string"){var m=l.toLowerCase();O[m]&&(c=m),a&&(O[m]=a,c=m);var f=l.split("-");if(!c&&f.length>1)return p(f[0])}else{var b=l.name;O[b]=l,c=b}return!d&&c&&(S=c),c||!d&&S},T=function(p,l){if(W(p))return p.clone();var a=typeof l=="object"?l:{};return a.date=p,a.args=arguments,new lt(a)},x=B;x.l=ct,x.i=W,x.w=function(p,l){return T(p,{locale:l.$L,utc:l.$u,x:l.$x,$offset:l.$offset})};var lt=function(){function p(a){this.$L=ct(a.locale,null,!0),this.parse(a),this.$x=this.$x||a.x||{},this[V]=!0}var l=p.prototype;return l.parse=function(a){this.$d=function(d){var c=d.date,m=d.utc;if(c===null)return new Date(NaN);if(x.u(c))return new Date;if(c instanceof Date)return new Date(c);if(typeof c=="string"&&!/Z$/i.test(c)){var f=c.match(X);if(f){var b=f[2]-1||0,v=(f[7]||"0").substring(0,3);return m?new Date(Date.UTC(f[1],b,f[3]||1,f[4]||0,f[5]||0,f[6]||0,v)):new Date(f[1],b,f[3]||1,f[4]||0,f[5]||0,f[6]||0,v)}}return new Date(c)}(a),this.init()},l.init=function(){var a=this.$d;this.$y=a.getFullYear(),this.$M=a.getMonth(),this.$D=a.getDate(),this.$W=a.getDay(),this.$H=a.getHours(),this.$m=a.getMinutes(),this.$s=a.getSeconds(),this.$ms=a.getMilliseconds()},l.$utils=function(){return x},l.isValid=function(){return this.$d.toString()!==Y},l.isSame=function(a,d){var c=T(a);return this.startOf(d)<=c&&c<=this.endOf(d)},l.isAfter=function(a,d){return T(a)<this.startOf(d)},l.isBefore=function(a,d){return this.endOf(d)<T(a)},l.$g=function(a,d,c){return x.u(a)?this[d]:this.set(c,a)},l.unix=function(){return Math.floor(this.valueOf()/1e3)},l.valueOf=function(){return this.$d.getTime()},l.startOf=function(a,d){var c=this,m=!!x.u(d)||d,f=x.p(a),b=function(H,A){var z=x.w(c.$u?Date.UTC(c.$y,A,H):new Date(c.$y,A,H),c);return m?z:z.endOf(h)},v=function(H,A){return x.w(c.toDate()[H].apply(c.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(A)),c)},_=this.$W,M=this.$M,C=this.$D,J="set"+(this.$u?"UTC":"");switch(f){case D:return m?b(1,0):b(31,11);case $:return m?b(1,M):b(0,M+1);case y:var P=this.$locale().weekStart||0,rt=(_<P?_+7:_)-P;return b(m?C-rt:C+(6-rt),M);case h:case N:return v(J+"Hours",0);case g:return v(J+"Minutes",1);case u:return v(J+"Seconds",2);case s:return v(J+"Milliseconds",3);default:return this.clone()}},l.endOf=function(a){return this.startOf(a,!1)},l.$set=function(a,d){var c,m=x.p(a),f="set"+(this.$u?"UTC":""),b=(c={},c[h]=f+"Date",c[N]=f+"Date",c[$]=f+"Month",c[D]=f+"FullYear",c[g]=f+"Hours",c[u]=f+"Minutes",c[s]=f+"Seconds",c[n]=f+"Milliseconds",c)[m],v=m===h?this.$D+(d-this.$W):d;if(m===$||m===D){var _=this.clone().set(N,1);_.$d[b](v),_.init(),this.$d=_.set(N,Math.min(this.$D,_.daysInMonth())).$d}else b&&this.$d[b](v);return this.init(),this},l.set=function(a,d){return this.clone().$set(a,d)},l.get=function(a){return this[x.p(a)]()},l.add=function(a,d){var c,m=this;a=Number(a);var f=x.p(d),b=function(M){var C=T(m);return x.w(C.date(C.date()+Math.round(M*a)),m)};if(f===$)return this.set($,this.$M+a);if(f===D)return this.set(D,this.$y+a);if(f===h)return b(1);if(f===y)return b(7);var v=(c={},c[u]=r,c[g]=o,c[s]=i,c)[f]||1,_=this.$d.getTime()+a*v;return x.w(_,this)},l.subtract=function(a,d){return this.add(-1*a,d)},l.format=function(a){var d=this,c=this.$locale();if(!this.isValid())return c.invalidDate||Y;var m=a||"YYYY-MM-DDTHH:mm:ssZ",f=x.z(this),b=this.$H,v=this.$m,_=this.$M,M=c.weekdays,C=c.months,J=c.meridiem,P=function(A,z,nt,dt){return A&&(A[z]||A(d,m))||nt[z].slice(0,dt)},rt=function(A){return x.s(b%12||12,A,"0")},H=J||function(A,z,nt){var dt=A<12?"AM":"PM";return nt?dt.toLowerCase():dt};return m.replace(tt,function(A,z){return z||function(nt){switch(nt){case"YY":return String(d.$y).slice(-2);case"YYYY":return x.s(d.$y,4,"0");case"M":return _+1;case"MM":return x.s(_+1,2,"0");case"MMM":return P(c.monthsShort,_,C,3);case"MMMM":return P(C,_);case"D":return d.$D;case"DD":return x.s(d.$D,2,"0");case"d":return String(d.$W);case"dd":return P(c.weekdaysMin,d.$W,M,2);case"ddd":return P(c.weekdaysShort,d.$W,M,3);case"dddd":return M[d.$W];case"H":return String(b);case"HH":return x.s(b,2,"0");case"h":return rt(1);case"hh":return rt(2);case"a":return H(b,v,!0);case"A":return H(b,v,!1);case"m":return String(v);case"mm":return x.s(v,2,"0");case"s":return String(d.$s);case"ss":return x.s(d.$s,2,"0");case"SSS":return x.s(d.$ms,3,"0");case"Z":return f}return null}(A)||f.replace(":","")})},l.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},l.diff=function(a,d,c){var m,f=this,b=x.p(d),v=T(a),_=(v.utcOffset()-this.utcOffset())*r,M=this-v,C=function(){return x.m(f,v)};switch(b){case D:m=C()/12;break;case $:m=C();break;case L:m=C()/3;break;case y:m=(M-_)/6048e5;break;case h:m=(M-_)/864e5;break;case g:m=M/o;break;case u:m=M/r;break;case s:m=M/i;break;default:m=M}return c?m:x.a(m)},l.daysInMonth=function(){return this.endOf($).$D},l.$locale=function(){return O[this.$L]},l.locale=function(a,d){if(!a)return this.$L;var c=this.clone(),m=ct(a,d,!0);return m&&(c.$L=m),c},l.clone=function(){return x.w(this.$d,this)},l.toDate=function(){return new Date(this.valueOf())},l.toJSON=function(){return this.isValid()?this.toISOString():null},l.toISOString=function(){return this.$d.toISOString()},l.toString=function(){return this.$d.toUTCString()},p}(),$t=lt.prototype;return T.prototype=$t,[["$ms",n],["$s",s],["$m",u],["$H",g],["$W",h],["$M",$],["$y",D],["$D",N]].forEach(function(p){$t[p[1]]=function(l){return this.$g(l,p[0],p[1])}}),T.extend=function(p,l){return p.$i||(p(l,lt,T),p.$i=!0),T},T.locale=ct,T.isDayjs=W,T.unix=function(p){return T(1e3*p)},T.en=O[S],T.Ls=O,T.p={},T})})(_t);var jt=_t.exports;const K=ft(jt);var It={exports:{}};(function(t,e){(function(i,r){t.exports=r()})(mt,function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(i){var r=["th","st","nd","rd"],o=i%100;return"["+i+(r[(o-20)%10]||r[o]||r[0])+"]"}}})})(It);var Lt=It.exports;const kt=ft(Lt);var Mt={exports:{}};(function(t,e){(function(i,r){t.exports=r()})(mt,function(){return function(i,r,o){i=i||{};var n=r.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function u(h,y,$,L){return n.fromToBase(h,y,$,L)}o.en.relativeTime=s,n.fromToBase=function(h,y,$,L,D){for(var N,Y,X,tt=$.$locale().relativeTime||s,et=i.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],it=et.length,B=0;B<it;B+=1){var S=et[B];S.d&&(N=L?o(h).diff($,S.d,!0):$.diff(h,S.d,!0));var O=(i.rounding||Math.round)(Math.abs(N));if(X=N>0,O<=S.r||!S.r){O<=1&&B>0&&(S=et[B-1]);var V=tt[S.l];D&&(O=D(""+O)),Y=typeof V=="string"?V.replace("%d",O):V(O,y,S.l,X);break}}if(y)return Y;var W=X?tt.future:tt.past;return typeof W=="function"?W(Y):W.replace("%s",Y)},n.to=function(h,y){return u(h,y,this,!0)},n.from=function(h,y){return u(h,y,this)};var g=function(h){return h.$u?o.utc():o()};n.toNow=function(h){return this.to(g(this),h)},n.fromNow=function(h){return this.from(g(this),h)}}})})(Mt);var zt=Mt.exports;const Ut=ft(zt);var St={exports:{}};(function(t,e){(function(i,r){t.exports=r()})(mt,function(){return function(i,r,o){o.updateLocale=function(n,s){var u=o.Ls[n];if(u)return(s?Object.keys(s):[]).forEach(function(g){u[g]=s[g]}),u}}})})(St);var Et=St.exports;const Yt=ft(Et);K.extend(Ut);K.extend(Yt);const Bt={...kt,name:"en-web3-modal",relativeTime:{future:"in %s",past:"%s ago",s:"%d sec",m:"1 min",mm:"%d min",h:"1 hr",hh:"%d hrs",d:"1 d",dd:"%d d",M:"1 mo",MM:"%d mo",y:"1 yr",yy:"%d yr"}},Wt=["January","February","March","April","May","June","July","August","September","October","November","December"];K.locale("en-web3-modal",Bt);const yt={getMonthNameByIndex(t){return Wt[t]},getYear(t=new Date().toISOString()){return K(t).year()},getRelativeDateFromNow(t){return K(t).locale("en-web3-modal").fromNow(!0)},formatDate(t,e="DD MMM"){return K(t).format(e)}},Pt=3,pt=.1,Ht=["receive","deposit","borrow","claim"],Gt=["withdraw","repay","burn"],Z={getTransactionGroupTitle(t,e){const i=yt.getYear(),r=yt.getMonthNameByIndex(e);return t===i?r:`${r} ${t}`},getTransactionImages(t){const[e]=t;return(t==null?void 0:t.length)>1?t.map(r=>this.getTransactionImage(r)):[this.getTransactionImage(e)]},getTransactionImage(t){return{type:Z.getTransactionTransferTokenType(t),url:Z.getTransactionImageURL(t)}},getTransactionImageURL(t){var o,n,s,u,g;let e;const i=!!(t!=null&&t.nft_info),r=!!(t!=null&&t.fungible_info);return t&&i?e=(s=(n=(o=t==null?void 0:t.nft_info)==null?void 0:o.content)==null?void 0:n.preview)==null?void 0:s.url:t&&r&&(e=(g=(u=t==null?void 0:t.fungible_info)==null?void 0:u.icon)==null?void 0:g.url),e},getTransactionTransferTokenType(t){if(t!=null&&t.fungible_info)return"FUNGIBLE";if(t!=null&&t.nft_info)return"NFT"},getTransactionDescriptions(t,e){var L;const i=(L=t==null?void 0:t.metadata)==null?void 0:L.operationType,r=e||(t==null?void 0:t.transfers),o=r&&r.length>0,n=r&&r.length>1,s=o&&r.every(D=>!!(D!=null&&D.fungible_info)),[u,g]=r||[];let h=this.getTransferDescription(u),y=this.getTransferDescription(g);if(!o)return(i==="send"||i==="receive")&&s?(h=vt.getTruncateString({string:t==null?void 0:t.metadata.sentFrom,charsStart:4,charsEnd:6,truncate:"middle"}),y=vt.getTruncateString({string:t==null?void 0:t.metadata.sentTo,charsStart:4,charsEnd:6,truncate:"middle"}),[h,y]):[t.metadata.status];if(n)return r==null?void 0:r.map(D=>this.getTransferDescription(D));let $="";return Ht.includes(i)?$="+":Gt.includes(i)&&($="-"),h=$.concat(h),[h]},getTransferDescription(t){var i;let e="";return t&&(t!=null&&t.nft_info?e=((i=t==null?void 0:t.nft_info)==null?void 0:i.name)||"-":t!=null&&t.fungible_info&&(e=this.getFungibleTransferDescription(t)||"-")),e},getFungibleTransferDescription(t){var r;return t?[this.getQuantityFixedValue(t==null?void 0:t.quantity.numeric),(r=t==null?void 0:t.fungible_info)==null?void 0:r.symbol].join(" ").trim():null},mergeTransfers(t){if((t==null?void 0:t.length)<=1)return t;const i=this.filterGasFeeTransfers(t).reduce((o,n)=>{var g;const s=(g=n==null?void 0:n.fungible_info)==null?void 0:g.name,u=o.find(({fungible_info:h,direction:y})=>s&&s===(h==null?void 0:h.name)&&y===n.direction);if(u){const h=Number(u.quantity.numeric)+Number(n.quantity.numeric);u.quantity.numeric=h.toString(),u.value=(u.value||0)+(n.value||0)}else o.push(n);return o},[]);let r=i;return i.length>2&&(r=i.sort((o,n)=>(n.value||0)-(o.value||0)).slice(0,2)),r=r.sort((o,n)=>o.direction==="out"&&n.direction==="in"?-1:o.direction==="in"&&n.direction==="out"?1:0),r},filterGasFeeTransfers(t){const e=t==null?void 0:t.reduce((r,o)=>{var s;const n=(s=o==null?void 0:o.fungible_info)==null?void 0:s.name;return n&&(r[n]||(r[n]=[]),r[n].push(o)),r},{}),i=[];return Object.values(e??{}).forEach(r=>{if(r.length===1){const o=r[0];o&&i.push(o)}else{const o=r.filter(s=>s.direction==="in"),n=r.filter(s=>s.direction==="out");if(o.length===1&&n.length===1){const s=o[0],u=n[0];let g=!1;if(s&&u){const h=Number(s.quantity.numeric),y=Number(u.quantity.numeric);y<h*pt?(i.push(s),g=!0):h<y*pt&&(i.push(u),g=!0)}g||i.push(...r)}else{const s=this.filterGasFeesFromTokenGroup(r);i.push(...s)}}}),t==null||t.forEach(r=>{var o;(o=r==null?void 0:r.fungible_info)!=null&&o.name||i.push(r)}),i},filterGasFeesFromTokenGroup(t){if(t.length<=1)return t;const e=t==null?void 0:t.map(u=>Number(u.quantity.numeric)),i=Math.max(...e),r=Math.min(...e),o=.01;if(r<i*o)return t==null?void 0:t.filter(g=>Number(g.quantity.numeric)>=i*o);const n=t==null?void 0:t.filter(u=>u.direction==="in"),s=t==null?void 0:t.filter(u=>u.direction==="out");if(n.length===1&&s.length===1){const u=n[0],g=s[0];if(u&&g){const h=Number(u.quantity.numeric),y=Number(g.quantity.numeric);if(y<h*pt)return[u];if(h<y*pt)return[g]}}return t},getQuantityFixedValue(t){return t?parseFloat(t).toFixed(Pt):null}};var xt;(function(t){t.approve="approved",t.bought="bought",t.borrow="borrowed",t.burn="burnt",t.cancel="canceled",t.claim="claimed",t.deploy="deployed",t.deposit="deposited",t.execute="executed",t.mint="minted",t.receive="received",t.repay="repaid",t.send="sent",t.sell="sold",t.stake="staked",t.trade="swapped",t.unstake="unstaked",t.withdraw="withdrawn"})(xt||(xt={}));const qt=ot`
|
|
2
2
|
:host > wui-flex {
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as d,r as m,k as c,l as f,v,m as h}from"./index-
|
|
1
|
+
import{j as d,r as m,k as c,l as f,v,m as h}from"./index-863e8fd6.js";import{n as r,c as y,U as b}from"./index-61219cbe.js";import{e as g,n as w}from"./ref-f07b284a.js";const x=d`
|
|
2
2
|
:host {
|
|
3
3
|
position: relative;
|
|
4
4
|
display: inline-block;
|
|
@@ -9,7 +9,7 @@ import{j as d,r as m,k as c,l as f,v,m as h}from"./index-139e0e8d.js";import{n a
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
:host([data-error='false']) > input {
|
|
12
|
-
color: ${({tokens:t})=>t.theme.
|
|
12
|
+
color: ${({tokens:t})=>t.theme.textPrimary};
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
input {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as m,r as c,l as f,m as d}from"./index-
|
|
1
|
+
import{n as m,r as c,l as f,m as d}from"./index-863e8fd6.js";import{n as p,c as b}from"./index-61219cbe.js";import{o as h}from"./if-defined-5ecb5632.js";import"./index-91e7b718.js";const v=m`
|
|
2
2
|
:host {
|
|
3
3
|
position: relative;
|
|
4
4
|
display: inline-block;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as v,s as C,a as T,j as k,r as y,l as m,m as d,O as l}from"./index-
|
|
1
|
+
import{p as v,s as C,a as T,j as k,r as y,l as m,m as d,O as l}from"./index-863e8fd6.js";import{n as b,c as g,r as O}from"./index-61219cbe.js";import{o as _}from"./if-defined-5ecb5632.js";import{e as j,n as L}from"./ref-f07b284a.js";const h=v({isLegalCheckboxChecked:!1}),f={state:h,subscribe(e){return C(h,()=>e(h))},subscribeKey(e,t){return T(h,e,t)},setIsLegalCheckboxChecked(e){h.isLegalCheckboxChecked=e}},R=k`
|
|
2
2
|
label {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{U as Q,j as Ft,r as $t,l as zt,m as Y}from"./index-
|
|
1
|
+
import{U as Q,j as Ft,r as $t,l as zt,m as Y}from"./index-863e8fd6.js";import{n as U,c as Vt}from"./index-61219cbe.js";import"./index-e82b1bf2.js";var K={},Ot=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Bt={},I={};let ht;const Ht=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];I.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};I.getSymbolTotalCodewords=function(e){return Ht[e]};I.getBCHDigit=function(t){let e=0;for(;t!==0;)e++,t>>>=1;return e};I.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');ht=e};I.isKanjiModeEnabled=function(){return typeof ht<"u"};I.toSJIS=function(e){return ht(e)};var x={};(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+i)}}t.isValid=function(o){return o&&typeof o.bit<"u"&&o.bit>=0&&o.bit<4},t.from=function(o,r){if(t.isValid(o))return o;try{return e(o)}catch{return r}}})(x);function At(){this.buffer=[],this.length=0}At.prototype={get:function(t){const e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(let i=0;i<e;i++)this.putBit((t>>>e-i-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var Kt=At;function J(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}J.prototype.set=function(t,e,i,o){const r=t*this.size+e;this.data[r]=i,o&&(this.reservedBit[r]=!0)};J.prototype.get=function(t,e){return this.data[t*this.size+e]};J.prototype.xor=function(t,e,i){this.data[t*this.size+e]^=i};J.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var Jt=J,bt={};(function(t){const e=I.getSymbolSize;t.getRowColCoords=function(o){if(o===1)return[];const r=Math.floor(o/7)+2,n=e(o),s=n===145?26:Math.ceil((n-13)/(2*r-2))*2,a=[n-7];for(let u=1;u<r-1;u++)a[u]=a[u-1]-s;return a.push(6),a.reverse()},t.getPositions=function(o){const r=[],n=t.getRowColCoords(o),s=n.length;for(let a=0;a<s;a++)for(let u=0;u<s;u++)a===0&&u===0||a===0&&u===s-1||a===s-1&&u===0||r.push([n[a],n[u]]);return r}})(bt);var It={};const Yt=I.getSymbolSize,yt=7;It.getPositions=function(e){const i=Yt(e);return[[0,0],[i-yt,0],[0,i-yt]]};var Nt={};(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};t.isValid=function(r){return r!=null&&r!==""&&!isNaN(r)&&r>=0&&r<=7},t.from=function(r){return t.isValid(r)?parseInt(r,10):void 0},t.getPenaltyN1=function(r){const n=r.size;let s=0,a=0,u=0,d=null,g=null;for(let B=0;B<n;B++){a=u=0,d=g=null;for(let p=0;p<n;p++){let w=r.get(B,p);w===d?a++:(a>=5&&(s+=e.N1+(a-5)),d=w,a=1),w=r.get(p,B),w===g?u++:(u>=5&&(s+=e.N1+(u-5)),g=w,u=1)}a>=5&&(s+=e.N1+(a-5)),u>=5&&(s+=e.N1+(u-5))}return s},t.getPenaltyN2=function(r){const n=r.size;let s=0;for(let a=0;a<n-1;a++)for(let u=0;u<n-1;u++){const d=r.get(a,u)+r.get(a,u+1)+r.get(a+1,u)+r.get(a+1,u+1);(d===4||d===0)&&s++}return s*e.N2},t.getPenaltyN3=function(r){const n=r.size;let s=0,a=0,u=0;for(let d=0;d<n;d++){a=u=0;for(let g=0;g<n;g++)a=a<<1&2047|r.get(d,g),g>=10&&(a===1488||a===93)&&s++,u=u<<1&2047|r.get(g,d),g>=10&&(u===1488||u===93)&&s++}return s*e.N3},t.getPenaltyN4=function(r){let n=0;const s=r.data.length;for(let u=0;u<s;u++)n+=r.data[u];return Math.abs(Math.ceil(n*100/s/5)-10)*e.N4};function i(o,r,n){switch(o){case t.Patterns.PATTERN000:return(r+n)%2===0;case t.Patterns.PATTERN001:return r%2===0;case t.Patterns.PATTERN010:return n%3===0;case t.Patterns.PATTERN011:return(r+n)%3===0;case t.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(n/3))%2===0;case t.Patterns.PATTERN101:return r*n%2+r*n%3===0;case t.Patterns.PATTERN110:return(r*n%2+r*n%3)%2===0;case t.Patterns.PATTERN111:return(r*n%3+(r+n)%2)%2===0;default:throw new Error("bad maskPattern:"+o)}}t.applyMask=function(r,n){const s=n.size;for(let a=0;a<s;a++)for(let u=0;u<s;u++)n.isReserved(u,a)||n.xor(u,a,i(r,u,a))},t.getBestMask=function(r,n){const s=Object.keys(t.Patterns).length;let a=0,u=1/0;for(let d=0;d<s;d++){n(d),t.applyMask(d,r);const g=t.getPenaltyN1(r)+t.getPenaltyN2(r)+t.getPenaltyN3(r)+t.getPenaltyN4(r);t.applyMask(d,r),g<u&&(u=g,a=d)}return a}})(Nt);var X={};const _=x,j=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],G=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];X.getBlocksCount=function(e,i){switch(i){case _.L:return j[(e-1)*4+0];case _.M:return j[(e-1)*4+1];case _.Q:return j[(e-1)*4+2];case _.H:return j[(e-1)*4+3];default:return}};X.getTotalCodewordsCount=function(e,i){switch(i){case _.L:return G[(e-1)*4+0];case _.M:return G[(e-1)*4+1];case _.Q:return G[(e-1)*4+2];case _.H:return G[(e-1)*4+3];default:return}};var Tt={},Z={};const O=new Uint8Array(512),q=new Uint8Array(256);(function(){let e=1;for(let i=0;i<255;i++)O[i]=e,q[e]=i,e<<=1,e&256&&(e^=285);for(let i=255;i<512;i++)O[i]=O[i-255]})();Z.log=function(e){if(e<1)throw new Error("log("+e+")");return q[e]};Z.exp=function(e){return O[e]};Z.mul=function(e,i){return e===0||i===0?0:O[q[e]+q[i]]};(function(t){const e=Z;t.mul=function(o,r){const n=new Uint8Array(o.length+r.length-1);for(let s=0;s<o.length;s++)for(let a=0;a<r.length;a++)n[s+a]^=e.mul(o[s],r[a]);return n},t.mod=function(o,r){let n=new Uint8Array(o);for(;n.length-r.length>=0;){const s=n[0];for(let u=0;u<r.length;u++)n[u]^=e.mul(r[u],s);let a=0;for(;a<n.length&&n[a]===0;)a++;n=n.slice(a)}return n},t.generateECPolynomial=function(o){let r=new Uint8Array([1]);for(let n=0;n<o;n++)r=t.mul(r,new Uint8Array([1,e.exp(n)]));return r}})(Tt);const St=Tt;function dt(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}dt.prototype.initialize=function(e){this.degree=e,this.genPoly=St.generateECPolynomial(this.degree)};dt.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const i=new Uint8Array(e.length+this.degree);i.set(e);const o=St.mod(i,this.genPoly),r=this.degree-o.length;if(r>0){const n=new Uint8Array(this.degree);return n.set(o,r),n}return o};var jt=dt,Mt={},D={},gt={};gt.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var M={};const Pt="[0-9]+",Gt="[A-Z $%*+\\-./:]+";let H="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";H=H.replace(/u/g,"\\u");const Qt="(?:(?![A-Z0-9 $%*+\\-./:]|"+H+`)(?:.|[\r
|
|
2
2
|
]))+`;M.KANJI=new RegExp(H,"g");M.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");M.BYTE=new RegExp(Qt,"g");M.NUMERIC=new RegExp(Pt,"g");M.ALPHANUMERIC=new RegExp(Gt,"g");const qt=new RegExp("^"+H+"$"),Wt=new RegExp("^"+Pt+"$"),xt=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");M.testKanji=function(e){return qt.test(e)};M.testNumeric=function(e){return Wt.test(e)};M.testAlphanumeric=function(e){return xt.test(e)};(function(t){const e=gt,i=M;t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(n,s){if(!n.ccBits)throw new Error("Invalid mode: "+n);if(!e.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?n.ccBits[0]:s<27?n.ccBits[1]:n.ccBits[2]},t.getBestModeForData=function(n){return i.testNumeric(n)?t.NUMERIC:i.testAlphanumeric(n)?t.ALPHANUMERIC:i.testKanji(n)?t.KANJI:t.BYTE},t.toString=function(n){if(n&&n.id)return n.id;throw new Error("Invalid mode")},t.isValid=function(n){return n&&n.bit&&n.ccBits};function o(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+r)}}t.from=function(n,s){if(t.isValid(n))return n;try{return o(n)}catch{return s}}})(D);(function(t){const e=I,i=X,o=x,r=D,n=gt,s=7973,a=e.getBCHDigit(s);function u(p,w,E){for(let m=1;m<=40;m++)if(w<=t.getCapacity(m,E,p))return m}function d(p,w){return r.getCharCountIndicator(p,w)+4}function g(p,w){let E=0;return p.forEach(function(m){const y=d(m.mode,w);E+=y+m.getBitsLength()}),E}function B(p,w){for(let E=1;E<=40;E++)if(g(p,E)<=t.getCapacity(E,w,r.MIXED))return E}t.from=function(w,E){return n.isValid(w)?parseInt(w,10):E},t.getCapacity=function(w,E,m){if(!n.isValid(w))throw new Error("Invalid QR Code version");typeof m>"u"&&(m=r.BYTE);const y=e.getSymbolTotalCodewords(w),f=i.getTotalCodewordsCount(w,E),l=(y-f)*8;if(m===r.MIXED)return l;const h=l-d(m,w);switch(m){case r.NUMERIC:return Math.floor(h/10*3);case r.ALPHANUMERIC:return Math.floor(h/11*2);case r.KANJI:return Math.floor(h/13);case r.BYTE:default:return Math.floor(h/8)}},t.getBestVersionForData=function(w,E){let m;const y=o.from(E,o.M);if(Array.isArray(w)){if(w.length>1)return B(w,y);if(w.length===0)return 1;m=w[0]}else m=w;return u(m.mode,m.getLength(),y)},t.getEncodedBits=function(w){if(!n.isValid(w)||w<7)throw new Error("Invalid QR Code version");let E=w<<12;for(;e.getBCHDigit(E)-a>=0;)E^=s<<e.getBCHDigit(E)-a;return w<<12|E}})(Mt);var Rt={};const at=I,Lt=1335,Xt=21522,pt=at.getBCHDigit(Lt);Rt.getEncodedBits=function(e,i){const o=e.bit<<3|i;let r=o<<10;for(;at.getBCHDigit(r)-pt>=0;)r^=Lt<<at.getBCHDigit(r)-pt;return(o<<10|r)^Xt};var _t={};const Zt=D;function v(t){this.mode=Zt.NUMERIC,this.data=t.toString()}v.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};v.prototype.getLength=function(){return this.data.length};v.prototype.getBitsLength=function(){return v.getBitsLength(this.data.length)};v.prototype.write=function(e){let i,o,r;for(i=0;i+3<=this.data.length;i+=3)o=this.data.substr(i,3),r=parseInt(o,10),e.put(r,10);const n=this.data.length-i;n>0&&(o=this.data.substr(i),r=parseInt(o,10),e.put(r,n*3+1))};var te=v;const ee=D,nt=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function F(t){this.mode=ee.ALPHANUMERIC,this.data=t}F.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};F.prototype.getLength=function(){return this.data.length};F.prototype.getBitsLength=function(){return F.getBitsLength(this.data.length)};F.prototype.write=function(e){let i;for(i=0;i+2<=this.data.length;i+=2){let o=nt.indexOf(this.data[i])*45;o+=nt.indexOf(this.data[i+1]),e.put(o,11)}this.data.length%2&&e.put(nt.indexOf(this.data[i]),6)};var ne=F,re=function(e){for(var i=[],o=e.length,r=0;r<o;r++){var n=e.charCodeAt(r);if(n>=55296&&n<=56319&&o>r+1){var s=e.charCodeAt(r+1);s>=56320&&s<=57343&&(n=(n-55296)*1024+s-56320+65536,r+=1)}if(n<128){i.push(n);continue}if(n<2048){i.push(n>>6|192),i.push(n&63|128);continue}if(n<55296||n>=57344&&n<65536){i.push(n>>12|224),i.push(n>>6&63|128),i.push(n&63|128);continue}if(n>=65536&&n<=1114111){i.push(n>>18|240),i.push(n>>12&63|128),i.push(n>>6&63|128),i.push(n&63|128);continue}i.push(239,191,189)}return new Uint8Array(i).buffer};const oe=re,ie=D;function $(t){this.mode=ie.BYTE,typeof t=="string"&&(t=oe(t)),this.data=new Uint8Array(t)}$.getBitsLength=function(e){return e*8};$.prototype.getLength=function(){return this.data.length};$.prototype.getBitsLength=function(){return $.getBitsLength(this.data.length)};$.prototype.write=function(t){for(let e=0,i=this.data.length;e<i;e++)t.put(this.data[e],8)};var se=$;const ue=D,ae=I;function z(t){this.mode=ue.KANJI,this.data=t}z.getBitsLength=function(e){return e*13};z.prototype.getLength=function(){return this.data.length};z.prototype.getBitsLength=function(){return z.getBitsLength(this.data.length)};z.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let i=ae.toSJIS(this.data[e]);if(i>=33088&&i<=40956)i-=33088;else if(i>=57408&&i<=60351)i-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
|
|
3
3
|
Make sure your charset is UTF-8`);i=(i>>>8&255)*192+(i&255),t.put(i,13)}};var ce=z,Dt={exports:{}};(function(t){var e={single_source_shortest_paths:function(i,o,r){var n={},s={};s[o]=0;var a=e.PriorityQueue.make();a.push(o,0);for(var u,d,g,B,p,w,E,m,y;!a.empty();){u=a.pop(),d=u.value,B=u.cost,p=i[d]||{};for(g in p)p.hasOwnProperty(g)&&(w=p[g],E=B+w,m=s[g],y=typeof s[g]>"u",(y||m>E)&&(s[g]=E,a.push(g,E),n[g]=d))}if(typeof r<"u"&&typeof s[r]>"u"){var f=["Could not find a path from ",o," to ",r,"."].join("");throw new Error(f)}return n},extract_shortest_path_from_predecessor_list:function(i,o){for(var r=[],n=o;n;)r.push(n),i[n],n=i[n];return r.reverse(),r},find_path:function(i,o,r){var n=e.single_source_shortest_paths(i,o,r);return e.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(i){var o=e.PriorityQueue,r={},n;i=i||{};for(n in o)o.hasOwnProperty(n)&&(r[n]=o[n]);return r.queue=[],r.sorter=i.sorter||o.default_sorter,r},default_sorter:function(i,o){return i.cost-o.cost},push:function(i,o){var r={value:i,cost:o};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t.exports=e})(Dt);var le=Dt.exports;(function(t){const e=D,i=te,o=ne,r=se,n=ce,s=M,a=I,u=le;function d(f){return unescape(encodeURIComponent(f)).length}function g(f,l,h){const c=[];let C;for(;(C=f.exec(h))!==null;)c.push({data:C[0],index:C.index,mode:l,length:C[0].length});return c}function B(f){const l=g(s.NUMERIC,e.NUMERIC,f),h=g(s.ALPHANUMERIC,e.ALPHANUMERIC,f);let c,C;return a.isKanjiModeEnabled()?(c=g(s.BYTE,e.BYTE,f),C=g(s.KANJI,e.KANJI,f)):(c=g(s.BYTE_KANJI,e.BYTE,f),C=[]),l.concat(h,c,C).sort(function(b,N){return b.index-N.index}).map(function(b){return{data:b.data,mode:b.mode,length:b.length}})}function p(f,l){switch(l){case e.NUMERIC:return i.getBitsLength(f);case e.ALPHANUMERIC:return o.getBitsLength(f);case e.KANJI:return n.getBitsLength(f);case e.BYTE:return r.getBitsLength(f)}}function w(f){return f.reduce(function(l,h){const c=l.length-1>=0?l[l.length-1]:null;return c&&c.mode===h.mode?(l[l.length-1].data+=h.data,l):(l.push(h),l)},[])}function E(f){const l=[];for(let h=0;h<f.length;h++){const c=f[h];switch(c.mode){case e.NUMERIC:l.push([c,{data:c.data,mode:e.ALPHANUMERIC,length:c.length},{data:c.data,mode:e.BYTE,length:c.length}]);break;case e.ALPHANUMERIC:l.push([c,{data:c.data,mode:e.BYTE,length:c.length}]);break;case e.KANJI:l.push([c,{data:c.data,mode:e.BYTE,length:d(c.data)}]);break;case e.BYTE:l.push([{data:c.data,mode:e.BYTE,length:d(c.data)}])}}return l}function m(f,l){const h={},c={start:{}};let C=["start"];for(let A=0;A<f.length;A++){const b=f[A],N=[];for(let L=0;L<b.length;L++){const T=b[L],V=""+A+L;N.push(V),h[V]={node:T,lastCount:0},c[V]={};for(let et=0;et<C.length;et++){const P=C[et];h[P]&&h[P].node.mode===T.mode?(c[P][V]=p(h[P].lastCount+T.length,T.mode)-p(h[P].lastCount,T.mode),h[P].lastCount+=T.length):(h[P]&&(h[P].lastCount=T.length),c[P][V]=p(T.length,T.mode)+4+e.getCharCountIndicator(T.mode,l))}}C=N}for(let A=0;A<C.length;A++)c[C[A]].end=0;return{map:c,table:h}}function y(f,l){let h;const c=e.getBestModeForData(f);if(h=e.from(l,c),h!==e.BYTE&&h.bit<c.bit)throw new Error('"'+f+'" cannot be encoded with mode '+e.toString(h)+`.
|
|
4
4
|
Suggested mode is: `+e.toString(c));switch(h===e.KANJI&&!a.isKanjiModeEnabled()&&(h=e.BYTE),h){case e.NUMERIC:return new i(f);case e.ALPHANUMERIC:return new o(f);case e.KANJI:return new n(f);case e.BYTE:return new r(f)}}t.fromArray=function(l){return l.reduce(function(h,c){return typeof c=="string"?h.push(y(c,null)):c.data&&h.push(y(c.data,c.mode)),h},[])},t.fromString=function(l,h){const c=B(l,a.isKanjiModeEnabled()),C=E(c),A=m(C,h),b=u.find_path(A.map,"start","end"),N=[];for(let L=1;L<b.length-1;L++)N.push(A.table[b[L]].node);return t.fromArray(w(N))},t.rawSplit=function(l){return t.fromArray(B(l,a.isKanjiModeEnabled()))}})(_t);const tt=I,rt=x,fe=Kt,he=Jt,de=bt,ge=It,ct=Nt,lt=X,me=jt,W=Mt,we=Rt,ye=D,ot=_t;function pe(t,e){const i=t.size,o=ge.getPositions(e);for(let r=0;r<o.length;r++){const n=o[r][0],s=o[r][1];for(let a=-1;a<=7;a++)if(!(n+a<=-1||i<=n+a))for(let u=-1;u<=7;u++)s+u<=-1||i<=s+u||(a>=0&&a<=6&&(u===0||u===6)||u>=0&&u<=6&&(a===0||a===6)||a>=2&&a<=4&&u>=2&&u<=4?t.set(n+a,s+u,!0,!0):t.set(n+a,s+u,!1,!0))}}function Ee(t){const e=t.size;for(let i=8;i<e-8;i++){const o=i%2===0;t.set(i,6,o,!0),t.set(6,i,o,!0)}}function Ce(t,e){const i=de.getPositions(e);for(let o=0;o<i.length;o++){const r=i[o][0],n=i[o][1];for(let s=-2;s<=2;s++)for(let a=-2;a<=2;a++)s===-2||s===2||a===-2||a===2||s===0&&a===0?t.set(r+s,n+a,!0,!0):t.set(r+s,n+a,!1,!0)}}function Be(t,e){const i=t.size,o=W.getEncodedBits(e);let r,n,s;for(let a=0;a<18;a++)r=Math.floor(a/3),n=a%3+i-8-3,s=(o>>a&1)===1,t.set(r,n,s,!0),t.set(n,r,s,!0)}function it(t,e,i){const o=t.size,r=we.getEncodedBits(e,i);let n,s;for(n=0;n<15;n++)s=(r>>n&1)===1,n<6?t.set(n,8,s,!0):n<8?t.set(n+1,8,s,!0):t.set(o-15+n,8,s,!0),n<8?t.set(8,o-n-1,s,!0):n<9?t.set(8,15-n-1+1,s,!0):t.set(8,15-n-1,s,!0);t.set(o-8,8,1,!0)}function Ae(t,e){const i=t.size;let o=-1,r=i-1,n=7,s=0;for(let a=i-1;a>0;a-=2)for(a===6&&a--;;){for(let u=0;u<2;u++)if(!t.isReserved(r,a-u)){let d=!1;s<e.length&&(d=(e[s]>>>n&1)===1),t.set(r,a-u,d),n--,n===-1&&(s++,n=7)}if(r+=o,r<0||i<=r){r-=o,o=-o;break}}}function be(t,e,i){const o=new fe;i.forEach(function(u){o.put(u.mode.bit,4),o.put(u.getLength(),ye.getCharCountIndicator(u.mode,t)),u.write(o)});const r=tt.getSymbolTotalCodewords(t),n=lt.getTotalCodewordsCount(t,e),s=(r-n)*8;for(o.getLengthInBits()+4<=s&&o.put(0,4);o.getLengthInBits()%8!==0;)o.putBit(0);const a=(s-o.getLengthInBits())/8;for(let u=0;u<a;u++)o.put(u%2?17:236,8);return Ie(o,t,e)}function Ie(t,e,i){const o=tt.getSymbolTotalCodewords(e),r=lt.getTotalCodewordsCount(e,i),n=o-r,s=lt.getBlocksCount(e,i),a=o%s,u=s-a,d=Math.floor(o/s),g=Math.floor(n/s),B=g+1,p=d-g,w=new me(p);let E=0;const m=new Array(s),y=new Array(s);let f=0;const l=new Uint8Array(t.buffer);for(let b=0;b<s;b++){const N=b<u?g:B;m[b]=l.slice(E,E+N),y[b]=w.encode(m[b]),E+=N,f=Math.max(f,N)}const h=new Uint8Array(o);let c=0,C,A;for(C=0;C<f;C++)for(A=0;A<s;A++)C<m[A].length&&(h[c++]=m[A][C]);for(C=0;C<p;C++)for(A=0;A<s;A++)h[c++]=y[A][C];return h}function Ne(t,e,i,o){let r;if(Array.isArray(t))r=ot.fromArray(t);else if(typeof t=="string"){let d=e;if(!d){const g=ot.rawSplit(t);d=W.getBestVersionForData(g,i)}r=ot.fromString(t,d||40)}else throw new Error("Invalid data");const n=W.getBestVersionForData(r,i);if(!n)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=n;else if(e<n)throw new Error(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as u,r as p,l as g,m as c}from"./index-
|
|
1
|
+
import{j as u,r as p,l as g,m as c}from"./index-863e8fd6.js";import{n as r,c as m}from"./index-61219cbe.js";import{o as f}from"./if-defined-5ecb5632.js";const b=u`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
width: var(--local-width);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as m}from"./NetworkUtil-c907cd4d.js";import{y as b,C as k,D as f,E as g,F as y,G as j,J as S,K as v,L as x,M as w,N as C,O as z,P as N,Q as M,R as E,S as q,T as B,U as L,V as D,W as P,X as A,Y as V,Z as G,_ as U,$ as O,a0 as I,a1 as H,a2 as Z,a3 as K,a4 as R,a5 as Y,a6 as J,a7 as F,a8 as W,a9 as X,aa as Q,ab as _,ac as $,ad as aa,ae as sa,af as ea,ag as ta,ah as na,ai as ia,aj as oa,ak as ra,al as la,ao as ca,am as ha,ap as pa,aq as da,an as Ta,ar as ma,as as ua,at as ba,au as ka,av as fa,aw as ga,ax as ya,ay as ja,az as Sa,aA as va,aB as xa,aI as wa,aJ as Ca,aC as za,aD as Na,aE as Ma,aF as Ea,aG as qa,aH as Ba,aK as La,aL as Da,aM as Pa,aP as Aa,aN as Va,aO as Ga,aQ as Ua,aR as Oa,aS as Ia,aT as Ha,aU as Za,aV as Ka,aW as Ra,aX as Ya,aY as Ja,aZ as Fa,a_ as Wa,a$ as Xa,b0 as Qa,b1 as _a,b2 as $a,b3 as as,b4 as ss,b5 as es,b6 as ts,b7 as ns,b8 as is,b9 as os,ba as rs,bb as ls,bc as cs,bd as hs,be as ps,bf as ds,bg as Ts,bh as ms,bi as us,bj as bs,bk as ks,bl as fs,bm as gs,bn as ys,bo as js,bp as Ss,bq as vs,br as xs,bs as ws,bt as Cs,bu as zs,bv as Ns,bw as Ms,bx as Es,by as qs,bz as Bs,bA as Ls,bB as Ds,bC as Ps,bD as As,bE as Vs,bF as Gs,bG as Us,bH as Os,bI as Is,bJ as Hs,bK as Zs,bL as Ks,bM as Rs,bN as Ys,bO as Js,bP as Fs,bQ as Ws,bR as Xs,bS as Qs,bT as _s,bU as $s,bV as ae,bW as se,bX as ee,bY as te,bZ as ne,b_ as ie,b$ as oe,c0 as re,c1 as le,c2 as ce,c3 as he,c4 as pe,c5 as de,c6 as Te,c7 as me,c8 as ue,c9 as be,ca as ke,cb as fe,cc as ge,cd as ye,ce as je,cf as Se,cg as ve,ch as xe,ci as we,cj as Ce,ck as ze,cl as Ne,cm as Me,cn as Ee,co as qe,cp as Be,cq as Le,cr as De,cs as Pe,ct as Ae,cu as Ve,cv as Ge,cw as Ue,cx as Oe,cy as Ie,cz as He,cA as Ze,cB as Ke,cC as Re,cD as Ye,x as Je,cE as Fe,cF as We,cG as Xe,cH as Qe,cI as _e,cJ as $e,cK as at,cL as st,cM as et,cN as tt,cO as nt,cQ as it,cP as ot,fn as rt,cR as lt,cS as ct,cT as ht,cU as pt,cV as dt,cW as Tt,cX as mt,cY as ut,cZ as bt,c_ as kt,c$ as ft,d0 as gt,d1 as yt,d2 as jt,d3 as St,d4 as vt,d5 as xt,d6 as wt,d7 as Ct,d8 as zt,db as Nt,d9 as Mt,da as Et,dc as qt,dd as Bt,de as Lt,df as Dt,dg as Pt,dh as At,di as Vt,dj as Gt,dk as Ut,dl as Ot,dm as It,dn as Ht,dp as Zt,dq as Kt,dr as Rt,ds as Yt,dt as Jt,du as Ft,dv as Wt,dw as Xt,dx as Qt,dy as _t,dz as $t,dA as an,dB as sn,dC as en,dD as tn,dE as nn,dF as on,dG as rn,dH as ln,dI as cn,dJ as hn,dK as pn,dL as dn,dM as Tn,dN as mn,dO as un,dP as bn,dP as kn,dQ as fn,e4 as gn,dR as yn,dS as jn,dT as Sn,dU as vn,dV as xn,dW as wn,dX as Cn,dY as zn,dZ as Nn,d_ as Mn,d$ as En,e0 as qn,e1 as Bn,e2 as Ln,e3 as Dn,e5 as Pn,e6 as An,e7 as Vn,e8 as Gn,e9 as Un,ea as On,eb as In,ec as Hn,ed as Zn,ee as Kn,ef as Rn,eg as Yn,eh as Jn,ei as Fn,ej as Wn,ek as Xn,em as Qn,en as _n,eo as $n,ep as ai,el as si,eq as ei,er as ti,es as ni,et as ii,eu as oi,ev as ri,ew as li,ex as ci,ey as hi,ez as pi,eA as di,eB as Ti,eC as mi,eD as ui,eE as bi,eF as ki,eG as fi,eH as gi,eI as yi,eJ as ji,eK as Si,eL as vi,eM as xi,eN as wi,eO as Ci,eP as zi,eQ as Ni,eR as Mi,eS as Ei,eT as qi,eU as Bi,eV as Li,eW as Di,eX as Pi,eY as Ai,eZ as Vi,e_ as Gi,e$ as Ui,f0 as Oi,f1 as Ii,f2 as Hi,f3 as Zi,f4 as Ki,f5 as Ri,f6 as Yi,f7 as Ji,f8 as Fi,f9 as Wi,fa as Xi,fb as Qi,fc as _i,fd as $i,fe as ao,ff as so,fg as eo,fh as to,fi as no,fj as io,fk as oo,fl as ro,fm as lo,fo as co,fp as ho,fq as po,fr as To,fs as mo,ft as uo,fu as bo,fv as ko,fw as fo,fx as go,fy as yo,fz as jo,fA as So,fB as vo,fC as xo,fD as wo,fE as Co,fF as zo,fG as No,fH as Mo,fI as Eo,fJ as qo,fK as Bo,fL as Lo,fM as Do,fN as Po,fO as Ao,fP as Vo,fQ as Go,fR as Uo,fS as Oo,fT as Io,fU as Ho,fV as Zo,fW as Ko,fX as Ro,fY as Yo,fZ as Jo,f_ as Fo,f$ as Wo,g0 as Xo,g1 as Qo,g2 as _o,g3 as $o,g4 as ar,g5 as sr,g6 as er,g7 as tr,g8 as nr,g9 as ir,ga as or,gb as rr,gc as lr,gd as cr,ge as hr,gf as pr,gg as dr,gh as Tr,gi as mr,gj as ur,gk as br,gl as kr,gm as fr,gn as gr,go as yr,gp as jr,gq as Sr,gr as vr,gs as xr,gt as wr,gu as Cr,gv as zr,gw as Nr,gx as Mr,gy as Er,gz as qr,gA as Br,gB as Lr,gC as Dr,gD as Pr,gE as Ar,gF as Vr,gG as Gr,gH as Ur,gI as Or,gJ as Ir,gK as Hr,gL as Zr,gM as Kr,gN as Rr,gO as Yr,gP as Jr,gQ as Fr,gR as Wr,gS as Xr,gU as Qr,gV as _r,gT as $r,gW as al,gX as sl,gY as el,gZ as tl,g_ as nl,g$ as il,h0 as ol,h1 as rl,h2 as ll,h3 as cl,h4 as hl,h5 as pl,h6 as dl,h7 as Tl,h8 as ml,h9 as ul,ha as bl,hb as kl,hc as fl,hd as gl,he as yl,hf as jl,hg as Sl,hh as vl,hi as xl,hj as wl,hk as Cl,hl as zl,hm as Nl,hn as Ml,ho as El,hp as ql,hq as Bl,hr as Ll,hs as Dl,hu as Pl,ht as Al,hv as Vl,hw as Gl,hx as Ul,hy as Ol,hz as Il,hA as Hl,hB as Zl,hC as Kl,hD as Rl,hE as Yl,hF as Jl,hG as Fl,hH as Wl,hI as Xl,hJ as Ql,hW as _l,hX as $l,hK as ac,hL as sc,hM as ec,hN as tc,hO as nc,hP as ic,hQ as oc,hR as rc,hS as lc,hT as cc,hU as hc,hV as pc,hY as dc,hZ as Tc,h_ as mc,h$ as uc,i0 as bc,i1 as kc,i2 as fc,i3 as gc,i4 as yc,i5 as jc,i6 as Sc,i7 as vc,i8 as xc,i9 as wc,ia as Cc,ib as zc,ic as Nc,id as Mc,ie as Ec,ig as qc,ih as Bc,ii as Lc,ii as Dc,ij as Pc,ik as Ac,il as Vc,im as Gc,io as Uc,ip as Oc,iq as Ic,ir as Hc,is as Zc,it as Kc,iu as Rc,iv as Yc,iw as Jc,ix as Fc,iy as Wc,iz as Xc,iA as Qc,iB as _c,iC as $c,iD as ah,iE as sh,iF as eh,iG as th,iH as nh,iI as ih,iJ as oh,iK as rh,iL as lh,iM as ch,iN as hh,iO as ph,iP as dh,iQ as Th,iR as mh,iS as uh,iT as bh,iU as kh,iV as fh,iS as gh,iW as yh,iX as jh,iY as Sh,iZ as vh,i_ as xh,i$ as wh,j0 as Ch,j1 as zh,j2 as Nh,j3 as Mh,j4 as Eh,j5 as qh,j6 as Bh,j7 as Lh,j8 as Dh,j9 as Ph,ja as Ah,jb as Vh,jc as Gh,jd as Uh,je as Oh,jf as Ih,jg as Hh,jh as Zh,ji as Kh,jj as Rh,jk as Yh,jl as Jh,jm as Fh,jn as Wh,jo as Xh,jp as Qh,jq as _h,jr as $h,js as ap,jt as sp,ju as ep,jv as tp,jw as np,jx as ip,jy as op,jz as rp,jA as lp,jB as cp,jE as hp,jC as pp,jD as dp,jK as Tp,jJ as mp,jK as up,jF as bp,jG as kp,jH as fp,jI as gp,jL as yp,jM as jp,jN as Sp,jO as vp,jP as xp,jT as wp,jQ as Cp,jR as zp,jS as Np,jU as Mp,jV as Ep,jW as qp,jX as Bp,z as Lp,u as Dp,v as Pp,w as Ap,jY as Vp,jZ as Gp,j_ as Up,j$ as Op,k0 as Ip,k1 as Hp,k2 as Zp,k3 as Kp,k4 as Rp,k5 as Yp,k6 as Jp,k7 as Fp,k8 as Wp,k9 as Xp,ka as Qp,ke as _p,kf as $p,kg as ad,kh as sd,k9 as ed,ka as td,kb as nd,kc as id,kd as od,ke as rd,kf as ld,ki as cd,kj as hd,kk as pd}from"./zoraTestnet-bea7fe0f.js";import"./index-02cebb5e.js";import"./BlockOverrides-303f7e9f.js";function a(s){return{formatters:void 0,fees:void 0,serializers:void 0,...s}}const n=a({id:"5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",name:"Solana",network:"solana-mainnet",nativeCurrency:{name:"Solana",symbol:"SOL",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Solscan",url:"https://solscan.io"}},testnet:!1,chainNamespace:"solana",caipNetworkId:"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",deprecatedCaipNetworkId:"solana:4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZ"}),i=a({id:"EtWTRABZaYq6iMfeYKouRu166VU2xqa1",name:"Solana Devnet",network:"solana-devnet",nativeCurrency:{name:"Solana",symbol:"SOL",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Solscan",url:"https://solscan.io"}},testnet:!0,chainNamespace:"solana",caipNetworkId:"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",deprecatedCaipNetworkId:"solana:8E9rvCKLFQia2Y35HXjjpWzj8weVo44K"}),o=a({id:"4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z",name:"Solana Testnet",network:"solana-testnet",nativeCurrency:{name:"Solana",symbol:"SOL",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Solscan",url:"https://solscan.io"}},testnet:!0,chainNamespace:"solana",caipNetworkId:"solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z"}),r=a({id:"000000000019d6689c085ae165831e93",caipNetworkId:"bip122:000000000019d6689c085ae165831e93",chainNamespace:"bip122",name:"Bitcoin",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:8},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}}}),l=a({id:"000000000933ea01ad0ee984209779ba",caipNetworkId:"bip122:000000000933ea01ad0ee984209779ba",chainNamespace:"bip122",name:"Bitcoin Testnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:8},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},testnet:!0}),c=a({id:"00000008819873e925422c1ff0f99f7c",caipNetworkId:"bip122:00000008819873e925422c1ff0f99f7c",chainNamespace:"bip122",name:"Bitcoin Signet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:8},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},testnet:!0}),h=a({id:"-239",name:"TON",network:"ton-mainnet",nativeCurrency:{name:"TON",symbol:"TON",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Tonscan",url:"https://tonscan.org"}},testnet:!1,chainNamespace:"ton",caipNetworkId:"ton:-239"}),p=a({id:"-3",name:"TON Testnet",network:"ton-testnet",nativeCurrency:{name:"TON",symbol:"TON",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Tonscan",url:"https://testnet.tonscan.org"}},testnet:!0,chainNamespace:"ton",caipNetworkId:"ton:-3"});export{m as AVAILABLE_NAMESPACES,b as abey,k as abstract,f as abstractTestnet,g as acala,y as acria,j as adf,S as adi,v as agungTestnet,x as aioz,w as alephZero,C as alephZeroTestnet,z as alienx,N as alienxHalTestnet,M as ancient8,E as ancient8Sepolia,q as anvil,B as apeChain,L as apexTestnet,D as apollo,P as arbitrum,A as arbitrumGoerli,V as arbitrumNova,G as arbitrumSepolia,U as arcTestnet,O as arenaz,I as areonNetwork,H as areonNetworkTestnet,Z as areum,K as artelaTestnet,R as arthera,Y as artheraTestnet,J as assetChain,F as assetChainTestnet,W as astar,X as astarZkEVM,Q as astarZkyoto,_ as atletaOlympia,$ as aurora,aa as auroraTestnet,sa as auroria,ea as autheoTestnet,ta as avalanche,na as avalancheFuji,ia as b3,oa as b3Sepolia,ra as bahamut,la as base,ca as baseGoerli,ha as basePreconf,pa as baseSepolia,da as baseSepoliaPreconf,Ta as basecampTestnet,ma as beam,ua as beamTestnet,ba as bearNetworkChainMainnet,ka as bearNetworkChainTestnet,fa as berachain,ga as berachainBepolia,ya as berachainTestnet,ja as berachainTestnetbArtio,Sa as bevmMainnet,va as bifrost,xa as birdlayer,wa as bitTorrent,Ca as bitTorrentTestnet,r as bitcoin,c as bitcoinSignet,l as bitcoinTestnet,za as bitgert,Na as bitkub,Ma as bitkubTestnet,Ea as bitlayer,qa as bitlayerTestnet,Ba as bitrock,La as blast,Da as blastSepolia,Pa as bob,Aa as bobSepolia,Va as boba,Ga as bobaSepolia,Ua as boolBetaMainnet,Oa as botanix,Ia as botanixTestnet,Ha as bounceBit,Za as bounceBitTestnet,Ka as bronos,Ra as bronosTestnet,Ya as bsc,Ja as bscGreenfield,Fa as bscTestnet,Wa as bsquared,Xa as bsquaredTestnet,Qa as btr,_a as btrTestnet,$a as bxn,as as bxnTestnet,ss as cannon,es as canto,ts as celo,ns as celoAlfajores,is as celoSepolia,os as chang,rs as chiliz,ls as chips,cs as citreaTestnet,hs as classic,ps as codex,ds as codexTestnet,Ts as coinbit,ms as coinex,us as confluxESpace,bs as confluxESpaceTestnet,ks as coreDao,fs as coreTestnet1,gs as coreTestnet2,ys as corn,js as cornTestnet,Ss as cpchain,vs as crab,xs as creatorTestnet,ws as creditCoin3Devnet,Cs as creditCoin3Mainnet,zs as creditCoin3Testnet,Ns as cronos,Ms as cronosTestnet,Es as cronoszkEVM,qs as cronoszkEVMTestnet,Bs as crossbell,Ls as crossfi,Ds as curtis,Ps as cyber,As as cyberTestnet,Vs as dailyNetwork,Gs as dailyNetworkTestnet,Us as darwinia,Os as datahavenTestnet,Is as dbkchain,Hs as dchain,Zs as dchainTestnet,Ks as defichainEvm,Rs as defichainEvmTestnet,a as defineChain,Ys as degen,Js as dfk,Fs as diode,Ws as disChain,Xs as dodochainTestnet,Qs as dogechain,_s as domaTestnet,$s as donatuz,ae as dosChain,se as dosChainTestnet,ee as dreyerxMainnet,te as dreyerxTestnet,ne as dustboyIoT,ie as dymension,oe as edexa,re as edexaTestnet,le as edgeless,ce as edgelessTestnet,he as edgeware,pe as edgewareTestnet,de as eduChain,Te as eduChainTestnet,me as ekta,ue as ektaTestnet,be as elastos,ke as elastosTestnet,fe as electroneum,ge as electroneumTestnet,ye as elysiumTestnet,je as energy,Se as eni,ve as eniTestnet,xe as enuls,we as eon,Ce as eos,ze as eosTestnet,Ne as eteria,Me as etherlink,Ee as etherlinkShadownetTestnet,qe as etherlinkTestnet,Be as ethernity,Le as etp,De as evmos,Pe as evmosTestnet,Ae as excelonMainnet,Ve as expanse,Ge as exsat,Ue as exsatTestnet,Oe as fantom,Ie as fantomSonicTestnet,He as fantomTestnet,Ze as fibo,Ke as filecoin,Re as filecoinCalibration,Ye as filecoinHyperspace,Je as fireChain,Fe as flame,We as flare,Xe as flareTestnet,Qe as flowMainnet,_e as flowPreviewnet,$e as flowTestnet,at as fluence,st as fluenceStage,et as fluenceTestnet,tt as fluentTestnet,nt as form,it as formTestnet,ot as forma,rt as formicarium,lt as forta,ct as foundry,ht as fraxtal,pt as fraxtalTestnet,dt as funkiMainnet,Tt as funkiSepolia,mt as fuse,ut as fuseSparknet,bt as fusion,kt as fusionTestnet,ft as garnet,gt as gatechain,yt as geist,jt as genesys,St as giwaSepolia,vt as giwaSepoliaPreconf,xt as glideL1Protocol,wt as glideL2Protocol,Ct as gnosis,zt as gnosisChiado,Nt as goChain,Mt as goat,Et as gobi,qt as godwoken,Bt as goerli,Lt as graphite,Dt as graphiteTestnet,Pt as gravity,At as gunz,Vt as guruNetwork,Gt as guruTestnet,Ut as ham,Ot as happychainTestnet,It as haqqMainnet,Ht as haqqTestedge2,Zt as hardhat,Kt as harmonyOne,Rt as hashkey,Yt as hashkeyTestnet,Jt as haustTestnet,Ft as hedera,Wt as hederaPreviewnet,Xt as hederaTestnet,Qt as hela,_t as heliosTestnet,$t as hemi,an as hemiSepolia,sn as henesys,en as holesky,tn as hoodi,nn as hpb,on as hpp,rn as hppSepolia,ln as huddle01Mainnet,cn as huddle01Testnet,hn as humanity,pn as humanityTestnet,dn as humanode,Tn as humanodeTestnet5,mn as hychain,un as hychainTestnet,bn as hyperEvm,kn as hyperliquid,fn as hyperliquidEvmTestnet,gn as iSunCoin,yn as icbNetwork,jn as idchain,Sn as immutableZkEvm,vn as immutableZkEvmTestnet,xn as inEVM,wn as initVerse,Cn as initVerseGenesis,zn as injective,Nn as injectiveTestnet,Mn as ink,En as inkSepolia,qn as iota,Bn as iotaTestnet,Ln as iotex,Dn as iotexTestnet,Pn as jasmyChain,An as jasmyChainTestnet,Vn as jbc,Gn as jbcTestnet,Un as jocMainnet,On as jocTestnet,In as jovay,Hn as jovaySepolia,Zn as juneo,Kn as juneoBCH1Chain,Rn as juneoDAI1Chain,Yn as juneoDOGE1Chain,Jn as juneoEUR1Chain,Fn as juneoGLD1Chain,Wn as juneoLINK1Chain,Xn as juneoLTC1Chain,Qn as juneoSGD1Chain,_n as juneoSocotraTestnet,$n as juneoUSD1Chain,ai as juneoUSDT1Chain,si as juneomBTC1Chain,ei as kaia,ti as kairos,ni as kakarotSepolia,ii as kakarotStarknetSepolia,oi as kardiaChain,ri as karura,li as katana,ci as kava,hi as kavaTestnet,pi as kcc,di as kiiTestnetOro,Ti as kinto,mi as klaytn,ui as klaytnBaobab,bi as koi,ki as kroma,fi as kromaSepolia,gi as l3x,yi as l3xTestnet,ji as lavita,Si as lens,vi as lensTestnet,xi as lestnet,wi as lightlinkPegasus,Ci as lightlinkPhoenix,zi as linea,Ni as lineaGoerli,Mi as lineaSepolia,Ei as lineaTestnet,qi as lisk,Bi as liskSepolia,Li as loadAlphanet,Di as localhost,Pi as loop,Ai as lukso,Vi as luksoTestnet,Gi as lumiaMainnet,Ui as lumiaTestnet,Oi as lumoz,Ii as lumozTestnet,Hi as lycan,Zi as lyra,Ki as mainnet,Ri as mandala,Yi as manta,Ji as mantaSepoliaTestnet,Fi as mantaTestnet,Wi as mantle,Xi as mantleSepoliaTestnet,Qi as mantleTestnet,_i as mantraDuKongEVMTestnet,$i as mantraEVM,ao as mapProtocol,so as matchain,eo as matchainTestnet,to as mchVerse,no as megaeth,io as megaethTestnet,oo as mekong,ro as meld,lo as memecore,co as merlin,ho as merlinErigonTestnet,po as metachain,To as metachainIstanbul,mo as metadium,uo as metalL2,bo as meter,ko as meterTestnet,fo as metis,go as metisGoerli,yo as metisSepolia,jo as mev,So as mevTestnet,vo as mint,xo as mintSepoliaTestnet,wo as mitosisTestnet,Co as mode,zo as modeTestnet,No as monad,Mo as monadTestnet,Eo as moonbaseAlpha,qo as moonbeam,Bo as moonbeamDev,Lo as moonriver,Do as morph,Po as morphHolesky,Ao as morphSepolia,Vo as nahmii,Go as nautilus,Uo as near,Oo as nearTestnet,Io as neonDevnet,Ho as neonMainnet,Zo as neoxMainnet,Ko as neoxT4,Ro as newton,Yo as nexi,Jo as nexilix,Fo as nibiru,Wo as nitrographTestnet,Xo as nomina,Qo as oasisTestnet,_o as oasys,$o as odysseyTestnet,ar as okc,sr as omax,er as omni,tr as omniOmega,nr as oneWorld,ir as oortMainnetDev,or as opBNB,rr as opBNBTestnet,lr as openledger,cr as optimism,hr as optimismGoerli,pr as optimismSepolia,dr as optopia,Tr as optopiaTestnet,mr as orderly,ur as orderlySepolia,br as otimDevnet,kr as palm,fr as palmTestnet,gr as paseoPassetHub,yr as peaq,jr as pgn,Sr as pgnTestnet,vr as phoenix,xr as planq,wr as plasma,Cr as plasmaDevnet,zr as plasmaTestnet,Nr as playfiAlbireo,Mr as plinga,Er as plume,qr as plumeDevnet,Br as plumeMainnet,Lr as plumeSepolia,Dr as plumeTestnet,Pr as polterTestnet,Ar as polygon,Vr as polygonAmoy,Gr as polygonMumbai,Ur as polygonZkEvm,Or as polygonZkEvmCardona,Ir as polygonZkEvmTestnet,Hr as polynomial,Zr as polynomialSepolia,Kr as potos,Rr as potosTestnet,Yr as premiumBlockTestnet,Jr as pulsechain,Fr as pulsechainV4,Wr as pumpfiTestnet,Xr as pyrope,Qr as qMainnet,_r as qTestnet,$r as ql1,al as quai,sl as quaiTestnet,el as reactiveTestnet,tl as real,nl as redbellyMainnet,il as redbellyTestnet,ol as reddio,rl as reddioSepolia,ll as redstone,cl as rei,hl as reyaNetwork,pl as rise,dl as riseTestnet,Tl as rivalz,ml as rollux,ul as rolluxTestnet,bl as ronin,kl as root,fl as rootPorcini,gl as rootstock,yl as rootstockTestnet,jl as rss3,Sl as rss3Sepolia,vl as saakuru,xl as saga,wl as saigon,Cl as sanko,zl as sapphire,Nl as sapphireTestnet,Ml as satoshiVM,El as satoshiVMTestnet,ql as scroll,Bl as scrollSepolia,Ll as sei,Dl as seiDevnet,Pl as seiTestnet,Al as seismicDevnet,Vl as sepolia,Gl as shape,Ul as shapeSepolia,Ol as shardeum,Il as shardeumSphinx,Hl as shibarium,Zl as shibariumTestnet,Kl as shiden,Rl as shimmer,Yl as shimmerTestnet,Jl as sidraChain,Fl as silentData,Wl as silicon,Xl as siliconSepolia,Ql as sixProtocol,_l as skaleBase,$l as skaleBaseSepoliaTestnet,ac as skaleBlockBrawlers,sc as skaleCalypso,ec as skaleCalypsoTestnet,tc as skaleCryptoBlades,nc as skaleCryptoColosseum,ic as skaleEuropa,oc as skaleEuropaTestnet,rc as skaleExorde,lc as skaleHumanProtocol,cc as skaleNebula,hc as skaleNebulaTestnet,pc as skaleRazor,dc as skaleTitan,Tc as skaleTitanTestnet,mc as sketchpad,uc as snax,bc as snaxTestnet,n as solana,i as solanaDevnet,o as solanaTestnet,kc as somnia,fc as somniaTestnet,gc as soneium,yc as soneiumMinato,jc as songbird,Sc as songbirdTestnet,vc as sonic,xc as sonicBlazeTestnet,wc as sonicTestnet,Cc as sophon,zc as sophonTestnet,Nc as sova,Mc as sovaSepolia,Ec as spicy,qc as stable,Bc as stableTestnet,Lc as statusNetworkSepolia,Dc as statusSepolia,Pc as step,Ac as story,Vc as storyAeneid,Gc as storyOdyssey,Uc as storyTestnet,Oc as stratis,Ic as superlumio,Hc as superposition,Zc as superseed,Kc as superseedSepolia,Rc as surgeTestnet,Yc as swan,Jc as swanProximaTestnet,Fc as swanSaturnTestnet,Wc as swellchain,Xc as swellchainTestnet,Qc as swissdlt,_c as syscoin,$c as syscoinTestnet,ah as tac,sh as tacSPB,eh as taiko,th as taikoHekla,nh as taikoHoodi,ih as taikoJolnir,oh as taikoKatla,rh as taikoTestnetSepolia,lh as taraxa,ch as taraxaTestnet,hh as teaSepolia,ph as telcoinTestnet,dh as telos,Th as telosTestnet,mh as tempo,uh as tempoAndantino,bh as tempoDevnet,kh as tempoLocalnet,fh as tempoModerato,gh as tempoTestnet,yh as tenet,jh as ternoa,Sh as thaiChain,vh as that,xh as theta,wh as thetaTestnet,Ch as thunderCore,zh as thunderTestnet,Nh as tiktrixTestnet,Mh as tomb,h as ton,p as tonTestnet,Eh as treasure,qh as treasureTopaz,Bh as tron,Lh as tronNile,Dh as tronShasta,Ph as ubiq,Ah as ultra,Vh as ultraTestnet,Gh as ultron,Uh as ultronTestnet,Oh as unichain,Ih as unichainSepolia,Hh as unique,Zh as uniqueOpal,Kh as uniqueQuartz,Rh as unreal,Yh as vana,Jh as vanaMoksha,Fh as vanar,Wh as vechain,Xh as velas,Qh as viction,_h as victionTestnet,$h as vision,ap as visionTestnet,sp as wanchain,ep as wanchainTestnet,tp as weaveVMAlphanet,np as wemix,ip as wemixTestnet,op as westendAssetHub,rp as whitechain,lp as whitechainTestnet,cp as wmcTestnet,hp as worldLand,pp as worldchain,dp as worldchainSepolia,Tp as x1Testnet,mp as xLayer,up as xLayerTestnet,bp as xai,kp as xaiTestnet,fp as xdc,gp as xdcTestnet,yp as xoneMainnet,jp as xoneTestnet,Sp as xphereMainnet,vp as xphereTestnet,xp as xrOne,wp as xrSepolia,Cp as xrplevm,zp as xrplevmDevnet,Np as xrplevmTestnet,Mp as yooldoVerse,Ep as yooldoVerseTestnet,qp as zenchainTestnet,Bp as zeniq,Lp as zeroG,Dp as zeroGGalileoTestnet,Pp as zeroGMainnet,Ap as zeroGTestnet,Vp as zeroNetwork,Gp as zetachain,Up as zetachainAthensTestnet,Op as zhejiang,Ip as zilliqa,Hp as zilliqaTestnet,Zp as zircuit,Kp as zircuitGarfieldTestnet,Rp as zircuitTestnet,Yp as zkFair,Jp as zkFairTestnet,Fp as zkLinkNova,Wp as zkLinkNovaSepoliaTestnet,Xp as zkSync,Qp as zkSyncInMemoryNode,_p as zkSyncLocalNode,$p as zkSyncSepoliaTestnet,ad as zkXPLA,sd as zkXPLATestnet,ed as zksync,td as zksyncInMemoryNode,nd as zksyncLocalCustomHyperchain,id as zksyncLocalHyperchain,od as zksyncLocalHyperchainL1,rd as zksyncLocalNode,ld as zksyncSepoliaTestnet,cd as zora,hd as zoraSepolia,pd as zoraTestnet};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as O,l as w,_ as l,$ as C,O as _,m as u,M as $,C as I,H as E,R as S,h as B,E as z,y as V,W as M,x as K,T as F,S as W}from"./index-
|
|
1
|
+
import{j as O,l as w,_ as l,$ as C,O as _,m as u,M as $,C as I,H as E,R as S,h as B,E as z,y as V,W as M,x as K,T as F,S as W}from"./index-863e8fd6.js";import{r as c,c as g,n as d}from"./index-61219cbe.js";import{o as m}from"./if-defined-5ecb5632.js";import"./index-5b7f5468.js";import{O as j}from"./index-d4cf6fd5.js";import"./index-e82b1bf2.js";import"./index-15da260e.js";import"./index-1ef89fbf.js";import"./index-6aa35c4c.js";import"./index-304c2025.js";import"./index-9ed03248.js";import"./index-4795bc6d.js";import"./index-91e7b718.js";import"./index-02cebb5e.js";import"./NetworkUtil-c907cd4d.js";import"./index-b249573f.js";import"./BlockOverrides-303f7e9f.js";import"./ref-f07b284a.js";const N=O`
|
|
2
2
|
:host > wui-grid {
|
|
3
3
|
max-height: 360px;
|
|
4
4
|
overflow: auto;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as A,r as D,k as T,l as $,m as u,C as y,R as w,H as E,S as b,x as z,h as S}from"./index-
|
|
1
|
+
import{j as A,r as D,k as T,l as $,m as u,C as y,R as w,H as E,S as b,x as z,h as S}from"./index-863e8fd6.js";import{n as h,c as v,r as m}from"./index-61219cbe.js";import{o as P}from"./if-defined-5ecb5632.js";import"./index-e82b1bf2.js";import"./index-2428c92d.js";import"./index-5b7f5468.js";import"./index-b612aba6.js";import"./index-304c2025.js";import"./index-bfcb1eaf.js";import"./index-4795bc6d.js";import{E as r}from"./ExchangeController-a14191f2.js";import"./index-9ed03248.js";import"./index-91e7b718.js";import"./index-45573641.js";import"./index-6a478a1a.js";import"./index-02cebb5e.js";import"./NetworkUtil-c907cd4d.js";import"./index-b249573f.js";import"./BlockOverrides-303f7e9f.js";import"./index-15da260e.js";import"./ref-f07b284a.js";const _=A`
|
|
2
2
|
button {
|
|
3
3
|
border: none;
|
|
4
4
|
border-radius: ${({borderRadius:t})=>t[20]};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as k,r as v,k as N,l as x,m as u,C as c,S as h,H as w,T as f,y as R,W as T,R as A,h as S}from"./index-
|
|
1
|
+
import{j as k,r as v,k as N,l as x,m as u,C as c,S as h,H as w,T as f,y as R,W as T,R as A,h as S}from"./index-863e8fd6.js";import{n as $,c as C,U as I,r as b}from"./index-61219cbe.js";import{o as O}from"./if-defined-5ecb5632.js";import"./index-e82b1bf2.js";import"./index-e0285d09.js";import"./index-02cebb5e.js";import"./NetworkUtil-c907cd4d.js";import"./index-b249573f.js";import"./BlockOverrides-303f7e9f.js";const _=k`
|
|
2
2
|
button {
|
|
3
3
|
width: 100%;
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{A as d}from"./index-
|
|
1
|
+
import{A as d}from"./index-863e8fd6.js";import{i as $,t as _,e as A}from"./index-61219cbe.js";/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2020 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={};export{e as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as b,l as x,h as D,C as
|
|
1
|
+
import{j as b,l as x,h as D,C as g,x as j,Y as l,m as c,R as h,N as F,M as q,S as y,c as Q,t as X,H as K,r as Y,k as J,a0 as z,a1 as H,E as Z}from"./index-863e8fd6.js";import{n as d,r as u,c as v,U as N}from"./index-61219cbe.js";import"./index-304c2025.js";import"./index-9ed03248.js";import"./index-6a478a1a.js";import{e as L,n as M}from"./ref-f07b284a.js";import"./index-bfcb1eaf.js";import"./index-4795bc6d.js";import"./index-088190d3.js";import{S as G}from"./SwapController-cd0f257b.js";import"./index-91e7b718.js";import"./index-45573641.js";import"./index-e82b1bf2.js";import"./index-0687b660.js";import{o as ee}from"./if-defined-5ecb5632.js";import"./index-02cebb5e.js";import"./NetworkUtil-c907cd4d.js";import"./index-b249573f.js";import"./BlockOverrides-303f7e9f.js";import"./index-15da260e.js";import"./index-b612aba6.js";const te=b`
|
|
2
2
|
:host {
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100px;
|
|
@@ -46,7 +46,7 @@ import{j as b,l as x,h as D,C as w,x as j,Y as l,m as c,R as h,N as F,M as L,S a
|
|
|
46
46
|
font-weight: ${({fontWeight:e})=>e.regular};
|
|
47
47
|
line-height: ${({typography:e})=>e["lg-regular"].lineHeight};
|
|
48
48
|
letter-spacing: ${({typography:e})=>e["lg-regular"].letterSpacing};
|
|
49
|
-
color: ${({tokens:e})=>e.theme.
|
|
49
|
+
color: ${({tokens:e})=>e.theme.textPrimary};
|
|
50
50
|
caret-color: ${({tokens:e})=>e.core.backgroundAccentPrimary};
|
|
51
51
|
box-sizing: border-box;
|
|
52
52
|
-webkit-appearance: none;
|
|
@@ -58,7 +58,7 @@ import{j as b,l as x,h as D,C as w,x as j,Y as l,m as c,R as h,N as F,M as L,S a
|
|
|
58
58
|
resize: none;
|
|
59
59
|
overflow: hidden;
|
|
60
60
|
}
|
|
61
|
-
`;var
|
|
61
|
+
`;var E=globalThis&&globalThis.__decorate||function(e,t,i,r){var o=arguments.length,n=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n};let $=class extends x{constructor(){super(...arguments),this.inputElementRef=L(),this.instructionElementRef=L(),this.readOnly=!1,this.instructionHidden=!!this.value,this.pasting=!1,this.onDebouncedSearch=D.debounce(async t=>{if(!t.length){this.setReceiverAddress("");return}const i=g.state.activeChain;if(D.isAddress(t,i)){this.setReceiverAddress(t);return}try{const o=await j.getEnsAddress(t);if(o){l.setReceiverProfileName(t),l.setReceiverAddress(o);const n=await j.getEnsAvatar(t);l.setReceiverProfileImageUrl(n||void 0)}}catch{this.setReceiverAddress(t)}finally{l.setLoading(!1)}})}firstUpdated(){this.value&&(this.instructionHidden=!0),this.checkHidden()}render(){return this.readOnly?c` <wui-flex
|
|
62
62
|
flexDirection="column"
|
|
63
63
|
justifyContent="center"
|
|
64
64
|
gap="01"
|
|
@@ -80,7 +80,7 @@ import{j as b,l as x,h as D,C as w,x as j,Y as l,m as c,R as h,N as F,M as L,S a
|
|
|
80
80
|
.padding=${["8","4","5","4"]}
|
|
81
81
|
>
|
|
82
82
|
<wui-text
|
|
83
|
-
${
|
|
83
|
+
${M(this.instructionElementRef)}
|
|
84
84
|
class="instruction"
|
|
85
85
|
color="secondary"
|
|
86
86
|
variant="md-medium"
|
|
@@ -101,7 +101,7 @@ import{j as b,l as x,h as D,C as w,x as j,Y as l,m as c,R as h,N as F,M as L,S a
|
|
|
101
101
|
<textarea
|
|
102
102
|
spellcheck="false"
|
|
103
103
|
?disabled=${!this.instructionHidden}
|
|
104
|
-
${
|
|
104
|
+
${M(this.inputElementRef)}
|
|
105
105
|
@input=${this.onInputChange.bind(this)}
|
|
106
106
|
@blur=${this.onBlur.bind(this)}
|
|
107
107
|
.value=${this.value??""}
|
|
@@ -109,7 +109,7 @@ import{j as b,l as x,h as D,C as w,x as j,Y as l,m as c,R as h,N as F,M as L,S a
|
|
|
109
109
|
>
|
|
110
110
|
${this.value??""}</textarea
|
|
111
111
|
>
|
|
112
|
-
</wui-flex>`}async focusInput(){var t;this.instructionElementRef.value&&(this.instructionHidden=!0,await this.toggleInstructionFocus(!1),this.instructionElementRef.value.style.pointerEvents="none",(t=this.inputElementRef.value)==null||t.focus(),this.inputElementRef.value&&(this.inputElementRef.value.selectionStart=this.inputElementRef.value.selectionEnd=this.inputElementRef.value.value.length))}async focusInstruction(){var t;this.instructionElementRef.value&&(this.instructionHidden=!1,await this.toggleInstructionFocus(!0),this.instructionElementRef.value.style.pointerEvents="auto",(t=this.inputElementRef.value)==null||t.blur())}async toggleInstructionFocus(t){this.instructionElementRef.value&&await this.instructionElementRef.value.animate([{opacity:t?0:1},{opacity:t?1:0}],{duration:100,easing:"ease",fill:"forwards"}).finished}onBoxClick(){!this.value&&!this.instructionHidden&&this.focusInput()}onBlur(){!this.value&&this.instructionHidden&&!this.pasting&&this.focusInstruction()}checkHidden(){this.instructionHidden&&this.focusInput()}async onPasteClick(){this.pasting=!0;const t=await navigator.clipboard.readText();l.setReceiverAddress(t),this.focusInput()}onInputChange(t){var r;const i=t.target;this.pasting=!1,this.value=(r=t.target)==null?void 0:r.value,i.value&&!this.instructionHidden&&this.focusInput(),l.setLoading(!0),this.onDebouncedSearch(i.value)}setReceiverAddress(t){l.setReceiverAddress(t),l.setReceiverProfileName(void 0),l.setReceiverProfileImageUrl(void 0),l.setLoading(!1)}};$.styles=
|
|
112
|
+
</wui-flex>`}async focusInput(){var t;this.instructionElementRef.value&&(this.instructionHidden=!0,await this.toggleInstructionFocus(!1),this.instructionElementRef.value.style.pointerEvents="none",(t=this.inputElementRef.value)==null||t.focus(),this.inputElementRef.value&&(this.inputElementRef.value.selectionStart=this.inputElementRef.value.selectionEnd=this.inputElementRef.value.value.length))}async focusInstruction(){var t;this.instructionElementRef.value&&(this.instructionHidden=!1,await this.toggleInstructionFocus(!0),this.instructionElementRef.value.style.pointerEvents="auto",(t=this.inputElementRef.value)==null||t.blur())}async toggleInstructionFocus(t){this.instructionElementRef.value&&await this.instructionElementRef.value.animate([{opacity:t?0:1},{opacity:t?1:0}],{duration:100,easing:"ease",fill:"forwards"}).finished}onBoxClick(){!this.value&&!this.instructionHidden&&this.focusInput()}onBlur(){!this.value&&this.instructionHidden&&!this.pasting&&this.focusInstruction()}checkHidden(){this.instructionHidden&&this.focusInput()}async onPasteClick(){this.pasting=!0;const t=await navigator.clipboard.readText();l.setReceiverAddress(t),this.focusInput()}onInputChange(t){var r;const i=t.target;this.pasting=!1,this.value=(r=t.target)==null?void 0:r.value,i.value&&!this.instructionHidden&&this.focusInput(),l.setLoading(!0),this.onDebouncedSearch(i.value)}setReceiverAddress(t){l.setReceiverAddress(t),l.setReceiverProfileName(void 0),l.setReceiverProfileImageUrl(void 0),l.setLoading(!1)}};$.styles=te;E([d()],$.prototype,"value",void 0);E([d({type:Boolean})],$.prototype,"readOnly",void 0);E([u()],$.prototype,"instructionHidden",void 0);E([u()],$.prototype,"pasting",void 0);$=E([v("w3m-input-address")],$);const ie=b`
|
|
113
113
|
:host {
|
|
114
114
|
width: 100%;
|
|
115
115
|
height: 100px;
|
|
@@ -153,7 +153,7 @@ ${this.value??""}</textarea
|
|
|
153
153
|
.totalValue {
|
|
154
154
|
width: 100%;
|
|
155
155
|
}
|
|
156
|
-
`;var
|
|
156
|
+
`;var P=globalThis&&globalThis.__decorate||function(e,t,i,r){var o=arguments.length,n=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n};let T=class extends x{constructor(){super(...arguments),this.readOnly=!1,this.isInsufficientBalance=!1}render(){const t=this.readOnly||!this.token;return c` <wui-flex
|
|
157
157
|
flexDirection="column"
|
|
158
158
|
gap="01"
|
|
159
159
|
.padding=${["5","3","4","3"]}
|
|
@@ -181,13 +181,13 @@ ${this.value??""}</textarea
|
|
|
181
181
|
>`}handleSelectButtonClick(){this.readOnly||h.push("WalletSendSelectToken")}sendValueTemplate(){if(!this.readOnly&&this.token&&this.sendTokenAmount){const i=this.token.price*this.sendTokenAmount;return c`<wui-text class="totalValue" variant="sm-regular" color="secondary"
|
|
182
182
|
>${i?`$${F.formatNumberToLocalString(i,2)}`:"Incorrect value"}</wui-text
|
|
183
183
|
>`}return null}maxAmountTemplate(){return this.token?c` <wui-text variant="sm-regular" color="secondary">
|
|
184
|
-
${
|
|
184
|
+
${N.roundNumber(Number(this.token.quantity.numeric),6,5)}
|
|
185
185
|
</wui-text>`:null}actionTemplate(){return this.token?c`<wui-link @click=${this.onMaxClick.bind(this)}>Max</wui-link>`:null}bottomTemplate(){return this.readOnly?null:c`<wui-flex alignItems="center" justifyContent="space-between">
|
|
186
186
|
${this.sendValueTemplate()}
|
|
187
187
|
<wui-flex alignItems="center" gap="01" justifyContent="flex-end">
|
|
188
188
|
${this.maxAmountTemplate()} ${this.actionTemplate()}
|
|
189
189
|
</wui-flex>
|
|
190
|
-
</wui-flex>`}onInputChange(t){l.setTokenAmount(t.detail)}onMaxClick(){if(this.token){const t=F.bigNumber(this.token.quantity.numeric);l.setTokenAmount(Number(t.toFixed(20)))}}};T.styles=
|
|
190
|
+
</wui-flex>`}onInputChange(t){l.setTokenAmount(t.detail)}onMaxClick(){if(this.token){const t=F.bigNumber(this.token.quantity.numeric);l.setTokenAmount(Number(t.toFixed(20)))}}};T.styles=ie;P([d({type:Object})],T.prototype,"token",void 0);P([d({type:Boolean})],T.prototype,"readOnly",void 0);P([d({type:Number})],T.prototype,"sendTokenAmount",void 0);P([d({type:Boolean})],T.prototype,"isInsufficientBalance",void 0);T=P([v("w3m-input-token")],T);const ne=b`
|
|
191
191
|
:host {
|
|
192
192
|
display: block;
|
|
193
193
|
}
|
|
@@ -216,7 +216,7 @@ ${this.value??""}</textarea
|
|
|
216
216
|
.inputContainer {
|
|
217
217
|
height: fit-content;
|
|
218
218
|
}
|
|
219
|
-
`;var
|
|
219
|
+
`;var w=globalThis&&globalThis.__decorate||function(e,t,i,r){var o=arguments.length,n=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n};const f={INSUFFICIENT_FUNDS:"Insufficient Funds",INCORRECT_VALUE:"Incorrect Value",INVALID_ADDRESS:"Invalid Address",ADD_ADDRESS:"Add Address",ADD_AMOUNT:"Add Amount",SELECT_TOKEN:"Select Token",PREVIEW_SEND:"Preview Send"};let p=class extends x{constructor(){var i,r;super(),this.unsubscribe=[],this.isTryingToChooseDifferentWallet=!1,this.token=l.state.token,this.sendTokenAmount=l.state.sendTokenAmount,this.receiverAddress=l.state.receiverAddress,this.receiverProfileName=l.state.receiverProfileName,this.loading=l.state.loading,this.params=(i=h.state.data)==null?void 0:i.send,this.caipAddress=(r=g.getAccountData())==null?void 0:r.caipAddress,this.message=f.PREVIEW_SEND,this.disconnecting=!1,this.token&&!this.params&&(this.fetchBalances(),this.fetchNetworkPrice());const t=g.subscribeKey("activeCaipAddress",o=>{!o&&this.isTryingToChooseDifferentWallet&&(this.isTryingToChooseDifferentWallet=!1,q.open({view:"Connect",data:{redirectView:"WalletSend"}}).catch(()=>null),t())});this.unsubscribe.push(g.subscribeAccountStateProp("caipAddress",o=>{this.caipAddress=o}),l.subscribe(o=>{this.token=o.token,this.sendTokenAmount=o.sendTokenAmount,this.receiverAddress=o.receiverAddress,this.receiverProfileName=o.receiverProfileName,this.loading=o.loading}))}disconnectedCallback(){this.unsubscribe.forEach(t=>t())}async firstUpdated(){await this.handleSendParameters()}render(){this.getMessage();const t=!!this.params;return c` <wui-flex flexDirection="column" .padding=${["0","4","4","4"]}>
|
|
220
220
|
<wui-flex class="inputContainer" gap="2" flexDirection="column">
|
|
221
221
|
<w3m-input-token
|
|
222
222
|
.token=${this.token}
|
|
@@ -231,7 +231,7 @@ ${this.value??""}</textarea
|
|
|
231
231
|
></w3m-input-address>
|
|
232
232
|
</wui-flex>
|
|
233
233
|
${this.buttonTemplate()}
|
|
234
|
-
</wui-flex>`}async fetchBalances(){await l.fetchTokenBalance(),l.fetchNetworkBalance()}async fetchNetworkPrice(){await
|
|
234
|
+
</wui-flex>`}async fetchBalances(){await l.fetchTokenBalance(),l.fetchNetworkBalance()}async fetchNetworkPrice(){await G.getNetworkTokenPrice()}onButtonClick(){h.push("WalletSendPreview",{send:this.params})}onFundWalletClick(){h.push("FundWallet",{redirectView:"WalletSend"})}async onConnectDifferentWalletClick(){try{this.isTryingToChooseDifferentWallet=!0,this.disconnecting=!0,await j.disconnect()}finally{this.disconnecting=!1}}getMessage(){var t;this.message=f.PREVIEW_SEND,this.receiverAddress&&!D.isAddress(this.receiverAddress,g.state.activeChain)&&(this.message=f.INVALID_ADDRESS),this.receiverAddress||(this.message=f.ADD_ADDRESS),this.sendTokenAmount&&this.token&&this.sendTokenAmount>Number(this.token.quantity.numeric)&&(this.message=f.INSUFFICIENT_FUNDS),this.sendTokenAmount||(this.message=f.ADD_AMOUNT),this.sendTokenAmount&&((t=this.token)!=null&&t.price)&&(this.sendTokenAmount*this.token.price||(this.message=f.INCORRECT_VALUE)),this.token||(this.message=f.SELECT_TOKEN)}buttonTemplate(){const t=!this.message.startsWith(f.PREVIEW_SEND),i=this.message===f.INSUFFICIENT_FUNDS,r=!!this.params;return i&&!r?c`
|
|
235
235
|
<wui-flex .margin=${["4","0","0","0"]} flexDirection="column" gap="4">
|
|
236
236
|
<wui-button
|
|
237
237
|
@click=${this.onFundWalletClick.bind(this)}
|
|
@@ -265,7 +265,7 @@ ${this.value??""}</textarea
|
|
|
265
265
|
>
|
|
266
266
|
${this.message}
|
|
267
267
|
</wui-button>
|
|
268
|
-
</wui-flex>`}async handleSendParameters(){if(this.loading=!0,!this.params){this.loading=!1;return}const t=Number(this.params.amount);if(isNaN(t)){y.showError("Invalid amount"),this.loading=!1;return}const{namespace:i,chainId:r,assetAddress:o}=this.params;if(!
|
|
268
|
+
</wui-flex>`}async handleSendParameters(){if(this.loading=!0,!this.params){this.loading=!1;return}const t=Number(this.params.amount);if(isNaN(t)){y.showError("Invalid amount"),this.loading=!1;return}const{namespace:i,chainId:r,assetAddress:o}=this.params;if(!Q.SEND_PARAMS_SUPPORTED_CHAINS.includes(i)){y.showError(`Chain "${i}" is not supported for send parameters`),this.loading=!1;return}const n=g.getCaipNetworkById(r,i);if(!n){y.showError(`Network with id "${r}" not found`),this.loading=!1;return}try{const{balance:s,name:a,symbol:W,decimals:V}=await X.fetchERC20Balance({caipAddress:this.caipAddress,assetAddress:o,caipNetwork:n});if(!a||!W||!V||!s){y.showError("Token not found");return}l.setToken({name:a,symbol:W,chainId:n.id.toString(),address:`${n.chainNamespace}:${n.id}:${o}`,value:0,price:0,quantity:{decimals:V.toString(),numeric:s.toString()},iconUrl:K.getTokenImage(W)??""}),l.setTokenAmount(t),l.setReceiverAddress(this.params.to)}catch(s){console.error("Failed to load token information:",s),y.showError("Failed to load token information")}finally{this.loading=!1}}};p.styles=ne;w([u()],p.prototype,"token",void 0);w([u()],p.prototype,"sendTokenAmount",void 0);w([u()],p.prototype,"receiverAddress",void 0);w([u()],p.prototype,"receiverProfileName",void 0);w([u()],p.prototype,"loading",void 0);w([u()],p.prototype,"params",void 0);w([u()],p.prototype,"caipAddress",void 0);w([u()],p.prototype,"message",void 0);w([u()],p.prototype,"disconnecting",void 0);p=w([v("w3m-wallet-send-view")],p);const re=b`
|
|
269
269
|
.contentContainer {
|
|
270
270
|
height: 440px;
|
|
271
271
|
overflow: scroll;
|
|
@@ -285,7 +285,7 @@ ${this.value??""}</textarea
|
|
|
285
285
|
<wui-flex flexDirection="column">
|
|
286
286
|
${this.templateSearchInput()} <wui-separator></wui-separator> ${this.templateTokens()}
|
|
287
287
|
</wui-flex>
|
|
288
|
-
`}async fetchBalancesAndNetworkPrice(){var t;(!this.tokenBalances||((t=this.tokenBalances)==null?void 0:t.length)===0)&&(await this.fetchBalances(),await this.fetchNetworkPrice())}async fetchBalances(){await l.fetchTokenBalance(),l.fetchNetworkBalance()}async fetchNetworkPrice(){await
|
|
288
|
+
`}async fetchBalancesAndNetworkPrice(){var t;(!this.tokenBalances||((t=this.tokenBalances)==null?void 0:t.length)===0)&&(await this.fetchBalances(),await this.fetchNetworkPrice())}async fetchBalances(){await l.fetchTokenBalance(),l.fetchNetworkBalance()}async fetchNetworkPrice(){await G.getNetworkTokenPrice()}templateSearchInput(){return c`
|
|
289
289
|
<wui-flex gap="2" padding="3">
|
|
290
290
|
<wui-input-text
|
|
291
291
|
@inputChange=${this.onInputChange.bind(this)}
|
|
@@ -295,7 +295,7 @@ ${this.value??""}</textarea
|
|
|
295
295
|
icon="search"
|
|
296
296
|
></wui-input-text>
|
|
297
297
|
</wui-flex>
|
|
298
|
-
`}templateTokens(){var t,i;return this.tokens=(t=this.tokenBalances)==null?void 0:t.filter(r=>{var o;return r.chainId===((o=
|
|
298
|
+
`}templateTokens(){var t,i;return this.tokens=(t=this.tokenBalances)==null?void 0:t.filter(r=>{var o;return r.chainId===((o=g.state.activeCaipNetwork)==null?void 0:o.caipNetworkId)}),this.search?this.filteredTokens=(i=this.tokenBalances)==null?void 0:i.filter(r=>r.name.toLowerCase().includes(this.search.toLowerCase())):this.filteredTokens=this.tokens,c`
|
|
299
299
|
<wui-flex
|
|
300
300
|
class="contentContainer"
|
|
301
301
|
flexDirection="column"
|
|
@@ -338,7 +338,7 @@ ${this.value??""}</textarea
|
|
|
338
338
|
</wui-flex>`}
|
|
339
339
|
</wui-flex>
|
|
340
340
|
</wui-flex>
|
|
341
|
-
`}onBuyClick(){h.push("OnRampProviders")}onInputChange(t){this.onDebouncedSearch(t.detail)}handleTokenClick(t){l.setToken(t),l.setTokenAmount(void 0),h.goBack()}};A.styles=
|
|
341
|
+
`}onBuyClick(){h.push("OnRampProviders")}onInputChange(t){this.onDebouncedSearch(t.detail)}handleTokenClick(t){l.setToken(t),l.setTokenAmount(void 0),h.goBack()}};A.styles=re;I([u()],A.prototype,"tokenBalances",void 0);I([u()],A.prototype,"tokens",void 0);I([u()],A.prototype,"filteredTokens",void 0);I([u()],A.prototype,"search",void 0);A=I([v("w3m-wallet-send-select-token-view")],A);const oe=b`
|
|
342
342
|
:host {
|
|
343
343
|
height: 32px;
|
|
344
344
|
display: flex;
|
|
@@ -361,7 +361,7 @@ ${this.value??""}</textarea
|
|
|
361
361
|
border-radius: ${({borderRadius:e})=>e[16]};
|
|
362
362
|
}
|
|
363
363
|
`;var _=globalThis&&globalThis.__decorate||function(e,t,i,r){var o=arguments.length,n=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n};let C=class extends x{constructor(){super(...arguments),this.text=""}render(){return c`<wui-text variant="lg-regular" color="primary">${this.text}</wui-text>
|
|
364
|
-
${this.imageTemplate()}`}imageTemplate(){return this.address?c`<wui-avatar address=${this.address} .imageSrc=${this.imageSrc}></wui-avatar>`:this.imageSrc?c`<wui-image src=${this.imageSrc}></wui-image>`:c`<wui-icon size="lg" color="inverse" name="networkPlaceholder"></wui-icon>`}};C.styles=[
|
|
364
|
+
${this.imageTemplate()}`}imageTemplate(){return this.address?c`<wui-avatar address=${this.address} .imageSrc=${this.imageSrc}></wui-avatar>`:this.imageSrc?c`<wui-image src=${this.imageSrc}></wui-image>`:c`<wui-icon size="lg" color="inverse" name="networkPlaceholder"></wui-icon>`}};C.styles=[Y,J,oe];_([d({type:String})],C.prototype,"text",void 0);_([d({type:String})],C.prototype,"address",void 0);_([d({type:String})],C.prototype,"imageSrc",void 0);C=_([v("wui-preview-item")],C);const se=b`
|
|
365
365
|
:host {
|
|
366
366
|
display: flex;
|
|
367
367
|
padding: ${({spacing:e})=>e[4]} ${({spacing:e})=>e[3]};
|
|
@@ -380,12 +380,12 @@ ${this.value??""}</textarea
|
|
|
380
380
|
width: 20px;
|
|
381
381
|
height: 20px;
|
|
382
382
|
}
|
|
383
|
-
`;var
|
|
383
|
+
`;var O=globalThis&&globalThis.__decorate||function(e,t,i,r){var o=arguments.length,n=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n};let S=class extends x{constructor(){super(...arguments),this.imageSrc=void 0,this.textTitle="",this.textValue=void 0}render(){return c`
|
|
384
384
|
<wui-flex justifyContent="space-between" alignItems="center">
|
|
385
385
|
<wui-text variant="lg-regular" color="primary"> ${this.textTitle} </wui-text>
|
|
386
386
|
${this.templateContent()}
|
|
387
387
|
</wui-flex>
|
|
388
|
-
`}templateContent(){return this.imageSrc?c`<wui-image src=${this.imageSrc} alt=${this.textTitle}></wui-image>`:this.textValue?c` <wui-text variant="md-regular" color="secondary"> ${this.textValue} </wui-text>`:c`<wui-icon size="inherit" color="default" name="networkPlaceholder"></wui-icon>`}};S.styles=[
|
|
388
|
+
`}templateContent(){return this.imageSrc?c`<wui-image src=${this.imageSrc} alt=${this.textTitle}></wui-image>`:this.textValue?c` <wui-text variant="md-regular" color="secondary"> ${this.textValue} </wui-text>`:c`<wui-icon size="inherit" color="default" name="networkPlaceholder"></wui-icon>`}};S.styles=[Y,J,se];O([d()],S.prototype,"imageSrc",void 0);O([d()],S.prototype,"textTitle",void 0);O([d()],S.prototype,"textValue",void 0);S=O([v("wui-list-content")],S);const ae=b`
|
|
389
389
|
:host {
|
|
390
390
|
display: flex;
|
|
391
391
|
width: auto;
|
|
@@ -431,11 +431,11 @@ ${this.value??""}</textarea
|
|
|
431
431
|
.network:active {
|
|
432
432
|
background-color: ${({tokens:e})=>e.core.glass010};
|
|
433
433
|
}
|
|
434
|
-
`;var
|
|
434
|
+
`;var B=globalThis&&globalThis.__decorate||function(e,t,i,r){var o=arguments.length,n=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n};let R=class extends x{constructor(){var t;super(...arguments),this.params=(t=h.state.data)==null?void 0:t.send}render(){return c` <wui-text variant="sm-regular" color="secondary">Details</wui-text>
|
|
435
435
|
<wui-flex flexDirection="column" gap="1">
|
|
436
436
|
<wui-list-content
|
|
437
437
|
textTitle="Address"
|
|
438
|
-
textValue=${
|
|
438
|
+
textValue=${N.getTruncateString({string:this.receiverAddress??"",charsStart:4,charsEnd:4,truncate:"middle"})}
|
|
439
439
|
>
|
|
440
440
|
</wui-list-content>
|
|
441
441
|
${this.networkTemplate()}
|
|
@@ -443,8 +443,8 @@ ${this.value??""}</textarea
|
|
|
443
443
|
@click=${()=>this.onNetworkClick(this.caipNetwork)}
|
|
444
444
|
class="network"
|
|
445
445
|
textTitle="Network"
|
|
446
|
-
imageSrc=${ee(
|
|
447
|
-
></wui-list-content>`:null}onNetworkClick(t){t&&!this.params&&h.push("Networks",{network:t})}};
|
|
446
|
+
imageSrc=${ee(K.getNetworkImage(this.caipNetwork))}
|
|
447
|
+
></wui-list-content>`:null}onNetworkClick(t){t&&!this.params&&h.push("Networks",{network:t})}};R.styles=ae;B([d()],R.prototype,"receiverAddress",void 0);B([d({type:Object})],R.prototype,"caipNetwork",void 0);B([u()],R.prototype,"params",void 0);R=B([v("w3m-wallet-send-details")],R);const le=b`
|
|
448
448
|
wui-avatar,
|
|
449
449
|
wui-image {
|
|
450
450
|
display: ruby;
|
|
@@ -464,7 +464,7 @@ ${this.value??""}</textarea
|
|
|
464
464
|
--local-width: 100% !important;
|
|
465
465
|
--local-border-radius: ${({borderRadius:e})=>e[4]} !important;
|
|
466
466
|
}
|
|
467
|
-
`;var k=globalThis&&globalThis.__decorate||function(e,t,i,r){var o=arguments.length,n=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n};let m=class extends x{constructor(){var t;super(),this.unsubscribe=[],this.token=l.state.token,this.sendTokenAmount=l.state.sendTokenAmount,this.receiverAddress=l.state.receiverAddress,this.receiverProfileName=l.state.receiverProfileName,this.receiverProfileImageUrl=l.state.receiverProfileImageUrl,this.caipNetwork=
|
|
467
|
+
`;var k=globalThis&&globalThis.__decorate||function(e,t,i,r){var o=arguments.length,n=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n};let m=class extends x{constructor(){var t;super(),this.unsubscribe=[],this.token=l.state.token,this.sendTokenAmount=l.state.sendTokenAmount,this.receiverAddress=l.state.receiverAddress,this.receiverProfileName=l.state.receiverProfileName,this.receiverProfileImageUrl=l.state.receiverProfileImageUrl,this.caipNetwork=g.state.activeCaipNetwork,this.loading=l.state.loading,this.params=(t=h.state.data)==null?void 0:t.send,this.unsubscribe.push(l.subscribe(i=>{this.token=i.token,this.sendTokenAmount=i.sendTokenAmount,this.receiverAddress=i.receiverAddress,this.receiverProfileName=i.receiverProfileName,this.receiverProfileImageUrl=i.receiverProfileImageUrl,this.loading=i.loading}),g.subscribeKey("activeCaipNetwork",i=>this.caipNetwork=i))}disconnectedCallback(){this.unsubscribe.forEach(t=>t())}render(){var t,i;return c` <wui-flex flexDirection="column" .padding=${["0","4","4","4"]}>
|
|
468
468
|
<wui-flex gap="2" flexDirection="column" .padding=${["0","2","0","2"]}>
|
|
469
469
|
<wui-flex alignItems="center" justifyContent="space-between">
|
|
470
470
|
<wui-flex flexDirection="column" gap="01">
|
|
@@ -472,7 +472,7 @@ ${this.value??""}</textarea
|
|
|
472
472
|
${this.sendValueTemplate()}
|
|
473
473
|
</wui-flex>
|
|
474
474
|
<wui-preview-item
|
|
475
|
-
text="${this.sendTokenAmount?
|
|
475
|
+
text="${this.sendTokenAmount?N.roundNumber(this.sendTokenAmount,6,5):"unknown"} ${(t=this.token)==null?void 0:t.symbol}"
|
|
476
476
|
.imageSrc=${(i=this.token)==null?void 0:i.iconUrl}
|
|
477
477
|
></wui-preview-item>
|
|
478
478
|
</wui-flex>
|
|
@@ -482,7 +482,7 @@ ${this.value??""}</textarea
|
|
|
482
482
|
<wui-flex alignItems="center" justifyContent="space-between">
|
|
483
483
|
<wui-text variant="sm-regular" color="secondary">To</wui-text>
|
|
484
484
|
<wui-preview-item
|
|
485
|
-
text="${this.receiverProfileName?
|
|
485
|
+
text="${this.receiverProfileName?N.getTruncateString({string:this.receiverProfileName,charsStart:20,charsEnd:0,truncate:"end"}):N.getTruncateString({string:this.receiverAddress?this.receiverAddress:"",charsStart:4,charsEnd:4,truncate:"middle"})}"
|
|
486
486
|
address=${this.receiverAddress??""}
|
|
487
487
|
.imageSrc=${this.receiverProfileImageUrl??void 0}
|
|
488
488
|
.isAddress=${!0}
|
|
@@ -520,7 +520,7 @@ ${this.value??""}</textarea
|
|
|
520
520
|
</wui-flex></wui-flex
|
|
521
521
|
>`}sendValueTemplate(){if(!this.params&&this.token&&this.sendTokenAmount){const i=this.token.price*this.sendTokenAmount;return c`<wui-text variant="md-regular" color="primary"
|
|
522
522
|
>$${i.toFixed(2)}</wui-text
|
|
523
|
-
>`}return null}async onSendClick(){if(!this.sendTokenAmount||!this.receiverAddress){y.showError("Please enter a valid amount and receiver address");return}try{await l.sendToken(),this.params?h.reset("WalletSendConfirmed"):(y.showSuccess("Transaction started"),h.replace("Account"))}catch(t){let i="Failed to send transaction
|
|
523
|
+
>`}return null}async onSendClick(){if(!this.sendTokenAmount||!this.receiverAddress){y.showError("Please enter a valid amount and receiver address");return}try{await l.sendToken(),this.params?h.reset("WalletSendConfirmed"):(y.showSuccess("Transaction started"),h.replace("Account"))}catch(t){let i="Failed to send transaction";const r=t instanceof z&&t.originalName===H.PROVIDER_RPC_ERROR_NAME.USER_REJECTED_REQUEST,o=t instanceof z&&t.originalName===H.PROVIDER_RPC_ERROR_NAME.SEND_TRANSACTION_ERROR;(r||o)&&(i=t.message),Z.sendEvent({type:"track",event:r?"SEND_REJECTED":"SEND_ERROR",properties:l.getSdkEventProperties(t)}),y.showError(i)}}onCancelClick(){h.goBack()}};m.styles=le;k([u()],m.prototype,"token",void 0);k([u()],m.prototype,"sendTokenAmount",void 0);k([u()],m.prototype,"receiverAddress",void 0);k([u()],m.prototype,"receiverProfileName",void 0);k([u()],m.prototype,"receiverProfileImageUrl",void 0);k([u()],m.prototype,"caipNetwork",void 0);k([u()],m.prototype,"loading",void 0);k([u()],m.prototype,"params",void 0);m=k([v("w3m-wallet-send-preview-view")],m);const ce=b`
|
|
524
524
|
.icon-box {
|
|
525
525
|
width: 64px;
|
|
526
526
|
height: 64px;
|
|
@@ -529,7 +529,7 @@ ${this.value??""}</textarea
|
|
|
529
529
|
border: 8px solid ${({tokens:e})=>e.theme.borderPrimary};
|
|
530
530
|
border-radius: ${({borderRadius:e})=>e.round};
|
|
531
531
|
}
|
|
532
|
-
`;var
|
|
532
|
+
`;var ue=globalThis&&globalThis.__decorate||function(e,t,i,r){var o=arguments.length,n=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n};let U=class extends x{constructor(){super(),this.unsubscribe=[],this.unsubscribe.push()}render(){return c`
|
|
533
533
|
<wui-flex
|
|
534
534
|
flexDirection="column"
|
|
535
535
|
alignItems="center"
|
|
@@ -551,4 +551,4 @@ ${this.value??""}</textarea
|
|
|
551
551
|
Close
|
|
552
552
|
</wui-button>
|
|
553
553
|
</wui-flex>
|
|
554
|
-
`}onCloseClick(){
|
|
554
|
+
`}onCloseClick(){q.close()}};U.styles=ce;U=ue([v("w3m-send-confirmed-view")],U);export{U as W3mSendConfirmedView,A as W3mSendSelectTokenView,m as W3mWalletSendPreviewView,p as W3mWalletSendView};
|