@jctrans-materials/comps-vue3 1.0.3 → 1.0.4

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/dist/index.esm.js CHANGED
@@ -1,16 +1,16 @@
1
- import { ref as _, computed as N, onMounted as We, onBeforeUnmount as gt, defineComponent as Ke, toRef as Pe, watch as He, createElementBlock as b, openBlock as y, createElementVNode as p, createBlock as Ge, normalizeClass as le, createCommentVNode as F, withDirectives as Oe, Fragment as ne, renderList as me, toDisplayString as k, withModifiers as te, withKeys as Ft, normalizeStyle as Re, vModelText as qe, unref as h, Teleport as yt, renderSlot as Fe, createTextVNode as Ye, vShow as Mt, reactive as Qe, createVNode as L, onUnmounted as Nt, withCtx as I, Transition as st, nextTick as Pt, createApp as Ht } from "vue";
2
- import { locationSearchV2 as ze, emitter as ce, MODAL_ACTION as ue, initSharedConfig as Qt } from "@jctrans-materials/shared";
1
+ import { ref as T, computed as M, onMounted as We, onBeforeUnmount as gt, defineComponent as Ke, toRef as Ue, watch as Pe, createElementBlock as b, openBlock as A, createElementVNode as m, createBlock as qe, normalizeClass as le, createCommentVNode as I, withDirectives as Oe, Fragment as ne, renderList as pe, toDisplayString as R, withModifiers as te, withKeys as It, normalizeStyle as Re, vModelText as Ge, unref as h, Teleport as yt, renderSlot as Ie, createTextVNode as Ye, vShow as Ft, reactive as He, createVNode as B, onUnmounted as Mt, withCtx as N, Transition as st, nextTick as Ut, createApp as Pt } from "vue";
2
+ import { locationSearchV2 as ze, emitter as ce, MODAL_ACTION as ue, initSharedConfig as Ht } from "@jctrans-materials/shared";
3
3
  import { MODAL_ACTION as Dl, emitter as Bl, initSharedConfig as Ll } from "@jctrans-materials/shared";
4
- import { ElDialog as Ut, ElForm as $t, ElRow as Me, ElCol as Ae, ElFormItem as fe, ElInput as we, ElCheckbox as Jt, ElButton as it } from "element-plus";
4
+ import { ElDialog as Qt, ElForm as $t, ElRow as Fe, ElCol as Ae, ElFormItem as fe, ElInput as we, ElCheckbox as Jt, ElButton as it } from "element-plus";
5
5
  function Wt(e) {
6
- const t = _([]), n = "_search_history_cache", o = typeof window < "u" && typeof localStorage < "u", l = N(
6
+ const t = T([]), n = "_search_history_cache", o = typeof window < "u" && typeof localStorage < "u", l = M(
7
7
  () => (e.value || "") + n
8
- ), i = N(
8
+ ), i = M(
9
9
  () => !!e.value && e.value !== ""
10
10
  ), s = (c) => {
11
11
  if (!c || !o) return;
12
12
  const r = t.value.filter(
13
- (m) => m.id && m.id !== c.id || m.display !== c.display
13
+ (f) => f.id && f.id !== c.id || f.display !== c.display
14
14
  );
15
15
  r.unshift(c);
16
16
  const u = r.slice(0, 4);
@@ -18,8 +18,8 @@ function Wt(e) {
18
18
  t.value = u;
19
19
  try {
20
20
  localStorage.setItem(l.value, JSON.stringify(u));
21
- } catch (m) {
22
- console.warn("LocalStorage save failed:", m);
21
+ } catch (f) {
22
+ console.warn("LocalStorage save failed:", f);
23
23
  }
24
24
  }
25
25
  }, a = () => {
@@ -55,13 +55,13 @@ async function Kt(e, t = [
55
55
  ...n
56
56
  });
57
57
  }
58
- const Gt = (e, t) => ze.searchByIdWithType(e, t);
59
- function qt(e, t) {
60
- const n = _([]), o = _(!1), l = _(!1), i = _(1), s = _(0), a = _(10), c = N(() => s.value === 0 ? !1 : n.value.length >= s.value), r = N(() => {
58
+ const qt = (e, t) => ze.searchByIdWithType(e, t);
59
+ function Gt(e, t) {
60
+ const n = T([]), o = T(!1), l = T(!1), i = T(1), s = T(0), a = T(10), c = M(() => s.value === 0 ? !1 : n.value.length >= s.value), r = M(() => {
61
61
  const d = [...t.value];
62
62
  return d.includes("Country") && !d.includes("Region") && d.push("Region"), d;
63
63
  }), u = (d) => !d || !Array.isArray(d) ? [] : d.filter(
64
- (f) => r.value.includes(f.type)
64
+ (p) => r.value.includes(p.type)
65
65
  );
66
66
  return {
67
67
  searchResults: n,
@@ -70,13 +70,13 @@ function qt(e, t) {
70
70
  isFinished: c,
71
71
  currentPage: i,
72
72
  total: s,
73
- fetchData: async (d = 1, f = !1) => {
74
- if (!e.value.trim() && !f) {
73
+ fetchData: async (d = 1, p = !1) => {
74
+ if (!e.value.trim() && !p) {
75
75
  n.value = [], s.value = 0;
76
76
  return;
77
77
  }
78
- if (!(f && (l.value || c.value)) && !(!f && o.value)) {
79
- f ? l.value = !0 : (o.value = !0, i.value = 1);
78
+ if (!(p && (l.value || c.value)) && !(!p && o.value)) {
79
+ p ? l.value = !0 : (o.value = !0, i.value = 1);
80
80
  try {
81
81
  const v = await Kt(
82
82
  e.value,
@@ -86,8 +86,8 @@ function qt(e, t) {
86
86
  // 使用传入的 page 参数
87
87
  size: a.value
88
88
  }
89
- ), A = v.records || [], w = u(A);
90
- f ? n.value = [...n.value, ...w] : n.value = w, s.value = v.total || 0, i.value = d;
89
+ ), w = v.records || [], x = u(w);
90
+ p ? n.value = [...n.value, ...x] : n.value = x, s.value = v.total || 0, i.value = d;
91
91
  } catch (v) {
92
92
  console.error("Failed to fetch search results:", v);
93
93
  } finally {
@@ -143,9 +143,9 @@ function jt(e, t, n) {
143
143
  }
144
144
  function Zt(e) {
145
145
  const t = Ee(e);
146
- return [Ue(e), t, Ue(t)];
146
+ return [Qe(e), t, Qe(t)];
147
147
  }
148
- function Ue(e) {
148
+ function Qe(e) {
149
149
  return e.replace(/start|end/g, (t) => zt[t]);
150
150
  }
151
151
  const rt = ["left", "right"], ct = ["right", "left"], en = ["top", "bottom"], tn = ["bottom", "top"];
@@ -164,7 +164,7 @@ function nn(e, t, n) {
164
164
  function on(e, t, n, o) {
165
165
  const l = Ce(e);
166
166
  let i = nn(se(e), n === "start", o);
167
- return l && (i = i.map((s) => s + "-" + l), t && (i = i.concat(i.map(Ue)))), i;
167
+ return l && (i = i.map((s) => s + "-" + l), t && (i = i.concat(i.map(Qe)))), i;
168
168
  }
169
169
  function Ee(e) {
170
170
  return e.replace(/left|right|bottom|top/g, (t) => Yt[t]);
@@ -209,48 +209,48 @@ function ut(e, t, n) {
209
209
  reference: o,
210
210
  floating: l
211
211
  } = e;
212
- const i = oe(t), s = xt(t), a = wt(s), c = se(t), r = i === "y", u = o.x + o.width / 2 - l.width / 2, m = o.y + o.height / 2 - l.height / 2, d = o[a] / 2 - l[a] / 2;
213
- let f;
212
+ const i = oe(t), s = xt(t), a = wt(s), c = se(t), r = i === "y", u = o.x + o.width / 2 - l.width / 2, f = o.y + o.height / 2 - l.height / 2, d = o[a] / 2 - l[a] / 2;
213
+ let p;
214
214
  switch (c) {
215
215
  case "top":
216
- f = {
216
+ p = {
217
217
  x: u,
218
218
  y: o.y - l.height
219
219
  };
220
220
  break;
221
221
  case "bottom":
222
- f = {
222
+ p = {
223
223
  x: u,
224
224
  y: o.y + o.height
225
225
  };
226
226
  break;
227
227
  case "right":
228
- f = {
228
+ p = {
229
229
  x: o.x + o.width,
230
- y: m
230
+ y: f
231
231
  };
232
232
  break;
233
233
  case "left":
234
- f = {
234
+ p = {
235
235
  x: o.x - l.width,
236
- y: m
236
+ y: f
237
237
  };
238
238
  break;
239
239
  default:
240
- f = {
240
+ p = {
241
241
  x: o.x,
242
242
  y: o.y
243
243
  };
244
244
  }
245
245
  switch (Ce(t)) {
246
246
  case "start":
247
- f[s] -= d * (n && r ? -1 : 1);
247
+ p[s] -= d * (n && r ? -1 : 1);
248
248
  break;
249
249
  case "end":
250
- f[s] += d * (n && r ? -1 : 1);
250
+ p[s] += d * (n && r ? -1 : 1);
251
251
  break;
252
252
  }
253
- return f;
253
+ return p;
254
254
  }
255
255
  const an = async (e, t, n) => {
256
256
  const {
@@ -265,24 +265,24 @@ const an = async (e, t, n) => {
265
265
  strategy: l
266
266
  }), {
267
267
  x: u,
268
- y: m
269
- } = ut(r, o, c), d = o, f = {}, v = 0;
270
- for (let A = 0; A < a.length; A++) {
268
+ y: f
269
+ } = ut(r, o, c), d = o, p = {}, v = 0;
270
+ for (let w = 0; w < a.length; w++) {
271
271
  const {
272
- name: w,
272
+ name: x,
273
273
  fn: g
274
- } = a[A], {
274
+ } = a[w], {
275
275
  x: C,
276
- y: S,
277
- data: V,
278
- reset: D
276
+ y: k,
277
+ data: E,
278
+ reset: V
279
279
  } = await g({
280
280
  x: u,
281
- y: m,
281
+ y: f,
282
282
  initialPlacement: o,
283
283
  placement: d,
284
284
  strategy: l,
285
- middlewareData: f,
285
+ middlewareData: p,
286
286
  rects: r,
287
287
  platform: s,
288
288
  elements: {
@@ -290,27 +290,27 @@ const an = async (e, t, n) => {
290
290
  floating: t
291
291
  }
292
292
  });
293
- u = C ?? u, m = S ?? m, f = {
294
- ...f,
295
- [w]: {
296
- ...f[w],
297
- ...V
293
+ u = C ?? u, f = k ?? f, p = {
294
+ ...p,
295
+ [x]: {
296
+ ...p[x],
297
+ ...E
298
298
  }
299
- }, D && v <= 50 && (v++, typeof D == "object" && (D.placement && (d = D.placement), D.rects && (r = D.rects === !0 ? await s.getElementRects({
299
+ }, V && v <= 50 && (v++, typeof V == "object" && (V.placement && (d = V.placement), V.rects && (r = V.rects === !0 ? await s.getElementRects({
300
300
  reference: e,
301
301
  floating: t,
302
302
  strategy: l
303
- }) : D.rects), {
303
+ }) : V.rects), {
304
304
  x: u,
305
- y: m
306
- } = ut(r, d, c)), A = -1);
305
+ y: f
306
+ } = ut(r, d, c)), w = -1);
307
307
  }
308
308
  return {
309
309
  x: u,
310
- y: m,
310
+ y: f,
311
311
  placement: d,
312
312
  strategy: l,
313
- middlewareData: f
313
+ middlewareData: p
314
314
  };
315
315
  };
316
316
  async function Xe(e, t) {
@@ -326,36 +326,36 @@ async function Xe(e, t) {
326
326
  } = e, {
327
327
  boundary: r = "clippingAncestors",
328
328
  rootBoundary: u = "viewport",
329
- elementContext: m = "floating",
329
+ elementContext: f = "floating",
330
330
  altBoundary: d = !1,
331
- padding: f = 0
332
- } = be(t, e), v = sn(f), w = a[d ? m === "floating" ? "reference" : "floating" : m], g = Ve(await i.getClippingRect({
333
- element: (n = await (i.isElement == null ? void 0 : i.isElement(w))) == null || n ? w : w.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
331
+ padding: p = 0
332
+ } = be(t, e), v = sn(p), x = a[d ? f === "floating" ? "reference" : "floating" : f], g = Ve(await i.getClippingRect({
333
+ element: (n = await (i.isElement == null ? void 0 : i.isElement(x))) == null || n ? x : x.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
334
334
  boundary: r,
335
335
  rootBoundary: u,
336
336
  strategy: c
337
- })), C = m === "floating" ? {
337
+ })), C = f === "floating" ? {
338
338
  x: o,
339
339
  y: l,
340
340
  width: s.floating.width,
341
341
  height: s.floating.height
342
- } : s.reference, S = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)), V = await (i.isElement == null ? void 0 : i.isElement(S)) ? await (i.getScale == null ? void 0 : i.getScale(S)) || {
342
+ } : s.reference, k = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)), E = await (i.isElement == null ? void 0 : i.isElement(k)) ? await (i.getScale == null ? void 0 : i.getScale(k)) || {
343
343
  x: 1,
344
344
  y: 1
345
345
  } : {
346
346
  x: 1,
347
347
  y: 1
348
- }, D = Ve(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
348
+ }, V = Ve(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
349
349
  elements: a,
350
350
  rect: C,
351
- offsetParent: S,
351
+ offsetParent: k,
352
352
  strategy: c
353
353
  }) : C);
354
354
  return {
355
- top: (g.top - D.top + v.top) / V.y,
356
- bottom: (D.bottom - g.bottom + v.bottom) / V.y,
357
- left: (g.left - D.left + v.left) / V.x,
358
- right: (D.right - g.right + v.right) / V.x
355
+ top: (g.top - V.top + v.top) / E.y,
356
+ bottom: (V.bottom - g.bottom + v.bottom) / E.y,
357
+ left: (g.left - V.left + v.left) / E.x,
358
+ right: (V.right - g.right + v.right) / E.x
359
359
  };
360
360
  }
361
361
  const rn = function(e) {
@@ -373,66 +373,66 @@ const rn = function(e) {
373
373
  elements: r
374
374
  } = t, {
375
375
  mainAxis: u = !0,
376
- crossAxis: m = !0,
376
+ crossAxis: f = !0,
377
377
  fallbackPlacements: d,
378
- fallbackStrategy: f = "bestFit",
378
+ fallbackStrategy: p = "bestFit",
379
379
  fallbackAxisSideDirection: v = "none",
380
- flipAlignment: A = !0,
381
- ...w
380
+ flipAlignment: w = !0,
381
+ ...x
382
382
  } = be(e, t);
383
383
  if ((n = i.arrow) != null && n.alignmentOffset)
384
384
  return {};
385
- const g = se(l), C = oe(a), S = se(a) === a, V = await (c.isRTL == null ? void 0 : c.isRTL(r.floating)), D = d || (S || !A ? [Ee(a)] : Zt(a)), W = v !== "none";
386
- !d && W && D.push(...on(a, A, v, V));
387
- const P = [a, ...D], U = await Xe(t, w), K = [];
388
- let H = ((o = i.flip) == null ? void 0 : o.overflows) || [];
389
- if (u && K.push(U[g]), m) {
390
- const G = jt(l, s, V);
391
- K.push(U[G[0]], U[G[1]]);
385
+ const g = se(l), C = oe(a), k = se(a) === a, E = await (c.isRTL == null ? void 0 : c.isRTL(r.floating)), V = d || (k || !w ? [Ee(a)] : Zt(a)), W = v !== "none";
386
+ !d && W && V.push(...on(a, w, v, E));
387
+ const U = [a, ...V], Q = await Xe(t, x), K = [];
388
+ let P = ((o = i.flip) == null ? void 0 : o.overflows) || [];
389
+ if (u && K.push(Q[g]), f) {
390
+ const q = jt(l, s, E);
391
+ K.push(Q[q[0]], Q[q[1]]);
392
392
  }
393
- if (H = [...H, {
393
+ if (P = [...P, {
394
394
  placement: l,
395
395
  overflows: K
396
- }], !K.every((G) => G <= 0)) {
396
+ }], !K.every((q) => q <= 0)) {
397
397
  var ee, z;
398
- const G = (((ee = i.flip) == null ? void 0 : ee.index) || 0) + 1, ae = P[G];
399
- if (ae && (!(m === "alignment" ? C !== oe(ae) : !1) || // We leave the current main axis only if every placement on that axis
398
+ const q = (((ee = i.flip) == null ? void 0 : ee.index) || 0) + 1, ae = U[q];
399
+ if (ae && (!(f === "alignment" ? C !== oe(ae) : !1) || // We leave the current main axis only if every placement on that axis
400
400
  // overflows the main axis.
401
- H.every((R) => oe(R.placement) === C ? R.overflows[0] > 0 : !0)))
401
+ P.every((O) => oe(O.placement) === C ? O.overflows[0] > 0 : !0)))
402
402
  return {
403
403
  data: {
404
- index: G,
405
- overflows: H
404
+ index: q,
405
+ overflows: P
406
406
  },
407
407
  reset: {
408
408
  placement: ae
409
409
  }
410
410
  };
411
- let T = (z = H.filter((O) => O.overflows[0] <= 0).sort((O, R) => O.overflows[1] - R.overflows[1])[0]) == null ? void 0 : z.placement;
412
- if (!T)
413
- switch (f) {
411
+ let S = (z = P.filter((_) => _.overflows[0] <= 0).sort((_, O) => _.overflows[1] - O.overflows[1])[0]) == null ? void 0 : z.placement;
412
+ if (!S)
413
+ switch (p) {
414
414
  case "bestFit": {
415
- var M;
416
- const O = (M = H.filter((R) => {
415
+ var F;
416
+ const _ = (F = P.filter((O) => {
417
417
  if (W) {
418
- const Q = oe(R.placement);
419
- return Q === C || // Create a bias to the `y` side axis due to horizontal
418
+ const H = oe(O.placement);
419
+ return H === C || // Create a bias to the `y` side axis due to horizontal
420
420
  // reading directions favoring greater width.
421
- Q === "y";
421
+ H === "y";
422
422
  }
423
423
  return !0;
424
- }).map((R) => [R.placement, R.overflows.filter((Q) => Q > 0).reduce((Q, ye) => Q + ye, 0)]).sort((R, Q) => R[1] - Q[1])[0]) == null ? void 0 : M[0];
425
- O && (T = O);
424
+ }).map((O) => [O.placement, O.overflows.filter((H) => H > 0).reduce((H, ye) => H + ye, 0)]).sort((O, H) => O[1] - H[1])[0]) == null ? void 0 : F[0];
425
+ _ && (S = _);
426
426
  break;
427
427
  }
428
428
  case "initialPlacement":
429
- T = a;
429
+ S = a;
430
430
  break;
431
431
  }
432
- if (l !== T)
432
+ if (l !== S)
433
433
  return {
434
434
  reset: {
435
- placement: T
435
+ placement: S
436
436
  }
437
437
  };
438
438
  }
@@ -445,26 +445,26 @@ async function un(e, t) {
445
445
  placement: n,
446
446
  platform: o,
447
447
  elements: l
448
- } = e, i = await (o.isRTL == null ? void 0 : o.isRTL(l.floating)), s = se(n), a = Ce(n), c = oe(n) === "y", r = cn.has(s) ? -1 : 1, u = i && c ? -1 : 1, m = be(t, e);
448
+ } = e, i = await (o.isRTL == null ? void 0 : o.isRTL(l.floating)), s = se(n), a = Ce(n), c = oe(n) === "y", r = cn.has(s) ? -1 : 1, u = i && c ? -1 : 1, f = be(t, e);
449
449
  let {
450
450
  mainAxis: d,
451
- crossAxis: f,
451
+ crossAxis: p,
452
452
  alignmentAxis: v
453
- } = typeof m == "number" ? {
454
- mainAxis: m,
453
+ } = typeof f == "number" ? {
454
+ mainAxis: f,
455
455
  crossAxis: 0,
456
456
  alignmentAxis: null
457
457
  } : {
458
- mainAxis: m.mainAxis || 0,
459
- crossAxis: m.crossAxis || 0,
460
- alignmentAxis: m.alignmentAxis
458
+ mainAxis: f.mainAxis || 0,
459
+ crossAxis: f.crossAxis || 0,
460
+ alignmentAxis: f.alignmentAxis
461
461
  };
462
- return a && typeof v == "number" && (f = a === "end" ? v * -1 : v), c ? {
463
- x: f * u,
462
+ return a && typeof v == "number" && (p = a === "end" ? v * -1 : v), c ? {
463
+ x: p * u,
464
464
  y: d * r
465
465
  } : {
466
466
  x: d * r,
467
- y: f * u
467
+ y: p * u
468
468
  };
469
469
  }
470
470
  const dn = function(e) {
@@ -502,11 +502,11 @@ const dn = function(e) {
502
502
  mainAxis: i = !0,
503
503
  crossAxis: s = !1,
504
504
  limiter: a = {
505
- fn: (w) => {
505
+ fn: (x) => {
506
506
  let {
507
507
  x: g,
508
508
  y: C
509
- } = w;
509
+ } = x;
510
510
  return {
511
511
  x: g,
512
512
  y: C
@@ -517,35 +517,35 @@ const dn = function(e) {
517
517
  } = be(e, t), r = {
518
518
  x: n,
519
519
  y: o
520
- }, u = await Xe(t, c), m = oe(se(l)), d = At(m);
521
- let f = r[d], v = r[m];
520
+ }, u = await Xe(t, c), f = oe(se(l)), d = At(f);
521
+ let p = r[d], v = r[f];
522
522
  if (i) {
523
- const w = d === "y" ? "top" : "left", g = d === "y" ? "bottom" : "right", C = f + u[w], S = f - u[g];
524
- f = at(C, f, S);
523
+ const x = d === "y" ? "top" : "left", g = d === "y" ? "bottom" : "right", C = p + u[x], k = p - u[g];
524
+ p = at(C, p, k);
525
525
  }
526
526
  if (s) {
527
- const w = m === "y" ? "top" : "left", g = m === "y" ? "bottom" : "right", C = v + u[w], S = v - u[g];
528
- v = at(C, v, S);
527
+ const x = f === "y" ? "top" : "left", g = f === "y" ? "bottom" : "right", C = v + u[x], k = v - u[g];
528
+ v = at(C, v, k);
529
529
  }
530
- const A = a.fn({
530
+ const w = a.fn({
531
531
  ...t,
532
- [d]: f,
533
- [m]: v
532
+ [d]: p,
533
+ [f]: v
534
534
  });
535
535
  return {
536
- ...A,
536
+ ...w,
537
537
  data: {
538
- x: A.x - n,
539
- y: A.y - o,
538
+ x: w.x - n,
539
+ y: w.y - o,
540
540
  enabled: {
541
541
  [d]: i,
542
- [m]: s
542
+ [f]: s
543
543
  }
544
544
  }
545
545
  };
546
546
  }
547
547
  };
548
- }, mn = function(e) {
548
+ }, pn = function(e) {
549
549
  return e === void 0 && (e = {}), {
550
550
  name: "size",
551
551
  options: e,
@@ -560,25 +560,25 @@ const dn = function(e) {
560
560
  apply: c = () => {
561
561
  },
562
562
  ...r
563
- } = be(e, t), u = await Xe(t, r), m = se(l), d = Ce(l), f = oe(l) === "y", {
563
+ } = be(e, t), u = await Xe(t, r), f = se(l), d = Ce(l), p = oe(l) === "y", {
564
564
  width: v,
565
- height: A
565
+ height: w
566
566
  } = i.floating;
567
- let w, g;
568
- m === "top" || m === "bottom" ? (w = m, g = d === (await (s.isRTL == null ? void 0 : s.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (g = m, w = d === "end" ? "top" : "bottom");
569
- const C = A - u.top - u.bottom, S = v - u.left - u.right, V = he(A - u[w], C), D = he(v - u[g], S), W = !t.middlewareData.shift;
570
- let P = V, U = D;
571
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (U = S), (o = t.middlewareData.shift) != null && o.enabled.y && (P = C), W && !d) {
572
- const H = $(u.left, 0), ee = $(u.right, 0), z = $(u.top, 0), M = $(u.bottom, 0);
573
- f ? U = v - 2 * (H !== 0 || ee !== 0 ? H + ee : $(u.left, u.right)) : P = A - 2 * (z !== 0 || M !== 0 ? z + M : $(u.top, u.bottom));
567
+ let x, g;
568
+ f === "top" || f === "bottom" ? (x = f, g = d === (await (s.isRTL == null ? void 0 : s.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (g = f, x = d === "end" ? "top" : "bottom");
569
+ const C = w - u.top - u.bottom, k = v - u.left - u.right, E = he(w - u[x], C), V = he(v - u[g], k), W = !t.middlewareData.shift;
570
+ let U = E, Q = V;
571
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (Q = k), (o = t.middlewareData.shift) != null && o.enabled.y && (U = C), W && !d) {
572
+ const P = $(u.left, 0), ee = $(u.right, 0), z = $(u.top, 0), F = $(u.bottom, 0);
573
+ p ? Q = v - 2 * (P !== 0 || ee !== 0 ? P + ee : $(u.left, u.right)) : U = w - 2 * (z !== 0 || F !== 0 ? z + F : $(u.top, u.bottom));
574
574
  }
575
575
  await c({
576
576
  ...t,
577
- availableWidth: U,
578
- availableHeight: P
577
+ availableWidth: Q,
578
+ availableHeight: U
579
579
  });
580
580
  const K = await s.getDimensions(a.floating);
581
- return v !== K.width || A !== K.height ? {
581
+ return v !== K.width || w !== K.height ? {
582
582
  reset: {
583
583
  rects: !0
584
584
  }
@@ -603,7 +603,7 @@ function Z(e) {
603
603
  function bt(e) {
604
604
  return De() ? e instanceof Node || e instanceof J(e).Node : !1;
605
605
  }
606
- function q(e) {
606
+ function G(e) {
607
607
  return De() ? e instanceof Element || e instanceof J(e).Element : !1;
608
608
  }
609
609
  function j(e) {
@@ -612,7 +612,7 @@ function j(e) {
612
612
  function dt(e) {
613
613
  return !De() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof J(e).ShadowRoot;
614
614
  }
615
- const pn = /* @__PURE__ */ new Set(["inline", "contents"]);
615
+ const mn = /* @__PURE__ */ new Set(["inline", "contents"]);
616
616
  function Se(e) {
617
617
  const {
618
618
  overflow: t,
@@ -620,7 +620,7 @@ function Se(e) {
620
620
  overflowY: o,
621
621
  display: l
622
622
  } = Y(e);
623
- return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !pn.has(l);
623
+ return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !mn.has(l);
624
624
  }
625
625
  const hn = /* @__PURE__ */ new Set(["table", "td", "th"]);
626
626
  function vn(e) {
@@ -638,7 +638,7 @@ function Be(e) {
638
638
  }
639
639
  const yn = ["transform", "translate", "scale", "rotate", "perspective"], An = ["transform", "translate", "scale", "rotate", "perspective", "filter"], wn = ["paint", "layout", "strict", "content"];
640
640
  function je(e) {
641
- const t = Ze(), n = q(e) ? Y(e) : e;
641
+ const t = Ze(), n = G(e) ? Y(e) : e;
642
642
  return yn.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || An.some((o) => (n.willChange || "").includes(o)) || wn.some((o) => (n.contain || "").includes(o));
643
643
  }
644
644
  function xn(e) {
@@ -663,7 +663,7 @@ function Y(e) {
663
663
  return J(e).getComputedStyle(e);
664
664
  }
665
665
  function Le(e) {
666
- return q(e) ? {
666
+ return G(e) ? {
667
667
  scrollLeft: e.scrollLeft,
668
668
  scrollTop: e.scrollTop
669
669
  } : {
@@ -711,9 +711,9 @@ function St(e) {
711
711
  };
712
712
  }
713
713
  function et(e) {
714
- return q(e) ? e : e.contextElement;
714
+ return G(e) ? e : e.contextElement;
715
715
  }
716
- function pe(e) {
716
+ function me(e) {
717
717
  const t = et(e);
718
718
  if (!j(t))
719
719
  return X(1);
@@ -743,30 +743,30 @@ function de(e, t, n, o) {
743
743
  t === void 0 && (t = !1), n === void 0 && (n = !1);
744
744
  const l = e.getBoundingClientRect(), i = et(e);
745
745
  let s = X(1);
746
- t && (o ? q(o) && (s = pe(o)) : s = pe(e));
746
+ t && (o ? G(o) && (s = me(o)) : s = me(e));
747
747
  const a = Sn(i, n, o) ? kt(i) : X(0);
748
- let c = (l.left + a.x) / s.x, r = (l.top + a.y) / s.y, u = l.width / s.x, m = l.height / s.y;
748
+ let c = (l.left + a.x) / s.x, r = (l.top + a.y) / s.y, u = l.width / s.x, f = l.height / s.y;
749
749
  if (i) {
750
- const d = J(i), f = o && q(o) ? J(o) : o;
751
- let v = d, A = $e(v);
752
- for (; A && o && f !== v; ) {
753
- const w = pe(A), g = A.getBoundingClientRect(), C = Y(A), S = g.left + (A.clientLeft + parseFloat(C.paddingLeft)) * w.x, V = g.top + (A.clientTop + parseFloat(C.paddingTop)) * w.y;
754
- c *= w.x, r *= w.y, u *= w.x, m *= w.y, c += S, r += V, v = J(A), A = $e(v);
750
+ const d = J(i), p = o && G(o) ? J(o) : o;
751
+ let v = d, w = $e(v);
752
+ for (; w && o && p !== v; ) {
753
+ const x = me(w), g = w.getBoundingClientRect(), C = Y(w), k = g.left + (w.clientLeft + parseFloat(C.paddingLeft)) * x.x, E = g.top + (w.clientTop + parseFloat(C.paddingTop)) * x.y;
754
+ c *= x.x, r *= x.y, u *= x.x, f *= x.y, c += k, r += E, v = J(w), w = $e(v);
755
755
  }
756
756
  }
757
757
  return Ve({
758
758
  width: u,
759
- height: m,
759
+ height: f,
760
760
  x: c,
761
761
  y: r
762
762
  });
763
763
  }
764
- function Ie(e, t) {
764
+ function Ne(e, t) {
765
765
  const n = Le(e).scrollLeft;
766
766
  return t ? t.left + n : de(Z(e)).left + n;
767
767
  }
768
768
  function Rt(e, t) {
769
- const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - Ie(e, n), l = n.top + t.scrollTop;
769
+ const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - Ne(e, n), l = n.top + t.scrollTop;
770
770
  return {
771
771
  x: o,
772
772
  y: l
@@ -786,12 +786,12 @@ function kn(e) {
786
786
  scrollLeft: 0,
787
787
  scrollTop: 0
788
788
  }, r = X(1);
789
- const u = X(0), m = j(o);
790
- if ((m || !m && !i) && ((ge(o) !== "body" || Se(s)) && (c = Le(o)), j(o))) {
791
- const f = de(o);
792
- r = pe(o), u.x = f.x + o.clientLeft, u.y = f.y + o.clientTop;
789
+ const u = X(0), f = j(o);
790
+ if ((f || !f && !i) && ((ge(o) !== "body" || Se(s)) && (c = Le(o)), j(o))) {
791
+ const p = de(o);
792
+ r = me(o), u.x = p.x + o.clientLeft, u.y = p.y + o.clientTop;
793
793
  }
794
- const d = s && !m && !i ? Rt(s, c) : X(0);
794
+ const d = s && !f && !i ? Rt(s, c) : X(0);
795
795
  return {
796
796
  width: n.width * r.x,
797
797
  height: n.height * r.y,
@@ -804,7 +804,7 @@ function Rn(e) {
804
804
  }
805
805
  function _n(e) {
806
806
  const t = Z(e), n = Le(e), o = e.ownerDocument.body, l = $(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = $(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
807
- let s = -n.scrollLeft + Ie(e);
807
+ let s = -n.scrollLeft + Ne(e);
808
808
  const a = -n.scrollTop;
809
809
  return Y(o).direction === "rtl" && (s += $(t.clientWidth, o.clientWidth) - l), {
810
810
  width: l,
@@ -822,9 +822,9 @@ function On(e, t) {
822
822
  const u = Ze();
823
823
  (!u || u && t === "fixed") && (a = l.offsetLeft, c = l.offsetTop);
824
824
  }
825
- const r = Ie(o);
825
+ const r = Ne(o);
826
826
  if (r <= 0) {
827
- const u = o.ownerDocument, m = u.body, d = getComputedStyle(m), f = u.compatMode === "CSS1Compat" && parseFloat(d.marginLeft) + parseFloat(d.marginRight) || 0, v = Math.abs(o.clientWidth - m.clientWidth - f);
827
+ const u = o.ownerDocument, f = u.body, d = getComputedStyle(f), p = u.compatMode === "CSS1Compat" && parseFloat(d.marginLeft) + parseFloat(d.marginRight) || 0, v = Math.abs(o.clientWidth - f.clientWidth - p);
828
828
  v <= ft && (i -= v);
829
829
  } else r <= ft && (i += r);
830
830
  return {
@@ -836,7 +836,7 @@ function On(e, t) {
836
836
  }
837
837
  const Tn = /* @__PURE__ */ new Set(["absolute", "fixed"]);
838
838
  function En(e, t) {
839
- const n = de(e, !0, t === "fixed"), o = n.top + e.clientTop, l = n.left + e.clientLeft, i = j(e) ? pe(e) : X(1), s = e.clientWidth * i.x, a = e.clientHeight * i.y, c = l * i.x, r = o * i.y;
839
+ const n = de(e, !0, t === "fixed"), o = n.top + e.clientTop, l = n.left + e.clientLeft, i = j(e) ? me(e) : X(1), s = e.clientWidth * i.x, a = e.clientHeight * i.y, c = l * i.x, r = o * i.y;
840
840
  return {
841
841
  width: s,
842
842
  height: a,
@@ -844,13 +844,13 @@ function En(e, t) {
844
844
  y: r
845
845
  };
846
846
  }
847
- function mt(e, t, n) {
847
+ function pt(e, t, n) {
848
848
  let o;
849
849
  if (t === "viewport")
850
850
  o = On(e, n);
851
851
  else if (t === "document")
852
852
  o = _n(Z(e));
853
- else if (q(t))
853
+ else if (G(t))
854
854
  o = En(t, n);
855
855
  else {
856
856
  const l = kt(e);
@@ -865,16 +865,16 @@ function mt(e, t, n) {
865
865
  }
866
866
  function _t(e, t) {
867
867
  const n = ie(e);
868
- return n === t || !q(n) || ve(n) ? !1 : Y(n).position === "fixed" || _t(n, t);
868
+ return n === t || !G(n) || ve(n) ? !1 : Y(n).position === "fixed" || _t(n, t);
869
869
  }
870
870
  function Vn(e, t) {
871
871
  const n = t.get(e);
872
872
  if (n)
873
873
  return n;
874
- let o = xe(e, [], !1).filter((a) => q(a) && ge(a) !== "body"), l = null;
874
+ let o = xe(e, [], !1).filter((a) => G(a) && ge(a) !== "body"), l = null;
875
875
  const i = Y(e).position === "fixed";
876
876
  let s = i ? ie(e) : e;
877
- for (; q(s) && !ve(s); ) {
877
+ for (; G(s) && !ve(s); ) {
878
878
  const a = Y(s), c = je(s);
879
879
  !c && a.position === "fixed" && (l = null), (i ? !c && !l : !c && a.position === "static" && !!l && Tn.has(l.position) || Se(s) && !c && _t(e, s)) ? o = o.filter((u) => u !== s) : l = a, s = ie(s);
880
880
  }
@@ -888,9 +888,9 @@ function Dn(e) {
888
888
  strategy: l
889
889
  } = e;
890
890
  const s = [...n === "clippingAncestors" ? Be(t) ? [] : Vn(t, this._c) : [].concat(n), o], a = s[0], c = s.reduce((r, u) => {
891
- const m = mt(t, u, l);
892
- return r.top = $(m.top, r.top), r.right = he(m.right, r.right), r.bottom = he(m.bottom, r.bottom), r.left = $(m.left, r.left), r;
893
- }, mt(t, a, l));
891
+ const f = pt(t, u, l);
892
+ return r.top = $(f.top, r.top), r.right = he(f.right, r.right), r.bottom = he(f.bottom, r.bottom), r.left = $(f.left, r.left), r;
893
+ }, pt(t, a, l));
894
894
  return {
895
895
  width: c.right - c.left,
896
896
  height: c.bottom - c.top,
@@ -916,26 +916,26 @@ function Ln(e, t, n) {
916
916
  };
917
917
  const c = X(0);
918
918
  function r() {
919
- c.x = Ie(l);
919
+ c.x = Ne(l);
920
920
  }
921
921
  if (o || !o && !i)
922
922
  if ((ge(t) !== "body" || Se(l)) && (a = Le(t)), o) {
923
- const f = de(t, !0, i, t);
924
- c.x = f.x + t.clientLeft, c.y = f.y + t.clientTop;
923
+ const p = de(t, !0, i, t);
924
+ c.x = p.x + t.clientLeft, c.y = p.y + t.clientTop;
925
925
  } else l && r();
926
926
  i && !o && l && r();
927
- const u = l && !o && !i ? Rt(l, a) : X(0), m = s.left + a.scrollLeft - c.x - u.x, d = s.top + a.scrollTop - c.y - u.y;
927
+ const u = l && !o && !i ? Rt(l, a) : X(0), f = s.left + a.scrollLeft - c.x - u.x, d = s.top + a.scrollTop - c.y - u.y;
928
928
  return {
929
- x: m,
929
+ x: f,
930
930
  y: d,
931
931
  width: s.width,
932
932
  height: s.height
933
933
  };
934
934
  }
935
- function Ne(e) {
935
+ function Me(e) {
936
936
  return Y(e).position === "static";
937
937
  }
938
- function pt(e, t) {
938
+ function mt(e, t) {
939
939
  if (!j(e) || Y(e).position === "fixed")
940
940
  return null;
941
941
  if (t)
@@ -950,18 +950,18 @@ function Ot(e, t) {
950
950
  if (!j(e)) {
951
951
  let l = ie(e);
952
952
  for (; l && !ve(l); ) {
953
- if (q(l) && !Ne(l))
953
+ if (G(l) && !Me(l))
954
954
  return l;
955
955
  l = ie(l);
956
956
  }
957
957
  return n;
958
958
  }
959
- let o = pt(e, t);
960
- for (; o && vn(o) && Ne(o); )
961
- o = pt(o, t);
962
- return o && ve(o) && Ne(o) && !je(o) ? n : o || xn(e) || n;
959
+ let o = mt(e, t);
960
+ for (; o && vn(o) && Me(o); )
961
+ o = mt(o, t);
962
+ return o && ve(o) && Me(o) && !je(o) ? n : o || xn(e) || n;
963
963
  }
964
- const In = async function(e) {
964
+ const Nn = async function(e) {
965
965
  const t = this.getOffsetParent || Ot, n = this.getDimensions, o = await n(e.floating);
966
966
  return {
967
967
  reference: Ln(e.reference, await t(e.floating), e.strategy),
@@ -973,25 +973,25 @@ const In = async function(e) {
973
973
  }
974
974
  };
975
975
  };
976
- function Fn(e) {
976
+ function In(e) {
977
977
  return Y(e).direction === "rtl";
978
978
  }
979
- const Mn = {
979
+ const Fn = {
980
980
  convertOffsetParentRelativeRectToViewportRelativeRect: kn,
981
981
  getDocumentElement: Z,
982
982
  getClippingRect: Dn,
983
983
  getOffsetParent: Ot,
984
- getElementRects: In,
984
+ getElementRects: Nn,
985
985
  getClientRects: Rn,
986
986
  getDimensions: Bn,
987
- getScale: pe,
988
- isElement: q,
989
- isRTL: Fn
987
+ getScale: me,
988
+ isElement: G,
989
+ isRTL: In
990
990
  };
991
991
  function Tt(e, t) {
992
992
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
993
993
  }
994
- function Nn(e, t) {
994
+ function Mn(e, t) {
995
995
  let n = null, o;
996
996
  const l = Z(e);
997
997
  function i() {
@@ -1002,42 +1002,42 @@ function Nn(e, t) {
1002
1002
  a === void 0 && (a = !1), c === void 0 && (c = 1), i();
1003
1003
  const r = e.getBoundingClientRect(), {
1004
1004
  left: u,
1005
- top: m,
1005
+ top: f,
1006
1006
  width: d,
1007
- height: f
1007
+ height: p
1008
1008
  } = r;
1009
- if (a || t(), !d || !f)
1009
+ if (a || t(), !d || !p)
1010
1010
  return;
1011
- const v = _e(m), A = _e(l.clientWidth - (u + d)), w = _e(l.clientHeight - (m + f)), g = _e(u), S = {
1012
- rootMargin: -v + "px " + -A + "px " + -w + "px " + -g + "px",
1011
+ const v = _e(f), w = _e(l.clientWidth - (u + d)), x = _e(l.clientHeight - (f + p)), g = _e(u), k = {
1012
+ rootMargin: -v + "px " + -w + "px " + -x + "px " + -g + "px",
1013
1013
  threshold: $(0, he(1, c)) || 1
1014
1014
  };
1015
- let V = !0;
1016
- function D(W) {
1017
- const P = W[0].intersectionRatio;
1018
- if (P !== c) {
1019
- if (!V)
1015
+ let E = !0;
1016
+ function V(W) {
1017
+ const U = W[0].intersectionRatio;
1018
+ if (U !== c) {
1019
+ if (!E)
1020
1020
  return s();
1021
- P ? s(!1, P) : o = setTimeout(() => {
1021
+ U ? s(!1, U) : o = setTimeout(() => {
1022
1022
  s(!1, 1e-7);
1023
1023
  }, 1e3);
1024
1024
  }
1025
- P === 1 && !Tt(r, e.getBoundingClientRect()) && s(), V = !1;
1025
+ U === 1 && !Tt(r, e.getBoundingClientRect()) && s(), E = !1;
1026
1026
  }
1027
1027
  try {
1028
- n = new IntersectionObserver(D, {
1029
- ...S,
1028
+ n = new IntersectionObserver(V, {
1029
+ ...k,
1030
1030
  // Handle <iframe>s
1031
1031
  root: l.ownerDocument
1032
1032
  });
1033
1033
  } catch {
1034
- n = new IntersectionObserver(D, S);
1034
+ n = new IntersectionObserver(V, k);
1035
1035
  }
1036
1036
  n.observe(e);
1037
1037
  }
1038
1038
  return s(!0), i;
1039
1039
  }
1040
- function Pn(e, t, n, o) {
1040
+ function Un(e, t, n, o) {
1041
1041
  o === void 0 && (o = {});
1042
1042
  const {
1043
1043
  ancestorScroll: l = !0,
@@ -1051,31 +1051,31 @@ function Pn(e, t, n, o) {
1051
1051
  passive: !0
1052
1052
  }), i && g.addEventListener("resize", n);
1053
1053
  });
1054
- const m = r && a ? Nn(r, n) : null;
1055
- let d = -1, f = null;
1056
- s && (f = new ResizeObserver((g) => {
1054
+ const f = r && a ? Mn(r, n) : null;
1055
+ let d = -1, p = null;
1056
+ s && (p = new ResizeObserver((g) => {
1057
1057
  let [C] = g;
1058
- C && C.target === r && f && (f.unobserve(t), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
1059
- var S;
1060
- (S = f) == null || S.observe(t);
1058
+ C && C.target === r && p && (p.unobserve(t), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
1059
+ var k;
1060
+ (k = p) == null || k.observe(t);
1061
1061
  })), n();
1062
- }), r && !c && f.observe(r), f.observe(t));
1063
- let v, A = c ? de(e) : null;
1064
- c && w();
1065
- function w() {
1062
+ }), r && !c && p.observe(r), p.observe(t));
1063
+ let v, w = c ? de(e) : null;
1064
+ c && x();
1065
+ function x() {
1066
1066
  const g = de(e);
1067
- A && !Tt(A, g) && n(), A = g, v = requestAnimationFrame(w);
1067
+ w && !Tt(w, g) && n(), w = g, v = requestAnimationFrame(x);
1068
1068
  }
1069
1069
  return n(), () => {
1070
1070
  var g;
1071
1071
  u.forEach((C) => {
1072
1072
  l && C.removeEventListener("scroll", n), i && C.removeEventListener("resize", n);
1073
- }), m?.(), (g = f) == null || g.disconnect(), f = null, c && cancelAnimationFrame(v);
1073
+ }), f?.(), (g = p) == null || g.disconnect(), p = null, c && cancelAnimationFrame(v);
1074
1074
  };
1075
1075
  }
1076
- const Hn = dn, Qn = fn, Un = rn, $n = mn, Jn = (e, t, n) => {
1076
+ const Pn = dn, Hn = fn, Qn = rn, $n = pn, Jn = (e, t, n) => {
1077
1077
  const o = /* @__PURE__ */ new Map(), l = {
1078
- platform: Mn,
1078
+ platform: Fn,
1079
1079
  ...n
1080
1080
  }, i = {
1081
1081
  ...l.platform,
@@ -1087,7 +1087,7 @@ const Hn = dn, Qn = fn, Un = rn, $n = mn, Jn = (e, t, n) => {
1087
1087
  });
1088
1088
  };
1089
1089
  function Wn(e, t) {
1090
- const n = _({
1090
+ const n = T({
1091
1091
  position: "fixed",
1092
1092
  left: "0",
1093
1093
  top: "0",
@@ -1100,11 +1100,11 @@ function Wn(e, t) {
1100
1100
  placement: "bottom-start",
1101
1101
  strategy: "fixed",
1102
1102
  middleware: [
1103
- Hn(6),
1103
+ Pn(6),
1104
1104
  // 输入框与下拉列表的间距
1105
- Un(),
1105
+ Qn(),
1106
1106
  // 空间不足自动翻转到上方
1107
- Qn({ padding: 10 }),
1107
+ Hn({ padding: 10 }),
1108
1108
  // 靠近屏幕边缘时自动位移
1109
1109
  $n({
1110
1110
  apply({ rects: a, elements: c }) {
@@ -1125,13 +1125,13 @@ function Wn(e, t) {
1125
1125
  });
1126
1126
  });
1127
1127
  }, i = () => {
1128
- e.value && t.value && (o = Pn(e.value, t.value, l));
1128
+ e.value && t.value && (o = Un(e.value, t.value, l));
1129
1129
  }, s = () => {
1130
1130
  o && (o(), o = null);
1131
1131
  };
1132
1132
  return gt(s), { floatingStyles: n, startTrack: i, stopTrack: s };
1133
1133
  }
1134
- const Kn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACT0lEQVR4AaRSO2hTYRT+zn9v2g6CiktFJYoVHXQoOljM2EIEh0orbRKa5qUuDoIZAnXI4FBwcRDikMcNkoQMQjcVESo4OASsW2kLBi3oUKiD1OZx7/H811wJZFF6uOee85/H93/3nKtwQPkvgFKpdKRgVR+UrFrOsurX9N3/DJCvVPxMwx+lKcbgKzbstPhwAXSyWK7eLZZrc4VCNZDPPx/Tt+kCrTqvOrQqfuNr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9lAG9O3OmJ9J1C9ABVb1rgoF1PqA/Cokw3k7stgKDvZHwHXcUYqW+J1CacejlcXoi4SvFvD2lRdxAER0s3glirS5Gyr7+FwAA//8Pj6q2AAAABklEQVQDAJPeLlNn5TR8AAAAAElFTkSuQmCC", zn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABFUlEQVR4AaRQO07DQBCdWe8B4B5IFFyAK9ARkIVNhIQEEiVtJLgABRVRvIBCJBquwBVyDgoaSnuHeZY3MlYcNsnIb8fze6M3hra0XoKJm95N3Nv3EnyhFvb2EgjRJbOMKqmO2tDcvQ5fK+qvl4CJbOn9/CJPP9tArp5sHtP4lc652VXxPL1Z1hRFIOytF1NuTJCfnT4Ms8HjSgJctn1xIt6hxqIkdK+u8U8zT1ESmP5enUkWmqMkhG2FmxXOvR+EGD5KAhoDqsQvtiMXJQGNQJ4N8mF6PMd/wL8SxuOXPSG21pj9p+L1EOjGyAHoQQ0zWGDqx9pbPWIpwqOEkw+gGyMHoAc1ozOkVhOcZyepYndNpDpPvwAAAP//BVQJHAAAAAZJREFUAwDZWL4hub5xHQAAAABJRU5ErkJggg==", Je = "data:image/svg+xml,%3csvg%20t='1695277594902'%20fill='%23fff'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2534'%20width='200'%20height='200'%3e%3cpath%20d='M448%2085.333333a362.666667%20362.666667%200%201%200%20224.512%20647.509334l155.818667%20155.818666a42.666667%2042.666667%200%200%200%2060.330666-60.330666l-155.818666-155.818667A362.666667%20362.666667%200%200%200%20448%2085.333333zM170.666667%20448a277.333333%20277.333333%200%201%201%20554.666666%200%20277.333333%20277.333333%200%200%201-554.666666%200z'%20p-id='2535'%3e%3c/path%3e%3c/svg%3e", Xn = { class: "search-container" }, jn = { class: "selection-wrapper" }, Zn = { class: "tag-text" }, eo = ["onClick"], to = {
1134
+ const Kn = "data:image/png;base64,iVBORw0KGg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86bjMluCFDr+7OX1JoWQNJed/ipaK6Z6oOi2dbTZ85eVan+YYLBL7yBdRb9IXkha23aPPa8bQBrFoUVqo4qMMU5mOZ2JBKeo98RiwHi8xQ7Qo6vCsdb6e+//4ubgJegLzlmDOQ6i/XKCVQskZg9aaFtRrBGsYytQpQiu+SPOI5xQ2+kK6mQJRJHo8lko8MqxswGhceCzY25mMnLEmOf3Br6f2/BaLaTqhuSl6/xxPRQNDrJehBRrSWxABMaMnmsKfCN9eEfSZS9lAG9O3OmJ9J1C9ABVb1rgoF1PqA/Cokw3k7stgKDvZHwHXcUYqW+J1CacejlcXoi4SvFvD2lRdxAER0s3glirS5Gyr7+FwAA//8Pj6q2AAAABklEQVQDAJPeLlNn5TR8AAAAAElFTkSuQmCC", zn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABFUlEQVR4AaRQO07DQBCdWe8B4B5IFFyAK9ARkIVNhIQEEiVtJLgABRVRvIBCJBquwBVyDgoaSnuHeZY3MlYcNsnIb8fze6M3hra0XoKJm95N3Nv3EnyhFvb2EgjRJbOMKqmO2tDcvQ5fK+qvl4CJbOn9/CJPP9tArp5sHtP4lc652VXxPL1Z1hRFIOytF1NuTJCfnT4Ms8HjSgJctn1xIt6hxqIkdK+u8U8zT1ESmP5enUkWmqMkhG2FmxXOvR+EGD5KAhoDqsQvtiMXJQGNQJ4N8mF6PMd/wL8SxuOXPSG21pj9p+L1EOjGyAHoQQ0zWGDqx9pbPWIpwqOEkw+gGyMHoAc1ozOkVhOcZyepYndNpDpPvwAAAP//BVQJHAAAAAZJREFUAwDZWL4hub5xHQAAAABJRU5ErkJggg==", Je = "data:image/svg+xml,%3csvg%20t='1695277594902'%20fill='%23fff'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2534'%20width='200'%20height='200'%3e%3cpath%20d='M448%2085.333333a362.666667%20362.666667%200%201%200%20224.512%20647.509334l155.818667%20155.818666a42.666667%2042.666667%200%200%200%2060.330666-60.330666l-155.818666-155.818667A362.666667%20362.666667%200%200%200%20448%2085.333333zM170.666667%20448a277.333333%20277.333333%200%201%201%20554.666666%200%20277.333333%20277.333333%200%200%201-554.666666%200z'%20p-id='2535'%3e%3c/path%3e%3c/svg%3e", Xn = { class: "search-container" }, jn = { class: "selection-wrapper" }, Zn = { class: "tag-text" }, eo = ["onClick"], to = {
1135
1135
  key: 0,
1136
1136
  class: "search-tag collapse"
1137
1137
  }, no = ["placeholder"], oo = { class: "suffix-area" }, lo = {
@@ -1140,7 +1140,7 @@ const Kn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAA
1140
1140
  }, so = { class: "search-icon" }, io = ["src"], ao = {
1141
1141
  key: 0,
1142
1142
  class: "history-section"
1143
- }, ro = { class: "history-header" }, co = ["onMousedown"], uo = ["src"], fo = { class: "type-text" }, mo = { class: "result-text" }, po = {
1143
+ }, ro = { class: "history-header" }, co = ["onMousedown"], uo = ["src"], fo = { class: "type-text" }, po = { class: "result-text" }, mo = {
1144
1144
  key: 0,
1145
1145
  class: "status-msg"
1146
1146
  }, ho = ["onMousedown"], vo = ["src"], go = { class: "type-text" }, yo = { class: "result-text" }, Ao = {
@@ -1180,92 +1180,103 @@ const Kn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAA
1180
1180
  "remove"
1181
1181
  ],
1182
1182
  setup(e, { emit: t }) {
1183
- const n = e, o = t, l = _(null), i = _(null), s = _(null), a = _(""), c = _(""), r = _(!1), u = _(!1);
1184
- let m = null;
1185
- const d = N(() => n.modelValue ? Array.isArray(n.modelValue) ? n.modelValue : [n.modelValue] : []), f = N(() => n.multiple ? n.collapseTags ? d.value.slice(0, 1) : d.value : []), v = N(() => a.value || d.value.length > 0), A = N(() => n.multiple ? a.value ? `${a.value.length * 10 + 20}px` : "10px" : "100%"), { searchHistory: w, saveToHistory: g, clearHistory: C } = Wt(
1186
- Pe(n, "historyKey")
1183
+ const n = e, o = t, l = T(null), i = T(null), s = T(null), a = T(""), c = T(""), r = T(!1), u = T(!1);
1184
+ let f = null;
1185
+ const d = M(() => n.modelValue ? Array.isArray(n.modelValue) ? n.modelValue : [n.modelValue] : []), p = M(() => n.multiple ? n.collapseTags ? d.value.slice(0, 1) : d.value : []), v = M(() => a.value || d.value.length > 0), w = M(() => n.multiple ? a.value ? `${a.value.length * 10 + 20}px` : "10px" : "100%"), { searchHistory: x, saveToHistory: g, clearHistory: C } = Wt(
1186
+ Ue(n, "historyKey")
1187
1187
  ), {
1188
- searchResults: S,
1189
- loading: V,
1190
- isFetchingMore: D,
1188
+ searchResults: k,
1189
+ loading: E,
1190
+ isFetchingMore: V,
1191
1191
  isFinished: W,
1192
- currentPage: P,
1193
- fetchData: U,
1192
+ currentPage: U,
1193
+ fetchData: Q,
1194
1194
  filterByTypes: K
1195
- } = qt(a, Pe(n, "searchTypeList")), { floatingStyles: H, startTrack: ee, stopTrack: z } = Wn(
1195
+ } = Gt(a, Ue(n, "searchTypeList")), { floatingStyles: P, startTrack: ee, stopTrack: z } = Wn(
1196
1196
  i,
1197
1197
  s
1198
- ), M = N(() => {
1199
- if (n.lang !== "")
1198
+ ), F = M(() => {
1199
+ if (n.lang)
1200
1200
  return n.lang === "en" || n.lang === "en-US";
1201
- let x = "";
1202
1201
  try {
1203
1202
  if (typeof useCookie == "function") {
1204
- const E = useCookie("jc-language").value;
1205
- if (E) return /en/.test(E) || /en-US/.test(E);
1203
+ const y = useCookie("jc-language")?.value;
1204
+ if (y)
1205
+ return /^en(-US)?$/.test(y);
1206
1206
  }
1207
1207
  } catch {
1208
1208
  }
1209
- return typeof process < "u" && process.client ? x = document.cookie || "" : typeof process < "u" && process.server && (x = useNuxtApp?.()?.ssrContext?.event.node.req.headers.cookie || ""), /jc-language=en-US/.test(x) || /jc-language=en/.test(x);
1210
- }), G = N(() => n.multiple && d.value.length > 0 ? "" : r.value && !n.multiple ? c.value : n.placeholder || M.value ? "Please enter..." : "请输入..."), ae = () => l.value?.focus(), T = (x) => {
1211
- if (g(x), n.multiple) {
1212
- if (!d.value.some((B) => B.id === x.id)) {
1213
- const B = [...d.value, x];
1214
- o("update:modelValue", B);
1209
+ if (typeof document < "u") {
1210
+ const y = document.cookie || "";
1211
+ return /(^|;\s*)jc-language=en(-US)?(;|$)/.test(y);
1212
+ }
1213
+ try {
1214
+ if (typeof useNuxtApp == "function") {
1215
+ const L = useNuxtApp()?.ssrContext?.event?.node?.req?.headers?.cookie || "";
1216
+ return /(^|;\s*)jc-language=en(-US)?(;|$)/.test(L);
1217
+ }
1218
+ } catch {
1219
+ }
1220
+ return !1;
1221
+ }), q = M(() => n.multiple && d.value.length > 0 ? "" : r.value && !n.multiple ? c.value : n.placeholder || F.value ? "Please enter..." : "请输入..."), ae = () => l.value?.focus(), S = (y) => {
1222
+ if (g(y), n.multiple) {
1223
+ if (!d.value.some((D) => D.id === y.id)) {
1224
+ const D = [...d.value, y];
1225
+ o("update:modelValue", D);
1215
1226
  }
1216
1227
  a.value = "";
1217
1228
  } else
1218
- c.value = ke(x), r.value = !0, a.value = "", u.value = !1, o("update:modelValue", x);
1219
- o("select", x);
1220
- }, O = (x) => {
1221
- const E = d.value.filter((B) => B.id !== x.id);
1222
- o("update:modelValue", E), o("remove", x);
1223
- }, R = () => {
1224
- n.multiple && !a.value && d.value.length > 0 && O(
1229
+ c.value = ke(y), r.value = !0, a.value = "", u.value = !1, o("update:modelValue", y);
1230
+ o("select", y);
1231
+ }, _ = (y) => {
1232
+ const L = d.value.filter((D) => D.id !== y.id);
1233
+ o("update:modelValue", L), o("remove", y);
1234
+ }, O = () => {
1235
+ n.multiple && !a.value && d.value.length > 0 && _(
1225
1236
  d.value[d.value.length - 1]
1226
1237
  );
1227
- }, Q = () => {
1238
+ }, H = () => {
1228
1239
  a.value = "", r.value = !1, c.value = "", o("update:modelValue", n.multiple ? [] : null);
1229
1240
  }, ye = async () => {
1230
- if (u.value = !0, !n.multiple && r.value && S.value.length === 0) {
1231
- const x = n.modelValue;
1232
- if (x?.id) {
1233
- V.value = !0;
1241
+ if (u.value = !0, !n.multiple && r.value && k.value.length === 0) {
1242
+ const y = n.modelValue;
1243
+ if (y?.id) {
1244
+ E.value = !0;
1234
1245
  try {
1235
- const E = await Gt(
1236
- x.id,
1237
- x.type
1246
+ const L = await qt(
1247
+ y.id,
1248
+ y.type
1238
1249
  );
1239
- S.value = K(E.records);
1250
+ k.value = K(L.records);
1240
1251
  } finally {
1241
- V.value = !1;
1252
+ E.value = !1;
1242
1253
  }
1243
1254
  }
1244
1255
  }
1245
- }, Vt = () => setTimeout(() => u.value = !1, 200), Dt = (x) => {
1246
- x.target.value === "" && !n.multiple && Q();
1256
+ }, Vt = () => setTimeout(() => u.value = !1, 200), Dt = (y) => {
1257
+ y.target.value === "" && !n.multiple && H();
1247
1258
  }, Bt = () => {
1248
1259
  n.multiple ? o("submit-search", d.value) : r.value && o("submit-search", n.modelValue), u.value = !1;
1249
- }, Lt = (x) => {
1250
- const { scrollTop: E, scrollHeight: B, clientHeight: re } = x.target;
1251
- E + re >= B - 20 && !V.value && !D.value && !W.value && a.value && U(P.value + 1, !0);
1260
+ }, Lt = (y) => {
1261
+ const { scrollTop: L, scrollHeight: D, clientHeight: re } = y.target;
1262
+ L + re >= D - 20 && !E.value && !V.value && !W.value && a.value && Q(U.value + 1, !0);
1252
1263
  };
1253
- He(u, (x) => {
1254
- x ? ee() : z();
1255
- }), He(a, (x) => {
1256
- if (!x.trim()) {
1257
- S.value = [];
1264
+ Pe(u, (y) => {
1265
+ y ? ee() : z();
1266
+ }), Pe(a, (y) => {
1267
+ if (!y.trim()) {
1268
+ k.value = [];
1258
1269
  return;
1259
1270
  }
1260
- m && clearTimeout(m), m = setTimeout(() => U(1, !1), 300);
1271
+ f && clearTimeout(f), f = setTimeout(() => Q(1, !1), 300);
1261
1272
  });
1262
- const nt = (x) => ({
1273
+ const nt = (y) => ({
1263
1274
  City: zn,
1264
1275
  Country: Yn,
1265
1276
  Airport: Kn,
1266
- Seaport: qn
1267
- })[x] || Gn, ke = (x) => M.value ? x.displayEn || x.display || "" : x.displayCn || x.display || "", ot = (x) => {
1268
- const E = {
1277
+ Seaport: Gn
1278
+ })[y] || qn, ke = (y) => F.value ? y.displayEn || y.display || "" : y.displayCn || y.display || "", ot = (y) => {
1279
+ const L = {
1269
1280
  City: {
1270
1281
  en: "City",
1271
1282
  cn: "城市"
@@ -1287,142 +1298,142 @@ const Kn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAA
1287
1298
  cn: "港口"
1288
1299
  }
1289
1300
  };
1290
- return M.value ? E[x].en : E[x].cn;
1291
- }, It = (x) => d.value.some((E) => E.id === x.id);
1292
- return gt(z), (x, E) => (y(), b("div", Xn, [
1293
- p("div", {
1301
+ return F.value ? L[y].en : L[y].cn;
1302
+ }, Nt = (y) => d.value.some((L) => L.id === y.id);
1303
+ return gt(z), (y, L) => (A(), b("div", Xn, [
1304
+ m("div", {
1294
1305
  class: le(["search-input-wrapper", { "is-multiple": e.multiple }]),
1295
1306
  ref_key: "referenceRef",
1296
1307
  ref: i,
1297
1308
  onClick: ae
1298
1309
  }, [
1299
- p("div", jn, [
1300
- e.multiple && d.value.length > 0 ? (y(), b(ne, { key: 0 }, [
1301
- (y(!0), b(ne, null, me(f.value, (B, re) => (y(), b("div", {
1302
- key: B.id || re,
1310
+ m("div", jn, [
1311
+ e.multiple && d.value.length > 0 ? (A(), b(ne, { key: 0 }, [
1312
+ (A(!0), b(ne, null, pe(p.value, (D, re) => (A(), b("div", {
1313
+ key: D.id || re,
1303
1314
  class: "search-tag"
1304
1315
  }, [
1305
- p("span", Zn, k(ke(B)), 1),
1306
- p("span", {
1316
+ m("span", Zn, R(ke(D)), 1),
1317
+ m("span", {
1307
1318
  class: "tag-close",
1308
- onClick: te((lt) => O(B), ["stop"])
1319
+ onClick: te((lt) => _(D), ["stop"])
1309
1320
  }, "×", 8, eo)
1310
1321
  ]))), 128)),
1311
- e.collapseTags && d.value.length > 1 ? (y(), b("div", to, " + " + k(d.value.length - 1), 1)) : F("", !0)
1312
- ], 64)) : F("", !0),
1313
- Oe(p("input", {
1322
+ e.collapseTags && d.value.length > 1 ? (A(), b("div", to, " + " + R(d.value.length - 1), 1)) : I("", !0)
1323
+ ], 64)) : I("", !0),
1324
+ Oe(m("input", {
1314
1325
  ref_key: "inputRef",
1315
1326
  ref: l,
1316
1327
  class: le({ "is-selected-state": r.value && !e.multiple }),
1317
- "onUpdate:modelValue": E[0] || (E[0] = (B) => a.value = B),
1328
+ "onUpdate:modelValue": L[0] || (L[0] = (D) => a.value = D),
1318
1329
  type: "text",
1319
- placeholder: G.value,
1320
- style: Re({ width: A.value }),
1330
+ placeholder: q.value,
1331
+ style: Re({ width: w.value }),
1321
1332
  onFocus: ye,
1322
1333
  onBlur: Vt,
1323
1334
  onInput: Dt,
1324
- onKeydown: Ft(R, ["delete"])
1335
+ onKeydown: It(O, ["delete"])
1325
1336
  }, null, 46, no), [
1326
- [qe, a.value]
1337
+ [Ge, a.value]
1327
1338
  ])
1328
1339
  ]),
1329
- p("div", oo, [
1330
- v.value ? (y(), b("span", {
1340
+ m("div", oo, [
1341
+ v.value ? (A(), b("span", {
1331
1342
  key: 0,
1332
1343
  class: "clear-icon",
1333
- onMousedown: E[1] || (E[1] = te(() => {
1344
+ onMousedown: L[1] || (L[1] = te(() => {
1334
1345
  }, ["prevent"])),
1335
- onClick: te(Q, ["stop"])
1336
- }, "ⓧ", 32)) : F("", !0),
1337
- h(V) && !h(D) ? (y(), b("div", lo)) : !h(V) && e.showSearchIcon ? (y(), b("button", {
1346
+ onClick: te(H, ["stop"])
1347
+ }, "ⓧ", 32)) : I("", !0),
1348
+ h(E) && !h(V) ? (A(), b("div", lo)) : !h(E) && e.showSearchIcon ? (A(), b("button", {
1338
1349
  key: 2,
1339
1350
  class: "search-btn",
1340
1351
  onClick: te(Bt, ["stop"])
1341
1352
  }, [
1342
- p("span", so, [
1343
- p("img", {
1353
+ m("span", so, [
1354
+ m("img", {
1344
1355
  src: h(Je),
1345
1356
  alt: "search"
1346
1357
  }, null, 8, io)
1347
1358
  ])
1348
- ])) : F("", !0)
1359
+ ])) : I("", !0)
1349
1360
  ])
1350
1361
  ], 2),
1351
- (y(), Ge(yt, { to: "body" }, [
1352
- Oe(p("div", {
1362
+ (A(), qe(yt, { to: "body" }, [
1363
+ Oe(m("div", {
1353
1364
  ref_key: "floatingRef",
1354
1365
  ref: s,
1355
1366
  class: "dropdown-list",
1356
- style: Re(h(H)),
1367
+ style: Re(h(P)),
1357
1368
  onScroll: Lt
1358
1369
  }, [
1359
- Fe(x.$slots, "history", { searchHistory: h(w) }, () => [
1360
- h(w).length > 0 && !a.value ? (y(), b("div", ao, [
1361
- p("div", ro, [
1362
- p("span", null, k(M.value ? "Recent search" : "最近搜索"), 1),
1363
- p("span", {
1370
+ Ie(y.$slots, "history", { searchHistory: h(x) }, () => [
1371
+ h(x).length > 0 && !a.value ? (A(), b("div", ao, [
1372
+ m("div", ro, [
1373
+ m("span", null, R(F.value ? "Recent search" : "最近搜索"), 1),
1374
+ m("span", {
1364
1375
  class: "clear-btn",
1365
- onMousedown: E[2] || (E[2] = te(() => {
1376
+ onMousedown: L[2] || (L[2] = te(() => {
1366
1377
  }, ["prevent"])),
1367
- onClick: E[3] || (E[3] = te(
1378
+ onClick: L[3] || (L[3] = te(
1368
1379
  //@ts-ignore
1369
- (...B) => h(C) && h(C)(...B),
1380
+ (...D) => h(C) && h(C)(...D),
1370
1381
  ["stop"]
1371
1382
  ))
1372
- }, k(M.value ? "Clear" : "清空"), 33)
1383
+ }, R(F.value ? "Clear" : "清空"), 33)
1373
1384
  ]),
1374
- (y(!0), b(ne, null, me(h(w), (B, re) => (y(), b("div", {
1385
+ (A(!0), b(ne, null, pe(h(x), (D, re) => (A(), b("div", {
1375
1386
  key: "hist-" + re,
1376
1387
  class: "dropdown-item",
1377
- onMousedown: (lt) => T(B)
1388
+ onMousedown: (lt) => S(D)
1378
1389
  }, [
1379
- p("div", {
1390
+ m("div", {
1380
1391
  class: "category-tag",
1381
1392
  style: Re(e.showItemTag ? {} : { display: "none" })
1382
1393
  }, [
1383
- p("img", {
1394
+ m("img", {
1384
1395
  class: "type-icon",
1385
- src: nt(B.type),
1396
+ src: nt(D.type),
1386
1397
  alt: ""
1387
1398
  }, null, 8, uo),
1388
- p("span", fo, k(ot(B.type)), 1)
1399
+ m("span", fo, R(ot(D.type)), 1)
1389
1400
  ], 4),
1390
- p("div", mo, k(ke(B)), 1)
1401
+ m("div", po, R(ke(D)), 1)
1391
1402
  ], 40, co))), 128)),
1392
- E[4] || (E[4] = p("hr", { class: "divider" }, null, -1))
1393
- ])) : F("", !0)
1403
+ L[4] || (L[4] = m("hr", { class: "divider" }, null, -1))
1404
+ ])) : I("", !0)
1394
1405
  ], !0),
1395
- h(V) && !h(D) ? (y(), b("div", po, k(M.value ? "Searching..." : "正在搜索中..."), 1)) : h(S).length > 0 ? (y(), b(ne, { key: 1 }, [
1396
- Fe(x.$slots, "results", { searchResults: h(S) }, () => [
1397
- (y(!0), b(ne, null, me(h(S), (B, re) => (y(), b("div", {
1406
+ h(E) && !h(V) ? (A(), b("div", mo, R(F.value ? "Searching..." : "正在搜索中..."), 1)) : h(k).length > 0 ? (A(), b(ne, { key: 1 }, [
1407
+ Ie(y.$slots, "results", { searchResults: h(k) }, () => [
1408
+ (A(!0), b(ne, null, pe(h(k), (D, re) => (A(), b("div", {
1398
1409
  key: re,
1399
- class: le(["dropdown-item", { "is-active": It(B) }]),
1400
- onMousedown: (lt) => T(B)
1410
+ class: le(["dropdown-item", { "is-active": Nt(D) }]),
1411
+ onMousedown: (lt) => S(D)
1401
1412
  }, [
1402
- p("div", {
1413
+ m("div", {
1403
1414
  class: "category-tag",
1404
1415
  style: Re(e.showItemTag ? {} : { display: "none" })
1405
1416
  }, [
1406
- p("img", {
1417
+ m("img", {
1407
1418
  class: "type-icon",
1408
- src: nt(B.type),
1419
+ src: nt(D.type),
1409
1420
  alt: ""
1410
1421
  }, null, 8, vo),
1411
- p("span", go, k(ot(B.type)), 1)
1422
+ m("span", go, R(ot(D.type)), 1)
1412
1423
  ], 4),
1413
- p("div", yo, k(ke(B)), 1)
1424
+ m("div", yo, R(ke(D)), 1)
1414
1425
  ], 42, ho))), 128))
1415
1426
  ], !0),
1416
- h(D) ? (y(), b("div", Ao, k(M.value ? "Loading more..." : "正在加载更多..."), 1)) : h(W) && a.value ? (y(), b("div", wo, k(M.value ? "All results have been loaded" : "已加载全部结果"), 1)) : F("", !0)
1417
- ], 64)) : a.value && !h(V) ? (y(), b("div", xo, [
1418
- Fe(x.$slots, "noData", {}, () => [
1419
- Ye(k(M.value ? `No results found related to "${a.value}".` : `未找到与 "${a.value}" 相关的结果`), 1)
1427
+ h(V) ? (A(), b("div", Ao, R(F.value ? "Loading more..." : "正在加载更多..."), 1)) : h(W) && a.value ? (A(), b("div", wo, R(F.value ? "All results have been loaded" : "已加载全部结果"), 1)) : I("", !0)
1428
+ ], 64)) : a.value && !h(E) ? (A(), b("div", xo, [
1429
+ Ie(y.$slots, "noData", {}, () => [
1430
+ Ye(R(F.value ? `No results found related to "${a.value}".` : `未找到与 "${a.value}" 相关的结果`), 1)
1420
1431
  ], !0)
1421
- ])) : F("", !0)
1432
+ ])) : I("", !0)
1422
1433
  ], 36), [
1423
1434
  [
1424
- Mt,
1425
- u.value && (h(S).length > 0 || h(V) || a.value || h(w).length > 0)
1435
+ Ft,
1436
+ u.value && (h(k).length > 0 || h(E) || a.value || h(x).length > 0)
1426
1437
  ]
1427
1438
  ])
1428
1439
  ]))
@@ -1433,16 +1444,16 @@ const Kn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAA
1433
1444
  for (const [o, l] of t)
1434
1445
  n[o] = l;
1435
1446
  return n;
1436
- }, Et = /* @__PURE__ */ tt(bo, [["__scopeId", "data-v-e158c7a1"]]), Co = { class: "modal-container" }, So = { class: "modal-header" }, ko = { class: "header-title" }, Ro = { class: "modal-body" }, _o = { class: "form-item" }, Oo = { class: "required" }, To = { class: "input-box" }, Eo = ["placeholder"], Vo = {
1447
+ }, Et = /* @__PURE__ */ tt(bo, [["__scopeId", "data-v-53dd1a92"]]), Co = { class: "modal-container" }, So = { class: "modal-header" }, ko = { class: "header-title" }, Ro = { class: "modal-body" }, _o = { class: "form-item" }, Oo = { class: "required" }, To = { class: "input-box" }, Eo = ["placeholder"], Vo = {
1437
1448
  key: 0,
1438
1449
  class: "error-message"
1439
- }, Do = { class: "form-item" }, Bo = { class: "required" }, Lo = { class: "type-group" }, Io = ["onClick"], Fo = {
1450
+ }, Do = { class: "form-item" }, Bo = { class: "required" }, Lo = { class: "type-group" }, No = ["onClick"], Io = {
1440
1451
  key: 0,
1441
1452
  class: "check-mark"
1442
- }, Mo = { class: "form-item" }, No = { class: "required" }, Po = {
1453
+ }, Fo = { class: "form-item" }, Mo = { class: "required" }, Uo = {
1443
1454
  key: 0,
1444
1455
  class: "error-message"
1445
- }, Ho = { class: "modal-footer" }, Qo = {
1456
+ }, Po = { class: "modal-footer" }, Ho = {
1446
1457
  __name: "ApplyDataDialog",
1447
1458
  props: {
1448
1459
  // v-model 绑定,默认 false
@@ -1455,7 +1466,7 @@ const Kn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAA
1455
1466
  type: String,
1456
1467
  default: "en",
1457
1468
  // 增加校验,确保只能传入 'en' 或 'cn'
1458
- validator: (e) => ["en", "cn"].includes(e)
1469
+ validator: (e) => ["en", "en-US", "zh-CN", "cn"].includes(e)
1459
1470
  },
1460
1471
  placeholder: {
1461
1472
  type: String,
@@ -1468,101 +1479,124 @@ const Kn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAA
1468
1479
  { typeCn: "城市", typeEn: "City", type: "City" },
1469
1480
  { typeCn: "海运港口", typeEn: "Port", type: "Seaport" },
1470
1481
  { typeCn: "机场", typeEn: "Airport", type: "Airport" }
1471
- ], i = _(null), s = Qe({
1482
+ ], i = T(null), s = He({
1472
1483
  name: "",
1473
1484
  country: ""
1474
- }), a = Qe({
1485
+ }), a = He({
1475
1486
  name: "",
1476
1487
  type: "City"
1477
- }), c = N(() => n.lang === "en" || n.lang === "en-US"), r = () => {
1488
+ }), c = M(() => {
1489
+ if (n.lang)
1490
+ return n.lang === "en" || n.lang === "en-US";
1491
+ try {
1492
+ if (typeof useCookie == "function") {
1493
+ const f = useCookie("jc-language")?.value;
1494
+ if (f)
1495
+ return /^en(-US)?$/.test(f);
1496
+ }
1497
+ } catch {
1498
+ }
1499
+ if (typeof document < "u") {
1500
+ const f = document.cookie || "";
1501
+ return /(^|;\s*)jc-language=en(-US)?(;|$)/.test(f);
1502
+ }
1503
+ try {
1504
+ if (typeof useNuxtApp == "function") {
1505
+ const d = useNuxtApp()?.ssrContext?.event?.node?.req?.headers?.cookie || "";
1506
+ return /(^|;\s*)jc-language=en(-US)?(;|$)/.test(d);
1507
+ }
1508
+ } catch {
1509
+ }
1510
+ return !1;
1511
+ }), r = () => {
1478
1512
  s.name = "", s.country = "", o("update:value", !1);
1479
1513
  }, u = () => {
1480
1514
  s.name = "", s.country = "";
1481
- let m = !0;
1482
- a.name.trim() || (s.name = "Data name is required", m = !1), i.value || (s.country = "Please select a country", m = !1), m && o("confirm", { ...a, country: i.value });
1515
+ let f = !0;
1516
+ a.name.trim() || (s.name = "Data name is required", f = !1), i.value || (s.country = "Please select a country", f = !1), f && o("confirm", { ...a, country: i.value });
1483
1517
  };
1484
- return (m, d) => e.value ? (y(), b("div", {
1518
+ return (f, d) => e.value ? (A(), b("div", {
1485
1519
  key: 0,
1486
1520
  class: "modal-mask",
1487
1521
  onClick: te(r, ["self"])
1488
1522
  }, [
1489
- p("div", Co, [
1490
- p("div", So, [
1491
- p("span", ko, k(c.value ? "Apply for data addition" : "申请补充数据"), 1),
1492
- p("div", {
1523
+ m("div", Co, [
1524
+ m("div", So, [
1525
+ m("span", ko, R(c.value ? "Apply for data addition" : "申请补充数据"), 1),
1526
+ m("div", {
1493
1527
  class: "close-btn",
1494
1528
  onClick: r
1495
1529
  }, "×")
1496
1530
  ]),
1497
- p("div", Ro, [
1498
- p("div", _o, [
1499
- p("label", Oo, k(c.value ? "Data To Add" : "需补充的数据"), 1),
1500
- p("div", To, [
1501
- Oe(p("input", {
1502
- "onUpdate:modelValue": d[0] || (d[0] = (f) => a.name = f),
1531
+ m("div", Ro, [
1532
+ m("div", _o, [
1533
+ m("label", Oo, R(c.value ? "Data To Add" : "需补充的数据"), 1),
1534
+ m("div", To, [
1535
+ Oe(m("input", {
1536
+ "onUpdate:modelValue": d[0] || (d[0] = (p) => a.name = p),
1503
1537
  type: "text",
1504
1538
  placeholder: e.placeholder ?? (c.value ? " Please enter" : "请输入"),
1505
1539
  class: le(["custom-input", { "input-error": s.name }]),
1506
- onInput: d[1] || (d[1] = (f) => s.name = "")
1540
+ onInput: d[1] || (d[1] = (p) => s.name = "")
1507
1541
  }, null, 42, Eo), [
1508
- [qe, a.name]
1542
+ [Ge, a.name]
1509
1543
  ])
1510
1544
  ]),
1511
- s.name ? (y(), b("div", Vo, k(s.name), 1)) : F("", !0)
1545
+ s.name ? (A(), b("div", Vo, R(s.name), 1)) : I("", !0)
1512
1546
  ]),
1513
- p("div", Do, [
1514
- p("label", Bo, k(c.value ? "Type" : "所属类别"), 1),
1515
- p("div", Lo, [
1516
- (y(), b(ne, null, me(l, (f) => p("div", {
1517
- key: f.type,
1518
- class: le(["type-btn", { active: a.type === f.type }]),
1519
- onClick: (v) => a.type = f.type
1547
+ m("div", Do, [
1548
+ m("label", Bo, R(c.value ? "Type" : "所属类别"), 1),
1549
+ m("div", Lo, [
1550
+ (A(), b(ne, null, pe(l, (p) => m("div", {
1551
+ key: p.type,
1552
+ class: le(["type-btn", { active: a.type === p.type }]),
1553
+ onClick: (v) => a.type = p.type
1520
1554
  }, [
1521
- Ye(k(c.value ? f.typeEn : f.typeCn) + " ", 1),
1522
- a.type === f.type ? (y(), b("div", Fo)) : F("", !0)
1523
- ], 10, Io)), 64))
1555
+ Ye(R(c.value ? p.typeEn : p.typeCn) + " ", 1),
1556
+ a.type === p.type ? (A(), b("div", Io)) : I("", !0)
1557
+ ], 10, No)), 64))
1524
1558
  ])
1525
1559
  ]),
1526
- p("div", Mo, [
1527
- p("label", No, k(c.value ? "Country" : "国家"), 1),
1528
- p("div", {
1560
+ m("div", Fo, [
1561
+ m("label", Mo, R(c.value ? "Country" : "国家"), 1),
1562
+ m("div", {
1529
1563
  class: le({ "search-error-wrap": s.country })
1530
1564
  }, [
1531
- L(Et, {
1565
+ B(Et, {
1532
1566
  "search-type-list": ["Country"],
1533
1567
  "model-value": i.value,
1534
1568
  "onUpdate:modelValue": [
1535
- d[2] || (d[2] = (f) => i.value = f),
1536
- d[3] || (d[3] = (f) => s.country = "")
1569
+ d[2] || (d[2] = (p) => i.value = p),
1570
+ d[3] || (d[3] = (p) => s.country = "")
1537
1571
  ],
1538
1572
  style: { margin: "0 auto" },
1539
1573
  lang: e.lang,
1540
1574
  placeholder: e.placeholder ?? (c.value ? " Please enter" : "请输入")
1541
1575
  }, null, 8, ["model-value", "lang", "placeholder"])
1542
1576
  ], 2),
1543
- s.country ? (y(), b("div", Po, k(s.country), 1)) : F("", !0)
1577
+ s.country ? (A(), b("div", Uo, R(s.country), 1)) : I("", !0)
1544
1578
  ])
1545
1579
  ]),
1546
- p("div", Ho, [
1547
- p("button", {
1580
+ m("div", Po, [
1581
+ m("button", {
1548
1582
  class: "confirm-btn",
1549
1583
  onClick: u
1550
- }, k(c.value ? "Submit" : "申请补充"), 1)
1584
+ }, R(c.value ? "Submit" : "申请补充"), 1)
1551
1585
  ])
1552
1586
  ])
1553
- ])) : F("", !0);
1587
+ ])) : I("", !0);
1554
1588
  }
1555
- }, Uo = /* @__PURE__ */ tt(Qo, [["__scopeId", "data-v-257bbed9"]]), $o = { class: "global-modal-header-custom" }, Jo = { class: "global-modal-body-custom" }, Wo = { class: "global-modal-footer-custom" }, Ko = /* @__PURE__ */ Ke({
1589
+ }, Qo = /* @__PURE__ */ tt(Ho, [["__scopeId", "data-v-9c778fb9"]]), $o = { class: "global-modal-header-custom" }, Jo = { class: "global-modal-body-custom" }, Wo = { class: "global-modal-footer-custom" }, Ko = /* @__PURE__ */ Ke({
1556
1590
  __name: "GlobalModal",
1557
1591
  setup(e) {
1558
- const t = _(), n = _(!1), o = _({
1592
+ const t = T(), n = T(!1), o = T({
1559
1593
  city: "",
1560
1594
  company: "",
1561
1595
  email: "",
1562
1596
  phone: "",
1563
1597
  name: "",
1564
1598
  agreement: !1
1565
- }), l = Qe({
1599
+ }), l = He({
1566
1600
  city: [{ required: !0, message: "请输入所在地城市", trigger: "blur" }],
1567
1601
  company: [{ required: !0, message: "请输入公司名称", trigger: "blur" }],
1568
1602
  email: [
@@ -1595,9 +1629,9 @@ const Kn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAA
1595
1629
  };
1596
1630
  return We(() => {
1597
1631
  ce.on(ue.Open, a);
1598
- }), Nt(() => {
1632
+ }), Mt(() => {
1599
1633
  ce.off(ue.Open, a);
1600
- }), (c, r) => (y(), Ge(h(Ut), {
1634
+ }), (c, r) => (A(), qe(h(Qt), {
1601
1635
  modelValue: n.value,
1602
1636
  "onUpdate:modelValue": r[7] || (r[7] = (u) => n.value = u),
1603
1637
  "before-close": i,
@@ -1606,39 +1640,39 @@ const Kn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAA
1606
1640
  width: 500,
1607
1641
  class: "global-modal-custom"
1608
1642
  }, {
1609
- header: I(() => [
1610
- p("div", $o, [
1611
- r[9] || (r[9] = p("h2", null, "即刻链接全球货代", -1)),
1612
- L(h(it), {
1643
+ header: N(() => [
1644
+ m("div", $o, [
1645
+ r[9] || (r[9] = m("h2", null, "即刻链接全球货代", -1)),
1646
+ B(h(it), {
1613
1647
  link: "",
1614
1648
  onClick: i,
1615
1649
  class: "close-button-custom",
1616
1650
  "aria-label": "Close"
1617
1651
  }, {
1618
- default: I(() => [...r[8] || (r[8] = [
1619
- p("span", { style: { "font-size": "2rem" } }, "×", -1)
1652
+ default: N(() => [...r[8] || (r[8] = [
1653
+ m("span", { style: { "font-size": "2rem" } }, "×", -1)
1620
1654
  ])]),
1621
1655
  _: 1
1622
1656
  })
1623
1657
  ])
1624
1658
  ]),
1625
- footer: I(() => [
1626
- p("div", Wo, [
1627
- L(h(it), {
1659
+ footer: N(() => [
1660
+ m("div", Wo, [
1661
+ B(h(it), {
1628
1662
  type: "primary",
1629
1663
  class: "submit-button-custom",
1630
1664
  onClick: s
1631
1665
  }, {
1632
- default: I(() => [...r[11] || (r[11] = [
1666
+ default: N(() => [...r[11] || (r[11] = [
1633
1667
  Ye(" 加入会员 ", -1)
1634
1668
  ])]),
1635
1669
  _: 1
1636
1670
  })
1637
1671
  ])
1638
1672
  ]),
1639
- default: I(() => [
1640
- p("div", Jo, [
1641
- L(h($t), {
1673
+ default: N(() => [
1674
+ m("div", Jo, [
1675
+ B(h($t), {
1642
1676
  model: o.value,
1643
1677
  rules: l,
1644
1678
  ref_key: "formRef",
@@ -1647,17 +1681,17 @@ const Kn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAA
1647
1681
  onSubmit: r[6] || (r[6] = te(() => {
1648
1682
  }, ["prevent"]))
1649
1683
  }, {
1650
- default: I(() => [
1651
- L(h(Me), { gutter: 20 }, {
1652
- default: I(() => [
1653
- L(h(Ae), { span: 12 }, {
1654
- default: I(() => [
1655
- L(h(fe), {
1684
+ default: N(() => [
1685
+ B(h(Fe), { gutter: 20 }, {
1686
+ default: N(() => [
1687
+ B(h(Ae), { span: 12 }, {
1688
+ default: N(() => [
1689
+ B(h(fe), {
1656
1690
  label: "所在地(城市)",
1657
1691
  prop: "city"
1658
1692
  }, {
1659
- default: I(() => [
1660
- L(h(we), {
1693
+ default: N(() => [
1694
+ B(h(we), {
1661
1695
  modelValue: o.value.city,
1662
1696
  "onUpdate:modelValue": r[0] || (r[0] = (u) => o.value.city = u),
1663
1697
  placeholder: "请输入城市"
@@ -1668,14 +1702,14 @@ const Kn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAA
1668
1702
  ]),
1669
1703
  _: 1
1670
1704
  }),
1671
- L(h(Ae), { span: 12 }, {
1672
- default: I(() => [
1673
- L(h(fe), {
1705
+ B(h(Ae), { span: 12 }, {
1706
+ default: N(() => [
1707
+ B(h(fe), {
1674
1708
  label: "公司名称",
1675
1709
  prop: "company"
1676
1710
  }, {
1677
- default: I(() => [
1678
- L(h(we), {
1711
+ default: N(() => [
1712
+ B(h(we), {
1679
1713
  modelValue: o.value.company,
1680
1714
  "onUpdate:modelValue": r[1] || (r[1] = (u) => o.value.company = u),
1681
1715
  placeholder: "请输入公司名称"
@@ -1689,16 +1723,16 @@ const Kn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAA
1689
1723
  ]),
1690
1724
  _: 1
1691
1725
  }),
1692
- L(h(Me), { gutter: 20 }, {
1693
- default: I(() => [
1694
- L(h(Ae), { span: 12 }, {
1695
- default: I(() => [
1696
- L(h(fe), {
1726
+ B(h(Fe), { gutter: 20 }, {
1727
+ default: N(() => [
1728
+ B(h(Ae), { span: 12 }, {
1729
+ default: N(() => [
1730
+ B(h(fe), {
1697
1731
  label: "邮箱",
1698
1732
  prop: "email"
1699
1733
  }, {
1700
- default: I(() => [
1701
- L(h(we), {
1734
+ default: N(() => [
1735
+ B(h(we), {
1702
1736
  modelValue: o.value.email,
1703
1737
  "onUpdate:modelValue": r[2] || (r[2] = (u) => o.value.email = u),
1704
1738
  placeholder: "请输入邮箱"
@@ -1709,14 +1743,14 @@ const Kn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAA
1709
1743
  ]),
1710
1744
  _: 1
1711
1745
  }),
1712
- L(h(Ae), { span: 12 }, {
1713
- default: I(() => [
1714
- L(h(fe), {
1746
+ B(h(Ae), { span: 12 }, {
1747
+ default: N(() => [
1748
+ B(h(fe), {
1715
1749
  label: "电话",
1716
1750
  prop: "phone"
1717
1751
  }, {
1718
- default: I(() => [
1719
- L(h(we), {
1752
+ default: N(() => [
1753
+ B(h(we), {
1720
1754
  modelValue: o.value.phone,
1721
1755
  "onUpdate:modelValue": r[3] || (r[3] = (u) => o.value.phone = u),
1722
1756
  placeholder: "请输入电话"
@@ -1730,16 +1764,16 @@ const Kn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAA
1730
1764
  ]),
1731
1765
  _: 1
1732
1766
  }),
1733
- L(h(Me), null, {
1734
- default: I(() => [
1735
- L(h(Ae), { span: 24 }, {
1736
- default: I(() => [
1737
- L(h(fe), {
1767
+ B(h(Fe), null, {
1768
+ default: N(() => [
1769
+ B(h(Ae), { span: 24 }, {
1770
+ default: N(() => [
1771
+ B(h(fe), {
1738
1772
  label: "姓名",
1739
1773
  prop: "name"
1740
1774
  }, {
1741
- default: I(() => [
1742
- L(h(we), {
1775
+ default: N(() => [
1776
+ B(h(we), {
1743
1777
  modelValue: o.value.name,
1744
1778
  "onUpdate:modelValue": r[4] || (r[4] = (u) => o.value.name = u),
1745
1779
  placeholder: "请输入您的全名"
@@ -1753,17 +1787,17 @@ const Kn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAA
1753
1787
  ]),
1754
1788
  _: 1
1755
1789
  }),
1756
- L(h(fe), {
1790
+ B(h(fe), {
1757
1791
  prop: "agreement",
1758
1792
  class: "agreement-item"
1759
1793
  }, {
1760
- default: I(() => [
1761
- L(h(Jt), {
1794
+ default: N(() => [
1795
+ B(h(Jt), {
1762
1796
  modelValue: o.value.agreement,
1763
1797
  "onUpdate:modelValue": r[5] || (r[5] = (u) => o.value.agreement = u),
1764
1798
  label: "我同意"
1765
1799
  }, null, 8, ["modelValue"]),
1766
- r[10] || (r[10] = p("a", {
1800
+ r[10] || (r[10] = m("a", {
1767
1801
  href: "#",
1768
1802
  class: "privacy-link"
1769
1803
  }, "隐私政策", -1))
@@ -1779,15 +1813,15 @@ const Kn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAA
1779
1813
  }, 8, ["modelValue"]));
1780
1814
  }
1781
1815
  });
1782
- function Go(e) {
1783
- const t = _([]), n = "_search_history_cache", o = typeof window < "u" && typeof localStorage < "u", l = N(
1816
+ function qo(e) {
1817
+ const t = T([]), n = "_search_history_cache", o = typeof window < "u" && typeof localStorage < "u", l = M(
1784
1818
  () => (e.value || "") + n
1785
- ), i = N(
1819
+ ), i = M(
1786
1820
  () => !!e.value && e.value !== ""
1787
1821
  ), s = (c) => {
1788
1822
  if (!c || !o) return;
1789
1823
  const r = t.value.filter(
1790
- (m) => m.id && m.id !== c.id || m.display !== c.display
1824
+ (f) => f.id && f.id !== c.id || f.display !== c.display
1791
1825
  );
1792
1826
  r.unshift(c);
1793
1827
  const u = r.slice(0, 4);
@@ -1795,8 +1829,8 @@ function Go(e) {
1795
1829
  t.value = u;
1796
1830
  try {
1797
1831
  localStorage.setItem(l.value, JSON.stringify(u));
1798
- } catch (m) {
1799
- console.warn("LocalStorage save failed:", m);
1832
+ } catch (f) {
1833
+ console.warn("LocalStorage save failed:", f);
1800
1834
  }
1801
1835
  }
1802
1836
  }, a = () => {
@@ -1819,7 +1853,7 @@ function Go(e) {
1819
1853
  HasHistory: i
1820
1854
  };
1821
1855
  }
1822
- async function qo(e, t = [
1856
+ async function Go(e, t = [
1823
1857
  "Continent",
1824
1858
  "Country",
1825
1859
  "City",
@@ -1833,11 +1867,11 @@ async function qo(e, t = [
1833
1867
  });
1834
1868
  }
1835
1869
  function Yo(e, t) {
1836
- const n = _([]), o = _(!1), l = _(!1), i = _(!1), s = _(1), a = 10, c = _(0), r = N(() => {
1870
+ const n = T([]), o = T(!1), l = T(!1), i = T(!1), s = T(1), a = 10, c = T(0), r = M(() => {
1837
1871
  const d = [...t.value];
1838
1872
  return d.includes("Country") && !d.includes("Region") && d.push("Region"), d;
1839
1873
  }), u = (d) => Array.isArray(d) ? d.filter(
1840
- (f) => r.value.includes(f.type)
1874
+ (p) => r.value.includes(p.type)
1841
1875
  ) : [];
1842
1876
  return {
1843
1877
  searchResults: n,
@@ -1845,8 +1879,8 @@ function Yo(e, t) {
1845
1879
  isFetchingMore: l,
1846
1880
  isFinished: i,
1847
1881
  fetchData: async (d = !1) => {
1848
- const f = e.value.trim();
1849
- if (!f) {
1882
+ const p = e.value.trim();
1883
+ if (!p) {
1850
1884
  n.value = [], c.value = 0, i.value = !1;
1851
1885
  return;
1852
1886
  }
@@ -1858,15 +1892,15 @@ function Yo(e, t) {
1858
1892
  o.value = !0, s.value = 1, i.value = !1;
1859
1893
  }
1860
1894
  try {
1861
- const v = await qo(
1862
- f,
1895
+ const v = await Go(
1896
+ p,
1863
1897
  t.value,
1864
1898
  {
1865
1899
  current: s.value,
1866
1900
  size: a
1867
1901
  }
1868
- ), A = u(v.records || []);
1869
- d ? n.value.push(...A) : n.value = A, c.value = v.total || 0, (n.value.length >= c.value || A.length < a) && (i.value = !0);
1902
+ ), w = u(v.records || []);
1903
+ d ? n.value.push(...w) : n.value = w, c.value = v.total || 0, (n.value.length >= c.value || w.length < a) && (i.value = !0);
1870
1904
  } catch (v) {
1871
1905
  console.error("Search request failed:", v), d && (s.value -= 1);
1872
1906
  } finally {
@@ -1893,7 +1927,7 @@ const zo = { class: "h5-search-container" }, Xo = { class: "trigger-content" },
1893
1927
  }, ul = {
1894
1928
  key: 1,
1895
1929
  class: "h5-section"
1896
- }, dl = { class: "h5-section-hd" }, fl = { class: "h5-history-grid" }, ml = ["onClick"], pl = {
1930
+ }, dl = { class: "h5-section-hd" }, fl = { class: "h5-history-grid" }, pl = ["onClick"], ml = {
1897
1931
  key: 2,
1898
1932
  class: "h5-result-list"
1899
1933
  }, hl = ["onClick"], vl = { class: "item-info" }, gl = { class: "item-name" }, yl = {
@@ -1916,162 +1950,185 @@ const zo = { class: "h5-search-container" }, Xo = { class: "trigger-content" },
1916
1950
  },
1917
1951
  emits: ["update:modelValue", "select"],
1918
1952
  setup(e, { emit: t }) {
1919
- const n = e, o = t, l = _(!1), i = _(""), s = _(null), a = _(null);
1953
+ const n = e, o = t, l = T(!1), i = T(""), s = T(null), a = T(null);
1920
1954
  let c = null;
1921
- const { searchHistory: r, saveToHistory: u, clearHistory: m } = Go(
1922
- Pe(n, "historyKey")
1923
- ), { searchResults: d, loading: f, isFetchingMore: v, isFinished: A, fetchData: w } = Yo(i, _(["City", "Seaport", "Airport"])), g = N(() => n.lang.includes("en")), C = N(
1955
+ const { searchHistory: r, saveToHistory: u, clearHistory: f } = qo(
1956
+ Ue(n, "historyKey")
1957
+ ), { searchResults: d, loading: p, isFetchingMore: v, isFinished: w, fetchData: x } = Yo(i, T(["City", "Seaport", "Airport"])), g = M(() => {
1958
+ if (n.lang)
1959
+ return n.lang === "en" || n.lang === "en-US";
1960
+ try {
1961
+ if (typeof useCookie == "function") {
1962
+ const S = useCookie("jc-language")?.value;
1963
+ if (S)
1964
+ return /^en(-US)?$/.test(S);
1965
+ }
1966
+ } catch {
1967
+ }
1968
+ if (typeof document < "u") {
1969
+ const S = document.cookie || "";
1970
+ return /(^|;\s*)jc-language=en(-US)?(;|$)/.test(S);
1971
+ }
1972
+ try {
1973
+ if (typeof useNuxtApp == "function") {
1974
+ const _ = useNuxtApp()?.ssrContext?.event?.node?.req?.headers?.cookie || "";
1975
+ return /(^|;\s*)jc-language=en(-US)?(;|$)/.test(_);
1976
+ }
1977
+ } catch {
1978
+ }
1979
+ return !1;
1980
+ }), C = M(
1924
1981
  () => Array.isArray(n.modelValue) ? n.modelValue : n.modelValue ? [n.modelValue] : []
1925
- ), S = N(() => !n.multiple && !!n.modelValue), V = N(
1926
- () => S.value ? M(n.modelValue) : ""
1927
- ), D = N(() => C.value.length > 0), W = () => {
1928
- l.value = !0, Pt(() => {
1982
+ ), k = M(() => !n.multiple && !!n.modelValue), E = M(
1983
+ () => k.value ? F(n.modelValue) : ""
1984
+ ), V = M(() => C.value.length > 0), W = () => {
1985
+ l.value = !0, Ut(() => {
1929
1986
  s.value?.focus();
1930
1987
  });
1931
- }, P = () => {
1988
+ }, U = () => {
1932
1989
  l.value = !1, i.value = "";
1933
- }, U = (T) => {
1934
- u(T), n.multiple ? C.value.some((R) => R.id === T.id) || o("update:modelValue", [...C.value, T]) : (o("update:modelValue", T), P()), o("select", T);
1990
+ }, Q = (S) => {
1991
+ u(S), n.multiple ? C.value.some((O) => O.id === S.id) || o("update:modelValue", [...C.value, S]) : (o("update:modelValue", S), U()), o("select", S);
1935
1992
  }, K = () => {
1936
1993
  o("update:modelValue", n.multiple ? [] : null);
1937
- }, H = _(!1), ee = (T) => {
1938
- const O = T.target;
1939
- if (!O) return;
1940
- O.scrollTop + O.clientHeight >= O.scrollHeight - 80 && i.value && !f.value && !v.value && !A.value && !H.value && (H.value = !0, w(!0));
1994
+ }, P = T(!1), ee = (S) => {
1995
+ const _ = S.target;
1996
+ if (!_) return;
1997
+ _.scrollTop + _.clientHeight >= _.scrollHeight - 80 && i.value && !p.value && !v.value && !w.value && !P.value && (P.value = !0, x(!0));
1941
1998
  };
1942
- He(v, (T) => {
1943
- T || (H.value = !1);
1999
+ Pe(v, (S) => {
2000
+ S || (P.value = !1);
1944
2001
  });
1945
2002
  const z = () => {
1946
2003
  c && clearTimeout(c), c = setTimeout(() => {
1947
- H.value = !1, a.value?.scrollTo({ top: 0 }), console.log("🍉 ~ index.vue:279 ~ onInput ~ fetchData:", w), w(!1);
2004
+ P.value = !1, a.value?.scrollTo({ top: 0 }), console.log("🍉 ~ index.vue:279 ~ onInput ~ fetchData:", x), x(!1);
1948
2005
  }, 300);
1949
- }, M = (T) => g.value ? T.displayEn || T.display : T.displayCn || T.display, G = (T) => {
1950
- const O = { City: "城市", Seaport: "港口", Airport: "机场" };
1951
- return g.value ? T : O[T] || T;
1952
- }, ae = (T) => C.value.some((O) => O.id === T.id);
1953
- return (T, O) => (y(), b("div", zo, [
1954
- p("div", {
2006
+ }, F = (S) => g.value ? S.displayEn || S.display : S.displayCn || S.display, q = (S) => {
2007
+ const _ = { City: "城市", Seaport: "港口", Airport: "机场" };
2008
+ return g.value ? S : _[S] || S;
2009
+ }, ae = (S) => C.value.some((_) => _.id === S.id);
2010
+ return (S, _) => (A(), b("div", zo, [
2011
+ m("div", {
1955
2012
  class: "search-trigger",
1956
2013
  onClick: W
1957
2014
  }, [
1958
- p("div", Xo, [
1959
- p("img", {
2015
+ m("div", Xo, [
2016
+ m("img", {
1960
2017
  src: h(Je),
1961
2018
  class: "search-icon-m"
1962
2019
  }, null, 8, jo),
1963
- p("div", Zo, [
1964
- e.multiple && C.value.length > 0 ? (y(), b("span", el, k(g.value ? "Selected" : "已选") + " (" + k(C.value.length) + ")", 1)) : !e.multiple && S.value ? (y(), b("span", tl, k(V.value), 1)) : (y(), b("span", nl, k(e.placeholder || (g.value ? "Search" : "搜索")), 1))
2020
+ m("div", Zo, [
2021
+ e.multiple && C.value.length > 0 ? (A(), b("span", el, R(g.value ? "Selected" : "已选") + " (" + R(C.value.length) + ")", 1)) : !e.multiple && k.value ? (A(), b("span", tl, R(E.value), 1)) : (A(), b("span", nl, R(e.placeholder || (g.value ? "Search" : "搜索")), 1))
1965
2022
  ])
1966
2023
  ]),
1967
- D.value ? (y(), b("span", {
2024
+ V.value ? (A(), b("span", {
1968
2025
  key: 0,
1969
2026
  class: "clear-trigger",
1970
2027
  onClick: te(K, ["stop"])
1971
- }, "ⓧ")) : F("", !0)
2028
+ }, "ⓧ")) : I("", !0)
1972
2029
  ]),
1973
- (y(), Ge(yt, { to: "body" }, [
1974
- l.value ? (y(), b("div", ol, [
1975
- L(st, { name: "fade" }, {
1976
- default: I(() => [
1977
- p("div", {
2030
+ (A(), qe(yt, { to: "body" }, [
2031
+ l.value ? (A(), b("div", ol, [
2032
+ B(st, { name: "fade" }, {
2033
+ default: N(() => [
2034
+ m("div", {
1978
2035
  class: "h5-mask",
1979
- onClick: P
2036
+ onClick: U
1980
2037
  })
1981
2038
  ]),
1982
2039
  _: 1
1983
2040
  }),
1984
- L(st, { name: "slide-up" }, {
1985
- default: I(() => [
1986
- p("div", ll, [
1987
- p("div", {
2041
+ B(st, { name: "slide-up" }, {
2042
+ default: N(() => [
2043
+ m("div", ll, [
2044
+ m("div", {
1988
2045
  class: "drawer-handle",
1989
- onClick: P
2046
+ onClick: U
1990
2047
  }),
1991
- p("div", sl, [
1992
- p("div", il, [
1993
- p("img", {
2048
+ m("div", sl, [
2049
+ m("div", il, [
2050
+ m("img", {
1994
2051
  src: h(Je),
1995
2052
  class: "inner-icon"
1996
2053
  }, null, 8, al),
1997
- Oe(p("input", {
2054
+ Oe(m("input", {
1998
2055
  ref_key: "inputRef",
1999
2056
  ref: s,
2000
- "onUpdate:modelValue": O[0] || (O[0] = (R) => i.value = R),
2057
+ "onUpdate:modelValue": _[0] || (_[0] = (O) => i.value = O),
2001
2058
  placeholder: g.value ? "City/Port/Airport" : "搜索城市/港口/机场",
2002
2059
  onInput: z
2003
2060
  }, null, 40, rl), [
2004
- [qe, i.value]
2061
+ [Ge, i.value]
2005
2062
  ]),
2006
- i.value ? (y(), b("div", {
2063
+ i.value ? (A(), b("div", {
2007
2064
  key: 0,
2008
2065
  class: "h5-clear-btn",
2009
- onClick: O[1] || (O[1] = (R) => i.value = "")
2010
- }, " ✕ ")) : F("", !0)
2066
+ onClick: _[1] || (_[1] = (O) => i.value = "")
2067
+ }, " ✕ ")) : I("", !0)
2011
2068
  ]),
2012
- p("div", {
2069
+ m("div", {
2013
2070
  class: "h5-cancel-btn",
2014
- onClick: P
2015
- }, k(g.value ? "Cancel" : "取消"), 1)
2071
+ onClick: U
2072
+ }, R(g.value ? "Cancel" : "取消"), 1)
2016
2073
  ]),
2017
- p("div", {
2074
+ m("div", {
2018
2075
  class: "h5-main-content",
2019
2076
  ref_key: "scrollContainer",
2020
2077
  ref: a,
2021
2078
  onScroll: ee
2022
2079
  }, [
2023
- h(f) && !h(v) ? (y(), b("div", cl, [...O[3] || (O[3] = [
2024
- p("div", { class: "h5-spinner" }, null, -1)
2025
- ])])) : F("", !0),
2026
- !i.value && h(r).length > 0 ? (y(), b("div", ul, [
2027
- p("div", dl, [
2028
- p("span", null, k(g.value ? "Recent" : "最近搜索"), 1),
2029
- p("span", {
2080
+ h(p) && !h(v) ? (A(), b("div", cl, [..._[3] || (_[3] = [
2081
+ m("div", { class: "h5-spinner" }, null, -1)
2082
+ ])])) : I("", !0),
2083
+ !i.value && h(r).length > 0 ? (A(), b("div", ul, [
2084
+ m("div", dl, [
2085
+ m("span", null, R(g.value ? "Recent" : "最近搜索"), 1),
2086
+ m("span", {
2030
2087
  class: "h5-clear-history",
2031
- onClick: O[2] || (O[2] = //@ts-ignore
2032
- (...R) => h(m) && h(m)(...R))
2033
- }, k(g.value ? "Clear" : "清空"), 1)
2088
+ onClick: _[2] || (_[2] = //@ts-ignore
2089
+ (...O) => h(f) && h(f)(...O))
2090
+ }, R(g.value ? "Clear" : "清空"), 1)
2034
2091
  ]),
2035
- p("div", fl, [
2036
- (y(!0), b(ne, null, me(h(r), (R, Q) => (y(), b("div", {
2037
- key: Q,
2092
+ m("div", fl, [
2093
+ (A(!0), b(ne, null, pe(h(r), (O, H) => (A(), b("div", {
2094
+ key: H,
2038
2095
  class: "h5-history-tag",
2039
- onClick: (ye) => U(R)
2040
- }, k(M(R)), 9, ml))), 128))
2096
+ onClick: (ye) => Q(O)
2097
+ }, R(F(O)), 9, pl))), 128))
2041
2098
  ])
2042
- ])) : F("", !0),
2043
- h(d).length > 0 ? (y(), b("div", pl, [
2044
- (y(!0), b(ne, null, me(h(d), (R, Q) => (y(), b("div", {
2045
- key: Q,
2046
- class: le(["h5-result-item", { "is-active": ae(R) }]),
2047
- onClick: (ye) => U(R)
2099
+ ])) : I("", !0),
2100
+ h(d).length > 0 ? (A(), b("div", ml, [
2101
+ (A(!0), b(ne, null, pe(h(d), (O, H) => (A(), b("div", {
2102
+ key: H,
2103
+ class: le(["h5-result-item", { "is-active": ae(O) }]),
2104
+ onClick: (ye) => Q(O)
2048
2105
  }, [
2049
- p("div", {
2050
- class: le(["item-type", R.type.toLowerCase()])
2051
- }, k(G(R.type)), 3),
2052
- p("div", vl, [
2053
- p("div", gl, k(M(R)), 1),
2054
- R.parentName ? (y(), b("div", yl, k(R.parentName), 1)) : F("", !0)
2106
+ m("div", {
2107
+ class: le(["item-type", O.type.toLowerCase()])
2108
+ }, R(q(O.type)), 3),
2109
+ m("div", vl, [
2110
+ m("div", gl, R(F(O)), 1),
2111
+ O.parentName ? (A(), b("div", yl, R(O.parentName), 1)) : I("", !0)
2055
2112
  ])
2056
2113
  ], 10, hl))), 128)),
2057
- p("div", Al, [
2058
- h(v) ? (y(), b(ne, { key: 0 }, [
2059
- O[4] || (O[4] = p("div", { class: "mini-spinner" }, null, -1)),
2060
- p("span", null, k(g.value ? "Loading..." : "加载中..."), 1)
2061
- ], 64)) : h(A) && i.value ? (y(), b("span", wl, k(g.value ? "No more results" : "没有更多结果了"), 1)) : F("", !0)
2114
+ m("div", Al, [
2115
+ h(v) ? (A(), b(ne, { key: 0 }, [
2116
+ _[4] || (_[4] = m("div", { class: "mini-spinner" }, null, -1)),
2117
+ m("span", null, R(g.value ? "Loading..." : "加载中..."), 1)
2118
+ ], 64)) : h(w) && i.value ? (A(), b("span", wl, R(g.value ? "No more results" : "没有更多结果了"), 1)) : I("", !0)
2062
2119
  ])
2063
- ])) : F("", !0),
2064
- i.value && !h(f) && h(d).length === 0 ? (y(), b("div", xl, k(g.value ? "No Results Found" : "未找到相关结果"), 1)) : F("", !0)
2120
+ ])) : I("", !0),
2121
+ i.value && !h(p) && h(d).length === 0 ? (A(), b("div", xl, R(g.value ? "No Results Found" : "未找到相关结果"), 1)) : I("", !0)
2065
2122
  ], 544)
2066
2123
  ])
2067
2124
  ]),
2068
2125
  _: 1
2069
2126
  })
2070
- ])) : F("", !0)
2127
+ ])) : I("", !0)
2071
2128
  ]))
2072
2129
  ]));
2073
2130
  }
2074
- }), Cl = /* @__PURE__ */ tt(bl, [["__scopeId", "data-v-95bd2748"]]);
2131
+ }), Cl = /* @__PURE__ */ tt(bl, [["__scopeId", "data-v-c1314e9c"]]);
2075
2132
  let Sl = {
2076
2133
  open() {
2077
2134
  ce.emit(ue.Open);
@@ -2089,14 +2146,14 @@ function Ol() {
2089
2146
  install(t) {
2090
2147
  if (typeof window < "u" && !e) {
2091
2148
  const n = document.createElement("div");
2092
- n.setAttribute("id", "global-modal-root"), document.body.appendChild(n), Ht(Ko).mount(n), e = !0;
2149
+ n.setAttribute("id", "global-modal-root"), document.body.appendChild(n), Pt(Ko).mount(n), e = !0;
2093
2150
  }
2094
2151
  t.config.globalProperties.$globalModal = Sl;
2095
2152
  }
2096
2153
  };
2097
2154
  }
2098
2155
  const ht = {
2099
- ApplyDataDialog: Uo,
2156
+ ApplyDataDialog: Qo,
2100
2157
  JcSearch: Et,
2101
2158
  JCMSearch: Cl
2102
2159
  };
@@ -2104,14 +2161,14 @@ let vt = !1;
2104
2161
  const Tl = {
2105
2162
  install(e, t) {
2106
2163
  if (!vt) {
2107
- vt = !0, t?.sharedConfig && Qt(t.sharedConfig);
2164
+ vt = !0, t?.sharedConfig && Ht(t.sharedConfig);
2108
2165
  for (const n in ht)
2109
2166
  e.component(n, ht[n]);
2110
2167
  }
2111
2168
  }
2112
2169
  };
2113
2170
  export {
2114
- Uo as ApplyDataDialog,
2171
+ Qo as ApplyDataDialog,
2115
2172
  Ko as GlobalModal,
2116
2173
  Cl as JCMSearch,
2117
2174
  Et as JcSearch,