@forgeroute/ui 0.5.21 → 0.5.23

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,7 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import { DestroyRef, InjectionToken, Provider, TemplateRef, WritableSignal } from "@angular/core";
3
3
  import { UiLabelKey, UiLabelsService } from "@forgeroute/ui/core";
4
- import { CheckPaymentStatusFn, HostResult, PaymentAllocation, PaymentAttempt, PaymentAttemptControls, PaymentAttemptOutcome, PaymentMethodBodyContext, PaymentMethodPlugin, PaymentPluginMethod, PaymentReadiness, PaymentReadinessResult, ReadinessCheckFn } from "@forgeroute/ui/payments";
4
+ import { CheckPaymentStatusFn, HostResult, PaymentAllocation, PaymentAttempt, PaymentAttemptControls, PaymentAttemptOutcome, PaymentMethodBodyContext, PaymentMethodPlugin, PaymentPendingCheckInfo, PaymentPendingCheckResult, PaymentPluginMethod, PaymentReaderBannerConfig, PaymentReaderState, PaymentReadiness, PaymentReadinessResult, ReadinessCheckFn } from "@forgeroute/ui/payments";
5
5
  import { PillTab } from "@forgeroute/ui/pill-tabs";
6
6
  import { Observable } from "rxjs";
7
7
  /**
@@ -1211,6 +1211,380 @@ export declare const SQUARE_METHOD_TEXTS: {
1211
1211
  pendingMessage: (amount: string) => string;
1212
1212
  readonly receiptNote: string;
1213
1213
  };
1214
+ /**
1215
+ * Card-reader (Square Terminal) types of the library. They mirror the answers of the payments service (`GET /v1/terminal/readiness`,
1216
+ * `GET /v1/terminal/readers/:id/ready`, the `terminal` object of a card-present payment; see forgeroute-payments `docs/API.md` section 16.3 and
1217
+ * `host-kit/contract/terminal-readiness.json`). The BROWSER never calls the service: every call below is a function the HOST supplies (it calls its own backend,
1218
+ * which calls the service), exactly like `ui-square-connect`.
1219
+ */
1220
+ /**
1221
+ * The ONE state of the reader setup, chosen by the service with this fixed precedence (first match wins). `checking` = the read was slow or failed (nothing is guessed). `unknown` is the OLD name of `checking`: it is still
1222
+ * ACCEPTED in an answer a host passes in (and read as `checking`), but the library never produces it: {@link normalizeReadiness} returns `checking`, no screen shows the word and no event carries it.
1223
+ */
1224
+ type SquareTerminalReadinessState = 'merchant_not_ready' | 'no_reader' | 'unsupported_only' | 'reader_ready' | 'reader_busy' | 'reader_pairing' | 'reader_offline' | 'checking' | 'unknown';
1225
+ /** The precedence of the service, first match wins (documentation and tests; the service already sends the winning state). */
1226
+ export declare const SQUARE_TERMINAL_STATE_PRECEDENCE: readonly Exclude<SquareTerminalReadinessState, 'checking' | 'unknown'>[];
1227
+ type SquareTerminalDeviceStatus = 'online' | 'offline' | 'registering';
1228
+ /** A reader as the service answers it (register / list / get / rename). */
1229
+ interface SquareTerminal {
1230
+ id: string;
1231
+ label?: string | null;
1232
+ status: SquareTerminalDeviceStatus | string;
1233
+ locationId?: string | null;
1234
+ deviceType?: string | null;
1235
+ serialNumber?: string | null;
1236
+ pairingCode?: string | null;
1237
+ action?: 'idle' | 'in_progress' | 'failed' | null;
1238
+ actionIntentId?: string | null;
1239
+ /** One of the supported smart readers (S700, S710, WisePOS E). Anything else cannot take a payment. */
1240
+ supported: boolean;
1241
+ /** Human model name, e.g. `Square Terminal`. */
1242
+ model?: string | null;
1243
+ /** A payment of this merchant waits on the reader, or the processor says it works on an action. */
1244
+ busy: boolean;
1245
+ /** Only names a payment of THIS merchant. */
1246
+ busyPaymentId?: string | null;
1247
+ }
1248
+ /** `GET /v1/terminal/readiness`. */
1249
+ interface SquareTerminalReadiness {
1250
+ state: SquareTerminalReadinessState;
1251
+ readers: SquareTerminal[];
1252
+ /** The single ready reader, else the most recently used ready reader, else null (the user picks). */
1253
+ defaultReaderId: string | null;
1254
+ checkedAt?: string;
1255
+ /** The processor read was slow or failed: nothing was guessed. */
1256
+ stale?: boolean;
1257
+ /**
1258
+ * Why the answer is what it is. With `merchant_not_ready`: `reconnect_required` (offers "Reconnect payments"), `sandbox`, `service_disabled` or `processor_unsupported` (see {@link SquareTerminalBannerReason}: the banner words these
1259
+ * with no button), anything else = payments are not set up yet ("Set up payments"). With `no_reader` / `unsupported_only`: the same three no-button reasons, otherwise the usual "get a reader" message.
1260
+ */
1261
+ reason?: SquareTerminalBannerReason | string;
1262
+ merchantStatus?: string;
1263
+ /** Why the processor read failed (`stale`): see {@link SquareTerminalTerminal.degradedReason}. */
1264
+ degradedReason?: SquareTerminalDegradedReason | string;
1265
+ }
1266
+ /** `GET /v1/terminal/readers/:id/ready` (the optional check right before a payment). */
1267
+ interface SquareTerminalReady {
1268
+ ready: boolean;
1269
+ reason: 'ok' | 'offline' | 'busy' | 'unsupported' | 'merchant_not_ready' | 'reconnect_required' | 'unknown' | string;
1270
+ reader?: SquareTerminal | null;
1271
+ checkedAt?: string;
1272
+ stale?: boolean;
1273
+ degradedReason?: SquareTerminalDegradedReason | string;
1274
+ }
1275
+ /**
1276
+ * Why the service could not read the processor (`terminal.degradedReason`): `processor_unreachable` / `processor_timeout` are transient (try again), `reconnect_required` (the processor refused our credentials) and
1277
+ * `processor_refused` (it refused the read) will NOT fix themselves: the payment account needs attention.
1278
+ */
1279
+ type SquareTerminalDegradedReason = 'processor_unreachable' | 'processor_timeout' | 'reconnect_required' | 'processor_refused';
1280
+ /**
1281
+ * `checking` = the processor could not be read in time (the stored payment is answered); `stale` is the same thing named after the `stale` flag. `unknown` is the OLD name: still ACCEPTED in the service's answer (read as
1282
+ * `checking`), never produced by the library; the screen words all three as "still checking" and never shows the word.
1283
+ */
1284
+ type SquareTerminalTerminalState = 'waiting' | 'declined' | 'failed' | 'succeeded' | 'canceled' | 'checking' | 'stale' | 'unknown';
1285
+ /** True for a terminal state that means "the processor could not be read": `checking`, `stale` and the old `unknown`. */
1286
+ export declare function isTerminalChecking(state: SquareTerminalTerminalState | string | null | undefined): boolean;
1287
+ /**
1288
+ * The reasons a host may put in `SquareTerminalReadiness.reason` for the "no usable reader" banner. Each maps to its own plain message with NO action button:
1289
+ * - `sandbox`: the company is a sandbox account ("Card readers are not available in a sandbox account."); apps map `merchant_not_ready` + this reason.
1290
+ * - `service_disabled`: the payments service is switched off ("Card readers are turned off for this account.").
1291
+ * - `processor_unsupported`: the company's processor can never use readers, e.g. QuickBooks ("Card readers are not available with this payment processor.").
1292
+ * Any other reason (including `reconnect_required`) or none keeps the usual messages and buttons. The table is `SQUARE_TERMINAL_BANNER_REASONS`.
1293
+ */
1294
+ type SquareTerminalBannerReason = 'sandbox' | 'service_disabled' | 'processor_unsupported';
1295
+ /** Reason -> label key of the no-button banner message. Exported for documentation and tests. */
1296
+ export declare const SQUARE_TERMINAL_BANNER_REASONS: Readonly<Record<SquareTerminalBannerReason, UiLabelKey>>;
1297
+ /** The no-button label key for a readiness reason, or null when the reason has no special wording. */
1298
+ export declare function readerBannerReasonKey(reason: string | null | undefined): UiLabelKey | null;
1299
+ /** The `terminal` object of a card-present payment (also carried by a 409 `payment_in_flight`). */
1300
+ interface SquareTerminalTerminal {
1301
+ readerId: string;
1302
+ state: SquareTerminalTerminalState;
1303
+ declineCode?: string;
1304
+ message?: string;
1305
+ /** `false` with the state `waiting` = the reader dropped its connection while the payment waits. */
1306
+ readerOnline?: boolean;
1307
+ /** `unknown` + `stale`: the processor could not be read in time; the stored payment is answered. */
1308
+ stale?: boolean;
1309
+ checkedAt?: string;
1310
+ /** With `stale`: why the processor could not be read (transient or needs attention). */
1311
+ degradedReason?: SquareTerminalDegradedReason | string;
1312
+ /** From the 3rd consecutive stale read: how many stale reads in a row. */
1313
+ staleReads?: number;
1314
+ /** From the 3rd consecutive stale read: ISO time of the first stale read of the run ("we cannot reach the processor since 10:42"). */
1315
+ staleSince?: string;
1316
+ }
1317
+ /** What a card reader payment looks like (the service's payment view plus `terminal`). Only the fields the library reads are typed. */
1318
+ interface SquareTerminalPayment {
1319
+ id: string;
1320
+ status?: string;
1321
+ amountCents?: number;
1322
+ baseCents?: number;
1323
+ feeCents?: number;
1324
+ platformFeeCents?: number;
1325
+ brand?: string | null;
1326
+ last4?: string | null;
1327
+ attemptKey?: string;
1328
+ terminal?: SquareTerminalTerminal | null;
1329
+ /** `POST .../retry`: a second retry while the reader already waits is a replay. */
1330
+ replayed?: boolean;
1331
+ [key: string]: unknown;
1332
+ }
1333
+ /** What `startPayment` receives (the host maps it to `POST /v1/terminal/payments`). The amount is in major units. */
1334
+ interface SquareTerminalStartContext {
1335
+ readerId: string;
1336
+ /** The amount the customer owes before fees, major units (12.5 = $12.50). */
1337
+ amount: number;
1338
+ /** Stable per click and REUSED when the answer is lost; send it as the service's `attemptKey`. */
1339
+ attemptKey: string;
1340
+ payableRef: string | null;
1341
+ /** Always `'CARD_PRESENT'`. */
1342
+ paymentMethod: 'CARD_PRESENT';
1343
+ /**
1344
+ * The TOTAL in cents the payer saw (`Math.round(quote.totalAmount * 100)` of the CARD_PRESENT quote). Send it as the service's `expectedAmountCents`: a changed quote is refused with 409 `quote_changed` before the
1345
+ * reader is touched. Absent when the screen showed no quote.
1346
+ */
1347
+ expectedAmountCents?: number;
1348
+ /** Set only by the payment-panel integration: what the panel's other fields say. */
1349
+ receivedDate?: string;
1350
+ notes?: string | null;
1351
+ allocation?: PaymentAllocation;
1352
+ }
1353
+ /** What `estimateFees` receives for a reader payment. The quote is the CARD_PRESENT one and differs from the online card quote. */
1354
+ interface SquareTerminalFeeContext {
1355
+ amount: number;
1356
+ paymentMethod: 'CARD_PRESENT';
1357
+ paymentMethodType: 'card_present';
1358
+ }
1359
+ /** `getPayment`: which payment to read. `paymentId` is known after the start answered; before that only the attempt key is. */
1360
+ interface SquareTerminalPaymentRef {
1361
+ paymentId: string | null;
1362
+ attemptKey: string;
1363
+ }
1364
+ type SquareTerminalGetReadinessFn = () => HostResult<SquareTerminalReadiness>;
1365
+ type SquareTerminalStartFn = (ctx: SquareTerminalStartContext) => HostResult<SquareTerminalPayment>;
1366
+ /** Reads one payment with its `terminal` object. Answer `null` (or reject with 404) when no payment exists for the attempt key. */
1367
+ type SquareTerminalGetPaymentFn = (ref: SquareTerminalPaymentRef) => HostResult<SquareTerminalPayment | null>;
1368
+ type SquareTerminalRetryFn = (paymentId: string) => HostResult<SquareTerminalPayment>;
1369
+ type SquareTerminalCancelFn = (paymentId: string) => HostResult<unknown>;
1370
+ type SquareTerminalFeesFn = (ctx: SquareTerminalFeeContext) => HostResult<SquareFees>;
1371
+ /** The one bundle of host callbacks that turns card-reader mode on in `ui-square-payment-method` (`[reader]`). */
1372
+ interface SquareTerminalConfig {
1373
+ getReadiness: SquareTerminalGetReadinessFn;
1374
+ startPayment: SquareTerminalStartFn;
1375
+ getPayment: SquareTerminalGetPaymentFn;
1376
+ retryPayment: SquareTerminalRetryFn;
1377
+ cancelPayment: SquareTerminalCancelFn;
1378
+ /** The CARD_PRESENT fee quote. REQUIRED: a reader payment shows the breakdown (and sends `expectedAmountCents`) before the tap. */
1379
+ estimateFees: SquareTerminalFeesFn;
1380
+ /** The address of the receipt of a paid payment (host-built; only https or in-app `/paths` are linked). */
1381
+ receiptUrl?: (payment: SquareTerminalPayment) => string | null | undefined;
1382
+ /**
1383
+ * How often (ms) the waiting payment's status is read while the payer taps (default 2000). Clamped to {@link SQUARE_TERMINAL_POLL_MIN_MS}..{@link SQUARE_TERMINAL_POLL_MAX_MS}. The `[readerPollMs]` input of
1384
+ * `ui-square-payment-method`, when set, wins over this value.
1385
+ */
1386
+ pollMs?: number;
1387
+ }
1388
+ /** The fastest and the slowest status poll of a waiting reader payment (ms): a faster one would hammer the host's backend, a slower one would leave the payer staring at a stale screen. */
1389
+ export declare const SQUARE_TERMINAL_POLL_MIN_MS = 500;
1390
+ export declare const SQUARE_TERMINAL_POLL_MAX_MS = 30000;
1391
+ /** A poll cadence the library will actually use: not a finite number > 0 = the default (2000 ms); otherwise rounded and clamped to 500..30 000 ms. */
1392
+ export declare function clampReaderPollMs(value: number | null | undefined): number;
1393
+ /** A refusal of `startPayment` / `retryPayment` the library words itself. */
1394
+ interface SquareTerminalRefusal {
1395
+ code: string;
1396
+ /** The service's own text, shown only for a code the library has no wording for. */
1397
+ message: string;
1398
+ paymentId: string | null;
1399
+ terminal: SquareTerminalTerminal | null;
1400
+ /** `reader_not_paired`: the pairing code the staff still has to enter on the Terminal, when the service sent it. */
1401
+ pairingCode?: string | null;
1402
+ /** `quote_changed`: the new total / fees in cents, as the service answered them. */
1403
+ amountCents?: number | null;
1404
+ feeCents?: number | null;
1405
+ platformFeeCents?: number | null;
1406
+ }
1407
+ /** Reads the flat `code`, status, `paymentId` and `terminal` of a failed host call (the error itself or its `error` body). */
1408
+ export declare function readerErrorInfo(error: unknown): SquareTerminalRefusal & {
1409
+ status: number | null;
1410
+ };
1411
+ /** A refusal without the HTTP status (the refusal the screen keeps is the same shape whatever the transport said). */
1412
+ export declare function toRefusal(info: SquareTerminalRefusal & {
1413
+ status?: number | null;
1414
+ }): SquareTerminalRefusal;
1415
+ /** What a payment was STARTED for (before fees, major units): `baseCents`, else the total minus the fees, else the total; `null` when the service gave no amount. Never 0 for a missing amount. */
1416
+ export declare function paymentBaseAmount(payment: SquareTerminalPayment | null | undefined): number | null;
1417
+ /** How the screen words a terminal the service could not read (`checking` / `stale`). */
1418
+ type SquareTerminalDegraded = {
1419
+ kind: 'transient';
1420
+ } | {
1421
+ kind: 'since';
1422
+ since: string;
1423
+ } | {
1424
+ kind: 'attention';
1425
+ };
1426
+ /**
1427
+ * `null` when the terminal was read normally. Otherwise: `attention` for a reason that will not fix itself (`reconnect_required`, `processor_refused`: "the payment account needs attention"), `since` from the 3rd
1428
+ * consecutive stale read ("cannot reach the processor since 10:42") and `transient` for the rest (`processor_unreachable`, `processor_timeout`, none given). Never a resubmit in any of them.
1429
+ */
1430
+ export declare function readerDegraded(terminal: Pick<SquareTerminalTerminal, 'state' | 'stale' | 'degradedReason' | 'staleReads' | 'staleSince'> | null | undefined, locale?: string): SquareTerminalDegraded | null;
1431
+ /** The TOTAL a payment charged (major units), from the service's `amountCents`; `null` when absent. */
1432
+ export declare function paymentChargedAmount(payment: SquareTerminalPayment | null | undefined): number | null;
1433
+ /** The label key of the wording of a reader refusal code, or null for a code the library does not know (the service's message is shown). */
1434
+ export declare function readerRefusalLabelKey(code: string): UiLabelKey | null;
1435
+ /** Codes that prove NOTHING was created or charged: the attempt is released (key kept) and the payer may start again. */
1436
+ export declare const SQUARE_TERMINAL_NOT_CREATED_CODES: readonly string[];
1437
+ /** The supported device: the Square Terminal (the service refuses anything else with 400 `reader_not_supported`). */
1438
+ export declare const SQUARE_TERMINAL_MODELS: readonly {
1439
+ deviceType: string;
1440
+ model: string;
1441
+ }[];
1442
+ /** A defensive copy of an answer: an unrecognised state (or the old `unknown`) becomes `checking`, a missing list `[]` (nothing is ever guessed ready). The result's state is never `unknown`. */
1443
+ export declare function normalizeReadiness(raw: unknown): SquareTerminalReadiness;
1444
+ /**
1445
+ * "10:42 AM" of a moment, in the user's language (explicit locale, the user's own time zone). `''` for a missing / unreadable value. Library source 2026-11-21 (used by `ui-square-terminal-banner`: "last confirmed at ...").
1446
+ */
1447
+ export declare function formatReaderTime(value: Date | string | number | null | undefined, locale?: string): string;
1448
+ /** The name a reader is shown under: its label, else its model, else its id. */
1449
+ export declare function readerDisplayName(reader: Pick<SquareTerminal, 'id' | 'label' | 'model' | 'deviceType'> | null | undefined): string;
1450
+ /** Can this reader take a payment right now (supported, online, free)? */
1451
+ export declare function isReaderFree(reader: SquareTerminal): boolean;
1452
+ /** Only an https address or an in-app `/path` is ever linked or opened (never `javascript:`, `data:`, `//host`). */
1453
+ export declare function isSafeReceiptUrl(url: string | null | undefined): url is string;
1454
+ /**
1455
+ * A device pairing code as it may be SHOWN: the code Square makes is a short run of letters and digits. The answer of the host is untrusted, so anything else (control characters, spaces, markup, a very long text) is not a code and
1456
+ * is never shown or announced: the screen then says to get a new code. Returns the trimmed code or `null`.
1457
+ */
1458
+ declare function safePairingCode(value: unknown): string | null;
1459
+ /** `m:ss` of an elapsed time in ms (never negative). */
1460
+ export declare function formatElapsed(ms: number): string;
1461
+ /** What `registerTerminal` receives (the host maps it to `POST /v1/terminal/readers`: `label`, the Square `locationId`; Square ignores a registration code). */
1462
+ interface SquareTerminalRegisterContext {
1463
+ label: string;
1464
+ locationId?: string;
1465
+ }
1466
+ /** What the host answers: the reader as the service returns it. Its `pairingCode` is the device code the staff enter on the Terminal (`null` once paired). */
1467
+ type SquareTerminalRegisterFn = (ctx: SquareTerminalRegisterContext) => HostResult<SquareTerminal>;
1468
+ /** True for a Square Terminal (`deviceType: 'square_terminal'`). */
1469
+ export declare function isSquareTerminal(reader: Pick<SquareTerminal, 'deviceType'> | null | undefined): boolean;
1470
+ /** Dictionary keys of the card reader screens that read differently for a Square Terminal (looked up for keys built at run time: `stripeReader.status.<state>.title|text`, `stripeReader.wait.<phase>.text`). Any other key is the shared reader wording. */
1471
+ export declare const SQUARE_TERMINAL_LABEL_KEYS: Readonly<Record<string, UiLabelKey>>;
1472
+ /** The Square wording of a run-time built reader key, else the key itself. */
1473
+ export declare function terminalLabelKey(key: UiLabelKey): UiLabelKey;
1474
+ /**
1475
+ * What `ui-square-payment-method (readerLeftPending)` reports: the body went away (panel closed, method changed, plugin removed) or the reader screen was removed while a Terminal payment was open. The payment MAY STILL EXIST at the processor:
1476
+ * no `readerBusyChange(false)` is sent for it (the host keeps its other pay actions blocked and reads the server's own hold).
1477
+ */
1478
+ interface SquareTerminalLeftPending {
1479
+ reason: 'destroyed' | 'unmounted';
1480
+ /** The attempt key of the open Terminal payment, when known. */
1481
+ paymentAttemptKey?: string;
1482
+ }
1483
+ /**
1484
+ * Gives a host without `ui-square-payment-method` in its panel the `[readerBanner]` config of `ui-payment-side-panel` (merchant not ready, collection off, no payable version: no plugin is rendered, but the banner must show).
1485
+ * With the plugin rendered a plain `{ getReadiness }` object is enough (the plugin supplies the component).
1486
+ *
1487
+ * readonly banner = computed(() => squareTerminalBannerConfig({ getReadiness: this.readiness, refreshKey: this.readersVersion() }));
1488
+ */
1489
+ export declare function squareTerminalBannerConfig(config: Omit<PaymentReaderBannerConfig, 'component'>): PaymentReaderBannerConfig;
1490
+ /** The service states in which the organization has NO usable card reader: the only ones the banner shows. */
1491
+ export declare const SQUARE_TERMINAL_BANNER_STATES: readonly SquareTerminalReadiness['state'][];
1492
+ /**
1493
+ * The "get a card reader" banner (round 5, simplified): a SMALL `ui-alert` (info, one line, one or two actions) for a STAFF place where a customer payment can be taken. It shows ONLY when the organization has no usable card reader
1494
+ * (`no_reader`, `unsupported_only`, `merchant_not_ready`) and renders NOTHING in every other state (reader connected, offline, busy, still checking, a failed read, an offline browser): reader-state messages belong to the reader screen the
1495
+ * payment plugin shows when Card is chosen. `ui-payment-side-panel [readerBanner]` renders it as the first element of the panel. Never use it in a payer-facing component.
1496
+ *
1497
+ * <ui-square-terminal-banner [getReadiness]="readiness" [refreshKey]="readersVersion()" [hardwareShopAvailable]="canOrder()" (connect)="openPairing()" (order)="openOrder()" (setup)="openSetup()" />
1498
+ *
1499
+ * A readiness `reason` of `sandbox`, `service_disabled` or `processor_unsupported` (any of the three states) gives its own plain message and NO button (see `SQUARE_TERMINAL_BANNER_REASONS`: "Card readers are not available in a sandbox account.", "Card readers are turned off for this account.", "Card readers are not available with this payment processor."; Spanish in the dictionary); the banner still appears only in those three states.
1500
+ * Message "Get a card reader to take in-person card payments." with "Connect a reader" and "Get a card reader" (`hardwareShopAvailable` false: "How to get a card reader", the same `order` output); `merchant_not_ready` says payments must be
1501
+ * set up first and offers "Set up payments" ("Reconnect payments" when the account must be reconnected; `setup`). The container is always in the DOM (it mounts when the panel opens, the host never gates anything on the read); the alert appears when the answer
1502
+ * arrives. The readiness is read FRESH on every start and every `refreshKey` change (and `refresh()`), never cached or polled; a failed or slow read (over `readinessTimeoutMs`) or an offline browser shows nothing and asks nothing more. No HTTP: the host's `getReadiness` calls its own backend.
1503
+ */
1504
+ export declare class SquareTerminalBannerComponent {
1505
+ protected readonly labels: UiLabelsService;
1506
+ private readonly destroyRef;
1507
+ /** The host's readiness call (`GET /v1/terminal/readiness`, through its own backend). Called FRESH every time. */
1508
+ readonly getReadiness: import("@angular/core").InputSignal<SquareTerminalGetReadinessFn | null>;
1509
+ /** Any value that changes when the host knows the readers changed (a reader was connected, an order was placed): every change reads the readiness again. */
1510
+ readonly refreshKey: import("@angular/core").InputSignal<unknown>;
1511
+ /** `true` (default): "Get a card reader" opens the host's order flow. `false`: "How to get a card reader" and the host opens an info card. Same `order` output. */
1512
+ readonly hardwareShopAvailable: import("@angular/core").InputSignal<boolean>;
1513
+ /** Kept for backward compatibility: there is no connected line any more, so it changes nothing. */
1514
+ readonly hideReady: import("@angular/core").InputSignal<boolean>;
1515
+ /** A read slower than this shows nothing (ms). */
1516
+ readonly readinessTimeoutMs: import("@angular/core").InputSignal<number>;
1517
+ /** Managed environments where `navigator.onLine === false` is a false negative: do not treat the browser's offline flag as offline (default false). */
1518
+ readonly offlineOverride: import("@angular/core").InputSignal<boolean>;
1519
+ /** `true` while the banner is kept but not shown (the panel hides it after a payment was taken): it asks the host nothing; shown again it reads once only if a read was asked for meanwhile. */
1520
+ readonly paused: import("@angular/core").InputSignal<boolean>;
1521
+ /** "Connect a reader": the host opens its pairing screen. */
1522
+ readonly connect: import("@angular/core").OutputEmitterRef<void>;
1523
+ /** "Get a card reader" / "How to get a card reader": the host opens its order flow or an info card. */
1524
+ readonly order: import("@angular/core").OutputEmitterRef<void>;
1525
+ /** "Set up payments" / "Reconnect payments": the host opens payment setup. */
1526
+ readonly setup: import("@angular/core").OutputEmitterRef<void>;
1527
+ /** The banner's readiness state whenever it changes (`{ state, stale, at, ready }`; `state` is `checking` when the last read failed; never `unknown`). `ui-payment-side-panel` re-emits it as `(readerState)`. */
1528
+ readonly stateChange: import("@angular/core").OutputEmitterRef<PaymentReaderState>;
1529
+ private readonly confirmed;
1530
+ private readonly failed;
1531
+ private readonly offline;
1532
+ private run;
1533
+ private destroyed;
1534
+ private readWhenShown;
1535
+ /** The answer on screen: only a CONFIRMED, latest answer in which the organization has no usable reader. */
1536
+ protected readonly shown: import("@angular/core").Signal<SquareTerminalReadiness | null>;
1537
+ readonly shownState: import("@angular/core").Signal<"none" | import("@forgeroute/ui/square").SquareTerminalReadinessState>;
1538
+ /** The label key of a reason with its own no-button wording (`sandbox`, `service_disabled`, `processor_unsupported`), else null. */
1539
+ protected readonly reasonKey: import("@angular/core").Signal<"pagination.label" | "pagination.previous" | "pagination.next" | "pagination.page" | "pagination.range" | "offline.title" | "offline.message" | "offline.dismiss" | "search.placeholder" | "search.searching" | "search.open" | "search.close" | "toolbar.moreActions" | "toolbar.moreActionsButton" | "toolbar.saveCurrentView" | "toolbar.columns" | "toolbar.columnsDescription" | "toolbar.cancel" | "toolbar.apply" | "toolbar.savedViews" | "toolbar.noSavedViews" | "toolbar.deleteView" | "toolbar.done" | "toolbar.saveView" | "toolbar.viewName" | "toolbar.viewNamePlaceholder" | "toolbar.save" | "appShell.logOut" | "appShell.mainNavigation" | "appShell.readOnly" | "appShell.siteNavigation" | "appShell.skipToMainContent" | "appShell.thisPageIsReadOnly" | "appShell.toggleNavigation" | "audioPlayer.audioCouldNotBePlayed" | "audioPlayer.yourBrowserDoesNotSupport" | "bankAccountForm.9DigitRoutingNumber" | "bankAccountForm.accountHolderName" | "bankAccountForm.accountNumber" | "bankAccountForm.accountType" | "bankAccountForm.confirmAccountNumber" | "bankAccountForm.holderType" | "bankAccountForm.reEnterAccountNumber" | "bankAccountForm.routingNumber" | "board.dragACardToAnother" | "bulkMessagePanel.sendBulkMessage" | "bulkMessagePanel.sendVia" | "bulkMessagePanel.sendingTo" | "bulkMessagePanel.subjectLine" | "bulkMessagePanel.writeYourMessage" | "businessHours.addShift" | "businessHours.closed" | "businessHours.copyMondayToWeekdays" | "businessHours.removeShift" | "businessHours.to" | "calendar.all" | "calendar.allDay" | "calendar.calendarView" | "calendar.loadingCalendar" | "chartsPieChart.noData" | "confirm.whatWillHappen" | "contactPicker.clearSelection" | "contactPicker.noContactsFound" | "contactPicker.recipientDetails" | "contactPicker.searching" | "conversations.unread" | "dateRangePicker.customDateRange" | "dateRangePicker.from" | "dateRangePicker.to" | "discountSelector.discounts" | "emailTemplateEditor.activeFrom" | "emailTemplateEditor.activeTo" | "emailTemplateEditor.addBlock" | "emailTemplateEditor.alignCenter" | "emailTemplateEditor.alignLeft" | "emailTemplateEditor.alignRight" | "emailTemplateEditor.altTextOptional" | "emailTemplateEditor.assignments" | "emailTemplateEditor.blockSpacing" | "emailTemplateEditor.blocks" | "emailTemplateEditor.bold" | "emailTemplateEditor.bulletedList" | "emailTemplateEditor.buttonLabel" | "emailTemplateEditor.callToAction" | "emailTemplateEditor.callToActionAddress" | "emailTemplateEditor.callToActionButtonLabel" | "emailTemplateEditor.caption" | "emailTemplateEditor.category" | "emailTemplateEditor.clickAVariableToInsert" | "emailTemplateEditor.clickAVideoToAdd" | "emailTemplateEditor.clickToInsertOrDrag" | "emailTemplateEditor.contentBlocks" | "emailTemplateEditor.deleteBlock" | "emailTemplateEditor.dragToReorder" | "emailTemplateEditor.dropHere" | "emailTemplateEditor.duplicateBlock" | "emailTemplateEditor.eGClickToWatch" | "emailTemplateEditor.editorView" | "emailTemplateEditor.emailDesign" | "emailTemplateEditor.emailPreview" | "emailTemplateEditor.fontSize" | "emailTemplateEditor.headingLevel" | "emailTemplateEditor.hideReactions" | "emailTemplateEditor.imageAddress" | "emailTemplateEditor.imageAltText" | "emailTemplateEditor.insertImage" | "emailTemplateEditor.insertImage2" | "emailTemplateEditor.insertLink" | "emailTemplateEditor.insertLink2" | "emailTemplateEditor.italic" | "emailTemplateEditor.linkAddress" | "emailTemplateEditor.linkText" | "emailTemplateEditor.linkTextOptional" | "emailTemplateEditor.loadingVideos" | "emailTemplateEditor.mobileEmailPreview" | "emailTemplateEditor.moveBlockDown" | "emailTemplateEditor.moveBlockUp" | "emailTemplateEditor.noAssignmentsFound" | "emailTemplateEditor.noAssignmentsMatchYourSearch" | "emailTemplateEditor.noBlocksFound" | "emailTemplateEditor.noBlocksMatchYourSearch" | "emailTemplateEditor.noVideosCreated" | "emailTemplateEditor.numberedList" | "emailTemplateEditor.playback" | "emailTemplateEditor.readOnly" | "emailTemplateEditor.recipientEmail" | "emailTemplateEditor.redo" | "emailTemplateEditor.rightPanelSections" | "emailTemplateEditor.saveTemplate" | "emailTemplateEditor.saveTheTemplateFirstBefore" | "emailTemplateEditor.searchAssignments" | "emailTemplateEditor.searchBlocks" | "emailTemplateEditor.searchBlocks2" | "emailTemplateEditor.sendTestEmail" | "emailTemplateEditor.sendThisTemplateToAn" | "emailTemplateEditor.size" | "emailTemplateEditor.templateDetails" | "emailTemplateEditor.templateVariables" | "emailTemplateEditor.testSend" | "emailTemplateEditor.textColor" | "emailTemplateEditor.textFormatting" | "emailTemplateEditor.underline" | "emailTemplateEditor.undo" | "emailTemplateEditor.useAsMyTemplate" | "emailTemplateEditor.useThisTemplateAllYear" | "emailTemplateEditor.variables" | "emailTemplateEditor.videoLibrary" | "emailTemplateEditor.youHaveUnsavedChangesThe" | "imageGallery.nextImage" | "imageGallery.previousImage" | "imageReposition.dragThePhotoOrUse" | "importExport.allRequiredColumnsMatchedAutomatically" | "importExport.clickToChooseACsv" | "importExport.errors" | "importExport.exportAllRecordsToCsv" | "importExport.importDataPreview" | "importExport.importProgress" | "importExport.importRecordsFromCsv" | "importExport.importResult" | "importExport.importedWithChanges" | "importExport.keepThisWindowOpenUntil" | "importExport.previewImport" | "importExport.recordSImported_one" | "importExport.recordSImported_other" | "importExport.rowSHadErrors_one" | "importExport.rowSHadErrors_other" | "importExport.sampleValue" | "importExport.selectWhereYouReImporting" | "importExport.startWithOurCsvTemplate" | "importExport.supportedCsvFiles" | "importExport.toContinue" | "importExport.valueSChangedDuringImport_one" | "importExport.valueSChangedDuringImport_other" | "importExport.yourCsvColumn" | "keypad.deleteLastDigit" | "mapsUsStateMap.smallStates" | "mapsUsStateMap.valuesByState" | "messagingDocumentSendOptions.chosenDocuments" | "messagingDocumentSendOptions.documentsCanOnlyBeTexted" | "messagingDocumentSendOptions.docusignEmailsTheDocumentTo" | "messagingDocumentSendOptions.expiryDays" | "messagingDocumentSendOptions.includedDocuments" | "messagingDocumentSendOptions.maxReminders" | "messagingDocumentSendOptions.reminderIntervalDays" | "messagingDocumentSendOptions.requireMyCountersignatureAfterClient" | "messagingDocumentSendOptions.searchForAContact" | "messagingDocumentSendOptions.searchYourDocumentsByName" | "messagingDocumentSendOptions.signatureProvider" | "messagingDocumentSendOptions.signers" | "messagingDocumentSendOptions.signersAreEmailedOneAfter" | "messagingDocumentSendOptions.whatShouldTheRecipientDo" | "messagingSendMessagePanel.addEmailAddress" | "messagingSendMessagePanel.addImageMediaMms" | "messagingSendMessagePanel.addPhoneNumber" | "messagingSendMessagePanel.applyValue" | "messagingSendMessagePanel.attachFiles" | "messagingSendMessagePanel.attachImage" | "messagingSendMessagePanel.attachments" | "messagingSendMessagePanel.backToTemplates" | "messagingSendMessagePanel.body" | "messagingSendMessagePanel.channelLockedWhileSending" | "messagingSendMessagePanel.closePreview" | "messagingSendMessagePanel.emailPreview" | "messagingSendMessagePanel.emailSubject" | "messagingSendMessagePanel.headsUp" | "messagingSendMessagePanel.noEmailAddressOnFile" | "messagingSendMessagePanel.noJobsFound" | "messagingSendMessagePanel.noPhoneNumberOnFile" | "messagingSendMessagePanel.raw" | "messagingSendMessagePanel.recipients" | "messagingSendMessagePanel.removeAttachment" | "messagingSendMessagePanel.saveContinue" | "messagingSendMessagePanel.scheduleForLater" | "messagingSendMessagePanel.searchByContactName" | "messagingSendMessagePanel.searchByJobName" | "messagingSendMessagePanel.sendAt" | "messagingSendMessagePanel.sendVia" | "messagingSendMessagePanel.sentAsSmsKeepMessages" | "messagingSendMessagePanel.separateAddressesWithCommasEveryone" | "messagingSendMessagePanel.subject" | "messagingSendMessagePanel.subject2" | "messagingSendMessagePanel.textMessagingIsNotEnabled" | "messagingSendMessagePanel.textPreview" | "messagingSendMessagePanel.theDocumentsAreTextedAs" | "messagingSendMessagePanel.thisTemplateHasFieldsThat" | "messagingSendMessagePanel.to" | "messagingSendMessagePanel.viewSendPreview" | "messagingSendMessagePanel.whoWouldYouLikeTo" | "messagingSendMessagePanel.writeYourMessage" | "messagingSendMessagePanel.yourMessageGoesOutWith" | "messagingTemplatePicker.noTemplatesFound" | "messagingTemplatePicker.searchTemplates" | "messagingTemplatePicker.searching" | "messagingVideoLinkSettings.buttonLabelEGBook" | "messagingVideoLinkSettings.callToAction" | "messagingVideoLinkSettings.callToActionLabel" | "messagingVideoLinkSettings.callToActionUrl" | "messagingVideoLinkSettings.hideReactions" | "messagingVideoLinkSettings.playback" | "messagingVideoLinkSettings.removeVideo" | "messagingVideoLinkSettings.videoSettings" | "messagingVideoLinkSettings.watchPreviewOpensInA" | "messagingVideoPicker.noVideosFound" | "messagingVideoPicker.removeVideo" | "messagingVideoPicker.searchVideos" | "messagingVideoPicker.searching" | "multiSelect.noOptionsFound" | "notes.addANote" | "notes.addANote2" | "notes.addNote" | "notes.deleteNote" | "notes.deleteNote2" | "notes.deleteThisNoteItIs" | "notes.editNote" | "notes.edited" | "notes.loadingNotes" | "notes.noNotesYet" | "notes.notes" | "optionCard.selected" | "panelInfoList.noInformationAvailable" | "paymentSidePanel.addAsSplitPayment" | "paymentSidePanel.applyPaymentTo" | "paymentSidePanel.check" | "paymentSidePanel.chooseAReader" | "paymentSidePanel.clearPaymentMethod" | "paymentSidePanel.enterAmount" | "paymentSidePanel.last4DigitsOfAccount" | "paymentSidePanel.last4DigitsOfCard" | "paymentSidePanel.optionalNote" | "paymentSidePanel.outstandingBalance" | "paymentSidePanel.paymentMethod" | "paymentSidePanel.previouslyUsed" | "paymentSidePanel.receivedDate" | "paymentSidePanel.recordedSoFar" | "paymentSidePanel.recordingPayment" | "paymentSidePanel.refreshReaderStatus" | "paymentSidePanel.retryRecording" | "paymentSidePanel.selectPaymentMethod" | "paymentSidePanel.selectReader" | "paymentSidePanel.splitPayment" | "paymentSidePanel.waitingForCustomerToTap" | "pdfDocumentSignModal.yourSavedSignature" | "pdfDocumentViewerModal.downloadDocument" | "pdfDocumentViewerModal.printDocument" | "phoneNumberPicker.areaCode" | "phoneNumberPicker.availablePhoneNumbers" | "phoneNumberPicker.backToResults" | "phoneNumberPicker.couldnTSearchForNumbers" | "phoneNumberPicker.searchBy" | "phoneNumberPicker.tryADifferentZipCode" | "phoneNumberPicker.weLlLookForNumbers" | "phoneNumberPicker.weLlLookForNumbers2" | "phoneNumberPicker.zipCode" | "qrCode.downloadQrCode" | "qrCode.longPressTheImageAbove" | "qrCode.qrCodeUnavailableCopyThe" | "richTextEditor.aa" | "richTextEditor.alignCenter" | "richTextEditor.alignCenter2" | "richTextEditor.alignLeft" | "richTextEditor.alignLeft2" | "richTextEditor.alignRight" | "richTextEditor.alignRight2" | "richTextEditor.bold" | "richTextEditor.boldCtrlB" | "richTextEditor.bulletList" | "richTextEditor.bulletList2" | "richTextEditor.clearFormatting" | "richTextEditor.clearFormatting2" | "richTextEditor.fontFamily" | "richTextEditor.fontFamily2" | "richTextEditor.fontSize" | "richTextEditor.fontSize2" | "richTextEditor.headingStyle" | "richTextEditor.headingStyle2" | "richTextEditor.highlightColor" | "richTextEditor.highlightColor2" | "richTextEditor.indent" | "richTextEditor.italic" | "richTextEditor.italicCtrlI" | "richTextEditor.numberedList" | "richTextEditor.numberedList2" | "richTextEditor.outdent" | "richTextEditor.removeLink" | "richTextEditor.strikethrough" | "richTextEditor.textColor" | "richTextEditor.textColor2" | "richTextEditor.textFormatting" | "richTextEditor.underline" | "richTextEditor.underlineCtrlU" | "richTextEditor.webAddress" | "setupWizard.setupProgress" | "shareMenu.shareOptions" | "sidePanel.dismissPanel" | "snackbar.dismissNotification" | "snackbar.notifications" | "stripeMicrodepositVerify.6LettersOrNumbersFrom" | "stripeMicrodepositVerify.firstDepositCents" | "stripeMicrodepositVerify.keepWaiting" | "stripeMicrodepositVerify.openStripeSVerificationPage" | "stripeMicrodepositVerify.pending" | "stripeMicrodepositVerify.secondDepositCents" | "stripeMicrodepositVerify.verificationCode" | "stripePaymentStripeMethod.paymentDetails" | "stripePaymentStripeMethod.paymentTotal" | "stripePaymentStripeMethod.totalCharged" | "stripeStripeConnect.accountSetupComplete" | "stripeStripeConnect.accountSetupIncomplete" | "stripeStripeConnect.checkStatusBusy" | "stripeStripeConnect.checking" | "stripeStripeConnect.completeSetupOpensInA" | "stripeStripeConnect.completeYourStripeAccountSetup" | "stripeStripeConnect.stripeIsVerifyingYourAccount" | "stripeStripeConnect.viewStripeDashboard" | "stripeStripeConnect.yourSetupHasBeenSubmitted" | "textInput.showPassword" | "toast.dismissNotification" | "common.actions" | "common.back" | "common.details" | "common.done" | "common.download" | "common.edit" | "common.email" | "common.export" | "common.import" | "common.insert" | "common.link" | "common.loadingellipsis" | "common.message" | "common.mobile" | "common.name" | "common.next" | "common.note" | "common.phone" | "common.preview" | "common.previous" | "common.print" | "common.retry" | "common.save" | "common.searchellipsis" | "common.select" | "common.share" | "common.subject" | "common.text" | "common.today" | "common.video" | "common.view" | "addressInput.cityLabel" | "addressInput.label" | "addressInput.stateLabel" | "addressInput.streetLabel" | "addressInput.unitLabel" | "addressInput.zipError" | "avatar.editLabel" | "board.ariaLabel" | "board.emptyColumnText" | "board.emptyMessage" | "board.retryLabel" | "calendar.emptyMessage" | "cardListItem.deleteLabel" | "combobox.noResultsText" | "contactPicker.placeholder" | "conversations.attachLabel" | "conversations.attachmentPreviewLabel" | "conversations.backLabel" | "conversations.closeContextLabel" | "conversations.composeLabel" | "conversations.composePlaceholder" | "conversations.contextTitle" | "conversations.deleteRowLabel" | "conversations.deleteThreadLabel" | "conversations.emptyMessage" | "conversations.emptyReadOnlyMessage" | "conversations.emptyTitle" | "conversations.fileFallbackName" | "conversations.filterAriaLabel" | "conversations.filteredEmptyMessage" | "conversations.filteredEmptyTitle" | "conversations.hideContextLabel" | "conversations.linkEmptyText" | "conversations.linkLabel" | "conversations.linkLoadingText" | "conversations.linkPickerTitle" | "conversations.linkSearchLabel" | "conversations.linkSearchPlaceholder" | "conversations.listAriaLabel" | "conversations.loadEarlierLabel" | "conversations.loadingLabel" | "conversations.messagesAriaLabel" | "conversations.newLabel" | "conversations.newTooltip" | "conversations.noMessagesReadText" | "conversations.noMessagesText" | "conversations.noMessagesWriteText" | "conversations.openMediaLabel" | "conversations.paginationAriaLabel" | "conversations.removeAttachmentLabel" | "conversations.removeLinkLabel" | "conversations.searchAriaLabel" | "conversations.searchPlaceholder" | "conversations.sendLabel" | "conversations.showContextLabel" | "conversations.sizeMessage" | "conversations.templateLabel" | "conversations.threadAriaLabel" | "conversations.threadEmptyMessage" | "conversations.threadEmptyTitle" | "conversations.title" | "conversations.typeMessage" | "conversations.youLabel" | "copyField.copiedLabel" | "copyField.copiedMessage" | "copyField.copyLabel" | "copyField.failedMessage" | "dateRangePicker.ariaLabel" | "detailCard.editLabel" | "discountSelector.emptyMessage" | "emailTemplateEditor.assignmentsDescription" | "emailTemplateEditor.categoryPlaceholder" | "emailTemplateEditor.namePlaceholder" | "emailTemplateEditor.noVideosHint" | "emailTemplateEditor.readOnlyNote" | "emailTemplateEditor.subjectPlaceholder" | "emailTemplateEditor.systemNote" | "fileInput.buttonLabel" | "fileInput.placeholder" | "fileInput.removeLabel" | "fixedFooter.ariaLabel" | "skipLink.ariaLabel" | "imageField.label" | "imageField.upload" | "imageField.change" | "imageField.remove" | "imageField.typeMessage" | "imageField.sizeMessage" | "imageField.emptyMessage" | "imageGallery.ariaLabel" | "imageGalleryDialog.closeLabel" | "imageGalleryDialog.galleryLabel" | "imageReposition.label" | "importExport.actionLabel" | "kpiCard.loadingLabel" | "list.helpText" | "mapsUsStateMap.ariaLabel" | "messagingDocumentSendOptions.label" | "messagingSendMessagePanel.jobLabel" | "messagingSendMessagePanel.receiptLabel" | "messagingSendMessagePanel.title" | "messagingTemplatePicker.label" | "multiSelect.placeholder" | "multiSelect.searchPlaceholder" | "passwordRequirements.title" | "passwordRequirements.tooLong" | "paymentSidePanel.noReadersText" | "paymentSidePanel.splitSubmitLabel" | "paymentSidePanel.submitLabel" | "paymentSidePanel.title" | "pdfDocumentViewerModal.loadingText" | "pdfHotspot.imageAlt" | "pdfHotspot.label" | "pdfPdfViewer.errorText" | "pdfPdfViewer.loadingText" | "pdfPdfViewer.openText" | "phoneNumberPicker.confirmLabel" | "phoneNumberPicker.title" | "qrCode.alt" | "reminderAlerts.ariaLabel" | "shareMenu.label" | "sidePanel.cancelLabel" | "signaturePad.clearLabel" | "stepper.ariaLabel" | "stripeStripeConnect.startLabel" | "stripeStripeConnect.startText" | "stripeStripeConnect.startTitle" | "stripeStripeConnect.title" | "stripeStripePayment.label" | "stripeStripePayment.loadErrorMessage" | "textTemplatePicker.label" | "textTemplatePicker.searchPlaceholder" | "toast.queueLabel" | "combobox.resultsAvailable_one" | "combobox.resultsAvailable_other" | "combobox.typeAtLeast_one" | "combobox.typeAtLeast_other" | "errors.checkConnection" | "errors.dataWord" | "errors.failed" | "errors.invalidData" | "errors.noPermission" | "errors.notFound" | "errors.permissionVerb.create" | "errors.permissionVerb.delete" | "errors.permissionVerb.download" | "errors.permissionVerb.export" | "errors.permissionVerb.import" | "errors.permissionVerb.load" | "errors.permissionVerb.save" | "errors.permissionVerb.send" | "errors.permissionVerb.update" | "errors.permissionVerb.upload" | "errors.sessionExpired" | "errors.timedOut" | "errors.tooManyRequests" | "errors.tryAgain" | "errors.tryInAFewMinutes" | "errors.verb.create" | "errors.verb.delete" | "errors.verb.download" | "errors.verb.export" | "errors.verb.import" | "errors.verb.load" | "errors.verb.save" | "errors.verb.send" | "errors.verb.update" | "errors.verb.upload" | "validation.atOrAfter" | "validation.atOrBefore" | "validation.date" | "validation.dateTime" | "validation.decimals_one" | "validation.decimals_other" | "validation.email" | "validation.max" | "validation.min" | "validation.number" | "validation.onOrAfter" | "validation.onOrBefore" | "validation.phone" | "validation.required" | "validation.time" | "validation.tooLong" | "appShell.collapseSidebar" | "appShell.expandSidebar" | "businessHours.addSecondShiftOn" | "businessHours.closeAfterOpen" | "businessHours.closes" | "businessHours.label" | "businessHours.needsOpenDay" | "businessHours.opens" | "businessHours.removeSecondShiftOn" | "businessHours.secondShiftCloses" | "businessHours.secondShiftOpens" | "businessHours.secondShiftRange" | "businessHours.shiftOrder" | "contactPicker.noResults" | "contactPicker.searchContacts" | "dateRangePicker.preset.q1" | "dateRangePicker.preset.q2" | "dateRangePicker.preset.q3" | "dateRangePicker.preset.q4" | "dateRangePicker.preset.lastYear" | "dateRangePicker.preset.last12months" | "dateRangePicker.preset.30days" | "dateRangePicker.preset.7days" | "dateRangePicker.preset.all" | "dateRangePicker.preset.custom" | "dateRangePicker.preset.month" | "dateRangePicker.preset.quarter" | "dateRangePicker.preset.today" | "dateRangePicker.preset.ytd" | "fileInput.empty" | "fileInput.filesSelected" | "fileInput.notAdded" | "fileInput.onlyTypesAllowed" | "fileInput.tooBig" | "fileInput.tooSmall" | "list.moveDown" | "list.moveEarlier" | "list.moveLater" | "list.moveUp" | "list.moved" | "passwordRequirements.rule.digit" | "passwordRequirements.rule.digitRange" | "passwordRequirements.rule.length" | "passwordRequirements.rule.lowercase" | "passwordRequirements.rule.special" | "passwordRequirements.rule.specialAscii" | "passwordRequirements.rule.specialListed" | "passwordRequirements.rule.uppercase" | "radioMatrix.chooseEveryRow" | "radioMatrix.chooseEveryRowLabelled" | "shareMenu.copyLink" | "shareMenu.copyThisLink" | "shareMenu.linkCopied" | "signaturePad.captured" | "signaturePad.cleared" | "signaturePad.keyboardHelp" | "signaturePad.name" | "starRating.noRating" | "starRating.starsOutOf_one" | "starRating.starsOutOf_other" | "bankAccountForm.accountMin4" | "bankAccountForm.accountRequired" | "bankAccountForm.accountType.checking" | "bankAccountForm.accountType.savings" | "bankAccountForm.accountsDoNotMatch" | "bankAccountForm.confirmRequired" | "bankAccountForm.holderRequired" | "bankAccountForm.holderType.company" | "bankAccountForm.holderType.individual" | "bankAccountForm.mandateRequired" | "bankAccountForm.routingMustBe9" | "bankAccountForm.routingRequired" | "bankAccountForm.selectValidAccountType" | "bankAccountForm.selectValidHolderType" | "importExport.csvEmpty" | "importExport.csvParseFailed" | "importExport.exportFailed" | "importExport.exportLimitReached" | "importExport.importEntity" | "importExport.importFailed" | "importExport.importFrom" | "importExport.importedSuccessfully" | "importExport.importingRecords_one" | "importExport.importingRecords_other" | "importExport.recordsImported_one" | "importExport.recordsImported_other" | "importExport.requiredNotMapped" | "importExport.rowsHadErrors_one" | "importExport.rowsHadErrors_other" | "importExport.step.mapping" | "importExport.step.source" | "importExport.step.upload" | "importExport.valuesChanged_one" | "importExport.valuesChanged_other" | "paymentSidePanel.addedToSplit" | "paymentSidePanel.additionalAmountLabel" | "paymentSidePanel.allocatedExceeds" | "paymentSidePanel.allocation.custom" | "paymentSidePanel.allocation.newest" | "paymentSidePanel.allocation.oldest" | "paymentSidePanel.amountLabel" | "paymentSidePanel.announceRecorded" | "paymentSidePanel.verificationRecorded" | "paymentSidePanel.announceRecording" | "paymentSidePanel.announceWaiting" | "paymentSidePanel.atMost2Decimals" | "paymentSidePanel.balanceAmount" | "paymentSidePanel.cannotExceedBalance" | "paymentSidePanel.cardDeclined" | "paymentSidePanel.couldNotLoadReaders" | "paymentSidePanel.dueOn" | "paymentSidePanel.enterAmountToRecord" | "paymentSidePanel.enterAnAmount" | "paymentSidePanel.exactly4Digits" | "paymentSidePanel.failedSendToReader" | "paymentSidePanel.method.ACH" | "paymentSidePanel.method.CARD" | "paymentSidePanel.method.CARD_PRESENT" | "paymentSidePanel.method.CASH" | "paymentSidePanel.method.CHECK" | "paymentSidePanel.method.MONEY_ORDER" | "paymentSidePanel.notConfigured" | "paymentSidePanel.paymentCancelled" | "paymentSidePanel.readerDidNotAccept" | "paymentSidePanel.readerPaymentCancelled" | "paymentSidePanel.readerTimeout" | "paymentSidePanel.recordFailed" | "paymentSidePanel.removeEntry" | "paymentBlocked.default" | "paymentHeld.default" | "paymentHeld.check" | "paymentHeld.retryCancel" | "paymentHeld.stillOpen" | "paymentHeld.inconclusive" | "paymentHeld.checkFailed" | "paymentHeld.release" | "paymentHeld.released" | "paymentHeld.succeeded" | "paymentHeld.closedBeforeDone" | "paymentHeld.releasedByUser" | "paymentSidePanel.cancelUnconfirmed" | "paymentSidePanel.removedFromSplit" | "paymentSidePanel.selectAtLeastOneCharge" | "paymentSidePanel.span.minute_one" | "paymentSidePanel.span.minute_other" | "paymentSidePanel.succeededNotRecorded" | "paymentSidePanel.terminalNotRecorded" | "phoneNumberPicker.areaCodeMode" | "phoneNumberPicker.changeAreaCode" | "phoneNumberPicker.changeZip" | "phoneNumberPicker.confirmAreaAndSearch" | "phoneNumberPicker.confirmZipAndSearch" | "phoneNumberPicker.inAreaCode" | "phoneNumberPicker.mustBeDigits" | "phoneNumberPicker.nearZip" | "phoneNumberPicker.noNumbersForArea" | "phoneNumberPicker.noNumbersNearZip" | "phoneNumberPicker.searchingNumbers" | "phoneNumberPicker.step1" | "phoneNumberPicker.step2_one" | "phoneNumberPicker.step2_other" | "phoneNumberPicker.step3" | "phoneNumberPicker.yourNumber" | "phoneNumberPicker.zip" | "chargeForm.amount" | "chargeForm.amount2" | "chargeForm.cancelLabel" | "chargeForm.chargeType" | "chargeForm.closeLabel" | "chargeForm.description" | "chargeForm.dueDate" | "chargeForm.emptyMessage" | "chargeForm.emptyTitle" | "chargeForm.optionalDescription" | "chargeForm.selectType" | "chargeForm.submitLabel" | "chargeForm.title" | "emailTemplateEditor.assignmentRequired" | "emailTemplateEditor.block.btn-link" | "emailTemplateEditor.block.btn-outline" | "emailTemplateEditor.block.btn-primary" | "emailTemplateEditor.block.btn-secondary" | "emailTemplateEditor.block.divider" | "emailTemplateEditor.block.image-block" | "emailTemplateEditor.block.layout-2col" | "emailTemplateEditor.block.layout-3col" | "emailTemplateEditor.block.spacer-lg" | "emailTemplateEditor.block.spacer-md" | "emailTemplateEditor.block.spacer-sm" | "emailTemplateEditor.block.table-2col" | "emailTemplateEditor.block.table-3col" | "emailTemplateEditor.block.text-block" | "emailTemplateEditor.blockFallback" | "emailTemplateEditor.bodyRequired" | "emailTemplateEditor.bodyTooLong" | "emailTemplateEditor.clickToEdit" | "emailTemplateEditor.clickToWatchVideo" | "emailTemplateEditor.cta.contact" | "emailTemplateEditor.cta.custom" | "emailTemplateEditor.cta.none" | "emailTemplateEditor.cta.schedule" | "emailTemplateEditor.datesOrder" | "emailTemplateEditor.group.buttons" | "emailTemplateEditor.group.content" | "emailTemplateEditor.group.layout" | "emailTemplateEditor.group.spacing" | "emailTemplateEditor.group.tables" | "emailTemplateEditor.heading.h1" | "emailTemplateEditor.heading.h2" | "emailTemplateEditor.heading.h3" | "emailTemplateEditor.heading.normal" | "emailTemplateEditor.missing.assignment" | "emailTemplateEditor.missing.message" | "emailTemplateEditor.missing.name" | "emailTemplateEditor.missing.shorterMessage" | "emailTemplateEditor.missing.shorterName" | "emailTemplateEditor.missing.shorterSubject" | "emailTemplateEditor.missing.subject" | "emailTemplateEditor.nameRequired" | "emailTemplateEditor.nameTooLong" | "emailTemplateEditor.playback.autoplay" | "emailTemplateEditor.playback.click" | "emailTemplateEditor.readOnlyTools" | "emailTemplateEditor.readOnlyToolsWithVideo" | "emailTemplateEditor.rightPanel" | "emailTemplateEditor.rightPanelWithVideo" | "emailTemplateEditor.sample.buttonText" | "emailTemplateEditor.sample.column" | "emailTemplateEditor.sample.data" | "emailTemplateEditor.sample.enterText" | "emailTemplateEditor.sample.header" | "emailTemplateEditor.sample.image" | "emailTemplateEditor.sample.leftColumn" | "emailTemplateEditor.sample.linkText" | "emailTemplateEditor.sample.rightColumn" | "emailTemplateEditor.saveHint" | "emailTemplateEditor.spacing.large" | "emailTemplateEditor.spacing.medium" | "emailTemplateEditor.spacing.none" | "emailTemplateEditor.spacing.small" | "emailTemplateEditor.startWriting" | "emailTemplateEditor.subjectRequired" | "emailTemplateEditor.subjectTooLong" | "emailTemplateEditor.validEmail" | "emailTemplateEditor.validImageAddress" | "emailTemplateEditor.validWebAddress" | "emailTemplateEditor.variable.firstName" | "emailTemplateEditor.variable.fullName" | "emailTemplateEditor.variable.lastName" | "emailTemplateEditor.variableGroup.contact" | "emailTemplateEditor.videoWillAutoplay" | "board.moveTo" | "calendar.group.later" | "calendar.group.overdue" | "calendar.group.thisWeek" | "calendar.group.today" | "calendar.group.tomorrow" | "detailGroups.activity" | "detailGroups.notes" | "richTextEditor.editorName" | "richTextEditor.fontDefault" | "richTextEditor.fontGroup.Default" | "richTextEditor.fontGroup.Display" | "richTextEditor.fontGroup.Monospace" | "richTextEditor.fontGroup.Sans-Serif" | "richTextEditor.fontGroup.Serif" | "richTextEditor.heading.h1" | "richTextEditor.heading.h2" | "richTextEditor.heading.h3" | "richTextEditor.heading.p" | "richTextEditor.linkNeedsAddress" | "richTextEditor.size.1" | "richTextEditor.size.3" | "richTextEditor.size.4" | "richTextEditor.size.5" | "richTextEditor.size.6" | "richTextEditor.size.7" | "setupWizard.areaCode" | "setupWizard.areaCodeHint" | "setupWizard.brand" | "setupWizard.connect" | "setupWizard.connectFailed" | "setupWizard.connectRequired" | "setupWizard.connected" | "setupWizard.connectedChannel" | "setupWizard.connectedDetail" | "setupWizard.connectedMerchant" | "setupWizard.continue" | "setupWizard.doneDescription" | "setupWizard.doneHint" | "setupWizard.doneTitle" | "setupWizard.exit" | "setupWizard.finish" | "setupWizard.importAgain" | "setupWizard.importErrorsText_one" | "setupWizard.importErrorsText_other" | "setupWizard.importErrorsTitle_one" | "setupWizard.importErrorsTitle_other" | "setupWizard.importMore" | "setupWizard.importRequired" | "setupWizard.importedSuccessfully" | "setupWizard.integration.gmail" | "setupWizard.integration.google-calendar" | "setupWizard.integration.outlook" | "setupWizard.integration.outlook-calendar" | "setupWizard.integration.quickbooks" | "setupWizard.integration.slack" | "setupWizard.integration.square" | "setupWizard.integration.stripe" | "setupWizard.integration.twilio" | "setupWizard.progress" | "setupWizard.reconnect" | "setupWizard.recordsWord" | "setupWizard.saveAndContinue" | "setupWizard.saveFailed" | "setupWizard.skip" | "setupWizard.stepPicker" | "setupWizard.stepPickerGo" | "setupWizard.stepPickerHint" | "setupWizard.stepPickerPlaceholder" | "setupWizard.steps" | "setupWizard.summaryPending" | "setupWizard.summarySkipped" | "setupWizard.summaryTitle" | "setupWizard.whatGetsImported" | "messagingDocumentSendOptions.changeSigningOptions" | "messagingDocumentSendOptions.countersignedBy" | "messagingDocumentSendOptions.day_one" | "messagingDocumentSendOptions.day_other" | "messagingDocumentSendOptions.envelopeInactive" | "messagingDocumentSendOptions.envelopeNoDocs" | "messagingDocumentSendOptions.fieldsForSigners" | "messagingDocumentSendOptions.hideSigningOptions" | "messagingDocumentSendOptions.mergeEmpty" | "messagingDocumentSendOptions.mergeReason.NO_CONTEXT" | "messagingDocumentSendOptions.mergeReason.NO_DATA" | "messagingDocumentSendOptions.mergeReason.UNKNOWN_PATH" | "messagingDocumentSendOptions.multiSignerSendByEmail" | "messagingDocumentSendOptions.mustBeWhole" | "messagingDocumentSendOptions.noFieldsPlaced" | "messagingDocumentSendOptions.noFileToAttach" | "messagingDocumentSendOptions.noFileUploaded" | "messagingDocumentSendOptions.noMatchingDocuments" | "messagingDocumentSendOptions.noReminders" | "messagingDocumentSendOptions.placeCountersign" | "messagingDocumentSendOptions.placeCountersignOn" | "messagingDocumentSendOptions.previewDocument" | "messagingDocumentSendOptions.provider.docusign" | "messagingDocumentSendOptions.provider.native" | "messagingDocumentSendOptions.purpose.ATTACH" | "messagingDocumentSendOptions.purpose.BOTH" | "messagingDocumentSendOptions.purpose.ESIGN" | "messagingDocumentSendOptions.purposeInfo.BOTH" | "messagingDocumentSendOptions.purposeInfo.ESIGN" | "messagingDocumentSendOptions.remindersEvery" | "messagingDocumentSendOptions.searchFailed" | "messagingDocumentSendOptions.selectAtLeastOne" | "messagingDocumentSendOptions.signerAlreadyRole" | "messagingDocumentSendOptions.signerNoEmail" | "messagingDocumentSendOptions.signerRole" | "messagingDocumentSendOptions.signingSummary" | "messagingDocumentSendOptions.textedAsLink" | "messagingDocumentSendOptions.untitled" | "messagingDocumentSendOptions.you" | "messagingDocumentSendOptions.youCountersign" | "messagingSendMessagePanel.activeAllYear" | "messagingSendMessagePanel.activeFrom" | "messagingSendMessagePanel.activeUntil" | "messagingSendMessagePanel.announceSkipped_one" | "messagingSendMessagePanel.announceSkipped_other" | "messagingSendMessagePanel.bodyTooLong" | "messagingSendMessagePanel.bulkNoSend" | "messagingSendMessagePanel.ccInvalid" | "messagingSendMessagePanel.ccTooLong" | "messagingSendMessagePanel.ccTooMany" | "messagingSendMessagePanel.cta.contact" | "messagingSendMessagePanel.cta.custom" | "messagingSendMessagePanel.cta.none" | "messagingSendMessagePanel.cta.schedule" | "messagingSendMessagePanel.ctxEmail" | "messagingSendMessagePanel.ctxText" | "messagingSendMessagePanel.emailScheduled" | "messagingSendMessagePanel.emailSent" | "messagingSendMessagePanel.envelopeSent" | "messagingSendMessagePanel.failedSendEmail" | "messagingSendMessagePanel.failedSendMessage" | "messagingSendMessagePanel.failedSendText" | "messagingSendMessagePanel.failedUpload" | "messagingSendMessagePanel.listAnd" | "messagingSendMessagePanel.messageScheduled" | "messagingSendMessagePanel.messageSent" | "messagingSendMessagePanel.multiSignerOneAtATime" | "messagingSendMessagePanel.noneEligible_one" | "messagingSendMessagePanel.noneEligible_other" | "messagingSendMessagePanel.noticeAddEmailBelow" | "messagingSendMessagePanel.noticeNoContact" | "messagingSendMessagePanel.noticeNoOptIn" | "messagingSendMessagePanel.noticeNoPhone" | "messagingSendMessagePanel.noticeTextDisabled" | "messagingSendMessagePanel.playback.autoplay" | "messagingSendMessagePanel.playback.click" | "messagingSendMessagePanel.reasonNoEmail_one" | "messagingSendMessagePanel.reasonNoEmail_other" | "messagingSendMessagePanel.reasonNoPhone_one" | "messagingSendMessagePanel.reasonNoPhone_other" | "messagingSendMessagePanel.removedAttachments" | "messagingSendMessagePanel.removedBecauseRequest" | "messagingSendMessagePanel.removedImage" | "messagingSendMessagePanel.removedSchedule" | "messagingSendMessagePanel.resultsCount_one" | "messagingSendMessagePanel.resultsCount_other" | "messagingSendMessagePanel.resultsCount_zero" | "messagingSendMessagePanel.searchTemplatesAria" | "messagingSendMessagePanel.searchVideosAria" | "messagingSendMessagePanel.selectedVideo" | "messagingSendMessagePanel.sendEmail" | "messagingSendMessagePanel.sendMessage" | "messagingSendMessagePanel.sendText" | "messagingSendMessagePanel.sentViaDocusign" | "messagingSendMessagePanel.skippedNameMore" | "messagingSendMessagePanel.skippedText_one" | "messagingSendMessagePanel.skippedText_other" | "messagingSendMessagePanel.subjectTooLong" | "messagingSendMessagePanel.tabCompose" | "messagingSendMessagePanel.tabTemplate" | "messagingSendMessagePanel.textSent" | "messagingSendMessagePanel.textTooLongWithVideo" | "messagingSendMessagePanel.unnamed" | "messagingSendMessagePanel.whatEmail" | "messagingSendMessagePanel.whatText" | "messagingSendMessagePanel.whatTextMessage" | "stripeErrors.card_declined" | "stripeErrors.card_not_supported" | "stripeErrors.currency_not_supported" | "stripeErrors.do_not_honor" | "stripeErrors.generic_decline" | "stripeErrors.insufficient_funds" | "stripeErrors.lost_card" | "stripeErrors.stolen_card" | "stripeErrors.alreadyProcessed" | "stripeErrors.amount_too_large" | "stripeErrors.amount_too_small" | "stripeErrors.approve_with_id" | "stripeErrors.authentication_required" | "stripeErrors.balance_insufficient" | "stripeErrors.bank_account_declined" | "stripeErrors.call_issuer" | "stripeErrors.card_velocity_exceeded" | "stripeErrors.debit_not_authorized" | "stripeErrors.defaultMessage" | "stripeErrors.do_not_try_again" | "stripeErrors.duplicate_transaction" | "stripeErrors.expired_card" | "stripeErrors.fraudulent" | "stripeErrors.incorrect_cvc" | "stripeErrors.incorrect_number" | "stripeErrors.incorrect_zip" | "stripeErrors.invalid_cvc" | "stripeErrors.invalid_expiry_month" | "stripeErrors.invalid_expiry_year" | "stripeErrors.invalid_number" | "stripeErrors.issuer_not_available" | "stripeErrors.merchant_blacklist" | "stripeErrors.new_account_information_available" | "stripeErrors.no_action_taken" | "stripeErrors.not_permitted" | "stripeErrors.payment_intent_authentication_failure" | "stripeErrors.payment_intent_incompatible_payment_method" | "stripeErrors.payment_intent_payment_attempt_failed" | "stripeErrors.payment_intent_unexpected_state" | "stripeErrors.payment_method_unactivated" | "stripeErrors.payment_method_unexpected_state" | "stripeErrors.pickup_card" | "stripeErrors.processing_error" | "stripeErrors.reenter_transaction" | "stripeErrors.resource_missing" | "stripeErrors.restricted_card" | "stripeErrors.revocation_of_all_authorizations" | "stripeErrors.revocation_of_authorization" | "stripeErrors.security_violation" | "stripeErrors.sessionExpired" | "stripeErrors.setup_intent_unexpected_state" | "stripeErrors.stop_payment_order" | "stripeErrors.technical.api_connection_error" | "stripeErrors.technical.api_error" | "stripeErrors.technical.authentication_error" | "stripeErrors.technical.invalid_request_error" | "stripeErrors.technical.rate_limit_error" | "stripeErrors.testmode_decline" | "stripeErrors.try_again_later" | "stripeErrors.withdrawal_count_limit_exceeded" | "stripePayment.a11y.actionRequired" | "stripePayment.a11y.loading" | "stripePayment.a11y.methodSaved" | "stripePayment.a11y.paymentAuthorized" | "stripePayment.a11y.paymentProcessing" | "stripePayment.a11y.paymentReceived" | "stripePayment.a11y.processingPayment" | "stripePayment.a11y.savingMethod" | "stripePayment.a11y.verificationNeeded" | "stripePayment.a11y.verificationNeededSetup" | "stripePayment.achNotice" | "stripePayment.achNoticeInstant" | "stripePayment.msg.authFailed" | "stripePayment.msg.authFailedTryOther" | "stripePayment.msg.authNotCompleted" | "stripePayment.msg.cardsUnavailable" | "stripePayment.msg.feesFailed" | "stripePayment.msg.initFailed" | "stripePayment.msg.instantOnlyUnavailable" | "stripePayment.msg.intentFailed" | "stripePayment.msg.keyMissing" | "stripePayment.msg.loadFailed" | "stripePayment.msg.noPaymentMethod" | "stripePayment.msg.notCompleted" | "stripePayment.msg.notInitialized" | "stripePayment.msg.requiresPaymentMethod" | "stripePayment.msg.returnFailed" | "stripePayment.msg.setupIncomplete" | "stripePayment.msg.verifyFailed" | "stripePayment.msg.verifyThrown" | "stripePayment.pay" | "stripePayment.saveMethod" | "stripePaymentMethod.achMessage" | "stripePaymentMethod.achTitle" | "stripePaymentMethod.amountNeeded" | "stripePaymentMethod.amountPlusFees" | "stripePaymentMethod.announceProcessing" | "stripePaymentMethod.announceReady" | "stripePaymentMethod.methodAch" | "stripePaymentMethod.methodCard" | "stripePaymentMethod.notCompleted" | "stripePaymentMethod.paymentAmount" | "stripePaymentMethod.platformFee" | "stripePaymentMethod.processingFee" | "stripePaymentMethod.receiptNote" | "stripePaymentMethod.verificationMessage" | "mapsUsStateMap.legend" | "pdfDocumentSignModal.addSignatureFirst" | "pdfDocumentSignModal.allSigned" | "pdfDocumentSignModal.appliedSignature" | "pdfDocumentSignModal.change" | "pdfDocumentSignModal.complete" | "pdfDocumentSignModal.loading" | "pdfDocumentSignModal.namePlaceholder" | "pdfDocumentSignModal.noFields" | "pdfDocumentSignModal.progress" | "pdfDocumentSignModal.previewEmpty" | "pdfDocumentSignModal.saveSignature" | "pdfDocumentSignModal.signField" | "pdfDocumentSignModal.signFieldDisabled" | "pdfDocumentSignModal.signHere" | "pdfDocumentSignModal.step1" | "pdfDocumentSignModal.step2" | "pdfDocumentSignModal.submitting" | "pdfDocumentSignModal.title" | "stripeMicrodepositVerify.attemptsRemaining_one" | "stripeMicrodepositVerify.attemptsRemaining_other" | "stripeMicrodepositVerify.attemptsLeft_one" | "stripeMicrodepositVerify.attemptsLeft_other" | "stripeMicrodepositVerify.amountsHint" | "stripeMicrodepositVerify.bankFallback" | "stripeMicrodepositVerify.byDate" | "stripeMicrodepositVerify.cancelBase" | "stripeMicrodepositVerify.cancelKeepsActive" | "stripeMicrodepositVerify.cancelKeepsActivePartner" | "stripeMicrodepositVerify.cancelNoOther" | "stripeMicrodepositVerify.cancelNoOtherPartner" | "stripeMicrodepositVerify.cancelTitle" | "stripeMicrodepositVerify.cannotPay" | "stripeMicrodepositVerify.paymentNotStarted" | "stripeMicrodepositVerify.centsRange" | "stripeMicrodepositVerify.code6" | "stripeMicrodepositVerify.codeRequired" | "stripeMicrodepositVerify.codeSm" | "stripeMicrodepositVerify.depositsAmounts" | "stripeMicrodepositVerify.depositsDescriptor" | "stripeMicrodepositVerify.enterAmountsOwn" | "stripeMicrodepositVerify.enterAmountsPartner" | "stripeMicrodepositVerify.enterCodeOwn" | "stripeMicrodepositVerify.enterCodePartner" | "stripeMicrodepositVerify.holderPartner" | "stripeMicrodepositVerify.holderYours" | "stripeMicrodepositVerify.keepsActive" | "stripeMicrodepositVerify.keepsActivePartner" | "stripeMicrodepositVerify.partnerOrSetup" | "stripeMicrodepositVerify.processing" | "stripeMicrodepositVerify.processingPartner" | "stripeMicrodepositVerify.processingTitle" | "stripeMicrodepositVerify.readOnly" | "stripeMicrodepositVerify.startedByOther" | "stripeMicrodepositVerify.startedByPartner" | "stripeMicrodepositVerify.title" | "stripeMicrodepositVerify.tooManyAttempts" | "stripeMicrodepositVerify.verifyLabel" | "stripeMicrodepositVerify.wholeCents" | "stripeStripeConnect.failedCheck" | "stripeStripeConnect.failedLink" | "stripeStripeConnect.failedStart" | "stripeStripeConnect.liveComplete" | "stripeStripeConnect.liveIncomplete" | "stripeStripeConnect.liveLoading" | "stripeStripeConnect.liveNone" | "stripeStripeConnect.liveVerifying" | "stripeStripeConnect.noticeComplete" | "stripeStripeConnect.noticeCompleteResume" | "stripeStripeConnect.noticeIncomplete" | "stripeStripeConnect.noticeLinkUnavailable" | "stripeStripeConnect.noticeVerifying" | "errorState.defaultMessage" | "importExport.checkingYourRows" | "importExport.nothingIsSavedUntilEvery" | "importExport.rowsWithErrors" | "refundPanel.enterReasonForRefund" | "refundPanel.feeHandling" | "refundPanel.notes" | "refundPanel.nothingLeftMessage" | "refundPanel.reason" | "refundPanel.refundAmount" | "refundPanel.refundAmount2" | "refundPanel.refundType" | "refundPanel.title" | "refundPanel.warning" | "tour.finishLabel" | "tour.nextLabel" | "tour.previousLabel" | "tour.progressLabel" | "tour.skipLabel" | "board.actionsFor" | "colorInput.colour" | "colorInput.picker" | "colorInput.presets" | "importExport.selectSource" | "messagingDocumentSendOptions.searchFailedMessage" | "messagingSendMessagePanel.previewNamed" | "notes.addFirstNote" | "notes.noNotesAdded" | "paymentSidePanel.sendToReader" | "paymentSidePanel.sending" | "starRating.rating" | "timeline.ariaLabel" | "timeline.eventAmount" | "timeline.eventLocked" | "common.change" | "common.delete" | "common.hide" | "common.removeNamed" | "common.videos" | "appShell.unreadCount" | "board.loadingNamed" | "board.showMore" | "calendar.actionsFor" | "calendar.addAllDayEventOn" | "calendar.addEventOn" | "calendar.filter" | "combobox.clearNamed" | "combobox.selection" | "dataTable.dragHandle" | "detailCard.toggleSection" | "discountSelector.offApplies" | "emailTemplateEditor.emailBlockN" | "emailTemplateEditor.emailOff" | "emailTemplateEditor.emailOn" | "emailTemplateEditor.insertNamed" | "fileInput.processing" | "imageGallery.showImage" | "importExport.columnFor" | "importExport.columnForRequired" | "importExport.columnMapping" | "importExport.requiredError" | "keypad.dotsLabel" | "kpiCard.progress" | "list.sortableItem" | "messagingSendMessagePanel.enterValue" | "messagingTemplatePicker.custom" | "messagingTemplatePicker.system" | "notes.queued.waiting" | "notes.queued.sending" | "notes.queued.deleteWaiting" | "notes.queued.deleteSending" | "notes.queued.failed" | "notes.queued.conflict" | "notes.queued.addedAnnounce" | "notes.queued.editedAnnounce" | "notes.queued.deletedAnnounce" | "notes.queued.problemAnnounce" | "notes.queued.offlineSome" | "notes.queued.offlineNone" | "notes.you" | "passwordRequirements.met" | "passwordRequirements.notMet" | "paymentSidePanel.amountFor" | "paymentSidePanel.splitPayments_one" | "paymentSidePanel.splitPayments_other" | "pdfDocumentSignModal.changeSignature" | "pdfDocumentSignModal.changeNamed" | "pdfViewer.pageOf" | "phoneNumberPicker.selectNamed" | "reminderAlerts.hideAlert" | "shareMenu.shareNamed" | "starRating.nStars" | "starRating.oneStar" | "stripeConnect.accountId" | "toggleBadge.actions" | "bulkMessagePanel.contactWord_one" | "bulkMessagePanel.contactWord_other" | "bulkMessagePanel.noEmailWord" | "bulkMessagePanel.noPhoneWord" | "calendar.addButton" | "calendar.moreCount" | "conversations.openSr" | "emailTemplateEditor.example" | "importExport.entityField" | "importExport.mapManually" | "importExport.previewRows_one" | "importExport.previewRows_other" | "importExport.rowNumber" | "importExport.rowsWithErrors_one" | "importExport.rowsWithErrors_other" | "importExport.stepCurrent" | "importExport.stepDone" | "importExport.unmappedRequired_one" | "importExport.unmappedRequired_other" | "importExport.unmatchedCsv_one" | "importExport.unmatchedCsv_other" | "messagingSendMessagePanel.recipientsWord" | "messagingSendMessagePanel.toLabel" | "messagingSendText.uploading" | "messagingTemplatePicker.inactive" | "messagingVideoLinkSettings.watchPreview" | "paymentSidePanel.deviceConnected" | "paymentSidePanel.deviceNotConnected" | "paymentSidePanel.paymentSuccessful" | "phoneNumberPicker.youChose" | "stepper.optional" | "stripeStripeConnect.completeSetup" | "stripeStripeConnect.checkStatus" | "stripeStripeConnect.opensInNewTabBusy" | "stripeStripeConnect.opensInNewTabSr" | "textTemplatePicker.noVariablesMatch" | "messagingSendMessagePanel.recipientCount_one" | "messagingSendMessagePanel.recipientCount_other" | "addressInput.cityPlaceholder" | "addressInput.streetPlaceholder" | "addressInput.unitPlaceholder" | "addressInput.zipLabel" | "bankAccountForm.mandate" | "board.itemNoun" | "board.itemNounPlural" | "board.movedTo" | "board.showingOf" | "bulkMessagePanel.sendToN_one" | "bulkMessagePanel.sendToN_other" | "cardListItem.priorityHigh" | "cardListItem.priorityLow" | "cardListItem.priorityMedium" | "charts.seriesN" | "format.daysAgo" | "format.hoursAgo" | "format.justNow" | "format.minutesAgo" | "imageGallery.imageN" | "imageGallery.imageNAlt" | "importExport.csvNeedsRows" | "importExport.importRecords_one" | "importExport.importRecords_other" | "importExport.importValidRows" | "importExport.leaveBlank" | "list.itemN" | "messagingDocumentSendOptions.envelopeReadFailed" | "messagingDocumentSendOptions.envelopeReading" | "messagingDocumentSendOptions.signersReadFailed" | "messagingDocumentSendOptions.signersReading" | "messagingSendMessagePanel.bulkMergeTagHint" | "messagingSendMessagePanel.emailDisabled" | "messagingSendMessagePanel.leftoverTags" | "messagingSendMessagePanel.subjectAttached_one" | "messagingSendMessagePanel.subjectAttached_other" | "messagingSendMessagePanel.subjectShared_one" | "messagingSendMessagePanel.subjectShared_other" | "messagingSendMessagePanel.subjectSign_one" | "messagingSendMessagePanel.subjectSign_other" | "pdfViewer.unsupported" | "pdfViewer.workerMissing" | "shareMenu.unavailable" | "stepper.srDisabled" | "stepper.srError" | "stepper.srErrorMessage" | "stepper.srOptional" | "stepper.srStep" | "stepper.statusComplete" | "stepper.statusCurrent" | "stepper.statusNotStarted" | "stepper.stepOf" | "textTemplatePicker.nVariables" | "textTemplatePicker.noVariables" | "textTemplatePicker.oneVariable" | "appShell.appName" | "messagingTemplatePicker.sampleAddress" | "messagingTemplatePicker.sampleClosingDate" | "messagingTemplatePicker.sampleCompany" | "messagingVideoLink.watchVideo" | "paymentSidePanel.terminalProvider" | "pdfDocumentViewerModal.fileName" | "usState.AK" | "usState.AL" | "usState.AR" | "usState.AZ" | "usState.CA" | "usState.CO" | "usState.CT" | "usState.DC" | "usState.DE" | "usState.FL" | "usState.GA" | "usState.HI" | "usState.IA" | "usState.ID" | "usState.IL" | "usState.IN" | "usState.KS" | "usState.KY" | "usState.LA" | "usState.MA" | "usState.MD" | "usState.ME" | "usState.MI" | "usState.MN" | "usState.MO" | "usState.MS" | "usState.MT" | "usState.NC" | "usState.ND" | "usState.NE" | "usState.NH" | "usState.NJ" | "usState.NM" | "usState.NV" | "usState.NY" | "usState.OH" | "usState.OK" | "usState.OR" | "usState.PA" | "usState.RI" | "usState.SC" | "usState.SD" | "usState.TN" | "usState.TX" | "usState.UT" | "usState.VA" | "usState.VT" | "usState.WA" | "usState.WI" | "usState.WV" | "usState.WY" | "emailTemplateEditor.sendTest" | "emailTemplateEditor.tipAlignCenter" | "emailTemplateEditor.tipAlignLeft" | "emailTemplateEditor.tipAlignRight" | "emailTemplateEditor.tipBulletedList" | "emailTemplateEditor.tipDeleteBlock" | "emailTemplateEditor.tipInsertImage" | "emailTemplateEditor.tipInsertLink" | "emailTemplateEditor.tipMoveDown" | "emailTemplateEditor.tipMoveUp" | "emailTemplateEditor.tipNumberedList" | "emailTemplateEditor.tipTextColor" | "emailTemplateEditor.tipBold" | "emailTemplateEditor.tipDuplicate" | "emailTemplateEditor.tipItalic" | "emailTemplateEditor.tipRedo" | "emailTemplateEditor.tipUnderline" | "emailTemplateEditor.tipUndo" | "emailTemplateEditor.imageAltDefault" | "common.file" | "calendar.eventCount_one" | "calendar.eventCount_other" | "calendar.level.critical" | "calendar.level.high" | "calendar.level.low" | "calendar.level.medium" | "time.now" | "time.minutesShort" | "time.hoursShort" | "time.daysShort" | "time.today" | "time.yesterday" | "common.filterBy" | "common.filterOptions" | "common.close" | "common.closeFilter" | "common.clear" | "common.cancel" | "common.apply" | "common.confirm" | "common.dismiss" | "common.more" | "common.tryAgain" | "common.filterTabs" | "common.rowActions" | "common.dismissingIn" | "common.selectValidOption" | "common.required" | "dataTable.apply" | "dataTable.cancel" | "dataTable.clear" | "dataTable.clearFilters" | "dataTable.noResults" | "dataTable.emptyMessage" | "dataTable.searchPlaceholder" | "dataTable.searchBy" | "dataTable.tableLabel" | "dataTable.totalsLabel" | "dataTable.selectAll" | "dataTable.selectRow" | "dataTable.selectRowNamed" | "dataTable.rowActions" | "dataTable.rowActionsNamed" | "dataTable.reorder" | "dataTable.reorderRow" | "dataTable.reorderRowNamed" | "dataTable.opensInNewTab" | "dataTable.sortAndFilter" | "dataTable.sort" | "dataTable.sortBy" | "dataTable.export" | "dataTable.import" | "dataTable.delete" | "dataTable.deleteConfirm" | "dataTable.deleteFailed" | "dataTable.genericError" | "dataTable.loadError.offline" | "dataTable.loadError.noCopy" | "dataTable.loadError.unreachable" | "dataTable.loadError.timeout" | "dataTable.loadError.session" | "dataTable.loadError.forbidden" | "dataTable.loadError.server" | "dataTable.loadError.other" | "dataTable.actionError.offline" | "dataTable.actionError.unreachable" | "dataTable.actionError.timeout" | "dataTable.noneDeletable" | "dataTable.whatWillHappen" | "dataTable.never" | "dataTable.daysAgo" | "dataTable.itemWord" | "dataTable.itemsWord" | "dataTable.selectedCount_one" | "dataTable.selectedCount_other" | "dataTable.sortByColumn" | "dataTable.tryAgain" | "dataTable.all" | "dataTable.default" | "dataTable.linkOpensNewTab" | "dataTable.moveUp" | "dataTable.moveDown" | "dataTable.rowWord" | "dataTable.rowWordCapital" | "dataTable.dragHint" | "dataTable.reorderHelp" | "dataTable.reorderBlockedFiltered" | "dataTable.reorderBlockedNothing" | "dataTable.reorderBlockedOther" | "dataTable.reorderAtPosition" | "dataTable.reorderMoved" | "dataTable.changeColumn" | "dataTable.deleteTitle" | "dataTable.deleteRecordConfirm" | "dataTable.deleteBulkConfirm" | "dataTable.actionConfirm" | "dataTable.bulkChangeConfirm" | "dataTable.bulkCustomConfirm" | "dataTable.noneQualify" | "dataTable.skipNotQualify_one" | "dataTable.skipNotQualify_other" | "dataTable.skipCantDelete_one" | "dataTable.skipCantDelete_other" | "dataTable.skipCantChange_one" | "dataTable.skipCantChange_other" | "dataTable.skipAlreadyHas_one" | "dataTable.skipAlreadyHas_other" | "dataTable.noChangesBlocked" | "dataTable.noChangesAlready" | "dataTable.bulkCannotApply" | "dataTable.bulkOptionBlocked" | "dataTable.doneUpdated" | "dataTable.doneDeleted" | "dataTable.doneDownloaded" | "dataTable.summaryDone" | "dataTable.summarySkipped" | "dataTable.summaryNotAllowed" | "dataTable.summaryUsesCountAgreement" | "dataTable.summaryAll_one" | "dataTable.summaryAll_other" | "dataTable.summaryDownloadSkipped" | "dataTable.rowDeleted" | "dataTable.rowNotDeleted" | "dataTable.viewSaved" | "dataTable.viewSaveFailed" | "dataTable.viewDeleted" | "dataTable.viewDeleteFailed" | "connection.offline.title" | "connection.offline.message" | "connection.pending.one" | "connection.pending.other" | "connection.slow.title" | "connection.slow.message" | "connection.unreachable.title" | "connection.unreachable.message" | "connection.syncing.one" | "connection.syncing.other" | "connection.synced" | "connection.needAttention.one" | "connection.needAttention.other" | "connection.syncNow" | "connection.viewChanges" | "connection.whatCanIDo" | "connection.hide" | "connection.savedOnDevice" | "connection.offline.noQueue.message" | "connection.unreachable.noQueue.message" | "connection.slow.noQueue.message" | "connection.backOnline" | "connection.stillWorking" | "connection.timeout.read" | "connection.thisAction" | "connection.timeout.write" | "connection.blocked" | "connection.uploadBlocked" | "connection.storageUnavailable" | "connection.noCopy" | "connection.storageNotAvailable" | "connection.storageTimeout" | "connection.queueFull" | "connection.transactionAborted" | "connection.stale" | "connection.refresh" | "connection.refreshAria" | "connection.logoutPending.one" | "connection.logoutPending.other" | "connection.authBlocked" | "connection.error.conflict" | "connection.error.rejected" | "connection.error.server" | "connection.error.network" | "connection.error.timeout" | "connection.error.auth" | "connection.error.unknown" | "connection.error.dependency" | "connection.retry" | "connection.discard" | "connection.discardAll" | "connection.syncAll" | "connection.region" | "connection.info.panelLabel" | "connection.info.canDoTitle" | "connection.info.canDo1" | "connection.info.canDo2" | "connection.info.needsTitle" | "connection.info.needs1" | "connection.drawer.title" | "connection.drawer.list" | "connection.drawer.empty" | "connection.drawer.close" | "connection.status.pending" | "connection.status.syncing" | "connection.status.failed" | "connection.status.conflict" | "connection.savedAt" | "connection.time.justNow" | "connection.retryNamed" | "connection.discardNamed" | "connection.discard.title" | "connection.discard.message" | "connection.discard.dependents.one" | "connection.discard.dependents.other" | "connection.discardAll.title" | "connection.discardAll.message.one" | "connection.discardAll.message.other" | "connection.result.retrying" | "connection.result.syncStarted" | "connection.result.discarded" | "connection.result.discardedAll" | "connection.conflict.rowText" | "connection.conflict.keepMine" | "connection.conflict.keepMineNamed" | "connection.conflict.discard" | "connection.conflict.discardNamed" | "connection.conflict.confirmTitle" | "connection.conflict.confirmMessage" | "connection.conflict.result.keeping" | "connection.conflict.error.disabled" | "connection.conflict.error.notFound" | "connection.conflict.error.notConflict" | "connection.conflict.error.noStamp" | "connection.conflict.result.sent" | "connection.conflict.result.shortly" | "connection.conflict.error.unknown" | "common.example" | "format.durationMinSec" | "format.durationSec" | "format.aptPrefix" | "common.listAnd" | "common.listAndBeforeI" | "discountSelector.applies.labor" | "discountSelector.applies.materials" | "discountSelector.applies.total" | "importExport.downloadTemplate" | "importExport.exportedCount" | "contactPicker.resultCount_one" | "contactPicker.resultCount_other" | "conversations.status.delivered" | "conversations.status.sent" | "conversations.status.failed" | "conversations.status.scheduled" | "conversations.imageFallbackName" | "calendar.view.week" | "calendar.view.month" | "calendar.view.agenda" | "colorInput.invalidHex" | "messagingVideoLink.watchNamed" | "connection.defaultLabel.add" | "connection.defaultLabel.update" | "connection.defaultLabel.delete" | "connection.entityFallback" | "dataTable.rowPosition" | "multiSelect.nSelected_one" | "multiSelect.nSelected_other" | "bulkMessagePanel.skippedNo_one" | "bulkMessagePanel.skippedNo_other" | "messagingSendMessagePanel.canReceiveEmail_one" | "messagingSendMessagePanel.canReceiveEmail_other" | "messagingSendMessagePanel.canReceiveText_one" | "messagingSendMessagePanel.canReceiveText_other" | "messagingSendMessagePanel.announceNone_one" | "messagingSendMessagePanel.announceNone_other" | "messagingSendMessagePanel.announceSome_one" | "messagingSendMessagePanel.announceSome_okOne" | "messagingSendMessagePanel.announceSome_other" | "paymentSidePanel.span.second_one" | "paymentSidePanel.span.second_other" | "fileInput.word.image" | "fileInput.word.video" | "fileInput.word.audio" | "integrations.language" | "i18n.locale" | "language.label" | "language.automatic" | "setupWizard.integrationTitle.twilio" | "validation.requiredNoLabel" | "common.nSelected" | "kanban.ariaLabel" | "kanban.loading" | "kanban.emptyColumnText" | "kanban.columnLabel_one" | "kanban.columnLabel_other" | "kanban.probability" | "kanban.moveTo" | "kanban.moveMenu" | "kanban.hint" | "kanban.pickedUp" | "kanban.movingOver" | "kanban.movingOverBlocked" | "kanban.moved" | "kanban.unchanged" | "kanban.dropBlocked" | "kanban.cancelled" | "kanban.reverted" | "kanban.blocked" | "kanban.showMore" | "kanban.showingOf" | "map.ariaLabel" | "map.keyboardHelp" | "map.zoomIn" | "map.zoomOut" | "map.fitMarkers" | "map.loading" | "map.unavailableNoTiles" | "map.unavailableNoAttribution" | "map.unavailableInvalidTiles" | "map.unavailableLoadFailed" | "map.tilesFailed" | "map.listLabel" | "map.listCount_one" | "map.listCount_other" | "map.listShowing" | "map.listEmpty" | "map.clusterTitle" | "map.infoLabel" | "map.closeInfo" | "map.drawToolbar" | "map.drawCircle" | "map.drawRectangle" | "map.drawPolygon" | "map.clearArea" | "map.drawFinish" | "map.drawCancel" | "map.drawUndo" | "map.addPointAtCenter" | "map.draw.circle" | "map.draw.rectangle" | "map.draw.polygon" | "map.draw.pointAdded" | "map.draw.pointRemoved" | "map.draw.needMore_one" | "map.draw.needMore_other" | "map.draw.rejected" | "map.draw.cancelled" | "map.draw.cleared" | "map.draw.finished" | "map.areaSummary" | "map.area.circle" | "map.area.bbox" | "map.area.polygon" | "map.unitMeters" | "map.unitKilometers" | "map.form.title" | "map.form.shape" | "map.form.circle" | "map.form.rectangle" | "map.form.polygon" | "map.form.centerLat" | "map.form.centerLng" | "map.form.radius" | "map.form.radiusUnit" | "map.form.unitM" | "map.form.unitKm" | "map.form.unitMi" | "map.form.north" | "map.form.south" | "map.form.east" | "map.form.west" | "map.form.pointLat" | "map.form.pointLng" | "map.form.addPoint" | "map.form.pointsLabel" | "map.form.pointItem" | "map.form.removePoint" | "map.form.noPoints" | "map.form.apply" | "map.form.clear" | "map.form.applied" | "map.form.errorNumber" | "map.form.errorLat" | "map.form.errorLng" | "map.form.errorRadius" | "map.form.errorNorthSouth" | "map.form.errorEastWest" | "map.form.errorPolygon" | "map.draw.selfIntersecting" | "map.draw.finishSelfIntersecting" | "map.form.errorSelfIntersecting" | "map.placeSelected" | "notificationBell.label" | "notificationBell.empty" | "notificationBell.close" | "notificationBell.loading" | "notificationBell.retry" | "notificationBell.markAllRead" | "notificationBell.markRead" | "notificationBell.markReadNamed" | "notificationBell.loadMore" | "notificationBell.new" | "notificationBell.labelUnread" | "notificationBell.unread" | "notificationBell.allCaughtUp" | "notificationBell.announce.none" | "notificationBell.announce.one" | "notificationBell.announce.other" | "stackingPlan.legend" | "stackingPlan.showTable" | "stackingPlan.showPlan" | "stackingPlan.floor" | "stackingPlan.unit" | "stackingPlan.size" | "stackingPlan.details" | "rangeFilter.min" | "rangeFilter.max" | "rangeFilter.minFor" | "rangeFilter.maxFor" | "rangeFilter.group" | "rangeFilter.minAboveMax" | "rangeFilter.between" | "rangeFilter.atLeast" | "rangeFilter.atMost" | "rangeFilter.filterByActive" | "rangeFilter.percent" | "rangeFilter.withUnit" | "rangeFilter.badNumber" | "squarePayment.label" | "squarePayment.loadErrorMessage" | "squarePayment.a11y.loading" | "squarePayment.a11y.processing" | "squarePayment.a11y.tokenized" | "squarePayment.method.group" | "squarePayment.method.card" | "squarePayment.method.ach" | "squarePayment.submit.pay" | "squarePayment.submit.payBank" | "squarePayment.submit.saveCard" | "squarePayment.submit.saveBank" | "squarePayment.holderLabel" | "squarePayment.holderPlaceholder" | "squarePayment.holderRequired" | "squarePayment.achInfo" | "squarePayment.achConsent" | "squarePayment.achConsentSetup" | "squarePayment.consentRequired" | "squarePayment.msg.loadFailed" | "squarePayment.msg.configMissing" | "squarePayment.msg.notReady" | "squarePayment.msg.cardFormFailed" | "squarePayment.msg.achInitFailed" | "squarePayment.msg.cancelled" | "squarePayment.msg.tokenizeFailed" | "squarePayment.msg.achFailed" | "squarePayment.msg.verifyFailed" | "squareErrors.defaultMessage" | "squareErrors.field.cardNumber" | "squareErrors.field.expirationDate" | "squareErrors.field.cvv" | "squareErrors.field.postalCode" | "squareErrors.type.UNSUPPORTED_CARD_BRAND" | "squareErrors.type.CONFIGURATION" | "squareErrors.type.PAYMENT_METHOD_NOT_SUPPORTED" | "squareErrors.code.GENERIC_DECLINE" | "squareErrors.code.CARD_DECLINED" | "squareErrors.code.CARD_DECLINED_CALL_ISSUER" | "squareErrors.code.CARD_DECLINED_VERIFICATION_REQUIRED" | "squareErrors.code.INSUFFICIENT_FUNDS" | "squareErrors.code.CVV_FAILURE" | "squareErrors.code.ADDRESS_VERIFICATION_FAILURE" | "squareErrors.code.INVALID_EXPIRATION" | "squareErrors.code.CARD_EXPIRED" | "squareErrors.code.INVALID_CARD" | "squareErrors.code.CARD_NOT_SUPPORTED" | "squareErrors.code.INVALID_ACCOUNT" | "squareErrors.code.PAYMENT_LIMIT_EXCEEDED" | "squareErrors.code.BUYER_REFUSED_PAYMENT" | "squareErrors.code.CARDHOLDER_INSUFFICIENT_PERMISSIONS" | "squareErrors.code.IDEMPOTENCY_KEY_REUSED" | "squareErrors.code.RATE_LIMITED" | "squareErrors.code.UNAUTHORIZED" | "squareConnect.title" | "squareConnect.startTitle" | "squareConnect.startText" | "squareConnect.startLabel" | "squareConnect.connected" | "squareConnect.needsReconnect" | "squareConnect.reconnectText" | "squareConnect.reconnect" | "squareConnect.disconnect" | "squareConnect.disconnectTitle" | "squareConnect.disconnectMessage" | "squareConnect.checkStatus" | "squareConnect.checking" | "squareConnect.connectedOn" | "squareConnect.opensInNewTabBusy" | "squareConnect.opensInNewTabSr" | "squareConnect.live.none" | "squareConnect.live.connected" | "squareConnect.live.reconnect" | "squareConnect.live.loading" | "squareConnect.noticeConnected" | "squareConnect.noticeReconnect" | "squareConnect.noticeNotConnected" | "squareConnect.noticeDisconnected" | "squareConnect.noticeLinkUnavailable" | "squareConnect.failedStart" | "squareConnect.failedCheck" | "squareConnect.failedDisconnect" | "squareConnect.merchantLine" | "squareConnect.locationLine" | "qboConnect.title" | "qboConnect.startTitle" | "qboConnect.startText" | "qboConnect.startLabel" | "qboConnect.connected" | "qboConnect.needsReconnect" | "qboConnect.reconnectText" | "qboConnect.reconnect" | "qboConnect.disconnect" | "qboConnect.disconnectTitle" | "qboConnect.disconnectMessage" | "qboConnect.checkStatus" | "qboConnect.checking" | "qboConnect.connectedOn" | "qboConnect.opensInNewTabBusy" | "qboConnect.opensInNewTabSr" | "qboConnect.live.none" | "qboConnect.live.connected" | "qboConnect.live.reconnect" | "qboConnect.live.loading" | "qboConnect.noticeConnected" | "qboConnect.noticeReconnect" | "qboConnect.noticeNotConnected" | "qboConnect.noticeDisconnected" | "qboConnect.noticeLinkUnavailable" | "qboConnect.failedStart" | "qboConnect.failedCheck" | "qboConnect.failedDisconnect" | "qboConnect.companyLine" | "squarePaymentMethod.methodCard" | "squarePaymentMethod.methodAch" | "squarePaymentMethod.amountNeeded" | "squarePaymentMethod.notCompleted" | "squarePaymentMethod.achTitle" | "squarePaymentMethod.achMessage" | "squarePaymentMethod.pendingTitle" | "squarePaymentMethod.pendingMessage" | "squarePaymentMethod.receiptNote" | "squarePaymentMethod.paymentDetails" | "squarePaymentMethod.totalCharged" | "squarePaymentMethod.amountPlusFees" | "squarePaymentMethod.paymentTotal" | "squarePaymentMethod.paymentAmount" | "squarePaymentMethod.processingFee" | "squarePaymentMethod.platformFee" | "squarePaymentMethod.feesFailed" | "squarePaymentMethod.announceProcessing" | "squarePaymentMethod.pay" | "squarePaymentMethod.paymentFailed" | "squarePaymentMethod.unavailable" | "squarePaymentMethod.announceReady" | "qboPaymentMethod.methodCard" | "qboPaymentMethod.methodAch" | "qboPaymentMethod.amountNeeded" | "qboPaymentMethod.notCompleted" | "qboPaymentMethod.achTitle" | "qboPaymentMethod.achMessage" | "qboPaymentMethod.pendingTitle" | "qboPaymentMethod.pendingMessage" | "qboPaymentMethod.receiptNote" | "qboPaymentMethod.paymentDetails" | "qboPaymentMethod.totalCharged" | "qboPaymentMethod.amountPlusFees" | "qboPaymentMethod.paymentTotal" | "qboPaymentMethod.paymentAmount" | "qboPaymentMethod.processingFee" | "qboPaymentMethod.platformFee" | "qboPaymentMethod.feesFailed" | "qboPaymentMethod.announceProcessing" | "qboPaymentMethod.pay" | "qboPaymentMethod.paymentFailed" | "qboPaymentMethod.unavailable" | "qboPayment.label" | "qboPayment.a11y.processing" | "qboPayment.a11y.tokenized" | "qboPayment.method.group" | "qboPayment.method.card" | "qboPayment.method.ach" | "qboPayment.submit.pay" | "qboPayment.submit.payBank" | "qboPayment.submit.saveCard" | "qboPayment.submit.saveBank" | "qboPayment.secureNote" | "qboPayment.card.number" | "qboPayment.card.name" | "qboPayment.card.nameOptional" | "qboPayment.card.expiry" | "qboPayment.card.expiryPlaceholder" | "qboPayment.card.cvc" | "qboPayment.card.postal" | "qboPayment.card.postalOptional" | "qboPayment.bank.info" | "qboPayment.bank.holder" | "qboPayment.bank.routing" | "qboPayment.bank.routingPlaceholder" | "qboPayment.bank.account" | "qboPayment.bank.confirm" | "qboPayment.bank.type" | "qboPayment.bank.type.PERSONAL_CHECKING" | "qboPayment.bank.type.PERSONAL_SAVINGS" | "qboPayment.bank.type.BUSINESS_CHECKING" | "qboPayment.bank.type.BUSINESS_SAVINGS" | "qboPayment.brand.visa" | "qboPayment.brand.mastercard" | "qboPayment.brand.amex" | "qboPayment.brand.discover" | "qboPayment.brand.diners" | "qboPayment.brand.jcb" | "qboPayment.achConsent" | "qboPayment.achConsentSetup" | "qboPayment.consentRequired" | "qboPayment.err.required" | "qboPayment.err.numberLength" | "qboPayment.err.numberLuhn" | "qboPayment.err.expiryFormat" | "qboPayment.err.expiryMonth" | "qboPayment.err.expiryPast" | "qboPayment.err.cvcLength" | "qboPayment.err.or" | "qboPayment.err.postalFormat" | "qboPayment.err.postalFormatCa" | "qboPayment.err.routingLength" | "qboPayment.err.accountLength" | "qboPayment.err.confirmMismatch" | "qboErrors.defaultMessage" | "qboErrors.field.cardNumber" | "qboErrors.field.expiry" | "qboErrors.field.cvc" | "qboErrors.field.postalCode" | "qboErrors.field.routing" | "qboErrors.field.account" | "qboErrors.field.accountType" | "qboErrors.field.holder" | "qboErrors.status.network" | "qboErrors.status.invalid" | "qboErrors.status.notAllowed" | "qboErrors.status.rateLimited" | "qboErrors.status.unavailable" | "paymentAttempt.checking" | "paymentAttempt.checkingHelp" | "paymentAttempt.stillChecking" | "paymentAttempt.checkAgain" | "paymentAttempt.waiting" | "paymentAttempt.startOver" | "paymentAttempt.paid" | "paymentAttempt.queuedOffline" | "paymentAttempt.offline" | "paymentAttempt.timeout" | "paymentAttempt.offlineInFlight" | "paymentAttempt.failedAfterCheck" | "paymentAttempt.authRequired" | "paymentAttempt.authAbandoned" | "paymentAttempt.verifyRetry" | "paymentAttempt.referenceChanged" | "paymentAttempt.linkInUse" | "paymentAttempt.linkAlreadyPaid" | "paymentAttempt.linkExpired" | "paymentAttempt.linkCancelled" | "paymentAttempt.notSupported" | "paymentAttempt.awaitingVerification" | "paymentAttempt.duplicate" | "paymentReadiness.offline" | "paymentReadiness.slow_connection" | "paymentReadiness.sdk_blocked" | "paymentReadiness.service_unavailable" | "paymentReadiness.merchant_not_ready" | "paymentReadiness.events_backlog" | "paymentReadiness.payable_changed" | "paymentReadiness.already_paid" | "paymentReadiness.reconnect_required" | "paymentReadiness.outcome_unknown" | "paymentReadiness.payment_in_flight" | "paymentReadiness.unsupported_browser" | "paymentReadiness.unknown_payment" | "paymentReadiness.checking" | "paymentReadiness.generic" | "paymentReadiness.retryLoad" | "paymentReadiness.storageWarning" | "paymentSetup.checking" | "paymentSetup.checkingHelp" | "paymentSetup.stillChecking" | "paymentSetup.waiting" | "paymentSetup.paid" | "paymentSetup.queuedOffline" | "paymentSetup.offline" | "paymentSetup.awaitingVerification" | "paymentSetup.slowConnection" | "paymentSetup.serviceUnavailable" | "paymentSetup.outcomeChecking" | "paymentSetup.inFlight" | "paymentSetup.readinessChecking" | "paymentSetup.readinessGeneric" | "paymentSetup.alreadySaved" | "paymentSetup.storageWarning" | "paymentSetup.unsupportedBrowser" | "paymentSetup.merchantNotReady" | "paymentSetup.eventsBacklog" | "paymentSetup.payableChanged" | "paymentSetup.reconnectRequired" | "paymentSetup.requiresPaymentMethod" | "paymentSetup.processing" | "qboHostedPay.title" | "qboHostedPay.titleNoAmount" | "qboHostedPay.pay" | "qboHostedPay.loading" | "qboHostedPay.expiredTitle" | "qboHostedPay.expired" | "qboHostedPay.usedTitle" | "qboHostedPay.used" | "qboHostedPay.successTitle" | "qboHostedPay.success" | "qboHostedPay.submittedTitle" | "qboHostedPay.submitted" | "qboHostedPay.errorTitle" | "qboHostedPay.unavailable" | "qboHostedPay.footer" | "stripePayment.msg.tokenFailed" | "stripeReader.theReader" | "stripeReader.status.loading" | "stripeReader.status.no_reader.title" | "stripeReader.status.no_reader.text" | "stripeReader.status.unsupported_only.title" | "stripeReader.status.unsupported_only.text" | "stripeReader.status.reader_offline.title" | "stripeReader.status.reader_offline.text" | "stripeReader.status.reader_busy.title" | "stripeReader.status.reader_busy.text" | "stripeReader.status.merchant_not_ready.title" | "stripeReader.status.merchant_not_ready.text" | "stripeReader.status.checking.title" | "stripeReader.status.checking.text" | "stripeReader.status.reconnect_required.title" | "stripeReader.status.reconnect_required.text" | "stripeReader.status.stale_attention.title" | "stripeReader.status.stale_attention.text" | "stripeReader.status.reader_ready.live" | "stripeReader.status.connect" | "stripeReader.status.get" | "stripeReader.status.recheck" | "stripeReader.status.setup" | "stripeReader.status.reconnect" | "stripeReader.status.cancelBusy" | "stripeReader.status.manual" | "stripeReader.status.getInfo" | "stripeReaderBanner.getReader" | "stripeReaderBanner.setupFirst" | "stripeReaderBanner.sandbox" | "stripeReaderBanner.serviceDisabled" | "stripeReaderBanner.processorUnsupported" | "stripeReader.mode.label" | "stripeReader.mode.reader" | "stripeReader.mode.manual" | "stripeReader.selectReader" | "stripeReader.readerLine" | "stripeReader.start" | "stripeReader.startNoAmount" | "stripeReader.starting" | "stripeReader.startingText" | "stripeReader.manualInstead" | "stripeReader.takeManual" | "stripeReader.startAgain" | "stripeReader.cancel" | "stripeReader.wait.waiting.title" | "stripeReader.wait.waiting.text" | "stripeReader.wait.declined.title" | "stripeReader.wait.declined.text" | "stripeReader.wait.stopped.title" | "stripeReader.wait.stopped.text" | "stripeReader.wait.retrying.title" | "stripeReader.wait.retrying.text" | "stripeReader.wait.cancelling.title" | "stripeReader.wait.cancelling.text" | "stripeReader.wait.recovering.title" | "stripeReader.wait.recovering.text" | "stripeReader.connectionLost" | "stripeReader.readerDisconnected" | "stripeReader.stillChecking" | "stripeReader.cancelUnreachable" | "stripeReader.elapsed" | "stripeReader.fees.loading" | "stripeReader.fees.failed" | "stripeReader.done.title" | "stripeReader.done.text" | "stripeReader.done.card" | "stripeReader.done.cardWord" | "stripeReader.receipt" | "stripeReader.cardSaved" | "stripeReader.cardNotSaved" | "stripeReader.canceled.title" | "stripeReader.canceled.text" | "stripeReader.failed.title" | "stripeReader.failed.text" | "stripeReader.saveCard.label" | "stripeReader.saveCard.consent" | "stripeReader.closeBlocked" | "stripeReader.offline.withManual" | "stripeReader.offline.noManual" | "stripeReader.refusal.generic" | "stripeReader.refusal.reader_busy" | "stripeReader.refusal.reader_offline" | "stripeReader.refusal.reader_not_supported" | "stripeReader.refusal.reader_unreachable" | "stripeReader.refusal.terminal_not_retryable" | "stripeReader.refusal.payment_in_flight" | "stripeReader.refusal.merchant_not_ready" | "stripeReader.refusal.reconnect_required" | "stripeReader.refusal.consent_required" | "stripeReader.refusal.terminal_save_needs_direct" | "stripeReader.refusal.not_supported_by_processor" | "stripeReader.refusal.exceeds_amount_due" | "stripeReader.refusal.duplicate_suspected" | "stripeReader.refusal.paid" | "stripeReader.refusal.offline" | "stripeReader.refusal.outcome_checking" | "stripeReader.refusal.queued_offline" | "stripeReader.refusal.start_not_received" | "stripeReader.refusal.retry_unreachable" | "stripeReaders.list.title" | "stripeReaders.list.empty" | "stripeReaders.status.online" | "stripeReaders.status.offline" | "stripeReaders.status.registering" | "stripeReaders.badge.busy" | "stripeReaders.badge.unsupported" | "stripeReaders.rename.action" | "stripeReaders.rename.for" | "stripeReaders.rename.label" | "stripeReaders.rename.done" | "stripeReaders.remove.action" | "stripeReaders.remove.for" | "stripeReaders.remove.title" | "stripeReaders.remove.text" | "stripeReaders.remove.confirm" | "stripeReaders.remove.done" | "stripeReaders.remove.busy" | "stripeReaders.add.title" | "stripeReaders.add.howS700" | "stripeReaders.add.howWisepos" | "stripeReaders.add.supported" | "stripeReaders.add.connect" | "stripeReaders.add.connecting" | "stripeReaders.add.done" | "stripeReaders.code.label" | "stripeReaders.code.hint" | "stripeReaders.code.invalid" | "stripeReaders.name.label" | "stripeReaders.name.hint" | "stripeReaders.location.label" | "stripeReaders.location.placeholder" | "stripeReaders.location.new" | "stripeReaders.location.name" | "stripeReaders.location.line1" | "stripeReaders.location.city" | "stripeReaders.location.state" | "stripeReaders.location.postal" | "stripeReaders.location.create" | "stripeReaders.location.created" | "stripeReaders.failed.load" | "stripeReaders.failed.register" | "stripeReaders.failed.rename" | "stripeReaders.failed.remove" | "stripeReaders.failed.location" | "stripeReaders.failed.notSupported" | "stripeReader.refusal.quote_changed" | "stripeReader.refusal.quote_changedNoAmount" | "stripeReader.refusal.attempt_failed_use_new_key" | "stripeReader.refusal.payment_being_sent" | "stripeReader.refusal.rate_limited" | "stripeReader.refusal.viewExisting" | "stripeReader.confirmTotal" | "stripeReader.leaveHint" | "stripeReader.wait.amount" | "stripeReader.wait.amountBase" | "stripeReader.degraded.since" | "stripeReader.degraded.attention" | "stripeReader.done.textNoAmount" | "stripeReader.mode.blocked" | "stripeReader.mode.blockedManual" | "stripeReader.saveCard.consentFees" | "stripeReaderShop.title" | "stripeReaderShop.orders.title" | "stripeReaderShop.loading" | "stripeReaderShop.orders.loading" | "stripeReaderShop.live.ready" | "stripeReaderShop.error.title" | "stripeReaderShop.error.text" | "stripeReaderShop.offline.title" | "stripeReaderShop.offline.text" | "stripeReaderShop.unavailable.title" | "stripeReaderShop.unavailable.platform_not_enabled" | "stripeReaderShop.unavailable.account_not_eligible" | "stripeReaderShop.unavailable.processor_refused" | "stripeReaderShop.unavailable.not_enabled_for_app" | "stripeReaderShop.unavailable.other" | "stripeReaderShop.unavailable.models" | "stripeReaderShop.model.s700" | "stripeReaderShop.model.s710" | "stripeReaderShop.model.wisepos" | "stripeReaderShop.unavailable.how" | "stripeReaderShop.help.link" | "stripeReaderShop.placed.title" | "stripeReaderShop.placed.text" | "stripeReader.wait.unconfirmed.title" | "stripeReader.wait.unconfirmed.text" | "stripeReader.cancelBusy.timeout" | "stripeReader.fees.unavailable" | "stripeReaders.failed.timeout" | "squareTerminal.banner.getReader" | "squareTerminal.banner.setupFirst" | "squareTerminal.status.connect" | "squareTerminal.status.get" | "squareTerminal.status.getInfo" | "squareTerminal.status.no_reader.title" | "squareTerminal.status.no_reader.text" | "squareTerminal.status.unsupported_only.title" | "squareTerminal.status.unsupported_only.text" | "squareTerminal.status.reader_offline.title" | "squareTerminal.status.reader_offline.text" | "squareTerminal.theReader" | "squareTerminal.readerLine" | "squareTerminal.start" | "squareTerminal.startNoAmount" | "squareTerminal.starting" | "squareTerminal.startingText" | "squareTerminal.wait.waiting.text" | "squareTerminal.cancel" | "squareTerminal.readerDisconnected" | "squareTerminal.canceled.text" | "squareTerminal.pairing.title" | "squareTerminal.pairing.intro" | "squareTerminal.pairing.name.label" | "squareTerminal.pairing.name.hint" | "squareTerminal.pairing.start" | "squareTerminal.pairing.starting" | "squareTerminal.pairing.code.label" | "squareTerminal.pairing.steps" | "squareTerminal.pairing.waiting" | "squareTerminal.pairing.paired" | "squareTerminal.pairing.timeout.title" | "squareTerminal.pairing.timeout.text" | "squareTerminal.pairing.newCode" | "squareTerminal.pairing.failed" | "squareTerminal.pairing.live" | "squareTerminal.cancelUnreachable" | "squareTerminal.refusal.reader_unreachable" | "squareTerminal.status.reader_pairing.title" | "squareTerminal.status.reader_pairing.text" | "squareTerminal.cancelPending" | "squareTerminal.refusal.reader_not_paired" | "squareTerminal.refusal.reader_not_paired_nocode" | "paymentAttempt.stillUnknown" | "paymentSetup.stillUnknown" | "paymentSetup.outcomeUnknown" | "stripeReader.status.unknown.title" | "stripeReader.status.unknown.text" | "stripeReader.status.unknown_attention.title" | "stripeReader.status.unknown_attention.text" | "stripeReader.refusal.outcome_unknown" | null>;
1540
+ protected readonly message: import("@angular/core").Signal<string>;
1541
+ constructor();
1542
+ /** Reads the readiness NOW. Never cached. A failed, slow or `checking` answer shows nothing; offline asks nothing. */
1543
+ refresh(): Promise<void>;
1544
+ static ɵfac: i0.ɵɵFactoryDeclaration<SquareTerminalBannerComponent, never>;
1545
+ static ɵcmp: i0.ɵɵComponentDeclaration<SquareTerminalBannerComponent, "ui-square-terminal-banner", never, {
1546
+ "getReadiness": {
1547
+ "alias": "getReadiness";
1548
+ "required": false;
1549
+ "isSignal": true;
1550
+ };
1551
+ "refreshKey": {
1552
+ "alias": "refreshKey";
1553
+ "required": false;
1554
+ "isSignal": true;
1555
+ };
1556
+ "hardwareShopAvailable": {
1557
+ "alias": "hardwareShopAvailable";
1558
+ "required": false;
1559
+ "isSignal": true;
1560
+ };
1561
+ "hideReady": {
1562
+ "alias": "hideReady";
1563
+ "required": false;
1564
+ "isSignal": true;
1565
+ };
1566
+ "readinessTimeoutMs": {
1567
+ "alias": "readinessTimeoutMs";
1568
+ "required": false;
1569
+ "isSignal": true;
1570
+ };
1571
+ "offlineOverride": {
1572
+ "alias": "offlineOverride";
1573
+ "required": false;
1574
+ "isSignal": true;
1575
+ };
1576
+ "paused": {
1577
+ "alias": "paused";
1578
+ "required": false;
1579
+ "isSignal": true;
1580
+ };
1581
+ }, {
1582
+ "connect": "connect";
1583
+ "order": "order";
1584
+ "setup": "setup";
1585
+ "stateChange": "stateChange";
1586
+ }, never, never, true, never>;
1587
+ }
1214
1588
  /**
1215
1589
  * Adds LIVE Card and ACH (Square) to `ui-payment-side-panel`. Put it inside the panel only for customers who use Square: its presence replaces the record-only
1216
1590
  * Card / ACH (last 4 digits) with the Square card form / bank authorization; remove it and the panel is record-only again.
@@ -1280,6 +1654,28 @@ export declare class SquarePaymentMethodComponent extends PaymentMethodPlugin {
1280
1654
  readonly feesRequired: import("@angular/core").InputSignal<boolean>;
1281
1655
  readonly receiptNoteInput: import("@angular/core").InputSignal<string | null>;
1282
1656
  readonly receiptNote: import("@angular/core").Signal<string>;
1657
+ /**
1658
+ * The Square Terminal calls. With it, the method Card gets a choice "Card reader | Enter card manually" above the form and the Terminal is the default as soon as the first readiness answer says `reader_ready` (`[readerFirst]`);
1659
+ * otherwise manual stays the default and the panel's one reader banner explains why. Switching away while a Terminal payment waits first cancels it through `reader.cancelPayment`. See docs/card-readers.md.
1660
+ */
1661
+ readonly reader: import("@angular/core").InputSignal<SquareTerminalConfig | null>;
1662
+ /** The Terminal is the default when it is ready (default true). */
1663
+ readonly readerFirst: import("@angular/core").InputSignal<boolean>;
1664
+ /** "Connect a Terminal": the host opens its pairing screen (`ui-square-terminal-pairing`). */
1665
+ readonly readerConnect: import("@angular/core").OutputEmitterRef<void>;
1666
+ /** "Get a Square Terminal" / "How to get one": the host opens its order flow or an info card. */
1667
+ readonly readerOrder: import("@angular/core").OutputEmitterRef<void>;
1668
+ /** "Set up payments". */
1669
+ readonly readerSetup: import("@angular/core").OutputEmitterRef<void>;
1670
+ /** How often (ms) the waiting payment's status is read (default 2000; clamped to 500..30 000). Wins over `reader.pollMs`. */
1671
+ readonly readerPollMs: import("@angular/core").InputSignal<number | null>;
1672
+ /** `true` while a Terminal payment is open; emitted only on change. NEVER sent as `false` for a payment that may still exist at the processor (see `readerLeftPending`). */
1673
+ readonly readerBusyChange: import("@angular/core").OutputEmitterRef<boolean>;
1674
+ /** The body went away or the reader screen was removed while a Terminal payment was open: the payment MAY STILL EXIST. */
1675
+ readonly readerLeftPending: import("@angular/core").OutputEmitterRef<SquareTerminalLeftPending>;
1676
+ /** While `true` Pay, "Send to the Terminal" and the Reader | Manual choice do nothing (a payment already open keeps Cancel); `blockedReason` is shown as a status message. Inside `ui-payment-side-panel` use the panel's own `[blocked]`. */
1677
+ readonly blocked: import("@angular/core").InputSignal<boolean>;
1678
+ readonly blockedReason: import("@angular/core").InputSignal<string>;
1283
1679
  private readonly body;
1284
1680
  private readonly controls;
1285
1681
  /** @internal The body registers itself. */
@@ -1296,8 +1692,19 @@ export declare class SquarePaymentMethodComponent extends PaymentMethodPlugin {
1296
1692
  markNotCharged(): void;
1297
1693
  /** The host starts a deliberate SECOND payment of this payable (an explicit "pay again" flow): forgets the paid state this form saw, removes the succeeded record and moves the epoch so the next attempt has a NEW key. Does nothing against the host's own `paid` input. */
1298
1694
  resetPaid(): void;
1695
+ /** The attempt this plugin last started (a Terminal payment or a manual card confirmation), kept here because the body is gone when the panel closes: what the panel's "Check again" reads. */
1696
+ private remembered;
1697
+ /** @internal The body names the attempt it just started. */
1698
+ rememberAttempt(key: string | undefined, kind: 'reader' | 'manual', amount?: number): void;
1699
+ /**
1700
+ * The truth of the payment the panel is holding, read by ATTEMPT KEY. A Terminal payment is read with `reader.getPayment`, a manual card with `checkStatus`. `over` only when the answer proves nothing is open ("never seen" only once the
1701
+ * hold is older than the processing window); `succeeded` when paid; `open` while it runs; `checking` when it cannot be told.
1702
+ */
1703
+ checkPending(info: PaymentPendingCheckInfo): Promise<PaymentPendingCheckResult>;
1299
1704
  readonly methods: import("@angular/core").Signal<readonly PaymentPluginMethod[]>;
1300
1705
  readonly template: import("@angular/core").Signal<TemplateRef<PaymentMethodBodyContext> | undefined>;
1706
+ /** The Square Terminal banner the panel's `[readerBanner]` renders: rendering this plugin in the panel is all a host needs for it (the host gives the panel `[readerBanner]="{ getReadiness }"`, or `squareTerminalBannerConfig({ getReadiness })`). */
1707
+ readonly readerBannerComponent: typeof SquareTerminalBannerComponent;
1301
1708
  static ɵfac: i0.ɵɵFactoryDeclaration<SquarePaymentMethodComponent, never>;
1302
1709
  static ɵcmp: i0.ɵɵComponentDeclaration<SquarePaymentMethodComponent, "ui-square-payment-method", never, {
1303
1710
  "createPayment": {
@@ -1445,6 +1852,905 @@ export declare class SquarePaymentMethodComponent extends PaymentMethodPlugin {
1445
1852
  "required": false;
1446
1853
  "isSignal": true;
1447
1854
  };
1448
- }, {}, never, never, true, never>;
1855
+ "reader": {
1856
+ "alias": "reader";
1857
+ "required": false;
1858
+ "isSignal": true;
1859
+ };
1860
+ "readerFirst": {
1861
+ "alias": "readerFirst";
1862
+ "required": false;
1863
+ "isSignal": true;
1864
+ };
1865
+ "readerPollMs": {
1866
+ "alias": "readerPollMs";
1867
+ "required": false;
1868
+ "isSignal": true;
1869
+ };
1870
+ "blocked": {
1871
+ "alias": "blocked";
1872
+ "required": false;
1873
+ "isSignal": true;
1874
+ };
1875
+ "blockedReason": {
1876
+ "alias": "blockedReason";
1877
+ "required": false;
1878
+ "isSignal": true;
1879
+ };
1880
+ }, {
1881
+ "readerConnect": "readerConnect";
1882
+ "readerOrder": "readerOrder";
1883
+ "readerSetup": "readerSetup";
1884
+ "readerBusyChange": "readerBusyChange";
1885
+ "readerLeftPending": "readerLeftPending";
1886
+ }, never, never, true, never>;
1887
+ }
1888
+ /**
1889
+ * Where a card reader payment is. One value, always:
1890
+ * - `idle`: nothing started (or an earlier payment ended: canceled / failed / refused);
1891
+ * - `starting`: the click was accepted and the payment is on its way to the service (the answer is not here yet);
1892
+ * - `recovering`: the answer of `starting` was lost (timeout, connection): the attempt key is looked up until the payment is found (or, after the grace period, the service still has none: then `recoveryExpired` is set and
1893
+ * the payer is asked to check again; only a second "none" answer, asked by the payer, releases the attempt). NEVER a second start;
1894
+ * - `waiting`: the reader waits for the customer to tap, insert or swipe;
1895
+ * - `declined`: the card was declined; the payment stays open (retry the SAME payment or cancel it);
1896
+ * - `stopped`: the reader stopped waiting without a decline; the payment stays open (retry or cancel);
1897
+ * - `retrying`: the same payment is being sent to the reader again;
1898
+ * - `cancelling`: a cancel is running (the payment is canceled ONLY when the service confirms);
1899
+ * - `succeeded`, `canceled`, `failed`: final.
1900
+ */
1901
+ type SquareTerminalPhase = 'idle' | 'starting' | 'recovering' | 'waiting' | 'declined' | 'stopped' | 'retrying' | 'cancelling' | 'succeeded' | 'canceled' | 'failed';
1902
+ /** What the flow needs of the payment-attempt machine (`PaymentAttempt` of `@forgeroute/ui/payments` fits it; specs use a fake). */
1903
+ interface SquareTerminalAttemptPort {
1904
+ begin(): {
1905
+ ok: true;
1906
+ key: string;
1907
+ } | {
1908
+ ok: false;
1909
+ reason: 'locked' | 'paid' | 'unknown' | 'offline';
1910
+ };
1911
+ /** The key of the attempt in effect. */
1912
+ key(): string;
1913
+ /** The payment succeeded: locks the payable as paid. */
1914
+ succeed(reason?: string): void;
1915
+ /** A DEFINITIVE end without money (canceled, failed): unlocks with a NEW key. */
1916
+ fail(reason?: string): void;
1917
+ /** Nothing was created at the service: unlock, KEEP the key. */
1918
+ markNotCharged(): void;
1919
+ /** The answer of the start was lost: lock (key kept) until the payment is found. */
1920
+ markUnknown(reason: string): void;
1921
+ }
1922
+ type SquareTerminalFlowEvent = {
1923
+ kind: 'started';
1924
+ payment: SquareTerminalPayment;
1925
+ attemptKey: string;
1926
+ } | {
1927
+ kind: 'declined';
1928
+ payment: SquareTerminalPayment;
1929
+ } | {
1930
+ kind: 'succeeded';
1931
+ payment: SquareTerminalPayment;
1932
+ attemptKey: string;
1933
+ } | {
1934
+ kind: 'canceled';
1935
+ payment: SquareTerminalPayment | null;
1936
+ } | {
1937
+ kind: 'failed';
1938
+ payment: SquareTerminalPayment | null;
1939
+ } | {
1940
+ kind: 'refused';
1941
+ refusal: SquareTerminalRefusal;
1942
+ } | {
1943
+ kind: 'connection-lost';
1944
+ } | {
1945
+ kind: 'connection-restored';
1946
+ };
1947
+ interface SquareTerminalFlowOptions {
1948
+ attempt: SquareTerminalAttemptPort;
1949
+ /** The calls are read at call time (a host may swap them); null = not provided (the action does nothing). */
1950
+ start: () => SquareTerminalStartFn | null;
1951
+ getPayment: () => SquareTerminalGetPaymentFn | null;
1952
+ retry: () => SquareTerminalRetryFn | null;
1953
+ cancel: () => SquareTerminalCancelFn | null;
1954
+ /** How often the open payment is read (default 2000 ms). */
1955
+ pollMs?: () => number;
1956
+ /** A poll slower than this counts as a lost connection (default 8000 ms). */
1957
+ pollTimeoutMs?: () => number;
1958
+ /** One start / retry / cancel call slower than this is treated as unreachable: a start becomes a lost answer (looked up by its attempt key, never re-sent), a retry / cancel leaves the payment as it was (default 60 000 ms). */
1959
+ requestTimeoutMs?: () => number;
1960
+ /** After a lost start answer (or an adopted attempt), "no payment for this attempt key" is believed only after this long, MEASURED FROM THE MOMENT RECOVERY STARTS (default 360 000 ms: the service may take up to 5 minutes to create the payment
1961
+ * of a request whose answer the browser gave up on, API.md 16.3, plus 1 minute of margin). */
1962
+ lostAnswerGraceMs?: () => number;
1963
+ now?: () => number;
1964
+ onEvent?: (event: SquareTerminalFlowEvent) => void;
1965
+ }
1966
+ /** What the screen passes to `start()`. */
1967
+ interface SquareTerminalStartInput {
1968
+ readerId: string;
1969
+ /** Major units. */
1970
+ amount: number;
1971
+ payableRef: string | null;
1972
+ /** The total in cents the payer saw (the CARD_PRESENT quote); sent as `expectedAmountCents`. */
1973
+ expectedAmountCents?: number;
1974
+ extras?: Pick<SquareTerminalStartContext, 'receivedDate' | 'notes' | 'allocation'>;
1975
+ }
1976
+ export declare const SQUARE_TERMINAL_POLL_MS = 2000;
1977
+ export declare const SQUARE_TERMINAL_POLL_TIMEOUT_MS = 8000;
1978
+ /** The service's create window (5 minutes) plus a minute of margin: "no payment for this key" earlier than this may only mean the payment is not created yet. */
1979
+ export declare const SQUARE_TERMINAL_LOST_ANSWER_GRACE_MS: number;
1980
+ /** A start / retry / cancel call that has not answered by then is unreachable (the library's request timeout). */
1981
+ export declare const SQUARE_TERMINAL_REQUEST_TIMEOUT_MS = 60000;
1982
+ /**
1983
+ * The card reader payment flow as a plain class (no view): readiness is the screen's job, this starts ONE payment on a reader, follows it by polling the service through the host's calls, and lets the payer retry
1984
+ * (the SAME payment, never a new charge) or cancel it. `ui-square-terminal-payment` runs it; specs drive it with fake calls and a fake clock.
1985
+ *
1986
+ * Money rules it enforces:
1987
+ * - ONE payment at a time: `start()` is synchronous up to the attempt's `begin()` (a double click / second tab is refused) and every state in {@link OPEN} refuses another start;
1988
+ * - the attempt key is the one the attempt machine pinned at the click and is REUSED when the answer is lost (the service answers the same attempt key with the same payment, one intent, one reader action);
1989
+ * - a lost answer is never "failed": it is `recovering` (polling by attempt key) until the payment shows up, or the grace period has passed with the service still saying "no payment for this key";
1990
+ * - a cancel never claims success unless the service confirmed it (`reader_unreachable` leaves the payment open and says so);
1991
+ * - a poll that fails (connection lost) never changes the payment's state: it is reported and polling continues; the state shown on reconnect is the service's truth;
1992
+ * - the service's `terminal.state` `unknown` / `stale` is "still checking" (never an error, never a resubmit).
1993
+ */
1994
+ export declare class SquareTerminalFlow {
1995
+ private readonly o;
1996
+ readonly phase: import("@angular/core").WritableSignal<SquareTerminalPhase>;
1997
+ readonly payment: import("@angular/core").WritableSignal<SquareTerminalPayment | null>;
1998
+ readonly terminal: import("@angular/core").Signal<SquareTerminalTerminal | null>;
1999
+ /** The service could not read the processor (`terminal.state` `unknown` or `stale`): "still checking". */
2000
+ readonly checking: import("@angular/core").WritableSignal<boolean>;
2001
+ /** The browser could not reach the host while a payment is open: the reader may still take the payment. */
2002
+ readonly connectionLost: import("@angular/core").WritableSignal<boolean>;
2003
+ /** `recovering` only: the grace period is over and the service still has no payment for the attempt key. Polling stops; the payer is asked to "Check again" (`recheck()`), and only another "none" releases the attempt. */
2004
+ readonly recoveryExpired: import("@angular/core").WritableSignal<boolean>;
2005
+ /** `recheck()` is running. */
2006
+ readonly rechecking: import("@angular/core").WritableSignal<boolean>;
2007
+ /** The reader dropped its connection while the payment waits (`terminal.readerOnline === false`). */
2008
+ readonly readerOffline: import("@angular/core").WritableSignal<boolean>;
2009
+ /** The last refusal of a start / retry (worded by the screen); cleared by the next start. */
2010
+ readonly refusal: import("@angular/core").WritableSignal<SquareTerminalRefusal | null>;
2011
+ /** A cancel could not be confirmed (the reader or the processor was unreachable): the payment is STILL open. */
2012
+ readonly cancelUnreachable: import("@angular/core").WritableSignal<boolean>;
2013
+ /**
2014
+ * Square only: a cancel was REQUESTED while the payer was already paying on the Terminal (409 `reader_cancel_pending`, Square `CANCEL_REQUESTED`). The payment is STILL OPEN (the payer may still pay), the Terminal stays held and
2015
+ * nothing else may start: the screen says "stopping the Terminal", the payment is read until Square reports CANCELED (then `canceled`) or COMPLETED (then `succeeded`), and the payer may repeat the cancel. Never "canceled" on this alone.
2016
+ */
2017
+ readonly cancelPending: import("@angular/core").WritableSignal<boolean>;
2018
+ readonly elapsedMs: import("@angular/core").WritableSignal<number>;
2019
+ /** What the last start (or the adopted payment) is for, before fees (major units); `null` until known. */
2020
+ readonly baseAmount: import("@angular/core").Signal<number | null>;
2021
+ /** The input of the last start (a signal, so the screen follows it). */
2022
+ readonly startInput: import("@angular/core").WritableSignal<SquareTerminalStartInput | null>;
2023
+ /** The attempt key of the payment being started / followed. */
2024
+ readonly attemptKey: import("@angular/core").WritableSignal<string | null>;
2025
+ /** No other payment may be started and the payer must not leave. */
2026
+ readonly locked: import("@angular/core").Signal<boolean>;
2027
+ /** A payment exists at the service and is not decided (cancel is possible). */
2028
+ readonly cancellable: import("@angular/core").Signal<boolean>;
2029
+ readonly retryable: import("@angular/core").Signal<boolean>;
2030
+ private disposed;
2031
+ private pollTimer;
2032
+ private tickTimer;
2033
+ private pollGen;
2034
+ private polling;
2035
+ private startedAt;
2036
+ /** When recovery began (a lost start answer, or an adopted attempt): the grace is counted from here, never from the click. */
2037
+ private recoverStartedAt;
2038
+ private explicitCheck;
2039
+ /** The payment id the service named in a 409 `request_in_progress` (the same attempt key is being created): used to read the payment while the answer of the start is lost. Never used to cancel. */
2040
+ private adoptedPaymentId;
2041
+ private cancelRun;
2042
+ /** The phase to go back to when a retry or a cancel did not change anything. */
2043
+ private before;
2044
+ constructor(o: SquareTerminalFlowOptions);
2045
+ private now;
2046
+ private emit;
2047
+ /** Starts ONE payment on a reader. Synchronous up to the attempt's `begin()`: a second click in the same tick is refused. */
2048
+ start(input: SquareTerminalStartInput): Promise<void>;
2049
+ private onStartError;
2050
+ /** Follows an open reader payment of another attempt (the service said so with `payment_in_flight` + `terminal`): the screen shows it like its own, with its refusal text above. */
2051
+ private follow;
2052
+ /**
2053
+ * A reload or a second tab found an UNDECIDED attempt of this payable (the attempt machine is `unknown`): the payment may be waiting on a reader right now. The attempt key is looked up (never a new start)
2054
+ * until the payment shows up (then it is followed like any other) or, after the grace period, the service still has none.
2055
+ */
2056
+ adopt(): void;
2057
+ private endNotCreated;
2058
+ private refuse;
2059
+ /** The answer of the start is lost: lock with the key kept and look the attempt key up until the payment shows up. */
2060
+ private lostAnswer;
2061
+ /** Reads the payment now (also after the browser says it is back online). */
2062
+ pollNow(): void;
2063
+ /** The browser reports offline / online. Offline only marks the loss; the next successful poll restores. */
2064
+ markConnection(online: boolean): void;
2065
+ private shouldPoll;
2066
+ private schedulePoll;
2067
+ private stopPolling;
2068
+ private pollOnce;
2069
+ /**
2070
+ * "Check again" of an unconfirmed payment (`recoveryExpired`): reads the attempt key once more. Found: followed like any payment. Still none (the grace is over): the attempt is released and the payer may start again (the same key is
2071
+ * idempotent at the service). A failed read changes nothing (connection lost) and the payer can check again.
2072
+ */
2073
+ recheck(): Promise<void>;
2074
+ private setConnectionLost;
2075
+ /** Applies a payment answer (a start / read / retry answer). Only an OPEN phase follows it: a late answer after a final state changes nothing. */
2076
+ private apply;
2077
+ private settle;
2078
+ /** After a decline (or a stop): sends the SAME payment to the reader again. Never creates a payment. */
2079
+ retry(): Promise<void>;
2080
+ /**
2081
+ * Cancels the payment at the service. Resolves true only when the service confirmed the cancel (or already reports the payment canceled). While it runs the payment is `cancelling`; when the
2082
+ * service cannot reach the reader or the processor (503 `reader_unreachable`, a lost connection) the payment STAYS open, `cancelUnreachable` is set and the payer may cancel again.
2083
+ */
2084
+ cancel(): Promise<boolean>;
2085
+ private runCancel;
2086
+ /** Runs one host call raced against the request timeout: a call that never answers cannot lock the flow forever. A late answer after the timeout is ignored (the next poll reads the truth). */
2087
+ private call;
2088
+ /** From `canceled` / `failed`: back to a fresh start (a NEW key, the attempt machine already renewed it). */
2089
+ reset(): void;
2090
+ /** The input of the last start (the screen re-sends it after "Start again"). */
2091
+ lastStartInput(): SquareTerminalStartInput | null;
2092
+ private startTick;
2093
+ private stopTick;
2094
+ /** The screen is gone: timers stop. Nothing is cancelled here (the screen decides; a payment that is open stays open at the service and is found again by its attempt key). */
2095
+ dispose(): void;
2096
+ }
2097
+ /**
2098
+ * The state the banner shows: the service's single readiness state, `loading` while a first read runs, `checking` when there is no usable answer (the read failed, was slow, or the service could not tell), and `attention` when the service says the payment account
2099
+ * needs attention. The component NEVER produces a state named `unknown` (the type keeps the member only because the readiness INPUT may carry it).
2100
+ */
2101
+ type SquareTerminalBannerState = SquareTerminalReadinessState | 'loading' | 'checking' | 'attention';
2102
+ /**
2103
+ * The ONE card-reader banner. It is rendered from the service's single readiness `state` (never from several flags), so a payment screen can never show two reader messages at once:
2104
+ *
2105
+ * - `merchant_not_ready`: payments are not set up (action: open payment setup); with the reason `reconnect_required` the payment account must be reconnected ("Reconnect payments", the same `openSetup` output: the host opens the place where the account is set up / reconnected);
2106
+ * - `no_reader` / `unsupported_only`: "No card reader set up" with the two actions "Connect a reader" (the host opens its pairing panel) and "Get a card reader" (the host opens its order flow);
2107
+ * - `reader_pairing` (Square Terminal only): a device code was created but not entered on the Terminal yet: "Square Terminal waiting for its code" with "Connect a Terminal" (a new code) and "Check again";
2108
+ * - `reader_busy`: "A payment is waiting on <reader>" (+ "Cancel that payment" when the payment is this screen's own);
2109
+ * - `reader_offline`: "Card reader not connected" + "Check again";
2110
+ * - `checking`: there is no usable answer (the check failed, was too slow, or the service could not tell; nothing is guessed): "Checking the card reader" + "Check again"; when the service says WHY and it will not fix itself (`degradedReason` `reconnect_required` / `processor_refused`) the state is `attention`: the payment account needs attention (+ "Reconnect payments"). There is no state named `unknown`;
2111
+ * - `reader_ready`: no banner (a polite announcement only).
2112
+ *
2113
+ * The component has no HTTP: the host reads the readiness (see `ui-square-terminal-payment` / `ui-square-terminals`) and passes it in; the buttons are outputs.
2114
+ *
2115
+ * <ui-square-terminal-status [readiness]="readiness()" [loading]="loading()" (connectReader)="openPairing()" (getReader)="openOrder()" (recheck)="reload()" />
2116
+ */
2117
+ export declare class SquareTerminalStatusComponent {
2118
+ protected readonly labels: UiLabelsService;
2119
+ /** The service's last readiness answer (`null` = none yet or the read failed). */
2120
+ readonly readiness: import("@angular/core").InputSignal<SquareTerminalReadiness | null>;
2121
+ /** A read is running and there is no answer to show yet: a skeleton. */
2122
+ readonly loading: import("@angular/core").InputSignal<boolean>;
2123
+ /** The id of a payment THIS screen started and that holds the reader: the banner then offers "Cancel that payment". */
2124
+ readonly ownBusyPaymentId: import("@angular/core").InputSignal<string | null>;
2125
+ /** That cancel is running. */
2126
+ readonly cancelling: import("@angular/core").InputSignal<boolean>;
2127
+ /** Adds "Take a manual payment instead" (a payment screen that has a manual path). */
2128
+ readonly showManual: import("@angular/core").InputSignal<boolean>;
2129
+ /** Hides "Connect a reader" (the pairing screen itself shows the banner). */
2130
+ readonly hideConnect: import("@angular/core").InputSignal<boolean>;
2131
+ /**
2132
+ * Library source 2026-11-21 (additive). `true` (default): "Get a card reader" opens the host's order flow. `false`: the account cannot order readers in the app, the button reads "How to get a card reader" and the host
2133
+ * opens an info card instead (the same `getReader` output).
2134
+ */
2135
+ readonly hardwareShopAvailable: import("@angular/core").InputSignal<boolean>;
2136
+ /** "Connect a reader": the host opens its pairing panel (`ui-square-terminals`). */
2137
+ readonly connectReader: import("@angular/core").OutputEmitterRef<void>;
2138
+ /** "Get a card reader": the host opens its order flow. */
2139
+ readonly getReader: import("@angular/core").OutputEmitterRef<void>;
2140
+ /** "Check again". */
2141
+ readonly recheck: import("@angular/core").OutputEmitterRef<void>;
2142
+ /** "Set up payments": the host opens payment setup. */
2143
+ readonly openSetup: import("@angular/core").OutputEmitterRef<void>;
2144
+ /** "Cancel that payment" (the payment id). */
2145
+ readonly cancelBusy: import("@angular/core").OutputEmitterRef<string>;
2146
+ /** "Take a manual payment instead". */
2147
+ readonly manual: import("@angular/core").OutputEmitterRef<void>;
2148
+ /** Which banner: no answer and loading = `loading`; no answer and not loading = `checking`; a service `checking` (old name `unknown`) = `attention` (reason that will not fix itself) or `checking`; else the service's state. Never `unknown`. */
2149
+ readonly state: import("@angular/core").Signal<SquareTerminalBannerState>;
2150
+ protected readonly variant: import("@angular/core").Signal<"info" | "warning">;
2151
+ private readonly busyName;
2152
+ /** `merchant_not_ready` because the payment account must be reconnected (the service's `reason`). Any other merchant status (onboarding, disconnected...) is "not set up". */
2153
+ protected readonly reconnect: import("@angular/core").Signal<boolean>;
2154
+ /** The service could not read the processor for a reason that will not fix itself (`reconnect_required`, `processor_refused`): the account needs attention. Transient reasons (and none) stay "checking, check again". */
2155
+ protected readonly attention: import("@angular/core").Signal<boolean>;
2156
+ /** The label group of the banner: the state, or a more exact one for a reconnect / attention case. */
2157
+ private readonly textKey;
2158
+ protected readonly title: import("@angular/core").Signal<string>;
2159
+ protected readonly text: import("@angular/core").Signal<string>;
2160
+ /** What the polite region says: the banner's title (a change of state is announced), "ready" for a ready reader, nothing while loading. */
2161
+ protected readonly liveText: import("@angular/core").Signal<string>;
2162
+ static ɵfac: i0.ɵɵFactoryDeclaration<SquareTerminalStatusComponent, never>;
2163
+ static ɵcmp: i0.ɵɵComponentDeclaration<SquareTerminalStatusComponent, "ui-square-terminal-status", never, {
2164
+ "readiness": {
2165
+ "alias": "readiness";
2166
+ "required": false;
2167
+ "isSignal": true;
2168
+ };
2169
+ "loading": {
2170
+ "alias": "loading";
2171
+ "required": false;
2172
+ "isSignal": true;
2173
+ };
2174
+ "ownBusyPaymentId": {
2175
+ "alias": "ownBusyPaymentId";
2176
+ "required": false;
2177
+ "isSignal": true;
2178
+ };
2179
+ "cancelling": {
2180
+ "alias": "cancelling";
2181
+ "required": false;
2182
+ "isSignal": true;
2183
+ };
2184
+ "showManual": {
2185
+ "alias": "showManual";
2186
+ "required": false;
2187
+ "isSignal": true;
2188
+ };
2189
+ "hideConnect": {
2190
+ "alias": "hideConnect";
2191
+ "required": false;
2192
+ "isSignal": true;
2193
+ };
2194
+ "hardwareShopAvailable": {
2195
+ "alias": "hardwareShopAvailable";
2196
+ "required": false;
2197
+ "isSignal": true;
2198
+ };
2199
+ }, {
2200
+ "connectReader": "connectReader";
2201
+ "getReader": "getReader";
2202
+ "recheck": "recheck";
2203
+ "openSetup": "openSetup";
2204
+ "cancelBusy": "cancelBusy";
2205
+ "manual": "manual";
2206
+ }, never, never, true, never>;
2207
+ }
2208
+ /** What `(succeeded)` reports. */
2209
+ interface SquareTerminalSucceededEvent {
2210
+ payment: SquareTerminalPayment;
2211
+ attemptKey: string;
2212
+ /** The amount the payment was STARTED with (major units, before fees). */
2213
+ amount: number;
2214
+ readerId: string;
2215
+ }
2216
+ /** What `(outcome)` reports, for a host that wants to word a toast or log (the component never toasts). */
2217
+ type SquareTerminalOutcome = {
2218
+ kind: 'started';
2219
+ payment: SquareTerminalPayment;
2220
+ } | {
2221
+ kind: 'declined';
2222
+ payment: SquareTerminalPayment;
2223
+ } | {
2224
+ kind: 'canceled';
2225
+ } | {
2226
+ kind: 'failed';
2227
+ } | {
2228
+ kind: 'refused';
2229
+ code: string;
2230
+ } | {
2231
+ kind: 'connection-lost';
2232
+ } | {
2233
+ kind: 'connection-restored';
2234
+ } |
2235
+ /** The panel was closed while the answer of the start was still on its way / lost: the payment is looked up again when the screen opens. The host may word it ("We are still confirming your payment"). */
2236
+ {
2237
+ kind: 'left-pending';
2238
+ };
2239
+ /**
2240
+ * Takes a card payment on a Square Terminal: the card reader flow of the payment screen. The HOST owns the calls (it calls its own backend, which calls the
2241
+ * payments service; the browser never talks to the service), the component owns the screen and the flow ({@link SquareTerminalFlow}):
2242
+ *
2243
+ * 1. it reads the readiness (ONE state, see `ui-square-terminal-status`) now and every `readinessEveryMs`, and shows the ONE banner when the reader cannot be used;
2244
+ * 2. with `reader_ready` it shows the reader, the amount and the card-reader FEE quote (`estimateFees`, method CARD_PRESENT: cleared at once when the amount changes, "Send to the reader"
2245
+ * stays off until the quote for the current amount is here), and "Send to the Terminal" (a card taken on a Square Terminal is never kept: there is no "Save this card");
2246
+ * 3. while a payment waits: "Waiting for the customer to tap, insert or swipe their card on <reader>", the amount, the fees, the elapsed time and ONLY "Cancel payment";
2247
+ * 4. a decline shows "Card declined" with "Try again" (the SAME payment) / "Cancel payment" / "Take a manual payment instead" (a Square Terminal declines ON the device, so this state is rare); a cancel that Square only REQUESTED (`reader_cancel_pending`) keeps the payment open with "stopping the Terminal"; a success shows the receipt link.
2248
+ *
2249
+ * Nothing else can start a payment while one is open (every start button is off, a double click and a second tab are refused by the attempt machine), the attempt key is stable per click and
2250
+ * REUSED when the answer is lost, and a lost connection never changes the state shown: the payment is read again by its attempt key when the connection is back. Offline / slow connections
2251
+ * block "Send to the reader" before it starts (payments are never queued). A manual payment is always one click away (`(manual)`).
2252
+ *
2253
+ * <ui-square-terminal-payment [amount]="amount()" payableRef="unit:42" [getReadiness]="readiness" [startPayment]="start" [getPayment]="read" [retryPayment]="retry" [cancelPayment]="cancel"
2254
+ * [estimateFees]="fees" (manual)="useManual()" (connectReader)="openPairing()" (getReader)="openOrder()" (succeeded)="onPaid($event)" />
2255
+ */
2256
+ export declare class SquareTerminalPaymentComponent {
2257
+ protected readonly labels: UiLabelsService;
2258
+ private readonly destroyRef;
2259
+ private readonly injector;
2260
+ private readonly host;
2261
+ private readonly storage;
2262
+ /** The amount the customer owes before fees, major units. `null` = nothing to take yet. */
2263
+ readonly amount: import("@angular/core").InputSignal<number | null>;
2264
+ readonly currency: import("@angular/core").InputSignal<string>;
2265
+ /** The payable (an invoice, a balance): the attempt marker is stored under it, so a reload or a second tab finds an open payment instead of starting another. */
2266
+ readonly payableRef: import("@angular/core").InputSignal<string | null>;
2267
+ /** A key the host supplies; empty = derived from the payable / generated by the attempt machine. */
2268
+ readonly attemptKey: import("@angular/core").InputSignal<string | null>;
2269
+ /** The payable is paid (host re-render): no payment can start. */
2270
+ readonly paid: import("@angular/core").InputSignal<boolean>;
2271
+ /** Extra fields the host's backend wants with the start (the payment panel passes its date, note and allocation). */
2272
+ readonly startExtras: import("@angular/core").InputSignal<{
2273
+ receivedDate?: string;
2274
+ notes?: string | null;
2275
+ allocation?: PaymentAllocation;
2276
+ } | null>;
2277
+ readonly getReadiness: import("@angular/core").InputSignal<SquareTerminalGetReadinessFn | null>;
2278
+ readonly startPayment: import("@angular/core").InputSignal<SquareTerminalStartFn | null>;
2279
+ readonly getPayment: import("@angular/core").InputSignal<SquareTerminalGetPaymentFn | null>;
2280
+ readonly retryPayment: import("@angular/core").InputSignal<SquareTerminalRetryFn | null>;
2281
+ readonly cancelPaymentFn: import("@angular/core").InputSignal<SquareTerminalCancelFn | null>;
2282
+ /** The CARD_PRESENT fee quote. REQUIRED: a reader payment always shows the card reader fee breakdown before the tap, so without it "Send to the reader" stays off and says the fees are not available. */
2283
+ readonly estimateFees: import("@angular/core").InputSignal<SquareTerminalFeesFn | null>;
2284
+ readonly receiptUrl: import("@angular/core").InputSignal<((payment: SquareTerminalPayment) => string | null | undefined) | null>;
2285
+ /** The id of an open reader payment THIS user owns (from the host's records): with it the "reader busy" banner offers "Cancel that payment". */
2286
+ readonly ownPaymentId: import("@angular/core").InputSignal<string | null>;
2287
+ /** `true` = the full reader screen; `false` = only the banner (the payment screen is in manual mode but still tells that a reader could be used). */
2288
+ readonly active: import("@angular/core").InputSignal<boolean>;
2289
+ /** A manual payment path exists: "Enter the card manually instead" / "Take a manual payment instead" show and the offline text says a manual payment can still be recorded. */
2290
+ readonly manualAvailable: import("@angular/core").InputSignal<boolean>;
2291
+ /** The buttons that start something do nothing (a read-only user). Cancel stays possible. */
2292
+ readonly disabled: import("@angular/core").InputSignal<boolean>;
2293
+ /**
2294
+ * Library 2026-11-21 (additive; NOT set by the payment panel's Square body, so nothing in the library uses it): `true` draws NO "checking" placeholder while there is no usable answer (a usable answer, or a payment, is still drawn here).
2295
+ * It is for a host that shows its own checking text elsewhere. NOTE: `ui-square-terminal-banner` (the payment panel's top banner) shows NOTHING while the read is pending, failed or `checking`, so with `hideChecking` nobody speaks for that state.
2296
+ * Default `false`: the screen shows its own checking state with "Check again" (also inside the payment panel).
2297
+ */
2298
+ readonly hideChecking: import("@angular/core").InputSignal<boolean>;
2299
+ /**
2300
+ * Library 2026-11-21 (additive): the payment panel's top banner (`ctx.readerBanner`) is ALWAYS on screen and shows the "get a card reader" message when the organization has NO usable reader. With this input this screen draws no readiness banner for
2301
+ * those states (`no_reader`, `unsupported_only`, `merchant_not_ready`) so the message never shows twice, and keeps everything else: its own "checking", offline, busy (with "Cancel that payment"), connection notices, the reader choice, fees, "Send to the reader" and the
2302
+ * payment boxes. A standalone host that keeps `ui-square-terminal-banner` above its tab bar passes it too. Default `false`.
2303
+ */
2304
+ readonly hideBanner: import("@angular/core").InputSignal<boolean>;
2305
+ /** Asked right before "Send to the reader" starts anything; `false` = do not start (the payment panel validates its own fields here and shows their messages). */
2306
+ readonly beforeStart: import("@angular/core").InputSignal<(() => boolean) | null>;
2307
+ readonly readinessEveryMs: import("@angular/core").InputSignal<number>;
2308
+ readonly readinessTimeoutMs: import("@angular/core").InputSignal<number>;
2309
+ /** How often the waiting payment's status is read (ms; default 2000). Clamped to 500..30 000 ms. */
2310
+ readonly pollMs: import("@angular/core").InputSignal<number>;
2311
+ readonly pollTimeoutMs: import("@angular/core").InputSignal<number>;
2312
+ /** After a lost start answer (or an adopted attempt) the service's "no payment for this attempt key" is believed only after this long, counted from the moment recovery starts. Default 6 minutes: the service's 5-minute create window plus a minute (ms). */
2313
+ readonly lostAnswerGraceMs: import("@angular/core").InputSignal<number>;
2314
+ /** A start / retry / cancel call slower than this is unreachable (ms): a start is looked up by its attempt key, a retry / cancel leaves the payment as it was. */
2315
+ readonly requestTimeoutMs: import("@angular/core").InputSignal<number>;
2316
+ /** A quote slower than this: "Try again" is offered and Send stays off (ms). */
2317
+ readonly feeTimeoutMs: import("@angular/core").InputSignal<number>;
2318
+ /** Managed environments where `navigator.onLine === false` is a false negative: the browser's offline flag does not block (default false). */
2319
+ readonly offlineOverride: import("@angular/core").InputSignal<boolean>;
2320
+ /** The user wants to enter the card manually (the host switches its method). Emitted only when nothing is waiting on the reader. */
2321
+ readonly manual: import("@angular/core").OutputEmitterRef<void>;
2322
+ /** "Connect a reader": the host opens its pairing panel. */
2323
+ readonly connectReader: import("@angular/core").OutputEmitterRef<void>;
2324
+ /** "Get a card reader": the host opens its order flow. */
2325
+ readonly getReader: import("@angular/core").OutputEmitterRef<void>;
2326
+ /** "Set up payments": the host opens payment setup. */
2327
+ readonly openSetup: import("@angular/core").OutputEmitterRef<void>;
2328
+ /** The payment succeeded. */
2329
+ readonly succeeded: import("@angular/core").OutputEmitterRef<SquareTerminalSucceededEvent>;
2330
+ /** Everything else that happened, for the host to word. */
2331
+ readonly outcome: import("@angular/core").OutputEmitterRef<SquareTerminalOutcome>;
2332
+ /** A readiness read finished: its state (`null` = no answer / the read failed). The payment panel's FIRST answer decides whether the reader is the default. */
2333
+ readonly readinessChange: import("@angular/core").OutputEmitterRef<SquareTerminalReadinessState | null>;
2334
+ /** A payment is open on the reader (starting, waiting, declined, cancelling...): the host locks everything else. */
2335
+ readonly busyChange: import("@angular/core").OutputEmitterRef<boolean>;
2336
+ readonly readiness: import("@angular/core").WritableSignal<SquareTerminalReadiness | null>;
2337
+ protected readonly readinessLoading: import("@angular/core").WritableSignal<boolean>;
2338
+ readonly selectedReaderId: import("@angular/core").WritableSignal<string>;
2339
+ /** `quote_changed`: the total shown is not the total any more; Send stays off until the payer confirms the new one. */
2340
+ protected readonly quoteChanged: import("@angular/core").WritableSignal<{
2341
+ total: number | null;
2342
+ } | null>;
2343
+ readonly closeBlocked: import("@angular/core").WritableSignal<boolean>;
2344
+ protected readonly cancellingBusy: import("@angular/core").WritableSignal<boolean>;
2345
+ /** The "Cancel that payment" call did not answer in time: the payment may still be open (a notice with "Check again" shows instead of the banner). */
2346
+ protected readonly cancelTimedOut: import("@angular/core").WritableSignal<boolean>;
2347
+ protected readonly quote: import("@angular/core").WritableSignal<SquareFees | null>;
2348
+ /** The amount the quote was asked for (a quote is shown only while it matches the amount on screen). */
2349
+ private readonly quotedFor;
2350
+ protected readonly quoting: import("@angular/core").WritableSignal<boolean>;
2351
+ protected readonly quoteFailed: import("@angular/core").WritableSignal<boolean>;
2352
+ private readonly quoteTick;
2353
+ private quoteRun;
2354
+ /** What the held quote was asked for: a phase change alone (a refusal, a canceled payment) keeps a held quote of the same amount; the service still checks the total (`quote_changed`). */
2355
+ private heldEstimate;
2356
+ private heldAmount;
2357
+ private heldTick;
2358
+ private readonly builtIns;
2359
+ readonly attempt: PaymentAttempt;
2360
+ readonly flow: SquareTerminalFlow;
2361
+ /** The user pressed a button that changes the screen: when the phase changes, focus moves to the new box (the pressed button is gone). */
2362
+ private acted;
2363
+ private lastPhase;
2364
+ private destroyed;
2365
+ private readRun;
2366
+ private readTimer;
2367
+ protected readonly ready: import("@angular/core").Signal<boolean>;
2368
+ protected readonly freeReaders: import("@angular/core").Signal<import("@forgeroute/ui/square").SquareTerminal[]>;
2369
+ protected readonly readerId: import("@angular/core").Signal<string>;
2370
+ protected readonly readerOptions: import("@angular/core").Signal<{
2371
+ value: string;
2372
+ label: string;
2373
+ }[]>;
2374
+ /** The name of the reader the payment is (or would be) on. */
2375
+ protected readonly readerName: import("@angular/core").Signal<string>;
2376
+ /** Why a reader payment cannot be started before it starts: offline, a slow connection, a browser that cannot pay safely. Empty = none. */
2377
+ protected readonly blockReason: import("@angular/core").Signal<"" | "offline" | "slow_connection" | "unsupported_browser">;
2378
+ protected readonly blockText: import("@angular/core").Signal<string>;
2379
+ /** No fee quote call: a reader payment must always show the CARD_PRESENT breakdown before the tap, so nothing can be sent. */
2380
+ protected readonly feesMissing: import("@angular/core").Signal<boolean>;
2381
+ /**
2382
+ * The ONE message block of the idle screen, by precedence: already paid > an earlier payment still being confirmed > a cancel that timed out > the total changed > a refusal of the last start. The readiness banner and
2383
+ * the "blocked" notice show only when none of these does (and never in the canceled / failed boxes).
2384
+ */
2385
+ protected readonly idleNotice: import("@angular/core").Signal<"paid" | "refusal" | "pending-other" | "cancel-timeout" | "quote-changed" | null>;
2386
+ protected readonly showBlocked: import("@angular/core").Signal<boolean>;
2387
+ /**
2388
+ * Library source 2026-11-21: this screen is showing a card reader message of its own right now (the readiness banner, a connection notice, one of the idle notices, or a payment box), so a second reader banner elsewhere
2389
+ * on the page must step aside. `false` when it shows nothing about the reader (a ready reader and an idle screen). Mirrors the template exactly (with `hideBanner` the no-reader states are not drawn here, so they do not count).
2390
+ */
2391
+ readonly ownsReaderMessage: import("@angular/core").Signal<boolean>;
2392
+ /**
2393
+ * The readiness the banner is drawn from: a usable answer only. No answer (loading, failed, slow) and a service `checking` (old name `unknown`) that does not need the account's attention are NOT shown as a state of their own (there is no "unknown" banner): `null`, and the status component's "Checking the card reader" placeholder speaks (unless the host set `hideChecking`; the top banner never speaks for that state).
2394
+ */
2395
+ protected readonly shownReadiness: import("@angular/core").Signal<SquareTerminalReadiness | null>;
2396
+ protected readonly showReadiness: import("@angular/core").Signal<boolean>;
2397
+ /** The own payment that holds a reader, when the host knows it. */
2398
+ protected readonly busyOwnPaymentId: import("@angular/core").Signal<string | null>;
2399
+ private readonly amountValid;
2400
+ /** The quote of the amount on screen (a quote for another amount is never shown). */
2401
+ protected readonly currentQuote: import("@angular/core").Signal<SquareFees | null>;
2402
+ protected readonly feeRows: import("@angular/core").Signal<{
2403
+ key: string;
2404
+ label: string;
2405
+ value: string;
2406
+ }[]>;
2407
+ /** Everything that must be true before "Send to the reader" works. */
2408
+ readonly canStart: import("@angular/core").Signal<boolean>;
2409
+ protected readonly startLabel: import("@angular/core").Signal<string>;
2410
+ /** A reload / second tab found an undecided attempt of ANOTHER method (a manual card): it is never followed as a reader payment, only worded. */
2411
+ protected readonly foreignPending: import("@angular/core").Signal<boolean>;
2412
+ protected readonly degraded: import("@angular/core").Signal<import("@forgeroute/ui/square").SquareTerminalDegraded | null>;
2413
+ protected readonly checkingText: import("@angular/core").Signal<string>;
2414
+ /** What was actually charged (the service's `amountCents`), else the quote total of the open payment; `null` when neither is known. */
2415
+ private readonly chargedTotal;
2416
+ /** The amount line of the waiting screen: the total when known, else the base amount (fees may be added). Always present once an amount is known, quote or not (also after a reload that adopted the payment). */
2417
+ protected readonly waitAmount: import("@angular/core").Signal<string>;
2418
+ protected readonly confirmTotalText: import("@angular/core").Signal<string>;
2419
+ protected readonly existingPaymentHref: import("@angular/core").Signal<string | null>;
2420
+ protected readonly elapsedText: import("@angular/core").Signal<string>;
2421
+ protected readonly waitTitle: import("@angular/core").Signal<string>;
2422
+ protected readonly waitText: import("@angular/core").Signal<string>;
2423
+ private readonly waitKey;
2424
+ protected readonly refusalText: import("@angular/core").Signal<string>;
2425
+ protected readonly succeededText: import("@angular/core").Signal<string>;
2426
+ protected readonly cardLine: import("@angular/core").Signal<string>;
2427
+ protected readonly receiptHref: import("@angular/core").Signal<string | null>;
2428
+ /** What the polite region says: one text, the most important thing first, changing with every state. */
2429
+ protected readonly announcement: import("@angular/core").Signal<string>;
2430
+ constructor();
2431
+ private refreshBuiltIns;
2432
+ /** Reads the readiness now ("Check again"). A slow (over `readinessTimeoutMs`) or failed read leaves NO answer: the banner says it could not be checked and nothing is started. */
2433
+ loadReadiness(): Promise<void>;
2434
+ private scheduleReadiness;
2435
+ /** "Send to the reader". Synchronous up to the attempt lock: a double click sends ONE payment. */
2436
+ start(): void;
2437
+ /** "Confirm the new total": the payer saw the new total, Send is available again. */
2438
+ protected confirmNewTotal(): void;
2439
+ protected retry(): void;
2440
+ /** "Check again" of an unconfirmed payment: reads the attempt key once more (found: followed; still none after the grace: released, "Start again"). */
2441
+ protected recheck(): void;
2442
+ protected dismissCancelTimeout(): void;
2443
+ protected cancelPayment(): void;
2444
+ protected startAgain(): void;
2445
+ protected retryQuote(): void;
2446
+ /** "Take a manual payment instead" while a payment is open: the payment is canceled FIRST; the host is told only when the service confirmed it. */
2447
+ protected switchToManual(): Promise<void>;
2448
+ /** Cancels an open reader payment and resolves true when nothing is open any more (nothing was waiting, or the service confirmed the cancel). False = the payment is STILL open. */
2449
+ cancelAndWait(): Promise<boolean>;
2450
+ /** Is a reader payment open (starting, waiting, declined, cancelling...)? */
2451
+ isLocked(): boolean;
2452
+ /** The panel wants to close: allowed (true) only when nothing is open. Otherwise the warning shows and focus goes to "Cancel payment". */
2453
+ requestClose(): boolean;
2454
+ /** Fire-and-forget cancel of an open payment (the host closed the panel anyway). Never claims the payment is canceled. */
2455
+ cancelBestEffort(): void;
2456
+ /** "Cancel that payment" of the busy banner: cancels the user's own payment that holds the reader, then reads the readiness again. */
2457
+ protected cancelBusy(id: string): Promise<void>;
2458
+ private onFlowEvent;
2459
+ static ɵfac: i0.ɵɵFactoryDeclaration<SquareTerminalPaymentComponent, never>;
2460
+ static ɵcmp: i0.ɵɵComponentDeclaration<SquareTerminalPaymentComponent, "ui-square-terminal-payment", never, {
2461
+ "amount": {
2462
+ "alias": "amount";
2463
+ "required": false;
2464
+ "isSignal": true;
2465
+ };
2466
+ "currency": {
2467
+ "alias": "currency";
2468
+ "required": false;
2469
+ "isSignal": true;
2470
+ };
2471
+ "payableRef": {
2472
+ "alias": "payableRef";
2473
+ "required": false;
2474
+ "isSignal": true;
2475
+ };
2476
+ "attemptKey": {
2477
+ "alias": "attemptKey";
2478
+ "required": false;
2479
+ "isSignal": true;
2480
+ };
2481
+ "paid": {
2482
+ "alias": "paid";
2483
+ "required": false;
2484
+ "isSignal": true;
2485
+ };
2486
+ "startExtras": {
2487
+ "alias": "startExtras";
2488
+ "required": false;
2489
+ "isSignal": true;
2490
+ };
2491
+ "getReadiness": {
2492
+ "alias": "getReadiness";
2493
+ "required": false;
2494
+ "isSignal": true;
2495
+ };
2496
+ "startPayment": {
2497
+ "alias": "startPayment";
2498
+ "required": false;
2499
+ "isSignal": true;
2500
+ };
2501
+ "getPayment": {
2502
+ "alias": "getPayment";
2503
+ "required": false;
2504
+ "isSignal": true;
2505
+ };
2506
+ "retryPayment": {
2507
+ "alias": "retryPayment";
2508
+ "required": false;
2509
+ "isSignal": true;
2510
+ };
2511
+ "cancelPaymentFn": {
2512
+ "alias": "cancelPayment";
2513
+ "required": false;
2514
+ "isSignal": true;
2515
+ };
2516
+ "estimateFees": {
2517
+ "alias": "estimateFees";
2518
+ "required": false;
2519
+ "isSignal": true;
2520
+ };
2521
+ "receiptUrl": {
2522
+ "alias": "receiptUrl";
2523
+ "required": false;
2524
+ "isSignal": true;
2525
+ };
2526
+ "ownPaymentId": {
2527
+ "alias": "ownPaymentId";
2528
+ "required": false;
2529
+ "isSignal": true;
2530
+ };
2531
+ "active": {
2532
+ "alias": "active";
2533
+ "required": false;
2534
+ "isSignal": true;
2535
+ };
2536
+ "manualAvailable": {
2537
+ "alias": "manualAvailable";
2538
+ "required": false;
2539
+ "isSignal": true;
2540
+ };
2541
+ "disabled": {
2542
+ "alias": "disabled";
2543
+ "required": false;
2544
+ "isSignal": true;
2545
+ };
2546
+ "hideChecking": {
2547
+ "alias": "hideChecking";
2548
+ "required": false;
2549
+ "isSignal": true;
2550
+ };
2551
+ "hideBanner": {
2552
+ "alias": "hideBanner";
2553
+ "required": false;
2554
+ "isSignal": true;
2555
+ };
2556
+ "beforeStart": {
2557
+ "alias": "beforeStart";
2558
+ "required": false;
2559
+ "isSignal": true;
2560
+ };
2561
+ "readinessEveryMs": {
2562
+ "alias": "readinessEveryMs";
2563
+ "required": false;
2564
+ "isSignal": true;
2565
+ };
2566
+ "readinessTimeoutMs": {
2567
+ "alias": "readinessTimeoutMs";
2568
+ "required": false;
2569
+ "isSignal": true;
2570
+ };
2571
+ "pollMs": {
2572
+ "alias": "pollMs";
2573
+ "required": false;
2574
+ "isSignal": true;
2575
+ };
2576
+ "pollTimeoutMs": {
2577
+ "alias": "pollTimeoutMs";
2578
+ "required": false;
2579
+ "isSignal": true;
2580
+ };
2581
+ "lostAnswerGraceMs": {
2582
+ "alias": "lostAnswerGraceMs";
2583
+ "required": false;
2584
+ "isSignal": true;
2585
+ };
2586
+ "requestTimeoutMs": {
2587
+ "alias": "requestTimeoutMs";
2588
+ "required": false;
2589
+ "isSignal": true;
2590
+ };
2591
+ "feeTimeoutMs": {
2592
+ "alias": "feeTimeoutMs";
2593
+ "required": false;
2594
+ "isSignal": true;
2595
+ };
2596
+ "offlineOverride": {
2597
+ "alias": "offlineOverride";
2598
+ "required": false;
2599
+ "isSignal": true;
2600
+ };
2601
+ }, {
2602
+ "manual": "manual";
2603
+ "connectReader": "connectReader";
2604
+ "getReader": "getReader";
2605
+ "openSetup": "openSetup";
2606
+ "succeeded": "succeeded";
2607
+ "outcome": "outcome";
2608
+ "readinessChange": "readinessChange";
2609
+ "busyChange": "busyChange";
2610
+ }, never, never, true, never>;
2611
+ }
2612
+ /** The fastest and the slowest poll of the pairing wait (ms). */
2613
+ export declare const SQUARE_PAIRING_POLL_MIN_MS = 1000;
2614
+ export declare const SQUARE_PAIRING_POLL_MAX_MS = 30000;
2615
+ /** Square device codes expire after 5 minutes; the wait never lasts longer than the host's `timeoutMs` (clamped to this range). */
2616
+ export declare const SQUARE_PAIRING_TIMEOUT_MIN_MS = 10000;
2617
+ export declare const SQUARE_PAIRING_TIMEOUT_MAX_MS = 900000;
2618
+ /** A pairing poll cadence the library will actually use: not a finite number > 0 = 3000 ms; otherwise rounded and clamped to 1000..30 000 ms. */
2619
+ export declare function clampPairingPollMs(value: number | null | undefined): number;
2620
+ /** A pairing wait the library will actually use: not a finite number > 0 = 300 000 ms (5 minutes); otherwise rounded and clamped to 10 000..900 000 ms. */
2621
+ export declare function clampPairingTimeoutMs(value: number | null | undefined): number;
2622
+ /**
2623
+ * The reader the pairing is waiting for, found in the readers of a readiness read, or `null` while the Terminal has not connected yet:
2624
+ * - the registered reader is still listed (same id): paired when it no longer carries a `pairingCode` and its status is `online`;
2625
+ * - the registered id is gone from the list (the device code became the device): paired when exactly ONE Square Terminal with the same name is online without a `pairingCode`.
2626
+ * Nothing else counts (never a guess between two Terminals).
2627
+ */
2628
+ export declare function findPairedTerminal(readers: readonly SquareTerminal[], registered: Pick<SquareTerminal, 'id' | 'label'>): SquareTerminal | null;
2629
+ /** What `(outcome)` reports (the component never toasts: the host words a toast if it wants one). */
2630
+ type SquareTerminalPairingOutcome = {
2631
+ kind: 'code';
2632
+ reader: SquareTerminal;
2633
+ } | {
2634
+ kind: 'paired';
2635
+ reader: SquareTerminal;
2636
+ } | {
2637
+ kind: 'timeout';
2638
+ } | {
2639
+ kind: 'canceled';
2640
+ } | {
2641
+ kind: 'failed';
2642
+ };
2643
+ type Phase = 'form' | 'registering' | 'waiting' | 'paired' | 'timeout';
2644
+ /**
2645
+ * "Connect a Square Terminal" (a Square Terminal has no connection token and no SDK: it is paired with a DEVICE CODE). The flow, with every call a HOST function (the browser never talks to the payments service):
2646
+ *
2647
+ * 1. staff name the Terminal and press "Get a pairing code": `registerTerminal({ label, locationId? })` (the host calls `POST /v1/terminal/readers`; the answer is the reader with its `pairingCode`);
2648
+ * 2. the code is shown with plain instructions ("On the Terminal choose Sign in > Use a device code and enter <code>") and announced politely;
2649
+ * 3. the component reads the readiness (`getReadiness`) every `pollMs` until that reader is paired (see {@link findPairedTerminal}): `(paired)` carries it, "Terminal <name> connected." is shown;
2650
+ * 4. the wait is BOUNDED (`timeoutMs`, default 5 minutes, the life of a Square device code) and cancellable: at the end "The code was not used in time" with "Get a new code". A failed or slow poll never ends the wait by itself.
2651
+ *
2652
+ * A Square Terminal can only be renamed or removed in the Square dashboard (the screen says so): there is no rename / remove here. The reader list of the screen is the host's own (or the payment screen's reader choice).
2653
+ *
2654
+ * <ui-square-terminal-pairing [registerTerminal]="register" [getReadiness]="readiness" locationId="L123" (paired)="onPaired($event)" (canceled)="close()" />
2655
+ */
2656
+ export declare class SquareTerminalPairingComponent {
2657
+ protected readonly labels: UiLabelsService;
2658
+ private readonly destroyRef;
2659
+ private readonly injector;
2660
+ private readonly host;
2661
+ private static seq;
2662
+ /** Unique per instance: two screens on one page never share an id. */
2663
+ protected readonly ids: string;
2664
+ /** Registers the Terminal (`POST /v1/terminal/readers`): answers the reader with its `pairingCode` (the device code). */
2665
+ readonly registerTerminal: import("@angular/core").InputSignal<SquareTerminalRegisterFn | null>;
2666
+ /** Reads `GET /v1/terminal/readiness` through the host; polled while the code waits. */
2667
+ readonly getReadiness: import("@angular/core").InputSignal<SquareTerminalGetReadinessFn | null>;
2668
+ /** The Square location the Terminal belongs to, when the host's backend does not choose it itself (sent as `locationId`). */
2669
+ readonly locationId: import("@angular/core").InputSignal<string | null>;
2670
+ /** The name the field starts with. */
2671
+ readonly defaultLabel: import("@angular/core").InputSignal<string>;
2672
+ /** How often the readiness is read while waiting (ms; default 3000; clamped to 1000..30 000). */
2673
+ readonly pollMs: import("@angular/core").InputSignal<number>;
2674
+ /** How long the code is waited for (ms; default 300 000 = 5 minutes, the life of a Square device code; clamped to 10 000..900 000). */
2675
+ readonly timeoutMs: import("@angular/core").InputSignal<number>;
2676
+ /** A host call (register, read) slower than this is unreachable (ms). */
2677
+ readonly requestTimeoutMs: import("@angular/core").InputSignal<number>;
2678
+ /** The Terminal connected: the host refreshes its readers (the payment screen then offers it). */
2679
+ readonly paired: import("@angular/core").OutputEmitterRef<SquareTerminal>;
2680
+ /** The user left the pairing (Cancel). The device code is left to expire at Square. */
2681
+ readonly canceled: import("@angular/core").OutputEmitterRef<void>;
2682
+ readonly outcome: import("@angular/core").OutputEmitterRef<SquareTerminalPairingOutcome>;
2683
+ protected readonly phase: import("@angular/core").WritableSignal<Phase>;
2684
+ protected readonly label: import("@angular/core").WritableSignal<string>;
2685
+ protected readonly touched: import("@angular/core").WritableSignal<boolean>;
2686
+ protected readonly error: import("@angular/core").WritableSignal<string>;
2687
+ protected readonly code: import("@angular/core").WritableSignal<string>;
2688
+ protected readonly announcement: import("@angular/core").WritableSignal<string>;
2689
+ protected readonly pairedName: import("@angular/core").WritableSignal<string>;
2690
+ private readonly now;
2691
+ private deadline;
2692
+ private registered;
2693
+ private pollTimer;
2694
+ private tickTimer;
2695
+ private busyRead;
2696
+ private run;
2697
+ private destroyed;
2698
+ private readonly fields;
2699
+ protected readonly hasInvalid: import("@angular/core").Signal<boolean>;
2700
+ protected readonly remainingText: import("@angular/core").Signal<string>;
2701
+ constructor();
2702
+ private stopTimers;
2703
+ private call;
2704
+ private focus;
2705
+ /** "Get a pairing code" / "Get a new code": registers the Terminal and starts the bounded wait. A second click while a registration runs does nothing. */
2706
+ getCode(): Promise<void>;
2707
+ private schedulePoll;
2708
+ private tick;
2709
+ /** One read of the readiness: paired -> done; not paired -> keep waiting (or, at the end of the wait, "The code was not used in time"). A failed or slow read changes nothing. */
2710
+ private poll;
2711
+ /** Cancel: the wait ends, the device code is left to expire at Square, the host closes the screen. */
2712
+ cancel(): void;
2713
+ static ɵfac: i0.ɵɵFactoryDeclaration<SquareTerminalPairingComponent, never>;
2714
+ static ɵcmp: i0.ɵɵComponentDeclaration<SquareTerminalPairingComponent, "ui-square-terminal-pairing", never, {
2715
+ "registerTerminal": {
2716
+ "alias": "registerTerminal";
2717
+ "required": false;
2718
+ "isSignal": true;
2719
+ };
2720
+ "getReadiness": {
2721
+ "alias": "getReadiness";
2722
+ "required": false;
2723
+ "isSignal": true;
2724
+ };
2725
+ "locationId": {
2726
+ "alias": "locationId";
2727
+ "required": false;
2728
+ "isSignal": true;
2729
+ };
2730
+ "defaultLabel": {
2731
+ "alias": "defaultLabel";
2732
+ "required": false;
2733
+ "isSignal": true;
2734
+ };
2735
+ "pollMs": {
2736
+ "alias": "pollMs";
2737
+ "required": false;
2738
+ "isSignal": true;
2739
+ };
2740
+ "timeoutMs": {
2741
+ "alias": "timeoutMs";
2742
+ "required": false;
2743
+ "isSignal": true;
2744
+ };
2745
+ "requestTimeoutMs": {
2746
+ "alias": "requestTimeoutMs";
2747
+ "required": false;
2748
+ "isSignal": true;
2749
+ };
2750
+ }, {
2751
+ "paired": "paired";
2752
+ "canceled": "canceled";
2753
+ "outcome": "outcome";
2754
+ }, never, never, true, never>;
1449
2755
  }
1450
- export type { ProvideSquarePaymentOptions, SquareA11yMessages, SquareAchLike, SquareBillingContact, SquareCardLike, SquareCardStyle, SquareCardType, SquareConnectFlowOptions, SquareConnectOutcome, SquareConnectStart, SquareConnectState, SquareConnectStatus, SquareConnectionConfig, SquareEnvironment, SquareErrorDisplay, SquareErrorMessageOptions, SquareFailure, SquareFailureStage, SquareFeeContext, SquareFees, SquareIntentKind, SquareLoaderFn, SquareMethod, SquareOutcomeKind, SquarePaymentContext, SquarePaymentDefaults, SquarePaymentResult, SquarePaymentsLike, SquarePrepaidType, SquareReadyEvent, SquareThemeTokens, SquareTokenDetails, SquareTokenDetailsLike, SquareTokenError, SquareTokenResultLike, SquareTokenizedEvent, SquareVerifyBuyerDetails };
2756
+ export type { ProvideSquarePaymentOptions, SquareA11yMessages, SquareAchLike, SquareBillingContact, SquareCardLike, SquareCardStyle, SquareCardType, SquareConnectFlowOptions, SquareConnectOutcome, SquareConnectStart, SquareConnectState, SquareConnectStatus, SquareConnectionConfig, SquareEnvironment, SquareErrorDisplay, SquareErrorMessageOptions, SquareFailure, SquareFailureStage, SquareFeeContext, SquareFees, SquareIntentKind, SquareLoaderFn, SquareMethod, SquareOutcomeKind, SquarePaymentContext, SquarePaymentDefaults, SquarePaymentResult, SquarePaymentsLike, SquarePrepaidType, SquareReadyEvent, SquareTerminal, SquareTerminalAttemptPort, SquareTerminalBannerReason, SquareTerminalBannerState, SquareTerminalCancelFn, SquareTerminalConfig, SquareTerminalDegraded, SquareTerminalDegradedReason, SquareTerminalDeviceStatus, SquareTerminalFeeContext, SquareTerminalFeesFn, SquareTerminalFlowEvent, SquareTerminalFlowOptions, SquareTerminalGetPaymentFn, SquareTerminalGetReadinessFn, SquareTerminalLeftPending, SquareTerminalOutcome, SquareTerminalPairingOutcome, SquareTerminalPayment, SquareTerminalPaymentRef, SquareTerminalPhase, SquareTerminalReadiness, SquareTerminalReadinessState, SquareTerminalReady, SquareTerminalRefusal, SquareTerminalRegisterContext, SquareTerminalRegisterFn, SquareTerminalRetryFn, SquareTerminalStartContext, SquareTerminalStartFn, SquareTerminalStartInput, SquareTerminalSucceededEvent, SquareTerminalTerminal, SquareTerminalTerminalState, SquareThemeTokens, SquareTokenDetails, SquareTokenDetailsLike, SquareTokenError, SquareTokenResultLike, SquareTokenizedEvent, SquareVerifyBuyerDetails };