stackswap-front-api-test-02 1.3.0 → 1.3.2

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 (199) hide show
  1. package/dist/1029.index.umd.js +14 -0
  2. package/dist/1035.index.umd.js +13 -0
  3. package/dist/1309.index.umd.js +2 -0
  4. package/dist/1309.index.umd.js.LICENSE.txt +1 -0
  5. package/dist/1476.index.umd.js +15 -0
  6. package/dist/1496.index.umd.js +18 -0
  7. package/dist/1538.index.umd.js +8 -0
  8. package/dist/1824.index.umd.js +8 -0
  9. package/dist/1837.index.umd.js +8 -0
  10. package/dist/1975.index.umd.js +16 -0
  11. package/dist/1978.index.umd.js +12 -0
  12. package/dist/1979.index.umd.js +18 -0
  13. package/dist/2011.index.umd.js +8 -0
  14. package/dist/2016.index.umd.js +6 -0
  15. package/dist/2026.index.umd.js +8 -0
  16. package/dist/2161.index.umd.js +3 -0
  17. package/dist/2387.index.umd.js +8 -0
  18. package/dist/2565.index.umd.js +61 -0
  19. package/dist/261.index.umd.js +14 -0
  20. package/dist/2658.index.umd.js +4 -0
  21. package/dist/2688.index.umd.js +8 -0
  22. package/dist/2692.index.umd.js +16 -0
  23. package/dist/279.index.umd.js +26 -0
  24. package/dist/2901.index.umd.js +14 -0
  25. package/dist/2931.index.umd.js +12 -0
  26. package/dist/3067.index.umd.js +620 -0
  27. package/dist/3481.index.umd.js +3 -0
  28. package/dist/3723.index.umd.js +6 -0
  29. package/dist/3967.index.umd.js +8 -0
  30. package/dist/4052.index.umd.js +8 -0
  31. package/dist/4067.index.umd.js +8 -0
  32. package/dist/4230.index.umd.js +11 -0
  33. package/dist/438.index.umd.js +10 -0
  34. package/dist/4477.index.umd.js +6 -0
  35. package/dist/4554.index.umd.js +15 -0
  36. package/dist/4714.index.umd.js +14 -0
  37. package/dist/4725.index.umd.js +15 -0
  38. package/dist/4736.index.umd.js +18 -0
  39. package/dist/4748.index.umd.js +12 -0
  40. package/dist/4778.index.umd.js +12 -0
  41. package/dist/4953.index.umd.js +8 -0
  42. package/dist/4987.index.umd.js +9 -0
  43. package/dist/5133.index.umd.js +8 -0
  44. package/dist/5179.index.umd.js +4 -0
  45. package/dist/5214.index.umd.js +8 -0
  46. package/dist/5410.index.umd.js +8 -0
  47. package/dist/5420.index.umd.js +5 -0
  48. package/dist/5426.index.umd.js +12 -0
  49. package/dist/5452.index.umd.js +8 -0
  50. package/dist/5518.index.umd.js +12 -0
  51. package/dist/5664.index.umd.js +8 -0
  52. package/dist/5776.index.umd.js +8 -0
  53. package/dist/5806.index.umd.js +30 -0
  54. package/dist/5823.index.umd.js +3 -0
  55. package/dist/5943.index.umd.js +8 -0
  56. package/dist/6040.index.umd.js +8 -0
  57. package/dist/6183.index.umd.js +13 -0
  58. package/dist/6188.index.umd.js +8 -0
  59. package/dist/6267.index.umd.js +2119 -0
  60. package/dist/6267.index.umd.js.LICENSE.txt +5 -0
  61. package/dist/6348.index.umd.js +12 -0
  62. package/dist/6355.index.umd.js +9 -0
  63. package/dist/6426.index.umd.js +8 -0
  64. package/dist/6530.index.umd.js +8 -0
  65. package/dist/6561.index.umd.js +12 -0
  66. package/dist/6618.index.umd.js +8 -0
  67. package/dist/6717.index.umd.js +11 -0
  68. package/dist/6780.index.umd.js +8 -0
  69. package/dist/6828.index.umd.js +3 -0
  70. package/dist/6929.index.umd.js +8 -0
  71. package/dist/6958.index.umd.js +4 -0
  72. package/dist/70.index.umd.js +6 -0
  73. package/dist/7243.index.umd.js +17 -0
  74. package/dist/7252.index.umd.js +3 -0
  75. package/dist/7410.index.umd.js +335 -0
  76. package/dist/7410.index.umd.js.LICENSE.txt +17 -0
  77. package/dist/7469.index.umd.js +32 -0
  78. package/dist/7703.index.umd.js +4 -0
  79. package/dist/7861.index.umd.js +13 -0
  80. package/dist/787.index.umd.js +14 -0
  81. package/dist/7969.index.umd.js +1 -0
  82. package/dist/8127.index.umd.js +8 -0
  83. package/dist/877.index.umd.js +8 -0
  84. package/dist/8842.index.umd.js +4 -0
  85. package/dist/9146.index.umd.js +8 -0
  86. package/dist/9236.index.umd.js +17 -0
  87. package/dist/9385.index.umd.js +9 -0
  88. package/dist/9390.index.umd.js +11 -0
  89. package/dist/9624.index.umd.js +18 -0
  90. package/dist/esm/index.d.ts +1 -2
  91. package/dist/esm/index.js +56 -75
  92. package/dist/esm/index.js.map +1 -1
  93. package/dist/esm/stackswap/manager/bridge.manager.js +11 -11
  94. package/dist/esm/stackswap/manager/bridge.manager.js.map +1 -1
  95. package/dist/esm/stackswap/manager/farm.manager.js +11 -11
  96. package/dist/esm/stackswap/manager/farm.manager.js.map +1 -1
  97. package/dist/esm/stackswap/manager/farm2.manager.js +14 -14
  98. package/dist/esm/stackswap/manager/farm2.manager.js.map +1 -1
  99. package/dist/esm/stackswap/manager/farm3.manager.js +10 -10
  100. package/dist/esm/stackswap/manager/farm3.manager.js.map +1 -1
  101. package/dist/esm/stackswap/manager/governance.manager.js +3 -3
  102. package/dist/esm/stackswap/manager/governance.manager.js.map +1 -1
  103. package/dist/esm/stackswap/manager/groupfarm.manager.d.ts +1 -1
  104. package/dist/esm/stackswap/manager/groupfarm.manager.js +22 -22
  105. package/dist/esm/stackswap/manager/groupfarm.manager.js.map +1 -1
  106. package/dist/esm/stackswap/manager/launchpad.manager.js +6 -6
  107. package/dist/esm/stackswap/manager/launchpad.manager.js.map +1 -1
  108. package/dist/esm/stackswap/manager/lbtc.manager.js +9 -9
  109. package/dist/esm/stackswap/manager/lbtc.manager.js.map +1 -1
  110. package/dist/esm/stackswap/manager/lbtcstaking.manager.js +11 -11
  111. package/dist/esm/stackswap/manager/lbtcstaking.manager.js.map +1 -1
  112. package/dist/esm/stackswap/manager/multisig.manager.js +3 -3
  113. package/dist/esm/stackswap/manager/multisig.manager.js.map +1 -1
  114. package/dist/esm/stackswap/manager/nft.manager.d.ts +2 -2
  115. package/dist/esm/stackswap/manager/nft.manager.js +21 -15
  116. package/dist/esm/stackswap/manager/nft.manager.js.map +1 -1
  117. package/dist/esm/stackswap/manager/operator.manager.js +3 -3
  118. package/dist/esm/stackswap/manager/operator.manager.js.map +1 -1
  119. package/dist/esm/stackswap/manager/other.manager.js +3 -3
  120. package/dist/esm/stackswap/manager/other.manager.js.map +1 -1
  121. package/dist/esm/stackswap/manager/pool.manager.js +5 -5
  122. package/dist/esm/stackswap/manager/pool.manager.js.map +1 -1
  123. package/dist/esm/stackswap/manager/poxl.manager.js +3 -3
  124. package/dist/esm/stackswap/manager/poxl.manager.js.map +1 -1
  125. package/dist/esm/stackswap/manager/staking.manager.js +14 -14
  126. package/dist/esm/stackswap/manager/staking.manager.js.map +1 -1
  127. package/dist/esm/stackswap/manager/swap.manager.js.map +1 -1
  128. package/dist/esm/stackswap/manager/token.manager.js +6 -6
  129. package/dist/esm/stackswap/manager/token.manager.js.map +1 -1
  130. package/dist/esm/stackswap/util.d.ts +2 -2
  131. package/dist/esm/stackswap/util.js +21 -3
  132. package/dist/esm/stackswap/util.js.map +1 -1
  133. package/dist/index.d.ts +1 -2
  134. package/dist/index.js +54 -73
  135. package/dist/index.js.map +1 -1
  136. package/dist/index.umd.js +877 -1
  137. package/dist/index.umd.js.LICENSE.txt +33 -2
  138. package/dist/stackswap/manager/bridge.manager.js +10 -10
  139. package/dist/stackswap/manager/bridge.manager.js.map +1 -1
  140. package/dist/stackswap/manager/farm.manager.js +10 -10
  141. package/dist/stackswap/manager/farm.manager.js.map +1 -1
  142. package/dist/stackswap/manager/farm2.manager.js +14 -14
  143. package/dist/stackswap/manager/farm2.manager.js.map +1 -1
  144. package/dist/stackswap/manager/farm3.manager.js +10 -10
  145. package/dist/stackswap/manager/farm3.manager.js.map +1 -1
  146. package/dist/stackswap/manager/governance.manager.js +2 -2
  147. package/dist/stackswap/manager/governance.manager.js.map +1 -1
  148. package/dist/stackswap/manager/groupfarm.manager.d.ts +1 -1
  149. package/dist/stackswap/manager/groupfarm.manager.js +22 -22
  150. package/dist/stackswap/manager/groupfarm.manager.js.map +1 -1
  151. package/dist/stackswap/manager/launchpad.manager.js +5 -5
  152. package/dist/stackswap/manager/launchpad.manager.js.map +1 -1
  153. package/dist/stackswap/manager/lbtc.manager.js +8 -8
  154. package/dist/stackswap/manager/lbtc.manager.js.map +1 -1
  155. package/dist/stackswap/manager/lbtcstaking.manager.js +10 -10
  156. package/dist/stackswap/manager/lbtcstaking.manager.js.map +1 -1
  157. package/dist/stackswap/manager/multisig.manager.js +2 -2
  158. package/dist/stackswap/manager/multisig.manager.js.map +1 -1
  159. package/dist/stackswap/manager/nft.manager.d.ts +2 -2
  160. package/dist/stackswap/manager/nft.manager.js +20 -14
  161. package/dist/stackswap/manager/nft.manager.js.map +1 -1
  162. package/dist/stackswap/manager/operator.manager.js +2 -2
  163. package/dist/stackswap/manager/operator.manager.js.map +1 -1
  164. package/dist/stackswap/manager/other.manager.js +2 -2
  165. package/dist/stackswap/manager/other.manager.js.map +1 -1
  166. package/dist/stackswap/manager/pool.manager.js +4 -4
  167. package/dist/stackswap/manager/pool.manager.js.map +1 -1
  168. package/dist/stackswap/manager/poxl.manager.js +2 -2
  169. package/dist/stackswap/manager/poxl.manager.js.map +1 -1
  170. package/dist/stackswap/manager/staking.manager.d.ts +1 -1
  171. package/dist/stackswap/manager/staking.manager.js +13 -13
  172. package/dist/stackswap/manager/staking.manager.js.map +1 -1
  173. package/dist/stackswap/manager/swap.manager.js +1 -1
  174. package/dist/stackswap/manager/swap.manager.js.map +1 -1
  175. package/dist/stackswap/manager/token.manager.js +7 -7
  176. package/dist/stackswap/manager/token.manager.js.map +1 -1
  177. package/dist/stackswap/util.d.ts +2 -2
  178. package/dist/stackswap/util.js +31 -14
  179. package/dist/stackswap/util.js.map +1 -1
  180. package/package.json +5 -5
  181. package/src/index.ts +69 -75
  182. package/src/stackswap/manager/bridge.manager.ts +11 -11
  183. package/src/stackswap/manager/farm.manager.ts +11 -11
  184. package/src/stackswap/manager/farm2.manager.ts +14 -14
  185. package/src/stackswap/manager/farm3.manager.ts +10 -10
  186. package/src/stackswap/manager/governance.manager.ts +3 -3
  187. package/src/stackswap/manager/groupfarm.manager.ts +25 -25
  188. package/src/stackswap/manager/launchpad.manager.ts +6 -6
  189. package/src/stackswap/manager/lbtc.manager.ts +566 -566
  190. package/src/stackswap/manager/lbtcstaking.manager.ts +13 -13
  191. package/src/stackswap/manager/multisig.manager.ts +3 -3
  192. package/src/stackswap/manager/nft.manager.ts +24 -18
  193. package/src/stackswap/manager/operator.manager.ts +3 -3
  194. package/src/stackswap/manager/other.manager.ts +3 -3
  195. package/src/stackswap/manager/pool.manager.ts +5 -5
  196. package/src/stackswap/manager/poxl.manager.ts +3 -3
  197. package/src/stackswap/manager/staking.manager.ts +14 -14
  198. package/src/stackswap/manager/token.manager.ts +6 -6
  199. package/src/stackswap/util.ts +28 -6
@@ -0,0 +1,2119 @@
1
+ /*! For license information please see 6267.index.umd.js.LICENSE.txt */
2
+ (self.webpackChunkStackswapFrontAPI=self.webpackChunkStackswapFrontAPI||[]).push([[6267],{6320:t=>{"use strict";var e={single_source_shortest_paths:function(t,i,o){var r={},n={};n[i]=0;var a,s,l,c,u,d,h,p=e.PriorityQueue.make();for(p.push(i,0);!p.empty();)for(l in s=(a=p.pop()).value,c=a.cost,u=t[s]||{})u.hasOwnProperty(l)&&(d=c+u[l],h=n[l],(void 0===n[l]||h>d)&&(n[l]=d,p.push(l,d),r[l]=s));if(void 0!==o&&void 0===n[o]){var w=["Could not find a path from ",i," to ",o,"."].join("");throw new Error(w)}return r},extract_shortest_path_from_predecessor_list:function(t,e){for(var i=[],o=e;o;)i.push(o),t[o],o=t[o];return i.reverse(),i},find_path:function(t,i,o){var r=e.single_source_shortest_paths(t,i,o);return e.extract_shortest_path_from_predecessor_list(r,o)},PriorityQueue:{make:function(t){var i,o=e.PriorityQueue,r={};for(i in t=t||{},o)o.hasOwnProperty(i)&&(r[i]=o[i]);return r.queue=[],r.sorter=t.sorter||o.default_sorter,r},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var i={value:t,cost:e};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e},9049:t=>{"use strict";t.exports=function(t){for(var e=[],i=t.length,o=0;o<i;o++){var r=t.charCodeAt(o);if(r>=55296&&r<=56319&&i>o+1){var n=t.charCodeAt(o+1);n>=56320&&n<=57343&&(r=1024*(r-55296)+n-56320+65536,o+=1)}r<128?e.push(r):r<2048?(e.push(r>>6|192),e.push(63&r|128)):r<55296||r>=57344&&r<65536?(e.push(r>>12|224),e.push(r>>6&63|128),e.push(63&r|128)):r>=65536&&r<=1114111?(e.push(r>>18|240),e.push(r>>12&63|128),e.push(r>>6&63|128),e.push(63&r|128)):e.push(239,191,189)}return new Uint8Array(e).buffer}},7583:(t,e,i)=>{const o=i(1333),r=i(157),n=i(7899),a=i(6756);function s(t,e,i,n,a){const s=[].slice.call(arguments,1),l=s.length,c="function"==typeof s[l-1];if(!c&&!o())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(i=e,e=n=void 0):2!==l||e.getContext||(n=i,i=e,e=void 0),new Promise((function(o,a){try{const a=r.create(i,n);o(t(a,e,n))}catch(t){a(t)}}))}if(l<2)throw new Error("Too few arguments provided");2===l?(a=i,i=e,e=n=void 0):3===l&&(e.getContext&&void 0===a?(a=n,n=void 0):(a=n,n=i,i=e,e=void 0));try{const o=r.create(i,n);a(null,t(o,e,n))}catch(t){a(t)}}e.create=r.create,e.toCanvas=s.bind(null,n.render),e.toDataURL=s.bind(null,n.renderToDataURL),e.toString=s.bind(null,(function(t,e,i){return a.render(t,i)}))},1333:t=>{t.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6421:(t,e,i)=>{const o=i(6886).getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];const e=Math.floor(t/7)+2,i=o(t),r=145===i?26:2*Math.ceil((i-13)/(2*e-2)),n=[i-7];for(let t=1;t<e-1;t++)n[t]=n[t-1]-r;return n.push(6),n.reverse()},e.getPositions=function(t){const i=[],o=e.getRowColCoords(t),r=o.length;for(let t=0;t<r;t++)for(let e=0;e<r;e++)0===t&&0===e||0===t&&e===r-1||t===r-1&&0===e||i.push([o[t],o[e]]);return i}},1433:(t,e,i)=>{const o=i(208),r=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function n(t){this.mode=o.ALPHANUMERIC,this.data=t}n.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let i=45*r.indexOf(this.data[e]);i+=r.indexOf(this.data[e+1]),t.put(i,11)}this.data.length%2&&t.put(r.indexOf(this.data[e]),6)},t.exports=n},9899:t=>{function e(){this.buffer=[],this.length=0}e.prototype={get:function(t){const e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(let i=0;i<e;i++)this.putBit(1==(t>>>e-i-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=e},8820:t=>{function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}e.prototype.set=function(t,e,i,o){const r=t*this.size+e;this.data[r]=i,o&&(this.reservedBit[r]=!0)},e.prototype.get=function(t,e){return this.data[t*this.size+e]},e.prototype.xor=function(t,e,i){this.data[t*this.size+e]^=i},e.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},t.exports=e},5822:(t,e,i)=>{const o=i(9049),r=i(208);function n(t){this.mode=r.BYTE,"string"==typeof t&&(t=o(t)),this.data=new Uint8Array(t)}n.getBitsLength=function(t){return 8*t},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){for(let e=0,i=this.data.length;e<i;e++)t.put(this.data[e],8)},t.exports=n},7518:(t,e,i)=>{const o=i(9953),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],n=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(t,e){switch(e){case o.L:return r[4*(t-1)+0];case o.M:return r[4*(t-1)+1];case o.Q:return r[4*(t-1)+2];case o.H:return r[4*(t-1)+3];default:return}},e.getTotalCodewordsCount=function(t,e){switch(e){case o.L:return n[4*(t-1)+0];case o.M:return n[4*(t-1)+1];case o.Q:return n[4*(t-1)+2];case o.H:return n[4*(t-1)+3];default:return}}},9953:(t,e)=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},e.from=function(t,i){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(t){return i}}},7756:(t,e,i)=>{const o=i(6886).getSymbolSize;e.getPositions=function(t){const e=o(t);return[[0,0],[e-7,0],[0,e-7]]}},4565:(t,e,i)=>{const o=i(6886),r=o.getBCHDigit(1335);e.getEncodedBits=function(t,e){const i=t.bit<<3|e;let n=i<<10;for(;o.getBCHDigit(n)-r>=0;)n^=1335<<o.getBCHDigit(n)-r;return 21522^(i<<10|n)}},2731:(t,e)=>{const i=new Uint8Array(512),o=new Uint8Array(256);!function(){let t=1;for(let e=0;e<255;e++)i[e]=t,o[t]=e,t<<=1,256&t&&(t^=285);for(let t=255;t<512;t++)i[t]=i[t-255]}(),e.log=function(t){if(t<1)throw new Error("log("+t+")");return o[t]},e.exp=function(t){return i[t]},e.mul=function(t,e){return 0===t||0===e?0:i[o[t]+o[e]]}},4861:(t,e,i)=>{const o=i(208),r=i(6886);function n(t){this.mode=o.KANJI,this.data=t}n.getBitsLength=function(t){return 13*t},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let i=r.toSJIS(this.data[e]);if(i>=33088&&i<=40956)i-=33088;else{if(!(i>=57408&&i<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");i-=49472}i=192*(i>>>8&255)+(255&i),t.put(i,13)}},t.exports=n},1332:(t,e)=>{e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function i(t,i,o){switch(t){case e.Patterns.PATTERN000:return(i+o)%2==0;case e.Patterns.PATTERN001:return i%2==0;case e.Patterns.PATTERN010:return o%3==0;case e.Patterns.PATTERN011:return(i+o)%3==0;case e.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(o/3))%2==0;case e.Patterns.PATTERN101:return i*o%2+i*o%3==0;case e.Patterns.PATTERN110:return(i*o%2+i*o%3)%2==0;case e.Patterns.PATTERN111:return(i*o%3+(i+o)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){const e=t.size;let i=0,o=0,r=0,n=null,a=null;for(let s=0;s<e;s++){o=r=0,n=a=null;for(let l=0;l<e;l++){let e=t.get(s,l);e===n?o++:(o>=5&&(i+=o-5+3),n=e,o=1),e=t.get(l,s),e===a?r++:(r>=5&&(i+=r-5+3),a=e,r=1)}o>=5&&(i+=o-5+3),r>=5&&(i+=r-5+3)}return i},e.getPenaltyN2=function(t){const e=t.size;let i=0;for(let o=0;o<e-1;o++)for(let r=0;r<e-1;r++){const e=t.get(o,r)+t.get(o,r+1)+t.get(o+1,r)+t.get(o+1,r+1);4!==e&&0!==e||i++}return 3*i},e.getPenaltyN3=function(t){const e=t.size;let i=0,o=0,r=0;for(let n=0;n<e;n++){o=r=0;for(let a=0;a<e;a++)o=o<<1&2047|t.get(n,a),a>=10&&(1488===o||93===o)&&i++,r=r<<1&2047|t.get(a,n),a>=10&&(1488===r||93===r)&&i++}return 40*i},e.getPenaltyN4=function(t){let e=0;const i=t.data.length;for(let o=0;o<i;o++)e+=t.data[o];return 10*Math.abs(Math.ceil(100*e/i/5)-10)},e.applyMask=function(t,e){const o=e.size;for(let r=0;r<o;r++)for(let n=0;n<o;n++)e.isReserved(n,r)||e.xor(n,r,i(t,n,r))},e.getBestMask=function(t,i){const o=Object.keys(e.Patterns).length;let r=0,n=1/0;for(let a=0;a<o;a++){i(a),e.applyMask(a,t);const o=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(a,t),o<n&&(n=o,r=a)}return r}},208:(t,e,i)=>{const o=i(1878),r=i(7044);e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!o.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return r.testNumeric(t)?e.NUMERIC:r.testAlphanumeric(t)?e.ALPHANUMERIC:r.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,i){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(t){return i}}},4357:(t,e,i)=>{const o=i(208);function r(t){this.mode=o.NUMERIC,this.data=t.toString()}r.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(t){let e,i,o;for(e=0;e+3<=this.data.length;e+=3)i=this.data.substr(e,3),o=parseInt(i,10),t.put(o,10);const r=this.data.length-e;r>0&&(i=this.data.substr(e),o=parseInt(i,10),t.put(o,3*r+1))},t.exports=r},4713:(t,e,i)=>{const o=i(2731);e.mul=function(t,e){const i=new Uint8Array(t.length+e.length-1);for(let r=0;r<t.length;r++)for(let n=0;n<e.length;n++)i[r+n]^=o.mul(t[r],e[n]);return i},e.mod=function(t,e){let i=new Uint8Array(t);for(;i.length-e.length>=0;){const t=i[0];for(let r=0;r<e.length;r++)i[r]^=o.mul(e[r],t);let r=0;for(;r<i.length&&0===i[r];)r++;i=i.slice(r)}return i},e.generateECPolynomial=function(t){let i=new Uint8Array([1]);for(let r=0;r<t;r++)i=e.mul(i,new Uint8Array([1,o.exp(r)]));return i}},157:(t,e,i)=>{const o=i(6886),r=i(9953),n=i(9899),a=i(8820),s=i(6421),l=i(7756),c=i(1332),u=i(7518),d=i(4764),h=i(1427),p=i(4565),w=i(208),g=i(9801);function f(t,e,i){const o=t.size,r=p.getEncodedBits(e,i);let n,a;for(n=0;n<15;n++)a=1==(r>>n&1),n<6?t.set(n,8,a,!0):n<8?t.set(n+1,8,a,!0):t.set(o-15+n,8,a,!0),n<8?t.set(8,o-n-1,a,!0):n<9?t.set(8,15-n-1+1,a,!0):t.set(8,15-n-1,a,!0);t.set(o-8,8,1,!0)}function b(t,e,i,r){let p;if(Array.isArray(t))p=g.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");{let o=e;if(!o){const e=g.rawSplit(t);o=h.getBestVersionForData(e,i)}p=g.fromString(t,o||40)}}const b=h.getBestVersionForData(p,i);if(!b)throw new Error("The amount of data is too big to be stored in a QR Code");if(e){if(e<b)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+b+".\n")}else e=b;const m=function(t,e,i){const r=new n;i.forEach((function(e){r.put(e.mode.bit,4),r.put(e.getLength(),w.getCharCountIndicator(e.mode,t)),e.write(r)}));const a=8*(o.getSymbolTotalCodewords(t)-u.getTotalCodewordsCount(t,e));for(r.getLengthInBits()+4<=a&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(0);const s=(a-r.getLengthInBits())/8;for(let t=0;t<s;t++)r.put(t%2?17:236,8);return function(t,e,i){const r=o.getSymbolTotalCodewords(e),n=r-u.getTotalCodewordsCount(e,i),a=u.getBlocksCount(e,i),s=a-r%a,l=Math.floor(r/a),c=Math.floor(n/a),h=c+1,p=l-c,w=new d(p);let g=0;const f=new Array(a),b=new Array(a);let m=0;const v=new Uint8Array(t.buffer);for(let t=0;t<a;t++){const e=t<s?c:h;f[t]=v.slice(g,g+e),b[t]=w.encode(f[t]),g+=e,m=Math.max(m,e)}const y=new Uint8Array(r);let x,k,C=0;for(x=0;x<m;x++)for(k=0;k<a;k++)x<f[k].length&&(y[C++]=f[k][x]);for(x=0;x<p;x++)for(k=0;k<a;k++)y[C++]=b[k][x];return y}(r,t,e)}(e,i,p),v=o.getSymbolSize(e),y=new a(v);return function(t,e){const i=t.size,o=l.getPositions(e);for(let e=0;e<o.length;e++){const r=o[e][0],n=o[e][1];for(let e=-1;e<=7;e++)if(!(r+e<=-1||i<=r+e))for(let o=-1;o<=7;o++)n+o<=-1||i<=n+o||(e>=0&&e<=6&&(0===o||6===o)||o>=0&&o<=6&&(0===e||6===e)||e>=2&&e<=4&&o>=2&&o<=4?t.set(r+e,n+o,!0,!0):t.set(r+e,n+o,!1,!0))}}(y,e),function(t){const e=t.size;for(let i=8;i<e-8;i++){const e=i%2==0;t.set(i,6,e,!0),t.set(6,i,e,!0)}}(y),function(t,e){const i=s.getPositions(e);for(let e=0;e<i.length;e++){const o=i[e][0],r=i[e][1];for(let e=-2;e<=2;e++)for(let i=-2;i<=2;i++)-2===e||2===e||-2===i||2===i||0===e&&0===i?t.set(o+e,r+i,!0,!0):t.set(o+e,r+i,!1,!0)}}(y,e),f(y,i,0),e>=7&&function(t,e){const i=t.size,o=h.getEncodedBits(e);let r,n,a;for(let e=0;e<18;e++)r=Math.floor(e/3),n=e%3+i-8-3,a=1==(o>>e&1),t.set(r,n,a,!0),t.set(n,r,a,!0)}(y,e),function(t,e){const i=t.size;let o=-1,r=i-1,n=7,a=0;for(let s=i-1;s>0;s-=2)for(6===s&&s--;;){for(let i=0;i<2;i++)if(!t.isReserved(r,s-i)){let o=!1;a<e.length&&(o=1==(e[a]>>>n&1)),t.set(r,s-i,o),n--,-1===n&&(a++,n=7)}if(r+=o,r<0||i<=r){r-=o,o=-o;break}}}(y,m),isNaN(r)&&(r=c.getBestMask(y,f.bind(null,y,i))),c.applyMask(r,y),f(y,i,r),{modules:y,version:e,errorCorrectionLevel:i,maskPattern:r,segments:p}}e.create=function(t,e){if(void 0===t||""===t)throw new Error("No input text");let i,n,a=r.M;return void 0!==e&&(a=r.from(e.errorCorrectionLevel,r.M),i=h.from(e.version),n=c.from(e.maskPattern),e.toSJISFunc&&o.setToSJISFunction(e.toSJISFunc)),b(t,i,a,n)}},4764:(t,e,i)=>{const o=i(4713);function r(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(t){this.degree=t,this.genPoly=o.generateECPolynomial(this.degree)},r.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const e=new Uint8Array(t.length+this.degree);e.set(t);const i=o.mod(e,this.genPoly),r=this.degree-i.length;if(r>0){const t=new Uint8Array(this.degree);return t.set(i,r),t}return i},t.exports=r},7044:(t,e)=>{const i="[0-9]+";let o="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";o=o.replace(/u/g,"\\u");const r="(?:(?![A-Z0-9 $%*+\\-./:]|"+o+")(?:.|[\r\n]))+";e.KANJI=new RegExp(o,"g"),e.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),e.BYTE=new RegExp(r,"g"),e.NUMERIC=new RegExp(i,"g"),e.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const n=new RegExp("^"+o+"$"),a=new RegExp("^"+i+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");e.testKanji=function(t){return n.test(t)},e.testNumeric=function(t){return a.test(t)},e.testAlphanumeric=function(t){return s.test(t)}},9801:(t,e,i)=>{const o=i(208),r=i(4357),n=i(1433),a=i(5822),s=i(4861),l=i(7044),c=i(6886),u=i(6320);function d(t){return unescape(encodeURIComponent(t)).length}function h(t,e,i){const o=[];let r;for(;null!==(r=t.exec(i));)o.push({data:r[0],index:r.index,mode:e,length:r[0].length});return o}function p(t){const e=h(l.NUMERIC,o.NUMERIC,t),i=h(l.ALPHANUMERIC,o.ALPHANUMERIC,t);let r,n;return c.isKanjiModeEnabled()?(r=h(l.BYTE,o.BYTE,t),n=h(l.KANJI,o.KANJI,t)):(r=h(l.BYTE_KANJI,o.BYTE,t),n=[]),e.concat(i,r,n).sort((function(t,e){return t.index-e.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function w(t,e){switch(e){case o.NUMERIC:return r.getBitsLength(t);case o.ALPHANUMERIC:return n.getBitsLength(t);case o.KANJI:return s.getBitsLength(t);case o.BYTE:return a.getBitsLength(t)}}function g(t,e){let i;const l=o.getBestModeForData(t);if(i=o.from(e,l),i!==o.BYTE&&i.bit<l.bit)throw new Error('"'+t+'" cannot be encoded with mode '+o.toString(i)+".\n Suggested mode is: "+o.toString(l));switch(i!==o.KANJI||c.isKanjiModeEnabled()||(i=o.BYTE),i){case o.NUMERIC:return new r(t);case o.ALPHANUMERIC:return new n(t);case o.KANJI:return new s(t);case o.BYTE:return new a(t)}}e.fromArray=function(t){return t.reduce((function(t,e){return"string"==typeof e?t.push(g(e,null)):e.data&&t.push(g(e.data,e.mode)),t}),[])},e.fromString=function(t,i){const r=function(t){const e=[];for(let i=0;i<t.length;i++){const r=t[i];switch(r.mode){case o.NUMERIC:e.push([r,{data:r.data,mode:o.ALPHANUMERIC,length:r.length},{data:r.data,mode:o.BYTE,length:r.length}]);break;case o.ALPHANUMERIC:e.push([r,{data:r.data,mode:o.BYTE,length:r.length}]);break;case o.KANJI:e.push([r,{data:r.data,mode:o.BYTE,length:d(r.data)}]);break;case o.BYTE:e.push([{data:r.data,mode:o.BYTE,length:d(r.data)}])}}return e}(p(t,c.isKanjiModeEnabled())),n=function(t,e){const i={},r={start:{}};let n=["start"];for(let a=0;a<t.length;a++){const s=t[a],l=[];for(let t=0;t<s.length;t++){const c=s[t],u=""+a+t;l.push(u),i[u]={node:c,lastCount:0},r[u]={};for(let t=0;t<n.length;t++){const a=n[t];i[a]&&i[a].node.mode===c.mode?(r[a][u]=w(i[a].lastCount+c.length,c.mode)-w(i[a].lastCount,c.mode),i[a].lastCount+=c.length):(i[a]&&(i[a].lastCount=c.length),r[a][u]=w(c.length,c.mode)+4+o.getCharCountIndicator(c.mode,e))}}n=l}for(let t=0;t<n.length;t++)r[n[t]].end=0;return{map:r,table:i}}(r,i),a=u.find_path(n.map,"start","end"),s=[];for(let t=1;t<a.length-1;t++)s.push(n.table[a[t]].node);return e.fromArray(s.reduce((function(t,e){const i=t.length-1>=0?t[t.length-1]:null;return i&&i.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)}),[]))},e.rawSplit=function(t){return e.fromArray(p(t,c.isKanjiModeEnabled()))}},6886:(t,e)=>{let i;const o=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},e.getSymbolTotalCodewords=function(t){return o[t]},e.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},e.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');i=t},e.isKanjiModeEnabled=function(){return void 0!==i},e.toSJIS=function(t){return i(t)}},1878:(t,e)=>{e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},1427:(t,e,i)=>{const o=i(6886),r=i(7518),n=i(9953),a=i(208),s=i(1878),l=o.getBCHDigit(7973);function c(t,e){return a.getCharCountIndicator(t,e)+4}function u(t,e){let i=0;return t.forEach((function(t){const o=c(t.mode,e);i+=o+t.getBitsLength()})),i}e.from=function(t,e){return s.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,i){if(!s.isValid(t))throw new Error("Invalid QR Code version");void 0===i&&(i=a.BYTE);const n=8*(o.getSymbolTotalCodewords(t)-r.getTotalCodewordsCount(t,e));if(i===a.MIXED)return n;const l=n-c(i,t);switch(i){case a.NUMERIC:return Math.floor(l/10*3);case a.ALPHANUMERIC:return Math.floor(l/11*2);case a.KANJI:return Math.floor(l/13);case a.BYTE:default:return Math.floor(l/8)}},e.getBestVersionForData=function(t,i){let o;const r=n.from(i,n.M);if(Array.isArray(t)){if(t.length>1)return function(t,i){for(let o=1;o<=40;o++)if(u(t,o)<=e.getCapacity(o,i,a.MIXED))return o}(t,r);if(0===t.length)return 1;o=t[0]}else o=t;return function(t,i,o){for(let r=1;r<=40;r++)if(i<=e.getCapacity(r,o,t))return r}(o.mode,o.getLength(),r)},e.getEncodedBits=function(t){if(!s.isValid(t)||t<7)throw new Error("Invalid QR Code version");let e=t<<12;for(;o.getBCHDigit(e)-l>=0;)e^=7973<<o.getBCHDigit(e)-l;return t<<12|e}},7899:(t,e,i)=>{const o=i(2726);e.render=function(t,e,i){let r=i,n=e;void 0!==r||e&&e.getContext||(r=e,e=void 0),e||(n=function(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}()),r=o.getOptions(r);const a=o.getImageWidth(t.modules.size,r),s=n.getContext("2d"),l=s.createImageData(a,a);return o.qrToImageData(l.data,t,r),function(t,e,i){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=i,e.width=i,e.style.height=i+"px",e.style.width=i+"px"}(s,n,a),s.putImageData(l,0,0),n},e.renderToDataURL=function(t,i,o){let r=o;void 0!==r||i&&i.getContext||(r=i,i=void 0),r||(r={});const n=e.render(t,i,r),a=r.type||"image/png",s=r.rendererOpts||{};return n.toDataURL(a,s.quality)}},6756:(t,e,i)=>{const o=i(2726);function r(t,e){const i=t.a/255,o=e+'="'+t.hex+'"';return i<1?o+" "+e+'-opacity="'+i.toFixed(2).slice(1)+'"':o}function n(t,e,i){let o=t+e;return void 0!==i&&(o+=" "+i),o}e.render=function(t,e,i){const a=o.getOptions(e),s=t.modules.size,l=t.modules.data,c=s+2*a.margin,u=a.color.light.a?"<path "+r(a.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",d="<path "+r(a.color.dark,"stroke")+' d="'+function(t,e,i){let o="",r=0,a=!1,s=0;for(let l=0;l<t.length;l++){const c=Math.floor(l%e),u=Math.floor(l/e);c||a||(a=!0),t[l]?(s++,l>0&&c>0&&t[l-1]||(o+=a?n("M",c+i,.5+u+i):n("m",r,0),r=0,a=!1),c+1<e&&t[l+1]||(o+=n("h",s),s=0)):r++}return o}(l,s,a.margin)+'"/>',h='viewBox="0 0 '+c+" "+c+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+h+' shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"==typeof i&&i(null,p),p}},2726:(t,e)=>{function i(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map((function(t){return[t,t]})))),6===e.length&&e.push("F","F");const i=parseInt(e.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:255&i,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});const e=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,o=t.width&&t.width>=21?t.width:void 0,r=t.scale||4;return{width:o,scale:o?4:r,margin:e,color:{dark:i(t.color.dark||"#000000ff"),light:i(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,i){const o=e.getScale(t,i);return Math.floor((t+2*i.margin)*o)},e.qrToImageData=function(t,i,o){const r=i.modules.size,n=i.modules.data,a=e.getScale(r,o),s=Math.floor((r+2*o.margin)*a),l=o.margin*a,c=[o.color.light,o.color.dark];for(let e=0;e<s;e++)for(let i=0;i<s;i++){let u=4*(e*s+i),d=o.color.light;e>=l&&i>=l&&e<s-l&&i<s-l&&(d=c[n[Math.floor((e-l)/a)*r+Math.floor((i-l)/a)]?1:0]),t[u++]=d.r,t[u++]=d.g,t[u++]=d.b,t[u]=d.a}}},6267:(t,e,i)=>{"use strict";i.r(e),i.d(e,{W3mAllWalletsView:()=>Je,W3mConnectingWcBasicView:()=>ne,W3mDownloadsView:()=>Ge});var o=i(2618),r=i(2745),n=i(6742),a=i(8249),s=i(2733),l=i(7508),c=i(2855),u=(i(310),i(31)),d=i(4376),h=i(6010),p=i(4702),w=i(184),g=i(8508),f=(i(2132),i(8409),i(2851),i(6109)),b=i(3494);i(9807),i(6887);const m=o.AH`
3
+ :host {
4
+ position: relative;
5
+ background-color: var(--wui-color-gray-glass-002);
6
+ display: flex;
7
+ justify-content: center;
8
+ align-items: center;
9
+ width: var(--local-size);
10
+ height: var(--local-size);
11
+ border-radius: inherit;
12
+ border-radius: var(--local-border-radius);
13
+ }
14
+
15
+ :host > wui-flex {
16
+ overflow: hidden;
17
+ border-radius: inherit;
18
+ border-radius: var(--local-border-radius);
19
+ }
20
+
21
+ :host::after {
22
+ content: '';
23
+ position: absolute;
24
+ top: 0;
25
+ bottom: 0;
26
+ left: 0;
27
+ right: 0;
28
+ border-radius: inherit;
29
+ border: 1px solid var(--wui-color-gray-glass-010);
30
+ pointer-events: none;
31
+ }
32
+
33
+ :host([name='Extension'])::after {
34
+ border: 1px solid var(--wui-color-accent-glass-010);
35
+ }
36
+
37
+ :host([data-wallet-icon='allWallets']) {
38
+ background-color: var(--wui-all-wallets-bg-100);
39
+ }
40
+
41
+ :host([data-wallet-icon='allWallets'])::after {
42
+ border: 1px solid var(--wui-color-accent-glass-010);
43
+ }
44
+
45
+ wui-icon[data-parent-size='inherit'] {
46
+ width: 75%;
47
+ height: 75%;
48
+ align-items: center;
49
+ }
50
+
51
+ wui-icon[data-parent-size='sm'] {
52
+ width: 18px;
53
+ height: 18px;
54
+ }
55
+
56
+ wui-icon[data-parent-size='md'] {
57
+ width: 24px;
58
+ height: 24px;
59
+ }
60
+
61
+ wui-icon[data-parent-size='lg'] {
62
+ width: 42px;
63
+ height: 42px;
64
+ }
65
+
66
+ wui-icon[data-parent-size='full'] {
67
+ width: 100%;
68
+ height: 100%;
69
+ }
70
+
71
+ :host > wui-icon-box {
72
+ position: absolute;
73
+ overflow: hidden;
74
+ right: -1px;
75
+ bottom: -2px;
76
+ z-index: 1;
77
+ border: 2px solid var(--wui-color-bg-150, #1e1f1f);
78
+ padding: 1px;
79
+ }
80
+ `;var v=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let y=class extends o.WF{constructor(){super(...arguments),this.size="md",this.name="",this.installed=!1,this.badgeSize="xs"}render(){let t="xxs";return t="lg"===this.size?"m":"md"===this.size?"xs":"xxs",this.style.cssText=`\n --local-border-radius: var(--wui-border-radius-${t});\n --local-size: var(--wui-wallet-image-size-${this.size});\n `,this.walletIcon&&(this.dataset.walletIcon=this.walletIcon),o.qy`
81
+ <wui-flex justifyContent="center" alignItems="center"> ${this.templateVisual()} </wui-flex>
82
+ `}templateVisual(){return this.imageSrc?o.qy`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>`:this.walletIcon?o.qy`<wui-icon
83
+ data-parent-size="md"
84
+ size="md"
85
+ color="inherit"
86
+ name=${this.walletIcon}
87
+ ></wui-icon>`:o.qy`<wui-icon
88
+ data-parent-size=${this.size}
89
+ size="inherit"
90
+ color="inherit"
91
+ name="walletPlaceholder"
92
+ ></wui-icon>`}};y.styles=[f.fD,f.W5,m],v([(0,r.MZ)()],y.prototype,"size",void 0),v([(0,r.MZ)()],y.prototype,"name",void 0),v([(0,r.MZ)()],y.prototype,"imageSrc",void 0),v([(0,r.MZ)()],y.prototype,"walletIcon",void 0),v([(0,r.MZ)({type:Boolean})],y.prototype,"installed",void 0),v([(0,r.MZ)()],y.prototype,"badgeSize",void 0),y=v([(0,b.E)("wui-wallet-image")],y);const x=o.AH`
93
+ :host {
94
+ position: relative;
95
+ border-radius: var(--wui-border-radius-xxs);
96
+ width: 40px;
97
+ height: 40px;
98
+ overflow: hidden;
99
+ background: var(--wui-color-gray-glass-002);
100
+ display: flex;
101
+ justify-content: center;
102
+ align-items: center;
103
+ flex-wrap: wrap;
104
+ gap: var(--wui-spacing-4xs);
105
+ padding: 3.75px !important;
106
+ }
107
+
108
+ :host::after {
109
+ content: '';
110
+ position: absolute;
111
+ top: 0;
112
+ bottom: 0;
113
+ left: 0;
114
+ right: 0;
115
+ border-radius: inherit;
116
+ border: 1px solid var(--wui-color-gray-glass-010);
117
+ pointer-events: none;
118
+ }
119
+
120
+ :host > wui-wallet-image {
121
+ width: 14px;
122
+ height: 14px;
123
+ border-radius: var(--wui-border-radius-5xs);
124
+ }
125
+
126
+ :host > wui-flex {
127
+ padding: 2px;
128
+ position: fixed;
129
+ overflow: hidden;
130
+ left: 34px;
131
+ bottom: 8px;
132
+ background: var(--dark-background-150, #1e1f1f);
133
+ border-radius: 50%;
134
+ z-index: 2;
135
+ display: flex;
136
+ }
137
+ `;var k=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let C=class extends o.WF{constructor(){super(...arguments),this.walletImages=[]}render(){const t=this.walletImages.length<4;return o.qy`${this.walletImages.slice(0,4).map((({src:t,walletName:e})=>o.qy`
138
+ <wui-wallet-image
139
+ size="inherit"
140
+ imageSrc=${t}
141
+ name=${(0,u.J)(e)}
142
+ ></wui-wallet-image>
143
+ `))}
144
+ ${t?[...Array(4-this.walletImages.length)].map((()=>o.qy` <wui-wallet-image size="inherit" name=""></wui-wallet-image>`)):null}
145
+ <wui-flex>
146
+ <wui-icon-box
147
+ size="xxs"
148
+ iconSize="xxs"
149
+ iconcolor="success-100"
150
+ backgroundcolor="success-100"
151
+ icon="checkmark"
152
+ background="opaque"
153
+ ></wui-icon-box>
154
+ </wui-flex>`}};C.styles=[f.W5,x],k([(0,r.MZ)({type:Array})],C.prototype,"walletImages",void 0),C=k([(0,b.E)("wui-all-wallets-image")],C),i(5752);const $=o.AH`
155
+ button {
156
+ column-gap: var(--wui-spacing-s);
157
+ padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs);
158
+ width: 100%;
159
+ background-color: var(--wui-color-gray-glass-002);
160
+ border-radius: var(--wui-border-radius-xs);
161
+ color: var(--wui-color-fg-100);
162
+ }
163
+
164
+ button > wui-text:nth-child(2) {
165
+ display: flex;
166
+ flex: 1;
167
+ }
168
+
169
+ button:disabled {
170
+ background-color: var(--wui-color-gray-glass-015);
171
+ color: var(--wui-color-gray-glass-015);
172
+ }
173
+
174
+ button:disabled > wui-tag {
175
+ background-color: var(--wui-color-gray-glass-010);
176
+ color: var(--wui-color-fg-300);
177
+ }
178
+
179
+ wui-icon {
180
+ color: var(--wui-color-fg-200) !important;
181
+ }
182
+ `;var E=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let R=class extends o.WF{constructor(){super(...arguments),this.walletImages=[],this.imageSrc="",this.name="",this.tabIdx=void 0,this.installed=!1,this.disabled=!1,this.showAllWallets=!1,this.loading=!1,this.loadingSpinnerColor="accent-100"}render(){return o.qy`
183
+ <button ?disabled=${this.disabled} tabindex=${(0,u.J)(this.tabIdx)}>
184
+ ${this.templateAllWallets()} ${this.templateWalletImage()}
185
+ <wui-text variant="paragraph-500" color="inherit">${this.name}</wui-text>
186
+ ${this.templateStatus()}
187
+ </button>
188
+ `}templateAllWallets(){return this.showAllWallets&&this.imageSrc?o.qy` <wui-all-wallets-image .imageeSrc=${this.imageSrc}> </wui-all-wallets-image> `:this.showAllWallets&&this.walletIcon?o.qy` <wui-wallet-image .walletIcon=${this.walletIcon} size="sm"> </wui-wallet-image> `:null}templateWalletImage(){return!this.showAllWallets&&this.imageSrc?o.qy`<wui-wallet-image
189
+ size="sm"
190
+ imageSrc=${this.imageSrc}
191
+ name=${this.name}
192
+ .installed=${this.installed}
193
+ ></wui-wallet-image>`:this.showAllWallets||this.imageSrc?null:o.qy`<wui-wallet-image size="sm" name=${this.name}></wui-wallet-image>`}templateStatus(){return this.loading?o.qy`<wui-loading-spinner
194
+ size="lg"
195
+ color=${this.loadingSpinnerColor}
196
+ ></wui-loading-spinner>`:this.tagLabel&&this.tagVariant?o.qy`<wui-tag variant=${this.tagVariant}>${this.tagLabel}</wui-tag>`:this.icon?o.qy`<wui-icon color="inherit" size="sm" name=${this.icon}></wui-icon>`:null}};R.styles=[f.W5,f.fD,$],E([(0,r.MZ)({type:Array})],R.prototype,"walletImages",void 0),E([(0,r.MZ)()],R.prototype,"imageSrc",void 0),E([(0,r.MZ)()],R.prototype,"name",void 0),E([(0,r.MZ)()],R.prototype,"tagLabel",void 0),E([(0,r.MZ)()],R.prototype,"tagVariant",void 0),E([(0,r.MZ)()],R.prototype,"icon",void 0),E([(0,r.MZ)()],R.prototype,"walletIcon",void 0),E([(0,r.MZ)()],R.prototype,"tabIdx",void 0),E([(0,r.MZ)({type:Boolean})],R.prototype,"installed",void 0),E([(0,r.MZ)({type:Boolean})],R.prototype,"disabled",void 0),E([(0,r.MZ)({type:Boolean})],R.prototype,"showAllWallets",void 0),E([(0,r.MZ)({type:Boolean})],R.prototype,"loading",void 0),E([(0,r.MZ)({type:String})],R.prototype,"loadingSpinnerColor",void 0),R=E([(0,b.E)("wui-list-wallet")],R);var I=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let M=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=h.a.state.connectors,this.count=a.N.state.count,this.filteredCount=a.N.state.filteredWallets.length,this.isFetchingRecommendedWallets=a.N.state.isFetchingRecommendedWallets,this.unsubscribe.push(h.a.subscribeKey("connectors",(t=>this.connectors=t)),a.N.subscribeKey("count",(t=>this.count=t)),a.N.subscribeKey("filteredWallets",(t=>this.filteredCount=t.length)),a.N.subscribeKey("isFetchingRecommendedWallets",(t=>this.isFetchingRecommendedWallets=t)))}disconnectedCallback(){this.unsubscribe.forEach((t=>t()))}render(){const t=this.connectors.find((t=>"walletConnect"===t.id)),{allWallets:e}=s.H.state;if(!t||"HIDE"===e)return null;if("ONLY_MOBILE"===e&&!n.w.isMobile())return null;const i=a.N.state.featured.length,r=this.count+i,l=r<10?r:10*Math.floor(r/10),c=this.filteredCount>0?this.filteredCount:l;let h=`${c}`;this.filteredCount>0?h=`${this.filteredCount}`:c<r&&(h=`${c}+`);const w=p.x.hasAnyConnection(d.o.CONNECTOR_ID.WALLET_CONNECT);return o.qy`
197
+ <wui-list-wallet
198
+ name="All Wallets"
199
+ walletIcon="allWallets"
200
+ showAllWallets
201
+ @click=${this.onAllWallets.bind(this)}
202
+ tagLabel=${h}
203
+ tagVariant="shade"
204
+ data-testid="all-wallets"
205
+ tabIdx=${(0,u.J)(this.tabIdx)}
206
+ .loading=${this.isFetchingRecommendedWallets}
207
+ loadingSpinnerColor=${this.isFetchingRecommendedWallets?"fg-300":"accent-100"}
208
+ ?disabled=${w}
209
+ ></wui-list-wallet>
210
+ `}onAllWallets(){w.E.sendEvent({type:"track",event:"CLICK_ALL_WALLETS"}),g.I.push("AllWallets")}};I([(0,r.MZ)()],M.prototype,"tabIdx",void 0),I([(0,r.wk)()],M.prototype,"connectors",void 0),I([(0,r.wk)()],M.prototype,"count",void 0),I([(0,r.wk)()],M.prototype,"filteredCount",void 0),I([(0,r.wk)()],M.prototype,"isFetchingRecommendedWallets",void 0),M=I([(0,c.EM)("w3m-all-wallets-widget")],M);var T=i(7601),W=i(5306),O=i(6092),P=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let A=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=h.a.state.connectors,this.connections=p.x.state.connections,this.unsubscribe.push(h.a.subscribeKey("connectors",(t=>this.connectors=t)),p.x.subscribeKey("connections",(t=>this.connections=t)))}disconnectedCallback(){this.unsubscribe.forEach((t=>t()))}render(){const t=this.connectors.filter((t=>"ANNOUNCED"===t.type));return t?.length?o.qy`
211
+ <wui-flex flexDirection="column" gap="xs">
212
+ ${t.filter(O.g.showConnector).map((t=>{const e=(this.connections.get(t.chain)??[]).some((e=>W.y.isLowerCaseMatch(e.connectorId,t.id)));return o.qy`
213
+ <wui-list-wallet
214
+ imageSrc=${(0,u.J)(T.$.getConnectorImage(t))}
215
+ name=${t.name??"Unknown"}
216
+ @click=${()=>this.onConnector(t)}
217
+ tagVariant=${e?"shade":"success"}
218
+ tagLabel=${e?"connected":"installed"}
219
+ data-testid=${`wallet-selector-${t.id}`}
220
+ .installed=${!0}
221
+ tabIdx=${(0,u.J)(this.tabIdx)}
222
+ >
223
+ </wui-list-wallet>
224
+ `}))}
225
+ </wui-flex>
226
+ `:(this.style.cssText="display: none",null)}onConnector(t){"walletConnect"===t.id?n.w.isMobile()?g.I.push("AllWallets"):g.I.push("ConnectingWalletConnect"):g.I.push("ConnectingExternal",{connector:t})}};P([(0,r.MZ)()],A.prototype,"tabIdx",void 0),P([(0,r.wk)()],A.prototype,"connectors",void 0),P([(0,r.wk)()],A.prototype,"connections",void 0),A=P([(0,c.EM)("w3m-connect-announced-widget")],A);var S=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let j=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=h.a.state.connectors,this.loading=!1,this.unsubscribe.push(h.a.subscribeKey("connectors",(t=>this.connectors=t))),n.w.isTelegram()&&n.w.isIos()&&(this.loading=!p.x.state.wcUri,this.unsubscribe.push(p.x.subscribeKey("wcUri",(t=>this.loading=!t))))}disconnectedCallback(){this.unsubscribe.forEach((t=>t()))}render(){const{customWallets:t}=s.H.state;if(!t?.length)return this.style.cssText="display: none",null;const e=this.filterOutDuplicateWallets(t),i=p.x.hasAnyConnection(d.o.CONNECTOR_ID.WALLET_CONNECT);return o.qy`<wui-flex flexDirection="column" gap="xs">
227
+ ${e.map((t=>o.qy`
228
+ <wui-list-wallet
229
+ imageSrc=${(0,u.J)(T.$.getWalletImage(t))}
230
+ name=${t.name??"Unknown"}
231
+ @click=${()=>this.onConnectWallet(t)}
232
+ data-testid=${`wallet-selector-${t.id}`}
233
+ tabIdx=${(0,u.J)(this.tabIdx)}
234
+ ?loading=${this.loading}
235
+ ?disabled=${i}
236
+ >
237
+ </wui-list-wallet>
238
+ `))}
239
+ </wui-flex>`}filterOutDuplicateWallets(t){const e=l.i.getRecentWallets(),i=this.connectors.map((t=>t.info?.rdns)).filter(Boolean),o=e.map((t=>t.rdns)).filter(Boolean),r=i.concat(o);if(r.includes("io.metamask.mobile")&&n.w.isMobile()){const t=r.indexOf("io.metamask.mobile");r[t]="io.metamask"}return t.filter((t=>!r.includes(String(t?.rdns))))}onConnectWallet(t){this.loading||g.I.push("ConnectingWalletConnect",{wallet:t})}};S([(0,r.MZ)()],j.prototype,"tabIdx",void 0),S([(0,r.wk)()],j.prototype,"connectors",void 0),S([(0,r.wk)()],j.prototype,"loading",void 0),j=S([(0,c.EM)("w3m-connect-custom-widget")],j);var L=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let q=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=h.a.state.connectors,this.unsubscribe.push(h.a.subscribeKey("connectors",(t=>this.connectors=t)))}disconnectedCallback(){this.unsubscribe.forEach((t=>t()))}render(){const t=this.connectors.filter((t=>"EXTERNAL"===t.type)).filter(O.g.showConnector).filter((t=>t.id!==d.o.CONNECTOR_ID.COINBASE_SDK));if(!t?.length)return this.style.cssText="display: none",null;const e=p.x.hasAnyConnection(d.o.CONNECTOR_ID.WALLET_CONNECT);return o.qy`
240
+ <wui-flex flexDirection="column" gap="xs">
241
+ ${t.map((t=>o.qy`
242
+ <wui-list-wallet
243
+ imageSrc=${(0,u.J)(T.$.getConnectorImage(t))}
244
+ .installed=${!0}
245
+ name=${t.name??"Unknown"}
246
+ data-testid=${`wallet-selector-external-${t.id}`}
247
+ @click=${()=>this.onConnector(t)}
248
+ tabIdx=${(0,u.J)(this.tabIdx)}
249
+ ?disabled=${e}
250
+ >
251
+ </wui-list-wallet>
252
+ `))}
253
+ </wui-flex>
254
+ `}onConnector(t){g.I.push("ConnectingExternal",{connector:t})}};L([(0,r.MZ)()],q.prototype,"tabIdx",void 0),L([(0,r.wk)()],q.prototype,"connectors",void 0),q=L([(0,c.EM)("w3m-connect-external-widget")],q);var N=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let z=class extends o.WF{constructor(){super(...arguments),this.tabIdx=void 0,this.wallets=[]}render(){if(!this.wallets.length)return this.style.cssText="display: none",null;const t=p.x.hasAnyConnection(d.o.CONNECTOR_ID.WALLET_CONNECT);return o.qy`
255
+ <wui-flex flexDirection="column" gap="xs">
256
+ ${this.wallets.map((e=>o.qy`
257
+ <wui-list-wallet
258
+ data-testid=${`wallet-selector-featured-${e.id}`}
259
+ imageSrc=${(0,u.J)(T.$.getWalletImage(e))}
260
+ name=${e.name??"Unknown"}
261
+ @click=${()=>this.onConnectWallet(e)}
262
+ tabIdx=${(0,u.J)(this.tabIdx)}
263
+ ?disabled=${t}
264
+ >
265
+ </wui-list-wallet>
266
+ `))}
267
+ </wui-flex>
268
+ `}onConnectWallet(t){h.a.selectWalletConnector(t)}};N([(0,r.MZ)()],z.prototype,"tabIdx",void 0),N([(0,r.MZ)()],z.prototype,"wallets",void 0),z=N([(0,c.EM)("w3m-connect-featured-widget")],z);var B=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let D=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=[],this.connections=p.x.state.connections,this.unsubscribe.push(p.x.subscribeKey("connections",(t=>this.connections=t)))}render(){const t=this.connectors.filter(O.g.showConnector);return 0===t.length?(this.style.cssText="display: none",null):o.qy`
269
+ <wui-flex flexDirection="column" gap="xs">
270
+ ${t.map((t=>{const e=(this.connections.get(t.chain)??[]).some((e=>W.y.isLowerCaseMatch(e.connectorId,t.id)));return o.qy`
271
+ <wui-list-wallet
272
+ imageSrc=${(0,u.J)(T.$.getConnectorImage(t))}
273
+ .installed=${!0}
274
+ name=${t.name??"Unknown"}
275
+ tagVariant=${e?"shade":"success"}
276
+ tagLabel=${e?"connected":"installed"}
277
+ data-testid=${`wallet-selector-${t.id}`}
278
+ @click=${()=>this.onConnector(t)}
279
+ tabIdx=${(0,u.J)(this.tabIdx)}
280
+ >
281
+ </wui-list-wallet>
282
+ `}))}
283
+ </wui-flex>
284
+ `}onConnector(t){h.a.setActiveConnector(t),g.I.push("ConnectingExternal",{connector:t})}};B([(0,r.MZ)()],D.prototype,"tabIdx",void 0),B([(0,r.MZ)()],D.prototype,"connectors",void 0),B([(0,r.wk)()],D.prototype,"connections",void 0),D=B([(0,c.EM)("w3m-connect-injected-widget")],D);var Z=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let U=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=h.a.state.connectors,this.unsubscribe.push(h.a.subscribeKey("connectors",(t=>this.connectors=t)))}disconnectedCallback(){this.unsubscribe.forEach((t=>t()))}render(){const t=this.connectors.filter((t=>"MULTI_CHAIN"===t.type&&"WalletConnect"!==t.name));return t?.length?o.qy`
285
+ <wui-flex flexDirection="column" gap="xs">
286
+ ${t.map((t=>o.qy`
287
+ <wui-list-wallet
288
+ imageSrc=${(0,u.J)(T.$.getConnectorImage(t))}
289
+ .installed=${!0}
290
+ name=${t.name??"Unknown"}
291
+ tagVariant="shade"
292
+ tagLabel="multichain"
293
+ data-testid=${`wallet-selector-${t.id}`}
294
+ @click=${()=>this.onConnector(t)}
295
+ tabIdx=${(0,u.J)(this.tabIdx)}
296
+ >
297
+ </wui-list-wallet>
298
+ `))}
299
+ </wui-flex>
300
+ `:(this.style.cssText="display: none",null)}onConnector(t){h.a.setActiveConnector(t),g.I.push("ConnectingMultiChain")}};Z([(0,r.MZ)()],U.prototype,"tabIdx",void 0),Z([(0,r.wk)()],U.prototype,"connectors",void 0),U=Z([(0,c.EM)("w3m-connect-multi-chain-widget")],U);var _=i(6056),H=i(5042),F=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let J=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=h.a.state.connectors,this.loading=!1,this.unsubscribe.push(h.a.subscribeKey("connectors",(t=>this.connectors=t))),n.w.isTelegram()&&n.w.isIos()&&(this.loading=!p.x.state.wcUri,this.unsubscribe.push(p.x.subscribeKey("wcUri",(t=>this.loading=!t))))}render(){const t=l.i.getRecentWallets().filter((t=>!H.A.isExcluded(t))).filter((t=>!this.hasWalletConnector(t))).filter((t=>this.isWalletCompatibleWithCurrentChain(t)));if(!t.length)return this.style.cssText="display: none",null;const e=p.x.hasAnyConnection(d.o.CONNECTOR_ID.WALLET_CONNECT);return o.qy`
301
+ <wui-flex flexDirection="column" gap="xs">
302
+ ${t.map((t=>o.qy`
303
+ <wui-list-wallet
304
+ imageSrc=${(0,u.J)(T.$.getWalletImage(t))}
305
+ name=${t.name??"Unknown"}
306
+ @click=${()=>this.onConnectWallet(t)}
307
+ tagLabel="recent"
308
+ tagVariant="shade"
309
+ tabIdx=${(0,u.J)(this.tabIdx)}
310
+ ?loading=${this.loading}
311
+ ?disabled=${e}
312
+ >
313
+ </wui-list-wallet>
314
+ `))}
315
+ </wui-flex>
316
+ `}onConnectWallet(t){this.loading||h.a.selectWalletConnector(t)}hasWalletConnector(t){return this.connectors.some((e=>e.id===t.id||e.name===t.name))}isWalletCompatibleWithCurrentChain(t){const e=_.W.state.activeChain;return!e||!t.chains||t.chains.some((t=>{const i=t.split(":")[0];return e===i}))}};F([(0,r.MZ)()],J.prototype,"tabIdx",void 0),F([(0,r.wk)()],J.prototype,"connectors",void 0),F([(0,r.wk)()],J.prototype,"loading",void 0),J=F([(0,c.EM)("w3m-connect-recent-widget")],J);var K=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let V=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.wallets=[],this.loading=!1,n.w.isTelegram()&&n.w.isIos()&&(this.loading=!p.x.state.wcUri,this.unsubscribe.push(p.x.subscribeKey("wcUri",(t=>this.loading=!t))))}render(){const{connectors:t}=h.a.state,{customWallets:e,featuredWalletIds:i}=s.H.state,r=l.i.getRecentWallets(),n=t.find((t=>"walletConnect"===t.id)),a=t.filter((t=>"INJECTED"===t.type||"ANNOUNCED"===t.type||"MULTI_CHAIN"===t.type)).filter((t=>"Browser Wallet"!==t.name));if(!n)return null;if(i||e||!this.wallets.length)return this.style.cssText="display: none",null;const c=a.length+r.length,w=Math.max(0,2-c),g=H.A.filterOutDuplicateWallets(this.wallets).slice(0,w);if(!g.length)return this.style.cssText="display: none",null;const f=p.x.hasAnyConnection(d.o.CONNECTOR_ID.WALLET_CONNECT);return o.qy`
317
+ <wui-flex flexDirection="column" gap="xs">
318
+ ${g.map((t=>o.qy`
319
+ <wui-list-wallet
320
+ imageSrc=${(0,u.J)(T.$.getWalletImage(t))}
321
+ name=${t?.name??"Unknown"}
322
+ @click=${()=>this.onConnectWallet(t)}
323
+ tabIdx=${(0,u.J)(this.tabIdx)}
324
+ ?loading=${this.loading}
325
+ ?disabled=${f}
326
+ >
327
+ </wui-list-wallet>
328
+ `))}
329
+ </wui-flex>
330
+ `}onConnectWallet(t){if(this.loading)return;const e=h.a.getConnector({id:t.id,rdns:t.rdns});e?g.I.push("ConnectingExternal",{connector:e}):g.I.push("ConnectingWalletConnect",{wallet:t})}};K([(0,r.MZ)()],V.prototype,"tabIdx",void 0),K([(0,r.MZ)()],V.prototype,"wallets",void 0),K([(0,r.wk)()],V.prototype,"loading",void 0),V=K([(0,c.EM)("w3m-connect-recommended-widget")],V);var Y=i(3337),G=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let Q=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=h.a.state.connectors,this.connectorImages=Y.j.state.connectorImages,this.unsubscribe.push(h.a.subscribeKey("connectors",(t=>this.connectors=t)),Y.j.subscribeKey("connectorImages",(t=>this.connectorImages=t)))}disconnectedCallback(){this.unsubscribe.forEach((t=>t()))}render(){if(n.w.isMobile())return this.style.cssText="display: none",null;const t=this.connectors.find((t=>"walletConnect"===t.id));if(!t)return this.style.cssText="display: none",null;const e=t.imageUrl||this.connectorImages[t?.imageId??""],i=p.x.hasAnyConnection(d.o.CONNECTOR_ID.WALLET_CONNECT);return o.qy`
331
+ <wui-list-wallet
332
+ imageSrc=${(0,u.J)(e)}
333
+ name=${t.name??"Unknown"}
334
+ @click=${()=>this.onConnector(t)}
335
+ tagLabel="qr code"
336
+ tagVariant="main"
337
+ tabIdx=${(0,u.J)(this.tabIdx)}
338
+ data-testid="wallet-selector-walletconnect"
339
+ ?disabled=${i}
340
+ >
341
+ </wui-list-wallet>
342
+ `}onConnector(t){h.a.setActiveConnector(t),g.I.push("ConnectingWalletConnect")}};G([(0,r.MZ)()],Q.prototype,"tabIdx",void 0),G([(0,r.wk)()],Q.prototype,"connectors",void 0),G([(0,r.wk)()],Q.prototype,"connectorImages",void 0),Q=G([(0,c.EM)("w3m-connect-walletconnect-widget")],Q);const X=o.AH`
343
+ :host {
344
+ margin-top: var(--wui-spacing-3xs);
345
+ }
346
+ wui-separator {
347
+ margin: var(--wui-spacing-m) calc(var(--wui-spacing-m) * -1) var(--wui-spacing-xs)
348
+ calc(var(--wui-spacing-m) * -1);
349
+ width: calc(100% + var(--wui-spacing-s) * 2);
350
+ }
351
+ `;var tt=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let et=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=h.a.state.connectors,this.recommended=a.N.state.recommended,this.featured=a.N.state.featured,this.unsubscribe.push(h.a.subscribeKey("connectors",(t=>this.connectors=t)),a.N.subscribeKey("recommended",(t=>this.recommended=t)),a.N.subscribeKey("featured",(t=>this.featured=t)))}disconnectedCallback(){this.unsubscribe.forEach((t=>t()))}render(){return o.qy`
352
+ <wui-flex flexDirection="column" gap="xs"> ${this.connectorListTemplate()} </wui-flex>
353
+ `}connectorListTemplate(){const{custom:t,recent:e,announced:i,injected:r,multiChain:n,recommended:a,featured:s,external:l}=O.g.getConnectorsByType(this.connectors,this.recommended,this.featured);return O.g.getConnectorTypeOrder({custom:t,recent:e,announced:i,injected:r,multiChain:n,recommended:a,featured:s,external:l}).map((t=>{switch(t){case"injected":return o.qy`
354
+ ${n.length?o.qy`<w3m-connect-multi-chain-widget
355
+ tabIdx=${(0,u.J)(this.tabIdx)}
356
+ ></w3m-connect-multi-chain-widget>`:null}
357
+ ${i.length?o.qy`<w3m-connect-announced-widget
358
+ tabIdx=${(0,u.J)(this.tabIdx)}
359
+ ></w3m-connect-announced-widget>`:null}
360
+ ${r.length?o.qy`<w3m-connect-injected-widget
361
+ .connectors=${r}
362
+ tabIdx=${(0,u.J)(this.tabIdx)}
363
+ ></w3m-connect-injected-widget>`:null}
364
+ `;case"walletConnect":return o.qy`<w3m-connect-walletconnect-widget
365
+ tabIdx=${(0,u.J)(this.tabIdx)}
366
+ ></w3m-connect-walletconnect-widget>`;case"recent":return o.qy`<w3m-connect-recent-widget
367
+ tabIdx=${(0,u.J)(this.tabIdx)}
368
+ ></w3m-connect-recent-widget>`;case"featured":return o.qy`<w3m-connect-featured-widget
369
+ .wallets=${s}
370
+ tabIdx=${(0,u.J)(this.tabIdx)}
371
+ ></w3m-connect-featured-widget>`;case"custom":return o.qy`<w3m-connect-custom-widget
372
+ tabIdx=${(0,u.J)(this.tabIdx)}
373
+ ></w3m-connect-custom-widget>`;case"external":return o.qy`<w3m-connect-external-widget
374
+ tabIdx=${(0,u.J)(this.tabIdx)}
375
+ ></w3m-connect-external-widget>`;case"recommended":return o.qy`<w3m-connect-recommended-widget
376
+ .wallets=${a}
377
+ tabIdx=${(0,u.J)(this.tabIdx)}
378
+ ></w3m-connect-recommended-widget>`;default:return console.warn(`Unknown connector type: ${t}`),null}}))}};et.styles=X,tt([(0,r.MZ)()],et.prototype,"tabIdx",void 0),tt([(0,r.wk)()],et.prototype,"connectors",void 0),tt([(0,r.wk)()],et.prototype,"recommended",void 0),tt([(0,r.wk)()],et.prototype,"featured",void 0),et=tt([(0,c.EM)("w3m-connector-list")],et);var it=i(1871),ot=i(4833),rt=i(466);const nt=o.AH`
379
+ :host {
380
+ display: inline-flex;
381
+ background-color: var(--wui-color-gray-glass-002);
382
+ border-radius: var(--wui-border-radius-3xl);
383
+ padding: var(--wui-spacing-3xs);
384
+ position: relative;
385
+ height: 36px;
386
+ min-height: 36px;
387
+ overflow: hidden;
388
+ }
389
+
390
+ :host::before {
391
+ content: '';
392
+ position: absolute;
393
+ pointer-events: none;
394
+ top: 4px;
395
+ left: 4px;
396
+ display: block;
397
+ width: var(--local-tab-width);
398
+ height: 28px;
399
+ border-radius: var(--wui-border-radius-3xl);
400
+ background-color: var(--wui-color-gray-glass-002);
401
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
402
+ transform: translateX(calc(var(--local-tab) * var(--local-tab-width)));
403
+ transition: transform var(--wui-ease-out-power-1) var(--wui-duration-md);
404
+ will-change: background-color, opacity;
405
+ }
406
+
407
+ :host([data-type='flex'])::before {
408
+ left: 3px;
409
+ transform: translateX(calc((var(--local-tab) * 34px) + (var(--local-tab) * 4px)));
410
+ }
411
+
412
+ :host([data-type='flex']) {
413
+ display: flex;
414
+ padding: 0px 0px 0px 12px;
415
+ gap: 4px;
416
+ }
417
+
418
+ :host([data-type='flex']) > button > wui-text {
419
+ position: absolute;
420
+ left: 18px;
421
+ opacity: 0;
422
+ }
423
+
424
+ button[data-active='true'] > wui-icon,
425
+ button[data-active='true'] > wui-text {
426
+ color: var(--wui-color-fg-100);
427
+ }
428
+
429
+ button[data-active='false'] > wui-icon,
430
+ button[data-active='false'] > wui-text {
431
+ color: var(--wui-color-fg-200);
432
+ }
433
+
434
+ button[data-active='true']:disabled,
435
+ button[data-active='false']:disabled {
436
+ background-color: transparent;
437
+ opacity: 0.5;
438
+ cursor: not-allowed;
439
+ }
440
+
441
+ button[data-active='true']:disabled > wui-text {
442
+ color: var(--wui-color-fg-200);
443
+ }
444
+
445
+ button[data-active='false']:disabled > wui-text {
446
+ color: var(--wui-color-fg-300);
447
+ }
448
+
449
+ button > wui-icon,
450
+ button > wui-text {
451
+ pointer-events: none;
452
+ transition: color var(--wui-e ase-out-power-1) var(--wui-duration-md);
453
+ will-change: color;
454
+ }
455
+
456
+ button {
457
+ width: var(--local-tab-width);
458
+ transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md);
459
+ will-change: background-color;
460
+ }
461
+
462
+ :host([data-type='flex']) > button {
463
+ width: 34px;
464
+ position: relative;
465
+ display: flex;
466
+ justify-content: flex-start;
467
+ }
468
+
469
+ button:hover:enabled,
470
+ button:active:enabled {
471
+ background-color: transparent !important;
472
+ }
473
+
474
+ button:hover:enabled > wui-icon,
475
+ button:active:enabled > wui-icon {
476
+ transition: all var(--wui-ease-out-power-1) var(--wui-duration-lg);
477
+ color: var(--wui-color-fg-125);
478
+ }
479
+
480
+ button:hover:enabled > wui-text,
481
+ button:active:enabled > wui-text {
482
+ transition: all var(--wui-ease-out-power-1) var(--wui-duration-lg);
483
+ color: var(--wui-color-fg-125);
484
+ }
485
+
486
+ button {
487
+ border-radius: var(--wui-border-radius-3xl);
488
+ }
489
+ `;var at=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let st=class extends o.WF{constructor(){super(...arguments),this.tabs=[],this.onTabChange=()=>null,this.buttons=[],this.disabled=!1,this.localTabWidth="100px",this.activeTab=0,this.isDense=!1}render(){return this.isDense=this.tabs.length>3,this.style.cssText=`\n --local-tab: ${this.activeTab};\n --local-tab-width: ${this.localTabWidth};\n `,this.dataset.type=this.isDense?"flex":"block",this.tabs.map(((t,e)=>{const i=e===this.activeTab;return o.qy`
490
+ <button
491
+ ?disabled=${this.disabled}
492
+ @click=${()=>this.onTabClick(e)}
493
+ data-active=${i}
494
+ data-testid="tab-${t.label?.toLowerCase()}"
495
+ >
496
+ ${this.iconTemplate(t)}
497
+ <wui-text variant="small-600" color="inherit"> ${t.label} </wui-text>
498
+ </button>
499
+ `}))}firstUpdated(){this.shadowRoot&&this.isDense&&(this.buttons=[...this.shadowRoot.querySelectorAll("button")],setTimeout((()=>{this.animateTabs(0,!0)}),0))}iconTemplate(t){return t.icon?o.qy`<wui-icon size="xs" color="inherit" name=${t.icon}></wui-icon>`:null}onTabClick(t){this.buttons&&this.animateTabs(t,!1),this.activeTab=t,this.onTabChange(t)}animateTabs(t,e){const i=this.buttons[this.activeTab],o=this.buttons[t],r=i?.querySelector("wui-text"),n=o?.querySelector("wui-text"),a=o?.getBoundingClientRect(),s=n?.getBoundingClientRect();i&&r&&!e&&t!==this.activeTab&&(r.animate([{opacity:0}],{duration:50,easing:"ease",fill:"forwards"}),i.animate([{width:"34px"}],{duration:500,easing:"ease",fill:"forwards"})),o&&a&&s&&n&&(t!==this.activeTab||e)&&(this.localTabWidth=`${Math.round(a.width+s.width)+6}px`,o.animate([{width:`${a.width+s.width}px`}],{duration:e?0:500,fill:"forwards",easing:"ease"}),n.animate([{opacity:1}],{duration:e?0:125,delay:e?0:200,fill:"forwards",easing:"ease"}))}};st.styles=[f.W5,f.fD,nt],at([(0,r.MZ)({type:Array})],st.prototype,"tabs",void 0),at([(0,r.MZ)()],st.prototype,"onTabChange",void 0),at([(0,r.MZ)({type:Array})],st.prototype,"buttons",void 0),at([(0,r.MZ)({type:Boolean})],st.prototype,"disabled",void 0),at([(0,r.MZ)()],st.prototype,"localTabWidth",void 0),at([(0,r.wk)()],st.prototype,"activeTab",void 0),at([(0,r.wk)()],st.prototype,"isDense",void 0),st=at([(0,b.E)("wui-tabs")],st);var lt=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let ct=class extends o.WF{constructor(){super(...arguments),this.platformTabs=[],this.unsubscribe=[],this.platforms=[],this.onSelectPlatfrom=void 0}disconnectCallback(){this.unsubscribe.forEach((t=>t()))}render(){const t=this.generateTabs();return o.qy`
500
+ <wui-flex justifyContent="center" .padding=${["0","0","l","0"]}>
501
+ <wui-tabs .tabs=${t} .onTabChange=${this.onTabChange.bind(this)}></wui-tabs>
502
+ </wui-flex>
503
+ `}generateTabs(){const t=this.platforms.map((t=>"browser"===t?{label:"Browser",icon:"extension",platform:"browser"}:"mobile"===t?{label:"Mobile",icon:"mobile",platform:"mobile"}:"qrcode"===t?{label:"Mobile",icon:"mobile",platform:"qrcode"}:"web"===t?{label:"Webapp",icon:"browser",platform:"web"}:"desktop"===t?{label:"Desktop",icon:"desktop",platform:"desktop"}:{label:"Browser",icon:"extension",platform:"unsupported"}));return this.platformTabs=t.map((({platform:t})=>t)),t}onTabChange(t){const e=this.platformTabs[t];e&&this.onSelectPlatfrom?.(e)}};lt([(0,r.MZ)({type:Array})],ct.prototype,"platforms",void 0),lt([(0,r.MZ)()],ct.prototype,"onSelectPlatfrom",void 0),ct=lt([(0,c.EM)("w3m-connecting-header")],ct);var ut=i(8996);i(880);const dt=o.AH`
504
+ :host {
505
+ width: var(--local-width);
506
+ position: relative;
507
+ }
508
+
509
+ button {
510
+ border: none;
511
+ border-radius: var(--local-border-radius);
512
+ width: var(--local-width);
513
+ white-space: nowrap;
514
+ }
515
+
516
+ /* -- Sizes --------------------------------------------------- */
517
+ button[data-size='xs'] {
518
+ padding: var(--wui-spacing-3xs) var(--wui-spacing-s) var(--wui-spacing-3xs) var(--wui-spacing-s);
519
+ height: 24px;
520
+ }
521
+
522
+ button[data-size='xs'][data-icon-left='true'][data-icon-right='false'] {
523
+ padding: var(--wui-spacing-3xs) var(--wui-spacing-s) var(--wui-spacing-3xs) var(--wui-spacing-s);
524
+ }
525
+
526
+ button[data-size='xs'][data-icon-right='true'][data-icon-left='false'] {
527
+ padding: var(--wui-spacing-3xs) var(--wui-spacing-s) var(--wui-spacing-3xs) var(--wui-spacing-s);
528
+ }
529
+
530
+ button[data-size='sm'] {
531
+ padding: 7.2px var(--wui-spacing-s) 7.2px var(--wui-spacing-s);
532
+ height: 32px;
533
+ }
534
+
535
+ button[data-size='sm'][data-icon-left='true'][data-icon-right='false'] {
536
+ padding: 7.2px var(--wui-spacing-s) 7.2px var(--wui-spacing-s);
537
+ }
538
+
539
+ button[data-size='sm'][data-icon-right='true'][data-icon-left='false'] {
540
+ padding: 7.2px var(--wui-spacing-s) 7.2px var(--wui-spacing-s);
541
+ }
542
+
543
+ button[data-size='md'] {
544
+ padding: 8.2px var(--wui-spacing-l) 9px var(--wui-spacing-l);
545
+ height: 36px;
546
+ }
547
+
548
+ button[data-size='md'][data-icon-left='true'][data-icon-right='false'] {
549
+ padding: 8.2px var(--wui-spacing-l) 9px var(--wui-spacing-s);
550
+ }
551
+
552
+ button[data-size='md'][data-icon-right='true'][data-icon-left='false'] {
553
+ padding: 8.2px var(--wui-spacing-s) 9px var(--wui-spacing-l);
554
+ }
555
+
556
+ button[data-size='lg'] {
557
+ padding: var(--wui-spacing-m) var(--wui-spacing-2l);
558
+ height: 48px;
559
+ }
560
+
561
+ /* -- Variants --------------------------------------------------------- */
562
+ button[data-variant='main'] {
563
+ background-color: var(--wui-color-accent-100);
564
+ color: var(--wui-color-inverse-100);
565
+ border: none;
566
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
567
+ }
568
+
569
+ button[data-variant='inverse'] {
570
+ background-color: var(--wui-color-inverse-100);
571
+ color: var(--wui-color-inverse-000);
572
+ border: none;
573
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
574
+ }
575
+
576
+ button[data-variant='accent'] {
577
+ background-color: var(--wui-color-accent-glass-010);
578
+ color: var(--wui-color-accent-100);
579
+ border: none;
580
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
581
+ }
582
+
583
+ button[data-variant='accent-error'] {
584
+ background: var(--wui-color-error-glass-015);
585
+ color: var(--wui-color-error-100);
586
+ border: none;
587
+ box-shadow: inset 0 0 0 1px var(--wui-color-error-glass-010);
588
+ }
589
+
590
+ button[data-variant='accent-success'] {
591
+ background: var(--wui-color-success-glass-015);
592
+ color: var(--wui-color-success-100);
593
+ border: none;
594
+ box-shadow: inset 0 0 0 1px var(--wui-color-success-glass-010);
595
+ }
596
+
597
+ button[data-variant='neutral'] {
598
+ background: transparent;
599
+ color: var(--wui-color-fg-100);
600
+ border: none;
601
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
602
+ }
603
+
604
+ /* -- Focus states --------------------------------------------------- */
605
+ button[data-variant='main']:focus-visible:enabled {
606
+ background-color: var(--wui-color-accent-090);
607
+ box-shadow:
608
+ inset 0 0 0 1px var(--wui-color-accent-100),
609
+ 0 0 0 4px var(--wui-color-accent-glass-020);
610
+ }
611
+ button[data-variant='inverse']:focus-visible:enabled {
612
+ background-color: var(--wui-color-inverse-100);
613
+ box-shadow:
614
+ inset 0 0 0 1px var(--wui-color-gray-glass-010),
615
+ 0 0 0 4px var(--wui-color-accent-glass-020);
616
+ }
617
+ button[data-variant='accent']:focus-visible:enabled {
618
+ background-color: var(--wui-color-accent-glass-010);
619
+ box-shadow:
620
+ inset 0 0 0 1px var(--wui-color-accent-100),
621
+ 0 0 0 4px var(--wui-color-accent-glass-020);
622
+ }
623
+ button[data-variant='accent-error']:focus-visible:enabled {
624
+ background: var(--wui-color-error-glass-015);
625
+ box-shadow:
626
+ inset 0 0 0 1px var(--wui-color-error-100),
627
+ 0 0 0 4px var(--wui-color-error-glass-020);
628
+ }
629
+ button[data-variant='accent-success']:focus-visible:enabled {
630
+ background: var(--wui-color-success-glass-015);
631
+ box-shadow:
632
+ inset 0 0 0 1px var(--wui-color-success-100),
633
+ 0 0 0 4px var(--wui-color-success-glass-020);
634
+ }
635
+ button[data-variant='neutral']:focus-visible:enabled {
636
+ background: var(--wui-color-gray-glass-005);
637
+ box-shadow:
638
+ inset 0 0 0 1px var(--wui-color-gray-glass-010),
639
+ 0 0 0 4px var(--wui-color-gray-glass-002);
640
+ }
641
+
642
+ /* -- Hover & Active states ----------------------------------------------------------- */
643
+ @media (hover: hover) and (pointer: fine) {
644
+ button[data-variant='main']:hover:enabled {
645
+ background-color: var(--wui-color-accent-090);
646
+ }
647
+
648
+ button[data-variant='main']:active:enabled {
649
+ background-color: var(--wui-color-accent-080);
650
+ }
651
+
652
+ button[data-variant='accent']:hover:enabled {
653
+ background-color: var(--wui-color-accent-glass-015);
654
+ }
655
+
656
+ button[data-variant='accent']:active:enabled {
657
+ background-color: var(--wui-color-accent-glass-020);
658
+ }
659
+
660
+ button[data-variant='accent-error']:hover:enabled {
661
+ background: var(--wui-color-error-glass-020);
662
+ color: var(--wui-color-error-100);
663
+ }
664
+
665
+ button[data-variant='accent-error']:active:enabled {
666
+ background: var(--wui-color-error-glass-030);
667
+ color: var(--wui-color-error-100);
668
+ }
669
+
670
+ button[data-variant='accent-success']:hover:enabled {
671
+ background: var(--wui-color-success-glass-020);
672
+ color: var(--wui-color-success-100);
673
+ }
674
+
675
+ button[data-variant='accent-success']:active:enabled {
676
+ background: var(--wui-color-success-glass-030);
677
+ color: var(--wui-color-success-100);
678
+ }
679
+
680
+ button[data-variant='neutral']:hover:enabled {
681
+ background: var(--wui-color-gray-glass-002);
682
+ }
683
+
684
+ button[data-variant='neutral']:active:enabled {
685
+ background: var(--wui-color-gray-glass-005);
686
+ }
687
+
688
+ button[data-size='lg'][data-icon-left='true'][data-icon-right='false'] {
689
+ padding-left: var(--wui-spacing-m);
690
+ }
691
+
692
+ button[data-size='lg'][data-icon-right='true'][data-icon-left='false'] {
693
+ padding-right: var(--wui-spacing-m);
694
+ }
695
+ }
696
+
697
+ /* -- Disabled state --------------------------------------------------- */
698
+ button:disabled {
699
+ background-color: var(--wui-color-gray-glass-002);
700
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
701
+ color: var(--wui-color-gray-glass-020);
702
+ cursor: not-allowed;
703
+ }
704
+
705
+ button > wui-text {
706
+ transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
707
+ will-change: opacity;
708
+ opacity: var(--local-opacity-100);
709
+ }
710
+
711
+ ::slotted(*) {
712
+ transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
713
+ will-change: opacity;
714
+ opacity: var(--local-opacity-100);
715
+ }
716
+
717
+ wui-loading-spinner {
718
+ position: absolute;
719
+ left: 50%;
720
+ top: 50%;
721
+ transform: translate(-50%, -50%);
722
+ opacity: var(--local-opacity-000);
723
+ }
724
+ `;var ht=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const pt={main:"inverse-100",inverse:"inverse-000",accent:"accent-100","accent-error":"error-100","accent-success":"success-100",neutral:"fg-100",disabled:"gray-glass-020"},wt={lg:"paragraph-600",md:"small-600",sm:"small-600",xs:"tiny-600"},gt={lg:"md",md:"md",sm:"sm",xs:"sm"};let ft=class extends o.WF{constructor(){super(...arguments),this.size="lg",this.disabled=!1,this.fullWidth=!1,this.loading=!1,this.variant="main",this.hasIconLeft=!1,this.hasIconRight=!1,this.borderRadius="m"}render(){this.style.cssText=`\n --local-width: ${this.fullWidth?"100%":"auto"};\n --local-opacity-100: ${this.loading?0:1};\n --local-opacity-000: ${this.loading?1:0};\n --local-border-radius: var(--wui-border-radius-${this.borderRadius});\n `;const t=this.textVariant??wt[this.size];return o.qy`
725
+ <button
726
+ data-variant=${this.variant}
727
+ data-icon-left=${this.hasIconLeft}
728
+ data-icon-right=${this.hasIconRight}
729
+ data-size=${this.size}
730
+ ?disabled=${this.disabled}
731
+ >
732
+ ${this.loadingTemplate()}
733
+ <slot name="iconLeft" @slotchange=${()=>this.handleSlotLeftChange()}></slot>
734
+ <wui-text variant=${t} color="inherit">
735
+ <slot></slot>
736
+ </wui-text>
737
+ <slot name="iconRight" @slotchange=${()=>this.handleSlotRightChange()}></slot>
738
+ </button>
739
+ `}handleSlotLeftChange(){this.hasIconLeft=!0}handleSlotRightChange(){this.hasIconRight=!0}loadingTemplate(){if(this.loading){const t=gt[this.size],e=this.disabled?pt.disabled:pt[this.variant];return o.qy`<wui-loading-spinner color=${e} size=${t}></wui-loading-spinner>`}return o.qy``}};ft.styles=[f.W5,f.fD,dt],ht([(0,r.MZ)()],ft.prototype,"size",void 0),ht([(0,r.MZ)({type:Boolean})],ft.prototype,"disabled",void 0),ht([(0,r.MZ)({type:Boolean})],ft.prototype,"fullWidth",void 0),ht([(0,r.MZ)({type:Boolean})],ft.prototype,"loading",void 0),ht([(0,r.MZ)()],ft.prototype,"variant",void 0),ht([(0,r.MZ)({type:Boolean})],ft.prototype,"hasIconLeft",void 0),ht([(0,r.MZ)({type:Boolean})],ft.prototype,"hasIconRight",void 0),ht([(0,r.MZ)()],ft.prototype,"borderRadius",void 0),ht([(0,r.MZ)()],ft.prototype,"textVariant",void 0),ft=ht([(0,b.E)("wui-button")],ft),i(1636);const bt=o.AH`
740
+ button {
741
+ padding: var(--wui-spacing-4xs) var(--wui-spacing-xxs);
742
+ border-radius: var(--wui-border-radius-3xs);
743
+ background-color: transparent;
744
+ color: var(--wui-color-accent-100);
745
+ }
746
+
747
+ button:disabled {
748
+ background-color: transparent;
749
+ color: var(--wui-color-gray-glass-015);
750
+ }
751
+
752
+ button:hover {
753
+ background-color: var(--wui-color-gray-glass-005);
754
+ }
755
+ `;var mt=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let vt=class extends o.WF{constructor(){super(...arguments),this.tabIdx=void 0,this.disabled=!1,this.color="inherit"}render(){return o.qy`
756
+ <button ?disabled=${this.disabled} tabindex=${(0,u.J)(this.tabIdx)}>
757
+ <slot name="iconLeft"></slot>
758
+ <wui-text variant="small-600" color=${this.color}>
759
+ <slot></slot>
760
+ </wui-text>
761
+ <slot name="iconRight"></slot>
762
+ </button>
763
+ `}};vt.styles=[f.W5,f.fD,bt],mt([(0,r.MZ)()],vt.prototype,"tabIdx",void 0),mt([(0,r.MZ)({type:Boolean})],vt.prototype,"disabled",void 0),mt([(0,r.MZ)()],vt.prototype,"color",void 0),vt=mt([(0,b.E)("wui-link")],vt);const yt=o.AH`
764
+ :host {
765
+ display: block;
766
+ width: var(--wui-box-size-md);
767
+ height: var(--wui-box-size-md);
768
+ }
769
+
770
+ svg {
771
+ width: var(--wui-box-size-md);
772
+ height: var(--wui-box-size-md);
773
+ }
774
+
775
+ rect {
776
+ fill: none;
777
+ stroke: var(--wui-color-accent-100);
778
+ stroke-width: 4px;
779
+ stroke-linecap: round;
780
+ animation: dash 1s linear infinite;
781
+ }
782
+
783
+ @keyframes dash {
784
+ to {
785
+ stroke-dashoffset: 0px;
786
+ }
787
+ }
788
+ `;var xt=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let kt=class extends o.WF{constructor(){super(...arguments),this.radius=36}render(){return this.svgLoaderTemplate()}svgLoaderTemplate(){const t=this.radius>50?50:this.radius,e=36-t,i=116+e,r=245+e,n=360+1.75*e;return o.qy`
789
+ <svg viewBox="0 0 110 110" width="110" height="110">
790
+ <rect
791
+ x="2"
792
+ y="2"
793
+ width="106"
794
+ height="106"
795
+ rx=${t}
796
+ stroke-dasharray="${i} ${r}"
797
+ stroke-dashoffset=${n}
798
+ />
799
+ </svg>
800
+ `}};kt.styles=[f.W5,yt],xt([(0,r.MZ)({type:Number})],kt.prototype,"radius",void 0),kt=xt([(0,b.E)("wui-loading-thumbnail")],kt),i(5090);const Ct=o.AH`
801
+ button {
802
+ border: none;
803
+ border-radius: var(--wui-border-radius-3xl);
804
+ }
805
+
806
+ button[data-variant='main'] {
807
+ background-color: var(--wui-color-accent-100);
808
+ color: var(--wui-color-inverse-100);
809
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
810
+ }
811
+
812
+ button[data-variant='accent'] {
813
+ background-color: var(--wui-color-accent-glass-010);
814
+ color: var(--wui-color-accent-100);
815
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
816
+ }
817
+
818
+ button[data-variant='gray'] {
819
+ background-color: transparent;
820
+ color: var(--wui-color-fg-200);
821
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
822
+ }
823
+
824
+ button[data-variant='shade'] {
825
+ background-color: transparent;
826
+ color: var(--wui-color-accent-100);
827
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
828
+ }
829
+
830
+ button[data-size='sm'] {
831
+ height: 32px;
832
+ padding: 0 var(--wui-spacing-s);
833
+ }
834
+
835
+ button[data-size='md'] {
836
+ height: 40px;
837
+ padding: 0 var(--wui-spacing-l);
838
+ }
839
+
840
+ button[data-size='sm'] > wui-image {
841
+ width: 16px;
842
+ height: 16px;
843
+ }
844
+
845
+ button[data-size='md'] > wui-image {
846
+ width: 24px;
847
+ height: 24px;
848
+ }
849
+
850
+ button[data-size='sm'] > wui-icon {
851
+ width: 12px;
852
+ height: 12px;
853
+ }
854
+
855
+ button[data-size='md'] > wui-icon {
856
+ width: 14px;
857
+ height: 14px;
858
+ }
859
+
860
+ wui-image {
861
+ border-radius: var(--wui-border-radius-3xl);
862
+ overflow: hidden;
863
+ }
864
+
865
+ button.disabled > wui-icon,
866
+ button.disabled > wui-image {
867
+ filter: grayscale(1);
868
+ }
869
+
870
+ button[data-variant='main'] > wui-image {
871
+ box-shadow: inset 0 0 0 1px var(--wui-color-accent-090);
872
+ }
873
+
874
+ button[data-variant='shade'] > wui-image,
875
+ button[data-variant='gray'] > wui-image {
876
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
877
+ }
878
+
879
+ @media (hover: hover) and (pointer: fine) {
880
+ button[data-variant='main']:focus-visible {
881
+ background-color: var(--wui-color-accent-090);
882
+ }
883
+
884
+ button[data-variant='main']:hover:enabled {
885
+ background-color: var(--wui-color-accent-090);
886
+ }
887
+
888
+ button[data-variant='main']:active:enabled {
889
+ background-color: var(--wui-color-accent-080);
890
+ }
891
+
892
+ button[data-variant='accent']:hover:enabled {
893
+ background-color: var(--wui-color-accent-glass-015);
894
+ }
895
+
896
+ button[data-variant='accent']:active:enabled {
897
+ background-color: var(--wui-color-accent-glass-020);
898
+ }
899
+
900
+ button[data-variant='shade']:focus-visible,
901
+ button[data-variant='gray']:focus-visible,
902
+ button[data-variant='shade']:hover,
903
+ button[data-variant='gray']:hover {
904
+ background-color: var(--wui-color-gray-glass-002);
905
+ }
906
+
907
+ button[data-variant='gray']:active,
908
+ button[data-variant='shade']:active {
909
+ background-color: var(--wui-color-gray-glass-005);
910
+ }
911
+ }
912
+
913
+ button.disabled {
914
+ color: var(--wui-color-gray-glass-020);
915
+ background-color: var(--wui-color-gray-glass-002);
916
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
917
+ pointer-events: none;
918
+ }
919
+ `;var $t=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let Et=class extends o.WF{constructor(){super(...arguments),this.variant="accent",this.imageSrc="",this.disabled=!1,this.icon="externalLink",this.size="md",this.text=""}render(){const t="sm"===this.size?"small-600":"paragraph-600";return o.qy`
920
+ <button
921
+ class=${this.disabled?"disabled":""}
922
+ data-variant=${this.variant}
923
+ data-size=${this.size}
924
+ >
925
+ ${this.imageSrc?o.qy`<wui-image src=${this.imageSrc}></wui-image>`:null}
926
+ <wui-text variant=${t} color="inherit"> ${this.text} </wui-text>
927
+ <wui-icon name=${this.icon} color="inherit" size="inherit"></wui-icon>
928
+ </button>
929
+ `}};Et.styles=[f.W5,f.fD,Ct],$t([(0,r.MZ)()],Et.prototype,"variant",void 0),$t([(0,r.MZ)()],Et.prototype,"imageSrc",void 0),$t([(0,r.MZ)({type:Boolean})],Et.prototype,"disabled",void 0),$t([(0,r.MZ)()],Et.prototype,"icon",void 0),$t([(0,r.MZ)()],Et.prototype,"size",void 0),$t([(0,r.MZ)()],Et.prototype,"text",void 0),Et=$t([(0,b.E)("wui-chip-button")],Et);const Rt=o.AH`
930
+ wui-flex {
931
+ width: 100%;
932
+ background-color: var(--wui-color-gray-glass-002);
933
+ border-radius: var(--wui-border-radius-xs);
934
+ }
935
+ `;var It=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let Mt=class extends o.WF{constructor(){super(...arguments),this.disabled=!1,this.label="",this.buttonLabel=""}render(){return o.qy`
936
+ <wui-flex
937
+ justifyContent="space-between"
938
+ alignItems="center"
939
+ .padding=${["1xs","2l","1xs","2l"]}
940
+ >
941
+ <wui-text variant="paragraph-500" color="fg-200">${this.label}</wui-text>
942
+ <wui-chip-button size="sm" variant="shade" text=${this.buttonLabel} icon="chevronRight">
943
+ </wui-chip-button>
944
+ </wui-flex>
945
+ `}};Mt.styles=[f.W5,f.fD,Rt],It([(0,r.MZ)({type:Boolean})],Mt.prototype,"disabled",void 0),It([(0,r.MZ)()],Mt.prototype,"label",void 0),It([(0,r.MZ)()],Mt.prototype,"buttonLabel",void 0),Mt=It([(0,b.E)("wui-cta-button")],Mt);const Tt=o.AH`
946
+ :host {
947
+ display: block;
948
+ padding: 0 var(--wui-spacing-xl) var(--wui-spacing-xl);
949
+ }
950
+ `;var Wt=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let Ot=class extends o.WF{constructor(){super(...arguments),this.wallet=void 0}render(){if(!this.wallet)return this.style.display="none",null;const{name:t,app_store:e,play_store:i,chrome_store:r,homepage:a}=this.wallet,s=n.w.isMobile(),l=n.w.isIos(),u=n.w.isAndroid(),d=[e,i,a,r].filter(Boolean).length>1,h=c.Zv.getTruncateString({string:t,charsStart:12,charsEnd:0,truncate:"end"});return d&&!s?o.qy`
951
+ <wui-cta-button
952
+ label=${`Don't have ${h}?`}
953
+ buttonLabel="Get"
954
+ @click=${()=>g.I.push("Downloads",{wallet:this.wallet})}
955
+ ></wui-cta-button>
956
+ `:!d&&a?o.qy`
957
+ <wui-cta-button
958
+ label=${`Don't have ${h}?`}
959
+ buttonLabel="Get"
960
+ @click=${this.onHomePage.bind(this)}
961
+ ></wui-cta-button>
962
+ `:e&&l?o.qy`
963
+ <wui-cta-button
964
+ label=${`Don't have ${h}?`}
965
+ buttonLabel="Get"
966
+ @click=${this.onAppStore.bind(this)}
967
+ ></wui-cta-button>
968
+ `:i&&u?o.qy`
969
+ <wui-cta-button
970
+ label=${`Don't have ${h}?`}
971
+ buttonLabel="Get"
972
+ @click=${this.onPlayStore.bind(this)}
973
+ ></wui-cta-button>
974
+ `:(this.style.display="none",null)}onAppStore(){this.wallet?.app_store&&n.w.openHref(this.wallet.app_store,"_blank")}onPlayStore(){this.wallet?.play_store&&n.w.openHref(this.wallet.play_store,"_blank")}onHomePage(){this.wallet?.homepage&&n.w.openHref(this.wallet.homepage,"_blank")}};Ot.styles=[Tt],Wt([(0,r.MZ)({type:Object})],Ot.prototype,"wallet",void 0),Ot=Wt([(0,c.EM)("w3m-mobile-download-links")],Ot);const Pt=o.AH`
975
+ @keyframes shake {
976
+ 0% {
977
+ transform: translateX(0);
978
+ }
979
+ 25% {
980
+ transform: translateX(3px);
981
+ }
982
+ 50% {
983
+ transform: translateX(-3px);
984
+ }
985
+ 75% {
986
+ transform: translateX(3px);
987
+ }
988
+ 100% {
989
+ transform: translateX(0);
990
+ }
991
+ }
992
+
993
+ wui-flex:first-child:not(:only-child) {
994
+ position: relative;
995
+ }
996
+
997
+ wui-loading-thumbnail {
998
+ position: absolute;
999
+ }
1000
+
1001
+ wui-icon-box {
1002
+ position: absolute;
1003
+ right: calc(var(--wui-spacing-3xs) * -1);
1004
+ bottom: calc(var(--wui-spacing-3xs) * -1);
1005
+ opacity: 0;
1006
+ transform: scale(0.5);
1007
+ transition-property: opacity, transform;
1008
+ transition-duration: var(--wui-duration-lg);
1009
+ transition-timing-function: var(--wui-ease-out-power-2);
1010
+ will-change: opacity, transform;
1011
+ }
1012
+
1013
+ wui-text[align='center'] {
1014
+ width: 100%;
1015
+ padding: 0px var(--wui-spacing-l);
1016
+ }
1017
+
1018
+ [data-error='true'] wui-icon-box {
1019
+ opacity: 1;
1020
+ transform: scale(1);
1021
+ }
1022
+
1023
+ [data-error='true'] > wui-flex:first-child {
1024
+ animation: shake 250ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
1025
+ }
1026
+
1027
+ [data-retry='false'] wui-link {
1028
+ display: none;
1029
+ }
1030
+
1031
+ [data-retry='true'] wui-link {
1032
+ display: block;
1033
+ opacity: 1;
1034
+ }
1035
+ `;var At=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class St extends o.WF{constructor(){super(),this.wallet=g.I.state.data?.wallet,this.connector=g.I.state.data?.connector,this.timeout=void 0,this.secondaryBtnIcon="refresh",this.onConnect=void 0,this.onRender=void 0,this.onAutoConnect=void 0,this.isWalletConnect=!0,this.unsubscribe=[],this.imageSrc=T.$.getWalletImage(this.wallet)??T.$.getConnectorImage(this.connector),this.name=this.wallet?.name??this.connector?.name??"Wallet",this.isRetrying=!1,this.uri=p.x.state.wcUri,this.error=p.x.state.wcError,this.ready=!1,this.showRetry=!1,this.label=void 0,this.secondaryBtnLabel="Try again",this.secondaryLabel="Accept connection request in the wallet",this.isLoading=!1,this.isMobile=!1,this.onRetry=void 0,this.unsubscribe.push(p.x.subscribeKey("wcUri",(t=>{this.uri=t,this.isRetrying&&this.onRetry&&(this.isRetrying=!1,this.onConnect?.())})),p.x.subscribeKey("wcError",(t=>this.error=t))),(n.w.isTelegram()||n.w.isSafari())&&n.w.isIos()&&p.x.state.wcUri&&this.onConnect?.()}firstUpdated(){this.onAutoConnect?.(),this.showRetry=!this.onAutoConnect}disconnectedCallback(){this.unsubscribe.forEach((t=>t())),p.x.setWcError(!1),clearTimeout(this.timeout)}render(){this.onRender?.(),this.onShowRetry();const t=this.error?"Connection can be declined if a previous request is still active":this.secondaryLabel;let e="";return this.label?e=this.label:(e=`Continue in ${this.name}`,this.error&&(e="Connection declined")),o.qy`
1036
+ <wui-flex
1037
+ data-error=${(0,u.J)(this.error)}
1038
+ data-retry=${this.showRetry}
1039
+ flexDirection="column"
1040
+ alignItems="center"
1041
+ .padding=${["3xl","xl","xl","xl"]}
1042
+ gap="xl"
1043
+ >
1044
+ <wui-flex justifyContent="center" alignItems="center">
1045
+ <wui-wallet-image size="lg" imageSrc=${(0,u.J)(this.imageSrc)}></wui-wallet-image>
1046
+
1047
+ ${this.error?null:this.loaderTemplate()}
1048
+
1049
+ <wui-icon-box
1050
+ backgroundColor="error-100"
1051
+ background="opaque"
1052
+ iconColor="error-100"
1053
+ icon="close"
1054
+ size="sm"
1055
+ border
1056
+ borderColor="wui-color-bg-125"
1057
+ ></wui-icon-box>
1058
+ </wui-flex>
1059
+
1060
+ <wui-flex flexDirection="column" alignItems="center" gap="xs">
1061
+ <wui-text
1062
+ align="center"
1063
+ variant="paragraph-500"
1064
+ color=${this.error?"error-100":"fg-100"}
1065
+ >
1066
+ ${e}
1067
+ </wui-text>
1068
+ <wui-text align="center" variant="small-500" color="fg-200">${t}</wui-text>
1069
+ </wui-flex>
1070
+
1071
+ ${this.secondaryBtnLabel?o.qy`
1072
+ <wui-button
1073
+ variant="accent"
1074
+ size="md"
1075
+ ?disabled=${this.isRetrying||this.isLoading}
1076
+ @click=${this.onTryAgain.bind(this)}
1077
+ data-testid="w3m-connecting-widget-secondary-button"
1078
+ >
1079
+ <wui-icon color="inherit" slot="iconLeft" name=${this.secondaryBtnIcon}></wui-icon>
1080
+ ${this.secondaryBtnLabel}
1081
+ </wui-button>
1082
+ `:null}
1083
+ </wui-flex>
1084
+
1085
+ ${this.isWalletConnect?o.qy`
1086
+ <wui-flex .padding=${["0","xl","xl","xl"]} justifyContent="center">
1087
+ <wui-link @click=${this.onCopyUri} color="fg-200" data-testid="wui-link-copy">
1088
+ <wui-icon size="xs" color="fg-200" slot="iconLeft" name="copy"></wui-icon>
1089
+ Copy link
1090
+ </wui-link>
1091
+ </wui-flex>
1092
+ `:null}
1093
+
1094
+ <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links>
1095
+ `}onShowRetry(){if(this.error&&!this.showRetry){this.showRetry=!0;const t=this.shadowRoot?.querySelector("wui-button");t?.animate([{opacity:0},{opacity:1}],{fill:"forwards",easing:"ease"})}}onTryAgain(){p.x.setWcError(!1),this.onRetry?(this.isRetrying=!0,this.onRetry?.()):this.onConnect?.()}loaderTemplate(){const t=ut.W.state.themeVariables["--w3m-border-radius-master"],e=t?parseInt(t.replace("px",""),10):4;return o.qy`<wui-loading-thumbnail radius=${9*e}></wui-loading-thumbnail>`}onCopyUri(){try{this.uri&&(n.w.copyToClopboard(this.uri),it.P.showSuccess("Link copied"))}catch{it.P.showError("Failed to copy")}}}St.styles=Pt,At([(0,r.wk)()],St.prototype,"isRetrying",void 0),At([(0,r.wk)()],St.prototype,"uri",void 0),At([(0,r.wk)()],St.prototype,"error",void 0),At([(0,r.wk)()],St.prototype,"ready",void 0),At([(0,r.wk)()],St.prototype,"showRetry",void 0),At([(0,r.wk)()],St.prototype,"label",void 0),At([(0,r.wk)()],St.prototype,"secondaryBtnLabel",void 0),At([(0,r.wk)()],St.prototype,"secondaryLabel",void 0),At([(0,r.wk)()],St.prototype,"isLoading",void 0),At([(0,r.MZ)({type:Boolean})],St.prototype,"isMobile",void 0),At([(0,r.MZ)()],St.prototype,"onRetry",void 0);let jt=class extends St{constructor(){if(super(),!this.wallet)throw new Error("w3m-connecting-wc-browser: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onAutoConnect=this.onConnectProxy.bind(this),w.E.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"browser",displayIndex:this.wallet?.display_index}})}async onConnectProxy(){try{this.error=!1;const{connectors:t}=h.a.state,e=t.find((t=>"ANNOUNCED"===t.type&&t.info?.rdns===this.wallet?.rdns||"INJECTED"===t.type||t.name===this.wallet?.name));if(!e)throw new Error("w3m-connecting-wc-browser: No connector found");await p.x.connectExternal(e,e.chain),ot.W.close(),w.E.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"browser",name:this.wallet?.name||"Unknown",caipNetworkId:_.W.getActiveCaipNetwork()?.caipNetworkId}})}catch(t){w.E.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:t?.message??"Unknown"}}),this.error=!0}}};jt=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a}([(0,c.EM)("w3m-connecting-wc-browser")],jt);let Lt=class extends St{constructor(){if(super(),!this.wallet)throw new Error("w3m-connecting-wc-desktop: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onRender=this.onRenderProxy.bind(this),w.E.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"desktop",displayIndex:this.wallet?.display_index}})}onRenderProxy(){!this.ready&&this.uri&&(this.ready=!0,this.onConnect?.())}onConnectProxy(){if(this.wallet?.desktop_link&&this.uri)try{this.error=!1;const{desktop_link:t,name:e}=this.wallet,{redirect:i,href:o}=n.w.formatNativeUrl(t,this.uri);p.x.setWcLinking({name:e,href:o}),p.x.setRecentWallet(this.wallet),n.w.openHref(i,"_blank")}catch{this.error=!0}}};Lt=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a}([(0,c.EM)("w3m-connecting-wc-desktop")],Lt);var qt=i(2944),Nt=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let zt=class extends St{constructor(){if(super(),this.btnLabelTimeout=void 0,this.redirectDeeplink=void 0,this.redirectUniversalLink=void 0,this.target=void 0,this.preferUniversalLinks=s.H.state.experimental_preferUniversalLinks,this.isLoading=!0,this.onConnect=()=>{if(this.wallet?.mobile_link&&this.uri)try{this.error=!1;const{mobile_link:t,link_mode:e,name:i}=this.wallet,{redirect:o,redirectUniversalLink:r,href:a}=n.w.formatNativeUrl(t,this.uri,e);this.redirectDeeplink=o,this.redirectUniversalLink=r,this.target=n.w.isIframe()?"_top":"_self",p.x.setWcLinking({name:i,href:a}),p.x.setRecentWallet(this.wallet),this.preferUniversalLinks&&this.redirectUniversalLink?n.w.openHref(this.redirectUniversalLink,this.target):n.w.openHref(this.redirectDeeplink,this.target)}catch(t){w.E.sendEvent({type:"track",event:"CONNECT_PROXY_ERROR",properties:{message:t instanceof Error?t.message:"Error parsing the deeplink",uri:this.uri,mobile_link:this.wallet.mobile_link,name:this.wallet.name}}),this.error=!0}},!this.wallet)throw new Error("w3m-connecting-wc-mobile: No wallet provided");this.secondaryBtnLabel="Open",this.secondaryLabel=qt.oU.CONNECT_LABELS.MOBILE,this.secondaryBtnIcon="externalLink",this.onHandleURI(),this.unsubscribe.push(p.x.subscribeKey("wcUri",(()=>{this.onHandleURI()}))),w.E.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"mobile",displayIndex:this.wallet?.display_index}})}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.btnLabelTimeout)}onHandleURI(){this.isLoading=!this.uri,!this.ready&&this.uri&&(this.ready=!0,this.onConnect?.())}onTryAgain(){p.x.setWcError(!1),this.onConnect?.()}};Nt([(0,r.wk)()],zt.prototype,"redirectDeeplink",void 0),Nt([(0,r.wk)()],zt.prototype,"redirectUniversalLink",void 0),Nt([(0,r.wk)()],zt.prototype,"target",void 0),Nt([(0,r.wk)()],zt.prototype,"preferUniversalLinks",void 0),Nt([(0,r.wk)()],zt.prototype,"isLoading",void 0),zt=Nt([(0,c.EM)("w3m-connecting-wc-mobile")],zt);var Bt=i(7583);function Dt(t,e,i){return t!==e&&(t-e<0?e-t:t-e)<=i+.1}const Zt={generate({uri:t,size:e,logoSize:i,dotColor:r="#141414"}){const n=[],a=function(t){const e=Array.prototype.slice.call(Bt.create(t,{errorCorrectionLevel:"Q"}).modules.data,0),i=Math.sqrt(e.length);return e.reduce(((t,e,o)=>(o%i==0?t.push([e]):t[t.length-1].push(e))&&t),[])}(t),s=e/a.length,l=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];l.forEach((({x:t,y:e})=>{const i=(a.length-7)*s*t,c=(a.length-7)*s*e,u=.45;for(let t=0;t<l.length;t+=1){const e=s*(7-2*t);n.push(o.JW`
1096
+ <rect
1097
+ fill=${2===t?r:"transparent"}
1098
+ width=${0===t?e-5:e}
1099
+ rx= ${0===t?(e-5)*u:e*u}
1100
+ ry= ${0===t?(e-5)*u:e*u}
1101
+ stroke=${r}
1102
+ stroke-width=${0===t?5:0}
1103
+ height=${0===t?e-5:e}
1104
+ x= ${0===t?c+s*t+2.5:c+s*t}
1105
+ y= ${0===t?i+s*t+2.5:i+s*t}
1106
+ />
1107
+ `)}}));const c=Math.floor((i+25)/s),u=a.length/2-c/2,d=a.length/2+c/2-1,h=[];a.forEach(((t,e)=>{t.forEach(((t,i)=>{if(a[e][i]&&!(e<7&&i<7||e>a.length-8&&i<7||e<7&&i>a.length-8||e>u&&e<d&&i>u&&i<d)){const t=e*s+s/2,o=i*s+s/2;h.push([t,o])}}))}));const p={};return h.forEach((([t,e])=>{p[t]?p[t]?.push(e):p[t]=[e]})),Object.entries(p).map((([t,e])=>{const i=e.filter((t=>e.every((e=>!Dt(t,e,s)))));return[Number(t),i]})).forEach((([t,e])=>{e.forEach((e=>{n.push(o.JW`<circle cx=${t} cy=${e} fill=${r} r=${s/2.5} />`)}))})),Object.entries(p).filter((([t,e])=>e.length>1)).map((([t,e])=>{const i=e.filter((t=>e.some((e=>Dt(t,e,s)))));return[Number(t),i]})).map((([t,e])=>{e.sort(((t,e)=>t<e?-1:1));const i=[];for(const t of e){const e=i.find((e=>e.some((e=>Dt(t,e,s)))));e?e.push(t):i.push([t])}return[t,i.map((t=>[t[0],t[t.length-1]]))]})).forEach((([t,e])=>{e.forEach((([e,i])=>{n.push(o.JW`
1108
+ <line
1109
+ x1=${t}
1110
+ x2=${t}
1111
+ y1=${e}
1112
+ y2=${i}
1113
+ stroke=${r}
1114
+ stroke-width=${s/1.25}
1115
+ stroke-linecap="round"
1116
+ />
1117
+ `)}))})),n}},Ut=o.AH`
1118
+ :host {
1119
+ position: relative;
1120
+ user-select: none;
1121
+ display: block;
1122
+ overflow: hidden;
1123
+ aspect-ratio: 1 / 1;
1124
+ width: var(--local-size);
1125
+ }
1126
+
1127
+ :host([data-theme='dark']) {
1128
+ border-radius: clamp(0px, var(--wui-border-radius-l), 40px);
1129
+ background-color: var(--wui-color-inverse-100);
1130
+ padding: var(--wui-spacing-l);
1131
+ }
1132
+
1133
+ :host([data-theme='light']) {
1134
+ box-shadow: 0 0 0 1px var(--wui-color-bg-125);
1135
+ background-color: var(--wui-color-bg-125);
1136
+ }
1137
+
1138
+ :host([data-clear='true']) > wui-icon {
1139
+ display: none;
1140
+ }
1141
+
1142
+ svg:first-child,
1143
+ wui-image,
1144
+ wui-icon {
1145
+ position: absolute;
1146
+ top: 50%;
1147
+ left: 50%;
1148
+ transform: translateY(-50%) translateX(-50%);
1149
+ }
1150
+
1151
+ wui-image {
1152
+ width: 25%;
1153
+ height: 25%;
1154
+ border-radius: var(--wui-border-radius-xs);
1155
+ }
1156
+
1157
+ wui-icon {
1158
+ width: 100%;
1159
+ height: 100%;
1160
+ color: var(--local-icon-color) !important;
1161
+ transform: translateY(-50%) translateX(-50%) scale(0.25);
1162
+ }
1163
+ `;var _t=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let Ht=class extends o.WF{constructor(){super(...arguments),this.uri="",this.size=0,this.theme="dark",this.imageSrc=void 0,this.alt=void 0,this.arenaClear=void 0,this.farcaster=void 0}render(){return this.dataset.theme=this.theme,this.dataset.clear=String(this.arenaClear),this.style.cssText=`\n --local-size: ${this.size}px;\n --local-icon-color: ${this.color??"#3396ff"}\n `,o.qy`${this.templateVisual()} ${this.templateSvg()}`}templateSvg(){const t="light"===this.theme?this.size:this.size-32;return o.JW`
1164
+ <svg height=${t} width=${t}>
1165
+ ${Zt.generate({uri:this.uri,size:t,logoSize:this.arenaClear?0:t/4,dotColor:this.color})}
1166
+ </svg>
1167
+ `}templateVisual(){return this.imageSrc?o.qy`<wui-image src=${this.imageSrc} alt=${this.alt??"logo"}></wui-image>`:this.farcaster?o.qy`<wui-icon
1168
+ class="farcaster"
1169
+ size="inherit"
1170
+ color="inherit"
1171
+ name="farcaster"
1172
+ ></wui-icon>`:o.qy`<wui-icon size="inherit" color="inherit" name="walletConnect"></wui-icon>`}};Ht.styles=[f.W5,Ut],_t([(0,r.MZ)()],Ht.prototype,"uri",void 0),_t([(0,r.MZ)({type:Number})],Ht.prototype,"size",void 0),_t([(0,r.MZ)()],Ht.prototype,"theme",void 0),_t([(0,r.MZ)()],Ht.prototype,"imageSrc",void 0),_t([(0,r.MZ)()],Ht.prototype,"alt",void 0),_t([(0,r.MZ)()],Ht.prototype,"color",void 0),_t([(0,r.MZ)({type:Boolean})],Ht.prototype,"arenaClear",void 0),_t([(0,r.MZ)({type:Boolean})],Ht.prototype,"farcaster",void 0),Ht=_t([(0,b.E)("wui-qr-code")],Ht);const Ft=o.AH`
1173
+ :host {
1174
+ display: block;
1175
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
1176
+ background: linear-gradient(
1177
+ 120deg,
1178
+ var(--wui-color-bg-200) 5%,
1179
+ var(--wui-color-bg-200) 48%,
1180
+ var(--wui-color-bg-300) 55%,
1181
+ var(--wui-color-bg-300) 60%,
1182
+ var(--wui-color-bg-300) calc(60% + 10px),
1183
+ var(--wui-color-bg-200) calc(60% + 12px),
1184
+ var(--wui-color-bg-200) 100%
1185
+ );
1186
+ background-size: 250%;
1187
+ animation: shimmer 3s linear infinite reverse;
1188
+ }
1189
+
1190
+ :host([variant='light']) {
1191
+ background: linear-gradient(
1192
+ 120deg,
1193
+ var(--wui-color-bg-150) 5%,
1194
+ var(--wui-color-bg-150) 48%,
1195
+ var(--wui-color-bg-200) 55%,
1196
+ var(--wui-color-bg-200) 60%,
1197
+ var(--wui-color-bg-200) calc(60% + 10px),
1198
+ var(--wui-color-bg-150) calc(60% + 12px),
1199
+ var(--wui-color-bg-150) 100%
1200
+ );
1201
+ background-size: 250%;
1202
+ }
1203
+
1204
+ @keyframes shimmer {
1205
+ from {
1206
+ background-position: -250% 0;
1207
+ }
1208
+ to {
1209
+ background-position: 250% 0;
1210
+ }
1211
+ }
1212
+ `;var Jt=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let Kt=class extends o.WF{constructor(){super(...arguments),this.width="",this.height="",this.borderRadius="m",this.variant="default"}render(){return this.style.cssText=`\n width: ${this.width};\n height: ${this.height};\n border-radius: clamp(0px,var(--wui-border-radius-${this.borderRadius}), 40px);\n `,o.qy`<slot></slot>`}};Kt.styles=[Ft],Jt([(0,r.MZ)()],Kt.prototype,"width",void 0),Jt([(0,r.MZ)()],Kt.prototype,"height",void 0),Jt([(0,r.MZ)()],Kt.prototype,"borderRadius",void 0),Jt([(0,r.MZ)()],Kt.prototype,"variant",void 0),Kt=Jt([(0,b.E)("wui-shimmer")],Kt);const Vt=o.AH`
1213
+ .reown-logo {
1214
+ height: var(--wui-spacing-xxl);
1215
+ }
1216
+
1217
+ a {
1218
+ text-decoration: none;
1219
+ cursor: pointer;
1220
+ }
1221
+
1222
+ a:hover {
1223
+ opacity: 0.9;
1224
+ }
1225
+ `;let Yt=class extends o.WF{render(){return o.qy`
1226
+ <a
1227
+ data-testid="ux-branding-reown"
1228
+ href=${"https://reown.com"}
1229
+ rel="noreferrer"
1230
+ target="_blank"
1231
+ style="text-decoration: none;"
1232
+ >
1233
+ <wui-flex
1234
+ justifyContent="center"
1235
+ alignItems="center"
1236
+ gap="xs"
1237
+ .padding=${["0","0","l","0"]}
1238
+ >
1239
+ <wui-text variant="small-500" color="fg-100"> UX by </wui-text>
1240
+ <wui-icon name="reown" size="xxxl" class="reown-logo"></wui-icon>
1241
+ </wui-flex>
1242
+ </a>
1243
+ `}};Yt.styles=[f.W5,f.fD,Vt],Yt=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a}([(0,b.E)("wui-ux-by-reown")],Yt);const Gt=o.AH`
1244
+ @keyframes fadein {
1245
+ from {
1246
+ opacity: 0;
1247
+ }
1248
+ to {
1249
+ opacity: 1;
1250
+ }
1251
+ }
1252
+
1253
+ wui-shimmer {
1254
+ width: 100%;
1255
+ aspect-ratio: 1 / 1;
1256
+ border-radius: clamp(0px, var(--wui-border-radius-l), 40px) !important;
1257
+ }
1258
+
1259
+ wui-qr-code {
1260
+ opacity: 0;
1261
+ animation-duration: 200ms;
1262
+ animation-timing-function: ease;
1263
+ animation-name: fadein;
1264
+ animation-fill-mode: forwards;
1265
+ }
1266
+ `;let Qt=class extends St{constructor(){super(),this.forceUpdate=()=>{this.requestUpdate()},window.addEventListener("resize",this.forceUpdate),w.E.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet?.name??"WalletConnect",platform:"qrcode",displayIndex:this.wallet?.display_index}})}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribe?.forEach((t=>t())),window.removeEventListener("resize",this.forceUpdate)}render(){return this.onRenderProxy(),o.qy`
1267
+ <wui-flex
1268
+ flexDirection="column"
1269
+ alignItems="center"
1270
+ .padding=${["0","xl","xl","xl"]}
1271
+ gap="xl"
1272
+ >
1273
+ <wui-shimmer borderRadius="l" width="100%"> ${this.qrCodeTemplate()} </wui-shimmer>
1274
+
1275
+ <wui-text variant="paragraph-500" color="fg-100">
1276
+ Scan this QR Code with your phone
1277
+ </wui-text>
1278
+ ${this.copyTemplate()}
1279
+ </wui-flex>
1280
+ <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links>
1281
+ `}onRenderProxy(){!this.ready&&this.uri&&(this.timeout=setTimeout((()=>{this.ready=!0}),200))}qrCodeTemplate(){if(!this.uri||!this.ready)return null;const t=this.getBoundingClientRect().width-40,e=this.wallet?this.wallet.name:void 0;return p.x.setWcLinking(void 0),p.x.setRecentWallet(this.wallet),o.qy` <wui-qr-code
1282
+ size=${t}
1283
+ theme=${ut.W.state.themeMode}
1284
+ uri=${this.uri}
1285
+ imageSrc=${(0,u.J)(T.$.getWalletImage(this.wallet))}
1286
+ color=${(0,u.J)(ut.W.state.themeVariables["--w3m-qr-color"])}
1287
+ alt=${(0,u.J)(e)}
1288
+ data-testid="wui-qr-code"
1289
+ ></wui-qr-code>`}copyTemplate(){const t=!this.uri||!this.ready;return o.qy`<wui-link
1290
+ .disabled=${t}
1291
+ @click=${this.onCopyUri}
1292
+ color="fg-200"
1293
+ data-testid="copy-wc2-uri"
1294
+ >
1295
+ <wui-icon size="xs" color="fg-200" slot="iconLeft" name="copy"></wui-icon>
1296
+ Copy link
1297
+ </wui-link>`}};Qt.styles=Gt,Qt=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a}([(0,c.EM)("w3m-connecting-wc-qrcode")],Qt);let Xt=class extends o.WF{constructor(){if(super(),this.wallet=g.I.state.data?.wallet,!this.wallet)throw new Error("w3m-connecting-wc-unsupported: No wallet provided");w.E.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"browser",displayIndex:this.wallet?.display_index}})}render(){return o.qy`
1298
+ <wui-flex
1299
+ flexDirection="column"
1300
+ alignItems="center"
1301
+ .padding=${["3xl","xl","xl","xl"]}
1302
+ gap="xl"
1303
+ >
1304
+ <wui-wallet-image
1305
+ size="lg"
1306
+ imageSrc=${(0,u.J)(T.$.getWalletImage(this.wallet))}
1307
+ ></wui-wallet-image>
1308
+
1309
+ <wui-text variant="paragraph-500" color="fg-100">Not Detected</wui-text>
1310
+ </wui-flex>
1311
+
1312
+ <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links>
1313
+ `}};Xt=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a}([(0,c.EM)("w3m-connecting-wc-unsupported")],Xt);var te=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let ee=class extends St{constructor(){if(super(),this.isLoading=!0,!this.wallet)throw new Error("w3m-connecting-wc-web: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.secondaryBtnLabel="Open",this.secondaryLabel=qt.oU.CONNECT_LABELS.MOBILE,this.secondaryBtnIcon="externalLink",this.updateLoadingState(),this.unsubscribe.push(p.x.subscribeKey("wcUri",(()=>{this.updateLoadingState()}))),w.E.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"web",displayIndex:this.wallet?.display_index}})}updateLoadingState(){this.isLoading=!this.uri}onConnectProxy(){if(this.wallet?.webapp_link&&this.uri)try{this.error=!1;const{webapp_link:t,name:e}=this.wallet,{redirect:i,href:o}=n.w.formatUniversalUrl(t,this.uri);p.x.setWcLinking({name:e,href:o}),p.x.setRecentWallet(this.wallet),n.w.openHref(i,"_blank")}catch{this.error=!0}}};te([(0,r.wk)()],ee.prototype,"isLoading",void 0),ee=te([(0,c.EM)("w3m-connecting-wc-web")],ee);var ie=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let oe=class extends o.WF{constructor(){super(),this.wallet=g.I.state.data?.wallet,this.unsubscribe=[],this.platform=void 0,this.platforms=[],this.isSiwxEnabled=Boolean(s.H.state.siwx),this.remoteFeatures=s.H.state.remoteFeatures,this.determinePlatforms(),this.initializeConnection(),this.unsubscribe.push(s.H.subscribeKey("remoteFeatures",(t=>this.remoteFeatures=t)))}disconnectedCallback(){this.unsubscribe.forEach((t=>t()))}render(){return o.qy`
1314
+ ${this.headerTemplate()}
1315
+ <div>${this.platformTemplate()}</div>
1316
+ ${this.reownBrandingTemplate()}
1317
+ `}reownBrandingTemplate(){return this.remoteFeatures?.reownBranding?o.qy`<wui-ux-by-reown></wui-ux-by-reown>`:null}async initializeConnection(t=!1){if("browser"!==this.platform&&(!s.H.state.manualWCControl||t))try{const{wcPairingExpiry:e,status:i}=p.x.state;if(t||s.H.state.enableEmbedded||n.w.isPairingExpired(e)||"connecting"===i){const t=p.x.getConnections(_.W.state.activeChain),e=this.remoteFeatures?.multiWallet,i=t.length>0;await p.x.connectWalletConnect(),this.isSiwxEnabled||(i&&e?(g.I.replace("ProfileWallets"),it.P.showSuccess("New Wallet Added")):ot.W.close())}}catch(t){if(t instanceof Error&&t.message.includes("An error occurred when attempting to switch chain")&&!s.H.state.enableNetworkSwitch&&_.W.state.activeChain)return _.W.setActiveCaipNetwork(rt.R.getUnsupportedNetwork(`${_.W.state.activeChain}:${_.W.state.activeCaipNetwork?.id}`)),void _.W.showUnsupportedChainUI();w.E.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:t?.message??"Unknown"}}),p.x.setWcError(!0),it.P.showError(t.message??"Connection error"),p.x.resetWcConnection(),g.I.goBack()}}determinePlatforms(){if(!this.wallet)return this.platforms.push("qrcode"),void(this.platform="qrcode");if(this.platform)return;const{mobile_link:t,desktop_link:e,webapp_link:i,injected:o,rdns:r}=this.wallet,a=o?.map((({injected_id:t})=>t)).filter(Boolean),l=[...r?[r]:a??[]],c=!s.H.state.isUniversalProvider&&l.length,u=t,d=i,h=p.x.checkInstalled(l),w=c&&h,g=e&&!n.w.isMobile();w&&!_.W.state.noAdapters&&this.platforms.push("browser"),u&&this.platforms.push(n.w.isMobile()?"mobile":"qrcode"),d&&this.platforms.push("web"),g&&this.platforms.push("desktop"),w||!c||_.W.state.noAdapters||this.platforms.push("unsupported"),this.platform=this.platforms[0]}platformTemplate(){switch(this.platform){case"browser":return o.qy`<w3m-connecting-wc-browser></w3m-connecting-wc-browser>`;case"web":return o.qy`<w3m-connecting-wc-web></w3m-connecting-wc-web>`;case"desktop":return o.qy`
1318
+ <w3m-connecting-wc-desktop .onRetry=${()=>this.initializeConnection(!0)}>
1319
+ </w3m-connecting-wc-desktop>
1320
+ `;case"mobile":return o.qy`
1321
+ <w3m-connecting-wc-mobile isMobile .onRetry=${()=>this.initializeConnection(!0)}>
1322
+ </w3m-connecting-wc-mobile>
1323
+ `;case"qrcode":return o.qy`<w3m-connecting-wc-qrcode></w3m-connecting-wc-qrcode>`;default:return o.qy`<w3m-connecting-wc-unsupported></w3m-connecting-wc-unsupported>`}}headerTemplate(){return this.platforms.length>1?o.qy`
1324
+ <w3m-connecting-header
1325
+ .platforms=${this.platforms}
1326
+ .onSelectPlatfrom=${this.onSelectPlatform.bind(this)}
1327
+ >
1328
+ </w3m-connecting-header>
1329
+ `:null}async onSelectPlatform(t){const e=this.shadowRoot?.querySelector("div");e&&(await e.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.platform=t,e.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}};ie([(0,r.wk)()],oe.prototype,"platform",void 0),ie([(0,r.wk)()],oe.prototype,"platforms",void 0),ie([(0,r.wk)()],oe.prototype,"isSiwxEnabled",void 0),ie([(0,r.wk)()],oe.prototype,"remoteFeatures",void 0),oe=ie([(0,c.EM)("w3m-connecting-wc-view")],oe);var re=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let ne=class extends o.WF{constructor(){super(...arguments),this.isMobile=n.w.isMobile()}render(){if(this.isMobile){const{featured:t,recommended:e}=a.N.state,{customWallets:i}=s.H.state,r=l.i.getRecentWallets(),n=t.length||e.length||i?.length||r.length;return o.qy`<wui-flex
1330
+ flexDirection="column"
1331
+ gap="xs"
1332
+ .margin=${["3xs","s","s","s"]}
1333
+ >
1334
+ ${n?o.qy`<w3m-connector-list></w3m-connector-list>`:null}
1335
+ <w3m-all-wallets-widget></w3m-all-wallets-widget>
1336
+ </wui-flex>`}return o.qy`<wui-flex flexDirection="column" .padding=${["0","0","l","0"]}>
1337
+ <w3m-connecting-wc-view></w3m-connecting-wc-view>
1338
+ <wui-flex flexDirection="column" .padding=${["0","m","0","m"]}>
1339
+ <w3m-all-wallets-widget></w3m-all-wallets-widget> </wui-flex
1340
+ ></wui-flex>`}};re([(0,r.wk)()],ne.prototype,"isMobile",void 0),ne=re([(0,c.EM)("w3m-connecting-wc-basic-view")],ne);var ae=i(6752),se=i(6201),le=i(7804);const ce=()=>new ue;class ue{}const de=new WeakMap,he=(0,le.u$)(class extends se.Kq{render(t){return ae.s6}update(t,[e]){const i=e!==this.G;return i&&void 0!==this.G&&this.rt(void 0),(i||this.lt!==this.ct)&&(this.G=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),ae.s6}rt(t){if(this.isConnected||(t=void 0),"function"==typeof this.G){const e=this.ht??globalThis;let i=de.get(e);void 0===i&&(i=new WeakMap,de.set(e,i)),void 0!==i.get(this.G)&&this.G.call(this.ht,void 0),i.set(this.G,t),void 0!==t&&this.G.call(this.ht,t)}else this.G.value=t}get lt(){return"function"==typeof this.G?de.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}}),pe=o.AH`
1341
+ :host {
1342
+ display: flex;
1343
+ align-items: center;
1344
+ justify-content: center;
1345
+ }
1346
+
1347
+ label {
1348
+ position: relative;
1349
+ display: inline-block;
1350
+ width: 32px;
1351
+ height: 22px;
1352
+ }
1353
+
1354
+ input {
1355
+ width: 0;
1356
+ height: 0;
1357
+ opacity: 0;
1358
+ }
1359
+
1360
+ span {
1361
+ position: absolute;
1362
+ cursor: pointer;
1363
+ top: 0;
1364
+ left: 0;
1365
+ right: 0;
1366
+ bottom: 0;
1367
+ background-color: var(--wui-color-blue-100);
1368
+ border-width: 1px;
1369
+ border-style: solid;
1370
+ border-color: var(--wui-color-gray-glass-002);
1371
+ border-radius: 999px;
1372
+ transition:
1373
+ background-color var(--wui-ease-inout-power-1) var(--wui-duration-md),
1374
+ border-color var(--wui-ease-inout-power-1) var(--wui-duration-md);
1375
+ will-change: background-color, border-color;
1376
+ }
1377
+
1378
+ span:before {
1379
+ position: absolute;
1380
+ content: '';
1381
+ height: 16px;
1382
+ width: 16px;
1383
+ left: 3px;
1384
+ top: 2px;
1385
+ background-color: var(--wui-color-inverse-100);
1386
+ transition: transform var(--wui-ease-inout-power-1) var(--wui-duration-lg);
1387
+ will-change: transform;
1388
+ border-radius: 50%;
1389
+ }
1390
+
1391
+ input:checked + span {
1392
+ border-color: var(--wui-color-gray-glass-005);
1393
+ background-color: var(--wui-color-blue-100);
1394
+ }
1395
+
1396
+ input:not(:checked) + span {
1397
+ background-color: var(--wui-color-gray-glass-010);
1398
+ }
1399
+
1400
+ input:checked + span:before {
1401
+ transform: translateX(calc(100% - 7px));
1402
+ }
1403
+ `;var we=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let ge=class extends o.WF{constructor(){super(...arguments),this.inputElementRef=ce(),this.checked=void 0}render(){return o.qy`
1404
+ <label>
1405
+ <input
1406
+ ${he(this.inputElementRef)}
1407
+ type="checkbox"
1408
+ ?checked=${(0,u.J)(this.checked)}
1409
+ @change=${this.dispatchChangeEvent.bind(this)}
1410
+ />
1411
+ <span></span>
1412
+ </label>
1413
+ `}dispatchChangeEvent(){this.dispatchEvent(new CustomEvent("switchChange",{detail:this.inputElementRef.value?.checked,bubbles:!0,composed:!0}))}};ge.styles=[f.W5,f.fD,f.ck,pe],we([(0,r.MZ)({type:Boolean})],ge.prototype,"checked",void 0),ge=we([(0,b.E)("wui-switch")],ge);const fe=o.AH`
1414
+ :host {
1415
+ height: 100%;
1416
+ }
1417
+
1418
+ button {
1419
+ display: flex;
1420
+ align-items: center;
1421
+ justify-content: center;
1422
+ column-gap: var(--wui-spacing-1xs);
1423
+ padding: var(--wui-spacing-xs) var(--wui-spacing-s);
1424
+ background-color: var(--wui-color-gray-glass-002);
1425
+ border-radius: var(--wui-border-radius-xs);
1426
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
1427
+ transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md);
1428
+ will-change: background-color;
1429
+ cursor: pointer;
1430
+ }
1431
+
1432
+ wui-switch {
1433
+ pointer-events: none;
1434
+ }
1435
+ `;var be=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let me=class extends o.WF{constructor(){super(...arguments),this.checked=void 0}render(){return o.qy`
1436
+ <button>
1437
+ <wui-icon size="xl" name="walletConnectBrown"></wui-icon>
1438
+ <wui-switch ?checked=${(0,u.J)(this.checked)}></wui-switch>
1439
+ </button>
1440
+ `}};me.styles=[f.W5,f.fD,fe],be([(0,r.MZ)({type:Boolean})],me.prototype,"checked",void 0),me=be([(0,b.E)("wui-certified-switch")],me);const ve=o.AH`
1441
+ button {
1442
+ background-color: var(--wui-color-fg-300);
1443
+ border-radius: var(--wui-border-radius-4xs);
1444
+ width: 16px;
1445
+ height: 16px;
1446
+ }
1447
+
1448
+ button:disabled {
1449
+ background-color: var(--wui-color-bg-300);
1450
+ }
1451
+
1452
+ wui-icon {
1453
+ color: var(--wui-color-bg-200) !important;
1454
+ }
1455
+
1456
+ button:focus-visible {
1457
+ background-color: var(--wui-color-fg-250);
1458
+ border: 1px solid var(--wui-color-accent-100);
1459
+ }
1460
+
1461
+ @media (hover: hover) and (pointer: fine) {
1462
+ button:hover:enabled {
1463
+ background-color: var(--wui-color-fg-250);
1464
+ }
1465
+
1466
+ button:active:enabled {
1467
+ background-color: var(--wui-color-fg-225);
1468
+ }
1469
+ }
1470
+ `;var ye=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let xe=class extends o.WF{constructor(){super(...arguments),this.icon="copy"}render(){return o.qy`
1471
+ <button>
1472
+ <wui-icon color="inherit" size="xxs" name=${this.icon}></wui-icon>
1473
+ </button>
1474
+ `}};xe.styles=[f.W5,f.fD,ve],ye([(0,r.MZ)()],xe.prototype,"icon",void 0),xe=ye([(0,b.E)("wui-input-element")],xe);var ke=i(3720);const Ce=o.AH`
1475
+ :host {
1476
+ position: relative;
1477
+ width: 100%;
1478
+ display: inline-block;
1479
+ color: var(--wui-color-fg-275);
1480
+ }
1481
+
1482
+ input {
1483
+ width: 100%;
1484
+ border-radius: var(--wui-border-radius-xs);
1485
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
1486
+ background: var(--wui-color-gray-glass-002);
1487
+ font-size: var(--wui-font-size-paragraph);
1488
+ letter-spacing: var(--wui-letter-spacing-paragraph);
1489
+ color: var(--wui-color-fg-100);
1490
+ transition:
1491
+ background-color var(--wui-ease-inout-power-1) var(--wui-duration-md),
1492
+ border-color var(--wui-ease-inout-power-1) var(--wui-duration-md),
1493
+ box-shadow var(--wui-ease-inout-power-1) var(--wui-duration-md);
1494
+ will-change: background-color, border-color, box-shadow;
1495
+ caret-color: var(--wui-color-accent-100);
1496
+ }
1497
+
1498
+ input:disabled {
1499
+ cursor: not-allowed;
1500
+ border: 1px solid var(--wui-color-gray-glass-010);
1501
+ }
1502
+
1503
+ input:disabled::placeholder,
1504
+ input:disabled + wui-icon {
1505
+ color: var(--wui-color-fg-300);
1506
+ }
1507
+
1508
+ input::placeholder {
1509
+ color: var(--wui-color-fg-275);
1510
+ }
1511
+
1512
+ input:focus:enabled {
1513
+ background-color: var(--wui-color-gray-glass-005);
1514
+ -webkit-box-shadow:
1515
+ inset 0 0 0 1px var(--wui-color-accent-100),
1516
+ 0px 0px 0px 4px var(--wui-box-shadow-blue);
1517
+ -moz-box-shadow:
1518
+ inset 0 0 0 1px var(--wui-color-accent-100),
1519
+ 0px 0px 0px 4px var(--wui-box-shadow-blue);
1520
+ box-shadow:
1521
+ inset 0 0 0 1px var(--wui-color-accent-100),
1522
+ 0px 0px 0px 4px var(--wui-box-shadow-blue);
1523
+ }
1524
+
1525
+ input:hover:enabled {
1526
+ background-color: var(--wui-color-gray-glass-005);
1527
+ }
1528
+
1529
+ wui-icon {
1530
+ position: absolute;
1531
+ top: 50%;
1532
+ transform: translateY(-50%);
1533
+ pointer-events: none;
1534
+ }
1535
+
1536
+ .wui-size-sm {
1537
+ padding: 9px var(--wui-spacing-m) 10px var(--wui-spacing-s);
1538
+ }
1539
+
1540
+ wui-icon + .wui-size-sm {
1541
+ padding: 9px var(--wui-spacing-m) 10px 36px;
1542
+ }
1543
+
1544
+ wui-icon[data-input='sm'] {
1545
+ left: var(--wui-spacing-s);
1546
+ }
1547
+
1548
+ .wui-size-md {
1549
+ padding: 15px var(--wui-spacing-m) var(--wui-spacing-l) var(--wui-spacing-m);
1550
+ }
1551
+
1552
+ wui-icon + .wui-size-md,
1553
+ wui-loading-spinner + .wui-size-md {
1554
+ padding: 10.5px var(--wui-spacing-3xl) 10.5px var(--wui-spacing-3xl);
1555
+ }
1556
+
1557
+ wui-icon[data-input='md'] {
1558
+ left: var(--wui-spacing-l);
1559
+ }
1560
+
1561
+ .wui-size-lg {
1562
+ padding: var(--wui-spacing-s) var(--wui-spacing-s) var(--wui-spacing-s) var(--wui-spacing-l);
1563
+ letter-spacing: var(--wui-letter-spacing-medium-title);
1564
+ font-size: var(--wui-font-size-medium-title);
1565
+ font-weight: var(--wui-font-weight-light);
1566
+ line-height: 130%;
1567
+ color: var(--wui-color-fg-100);
1568
+ height: 64px;
1569
+ }
1570
+
1571
+ .wui-padding-right-xs {
1572
+ padding-right: var(--wui-spacing-xs);
1573
+ }
1574
+
1575
+ .wui-padding-right-s {
1576
+ padding-right: var(--wui-spacing-s);
1577
+ }
1578
+
1579
+ .wui-padding-right-m {
1580
+ padding-right: var(--wui-spacing-m);
1581
+ }
1582
+
1583
+ .wui-padding-right-l {
1584
+ padding-right: var(--wui-spacing-l);
1585
+ }
1586
+
1587
+ .wui-padding-right-xl {
1588
+ padding-right: var(--wui-spacing-xl);
1589
+ }
1590
+
1591
+ .wui-padding-right-2xl {
1592
+ padding-right: var(--wui-spacing-2xl);
1593
+ }
1594
+
1595
+ .wui-padding-right-3xl {
1596
+ padding-right: var(--wui-spacing-3xl);
1597
+ }
1598
+
1599
+ .wui-padding-right-4xl {
1600
+ padding-right: var(--wui-spacing-4xl);
1601
+ }
1602
+
1603
+ .wui-padding-right-5xl {
1604
+ padding-right: var(--wui-spacing-5xl);
1605
+ }
1606
+
1607
+ wui-icon + .wui-size-lg,
1608
+ wui-loading-spinner + .wui-size-lg {
1609
+ padding-left: 50px;
1610
+ }
1611
+
1612
+ wui-icon[data-input='lg'] {
1613
+ left: var(--wui-spacing-l);
1614
+ }
1615
+
1616
+ .wui-size-mdl {
1617
+ padding: 17.25px var(--wui-spacing-m) 17.25px var(--wui-spacing-m);
1618
+ }
1619
+ wui-icon + .wui-size-mdl,
1620
+ wui-loading-spinner + .wui-size-mdl {
1621
+ padding: 17.25px var(--wui-spacing-3xl) 17.25px 40px;
1622
+ }
1623
+ wui-icon[data-input='mdl'] {
1624
+ left: var(--wui-spacing-m);
1625
+ }
1626
+
1627
+ input:placeholder-shown ~ ::slotted(wui-input-element),
1628
+ input:placeholder-shown ~ ::slotted(wui-icon) {
1629
+ opacity: 0;
1630
+ pointer-events: none;
1631
+ }
1632
+
1633
+ input::-webkit-outer-spin-button,
1634
+ input::-webkit-inner-spin-button {
1635
+ -webkit-appearance: none;
1636
+ margin: 0;
1637
+ }
1638
+
1639
+ input[type='number'] {
1640
+ -moz-appearance: textfield;
1641
+ }
1642
+
1643
+ ::slotted(wui-input-element),
1644
+ ::slotted(wui-icon) {
1645
+ position: absolute;
1646
+ top: 50%;
1647
+ transform: translateY(-50%);
1648
+ }
1649
+
1650
+ ::slotted(wui-input-element) {
1651
+ right: var(--wui-spacing-m);
1652
+ }
1653
+
1654
+ ::slotted(wui-icon) {
1655
+ right: 0px;
1656
+ }
1657
+ `;var $e=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let Ee=class extends o.WF{constructor(){super(...arguments),this.inputElementRef=ce(),this.size="md",this.disabled=!1,this.placeholder="",this.type="text",this.value=""}render(){const t=`wui-padding-right-${this.inputRightPadding}`,e=`wui-size-${this.size}`,i={[e]:!0,[t]:Boolean(this.inputRightPadding)};return o.qy`${this.templateIcon()}
1658
+ <input
1659
+ data-testid="wui-input-text"
1660
+ ${he(this.inputElementRef)}
1661
+ class=${(0,ke.H)(i)}
1662
+ type=${this.type}
1663
+ enterkeyhint=${(0,u.J)(this.enterKeyHint)}
1664
+ ?disabled=${this.disabled}
1665
+ placeholder=${this.placeholder}
1666
+ @input=${this.dispatchInputChangeEvent.bind(this)}
1667
+ .value=${this.value||""}
1668
+ tabindex=${(0,u.J)(this.tabIdx)}
1669
+ />
1670
+ <slot></slot>`}templateIcon(){return this.icon?o.qy`<wui-icon
1671
+ data-input=${this.size}
1672
+ size=${this.size}
1673
+ color="inherit"
1674
+ name=${this.icon}
1675
+ ></wui-icon>`:null}dispatchInputChangeEvent(){this.dispatchEvent(new CustomEvent("inputChange",{detail:this.inputElementRef.value?.value,bubbles:!0,composed:!0}))}};Ee.styles=[f.W5,f.fD,Ce],$e([(0,r.MZ)()],Ee.prototype,"size",void 0),$e([(0,r.MZ)()],Ee.prototype,"icon",void 0),$e([(0,r.MZ)({type:Boolean})],Ee.prototype,"disabled",void 0),$e([(0,r.MZ)()],Ee.prototype,"placeholder",void 0),$e([(0,r.MZ)()],Ee.prototype,"type",void 0),$e([(0,r.MZ)()],Ee.prototype,"keyHint",void 0),$e([(0,r.MZ)()],Ee.prototype,"value",void 0),$e([(0,r.MZ)()],Ee.prototype,"inputRightPadding",void 0),$e([(0,r.MZ)()],Ee.prototype,"tabIdx",void 0),Ee=$e([(0,b.E)("wui-input-text")],Ee);const Re=o.AH`
1676
+ :host {
1677
+ position: relative;
1678
+ display: inline-block;
1679
+ width: 100%;
1680
+ }
1681
+ `;let Ie=class extends o.WF{constructor(){super(...arguments),this.inputComponentRef=ce()}render(){return o.qy`
1682
+ <wui-input-text
1683
+ ${he(this.inputComponentRef)}
1684
+ placeholder="Search wallet"
1685
+ icon="search"
1686
+ type="search"
1687
+ enterKeyHint="search"
1688
+ size="sm"
1689
+ >
1690
+ <wui-input-element @click=${this.clearValue} icon="close"></wui-input-element>
1691
+ </wui-input-text>
1692
+ `}clearValue(){const t=this.inputComponentRef.value,e=t?.inputElementRef.value;e&&(e.value="",e.focus(),e.dispatchEvent(new Event("input")))}};Ie.styles=[f.W5,Re],Ie=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a}([(0,b.E)("wui-search-bar")],Ie);const Me=o.JW`<svg viewBox="0 0 48 54" fill="none">
1693
+ <path
1694
+ d="M43.4605 10.7248L28.0485 1.61089C25.5438 0.129705 22.4562 0.129705 19.9515 1.61088L4.53951 10.7248C2.03626 12.2051 0.5 14.9365 0.5 17.886V36.1139C0.5 39.0635 2.03626 41.7949 4.53951 43.2752L19.9515 52.3891C22.4562 53.8703 25.5438 53.8703 28.0485 52.3891L43.4605 43.2752C45.9637 41.7949 47.5 39.0635 47.5 36.114V17.8861C47.5 14.9365 45.9637 12.2051 43.4605 10.7248Z"
1695
+ />
1696
+ </svg>`,Te=o.AH`
1697
+ :host {
1698
+ display: flex;
1699
+ flex-direction: column;
1700
+ align-items: center;
1701
+ width: 104px;
1702
+ row-gap: var(--wui-spacing-xs);
1703
+ padding: var(--wui-spacing-xs) 10px;
1704
+ background-color: var(--wui-color-gray-glass-002);
1705
+ border-radius: clamp(0px, var(--wui-border-radius-xs), 20px);
1706
+ position: relative;
1707
+ }
1708
+
1709
+ wui-shimmer[data-type='network'] {
1710
+ border: none;
1711
+ -webkit-clip-path: var(--wui-path-network);
1712
+ clip-path: var(--wui-path-network);
1713
+ }
1714
+
1715
+ svg {
1716
+ position: absolute;
1717
+ width: 48px;
1718
+ height: 54px;
1719
+ z-index: 1;
1720
+ }
1721
+
1722
+ svg > path {
1723
+ stroke: var(--wui-color-gray-glass-010);
1724
+ stroke-width: 1px;
1725
+ }
1726
+
1727
+ @media (max-width: 350px) {
1728
+ :host {
1729
+ width: 100%;
1730
+ }
1731
+ }
1732
+ `;var We=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let Oe=class extends o.WF{constructor(){super(...arguments),this.type="wallet"}render(){return o.qy`
1733
+ ${this.shimmerTemplate()}
1734
+ <wui-shimmer width="56px" height="20px" borderRadius="xs"></wui-shimmer>
1735
+ `}shimmerTemplate(){return"network"===this.type?o.qy` <wui-shimmer
1736
+ data-type=${this.type}
1737
+ width="48px"
1738
+ height="54px"
1739
+ borderRadius="xs"
1740
+ ></wui-shimmer>
1741
+ ${Me}`:o.qy`<wui-shimmer width="56px" height="56px" borderRadius="xs"></wui-shimmer>`}};Oe.styles=[f.W5,f.fD,Te],We([(0,r.MZ)()],Oe.prototype,"type",void 0),Oe=We([(0,b.E)("wui-card-select-loader")],Oe);var Pe=i(3612);const Ae=o.AH`
1742
+ :host {
1743
+ display: grid;
1744
+ width: inherit;
1745
+ height: inherit;
1746
+ }
1747
+ `;var Se=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let je=class extends o.WF{render(){return this.style.cssText=`\n grid-template-rows: ${this.gridTemplateRows};\n grid-template-columns: ${this.gridTemplateColumns};\n justify-items: ${this.justifyItems};\n align-items: ${this.alignItems};\n justify-content: ${this.justifyContent};\n align-content: ${this.alignContent};\n column-gap: ${this.columnGap&&`var(--wui-spacing-${this.columnGap})`};\n row-gap: ${this.rowGap&&`var(--wui-spacing-${this.rowGap})`};\n gap: ${this.gap&&`var(--wui-spacing-${this.gap})`};\n padding-top: ${this.padding&&Pe.Z.getSpacingStyles(this.padding,0)};\n padding-right: ${this.padding&&Pe.Z.getSpacingStyles(this.padding,1)};\n padding-bottom: ${this.padding&&Pe.Z.getSpacingStyles(this.padding,2)};\n padding-left: ${this.padding&&Pe.Z.getSpacingStyles(this.padding,3)};\n margin-top: ${this.margin&&Pe.Z.getSpacingStyles(this.margin,0)};\n margin-right: ${this.margin&&Pe.Z.getSpacingStyles(this.margin,1)};\n margin-bottom: ${this.margin&&Pe.Z.getSpacingStyles(this.margin,2)};\n margin-left: ${this.margin&&Pe.Z.getSpacingStyles(this.margin,3)};\n `,o.qy`<slot></slot>`}};je.styles=[f.W5,Ae],Se([(0,r.MZ)()],je.prototype,"gridTemplateRows",void 0),Se([(0,r.MZ)()],je.prototype,"gridTemplateColumns",void 0),Se([(0,r.MZ)()],je.prototype,"justifyItems",void 0),Se([(0,r.MZ)()],je.prototype,"alignItems",void 0),Se([(0,r.MZ)()],je.prototype,"justifyContent",void 0),Se([(0,r.MZ)()],je.prototype,"alignContent",void 0),Se([(0,r.MZ)()],je.prototype,"columnGap",void 0),Se([(0,r.MZ)()],je.prototype,"rowGap",void 0),Se([(0,r.MZ)()],je.prototype,"gap",void 0),Se([(0,r.MZ)()],je.prototype,"padding",void 0),Se([(0,r.MZ)()],je.prototype,"margin",void 0),je=Se([(0,b.E)("wui-grid")],je);const Le=o.AH`
1748
+ button {
1749
+ display: flex;
1750
+ flex-direction: column;
1751
+ justify-content: center;
1752
+ align-items: center;
1753
+ cursor: pointer;
1754
+ width: 104px;
1755
+ row-gap: var(--wui-spacing-xs);
1756
+ padding: var(--wui-spacing-s) var(--wui-spacing-0);
1757
+ background-color: var(--wui-color-gray-glass-002);
1758
+ border-radius: clamp(0px, var(--wui-border-radius-xs), 20px);
1759
+ transition:
1760
+ color var(--wui-duration-lg) var(--wui-ease-out-power-1),
1761
+ background-color var(--wui-duration-lg) var(--wui-ease-out-power-1),
1762
+ border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1);
1763
+ will-change: background-color, color, border-radius;
1764
+ outline: none;
1765
+ border: none;
1766
+ }
1767
+
1768
+ button > wui-flex > wui-text {
1769
+ color: var(--wui-color-fg-100);
1770
+ max-width: 86px;
1771
+ white-space: nowrap;
1772
+ overflow: hidden;
1773
+ text-overflow: ellipsis;
1774
+ justify-content: center;
1775
+ }
1776
+
1777
+ button > wui-flex > wui-text.certified {
1778
+ max-width: 66px;
1779
+ }
1780
+
1781
+ button:hover:enabled {
1782
+ background-color: var(--wui-color-gray-glass-005);
1783
+ }
1784
+
1785
+ button:disabled > wui-flex > wui-text {
1786
+ color: var(--wui-color-gray-glass-015);
1787
+ }
1788
+
1789
+ [data-selected='true'] {
1790
+ background-color: var(--wui-color-accent-glass-020);
1791
+ }
1792
+
1793
+ @media (hover: hover) and (pointer: fine) {
1794
+ [data-selected='true']:hover:enabled {
1795
+ background-color: var(--wui-color-accent-glass-015);
1796
+ }
1797
+ }
1798
+
1799
+ [data-selected='true']:active:enabled {
1800
+ background-color: var(--wui-color-accent-glass-010);
1801
+ }
1802
+
1803
+ @media (max-width: 350px) {
1804
+ button {
1805
+ width: 100%;
1806
+ }
1807
+ }
1808
+ `;var qe=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let Ne=class extends o.WF{constructor(){super(),this.observer=new IntersectionObserver((()=>{})),this.visible=!1,this.imageSrc=void 0,this.imageLoading=!1,this.wallet=void 0,this.observer=new IntersectionObserver((t=>{t.forEach((t=>{t.isIntersecting?(this.visible=!0,this.fetchImageSrc()):this.visible=!1}))}),{threshold:.01})}firstUpdated(){this.observer.observe(this)}disconnectedCallback(){this.observer.disconnect()}render(){const t="certified"===this.wallet?.badge_type;return o.qy`
1809
+ <button>
1810
+ ${this.imageTemplate()}
1811
+ <wui-flex flexDirection="row" alignItems="center" justifyContent="center" gap="3xs">
1812
+ <wui-text
1813
+ variant="tiny-500"
1814
+ color="inherit"
1815
+ class=${(0,u.J)(t?"certified":void 0)}
1816
+ >${this.wallet?.name}</wui-text
1817
+ >
1818
+ ${t?o.qy`<wui-icon size="sm" name="walletConnectBrown"></wui-icon>`:null}
1819
+ </wui-flex>
1820
+ </button>
1821
+ `}imageTemplate(){return!this.visible&&!this.imageSrc||this.imageLoading?this.shimmerTemplate():o.qy`
1822
+ <wui-wallet-image
1823
+ size="md"
1824
+ imageSrc=${(0,u.J)(this.imageSrc)}
1825
+ name=${this.wallet?.name}
1826
+ .installed=${this.wallet?.installed}
1827
+ badgeSize="sm"
1828
+ >
1829
+ </wui-wallet-image>
1830
+ `}shimmerTemplate(){return o.qy`<wui-shimmer width="56px" height="56px" borderRadius="xs"></wui-shimmer>`}async fetchImageSrc(){this.wallet&&(this.imageSrc=T.$.getWalletImage(this.wallet),this.imageSrc||(this.imageLoading=!0,this.imageSrc=await T.$.fetchWalletImage(this.wallet.image_id),this.imageLoading=!1))}};Ne.styles=Le,qe([(0,r.wk)()],Ne.prototype,"visible",void 0),qe([(0,r.wk)()],Ne.prototype,"imageSrc",void 0),qe([(0,r.wk)()],Ne.prototype,"imageLoading",void 0),qe([(0,r.MZ)()],Ne.prototype,"wallet",void 0),Ne=qe([(0,c.EM)("w3m-all-wallets-list-item")],Ne);const ze=o.AH`
1831
+ wui-grid {
1832
+ max-height: clamp(360px, 400px, 80vh);
1833
+ overflow: scroll;
1834
+ scrollbar-width: none;
1835
+ grid-auto-rows: min-content;
1836
+ grid-template-columns: repeat(auto-fill, 104px);
1837
+ }
1838
+
1839
+ @media (max-width: 350px) {
1840
+ wui-grid {
1841
+ grid-template-columns: repeat(2, 1fr);
1842
+ }
1843
+ }
1844
+
1845
+ wui-grid[data-scroll='false'] {
1846
+ overflow: hidden;
1847
+ }
1848
+
1849
+ wui-grid::-webkit-scrollbar {
1850
+ display: none;
1851
+ }
1852
+
1853
+ wui-loading-spinner {
1854
+ padding-top: var(--wui-spacing-l);
1855
+ padding-bottom: var(--wui-spacing-l);
1856
+ justify-content: center;
1857
+ grid-column: 1 / span 4;
1858
+ }
1859
+ `;var Be=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const De="local-paginator";let Ze=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.paginationObserver=void 0,this.loading=!a.N.state.wallets.length,this.wallets=a.N.state.wallets,this.recommended=a.N.state.recommended,this.featured=a.N.state.featured,this.filteredWallets=a.N.state.filteredWallets,this.unsubscribe.push(a.N.subscribeKey("wallets",(t=>this.wallets=t)),a.N.subscribeKey("recommended",(t=>this.recommended=t)),a.N.subscribeKey("featured",(t=>this.featured=t)),a.N.subscribeKey("filteredWallets",(t=>this.filteredWallets=t)))}firstUpdated(){this.initialFetch(),this.createPaginationObserver()}disconnectedCallback(){this.unsubscribe.forEach((t=>t())),this.paginationObserver?.disconnect()}render(){return o.qy`
1860
+ <wui-grid
1861
+ data-scroll=${!this.loading}
1862
+ .padding=${["0","s","s","s"]}
1863
+ columnGap="xxs"
1864
+ rowGap="l"
1865
+ justifyContent="space-between"
1866
+ >
1867
+ ${this.loading?this.shimmerTemplate(16):this.walletsTemplate()}
1868
+ ${this.paginationLoaderTemplate()}
1869
+ </wui-grid>
1870
+ `}async initialFetch(){this.loading=!0;const t=this.shadowRoot?.querySelector("wui-grid");t&&(await a.N.fetchWalletsByPage({page:1}),await t.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.loading=!1,t.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}shimmerTemplate(t,e){return[...Array(t)].map((()=>o.qy`
1871
+ <wui-card-select-loader type="wallet" id=${(0,u.J)(e)}></wui-card-select-loader>
1872
+ `))}getWallets(){const t=[...this.featured,...this.recommended];this.filteredWallets?.length>0?t.push(...this.filteredWallets):t.push(...this.wallets);const e=n.w.uniqueBy(t,"id"),i=H.A.markWalletsAsInstalled(e);return H.A.markWalletsWithDisplayIndex(i)}walletsTemplate(){return this.getWallets().map((t=>o.qy`
1873
+ <w3m-all-wallets-list-item
1874
+ @click=${()=>this.onConnectWallet(t)}
1875
+ .wallet=${t}
1876
+ ></w3m-all-wallets-list-item>
1877
+ `))}paginationLoaderTemplate(){const{wallets:t,recommended:e,featured:i,count:o}=a.N.state,r=window.innerWidth<352?3:4,n=t.length+e.length;let s=Math.ceil(n/r)*r-n+r;return s-=t.length?i.length%r:0,0===o&&i.length>0?null:0===o||[...i,...t,...e].length<o?this.shimmerTemplate(s,De):null}createPaginationObserver(){const t=this.shadowRoot?.querySelector(`#${De}`);t&&(this.paginationObserver=new IntersectionObserver((([t])=>{if(t?.isIntersecting&&!this.loading){const{page:t,count:e,wallets:i}=a.N.state;i.length<e&&a.N.fetchWalletsByPage({page:t+1})}})),this.paginationObserver.observe(t))}onConnectWallet(t){h.a.selectWalletConnector(t)}};Ze.styles=ze,Be([(0,r.wk)()],Ze.prototype,"loading",void 0),Be([(0,r.wk)()],Ze.prototype,"wallets",void 0),Be([(0,r.wk)()],Ze.prototype,"recommended",void 0),Be([(0,r.wk)()],Ze.prototype,"featured",void 0),Be([(0,r.wk)()],Ze.prototype,"filteredWallets",void 0),Ze=Be([(0,c.EM)("w3m-all-wallets-list")],Ze);const Ue=o.AH`
1878
+ wui-grid,
1879
+ wui-loading-spinner,
1880
+ wui-flex {
1881
+ height: 360px;
1882
+ }
1883
+
1884
+ wui-grid {
1885
+ overflow: scroll;
1886
+ scrollbar-width: none;
1887
+ grid-auto-rows: min-content;
1888
+ grid-template-columns: repeat(auto-fill, 104px);
1889
+ }
1890
+
1891
+ wui-grid[data-scroll='false'] {
1892
+ overflow: hidden;
1893
+ }
1894
+
1895
+ wui-grid::-webkit-scrollbar {
1896
+ display: none;
1897
+ }
1898
+
1899
+ wui-loading-spinner {
1900
+ justify-content: center;
1901
+ align-items: center;
1902
+ }
1903
+
1904
+ @media (max-width: 350px) {
1905
+ wui-grid {
1906
+ grid-template-columns: repeat(2, 1fr);
1907
+ }
1908
+ }
1909
+ `;var _e=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let He=class extends o.WF{constructor(){super(...arguments),this.prevQuery="",this.prevBadge=void 0,this.loading=!0,this.query=""}render(){return this.onSearch(),this.loading?o.qy`<wui-loading-spinner color="accent-100"></wui-loading-spinner>`:this.walletsTemplate()}async onSearch(){this.query.trim()===this.prevQuery.trim()&&this.badge===this.prevBadge||(this.prevQuery=this.query,this.prevBadge=this.badge,this.loading=!0,await a.N.searchWallet({search:this.query,badge:this.badge}),this.loading=!1)}walletsTemplate(){const{search:t}=a.N.state,e=H.A.markWalletsAsInstalled(t);return t.length?o.qy`
1910
+ <wui-grid
1911
+ data-testid="wallet-list"
1912
+ .padding=${["0","s","s","s"]}
1913
+ rowGap="l"
1914
+ columnGap="xs"
1915
+ justifyContent="space-between"
1916
+ >
1917
+ ${e.map((t=>o.qy`
1918
+ <w3m-all-wallets-list-item
1919
+ @click=${()=>this.onConnectWallet(t)}
1920
+ .wallet=${t}
1921
+ data-testid="wallet-search-item-${t.id}"
1922
+ ></w3m-all-wallets-list-item>
1923
+ `))}
1924
+ </wui-grid>
1925
+ `:o.qy`
1926
+ <wui-flex
1927
+ data-testid="no-wallet-found"
1928
+ justifyContent="center"
1929
+ alignItems="center"
1930
+ gap="s"
1931
+ flexDirection="column"
1932
+ >
1933
+ <wui-icon-box
1934
+ size="lg"
1935
+ iconColor="fg-200"
1936
+ backgroundColor="fg-300"
1937
+ icon="wallet"
1938
+ background="transparent"
1939
+ ></wui-icon-box>
1940
+ <wui-text data-testid="no-wallet-found-text" color="fg-200" variant="paragraph-500">
1941
+ No Wallet found
1942
+ </wui-text>
1943
+ </wui-flex>
1944
+ `}onConnectWallet(t){h.a.selectWalletConnector(t)}};He.styles=Ue,_e([(0,r.wk)()],He.prototype,"loading",void 0),_e([(0,r.MZ)()],He.prototype,"query",void 0),_e([(0,r.MZ)()],He.prototype,"badge",void 0),He=_e([(0,c.EM)("w3m-all-wallets-search")],He);var Fe=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let Je=class extends o.WF{constructor(){super(...arguments),this.search="",this.onDebouncedSearch=n.w.debounce((t=>{this.search=t}))}render(){const t=this.search.length>=2;return o.qy`
1945
+ <wui-flex .padding=${["0","s","s","s"]} gap="xs">
1946
+ <wui-search-bar @inputChange=${this.onInputChange.bind(this)}></wui-search-bar>
1947
+ <wui-certified-switch
1948
+ ?checked=${this.badge}
1949
+ @click=${this.onClick.bind(this)}
1950
+ data-testid="wui-certified-switch"
1951
+ ></wui-certified-switch>
1952
+ ${this.qrButtonTemplate()}
1953
+ </wui-flex>
1954
+ ${t||this.badge?o.qy`<w3m-all-wallets-search
1955
+ query=${this.search}
1956
+ badge=${(0,u.J)(this.badge)}
1957
+ ></w3m-all-wallets-search>`:o.qy`<w3m-all-wallets-list badge=${(0,u.J)(this.badge)}></w3m-all-wallets-list>`}
1958
+ `}onInputChange(t){this.onDebouncedSearch(t.detail)}onClick(){"certified"!==this.badge?(this.badge="certified",it.P.showSvg("Only WalletConnect certified",{icon:"walletConnectBrown",iconColor:"accent-100"})):this.badge=void 0}qrButtonTemplate(){return n.w.isMobile()?o.qy`
1959
+ <wui-icon-box
1960
+ size="lg"
1961
+ iconSize="xl"
1962
+ iconColor="accent-100"
1963
+ backgroundColor="accent-100"
1964
+ icon="qrCode"
1965
+ background="transparent"
1966
+ border
1967
+ borderColor="wui-accent-glass-010"
1968
+ @click=${this.onWalletConnectQr.bind(this)}
1969
+ ></wui-icon-box>
1970
+ `:null}onWalletConnectQr(){g.I.push("ConnectingWalletConnect")}};Fe([(0,r.wk)()],Je.prototype,"search",void 0),Fe([(0,r.wk)()],Je.prototype,"badge",void 0),Je=Fe([(0,c.EM)("w3m-all-wallets-view")],Je);const Ke=o.AH`
1971
+ button {
1972
+ column-gap: var(--wui-spacing-s);
1973
+ padding: 11px 18px 11px var(--wui-spacing-s);
1974
+ width: 100%;
1975
+ background-color: var(--wui-color-gray-glass-002);
1976
+ border-radius: var(--wui-border-radius-xs);
1977
+ color: var(--wui-color-fg-250);
1978
+ transition:
1979
+ color var(--wui-ease-out-power-1) var(--wui-duration-md),
1980
+ background-color var(--wui-ease-out-power-1) var(--wui-duration-md);
1981
+ will-change: color, background-color;
1982
+ }
1983
+
1984
+ button[data-iconvariant='square'],
1985
+ button[data-iconvariant='square-blue'] {
1986
+ padding: 6px 18px 6px 9px;
1987
+ }
1988
+
1989
+ button > wui-flex {
1990
+ flex: 1;
1991
+ }
1992
+
1993
+ button > wui-image {
1994
+ width: 32px;
1995
+ height: 32px;
1996
+ box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005);
1997
+ border-radius: var(--wui-border-radius-3xl);
1998
+ }
1999
+
2000
+ button > wui-icon {
2001
+ width: 36px;
2002
+ height: 36px;
2003
+ transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
2004
+ will-change: opacity;
2005
+ }
2006
+
2007
+ button > wui-icon-box[data-variant='blue'] {
2008
+ box-shadow: 0 0 0 2px var(--wui-color-accent-glass-005);
2009
+ }
2010
+
2011
+ button > wui-icon-box[data-variant='overlay'] {
2012
+ box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005);
2013
+ }
2014
+
2015
+ button > wui-icon-box[data-variant='square-blue'] {
2016
+ border-radius: var(--wui-border-radius-3xs);
2017
+ position: relative;
2018
+ border: none;
2019
+ width: 36px;
2020
+ height: 36px;
2021
+ }
2022
+
2023
+ button > wui-icon-box[data-variant='square-blue']::after {
2024
+ content: '';
2025
+ position: absolute;
2026
+ top: 0;
2027
+ bottom: 0;
2028
+ left: 0;
2029
+ right: 0;
2030
+ border-radius: inherit;
2031
+ border: 1px solid var(--wui-color-accent-glass-010);
2032
+ pointer-events: none;
2033
+ }
2034
+
2035
+ button > wui-icon:last-child {
2036
+ width: 14px;
2037
+ height: 14px;
2038
+ }
2039
+
2040
+ button:disabled {
2041
+ color: var(--wui-color-gray-glass-020);
2042
+ }
2043
+
2044
+ button[data-loading='true'] > wui-icon {
2045
+ opacity: 0;
2046
+ }
2047
+
2048
+ wui-loading-spinner {
2049
+ position: absolute;
2050
+ right: 18px;
2051
+ top: 50%;
2052
+ transform: translateY(-50%);
2053
+ }
2054
+ `;var Ve=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};let Ye=class extends o.WF{constructor(){super(...arguments),this.tabIdx=void 0,this.variant="icon",this.disabled=!1,this.imageSrc=void 0,this.alt=void 0,this.chevron=!1,this.loading=!1}render(){return o.qy`
2055
+ <button
2056
+ ?disabled=${!!this.loading||Boolean(this.disabled)}
2057
+ data-loading=${this.loading}
2058
+ data-iconvariant=${(0,u.J)(this.iconVariant)}
2059
+ tabindex=${(0,u.J)(this.tabIdx)}
2060
+ >
2061
+ ${this.loadingTemplate()} ${this.visualTemplate()}
2062
+ <wui-flex gap="3xs">
2063
+ <slot></slot>
2064
+ </wui-flex>
2065
+ ${this.chevronTemplate()}
2066
+ </button>
2067
+ `}visualTemplate(){if("image"===this.variant&&this.imageSrc)return o.qy`<wui-image src=${this.imageSrc} alt=${this.alt??"list item"}></wui-image>`;if("square"===this.iconVariant&&this.icon&&"icon"===this.variant)return o.qy`<wui-icon name=${this.icon}></wui-icon>`;if("icon"===this.variant&&this.icon&&this.iconVariant){const t=["blue","square-blue"].includes(this.iconVariant)?"accent-100":"fg-200",e="square-blue"===this.iconVariant?"mdl":"md",i=this.iconSize?this.iconSize:e;return o.qy`
2068
+ <wui-icon-box
2069
+ data-variant=${this.iconVariant}
2070
+ icon=${this.icon}
2071
+ iconSize=${i}
2072
+ background="transparent"
2073
+ iconColor=${t}
2074
+ backgroundColor=${t}
2075
+ size=${e}
2076
+ ></wui-icon-box>
2077
+ `}return null}loadingTemplate(){return this.loading?o.qy`<wui-loading-spinner
2078
+ data-testid="wui-list-item-loading-spinner"
2079
+ color="fg-300"
2080
+ ></wui-loading-spinner>`:o.qy``}chevronTemplate(){return this.chevron?o.qy`<wui-icon size="inherit" color="fg-200" name="chevronRight"></wui-icon>`:null}};Ye.styles=[f.W5,f.fD,Ke],Ve([(0,r.MZ)()],Ye.prototype,"icon",void 0),Ve([(0,r.MZ)()],Ye.prototype,"iconSize",void 0),Ve([(0,r.MZ)()],Ye.prototype,"tabIdx",void 0),Ve([(0,r.MZ)()],Ye.prototype,"variant",void 0),Ve([(0,r.MZ)()],Ye.prototype,"iconVariant",void 0),Ve([(0,r.MZ)({type:Boolean})],Ye.prototype,"disabled",void 0),Ve([(0,r.MZ)()],Ye.prototype,"imageSrc",void 0),Ve([(0,r.MZ)()],Ye.prototype,"alt",void 0),Ve([(0,r.MZ)({type:Boolean})],Ye.prototype,"chevron",void 0),Ve([(0,r.MZ)({type:Boolean})],Ye.prototype,"loading",void 0),Ye=Ve([(0,b.E)("wui-list-item")],Ye);let Ge=class extends o.WF{constructor(){super(...arguments),this.wallet=g.I.state.data?.wallet}render(){if(!this.wallet)throw new Error("w3m-downloads-view");return o.qy`
2081
+ <wui-flex gap="xs" flexDirection="column" .padding=${["s","s","l","s"]}>
2082
+ ${this.chromeTemplate()} ${this.iosTemplate()} ${this.androidTemplate()}
2083
+ ${this.homepageTemplate()}
2084
+ </wui-flex>
2085
+ `}chromeTemplate(){return this.wallet?.chrome_store?o.qy`<wui-list-item
2086
+ variant="icon"
2087
+ icon="chromeStore"
2088
+ iconVariant="square"
2089
+ @click=${this.onChromeStore.bind(this)}
2090
+ chevron
2091
+ >
2092
+ <wui-text variant="paragraph-500" color="fg-100">Chrome Extension</wui-text>
2093
+ </wui-list-item>`:null}iosTemplate(){return this.wallet?.app_store?o.qy`<wui-list-item
2094
+ variant="icon"
2095
+ icon="appStore"
2096
+ iconVariant="square"
2097
+ @click=${this.onAppStore.bind(this)}
2098
+ chevron
2099
+ >
2100
+ <wui-text variant="paragraph-500" color="fg-100">iOS App</wui-text>
2101
+ </wui-list-item>`:null}androidTemplate(){return this.wallet?.play_store?o.qy`<wui-list-item
2102
+ variant="icon"
2103
+ icon="playStore"
2104
+ iconVariant="square"
2105
+ @click=${this.onPlayStore.bind(this)}
2106
+ chevron
2107
+ >
2108
+ <wui-text variant="paragraph-500" color="fg-100">Android App</wui-text>
2109
+ </wui-list-item>`:null}homepageTemplate(){return this.wallet?.homepage?o.qy`
2110
+ <wui-list-item
2111
+ variant="icon"
2112
+ icon="browser"
2113
+ iconVariant="square-blue"
2114
+ @click=${this.onHomePage.bind(this)}
2115
+ chevron
2116
+ >
2117
+ <wui-text variant="paragraph-500" color="fg-100">Website</wui-text>
2118
+ </wui-list-item>
2119
+ `:null}onChromeStore(){this.wallet?.chrome_store&&n.w.openHref(this.wallet.chrome_store,"_blank")}onAppStore(){this.wallet?.app_store&&n.w.openHref(this.wallet.app_store,"_blank")}onPlayStore(){this.wallet?.play_store&&n.w.openHref(this.wallet.play_store,"_blank")}onHomePage(){this.wallet?.homepage&&n.w.openHref(this.wallet.homepage,"_blank")}};Ge=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a}([(0,c.EM)("w3m-downloads-view")],Ge)}}]);