@dcl/auth-site 4.11.8-22498003597.commit-7ccb296 → 4.11.8-22501291644.commit-343f28f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{ConstantsUtil-DoxZQIte.js → ConstantsUtil-CguEqmp3.js} +1 -1
- package/assets/{ContentfulRichText-XwmfBmtb.js → ContentfulRichText-CeFkPCbD.js} +1 -1
- package/assets/{ExchangeController-BS-dTQaL.js → ExchangeController-BByGMeJQ.js} +1 -1
- package/assets/{HelpersUtil-jEznvZJQ.js → HelpersUtil-Ds2CTyG6.js} +1 -1
- package/assets/{NetworkUtil-BPU9yKk6.js → NetworkUtil-FZWkG1RU.js} +1 -1
- package/assets/{SwapController-DeFTH7Nb.js → SwapController-CRsGMBFb.js} +1 -1
- package/assets/{biconomy-DleobHEm.js → biconomy-CtJBsHIA.js} +1 -1
- package/assets/{ccip-wdBDIasN.js → ccip-C-ouyIF5.js} +1 -1
- package/assets/{data-capture-BpgHXp5-.js → data-capture-B-nUEAGZ.js} +1 -1
- package/assets/{email-qqeoRdxT.js → email-Cy-p9z6y.js} +1 -1
- package/assets/{embedded-wallet-CxJVSG9F.js → embedded-wallet-6KGM69oH.js} +1 -1
- package/assets/{engine-8t3hlpbv.js → engine-1Piw0Zbf.js} +1 -1
- package/assets/{extractIPFS-NtF2fBZG.js → extractIPFS-DtTBczyv.js} +1 -1
- package/assets/{features-BbNCEMx5.js → features-DQOZSdu8.js} +1 -1
- package/assets/{fortmatic-DwciOWJF.js → fortmatic-DW4O9SPu.js} +1 -1
- package/assets/{getInstalledModules-B_BdkrcN.js → getInstalledModules-K9SA0tdl.js} +1 -1
- package/assets/{if-defined-CTyoUr7X.js → if-defined-DE3TW8mw.js} +1 -1
- package/assets/{in-app-wallet-calls-DzSZkW8I.js → in-app-wallet-calls-D2wEgH4-.js} +1 -1
- package/assets/{index-BJnQvBbK.js → index-2NUWNq-e.js} +1 -1
- package/assets/{index-B137f8S3.js → index-2d4WczUl.js} +1 -1
- package/assets/{index-CB1HzxTF.js → index-2lWeQK_r.js} +4 -4
- package/assets/{index-BZaSJtPy.js → index-2o5EGiyn.js} +1 -1
- package/assets/{index-CJctsr3v.js → index-B0att-g3.js} +1 -1
- package/assets/{index-BZ9no0dA.js → index-B2zooIxN.js} +1 -1
- package/assets/{index-BC0t7_0G.js → index-B6xWb7lf.js} +1 -1
- package/assets/{index-F9aNM6RO.js → index-BAjvrHiY.js} +1 -1
- package/assets/{index-BV_r-4RG.js → index-BDzwgixP.js} +1 -1
- package/assets/{index-DkXTh9cm.js → index-BHpQtdjI.js} +1 -1
- package/assets/{index-DGVgUEEi.js → index-Bcs9m4El.js} +1 -1
- package/assets/{index-CbSWIDJJ.js → index-Bj3mNglk.js} +4 -4
- package/assets/{index-DyB7BZdU.js → index-Br7R_xp9.js} +1 -1
- package/assets/{index-BnXA4F_5.js → index-Bu183nZM.js} +2 -2
- package/assets/{index-CPz2M1dp.js → index-BuryhQNW.js} +1 -1
- package/assets/{index-BmqPvMXv.js → index-ByFhTGBg.js} +1 -1
- package/assets/{index-BvpllpAj.js → index-C0IvCYHu.js} +1 -1
- package/assets/{index-Do12eirb.js → index-C4YTqvVw.js} +2 -2
- package/assets/index-C5davOON.css +1 -0
- package/assets/{index-D7Q66Ej9.js → index-CJ9kDJ2F.js} +1 -1
- package/assets/{index-seGc3pgr.js → index-CJxo0Up4.js} +35 -31
- package/assets/{index-TNCchic0.js → index-CUeb7wOZ.js} +1 -1
- package/assets/{index-Ca-KIiwN.js → index-CVLahraz.js} +1 -1
- package/assets/index-CWfg9zaA.js +425 -0
- package/assets/{index-DP67NDHV.js → index-CdQaKjnn.js} +1 -1
- package/assets/{index-CvpAzyaS.js → index-CgeQQb7c.js} +1 -1
- package/assets/{index-CzomHKAA.js → index-CiK_hs1G.js} +1 -1
- package/assets/{index-BDbdqJ_u.js → index-CiwJ64tA.js} +1 -1
- package/assets/{index-CSSfw0Om.js → index-Cj94cVAO.js} +1 -1
- package/assets/{index-BTWKAT8h.js → index-CkAI-5NV.js} +1 -1
- package/assets/{index-IjFd3YqG.js → index-CwqDF18O.js} +1 -1
- package/assets/{index-D7d0JtYr.js → index-D6RCWxfC.js} +1 -1
- package/assets/{index-DxP8xu4y.js → index-D9X9FvqO.js} +1 -1
- package/assets/{index-6nlFjChl.js → index-DEDHRuNr.js} +1 -1
- package/assets/{index-CrW2PY8p.js → index-DLSC2CGn.js} +3 -3
- package/assets/{index-wnopjaUF.js → index-DXZaTPrK.js} +1 -1
- package/assets/{index-BqFU92A5.js → index-Dfe7qOwq.js} +1 -1
- package/assets/{index-BmwRA_LX.js → index-DhbOSghn.js} +1 -1
- package/assets/{index-DFjop9Qi.js → index-MaIKvplQ.js} +1 -1
- package/assets/{index-fo9e9vyj.js → index-Py9aYpAG.js} +1 -1
- package/assets/{index-D3vMsTra.js → index-SFd6Jn3Y.js} +1 -1
- package/assets/{networks-GT-OeK-9.js → networks-DczYG6BV.js} +1 -1
- package/assets/{onramp-5-RzBI55.js → onramp-CK87Zt0D.js} +1 -1
- package/assets/{openzeppelin-BQi5JpNm.js → openzeppelin-HRYQ6c_z.js} +1 -1
- package/assets/{parse-typed-data-D8A5Yic0.js → parse-typed-data-BrDnXf73.js} +1 -1
- package/assets/{passkeys-bFpwuMpE.js → passkeys-CXvKF6ic.js} +1 -1
- package/assets/{pay-with-exchange-Bf4UdPD6.js → pay-with-exchange-Bpdd_nBf.js} +1 -1
- package/assets/{receive-BQqSDAnB.js → receive-DWOxkZK5.js} +1 -1
- package/assets/{ref-BykpTASX.js → ref-aL6exnne.js} +1 -1
- package/assets/{resolveImplementation-CBdftC4q.js → resolveImplementation-CChFG1iH.js} +1 -1
- package/assets/{secp256k1-CTbWFjaz.js → secp256k1-BDr9z-Bs.js} +1 -1
- package/assets/{send-DdMpMKRM.js → send-BxyhiD2o.js} +1 -1
- package/assets/{send-eip712-transaction-n47Uo9fW.js → send-eip712-transaction-BPQxJkAi.js} +1 -1
- package/assets/{send-gasless-transaction-B4YZQjMY.js → send-gasless-transaction-DrfYbwhB.js} +2 -2
- package/assets/{socials-BaAAiFer.js → socials-CSGPl4-a.js} +1 -1
- package/assets/{swaps-Cn-YxwMz.js → swaps-JB3FTjNU.js} +1 -1
- package/assets/{thirdweb-Y_ISxvhy.js → thirdweb-kSueW068.js} +3 -3
- package/assets/{transactions-Cs5VMfCd.js → transactions-BM6NSWC6.js} +1 -1
- package/assets/ui-J715VokE.js +709 -0
- package/assets/{vendor-BcrylrN5.js → vendor-zgEm8oQ8.js} +2 -2
- package/assets/{verifyHash-BSDP6rv7.js → verifyHash-BCQxIXZu.js} +3 -3
- package/assets/{w3m-modal-DPggH4JX.js → w3m-modal-B0BpV_VO.js} +1 -1
- package/assets/{web-connector-DRbbwweq.js → web-connector-BXYL2_g9.js} +3 -3
- package/index.html +5 -6
- package/package.json +3 -3
- package/assets/1949206f0b8ec64d-qrlN31md.svg +0 -9
- package/assets/805322223c96be40-CKnEN-kZ.png +0 -0
- package/assets/brand-icons-Cu_C0hZ4.svg +0 -1008
- package/assets/brand-icons-F3SPCeH1.woff +0 -0
- package/assets/brand-icons-XL9sxUpA.woff2 +0 -0
- package/assets/brand-icons-sqJ2Pg7a.eot +0 -0
- package/assets/brand-icons-ubhWoxly.ttf +0 -0
- package/assets/da0e2040ea4c51ef-rAUxngFb.svg +0 -1
- package/assets/flags-DOLqOU7Y.png +0 -0
- package/assets/icons-BOCtAERH.woff +0 -0
- package/assets/icons-CHzK1VD9.eot +0 -0
- package/assets/icons-D29ZQHHw.ttf +0 -0
- package/assets/icons-Du6TOHnR.woff2 +0 -0
- package/assets/icons-RwhydX30.svg +0 -1518
- package/assets/index-Bqrm_Dw0.css +0 -1
- package/assets/index-E7egrzpr.js +0 -425
- package/assets/outline-icons-BfdLr8tr.svg +0 -366
- package/assets/outline-icons-DD8jm0uy.ttf +0 -0
- package/assets/outline-icons-DInHoiqI.woff2 +0 -0
- package/assets/outline-icons-LX8adJ4n.eot +0 -0
- package/assets/outline-icons-aQ88nltS.woff +0 -0
- package/assets/ui-B2abKe7e.js +0 -745
- package/assets/ui-SODXwnNI.css +0 -346
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as m,l,m as c}from"./index-
|
|
1
|
+
import{j as m,l,m as c}from"./index-2lWeQK_r.js";import{n as h,c as f}from"./index-D9X9FvqO.js";const p=m`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
background: linear-gradient(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as C,r as O,k as P,l as b,m as l,n as E,H as g,R as S,y as x,a as R,S as $}from"./index-
|
|
1
|
+
import{j as C,r as O,k as P,l as b,m as l,n as E,H as g,R as S,y as x,a as R,S as $}from"./index-2lWeQK_r.js";import{n as h,c as v,r as d,U as T}from"./index-D9X9FvqO.js";import"./index-B6xWb7lf.js";import"./index-Br7R_xp9.js";const L=C`
|
|
2
2
|
:host {
|
|
3
3
|
position: relative;
|
|
4
4
|
display: inline-block;
|
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
import{j as oe,l as se,m as w,r as Ce,C as pe,a7 as F,a as xe,R as Fe,O as Re,E as Ne,q as Le,W as je}from"./index-2lWeQK_r.js";import{U as Te,n as I,r as Q,c as ae}from"./index-D9X9FvqO.js";import{g as ye}from"./thirdweb-kSueW068.js";import"./index-BuryhQNW.js";import"./index-B6xWb7lf.js";import{o as ke}from"./if-defined-DE3TW8mw.js";import"./index-DEDHRuNr.js";import"./index-CUeb7wOZ.js";var me={exports:{}},ze=me.exports,Ie;function Ue(){return Ie||(Ie=1,(function(e,t){(function(i,r){e.exports=r()})(ze,(function(){var i=1e3,r=6e4,o=36e5,n="millisecond",s="second",u="minute",g="hour",p="day",y="week",$="month",j="quarter",D="year",R="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+)?$/,ee=/\[([^\]]+)]|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,te={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(h){var l=["th","st","nd","rd"],a=h%100;return"["+h+(l[(a-20)%10]||l[a]||l[0])+"]"}},ie=function(h,l,a){var d=String(h);return!d||d.length>=l?h:""+Array(l+1-d.length).join(a)+h},q={s:ie,z:function(h){var l=-h.utcOffset(),a=Math.abs(l),d=Math.floor(a/60),c=a%60;return(l<=0?"+":"-")+ie(d,2,"0")+":"+ie(c,2,"0")},m:function h(l,a){if(l.date()<a.date())return-h(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(h){return h<0?Math.ceil(h)||0:Math.floor(h)},p:function(h){return{M:$,y:D,w:y,d:p,D:R,h:g,m:u,s,ms:n,Q:j}[h]||String(h||"").toLowerCase().replace(/s$/,"")},u:function(h){return h===void 0}},S="en",O={};O[S]=te;var V="$isDayjsObject",B=function(h){return h instanceof le||!(!h||!h[V])},ce=function h(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 h(f[0])}else{var v=l.name;O[v]=l,c=v}return!d&&c&&(S=c),c||!d&&S},_=function(h,l){if(B(h))return h.clone();var a=typeof l=="object"?l:{};return a.date=h,a.args=arguments,new le(a)},x=q;x.l=ce,x.i=B,x.w=function(h,l){return _(h,{locale:l.$L,utc:l.$u,x:l.$x,$offset:l.$offset})};var le=(function(){function h(a){this.$L=ce(a.locale,null,!0),this.parse(a),this.$x=this.$x||a.x||{},this[V]=!0}var l=h.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 v=f[2]-1||0,b=(f[7]||"0").substring(0,3);return m?new Date(Date.UTC(f[1],v,f[3]||1,f[4]||0,f[5]||0,f[6]||0,b)):new Date(f[1],v,f[3]||1,f[4]||0,f[5]||0,f[6]||0,b)}}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=_(a);return this.startOf(d)<=c&&c<=this.endOf(d)},l.isAfter=function(a,d){return _(a)<this.startOf(d)},l.isBefore=function(a,d){return this.endOf(d)<_(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),v=function(P,A){var z=x.w(c.$u?Date.UTC(c.$y,A,P):new Date(c.$y,A,P),c);return m?z:z.endOf(p)},b=function(P,A){return x.w(c.toDate()[P].apply(c.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(A)),c)},T=this.$W,M=this.$M,C=this.$D,J="set"+(this.$u?"UTC":"");switch(f){case D:return m?v(1,0):v(31,11);case $:return m?v(1,M):v(0,M+1);case y:var W=this.$locale().weekStart||0,re=(T<W?T+7:T)-W;return v(m?C-re:C+(6-re),M);case p:case R:return b(J+"Hours",0);case g:return b(J+"Minutes",1);case u:return b(J+"Seconds",2);case s:return b(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":""),v=(c={},c[p]=f+"Date",c[R]=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],b=m===p?this.$D+(d-this.$W):d;if(m===$||m===D){var T=this.clone().set(R,1);T.$d[v](b),T.init(),this.$d=T.set(R,Math.min(this.$D,T.daysInMonth())).$d}else v&&this.$d[v](b);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),v=function(M){var C=_(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===p)return v(1);if(f===y)return v(7);var b=(c={},c[u]=r,c[g]=o,c[s]=i,c)[f]||1,T=this.$d.getTime()+a*b;return x.w(T,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),v=this.$H,b=this.$m,T=this.$M,M=c.weekdays,C=c.months,J=c.meridiem,W=function(A,z,ne,de){return A&&(A[z]||A(d,m))||ne[z].slice(0,de)},re=function(A){return x.s(v%12||12,A,"0")},P=J||function(A,z,ne){var de=A<12?"AM":"PM";return ne?de.toLowerCase():de};return m.replace(ee,(function(A,z){return z||(function(ne){switch(ne){case"YY":return String(d.$y).slice(-2);case"YYYY":return x.s(d.$y,4,"0");case"M":return T+1;case"MM":return x.s(T+1,2,"0");case"MMM":return W(c.monthsShort,T,C,3);case"MMMM":return W(C,T);case"D":return d.$D;case"DD":return x.s(d.$D,2,"0");case"d":return String(d.$W);case"dd":return W(c.weekdaysMin,d.$W,M,2);case"ddd":return W(c.weekdaysShort,d.$W,M,3);case"dddd":return M[d.$W];case"H":return String(v);case"HH":return x.s(v,2,"0");case"h":return re(1);case"hh":return re(2);case"a":return P(v,b,!0);case"A":return P(v,b,!1);case"m":return String(b);case"mm":return x.s(b,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,v=x.p(d),b=_(a),T=(b.utcOffset()-this.utcOffset())*r,M=this-b,C=function(){return x.m(f,b)};switch(v){case D:m=C()/12;break;case $:m=C();break;case j:m=C()/3;break;case y:m=(M-T)/6048e5;break;case p:m=(M-T)/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=ce(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()},h})(),_e=le.prototype;return _.prototype=_e,[["$ms",n],["$s",s],["$m",u],["$H",g],["$W",p],["$M",$],["$y",D],["$D",R]].forEach((function(h){_e[h[1]]=function(l){return this.$g(l,h[0],h[1])}})),_.extend=function(h,l){return h.$i||(h(l,le,_),h.$i=!0),_},_.locale=ce,_.isDayjs=B,_.unix=function(h){return _(1e3*h)},_.en=O[S],_.Ls=O,_.p={},_}))})(me)),me.exports}var Ee=Ue();const K=ye(Ee);var fe={exports:{}},Ye=fe.exports,Me;function qe(){return Me||(Me=1,(function(e,t){(function(i,r){e.exports=r()})(Ye,(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])+"]"}}}))})(fe)),fe.exports}var Be=qe();const We=ye(Be);var ge={exports:{}},Pe=ge.exports,Se;function He(){return Se||(Se=1,(function(e,t){(function(i,r){e.exports=r()})(Pe,(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(p,y,$,j){return n.fromToBase(p,y,$,j)}o.en.relativeTime=s,n.fromToBase=function(p,y,$,j,D){for(var R,Y,X,ee=$.$locale().relativeTime||s,te=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"}],ie=te.length,q=0;q<ie;q+=1){var S=te[q];S.d&&(R=j?o(p).diff($,S.d,!0):$.diff(p,S.d,!0));var O=(i.rounding||Math.round)(Math.abs(R));if(X=R>0,O<=S.r||!S.r){O<=1&&q>0&&(S=te[q-1]);var V=ee[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 B=X?ee.future:ee.past;return typeof B=="function"?B(Y):B.replace("%s",Y)},n.to=function(p,y){return u(p,y,this,!0)},n.from=function(p,y){return u(p,y,this)};var g=function(p){return p.$u?o.utc():o()};n.toNow=function(p){return this.to(g(this),p)},n.fromNow=function(p){return this.from(g(this),p)}}}))})(ge)),ge.exports}var Ge=He();const Ve=ye(Ge);var we={exports:{}},Je=we.exports,Oe;function Ze(){return Oe||(Oe=1,(function(e,t){(function(i,r){e.exports=r()})(Je,(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}}}))})(we)),we.exports}var Ke=Ze();const Qe=ye(Ke);K.extend(Ve);K.extend(Qe);const Xe={...We,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"}},et=["January","February","March","April","May","June","July","August","September","October","November","December"];K.locale("en-web3-modal",Xe);const $e={getMonthNameByIndex(e){return et[e]},getYear(e=new Date().toISOString()){return K(e).year()},getRelativeDateFromNow(e){return K(e).locale("en-web3-modal").fromNow(!0)},formatDate(e,t="DD MMM"){return K(e).format(t)}},tt=3,he=.1,it=["receive","deposit","borrow","claim"],rt=["withdraw","repay","burn"],Z={getTransactionGroupTitle(e,t){const i=$e.getYear(),r=$e.getMonthNameByIndex(t);return e===i?r:`${r} ${e}`},getTransactionImages(e){const[t]=e;return(e==null?void 0:e.length)>1?e.map(r=>this.getTransactionImage(r)):[this.getTransactionImage(t)]},getTransactionImage(e){return{type:Z.getTransactionTransferTokenType(e),url:Z.getTransactionImageURL(e)}},getTransactionImageURL(e){var o,n,s,u,g;let t;const i=!!(e!=null&&e.nft_info),r=!!(e!=null&&e.fungible_info);return e&&i?t=(s=(n=(o=e==null?void 0:e.nft_info)==null?void 0:o.content)==null?void 0:n.preview)==null?void 0:s.url:e&&r&&(t=(g=(u=e==null?void 0:e.fungible_info)==null?void 0:u.icon)==null?void 0:g.url),t},getTransactionTransferTokenType(e){if(e!=null&&e.fungible_info)return"FUNGIBLE";if(e!=null&&e.nft_info)return"NFT"},getTransactionDescriptions(e,t){var j;const i=(j=e==null?void 0:e.metadata)==null?void 0:j.operationType,r=t||(e==null?void 0:e.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 p=this.getTransferDescription(u),y=this.getTransferDescription(g);if(!o)return(i==="send"||i==="receive")&&s?(p=Te.getTruncateString({string:e==null?void 0:e.metadata.sentFrom,charsStart:4,charsEnd:6,truncate:"middle"}),y=Te.getTruncateString({string:e==null?void 0:e.metadata.sentTo,charsStart:4,charsEnd:6,truncate:"middle"}),[p,y]):[e.metadata.status];if(n)return r==null?void 0:r.map(D=>this.getTransferDescription(D));let $="";return it.includes(i)?$="+":rt.includes(i)&&($="-"),p=$.concat(p),[p]},getTransferDescription(e){var i;let t="";return e&&(e!=null&&e.nft_info?t=((i=e==null?void 0:e.nft_info)==null?void 0:i.name)||"-":e!=null&&e.fungible_info&&(t=this.getFungibleTransferDescription(e)||"-")),t},getFungibleTransferDescription(e){var r;return e?[this.getQuantityFixedValue(e==null?void 0:e.quantity.numeric),(r=e==null?void 0:e.fungible_info)==null?void 0:r.symbol].join(" ").trim():null},mergeTransfers(e){if((e==null?void 0:e.length)<=1)return e;const i=this.filterGasFeeTransfers(e).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:p,direction:y})=>s&&s===(p==null?void 0:p.name)&&y===n.direction);if(u){const p=Number(u.quantity.numeric)+Number(n.quantity.numeric);u.quantity.numeric=p.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(e){const t=e==null?void 0:e.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(t??{}).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 p=Number(s.quantity.numeric),y=Number(u.quantity.numeric);y<p*he?(i.push(s),g=!0):p<y*he&&(i.push(u),g=!0)}g||i.push(...r)}else{const s=this.filterGasFeesFromTokenGroup(r);i.push(...s)}}}),e==null||e.forEach(r=>{var o;(o=r==null?void 0:r.fungible_info)!=null&&o.name||i.push(r)}),i},filterGasFeesFromTokenGroup(e){if(e.length<=1)return e;const t=e==null?void 0:e.map(u=>Number(u.quantity.numeric)),i=Math.max(...t),r=Math.min(...t),o=.01;if(r<i*o)return e==null?void 0:e.filter(g=>Number(g.quantity.numeric)>=i*o);const n=e==null?void 0:e.filter(u=>u.direction==="in"),s=e==null?void 0:e.filter(u=>u.direction==="out");if(n.length===1&&s.length===1){const u=n[0],g=s[0];if(u&&g){const p=Number(u.quantity.numeric),y=Number(g.quantity.numeric);if(y<p*he)return[u];if(p<y*he)return[g]}}return e},getQuantityFixedValue(e){return e?parseFloat(e).toFixed(tt):null}};var be;(function(e){e.approve="approved",e.bought="bought",e.borrow="borrowed",e.burn="burnt",e.cancel="canceled",e.claim="claimed",e.deploy="deployed",e.deposit="deposited",e.execute="executed",e.mint="minted",e.receive="received",e.repay="repaid",e.send="sent",e.sell="sold",e.stake="staked",e.trade="swapped",e.unstake="unstaked",e.withdraw="withdrawn"})(be||(be={}));const nt=oe`
|
|
2
|
+
:host > wui-flex {
|
|
3
|
+
display: flex;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
align-items: center;
|
|
6
|
+
position: relative;
|
|
7
|
+
width: 40px;
|
|
8
|
+
height: 40px;
|
|
9
|
+
box-shadow: inset 0 0 0 1px ${({tokens:e})=>e.core.glass010};
|
|
10
|
+
background-color: ${({tokens:e})=>e.theme.foregroundPrimary};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:host([data-no-images='true']) > wui-flex {
|
|
14
|
+
background-color: ${({tokens:e})=>e.theme.foregroundPrimary};
|
|
15
|
+
border-radius: ${({borderRadius:e})=>e[3]} !important;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:host > wui-flex wui-image {
|
|
19
|
+
display: block;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:host > wui-flex,
|
|
23
|
+
:host > wui-flex wui-image,
|
|
24
|
+
.swap-images-container,
|
|
25
|
+
.swap-images-container.nft,
|
|
26
|
+
wui-image.nft {
|
|
27
|
+
border-top-left-radius: var(--local-left-border-radius);
|
|
28
|
+
border-top-right-radius: var(--local-right-border-radius);
|
|
29
|
+
border-bottom-left-radius: var(--local-left-border-radius);
|
|
30
|
+
border-bottom-right-radius: var(--local-right-border-radius);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.swap-images-container {
|
|
34
|
+
position: relative;
|
|
35
|
+
width: 40px;
|
|
36
|
+
height: 40px;
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.swap-images-container wui-image:first-child {
|
|
41
|
+
position: absolute;
|
|
42
|
+
width: 40px;
|
|
43
|
+
height: 40px;
|
|
44
|
+
top: 0;
|
|
45
|
+
left: 0%;
|
|
46
|
+
clip-path: inset(0px calc(50% + 2px) 0px 0%);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.swap-images-container wui-image:last-child {
|
|
50
|
+
clip-path: inset(0px 0px 0px calc(50% + 2px));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.swap-fallback-container {
|
|
54
|
+
position: absolute;
|
|
55
|
+
inset: 0;
|
|
56
|
+
width: 40px;
|
|
57
|
+
height: 40px;
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.swap-fallback-container.first {
|
|
64
|
+
clip-path: inset(0px calc(50% + 2px) 0px 0%);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.swap-fallback-container.last {
|
|
68
|
+
clip-path: inset(0px 0px 0px calc(50% + 2px));
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
wui-flex.status-box {
|
|
72
|
+
position: absolute;
|
|
73
|
+
right: 0;
|
|
74
|
+
bottom: 0;
|
|
75
|
+
transform: translate(20%, 20%);
|
|
76
|
+
border-radius: ${({borderRadius:e})=>e[4]};
|
|
77
|
+
background-color: ${({tokens:e})=>e.theme.backgroundPrimary};
|
|
78
|
+
box-shadow: 0 0 0 2px ${({tokens:e})=>e.theme.backgroundPrimary};
|
|
79
|
+
overflow: hidden;
|
|
80
|
+
width: 16px;
|
|
81
|
+
height: 16px;
|
|
82
|
+
}
|
|
83
|
+
`;var U=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 u=e.length-1;u>=0;u--)(s=e[u])&&(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 N=class extends se{constructor(){super(...arguments),this.images=[],this.secondImage={type:void 0,url:""},this.failedImageUrls=new Set}handleImageError(t){return i=>{i.stopPropagation(),this.failedImageUrls.add(t),this.requestUpdate()}}render(){const[t,i]=this.images;this.images.length||(this.dataset.noImages="true");const r=(t==null?void 0:t.type)==="NFT",o=i!=null&&i.url?i.type==="NFT":r,n=r?"var(--apkt-borderRadius-3)":"var(--apkt-borderRadius-5)",s=o?"var(--apkt-borderRadius-3)":"var(--apkt-borderRadius-5)";return this.style.cssText=`
|
|
84
|
+
--local-left-border-radius: ${n};
|
|
85
|
+
--local-right-border-radius: ${s};
|
|
86
|
+
`,w`<wui-flex> ${this.templateVisual()} ${this.templateIcon()} </wui-flex>`}templateVisual(){const[t,i]=this.images;return this.images.length===2&&(t!=null&&t.url||i!=null&&i.url)?this.renderSwapImages(t,i):t!=null&&t.url&&!this.failedImageUrls.has(t.url)?this.renderSingleImage(t):(t==null?void 0:t.type)==="NFT"?this.renderPlaceholderIcon("nftPlaceholder"):this.renderPlaceholderIcon("coinPlaceholder")}renderSwapImages(t,i){return w`<div class="swap-images-container">
|
|
87
|
+
${t!=null&&t.url?this.renderImageOrFallback(t,"first",!0):null}
|
|
88
|
+
${i!=null&&i.url?this.renderImageOrFallback(i,"last",!0):null}
|
|
89
|
+
</div>`}renderSingleImage(t){return this.renderImageOrFallback(t,void 0,!1)}renderImageOrFallback(t,i,r=!1){return t.url?this.failedImageUrls.has(t.url)?r&&i?this.renderFallbackIconInContainer(i):this.renderFallbackIcon():w`<wui-image
|
|
90
|
+
src=${t.url}
|
|
91
|
+
alt="Transaction image"
|
|
92
|
+
@onLoadError=${this.handleImageError(t.url)}
|
|
93
|
+
></wui-image>`:null}renderFallbackIconInContainer(t){return w`<div class="swap-fallback-container ${t}">${this.renderFallbackIcon()}</div>`}renderFallbackIcon(){return w`<wui-icon
|
|
94
|
+
size="xl"
|
|
95
|
+
weight="regular"
|
|
96
|
+
color="default"
|
|
97
|
+
name="networkPlaceholder"
|
|
98
|
+
></wui-icon>`}renderPlaceholderIcon(t){return w`<wui-icon size="xl" weight="regular" color="default" name=${t}></wui-icon>`}templateIcon(){let t="accent-primary",i;return i=this.getIcon(),this.status&&(t=this.getStatusColor()),i?w`
|
|
99
|
+
<wui-flex alignItems="center" justifyContent="center" class="status-box">
|
|
100
|
+
<wui-icon-box size="sm" color=${t} icon=${i}></wui-icon-box>
|
|
101
|
+
</wui-flex>
|
|
102
|
+
`:null}getDirectionIcon(){switch(this.direction){case"in":return"arrowBottom";case"out":return"arrowTop";default:return}}getIcon(){return this.onlyDirectionIcon?this.getDirectionIcon():this.type==="trade"?"swapHorizontal":this.type==="approve"?"checkmark":this.type==="cancel"?"close":this.getDirectionIcon()}getStatusColor(){switch(this.status){case"confirmed":return"success";case"failed":return"error";case"pending":return"inverse";default:return"accent-primary"}}};N.styles=[nt];U([I()],N.prototype,"type",void 0);U([I()],N.prototype,"status",void 0);U([I()],N.prototype,"direction",void 0);U([I({type:Boolean})],N.prototype,"onlyDirectionIcon",void 0);U([I({type:Array})],N.prototype,"images",void 0);U([I({type:Object})],N.prototype,"secondImage",void 0);U([Q()],N.prototype,"failedImageUrls",void 0);N=U([ae("wui-transaction-visual")],N);const ot=oe`
|
|
103
|
+
:host {
|
|
104
|
+
width: 100%;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
:host > wui-flex:first-child {
|
|
108
|
+
align-items: center;
|
|
109
|
+
column-gap: ${({spacing:e})=>e[2]};
|
|
110
|
+
padding: ${({spacing:e})=>e[1]} ${({spacing:e})=>e[2]};
|
|
111
|
+
width: 100%;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
:host > wui-flex:first-child wui-text:nth-child(1) {
|
|
115
|
+
text-transform: capitalize;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
wui-transaction-visual {
|
|
119
|
+
width: 40px;
|
|
120
|
+
height: 40px;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
wui-flex {
|
|
124
|
+
flex: 1;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
:host wui-flex wui-flex {
|
|
128
|
+
overflow: hidden;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
:host .description-container wui-text span {
|
|
132
|
+
word-break: break-all;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
:host .description-container wui-text {
|
|
136
|
+
overflow: hidden;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
:host .description-separator-icon {
|
|
140
|
+
margin: 0px 6px;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
:host wui-text > span {
|
|
144
|
+
overflow: hidden;
|
|
145
|
+
display: -webkit-box;
|
|
146
|
+
-webkit-box-orient: vertical;
|
|
147
|
+
-webkit-line-clamp: 1;
|
|
148
|
+
}
|
|
149
|
+
`;var E=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 u=e.length-1;u>=0;u--)(s=e[u])&&(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 L=class extends se{constructor(){super(...arguments),this.type="approve",this.onlyDirectionIcon=!1,this.images=[]}render(){return w`
|
|
150
|
+
<wui-flex>
|
|
151
|
+
<wui-transaction-visual
|
|
152
|
+
.status=${this.status}
|
|
153
|
+
direction=${ke(this.direction)}
|
|
154
|
+
type=${this.type}
|
|
155
|
+
.onlyDirectionIcon=${this.onlyDirectionIcon}
|
|
156
|
+
.images=${this.images}
|
|
157
|
+
></wui-transaction-visual>
|
|
158
|
+
<wui-flex flexDirection="column" gap="1">
|
|
159
|
+
<wui-text variant="lg-medium" color="primary">
|
|
160
|
+
${be[this.type]||this.type}
|
|
161
|
+
</wui-text>
|
|
162
|
+
<wui-flex class="description-container">
|
|
163
|
+
${this.templateDescription()} ${this.templateSecondDescription()}
|
|
164
|
+
</wui-flex>
|
|
165
|
+
</wui-flex>
|
|
166
|
+
<wui-text variant="sm-medium" color="secondary"><span>${this.date}</span></wui-text>
|
|
167
|
+
</wui-flex>
|
|
168
|
+
`}templateDescription(){var i;const t=(i=this.descriptions)==null?void 0:i[0];return t?w`
|
|
169
|
+
<wui-text variant="md-regular" color="secondary">
|
|
170
|
+
<span>${t}</span>
|
|
171
|
+
</wui-text>
|
|
172
|
+
`:null}templateSecondDescription(){var i;const t=(i=this.descriptions)==null?void 0:i[1];return t?w`
|
|
173
|
+
<wui-icon class="description-separator-icon" size="sm" name="arrowRight"></wui-icon>
|
|
174
|
+
<wui-text variant="md-regular" color="secondary">
|
|
175
|
+
<span>${t}</span>
|
|
176
|
+
</wui-text>
|
|
177
|
+
`:null}};L.styles=[Ce,ot];E([I()],L.prototype,"type",void 0);E([I({type:Array})],L.prototype,"descriptions",void 0);E([I()],L.prototype,"date",void 0);E([I({type:Boolean})],L.prototype,"onlyDirectionIcon",void 0);E([I()],L.prototype,"status",void 0);E([I()],L.prototype,"direction",void 0);E([I({type:Array})],L.prototype,"images",void 0);L=E([ae("wui-transaction-list-item")],L);const st=oe`
|
|
178
|
+
wui-flex {
|
|
179
|
+
position: relative;
|
|
180
|
+
display: inline-flex;
|
|
181
|
+
justify-content: center;
|
|
182
|
+
align-items: center;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
wui-image {
|
|
186
|
+
border-radius: ${({borderRadius:e})=>e[128]};
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.fallback-icon {
|
|
190
|
+
color: ${({tokens:e})=>e.theme.iconInverse};
|
|
191
|
+
border-radius: ${({borderRadius:e})=>e[3]};
|
|
192
|
+
background-color: ${({tokens:e})=>e.theme.foregroundPrimary};
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.direction-icon,
|
|
196
|
+
.status-image {
|
|
197
|
+
position: absolute;
|
|
198
|
+
right: 0;
|
|
199
|
+
bottom: 0;
|
|
200
|
+
border-radius: ${({borderRadius:e})=>e[128]};
|
|
201
|
+
border: 2px solid ${({tokens:e})=>e.theme.backgroundPrimary};
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.direction-icon {
|
|
205
|
+
padding: ${({spacing:e})=>e["01"]};
|
|
206
|
+
color: ${({tokens:e})=>e.core.iconSuccess};
|
|
207
|
+
|
|
208
|
+
background-color: color-mix(
|
|
209
|
+
in srgb,
|
|
210
|
+
${({tokens:e})=>e.core.textSuccess} 30%,
|
|
211
|
+
${({tokens:e})=>e.theme.backgroundPrimary} 70%
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/* -- Sizes --------------------------------------------------- */
|
|
216
|
+
:host([data-size='sm']) > wui-image:not(.status-image),
|
|
217
|
+
:host([data-size='sm']) > wui-flex {
|
|
218
|
+
width: 24px;
|
|
219
|
+
height: 24px;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
:host([data-size='lg']) > wui-image:not(.status-image),
|
|
223
|
+
:host([data-size='lg']) > wui-flex {
|
|
224
|
+
width: 40px;
|
|
225
|
+
height: 40px;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
:host([data-size='sm']) .fallback-icon {
|
|
229
|
+
height: 16px;
|
|
230
|
+
width: 16px;
|
|
231
|
+
padding: ${({spacing:e})=>e[1]};
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
:host([data-size='lg']) .fallback-icon {
|
|
235
|
+
height: 32px;
|
|
236
|
+
width: 32px;
|
|
237
|
+
padding: ${({spacing:e})=>e[1]};
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
:host([data-size='sm']) .direction-icon,
|
|
241
|
+
:host([data-size='sm']) .status-image {
|
|
242
|
+
transform: translate(40%, 30%);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
:host([data-size='lg']) .direction-icon,
|
|
246
|
+
:host([data-size='lg']) .status-image {
|
|
247
|
+
transform: translate(40%, 10%);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
:host([data-size='sm']) .status-image {
|
|
251
|
+
height: 14px;
|
|
252
|
+
width: 14px;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
:host([data-size='lg']) .status-image {
|
|
256
|
+
height: 20px;
|
|
257
|
+
width: 20px;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/* -- Crop effects --------------------------------------------------- */
|
|
261
|
+
.swap-crop-left-image,
|
|
262
|
+
.swap-crop-right-image {
|
|
263
|
+
position: absolute;
|
|
264
|
+
top: 0;
|
|
265
|
+
bottom: 0;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.swap-crop-left-image {
|
|
269
|
+
left: 0;
|
|
270
|
+
clip-path: inset(0px calc(50% + 1.5px) 0px 0%);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.swap-crop-right-image {
|
|
274
|
+
right: 0;
|
|
275
|
+
clip-path: inset(0px 0px 0px calc(50% + 1.5px));
|
|
276
|
+
}
|
|
277
|
+
`;var ue=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 u=e.length-1;u>=0;u--)(s=e[u])&&(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 ve={sm:"xxs",lg:"md"};let H=class extends se{constructor(){super(...arguments),this.type="approve",this.size="lg",this.statusImageUrl="",this.images=[]}render(){return w`<wui-flex>${this.templateVisual()} ${this.templateIcon()}</wui-flex>`}templateVisual(){switch(this.dataset.size=this.size,this.type){case"trade":return this.swapTemplate();case"fiat":return this.fiatTemplate();case"unknown":return this.unknownTemplate();default:return this.tokenTemplate()}}swapTemplate(){const[t,i]=this.images;return this.images.length===2&&(t||i)?w`
|
|
278
|
+
<wui-image class="swap-crop-left-image" src=${t} alt="Swap image"></wui-image>
|
|
279
|
+
<wui-image class="swap-crop-right-image" src=${i} alt="Swap image"></wui-image>
|
|
280
|
+
`:t?w`<wui-image src=${t} alt="Swap image"></wui-image>`:null}fiatTemplate(){return w`<wui-icon
|
|
281
|
+
class="fallback-icon"
|
|
282
|
+
size=${ve[this.size]}
|
|
283
|
+
name="dollar"
|
|
284
|
+
></wui-icon>`}unknownTemplate(){return w`<wui-icon
|
|
285
|
+
class="fallback-icon"
|
|
286
|
+
size=${ve[this.size]}
|
|
287
|
+
name="questionMark"
|
|
288
|
+
></wui-icon>`}tokenTemplate(){const[t]=this.images;return t?w`<wui-image src=${t} alt="Token image"></wui-image> `:w`<wui-icon
|
|
289
|
+
class="fallback-icon"
|
|
290
|
+
name=${this.type==="nft"?"image":"coinPlaceholder"}
|
|
291
|
+
></wui-icon>`}templateIcon(){return this.statusImageUrl?w`<wui-image
|
|
292
|
+
class="status-image"
|
|
293
|
+
src=${this.statusImageUrl}
|
|
294
|
+
alt="Status image"
|
|
295
|
+
></wui-image>`:w`<wui-icon
|
|
296
|
+
class="direction-icon"
|
|
297
|
+
size=${ve[this.size]}
|
|
298
|
+
name=${this.getTemplateIcon()}
|
|
299
|
+
></wui-icon>`}getTemplateIcon(){return this.type==="trade"?"arrowClockWise":"arrowBottom"}};H.styles=[st];ue([I()],H.prototype,"type",void 0);ue([I()],H.prototype,"size",void 0);ue([I()],H.prototype,"statusImageUrl",void 0);ue([I({type:Array})],H.prototype,"images",void 0);H=ue([ae("wui-transaction-thumbnail")],H);const at=oe`
|
|
300
|
+
:host > wui-flex:first-child {
|
|
301
|
+
gap: ${({spacing:e})=>e[2]};
|
|
302
|
+
padding: ${({spacing:e})=>e[3]};
|
|
303
|
+
width: 100%;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
wui-flex {
|
|
307
|
+
display: flex;
|
|
308
|
+
flex: 1;
|
|
309
|
+
}
|
|
310
|
+
`;var ut=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 u=e.length-1;u>=0;u--)(s=e[u])&&(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 De=class extends se{render(){return w`
|
|
311
|
+
<wui-flex alignItems="center" .padding=${["1","2","1","2"]}>
|
|
312
|
+
<wui-shimmer width="40px" height="40px" rounded></wui-shimmer>
|
|
313
|
+
<wui-flex flexDirection="column" gap="1">
|
|
314
|
+
<wui-shimmer width="124px" height="16px" rounded></wui-shimmer>
|
|
315
|
+
<wui-shimmer width="60px" height="14px" rounded></wui-shimmer>
|
|
316
|
+
</wui-flex>
|
|
317
|
+
<wui-shimmer width="24px" height="12px" rounded></wui-shimmer>
|
|
318
|
+
</wui-flex>
|
|
319
|
+
`}};De.styles=[Ce,at];De=ut([ae("wui-transaction-list-item-loader")],De);const ct=oe`
|
|
320
|
+
:host {
|
|
321
|
+
min-height: 100%;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.group-container[last-group='true'] {
|
|
325
|
+
padding-bottom: ${({spacing:e})=>e[3]};
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.contentContainer {
|
|
329
|
+
height: 280px;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.contentContainer > wui-icon-box {
|
|
333
|
+
width: 40px;
|
|
334
|
+
height: 40px;
|
|
335
|
+
border-radius: ${({borderRadius:e})=>e[3]};
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.contentContainer > .textContent {
|
|
339
|
+
width: 65%;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.emptyContainer {
|
|
343
|
+
height: 100%;
|
|
344
|
+
}
|
|
345
|
+
`;var G=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 u=e.length-1;u>=0;u--)(s=e[u])&&(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 Ae="last-transaction",lt=7;let k=class extends se{constructor(){super(),this.unsubscribe=[],this.paginationObserver=void 0,this.page="activity",this.caipAddress=pe.state.activeCaipAddress,this.transactionsByYear=F.state.transactionsByYear,this.loading=F.state.loading,this.empty=F.state.empty,this.next=F.state.next,F.clearCursor(),this.unsubscribe.push(pe.subscribeKey("activeCaipAddress",t=>{t&&this.caipAddress!==t&&(F.resetTransactions(),F.fetchTransactions(t)),this.caipAddress=t}),pe.subscribeKey("activeCaipNetwork",()=>{this.updateTransactionView()}),F.subscribe(t=>{this.transactionsByYear=t.transactionsByYear,this.loading=t.loading,this.empty=t.empty,this.next=t.next}))}firstUpdated(){this.updateTransactionView(),this.createPaginationObserver()}updated(){this.setPaginationObserver()}disconnectedCallback(){this.unsubscribe.forEach(t=>t())}render(){return w` ${this.empty?null:this.templateTransactionsByYear()}
|
|
346
|
+
${this.loading?this.templateLoading():null}
|
|
347
|
+
${!this.loading&&this.empty?this.templateEmpty():null}`}updateTransactionView(){F.resetTransactions(),this.caipAddress&&F.fetchTransactions(xe.getPlainAddress(this.caipAddress))}templateTransactionsByYear(){return Object.keys(this.transactionsByYear).sort().reverse().map(i=>{const r=parseInt(i,10),o=new Array(12).fill(null).map((n,s)=>{var p;const u=Z.getTransactionGroupTitle(r,s),g=(p=this.transactionsByYear[r])==null?void 0:p[s];return{groupTitle:u,transactions:g}}).filter(({transactions:n})=>n).reverse();return o.map(({groupTitle:n,transactions:s},u)=>{const g=u===o.length-1;return s?w`
|
|
348
|
+
<wui-flex
|
|
349
|
+
flexDirection="column"
|
|
350
|
+
class="group-container"
|
|
351
|
+
last-group="${g?"true":"false"}"
|
|
352
|
+
data-testid="month-indexes"
|
|
353
|
+
>
|
|
354
|
+
<wui-flex
|
|
355
|
+
alignItems="center"
|
|
356
|
+
flexDirection="row"
|
|
357
|
+
.padding=${["2","3","3","3"]}
|
|
358
|
+
>
|
|
359
|
+
<wui-text variant="md-medium" color="secondary" data-testid="group-title">
|
|
360
|
+
${n}
|
|
361
|
+
</wui-text>
|
|
362
|
+
</wui-flex>
|
|
363
|
+
<wui-flex flexDirection="column" gap="2">
|
|
364
|
+
${this.templateTransactions(s,g)}
|
|
365
|
+
</wui-flex>
|
|
366
|
+
</wui-flex>
|
|
367
|
+
`:null})})}templateRenderTransaction(t,i){const{date:r,descriptions:o,direction:n,images:s,status:u,type:g,transfers:p,isAllNFT:y}=this.getTransactionListItemProps(t);return w`
|
|
368
|
+
<wui-transaction-list-item
|
|
369
|
+
date=${r}
|
|
370
|
+
.direction=${n}
|
|
371
|
+
id=${i&&this.next?Ae:""}
|
|
372
|
+
status=${u}
|
|
373
|
+
type=${g}
|
|
374
|
+
.images=${s}
|
|
375
|
+
.onlyDirectionIcon=${y||p.length===1}
|
|
376
|
+
.descriptions=${o}
|
|
377
|
+
></wui-transaction-list-item>
|
|
378
|
+
`}templateTransactions(t,i){return t.map((r,o)=>{const n=i&&o===t.length-1;return w`${this.templateRenderTransaction(r,n)}`})}emptyStateActivity(){return w`<wui-flex
|
|
379
|
+
class="emptyContainer"
|
|
380
|
+
flexGrow="1"
|
|
381
|
+
flexDirection="column"
|
|
382
|
+
justifyContent="center"
|
|
383
|
+
alignItems="center"
|
|
384
|
+
.padding=${["10","5","10","5"]}
|
|
385
|
+
gap="5"
|
|
386
|
+
data-testid="empty-activity-state"
|
|
387
|
+
>
|
|
388
|
+
<wui-icon-box color="default" icon="wallet" size="xl"></wui-icon-box>
|
|
389
|
+
<wui-flex flexDirection="column" alignItems="center" gap="2">
|
|
390
|
+
<wui-text align="center" variant="lg-medium" color="primary">No Transactions yet</wui-text>
|
|
391
|
+
<wui-text align="center" variant="lg-regular" color="secondary"
|
|
392
|
+
>Start trading on dApps <br />
|
|
393
|
+
to grow your wallet!</wui-text
|
|
394
|
+
>
|
|
395
|
+
</wui-flex>
|
|
396
|
+
</wui-flex>`}emptyStateAccount(){return w`<wui-flex
|
|
397
|
+
class="contentContainer"
|
|
398
|
+
alignItems="center"
|
|
399
|
+
justifyContent="center"
|
|
400
|
+
flexDirection="column"
|
|
401
|
+
gap="4"
|
|
402
|
+
data-testid="empty-account-state"
|
|
403
|
+
>
|
|
404
|
+
<wui-icon-box icon="swapHorizontal" size="lg" color="default"></wui-icon-box>
|
|
405
|
+
<wui-flex
|
|
406
|
+
class="textContent"
|
|
407
|
+
gap="2"
|
|
408
|
+
flexDirection="column"
|
|
409
|
+
justifyContent="center"
|
|
410
|
+
flexDirection="column"
|
|
411
|
+
>
|
|
412
|
+
<wui-text variant="md-regular" align="center" color="primary">No activity yet</wui-text>
|
|
413
|
+
<wui-text variant="sm-regular" align="center" color="secondary"
|
|
414
|
+
>Your next transactions will appear here</wui-text
|
|
415
|
+
>
|
|
416
|
+
</wui-flex>
|
|
417
|
+
<wui-link @click=${this.onReceiveClick.bind(this)}>Trade</wui-link>
|
|
418
|
+
</wui-flex>`}templateEmpty(){return this.page==="account"?w`${this.emptyStateAccount()}`:w`${this.emptyStateActivity()}`}templateLoading(){return this.page==="activity"?w` <wui-flex flexDirection="column" width="100%">
|
|
419
|
+
<wui-flex .padding=${["2","3","3","3"]}>
|
|
420
|
+
<wui-shimmer width="70px" height="16px" rounded></wui-shimmer>
|
|
421
|
+
</wui-flex>
|
|
422
|
+
<wui-flex flexDirection="column" gap="2" width="100%">
|
|
423
|
+
${Array(lt).fill(w` <wui-transaction-list-item-loader></wui-transaction-list-item-loader> `).map(t=>t)}
|
|
424
|
+
</wui-flex>
|
|
425
|
+
</wui-flex>`:null}onReceiveClick(){Fe.push("WalletReceive")}createPaginationObserver(){const{projectId:t}=Re.state;this.paginationObserver=new IntersectionObserver(([i])=>{i!=null&&i.isIntersecting&&!this.loading&&(F.fetchTransactions(xe.getPlainAddress(this.caipAddress)),Ne.sendEvent({type:"track",event:"LOAD_MORE_TRANSACTIONS",properties:{address:xe.getPlainAddress(this.caipAddress),projectId:t,cursor:this.next,isSmartAccount:Le(pe.state.activeChain)===je.ACCOUNT_TYPES.SMART_ACCOUNT}}))},{}),this.setPaginationObserver()}setPaginationObserver(){var i,r,o;(i=this.paginationObserver)==null||i.disconnect();const t=(r=this.shadowRoot)==null?void 0:r.querySelector(`#${Ae}`);t&&((o=this.paginationObserver)==null||o.observe(t))}getTransactionListItemProps(t){var g,p,y;const i=$e.formatDate((g=t==null?void 0:t.metadata)==null?void 0:g.minedAt),r=Z.mergeTransfers((t==null?void 0:t.transfers)||[]),o=Z.getTransactionDescriptions(t,r),n=r==null?void 0:r[0],s=!!n&&(r==null?void 0:r.every($=>!!$.nft_info)),u=Z.getTransactionImages(r);return{date:i,direction:n==null?void 0:n.direction,descriptions:o,isAllNFT:s,images:u,status:(p=t.metadata)==null?void 0:p.status,transfers:r,type:(y=t.metadata)==null?void 0:y.operationType}}};k.styles=ct;G([I()],k.prototype,"page",void 0);G([Q()],k.prototype,"caipAddress",void 0);G([Q()],k.prototype,"transactionsByYear",void 0);G([Q()],k.prototype,"loading",void 0);G([Q()],k.prototype,"empty",void 0);G([Q()],k.prototype,"next",void 0);k=G([ae("w3m-activity-list")],k);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as d,p as h,s as f,i as g,j as w,l as b,m as y}from"./index-
|
|
1
|
+
import{w as d,p as h,s as f,i as g,j as w,l as b,m as y}from"./index-2lWeQK_r.js";import{r as m,c as v}from"./index-D9X9FvqO.js";const o=h({message:"",open:!1,triggerRect:{width:0,height:0,top:0,left:0},variant:"shade"}),x={state:o,subscribe(t){return g(o,()=>t(o))},subscribeKey(t,e){return f(o,t,e)},showTooltip({message:t,triggerRect:e,variant:i}){o.open=!0,o.message=t,o.triggerRect=e,o.variant=i},hide(){o.open=!1,o.message="",o.triggerRect={width:0,height:0,top:0,left:0}}},s=d(x),$=w`
|
|
2
2
|
:host {
|
|
3
3
|
pointer-events: none;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as h,r as f,l as m,m as v}from"./index-
|
|
1
|
+
import{j as h,r as f,l as m,m as v}from"./index-2lWeQK_r.js";import{n as d,c as u,U as p}from"./index-D9X9FvqO.js";import"./index-DEDHRuNr.js";const g=h`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
width: var(--local-width);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as u,r as g,k as m,l as p,m as n}from"./index-
|
|
1
|
+
import{j as u,r as g,k as m,l as p,m as n}from"./index-2lWeQK_r.js";import{n as r,c as x}from"./index-D9X9FvqO.js";import"./index-DEDHRuNr.js";import"./index-CUeb7wOZ.js";const b=u`
|
|
2
2
|
button {
|
|
3
3
|
display: block;
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as v,r as _,k as T,l as f,m as l,C as d,O as m,a1 as ke,z as S,a as y,M as P,n as te,E as C,G as ge,y as b,R as h,d as D,S as A,o as x,q as Me,W as Ve,ak as Qt,al as we,am as J,U as qi,L as I,an as nt,u as Ti,Q as Gi,P as Xi,K as Yi,T as bt,a2 as Jt,a3 as Zt,ao as Qi,
|
|
1
|
+
import{j as v,r as _,k as T,l as f,m as l,C as d,O as m,a1 as ke,z as S,a as y,M as P,n as te,E as C,G as ge,y as b,R as h,d as D,S as A,o as x,q as Me,W as Ve,ak as Qt,al as we,am as J,U as qi,L as I,an as nt,u as Ti,Q as Gi,P as Xi,K as Yi,T as bt,a2 as Jt,a3 as Zt,ao as Qi,a4 as zt,ap as Ji}from"./index-2lWeQK_r.js";import{n as c,c as p,U as B,r as u,b as Ri}from"./index-D9X9FvqO.js";import{o as w}from"./if-defined-DE3TW8mw.js";import"./index-DEDHRuNr.js";import"./index-Br7R_xp9.js";import"./index-CgeQQb7c.js";import"./index-BuryhQNW.js";import{a as Ra,W as Wa}from"./index-2NUWNq-e.js";import"./index-CJ9kDJ2F.js";import"./index-B2zooIxN.js";import"./index-SFd6Jn3Y.js";import{C as E}from"./NetworkUtil-FZWkG1RU.js";import{H as ei}from"./HelpersUtil-Ds2CTyG6.js";import{E as Q}from"./ExchangeController-BByGMeJQ.js";import"./index-CWfg9zaA.js";import"./index-BHpQtdjI.js";import{M as gt}from"./index-BDzwgixP.js";import"./index-CdQaKjnn.js";import"./index-Cj94cVAO.js";import"./index-2o5EGiyn.js";import{e as ti,n as ii}from"./ref-aL6exnne.js";import"./index-BAjvrHiY.js";import{n as Zi}from"./index-Dfe7qOwq.js";import"./index-CUeb7wOZ.js";import"./index-C0IvCYHu.js";import"./index-MaIKvplQ.js";import{O as yt}from"./index-CkAI-5NV.js";import{e as en}from"./index-2d4WczUl.js";import"./index-B6xWb7lf.js";import"./index-Py9aYpAG.js";import"./index-DXZaTPrK.js";import{N as tn}from"./NavigationUtil-DmfK5sOV.js";import"./index-ByFhTGBg.js";import"./thirdweb-kSueW068.js";import"./index-CJxo0Up4.js";import"./ui-J715VokE.js";import"./vendor-zgEm8oQ8.js";import"./ConstantsUtil-CguEqmp3.js";const nn=v`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as u,r as p,l as m,m as h}from"./index-
|
|
1
|
+
import{j as u,r as p,l as m,m as h}from"./index-2lWeQK_r.js";import{n as o,c as f}from"./index-D9X9FvqO.js";import"./index-DEDHRuNr.js";import"./index-BuryhQNW.js";const w=u`
|
|
2
2
|
:host {
|
|
3
3
|
position: relative;
|
|
4
4
|
background-color: ${({tokens:e})=>e.theme.foregroundTertiary};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as g,s as C,i as w,j as k,r as $,l as m,m as d,O as l}from"./index-
|
|
1
|
+
import{p as g,s as C,i as w,j as k,r as $,l as m,m as d,O as l}from"./index-2lWeQK_r.js";import{n as x,c as f,r as v}from"./index-D9X9FvqO.js";import{o as z}from"./if-defined-DE3TW8mw.js";import{e as O,n as _}from"./ref-aL6exnne.js";const h=g({isLegalCheckboxChecked:!1}),u={state:h,subscribe(e){return w(h,()=>e(h))},subscribeKey(e,t){return C(h,e,t)},setIsLegalCheckboxChecked(e){h.isLegalCheckboxChecked=e}},E=k`
|
|
2
2
|
label {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as l,r as p,k as h,l as b,m as y}from"./index-
|
|
1
|
+
import{j as l,r as p,k as h,l as b,m as y}from"./index-2lWeQK_r.js";import{n as r,c as f}from"./index-D9X9FvqO.js";import{o as v}from"./if-defined-DE3TW8mw.js";const m=l`
|
|
2
2
|
:host {
|
|
3
3
|
position: relative;
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as v,s as m,B as g,k as T,T as I,j as e,M as c}from"./ui-
|
|
1
|
+
import{d as v,s as m,B as g,k as T,T as I,j as e,M as c}from"./ui-J715VokE.js";import{u as h,e as y,a as C}from"./vendor-zgEm8oQ8.js";import"./thirdweb-kSueW068.js";import{W as w,T as j,S as E,a as D,R as k,b as f,c as n,d as b,e as p,I as A,D as S,f as V,g as q,C as W,h as R}from"./index-CJxo0Up4.js";const u={hasClaimedName:!0,description:"My description",tutorialStep:4095,name:"MotherHacker",userId:"0xd9b96b5dc720fc52bede1ec3b40a930e15f70ddd",email:"",ethAddress:"0xd9b96b5dc720fc52bede1ec3b40a930e15f70ddd",version:64,avatar:{bodyShape:"urn:decentraland:off-chain:base-avatars:BaseMale",wearables:["urn:decentraland:off-chain:base-avatars:eyebrows_17","urn:decentraland:off-chain:base-avatars:eyes_07","urn:decentraland:off-chain:base-avatars:beard","urn:decentraland:off-chain:base-avatars:mouth_03","urn:decentraland:off-chain:base-avatars:hair_coolshortstyle","urn:decentraland:matic:collections-v2:0xc43914be599f3f8fe4956aa3ec9d6a6aead1edfa:0:84","urn:decentraland:matic:collections-v2:0xd50191baed16bc532feb9d499fdaa805fe01d3ff:6:631873750011343120187508166102022593913370572403294667525865865224","urn:decentraland:matic:collections-v2:0xc43914be599f3f8fe4956aa3ec9d6a6aead1edfa:2:210624583337114373395836055367340864637790190801098222508621955166","urn:decentraland:off-chain:base-avatars:punk_piercing","urn:decentraland:matic:collections-v2:0x6b9ad15f1b82eb1d8b0f13d847f348b56589f83c:0:78"],forceRender:[],emotes:[{urn:"urn:decentraland:matic:collections-v2:0xea954afa4d2a8d0624adfafeb0e5a725ef777774:1:105312291668557186697918027683670432318895095400549111254310977736",slot:0},{urn:"urn:decentraland:matic:collections-v2:0xd50191baed16bc532feb9d499fdaa805fe01d3ff:3:315936875005671560093754083051011296956685286201647333762932932714",slot:1},{urn:"urn:decentraland:matic:collections-v2:0xea954afa4d2a8d0624adfafeb0e5a725ef777774:0:219",slot:2},{urn:"urn:decentraland:matic:collections-v2:0xef832a5183bf2e4099efed4c6ec981b7b41aa545:0:124",slot:3},{slot:4,urn:"hammer"},{urn:"urn:decentraland:matic:collections-v2:0x768c1027b1f1a452ecb8dab017a1e630a75f0d30:1:105312291668557186697918027683670432318895095400549111254310977547",slot:5},{urn:"urn:decentraland:matic:collections-v2:0x83134b69f9af4cb3239e0645281902a0a02adb37:0:100",slot:6},{slot:7,urn:"kiss"},{urn:"urn:decentraland:matic:collections-v2:0xc43914be599f3f8fe4956aa3ec9d6a6aead1edfa:4:421249166674228746791672110734681729275580381602196445017243910359",slot:8},{urn:"urn:decentraland:matic:collections-v2:0x0b472c2c04325a545a43370b54e93c87f3d5badf:3:315936875005671560093754083051011296956685286201647333762932932643",slot:9}],snapshots:{body:"https://peer-ec2.decentraland.org/content/contents/bafkreierlxqaqy2wqjmdf5y46p7xdzg5skpfbeyaixyrzim2hdmimazbce",face256:"https://peer-ec2.decentraland.org/content/contents/bafkreicow7jrxxezwqdkv63lvgahf42khbnuvnm5auam4sp2ph7ghbhyhi"},eyes:{color:{r:.37109375,g:.22265625,b:.1953125}},hair:{color:{r:.234375,g:.12890625,b:.04296875}},skin:{color:{r:.60546875,g:.4609375,b:.35546875}}},interests:[],hasConnectedWeb3:!0,muted:[]},s={contractAddress:"0x0000000000000000000000000000000000000000",description:"Test description",imageUrl:"https://peer.decentraland.org/lambdas/collections/contents/urn:decentraland:matic:collections-v2:0xfef5c99885c3036e591b6e6db52482891834a5f4:0/thumbnail",name:"Test NFT",rarity:v.Rarity.UNIQUE,toAddress:"0x0000000000000000000000000000000000000000",tokenId:"1",recipientProfile:{avatars:[u]}},o={manaAmount:"10 MANA",sceneImageUrl:"https://peer.decentraland.org/content/contents/bafybeietrfx6arffgapt65jkawued7mcsu75uuloodf3drxbvq2pfpggei",sceneName:"Test Scene",toAddress:"0x0000000000000000000000000000000000000000",recipientProfile:{avatars:[u]}},F=T({from:{opacity:0,transform:"translateY(-16px)"},to:{opacity:1,transform:"translateY(0)"}}),M=m(g)(({theme:a})=>({animation:`${F} ${a.transitions.duration.standard}ms ${a.transitions.easing.easeOut}`,backgroundColor:a.palette.background.paper,border:`1px solid ${a.palette.divider}`,borderRadius:a.shape.borderRadius,boxShadow:a.shadows[4],left:a.spacing(2),padding:a.spacing(1.5),position:"fixed",top:a.spacing(2),zIndex:a.zIndex.appBar})),z=m(I)(({theme:a})=>({minWidth:a.spacing(40),"& .MuiInputBase-root":{backgroundColor:a.palette.background.paper}})),r="test-request-id",G=()=>{const a=h(),{viewId:l}=y(),d=C.useMemo(()=>({closeWindow:{label:"CloseWindow",element:e.jsx(R,{})},continueInApp:{label:"ContinueInApp",element:e.jsx(W,{autoStart:!1,onContinue:()=>{},requestId:r,deepLinkUrl:"decentraland://"})},deniedSignIn:{label:"DeniedSignIn",element:e.jsx(q,{requestId:r})},deniedWalletInteraction:{label:"DeniedWalletInteraction",element:e.jsx(V,{})},differentAccountError:{label:"DifferentAccountError",element:e.jsx(S,{requestId:r})},ipValidationError:{label:"IpValidationError",element:e.jsx(A,{requestId:r,reason:"Test reason"})},manaTransfer:{label:"TransferConfirmView (Tip)",element:e.jsx(p,{type:n.TIP,transferData:o,isLoading:!1,onDeny:()=>{},onApprove:async()=>{}})},manaTransferCanceled:{label:"TransferCanceledView (Tip)",element:e.jsx(b,{type:n.TIP,transferData:o})},manaTransferComplete:{label:"TransferCompletedView (Tip)",element:e.jsx(f,{type:n.TIP,transferData:o})},nftTransfer:{label:"TransferConfirmView (Gift)",element:e.jsx(p,{type:n.GIFT,transferData:s,isLoading:!1,onDeny:()=>{},onApprove:async()=>{}})},nftTransferCanceled:{label:"TransferCanceledView (Gift)",element:e.jsx(b,{type:n.GIFT,transferData:s})},nftTransferComplete:{label:"TransferCompletedView (Gift)",element:e.jsx(f,{type:n.GIFT,transferData:s})},recoverError:{label:"RecoverError",element:e.jsx(k,{error:"Test error"})},signingError:{label:"SigningError",element:e.jsx(D,{error:"Test error"})},signInComplete:{label:"SignInComplete",element:e.jsx(E,{})},timeoutError:{label:"TimeoutError",element:e.jsx(j,{requestId:r})},walletInteractionComplete:{label:"WalletInteractionComplete",element:e.jsx(w,{})}}),[o,s]),i=l?d[l]:void 0;return e.jsxs(e.Fragment,{children:[e.jsx(M,{children:e.jsxs(z,{select:!0,label:"View",size:"small",value:l??"",onChange:t=>a(`/testView/${t.target.value}`),children:[e.jsx(c,{value:"",children:"Select a view…"}),Object.entries(d).map(([t,{label:x}])=>e.jsx(c,{value:t,children:x},t))]})}),i?i.element:null]})};export{G as TestViewPage};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/PhArrowCircleDown-B305t-Sh.js","assets/property-C9JG5tag.js","assets/PhArrowClockwise-CJPxQhr_.js","assets/PhArrowDown-C4hT9BVu.js","assets/PhArrowLeft-Way4Cu-r.js","assets/PhArrowRight-Cp5ZME0F.js","assets/PhArrowSquareOut-NnrK69c5.js","assets/PhArrowsDownUp-BjBI4ckC.js","assets/PhArrowsLeftRight-CuLpbKRk.js","assets/PhArrowUp-Dph6j8rm.js","assets/PhArrowUpRight-BpJjRRRh.js","assets/PhArrowsClockwise-CFUT8X7R.js","assets/PhBank-Dchr4XQJ.js","assets/PhBrowser-dUu2TrC1.js","assets/PhCaretDown-78IuKU3V.js","assets/PhCaretLeft-_aiyH7n1.js","assets/PhCaretRight-8zJQEuDX.js","assets/PhCaretUp-CiCxKWwN.js","assets/PhCheck-CcADx8br.js","assets/PhCircleHalf-BYzSzd2h.js","assets/PhClock-UItiXeJq.js","assets/PhCompass-CUy3uA7t.js","assets/PhCopy-C-PDgSlZ.js","assets/PhCreditCard-CWRaUT6F.js","assets/PhCurrencyDollar-Cqla3AXT.js","assets/PhDesktop-BBIPrYLl.js","assets/PhDeviceMobile-BdsPaATg.js","assets/PhDotsThree-BMXCQl-0.js","assets/PhVault-l2PHF38a.js","assets/PhEnvelope-yUsis6yU.js","assets/PhFunnelSimple-Ba7BbWTp.js","assets/PhGlobe-DgLxBk5U.js","assets/PhIdentificationCard-Czjmq9Z3.js","assets/PhImage-BAJ_erz6.js","assets/PhInfo-Cr4DhVUE.js","assets/PhLightbulb-BX_7duTr.js","assets/PhMagnifyingGlass-Mygfryvz.js","assets/PhPaperPlaneRight-BeuCA660.js","assets/PhPlus-BMjcHjsT.js","assets/PhPower-CGffGmdb.js","assets/PhPuzzlePiece-wm_GpVSi.js","assets/PhQrCode-DRwRzXCH.js","assets/PhQuestion-M09j2U0T.js","assets/PhQuestionMark-BP9EMB6h.js","assets/PhSealCheck-BfG80yKn.js","assets/PhSignOut-C5YOWlPT.js","assets/PhSpinner-BXooDYzU.js","assets/PhTrash-Biq6rmmL.js","assets/PhUser-CAgZSpGe.js","assets/PhWallet-w25D16It.js","assets/PhWarning-DPEydIPw.js","assets/PhWarningCircle-BqjT745H.js","assets/PhX-s-SmVExa.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{a8 as A,a9 as T,n as V,r as y,l as x,m as E,D as s,v as g,aa as Z,j as I}from"./index-
|
|
2
|
+
import{a8 as A,a9 as T,n as V,r as y,l as x,m as E,D as s,v as g,aa as Z,j as I}from"./index-2lWeQK_r.js";import{_ as l}from"./thirdweb-kSueW068.js";const L=".",v={getSpacingStyles(t,e){if(Array.isArray(t))return t[e]?`var(--apkt-spacing-${t[e]})`:void 0;if(typeof t=="string")return`var(--apkt-spacing-${t})`},getFormattedDate(t){return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}).format(t)},formatCurrency(t=0,e={}){const i=Number(t);return isNaN(i)?"$0.00":new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2,...e}).format(i)},getHostName(t){try{return new URL(t).hostname}catch{return""}},getTruncateString({string:t,charsStart:e,charsEnd:i,truncate:o}){return t.length<=e+i?t:o==="end"?`${t.substring(0,e)}...`:o==="start"?`...${t.substring(t.length-i)}`:`${t.substring(0,Math.floor(e))}...${t.substring(t.length-Math.floor(i))}`},generateAvatarColors(t){const i=t.toLowerCase().replace(/^0x/iu,"").replace(/[^a-f0-9]/gu,"").substring(0,6).padEnd(6,"0"),o=this.hexToRgb(i),n=getComputedStyle(document.documentElement).getPropertyValue("--w3m-border-radius-master"),a=100-3*Number(n==null?void 0:n.replace("px","")),h=`${a}% ${a}% at 65% 40%`,p=[];for(let d=0;d<5;d+=1){const m=this.tintColor(o,.15*d);p.push(`rgb(${m[0]}, ${m[1]}, ${m[2]})`)}return`
|
|
3
3
|
--local-color-1: ${p[0]};
|
|
4
4
|
--local-color-2: ${p[1]};
|
|
5
5
|
--local-color-3: ${p[2]};
|
|
@@ -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-2lWeQK_r.js";import{n as r,c as f}from"./index-D9X9FvqO.js";import{o as m}from"./if-defined-DE3TW8mw.js";const b=u`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
width: var(--local-width);
|