@prohetamine/redstone 0.0.1

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 (160) hide show
  1. package/dist/PhArrowCircleDown-BR-zH4LC.js +14 -0
  2. package/dist/PhArrowCircleDown-Sb38khBy.mjs +73 -0
  3. package/dist/PhArrowClockwise-BE5j9P0Z.mjs +73 -0
  4. package/dist/PhArrowClockwise-BRaehQGe.js +14 -0
  5. package/dist/PhArrowDown-B_WmmmY9.js +14 -0
  6. package/dist/PhArrowDown-CFEyR2dR.mjs +73 -0
  7. package/dist/PhArrowLeft-CYfU7NZj.mjs +73 -0
  8. package/dist/PhArrowLeft-CkEd70hm.js +14 -0
  9. package/dist/PhArrowRight-C07Qkx86.js +14 -0
  10. package/dist/PhArrowRight-EermNu0V.mjs +73 -0
  11. package/dist/PhArrowSquareOut-BjTBfzOP.js +14 -0
  12. package/dist/PhArrowSquareOut-DZwTtw54.mjs +73 -0
  13. package/dist/PhArrowUp-DB4CCSss.js +14 -0
  14. package/dist/PhArrowUp-xTpLFQkg.mjs +73 -0
  15. package/dist/PhArrowUpRight-CQbvn6NO.mjs +73 -0
  16. package/dist/PhArrowUpRight-GpCIMsAh.js +14 -0
  17. package/dist/PhArrowsClockwise-BgcIUg-Z.js +14 -0
  18. package/dist/PhArrowsClockwise-DnUYZTVx.mjs +73 -0
  19. package/dist/PhArrowsDownUp-C8KXUqtu.js +14 -0
  20. package/dist/PhArrowsDownUp-DgoprEe2.mjs +73 -0
  21. package/dist/PhArrowsLeftRight-CahChzCj.js +14 -0
  22. package/dist/PhArrowsLeftRight-FD4AZiLh.mjs +73 -0
  23. package/dist/PhBank-DIqIL4x_.js +14 -0
  24. package/dist/PhBank-DbQOQ9zJ.mjs +73 -0
  25. package/dist/PhBrowser-BCBXK2IM.mjs +73 -0
  26. package/dist/PhBrowser-laCKtn7T.js +14 -0
  27. package/dist/PhCaretDown-CnjP-QjZ.mjs +73 -0
  28. package/dist/PhCaretDown-DDe42xDU.js +14 -0
  29. package/dist/PhCaretLeft-Cskc5OY9.js +14 -0
  30. package/dist/PhCaretLeft-DkuXxjf_.mjs +73 -0
  31. package/dist/PhCaretRight-CBWpghxt.mjs +73 -0
  32. package/dist/PhCaretRight-DNgI5w_B.js +14 -0
  33. package/dist/PhCaretUp-CQ-OztBV.mjs +73 -0
  34. package/dist/PhCaretUp-CUZ4g_Me.js +14 -0
  35. package/dist/PhCheck-BVV_Dwfo.js +14 -0
  36. package/dist/PhCheck-t515emYS.mjs +73 -0
  37. package/dist/PhCircleHalf-BuQTmrKW.mjs +73 -0
  38. package/dist/PhCircleHalf-DDC7rige.js +14 -0
  39. package/dist/PhClock-BqynEKWl.js +14 -0
  40. package/dist/PhClock-D6XkTmM_.mjs +73 -0
  41. package/dist/PhCompass-2QeeX5Ad.mjs +73 -0
  42. package/dist/PhCompass-BsuJwXAE.js +14 -0
  43. package/dist/PhCopy-CO34-_xD.mjs +73 -0
  44. package/dist/PhCopy-MVqtRS6X.js +14 -0
  45. package/dist/PhCreditCard-Dq4kdjCw.js +14 -0
  46. package/dist/PhCreditCard-bfnqYflD.mjs +73 -0
  47. package/dist/PhCurrencyDollar-6k8UWxal.js +14 -0
  48. package/dist/PhCurrencyDollar-BekVYPtC.mjs +73 -0
  49. package/dist/PhDesktop-BkNzf3rT.mjs +73 -0
  50. package/dist/PhDesktop-CfsXQ0vC.js +14 -0
  51. package/dist/PhDeviceMobile-BT3Mg_b0.mjs +73 -0
  52. package/dist/PhDeviceMobile-BnrrDrwf.js +14 -0
  53. package/dist/PhDotsThree-6LRvhAcL.js +14 -0
  54. package/dist/PhDotsThree-kpf2OKxJ.mjs +73 -0
  55. package/dist/PhEnvelope-CHsfC2e0.js +14 -0
  56. package/dist/PhEnvelope-UFKpKtwf.mjs +73 -0
  57. package/dist/PhFunnelSimple-CdAqSIhK.mjs +73 -0
  58. package/dist/PhFunnelSimple-JAk7X9Wo.js +14 -0
  59. package/dist/PhGlobe-B3RYXl8h.mjs +73 -0
  60. package/dist/PhGlobe-Tfs4MfpG.js +14 -0
  61. package/dist/PhIdentificationCard-Dqmd6eY1.js +14 -0
  62. package/dist/PhIdentificationCard-rSq59Czm.mjs +73 -0
  63. package/dist/PhImage-aEryzfCi.js +14 -0
  64. package/dist/PhImage-ynsEnFd_.mjs +73 -0
  65. package/dist/PhInfo-B7lsWl6m.mjs +73 -0
  66. package/dist/PhInfo-D6oUrWpA.js +14 -0
  67. package/dist/PhLightbulb-FQDaMMqu.mjs +73 -0
  68. package/dist/PhLightbulb-qbEduhPa.js +14 -0
  69. package/dist/PhMagnifyingGlass-COdRH2k5.js +14 -0
  70. package/dist/PhMagnifyingGlass-_NXk13-0.mjs +73 -0
  71. package/dist/PhPaperPlaneRight-BYi7SorW.mjs +73 -0
  72. package/dist/PhPaperPlaneRight-DrpVAQOZ.js +14 -0
  73. package/dist/PhPlus-25KQTPHG.mjs +73 -0
  74. package/dist/PhPlus-BhUXef08.js +14 -0
  75. package/dist/PhPower-BKl7gzsB.mjs +73 -0
  76. package/dist/PhPower-BNJf1AGQ.js +14 -0
  77. package/dist/PhPuzzlePiece-BkZeF8CX.js +14 -0
  78. package/dist/PhPuzzlePiece-BqUI4GRs.mjs +73 -0
  79. package/dist/PhQrCode-C-tqZKPP.mjs +73 -0
  80. package/dist/PhQrCode-C0v0iXQN.js +14 -0
  81. package/dist/PhQuestion-BBAiRWgt.js +14 -0
  82. package/dist/PhQuestion-CtYvffyD.mjs +73 -0
  83. package/dist/PhQuestionMark-BNbtL2yx.mjs +73 -0
  84. package/dist/PhQuestionMark-BvGUBZ1h.js +14 -0
  85. package/dist/PhSealCheck-B0TEqWpq.mjs +73 -0
  86. package/dist/PhSealCheck-BwNkuF7G.js +14 -0
  87. package/dist/PhSignOut-C1rMSNaS.js +14 -0
  88. package/dist/PhSignOut-HX2_BVsD.mjs +73 -0
  89. package/dist/PhSpinner-CoDYLYOX.mjs +73 -0
  90. package/dist/PhSpinner-nmsGWDQl.js +14 -0
  91. package/dist/PhTrash-CALlKx3e.js +14 -0
  92. package/dist/PhTrash-DeQHS8ZP.mjs +73 -0
  93. package/dist/PhUser-CA0e5OPI.js +14 -0
  94. package/dist/PhUser-Cy5EY3vX.mjs +73 -0
  95. package/dist/PhVault-DdXjVOO9.mjs +73 -0
  96. package/dist/PhVault-DqxV75cz.js +14 -0
  97. package/dist/PhWallet-CeQrfGYc.mjs +73 -0
  98. package/dist/PhWallet-CyCuEs2U.js +14 -0
  99. package/dist/PhWarning-BKaHv_wT.mjs +73 -0
  100. package/dist/PhWarning-C7oj86bY.js +14 -0
  101. package/dist/PhWarningCircle-8MWw-QgE.mjs +73 -0
  102. package/dist/PhWarningCircle-CrNPXGj4.js +14 -0
  103. package/dist/PhX-9lsrXjyl.js +14 -0
  104. package/dist/PhX-DgXr_Fb0.mjs +73 -0
  105. package/dist/ReownAuthentication-Bfv31LzI.mjs +274 -0
  106. package/dist/ReownAuthentication-d8aYgGOq.js +5 -0
  107. package/dist/SwapController-4lzoYsYr.js +1 -0
  108. package/dist/SwapController-DjzUWRyQ.mjs +462 -0
  109. package/dist/ccip-CvwbEhki.js +1 -0
  110. package/dist/ccip-TuO68NeE.mjs +150 -0
  111. package/dist/data-capture-BwdjH2vc.mjs +489 -0
  112. package/dist/data-capture-xVUNZJ2T.js +242 -0
  113. package/dist/email-BCZObJCY.js +90 -0
  114. package/dist/email-m-wo60fN.mjs +338 -0
  115. package/dist/embedded-wallet-CGSri-4g.js +410 -0
  116. package/dist/embedded-wallet-DdZmv5qP.mjs +808 -0
  117. package/dist/features-BJ8kNaE8.js +1 -0
  118. package/dist/features-CJ34oImB.mjs +6 -0
  119. package/dist/index-4lfXeo30.js +132 -0
  120. package/dist/index-B6Mg114Z.mjs +69182 -0
  121. package/dist/index-BX7gAgT3.mjs +35 -0
  122. package/dist/index-BYQqNbCe.js +1 -0
  123. package/dist/index-BmdHwtJo.js +1 -0
  124. package/dist/index-BvUx3ULC.js +78 -0
  125. package/dist/index-CD-QGO70.mjs +196 -0
  126. package/dist/index-CJtXfdoM.mjs +29621 -0
  127. package/dist/index-CMzdgE-y.mjs +215 -0
  128. package/dist/index-CjZQCcwG.js +7203 -0
  129. package/dist/index-D7VuOaCI.js +19 -0
  130. package/dist/index-DV7SQwgn.mjs +2688 -0
  131. package/dist/index-DVf4BnNh.mjs +352 -0
  132. package/dist/index-DhN9vL4k.js +138 -0
  133. package/dist/index-DvllakY0.mjs +274 -0
  134. package/dist/index-Ho06VKh2.mjs +151 -0
  135. package/dist/index-a8mS2Eh1.js +1062 -0
  136. package/dist/index-aamBi9Tu.js +1 -0
  137. package/dist/index.cjs.js +1 -0
  138. package/dist/index.es.js +14 -0
  139. package/dist/onramp-DLlhSPQg.js +422 -0
  140. package/dist/onramp-k-EAEepC.mjs +842 -0
  141. package/dist/parseSignature-D1tZHglo.js +16 -0
  142. package/dist/parseSignature-DM0lwcDr.mjs +8883 -0
  143. package/dist/pay-with-exchange---G2M1Ag.js +280 -0
  144. package/dist/pay-with-exchange-CFIcUXUe.mjs +512 -0
  145. package/dist/property-Bd8U3_QP.mjs +618 -0
  146. package/dist/property-DissjCbZ.js +27 -0
  147. package/dist/receive-B9LCljO6.mjs +228 -0
  148. package/dist/receive-E8H6GDOX.js +131 -0
  149. package/dist/send-B-AooLph.js +554 -0
  150. package/dist/send-DZd_xhsd.mjs +1155 -0
  151. package/dist/socials-ChWFLEFe.mjs +611 -0
  152. package/dist/socials-YSUYSh8o.js +250 -0
  153. package/dist/swaps-DpR9W9Ld.js +1050 -0
  154. package/dist/swaps-Du7-Ui_V.mjs +1752 -0
  155. package/dist/transactions-DhsK5-QJ.mjs +35 -0
  156. package/dist/transactions-VPsz2OLe.js +16 -0
  157. package/dist/w3m-modal-DhomfjKU.js +891 -0
  158. package/dist/w3m-modal-KuYD-zqQ.mjs +1759 -0
  159. package/package.json +51 -0
  160. package/readme.md +1 -0
@@ -0,0 +1,891 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-CjZQCcwG.js"),k=require("./index-a8mS2Eh1.js"),B=require("./SwapController-4lzoYsYr.js"),D={isUnsupportedChainView(){return t.RouterController.state.view==="UnsupportedChain"||t.RouterController.state.view==="SwitchNetwork"&&t.RouterController.state.history.includes("UnsupportedChain")},async safeClose(){if(this.isUnsupportedChainView()){t.ModalController.shake();return}if(await t.SIWXUtil.isSIWXCloseDisabled()){t.ModalController.shake();return}(t.RouterController.state.view==="DataCapture"||t.RouterController.state.view==="DataCaptureOtpConfirm")&&t.ConnectionController.disconnect(),t.ModalController.close()}},j=t.css`
2
+ :host {
3
+ display: block;
4
+ border-radius: clamp(0px, ${({borderRadius:e})=>e[8]}, 44px);
5
+ box-shadow: 0 0 0 1px ${({tokens:e})=>e.theme.foregroundPrimary};
6
+ overflow: hidden;
7
+ }
8
+ `;var U=function(e,o,i,n){var a=arguments.length,r=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,o,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(r=(a<3?s(r):a>3?s(o,i,r):s(o,i))||r);return a>3&&r&&Object.defineProperty(o,i,r),r};let W=class extends t.i{render(){return t.b`<slot></slot>`}};W.styles=[t.resetStyles,j];W=U([t.customElement("wui-card")],W);const V=t.css`
9
+ :host {
10
+ width: 100%;
11
+ }
12
+
13
+ :host > wui-flex {
14
+ width: 100%;
15
+ display: flex;
16
+ align-items: center;
17
+ justify-content: center;
18
+ gap: ${({spacing:e})=>e[2]};
19
+ padding: ${({spacing:e})=>e[3]};
20
+ border-radius: ${({borderRadius:e})=>e[6]};
21
+ border: 1px solid ${({tokens:e})=>e.theme.borderPrimary};
22
+ box-sizing: border-box;
23
+ background-color: ${({tokens:e})=>e.theme.foregroundPrimary};
24
+ box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.25);
25
+ color: ${({tokens:e})=>e.theme.textPrimary};
26
+ }
27
+
28
+ :host > wui-flex[data-type='info'] {
29
+ .icon-box {
30
+ background-color: ${({tokens:e})=>e.theme.foregroundSecondary};
31
+
32
+ wui-icon {
33
+ color: ${({tokens:e})=>e.theme.iconDefault};
34
+ }
35
+ }
36
+ }
37
+ :host > wui-flex[data-type='success'] {
38
+ .icon-box {
39
+ background-color: ${({tokens:e})=>e.core.backgroundSuccess};
40
+
41
+ wui-icon {
42
+ color: ${({tokens:e})=>e.core.borderSuccess};
43
+ }
44
+ }
45
+ }
46
+ :host > wui-flex[data-type='warning'] {
47
+ .icon-box {
48
+ background-color: ${({tokens:e})=>e.core.backgroundWarning};
49
+
50
+ wui-icon {
51
+ color: ${({tokens:e})=>e.core.borderWarning};
52
+ }
53
+ }
54
+ }
55
+ :host > wui-flex[data-type='error'] {
56
+ .icon-box {
57
+ background-color: ${({tokens:e})=>e.core.backgroundError};
58
+
59
+ wui-icon {
60
+ color: ${({tokens:e})=>e.core.borderError};
61
+ }
62
+ }
63
+ }
64
+
65
+ wui-flex {
66
+ width: 100%;
67
+ }
68
+
69
+ wui-text {
70
+ word-break: break-word;
71
+ flex: 1;
72
+ }
73
+
74
+ .close {
75
+ cursor: pointer;
76
+ color: ${({tokens:e})=>e.theme.iconDefault};
77
+ }
78
+
79
+ .icon-box {
80
+ height: 40px;
81
+ width: 40px;
82
+ border-radius: ${({borderRadius:e})=>e[2]};
83
+ background-color: var(--local-icon-bg-value);
84
+ }
85
+ `;var R=function(e,o,i,n){var a=arguments.length,r=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,o,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(r=(a<3?s(r):a>3?s(o,i,r):s(o,i))||r);return a>3&&r&&Object.defineProperty(o,i,r),r};const M={info:"info",success:"checkmark",warning:"warningCircle",error:"warning"};let v=class extends t.i{constructor(){super(...arguments),this.message="",this.type="info"}render(){return t.b`
86
+ <wui-flex
87
+ data-type=${t.o(this.type)}
88
+ flexDirection="row"
89
+ justifyContent="space-between"
90
+ alignItems="center"
91
+ gap="2"
92
+ >
93
+ <wui-flex columnGap="2" flexDirection="row" alignItems="center">
94
+ <wui-flex
95
+ flexDirection="row"
96
+ alignItems="center"
97
+ justifyContent="center"
98
+ class="icon-box"
99
+ >
100
+ <wui-icon color="inherit" size="md" name=${M[this.type]}></wui-icon>
101
+ </wui-flex>
102
+ <wui-text variant="md-medium" color="inherit" data-testid="wui-alertbar-text"
103
+ >${this.message}</wui-text
104
+ >
105
+ </wui-flex>
106
+ <wui-icon
107
+ class="close"
108
+ color="inherit"
109
+ size="sm"
110
+ name="close"
111
+ @click=${this.onClose}
112
+ ></wui-icon>
113
+ </wui-flex>
114
+ `}onClose(){t.AlertController.close()}};v.styles=[t.resetStyles,V];R([t.n()],v.prototype,"message",void 0);R([t.n()],v.prototype,"type",void 0);v=R([t.customElement("wui-alertbar")],v);const F=t.css`
115
+ :host {
116
+ display: block;
117
+ position: absolute;
118
+ top: ${({spacing:e})=>e[3]};
119
+ left: ${({spacing:e})=>e[4]};
120
+ right: ${({spacing:e})=>e[4]};
121
+ opacity: 0;
122
+ pointer-events: none;
123
+ }
124
+ `;var L=function(e,o,i,n){var a=arguments.length,r=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,o,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(r=(a<3?s(r):a>3?s(o,i,r):s(o,i))||r);return a>3&&r&&Object.defineProperty(o,i,r),r};const K={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:"warning"}};let $=class extends t.i{constructor(){super(),this.unsubscribe=[],this.open=t.AlertController.state.open,this.onOpen(!0),this.unsubscribe.push(t.AlertController.subscribeKey("open",o=>{this.open=o,this.onOpen(!1)}))}disconnectedCallback(){this.unsubscribe.forEach(o=>o())}render(){const{message:o,variant:i}=t.AlertController.state,n=K[i];return t.b`
125
+ <wui-alertbar
126
+ message=${o}
127
+ backgroundColor=${n==null?void 0:n.backgroundColor}
128
+ iconColor=${n==null?void 0:n.iconColor}
129
+ icon=${n==null?void 0:n.icon}
130
+ type=${i}
131
+ ></wui-alertbar>
132
+ `}onOpen(o){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"):o||(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")}};$.styles=F;L([t.r()],$.prototype,"open",void 0);$=L([t.customElement("w3m-alertbar")],$);const X=t.css`
133
+ button {
134
+ display: block;
135
+ display: flex;
136
+ align-items: center;
137
+ padding: ${({spacing:e})=>e[1]};
138
+ transition: background-color ${({durations:e})=>e.lg}
139
+ ${({easings:e})=>e["ease-out-power-2"]};
140
+ will-change: background-color;
141
+ border-radius: ${({borderRadius:e})=>e[32]};
142
+ }
143
+
144
+ wui-image {
145
+ border-radius: 100%;
146
+ }
147
+
148
+ wui-text {
149
+ padding-left: ${({spacing:e})=>e[1]};
150
+ }
151
+
152
+ .left-icon-container,
153
+ .right-icon-container {
154
+ width: 24px;
155
+ height: 24px;
156
+ justify-content: center;
157
+ align-items: center;
158
+ }
159
+
160
+ wui-icon {
161
+ color: ${({tokens:e})=>e.theme.iconDefault};
162
+ }
163
+
164
+ /* -- Sizes --------------------------------------------------- */
165
+ button[data-size='lg'] {
166
+ height: 32px;
167
+ }
168
+
169
+ button[data-size='md'] {
170
+ height: 28px;
171
+ }
172
+
173
+ button[data-size='sm'] {
174
+ height: 24px;
175
+ }
176
+
177
+ button[data-size='lg'] wui-image {
178
+ width: 24px;
179
+ height: 24px;
180
+ }
181
+
182
+ button[data-size='md'] wui-image {
183
+ width: 20px;
184
+ height: 20px;
185
+ }
186
+
187
+ button[data-size='sm'] wui-image {
188
+ width: 16px;
189
+ height: 16px;
190
+ }
191
+
192
+ button[data-size='lg'] .left-icon-container {
193
+ width: 24px;
194
+ height: 24px;
195
+ }
196
+
197
+ button[data-size='md'] .left-icon-container {
198
+ width: 20px;
199
+ height: 20px;
200
+ }
201
+
202
+ button[data-size='sm'] .left-icon-container {
203
+ width: 16px;
204
+ height: 16px;
205
+ }
206
+
207
+ /* -- Variants --------------------------------------------------------- */
208
+ button[data-type='filled-dropdown'] {
209
+ background-color: ${({tokens:e})=>e.theme.foregroundPrimary};
210
+ }
211
+
212
+ button[data-type='text-dropdown'] {
213
+ background-color: transparent;
214
+ }
215
+
216
+ /* -- Focus states --------------------------------------------------- */
217
+ button:focus-visible:enabled {
218
+ background-color: ${({tokens:e})=>e.theme.foregroundSecondary};
219
+ box-shadow: 0 0 0 4px ${({tokens:e})=>e.core.foregroundAccent040};
220
+ }
221
+
222
+ /* -- Hover & Active states ----------------------------------------------------------- */
223
+ @media (hover: hover) and (pointer: fine) {
224
+ button:hover:enabled,
225
+ button:active:enabled {
226
+ background-color: ${({tokens:e})=>e.theme.foregroundSecondary};
227
+ }
228
+ }
229
+
230
+ /* -- Disabled states --------------------------------------------------- */
231
+ button:disabled {
232
+ background-color: ${({tokens:e})=>e.theme.foregroundSecondary};
233
+ opacity: 0.5;
234
+ }
235
+ `;var g=function(e,o,i,n){var a=arguments.length,r=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,o,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(r=(a<3?s(r):a>3?s(o,i,r):s(o,i))||r);return a>3&&r&&Object.defineProperty(o,i,r),r};const Y={lg:"lg-regular",md:"md-regular",sm:"sm-regular"},G={lg:"lg",md:"md",sm:"sm"};let w=class extends t.i{constructor(){super(...arguments),this.imageSrc="",this.text="",this.size="lg",this.type="text-dropdown",this.disabled=!1}render(){return t.b`<button ?disabled=${this.disabled} data-size=${this.size} data-type=${this.type}>
236
+ ${this.imageTemplate()} ${this.textTemplate()}
237
+ <wui-flex class="right-icon-container">
238
+ <wui-icon name="chevronBottom"></wui-icon>
239
+ </wui-flex>
240
+ </button>`}textTemplate(){const o=Y[this.size];return this.text?t.b`<wui-text color="primary" variant=${o}>${this.text}</wui-text>`:null}imageTemplate(){if(this.imageSrc)return t.b`<wui-image src=${this.imageSrc} alt="select visual"></wui-image>`;const o=G[this.size];return t.b` <wui-flex class="left-icon-container">
241
+ <wui-icon size=${o} name="networkPlaceholder"></wui-icon>
242
+ </wui-flex>`}};w.styles=[t.resetStyles,t.elementStyles,X];g([t.n()],w.prototype,"imageSrc",void 0);g([t.n()],w.prototype,"text",void 0);g([t.n()],w.prototype,"size",void 0);g([t.n()],w.prototype,"type",void 0);g([t.n({type:Boolean})],w.prototype,"disabled",void 0);w=g([t.customElement("wui-select")],w);const q=t.css`
243
+ wui-image {
244
+ border-radius: ${({borderRadius:e})=>e.round};
245
+ }
246
+
247
+ .transfers-badge {
248
+ background-color: ${({tokens:e})=>e.theme.foregroundPrimary};
249
+ border: 1px solid ${({tokens:e})=>e.theme.foregroundSecondary};
250
+ border-radius: ${({borderRadius:e})=>e[4]};
251
+ }
252
+ `;var E=function(e,o,i,n){var a=arguments.length,r=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,o,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(r=(a<3?s(r):a>3?s(o,i,r):s(o,i))||r);return a>3&&r&&Object.defineProperty(o,i,r),r};let C=class extends t.i{constructor(){super(),this.unsubscribe=[],this.paymentAsset=k.PayController.state.paymentAsset,this.amount=k.PayController.state.amount,this.unsubscribe.push(k.PayController.subscribeKey("paymentAsset",o=>{this.paymentAsset=o}),k.PayController.subscribeKey("amount",o=>{this.amount=o}))}disconnectedCallback(){this.unsubscribe.forEach(o=>o())}render(){const i=t.ChainController.getAllRequestedCaipNetworks().find(n=>n.caipNetworkId===this.paymentAsset.network);return t.b`<wui-flex
253
+ alignItems="center"
254
+ gap="1"
255
+ .padding=${["1","2","1","1"]}
256
+ class="transfers-badge"
257
+ >
258
+ <wui-image src=${t.o(this.paymentAsset.metadata.logoURI)} size="xl"></wui-image>
259
+ <wui-text variant="lg-regular" color="primary">
260
+ ${this.amount} ${this.paymentAsset.metadata.symbol}
261
+ </wui-text>
262
+ <wui-text variant="sm-regular" color="secondary">
263
+ on ${(i==null?void 0:i.name)??"Unknown"}
264
+ </wui-text>
265
+ </wui-flex>`}};C.styles=[q];E([t.n()],C.prototype,"paymentAsset",void 0);E([t.n()],C.prototype,"amount",void 0);C=E([t.customElement("w3m-pay-header")],C);const Q=t.css`
266
+ :host {
267
+ height: 60px;
268
+ }
269
+
270
+ :host > wui-flex {
271
+ box-sizing: border-box;
272
+ background-color: var(--local-header-background-color);
273
+ }
274
+
275
+ wui-text {
276
+ background-color: var(--local-header-background-color);
277
+ }
278
+
279
+ wui-flex.w3m-header-title {
280
+ transform: translateY(0);
281
+ opacity: 1;
282
+ }
283
+
284
+ wui-flex.w3m-header-title[view-direction='prev'] {
285
+ animation:
286
+ slide-down-out 120ms forwards ${({easings:e})=>e["ease-out-power-2"]},
287
+ slide-down-in 120ms forwards ${({easings:e})=>e["ease-out-power-2"]};
288
+ animation-delay: 0ms, 200ms;
289
+ }
290
+
291
+ wui-flex.w3m-header-title[view-direction='next'] {
292
+ animation:
293
+ slide-up-out 120ms forwards ${({easings:e})=>e["ease-out-power-2"]},
294
+ slide-up-in 120ms forwards ${({easings:e})=>e["ease-out-power-2"]};
295
+ animation-delay: 0ms, 200ms;
296
+ }
297
+
298
+ wui-icon-button[data-hidden='true'] {
299
+ opacity: 0 !important;
300
+ pointer-events: none;
301
+ }
302
+
303
+ @keyframes slide-up-out {
304
+ from {
305
+ transform: translateY(0px);
306
+ opacity: 1;
307
+ }
308
+ to {
309
+ transform: translateY(3px);
310
+ opacity: 0;
311
+ }
312
+ }
313
+
314
+ @keyframes slide-up-in {
315
+ from {
316
+ transform: translateY(-3px);
317
+ opacity: 0;
318
+ }
319
+ to {
320
+ transform: translateY(0);
321
+ opacity: 1;
322
+ }
323
+ }
324
+
325
+ @keyframes slide-down-out {
326
+ from {
327
+ transform: translateY(0px);
328
+ opacity: 1;
329
+ }
330
+ to {
331
+ transform: translateY(-3px);
332
+ opacity: 0;
333
+ }
334
+ }
335
+
336
+ @keyframes slide-down-in {
337
+ from {
338
+ transform: translateY(3px);
339
+ opacity: 0;
340
+ }
341
+ to {
342
+ transform: translateY(0);
343
+ opacity: 1;
344
+ }
345
+ }
346
+ `;var b=function(e,o,i,n){var a=arguments.length,r=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,o,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(r=(a<3?s(r):a>3?s(o,i,r):s(o,i))||r);return a>3&&r&&Object.defineProperty(o,i,r),r};const Z=["SmartSessionList"],J={PayWithExchange:t.vars.tokens.theme.foregroundPrimary};function _(){var d,h,y,I,O,P,N,T;const e=(h=(d=t.RouterController.state.data)==null?void 0:d.connector)==null?void 0:h.name,o=(I=(y=t.RouterController.state.data)==null?void 0:y.wallet)==null?void 0:I.name,i=(P=(O=t.RouterController.state.data)==null?void 0:O.network)==null?void 0:P.name,n=o??e,a=t.ConnectorController.getConnectors(),r=a.length===1&&((N=a[0])==null?void 0:N.id)==="w3m-email",s=(T=t.ChainController.getAccountData())==null?void 0:T.socialProvider,l=s?s.charAt(0).toUpperCase()+s.slice(1):"Connect Social";return{Connect:`Connect ${r?"Email":""} Wallet`,Create:"Create Wallet",ChooseAccountName:void 0,Account:void 0,AccountSettings:void 0,AllWallets:"All Wallets",ApproveTransaction:"Approve Transaction",BuyInProgress:"Buy",UsageExceeded:"Usage Exceeded",ConnectingExternal:n??"Connect Wallet",ConnectingWalletConnect:n??"WalletConnect",ConnectingWalletConnectBasic:"WalletConnect",ConnectingSiwe:"Sign In",Convert:"Convert",ConvertSelectToken:"Select token",ConvertPreview:"Preview Convert",Downloads:n?`Get ${n}`:"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",ProfileWallets:"Wallets",SwitchNetwork:i??"Switch Network",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",WalletSendConfirmed:"Confirmed",WhatIsANetwork:"What is a network?",WhatIsAWallet:"What is a Wallet?",ConnectWallets:"Connect Wallet",ConnectSocials:"All Socials",ConnectingSocial:l,ConnectingMultiChain:"Select Chain",ConnectingFarcaster:"Farcaster",SwitchActiveChain:"Switch Chain",SmartSessionCreated:void 0,SmartSessionList:"Smart Sessions",SIWXSignMessage:"Sign In",PayLoading:"Processing payment...",PayQuote:"Payment Quote",DataCapture:"Profile",DataCaptureOtpConfirm:"Confirm Email",FundWallet:"Fund Wallet",PayWithExchange:"Deposit from Exchange",PayWithExchangeSelectAsset:"Select Asset",SmartAccountSettings:"Smart Account Settings"}}let p=class extends t.i{constructor(){super(),this.unsubscribe=[],this.heading=_()[t.RouterController.state.view],this.network=t.ChainController.state.activeCaipNetwork,this.networkImage=t.AssetUtil.getNetworkImage(this.network),this.showBack=!1,this.prevHistoryLength=1,this.view=t.RouterController.state.view,this.viewDirection="",this.unsubscribe.push(t.AssetController.subscribeNetworkImages(()=>{this.networkImage=t.AssetUtil.getNetworkImage(this.network)}),t.RouterController.subscribeKey("view",o=>{setTimeout(()=>{this.view=o,this.heading=_()[o]},t.ConstantsUtil$3.ANIMATION_DURATIONS.HeaderText),this.onViewChange(),this.onHistoryChange()}),t.ChainController.subscribeKey("activeCaipNetwork",o=>{this.network=o,this.networkImage=t.AssetUtil.getNetworkImage(this.network)}))}disconnectCallback(){this.unsubscribe.forEach(o=>o())}render(){const o=J[t.RouterController.state.view]??t.vars.tokens.theme.backgroundPrimary;return this.style.setProperty("--local-header-background-color",o),t.b`
347
+ <wui-flex
348
+ .padding=${["0","4","0","4"]}
349
+ justifyContent="space-between"
350
+ alignItems="center"
351
+ >
352
+ ${this.leftHeaderTemplate()} ${this.titleTemplate()} ${this.rightHeaderTemplate()}
353
+ </wui-flex>
354
+ `}onWalletHelp(){t.EventsController.sendEvent({type:"track",event:"CLICK_WALLET_HELP"}),t.RouterController.push("WhatIsAWallet")}async onClose(){await D.safeClose()}rightHeaderTemplate(){var i,n,a;const o=(a=(n=(i=t.OptionsController)==null?void 0:i.state)==null?void 0:n.features)==null?void 0:a.smartSessions;return t.RouterController.state.view!=="Account"||!o?this.closeButtonTemplate():t.b`<wui-flex>
355
+ <wui-icon-button
356
+ icon="clock"
357
+ size="lg"
358
+ iconSize="lg"
359
+ type="neutral"
360
+ variant="primary"
361
+ @click=${()=>t.RouterController.push("SmartSessionList")}
362
+ data-testid="w3m-header-smart-sessions"
363
+ ></wui-icon-button>
364
+ ${this.closeButtonTemplate()}
365
+ </wui-flex> `}closeButtonTemplate(){return t.b`
366
+ <wui-icon-button
367
+ icon="close"
368
+ size="lg"
369
+ type="neutral"
370
+ variant="primary"
371
+ iconSize="lg"
372
+ @click=${this.onClose.bind(this)}
373
+ data-testid="w3m-header-close"
374
+ ></wui-icon-button>
375
+ `}titleTemplate(){if(this.view==="PayQuote")return t.b`<w3m-pay-header></w3m-pay-header>`;const o=Z.includes(this.view);return t.b`
376
+ <wui-flex
377
+ view-direction="${this.viewDirection}"
378
+ class="w3m-header-title"
379
+ alignItems="center"
380
+ gap="2"
381
+ >
382
+ <wui-text
383
+ display="inline"
384
+ variant="lg-regular"
385
+ color="primary"
386
+ data-testid="w3m-header-text"
387
+ >
388
+ ${this.heading}
389
+ </wui-text>
390
+ ${o?t.b`<wui-tag variant="accent" size="md">Beta</wui-tag>`:null}
391
+ </wui-flex>
392
+ `}leftHeaderTemplate(){var h;const{view:o}=t.RouterController.state,i=o==="Connect",n=t.OptionsController.state.enableEmbedded,a=o==="ApproveTransaction",r=o==="ConnectingSiwe",s=o==="Account",l=t.OptionsController.state.enableNetworkSwitch,d=a||r||i&&n;return s&&l?t.b`<wui-select
393
+ id="dynamic"
394
+ data-testid="w3m-account-select-network"
395
+ active-network=${t.o((h=this.network)==null?void 0:h.name)}
396
+ @click=${this.onNetworks.bind(this)}
397
+ imageSrc=${t.o(this.networkImage)}
398
+ ></wui-select>`:this.showBack&&!d?t.b`<wui-icon-button
399
+ data-testid="header-back"
400
+ id="dynamic"
401
+ icon="chevronLeft"
402
+ size="lg"
403
+ iconSize="lg"
404
+ type="neutral"
405
+ variant="primary"
406
+ @click=${this.onGoBack.bind(this)}
407
+ ></wui-icon-button>`:t.b`<wui-icon-button
408
+ data-hidden=${!i}
409
+ id="dynamic"
410
+ icon="helpCircle"
411
+ size="lg"
412
+ iconSize="lg"
413
+ type="neutral"
414
+ variant="primary"
415
+ @click=${this.onWalletHelp.bind(this)}
416
+ ></wui-icon-button>`}onNetworks(){this.isAllowedNetworkSwitch()&&(t.EventsController.sendEvent({type:"track",event:"CLICK_NETWORKS"}),t.RouterController.push("Networks"))}isAllowedNetworkSwitch(){const o=t.ChainController.getAllRequestedCaipNetworks(),i=o?o.length>1:!1,n=o==null?void 0:o.find(({id:a})=>{var r;return a===((r=this.network)==null?void 0:r.id)});return i||!n}onViewChange(){const{history:o}=t.RouterController.state;let i=t.ConstantsUtil$3.VIEW_DIRECTION.Next;o.length<this.prevHistoryLength&&(i=t.ConstantsUtil$3.VIEW_DIRECTION.Prev),this.prevHistoryLength=o.length,this.viewDirection=i}async onHistoryChange(){var n;const{history:o}=t.RouterController.state,i=(n=this.shadowRoot)==null?void 0:n.querySelector("#dynamic");o.length>1&&!this.showBack&&i?(await i.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.showBack=!0,i.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"})):o.length<=1&&this.showBack&&i&&(await i.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.showBack=!1,i.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}onGoBack(){t.RouterController.goBack()}};p.styles=Q;b([t.r()],p.prototype,"heading",void 0);b([t.r()],p.prototype,"network",void 0);b([t.r()],p.prototype,"networkImage",void 0);b([t.r()],p.prototype,"showBack",void 0);b([t.r()],p.prototype,"prevHistoryLength",void 0);b([t.r()],p.prototype,"view",void 0);b([t.r()],p.prototype,"viewDirection",void 0);p=b([t.customElement("w3m-header")],p);const ee=t.css`
417
+ :host {
418
+ display: flex;
419
+ align-items: center;
420
+ gap: ${({spacing:e})=>e[1]};
421
+ padding: ${({spacing:e})=>e[2]} ${({spacing:e})=>e[3]}
422
+ ${({spacing:e})=>e[2]} ${({spacing:e})=>e[2]};
423
+ border-radius: ${({borderRadius:e})=>e[20]};
424
+ background-color: ${({tokens:e})=>e.theme.foregroundPrimary};
425
+ box-shadow:
426
+ 0px 0px 8px 0px rgba(0, 0, 0, 0.1),
427
+ inset 0 0 0 1px ${({tokens:e})=>e.theme.borderPrimary};
428
+ max-width: 320px;
429
+ }
430
+
431
+ wui-icon-box {
432
+ border-radius: ${({borderRadius:e})=>e.round} !important;
433
+ overflow: hidden;
434
+ }
435
+
436
+ wui-loading-spinner {
437
+ padding: ${({spacing:e})=>e[1]};
438
+ background-color: ${({tokens:e})=>e.core.foregroundAccent010};
439
+ border-radius: ${({borderRadius:e})=>e.round} !important;
440
+ }
441
+ `;var A=function(e,o,i,n){var a=arguments.length,r=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,o,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(r=(a<3?s(r):a>3?s(o,i,r):s(o,i))||r);return a>3&&r&&Object.defineProperty(o,i,r),r};let x=class extends t.i{constructor(){super(...arguments),this.message="",this.variant="success"}render(){return t.b`
442
+ ${this.templateIcon()}
443
+ <wui-text variant="lg-regular" color="primary" data-testid="wui-snackbar-message"
444
+ >${this.message}</wui-text
445
+ >
446
+ `}templateIcon(){const o={success:"success",error:"error",warning:"warning",info:"default"},i={success:"checkmark",error:"warning",warning:"warningCircle",info:"info"};return this.variant==="loading"?t.b`<wui-loading-spinner size="md" color="accent-primary"></wui-loading-spinner>`:t.b`<wui-icon-box
447
+ size="md"
448
+ color=${o[this.variant]}
449
+ icon=${i[this.variant]}
450
+ ></wui-icon-box>`}};x.styles=[t.resetStyles,ee];A([t.n()],x.prototype,"message",void 0);A([t.n()],x.prototype,"variant",void 0);x=A([t.customElement("wui-snackbar")],x);const te=t.i$1`
451
+ :host {
452
+ display: block;
453
+ position: absolute;
454
+ opacity: 0;
455
+ pointer-events: none;
456
+ top: 11px;
457
+ left: 50%;
458
+ width: max-content;
459
+ }
460
+ `;var H=function(e,o,i,n){var a=arguments.length,r=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,o,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(r=(a<3?s(r):a>3?s(o,i,r):s(o,i))||r);return a>3&&r&&Object.defineProperty(o,i,r),r};let S=class extends t.i{constructor(){super(),this.unsubscribe=[],this.timeout=void 0,this.open=t.SnackController.state.open,this.unsubscribe.push(t.SnackController.subscribeKey("open",o=>{this.open=o,this.onOpen()}))}disconnectedCallback(){clearTimeout(this.timeout),this.unsubscribe.forEach(o=>o())}render(){const{message:o,variant:i}=t.SnackController.state;return t.b` <wui-snackbar message=${o} variant=${i}></wui-snackbar> `}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),t.SnackController.state.autoClose&&(this.timeout=setTimeout(()=>t.SnackController.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"})}};S.styles=te;H([t.r()],S.prototype,"open",void 0);S=H([t.customElement("w3m-snackbar")],S);const oe=t.css`
461
+ :host {
462
+ z-index: ${({tokens:e})=>e.core.zIndex};
463
+ display: block;
464
+ backface-visibility: hidden;
465
+ will-change: opacity;
466
+ position: fixed;
467
+ top: 0;
468
+ left: 0;
469
+ right: 0;
470
+ bottom: 0;
471
+ pointer-events: none;
472
+ opacity: 0;
473
+ background-color: ${({tokens:e})=>e.theme.overlay};
474
+ backdrop-filter: blur(0px);
475
+ transition:
476
+ opacity ${({durations:e})=>e.lg} ${({easings:e})=>e["ease-out-power-2"]},
477
+ backdrop-filter ${({durations:e})=>e.lg}
478
+ ${({easings:e})=>e["ease-out-power-2"]};
479
+ will-change: opacity;
480
+ }
481
+
482
+ :host(.open) {
483
+ opacity: 1;
484
+ backdrop-filter: blur(8px);
485
+ }
486
+
487
+ :host(.appkit-modal) {
488
+ position: relative;
489
+ pointer-events: unset;
490
+ background: none;
491
+ width: 100%;
492
+ opacity: 1;
493
+ }
494
+
495
+ wui-card {
496
+ max-width: var(--apkt-modal-width);
497
+ width: 100%;
498
+ position: relative;
499
+ outline: none;
500
+ transform: translateY(4px);
501
+ box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.05);
502
+ transition:
503
+ transform ${({durations:e})=>e.lg}
504
+ ${({easings:e})=>e["ease-out-power-2"]},
505
+ border-radius ${({durations:e})=>e.lg}
506
+ ${({easings:e})=>e["ease-out-power-1"]},
507
+ background-color ${({durations:e})=>e.lg}
508
+ ${({easings:e})=>e["ease-out-power-1"]},
509
+ box-shadow ${({durations:e})=>e.lg}
510
+ ${({easings:e})=>e["ease-out-power-1"]};
511
+ will-change: border-radius, background-color, transform, box-shadow;
512
+ background-color: ${({tokens:e})=>e.theme.backgroundPrimary};
513
+ padding: var(--local-modal-padding);
514
+ box-sizing: border-box;
515
+ }
516
+
517
+ :host(.open) wui-card {
518
+ transform: translateY(0px);
519
+ }
520
+
521
+ wui-card::before {
522
+ z-index: 1;
523
+ pointer-events: none;
524
+ content: '';
525
+ position: absolute;
526
+ inset: 0;
527
+ border-radius: clamp(0px, var(--apkt-borderRadius-8), 44px);
528
+ transition: box-shadow ${({durations:e})=>e.lg}
529
+ ${({easings:e})=>e["ease-out-power-2"]};
530
+ transition-delay: ${({durations:e})=>e.md};
531
+ will-change: box-shadow;
532
+ }
533
+
534
+ :host([data-mobile-fullscreen='true']) wui-card::before {
535
+ border-radius: 0px;
536
+ }
537
+
538
+ :host([data-border='true']) wui-card::before {
539
+ box-shadow: inset 0px 0px 0px 4px ${({tokens:e})=>e.theme.foregroundSecondary};
540
+ }
541
+
542
+ :host([data-border='false']) wui-card::before {
543
+ box-shadow: inset 0px 0px 0px 1px ${({tokens:e})=>e.theme.borderPrimaryDark};
544
+ }
545
+
546
+ :host([data-border='true']) wui-card {
547
+ animation:
548
+ fade-in ${({durations:e})=>e.lg} ${({easings:e})=>e["ease-out-power-2"]},
549
+ card-background-border var(--apkt-duration-dynamic)
550
+ ${({easings:e})=>e["ease-out-power-2"]};
551
+ animation-fill-mode: backwards, both;
552
+ animation-delay: var(--apkt-duration-dynamic);
553
+ }
554
+
555
+ :host([data-border='false']) wui-card {
556
+ animation:
557
+ fade-in ${({durations:e})=>e.lg} ${({easings:e})=>e["ease-out-power-2"]},
558
+ card-background-default var(--apkt-duration-dynamic)
559
+ ${({easings:e})=>e["ease-out-power-2"]};
560
+ animation-fill-mode: backwards, both;
561
+ animation-delay: 0s;
562
+ }
563
+
564
+ :host(.appkit-modal) wui-card {
565
+ max-width: var(--apkt-modal-width);
566
+ }
567
+
568
+ wui-card[shake='true'] {
569
+ animation:
570
+ fade-in ${({durations:e})=>e.lg} ${({easings:e})=>e["ease-out-power-2"]},
571
+ w3m-shake ${({durations:e})=>e.xl}
572
+ ${({easings:e})=>e["ease-out-power-2"]};
573
+ }
574
+
575
+ wui-flex {
576
+ overflow-x: hidden;
577
+ overflow-y: auto;
578
+ display: flex;
579
+ align-items: center;
580
+ justify-content: center;
581
+ width: 100%;
582
+ height: 100%;
583
+ }
584
+
585
+ @media (max-height: 700px) and (min-width: 431px) {
586
+ wui-flex {
587
+ align-items: flex-start;
588
+ }
589
+
590
+ wui-card {
591
+ margin: var(--apkt-spacing-6) 0px;
592
+ }
593
+ }
594
+
595
+ @media (max-width: 430px) {
596
+ :host([data-mobile-fullscreen='true']) {
597
+ height: 100dvh;
598
+ }
599
+ :host([data-mobile-fullscreen='true']) wui-flex {
600
+ align-items: stretch;
601
+ }
602
+ :host([data-mobile-fullscreen='true']) wui-card {
603
+ max-width: 100%;
604
+ height: 100%;
605
+ border-radius: 0;
606
+ border: none;
607
+ }
608
+ :host(:not([data-mobile-fullscreen='true'])) wui-flex {
609
+ align-items: flex-end;
610
+ }
611
+
612
+ :host(:not([data-mobile-fullscreen='true'])) wui-card {
613
+ max-width: 100%;
614
+ border-bottom: none;
615
+ }
616
+
617
+ :host(:not([data-mobile-fullscreen='true'])) wui-card[data-embedded='true'] {
618
+ border-bottom-left-radius: clamp(0px, var(--apkt-borderRadius-8), 44px);
619
+ border-bottom-right-radius: clamp(0px, var(--apkt-borderRadius-8), 44px);
620
+ }
621
+
622
+ :host(:not([data-mobile-fullscreen='true'])) wui-card:not([data-embedded='true']) {
623
+ border-bottom-left-radius: 0px;
624
+ border-bottom-right-radius: 0px;
625
+ }
626
+
627
+ wui-card[shake='true'] {
628
+ animation: w3m-shake 0.5s ${({easings:e})=>e["ease-out-power-2"]};
629
+ }
630
+ }
631
+
632
+ @keyframes fade-in {
633
+ 0% {
634
+ transform: scale(0.99) translateY(4px);
635
+ }
636
+ 100% {
637
+ transform: scale(1) translateY(0);
638
+ }
639
+ }
640
+
641
+ @keyframes w3m-shake {
642
+ 0% {
643
+ transform: scale(1) rotate(0deg);
644
+ }
645
+ 20% {
646
+ transform: scale(1) rotate(-1deg);
647
+ }
648
+ 40% {
649
+ transform: scale(1) rotate(1.5deg);
650
+ }
651
+ 60% {
652
+ transform: scale(1) rotate(-1.5deg);
653
+ }
654
+ 80% {
655
+ transform: scale(1) rotate(1deg);
656
+ }
657
+ 100% {
658
+ transform: scale(1) rotate(0deg);
659
+ }
660
+ }
661
+
662
+ @keyframes card-background-border {
663
+ from {
664
+ background-color: ${({tokens:e})=>e.theme.backgroundPrimary};
665
+ }
666
+ to {
667
+ background-color: ${({tokens:e})=>e.theme.foregroundSecondary};
668
+ }
669
+ }
670
+
671
+ @keyframes card-background-default {
672
+ from {
673
+ background-color: ${({tokens:e})=>e.theme.foregroundSecondary};
674
+ }
675
+ to {
676
+ background-color: ${({tokens:e})=>e.theme.backgroundPrimary};
677
+ }
678
+ }
679
+ `;var m=function(e,o,i,n){var a=arguments.length,r=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,o,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(r=(a<3?s(r):a>3?s(o,i,r):s(o,i))||r);return a>3&&r&&Object.defineProperty(o,i,r),r};const z="scroll-lock",ie={PayWithExchange:"0",PayWithExchangeSelectAsset:"0",Pay:"0",PayQuote:"0",PayLoading:"0"};class u extends t.i{constructor(){super(),this.unsubscribe=[],this.abortController=void 0,this.hasPrefetched=!1,this.enableEmbedded=t.OptionsController.state.enableEmbedded,this.open=t.ModalController.state.open,this.caipAddress=t.ChainController.state.activeCaipAddress,this.caipNetwork=t.ChainController.state.activeCaipNetwork,this.shake=t.ModalController.state.shake,this.filterByNamespace=t.ConnectorController.state.filterByNamespace,this.padding=t.vars.spacing[1],this.mobileFullScreen=t.OptionsController.state.enableMobileFullScreen,this.initializeTheming(),t.ApiController.prefetchAnalyticsConfig(),this.unsubscribe.push(t.ModalController.subscribeKey("open",o=>o?this.onOpen():this.onClose()),t.ModalController.subscribeKey("shake",o=>this.shake=o),t.ChainController.subscribeKey("activeCaipNetwork",o=>this.onNewNetwork(o)),t.ChainController.subscribeKey("activeCaipAddress",o=>this.onNewAddress(o)),t.OptionsController.subscribeKey("enableEmbedded",o=>this.enableEmbedded=o),t.ConnectorController.subscribeKey("filterByNamespace",o=>{var i;this.filterByNamespace!==o&&!((i=t.ChainController.getAccountData(o))!=null&&i.caipAddress)&&(t.ApiController.fetchRecommendedWallets(),this.filterByNamespace=o)}),t.RouterController.subscribeKey("view",()=>{this.dataset.border=t.HelpersUtil.hasFooter()?"true":"false",this.padding=ie[t.RouterController.state.view]??t.vars.spacing[1]}))}firstUpdated(){if(this.dataset.border=t.HelpersUtil.hasFooter()?"true":"false",this.mobileFullScreen&&this.setAttribute("data-mobile-fullscreen","true"),this.caipAddress){if(this.enableEmbedded){t.ModalController.close(),this.prefetch();return}this.onNewAddress(this.caipAddress)}this.open&&this.onOpen(),this.enableEmbedded&&this.prefetch()}disconnectedCallback(){this.unsubscribe.forEach(o=>o()),this.onRemoveKeyboardListener()}render(){return this.style.setProperty("--local-modal-padding",this.padding),this.enableEmbedded?t.b`${this.contentTemplate()}
680
+ <w3m-tooltip></w3m-tooltip> `:this.open?t.b`
681
+ <wui-flex @click=${this.onOverlayClick.bind(this)} data-testid="w3m-modal-overlay">
682
+ ${this.contentTemplate()}
683
+ </wui-flex>
684
+ <w3m-tooltip></w3m-tooltip>
685
+ `:null}contentTemplate(){return t.b` <wui-card
686
+ shake="${this.shake}"
687
+ data-embedded="${t.o(this.enableEmbedded)}"
688
+ role="alertdialog"
689
+ aria-modal="true"
690
+ tabindex="0"
691
+ data-testid="w3m-modal-card"
692
+ >
693
+ <w3m-header></w3m-header>
694
+ <w3m-router></w3m-router>
695
+ <w3m-footer></w3m-footer>
696
+ <w3m-snackbar></w3m-snackbar>
697
+ <w3m-alertbar></w3m-alertbar>
698
+ </wui-card>`}async onOverlayClick(o){if(o.target===o.currentTarget){if(this.mobileFullScreen)return;await this.handleClose()}}async handleClose(){await D.safeClose()}initializeTheming(){const{themeVariables:o,themeMode:i}=t.ThemeController.state,n=t.UiHelperUtil.getColorTheme(i);t.initializeTheming(o,n)}onClose(){this.open=!1,this.classList.remove("open"),this.onScrollUnlock(),t.SnackController.hide(),this.onRemoveKeyboardListener()}onOpen(){this.open=!0,this.classList.add("open"),this.onScrollLock(),this.onAddKeyboardListener()}onScrollLock(){const o=document.createElement("style");o.dataset.w3m=z,o.textContent=`
699
+ body {
700
+ touch-action: none;
701
+ overflow: hidden;
702
+ overscroll-behavior: contain;
703
+ }
704
+ w3m-modal {
705
+ pointer-events: auto;
706
+ }
707
+ `,document.head.appendChild(o)}onScrollUnlock(){const o=document.head.querySelector(`style[data-w3m="${z}"]`);o&&o.remove()}onAddKeyboardListener(){var i;this.abortController=new AbortController;const o=(i=this.shadowRoot)==null?void 0:i.querySelector("wui-card");o==null||o.focus(),window.addEventListener("keydown",n=>{if(n.key==="Escape")this.handleClose();else if(n.key==="Tab"){const{tagName:a}=n.target;a&&!a.includes("W3M-")&&!a.includes("WUI-")&&(o==null||o.focus())}},this.abortController)}onRemoveKeyboardListener(){var o;(o=this.abortController)==null||o.abort(),this.abortController=void 0}async onNewAddress(o){const i=t.ChainController.state.isSwitchingNamespace,n=t.RouterController.state.view==="ProfileWallets";!o&&!i&&!n&&t.ModalController.close(),await t.SIWXUtil.initializeIfEnabled(o),this.caipAddress=o,t.ChainController.setIsSwitchingNamespace(!1)}onNewNetwork(o){var h,y;const i=this.caipNetwork,n=(h=i==null?void 0:i.caipNetworkId)==null?void 0:h.toString(),a=(y=o==null?void 0:o.caipNetworkId)==null?void 0:y.toString(),r=n!==a,s=t.RouterController.state.view==="UnsupportedChain",l=t.ModalController.state.open;let d=!1;this.enableEmbedded&&t.RouterController.state.view==="SwitchNetwork"&&(d=!0),r&&B.SwapController.resetState(),l&&s&&(d=!0),d&&t.RouterController.state.view!=="SIWXSignMessage"&&t.RouterController.goBack(),this.caipNetwork=o}prefetch(){this.hasPrefetched||(t.ApiController.prefetch(),t.ApiController.fetchWalletsByPage({page:1}),this.hasPrefetched=!0)}}u.styles=oe;m([t.n({type:Boolean})],u.prototype,"enableEmbedded",void 0);m([t.r()],u.prototype,"open",void 0);m([t.r()],u.prototype,"caipAddress",void 0);m([t.r()],u.prototype,"caipNetwork",void 0);m([t.r()],u.prototype,"shake",void 0);m([t.r()],u.prototype,"filterByNamespace",void 0);m([t.r()],u.prototype,"padding",void 0);m([t.r()],u.prototype,"mobileFullScreen",void 0);exports.W3mModal=class extends u{};exports.W3mModal=m([t.customElement("w3m-modal")],exports.W3mModal);exports.AppKitModal=class extends u{};exports.AppKitModal=m([t.customElement("appkit-modal")],exports.AppKitModal);const re=t.css`
708
+ .icon-box {
709
+ width: 64px;
710
+ height: 64px;
711
+ border-radius: ${({borderRadius:e})=>e[5]};
712
+ background-color: ${({colors:e})=>e.semanticError010};
713
+ }
714
+ `;var ne=function(e,o,i,n){var a=arguments.length,r=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,o,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(r=(a<3?s(r):a>3?s(o,i,r):s(o,i))||r);return a>3&&r&&Object.defineProperty(o,i,r),r};exports.W3mUsageExceededView=class extends t.i{constructor(){super()}render(){return t.b`
715
+ <wui-flex
716
+ flexDirection="column"
717
+ alignItems="center"
718
+ gap="4"
719
+ .padding="${["1","3","4","3"]}"
720
+ >
721
+ <wui-flex justifyContent="center" alignItems="center" class="icon-box">
722
+ <wui-icon size="xxl" color="error" name="warningCircle"></wui-icon>
723
+ </wui-flex>
724
+
725
+ <wui-text variant="lg-medium" color="primary" align="center">
726
+ The app isn't responding as expected
727
+ </wui-text>
728
+ <wui-text variant="md-regular" color="secondary" align="center">
729
+ Try again or reach out to the app team for help.
730
+ </wui-text>
731
+
732
+ <wui-button
733
+ variant="neutral-secondary"
734
+ size="md"
735
+ @click=${this.onTryAgainClick.bind(this)}
736
+ data-testid="w3m-usage-exceeded-button"
737
+ >
738
+ <wui-icon color="inherit" slot="iconLeft" name="refresh"></wui-icon>
739
+ Try Again
740
+ </wui-button>
741
+ </wui-flex>
742
+ `}onTryAgainClick(){t.RouterController.goBack()}};exports.W3mUsageExceededView.styles=re;exports.W3mUsageExceededView=ne([t.customElement("w3m-usage-exceeded-view")],exports.W3mUsageExceededView);const ae=t.css`
743
+ :host {
744
+ width: 100%;
745
+ }
746
+ `;var c=function(e,o,i,n){var a=arguments.length,r=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,o,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(r=(a<3?s(r):a>3?s(o,i,r):s(o,i))||r);return a>3&&r&&Object.defineProperty(o,i,r),r};exports.W3mListWallet=class extends t.i{constructor(){super(...arguments),this.hasImpressionSent=!1,this.walletImages=[],this.imageSrc="",this.name="",this.size="md",this.tabIdx=void 0,this.disabled=!1,this.showAllWallets=!1,this.loading=!1,this.loadingSpinnerColor="accent-100",this.rdnsId="",this.displayIndex=void 0,this.walletRank=void 0,this.namespaces=[]}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.cleanupIntersectionObserver()}updated(o){super.updated(o),(o.has("name")||o.has("imageSrc")||o.has("walletRank"))&&(this.hasImpressionSent=!1),o.has("walletRank")&&this.walletRank&&!this.intersectionObserver&&this.setupIntersectionObserver()}setupIntersectionObserver(){this.intersectionObserver=new IntersectionObserver(o=>{o.forEach(i=>{i.isIntersecting&&!this.loading&&!this.hasImpressionSent&&this.sendImpressionEvent()})},{threshold:.1}),this.intersectionObserver.observe(this)}cleanupIntersectionObserver(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=void 0)}sendImpressionEvent(){!this.name||this.hasImpressionSent||!this.walletRank||(this.hasImpressionSent=!0,(this.rdnsId||this.name)&&t.EventsController.sendWalletImpressionEvent({name:this.name,walletRank:this.walletRank,rdnsId:this.rdnsId,view:t.RouterController.state.view,displayIndex:this.displayIndex}))}handleGetWalletNamespaces(){return Object.keys(t.AdapterController.state.adapters).length>1?this.namespaces:[]}render(){return t.b`
747
+ <wui-list-wallet
748
+ .walletImages=${this.walletImages}
749
+ imageSrc=${t.o(this.imageSrc)}
750
+ name=${this.name}
751
+ size=${t.o(this.size)}
752
+ tagLabel=${t.o(this.tagLabel)}
753
+ .tagVariant=${this.tagVariant}
754
+ .walletIcon=${this.walletIcon}
755
+ .tabIdx=${this.tabIdx}
756
+ .disabled=${this.disabled}
757
+ .showAllWallets=${this.showAllWallets}
758
+ .loading=${this.loading}
759
+ loadingSpinnerColor=${this.loadingSpinnerColor}
760
+ .namespaces=${this.handleGetWalletNamespaces()}
761
+ ></wui-list-wallet>
762
+ `}};exports.W3mListWallet.styles=ae;c([t.n({type:Array})],exports.W3mListWallet.prototype,"walletImages",void 0);c([t.n()],exports.W3mListWallet.prototype,"imageSrc",void 0);c([t.n()],exports.W3mListWallet.prototype,"name",void 0);c([t.n()],exports.W3mListWallet.prototype,"size",void 0);c([t.n()],exports.W3mListWallet.prototype,"tagLabel",void 0);c([t.n()],exports.W3mListWallet.prototype,"tagVariant",void 0);c([t.n()],exports.W3mListWallet.prototype,"walletIcon",void 0);c([t.n()],exports.W3mListWallet.prototype,"tabIdx",void 0);c([t.n({type:Boolean})],exports.W3mListWallet.prototype,"disabled",void 0);c([t.n({type:Boolean})],exports.W3mListWallet.prototype,"showAllWallets",void 0);c([t.n({type:Boolean})],exports.W3mListWallet.prototype,"loading",void 0);c([t.n({type:String})],exports.W3mListWallet.prototype,"loadingSpinnerColor",void 0);c([t.n()],exports.W3mListWallet.prototype,"rdnsId",void 0);c([t.n()],exports.W3mListWallet.prototype,"displayIndex",void 0);c([t.n()],exports.W3mListWallet.prototype,"walletRank",void 0);c([t.n({type:Array})],exports.W3mListWallet.prototype,"namespaces",void 0);exports.W3mListWallet=c([t.customElement("w3m-list-wallet")],exports.W3mListWallet);const se=t.css`
763
+ :host {
764
+ --local-duration-height: 0s;
765
+ --local-duration: ${({durations:e})=>e.lg};
766
+ --local-transition: ${({easings:e})=>e["ease-out-power-2"]};
767
+ }
768
+
769
+ .container {
770
+ display: block;
771
+ overflow: hidden;
772
+ overflow: hidden;
773
+ position: relative;
774
+ height: var(--local-container-height);
775
+ transition: height var(--local-duration-height) var(--local-transition);
776
+ will-change: height, padding-bottom;
777
+ }
778
+
779
+ .container[data-mobile-fullscreen='true'] {
780
+ overflow: scroll;
781
+ }
782
+
783
+ .page {
784
+ position: absolute;
785
+ top: 0;
786
+ left: 0;
787
+ right: 0;
788
+ width: 100%;
789
+ height: auto;
790
+ width: inherit;
791
+ box-sizing: border-box;
792
+ display: flex;
793
+ flex-direction: column;
794
+ background-color: ${({tokens:e})=>e.theme.backgroundPrimary};
795
+ border-bottom-left-radius: var(--local-border-bottom-radius);
796
+ border-bottom-right-radius: var(--local-border-bottom-radius);
797
+ transition: border-bottom-left-radius var(--local-duration) var(--local-transition);
798
+ }
799
+
800
+ .page[data-mobile-fullscreen='true'] {
801
+ height: 100%;
802
+ }
803
+
804
+ .page-content {
805
+ display: flex;
806
+ flex-direction: column;
807
+ min-height: 100%;
808
+ }
809
+
810
+ .footer {
811
+ height: var(--apkt-footer-height);
812
+ }
813
+
814
+ div.page[view-direction^='prev-'] .page-content {
815
+ animation:
816
+ slide-left-out var(--local-duration) forwards var(--local-transition),
817
+ slide-left-in var(--local-duration) forwards var(--local-transition);
818
+ animation-delay: 0ms, var(--local-duration, ${({durations:e})=>e.lg});
819
+ }
820
+
821
+ div.page[view-direction^='next-'] .page-content {
822
+ animation:
823
+ slide-right-out var(--local-duration) forwards var(--local-transition),
824
+ slide-right-in var(--local-duration) forwards var(--local-transition);
825
+ animation-delay: 0ms, var(--local-duration, ${({durations:e})=>e.lg});
826
+ }
827
+
828
+ @keyframes slide-left-out {
829
+ from {
830
+ transform: translateX(0px) scale(1);
831
+ opacity: 1;
832
+ filter: blur(0px);
833
+ }
834
+ to {
835
+ transform: translateX(8px) scale(0.99);
836
+ opacity: 0;
837
+ filter: blur(4px);
838
+ }
839
+ }
840
+
841
+ @keyframes slide-left-in {
842
+ from {
843
+ transform: translateX(-8px) scale(0.99);
844
+ opacity: 0;
845
+ filter: blur(4px);
846
+ }
847
+ to {
848
+ transform: translateX(0) translateY(0) scale(1);
849
+ opacity: 1;
850
+ filter: blur(0px);
851
+ }
852
+ }
853
+
854
+ @keyframes slide-right-out {
855
+ from {
856
+ transform: translateX(0px) scale(1);
857
+ opacity: 1;
858
+ filter: blur(0px);
859
+ }
860
+ to {
861
+ transform: translateX(-8px) scale(0.99);
862
+ opacity: 0;
863
+ filter: blur(4px);
864
+ }
865
+ }
866
+
867
+ @keyframes slide-right-in {
868
+ from {
869
+ transform: translateX(8px) scale(0.99);
870
+ opacity: 0;
871
+ filter: blur(4px);
872
+ }
873
+ to {
874
+ transform: translateX(0) translateY(0) scale(1);
875
+ opacity: 1;
876
+ filter: blur(0px);
877
+ }
878
+ }
879
+ `;var f=function(e,o,i,n){var a=arguments.length,r=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,o,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(r=(a<3?s(r):a>3?s(o,i,r):s(o,i))||r);return a>3&&r&&Object.defineProperty(o,i,r),r};const le=60;exports.W3mRouterContainer=class extends t.i{constructor(){super(...arguments),this.resizeObserver=void 0,this.transitionDuration="0.15s",this.transitionFunction="",this.history="",this.view="",this.setView=void 0,this.viewDirection="",this.historyState="",this.previousHeight="0px",this.mobileFullScreen=t.OptionsController.state.enableMobileFullScreen,this.onViewportResize=()=>{this.updateContainerHeight()}}updated(o){if(o.has("history")){const i=this.history;this.historyState!==""&&this.historyState!==i&&this.onViewChange(i)}o.has("transitionDuration")&&this.style.setProperty("--local-duration",this.transitionDuration),o.has("transitionFunction")&&this.style.setProperty("--local-transition",this.transitionFunction)}firstUpdated(){var o;this.transitionFunction&&this.style.setProperty("--local-transition",this.transitionFunction),this.style.setProperty("--local-duration",this.transitionDuration),this.historyState=this.history,this.resizeObserver=new ResizeObserver(i=>{var n;for(const a of i)if(a.target===this.getWrapper()){let r=a.contentRect.height;const s=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--apkt-footer-height")||"0");if(this.mobileFullScreen){const l=((n=window.visualViewport)==null?void 0:n.height)||window.innerHeight,d=this.getHeaderHeight();r=l-d-s,this.style.setProperty("--local-border-bottom-radius","0px")}else r=r+s,this.style.setProperty("--local-border-bottom-radius",s?"var(--apkt-borderRadius-5)":"0px");this.style.setProperty("--local-container-height",`${r}px`),this.previousHeight!=="0px"&&this.style.setProperty("--local-duration-height",this.transitionDuration),this.previousHeight=`${r}px`}}),this.resizeObserver.observe(this.getWrapper()),this.updateContainerHeight(),window.addEventListener("resize",this.onViewportResize),(o=window.visualViewport)==null||o.addEventListener("resize",this.onViewportResize)}disconnectedCallback(){var i;const o=this.getWrapper();o&&this.resizeObserver&&this.resizeObserver.unobserve(o),window.removeEventListener("resize",this.onViewportResize),(i=window.visualViewport)==null||i.removeEventListener("resize",this.onViewportResize)}render(){return t.b`
880
+ <div class="container" data-mobile-fullscreen="${t.o(this.mobileFullScreen)}">
881
+ <div
882
+ class="page"
883
+ data-mobile-fullscreen="${t.o(this.mobileFullScreen)}"
884
+ view-direction="${this.viewDirection}"
885
+ >
886
+ <div class="page-content">
887
+ <slot></slot>
888
+ </div>
889
+ </div>
890
+ </div>
891
+ `}onViewChange(o){const i=o.split(",").filter(Boolean),n=this.historyState.split(",").filter(Boolean),a=n.length,r=i.length,s=i[i.length-1]||"",l=t.UiHelperUtil.cssDurationToNumber(this.transitionDuration);let d="";r>a?d="next":r<a?d="prev":r===a&&i[r-1]!==n[a-1]&&(d="next"),this.viewDirection=`${d}-${s}`,setTimeout(()=>{var h;this.historyState=o,(h=this.setView)==null||h.call(this,s)},l),setTimeout(()=>{this.viewDirection=""},l*2)}getWrapper(){var o;return(o=this.shadowRoot)==null?void 0:o.querySelector("div.page")}updateContainerHeight(){var a;const o=this.getWrapper();if(!o)return;const i=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--apkt-footer-height")||"0");let n=0;if(this.mobileFullScreen){const r=((a=window.visualViewport)==null?void 0:a.height)||window.innerHeight,s=this.getHeaderHeight();n=r-s-i,this.style.setProperty("--local-border-bottom-radius","0px")}else n=o.getBoundingClientRect().height+i,this.style.setProperty("--local-border-bottom-radius",i?"var(--apkt-borderRadius-5)":"0px");this.style.setProperty("--local-container-height",`${n}px`),this.previousHeight!=="0px"&&this.style.setProperty("--local-duration-height",this.transitionDuration),this.previousHeight=`${n}px`}getHeaderHeight(){return le}};exports.W3mRouterContainer.styles=[se];f([t.n({type:String})],exports.W3mRouterContainer.prototype,"transitionDuration",void 0);f([t.n({type:String})],exports.W3mRouterContainer.prototype,"transitionFunction",void 0);f([t.n({type:String})],exports.W3mRouterContainer.prototype,"history",void 0);f([t.n({type:String})],exports.W3mRouterContainer.prototype,"view",void 0);f([t.n({attribute:!1})],exports.W3mRouterContainer.prototype,"setView",void 0);f([t.r()],exports.W3mRouterContainer.prototype,"viewDirection",void 0);f([t.r()],exports.W3mRouterContainer.prototype,"historyState",void 0);f([t.r()],exports.W3mRouterContainer.prototype,"previousHeight",void 0);f([t.r()],exports.W3mRouterContainer.prototype,"mobileFullScreen",void 0);exports.W3mRouterContainer=f([t.customElement("w3m-router-container")],exports.W3mRouterContainer);exports.W3mModalBase=u;