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