PageSourceSearch

https://www.myartwork.co.kr/_next/static/chunks/pages/artwork/offerToBuy-26f96fee9e4a98e0.js

js myartwork.co.kr collected 2026-10-08 00:27:18 UTC 8,824 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[297],{6109:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/artwork/offerToBuy",function(){return t(7029)}])},8176:function(e,r,t){"use strict";var s=t(9473),o=t(895),c=t(3711),a=t(4229),n=t(3266),l=t(1163);r.Z=()=>{let e=((0,s.v9)(e=>e.auth.user)||{}).userId,r=(0,l.useRouter)(),{handleLoginModal:t}=(0,n.Z)();return{getArtworkList:(e,r)=>{let{page:t,limit:s,isStorage:n,isPremium:l,mainCategory:i,sortName:d,possessorName:u,searchType:m,ge:h,th:p,co:f,si:g,sh:x,pl:v}=e,j={offset:(t-1)*s,limit:s};n&&(j.isStorage=n),l&&(j.isPremium=l),i&&(j.mainCategory=i),d&&(j.sortName=d),u&&(j.possessorName=u),m&&(j.searchType=m),h&&(j.ge=h),p&&(j.th=p),f&&(j.co=f),g&&(j.si=g),x&&(j.sh=x),v&&(j.pl=v),a.Z.findAll(j).then(e=>{if(e.result===o.Ry.OK){let t=e.data;delete j.sortName,r&&r(j,t)}else console.error(e.message)}).catch(c.Z.repoErrFunc)},getArtwork:(e,t)=>{a.Z.findOne(e).then(e=>{if(e.result===o.Ry.OK){let r=e.data;t&&t(r)}else 20006===e.errorCode?(alert("정보를 찾을 수 없습니다."),r.back()):console.error(e.message)}).catch(c.Z.repoErrFunc)},getOrderArtwork:(e,t)=>{a.Z.orderFindOne(e).then(e=>{if(e.result===o.Ry.OK){let r=e.data;t&&t(r)}else 20006===e.errorCode?(alert("정보를 찾을 수 없습니다."),r.back()):console.error(e.message)}).catch(c.Z.repoErrFunc)},saveFavoriteArtwork:function(r,s){let{artworkId:n,favoriteArtworkId:l}=s,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!e)return t(r,{isRedirect:!1}),!1;a.Z.saveFavorite({artworkId:n,favoriteArtworkId:l}).then(e=>{e.result===o.Ry.OK?i.forEach(e=>e()):alert("오류가 발생했습니다. 잠시 후에 다시 시도해주세요")}).catch(c.Z.repoErrFunc)}}}},7433:function(e,r,t){"use strict";var s=t(7294),o=t(895);r.Z=e=>{let[r,t]=(0,s.useState)(e);return[r,e=>{let{type:s,name:c,value:a,checked:n}=e.target;t({...r,[c]:a}),"checkbox"===s&&t({...r,[c]:n?o.Ry.YES_NUMBER:o.Ry.NO_NUMBER})}]}},7029:function(e,r,t){"use strict";t.r(r);var s=t(5893),o=t(7294),c=t(4534),a=t(1163),n=t(9473),l=t(895),i=t(3711),d=t(8674),u=t(8176),m=t(7433);r.default=()=>{let e=(0,n.v9)(e=>e.auth.user)||{},{getOrderArtwork:r}=(0,u.Z)(),[t,h]=(0,m.Z)({presentedAmount:0,deliveryRecipient:"",deliveryContact:""}),p=(0,a.useRouter)(),f=p.query.artworkId,[g,x]=(0,o.useState)({}),[v,j]=(0,o.useState)(0),[y,N]=(0,o.useState)([]),[R,b]=(0,o.useState)(!1),Z=()=>{r(f,e=>{x(e.list[0]),j(e.offerToBuyCount),w(e.list[0].priceBuy)})},w=e=>{let r=.6*e,s=10*e/100;N([r,r+s,r+2*s,.9*e]),t.presentedAmount=r};return(0,o.useEffect)(()=>{f&&Z()},[f]),(0,s.jsx)(c.Z,{children:(0,s.jsxs)("main",{className:"offer-to-buy container",children:[(0,s.jsx)("h1",{children:"구매가 제시"}),(0,s.jsxs)("div",{className:"pre-wrap",children:[(0,s.jsxs)("div",{className:"border",children:[(0,s.jsx)("h2",{children:"주문작품정보"}),(0,s.jsxs)("div",{className:"d-flex-b gap",children:[(0,s.jsx)("div",{className:"pre-img",children:(0,s.jsx)("img",{src:g.imageUrl,alt:"img"})}),(0,s.jsxs)("div",{className:"d-flex-b info",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"pre-title",children:g.artworkName}),(0,s.jsxs)("p",{className:"pre-text",children:[g.isNoArtist===l.Ry.YES_NUMBER?"작가미상":g.artistName,", ".concat(g.size,"cm, ").concat(g.material,", ").concat(g.productionYear)]})]}),(0,s.jsxs)("div",{className:"d-flex-e",children:[(0,s.jsx)("p",{children:"즉시구매"}),(0,s.jsxs)("p",{className:"price",children:[i.Z.tsReplace(g.priceBuy),"원"]})]})]})]})]}),(0,s.jsxs)("div",{className:"border want",children:[(0,s.jsxs)("div",{className:"d-flex-b",children:[(0,s.jsx)("p",{children:"구매 희망가"}),(0,s.jsx)("select",{name:"presentedAmount",id:"price",onChange:h,children:y.map((e,r)=>(0,s.jsxs)("option",{value:e,children:[i.Z.tsReplace(e),"원"]},r))})]}),(0,s.jsxs)("div",{className:"d-flex-b",children:[(0,s.jsx)("p",{children:"최근 구매가제시 이력"}),(0,s.jsxs)("p",{children:[v,"건"]})]})]}),(0,s.jsxs)("div",{className:"phone",children:[(0,s.jsx)("h2",{children:"연락처 정보"}),(0,s.jsx)("p",{children:"성함, 연락처를 남겨주시면 이후 절차에 대해 개별연락드립니다."}),(0,s.jsx)("input",{type:"text",name:"deliveryRecipient",id:"name",placeholder:"성함",autoComplete:"off",value:t.deliveryRecipient,onChange:h}),(0,s.jsx)("input",{type:"text",name:"deliveryContact",id:"phone",placeholder:"연락처 (' - '포함)",autoComplete:"off",value:t.deliveryContact,onChange:h})]}),(0,s.jsxs)("div",{className:"caution",children:[(0,s.jsx)("h2",{children:"구매가 제시 시 유의사항"}
1),(0,s.jsx)("p",{className:"active",children:"1. 제시한 가격은 작가에게 전달되는 금액입니다. 신중한 제시 부탁드립니다."}),(0,s.jsxs)("p",{children:["2. 낙찰여부는 구매가 제시 후 ",(0,s.jsx)("b",{children:"7일 이내"}),"에 안내받으실 수 있습니다."]}),(0,s.jsx)("p",{children:"3. 제시한 가격으로 낙찰될 경우, 개별연락을 통해 결제를 진행합니다."}),(0,s.jsx)("p",{children:"4. 제시한 가격으로 낙찰되지 않을 경우, 기존 구매가 제시 거래는 취소되며 다시 제시할 수 있습니다."})]}),(0,s.jsxs)("div",{className:"d-flex-c",children:[(0,s.jsx)("p",{children:"유의사항을 확인했습니다."}),R?(0,s.jsx)("img",{src:"/assets/images/chk-black.png",alt:"img",onClick:()=>b(!R)}):(0,s.jsx)("img",{src:"/assets/images/chk-white.png",alt:"img",onClick:()=>b(!R)})]}),(0,s.jsx)("div",{className:"pre-btn",onClick:()=>{let{presentedAmount:r,deliveryRecipient:s,deliveryContact:o}=t;return e.userId?s&&o?R?!!window.confirm("구매가 제시 신청을 하시겠습니까?")&&void d.Z.offerToBuyAdd({artworkId:f,presentedAmount:r,deliveryRecipient:s,deliveryContact:o}).then(e=>{if(e.result===l.Ry.ERROR){if(20011===e.errorCode)return alert("작품 항목 중 렌탈 또는 판매 완료된 작품이 있습니다."),!1;alert("오류가 발생했습니다. 잠시 후에 다시 시도해주세요")}e.result===l.Ry.OK?p.push({pathname:"/order-complete",query:{title:encodeURIComponent("구매가 제시가 완료되었습니다."),content:encodeURIComponent("낙찰 여부는 7일 이내에 개별연락 드립니다.")}}):alert("오류가 발생했습니다. 잠시 후에 다시 시도해주세요")}).catch(i.Z.repoErrFunc):(alert("유의사항을 체크해주세요."),!1):(alert("성함 또는 연락처가 입력되지 않았습니다."),!1):(alert("로그인 이후 이용이 가능합니다."),!1)},children:"구매가 제시"})]})]})})}},4229:function(e,r,t){"use strict";var s=t(115),o=t(1231);r.Z={findAll(e){try{return s.Z.get({url:"".concat(o.ar,"/list"),submitData:e},e=>e,e=>{console.error(e.message)})}catch(e){console.error(e.message)}},findOne(e){try{return s.Z.get({url:"".concat(o.ar,"/").concat(e),submitData:{}},e=>e,e=>{console.error(e.message)})}catch(e){console.error(e.message)}},orderFindOne(e){try{return s.Z.get({url:"".concat(o.ar,"/order/").concat(e),submitData:{}},e=>e,e=>{console.error(e.message)})}catch(e){console.error(e.message)}},saveFavorite(e){try{return s.Z.post({url:"".concat(o.ar,"/favorite"),submitData:e},e=>e,e=>{console.error(e.message)})}catch(e){console.error(e.message)}},getFavoriteList(){try{return s.Z.get({url:"".concat(o.ar,"/favorite/list"),submitData:{}},e=>e,e=>{console.error(e.message)})}catch(e){console.error(e.message)}},getAiRecommendArtworkList(e){try{return s.Z.get({url:"".concat(o.ar,"/ai-recommend/").concat(e),submitData:{}},e=>e,e=>{console.error(e.message)})}catch(e){console.error(e.message)}}}},8674:function(e,r,t){"use strict";var s=t(115),o=t(1231);r.Z={buyAdd(e){try{return s.Z.post({url:"".concat(o.sd),submitData:e},e=>e,e=>{console.error(e.message)})}catch(e){console.error(e.message)}},offerToBuyAdd(e){try{return s.Z.post({url:"".concat(o.a0),submitData:e},e=>e,e=>{console.error(e.message)})}catch(e){console.error(e.message)}}}},3711:function(e,r){"use strict";r.Z={scrollToTop:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;window.scrollTo({top:e,left:0,behavior:"smooth"})},qsReplace:(e,r)=>{delete r.offset,e.replace({query:{...r}},void 0,{shallow:!0})},repoErrFunc:e=>{console.error(e),alert("오류가 발생했습니다. 잠시 후 다시 시도해 주세요")},tsReplace:e=>{let r;return e&&(r=e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")),r},fileDownload:(e,r)=>{confirm("파일을 다운로드 하시겠습니까?")&&fetch(e,{method:"GET"}).then(e=>e.blob()).then(e=>{let t=window.URL.createObjectURL(e),s=document.createElement("a");s.href=t,s.download="msl_".concat(r),document.body.appendChild(s),s.click(),setTimeout(e=>{window.URL.revokeObjectURL(t)},1e4),s.remove()}).catch(e=>{console.error(e)})}}}},function(e){e.O(0,[664,534,888,774,179],function(){return e(e.s=6109)}),_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.