-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
inventory-83544aae5ae7b062.js.download
1 lines (1 loc) · 54.2 KB
/
inventory-83544aae5ae7b062.js.download
1
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2157],{93860:function(e,l,t){"use strict";t.d(l,{I:function(){return o}});var a=t(67294),n=t(93552),s=function(e,l){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>l.indexOf(a)&&(t[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)0>l.indexOf(a[n])&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(t[a[n]]=e[a[n]]);return t};let o=a.forwardRef((e,l)=>{var{color:t}=e,o=s(e,["color"]);return a.createElement("svg",Object.assign({},(0,n.ti)(o),{ref:l,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M18 21V19H4V21H18Z",fill:t}),a.createElement("path",{d:"M15 1.58582L20.4142 7.00003L9.41421 18H4V12.5858L15 1.58582ZM6 13.4142V16H8.58579L17.5858 7.00003L15 4.41424L6 13.4142Z",fill:t}))});o.displayName="Edit"},62184:function(e,l,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/inventory",function(){return t(36107)}])},88178:function(e,l,t){"use strict";t.d(l,{m:function(){return N}});var a=t(67294),n=t(1922),s=t(86010);let o={copied:!1,error:null},r=e=>{let{copiedDelay:l=2e3}=null!=e?e:{},[t,n]=(0,a.useState)(o),s=(0,a.useRef)(),r=(0,a.useRef)(null),i="undefined"!=typeof window&&window.isSecureContext&&!!navigator.clipboard,c=()=>n(o),d=e=>{var t,a,o,d;return t=void 0,a=void 0,o=void 0,d=function*(){if(!i){n({copied:!1,error:Error("Copy to clipboard is not supported")});return}window.clearTimeout(s.current),c();let t=null;try{t=navigator.clipboard.writeText(e),r.current=t,yield t,t===r.current&&(n({copied:!0,error:null}),s.current=window.setTimeout(c,l))}catch(e){t===r.current&&n({copied:!1,error:Error(String(e))})}},new(o||(o=Promise))(function(e,l){function n(e){try{r(d.next(e))}catch(e){l(e)}}function s(e){try{r(d.throw(e))}catch(e){l(e)}}function r(l){var t;l.done?e(l.value):((t=l.value)instanceof o?t:new o(function(e){e(t)})).then(n,s)}r((d=d.apply(t,a||[])).next())})};return(0,a.useEffect)(()=>()=>{window.clearTimeout(s.current)},[]),Object.assign(Object.assign({},t),{isSupported:i,copy:d})};var i=t(54761),c=t(93552),d=function(e,l){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>l.indexOf(a)&&(t[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)0>l.indexOf(a[n])&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(t[a[n]]=e[a[n]]);return t};let u=a.forwardRef((e,l)=>{var{color:t}=e,n=d(e,["color"]);return a.createElement("svg",Object.assign({},(0,c.ti)(n),{ref:l,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M8 6V4C8 2.98954 8.76925 2 9.90909 2H18.0909C19.2307 2 20 2.98954 20 4V16C20 17.0105 19.2307 18 18.0909 18H16V20C16 21.1 15.1 22 14 22H6C4.9 22 4 21.1 4 20V8C4 6.9 4.9 6 6 6H8ZM10 6H14C15.1 6 16 6.9 16 8V16H18V4H10V6ZM14 8H6V20H14V8Z",fill:t}))});u.displayName="Copy";var m=t(45651),f=t(10045),x=function(e,l){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>l.indexOf(a)&&(t[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)0>l.indexOf(a[n])&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(t[a[n]]=e[a[n]]);return t};let p=e=>{var{shouldRender:l,children:t}=e,n=x(e,["shouldRender","children"]);return l?a.createElement(f.u,Object.assign({},n),t):t},N=e=>{let{value:l,delay:t,className:o,iconSize:c="medium",tooltipPosition:d="bottom",textPosition:f="left",copyTextLangKey:x="general:Copy",copiedTextLangKey:N="general:Copied",withCopyText:h=!1,withCopiedText:g=!0,dataTestId:v,cancelAnimation:w,onClick:b}=e,{t:j}=(0,n.$G)(),{copy:y,copied:C,isSupported:M}=r({copiedDelay:t});return M?a.createElement(p,{size:"micro",verticalPosition:d,label:j(C?N:x),shouldRender:C?!g:!h},a.createElement(m.h,{disabled:C&&!w,icon:C&&!w?i.y:u,className:(0,s.Z)("caption-4 text-P500",o),size:c,textPosition:f,textLangKey:C?g?N:void 0:h?x:void 0,onClick:()=>{y(l),null==b||b(l)},dataTestId:v})):null}},70564:function(e,l,t){"use strict";t.d(l,{m:function(){return u}});var a=t(85893),n=t(67294),s=t(94184),o=t.n(s),r=t(59470),i=t(79154),c=t(50641),d=t.n(c);function u(e){let{children:l,className:t,panelClassName:s,title:c,onToggle:u,visible:m}=e,[f,x]=(0,n.useState)(!!m),p=()=>{x(!f),null==u||u(!f)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("button",{className:o()("bb flex items-center justify-between w-100",d().collapsiblePanel,t),onClick:p,type:"button",children:[c,f?(0,a.jsx)(r.U,{}):(0,a.jsx)(i.p,{})]}),(0,a.jsx)("div",{className:o()({mt2:!s},{dn:!f},s),children:l})]})}},7797:function(e,l,t){"use strict";t.d(l,{R:function(){return m},a:function(){return d}});var a=t(85893),n=t(94184),s=t.n(n),o=t(67294),r=t(59112),i=t(51371),c=t(21779);let d="USD";function u(e){return{label:"".concat(e.name," (").concat(e.asset,")"),value:e.asset}}function m(e){let{value:l,onChange:t,className:n,popoverClassName:m,menuRef:f}=e,{assetDefinitions:x}=(0,c.$F)(),p=(0,o.useMemo)(()=>{if(!x)return[];let e=["ETH","SOL","BTC","USD"],l=Object.values(x),t=[],n=[];l.forEach(l=>{l.asset.endsWith(".S")||l.asset.endsWith(".M")||l.asset.endsWith(".P")||l.asset.endsWith(".HOLD")||"FEE"===l.asset||(e.includes(l.asset)?n.push(u(l)):t.push(u(l)))});let s=[{label:(0,a.jsx)(r.x,{langKey:"nft:priceFilter:optionsGroup:Common"}),options:n},{label:(0,a.jsx)(r.x,{langKey:"nft:priceFilter:optionsGroup:Others"}),options:t}];return s},[x]),N=(0,o.useCallback)(e=>null==t?void 0:t(e.target.value),[t]);return(0,a.jsx)(i.d,{className:s()(n,"bg-pure-white caption-2 w-100 pb1"),popoverClassName:m,onChange:N,value:l||d,options:p,menuRef:f,isSearchable:!0})}},35138:function(e,l,t){"use strict";t.d(l,{V:function(){return i},d:function(){return c}});var a=t(85893);t(67294);var n=t(94184),s=t.n(n),o=t(74755),r=t.n(o);let i=e=>{let{bigValue:l,detail:t,value:n,className:o,valueClassName:i,dataTestId:c,...d}=e;return(0,a.jsxs)("div",{className:s()(r().lockup,r().lockupBigNumber,o),...d,children:[(0,a.jsxs)("div",{className:s()(r().lockupBigValue,"display-3 flex items-baseline justify-between",i),children:[(0,a.jsx)("span",{className:s()(r().lockupBigValueSpan,"w-100"),"data-testid":c,children:l}),(0,a.jsx)("div",{className:"caption-2 text-N400",children:t})]}),n&&(0,a.jsx)("div",{className:s()(r().lockupValue,"caption-mono-1"),children:n})]})},c=e=>{let{title:l,detail:t,kind:n="regular",className:o,...i}=e;return(0,a.jsxs)("div",{className:s()(r().lockup,r().lockupTitle,"flex justify-between","small"===n?"label-3":"regular"===n?"caption-3":"caption-2",o),...i,children:[l,t&&(0,a.jsx)("div",{children:t})]})}},12633:function(e,l,t){"use strict";t.d(l,{Ag:function(){return c},ZU:function(){return i}});var a=t(85893);t(67294);var n=t(88178),s=t(75438),o=t(18399),r=t(16164);let i=8;function c(e){let{children:l,className:t,iconClassName:i="ml1",startCount:c=4,endCount:d=4,showFull:u=!1,canCopy:m=!1,withCopiedText:f,chain:x,isTransaction:p=!1}=e;if(!l||"string"!=typeof l)return null;let N=l.substring(0,c),h=l.substring(l.length-d),g=u?l:"".concat(N).concat(0!==d?"...".concat(h):"");return(0,a.jsxs)("div",{className:"".concat(t||""),children:[x===s.fX.Ethereum?(0,a.jsx)(o.O,{rel:"noreferrer noopener",target:"_blank",className:p?"label-mono-1 text-N400":void 0,href:"".concat(p?r.Jt.EtherscanTransaction:r.Jt.EtherscanAddress,"/").concat(l),children:g}):x===s.fX.Solana?(0,a.jsx)(o.O,{rel:"noreferrer noopener",target:"_blank",className:p?"label-mono-1 text-N400":void 0,href:"".concat(p?r.Jt.SolscanTransaction:r.Jt.SolscanAddress,"/").concat(l),children:g}):x===s.fX.Polygon?(0,a.jsx)(o.O,{rel:"noreferrer noopener",target:"_blank",className:p?"label-mono-1 text-N400":void 0,href:"".concat(p?r.Jt.PolygonscanTransaction:r.Jt.PolygonscanAddress,"/").concat(l),children:g}):g,m&&(0,a.jsx)(n.m,{className:i,value:l,withCopiedText:f,dataTestId:"copy-address-button"})]})}},52483:function(e,l,t){"use strict";t.d(l,{K:function(){return d}});var a=t(85893),n=t(94184),s=t.n(n),o=t(67294),r=t(50667),i=t(35089),c=t.n(i);function d(e){let{id:l,label:t,size:n,checked:i,onChange:d,className:u,checkboxClassName:m,labelClassName:f,boldCheckedLabel:x=!0}=e,p=(0,o.useCallback)(e=>{var t;return d(l,null===(t=e.target)||void 0===t?void 0:t.checked)},[l,d]);return(0,a.jsxs)("div",{className:s()(u,"flex flex-row items-center"),children:[(0,a.jsx)(r.X,{className:s()(c().checkbox,m,"mr1"),id:l,size:n,onChange:p,checked:!!i}),(0,a.jsx)("label",{className:s()(f,{bold:x&&i},"body-1 text-N500"),htmlFor:l,children:t})]})}},29568:function(e,l,t){"use strict";t.d(l,{Om:function(){return m},e6:function(){return d},f4:function(){return u}});var a=t(85893),n=t(94184),s=t.n(n);t(67294);var o=t(59470),r=t(79154),i=t(1313),c=t.n(i);let d=s()(c().button,"bg-pure-white border-radius border-1 no-tab-highlight flex items-center"),u="caption-2 tl flex-auto";function m(e){let{onClick:l,className:t,isOpen:n,children:i,buttonRef:c}=e;return(0,a.jsxs)("button",{onClick:l,ref:c,className:s()(d,t),children:[(0,a.jsx)("span",{className:u,children:i}),(0,a.jsx)("div",{className:"flex items-center",children:n?(0,a.jsx)(o.U,{}):(0,a.jsx)(r.p,{})})]})}},67348:function(e,l,t){"use strict";t.d(l,{l:function(){return u}});var a=t(85893);t(67294);var n=t(56740),s=t(94184),o=t.n(s),r=t(51371),i=t(29568),c=t(60663),d=t.n(c);let u=e=>(0,a.jsx)(r.d,{...e,buttonClassName:o()(i.e6,e.buttonClassName),dirtyClassName:d().dirty,itemClassName:d().dropdownItem,valueClassName:o()(i.f4,d().value),menuClassName:d().dropdownMenu,position:n.MN,labelClassName:i.f4,labelWrapClassName:"items-center"})},2022:function(e,l,t){"use strict";t.d(l,{b:function(){return m}});var a=t(85893);t(67294);var n=t(94184),s=t.n(n),o=t(11163),r=t(72261),i=t(59112),c=t(16164),d=t(80330),u=t.n(d);let m=e=>{let{className:l,title:t,subtitle:n,icon:d,isWallet:m=!1}=e,f=(0,o.useRouter)();return(0,a.jsxs)("div",{className:s()("flex flex-column items-center h-full",l),children:[(0,a.jsx)("img",{src:d,alt:"empty icon",className:u().icon}),(0,a.jsx)("div",{className:"body-3",children:t}),(0,a.jsx)("div",{className:s()("body-2 mt1/2 mb4",u().subtitle),children:n}),m&&(0,a.jsx)(r.zx,{size:"large",className:"mb4",onClick:()=>f.push(c.k2.NftExplore),children:(0,a.jsx)(i.x,{langKey:"nft:wallet:firstTime:exploreNfts"})})]})}},98902:function(e,l,t){"use strict";t.d(l,{Dp:function(){return d},w7:function(){return c}});var a=t(85893),n=t(94184),s=t.n(n),o=t(67294),r=t(1922);let i=e=>["e","E","+","-"].includes(null==e?void 0:e.key)&&(null==e?void 0:e.preventDefault()),c=e=>{var l;let{t}=(0,r.$G)(),{name:a=null===(l=t("nft:listings:Price"))||void 0===l?void 0:l.toLowerCase(),min:n,max:s}=e,i=(0,o.useMemo)(()=>{let e=[];return n&&s&&+n>+s&&e.push({langKey:"nft:errors:search:filter:error:maxGtMin",keys:{name:a,min:n}}),e},[n,s,a]);return i};function d(e){var l,t;let{value:n,minPlaceholder:o,maxPlaceholder:r,onChangeMin:c,onChangeMax:d,classes:u}=e;return(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:"flex items-center mb1 mt1 w-100",children:(0,a.jsxs)("div",{className:"flex gap1 pr1/2 w-100",children:[(0,a.jsx)("input",{className:s()("pa1 ba border-radius caption-2 w-100",null==u?void 0:u.min),min:0,type:"number",onChange:e=>c(e.target.value),onKeyDown:i,placeholder:o,value:null!==(l=n.min)&&void 0!==l?l:"","data-testid":"number-range-min"}),(0,a.jsx)("input",{className:s()("pa1 ba border-radius caption-2 w-100",null==u?void 0:u.max),min:0,type:"number",onChange:e=>d(e.target.value),onKeyDown:i,placeholder:r,value:null!==(t=n.max)&&void 0!==t?t:"","data-testid":"number-range-max"})]})})})}},44166:function(e,l,t){"use strict";t.d(l,{x:function(){return c}});var a=t(85893);t(67294);var n=t(94184),s=t.n(n),o=t(59112),r=t(67348),i=t(94907);function c(e){let{isSmall:l}=(0,i.kC)(),{onSortOptionChange:t,sortByOptions:n,selectedSortOption:c,mobile:d,wrapClassName:u,className:m,labelContainerClassName:f}=e;return(0,a.jsxs)("div",{className:s()("flex flex-row items-center caption-3",u),children:[!d&&!l&&(0,a.jsx)("div",{children:(0,a.jsx)(o.x,{langKey:"nft:search:sortBy:text",className:"caption-4 uppercase"})}),(0,a.jsx)(r.l,{mobile:d,className:s()("ml1 caption-2",m),value:c,onChange:t,options:n,labelContainerClassName:f})]})}},36107:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return eY}});var a,n=t(85893),s=t(67294),o=t(9008),r=t.n(o),i=t(1922),c=t(72512),d=t(94907),u=t(11163),m=t(94184),f=t.n(m),x=t(65068),p=t(72261),N=t(59112),h=t(21779),g=t(73444),v=t(92299),w=t(71394),b=t(38262),j=t(62036),y=t(64279),C=t(63921),M=t(12782),k=t.n(M);let A=e=>{var l,t;return(0,n.jsxs)("div",{className:"flex items-center pl2","data-testid":"staking-asset-select-name",children:[(0,n.jsx)(b.GY,{type:b.$e.SMALL,shape:b.oG.SQUARE,src:null===(l=null==e?void 0:e.nft.image)||void 0===l?void 0:null===(t=l.derived)||void 0===t?void 0:t.PreviewTransactionModal.url}),(0,n.jsx)("span",{className:f()(k().name,"ml1 caption-2 text-N600"),children:e.nft.name})]})},I=e=>{var l,t;return(0,n.jsx)("div",{className:"flex flex-column items-end pointer pr2","data-testid":"staking-asset-select-value",children:(0,n.jsx)(v.m,{asset:null!==(a=null===(l=e.nft)||void 0===l?void 0:null===(t=l.token)||void 0===t?void 0:t.blockchain.asset)&&void 0!==a?a:"",className:f()(k().crypton)})})},D=e=>{let{title:l,nftAssets:t,assetFilter:a,selectNft:o,onDismiss:r,quote:c,convertPrice:d,setAssetFilter:u}=e,{t:m}=(0,i.$G)(),{assetDefinitions:x}=(0,h.$F)(),p=(0,s.useMemo)(()=>void 0===t?[]:t.map(e=>{var l,t,a,n,s,r;let i=null!==(s=null==e?void 0:null===(l=e.collection)||void 0===l?void 0:null===(t=l.floor_price)||void 0===t?void 0:t.native.asset_name)&&void 0!==s?s:"";return{nftKey:e.id,asset:null==x?void 0:x[i],nft:e,quote:c,price:d(i,null!==(r=null==e?void 0:null===(a=e.collection)||void 0===a?void 0:null===(n=a.floor_price)||void 0===n?void 0:n.native.amount.toString())&&void 0!==r?r:""),selectNft:()=>o(e)}}),[t,x,c,d,o]);return(0,n.jsx)(j.L,{title:(0,n.jsx)("div",{className:"pb2",children:l}),ariaLabel:l,isOpen:!0,className:k().nftSelectorModal,onDismiss:r,children:(0,n.jsx)(y.II,{boundaryName:"Nft-Selector-Modal",type:"primary",children:(0,n.jsxs)("div",{className:k().container,children:[(0,n.jsxs)("div",{className:f()("flex items-center",k().searchBar),children:[(0,n.jsx)(w.o,{className:f()("mr1",{"text-N200":!a,"text-N600":a}),size:"small"}),(0,n.jsx)("input",{autoFocus:!0,className:f()(k().searchInput,"body-2",{"text-N200":!a,"text-N600":a}),onChange:e=>{u(e.target.value)},placeholder:m("general:Search"),role:"search",value:a})]}),(0,n.jsxs)(C.wQ,{className:"pb2",data:p,getRowKey:e=>e.nftKey,getRowChildren:e=>[e],onRequestChildData:e=>null==e?void 0:e.selectNft(),pendingCount:5,overflowVisible:!0,header:!1,children:[(0,n.jsx)(C.wQ.Column,{onClick:e=>e.selectNft(),className:"pointer",dataKey:"name",render:A,scale:2.5}),(0,n.jsx)(C.wQ.Column,{onClick:e=>e.selectNft(),className:"justify-end caption-2 pointer",dataKey:"value",render:I,scale:.5})]})]})})})};var S=t(16164),B=t(15930),E=t.n(B);function _(e){let{innerClassName:l,labelClassName:t,isDisabled:a=!1}=e,{t:o}=(0,i.$G)(),r=(0,u.useRouter)(),{isSmall:c}=(0,d.kC)(),{quote:m}=(0,d.Gv)(),x=(0,d.yo)(),[v,w]=(0,s.useState)(!1),b=(0,s.useCallback)(()=>{w(!0)},[]),[j,y]=(0,s.useState)(""),{data:C}=(0,h.ix)({custody:"Kraken",search:j,page:1,per_page:50}),M=(0,s.useCallback)(e=>r.push({pathname:S.k2.NftWithdraw,query:{assetId:e.id}}),[r]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(p.zx,{size:"large",kind:"secondary",innerClassName:l,onClick:b,disabled:a,children:[(0,n.jsx)(g.e,{className:f()({[E().btnIcon]:!c})}),!c&&(0,n.jsx)("span",{className:t,children:(0,n.jsx)(N.x,{langKey:"nft:wallet:Withdraw"})})]}),v&&(0,n.jsx)(D,{title:o("nft:wallet:SelectNft"),onDismiss:()=>w(!1),nftAssets:null==C?void 0:C.items,quote:m,convertPrice:x,selectNft:M,assetFilter:j,setAssetFilter:y})]})}var z=t(56740),W=t(93552),T=function(e,l){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>l.indexOf(a)&&(t[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)0>l.indexOf(a[n])&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(t[a[n]]=e[a[n]]);return t};let O=s.forwardRef((e,l)=>{var{color:t}=e,a=T(e,["color"]);return s.createElement("svg",Object.assign({},(0,W.ti)(a),{ref:l,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),s.createElement("path",{d:"M18 14C18.5523 14 19 13.5523 19 13C19 12.4477 18.5523 12 18 12C17.4477 12 17 12.4477 17 13C17 13.5523 17.4477 14 18 14Z",fill:t}),s.createElement("path",{d:"M4 3C2.89543 3 2 3.89543 2 5V18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V8C22 6.9 21.1 6 20 6V5C20 3.89543 19.1046 3 18 3H4ZM18 6H4V5H18V6ZM4 8H20V9H16C14.9 9 14 9.9 14 11V15C14 16.1 14.9 17 16 17H20V18H4V8ZM16 15V11H20V15H16Z",fill:t}))});O.displayName="Wallet";var L=t(79154),P=t(93860),K=t(19037),Q=t(10045),R=t(54558),U=t(75438),F=t(52265),G=t(74106),V=t(88517),Y=t(87992),H=t(51177),Z=t.n(H);let X=e=>{let l,{onAdd:t,onRemove:a,onEditLabel:o}=e,{data:r}=(0,F.C)(),{isSmall:i}=(0,d.kC)(),c=(0,s.useRef)(null),[u,m]=(0,s.useState)(!1),{krakenDapp:x}=(0,G.N)(),h=(0,s.useCallback)(()=>{m(!u)},[u]);if(r&&r.length){let e=r.find(e=>null==x?void 0:x.findWalletAddress(e.address.address));l=e?{wallet:e,isConnected:!0}:{wallet:r[0],isConnected:!1}}let g="";if(l){if(l.wallet.label){let e=l.wallet.label;g=e.length>12?"".concat(e.substring(0,9),"..."):e}else g=(0,R.FP)(l.wallet.address.address,l.wallet.address.blockchain)}return r&&r.length>0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(p.zx,{innerClassName:f()(Z().walletBtn,{[Z().walletBtnMobile]:i}),size:"large",kind:"secondary",onClick:h,ref:c,children:[i&&(0,n.jsxs)(n.Fragment,{children:[r.length,(0,n.jsx)(O,{})]}),!i&&l&&(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:f()(Z().itemText,"w-100 text-P500 flex items-center"),children:[(0,n.jsx)("div",{className:"flex-none pr3/2 w-20 mr1 relative",children:(0,n.jsxs)("div",{className:f()(Z().avatarDropdownButton),children:[U.fX.Solana===l.wallet.address.blockchain?(0,n.jsx)("img",{src:V.Z,className:Z().phantomIcon}):(0,n.jsx)(Y.k,{address:l.wallet.address.address,diameter:24,blockchain:l.wallet.address.blockchain}),l.isConnected?(0,n.jsx)("span",{className:f()(Z().checkGreenTickCircle),children:(0,n.jsx)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSI4IiB2aWV3Qm94PSIwIDAgOCA4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTMuOTk5ODQgNy4zMzMzNUM1Ljg0MDc5IDcuMzMzMzUgNy4zMzMxNyA1Ljg0MDk3IDcuMzMzMTcgNC4wMDAwMkM3LjMzMzE3IDIuMTU5MDcgNS44NDA3OSAwLjY2NjY4NyAzLjk5OTg0IDAuNjY2Njg3QzIuMTU4ODkgMC42NjY2ODcgMC42NjY1MDQgMi4xNTkwNyAwLjY2NjUwNCA0LjAwMDAyQzAuNjY2NTA0IDUuODQwOTcgMi4xNTg4OSA3LjMzMzM1IDMuOTk5ODQgNy4zMzMzNVpNMi4yNDk4NCA0LjA4MzM1QzIuMzg3OTEgMy45NDUyOCAyLjYxMTc3IDMuOTQ1MjggMi43NDk4NCA0LjA4MzM1TDMuMzMzMTcgNC42NjY2OUw1LjI0OTg0IDIuNzUwMDJDNS4zODc5MSAyLjYxMTk1IDUuNjExNzcgMi42MTE5NSA1Ljc0OTg0IDIuNzUwMDJDNS44ODc5MSAyLjg4ODA5IDUuODg3OTEgMy4xMTE5NSA1Ljc0OTg0IDMuMjUwMDJMMy42ODY3MiA1LjMxMzEzQzMuNDkxNDYgNS41MDg0IDMuMTc0ODggNS41MDg0IDIuOTc5NjIgNS4zMTMxM0wyLjI0OTg0IDQuNTgzMzVDMi4xMTE3NyA0LjQ0NTI4IDIuMTExNzcgNC4yMjE0MiAyLjI0OTg0IDQuMDgzMzVaIiBmaWxsPSIjMDBDOTA4Ii8+Cjwvc3ZnPgo="})}):(0,n.jsx)("span",{className:f()(Z().check),children:(0,n.jsx)(v.m,{className:f()(Z().crypton),asset:R.js[l.wallet.address.blockchain],circle:!0,color:!0})})]})}),(0,n.jsx)("div",{className:"flex-auto",children:(0,n.jsx)("div",{"data-testid":"truncated-wallet-address",children:g})})]})}),(0,n.jsx)(L.p,{})]}),(0,n.jsx)(z.ZP,{hidden:!u,targetRef:c,position:i?z.Kp:void 0,children:u&&(0,n.jsx)(J,{buttonRef:c,onAdd:t,onRemove:a,onEditLabel:o,togglePopover:h,wallets:r})})]}):(0,n.jsxs)(p.zx,{innerClassName:f()({[Z().walletBtn]:i}),size:"large",kind:"secondary",onClick:t,children:[(0,n.jsx)(O,{}),!i&&(0,n.jsx)(N.x,{langKey:"nft:wallet:ConnectWallet",className:"mh1 nowrap"})]})},J=e=>{let{buttonRef:l,onAdd:t,onRemove:a,togglePopover:o,wallets:r,onEditLabel:i}=e,{isSmall:c}=(0,d.kC)(),{krakenDapp:u}=(0,G.N)(),m=(0,s.useRef)(null);return(0,d.dK)(o,m,l),(0,d.qX)(o),(0,n.jsxs)("div",{className:"bg-pure-white border-radius ba",ref:m,children:[null==r?void 0:r.map(e=>{let{address:l,blockchain:t}=e.address,s=null==u?void 0:u.findWalletAddress(l);return(0,n.jsx)("div",{className:f()(Z().itemWithLabel,{[Z().itemMobile]:c},"body-2 ph2",{"bg-PT100":s}),children:(0,n.jsxs)("div",{className:f()(Z().itemText,"w-100 bb text-P500 flex items-center"),children:[(0,n.jsx)("div",{className:f()(Z().connectedIcon),children:s&&(0,n.jsx)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTEiIHZpZXdCb3g9IjAgMCAxNCAxMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEuODUzNTUgNS4wNTg2M0MxLjY1ODI5IDQuODYzMzcgMS4zNDE3MSA0Ljg2MzM3IDEuMTQ2NDUgNS4wNTg2M0wwLjM1MzU1MyA1Ljg1MTUyQzAuMTU4MjkxIDYuMDQ2NzkgMC4xNTgyOTEgNi4zNjMzNyAwLjM1MzU1MyA2LjU1ODYzTDQuNjQ2NDUgMTAuODUxNUM0Ljg0MTcxIDExLjA0NjggNS4xNTgyOSAxMS4wNDY4IDUuMzUzNTUgMTAuODUxNUwxMy42NDY0IDIuNTU4NjNDMTMuODQxNyAyLjM2MzM3IDEzLjg0MTcgMi4wNDY3OSAxMy42NDY0IDEuODUxNTJMMTIuODUzNiAxLjA1ODYzQzEyLjY1ODMgMC44NjMzNjkgMTIuMzQxNyAwLjg2MzM2OSAxMi4xNDY0IDEuMDU4NjNMNSA4LjIwNTA4TDEuODUzNTUgNS4wNTg2M1oiIGZpbGw9IiMzQjlCNEEiLz4KPC9zdmc+Cg==",alt:"connected",className:f()(Z().greenTick)})}),(0,n.jsx)("div",{className:"flex-none pr3/2 w-20 mr1 relative",children:(0,n.jsxs)("div",{className:f()(Z().avatar),children:[U.fX.Solana===t?(0,n.jsx)("img",{src:V.Z,alt:"phantom",className:Z().phantomIcon}):(0,n.jsx)(Y.k,{address:l,diameter:24,blockchain:t}),(0,n.jsx)("span",{className:f()(Z().check),children:(0,n.jsx)(v.m,{className:f()(Z().crypton),asset:R.js[t],circle:!0,color:!0})})]})}),(0,n.jsxs)("div",{className:"flex-auto",children:[(0,n.jsx)("div",{className:f()(Z().label,"text-P500"),children:e.label}),(0,n.jsx)("div",{className:"text-N500 label-2",children:(0,R.FP)(e.address.address,e.address.blockchain)})]}),(0,n.jsx)("button",{className:"pl2 flex",onClick:()=>i(e),children:(0,n.jsx)(Q.u,{label:(0,n.jsx)(N.x,{langKey:"nft:wallet:EditLabel"}),size:"micro",children:(0,n.jsx)(P.I,{})})}),(0,n.jsx)("button",{className:"pl2 flex",onClick:()=>a(e),"data-testid":"dropdown-remove-wallet",children:(0,n.jsx)(Q.u,{label:(0,n.jsx)(N.x,{langKey:"nft:wallet:RemoveWallet"}),size:"micro",children:(0,n.jsx)(K.$,{})})})]})},l)}),(0,n.jsx)("div",{className:"pa2",children:(0,n.jsx)(p.zx,{className:"w-100",onClick:t,children:(0,n.jsx)(N.x,{langKey:"nft:wallet:ConnectWallet"})})})]})};var q=t(64226),$=t(9616),ee=t(64124),el=t(33762),et=t(91031),ea=t(54086),en=t(7797),es=t(93171),eo=t(54749),er=t(98902),ei=t(29568),ec=t(40239),ed=t.n(ec);let eu=e=>{let{className:l,maxLabel:t,minLabel:a,onChange:o,placeholder:r,popoverTitle:i,value:c,children:d,ignoreRef:u,name:m,outsideFocusOrClick:f}=e,x=(0,s.useRef)(null),[p,N]=(0,s.useState)(!1),h=(0,s.useCallback)(()=>{N(!p)},[p]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ei.Om,{onClick:h,className:l,isOpen:p,buttonRef:x,children:(0,n.jsx)(n.Fragment,{children:(null==c?void 0:c.min)||(null==c?void 0:c.max)?(0,n.jsxs)(n.Fragment,{children:[r,": ",c.min||"any"," - ",c.max||"any"]}):r})}),(0,n.jsx)(z.ZP,{hidden:!p,targetRef:x,children:p&&(0,n.jsx)(em,{name:m,buttonRef:x,maxLabel:t,minLabel:a,onChange:o,popoverTitle:i,togglePopover:h,value:c,ignoreRef:u,outsideFocusOrClick:f,children:d})})]})},em=e=>{let{buttonRef:l,ignoreRef:t=[],maxLabel:a,minLabel:o,onChange:r,popoverTitle:i,togglePopover:c,children:u,name:m,value:x,outsideFocusOrClick:h=!0}=e,g=(0,s.useRef)(null),[v,w]=(0,s.useState)({...x}),b=(0,er.w7)({...v,name:m}),j=(0,s.useCallback)(()=>{c()},[c]);(0,d.dK)(h?j:eo.Z,g,l,...t),(0,d.qX)(c);let y=(0,s.useCallback)(()=>{r(v),c()},[r,c,v]),C=f()({"border-error":b.length});return(0,n.jsxs)("div",{className:f()(ed().popover,"bg-pure-white pa2 border-radius ba"),ref:g,children:[(0,n.jsx)("div",{className:"body-3",children:i}),u,(0,n.jsxs)("div",{className:"mb2 mt1 w-100",children:[(0,n.jsx)(er.Dp,{classes:{max:C},value:v,onChangeMin:e=>w({...v,min:e}),onChangeMax:e=>w({...v,max:e}),minPlaceholder:null!=o?o:"",maxPlaceholder:null!=a?a:""}),b.length>0&&b.map(e=>(0,s.createElement)(N.x,{className:"label-1 bold text-R300",...e,key:e.langKey}))]}),(0,n.jsx)(p.zx,{disabled:b.length>0,className:"w-100",onClick:y,children:(0,n.jsx)(N.x,{langKey:"nft:wallet:Apply"})})]})};var ef=t(67348),ex=t(44166),ep=t(92019),eN=t(2022),eh=t(9931),eg=t(98319),ev=t(30514),ew=t(66599),eb=t.n(ew);let ej=s.memo(e=>{let{className:l}=e,{t}=(0,i.$G)(),[a,s]=(0,ev._)("__KRAKEN_NFTWLBANNER__",{set:!1}),o=()=>{s({set:!0})};return!0===a.set?null:(0,n.jsxs)("div",{className:f()(eb().wrap,l),children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAABdCAYAAABeibN2AAAf5ElEQVR4XuyXzU8TURDAZwpiDTH26MX4PHrDg1dTYtCEE/HIhdrw0Rt4IsbYPqjGo/wBRvAfoB41MZTEA4Z0szExcmzlqxRS2i5st/v1Rh77QsLFG4U1+2sn3Xmvl8lv580uXEEiIiIisk9/L7we/P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EAQQxxSkk2vrzc3zo738N9nXmizMLhEhLcDGQnVe24FLcVQUtYCUzctl5WJ2uGh+Gk9Wtwzer2DBLuBcCOitqE6j02rHIEQeqsQWMD0v+1dzWtTQRh+J3Zze42u6ZjkyaxtTY/wd4UBE1AobekWujNBix+oFD7B2JzVNTFU1EP9iIlgsaTYKv9BzW/wETQXqJuAhXN1447S3dnc1AE2xLKPLAMIezpZfd93nme2Yf5rJxLsgBQ8W7plDmwgYBz2Vcp1IKTCEkEY1RzCa7cdVcNoPGsnGv8zTeFAArdDr38afu7a/PnPZMbx/iw7v7DCtT/Guy7A/sK30gkTBNRwwKEl+6XTv/Rmb2YdfsoUbVfxMY9gm2J9Lou1UkB7lXucafG4U5mvDKzXmi1O4WPn7+B92TwL+z757u57gqeCuiABovBow4MXYXjCVK1JZwx/03oF4GAT1+eXx5SQssnkoSblbxtan4oko8gjBx4w5wPrkOrqsQsL9bAFYFP3+yaalaubvFmPSB47BRjYWZjcnzUzm9/bXqqP+/+gUQV7zdG1OfInhTNklzGEsMgYTn3cECfhA4QAKBVFTVXBzY0diH3dqtu7UzVrR/uu97rAUGLze7qU1rYpbCKLMHEMcKY2ZJZOmOKrNL/QIeGMvGoUY2PGD7V9wUNDCi4X8cQ0D1YEZASwsU9KoKIUb429yZF26H3X+rNVHPnJ2/e0O8MRAj7fGlyLEr1sFw0187eEem9e4SVtekasjuZ8fhwQ9cU4AwqMNgB9jXYZCwCQxpe3YciiBjllfJ0zcZ2xqGglqrIAJQGvMvcHhgjOpCIVnlUSudFnvU+4Qk7dqyEbk8kj1JD1/wdU7ZiCaHRqAGxqF7DbZoWUfsHgOsXN7IU0INWuzvpDH6AHETCGkgyfi23IW+W0w04OAjcvLR+7sbsu/lbs5vzi9lNAocQAgICvwHMvK7tVAHu7AAAAABJRU5ErkJggg==",alt:"WL banner badge"}),(0,n.jsxs)("div",{children:[(0,n.jsx)(N.x,{className:"db caption-4 mb1/2 text-pure-white",langKey:"nft:wallet:WlBannerLine1"}),(0,n.jsx)("p",{className:"label-2 text-pure-white",children:(0,n.jsx)(i.cC,{i18nKey:"nft:wallet:WlBannerLine2",defaults:"",children:(0,n.jsx)(eg.d,{className:"label-2 bold text-pure-white",href:t("nft:wallet:LearnMoreLink")})})})]})]}),(0,n.jsx)(p.zx,{onClick:o,innerClassName:eb().buttonInner,className:"di",color:"primary",children:t("general:Dismiss")})]})});ej.displayName="NftWhiteListBanner";var ey=t(3234),eC=t(34123),eM=t(17756),ek=t.n(eM);let eA=[{value:"Ethereum",ticker:"ETH",label:""},{value:"Solana",ticker:"SOL",label:""},{value:"Polygon",ticker:"MATIC",label:""},{value:void 0,label:(0,n.jsx)(N.x,{langKey:"nft:activity:AllChains"})}],eI=[{value:"BuyNow",label:(0,n.jsx)(N.x,{langKey:"nft:wallet:status:BuyNow"})},{value:"HasOffer",label:(0,n.jsx)(N.x,{langKey:"nft:wallet:status:HasOffer"})},{value:void 0,label:(0,n.jsx)(N.x,{langKey:"nft:wallet:status:All"})}],eD="wallet_q";var eS=function(e){var l,t,a,o,r;let{wallet:m,pagination:x,setPriceFilter:g,setChainFilter:v,setStatusFilter:w,setPriceCurrency:b,priceCurrency:j,statusFilter:y,priceFilter:C,chainFilter:M,onSortOptionChange:k,onClearFilter:A,selectedSortOption:I,sortByOptions:D,refreshWallet:B,isSearching:E,setMobileFilterOpen:_,onFilterChange:z}=e,{t:W}=(0,i.$G)(),{isSmall:T}=(0,d.kC)(),[O,L]=(0,s.useState)(j),P=(0,s.useRef)(null),K=(0,u.useRouter)(),{pathname:Q}=(0,u.useRouter)(),{search:R}=(0,d.Rx)({pathname:Q,queryKey:eD}),U=(0,s.useCallback)(e=>{let{id:l}=e;return K.push((0,c.tw)(l))},[K]),{data:F}=(0,h.Rm)({nft_id:null==m?void 0:m.items.map(e=>e.id),status:"open"}),{nftAssetDefinitions:G}=(0,h.dv)(),[V,Y]=(0,s.useState)(),H=(0,d.Vp)(),Z=(0,s.useMemo)(()=>[...Object.values(null!=G?G:{}).map(e=>({value:null!==(t=e.name)&&void 0!==t?t:"",label:null!==(a=H(e.asset))&&void 0!==a?a:""})),{value:void 0,label:(0,n.jsx)(N.x,{langKey:"nft:activity:AllChains"})}],[H,G]),X=(0,s.useMemo)(()=>!((0,ee.Z)(M)&&(0,ee.Z)(C)),[M,C]),J=(0,s.useCallback)(e=>{e&&L(e)},[]),q=(0,s.useCallback)(e=>{g(e),b(O),null==z||z()},[O,b,g,z]),$=(0,s.useCallback)(e=>{let{target:l}=e;v(""==l.value?void 0:l.value),null==z||z()},[v,z]),eo=(0,s.useCallback)(e=>{let{target:l}=e;w(""==l.value?void 0:l.value),null==z||z()},[z,w]),er=(0,s.useMemo)(()=>!m,[m]),ei=(0,s.useMemo)(()=>(null==m?void 0:m.total)===0,[m]),ec=(0,s.useCallback)(e=>{Y(e)},[]),ed=(0,s.useCallback)(()=>Y(void 0),[]),em=(0,s.useCallback)(()=>{ed(),B()},[ed,B]),eg=Math.ceil((null!==(o=null==m?void 0:m.total)&&void 0!==o?o:0)/x.perPage),ev=(0,s.useRef)(null),ew=(0,s.useCallback)(()=>{var e;null===(e=ev.current)||void 0===e||e.scrollIntoView(),x.setPage(eg)},[x,eg]),eb=(0,s.useCallback)(()=>{var e;null===(e=ev.current)||void 0===e||e.scrollIntoView(),x.setPage(1)},[x]),eM=(0,s.useCallback)(()=>{var e;null===(e=ev.current)||void 0===e||e.scrollIntoView(),x.onNextPage()},[x]),eA=(0,s.useCallback)(()=>{var e;null===(e=ev.current)||void 0===e||e.scrollIntoView(),x.onPreviousPage()},[x]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{ref:ev,className:f()(ek().wallet,{[ek().mobile]:T}),"data-testid":"nft-wallet",children:[(0,n.jsx)(ej,{className:"mb2 flex items-center justify-between"}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:f()("flex justify-between align-center relative",ek().walletHeader),children:(0,n.jsx)(es.Y,{queryKey:eD,pathname:S.k2.NftInventory})}),T?(0,n.jsxs)("div",{className:"flex flex-row mt2 justify-between",children:[(0,n.jsx)(p.zx,{className:ek().filterButtonMobile,innerClassName:ek().filterButtonMobileInner,size:"small",kind:"secondary",onClick:()=>_(!0),children:(0,n.jsx)(N.x,{langKey:"nft:activity:Filter"})}),(0,n.jsx)(ex.x,{sortByOptions:D,selectedSortOption:I,onSortOptionChange:k})]}):(0,n.jsxs)("div",{className:"mt2 flex flex-row items-center justify-between",children:[(0,n.jsxs)("div",{className:"flex flex-row items-center",children:[(0,n.jsx)(N.x,{langKey:"nft:wallet:filterBy:text",className:"caption-4 uppercase"}),(0,n.jsx)(eu,{className:f()("ml1",ek().rangeButton),maxLabel:W("nft:wallet:MaxPrice"),minLabel:W("nft:wallet:MinPrice"),onChange:q,placeholder:(0,n.jsx)(N.x,{langKey:"nft:wallet:filterBy:Price"}),popoverTitle:(0,n.jsx)(N.x,{langKey:"nft:wallet:filterBy:Price"}),value:C,ignoreRef:[P],children:(0,n.jsx)(en.R,{className:f()("mt1"),onChange:J,value:O,menuRef:P})}),(0,n.jsx)(ef.l,{className:"ml1",onChange:$,options:Z,showCheckmark:!0,value:M||void 0}),(0,n.jsx)(ef.l,{className:"ml1",onChange:eo,options:eI,showCheckmark:!0,value:y}),X&&A&&(0,n.jsxs)("button",{className:f()(ek().clear,"caption-2 body-link-1 flex items-center"),onClick:A,children:[(0,n.jsx)(el.E,{})," ",(0,n.jsx)(N.x,{langKey:"nft:filters:Clear",className:"mr1/2"})]})]}),(0,n.jsx)(ex.x,{sortByOptions:D,selectedSortOption:I,onSortOptionChange:k,labelContainerClassName:ek().sortBy})]})]}),er?(0,n.jsx)("div",{className:f()("relative grid w-100",ek().walletBody),children:(0,n.jsx)(ep.Pp,{className:f()({[ek().mobileCard]:T},ek().loadingCard)})}):ei?(0,n.jsx)(eN.b,{className:"pv10",title:(0,n.jsx)(N.x,{keys:{results:"".concat(R)},langKey:E?"nft:wallet:NoResultsFound":"nft:wallet:empty:title"}),subtitle:(0,n.jsx)(N.x,{langKey:E?"nft:wallet:NoNftsFoundPrompt":"nft:wallet:empty:text"}),icon:E?et.Z:"/nft/_next/static/chunks/images/bf8b178a0c91a83fc180a7dec601895b.png",isWallet:!E}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:f()("relative grid w-100",ek().walletBody,{[ek().walletBodyAlt]:(null==m?void 0:m.items)&&(null==m?void 0:m.items.length)<4,[ek().walletBodyMobile]:T}),children:null==m?void 0:null===(l=m.items)||void 0===l?void 0:l.map((e,l)=>(0,n.jsx)(ea.yC,{className:f()(ek().nftCard,{[ek().mobileCard]:T}),onClick:U,enableEnhancedLoadingEffect:!0,nftAsset:e,loadingIndex:l,namespace:"wallet-nfts",sm:T,showCustody:!0,testId:"nft-wallet-card",children:(0,n.jsx)(ea.Sh,{onSellComplete:B,onDepositClicked:ec,nftAsset:e,auction:null==F?void 0:F.find(l=>l.nft_ids.includes(e.id))})},e.id))}),m&&(null==m?void 0:m.total)>12?(0,n.jsxs)("div",{className:f()("flex justify-end",ek().walletFooter),children:[(0,n.jsx)(eh.M,{overFlowTitle:(0,n.jsx)(N.x,{langKey:"nft:wallet:FundingRowsPerPage"}),value:x.rows,onOptionSelect:x.onRowOptionSelect,items:x.rowOptions}),(0,n.jsx)(eC.t,{page:x.page-1,handleLastPage:ew,handleFirstPage:eb,handlePreviousPage:eA,handleNextPage:eM,pageSize:x.perPage,total:null!==(r=null==m?void 0:m.total)&&void 0!==r?r:0,arrowsClassName:ek().paginationArrows})]}):null]})]}),V?(0,n.jsx)(ey.H,{onDepositComplete:em,onReset:ed,nftAsset:V}):null]})},eB=t(56625),eE=t(91883),e_=t(35138),ez=t(74007),eW=t(67654),eT=t.n(eW);let eO=e=>{let{testId:l,valueClassName:t,title:a,titleTooltipLabel:s,asset:o,value:r,symbol:i,precision:c}=e;return(0,n.jsx)("div",{"data-testid":"nft-balance-".concat(l),children:(0,n.jsx)(e_.d,{title:(0,n.jsxs)("div",{className:f()("flex flex-column justify-between items-center w-100",eT().nftBalance),children:[(0,n.jsxs)("div",{className:"flex items-center w-100 caption-link-1 text-N600",children:[(0,n.jsx)("span",{children:a}),s&&(0,n.jsx)(eB.$,{className:"ml1/4",info:s,title:a,tooltipClassName:eT().tooltip})]}),(0,n.jsx)("div",{className:"w-100","data-testid":"nft-value-asset",children:(0,n.jsx)(e_.V,{valueClassName:f()("display-3 text-N600",eT().bigNumberValue,t),bigValue:(0,n.jsx)(n.Fragment,{children:r&&o?(0,n.jsxs)(n.Fragment,{children:[i,(0,n.jsx)(eE.Y,{value:r,asset:o,precision:c})]}):(0,n.jsx)(ez.u,{className:"w-100"})})})})]})})})},eL=e=>{var l,t,a;let{balances:s}=e,{t:o}=(0,i.$G)(),{isSmall:r}=(0,d.kC)(),{assetDefinitions:c}=(0,h.$F)(),u=parseInt(s.yourCollection||"");return(0,n.jsxs)("div",{className:f()("flex",eT().nftBalances,{gap4:!r,gap3:r,"justify-between":!r}),children:[(null===(l=s.totalCollectionAsset)||void 0===l?void 0:l.asset)&&(0,n.jsx)(eO,{testId:"totalCollectionValue",title:(0,n.jsx)(N.x,{langKey:"nft:wallet:balances:TotalEstimatedValue"}),titleTooltipLabel:(0,n.jsx)(N.x,{langKey:"nft:wallet:balances:TotalEstimatedValueTooltip"}),value:s.totalCollectionValue,asset:s.totalCollectionAsset,symbol:null===(t=s.totalCollectionAsset)||void 0===t?void 0:t.symbol,precision:(null==c?void 0:null===(a=c[s.totalCollectionAsset.asset])||void 0===a?void 0:a.display_decimals)||0,valueClassName:eT().valueSmall}),(0,n.jsx)(eO,{testId:"yourCollection",valueClassName:f()(eT().yourCollection,eT().valueSmall),title:(0,n.jsx)(N.x,{langKey:"nft:wallet:balances:Quantity"}),value:s.yourCollection,asset:o("nft:withdraw:Nft".concat(u>1?"_plural":""),{count:u}),precision:0})]})};var eP=t(7282),eK=t.n(eP),eQ=t(70564),eR=t(52483);function eU(e){let{optionsWithCheck:l,setCurrency:t,currency:a,setPriceFilter:o,priceFilter:r,setChainFilter:c,statusFilter:d,setStatusFilter:u}=e,{t:m}=(0,i.$G)(),f=(0,er.w7)({...r,name:m("nft:wallet:filterBy:Price").toLowerCase()}),x=(0,s.useCallback)(e=>{c(e)},[c]),p=(0,s.useCallback)(e=>{u(e)},[u]);return(0,n.jsxs)("div",{children:[(0,n.jsxs)(eQ.m,{className:"body-3 bni bold",title:(0,n.jsx)(N.x,{langKey:"nft:wallet:filterBy:Price"}),children:[(0,n.jsx)(en.R,{popoverClassName:eK().popover,value:a,onChange:t}),(0,n.jsx)(er.Dp,{value:r,minPlaceholder:m("nft:wallet:MinPrice"),maxPlaceholder:m("nft:wallet:MaxPrice"),onChangeMin:e=>o({...r,min:e}),onChangeMax:e=>o({...r,max:e})}),f.length>0&&f.map(e=>(0,s.createElement)(N.x,{className:"label-1 bold text-R300",...e,key:e.langKey}))]}),(0,n.jsx)(eQ.m,{className:"body-3 bni bold",title:(0,n.jsx)(N.x,{langKey:"nft:wallet:filterBy:WalletType"}),children:(0,n.jsx)("div",{className:"flex flex-column gap1",children:l.map(e=>{let{id:l,label:t,checked:a}=e;return t?(0,n.jsx)(eR.K,{id:l||"",label:t,checked:a,onChange:x},l):null})})}),(0,n.jsx)(eQ.m,{className:"body-3 bni bold",title:(0,n.jsx)(N.x,{langKey:"nft:wallet:status:Label"}),children:(0,n.jsx)("div",{className:"flex flex-column gap1",children:d.map(e=>{let{id:l,label:t,checked:a}=e;return(0,n.jsx)(eR.K,{id:l||"",label:t,checked:a,onChange:p},l)})})})]})}let eF=()=>{var e;let{t:l}=(0,i.$G)(),t=(0,u.useRouter)(),{isSmall:a}=(0,d.kC)(),{search:o=""}=(0,d.Rx)({pathname:t.pathname,queryKey:eD}),[r,c]=(0,s.useState)({}),[m,g]=(0,s.useState)("USD"),[v,w]=(0,s.useState)(),[b,j]=(0,s.useState)(),[C,M]=(0,s.useState)(),k=(0,d.h0)({itemsPerRow:4}),[A,I]=(0,s.useState)(!1),D=(0,d.Vp)(),B=(0,d.Jp)(),{trackPageError:E}=(0,d.Jh)({pageName:"my-nfts",trackPageImpressionOnMount:!0}),z=(0,s.useMemo)(()=>eA.map(e=>({...e,label:e.ticker?D(e.ticker):e.label})),[D]),{sortByOptions:W,onSortOptionChange:T,selectedSortOption:O}=(0,d.sI)({type:"NftWallet"}),{data:L,mutate:P}=(0,h.ix)({sort:O,search:o,page:k.page,per_page:k.perPage,price_currency:m,price_high:null==r?void 0:r.max,price_low:null==r?void 0:r.min,currency:B,chain:v||void 0,status:C?[C]:void 0}),K=null==L?void 0:L.items.some(e=>"Kraken"===e.custody),{addNftAccount:Q,removeNftAccount:R,NFTAccountDialog:U,editLabel:F}=(0,h.Cu)(P),G=(0,s.useCallback)(()=>{t.push(S.k2.NftDeposit)},[t]),{data:V}=(0,h.ix)({sort:"RecentlyBought",search:"",page:1,per_page:k.perPage,price_currency:"USD"}),Y=(0,s.useMemo)(()=>{if(L){var e;return{totalCollectionValue:L.total_value.amount.toString(),totalCollectionAsset:{asset:L.total_value.asset_name},yourCollection:null==V?void 0:null===(e=V.total)||void 0===e?void 0:e.toString()}}return{totalCollectionValue:"",totalCollectionAsset:void 0,yourCollection:""}},[null==V?void 0:V.total,L]),H=(0,s.useMemo)(()=>z.map(l=>({id:l.value||void 0,label:null!==(e=l.label)&&void 0!==e?e:void 0,checked:v==l.value||!v})),[v,z]),Z=(0,s.useMemo)(()=>eI.map(e=>({id:e.value||void 0,label:e.label,checked:C==e.value||!C})),[C]),J=(0,s.useCallback)(()=>{c({}),g("USD"),w(void 0),M(void 0)},[]),ee=(0,s.useCallback)(()=>{k.resetPage()},[k]),el=(0,s.useCallback)(e=>{T(e,{[d.tn]:void 0})},[T]),et=(0,s.useCallback)(()=>{I(!1)},[]);return(0,s.useEffect)(()=>{window&&window.scrollTo({top:0})},[t.query]),(0,n.jsxs)(y.II,{boundaryName:"Nft-Wallet-Page",type:"primary",fallback:(0,n.jsx)($.f,{}),onError:E,children:[A&&(0,n.jsx)(q.g,{onClear:J,onDone:et,onDismiss:et,children:(0,n.jsx)(eU,{optionsWithCheck:H,currency:m,setCurrency:e=>g(null!=e?e:"USD"),setPriceFilter:c,setChainFilter:w,priceFilter:r,statusFilter:Z,setStatusFilter:M})}),(0,n.jsxs)("div",{className:f()("container bg-IT100 mt2 mb2 flex flex-column",eK().walletPage,{ph0:a}),children:[(0,n.jsxs)("div",{className:f()("flex justify-between flex-wrap gap2",{"flex-column ph2":a}),children:[(0,n.jsx)("div",{className:eK().balances,children:(0,n.jsx)(eL,{balances:Y})}),(0,n.jsxs)("div",{className:f()("flex",eK().walletHeaderRight,{"gap1 justify-start":a,"gap3 justify-start":!a}),children:[(0,n.jsxs)(p.zx,{size:"large",className:f()({[eK().mobileDepositButton]:a}),innerClassName:f()(eK().innerButton),onClick:G,children:[(0,n.jsx)(x.z,{className:eK().btnIcon}),(0,n.jsx)("span",{className:eK().iconLabel,children:(0,n.jsx)(N.x,{langKey:"nft:wallet:Deposit"})})]}),(0,n.jsx)(_,{isDisabled:!K,innerClassName:f()(eK().innerButton,{[eK().mobileWithdraw]:a}),labelClassName:eK().iconLabel}),(0,n.jsx)(X,{onAdd:Q,onRemove:R,onEditLabel:F})]})]}),(0,n.jsx)(eS,{wallet:L,setPriceFilter:c,setChainFilter:w,setCategoryFilter:j,priceFilter:r,chainFilter:v,categoryFilter:b,pagination:k,sortByOptions:W,onSortOptionChange:el,onClearFilter:J,selectedSortOption:O,isSearching:!!o&&o.length>0,priceCurrency:m,setStatusFilter:M,statusFilter:C,setPriceCurrency:g,refreshWallet:P,setMobileFilterOpen:I,onFilterChange:ee}),(0,n.jsxs)("div",{className:f()("flex flex-column",{ph2:a}),children:[(0,n.jsx)(N.x,{className:"caption-2",langKey:"nft:wallet:Whitelist"}),(0,n.jsx)("a",{className:"caption-4 w-fc",target:"_blank",href:l("nft:wallet:LearnMoreLink"),rel:"noreferrer",children:(0,n.jsx)(N.x,{langKey:"nft:wallet:LearnMore"})})]}),U]})]})};var eG=t(60623);let eV=()=>{(0,d.$o)();let{t:e}=(0,i.$G)(),l=(0,c.xw)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(r(),{children:[(0,n.jsxs)("title",{children:[e("nft:Title:MyNFTsPage")," | ",e("nft:Title:General")]}),(0,n.jsx)("link",{rel:"canonical",href:"https://nft.kraken.com/inventory"}),(0,n.jsx)("meta",{name:"robots",content:"none"})]}),l?(0,n.jsx)($.f,{title:l.title,body:l.message,hideButtons:!l.showButtons}):(0,n.jsx)(eF,{})]})};eV.getLayout=eG.R;var eY=eV},50641:function(e){e.exports={collapsiblePanel:"CollapsiblePanel_collapsiblePanel__ojK3q"}},74755:function(e){e.exports={lockup:"Lockups_lockup__vkKlH",lockupTitle:"Lockups_lockupTitle__UQHDK",small:"Lockups_small__gvevC",lockupValue:"Lockups_lockupValue__EgiGX",lockupNutritionFact:"Lockups_lockupNutritionFact__0zN7G",lockupIndicator:"Lockups_lockupIndicator__mw0Wj",lockupBigNumber:"Lockups_lockupBigNumber__7kDqx",lockupBigValue:"Lockups_lockupBigValue__gC4Ol",lockupBigValueSpan:"Lockups_lockupBigValueSpan__LobQO"}},35089:function(e){e.exports={checkbox:"NftCheckbox_checkbox__Ms0Gu"}},1313:function(e){e.exports={button:"NftDropDownButton_button__0DRZN"}},60663:function(e){e.exports={dropdownButton:"NftDropdownFilter_dropdownButton__kekuw",mobile:"NftDropdownFilter_mobile__zqaTT",label:"NftDropdownFilter_label__pYq51",dirty:"NftDropdownFilter_dirty__RArel",dropdownValue:"NftDropdownFilter_dropdownValue__Vnfl3",dropdownItem:"NftDropdownFilter_dropdownItem__WfZkd",value:"NftDropdownFilter_value__YVCLU"}},80330:function(e){e.exports={icon:"NftEmptyPane_icon__ARU9s",subtitle:"NftEmptyPane_subtitle__qcwGN"}},40239:function(e){e.exports={button:"NftRangeFilter_button__pRgyo",chevron:"NftRangeFilter_chevron__r5zbA",popover:"NftRangeFilter_popover__znAPz"}},12782:function(e){e.exports={nftSelectorModal:"NftSelectorModal_nftSelectorModal__97FXB",container:"NftSelectorModal_container__8Kts1",searchBar:"NftSelectorModal_searchBar__AURhN",searchInput:"NftSelectorModal_searchInput__15Vos",quoteCloseClear:"NftSelectorModal_quoteCloseClear__GpqVY",name:"NftSelectorModal_name__I9dIt",asset:"NftSelectorModal_asset__Oqnt6",crypton:"NftSelectorModal_crypton__98SG4"}},67654:function(e){e.exports={tooltipContent:"NftBalances_tooltipContent__FI1Qt",infoIcon:"NftBalances_infoIcon___0_Ze",yourCollection:"NftBalances_yourCollection__Xl6Rh",nftBalances:"NftBalances_nftBalances__a2M1H",nftBalance:"NftBalances_nftBalance__MM75G",bigNumberValue:"NftBalances_bigNumberValue__uErQy",valueSmall:"NftBalances_valueSmall__iLNPf",tooltip:"NftBalances_tooltip__1wAHG"}},17756:function(e){e.exports={wallet:"NftWallet_wallet__RqwBV",mobile:"NftWallet_mobile__PSam8",sortBy:"NftWallet_sortBy__E2i_W",mobileCard:"NftWallet_mobileCard__VGisM",loadingCard:"NftWallet_loadingCard__mJdQE",walletHeader:"NftWallet_walletHeader__Nz8GG",walletBody:"NftWallet_walletBody__t3nBe",walletBodyMobile:"NftWallet_walletBodyMobile__83BJ2",walletBodyAlt:"NftWallet_walletBodyAlt__9iX6l",nftCard:"NftWallet_nftCard__n12Jd",walletFooter:"NftWallet_walletFooter__GSAmM",paginationArrows:"NftWallet_paginationArrows__Xal7S",filterButtonMobileInner:"NftWallet_filterButtonMobileInner__ZJVdv"}},7282:function(e){e.exports={walletPage:"NftWalletPage_walletPage__zjazN",walletHeaderRight:"NftWalletPage_walletHeaderRight__eBIUq",innerButton:"NftWalletPage_innerButton__5MNLB",mobileWithdraw:"NftWalletPage_mobileWithdraw__RFyyr",mobileDepositButton:"NftWalletPage_mobileDepositButton__Bx4cC",iconLabel:"NftWalletPage_iconLabel__1Oich",btnIcon:"NftWalletPage_btnIcon__wbBI_",popover:"NftWalletPage_popover__w8KR8"}},66599:function(e){e.exports={wrap:"NftWhiteListBanner_wrap__8qweB",buttonInner:"NftWhiteListBanner_buttonInner__ild3s"}},51177:function(e){e.exports={itemText:"NftWeb3WalletDropdown_itemText__ii6Gw",walletBtn:"NftWeb3WalletDropdown_walletBtn__NUOX5",walletBtnMobile:"NftWeb3WalletDropdown_walletBtnMobile__ZBDC_",label:"NftWeb3WalletDropdown_label__NdhKH",itemWithLabel:"NftWeb3WalletDropdown_itemWithLabel__PqAWL",itemMobile:"NftWeb3WalletDropdown_itemMobile__nmqie",avatar:"NftWeb3WalletDropdown_avatar__HDqs6",avatarDropdownButton:"NftWeb3WalletDropdown_avatarDropdownButton__a7GMc",check:"NftWeb3WalletDropdown_check__WLnoj",checkGreenTickCircle:"NftWeb3WalletDropdown_checkGreenTickCircle__jn0VT",crypton:"NftWeb3WalletDropdown_crypton__Gmd5X",phantomIcon:"NftWeb3WalletDropdown_phantomIcon__9IfmC",connectedIcon:"NftWeb3WalletDropdown_connectedIcon__0lJDG",greenTick:"NftWeb3WalletDropdown_greenTick__X9t8_"}},15930:function(e){e.exports={innerButton:"NftWithdrawalModal_innerButton__4H_lK",mobile:"NftWithdrawalModal_mobile__FpASU",iconLabel:"NftWithdrawalModal_iconLabel__AQJyf",btnIcon:"NftWithdrawalModal_btnIcon__TXvRo"}},69921:function(e,l){"use strict";var t=Symbol.for("react.element"),a=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),r=Symbol.for("react.provider"),i=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),x=Symbol.for("react.lazy");function p(e){if("object"==typeof e&&null!==e){var l=e.$$typeof;switch(l){case t:switch(e=e.type){case n:case o:case s:case u:case m:return e;default:switch(e=e&&e.$$typeof){case c:case i:case d:case x:case f:case r:return e;default:return l}}case a:return l}}}Symbol.for("react.offscreen"),Symbol.for("react.module.reference"),l.isFragment=function(e){return p(e)===n},l.isMemo=function(e){return p(e)===f}},59864:function(e,l,t){"use strict";e.exports=t(69921)}},function(e){e.O(0,[45,6167,403,1371,4993,7398,1079,6690,2992,9049,6242,7802,2019,5656,4445,9774,2888,179],function(){return e(e.s=62184)}),_N_E=e.O()}]);