@skip-go/widget-web-component 3.14.3 → 3.17.0

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 (194) hide show
  1. package/build/1125.index.js +3 -0
  2. package/build/1133.index.js +8 -0
  3. package/build/1136.index.js +9 -0
  4. package/build/1139.index.js +18 -0
  5. package/build/1171.index.js +1 -1
  6. package/build/1189.index.js +1 -1
  7. package/build/1203.index.js +1 -1
  8. package/build/1207.index.js +1 -1
  9. package/build/1211.index.js +8 -0
  10. package/build/1226.index.js +8 -0
  11. package/build/1349.index.js +1 -1
  12. package/build/1361.index.js +1 -1
  13. package/build/1363.index.js +1 -1
  14. package/build/1370.index.js +1 -1
  15. package/build/1415.index.js +8 -0
  16. package/build/1426.index.js +3 -0
  17. package/build/1470.index.js +1 -1
  18. package/build/1572.index.js +11 -0
  19. package/build/1716.index.js +1 -1
  20. package/build/1776.index.js +8 -0
  21. package/build/1852.index.js +1 -1
  22. package/build/1881.index.js +1 -1
  23. package/build/1894.index.js +1 -1
  24. package/build/1911.index.js +1 -1
  25. package/build/1951.index.js +18 -0
  26. package/build/1979.index.js +30 -0
  27. package/build/2034.index.js +1 -1
  28. package/build/2131.index.js +1 -1
  29. package/build/2166.index.js +1 -1
  30. package/build/2202.index.js +61 -0
  31. package/build/2242.index.js +1 -1
  32. package/build/2289.index.js +8 -0
  33. package/build/2301.index.js +1 -1
  34. package/build/2410.index.js +1 -1
  35. package/build/2422.index.js +1 -0
  36. package/build/245.index.js +1 -1
  37. package/build/2496.index.js +1 -1
  38. package/build/2557.index.js +17 -0
  39. package/build/2699.index.js +1 -1
  40. package/build/2715.index.js +8 -0
  41. package/build/283.index.js +8 -0
  42. package/build/2844.index.js +13 -0
  43. package/build/2851.index.js +1 -0
  44. package/build/2902.index.js +15 -0
  45. package/build/3070.index.js +1 -1
  46. package/build/3099.index.js +8 -0
  47. package/build/3105.index.js +8 -0
  48. package/build/3131.index.js +6 -0
  49. package/build/3148.index.js +1 -1
  50. package/build/3472.index.js +1 -1
  51. package/build/3550.index.js +8 -0
  52. package/build/3574.index.js +1 -1
  53. package/build/362.index.js +12 -0
  54. package/build/3646.index.js +32 -0
  55. package/build/3726.index.js +1 -1
  56. package/build/3828.index.js +14 -0
  57. package/build/385.index.js +1 -1
  58. package/build/3857.index.js +14 -0
  59. package/build/3874.index.js +17 -0
  60. package/build/4028.index.js +1 -1
  61. package/build/4150.index.js +620 -0
  62. package/build/4194.index.js +317 -0
  63. package/build/4203.index.js +1 -1
  64. package/build/4226.index.js +14 -0
  65. package/build/4249.index.js +8 -0
  66. package/build/4264.index.js +1 -0
  67. package/build/428.index.js +1 -0
  68. package/build/4289.index.js +1 -1
  69. package/build/4319.index.js +1 -1
  70. package/build/4379.index.js +2069 -0
  71. package/build/4446.index.js +2 -0
  72. package/build/4683.index.js +1 -1
  73. package/build/4693.index.js +2 -2
  74. package/build/4729.index.js +1 -1
  75. package/build/4733.index.js +12 -0
  76. package/build/4857.index.js +12 -0
  77. package/build/4969.index.js +1 -1
  78. package/build/5069.index.js +1 -1
  79. package/build/5090.index.js +8 -0
  80. package/build/5193.index.js +1 -1
  81. package/build/5206.index.js +14 -0
  82. package/build/5218.index.js +6 -0
  83. package/build/5330.index.js +8 -0
  84. package/build/537.index.js +1 -1
  85. package/build/5438.index.js +9 -0
  86. package/build/5526.index.js +1 -1
  87. package/build/5572.index.js +1 -1
  88. package/build/5619.index.js +1 -1
  89. package/build/5642.index.js +2 -0
  90. package/build/5647.index.js +1 -1
  91. package/build/5737.index.js +1 -1
  92. package/build/577.index.js +8 -0
  93. package/build/5880.index.js +1 -1
  94. package/build/590.index.js +1 -1
  95. package/build/5972.index.js +622 -0
  96. package/build/602.index.js +9 -0
  97. package/build/6024.index.js +1 -1
  98. package/build/6036.index.js +8 -0
  99. package/build/6075.index.js +1 -1
  100. package/build/6123.index.js +1 -1
  101. package/build/6127.index.js +1 -1
  102. package/build/6138.index.js +18 -0
  103. package/build/6148.index.js +1 -1
  104. package/build/6151.index.js +1 -1
  105. package/build/6175.index.js +4 -0
  106. package/build/631.index.js +18 -0
  107. package/build/6323.index.js +1 -1
  108. package/build/6442.index.js +1 -1
  109. package/build/6484.index.js +1 -1
  110. package/build/6543.index.js +1 -1
  111. package/build/6553.index.js +8 -0
  112. package/build/6558.index.js +1 -0
  113. package/build/6573.index.js +1 -1
  114. package/build/6611.index.js +12 -0
  115. package/build/6639.index.js +8 -0
  116. package/build/6654.index.js +1 -0
  117. package/build/6705.index.js +12 -0
  118. package/build/6715.index.js +12 -0
  119. package/build/674.index.js +317 -0
  120. package/build/674.index.js.LICENSE.txt +17 -0
  121. package/build/6753.index.js +1 -1
  122. package/build/6811.index.js +8 -0
  123. package/build/6813.index.js +4 -0
  124. package/build/6869.index.js +1 -1
  125. package/build/6969.index.js +12 -0
  126. package/build/7172.index.js +1 -1
  127. package/build/7176.index.js +16 -0
  128. package/build/7201.index.js +878 -0
  129. package/build/7272.index.js +6 -0
  130. package/build/7311.index.js +11 -0
  131. package/build/7409.index.js +1 -0
  132. package/build/7428.index.js +4 -0
  133. package/build/7540.index.js +8 -0
  134. package/build/7618.index.js +1 -1
  135. package/build/7762.index.js +1 -1
  136. package/build/7780.index.js +3 -0
  137. package/build/7981.index.js +1 -1
  138. package/build/8000.index.js +1 -1
  139. package/build/8029.index.js +8 -0
  140. package/build/8036.index.js +1 -1
  141. package/build/8147.index.js +16 -0
  142. package/build/8249.index.js +8 -0
  143. package/build/8318.index.js +1 -1
  144. package/build/8367.index.js +1 -1
  145. package/build/8373.index.js +2082 -0
  146. package/build/8373.index.js.LICENSE.txt +5 -0
  147. package/build/8467.index.js +1 -1
  148. package/build/8483.index.js +1 -1
  149. package/build/8631.index.js +8 -0
  150. package/build/8645.index.js +2 -0
  151. package/build/8645.index.js.LICENSE.txt +11 -0
  152. package/build/8714.index.js +8 -0
  153. package/build/8717.index.js +6 -0
  154. package/build/8904.index.js +1 -1
  155. package/build/896.index.js +1 -1
  156. package/build/8964.index.js +26 -0
  157. package/build/897.index.js +11 -0
  158. package/build/9081.index.js +8 -0
  159. package/build/9120.index.js +8 -0
  160. package/build/913.index.js +15 -0
  161. package/build/9192.index.js +1 -0
  162. package/build/9194.index.js +878 -4
  163. package/build/9309.index.js +15 -0
  164. package/build/9313.index.js +8 -0
  165. package/build/9372.index.js +1 -1
  166. package/build/9396.index.js +12 -0
  167. package/build/9476.index.js +1 -1
  168. package/build/9607.index.js +8 -0
  169. package/build/967.index.js +5 -0
  170. package/build/984.index.js +8 -0
  171. package/build/9850.index.js +14 -0
  172. package/build/9884.index.js +1 -1
  173. package/build/index.js +769 -1633
  174. package/build/index.js.LICENSE.txt +6 -16
  175. package/package.json +1 -1
  176. package/build/1179.index.js +0 -2
  177. package/build/1256.index.js +0 -317
  178. package/build/1934.index.js +0 -2
  179. package/build/1934.index.js.LICENSE.txt +0 -17
  180. package/build/4619.index.js +0 -622
  181. package/build/4833.index.js +0 -2
  182. package/build/5902.index.js +0 -2
  183. package/build/6319.index.js +0 -2069
  184. package/build/6700.index.js +0 -1
  185. package/build/7084.index.js +0 -2
  186. package/build/7544.index.js +0 -1
  187. package/build/7591.index.js +0 -1
  188. package/build/8780.index.js +0 -1
  189. /package/build/{1256.index.js.LICENSE.txt → 4194.index.js.LICENSE.txt} +0 -0
  190. /package/build/{6319.index.js.LICENSE.txt → 4379.index.js.LICENSE.txt} +0 -0
  191. /package/build/{4833.index.js.LICENSE.txt → 4446.index.js.LICENSE.txt} +0 -0
  192. /package/build/{1179.index.js.LICENSE.txt → 5642.index.js.LICENSE.txt} +0 -0
  193. /package/build/{5902.index.js.LICENSE.txt → 7201.index.js.LICENSE.txt} +0 -0
  194. /package/build/{7084.index.js.LICENSE.txt → 9194.index.js.LICENSE.txt} +0 -0
@@ -0,0 +1,620 @@
1
+ export const __webpack_esm_id__=4150;export const __webpack_esm_ids__=[4150];export const __webpack_esm_modules__={4900:(e,t,i)=>{i.d(t,{A:()=>o});const o=i(52788).AH`
2
+ :host {
3
+ --prev-height: 0px;
4
+ --new-height: 0px;
5
+ display: block;
6
+ }
7
+
8
+ div.w3m-router-container {
9
+ transform: translateY(0);
10
+ opacity: 1;
11
+ }
12
+
13
+ div.w3m-router-container[view-direction='prev'] {
14
+ animation:
15
+ slide-left-out 150ms forwards ease,
16
+ slide-left-in 150ms forwards ease;
17
+ animation-delay: 0ms, 200ms;
18
+ }
19
+
20
+ div.w3m-router-container[view-direction='next'] {
21
+ animation:
22
+ slide-right-out 150ms forwards ease,
23
+ slide-right-in 150ms forwards ease;
24
+ animation-delay: 0ms, 200ms;
25
+ }
26
+
27
+ @keyframes slide-left-out {
28
+ from {
29
+ transform: translateX(0px);
30
+ opacity: 1;
31
+ }
32
+ to {
33
+ transform: translateX(10px);
34
+ opacity: 0;
35
+ }
36
+ }
37
+
38
+ @keyframes slide-left-in {
39
+ from {
40
+ transform: translateX(-10px);
41
+ opacity: 0;
42
+ }
43
+ to {
44
+ transform: translateX(0);
45
+ opacity: 1;
46
+ }
47
+ }
48
+
49
+ @keyframes slide-right-out {
50
+ from {
51
+ transform: translateX(0px);
52
+ opacity: 1;
53
+ }
54
+ to {
55
+ transform: translateX(-10px);
56
+ opacity: 0;
57
+ }
58
+ }
59
+
60
+ @keyframes slide-right-in {
61
+ from {
62
+ transform: translateX(10px);
63
+ opacity: 0;
64
+ }
65
+ to {
66
+ transform: translateX(0);
67
+ opacity: 1;
68
+ }
69
+ }
70
+ `},5308:(e,t,i)=>{i(91117)},5698:(e,t,i)=>{i(86627)},18093:(e,t,i)=>{var o=i(52788),a=i(86280),r=(i(3334),i(67232)),s=i(13679),n=i(75791),c=function(e,t,i,o){var a,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(s=(r<3?a(s):r>3?a(t,i,s):a(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let l=class extends o.WF{constructor(){super(...arguments),this.size="md",this.disabled=!1,this.icon="copy",this.iconColor="inherit"}render(){const e="lg"===this.size?"--wui-border-radius-xs":"--wui-border-radius-xxs",t="lg"===this.size?"--wui-spacing-1xs":"--wui-spacing-2xs";return this.style.cssText=`\n --local-border-radius: var(${e});\n --local-padding: var(${t});\n`,o.qy`
71
+ <button ?disabled=${this.disabled}>
72
+ <wui-icon color=${this.iconColor} size=${this.size} name=${this.icon}></wui-icon>
73
+ </button>
74
+ `}};l.styles=[r.W5,r.fD,r.ck,n.A],c([(0,a.MZ)()],l.prototype,"size",void 0),c([(0,a.MZ)({type:Boolean})],l.prototype,"disabled",void 0),c([(0,a.MZ)()],l.prototype,"icon",void 0),c([(0,a.MZ)()],l.prototype,"iconColor",void 0),l=c([(0,s.E)("wui-icon-link")],l)},18736:(e,t,i)=>{i.d(t,{A:()=>o});const o=i(52788).AH`
75
+ :host {
76
+ display: flex;
77
+ column-gap: var(--wui-spacing-s);
78
+ align-items: center;
79
+ padding: var(--wui-spacing-xs) var(--wui-spacing-m) var(--wui-spacing-xs) var(--wui-spacing-xs);
80
+ border-radius: var(--wui-border-radius-s);
81
+ border: 1px solid var(--wui-color-gray-glass-005);
82
+ box-sizing: border-box;
83
+ background-color: var(--wui-color-bg-175);
84
+ box-shadow:
85
+ 0px 14px 64px -4px rgba(0, 0, 0, 0.15),
86
+ 0px 8px 22px -6px rgba(0, 0, 0, 0.15);
87
+
88
+ max-width: 300px;
89
+ }
90
+
91
+ :host wui-loading-spinner {
92
+ margin-left: var(--wui-spacing-3xs);
93
+ }
94
+ `},25207:(e,t,i)=>{i.d(t,{A:()=>o});const o=i(52788).AH`
95
+ :host {
96
+ display: block;
97
+ border-radius: clamp(0px, var(--wui-border-radius-l), 44px);
98
+ box-shadow: 0 0 0 1px var(--wui-color-gray-glass-005);
99
+ background-color: var(--wui-color-modal-bg);
100
+ overflow: hidden;
101
+ }
102
+
103
+ :host([data-embedded='true']) {
104
+ box-shadow:
105
+ 0 0 0 1px var(--wui-color-gray-glass-005),
106
+ 0px 4px 12px 4px var(--w3m-card-embedded-shadow-color);
107
+ }
108
+ `},28305:(e,t,i)=>{var o=i(52788),a=i(86280),r=i(31100),s=i(69658),n=(i(83733),i(37531)),c=function(e,t,i,o){var a,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(s=(r<3?a(s):r>3?a(t,i,s):a(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};const l={info:{backgroundColor:"fg-350",iconColor:"fg-325",icon:"info"},success:{backgroundColor:"success-glass-reown-020",iconColor:"success-125",icon:"checkmark"},warning:{backgroundColor:"warning-glass-reown-020",iconColor:"warning-100",icon:"warningCircle"},error:{backgroundColor:"error-glass-reown-020",iconColor:"error-125",icon:"exclamationTriangle"}};let w=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.open=r.h.state.open,this.onOpen(!0),this.unsubscribe.push(r.h.subscribeKey("open",e=>{this.open=e,this.onOpen(!1)}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){const{message:e,variant:t}=r.h.state,i=l[t];return o.qy`
109
+ <wui-alertbar
110
+ message=${e}
111
+ backgroundColor=${i?.backgroundColor}
112
+ iconColor=${i?.iconColor}
113
+ icon=${i?.icon}
114
+ ></wui-alertbar>
115
+ `}onOpen(e){this.open?(this.animate([{opacity:0,transform:"scale(0.85)"},{opacity:1,transform:"scale(1)"}],{duration:150,fill:"forwards",easing:"ease"}),this.style.cssText="pointer-events: auto"):e||(this.animate([{opacity:1,transform:"scale(1)"},{opacity:0,transform:"scale(0.85)"}],{duration:150,fill:"forwards",easing:"ease"}),this.style.cssText="pointer-events: none")}};w.styles=n.A,c([(0,a.wk)()],w.prototype,"open",void 0),w=c([(0,s.EM)("w3m-alertbar")],w)},36961:(e,t,i)=>{i.d(t,{TD:()=>S,tJ:()=>C,uh:()=>x});var o=i(52788),a=i(86280),r=i(73764),s=i(72269),n=i(88759),c=i(72397),l=i(98299),w=i(83077),d=i(92492),p=i(93474),u=i(49951),m=i(1420),h=i(22143),v=i(36507),g=i(42603),y=i(69658),f=(i(62176),i(85017),i(28305),i(53459),i(98649),i(74253),i(79488),i(61378)),b=function(e,t,i,o){var a,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(s=(r<3?a(s):r>3?a(t,i,s):a(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};const k="scroll-lock";class x extends o.WF{constructor(){super(),this.unsubscribe=[],this.abortController=void 0,this.hasPrefetched=!1,this.enableEmbedded=m.H.state.enableEmbedded,this.open=n.W.state.open,this.caipAddress=l.W.state.activeCaipAddress,this.caipNetwork=l.W.state.activeCaipNetwork,this.shake=n.W.state.shake,this.filterByNamespace=w.a.state.filterByNamespace,this.initializeTheming(),p.N.prefetchAnalyticsConfig(),this.unsubscribe.push(n.W.subscribeKey("open",e=>e?this.onOpen():this.onClose()),n.W.subscribeKey("shake",e=>this.shake=e),l.W.subscribeKey("activeCaipNetwork",e=>this.onNewNetwork(e)),l.W.subscribeKey("activeCaipAddress",e=>this.onNewAddress(e)),m.H.subscribeKey("enableEmbedded",e=>this.enableEmbedded=e),w.a.subscribeKey("filterByNamespace",e=>{this.filterByNamespace===e||l.W.getAccountData(e)?.caipAddress||(p.N.fetchRecommendedWallets(),this.filterByNamespace=e)}))}firstUpdated(){if(this.caipAddress){if(this.enableEmbedded)return n.W.close(),void this.prefetch();this.onNewAddress(this.caipAddress)}this.open&&this.onOpen(),this.enableEmbedded&&this.prefetch()}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),this.onRemoveKeyboardListener()}render(){return this.style.cssText=`\n --local-border-bottom-mobile-radius: ${this.enableEmbedded?"clamp(0px, var(--wui-border-radius-l), 44px)":"0px"};\n `,this.enableEmbedded?o.qy`${this.contentTemplate()}
116
+ <w3m-tooltip></w3m-tooltip> `:this.open?o.qy`
117
+ <wui-flex @click=${this.onOverlayClick.bind(this)} data-testid="w3m-modal-overlay">
118
+ ${this.contentTemplate()}
119
+ </wui-flex>
120
+ <w3m-tooltip></w3m-tooltip>
121
+ `:null}contentTemplate(){return o.qy` <wui-card
122
+ shake="${this.shake}"
123
+ data-embedded="${(0,r.J)(this.enableEmbedded)}"
124
+ role="alertdialog"
125
+ aria-modal="true"
126
+ tabindex="0"
127
+ data-testid="w3m-modal-card"
128
+ >
129
+ <w3m-header></w3m-header>
130
+ <w3m-router></w3m-router>
131
+ <w3m-snackbar></w3m-snackbar>
132
+ <w3m-alertbar></w3m-alertbar>
133
+ </wui-card>`}async onOverlayClick(e){e.target===e.currentTarget&&await this.handleClose()}async handleClose(){await g.m.safeClose()}initializeTheming(){const{themeVariables:e,themeMode:t}=u.W.state,i=y.Zv.getColorTheme(t);(0,y.RF)(e,i)}onClose(){this.open=!1,this.classList.remove("open"),this.onScrollUnlock(),d.P.hide(),this.onRemoveKeyboardListener()}onOpen(){this.open=!0,this.classList.add("open"),this.onScrollLock(),this.onAddKeyboardListener()}onScrollLock(){const e=document.createElement("style");e.dataset.w3m=k,e.textContent="\n body {\n touch-action: none;\n overflow: hidden;\n overscroll-behavior: contain;\n }\n w3m-modal {\n pointer-events: auto;\n }\n ",document.head.appendChild(e)}onScrollUnlock(){const e=document.head.querySelector(`style[data-w3m="${k}"]`);e&&e.remove()}onAddKeyboardListener(){this.abortController=new AbortController;const e=this.shadowRoot?.querySelector("wui-card");e?.focus(),window.addEventListener("keydown",t=>{if("Escape"===t.key)this.handleClose();else if("Tab"===t.key){const{tagName:i}=t.target;!i||i.includes("W3M-")||i.includes("WUI-")||e?.focus()}},this.abortController)}onRemoveKeyboardListener(){this.abortController?.abort(),this.abortController=void 0}async onNewAddress(e){const t=l.W.state.isSwitchingNamespace,i=h.w.getPlainAddress(e);i||t?t&&i&&c.I.goBack():n.W.close(),await v.U.initializeIfEnabled(),this.caipAddress=e,l.W.setIsSwitchingNamespace(!1)}onNewNetwork(e){const t=this.caipNetwork,i=t?.caipNetworkId?.toString(),o=t?.chainNamespace,a=e?.caipNetworkId?.toString(),r=e?.chainNamespace,w=i!==a,d=w&&!(o!==r),p=t?.name===s.o.UNSUPPORTED_NETWORK_NAME,u="ConnectingExternal"===c.I.state.view,m=!l.W.getAccountData(e?.chainNamespace)?.caipAddress,h="UnsupportedChain"===c.I.state.view;let v=!1;n.W.state.open&&!u&&(m?w&&(v=!0):(h||d&&!p)&&(v=!0)),v&&"SIWXSignMessage"!==c.I.state.view&&c.I.goBack(),this.caipNetwork=e}prefetch(){this.hasPrefetched||(p.N.prefetch(),p.N.fetchWalletsByPage({page:1}),this.hasPrefetched=!0)}}x.styles=f.A,b([(0,a.MZ)({type:Boolean})],x.prototype,"enableEmbedded",void 0),b([(0,a.wk)()],x.prototype,"open",void 0),b([(0,a.wk)()],x.prototype,"caipAddress",void 0),b([(0,a.wk)()],x.prototype,"caipNetwork",void 0),b([(0,a.wk)()],x.prototype,"shake",void 0),b([(0,a.wk)()],x.prototype,"filterByNamespace",void 0);let C=class extends x{};C=b([(0,y.EM)("w3m-modal")],C);let S=class extends x{};S=b([(0,y.EM)("appkit-modal")],S)},37531:(e,t,i)=>{i.d(t,{A:()=>o});const o=i(52788).AH`
134
+ :host {
135
+ display: block;
136
+ position: absolute;
137
+ top: var(--wui-spacing-s);
138
+ left: var(--wui-spacing-l);
139
+ right: var(--wui-spacing-l);
140
+ opacity: 0;
141
+ pointer-events: none;
142
+ }
143
+ `},40148:(e,t,i)=>{var o=i(52788),a=i(86280),r=(i(3334),i(42421),i(43748),i(67232)),s=i(13679),n=(i(71050),i(18736)),c=function(e,t,i,o){var a,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(s=(r<3?a(s):r>3?a(t,i,s):a(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let l=class extends o.WF{constructor(){super(...arguments),this.backgroundColor="accent-100",this.iconColor="accent-100",this.icon="checkmark",this.message="",this.loading=!1,this.iconType="default"}render(){return o.qy`
144
+ ${this.templateIcon()}
145
+ <wui-text variant="paragraph-500" color="fg-100" data-testid="wui-snackbar-message"
146
+ >${this.message}</wui-text
147
+ >
148
+ `}templateIcon(){return this.loading?o.qy`<wui-loading-spinner size="md" color="accent-100"></wui-loading-spinner>`:"default"===this.iconType?o.qy`<wui-icon size="xl" color=${this.iconColor} name=${this.icon}></wui-icon>`:o.qy`<wui-icon-box
149
+ size="sm"
150
+ iconSize="xs"
151
+ iconColor=${this.iconColor}
152
+ backgroundColor=${this.backgroundColor}
153
+ icon=${this.icon}
154
+ background="opaque"
155
+ ></wui-icon-box>`}};l.styles=[r.W5,n.A],c([(0,a.MZ)()],l.prototype,"backgroundColor",void 0),c([(0,a.MZ)()],l.prototype,"iconColor",void 0),c([(0,a.MZ)()],l.prototype,"icon",void 0),c([(0,a.MZ)()],l.prototype,"message",void 0),c([(0,a.MZ)()],l.prototype,"loading",void 0),c([(0,a.MZ)()],l.prototype,"iconType",void 0),l=c([(0,s.E)("wui-snackbar")],l)},42603:(e,t,i)=>{i.d(t,{m:()=>s});var o=i(88759),a=i(72397),r=i(36507);const s={isUnsupportedChainView:()=>"UnsupportedChain"===a.I.state.view||"SwitchNetwork"===a.I.state.view&&a.I.state.history.includes("UnsupportedChain"),async safeClose(){this.isUnsupportedChainView()||await r.U.isSIWXCloseDisabled()?o.W.shake():o.W.close()}}},43125:(e,t,i)=>{var o=i(52788),a=i(67232),r=i(13679),s=i(25207);let n=class extends o.WF{render(){return o.qy`<slot></slot>`}};n.styles=[a.W5,s.A],n=function(e,t,i,o){var a,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(s=(r<3?a(s):r>3?a(t,i,s):a(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([(0,r.E)("wui-card")],n)},53021:(e,t,i)=>{i.d(t,{A:()=>o});const o=i(52788).AH`
156
+ :host {
157
+ height: 64px;
158
+ }
159
+
160
+ wui-text {
161
+ text-transform: capitalize;
162
+ }
163
+
164
+ wui-flex.w3m-header-title {
165
+ transform: translateY(0);
166
+ opacity: 1;
167
+ }
168
+
169
+ wui-flex.w3m-header-title[view-direction='prev'] {
170
+ animation:
171
+ slide-down-out 120ms forwards var(--wui-ease-out-power-2),
172
+ slide-down-in 120ms forwards var(--wui-ease-out-power-2);
173
+ animation-delay: 0ms, 200ms;
174
+ }
175
+
176
+ wui-flex.w3m-header-title[view-direction='next'] {
177
+ animation:
178
+ slide-up-out 120ms forwards var(--wui-ease-out-power-2),
179
+ slide-up-in 120ms forwards var(--wui-ease-out-power-2);
180
+ animation-delay: 0ms, 200ms;
181
+ }
182
+
183
+ wui-icon-link[data-hidden='true'] {
184
+ opacity: 0 !important;
185
+ pointer-events: none;
186
+ }
187
+
188
+ @keyframes slide-up-out {
189
+ from {
190
+ transform: translateY(0px);
191
+ opacity: 1;
192
+ }
193
+ to {
194
+ transform: translateY(3px);
195
+ opacity: 0;
196
+ }
197
+ }
198
+
199
+ @keyframes slide-up-in {
200
+ from {
201
+ transform: translateY(-3px);
202
+ opacity: 0;
203
+ }
204
+ to {
205
+ transform: translateY(0);
206
+ opacity: 1;
207
+ }
208
+ }
209
+
210
+ @keyframes slide-down-out {
211
+ from {
212
+ transform: translateY(0px);
213
+ opacity: 1;
214
+ }
215
+ to {
216
+ transform: translateY(-3px);
217
+ opacity: 0;
218
+ }
219
+ }
220
+
221
+ @keyframes slide-down-in {
222
+ from {
223
+ transform: translateY(3px);
224
+ opacity: 0;
225
+ }
226
+ to {
227
+ transform: translateY(0);
228
+ opacity: 1;
229
+ }
230
+ }
231
+ `},53459:(e,t,i)=>{var o=i(52788),a=i(86280),r=i(73764),s=i(72397),n=i(23981),c=i(98299),l=i(83077),w=i(6262),d=i(1420),p=i(47981),u=i(86454),m=i(42603),h=i(69658),v=(i(85017),i(84708),i(5698),i(5308),i(3389),i(42177)),g=i(53021),y=function(e,t,i,o){var a,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(s=(r<3?a(s):r>3?a(t,i,s):a(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};const f=["SmartSessionList"];function b(){const e=s.I.state.data?.connector?.name,t=s.I.state.data?.wallet?.name,i=s.I.state.data?.network?.name,o=t??e,a=l.a.getConnectors();return{Connect:`Connect ${1===a.length&&"w3m-email"===a[0]?.id?"Email":""} Wallet`,Create:"Create Wallet",ChooseAccountName:void 0,Account:void 0,AccountSettings:void 0,AllWallets:"All Wallets",ApproveTransaction:"Approve Transaction",BuyInProgress:"Buy",ConnectingExternal:o??"Connect Wallet",ConnectingWalletConnect:o??"WalletConnect",ConnectingWalletConnectBasic:"WalletConnect",ConnectingSiwe:"Sign In",Convert:"Convert",ConvertSelectToken:"Select token",ConvertPreview:"Preview convert",Downloads:o?`Get ${o}`:"Downloads",EmailLogin:"Email Login",EmailVerifyOtp:"Confirm Email",EmailVerifyDevice:"Register Device",GetWallet:"Get a wallet",Networks:"Choose Network",OnRampProviders:"Choose Provider",OnRampActivity:"Activity",OnRampTokenSelect:"Select Token",OnRampFiatSelect:"Select Currency",Pay:"How you pay",Profile:void 0,SwitchNetwork:i??"Switch Network",SwitchAddress:"Switch Address",Transactions:"Activity",UnsupportedChain:"Switch Network",UpgradeEmailWallet:"Upgrade your Wallet",UpdateEmailWallet:"Edit Email",UpdateEmailPrimaryOtp:"Confirm Current Email",UpdateEmailSecondaryOtp:"Confirm New Email",WhatIsABuy:"What is Buy?",RegisterAccountName:"Choose name",RegisterAccountNameSuccess:"",WalletReceive:"Receive",WalletCompatibleNetworks:"Compatible Networks",Swap:"Swap",SwapSelectToken:"Select token",SwapPreview:"Preview swap",WalletSend:"Send",WalletSendPreview:"Review send",WalletSendSelectToken:"Select Token",WhatIsANetwork:"What is a network?",WhatIsAWallet:"What is a wallet?",ConnectWallets:"Connect wallet",ConnectSocials:"All socials",ConnectingSocial:n.U.state.socialProvider?n.U.state.socialProvider:"Connect Social",ConnectingMultiChain:"Select chain",ConnectingFarcaster:"Farcaster",SwitchActiveChain:"Switch chain",SmartSessionCreated:void 0,SmartSessionList:"Smart Sessions",SIWXSignMessage:"Sign In",PayLoading:"Payment in progress"}}let k=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.heading=b()[s.I.state.view],this.network=c.W.state.activeCaipNetwork,this.networkImage=u.$.getNetworkImage(this.network),this.showBack=!1,this.prevHistoryLength=1,this.view=s.I.state.view,this.viewDirection="",this.headerText=b()[s.I.state.view],this.unsubscribe.push(w.j.subscribeNetworkImages(()=>{this.networkImage=u.$.getNetworkImage(this.network)}),s.I.subscribeKey("view",e=>{setTimeout(()=>{this.view=e,this.headerText=b()[e]},v.o.ANIMATION_DURATIONS.HeaderText),this.onViewChange(),this.onHistoryChange()}),c.W.subscribeKey("activeCaipNetwork",e=>{this.network=e,this.networkImage=u.$.getNetworkImage(this.network)}))}disconnectCallback(){this.unsubscribe.forEach(e=>e())}render(){return o.qy`
232
+ <wui-flex .padding=${this.getPadding()} justifyContent="space-between" alignItems="center">
233
+ ${this.leftHeaderTemplate()} ${this.titleTemplate()} ${this.rightHeaderTemplate()}
234
+ </wui-flex>
235
+ `}onWalletHelp(){p.E.sendEvent({type:"track",event:"CLICK_WALLET_HELP"}),s.I.push("WhatIsAWallet")}async onClose(){await m.m.safeClose()}rightHeaderTemplate(){const e=d.H?.state?.features?.smartSessions;return"Account"===s.I.state.view&&e?o.qy`<wui-flex>
236
+ <wui-icon-link
237
+ icon="clock"
238
+ @click=${()=>s.I.push("SmartSessionList")}
239
+ data-testid="w3m-header-smart-sessions"
240
+ ></wui-icon-link>
241
+ ${this.closeButtonTemplate()}
242
+ </wui-flex> `:this.closeButtonTemplate()}closeButtonTemplate(){return o.qy`
243
+ <wui-icon-link
244
+ icon="close"
245
+ @click=${this.onClose.bind(this)}
246
+ data-testid="w3m-header-close"
247
+ ></wui-icon-link>
248
+ `}titleTemplate(){const e=f.includes(this.view);return o.qy`
249
+ <wui-flex
250
+ view-direction="${this.viewDirection}"
251
+ class="w3m-header-title"
252
+ alignItems="center"
253
+ gap="xs"
254
+ >
255
+ <wui-text variant="paragraph-700" color="fg-100" data-testid="w3m-header-text"
256
+ >${this.headerText}</wui-text
257
+ >
258
+ ${e?o.qy`<wui-tag variant="main">Beta</wui-tag>`:null}
259
+ </wui-flex>
260
+ `}leftHeaderTemplate(){const{view:e}=s.I.state,t="Connect"===e,i=d.H.state.enableEmbedded,a="ApproveTransaction"===e,n="ConnectingSiwe"===e,c="Account"===e,l=d.H.state.enableNetworkSwitch,w=a||n||t&&i;return c&&l?o.qy`<wui-select
261
+ id="dynamic"
262
+ data-testid="w3m-account-select-network"
263
+ active-network=${(0,r.J)(this.network?.name)}
264
+ @click=${this.onNetworks.bind(this)}
265
+ imageSrc=${(0,r.J)(this.networkImage)}
266
+ ></wui-select>`:this.showBack&&!w?o.qy`<wui-icon-link
267
+ data-testid="header-back"
268
+ id="dynamic"
269
+ icon="chevronLeft"
270
+ @click=${this.onGoBack.bind(this)}
271
+ ></wui-icon-link>`:o.qy`<wui-icon-link
272
+ data-hidden=${!t}
273
+ id="dynamic"
274
+ icon="helpCircle"
275
+ @click=${this.onWalletHelp.bind(this)}
276
+ ></wui-icon-link>`}onNetworks(){this.isAllowedNetworkSwitch()&&(p.E.sendEvent({type:"track",event:"CLICK_NETWORKS"}),s.I.push("Networks"))}isAllowedNetworkSwitch(){const e=c.W.getAllRequestedCaipNetworks(),t=!!e&&e.length>1,i=e?.find(({id:e})=>e===this.network?.id);return t||!i}getPadding(){return this.heading?["l","2l","l","2l"]:["0","2l","0","2l"]}onViewChange(){const{history:e}=s.I.state;let t=v.o.VIEW_DIRECTION.Next;e.length<this.prevHistoryLength&&(t=v.o.VIEW_DIRECTION.Prev),this.prevHistoryLength=e.length,this.viewDirection=t}async onHistoryChange(){const{history:e}=s.I.state,t=this.shadowRoot?.querySelector("#dynamic");e.length>1&&!this.showBack&&t?(await t.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.showBack=!0,t.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"})):e.length<=1&&this.showBack&&t&&(await t.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.showBack=!1,t.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}onGoBack(){s.I.goBack()}};k.styles=g.A,y([(0,a.wk)()],k.prototype,"heading",void 0),y([(0,a.wk)()],k.prototype,"network",void 0),y([(0,a.wk)()],k.prototype,"networkImage",void 0),y([(0,a.wk)()],k.prototype,"showBack",void 0),y([(0,a.wk)()],k.prototype,"prevHistoryLength",void 0),y([(0,a.wk)()],k.prototype,"view",void 0),y([(0,a.wk)()],k.prototype,"viewDirection",void 0),y([(0,a.wk)()],k.prototype,"headerText",void 0),k=y([(0,h.EM)("w3m-header")],k)},54150:(e,t,i)=>{i.r(t),i.d(t,{AppKitModal:()=>o.TD,W3mModal:()=>o.tJ,W3mModalBase:()=>o.uh});var o=i(36961)},59181:(e,t,i)=>{i.d(t,{A:()=>o});const o=i(52788).AH`
277
+ button {
278
+ display: block;
279
+ display: flex;
280
+ align-items: center;
281
+ padding: var(--wui-spacing-xxs);
282
+ gap: var(--wui-spacing-xxs);
283
+ transition: all var(--wui-ease-out-power-1) var(--wui-duration-md);
284
+ border-radius: var(--wui-border-radius-xxs);
285
+ }
286
+
287
+ wui-image {
288
+ border-radius: 100%;
289
+ width: var(--wui-spacing-xl);
290
+ height: var(--wui-spacing-xl);
291
+ }
292
+
293
+ wui-icon-box {
294
+ width: var(--wui-spacing-xl);
295
+ height: var(--wui-spacing-xl);
296
+ }
297
+
298
+ button:hover {
299
+ background-color: var(--wui-color-gray-glass-002);
300
+ }
301
+
302
+ button:active {
303
+ background-color: var(--wui-color-gray-glass-005);
304
+ }
305
+ `},61378:(e,t,i)=>{i.d(t,{A:()=>o});const o=i(52788).AH`
306
+ :host {
307
+ z-index: var(--w3m-z-index);
308
+ display: block;
309
+ backface-visibility: hidden;
310
+ will-change: opacity;
311
+ position: fixed;
312
+ top: 0;
313
+ left: 0;
314
+ right: 0;
315
+ bottom: 0;
316
+ pointer-events: none;
317
+ opacity: 0;
318
+ background-color: var(--wui-cover);
319
+ transition: opacity 0.2s var(--wui-ease-out-power-2);
320
+ will-change: opacity;
321
+ }
322
+
323
+ :host(.open) {
324
+ opacity: 1;
325
+ }
326
+
327
+ :host(.appkit-modal) {
328
+ position: relative;
329
+ pointer-events: unset;
330
+ background: none;
331
+ width: 100%;
332
+ opacity: 1;
333
+ }
334
+
335
+ wui-card {
336
+ max-width: var(--w3m-modal-width);
337
+ width: 100%;
338
+ position: relative;
339
+ animation: zoom-in 0.2s var(--wui-ease-out-power-2);
340
+ animation-fill-mode: backwards;
341
+ outline: none;
342
+ transition:
343
+ border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1),
344
+ background-color var(--wui-duration-lg) var(--wui-ease-out-power-1);
345
+ will-change: border-radius, background-color;
346
+ }
347
+
348
+ :host(.appkit-modal) wui-card {
349
+ max-width: 400px;
350
+ }
351
+
352
+ wui-card[shake='true'] {
353
+ animation:
354
+ zoom-in 0.2s var(--wui-ease-out-power-2),
355
+ w3m-shake 0.5s var(--wui-ease-out-power-2);
356
+ }
357
+
358
+ wui-flex {
359
+ overflow-x: hidden;
360
+ overflow-y: auto;
361
+ display: flex;
362
+ align-items: center;
363
+ justify-content: center;
364
+ width: 100%;
365
+ height: 100%;
366
+ }
367
+
368
+ @media (max-height: 700px) and (min-width: 431px) {
369
+ wui-flex {
370
+ align-items: flex-start;
371
+ }
372
+
373
+ wui-card {
374
+ margin: var(--wui-spacing-xxl) 0px;
375
+ }
376
+ }
377
+
378
+ @media (max-width: 430px) {
379
+ wui-flex {
380
+ align-items: flex-end;
381
+ }
382
+
383
+ wui-card {
384
+ max-width: 100%;
385
+ border-bottom-left-radius: var(--local-border-bottom-mobile-radius);
386
+ border-bottom-right-radius: var(--local-border-bottom-mobile-radius);
387
+ border-bottom: none;
388
+ animation: slide-in 0.2s var(--wui-ease-out-power-2);
389
+ }
390
+
391
+ wui-card[shake='true'] {
392
+ animation:
393
+ slide-in 0.2s var(--wui-ease-out-power-2),
394
+ w3m-shake 0.5s var(--wui-ease-out-power-2);
395
+ }
396
+ }
397
+
398
+ @keyframes zoom-in {
399
+ 0% {
400
+ transform: scale(0.95) translateY(0);
401
+ }
402
+ 100% {
403
+ transform: scale(1) translateY(0);
404
+ }
405
+ }
406
+
407
+ @keyframes slide-in {
408
+ 0% {
409
+ transform: scale(1) translateY(50px);
410
+ }
411
+ 100% {
412
+ transform: scale(1) translateY(0);
413
+ }
414
+ }
415
+
416
+ @keyframes w3m-shake {
417
+ 0% {
418
+ transform: scale(1) rotate(0deg);
419
+ }
420
+ 20% {
421
+ transform: scale(1) rotate(-1deg);
422
+ }
423
+ 40% {
424
+ transform: scale(1) rotate(1.5deg);
425
+ }
426
+ 60% {
427
+ transform: scale(1) rotate(-1.5deg);
428
+ }
429
+ 80% {
430
+ transform: scale(1) rotate(1deg);
431
+ }
432
+ 100% {
433
+ transform: scale(1) rotate(0deg);
434
+ }
435
+ }
436
+
437
+ @keyframes w3m-view-height {
438
+ from {
439
+ height: var(--prev-height);
440
+ }
441
+ to {
442
+ height: var(--new-height);
443
+ }
444
+ }
445
+ `},62176:(e,t,i)=>{i(43125)},68399:(e,t,i)=>{i.d(t,{A:()=>o});const o=i(52788).AH`
446
+ :host {
447
+ pointer-events: none;
448
+ }
449
+
450
+ :host > wui-flex {
451
+ display: var(--w3m-tooltip-display);
452
+ opacity: var(--w3m-tooltip-opacity);
453
+ padding: 9px var(--wui-spacing-s) 10px var(--wui-spacing-s);
454
+ border-radius: var(--wui-border-radius-xxs);
455
+ color: var(--wui-color-bg-100);
456
+ position: fixed;
457
+ top: var(--w3m-tooltip-top);
458
+ left: var(--w3m-tooltip-left);
459
+ transform: translate(calc(-50% + var(--w3m-tooltip-parent-width)), calc(-100% - 8px));
460
+ max-width: calc(var(--w3m-modal-width) - var(--wui-spacing-xl));
461
+ transition: opacity 0.2s var(--wui-ease-out-power-2);
462
+ will-change: opacity;
463
+ }
464
+
465
+ :host([data-variant='shade']) > wui-flex {
466
+ background-color: var(--wui-color-bg-150);
467
+ border: 1px solid var(--wui-color-gray-glass-005);
468
+ }
469
+
470
+ :host([data-variant='shade']) > wui-flex > wui-text {
471
+ color: var(--wui-color-fg-150);
472
+ }
473
+
474
+ :host([data-variant='fill']) > wui-flex {
475
+ background-color: var(--wui-color-fg-100);
476
+ border: none;
477
+ }
478
+
479
+ wui-icon {
480
+ position: absolute;
481
+ width: 12px !important;
482
+ height: 4px !important;
483
+ color: var(--wui-color-bg-150);
484
+ }
485
+
486
+ wui-icon[data-placement='top'] {
487
+ bottom: 0px;
488
+ left: 50%;
489
+ transform: translate(-50%, 95%);
490
+ }
491
+
492
+ wui-icon[data-placement='bottom'] {
493
+ top: 0;
494
+ left: 50%;
495
+ transform: translate(-50%, -95%) rotate(180deg);
496
+ }
497
+
498
+ wui-icon[data-placement='right'] {
499
+ top: 50%;
500
+ left: 0;
501
+ transform: translate(-65%, -50%) rotate(90deg);
502
+ }
503
+
504
+ wui-icon[data-placement='left'] {
505
+ top: 50%;
506
+ right: 0%;
507
+ transform: translate(65%, -50%) rotate(270deg);
508
+ }
509
+ `},73268:(e,t,i)=>{var o=i(52788),a=i(86280),r=i(31100),s=(i(3334),i(43748),i(12002),i(67232)),n=i(13679),c=i(90032),l=function(e,t,i,o){var a,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(s=(r<3?a(s):r>3?a(t,i,s):a(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let w=class extends o.WF{constructor(){super(...arguments),this.message="",this.backgroundColor="accent-100",this.iconColor="accent-100",this.icon="info"}render(){return this.style.cssText=`\n --local-icon-bg-value: var(--wui-color-${this.backgroundColor});\n `,o.qy`
510
+ <wui-flex flexDirection="row" justifyContent="space-between" alignItems="center">
511
+ <wui-flex columnGap="xs" flexDirection="row" alignItems="center">
512
+ <wui-flex
513
+ flexDirection="row"
514
+ alignItems="center"
515
+ justifyContent="center"
516
+ class="icon-box"
517
+ >
518
+ <wui-icon color=${this.iconColor} size="md" name=${this.icon}></wui-icon>
519
+ </wui-flex>
520
+ <wui-text variant="small-500" color="bg-350" data-testid="wui-alertbar-text"
521
+ >${this.message}</wui-text
522
+ >
523
+ </wui-flex>
524
+ <wui-icon
525
+ class="close"
526
+ color="bg-350"
527
+ size="sm"
528
+ name="close"
529
+ @click=${this.onClose}
530
+ ></wui-icon>
531
+ </wui-flex>
532
+ `}onClose(){r.h.close()}};w.styles=[s.W5,c.A],l([(0,a.MZ)()],w.prototype,"message",void 0),l([(0,a.MZ)()],w.prototype,"backgroundColor",void 0),l([(0,a.MZ)()],w.prototype,"iconColor",void 0),l([(0,a.MZ)()],w.prototype,"icon",void 0),w=l([(0,n.E)("wui-alertbar")],w)},74253:(e,t,i)=>{var o=i(52788),a=i(86280),r=i(88313),s=i(69658),n=(i(85017),i(22835),i(3389),i(68399)),c=function(e,t,i,o){var a,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(s=(r<3?a(s):r>3?a(t,i,s):a(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let l=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.open=r.I.state.open,this.message=r.I.state.message,this.triggerRect=r.I.state.triggerRect,this.variant=r.I.state.variant,this.unsubscribe.push(r.I.subscribe(e=>{this.open=e.open,this.message=e.message,this.triggerRect=e.triggerRect,this.variant=e.variant}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){this.dataset.variant=this.variant;const e=this.triggerRect.top,t=this.triggerRect.left;return this.style.cssText=`\n --w3m-tooltip-top: ${e}px;\n --w3m-tooltip-left: ${t}px;\n --w3m-tooltip-parent-width: ${this.triggerRect.width/2}px;\n --w3m-tooltip-display: ${this.open?"flex":"none"};\n --w3m-tooltip-opacity: ${this.open?1:0};\n `,o.qy`<wui-flex>
533
+ <wui-icon data-placement="top" color="fg-100" size="inherit" name="cursor"></wui-icon>
534
+ <wui-text color="inherit" variant="small-500">${this.message}</wui-text>
535
+ </wui-flex>`}};l.styles=[n.A],c([(0,a.wk)()],l.prototype,"open",void 0),c([(0,a.wk)()],l.prototype,"message",void 0),c([(0,a.wk)()],l.prototype,"triggerRect",void 0),c([(0,a.wk)()],l.prototype,"variant",void 0),l=c([(0,s.EM)("w3m-tooltip"),(0,s.EM)("w3m-tooltip")],l)},75791:(e,t,i)=>{i.d(t,{A:()=>o});const o=i(52788).AH`
536
+ button {
537
+ border-radius: var(--local-border-radius);
538
+ color: var(--wui-color-fg-100);
539
+ padding: var(--local-padding);
540
+ }
541
+
542
+ @media (max-width: 700px) {
543
+ button {
544
+ padding: var(--wui-spacing-s);
545
+ }
546
+ }
547
+
548
+ button > wui-icon {
549
+ pointer-events: none;
550
+ }
551
+
552
+ button:disabled > wui-icon {
553
+ color: var(--wui-color-bg-300) !important;
554
+ }
555
+
556
+ button:disabled {
557
+ background-color: transparent;
558
+ }
559
+ `},79488:(e,t,i)=>{var o=i(52788),a=i(86280),r=i(72397),s=i(88313),n=i(69658),c=i(42177),l=i(4900),w=function(e,t,i,o){var a,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(s=(r<3?a(s):r>3?a(t,i,s):a(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let d=class extends o.WF{constructor(){super(),this.resizeObserver=void 0,this.prevHeight="0px",this.prevHistoryLength=1,this.unsubscribe=[],this.view=r.I.state.view,this.viewDirection="",this.unsubscribe.push(r.I.subscribeKey("view",e=>this.onViewChange(e)))}firstUpdated(){this.resizeObserver=new ResizeObserver(([e])=>{const t=`${e?.contentRect.height}px`;"0px"!==this.prevHeight&&(this.style.setProperty("--prev-height",this.prevHeight),this.style.setProperty("--new-height",t),this.style.animation="w3m-view-height 150ms forwards ease",this.style.height="auto"),setTimeout(()=>{this.prevHeight=t,this.style.animation="unset"},c.o.ANIMATION_DURATIONS.ModalHeight)}),this.resizeObserver?.observe(this.getWrapper())}disconnectedCallback(){this.resizeObserver?.unobserve(this.getWrapper()),this.unsubscribe.forEach(e=>e())}render(){return o.qy`<div class="w3m-router-container" view-direction="${this.viewDirection}">
560
+ ${this.viewTemplate()}
561
+ </div>`}viewTemplate(){switch(this.view){case"AccountSettings":return o.qy`<w3m-account-settings-view></w3m-account-settings-view>`;case"Account":return o.qy`<w3m-account-view></w3m-account-view>`;case"AllWallets":return o.qy`<w3m-all-wallets-view></w3m-all-wallets-view>`;case"ApproveTransaction":return o.qy`<w3m-approve-transaction-view></w3m-approve-transaction-view>`;case"BuyInProgress":return o.qy`<w3m-buy-in-progress-view></w3m-buy-in-progress-view>`;case"ChooseAccountName":return o.qy`<w3m-choose-account-name-view></w3m-choose-account-name-view>`;case"Connect":default:return o.qy`<w3m-connect-view></w3m-connect-view>`;case"Create":return o.qy`<w3m-connect-view walletGuide="explore"></w3m-connect-view>`;case"ConnectingWalletConnect":return o.qy`<w3m-connecting-wc-view></w3m-connecting-wc-view>`;case"ConnectingWalletConnectBasic":return o.qy`<w3m-connecting-wc-basic-view></w3m-connecting-wc-basic-view>`;case"ConnectingExternal":return o.qy`<w3m-connecting-external-view></w3m-connecting-external-view>`;case"ConnectingSiwe":return o.qy`<w3m-connecting-siwe-view></w3m-connecting-siwe-view>`;case"ConnectWallets":return o.qy`<w3m-connect-wallets-view></w3m-connect-wallets-view>`;case"ConnectSocials":return o.qy`<w3m-connect-socials-view></w3m-connect-socials-view>`;case"ConnectingSocial":return o.qy`<w3m-connecting-social-view></w3m-connecting-social-view>`;case"Downloads":return o.qy`<w3m-downloads-view></w3m-downloads-view>`;case"EmailLogin":return o.qy`<w3m-email-login-view></w3m-email-login-view>`;case"EmailVerifyOtp":return o.qy`<w3m-email-verify-otp-view></w3m-email-verify-otp-view>`;case"EmailVerifyDevice":return o.qy`<w3m-email-verify-device-view></w3m-email-verify-device-view>`;case"GetWallet":return o.qy`<w3m-get-wallet-view></w3m-get-wallet-view>`;case"Networks":return o.qy`<w3m-networks-view></w3m-networks-view>`;case"SwitchNetwork":return o.qy`<w3m-network-switch-view></w3m-network-switch-view>`;case"Profile":return o.qy`<w3m-profile-view></w3m-profile-view>`;case"SwitchAddress":return o.qy`<w3m-switch-address-view></w3m-switch-address-view>`;case"Transactions":return o.qy`<w3m-transactions-view></w3m-transactions-view>`;case"OnRampProviders":return o.qy`<w3m-onramp-providers-view></w3m-onramp-providers-view>`;case"OnRampActivity":return o.qy`<w3m-onramp-activity-view></w3m-onramp-activity-view>`;case"OnRampTokenSelect":return o.qy`<w3m-onramp-token-select-view></w3m-onramp-token-select-view>`;case"OnRampFiatSelect":return o.qy`<w3m-onramp-fiat-select-view></w3m-onramp-fiat-select-view>`;case"UpgradeEmailWallet":return o.qy`<w3m-upgrade-wallet-view></w3m-upgrade-wallet-view>`;case"UpdateEmailWallet":return o.qy`<w3m-update-email-wallet-view></w3m-update-email-wallet-view>`;case"UpdateEmailPrimaryOtp":return o.qy`<w3m-update-email-primary-otp-view></w3m-update-email-primary-otp-view>`;case"UpdateEmailSecondaryOtp":return o.qy`<w3m-update-email-secondary-otp-view></w3m-update-email-secondary-otp-view>`;case"UnsupportedChain":return o.qy`<w3m-unsupported-chain-view></w3m-unsupported-chain-view>`;case"Swap":return o.qy`<w3m-swap-view></w3m-swap-view>`;case"SwapSelectToken":return o.qy`<w3m-swap-select-token-view></w3m-swap-select-token-view>`;case"SwapPreview":return o.qy`<w3m-swap-preview-view></w3m-swap-preview-view>`;case"WalletSend":return o.qy`<w3m-wallet-send-view></w3m-wallet-send-view>`;case"WalletSendSelectToken":return o.qy`<w3m-wallet-send-select-token-view></w3m-wallet-send-select-token-view>`;case"WalletSendPreview":return o.qy`<w3m-wallet-send-preview-view></w3m-wallet-send-preview-view>`;case"WhatIsABuy":return o.qy`<w3m-what-is-a-buy-view></w3m-what-is-a-buy-view>`;case"WalletReceive":return o.qy`<w3m-wallet-receive-view></w3m-wallet-receive-view>`;case"WalletCompatibleNetworks":return o.qy`<w3m-wallet-compatible-networks-view></w3m-wallet-compatible-networks-view>`;case"WhatIsAWallet":return o.qy`<w3m-what-is-a-wallet-view></w3m-what-is-a-wallet-view>`;case"ConnectingMultiChain":return o.qy`<w3m-connecting-multi-chain-view></w3m-connecting-multi-chain-view>`;case"WhatIsANetwork":return o.qy`<w3m-what-is-a-network-view></w3m-what-is-a-network-view>`;case"ConnectingFarcaster":return o.qy`<w3m-connecting-farcaster-view></w3m-connecting-farcaster-view>`;case"SwitchActiveChain":return o.qy`<w3m-switch-active-chain-view></w3m-switch-active-chain-view>`;case"RegisterAccountName":return o.qy`<w3m-register-account-name-view></w3m-register-account-name-view>`;case"RegisterAccountNameSuccess":return o.qy`<w3m-register-account-name-success-view></w3m-register-account-name-success-view>`;case"SmartSessionCreated":return o.qy`<w3m-smart-session-created-view></w3m-smart-session-created-view>`;case"SmartSessionList":return o.qy`<w3m-smart-session-list-view></w3m-smart-session-list-view>`;case"SIWXSignMessage":return o.qy`<w3m-siwx-sign-message-view></w3m-siwx-sign-message-view>`;case"Pay":return o.qy`<w3m-pay-view></w3m-pay-view>`;case"PayLoading":return o.qy`<w3m-pay-loading-view></w3m-pay-loading-view>`}}onViewChange(e){s.I.hide();let t=c.o.VIEW_DIRECTION.Next;const{history:i}=r.I.state;i.length<this.prevHistoryLength&&(t=c.o.VIEW_DIRECTION.Prev),this.prevHistoryLength=i.length,this.viewDirection=t,setTimeout(()=>{this.view=e},c.o.ANIMATION_DURATIONS.ViewTransition)}getWrapper(){return this.shadowRoot?.querySelector("div")}};d.styles=l.A,w([(0,a.wk)()],d.prototype,"view",void 0),w([(0,a.wk)()],d.prototype,"viewDirection",void 0),d=w([(0,n.EM)("w3m-router")],d)},83733:(e,t,i)=>{i(73268)},84708:(e,t,i)=>{i(18093)},86627:(e,t,i)=>{var o=i(52788),a=i(86280),r=(i(3334),i(92008),i(71050),i(67232)),s=i(13679),n=i(59181),c=function(e,t,i,o){var a,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(s=(r<3?a(s):r>3?a(t,i,s):a(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let l=class extends o.WF{constructor(){super(...arguments),this.imageSrc=""}render(){return o.qy`<button>
562
+ ${this.imageTemplate()}
563
+ <wui-icon size="xs" color="fg-200" name="chevronBottom"></wui-icon>
564
+ </button>`}imageTemplate(){return this.imageSrc?o.qy`<wui-image src=${this.imageSrc} alt="select visual"></wui-image>`:o.qy`<wui-icon-box
565
+ size="xxs"
566
+ iconColor="fg-200"
567
+ backgroundColor="fg-100"
568
+ background="opaque"
569
+ icon="networkPlaceholder"
570
+ ></wui-icon-box>`}};l.styles=[r.W5,r.fD,r.ck,n.A],c([(0,a.MZ)()],l.prototype,"imageSrc",void 0),l=c([(0,s.E)("wui-select")],l)},88313:(e,t,i)=>{i.d(t,{I:()=>c});var o=i(89168),a=i(39150),r=i(37834);const s=(0,o.BX)({message:"",open:!1,triggerRect:{width:0,height:0,top:0,left:0},variant:"shade"}),n={state:s,subscribe:e=>(0,o.B1)(s,()=>e(s)),subscribeKey:(e,t)=>(0,a.u$)(s,e,t),showTooltip({message:e,triggerRect:t,variant:i}){s.open=!0,s.message=e,s.triggerRect=t,s.variant=i},hide(){s.open=!1,s.message="",s.triggerRect={width:0,height:0,top:0,left:0}}},c=(0,r.X)(n)},90009:(e,t,i)=>{i(40148)},90032:(e,t,i)=>{i.d(t,{A:()=>o});const o=i(52788).AH`
571
+ :host {
572
+ display: flex;
573
+ align-items: center;
574
+ justify-content: center;
575
+ padding: var(--wui-spacing-s);
576
+ border-radius: var(--wui-border-radius-s);
577
+ border: 1px solid var(--wui-color-dark-glass-100);
578
+ box-sizing: border-box;
579
+ background-color: var(--wui-color-bg-325);
580
+ box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.25);
581
+ }
582
+
583
+ wui-flex {
584
+ width: 100%;
585
+ }
586
+
587
+ wui-text {
588
+ word-break: break-word;
589
+ flex: 1;
590
+ }
591
+
592
+ .close {
593
+ cursor: pointer;
594
+ }
595
+
596
+ .icon-box {
597
+ height: 40px;
598
+ width: 40px;
599
+ border-radius: var(--wui-border-radius-3xs);
600
+ background-color: var(--local-icon-bg-value);
601
+ }
602
+ `},96451:(e,t,i)=>{i.d(t,{A:()=>o});const o=i(52788).AH`
603
+ :host {
604
+ display: block;
605
+ position: absolute;
606
+ opacity: 0;
607
+ pointer-events: none;
608
+ top: 11px;
609
+ left: 50%;
610
+ width: max-content;
611
+ }
612
+ `},98649:(e,t,i)=>{var o=i(52788),a=i(86280),r=i(92492),s=i(69658),n=(i(90009),i(96451)),c=function(e,t,i,o){var a,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(s=(r<3?a(s):r>3?a(t,i,s):a(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};const l={loading:void 0,success:{backgroundColor:"success-100",iconColor:"success-100",icon:"checkmark"},error:{backgroundColor:"error-100",iconColor:"error-100",icon:"close"}};let w=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.timeout=void 0,this.open=r.P.state.open,this.unsubscribe.push(r.P.subscribeKey("open",e=>{this.open=e,this.onOpen()}))}disconnectedCallback(){clearTimeout(this.timeout),this.unsubscribe.forEach(e=>e())}render(){const{message:e,variant:t,svg:i}=r.P.state,a=l[t],{icon:s,iconColor:n}=i??a??{};return o.qy`
613
+ <wui-snackbar
614
+ message=${e}
615
+ backgroundColor=${a?.backgroundColor}
616
+ iconColor=${n}
617
+ icon=${s}
618
+ .loading=${"loading"===t}
619
+ ></wui-snackbar>
620
+ `}onOpen(){clearTimeout(this.timeout),this.open?(this.animate([{opacity:0,transform:"translateX(-50%) scale(0.85)"},{opacity:1,transform:"translateX(-50%) scale(1)"}],{duration:150,fill:"forwards",easing:"ease"}),this.timeout&&clearTimeout(this.timeout),r.P.state.autoClose&&(this.timeout=setTimeout(()=>r.P.hide(),2500))):this.animate([{opacity:1,transform:"translateX(-50%) scale(1)"},{opacity:0,transform:"translateX(-50%) scale(0.85)"}],{duration:150,fill:"forwards",easing:"ease"})}};w.styles=n.A,c([(0,a.wk)()],w.prototype,"open",void 0),w=c([(0,s.EM)("w3m-snackbar")],w)}};