@dcl/auth-site 4.11.10 → 4.11.11-22678593545.commit-057bec9

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/{ConstantsUtil-p18SxHNb.js → ConstantsUtil-DUnG_tEQ.js} +1 -1
  2. package/assets/{ContentfulRichText-CuUzDhK8.js → ContentfulRichText-cb-EwwWM.js} +1 -1
  3. package/assets/{ExchangeController-DzfUZs5x.js → ExchangeController-DI4vT2l3.js} +1 -1
  4. package/assets/{HelpersUtil-XKCaotuk.js → HelpersUtil-DoCsc2oM.js} +1 -1
  5. package/assets/NetworkUtil-DCJ1tSG1.js +1 -0
  6. package/assets/{SwapController-4W4ijrvf.js → SwapController-Bp4pmN6l.js} +1 -1
  7. package/assets/{biconomy-Dly9w0vY.js → biconomy-C3hJW_Nq.js} +1 -1
  8. package/assets/ccip-DJOf1ccE.js +1 -0
  9. package/assets/{data-capture-tGGi1Ydy.js → data-capture-DeL_M8je.js} +3 -3
  10. package/assets/{email-hTjSyTyX.js → email-C2RQeG95.js} +6 -6
  11. package/assets/{embedded-wallet-BrB_4WzR.js → embedded-wallet-zDHLA2su.js} +6 -6
  12. package/assets/{engine-z9o8NNFN.js → engine-CTslYXu9.js} +1 -1
  13. package/assets/extractIPFS-BK_ts2DI.js +1 -0
  14. package/assets/{features-D-HmXfRu.js → features-CZ3bEAXm.js} +2 -2
  15. package/assets/fortmatic-C9JiWwPf.js +13 -0
  16. package/assets/{getInstalledModules-BxNMMrxI.js → getInstalledModules-Cgdn-Ekf.js} +1 -1
  17. package/assets/{if-defined-BoFFMPLs.js → if-defined-Bu0uAWdI.js} +1 -1
  18. package/assets/in-app-wallet-calls-CGt7C53i.js +1 -0
  19. package/assets/{index-BtZhKCqj.js → index-6_WUGvL_.js} +4 -4
  20. package/assets/{index-YOecdb0o.js → index-B--praTS.js} +1 -1
  21. package/assets/{index-DvjRQRaG.js → index-B2wCb629.js} +1 -1
  22. package/assets/{index-B729d3FM.js → index-B3gy09Tb.js} +4 -4
  23. package/assets/index-B4j3oq38.css +1 -0
  24. package/assets/index-B5EIL-NP.js +4 -0
  25. package/assets/{index-DWQfcLNQ.js → index-Ba6u0tKI.js} +1 -1
  26. package/assets/index-BaWB1Cy1.js +1 -0
  27. package/assets/index-BgGypaX2.js +2 -0
  28. package/assets/{index-Dv6NX9VQ.js → index-BiAG1CA2.js} +1 -1
  29. package/assets/{index-B1qCZLvQ.js → index-BiSrEa68.js} +1 -1
  30. package/assets/{index-B3fadyTT.js → index-C0KvRHkU.js} +3 -3
  31. package/assets/{index-CVsaRRKm.js → index-COInmLkW.js} +3 -3
  32. package/assets/{index-D76LDvqK.js → index-COaj0-sR.js} +1 -1
  33. package/assets/index-CQ-1UcrT.js +1 -0
  34. package/assets/{index-BSFhSoM_.js → index-CUMJxuFL.js} +1 -1
  35. package/assets/{index-BrOi7a3U.js → index-CYZ_zO57.js} +3 -3
  36. package/assets/{index-DE30NxYx.js → index-CaTR1b7U.js} +2 -2
  37. package/assets/index-CfQigCbj.js +7 -0
  38. package/assets/index-CnmK-ReL.js +248 -0
  39. package/assets/{index-Ccixd5c3.js → index-CoaqomNF.js} +1 -1
  40. package/assets/{index-T74egyiU.js → index-CqjVsjby.js} +1 -1
  41. package/assets/{index-zk2q_Q_G.js → index-CvD7y6DW.js} +1 -1
  42. package/assets/{index-Bvny0Xgz.js → index-D2RsLDF3.js} +1 -1
  43. package/assets/index-D58zQtDz.js +5 -0
  44. package/assets/index-DAPRKHKk.js +13 -0
  45. package/assets/{index-bKhmSsUt.js → index-DB91NJly.js} +1 -1
  46. package/assets/{index-DhR4CWqo.js → index-DMGwiyaH.js} +3 -3
  47. package/assets/index-DN3Ah7WV.js +14 -0
  48. package/assets/{index-ksqvpIH6.js → index-DclRZx2k.js} +1 -1
  49. package/assets/index-DfFL9YTJ.js +20895 -0
  50. package/assets/{index-CCd5oS0s.js → index-DpW0yxG3.js} +3 -3
  51. package/assets/{index-8TMITg1r.js → index-DsxJ-7R-.js} +1 -1
  52. package/assets/{index-DF-ZAXHc.js → index-Dv4eLqsS.js} +1 -1
  53. package/assets/{index-U5jfZk1i.js → index-DwCFk156.js} +1 -1
  54. package/assets/index-DwMF8KkJ.js +425 -0
  55. package/assets/{index-DKWu_DOR.js → index-H3g3l63E.js} +1 -1
  56. package/assets/{index--wKrGngN.js → index-TYEbAVQ5.js} +1 -1
  57. package/assets/{index-DxXFLIUG.js → index-VqB4l4Fr.js} +4 -4
  58. package/assets/{index-BhaWASJT.js → index-YbAzHZwt.js} +1 -1
  59. package/assets/{index-l8aM--_F.js → index-dAV8hFqY.js} +4 -4
  60. package/assets/{index-BsdLV5kJ.js → index-iTK9bNtX.js} +1 -1
  61. package/assets/index-pSp87DVv.js +1 -0
  62. package/assets/networks-CdRAILNz.js +3 -0
  63. package/assets/{onramp-9pmSlBnz.js → onramp-CeMjxvZ8.js} +1 -1
  64. package/assets/{openzeppelin-CCD6rP-X.js → openzeppelin-CMyWKsQD.js} +1 -1
  65. package/assets/{parse-typed-data-CQ7fMUke.js → parse-typed-data-Wa3koiQo.js} +1 -1
  66. package/assets/passkeys-cV4l8iOM.js +1 -0
  67. package/assets/{pay-with-exchange-29qX9lth.js → pay-with-exchange-hB_RvNT3.js} +3 -3
  68. package/assets/{receive-BNr9rr8r.js → receive-DNwGYXfl.js} +3 -3
  69. package/assets/{ref-CfiuWBst.js → ref-BB9yrDQV.js} +1 -1
  70. package/assets/{resolveImplementation-DWNdXsgn.js → resolveImplementation-WlIf6KNp.js} +1 -1
  71. package/assets/secp256k1-C-VjeQm4.js +1 -0
  72. package/assets/{send-Db7vaGI-.js → send-DKvxlBQx.js} +4 -4
  73. package/assets/send-eip712-transaction-BgBRuoR0.js +1 -0
  74. package/assets/{send-gasless-transaction-BMSa2txn.js → send-gasless-transaction-9hmn4Ope.js} +2 -2
  75. package/assets/{socials-BHUNG0K3.js → socials-NSNU2kUu.js} +8 -8
  76. package/assets/successAnimation_Lottie-BpyTLLuX.js +1 -0
  77. package/assets/{swaps-C9Q6lE1v.js → swaps-DT1KWWaT.js} +1 -1
  78. package/assets/thirdweb-CFyLlhL5.js +20 -0
  79. package/assets/{transactions-6g75FPKk.js → transactions-BM8dNg3h.js} +2 -2
  80. package/assets/ui-BPlRA29z.js +762 -0
  81. package/assets/vendor-BqfG8LT2.js +59 -0
  82. package/assets/{w3m-modal-CTfiBorR.js → w3m-modal-_g5P-gZf.js} +1 -1
  83. package/assets/web-connector-BscgOd3p.js +9 -0
  84. package/index.html +5 -6
  85. package/package.json +7 -7
  86. package/assets/1949206f0b8ec64d-qrlN31md.svg +0 -9
  87. package/assets/805322223c96be40-CKnEN-kZ.png +0 -0
  88. package/assets/NetworkUtil-sGYAtXqw.js +0 -7
  89. package/assets/brand-icons-Cu_C0hZ4.svg +0 -1008
  90. package/assets/brand-icons-F3SPCeH1.woff +0 -0
  91. package/assets/brand-icons-XL9sxUpA.woff2 +0 -0
  92. package/assets/brand-icons-sqJ2Pg7a.eot +0 -0
  93. package/assets/brand-icons-ubhWoxly.ttf +0 -0
  94. package/assets/ccip-B9aFL1MQ.js +0 -1
  95. package/assets/da0e2040ea4c51ef-rAUxngFb.svg +0 -1
  96. package/assets/extractIPFS-Dm5hYCcH.js +0 -1
  97. package/assets/flags-DOLqOU7Y.png +0 -0
  98. package/assets/fortmatic-DpLsx1s2.js +0 -13
  99. package/assets/icons-BOCtAERH.woff +0 -0
  100. package/assets/icons-CHzK1VD9.eot +0 -0
  101. package/assets/icons-D29ZQHHw.ttf +0 -0
  102. package/assets/icons-Du6TOHnR.woff2 +0 -0
  103. package/assets/icons-RwhydX30.svg +0 -1518
  104. package/assets/image1-_0ffTiKd.webp +0 -0
  105. package/assets/image10-I4vX--po.webp +0 -0
  106. package/assets/image2-sHeDDy_F.webp +0 -0
  107. package/assets/image3-B79JnaG7.webp +0 -0
  108. package/assets/image4-Cy2Bg8G8.webp +0 -0
  109. package/assets/image5-BwZ-6sYY.webp +0 -0
  110. package/assets/image6-DFi5BRnf.webp +0 -0
  111. package/assets/image7-CyRqcJTw.webp +0 -0
  112. package/assets/image8-DohHwcO9.webp +0 -0
  113. package/assets/image9-caIPOcpa.webp +0 -0
  114. package/assets/in-app-wallet-calls-C3aPhXtO.js +0 -1
  115. package/assets/index-B0fQnkQ5.js +0 -248
  116. package/assets/index-B2UXqNqr.js +0 -14
  117. package/assets/index-B5aC8E1X.css +0 -1
  118. package/assets/index-BJ1WxAUM.js +0 -7
  119. package/assets/index-COanpESA.js +0 -425
  120. package/assets/index-C_pCrG4N.js +0 -2
  121. package/assets/index-DdNA7FEA.js +0 -20858
  122. package/assets/index-Dh5xsOC8.js +0 -13
  123. package/assets/index-FZCkPsng.js +0 -3
  124. package/assets/index-T3ZzCX6S.js +0 -4
  125. package/assets/index-ZctKyjjk.js +0 -1
  126. package/assets/networks-Clam15G5.js +0 -4
  127. package/assets/outline-icons-BfdLr8tr.svg +0 -366
  128. package/assets/outline-icons-DD8jm0uy.ttf +0 -0
  129. package/assets/outline-icons-DInHoiqI.woff2 +0 -0
  130. package/assets/outline-icons-LX8adJ4n.eot +0 -0
  131. package/assets/outline-icons-aQ88nltS.woff +0 -0
  132. package/assets/passkeys-ClPCDmsq.js +0 -1
  133. package/assets/secp256k1-Cbm_E6WS.js +0 -1
  134. package/assets/send-eip712-transaction-rpuezGb0.js +0 -1
  135. package/assets/thirdweb-JZyWELEG.js +0 -20
  136. package/assets/ui-DEQUo7uD.js +0 -745
  137. package/assets/ui-DzH-5xCG.css +0 -346
  138. package/assets/vendor-BhVAW1d5.js +0 -59
  139. package/assets/verifyHash-RVn4FTNf.js +0 -35
  140. package/assets/web-connector-B09S69hZ.js +0 -9
@@ -1,4 +1,4 @@
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`
1
+ import{m as u,r as p,o as m,q as h}from"./index-CnmK-ReL.js";import{n as a,c as f}from"./index-CaTR1b7U.js";import"./index-Dv4eLqsS.js";import"./index-D2RsLDF3.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{j as u,r as p,l as m,m as h}from"./index-B0fQnkQ5.js";import{n as o,c as
71
71
  border: 2px solid ${({tokens:e})=>e.theme.backgroundPrimary};
72
72
  padding: 1px;
73
73
  }
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=`
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=`
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{j as u,r as p,l as m,m as h}from"./index-B0fQnkQ5.js";import{n as o,c as
80
80
  size="inherit"
81
81
  color="inherit"
82
82
  name="wallet"
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);
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);
@@ -1,4 +1,4 @@
1
- import{j as c,r as h,k as m,l as b,m as a}from"./index-B0fQnkQ5.js";import{n as o,c as x}from"./index-DE30NxYx.js";import{o as f}from"./if-defined-BoFFMPLs.js";import{e as $,n as g}from"./ref-CfiuWBst.js";const w=c`
1
+ import{m as c,r as h,n as m,o as b,q as a}from"./index-CnmK-ReL.js";import{n as o,c as x}from"./index-CaTR1b7U.js";import{o as f}from"./if-defined-Bu0uAWdI.js";import{e as $,n as g}from"./ref-BB9yrDQV.js";const w=c`
2
2
  :host {
3
3
  position: relative;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{j as u,r as p,l as g,m as c}from"./index-B0fQnkQ5.js";import{n as r,c as f}from"./index-DE30NxYx.js";import{o as m}from"./if-defined-BoFFMPLs.js";const b=u`
1
+ import{m as u,r as p,o as g,q as c}from"./index-CnmK-ReL.js";import{n as r,c as f}from"./index-CaTR1b7U.js";import{o as m}from"./if-defined-Bu0uAWdI.js";const b=u`
2
2
  :host {
3
3
  display: block;
4
4
  width: var(--local-width);
@@ -1,4 +1,4 @@
1
- import{j as p,r as f,k as h,l as b,N as d,m}from"./index-B0fQnkQ5.js";import{n as i,c as w}from"./index-DE30NxYx.js";import"./index-DF-ZAXHc.js";const g=p`
1
+ import{m as p,r as f,n as h,o as b,N as d,q as m}from"./index-CnmK-ReL.js";import{n as i,c as w}from"./index-CaTR1b7U.js";import"./index-Dv4eLqsS.js";const g=p`
2
2
  :host {
3
3
  width: 100%;
4
4
  }
@@ -0,0 +1,425 @@
1
+ import{m as oe,o as se,q as w,r as Ce,C as pe,ac as F,a as xe,R as Fe,O as Re,E as Ne,y as Le,W as je}from"./index-CnmK-ReL.js";import{U as Te,n as I,r as Q,c as ae}from"./index-CaTR1b7U.js";import{g as ye}from"./thirdweb-CFyLlhL5.js";import"./index-D2RsLDF3.js";import"./index-Ba6u0tKI.js";import{o as ke}from"./if-defined-Bu0uAWdI.js";import"./index-Dv4eLqsS.js";import"./index-CUMJxuFL.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{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,a5 as zt,ap as Ji}from"./index-B0fQnkQ5.js";import{n as c,c as p,U as B,r as u,b as Ri}from"./index-DE30NxYx.js";import{o as w}from"./if-defined-BoFFMPLs.js";import"./index-DF-ZAXHc.js";import"./index-B3fadyTT.js";import"./index-BrOi7a3U.js";import"./index-Bvny0Xgz.js";import{a as Ra,W as Wa}from"./index--wKrGngN.js";import"./index-T74egyiU.js";import"./index-D76LDvqK.js";import"./index-YOecdb0o.js";import{C as E}from"./NetworkUtil-sGYAtXqw.js";import{H as ei}from"./HelpersUtil-XKCaotuk.js";import{E as Q}from"./ExchangeController-DzfUZs5x.js";import"./index-COanpESA.js";import"./index-U5jfZk1i.js";import{M as gt}from"./index-Dh5xsOC8.js";import"./index-Dv6NX9VQ.js";import"./index-CCd5oS0s.js";import"./index-ksqvpIH6.js";import{e as ti,n as ii}from"./ref-CfiuWBst.js";import"./index-8TMITg1r.js";import{n as Zi}from"./index-zk2q_Q_G.js";import"./index-BSFhSoM_.js";import"./index-CVsaRRKm.js";import"./index-bKhmSsUt.js";import{O as yt}from"./index-B729d3FM.js";import{e as en}from"./index-DhR4CWqo.js";import"./index-DWQfcLNQ.js";import"./index-l8aM--_F.js";import"./index-BtZhKCqj.js";import{N as tn}from"./NavigationUtil-DmfK5sOV.js";import"./index-DvjRQRaG.js";import"./thirdweb-JZyWELEG.js";import"./index-DdNA7FEA.js";import"./ui-DEQUo7uD.js";import"./vendor-BhVAW1d5.js";import"./ConstantsUtil-p18SxHNb.js";const nn=v`
1
+ import{m as v,r as _,n as T,o as f,q as l,C as d,O as m,a6 as ke,H as S,a as y,M as P,t as te,E as C,K as ge,G as b,R as h,e as D,S as A,x,y as Me,W as Ve,ag as Qt,ah as we,ai as J,_ as qi,X as I,aj as nt,D as Ti,Z as Gi,Y as Xi,V as Yi,T as bt,a7 as Jt,a8 as Zt,ak as Qi,a9 as zt,al as Ji}from"./index-CnmK-ReL.js";import{n as c,c as p,U as B,r as u,b as Ri}from"./index-CaTR1b7U.js";import{o as w}from"./if-defined-Bu0uAWdI.js";import"./index-Dv4eLqsS.js";import"./index-C0KvRHkU.js";import"./index-CYZ_zO57.js";import"./index-D2RsLDF3.js";import{a as Ra,W as Wa}from"./index-TYEbAVQ5.js";import"./index-CqjVsjby.js";import"./index-COaj0-sR.js";import"./index-B--praTS.js";import{C as E}from"./NetworkUtil-DCJ1tSG1.js";import{H as ei}from"./HelpersUtil-DoCsc2oM.js";import{E as Q}from"./ExchangeController-DI4vT2l3.js";import"./index-DwMF8KkJ.js";import"./index-DwCFk156.js";import{M as gt}from"./index-DAPRKHKk.js";import"./index-BiAG1CA2.js";import"./index-DpW0yxG3.js";import"./index-DclRZx2k.js";import{e as ti,n as ii}from"./ref-BB9yrDQV.js";import"./index-DsxJ-7R-.js";import{n as Zi}from"./index-CvD7y6DW.js";import"./index-CUMJxuFL.js";import"./index-COInmLkW.js";import"./index-DB91NJly.js";import{O as yt}from"./index-B3gy09Tb.js";import{e as en}from"./index-DMGwiyaH.js";import"./index-Ba6u0tKI.js";import"./index-dAV8hFqY.js";import"./index-6_WUGvL_.js";import{N as tn}from"./NavigationUtil-DmfK5sOV.js";import"./index-B2wCb629.js";import"./thirdweb-CFyLlhL5.js";import"./index-DfFL9YTJ.js";import"./ui-BPlRA29z.js";import"./vendor-BqfG8LT2.js";import"./ConstantsUtil-DUnG_tEQ.js";const nn=v`
2
2
  :host {
3
3
  display: block;
4
4
  }
@@ -1,4 +1,4 @@
1
- import{j as g,l as f,R as u,m as e,E as P,r as k,k as A}from"./index-B0fQnkQ5.js";import{r as y,c as b,n as w}from"./index-DE30NxYx.js";import"./index-CVsaRRKm.js";import{H as x}from"./HelpersUtil-XKCaotuk.js";import{o as v}from"./if-defined-BoFFMPLs.js";import"./index-Bvny0Xgz.js";import"./index-CCd5oS0s.js";const I=g`
1
+ import{m as g,o as f,R as u,q as e,E as P,r as k,n as A}from"./index-CnmK-ReL.js";import{r as y,c as b,n as w}from"./index-CaTR1b7U.js";import"./index-COInmLkW.js";import{H as x}from"./HelpersUtil-DoCsc2oM.js";import{o as v}from"./if-defined-Bu0uAWdI.js";import"./index-D2RsLDF3.js";import"./index-DpW0yxG3.js";const I=g`
2
2
  :host {
3
3
  display: block;
4
4
  }