-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
offers-126c0f9ff52b6f17.js.download
1 lines (1 loc) · 38.4 KB
/
offers-126c0f9ff52b6f17.js.download
1
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[933],{65439:function(e,t,l){"use strict";l.d(t,{K:function(){return o}});var a=l(67294),n=l(93552),s=function(e,t){var l={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(l[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)0>t.indexOf(a[n])&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(l[a[n]]=e[a[n]]);return l};let o=a.forwardRef((e,t)=>{var{color:l}=e,o=s(e,["color"]);return a.createElement("svg",Object.assign({},(0,n.ti)(o),{ref:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M11 14V6H13V14H11Z",fill:l}),a.createElement("path",{d:"M11 16V18H13V16H11Z",fill:l}),a.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4Z",fill:l}))});o.displayName="CircleExclamationMark"},59882:function(e,t,l){"use strict";l.d(t,{C:function(){return o}});var a=l(67294),n=l(93552),s=function(e,t){var l={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(l[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)0>t.indexOf(a[n])&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(l[a[n]]=e[a[n]]);return l};let o=a.forwardRef((e,t)=>{var{color:l}=e,o=s(e,["color"]);return a.createElement("svg",Object.assign({},(0,n.ti)(o),{ref:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M16.6 11.8C16.6 14.451 14.451 16.6 11.8 16.6C9.14903 16.6 7 14.451 7 11.8C7 9.14903 9.14903 7 11.8 7C14.451 7 16.6 9.14903 16.6 11.8Z",fill:l}))});o.displayName="IndicatorCircle"},53514:function(e,t,l){"use strict";l.d(t,{a:function(){return o}});var a=l(67294),n=l(93552),s=function(e,t){var l={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(l[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)0>t.indexOf(a[n])&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(l[a[n]]=e[a[n]]);return l};let o=a.forwardRef((e,t)=>{var{color:l}=e,o=s(e,["color"]);return a.createElement("svg",Object.assign({},(0,n.ti)(o),{ref:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M9 9H20V7H9V9Z",fill:l}),a.createElement("path",{d:"M9 13H20V11H9V13Z",fill:l}),a.createElement("path",{d:"M20 17H9V15H20V17Z",fill:l}),a.createElement("path",{d:"M4 13H7V11H4V13Z",fill:l}),a.createElement("path",{d:"M7 9H4V7H7V9Z",fill:l}),a.createElement("path",{d:"M4 17H7V15H4V17Z",fill:l}))});o.displayName="List"},74528:function(e,t,l){"use strict";l.d(t,{H:function(){return o}});var a=l(67294),n=l(93552),s=function(e,t){var l={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(l[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)0>t.indexOf(a[n])&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(l[a[n]]=e[a[n]]);return l};let o=a.forwardRef((e,t)=>{var{color:l}=e,o=s(e,["color"]);return a.createElement("svg",Object.assign({},(0,n.ti)(o),{ref:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("path",{d:"M8 6H12.5C13.8777 6 15 7.12228 15 8.5C15 9.87772 13.8777 11 12.5 11C10.5677 11 9 12.5677 9 14.5V16H11V14.5C11 13.6723 11.6723 13 12.5 13C14.9823 13 17 10.9823 17 8.5C17 6.01772 14.9823 4 12.5 4H8V6Z",fill:l}),a.createElement("path",{d:"M9 18V20H11V18H9Z",fill:l}))});o.displayName="Question"},79161:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/inventory/offers",function(){return l(61797)}])},18422:function(e,t,l){"use strict";l.d(t,{O:function(){return c}});var a=l(67294),n=l(11770),s=l(59112),o=function(e,t){var l={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(l[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)0>t.indexOf(a[n])&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(l[a[n]]=e[a[n]]);return l};let i=e=>/^[0-9]*$/g.test(e),r=e=>e.replace(/[^0-9]/g,""),c=e=>{let{Field:t=n.gN,value:l,autoFocus:c,labelLangKey:d,inputDataTestId:u,setValue:m,onBlur:f,onKeyPress:p}=e,x=o(e,["Field","value","autoFocus","labelLangKey","inputDataTestId","setValue","onBlur","onKeyPress"]),g=(e,t)=>{i(t)||m(e,r(t),!0)},v=e=>{let{name:t,value:l}=e.currentTarget;g(t,l),null==f||f(e)},b=e=>{let{name:t,value:l}=e.currentTarget;"Enter"===e.key&&g(t,l),null==p||p(e)};return a.createElement(t,Object.assign({},x,{floating:!0,value:l,onBlur:v}),a.createElement(t.Floating,null,a.createElement(t.FloatingLabel,null,a.createElement(s.x,{langKey:d})),a.createElement(t.TextInput,{type:"tel",autoComplete:"one-time-code","data-testid":u,autoFocus:c,onKeyPress:b})))}},88669:function(e,t,l){"use strict";l.d(t,{P:function(){return f}});var a=l(67294),n=l(86010);let s=0,o=()=>"k".concat(s++);var i=l(10045),r=l(66184),c=l.n(r),d=function(e,t){var l={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(l[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)0>t.indexOf(a[n])&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(l[a[n]]=e[a[n]]);return l};let u=e=>{var{isSelected:t,name:l,disabled:s,onChange:r,title:u,value:m,description:f,className:p,icon:x,fullWidth:g=!0}=e,v=d(e,["isSelected","name","disabled","onChange","title","value","description","className","icon","fullWidth"]);let{current:b}=(0,a.useRef)(o()),{"data-testid":A}=v,y=()=>{s||t||r(m)},j=a.createElement("button",{className:(0,n.Z)(c().segmentedOption,p,"h-100 relative flex items-center",{"w-100":g,[c().isSelected]:t,[c().disabled]:s}),onClick:y,type:"button","data-testid":A||"".concat(u,"-radio-button")},a.createElement("input",{className:"h-100 o-0 w-100 mv0 mh0 absolute flex items-center",id:b,defaultChecked:t,disabled:s,name:l,tabIndex:-1,type:"radio",value:m}),x?a.createElement("div",{className:"w-100 tc mv0 mr2 flex items-center"},a.createElement("div",{className:"ml2 flex items-center"},x),a.createElement("div",{className:"ml1 w-100 flex"},u)):a.createElement("label",{className:"w-100 tc mv0",htmlFor:b},u));return f?a.createElement(i.u,{size:"micro",label:f,offset:4,verticalPosition:"top",className:c().tooltip},j):j};var m=function(e,t){var l={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(l[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)0>t.indexOf(a[n])&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(l[a[n]]=e[a[n]]);return l};let f=e=>{var{className:t,name:l=o(),onSelect:s,options:i,isCompact:r=!0,selected:d,disabled:f,size:p="micro",fullWidth:x=!0}=e,g=m(e,["className","name","onSelect","options","isCompact","selected","disabled","size","fullWidth"]);let v=null!=s?s:()=>{};return a.createElement("div",Object.assign({className:(0,n.Z)(c().segmentedController,"flex",t,c()[p],{[c().compact]:r,"w-100":x}),"data-testid":"nutrition-fact-container"},g),i.map(e=>a.createElement(u,{isSelected:d===e.value,key:e.value,name:l,onChange:v,disabled:f||e.disabled,title:e.title,value:e.value,icon:e.icon,description:e.description,className:(0,n.Z)(e.className,"no-tab-highlight"),"data-testid":e["data-testid"],fullWidth:x})))}},99431:function(e,t,l){"use strict";l.d(t,{O:function(){return r}});var a=l(67294),n=l(86010),s=l(23458),o=l.n(s),i=function(e,t){var l={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(l[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)0>t.indexOf(a[n])&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(l[a[n]]=e[a[n]]);return l};let r=e=>{let{status:t="pending",width:l="100%",height:s,children:r,className:c}=e,d=i(e,["status","width","height","children","className"]);return a.createElement("div",Object.assign({className:(0,n.Z)(o().skeleton,c,{[o().error]:"error"===t},"label-2"),style:{width:l,height:s},"data-testid":"pending"===t?"skeleton-pending":"skeleton-error"},d),r)}},50336:function(e,t,l){"use strict";l.d(t,{M:function(){return f}});var a=l(85893),n=l(67294),s=l(51371),o=l(59112),i=l(62410),r=l(21779),c=l(94907),d=l(24010),u=l.n(d);let m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",{data:t}=(0,r._N)({collectionId:e});return(0,n.useMemo)(()=>t&&e?{label:t.name,value:t.id}:void 0,[e,t])},f=e=>{var t;let{className:l,onChange:d,truncateItemLength:f,value:p,popoverClassName:x,chain:g,clearSearchInputValueOnChange:v=!1,hasStatefulSelectedItem:b=!0,showImage:A,placeholder:y,sort:j}=e,[h,C]=(0,n.useState)(void 0),N=(0,c.Nr)(h,600),{data:O,error:w,isValidating:_}=(0,r.DX)({page:1,page_size:100,search:""===N?void 0:null!=N?N:void 0,chain:g,sort:"MostRelevant"===j?void 0:j}),S=(null!==(t=null==O?void 0:O.items)&&void 0!==t?t:[]).map(e=>{var t,l,n,s;return{label:A?(0,a.jsxs)("div",{className:"flex justify-start items-center",children:[(0,a.jsx)("img",{alt:e.name,className:"".concat(u().thumb," mr1"),src:(null===(t=e.image)||void 0===t?void 0:null===(l=t.derived)||void 0===l?void 0:l.Thumbnail.url)||(null===(n=e.image)||void 0===n?void 0:null===(s=n.main)||void 0===s?void 0:s.url)||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAbCAYAAABm409WAAAK2WlDQ1BJQ0MgUHJvZmlsZQAASImVlwdUU1kagO976Y2SAAJSQm+CdAJICaGFIkgHUQlJIKHEkBBELFgYHMGxoCKCyoAOgihYRkDGAohiYVBs2DfIoKCOgwUbKvuAJczMnt09+59z3/3en//+5b17c/4HAMWXIxZnwCoAZIqyJREBPvS4+AQ67imAgB6gAm3gyuFKxczw8BCAyPT8V3l/B7FG5Kb1hK9///2/CpXHl3IBgBIRTuZJuZkItyFjiCuWZAOAqkX0RsuyxRPcjbCaBEkQYfkEp07xuwlOnmQ0ftImKoKFsA4AeDKHI0kFgGyO6Ok53FTEDzkQYVsRTyhCOBdhT66Aw0O4BeE5mZlLJ/g3hM0RezEAFDLCjOQ/+Uz9i/9khX8OJ1XBU3VNCt5XKBVncJb/n4/mf0tmhmw6hikyyAJJYAQyI28Tupu+NFjBouT5YdMs5E3aT7JAFhg9zVwpK2GaeRzfYMXajPkh05wi9Gcr/GSzo6aZL/WLnGbJ0ghFrBQJiznNHMlMXFl6tEIv4LMV/vMEUbHTnCOMmT/N0vTI4BkblkIvkUUo8ueLAnxm4voras+U/qleIVuxNlsQFaionTOTP1/EnPEpjVPkxu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(0,n.useCallback)(e=>{var t;let l=(null!==(t=null==O?void 0:O.items)&&void 0!==t?t:[]).find(t=>t.id==e.target.value);l&&d({target:{id:l.id,name:l.name,value:l.id}})},[O,d]);return(0,a.jsx)(s.d,{className:l,onChange:I,onSearchChange:C,label:(0,a.jsx)(o.x,{langKey:"nft:activity:Collections"}),options:S,noResults:()=>_?(0,a.jsx)(i.T,{skinny:!0,size:16}):(0,a.jsx)(o.x,{langKey:"nft:noItemsFound"}),placeholder:y,truncateItemLength:f,value:p,pending:_,hasStatefulSelectedItem:b&&!!E,defaultStatefulSelectedItem:E,hasError:void 0!==w&&!p,hasSearchError:void 0!==w,clearSearchInputValueOnChange:v,popoverClassName:x,isSearchable:!0,offloadSearchFiltering:!0,truncateSelecteItemLabel:!0,hidePendingSpinner:!0})}},61797:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return ej}});var a,n,s=l(85893),o=l(67294),i=l(9008),r=l.n(i),c=l(1922),d=l(72512),u=l(94907),m=l(94184),f=l.n(m),p=l(11163),x=l(64124),g=l(21289),v=l(62009),b=l(59112),A=l(51371),y=l(47630),j=l(72261),h=l(88669),C=l(56769),N=l(21779),O=l(50336),w=l(64226),_=l(9616),S=l(10362),E=l(64279),I=l(66199),B=l(16164),k=l(63470),P=l(19037),K=l(53514),D=l(33762),Z=l(75438),G=l(10193),T=l(64318),H=l(38262),V=l(41343),M=l(59882),Y=l(10045),z=l(28261),W=l.n(z);let R={EXECUTED:{class:"complete",value:(0,s.jsx)(b.x,{langKey:"nft:transaction:status:Complete"}),tooltip:(0,s.jsx)(b.x,{langKey:"nft:transaction:status:tooltip:Complete"})},CONVERTED:{class:"complete",value:(0,s.jsx)(b.x,{langKey:"nft:transaction:status:Complete"}),tooltip:(0,s.jsx)(b.x,{langKey:"nft:transaction:status:tooltip:Complete"})},CANCELLED:{class:"cancelled",value:(0,s.jsx)(b.x,{langKey:"nft:transaction:status:Canceled"}),tooltip:(0,s.jsx)(b.x,{langKey:"nft:transaction:status:tooltip:Canceled"})},SYSTEM_CANCELLED:{class:"cancelled",value:(0,s.jsx)(b.x,{langKey:"nft:transaction:status:Canceled"}),tooltip:(0,s.jsx)(b.x,{langKey:"nft:transaction:status:tooltip:Canceled"})},UNKNOWN:{class:"failed",value:(0,s.jsx)(b.x,{langKey:"nft:transaction:status:Failed"}),tooltip:(0,s.jsx)(b.x,{langKey:"nft:transaction:status:tooltip:Failed"})},LOCKED:{class:"submitted",value:(0,s.jsx)(b.x,{langKey:"nft:transaction:status:Submitted"}),tooltip:(0,s.jsx)(b.x,{langKey:"nft:transaction:status:tooltip:Submitted"})},OPEN:{class:"submitted",value:(0,s.jsx)(b.x,{langKey:"nft:transaction:status:Submitted"}),tooltip:(0,s.jsx)(b.x,{langKey:"nft:transaction:status:tooltip:Submitted"})},EXPIRED:{class:"expired",value:(0,s.jsx)(b.x,{langKey:"nft:transaction:status:Expired"}),tooltip:(0,s.jsx)(b.x,{langKey:"nft:transaction:status:tooltip:Expired"})}},F=e=>{let{type:t,children:l}=e;return(0,s.jsx)("div",{className:f()(W().base,W()[t]),children:l})},L=e=>{let{status:t,isSent:l=!1}=e,a=R[t];return(0,s.jsx)(Y.u,{forceHidden:!l,label:null==a?void 0:a.tooltip,children:(0,s.jsx)("span",{className:"caption-2 cursor-default",children:(0,s.jsxs)(F,{type:null==a?void 0:a.class,children:[(0,s.jsx)(M.C,{size:"x-small"}),null==a?void 0:a.value]})})})};var Q=l(72328),q=l(56625),X=l(91883),J=l(96604),U=l(63921),$=l(99392),ee=l.n($);function et(e){let{onClick:t,isOfferUnlocked:l}=e;return(0,s.jsx)(Y.u,{label:(0,s.jsx)(b.x,{langKey:"nft:bids:ApprovalLocked"}),forceHidden:l,children:(0,s.jsx)(j.zx,{size:"small",kind:"secondary",innerClassName:ee().innerButton,onClick:t,disabled:!l,children:(0,s.jsx)(b.x,{langKey:"nft:listings:Cancel"})})})}var el=l(74878),ea=l.n(el);function en(e){let{onClick:t}=e;return(0,s.jsx)(j.zx,{size:"small",innerClassName:ea().innerButton,onClick:t,children:(0,s.jsx)(b.x,{langKey:"nft:bids:Accept"})})}var es=l(13510),eo=l.n(es);function ei(e){let{onClick:t}=e;return(0,s.jsx)(j.zx,{size:"small",kind:"secondary",innerClassName:eo().innerButton,onClick:t,children:(0,s.jsx)(b.x,{langKey:"nft:bids:Counter"})})}function er(e){let{status:t,status_detail:l,quoteId:a,isSent:n,type:o,onCancel:i,onCounter:r,onAccept:c,dataTestId:u}=e,m=(0,d.cS)({status_detail:l});return"open"!==t||"LOCKED"===l&&a?(0,s.jsx)(s.Fragment,{}):(0,s.jsxs)("div",{"data-testid":u,className:"flex gap1",children:[n&&(0,s.jsx)(et,{onClick:i,isOfferUnlocked:m}),!n&&(0,s.jsx)(en,{onClick:c}),!n&&"offers"===o&&(0,s.jsx)(ei,{onClick:r})]})}var ec=l(80226),ed=l.n(ec),eu=l(41599);function em(e){let{isSmall:t}=(0,u.kC)(),{i18n:a}=(0,c.$G)(),n=(0,u.vs)(a.language),i=(0,u.qW)(a.language),r=(0,u.yo)(),m=(0,u.Jp)(),{quoteAssetDefinitions:p}=(0,u.un)({asMap:!0}),{title:x,data:g=[],pageSize:v,filter:A,type:y,onCancelOffer:h,onCounterOffer:C,onAcceptOffer:N,isSent:O,pageOverride:w,onPageChange:_,total:I,pending:B,onSortData:M,tab:Y,setMobileFilterOpen:z,setFilter:W,filters:R}=e,F=(0,S.t4)({includeAsset:!0}),$=(0,o.useMemo)(()=>({collection:void 0,chain:F,startDate:void 0,endDate:void 0,status:"sent"===Y?void 0:"open"}),[F,Y]),[ee,et]=(0,o.useState)(),[el,ea]=(0,o.useState)(),[en,es]=(0,o.useState)(),{clearQueryParams:eo}=(0,u.Kx)(),ei=(0,u.Z0)(),ec=!(null==g?void 0:g.length),em=(0,o.useCallback)(()=>l.e(4754).then(l.t.bind(l,10056,19)),[]),{ref:ef}=(0,u.Le)(em,ec),ep=(0,o.useMemo)(()=>!(0,k.Z)(A,$),[$,A]),ex=(0,o.useCallback)(e=>{et(e)},[et]),eg=(0,o.useCallback)(()=>{ee&&(null==h||h(ee,y)),et(void 0)},[ee,h,y]),ev=(0,o.useCallback)(()=>{et(void 0)},[et]),eb=(0,o.useCallback)(e=>{ea({ticker:e.chain,nftId:e.nftAsset.id,price:e.price,name:e.nftAsset.name,id:e.id})},[]),eA=(0,o.useCallback)(()=>{el&&(null==N||N(el.nftId)),ea(void 0)},[N,el]),ey=(0,o.useCallback)(()=>{ea(void 0)},[ea]),ej=(0,o.useCallback)(e=>{es(e)},[es]),eh=(0,o.useCallback)(()=>{null==C||C(),es(void 0)},[C]),eC=(0,o.useCallback)(()=>{es(void 0)},[es]),eN=(0,o.useCallback)(()=>{W($),eo(["tab","sort","page"])},[W,$,eo]),eO=(0,o.useCallback)(e=>{let t=[],l=(0,d.cS)(e);return"open"!==e.status||(O?t.push({text:(0,s.jsxs)("span",{className:"flex flow-row mr3/2",children:[(0,s.jsx)(P.$,{className:"mr1/2"}),(0,s.jsx)("span",{className:"self-center",children:(0,s.jsx)(b.x,{langKey:"nft:listings:Cancel"})}),!l&&(0,s.jsx)("span",{className:"ml1 self-center",children:(0,s.jsx)(q.$,{tooltipClassName:ed().mobileTooltip,preventFocusOnMobile:!0,horizontalOffset:-20,stopPropagationOnClick:!0,info:(0,s.jsx)(b.x,{langKey:"nft:bids:ApprovalLocked"})})})]}),onSelect:()=>ex(e.id),disabled:!l}):t.push({text:(0,s.jsx)(eu.B,{type:"accept"}),onSelect:()=>eb(e)},{text:(0,s.jsx)(eu.B,{type:"counter"}),onSelect:()=>ej(e)}),t.push({text:(0,s.jsxs)("span",{className:"flex flow-row mr3/2",children:[(0,s.jsx)(K.a,{className:"mr1/2"}),(0,s.jsx)("span",{className:"self-center",children:(0,s.jsx)(b.x,{langKey:"nft:bids:ViewItem"})})]}),onSelect:()=>{var t;return ei(null===(t=e.nftAsset)||void 0===t?void 0:t.id)}})),t},[O,ex,eb,ej,ei]);return(0,s.jsx)("div",{className:f()("bg-pure-white mt2 mb4",{card:!t}),children:(0,s.jsxs)(E.II,{boundaryName:"Nft-Bids-Table",type:"secondary",fallback:(0,s.jsx)("div",{children:(0,s.jsx)(b.x,{langKey:"general:Error"})}),children:[(0,s.jsxs)("div",{className:f()(ed().header,"flex items-center justify-between gap1 pa2 body-3 text-N600 relative",{bb:t}),children:[x,!t&&ep&&(0,s.jsxs)("button",{className:f()(ed().clear,"caption-2 body-link-1 flex items-center absolute"),onClick:eN,children:[(0,s.jsx)(D.E,{})," ",(0,s.jsx)(b.x,{langKey:"nft:filters:Clear",className:"mr1/2"})]}),t&&(0,s.jsx)("div",{children:(0,s.jsx)(j.zx,{innerClassName:ed().filterButtonMobile,size:"small",kind:"secondary",onClick:()=>z(!0),children:(0,s.jsx)(b.x,{langKey:"nft:activity:Filter"})})})]}),t?(0,s.jsxs)(s.Fragment,{children:[null==g?void 0:g.map((e,t)=>{var l;return(0,s.jsx)("div",{className:f()(ed().mobileCell,"flex flex-column ph2"),children:(0,s.jsxs)("div",{className:"flex flex-column items-left justify-around pv1 mv1/2 gap1/2",children:[(0,s.jsx)("div",{className:"flex flex-row gap1",children:(0,s.jsxs)("div",{className:"flex flex-column w-100",children:[(0,s.jsxs)("div",{className:"flex flex-row gap1/2",children:[(0,s.jsx)("span",{className:"bold uppercase caption-4 text-N600 self-center",children:e.isSent?(0,s.jsx)(b.x,{langKey:"nft:bids:OutgoingOffer"}):(0,s.jsx)(b.x,{langKey:"nft:bids:IncomingOffer"})}),(0,s.jsx)("span",{className:f()(ed().spacer,"self-center text-IT300"),children:"\xb7"}),(0,s.jsx)("span",{className:"label-2 text-N300 self-center capitalize",children:null===(l=e.status_detail)||void 0===l?void 0:l.toLowerCase()})]}),(0,s.jsx)("span",{className:"label-2 text-N300",children:n.format(1e3*e.time)})]})}),(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsxs)("div",{className:"flex flex-row items-start gap1 pointer",onClick:()=>{var t;return ei(null===(t=e.nftAsset)||void 0===t?void 0:t.id)},children:[(0,s.jsx)(H.GY,{shape:H.oG.SQUARE,src:e.nftAsset.imageUrl,type:"medium"}),(0,s.jsxs)("div",{className:"flex flex-column",children:[(0,s.jsx)("span",{className:"caption-2 text-N600",children:e.nftAsset.name}),(0,s.jsx)("span",{className:"label-2 text-P500",children:e.nftAsset.collectionName})]})]}),(0,s.jsxs)("div",{className:"flex gap1",children:[(0,s.jsxs)("div",{className:"flex flex-column tr",children:[(0,s.jsx)(X.Y,{className:"caption-mono-2 text-N600",value:e.price,asset:{asset:e.asset.asset},precision:2}),(0,s.jsx)(X.Y,{className:"label-mono-2 text-N300",value:r(e.asset.asset,e.price),asset:{asset:m},precision:2})]}),(0,s.jsx)(J.P,{className:f()(ed().overflow,"text-P500 tracer"),items:eO(e),tabIndex:0,id:e.id,disabled:eO(e).length<1})]})]})]})},"".concat(e.id).concat(t))}),!(null==g?void 0:g.length)&&(0,s.jsxs)("div",{className:"flex flex-column justify-center items-center pa6",children:[(0,s.jsx)("div",{className:ed().animation,children:(0,s.jsx)("div",{ref:ef,"data-testid":"noDataMobile"})}),(0,s.jsx)("div",{className:"body-3 text-N600",children:(0,s.jsx)(b.x,{langKey:"nft:bids:NoActiveOffersFound"})})]})]}):(0,s.jsxs)(s.Fragment,{children:[R,(0,s.jsxs)(U.wQ,{className:"ph3",data:g,defaultSort:{time:Z.h8.desc},getRowKey:e=>e.id,onSortData:M,pending:B,pendingCount:v,onRequestData:_,offset:w,pageSize:v,total:I,getEmptyContent:()=>(0,s.jsx)("div",{className:ed().emptyStateContainer,children:(0,s.jsx)(Q.w,{title:(0,s.jsx)(b.x,{langKey:"nft:transactions:NoData"})})}),dataTestId:"bids-table",children:[(0,s.jsx)(U.wQ.Column,{dataKey:"time",title:(0,s.jsx)(b.x,{langKey:"general:Date"}),scale:105,sort:!0,render:e=>{if(!e.time)return;let t=1e3*e.time;return(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"caption-mono-2 text-N600",children:n.format(t)}),(0,s.jsx)("p",{className:"label-mono-2 text-N300",children:i.format(t)})]})}}),(0,s.jsx)(U.wQ.Column,{dataKey:"nftAsset",scale:320,title:(0,s.jsx)(b.x,{langKey:"trade:Asset"}),render:e=>{if(e.nftAsset)return(0,s.jsxs)("div",{className:"flex items-center gap1 pointer",onClick:()=>{var t;return ei(null===(t=e.nftAsset)||void 0===t?void 0:t.id)},children:[(0,s.jsx)(H.GY,{shape:H.oG.SQUARE,src:e.nftAsset.imageUrl,type:"small"}),(0,s.jsxs)("div",{className:"flex flex-column",children:[(0,s.jsx)("div",{className:"caption-2 text-N600",children:e.nftAsset.name}),(0,s.jsx)("div",{className:"label-2 text-P500",children:e.nftAsset.collectionName})]})]})}}),(0,s.jsx)(U.wQ.Column,{dataKey:"type",scale:148,title:(0,s.jsx)(b.x,{langKey:"trade:Type"}),render:e=>{if(e.nftAsset)return(0,s.jsx)("div",{className:"flex items-center justify-center caption-2",children:O?(0,s.jsx)(b.x,{langKey:"nft:bids:OutgoingOffer"}):(0,s.jsx)(b.x,{langKey:"nft:bids:IncomingOffer"})})}}),(0,s.jsx)(U.wQ.Column,{dataKey:"offerEndTime",scale:130,title:(0,s.jsx)(b.x,{langKey:"nft:bids:OfferEndTime"}),render:e=>{if(!e.offerEndTime)return;let t=1e3*e.offerEndTime;return(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"caption-mono-2 text-N600",children:n.format(t)}),(0,s.jsx)("p",{className:"label-mono-2 text-N300",children:i.format(t)})]})}}),(0,s.jsx)(U.wQ.Column,{dataKey:"price",scale:130,title:(0,s.jsx)(b.x,{langKey:"trade:Price"}),className:"justify-end",headerClassName:"justify-end",render:e=>{if(e.price)return(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"caption-mono-2 text-N600 tr",children:(0,s.jsx)(X.Y,{asset:e.asset,value:e.price.toString()})}),(0,s.jsx)("p",{className:"label-mono-2 text-N300 tr",children:(0,s.jsx)(X.Y,{value:r(e.asset.asset,e.price.toString()),asset:{asset:m},precision:2})})]})}}),(0,s.jsx)(U.wQ.Column,{dataKey:"status",scale:150,title:(0,s.jsx)(b.x,{langKey:"general:Status"}),render:e=>{if(e.status_detail)return(0,s.jsx)(L,{isSent:O,status:e.status_detail})}}),(0,s.jsx)(U.wQ.Column,{dataKey:"id",scale:280,className:ed().actionsColumn,title:(0,s.jsx)(b.x,{langKey:"general:Actions"}),render:function(e){let{status:t,status_detail:l,isSent:a,id:n,quoteId:o}=e,i=()=>eb(e),r=()=>ex(n),c=()=>ej(e);return(0,s.jsx)(er,{onAccept:i,onCancel:r,onCounter:c,status:t,status_detail:l,quoteId:o,isSent:a,type:y})}})]})]}),ee&&(0,s.jsx)(V.Bq,{offerId:ee,onConfirm:eg,onDismiss:ev,className:f()({[ed().dialog]:t})}),el&&(0,s.jsx)(G.E,{className:f()({[ed().dialog]:t}),isOpen:!0,offer:el,onConfirm:eA,onDismiss:ey}),en&&(0,s.jsx)(T.E,{offerId:en.id,assetTicker:en.chain,onConfirm:eh,onDismiss:eC,nftId:en.nftAsset.id,allowablePayments:p})]})})}var ef=l(40978),ep=l.n(ef);(a=n||(n={})).Received="received",a.Sent="sent";let ex=(e,t)=>{let l=t;return Array.isArray(e)?l=e:"string"==typeof e&&(l=[e]),l},eg=[{value:void 0,label:(0,s.jsx)(b.x,{langKey:"nft:bids:status:All"})},{value:"open",label:(0,s.jsx)(b.x,{langKey:"nft:bids:status:Open"})},{value:"closed",label:(0,s.jsx)(b.x,{langKey:"nft:bids:status:Closed"})}],ev=e=>{var t,l,a,n;return(0,x.Z)(null===(t=e.item.nft_image)||void 0===t?void 0:null===(l=t.derived)||void 0===l?void 0:l.CollectionCard)?(0,x.Z)(e.item.nft_thumbnail_url)?void 0:e.item.nft_thumbnail_url:null===(a=e.item.nft_image)||void 0===a?void 0:null===(n=a.derived)||void 0===n?void 0:n.CollectionCard.url},eb=()=>{var e,t,l;let a=(0,p.useRouter)(),{isSmall:i}=(0,u.kC)(),{i18n:r}=(0,c.$G)(),m=a.query.tab,{setQueryParams:x}=(0,u.Kx)(),{trackPageError:k}=(0,u.Jh)({pageName:"offers",trackPageImpressionOnMount:!0}),[P,K]=(0,o.useState)(!1),D=(0,S.t4)({includeAsset:!0}),Z=(0,u.vs)(r.language),G=(0,o.useMemo)(()=>ex(a.query.chain,void 0),[a.query.chain]),T=(0,o.useMemo)(()=>ex(a.query.collection,void 0),[a.query.collection]),H=parseInt(a.query.startDate),V=parseInt(a.query.endDate),M=a.query.status,Y=null!==(l=a.query.sort)&&void 0!==l?l:"desc",z=(0,o.useMemo)(()=>"sent"===m?n.Sent:n.Received,[m]),W="received"===z,{deleteOffer:R}=(0,N.yY)(),[F,L]=(0,o.useState)(0),[Q]=(0,o.useState)(10),q=(0,o.useMemo)(()=>({pos:F,sort:Y,count:Q,scope:W?"received":"placed",status:W?"open":M,chain:G,collection:T,start_time:isNaN(H)?void 0:H/1e3,end_time:isNaN(V)?void 0:V/1e3,excludeQuotes:!0}),[G,T,V,W,F,Q,Y,H,M]),X=(0,N.Tr)(q),J=(0,o.useMemo)(()=>{var e,t;return{collection:(null===(e=q.collection)||void 0===e?void 0:e.length)===1?null===(t=q.collection)||void 0===t?void 0:t[0]:void 0,chain:D,startDate:q.start_time?new Date(q.start_time):void 0,endDate:q.end_time?new Date(q.end_time):void 0,status:q.status?q.status:void 0}},[D,q.collection,q.end_time,q.start_time,q.status]),[U,$]=(0,o.useState)(J);(0,o.useEffect)(()=>{0===Object.keys(U.chain).length&&Object.keys(D).length>0&&$({...U,chain:D})},[D,U]);let ee=(0,o.useMemo)(()=>[{title:(0,s.jsx)(b.x,{langKey:"exchange:Selling"}),value:"received",className:"caption-2 ".concat(i&&"ml1"),route:B.k2.NftOffers},{title:(0,s.jsx)(b.x,{langKey:"exchange:Buying"}),value:"sent",className:"caption-2 ".concat(i&&"mr1"),route:B.k2.NftOffersSent}],[i]),et=(0,o.useCallback)(e=>{var t;let l=null===(t=ee.find(t=>t.value===e))||void 0===t?void 0:t.route;l&&(a.push(l),$({collection:void 0,status:W?void 0:"open",chain:D,startDate:void 0,endDate:void 0}))},[D,W,ee,a]),el=(0,o.useCallback)(e=>{a.push({query:(0,g.Z)({tab:a.query.tab,...Object.entries(e).reduce(d.Iz,{})},v.Z)})},[a]),ea=(0,o.useCallback)(()=>{let e={...a.query};delete e.collection,delete e.starDate,delete e.endDate,delete e.status,a.push({query:(0,g.Z)({...e,...Object.entries({chain:D}).reduce(d.Iz,{})},v.Z)}),$({collection:void 0,status:void 0,chain:D,startDate:void 0,endDate:void 0})},[D,a]),en=(0,o.useCallback)(()=>{X.mutate()},[X]),es=(0,o.useCallback)(()=>{X.mutate()},[X]),eo=(0,o.useCallback)(async e=>{await R({id:[e]}),X.mutate()},[R,X]),ei=(0,o.useMemo)(()=>{var e;return null===(e=X.data)||void 0===e?void 0:e.offers.map(e=>{var t;return{time:e.time,nftAsset:{imageUrl:ev(e),name:e.item.nft_name,collectionName:e.item.collection_name,collectionId:e.item.collection_id,id:e.item.nft_id},offerEndTime:e.expire_time,chain:e.amount.asset_name,asset:{asset:e.amount.asset_name},price:null===(t=e.amount)||void 0===t?void 0:t.amount.toString(),status:e.status,id:e.id,isSent:"sent"===z,status_detail:e.status_detail,quoteId:e.quote_id?e.quote_id:void 0}})},[z,null===(e=X.data)||void 0===e?void 0:e.offers]),er=(0,o.useCallback)(e=>{x({offerSort:"ascending"===e.time?"asc":"desc"})},[x]),ec=(0,o.useCallback)(e=>(0,s.jsx)(b.x,{className:f()(ep().inputText,"flex text-N600 pr2 body-2 pl1"),langKey:"nft:bids:StartOn",keys:{date:e?Z.format(e):""},interpolation:{escapeValue:!1}}),[Z]),ed=(0,o.useCallback)(e=>(0,s.jsx)(b.x,{className:f()(ep().inputText,"flex text-N600 pr2 body-2 pl1"),langKey:"nft:bids:EndOn",keys:{date:e?Z.format(e):""},interpolation:{escapeValue:!1}}),[Z]),eu=(0,s.jsxs)("div",{className:f()("flex gap1",{"flex-column":i,[ep().filters]:!i,"w-full pa2":!i}),children:[(0,s.jsx)(O.M,{className:f()({[ep().collectionDropdown]:!i}),onChange:e=>$({...U,collection:e.target.value}),value:U.collection,popoverClassName:f()(ep().popover,{[ep().maxContent]:!i}),showImage:!0}),(0,s.jsx)(I.H,{className:ep().dropdown,popoverClass:ep().fullWidth,value:U.chain||D,label:(0,s.jsx)(b.x,{langKey:"nft:activity:AllChains"}),allToggledLabel:(0,s.jsx)(b.x,{langKey:"nft:activity:AllChains"}),allLabel:(0,s.jsx)(b.x,{langKey:"nft:activity:AllChains"}),onChange:e=>$({...U,chain:e})}),"sent"!==z?null:(0,s.jsx)(A.d,{className:f()({[ep().dropdown]:!i}),label:(0,s.jsx)(b.x,{langKey:"nft:bids:Status"}),options:eg,value:U.status||void 0,onChange:e=>$({...U,status:e.target.value}),popoverClassName:ep().popover}),(0,s.jsx)(y.Y,{formatter:Z,value:U.startDate,dayPickerProps:U.endDate?{disabledDays:{after:U.endDate}}:void 0,className:f()({[ep().dropdown]:!i}),onChange:e=>$({...U,startDate:e.target.value}),displayValue:ec,dropDownIcon:(0,s.jsx)(C.f,{size:"small",className:"text-P500",color:"#242424"}),popoverClassName:ep().popover,compact:!0}),(0,s.jsx)(y.Y,{formatter:Z,value:U.endDate,dayPickerProps:U.startDate?{disabledDays:{before:U.startDate}}:void 0,className:f()({[ep().dropdown]:!i}),onChange:e=>{$({...U,endDate:e.target.value})},displayValue:ed,dropDownIcon:(0,s.jsx)(C.f,{size:"small",className:"text-P500",color:"#242424"}),popoverClassName:ep().popover,compact:!0}),!P&&(0,s.jsx)(j.zx,{innerClassName:ep().filterButton,onClick:()=>el(U),size:"large",children:(0,s.jsx)(b.x,{langKey:"nft:bids:Filter"})})]}),ef=(0,o.useCallback)(()=>{K(!1)},[]),eb=(0,o.useCallback)(()=>{el(U),K(!1)},[U,el]);return(0,s.jsx)("div",{className:f()("container pt2 mt0 mb0",{ph0:i}),children:(0,s.jsxs)(E.II,{boundaryName:"Nft-Bids-Page",type:"primary",fallback:(0,s.jsx)(_.f,{}),onError:k,children:[P&&(0,s.jsx)(w.g,{onClear:ea,onDismiss:ef,onDone:eb,children:eu}),(0,s.jsx)(h.P,{onSelect:et,options:ee,selected:z,className:f()({[ep().segment]:!i})}),(0,s.jsx)("div",{children:(0,s.jsx)(em,{data:ei,onFilter:el,onAcceptOffer:en,onCounterOffer:es,onCancelOffer:eo,sortOrder:Y,type:"offers",pageSize:Q,isSent:"sent"===z,title:"sent"===z?(0,s.jsx)(b.x,{langKey:"nft:bids:SentOffers"}):(0,s.jsx)(b.x,{langKey:"nft:bids:ReceivedOffers"}),onPageChange:L,pageOverride:F,total:null==X?void 0:null===(t=X.data)||void 0===t?void 0:t.count,pending:!X.data,onSortData:er,tab:m,filter:U,setMobileFilterOpen:K,setFilter:$,startOnDisplayValue:ec,endOnDisplayValue:ed,filters:eu},z)})]})})};var eA=l(60623);let ey=()=>{(0,u.$o)();let{t:e}=(0,c.$G)(),t=(0,d.xw)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r(),{children:(0,s.jsxs)("title",{children:[e("nft:Title:OffersPage")," | ",e("nft:Title:General"),(0,s.jsx)("meta",{name:"robots",content:"none"}),(0,s.jsx)("link",{rel:"canonical",href:"https://nft.kraken.com/inventory/offers"})]})}),t?(0,s.jsx)(_.f,{title:t.title,body:t.message,hideButtons:!t.showButtons}):(0,s.jsx)(eb,{})]})};ey.getLayout=eA.R;var ej=ey},66184:function(e){e.exports={segmentedOption:"SegmentedController_segmentedOption__s4WGp",segmentedController:"SegmentedController_segmentedController__PKGkw",nano:"SegmentedController_nano__CJ14u",isSelected:"SegmentedController_isSelected__ZjU6E",micro:"SegmentedController_micro__EjSiV",small:"SegmentedController_small__V5X9n",large:"SegmentedController_large__IKt95",disabled:"SegmentedController_disabled__U1rbO",compact:"SegmentedController_compact__AXlfP",tooltip:"SegmentedController_tooltip__log1c"}},23458:function(e){e.exports={skeleton:"Skeleton_skeleton__D6YkJ",shimmer:"Skeleton_shimmer__syugd",error:"Skeleton_error__7IrGz"}},74878:function(e){e.exports={innerButton:"AcceptAction_innerButton__kTpmj"}},99392:function(e){e.exports={innerButton:"CancelAction_innerButton__dLayE"}},13510:function(e){e.exports={innerButton:"CounterAction_innerButton__xEswL"}},80226:function(e){e.exports={actionsColumn:"BidsTable_actionsColumn__233T5",dropdown:"BidsTable_dropdown__PI45h",collectionDropdown:"BidsTable_collectionDropdown__jRNH3",clear:"BidsTable_clear__ECDls",filterButtonMobile:"BidsTable_filterButtonMobile__0Igtt",header:"BidsTable_header__LSxQb",spacer:"BidsTable_spacer___k_mV",overflow:"BidsTable_overflow__rMXvt",dialog:"BidsTable_dialog__7EDnP",emptyStateContainer:"BidsTable_emptyStateContainer__XMc_b",animation:"BidsTable_animation___Ovf7",mobileTooltip:"BidsTable_mobileTooltip___OypX"}},40978:function(e){e.exports={segment:"NftBidsPage_segment__wVJDc",popover:"NftBidsPage_popover__1oP_V",filters:"NftBidsPage_filters__stXym",filterButton:"NftBidsPage_filterButton__iV_Cz",dropdown:"NftBidsPage_dropdown__mZNHr",collectionDropdown:"NftBidsPage_collectionDropdown__FUqe_",inputText:"NftBidsPage_inputText__izETe",fullWidth:"NftBidsPage_fullWidth__PClHD",maxContent:"NftBidsPage_maxContent__deBXY"}},24010:function(e){e.exports={thumb:"NftCollectionsDropdown_thumb__W_uku",collectionName:"NftCollectionsDropdown_collectionName__knGnG"}},28261:function(e){e.exports={base:"NftStatusDetailBadge_base__BC7oB",complete:"NftStatusDetailBadge_complete___zP1Z",cancelled:"NftStatusDetailBadge_cancelled__IETcD",expired:"NftStatusDetailBadge_expired__f_KWz",submitted:"NftStatusDetailBadge_submitted__zZLj3",failed:"NftStatusDetailBadge_failed__Wl2Ai"}},69921:function(e,t){"use strict";var l=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"),i=Symbol.for("react.provider"),r=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"),p=Symbol.for("react.lazy");function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case l: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 r:case d:case p:case f:case i:return e;default:return t}}case a:return t}}}Symbol.for("react.offscreen"),Symbol.for("react.module.reference"),t.isFragment=function(e){return x(e)===n},t.isMemo=function(e){return x(e)===f}},59864:function(e,t,l){"use strict";e.exports=l(69921)}},function(e){e.O(0,[45,6167,403,1371,4993,7398,2992,9049,6242,7802,5656,9709,9774,2888,179],function(){return e(e.s=79161)}),_N_E=e.O()}]);