(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[339],{860339(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{TokenTransferPage:()=>C});var e=__webpack_require__(303280);__webpack_require__.n(e);var t=__webpack_require__(860012);var a=__webpack_require__(107495);var n=__webpack_require__(48084);var r=__webpack_require__(305142);var i=__webpack_require__(706794);var s=__webpack_require__(556734);var o=__webpack_require__(805600);var l=__webpack_require__(126528);var c=__webpack_require__(697141);var m=__webpack_require__(353183);var g=__webpack_require__(917214);var d=__webpack_require__(273573);var p=__webpack_require__(517186);var h=__webpack_require__(592492);var u=__webpack_require__(423533);var k=__webpack_require__(22335);var f=__webpack_require__(409629);var v=__webpack_require__(624404);let C=()=>{let C=(0,e.c)(35);let E=(0,g.P)();let y=(0,d.D)();let T=(0,a.Zp)();let $=(0,a.g)();let b;C[0]!==$.origin?(b=$.origin?(0,v.Tw)($.origin):undefined,C[0]=$.origin,C[1]=b):b=C[1];let w=b;let P;C[2]!==w?(P=e=>w?(0,f.zh)(e,{permissionGroupName:"token-transfer",siteOrigin:w}):(0,f.uD)(e,"token-transfer"),C[2]=w,C[3]=P):P=C[3];let D=(0,n.d4)(P);let N;C[4]!==T||C[5]!==w?(N=e=>{let t=`${u.d1}/${e}/${"token-transfer"}`;T(w?`${t}/${encodeURIComponent(w)}`:t)},C[4]=T,C[5]=w,C[6]=N):N=C[6];let _=N;let x;C[7]!==_||C[8]!==D||C[9]!==E?(x=()=>D.map(e=>{let{chainId:a,count:n}=e;let r=n===1?E("tokenPermissionCount",[n]):E("tokenPermissionsCount",[n]);return t.createElement(k.gm,{"data-testid":"permission-group-list-item",key:a,chainId:a,text:r,onClick:()=>_(a)})}),C[7]=_,C[8]=D,C[9]=E,C[10]=x):x=C[10];let I=x;let L;C[11]!==E?(L=E("back"),C[11]=E,C[12]=L):L=C[12];let M;C[13]!==T?(M=()=>T(u.ax),C[13]=T,C[14]=M):M=C[14];let S;C[15]!==L||C[16]!==M?(S=t.createElement(o.a,{ariaLabel:L,iconName:r.$M.ArrowLeft,className:"connections-header__start-accessory",color:r.Li.IconDefault,onClick:M,size:i.f.Md}),C[15]=L,C[16]=M,C[17]=S):S=C[17];let z;C[18]===Symbol.for("react.memo_cache_sentinel")?(z={variant:m.J3.headingMd,"data-testid":"token-transfer-page-title"},C[18]=z):z=C[18];let A;C[19]!==w||C[20]!==E?(A=w?`${(0,v.PF)(w,!1)}: ${E("tokenTransfer")}`:E("tokenTransfer"),C[19]=w,C[20]=E,C[21]=A):A=C[21];let G;C[22]!==S||C[23]!==A?(G=t.createElement(c.Y9,{backgroundColor:m.i0.backgroundDefault,startAccessory:S,textProps:z},A),C[22]=S,C[23]=A,C[24]=G):G=C[24];let R;C[25]!==D.length||C[26]!==I||C[27]!==E||C[28]!==y?(R=D.length>0?I():t.createElement(l.a,{"data-testid":"no-connections",flexDirection:s.uV.Column,justifyContent:s.TE.Center,className:"h-full",padding:4},t.createElement(p.E,{icon:t.createElement("img",{src:y===h.S.dark?"/images/empty-state-permissions-dark.png":"/images/empty-state-permissions-light.png",alt:E("permissionsPageEmptyDescription"),width:72,height:72}),description:E("permissionsPageEmptyDescription"),className:"mx-auto"})),C[25]=D.length,C[26]=I,C[27]=E,C[28]=y,C[29]=R):R=C[29];let U;C[30]!==R?(U=t.createElement(c.UC,{padding:0},R),C[30]=R,C[31]=U):U=C[31];let Y;return C[32]!==U||C[33]!==G?(Y=t.createElement(c.YW,{className:"main-container","data-testid":"token-transfer-page",key:"token-transfer-page"},G,U),C[32]=U,C[33]=G,C[34]=Y):Y=C[34],Y}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()}}]);