PageSourceSearch

https://unica.expert/_nuxt/B1zCqkW6.js

js unica.expert collected 2026-09-24 15:03:24 UTC 4,910 bytes, 1 lines download raw bytes

1import{c as m,d as M}from"./Cmfh_U3a.js";import{M as L}from"./DVmxrtf3.js";import{k as C,c as b,d as y,$ as o,a0 as S,a1 as x,u as t,a7 as l,a6 as e,a5 as n,a2 as p,F as B,a8 as D,R as F}from"./IE-DFLPS.js";const j={key:0,class:"mt-4"},O={class:"mb-4"},V={class:"ml-5"},T={key:0,class:"mb-4"},E={class:"ml-5"},H={class:"mb-4"},K={class:"ml-5"},N={key:0},Z={key:1},I={key:2},R={key:3},U=C({__name:"OrderDetail",props:{isModalVisible:{},orderDetail:{},closeModal:{type:Function}},setup(f){const r=b(!1),i=b(null),v=f;return y(()=>v.isModalVisible,d=>{r.value=d},{immediate:!0}),y(()=>v.orderDetail,d=>{i.value=d},{immediate:!0}),(d,s)=>{const w=L;return o(),S(w,{visible:t(r),"onUpdate:visible":s[0]||(s[0]=u=>F(r)?r.value=u:null),footer:null,width:500,title:"Chi tiết đơn hàng",onCancel:v.closeModal},{default:x(()=>{var u,c,h,_,g,k;return[t(i)?(o(),l("div",j,[e("div",O,[s[1]||(s[1]=e("div",{class:"flex items-center gap-1"},[e("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M10.666 12L14.666 8L10.666 4",stroke:"#1782FB","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M5.33398 4L1.33398 8L5.33398 12",stroke:"#1782FB","stroke-linecap":"round","stroke-linejoin":"round"})]),e("span",{class:"text-sm font-semibold"}," Mã đơn hàng "),e("div")],-1)),e("div",V,n(t(i).order_code),1)]),(u=t(i))!=null&&u.address?(o(),l("div",T,[s[2]||(s[2]=e("div",{class:"flex items-center gap-1"},[e("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M14 6.66602C14 11.3327 8 15.3327 8 15.3327C8 15.3327 2 11.3327 2 6.66602C2 5.07472 2.63214 3.54859 3.75736 2.42337C4.88258 1.29816 6.4087 0.666016 8 0.666016C9.5913 0.666016 11.1174 1.29816 12.2426 2.42337C13.3679 3.54859 14 5.07472 14 6.66602Z",stroke:"#1782FB","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M8 8.66602C9.10457 8.66602 10 7.77059 10 6.66602C10 5.56145 9.10457 4.66602 8 4.66602C6.89543 4.66602 6 5.56145 6 6.66602C6 7.77059 6.89543 8.66602 8 8.66602Z",stroke:"#1782FB","stroke-linecap":"round","stroke-linejoin":"round"})]),e("span",{class:"text-sm font-semibold"}," Địa chỉ nhận hàng ")],-1)),e("div",E,n([(c=t(i).address)==null?void 0:c.address_detail,(h=t(i).wardDetail)==null?void 0:h.name,(_=t(i).districtDetail)==null?void 0:_.name,(g=t(i).cityDetail)==null?void 0:g.name].filter(Boolean).join(", ")),1)])):p("",!0),e("div",H,[s[7]||(s[7]=e("div",{class:"flex items-center gap-1"},[e("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M14 5.33398V14.0007H2V5.33398",stroke:"#1782FB","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M15.3327 2H0.666016V5.33333H15.3327V2Z",stroke:"#1782FB","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M6.66602 8H9.33268",stroke:"#1782FB","stroke-linecap":"round","stroke-linejoin":"round"})]),e("span",{class:"text-sm font-semibold"}," Sản pẩm "),e("div")],-1)),e("div",K,[t(i).products?(o(),l("div",N,[(o(!0),l(B,null,D(t(i).products,a=>(o(),l("div",{key:a.id,class:""},[e("div",null,n(a.name),1),e("div",null," Loại: "+n(t(i).type?t(m).get(t(i).type):t(i).course_id?"Khóa học":t(i).event_subscribe_id?"Sự kiện":"Membership"),1),e("div",null,"SL: "+n(a.buy_quantity),1),e("div",null,"Đơn giá: "+n(a.buy_price.toLocaleString())+"đ",1),e("div",null,"Thành tiền: "+n(a.buy_price.toLocaleString())+"đ",1)]))),128))])):t(i).eventDetails?(o(),l("div",Z,[e("div",null,n(t(i).eventDetails.name),1),e("div",null," Loại: "+n(t(i).type?t(m).get(t(i).type):t(i).course_id?"Khóa học":t(i).event_subscribe_id?"Sự kiện":"Membership"),1),s[3]||(s[3]=e("div",null,"SL: 1",-1)),e("div",null,"Đơn giá: "+n(t(i).total_amount.toLocaleString())+"đ",1),e("div",null,"Thành tiền: "+n(t(i).total_amount.toLocaleString())+"đ",1)])):t(i).courseDetails?(o(),l("div",I,[e("div",null,n((k=t(i).courseDetails)==null?void 0:k.title),1),e("div",null," Loại: "+n(t(i).type?t(m).get(t(i).type):t(i).course_id?"Khóa học":t(i).event_subscribe_id?"Sự kiện":"Membership"),1),s[4]||(s[4]=e("div",null,"SL: 1",-1)),e("div",null,"Đơn giá: "+n(t(i).total_amount.toLocaleStr
1ing())+"đ",1),e("div",null,"Thành tiền: "+n(t(i).total_amount.toLocaleString())+"đ",1)])):t(i).type==t(M).JOIN_COMMUNITY_FEE?(o(),l("div",R,[s[5]||(s[5]=e("div",null," Membership ",-1)),e("div",null," Loại: "+n(t(i).type?t(m).get(t(i).type):t(i).course_id?"Khóa học":t(i).event_subscribe_id?"Sự kiện":"Membership"),1),s[6]||(s[6]=e("div",null,"SL: 1",-1)),e("div",null,"Đơn giá: "+n(t(i).total_amount.toLocaleString())+"đ",1),e("div",null,"Thành tiền: "+n(t(i).total_amount.toLocaleString())+"đ",1)])):p("",!0)])])])):p("",!0)]}),_:1},8,["visible","onCancel"])}}}),$=Object.assign(U,{__name:"CommunityOrderDetail"});export{$ as default};

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.