-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
7802-5127cb6468f153b0.js.download
1 lines (1 loc) · 34.6 KB
/
7802-5127cb6468f153b0.js.download
1
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7802],{66360:function(e,n,t){"use strict";t.d(n,{j:function(){return o}});var s=t(85893);t(67294);var i=t(158),l=t(52937),a=t(18403),r=t.n(a);function o(e){let{children:n,buttons:t,title:a}=e;return(0,s.jsxs)("div",{className:r().body,children:[(0,s.jsx)("div",{children:(0,s.jsx)("img",{className:r().img,alt:"",src:l.Z})}),a?(0,s.jsx)("div",{className:r().errorTitle,children:(0,s.jsx)(i.xv,{as:"h2",type:"label1",children:a})}):null,(0,s.jsx)("div",{className:r().errorMessage,children:(0,s.jsx)(i.xv,{type:"body2",children:n})}),(0,s.jsx)("div",{className:r().buttons,children:t})]})}},86858:function(e,n,t){"use strict";t.d(n,{J:function(){return c},f:function(){return u}});var s=t(85893);t(67294);var i=t(1922),l=t(72261),a=t(66360),r=t(34644),o=t.n(r);function c(e){let{onDone:n}=e,{t}=(0,i.$G)();return(0,s.jsx)(a.j,{title:t("nft:BuyBlock:Title"),buttons:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.zx,{kind:"primary",onClick:n,children:t("nft:BuyBlock:Done")}),(0,s.jsx)(l.Qj,{target:l.CA.Blank,rel:"noreferrer",kind:"inline",href:"https://support.kraken.com/hc/contact-support",children:t("nft:BuyBlock:ContactSupport")})]}),children:(0,s.jsxs)(i.cC,{i18nKey:"nft:BuyBlock:Body",children:[(0,s.jsx)("div",{className:o().bodyOne}),(0,s.jsx)("a",{target:"_blank",href:t("nft:BuyBlock:LearnMore"),rel:"noreferrer"})]})})}function u(e){let n=e&&"value"in e&&"string"==typeof e.value&&(/blocked from buying/.test(null==e?void 0:e.value.toLowerCase())||/buying is blocked/.test(e.value.toLowerCase())),t=e&&"type"in e&&"string"==typeof e.type&&(/blocked from buying/.test(null==e?void 0:e.type.toLowerCase())||/buying is blocked/.test(e.type.toLowerCase()));return t||n}},214:function(e,n,t){"use strict";t.d(n,{B:function(){return f}});var s=t(85893),i=t(67294),l=t(94184),a=t.n(l),r=t(1922),o=t(11770),c=t(59112),u=t(54963),d=t.n(u);let f=e=>{let{id:n,name:t,onConfirm:l,onSubmit:u,className:f,type:N,...x}=e,[j,m]=(0,i.useState)(""),{t:M}=(0,r.$G)(),g="CONFIRM",v=M("nft:confirm:Confirm",{defaultValue:g}),D=(0,i.useCallback)(e=>v&&""!==v&&e.toLowerCase().trim()===v.toLowerCase()||e.toLowerCase().trim()===g.toLowerCase(),[v]),y=(0,i.useCallback)(()=>{D(j)&&(null==u||u())},[u,j,D]);return(0,s.jsx)("div",{className:a()(d().NftConfirmAction,"pv1",f),...x,children:(0,s.jsx)(o.gN,{className:"mt1",floating:!0,id:n,name:t,onChange:e=>{let{target:n}=e;l(D(n.value)),m(n.value)},value:j,children:(0,s.jsxs)(o.gN.Floating,{children:[(0,s.jsx)(o.gN.FloatingLabel,{className:"no-pointer-events",children:(0,s.jsx)(c.x,{langKey:"nft:confirm:".concat(N),keys:{confirm:v&&""!==v?v.toUpperCase():g.toUpperCase()},"data-testid":"action-confirmation-text"})}),(0,s.jsx)(o.gN.TextInput,{onKeyDown:e=>{"Enter"===e.key&&y()},"data-testid":"action-confirmation-input"})]})})})}},66297:function(e,n,t){"use strict";t.d(n,{t:function(){return A}});var s=t(85893),i=t(67294),l=t(94184),a=t.n(l),r=t(41664),o=t.n(r),c=t(1922),u=t(65439),d=t(10045),f=t(59112),N=t(98319),x=t(69938),j=t(72261),m=t(62410),M=t(75438),g=t(72512),v=t(214),D=t(7516),y=t(94907),p=t(91883),I=t(21779),O=t(63648),C=t.n(O);let h=e=>{let{quoteCurrency:n,total:t}=e,i=(0,y.yo)(),l=(0,y.Jp)(),{assetDefinitions:r}=(0,I.$F)(),o=null==r?void 0:r[l],c=n&&(null==r?void 0:r[n]);return c&&t?(0,s.jsxs)("div",{className:"w-100 flex justify-between",children:[(0,s.jsx)("div",{className:a()("label caption-3",C().nftTotal),children:(0,s.jsx)(f.x,{langKey:"nft:listings:Total"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:a()(C().nftPriceNative,"text-N600"),children:(0,s.jsx)(p.Y,{value:"".concat(t),asset:c})}),(0,s.jsxs)("p",{className:a()(C().nftPriceConverted,"text-N300"),children:["~",(0,s.jsx)(p.Y,{value:i(c.asset,t.toString()),asset:o})]})]})]}):null};var _=t(56625),z=t(62036),T=t(72763),b=t.n(T);function A(e){var n,t,l,r,p,I,O,C,T,A,k,L,E,S;let{nftAsset:w,onDismiss:Q,onConfirm:U,onBack:Y,processingEst:P,quoteCurrency:B,total:K,isBuyNow:F,isCreatingOffer:Z,expire:R}=e,{i18n:{language:W}}=(0,c.$G)(),G=(0,y.vs)(W),{t:J}=(0,c.$G)(),{isSmall:H}=(0,y.kC)(),[q,V]=(0,i.useState)(!1),[X,$]=(0,i.useState)(!1),ee=(0,i.useCallback)(()=>{X?X&&$(!1):$(!0)},[$,X]),en=null==w?void 0:w.creator_fee,et={onTooltipMouseOver:ee,onTooltipMouseOut:ee,forceVisible:X,icon:(0,s.jsx)("span",{className:"ml1/2",children:(0,s.jsx)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTciIHZpZXdCb3g9IjAgMCAxNiAxNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xLjMzMzUgOC41QzEuMzMzNSAxMi4xODE5IDQuMzE4MjYgMTUuMTY2NyA4LjAwMDE2IDE1LjE2NjdDMTEuNjgyMSAxNS4xNjY3IDE0LjY2NjggMTIuMTgxOSAxNC42NjY4IDguNUMxNC42NjY4IDQuODE4MSAxMS42ODIxIDEuODMzMzQgOC4wMDAxNiAxLjgzMzM0QzQuMzE4MjYgMS44MzMzNCAxLjMzMzUgNC44MTgxIDEuMzMzNSA4LjVaTTEzLjMzMzUgOC41QzEzLjMzMzUgMTEuNDQ1NSAxMC45NDU3IDEzLjgzMzMgOC4wMDAxNiAxMy44MzMzQzUuMDU0NjQgMTMuODMzMyAyLjY2NjgzIDExLjQ0NTUgMi42NjY4MyA4LjVDMi42NjY4MyA1LjU1NDQ4IDUuMDU0NjQgMy4xNjY2NyA4LjAwMDE2IDMuMTY2NjdDMTAuOTQ1NyAzLjE2NjY3IDEzLjMzMzUgNS41NTQ0OCAxMy4zMzM1IDguNVpNNy4zNzY0NiA5Ljg1NjEyQzcuMzc2NDYgOS40MzA3NyA3LjQyODExIDkuMDkyMDIgNy41MzE0MSA4LjgzOTg1QzcuNjM0NzEgOC41ODc2OCA3LjgyMzg0IDguMzM5MyA4LjA5ODggOC4wOTQ3M0M4LjM3Mzc1IDcuODUwMTUgOC41NTY4IDcuNjUxMTUgOC42NDc5NSA3LjQ5NzcyQzguNzM5MSA3LjM0NDI5IDguNzg0NjcgNy4xODI1MSA4Ljc4NDY3IDcuMDEyMzdDOC43ODQ2NyA2LjQ5ODkxIDguNTQ3NjkgNi4yNDIxOSA4LjA3MzczIDYuMjQyMTlDNy44NDg5IDYuMjQyMTkgNy42Njg4OSA2LjMxMTMxIDcuNTMzNjkgNi40NDk1NUM3LjM5ODQ5IDYuNTg3NzkgNy4zMjc4NSA2Ljc3ODQzIDcuMzIxNzggNy4wMjE0OUg2LjAwMDE2QzYuMDA2MjQgNi40NDExOSA2LjE5Mzg1IDUuOTg2OTggNi41NjI5OSA1LjY1ODg2QzYuOTMyMTMgNS4zMzA3MyA3LjQzNTcxIDUuMTY2NjcgOC4wNzM3MyA1LjE2NjY3QzguNzE3ODMgNS4xNjY2NyA5LjIxNzYxIDUuMzIyMzcgOS41NzMwOCA1LjYzMzc5QzkuOTI4NTUgNS45NDUyMSAxMC4xMDYzIDYuMzg0OTggMTAuMTA2MyA2Ljk1MzEzQzEwLjEwNjMgNy4yMTEzOCAxMC4wNDg2IDcuNDU1MTkgOS45MzMxMSA3LjY4NDU3QzkuODE3NjUgNy45MTM5NiA5LjYxNTYyIDguMTY4NCA5LjMyNjk5IDguNDQ3OTJMOC45NTc4NSA4Ljc5ODgzQzguNzI2OTQgOS4wMjA2MiA4LjU5NDc4IDkuMjgwMzggOC41NjEzNiA5LjU3ODEzTDguNTQzMTMgOS44NTYxMkg3LjM3NjQ2Wk03LjQ1MTY2IDEwLjc1MTZDNy4zMTM0MiAxMC44ODM4IDcuMjQ0MyAxMS4wNTE3IDcuMjQ0MyAxMS4yNTUyQzcuMjQ0MyAxMS40NTU3IDcuMzExOSAxMS42MjEzIDcuNDQ3MSAxMS43NTJDNy41ODIzIDExLjg4MjYgNy43NjA4IDExLjk0NzkgNy45ODI1OCAxMS45NDc5QzguMjA0MzcgMTEuOTQ3OSA4LjM4Mjg3IDExLjg4MjYgOC41MTgwNyAxMS43NTJDOC42NTMyNyAxMS42MjEzIDguNzIwODcgMTEuNDU1NyA4LjcyMDg3IDExLjI1NTJDOC43MjA4NyAxMS4wNTE3IDguNjUxNzUgMTAuODgzOCA4LjUxMzUxIDEwLjc1MTZDOC4zNzUyNyAxMC42MTk1IDguMTk4MyAxMC41NTM0IDcuOTgyNTggMTAuNTUzNEM3Ljc2Njg3IDEwLjU1MzQgNy41ODk5IDEwLjYxOTUgNy40NTE2NiAxMC43NTE2WiIgZmlsbD0iIzY1NjU2NSIvPgo8L3N2Zz4K",className:b().questionIcon})})};return(0,s.jsx)(z.L,{ariaLabel:null==w?void 0:w.name,bodyClassName:a()(b().nftConfirmOfferModal,"flex flex-column justify-center"),isOpen:!0,onDismiss:Q,title:null==w?void 0:w.name,onBack:Y,children:(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"caption-3 text-N200 mb1 mt4",children:"NFT Details"}),(0,s.jsxs)("div",{className:a()("flex gap3 w-100",b().nftConfirmOfferImageRow),children:[(0,s.jsx)("div",{className:a()(b().nftImageContainer,"relative"),children:(0,s.jsx)(D.D,{className:a()(b().nftImage),src:null==w?void 0:null===(n=w.image)||void 0===n?void 0:null===(t=n.derived)||void 0===t?void 0:null===(l=t.CardSmall)||void 0===l?void 0:l.url,srcSet:"".concat(null==w?void 0:null===(r=w.image)||void 0===r?void 0:null===(p=r.derived)||void 0===p?void 0:null===(I=p.CardSmall_2x)||void 0===I?void 0:I.url," 2x, ").concat(null==w?void 0:null===(O=w.image)||void 0===O?void 0:null===(C=O.derived)||void 0===C?void 0:null===(T=C.CardSmall)||void 0===T?void 0:T.url," 1x"),imageRendering:null==w?void 0:null===(A=w.image)||void 0===A?void 0:A.image_rendering,alt:null==w?void 0:w.name})}),(0,s.jsxs)("div",{className:a()(b().metadata,b().nftDetails,"w-100"),children:[(null==w?void 0:w.collection)&&(0,s.jsx)(o(),{href:(0,g.PV)(w.collection.id),children:(0,s.jsxs)("div",{className:a()(b().cursorPointer,"w-100 flex align-items-center"),children:[(0,s.jsx)("span",{className:"label-4 text-P500",children:null==w?void 0:null===(k=w.collection)||void 0===k?void 0:k.name})," ",(null==w?void 0:null===(L=w.collection)||void 0===L?void 0:L.verified)&&(0,s.jsx)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAxNiAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIuMTY1MjYgOC45OTAxMkwyLjgzMjI2IDguMjQ1MDZMMi4xNjUyNiA4Ljk5MDEyTDIuODcyOTggOS42MjM2OEwyLjgyMDU0IDEwLjU3MjFDMi43NTQ3NSAxMS43NjIyIDMuNzM3ODUgMTIuNzQ1MiA0LjkyNzg5IDEyLjY3OTVMNS44NzYzMiAxMi42MjdMNi41MDk4OCAxMy4zMzQ3QzcuMzA0ODUgMTQuMjIyNyA4LjY5NTE1IDE0LjIyMjcgOS40OTAxMiAxMy4zMzQ3TDEwLjEyMzcgMTIuNjI3TDExLjA3MjEgMTIuNjc5NUMxMi4yNjIyIDEyLjc0NTIgMTMuMjQ1MiAxMS43NjIxIDEzLjE3OTUgMTAuNTcyMUwxMy4xMjcgOS42MjM2OEwxMy44MzQ3IDguOTkwMTJDMTQuNzIyNyA4LjE5NTE1IDE0LjcyMjcgNi44MDQ4NSAxMy44MzQ3IDYuMDA5ODhMMTMuMTI3IDUuMzc2MzJMMTMuMTc5NSA0LjQyNzg5QzEzLjI0NTIgMy4yMzc4NSAxMi4yNjIxIDIuMjU0NzUgMTEuMDcyMSAyLjMyMDU0TDEwLjEyMzcgMi4zNzI5OEw5LjQ5MDEyIDEuNjY1MjZDOC42OTUxNSAwLjc3NzI1NSA3LjMwNDg1IDAuNzc3MjU2IDYuNTA5ODggMS42NjUyNkw3LjI1NDk0IDIuMzMyMjZMNi41MDk4OCAxLjY2NTI2TDUuODc2MzIgMi4zNzI5OEw0LjkyNzg5IDIuMzIwNTRDMy43Mzc4NSAyLjI1NDc1IDIuNzU0NzUgMy4yMzc4NSAyLjgyMDU0IDQuNDI3ODlMMi44NzI5OCA1LjM3NjMyTDMuMjc2NzQgNS44MjczM0wyLjg3Mjk4IDUuMzc2MzJMMi4xNjUyNiA2LjAwOTg4QzEuMjc3MjUgNi44MDQ4NSAxLjI3NzI2IDguMTk1MTUgMi4xNjUyNiA4Ljk5MDEyWiIgZmlsbD0iIzI4MjRCNiIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIi8+CjxwYXRoIGQ9Ik02LjM0MDM1IDYuOTQ2NzZMNS43ODcxMSA3LjVMNy40NDY4NCA5LjE1OTczTDEwLjIxMzEgNi4zOTM1MUw5LjY1OTgxIDUuODQwMjdMNy40NDY4NCA4LjA1MzI1TDYuMzQwMzUgNi45NDY3NloiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo="})]})}),(0,s.jsx)(d.u,{label:null==w?void 0:w.name,children:(0,s.jsx)("div",{className:a()(b().ellipsies,b().nftTitle,"text-N600"),children:null==w?void 0:w.name})}),(0,s.jsxs)("div",{className:a()(b().nftCreatorName,"text-N300 mt2"),children:[(0,s.jsx)(f.x,{langKey:"nft:listings:ConfirmOffer:byCreatorName"})," ",(0,s.jsx)("span",{className:a()(b().highlighted),children:null==w?void 0:null===(E=w.creators)||void 0===E?void 0:null===(S=E[0])||void 0===S?void 0:S.name})]}),!P&&Number(en)>0&&(0,s.jsxs)("div",{className:"flex align-items-center w-100",children:[(0,s.jsxs)("span",{className:"label-2 text-N400",children:[(0,s.jsx)(f.x,{langKey:"nft:listings:CreatorEarnings"}),": ",en,"%"]})," ",(0,s.jsx)(_.$,{...et,className:b().tooltipContent,size:"small",info:(0,s.jsxs)("span",{children:[en,"% ",(0,s.jsx)(f.x,{langKey:"nft:listings:ConfirmOffer:royaltyFeePercent:tooltip"})]})})," "]})]})]}),(P||R)&&(0,s.jsxs)("div",{className:a()(b().nftProcessingEst,"w-100 mt2 mb1"),children:[(0,s.jsx)("div",{className:"caption-3 text-N200",children:(0,s.jsx)(f.x,{langKey:"nft:listings:ConfirmOffer:OfferDetails"})}),P&&(0,s.jsxs)("div",{className:"flex justify-between mt1/2 mb1",children:[(0,s.jsx)("div",{className:"label-2 text-N400",children:(0,s.jsx)(f.x,{langKey:"nft:listings:ProcessingOffer:OrderDetailsEstimate:title"})}),(0,s.jsxs)("div",{className:"flex align-items-center",children:[(0,s.jsxs)("span",{className:"label-2 text-N400",children:["~",P]})," ",(0,s.jsx)(_.$,{...et,tooltipClassName:b().tooltipContent,size:"small",info:(0,s.jsx)(c.cC,{i18nKey:"nft:listings:ProcessingOffer:OrderDetailsEstimate:tooltip",children:(0,s.jsx)(N.d,{className:a()(b().tooltipLink,{"text-pure-white":!H}),href:J("nft:listings:BuyNowMarketMakerLink")},0)})})]})]}),R&&(0,s.jsxs)("div",{className:"flex justify-between mt1/2 mb1",children:[(0,s.jsx)("div",{className:"label-2 text-N400",children:(0,s.jsx)(f.x,{langKey:"nft:listings:ConfirmOffer:ExpiresOn"})}),(0,s.jsxs)("div",{className:"flex align-items-center",children:[(0,s.jsx)("span",{className:"label-2 text-N400",children:G.format(R)})," "]})]})]}),(0,s.jsx)("div",{className:"w-100 mt2 mb3",children:(0,s.jsx)(h,{total:K,quoteCurrency:B})}),!F&&(0,s.jsx)(x.q,{className:"mt3",kind:"warning",children:(0,s.jsxs)("div",{className:"flex items-center w-100",children:[(0,s.jsx)(u.K,{className:"mr1/2"}),(0,s.jsx)("div",{children:(0,s.jsx)(f.x,{langKey:"nft:listings:CancelOfferNotice"})})]})}),(0,s.jsx)(v.B,{type:F?M.mr.Buy:M.mr.Offer,onConfirm:V,onSubmit:U}),(0,s.jsxs)("div",{className:"mt3 gap1 flex justify-end",children:[(0,s.jsx)(j.zx,{innerClassName:b().actionButton,kind:"cancel",onClick:Q,children:(0,s.jsx)(f.x,{langKey:"nft:listings:Cancel"})}),(0,s.jsxs)(j.zx,{className:"flex justify-end",disabled:!q||Z,kind:"primary",onClick:U,children:[Z&&(0,s.jsx)(m.T,{size:14,skinny:!0,className:"mr1/2"}),(0,s.jsx)(f.x,{langKey:"nft:listings:ConfirmOffer:confirm"})]})]})]})})}},29436:function(e,n,t){"use strict";t.d(n,{h:function(){return x}});var s=t(85893),i=t(67294),l=t(94184),a=t.n(l),r=t(1922),o=t(47630),c=t(56769),u=t(94907),d=t(86148),f=t.n(d);let N={disabledDays:{before:new Date}};function x(e){let{selectedCalendarDate:n,calendarDisplayValue:t,onCalendarChange:l,errorText:d,timezone:x,lastAllowedYear:j,dayPickerProps:m=N,toggleOnDateSelect:M}=e,{i18n:g}=(0,r.$G)(),v=(0,u.vs)(g.language),D=(0,i.useCallback)(e=>l(e.target.value),[l]);return(0,s.jsx)("div",{"data-testid":"nft-date-picker",className:a()(f().datePicker,"flex gap1 justify-between"),children:(0,s.jsx)(o.Y,{errorText:d,dayPickerProps:m,formatter:v,value:n,lastAllowedYear:j,timeZone:x,showSeconds:!1,clockIconColor:"#242424",className:f().dropdown,displayValue:t,onChange:D,popoverClassName:f().popover,dropDownIcon:(0,s.jsx)(c.f,{size:"small",className:"text-P500",color:"#242424"}),toggleOnDateSelect:M})})}},32486:function(e,n,t){"use strict";function s(){let e=new Date;return e.setDate(e.getDate()+90),e}function i(){let e=new Date;return e.setDate(e.getDate()+89),e}function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,n=new Date(e.getTime());return n.setDate(e.getDate()+1),n}function a(e){let n=new Date(e);return n.setDate(n.getDate()+1),n}t.d(n,{TN:function(){return a},WC:function(){return r},ao:function(){return l},pZ:function(){return s},xP:function(){return i}});let r=s().getFullYear()},24758:function(e,n,t){"use strict";t.d(n,{P:function(){return u}});var s=t(85893),i=t(67294),l=t(13012),a=t(64124),r=t(92299),o=t(51371),c=t(21779);function u(e){var n;let{allowablePayments:t,onPaymentSelect:u,hideUnavailableBalances:d=!1,selectedPayment:f,label:N,onInsufficentFunds:x,nftAsset:j}=e,m=null==j?void 0:null===(n=j.token)||void 0===n?void 0:n.blockchain.asset,M=(0,c.hY)({filterStaking:!0}),g=(0,c.fk)(),v=(0,i.useCallback)(e=>{var n,t;M.assetDefinitions&&(null==e?void 0:null===(n=e.target)||void 0===n?void 0:n.value)&&u(M.assetDefinitions[null==e?void 0:null===(t=e.target)||void 0===t?void 0:t.value])},[M.assetDefinitions,u]),D=(0,i.useMemo)(()=>t&&!(0,a.Z)(t)?t:M.assetDefinitions&&!(0,a.Z)(M.assetDefinitions)?M.assetDefinitions:{},[t,M.assetDefinitions]),y=(0,i.useMemo)(()=>Object.values(D).filter(e=>{var n,t;if(!d)return!0;let s=null==g?void 0:null===(n=g.accountBalances)||void 0===n?void 0:null===(t=n[e.asset])||void 0===t?void 0:t.available;return!!s&&new l.Z(s||"0").gt("0")}).map(e=>{let{name:n,asset:t}=e;return{value:null!=t?t:"",label:null!=n?n:"",key:null!=n?n:"",icon:(0,s.jsx)("div",{style:{transform:"translateX(-4px)"},children:(0,s.jsx)(r.m,{asset:t,circle:!0,color:!0})})}}).sort((e,n)=>e.value===m?-1:n.value===m?1:0),[D,d,null==g?void 0:g.accountBalances,m]);return(0,i.useEffect)(()=>{M.isLoading||(0,a.Z)(t)&&!M.assetDefinitions||0!==y.length||null==x||x()},[t,M.assetDefinitions,M.isLoading,x,y.length]),(0,s.jsx)(o.d,{value:f,onChange:v,options:y,label:N,pending:!M.assetDefinitions,isSearchable:!0,"data-testid":"currency-selector"})}},95066:function(e,n,t){"use strict";t.d(n,{R:function(){return x}});var s=t(85893),i=t(67294),l=t(94184),a=t.n(l),r=t(72261),o=t(59112),c=t(94907),u=t(62036),d=t(16164),f=t(13916),N=t.n(f);function x(e){let{dialogTitle:n,body:l,title:f,onCancel:x,asset:j}=e,m=(0,i.useCallback)(()=>t.e(8851).then(t.t.bind(t,20903,19)),[]),M=(0,c.p1)(),g=M(d.Jt.ConsumerFundingDeposit,j?"?asset=".concat(j):void 0),{ref:v,loaded:D}=(0,c.Le)(m);return(0,s.jsx)(u.L,{title:n,isOpen:!0,onDismiss:x,children:(0,s.jsxs)("div",{className:a()("flex flex-column text-center gap3",N().insufficentFunds),children:[(0,s.jsxs)("div",{className:N().animationWrap,children:[(0,s.jsx)("img",{className:a()(N().processingIllustration,N().img,{[N().loaded]:D}),src:"/nft/_next/static/chunks/images/40778b7ff738553de3b2c0b9f97c5746.png",alt:"pending"}),(0,s.jsx)("div",{className:N().processingIllustration,ref:v})]}),(0,s.jsxs)("div",{className:"flex flex-column gap1",children:[(0,s.jsx)("div",{className:"tc text-N600 callout-3",children:f}),(0,s.jsx)("div",{className:"tc text-N500 body-2",children:l})]}),(0,s.jsxs)("div",{className:a()("flex flex-column gap1",N().buttons),children:[(0,s.jsx)(r.Qj,{href:g,size:"full-width",outerClassName:"flex-grow-1",children:(0,s.jsx)(o.x,{langKey:"nft:listings:FundsAction"})}),(0,s.jsx)(r.zx,{kind:"cancel",innerClassName:N().cancel,onClick:x,children:(0,s.jsx)(o.x,{langKey:"nft:listings:FundsCancel"})})]})]})})}},78327:function(e,n,t){"use strict";t.d(n,{J:function(){return u}});var s=t(85893);t(67294);var i=t(94184),l=t.n(i),a=t(94907),r=t(91883);let o=e=>{var n,t;let{isSmall:i}=(0,a.kC)(),o=(0,a.Jp)(),c=(0,a.yo)(),u=c(null===(n=e.price.fiat)||void 0===n?void 0:n.asset_name,null===(t=e.price.fiat)||void 0===t?void 0:t.amount);return(0,s.jsxs)("span",{className:l()("text-N400 caption-mono-2",{ml1:i}),children:["≈",(0,s.jsx)(r.Y,{asset:o,value:u,precision:2,dataTestId:"asset-sell-price"})]})},c=e=>{let{price:n,isFiat:t=!1}=e;return n?"string"==typeof n?(0,s.jsx)("span",{className:"display-3 text-N600",children:n}):t?(0,s.jsx)(o,{price:n}):(0,s.jsx)("span",{className:"display-3 text-N600",children:(0,s.jsx)(r.Y,{asset:n.native.asset_name,value:n.native.amount})}):null},u=e=>{let{priceInfo:n,className:t}=e,{isSmall:i}=(0,a.kC)();return(0,s.jsxs)("div",{className:l()("flex flex-column",t),children:[(0,s.jsx)("span",{className:"body-3 text-N600",children:n.title}),(0,s.jsxs)("div",{className:l()("flex items-baseline",{"flex-row":i,"flex-column":!i}),children:[(0,s.jsx)(c,{price:n.price}),(0,s.jsx)(c,{price:n.price,isFiat:!0})]})]})}},44203:function(e,n,t){"use strict";t.d(n,{X:function(){return Y},d:function(){return w}});var s,i,l=t(85893),a=t(67294),r=t(13012),o=t(1922),c=t(94184),u=t.n(c),d=t(65439),f=t(59112),N=t(11770),x=t(92299),j=t(69938),m=t(72261),M=t(72512),g=t(21779),v=t(94907),D=t(66297),y=t(29436),p=t(24758),I=t(95066),O=t(32486),C=t(68995),h=t(78327),_=t(91883),z=t(62036),T=t(30265),b=t(64279),A=t(86858);(s=i||(i={})).SECOND="second",s.MINUTE="minute",s.HOUR="hour",s.DAY="day",s.WEEK="week";let k={[i.SECOND]:1,[i.MINUTE]:60,[i.HOUR]:3600,[i.DAY]:86400,[i.WEEK]:604800},L=e=>{let{value:n,className:t=""}=e,s=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.MINUTE,{i18n:{language:t}}=(0,o.$G)(),[s,l]=(0,a.useState)("");return(0,a.useEffect)(()=>{let s=function(e,n){let t=t=>{let{amount:s,unit:i}=t;return{amount:s,formatter:new Intl.NumberFormat(e,{style:"unit",unit:i,unitDisplay:"long"}),shouldHide:k[i]<k[n]}};return[{amount:60,unit:i.SECOND},{amount:60,unit:i.MINUTE},{amount:24,unit:i.HOUR},{amount:7,unit:i.DAY},{amount:Number.MAX_SAFE_INTEGER,unit:i.WEEK}].map(t)}(t,n),a=Math.floor((e.getTime()-Date.now())/1e3);l(s.map(e=>{let{amount:n,formatter:t,shouldHide:s}=e,i=a%n;if(a=(a-i)/n,!(i<=0)&&!s)return t.format(i)}).filter(e=>void 0!==e).reverse().join(" "))},[e,t,n]),s}(n);return(0,l.jsx)("span",{className:u()(t,"dib pr1/2 text-N600 pl2 body-2"),children:s})};var E=t(45683),S=t.n(E);let w=e=>"."!==e?e:"",Q={disabledDays:{before:new Date,after:(0,O.pZ)()}};function U(e){var n,t,s,i,c,T,k,E,U,Y;let{assetTicker:P,amount:B,nftId:K,className:F,bodyClassName:Z,onComplete:R,onDismiss:W}=e,[G,J]=(0,a.useState)("Payment"),{t:H}=(0,o.$G)(),{quoteAssetDefinitions:q}=(0,v.un)({asMap:!0}),{isSmall:V}=(0,v.kC)(),{data:X}=(0,g.Rd)({nftId:K}),$=(0,g.$F)(),ee=(0,v.yo)(),en=(0,g.Rm)({nft_id:[K],status:"open"}),et=(0,g.jL)({nft_id:[K],count:1}),[es,ei]=(0,a.useState)(function(){let e=new Date,n=new Date(e.getFullYear(),e.getMonth(),e.getDate()+7);return n}()),[el,ea]=(0,a.useState)(),[er,eo]=(0,a.useState)(B),[ec,eu]=(0,a.useState)(P),[ed,ef]=(0,a.useState)(6),eN=(0,g.fk)(),{trackUserAction:ex}=(0,v.Jh)({pageName:"AE"}),[ej,em]=(0,a.useState)(!1),[eM,eg]=(0,a.useState)(!1),ev=(0,v.I)(X),eD=null!==(E=null==et?void 0:null===(n=et.data)||void 0===n?void 0:null===(t=n[K])||void 0===t?void 0:t[0])&&void 0!==E?E:void 0,ey=!!eD;(0,a.useEffect)(()=>{var e,n;(null==en?void 0:null===(e=en.data)||void 0===e?void 0:e.length)&&eu(en.data[(null==en?void 0:null===(n=en.data)||void 0===n?void 0:n.length)-1].quote_currency)},[en.data]);let ep=(0,a.useMemo)(()=>{if((null==$?void 0:$.assetDefinitions)&&ec){var e;return null===(e=Object.values($.assetDefinitions).find(e=>e.asset.toLowerCase()===(null==ec?void 0:ec.toLowerCase())))||void 0===e?void 0:e.min_lot}},[ec,$.assetDefinitions]),eI=(0,a.useCallback)(e=>{let n=new Date;n.setTime(n.getTime()+36e5),ei(e),e&&e<n?ea((0,l.jsx)(f.x,{langKey:"nft:errors:offer:place:ExpireTimeLTMin"})):el&&ea(void 0)},[el]),{createOffer:eO}=(0,g.yY)(),{data:eC}=(0,g.ie)(),{data:eh}=(0,g.Ff)(),e_=(0,g.C1)({nft_id:K},{},void 0),{nftAutoflow:ez}=(0,v.Ay)(),eT=eC&&eh&&(0,M.xm)({accountSettings:eC,accountProfile:eh}),eb=e=>(0,l.jsx)(L,{value:e,className:S().inputText}),eA=(0,a.useCallback)(e=>{var n;eo(w(null==e?void 0:null===(n=e.target)||void 0===n?void 0:n.value))},[]),ek=(0,a.useCallback)(e=>{eu(null==e?void 0:e.asset),ef(null==e?void 0:e.display_decimals),eo(void 0)},[]),eL=(0,a.useCallback)(()=>{e_.mutate(),eN.mutate(),en.mutate(),ex("Nft Make Offer"),null==R||R(),eg(!1)},[en,eN,e_,R,ex]),eE=(0,a.useCallback)(e=>{var n;eg(!0);let t=function(e){if(e)return e.getTime()/1e3;let n=new Date;return n.setHours(n.getHours()+6),n.getTime()/1e3}(es);return eO({nft_id:[K],offer_amount:parseFloat(null!=er?er:""),offer_currency:null!==(n=null==ec?void 0:ec.toUpperCase())&&void 0!==n?n:"",expire_time:t,otp:e})},[eO,es,K,er,ec]),eS=(0,a.useCallback)(e=>{(0,A.f)(e)&&J("BuyBlock")},[]),ew=null!==(U=null==ec?void 0:ec.toUpperCase())&&void 0!==U?U:null,eQ=ew&&eN.accountBalances&&null!==(Y=null===(s=eN.accountBalances[ew])||void 0===s?void 0:s.available)&&void 0!==Y?Y:null,eU=new r.p(eQ||"0").gte(er||"0"),eY=!!(ep&&er&&new r.p(ep).lte(er)),eP=(0,a.useCallback)(()=>J("Confirm"),[]),eB=(0,a.useCallback)(()=>J("Payment"),[]),eK=null==X?void 0:null===(i=X.collection)||void 0===i?void 0:null===(c=i.floor_price)||void 0===c?void 0:null===(T=c.fiat)||void 0===T?void 0:T.amount,eF=ec&&(null==$?void 0:null===(k=$.assetDefinitions)||void 0===k?void 0:k[ec]),eZ=er&&eF?ee(eF.asset,er.toString()):void 0,eR=(0,a.useMemo)(()=>{let e=+(null!=eK?eK:0);return e&&eZ?Math.round((+eZ-e)/e*100):0},[eK,eZ]),eW=(0,a.useCallback)(()=>em(!0),[]);if(eT)return ez(),null;if(ej)return(0,l.jsx)(I.R,{body:(0,l.jsx)(f.x,{langKey:"nft:listings:InsufficentFunds:OfferBody"}),title:(0,l.jsx)(f.x,{langKey:"nft:listings:InsufficentFunds:OfferTitle"}),dialogTitle:(0,l.jsx)(f.x,{langKey:"nft:listings:InsufficentFunds:OfferDialogTitle"}),onCancel:W});if("BuyBlock"===G)return(0,l.jsx)(z.L,{isOpen:!0,onDismiss:W,children:(0,l.jsx)(A.J,{onDone:W})});if("Confirm"===G)return(0,l.jsx)(C.BW,{onDismiss:W,onConfirm:eL,onMutate:eE,canSubmit:!!ec&&!!er&&!!es,onError:eS,children:e=>{let{onSubmitHandler:n}=e;return(0,l.jsx)(D.t,{className:F,expire:es,isCreatingOffer:eM,nftAsset:X,onConfirm:n,onDismiss:W,onBack:eB,processingEst:ey?(0,l.jsx)(f.x,{langKey:"nft:listings:ProcessingOffer:Duration:thirtyMinutes"}):void 0,quoteCurrency:ec,total:er})}});if("Payment"===G){let e=ep&&ec&&!eY&&er,n=!e&&ec&&!eU;return(0,l.jsx)(z.L,{className:F,bodyClassName:Z,title:(0,l.jsx)(f.x,{langKey:"nft:listings:MakeAnOffer"}),ariaLabel:H("nft:listings:MakeAnOffer"),isOpen:!0,onDismiss:W,children:(0,l.jsxs)(b.II,{type:"primary",boundaryName:"Nft-Offer-Modal",children:[(0,l.jsxs)("div",{onClick:e=>{e.stopPropagation()},className:"flex-column gap2 flex",children:[(0,l.jsxs)("div",{className:"text-N600",children:[(0,l.jsx)(f.x,{className:"caption-2",langKey:"nft:listings:MakeOfferNotice"})," ",(0,l.jsx)(f.x,{className:"caption-2 bold",langKey:"nft:listings:CancelOfferNotice"})]}),(0,l.jsx)(h.J,{className:S().priceInfo,priceInfo:null!=ev?ev:{}}),(0,l.jsx)(p.P,{selectedPayment:ec,onPaymentSelect:ek,allowablePayments:q,hideUnavailableBalances:!0,label:(0,l.jsx)(f.x,{langKey:"nft:listings:PayWith"}),onInsufficentFunds:eW,nftAsset:X}),(0,l.jsxs)(N.gN,{floating:!0,onChange:eA,disabled:!ec,value:er,"data-testid":"offer-input",children:[(0,l.jsx)("div",{className:"pl1",children:ec?(0,l.jsx)(x.m,{asset:ec,circle:!0,color:!0}):null}),(0,l.jsxs)(N.gN.Floating,{children:[(0,l.jsx)(N.gN.FloatingLabel,{className:"no-pointer-events",children:(0,l.jsx)(f.x,{langKey:"nft:listings:Offer"})}),(0,l.jsx)(N.gN.NumberInput,{decimalScale:ed,skipFormatting:!0,inputMode:"decimal",allowedDecimalSeparators:[".",","]})]})]})]}),(0,l.jsx)("div",{className:u()("mt1 flex justify-between",S().selectedPayment),children:!V&&ec&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("span",{children:[e&&(0,l.jsx)("div",{className:"flex",children:(0,l.jsx)("span",{className:u()("caption-2 text-N600",S().minimumOffer),children:(0,l.jsx)(o.cC,{i18nKey:"nft:listings:MinimumOffer",values:{orderMinLot:ep,selectedPayment:ec}})})}),n&&(0,l.jsx)("div",{className:"flex",children:(0,l.jsx)("span",{className:u()("caption-2 text-N600",S().exceedsBalance),children:(0,l.jsx)(o.cC,{i18nKey:"nft:listings:OfferExceedsBalance",values:{selectedPayment:ec}})})})]}),(0,l.jsx)("span",{children:(0,l.jsxs)("div",{className:"flex",children:[(0,l.jsxs)("span",{className:"caption-2 text-N600 mr1",children:[(0,l.jsx)(f.x,{langKey:"nft:listings:Balance"}),":"]}),(0,l.jsx)("div",{className:"flex items-center",children:(0,l.jsx)("span",{className:"caption-mono-3 text-N600",children:(0,l.jsx)(_.Y,{value:(null!=eQ?eQ:0).toString(),asset:null==ew?void 0:ew.toString(),dataTestId:"available-balance"})})})]})})]})}),V&&e&&(0,l.jsx)("div",{className:"mt1 flex",children:(0,l.jsx)("span",{className:u()("caption-2 text-N600",S().minimumOffer),children:(0,l.jsx)(o.cC,{i18nKey:"nft:listings:MinimumOffer",values:{orderMinLot:ep,selectedPayment:ec}})})}),V&&n&&(0,l.jsx)("div",{className:"mt1 flex",children:(0,l.jsx)("span",{className:u()("caption-2 text-N600",S().exceedsBalance),children:(0,l.jsx)(o.cC,{i18nKey:"nft:listings:OfferExceedsBalance",values:{selectedPayment:ec}})})}),V&&ec&&(0,l.jsxs)("div",{className:"mt1 flex items-center justify-between",children:[(0,l.jsxs)("span",{className:"caption-2 text-N600",children:[(0,l.jsx)(f.x,{langKey:"nft:listings:AvailableBalance"}),":"]}),(0,l.jsx)("div",{className:"gap1 flex items-center",children:(0,l.jsx)("span",{className:"caption-mono-3 text-N600",children:(0,l.jsx)(_.Y,{value:(null!=eQ?eQ:0).toString(),asset:null==ew?void 0:ew.toString()})})})]}),(0,l.jsxs)("div",{className:"mt2",children:[(0,l.jsx)("div",{className:u()("caption-3 text-N200 mb1",S().repositionDatePicker),children:(0,l.jsx)(f.x,{langKey:"nft:listings:Expires"})}),(0,l.jsx)(y.h,{selectedCalendarDate:es,calendarDisplayValue:eb,onCalendarChange:eI,dayPickerProps:Q,lastAllowedYear:O.WC,errorText:el,timezone:null==eC?void 0:eC.timezone,toggleOnDateSelect:V})]}),eR>0?(0,l.jsx)(j.q,{className:"mt3",kind:"warning",children:(0,l.jsxs)("div",{className:"flex items-center w-100",children:[(0,l.jsx)(d.K,{className:"mr1/2"}),(0,l.jsx)("div",{children:(0,l.jsx)(f.x,{langKey:"nft:listings:ConfirmOffer:floorPrice",keys:{percent:eR}})})]})}):null,(0,l.jsxs)("div",{className:"mt3 gap1 flex justify-end",children:[(0,l.jsx)(m.zx,{innerClassName:S().actionButton,kind:"cancel",onClick:W,children:(0,l.jsx)(f.x,{langKey:"nft:listings:Cancel"})}),(0,l.jsx)(m.zx,{innerClassName:S().actionButton,kind:"primary",onClick:eP,disabled:!ec||!er||!(+er>0)||!es||!eU||!eY||!!el,children:(0,l.jsx)(f.x,{langKey:"nft:listings:Continue"})})]})]})})}return null}function Y(e){let n=(0,v.JL)(),{open:t}=(0,T.zq)();return(0,a.useEffect)(()=>{n||t({onDismiss:e.onDismiss})},[n,t,e.onDismiss]),n?(0,l.jsx)(U,{...e}):null}},66231:function(e,n,t){"use strict";t.d(n,{_:function(){return M}});var s=t(85893),i=t(13012),l=t(67294),a=t(74528),r=t(59112),o=t(77172),c=t(10045),u=t(72512),d=t(21779),f=t(94907),N=t(18399),x=t(91883),j=t(44923),m=t.n(j);let M=e=>{var n;let{quoteCurrency:t,nftId:j,total:M,hideName:g,title:v,hideTotal:D,processingEst:y,preloadNftAsset:p}=e,I=(0,f.yo)(),O=(0,f.Jp)(),{assetDefinitions:C}=(0,d.$F)(),{data:h}=(0,d.Rd)({nftId:j}),_=null!=h?h:p,z=null==C?void 0:C[O],T=t&&(null==C?void 0:C[t]),b=null==_?void 0:_.creator_fee,A=M&&b&&(0,i.Z)(M).times(b).div(100),k=100*u.KY,L=M&&(0,i.Z)(M).times(u.KY),[E,S]=(0,l.useState)(!1),w=(0,l.useCallback)(()=>{E?E&&S(!1):S(!0)},[S,E]);return(0,s.jsxs)("div",{className:"w-100",children:[(0,s.jsx)("div",{className:"caption-3 text-N200 mb1 mt4",children:v||(0,s.jsx)(r.x,{langKey:"nft:listings.OrderDetails"})}),!g&&(0,s.jsx)(o.c,{className:"pv1/2",label:(0,s.jsx)(r.x,{langKey:"nft:wallet:NftName"}),value:null==_?void 0:_.name}),(0,s.jsx)(o.c,{className:"pv1/2",label:(0,s.jsx)(r.x,{langKey:"nft:wallet:NftCollectionName"}),value:null==_?void 0:null===(n=_.collection)||void 0===n?void 0:n.name}),(0,s.jsx)(o.c,{className:"pv1/2",label:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.x,{langKey:"nft:listings:TransactionFee",className:"mr1/2"})," (",k,"%)"]}),value:z&&T&&L?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(x.Y,{value:L,asset:T}),(0,s.jsxs)("span",{className:"text-N300 ml1",children:["~",(0,s.jsx)(x.Y,{value:I(T.asset,L.toString()),asset:z})]})]}):"—"}),(0,s.jsx)(o.c,{className:"pv1/2",label:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.x,{langKey:"nft:listings:CreatorEarnings",className:"mr1/2"})," (",b,"%)"]}),value:z&&T&&A?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(x.Y,{value:A,asset:T}),(0,s.jsxs)("span",{className:"text-N300 ml1",children:["~",(0,s.jsx)(x.Y,{value:I(T.asset,A.toString()),asset:z})]})]}):"—"}),y&&(0,s.jsx)(o.c,{className:"pv1/2",label:(0,s.jsx)(r.x,{langKey:"nft:listings:ProcessingOffer:OrderDetailsEstimate:title",className:"mr1/2"}),value:z&&T&&A?(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)("span",{className:"text-N300 ml1",children:"~".concat(y)}),(0,s.jsx)(c.u,{className:m().tooltipContent,onTooltipMouseOver:w,onTooltipMouseOut:w,size:"small",forceVisible:E,label:(0,s.jsxs)("span",{children:[(0,s.jsx)(r.x,{langKey:"nft:listings:ProcessingOffer:OrderDetailsEstimate:tooltip"})," ",(0,s.jsx)(N.O,{className:m().tooltipLink,href:"",children:(0,s.jsx)(r.x,{langKey:"nft:listings:LearnMore"})})]}),children:(0,s.jsx)(a.H,{className:m().questionIcon})})]}):"—"}),!D&&(0,s.jsx)(o.c,{className:"pv1/2",label:(0,s.jsx)(r.x,{langKey:"nft:listings:Total"}),value:z&&T&&M?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(x.Y,{value:"".concat(M),asset:T}),(0,s.jsxs)("span",{className:"text-N300 ml1",children:["~",(0,s.jsx)(x.Y,{value:I(T.asset,M.toString()),asset:z})]})]}):"—"})]})}},68995:function(e,n,t){"use strict";t.d(n,{BW:function(){return d},IG:function(){return u},xM:function(){return c}});var s=t(85893),i=t(67294),l=t(21779),a=t(2758),r=t(72512),o=t(75438);function c(){let{data:e}=(0,l.ie)(),n=(0,r.bL)(),[t,s]=(0,i.useState)(!1),a=(0,i.useCallback)(t=>{(null==e?void 0:e.has_tfa_trading)===1||n&&(null==e?void 0:e.has_tfa)?s(!0):t()},[null==e?void 0:e.has_tfa,null==e?void 0:e.has_tfa_trading,n]),c=n?null==e?void 0:e.tfa.main:null==e?void 0:e.tfa.trade;return{tfaMethod:(null==e?void 0:e.has_tfa_trading)&&(null==e?void 0:e.tfa.trade)?null==e?void 0:e.tfa.trade:null!=c?c:o.T2.GoogleAuthTotp,verifyTfaAndSubmit:a,showTfa:t,updateShowTfa:s}}function u(e){let{clearError:n,hasError:t,tfaMethod:i,onSubmit:c,onDismiss:u,isLoading:d,errorMessage:f}=e,{data:N}=(0,l.ie)(),x=(0,r.bL)(),j=(null==N?void 0:N.has_tfa_trading)?o.gQ.Trade:o.gQ.Main;return(0,s.jsx)(a.$_,{tfaType:x?j:o.gQ.Trade,isOpen:!0,hasError:t,tfaMethod:i,onDismiss:u,onConfirm:c,clearError:n,isLoading:d,errorMessage:f})}function d(e){let{onConfirm:n,onDismiss:t,onMutate:a,onError:o,children:d,canSubmit:f}=e,{tfaMethod:N,showTfa:x,verifyTfaAndSubmit:j,updateShowTfa:m}=c(),{data:M}=(0,l.ie)(),[g,v]=(0,i.useState)(!1),D=(0,i.useCallback)(()=>v(!1),[v]),y=(0,i.useCallback)(async e=>{if(!f)return;let{data:t,error:s}=await a(e);(0,r.iN)(s)?v(!0):(s?null==o||o(s):null==n||n(t),v(!1),m(!1))},[f,n,o,a,m]),p=(0,i.useCallback)(()=>{j(y)},[y,j]);return M?x?(0,s.jsx)(u,{tfaMethod:N,onDismiss:t,onSubmit:y,hasError:g,clearError:D}):d?d({onSubmitHandler:p}):null:null}},18403:function(e){e.exports={body:"Error_body__1Khc5",img:"Error_img__g4k5d",errorMessage:"Error_errorMessage__sOk8X",buttons:"Error_buttons__nu_TA",errorTitle:"Error_errorTitle__mWM50"}},34644:function(e){e.exports={bodyOne:"NftBuyBlockPanel_bodyOne__9RPWT"}},54963:function(e){e.exports={NftConfirmAction:"NftConfirmAction_NftConfirmAction__InQ3t"}},72763:function(e){e.exports={nftConfirmOfferModal:"NftConfirmOfferModal_nftConfirmOfferModal__Ar_z4",nftImageContainer:"NftConfirmOfferModal_nftImageContainer__h3H_4",nftImage:"NftConfirmOfferModal_nftImage__MnBsc",nftConfirmOfferBody:"NftConfirmOfferModal_nftConfirmOfferBody__f_rDL",nftConfirmOfferImageRow:"NftConfirmOfferModal_nftConfirmOfferImageRow__xFF0S",nftProcessingEst:"NftConfirmOfferModal_nftProcessingEst__KrWda",metadata:"NftConfirmOfferModal_metadata__aCfm1",nftDetails:"NftConfirmOfferModal_nftDetails__Fx53s",nftTitle:"NftConfirmOfferModal_nftTitle__jBjbj",nftCreatorName:"NftConfirmOfferModal_nftCreatorName___plQQ",highlighted:"NftConfirmOfferModal_highlighted__6szBt",questionIcon:"NftConfirmOfferModal_questionIcon__Swcke",cursorPointer:"NftConfirmOfferModal_cursorPointer__ID27F",tooltipContent:"NftConfirmOfferModal_tooltipContent__n6eU3",tooltipLink:"NftConfirmOfferModal_tooltipLink__8Qr8W",ellipsies:"NftConfirmOfferModal_ellipsies__ZChSX",modalHeader:"NftConfirmOfferModal_modalHeader__hAG2x"}},86148:function(e){e.exports={expireField:"NftDatePicker_expireField__quQX5",datePicker:"NftDatePicker_datePicker__Yg74l",dropdown:"NftDatePicker_dropdown__iss3K",popover:"NftDatePicker_popover__7A7j9"}},13916:function(e){e.exports={insufficentFunds:"NftInsufficentFundsModal_insufficentFunds__q02Fq",buttons:"NftInsufficentFundsModal_buttons__wZTBQ",cancel:"NftInsufficentFundsModal_cancel__xjPwe",processingIllustration:"NftInsufficentFundsModal_processingIllustration__rwR_Q",img:"NftInsufficentFundsModal_img__TrT_x",loaded:"NftInsufficentFundsModal_loaded___YB_w",animationWrap:"NftInsufficentFundsModal_animationWrap___Y5Ev"}},45683:function(e){e.exports={innerButton:"NftOfferModal_innerButton__nqX29",actionButton:"NftOfferModal_actionButton__6pK7_",repositionDatePicker:"NftOfferModal_repositionDatePicker__U_kMn",minimumOffer:"NftOfferModal_minimumOffer__0v4IH",exceedsBalance:"NftOfferModal_exceedsBalance__ZVjQh",inputText:"NftOfferModal_inputText__0gH_o",priceInfo:"NftOfferModal_priceInfo__SqDCy",selectedPayment:"NftOfferModal_selectedPayment__3kl_b"}},44923:function(e){e.exports={questionIcon:"NftOrderSummary_questionIcon__F5n_9",tooltipContent:"NftOrderSummary_tooltipContent__Cm8WW",tooltipLink:"NftOrderSummary_tooltipLink__XbO9O"}},63648:function(e){e.exports={nftTotal:"NftOrderSummarySimplified_nftTotal__p4CNo",nftPriceNative:"NftOrderSummarySimplified_nftPriceNative__qBB5j",nftPriceConverted:"NftOrderSummarySimplified_nftPriceConverted__p0MDZ"}}}]);