PageSourceSearch

https://wemix.com/_next/static/chunks/7082.8e1c6f0bf5c20ee2.js

js wemix.com collected 2026-10-04 00:33:21 UTC 6,818 bytes, 131 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7082],{17082:function(e,t,i){i.r(t),i.d(t,{W3mWalletReceiveView:function(){return $}});var r=i(19045),o=i(94836),n=i(31756),s=i(83944),a=i(39674),c=i(65045),l=i(35143),d=i(35763),u=i(62250),w=i(83764),p=i(99321),h=i(78632);i(92706),i(79086),i(18749),i(43845);var m=i(70169),f=i(66704),b=i(73718),g=(0,b.iv)`
2  button {
3    width: 100%;
4    display: flex;
5    align-items: center;
6    justify-content: space-between;
7    gap: ${({spacing:e})=>e[4]};
8    background-color: ${({tokens:e})=>e.theme.foregroundPrimary};
9    border-radius: ${({borderRadius:e})=>e[3]};
10    border: none;
11    padding: ${({spacing:e})=>e[3]};
12    transition: background-color ${({durations:e})=>e.lg}
13      ${({easings:e})=>e["ease-out-power-2"]};
14    will-change: background-color;
15  }
16
17  /* -- Hover & Active states ----------------------------------------------------------- */
18  button:hover:enabled,
19  button:active:enabled {
20    background-color: ${({tokens:e})=>e.theme.foregroundSecondary};
21  }
22
23  wui-text {
24    flex: 1;
25    color: ${({tokens:e})=>e.theme.textSecondary};
26  }
27
28  wui-flex {
29    width: auto;
30    display: flex;
31    align-items: center;
32    gap: ${({spacing:e})=>e["01"]};
33  }
34
35  wui-icon {
36    color: ${({tokens:e})=>e.theme.iconDefault};
37  }
38
39  .network-icon {
40    position: relative;
41    width: 20px;
42    height: 20px;
43    border-radius: ${({borderRadius:e})=>e[4]};
44    overflow: hidden;
45    margin-left: -8px;
46  }
47
48  .network-icon:first-child {
49    margin-left: 0px;
50  }
51
52  .network-icon:after {
53    position: absolute;
54    inset: 0;
55    content: '';
56    display: block;
57    height: 100%;
58    width: 100%;
59    border-radius: ${({borderRadius:e})=>e[4]};
60    box-shadow: inset 0 0 0 1px ${({tokens:e})=>e.core.glass010};
61  }
62`,k=function(e,t,i,r){var o,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,i,s):o(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s};let y=class extends r.oi{constructor(){super(...arguments),this.networkImages=[""],this.text=""}render(){return(0,r.dy)`
63      <button>
64        <wui-text variant="md-regular" color="inherit">${this.text}</wui-text>
65        <wui-flex>
66          ${this.networksTemplate()}
67          <wui-icon name="chevronRight" size="sm" color="inherit"></wui-icon>
68        </wui-flex>
69      </button>
70    `}networksTemplate(){let e=this.networkImages.slice(0,5);return(0,r.dy)` <wui-flex class="networks">
71      ${e?.map(e=>r.dy` <wui-flex class="network-icon"> <wui-image src=${e}></wui-image> </wui-flex>`)}
72    </wui-flex>`}};y.styles=[m.ET,m.ZM,g],k([(0,o.Cb)({type:Array})],y.prototype,"networkImages",void 0),k([(0,o.Cb)()],y.prototype,"text",void 0),y=k([(0,f.M)("wui-compatible-network")],y),i(29557),i(98708),i(22939);var v=i(49854),x=(0,h.iv)`
73  wui-compatible-network {
74    margin-top: ${({spacing:e})=>e["4"]};
75    width: 100%;
76  }
77
78  wui-qr-code {
79    width: unset !important;
80    height: unset !important;
81  }
82
83  wui-icon {
84    align-items: normal;
85  }
86`,C=function(e,t,i,r){var o,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,i,s):o(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s};let $=class extends r.oi{constructor(){super(),this.unsubscribe=[],this.address=s.AccountController.state.address,this.profileName=s.AccountController.state.profileName,this.network=a.R.state.activeCaipNetwork,this.unsubscribe.push(s.AccountController.subscribe(e=>{e.address?(this.address=e.address,this.profileName=e.profileName):c.SnackController.showError("Account not found")}),a.R.subscribeKey("activeCaipNetwork",e=>{e?.id&&(this.network=e)}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){if(!this.address)throw Error("w3m-wallet-receive-view: No account provided");let e=l.f.getNetworkImage(this.network);return(0,r.dy)` <wui-flex
87      flexDirection="column"
88      .padding=${["0","4","4","4"]}
89      alignItems="center"
90    >
91      <wui-chip-button
92        data-testid="receive-address-copy-button"
93        @click=${this.onCopyClick.bind(this)}
94        text=${h.Hg.getTruncateString({string:this.profileName||this.address||"",charsStart:this.profileName?18:4,charsEnd:this.profileName?0:4,truncate:this.profileName?"end":"middle"})}
95        icon="copy"
96        size="sm"
97        imageSrc=${e||""}
98        variant="gray"
99      ></wui-chip-button>
99
100      <wui-flex
101        flexDirection="column"
102        .padding=${["4","0","0","0"]}
103        alignItems="center"
104        gap="4"
105      >
106        <wui-qr-code
107          size=${232}
108          theme=${d.ThemeController.state.themeMode}
109          uri=${this.address}
110          ?arenaClear=${!0}
111          color=${(0,n.o)(d.ThemeController.state.themeVariables["--w3m-qr-color"])}
112          data-testid="wui-qr-code"
113        ></wui-qr-code>
114        <wui-text variant="lg-regular" color="primary" align="center">
115          Copy your address or scan this QR code
116        </wui-text>
117        <wui-button @click=${this.onCopyClick.bind(this)} size="sm" variant="neutral-secondary">
118          <wui-icon slot="iconLeft" size="sm" color="inherit" name="copy"></wui-icon>
119          <wui-text variant="md-regular" color="inherit">Copy address</wui-text>
120        </wui-button>
121      </wui-flex>
122      ${this.networkTemplate()}
123    </wui-flex>`}networkTemplate(){let e=a.R.getAllRequestedCaipNetworks(),t=a.R.checkIfSmartAccountEnabled(),i=a.R.state.activeCaipNetwork,o=e.filter(e=>e?.chainNamespace===i?.chainNamespace);if((0,u.r9)(i?.chainNamespace)===v.y_.ACCOUNT_TYPES.SMART_ACCOUNT&&t)return i?(0,r.dy)`<wui-compatible-network
124        @click=${this.onReceiveClick.bind(this)}
125        text="Only receive assets on this network"
126        .networkImages=${[l.f.getNetworkImage(i)??""]}
127      ></wui-compatible-network>`:null;let n=(o?.filter(e=>e?.assets?.imageId)?.slice(0,5)).map(l.f.getNetworkImage).filter(Boolean);return(0,r.dy)`<wui-compatible-network
128      @click=${this.onReceiveClick.bind(this)}
129      text="Only receive assets on these networks"
130      .networkImages=${n}
131    ></wui-compatible-network>`}onReceiveClick(){w.RouterController.push("WalletCompatibleNetworks")}onCopyClick(){try{this.address&&(p.j.copyToClopboard(this.address),c.SnackController.showSuccess("Address copied"))}catch{c.SnackController.showError("Failed to copy")}}};$.styles=x,C([(0,o.SB)()],$.prototype,"address",void 0),C([(0,o.SB)()],$.prototype,"profileName",void 0),C([(0,o.SB)()],$.prototype,"network",void 0),$=C([(0,h.Mo)("w3m-wallet-receive-view")],$)}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.