PageSourceSearch

https://chromaworks.co.kr/build/assets/OrderConfirmPageDesktop-3908fb05.js

js chromaworks.co.kr collected 2026-09-24 14:25:21 UTC 9,934 bytes, 2 lines download raw bytes

1import{u as S,f as _,U as T,o as q,H as V,m as x,z as p,p as t,t as e,n as i,y as A,w as v,I as R,F as z,r as E,R as I,l as D,X as F,k as u,a9 as g,G as B}from"./entry-client-6684a004.js";import{u as Y}from"./useOrder-cdd6ded7.js";import{P as G}from"./PaymentAPI-75a51a44.js";import{_ as H}from"./CartProductItem-2526b4db.js";import{O as L}from"./OrderStepBar-2099cac4.js";import{t as U}from"./naverPurchaseConversion-000bea3a.js";import"./OrderCartItem-79974c84.js";import"./useCart-05f18b4e.js";import"./CustomFragranceLabel-3d4c5a99.js";import"./chevron-right-28cb68f4.js";(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},f=new Error().stack;f&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[f]="58e97a60-8a07-472f-85c0-2847a2c822b2",d._sentryDebugIdIdentifier="sentry-dbid-58e97a60-8a07-472f-85c0-2847a2c822b2")}catch{}})();const W={class:"flex flex-col items-center max-w-screen-lg mx-auto"},X={class:"flex flex-col"},J={class:"min-w-full flex justify-start mb-3"},K={class:"ev-heading-1 py-8"},Q={class:"w-full flex flex-row mb-11"},Z={class:"flex flex-col gap-4 text-justify text-stone-700 text-xl font-normal leading-tight"},tt={key:0},st={class:"w-full flex gap-2"},et={class:"flex flex-row items-center mr-2 ml-auto"},ot={class:"text-stone-700 text-base font-normal leading-none mr-2"},nt={class:"text-stone-700 text-base font-semibold leading-none"},it={class:"flex flex-row justify-center items-center"},at={class:"justify-start items-end gap-1 inline-flex"},lt={class:"text-stone-700 text-xl font-medium leading-tight"},dt={class:"justify-start items-start gap-4 inline-flex px-5 mb-4"},rt={class:"grow shrink basis-0 justify-start items-start gap-1 flex"},ct={class:"w-[110px] text-stone-700 text-lg font-semibold leading-none"},_t={class:"grow shrink basis-0 text-stone-700 text-lg font-normal leading-none"},ut={class:"grow shrink basis-0 justify-start items-start gap-1 flex"},ft={class:"w-[110px] text-stone-700 text-lg font-semibold leading-none"},mt={class:"grow shrink basis-0 text-stone-700 text-lg font-normal leading-none"},gt={class:"justify-start items-start gap-4 inline-flex px-5 mb-4"},xt={class:"grow shrink basis-0 justify-start items-start gap-1 flex"},pt={class:"w-[110px] text-stone-700 text-lg font-semibold leading-none"},vt={class:"grow shrink basis-0 text-stone-700 text-lg font-normal leading-none"},ht={class:"grow shrink basis-0 justify-start items-start gap-1 flex"},bt={class:"w-[110px] text-stone-700 text-lg font-semibold leading-none"},yt={class:"grow shrink basis-0 text-stone-700 text-lg font-normal leading-none"},wt={class:"justify-start items-start gap-4 inline-flex px-5"},kt={class:"grow shrink basis-0 justify-start items-start gap-1 flex"},$t={class:"w-[110px] text-stone-700 text-lg font-semibold leading-none"},jt={class:"grow shrink basis-0 text-stone-700 text-lg font-normal leading-none"},It={class:"grow shrink basis-0 justify-start items-start gap-1 flex"},Dt={class:"w-[110px] text-stone-700 text-lg font-semibold leading-none"},Bt={class:"grow shrink basis-0 text-stone-700 text-lg font-normal leading-none"},Pt={class:"pb-8"},Ct={key:0,class:"flex w-full flex-col gap-2"},Mt={class:"justify-start items-end gap-1 inline-flex"},Nt={class:"text-stone-700 text-xl font-medium leading-tight"},Ot={class:"justify-start items-start gap-4 inline-flex px-5 mb-4"},St={class:"grow shrink basis-0 justify-start items-start gap-1 flex"},Tt={class:"w-[110px] text-stone-700 text-lg font-semibold leading-none"},qt={class:"grow shrink basis-0 text-stone-700 text-lg font-normal leading-none"},Vt={class:"grow shrink basis-0 justify-start items-start gap-1 flex"},At={class:"w-[110px] text-stone-700 text-lg font-semibold leading-none"},Rt={class:"grow shrink basis-0 text-stone-700 text-lg font-normal leading-none"},zt={class:"grow shrink basis-0 justify-start items-start gap-1 flex"},Et={class:"w-[110px] text-stone-700 text-lg font-semibold leading-none"},Ft={class:"grow shrink basis-0 text-stone-700 text-lg font-normal leading-none"},Yt={class:"justify-start items-start gap-4 inline-flex px-5 mb-4"},Gt={class:"grow shrink basis-0 justify-start items-start gap-1 flex"},Ht={class:"w-[110px] text-stone-700 text-lg font-semibold leading-none"},Lt={class:"grow shrink basis-0 text-stone-700 text-lg font-normal leading-none"},Ut={class:"grow shrink basis-0 justify-start items-start gap-1 flex"},Wt={class:"w-[110px] text-stone-700 text-lg font-semibold leading-none"},Xt={class:"grow shrink basis-0 text-stone-700 text-lg font-normal leading-none"},Jt={class:"justify-start items-start gap-4 inline-flex px-5 mb-4"},Kt={class:"grow shrink basis-0 justify-start items-start gap-1 flex"},Qt={class:"w-[110px] text-stone-700 text-lg font-semibold leading-none"},Zt={class:"grow shrink basis-0 text-stone-700 text-lg font-normal leading-none"},ts={class:"grow shrink basis-0 justify-start items-start gap-1 flex"},ss={class:"w-[110px] text-stone-700 text-lg font-semibold leading-none"},es={class:"grow shrink basis-0 text-stone-700 text-lg font-normal leading-none"},os={class:"justify-start items-start gap-4 inline-flex px-5 mb-4"},ns={class:"grow shrink basis-0 justify-start items-start gap-1 flex"},is={class:"w-[110px] text-stone-700 text-lg font-semibold leading-none"},as={class:"grow shrink basis-0 text-stone-700 text-lg font-normal leading-none"},ps={__name:"OrderConfirmPageDesktop",props:{orderId:{type:null,default:null}},setup(d){const f=S(),a=Y(),h=_(()=>{var s;return((s=a.getModel)==null?void 0:s.items)||[]}),o=_(()=>a.getModel||{});
1function P(s,n){if(!s)return 0;let m=0;for(let c=0;c<s.length;c++)m+=n(s[c]);return m}function r(s){return Number(s||0)}const b=_(()=>Math.round(P(h.value,function(s){return s.ct_is_son?0:r(s.discount_amount)*r(s.ct_qty)})*100)/100),C=_(()=>r(o.value.od_sellprice)+b.value),M=_(()=>b.value+r(o.value.od_dc_amount)),N=_(()=>r(o.value.od_send_cost)+r(o.value.od_exdelivery)),y=d;async function w(){if(!(o.value.paid_amount>0))try{await new G({...o.value,client_payment_method:k.query.pay==="tosspay"?"TOSSPAY":null}).doPayment()}catch(s){F(s.message)}}const k=T();async function $(){await a.show(y.orderId,k.query),await U(o.value),await w()}return q(async()=>{await $()}),V(()=>y.orderId,async()=>{await $()}),(s,n)=>{var m,c,j;return u(),x("div",W,[p(L,{step:"payment"}),t("div",X,[t("div",J,[t("div",K,e(s.$t("주문해 주셔서 감사합니다. 이제, 결제를 시작할께요.")),1)]),t("div",Q,[t("div",Z,[t("p",null,e(s.$t("CW와 함께하는 DIY 홈 프래그런스 세상에 오신 것을 환영해요."))+" 👏",1),i(a).model.od_settle_case==="무통장"?(u(),x("p",tt,e(s.$t('무통장 입금시에는 입금자명이 "{name}" 이어야 합니다. 고객님의 은행을 통해 입금해 주세요.',{name:o.value.od_deposit_name||o.value.od_name})),1)):A("",!0)])]),t("div",st,[t("div",et,[t("span",ot,e(s.$t("주문번호")),1),t("span",nt,e((m=i(a).getModel)==null?void 0:m.od_id),1)]),p(R,{class:"text-sm border-active p-[6px] px-3",onClick:n[0]||(n[0]=()=>{var l;i(f).push({name:"OrderShow",query:{od_id:(l=i(a).getModel)==null?void 0:l.od_id}})})},{default:v(()=>[t("div",it,e(s.$t("상세보기")),1)]),_:1})]),(u(!0),x(z,null,E(h.value,(l,O)=>(u(),D(H,{key:l.ct_id,idx:O,item:l,"currency-type":o.value.od_currency,"is-ordered":""},null,8,["idx","item","currency-type"]))),128)),n[3]||(n[3]=t("div",{class:"w-full mb-[52px]"},null,-1)),t("div",at,[t("div",lt,e(s.$t("결제정보 확인")),1)]),n[4]||(n[4]=t("div",{class:"w-full min-h-[1px] bg-active mt-[5px] mb-5"},null,-1)),t("div",dt,[t("div",rt,[t("div",ct,e(s.$t("결제수단")),1),t("div",_t,e(s.$t(o.value.od_settle_case)),1)]),t("div",ut,[t("div",ft,e(s.$t("상품합계")),1),t("div",mt,e(i(g)(C.value,o.value.od_currency)),1)])]),t("div",gt,[t("div",xt,[t("div",pt,e(s.$t("배송비")),1),t("div",vt,e(i(g)(N.value,o.value.od_currency)),1)]),t("div",ht,[t("div",bt,e(s.$t("할인금액")),1),t("div",yt,e(i(g)(M.value,o.value.od_currency)),1)])]),t("div",wt,[t("div",kt,[t("div",$t,e(s.$t("적립금사용")),1),t("div",jt,e(i(g)(o.value.od_receipt_point,o.value.od_currency)),1)]),t("div",It,[t("div",Dt,e(s.$t("결제할 금액")),1),t("div",Bt,e(i(g)(i(a).model.due_to_pay,o.value.od_currency)),1)])]),n[5]||(n[5]=t("div",{class:"w-full min-h-[1px] bg-active mt-5 mb-10"},null,-1)),t("div",Pt,[o.value.due_to_pay>0&&i(a).model.od_settle_case!=="무통장"?(u(),x("div",Ct,[p(I,{primary:"",class:"w-full",onClick:n[1]||(n[1]=()=>{w()})},{default:v(()=>[B(e(s.$t("결제하기")),1)]),_:1})])):(u(),D(I,{key:1,primary:"",class:"max-w-lg self-end",onClick:n[2]||(n[2]=()=>{var l;i(f).push({name:"OrderShow",query:{od_id:(l=i(a).getModel)==null?void 0:l.od_id}})})},{default:v(()=>[B(e(s.$t("주문내역 상세보기")),1)]),_:1}))]),t("div",Mt,[t("div",Nt,e(s.$t("배송정보 확인")),1)]),n[6]||(n[6]=t("div",{class:"w-full min-h-[1px] bg-active mt-[5px] mb-5"},null,-1)),t("div",Ot,[t("div",St,[t("div",Tt,e(s.$t("수령자명")),1),t("div",qt,e(o.value.od_b_name),1)]),t("div",Vt,[t("div",At,e(s.$t("전화번호")),1),t("div",Rt,e(o.value.od_b_tel),1)]),t("div",zt,[t("div",Et,e(s.$t("휴대폰")),1),t("div",Ft,e(o.value.od_b_hp),1)])]),t("div",Yt,[t("div",Gt,[t("div",Ht,e(s.$t("택배운송사")),1),t("div",Lt,e((j=(c=o.value)==null?void 0:c.delivery)==null?void 0:j.dl_company),1)]),t("div",Ut,[t("div",Wt,e(s.$t("우편번호")),1),t("div",Xt,e(o.value.od_b_zipcode),1)])]),t("div",Jt,[t("div",Kt,[t("div",Qt,e(s.$t("주소")),1),t("div",Zt,e(o.value.od_b_addr1)+" "+e(o.value.od_b_addr2),1)]),t("div",ts,[t("div",ss,e(s.$t("배송메세지")),1),t("div",es,e(o.value.od_delivery_memo),1)])]),t("div",os,[t("div",ns,[t("div",is,e(s.$t("주문메세지")),1),t("div",as,e(o.value.od_memo),1)])]),n[7]||(n[7]=t("div",{class:"w-full min-h-[1px] bg-active mt-5 mb-[120px]"},null,-1))])])}}};export{ps as default};
2//# sourceMappingURL=OrderConfirmPageDesktop-3908fb05.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.