@yeez-tech/user-my-order 0.1.5 → 0.1.9

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,111 @@
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 te, FileText as C, Folder as w, MessageSquare as T, Pause as E, Play as D } from "lucide-vue-next";
3
- import { Modal as O, Tooltip as k } 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 E } from "lucide-vue-next";
3
+ import { Modal as D, Tooltip as O } from "@arco-design/web-vue";
4
+ //#region src/types/order.ts
5
+ function k(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 A(e, t) {
13
+ return !t?.enabled || !t.src ? !1 : typeof t.isControllable == "function" ? t.isControllable(e) : k(e);
14
+ }
15
+ var j = [
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
+ ];
51
+ function M(e, t = j) {
52
+ return t.find((t) => t.id === e) || (e === "paused" ? {
53
+ id: e,
54
+ label: e,
55
+ role: "paused",
56
+ barTone: "blue"
57
+ } : e === "completed" ? {
58
+ id: e,
59
+ label: e,
60
+ role: "completed"
61
+ } : e === "idle" ? {
62
+ id: e,
63
+ label: e,
64
+ role: "idle"
65
+ } : {
66
+ id: e,
67
+ label: e,
68
+ role: "in_progress",
69
+ barTone: "blue"
70
+ });
71
+ }
72
+ //#endregion
4
73
  //#region src/assets/icons/refund-apply.svg?url
5
- var A = "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", 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%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]" }, N = {
74
+ var N = "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", 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%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", re = "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", ie = { class: "prepaid-orders space-y-6 bg-[#ffffff] font-[PingFangSC]" }, ae = {
6
75
  key: 0,
7
76
  class: "space-y-6"
8
- }, P = ["onClick"], ne = { class: "flex flex-col md:flex-row md:items-center md:justify-between gap-2" }, F = { class: "flex flex-wrap items-center gap-4" }, I = { class: "text-[12px] font-medium text-[#262626]" }, L = { class: "text-[12px] font-medium text-[#262626]" }, re = {
77
+ }, oe = ["onClick"], se = { class: "flex flex-col md:flex-row md:items-center md:justify-between gap-2" }, ce = { class: "flex flex-wrap items-center gap-4" }, le = { class: "text-[12px] font-medium text-[#262626]" }, ue = { class: "text-[12px] font-medium text-[#262626]" }, de = {
9
78
  key: 0,
10
79
  class: "text-[12px] font-medium text-[#262626]"
11
- }, ie = ["onClick"], ae = { class: "flex items-center gap-4" }, oe = { class: "text-[12px] font-medium text-[#262626]" }, se = { class: "relative" }, ce = ["onClick"], le = { class: "flex items-start gap-4" }, ue = { class: "w-12 h-12 rounded overflow-hidden flex-shrink-0" }, de = ["src", "alt"], fe = { class: "flex-1 min-w-0" }, pe = { class: "flex flex-col md:flex-row md:items-center md:justify-between gap-2" }, me = { class: "min-w-0 max-w-[400px]" }, he = ["title"], ge = { class: "flex items-center gap-4" }, _e = {
80
+ }, F = ["onClick"], I = { class: "flex items-center gap-4" }, L = { class: "text-[12px] font-medium text-[#262626]" }, fe = { class: "relative" }, R = ["onClick"], z = { class: "flex items-start gap-4" }, B = { class: "w-12 h-12 rounded overflow-hidden flex-shrink-0" }, pe = ["src", "alt"], me = { class: "flex-1 min-w-0" }, he = { class: "flex flex-col md:flex-row md:items-center md:justify-between gap-2" }, ge = { class: "min-w-0 max-w-[480px] flex items-center" }, _e = ["title"], ve = ["src", "alt"], ye = { class: "flex items-center gap-4" }, be = {
12
81
  key: 0,
13
82
  class: "flex-1 max-w-[500px] min-w-[300px]"
14
- }, ve = { class: "flex flex-col gap-1" }, ye = { class: "flex items-center justify-between" }, be = { class: "text-xs font-medium text-[#262626]" }, xe = { class: "text-xs font-medium text-[#262626]" }, Se = { class: "w-full h-2 bg-slate-100 rounded-full overflow-hidden relative" }, Ce = { class: "absolute inset-0 flex items-center justify-center pointer-events-none" }, we = { class: "text-[10px] font-medium text-slate-600" }, Te = { class: "text-[10px] font-medium text-white" }, Ee = { class: "flex items-center justify-between" }, De = { class: "text-xs font-medium text-[#262626]" }, Oe = {
83
+ }, xe = { class: "flex flex-col gap-1" }, Se = { class: "flex items-center justify-between" }, Ce = { class: "text-xs font-medium text-[#262626]" }, we = {
15
84
  key: 0,
16
85
  class: "text-xs font-medium text-[#262626]"
17
- }, ke = { class: "flex items-center gap-2" }, Ae = {
86
+ }, Te = { class: "w-full h-2 bg-slate-100 rounded-full overflow-hidden relative" }, Ee = { class: "absolute inset-0 flex items-center justify-center pointer-events-none" }, De = { class: "text-[10px] font-medium text-slate-600" }, Oe = { class: "text-[10px] font-medium text-white" }, ke = { class: "flex items-center justify-between" }, Ae = {
87
+ key: 0,
88
+ class: "text-xs font-medium text-[#262626]"
89
+ }, je = {
90
+ key: 1,
91
+ class: "text-xs font-medium text-[#262626]"
92
+ }, Me = {
93
+ key: 2,
94
+ class: "text-xs font-medium text-[#262626]"
95
+ }, Ne = { class: "flex items-center gap-2" }, Pe = {
18
96
  key: 0,
19
97
  class: "flex items-center gap-2 mr-4"
20
- }, je = { class: "text-xs font-medium text-[#262626]" }, Me = { class: "flex items-center gap-2 w-[80px] justify-end" }, Ne = ["onClick"], Pe = ["onClick"], Fe = ["onClick"], Ie = ["src"], Le = ["onClick"], Re = ["src"], ze = {
98
+ }, Fe = { class: "text-xs font-medium text-[#262626]" }, Ie = { class: "flex items-center gap-2 justify-end" }, Le = ["onClick"], Re = ["onClick"], ze = ["src"], Be = ["onClick"], Ve = ["onClick"], He = ["src"], Ue = ["onClick"], We = ["src"], Ge = {
21
99
  key: 0,
22
100
  class: "absolute bottom-0 left-0 right-0 h-12 bg-gradient-to-t from-[#ffffff] to-transparent pointer-events-none"
23
- }, Be = {
101
+ }, Ke = {
24
102
  key: 1,
25
103
  class: "bg-[#ffffff] p-10 rounded-[8px] shadow-sm flex flex-col items-center justify-center text-center",
26
104
  style: { border: "1px solid #E5E6E9" }
27
- }, Ve = { class: "w-16 h-16 rounded-full bg-slate-50 flex items-center justify-center text-slate-400 mb-4" }, He = {
105
+ }, qe = { class: "w-16 h-16 rounded-full bg-slate-50 flex items-center justify-center text-slate-400 mb-4" }, Je = {
28
106
  key: 2,
29
107
  class: "flex items-center justify-center gap-2 mt-6"
30
- }, Ue = ["disabled"], We = { class: "text-sm font-bold text-[#262626]" }, Ge = ["disabled"], R = /* @__PURE__ */ c({
108
+ }, Ye = ["disabled"], Xe = { class: "text-sm font-bold text-[#262626]" }, Ze = ["disabled"], V = /* @__PURE__ */ c({
31
109
  __name: "PrepaidOrders",
32
110
  props: {
33
111
  orders: {},
@@ -38,7 +116,12 @@ var A = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
38
116
  isServerPagination: { type: Boolean },
39
117
  downloadStates: {},
40
118
  downloadStatusText: {},
41
- refundStates: {}
119
+ downloadPhases: {},
120
+ downloadButtonVisible: {},
121
+ contactSellerButtonVisible: {},
122
+ cancelDownloadButtonVisible: {},
123
+ refundStates: {},
124
+ controllableDeliveryTag: {}
42
125
  },
43
126
  emits: [
44
127
  "page-change",
@@ -47,85 +130,98 @@ var A = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
47
130
  "download",
48
131
  "pause-download",
49
132
  "resume-download",
133
+ "cancel-download",
50
134
  "open-file",
51
135
  "contact-seller",
52
136
  "request-refund",
53
137
  "request-after-sales"
54
138
  ],
55
- setup(t, { emit: c }) {
56
- let m = t, _ = c, b = (e) => e ? e.substring(0, 16) : "--", ee = (e, t) => {
57
- _("view-product", e, t);
58
- }, R = {
59
- idle: "下载数据",
60
- preparing: "资源加载中...",
61
- downloading: "下载中...",
62
- paused: "下载已暂停",
63
- decrypting: "解密中...",
64
- completed: "下载完成"
65
- }, z = (e, t) => m.downloadStates?.[`${e}-${t}`], B = (e) => m.downloadStatusText?.[e] || R[e], V = (e, t) => {
66
- let n = z(e, t);
139
+ setup(c, { emit: m }) {
140
+ let _ = c, b = m, ee = (e) => e ? e.substring(0, 16) : "--", k = (e, t) => {
141
+ b("view-product", e, t);
142
+ }, V = t(() => _.downloadPhases ?? j), H = (e, t) => _.downloadStates?.[`${e}-${t}`], U = (e) => M(e.status, V.value), W = (e) => U(e).role, G = (e) => {
143
+ let t = W(e);
144
+ return t === "in_progress" || t === "paused";
145
+ }, Qe = (e) => (U(e).barTone ?? "blue") === "green" ? "bg-green-600" : "bg-blue-600", $e = (e) => _.downloadStatusText?.[e] || M(e, V.value).label, K = (e) => typeof e.statusText == "string" && e.statusText.length > 0 ? e.statusText : $e(e.status), et = (e) => e.showBytes !== !1, tt = (e) => e.showEta !== !1, nt = (e) => typeof e.showSpeed == "boolean" ? e.showSpeed : e.status === "downloading" || W(e) === "paused", rt = (e, t) => {
146
+ let n = H(e, t);
67
147
  if (!n) return "0.00";
68
148
  let r = Number.parseFloat(n.fileSize || "0");
69
149
  return !Number.isFinite(r) || r <= 0 ? "0.00" : (n.progress * r / 100).toFixed(2);
70
- }, H = (e, t) => {
71
- let n = z(e, t);
72
- if (!n || n.status === "idle") {
73
- _("download", t);
150
+ }, it = (e, t) => {
151
+ let n = H(e, t);
152
+ if (!n || W(n) === "idle") {
153
+ b("download", t);
74
154
  return;
75
155
  }
76
- if (n.status === "paused") {
77
- _("resume-download", t);
156
+ if (W(n) === "paused") {
157
+ b("resume-download", t);
78
158
  return;
79
159
  }
80
- if (n.status === "completed") {
81
- _("open-file", t);
160
+ if (W(n) === "completed") {
161
+ b("open-file", t);
82
162
  return;
83
163
  }
84
- _("pause-download", t);
85
- }, U = f(""), W = f(!1), G = (e, t) => m.refundStates?.[`${e}-${t}`], K = (e) => !e.isExchange && !e.isGift, q = (e) => {
86
- U.value = e, W.value = !0;
87
- }, J = () => {
88
- let e = U.value;
164
+ b("pause-download", t);
165
+ }, q = f(""), J = f(!1), Y = (e, t) => _.refundStates?.[`${e}-${t}`], at = (e) => !e.isExchange && !e.isGift, ot = (e) => {
166
+ let t = e.status;
167
+ return t !== "已退款" && t !== "退款中";
168
+ }, st = (e, t) => {
169
+ let n = `${e.id}-${t}`, r = _.downloadButtonVisible?.[n];
170
+ return r === void 0 ? ot(e) : r;
171
+ }, ct = (e, t) => {
172
+ let n = `${e.id}-${t}`, r = _.contactSellerButtonVisible?.[n];
173
+ return r === void 0 ? !0 : r;
174
+ }, lt = (e, t) => {
175
+ let n = `${e.id}-${t}`;
176
+ if (_.cancelDownloadButtonVisible?.[n] !== !0) return !1;
177
+ let r = H(e.id, t);
178
+ if (!r) return !1;
179
+ let i = W(r);
180
+ return i === "in_progress" || i === "paused";
181
+ }, X = (e) => {
182
+ q.value = e, J.value = !0;
183
+ }, ut = () => {
184
+ let e = q.value;
89
185
  if (!e) {
90
- Y();
186
+ Z();
91
187
  return;
92
188
  }
93
- _("request-refund", e), Y();
94
- }, Y = () => {
95
- W.value = !1, U.value = "";
96
- }, X = (e) => {
97
- _("request-after-sales", e);
98
- }, Z = {
189
+ b("request-refund", e), Z();
190
+ }, Z = () => {
191
+ J.value = !1, q.value = "";
192
+ }, dt = (e) => {
193
+ b("request-after-sales", e);
194
+ }, ft = {
99
195
  已付款: "#3B82F6",
100
196
  待审核: "#F59E0B",
101
197
  审核通过: "#22C55E",
102
198
  退款中: "#3B82F6",
103
199
  已退款: "#22C55E",
104
200
  交易成功: "#22C55E"
105
- }, Ke = {
201
+ }, pt = {
106
202
  已付款: "已付款",
107
203
  待审核: "待审核",
108
204
  审核通过: "审核通过",
109
205
  退款中: "退款中",
110
206
  已退款: "已退款",
111
207
  交易成功: "交易成功"
112
- }, Q = (e) => Z[e] || "#262626", $ = (e) => Ke[e] || "";
113
- return (c, f) => (d(), i(e, null, [a("section", M, [t.orders.length > 0 ? (d(), i("div", N, [(d(!0), i(e, null, p(t.orders, (t) => (d(), i("div", {
114
- key: t.id,
208
+ }, Q = (e) => ft[e] || "#262626", $ = (e) => pt[e] || "";
209
+ return (t, f) => (d(), i(e, null, [a("section", ie, [c.orders.length > 0 ? (d(), i("div", ae, [(d(!0), i(e, null, p(c.orders, (m) => (d(), i("div", {
210
+ key: m.id,
115
211
  class: "bg-[#ffffff] rounded-[8px] shadow-sm overflow-hidden transition-all duration-300 hover:shadow-md",
116
212
  style: { border: "1px solid #E5E6E9" }
117
213
  }, [a("div", {
118
214
  class: "px-6 py-3 bg-[#ffffff] hover:bg-slate-50 cursor-pointer transition-all duration-200",
119
215
  style: { "border-bottom": "1px solid #E5E6E9" },
120
- onClick: (e) => c.$emit("view-detail", t)
121
- }, [a("div", ne, [a("div", F, [
122
- a("h3", I, "订单编号:" + h(t.orderNumber || t.id), 1),
123
- a("span", L, "共 " + h(t.products.length) + " 件商品", 1),
124
- t.createTime ? (d(), i("span", re, "购买时间: " + h(b(t.createTime)), 1)) : r("", !0),
216
+ onClick: (e) => t.$emit("view-detail", m)
217
+ }, [a("div", se, [a("div", ce, [
218
+ a("h3", le, "订单编号:" + h(m.orderNumber || m.id), 1),
219
+ a("span", ue, "共 " + h(m.products.length) + " 件商品", 1),
220
+ m.createTime ? (d(), i("span", de, "购买时间: " + h(ee(m.createTime)), 1)) : r("", !0),
125
221
  a("span", {
126
222
  class: "text-[12px] font-medium text-[#4749ad] flex items-center gap-1 hover:text-[#4749ad] transition-colors",
127
- onClick: y((e) => c.$emit("view-detail", t), ["stop"])
128
- }, [...f[3] ||= [o(" 订单详情 ", -1), a("svg", {
223
+ onClick: y((e) => t.$emit("view-detail", m), ["stop"])
224
+ }, [...f[4] ||= [o(" 订单详情 ", -1), a("svg", {
129
225
  xmlns: "http://www.w3.org/2000/svg",
130
226
  class: "h-3 w-3 text-[#4749ad]",
131
227
  fill: "none",
@@ -136,52 +232,46 @@ var A = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
136
232
  "stroke-linejoin": "round",
137
233
  "stroke-width": "2",
138
234
  d: "M9 5l7 7-7 7"
139
- })], -1)]], 8, ie)
140
- ]), a("div", ae, [a("p", oe, "实付金额:¥" + h(t.totalAmount.toFixed(2)), 1), $(t.status) ? (d(), i("span", {
235
+ })], -1)]], 8, F)
236
+ ]), a("div", I, [a("p", L, "实付金额:¥" + h(m.totalAmount.toFixed(2)), 1), $(m.status) ? (d(), i("span", {
141
237
  key: 0,
142
238
  class: "px-2 py-0.5 rounded-full text-[11px] font-bold min-w-[70px] text-center bg-transparent",
143
239
  style: u({
144
- color: Q(t.status),
145
- border: "1px solid " + Q(t.status)
240
+ color: Q(m.status),
241
+ border: "1px solid " + Q(m.status)
146
242
  })
147
- }, h($(t.status)), 5)) : r("", !0)])])], 8, P), a("div", se, [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", {
243
+ }, h($(m.status)), 5)) : r("", !0)])])], 8, oe), a("div", fe, [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", {
148
244
  key: o.id,
149
245
  class: "px-6 py-4 hover:bg-slate-50 transition-all duration-200 hover:shadow-sm cursor-pointer",
150
- onClick: (e) => ee(t, o)
151
- }, [a("div", le, [a("div", ue, [a("img", {
246
+ onClick: (e) => k(m, o)
247
+ }, [a("div", z, [a("div", B, [a("img", {
152
248
  src: o.image,
153
249
  alt: o.name,
154
250
  class: "w-full h-full object-cover"
155
- }, null, 8, de)]), a("div", fe, [a("div", pe, [a("div", me, [a("p", {
156
- class: "text-sm font-bold text-[#262626] truncate hover:text-[#3F69B4] transition-colors",
251
+ }, null, 8, pe)]), a("div", me, [a("div", he, [a("div", ge, [a("p", {
252
+ class: "text-sm font-bold text-[#262626] truncate hover:text-[#3F69B4] transition-colors min-w-0",
157
253
  title: o.name
158
- }, h(o.name), 9, he)]), a("div", ge, [z(t.id, o.id) && [
159
- "preparing",
160
- "downloading",
161
- "paused",
162
- "decrypting"
163
- ].includes(z(t.id, o.id).status) ? (d(), i("div", _e, [a("div", ve, [
164
- a("div", ye, [a("span", be, h(B(z(t.id, o.id).status)), 1), a("span", xe, h(V(t.id, o.id)) + " MB / " + h(z(t.id, o.id).fileSize), 1)]),
165
- a("div", Se, [
254
+ }, h(o.name), 9, _e), g(A)(o, c.controllableDeliveryTag) ? (d(), i("img", {
255
+ key: 0,
256
+ class: "umo-controllable-delivery-tag",
257
+ src: c.controllableDeliveryTag.src,
258
+ alt: c.controllableDeliveryTag?.alt || "可控交付",
259
+ onClick: f[0] ||= y(() => {}, ["stop"])
260
+ }, null, 8, ve)) : r("", !0)]), a("div", ye, [H(m.id, o.id) && G(H(m.id, o.id)) ? (d(), i("div", be, [a("div", xe, [
261
+ a("div", Se, [a("span", Ce, h(K(H(m.id, o.id))), 1), et(H(m.id, o.id)) ? (d(), i("span", we, h(rt(m.id, o.id)) + " MB / " + h(H(m.id, o.id).fileSize), 1)) : r("", !0)]),
262
+ a("div", Te, [
166
263
  a("div", {
167
- class: l(["h-full transition-all duration-300 ease-in-out", {
168
- "bg-blue-600": [
169
- "preparing",
170
- "downloading",
171
- "paused"
172
- ].includes(z(t.id, o.id).status),
173
- "bg-green-600": z(t.id, o.id).status === "decrypting"
174
- }]),
175
- style: u({ width: z(t.id, o.id).progress + "%" })
264
+ class: l(["h-full transition-all duration-300 ease-in-out", Qe(H(m.id, o.id))]),
265
+ style: u({ width: H(m.id, o.id).progress + "%" })
176
266
  }, null, 6),
177
- a("div", Ce, [a("span", we, h(z(t.id, o.id).progress) + "% ", 1)]),
267
+ a("div", Ee, [a("span", De, h(H(m.id, o.id).progress) + "% ", 1)]),
178
268
  a("div", {
179
269
  class: "absolute inset-0 flex items-center justify-center pointer-events-none overflow-hidden",
180
- style: u({ clipPath: `inset(0 ${100 - z(t.id, o.id).progress}% 0 0)` })
181
- }, [a("span", Te, h(z(t.id, o.id).progress) + "% ", 1)], 4)
270
+ style: u({ clipPath: `inset(0 ${100 - H(m.id, o.id).progress}% 0 0)` })
271
+ }, [a("span", Oe, h(H(m.id, o.id).progress) + "% ", 1)], 4)
182
272
  ]),
183
- a("div", Ee, [a("span", De, " 预计剩余: " + h(z(t.id, o.id).estimatedTime), 1), ["downloading", "paused"].includes(z(t.id, o.id).status) ? (d(), i("span", Oe, " 下载速度: " + h(z(t.id, o.id).speed) + " MB/s ", 1)) : r("", !0)])
184
- ])])) : r("", !0), a("div", ke, [z(t.id, o.id)?.status === "completed" ? (d(), i("div", Ae, [f[4] ||= a("div", { class: "w-4 h-4 rounded-full bg-green-100 flex items-center justify-center" }, [a("svg", {
273
+ a("div", ke, [tt(H(m.id, o.id)) ? (d(), i("span", Ae, " 预计剩余: " + h(H(m.id, o.id).estimatedTime), 1)) : (d(), i("span", je)), nt(H(m.id, o.id)) ? (d(), i("span", Me, " 下载速度: " + h(H(m.id, o.id).speed) + " MB/s ", 1)) : r("", !0)])
274
+ ])])) : r("", !0), a("div", Ne, [H(m.id, o.id) && W(H(m.id, o.id)) === "completed" ? (d(), i("div", Pe, [f[5] ||= a("div", { class: "w-4 h-4 rounded-full bg-green-100 flex items-center justify-center" }, [a("svg", {
185
275
  xmlns: "http://www.w3.org/2000/svg",
186
276
  class: "h-3 w-3 text-green-600",
187
277
  fill: "none",
@@ -192,76 +282,89 @@ var A = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
192
282
  "stroke-linejoin": "round",
193
283
  "stroke-width": "2",
194
284
  d: "M5 13l4 4L19 7"
195
- })])], -1), a("span", je, h(B("completed")), 1)])) : r("", !0), a("div", Me, [
196
- s(g(k), { content: "下载数据" }, {
197
- default: v(() => [t.status === "已退款" ? r("", !0) : (d(), i("button", {
285
+ })])], -1), a("span", Fe, h(K(H(m.id, o.id))), 1)])) : r("", !0), a("div", Ie, [
286
+ s(g(O), { content: "下载数据" }, {
287
+ default: v(() => [st(m, o.id) ? (d(), i("button", {
198
288
  key: 0,
199
289
  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",
200
- onClick: y((e) => H(t.id, o.id), ["stop"])
201
- }, [!z(t.id, o.id) || z(t.id, o.id)?.status === "idle" ? (d(), n(g(te), {
290
+ onClick: y((e) => it(m.id, o.id), ["stop"])
291
+ }, [!H(m.id, o.id) || W(H(m.id, o.id)) === "idle" ? (d(), n(g(C), {
202
292
  key: 0,
203
293
  size: "16",
204
294
  class: "text-[#4749ad]"
205
- })) : [
206
- "preparing",
207
- "downloading",
208
- "decrypting"
209
- ].includes(z(t.id, o.id).status) ? (d(), n(g(E), {
295
+ })) : W(H(m.id, o.id)) === "in_progress" ? (d(), n(g(ne), {
210
296
  key: 1,
211
297
  size: "16",
212
298
  class: "text-[#4749ad]"
213
- })) : z(t.id, o.id)?.status === "paused" ? (d(), n(g(D), {
299
+ })) : W(H(m.id, o.id)) === "paused" ? (d(), n(g(E), {
214
300
  key: 2,
215
301
  size: "16",
216
302
  class: "text-[#4749ad]"
217
- })) : z(t.id, o.id)?.status === "completed" ? (d(), n(g(w), {
303
+ })) : W(H(m.id, o.id)) === "completed" ? (d(), n(g(T), {
218
304
  key: 3,
219
305
  size: "16",
220
306
  class: "text-[#4749ad]"
221
- })) : r("", !0)], 8, Ne))]),
307
+ })) : r("", !0)], 8, Le)) : r("", !0)]),
222
308
  _: 2
223
309
  }, 1024),
224
- s(g(k), { content: "联系卖家" }, {
310
+ lt(m, o.id) ? (d(), n(g(O), {
311
+ key: 0,
312
+ content: "取消下载"
313
+ }, {
314
+ default: v(() => [a("button", {
315
+ 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",
316
+ onClick: y((e) => t.$emit("cancel-download", o.id), ["stop"])
317
+ }, [a("img", {
318
+ src: g(re),
319
+ alt: "取消下载",
320
+ class: "w-[18px] h-[18px]"
321
+ }, null, 8, ze)], 8, Re)]),
322
+ _: 2
323
+ }, 1024)) : r("", !0),
324
+ ct(m, o.id) ? (d(), n(g(O), {
325
+ key: 1,
326
+ content: "联系卖家"
327
+ }, {
225
328
  default: v(() => [a("button", {
226
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",
227
- onClick: y((e) => c.$emit("contact-seller", o.id), ["stop"])
228
- }, [s(g(T), {
330
+ onClick: y((e) => t.$emit("contact-seller", o.id), ["stop"])
331
+ }, [s(g(te), {
229
332
  size: "16",
230
333
  class: "text-[#4749ad]"
231
- })], 8, Pe)]),
334
+ })], 8, Be)]),
232
335
  _: 2
233
- }, 1024),
234
- K(t) ? (d(), i(e, { key: 0 }, [G(t.id, o.id) === "refundable" ? (d(), n(g(k), {
336
+ }, 1024)) : r("", !0),
337
+ at(m) ? (d(), i(e, { key: 2 }, [Y(m.id, o.id) === "refundable" ? (d(), n(g(O), {
235
338
  key: 0,
236
339
  content: "申请退款"
237
340
  }, {
238
341
  default: v(() => [a("button", {
239
342
  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",
240
- onClick: y((e) => q(o.id), ["stop"])
343
+ onClick: y((e) => X(o.id), ["stop"])
241
344
  }, [a("img", {
242
- src: g(A),
345
+ src: g(N),
243
346
  alt: "申请退款",
244
347
  class: "w-[18px] h-[18px]"
245
- }, null, 8, Ie)], 8, Fe)]),
348
+ }, null, 8, He)], 8, Ve)]),
246
349
  _: 2
247
- }, 1024)) : G(t.id, o.id) === "after_sales" ? (d(), n(g(k), {
350
+ }, 1024)) : Y(m.id, o.id) === "after_sales" ? (d(), n(g(O), {
248
351
  key: 1,
249
352
  content: "联系售后"
250
353
  }, {
251
354
  default: v(() => [a("button", {
252
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",
253
- onClick: y((e) => X(o.id), ["stop"])
356
+ onClick: y((e) => dt(o.id), ["stop"])
254
357
  }, [a("img", {
255
- src: g(j),
358
+ src: g(P),
256
359
  alt: "联系售后",
257
360
  class: "w-[18px] h-[18px]"
258
- }, null, 8, Re)], 8, Le)]),
361
+ }, null, 8, We)], 8, Ue)]),
259
362
  _: 2
260
363
  }, 1024)) : r("", !0)], 64)) : r("", !0)
261
- ])])])])])])], 8, ce))), 128))], 2), t.products.length > 3 ? (d(), i("div", ze)) : r("", !0)])]))), 128))])) : (d(), i("div", Be, [a("div", Ve, [s(g(C), { size: "24" })]), f[5] ||= a("h3", { class: "text-lg font-bold text-[#262626] mb-6" }, "暂无订单", -1)])), t.totalPages > 1 ? (d(), i("div", He, [
364
+ ])])])])])])], 8, R))), 128))], 2), m.products.length > 3 ? (d(), i("div", Ge)) : r("", !0)])]))), 128))])) : (d(), i("div", Ke, [a("div", qe, [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", Je, [
262
365
  a("button", {
263
- onClick: f[0] ||= (e) => c.$emit("page-change", t.currentPage - 1, t.pageSize),
264
- disabled: t.currentPage === 1,
366
+ onClick: f[1] ||= (e) => t.$emit("page-change", c.currentPage - 1, c.pageSize),
367
+ disabled: c.currentPage === 1,
265
368
  class: "w-8 h-8 hover:bg-slate-50 disabled:opacity-50 disabled:cursor-not-allowed transition-all flex items-center justify-center",
266
369
  style: {
267
370
  "border-radius": "8px",
@@ -269,11 +372,11 @@ var A = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
269
372
  height: "32px",
270
373
  border: "1px solid #d1d5db"
271
374
  }
272
- }, [s(g(x), { size: "16" })], 8, Ue),
273
- a("span", We, h(t.currentPage) + " / " + h(t.totalPages), 1),
375
+ }, [s(g(x), { size: "16" })], 8, Ye),
376
+ a("span", Xe, h(c.currentPage) + " / " + h(c.totalPages), 1),
274
377
  a("button", {
275
- onClick: f[1] ||= (e) => c.$emit("page-change", t.currentPage + 1, t.pageSize),
276
- disabled: t.currentPage === t.totalPages,
378
+ onClick: f[2] ||= (e) => t.$emit("page-change", c.currentPage + 1, c.pageSize),
379
+ disabled: c.currentPage === c.totalPages,
277
380
  class: "w-8 h-8 hover:bg-slate-50 disabled:opacity-50 disabled:cursor-not-allowed transition-all flex items-center justify-center",
278
381
  style: {
279
382
  "border-radius": "8px",
@@ -281,34 +384,34 @@ var A = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
281
384
  height: "32px",
282
385
  border: "1px solid #d1d5db"
283
386
  }
284
- }, [s(g(S), { size: "16" })], 8, Ge)
285
- ])) : r("", !0)]), s(g(O), {
286
- visible: W.value,
287
- "onUpdate:visible": f[2] ||= (e) => W.value = e,
387
+ }, [s(g(S), { size: "16" })], 8, Ze)
388
+ ])) : r("", !0)]), s(g(D), {
389
+ visible: J.value,
390
+ "onUpdate:visible": f[3] ||= (e) => J.value = e,
288
391
  title: "申请退款",
289
392
  footer: !1,
290
393
  "mask-closable": !1,
291
394
  width: 448,
292
395
  "modal-style": { borderRadius: "8px" },
293
- onCancel: Y
396
+ onCancel: Z
294
397
  }, {
295
- 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", {
398
+ 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", {
296
399
  style: { border: "none" },
297
400
  class: "px-4 py-2 text-sm text-[#262626] rounded-md hover:bg-slate-50 transition-colors cursor-pointer",
298
- onClick: Y
401
+ onClick: Z
299
402
  }, "取消"), a("button", {
300
403
  style: { border: "none" },
301
404
  class: "px-4 py-2 text-sm text-white bg-[#4749ad] rounded-md hover:opacity-90 transition-colors cursor-pointer",
302
- onClick: J
405
+ onClick: ut
303
406
  }, "确认")])]),
304
407
  _: 1
305
408
  }, 8, ["visible"])], 64));
306
409
  }
307
- }), z = (e, t) => {
410
+ }), H = (e, t) => {
308
411
  let n = e.__vccOpts || e;
309
412
  for (let [e, r] of t) n[e] = r;
310
413
  return n;
311
- }, B = /* @__PURE__ */ z(R, [["__scopeId", "data-v-54548955"]]), V = { class: "order-management bg-[#F6F4F0] text-[#262626] font-[PingFangSC]" }, H = /* @__PURE__ */ z(/* @__PURE__ */ c({
414
+ }, U = /* @__PURE__ */ H(V, [["__scopeId", "data-v-caa1651e"]]), W = { class: "order-management bg-[#F6F4F0] text-[#262626] font-[PingFangSC]" }, G = /* @__PURE__ */ H(/* @__PURE__ */ c({
312
415
  __name: "OrderManagement",
313
416
  props: {
314
417
  orders: {},
@@ -325,13 +428,18 @@ var A = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
325
428
  onDownload: {},
326
429
  onPauseDownload: {},
327
430
  onResumeDownload: {},
431
+ onCancelDownload: {},
328
432
  onOpenFile: {},
329
433
  onContactSeller: {},
330
434
  onRequestRefund: {},
331
435
  onRequestAfterSales: {},
332
436
  downloadStates: {},
333
437
  downloadStatusText: {},
334
- refundStates: {}
438
+ downloadButtonVisible: {},
439
+ contactSellerButtonVisible: {},
440
+ cancelDownloadButtonVisible: {},
441
+ refundStates: {},
442
+ controllableDeliveryTag: {}
335
443
  },
336
444
  setup(e) {
337
445
  let n = e, r = f(n.currentOrderPage), a = t(() => n.currentOrderPage ?? r.value), o = t(() => n.orderItemsPerPage ?? 10);
@@ -355,7 +463,7 @@ var A = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
355
463
  }), h = t(() => n.serverPagination ? n.totalOrderCount : u.value.length);
356
464
  return _(() => n.currentOrderPage, (e) => {
357
465
  r.value = e ?? 1;
358
- }), (t, r) => (d(), i("div", V, [s(B, {
466
+ }), (t, r) => (d(), i("div", W, [s(U, {
359
467
  orders: p.value,
360
468
  "total-orders": h.value,
361
469
  "current-page": a.value,
@@ -364,17 +472,22 @@ var A = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
364
472
  "is-server-pagination": n.serverPagination,
365
473
  "download-states": n.downloadStates,
366
474
  "download-status-text": n.downloadStatusText,
475
+ "download-button-visible": n.downloadButtonVisible,
476
+ "contact-seller-button-visible": n.contactSellerButtonVisible,
477
+ "cancel-download-button-visible": n.cancelDownloadButtonVisible,
367
478
  "refund-states": n.refundStates,
479
+ "controllable-delivery-tag": n.controllableDeliveryTag,
368
480
  onPageChange: l,
369
481
  onViewDetail: r[0] ||= (t) => e.onViewDetail?.(t),
370
482
  onViewProduct: r[1] ||= (t, n) => e.onViewProduct?.(t, n),
371
483
  onDownload: r[2] ||= (t) => e.onDownload?.(t),
372
484
  onPauseDownload: r[3] ||= (t) => e.onPauseDownload?.(t),
373
485
  onResumeDownload: r[4] ||= (t) => e.onResumeDownload?.(t),
374
- onOpenFile: r[5] ||= (t) => e.onOpenFile?.(t),
375
- onContactSeller: r[6] ||= (t) => e.onContactSeller?.(t),
376
- onRequestRefund: r[7] ||= (t) => e.onRequestRefund?.(t),
377
- onRequestAfterSales: r[8] ||= (t) => e.onRequestAfterSales?.(t)
486
+ onCancelDownload: r[5] ||= (t) => e.onCancelDownload?.(t),
487
+ onOpenFile: r[6] ||= (t) => e.onOpenFile?.(t),
488
+ onContactSeller: r[7] ||= (t) => e.onContactSeller?.(t),
489
+ onRequestRefund: r[8] ||= (t) => e.onRequestRefund?.(t),
490
+ onRequestAfterSales: r[9] ||= (t) => e.onRequestAfterSales?.(t)
378
491
  }, null, 8, [
379
492
  "orders",
380
493
  "total-orders",
@@ -384,10 +497,14 @@ var A = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
384
497
  "is-server-pagination",
385
498
  "download-states",
386
499
  "download-status-text",
387
- "refund-states"
500
+ "download-button-visible",
501
+ "contact-seller-button-visible",
502
+ "cancel-download-button-visible",
503
+ "refund-states",
504
+ "controllable-delivery-tag"
388
505
  ])]));
389
506
  }
390
- }), [["__scopeId", "data-v-3199584e"]]), U = { class: "order-detail space-y-8 bg-[#ffffff] font-[PingFangSC]" }, W = {
507
+ }), [["__scopeId", "data-v-d8eab2e7"]]), Qe = { class: "order-detail space-y-8 bg-[#ffffff] font-[PingFangSC]" }, $e = {
391
508
  class: "bg-[#ffffff] rounded-[8px] shadow-sm",
392
509
  style: {
393
510
  border: "1px solid #E5E6E9",
@@ -396,138 +513,223 @@ var A = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
396
513
  "padding-left": "24px",
397
514
  "padding-right": "24px"
398
515
  }
399
- }, G = { class: "space-y-3" }, K = { class: "flex justify-between" }, q = { class: "text-[12px] font-medium text-[#262626]" }, J = { class: "flex justify-between items-center" }, Y = { class: "flex justify-between" }, X = { class: "text-[12px] font-medium text-[#262626]" }, Z = { class: "text-[12px] font-medium text-[#262626]" }, Ke = {
516
+ }, K = { class: "space-y-3" }, et = { class: "flex justify-between" }, tt = { class: "text-[12px] font-medium text-[#262626]" }, nt = { class: "flex justify-between items-center" }, rt = { class: "flex justify-between" }, it = { class: "text-[12px] font-medium text-[#262626]" }, q = { class: "text-[12px] font-medium text-[#262626]" }, J = {
400
517
  key: 0,
401
518
  class: "flex justify-between"
402
- }, Q = { class: "text-[12px] font-medium text-[#262626]" }, $ = {
519
+ }, Y = { class: "text-[12px] font-medium text-[#262626]" }, at = {
403
520
  key: 1,
404
521
  class: "flex justify-between"
405
- }, qe = { class: "text-[12px] font-medium text-[#262626]" }, Je = {
522
+ }, ot = { class: "text-[12px] font-medium text-[#262626]" }, st = {
406
523
  class: "text-[18px] font-bold text-[#262626]",
407
524
  style: { "font-weight": "700" }
408
- }, Ye = {
525
+ }, ct = {
409
526
  class: "bg-[#ffffff] rounded-[8px] shadow-sm",
410
527
  style: {
411
528
  border: "1px solid #E5E6E9",
412
529
  "padding-top": "24px",
413
530
  "padding-bottom": "24px"
414
531
  }
415
- }, 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" }, it = {
532
+ }, lt = { class: "space-y-4" }, X = { class: "w-12 h-12 rounded overflow-hidden flex-shrink-0" }, ut = ["src", "alt"], Z = { class: "flex-1 min-w-0" }, dt = { class: "flex items-center justify-between mb-2 gap-2 min-w-0" }, ft = { class: "flex items-center min-w-0 flex-1" }, pt = ["title", "onClick"], Q = ["src", "alt"], $ = { class: "text-[11px] font-medium text-[#8D8C8B]" }, mt = { class: "flex items-center gap-2 shrink-0" }, ht = {
416
533
  key: 0,
417
534
  class: "text-xs font-medium text-[#262626]"
418
- }, at = ["onClick"], ot = {
535
+ }, gt = ["onClick"], _t = ["onClick"], vt = ["src"], yt = ["onClick"], bt = ["src"], xt = {
419
536
  key: 0,
420
537
  class: "px-6"
421
- }, st = {
538
+ }, St = {
422
539
  class: "mt-4 pt-4 px-6",
423
540
  style: { "border-top": "1px solid #E5E6E9" }
424
- }, ct = { class: "flex justify-end items-center gap-2" }, lt = { class: "text-sm font-bold text-[#262626]" }, ut = {
541
+ }, Ct = { class: "flex justify-end items-center gap-2" }, wt = { class: "text-sm font-bold text-[#262626]" }, Tt = {
425
542
  key: 0,
426
543
  class: "mt-2 text-xs font-medium text-[#262626] text-right"
427
- }, dt = {
544
+ }, Et = {
428
545
  key: 0,
429
546
  class: "bg-[#ffffff] rounded-[8px] shadow-sm p-6",
430
547
  style: { border: "1px solid #E5E6E9" }
431
- }, ft = /* @__PURE__ */ z(/* @__PURE__ */ c({
548
+ }, Dt = /* @__PURE__ */ H(/* @__PURE__ */ c({
432
549
  __name: "OrderDetail",
433
- props: { order: {} },
434
- emits: ["contact-seller", "view-product"],
550
+ props: {
551
+ order: {},
552
+ refundStates: {},
553
+ contactSellerButtonVisible: {},
554
+ controllableDeliveryTag: {}
555
+ },
556
+ emits: [
557
+ "contact-seller",
558
+ "view-product",
559
+ "request-refund",
560
+ "request-after-sales"
561
+ ],
435
562
  setup(c, { emit: l }) {
436
- let _ = c, y = l, x = f(!1), S = t(() => _.order.products && _.order.products.length > 5), te = t(() => _.order.products ? x.value ? _.order.products : _.order.products.slice(0, 5) : []), C = () => {
437
- x.value = !x.value;
438
- }, w = (e) => {
439
- y("contact-seller", e);
563
+ let _ = c, x = l, S = f(!1), C = f(""), w = f(!1), T = (e) => _.refundStates?.[`${_.order.id}-${e}`], ne = (e) => {
564
+ let t = `${_.order.id}-${e}`, n = _.contactSellerButtonVisible?.[t];
565
+ return n === void 0 ? !0 : n;
440
566
  }, E = (e) => {
441
- y("view-product", _.order, e);
442
- }, D = (e, t) => e ? e.length <= t ? e : e.substring(0, t) + "..." : "", O = (e) => {
567
+ C.value = e, w.value = !0;
568
+ }, k = () => {
569
+ let e = C.value;
570
+ if (!e) {
571
+ j();
572
+ return;
573
+ }
574
+ x("request-refund", e), j();
575
+ }, j = () => {
576
+ w.value = !1, C.value = "";
577
+ }, M = (e) => {
578
+ x("request-after-sales", e);
579
+ }, re = t(() => _.order.products && _.order.products.length > 5), ie = t(() => _.order.products ? S.value ? _.order.products : _.order.products.slice(0, 5) : []), ae = () => {
580
+ S.value = !S.value;
581
+ }, oe = (e) => {
582
+ x("contact-seller", e);
583
+ }, se = (e) => {
584
+ x("view-product", _.order, e);
585
+ }, ce = (e, t) => e ? e.length <= t ? e : e.substring(0, t) + "..." : "", le = (e) => {
443
586
  if (!e) return "";
444
587
  let t = new Date(e);
445
588
  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")}`;
446
- }, A = (e) => M(e) ? "购买时间" : N(e) ? "兑换时间" : P(e) ? "发放时间" : "购买时间", j = (e) => e.createTime ? e.createTime : e.exchangeTime ? e.exchangeTime : e.issueTime ? e.issueTime : e.createTime || "", M = (e) => !e.isExchange && !e.isGift, N = (e) => e.isExchange, P = (e) => e.isGift, ne = {
589
+ }, ue = (e) => F(e) ? "购买时间" : I(e) ? "兑换时间" : L(e) ? "发放时间" : "购买时间", de = (e) => e.createTime ? e.createTime : e.exchangeTime ? e.exchangeTime : e.issueTime ? e.issueTime : e.createTime || "", F = (e) => !e.isExchange && !e.isGift, I = (e) => !!e.isExchange, L = (e) => !!e.isGift, fe = {
447
590
  已付款: "#3B82F6",
448
591
  待审核: "#F59E0B",
449
592
  审核通过: "#22C55E",
450
593
  退款中: "#3B82F6",
451
594
  已退款: "#22C55E",
452
595
  交易成功: "#22C55E"
453
- }, F = {
596
+ }, R = {
454
597
  已付款: "已付款",
455
598
  待审核: "待审核",
456
599
  审核通过: "审核通过",
457
600
  退款中: "退款中",
458
601
  已退款: "已退款",
459
602
  交易成功: "交易成功"
460
- }, I = (e) => ne[e] || "#262626", L = (e) => F[e] || "";
461
- return (t, l) => (d(), i("section", U, [
462
- l[7] ||= a("h2", {
603
+ }, z = (e) => fe[e] || "#262626", B = (e) => R[e] || "";
604
+ return (t, l) => (d(), i(e, null, [a("section", Qe, [
605
+ l[9] ||= a("h2", {
463
606
  class: "text-[18px] font-bold text-[#262626]",
464
607
  style: { "font-weight": "700" }
465
608
  }, "订单信息", -1),
466
- a("div", W, [a("div", G, [
467
- a("div", K, [l[0] ||= a("span", { class: "text-[12px] font-medium text-[#262626]" }, "订单编号", -1), a("span", q, h(c.order.orderNumber || c.order.id), 1)]),
468
- a("div", J, [l[1] ||= a("span", { class: "text-[12px] font-medium text-[#262626]" }, "交易状态", -1), L(c.order.status) ? (d(), i("span", {
609
+ a("div", $e, [a("div", K, [
610
+ a("div", et, [l[2] ||= a("span", { class: "text-[12px] font-medium text-[#262626]" }, "订单编号", -1), a("span", tt, h(c.order.orderNumber || c.order.id), 1)]),
611
+ a("div", nt, [l[3] ||= a("span", { class: "text-[12px] font-medium text-[#262626]" }, "交易状态", -1), B(c.order.status) ? (d(), i("span", {
469
612
  key: 0,
470
613
  class: "px-2 py-0.5 rounded-full text-[11px] font-bold min-w-[70px] text-center bg-transparent",
471
614
  style: u({
472
- color: I(c.order.status),
473
- border: "1px solid " + I(c.order.status)
615
+ color: z(c.order.status),
616
+ border: "1px solid " + z(c.order.status)
474
617
  })
475
- }, h(L(c.order.status)), 5)) : r("", !0)]),
476
- a("div", Y, [a("span", X, h(A(c.order)), 1), a("span", Z, h(O(j(c.order))), 1)]),
477
- M(c.order) ? (d(), i("div", Ke, [l[2] ||= a("span", { class: "text-[12px] font-medium text-[#262626]" }, "支付方式", -1), a("span", Q, h(c.order.paymentMethod || "在线支付"), 1)])) : r("", !0),
478
- N(c.order) ? (d(), i("div", $, [l[3] ||= a("span", { class: "text-[12px] font-medium text-[#262626]" }, "兑换码", -1), a("span", qe, h(c.order.exchangeCode || "ABCD-1234-EFGH-5678"), 1)])) : r("", !0)
618
+ }, h(B(c.order.status)), 5)) : r("", !0)]),
619
+ a("div", rt, [a("span", it, h(ue(c.order)), 1), a("span", q, h(le(de(c.order))), 1)]),
620
+ F(c.order) ? (d(), i("div", J, [l[4] ||= a("span", { class: "text-[12px] font-medium text-[#262626]" }, "支付方式", -1), a("span", Y, h(c.order.paymentMethod || "在线支付"), 1)])) : r("", !0),
621
+ I(c.order) ? (d(), i("div", at, [l[5] ||= a("span", { class: "text-[12px] font-medium text-[#262626]" }, "兑换码", -1), a("span", ot, h(c.order.exchangeCode || "ABCD-1234-EFGH-5678"), 1)])) : r("", !0)
479
622
  ])]),
480
- a("h2", Je, "产品信息(共" + h(c.order.products ? c.order.products.length : 0) + "件)", 1),
481
- a("div", Ye, [a("div", Xe, [(d(!0), i(e, null, p(te.value, (e, t) => (d(), i("div", {
482
- key: e.id,
623
+ a("h2", st, "产品信息(共" + h(c.order.products ? c.order.products.length : 0) + "件)", 1),
624
+ a("div", ct, [a("div", lt, [(d(!0), i(e, null, p(ie.value, (t, o) => (d(), i("div", {
625
+ key: t.id,
483
626
  class: "flex items-start gap-4 px-6 py-4 w-full hover:bg-slate-50 transition-all duration-200 hover:shadow-sm"
484
627
  }, [
485
- a("div", Ze, [a("img", {
486
- src: e.image,
487
- alt: e.name,
628
+ a("div", X, [a("img", {
629
+ src: t.image,
630
+ alt: t.name,
488
631
  class: "w-full h-full object-cover"
489
- }, null, 8, Qe)]),
490
- a("div", $e, [a("div", et, [a("p", {
491
- class: "text-sm font-bold text-[#262626] flex-1 cursor-pointer hover:text-[#3F69B4] transition-colors",
492
- title: e.name,
493
- onClick: (t) => E(e)
494
- }, h(D(e.name, 35)), 9, tt)]), a("div", nt, [
495
- a("span", null, "文件后缀:" + h(e.metadata?.fileSuffix || "pdf"), 1),
496
- l[4] ||= a("span", { class: "mx-2" }, "|", -1),
497
- a("span", null, "数据标识:" + h(e.metadata?.dataId || "D1757042744151521"), 1),
498
- l[5] ||= a("span", { class: "mx-2" }, "|", -1),
499
- a("span", null, "文件大小:" + h(e.metadata?.fileSize || "2.8MB"), 1)
632
+ }, null, 8, ut)]),
633
+ a("div", Z, [a("div", dt, [a("div", ft, [a("p", {
634
+ class: "text-sm font-bold text-[#262626] truncate cursor-pointer hover:text-[#3F69B4] transition-colors min-w-0",
635
+ title: t.name,
636
+ onClick: (e) => se(t)
637
+ }, h(ce(t.name, 35)), 9, pt), g(A)(t, c.controllableDeliveryTag) ? (d(), i("img", {
638
+ key: 0,
639
+ class: "umo-controllable-delivery-tag",
640
+ src: c.controllableDeliveryTag.src,
641
+ alt: c.controllableDeliveryTag?.alt || "可控交付",
642
+ onClick: l[0] ||= y(() => {}, ["stop"])
643
+ }, null, 8, Q)) : r("", !0)])]), a("div", $, [
644
+ a("span", null, "文件后缀:" + h(t.metadata?.fileSuffix || "pdf"), 1),
645
+ l[6] ||= a("span", { class: "mx-2" }, "|", -1),
646
+ a("span", null, "数据标识:" + h(t.metadata?.dataId || "D1757042744151521"), 1),
647
+ l[7] ||= a("span", { class: "mx-2" }, "|", -1),
648
+ a("span", null, "文件大小:" + h(t.metadata?.fileSize || "2.8MB"), 1)
500
649
  ])]),
501
- a("div", rt, [M(c.order) && e.price ? (d(), i("span", it, "¥" + h(e.price.toFixed(2)), 1)) : r("", !0), s(g(k), { content: "联系卖家" }, {
502
- default: v(() => [a("button", {
503
- 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",
504
- onClick: (t) => w(e.id)
505
- }, [s(g(T), {
506
- size: "16",
507
- class: "text-[#4749ad]"
508
- })], 8, at)]),
509
- _: 2
510
- }, 1024)])
511
- ]))), 128)), S.value ? (d(), i("div", ot, [a("button", {
512
- onClick: C,
650
+ a("div", mt, [
651
+ F(c.order) && t.price ? (d(), i("span", ht, "¥" + h(t.price.toFixed(2)), 1)) : r("", !0),
652
+ ne(t.id) ? (d(), n(g(O), {
653
+ key: 1,
654
+ content: "联系卖家"
655
+ }, {
656
+ default: v(() => [a("button", {
657
+ 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",
658
+ onClick: (e) => oe(t.id)
659
+ }, [s(g(te), {
660
+ size: "16",
661
+ class: "text-[#4749ad]"
662
+ })], 8, gt)]),
663
+ _: 2
664
+ }, 1024)) : r("", !0),
665
+ F(c.order) ? (d(), i(e, { key: 2 }, [T(t.id) === "refundable" ? (d(), n(g(O), {
666
+ key: 0,
667
+ content: "申请退款"
668
+ }, {
669
+ default: v(() => [a("button", {
670
+ 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",
671
+ onClick: (e) => E(t.id)
672
+ }, [a("img", {
673
+ src: g(N),
674
+ alt: "申请退款",
675
+ class: "w-[18px] h-[18px]"
676
+ }, null, 8, vt)], 8, _t)]),
677
+ _: 2
678
+ }, 1024)) : T(t.id) === "after_sales" ? (d(), n(g(O), {
679
+ key: 1,
680
+ content: "联系售后"
681
+ }, {
682
+ default: v(() => [a("button", {
683
+ 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",
684
+ onClick: (e) => M(t.id)
685
+ }, [a("img", {
686
+ src: g(P),
687
+ alt: "联系售后",
688
+ class: "w-[18px] h-[18px]"
689
+ }, null, 8, bt)], 8, yt)]),
690
+ _: 2
691
+ }, 1024)) : r("", !0)], 64)) : r("", !0)
692
+ ])
693
+ ]))), 128)), re.value ? (d(), i("div", xt, [a("button", {
694
+ onClick: ae,
513
695
  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]",
514
696
  style: {
515
697
  "text-align": "right",
516
698
  "margin-left": "auto"
517
699
  }
518
- }, [o(h(x.value ? "收起" : "展开全部") + " ", 1), x.value ? (d(), n(g(ee), {
700
+ }, [o(h(S.value ? "收起" : "展开全部") + " ", 1), S.value ? (d(), n(g(ee), {
519
701
  key: 0,
520
702
  size: "16"
521
703
  })) : (d(), n(g(b), {
522
704
  key: 1,
523
705
  size: "16"
524
- }))])])) : r("", !0)]), a("div", st, [a("div", ct, [l[6] ||= a("span", { class: "text-[12px] font-medium text-[#262626]" }, "总计", -1), a("span", lt, " ¥" + h(c.order.totalAmount ? c.order.totalAmount.toFixed(2) : "0.00"), 1)]), P(c.order) ? (d(), i("div", ut, " 本订单产品为平台赠送,无实际支付金额 ")) : r("", !0)])]),
525
- t.$slots["host-extra"] ? (d(), i("div", dt, [m(t.$slots, "host-extra", {}, void 0, !0)])) : r("", !0)
526
- ]));
706
+ }))])])) : r("", !0)]), a("div", St, [a("div", Ct, [l[8] ||= a("span", { class: "text-[12px] font-medium text-[#262626]" }, "总计", -1), a("span", wt, " ¥" + h(c.order.totalAmount ? c.order.totalAmount.toFixed(2) : "0.00"), 1)]), L(c.order) ? (d(), i("div", Tt, " 本订单产品为平台赠送,无实际支付金额 ")) : r("", !0)])]),
707
+ t.$slots["host-extra"] ? (d(), i("div", Et, [m(t.$slots, "host-extra", {}, void 0, !0)])) : r("", !0)
708
+ ]), s(g(D), {
709
+ visible: w.value,
710
+ "onUpdate:visible": l[1] ||= (e) => w.value = e,
711
+ title: "申请退款",
712
+ footer: !1,
713
+ "mask-closable": !1,
714
+ width: 448,
715
+ "modal-style": { borderRadius: "8px" },
716
+ onCancel: j
717
+ }, {
718
+ 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", {
719
+ style: { border: "none" },
720
+ class: "px-4 py-2 text-sm text-[#262626] rounded-md hover:bg-slate-50 transition-colors cursor-pointer",
721
+ onClick: j
722
+ }, "取消"), a("button", {
723
+ style: { border: "none" },
724
+ class: "px-4 py-2 text-sm text-white bg-[#4749ad] rounded-md hover:opacity-90 transition-colors cursor-pointer",
725
+ onClick: k
726
+ }, "确认")])]),
727
+ _: 1
728
+ }, 8, ["visible"])], 64));
527
729
  }
528
- }), [["__scopeId", "data-v-729f1680"]]), pt = {
529
- OrderManagement: H,
530
- OrderDetailPanel: ft
730
+ }), [["__scopeId", "data-v-9393bfca"]]), Ot = {
731
+ OrderManagement: G,
732
+ OrderDetailPanel: Dt
531
733
  };
532
734
  //#endregion
533
- export { ft as OrderDetailPanel, H as OrderManagement, pt as userMyOrder };
735
+ export { Dt as OrderDetailPanel, G as OrderManagement, k as isProductControllableDelivery, A as shouldShowControllableDeliveryTag, Ot as userMyOrder };