@forgeroute/ui 0.5.17 → 0.5.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/forgeroute-ui-boards.mjs +2 -2
- package/fesm2022/forgeroute-ui-boards.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-chip.mjs +25 -6
- package/fesm2022/forgeroute-ui-chip.mjs.map +1 -1
- package/fesm2022/{forgeroute-ui-core-ui-labels.es-Dzj_XJJM.mjs → forgeroute-ui-core-ui-labels.es-ChTmqFlw.mjs} +216 -5
- package/fesm2022/forgeroute-ui-core-ui-labels.es-ChTmqFlw.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-core.mjs +273 -14
- package/fesm2022/forgeroute-ui-core.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-data-table-core.mjs +217 -26
- package/fesm2022/forgeroute-ui-data-table-core.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-messaging.mjs +19 -2
- package/fesm2022/forgeroute-ui-messaging.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-more-menu.mjs +61 -8
- package/fesm2022/forgeroute-ui-more-menu.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-multi-select.mjs +2 -1
- package/fesm2022/forgeroute-ui-multi-select.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-payments.mjs +884 -56
- package/fesm2022/forgeroute-ui-payments.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-quickbooks.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-square.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-stripe.mjs +6986 -1190
- package/fesm2022/forgeroute-ui-stripe.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-table-types.mjs.map +1 -1
- package/package.json +6 -2
- package/types/forgeroute-ui-chip.d.ts +11 -1
- package/types/forgeroute-ui-core.d.ts +244 -7
- package/types/forgeroute-ui-data-table-core.d.ts +60 -1
- package/types/forgeroute-ui-messaging.d.ts +15 -5
- package/types/forgeroute-ui-more-menu.d.ts +7 -0
- package/types/forgeroute-ui-payments.d.ts +340 -8
- package/types/forgeroute-ui-quickbooks.d.ts +3 -3
- package/types/forgeroute-ui-square.d.ts +3 -3
- package/types/forgeroute-ui-stripe.d.ts +1726 -5
- package/types/forgeroute-ui-table-types.d.ts +29 -0
- package/fesm2022/forgeroute-ui-core-ui-labels.es-Dzj_XJJM.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { ApplicationRef, ChangeDetectionStrategy, Component, ElementRef, EnvironmentInjector, Injectable, InjectionToken, Input, PLATFORM_ID, Renderer2, computed, createComponent, effect, forwardRef, inject, input, isDevMode, makeEnvironmentProviders, output, provideAppInitializer, signal, untracked, viewChild } from "@angular/core";
|
|
2
|
+
import { ApplicationRef, ChangeDetectionStrategy, Component, ElementRef, EnvironmentInjector, Injectable, InjectionToken, Injector, Input, PLATFORM_ID, Renderer2, afterNextRender, computed, createComponent, effect, forwardRef, inject, input, isDevMode, makeEnvironmentProviders, output, provideAppInitializer, signal, untracked, viewChild } from "@angular/core";
|
|
3
3
|
import { HttpErrorResponse } from "@angular/common/http";
|
|
4
4
|
import { Subject, catchError, throwError } from "rxjs";
|
|
5
5
|
import { DATE_PIPE_DEFAULT_OPTIONS, DATE_PIPE_DEFAULT_TIMEZONE, DOCUMENT, NgTemplateOutlet, formatDate, isPlatformBrowser } from "@angular/common";
|
|
@@ -1006,6 +1006,19 @@ const UI_DEFAULT_LABELS = {
|
|
|
1006
1006
|
"paymentSidePanel.readerTimeout": "The reader did not respond within {{ span }}. Check that the reader is powered on and connected to WiFi.",
|
|
1007
1007
|
"paymentSidePanel.recordFailed": "Failed to record payment",
|
|
1008
1008
|
"paymentSidePanel.removeEntry": "Remove {{ method }} {{ amount }}",
|
|
1009
|
+
"paymentBlocked.default": "Payments are not available right now.",
|
|
1010
|
+
"paymentHeld.default": "A payment started from this panel may still be open. Wait for it to finish, or check it, before starting another.",
|
|
1011
|
+
"paymentHeld.check": "Check again",
|
|
1012
|
+
"paymentHeld.retryCancel": "Try canceling again",
|
|
1013
|
+
"paymentHeld.stillOpen": "The payment is still open. Wait for it to finish or cancel it, then check again.",
|
|
1014
|
+
"paymentHeld.inconclusive": "The payment could not be confirmed either way. Check it in your payment processor, then confirm below.",
|
|
1015
|
+
"paymentHeld.checkFailed": "The check could not be completed. Try again.",
|
|
1016
|
+
"paymentHeld.release": "I checked: nothing is open. Continue",
|
|
1017
|
+
"paymentHeld.released": "Checked: no payment is open any more.",
|
|
1018
|
+
"paymentHeld.succeeded": "The payment went through.",
|
|
1019
|
+
"paymentHeld.closedBeforeDone": "The payment was taken but the panel was closed before it was finished. Check the payment before starting another.",
|
|
1020
|
+
"paymentHeld.releasedByUser": "The payment could not be confirmed; the user confirmed that nothing is open.",
|
|
1021
|
+
"paymentSidePanel.cancelUnconfirmed": "The reader payment could not be confirmed as canceled. It may still be open. Check the reader before starting another payment.",
|
|
1009
1022
|
"paymentSidePanel.removedFromSplit": "Removed {{ method }} {{ amount }} from the split.",
|
|
1010
1023
|
"paymentSidePanel.selectAtLeastOneCharge": "Select at least one charge to apply this payment to.",
|
|
1011
1024
|
"paymentSidePanel.span.minute_one": "{{ count }} minute",
|
|
@@ -2379,7 +2392,7 @@ const UI_DEFAULT_LABELS = {
|
|
|
2379
2392
|
"qboErrors.status.unavailable": "The payment service is unavailable right now. Please try again in a few minutes.",
|
|
2380
2393
|
"paymentAttempt.checking": "Checking your payment...",
|
|
2381
2394
|
"paymentAttempt.checkingHelp": "Please wait and do not pay again. We are making sure your payment went through.",
|
|
2382
|
-
"paymentAttempt.
|
|
2395
|
+
"paymentAttempt.stillChecking": "We could not confirm your payment yet. Please check again in a moment and do not pay again.",
|
|
2383
2396
|
"paymentAttempt.checkAgain": "Check again",
|
|
2384
2397
|
"paymentAttempt.waiting": "Waiting for your payment to be confirmed...",
|
|
2385
2398
|
"paymentAttempt.startOver": "Start over",
|
|
@@ -2419,7 +2432,7 @@ const UI_DEFAULT_LABELS = {
|
|
|
2419
2432
|
"paymentReadiness.storageWarning": "Your browser limits storage, so a page reload or a second tab during a payment cannot be recovered automatically. Please do not reload or open this page twice while paying.",
|
|
2420
2433
|
"paymentSetup.checking": "Checking that your payment method was saved...",
|
|
2421
2434
|
"paymentSetup.checkingHelp": "Please wait and do not save it again. We are making sure your payment method was saved.",
|
|
2422
|
-
"paymentSetup.
|
|
2435
|
+
"paymentSetup.stillChecking": "We could not confirm yet that your payment method was saved. Please check again in a moment and do not save it again.",
|
|
2423
2436
|
"paymentSetup.waiting": "Waiting for your payment method to be confirmed...",
|
|
2424
2437
|
"paymentSetup.paid": "A payment method was just saved for this. If you need to save another one, please wait a moment or contact support.",
|
|
2425
2438
|
"paymentSetup.queuedOffline": "You appear to be offline. Your payment method was not saved. Please check your connection and try again.",
|
|
@@ -2427,7 +2440,7 @@ const UI_DEFAULT_LABELS = {
|
|
|
2427
2440
|
"paymentSetup.awaitingVerification": "Bank verification required: your bank account has NOT been saved yet. Until you verify the small deposits (or descriptor code) from your bank, it cannot be used and nothing will be charged.",
|
|
2428
2441
|
"paymentSetup.slowConnection": "Your connection is too slow to save your payment method safely. Please try again on a better connection.",
|
|
2429
2442
|
"paymentSetup.serviceUnavailable": "Saving payment methods is temporarily unavailable. Please try again in a few minutes.",
|
|
2430
|
-
"paymentSetup.
|
|
2443
|
+
"paymentSetup.outcomeChecking": "We are still confirming the result of an earlier attempt to save a payment method. Please wait and do not save it again.",
|
|
2431
2444
|
"paymentSetup.inFlight": "A payment method for this is already being saved. Please wait and check again shortly.",
|
|
2432
2445
|
"paymentSetup.readinessChecking": "Checking that saving a payment method is available...",
|
|
2433
2446
|
"paymentSetup.readinessGeneric": "Saving a payment method is not available right now. Please try again shortly.",
|
|
@@ -2455,7 +2468,215 @@ const UI_DEFAULT_LABELS = {
|
|
|
2455
2468
|
"qboHostedPay.errorTitle": "Something went wrong",
|
|
2456
2469
|
"qboHostedPay.unavailable": "This payment link cannot be paid right now. Please contact the business.",
|
|
2457
2470
|
"qboHostedPay.footer": "Payments are processed securely.",
|
|
2458
|
-
"stripePayment.msg.tokenFailed": "The card details could not be checked. Please try again."
|
|
2471
|
+
"stripePayment.msg.tokenFailed": "The card details could not be checked. Please try again.",
|
|
2472
|
+
"stripeReader.theReader": "the card reader",
|
|
2473
|
+
"stripeReader.status.loading": "Checking the card reader...",
|
|
2474
|
+
"stripeReader.status.no_reader.title": "No card reader set up",
|
|
2475
|
+
"stripeReader.status.no_reader.text": "Your company can take in-person card payments with a card reader. Connect a reader you already have, or get one.",
|
|
2476
|
+
"stripeReader.status.unsupported_only.title": "No supported card reader",
|
|
2477
|
+
"stripeReader.status.unsupported_only.text": "The readers on this account cannot take payments here. Supported readers are the Stripe Reader S700, the Stripe Reader S710 and the BBPOS WisePOS E. Connect a supported reader, or get one.",
|
|
2478
|
+
"stripeReader.status.reader_offline.title": "Card reader not connected",
|
|
2479
|
+
"stripeReader.status.reader_offline.text": "The card reader is turned off or has no connection. Check its power and network, then check again.",
|
|
2480
|
+
"stripeReader.status.reader_busy.title": "A card reader payment is waiting",
|
|
2481
|
+
"stripeReader.status.reader_busy.text": "A payment is waiting on {{ reader }}. Finish or cancel it before starting another.",
|
|
2482
|
+
"stripeReader.status.merchant_not_ready.title": "Payments are not set up",
|
|
2483
|
+
"stripeReader.status.merchant_not_ready.text": "Finish setting up payments before card payments can be taken, including with a card reader.",
|
|
2484
|
+
"stripeReader.status.checking.title": "Checking the card reader",
|
|
2485
|
+
"stripeReader.status.checking.text": "The card reader has not been confirmed yet. Nothing was changed. Check again in a moment.",
|
|
2486
|
+
"stripeReader.status.reconnect_required.title": "Payment account needs reconnecting",
|
|
2487
|
+
"stripeReader.status.reconnect_required.text": "Your payment account needs to be reconnected before card payments can be taken, including with a card reader.",
|
|
2488
|
+
"stripeReader.status.stale_attention.title": "The payment account needs attention",
|
|
2489
|
+
"stripeReader.status.stale_attention.text": "The card reader could not be checked because the payment account needs attention. Nothing was changed. Reconnect payments, then check again.",
|
|
2490
|
+
"stripeReader.status.reader_ready.live": "Card reader ready: {{ reader }}",
|
|
2491
|
+
"stripeReader.status.connect": "Connect a reader",
|
|
2492
|
+
"stripeReader.status.get": "Get a card reader",
|
|
2493
|
+
"stripeReader.status.recheck": "Check again",
|
|
2494
|
+
"stripeReader.status.setup": "Set up payments",
|
|
2495
|
+
"stripeReader.status.reconnect": "Reconnect payments",
|
|
2496
|
+
"stripeReader.status.cancelBusy": "Cancel that payment",
|
|
2497
|
+
"stripeReader.status.manual": "Take a manual payment instead",
|
|
2498
|
+
"stripeReader.status.getInfo": "How to get a card reader",
|
|
2499
|
+
"stripeReaderBanner.getReader": "Get a card reader to take in-person card payments.",
|
|
2500
|
+
"stripeReaderBanner.setupFirst": "Set up payments to take card payments, including in person with a card reader.",
|
|
2501
|
+
"stripeReaderBanner.sandbox": "Card readers are not available in a sandbox account.",
|
|
2502
|
+
"stripeReaderBanner.serviceDisabled": "Card readers are turned off for this account.",
|
|
2503
|
+
"stripeReaderBanner.processorUnsupported": "Card readers are not available with this payment processor.",
|
|
2504
|
+
"stripeReader.mode.label": "How is the card paid?",
|
|
2505
|
+
"stripeReader.mode.reader": "Card reader",
|
|
2506
|
+
"stripeReader.mode.manual": "Enter card manually",
|
|
2507
|
+
"stripeReader.selectReader": "Card reader",
|
|
2508
|
+
"stripeReader.readerLine": "Card reader: {{ reader }}",
|
|
2509
|
+
"stripeReader.start": "Send {{ amount }} to the reader",
|
|
2510
|
+
"stripeReader.startNoAmount": "Send to the reader",
|
|
2511
|
+
"stripeReader.starting": "Sending to the reader",
|
|
2512
|
+
"stripeReader.startingText": "Sending the payment to the reader. Do not start another payment.",
|
|
2513
|
+
"stripeReader.manualInstead": "Enter the card manually instead",
|
|
2514
|
+
"stripeReader.takeManual": "Take a manual payment instead",
|
|
2515
|
+
"stripeReader.startAgain": "Start again",
|
|
2516
|
+
"stripeReader.cancel": "Cancel payment",
|
|
2517
|
+
"stripeReader.wait.waiting.title": "Waiting for the customer",
|
|
2518
|
+
"stripeReader.wait.waiting.text": "Waiting for the customer to tap, insert or swipe their card on {{ reader }}.",
|
|
2519
|
+
"stripeReader.wait.declined.title": "Card declined",
|
|
2520
|
+
"stripeReader.wait.declined.text": "The card was declined. Try again with the same card or another card, or cancel the payment.",
|
|
2521
|
+
"stripeReader.wait.stopped.title": "The reader stopped waiting",
|
|
2522
|
+
"stripeReader.wait.stopped.text": "{{ reader }} stopped waiting for a card. The payment is still open: try again or cancel it.",
|
|
2523
|
+
"stripeReader.wait.retrying.title": "Sending the payment again",
|
|
2524
|
+
"stripeReader.wait.retrying.text": "Sending the same payment to {{ reader }} again. Nothing new is charged.",
|
|
2525
|
+
"stripeReader.wait.cancelling.title": "Canceling the payment",
|
|
2526
|
+
"stripeReader.wait.cancelling.text": "Canceling the payment on {{ reader }}. Do not tap a card.",
|
|
2527
|
+
"stripeReader.wait.recovering.title": "Checking the payment",
|
|
2528
|
+
"stripeReader.wait.recovering.text": "Checking whether the payment reached the reader. Do not start another payment.",
|
|
2529
|
+
"stripeReader.connectionLost": "Connection lost. The reader may still take the payment. Do not start another payment; reconnecting...",
|
|
2530
|
+
"stripeReader.readerDisconnected": "Reader disconnected - waiting for it to reconnect or cancel.",
|
|
2531
|
+
"stripeReader.stillChecking": "Still checking the reader. This is not an error: do not start another payment.",
|
|
2532
|
+
"stripeReader.cancelUnreachable": "The payment could not be canceled because the reader or Stripe could not be reached. The payment is still open. Try canceling again.",
|
|
2533
|
+
"stripeReader.elapsed": "Elapsed: {{ time }}",
|
|
2534
|
+
"stripeReader.fees.loading": "Calculating the card reader fees...",
|
|
2535
|
+
"stripeReader.fees.failed": "The card reader fees could not be calculated. Nothing can be sent to the reader until they are.",
|
|
2536
|
+
"stripeReader.done.title": "Payment received",
|
|
2537
|
+
"stripeReader.done.text": "The card payment of {{ amount }} was taken on {{ reader }}.",
|
|
2538
|
+
"stripeReader.done.card": "{{ brand }} ending in {{ last4 }}",
|
|
2539
|
+
"stripeReader.done.cardWord": "Card",
|
|
2540
|
+
"stripeReader.receipt": "View receipt",
|
|
2541
|
+
"stripeReader.cardSaved": "Card saved for future payments.",
|
|
2542
|
+
"stripeReader.cardNotSaved": "The card is not saved yet, or we could not confirm it. The payment itself went through. Check the customer's saved payment methods later.",
|
|
2543
|
+
"stripeReader.canceled.title": "Payment canceled",
|
|
2544
|
+
"stripeReader.canceled.text": "The payment was canceled on the reader. Nothing was charged.",
|
|
2545
|
+
"stripeReader.failed.title": "The payment did not go through",
|
|
2546
|
+
"stripeReader.failed.text": "The payment failed on the reader. Nothing was charged. You can start it again.",
|
|
2547
|
+
"stripeReader.saveCard.label": "Save this card for future payments",
|
|
2548
|
+
"stripeReader.saveCard.consent": "The customer agreed to keep this payment method on file for later payments.",
|
|
2549
|
+
"stripeReader.closeBlocked": "A card reader payment is waiting. Cancel the payment before closing.",
|
|
2550
|
+
"stripeReader.offline.withManual": "You're offline. Card reader payments can't be started until you're back online. You can still record a manual payment.",
|
|
2551
|
+
"stripeReader.offline.noManual": "You're offline. Card reader payments can't be started until you're back online.",
|
|
2552
|
+
"stripeReader.refusal.generic": "The card reader payment could not be started. Nothing was charged.",
|
|
2553
|
+
"stripeReader.refusal.reader_busy": "The card reader is busy with another payment. Nothing was charged.",
|
|
2554
|
+
"stripeReader.refusal.reader_offline": "The card reader is offline. Nothing was charged. Check its power and network, then try again.",
|
|
2555
|
+
"stripeReader.refusal.reader_not_supported": "This card reader is not supported for payments. Nothing was charged.",
|
|
2556
|
+
"stripeReader.refusal.reader_unreachable": "The card reader or Stripe could not be reached. The payment was not changed: check it again in a moment.",
|
|
2557
|
+
"stripeReader.refusal.terminal_not_retryable": "This payment can no longer be retried on the reader. Its current state is shown.",
|
|
2558
|
+
"stripeReader.refusal.payment_in_flight": "Another payment for this is already open, possibly on a card reader. Finish or cancel it first. Nothing new was charged.",
|
|
2559
|
+
"stripeReader.refusal.merchant_not_ready": "Payments are not set up for this business, so no card payment can be taken. Nothing was charged.",
|
|
2560
|
+
"stripeReader.refusal.reconnect_required": "The payment account must be reconnected before payments can be taken. Nothing was charged.",
|
|
2561
|
+
"stripeReader.refusal.consent_required": "Record the customer's agreement before the card can be kept. Nothing was charged.",
|
|
2562
|
+
"stripeReader.refusal.terminal_save_needs_direct": "This business cannot keep a card taken on a reader. Take the payment without saving the card. Nothing was charged.",
|
|
2563
|
+
"stripeReader.refusal.not_supported_by_processor": "This business cannot take card reader payments. Nothing was charged.",
|
|
2564
|
+
"stripeReader.refusal.exceeds_amount_due": "This payment is more than the amount due. Nothing was charged.",
|
|
2565
|
+
"stripeReader.refusal.duplicate_suspected": "An identical payment was made moments ago. Check the payments before taking another.",
|
|
2566
|
+
"stripeReader.refusal.paid": "A payment for this was already received. Check the payments before taking another one.",
|
|
2567
|
+
"stripeReader.refusal.offline": "You are offline. Nothing was sent.",
|
|
2568
|
+
"stripeReader.refusal.outcome_checking": "We are still confirming the result of an earlier payment. Do not start another one.",
|
|
2569
|
+
"stripeReader.refusal.queued_offline": "You appear to be offline. The payment was not sent. Check your connection and try again.",
|
|
2570
|
+
"stripeReader.refusal.start_not_received": "We have no record of this payment, so it was not started. You can start again.",
|
|
2571
|
+
"stripeReader.refusal.retry_unreachable": "The payment could not be sent to the reader again. It was not changed: check it in a moment.",
|
|
2572
|
+
"stripeReaders.list.title": "Card readers",
|
|
2573
|
+
"stripeReaders.list.empty": "No card readers are connected yet.",
|
|
2574
|
+
"stripeReaders.status.online": "Online",
|
|
2575
|
+
"stripeReaders.status.offline": "Offline",
|
|
2576
|
+
"stripeReaders.status.registering": "Registering",
|
|
2577
|
+
"stripeReaders.badge.busy": "Busy",
|
|
2578
|
+
"stripeReaders.badge.unsupported": "Not supported",
|
|
2579
|
+
"stripeReaders.rename.action": "Rename",
|
|
2580
|
+
"stripeReaders.rename.for": "Rename {{ name }}",
|
|
2581
|
+
"stripeReaders.rename.label": "Reader name",
|
|
2582
|
+
"stripeReaders.rename.done": "Reader renamed to {{ name }}.",
|
|
2583
|
+
"stripeReaders.remove.action": "Remove",
|
|
2584
|
+
"stripeReaders.remove.for": "Remove {{ name }}",
|
|
2585
|
+
"stripeReaders.remove.title": "Remove card reader",
|
|
2586
|
+
"stripeReaders.remove.text": "Remove {{ name }}? It will stop taking payments on this account. You can connect it again later with a new registration code.",
|
|
2587
|
+
"stripeReaders.remove.confirm": "Remove reader",
|
|
2588
|
+
"stripeReaders.remove.done": "Reader {{ name }} removed.",
|
|
2589
|
+
"stripeReaders.remove.busy": "A payment is waiting on this reader. Cancel it first.",
|
|
2590
|
+
"stripeReaders.add.title": "Connect a card reader",
|
|
2591
|
+
"stripeReaders.add.howS700": "Stripe Reader S700 or S710: on the reader, open Settings and generate a pairing code.",
|
|
2592
|
+
"stripeReaders.add.howWisepos": "BBPOS WisePOS E: on the home screen, press 0-7-1-3-9 to show the registration code.",
|
|
2593
|
+
"stripeReaders.add.supported": "Supported readers: {{ models }}.",
|
|
2594
|
+
"stripeReaders.add.connect": "Connect reader",
|
|
2595
|
+
"stripeReaders.add.connecting": "Connecting...",
|
|
2596
|
+
"stripeReaders.add.done": "Reader {{ name }} connected.",
|
|
2597
|
+
"stripeReaders.code.label": "Registration code",
|
|
2598
|
+
"stripeReaders.code.hint": "Type the code the reader shows. It is used once and is not kept.",
|
|
2599
|
+
"stripeReaders.code.invalid": "Enter the code exactly as the reader shows it: letters, numbers and hyphens, at least 3 characters.",
|
|
2600
|
+
"stripeReaders.name.label": "Reader name",
|
|
2601
|
+
"stripeReaders.name.hint": "For example \"Front desk\".",
|
|
2602
|
+
"stripeReaders.location.label": "Location",
|
|
2603
|
+
"stripeReaders.location.placeholder": "Select a location",
|
|
2604
|
+
"stripeReaders.location.new": "New location",
|
|
2605
|
+
"stripeReaders.location.name": "Location name",
|
|
2606
|
+
"stripeReaders.location.line1": "Address",
|
|
2607
|
+
"stripeReaders.location.city": "City",
|
|
2608
|
+
"stripeReaders.location.state": "State",
|
|
2609
|
+
"stripeReaders.location.postal": "ZIP code",
|
|
2610
|
+
"stripeReaders.location.create": "Create location",
|
|
2611
|
+
"stripeReaders.location.created": "Location {{ name }} created.",
|
|
2612
|
+
"stripeReaders.failed.load": "The card readers could not be loaded. Try again in a moment.",
|
|
2613
|
+
"stripeReaders.failed.register": "The reader could not be connected. Check the registration code and try again.",
|
|
2614
|
+
"stripeReaders.failed.rename": "The reader could not be renamed. Try again.",
|
|
2615
|
+
"stripeReaders.failed.remove": "The reader could not be removed. Try again.",
|
|
2616
|
+
"stripeReaders.failed.location": "The location could not be saved. Check the address and try again.",
|
|
2617
|
+
"stripeReaders.failed.notSupported": "This reader is not supported. Supported readers are the Stripe Reader S700, the Stripe Reader S710 and the BBPOS WisePOS E.",
|
|
2618
|
+
"stripeReader.refusal.quote_changed": "The total changed to {{ amount }} since it was shown. Review the new total and confirm it before sending to the reader. Nothing was charged.",
|
|
2619
|
+
"stripeReader.refusal.quote_changedNoAmount": "The total changed since it was shown. Review the new total and confirm it before sending to the reader. Nothing was charged.",
|
|
2620
|
+
"stripeReader.refusal.attempt_failed_use_new_key": "This payment can no longer be completed. Start again to send a new payment to the reader.",
|
|
2621
|
+
"stripeReader.refusal.payment_being_sent": "The payment is still being sent to the reader. Wait a moment, then cancel again.",
|
|
2622
|
+
"stripeReader.refusal.rate_limited": "Too many attempts. Wait a moment, then try again.",
|
|
2623
|
+
"stripeReader.refusal.viewExisting": "View the existing payment",
|
|
2624
|
+
"stripeReader.confirmTotal": "Confirm the new total {{ amount }}",
|
|
2625
|
+
"stripeReader.leaveHint": "You can close this panel. When you open it again the payment is checked and nothing new is started.",
|
|
2626
|
+
"stripeReader.wait.amount": "Total: {{ amount }}",
|
|
2627
|
+
"stripeReader.wait.amountBase": "Amount: {{ amount }} (processing fees may be added)",
|
|
2628
|
+
"stripeReader.degraded.since": "We cannot reach the card reader's payment processor since {{ time }}. The payment was not changed: do not start another payment.",
|
|
2629
|
+
"stripeReader.degraded.attention": "The payment account needs attention. The payment was not changed. Cancel may not work until it is reconnected.",
|
|
2630
|
+
"stripeReader.done.textNoAmount": "The card payment was taken on {{ reader }}.",
|
|
2631
|
+
"stripeReader.mode.blocked": "A card reader payment is still open. Cancel it, or wait for its result, before entering a card manually.",
|
|
2632
|
+
"stripeReader.mode.blockedManual": "A card payment is still being confirmed. Wait for it to finish before using the card reader.",
|
|
2633
|
+
"stripeReader.saveCard.consentFees": "Later charges will include processing fees.",
|
|
2634
|
+
"stripeReaderShop.title": "Get a card reader",
|
|
2635
|
+
"stripeReaderShop.orders.title": "Card reader orders",
|
|
2636
|
+
"stripeReaderShop.loading": "Loading the card reader shop...",
|
|
2637
|
+
"stripeReaderShop.orders.loading": "Loading your card reader orders...",
|
|
2638
|
+
"stripeReaderShop.live.ready": "The card reader shop is ready.",
|
|
2639
|
+
"stripeReaderShop.error.title": "The card reader shop could not be loaded",
|
|
2640
|
+
"stripeReaderShop.error.text": "Check your connection and try again. Nothing was changed.",
|
|
2641
|
+
"stripeReaderShop.offline.title": "You are offline",
|
|
2642
|
+
"stripeReaderShop.offline.text": "The card reader shop needs an internet connection. It loads again when you are back online.",
|
|
2643
|
+
"stripeReaderShop.unavailable.title": "Ordering a reader here is not available",
|
|
2644
|
+
"stripeReaderShop.unavailable.platform_not_enabled": "Ordering card readers in the app is not turned on yet.",
|
|
2645
|
+
"stripeReaderShop.unavailable.account_not_eligible": "This payment account cannot order card readers in the app right now. It may still be being set up or verified.",
|
|
2646
|
+
"stripeReaderShop.unavailable.processor_refused": "Stripe did not allow the card reader shop for this account.",
|
|
2647
|
+
"stripeReaderShop.unavailable.not_enabled_for_app": "Ordering card readers in the app is not turned on for this account.",
|
|
2648
|
+
"stripeReaderShop.unavailable.other": "The card reader shop is not available right now.",
|
|
2649
|
+
"stripeReaderShop.unavailable.models": "These readers work with card payments in the app:",
|
|
2650
|
+
"stripeReaderShop.model.s700": "Smart countertop reader with a touchscreen. Takes tap, chip and swipe payments.",
|
|
2651
|
+
"stripeReaderShop.model.s710": "Smart countertop reader with a touchscreen, from the same family as the S700. Takes tap, chip and swipe payments.",
|
|
2652
|
+
"stripeReaderShop.model.wisepos": "Smart reader with a touchscreen that connects over Wi-Fi. Takes tap, chip and swipe payments.",
|
|
2653
|
+
"stripeReaderShop.unavailable.how": "To get a reader, order a supported model from the Terminal hardware settings of your payment account, or contact support. When it arrives, choose Connect a reader and enter the code the device shows.",
|
|
2654
|
+
"stripeReaderShop.help.link": "How to order a card reader",
|
|
2655
|
+
"stripeReaderShop.placed.title": "Your order was placed",
|
|
2656
|
+
"stripeReaderShop.placed.text": "Your order was placed. When the reader arrives, choose Connect a reader and enter the code the device shows.",
|
|
2657
|
+
"stripeReader.wait.unconfirmed.title": "We could not confirm this payment",
|
|
2658
|
+
"stripeReader.wait.unconfirmed.text": "We could not confirm whether this payment reached the reader. Check again before taking another payment. If the customer was charged, the payment shows here once it is found.",
|
|
2659
|
+
"stripeReader.cancelBusy.timeout": "The payment could not be canceled in time. It may still be open: check the card reader again before taking another payment.",
|
|
2660
|
+
"stripeReader.fees.unavailable": "The card reader fees are not available, so nothing can be sent to the reader. Try again in a moment.",
|
|
2661
|
+
"stripeReaders.failed.timeout": "The card reader service did not answer in time. The list was checked again: look at it before trying once more.",
|
|
2662
|
+
"paymentAttempt.stillUnknown": "We could not confirm your payment yet. Please check again in a moment and do not pay again.",
|
|
2663
|
+
"paymentSetup.stillUnknown": "We could not confirm yet that your payment method was saved. Please check again in a moment and do not save it again.",
|
|
2664
|
+
"paymentSetup.outcomeUnknown": "We are still confirming the result of an earlier attempt to save a payment method. Please wait and do not save it again.",
|
|
2665
|
+
"stripeReader.status.unknown.title": "Checking the card reader",
|
|
2666
|
+
"stripeReader.status.unknown.text": "The card reader has not been confirmed yet. Nothing was changed. Check again in a moment.",
|
|
2667
|
+
"stripeReader.status.unknown_attention.title": "The payment account needs attention",
|
|
2668
|
+
"stripeReader.status.unknown_attention.text": "The card reader could not be checked because the payment account needs attention. Nothing was changed. Reconnect payments, then check again.",
|
|
2669
|
+
"stripeReader.refusal.outcome_unknown": "We are still confirming the result of an earlier payment. Do not start another one."
|
|
2670
|
+
};
|
|
2671
|
+
const DEPRECATED_LABEL_ALIASES = {
|
|
2672
|
+
"paymentAttempt.stillUnknown": "paymentAttempt.stillChecking",
|
|
2673
|
+
"paymentSetup.stillUnknown": "paymentSetup.stillChecking",
|
|
2674
|
+
"paymentSetup.outcomeUnknown": "paymentSetup.outcomeChecking",
|
|
2675
|
+
"stripeReader.status.unknown.title": "stripeReader.status.checking.title",
|
|
2676
|
+
"stripeReader.status.unknown.text": "stripeReader.status.checking.text",
|
|
2677
|
+
"stripeReader.status.unknown_attention.title": "stripeReader.status.stale_attention.title",
|
|
2678
|
+
"stripeReader.status.unknown_attention.text": "stripeReader.status.stale_attention.text",
|
|
2679
|
+
"stripeReader.refusal.outcome_unknown": "stripeReader.refusal.outcome_checking"
|
|
2459
2680
|
};
|
|
2460
2681
|
function interpolate$1(text, params) {
|
|
2461
2682
|
if (!params) return text;
|
|
@@ -2493,6 +2714,7 @@ var UiLabelsService = class UiLabelsService {
|
|
|
2493
2714
|
setLabels(dictionary) {
|
|
2494
2715
|
const clean = {};
|
|
2495
2716
|
for (const [k, v] of Object.entries(dictionary ?? {})) if (k in UI_DEFAULT_LABELS && typeof v === "string" && v.trim() !== "") clean[k] = v;
|
|
2717
|
+
for (const [old, now] of Object.entries(DEPRECATED_LABEL_ALIASES)) if (old in clean && !(dictionary && typeof dictionary[now] === "string" && dictionary[now].trim() !== "")) clean[now] = clean[old];
|
|
2496
2718
|
this.overrides.set(clean);
|
|
2497
2719
|
}
|
|
2498
2720
|
setLocale(locale) {
|
|
@@ -2520,7 +2742,8 @@ var UiLabelsService = class UiLabelsService {
|
|
|
2520
2742
|
return uiFormatHour(hour, this.locale());
|
|
2521
2743
|
}
|
|
2522
2744
|
t(key, params) {
|
|
2523
|
-
|
|
2745
|
+
const target = DEPRECATED_LABEL_ALIASES[key] ?? key;
|
|
2746
|
+
return interpolate$1(this.overrides()[target] ?? UI_DEFAULT_LABELS[target] ?? key, params);
|
|
2524
2747
|
}
|
|
2525
2748
|
static {
|
|
2526
2749
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
@@ -2811,6 +3034,15 @@ var OverlayStack = class OverlayStack {
|
|
|
2811
3034
|
const i = this.stack.indexOf(overlay);
|
|
2812
3035
|
if (i >= 0) this.stack.splice(i, 1);
|
|
2813
3036
|
}
|
|
3037
|
+
indexOf(overlay) {
|
|
3038
|
+
return this.stack.indexOf(overlay);
|
|
3039
|
+
}
|
|
3040
|
+
pruneDetached() {
|
|
3041
|
+
for (const overlay of [...this.stack]) {
|
|
3042
|
+
const o = overlay;
|
|
3043
|
+
if (o.isDetached?.()) o.onOrphaned?.();
|
|
3044
|
+
}
|
|
3045
|
+
}
|
|
2814
3046
|
isTop(overlay) {
|
|
2815
3047
|
return this.stack.length > 0 && this.stack[this.stack.length - 1] === overlay;
|
|
2816
3048
|
}
|
|
@@ -3263,6 +3495,10 @@ var ModalComponent = class ModalComponent {
|
|
|
3263
3495
|
this.el = inject(ElementRef);
|
|
3264
3496
|
this.ren = inject(Renderer2);
|
|
3265
3497
|
this.doc = inject(DOCUMENT);
|
|
3498
|
+
this.injector = inject(Injector);
|
|
3499
|
+
this._layer = signal(0, ...ngDevMode ? [{ debugName: "_layer" }] : /* istanbul ignore next */ []);
|
|
3500
|
+
this.backdropZ = computed(() => 200 + 2 * this._layer(), ...ngDevMode ? [{ debugName: "backdropZ" }] : /* istanbul ignore next */ []);
|
|
3501
|
+
this.dialogZ = computed(() => 201 + 2 * this._layer(), ...ngDevMode ? [{ debugName: "dialogZ" }] : /* istanbul ignore next */ []);
|
|
3266
3502
|
this._overlays = inject(OverlayStack);
|
|
3267
3503
|
this._prevFocus = null;
|
|
3268
3504
|
this._scrollLocked = false;
|
|
@@ -3273,6 +3509,7 @@ var ModalComponent = class ModalComponent {
|
|
|
3273
3509
|
effect(() => {
|
|
3274
3510
|
if (this.open()) {
|
|
3275
3511
|
this._overlays.push(this);
|
|
3512
|
+
this._layer.set(this._overlays.indexOf(this));
|
|
3276
3513
|
this._prevFocus = resolveTrigger(this.doc, this._interaction);
|
|
3277
3514
|
this._stopIframeKeys?.();
|
|
3278
3515
|
this._stopIframeKeys = bridgeIframeKeys(this.el.nativeElement, this.doc, {
|
|
@@ -3294,6 +3531,7 @@ var ModalComponent = class ModalComponent {
|
|
|
3294
3531
|
this._stopIframeKeys = null;
|
|
3295
3532
|
restoreFocus(untracked(() => this.returnFocusTo()), this._prevFocus);
|
|
3296
3533
|
this._prevFocus = null;
|
|
3534
|
+
afterNextRender(() => this._overlays.pruneDetached(), { injector: this.injector });
|
|
3297
3535
|
}
|
|
3298
3536
|
});
|
|
3299
3537
|
}
|
|
@@ -3335,6 +3573,7 @@ var ModalComponent = class ModalComponent {
|
|
|
3335
3573
|
redirectFromGuard(which, this.el.nativeElement, this.el.nativeElement.querySelector(".m-modal"), event?.relatedTarget ?? null);
|
|
3336
3574
|
}
|
|
3337
3575
|
_focusFirst() {
|
|
3576
|
+
if (!this._overlays.isTop(this)) return;
|
|
3338
3577
|
focusInitial(this.el.nativeElement.querySelector(".m-modal"), this.el.nativeElement.querySelector(".m-body"), this.doc);
|
|
3339
3578
|
}
|
|
3340
3579
|
_focusable() {
|
|
@@ -3484,8 +3723,8 @@ var ModalComponent = class ModalComponent {
|
|
|
3484
3723
|
ngImport: i0,
|
|
3485
3724
|
template: `
|
|
3486
3725
|
@if (open()) {
|
|
3487
|
-
<div class="m-backdrop" [class.m-kiosk-backdrop]="kiosk()" (click)="dismiss('backdrop')"></div>
|
|
3488
|
-
<div class="m-modal" [class.m-kiosk]="kiosk()" role="dialog" aria-modal="true" tabindex="-1" [attr.aria-labelledby]="titleId" [attr.aria-describedby]="describedById()" [attr.aria-busy]="busy() ? 'true' : null" [attr.data-testid]="dialogTestId() || null" [style.max-width]="maxWidth()">
|
|
3726
|
+
<div class="m-backdrop" [class.m-kiosk-backdrop]="kiosk()" [style.z-index]="backdropZ()" (click)="dismiss('backdrop')"></div>
|
|
3727
|
+
<div class="m-modal" [class.m-kiosk]="kiosk()" role="dialog" aria-modal="true" tabindex="-1" [attr.aria-labelledby]="titleId" [attr.aria-describedby]="describedById()" [attr.aria-busy]="busy() ? 'true' : null" [attr.data-testid]="dialogTestId() || null" [style.max-width]="maxWidth()" [style.z-index]="dialogZ()">
|
|
3489
3728
|
<span class="m-focus-guard" data-ui-focus-guard="start" tabindex="0" (focus)="onGuardFocus('start', $event)"></span>
|
|
3490
3729
|
<div class="m-header">
|
|
3491
3730
|
<div class="m-header-text">
|
|
@@ -3516,7 +3755,7 @@ var ModalComponent = class ModalComponent {
|
|
|
3516
3755
|
}
|
|
3517
3756
|
`,
|
|
3518
3757
|
isInline: true,
|
|
3519
|
-
styles: [".m-backdrop{position:fixed;inset:0;background:#02081773;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);z-index:200;animation:m-fade .18s ease}.m-modal:focus{outline:none}.m-close:disabled{opacity:.4;cursor:not-allowed}.m-focus-guard{position:absolute;width:1px;height:1px;padding:0;margin:-1px;border:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;outline:none}.m-modal{position:fixed;
|
|
3758
|
+
styles: [".m-backdrop{position:fixed;inset:0;background:#02081773;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);z-index:200;animation:m-fade .18s ease}.m-modal:focus{outline:none}.m-close:disabled{opacity:.4;cursor:not-allowed}.m-focus-guard{position:absolute;width:1px;height:1px;padding:0;margin:-1px;border:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;outline:none}.m-modal{position:fixed;inset:0;margin:auto;height:fit-content;background:#fff;border-radius:16px;border:1px solid rgba(0,0,0,.07);z-index:201;width:calc(100% - 32px);box-shadow:0 4px 6px #0000000a,0 16px 32px #0000001f,0 48px 96px #0000001a;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);display:flex;flex-direction:column;animation:m-scale .22s cubic-bezier(.16,1,.3,1)}.m-header{display:flex;align-items:flex-start;justify-content:space-between;padding:20px 24px 16px;background:#f8fafc;border-bottom:1px solid #e2e8f0;border-radius:16px 16px 0 0;flex-shrink:0}.m-header-text{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}.m-title{font-size:1.125rem;font-weight:700;color:#0f172a;margin:0;letter-spacing:-.02em;line-height:1.3}.m-description{font-size:.8125rem;color:#64748b;margin:0;line-height:1.4}.m-close{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;border:none;background:none;cursor:pointer;color:#94a3b8;flex-shrink:0;margin-left:12px;transition:background .13s,color .13s}.m-close:hover{background:#f1f5f9;color:#1e293b}.m-close:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}.m-body{padding:20px 24px;overflow-y:auto;flex:1;min-height:0;font-size:.9rem;color:#475569;line-height:1.65}.m-footer{padding:14px 24px 18px;background:#f8fafc;border-top:1px solid #e2e8f0;border-radius:0 0 16px 16px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:8px}.m-footer:not(:has(*)){display:none}.m-footer-left{display:flex;align-items:center;gap:8px}.m-footer-right{display:flex;align-items:center;gap:8px;margin-left:auto}.m-footer-center{display:flex;align-items:center;justify-content:center;gap:8px;flex:1 1 auto;margin:0 8px}.m-footer-center:empty{display:none}@media(max-width:480px){.m-modal:not(.m-kiosk){top:auto;bottom:var(--ui-kb, 0px);left:0;right:0;transform:none;margin:0;height:auto;width:100vw;max-width:none!important;max-height:min(85dvh,var(--ui-vvh, 100dvh));border-radius:20px 20px 0 0;animation:m-up .24s cubic-bezier(.16,1,.3,1)}.m-footer{border-radius:0;flex-wrap:wrap;padding-bottom:max(18px,env(safe-area-inset-bottom))}}@media(pointer:coarse),(max-width:480px){.m-close{box-sizing:border-box;width:44px;height:44px;padding:7px;margin:-7px -7px -7px 5px;background-clip:content-box}}.m-backdrop.m-kiosk-backdrop{background:#0f172ab8;backdrop-filter:none;-webkit-backdrop-filter:none}.m-modal.m-kiosk{inset:0;transform:none;margin:auto;width:calc(100% - 32px);height:fit-content;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:hidden;animation:m-fade .18s ease;box-shadow:0 25px 60px #00000040}.m-modal.m-kiosk .m-body{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.m-modal.m-kiosk .m-footer{border-radius:0 0 16px 16px}@media(max-width:480px){.m-modal.m-kiosk{bottom:var(--ui-kb, 0px);max-height:min(calc(100dvh - 32px),var(--ui-vvh, 100dvh));border-radius:16px}.m-modal.m-kiosk .m-footer{flex-wrap:wrap;padding-bottom:max(18px,env(safe-area-inset-bottom))}}@keyframes m-fade{0%{opacity:0}to{opacity:1}}@keyframes m-scale{0%{opacity:0;transform:translateY(2%) scale(.96)}to{opacity:1;transform:none}}@keyframes m-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.m-backdrop,.m-modal{animation:none}}\n"],
|
|
3520
3759
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
3521
3760
|
});
|
|
3522
3761
|
}
|
|
@@ -3539,8 +3778,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3539
3778
|
}],
|
|
3540
3779
|
template: `
|
|
3541
3780
|
@if (open()) {
|
|
3542
|
-
<div class="m-backdrop" [class.m-kiosk-backdrop]="kiosk()" (click)="dismiss('backdrop')"></div>
|
|
3543
|
-
<div class="m-modal" [class.m-kiosk]="kiosk()" role="dialog" aria-modal="true" tabindex="-1" [attr.aria-labelledby]="titleId" [attr.aria-describedby]="describedById()" [attr.aria-busy]="busy() ? 'true' : null" [attr.data-testid]="dialogTestId() || null" [style.max-width]="maxWidth()">
|
|
3781
|
+
<div class="m-backdrop" [class.m-kiosk-backdrop]="kiosk()" [style.z-index]="backdropZ()" (click)="dismiss('backdrop')"></div>
|
|
3782
|
+
<div class="m-modal" [class.m-kiosk]="kiosk()" role="dialog" aria-modal="true" tabindex="-1" [attr.aria-labelledby]="titleId" [attr.aria-describedby]="describedById()" [attr.aria-busy]="busy() ? 'true' : null" [attr.data-testid]="dialogTestId() || null" [style.max-width]="maxWidth()" [style.z-index]="dialogZ()">
|
|
3544
3783
|
<span class="m-focus-guard" data-ui-focus-guard="start" tabindex="0" (focus)="onGuardFocus('start', $event)"></span>
|
|
3545
3784
|
<div class="m-header">
|
|
3546
3785
|
<div class="m-header-text">
|
|
@@ -3570,7 +3809,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3570
3809
|
</div>
|
|
3571
3810
|
}
|
|
3572
3811
|
`,
|
|
3573
|
-
styles: [".m-backdrop{position:fixed;inset:0;background:#02081773;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);z-index:200;animation:m-fade .18s ease}.m-modal:focus{outline:none}.m-close:disabled{opacity:.4;cursor:not-allowed}.m-focus-guard{position:absolute;width:1px;height:1px;padding:0;margin:-1px;border:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;outline:none}.m-modal{position:fixed;
|
|
3812
|
+
styles: [".m-backdrop{position:fixed;inset:0;background:#02081773;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);z-index:200;animation:m-fade .18s ease}.m-modal:focus{outline:none}.m-close:disabled{opacity:.4;cursor:not-allowed}.m-focus-guard{position:absolute;width:1px;height:1px;padding:0;margin:-1px;border:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;outline:none}.m-modal{position:fixed;inset:0;margin:auto;height:fit-content;background:#fff;border-radius:16px;border:1px solid rgba(0,0,0,.07);z-index:201;width:calc(100% - 32px);box-shadow:0 4px 6px #0000000a,0 16px 32px #0000001f,0 48px 96px #0000001a;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);display:flex;flex-direction:column;animation:m-scale .22s cubic-bezier(.16,1,.3,1)}.m-header{display:flex;align-items:flex-start;justify-content:space-between;padding:20px 24px 16px;background:#f8fafc;border-bottom:1px solid #e2e8f0;border-radius:16px 16px 0 0;flex-shrink:0}.m-header-text{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}.m-title{font-size:1.125rem;font-weight:700;color:#0f172a;margin:0;letter-spacing:-.02em;line-height:1.3}.m-description{font-size:.8125rem;color:#64748b;margin:0;line-height:1.4}.m-close{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;border:none;background:none;cursor:pointer;color:#94a3b8;flex-shrink:0;margin-left:12px;transition:background .13s,color .13s}.m-close:hover{background:#f1f5f9;color:#1e293b}.m-close:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}.m-body{padding:20px 24px;overflow-y:auto;flex:1;min-height:0;font-size:.9rem;color:#475569;line-height:1.65}.m-footer{padding:14px 24px 18px;background:#f8fafc;border-top:1px solid #e2e8f0;border-radius:0 0 16px 16px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:8px}.m-footer:not(:has(*)){display:none}.m-footer-left{display:flex;align-items:center;gap:8px}.m-footer-right{display:flex;align-items:center;gap:8px;margin-left:auto}.m-footer-center{display:flex;align-items:center;justify-content:center;gap:8px;flex:1 1 auto;margin:0 8px}.m-footer-center:empty{display:none}@media(max-width:480px){.m-modal:not(.m-kiosk){top:auto;bottom:var(--ui-kb, 0px);left:0;right:0;transform:none;margin:0;height:auto;width:100vw;max-width:none!important;max-height:min(85dvh,var(--ui-vvh, 100dvh));border-radius:20px 20px 0 0;animation:m-up .24s cubic-bezier(.16,1,.3,1)}.m-footer{border-radius:0;flex-wrap:wrap;padding-bottom:max(18px,env(safe-area-inset-bottom))}}@media(pointer:coarse),(max-width:480px){.m-close{box-sizing:border-box;width:44px;height:44px;padding:7px;margin:-7px -7px -7px 5px;background-clip:content-box}}.m-backdrop.m-kiosk-backdrop{background:#0f172ab8;backdrop-filter:none;-webkit-backdrop-filter:none}.m-modal.m-kiosk{inset:0;transform:none;margin:auto;width:calc(100% - 32px);height:fit-content;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:hidden;animation:m-fade .18s ease;box-shadow:0 25px 60px #00000040}.m-modal.m-kiosk .m-body{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.m-modal.m-kiosk .m-footer{border-radius:0 0 16px 16px}@media(max-width:480px){.m-modal.m-kiosk{bottom:var(--ui-kb, 0px);max-height:min(calc(100dvh - 32px),var(--ui-vvh, 100dvh));border-radius:16px}.m-modal.m-kiosk .m-footer{flex-wrap:wrap;padding-bottom:max(18px,env(safe-area-inset-bottom))}}@keyframes m-fade{0%{opacity:0}to{opacity:1}}@keyframes m-scale{0%{opacity:0;transform:translateY(2%) scale(.96)}to{opacity:1;transform:none}}@keyframes m-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.m-backdrop,.m-modal{animation:none}}\n"]
|
|
3574
3813
|
}]
|
|
3575
3814
|
}],
|
|
3576
3815
|
ctorParameters: () => [],
|
|
@@ -4635,6 +4874,7 @@ var SidePanelComponent = class SidePanelComponent {
|
|
|
4635
4874
|
this._stopViewport = null;
|
|
4636
4875
|
this._stopIframeKeys = null;
|
|
4637
4876
|
this._interaction = inject(LastInteraction);
|
|
4877
|
+
this._injector = inject(Injector);
|
|
4638
4878
|
this._interaction.acquire(this._doc);
|
|
4639
4879
|
effect(() => {
|
|
4640
4880
|
const body = this._bodyRef()?.nativeElement ?? null;
|
|
@@ -4643,6 +4883,9 @@ var SidePanelComponent = class SidePanelComponent {
|
|
|
4643
4883
|
effect(() => {
|
|
4644
4884
|
if (this.open()) {
|
|
4645
4885
|
this._overlays.push(this);
|
|
4886
|
+
afterNextRender(() => {
|
|
4887
|
+
if (this.open() && !this._overlays.isTop(this) && this._el.nativeElement.closest(".m-modal")) this._overlays.push(this);
|
|
4888
|
+
}, { injector: this._injector });
|
|
4646
4889
|
this._prevFocus = resolveTrigger(this._doc, this._interaction);
|
|
4647
4890
|
this._stopIframeKeys?.();
|
|
4648
4891
|
this._stopIframeKeys = bridgeIframeKeys(this._el.nativeElement, this._doc, {
|
|
@@ -4667,6 +4910,21 @@ var SidePanelComponent = class SidePanelComponent {
|
|
|
4667
4910
|
}
|
|
4668
4911
|
});
|
|
4669
4912
|
}
|
|
4913
|
+
isDetached() {
|
|
4914
|
+
return this.open() && this._scrollLocked && !this._el.nativeElement.isConnected;
|
|
4915
|
+
}
|
|
4916
|
+
onOrphaned() {
|
|
4917
|
+
if (!this._scrollLocked) return;
|
|
4918
|
+
this._overlays.remove(this);
|
|
4919
|
+
if (this._overlays.isEmpty) this._doc.body.style.overflow = "";
|
|
4920
|
+
this._scrollLocked = false;
|
|
4921
|
+
this._stopViewport?.();
|
|
4922
|
+
this._stopViewport = null;
|
|
4923
|
+
this._stopIframeKeys?.();
|
|
4924
|
+
this._stopIframeKeys = null;
|
|
4925
|
+
this._prevFocus = null;
|
|
4926
|
+
this.closed.emit();
|
|
4927
|
+
}
|
|
4670
4928
|
refreshScrollable() {
|
|
4671
4929
|
const el = this._bodyRef()?.nativeElement;
|
|
4672
4930
|
this.bodyScrollable.set(!!el && el.scrollHeight - el.clientHeight > 1);
|
|
@@ -4735,6 +4993,7 @@ var SidePanelComponent = class SidePanelComponent {
|
|
|
4735
4993
|
redirectFromGuard(which, this._el.nativeElement, this._el.nativeElement.querySelector(".sp-panel"), event?.relatedTarget ?? null);
|
|
4736
4994
|
}
|
|
4737
4995
|
_focusFirst() {
|
|
4996
|
+
if (!this._overlays.isTop(this)) return;
|
|
4738
4997
|
focusInitial(this._el.nativeElement.querySelector(".sp-panel"), this._el.nativeElement.querySelector(".sp-body"), this._doc);
|
|
4739
4998
|
}
|
|
4740
4999
|
_focusable() {
|
|
@@ -5199,7 +5458,7 @@ const BUILT_IN_ENDONYMS = {
|
|
|
5199
5458
|
ko: "한국어",
|
|
5200
5459
|
ru: "Русский"
|
|
5201
5460
|
};
|
|
5202
|
-
const BUILT_IN_LOADERS = /* @__PURE__ */ new Map([["es", () => import("./forgeroute-ui-core-ui-labels.es-
|
|
5461
|
+
const BUILT_IN_LOADERS = /* @__PURE__ */ new Map([["es", () => import("./forgeroute-ui-core-ui-labels.es-ChTmqFlw.mjs").then((m) => m.UI_LABELS_ES)]]);
|
|
5203
5462
|
const normalizeTag = (tag) => tag.trim().toLowerCase().replace(/_/g, "-");
|
|
5204
5463
|
const baseOf = (tag) => normalizeTag(tag).split("-")[0];
|
|
5205
5464
|
const builtInLoader = (lang) => BUILT_IN_LOADERS.get(normalizeTag(lang)) ?? BUILT_IN_LOADERS.get(baseOf(lang));
|
|
@@ -5697,6 +5956,6 @@ function moduleLabelsTesting(options = {}) {
|
|
|
5697
5956
|
loadCount: (namespace) => counts[namespace] ?? 0
|
|
5698
5957
|
};
|
|
5699
5958
|
}
|
|
5700
|
-
export { ButtonComponent, ConfirmOutletComponent, ConfirmService, DEFAULT_LOCALE, EMBEDDING_PARENT, FOCUS_GUARD_ATTR, FORGEROUTE_CONFIG, INTERACTION_WINDOW_MS, LastInteraction, ModalComponent, ModuleLabelsRegistry, OverlayStack, SidePanelComponent, ToastService, UI_DEFAULT_LABELS, UI_FIELD_REVEAL_HOST, UI_LANGUAGE_AUTO, UI_LANGUAGE_CONFIG, UI_NOTES_QUEUE, UiFieldValidity, UiLabelsService, UiLanguageService, assertModuleLabelParity, bridgeIframeKeys, closestFocusable, createFieldReveal, createModuleLabels, defaultLabel, errorContextInterceptor, focusInitial, formatIsoDate, formatIsoDateTime, formatTime, getErrorMessage, injectModuleLabels, isTouchViewport, isUsableField, isoKey, issueToErrors, loadUiLabels, maxLengthIssue, mergeDescribedBy, moduleLabelsTesting, nativeControl, parseIso, parseTime, patternToOptions, provideModuleLabelOverrides, provideUiLanguage, redirectFromGuard, requiredIssue, resolveTrigger, restoreFocus, safeLocale, tabbables, toDate, trackVisualViewport, uiCurrencyFormatter, uiFormatClock, uiFormatCurrency, uiFormatDate, uiFormatHour, uiFormatNumber, uiLocale, uiMonthName, uiText, uiWeekdayName, usdCurrencyDisplay };
|
|
5959
|
+
export { ButtonComponent, ConfirmOutletComponent, ConfirmService, DEFAULT_LOCALE, DEPRECATED_LABEL_ALIASES, EMBEDDING_PARENT, FOCUS_GUARD_ATTR, FORGEROUTE_CONFIG, INTERACTION_WINDOW_MS, LastInteraction, ModalComponent, ModuleLabelsRegistry, OverlayStack, SidePanelComponent, ToastService, UI_DEFAULT_LABELS, UI_FIELD_REVEAL_HOST, UI_LANGUAGE_AUTO, UI_LANGUAGE_CONFIG, UI_NOTES_QUEUE, UiFieldValidity, UiLabelsService, UiLanguageService, assertModuleLabelParity, bridgeIframeKeys, closestFocusable, createFieldReveal, createModuleLabels, defaultLabel, errorContextInterceptor, focusInitial, formatIsoDate, formatIsoDateTime, formatTime, getErrorMessage, injectModuleLabels, isTouchViewport, isUsableField, isoKey, issueToErrors, loadUiLabels, maxLengthIssue, mergeDescribedBy, moduleLabelsTesting, nativeControl, parseIso, parseTime, patternToOptions, provideModuleLabelOverrides, provideUiLanguage, redirectFromGuard, requiredIssue, resolveTrigger, restoreFocus, safeLocale, tabbables, toDate, trackVisualViewport, uiCurrencyFormatter, uiFormatClock, uiFormatCurrency, uiFormatDate, uiFormatHour, uiFormatNumber, uiLocale, uiMonthName, uiText, uiWeekdayName, usdCurrencyDisplay };
|
|
5701
5960
|
|
|
5702
5961
|
//# sourceMappingURL=forgeroute-ui-core.mjs.map
|