PageSourceSearch

https://grounz.net/_next/static/chunks/pages/setting/store/product-ce07dac78fa5bef5.js

js grounz.net collected 2026-10-06 04:37:20 UTC 12,308 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3987],{53233:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/setting/store/product",function(){return s(66893)}])},53842:function(e,t,s){"use strict";var r=s(85893),n=s(82268),a=s(41664),l=s.n(a),i=s(11163),c=s(41799),d=function(){var e=(0,i.useRouter)(),t=[{text:"내 상품 관리",href:"/setting/store/product",icon:n.dJ},{text:"판매 관리",href:"/setting/store/sell",icon:n.dJ},{text:"고객 문의 관리",href:"/setting/store/question",icon:n.PF},{text:"정산 내역",href:"/setting/store/calculation",icon:n.KT},{text:"출금 신청",href:"/setting/store/withdrawal",icon:n.KT},{text:"계좌 정보 등록",href:"/setting/store/bank-account",icon:n.KT},{text:"스토어 가이드",href:"".concat(location.origin,"/store-guide"),icon:n.kp},];return(0,r.jsxs)("div",{className:"bg-gray-100 w-[288px] shrink-0 min-w-[288px] p-6 rounded-lg text-gray-900 self-start",children:[(0,r.jsx)("h2",{className:"font-bold text-main text-gray-900 mb-5",children:"내 스토어 관리"}),(0,r.jsx)("ul",{children:t.map(function(t){var s=t.href&&e.asPath.startsWith(t.href);return(0,r.jsx)("li",{className:"mb-4 last-of-type:mb-0 text-body1 font-bold ".concat(s?"text-key":"text-gray-900"),children:(0,r.jsx)(l(),{href:t.href,children:(0,r.jsxs)("a",{className:"inline-flex items-center gap-2",target:t.href.startsWith("http")?"_blank":"_self",children:[(0,r.jsx)(t.icon,{color:s?"#EC2756":"#333333"}),(0,r.jsx)("span",{children:t.text})]})})},t.text)})}),(0,r.jsx)(c.Z,{})]})};t.Z=d},95248:function(e,t,s){"use strict";var r=s(85893),n=s(93967),a=s.n(n),l=s(62150),i=function(e){var t=e.columns,s=e.data,n=e.actions,i=e.actionHeader,c=e.actionsConditional,d=function(e,t){if(t.render)return(0,r.jsx)("div",{className:"flex",children:t.render(e)});var s=e,n=t.key.split(".");if(n.length>1){var a=!0,l=!1,i=void 0;try{for(var c,d=n[Symbol.iterator]();!(a=(c=d.next()).done)&&(s=s[c.value]);a=!0);}catch(o){l=!0,i=o}finally{try{a||null==d.return||d.return()}finally{if(l)throw i}}return t.wrapFn?t.wrapFn(s):s}return t.wrapFn?t.wrapFn(s[t.key]):s[t.key]};return(0,r.jsx)("div",{className:"max-w-[calc(100%+2rem)] overflow-x-scroll md:overflow-visible -mx-4 px-4",children:(0,r.jsxs)("table",{className:"border-t-gray-200 border-t md:w-full w-[800px]",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[t.map(function(e){return(0,r.jsx)("th",{className:a()("bg-gray-100 py-4 px-2 text-body1 border-b-gray-200 border-b text-center whitespace-nowrap",{"!text-start":"start"===e.align}),children:e.header},e.header)}),(n||c)&&(0,r.jsx)("th",{className:"bg-gray-100 py-4 px-2 border-b-gray-200 border-b text-body1",children:i})]})}),(0,r.jsx)("tbody",{children:null==s?void 0:s.map(function(e){var s;return(0,r.jsxs)("tr",{children:[t.map(function(t){return(0,r.jsx)("td",{className:a()("p-4 border-b border-b-gray-200 text-body2 text-center whitespace-nowrap break-all",{"!text-start":"start"===t.align}),style:{width:t.width||"auto",minWidth:t.width||0,whiteSpace:t.textWrap?"normal":"nowrap"},onClick:function(){return t.onPress?t.onPress(e):null},children:(0,r.jsx)("div",{className:a()({"line-clamp-2":"상태"!==t.header,"w-[84px]":"구매자"===t.header,"w-[240px]":"상품"===t.header}),children:d(e,t)})},t.header+e.id)}),(n||c)&&(0,r.jsx)("td",{className:"p-4 border-b border-b-gray-200 w-32",children:(0,r.jsx)("div",{className:"flex flex-col gap-2",children:null===(s=n||(null==c?void 0:c(e)))||void 0===s?void 0:s.map(function(t){var s;return(0,r.jsx)(l.z,{text:t.textRender?t.textRender(e)||"":t.text||"",disabled:t.disabled,className:a()("!p-2 whitespace-nowrap",{"!border-gray-900":!t.disabled}),onClick:function(){return t.onPress(e)},color:(null===(s=t.colorRender)||void 0===s?void 0:s.call(t,e))||t.color})})})})]},e.id)})})]})})};t.Z=i},66893:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return S}});var r=s(47568),n=s(97582),a=s(85893),l=s(27940),i=s(76662),c=s(11163),d=s(1653),o=s(53842),x=s(41664),h=s.n(x),u=s(82268),m=s(67294),f=s(95248),p=s(62150),j=s(36492),g=s(36457),b=s(27484),v=s.n(b),y=s(55717),N=s(71736),w=s(4234),k=s(30719),P=s(25675),C=s.n(P),_=s(98191),E=function(){var e,t=(0,l.a)(),s=(0,_.ZP)(function(e){return e.user}),x=(0,c.useRouter)(),b=(0,d.useGlobalStore)().mobileScreenSize,P=(0,m.useState)(),E=P[0],S=P[1],F=(0,w.wE)({defaultDate:(0,k.XW)()}),z=F.dates,D=F.DateRangePicker,R=(0,j.a)({queryFn:g.nJ,queryKey:["my-store-products",{startDate:z[0],endDate:z[1]},null==s?void 0:s.id,]}
1),T=R.data,A=R.refetch,Z=function(e){S(e),e.status===N.Pt.ACTIVE&&t.toggle(!0,"store-product-sell-stop"),e.status===N.Pt.PAUSE&&t.toggle(!0,"store-product-sell-start")},I=function(e){x.push("/store/write?id=".concat(e.id))},W=(e=(0,r.Z)(function(){return(0,n.__generator)(this,function(e){switch(e.label){case 0:if(!E)return[2];if(E.status!==N.Pt.ACTIVE)return[3,2];return[4,(0,g.Lv)(E.id,N.Pt.PAUSE)];case 1:e.sent(),e.label=2;case 2:if(E.status!==N.Pt.PAUSE)return[3,4];return[4,(0,g.Lv)(E.id,N.Pt.ACTIVE)];case 3:e.sent(),e.label=4;case 4:return A(),S(void 0),t.toggle(!1,"store-product-sell-stop"),t.toggle(!1,"store-product-sell-start"),[2]}})}),function(){return e.apply(this,arguments)}),Y=function(e){switch(e.status){case N.Pt.ACTIVE:return"판매 중단";case N.Pt.PAUSE:return"판매 재개";case N.Pt.PENDING:return"승인 대기중"}},K=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.I,{show:t.show,toggle:t.toggle,modalKey:"store-product-sell-stop",width:500,children:(0,a.jsxs)("div",{className:"relative p-2 flex flex-col",children:[(0,a.jsx)(p.h,{icon:(0,a.jsx)(u.yv,{size:24}),className:"absolute right-0",onClick:function(){return t.toggle(!1,"store-product-sell-stop")}}),(0,a.jsx)("h2",{className:"text-center font-bold md:text-h2 text-title mb-6",children:"판매 중단"}),(0,a.jsxs)("div",{className:"md:text-subtitle text-gray-900 mb-8 text-center text-body1",children:[(0,a.jsx)("p",{children:"판매를 중단하시겠습니까? 언제든 판매 재개 가능합니다."}),(0,a.jsx)("p",{children:"이제 마이페이지와 스토어에서 보여지지 않습니다."}),(0,a.jsx)("p",{className:"text-key mt-4",children:"* 해당 상품의 결제 완료 건이 있을 경우, 반드시 확인해주세요."})]}),(0,a.jsx)(p.z,{text:"확인",color:"black",onClick:W})]})}),(0,a.jsx)(l.I,{show:t.show,toggle:t.toggle,modalKey:"store-product-sell-start",width:500,children:(0,a.jsxs)("div",{className:"relative p-2 flex flex-col",children:[(0,a.jsx)(p.h,{icon:(0,a.jsx)(u.yv,{size:24}),className:"absolute right-0",onClick:function(){return t.toggle(!1,"store-product-sell-start")}}),(0,a.jsx)("h2",{className:"text-center font-bold text-h2 mb-6",children:"판매 재개"}),(0,a.jsxs)("div",{className:"text-subtitle text-gray-900 mb-8 text-center",children:[(0,a.jsx)("p",{children:"판매를 재개하시겠습니까?"}),(0,a.jsx)("p",{children:"이제 마이페이지와 스토어에서 보여집니다."})]}),(0,a.jsx)(p.z,{text:"확인",color:"black",onClick:W})]})})]});return b?(0,a.jsxs)("div",{children:[(0,a.jsx)(i.Z,{title:"내 상품 관리",action:(0,a.jsx)(h(),{href:"/store/write",children:(0,a.jsxs)("a",{className:"flex items-center gap-2",children:[(0,a.jsx)(u.VR,{size:14,color:"black"}),(0,a.jsx)("strong",{children:"상품 등록"})]})})}),(0,a.jsxs)("div",{className:"px-4",children:[(0,a.jsx)(D,{}),(0,a.jsxs)("section",{className:"bg-gray-100 rounded-lg p-4 flex mb-4",children:[(0,a.jsxs)("div",{className:"flex-1 text-center flex gap-2.5 justify-center",children:[(0,a.jsx)("div",{className:"text-gray-900 font-medium",children:"총 상품 개수"}),(0,a.jsx)("div",{className:"text-gray-900 font-bold",children:(null==T?void 0:T.productCount)||0})]}),(0,a.jsx)("div",{className:"w-px bg-gray-200"}),(0,a.jsxs)("div",{className:"flex-1 text-center flex gap-2.5 justify-center",children:[(0,a.jsx)("div",{className:"text-gray-900 font-medium",children:"총 판매 횟수"}),(0,a.jsx)("div",{className:"text-gray-900 font-bold",children:(null==T?void 0:T.sellCount)||0})]})]}),(0,a.jsx)("section",{children:(0,a.jsx)("ul",{children:null==T?void 0:T.products.map(function(e,t){return(0,a.jsxs)(m.Fragment,{children:[(0,a.jsxs)("li",{className:"flex flex-col gap-3",children:[(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)("figure",{className:"rounded flex overflow-hidden aspect-[3/2] w-28 mr-4 shrink-0",children:(0,a.jsx)(C(),{src:e.image.thumbnailPath,width:e.image.thumbnailWidth,height:e.image.thumbnailHeight})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-gray-600 text-caption",children:(0,k.vc)(e.createDate)}),(0,a.jsx)(h(),{href:"/store/view/".concat(e.id),children:(0,a.jsx)("a",{className:"line-clamp-1 text-gray-900 font-bold text-body2",children:e.title})}),(0,a.jsxs)("div",{className:"flex text-body3 text-gray-900 gap-1",children:[(0,a.jsx)(u.ep,{}),(0,a.jsx)("span",{className:"font-medium",children:(Number(e.reviewScore)||0).toFixed(1)}),(0,a.jsxs)("span",{className:"text-gray-600",children:["(",e.reviewCount,")"]})]}),(0,a.jsxs)("div",{className:"flex text-caption text-gray-900 gap-1 items-center",children:[(0,a.jsxs)("span",{children:[(0,y.XY)(e.price),"원"]}),(0,a.jsx)("span",{className:"w-px bg-gray-200 h-3"}),(0,a.jsxs)("span",{children:["판매 수수료 ",(0,y.XY)(.115*e.price),"원"]}),(0,a.jsx)("span",{className:"w-px bg-gray-200 h-3"}),(0,a.jsxs)("span",{children:["판매 ",e.sellCount,"회"]})]})]})]}),(0,a.jsxs)("div",{className:"flex gap-3",children:[(0,a.jsx)(p.z,{text:"수정하기",onClick:function(){return I(e)},className:"py-2"}),(0,a.jsx)(p.z,{text:"판매 중단",onClick:function(){return Z(e)},className:"py-2"})]})]}),t+1<10&&(0,a.jsx)("hr",{className:"my-3"})]},e.id)})})})]}),K]}):(0,a.jsxs)("div",{className:"max-w-screen-xl mx-auto py-16 flex w-full",children:[(0,a.jsx)(o.Z,{}),(0,a.jsxs)("div",{className:"flex-1 ml-6",children:[(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("h1",{className:"text-2xl font-bold mb-4",children:"내 상품 관리"}),(0,a.jsx)(h(),{href:"/store/write",children:(0,a.jsxs)("a",{className:"flex items-center gap-2 ml-auto",children:[(0,a.jsx)(u.VR,{size:14,color:"black"}),(0,a.jsx)("strong",{children:"상품 등록"})]})})]}),(0,a.jsx)("hr",{className:"border-black mb-4"}),(0,a.jsx)(D,{}),(0,a.jsxs)("section",{className:"bg-gray-100 rounded-lg p-4 flex mb-4",children:[(0,a.jsxs)("div",{className:"flex-1 text-center flex flex-col gap-1",children:[(0,a.jsx)("div",{className:"text-gray-900 font-medium",children:"총 상품 개수"}),(0,a.jsx)("div",{className:"text-gray-900 font-bold",children:(null==T?void 0:T.productC
1ount)||0})]}),(0,a.jsx)("div",{className:"w-px bg-gray-200"}),(0,a.jsxs)("div",{className:"flex-1 text-center flex flex-col gap-1",children:[(0,a.jsx)("div",{className:"text-gray-900 font-medium",children:"총 판매 횟수"}),(0,a.jsx)("div",{className:"text-gray-900 font-bold",children:(null==T?void 0:T.sellCount)||0})]})]}),(0,a.jsx)(f.Z,{columns:[{header:"상품 게시일",key:"createDate",wrapFn:function(e){return v()(e).format("YYYY.MM.DD")},width:100},{header:"상태",key:"status",wrapFn:function(e){return y.d[e]},width:100},{header:"상품",key:"3",width:280,render:function(e){return(0,a.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,a.jsx)("figure",{className:"flex w-16 rounded overflow-hidden aspect-[3/2] shrink-0",children:(0,a.jsx)(C(),{src:e.image.thumbnailPath,width:e.image.thumbnailWidth,height:e.image.thumbnailHeight})}),(0,a.jsx)(h(),{href:"/store/view/".concat(e.id),children:(0,a.jsx)("a",{className:"text-gray-900 text-body2 line-clamp-2 whitespace-pre-wrap",children:e.title})})]})}},{header:"리뷰",key:"4",render:function(e){return(0,a.jsxs)("div",{className:"flex text-body2 gap-1",children:[(0,a.jsx)(u.ep,{}),(0,a.jsx)("span",{className:"font-medium",children:(Number(e.reviewScore)||0).toFixed(1)}),(0,a.jsxs)("span",{className:"text-gray-500",children:["(",e.reviewCount,")"]})]})},width:100},{header:"판매 금액",key:"price",wrapFn:y.XY,width:100},{header:"판매 횟수",key:"sellCount",width:100},],actions:[{text:"수정하기",onPress:I},{textRender:Y,onPress:Z},],data:(null==T?void 0:T.products)||[]})]}),K]})},S=!0;t.default=E}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=53233)}),_N_E=e.O()}]);

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.