@dcl/auth-site 4.11.10-22674067433.commit-ec9ee87 → 4.11.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/assets/1949206f0b8ec64d-qrlN31md.svg +9 -0
  2. package/assets/805322223c96be40-CKnEN-kZ.png +0 -0
  3. package/assets/{ConstantsUtil-ESae-Z7-.js → ConstantsUtil-p18SxHNb.js} +1 -1
  4. package/assets/{ContentfulRichText-BtJfWm5x.js → ContentfulRichText-CuUzDhK8.js} +1 -1
  5. package/assets/{ExchangeController-IT3Dhd87.js → ExchangeController-DzfUZs5x.js} +1 -1
  6. package/assets/{HelpersUtil-DSNS5n-9.js → HelpersUtil-XKCaotuk.js} +1 -1
  7. package/assets/NetworkUtil-sGYAtXqw.js +7 -0
  8. package/assets/{SwapController-yDy01m5V.js → SwapController-4W4ijrvf.js} +1 -1
  9. package/assets/{biconomy-B599Ur_0.js → biconomy-Dly9w0vY.js} +1 -1
  10. package/assets/brand-icons-Cu_C0hZ4.svg +1008 -0
  11. package/assets/brand-icons-F3SPCeH1.woff +0 -0
  12. package/assets/brand-icons-XL9sxUpA.woff2 +0 -0
  13. package/assets/brand-icons-sqJ2Pg7a.eot +0 -0
  14. package/assets/brand-icons-ubhWoxly.ttf +0 -0
  15. package/assets/ccip-B9aFL1MQ.js +1 -0
  16. package/assets/da0e2040ea4c51ef-rAUxngFb.svg +1 -0
  17. package/assets/{data-capture-CzsW3pB7.js → data-capture-tGGi1Ydy.js} +3 -3
  18. package/assets/{email-DWs9f9tH.js → email-hTjSyTyX.js} +6 -6
  19. package/assets/{embedded-wallet-P7U24FrG.js → embedded-wallet-BrB_4WzR.js} +6 -6
  20. package/assets/{engine-DAuziGro.js → engine-z9o8NNFN.js} +1 -1
  21. package/assets/extractIPFS-Dm5hYCcH.js +1 -0
  22. package/assets/{features--CaJUF7o.js → features-D-HmXfRu.js} +2 -2
  23. package/assets/flags-DOLqOU7Y.png +0 -0
  24. package/assets/fortmatic-DpLsx1s2.js +13 -0
  25. package/assets/{getInstalledModules-Bdsr8t_C.js → getInstalledModules-BxNMMrxI.js} +1 -1
  26. package/assets/icons-BOCtAERH.woff +0 -0
  27. package/assets/icons-CHzK1VD9.eot +0 -0
  28. package/assets/icons-D29ZQHHw.ttf +0 -0
  29. package/assets/icons-Du6TOHnR.woff2 +0 -0
  30. package/assets/icons-RwhydX30.svg +1518 -0
  31. package/assets/{if-defined-2xQLKahR.js → if-defined-BoFFMPLs.js} +1 -1
  32. package/assets/image1-_0ffTiKd.webp +0 -0
  33. package/assets/image10-I4vX--po.webp +0 -0
  34. package/assets/image2-sHeDDy_F.webp +0 -0
  35. package/assets/image3-B79JnaG7.webp +0 -0
  36. package/assets/image4-Cy2Bg8G8.webp +0 -0
  37. package/assets/image5-BwZ-6sYY.webp +0 -0
  38. package/assets/image6-DFi5BRnf.webp +0 -0
  39. package/assets/image7-CyRqcJTw.webp +0 -0
  40. package/assets/image8-DohHwcO9.webp +0 -0
  41. package/assets/image9-caIPOcpa.webp +0 -0
  42. package/assets/in-app-wallet-calls-C3aPhXtO.js +1 -0
  43. package/assets/{index-Dl7iro_s.js → index--wKrGngN.js} +1 -1
  44. package/assets/{index-DUoxxqna.js → index-8TMITg1r.js} +1 -1
  45. package/assets/index-B0fQnkQ5.js +248 -0
  46. package/assets/{index-MubCrWiB.js → index-B1qCZLvQ.js} +1 -1
  47. package/assets/index-B2UXqNqr.js +14 -0
  48. package/assets/{index-CzHm4Ry3.js → index-B3fadyTT.js} +3 -3
  49. package/assets/index-B5aC8E1X.css +1 -0
  50. package/assets/{index-EfYw_r-L.js → index-B729d3FM.js} +4 -4
  51. package/assets/index-BJ1WxAUM.js +7 -0
  52. package/assets/{index-vWAYjUUv.js → index-BSFhSoM_.js} +1 -1
  53. package/assets/{index-DJO0bodJ.js → index-BhaWASJT.js} +1 -1
  54. package/assets/{index-CUEaPFt-.js → index-BrOi7a3U.js} +3 -3
  55. package/assets/{index-DIWcFA1F.js → index-BsdLV5kJ.js} +1 -1
  56. package/assets/{index-ppPPH70g.js → index-BtZhKCqj.js} +4 -4
  57. package/assets/{index-CziCm94K.js → index-Bvny0Xgz.js} +1 -1
  58. package/assets/{index-D0cHggih.js → index-CCd5oS0s.js} +3 -3
  59. package/assets/index-COanpESA.js +425 -0
  60. package/assets/{index-BQsAkTBu.js → index-CVsaRRKm.js} +3 -3
  61. package/assets/index-C_pCrG4N.js +2 -0
  62. package/assets/{index-xFdcXlRb.js → index-Ccixd5c3.js} +1 -1
  63. package/assets/{index-Bv3VmA8e.js → index-D76LDvqK.js} +1 -1
  64. package/assets/{index-B9z9f635.js → index-DE30NxYx.js} +2 -2
  65. package/assets/{index-jq6mMx3J.js → index-DF-ZAXHc.js} +1 -1
  66. package/assets/{index-HAgxNzWE.js → index-DKWu_DOR.js} +1 -1
  67. package/assets/{index-VsMuUpAO.js → index-DWQfcLNQ.js} +1 -1
  68. package/assets/index-DdNA7FEA.js +20858 -0
  69. package/assets/index-Dh5xsOC8.js +13 -0
  70. package/assets/{index-CPXKpbtw.js → index-DhR4CWqo.js} +3 -3
  71. package/assets/{index-DdCktyEF.js → index-Dv6NX9VQ.js} +1 -1
  72. package/assets/{index-CRvDhax9.js → index-DvjRQRaG.js} +1 -1
  73. package/assets/{index-UvGAZXmw.js → index-DxXFLIUG.js} +4 -4
  74. package/assets/index-FZCkPsng.js +3 -0
  75. package/assets/index-T3ZzCX6S.js +4 -0
  76. package/assets/{index-CRA7VI9s.js → index-T74egyiU.js} +1 -1
  77. package/assets/{index-BsWozatx.js → index-U5jfZk1i.js} +1 -1
  78. package/assets/{index-BIUEtDdG.js → index-YOecdb0o.js} +1 -1
  79. package/assets/index-ZctKyjjk.js +1 -0
  80. package/assets/{index-CO5QKdxX.js → index-bKhmSsUt.js} +1 -1
  81. package/assets/{index-gcHRu1bF.js → index-ksqvpIH6.js} +1 -1
  82. package/assets/{index-L_5Cs_kx.js → index-l8aM--_F.js} +4 -4
  83. package/assets/{index-DAoSp5q5.js → index-zk2q_Q_G.js} +1 -1
  84. package/assets/networks-Clam15G5.js +4 -0
  85. package/assets/{onramp-WAW9ejhZ.js → onramp-9pmSlBnz.js} +1 -1
  86. package/assets/{openzeppelin-DV82z7lJ.js → openzeppelin-CCD6rP-X.js} +1 -1
  87. package/assets/outline-icons-BfdLr8tr.svg +366 -0
  88. package/assets/outline-icons-DD8jm0uy.ttf +0 -0
  89. package/assets/outline-icons-DInHoiqI.woff2 +0 -0
  90. package/assets/outline-icons-LX8adJ4n.eot +0 -0
  91. package/assets/outline-icons-aQ88nltS.woff +0 -0
  92. package/assets/{parse-typed-data-8DIRR0Kb.js → parse-typed-data-CQ7fMUke.js} +1 -1
  93. package/assets/passkeys-ClPCDmsq.js +1 -0
  94. package/assets/{pay-with-exchange-CNJhpLnE.js → pay-with-exchange-29qX9lth.js} +3 -3
  95. package/assets/{receive-ss1HRI3I.js → receive-BNr9rr8r.js} +3 -3
  96. package/assets/{ref-CoyvS0l-.js → ref-CfiuWBst.js} +1 -1
  97. package/assets/{resolveImplementation-C5lycJfC.js → resolveImplementation-DWNdXsgn.js} +1 -1
  98. package/assets/secp256k1-Cbm_E6WS.js +1 -0
  99. package/assets/{send-C4Og1BUJ.js → send-Db7vaGI-.js} +4 -4
  100. package/assets/send-eip712-transaction-rpuezGb0.js +1 -0
  101. package/assets/{send-gasless-transaction-DIQuGEL1.js → send-gasless-transaction-BMSa2txn.js} +2 -2
  102. package/assets/{socials-C7aTr6Px.js → socials-BHUNG0K3.js} +8 -8
  103. package/assets/{swaps-BDatuUE1.js → swaps-C9Q6lE1v.js} +1 -1
  104. package/assets/thirdweb-JZyWELEG.js +20 -0
  105. package/assets/{transactions-Do481Xcb.js → transactions-6g75FPKk.js} +2 -2
  106. package/assets/ui-DEQUo7uD.js +745 -0
  107. package/assets/ui-DzH-5xCG.css +346 -0
  108. package/assets/vendor-BhVAW1d5.js +59 -0
  109. package/assets/verifyHash-RVn4FTNf.js +35 -0
  110. package/assets/{w3m-modal-Cj2A1qC_.js → w3m-modal-CTfiBorR.js} +1 -1
  111. package/assets/web-connector-B09S69hZ.js +9 -0
  112. package/index.html +6 -5
  113. package/package.json +7 -7
  114. package/assets/NetworkUtil-BCvAceLL.js +0 -1
  115. package/assets/ccip-_ZVU0YUG.js +0 -1
  116. package/assets/extractIPFS-DgGO_4eF.js +0 -1
  117. package/assets/fortmatic-BouPZqQI.js +0 -13
  118. package/assets/in-app-wallet-calls-D8l_xpYN.js +0 -1
  119. package/assets/index-C0hHgKRI.js +0 -425
  120. package/assets/index-CA6Zy4Du.js +0 -7
  121. package/assets/index-CQzRvO-C.js +0 -1
  122. package/assets/index-D8AVDivV.js +0 -2
  123. package/assets/index-D9rT-G2z.js +0 -1
  124. package/assets/index-DPpJj3DF.js +0 -13
  125. package/assets/index-DRQzckTJ.js +0 -1
  126. package/assets/index-DvSlA4j0.js +0 -5
  127. package/assets/index-DvuTX_1c.css +0 -1
  128. package/assets/index-JH3zlM2a.js +0 -4
  129. package/assets/index-JRJx2NpU.js +0 -14
  130. package/assets/index-MkZbQyDw.js +0 -248
  131. package/assets/index-fG1WBhYz.js +0 -20895
  132. package/assets/networks-ZUADr5kB.js +0 -3
  133. package/assets/passkeys-BOJeUfAK.js +0 -1
  134. package/assets/secp256k1-DW9CEMKa.js +0 -1
  135. package/assets/send-eip712-transaction-C2PvhNcm.js +0 -1
  136. package/assets/successAnimation_Lottie-BpyTLLuX.js +0 -1
  137. package/assets/thirdweb-juEAwwxR.js +0 -20
  138. package/assets/ui-BsoeejM4.js +0 -762
  139. package/assets/vendor-C-guZ9WP.js +0 -59
  140. package/assets/web-connector-DIFP2_dO.js +0 -9
@@ -1,4 +1,4 @@
1
- import{m,o as l,q as c}from"./index-MkZbQyDw.js";import{n as h,c as f}from"./index-B9z9f635.js";const p=m`
1
+ import{j as m,l,m as c}from"./index-B0fQnkQ5.js";import{n as h,c as f}from"./index-DE30NxYx.js";const p=m`
2
2
  :host {
3
3
  display: block;
4
4
  background: linear-gradient(
@@ -1,4 +1,4 @@
1
- import{m as l,r as p,n as h,o as b,q as y}from"./index-MkZbQyDw.js";import{n as r,c as f}from"./index-B9z9f635.js";import{o as v}from"./if-defined-2xQLKahR.js";const m=l`
1
+ import{j as l,r as p,k as h,l as b,m as y}from"./index-B0fQnkQ5.js";import{n as r,c as f}from"./index-DE30NxYx.js";import{o as v}from"./if-defined-BoFFMPLs.js";const m=l`
2
2
  :host {
3
3
  position: relative;
4
4
  }
@@ -1,9 +1,9 @@
1
- import{m as h,r as f,o as m,q as v}from"./index-MkZbQyDw.js";import{n as d,c as u,U as p}from"./index-B9z9f635.js";import"./index-jq6mMx3J.js";const g=h`
1
+ import{j as h,r as f,l as m,m as v}from"./index-B0fQnkQ5.js";import{n as d,c as u,U as p}from"./index-DE30NxYx.js";import"./index-DF-ZAXHc.js";const g=h`
2
2
  :host {
3
3
  display: block;
4
4
  width: var(--local-width);
5
5
  height: var(--local-height);
6
- border-radius: ${({borderRadius:r})=>r[16]};
6
+ border-radius: ${({borderRadius:l})=>l[16]};
7
7
  overflow: hidden;
8
8
  position: relative;
9
9
  }
@@ -39,7 +39,7 @@ import{m as h,r as f,o as m,q as v}from"./index-MkZbQyDw.js";import{n as d,c as
39
39
  #6ebdea 100%
40
40
  );
41
41
  }
42
- `;var o=function(r,a,l,i){var s=arguments.length,e=s<3?a:i===null?i=Object.getOwnPropertyDescriptor(a,l):i,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(r,a,l,i);else for(var n=r.length-1;n>=0;n--)(c=r[n])&&(e=(s<3?c(e):s>3?c(a,l,e):c(a,l))||e);return s>3&&e&&Object.defineProperty(a,l,e),e};let t=class extends m{constructor(){super(...arguments),this.imageSrc=void 0,this.alt=void 0,this.address=void 0,this.size="xl"}render(){const a={inherit:"inherit",xxs:"3",xs:"5",sm:"6",md:"8",mdl:"8",lg:"10",xl:"16",xxl:"20"};return this.style.cssText=`
42
+ `;var o=function(l,a,r,i){var s=arguments.length,e=s<3?a:i===null?i=Object.getOwnPropertyDescriptor(a,r):i,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(l,a,r,i);else for(var n=l.length-1;n>=0;n--)(c=l[n])&&(e=(s<3?c(e):s>3?c(a,r,e):c(a,r))||e);return s>3&&e&&Object.defineProperty(a,r,e),e};let t=class extends m{constructor(){super(...arguments),this.imageSrc=void 0,this.alt=void 0,this.address=void 0,this.size="xl"}render(){const a={inherit:"inherit",xxs:"3",xs:"5",sm:"6",md:"8",mdl:"8",lg:"10",xl:"16",xxl:"20"};return this.style.cssText=`
43
43
  --local-width: var(--apkt-spacing-${a[this.size??"xl"]});
44
44
  --local-height: var(--apkt-spacing-${a[this.size??"xl"]});
45
45
  `,v`${this.visualTemplate()}`}visualTemplate(){if(this.imageSrc)return this.dataset.variant="image",v`<wui-image src=${this.imageSrc} alt=${this.alt??"avatar"}></wui-image>`;if(this.address){this.dataset.variant="generated";const a=p.generateAvatarColors(this.address);return this.style.cssText+=`
@@ -1,4 +1,4 @@
1
- import{m as C,r as O,n as P,o as b,q as l,t as E,L as g,R as S,G as x,a as R,S as $}from"./index-MkZbQyDw.js";import{n as h,c as v,r as d,U as T}from"./index-B9z9f635.js";import"./index-VsMuUpAO.js";import"./index-CzHm4Ry3.js";const L=C`
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-B0fQnkQ5.js";import{n as h,c as v,r as d,U as T}from"./index-DE30NxYx.js";import"./index-DWQfcLNQ.js";import"./index-B3fadyTT.js";const L=C`
2
2
  :host {
3
3
  position: relative;
4
4
  display: inline-block;
@@ -1,4 +1,4 @@
1
- import{I as x,m as I,r as W,o as M,q as v}from"./index-MkZbQyDw.js";import{n as y,c as O}from"./index-B9z9f635.js";import"./index-jq6mMx3J.js";import{g as N}from"./thirdweb-juEAwwxR.js";import{dp as q}from"./index-fG1WBhYz.js";var A=q();const Q=N(A),D=.1,_=2.5,w=7;function k(t,a,d){return t===a?!1:(t-a<0?a-t:t-a)<=d+D}function P(t,a){const d=Array.prototype.slice.call(Q.create(t,{errorCorrectionLevel:a}).modules.data,0),l=Math.sqrt(d.length);return d.reduce((h,f,p)=>(p%l===0?h.push([f]):h[h.length-1].push(f))&&h,[])}const B={generate({uri:t,size:a,logoSize:d,padding:l=8,dotColor:h="var(--apkt-colors-black)"}){const p=[],u=P(t,"Q"),n=(a-2*l)/u.length,E=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];E.forEach(({x:i,y:e})=>{const s=(u.length-w)*n*i+l,r=(u.length-w)*n*e+l,c=.45;for(let o=0;o<E.length;o+=1){const m=n*(w-o*2);p.push(x`
1
+ import{D as x,j as W,r as I,l as M,m as v}from"./index-B0fQnkQ5.js";import{n as y,c as O}from"./index-DE30NxYx.js";import"./index-DF-ZAXHc.js";import{g as N}from"./thirdweb-JZyWELEG.js";import{r as q}from"./index-DdNA7FEA.js";var A=q();const D=N(A),Q=.1,_=2.5,w=7;function k(t,a,d){return t===a?!1:(t-a<0?a-t:t-a)<=d+Q}function P(t,a){const d=Array.prototype.slice.call(D.create(t,{errorCorrectionLevel:a}).modules.data,0),l=Math.sqrt(d.length);return d.reduce((h,f,p)=>(p%l===0?h.push([f]):h[h.length-1].push(f))&&h,[])}const j={generate({uri:t,size:a,logoSize:d,padding:l=8,dotColor:h="var(--apkt-colors-black)"}){const p=[],u=P(t,"Q"),n=(a-2*l)/u.length,E=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];E.forEach(({x:i,y:e})=>{const s=(u.length-w)*n*i+l,r=(u.length-w)*n*e+l,c=.45;for(let o=0;o<E.length;o+=1){const m=n*(w-o*2);p.push(x`
2
2
  <rect
3
3
  fill=${o===2?"var(--apkt-colors-black)":"var(--apkt-colors-white)"}
4
4
  width=${o===0?m-10:m}
@@ -20,7 +20,7 @@ import{I as x,m as I,r as W,o as M,q as v}from"./index-MkZbQyDw.js";import{n as
20
20
  stroke-width=${n/(_/2)}
21
21
  stroke-linecap="round"
22
22
  />
23
- `)})}),p}},j=I`
23
+ `)})}),p}},B=W`
24
24
  :host {
25
25
  position: relative;
26
26
  user-select: none;
@@ -85,11 +85,11 @@ import{I as x,m as I,r as W,o as M,q as v}from"./index-MkZbQyDw.js";import{n as
85
85
  ${this.templateVisual()} ${this.templateSvg()}
86
86
  </wui-flex>`}templateSvg(){return x`
87
87
  <svg viewBox="0 0 ${this.size} ${this.size}" width="100%" height="100%">
88
- ${B.generate({uri:this.uri,size:this.size,logoSize:this.arenaClear?0:this.size/4})}
88
+ ${j.generate({uri:this.uri,size:this.size,logoSize:this.arenaClear?0:this.size/4})}
89
89
  </svg>
90
90
  `}templateVisual(){return this.imageSrc?v`<wui-image src=${this.imageSrc} alt=${this.alt??"logo"}></wui-image>`:this.farcaster?v`<wui-icon
91
91
  class="farcaster"
92
92
  size="inherit"
93
93
  color="inherit"
94
94
  name="farcaster"
95
- ></wui-icon>`:v`<wui-icon size="inherit" color="inherit" name="walletConnect"></wui-icon>`}};g.styles=[W,j];$([y()],g.prototype,"uri",void 0);$([y({type:Number})],g.prototype,"size",void 0);$([y()],g.prototype,"theme",void 0);$([y()],g.prototype,"imageSrc",void 0);$([y()],g.prototype,"alt",void 0);$([y({type:Boolean})],g.prototype,"arenaClear",void 0);$([y({type:Boolean})],g.prototype,"farcaster",void 0);g=$([O("wui-qr-code")],g);
95
+ ></wui-icon>`:v`<wui-icon size="inherit" color="inherit" name="walletConnect"></wui-icon>`}};g.styles=[I,B];$([y()],g.prototype,"uri",void 0);$([y({type:Number})],g.prototype,"size",void 0);$([y()],g.prototype,"theme",void 0);$([y()],g.prototype,"imageSrc",void 0);$([y()],g.prototype,"alt",void 0);$([y({type:Boolean})],g.prototype,"arenaClear",void 0);$([y({type:Boolean})],g.prototype,"farcaster",void 0);g=$([O("wui-qr-code")],g);
@@ -1,4 +1,4 @@
1
- import{m as u,r as h,n as f,o as p,q as g}from"./index-MkZbQyDw.js";import{n as d,c as m}from"./index-B9z9f635.js";import{o as b}from"./if-defined-2xQLKahR.js";const y=u`
1
+ import{j as u,r as h,k as f,l as p,m as g}from"./index-B0fQnkQ5.js";import{n as d,c as m}from"./index-DE30NxYx.js";import{o as b}from"./if-defined-BoFFMPLs.js";const y=u`
2
2
  :host {
3
3
  display: inline-flex;
4
4
  justify-content: center;
@@ -1,4 +1,4 @@
1
- import{m as u,r as p,o as m,q as h}from"./index-MkZbQyDw.js";import{n as a,c as f}from"./index-B9z9f635.js";import"./index-jq6mMx3J.js";import"./index-CziCm94K.js";const w=u`
1
+ import{j as u,r as p,l as m,m as h}from"./index-B0fQnkQ5.js";import{n as o,c as f}from"./index-DE30NxYx.js";import"./index-DF-ZAXHc.js";import"./index-Bvny0Xgz.js";const w=u`
2
2
  :host {
3
3
  position: relative;
4
4
  background-color: ${({tokens:e})=>e.theme.foregroundTertiary};
@@ -71,7 +71,7 @@ import{m as u,r as p,o as m,q as h}from"./index-MkZbQyDw.js";import{n as a,c as
71
71
  border: 2px solid ${({tokens:e})=>e.theme.backgroundPrimary};
72
72
  padding: 1px;
73
73
  }
74
- `;var r=function(e,t,s,n){var l=arguments.length,o=l<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,s):n,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,s,n);else for(var c=e.length-1;c>=0;c--)(d=e[c])&&(o=(l<3?d(o):l>3?d(t,s,o):d(t,s))||o);return l>3&&o&&Object.defineProperty(t,s,o),o};let i=class extends m{constructor(){super(...arguments),this.size="md",this.name="",this.installed=!1,this.badgeSize="xs"}render(){let t="1";return this.size==="lg"?t="4":this.size==="md"?t="2":this.size==="sm"&&(t="1"),this.style.cssText=`
74
+ `;var a=function(e,t,s,n){var l=arguments.length,r=l<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,s):n,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,s,n);else for(var c=e.length-1;c>=0;c--)(d=e[c])&&(r=(l<3?d(r):l>3?d(t,s,r):d(t,s))||r);return l>3&&r&&Object.defineProperty(t,s,r),r};let i=class extends m{constructor(){super(...arguments),this.size="md",this.name="",this.installed=!1,this.badgeSize="xs"}render(){let t="1";return this.size==="lg"?t="4":this.size==="md"?t="2":this.size==="sm"&&(t="1"),this.style.cssText=`
75
75
  --local-border-radius: var(--apkt-borderRadius-${t});
76
76
  `,this.dataset.size=this.size,this.imageSrc&&(this.dataset.image="true"),this.walletIcon&&(this.dataset.walletIcon=this.walletIcon),h`
77
77
  <wui-flex justifyContent="center" alignItems="center"> ${this.templateVisual()} </wui-flex>
@@ -80,4 +80,4 @@ import{m as u,r as p,o as m,q as h}from"./index-MkZbQyDw.js";import{n as a,c as
80
80
  size="inherit"
81
81
  color="inherit"
82
82
  name="wallet"
83
- ></wui-icon>`}};i.styles=[p,w];r([a()],i.prototype,"size",void 0);r([a()],i.prototype,"name",void 0);r([a()],i.prototype,"imageSrc",void 0);r([a()],i.prototype,"walletIcon",void 0);r([a({type:Boolean})],i.prototype,"installed",void 0);r([a()],i.prototype,"badgeSize",void 0);i=r([f("wui-wallet-image")],i);
83
+ ></wui-icon>`}};i.styles=[p,w];a([o()],i.prototype,"size",void 0);a([o()],i.prototype,"name",void 0);a([o()],i.prototype,"imageSrc",void 0);a([o()],i.prototype,"walletIcon",void 0);a([o({type:Boolean})],i.prototype,"installed",void 0);a([o()],i.prototype,"badgeSize",void 0);i=a([f("wui-wallet-image")],i);
@@ -0,0 +1,425 @@
1
+ import{j as A,l as O,m as c,r as B,C as R,a4 as m,a as j,R as Y,O as G,E as V,q as W,W as H}from"./index-B0fQnkQ5.js";import{U as q,n as d,r as T,c as _}from"./index-DE30NxYx.js";import{g as N}from"./thirdweb-JZyWELEG.js";import{r as K,a as J,b as Q}from"./ui-DEQUo7uD.js";import"./index-Bvny0Xgz.js";import"./index-DWQfcLNQ.js";import{o as X}from"./if-defined-BoFFMPLs.js";import"./index-DF-ZAXHc.js";import"./index-BSFhSoM_.js";var Z=K();const I=N(Z);var ee=J();const te=N(ee);var ie=Q();const re=N(ie);var S={exports:{}},ne=S.exports,M;function oe(){return M||(M=1,(function(e,t){(function(i,r){e.exports=r()})(ne,(function(){return function(i,r,o){o.updateLocale=function(n,a){var s=o.Ls[n];if(s)return(a?Object.keys(a):[]).forEach((function(l){s[l]=a[l]})),s}}}))})(S)),S.exports}var ae=oe();const se=N(ae);I.extend(re);I.extend(se);const le={...te,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"}},ce=["January","February","March","April","May","June","July","August","September","October","November","December"];I.locale("en-web3-modal",le);const z={getMonthNameByIndex(e){return ce[e]},getYear(e=new Date().toISOString()){return I(e).year()},getRelativeDateFromNow(e){return I(e).locale("en-web3-modal").fromNow(!0)},formatDate(e,t="DD MMM"){return I(e).format(t)}},ue=3,F=.1,de=["receive","deposit","borrow","claim"],pe=["withdraw","repay","burn"],$={getTransactionGroupTitle(e,t){const i=z.getYear(),r=z.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:$.getTransactionTransferTokenType(e),url:$.getTransactionImageURL(e)}},getTransactionImageURL(e){var o,n,a,s,l;let t;const i=!!(e!=null&&e.nft_info),r=!!(e!=null&&e.fungible_info);return e&&i?t=(a=(n=(o=e==null?void 0:e.nft_info)==null?void 0:o.content)==null?void 0:n.preview)==null?void 0:a.url:e&&r&&(t=(l=(s=e==null?void 0:e.fungible_info)==null?void 0:s.icon)==null?void 0:l.url),t},getTransactionTransferTokenType(e){if(e!=null&&e.fungible_info)return"FUNGIBLE";if(e!=null&&e.nft_info)return"NFT"},getTransactionDescriptions(e,t){var k;const i=(k=e==null?void 0:e.metadata)==null?void 0:k.operationType,r=t||(e==null?void 0:e.transfers),o=r&&r.length>0,n=r&&r.length>1,a=o&&r.every(v=>!!(v!=null&&v.fungible_info)),[s,l]=r||[];let u=this.getTransferDescription(s),p=this.getTransferDescription(l);if(!o)return(i==="send"||i==="receive")&&a?(u=q.getTruncateString({string:e==null?void 0:e.metadata.sentFrom,charsStart:4,charsEnd:6,truncate:"middle"}),p=q.getTruncateString({string:e==null?void 0:e.metadata.sentTo,charsStart:4,charsEnd:6,truncate:"middle"}),[u,p]):[e.metadata.status];if(n)return r==null?void 0:r.map(v=>this.getTransferDescription(v));let D="";return de.includes(i)?D="+":pe.includes(i)&&(D="-"),u=D.concat(u),[u]},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 l;const a=(l=n==null?void 0:n.fungible_info)==null?void 0:l.name,s=o.find(({fungible_info:u,direction:p})=>a&&a===(u==null?void 0:u.name)&&p===n.direction);if(s){const u=Number(s.quantity.numeric)+Number(n.quantity.numeric);s.quantity.numeric=u.toString(),s.value=(s.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 a;const n=(a=o==null?void 0:o.fungible_info)==null?void 0:a.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(a=>a.direction==="in"),n=r.filter(a=>a.direction==="out");if(o.length===1&&n.length===1){const a=o[0],s=n[0];let l=!1;if(a&&s){const u=Number(a.quantity.numeric),p=Number(s.quantity.numeric);p<u*F?(i.push(a),l=!0):u<p*F&&(i.push(s),l=!0)}l||i.push(...r)}else{const a=this.filterGasFeesFromTokenGroup(r);i.push(...a)}}}),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(s=>Number(s.quantity.numeric)),i=Math.max(...t),r=Math.min(...t),o=.01;if(r<i*o)return e==null?void 0:e.filter(l=>Number(l.quantity.numeric)>=i*o);const n=e==null?void 0:e.filter(s=>s.direction==="in"),a=e==null?void 0:e.filter(s=>s.direction==="out");if(n.length===1&&a.length===1){const s=n[0],l=a[0];if(s&&l){const u=Number(s.quantity.numeric),p=Number(l.quantity.numeric);if(p<u*F)return[s];if(u<p*F)return[l]}}return e},getQuantityFixedValue(e){return e?parseFloat(e).toFixed(ue):null}};var E;(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"})(E||(E={}));const me=A`
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 w=function(e,t,i,r){var o=arguments.length,n=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,i,n):a(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n};let h=class extends O{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)",a=o?"var(--apkt-borderRadius-3)":"var(--apkt-borderRadius-5)";return this.style.cssText=`
84
+ --local-left-border-radius: ${n};
85
+ --local-right-border-radius: ${a};
86
+ `,c`<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 c`<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():c`<wui-image
90
+ src=${t.url}
91
+ alt="Transaction image"
92
+ @onLoadError=${this.handleImageError(t.url)}
93
+ ></wui-image>`:null}renderFallbackIconInContainer(t){return c`<div class="swap-fallback-container ${t}">${this.renderFallbackIcon()}</div>`}renderFallbackIcon(){return c`<wui-icon
94
+ size="xl"
95
+ weight="regular"
96
+ color="default"
97
+ name="networkPlaceholder"
98
+ ></wui-icon>`}renderPlaceholderIcon(t){return c`<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?c`
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"}}};h.styles=[me];w([d()],h.prototype,"type",void 0);w([d()],h.prototype,"status",void 0);w([d()],h.prototype,"direction",void 0);w([d({type:Boolean})],h.prototype,"onlyDirectionIcon",void 0);w([d({type:Array})],h.prototype,"images",void 0);w([d({type:Object})],h.prototype,"secondImage",void 0);w([T()],h.prototype,"failedImageUrls",void 0);h=w([_("wui-transaction-visual")],h);const he=A`
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 x=function(e,t,i,r){var o=arguments.length,n=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,i,n):a(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n};let g=class extends O{constructor(){super(...arguments),this.type="approve",this.onlyDirectionIcon=!1,this.images=[]}render(){return c`
150
+ <wui-flex>
151
+ <wui-transaction-visual
152
+ .status=${this.status}
153
+ direction=${X(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
+ ${E[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?c`
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?c`
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}};g.styles=[B,he];x([d()],g.prototype,"type",void 0);x([d({type:Array})],g.prototype,"descriptions",void 0);x([d()],g.prototype,"date",void 0);x([d({type:Boolean})],g.prototype,"onlyDirectionIcon",void 0);x([d()],g.prototype,"status",void 0);x([d()],g.prototype,"direction",void 0);x([d({type:Array})],g.prototype,"images",void 0);g=x([_("wui-transaction-list-item")],g);const ge=A`
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 C=function(e,t,i,r){var o=arguments.length,n=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,i,n):a(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n};const L={sm:"xxs",lg:"md"};let y=class extends O{constructor(){super(...arguments),this.type="approve",this.size="lg",this.statusImageUrl="",this.images=[]}render(){return c`<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)?c`
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?c`<wui-image src=${t} alt="Swap image"></wui-image>`:null}fiatTemplate(){return c`<wui-icon
281
+ class="fallback-icon"
282
+ size=${L[this.size]}
283
+ name="dollar"
284
+ ></wui-icon>`}unknownTemplate(){return c`<wui-icon
285
+ class="fallback-icon"
286
+ size=${L[this.size]}
287
+ name="questionMark"
288
+ ></wui-icon>`}tokenTemplate(){const[t]=this.images;return t?c`<wui-image src=${t} alt="Token image"></wui-image> `:c`<wui-icon
289
+ class="fallback-icon"
290
+ name=${this.type==="nft"?"image":"coinPlaceholder"}
291
+ ></wui-icon>`}templateIcon(){return this.statusImageUrl?c`<wui-image
292
+ class="status-image"
293
+ src=${this.statusImageUrl}
294
+ alt="Status image"
295
+ ></wui-image>`:c`<wui-icon
296
+ class="direction-icon"
297
+ size=${L[this.size]}
298
+ name=${this.getTemplateIcon()}
299
+ ></wui-icon>`}getTemplateIcon(){return this.type==="trade"?"arrowClockWise":"arrowBottom"}};y.styles=[ge];C([d()],y.prototype,"type",void 0);C([d()],y.prototype,"size",void 0);C([d()],y.prototype,"statusImageUrl",void 0);C([d({type:Array})],y.prototype,"images",void 0);y=C([_("wui-transaction-thumbnail")],y);const fe=A`
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 we=function(e,t,i,r){var o=arguments.length,n=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,i,n):a(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n};let U=class extends O{render(){return c`
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
+ `}};U.styles=[B,fe];U=we([_("wui-transaction-list-item-loader")],U);const xe=A`
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 b=function(e,t,i,r){var o=arguments.length,n=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,i,n):a(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n};const P="last-transaction",ye=7;let f=class extends O{constructor(){super(),this.unsubscribe=[],this.paginationObserver=void 0,this.page="activity",this.caipAddress=R.state.activeCaipAddress,this.transactionsByYear=m.state.transactionsByYear,this.loading=m.state.loading,this.empty=m.state.empty,this.next=m.state.next,m.clearCursor(),this.unsubscribe.push(R.subscribeKey("activeCaipAddress",t=>{t&&this.caipAddress!==t&&(m.resetTransactions(),m.fetchTransactions(t)),this.caipAddress=t}),R.subscribeKey("activeCaipNetwork",()=>{this.updateTransactionView()}),m.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 c` ${this.empty?null:this.templateTransactionsByYear()}
346
+ ${this.loading?this.templateLoading():null}
347
+ ${!this.loading&&this.empty?this.templateEmpty():null}`}updateTransactionView(){m.resetTransactions(),this.caipAddress&&m.fetchTransactions(j.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,a)=>{var u;const s=$.getTransactionGroupTitle(r,a),l=(u=this.transactionsByYear[r])==null?void 0:u[a];return{groupTitle:s,transactions:l}}).filter(({transactions:n})=>n).reverse();return o.map(({groupTitle:n,transactions:a},s)=>{const l=s===o.length-1;return a?c`
348
+ <wui-flex
349
+ flexDirection="column"
350
+ class="group-container"
351
+ last-group="${l?"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(a,l)}
365
+ </wui-flex>
366
+ </wui-flex>
367
+ `:null})})}templateRenderTransaction(t,i){const{date:r,descriptions:o,direction:n,images:a,status:s,type:l,transfers:u,isAllNFT:p}=this.getTransactionListItemProps(t);return c`
368
+ <wui-transaction-list-item
369
+ date=${r}
370
+ .direction=${n}
371
+ id=${i&&this.next?P:""}
372
+ status=${s}
373
+ type=${l}
374
+ .images=${a}
375
+ .onlyDirectionIcon=${p||u.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 c`${this.templateRenderTransaction(r,n)}`})}emptyStateActivity(){return c`<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 c`<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"?c`${this.emptyStateAccount()}`:c`${this.emptyStateActivity()}`}templateLoading(){return this.page==="activity"?c` <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(ye).fill(c` <wui-transaction-list-item-loader></wui-transaction-list-item-loader> `).map(t=>t)}
424
+ </wui-flex>
425
+ </wui-flex>`:null}onReceiveClick(){Y.push("WalletReceive")}createPaginationObserver(){const{projectId:t}=G.state;this.paginationObserver=new IntersectionObserver(([i])=>{i!=null&&i.isIntersecting&&!this.loading&&(m.fetchTransactions(j.getPlainAddress(this.caipAddress)),V.sendEvent({type:"track",event:"LOAD_MORE_TRANSACTIONS",properties:{address:j.getPlainAddress(this.caipAddress),projectId:t,cursor:this.next,isSmartAccount:W(R.state.activeChain)===H.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(`#${P}`);t&&((o=this.paginationObserver)==null||o.observe(t))}getTransactionListItemProps(t){var l,u,p;const i=z.formatDate((l=t==null?void 0:t.metadata)==null?void 0:l.minedAt),r=$.mergeTransfers((t==null?void 0:t.transfers)||[]),o=$.getTransactionDescriptions(t,r),n=r==null?void 0:r[0],a=!!n&&(r==null?void 0:r.every(D=>!!D.nft_info)),s=$.getTransactionImages(r);return{date:i,direction:n==null?void 0:n.direction,descriptions:o,isAllNFT:a,images:s,status:(u=t.metadata)==null?void 0:u.status,transfers:r,type:(p=t.metadata)==null?void 0:p.operationType}}};f.styles=xe;b([d()],f.prototype,"page",void 0);b([T()],f.prototype,"caipAddress",void 0);b([T()],f.prototype,"transactionsByYear",void 0);b([T()],f.prototype,"loading",void 0);b([T()],f.prototype,"empty",void 0);b([T()],f.prototype,"next",void 0);f=b([_("w3m-activity-list")],f);
@@ -1,4 +1,4 @@
1
- import{t as h,o as d,O as c,q as a,E as x,y as b,C as g,W as v,R as C,m as w,r as _,n as $}from"./index-MkZbQyDw.js";import{c as m,r as R}from"./index-B9z9f635.js";import"./index-VsMuUpAO.js";const T=h``;var O=function(n,e,r,o){var i=arguments.length,t=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(n,e,r,o);else for(var l=n.length-1;l>=0;l--)(s=n[l])&&(t=(i<3?s(t):i>3?s(e,r,t):s(e,r))||t);return i>3&&t&&Object.defineProperty(e,r,t),t};let f=class extends d{render(){const{termsConditionsUrl:e,privacyPolicyUrl:r}=c.state;return!e&&!r?null:a`
1
+ import{n as h,l as d,O as c,m as a,E as x,q as b,C as g,W as v,R as C,j as w,r as _,k as $}from"./index-B0fQnkQ5.js";import{c as m,r as R}from"./index-DE30NxYx.js";import"./index-DWQfcLNQ.js";const T=h``;var O=function(n,e,r,o){var i=arguments.length,t=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(n,e,r,o);else for(var l=n.length-1;l>=0;l--)(s=n[l])&&(t=(i<3?s(t):i>3?s(e,r,t):s(e,r))||t);return i>3&&t&&Object.defineProperty(e,r,t),t};let f=class extends d{render(){const{termsConditionsUrl:e,privacyPolicyUrl:r}=c.state;return!e&&!r?null:a`
2
2
  <wui-flex
3
3
  .padding=${["4","3","3","3"]}
4
4
  flexDirection="column"
@@ -48,7 +48,7 @@ import{t as h,o as d,O as c,q as a,E as x,y as b,C as g,W as v,R as C,m as w,r a
48
48
  <wui-icon name="reown" size="inherit" class="reown-logo"></wui-icon>
49
49
  </wui-flex>
50
50
  </a>
51
- `}};p.styles=[_,$,W];p=U([m("wui-ux-by-reown")],p);const B=w`
51
+ `}};p.styles=[_,$,W];p=U([m("wui-ux-by-reown")],p);const j=w`
52
52
  :host wui-ux-by-reown {
53
53
  padding-top: 0;
54
54
  }
@@ -78,4 +78,4 @@ import{t as h,o as d,O as c,q as a,E as x,y as b,C as g,W as v,R as C,m as w,r a
78
78
  >Terms of Service</a
79
79
  >`:null}privacyTemplate(){const{privacyPolicyUrl:e}=c.state;return e?a`<a href=${e} target="_blank" rel="noopener noreferrer"
80
80
  >Privacy Policy</a
81
- >`:null}reownBrandingTemplate(e=!1){var r;return(r=this.remoteFeatures)!=null&&r.reownBranding?e?a`<wui-ux-by-reown class="branding-only"></wui-ux-by-reown>`:a`<wui-ux-by-reown></wui-ux-by-reown>`:null}};u.styles=[B];y([R()],u.prototype,"remoteFeatures",void 0);u=y([m("w3m-legal-footer")],u);
81
+ >`:null}reownBrandingTemplate(e=!1){var r;return(r=this.remoteFeatures)!=null&&r.reownBranding?e?a`<wui-ux-by-reown class="branding-only"></wui-ux-by-reown>`:a`<wui-ux-by-reown></wui-ux-by-reown>`:null}};u.styles=[j];y([R()],u.prototype,"remoteFeatures",void 0);u=y([m("w3m-legal-footer")],u);