1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[381],{6743:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/artist/orders",function(){return t(29810)}])},29810:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return y}});var r=t(5447),i=t(99728),a=t(27427),s=t(84911),l=t(8014),c=t(34237),o=t(82857),d=t(67333),u=t(27548),p=t(2612),x=t(56168),h=t(17325),v=t(49673),b=t(62985),f=function(e){var n=e.children,t=(0,a.Z)(e,["children"]);return(0,l.jsx)(c.kC,(0,i.Z)((0,r.Z)({p:{base:"15px 20px",lg:"20px 60px"},align:"center",borderBottomWidth:"1px",borderBottomColor:"base_2.4",_even:{bg:"base.6"},wrap:"wrap",position:"relative"},t),{children:n}))},j=function(e){var n=e.children,t=(0,a.Z)(e,["children"]);return(0,l.jsx)(c.kC,(0,i.Z)((0,r.Z)({w:{base:"50%",lg:"140px"}},t),{children:n}))},g=function(){return(0,l.jsxs)(f,{display:{base:"none",lg:"flex"},children:[(0,l.jsx)(j,{children:(0,l.jsx)(c.xv,{variant:"overline",children:"Date"})}),(0,l.jsx)(c.kC,{flex:1,children:(0,l.jsx)(c.xv,{variant:"overline",children:"Info"})}),(0,l.jsx)(j,{w:"240px",children:(0,l.jsx)(c.xv,{variant:"overline",children:"Order ID"})}),(0,l.jsx)(j,{children:(0,l.jsx)(c.xv,{variant:"overline",children:"Status"})}),(0,l.jsx)(j,{children:(0,l.jsx)(c.xv,{variant:"overline",children:"Price"})}),(0,l.jsx)(c.kC,{w:"80px"})]})},_=function(e){var n=e.orderId;return(0,l.jsx)(j,{w:{base:"100%",lg:"240px"},display:{base:n?"flex":"none",lg:"flex"},children:n?(0,l.jsx)(o.Z,{label:"Click to copy",placement:"left",variant:"light",children:(0,l.jsxs)(c.kC,{align:"center",gap:"5px",cursor:"pointer",onClick:function(){n&&navigator.clipboard.writeText(n)},children:[(0,l.jsxs)(c.xv,{variant:"numeralsTiny",display:{base:"flex",lg:"none"},children:["Order ID:"," "]}),(0,l.jsx)(c.xv,{variant:"fieldsDescription",px:"6px",py:"2px",children:n})]})}):null})},m=function(e){var n=e.order;return(0,l.jsxs)(f,{gap:{base:"20px",lg:"0"},children:[(0,l.jsx)(j,{w:{base:"100%",lg:"140px"},children:(0,l.jsx)(c.xv,{variant:"fieldsDescription",children:(0,v.JU)(n.date,!0)})}),(0,l.jsxs)(c.kC,{direction:"column",flex:{base:"initial",lg:1},w:{base:"100%",lg:"auto"},gap:"5px",pr:"20px",children:[(0,l.jsx)(c.xv,{variant:"numeralsTiny",children:n.title}),(0,l.jsx)(c.xv,{variant:"overline",color:"base_2.2",children:n.subtitle})]}),(0,l.jsx)(_,{orderId:n.payment_id}),(0,l.jsx)(j,{position:{base:"absolute",lg:"initial"},top:{base:"15px",lg:"auto"},right:{base:"20px",lg:"initial"},w:{base:"auto",lg:"140px"},children:(0,l.jsx)(u.Z,{bg:"PAID"===n.status?"accent1.3":"transparent",border:"PAID"===n.status?"none":"1px solid",color:"base.1",label:(0,p.capitalize)(n.status)})}),(0,l.jsx)(j,{children:(0,l.jsx)(c.xv,{variant:"fieldsDescription",children:n.price?"$".concat(n.price):""})}),(0,l.jsx)(c.kC,{w:"80px",ml:"auto",children:n.id&&"PAID"===n.status&&("bundle"===n.type||+n.price>0)&&(0,l.jsx)(d.Z,{type:n.type,orderId:n.id})})]})},y=!0;n.default=(0,b.Z)((function(e){var n=e.data,t=(0,x.useMemo)((function(){var e=n.bundle_orders,t=n.submissions,r=e.map((function(e){return{date:e.payment_date||e.created,title:"Credits Bundle",subtitle:"Amount: ".concat(e.credits," credits"),status:e.status,price:(0,h.Wy)(e.paid_amount),payment_id:e.id?"BND-".concat(e.id):null,id:e.id,type:"bundle"}})),i=t.map((function(e){return{date:e.payment_date||e.modified,title:e.contest,subtitle:"Entry Type: ".concat((0,p.capitalize)(e.entry_type),", Number of Entries: ").concat(e.entries_count),status:e.status,price:(0,h.Wy)(e.price),payment_id:e.id?"SUB-".concat(e.id):null,id:e.id,type:"submission"}}));return(0,s.Z)(r).concat((0,s.Z)(i)).sort((function(e,n){return new Date(n.date).getTime()-new Date(e.date).getTime()}))}),[n]);return(0,l.jsxs)(c.kC,{direction:"column",mt:{base:"0",lg:"20px"},children:[(0,l.jsx)(g,{}),t.map((function(e,n){return(0,l.jsx)(m,{order:e},"".concat(n,"-").concat(e.payment_id))}))]})}),{title:"My Orders"})},62985:function(e,n,t){"use strict";t.d(n,{Z:function(){return c}});var r=t(5447),i=t(99728),a=t(27427),s=t(8014),l=t(75274);function c(e,n){var t=n.title,c=n.header,o=(0,a.Z)(n,["title","header"]);return e.getLayout=function(e){var n="function"===typeof t?t(e.props):t;return(0,s.jsx)(l.Z,(0,i.Z)((0,r.Z)({title:n,header:c},o,e.props),{children:e}))},e}}},function(e){e.O(0,[4186,4474,1445,1111,2783,5613,2111,6531,5274,28,9774,2888,179],(function(){return n=6743,e(e.s=n);var n}));var n=e.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.