@tbox.cn/app-module-parking 0.10.11 → 1.0.0-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,3 @@
1
- // src/client/index.ts
2
- import "./parking-BC2TJ5GU.css";
3
-
4
1
  // src/client/cards/parking-payment/index.tsx
5
2
  import { useEffect, useState } from "react";
6
3
  import { Car, Check, CheckCircle, Clock, CurrencyCircleDollar, ShieldCheck, Sparkle } from "@phosphor-icons/react";
@@ -169,21 +166,21 @@ function ParkingPaymentCard(props) {
169
166
  data.entryAtText ? `\u5165\u573A ${data.entryAtText}` : void 0,
170
167
  data.durationText ? `\u5DF2\u505C ${data.durationText}` : void 0
171
168
  ].filter(Boolean).join(" \xB7 ");
172
- return /* @__PURE__ */ jsxs("section", { className: "parking-payment", children: [
173
- /* @__PURE__ */ jsx("header", { className: "parking-payment__hero", children: /* @__PURE__ */ jsxs("div", { className: "parking-payment__hero-content", children: [
174
- /* @__PURE__ */ jsxs("div", { className: "parking-payment__hero-eyebrow", children: [
175
- /* @__PURE__ */ jsx("span", { children: "\u5546\u573A\u505C\u8F66\u670D\u52A1" }),
176
- isHistory && /* @__PURE__ */ jsx("span", { className: "parking-payment__status", children: "\u5386\u53F2\u62A5\u4EF7" })
169
+ return /* @__PURE__ */ jsxs("section", { className: "parking-payment w-full overflow-hidden bg-card text-foreground", children: [
170
+ /* @__PURE__ */ jsx("header", { className: "parking-payment__hero relative h-41.5 overflow-hidden bg-[#f9f0df] bg-parking-hero", children: /* @__PURE__ */ jsxs("div", { className: "parking-payment__hero-content absolute inset-0 flex flex-col bg-white-soft p-3.5", children: [
171
+ /* @__PURE__ */ jsxs("div", { className: "parking-payment__hero-eyebrow flex items-center justify-between gap-2 text-xs font-semibold leading-4 text-foreground", children: [
172
+ /* @__PURE__ */ jsx("span", { className: "truncate", children: "\u5546\u573A\u505C\u8F66\u670D\u52A1" }),
173
+ isHistory && /* @__PURE__ */ jsx("span", { className: "parking-payment__status shrink-0 rounded-full border border-border bg-card px-1.5 py-0.5 text-xs leading-4", children: "\u5386\u53F2\u62A5\u4EF7" })
177
174
  ] }),
178
- /* @__PURE__ */ jsxs("div", { className: "parking-payment__hero-main", children: [
179
- /* @__PURE__ */ jsx("strong", { children: data.plateNo }),
180
- /* @__PURE__ */ jsx("span", { children: parkingMeta || "\u505C\u8F66\u8D39\u7528\u4EE5\u5546\u573A\u7CFB\u7EDF\u5B9E\u65F6\u7ED3\u679C\u4E3A\u51C6" })
175
+ /* @__PURE__ */ jsxs("div", { className: "parking-payment__hero-main flex min-w-0 flex-1 flex-col justify-center", children: [
176
+ /* @__PURE__ */ jsx("strong", { className: "truncate text-3xl font-bold leading-8 tracking-wide text-foreground", children: data.plateNo }),
177
+ /* @__PURE__ */ jsx("span", { className: "mt-1 truncate text-xs leading-4 text-foreground", children: parkingMeta || "\u505C\u8F66\u8D39\u7528\u4EE5\u5546\u573A\u7CFB\u7EDF\u5B9E\u65F6\u7ED3\u679C\u4E3A\u51C6" })
181
178
  ] }),
182
179
  /* @__PURE__ */ jsx("div", { className: "parking-payment__hero-actions", children: /* @__PURE__ */ jsxs(
183
180
  "button",
184
181
  {
185
182
  type: "button",
186
- className: "parking-payment__hero-action",
183
+ className: "parking-payment__hero-action inline-flex cursor-pointer items-center gap-1.5 rounded-full border border-border bg-card px-2 py-1 text-xs font-medium leading-4 transition-colors hover:bg-muted disabled:cursor-default disabled:opacity-50",
187
184
  disabled: isHistory,
188
185
  onClick: () => sendCardAction(cardId, { type: "sendMessage", value: VEHICLE_MANAGE_QUERY }),
189
186
  children: [
@@ -193,94 +190,95 @@ function ParkingPaymentCard(props) {
193
190
  }
194
191
  ) })
195
192
  ] }) }),
196
- /* @__PURE__ */ jsxs("div", { className: "parking-payment__summary", children: [
197
- /* @__PURE__ */ jsxs("div", { className: "parking-payment__summary-item", children: [
198
- /* @__PURE__ */ jsx("small", { children: "\u5DF2\u505C\u65F6\u957F" }),
199
- /* @__PURE__ */ jsx("strong", { children: data.durationText ?? "\u2014" })
193
+ /* @__PURE__ */ jsxs("div", { className: "parking-payment__summary grid grid-cols-3 border-b-2 border-border bg-card px-1.5 py-2.75", children: [
194
+ /* @__PURE__ */ jsxs("div", { className: "parking-payment__summary-item flex min-w-0 flex-col items-center justify-center border-l-2 border-border px-1 text-center first:border-l-0", children: [
195
+ /* @__PURE__ */ jsx("small", { className: "max-w-full truncate text-xs leading-4 text-muted-foreground", children: "\u5DF2\u505C\u65F6\u957F" }),
196
+ /* @__PURE__ */ jsx("strong", { className: "mt-1 max-w-full truncate text-sm font-bold leading-4.5 text-foreground", children: data.durationText ?? "\u2014" })
200
197
  ] }),
201
- /* @__PURE__ */ jsxs("div", { className: "parking-payment__summary-item parking-payment__summary-item--benefit", children: [
202
- /* @__PURE__ */ jsx("small", { children: "\u4F18\u60E0\u51CF\u514D" }),
203
- /* @__PURE__ */ jsx("strong", { children: discountText ?? "\u2014" })
198
+ /* @__PURE__ */ jsxs("div", { className: "parking-payment__summary-item parking-payment__summary-item--benefit flex min-w-0 flex-col items-center justify-center border-l-2 border-border px-1 text-center", children: [
199
+ /* @__PURE__ */ jsx("small", { className: "max-w-full truncate text-xs leading-4 text-muted-foreground", children: "\u4F18\u60E0\u51CF\u514D" }),
200
+ /* @__PURE__ */ jsx("strong", { className: "mt-1 max-w-full truncate text-sm font-bold leading-4.5 text-foreground", children: discountText ?? "\u2014" })
204
201
  ] }),
205
- /* @__PURE__ */ jsxs("div", { className: "parking-payment__summary-item parking-payment__summary-item--amount", children: [
206
- /* @__PURE__ */ jsx("small", { children: "\u5F53\u524D\u5E94\u4ED8" }),
207
- /* @__PURE__ */ jsx("strong", { children: data.payableText })
202
+ /* @__PURE__ */ jsxs("div", { className: "parking-payment__summary-item parking-payment__summary-item--amount flex min-w-0 flex-col items-center justify-center border-l-2 border-border px-1 text-center", children: [
203
+ /* @__PURE__ */ jsx("small", { className: "max-w-full truncate text-xs leading-4 text-muted-foreground", children: "\u5F53\u524D\u5E94\u4ED8" }),
204
+ /* @__PURE__ */ jsx("strong", { className: "mt-1 max-w-full truncate text-sm font-bold leading-4.5 text-warning", children: data.payableText })
208
205
  ] })
209
206
  ] }),
210
- /* @__PURE__ */ jsxs("div", { className: "parking-payment__body", children: [
211
- /* @__PURE__ */ jsxs("section", { className: "parking-payment__billing", children: [
212
- /* @__PURE__ */ jsx("header", { className: "parking-payment__billing-head", children: /* @__PURE__ */ jsxs("div", { children: [
213
- /* @__PURE__ */ jsx("span", { className: "parking-payment__billing-icon", children: /* @__PURE__ */ jsx(CurrencyCircleDollar, { weight: "duotone", size: 18 }) }),
214
- /* @__PURE__ */ jsx("h4", { children: "\u505C\u8F66\u8D39\u7528" })
207
+ /* @__PURE__ */ jsxs("div", { className: "parking-payment__body px-3 pb-2.75 pt-3", children: [
208
+ /* @__PURE__ */ jsxs("section", { className: "parking-payment__billing rounded-xl border-2 border-border bg-card p-2.75", children: [
209
+ /* @__PURE__ */ jsx("header", { className: "parking-payment__billing-head flex items-center justify-between gap-2.25", children: /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 items-center gap-1.5", children: [
210
+ /* @__PURE__ */ jsx("span", { className: "parking-payment__billing-icon grid size-5.5 shrink-0 place-items-center rounded-md bg-primary-soft text-primary", children: /* @__PURE__ */ jsx(CurrencyCircleDollar, { weight: "duotone", size: 18 }) }),
211
+ /* @__PURE__ */ jsx("h4", { className: "text-sm font-semibold leading-5 text-foreground", children: "\u505C\u8F66\u8D39\u7528" })
215
212
  ] }) }),
216
- /* @__PURE__ */ jsxs("dl", { className: "parking-payment__fees", children: [
217
- data.feeItems.map((f) => /* @__PURE__ */ jsxs("div", { className: "parking-payment__fee", children: [
213
+ /* @__PURE__ */ jsxs("dl", { className: "parking-payment__fees m-0 mt-1.25", children: [
214
+ data.feeItems.map((f) => /* @__PURE__ */ jsxs("div", { className: "parking-payment__fee mt-1.75 flex items-center justify-between gap-2.25 text-xs leading-4.5 text-secondary-foreground", children: [
218
215
  /* @__PURE__ */ jsx("dt", { children: f.name }),
219
- /* @__PURE__ */ jsx("dd", { children: f.amountText })
216
+ /* @__PURE__ */ jsx("dd", { className: "text-sm font-semibold text-foreground", children: f.amountText })
220
217
  ] }, f.name)),
221
- /* @__PURE__ */ jsxs("div", { className: "parking-payment__fee", children: [
218
+ /* @__PURE__ */ jsxs("div", { className: "parking-payment__fee mt-1.75 flex items-center justify-between gap-2.25 text-xs leading-4.5 text-secondary-foreground", children: [
222
219
  /* @__PURE__ */ jsx("dt", { children: "\u505C\u8F66\u603B\u8D39\u7528" }),
223
- /* @__PURE__ */ jsx("dd", { children: data.totalText })
220
+ /* @__PURE__ */ jsx("dd", { className: "text-sm font-semibold text-foreground", children: data.totalText })
224
221
  ] }),
225
- autoAppliedBenefits.map((benefit) => /* @__PURE__ */ jsxs("div", { className: "parking-payment__fee parking-payment__fee--discount", children: [
222
+ autoAppliedBenefits.map((benefit) => /* @__PURE__ */ jsxs("div", { className: "parking-payment__fee parking-payment__fee--discount mt-1.75 flex items-center justify-between gap-2.25 text-xs leading-4.5 text-secondary-foreground", children: [
226
223
  /* @__PURE__ */ jsx("dt", { children: benefit.title }),
227
- /* @__PURE__ */ jsx("dd", { children: formatDiscountText(benefit.discountText) ?? "\u5DF2\u751F\u6548" })
224
+ /* @__PURE__ */ jsx("dd", { className: "text-sm font-semibold text-foreground", children: formatDiscountText(benefit.discountText) ?? "\u5DF2\u751F\u6548" })
228
225
  ] }, benefit.benefitRef)),
229
- discountText && /* @__PURE__ */ jsxs("div", { className: "parking-payment__fee parking-payment__fee--discount", children: [
226
+ discountText && /* @__PURE__ */ jsxs("div", { className: "parking-payment__fee parking-payment__fee--discount mt-1.75 flex items-center justify-between gap-2.25 text-xs leading-4.5 text-secondary-foreground", children: [
230
227
  /* @__PURE__ */ jsx("dt", { children: "\u4F18\u60E0\u51CF\u514D" }),
231
- /* @__PURE__ */ jsx("dd", { children: discountText })
228
+ /* @__PURE__ */ jsx("dd", { className: "text-sm font-semibold text-foreground", children: discountText })
232
229
  ] })
233
230
  ] }),
234
- /* @__PURE__ */ jsxs("div", { className: "parking-payment__billing-total", children: [
235
- /* @__PURE__ */ jsx("strong", { children: "\u5F53\u524D\u5E94\u4ED8" }),
236
- /* @__PURE__ */ jsx("b", { children: data.payableText })
231
+ /* @__PURE__ */ jsxs("div", { className: "parking-payment__billing-total mt-2.25 flex items-center justify-between gap-2.25 border-t-2 border-border pt-2", children: [
232
+ /* @__PURE__ */ jsx("strong", { className: "text-sm leading-5 text-foreground", children: "\u5F53\u524D\u5E94\u4ED8" }),
233
+ /* @__PURE__ */ jsx("b", { className: "text-2xl font-bold leading-6 text-warning", children: data.payableText })
237
234
  ] })
238
235
  ] }),
239
- selectable.length > 0 && !isFreeOfCharge && /* @__PURE__ */ jsxs("section", { className: "parking-payment__benefit-picker", "aria-label": "\u505C\u8F66\u4F18\u60E0\u9009\u62E9", children: [
240
- /* @__PURE__ */ jsxs("div", { className: "parking-payment__benefit-picker-head", children: [
241
- /* @__PURE__ */ jsx("h4", { children: "\u4F18\u60E0" }),
242
- repricing && /* @__PURE__ */ jsx("span", { className: "parking-payment__benefit-repricing", children: "\u91CD\u7B97\u4E2D\u2026" })
236
+ selectable.length > 0 && !isFreeOfCharge && /* @__PURE__ */ jsxs("section", { className: "parking-payment__benefit-picker mt-2.25", "aria-label": "\u505C\u8F66\u4F18\u60E0\u9009\u62E9", children: [
237
+ /* @__PURE__ */ jsxs("div", { className: "parking-payment__benefit-picker-head mb-1.5 flex items-baseline justify-between", children: [
238
+ /* @__PURE__ */ jsx("h4", { className: "m-0 text-xs font-semibold leading-4 text-secondary-foreground", children: "\u4F18\u60E0" }),
239
+ repricing && /* @__PURE__ */ jsx("span", { className: "parking-payment__benefit-repricing text-xs text-primary", children: "\u91CD\u7B97\u4E2D\u2026" })
243
240
  ] }),
244
- /* @__PURE__ */ jsx("ul", { className: "parking-payment__benefit-options", children: selectable.map((benefit) => {
241
+ /* @__PURE__ */ jsx("ul", { className: "parking-payment__benefit-options m-0 flex list-none flex-col gap-1.5 p-0", children: selectable.map((benefit) => {
245
242
  const checked = selectedRefs.includes(benefit.benefitRef);
246
243
  const applied = appliedBenefits.find((a) => a.benefitRef === benefit.benefitRef);
247
244
  const amountText = formatDiscountText(applied?.discountText ?? benefit.discountText);
248
245
  return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(
249
246
  "label",
250
247
  {
251
- className: `parking-payment__benefit-option${checked ? " parking-payment__benefit-option--on" : ""}`,
248
+ className: `parking-payment__benefit-option relative flex items-center gap-1.75 rounded-xl border-2 bg-card px-2.75 py-2 transition-colors ${checked ? "border-primary bg-primary-soft shadow-sm parking-payment__benefit-option--on" : "border-border"} ${isHistory || repricing || !repriceToken ? "cursor-default opacity-55" : "cursor-pointer"}`,
252
249
  children: [
253
250
  /* @__PURE__ */ jsx(
254
251
  "input",
255
252
  {
253
+ className: "peer sr-only",
256
254
  type: "checkbox",
257
255
  checked,
258
256
  disabled: isHistory || repricing || !repriceToken,
259
257
  onChange: (e) => toggleBenefit(benefit.benefitRef, e.target.checked)
260
258
  }
261
259
  ),
262
- /* @__PURE__ */ jsx("span", { className: "parking-payment__benefit-check", "aria-hidden": "true", children: /* @__PURE__ */ jsx(Check, { size: 14, weight: "bold" }) }),
263
- /* @__PURE__ */ jsx("span", { className: "parking-payment__benefit-option-copy", children: /* @__PURE__ */ jsx("strong", { children: benefit.title }) }),
264
- amountText && /* @__PURE__ */ jsx("span", { className: "parking-payment__benefit-amount", children: amountText })
260
+ /* @__PURE__ */ jsx("span", { className: `parking-payment__benefit-check inline-flex size-5 shrink-0 items-center justify-center rounded-full border-2 border-border-strong bg-card text-transparent transition-colors peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-primary ${checked ? "border-primary bg-primary text-white" : ""}`, "aria-hidden": "true", children: /* @__PURE__ */ jsx(Check, { size: 14, weight: "bold" }) }),
261
+ /* @__PURE__ */ jsx("span", { className: "parking-payment__benefit-option-copy min-w-0 flex-1", children: /* @__PURE__ */ jsx("strong", { className: "block truncate text-xs font-semibold leading-4.5 text-foreground", children: benefit.title }) }),
262
+ amountText && /* @__PURE__ */ jsx("span", { className: "parking-payment__benefit-amount shrink-0 text-sm font-bold leading-4.5 tabular-nums text-warning", children: amountText })
265
263
  ]
266
264
  }
267
265
  ) }, benefit.benefitRef);
268
266
  }) }),
269
- dropNotice && /* @__PURE__ */ jsx("p", { className: "parking-payment__benefit-notice", children: dropNotice })
267
+ dropNotice && /* @__PURE__ */ jsx("p", { className: "parking-payment__benefit-notice mt-1.5 flex gap-1 rounded-md bg-warn-surface px-2 py-1.75 text-xs leading-4 text-warn-ink", children: dropNotice })
270
268
  ] }),
271
- (membership?.state === "not_enrolled" || membership?.state === "unauthenticated") && /* @__PURE__ */ jsxs("div", { className: "parking-payment__member-guide", children: [
272
- /* @__PURE__ */ jsx("span", { className: "parking-payment__member-guide-icon", children: /* @__PURE__ */ jsx(Sparkle, { weight: "fill", size: 20 }) }),
273
- /* @__PURE__ */ jsxs("div", { children: [
274
- /* @__PURE__ */ jsx("strong", { children: membership.state === "not_enrolled" ? "\u5165\u4F1A\u540E\u53EF\u4F7F\u7528\u4F1A\u5458\u505C\u8F66\u6743\u76CA" : "\u767B\u5F55\u540E\u67E5\u770B\u4F1A\u5458\u505C\u8F66\u6743\u76CA" }),
275
- /* @__PURE__ */ jsx("small", { children: "\u6743\u76CA\u4EE5\u5546\u573A\u4F1A\u5458\u4E0E\u505C\u8F66\u7CFB\u7EDF\u5B9E\u65F6\u7ED3\u679C\u4E3A\u51C6" })
269
+ (membership?.state === "not_enrolled" || membership?.state === "unauthenticated") && /* @__PURE__ */ jsxs("div", { className: "parking-payment__member-guide mt-2.25 flex items-center gap-1.75 rounded-lg border-2 border-warn-border bg-warn-surface p-2.25", children: [
270
+ /* @__PURE__ */ jsx("span", { className: "parking-payment__member-guide-icon grid size-5.75 shrink-0 place-items-center rounded-md bg-warning text-white", children: /* @__PURE__ */ jsx(Sparkle, { weight: "fill", size: 20 }) }),
271
+ /* @__PURE__ */ jsxs("div", { className: "grid min-w-0 flex-1 gap-0.5", children: [
272
+ /* @__PURE__ */ jsx("strong", { className: "text-xs leading-4 text-warn-ink", children: membership.state === "not_enrolled" ? "\u5165\u4F1A\u540E\u53EF\u4F7F\u7528\u4F1A\u5458\u505C\u8F66\u6743\u76CA" : "\u767B\u5F55\u540E\u67E5\u770B\u4F1A\u5458\u505C\u8F66\u6743\u76CA" }),
273
+ /* @__PURE__ */ jsx("small", { className: "text-xs leading-3.5 text-warn-ink", children: "\u6743\u76CA\u4EE5\u5546\u573A\u4F1A\u5458\u4E0E\u505C\u8F66\u7CFB\u7EDF\u5B9E\u65F6\u7ED3\u679C\u4E3A\u51C6" })
276
274
  ] }),
277
- /* @__PURE__ */ jsx("button", { type: "button", disabled: isHistory, onClick: promptMembership, children: membership.state === "not_enrolled" ? "\u7ACB\u5373\u5165\u4F1A" : "\u53BB\u767B\u5F55" })
275
+ /* @__PURE__ */ jsx("button", { className: "shrink-0 rounded-full border-0 bg-warning px-2.5 py-1.5 text-xs font-bold text-white", type: "button", disabled: isHistory, onClick: promptMembership, children: membership.state === "not_enrolled" ? "\u7ACB\u5373\u5165\u4F1A" : "\u53BB\u767B\u5F55" })
278
276
  ] }),
279
- /* @__PURE__ */ jsx("div", { className: "parking-payment__actions", children: /* @__PURE__ */ jsxs(
277
+ /* @__PURE__ */ jsx("div", { className: "parking-payment__actions mt-2.75 grid grid-cols-1 gap-1.5", children: /* @__PURE__ */ jsxs(
280
278
  "button",
281
279
  {
282
280
  type: "button",
283
- className: "parking-payment__action parking-payment__action--primary",
281
+ className: "parking-payment__action parking-payment__action--primary flex min-h-9 items-center justify-center gap-1 whitespace-nowrap rounded-full border-2 border-primary bg-primary px-2.5 text-sm font-bold text-white shadow-md disabled:border-border disabled:bg-muted disabled:text-muted-foreground disabled:shadow-none",
284
282
  disabled: submitDisabled,
285
283
  title: submitTitle,
286
284
  onClick: () => submit(submitBenefitRefs),
@@ -290,12 +288,12 @@ function ParkingPaymentCard(props) {
290
288
  ]
291
289
  }
292
290
  ) }),
293
- settlement && /* @__PURE__ */ jsxs("p", { className: `parking-payment__settlement parking-payment__settlement--${settlement.state}`, children: [
291
+ settlement && /* @__PURE__ */ jsxs("p", { className: `parking-payment__settlement mt-2.75 flex items-center gap-1 rounded-md px-2.25 py-1.75 text-xs leading-4 ${settlement.state === "paid" ? "bg-success-soft text-success" : settlement.state === "failed" ? "bg-danger-soft text-destructive" : "bg-muted text-secondary-foreground"}`, children: [
294
292
  settlement.state === "paid" ? /* @__PURE__ */ jsx(CheckCircle, { size: 16, weight: "fill" }) : /* @__PURE__ */ jsx(Clock, { size: 16, weight: "fill" }),
295
293
  settlement.text
296
294
  ] }),
297
- !confirmToken && !isHistory && !settlement && /* @__PURE__ */ jsx("p", { className: "parking-payment__token-expired", children: "\u652F\u4ED8\u6388\u6743\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u67E5\u8BE2\u505C\u8F66\u8D39\u540E\u518D\u652F\u4ED8" }),
298
- data.caveats.length > 0 && /* @__PURE__ */ jsxs("footer", { className: "parking-payment__foot", children: [
295
+ !confirmToken && !isHistory && !settlement && /* @__PURE__ */ jsx("p", { className: "parking-payment__token-expired mt-2.75 rounded-md border-2 border-danger-border bg-danger-soft px-2 py-1.75 text-xs leading-4 text-destructive", children: "\u652F\u4ED8\u6388\u6743\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u67E5\u8BE2\u505C\u8F66\u8D39\u540E\u518D\u652F\u4ED8" }),
296
+ data.caveats.length > 0 && /* @__PURE__ */ jsxs("footer", { className: "parking-payment__foot mt-2.5 flex items-start gap-1 border-t-2 border-border pt-2.25 text-xs leading-4 text-muted-foreground [&_svg]:shrink-0 [&_svg]:text-primary", children: [
299
297
  /* @__PURE__ */ jsx(ShieldCheck, { size: 14 }),
300
298
  data.caveats.join("\uFF1B")
301
299
  ] })
@@ -375,36 +373,47 @@ function paymentResultClass(status) {
375
373
  // src/client/cards/parking-payment-result/index.tsx
376
374
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
377
375
  var ICONS = { paid: CheckCircle2, cancelled: WarningCircle, unknown: Clock2 };
376
+ var RESULT_ICON = {
377
+ paid: "bg-success text-white",
378
+ cancelled: "bg-muted text-secondary-foreground",
379
+ unknown: "bg-warning-soft text-warning"
380
+ };
381
+ var RESULT_AMOUNT = {
382
+ paid: "text-success",
383
+ cancelled: "text-foreground",
384
+ unknown: "text-foreground"
385
+ };
378
386
  function ParkingPaymentResultCard(props) {
379
387
  const { data, cardId, isHistory, actionTokens } = props;
380
388
  const cls = paymentResultClass(data.status);
381
389
  const Icon = ICONS[cls === "parking-result--paid" ? "paid" : cls === "parking-result--cancelled" ? "cancelled" : "unknown"];
382
390
  const token = actionTokens?.["parking.refresh-payment"];
383
- return /* @__PURE__ */ jsxs2("section", { className: `parking-result ${cls}`, children: [
384
- /* @__PURE__ */ jsxs2("header", { className: "parking-result__head", children: [
385
- /* @__PURE__ */ jsx2("span", { className: "parking-result__icon", children: /* @__PURE__ */ jsx2(Icon, { size: 30, weight: "fill" }) }),
386
- /* @__PURE__ */ jsxs2("div", { className: "parking-result__heading", children: [
387
- /* @__PURE__ */ jsx2("h4", { children: paymentResultText(data.status) }),
388
- /* @__PURE__ */ jsx2("small", { children: data.message })
391
+ const tone = cls.replace("parking-result--", "");
392
+ return /* @__PURE__ */ jsxs2("section", { className: `parking-result ${cls} grid w-full gap-2.5 bg-card p-3.5 text-foreground`, children: [
393
+ /* @__PURE__ */ jsxs2("header", { className: "parking-result__head flex items-center gap-2", children: [
394
+ /* @__PURE__ */ jsx2("span", { className: `parking-result__icon grid size-8 shrink-0 place-items-center rounded-full ${RESULT_ICON[tone]}`, children: /* @__PURE__ */ jsx2(Icon, { size: 30, weight: "fill" }) }),
395
+ /* @__PURE__ */ jsxs2("div", { className: "parking-result__heading min-w-0 flex-1", children: [
396
+ /* @__PURE__ */ jsx2("h4", { className: "text-base font-bold leading-5.5 text-foreground", children: paymentResultText(data.status) }),
397
+ /* @__PURE__ */ jsx2("small", { className: "block text-xs leading-4 text-secondary-foreground", children: data.message })
389
398
  ] })
390
399
  ] }),
391
- data.amountText && /* @__PURE__ */ jsxs2("div", { className: "parking-result__amount-row", children: [
392
- /* @__PURE__ */ jsx2("b", { className: "parking-result__amount", children: data.amountText }),
393
- /* @__PURE__ */ jsx2("span", { children: data.status === "PAID" ? "\u5DF2\u652F\u4ED8" : data.status === "CANCELLED" ? "\u672A\u652F\u4ED8" : "\u5F85\u786E\u8BA4" })
400
+ data.amountText && /* @__PURE__ */ jsxs2("div", { className: "parking-result__amount-row flex items-baseline gap-1.5", children: [
401
+ /* @__PURE__ */ jsx2("b", { className: `parking-result__amount text-3xl font-bold leading-8 tabular-nums ${RESULT_AMOUNT[tone]}`, children: data.amountText }),
402
+ /* @__PURE__ */ jsx2("span", { className: "text-xs text-secondary-foreground", children: data.status === "PAID" ? "\u5DF2\u652F\u4ED8" : data.status === "CANCELLED" ? "\u672A\u652F\u4ED8" : "\u5F85\u786E\u8BA4" })
394
403
  ] }),
395
- data.leaveNotice && /* @__PURE__ */ jsxs2("p", { className: "parking-result__leave", children: [
404
+ data.leaveNotice && /* @__PURE__ */ jsxs2("p", { className: "parking-result__leave flex items-center gap-1.5 rounded-lg border-2 border-warn-border bg-warn-surface px-2.5 py-2 text-xs font-semibold leading-4 text-warn-ink", children: [
396
405
  /* @__PURE__ */ jsx2(Clock2, { size: 16, weight: "fill" }),
397
406
  data.leaveNotice
398
407
  ] }),
399
- data.details && data.details.length > 0 && /* @__PURE__ */ jsx2("dl", { className: "parking-result__details", children: data.details.map((d) => /* @__PURE__ */ jsxs2("div", { children: [
400
- /* @__PURE__ */ jsx2("dt", { children: d.label }),
401
- /* @__PURE__ */ jsx2("dd", { children: d.value })
408
+ data.details && data.details.length > 0 && /* @__PURE__ */ jsx2("dl", { className: "parking-result__details grid gap-1.75 rounded-md bg-muted px-3 py-2.75", children: data.details.map((d) => /* @__PURE__ */ jsxs2("div", { className: "flex items-baseline justify-between gap-2.5", children: [
409
+ /* @__PURE__ */ jsx2("dt", { className: "text-xs leading-4 text-secondary-foreground", children: d.label }),
410
+ /* @__PURE__ */ jsx2("dd", { className: "text-right text-xs font-semibold leading-4 break-words text-foreground", children: d.value })
402
411
  ] }, d.label)) }),
403
412
  data.retryable && data.paymentRef && !isHistory && /* @__PURE__ */ jsx2(
404
413
  "button",
405
414
  {
406
415
  type: "button",
407
- className: "parking-result__refresh",
416
+ className: "parking-result__refresh min-h-8.5 cursor-pointer rounded-full border-2 border-primary-foreground bg-primary-soft px-4.5 text-xs font-semibold text-primary disabled:cursor-not-allowed disabled:opacity-50",
408
417
  disabled: !token,
409
418
  onClick: () => {
410
419
  if (!token || isHistory) return;
@@ -423,34 +432,31 @@ var parking_payment_result_default = markSelfRendering2(ParkingPaymentResultCard
423
432
 
424
433
  // src/client/cards/parking-payment-records/index.tsx
425
434
  import { useEffect as useEffect2, useId, useRef, useState as useState2 } from "react";
426
- import { createPortal } from "react-dom";
427
435
  import { CaretDown, Receipt, X } from "@phosphor-icons/react";
436
+ import { Overlay } from "@tbox.cn/app-agent-ui-kit/overlay";
428
437
  import { markSelfRendering as markSelfRendering3, sendCardAction as sendCardAction3 } from "@tbox.cn/app-agent-sdk-client";
429
438
  import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
430
439
  var PAGE_SIZE = 5;
440
+ var RECORD_TONE = {
441
+ paid: "text-success",
442
+ refunded: "text-warning",
443
+ closed: "text-muted-foreground",
444
+ unknown: "text-muted-foreground"
445
+ };
446
+ function recordTone(status) {
447
+ const key = status.toLowerCase();
448
+ return RECORD_TONE[key] ?? RECORD_TONE.unknown;
449
+ }
431
450
  function RecordDetailSheet(props) {
432
451
  const { open, record, isHistory, cardId, invoiceToken, onClose } = props;
433
- const panelRef = useRef(null);
434
452
  const closeButtonRef = useRef(null);
435
453
  const titleId = useId();
454
+ const [closing, setClosing] = useState2(false);
455
+ const requestClose = () => setClosing(true);
436
456
  useEffect2(() => {
437
- if (!open || !record) return;
438
- const previousFocus = document.activeElement instanceof HTMLElement ? document.activeElement : null;
439
- const previousOverflow = document.body.style.overflow;
440
- document.body.style.overflow = "hidden";
441
- closeButtonRef.current?.focus();
442
- const onKeyDown = (event) => {
443
- if (event.key === "Escape") onCloseRef.current();
444
- };
445
- const onCloseRef = { current: onClose };
446
- document.addEventListener("keydown", onKeyDown);
447
- return () => {
448
- document.removeEventListener("keydown", onKeyDown);
449
- document.body.style.overflow = previousOverflow;
450
- previousFocus?.focus();
451
- };
457
+ if (open) setClosing(false);
452
458
  }, [open]);
453
- if (!open || !record || typeof document === "undefined") return null;
459
+ if (!record) return null;
454
460
  const act = (actionId, recordRef, token) => {
455
461
  if (!token || !cardId || isHistory) return;
456
462
  sendCardAction3(
@@ -459,91 +465,90 @@ function RecordDetailSheet(props) {
459
465
  { recordRef: String(recordRef) }
460
466
  );
461
467
  };
462
- return createPortal(
463
- /* @__PURE__ */ jsxs3("div", { className: "parking-sheet", role: "presentation", children: [
464
- /* @__PURE__ */ jsx3("div", { className: "parking-sheet__mask", "aria-hidden": "true", onClick: onClose }),
465
- /* @__PURE__ */ jsxs3(
466
- "section",
467
- {
468
- ref: panelRef,
469
- className: "parking-sheet__panel",
470
- role: "dialog",
471
- "aria-modal": "true",
472
- "aria-labelledby": titleId,
473
- children: [
474
- /* @__PURE__ */ jsxs3("header", { className: "parking-sheet__header", children: [
475
- /* @__PURE__ */ jsx3("h2", { id: titleId, children: "\u8BA2\u5355\u8BE6\u60C5" }),
476
- /* @__PURE__ */ jsx3(
477
- "button",
478
- {
479
- ref: closeButtonRef,
480
- type: "button",
481
- className: "parking-sheet__close",
482
- "aria-label": "\u5173\u95ED\u8BA2\u5355\u8BE6\u60C5",
483
- onClick: onClose,
484
- children: /* @__PURE__ */ jsx3(X, { size: 20, weight: "bold" })
485
- }
486
- )
468
+ return /* @__PURE__ */ jsxs3(
469
+ Overlay,
470
+ {
471
+ open: open && !closing,
472
+ onDismiss: requestClose,
473
+ onExited: onClose,
474
+ placement: "bottom",
475
+ labelledBy: titleId,
476
+ initialFocus: closeButtonRef,
477
+ exitMs: 200,
478
+ rootClassName: "parking-sheet group",
479
+ maskClassName: "bg-scrim animate-[parking-sheet-fade-in_200ms_ease_both] group-data-[state=closed]:animate-[parking-sheet-fade-out_200ms_ease-in_both] motion-reduce:animate-none",
480
+ panelClassName: "parking-sheet__panel flex max-h-[60vh] w-full flex-col rounded-t-xl bg-card shadow-[0_-8px_32px_rgba(0,0,0,0.12)] animate-[parking-sheet-in_240ms_cubic-bezier(0.22,0.72,0.24,1)_both] group-data-[state=closed]:animate-[parking-sheet-out_200ms_ease-in_both] motion-reduce:animate-none",
481
+ children: [
482
+ /* @__PURE__ */ jsxs3("header", { className: "parking-sheet__header flex items-center justify-between border-b border-border px-3 pb-1.5 pt-2.5", children: [
483
+ /* @__PURE__ */ jsx3("h2", { id: titleId, className: "m-0 text-base font-bold text-foreground", children: "\u8BA2\u5355\u8BE6\u60C5" }),
484
+ /* @__PURE__ */ jsx3(
485
+ "button",
486
+ {
487
+ ref: closeButtonRef,
488
+ type: "button",
489
+ className: "parking-sheet__close flex size-5 cursor-pointer items-center justify-center rounded-full border-0 bg-muted text-secondary-foreground hover:bg-neutral-soft",
490
+ "aria-label": "\u5173\u95ED\u8BA2\u5355\u8BE6\u60C5",
491
+ onClick: requestClose,
492
+ children: /* @__PURE__ */ jsx3(X, { size: 20, weight: "bold" })
493
+ }
494
+ )
495
+ ] }),
496
+ /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__body flex-1 overflow-y-auto px-3 pb-5 pt-2.5", children: [
497
+ /* @__PURE__ */ jsx3("div", { className: "parking-sheet__plate mb-2", children: /* @__PURE__ */ jsxs3("span", { className: "parking-plate plate-lockup font-mono tabular-nums", children: [
498
+ /* @__PURE__ */ jsx3("b", { children: plateParts(record.plateNo)[0] }),
499
+ /* @__PURE__ */ jsx3("span", { children: plateParts(record.plateNo)[1] })
500
+ ] }) }),
501
+ /* @__PURE__ */ jsxs3("dl", { className: "parking-sheet__facts m-0 grid gap-1.5", children: [
502
+ /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row flex justify-between gap-2.5", children: [
503
+ /* @__PURE__ */ jsx3("dt", { className: "text-xs text-secondary-foreground", children: "\u8BA2\u5355\u53F7" }),
504
+ /* @__PURE__ */ jsx3("dd", { className: "m-0 break-all text-right text-xs text-foreground", children: record.recordRef })
505
+ ] }),
506
+ /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row flex justify-between gap-2.5", children: [
507
+ /* @__PURE__ */ jsx3("dt", { className: "text-xs text-secondary-foreground", children: "\u91D1\u989D" }),
508
+ /* @__PURE__ */ jsx3("dd", { className: "m-0 break-all text-right text-xs text-foreground", children: record.amountText })
487
509
  ] }),
488
- /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__body", children: [
489
- /* @__PURE__ */ jsx3("div", { className: "parking-sheet__plate", children: /* @__PURE__ */ jsxs3("span", { className: "parking-plate", children: [
490
- /* @__PURE__ */ jsx3("b", { children: plateParts(record.plateNo)[0] }),
491
- /* @__PURE__ */ jsx3("span", { children: plateParts(record.plateNo)[1] })
492
- ] }) }),
493
- /* @__PURE__ */ jsxs3("dl", { className: "parking-sheet__facts", children: [
494
- /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row", children: [
495
- /* @__PURE__ */ jsx3("dt", { children: "\u8BA2\u5355\u53F7" }),
496
- /* @__PURE__ */ jsx3("dd", { children: record.recordRef })
497
- ] }),
498
- /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row", children: [
499
- /* @__PURE__ */ jsx3("dt", { children: "\u91D1\u989D" }),
500
- /* @__PURE__ */ jsx3("dd", { children: record.amountText })
501
- ] }),
502
- /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row", children: [
503
- /* @__PURE__ */ jsx3("dt", { children: "\u72B6\u6001" }),
504
- /* @__PURE__ */ jsx3("dd", { className: recordStatusClass(record.status), children: recordStatusText(record.status, record.statusText) })
505
- ] }),
506
- record.paidAtText && /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row", children: [
507
- /* @__PURE__ */ jsx3("dt", { children: "\u652F\u4ED8\u65F6\u95F4" }),
508
- /* @__PURE__ */ jsx3("dd", { children: record.paidAtText })
509
- ] }),
510
- record.plazaName && /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row", children: [
511
- /* @__PURE__ */ jsx3("dt", { children: "\u5E7F\u573A" }),
512
- /* @__PURE__ */ jsx3("dd", { children: record.plazaName })
513
- ] }),
514
- record.parkName && /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row", children: [
515
- /* @__PURE__ */ jsx3("dt", { children: "\u505C\u8F66\u573A" }),
516
- /* @__PURE__ */ jsx3("dd", { children: record.parkName })
517
- ] }),
518
- record.entryAtText && /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row", children: [
519
- /* @__PURE__ */ jsx3("dt", { children: "\u5165\u573A\u65F6\u95F4" }),
520
- /* @__PURE__ */ jsx3("dd", { children: record.entryAtText })
521
- ] }),
522
- record.exitAtText && /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row", children: [
523
- /* @__PURE__ */ jsx3("dt", { children: "\u51FA\u573A\u65F6\u95F4" }),
524
- /* @__PURE__ */ jsx3("dd", { children: record.exitAtText })
525
- ] })
526
- ] }),
527
- !isHistory && record.invoiceEligible && !record.invoiceIssued && invoiceToken && /* @__PURE__ */ jsxs3(
528
- "button",
529
- {
530
- type: "button",
531
- className: "parking-sheet__invoice-btn",
532
- "data-action-id": "parking.apply-invoice",
533
- onClick: () => act("parking.apply-invoice", record.recordRef, invoiceToken),
534
- children: [
535
- /* @__PURE__ */ jsx3(Receipt, { size: 16 }),
536
- "\u7533\u8BF7\u5F00\u7968"
537
- ]
538
- }
539
- ),
540
- !isHistory && record.invoiceIssued && /* @__PURE__ */ jsx3("span", { className: "parking-sheet__invoiced", children: "\u5DF2\u7533\u8BF7\u5F00\u7968" })
510
+ /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row flex justify-between gap-2.5", children: [
511
+ /* @__PURE__ */ jsx3("dt", { className: "text-xs text-secondary-foreground", children: "\u72B6\u6001" }),
512
+ /* @__PURE__ */ jsx3("dd", { className: `${recordStatusClass(record.status)} m-0 break-all text-right text-xs ${recordTone(record.status)}`, children: recordStatusText(record.status, record.statusText) })
513
+ ] }),
514
+ record.paidAtText && /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row flex justify-between gap-2.5", children: [
515
+ /* @__PURE__ */ jsx3("dt", { className: "text-xs text-secondary-foreground", children: "\u652F\u4ED8\u65F6\u95F4" }),
516
+ /* @__PURE__ */ jsx3("dd", { className: "m-0 break-all text-right text-xs text-foreground", children: record.paidAtText })
517
+ ] }),
518
+ record.plazaName && /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row flex justify-between gap-2.5", children: [
519
+ /* @__PURE__ */ jsx3("dt", { className: "text-xs text-secondary-foreground", children: "\u5E7F\u573A" }),
520
+ /* @__PURE__ */ jsx3("dd", { className: "m-0 break-all text-right text-xs text-foreground", children: record.plazaName })
521
+ ] }),
522
+ record.parkName && /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row flex justify-between gap-2.5", children: [
523
+ /* @__PURE__ */ jsx3("dt", { className: "text-xs text-secondary-foreground", children: "\u505C\u8F66\u573A" }),
524
+ /* @__PURE__ */ jsx3("dd", { className: "m-0 break-all text-right text-xs text-foreground", children: record.parkName })
525
+ ] }),
526
+ record.entryAtText && /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row flex justify-between gap-2.5", children: [
527
+ /* @__PURE__ */ jsx3("dt", { className: "text-xs text-secondary-foreground", children: "\u5165\u573A\u65F6\u95F4" }),
528
+ /* @__PURE__ */ jsx3("dd", { className: "m-0 break-all text-right text-xs text-foreground", children: record.entryAtText })
529
+ ] }),
530
+ record.exitAtText && /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row flex justify-between gap-2.5", children: [
531
+ /* @__PURE__ */ jsx3("dt", { className: "text-xs text-secondary-foreground", children: "\u51FA\u573A\u65F6\u95F4" }),
532
+ /* @__PURE__ */ jsx3("dd", { className: "m-0 break-all text-right text-xs text-foreground", children: record.exitAtText })
541
533
  ] })
542
- ]
543
- }
544
- )
545
- ] }),
546
- document.body
534
+ ] }),
535
+ !isHistory && record.invoiceEligible && !record.invoiceIssued && invoiceToken && /* @__PURE__ */ jsxs3(
536
+ "button",
537
+ {
538
+ type: "button",
539
+ className: "parking-sheet__invoice-btn mt-2.5 inline-flex min-h-6.5 w-full cursor-pointer items-center justify-center gap-1.5 rounded-full border-2 border-primary-foreground bg-primary-soft px-3 text-xs text-primary",
540
+ "data-action-id": "parking.apply-invoice",
541
+ onClick: () => act("parking.apply-invoice", record.recordRef, invoiceToken),
542
+ children: [
543
+ /* @__PURE__ */ jsx3(Receipt, { size: 16 }),
544
+ "\u7533\u8BF7\u5F00\u7968"
545
+ ]
546
+ }
547
+ ),
548
+ !isHistory && record.invoiceIssued && /* @__PURE__ */ jsx3("span", { className: "parking-sheet__invoiced mt-2.5 flex min-h-6.5 w-full items-center justify-center text-xs text-success", children: "\u5DF2\u7533\u8BF7\u5F00\u7968" })
549
+ ] })
550
+ ]
551
+ }
547
552
  );
548
553
  }
549
554
  function ParkingPaymentRecordsCard(props) {
@@ -554,25 +559,25 @@ function ParkingPaymentRecordsCard(props) {
554
559
  const showAll = isHistory || expanded;
555
560
  const visible = collapsible && !showAll ? data.items.slice(0, PAGE_SIZE) : data.items;
556
561
  const invoiceToken = actionTokens?.["parking.apply-invoice"];
557
- return /* @__PURE__ */ jsxs3("section", { className: "parking-records", children: [
558
- /* @__PURE__ */ jsxs3("header", { className: "parking-records__head", children: [
559
- /* @__PURE__ */ jsxs3("div", { className: "parking-records__heading", children: [
560
- /* @__PURE__ */ jsx3("span", { className: "parking-records__head-icon", children: /* @__PURE__ */ jsx3(Receipt, { weight: "duotone", size: 24 }) }),
561
- /* @__PURE__ */ jsxs3("div", { children: [
562
- /* @__PURE__ */ jsx3("h4", { children: "\u7F34\u8D39\u8BB0\u5F55" }),
563
- /* @__PURE__ */ jsx3("p", { children: "\u8FD1 6 \u4E2A\u6708\u505C\u8F66\u7F34\u8D39\u660E\u7EC6" })
562
+ return /* @__PURE__ */ jsxs3("section", { className: "parking-records w-full bg-card p-3.5 text-foreground", children: [
563
+ /* @__PURE__ */ jsxs3("header", { className: "parking-records__head mb-2.5 flex items-center justify-between gap-2", children: [
564
+ /* @__PURE__ */ jsxs3("div", { className: "parking-records__heading flex min-w-0 items-center gap-2", children: [
565
+ /* @__PURE__ */ jsx3("span", { className: "parking-records__head-icon grid size-8 shrink-0 place-items-center rounded-md bg-primary-soft text-primary", children: /* @__PURE__ */ jsx3(Receipt, { weight: "duotone", size: 24 }) }),
566
+ /* @__PURE__ */ jsxs3("div", { className: "flex min-w-0 flex-col", children: [
567
+ /* @__PURE__ */ jsx3("h4", { className: "truncate text-base font-bold leading-5.5 text-foreground", children: "\u7F34\u8D39\u8BB0\u5F55" }),
568
+ /* @__PURE__ */ jsx3("p", { className: "mt-1 text-xs leading-4 text-secondary-foreground", children: "\u8FD1 6 \u4E2A\u6708\u505C\u8F66\u7F34\u8D39\u660E\u7EC6" })
564
569
  ] })
565
570
  ] }),
566
- /* @__PURE__ */ jsxs3("span", { children: [
571
+ /* @__PURE__ */ jsxs3("span", { className: "shrink-0 text-xs text-secondary-foreground", children: [
567
572
  "\u5171 ",
568
573
  data.total,
569
574
  " \u6761"
570
575
  ] })
571
576
  ] }),
572
- visible.length === 0 ? /* @__PURE__ */ jsx3("div", { className: "parking-records__empty", children: "\u6682\u65E0\u7F34\u8D39\u8BB0\u5F55" }) : /* @__PURE__ */ jsx3("ul", { className: "parking-records__list", children: visible.map((r) => /* @__PURE__ */ jsxs3(
577
+ visible.length === 0 ? /* @__PURE__ */ jsx3("div", { className: "parking-records__empty py-5 text-center text-xs text-muted-foreground", children: "\u6682\u65E0\u7F34\u8D39\u8BB0\u5F55" }) : /* @__PURE__ */ jsx3("ul", { className: "parking-records__list m-0 grid list-none gap-1.5 p-0", children: visible.map((r) => /* @__PURE__ */ jsxs3(
573
578
  "li",
574
579
  {
575
- className: "parking-records__row",
580
+ className: "parking-records__row grid cursor-pointer grid-cols-[minmax(0,1fr)_auto] gap-x-2.5 gap-y-1 rounded-md border-2 border-border bg-muted px-2.5 py-2.25 transition-colors hover:border-primary-foreground hover:bg-primary-soft focus-visible:outline-none",
576
581
  role: isHistory ? void 0 : "button",
577
582
  tabIndex: isHistory ? void 0 : 0,
578
583
  onClick: isHistory ? void 0 : () => setSelectedRecord(r),
@@ -583,19 +588,19 @@ function ParkingPaymentRecordsCard(props) {
583
588
  }
584
589
  },
585
590
  children: [
586
- /* @__PURE__ */ jsxs3("div", { className: "parking-records__main", children: [
587
- /* @__PURE__ */ jsxs3("span", { className: "parking-records__plate parking-plate", children: [
591
+ /* @__PURE__ */ jsxs3("div", { className: "parking-records__main grid min-w-0 gap-1", children: [
592
+ /* @__PURE__ */ jsxs3("span", { className: "parking-records__plate parking-plate plate-lockup font-mono tabular-nums", children: [
588
593
  /* @__PURE__ */ jsx3("b", { children: plateParts(r.plateNo)[0] }),
589
594
  /* @__PURE__ */ jsx3("span", { children: plateParts(r.plateNo)[1] })
590
595
  ] }),
591
- /* @__PURE__ */ jsxs3("small", { children: [
596
+ /* @__PURE__ */ jsxs3("small", { className: "truncate text-xs leading-4 text-secondary-foreground", children: [
592
597
  r.paidAtText,
593
598
  r.parkName ? ` \xB7 ${r.parkName}` : ""
594
599
  ] })
595
600
  ] }),
596
- /* @__PURE__ */ jsxs3("div", { className: "parking-records__amount", children: [
597
- /* @__PURE__ */ jsx3("strong", { children: r.amountText }),
598
- /* @__PURE__ */ jsx3("em", { className: recordStatusClass(r.status), children: recordStatusText(r.status, r.statusText) })
601
+ /* @__PURE__ */ jsxs3("div", { className: "parking-records__amount grid content-start justify-items-end gap-0.5", children: [
602
+ /* @__PURE__ */ jsx3("strong", { className: "text-base font-bold leading-5.5 text-foreground", children: r.amountText }),
603
+ /* @__PURE__ */ jsx3("em", { className: `${recordStatusClass(r.status)} text-xs not-italic leading-4 ${recordTone(r.status)}`, children: recordStatusText(r.status, r.statusText) })
599
604
  ] })
600
605
  ]
601
606
  },
@@ -605,7 +610,7 @@ function ParkingPaymentRecordsCard(props) {
605
610
  "button",
606
611
  {
607
612
  type: "button",
608
- className: "parking-records__more",
613
+ className: "parking-records__more mt-2 flex min-h-7.5 w-full cursor-pointer items-center justify-center gap-1.5 rounded-md border-0 bg-muted text-xs text-secondary-foreground [&_svg]:transition-transform [&_svg[data-rotated]]:rotate-180",
609
614
  "aria-expanded": expanded,
610
615
  onClick: () => setExpanded((v) => !v),
611
616
  children: [
@@ -614,8 +619,8 @@ function ParkingPaymentRecordsCard(props) {
614
619
  ]
615
620
  }
616
621
  ),
617
- data.caveats.length > 0 && /* @__PURE__ */ jsx3("p", { className: "parking-records__caveats", children: data.caveats.join("\uFF1B") }),
618
- data.message && /* @__PURE__ */ jsx3("p", { className: "parking-records__message", children: data.message }),
622
+ data.caveats.length > 0 && /* @__PURE__ */ jsx3("p", { className: "parking-records__caveats mt-2.25 text-xs leading-4 text-muted-foreground", children: data.caveats.join("\uFF1B") }),
623
+ data.message && /* @__PURE__ */ jsx3("p", { className: "parking-records__message mt-2.25 rounded-md bg-primary-soft px-2 py-1.75 text-xs leading-4 text-primary", children: data.message }),
619
624
  /* @__PURE__ */ jsx3(
620
625
  RecordDetailSheet,
621
626
  {
@@ -704,7 +709,7 @@ function PlateKeyboard(props) {
704
709
  "button",
705
710
  {
706
711
  type: "button",
707
- className: "parking-kb__key",
712
+ className: "parking-kb__key h-6.5 min-w-0 rounded-sm bg-card text-xs font-semibold tabular-nums transition active:scale-95 active:bg-muted disabled:opacity-35",
708
713
  "data-kb-key": key,
709
714
  disabled: isKeyDisabled(state, key),
710
715
  title: key === "\u53F0" ? "\u6682\u4E0D\u652F\u6301\u53F0\u6E7E\u5730\u533A\u8F66\u724C" : void 0,
@@ -714,13 +719,13 @@ function PlateKeyboard(props) {
714
719
  key
715
720
  );
716
721
  if (state.panel === "province") {
717
- return /* @__PURE__ */ jsxs4("div", { className: "parking-kb", role: "group", "aria-label": "\u8F66\u724C\u7701\u4EFD\u952E\u76D8", children: [
722
+ return /* @__PURE__ */ jsxs4("div", { className: "parking-kb mt-1 grid grid-cols-10 gap-1.5 rounded-lg bg-muted p-1.5", role: "group", "aria-label": "\u8F66\u724C\u7701\u4EFD\u952E\u76D8", children: [
718
723
  PLATE_PROVINCES.map(charKey),
719
724
  /* @__PURE__ */ jsx4(
720
725
  "button",
721
726
  {
722
727
  type: "button",
723
- className: "parking-kb__key parking-kb__key--fn parking-kb__key--span2",
728
+ className: "parking-kb__key parking-kb__key--fn col-span-2 h-6.5 min-w-0 rounded-sm bg-muted text-xs font-medium text-secondary-foreground transition active:scale-95 active:bg-neutral-soft disabled:opacity-35",
724
729
  "data-kb-action": "letters",
725
730
  onClick: () => onSwitchPanel("alnum"),
726
731
  children: "\u5B57\u6BCD"
@@ -730,7 +735,7 @@ function PlateKeyboard(props) {
730
735
  "button",
731
736
  {
732
737
  type: "button",
733
- className: "parking-kb__key parking-kb__key--fn parking-kb__key--span3",
738
+ className: "parking-kb__key parking-kb__key--fn col-span-3 h-6.5 min-w-0 rounded-sm bg-muted text-xs font-medium text-secondary-foreground transition active:scale-95 active:bg-neutral-soft disabled:opacity-35",
734
739
  "data-kb-action": "backspace",
735
740
  "aria-label": "\u9000\u683C",
736
741
  onClick: onBackspace,
@@ -741,7 +746,7 @@ function PlateKeyboard(props) {
741
746
  "button",
742
747
  {
743
748
  type: "button",
744
- className: "parking-kb__key parking-kb__key--done parking-kb__key--span4",
749
+ className: "parking-kb__key parking-kb__key--done col-span-4 h-6.5 min-w-0 rounded-sm bg-primary text-xs font-semibold text-white transition active:bg-[var(--tbox-primary-dark,#2368ec)] disabled:opacity-35",
745
750
  "data-kb-action": "done",
746
751
  onClick: onDone,
747
752
  children: "\u5B8C\u6210"
@@ -749,7 +754,7 @@ function PlateKeyboard(props) {
749
754
  )
750
755
  ] });
751
756
  }
752
- return /* @__PURE__ */ jsxs4("div", { className: "parking-kb", role: "group", "aria-label": "\u8F66\u724C\u5B57\u6BCD\u6570\u5B57\u952E\u76D8", children: [
757
+ return /* @__PURE__ */ jsxs4("div", { className: "parking-kb mt-1 grid grid-cols-10 gap-1.5 rounded-lg bg-muted p-1.5", role: "group", "aria-label": "\u8F66\u724C\u5B57\u6BCD\u6570\u5B57\u952E\u76D8", children: [
753
758
  PLATE_DIGITS.map(charKey),
754
759
  PLATE_LETTERS.slice(0, 10).map(charKey),
755
760
  PLATE_LETTERS.slice(10, 20).map(charKey),
@@ -758,7 +763,7 @@ function PlateKeyboard(props) {
758
763
  "button",
759
764
  {
760
765
  type: "button",
761
- className: "parking-kb__key parking-kb__key--fn parking-kb__key--span3",
766
+ className: "parking-kb__key parking-kb__key--fn col-span-3 h-6.5 min-w-0 rounded-sm bg-muted text-xs font-medium text-secondary-foreground transition active:scale-95 active:bg-neutral-soft disabled:opacity-35",
762
767
  "data-kb-action": "province",
763
768
  onClick: () => onSwitchPanel("province"),
764
769
  children: "\u7701\u4EFD"
@@ -768,7 +773,7 @@ function PlateKeyboard(props) {
768
773
  "button",
769
774
  {
770
775
  type: "button",
771
- className: "parking-kb__key parking-kb__key--fn parking-kb__key--span3",
776
+ className: "parking-kb__key parking-kb__key--fn col-span-3 h-6.5 min-w-0 rounded-sm bg-muted text-xs font-medium text-secondary-foreground transition active:scale-95 active:bg-neutral-soft disabled:opacity-35",
772
777
  "data-kb-action": "backspace",
773
778
  "aria-label": "\u9000\u683C",
774
779
  onClick: onBackspace,
@@ -779,7 +784,7 @@ function PlateKeyboard(props) {
779
784
  "button",
780
785
  {
781
786
  type: "button",
782
- className: "parking-kb__key parking-kb__key--done parking-kb__key--span4",
787
+ className: "parking-kb__key parking-kb__key--done col-span-4 h-6.5 min-w-0 rounded-sm bg-primary text-xs font-semibold text-white transition active:bg-[var(--tbox-primary-dark,#2368ec)] disabled:opacity-35",
783
788
  "data-kb-action": "done",
784
789
  onClick: onDone,
785
790
  children: "\u5B8C\u6210"
@@ -851,14 +856,14 @@ function ParkingVehicleManagementCard(props) {
851
856
  };
852
857
  const cells = plateCells(plate);
853
858
  const activeCell = kbOpen ? kb.cursor : plateFocused ? Math.min(plate.length, PLATE_CELL_COUNT - 1) : -1;
854
- const renderPlateField = () => /* @__PURE__ */ jsxs5("div", { className: "parking-vm__plate-field", children: [
855
- /* @__PURE__ */ jsx5("span", { className: "parking-vm__plate-label", children: "\u8F66\u724C" }),
856
- /* @__PURE__ */ jsxs5("div", { className: "parking-vm__plate-cells", children: [
859
+ const renderPlateField = () => /* @__PURE__ */ jsxs5("div", { className: "parking-vm__plate-field mb-1.75 flex items-center gap-2.25", children: [
860
+ /* @__PURE__ */ jsx5("span", { className: "parking-vm__plate-label shrink-0 text-sm font-semibold text-foreground", children: "\u8F66\u724C" }),
861
+ /* @__PURE__ */ jsxs5("div", { className: "parking-vm__plate-cells relative flex min-w-0 flex-1 cursor-text items-center gap-1", children: [
857
862
  /* @__PURE__ */ jsx5(
858
863
  "input",
859
864
  {
860
865
  ref: plateInputRef,
861
- className: "parking-vm__plate-native",
866
+ className: "parking-vm__plate-native pointer-events-none absolute inset-0 w-full cursor-text border-0 bg-transparent p-0 text-transparent caret-transparent outline-none",
862
867
  value: plate,
863
868
  maxLength: PLATE_CELL_COUNT,
864
869
  autoCapitalize: "characters",
@@ -882,13 +887,13 @@ function ParkingVehicleManagementCard(props) {
882
887
  cells.map((ch, i) => {
883
888
  const active = (kbOpen || plateFocused) && i === activeCell;
884
889
  return /* @__PURE__ */ jsxs5(Fragment, { children: [
885
- i === 2 && /* @__PURE__ */ jsx5("i", { className: "parking-vm__plate-dot", "aria-hidden": "true" }),
890
+ i === 2 && /* @__PURE__ */ jsx5("i", { className: "parking-vm__plate-dot size-1 shrink-0 rounded-full bg-border-strong", "aria-hidden": "true" }),
886
891
  /* @__PURE__ */ jsx5(
887
892
  "span",
888
893
  {
889
894
  className: [
890
- "parking-vm__plate-cell",
891
- active ? "parking-vm__plate-cell--active" : ""
895
+ "parking-vm__plate-cell flex h-10.5 min-w-0 flex-1 items-center justify-center rounded-md border-2 border-transparent bg-muted text-base font-semibold tabular-nums transition-colors",
896
+ active ? "parking-vm__plate-cell--active border-primary bg-card" : ""
892
897
  ].filter(Boolean).join(" "),
893
898
  onClick: () => handleCellsClick(i),
894
899
  children: ch
@@ -919,18 +924,18 @@ function ParkingVehicleManagementCard(props) {
919
924
  const showCompose = isEmpty || composing;
920
925
  const canCancel = !isEmpty;
921
926
  const showEnrollGuide = data.membership?.state === "not_enrolled" && !isHistory;
922
- return /* @__PURE__ */ jsxs5("section", { className: `parking-vm${showCompose ? " parking-vm--composing" : ""}`, children: [
923
- /* @__PURE__ */ jsxs5("header", { className: "parking-vm__head", children: [
924
- /* @__PURE__ */ jsx5("span", { className: "parking-vm__head-icon", children: /* @__PURE__ */ jsx5(Car2, { weight: "duotone", size: 24 }) }),
925
- /* @__PURE__ */ jsxs5("div", { className: "parking-vm__heading", children: [
926
- /* @__PURE__ */ jsx5("h4", { children: showCompose ? "\u6DFB\u52A0\u8F66\u8F86" : "\u6211\u7684\u8F66\u8F86" }),
927
- /* @__PURE__ */ jsx5("p", { children: "\u8F66\u8F86\u7528\u4E8E\u7F34\u8D39\u4E0E\u6743\u76CA\u6298\u6263" })
927
+ return /* @__PURE__ */ jsxs5("section", { className: `parking-vm grid w-full gap-2.75 bg-card p-3.5 text-foreground ${showCompose ? " parking-vm--composing" : ""}`, children: [
928
+ /* @__PURE__ */ jsxs5("header", { className: "parking-vm__head mb-3 flex items-center gap-2", children: [
929
+ /* @__PURE__ */ jsx5("span", { className: "parking-vm__head-icon grid size-8 shrink-0 place-items-center rounded-md bg-primary-soft text-primary", children: /* @__PURE__ */ jsx5(Car2, { weight: "duotone", size: 24 }) }),
930
+ /* @__PURE__ */ jsxs5("div", { className: "parking-vm__heading flex min-w-0 flex-1 flex-col", children: [
931
+ /* @__PURE__ */ jsx5("h4", { className: "truncate text-base font-bold leading-5.5 text-foreground", children: showCompose ? "\u6DFB\u52A0\u8F66\u8F86" : "\u6211\u7684\u8F66\u8F86" }),
932
+ /* @__PURE__ */ jsx5("p", { className: "mt-1 text-xs leading-4 text-secondary-foreground", children: "\u8F66\u8F86\u7528\u4E8E\u7F34\u8D39\u4E0E\u6743\u76CA\u6298\u6263" })
928
933
  ] }),
929
934
  showCompose ? canCancel && /* @__PURE__ */ jsx5(
930
935
  "button",
931
936
  {
932
937
  type: "button",
933
- className: "parking-vm__head-btn",
938
+ className: "parking-vm__head-btn inline-flex shrink-0 items-center gap-1 rounded-full border-0 bg-muted px-2.25 py-1 text-xs text-secondary-foreground active:opacity-70",
934
939
  onClick: () => {
935
940
  setComposing(false);
936
941
  setPlate("");
@@ -944,7 +949,7 @@ function ParkingVehicleManagementCard(props) {
944
949
  "button",
945
950
  {
946
951
  type: "button",
947
- className: "parking-vm__head-btn parking-vm__head-btn--add",
952
+ className: "parking-vm__head-btn parking-vm__head-btn--add inline-flex shrink-0 items-center gap-1 rounded-full border-0 bg-primary-soft px-2.25 py-1 text-xs font-semibold text-primary active:opacity-70",
948
953
  disabled: !bindToken || boundLimit,
949
954
  title: boundLimit ? "\u6700\u591A\u7ED1\u5B9A 3 \u8F86\u8F66" : void 0,
950
955
  onClick: () => {
@@ -976,55 +981,55 @@ function ParkingVehicleManagementCard(props) {
976
981
  "button",
977
982
  {
978
983
  type: "button",
979
- className: `parking-vm__primary-btn parking-payment__action parking-payment__action--primary${bindingAction === "bind" ? " parking-vm__btn--loading" : ""}`,
984
+ className: `parking-vm__primary-btn flex min-h-9 w-full items-center justify-center gap-1 whitespace-nowrap rounded-full border-2 border-primary bg-primary px-2.5 text-sm font-bold text-white shadow-md disabled:border-border disabled:bg-muted disabled:text-muted-foreground disabled:shadow-none ${bindingAction === "bind" ? " opacity-70" : ""}`,
980
985
  disabled: isBindingPending || isHistory || !bindToken || !valid,
981
986
  onClick: () => act("parking.bind-vehicle", bindToken),
982
987
  children: [
983
- bindingAction === "bind" && /* @__PURE__ */ jsx5("span", { className: "parking-vm__spinner", "aria-hidden": "true" }),
988
+ bindingAction === "bind" && /* @__PURE__ */ jsx5("span", { className: "parking-vm__spinner inline-flex size-5.5 shrink-0 animate-spin rounded-full border-[3px] border-white-line border-t-white", "aria-hidden": "true" }),
984
989
  bindingAction === "bind" ? "\u7ED1\u5B9A\u4E2D\u2026" : "\u786E\u8BA4\u7ED1\u5B9A"
985
990
  ]
986
991
  }
987
992
  )
988
993
  ] }) : /* @__PURE__ */ jsxs5(Fragment2, { children: [
989
- isEmpty ? /* @__PURE__ */ jsx5("p", { className: "parking-vm__empty", children: "\u8FD8\u6CA1\u6709\u7ED1\u5B9A\u8F66\u8F86" }) : /* @__PURE__ */ jsx5("ul", { className: "parking-vm__bound", children: data.bound.map((v) => {
994
+ isEmpty ? /* @__PURE__ */ jsx5("p", { className: "parking-vm__empty", children: "\u8FD8\u6CA1\u6709\u7ED1\u5B9A\u8F66\u8F86" }) : /* @__PURE__ */ jsx5("ul", { className: "parking-vm__bound grid list-none gap-1.5 p-0", children: data.bound.map((v) => {
990
995
  const isUnbinding = unbindingRefs.has(v.vehicleRef);
991
996
  const [prefix, rest] = plateParts(v.plateNo);
992
- return /* @__PURE__ */ jsxs5("li", { className: "parking-vm__vehicle", children: [
993
- /* @__PURE__ */ jsx5("span", { className: "parking-vm__vehicle-icon", "aria-hidden": "true", children: /* @__PURE__ */ jsx5(Car2, { size: 19, weight: "fill" }) }),
994
- /* @__PURE__ */ jsxs5("span", { className: "parking-vm__vehicle-copy", children: [
995
- /* @__PURE__ */ jsxs5("span", { className: "parking-plate", children: [
997
+ return /* @__PURE__ */ jsxs5("li", { className: "parking-vm__vehicle flex items-center gap-1.75 rounded-md border-2 border-border bg-muted px-2.5 py-2.25", children: [
998
+ /* @__PURE__ */ jsx5("span", { className: "parking-vm__vehicle-icon grid size-6.5 shrink-0 place-items-center rounded-md bg-primary-soft text-primary", "aria-hidden": "true", children: /* @__PURE__ */ jsx5(Car2, { size: 19, weight: "fill" }) }),
999
+ /* @__PURE__ */ jsxs5("span", { className: "parking-vm__vehicle-copy flex min-w-0 flex-1 items-center gap-1.5", children: [
1000
+ /* @__PURE__ */ jsxs5("span", { className: "parking-plate plate-lockup truncate text-base font-semibold", children: [
996
1001
  /* @__PURE__ */ jsx5("b", { children: prefix }),
997
- rest && /* @__PURE__ */ jsx5("i", { className: "parking-plate__sep", "aria-hidden": "true", children: "\xB7" }),
1002
+ rest && /* @__PURE__ */ jsx5("i", { className: "parking-plate__sep mx-0.5 font-normal not-italic text-muted-foreground", "aria-hidden": "true", children: "\xB7" }),
998
1003
  /* @__PURE__ */ jsx5("span", { children: rest })
999
1004
  ] }),
1000
- v.parked === true && /* @__PURE__ */ jsx5("em", { className: "parking-vm__vehicle-state", children: "\u5DF2\u5165\u573A" })
1005
+ v.parked === true && /* @__PURE__ */ jsx5("em", { className: "parking-vm__vehicle-state shrink-0 rounded-full bg-success-soft px-1.5 py-0.5 text-xs font-medium not-italic leading-3.5 text-success", children: "\u5DF2\u5165\u573A" })
1001
1006
  ] }),
1002
- /* @__PURE__ */ jsx5("div", { className: "parking-vm__vehicle-actions", children: /* @__PURE__ */ jsx5(
1007
+ /* @__PURE__ */ jsx5("div", { className: "parking-vm__vehicle-actions flex shrink-0 gap-1.5", children: /* @__PURE__ */ jsx5(
1003
1008
  "button",
1004
1009
  {
1005
1010
  type: "button",
1006
1011
  "data-action-id": "parking.unbind-vehicle",
1007
1012
  disabled: isHistory || isUnbinding || !unbindToken,
1008
- className: isUnbinding ? "parking-vm__btn--loading" : "",
1013
+ className: `inline-flex size-7 items-center justify-center rounded-full border-0 bg-card text-muted-foreground active:bg-muted active:text-primary ${isUnbinding ? "parking-vm__btn--loading" : ""}`,
1009
1014
  onClick: () => vehicleAction("parking.unbind-vehicle", v.vehicleRef, unbindToken),
1010
1015
  title: "\u5220\u9664\u8F66\u8F86",
1011
1016
  "aria-label": `\u5220\u9664\u8F66\u724C ${v.plateNo}`,
1012
- children: isUnbinding ? /* @__PURE__ */ jsx5("span", { className: "parking-vm__spinner", "aria-hidden": "true" }) : /* @__PURE__ */ jsx5(TrashSimple, { size: 16, weight: "fill" })
1017
+ children: isUnbinding ? /* @__PURE__ */ jsx5("span", { className: "parking-vm__spinner inline-flex size-5.5 shrink-0 animate-spin rounded-full border-[3px] border-white-line border-t-white", "aria-hidden": "true" }) : /* @__PURE__ */ jsx5(TrashSimple, { size: 16, weight: "fill" })
1013
1018
  }
1014
1019
  ) })
1015
1020
  ] }, v.vehicleRef);
1016
1021
  }) }),
1017
- showEnrollGuide && /* @__PURE__ */ jsxs5("div", { className: "parking-vm__enroll", children: [
1018
- /* @__PURE__ */ jsx5("span", { className: "parking-vm__enroll-icon", "aria-hidden": "true", children: /* @__PURE__ */ jsx5(SealCheck, { size: 22, weight: "fill" }) }),
1019
- /* @__PURE__ */ jsxs5("div", { className: "parking-vm__enroll-copy", children: [
1020
- /* @__PURE__ */ jsx5("strong", { children: "\u5165\u4F1A\u4EAB\u505C\u8F66\u6743\u76CA" }),
1021
- /* @__PURE__ */ jsx5("small", { children: "\u79EF\u5206\u53EF\u62B5\u6263\u505C\u8F66\u8D39\uFF0C\u4F1A\u5458\u53E6\u4EAB\u6298\u6263" })
1022
+ showEnrollGuide && /* @__PURE__ */ jsxs5("div", { className: "parking-vm__enroll flex items-center gap-1.75 rounded-lg bg-warn-surface p-2.25", children: [
1023
+ /* @__PURE__ */ jsx5("span", { className: "parking-vm__enroll-icon grid size-6 shrink-0 place-items-center rounded-full bg-warning text-white", "aria-hidden": "true", children: /* @__PURE__ */ jsx5(SealCheck, { size: 22, weight: "fill" }) }),
1024
+ /* @__PURE__ */ jsxs5("div", { className: "parking-vm__enroll-copy min-w-0 flex-1", children: [
1025
+ /* @__PURE__ */ jsx5("strong", { className: "block truncate text-xs font-bold leading-4.5 text-warn-ink", children: "\u5165\u4F1A\u4EAB\u505C\u8F66\u6743\u76CA" }),
1026
+ /* @__PURE__ */ jsx5("small", { className: "block text-xs leading-4 text-warn-ink", children: "\u79EF\u5206\u53EF\u62B5\u6263\u505C\u8F66\u8D39\uFF0C\u4F1A\u5458\u53E6\u4EAB\u6298\u6263" })
1022
1027
  ] }),
1023
1028
  /* @__PURE__ */ jsx5(
1024
1029
  "button",
1025
1030
  {
1026
1031
  type: "button",
1027
- className: "parking-vm__enroll-btn",
1032
+ className: "parking-vm__enroll-btn shrink-0 rounded-full border-0 bg-warning px-3 py-1.5 text-xs font-semibold text-white active:opacity-85",
1028
1033
  onClick: () => sendCardAction4(cardId, { type: "sendMessage", value: "\u6211\u8981\u5165\u4F1A", visible: true }),
1029
1034
  children: "\u7ACB\u5373\u5165\u4F1A"
1030
1035
  }
@@ -1046,17 +1051,17 @@ var KIND_META = {
1046
1051
  function ParkingInfoCard(props) {
1047
1052
  const { data } = props;
1048
1053
  const { subtitle, Icon } = KIND_META[data.kind];
1049
- return /* @__PURE__ */ jsxs6("section", { className: "parking-info", children: [
1050
- /* @__PURE__ */ jsxs6("header", { className: "parking-info__head", children: [
1051
- /* @__PURE__ */ jsx6("span", { className: "parking-info__head-icon", children: /* @__PURE__ */ jsx6(Icon, { weight: "duotone", size: 24 }) }),
1052
- /* @__PURE__ */ jsxs6("div", { className: "parking-info__heading", children: [
1053
- /* @__PURE__ */ jsx6("h4", { children: data.title }),
1054
- /* @__PURE__ */ jsx6("p", { children: subtitle })
1054
+ return /* @__PURE__ */ jsxs6("section", { className: "parking-info w-full bg-card p-3.5 text-foreground", children: [
1055
+ /* @__PURE__ */ jsxs6("header", { className: "parking-info__head mb-3 flex items-center gap-2", children: [
1056
+ /* @__PURE__ */ jsx6("span", { className: "parking-info__head-icon grid size-8 shrink-0 place-items-center rounded-md bg-primary-soft text-primary", children: /* @__PURE__ */ jsx6(Icon, { weight: "duotone", size: 24 }) }),
1057
+ /* @__PURE__ */ jsxs6("div", { className: "parking-info__heading flex min-w-0 flex-col", children: [
1058
+ /* @__PURE__ */ jsx6("h4", { className: "truncate text-base font-bold leading-5.5 text-foreground", children: data.title }),
1059
+ /* @__PURE__ */ jsx6("p", { className: "mt-1 text-xs leading-4 text-secondary-foreground", children: subtitle })
1055
1060
  ] })
1056
1061
  ] }),
1057
- /* @__PURE__ */ jsx6("dl", { className: "parking-info__entries", children: data.entries.map((e) => /* @__PURE__ */ jsxs6("div", { className: "parking-info__entry", children: [
1058
- /* @__PURE__ */ jsx6("dt", { children: e.label }),
1059
- /* @__PURE__ */ jsx6("dd", { children: e.value })
1062
+ /* @__PURE__ */ jsx6("dl", { className: "parking-info__entries grid gap-1.5", children: data.entries.map((e) => /* @__PURE__ */ jsxs6("div", { className: "parking-info__entry flex justify-between gap-2.5 rounded-md border-2 border-border bg-muted px-2.5 py-2.25 text-xs leading-4.5", children: [
1063
+ /* @__PURE__ */ jsx6("dt", { className: "shrink-0 text-secondary-foreground", children: e.label }),
1064
+ /* @__PURE__ */ jsx6("dd", { className: "text-right font-medium break-words text-foreground", children: e.value })
1060
1065
  ] }, e.label)) })
1061
1066
  ] });
1062
1067
  }