1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6165],{68461:function(e,n,t){t.d(n,{Z:function(){return B}});var r,i=t(47568),s=t(10092),o=t(85893),c=t(67294),l=t(77044),a=t(61744),x=t(23917),d=t(67218),u=t(71228),h=t(789),p=t(63964),f=t(99150),m=t(38328),j=t(46063),b=t(35780),C=t(10253),T=t(38051),g=t(1940),R=t(6522),v=t(62328),S=t(33482),E=function(e){var n=e.nftToSell,t=e.lowestPrice,r=e.continueToNextStage,i=e.continueToTransferStage,s=e.onSuccessEditProfile,c=(0,f.$G)().t,l=(0,v.Un)().hasProfile,a=n.collectionAddress.toLowerCase()===g.Q.toLowerCase()?n.attributes[0].value:n.tokenId,x=(0,C.Z)((0,T.ddY)((0,o.jsx)(R.Z,{onSuccess:s}),!1),1)[0];return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(T.kCb,{p:"16px",children:[(0,o.jsx)(S._v,{src:n.image.thumbnail,height:68,width:68,mr:"8px"}),(0,o.jsxs)(T.rjZ,{flex:"1",gridTemplateColumns:"1fr 1fr",alignItems:"center",children:[(0,o.jsx)(T.xvT,{bold:!0,children:n.name}),(0,o.jsx)(T.xvT,{fontSize:"12px",color:"textSubtle",textAlign:"right",children:n.collectionName}),t&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(T.xvT,{small:!0,color:"textSubtle",children:c("Lowest price")}),(0,o.jsxs)(T.kCb,{alignItems:"center",justifyContent:"flex-end",children:[(0,o.jsx)(T.n94,{width:16,height:16,mr:"4px"}),(0,o.jsx)(T.xvT,{small:!0,children:t.toLocaleString(void 0,{minimumFractionDigits:3,maximumFractionDigits:3})})]})]})]})]}),(0,o.jsxs)(T.kCb,{justifyContent:"space-between",px:"16px",mt:"8px",children:[(0,o.jsx)(T.kCb,{flex:"2",children:(0,o.jsx)(T.xvT,{small:!0,color:"textSubtle",children:c("Token ID: %id%",{id:n.tokenId})})}),(0,o.jsxs)(T.kCb,{justifyContent:"space-between",flex:"3",children:[(0,o.jsx)(T.zxk,{as:T.rUS,p:"0px",height:"16px",external:!0,variant:"text",href:"".concat(g.V,"/collections/").concat(n.collectionAddress,"/").concat(a),children:c("View Item")}),(0,o.jsx)(S.EL,{}),(0,o.jsx)(T.NRJ,{p:"0px",height:"16px",href:(0,m.z)(n.collectionAddress,n.tokenId),children:"Explorer"})]})]}),(0,o.jsx)(S.iz,{}),(0,o.jsxs)(T.kCb,{flexDirection:"column",px:"16px",pb:"16px",children:[(0,o.jsx)(T.zxk,{mb:"8px",onClick:r,children:c("Sell")}),(0,o.jsx)(T.zxk,{mb:"8px",variant:"secondary",onClick:i,children:c("Transfer")}),l&&(0,o.jsx)(T.zxk,{variant:"secondary",onClick:x,children:c("Set as Profile Pic")})]})]})},k=t(7879),A=t(90834),_=t(61783),I=t(7297),F=t(19521);function N(){var e=(0,I.Z)(["\n width: 360px;\n & > div:last-child {\n padding: 0;\n }\n & h2:first-of-type {\n ",";\n }\n & svg:first-of-type {\n ",";\n }\n"]);return N=function(){return e},e}function P(){var e=(0,I.Z)(["\n background-color: ",";\n padding: 16px;\n"]);return P=function(){return e},e}function w(){var e=(0,I.Z)(["\n text-align: right;\n"]);return w=function(){return e},e}!function(e){e[e.SELL=0]="SELL",e[e.SET_PRICE=1]="SET_PRICE",e[e.APPROVE_AND_CONFIRM_SELL=2]="APPROVE_AND_CONFIRM_SELL",e[e.EDIT=3]="EDIT",e[e.ADJUST_PRICE=4]="ADJUST_PRICE",e[e.CONFIRM_ADJUST_PRICE=5]="CONFIRM_ADJUST_PRICE",e[e.REMOVE_FROM_MARKET=6]="REMOVE_FROM_MARKET",e[e.CONFIRM_REMOVE_FROM_MARKET=7]="CONFIRM_REMOVE_FROM_MARKET",e[e.TRANSFER=8]="TRANSFER",e[e.CONFIRM_TRANSFER=9]="CONFIRM_TRANSFER",e[e.TX_CONFIRMED=10]="TX_CONFIRMED"}(r||(r={}));var M=[r.SET_PRICE,r.ADJUST_PRICE,r.APPROVE_AND_CONFIRM_SELL,r.CONFIRM_ADJUST_PRICE,r.REMOVE_FROM_MARKET,r.CONFIRM_REMOVE_FROM_MARKET,r.TRANSFER,r.CONFIRM_TRANSFER],O=(0,F.ZP)(T.u_l).withConfig({componentId:"sc-c3a3db3d-0"})(N(),(function(e){var n=e.stage,t=e.theme;return M.includes(n)?"color: ".concat(t.colors.textSubtle):null}),(function(e){var n=e.stage,t=e.theme;return M.includes(n)?"fill: ".concat(t.colors.textSubtle):null})),D=(0,F.ZP)(T.xuv).withConfig({componentId:"sc-c3a3db3d-1"})(P(),(function(e){return e.theme.colors.dropdown})),y=(0,F.ZP)(T.IIB).withConfig({componentId:"sc-c3a3db3d-2"})(w()),z=function(e){var n=e.bnbAmount,t=(0,A.Hf)();if(!n||0===n)return(0,o.jsxs)(T.kCb,{alignItems:"center",justifyContent:"flex-end",children:[(0,o.jsx)(T.n94,{width:16,height:16,mr:"4px"}),(0,o.jsx)(T.xvT,{bold:!0,mr:"4px",children:"-"})]});var r=(0,k.as)(t,n);return(0,o.jsxs)(T.kCb,{alignItems:"center",justifyContent:"flex-end",children:[(0,o.jsx)(T.n94,{width:16,height:16,mr:"4px"}),(0,o.jsx)(T.xvT,{bold:!0,mr:"4px",children:"".concat(n.toLocaleStr
1ing(void 0,{minimumFractionDigits:3,maximumFractionDigits:3}))}),(0,o.jsx)(T.xvT,{small:!0,color:"textSubtle",textAlign:"right",children:"($".concat(r.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2}),")")})]})},L=function(e){var n=e.bnbAmount,t=e.creatorFee,r=e.tradingFee;if(!n||0===n)return(0,o.jsxs)(T.kCb,{alignItems:"center",justifyContent:"flex-end",children:[(0,o.jsx)(T.n94,{width:16,height:16,mr:"4px"}),(0,o.jsx)(T.xvT,{bold:!0,mr:"4px",children:"-"})]});var i=t+r,s=n*(i/100);return(0,o.jsxs)(T.kCb,{alignItems:"center",justifyContent:"flex-end",children:[(0,o.jsx)(T.n94,{width:16,height:16,mr:"4px"}),(0,o.jsx)(T.xvT,{bold:!0,mr:"4px",children:"".concat(s.toLocaleString(void 0,{minimumFractionDigits:3,maximumFractionDigits:6}))}),(0,o.jsxs)(T.xvT,{small:!0,color:"textSubtle",textAlign:"right",children:["(",i,"%)"]})]})},Z=function(e){var n=e.nftToSell,t=e.variant,r=e.lowestPrice,i=e.currentPrice,s=e.price,l=e.setPrice,a=e.continueToNextStage,x=(0,f.$G)().t,d=(0,c.useRef)(),u="adjust"===t&&parseFloat(i)===parseFloat(s),h=!s||Number.isNaN(parseFloat(s))||parseFloat(s)<=0,p=(0,_.YD)(n.collectionAddress),m=p.creatorFee,j=p.tradingFee,b=parseFloat(m),C=parseFloat(j),g=(0,A.Hf)(),R=parseFloat(s),v=(0,k.as)(g,R),E=R>1e4||R<.005,I=(0,T.lLG)((0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(T.xvT,{children:x("When selling NFTs from this collection, a portion of the AVAX paid will be diverted before reaching the seller:")}),b>0&&(0,o.jsx)(T.xvT,{children:x("%percentage%% royalties to the collection owner",{percentage:m})}),(0,o.jsx)(T.xvT,{children:x("%percentage%% trading fee will be used to buy & burn XP",{percentage:j})})]}),{placement:"auto"}),F=I.tooltip,N=I.tooltipVisible,P=I.targetRef;(0,c.useEffect)((function(){d&&d.current&&d.current.focus()}),[d]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(T.xvT,{fontSize:"24px",bold:!0,p:"16px",children:x("set"===t?"Set Price":"Adjust Sale Price")}),(0,o.jsxs)(D,{children:[(0,o.jsx)(T.xvT,{fontSize:"12px",color:"secondary",textTransform:"uppercase",bold:!0,children:x("Set Price")}),(0,o.jsxs)(T.kCb,{children:[(0,o.jsxs)(T.kCb,{flex:"1",alignItems:"center",children:[(0,o.jsx)(T.n94,{width:24,height:24,mr:"4px"}),(0,o.jsx)(T.xvT,{bold:!0,children:"WAVAX"})]}),(0,o.jsx)(T.kCb,{flex:"2",children:(0,o.jsx)(y,{scale:"sm",type:"number",inputMode:"decimal",value:s,ref:d,isWarning:E,onChange:function(e){return l(e.target.value)}})})]}),(0,o.jsx)(T.kCb,{alignItems:"center",height:"21px",justifyContent:"flex-end",children:!Number.isNaN(v)&&(0,o.jsx)(T.xvT,{fontSize:"12px",color:"textSubtle",children:"$".concat(v.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2}))})}),E&&(0,o.jsx)(T.xvT,{fontSize:"12px",color:"failure",children:x("Allowed price range is between %minPrice% and %maxPrice% WAVAX",{minPrice:.005,maxPrice:1e4})}),(0,o.jsxs)(T.kCb,{mt:"8px",children:[(0,o.jsx)(T.xvT,{small:!0,color:"textSubtle",mr:"8px",children:x("Seller pays %percentage%% platform fee on sale",{percentage:b+C})}),(0,o.jsx)("span",{ref:P,children:(0,o.jsx)(T.Pz_,{})}),N&&F]}),(0,o.jsxs)(T.kCb,{justifyContent:"space-between",alignItems:"center",mt:"16px",children:[(0,o.jsx)(T.xvT,{small:!0,color:"textSubtle",children:x("Platform fee if sold")}),(0,o.jsx)(L,{bnbAmount:R,creatorFee:b,tradingFee:C})]}),r&&(0,o.jsxs)(T.kCb,{justifyContent:"space-between",alignItems:"center",mt:"16px",children:[(0,o.jsx)(T.xvT,{small:!0,color:"textSubtle",children:x("Lowest price on market")}),(0,o.jsx)(z,{bnbAmount:r})]})]}),(0,o.jsxs)(T.rjZ,{gridTemplateColumns:"32px 1fr",p:"16px",maxWidth:"360px",children:[(0,o.jsx)(T.kCb,{alignSelf:"flex-start",children:(0,o.jsx)(T.Pz_,{width:24,height:24,color:"textSubtle"})}),(0,o.jsxs)(T.xuv,{children:[(0,o.jsx)(T.xvT,{small:!0,color:"textSubtle",children:x("The NFT will be removed from your wallet and put on sale at this price.")}),(0,o.jsx)(T.xvT,{small:!0,color:"textSubtle",children:x("Sales are in WAVAX. You can swap WAVAX to AVAX 1:1 for free with PancakeSwap.")})]})]}),(0,o.jsx)(S.iz,{}),(0,o.jsx)(T.kCb,{flexDirection:"column",px:"16px",pb:"16px",children:(0,o.jsx)(T.zxk,{mb:"8px",onClick:a,disabled:h||u||E,children:x("adjust"===t?u||h?"Input New Sale Price":"Confirm":"Enable Listing")})})]})},V=function(e){var n=e.nftToSell,t=e.lowestPrice,r=e.continueToAdjustPriceStage,i=e.continueToRemoveFromMarketStage,s=(0,f.$G)().t,c=n.collectionAddress.toLowerCase()===g.Q.toLowerCase()?n.attributes[0].value:n.tokenId;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(T.kCb,{p:"16px",children:[(0,o.jsx)(S._v,{src:n.image.thumbnail,height:68,width:68,mr:"8px"}),(0,o.jsxs)(T.rjZ,{flex:"1",gridTemplateColumns:"1fr 1fr",alignItems:"center",children:[(0,o.jsx)(T.xvT,{bold:!0,children:n.name}),(0,o.jsx)(T.xvT,{fontSize:"12px",color:"textSubtle",textAlign:"right",children:n.collectionName}),t&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(T.xvT,{small:!0,color:"textSubtle",children:s("Lowest price")}),(0,o.jsxs)(T.kCb,{alignItems:"center",justifyContent:"flex-end",children:[(0,o.jsx)(T.n94,{width:16,height:16,mr:"4px"}),(0,o.jsx)(T.xvT,{small:!0,children:t})]})]}),(0,o.jsx)(T.xvT,{small:!0,color:"textSubtle",children:s("Your price")}),(0,o.jsxs)(T.kCb,{alignItems:"center",justifyContent:"flex-end",children:[(0,o.jsx)(T.n94,{width:16,height:16,mr:"4px"}),(0,o.jsx)(T.xvT,{small:!0,children:n.marketData.currentAskPrice})]})]})]}),(0,o.jsxs)(T.kCb,{justifyContent:"space-between",px:"16px",mt:"8px",children:[(0,o.jsx)(T.kCb,{flex:"2",children:(0,o.jsx)(T.xvT,{small:!0,color:"textSubtle",children:s("Token ID: %id%",{id:n.tokenId})})}),(0,o.jsxs)(T.kCb,{justifyContent:"space-between",flex:"3",children:[(0,o.jsx)(T.zxk,{as:T.rUS,p:"0px",height:"16px",external:!0,variant:"text",href:"".concat(g.V,"/collections/").concat(n.collectionAddress,"/").concat(c),children:s("View Item")}),(0,o.jsx)(S.EL,{}),(0,o.jsx)(T.NRJ,{p:"0px",height:"16px",href:(0,m.z)(n.collectionAddress,n.tokenId),children:"Explorer"})]})]}),(0,o.jsx)(S.iz,{}),(0,o.jsxs)(T.kCb,{flexDirection:"column",px:"16px",pb:"16px",children:[(0,o.jsx)(T.zxk,{mb:"8px",onClick:r,children:s("Adjust Sale Price")}),(0,o.jsx)(T.zxk,{variant:"danger",onClick:i,children:s("Remove from Market")})]})]})},U=t(95491),J=t(49903),K=t(18017),G=function(e){var n=e.continueToNextStage,t=(0,f.$G)().t;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(T.xuv,{p:"16px",maxWidth:"360px",children:[(0,o.jsx)(T.xvT,{fontSize:"24px",bold:!0,children:t("Remove from Market")}),(0,o.jsx)(T.xvT,{mt:"24px",color:"textSubtle",children:t("Removing this NFT from the marketplace will return it to your wallet.")}),(0,o.jsx)(T.xvT,{mt:"16px",color:"textSubtle",children:t("Continue?")})]}),(0,o.jsx)(S.iz,{}),(0,o.jsx)(T.kCb,{flexDirection:"column",px:"16px",pb:"16px",children:(0,o.jsx)(T.zxk,{mb:"8px",onClick:n,children:t("Confirm")})})]})},W=function(e){var n=e.nftToSell,t=e.lowestPrice,r=e.transferAddress,i=e.setTransferAddress,s=e.isInvalidTransferAddress,c=e.continueToNextStage,a=(0,f.$G)().t,x=(0,l.Ge)().account,d=r.toLowerCase()===x.toLowerCase();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(T.xvT,{fontSize:"24px",bold:!0,px:"16px",pt:"16px",children:a("Transfer to New Wallet")}),(0,o.jsxs)(T.kCb,{p:"16px",children:[(0,o.jsx)(S._v,{src:n.image.thumbnail,height:68,width:68,mr:"8px"}),(0,o.jsxs)(T.rjZ,{flex:"1",gridTemplateColumns:"1fr 1fr",alignItems:"center",children:[(0,o.jsx)(T.xvT,{bold:!0,children:n.name}),(0,o.jsx)(T.xvT,{fontSize:"12px",color:"textSubtle",textAlign:"right",children:n.collectionName}),t&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(T.xvT,{small:!0,color:"textSubtle",children:a("Lowest price")}),(0,o.jsxs)(T.kCb,{alignItems:"center",justifyContent:"flex-end",children:[(0,o.jsx)(T.n94,{width:16,height:16,mr:"4px"}),(0,o.jsx)(T.xvT,{small:!0,children:t})]})]})]})]}),(0,o.jsxs)(D,{children:[(0,o.jsx)(T.xvT,{fontSize:"12px",color:"secondary",textTransform:"uppercase",bold:!0,children:a("Receiving address")}),(0,o.jsx)(T.IIB,{scale:"sm",isWarning:s||d,placeholder:a("Paste BSC address"),value:r,onChange:function(e){return i(e.target.value)}}),s||d&&(0,o.jsx)(T.xvT,{fontSize:"12px",color:"failure",mt:"4px",children:s?a("That\u2019s not a Binance Smart Chain wallet address."):d?a("This address is the one that is currently connected"):null})]}),(0,o.jsxs)(T.rjZ,{gridTemplateColumns:"32px 1fr",p:"16px",maxWidth:"360px",children:[(0,o.jsx)(T.kCb,{alignSelf:"flex-start",children:(0,o.jsx)(T.Pz_,{width:24,height:24,color:"textSubtle"})}),(0,o.jsx)(T.xvT,{small:!0,color:"textSubtle",children:a("This action will send your NFT to the address you have indicated above. Make sure it\u2019s the correct")})]}),(0,o.jsx)(S.iz,{}),(0,o.jsx)(T.kCb,{flexDirection:"column",px:"16px",pb:"16px",children:(0,o.jsx)(T.zxk,{mb:"8px",onClick:c,disabled:s||0===r.length||d,children:a("Confirm")})})]})},$=function(e,n){switch(e){case r.SELL:return n("Details");case r.SET_PRICE:case r.APPROVE_AND_CONFIRM_SELL:return n("Back");case r.EDIT:return n("Details");case r.ADJUST_PRICE:return n("Back");case r.CONFIRM_ADJUST_PRICE:return n("Confirm transaction");case r.REMOVE_FROM_MARKET:return n("Back");case r.CONFIRM_REMOVE_FROM_MARKET:return n("Confirm transaction");case r.TRANSFER:return n("Back");case r.CONFIRM_TRANSFER:return n("Confirm transaction");case r.TX_CONFIRMED:return n("Transaction Confirmed");default:return""}},B=function(e){var n=e.variant,t=e.nftToSell,C=e.onDismiss,T=e.onSuccessSale,g=e.onSuccessEditProfile,R=(0,c.useState)("sell"===n?r.SELL:r.EDIT),v=R[0],S=R[1],k=(0,c.useState)("sell"===n?"":t.marketData.currentAskPrice),A=k[0],_=k[1],I=(0,c.useState)(""),F=I[0],N=I[1],P=(0,c.useState)(""),w=P[0],D=P[1],y=(0,f.$G)().t,z=(0,x.Z)().theme,L=(0,l.Ge)().account,B=(0,u.d)().callWithGasPrice,H=(0,h.Z)().toastSuccess,X=(0,j.HQ)(t.collectionAddress),Y=(0,j.DU)(),Q=F.length>0&&!(0,m.UJ)(F),q=(0,b.O)(t).lowestPrice,ee=function(){switch(v){case r.SELL:S(r.SET_PRICE);break;case r.SET_PRICE:S(r.APPROVE_AND_CONFIRM_SELL);break;case r.EDIT:S(r.ADJUST_PRICE);break;case r.ADJUST_PRICE:S(r.CONFIRM_ADJUST_PRICE);break;case r.REMOVE_FROM_MARKET:S(r.CONFIRM_REMOVE_FROM_MARKET);break;case r.TRANSFER:S(r.CONFIRM_TRANSFER)}},ne=(0,d.Z)({onRequiresApproval:(0,i.Z)((function(){return(0,s.__generator)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,X.isApprovedForAll(L,Y.address)];case 1:return[2,e.sent()];case 2:return e.sent(),[2,!1];case 3:return[2]}}
1))})),onApprove:function(){return B(X,"setApprovalForAll",[Y.address,!0])},onApproveSuccess:function(){var e=(0,i.Z)((function(e){var n;return(0,s.__generator)(this,(function(t){return n=e.receipt,H(y("Contract approved - you can now put your NFT for sale!"),(0,o.jsx)(p.YO,{txHash:n.transactionHash})),[2]}))}));return function(n){return e.apply(this,arguments)}}(),onConfirm:function(){if(v===r.CONFIRM_REMOVE_FROM_MARKET)return B(Y,"cancelAskOrder",[t.collectionAddress,t.tokenId]);if(v===r.CONFIRM_TRANSFER)return B(X,"safeTransferFrom(address,address,uint256)",[L,F,t.tokenId]);var e="sell"===n?"createAskOrder":"modifyAskOrder",i=(0,a.vz)(A);return B(Y,e,[t.collectionAddress,t.tokenId,i])},onSuccess:function(){var e=(0,i.Z)((function(e){var t;return(0,s.__generator)(this,(function(i){return t=e.receipt,H(function(e,n,t){return n===r.CONFIRM_REMOVE_FROM_MARKET?t("Your NFT has been returned to your wallet"):n===r.CONFIRM_TRANSFER?t("Your NFT has been transferred to another wallet"):t("sell"===e?"Your NFT has been listed for sale!":"Your NFT listing has been changed.")}(n,v,y),(0,o.jsx)(p.YO,{txHash:t.transactionHash})),T(),D(t.transactionHash),S(r.TX_CONFIRMED),[2]}))}));return function(n){return e.apply(this,arguments)}}()}),te=ne.isApproving,re=ne.isApproved,ie=ne.isConfirming,se=ne.handleApprove,oe=ne.handleConfirm,ce=M.includes(v)&&!ie&&!te;return(0,o.jsxs)(O,{title:$(v,y),stage:v,onDismiss:C,onBack:ce?function(){switch(v){case r.SET_PRICE:S(r.SELL);break;case r.APPROVE_AND_CONFIRM_SELL:S(r.SET_PRICE);break;case r.ADJUST_PRICE:_(t.marketData.currentAskPrice),S(r.EDIT);break;case r.CONFIRM_ADJUST_PRICE:S(r.ADJUST_PRICE);break;case r.REMOVE_FROM_MARKET:S(r.EDIT);break;case r.CONFIRM_REMOVE_FROM_MARKET:S(r.REMOVE_FROM_MARKET);break;case r.TRANSFER:S(r.SELL);break;case r.CONFIRM_TRANSFER:S(r.TRANSFER)}}:null,headerBackground:z.colors.gradients.cardHeader,children:[v===r.SELL&&(0,o.jsx)(E,{nftToSell:t,lowestPrice:q,continueToNextStage:ee,continueToTransferStage:function(){S(r.TRANSFER)},onSuccessEditProfile:g}),v===r.SET_PRICE&&(0,o.jsx)(Z,{nftToSell:t,variant:"set",continueToNextStage:ee,lowestPrice:q,price:A,setPrice:_}),v===r.APPROVE_AND_CONFIRM_SELL&&(0,o.jsx)(U.Z,{variant:"sell",isApproved:re,isApproving:te,isConfirming:ie,handleApprove:se,handleConfirm:oe}),v===r.TX_CONFIRMED&&(0,o.jsx)(J.Z,{txHash:w,onDismiss:C}),v===r.EDIT&&(0,o.jsx)(V,{nftToSell:t,lowestPrice:q,continueToAdjustPriceStage:ee,continueToRemoveFromMarketStage:function(){S(r.REMOVE_FROM_MARKET)}}),v===r.ADJUST_PRICE&&(0,o.jsx)(Z,{nftToSell:t,variant:"adjust",continueToNextStage:ee,currentPrice:t.marketData.currentAskPrice,lowestPrice:q,price:A,setPrice:_}),v===r.CONFIRM_ADJUST_PRICE&&(0,o.jsx)(K.Z,{isConfirming:ie,handleConfirm:oe}),v===r.REMOVE_FROM_MARKET&&(0,o.jsx)(G,{continueToNextStage:ee}),v===r.CONFIRM_REMOVE_FROM_MARKET&&(0,o.jsx)(K.Z,{isConfirming:ie,handleConfirm:oe}),v===r.TRANSFER&&(0,o.jsx)(W,{nftToSell:t,lowestPrice:q,continueToNextStage:ee,transferAddress:F,setTransferAddress:N,isInvalidTransferAddress:Q}),v===r.CONFIRM_TRANSFER&&(0,o.jsx)(K.Z,{isConfirming:ie,handleConfirm:oe})]})}},95491:function(e,n,t){var r=t(85893),i=(t(67294),t(38051)),s=t(99150),o=t(33482);n.Z=function(e){var n=e.variant,t=e.isApproved,c=e.isApproving,l=e.isConfirming,a=e.handleApprove,x=e.handleConfirm,d=(0,s.$G)().t;return(0,r.jsxs)(i.kCb,{p:"16px",flexDirection:"column",children:[(0,r.jsxs)(i.kCb,{mb:"8px",alignItems:"center",children:[(0,r.jsxs)(i.kCb,{flexDirection:"column",children:[(0,r.jsxs)(i.kCb,{alignItems:"center",children:[(0,r.jsx)(o.OR,{success:t,children:(0,r.jsx)(i.xvT,{fontSize:"20px",bold:!0,color:"invertedContrast",children:"1"})}),(0,r.jsx)(i.xvT,{fontSize:"20px",color:t?"success":"secondary",bold:!0,children:d(t?"Enabled":"Enable")})]}),!t&&(0,r.jsx)(i.xvT,{mt:"8px",maxWidth:"275px",small:!0,color:"textSubtle",children:d("buy"===n?"Please enable WAVAX spending in your wallet":"Please enable your NFT to be sent to the market")})]}),(0,r.jsx)(i.kCb,{flex:"0 0 64px",width:"64px",children:c&&(0,r.jsx)(i.$jN,{size:64})})]}),!t&&(0,r.jsx)(i.zxk,{variant:"secondary",disabled:c,onClick:a,children:c?"".concat(d("Enabling"),"..."):d("Enable")}),(0,r.jsxs)(i.kCb,{alignItems:"center",mt:"8px",children:[(0,r.jsxs)(i.kCb,{flexDirection:"column",children:[(0,r.jsxs)(i.kCb,{alignItems:"center",mt:"16px",children:[(0,r.jsx)(o.OR,{success:!1,disabled:!t,children:(0,r.jsx)(i.xvT,{fontSize:"20px",bold:!0,color:t?"invertedContrast":"textDisabled",children:"2"})}),(0,r.jsx)(i.xvT,{fontSize:"20px",bold:!0,color:t?"secondary":"textDisabled",children:d("Confirm")})]}),(0,r.jsx)(i.xvT,{small:!0,color:t?"textSubtle":"textDisabled",children:d("Please confirm the transaction in your wallet")})]}),(0,r.jsx)(i.kCb,{flex:"0 0 64px",width:"64px",children:l&&(0,r.jsx)(i.$jN,{size:64})})]}),(0,r.jsx)(i.zxk,{mt:"16px",disabled:!t||l,onClick:x,variant:"secondary",children:d(l?"Confirming":"Confirm")})]})}},18017:function(e,n,t){var r=t(85893),i=(t(67294),t(38051)),s=t(99150);n.Z=function(e){var n=e.isConfirming,t=e.handleConfirm,o=(0,s.$G)().t;return(0,r.jsxs)(i.kCb,{p:"16px",flexDirection:"column",children:[(0,r.jsxs)(i.kCb,{alignItems:"center",children:[(0,r.jsxs)(i.kCb,{flexDirection:"column",children:[(0,r.jsx)(i.kCb,{alignItems:"center",children:(0,r.jsx)(i.xvT,{fontSize:"20px",bold:!0,color:"secondary",children:o("Confirm")})}),(0,r.jsx)(i.xvT,{small:!0,color:"textSubtle",children:o("Please confirm the transaction in your wallet")})]}),(0,r.jsx)(i.kCb,{flex:"0 0 64px",height:"72px",width:"64px",children:n&&(0,r.jsx)(i.$jN,{size:64})})]}),(0,r.jsx)(i.zxk,{mt:"24px",disabled:n,onClick:t,variant:"secondary",children:n?"".concat(o("Confirming"),"..."):o("Confirm")})]})}},49903:function(e,n,t){var r=t(85893),i=(t(67294),t(38051)),s=t(99150),o=t(38328),c=t(64011),l=t(33482);n.Z=function(e){var n=e.txHash,t=e.onDismiss,a=(0,c.Z)().chainId,x=(0,s.$G)().t;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.kCb,{p:"16px",flexDirection:"column",alignItems:"center",justifyContent:"space-between",height:"150px",children:[(0,r.jsx)(i.Hf3,{width:"64px",height:"64px",color:"primary"}),(0,r.jsx)(i.xvT,{bold:!0,children:x("Transaction Confirmed")}),(0,r.jsx)(i.NRJ,{href:(0,o.s6)(n,"transaction",a),children:x("View on Explorer")})]}),(0,r.jsx)(l.iz,{}),(0,r.jsx)(i.kCb,{px:"16px",pb:"16px",justifyContent:"center",children:(0,r.jsx)(i.zxk,{onClick:t,variant:"secondary",width:"100%",children:x("Close")})})]})}},33482:function(e,n,t){t.d(n,{EL:function(){return u},OR:function(){return h},_v:function(){return x},iz:function(){return d}});var r=t(7297),i=t(19521),s=t(38051);function o(){var e=(0,r.Z)(["\n border-radius: ",";\n overflow: hidden;\n"]);return o=function(){return e},e}function c(){var e=(0,r.Z)(["\n margin: 16px 0;\n border-bottom: 1px solid ",";\n"]);return c=function(){return e},e}function l(){var e=(0,r.Z)(["\n border-right: 1px solid ",";\n"]);return l=function(){return e},e}function a(){var e=(0,r.Z)(["\n border-radius: 50%;\n background-color: ",";\n border: ",";\n height: 32px;\n width: 32px;\n justify-content: center;\n align-items: center;\n margin-right: 8px;\n"]);return a=function(){return e},e}var x=(0,i.ZP)(s.Eep).withConfig({componentId:"sc-3a2b561c-0"})(o(),(function(e){return e.theme.radii.small})),d=i.ZP.div.withConfig({componentId:"sc-3a2b561c-1"})(c(),(function(e){return e.theme.colors.cardBorder})),u=i.ZP.div.withConfig({componentId:"sc-3a2b561c-2"})(l(),(function(e){return e.theme.colors.cardBorder})),h=(0,i.ZP)(s.kCb).withConfig({componentId:"sc-3a2b561c-3"})(a(),(function(e){var n=e.theme,t=e.success;return e.disabled?"none":t?n.colors.success:n.colors.secondary}),(function(e){var n=e.theme;return e.disabled?"1px solid ".concat(n.colors.textDisabled):"none"}))},70739:function(e,n,t){var r=t(10253),i=t(7297),s=t(85893),o=(t(67294),t(38051)),c=t(23917),l=t(19521
1),a=t(99150),x=t(38328),d=t(33482),u=t(6522),h=t(1940);function p(){var e=(0,i.Z)(["\n & > div:last-child {\n padding: 0;\n }\n"]);return p=function(){return e},e}function f(){var e=(0,i.Z)(["\n background-color: ",";\n"]);return f=function(){return e},e}var m=(0,l.ZP)(o.u_l).withConfig({componentId:"sc-288348cb-0"})(p()),j=(0,l.ZP)(o.kCb).withConfig({componentId:"sc-288348cb-1"})(f(),(function(e){return e.theme.colors.dropdown}));n.Z=function(e){var n=e.nft,t=e.onDismiss,i=e.onSuccess,l=(0,r.Z)((0,o.ddY)((0,s.jsx)(u.Z,{onSuccess:i}),!1),1)[0],p=(0,a.$G)().t,f=(0,c.Z)().theme,b=n.collectionAddress===h.Q?n.attributes[0].value:n.tokenId;return(0,s.jsx)(m,{title:p("Details"),onDismiss:t,headerBackground:f.colors.gradients.cardHeader,children:(0,s.jsxs)(o.kCb,{flexDirection:"column",maxWidth:"350px",children:[(0,s.jsxs)(o.kCb,{p:"16px",children:[(0,s.jsx)(d._v,{src:n.image.thumbnail,height:68,width:68,mr:"16px"}),(0,s.jsxs)(o.rjZ,{flex:"1",gridTemplateColumns:"1fr 1fr",alignItems:"center",children:[(0,s.jsx)(o.xvT,{bold:!0,children:n.name}),(0,s.jsx)(o.xvT,{fontSize:"12px",color:"textSubtle",textAlign:"right",children:n.collectionName})]})]}),(0,s.jsxs)(o.kCb,{justifyContent:"space-between",px:"16px",mb:"16px",children:[(0,s.jsx)(o.kCb,{flex:"2",children:(0,s.jsx)(o.xvT,{small:!0,color:"textSubtle",children:p("Token ID: %id%",{id:n.tokenId})})}),(0,s.jsxs)(o.kCb,{justifyContent:"space-between",flex:"3",children:[(0,s.jsx)(o.zxk,{as:o.rUS,p:"0px",height:"16px",external:!0,variant:"text",href:"".concat(h.V,"/collections/").concat(n.collectionAddress,"/").concat(b),children:p("View Item")}),(0,s.jsx)(d.EL,{}),(0,s.jsx)(o.NRJ,{p:"0px",height:"16px",href:(0,x.z)(n.collectionAddress,n.tokenId),children:"Explorer"})]})]}),(0,s.jsxs)(j,{p:"24px 16px",flexDirection:"column",children:[(0,s.jsx)(o.xvT,{mb:"16px",children:p("You're using this NFT as your Pancake Profile picture")}),(0,s.jsx)(o.xvT,{color:"textSubtle",mb:"16px",fontSize:"14px",children:p("Removing it will suspend your profile, and you won\u2019t be able to earn points, participate in team activities, or be eligible for new NFT drops.")}),(0,s.jsx)(o.xvT,{color:"textSubtle",fontSize:"14px",children:p("Go to your profile page to continue.")})]}),(0,s.jsx)(o.kCb,{flexDirection:"column",py:"16px",px:"16px",children:(0,s.jsx)(o.zxk,{onClick:l,width:"100%",variant:"secondary",children:p("Remove Profile Pic")})})]})})}}}]); 2//# sourceMappingURL=6165-121cea4f81a484bb.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.