PageSourceSearch

https://chromaworks.co.kr/build/assets/MyPageCustomFragranceShow-cca5dc45.js

js chromaworks.co.kr collected 2026-09-24 14:24:17 UTC 7,263 bytes, 2 lines download raw bytes

1import{u as H,az as O,f,o as R,H as X,ah as J,m as o,z as w,p as t,t as s,n as l,w as m,I as y,l as F,ad as K,y as i,F as N,r as I,a9 as Q,c as L,X as k,k as a,G as v}from"./entry-client-6684a004.js";import{_ as U}from"./MyDashboard-d9f53d53.js";import{u as W}from"./useMyCustomFragrance-3968d028.js";(function(){try{var p=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},h=new Error().stack;h&&(p._sentryDebugIds=p._sentryDebugIds||{},p._sentryDebugIds[h]="e97f9dd3-9b83-475e-8cc9-b1f6ef7d107a",p._sentryDebugIdIdentifier="sentry-dbid-e97f9dd3-9b83-475e-8cc9-b1f6ef7d107a")}catch{}})();const Y={class:"px-4 pt-6 pb-12 flex-col flex gap-4 w-full"},Z={class:"flex flex-col gap-3 space-y-2"},S={class:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between"},ee={class:"ev-heading-2"},se={class:"flex gap-2 flex-wrap text-sm"},te={class:"rounded bg-stone-100 p-4 flex flex-col gap-3"},ae={class:"flex flex-col gap-2"},oe={class:"text-stone-700 text-xl font-semibold leading-tight"},ne={class:"flex flex-wrap gap-3 text-sm text-stone-600 leading-snug"},le={key:0},de={key:1},ce={key:2},re={key:3},ie={key:4},ue={class:"grid gap-4 lg:grid-cols-2"},_e={key:0,class:"rounded border border-stone-200 bg-white p-4 flex flex-col gap-3"},fe={key:0},pe={key:0},xe={key:1,class:"ml-4"},ge={class:"flex flex-col gap-4"},ve={class:"rounded border border-stone-200 bg-white p-4 flex flex-col gap-3"},he={class:"text-stone-700 text-sm font-semibold"},me={key:0,class:"flex flex-col gap-2 text-sm text-stone-700"},ye={class:"flex justify-between items-center gap-3"},be={class:"text-stone-500"},we={class:"flex justify-between gap-3"},ke={class:"text-stone-500"},Ce={key:1,class:"text-sm text-stone-500"},Ne={class:"rounded border border-stone-200 bg-white p-4 flex flex-col gap-3"},Ie={class:"text-stone-700 text-sm font-semibold"},je={key:0,class:"flex flex-col gap-2 text-sm text-stone-700"},De={class:"flex gap-3 justify-between"},Me={class:"text-stone-500 self-center"},$e={class:"flex gap-2 items-center justify-center"},Be={key:0,class:"block text-xs text-stone-500"},Pe={key:0,class:"flex flex-col gap-1"},Fe={class:"flex justify-between gap-3"},Le={class:"text-stone-500"},qe={key:1,class:"text-sm text-stone-500"},Ve={class:"rounded border border-stone-200 bg-white p-4 flex flex-col gap-3"},Ae={class:"text-stone-700 text-sm font-semibold"},Te={key:0,class:"flex flex-col gap-2"},ze={class:"flex flex-wrap items-center gap-2 text-sm text-stone-700"},Ee={class:"font-medium"},Ge={key:0,class:"text-xs text-stone-500 border border-stone-300 rounded-full px-2 py-0.5"},He=["href"],Oe={key:1,class:"text-sm text-stone-500"},Ke={__name:"MyPageCustomFragranceShow",props:{id:{type:[Number,String],required:!0}},setup(p){const h=p,j=H(),C=W(),{t:n}=O(),d=f(()=>{var e;return((e=C.getModel)==null?void 0:e.data)||{}}),x=f(()=>{var e;return((e=d.value)==null?void 0:e.product)||null}),D=f(()=>{var e;return((e=x.value)==null?void 0:e.price)||null}),b=f(()=>{var e;return((e=d.value)==null?void 0:e.order)||null}),M=f(()=>{var e;return((e=d.value)==null?void 0:e.files)||[]}),q=f(()=>C.isLoading),$=f(()=>{var e;return!!((e=d.value)!=null&&e.cart_payload)}),B=f(()=>{var e;return((e=d.value)==null?void 0:e.status)||""});function V(e){if(e==null||e==="")return"-";const c=Number(e);return Number.isNaN(c)?e:Q(c)}async function P(e){e&&await C.show(e)}async function A(){var e,c;try{await L.post(`/api/v1/my-custom-fragrances/${d.value.id}/request-product`),await k(n("재주문 요청이 접수되었어요. 담당자가 확인 후 연락드릴게요."))}catch(u){const g=((c=(e=u==null?void 0:u.response)==null?void 0:e.data)==null?void 0:c.message)||n("재주문 요청 중 오류가 발생했어요.");await k(g)}}async function T(){var e,c;if($.value)try{await L.post("/api/v1/my-cart",{...d.value.cart_payload,qty:1}),await k(n("장바구니에 담았습니다"))}catch(u){const g=((c=(e=u==null?void 0:u.response)==null?void 0:e.data)==null?void 0:c.message)||n("장바구니에 담는 중 오류가 발생했어요.");await k(g)}}function z(){j.push({name:"MyPageCustomFragrance"})}return R(async()=>{await P(h.id)}),X(()=>h.id,async e=>{e&&await P(e)}),(e,c)=>{var g;const u=J("loading");return a(),o("div",Y,[w(U),t("div",Z,[t("div",S,[t("span",ee,s(l(n)("커스텀 프래그런스 현황")),1),t("div",se,[w(y,{onClick:z},{default:m(()=>[v(s(l(n)("목록으로")),1)]),_:1}),$.value?(a(),F(y,{key:0,primary:"",onClick:T},{default:m(()=>[v(s(l(n)("장바구니 담기")),1)]),_:1})):(a(),F(y,{key:1,primary:"",onClick:A},{default:m(()=>[v(s(l(n)("재주문 요청하기")),1)]),_:1}))])]),K((a(),o("div",te,[t("div",ae,[t("div",oe,s(d.value.fragrance_name||l(n)("이름 미정")),1),t("div",ne,[d.value.id?(a(),o("span",le,"#"+s(d.value.id),1)):i("",!0),B.value?(a(),o("span",de,s(B.value),1)):i("",!0),d.value.created_at?(a(),o("span",ce,s(l(n)("생성"))+": "+s(d.value.created_at),1)):i("",!0),d.value.updated_at?(a(),o("span",re,s(l(n)("업데이트"))+": "+s(d.value.updated_at),1)):i("",!0),d.value.paid_at?(a(),o("span",ie,s(l(n)("결제"))+": "+s(d.value.paid_at),1)):i("",!0)])])])),[[u,q.value]]),t("div",ue,[(g=d.value.description)!=null&&g.length?(a(),o("ul",_e,[(a(!0),o(N,null,I(d.value.description,(r,E)=>(a(),o("li",{key:E,class:"mb-2"}
1,[t("div",null,s(r.step),1),Array.isArray(r.a)?(a(),o("ul",fe,[(a(!0),o(N,null,I(r.a.filter(_=>_),(_,G)=>(a(),o("li",{key:G,class:"ml-4"},[_!=null&&_.label?(a(),o("span",pe,s(_.label)+" : ",1)):i("",!0),v(s(_.value||_),1)]))),128))])):(a(),o("div",xe,s(r.a),1))]))),128))])):i("",!0),t("div",ge,[t("div",ve,[t("div",he,s(l(n)("주문 정보")),1),b.value?(a(),o("div",me,[t("div",ye,[t("span",be,s(l(n)("주문번호")),1),w(y,{class:"text-xs",onClick:c[0]||(c[0]=()=>{e.$router.push({name:"MyPageOrderShow",params:{orderId:b.value.od_id}})})},{default:m(()=>[v(s(b.value.od_id),1)]),_:1})]),t("div",we,[t("span",ke,s(l(n)("주문 상태")),1),t("span",null,s(b.value.status||"-"),1)])])):(a(),o("div",Ce,s(l(n)("연결된 주문이 없어요")),1))]),t("div",Ne,[t("div",Ie,s(l(n)("제품 정보")),1),x.value?(a(),o("div",je,[t("div",De,[t("span",Me,s(l(n)("상품명")),1),t("span",$e,[t("span",null,s(x.value.name||"-"),1),x.value.name_en?(a(),o("span",Be,s(x.value.name_en),1)):i("",!0),w(y,{onClick:c[1]||(c[1]=()=>{e.$router.push({name:"Product",params:{productId:x.value.it_id}})})},{default:m(()=>[v(s(e.$t("상품 보기")),1)]),_:1})])]),D.value?(a(),o("div",Pe,[t("div",Fe,[t("span",Le,s(l(n)("단가")),1),t("span",null,s(V(D.value.retail)),1)])])):i("",!0)])):(a(),o("div",qe,s(l(n)("연결된 제품 정보가 없어요")),1))]),t("div",Ve,[t("div",Ae,s(l(n)("첨부 파일")),1),M.value.length?(a(),o("ul",Te,[(a(!0),o(N,null,I(M.value,r=>(a(),o("li",{key:r.id,class:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2 rounded border border-stone-200 px-3 py-2"},[t("div",ze,[t("span",Ee,s(r.name),1),r.tag?(a(),o("span",Ge,s(r.tag),1)):i("",!0)]),t("a",{href:r.url,target:"_blank",rel:"noopener",class:"text-sm text-stone-600 underline"},s(l(n)("다운로드")),9,He)]))),128))])):(a(),o("div",Oe,s(l(n)("등록된 첨부 파일이 없어요")),1))])])])])])}}};export{Ke as default};
2//# sourceMappingURL=MyPageCustomFragranceShow-cca5dc45.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.