1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[622],{64946:function(r,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile/UserArtworksCollection",function(){return i(54383)}])},54383:function(r,n,i){"use strict";i.r(n),i.d(n,{default:function(){return N}});var e=i(85893),a=i(67294),o=i(44012),s=i(11163),t=i(18610),c=i(24663),l=i(66724),d=i(20499),u=i(41664),x=i.n(u),h=i(39147),j=i(91450),_=i.n(j),f=i(33506),E=function(r){var n=r.original;return(0,e.jsxs)(t.Kqy,{display:"flex",flexDirection:"row",justifyContent:"center",gap:1,children:[(0,e.jsx)(x(),{href:"".concat(c.H.WORKS).concat(c.H.EDIT,"/").concat(n["artwork-id"]),children:(0,e.jsx)("a",{children:(0,e.jsx)(t.zxk,{variant:"contained",color:"primary",children:(0,e.jsx)(o.Z,{id:"MODAL_EDITIONS_SELL_EDIT"})})})}),(0,e.jsx)(x(),{href:"".concat(c.H.GALLERY,"/").concat(n["artwork-id"]),children:(0,e.jsx)("a",{children:(0,e.jsx)(t.zxk,{variant:"contained",color:"secondary",children:(0,e.jsx)(o.Z,{id:"MODAL_EDITIONS_DETAILS"})})})})]})},v=function(r){var n=r.original;return(0,e.jsxs)(t.Kqy,{display:"flex",flexDirection:"row",justifyContent:"center",gap:1,children:[(0,e.jsx)(x(),{href:"".concat(c.H.WORKS).concat(c.H.SELL,"/").concat(n["artwork-id"]),children:(0,e.jsx)("a",{children:(0,e.jsx)(t.zxk,{variant:"contained",color:"primary",children:(0,e.jsx)(o.Z,{id:"MODAL_EDITIONS_SELL"})})})}),(0,e.jsx)(x(),{href:"".concat(c.H.GALLERY,"/").concat(n["artwork-id"]),children:(0,e.jsx)("a",{children:(0,e.jsx)(t.zxk,{variant:"contained",color:"secondary",children:(0,e.jsx)(o.Z,{id:"MODAL_EDITIONS_DETAILS"})})})})]})},g=function(r){var n=r.original;return(0,e.jsx)(t.Kqy,{display:"flex",flexDirection:"row",justifyContent:"center",gap:1,children:(0,e.jsx)(x(),{href:"".concat(c.H.GALLERY,"/").concat(n["artwork-id"]),children:(0,e.jsx)("a",{children:(0,e.jsx)(t.zxk,{variant:"contained",color:"secondary",children:(0,e.jsx)(o.Z,{id:"MODAL_EDITIONS_BUY"})})})})})},A=function(){return(0,e.jsx)(t.Kqy,{display:"flex",flexDirection:"row",justifyContent:"center",gap:1,children:(0,e.jsx)(t.zxk,{variant:"text",color:"secondary",children:(0,e.jsx)(o.Z,{id:"MODAL_EDITIONS_NOT_AVAILABLE"})})})},w=function(r){var n=r.open,i=r.closeModal,s=r.id,c=(0,h.E7)("".concat(s)),l=c.data,d=c.isLoading,u=c.refetch,x=(0,f.C)((function(r){return r.auth})).id,j=null===l||void 0===l?void 0:l.length;(0,a.useEffect)((function(){u()}),[n]);var w=[{Header:(0,e.jsx)("span",{children:(0,e.jsx)(o.Z,{id:"PAGE.GALLERY.WORK_EDITIONS_EDITIONS"})}),accessor:"edition-number",Cell:function(r){var n=r.cell.value,i=r.row;return(0,e.jsxs)(t.KZ4,{fontWeight:400,className:"".concat(null===i.original.event&&i.original.owner.id!==x&&_().EditionsTable),children:[n,"/",j]})}},{Header:(0,e.jsx)("span",{children:(0,e.jsx)(o.Z,{id:"PAGE.GALLERY.WORK_EDITIONS_SELLER"})}),accessor:"owner",Cell:function(r){var n=r.row;return(0,e.jsx)(t.KZ4,{fontWeight:400,className:"".concat(null===n.original.event&&n.original.owner.id!==x&&_().EditionsTable),children:(0,e.jsxs)("p",{style:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",maxWidth:"200px"},children:["@",n.original.owner.name]})})}},{Header:(0,e.jsx)("span",{children:"ID"}),accessor:"id",Cell:function(r){var n=r.row;return(0,e.jsx)(t.KZ4,{fontWeight:700,className:"".concat(null===n.original.event&&n.original.owner.id!==x&&_().EditionsTable),children:"buy"===n.original.event?(0,e.jsx)(o.Z,{id:"PAGE.GALLERY.WORK_EDITIONS_LAZY"}):(0,e.jsxs)(e.Fragment,{children:["#",n.original["token-id"]]})})}},{Header:(0,e.jsx)("span",{className:_().lastTd,children:"Estado"}),accessor:"event",Cell:function(r){var n=r.row;return"buy"===n.original.event?(0,e.jsx)(g,{original:n.original}):"purchase"===n.original.event?(0,e.jsxs)(e.Fragment,{children:[n.original.owner.id===x&&(0,e.jsx)(E,{original:n.original}),n.original.owner.id!==x&&(0,e.jsx)(g,{original:n.original})]}):n.original.owner.id===x?(0,e.jsx)(v,{original:n.original}):(0,e.jsx)(A,{})}}];return!d&&l?(0,e.jsxs)(t.VqE,{open:n,children:[(0,e.jsx)(t.$N8,{divider:!0,isClosable:i,children:(0,e.jsx)(t.jgv,{heading:"h5",color:"black",children:(0,e.jsx)(o.Z,{id:"MODAL_EDITIONS_TITLE"})})}),(0,e.jsx)(t.cZJ,{children:(0,e.jsx)(t.iA_,{columns:w,data:l})})]}):null},L=i(59096),m=i(35967),p=i.n(m),k=function(r){var n=r.item,i=r.src,u=r.scoring,x=r.logoSrc,h=r.splits,j=r.isCurrentUser,_=(0,a.useState)(!1),f=_[0],E=_[1],v=(0,s.useRouter)();return(0,e.jsxs)("div",{children:[(0,e.jsxs)(d.Z,{className:p().cardArtwork,dropshadow:"dropShadow1",children:[(0,e.jsx)("div",{className:p().cardArtwork_Media,children:(0,e.jsx)(L.n,{path:i,rated:u,isLiked:n.like,titleArtwork:n.name,alt:n.name,id:n.id})}),(0,e.jsxs)("div",{className:p().cardArtwork_Info,children:[(0,e.jsx)("div",{className:p().cardArtwork_Info__User,children:h&&h>
11?(0,e.jsx)(l.Z,{srcAvatar:x,heading:"h6",userName:n.user.name,isArtistVerified:n.user.verified,split:h-1}):(0,e.jsx)(t.AxB,{srcAvatar:x,heading:"h6",userName:n.user.name,isArtistVerified:n.user.verified})}),(0,e.jsx)("div",{className:p().cardArtwork_Info__Country,children:n.user.country})]}),(0,e.jsx)("div",{className:p().cardArtwork_Action,children:j?(0,e.jsx)(t.zxk,{color:"secondary",variant:"contained",size:"medium",fullWidth:!0,onClick:function(){return E(!0)},children:"buy"!==(null===n||void 0===n?void 0:n.event)?(0,e.jsx)(o.Z,{id:"PAGE.SELL_BTN_SELL"}):(0,e.jsx)(o.Z,{id:"PAGE.SELL_EDIT"})}):(0,e.jsx)(t.zxk,{color:"secondary",variant:"contained",size:"medium",fullWidth:!0,onClick:function(){return v.push("".concat(c.H.GALLERY,"/").concat(n.id))},children:(0,e.jsx)(o.Z,{id:"PAGE.SELL_VIEW_ARTWORK"})})})]}),f&&(0,e.jsx)(w,{open:f,closeModal:function(){return E(!1)},id:n.id})]})},T=i(44925),I=i.n(T),N=function(r){var n=r.item,i=r.isCurrentUser;return(0,e.jsx)("div",{className:I().gridArtworks,children:null===n||void 0===n?void 0:n.map((function(r){return(0,e.jsx)("div",{children:(0,e.jsx)(k,{logoSrc:"".concat("https://artbag-market.s3.us-east-1.amazonaws.com/").concat(r.user.id,"/thumb_").concat(r.user.image),src:"items/".concat(r.image),scoring:r.rating,item:r,splits:r.splits,isCurrentUser:i})},r.id)}))})}},91450:function(r){r.exports={EditionsTable:"EditionsTable_EditionsTable__0MLOj",lastTd:"EditionsTable_lastTd__0kFPs",acortarTexto:"EditionsTable_acortarTexto__QHeUv",linkContractAddress:"EditionsTable_linkContractAddress__crWoZ"}},44925:function(r){r.exports={gridArtworks:"UserArtworks_gridArtworks__gJ_Oy"}}},function(r){r.O(0,[774,888,179],(function(){return n=64946,r(r.s=n);var n}));var n=r.O();_N_E=n}]);
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.