@polyv/product-ui 1.0.0-rc-20250612.3
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.
- package/address-edit.cjs.js +8 -0
- package/address-edit.es.d.ts +3 -0
- package/address-edit.es.js +5908 -0
- package/address-edit.umd.js +8 -0
- package/address-item.cjs.js +8 -0
- package/address-item.es.d.ts +3 -0
- package/address-item.es.js +425 -0
- package/address-item.umd.js +8 -0
- package/address-list.cjs.js +9 -0
- package/address-list.es.d.ts +3 -0
- package/address-list.es.js +1908 -0
- package/address-list.umd.js +9 -0
- package/index.cjs.js +8 -0
- package/index.es.js +15347 -0
- package/index.umd.js +8 -0
- package/mobile-product-pendant.cjs.js +8 -0
- package/mobile-product-pendant.es.d.ts +3 -0
- package/mobile-product-pendant.es.js +813 -0
- package/mobile-product-pendant.umd.js +8 -0
- package/order-confirm.cjs.js +9 -0
- package/order-confirm.es.d.ts +3 -0
- package/order-confirm.es.js +5254 -0
- package/order-confirm.umd.js +9 -0
- package/order-detail.cjs.js +8 -0
- package/order-detail.es.d.ts +3 -0
- package/order-detail.es.js +2474 -0
- package/order-detail.umd.js +8 -0
- package/order-item.cjs.js +8 -0
- package/order-item.es.d.ts +3 -0
- package/order-item.es.js +1448 -0
- package/order-item.umd.js +8 -0
- package/order-list-popup.cjs.js +9 -0
- package/order-list-popup.es.d.ts +3 -0
- package/order-list-popup.es.js +4114 -0
- package/order-list-popup.umd.js +9 -0
- package/order-list.cjs.js +8 -0
- package/order-list.es.d.ts +3 -0
- package/order-list.es.js +2572 -0
- package/order-list.umd.js +9 -0
- package/order-popup.cjs.js +9 -0
- package/order-popup.es.d.ts +3 -0
- package/order-popup.es.js +8050 -0
- package/order-popup.umd.js +9 -0
- package/package.json +28 -0
- package/pc-product-pendant.cjs.js +9 -0
- package/pc-product-pendant.es.d.ts +3 -0
- package/pc-product-pendant.es.js +1604 -0
- package/pc-product-pendant.umd.js +9 -0
- package/product-button.cjs.js +9 -0
- package/product-button.es.d.ts +3 -0
- package/product-button.es.js +1882 -0
- package/product-button.umd.js +9 -0
- package/product-detail-popup.cjs.js +9 -0
- package/product-detail-popup.es.d.ts +3 -0
- package/product-detail-popup.es.js +8250 -0
- package/product-detail-popup.umd.js +9 -0
- package/product-detail.cjs.js +9 -0
- package/product-detail.es.d.ts +3 -0
- package/product-detail.es.js +8082 -0
- package/product-detail.umd.js +9 -0
- package/product-iframe-link-popup.cjs.js +9 -0
- package/product-iframe-link-popup.es.d.ts +3 -0
- package/product-iframe-link-popup.es.js +2209 -0
- package/product-iframe-link-popup.umd.js +9 -0
- package/product-item.cjs.js +8 -0
- package/product-item.es.d.ts +3 -0
- package/product-item.es.js +3700 -0
- package/product-item.umd.js +9 -0
- package/product-list-popup.cjs.js +9 -0
- package/product-list-popup.es.d.ts +3 -0
- package/product-list-popup.es.js +5302 -0
- package/product-list-popup.umd.js +9 -0
- package/product-list.cjs.js +9 -0
- package/product-list.es.d.ts +3 -0
- package/product-list.es.js +5189 -0
- package/product-list.umd.js +9 -0
package/order-list.es.js
ADDED
|
@@ -0,0 +1,2572 @@
|
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode('@font-face{font-family:D-DIN-PRO-Regular;src:url(https://s4.videocc.net/font/D-DIN-PRO-400-Regular.otf)}@font-face{font-family:D-DIN-PRO-Medium;src:url(https://s4.videocc.net/font/D-DIN-PRO-500-Medium.otf)}@font-face{font-family:D-DIN-PRO-Bold;src:url(https://s4.videocc.net/font/D-DIN-PRO-700-Bold.otf)}.plv-product-c-order-status-tab{display:flex;gap:4px;align-items:center;height:auto;min-height:36px;overflow:auto hidden;margin:0 -12px;padding:8px 12px;color:#999;scrollbar-width:none;-ms-overflow-style:none;scroll-behavior:smooth}.plv-product-c-order-status-tab::-webkit-scrollbar{display:none}.plv-product-c-order-status-tab__item{position:relative;flex:none;padding:8px 16px;background-color:transparent;color:#999;font-size:14px;white-space:nowrap;cursor:pointer}.plv-product-c-order-status-tab__item--active{color:#333}.plv-product-c-order-status-tab__item--active:after{position:absolute;bottom:1px;left:50%;width:16px;height:2px;border-radius:2px;background-color:#ff5252;transform:translate(-50%);content:""}@font-face{font-family:D-DIN-PRO-Regular;src:url(https://s4.videocc.net/font/D-DIN-PRO-400-Regular.otf)}@font-face{font-family:D-DIN-PRO-Medium;src:url(https://s4.videocc.net/font/D-DIN-PRO-500-Medium.otf)}@font-face{font-family:D-DIN-PRO-Bold;src:url(https://s4.videocc.net/font/D-DIN-PRO-700-Bold.otf)}.plv-product-c-item__tag-container{box-sizing:border-box;margin-right:4px;padding:0 1px;border:.5px solid rgba(0,0,0,.2);border-radius:2px;color:#0009;font-size:12px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.plv-product-c-item__tag{display:inline-block;transform:scale(.833);user-select:none}@font-face{font-family:D-DIN-PRO-Regular;src:url(https://s4.videocc.net/font/D-DIN-PRO-400-Regular.otf)}@font-face{font-family:D-DIN-PRO-Medium;src:url(https://s4.videocc.net/font/D-DIN-PRO-500-Medium.otf)}@font-face{font-family:D-DIN-PRO-Bold;src:url(https://s4.videocc.net/font/D-DIN-PRO-700-Bold.otf)}.plv-product-c-purchase-product{display:flex;overflow:hidden;padding:10px 12px;border-radius:8px;background:#fff}.plv-product-c-purchase-product__image{flex:none;width:100px;height:100px;margin-right:8px;border-radius:4px;object-fit:cover}.plv-product-c-purchase-product__info{display:flex;flex:1;flex-direction:column;justify-content:space-between;min-width:0}.plv-product-c-purchase-product__name{color:#000c;font-size:14px;font-weight:500;display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical}.plv-product-c-purchase-product__tags{display:flex;margin-top:6px}.plv-product-c-purchase-product__description{margin-top:6px;color:#0006;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.plv-product-c-purchase-product__price-symbol{color:#333;font-size:12px}.plv-product-c-purchase-product__price-value{color:#333;font-size:18px}@font-face{font-family:D-DIN-PRO-Regular;src:url(https://s4.videocc.net/font/D-DIN-PRO-400-Regular.otf)}@font-face{font-family:D-DIN-PRO-Medium;src:url(https://s4.videocc.net/font/D-DIN-PRO-500-Medium.otf)}@font-face{font-family:D-DIN-PRO-Bold;src:url(https://s4.videocc.net/font/D-DIN-PRO-700-Bold.otf)}.plv-product-order-item{margin:8px 12px;padding:10px 12px 16px;border-radius:8px;background-color:#fff}.plv-product-order-item:first-child{margin-top:0}.plv-product-order-item__main .plv-product-c-purchase-product{padding:0}.plv-product-order-item__footer{padding-top:10px}.plv-product-order-item__actions-summary{display:flex;justify-content:space-between;align-items:center}.plv-product-order-item__left{display:flex;align-items:center}.plv-product-order-item__status-text{color:#666;font-size:14px}.plv-product-order-item__status-text--highlight{color:#ff5252}.plv-product-order-item__countdown{margin-left:8px;color:#ff5252}.plv-product-order-item__total{margin-bottom:12px;text-align:right}.plv-product-order-item__total-symbol{margin-right:2px;color:#999;font-size:14px;vertical-align:middle}.plv-product-order-item__total-value{color:#333;font-size:18px;vertical-align:middle}.plv-product-order-item__buttons{display:flex;gap:8px}.plv-product-order-item__button{box-sizing:border-box;max-width:150px;height:32px;padding:0 20px;border:1px solid rgba(0,0,0,.1);border-radius:22px;background-color:transparent;color:#000c;font-size:14px;line-height:32px;text-align:center;cursor:pointer;outline:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.plv-product-order-item__button--highlight{border-color:#ff5252;background:#ff5252;color:#fff}@font-face{font-family:D-DIN-PRO-Regular;src:url(https://s4.videocc.net/font/D-DIN-PRO-400-Regular.otf)}@font-face{font-family:D-DIN-PRO-Medium;src:url(https://s4.videocc.net/font/D-DIN-PRO-500-Medium.otf)}@font-face{font-family:D-DIN-PRO-Bold;src:url(https://s4.videocc.net/font/D-DIN-PRO-700-Bold.otf)}.plv-font-din-pro-regular{font-family:D-DIN-PRO-Regular,sans-serif}.plv-font-din-pro-medium{font-family:D-DIN-PRO-Medium,sans-serif}.plv-font-din-pro-bold{font-family:D-DIN-PRO-Bold,sans-serif}.plv-product-order-list{display:flex;flex-direction:column;height:100%;overflow:hidden auto}.plv-product-order-list__status-tab{position:sticky;top:0;z-index:1;flex-shrink:0;background:#f7f8fa}.plv-product-order-list__items-container{position:relative;flex:1;min-height:0;padding-top:8px}.plv-product-order-list__empty{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%;min-height:300px}.plv-product-order-list__empty-icon{display:flex;justify-content:center;color:#e1e5e8;font-size:70px}.plv-product-order-list__empty-text{margin-top:16px;color:#999;font-size:12px;text-align:center}')),document.head.appendChild(t)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}}();
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __spreadValues = (a2, b2) => {
|
|
10
|
+
for (var prop in b2 || (b2 = {}))
|
|
11
|
+
if (__hasOwnProp.call(b2, prop))
|
|
12
|
+
__defNormalProp(a2, prop, b2[prop]);
|
|
13
|
+
if (__getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(b2)) {
|
|
15
|
+
if (__propIsEnum.call(b2, prop))
|
|
16
|
+
__defNormalProp(a2, prop, b2[prop]);
|
|
17
|
+
}
|
|
18
|
+
return a2;
|
|
19
|
+
};
|
|
20
|
+
var __spreadProps = (a2, b2) => __defProps(a2, __getOwnPropDescs(b2));
|
|
21
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
22
|
+
var __async = (__this, __arguments, generator) => {
|
|
23
|
+
return new Promise((resolve, reject) => {
|
|
24
|
+
var fulfilled = (value) => {
|
|
25
|
+
try {
|
|
26
|
+
step(generator.next(value));
|
|
27
|
+
} catch (e) {
|
|
28
|
+
reject(e);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
var rejected = (value) => {
|
|
32
|
+
try {
|
|
33
|
+
step(generator.throw(value));
|
|
34
|
+
} catch (e) {
|
|
35
|
+
reject(e);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var step = (x2) => x2.done ? resolve(x2.value) : Promise.resolve(x2.value).then(fulfilled, rejected);
|
|
39
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
import { onMounted, onBeforeUnmount, inject, computed, ref, provide, onBeforeUpdate, nextTick, defineComponent, watch } from "vue";
|
|
43
|
+
/*!
|
|
44
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
45
|
+
*
|
|
46
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
47
|
+
* Released under the MIT License.
|
|
48
|
+
*/
|
|
49
|
+
function isObject$1(o2) {
|
|
50
|
+
return Object.prototype.toString.call(o2) === "[object Object]";
|
|
51
|
+
}
|
|
52
|
+
function isPlainObject(o2) {
|
|
53
|
+
var ctor, prot;
|
|
54
|
+
if (isObject$1(o2) === false) return false;
|
|
55
|
+
ctor = o2.constructor;
|
|
56
|
+
if (ctor === void 0) return true;
|
|
57
|
+
prot = ctor.prototype;
|
|
58
|
+
if (isObject$1(prot) === false) return false;
|
|
59
|
+
if (prot.hasOwnProperty("isPrototypeOf") === false) {
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
var define_process_env_default = {};
|
|
65
|
+
function t() {
|
|
66
|
+
return t = Object.assign ? Object.assign.bind() : function(e2) {
|
|
67
|
+
for (var t2 = 1; t2 < arguments.length; t2++) {
|
|
68
|
+
var n2 = arguments[t2];
|
|
69
|
+
for (var r2 in n2) Object.prototype.hasOwnProperty.call(n2, r2) && (e2[r2] = n2[r2]);
|
|
70
|
+
}
|
|
71
|
+
return e2;
|
|
72
|
+
}, t.apply(this, arguments);
|
|
73
|
+
}
|
|
74
|
+
function n(e2, t2) {
|
|
75
|
+
if (null == e2) return {};
|
|
76
|
+
var n2 = {};
|
|
77
|
+
for (var r2 in e2) if (Object.prototype.hasOwnProperty.call(e2, r2)) {
|
|
78
|
+
if (t2.indexOf(r2) >= 0) continue;
|
|
79
|
+
n2[r2] = e2[r2];
|
|
80
|
+
}
|
|
81
|
+
return n2;
|
|
82
|
+
}
|
|
83
|
+
const r = { silent: false, logLevel: "warn" }, i = ["validator"], o = Object.prototype, a = o.toString, s = o.hasOwnProperty, u = /^\s*function (\w+)/;
|
|
84
|
+
function l(e2) {
|
|
85
|
+
var t2;
|
|
86
|
+
const n2 = null !== (t2 = null == e2 ? void 0 : e2.type) && void 0 !== t2 ? t2 : e2;
|
|
87
|
+
if (n2) {
|
|
88
|
+
const e3 = n2.toString().match(u);
|
|
89
|
+
return e3 ? e3[1] : "";
|
|
90
|
+
}
|
|
91
|
+
return "";
|
|
92
|
+
}
|
|
93
|
+
const c = isPlainObject;
|
|
94
|
+
function f() {
|
|
95
|
+
}
|
|
96
|
+
let d = f;
|
|
97
|
+
if ("production" !== define_process_env_default.NODE_ENV) {
|
|
98
|
+
const e2 = "undefined" != typeof console;
|
|
99
|
+
d = e2 ? function(e3, t2 = r.logLevel) {
|
|
100
|
+
false === r.silent && console[t2](`[VueTypes warn]: ${e3}`);
|
|
101
|
+
} : f;
|
|
102
|
+
}
|
|
103
|
+
const p = (e2, t2) => s.call(e2, t2), y = Number.isInteger || function(e2) {
|
|
104
|
+
return "number" == typeof e2 && isFinite(e2) && Math.floor(e2) === e2;
|
|
105
|
+
}, v = Array.isArray || function(e2) {
|
|
106
|
+
return "[object Array]" === a.call(e2);
|
|
107
|
+
}, h = (e2) => "[object Function]" === a.call(e2), b = (e2, t2) => c(e2) && p(e2, "_vueTypes_name") && (!t2 || e2._vueTypes_name === t2), g = (e2) => c(e2) && (p(e2, "type") || ["_vueTypes_name", "validator", "default", "required"].some((t2) => p(e2, t2)));
|
|
108
|
+
function O(e2, t2) {
|
|
109
|
+
return Object.defineProperty(e2.bind(t2), "__original", { value: e2 });
|
|
110
|
+
}
|
|
111
|
+
function m(e2, t2, n2 = false) {
|
|
112
|
+
let r2, i2 = true, o2 = "";
|
|
113
|
+
r2 = c(e2) ? e2 : { type: e2 };
|
|
114
|
+
const a2 = b(r2) ? r2._vueTypes_name + " - " : "";
|
|
115
|
+
if (g(r2) && null !== r2.type) {
|
|
116
|
+
if (void 0 === r2.type || true === r2.type) return i2;
|
|
117
|
+
if (!r2.required && null == t2) return i2;
|
|
118
|
+
v(r2.type) ? (i2 = r2.type.some((e3) => true === m(e3, t2, true)), o2 = r2.type.map((e3) => l(e3)).join(" or ")) : (o2 = l(r2), i2 = "Array" === o2 ? v(t2) : "Object" === o2 ? c(t2) : "String" === o2 || "Number" === o2 || "Boolean" === o2 || "Function" === o2 ? function(e3) {
|
|
119
|
+
if (null == e3) return "";
|
|
120
|
+
const t3 = e3.constructor.toString().match(u);
|
|
121
|
+
return t3 ? t3[1].replace(/^Async/, "") : "";
|
|
122
|
+
}(t2) === o2 : t2 instanceof r2.type);
|
|
123
|
+
}
|
|
124
|
+
if (!i2) {
|
|
125
|
+
const e3 = `${a2}value "${t2}" should be of type "${o2}"`;
|
|
126
|
+
return false === n2 ? (d(e3), false) : e3;
|
|
127
|
+
}
|
|
128
|
+
if (p(r2, "validator") && h(r2.validator)) {
|
|
129
|
+
const e3 = d, o3 = [];
|
|
130
|
+
if (d = (e4) => {
|
|
131
|
+
o3.push(e4);
|
|
132
|
+
}, i2 = r2.validator(t2), d = e3, !i2) {
|
|
133
|
+
const e4 = (o3.length > 1 ? "* " : "") + o3.join("\n* ");
|
|
134
|
+
return o3.length = 0, false === n2 ? (d(e4), i2) : e4;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return i2;
|
|
138
|
+
}
|
|
139
|
+
function j(e2, t2) {
|
|
140
|
+
const n2 = Object.defineProperties(t2, { _vueTypes_name: { value: e2, writable: true }, isRequired: { get() {
|
|
141
|
+
return this.required = true, this;
|
|
142
|
+
} }, def: { value(e3) {
|
|
143
|
+
return void 0 === e3 ? this.type === Boolean || Array.isArray(this.type) && this.type.includes(Boolean) ? void (this.default = void 0) : (p(this, "default") && delete this.default, this) : h(e3) || true === m(this, e3, true) ? (this.default = v(e3) ? () => [...e3] : c(e3) ? () => Object.assign({}, e3) : e3, this) : (d(`${this._vueTypes_name} - invalid default value: "${e3}"`), this);
|
|
144
|
+
} } }), { validator: r2 } = n2;
|
|
145
|
+
return h(r2) && (n2.validator = O(r2, n2)), n2;
|
|
146
|
+
}
|
|
147
|
+
function _(e2, t2) {
|
|
148
|
+
const n2 = j(e2, t2);
|
|
149
|
+
return Object.defineProperty(n2, "validate", { value(e3) {
|
|
150
|
+
return h(this.validator) && d(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:
|
|
151
|
+
${JSON.stringify(this)}`), this.validator = O(e3, this), this;
|
|
152
|
+
} });
|
|
153
|
+
}
|
|
154
|
+
function T(e2, t2, r2) {
|
|
155
|
+
const o2 = function(e3) {
|
|
156
|
+
const t3 = {};
|
|
157
|
+
return Object.getOwnPropertyNames(e3).forEach((n2) => {
|
|
158
|
+
t3[n2] = Object.getOwnPropertyDescriptor(e3, n2);
|
|
159
|
+
}), Object.defineProperties({}, t3);
|
|
160
|
+
}(t2);
|
|
161
|
+
if (o2._vueTypes_name = e2, !c(r2)) return o2;
|
|
162
|
+
const { validator: a2 } = r2, s2 = n(r2, i);
|
|
163
|
+
if (h(a2)) {
|
|
164
|
+
let { validator: e3 } = o2;
|
|
165
|
+
e3 && (e3 = null !== (l2 = (u2 = e3).__original) && void 0 !== l2 ? l2 : u2), o2.validator = O(e3 ? function(t3) {
|
|
166
|
+
return e3.call(this, t3) && a2.call(this, t3);
|
|
167
|
+
} : a2, o2);
|
|
168
|
+
}
|
|
169
|
+
var u2, l2;
|
|
170
|
+
return Object.assign(o2, s2);
|
|
171
|
+
}
|
|
172
|
+
function $(e2) {
|
|
173
|
+
return e2.replace(/^(?!\s*$)/gm, " ");
|
|
174
|
+
}
|
|
175
|
+
const w = () => _("any", {}), x = () => _("function", { type: Function }), P = () => _("boolean", { type: Boolean }), A = () => _("string", { type: String }), E = () => _("number", { type: Number }), S = () => _("array", { type: Array }), N = () => _("object", { type: Object }), V = () => j("integer", { type: Number, validator(e2) {
|
|
176
|
+
const t2 = y(e2);
|
|
177
|
+
return false === t2 && d(`integer - "${e2}" is not an integer`), t2;
|
|
178
|
+
} }), q = () => j("symbol", { validator(e2) {
|
|
179
|
+
const t2 = "symbol" == typeof e2;
|
|
180
|
+
return false === t2 && d(`symbol - invalid value "${e2}"`), t2;
|
|
181
|
+
} }), k = () => Object.defineProperty({ type: null, validator(e2) {
|
|
182
|
+
const t2 = null === e2;
|
|
183
|
+
return false === t2 && d("nullable - value should be null"), t2;
|
|
184
|
+
} }, "_vueTypes_name", { value: "nullable" });
|
|
185
|
+
function D(e2, t2 = "custom validation failed") {
|
|
186
|
+
if ("function" != typeof e2) throw new TypeError("[VueTypes error]: You must provide a function as argument");
|
|
187
|
+
return j(e2.name || "<<anonymous function>>", { type: null, validator(n2) {
|
|
188
|
+
const r2 = e2(n2);
|
|
189
|
+
return r2 || d(`${this._vueTypes_name} - ${t2}`), r2;
|
|
190
|
+
} });
|
|
191
|
+
}
|
|
192
|
+
function L(e2) {
|
|
193
|
+
if (!v(e2)) throw new TypeError("[VueTypes error]: You must provide an array as argument.");
|
|
194
|
+
const t2 = `oneOf - value should be one of "${e2.map((e3) => "symbol" == typeof e3 ? e3.toString() : e3).join('", "')}".`, n2 = { validator(n3) {
|
|
195
|
+
const r2 = -1 !== e2.indexOf(n3);
|
|
196
|
+
return r2 || d(t2), r2;
|
|
197
|
+
} };
|
|
198
|
+
if (-1 === e2.indexOf(null)) {
|
|
199
|
+
const t3 = e2.reduce((e3, t4) => {
|
|
200
|
+
if (null != t4) {
|
|
201
|
+
const n3 = t4.constructor;
|
|
202
|
+
-1 === e3.indexOf(n3) && e3.push(n3);
|
|
203
|
+
}
|
|
204
|
+
return e3;
|
|
205
|
+
}, []);
|
|
206
|
+
t3.length > 0 && (n2.type = t3);
|
|
207
|
+
}
|
|
208
|
+
return j("oneOf", n2);
|
|
209
|
+
}
|
|
210
|
+
function B(e2) {
|
|
211
|
+
if (!v(e2)) throw new TypeError("[VueTypes error]: You must provide an array as argument");
|
|
212
|
+
let t2 = false, n2 = false, r2 = [];
|
|
213
|
+
for (let i3 = 0; i3 < e2.length; i3 += 1) {
|
|
214
|
+
const o2 = e2[i3];
|
|
215
|
+
if (g(o2)) {
|
|
216
|
+
if (h(o2.validator) && (t2 = true), b(o2, "oneOf") && o2.type) {
|
|
217
|
+
r2 = r2.concat(o2.type);
|
|
218
|
+
continue;
|
|
219
|
+
}
|
|
220
|
+
if (b(o2, "nullable")) {
|
|
221
|
+
n2 = true;
|
|
222
|
+
continue;
|
|
223
|
+
}
|
|
224
|
+
if (true === o2.type || !o2.type) {
|
|
225
|
+
d('oneOfType - invalid usage of "true" and "null" as types.');
|
|
226
|
+
continue;
|
|
227
|
+
}
|
|
228
|
+
r2 = r2.concat(o2.type);
|
|
229
|
+
} else r2.push(o2);
|
|
230
|
+
}
|
|
231
|
+
r2 = r2.filter((e3, t3) => r2.indexOf(e3) === t3);
|
|
232
|
+
const i2 = false === n2 && r2.length > 0 ? r2 : null;
|
|
233
|
+
return j("oneOfType", t2 ? { type: i2, validator(t3) {
|
|
234
|
+
const n3 = [], r3 = e2.some((e3) => {
|
|
235
|
+
const r4 = m(e3, t3, true);
|
|
236
|
+
return "string" == typeof r4 && n3.push(r4), true === r4;
|
|
237
|
+
});
|
|
238
|
+
return r3 || d(`oneOfType - provided value does not match any of the ${n3.length} passed-in validators:
|
|
239
|
+
${$(n3.join("\n"))}`), r3;
|
|
240
|
+
} } : { type: i2 });
|
|
241
|
+
}
|
|
242
|
+
function F(e2) {
|
|
243
|
+
return j("arrayOf", { type: Array, validator(t2) {
|
|
244
|
+
let n2 = "";
|
|
245
|
+
const r2 = t2.every((t3) => (n2 = m(e2, t3, true), true === n2));
|
|
246
|
+
return r2 || d(`arrayOf - value validation error:
|
|
247
|
+
${$(n2)}`), r2;
|
|
248
|
+
} });
|
|
249
|
+
}
|
|
250
|
+
function Y(e2) {
|
|
251
|
+
return j("instanceOf", { type: e2 });
|
|
252
|
+
}
|
|
253
|
+
function I(e2) {
|
|
254
|
+
return j("objectOf", { type: Object, validator(t2) {
|
|
255
|
+
let n2 = "";
|
|
256
|
+
const r2 = Object.keys(t2).every((r3) => (n2 = m(e2, t2[r3], true), true === n2));
|
|
257
|
+
return r2 || d(`objectOf - value validation error:
|
|
258
|
+
${$(n2)}`), r2;
|
|
259
|
+
} });
|
|
260
|
+
}
|
|
261
|
+
function J(e2) {
|
|
262
|
+
const t2 = Object.keys(e2), n2 = t2.filter((t3) => {
|
|
263
|
+
var n3;
|
|
264
|
+
return !(null === (n3 = e2[t3]) || void 0 === n3 || !n3.required);
|
|
265
|
+
}), r2 = j("shape", { type: Object, validator(r3) {
|
|
266
|
+
if (!c(r3)) return false;
|
|
267
|
+
const i2 = Object.keys(r3);
|
|
268
|
+
if (n2.length > 0 && n2.some((e3) => -1 === i2.indexOf(e3))) {
|
|
269
|
+
const e3 = n2.filter((e4) => -1 === i2.indexOf(e4));
|
|
270
|
+
return d(1 === e3.length ? `shape - required property "${e3[0]}" is not defined.` : `shape - required properties "${e3.join('", "')}" are not defined.`), false;
|
|
271
|
+
}
|
|
272
|
+
return i2.every((n3) => {
|
|
273
|
+
if (-1 === t2.indexOf(n3)) return true === this._vueTypes_isLoose || (d(`shape - shape definition does not include a "${n3}" property. Allowed keys: "${t2.join('", "')}".`), false);
|
|
274
|
+
const i3 = m(e2[n3], r3[n3], true);
|
|
275
|
+
return "string" == typeof i3 && d(`shape - "${n3}" property validation error:
|
|
276
|
+
${$(i3)}`), true === i3;
|
|
277
|
+
});
|
|
278
|
+
} });
|
|
279
|
+
return Object.defineProperty(r2, "_vueTypes_isLoose", { writable: true, value: false }), Object.defineProperty(r2, "loose", { get() {
|
|
280
|
+
return this._vueTypes_isLoose = true, this;
|
|
281
|
+
} }), r2;
|
|
282
|
+
}
|
|
283
|
+
const M = ["name", "validate", "getter"], R = /* @__PURE__ */ ((e2) => ((e2 = class {
|
|
284
|
+
static get any() {
|
|
285
|
+
return w();
|
|
286
|
+
}
|
|
287
|
+
static get func() {
|
|
288
|
+
return x().def(this.defaults.func);
|
|
289
|
+
}
|
|
290
|
+
static get bool() {
|
|
291
|
+
return void 0 === this.defaults.bool ? P() : P().def(this.defaults.bool);
|
|
292
|
+
}
|
|
293
|
+
static get string() {
|
|
294
|
+
return A().def(this.defaults.string);
|
|
295
|
+
}
|
|
296
|
+
static get number() {
|
|
297
|
+
return E().def(this.defaults.number);
|
|
298
|
+
}
|
|
299
|
+
static get array() {
|
|
300
|
+
return S().def(this.defaults.array);
|
|
301
|
+
}
|
|
302
|
+
static get object() {
|
|
303
|
+
return N().def(this.defaults.object);
|
|
304
|
+
}
|
|
305
|
+
static get integer() {
|
|
306
|
+
return V().def(this.defaults.integer);
|
|
307
|
+
}
|
|
308
|
+
static get symbol() {
|
|
309
|
+
return q();
|
|
310
|
+
}
|
|
311
|
+
static get nullable() {
|
|
312
|
+
return k();
|
|
313
|
+
}
|
|
314
|
+
static extend(e3) {
|
|
315
|
+
if (d("VueTypes.extend is deprecated. Use the ES6+ method instead. See https://dwightjack.github.io/vue-types/advanced/extending-vue-types.html#extending-namespaced-validators-in-es6 for details."), v(e3)) return e3.forEach((e4) => this.extend(e4)), this;
|
|
316
|
+
const { name: t2, validate: r2 = false, getter: i2 = false } = e3, o2 = n(e3, M);
|
|
317
|
+
if (p(this, t2)) throw new TypeError(`[VueTypes error]: Type "${t2}" already defined`);
|
|
318
|
+
const { type: a2 } = o2;
|
|
319
|
+
if (b(a2)) return delete o2.type, Object.defineProperty(this, t2, i2 ? { get: () => T(t2, a2, o2) } : { value(...e4) {
|
|
320
|
+
const n2 = T(t2, a2, o2);
|
|
321
|
+
return n2.validator && (n2.validator = n2.validator.bind(n2, ...e4)), n2;
|
|
322
|
+
} });
|
|
323
|
+
let s2;
|
|
324
|
+
return s2 = i2 ? { get() {
|
|
325
|
+
const e4 = Object.assign({}, o2);
|
|
326
|
+
return r2 ? _(t2, e4) : j(t2, e4);
|
|
327
|
+
}, enumerable: true } : { value(...e4) {
|
|
328
|
+
const n2 = Object.assign({}, o2);
|
|
329
|
+
let i3;
|
|
330
|
+
return i3 = r2 ? _(t2, n2) : j(t2, n2), n2.validator && (i3.validator = n2.validator.bind(i3, ...e4)), i3;
|
|
331
|
+
}, enumerable: true }, Object.defineProperty(this, t2, s2);
|
|
332
|
+
}
|
|
333
|
+
}).defaults = {}, e2.sensibleDefaults = void 0, e2.config = r, e2.custom = D, e2.oneOf = L, e2.instanceOf = Y, e2.oneOfType = B, e2.arrayOf = F, e2.objectOf = I, e2.shape = J, e2.utils = { validate: (e3, t2) => true === m(t2, e3, true), toType: (e3, t2, n2 = false) => n2 ? _(e3, t2) : j(e3, t2) }, e2))();
|
|
334
|
+
function U(e2 = { func: () => {
|
|
335
|
+
}, bool: true, string: "", number: 0, array: () => [], object: () => ({}), integer: 0 }) {
|
|
336
|
+
var n2;
|
|
337
|
+
return (n2 = class extends R {
|
|
338
|
+
static get sensibleDefaults() {
|
|
339
|
+
return t({}, this.defaults);
|
|
340
|
+
}
|
|
341
|
+
static set sensibleDefaults(n3) {
|
|
342
|
+
this.defaults = false !== n3 ? t({}, true !== n3 ? n3 : e2) : {};
|
|
343
|
+
}
|
|
344
|
+
}).defaults = t({}, e2), n2;
|
|
345
|
+
}
|
|
346
|
+
class z extends U() {
|
|
347
|
+
}
|
|
348
|
+
class PropUtils {
|
|
349
|
+
/** String 类型,默认:'' */
|
|
350
|
+
static get string() {
|
|
351
|
+
return A().def("");
|
|
352
|
+
}
|
|
353
|
+
/** String 类型,默认:undefined */
|
|
354
|
+
static get looseString() {
|
|
355
|
+
return A();
|
|
356
|
+
}
|
|
357
|
+
/** Number 类型,默认:0 */
|
|
358
|
+
static get number() {
|
|
359
|
+
return E().def(0);
|
|
360
|
+
}
|
|
361
|
+
/** Number 类型,默认:undefined */
|
|
362
|
+
static get looseNumber() {
|
|
363
|
+
return E();
|
|
364
|
+
}
|
|
365
|
+
/** Boolean 类型,默认:true */
|
|
366
|
+
static get bool() {
|
|
367
|
+
return P().def(true);
|
|
368
|
+
}
|
|
369
|
+
static get looseBool() {
|
|
370
|
+
return B([]).def(void 0);
|
|
371
|
+
}
|
|
372
|
+
static get looseElement() {
|
|
373
|
+
return B([]).def(void 0);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
__publicField(PropUtils, "objectType", N);
|
|
377
|
+
/** Array 类型,默认:[] */
|
|
378
|
+
__publicField(PropUtils, "array", () => {
|
|
379
|
+
return S().def([]);
|
|
380
|
+
});
|
|
381
|
+
/** Object 类型 */
|
|
382
|
+
__publicField(PropUtils, "object", N);
|
|
383
|
+
/** Function 类型 */
|
|
384
|
+
__publicField(PropUtils, "func", x);
|
|
385
|
+
/** 指定为数组中的值 */
|
|
386
|
+
__publicField(PropUtils, "oneOf", L);
|
|
387
|
+
/** 自定义类型 */
|
|
388
|
+
__publicField(PropUtils, "oneOfType", B);
|
|
389
|
+
/** 枚举类型 */
|
|
390
|
+
__publicField(PropUtils, "enum", A);
|
|
391
|
+
/** 任意类型 */
|
|
392
|
+
__publicField(PropUtils, "any", w);
|
|
393
|
+
const emitFunc = () => () => true;
|
|
394
|
+
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
395
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
396
|
+
var root = freeGlobal || freeSelf || Function("return this")();
|
|
397
|
+
var Symbol$1 = root.Symbol;
|
|
398
|
+
var objectProto$4 = Object.prototype;
|
|
399
|
+
var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
|
|
400
|
+
var nativeObjectToString$1 = objectProto$4.toString;
|
|
401
|
+
var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : void 0;
|
|
402
|
+
function getRawTag(value) {
|
|
403
|
+
var isOwn = hasOwnProperty$3.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
404
|
+
try {
|
|
405
|
+
value[symToStringTag$1] = void 0;
|
|
406
|
+
var unmasked = true;
|
|
407
|
+
} catch (e) {
|
|
408
|
+
}
|
|
409
|
+
var result = nativeObjectToString$1.call(value);
|
|
410
|
+
if (unmasked) {
|
|
411
|
+
if (isOwn) {
|
|
412
|
+
value[symToStringTag$1] = tag;
|
|
413
|
+
} else {
|
|
414
|
+
delete value[symToStringTag$1];
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
return result;
|
|
418
|
+
}
|
|
419
|
+
var objectProto$3 = Object.prototype;
|
|
420
|
+
var nativeObjectToString = objectProto$3.toString;
|
|
421
|
+
function objectToString(value) {
|
|
422
|
+
return nativeObjectToString.call(value);
|
|
423
|
+
}
|
|
424
|
+
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
|
425
|
+
var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : void 0;
|
|
426
|
+
function baseGetTag(value) {
|
|
427
|
+
if (value == null) {
|
|
428
|
+
return value === void 0 ? undefinedTag : nullTag;
|
|
429
|
+
}
|
|
430
|
+
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
431
|
+
}
|
|
432
|
+
function isObjectLike(value) {
|
|
433
|
+
return value != null && typeof value == "object";
|
|
434
|
+
}
|
|
435
|
+
var symbolTag = "[object Symbol]";
|
|
436
|
+
function isSymbol(value) {
|
|
437
|
+
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
|
|
438
|
+
}
|
|
439
|
+
function arrayMap(array, iteratee) {
|
|
440
|
+
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
441
|
+
while (++index < length) {
|
|
442
|
+
result[index] = iteratee(array[index], index, array);
|
|
443
|
+
}
|
|
444
|
+
return result;
|
|
445
|
+
}
|
|
446
|
+
var isArray = Array.isArray;
|
|
447
|
+
var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
|
|
448
|
+
function baseToString(value) {
|
|
449
|
+
if (typeof value == "string") {
|
|
450
|
+
return value;
|
|
451
|
+
}
|
|
452
|
+
if (isArray(value)) {
|
|
453
|
+
return arrayMap(value, baseToString) + "";
|
|
454
|
+
}
|
|
455
|
+
if (isSymbol(value)) {
|
|
456
|
+
return symbolToString ? symbolToString.call(value) : "";
|
|
457
|
+
}
|
|
458
|
+
var result = value + "";
|
|
459
|
+
return result == "0" && 1 / value == -Infinity ? "-0" : result;
|
|
460
|
+
}
|
|
461
|
+
var reWhitespace = /\s/;
|
|
462
|
+
function trimmedEndIndex(string) {
|
|
463
|
+
var index = string.length;
|
|
464
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {
|
|
465
|
+
}
|
|
466
|
+
return index;
|
|
467
|
+
}
|
|
468
|
+
var reTrimStart = /^\s+/;
|
|
469
|
+
function baseTrim(string) {
|
|
470
|
+
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
471
|
+
}
|
|
472
|
+
function isObject(value) {
|
|
473
|
+
var type = typeof value;
|
|
474
|
+
return value != null && (type == "object" || type == "function");
|
|
475
|
+
}
|
|
476
|
+
var NAN = 0 / 0;
|
|
477
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
478
|
+
var reIsBinary = /^0b[01]+$/i;
|
|
479
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
|
480
|
+
var freeParseInt = parseInt;
|
|
481
|
+
function toNumber(value) {
|
|
482
|
+
if (typeof value == "number") {
|
|
483
|
+
return value;
|
|
484
|
+
}
|
|
485
|
+
if (isSymbol(value)) {
|
|
486
|
+
return NAN;
|
|
487
|
+
}
|
|
488
|
+
if (isObject(value)) {
|
|
489
|
+
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
490
|
+
value = isObject(other) ? other + "" : other;
|
|
491
|
+
}
|
|
492
|
+
if (typeof value != "string") {
|
|
493
|
+
return value === 0 ? value : +value;
|
|
494
|
+
}
|
|
495
|
+
value = baseTrim(value);
|
|
496
|
+
var isBinary = reIsBinary.test(value);
|
|
497
|
+
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
498
|
+
}
|
|
499
|
+
var asyncTag = "[object AsyncFunction]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
500
|
+
function isFunction(value) {
|
|
501
|
+
if (!isObject(value)) {
|
|
502
|
+
return false;
|
|
503
|
+
}
|
|
504
|
+
var tag = baseGetTag(value);
|
|
505
|
+
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
506
|
+
}
|
|
507
|
+
var coreJsData = root["__core-js_shared__"];
|
|
508
|
+
var maskSrcKey = function() {
|
|
509
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
510
|
+
return uid ? "Symbol(src)_1." + uid : "";
|
|
511
|
+
}();
|
|
512
|
+
function isMasked(func) {
|
|
513
|
+
return !!maskSrcKey && maskSrcKey in func;
|
|
514
|
+
}
|
|
515
|
+
var funcProto$1 = Function.prototype;
|
|
516
|
+
var funcToString$1 = funcProto$1.toString;
|
|
517
|
+
function toSource(func) {
|
|
518
|
+
if (func != null) {
|
|
519
|
+
try {
|
|
520
|
+
return funcToString$1.call(func);
|
|
521
|
+
} catch (e) {
|
|
522
|
+
}
|
|
523
|
+
try {
|
|
524
|
+
return func + "";
|
|
525
|
+
} catch (e) {
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
return "";
|
|
529
|
+
}
|
|
530
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
531
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
532
|
+
var funcProto = Function.prototype, objectProto$2 = Object.prototype;
|
|
533
|
+
var funcToString = funcProto.toString;
|
|
534
|
+
var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
535
|
+
var reIsNative = RegExp(
|
|
536
|
+
"^" + funcToString.call(hasOwnProperty$2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
537
|
+
);
|
|
538
|
+
function baseIsNative(value) {
|
|
539
|
+
if (!isObject(value) || isMasked(value)) {
|
|
540
|
+
return false;
|
|
541
|
+
}
|
|
542
|
+
var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
|
|
543
|
+
return pattern.test(toSource(value));
|
|
544
|
+
}
|
|
545
|
+
function getValue(object, key) {
|
|
546
|
+
return object == null ? void 0 : object[key];
|
|
547
|
+
}
|
|
548
|
+
function getNative(object, key) {
|
|
549
|
+
var value = getValue(object, key);
|
|
550
|
+
return baseIsNative(value) ? value : void 0;
|
|
551
|
+
}
|
|
552
|
+
function eq(value, other) {
|
|
553
|
+
return value === other || value !== value && other !== other;
|
|
554
|
+
}
|
|
555
|
+
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
|
|
556
|
+
function isKey(value, object) {
|
|
557
|
+
if (isArray(value)) {
|
|
558
|
+
return false;
|
|
559
|
+
}
|
|
560
|
+
var type = typeof value;
|
|
561
|
+
if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) {
|
|
562
|
+
return true;
|
|
563
|
+
}
|
|
564
|
+
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
|
|
565
|
+
}
|
|
566
|
+
var nativeCreate = getNative(Object, "create");
|
|
567
|
+
function hashClear() {
|
|
568
|
+
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
569
|
+
this.size = 0;
|
|
570
|
+
}
|
|
571
|
+
function hashDelete(key) {
|
|
572
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
573
|
+
this.size -= result ? 1 : 0;
|
|
574
|
+
return result;
|
|
575
|
+
}
|
|
576
|
+
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
577
|
+
var objectProto$1 = Object.prototype;
|
|
578
|
+
var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
579
|
+
function hashGet(key) {
|
|
580
|
+
var data = this.__data__;
|
|
581
|
+
if (nativeCreate) {
|
|
582
|
+
var result = data[key];
|
|
583
|
+
return result === HASH_UNDEFINED$1 ? void 0 : result;
|
|
584
|
+
}
|
|
585
|
+
return hasOwnProperty$1.call(data, key) ? data[key] : void 0;
|
|
586
|
+
}
|
|
587
|
+
var objectProto = Object.prototype;
|
|
588
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
589
|
+
function hashHas(key) {
|
|
590
|
+
var data = this.__data__;
|
|
591
|
+
return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
|
|
592
|
+
}
|
|
593
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
594
|
+
function hashSet(key, value) {
|
|
595
|
+
var data = this.__data__;
|
|
596
|
+
this.size += this.has(key) ? 0 : 1;
|
|
597
|
+
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
|
598
|
+
return this;
|
|
599
|
+
}
|
|
600
|
+
function Hash(entries) {
|
|
601
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
602
|
+
this.clear();
|
|
603
|
+
while (++index < length) {
|
|
604
|
+
var entry = entries[index];
|
|
605
|
+
this.set(entry[0], entry[1]);
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
Hash.prototype.clear = hashClear;
|
|
609
|
+
Hash.prototype["delete"] = hashDelete;
|
|
610
|
+
Hash.prototype.get = hashGet;
|
|
611
|
+
Hash.prototype.has = hashHas;
|
|
612
|
+
Hash.prototype.set = hashSet;
|
|
613
|
+
function listCacheClear() {
|
|
614
|
+
this.__data__ = [];
|
|
615
|
+
this.size = 0;
|
|
616
|
+
}
|
|
617
|
+
function assocIndexOf(array, key) {
|
|
618
|
+
var length = array.length;
|
|
619
|
+
while (length--) {
|
|
620
|
+
if (eq(array[length][0], key)) {
|
|
621
|
+
return length;
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
return -1;
|
|
625
|
+
}
|
|
626
|
+
var arrayProto = Array.prototype;
|
|
627
|
+
var splice = arrayProto.splice;
|
|
628
|
+
function listCacheDelete(key) {
|
|
629
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
630
|
+
if (index < 0) {
|
|
631
|
+
return false;
|
|
632
|
+
}
|
|
633
|
+
var lastIndex = data.length - 1;
|
|
634
|
+
if (index == lastIndex) {
|
|
635
|
+
data.pop();
|
|
636
|
+
} else {
|
|
637
|
+
splice.call(data, index, 1);
|
|
638
|
+
}
|
|
639
|
+
--this.size;
|
|
640
|
+
return true;
|
|
641
|
+
}
|
|
642
|
+
function listCacheGet(key) {
|
|
643
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
644
|
+
return index < 0 ? void 0 : data[index][1];
|
|
645
|
+
}
|
|
646
|
+
function listCacheHas(key) {
|
|
647
|
+
return assocIndexOf(this.__data__, key) > -1;
|
|
648
|
+
}
|
|
649
|
+
function listCacheSet(key, value) {
|
|
650
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
651
|
+
if (index < 0) {
|
|
652
|
+
++this.size;
|
|
653
|
+
data.push([key, value]);
|
|
654
|
+
} else {
|
|
655
|
+
data[index][1] = value;
|
|
656
|
+
}
|
|
657
|
+
return this;
|
|
658
|
+
}
|
|
659
|
+
function ListCache(entries) {
|
|
660
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
661
|
+
this.clear();
|
|
662
|
+
while (++index < length) {
|
|
663
|
+
var entry = entries[index];
|
|
664
|
+
this.set(entry[0], entry[1]);
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
ListCache.prototype.clear = listCacheClear;
|
|
668
|
+
ListCache.prototype["delete"] = listCacheDelete;
|
|
669
|
+
ListCache.prototype.get = listCacheGet;
|
|
670
|
+
ListCache.prototype.has = listCacheHas;
|
|
671
|
+
ListCache.prototype.set = listCacheSet;
|
|
672
|
+
var Map$1 = getNative(root, "Map");
|
|
673
|
+
function mapCacheClear() {
|
|
674
|
+
this.size = 0;
|
|
675
|
+
this.__data__ = {
|
|
676
|
+
"hash": new Hash(),
|
|
677
|
+
"map": new (Map$1 || ListCache)(),
|
|
678
|
+
"string": new Hash()
|
|
679
|
+
};
|
|
680
|
+
}
|
|
681
|
+
function isKeyable(value) {
|
|
682
|
+
var type = typeof value;
|
|
683
|
+
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
684
|
+
}
|
|
685
|
+
function getMapData(map, key) {
|
|
686
|
+
var data = map.__data__;
|
|
687
|
+
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
688
|
+
}
|
|
689
|
+
function mapCacheDelete(key) {
|
|
690
|
+
var result = getMapData(this, key)["delete"](key);
|
|
691
|
+
this.size -= result ? 1 : 0;
|
|
692
|
+
return result;
|
|
693
|
+
}
|
|
694
|
+
function mapCacheGet(key) {
|
|
695
|
+
return getMapData(this, key).get(key);
|
|
696
|
+
}
|
|
697
|
+
function mapCacheHas(key) {
|
|
698
|
+
return getMapData(this, key).has(key);
|
|
699
|
+
}
|
|
700
|
+
function mapCacheSet(key, value) {
|
|
701
|
+
var data = getMapData(this, key), size = data.size;
|
|
702
|
+
data.set(key, value);
|
|
703
|
+
this.size += data.size == size ? 0 : 1;
|
|
704
|
+
return this;
|
|
705
|
+
}
|
|
706
|
+
function MapCache(entries) {
|
|
707
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
708
|
+
this.clear();
|
|
709
|
+
while (++index < length) {
|
|
710
|
+
var entry = entries[index];
|
|
711
|
+
this.set(entry[0], entry[1]);
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
MapCache.prototype.clear = mapCacheClear;
|
|
715
|
+
MapCache.prototype["delete"] = mapCacheDelete;
|
|
716
|
+
MapCache.prototype.get = mapCacheGet;
|
|
717
|
+
MapCache.prototype.has = mapCacheHas;
|
|
718
|
+
MapCache.prototype.set = mapCacheSet;
|
|
719
|
+
var FUNC_ERROR_TEXT$1 = "Expected a function";
|
|
720
|
+
function memoize(func, resolver) {
|
|
721
|
+
if (typeof func != "function" || resolver != null && typeof resolver != "function") {
|
|
722
|
+
throw new TypeError(FUNC_ERROR_TEXT$1);
|
|
723
|
+
}
|
|
724
|
+
var memoized = function() {
|
|
725
|
+
var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
|
|
726
|
+
if (cache.has(key)) {
|
|
727
|
+
return cache.get(key);
|
|
728
|
+
}
|
|
729
|
+
var result = func.apply(this, args);
|
|
730
|
+
memoized.cache = cache.set(key, result) || cache;
|
|
731
|
+
return result;
|
|
732
|
+
};
|
|
733
|
+
memoized.cache = new (memoize.Cache || MapCache)();
|
|
734
|
+
return memoized;
|
|
735
|
+
}
|
|
736
|
+
memoize.Cache = MapCache;
|
|
737
|
+
var MAX_MEMOIZE_SIZE = 500;
|
|
738
|
+
function memoizeCapped(func) {
|
|
739
|
+
var result = memoize(func, function(key) {
|
|
740
|
+
if (cache.size === MAX_MEMOIZE_SIZE) {
|
|
741
|
+
cache.clear();
|
|
742
|
+
}
|
|
743
|
+
return key;
|
|
744
|
+
});
|
|
745
|
+
var cache = result.cache;
|
|
746
|
+
return result;
|
|
747
|
+
}
|
|
748
|
+
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
749
|
+
var reEscapeChar = /\\(\\)?/g;
|
|
750
|
+
var stringToPath = memoizeCapped(function(string) {
|
|
751
|
+
var result = [];
|
|
752
|
+
if (string.charCodeAt(0) === 46) {
|
|
753
|
+
result.push("");
|
|
754
|
+
}
|
|
755
|
+
string.replace(rePropName, function(match, number, quote, subString) {
|
|
756
|
+
result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match);
|
|
757
|
+
});
|
|
758
|
+
return result;
|
|
759
|
+
});
|
|
760
|
+
function toString(value) {
|
|
761
|
+
return value == null ? "" : baseToString(value);
|
|
762
|
+
}
|
|
763
|
+
function castPath(value, object) {
|
|
764
|
+
if (isArray(value)) {
|
|
765
|
+
return value;
|
|
766
|
+
}
|
|
767
|
+
return isKey(value, object) ? [value] : stringToPath(toString(value));
|
|
768
|
+
}
|
|
769
|
+
function toKey(value) {
|
|
770
|
+
if (typeof value == "string" || isSymbol(value)) {
|
|
771
|
+
return value;
|
|
772
|
+
}
|
|
773
|
+
var result = value + "";
|
|
774
|
+
return result == "0" && 1 / value == -Infinity ? "-0" : result;
|
|
775
|
+
}
|
|
776
|
+
function baseGet(object, path) {
|
|
777
|
+
path = castPath(path, object);
|
|
778
|
+
var index = 0, length = path.length;
|
|
779
|
+
while (object != null && index < length) {
|
|
780
|
+
object = object[toKey(path[index++])];
|
|
781
|
+
}
|
|
782
|
+
return index && index == length ? object : void 0;
|
|
783
|
+
}
|
|
784
|
+
function get(object, path, defaultValue) {
|
|
785
|
+
var result = object == null ? void 0 : baseGet(object, path);
|
|
786
|
+
return result === void 0 ? defaultValue : result;
|
|
787
|
+
}
|
|
788
|
+
var now = function() {
|
|
789
|
+
return root.Date.now();
|
|
790
|
+
};
|
|
791
|
+
var FUNC_ERROR_TEXT = "Expected a function";
|
|
792
|
+
var nativeMax = Math.max, nativeMin = Math.min;
|
|
793
|
+
function debounce(func, wait, options) {
|
|
794
|
+
var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
|
|
795
|
+
if (typeof func != "function") {
|
|
796
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
797
|
+
}
|
|
798
|
+
wait = toNumber(wait) || 0;
|
|
799
|
+
if (isObject(options)) {
|
|
800
|
+
leading = !!options.leading;
|
|
801
|
+
maxing = "maxWait" in options;
|
|
802
|
+
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
803
|
+
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
804
|
+
}
|
|
805
|
+
function invokeFunc(time) {
|
|
806
|
+
var args = lastArgs, thisArg = lastThis;
|
|
807
|
+
lastArgs = lastThis = void 0;
|
|
808
|
+
lastInvokeTime = time;
|
|
809
|
+
result = func.apply(thisArg, args);
|
|
810
|
+
return result;
|
|
811
|
+
}
|
|
812
|
+
function leadingEdge(time) {
|
|
813
|
+
lastInvokeTime = time;
|
|
814
|
+
timerId = setTimeout(timerExpired, wait);
|
|
815
|
+
return leading ? invokeFunc(time) : result;
|
|
816
|
+
}
|
|
817
|
+
function remainingWait(time) {
|
|
818
|
+
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
|
|
819
|
+
return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
|
|
820
|
+
}
|
|
821
|
+
function shouldInvoke(time) {
|
|
822
|
+
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
|
|
823
|
+
return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
|
824
|
+
}
|
|
825
|
+
function timerExpired() {
|
|
826
|
+
var time = now();
|
|
827
|
+
if (shouldInvoke(time)) {
|
|
828
|
+
return trailingEdge(time);
|
|
829
|
+
}
|
|
830
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
831
|
+
}
|
|
832
|
+
function trailingEdge(time) {
|
|
833
|
+
timerId = void 0;
|
|
834
|
+
if (trailing && lastArgs) {
|
|
835
|
+
return invokeFunc(time);
|
|
836
|
+
}
|
|
837
|
+
lastArgs = lastThis = void 0;
|
|
838
|
+
return result;
|
|
839
|
+
}
|
|
840
|
+
function cancel() {
|
|
841
|
+
if (timerId !== void 0) {
|
|
842
|
+
clearTimeout(timerId);
|
|
843
|
+
}
|
|
844
|
+
lastInvokeTime = 0;
|
|
845
|
+
lastArgs = lastCallTime = lastThis = timerId = void 0;
|
|
846
|
+
}
|
|
847
|
+
function flush() {
|
|
848
|
+
return timerId === void 0 ? result : trailingEdge(now());
|
|
849
|
+
}
|
|
850
|
+
function debounced() {
|
|
851
|
+
var time = now(), isInvoking = shouldInvoke(time);
|
|
852
|
+
lastArgs = arguments;
|
|
853
|
+
lastThis = this;
|
|
854
|
+
lastCallTime = time;
|
|
855
|
+
if (isInvoking) {
|
|
856
|
+
if (timerId === void 0) {
|
|
857
|
+
return leadingEdge(lastCallTime);
|
|
858
|
+
}
|
|
859
|
+
if (maxing) {
|
|
860
|
+
clearTimeout(timerId);
|
|
861
|
+
timerId = setTimeout(timerExpired, wait);
|
|
862
|
+
return invokeFunc(lastCallTime);
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
if (timerId === void 0) {
|
|
866
|
+
timerId = setTimeout(timerExpired, wait);
|
|
867
|
+
}
|
|
868
|
+
return result;
|
|
869
|
+
}
|
|
870
|
+
debounced.cancel = cancel;
|
|
871
|
+
debounced.flush = flush;
|
|
872
|
+
return debounced;
|
|
873
|
+
}
|
|
874
|
+
function mitt(n2) {
|
|
875
|
+
return { all: n2 = n2 || /* @__PURE__ */ new Map(), on: function(t2, e) {
|
|
876
|
+
var i2 = n2.get(t2);
|
|
877
|
+
i2 ? i2.push(e) : n2.set(t2, [e]);
|
|
878
|
+
}, off: function(t2, e) {
|
|
879
|
+
var i2 = n2.get(t2);
|
|
880
|
+
i2 && (e ? i2.splice(i2.indexOf(e) >>> 0, 1) : n2.set(t2, []));
|
|
881
|
+
}, emit: function(t2, e) {
|
|
882
|
+
var i2 = n2.get(t2);
|
|
883
|
+
i2 && i2.slice().map(function(n3) {
|
|
884
|
+
n3(e);
|
|
885
|
+
}), (i2 = n2.get("*")) && i2.slice().map(function(n3) {
|
|
886
|
+
n3(t2, e);
|
|
887
|
+
});
|
|
888
|
+
} };
|
|
889
|
+
}
|
|
890
|
+
const globalKey = "__product-event-emitter-key";
|
|
891
|
+
function createEmitter() {
|
|
892
|
+
if (window[globalKey]) {
|
|
893
|
+
return window[globalKey];
|
|
894
|
+
}
|
|
895
|
+
const emitter = mitt();
|
|
896
|
+
window[globalKey] = emitter;
|
|
897
|
+
return emitter;
|
|
898
|
+
}
|
|
899
|
+
const useEventBusListener = (event, callback) => {
|
|
900
|
+
const { getEmitter } = useGlobalInject();
|
|
901
|
+
onMounted(() => {
|
|
902
|
+
getEmitter().on(event, callback);
|
|
903
|
+
});
|
|
904
|
+
onBeforeUnmount(() => {
|
|
905
|
+
getEmitter().off(event, callback);
|
|
906
|
+
});
|
|
907
|
+
};
|
|
908
|
+
var LangType = /* @__PURE__ */ ((LangType2) => {
|
|
909
|
+
LangType2["ZH_CN"] = "zh_CN";
|
|
910
|
+
LangType2["ZH_TW"] = "zh_TW";
|
|
911
|
+
LangType2["English"] = "en";
|
|
912
|
+
LangType2["Japanese"] = "ja";
|
|
913
|
+
LangType2["Korean"] = "ko";
|
|
914
|
+
LangType2["Russian"] = "ru";
|
|
915
|
+
return LangType2;
|
|
916
|
+
})(LangType || {});
|
|
917
|
+
const ProductInjectKey = "interactGlobalConfigV2";
|
|
918
|
+
const useGlobalInject = () => {
|
|
919
|
+
const injectData = inject(ProductInjectKey, {
|
|
920
|
+
globalLang: LangType.ZH_CN
|
|
921
|
+
});
|
|
922
|
+
const toast = (msg) => {
|
|
923
|
+
if (injectData.toast) {
|
|
924
|
+
injectData.toast(msg);
|
|
925
|
+
}
|
|
926
|
+
};
|
|
927
|
+
function getEmitter() {
|
|
928
|
+
if (injectData.getEmitter) {
|
|
929
|
+
return injectData.getEmitter();
|
|
930
|
+
}
|
|
931
|
+
return createEmitter();
|
|
932
|
+
}
|
|
933
|
+
const messageBox = (options) => {
|
|
934
|
+
if (injectData.messageBox) {
|
|
935
|
+
return injectData.messageBox(options);
|
|
936
|
+
}
|
|
937
|
+
return Promise.resolve(false);
|
|
938
|
+
};
|
|
939
|
+
return {
|
|
940
|
+
injectData,
|
|
941
|
+
toast,
|
|
942
|
+
getEmitter,
|
|
943
|
+
messageBox
|
|
944
|
+
};
|
|
945
|
+
};
|
|
946
|
+
const productEvents = {
|
|
947
|
+
/**
|
|
948
|
+
* 打开订单详情弹层
|
|
949
|
+
*/
|
|
950
|
+
OpenProductOrderDetailPopup: "openProductOrderDetailPopup",
|
|
951
|
+
/**
|
|
952
|
+
* 刷新订单列表状态
|
|
953
|
+
*/
|
|
954
|
+
RefreshProductOrderListStatus: "refreshProductOrderListStatus",
|
|
955
|
+
/**
|
|
956
|
+
* 刷新订单详情状态
|
|
957
|
+
*/
|
|
958
|
+
RefreshProductOrderDetailStatus: "refreshProductOrderDetailStatus"
|
|
959
|
+
};
|
|
960
|
+
const order$5 = { "title": "订单中心", "chooseAddress": "请添加收货地址", "add": "去添加", "phone": "手机号码:", "phonePlaceholder": "请输入手机号码", "submitOrder": "提交订单", "addAddress": "添加地址", "applyRefund": "申请退款", "refundTips": "退款金额 ", "confirmRefund": "退款", "refundFailed": "退款失败", "failed": "发起失败", "list": { "all": "全部", "waitPay": "待支付", "waitDelivery": "待发货", "delivering": "待收货", "finish": "已完成", "close": "已取消", "refunding": "退款中", "refunded": "已退款", "total": "合计", "waitPayBtnText": "立即支付", "waitDeliveryBtnText": "查看详情", "deliveringBtnText": "确认收货", "finishBtnText": "查看详情", "closeBtnText": "查看详情", "emptyText": "暂无订单" }, "detail": { "orderNo": "订单号", "createTime": "下单时间", "payTime": "支付时间", "deliveryTime": "发货时间", "finishTime": "完成时间", "actualPay": "实付", "payNow": "立即支付", "confirmReceipt": "确认收货", "expired": "已失效", "payAutoCancel": " 后自动取消", "cancelReason": "取消原因", "payTimeOut": "超时未支付", "refundTips": "退款金额原路返回", "qrCodeTips": "长按识别或截图保存,联系客服", "qrCodeExpiredTips": "二维码已失效,暂时无法联系客服", "paymentMethod": "支付方式", "wechat": "微信", "alipay": "支付宝" }, "confirmOrder": "确认订单", "shippingAddress": "收货地址", "noAddressTips": "请填写收货地址", "paySuccess": "支付成功", "cancelPay": "取消支付", "payFailed": "支付失败", "createOrderFailed": "无法创建订单,请稍后重试", "wechatPayTips": "请在微信中打开本页进行支付", "confirmReceiptTips": "请确认已经收到包裹", "confirmedReceipt": "已确认收货" };
|
|
961
|
+
const addressEdit$5 = { "name": "联系人", "namePlaceholder": "请填写联系人姓名", "choiceAddress": "选择地区", "addressPlaceholder": "请选择地区", "phone": "手机号码", "phonePlaceholder": "请填写手机号码", "phoneError": "请输入正确的手机号", "addressDetail": "详细地址", "addressDetailPlaceholder": "请填写详细地址", "error": "请完善信息", "submit": "保存", "deleteConfirm": "确定要删除该地址吗?", "addAddress": "添加地址", "editAddress": "修改地址", "deleteAddress": "删除地址", "addSuccess": "保存成功", "addError": "保存失败", "editSuccess": "修改成功", "editError": "修改失败" };
|
|
962
|
+
const zhCNLang = {
|
|
963
|
+
"common.confirm": "确认",
|
|
964
|
+
"common.cancel": "取消",
|
|
965
|
+
"common.delete": "删除",
|
|
966
|
+
"common.edit": "修改",
|
|
967
|
+
"common.submitSuccess": "提交成功",
|
|
968
|
+
"product.button.normal": "去购买",
|
|
969
|
+
"product.button.finance": "立即了解",
|
|
970
|
+
"product.button.position": "投递简历",
|
|
971
|
+
"product.all": "全部",
|
|
972
|
+
"product.searchPlaceholder": "输入商品名称搜索",
|
|
973
|
+
"product.explaining": "讲解中",
|
|
974
|
+
"product.watchExplain": "看讲解",
|
|
975
|
+
"product.notExplained": "待讲解",
|
|
976
|
+
"product.detail.title": "商品详情",
|
|
977
|
+
"product.detail.video": "视频",
|
|
978
|
+
"product.detail.image": "图片",
|
|
979
|
+
"product.detail.job": "职位详情",
|
|
980
|
+
"product.price.free": "免费",
|
|
981
|
+
"product.empty": "暂无内容",
|
|
982
|
+
"product.price.hidden": "待开价",
|
|
983
|
+
"product.order": "订单",
|
|
984
|
+
"product.num": "数量",
|
|
985
|
+
"product.disableBuy": "暂不支持购买",
|
|
986
|
+
"product.allProduct": "全部商品",
|
|
987
|
+
"product.stock.soldOut": "已抢光",
|
|
988
|
+
order: order$5,
|
|
989
|
+
addressEdit: addressEdit$5
|
|
990
|
+
};
|
|
991
|
+
const order$4 = { "title": "訂單中心", "chooseAddress": "請添加收貨地址", "add": "去添加", "phone": "手機號碼:", "phonePlaceholder": "請輸入手機號碼", "submitOrder": "提交訂單", "addAddress": "添加地址", "applyRefund": "申請退款", "refundTips": "退款金額 ", "confirmRefund": "退款", "refundFailed": "退款失敗", "failed": "发起失敗", "list": { "all": "全部", "waitPay": "待支付", "waitDelivery": "待發貨", "delivering": "待收貨", "finish": "已完成", "close": "已取消", "refunding": "退款中", "refunded": "已退款", "total": "合計", "waitPayBtnText": "立即支付", "waitDeliveryBtnText": "查看詳情", "deliveringBtnText": "確認收貨", "finishBtnText": "查看詳情", "closeBtnText": "查看詳情", "emptyText": "暫無訂單" }, "detail": { "orderNo": "訂單號", "createTime": "下單時間", "payTime": "支付時間", "deliveryTime": "發貨時間", "finishTime": "完成時間", "actualPay": "實付", "payNow": "立即支付", "confirmReceipt": "確認收貨", "expired": "已失效", "payAutoCancel": " 後自動取消", "cancelReason": "取消原因", "payTimeOut": "超時未支付", "refundTips": "退款金額原路返回", "qrCodeTips": "長按識別或截圖保存,聯繫客服", "qrCodeExpiredTips": "二維碼已失效,暫時無法聯繫客服", "paymentMethod": "支付方式", "wechat": "微信", "alipay": "支付寶" }, "confirmOrder": "確認訂單", "shippingAddress": "收貨地址", "noAddressTips": "請填寫收貨地址", "paySuccess": "支付成功", "payFailed": "支付失敗", "cancelPay": "取消支付", "createOrderFailed": "無法創建訂單,請稍後重試", "wechatPayTips": "請在微信中打開本頁進行支付", "confirmReceiptTips": "請確認已經收到包裹", "confirmedReceipt": "已確認收貨" };
|
|
992
|
+
const addressEdit$4 = { "name": "聯絡人", "namePlaceholder": "請填寫聯絡人", "choiceAddress": "選擇地區", "addressPlaceholder": "請選擇地區", "phone": "手機號碼", "phonePlaceholder": "請填寫手機號碼", "phoneError": "請輸入正確的手機號", "addressDetail": "詳細地址", "addressDetailPlaceholder": "請填寫詳細地址", "error": "請完善信息", "submit": "保存", "deleteConfirm": "確定要刪除該地址嗎?", "deleteAddress": "刪除地址", "addAddress": "添加地址", "editAddress": "修改地址", "addSuccess": "保存成功", "addError": "保存失敗", "editSuccess": "修改成功", "editError": "修改失敗" };
|
|
993
|
+
const zhTWLang = {
|
|
994
|
+
"common.confirm": "確認",
|
|
995
|
+
"common.cancel": "取消",
|
|
996
|
+
"common.delete": "刪除",
|
|
997
|
+
"common.edit": "修改",
|
|
998
|
+
"common.submitSuccess": "提交成功",
|
|
999
|
+
"product.button.normal": "去購買",
|
|
1000
|
+
"product.button.finance": "立即瞭解",
|
|
1001
|
+
"product.button.position": "投遞簡歷",
|
|
1002
|
+
"product.all": "全部",
|
|
1003
|
+
"product.searchPlaceholder": "輸入商品名稱搜索",
|
|
1004
|
+
"product.explaining": "講解中",
|
|
1005
|
+
"product.watchExplain": "看講解",
|
|
1006
|
+
"product.notExplained": "待講解",
|
|
1007
|
+
"product.detail.title": "商品詳情",
|
|
1008
|
+
"product.detail.video": "視頻",
|
|
1009
|
+
"product.detail.image": "圖片",
|
|
1010
|
+
"product.detail.job": "職位詳情",
|
|
1011
|
+
"product.price.free": "免費",
|
|
1012
|
+
"product.empty": "暫無內容",
|
|
1013
|
+
"product.price.hidden": "待開價",
|
|
1014
|
+
"product.order": "訂單",
|
|
1015
|
+
"product.num": "數量",
|
|
1016
|
+
"product.disableBuy": "暫不支持購買",
|
|
1017
|
+
"product.allProduct": "全部商品",
|
|
1018
|
+
"product.stock.soldOut": "已搶光",
|
|
1019
|
+
order: order$4,
|
|
1020
|
+
addressEdit: addressEdit$4
|
|
1021
|
+
};
|
|
1022
|
+
const order$3 = { "title": "Order Center", "chooseAddress": "Add Shipping Address", "add": "Add Shipping Address", "phone": "Phone:", "phonePlaceholder": "Enter Phone", "submitOrder": "Submit", "addAddress": "Add Address", "applyRefund": "Apply Refund", "refundTips": "Refund Amount ", "confirmRefund": "Refund", "refundFailed": "Refund Failed", "failed": "Failed", "list": { "all": "All", "waitPay": "Wait Payment", "waitDelivery": "Wait Delivery", "delivering": "Delivering", "finish": "Finished", "close": "Closed", "refunding": "Refunding", "refunded": "Refunded", "total": "Total", "waitPayBtnText": "Pay Now", "waitDeliveryBtnText": "View Details", "deliveringBtnText": "Confirm Receipt", "finishBtnText": "View Details", "closeBtnText": "View Details", "emptyText": "No Order History" }, "detail": { "orderNo": "Order Number", "createTime": "Order Time", "payTime": "Payment Time", "deliveryTime": "Delivery Time", "finishTime": "Completion Time", "actualPay": "Total Amount", "payNow": "Pay Now", "confirmReceipt": "Confirm Receipt", "expired": "Expired", "payAutoCancel": "Cancel", "cancelReason": "Cancel Reason", "payTimeOut": "Pay Time Out", "refundTips": "Refund amount returned to the original path", "qrCodeTips": "Long press to scan or save screenshot for support", "qrCodeExpiredTips": "QR code expired, support unavailable", "paymentMethod": "Payment Method", "wechat": "Wechat", "alipay": "Alipay" }, "confirmOrder": "Confirm Order", "shippingAddress": "Shipping Address", "noAddressTips": "Please fill in the shipping address", "paySuccess": "Payment Success", "cancelPay": "Cancel Payment", "payFailed": "Payment Failed", "createOrderFailed": "Failed to create order, please try again later", "wechatPayTips": "Please open this page in WeChat to pay", "confirmReceiptTips": "Have you received the package?", "confirmedReceipt": "Confirmed Receipt" };
|
|
1023
|
+
const addressEdit$3 = { "name": "Name", "namePlaceholder": "Enter Name", "choiceAddress": "Select Area", "addressPlaceholder": "Select Area", "phone": "Phone", "phonePlaceholder": "Enter Phone", "phoneError": "Please enter a valid phone number", "addressDetail": "Address Detail", "addressDetailPlaceholder": "Enter Address Detail", "error": "Please fill in all required fields", "submit": "Save", "deleteConfirm": "Delete this address?", "deleteAddress": "Yes", "addAddress": "Add Address", "editAddress": "Edit Address", "addSuccess": "Save Success", "addError": "Save Failed", "editSuccess": "Edit Success", "editError": "Edit Failed" };
|
|
1024
|
+
const enLang = {
|
|
1025
|
+
"common.confirm": "Confirm",
|
|
1026
|
+
"common.cancel": "Cancel",
|
|
1027
|
+
"common.delete": "Delete",
|
|
1028
|
+
"common.edit": "Edit",
|
|
1029
|
+
"common.submitSuccess": "Submit Success",
|
|
1030
|
+
"product.button.normal": "Buy Now",
|
|
1031
|
+
"product.button.finance": "Learn More",
|
|
1032
|
+
"product.button.position": "Submit Resume",
|
|
1033
|
+
"product.all": "All",
|
|
1034
|
+
"product.searchPlaceholder": "Search by product name",
|
|
1035
|
+
"product.explaining": "Explaining",
|
|
1036
|
+
"product.watchExplain": "Watch Now",
|
|
1037
|
+
"product.notExplained": "Pending",
|
|
1038
|
+
"product.detail.title": "Product Details",
|
|
1039
|
+
"product.detail.video": "Video",
|
|
1040
|
+
"product.detail.image": "Image",
|
|
1041
|
+
"product.detail.job": "Job Details",
|
|
1042
|
+
"product.price.free": "Free",
|
|
1043
|
+
"product.empty": "No Content",
|
|
1044
|
+
"product.price.hidden": "Pending Price",
|
|
1045
|
+
"product.order": "Order",
|
|
1046
|
+
"product.num": "Quantity",
|
|
1047
|
+
"product.disableBuy": "Purchase not supported",
|
|
1048
|
+
"product.allProduct": "Products",
|
|
1049
|
+
"product.stock.soldOut": "Sold Out",
|
|
1050
|
+
order: order$3,
|
|
1051
|
+
addressEdit: addressEdit$3
|
|
1052
|
+
};
|
|
1053
|
+
const order$2 = { "title": "注文中心", "chooseAddress": "配送先を追加", "add": "配送先を追加", "phone": "電話番号:", "phonePlaceholder": "電話番号を入力", "submitOrder": "注文を提出", "addAddress": "配送先を追加", "applyRefund": "退款申請", "refundTips": "退款金額 ", "confirmRefund": "退款", "refundFailed": "退款失敗", "failed": "失敗", "list": { "all": "全て", "waitPay": "支払い待ち", "waitDelivery": "発送待ち", "delivering": "配送中", "finish": "完了", "close": "キャンセル", "refunding": "退款中", "refunded": "退款完了", "total": "合計", "waitPayBtnText": "支払い", "waitDeliveryBtnText": "詳細を見る", "deliveringBtnText": "確認受け取り", "finishBtnText": "詳細を見る", "closeBtnText": "詳細を見る", "emptyText": "注文履歴がありません" }, "detail": { "orderNo": "注文番号", "createTime": "注文日時", "payTime": "支払い日時", "deliveryTime": "発送日時", "finishTime": "完了日時", "actualPay": "実払い", "payNow": "支払い", "confirmReceipt": "確認受け取り", "expired": "失効", "payAutoCancel": " 後自動キャンセル", "cancelReason": "キャンセル理由", "payTimeOut": "超時未支払い", "refundTips": "退款金額原路返回", "qrCodeTips": "長押し識別またはスクリーンショット保存、サポートにお問い合わせください", "qrCodeExpiredTips": "QRコードは失効しました。暫時的にサポートに連絡できません", "paymentMethod": "支払い方法", "wechat": "ウェブアプリ", "alipay": "アリペイ" }, "confirmOrder": "注文を確認", "shippingAddress": "配送先", "noAddressTips": "配送先を入力してください", "paySuccess": "支払い成功", "cancelPay": "支払いをキャンセル", "payFailed": "支払い失敗", "createOrderFailed": "注文の作成に失敗しました。後で再試行してください。", "wechatPayTips": "WeChatでこのページを開いて支払いしてください", "confirmReceiptTips": "パッケージを確認しましたか?", "confirmedReceipt": "確認受け取り完了" };
|
|
1054
|
+
const addressEdit$2 = { "name": "連絡先", "namePlaceholder": "連絡先を入力", "choiceAddress": "地域を選択", "addressPlaceholder": "地域を選択", "phone": "電話番号", "phonePlaceholder": "電話番号を入力", "phoneError": "正しい電話番号を入力してください", "addressDetail": "詳細住所", "addressDetailPlaceholder": "詳細住所を入力", "error": "情報を入力してください", "submit": "保存", "deleteConfirm": "この住所を削除しますか?", "deleteAddress": "住所を削除", "addAddress": "住所を追加", "editAddress": "住所を編集", "addSuccess": "保存成功", "addError": "保存失敗", "editSuccess": "編集成功", "editError": "編集失敗" };
|
|
1055
|
+
const jaLang = {
|
|
1056
|
+
"common.confirm": "確認",
|
|
1057
|
+
"common.cancel": "キャンセル",
|
|
1058
|
+
"common.delete": "削除",
|
|
1059
|
+
"common.edit": "編集",
|
|
1060
|
+
"common.submitSuccess": "提出成功",
|
|
1061
|
+
"product.button.normal": "購入する",
|
|
1062
|
+
"product.button.finance": "今すぐ詳細を見る",
|
|
1063
|
+
"product.button.position": "履歴書を送信",
|
|
1064
|
+
"product.all": "すべて",
|
|
1065
|
+
"product.searchPlaceholder": "商品名を検索",
|
|
1066
|
+
"product.explaining": "解説中",
|
|
1067
|
+
"product.watchExplain": "解説を見る",
|
|
1068
|
+
"product.notExplained": "解説なし",
|
|
1069
|
+
"product.detail.title": "商品詳細",
|
|
1070
|
+
"product.detail.video": "ビデオ",
|
|
1071
|
+
"product.detail.image": "画像",
|
|
1072
|
+
"product.detail.job": "職務詳細",
|
|
1073
|
+
"product.price.free": "無料",
|
|
1074
|
+
"product.empty": "内容なし",
|
|
1075
|
+
"product.price.hidden": "価格非公開",
|
|
1076
|
+
"product.order": "注文",
|
|
1077
|
+
"product.num": "数量",
|
|
1078
|
+
"product.disableBuy": "購入不可",
|
|
1079
|
+
"product.allProduct": "すべての商品",
|
|
1080
|
+
"product.stock.soldOut": "売り切れ",
|
|
1081
|
+
order: order$2,
|
|
1082
|
+
addressEdit: addressEdit$2
|
|
1083
|
+
};
|
|
1084
|
+
const order$1 = { "title": "주문 센터", "chooseAddress": "주문 주소 추가", "add": "주문 주소 추가", "phone": "전화번호:", "phonePlaceholder": "전화번호 입력", "submitOrder": "주문 제출", "addAddress": "주문 주소 추가", "applyRefund": "환불 신청", "refundTips": "환불 금액 ", "confirmRefund": "환불", "refundFailed": "환불 실패", "failed": "실패", "list": { "all": "전체", "waitPay": "결제 대기", "waitDelivery": "배송 대기", "delivering": "배송 중", "finish": "완료", "close": "취소", "refunding": "환불 중", "refunded": "환불 완료", "total": "총 금액", "waitPayBtnText": "결제하기", "waitDeliveryBtnText": "상세 보기", "deliveringBtnText": "확인 받기", "finishBtnText": "상세 보기", "closeBtnText": "상세 보기", "emptyText": "주문 내역이 없습니다." }, "detail": { "orderNo": "주문번호", "createTime": "주문일시", "payTime": "결제일시", "deliveryTime": "배송일시", "finishTime": "완료일시", "actualPay": "총 금액", "payNow": "결제하기", "confirmReceipt": "확인 받기", "expired": "만료", "payAutoCancel": " 후 자동 취소", "cancelReason": "취소 사유", "payTimeOut": "결제 시간 초과", "refundTips": "환불 금액 원래 경로로 반환", "qrCodeTips": "장치 인식 또는 스크린샷 저장 후 문의", "qrCodeExpiredTips": "이미 만료되었습니다. 잠시 후 다시 시도해주세요.", "paymentMethod": "결제 방법", "wechat": "웹앱", "alipay": "알리페이" }, "confirmOrder": "주문 확인", "shippingAddress": "배송 주소", "noAddressTips": "배송 주소를 입력해주세요", "paySuccess": "결제 성공", "cancelPay": "결제 취소", "payFailed": "결제 실패", "createOrderFailed": "주문 생성에 실패했습니다. 나중에 다시 시도해주세요.", "wechatPayTips": "카카오톡에서 이 페이지를 열어 결제해주세요", "confirmReceiptTips": "패키지를 확인하셨습니까?", "confirmedReceipt": "확인 받기 완료" };
|
|
1085
|
+
const addressEdit$1 = { "name": "연락처", "namePlaceholder": "연락처 입력", "choiceAddress": "지역 선택", "addressPlaceholder": "지역 선택", "phone": "전화번호", "phonePlaceholder": "전화번호 입력", "phoneError": "올바른 전화번호를 입력해주세요", "addressDetail": "상세 주소", "addressDetailPlaceholder": "상세 주소 입력", "error": "정보를 입력해주세요.", "submit": "저장", "deleteConfirm": "주소를 삭제하시겠습니까?", "deleteAddress": "주소 삭제", "addAddress": "주소 추가", "editAddress": "주소 수정", "addSuccess": "저장 성공", "addError": "저장 실패", "editSuccess": "수정 성공", "editError": "수정 실패" };
|
|
1086
|
+
const koLang = {
|
|
1087
|
+
"common.confirm": "확인",
|
|
1088
|
+
"common.cancel": "취소",
|
|
1089
|
+
"common.delete": "삭제",
|
|
1090
|
+
"common.edit": "수정",
|
|
1091
|
+
"common.submitSuccess": "제출 성공",
|
|
1092
|
+
"product.button.normal": "구매하기",
|
|
1093
|
+
"product.button.finance": "지금 알아보기",
|
|
1094
|
+
"product.button.position": "이력서 제출",
|
|
1095
|
+
"product.all": "모든",
|
|
1096
|
+
"product.searchPlaceholder": "상품 이름 검색",
|
|
1097
|
+
"product.explaining": "설명중",
|
|
1098
|
+
"product.watchExplain": "설명 보기",
|
|
1099
|
+
"product.notExplained": "설명 없음",
|
|
1100
|
+
"product.detail.title": "상품 상세",
|
|
1101
|
+
"product.detail.video": "비디오",
|
|
1102
|
+
"product.detail.image": "이미지",
|
|
1103
|
+
"product.detail.job": "직무 상세",
|
|
1104
|
+
"product.price.free": "무료",
|
|
1105
|
+
"product.empty": "내용 없음",
|
|
1106
|
+
"product.price.hidden": "가격 미공개",
|
|
1107
|
+
"product.order": "주문",
|
|
1108
|
+
"product.num": "수량",
|
|
1109
|
+
"product.disableBuy": "구매 불가",
|
|
1110
|
+
"product.allProduct": "모든 상품",
|
|
1111
|
+
"product.stock.soldOut": "품절",
|
|
1112
|
+
order: order$1,
|
|
1113
|
+
addressEdit: addressEdit$1
|
|
1114
|
+
};
|
|
1115
|
+
const order = { "title": "Центр заказов", "chooseAddress": "Пожалуйста, добавьте адрес доставки", "add": "Добавить", "phone": "Номер телефона:", "phonePlaceholder": "Пожалуйста, введите номер телефона", "submitOrder": "Отправить заказ", "addAddress": "Добавить адрес", "applyRefund": "Заявить о возврате", "refundTips": "Сумма возврата ", "confirmRefund": "Возврат", "refundFailed": "Возврат не удался", "failed": "Не удалось инициировать", "list": { "all": "Все", "waitPay": "Ожидает оплаты", "waitDelivery": "Ожидает отправки", "delivering": "Ожидает получения", "finish": "Завершено", "close": "Отменено", "refunding": "В процессе возврата", "refunded": "Возвращено", "total": "Итого", "waitPayBtnText": "Оплатить сейчас", "waitDeliveryBtnText": "Посмотреть детали", "deliveringBtnText": "Подтвердить получение", "finishBtnText": "Посмотреть детали", "closeBtnText": "Посмотреть детали", "emptyText": "Пока нет заказов" }, "detail": { "orderNo": "Номер заказа", "createTime": "Время создания заказа", "payTime": "Время оплаты", "deliveryTime": "Время отправки", "finishTime": "Время завершения", "actualPay": "Фактически оплачено", "payNow": "Оплатить сейчас", "confirmReceipt": "Подтвердить получение", "expired": "Истек срок действия", "payAutoCancel": " автоматическая отмена", "cancelReason": "Причина отмены", "payTimeOut": "Время оплаты истекло", "refundTips": "Сумма возврата вернется тем же способом", "qrCodeTips": "Долго нажмите для распознавания или сохраните скриншот, свяжитесь с сервисом", "qrCodeExpiredTips": "QR-код истек, временно невозможно связаться с сервисом", "paymentMethod": "Способ оплаты", "wechat": "Веб-приложение", "alipay": "АлиПай" }, "confirmOrder": "Подтвердить заказ", "shippingAddress": "Адрес доставки", "noAddressTips": "Пожалуйста, заполните адрес доставки", "paySuccess": "Оплата успешна", "cancelPay": "Отменить оплату", "payFailed": "Оплата не удалась", "createOrderFailed": "Не удается создать заказ, попробуйте позже", "wechatPayTips": "Пожалуйста, откройте эту страницу в WeChat для оплаты", "confirmReceiptTips": "Пожалуйста, подтвердите, что посылка получена", "confirmedReceipt": "Получение подтверждено" };
|
|
1116
|
+
const addressEdit = { "name": "Контактное лицо", "namePlaceholder": "Пожалуйста, введите имя контактного лица", "choiceAddress": "Выберите регион", "addressPlaceholder": "Пожалуйста, выберите регион", "phone": "Номер телефона", "phonePlaceholder": "Пожалуйста, введите номер телефона", "phoneError": "Пожалуйста, введите правильный номер телефона", "addressDetail": "Подробный адрес", "addressDetailPlaceholder": "Пожалуйста, заполните подробный адрес", "error": "Пожалуйста, дополните информацию", "submit": "Сохранить", "deleteConfirm": "Вы уверены, что хотите удалить этот адрес?", "addAddress": "Добавить адрес", "editAddress": "Изменить адрес", "deleteAddress": "Удалить адрес", "addSuccess": "Успешно сохранено", "addError": "Не удалось сохранить", "editSuccess": "Успешно изменено", "editError": "Не удалось изменить" };
|
|
1117
|
+
const ruLang = {
|
|
1118
|
+
"common.confirm": "Подтвердить",
|
|
1119
|
+
"common.cancel": "Отмена",
|
|
1120
|
+
"common.delete": "Удалить",
|
|
1121
|
+
"common.edit": "Изменить",
|
|
1122
|
+
"common.submitSuccess": "Успешно отправлено",
|
|
1123
|
+
"product.button.normal": "Купить",
|
|
1124
|
+
"product.button.finance": "Узнать подробнее",
|
|
1125
|
+
"product.button.position": "Подать резюме",
|
|
1126
|
+
"product.all": "Все",
|
|
1127
|
+
"product.searchPlaceholder": "Введите название товара для поиска",
|
|
1128
|
+
"product.explaining": "В процессе объяснения",
|
|
1129
|
+
"product.watchExplain": "Посмотреть объяснение",
|
|
1130
|
+
"product.notExplained": "Ожидает объяснения",
|
|
1131
|
+
"product.detail.title": "Детали товара",
|
|
1132
|
+
"product.detail.video": "Видео",
|
|
1133
|
+
"product.detail.image": "Изображение",
|
|
1134
|
+
"product.detail.job": "Детали вакансии",
|
|
1135
|
+
"product.price.free": "Бесплатно",
|
|
1136
|
+
"product.empty": "Пока нет содержимого",
|
|
1137
|
+
"product.price.hidden": "Цена уточняется",
|
|
1138
|
+
"product.order": "Заказ",
|
|
1139
|
+
"product.num": "Количество",
|
|
1140
|
+
"product.disableBuy": "Покупка временно недоступна",
|
|
1141
|
+
"product.allProduct": "Все товары",
|
|
1142
|
+
"product.stock.soldOut": "Распродано",
|
|
1143
|
+
order,
|
|
1144
|
+
addressEdit
|
|
1145
|
+
};
|
|
1146
|
+
const fullI18nData = {
|
|
1147
|
+
[LangType.ZH_CN]: zhCNLang,
|
|
1148
|
+
[LangType.ZH_TW]: zhTWLang,
|
|
1149
|
+
[LangType.English]: enLang,
|
|
1150
|
+
[LangType.Japanese]: jaLang,
|
|
1151
|
+
[LangType.Korean]: koLang,
|
|
1152
|
+
[LangType.Russian]: ruLang
|
|
1153
|
+
};
|
|
1154
|
+
const useI18n = () => {
|
|
1155
|
+
const { injectData } = useGlobalInject();
|
|
1156
|
+
const langValueToKeyMap = {
|
|
1157
|
+
"zh_CN": LangType.ZH_CN,
|
|
1158
|
+
"zh_TW": LangType.ZH_TW,
|
|
1159
|
+
"en": LangType.English,
|
|
1160
|
+
"ja": LangType.Japanese,
|
|
1161
|
+
"ko": LangType.Korean,
|
|
1162
|
+
"ru": LangType.Russian
|
|
1163
|
+
};
|
|
1164
|
+
const currentLang = computed(() => {
|
|
1165
|
+
const injectedLang = injectData.globalLang || LangType.ZH_CN;
|
|
1166
|
+
if (typeof injectedLang === "string" && langValueToKeyMap[injectedLang]) {
|
|
1167
|
+
const mappedLang = langValueToKeyMap[injectedLang];
|
|
1168
|
+
return mappedLang;
|
|
1169
|
+
}
|
|
1170
|
+
return injectedLang;
|
|
1171
|
+
});
|
|
1172
|
+
const currentLangData = computed(() => {
|
|
1173
|
+
const langKey = currentLang.value;
|
|
1174
|
+
const data = fullI18nData[langKey];
|
|
1175
|
+
if (!data) {
|
|
1176
|
+
console.warn(`Language data not found for: ${langKey}, falling back to zh_CN`);
|
|
1177
|
+
return fullI18nData[LangType.ZH_CN];
|
|
1178
|
+
}
|
|
1179
|
+
return data;
|
|
1180
|
+
});
|
|
1181
|
+
const isZhCN = computed(() => {
|
|
1182
|
+
const lang = currentLang.value;
|
|
1183
|
+
return lang === LangType.ZH_CN || lang === LangType.ZH_TW;
|
|
1184
|
+
});
|
|
1185
|
+
function replace(key, value, str) {
|
|
1186
|
+
return str.replace(new RegExp("\\{" + key + "}", "g"), value);
|
|
1187
|
+
}
|
|
1188
|
+
function $t(key, options = {}) {
|
|
1189
|
+
const langData = currentLangData.value;
|
|
1190
|
+
let text = get(langData, key);
|
|
1191
|
+
if (text === void 0 || typeof text !== "string") {
|
|
1192
|
+
console.warn(`Translation key not found: ${key}, current lang: ${currentLang.value}`);
|
|
1193
|
+
return key;
|
|
1194
|
+
}
|
|
1195
|
+
if (options) {
|
|
1196
|
+
const optionKeys = Object.keys(options);
|
|
1197
|
+
for (const optKey of optionKeys) {
|
|
1198
|
+
const value = options[optKey].toString();
|
|
1199
|
+
text = replace(optKey, value, text);
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
return text;
|
|
1203
|
+
}
|
|
1204
|
+
return {
|
|
1205
|
+
currentLang,
|
|
1206
|
+
isZhCN,
|
|
1207
|
+
$t
|
|
1208
|
+
};
|
|
1209
|
+
};
|
|
1210
|
+
function canMatchKeywords(e, t2) {
|
|
1211
|
+
e = e.toLowerCase();
|
|
1212
|
+
const n2 = /[/\s;_-]/, s2 = /[/\s;_-]/;
|
|
1213
|
+
return t2.some((t3) => {
|
|
1214
|
+
const o2 = e.indexOf(t3.toLowerCase());
|
|
1215
|
+
if (-1 !== o2 && (n2.test(e[o2 - 1]) || 0 === o2) && (s2.test(e[o2 + t3.length]) || o2 + t3.length >= e.length)) return true;
|
|
1216
|
+
});
|
|
1217
|
+
}
|
|
1218
|
+
function canMatchModelRule(e, t2) {
|
|
1219
|
+
return !!/;\s*([^;)]*?)(?:\s+Build\/[^;)]+)?(?:;(?:\s*wv)?)?\)/.test(e) && t2.test(RegExp.$1);
|
|
1220
|
+
}
|
|
1221
|
+
function execRules(e, t2) {
|
|
1222
|
+
let n2;
|
|
1223
|
+
return t2.some((t3) => {
|
|
1224
|
+
let s2, o2 = false;
|
|
1225
|
+
return t3.regExp ? (o2 = t3.regExp.test(e), o2 && (s2 = RegExp.$1)) : t3.keywords ? o2 = canMatchKeywords(e, t3.keywords) : t3.modelRegExp && (o2 = canMatchModelRule(e, t3.modelRegExp)), o2 && (n2 = { name: t3.name, version: s2 }), o2;
|
|
1226
|
+
}), n2;
|
|
1227
|
+
}
|
|
1228
|
+
const osRules = [{ name: "windows", regExp: /\bWindows\s?NT\s?(([\d.]+))\b/ }, { name: "ios", regExp: /\bOS(?:\s([\d_.]+))?\slike\sMac\sOS\sX\b/ }, { name: "macos", regExp: /\bMac\sOS\sX(?:\s([\d_.]+))?/ }, { name: "openharmony", regExp: /\bOpenHarmony\s([\d.]+)\b/ }, { name: "android", regExp: /\bAndroid;?(?:[-/\s]([\d.]+))?(?:\b|_)/ }, { name: "android", regExp: /\bAdr\s([\d.]+)(?:\b|_)/ }];
|
|
1229
|
+
function compareVersions(r2, e) {
|
|
1230
|
+
const t2 = /(\.0+)+$/, n2 = String(r2).replace(t2, "").split("."), s2 = String(e).replace(t2, "").split("."), i2 = Math.min(n2.length, s2.length);
|
|
1231
|
+
for (let r3 = 0; r3 < i2; r3++) {
|
|
1232
|
+
const e2 = parseInt(n2[r3]) - parseInt(s2[r3]);
|
|
1233
|
+
if (e2) return e2;
|
|
1234
|
+
}
|
|
1235
|
+
return n2.length - s2.length;
|
|
1236
|
+
}
|
|
1237
|
+
class Version {
|
|
1238
|
+
constructor(r2) {
|
|
1239
|
+
this._ver = (r2 || "").replace(/_/g, ".").replace(/\.+$/, ""), Object.freeze(this);
|
|
1240
|
+
}
|
|
1241
|
+
_compare(r2, e) {
|
|
1242
|
+
if (!this._ver || !r2) return false;
|
|
1243
|
+
const t2 = Array.isArray(e) ? e : [e], n2 = compareVersions(this._ver, r2);
|
|
1244
|
+
return t2.some(function(r3) {
|
|
1245
|
+
return n2 * r3 > 0 || 0 === n2 && 0 === r3;
|
|
1246
|
+
});
|
|
1247
|
+
}
|
|
1248
|
+
gt(r2) {
|
|
1249
|
+
return this._compare(r2, 1);
|
|
1250
|
+
}
|
|
1251
|
+
gte(r2) {
|
|
1252
|
+
return this._compare(r2, [1, 0]);
|
|
1253
|
+
}
|
|
1254
|
+
lt(r2) {
|
|
1255
|
+
return this._compare(r2, -1);
|
|
1256
|
+
}
|
|
1257
|
+
lte(r2) {
|
|
1258
|
+
return this._compare(r2, [-1, 0]);
|
|
1259
|
+
}
|
|
1260
|
+
eq(r2) {
|
|
1261
|
+
return this._compare(r2, 0);
|
|
1262
|
+
}
|
|
1263
|
+
toString() {
|
|
1264
|
+
return this._ver;
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
const propMap$3 = { ios: "isIOS", openharmony: "isOpenHarmony", android: "isAndroid", windows: "isWindows", macos: "isMacOS" };
|
|
1268
|
+
function platformToOS(s2) {
|
|
1269
|
+
switch (s2) {
|
|
1270
|
+
case "Android":
|
|
1271
|
+
return "android";
|
|
1272
|
+
case "iPad":
|
|
1273
|
+
case "iPhone":
|
|
1274
|
+
case "iPod":
|
|
1275
|
+
return "ios";
|
|
1276
|
+
case "MacIntel":
|
|
1277
|
+
return "macos";
|
|
1278
|
+
case "Win32":
|
|
1279
|
+
return "windows";
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
class OSInfo {
|
|
1283
|
+
constructor(s2, o2) {
|
|
1284
|
+
var i2;
|
|
1285
|
+
let e;
|
|
1286
|
+
if (this.isIOS = false, this.isAndroid = false, this.isHarmonyOS = false, this.isOpenHarmony = false, this.isWindows = false, this.isMacOS = false, null == o2 ? void 0 : o2.platform) {
|
|
1287
|
+
const s3 = platformToOS(o2.platform);
|
|
1288
|
+
void 0 !== s3 && (e = { name: s3, version: "" });
|
|
1289
|
+
}
|
|
1290
|
+
let n2 = null !== (i2 = execRules(s2, osRules)) && void 0 !== i2 ? i2 : e;
|
|
1291
|
+
n2 ? (e && e.name !== n2.name && (n2 = e), "macos" === n2.name && (null == o2 ? void 0 : o2.maxTouchPoints) && (n2.name = "ios", n2.version = ""), this[propMap$3[n2.name]] = true, this.version = new Version(n2.version), this.isAndroid && /\bHarmonyOS\b/.test(s2) && (this.isHarmonyOS = true), Object.freeze(this)) : this.version = Object.freeze(new Version(""));
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
const appleRules = [{ name: "ipad", regExp: /iPad/ }, { name: "ipod", regExp: /iPod/ }, { name: "iphone", regExp: /iPhone/ }];
|
|
1295
|
+
const androidRules = [{ name: "huawei", regExp: /\b(?:huawei|honor)/i }, { name: "huawei", keywords: ["ideahub", "figi"] }, { name: "vivo", keywords: ["vivo"] }, { name: "oppo", keywords: ["oppo"] }, { name: "mi", keywords: ["redmi", "hongmi", "shark", "Mi", "MIX", "POCO", "POCOPHONE"] }, { name: "mi", regExp: /\bxiaomi/i }, { name: "samsung", keywords: ["samsung", "galaxy"] }, { name: "oneplus", keywords: ["oneplus", "one"] }, { name: "huawei", modelRegExp: /^Mate\s*\d{2}/i }, { name: "huawei", modelRegExp: /^Nova\s\d$/ }, { name: "huawei", regExp: /\b(?:Hi)?MatePad/i }, { name: "huawei", regExp: /\b(?:Liantong|UNICOMVSENS)VP\d{3}\b/ }, { name: "huawei", regExp: /\bCMDCSP\d{3}\b/ }, { name: "huawei", regExp: /\bTDTECH/i }, { name: "huawei", modelRegExp: /^[A-Z]{3}\d?-W[0-5]9[A-Z]*$/ }, { name: "huawei", modelRegExp: /^[A-Z][A-Za-z]{2,3}-(?:AN|BD|BX|AL|TL)\d{2}[A-Za-z]*$/ }, { name: "huawei", modelRegExp: /^TYH\d+[A-Z]?$/ }, { name: "huawei", modelRegExp: /^H60-L0[12]$/ }, { name: "mi", modelRegExp: /^MI\s?(?:\d|CC|Note|MAX|PLAY|PAD)/i }, { name: "mi", modelRegExp: /^(?:AWM|SKR|SKW|DLT)-/ }, { name: "mi", modelRegExp: /^XIG\d{2}$/ }, { name: "mi", modelRegExp: /^M\d{4}[A-Z]\d{1,2}[A-Z]{1,3}$/ }, { name: "mi", modelRegExp: /^2\d{3}[A-Z0-9]{6}$/ }, { name: "mi", modelRegExp: /^2\d{5}[0-9A-Z]{2}[A-Z]$/ }, { name: "mi", modelRegExp: /^2\d{6}[A-Z]$/ }, { name: "mi", modelRegExp: /^2\d{7}[A-Z]{2,3}$/ }, { name: "samsung", modelRegExp: /^S(?:M|[CGP]H)-[A-Za-z0-9]+$/ }, { name: "samsung", modelRegExp: /^SCV3\d$/ }, { name: "samsung", modelRegExp: /^SC-\d{2}[A-Z]$/ }, { name: "samsung", modelRegExp: /^SH[WV]-/ }, { name: "samsung", modelRegExp: /^GT[-_][A-Z][A-Z0-9]{3,}$/i }, { name: "oppo", modelRegExp: /^(?:CPH|OPD|iPA)\d{4}$/ }, { name: "oppo", modelRegExp: /^OPG\d{2}$/ }, { name: "oppo", modelRegExp: /^A[1-5]0[1-9]OP$/ }, { name: "oneplus", modelRegExp: /^(?:KB|HD|IN|GM|NE|LE|MT)\d{4}$/ }, { name: "vivo", modelRegExp: /^V[12]\d{3}[A-Z]{0,2}$/ }];
|
|
1296
|
+
const propMap$2 = { ipod: "isIPod", iphone: "isIPhone", ipad: "isIPad", huawei: "isHuawei", mi: "isMi", oppo: "isOppo", vivo: "isVivo", oneplus: "isOnePlus", samsung: "isSamsung" };
|
|
1297
|
+
class BrandInfo {
|
|
1298
|
+
constructor(i2, s2) {
|
|
1299
|
+
let e;
|
|
1300
|
+
if (this.isHuawei = false, this.isMi = false, this.isOppo = false, this.isVivo = false, this.isOnePlus = false, this.isSamsung = false, this.isIPod = false, this.isIPhone = false, this.isIPad = false, this.isMac = false, this.isApple = false, s2.isIOS ? (e = appleRules, this.isApple = true) : s2.isMacOS ? (this.isMac = true, this.isApple = true) : (s2.isAndroid || s2.isOpenHarmony) && (e = androidRules), e) {
|
|
1301
|
+
const o2 = execRules(i2, e);
|
|
1302
|
+
o2 ? this[propMap$2[o2.name]] = true : s2.isIOS && (this.isIPad = true);
|
|
1303
|
+
}
|
|
1304
|
+
Object.freeze(this);
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
const browserRules = [{ name: "edge", regExp: /\bEdge\/([\d.]+)/ }, { name: "chrome", regExp: /\b(?:Chrome|CrMo|CriOS)\/([\d.]+)/ }, { name: "safari", regExp: /\b(?:Version\/([\d.]+).*\s?)?Safari\b/ }, { name: "ie", regExp: /\bMSIE\s(\d+)/i }, { name: "ie", regExp: /\bTrident\/.*;\srv:(\d+)/ }, { name: "firefox", regExp: /\bFirefox\/([\d.]+)/ }, { name: "opera-presto", regExp: /\bOpera\/([\d.]+)/ }];
|
|
1308
|
+
const propMap$1 = { chrome: "isChrome", safari: "isSafari", edge: "isEdge", ie: "isIE", firefox: "isFirefox", "opera-presto": "isPrestoOpera" };
|
|
1309
|
+
class BrowserInfo {
|
|
1310
|
+
constructor(e) {
|
|
1311
|
+
this.isChrome = false, this.isSafari = false, this.isEdge = false, this.isIE = false, this.isFirefox = false, this.isPrestoOpera = false;
|
|
1312
|
+
const s2 = execRules(e, browserRules);
|
|
1313
|
+
s2 ? (this[propMap$1[s2.name]] = true, this.version = new Version(s2.version)) : this.version = new Version(""), Object.freeze(this);
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
let clientRules = [{ name: "wxwork", regExp: /\bwxwork\/([\d.]+)/ }, { name: "wx", regExp: /\bMicroMessenger\/([\d.]+)/ }, { name: "ding", regExp: /\bDingTalk\/([\d.]+)/ }, { name: "qq", regExp: /\bQQ\/([\d.]+)/ }, { name: "qq", regExp: /\bIPadQQ\b/ }, { name: "weibo", regExp: /(?:\b|_)Weibo(?:\b|_)/i }, { name: "edge", regExp: /\bEdge?\/([\d.]+)/ }, { name: "opera-blink", regExp: /\bOPR\/([\d.]+)/ }, { name: "qqbrowser", regExp: /\bM?QQBrowser(?:\/([\d.]+))?/i }, { name: "ucbrowser", regExp: /\b(?:UCBrowser|UCWEB)(?:-CMCC)?\/?\s?([\d.]+)/ }, { name: "ucbrowser", regExp: /\bUC\b/ }, { name: "quark", regExp: /\bQuark\/([\d.]+)/ }, { name: "maxthon", regExp: /\b(?:Maxthon|MxBrowser)(?:[/\s]([\d.]+))?/ }, { name: "theworld", regExp: /\bTheWorld(?:\s([\d.]+))?/i }, { name: "baidubrowser", regExp: /\b(?:baidubrowser|bdbrowser_i18n|BIDUBrowser)(?:[/\s]([\d.]+))?/i }, { name: "baidubrowser", regExp: /\bbaidubrowserpad\b/ }, { name: "baiduapp", regExp: /\bbaiduboxapp\b\/([\d.]+)?/i }, { name: "baiduapp", regExp: /\bbaiduboxpad\b/i }];
|
|
1317
|
+
clientRules = clientRules.concat(browserRules);
|
|
1318
|
+
const propMap = { wxwork: "isWxWork", wx: "isWx", ding: "isDing", qq: "isQQ", weibo: "isWeibo", edge: "isEdge", "opera-blink": "isOpera", "opera-presto": "isOpera", qqbrowser: "isQQBrowser", ucbrowser: "isUCBrowser", quark: "isQuark", maxthon: "isMaxthon", theworld: "isTheWorld", baidubrowser: "isBaiduBrowser", baiduapp: "isBaiduApp", chrome: "isChrome", safari: "isSafari", ie: "isIE", firefox: "isFirefox" };
|
|
1319
|
+
class ClientInfo {
|
|
1320
|
+
constructor(i2) {
|
|
1321
|
+
this.isWxWork = false, this.isWx = false, this.isWxMiniProgram = false, this.isDing = false, this.isQQ = false, this.isWeibo = false, this.isEdge = false, this.isOpera = false, this.isQQBrowser = false, this.isUCBrowser = false, this.isQuark = false, this.isMaxthon = false, this.isTheWorld = false, this.isBaiduBrowser = false, this.isBaiduApp = false, this.isChrome = false, this.isSafari = false, this.isIE = false, this.isFirefox = false;
|
|
1322
|
+
const s2 = execRules(i2, clientRules);
|
|
1323
|
+
s2 ? (this[propMap[s2.name]] = true, this.version = new Version(s2.version)) : this.version = new Version(""), this.isWxMiniProgram = (this.isWx || this.isWxWork) && /\bMiniProgramEnv\b/.test(i2), Object.freeze(this);
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
class UAInfo {
|
|
1327
|
+
constructor(t2, i2) {
|
|
1328
|
+
this.os = Object.freeze(new OSInfo(t2, i2)), this.brand = Object.freeze(new BrandInfo(t2, this.os)), this.browser = Object.freeze(new BrowserInfo(t2)), this.client = Object.freeze(new ClientInfo(t2)), this.isTablet = this.brand.isIPad || /\bTablet\b/i.test(t2) || this.os.isAndroid && !/\bMobile\b/i.test(t2), this.os.isIOS || this.os.isAndroid || this.isTablet ? this.isPortable = true : /\(X11[;)]/i.test(t2) || /\b(Windows\sNT|Macintosh)\b/.test(t2) ? this.isPortable = false : this.isPortable = /mobile|android/i.test(t2), Object.freeze(this);
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
let currentUAInfo;
|
|
1332
|
+
function getCurrentUAInfo() {
|
|
1333
|
+
return currentUAInfo || (currentUAInfo = Object.freeze("undefined" != typeof window ? new UAInfo(window.navigator.userAgent, window.navigator) : new UAInfo(""))), currentUAInfo;
|
|
1334
|
+
}
|
|
1335
|
+
const ua = navigator.userAgent.toLowerCase();
|
|
1336
|
+
const uaInfo = getCurrentUAInfo();
|
|
1337
|
+
uaInfo.os.isAndroid;
|
|
1338
|
+
uaInfo.os.isIOS;
|
|
1339
|
+
uaInfo.client.version;
|
|
1340
|
+
const isWeixin = uaInfo.client.isWx;
|
|
1341
|
+
const isWorkWeixin = uaInfo.client.isWxWork;
|
|
1342
|
+
const isPcMiniProgram = (isWeixin || isWorkWeixin) && /miniprogramenv/.test(ua);
|
|
1343
|
+
function __isMobile() {
|
|
1344
|
+
const ua2 = navigator.userAgent;
|
|
1345
|
+
if (/mobile|android/i.test(ua2)) {
|
|
1346
|
+
return true;
|
|
1347
|
+
} else {
|
|
1348
|
+
if (/\b(Windows\sNT|Macintosh|x86(_(32|64))?|amd64|i[1-6]86)\b/.test(ua2) || !("onorientationchange" in window)) {
|
|
1349
|
+
return false;
|
|
1350
|
+
} else {
|
|
1351
|
+
return true;
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
function __isTablet() {
|
|
1356
|
+
const ua2 = navigator.userAgent;
|
|
1357
|
+
if (/(?:iPad|PlayBook)/.test(ua2)) return true;
|
|
1358
|
+
if (uaInfo.os.isAndroid && !/(?:Mobile)/.test(ua2) || /(?:Tablet)/.test(ua2)) return true;
|
|
1359
|
+
return false;
|
|
1360
|
+
}
|
|
1361
|
+
const isMob = __isMobile();
|
|
1362
|
+
isMob && __isTablet();
|
|
1363
|
+
const isMobile = /* @__PURE__ */ (() => {
|
|
1364
|
+
return isMob || isPcMiniProgram;
|
|
1365
|
+
})();
|
|
1366
|
+
const paymentProps = () => ({
|
|
1367
|
+
/** 支付实例 */
|
|
1368
|
+
paymentTarget: PropUtils.object().isRequired
|
|
1369
|
+
});
|
|
1370
|
+
function getPaymentTargetExport(paymentTarget) {
|
|
1371
|
+
return {
|
|
1372
|
+
PaymentProvider: paymentTarget.PaymentProvider
|
|
1373
|
+
};
|
|
1374
|
+
}
|
|
1375
|
+
const usePayment = (options) => {
|
|
1376
|
+
const { props } = options;
|
|
1377
|
+
const { PaymentProvider } = getPaymentTargetExport(props.paymentTarget);
|
|
1378
|
+
const { injectData } = useGlobalInject();
|
|
1379
|
+
const { $t } = useI18n();
|
|
1380
|
+
const supportPayProviders = ref([]);
|
|
1381
|
+
const isSupportPay = computed(() => {
|
|
1382
|
+
const supportAlipay = supportPayProviders.value.includes(PaymentProvider.Alipay);
|
|
1383
|
+
return isMobile && (isWeixin || supportAlipay);
|
|
1384
|
+
});
|
|
1385
|
+
const onlySupportAlipay = computed(() => {
|
|
1386
|
+
return supportPayProviders.value.length === 1 && supportPayProviders.value[0] === PaymentProvider.Alipay;
|
|
1387
|
+
});
|
|
1388
|
+
const onlySupportWechatPay = computed(() => {
|
|
1389
|
+
return supportPayProviders.value.length === 1 && supportPayProviders.value[0] === PaymentProvider.Wechat;
|
|
1390
|
+
});
|
|
1391
|
+
function getPayProviders() {
|
|
1392
|
+
return __async(this, null, function* () {
|
|
1393
|
+
const data = yield props.paymentTarget.getPayProviders();
|
|
1394
|
+
supportPayProviders.value = data;
|
|
1395
|
+
});
|
|
1396
|
+
}
|
|
1397
|
+
function payWithWechat(payInfo) {
|
|
1398
|
+
return __async(this, null, function* () {
|
|
1399
|
+
return new Promise((resolve) => __async(null, null, function* () {
|
|
1400
|
+
if (!isWeixin) {
|
|
1401
|
+
return resolve({ success: false, failReason: "notInWechatBrowser", failMessage: $t("order.wechatPayTips") });
|
|
1402
|
+
}
|
|
1403
|
+
if (!injectData.getWeixinSdk) {
|
|
1404
|
+
return resolve({ success: false, failReason: "sdkNotAvailable", failMessage: $t("order.payFailed") });
|
|
1405
|
+
}
|
|
1406
|
+
let wx;
|
|
1407
|
+
try {
|
|
1408
|
+
wx = yield injectData.getWeixinSdk();
|
|
1409
|
+
} catch (err) {
|
|
1410
|
+
return resolve({ success: false, failReason: "sdkNotAvailable", failMessage: $t("order.payFailed") });
|
|
1411
|
+
}
|
|
1412
|
+
if (!wx) {
|
|
1413
|
+
return resolve({ success: false, failReason: "sdkNotAvailable", failMessage: $t("order.payFailed") });
|
|
1414
|
+
}
|
|
1415
|
+
wx.chooseWXPay({
|
|
1416
|
+
timestamp: payInfo.timestamp,
|
|
1417
|
+
nonceStr: payInfo.nonceStr,
|
|
1418
|
+
package: payInfo.package,
|
|
1419
|
+
signType: payInfo.signType,
|
|
1420
|
+
paySign: payInfo.paySign,
|
|
1421
|
+
success: (res) => {
|
|
1422
|
+
resolve({ success: true, data: res || {} });
|
|
1423
|
+
},
|
|
1424
|
+
cancel: () => {
|
|
1425
|
+
resolve({ success: false, failReason: "userCancelled", failMessage: $t("order.cancelPay") });
|
|
1426
|
+
},
|
|
1427
|
+
fail: (res) => {
|
|
1428
|
+
props.paymentTarget.iarCore.logger.error("wx", "choose-wx-pay-fail", JSON.stringify(res));
|
|
1429
|
+
resolve({ success: false, failReason: "payFailed", failMessage: (res == null ? void 0 : res.errMsg) || $t("order.payFailed") });
|
|
1430
|
+
}
|
|
1431
|
+
});
|
|
1432
|
+
}));
|
|
1433
|
+
});
|
|
1434
|
+
}
|
|
1435
|
+
function payWithAli(url) {
|
|
1436
|
+
const a2 = document.createElement("a");
|
|
1437
|
+
a2.href = url;
|
|
1438
|
+
a2.click();
|
|
1439
|
+
}
|
|
1440
|
+
return {
|
|
1441
|
+
supportPayProviders,
|
|
1442
|
+
isSupportPay,
|
|
1443
|
+
onlySupportAlipay,
|
|
1444
|
+
onlySupportWechatPay,
|
|
1445
|
+
getPayProviders,
|
|
1446
|
+
payWithWechat,
|
|
1447
|
+
payWithAli
|
|
1448
|
+
};
|
|
1449
|
+
};
|
|
1450
|
+
var OrderButtonAction = /* @__PURE__ */ ((OrderButtonAction2) => {
|
|
1451
|
+
OrderButtonAction2["ApplyRefund"] = "applyRefund";
|
|
1452
|
+
OrderButtonAction2["Pay"] = "pay";
|
|
1453
|
+
OrderButtonAction2["ViewDetail"] = "viewDetail";
|
|
1454
|
+
OrderButtonAction2["ConfirmReceipt"] = "confirmReceipt";
|
|
1455
|
+
return OrderButtonAction2;
|
|
1456
|
+
})(OrderButtonAction || {});
|
|
1457
|
+
var OrderListPopupRoute = /* @__PURE__ */ ((OrderListPopupRoute2) => {
|
|
1458
|
+
OrderListPopupRoute2["OrderList"] = "orderList";
|
|
1459
|
+
OrderListPopupRoute2["OrderDetail"] = "orderDetail";
|
|
1460
|
+
return OrderListPopupRoute2;
|
|
1461
|
+
})(OrderListPopupRoute || {});
|
|
1462
|
+
const orderProps = () => __spreadProps(__spreadValues({}, paymentProps()), {
|
|
1463
|
+
/** 订单 SDK 实例 */
|
|
1464
|
+
orderTarget: PropUtils.object().isRequired
|
|
1465
|
+
});
|
|
1466
|
+
function getOrderTargetExport(orderTarget) {
|
|
1467
|
+
return {
|
|
1468
|
+
OrderStatus: orderTarget.OrderStatus,
|
|
1469
|
+
PayStatus: orderTarget.PayStatus,
|
|
1470
|
+
PaymentProvider: orderTarget.PaymentProvider,
|
|
1471
|
+
ProductDeliveryType: orderTarget.ProductDeliveryType,
|
|
1472
|
+
ProductType: orderTarget.ProductType,
|
|
1473
|
+
ProductBuyType: orderTarget.ProductBuyType,
|
|
1474
|
+
RefundStatus: orderTarget.RefundStatus,
|
|
1475
|
+
CreateOrderFailReason: orderTarget.CreateOrderFailReason
|
|
1476
|
+
};
|
|
1477
|
+
}
|
|
1478
|
+
const ORDER_PROVIDE_KEY = Symbol("ORDER_PROVIDE_KEY");
|
|
1479
|
+
const useOrderProvide = (props) => {
|
|
1480
|
+
provide(ORDER_PROVIDE_KEY, {
|
|
1481
|
+
getOrderTarget: () => props.orderTarget
|
|
1482
|
+
});
|
|
1483
|
+
const orderTarget = props.orderTarget;
|
|
1484
|
+
const orderTargetExport = getOrderTargetExport(orderTarget);
|
|
1485
|
+
const { OrderStatus, PayStatus, PaymentProvider, RefundStatus } = orderTargetExport;
|
|
1486
|
+
const { supportPayProviders, onlySupportAlipay, payWithWechat, payWithAli, getPayProviders } = usePayment({ props });
|
|
1487
|
+
const { getEmitter, messageBox, toast } = useGlobalInject();
|
|
1488
|
+
const { $t } = useI18n();
|
|
1489
|
+
function navToOrderDetail(orderNo) {
|
|
1490
|
+
getEmitter().emit(productEvents.OpenProductOrderDetailPopup, orderNo);
|
|
1491
|
+
}
|
|
1492
|
+
function emitRefreshEvents(params, syncPayStatus = false) {
|
|
1493
|
+
if (params.route === "orderList") {
|
|
1494
|
+
getEmitter().emit(productEvents.RefreshProductOrderListStatus, params.orderNo);
|
|
1495
|
+
} else {
|
|
1496
|
+
getEmitter().emit(productEvents.RefreshProductOrderDetailStatus, {
|
|
1497
|
+
orderNo: params.orderNo,
|
|
1498
|
+
syncPayStatus
|
|
1499
|
+
});
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1502
|
+
function handleConfirmReceipt(params) {
|
|
1503
|
+
return __async(this, null, function* () {
|
|
1504
|
+
if (params.orderStatus !== OrderStatus.Delivering) return;
|
|
1505
|
+
const confirm = yield messageBox({
|
|
1506
|
+
content: $t("order.confirmReceiptTips"),
|
|
1507
|
+
confirmButtonText: $t("common.confirm"),
|
|
1508
|
+
cancelButtonText: $t("common.cancel")
|
|
1509
|
+
});
|
|
1510
|
+
if (!confirm) return;
|
|
1511
|
+
yield props.orderTarget.confirmOrder(params.orderNo);
|
|
1512
|
+
toast($t("order.confirmedReceipt"));
|
|
1513
|
+
emitRefreshEvents(params);
|
|
1514
|
+
});
|
|
1515
|
+
}
|
|
1516
|
+
function handleRePay(params) {
|
|
1517
|
+
return __async(this, null, function* () {
|
|
1518
|
+
if (params.route === "orderList") {
|
|
1519
|
+
if (supportPayProviders.value.length > 1 || onlySupportAlipay.value) {
|
|
1520
|
+
navToOrderDetail(params.orderNo);
|
|
1521
|
+
return;
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
const payOrderParams = yield props.paymentTarget.getPayOrderParams({
|
|
1525
|
+
orderNo: params.orderNo,
|
|
1526
|
+
payProvider: params.payProvider || PaymentProvider.Wechat
|
|
1527
|
+
});
|
|
1528
|
+
if (payOrderParams.payStatus === PayStatus.Free) {
|
|
1529
|
+
toast($t("order.paySuccess"));
|
|
1530
|
+
emitRefreshEvents(params, true);
|
|
1531
|
+
return;
|
|
1532
|
+
}
|
|
1533
|
+
if (params.payProvider && params.payProvider === PaymentProvider.Alipay) {
|
|
1534
|
+
payWithAli(payOrderParams.aliPayLink);
|
|
1535
|
+
emitRefreshEvents(params, true);
|
|
1536
|
+
return;
|
|
1537
|
+
}
|
|
1538
|
+
const res = yield payWithWechat({
|
|
1539
|
+
timestamp: payOrderParams.timeStamp,
|
|
1540
|
+
nonceStr: payOrderParams.nonceStr,
|
|
1541
|
+
package: payOrderParams.package,
|
|
1542
|
+
signType: payOrderParams.signType,
|
|
1543
|
+
paySign: payOrderParams.paySign
|
|
1544
|
+
});
|
|
1545
|
+
if (res.success) {
|
|
1546
|
+
toast($t("order.paySuccess"));
|
|
1547
|
+
emitRefreshEvents(params, true);
|
|
1548
|
+
} else {
|
|
1549
|
+
toast(res.failMessage);
|
|
1550
|
+
}
|
|
1551
|
+
});
|
|
1552
|
+
}
|
|
1553
|
+
function handleOrderRefund(params) {
|
|
1554
|
+
return __async(this, null, function* () {
|
|
1555
|
+
if (params.orderStatus !== OrderStatus.WaitDelivery) return;
|
|
1556
|
+
const text = $t("order.refundTips");
|
|
1557
|
+
const amount = params.orderAmount || "";
|
|
1558
|
+
const confirm = yield messageBox({
|
|
1559
|
+
content: `<div style="font-size: 16px; color: #3D3D3D;">${text}<span style="color: #FF5252;">¥${amount}</span></div>`,
|
|
1560
|
+
cancelButtonText: $t("common.cancel"),
|
|
1561
|
+
confirmButtonText: $t("order.confirmRefund")
|
|
1562
|
+
});
|
|
1563
|
+
if (!confirm) return;
|
|
1564
|
+
const res = yield props.orderTarget.applyOrderRefund(params.orderNo);
|
|
1565
|
+
if (!res.success) {
|
|
1566
|
+
toast($t("order.failed"));
|
|
1567
|
+
return;
|
|
1568
|
+
}
|
|
1569
|
+
if (res.refundStatus === RefundStatus.Fail) {
|
|
1570
|
+
toast($t("order.refundFailed"));
|
|
1571
|
+
}
|
|
1572
|
+
emitRefreshEvents(params);
|
|
1573
|
+
});
|
|
1574
|
+
}
|
|
1575
|
+
function handleOrderBtnClick(params) {
|
|
1576
|
+
switch (params.action) {
|
|
1577
|
+
case "pay":
|
|
1578
|
+
handleRePay(params);
|
|
1579
|
+
break;
|
|
1580
|
+
case "viewDetail":
|
|
1581
|
+
navToOrderDetail(params.orderNo);
|
|
1582
|
+
break;
|
|
1583
|
+
case "confirmReceipt":
|
|
1584
|
+
handleConfirmReceipt(params);
|
|
1585
|
+
break;
|
|
1586
|
+
case "applyRefund":
|
|
1587
|
+
handleOrderRefund(params);
|
|
1588
|
+
break;
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1591
|
+
return __spreadValues({
|
|
1592
|
+
orderTarget,
|
|
1593
|
+
supportPayProviders,
|
|
1594
|
+
onlySupportAlipay,
|
|
1595
|
+
getPayProviders,
|
|
1596
|
+
handleRePay,
|
|
1597
|
+
handleConfirmReceipt,
|
|
1598
|
+
navToOrderDetail,
|
|
1599
|
+
handleOrderBtnClick
|
|
1600
|
+
}, orderTargetExport);
|
|
1601
|
+
};
|
|
1602
|
+
const useOrderInject = () => {
|
|
1603
|
+
const data = inject(ORDER_PROVIDE_KEY);
|
|
1604
|
+
const { $t } = useI18n();
|
|
1605
|
+
const orderTarget = data.getOrderTarget();
|
|
1606
|
+
const orderTargetExport = getOrderTargetExport(orderTarget);
|
|
1607
|
+
const { OrderStatus } = orderTargetExport;
|
|
1608
|
+
function getOrderStatusText(status) {
|
|
1609
|
+
switch (status) {
|
|
1610
|
+
case OrderStatus.WaitPay:
|
|
1611
|
+
return $t("order.list.waitPay");
|
|
1612
|
+
case OrderStatus.WaitDelivery:
|
|
1613
|
+
return $t("order.list.waitDelivery");
|
|
1614
|
+
case OrderStatus.Delivering:
|
|
1615
|
+
return $t("order.list.delivering");
|
|
1616
|
+
case OrderStatus.Finish:
|
|
1617
|
+
return $t("order.list.finish");
|
|
1618
|
+
case OrderStatus.Close:
|
|
1619
|
+
return $t("order.list.close");
|
|
1620
|
+
case OrderStatus.Refunding:
|
|
1621
|
+
return $t("order.list.refunding");
|
|
1622
|
+
case OrderStatus.Refunded:
|
|
1623
|
+
return $t("order.list.refunded");
|
|
1624
|
+
default:
|
|
1625
|
+
return "";
|
|
1626
|
+
}
|
|
1627
|
+
}
|
|
1628
|
+
return __spreadValues({
|
|
1629
|
+
orderTarget,
|
|
1630
|
+
getOrderStatusText
|
|
1631
|
+
}, orderTargetExport);
|
|
1632
|
+
};
|
|
1633
|
+
const useScrollTab = () => {
|
|
1634
|
+
const tabContainerRef = ref();
|
|
1635
|
+
const tabItemRefs = ref([]);
|
|
1636
|
+
function setTabItemRef(el, index) {
|
|
1637
|
+
if (el && el instanceof HTMLElement) {
|
|
1638
|
+
tabItemRefs.value[index] = el;
|
|
1639
|
+
}
|
|
1640
|
+
}
|
|
1641
|
+
function scrollToTab(index) {
|
|
1642
|
+
const container = tabContainerRef.value;
|
|
1643
|
+
const targetTab = tabItemRefs.value[index];
|
|
1644
|
+
if (!container || !targetTab) {
|
|
1645
|
+
return;
|
|
1646
|
+
}
|
|
1647
|
+
const containerWidth = container.clientWidth;
|
|
1648
|
+
const tabLeft = targetTab.offsetLeft;
|
|
1649
|
+
const tabWidth = targetTab.offsetWidth;
|
|
1650
|
+
const targetScrollLeft = tabLeft - (containerWidth - tabWidth) / 2;
|
|
1651
|
+
const maxScrollLeft = container.scrollWidth - containerWidth;
|
|
1652
|
+
const finalScrollLeft = Math.max(0, Math.min(targetScrollLeft, maxScrollLeft));
|
|
1653
|
+
container.scrollTo({
|
|
1654
|
+
left: finalScrollLeft,
|
|
1655
|
+
behavior: "smooth"
|
|
1656
|
+
});
|
|
1657
|
+
}
|
|
1658
|
+
function scrollToTabAsync(index) {
|
|
1659
|
+
nextTick(() => {
|
|
1660
|
+
scrollToTab(index);
|
|
1661
|
+
});
|
|
1662
|
+
}
|
|
1663
|
+
function scrollToTabByValue(tabs, predicate) {
|
|
1664
|
+
const index = tabs.findIndex(predicate);
|
|
1665
|
+
if (index !== -1) {
|
|
1666
|
+
scrollToTabAsync(index);
|
|
1667
|
+
}
|
|
1668
|
+
}
|
|
1669
|
+
onBeforeUpdate(() => {
|
|
1670
|
+
tabItemRefs.value = [];
|
|
1671
|
+
});
|
|
1672
|
+
return {
|
|
1673
|
+
tabContainerRef,
|
|
1674
|
+
tabItemRefs,
|
|
1675
|
+
setTabItemRef,
|
|
1676
|
+
scrollToTab,
|
|
1677
|
+
scrollToTabAsync,
|
|
1678
|
+
scrollToTabByValue
|
|
1679
|
+
};
|
|
1680
|
+
};
|
|
1681
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
1682
|
+
__name: "order-status-tab",
|
|
1683
|
+
props: {
|
|
1684
|
+
value: PropUtils.string.def("all")
|
|
1685
|
+
},
|
|
1686
|
+
emits: {
|
|
1687
|
+
"input": emitFunc()
|
|
1688
|
+
},
|
|
1689
|
+
setup(__props, { expose, emit }) {
|
|
1690
|
+
const { OrderStatus, getOrderStatusText } = useOrderInject();
|
|
1691
|
+
const { $t } = useI18n();
|
|
1692
|
+
const {
|
|
1693
|
+
tabContainerRef,
|
|
1694
|
+
setTabItemRef,
|
|
1695
|
+
scrollToTabAsync,
|
|
1696
|
+
scrollToTabByValue
|
|
1697
|
+
} = useScrollTab();
|
|
1698
|
+
const targetOrderStatuses = [
|
|
1699
|
+
OrderStatus.WaitPay,
|
|
1700
|
+
OrderStatus.WaitDelivery,
|
|
1701
|
+
OrderStatus.Delivering,
|
|
1702
|
+
OrderStatus.Finish
|
|
1703
|
+
];
|
|
1704
|
+
const orderStatusTabs = computed(() => [
|
|
1705
|
+
{ value: "all", label: $t("product.all") },
|
|
1706
|
+
...targetOrderStatuses.map((status) => ({
|
|
1707
|
+
value: status,
|
|
1708
|
+
label: getOrderStatusText(status)
|
|
1709
|
+
}))
|
|
1710
|
+
]);
|
|
1711
|
+
function onClickTab(selectedTab, clickedIndex) {
|
|
1712
|
+
emit("input", selectedTab);
|
|
1713
|
+
scrollToTabAsync(clickedIndex);
|
|
1714
|
+
}
|
|
1715
|
+
function scrollToTabByTabValue(tabValue) {
|
|
1716
|
+
scrollToTabByValue(orderStatusTabs.value, (tab) => tab.value === tabValue);
|
|
1717
|
+
}
|
|
1718
|
+
expose({
|
|
1719
|
+
scrollToTabByValue: scrollToTabByTabValue
|
|
1720
|
+
});
|
|
1721
|
+
return { __sfc: true, emit, OrderStatus, getOrderStatusText, $t, tabContainerRef, setTabItemRef, scrollToTabAsync, scrollToTabByValue, targetOrderStatuses, orderStatusTabs, onClickTab, scrollToTabByTabValue };
|
|
1722
|
+
}
|
|
1723
|
+
});
|
|
1724
|
+
function normalizeComponent(scriptExports, render7, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
1725
|
+
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
1726
|
+
if (render7) {
|
|
1727
|
+
options.render = render7;
|
|
1728
|
+
options.staticRenderFns = staticRenderFns;
|
|
1729
|
+
options._compiled = true;
|
|
1730
|
+
}
|
|
1731
|
+
return {
|
|
1732
|
+
exports: scriptExports,
|
|
1733
|
+
options
|
|
1734
|
+
};
|
|
1735
|
+
}
|
|
1736
|
+
var _sfc_render$5 = function render() {
|
|
1737
|
+
var _vm = this, _c = _vm._self._c, _setup = _vm._self._setupProxy;
|
|
1738
|
+
return _c("div", { ref: "tabContainerRef", staticClass: "plv-product-c-order-status-tab" }, _vm._l(_setup.orderStatusTabs, function(tab, index) {
|
|
1739
|
+
return _c("div", { key: index, ref: (el) => _setup.setTabItemRef(el, index), refInFor: true, class: [
|
|
1740
|
+
"plv-product-c-order-status-tab__item",
|
|
1741
|
+
{ "plv-product-c-order-status-tab__item--active": tab.value === _vm.value }
|
|
1742
|
+
], on: { "click": function($event) {
|
|
1743
|
+
return _setup.onClickTab(tab.value, index);
|
|
1744
|
+
} } }, [_vm._v(" " + _vm._s(tab.label) + " ")]);
|
|
1745
|
+
}), 0);
|
|
1746
|
+
};
|
|
1747
|
+
var _sfc_staticRenderFns$5 = [];
|
|
1748
|
+
var __component__$5 = /* @__PURE__ */ normalizeComponent(
|
|
1749
|
+
_sfc_main$5,
|
|
1750
|
+
_sfc_render$5,
|
|
1751
|
+
_sfc_staticRenderFns$5
|
|
1752
|
+
);
|
|
1753
|
+
const OrderStatusTab = __component__$5.exports;
|
|
1754
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
1755
|
+
__name: "order-pay-countdown",
|
|
1756
|
+
props: {
|
|
1757
|
+
endTime: PropUtils.number.isRequired
|
|
1758
|
+
},
|
|
1759
|
+
emits: {
|
|
1760
|
+
"count-down-end": emitFunc()
|
|
1761
|
+
},
|
|
1762
|
+
setup(__props, { emit }) {
|
|
1763
|
+
const props = __props;
|
|
1764
|
+
const timeStr = ref("");
|
|
1765
|
+
const intervalId = ref(null);
|
|
1766
|
+
function clearCountdown() {
|
|
1767
|
+
if (intervalId.value !== null) {
|
|
1768
|
+
clearInterval(intervalId.value);
|
|
1769
|
+
intervalId.value = null;
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1772
|
+
function formattedTime() {
|
|
1773
|
+
if (!props.endTime || props.endTime - Date.now() <= 0) {
|
|
1774
|
+
emit("count-down-end");
|
|
1775
|
+
clearCountdown();
|
|
1776
|
+
return "00:00";
|
|
1777
|
+
}
|
|
1778
|
+
const remainingTime = props.endTime - Date.now();
|
|
1779
|
+
const minutes = Math.floor(remainingTime / (60 * 1e3));
|
|
1780
|
+
const seconds = Math.floor(remainingTime % (60 * 1e3) / 1e3);
|
|
1781
|
+
if (minutes < 0 || seconds < 0) {
|
|
1782
|
+
emit("count-down-end");
|
|
1783
|
+
clearCountdown();
|
|
1784
|
+
return "00:00";
|
|
1785
|
+
}
|
|
1786
|
+
return `${String(minutes).padStart(2, "0")}:${String(seconds).padStart(2, "0")}`;
|
|
1787
|
+
}
|
|
1788
|
+
onMounted(() => {
|
|
1789
|
+
timeStr.value = formattedTime();
|
|
1790
|
+
if (props.endTime > Date.now()) {
|
|
1791
|
+
intervalId.value = setInterval(() => {
|
|
1792
|
+
timeStr.value = formattedTime();
|
|
1793
|
+
}, 1e3);
|
|
1794
|
+
}
|
|
1795
|
+
});
|
|
1796
|
+
onBeforeUnmount(() => {
|
|
1797
|
+
clearCountdown();
|
|
1798
|
+
});
|
|
1799
|
+
return { __sfc: true, props, emit, timeStr, intervalId, clearCountdown, formattedTime };
|
|
1800
|
+
}
|
|
1801
|
+
});
|
|
1802
|
+
var _sfc_render$4 = function render2() {
|
|
1803
|
+
var _vm = this, _c = _vm._self._c, _setup = _vm._self._setupProxy;
|
|
1804
|
+
return _c("span", [_vm._v(_vm._s(_setup.timeStr))]);
|
|
1805
|
+
};
|
|
1806
|
+
var _sfc_staticRenderFns$4 = [];
|
|
1807
|
+
var __component__$4 = /* @__PURE__ */ normalizeComponent(
|
|
1808
|
+
_sfc_main$4,
|
|
1809
|
+
_sfc_render$4,
|
|
1810
|
+
_sfc_staticRenderFns$4
|
|
1811
|
+
);
|
|
1812
|
+
const OrderPayCountdown = __component__$4.exports;
|
|
1813
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
1814
|
+
__name: "product-feature-tag",
|
|
1815
|
+
props: {
|
|
1816
|
+
tag: PropUtils.string.def(""),
|
|
1817
|
+
maxWidth: PropUtils.number.def(88)
|
|
1818
|
+
},
|
|
1819
|
+
setup(__props) {
|
|
1820
|
+
const props = __props;
|
|
1821
|
+
const containerStyle = computed(() => ({
|
|
1822
|
+
maxWidth: `${props.maxWidth}px`
|
|
1823
|
+
}));
|
|
1824
|
+
return { __sfc: true, props, containerStyle };
|
|
1825
|
+
}
|
|
1826
|
+
});
|
|
1827
|
+
var _sfc_render$3 = function render3() {
|
|
1828
|
+
var _vm = this, _c = _vm._self._c, _setup = _vm._self._setupProxy;
|
|
1829
|
+
return _c("div", { staticClass: "plv-product-c-item__tag-container", style: _setup.containerStyle, attrs: { "title": _vm.tag } }, [_vm.tag ? _c("span", { staticClass: "plv-product-c-item__tag" }, [_vm._v(_vm._s(_vm.tag))]) : _vm._e()]);
|
|
1830
|
+
};
|
|
1831
|
+
var _sfc_staticRenderFns$3 = [];
|
|
1832
|
+
var __component__$3 = /* @__PURE__ */ normalizeComponent(
|
|
1833
|
+
_sfc_main$3,
|
|
1834
|
+
_sfc_render$3,
|
|
1835
|
+
_sfc_staticRenderFns$3
|
|
1836
|
+
);
|
|
1837
|
+
const ProductFeatureTag = __component__$3.exports;
|
|
1838
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
1839
|
+
__name: "purchase-product",
|
|
1840
|
+
props: {
|
|
1841
|
+
product: PropUtils.object().isRequired
|
|
1842
|
+
},
|
|
1843
|
+
emits: {
|
|
1844
|
+
"click-purchase-product": emitFunc()
|
|
1845
|
+
},
|
|
1846
|
+
setup(__props, { emit }) {
|
|
1847
|
+
const props = __props;
|
|
1848
|
+
const { $t } = useI18n();
|
|
1849
|
+
const displayTotalPrice = computed(() => {
|
|
1850
|
+
if (props.product.realPrice === 0) return $t("product.price.free");
|
|
1851
|
+
return props.product.realPrice;
|
|
1852
|
+
});
|
|
1853
|
+
function onOrderProductClick() {
|
|
1854
|
+
emit("click-purchase-product");
|
|
1855
|
+
}
|
|
1856
|
+
return { __sfc: true, props, $t, displayTotalPrice, emit, onOrderProductClick, ProductFeatureTag };
|
|
1857
|
+
}
|
|
1858
|
+
});
|
|
1859
|
+
var _sfc_render$2 = function render4() {
|
|
1860
|
+
var _vm = this, _c = _vm._self._c, _setup = _vm._self._setupProxy;
|
|
1861
|
+
return _c("div", { staticClass: "plv-product-c-purchase-product", on: { "click": _setup.onOrderProductClick } }, [_c("img", { staticClass: "plv-product-c-purchase-product__image", attrs: { "src": _vm.product.cover, "alt": _vm.product.name } }), _c("div", { staticClass: "plv-product-c-purchase-product__info" }, [_c("div", { staticClass: "plv-product-c-purchase-product__name" }, [_vm._v(" " + _vm._s(_vm.product.name) + " ")]), _vm.product.featureTags ? _c("div", { staticClass: "plv-product-c-purchase-product__tags" }, _vm._l(_vm.product.featureTags, function(tag, index) {
|
|
1862
|
+
return _c(_setup.ProductFeatureTag, { key: index, attrs: { "tag": tag } });
|
|
1863
|
+
}), 1) : _vm._e(), _vm.product.description ? _c("div", { staticClass: "plv-product-c-purchase-product__description" }, [_vm._v(" " + _vm._s(_vm.product.description) + " ")]) : _vm._e(), _c("div", { staticClass: "plv-product-c-purchase-product__price" }, [_vm.product.realPrice > 0 ? _c("span", { staticClass: "plv-product-c-purchase-product__price-symbol" }, [_vm._v("¥")]) : _vm._e(), _c("span", { staticClass: "plv-product-c-purchase-product__price-value plv-font-din-pro-regular" }, [_vm._v(_vm._s(_setup.displayTotalPrice))])])])]);
|
|
1864
|
+
};
|
|
1865
|
+
var _sfc_staticRenderFns$2 = [];
|
|
1866
|
+
var __component__$2 = /* @__PURE__ */ normalizeComponent(
|
|
1867
|
+
_sfc_main$2,
|
|
1868
|
+
_sfc_render$2,
|
|
1869
|
+
_sfc_staticRenderFns$2
|
|
1870
|
+
);
|
|
1871
|
+
const PurchaseProduct = __component__$2.exports;
|
|
1872
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
1873
|
+
__name: "order-item",
|
|
1874
|
+
props: {
|
|
1875
|
+
order: PropUtils.object().isRequired
|
|
1876
|
+
},
|
|
1877
|
+
emits: {
|
|
1878
|
+
"click-purchase-product": emitFunc(),
|
|
1879
|
+
"click-order-btn": emitFunc()
|
|
1880
|
+
},
|
|
1881
|
+
setup(__props, { emit }) {
|
|
1882
|
+
const props = __props;
|
|
1883
|
+
const { OrderStatus, getOrderStatusText, ProductDeliveryType } = useOrderInject();
|
|
1884
|
+
const { getEmitter } = useGlobalInject();
|
|
1885
|
+
const { $t } = useI18n();
|
|
1886
|
+
const shouldHighlightStatusText = computed(() => {
|
|
1887
|
+
return [OrderStatus.WaitPay, OrderStatus.WaitDelivery, OrderStatus.Delivering].includes(props.order.status);
|
|
1888
|
+
});
|
|
1889
|
+
function handleCountDownEnd() {
|
|
1890
|
+
getEmitter().emit(productEvents.RefreshProductOrderListStatus, props.order.orderNo);
|
|
1891
|
+
}
|
|
1892
|
+
function onOrderProductClick() {
|
|
1893
|
+
emit("click-purchase-product", props.order.orderNo);
|
|
1894
|
+
}
|
|
1895
|
+
function onOrderBtnClick(action) {
|
|
1896
|
+
emit("click-order-btn", { orderNo: props.order.orderNo, orderStatus: props.order.status, action, route: OrderListPopupRoute.OrderList, orderAmount: props.order.amount });
|
|
1897
|
+
}
|
|
1898
|
+
return { __sfc: true, props, emit, OrderStatus, getOrderStatusText, ProductDeliveryType, getEmitter, $t, shouldHighlightStatusText, handleCountDownEnd, onOrderProductClick, onOrderBtnClick, OrderPayCountdown, PurchaseProduct, OrderButtonAction };
|
|
1899
|
+
}
|
|
1900
|
+
});
|
|
1901
|
+
var _sfc_render$1 = function render5() {
|
|
1902
|
+
var _vm = this, _c = _vm._self._c, _setup = _vm._self._setupProxy;
|
|
1903
|
+
return _c("div", { staticClass: "plv-product-order-item" }, [_c("div", { staticClass: "plv-product-order-item__main" }, _vm._l(_vm.order.products, function(product, index) {
|
|
1904
|
+
return _c(_setup.PurchaseProduct, { key: index, attrs: { "product": product }, on: { "click-purchase-product": _setup.onOrderProductClick } });
|
|
1905
|
+
}), 1), _c("div", { staticClass: "plv-product-order-item__footer" }, [_c("div", { staticClass: "plv-product-order-item__total" }, [_c("span", { staticClass: "plv-product-order-item__total-symbol" }, [_vm._v(_vm._s(_setup.$t("order.list.total")))]), _c("span", { staticClass: "plv-product-order-item__total-value plv-font-din-pro-regular" }, [_vm._v("¥" + _vm._s(_vm.order.amount))])]), _c("div", { staticClass: "plv-product-order-item__actions-summary" }, [_c("div", { staticClass: "plv-product-order-item__left" }, [_c("span", { staticClass: "plv-product-order-item__status-text", class: { "plv-product-order-item__status-text--highlight": _setup.shouldHighlightStatusText } }, [_vm._v(_vm._s(_setup.getOrderStatusText(_vm.order.status)))]), _vm.order.status === _setup.OrderStatus.WaitPay ? _c(_setup.OrderPayCountdown, { staticClass: "plv-product-order-item__countdown", attrs: { "end-time": _vm.order.expiredAt }, on: { "count-down-end": _setup.handleCountDownEnd } }) : _vm._e()], 1), _c("div", { staticClass: "plv-product-order-item__buttons" }, [_vm.order.status === _setup.OrderStatus.WaitDelivery && _vm.order.products[0].deliveryType === _setup.ProductDeliveryType.Express && _vm.order.products[0].realPrice > 0 ? _c("button", { staticClass: "plv-product-order-item__button", on: { "click": function($event) {
|
|
1906
|
+
return _setup.onOrderBtnClick(_setup.OrderButtonAction.ApplyRefund);
|
|
1907
|
+
} } }, [_vm._v(" " + _vm._s(_setup.$t("order.applyRefund")) + " ")]) : _vm._e(), _vm.order.status === _setup.OrderStatus.WaitPay ? _c("button", { staticClass: "plv-product-order-item__button plv-product-order-item__button--highlight", on: { "click": function($event) {
|
|
1908
|
+
return _setup.onOrderBtnClick(_setup.OrderButtonAction.Pay);
|
|
1909
|
+
} } }, [_vm._v(" " + _vm._s(_setup.$t("order.list.waitPayBtnText")) + " ")]) : _vm._e(), _vm.order.status === _setup.OrderStatus.WaitDelivery || _vm.order.status === _setup.OrderStatus.Close || _vm.order.status === _setup.OrderStatus.Finish ? _c("button", { staticClass: "plv-product-order-item__button", on: { "click": function($event) {
|
|
1910
|
+
return _setup.onOrderBtnClick(_setup.OrderButtonAction.ViewDetail);
|
|
1911
|
+
} } }, [_vm._v(" " + _vm._s(_setup.$t("order.list.waitDeliveryBtnText")) + " ")]) : _vm._e(), _vm.order.status === _setup.OrderStatus.Delivering ? _c("button", { staticClass: "plv-product-order-item__button plv-product-order-item__button--highlight", on: { "click": function($event) {
|
|
1912
|
+
return _setup.onOrderBtnClick(_setup.OrderButtonAction.ConfirmReceipt);
|
|
1913
|
+
} } }, [_vm._v(" " + _vm._s(_setup.$t("order.list.deliveringBtnText")) + " ")]) : _vm._e()])])])]);
|
|
1914
|
+
};
|
|
1915
|
+
var _sfc_staticRenderFns$1 = [];
|
|
1916
|
+
var __component__$1 = /* @__PURE__ */ normalizeComponent(
|
|
1917
|
+
_sfc_main$1,
|
|
1918
|
+
_sfc_render$1,
|
|
1919
|
+
_sfc_staticRenderFns$1
|
|
1920
|
+
);
|
|
1921
|
+
const OrderItem = __component__$1.exports;
|
|
1922
|
+
var iconBuilder = {};
|
|
1923
|
+
var interfaces = {};
|
|
1924
|
+
var hasRequiredInterfaces;
|
|
1925
|
+
function requireInterfaces() {
|
|
1926
|
+
if (hasRequiredInterfaces) return interfaces;
|
|
1927
|
+
hasRequiredInterfaces = 1;
|
|
1928
|
+
(function(exports) {
|
|
1929
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1930
|
+
exports.getColorDescription = exports.defaultIconConfig = exports.currentColor = void 0;
|
|
1931
|
+
exports.currentColor = "currentColor";
|
|
1932
|
+
exports.defaultIconConfig = {
|
|
1933
|
+
size: "1em",
|
|
1934
|
+
type: "outline",
|
|
1935
|
+
strokeLinecap: "round",
|
|
1936
|
+
strokeLinejoin: "round",
|
|
1937
|
+
colors: {
|
|
1938
|
+
outline: {
|
|
1939
|
+
background: "none"
|
|
1940
|
+
},
|
|
1941
|
+
filled: {
|
|
1942
|
+
background: "#FFF"
|
|
1943
|
+
},
|
|
1944
|
+
twoTone: {
|
|
1945
|
+
stroke: "#333",
|
|
1946
|
+
fill: "#2F88FF"
|
|
1947
|
+
},
|
|
1948
|
+
multiColor: {
|
|
1949
|
+
outStroke: "#333",
|
|
1950
|
+
outFill: "#2F88FF",
|
|
1951
|
+
innerStroke: "#FFF",
|
|
1952
|
+
innerFill: "#43CCF8"
|
|
1953
|
+
}
|
|
1954
|
+
}
|
|
1955
|
+
};
|
|
1956
|
+
var getColorDescription = function(colorProp, iconType) {
|
|
1957
|
+
var color = typeof colorProp === "string" ? [colorProp] : colorProp || [];
|
|
1958
|
+
var colorDesc = [exports.currentColor, exports.currentColor, exports.currentColor, exports.currentColor];
|
|
1959
|
+
switch (iconType) {
|
|
1960
|
+
case "outline": {
|
|
1961
|
+
colorDesc[0] = typeof color[0] === "string" ? color[0] : exports.currentColor;
|
|
1962
|
+
colorDesc[1] = "none";
|
|
1963
|
+
colorDesc[2] = typeof color[0] === "string" ? color[0] : exports.currentColor;
|
|
1964
|
+
colorDesc[3] = "none";
|
|
1965
|
+
break;
|
|
1966
|
+
}
|
|
1967
|
+
case "filled": {
|
|
1968
|
+
colorDesc[0] = typeof color[0] === "string" ? color[0] : exports.currentColor;
|
|
1969
|
+
colorDesc[1] = typeof color[0] === "string" ? color[0] : exports.currentColor;
|
|
1970
|
+
colorDesc[2] = "#FFF";
|
|
1971
|
+
colorDesc[3] = "#FFF";
|
|
1972
|
+
break;
|
|
1973
|
+
}
|
|
1974
|
+
case "two-tone": {
|
|
1975
|
+
var _a = exports.defaultIconConfig.colors.twoTone, stroke = _a.stroke, fill = _a.fill;
|
|
1976
|
+
colorDesc[0] = typeof color[0] === "string" ? color[0] : stroke;
|
|
1977
|
+
colorDesc[1] = typeof color[1] === "string" ? color[1] : fill;
|
|
1978
|
+
colorDesc[2] = typeof color[0] === "string" ? color[0] : stroke;
|
|
1979
|
+
colorDesc[3] = typeof color[1] === "string" ? color[1] : fill;
|
|
1980
|
+
break;
|
|
1981
|
+
}
|
|
1982
|
+
case "multi-color": {
|
|
1983
|
+
var _b = exports.defaultIconConfig.colors.multiColor, outStroke = _b.outStroke, outFill = _b.outFill, innerStroke = _b.innerStroke, innerFill = _b.innerFill;
|
|
1984
|
+
colorDesc[0] = typeof color[0] === "string" ? color[0] : outStroke;
|
|
1985
|
+
colorDesc[1] = typeof color[1] === "string" ? color[1] : outFill;
|
|
1986
|
+
colorDesc[2] = typeof color[2] === "string" ? color[2] : innerStroke;
|
|
1987
|
+
colorDesc[3] = typeof color[3] === "string" ? color[3] : innerFill;
|
|
1988
|
+
break;
|
|
1989
|
+
}
|
|
1990
|
+
}
|
|
1991
|
+
return colorDesc;
|
|
1992
|
+
};
|
|
1993
|
+
exports.getColorDescription = getColorDescription;
|
|
1994
|
+
})(interfaces);
|
|
1995
|
+
return interfaces;
|
|
1996
|
+
}
|
|
1997
|
+
var utils = {};
|
|
1998
|
+
var config = {};
|
|
1999
|
+
var hasRequiredConfig;
|
|
2000
|
+
function requireConfig() {
|
|
2001
|
+
if (hasRequiredConfig) return config;
|
|
2002
|
+
hasRequiredConfig = 1;
|
|
2003
|
+
Object.defineProperty(config, "__esModule", { value: true });
|
|
2004
|
+
config.CLASS_NAME_PREFIX = void 0;
|
|
2005
|
+
config.CLASS_NAME_PREFIX = "polyv";
|
|
2006
|
+
return config;
|
|
2007
|
+
}
|
|
2008
|
+
var hasRequiredUtils;
|
|
2009
|
+
function requireUtils() {
|
|
2010
|
+
if (hasRequiredUtils) return utils;
|
|
2011
|
+
hasRequiredUtils = 1;
|
|
2012
|
+
Object.defineProperty(utils, "__esModule", { value: true });
|
|
2013
|
+
utils.line2UpperCase = utils.createClsName = void 0;
|
|
2014
|
+
var config_1 = requireConfig();
|
|
2015
|
+
var createClsName = function(name) {
|
|
2016
|
+
return "".concat(config_1.CLASS_NAME_PREFIX, "-").concat(name);
|
|
2017
|
+
};
|
|
2018
|
+
utils.createClsName = createClsName;
|
|
2019
|
+
var line2UpperCase = function(text) {
|
|
2020
|
+
return text.replace(/(^\w|-\w)/g, function(c2) {
|
|
2021
|
+
return c2.slice(-1).toUpperCase();
|
|
2022
|
+
});
|
|
2023
|
+
};
|
|
2024
|
+
utils.line2UpperCase = line2UpperCase;
|
|
2025
|
+
return utils;
|
|
2026
|
+
}
|
|
2027
|
+
var hasRequiredIconBuilder;
|
|
2028
|
+
function requireIconBuilder() {
|
|
2029
|
+
if (hasRequiredIconBuilder) return iconBuilder;
|
|
2030
|
+
hasRequiredIconBuilder = 1;
|
|
2031
|
+
Object.defineProperty(iconBuilder, "__esModule", { value: true });
|
|
2032
|
+
iconBuilder.IconBuilder = void 0;
|
|
2033
|
+
var interfaces_1 = requireInterfaces();
|
|
2034
|
+
var utils_1 = requireUtils();
|
|
2035
|
+
var IconBuilder = function(lineName, render7) {
|
|
2036
|
+
var IconComponent = {
|
|
2037
|
+
name: lineName,
|
|
2038
|
+
props: ["size", "type", "color", "strokeLinecap", "strokeLinejoin"],
|
|
2039
|
+
computed: {
|
|
2040
|
+
renderData: function() {
|
|
2041
|
+
var colorProp = this.color;
|
|
2042
|
+
var iconType = this.type || interfaces_1.defaultIconConfig.type;
|
|
2043
|
+
var size = this.size || interfaces_1.defaultIconConfig.size;
|
|
2044
|
+
var strokeLinecap = this.strokeLinecap || interfaces_1.defaultIconConfig.strokeLinecap;
|
|
2045
|
+
var strokeLinejoin = this.strokeLinejoin || interfaces_1.defaultIconConfig.strokeLinejoin;
|
|
2046
|
+
var colorDesc = (0, interfaces_1.getColorDescription)(colorProp, iconType);
|
|
2047
|
+
return {
|
|
2048
|
+
size,
|
|
2049
|
+
colorDesc,
|
|
2050
|
+
strokeLinecap,
|
|
2051
|
+
strokeLinejoin
|
|
2052
|
+
};
|
|
2053
|
+
}
|
|
2054
|
+
},
|
|
2055
|
+
render: function(h2) {
|
|
2056
|
+
var renderData = this.renderData;
|
|
2057
|
+
var classes = [
|
|
2058
|
+
(0, utils_1.createClsName)("icon"),
|
|
2059
|
+
(0, utils_1.createClsName)("icon-".concat(lineName))
|
|
2060
|
+
];
|
|
2061
|
+
var styles = {};
|
|
2062
|
+
if (renderData.size) {
|
|
2063
|
+
styles.fontSize = "".concat(renderData.size, "px");
|
|
2064
|
+
}
|
|
2065
|
+
return h2("span", {
|
|
2066
|
+
class: classes.join(" "),
|
|
2067
|
+
style: styles,
|
|
2068
|
+
on: this.$listeners,
|
|
2069
|
+
attrs: this.$attrs,
|
|
2070
|
+
domProps: {
|
|
2071
|
+
innerHTML: render7(renderData)
|
|
2072
|
+
}
|
|
2073
|
+
});
|
|
2074
|
+
}
|
|
2075
|
+
};
|
|
2076
|
+
return IconComponent;
|
|
2077
|
+
};
|
|
2078
|
+
iconBuilder.IconBuilder = IconBuilder;
|
|
2079
|
+
return iconBuilder;
|
|
2080
|
+
}
|
|
2081
|
+
var iconBuilderExports = requireIconBuilder();
|
|
2082
|
+
iconBuilderExports.IconBuilder(
|
|
2083
|
+
"arrow-down",
|
|
2084
|
+
(data) => `
|
|
2085
|
+
<svg width="${data.size}" height="${data.size}" fill="none" viewBox="0 0 16 16">
|
|
2086
|
+
<g>
|
|
2087
|
+
<g />
|
|
2088
|
+
<g>
|
|
2089
|
+
<path
|
|
2090
|
+
fill="${data.colorDesc[0]}"
|
|
2091
|
+
fill-opacity="1"
|
|
2092
|
+
fill-rule="evenodd"
|
|
2093
|
+
d="M2.868623,4.662188L8,10.26005L13.1313,4.6623L13.1314,4.662138Q13.2025,4.584652,13.2987,4.542326Q13.3949,4.5,13.5,4.5Q13.5492,4.5,13.5975,4.509607Q13.6458,4.519215,13.6913,4.53806Q13.7368,4.556906,13.7778,4.584265Q13.8187,4.611625,13.8536,4.646447Q13.8884,4.681269,13.9157,4.722215Q13.9431,4.763161,13.9619,4.808658Q13.9808,4.854155,13.9904,4.9024549Q14,4.9507543,14,5Q14,5.0938219,13.966,5.181262Q13.932,5.268701,13.8686,5.337862L13.8684,5.338025L8.36858,11.33786Q8.35389,11.35389,8.33786,11.36858Q8.26455,11.435780000000001,8.1711,11.46982Q8.077639999999999,11.50385,7.97828,11.49953Q7.87892,11.49521,7.78877,11.45319Q7.69863,11.41118,7.63142,11.33786L2.131469,5.337913L2.131423,5.337862Q2.068025,5.268701,2.034013,5.181261Q2,5.0938219,2,5Q2,4.9507543,2.009607,4.9024549Q2.019215,4.854155,2.0380599999999998,4.808658Q2.056906,4.763161,2.084265,4.722215Q2.111625,4.681269,2.146447,4.646447Q2.181269,4.611625,2.222215,4.584265Q2.263161,4.556906,2.308658,4.53806Q2.354155,4.519215,2.4024549,4.509607Q2.4507543,4.5,2.5,4.5Q2.605115,4.5,2.701332,4.542326Q2.797548,4.584652,2.868577,4.662138L2.868623,4.662188Z"
|
|
2094
|
+
/>
|
|
2095
|
+
</g>
|
|
2096
|
+
</g>
|
|
2097
|
+
</svg>
|
|
2098
|
+
`
|
|
2099
|
+
);
|
|
2100
|
+
iconBuilderExports.IconBuilder(
|
|
2101
|
+
"arrow-left",
|
|
2102
|
+
(data) => `
|
|
2103
|
+
<svg width="${data.size}" height="${data.size}" fill="none" viewBox="0 0 20 20">
|
|
2104
|
+
<g>
|
|
2105
|
+
<g>
|
|
2106
|
+
<g />
|
|
2107
|
+
<g
|
|
2108
|
+
transform="matrix(0,0.9999999403953552,-0.9999999403953552,0,16.874999813735485,-10.624999180436134)"
|
|
2109
|
+
>
|
|
2110
|
+
<path
|
|
2111
|
+
fill="${data.colorDesc[0]}"
|
|
2112
|
+
fill-opacity="0.6000000238418579"
|
|
2113
|
+
fill-rule="evenodd"
|
|
2114
|
+
d="M14.302944,2.618292L20.625,9.515080000000001L26.9471,2.618207Q27.0537,2.5019780000000003,27.198,2.438489Q27.3423,2.375,27.5,2.375Q27.573900000000002,2.375,27.6463,2.389411Q27.7188,2.403822,27.787,2.43209Q27.8553,2.460359,27.9167,2.501398Q27.978099999999998,2.542437,28.0303,2.59467Q28.0826,2.646903,28.1236,2.708322Q28.1646,2.769742,28.1929,2.837987Q28.2212,2.906233,28.235599999999998,2.978682Q28.25,3.0511315,28.25,3.125Q28.25,3.265733,28.198999999999998,3.3968920000000002Q28.148,3.528052,28.0529,3.631794L28.052300000000002,3.632367L21.17787,11.13179Q21.15583,11.15583,21.13179,11.17786Q21.021819999999998,11.27867,20.88164,11.32972Q20.74147,11.38077,20.59242,11.37429Q20.44338,11.36781,20.30816,11.30479Q20.17294,11.24176,20.07213,11.13179L13.197134,3.631793Q13.102038,3.528052,13.051019,3.3968920000000002Q13,3.265733,13,3.125Q13,3.0511315,13.014410999999999,2.978682Q13.028822,2.906233,13.05709,2.837987Q13.085359,2.769742,13.126398,2.708322Q13.167437,2.646903,13.21967,2.59467Q13.271903,2.542437,13.333322,2.501398Q13.394742,2.460359,13.462987,2.43209Q13.531233,2.403822,13.603682,2.389411Q13.6761315,2.375,13.75,2.375Q13.907672,2.375,14.051997,2.438489Q14.196322,2.5019780000000003,14.302866,2.618207L14.302944,2.618292Z"
|
|
2115
|
+
/>
|
|
2116
|
+
</g>
|
|
2117
|
+
</g>
|
|
2118
|
+
</g>
|
|
2119
|
+
</svg>
|
|
2120
|
+
`
|
|
2121
|
+
);
|
|
2122
|
+
iconBuilderExports.IconBuilder(
|
|
2123
|
+
"arrow-right",
|
|
2124
|
+
(data) => `
|
|
2125
|
+
<svg
|
|
2126
|
+
width="${data.size}"
|
|
2127
|
+
height="${data.size}"
|
|
2128
|
+
fill="${data.colorDesc[0]}"
|
|
2129
|
+
viewBox="0 0 1024 1024"
|
|
2130
|
+
>
|
|
2131
|
+
<path
|
|
2132
|
+
d="M373.504 770.56a31.744 31.744 0 0 1-10.24-23.04c0-8.78933301 3.669333-17.066667 10.24-23.210667L587.946667 522.75200001l-211.541334-198.65600001c-13.568-12.8-13.568-33.536 0-46.336 13.653333-12.8 35.754667-12.79999999 49.322667 0L660.309333 498.005333a31.232 31.232 0 0 1 5.034667 40.277334 32.170667 32.170667 0 0 1-8.106667 12.117333L422.741333 770.56a36.437333 36.437333 0 0 1-49.237333 0z"
|
|
2133
|
+
/>
|
|
2134
|
+
</svg>
|
|
2135
|
+
`
|
|
2136
|
+
);
|
|
2137
|
+
iconBuilderExports.IconBuilder(
|
|
2138
|
+
"choose-address",
|
|
2139
|
+
(data) => `
|
|
2140
|
+
<svg width="${data.size}" height="${data.size}" fill="none" viewBox="0 0 13.5 10">
|
|
2141
|
+
<g>
|
|
2142
|
+
<path
|
|
2143
|
+
fill="${data.colorDesc[0]}"
|
|
2144
|
+
fill-opacity="1"
|
|
2145
|
+
fill-rule="evenodd"
|
|
2146
|
+
d="M13.2295,1.683941Q13.3599,1.544932,13.4299,1.3677380000000001Q13.5,1.190545,13.5,1Q13.5,0.9015086,13.4808,0.80491Q13.4616,0.708311,13.4239,0.617317Q13.3862,0.526322,13.3315,0.44443Q13.2767,0.362537,13.2071,0.29289299999999996Q13.1375,0.22324900000000003,13.0556,0.16852999999999996Q12.9737,0.11381200000000002,12.8827,0.076121Q12.7917,0.038429999999999964,12.6951,0.019214999999999982Q12.5985,0,12.5,0Q12.2927,0,12.1025,0.08241100000000001Q11.9122,0.164821,11.7705,0.316059L11.7701,0.316446L4.97682,7.56261L1.7071070000000002,4.29289Q1.566455,4.15224,1.382683,4.0761199999999995Q1.198912,4,1,4Q0.9015086,4,0.80491,4.01921Q0.708311,4.03843,0.617317,4.0761199999999995Q0.526322,4.11381,0.44443,4.1685300000000005Q0.362537,4.22325,0.29289299999999996,4.29289Q0.22324900000000003,4.36254,0.16852999999999996,4.4444300000000005Q0.11381200000000002,4.52632,0.076121,4.617319999999999Q0.038429999999999964,4.70831,0.019214999999999982,4.80491Q0,4.90151,0,5Q0,5.19891,0.07611999999999997,5.38268Q0.15224099999999996,5.56645,0.29289299999999996,5.70711L0.293268,5.70748L4.29289,9.70711Q4.3043,9.71851,4.31606,9.72954Q4.46117,9.86558,4.6472999999999995,9.93574Q4.83343,10.00589,5.03224,9.99948Q5.23105,9.99307,5.41227,9.91106Q5.59349,9.82905,5.72954,9.68394L13.2292,1.684328L13.2295,1.683941L13.2295,1.683941Z"
|
|
2147
|
+
/>
|
|
2148
|
+
</g>
|
|
2149
|
+
</svg>
|
|
2150
|
+
`
|
|
2151
|
+
);
|
|
2152
|
+
iconBuilderExports.IconBuilder(
|
|
2153
|
+
"close",
|
|
2154
|
+
(data) => `
|
|
2155
|
+
<svg width="${data.size}" height="${data.size}" fill="none" viewBox="0 0 24 24">
|
|
2156
|
+
<g>
|
|
2157
|
+
<g />
|
|
2158
|
+
<g>
|
|
2159
|
+
<path
|
|
2160
|
+
fill="${data.colorDesc[0]}"
|
|
2161
|
+
fill-rule="evenodd"
|
|
2162
|
+
d="M13.06067779937744,12.72779953125L18.894417799377443,6.89409953125Q18.99981779937744,6.78860953125,19.05691779937744,6.65077953125Q19.114017799377443,6.51295353125,19.114017799377443,6.36376953125Q19.114017799377443,6.21458553125,19.05691779937744,6.07675653125Q18.99981779937744,5.93892853125,18.894417799377443,5.83343953125Q18.788917799377444,5.72795053125,18.651017799377442,5.67085993125Q18.513217799377443,5.61376953125,18.364017799377443,5.61376953125Q18.214817799377442,5.61376953125,18.077017799377444,5.67085993125Q17.93921779937744,5.72795053125,17.83371779937744,5.83343953125L12.000017799377442,11.667139531250001L6.166317799377442,5.83343953125Q6.114087799377441,5.78120653125,6.052667799377441,5.74016753125Q5.991247799377441,5.69912813125,5.922997799377441,5.67085993125Q5.854753799377441,5.64259163125,5.7823047993774415,5.62818063125Q5.709855799377442,5.6137695661656,5.6359867993774415,5.6137695661656Q5.5621187993774415,5.6137695661656,5.489669799377442,5.62818063125Q5.417219799377442,5.64259163125,5.348974799377442,5.67085993125Q5.280728799377441,5.69912813125,5.2193097993774415,5.74016753125Q5.1578897993774415,5.78120653125,5.105656799377441,5.83343953125Q5.053423799377441,5.88567253125,5.0123847993774415,5.94709153125Q4.971345899377441,6.00851153125,4.943077699377441,6.07675653125Q4.914809399377441,6.14500253125,4.900398399377441,6.21745153125Q4.885987318077442,6.28990053125,4.885987318077442,6.36376953125Q4.885987318077442,6.43763753125,4.900398399377441,6.51008753125Q4.914809399377441,6.58253653125,4.943077699377441,6.65077953125Q4.971345899377441,6.7190295312499995,5.0123847993774415,6.7804495312499995Q5.053423799377441,6.8418695312499995,5.105656799377441,6.89409953125L10.939357799377442,12.72779953125L5.105793799377442,18.56136953125Q5.053560799377442,18.61356953125,5.012521799377441,18.67496953125Q4.971482499377442,18.736469531250002,4.943214099377442,18.80466953125Q4.914945799377441,18.87296953125,4.900534699377442,18.94536953125Q4.886123590377442,19.01786953125,4.886123523377441,19.091669531249998Q4.886123457377441,19.16556953125,4.900534399377442,19.237969531250002Q4.914945399377442,19.31046953125,4.943213599377441,19.37866953125Q4.971481799377441,19.446969531249998,5.012520799377441,19.50836953125Q5.0535597993774415,19.56976953125,5.105792799377442,19.62206953125Q5.158025799377441,19.674269531249998,5.219445799377441,19.71526953125Q5.280864799377442,19.75636953125,5.349110799377441,19.78456953125Q5.417355799377441,19.81286953125,5.489804799377441,19.82726953125Q5.562254799377442,19.841669531249998,5.636122799377441,19.841669531249998Q5.709991799377441,19.841669531249998,5.782440799377442,19.82726953125Q5.854889799377442,19.81286953125,5.923137799377441,19.78456953125Q5.9913777993774415,19.75636953125,6.052797799377442,19.71526953125Q6.114217799377442,19.674269531249998,6.166457799377442,19.62206953125L12.000017799377442,13.78845953125L17.833617799377443,19.62206953125Q17.885817799377442,19.674269531249998,17.94721779937744,19.71526953125Q18.00861779937744,19.75636953125,18.07691779937744,19.78456953125Q18.14511779937744,19.81286953125,18.217617799377443,19.82726953125Q18.29001779937744,19.841669531249998,18.36391779937744,19.841669531249998Q18.43781779937744,19.841669531249998,18.510217799377443,19.82726953125Q18.58271779937744,19.81286953125,18.650917799377442,19.78456953125Q18.719117799377443,19.75636953125,18.780617799377442,19.71526953125Q18.84201779937744,19.674269531249998,18.894217799377444,19.62206953125Q18.94651779937744,19.56976953125,18.987517799377443,19.50836953125Q19.02851779937744,19.446969531249998,19.05681779937744,19.37866953125Q19.085117799377443,19.31046953125,19.09951779937744,19.237969531250002Q19.11391779937744,19.16556953125,19.11391779937744,19.091669531249998Q19.11391779937744,19.01786953125,19.09951779937744,18.94536953125Q19.085117799377443,18.87296953125,19.05681779937744,18.80466953125Q19.02851779937744,18.736469531250002,18.987517799377443,18.67496953125Q18.94651779937744,18.61356953125,18.894217799377444,18.56136953125L13.06067779937744,12.72779953125Z"
|
|
2163
|
+
/>
|
|
2164
|
+
</g>
|
|
2165
|
+
</g>
|
|
2166
|
+
</svg>
|
|
2167
|
+
`
|
|
2168
|
+
);
|
|
2169
|
+
iconBuilderExports.IconBuilder(
|
|
2170
|
+
"close-round-fill",
|
|
2171
|
+
(data) => `
|
|
2172
|
+
<svg
|
|
2173
|
+
width="${data.size}"
|
|
2174
|
+
height="${data.size}"
|
|
2175
|
+
fill="${data.colorDesc[0]}"
|
|
2176
|
+
viewBox="0 0 1024 1024"
|
|
2177
|
+
>
|
|
2178
|
+
<path
|
|
2179
|
+
d="M512 0c282.7776 0 512 229.2224 512 512s-229.2224 512-512 512S0 794.7776 0 512 229.2224 0 512 0zM376.5248 319.0784a40.6528 40.6528 0 0 0-57.344 57.4976l143.872 144.0256-143.872 143.872a40.6016 40.6016 0 1 0 57.4464 57.5488l143.872-143.9744 143.9232 143.9744a40.6528 40.6528 0 0 0 57.4464-57.4976l-143.872-143.9232L721.92 376.576a40.6016 40.6016 0 1 0-57.3952-57.4976l-143.9744 144.0256z"
|
|
2180
|
+
/>
|
|
2181
|
+
</svg>
|
|
2182
|
+
`
|
|
2183
|
+
);
|
|
2184
|
+
iconBuilderExports.IconBuilder(
|
|
2185
|
+
"img-placeholder",
|
|
2186
|
+
(data) => `
|
|
2187
|
+
<svg width="${data.size}" height="${data.size}" fill="none" viewBox="0 0 80 80">
|
|
2188
|
+
<defs>
|
|
2189
|
+
<clipPath><rect width="80" height="80" x="0" y="0" rx="0" /></clipPath>
|
|
2190
|
+
</defs>
|
|
2191
|
+
<g clip-path="url(#master_svg0_6_25301/6_23777)">
|
|
2192
|
+
<g>
|
|
2193
|
+
<path
|
|
2194
|
+
fill="${data.colorDesc[0]}"
|
|
2195
|
+
fill-opacity="0.10000000149011612"
|
|
2196
|
+
fill-rule="evenodd"
|
|
2197
|
+
d="M4.000041484832764,21.999980926513672L4.000041484832764,57.99998092651367Q4.000041484832764,61.72788092651367,6.636081484832763,64.36398092651368Q9.272121484832763,66.99998092651367,13.000041484832764,66.99998092651367L65.00004148483276,66.99998092651367Q68.72794148483277,66.99998092651367,71.36404148483277,64.36398092651368Q74.00004148483276,61.72788092651367,74.00004148483276,57.99998092651367L74.00004148483276,21.999980926513672Q74.00004148483276,18.27206092651367,71.36404148483277,15.636020926513671Q68.72794148483277,12.999980926513672,65.00004148483276,12.999980926513672L13.000041484832764,12.999980926513672Q9.272121484832763,12.999980926513672,6.636081484832763,15.636020926513671Q4.000041484832764,18.27206092651367,4.000041484832764,21.999980926513672ZM7.000041484832764,21.999980926513672L7.000041484832764,46.84138092651367Q7.026161484832764,46.83008092651367,7.0526914848327635,46.81978092651367Q14.100341484832764,44.08258092651367,20.035341484832763,46.00858092651367Q24.706041484832763,47.52428092651367,28.582441484832763,50.861780926513674Q32.89634148483276,38.45178092651367,44.86384148483276,33.90138092651367Q57.276841484832765,29.18148092651367,71.00004148483276,36.75598092651367L71.00004148483276,21.999980926513672Q71.00004148483276,21.852690926513674,70.99284148483277,21.705570926513673Q70.98554148483277,21.55846092651367,70.97114148483277,21.41188092651367Q70.95674148483276,21.26530092651367,70.93514148483277,21.11960092651367Q70.91354148483276,20.97390092651367,70.88474148483276,20.829440926513673Q70.85604148483276,20.68498092651367,70.82024148483276,20.542100926513672Q70.78444148483277,20.39922092651367,70.74164148483277,20.25827092651367Q70.69894148483276,20.11732092651367,70.64934148483276,19.97864092651367Q70.59964148483276,19.839960926513672,70.54334148483277,19.703880926513673Q70.48694148483277,19.567800926513673,70.42394148483277,19.434650926513672Q70.36094148483276,19.301500926513672,70.29154148483276,19.171600926513673Q70.22214148483276,19.04170092651367,70.14644148483276,18.91536092651367Q70.07064148483276,18.78903092651367,69.98884148483276,18.66656092651367Q69.90704148483276,18.54409092651367,69.81924148483276,18.42578092651367Q69.73154148483276,18.307480926513673,69.63814148483276,18.193620926513674Q69.54464148483277,18.07976092651367,69.44574148483277,17.97063092651367Q69.34684148483277,17.86149092651367,69.24264148483276,17.75734092651367Q69.13854148483276,17.653190926513673,69.02944148483276,17.554270926513674Q68.92024148483276,17.45536092651367,68.80644148483276,17.361920926513672Q68.69254148483276,17.26848092651367,68.57424148483277,17.18073092651367Q68.45594148483276,17.09299092651367,68.33344148483276,17.01116092651367Q68.21094148483276,16.92933092651367,68.08464148483276,16.85361092651367Q67.95834148483277,16.77788092651367,67.82844148483277,16.70845092651367Q67.69854148483276,16.639020926513673,67.56534148483277,16.57604092651367Q67.43224148483276,16.51307092651367,67.29614148483276,16.456700926513673Q67.16004148483276,16.40034092651367,67.02134148483276,16.350720926513674Q66.88264148483276,16.301090926513673,66.74174148483277,16.25834092651367Q66.60074148483277,16.21558092651367,66.45794148483276,16.17979092651367Q66.31504148483276,16.144000926513673,66.17054148483277,16.115270926513674Q66.02614148483276,16.08653092651367,65.88044148483277,16.064920926513672Q65.73474148483277,16.043310926513673,65.58814148483276,16.028870926513672Q65.44154148483275,16.014430926513672,65.29444148483276,16.00721092651367Q65.14734148483276,15.999980926513672,65.00004148483276,15.999980926513672L13.000041484832764,15.999980926513672Q12.852751484832764,15.999980926513672,12.705631484832764,16.00721092651367Q12.558521484832763,16.014430926513672,12.411941484832763,16.028870926513672Q12.265361484832763,16.043310926513673,12.119661484832763,16.064920926513672Q11.973961484832763,16.08653092651367,11.829501484832765,16.115270926513674Q11.685041484832762,16.144000926513673,11.542161484832764,16.17979092651367Q11.399281484832763,16.21558092651367,11.258331484832762,16.25834092651367Q11.117381484832764,16.301090926513673,10.978701484832763,16.350720926513674Q10.840021484832764,16.40034092651367,10.703941484832765,16.456700926513673Q10.567861484832765,16.51307092651367,10.434711484832764,16.57604092651367Q10.301561484832764,16.639020926513673,10.171661484832764,16.70845092651367Q10.041761484832763,16.77789092651367,9.915421484832763,16.85361092651367Q9.789091484832763,16.92933092651367,9.666621484832763,17.01116092651367Q9.544151484832764,17.09299092651367,9.425841484832763,17.18073092651367Q9.307541484832765,17.26848092651367,9.193681484832764,17.361920926513672Q9.079821484832763,17.45536092651367,8.970691484832763,17.554270926513674Q8.861551484832763,17.653190926513673,8.757401484832764,17.75734092651367Q8.653251484832763,17.86149092651367,8.554331484832764,17.97063092651367Q8.455421484832764,18.07976092651367,8.361981484832764,18.193620926513674Q8.268541484832763,18.307480926513673,8.180791484832763,18.42578092651367Q8.093051484832763,18.54409092651367,8.011221484832763,18.66656092651367Q7.929391484832763,18.78903092651367,7.853671484832764,18.91536092651367Q7.7779414848327635,19.04170092651367,7.708511484832764,19.171600926513673Q7.639081484832763,19.301500926513672,7.576101484832764,19.434650926513672Q7.513131484832764,19.567800926513673,7.4567614848327635,19.703880926513673Q7.400401484832764,19.839960926513672,7.350781484832764,19.97864092651367Q7.301151484832763,20.11732092651367,7.258401484832763,20.25827092651367Q7.215641484832764,20.39922092651367,7.1798514848327635,20.542100926513672Q7.144061484832763,20.68498092651367,7.115331484832764,20.829440926513673Q7.086591484832764,20.97390092651367,7.064981484832764,21.11960092651367Q7.043371484832764,21.26530092651367,7.028931484832764,21.41188092651367Q7.014491484832764,21.55846092651367,7.0072714848327635,21.705570926513673Q7.000041484832764,21.852690926513674,7.000041484832764,21.999980926513672ZM23.595741484832764,37.59568092651367Q23.718441484832763,37.59568092651367,23.841041484832765,37.58968092651367Q23.963641484832763,37.58368092651367,24.085841484832763,37.571580926513676Q24.207941484832762,37.559580926513675,24.329441484832763,37.541580926513674Q24.450841484832765,37.523580926513674,24.571241484832765,37.49958092651367Q24.691541484832765,37.475680926513675,24.810641484832765,37.445880926513674Q24.929741484832764,37.41598092651367,25.047141484832764,37.38038092651367Q25.164641484832764,37.34478092651367,25.280141484832765,37.30338092651367Q25.395741484832765,37.262080926513676,25.509141484832764,37.21508092651367Q25.622541484832762,37.16808092651367,25.733541484832763,37.11558092651367Q25.844441484832764,37.06318092651367,25.952741484832764,37.00528092651367Q26.060941484832764,36.947380926513674,26.166241484832764,36.88428092651367Q26.271541484832763,36.82118092651368,26.373641484832763,36.75298092651367Q26.475641484832764,36.68488092651367,26.574241484832765,36.61168092651367Q26.672841484832762,36.538580926513674,26.767741484832765,36.46078092651367Q26.862641484832764,36.38288092651367,26.953541484832762,36.30048092651367Q27.044441484832763,36.217980926513675,27.131241484832763,36.13118092651367Q27.218041484832764,36.04438092651367,27.300541484832763,35.95348092651367Q27.382941484832763,35.86258092651367,27.460841484832763,35.76768092651368Q27.538641484832763,35.67278092651367,27.611741484832763,35.57418092651368Q27.684941484832763,35.47558092651367,27.753041484832764,35.37358092651367Q27.821241484832765,35.271480926513675,27.884341484832763,35.166180926513675Q27.947441484832762,35.060880926513676,28.005341484832762,34.95268092651367Q28.063241484832762,34.84438092651367,28.115641484832764,34.73348092651367Q28.168141484832763,34.622480926513674,28.215141484832763,34.509080926513676Q28.262141484832764,34.39568092651368,28.303441484832764,34.28018092651367Q28.344841484832763,34.16458092651367,28.380441484832765,34.04708092651367Q28.416041484832764,33.92968092651367,28.445941484832765,33.81058092651367Q28.475741484832763,33.69148092651368,28.499641484832765,33.57118092651368Q28.523641484832762,33.45078092651367,28.541641484832763,33.32938092651367Q28.559641484832763,33.20788092651367,28.571641484832764,33.08578092651367Q28.583741484832764,32.96358092651367,28.589741484832764,32.84098092651367Q28.595741484832764,32.718380926513674,28.595741484832764,32.59568092651367Q28.595741484832764,32.47298092651367,28.589741484832764,32.35038092651367Q28.583741484832764,32.227780926513674,28.571641484832764,32.10558092651367Q28.559641484832763,31.98348092651367,28.541641484832763,31.862080926513674Q28.523641484832762,31.740580926513672,28.499641484832765,31.620180926513672Q28.475741484832763,31.499880926513672,28.445941484832765,31.380780926513673Q28.416041484832764,31.261680926513673,28.380441484832765,31.144280926513673Q28.344841484832763,31.026780926513673,28.303441484832764,30.911280926513673Q28.262141484832764,30.795680926513672,28.215141484832763,30.682280926513673Q28.168141484832763,30.56888092651367,28.115641484832764,30.45788092651367Q28.063241484832762,30.346980926513673,28.005341484832762,30.238680926513673Q27.947441484832762,30.130480926513673,27.884341484832763,30.025180926513674Q27.821241484832765,29.91988092651367,27.753041484832764,29.81778092651367Q27.684941484832763,29.715780926513673,27.611741484832763,29.617180926513672Q27.538641484832763,29.51858092651367,27.460841484832763,29.423680926513672Q27.382941484832763,29.328880926513673,27.300541484832763,29.23788092651367Q27.218041484832764,29.14698092651367,27.131241484832763,29.06018092651367Q27.044441484832763,28.97338092651367,26.953541484832762,28.890880926513674Q26.862641484832764,28.808480926513674,26.767741484832765,28.730580926513674Q26.672841484832762,28.65278092651367,26.574241484832765,28.579680926513674Q26.475641484832764,28.506480926513674,26.373641484832763,28.438380926513673Q26.271541484832763,28.370180926513672,26.166241484832764,28.30708092651367Q26.060941484832764,28.24398092651367,25.952741484832764,28.18608092651367Q25.844441484832764,28.12818092651367,25.733541484832763,28.075780926513673Q25.622541484832762,28.02328092651367,25.509141484832764,27.976280926513674Q25.395741484832765,27.92928092651367,25.280241484832764,27.88798092651367Q25.164641484832764,27.846580926513674,25.047141484832764,27.810980926513672Q24.929741484832764,27.77538092651367,24.810641484832765,27.74548092651367Q24.691541484832765,27.71568092651367,24.571241484832765,27.691780926513673Q24.450841484832765,27.66778092651367,24.329441484832763,27.64978092651367Q24.207941484832762,27.63178092651367,24.085841484832763,27.61978092651367Q23.963641484832763,27.607680926513673,23.841041484832765,27.601680926513673Q23.718441484832763,27.595680926513673,23.595741484832764,27.595680926513673Q23.473041484832763,27.595680926513673,23.350441484832764,27.601680926513673Q23.227841484832762,27.607680926513673,23.105641484832763,27.61978092651367Q22.983541484832763,27.63178092651367,22.862141484832765,27.64978092651367Q22.740641484832764,27.66778092651367,22.620241484832764,27.691780926513673Q22.499941484832764,27.71568092651367,22.380841484832764,27.74548092651367Q22.261741484832765,27.77538092651367,22.144341484832765,27.810980926513672Q22.026841484832765,27.846580926513674,21.911341484832764,27.88798092651367Q21.795741484832764,27.92928092651367,21.682341484832765,27.976280926513674Q21.568941484832763,28.02328092651367,21.457941484832762,28.075780926513673Q21.347041484832765,28.12818092651367,21.238741484832765,28.18608092651367Q21.130541484832765,28.24398092651367,21.025241484832765,28.30708092651367Q20.919941484832762,28.370180926513672,20.817841484832762,28.438380926513673Q20.715841484832765,28.506480926513674,20.617241484832764,28.579680926513674Q20.518641484832763,28.65278092651367,20.423741484832764,28.730580926513674Q20.328941484832765,28.808480926513674,20.237941484832763,28.890880926513674Q20.147041484832762,28.97338092651367,20.060241484832762,29.06018092651367Q19.97344148483276,29.14698092651367,19.890941484832766,29.23788092651367Q19.808541484832766,29.328880926513673,19.730641484832766,29.423680926513672Q19.652841484832763,29.51858092651367,19.579741484832766,29.617180926513672Q19.506541484832766,29.715780926513673,19.438441484832765,29.81778092651367Q19.370241484832764,29.91988092651367,19.307141484832762,30.025180926513674Q19.244041484832763,30.130480926513673,19.186141484832763,30.238680926513673Q19.128241484832763,30.346980926513673,19.075841484832765,30.45788092651367Q19.023341484832763,30.56888092651367,18.976341484832766,30.682280926513673Q18.92934148483276,30.795680926513672,18.888041484832762,30.911280926513673Q18.846641484832766,31.026780926513673,18.811041484832764,31.144280926513673Q18.77544148483276,31.261680926513673,18.745541484832764,31.380780926513673Q18.715741484832762,31.499880926513672,18.691841484832764,31.620180926513672Q18.667841484832763,31.740580926513672,18.649841484832763,31.86198092651367Q18.631841484832762,31.98348092651367,18.61984148483276,32.10558092651367Q18.607741484832765,32.227780926513674,18.601741484832765,32.35038092651367Q18.595741484832764,32.47298092651367,18.595741484832764,32.59568092651367Q18.595741484832764,32.718380926513674,18.601741484832765,32.84098092651367Q18.607741484832765,32.96358092651367,18.61984148483276,33.08578092651367Q18.631841484832762,33.20788092651367,18.649841484832763,33.32938092651367Q18.667841484832763,33.45078092651367,18.691841484832764,33.57118092651368Q18.715741484832762,33.69148092651368,18.745541484832764,33.81058092651367Q18.77544148483276,33.92968092651367,18.811041484832764,34.04708092651367Q18.846641484832766,34.16458092651367,18.888041484832762,34.280080926513676Q18.92934148483276,34.39568092651368,18.976341484832766,34.509080926513676Q19.023341484832763,34.622480926513674,19.075841484832765,34.73348092651367Q19.128241484832763,34.84438092651367,19.186141484832763,34.95268092651367Q19.244041484832763,35.060880926513676,19.307141484832762,35.166180926513675Q19.370241484832764,35.271480926513675,19.438441484832765,35.37358092651367Q19.506541484832766,35.47558092651367,19.579741484832766,35.57418092651368Q19.652841484832763,35.67278092651367,19.730641484832766,35.76768092651368Q19.808541484832766,35.86258092651367,19.890941484832766,35.95348092651367Q19.97344148483276,36.04438092651367,20.060241484832762,36.13118092651367Q20.147041484832762,36.217980926513675,20.237941484832763,36.30048092651367Q20.328941484832765,36.38288092651367,20.423741484832764,36.46078092651367Q20.518641484832763,36.538580926513674,20.617241484832764,36.61168092651367Q20.715841484832765,36.68488092651367,20.817841484832762,36.75298092651367Q20.919941484832762,36.82118092651368,21.025241484832765,36.88428092651367Q21.130541484832765,36.947380926513674,21.238741484832765,37.00528092651367Q21.347041484832765,37.06318092651367,21.457941484832762,37.11558092651367Q21.568941484832763,37.16808092651367,21.682341484832765,37.21508092651367Q21.795741484832764,37.262080926513676,21.911341484832764,37.30338092651367Q22.026841484832765,37.34478092651367,22.144341484832765,37.38038092651367Q22.261741484832765,37.41598092651367,22.380841484832764,37.445880926513674Q22.499941484832764,37.475680926513675,22.620241484832764,37.49958092651367Q22.740641484832764,37.523580926513674,22.862041484832762,37.541580926513674Q22.983541484832763,37.559580926513675,23.105641484832763,37.571580926513676Q23.227841484832762,37.58368092651367,23.350441484832764,37.58968092651367Q23.473041484832763,37.59568092651367,23.595741484832764,37.59568092651367ZM23.595741484832764,30.595680926513673Q23.694041484832763,30.595680926513673,23.791741484832762,30.60528092651367Q23.889541484832765,30.61498092651367,23.985941484832765,30.634080926513672Q24.082241484832764,30.653280926513673,24.176341484832765,30.68178092651367Q24.270341484832763,30.710280926513672,24.361141484832764,30.747880926513673Q24.451841484832762,30.78548092651367,24.538541484832763,30.831880926513673Q24.625141484832763,30.87818092651367,24.706841484832765,30.932780926513672Q24.788541484832763,30.987380926513673,24.864541484832763,31.049680926513673Q24.940441484832764,31.11198092651367,25.009941484832762,31.18148092651367Q25.079441484832763,31.250980926513673,25.141741484832764,31.32688092651367Q25.204141484832764,31.40288092651367,25.258641484832765,31.484580926513672Q25.313241484832762,31.56628092651367,25.359541484832764,31.65288092651367Q25.405941484832763,31.73958092651367,25.443541484832764,31.830280926513673Q25.481141484832765,31.92108092651367,25.509641484832763,32.015080926513676Q25.538141484832764,32.10918092651367,25.557341484832765,32.20548092651367Q25.576441484832763,32.301880926513675,25.586141484832762,32.39968092651367Q25.595741484832764,32.49738092651367,25.595741484832764,32.59568092651367Q25.595741484832764,32.693980926513674,25.586141484832762,32.79168092651367Q25.576441484832763,32.88948092651367,25.557341484832765,32.98588092651367Q25.538141484832764,33.08218092651367,25.509641484832763,33.17628092651367Q25.481141484832765,33.27028092651367,25.443541484832764,33.36108092651367Q25.405941484832763,33.45178092651367,25.359541484832764,33.53848092651367Q25.313241484832762,33.625080926513675,25.258641484832765,33.70678092651367Q25.204141484832764,33.78848092651367,25.141741484832764,33.86448092651367Q25.079441484832763,33.94038092651367,25.009941484832762,34.009880926513674Q24.940441484832764,34.07938092651367,24.864541484832763,34.14168092651367Q24.788541484832763,34.20408092651367,24.706841484832765,34.25858092651367Q24.625141484832763,34.31318092651367,24.538541484832763,34.35948092651367Q24.451841484832762,34.405880926513674,24.361141484832764,34.44348092651367Q24.270341484832763,34.48108092651367,24.176341484832765,34.50958092651367Q24.082241484832764,34.53808092651367,23.985941484832765,34.55728092651367Q23.889541484832765,34.57638092651367,23.791741484832762,34.586080926513674Q23.694041484832763,34.59568092651367,23.595741484832764,34.59568092651367Q23.497441484832763,34.59568092651367,23.399741484832763,34.586080926513674Q23.301941484832764,34.57638092651367,23.205541484832764,34.55728092651367Q23.109241484832765,34.53808092651367,23.015141484832764,34.50958092651367Q22.921141484832763,34.48108092651367,22.830341484832765,34.44348092651367Q22.739641484832763,34.405880926513674,22.652941484832763,34.35948092651367Q22.566341484832762,34.31318092651367,22.484641484832764,34.25858092651367Q22.402941484832763,34.20408092651367,22.326941484832762,34.14168092651367Q22.251041484832765,34.07938092651367,22.181541484832763,34.009880926513674Q22.112041484832762,33.94038092651367,22.049741484832765,33.86448092651367Q21.987441484832765,33.78848092651367,21.932841484832764,33.70678092651367Q21.878241484832763,33.625080926513675,21.831941484832765,33.53848092651367Q21.785541484832763,33.45178092651367,21.747941484832765,33.36108092651367Q21.710341484832764,33.27028092651367,21.681841484832763,33.17628092651367Q21.653341484832765,33.08218092651367,21.634141484832764,32.98588092651367Q21.615041484832762,32.88948092651367,21.605341484832763,32.79168092651367Q21.595741484832764,32.693980926513674,21.595741484832764,32.59568092651367Q21.595741484832764,32.49738092651367,21.605341484832763,32.39968092651367Q21.615041484832762,32.301880926513675,21.634141484832764,32.20548092651367Q21.653341484832765,32.10918092651367,21.681841484832763,32.015080926513676Q21.710341484832764,31.92108092651367,21.747941484832765,31.830280926513673Q21.785541484832763,31.73958092651367,21.831941484832765,31.65288092651367Q21.878241484832763,31.56628092651367,21.932841484832764,31.484580926513672Q21.987441484832765,31.40288092651367,22.049741484832765,31.32688092651367Q22.112041484832762,31.250980926513673,22.181541484832763,31.18148092651367Q22.251041484832765,31.11198092651367,22.326941484832762,31.049680926513673Q22.402941484832763,30.987380926513673,22.484641484832764,30.932780926513672Q22.566341484832762,30.87818092651367,22.652941484832763,30.831880926513673Q22.739641484832763,30.78548092651367,22.830341484832765,30.747880926513673Q22.921141484832763,30.710280926513672,23.015141484832764,30.68178092651367Q23.109241484832765,30.653280926513673,23.205541484832764,30.634080926513672Q23.301941484832764,30.61498092651367,23.399741484832763,30.60528092651367Q23.497441484832763,30.595680926513673,23.595741484832764,30.595680926513673ZM7.000041484832764,57.99998092651367L7.000041484832764,49.594680926513675Q7.2851214848327634,49.717980926513675,7.595741484832764,49.717980926513675Q7.876801484832764,49.717980926513675,8.138801484832765,49.616280926513674Q14.190541484832764,47.265880926513674,19.10934148483276,48.86208092651367Q24.185241484832762,50.50918092651367,28.231341484832765,54.64468092651367Q28.514741484832765,54.93438092651367,28.905441484832764,55.04188092651367Q28.976541484832765,55.061480926513674,29.049141484832763,55.07398092651367Q29.121741484832764,55.08648092651367,29.195241484832763,55.09178092651367Q29.268741484832763,55.09708092651367,29.342441484832765,55.09518092651367Q29.416041484832764,55.09328092651367,29.489241484832764,55.084180926513675Q29.562341484832764,55.074980926513675,29.634241484832764,55.05878092651367Q29.706041484832763,55.04258092651367,29.776041484832763,55.01928092651367Q29.845941484832764,54.99608092651367,29.913341484832763,54.96618092651367Q29.980641484832763,54.93618092651367,30.044741484832763,54.89978092651367Q30.108741484832763,54.86338092651367,30.168941484832764,54.820880926513674Q30.229141484832763,54.77838092651367,30.284841484832764,54.730180926513675Q30.340641484832762,54.681980926513674,30.391341484832765,54.628480926513674Q30.442041484832764,54.57508092651367,30.487341484832765,54.51688092651367Q30.532641484832762,54.45878092651367,30.571941484832763,54.396480926513675Q30.611241484832764,54.33408092651367,30.644341484832765,54.268280926513675Q30.677341484832763,54.20238092651367,30.703741484832765,54.13358092651367Q30.730241484832764,54.06478092651367,30.749741484832764,53.99378092651367Q34.290341484832766,41.13128092651367,45.93004148483276,36.70548092651367Q57.604541484832765,32.26648092651367,70.83024148483277,40.11548092651367Q70.91234148483277,40.16428092651367,71.00004148483276,40.20218092651368L71.00004148483276,57.99998092651367Q71.00004148483276,58.14728092651367,70.99284148483277,58.294380926513675Q70.98554148483277,58.44148092651367,70.97114148483277,58.58808092651367Q70.95674148483276,58.73468092651367,70.93514148483277,58.88038092651367Q70.91354148483276,59.02608092651367,70.88474148483276,59.17048092651367Q70.85604148483276,59.31498092651367,70.82024148483276,59.457880926513674Q70.78444148483277,59.60078092651367,70.74164148483277,59.74168092651367Q70.69894148483276,59.88268092651367,70.64934148483276,60.02128092651367Q70.59964148483276,60.15998092651367,70.54334148483277,60.296080926513675Q70.48694148483277,60.432180926513674,70.42394148483277,60.56528092651367Q70.36094148483276,60.698480926513675,70.29154148483276,60.828380926513674Q70.22214148483276,60.95828092651367,70.14644148483276,61.084580926513674Q70.07064148483276,61.210880926513674,69.98884148483276,61.33338092651367Q69.90704148483276,61.45588092651367,69.81924148483276,61.57418092651367Q69.73154148483276,61.692480926513674,69.63814148483276,61.80638092651367Q69.54464148483277,61.92018092651367,69.44574148483277,62.029380926513674Q69.34684148483277,62.13848092651367,69.24264148483276,62.242580926513675Q69.13854148483276,62.346780926513674,69.02944148483276,62.445680926513674Q68.92024148483276,62.544580926513675,68.80644148483276,62.63808092651367Q68.69254148483276,62.73148092651367,68.57424148483277,62.819180926513674Q68.45594148483276,62.90698092651367,68.33344148483276,62.98878092651367Q68.21094148483276,63.07058092651367,68.08464148483276,63.14638092651367Q67.95834148483277,63.22208092651367,67.82844148483277,63.29148092651367Q67.69854148483276,63.36098092651367,67.56534148483277,63.423880926513675Q67.43224148483276,63.48688092651367,67.29614148483276,63.543280926513674Q67.16004148483276,63.599580926513674,67.02134148483276,63.64928092651367Q66.88264148483276,63.698880926513674,66.74174148483277,63.74158092651367Q66.60074148483277,63.78438092651367,66.45794148483276,63.82018092651367Q66.31504148483276,63.85598092651367,66.17054148483277,63.884680926513674Q66.02614148483276,63.913380926513675,65.88044148483277,63.93508092651367Q65.73474148483277,63.95668092651367,65.58814148483276,63.97108092651367Q65.44154148483275,63.985480926513674,65.29444148483276,63.992780926513674Q65.14734148483276,63.99998092651367,65.00004148483276,63.99998092651367L13.000041484832764,63.99998092651367Q12.852751484832764,63.99998092651367,12.705631484832764,63.992780926513674Q12.558521484832763,63.985480926513674,12.411941484832763,63.97108092651367Q12.265361484832763,63.95668092651367,12.119661484832763,63.93508092651367Q11.973961484832763,63.913380926513675,11.829501484832765,63.884680926513674Q11.685041484832762,63.85598092651367,11.542161484832764,63.82018092651367Q11.399281484832763,63.78438092651367,11.258331484832762,63.74158092651367Q11.117381484832764,63.698880926513674,10.978701484832763,63.64928092651367Q10.840021484832764,63.599580926513674,10.703941484832765,63.543280926513674Q10.567861484832765,63.48688092651367,10.434711484832764,63.423880926513675Q10.301561484832764,63.36098092651367,10.171661484832764,63.29148092651367Q10.041761484832763,63.22208092651367,9.915421484832763,63.14638092651367Q9.789091484832763,63.07058092651367,9.666621484832763,62.98878092651367Q9.544151484832764,62.90698092651367,9.425841484832763,62.819180926513674Q9.307541484832765,62.73148092651367,9.193681484832764,62.63808092651367Q9.079821484832763,62.544580926513675,8.970691484832763,62.445680926513674Q8.861551484832763,62.346780926513674,8.757401484832764,62.242580926513675Q8.653251484832763,62.13848092651367,8.554331484832764,62.029380926513674Q8.455421484832764,61.92018092651367,8.361981484832764,61.80638092651367Q8.268541484832763,61.692480926513674,8.180791484832763,61.57418092651367Q8.093051484832763,61.45588092651367,8.011221484832763,61.33338092651367Q7.929391484832763,61.210880926513674,7.853671484832764,61.084580926513674Q7.7779414848327635,60.95828092651367,7.708511484832764,60.828380926513674Q7.639081484832763,60.698480926513675,7.576101484832764,60.56528092651367Q7.513131484832764,60.432180926513674,7.4567614848327635,60.296080926513675Q7.400401484832764,60.15998092651367,7.350781484832764,60.02128092651367Q7.301151484832763,59.88268092651367,7.258401484832763,59.74168092651367Q7.215641484832764,59.60078092651367,7.1798514848327635,59.457880926513674Q7.144061484832763,59.31498092651367,7.115331484832764,59.17048092651367Q7.086591484832764,59.02608092651367,7.064981484832764,58.88038092651367Q7.043371484832764,58.73468092651367,7.028931484832764,58.58808092651367Q7.014491484832764,58.44148092651367,7.0072714848327635,58.294380926513675Q7.000041484832764,58.14728092651367,7.000041484832764,57.99998092651367Z"
|
|
2198
|
+
/>
|
|
2199
|
+
</g>
|
|
2200
|
+
</g>
|
|
2201
|
+
</svg>
|
|
2202
|
+
`
|
|
2203
|
+
);
|
|
2204
|
+
const ProductIconOrderEmpty = iconBuilderExports.IconBuilder(
|
|
2205
|
+
"order-empty",
|
|
2206
|
+
(data) => `
|
|
2207
|
+
<svg width="${data.size}" height="${data.size}" fill="none" viewBox="0 0 70 70">
|
|
2208
|
+
<defs>
|
|
2209
|
+
<clipPath><rect width="70" height="70" x="0" y="0" rx="0" /></clipPath>
|
|
2210
|
+
</defs>
|
|
2211
|
+
<g clip-path="url(#master_svg0_1_6828)">
|
|
2212
|
+
<g>
|
|
2213
|
+
<g>
|
|
2214
|
+
<path
|
|
2215
|
+
fill="${data.colorDesc[0]}"
|
|
2216
|
+
fill-opacity="1"
|
|
2217
|
+
d="M53.562049403381344,33.934721223754885C53.43764940338135,32.172721223754884,52.055249403381346,30.844301223754883,50.34594940338135,30.844301223754883L18.827749403381347,30.844301223754883C17.132259403381347,30.844301223754883,15.699349403381348,32.29193122375488,15.699349403381348,34.005171223754886C15.699349403381348,35.71809122375488,17.132259403381347,37.16539122375488,18.827749403381347,37.16539122375488L50.43544940338135,37.16539122375488C52.13154940338135,37.16539122375488,53.564449403381346,35.71809122375488,53.564449403381346,34.005171223754886L53.562049403381344,33.934721223754885Z"
|
|
2218
|
+
/>
|
|
2219
|
+
</g>
|
|
2220
|
+
<g>
|
|
2221
|
+
<path
|
|
2222
|
+
fill="${data.colorDesc[0]}"
|
|
2223
|
+
fill-opacity="1"
|
|
2224
|
+
d="M27.334229237670897,9.39679L42.0187092376709,9.39679C44.2485092376709,9.39679,46.1324092376709,7.24512,46.1324092376709,4.69827C46.1324092376709,2.1076,44.2467092376709,0,41.9290092376709,0L27.334229237670897,0C25.0164992376709,0,23.1311092376709,2.10752,23.1311092376709,4.69827C23.1311092376709,7.28902,25.0165892376709,9.39679,27.334229237670897,9.39679Z"
|
|
2225
|
+
/>
|
|
2226
|
+
</g>
|
|
2227
|
+
<g>
|
|
2228
|
+
<path
|
|
2229
|
+
fill="${data.colorDesc[0]}"
|
|
2230
|
+
fill-opacity="1"
|
|
2231
|
+
d="M50.43544940338135,19.085237503051758L18.827749403381347,19.085237503051758C17.132259403381347,19.085237503051758,15.699349403381348,20.532537503051756,15.699349403381348,22.246107503051757C15.699349403381348,23.959357503051756,17.132259403381347,25.406657503051758,18.827749403381347,25.406657503051758L50.43544940338135,25.406657503051758C52.13154940338135,25.406657503051758,53.564449403381346,23.959357503051756,53.564449403381346,22.246107503051757C53.56434940338135,20.532537503051756,52.131449403381346,19.085237503051758,50.43544940338135,19.085237503051758Z"
|
|
2232
|
+
/>
|
|
2233
|
+
</g>
|
|
2234
|
+
<g>
|
|
2235
|
+
<path
|
|
2236
|
+
fill="${data.colorDesc[0]}"
|
|
2237
|
+
fill-opacity="1"
|
|
2238
|
+
d="M50.34594940338135,43.59782409667969L18.827749403381347,43.59782409667969C17.132259403381347,43.59782409667969,15.699349403381348,45.045454096679684,15.699349403381348,46.75869409667969C15.699349403381348,48.47161409667969,17.132259403381347,49.918914096679686,18.827749403381347,49.918914096679686L50.43544940338135,49.918914096679686C52.13154940338135,49.918914096679686,53.564449403381346,48.47161409667969,53.564449403381346,46.75869409667969L53.562049403381344,46.68824409667969C53.43764940338135,44.92633409667969,52.05514940338135,43.59782409667969,50.34594940338135,43.59782409667969Z"
|
|
2239
|
+
/>
|
|
2240
|
+
</g>
|
|
2241
|
+
<g>
|
|
2242
|
+
<path
|
|
2243
|
+
fill="${data.colorDesc[0]}"
|
|
2244
|
+
fill-opacity="1"
|
|
2245
|
+
d="M64.75030000000001,4.860395980682373C63.0699,3.042334980682373,60.6587,2.081305980682373,57.7776,2.081305980682373L53.5692,2.081305980682373C51.8921,2.081305980682373,50.0824,3.186115980682373,50.0824,4.9703959806823725C50.0824,6.657005980682373,51.8094,8.312295980682373,53.5692,8.312295980682373L57.7776,8.312295980682373C59.7387,8.312295980682373,61.0061,9.592295980682373,61.0061,11.573625980682372L61.0061,60.507705980682374C61.0061,62.48900598068237,59.7386,63.76900598068237,57.7776,63.76900598068237L12.4706,63.76900598068237C10.43963,63.76900598068237,8.16793,62.374405980682376,8.16793,60.507705980682374L8.16793,11.573705980682373C8.16793,9.592375980682373,9.43511,8.312375980682372,11.39646,8.312375980682372L16.6792,8.312375980682372C18.2292,8.312375980682372,19.2706,6.969235980682373,19.2706,4.970475980682373C19.2706,3.161375980682373,18.3018,2.081388112482373,16.6792,2.081388112482373L11.39646,2.081388112482373C5.512560000000001,2.081388112482373,2,5.663835980682373,2,11.664135980682373L2,60.05540598068237C2,66.09640598068238,5.86401,70.00000598068237,11.8441,70.00000598068237L57.3296,70.00000598068237C63.678,70.00000598068237,67.174,66.46810598068237,67.174,60.05540598068237L67.174,11.664055980682374C67.174,8.928455980682372,66.3361,6.575785980682373,64.75030000000001,4.860395980682373Z"
|
|
2246
|
+
/>
|
|
2247
|
+
</g>
|
|
2248
|
+
</g>
|
|
2249
|
+
</g>
|
|
2250
|
+
</svg>
|
|
2251
|
+
`
|
|
2252
|
+
);
|
|
2253
|
+
iconBuilderExports.IconBuilder(
|
|
2254
|
+
"order-enter",
|
|
2255
|
+
(data) => `
|
|
2256
|
+
<svg width="${data.size}" height="${data.size}" fill="none" viewBox="0 0 16 16">
|
|
2257
|
+
<defs>
|
|
2258
|
+
<clipPath><rect width="16" height="16" x="0" y="0" rx="0" /></clipPath>
|
|
2259
|
+
</defs>
|
|
2260
|
+
<g clip-path="url(#master_svg0_1_00794/1_4215)">
|
|
2261
|
+
<g>
|
|
2262
|
+
<rect
|
|
2263
|
+
width="10.666666626930237"
|
|
2264
|
+
height="12.000000596046448"
|
|
2265
|
+
x="2.67"
|
|
2266
|
+
y="2"
|
|
2267
|
+
fill="none"
|
|
2268
|
+
stroke="${data.colorDesc[0]}"
|
|
2269
|
+
stroke-opacity="1"
|
|
2270
|
+
stroke-width="1.3333333730697632"
|
|
2271
|
+
rx="0"
|
|
2272
|
+
/>
|
|
2273
|
+
</g>
|
|
2274
|
+
<g>
|
|
2275
|
+
<path
|
|
2276
|
+
fill="${data.colorDesc[0]}"
|
|
2277
|
+
fill-opacity="1"
|
|
2278
|
+
fill-rule="evenodd"
|
|
2279
|
+
d="M10.666581953125,6.0000410234375L5.333251953125,6.0000410234375L5.333251953125,4.6667070234375L10.666581953125,4.6667070234375L10.666581953125,6.0000410234375Z"
|
|
2280
|
+
/>
|
|
2281
|
+
</g>
|
|
2282
|
+
<g>
|
|
2283
|
+
<path
|
|
2284
|
+
fill="${data.colorDesc[0]}"
|
|
2285
|
+
fill-opacity="1"
|
|
2286
|
+
fill-rule="evenodd"
|
|
2287
|
+
d="M10.666581953125,8.666667L5.333251953125,8.666667L5.333251953125,7.333333L10.666581953125,7.333333L10.666581953125,8.666667Z"
|
|
2288
|
+
/>
|
|
2289
|
+
</g>
|
|
2290
|
+
<g>
|
|
2291
|
+
<path
|
|
2292
|
+
fill="${data.colorDesc[0]}"
|
|
2293
|
+
fill-opacity="1"
|
|
2294
|
+
fill-rule="evenodd"
|
|
2295
|
+
d="M9.333251953125,11.3332929765625L5.333251953125,11.3332929765625L5.333251953125,9.9999589765625L9.333251953125,9.9999589765625L9.333251953125,11.3332929765625Z"
|
|
2296
|
+
/>
|
|
2297
|
+
</g>
|
|
2298
|
+
</g>
|
|
2299
|
+
</svg>
|
|
2300
|
+
`
|
|
2301
|
+
);
|
|
2302
|
+
iconBuilderExports.IconBuilder(
|
|
2303
|
+
"product",
|
|
2304
|
+
(data) => `
|
|
2305
|
+
<svg width="${data.size}" height="${data.size}" fill="none" viewBox="0 0 12 12">
|
|
2306
|
+
<g style="mix-blend-mode: passthrough">
|
|
2307
|
+
<g style="mix-blend-mode: passthrough">
|
|
2308
|
+
<g style="mix-blend-mode: passthrough">
|
|
2309
|
+
<g style="mix-blend-mode: passthrough">
|
|
2310
|
+
<path
|
|
2311
|
+
fill="${data.colorDesc[0]}"
|
|
2312
|
+
fill-opacity="1"
|
|
2313
|
+
fill-rule="evenodd"
|
|
2314
|
+
d="M2.16316,1.26412Q2.4502,1,2.84027,1L9.15973,1Q9.5498,1,9.83684,1.26412Q10.1239,1.52824,10.1563,1.91695L10.8229,9.91695Q10.8594,10.3542,10.5623,10.6771Q10.2652,11,9.8264,11L2.1736,11Q1.73482,11,1.43772,10.6771Q1.14061,10.3542,1.17705,9.91695L1.84372,1.91695Q1.87611,1.52824,2.16316,1.26412ZM9.15973,0L2.84027,0C1.80009,0,0.933556,0.797325,0.847174,1.83391L0.180508,9.83391C0.0833377,10.9999,1.00352,12,2.1736,12L9.8264,12C10.9965,12,11.9167,10.9999,11.8195,9.83391L11.1528,1.83391C11.0664,0.797325,10.1999,0,9.15973,0Z"
|
|
2315
|
+
/>
|
|
2316
|
+
</g>
|
|
2317
|
+
<g style="mix-blend-mode: passthrough">
|
|
2318
|
+
<path
|
|
2319
|
+
fill="${data.colorDesc[0]}"
|
|
2320
|
+
fill-opacity="1"
|
|
2321
|
+
d="M9.5,3Q9.5,4.44975,8.47487,5.47487Q7.44975,6.5,6,6.5Q4.55025,6.5,3.525126,5.47487Q2.5,4.44975,2.5,2.999999559137L3.5,2.999999487188Q3.5,4.03553,4.2322299999999995,4.7677700000000005Q4.96447,5.5,6,5.5Q7.03553,5.5,7.76777,4.7677700000000005Q8.5,4.03553,8.5,3L9.5,3ZM9.5,3Q9.5,3.0492457,9.49039,3.0975451Q9.48078,3.145845,9.46194,3.191342Q9.44309,3.236839,9.41573,3.277785Q9.38837,3.318731,9.35355,3.353553Q9.31873,3.388375,9.27778,3.415735Q9.23684,3.443094,9.19134,3.4619400000000002Q9.14584,3.480785,9.09755,3.490393Q9.04925,3.5,9,3.5Q8.95075,3.5,8.90245,3.490393Q8.85415,3.480785,8.80866,3.4619400000000002Q8.76316,3.443094,8.72221,3.415735Q8.68127,3.388375,8.64645,3.353553Q8.61162,3.318731,8.58426,3.277785Q8.55691,3.236839,8.53806,3.191342Q8.519210000000001,3.145845,8.50961,3.0975451Q8.5,3.0492457,8.5,3Q8.5,2.9507543,8.50961,2.9024549Q8.519210000000001,2.854155,8.53806,2.808658Q8.55691,2.763161,8.58426,2.722215Q8.61162,2.681269,8.64645,2.646447Q8.68127,2.611625,8.72221,2.584265Q8.76316,2.556906,8.80866,2.5380599999999998Q8.85415,2.519215,8.90245,2.509607Q8.95075,2.5,9,2.5Q9.04925,2.5,9.09755,2.509607Q9.14584,2.519215,9.19134,2.5380599999999998Q9.23684,2.556906,9.27778,2.584265Q9.31873,2.611625,9.35355,2.646447Q9.38837,2.681269,9.41573,2.722215Q9.44309,2.763161,9.46194,2.808658Q9.48078,2.854155,9.49039,2.9024549Q9.5,2.9507543,9.5,3ZM3.5,3Q3.5,3.0492457,3.490393,3.0975451Q3.480785,3.145845,3.4619400000000002,3.191342Q3.443094,3.236839,3.415735,3.277785Q3.388375,3.318731,3.353553,3.353553Q3.318731,3.388375,3.277785,3.415735Q3.236839,3.443094,3.191342,3.4619400000000002Q3.145845,3.480785,3.0975451,3.490393Q3.0492457,3.5,3,3.5Q2.9507543,3.5,2.9024549,3.490393Q2.854155,3.480785,2.808658,3.4619400000000002Q2.763161,3.443094,2.722215,3.415735Q2.681269,3.388375,2.646447,3.353553Q2.611625,3.318731,2.584265,3.277785Q2.556906,3.236839,2.5380599999999998,3.191342Q2.519215,3.145845,2.509607,3.0975451Q2.5,3.0492457,2.5,3Q2.5,2.9507543,2.509607,2.9024549Q2.519215,2.854155,2.5380599999999998,2.808658Q2.556906,2.763161,2.584265,2.722215Q2.611625,2.681269,2.646447,2.646447Q2.681269,2.611625,2.722215,2.584265Q2.763161,2.556906,2.808658,2.5380599999999998Q2.854155,2.519215,2.9024549,2.509607Q2.9507543,2.5,3,2.5Q3.0492457,2.5,3.0975451,2.509607Q3.145845,2.519215,3.191342,2.5380599999999998Q3.236839,2.556906,3.277785,2.584265Q3.318731,2.611625,3.353553,2.646447Q3.388375,2.681269,3.415735,2.722215Q3.443094,2.763161,3.4619400000000002,2.808658Q3.480785,2.854155,3.490393,2.9024549Q3.5,2.9507543,3.5,3Z"
|
|
2322
|
+
/>
|
|
2323
|
+
</g>
|
|
2324
|
+
</g>
|
|
2325
|
+
</g>
|
|
2326
|
+
</g>
|
|
2327
|
+
</svg>
|
|
2328
|
+
`
|
|
2329
|
+
);
|
|
2330
|
+
iconBuilderExports.IconBuilder(
|
|
2331
|
+
"search",
|
|
2332
|
+
(data) => `
|
|
2333
|
+
<svg width="${data.size}" height="${data.size}" fill="none" viewBox="0 0 16 16">
|
|
2334
|
+
<g>
|
|
2335
|
+
<g>
|
|
2336
|
+
<g>
|
|
2337
|
+
<path
|
|
2338
|
+
fill="${data.colorDesc[0]}"
|
|
2339
|
+
fill-rule="evenodd"
|
|
2340
|
+
d="M11.5814,10.87433Q11.9223,10.47129,12.1875,10.01494Q12.4527,9.55858,12.6342,9.06293Q12.8157,8.56728,12.9078,8.04756Q13,7.52783,13,7Q13,6.85271,12.9928,6.70559Q12.9855,6.55848,12.9711,6.4119Q12.9567,6.26531,12.9351,6.11962Q12.9134,5.97392,12.8847,5.82946Q12.856,5.685,12.8202,5.54212Q12.7844,5.39924,12.7416,5.25829Q12.6989,5.11734,12.6493,4.97866Q12.5996,4.839980000000001,12.5433,4.7039Q12.4869,4.56782,12.4239,4.434670000000001Q12.361,4.30152,12.2915,4.17162Q12.2221,4.04172,12.1464,3.91538Q12.0706,3.78905,11.9888,3.66658Q11.907,3.54411,11.8192,3.4258Q11.7315,3.3075,11.6381,3.19364Q11.5446,3.07978,11.4457,2.97065Q11.3468,2.86151,11.2426,2.7573600000000003Q11.1385,2.65321,11.0294,2.55429Q10.92022,2.45538,10.80636,2.3619399999999997Q10.6925,2.2685,10.57419,2.1807499999999997Q10.45589,2.09301,10.33342,2.01118Q10.21095,1.929351,10.08462,1.853628Q9.95828,1.777905,9.82838,1.708472Q9.69848,1.63904,9.56533,1.5760640000000001Q9.43218,1.513089,9.2961,1.456723Q9.16002,1.400357,9.02134,1.350736Q8.88266,1.301114,8.741710000000001,1.2583579999999999Q8.600760000000001,1.215601,8.45788,1.179812Q8.315000000000001,1.144023,8.170539999999999,1.115288Q8.02608,1.0865531,7.88038,1.0649409Q7.73469,1.0433288,7.5881,1.0288916Q7.44152,1.0144545,7.29441,1.00722726Q7.14729,1,7,1Q6.85271,1,6.70559,1.00722726Q6.55848,1.0144545,6.4119,1.0288916Q6.26531,1.0433288,6.11962,1.0649409Q5.97392,1.0865531,5.82946,1.115288Q5.685,1.144023,5.54212,1.179812Q5.39924,1.215601,5.25829,1.2583579999999999Q5.11734,1.301114,4.97866,1.350736Q4.839980000000001,1.400357,4.7039,1.456723Q4.56782,1.513089,4.434670000000001,1.5760640000000001Q4.30152,1.63904,4.17162,1.708472Q4.04172,1.777905,3.91538,1.853628Q3.78905,1.929351,3.66658,2.01118Q3.54411,2.09301,3.4258,2.1807499999999997Q3.3075,2.2685,3.19364,2.3619399999999997Q3.07978,2.45538,2.97065,2.55429Q2.86151,2.65321,2.7573600000000003,2.7573600000000003Q2.65321,2.86151,2.55429,2.97065Q2.45538,3.07978,2.3619399999999997,3.19364Q2.2685,3.3075,2.1807499999999997,3.4258Q2.09301,3.54411,2.01118,3.66658Q1.929351,3.78905,1.853628,3.91538Q1.777905,4.04172,1.708472,4.17162Q1.63904,4.30152,1.5760640000000001,4.434670000000001Q1.513089,4.56782,1.456723,4.7039Q1.400357,4.839980000000001,1.350736,4.97866Q1.301114,5.11734,1.2583579999999999,5.25829Q1.215601,5.39924,1.179812,5.54212Q1.144023,5.685,1.115288,5.82946Q1.0865531,5.97392,1.0649409,6.11962Q1.0433288,6.26532,1.0288916,6.4119Q1.0144545,6.55848,1.00722726,6.70559Q1,6.85271,1,7Q1,7.14729,1.00722726,7.29441Q1.0144545,7.44152,1.0288916,7.5881Q1.0433288,7.73469,1.0649409,7.88038Q1.0865531,8.02608,1.115288,8.170539999999999Q1.144023,8.315000000000001,1.179812,8.45788Q1.215601,8.600760000000001,1.2583579999999999,8.741710000000001Q1.301114,8.88266,1.350736,9.02134Q1.400357,9.16002,1.456723,9.2961Q1.513089,9.43218,1.5760640000000001,9.56533Q1.63904,9.69848,1.708472,9.82838Q1.777905,9.95828,1.853628,10.08462Q1.929351,10.21095,2.01118,10.33342Q2.09301,10.45589,2.1807499999999997,10.5742Q2.2685,10.6925,2.3619399999999997,10.80636Q2.45538,10.92022,2.55429,11.0294Q2.65321,11.1385,2.7573600000000003,11.2426Q2.86151,11.3468,2.97065,11.4457Q3.07978,11.5446,3.19364,11.6381Q3.3075,11.7315,3.4258,11.8192Q3.54411,11.907,3.66658,11.9888Q3.78905,12.0706,3.91538,12.1464Q4.04172,12.2221,4.17162,12.2915Q4.30152,12.361,4.434670000000001,12.4239Q4.56782,12.4869,4.7039,12.5433Q4.839980000000001,12.5996,4.97866,12.6493Q5.11734,12.6989,5.25829,12.7416Q5.39924,12.7844,5.54212,12.8202Q5.685,12.856,5.82946,12.8847Q5.97392,12.9134,6.11962,12.9351Q6.26532,12.9567,6.4119,12.9711Q6.55848,12.9855,6.70559,12.9928Q6.85271,13,7,13Q7.52783,13,8.04756,12.9078Q8.56728,12.8157,9.06293,12.6342Q9.55858,12.4527,10.01494,12.1875Q10.47129,11.9223,10.87433,11.5814L13.4749,14.182Q13.5452,14.2523,13.6371,14.2904Q13.729,14.3284,13.8284,14.3284Q13.9279,14.3284,14.0198,14.2904Q14.1117,14.2523,14.182,14.182Q14.2523,14.1117,14.2904,14.0198Q14.3284,13.9279,14.3284,13.8284Q14.3284,13.729,14.2904,13.6371Q14.2523,13.5452,14.182,13.4749L11.5814,10.87433ZM7,2Q7.12274,2,7.24534,2.00602Q7.36793,2.01205,7.49009,2.02408Q7.61224,2.03611,7.73365,2.05412Q7.85507,2.07213,7.97545,2.09607Q8.095839999999999,2.1200200000000002,8.2149,2.14984Q8.33397,2.1796699999999998,8.451419999999999,2.2153Q8.56888,2.2509300000000003,8.68445,2.29228Q8.80002,2.3336300000000003,8.91342,2.3806000000000003Q9.02682,2.4275700000000002,9.13777,2.4800500000000003Q9.24873,2.53253,9.35698,2.59039Q9.46523,2.64825,9.57051,2.71136Q9.67579,2.77446,9.77785,2.84265Q9.87991,2.9108400000000003,9.9785,2.9839599999999997Q10.07708,3.05708,10.17197,3.13495Q10.26685,3.21281,10.35779,3.29524Q10.44874,3.37767,10.53553,3.46447Q10.62233,3.55126,10.70475,3.6422Q10.78718,3.73315,10.86505,3.82803Q10.94292,3.92291,11.016,4.0215Q11.0892,4.120089999999999,11.1573,4.22215Q11.2255,4.32421,11.2886,4.4294899999999995Q11.3517,4.53477,11.4096,4.64302Q11.4675,4.75127,11.5199,4.862220000000001Q11.5724,4.97318,11.6194,5.08658Q11.6664,5.19998,11.7077,5.31555Q11.7491,5.43112,11.7847,5.54858Q11.8203,5.66603,11.8502,5.7851Q11.88,5.90416,11.9039,6.02455Q11.9279,6.14493,11.9459,6.26635Q11.9639,6.38776,11.9759,6.50991Q11.988,6.63207,11.994,6.75466Q12,6.87726,12,7Q12,7.12274,11.994,7.24534Q11.988,7.36793,11.9759,7.49009Q11.9639,7.61224,11.9459,7.73365Q11.9279,7.85507,11.9039,7.97545Q11.88,8.095839999999999,11.8502,8.2149Q11.8203,8.33397,11.7847,8.451419999999999Q11.7491,8.56888,11.7077,8.68445Q11.6664,8.80002,11.6194,8.91342Q11.5724,9.02682,11.5199,9.13777Q11.4675,9.24873,11.4096,9.35698Q11.3517,9.46523,11.2886,9.57051Q11.2255,9.67579,11.1573,9.77785Q11.0892,9.87991,11.016,9.9785Q10.94292,10.07708,10.86505,10.17197Q10.78718,10.26685,10.70475,10.35779Q10.62233,10.44874,10.53553,10.53553Q10.44874,10.62233,10.35779,10.70475Q10.26685,10.78718,10.17197,10.86505Q10.07708,10.94292,9.9785,11.016Q9.87991,11.0892,9.77785,11.1573Q9.67579,11.2255,9.57051,11.2886Q9.46523,11.3517,9.35698,11.4096Q9.24873,11.4675,9.13777,11.5199Q9.02682,11.5724,8.91342,11.6194Q8.80002,11.6664,8.68445,11.7077Q8.56888,11.7491,8.451419999999999,11.7847Q8.333960000000001,11.8203,8.2149,11.8502Q8.095839999999999,11.88,7.97545,11.9039Q7.85507,11.9279,7.73365,11.9459Q7.61224,11.9639,7.49009,11.9759Q7.36793,11.988,7.24534,11.994Q7.12274,12,7,12Q6.87726,12,6.75466,11.994Q6.63207,11.988,6.50991,11.9759Q6.38776,11.9639,6.26635,11.9459Q6.14493,11.9279,6.02455,11.9039Q5.90416,11.88,5.7851,11.8502Q5.66603,11.8203,5.54858,11.7847Q5.43112,11.7491,5.31555,11.7077Q5.19998,11.6664,5.08658,11.6194Q4.97318,11.5724,4.862220000000001,11.5199Q4.75127,11.4675,4.64302,11.4096Q4.53477,11.3517,4.4294899999999995,11.2886Q4.32421,11.2255,4.22215,11.1573Q4.120089999999999,11.0892,4.0215,11.016Q3.92292,10.94292,3.82803,10.86505Q3.73315,10.78718,3.6422,10.70475Q3.55126,10.62233,3.46447,10.53553Q3.37767,10.44874,3.29524,10.35779Q3.21281,10.26685,3.13495,10.17197Q3.05708,10.07708,2.9839599999999997,9.9785Q2.9108400000000003,9.87991,2.84265,9.77785Q2.77446,9.67579,2.71136,9.57051Q2.64825,9.46523,2.59039,9.35698Q2.53253,9.24873,2.4800500000000003,9.13777Q2.4275700000000002,9.02682,2.3806000000000003,8.91342Q2.3336300000000003,8.80002,2.29228,8.68445Q2.2509300000000003,8.56888,2.2153,8.451419999999999Q2.1796699999999998,8.333960000000001,2.14984,8.2149Q2.1200200000000002,8.095839999999999,2.09607,7.97545Q2.07213,7.85507,2.05412,7.73365Q2.03611,7.61224,2.02408,7.49009Q2.01205,7.36793,2.00602,7.24534Q2,7.12274,2,7Q2,6.87726,2.00602,6.75466Q2.01205,6.63207,2.02408,6.50991Q2.03611,6.38776,2.05412,6.26635Q2.07213,6.14493,2.09607,6.02455Q2.1200200000000002,5.90416,2.14984,5.7851Q2.1796699999999998,5.66603,2.2153,5.54858Q2.2509300000000003,5.43112,2.29228,5.31555Q2.3336300000000003,5.19998,2.3806000000000003,5.08658Q2.4275700000000002,4.97318,2.4800500000000003,4.862220000000001Q2.53253,4.75127,2.59039,4.64302Q2.64825,4.53477,2.71136,4.4294899999999995Q2.77446,4.32421,2.84265,4.22215Q2.9108400000000003,4.120089999999999,2.9839599999999997,4.0215Q3.05708,3.92292,3.13495,3.82803Q3.21281,3.73315,3.29524,3.6422Q3.37767,3.55126,3.46447,3.46447Q3.55126,3.37767,3.6422,3.29524Q3.73315,3.21281,3.82803,3.13495Q3.92291,3.05708,4.0215,2.9839599999999997Q4.120089999999999,2.9108400000000003,4.22215,2.84265Q4.32421,2.77446,4.4294899999999995,2.71136Q4.53477,2.64825,4.64302,2.59039Q4.75127,2.53253,4.862220000000001,2.4800500000000003Q4.97318,2.4275700000000002,5.08658,2.3806000000000003Q5.19998,2.3336300000000003,5.31555,2.29228Q5.43112,2.2509300000000003,5.54858,2.2153Q5.66603,2.1796699999999998,5.7851,2.14984Q5.90416,2.1200200000000002,6.02455,2.09607Q6.14493,2.07213,6.26635,2.05412Q6.38776,2.03611,6.50991,2.02408Q6.63207,2.01205,6.75466,2.00602Q6.87726,2,7,2Z"
|
|
2341
|
+
/>
|
|
2342
|
+
</g>
|
|
2343
|
+
</g>
|
|
2344
|
+
</g>
|
|
2345
|
+
</svg>
|
|
2346
|
+
`
|
|
2347
|
+
);
|
|
2348
|
+
iconBuilderExports.IconBuilder(
|
|
2349
|
+
"search-empty",
|
|
2350
|
+
(data) => `
|
|
2351
|
+
<svg width="${data.size}" height="${data.size}" fill="none" viewBox="0 0 70 70">
|
|
2352
|
+
<defs>
|
|
2353
|
+
<clipPath><rect width="70" height="70" x="0" y="0" rx="0" /></clipPath>
|
|
2354
|
+
</defs>
|
|
2355
|
+
<g clip-path="url(#master_svg0_1_05361)">
|
|
2356
|
+
<g>
|
|
2357
|
+
<path
|
|
2358
|
+
fill="${data.colorDesc[0]}"
|
|
2359
|
+
fill-opacity="1"
|
|
2360
|
+
d="M34.99823296875,13.078125C34.11226296875,13.078125,33.39404296875,13.796345,33.39404296875,14.682315C33.39404296875,15.568285,34.11226296875,16.286505,34.99823296875,16.286505C42.63643296875,16.286505,48.82844296875,22.478485,48.82844296875,30.116725C48.82964296875,31.001825,49.54754296875,31.718625,50.43264296875,31.718625C51.31774296875,31.718625,52.03554296875,31.001825,52.03684296875,30.116725C52.041142968749995,20.707835,44.41144296875,13.078125,34.99823296875,13.078125Z"
|
|
2361
|
+
/>
|
|
2362
|
+
</g>
|
|
2363
|
+
<g>
|
|
2364
|
+
<path
|
|
2365
|
+
fill="${data.colorDesc[0]}"
|
|
2366
|
+
fill-opacity="1"
|
|
2367
|
+
d="M68.995683984375,65.5144796875L57.182683984375,53.7013796875C73.022783984375,35.3662796875,63.929183984375,6.7689296875,40.408483984375,0.9499226875C16.887683984375,-4.8690803125,-4.490606015625,16.1894796875,0.973315984375,39.7952796875C6.437253984375,63.4009796875,34.894283984375,72.9244796875,53.466083984375,57.3624796875L65.306883984375,69.2032796875C66.320183984375,70.2521796875,67.996583984375,70.2665796875,69.027783984375,69.2353796875C70.058983984375,68.2040796875,70.044583984375,66.5277796875,68.995683984375,65.5144796875ZM32.551983984375,59.3597796875C17.711083984375,59.3267796875,5.707163984375,47.2683796875,5.741543984375,32.4273796875C5.775923984375,17.5863796875,17.835483984375,5.5836996875,32.676483984375,5.6195196875C47.517483984375,5.6553396875,59.518983984375,17.7160796875,59.481783984375,32.5570796875C59.444483984375,47.3939796875,47.388883984375,59.3926796875,32.551983984375,59.3597796875Z"
|
|
2368
|
+
/>
|
|
2369
|
+
</g>
|
|
2370
|
+
</g>
|
|
2371
|
+
</svg>
|
|
2372
|
+
`
|
|
2373
|
+
);
|
|
2374
|
+
iconBuilderExports.IconBuilder(
|
|
2375
|
+
"video-placeholder",
|
|
2376
|
+
(data) => `
|
|
2377
|
+
<svg width="${data.size}" height="${data.size}" fill="none" viewBox="0 0 80 80">
|
|
2378
|
+
<defs>
|
|
2379
|
+
<clipPath><rect width="80" height="80" x="0" y="0" rx="0" /></clipPath>
|
|
2380
|
+
</defs>
|
|
2381
|
+
<g clip-path="url(#master_svg0_6_23777)">
|
|
2382
|
+
<g>
|
|
2383
|
+
<path
|
|
2384
|
+
fill="${data.colorDesc[0]}"
|
|
2385
|
+
fill-opacity="0.10000000149011612"
|
|
2386
|
+
fill-rule="evenodd"
|
|
2387
|
+
d="M5,22L5,58Q5,61.7279,7.6360399999999995,64.364Q10.272079999999999,67,14,67L66,67Q69.7279,67,72.364,64.364Q75,61.7279,75,58L75,22Q75,18.27208,72.364,15.63604Q69.7279,13,66,13L14,13Q10.272079999999999,13,7.6360399999999995,15.63604Q5,18.27208,5,22ZM20.1631,30.5754L8,30.5754L8,22Q8,21.852710000000002,8.00723,21.70559Q8.01445,21.55848,8.02889,21.4119Q8.043330000000001,21.26532,8.06494,21.119619999999998Q8.086549999999999,20.97392,8.11529,20.82946Q8.14402,20.685,8.17981,20.54212Q8.2156,20.39924,8.25836,20.25829Q8.30111,20.11734,8.35074,19.978659999999998Q8.40036,19.83998,8.45672,19.7039Q8.51309,19.56782,8.57606,19.43467Q8.63904,19.30152,8.70847,19.17162Q8.77791,19.041719999999998,8.853629999999999,18.91538Q8.92935,18.78905,9.01118,18.66658Q9.09301,18.54411,9.18075,18.4258Q9.2685,18.3075,9.36194,18.193640000000002Q9.45538,18.07978,9.55429,17.97065Q9.65321,17.86151,9.75736,17.75736Q9.861509999999999,17.65321,9.97065,17.55429Q10.07978,17.455379999999998,10.19364,17.36194Q10.307500000000001,17.2685,10.425799999999999,17.18075Q10.54411,17.09301,10.66658,17.01118Q10.78905,16.92935,10.915379999999999,16.85363Q11.04172,16.7779,11.17162,16.70847Q11.30152,16.63904,11.43467,16.57606Q11.567820000000001,16.51309,11.7039,16.45672Q11.83998,16.40036,11.97866,16.350740000000002Q12.11734,16.30111,12.258289999999999,16.25836Q12.399239999999999,16.2156,12.54212,16.17981Q12.684999999999999,16.14402,12.829460000000001,16.11529Q12.97392,16.08655,13.11962,16.06494Q13.26532,16.04333,13.4119,16.02889Q13.55848,16.01445,13.70559,16.00723Q13.85271,16,14,16L20.1631,16L20.1631,30.5754ZM23.1631,16L56.334,16L56.334,64L23.1631,64L23.1631,16ZM72,22L72,29.7717L59.334,29.7717L59.334,16L66,16Q66.1473,16,66.2944,16.00723Q66.44149999999999,16.01445,66.5881,16.02889Q66.7347,16.04333,66.88040000000001,16.06494Q67.0261,16.08655,67.1705,16.11529Q67.315,16.14402,67.4579,16.17981Q67.6007,16.2156,67.74170000000001,16.25836Q67.8826,16.30111,68.0213,16.350740000000002Q68.16,16.40036,68.2961,16.45672Q68.4322,16.51309,68.56530000000001,16.57606Q68.6985,16.63904,68.8284,16.70847Q68.95830000000001,16.77791,69.0846,16.85363Q69.2109,16.92935,69.3334,17.01118Q69.4559,17.09301,69.5742,17.18075Q69.6925,17.2685,69.8064,17.36194Q69.9202,17.455379999999998,70.0294,17.55429Q70.1385,17.65321,70.2426,17.75736Q70.3468,17.86151,70.4457,17.97065Q70.5446,18.07978,70.6381,18.193640000000002Q70.7315,18.3075,70.8192,18.4258Q70.907,18.54411,70.9888,18.66658Q71.0706,18.78905,71.1464,18.91538Q71.2221,19.041719999999998,71.2915,19.17162Q71.3609,19.30152,71.4239,19.43467Q71.4869,19.56782,71.5433,19.7039Q71.5996,19.83998,71.6493,19.978659999999998Q71.6989,20.11734,71.7416,20.25829Q71.7844,20.39924,71.8202,20.54212Q71.856,20.685,71.8847,20.82946Q71.9135,20.97392,71.9351,21.119619999999998Q71.9567,21.26532,71.9711,21.4119Q71.9855,21.55848,71.9928,21.70559Q72,21.852710000000002,72,22ZM35.75,47.3612Q38,48.6603,40.25,47.3612L46.25,43.897099999999995Q48.5,42.5981,48.5,40Q48.5,37.4019,46.25,36.102900000000005L40.25,32.6388Q38,31.3397,35.75,32.6388Q33.5,33.937799999999996,33.5,36.5359L33.5,43.4641Q33.5,46.0622,35.75,47.3612ZM72,32.771699999999996L72,45.8474L59.334,45.8474L59.334,32.771699999999996L72,32.771699999999996ZM20.1631,46.6511L8,46.6511L8,33.5754L20.1631,33.5754L20.1631,46.6511ZM44.75,41.299L38.75,44.7631Q38,45.1962,37.25,44.7631Q36.5,44.3301,36.5,43.4641L36.5,36.5359Q36.5,35.6699,37.25,35.2369Q38,34.803799999999995,38.75,35.2369L44.75,38.701Q45.5,39.134,45.5,40Q45.5,40.866,44.75,41.299ZM66,64L59.334,64L59.334,48.8474L72,48.8474L72,58Q72,58.1473,71.9928,58.2944Q71.9855,58.4415,71.9711,58.5881Q71.9567,58.7347,71.9351,58.8804Q71.9135,59.0261,71.8847,59.1705Q71.856,59.315,71.8202,59.4579Q71.7844,59.6008,71.7416,59.7417Q71.6989,59.8827,71.6493,60.0213Q71.5996,60.16,71.5433,60.2961Q71.4869,60.4322,71.4239,60.5653Q71.3609,60.6985,71.2915,60.8284Q71.2221,60.9583,71.1464,61.0846Q71.0706,61.2109,70.9888,61.3334Q70.907,61.4559,70.8192,61.5742Q70.7315,61.6925,70.6381,61.8064Q70.5446,61.9202,70.4457,62.0294Q70.3468,62.1385,70.2426,62.2426Q70.1385,62.3468,70.0294,62.4457Q69.9202,62.5446,69.8064,62.6381Q69.6925,62.7315,69.5742,62.8192Q69.4559,62.907,69.3334,62.9888Q69.2109,63.0706,69.0846,63.1464Q68.95830000000001,63.2221,68.8284,63.2915Q68.6985,63.361,68.56530000000001,63.4239Q68.4322,63.4869,68.2961,63.5433Q68.16,63.5996,68.0213,63.6493Q67.8826,63.6989,67.74170000000001,63.7416Q67.6007,63.7844,67.4579,63.8202Q67.315,63.856,67.1705,63.8847Q67.0261,63.9134,66.88040000000001,63.9351Q66.7347,63.9567,66.5881,63.9711Q66.44149999999999,63.9855,66.2944,63.9928Q66.1473,64,66,64ZM20.1631,49.6511L20.1631,64L14,64Q13.85271,64,13.70559,63.9928Q13.55848,63.9855,13.4119,63.9711Q13.26532,63.9567,13.11962,63.9351Q12.97392,63.9134,12.829460000000001,63.8847Q12.684999999999999,63.856,12.54212,63.8202Q12.399239999999999,63.7844,12.258289999999999,63.7416Q12.11734,63.6989,11.97866,63.6493Q11.83998,63.5996,11.7039,63.5433Q11.567820000000001,63.4869,11.43467,63.4239Q11.30152,63.361,11.17162,63.2915Q11.04172,63.2221,10.915379999999999,63.1464Q10.78905,63.0706,10.66658,62.9888Q10.54411,62.907,10.425799999999999,62.8192Q10.307500000000001,62.7315,10.19364,62.6381Q10.07978,62.5446,9.97065,62.4457Q9.861509999999999,62.3468,9.75736,62.2426Q9.65321,62.1385,9.55429,62.0294Q9.45538,61.9202,9.36194,61.8064Q9.2685,61.6925,9.18075,61.5742Q9.09301,61.4559,9.01118,61.3334Q8.92935,61.2109,8.853629999999999,61.0846Q8.777899999999999,60.9583,8.70847,60.8284Q8.63904,60.6985,8.57606,60.5653Q8.51309,60.4322,8.45672,60.2961Q8.40036,60.16,8.35074,60.0213Q8.30111,59.8827,8.25836,59.7417Q8.2156,59.6008,8.17981,59.4579Q8.14402,59.315,8.11529,59.1705Q8.086549999999999,59.0261,8.06494,58.8804Q8.043330000000001,58.7347,8.02889,58.5881Q8.01445,58.4415,8.00723,58.2944Q8,58.1473,8,58L8,49.6511L20.1631,49.6511Z"
|
|
2388
|
+
/>
|
|
2389
|
+
</g>
|
|
2390
|
+
</g>
|
|
2391
|
+
</svg>
|
|
2392
|
+
`
|
|
2393
|
+
);
|
|
2394
|
+
function useScrollPagination(request, options = {}) {
|
|
2395
|
+
const { immediate = true } = options;
|
|
2396
|
+
const pageNumber = ref(1);
|
|
2397
|
+
const pageSize = ref(options.pageSize || 10);
|
|
2398
|
+
const contents = ref([]);
|
|
2399
|
+
const isNoMore = ref(false);
|
|
2400
|
+
const isLoading = ref(false);
|
|
2401
|
+
const isFirstFinish = ref(false);
|
|
2402
|
+
const totalPages = ref(0);
|
|
2403
|
+
function getData() {
|
|
2404
|
+
return __async(this, null, function* () {
|
|
2405
|
+
isLoading.value = true;
|
|
2406
|
+
try {
|
|
2407
|
+
const data = yield request({
|
|
2408
|
+
pageNumber: pageNumber.value,
|
|
2409
|
+
pageSize: pageSize.value
|
|
2410
|
+
});
|
|
2411
|
+
if (data.pageNumber === 1) {
|
|
2412
|
+
contents.value = [...data.contents];
|
|
2413
|
+
} else {
|
|
2414
|
+
contents.value.push(...data.contents);
|
|
2415
|
+
}
|
|
2416
|
+
totalPages.value = data.totalPages || 0;
|
|
2417
|
+
isNoMore.value = data.contents.length < pageSize.value;
|
|
2418
|
+
isLoading.value = false;
|
|
2419
|
+
} catch (e) {
|
|
2420
|
+
isLoading.value = false;
|
|
2421
|
+
}
|
|
2422
|
+
isFirstFinish.value = true;
|
|
2423
|
+
});
|
|
2424
|
+
}
|
|
2425
|
+
function loadNext() {
|
|
2426
|
+
if (isNoMore.value || isLoading.value || totalPages.value > 0 && pageNumber.value >= totalPages.value) {
|
|
2427
|
+
return;
|
|
2428
|
+
}
|
|
2429
|
+
pageNumber.value += 1;
|
|
2430
|
+
getData();
|
|
2431
|
+
}
|
|
2432
|
+
const scrollRef = ref();
|
|
2433
|
+
const onScroll = debounce((event) => {
|
|
2434
|
+
const target = event.target;
|
|
2435
|
+
if (!target) return;
|
|
2436
|
+
const { scrollTop, scrollHeight, clientHeight } = target;
|
|
2437
|
+
if (scrollTop + clientHeight >= scrollHeight - clientHeight * 0.2) {
|
|
2438
|
+
loadNext();
|
|
2439
|
+
}
|
|
2440
|
+
}, 300);
|
|
2441
|
+
onBeforeUnmount(() => {
|
|
2442
|
+
onScroll.cancel();
|
|
2443
|
+
});
|
|
2444
|
+
function refresh() {
|
|
2445
|
+
pageNumber.value = 1;
|
|
2446
|
+
if (scrollRef.value) {
|
|
2447
|
+
scrollRef.value.scrollTop = 0;
|
|
2448
|
+
}
|
|
2449
|
+
return getData();
|
|
2450
|
+
}
|
|
2451
|
+
if (immediate) {
|
|
2452
|
+
onMounted(() => {
|
|
2453
|
+
getData();
|
|
2454
|
+
});
|
|
2455
|
+
}
|
|
2456
|
+
return {
|
|
2457
|
+
scrollRef,
|
|
2458
|
+
pageNumber,
|
|
2459
|
+
pageSize,
|
|
2460
|
+
contents,
|
|
2461
|
+
isFirstFinish,
|
|
2462
|
+
refresh,
|
|
2463
|
+
onScroll,
|
|
2464
|
+
getData
|
|
2465
|
+
};
|
|
2466
|
+
}
|
|
2467
|
+
const orderListProps = () => __spreadValues({}, orderProps());
|
|
2468
|
+
const useOrderList = (options) => {
|
|
2469
|
+
const { props } = options;
|
|
2470
|
+
const activeTab = ref("all");
|
|
2471
|
+
const { scrollRef, contents: orderList2, isFirstFinish, refresh: refreshOrderList, onScroll } = useScrollPagination(
|
|
2472
|
+
(params) => {
|
|
2473
|
+
return props.orderTarget.getOrderList({
|
|
2474
|
+
pageNumber: params.pageNumber,
|
|
2475
|
+
pageSize: params.pageSize,
|
|
2476
|
+
orderStatus: activeTab.value === "all" ? void 0 : activeTab.value
|
|
2477
|
+
});
|
|
2478
|
+
},
|
|
2479
|
+
{
|
|
2480
|
+
immediate: false
|
|
2481
|
+
}
|
|
2482
|
+
);
|
|
2483
|
+
const refreshOrderData = debounce(
|
|
2484
|
+
function(orderNo) {
|
|
2485
|
+
return __async(this, null, function* () {
|
|
2486
|
+
const orderIndex = orderList2.value.findIndex((order2) => order2.orderNo === orderNo);
|
|
2487
|
+
if (orderIndex === -1) return;
|
|
2488
|
+
if (activeTab.value !== "all") {
|
|
2489
|
+
orderList2.value.splice(orderIndex, 1);
|
|
2490
|
+
} else {
|
|
2491
|
+
const newOrderData = yield props.orderTarget.getOrderDetail({ orderNo, syncPayStatus: true });
|
|
2492
|
+
orderList2.value.splice(orderIndex, 1, newOrderData);
|
|
2493
|
+
}
|
|
2494
|
+
});
|
|
2495
|
+
},
|
|
2496
|
+
300
|
|
2497
|
+
);
|
|
2498
|
+
function resetPageScroll() {
|
|
2499
|
+
if (scrollRef.value) {
|
|
2500
|
+
scrollRef.value.scrollTop = 0;
|
|
2501
|
+
}
|
|
2502
|
+
}
|
|
2503
|
+
function init() {
|
|
2504
|
+
refreshOrderList();
|
|
2505
|
+
resetPageScroll();
|
|
2506
|
+
}
|
|
2507
|
+
function reset() {
|
|
2508
|
+
activeTab.value = "all";
|
|
2509
|
+
init();
|
|
2510
|
+
}
|
|
2511
|
+
useEventBusListener(productEvents.RefreshProductOrderListStatus, (orderNo) => {
|
|
2512
|
+
refreshOrderData(orderNo);
|
|
2513
|
+
});
|
|
2514
|
+
watch(activeTab, () => {
|
|
2515
|
+
refreshOrderList();
|
|
2516
|
+
resetPageScroll();
|
|
2517
|
+
});
|
|
2518
|
+
const instance = {
|
|
2519
|
+
init: reset
|
|
2520
|
+
};
|
|
2521
|
+
return {
|
|
2522
|
+
instance,
|
|
2523
|
+
scrollRef,
|
|
2524
|
+
activeTab,
|
|
2525
|
+
orderList: orderList2,
|
|
2526
|
+
isFirstFinish,
|
|
2527
|
+
refreshOrderList,
|
|
2528
|
+
onScroll,
|
|
2529
|
+
refreshOrderData
|
|
2530
|
+
};
|
|
2531
|
+
};
|
|
2532
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
2533
|
+
__name: "order-list",
|
|
2534
|
+
props: orderListProps(),
|
|
2535
|
+
setup(__props, { expose }) {
|
|
2536
|
+
const props = __props;
|
|
2537
|
+
const { $t } = useI18n();
|
|
2538
|
+
const { activeTab, scrollRef, orderList: orderList2, instance, onScroll } = useOrderList({ props });
|
|
2539
|
+
const { navToOrderDetail, handleOrderBtnClick, getPayProviders } = useOrderProvide(props);
|
|
2540
|
+
onMounted(() => {
|
|
2541
|
+
getPayProviders();
|
|
2542
|
+
});
|
|
2543
|
+
expose(instance);
|
|
2544
|
+
return { __sfc: true, props, $t, activeTab, scrollRef, orderList: orderList2, instance, onScroll, navToOrderDetail, handleOrderBtnClick, getPayProviders, OrderStatusTab, OrderItem, ProductIconOrderEmpty };
|
|
2545
|
+
}
|
|
2546
|
+
});
|
|
2547
|
+
var _sfc_render = function render6() {
|
|
2548
|
+
var _vm = this, _c = _vm._self._c, _setup = _vm._self._setupProxy;
|
|
2549
|
+
return _c("div", { ref: "scrollRef", staticClass: "plv-product-order-list", on: { "scroll": _setup.onScroll } }, [_c(_setup.OrderStatusTab, { staticClass: "plv-product-order-list__status-tab", model: { value: _setup.activeTab, callback: function($$v) {
|
|
2550
|
+
_setup.activeTab = $$v;
|
|
2551
|
+
}, expression: "activeTab" } }), _c("div", { staticClass: "plv-product-order-list__items-container" }, [_setup.orderList.length ? _vm._l(_setup.orderList, function(order2, index) {
|
|
2552
|
+
return _c(_setup.OrderItem, { key: index, attrs: { "order": order2 }, on: { "click-purchase-product": _setup.navToOrderDetail, "click-order-btn": _setup.handleOrderBtnClick } });
|
|
2553
|
+
}) : _c("div", { staticClass: "plv-product-order-list__empty" }, [_c(_setup.ProductIconOrderEmpty, { staticClass: "plv-product-order-list__empty-icon" }), _c("div", { staticClass: "plv-product-order-list__empty-text" }, [_vm._v(" " + _vm._s(_setup.$t("order.list.emptyText")) + " ")])], 1)], 2)], 1);
|
|
2554
|
+
};
|
|
2555
|
+
var _sfc_staticRenderFns = [];
|
|
2556
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
2557
|
+
_sfc_main,
|
|
2558
|
+
_sfc_render,
|
|
2559
|
+
_sfc_staticRenderFns
|
|
2560
|
+
);
|
|
2561
|
+
const orderList = __component__.exports;
|
|
2562
|
+
;
|
|
2563
|
+
console.log(
|
|
2564
|
+
"%c@polyv/product-ui",
|
|
2565
|
+
"background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff",
|
|
2566
|
+
"[component: order-list]",
|
|
2567
|
+
"[version: 1.0.0-rc-20250612.3]",
|
|
2568
|
+
"[buildTime: 2025-06-12 02:29:03]"
|
|
2569
|
+
);
|
|
2570
|
+
export {
|
|
2571
|
+
orderList as default
|
|
2572
|
+
};
|