@yeez-tech/user-my-order 0.1.7 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,33 +1,125 @@
1
1
  import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, normalizeClass as l, normalizeStyle as u, openBlock as d, ref as f, renderList as p, renderSlot as m, toDisplayString as h, unref as g, watch as _, withCtx as v, withModifiers as y } from "vue";
2
- import { ChevronDown as b, ChevronLeft as x, ChevronRight as S, ChevronUp as ee, Download as C, FileText as w, Folder as T, MessageSquare as E, Pause as D, Play as O } from "lucide-vue-next";
3
- import { Modal as k, Tooltip as A } from "@arco-design/web-vue";
2
+ import { ChevronDown as b, ChevronLeft as x, ChevronRight as S, ChevronUp as ee, Download as C, FileText as w, Folder as T, MessageSquare as te, Pause as ne, Play as re } from "lucide-vue-next";
3
+ import { Modal as ie, Tooltip as E } from "@arco-design/web-vue";
4
+ //#region src/types/order.ts
5
+ function D(e) {
6
+ let t = e?.metadata;
7
+ if (!t) return !1;
8
+ if (typeof t.isControllableDelivery == "boolean") return t.isControllableDelivery;
9
+ let n = t.securityLevel;
10
+ return n === "SL_SECURED" || n === "SL_ADJUSTING";
11
+ }
12
+ function O(e, t) {
13
+ return !t?.enabled || !t.src ? !1 : typeof t.isControllable == "function" ? t.isControllable(e) : D(e);
14
+ }
15
+ var k = [
16
+ {
17
+ id: "idle",
18
+ label: "下载数据",
19
+ role: "idle"
20
+ },
21
+ {
22
+ id: "preparing",
23
+ label: "资源加载中...",
24
+ role: "in_progress",
25
+ barTone: "blue"
26
+ },
27
+ {
28
+ id: "downloading",
29
+ label: "下载中...",
30
+ role: "in_progress",
31
+ barTone: "blue"
32
+ },
33
+ {
34
+ id: "paused",
35
+ label: "下载已暂停",
36
+ role: "paused",
37
+ barTone: "blue"
38
+ },
39
+ {
40
+ id: "decrypting",
41
+ label: "解密中...",
42
+ role: "in_progress",
43
+ barTone: "green"
44
+ },
45
+ {
46
+ id: "completed",
47
+ label: "下载完成",
48
+ role: "completed"
49
+ }
50
+ ], A = {
51
+ PENDING: 0,
52
+ PASSED: 1,
53
+ REJECTED: 2,
54
+ DELETED: 3
55
+ }, j = {
56
+ canReview: !1,
57
+ status: null
58
+ };
59
+ function M(e, t, n) {
60
+ return e ? e[`${t}-${n}`] ?? e[n] ?? j : j;
61
+ }
62
+ function N(e, t = k) {
63
+ return t.find((t) => t.id === e) || (e === "paused" ? {
64
+ id: e,
65
+ label: e,
66
+ role: "paused",
67
+ barTone: "blue"
68
+ } : e === "completed" ? {
69
+ id: e,
70
+ label: e,
71
+ role: "completed"
72
+ } : e === "idle" ? {
73
+ id: e,
74
+ label: e,
75
+ role: "idle"
76
+ } : {
77
+ id: e,
78
+ label: e,
79
+ role: "in_progress",
80
+ barTone: "blue"
81
+ });
82
+ }
83
+ //#endregion
4
84
  //#region src/assets/icons/refund-apply.svg?url
5
- var j = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_469_5060)'%3e%3cpath%20d='M9.05029%207.46143C9.22046%207.46143%209.38407%207.52958%209.50439%207.6499C9.62457%207.77013%209.69179%207.93305%209.69189%208.10303V12.2085C9.69313%2012.2935%209.67768%2012.3786%209.646%2012.4575C9.61431%2012.5363%209.56696%2012.608%209.50732%2012.6685C9.44765%2012.729%209.37675%2012.7773%209.29834%2012.8101C9.21989%2012.8429%209.13532%2012.8599%209.05029%2012.8599C8.96591%2012.8598%208.88212%2012.8434%208.8042%2012.811C8.72618%2012.7786%208.65579%2012.7303%208.59619%2012.6704C8.5366%2012.6105%208.48957%2012.5396%208.45752%2012.4614C8.42549%2012.3833%208.40831%2012.2998%208.40869%2012.2153V8.10303C8.40879%207.93301%208.47694%207.77013%208.59717%207.6499C8.7174%207.52967%208.88027%207.46153%209.05029%207.46143Z'%20fill='%234749AD'%20stroke='white'%20stroke-width='0.2'/%3e%3cpath%20d='M11.915%205.14648C11.9989%205.15632%2012.0805%205.18244%2012.1543%205.22363C12.2279%205.26481%2012.2924%205.32052%2012.3447%205.38672C12.3971%205.45299%2012.436%205.5291%2012.459%205.61035C12.4819%205.69154%2012.4893%205.77656%2012.4795%205.86035C12.4696%205.94418%2012.4425%206.02494%2012.4014%206.09863C12.3602%206.17233%2012.3055%206.23769%2012.2393%206.29004L9.0293%208.82715L6.04785%206.28516C5.91816%206.17487%205.83795%206.01735%205.82422%205.84766C5.81053%205.67801%205.86436%205.50954%205.97461%205.37988C6.08488%205.25032%206.24252%205.16997%206.41211%205.15625C6.58171%205.1426%206.75026%205.19642%206.87988%205.30664L9%207.10742L9.0625%207.16016L9.12695%207.10938L11.4414%205.28027C11.5077%205.22796%2011.5838%205.18902%2011.665%205.16602C11.7462%205.14305%2011.8312%205.13666%2011.915%205.14648Z'%20fill='%234749AD'%20stroke='white'%20stroke-width='0.2'/%3e%3cpath%20d='M6.83301%2010.0825H11.2002L11.3193%2010.1021C11.4363%2010.1329%2011.5433%2010.196%2011.627%2010.2856C11.7384%2010.4051%2011.7998%2010.5627%2011.7998%2010.7261C11.7998%2010.8894%2011.7384%2011.047%2011.627%2011.1665C11.5156%2011.2858%2011.363%2011.3582%2011.2002%2011.3696H6.83301C6.74472%2011.3758%206.65569%2011.364%206.57227%2011.3345C6.48896%2011.3049%206.4123%2011.2581%206.34766%2011.1978C6.28308%2011.1374%206.23152%2011.0639%206.19629%2010.9829C6.16113%2010.9019%206.14258%2010.8144%206.14258%2010.7261C6.14258%2010.6377%206.16111%2010.5503%206.19629%2010.4692C6.23153%2010.3882%206.28306%2010.3147%206.34766%2010.2544C6.41231%2010.1941%206.48894%2010.1472%206.57227%2010.1177C6.61405%2010.1029%206.65748%2010.0924%206.70117%2010.0864L6.83301%2010.0825ZM6.83984%208.23193H11.2354C11.3196%208.23193%2011.4036%208.24852%2011.4814%208.28076C11.5592%208.313%2011.6299%208.36088%2011.6895%208.42041C11.7489%208.47994%2011.7959%208.55068%2011.8281%208.62842C11.8603%208.70614%2011.8769%208.78941%2011.877%208.87354C11.877%208.95779%2011.8604%209.04179%2011.8281%209.11963C11.7959%209.19734%2011.7489%209.26813%2011.6895%209.32764C11.63%209.3871%2011.5591%209.43407%2011.4814%209.46631C11.4036%209.49855%2011.3196%209.51514%2011.2354%209.51514H6.83984C6.75567%209.51513%206.6725%209.4985%206.59473%209.46631C6.51699%209.43411%206.44624%209.3871%206.38672%209.32764C6.32717%209.26809%206.27931%209.19743%206.24707%209.11963C6.21483%209.04179%206.19824%208.95779%206.19824%208.87354C6.19829%208.78943%206.21489%208.70612%206.24707%208.62842C6.27931%208.55058%206.32714%208.47999%206.38672%208.42041C6.44627%208.3609%206.51695%208.31298%206.59473%208.28076C6.67242%208.24864%206.75577%208.23195%206.83984%208.23193Z'%20fill='%234749AD'%20stroke='white'%20stroke-width='0.2'/%3e%3cpath%20d='M5.15723%201.81152C6.75958%200.954924%208.60233%200.658391%2010.3926%200.96875C12.183%201.2792%2013.8186%202.17916%2015.0391%203.52539C16.2596%204.87162%2016.9949%206.58723%2017.1289%208.39941C17.2628%2010.2115%2016.7875%2012.0163%2015.7783%2013.5273C15.6716%2013.6776%2015.5104%2013.7808%2015.3291%2013.8145C15.1471%2013.8482%2014.9586%2013.8099%2014.8047%2013.707C14.6508%2013.6041%2014.5433%2013.4448%2014.5049%2013.2637C14.4667%2013.0831%2014.5004%2012.8945%2014.5986%2012.7383C15.4738%2011.4275%2015.8611%209.8513%2015.6934%208.28418C15.5255%206.71683%2014.8128%205.25794%2013.6797%204.16211C12.5466%203.06633%2011.0652%202.40243%209.49316%202.28711C7.92107%202.17178%206.35804%202.61251%205.07715%203.53125C3.79658%204.44991%202.87914%205.78869%202.48438%207.31445C2.08961%208.84054%202.24227%2010.4572%202.91699%2011.8818C3.59167%2013.3063%204.7451%2014.4489%206.17578%2015.1104C7.6066%2015.7718%209.22472%2015.9099%2010.7471%2015.501H10.748C10.8382%2015.4757%2010.9324%2015.4684%2011.0254%2015.4795C11.1183%2015.4906%2011.2084%2015.5196%2011.29%2015.5654C11.3717%2015.6113%2011.4431%2015.6735%2011.501%2015.7471C11.5589%2015.8207%2011.6017%2015.9049%2011.627%2015.9951C11.6522%2016.0853%2011.6596%2016.1795%2011.6484%2016.2725C11.6373%2016.3654%2011.6084%2016.4555%2011.5625%2016.5371C11.5166%2016.6188%2011.4545%2016.6902%2011.3809%2016.748C11.3072%2016.8059%2011.223%2016.8487%2011.1328%2016.874C10.437%2017.0586%209.71991%2017.152%209%2017.1514C7.18299%2017.1513%205.41783%2016.5446%203.98535%2015.4268C2.55291%2014.3089%201.5354%2012.7439%201.09375%2010.9814C0.652154%209.21879%200.811584%207.35855%201.54785%205.69727C2.28413%204.03603%203.55478%202.66824%205.15723%201.81152Z'%20fill='%234749AD'%20stroke='white'%20stroke-width='0.2'/%3e%3cpath%20d='M13.8989%2011.48C13.9954%2011.4801%2014.0916%2011.5003%2014.1802%2011.5386C14.2686%2011.5768%2014.3484%2011.6326%2014.4146%2011.7026C14.4808%2011.7728%2014.5318%2011.8561%2014.5649%2011.9468L14.5669%2011.9517L15.1177%2013.2368L15.1577%2013.3286L15.2495%2013.2896L16.5347%2012.7388C16.6204%2012.7021%2016.7129%2012.6822%2016.8062%2012.6812C16.8993%2012.6802%2016.9921%2012.6982%2017.0786%2012.7329C17.165%2012.7676%2017.2435%2012.8192%2017.3101%2012.8843C17.3768%2012.9495%2017.4306%2013.027%2017.4673%2013.1128C17.5039%2013.1985%2017.5229%2013.2911%2017.5239%2013.3843C17.5249%2013.4775%2017.5078%2013.5703%2017.4731%2013.6567C17.4385%2013.7431%2017.3868%2013.8216%2017.3218%2013.8882C17.2892%2013.9215%2017.2536%2013.9518%2017.2153%2013.978L17.0933%2014.0454L15.0806%2014.9126C14.9905%2014.9502%2014.894%2014.9694%2014.7964%2014.9692H14.7944C14.654%2014.9717%2014.5159%2014.9323%2014.3979%2014.856C14.28%2014.7796%2014.1875%2014.6698%2014.1323%2014.5405L13.2642%2012.5103L13.2622%2012.5054L13.2114%2012.3706C13.1992%2012.3241%2013.1915%2012.2763%2013.189%2012.228C13.1839%2012.1317%2013.1986%2012.0353%2013.2319%2011.9448C13.2653%2011.8544%2013.317%2011.7716%2013.3833%2011.7017C13.4498%2011.6317%2013.53%2011.5756%2013.6187%2011.5376C13.7072%2011.4997%2013.8026%2011.4799%2013.8989%2011.48Z'%20fill='%234749AD'%20stroke='white'%20stroke-width='0.2'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_469_5060'%3e%3crect%20width='18'%20height='18'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", te = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.6302%205.86255L15.0705%202.09605C14.9904%201.90146%2014.8541%201.73514%2014.6791%201.61829C14.504%201.50144%2014.2982%201.43935%2014.0877%201.43995H4.00771C3.57661%201.43995%203.1914%201.69734%203.0258%202.09605L1.4643%205.86255C1.4103%205.99215%201.3833%206.12895%201.3833%206.27024V15.6392C1.3833%2016.2252%201.8603%2016.7022%202.44621%2016.7022H15.6483C16.2342%2016.7022%2016.7112%2016.2252%2016.7112%2015.6392V6.26936C16.7112%206.12896%2016.6842%205.99215%2016.6302%205.86257V5.86255ZM4.0203%202.51995H14.0778L15.3828%205.66995H2.71351L4.0203%202.51995ZM2.4633%2015.6212L2.46151%206.74995H15.6312V15.6212H2.4633Z'%20fill='%234749AD'/%3e%3cpath%20d='M10.3598%2013.9039H6.05957V12.8239H10.3598C10.9853%2012.8239%2011.4947%2012.3145%2011.4947%2011.689C11.4947%2011.0635%2010.9853%2010.5541%2010.3598%2010.5541H6.16307V9.60455L8.02426%207.76855L8.78297%208.53716L7.83347%209.47407H10.3598C11.5811%209.47407%2012.5747%2010.4677%2012.5747%2011.689C12.5747%2012.9103%2011.5811%2013.9039%2010.3598%2013.9039Z'%20fill='%234749AD'/%3e%3c/svg%3e", M = { class: "prepaid-orders space-y-6 bg-[#ffffff] font-[PingFangSC]" }, ne = {
85
+ var ae = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_469_5060)'%3e%3cpath%20d='M9.05029%207.46143C9.22046%207.46143%209.38407%207.52958%209.50439%207.6499C9.62457%207.77013%209.69179%207.93305%209.69189%208.10303V12.2085C9.69313%2012.2935%209.67768%2012.3786%209.646%2012.4575C9.61431%2012.5363%209.56696%2012.608%209.50732%2012.6685C9.44765%2012.729%209.37675%2012.7773%209.29834%2012.8101C9.21989%2012.8429%209.13532%2012.8599%209.05029%2012.8599C8.96591%2012.8598%208.88212%2012.8434%208.8042%2012.811C8.72618%2012.7786%208.65579%2012.7303%208.59619%2012.6704C8.5366%2012.6105%208.48957%2012.5396%208.45752%2012.4614C8.42549%2012.3833%208.40831%2012.2998%208.40869%2012.2153V8.10303C8.40879%207.93301%208.47694%207.77013%208.59717%207.6499C8.7174%207.52967%208.88027%207.46153%209.05029%207.46143Z'%20fill='%234749AD'%20stroke='white'%20stroke-width='0.2'/%3e%3cpath%20d='M11.915%205.14648C11.9989%205.15632%2012.0805%205.18244%2012.1543%205.22363C12.2279%205.26481%2012.2924%205.32052%2012.3447%205.38672C12.3971%205.45299%2012.436%205.5291%2012.459%205.61035C12.4819%205.69154%2012.4893%205.77656%2012.4795%205.86035C12.4696%205.94418%2012.4425%206.02494%2012.4014%206.09863C12.3602%206.17233%2012.3055%206.23769%2012.2393%206.29004L9.0293%208.82715L6.04785%206.28516C5.91816%206.17487%205.83795%206.01735%205.82422%205.84766C5.81053%205.67801%205.86436%205.50954%205.97461%205.37988C6.08488%205.25032%206.24252%205.16997%206.41211%205.15625C6.58171%205.1426%206.75026%205.19642%206.87988%205.30664L9%207.10742L9.0625%207.16016L9.12695%207.10938L11.4414%205.28027C11.5077%205.22796%2011.5838%205.18902%2011.665%205.16602C11.7462%205.14305%2011.8312%205.13666%2011.915%205.14648Z'%20fill='%234749AD'%20stroke='white'%20stroke-width='0.2'/%3e%3cpath%20d='M6.83301%2010.0825H11.2002L11.3193%2010.1021C11.4363%2010.1329%2011.5433%2010.196%2011.627%2010.2856C11.7384%2010.4051%2011.7998%2010.5627%2011.7998%2010.7261C11.7998%2010.8894%2011.7384%2011.047%2011.627%2011.1665C11.5156%2011.2858%2011.363%2011.3582%2011.2002%2011.3696H6.83301C6.74472%2011.3758%206.65569%2011.364%206.57227%2011.3345C6.48896%2011.3049%206.4123%2011.2581%206.34766%2011.1978C6.28308%2011.1374%206.23152%2011.0639%206.19629%2010.9829C6.16113%2010.9019%206.14258%2010.8144%206.14258%2010.7261C6.14258%2010.6377%206.16111%2010.5503%206.19629%2010.4692C6.23153%2010.3882%206.28306%2010.3147%206.34766%2010.2544C6.41231%2010.1941%206.48894%2010.1472%206.57227%2010.1177C6.61405%2010.1029%206.65748%2010.0924%206.70117%2010.0864L6.83301%2010.0825ZM6.83984%208.23193H11.2354C11.3196%208.23193%2011.4036%208.24852%2011.4814%208.28076C11.5592%208.313%2011.6299%208.36088%2011.6895%208.42041C11.7489%208.47994%2011.7959%208.55068%2011.8281%208.62842C11.8603%208.70614%2011.8769%208.78941%2011.877%208.87354C11.877%208.95779%2011.8604%209.04179%2011.8281%209.11963C11.7959%209.19734%2011.7489%209.26813%2011.6895%209.32764C11.63%209.3871%2011.5591%209.43407%2011.4814%209.46631C11.4036%209.49855%2011.3196%209.51514%2011.2354%209.51514H6.83984C6.75567%209.51513%206.6725%209.4985%206.59473%209.46631C6.51699%209.43411%206.44624%209.3871%206.38672%209.32764C6.32717%209.26809%206.27931%209.19743%206.24707%209.11963C6.21483%209.04179%206.19824%208.95779%206.19824%208.87354C6.19829%208.78943%206.21489%208.70612%206.24707%208.62842C6.27931%208.55058%206.32714%208.47999%206.38672%208.42041C6.44627%208.3609%206.51695%208.31298%206.59473%208.28076C6.67242%208.24864%206.75577%208.23195%206.83984%208.23193Z'%20fill='%234749AD'%20stroke='white'%20stroke-width='0.2'/%3e%3cpath%20d='M5.15723%201.81152C6.75958%200.954924%208.60233%200.658391%2010.3926%200.96875C12.183%201.2792%2013.8186%202.17916%2015.0391%203.52539C16.2596%204.87162%2016.9949%206.58723%2017.1289%208.39941C17.2628%2010.2115%2016.7875%2012.0163%2015.7783%2013.5273C15.6716%2013.6776%2015.5104%2013.7808%2015.3291%2013.8145C15.1471%2013.8482%2014.9586%2013.8099%2014.8047%2013.707C14.6508%2013.6041%2014.5433%2013.4448%2014.5049%2013.2637C14.4667%2013.0831%2014.5004%2012.8945%2014.5986%2012.7383C15.4738%2011.4275%2015.8611%209.8513%2015.6934%208.28418C15.5255%206.71683%2014.8128%205.25794%2013.6797%204.16211C12.5466%203.06633%2011.0652%202.40243%209.49316%202.28711C7.92107%202.17178%206.35804%202.61251%205.07715%203.53125C3.79658%204.44991%202.87914%205.78869%202.48438%207.31445C2.08961%208.84054%202.24227%2010.4572%202.91699%2011.8818C3.59167%2013.3063%204.7451%2014.4489%206.17578%2015.1104C7.6066%2015.7718%209.22472%2015.9099%2010.7471%2015.501H10.748C10.8382%2015.4757%2010.9324%2015.4684%2011.0254%2015.4795C11.1183%2015.4906%2011.2084%2015.5196%2011.29%2015.5654C11.3717%2015.6113%2011.4431%2015.6735%2011.501%2015.7471C11.5589%2015.8207%2011.6017%2015.9049%2011.627%2015.9951C11.6522%2016.0853%2011.6596%2016.1795%2011.6484%2016.2725C11.6373%2016.3654%2011.6084%2016.4555%2011.5625%2016.5371C11.5166%2016.6188%2011.4545%2016.6902%2011.3809%2016.748C11.3072%2016.8059%2011.223%2016.8487%2011.1328%2016.874C10.437%2017.0586%209.71991%2017.152%209%2017.1514C7.18299%2017.1513%205.41783%2016.5446%203.98535%2015.4268C2.55291%2014.3089%201.5354%2012.7439%201.09375%2010.9814C0.652154%209.21879%200.811584%207.35855%201.54785%205.69727C2.28413%204.03603%203.55478%202.66824%205.15723%201.81152Z'%20fill='%234749AD'%20stroke='white'%20stroke-width='0.2'/%3e%3cpath%20d='M13.8989%2011.48C13.9954%2011.4801%2014.0916%2011.5003%2014.1802%2011.5386C14.2686%2011.5768%2014.3484%2011.6326%2014.4146%2011.7026C14.4808%2011.7728%2014.5318%2011.8561%2014.5649%2011.9468L14.5669%2011.9517L15.1177%2013.2368L15.1577%2013.3286L15.2495%2013.2896L16.5347%2012.7388C16.6204%2012.7021%2016.7129%2012.6822%2016.8062%2012.6812C16.8993%2012.6802%2016.9921%2012.6982%2017.0786%2012.7329C17.165%2012.7676%2017.2435%2012.8192%2017.3101%2012.8843C17.3768%2012.9495%2017.4306%2013.027%2017.4673%2013.1128C17.5039%2013.1985%2017.5229%2013.2911%2017.5239%2013.3843C17.5249%2013.4775%2017.5078%2013.5703%2017.4731%2013.6567C17.4385%2013.7431%2017.3868%2013.8216%2017.3218%2013.8882C17.2892%2013.9215%2017.2536%2013.9518%2017.2153%2013.978L17.0933%2014.0454L15.0806%2014.9126C14.9905%2014.9502%2014.894%2014.9694%2014.7964%2014.9692H14.7944C14.654%2014.9717%2014.5159%2014.9323%2014.3979%2014.856C14.28%2014.7796%2014.1875%2014.6698%2014.1323%2014.5405L13.2642%2012.5103L13.2622%2012.5054L13.2114%2012.3706C13.1992%2012.3241%2013.1915%2012.2763%2013.189%2012.228C13.1839%2012.1317%2013.1986%2012.0353%2013.2319%2011.9448C13.2653%2011.8544%2013.317%2011.7716%2013.3833%2011.7017C13.4498%2011.6317%2013.53%2011.5756%2013.6187%2011.5376C13.7072%2011.4997%2013.8026%2011.4799%2013.8989%2011.48Z'%20fill='%234749AD'%20stroke='white'%20stroke-width='0.2'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_469_5060'%3e%3crect%20width='18'%20height='18'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", oe = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.6302%205.86255L15.0705%202.09605C14.9904%201.90146%2014.8541%201.73514%2014.6791%201.61829C14.504%201.50144%2014.2982%201.43935%2014.0877%201.43995H4.00771C3.57661%201.43995%203.1914%201.69734%203.0258%202.09605L1.4643%205.86255C1.4103%205.99215%201.3833%206.12895%201.3833%206.27024V15.6392C1.3833%2016.2252%201.8603%2016.7022%202.44621%2016.7022H15.6483C16.2342%2016.7022%2016.7112%2016.2252%2016.7112%2015.6392V6.26936C16.7112%206.12896%2016.6842%205.99215%2016.6302%205.86257V5.86255ZM4.0203%202.51995H14.0778L15.3828%205.66995H2.71351L4.0203%202.51995ZM2.4633%2015.6212L2.46151%206.74995H15.6312V15.6212H2.4633Z'%20fill='%234749AD'/%3e%3cpath%20d='M10.3598%2013.9039H6.05957V12.8239H10.3598C10.9853%2012.8239%2011.4947%2012.3145%2011.4947%2011.689C11.4947%2011.0635%2010.9853%2010.5541%2010.3598%2010.5541H6.16307V9.60455L8.02426%207.76855L8.78297%208.53716L7.83347%209.47407H10.3598C11.5811%209.47407%2012.5747%2010.4677%2012.5747%2011.689C12.5747%2012.9103%2011.5811%2013.9039%2010.3598%2013.9039Z'%20fill='%234749AD'/%3e%3c/svg%3e", P = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='9'%20cy='9'%20r='6.25'%20stroke='%234749AD'%20stroke-width='1.5'%20fill='none'/%3e%3cpath%20d='M5.6%205.6L12.4%2012.4'%20stroke='%234749AD'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e", se = { class: "prepaid-orders space-y-6 bg-[#ffffff] font-[PingFangSC]" }, ce = {
6
86
  key: 0,
7
87
  class: "space-y-6"
8
- }, re = ["onClick"], ie = { class: "flex flex-col md:flex-row md:items-center md:justify-between gap-2" }, ae = { class: "flex flex-wrap items-center gap-4" }, oe = { class: "text-[12px] font-medium text-[#262626]" }, se = { class: "text-[12px] font-medium text-[#262626]" }, ce = {
88
+ }, le = ["onClick"], ue = { class: "flex flex-col md:flex-row md:items-center md:justify-between gap-2" }, de = { class: "flex flex-wrap items-center gap-4" }, F = { class: "text-[12px] font-medium text-[#262626]" }, fe = { class: "text-[12px] font-medium text-[#262626]" }, pe = {
9
89
  key: 0,
10
90
  class: "text-[12px] font-medium text-[#262626]"
11
- }, N = ["onClick"], P = { class: "flex items-center gap-4" }, F = { class: "text-[12px] font-medium text-[#262626]" }, I = { class: "relative" }, L = ["onClick"], R = { class: "flex items-start gap-4" }, z = { class: "w-12 h-12 rounded overflow-hidden flex-shrink-0" }, B = ["src", "alt"], V = { class: "flex-1 min-w-0" }, H = { class: "flex flex-col md:flex-row md:items-center md:justify-between gap-2" }, le = { class: "min-w-0 max-w-[400px]" }, ue = ["title"], de = { class: "flex items-center gap-4" }, fe = {
91
+ }, me = ["onClick"], he = { class: "flex items-center gap-4" }, ge = { class: "text-[12px] font-medium text-[#262626]" }, _e = { class: "relative" }, ve = ["onClick"], ye = { class: "flex items-start gap-4" }, be = { class: "w-12 h-12 rounded overflow-hidden flex-shrink-0" }, xe = ["src", "alt"], Se = { class: "flex-1 min-w-0" }, Ce = { class: "flex flex-col md:flex-row md:items-center md:justify-between gap-2" }, I = { class: "min-w-0 max-w-[480px] flex items-center" }, L = ["title"], R = ["src", "alt"], we = { class: "flex items-center gap-4" }, Te = {
12
92
  key: 0,
13
93
  class: "flex-1 max-w-[500px] min-w-[300px]"
14
- }, pe = { class: "flex flex-col gap-1" }, me = { class: "flex items-center justify-between" }, he = { class: "text-xs font-medium text-[#262626]" }, ge = { class: "text-xs font-medium text-[#262626]" }, _e = { class: "w-full h-2 bg-slate-100 rounded-full overflow-hidden relative" }, ve = { class: "absolute inset-0 flex items-center justify-center pointer-events-none" }, ye = { class: "text-[10px] font-medium text-slate-600" }, be = { class: "text-[10px] font-medium text-white" }, xe = { class: "flex items-center justify-between" }, Se = { class: "text-xs font-medium text-[#262626]" }, Ce = {
94
+ }, z = { class: "flex flex-col gap-1" }, B = { class: "flex items-center justify-between" }, Ee = { class: "text-xs font-medium text-[#262626]" }, De = {
15
95
  key: 0,
16
96
  class: "text-xs font-medium text-[#262626]"
17
- }, we = { class: "flex items-center gap-2" }, Te = {
97
+ }, Oe = { class: "w-full h-2 bg-slate-100 rounded-full overflow-hidden relative" }, ke = { class: "absolute inset-0 flex items-center justify-center pointer-events-none" }, Ae = { class: "text-[10px] font-medium text-slate-600" }, je = { class: "text-[10px] font-medium text-white" }, Me = { class: "flex items-center justify-between" }, Ne = {
98
+ key: 0,
99
+ class: "text-xs font-medium text-[#262626]"
100
+ }, Pe = {
101
+ key: 1,
102
+ class: "text-xs font-medium text-[#262626]"
103
+ }, Fe = {
104
+ key: 2,
105
+ class: "text-xs font-medium text-[#262626]"
106
+ }, Ie = { class: "flex items-center gap-2" }, Le = {
18
107
  key: 0,
19
108
  class: "flex items-center gap-2 mr-4"
20
- }, Ee = { class: "text-xs font-medium text-[#262626]" }, De = { class: "flex items-center gap-2 w-[80px] justify-end" }, Oe = ["onClick"], ke = ["onClick"], Ae = ["onClick"], je = ["src"], Me = ["onClick"], Ne = ["src"], Pe = {
109
+ }, Re = { class: "text-xs font-medium text-[#262626]" }, ze = { class: "flex items-center gap-2 justify-end" }, Be = ["onClick"], Ve = ["onClick"], He = ["src"], Ue = ["onClick"], We = ["onClick"], Ge = ["src"], Ke = ["onClick"], qe = ["src"], Je = {
110
+ key: 0,
111
+ class: "umo-review-deleted"
112
+ }, Ye = ["onClick"], Xe = ["onClick"], Ze = ["onClick"], Qe = {
21
113
  key: 0,
22
114
  class: "absolute bottom-0 left-0 right-0 h-12 bg-gradient-to-t from-[#ffffff] to-transparent pointer-events-none"
23
- }, Fe = {
115
+ }, $e = {
24
116
  key: 1,
25
117
  class: "bg-[#ffffff] p-10 rounded-[8px] shadow-sm flex flex-col items-center justify-center text-center",
26
118
  style: { border: "1px solid #E5E6E9" }
27
- }, Ie = { class: "w-16 h-16 rounded-full bg-slate-50 flex items-center justify-center text-slate-400 mb-4" }, Le = {
119
+ }, et = { class: "w-16 h-16 rounded-full bg-slate-50 flex items-center justify-center text-slate-400 mb-4" }, tt = {
28
120
  key: 2,
29
121
  class: "flex items-center justify-center gap-2 mt-6"
30
- }, Re = ["disabled"], ze = { class: "text-sm font-bold text-[#262626]" }, Be = ["disabled"], U = /* @__PURE__ */ c({
122
+ }, nt = ["disabled"], rt = { class: "text-sm font-bold text-[#262626]" }, it = ["disabled"], V = /* @__PURE__ */ c({
31
123
  __name: "PrepaidOrders",
32
124
  props: {
33
125
  orders: {},
@@ -38,9 +130,15 @@ var j = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
38
130
  isServerPagination: { type: Boolean },
39
131
  downloadStates: {},
40
132
  downloadStatusText: {},
133
+ downloadPhases: {},
41
134
  downloadButtonVisible: {},
42
135
  contactSellerButtonVisible: {},
43
- refundStates: {}
136
+ cancelDownloadButtonVisible: {},
137
+ refundStates: {},
138
+ controllableDeliveryTag: {},
139
+ afterSalesEnabled: { type: Boolean },
140
+ reviewEnabled: { type: Boolean },
141
+ reviewStates: {}
44
142
  },
45
143
  emits: [
46
144
  "page-change",
@@ -49,94 +147,121 @@ var j = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
49
147
  "download",
50
148
  "pause-download",
51
149
  "resume-download",
150
+ "cancel-download",
52
151
  "open-file",
53
152
  "contact-seller",
54
153
  "request-refund",
55
- "request-after-sales"
154
+ "request-after-sales",
155
+ "review",
156
+ "view-review",
157
+ "append-review"
56
158
  ],
57
- setup(t, { emit: c }) {
58
- let m = t, _ = c, b = (e) => e ? e.substring(0, 16) : "--", ee = (e, t) => {
59
- _("view-product", e, t);
60
- }, U = {
61
- idle: "下载数据",
62
- preparing: "资源加载中...",
63
- downloading: "下载中...",
64
- paused: "下载已暂停",
65
- decrypting: "解密中...",
66
- completed: "下载完成"
67
- }, W = (e, t) => m.downloadStates?.[`${e}-${t}`], G = (e) => m.downloadStatusText?.[e] || U[e], Ve = (e, t) => {
68
- let n = W(e, t);
159
+ setup(c, { emit: m }) {
160
+ let _ = c, b = m, ee = (e) => e ? e.substring(0, 16) : "--", D = (e, t) => {
161
+ b("view-product", e, t);
162
+ }, j = t(() => _.downloadPhases ?? k), V = (e, t) => _.downloadStates?.[`${e}-${t}`], H = (e) => N(e.status, j.value), U = (e) => H(e).role, at = (e) => {
163
+ let t = U(e);
164
+ return t === "in_progress" || t === "paused";
165
+ }, W = (e) => (H(e).barTone ?? "blue") === "green" ? "bg-green-600" : "bg-blue-600", ot = (e) => _.downloadStatusText?.[e] || N(e, j.value).label, G = (e) => typeof e.statusText == "string" && e.statusText.length > 0 ? e.statusText : ot(e.status), st = (e) => e.showBytes !== !1, ct = (e) => e.showEta !== !1, lt = (e) => typeof e.showSpeed == "boolean" ? e.showSpeed : e.status === "downloading" || U(e) === "paused", ut = (e, t) => {
166
+ let n = V(e, t);
69
167
  if (!n) return "0.00";
70
168
  let r = Number.parseFloat(n.fileSize || "0");
71
169
  return !Number.isFinite(r) || r <= 0 ? "0.00" : (n.progress * r / 100).toFixed(2);
72
- }, K = (e, t) => {
73
- let n = W(e, t);
74
- if (!n || n.status === "idle") {
75
- _("download", t);
170
+ }, dt = (e, t) => {
171
+ let n = V(e, t);
172
+ if (!n || U(n) === "idle") {
173
+ b("download", t);
76
174
  return;
77
175
  }
78
- if (n.status === "paused") {
79
- _("resume-download", t);
176
+ if (U(n) === "paused") {
177
+ b("resume-download", t);
80
178
  return;
81
179
  }
82
- if (n.status === "completed") {
83
- _("open-file", t);
180
+ if (U(n) === "completed") {
181
+ b("open-file", t);
84
182
  return;
85
183
  }
86
- _("pause-download", t);
87
- }, q = f(""), J = f(!1), Y = (e, t) => m.refundStates?.[`${e}-${t}`], He = (e) => !e.isExchange && !e.isGift, Ue = (e) => {
184
+ b("pause-download", t);
185
+ }, K = f(""), q = f(!1), J = (e, t) => _.refundStates?.[`${e}-${t}`], ft = (e) => !e.isExchange && !e.isGift, pt = (e) => {
88
186
  let t = e.status;
89
187
  return t !== "已退款" && t !== "退款中";
90
- }, We = (e, t) => {
91
- let n = `${e.id}-${t}`, r = m.downloadButtonVisible?.[n];
92
- return r === void 0 ? Ue(e) : r;
93
- }, Ge = (e, t) => {
94
- let n = `${e.id}-${t}`, r = m.contactSellerButtonVisible?.[n];
188
+ }, mt = (e, t) => {
189
+ let n = `${e.id}-${t}`, r = _.downloadButtonVisible?.[n];
190
+ return r === void 0 ? pt(e) : r;
191
+ }, ht = (e, t) => {
192
+ let n = `${e.id}-${t}`, r = _.contactSellerButtonVisible?.[n];
95
193
  return r === void 0 ? !0 : r;
96
- }, Ke = (e) => {
97
- q.value = e, J.value = !0;
98
- }, qe = () => {
99
- let e = q.value;
194
+ }, gt = (e, t) => {
195
+ let n = `${e.id}-${t}`;
196
+ if (_.cancelDownloadButtonVisible?.[n] !== !0) return !1;
197
+ let r = V(e.id, t);
198
+ if (!r) return !1;
199
+ let i = U(r);
200
+ return i === "in_progress" || i === "paused";
201
+ }, _t = (e) => {
202
+ K.value = e, q.value = !0;
203
+ }, vt = () => {
204
+ let e = K.value;
100
205
  if (!e) {
101
- X();
206
+ Y();
102
207
  return;
103
208
  }
104
- _("request-refund", e), X();
105
- }, X = () => {
106
- J.value = !1, q.value = "";
107
- }, Je = (e) => {
108
- _("request-after-sales", e);
109
- }, Z = {
209
+ b("request-refund", e), Y();
210
+ }, Y = () => {
211
+ q.value = !1, K.value = "";
212
+ }, yt = (e) => {
213
+ b("request-after-sales", e);
214
+ }, bt = (e, t) => _.afterSalesEnabled === !1 ? !1 : J(e, t) === "after_sales", X = (e, t) => M(_.reviewStates, e.id, t.id), xt = (e, t) => {
215
+ if (!_.reviewEnabled) return !1;
216
+ let n = X(e, t);
217
+ return n.canReview ? n.loaded !== !1 : !1;
218
+ }, St = (e, t) => {
219
+ let n = X(e, t);
220
+ return n.status == null && n.reviewed !== !0;
221
+ }, Ct = (e, t) => X(e, t).status === A.DELETED, wt = (e, t) => {
222
+ let n = X(e, t);
223
+ return n.canAppend == null ? n.status === A.PASSED : n.canAppend;
224
+ }, Z = (e, t) => ({
225
+ productId: t.id,
226
+ orderId: e.id,
227
+ productName: t.name
228
+ }), Tt = (e, t) => {
229
+ b("review", Z(e, t));
230
+ }, Et = (e, t) => {
231
+ b("view-review", Z(e, t));
232
+ }, Dt = (e, t) => {
233
+ b("append-review", Z(e, t));
234
+ }, Ot = {
110
235
  已付款: "#3B82F6",
111
236
  待审核: "#F59E0B",
112
237
  审核通过: "#22C55E",
113
238
  退款中: "#3B82F6",
114
239
  已退款: "#22C55E",
115
240
  交易成功: "#22C55E"
116
- }, Ye = {
241
+ }, kt = {
117
242
  已付款: "已付款",
118
243
  待审核: "待审核",
119
244
  审核通过: "审核通过",
120
245
  退款中: "退款中",
121
246
  已退款: "已退款",
122
247
  交易成功: "交易成功"
123
- }, Q = (e) => Z[e] || "#262626", $ = (e) => Ye[e] || "";
124
- return (c, f) => (d(), i(e, null, [a("section", M, [t.orders.length > 0 ? (d(), i("div", ne, [(d(!0), i(e, null, p(t.orders, (t) => (d(), i("div", {
125
- key: t.id,
248
+ }, Q = (e) => Ot[e] || "#262626", $ = (e) => kt[e] || "";
249
+ return (t, f) => (d(), i(e, null, [a("section", se, [c.orders.length > 0 ? (d(), i("div", ce, [(d(!0), i(e, null, p(c.orders, (m) => (d(), i("div", {
250
+ key: m.id,
126
251
  class: "bg-[#ffffff] rounded-[8px] shadow-sm overflow-hidden transition-all duration-300 hover:shadow-md",
127
252
  style: { border: "1px solid #E5E6E9" }
128
253
  }, [a("div", {
129
254
  class: "px-6 py-3 bg-[#ffffff] hover:bg-slate-50 cursor-pointer transition-all duration-200",
130
255
  style: { "border-bottom": "1px solid #E5E6E9" },
131
- onClick: (e) => c.$emit("view-detail", t)
132
- }, [a("div", ie, [a("div", ae, [
133
- a("h3", oe, "订单编号:" + h(t.orderNumber || t.id), 1),
134
- a("span", se, "共 " + h(t.products.length) + " 件商品", 1),
135
- t.createTime ? (d(), i("span", ce, "购买时间: " + h(b(t.createTime)), 1)) : r("", !0),
256
+ onClick: (e) => t.$emit("view-detail", m)
257
+ }, [a("div", ue, [a("div", de, [
258
+ a("h3", F, "订单编号:" + h(m.orderNumber || m.id), 1),
259
+ a("span", fe, "共 " + h(m.products.length) + " 件商品", 1),
260
+ m.createTime ? (d(), i("span", pe, "购买时间: " + h(ee(m.createTime)), 1)) : r("", !0),
136
261
  a("span", {
137
262
  class: "text-[12px] font-medium text-[#4749ad] flex items-center gap-1 hover:text-[#4749ad] transition-colors",
138
- onClick: y((e) => c.$emit("view-detail", t), ["stop"])
139
- }, [...f[3] ||= [o(" 订单详情 ", -1), a("svg", {
263
+ onClick: y((e) => t.$emit("view-detail", m), ["stop"])
264
+ }, [...f[4] ||= [o(" 订单详情 ", -1), a("svg", {
140
265
  xmlns: "http://www.w3.org/2000/svg",
141
266
  class: "h-3 w-3 text-[#4749ad]",
142
267
  fill: "none",
@@ -147,52 +272,46 @@ var j = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
147
272
  "stroke-linejoin": "round",
148
273
  "stroke-width": "2",
149
274
  d: "M9 5l7 7-7 7"
150
- })], -1)]], 8, N)
151
- ]), a("div", P, [a("p", F, "实付金额:¥" + h(t.totalAmount.toFixed(2)), 1), $(t.status) ? (d(), i("span", {
275
+ })], -1)]], 8, me)
276
+ ]), a("div", he, [a("p", ge, "实付金额:¥" + h(m.totalAmount.toFixed(2)), 1), $(m.status) ? (d(), i("span", {
152
277
  key: 0,
153
278
  class: "px-2 py-0.5 rounded-full text-[11px] font-bold min-w-[70px] text-center bg-transparent",
154
279
  style: u({
155
- color: Q(t.status),
156
- border: "1px solid " + Q(t.status)
280
+ color: Q(m.status),
281
+ border: "1px solid " + Q(m.status)
157
282
  })
158
- }, h($(t.status)), 5)) : r("", !0)])])], 8, re), a("div", I, [a("div", { class: l({ "max-h-[360px] overflow-y-auto": t.products.length > 3 }) }, [(d(!0), i(e, null, p(t.products, (o, p) => (d(), i("div", {
283
+ }, h($(m.status)), 5)) : r("", !0)])])], 8, le), a("div", _e, [a("div", { class: l({ "max-h-[360px] overflow-y-auto": m.products.length > 3 }) }, [(d(!0), i(e, null, p(m.products, (o, p) => (d(), i("div", {
159
284
  key: o.id,
160
285
  class: "px-6 py-4 hover:bg-slate-50 transition-all duration-200 hover:shadow-sm cursor-pointer",
161
- onClick: (e) => ee(t, o)
162
- }, [a("div", R, [a("div", z, [a("img", {
286
+ onClick: (e) => D(m, o)
287
+ }, [a("div", ye, [a("div", be, [a("img", {
163
288
  src: o.image,
164
289
  alt: o.name,
165
290
  class: "w-full h-full object-cover"
166
- }, null, 8, B)]), a("div", V, [a("div", H, [a("div", le, [a("p", {
167
- class: "text-sm font-bold text-[#262626] truncate hover:text-[#3F69B4] transition-colors",
291
+ }, null, 8, xe)]), a("div", Se, [a("div", Ce, [a("div", I, [a("p", {
292
+ class: "text-sm font-bold text-[#262626] truncate hover:text-[#3F69B4] transition-colors min-w-0",
168
293
  title: o.name
169
- }, h(o.name), 9, ue)]), a("div", de, [W(t.id, o.id) && [
170
- "preparing",
171
- "downloading",
172
- "paused",
173
- "decrypting"
174
- ].includes(W(t.id, o.id).status) ? (d(), i("div", fe, [a("div", pe, [
175
- a("div", me, [a("span", he, h(G(W(t.id, o.id).status)), 1), a("span", ge, h(Ve(t.id, o.id)) + " MB / " + h(W(t.id, o.id).fileSize), 1)]),
176
- a("div", _e, [
294
+ }, h(o.name), 9, L), g(O)(o, c.controllableDeliveryTag) ? (d(), i("img", {
295
+ key: 0,
296
+ class: "umo-controllable-delivery-tag",
297
+ src: c.controllableDeliveryTag.src,
298
+ alt: c.controllableDeliveryTag?.alt || "可控交付",
299
+ onClick: f[0] ||= y(() => {}, ["stop"])
300
+ }, null, 8, R)) : r("", !0)]), a("div", we, [V(m.id, o.id) && at(V(m.id, o.id)) ? (d(), i("div", Te, [a("div", z, [
301
+ a("div", B, [a("span", Ee, h(G(V(m.id, o.id))), 1), st(V(m.id, o.id)) ? (d(), i("span", De, h(ut(m.id, o.id)) + " MB / " + h(V(m.id, o.id).fileSize), 1)) : r("", !0)]),
302
+ a("div", Oe, [
177
303
  a("div", {
178
- class: l(["h-full transition-all duration-300 ease-in-out", {
179
- "bg-blue-600": [
180
- "preparing",
181
- "downloading",
182
- "paused"
183
- ].includes(W(t.id, o.id).status),
184
- "bg-green-600": W(t.id, o.id).status === "decrypting"
185
- }]),
186
- style: u({ width: W(t.id, o.id).progress + "%" })
304
+ class: l(["h-full transition-all duration-300 ease-in-out", W(V(m.id, o.id))]),
305
+ style: u({ width: V(m.id, o.id).progress + "%" })
187
306
  }, null, 6),
188
- a("div", ve, [a("span", ye, h(W(t.id, o.id).progress) + "% ", 1)]),
307
+ a("div", ke, [a("span", Ae, h(V(m.id, o.id).progress) + "% ", 1)]),
189
308
  a("div", {
190
309
  class: "absolute inset-0 flex items-center justify-center pointer-events-none overflow-hidden",
191
- style: u({ clipPath: `inset(0 ${100 - W(t.id, o.id).progress}% 0 0)` })
192
- }, [a("span", be, h(W(t.id, o.id).progress) + "% ", 1)], 4)
310
+ style: u({ clipPath: `inset(0 ${100 - V(m.id, o.id).progress}% 0 0)` })
311
+ }, [a("span", je, h(V(m.id, o.id).progress) + "% ", 1)], 4)
193
312
  ]),
194
- a("div", xe, [a("span", Se, " 预计剩余: " + h(W(t.id, o.id).estimatedTime), 1), ["downloading", "paused"].includes(W(t.id, o.id).status) ? (d(), i("span", Ce, " 下载速度: " + h(W(t.id, o.id).speed) + " MB/s ", 1)) : r("", !0)])
195
- ])])) : r("", !0), a("div", we, [W(t.id, o.id)?.status === "completed" ? (d(), i("div", Te, [f[4] ||= a("div", { class: "w-4 h-4 rounded-full bg-green-100 flex items-center justify-center" }, [a("svg", {
313
+ a("div", Me, [ct(V(m.id, o.id)) ? (d(), i("span", Ne, " 预计剩余: " + h(V(m.id, o.id).estimatedTime), 1)) : (d(), i("span", Pe)), lt(V(m.id, o.id)) ? (d(), i("span", Fe, " 下载速度: " + h(V(m.id, o.id).speed) + " MB/s ", 1)) : r("", !0)])
314
+ ])])) : r("", !0), a("div", Ie, [V(m.id, o.id) && U(V(m.id, o.id)) === "completed" ? (d(), i("div", Le, [f[5] ||= a("div", { class: "w-4 h-4 rounded-full bg-green-100 flex items-center justify-center" }, [a("svg", {
196
315
  xmlns: "http://www.w3.org/2000/svg",
197
316
  class: "h-3 w-3 text-green-600",
198
317
  fill: "none",
@@ -203,79 +322,104 @@ var j = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
203
322
  "stroke-linejoin": "round",
204
323
  "stroke-width": "2",
205
324
  d: "M5 13l4 4L19 7"
206
- })])], -1), a("span", Ee, h(G("completed")), 1)])) : r("", !0), a("div", De, [
207
- s(g(A), { content: "下载数据" }, {
208
- default: v(() => [We(t, o.id) ? (d(), i("button", {
325
+ })])], -1), a("span", Re, h(G(V(m.id, o.id))), 1)])) : r("", !0), a("div", ze, [
326
+ s(g(E), { content: "下载数据" }, {
327
+ default: v(() => [mt(m, o.id) ? (d(), i("button", {
209
328
  key: 0,
210
329
  class: "w-10 h-10 rounded-full flex items-center justify-center hover:bg-slate-50 transition-all transform hover:scale-105 hover:shadow-md",
211
- onClick: y((e) => K(t.id, o.id), ["stop"])
212
- }, [!W(t.id, o.id) || W(t.id, o.id)?.status === "idle" ? (d(), n(g(C), {
330
+ onClick: y((e) => dt(m.id, o.id), ["stop"])
331
+ }, [!V(m.id, o.id) || U(V(m.id, o.id)) === "idle" ? (d(), n(g(C), {
213
332
  key: 0,
214
333
  size: "16",
215
334
  class: "text-[#4749ad]"
216
- })) : [
217
- "preparing",
218
- "downloading",
219
- "decrypting"
220
- ].includes(W(t.id, o.id).status) ? (d(), n(g(D), {
335
+ })) : U(V(m.id, o.id)) === "in_progress" ? (d(), n(g(ne), {
221
336
  key: 1,
222
337
  size: "16",
223
338
  class: "text-[#4749ad]"
224
- })) : W(t.id, o.id)?.status === "paused" ? (d(), n(g(O), {
339
+ })) : U(V(m.id, o.id)) === "paused" ? (d(), n(g(re), {
225
340
  key: 2,
226
341
  size: "16",
227
342
  class: "text-[#4749ad]"
228
- })) : W(t.id, o.id)?.status === "completed" ? (d(), n(g(T), {
343
+ })) : U(V(m.id, o.id)) === "completed" ? (d(), n(g(T), {
229
344
  key: 3,
230
345
  size: "16",
231
346
  class: "text-[#4749ad]"
232
- })) : r("", !0)], 8, Oe)) : r("", !0)]),
347
+ })) : r("", !0)], 8, Be)) : r("", !0)]),
233
348
  _: 2
234
349
  }, 1024),
235
- Ge(t, o.id) ? (d(), n(g(A), {
350
+ gt(m, o.id) ? (d(), n(g(E), {
236
351
  key: 0,
352
+ content: "取消下载"
353
+ }, {
354
+ default: v(() => [a("button", {
355
+ class: "w-10 h-10 rounded-full flex items-center justify-center hover:bg-slate-50 transition-all transform hover:scale-105 hover:shadow-md",
356
+ onClick: y((e) => t.$emit("cancel-download", o.id), ["stop"])
357
+ }, [a("img", {
358
+ src: g(P),
359
+ alt: "取消下载",
360
+ class: "w-[18px] h-[18px]"
361
+ }, null, 8, He)], 8, Ve)]),
362
+ _: 2
363
+ }, 1024)) : r("", !0),
364
+ ht(m, o.id) ? (d(), n(g(E), {
365
+ key: 1,
237
366
  content: "联系卖家"
238
367
  }, {
239
368
  default: v(() => [a("button", {
240
369
  class: "w-10 h-10 rounded-full flex items-center justify-center hover:bg-slate-50 transition-all transform hover:scale-105 hover:shadow-md",
241
- onClick: y((e) => c.$emit("contact-seller", o.id), ["stop"])
242
- }, [s(g(E), {
370
+ onClick: y((e) => t.$emit("contact-seller", o.id), ["stop"])
371
+ }, [s(g(te), {
243
372
  size: "16",
244
373
  class: "text-[#4749ad]"
245
- })], 8, ke)]),
374
+ })], 8, Ue)]),
246
375
  _: 2
247
376
  }, 1024)) : r("", !0),
248
- He(t) ? (d(), i(e, { key: 1 }, [Y(t.id, o.id) === "refundable" ? (d(), n(g(A), {
377
+ ft(m) ? (d(), i(e, { key: 2 }, [J(m.id, o.id) === "refundable" ? (d(), n(g(E), {
249
378
  key: 0,
250
379
  content: "申请退款"
251
380
  }, {
252
381
  default: v(() => [a("button", {
253
382
  class: "w-10 h-10 rounded-full flex items-center justify-center hover:bg-slate-50 transition-all transform hover:scale-105 hover:shadow-md",
254
- onClick: y((e) => Ke(o.id), ["stop"])
383
+ onClick: y((e) => _t(o.id), ["stop"])
255
384
  }, [a("img", {
256
- src: g(j),
385
+ src: g(ae),
257
386
  alt: "申请退款",
258
387
  class: "w-[18px] h-[18px]"
259
- }, null, 8, je)], 8, Ae)]),
388
+ }, null, 8, Ge)], 8, We)]),
260
389
  _: 2
261
- }, 1024)) : Y(t.id, o.id) === "after_sales" ? (d(), n(g(A), {
390
+ }, 1024)) : bt(m.id, o.id) ? (d(), n(g(E), {
262
391
  key: 1,
263
392
  content: "联系售后"
264
393
  }, {
265
394
  default: v(() => [a("button", {
266
395
  class: "w-10 h-10 rounded-full flex items-center justify-center hover:bg-slate-50 transition-all transform hover:scale-105 hover:shadow-md",
267
- onClick: y((e) => Je(o.id), ["stop"])
396
+ onClick: y((e) => yt(o.id), ["stop"])
268
397
  }, [a("img", {
269
- src: g(te),
398
+ src: g(oe),
270
399
  alt: "联系售后",
271
400
  class: "w-[18px] h-[18px]"
272
- }, null, 8, Ne)], 8, Me)]),
401
+ }, null, 8, qe)], 8, Ke)]),
273
402
  _: 2
274
- }, 1024)) : r("", !0)], 64)) : r("", !0)
275
- ])])])])])])], 8, L))), 128))], 2), t.products.length > 3 ? (d(), i("div", Pe)) : r("", !0)])]))), 128))])) : (d(), i("div", Fe, [a("div", Ie, [s(g(w), { size: "24" })]), f[5] ||= a("h3", { class: "text-lg font-bold text-[#262626] mb-6" }, "暂无订单", -1)])), t.totalPages > 1 ? (d(), i("div", Le, [
403
+ }, 1024)) : r("", !0)], 64)) : r("", !0),
404
+ xt(m, o) ? (d(), i(e, { key: 3 }, [Ct(m, o) ? (d(), i("span", Je, " 已删除(平台) ")) : St(m, o) ? (d(), i("button", {
405
+ key: 1,
406
+ type: "button",
407
+ class: "umo-review-btn umo-review-btn--primary",
408
+ onClick: y((e) => Tt(m, o), ["stop"])
409
+ }, " 评价 ", 8, Ye)) : (d(), i(e, { key: 2 }, [a("button", {
410
+ type: "button",
411
+ class: "umo-review-btn umo-review-btn--outline",
412
+ onClick: y((e) => Et(m, o), ["stop"])
413
+ }, " 查看评价 ", 8, Xe), wt(m, o) ? (d(), i("button", {
414
+ key: 0,
415
+ type: "button",
416
+ class: "umo-review-btn umo-review-btn--primary",
417
+ onClick: y((e) => Dt(m, o), ["stop"])
418
+ }, " 追加评价 ", 8, Ze)) : r("", !0)], 64))], 64)) : r("", !0)
419
+ ])])])])])])], 8, ve))), 128))], 2), m.products.length > 3 ? (d(), i("div", Qe)) : r("", !0)])]))), 128))])) : (d(), i("div", $e, [a("div", et, [s(g(w), { size: "24" })]), f[6] ||= a("h3", { class: "text-lg font-bold text-[#262626] mb-6" }, "暂无订单", -1)])), c.totalPages > 1 ? (d(), i("div", tt, [
276
420
  a("button", {
277
- onClick: f[0] ||= (e) => c.$emit("page-change", t.currentPage - 1, t.pageSize),
278
- disabled: t.currentPage === 1,
421
+ onClick: f[1] ||= (e) => t.$emit("page-change", c.currentPage - 1, c.pageSize),
422
+ disabled: c.currentPage === 1,
279
423
  class: "w-8 h-8 hover:bg-slate-50 disabled:opacity-50 disabled:cursor-not-allowed transition-all flex items-center justify-center",
280
424
  style: {
281
425
  "border-radius": "8px",
@@ -283,11 +427,11 @@ var j = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
283
427
  height: "32px",
284
428
  border: "1px solid #d1d5db"
285
429
  }
286
- }, [s(g(x), { size: "16" })], 8, Re),
287
- a("span", ze, h(t.currentPage) + " / " + h(t.totalPages), 1),
430
+ }, [s(g(x), { size: "16" })], 8, nt),
431
+ a("span", rt, h(c.currentPage) + " / " + h(c.totalPages), 1),
288
432
  a("button", {
289
- onClick: f[1] ||= (e) => c.$emit("page-change", t.currentPage + 1, t.pageSize),
290
- disabled: t.currentPage === t.totalPages,
433
+ onClick: f[2] ||= (e) => t.$emit("page-change", c.currentPage + 1, c.pageSize),
434
+ disabled: c.currentPage === c.totalPages,
291
435
  class: "w-8 h-8 hover:bg-slate-50 disabled:opacity-50 disabled:cursor-not-allowed transition-all flex items-center justify-center",
292
436
  style: {
293
437
  "border-radius": "8px",
@@ -295,34 +439,34 @@ var j = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
295
439
  height: "32px",
296
440
  border: "1px solid #d1d5db"
297
441
  }
298
- }, [s(g(S), { size: "16" })], 8, Be)
299
- ])) : r("", !0)]), s(g(k), {
300
- visible: J.value,
301
- "onUpdate:visible": f[2] ||= (e) => J.value = e,
442
+ }, [s(g(S), { size: "16" })], 8, it)
443
+ ])) : r("", !0)]), s(g(ie), {
444
+ visible: q.value,
445
+ "onUpdate:visible": f[3] ||= (e) => q.value = e,
302
446
  title: "申请退款",
303
447
  footer: !1,
304
448
  "mask-closable": !1,
305
449
  width: 448,
306
450
  "modal-style": { borderRadius: "8px" },
307
- onCancel: X
451
+ onCancel: Y
308
452
  }, {
309
- default: v(() => [f[6] ||= a("p", { class: "text-sm text-[#262626] text-center mb-6" }, "确认要申请退款吗?退款成功后您将无法继续下载并使用此数据。", -1), a("div", { class: "flex justify-end gap-3" }, [a("button", {
453
+ default: v(() => [f[7] ||= a("p", { class: "text-sm text-[#262626] text-center mb-6" }, "确认要申请退款吗?退款成功后您将无法继续下载并使用此数据。", -1), a("div", { class: "flex justify-end gap-3" }, [a("button", {
310
454
  style: { border: "none" },
311
455
  class: "px-4 py-2 text-sm text-[#262626] rounded-md hover:bg-slate-50 transition-colors cursor-pointer",
312
- onClick: X
456
+ onClick: Y
313
457
  }, "取消"), a("button", {
314
458
  style: { border: "none" },
315
459
  class: "px-4 py-2 text-sm text-white bg-[#4749ad] rounded-md hover:opacity-90 transition-colors cursor-pointer",
316
- onClick: qe
460
+ onClick: vt
317
461
  }, "确认")])]),
318
462
  _: 1
319
463
  }, 8, ["visible"])], 64));
320
464
  }
321
- }), W = (e, t) => {
465
+ }), H = (e, t) => {
322
466
  let n = e.__vccOpts || e;
323
467
  for (let [e, r] of t) n[e] = r;
324
468
  return n;
325
- }, G = /* @__PURE__ */ W(U, [["__scopeId", "data-v-a11f0a41"]]), Ve = { class: "order-management bg-[#F6F4F0] text-[#262626] font-[PingFangSC]" }, K = /* @__PURE__ */ W(/* @__PURE__ */ c({
469
+ }, U = /* @__PURE__ */ H(V, [["__scopeId", "data-v-11b407c5"]]), at = { class: "order-management bg-[#F6F4F0] text-[#262626] font-[PingFangSC]" }, W = /* @__PURE__ */ H(/* @__PURE__ */ c({
326
470
  __name: "OrderManagement",
327
471
  props: {
328
472
  orders: {},
@@ -339,6 +483,7 @@ var j = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
339
483
  onDownload: {},
340
484
  onPauseDownload: {},
341
485
  onResumeDownload: {},
486
+ onCancelDownload: {},
342
487
  onOpenFile: {},
343
488
  onContactSeller: {},
344
489
  onRequestRefund: {},
@@ -347,7 +492,21 @@ var j = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
347
492
  downloadStatusText: {},
348
493
  downloadButtonVisible: {},
349
494
  contactSellerButtonVisible: {},
350
- refundStates: {}
495
+ cancelDownloadButtonVisible: {},
496
+ refundStates: {},
497
+ controllableDeliveryTag: {},
498
+ afterSalesEnabled: {
499
+ type: Boolean,
500
+ default: !0
501
+ },
502
+ reviewEnabled: {
503
+ type: Boolean,
504
+ default: !1
505
+ },
506
+ reviewStates: {},
507
+ onReview: {},
508
+ onViewReview: {},
509
+ onAppendReview: {}
351
510
  },
352
511
  setup(e) {
353
512
  let n = e, r = f(n.currentOrderPage), a = t(() => n.currentOrderPage ?? r.value), o = t(() => n.orderItemsPerPage ?? 10);
@@ -371,7 +530,7 @@ var j = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
371
530
  }), h = t(() => n.serverPagination ? n.totalOrderCount : u.value.length);
372
531
  return _(() => n.currentOrderPage, (e) => {
373
532
  r.value = e ?? 1;
374
- }), (t, r) => (d(), i("div", Ve, [s(G, {
533
+ }), (e, t) => (d(), i("div", at, [s(U, {
375
534
  orders: p.value,
376
535
  "total-orders": h.value,
377
536
  "current-page": a.value,
@@ -382,17 +541,26 @@ var j = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
382
541
  "download-status-text": n.downloadStatusText,
383
542
  "download-button-visible": n.downloadButtonVisible,
384
543
  "contact-seller-button-visible": n.contactSellerButtonVisible,
544
+ "cancel-download-button-visible": n.cancelDownloadButtonVisible,
385
545
  "refund-states": n.refundStates,
546
+ "controllable-delivery-tag": n.controllableDeliveryTag,
547
+ "after-sales-enabled": n.afterSalesEnabled,
548
+ "review-enabled": n.reviewEnabled,
549
+ "review-states": n.reviewStates,
386
550
  onPageChange: l,
387
- onViewDetail: r[0] ||= (t) => e.onViewDetail?.(t),
388
- onViewProduct: r[1] ||= (t, n) => e.onViewProduct?.(t, n),
389
- onDownload: r[2] ||= (t) => e.onDownload?.(t),
390
- onPauseDownload: r[3] ||= (t) => e.onPauseDownload?.(t),
391
- onResumeDownload: r[4] ||= (t) => e.onResumeDownload?.(t),
392
- onOpenFile: r[5] ||= (t) => e.onOpenFile?.(t),
393
- onContactSeller: r[6] ||= (t) => e.onContactSeller?.(t),
394
- onRequestRefund: r[7] ||= (t) => e.onRequestRefund?.(t),
395
- onRequestAfterSales: r[8] ||= (t) => e.onRequestAfterSales?.(t)
551
+ onViewDetail: t[0] ||= (e) => n.onViewDetail?.(e),
552
+ onViewProduct: t[1] ||= (e, t) => n.onViewProduct?.(e, t),
553
+ onDownload: t[2] ||= (e) => n.onDownload?.(e),
554
+ onPauseDownload: t[3] ||= (e) => n.onPauseDownload?.(e),
555
+ onResumeDownload: t[4] ||= (e) => n.onResumeDownload?.(e),
556
+ onCancelDownload: t[5] ||= (e) => n.onCancelDownload?.(e),
557
+ onOpenFile: t[6] ||= (e) => n.onOpenFile?.(e),
558
+ onContactSeller: t[7] ||= (e) => n.onContactSeller?.(e),
559
+ onRequestRefund: t[8] ||= (e) => n.onRequestRefund?.(e),
560
+ onRequestAfterSales: t[9] ||= (e) => n.onRequestAfterSales?.(e),
561
+ onReview: t[10] ||= (e) => n.onReview?.(e),
562
+ onViewReview: t[11] ||= (e) => n.onViewReview?.(e),
563
+ onAppendReview: t[12] ||= (e) => n.onAppendReview?.(e)
396
564
  }, null, 8, [
397
565
  "orders",
398
566
  "total-orders",
@@ -404,10 +572,15 @@ var j = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
404
572
  "download-status-text",
405
573
  "download-button-visible",
406
574
  "contact-seller-button-visible",
407
- "refund-states"
575
+ "cancel-download-button-visible",
576
+ "refund-states",
577
+ "controllable-delivery-tag",
578
+ "after-sales-enabled",
579
+ "review-enabled",
580
+ "review-states"
408
581
  ])]));
409
582
  }
410
- }), [["__scopeId", "data-v-2617ec4e"]]), q = { class: "order-detail space-y-8 bg-[#ffffff] font-[PingFangSC]" }, J = {
583
+ }), [["__scopeId", "data-v-42c5c864"]]), ot = { class: "order-detail space-y-8 bg-[#ffffff] font-[PingFangSC]" }, G = {
411
584
  class: "bg-[#ffffff] rounded-[8px] shadow-sm",
412
585
  style: {
413
586
  border: "1px solid #E5E6E9",
@@ -416,216 +589,273 @@ var j = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
416
589
  "padding-left": "24px",
417
590
  "padding-right": "24px"
418
591
  }
419
- }, Y = { class: "space-y-3" }, He = { class: "flex justify-between" }, Ue = { class: "text-[12px] font-medium text-[#262626]" }, We = { class: "flex justify-between items-center" }, Ge = { class: "flex justify-between" }, Ke = { class: "text-[12px] font-medium text-[#262626]" }, qe = { class: "text-[12px] font-medium text-[#262626]" }, X = {
592
+ }, st = { class: "space-y-3" }, ct = { class: "flex justify-between" }, lt = { class: "text-[12px] font-medium text-[#262626]" }, ut = { class: "flex justify-between items-center" }, dt = { class: "flex justify-between" }, K = { class: "text-[12px] font-medium text-[#262626]" }, q = { class: "text-[12px] font-medium text-[#262626]" }, J = {
420
593
  key: 0,
421
594
  class: "flex justify-between"
422
- }, Je = { class: "text-[12px] font-medium text-[#262626]" }, Z = {
595
+ }, ft = { class: "text-[12px] font-medium text-[#262626]" }, pt = {
423
596
  key: 1,
424
597
  class: "flex justify-between"
425
- }, Ye = { class: "text-[12px] font-medium text-[#262626]" }, Q = {
598
+ }, mt = { class: "text-[12px] font-medium text-[#262626]" }, ht = {
426
599
  class: "text-[18px] font-bold text-[#262626]",
427
600
  style: { "font-weight": "700" }
428
- }, $ = {
601
+ }, gt = {
429
602
  class: "bg-[#ffffff] rounded-[8px] shadow-sm",
430
603
  style: {
431
604
  border: "1px solid #E5E6E9",
432
605
  "padding-top": "24px",
433
606
  "padding-bottom": "24px"
434
607
  }
435
- }, Xe = { class: "space-y-4" }, Ze = { class: "w-12 h-12 rounded overflow-hidden flex-shrink-0" }, Qe = ["src", "alt"], $e = { class: "flex-1 min-w-0" }, et = { class: "flex items-center justify-between mb-2" }, tt = ["title", "onClick"], nt = { class: "text-[11px] font-medium text-[#8D8C8B]" }, rt = { class: "flex items-center gap-2 shrink-0" }, it = {
608
+ }, _t = { class: "space-y-4" }, vt = { class: "w-12 h-12 rounded overflow-hidden flex-shrink-0" }, Y = ["src", "alt"], yt = { class: "flex-1 min-w-0" }, bt = { class: "flex items-center justify-between mb-2 gap-2 min-w-0" }, X = { class: "flex items-center min-w-0 flex-1" }, xt = ["title", "onClick"], St = ["src", "alt"], Ct = { class: "text-[11px] font-medium text-[#8D8C8B]" }, wt = { class: "flex items-center gap-2 shrink-0" }, Z = {
436
609
  key: 0,
437
610
  class: "text-xs font-medium text-[#262626]"
438
- }, at = ["onClick"], ot = ["onClick"], st = ["src"], ct = ["onClick"], lt = ["src"], ut = {
611
+ }, Tt = ["onClick"], Et = ["onClick"], Dt = ["src"], Ot = ["onClick"], kt = ["src"], Q = {
612
+ key: 0,
613
+ class: "umo-review-deleted"
614
+ }, $ = ["onClick"], At = ["onClick"], jt = ["onClick"], Mt = {
439
615
  key: 0,
440
616
  class: "px-6"
441
- }, dt = {
617
+ }, Nt = {
442
618
  class: "mt-4 pt-4 px-6",
443
619
  style: { "border-top": "1px solid #E5E6E9" }
444
- }, ft = { class: "flex justify-end items-center gap-2" }, pt = { class: "text-sm font-bold text-[#262626]" }, mt = {
620
+ }, Pt = { class: "flex justify-end items-center gap-2" }, Ft = { class: "text-sm font-bold text-[#262626]" }, It = {
445
621
  key: 0,
446
622
  class: "mt-2 text-xs font-medium text-[#262626] text-right"
447
- }, ht = {
623
+ }, Lt = {
448
624
  key: 0,
449
625
  class: "bg-[#ffffff] rounded-[8px] shadow-sm p-6",
450
626
  style: { border: "1px solid #E5E6E9" }
451
- }, gt = /* @__PURE__ */ W(/* @__PURE__ */ c({
627
+ }, Rt = /* @__PURE__ */ H(/* @__PURE__ */ c({
452
628
  __name: "OrderDetail",
453
629
  props: {
454
630
  order: {},
455
631
  refundStates: {},
456
- contactSellerButtonVisible: {}
632
+ contactSellerButtonVisible: {},
633
+ controllableDeliveryTag: {},
634
+ afterSalesEnabled: { type: Boolean },
635
+ reviewEnabled: { type: Boolean },
636
+ reviewStates: {},
637
+ onReview: { type: Function },
638
+ onViewReview: { type: Function },
639
+ onAppendReview: { type: Function }
457
640
  },
458
641
  emits: [
459
642
  "contact-seller",
460
643
  "view-product",
461
644
  "request-refund",
462
- "request-after-sales"
645
+ "request-after-sales",
646
+ "review",
647
+ "view-review",
648
+ "append-review"
463
649
  ],
464
650
  setup(c, { emit: l }) {
465
- let _ = c, y = l, x = f(!1), S = f(""), C = f(!1), w = (e) => _.refundStates?.[`${_.order.id}-${e}`], T = (e) => {
651
+ let _ = c, x = l, S = f(!1), C = f(""), w = f(!1), T = (e) => _.refundStates?.[`${_.order.id}-${e}`], ne = (e) => {
466
652
  let t = `${_.order.id}-${e}`, n = _.contactSellerButtonVisible?.[t];
467
653
  return n === void 0 ? !0 : n;
468
- }, D = (e) => {
469
- S.value = e, C.value = !0;
470
- }, O = () => {
471
- let e = S.value;
654
+ }, re = (e) => {
655
+ C.value = e, w.value = !0;
656
+ }, D = () => {
657
+ let e = C.value;
472
658
  if (!e) {
473
- M();
659
+ k();
474
660
  return;
475
661
  }
476
- y("request-refund", e), M();
477
- }, M = () => {
478
- C.value = !1, S.value = "";
479
- }, ne = (e) => {
480
- y("request-after-sales", e);
481
- }, re = t(() => _.order.products && _.order.products.length > 5), ie = t(() => _.order.products ? x.value ? _.order.products : _.order.products.slice(0, 5) : []), ae = () => {
482
- x.value = !x.value;
483
- }, oe = (e) => {
484
- y("contact-seller", e);
485
- }, se = (e) => {
486
- y("view-product", _.order, e);
487
- }, ce = (e, t) => e ? e.length <= t ? e : e.substring(0, t) + "..." : "", N = (e) => {
662
+ x("request-refund", e), k();
663
+ }, k = () => {
664
+ w.value = !1, C.value = "";
665
+ }, j = (e) => {
666
+ x("request-after-sales", e);
667
+ }, N = (e) => _.afterSalesEnabled === !1 ? !1 : T(e) === "after_sales", P = (e) => M(_.reviewStates, _.order.id, e.id), se = (e) => {
668
+ if (!_.reviewEnabled) return !1;
669
+ let t = P(e);
670
+ return t.canReview ? t.loaded !== !1 : !1;
671
+ }, ce = (e) => {
672
+ let t = P(e);
673
+ return t.status == null && t.reviewed !== !0;
674
+ }, le = (e) => P(e).status === A.DELETED, ue = (e) => {
675
+ let t = P(e);
676
+ return t.canAppend == null ? t.status === A.PASSED : t.canAppend;
677
+ }, de = (e) => ({
678
+ productId: e.id,
679
+ orderId: _.order.id,
680
+ productName: e.name
681
+ }), F = (e, t, n) => {
682
+ let r = de(t);
683
+ n?.(r), x(e, r);
684
+ }, fe = (e) => {
685
+ F("review", e, _.onReview);
686
+ }, pe = (e) => {
687
+ F("view-review", e, _.onViewReview);
688
+ }, me = (e) => {
689
+ F("append-review", e, _.onAppendReview);
690
+ }, he = t(() => _.order.products && _.order.products.length > 5), ge = t(() => _.order.products ? S.value ? _.order.products : _.order.products.slice(0, 5) : []), _e = () => {
691
+ S.value = !S.value;
692
+ }, ve = (e) => {
693
+ x("contact-seller", e);
694
+ }, ye = (e) => {
695
+ x("view-product", _.order, e);
696
+ }, be = (e, t) => e ? e.length <= t ? e : e.substring(0, t) + "..." : "", xe = (e) => {
488
697
  if (!e) return "";
489
698
  let t = new Date(e);
490
699
  return `${t.getFullYear()}-${String(t.getMonth() + 1).padStart(2, "0")}-${String(t.getDate()).padStart(2, "0")} ${String(t.getHours()).padStart(2, "0")}:${String(t.getMinutes()).padStart(2, "0")}`;
491
- }, P = (e) => I(e) ? "购买时间" : L(e) ? "兑换时间" : R(e) ? "发放时间" : "购买时间", F = (e) => e.createTime ? e.createTime : e.exchangeTime ? e.exchangeTime : e.issueTime ? e.issueTime : e.createTime || "", I = (e) => !e.isExchange && !e.isGift, L = (e) => !!e.isExchange, R = (e) => !!e.isGift, z = {
700
+ }, Se = (e) => I(e) ? "购买时间" : L(e) ? "兑换时间" : R(e) ? "发放时间" : "购买时间", Ce = (e) => e.createTime ? e.createTime : e.exchangeTime ? e.exchangeTime : e.issueTime ? e.issueTime : e.createTime || "", I = (e) => !e.isExchange && !e.isGift, L = (e) => !!e.isExchange, R = (e) => !!e.isGift, we = {
492
701
  已付款: "#3B82F6",
493
702
  待审核: "#F59E0B",
494
703
  审核通过: "#22C55E",
495
704
  退款中: "#3B82F6",
496
705
  已退款: "#22C55E",
497
706
  交易成功: "#22C55E"
498
- }, B = {
707
+ }, Te = {
499
708
  已付款: "已付款",
500
709
  待审核: "待审核",
501
710
  审核通过: "审核通过",
502
711
  退款中: "退款中",
503
712
  已退款: "已退款",
504
713
  交易成功: "交易成功"
505
- }, V = (e) => z[e] || "#262626", H = (e) => B[e] || "";
506
- return (t, l) => (d(), i(e, null, [a("section", q, [
507
- l[8] ||= a("h2", {
714
+ }, z = (e) => we[e] || "#262626", B = (e) => Te[e] || "";
715
+ return (t, l) => (d(), i(e, null, [a("section", ot, [
716
+ l[9] ||= a("h2", {
508
717
  class: "text-[18px] font-bold text-[#262626]",
509
718
  style: { "font-weight": "700" }
510
719
  }, "订单信息", -1),
511
- a("div", J, [a("div", Y, [
512
- a("div", He, [l[1] ||= a("span", { class: "text-[12px] font-medium text-[#262626]" }, "订单编号", -1), a("span", Ue, h(c.order.orderNumber || c.order.id), 1)]),
513
- a("div", We, [l[2] ||= a("span", { class: "text-[12px] font-medium text-[#262626]" }, "交易状态", -1), H(c.order.status) ? (d(), i("span", {
720
+ a("div", G, [a("div", st, [
721
+ a("div", ct, [l[2] ||= a("span", { class: "text-[12px] font-medium text-[#262626]" }, "订单编号", -1), a("span", lt, h(c.order.orderNumber || c.order.id), 1)]),
722
+ a("div", ut, [l[3] ||= a("span", { class: "text-[12px] font-medium text-[#262626]" }, "交易状态", -1), B(c.order.status) ? (d(), i("span", {
514
723
  key: 0,
515
724
  class: "px-2 py-0.5 rounded-full text-[11px] font-bold min-w-[70px] text-center bg-transparent",
516
725
  style: u({
517
- color: V(c.order.status),
518
- border: "1px solid " + V(c.order.status)
726
+ color: z(c.order.status),
727
+ border: "1px solid " + z(c.order.status)
519
728
  })
520
- }, h(H(c.order.status)), 5)) : r("", !0)]),
521
- a("div", Ge, [a("span", Ke, h(P(c.order)), 1), a("span", qe, h(N(F(c.order))), 1)]),
522
- I(c.order) ? (d(), i("div", X, [l[3] ||= a("span", { class: "text-[12px] font-medium text-[#262626]" }, "支付方式", -1), a("span", Je, h(c.order.paymentMethod || "在线支付"), 1)])) : r("", !0),
523
- L(c.order) ? (d(), i("div", Z, [l[4] ||= a("span", { class: "text-[12px] font-medium text-[#262626]" }, "兑换码", -1), a("span", Ye, h(c.order.exchangeCode || "ABCD-1234-EFGH-5678"), 1)])) : r("", !0)
729
+ }, h(B(c.order.status)), 5)) : r("", !0)]),
730
+ a("div", dt, [a("span", K, h(Se(c.order)), 1), a("span", q, h(xe(Ce(c.order))), 1)]),
731
+ I(c.order) ? (d(), i("div", J, [l[4] ||= a("span", { class: "text-[12px] font-medium text-[#262626]" }, "支付方式", -1), a("span", ft, h(c.order.paymentMethod || "在线支付"), 1)])) : r("", !0),
732
+ L(c.order) ? (d(), i("div", pt, [l[5] ||= a("span", { class: "text-[12px] font-medium text-[#262626]" }, "兑换码", -1), a("span", mt, h(c.order.exchangeCode || "ABCD-1234-EFGH-5678"), 1)])) : r("", !0)
524
733
  ])]),
525
- a("h2", Q, "产品信息(共" + h(c.order.products ? c.order.products.length : 0) + "件)", 1),
526
- a("div", $, [a("div", Xe, [(d(!0), i(e, null, p(ie.value, (t, o) => (d(), i("div", {
734
+ a("h2", ht, "产品信息(共" + h(c.order.products ? c.order.products.length : 0) + "件)", 1),
735
+ a("div", gt, [a("div", _t, [(d(!0), i(e, null, p(ge.value, (t, o) => (d(), i("div", {
527
736
  key: t.id,
528
737
  class: "flex items-start gap-4 px-6 py-4 w-full hover:bg-slate-50 transition-all duration-200 hover:shadow-sm"
529
738
  }, [
530
- a("div", Ze, [a("img", {
739
+ a("div", vt, [a("img", {
531
740
  src: t.image,
532
741
  alt: t.name,
533
742
  class: "w-full h-full object-cover"
534
- }, null, 8, Qe)]),
535
- a("div", $e, [a("div", et, [a("p", {
536
- class: "text-sm font-bold text-[#262626] flex-1 cursor-pointer hover:text-[#3F69B4] transition-colors",
743
+ }, null, 8, Y)]),
744
+ a("div", yt, [a("div", bt, [a("div", X, [a("p", {
745
+ class: "text-sm font-bold text-[#262626] truncate cursor-pointer hover:text-[#3F69B4] transition-colors min-w-0",
537
746
  title: t.name,
538
- onClick: (e) => se(t)
539
- }, h(ce(t.name, 35)), 9, tt)]), a("div", nt, [
747
+ onClick: (e) => ye(t)
748
+ }, h(be(t.name, 35)), 9, xt), g(O)(t, c.controllableDeliveryTag) ? (d(), i("img", {
749
+ key: 0,
750
+ class: "umo-controllable-delivery-tag",
751
+ src: c.controllableDeliveryTag.src,
752
+ alt: c.controllableDeliveryTag?.alt || "可控交付",
753
+ onClick: l[0] ||= y(() => {}, ["stop"])
754
+ }, null, 8, St)) : r("", !0)])]), a("div", Ct, [
540
755
  a("span", null, "文件后缀:" + h(t.metadata?.fileSuffix || "pdf"), 1),
541
- l[5] ||= a("span", { class: "mx-2" }, "|", -1),
542
- a("span", null, "数据标识:" + h(t.metadata?.dataId || "D1757042744151521"), 1),
543
756
  l[6] ||= a("span", { class: "mx-2" }, "|", -1),
757
+ a("span", null, "数据标识:" + h(t.metadata?.dataId || "D1757042744151521"), 1),
758
+ l[7] ||= a("span", { class: "mx-2" }, "|", -1),
544
759
  a("span", null, "文件大小:" + h(t.metadata?.fileSize || "2.8MB"), 1)
545
760
  ])]),
546
- a("div", rt, [
547
- I(c.order) && t.price ? (d(), i("span", it, "¥" + h(t.price.toFixed(2)), 1)) : r("", !0),
548
- T(t.id) ? (d(), n(g(A), {
761
+ a("div", wt, [
762
+ I(c.order) && t.price ? (d(), i("span", Z, "¥" + h(t.price.toFixed(2)), 1)) : r("", !0),
763
+ ne(t.id) ? (d(), n(g(E), {
549
764
  key: 1,
550
765
  content: "联系卖家"
551
766
  }, {
552
767
  default: v(() => [a("button", {
553
768
  class: "w-10 h-10 rounded-full flex items-center justify-center hover:bg-slate-50 transition-all transform hover:scale-105 hover:shadow-md",
554
- onClick: (e) => oe(t.id)
555
- }, [s(g(E), {
769
+ onClick: (e) => ve(t.id)
770
+ }, [s(g(te), {
556
771
  size: "16",
557
772
  class: "text-[#4749ad]"
558
- })], 8, at)]),
773
+ })], 8, Tt)]),
559
774
  _: 2
560
775
  }, 1024)) : r("", !0),
561
- I(c.order) ? (d(), i(e, { key: 2 }, [w(t.id) === "refundable" ? (d(), n(g(A), {
776
+ I(c.order) ? (d(), i(e, { key: 2 }, [T(t.id) === "refundable" ? (d(), n(g(E), {
562
777
  key: 0,
563
778
  content: "申请退款"
564
779
  }, {
565
780
  default: v(() => [a("button", {
566
781
  class: "w-10 h-10 rounded-full flex items-center justify-center hover:bg-slate-50 transition-all transform hover:scale-105 hover:shadow-md",
567
- onClick: (e) => D(t.id)
782
+ onClick: (e) => re(t.id)
568
783
  }, [a("img", {
569
- src: g(j),
784
+ src: g(ae),
570
785
  alt: "申请退款",
571
786
  class: "w-[18px] h-[18px]"
572
- }, null, 8, st)], 8, ot)]),
787
+ }, null, 8, Dt)], 8, Et)]),
573
788
  _: 2
574
- }, 1024)) : w(t.id) === "after_sales" ? (d(), n(g(A), {
789
+ }, 1024)) : N(t.id) ? (d(), n(g(E), {
575
790
  key: 1,
576
791
  content: "联系售后"
577
792
  }, {
578
793
  default: v(() => [a("button", {
579
794
  class: "w-10 h-10 rounded-full flex items-center justify-center hover:bg-slate-50 transition-all transform hover:scale-105 hover:shadow-md",
580
- onClick: (e) => ne(t.id)
795
+ onClick: (e) => j(t.id)
581
796
  }, [a("img", {
582
- src: g(te),
797
+ src: g(oe),
583
798
  alt: "联系售后",
584
799
  class: "w-[18px] h-[18px]"
585
- }, null, 8, lt)], 8, ct)]),
800
+ }, null, 8, kt)], 8, Ot)]),
586
801
  _: 2
587
- }, 1024)) : r("", !0)], 64)) : r("", !0)
802
+ }, 1024)) : r("", !0)], 64)) : r("", !0),
803
+ se(t) ? (d(), i(e, { key: 3 }, [le(t) ? (d(), i("span", Q, " 已删除(平台) ")) : ce(t) ? (d(), i("button", {
804
+ key: 1,
805
+ type: "button",
806
+ class: "umo-review-btn umo-review-btn--primary",
807
+ onClick: (e) => fe(t)
808
+ }, " 评价 ", 8, $)) : (d(), i(e, { key: 2 }, [a("button", {
809
+ type: "button",
810
+ class: "umo-review-btn umo-review-btn--outline",
811
+ onClick: (e) => pe(t)
812
+ }, " 查看评价 ", 8, At), ue(t) ? (d(), i("button", {
813
+ key: 0,
814
+ type: "button",
815
+ class: "umo-review-btn umo-review-btn--primary",
816
+ onClick: (e) => me(t)
817
+ }, " 追加评价 ", 8, jt)) : r("", !0)], 64))], 64)) : r("", !0)
588
818
  ])
589
- ]))), 128)), re.value ? (d(), i("div", ut, [a("button", {
590
- onClick: ae,
819
+ ]))), 128)), he.value ? (d(), i("div", Mt, [a("button", {
820
+ onClick: _e,
591
821
  class: "flex items-center justify-end gap-2 px-1.5 py-1.5 text-[12px] font-medium text-[#4749ad] hover:bg-slate-50 rounded-md transition-all transform hover:scale-105 hover:shadow-md w-[88px]",
592
822
  style: {
593
823
  "text-align": "right",
594
824
  "margin-left": "auto"
595
825
  }
596
- }, [o(h(x.value ? "收起" : "展开全部") + " ", 1), x.value ? (d(), n(g(ee), {
826
+ }, [o(h(S.value ? "收起" : "展开全部") + " ", 1), S.value ? (d(), n(g(ee), {
597
827
  key: 0,
598
828
  size: "16"
599
829
  })) : (d(), n(g(b), {
600
830
  key: 1,
601
831
  size: "16"
602
- }))])])) : r("", !0)]), a("div", dt, [a("div", ft, [l[7] ||= a("span", { class: "text-[12px] font-medium text-[#262626]" }, "总计", -1), a("span", pt, " ¥" + h(c.order.totalAmount ? c.order.totalAmount.toFixed(2) : "0.00"), 1)]), R(c.order) ? (d(), i("div", mt, " 本订单产品为平台赠送,无实际支付金额 ")) : r("", !0)])]),
603
- t.$slots["host-extra"] ? (d(), i("div", ht, [m(t.$slots, "host-extra", {}, void 0, !0)])) : r("", !0)
604
- ]), s(g(k), {
605
- visible: C.value,
606
- "onUpdate:visible": l[0] ||= (e) => C.value = e,
832
+ }))])])) : r("", !0)]), a("div", Nt, [a("div", Pt, [l[8] ||= a("span", { class: "text-[12px] font-medium text-[#262626]" }, "总计", -1), a("span", Ft, " ¥" + h(c.order.totalAmount ? c.order.totalAmount.toFixed(2) : "0.00"), 1)]), R(c.order) ? (d(), i("div", It, " 本订单产品为平台赠送,无实际支付金额 ")) : r("", !0)])]),
833
+ t.$slots["host-extra"] ? (d(), i("div", Lt, [m(t.$slots, "host-extra", {}, void 0, !0)])) : r("", !0)
834
+ ]), s(g(ie), {
835
+ visible: w.value,
836
+ "onUpdate:visible": l[1] ||= (e) => w.value = e,
607
837
  title: "申请退款",
608
838
  footer: !1,
609
839
  "mask-closable": !1,
610
840
  width: 448,
611
841
  "modal-style": { borderRadius: "8px" },
612
- onCancel: M
842
+ onCancel: k
613
843
  }, {
614
- default: v(() => [l[9] ||= a("p", { class: "text-sm text-[#262626] text-center mb-6" }, "确认要申请退款吗?退款成功后您将无法继续下载并使用此数据。", -1), a("div", { class: "flex justify-end gap-3" }, [a("button", {
844
+ default: v(() => [l[10] ||= a("p", { class: "text-sm text-[#262626] text-center mb-6" }, "确认要申请退款吗?退款成功后您将无法继续下载并使用此数据。", -1), a("div", { class: "flex justify-end gap-3" }, [a("button", {
615
845
  style: { border: "none" },
616
846
  class: "px-4 py-2 text-sm text-[#262626] rounded-md hover:bg-slate-50 transition-colors cursor-pointer",
617
- onClick: M
847
+ onClick: k
618
848
  }, "取消"), a("button", {
619
849
  style: { border: "none" },
620
850
  class: "px-4 py-2 text-sm text-white bg-[#4749ad] rounded-md hover:opacity-90 transition-colors cursor-pointer",
621
- onClick: O
851
+ onClick: D
622
852
  }, "确认")])]),
623
853
  _: 1
624
854
  }, 8, ["visible"])], 64));
625
855
  }
626
- }), [["__scopeId", "data-v-5edc0b3d"]]), _t = {
627
- OrderManagement: K,
628
- OrderDetailPanel: gt
856
+ }), [["__scopeId", "data-v-4bcd2e6f"]]), zt = {
857
+ OrderManagement: W,
858
+ OrderDetailPanel: Rt
629
859
  };
630
860
  //#endregion
631
- export { gt as OrderDetailPanel, K as OrderManagement, _t as userMyOrder };
861
+ export { j as EMPTY_REVIEW_UI_STATE, Rt as OrderDetailPanel, W as OrderManagement, A as REVIEW_UI_STATUS, D as isProductControllableDelivery, M as pickReviewUiState, O as shouldShowControllableDeliveryTag, zt as userMyOrder };