@schematichq/schematic-components 2.30.0 → 2.31.0

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.
@@ -5568,6 +5568,7 @@ function CustomPlanBillingResponseDataFromJSONTyped(json, ignoreDiscriminator) {
5568
5568
  json["activation_strategy"]
5569
5569
  ),
5570
5570
  billingCycleAnchor: json["billing_cycle_anchor"] == null ? void 0 : new Date(json["billing_cycle_anchor"]),
5571
+ billingStartDate: json["billing_start_date"] == null ? void 0 : new Date(json["billing_start_date"]),
5571
5572
  companyId: json["company_id"],
5572
5573
  createdAt: new Date(json["created_at"]),
5573
5574
  daysUntilDue: json["days_until_due"],
@@ -5585,6 +5586,22 @@ function CustomPlanBillingResponseDataFromJSONTyped(json, ignoreDiscriminator) {
5585
5586
  };
5586
5587
  }
5587
5588
 
5589
+ // src/api/checkoutexternal/models/MigrationProrationBehavior.ts
5590
+ function MigrationProrationBehaviorFromJSON(json) {
5591
+ return MigrationProrationBehaviorFromJSONTyped(json, false);
5592
+ }
5593
+ function MigrationProrationBehaviorFromJSONTyped(json, ignoreDiscriminator) {
5594
+ return json;
5595
+ }
5596
+
5597
+ // src/api/checkoutexternal/models/PlanVersionMigrationStrategy.ts
5598
+ function PlanVersionMigrationStrategyFromJSON(json) {
5599
+ return PlanVersionMigrationStrategyFromJSONTyped(json, false);
5600
+ }
5601
+ function PlanVersionMigrationStrategyFromJSONTyped(json, ignoreDiscriminator) {
5602
+ return json;
5603
+ }
5604
+
5588
5605
  // src/api/checkoutexternal/models/PendingMigrationResponseData.ts
5589
5606
  function PendingMigrationResponseDataFromJSON(json) {
5590
5607
  return PendingMigrationResponseDataFromJSONTyped(json, false);
@@ -5594,8 +5611,11 @@ function PendingMigrationResponseDataFromJSONTyped(json, ignoreDiscriminator) {
5594
5611
  return json;
5595
5612
  }
5596
5613
  return {
5614
+ effectiveAt: json["effective_at"] == null ? void 0 : new Date(json["effective_at"]),
5597
5615
  migrationId: json["migration_id"],
5616
+ prorationBehavior: json["proration_behavior"] == null ? void 0 : MigrationProrationBehaviorFromJSON(json["proration_behavior"]),
5598
5617
  scheduledFor: json["scheduled_for"] == null ? void 0 : new Date(json["scheduled_for"]),
5618
+ strategy: PlanVersionMigrationStrategyFromJSON(json["strategy"]),
5599
5619
  toPlanId: json["to_plan_id"],
5600
5620
  toPlanName: json["to_plan_name"],
5601
5621
  toPlanVersionId: json["to_plan_version_id"],
@@ -5781,6 +5801,7 @@ function CompanyDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
5781
5801
  CompanyPlanWithBillingSubViewFromJSON
5782
5802
  ),
5783
5803
  billingCreditBalances: json["billing_credit_balances"] == null ? void 0 : json["billing_credit_balances"],
5804
+ billingEmail: json["billing_email"] == null ? void 0 : json["billing_email"],
5784
5805
  billingProfile: json["billing_profile"] == null ? void 0 : CompanyBillingProfileResponseDataFromJSON(json["billing_profile"]),
5785
5806
  billingProfiles: json["billing_profiles"] == null ? void 0 : json["billing_profiles"].map(
5786
5807
  CompanyBillingProfileResponseDataFromJSON
@@ -6034,6 +6055,29 @@ function CompanyPlanInvalidReasonFromJSONTyped(json, ignoreDiscriminator) {
6034
6055
  return json;
6035
6056
  }
6036
6057
 
6058
+ // src/api/checkoutexternal/models/PlanPriceCadence.ts
6059
+ function PlanPriceCadenceFromJSON(json) {
6060
+ return PlanPriceCadenceFromJSONTyped(json, false);
6061
+ }
6062
+ function PlanPriceCadenceFromJSONTyped(json, ignoreDiscriminator) {
6063
+ return json;
6064
+ }
6065
+
6066
+ // src/api/checkoutexternal/models/EstimatedPlanTotal.ts
6067
+ function EstimatedPlanTotalFromJSON(json) {
6068
+ return EstimatedPlanTotalFromJSONTyped(json, false);
6069
+ }
6070
+ function EstimatedPlanTotalFromJSONTyped(json, ignoreDiscriminator) {
6071
+ if (json == null) {
6072
+ return json;
6073
+ }
6074
+ return {
6075
+ amount: json["amount"],
6076
+ currency: json["currency"],
6077
+ period: PlanPriceCadenceFromJSON(json["period"])
6078
+ };
6079
+ }
6080
+
6037
6081
  // src/api/checkoutexternal/models/EntitlementCurrencyPricesResponseData.ts
6038
6082
  function EntitlementCurrencyPricesResponseDataFromJSON(json) {
6039
6083
  return EntitlementCurrencyPricesResponseDataFromJSONTyped(json, false);
@@ -6379,14 +6423,6 @@ function FeatureInPlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
6379
6423
  };
6380
6424
  }
6381
6425
 
6382
- // src/api/checkoutexternal/models/PlanPriceCadence.ts
6383
- function PlanPriceCadenceFromJSON(json) {
6384
- return PlanPriceCadenceFromJSONTyped(json, false);
6385
- }
6386
- function PlanPriceCadenceFromJSONTyped(json, ignoreDiscriminator) {
6387
- return json;
6388
- }
6389
-
6390
6426
  // src/api/checkoutexternal/models/CustomPlanConfig.ts
6391
6427
  function CustomPlanConfigFromJSON(json) {
6392
6428
  return CustomPlanConfigFromJSONTyped(json, false);
@@ -6655,6 +6691,9 @@ function CompanyPlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
6655
6691
  entitlements: json["entitlements"] == null ? void 0 : json["entitlements"].map(
6656
6692
  PlanEntitlementResponseDataFromJSON
6657
6693
  ),
6694
+ estimatedTotals: json["estimated_totals"] == null ? void 0 : json["estimated_totals"].map(
6695
+ EstimatedPlanTotalFromJSON
6696
+ ),
6658
6697
  features: json["features"].map(
6659
6698
  FeatureInPlanResponseDataFromJSON
6660
6699
  ),
@@ -6799,6 +6838,7 @@ function ComponentDisplaySettingsFromJSONTyped(json, ignoreDiscriminator) {
6799
6838
  return {
6800
6839
  showAsMonthlyPrices: json["show_as_monthly_prices"],
6801
6840
  showCredits: json["show_credits"],
6841
+ showEstimatedTotal: json["show_estimated_total"],
6802
6842
  showFeatureDescription: json["show_feature_description"],
6803
6843
  showHardLimit: json["show_hard_limit"],
6804
6844
  showPeriodToggle: json["show_period_toggle"],
@@ -9784,6 +9824,7 @@ function ComponentDisplaySettingsFromJSONTyped3(json, ignoreDiscriminator) {
9784
9824
  return {
9785
9825
  showAsMonthlyPrices: json["show_as_monthly_prices"],
9786
9826
  showCredits: json["show_credits"],
9827
+ showEstimatedTotal: json["show_estimated_total"],
9787
9828
  showFeatureDescription: json["show_feature_description"],
9788
9829
  showHardLimit: json["show_hard_limit"],
9789
9830
  showPeriodToggle: json["show_period_toggle"],
@@ -10248,9 +10289,9 @@ function PlanEntitlementResponseDataFromJSONTyped6(json, ignoreDiscriminator) {
10248
10289
 
10249
10290
  // src/api/componentspublic/models/PlanPriceCadence.ts
10250
10291
  function PlanPriceCadenceFromJSON2(json) {
10251
- return PlanPriceCadenceFromJSONTyped4(json, false);
10292
+ return PlanPriceCadenceFromJSONTyped5(json, false);
10252
10293
  }
10253
- function PlanPriceCadenceFromJSONTyped4(json, ignoreDiscriminator) {
10294
+ function PlanPriceCadenceFromJSONTyped5(json, ignoreDiscriminator) {
10254
10295
  return json;
10255
10296
  }
10256
10297
 
@@ -10491,6 +10532,9 @@ var ComponentspublicApi = class extends BaseAPI2 {
10491
10532
  async getPublicPlansRaw(initOverrides) {
10492
10533
  const queryParameters = {};
10493
10534
  const headerParameters = {};
10535
+ if (this.configuration && this.configuration.apiKey) {
10536
+ headerParameters["X-Schematic-Context-Sig"] = await this.configuration.apiKey("X-Schematic-Context-Sig");
10537
+ }
10494
10538
  if (this.configuration && this.configuration.apiKey) {
10495
10539
  headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
10496
10540
  "X-Schematic-Api-Key"
@@ -13270,6 +13314,8 @@ var en = {
13270
13314
  "Error processing payment. Please try a different payment method.": "Error processing payment. Please try a different payment method.",
13271
13315
  "Error retrieving plan details. Please try again in a moment.": "Error retrieving plan details. Please try again in a moment.",
13272
13316
  "Error updating payment method. Please try again.": "Error updating payment method. Please try again.",
13317
+ "Estimated at current usage": "Estimated at your current usage",
13318
+ "Estimated at current usage with base price": "Estimated at your current usage. Base price {{amount}}/{{period}}",
13273
13319
  "Estimated bill": "Estimated bill",
13274
13320
  "Everything in": "Everything in {{plan}}, plus",
13275
13321
  "Expired": "Expired",
@@ -13515,10 +13561,338 @@ var en = {
13515
13561
  };
13516
13562
  var en_default = en;
13517
13563
 
13564
+ // src/localization/it.ts
13565
+ var it2 = {
13566
+ "A problem occurred while saving your payment method.": "Si \xE8 verificato un problema durante il salvataggio del metodo di pagamento.",
13567
+ "Access to plan will end.": "L'accesso a {{plan}} terminer\xE0 il {{date}}.",
13568
+ "Active": "Attivo",
13569
+ "Add": "Aggiungi",
13570
+ "Add new payment method": "Aggiungi un nuovo metodo di pagamento",
13571
+ "Add More": "Aggiungi altro",
13572
+ "Additional information": "Informazioni aggiuntive",
13573
+ "Add-ons": "Add-on",
13574
+ "Add-ons Quantity": "Quantit\xE0 add-on",
13575
+ "Additional": "Extra",
13576
+ "Adds X tokens when Y remaining in balance": "Aggiunge {{amount}} {{unit}} quando nel saldo ne restano {{threshold}}",
13577
+ "After the trial, cancel no default": "Al termine della prova perderai l'accesso al piano {{planName}} e il tuo abbonamento verr\xE0 annullato. Non ti verr\xE0 addebitato nulla, a meno che tu non sottoscriva un piano a pagamento durante la prova.",
13578
+ "After the trial, cancel": "Al termine della prova passerai al piano {{postTrialPlanName}} e il tuo abbonamento verr\xE0 annullato. Non ti verr\xE0 addebitato nulla, a meno che tu non sottoscriva un piano a pagamento durante la prova.",
13579
+ "After the trial, subscribe": "Al termine della prova l'abbonamento avr\xE0 inizio e ti verr\xE0 addebitato.",
13580
+ "Agreement": "Accordo",
13581
+ "Applied balance towards next invoice": "Saldo applicato alla prossima fattura",
13582
+ "Discount for months_one": "{{discount}} per il prossimo mese",
13583
+ "Discount for months_many": "{{discount}} per i prossimi {{count, number}} mesi",
13584
+ "Discount for months_other": "{{discount}} per i prossimi {{count, number}} mesi",
13585
+ "Auto Top-up": "Ricarica automatica",
13586
+ "Auto top-up enabled": "Ricarica automatica attiva",
13587
+ "Auto top-up disabled": "Ricarica automatica disattivata",
13588
+ "Auto top-up disabled for token": "Ricarica automatica disattivata per {{unit}}",
13589
+ "Automatically purchase more credits when your balance is low": "Acquista automaticamente altri {{units}} quando il saldo \xE8 basso",
13590
+ "at": "a",
13591
+ "When balance reaches X remaining, an auto top-up of Y credits will be processed.": "Quando il saldo crediti scende a {{threshold}}, verr\xE0 effettuata una ricarica automatica di {{amount}} crediti.",
13592
+ "An invoice is created when charges reach $X; the rest is billed monthly.": "Viene emessa una fattura quando gli addebiti raggiungono {{amount}}; il resto viene fatturato mensilmente.",
13593
+ "An unknown error occurred.": "Si \xE8 verificato un errore sconosciuto.",
13594
+ "Billed": "Fatturazione {{period}}",
13595
+ "Bundle selected": "Pacchetto selezionato",
13596
+ "Buy credits": "Acquista crediti",
13597
+ "Cancel": "Annulla",
13598
+ "Country": "Paese",
13599
+ "Cancel subscription": "Annulla abbonamento",
13600
+ "Cannot change to this plan.": "L'utilizzo di {{reason, list(type: 'conjunction')}} supera il limite.",
13601
+ "Cannot downgrade entitlement": "Non puoi scendere a una quantit\xE0 inferiore all'utilizzo attuale.",
13602
+ "Card ending in": "\u{1F4B3} Carta che termina con {{value}}",
13603
+ "Change add-on": "Cambia add-on",
13604
+ "Change payment method": "Cambia metodo di pagamento",
13605
+ "Change plan": "Cambia piano",
13606
+ "Checkout": "Pagamento",
13607
+ "Choose add-on": "Scegli l'add-on",
13608
+ "Choose bundle": "Scegli il pacchetto",
13609
+ "Choose plan": "Scegli il piano",
13610
+ "Choose your base plan": "Scegli il tuo piano base",
13611
+ "Credit Auto Top-up": "Ricarica automatica di {{unit}}",
13612
+ "Credit bundles": "Pacchetti di crediti",
13613
+ "Credits": "Crediti",
13614
+ "Credits in plan": "Crediti nel piano",
13615
+ "Credits to be applied to future invoices": "Crediti da applicare alle fatture future",
13616
+ "Current plan": "Piano attuale",
13617
+ "Current usage exceeds the limit of this plan.": "L'utilizzo attuale supera il limite di questo piano.",
13618
+ "Currently using": "Attualmente in uso: {{quantity}} {{unit}}",
13619
+ "Custom plan awaiting payment": "Paga per attivare {{plan}}",
13620
+ "Custom plan awaiting payment description": "Paga la fattura per attivare il tuo piano personalizzato. Scadenza: {{date}}.",
13621
+ "Custom plan payment due": "Paga entro il {{date}} per mantenere {{plan}}",
13622
+ "Custom plan payment due description": "L'accesso a {{plan}} terminer\xE0 il {{date}} se la fattura non viene pagata.",
13623
+ "Custom price": "Prezzo personalizzato",
13624
+ "Discount": "Sconto",
13625
+ "Downgrade to plan scheduled": "Passaggio a {{plan}} programmato",
13626
+ "Due today": "Da pagare oggi",
13627
+ "Edit payment details": "Modifica i dati di pagamento",
13628
+ "Edit": "Modifica",
13629
+ "Ends on": "Termina il {{date}}",
13630
+ "Enter discount code": "Inserisci il codice sconto",
13631
+ "Error initializing payment method change. Please try again.": "Errore durante l'avvio del cambio del metodo di pagamento. Riprova.",
13632
+ "Error processing payment. Please try a different payment method.": "Errore durante l'elaborazione del pagamento. Prova con un altro metodo di pagamento.",
13633
+ "Error retrieving plan details. Please try again in a moment.": "Errore durante il recupero dei dettagli del piano. Riprova tra qualche istante.",
13634
+ "Error updating payment method. Please try again.": "Errore durante l'aggiornamento del metodo di pagamento. Riprova.",
13635
+ "Estimated bill": "Importo stimato",
13636
+ "Everything in": "Tutto quanto incluso in {{plan}}, pi\xF9",
13637
+ "Expired": "Scaduta",
13638
+ "Expires in X months": "Mesi alla scadenza: {{months}}",
13639
+ "Expires": "Scade il {{date}}",
13640
+ "Free": "Gratis",
13641
+ "Hide all": "Nascondi tutto",
13642
+ "Hide balance details": "Nascondi i dettagli del saldo",
13643
+ "Hide details": "Nascondi dettagli",
13644
+ "ID type": "Tipo di identificativo",
13645
+ "Ineligible for this discount.": "Non hai diritto a questo sconto.",
13646
+ "Invalid access token; your temporary access token will start with `token_`.": "Token di accesso non valido: il token di accesso temporaneo inizia con `token_`.",
13647
+ "Invalid discount code.": "Codice sconto non valido.",
13648
+ "Invoice credit tooltip": "Credito: questo importo \xE8 stato restituito al tuo account, di solito a seguito di un cambio di piano o di un calcolo pro rata",
13649
+ "Invoice charge tooltip": "Addebito: questo importo ti \xE8 stato fatturato",
13650
+ "Invoices": "Fatture",
13651
+ "Limit of": "Limite di {{amount}}",
13652
+ "Loading": "Caricamento",
13653
+ "Manage plan": "Gestisci il piano",
13654
+ "Monthly total": "Totale mensile",
13655
+ "Quarterly total": "Totale trimestrale",
13656
+ "Next": "Avanti",
13657
+ "No invoices created yet": "Non \xE8 ancora stata emessa nessuna fattura",
13658
+ "No limit": "Nessun limite",
13659
+ "No payment method added yet": "Nessun metodo di pagamento aggiunto",
13660
+ "Not provided": "Non fornito",
13661
+ "No upcoming invoice": "Nessuna fattura in arrivo",
13662
+ "Not ready to cancel?": "Preferisci non disdire?",
13663
+ "On demand": "On demand",
13664
+ "One time": "Una tantum",
13665
+ "One-time charges": "Addebiti una tantum",
13666
+ "Optionally add features to your subscription": "Aggiungi funzionalit\xE0 al tuo abbonamento, se vuoi",
13667
+ "Other existing payment method": "Altro metodo di pagamento esistente",
13668
+ "Over plan limit": "Oltre il limite del piano",
13669
+ "Pay-in-advance features require a quantity.": "Le funzionalit\xE0 a pagamento anticipato richiedono una quantit\xE0.",
13670
+ "Error saving custom field values. Please try again.": "Errore durante il salvataggio dei campi personalizzati. Riprova.",
13671
+ "Pay now": "Paga ora",
13672
+ "Payment Details": "Dati di pagamento",
13673
+ "Payment due": "Pagamento entro il {{date}}",
13674
+ "Plan selected": "Piano selezionato",
13675
+ "Please accept the agreement to continue.": "Accetta l'accordo per continuare.",
13676
+ "Plan": "Piano",
13677
+ "Plans": "Piani",
13678
+ "Please provide an access token.": "Fornisci un token di accesso.",
13679
+ "Powered by": "Con tecnologia",
13680
+ "Price by unit based on final tier reached.": "Prezzo unitario in base all'ultima fascia raggiunta.",
13681
+ "Promotional credits": "Crediti promozionali",
13682
+ "Proration": "Pro rata",
13683
+ "Quantity": "Quantit\xE0",
13684
+ "Quantity to pay for in advance": "Quantit\xE0 da pagare in anticipo",
13685
+ "Remaining balance after next invoice": "Saldo residuo dopo la prossima fattura",
13686
+ "Remove": "Rimuovi",
13687
+ "Remove add-on": "Rimuovi add-on",
13688
+ "Resets": "Si azzera il {{date}}",
13689
+ "Save changes": "Salva modifiche",
13690
+ "Save payment method": "Salva metodo di pagamento",
13691
+ "Save with yearly billing": "Risparmia fino al {{percent}}% con la fatturazione annuale",
13692
+ "Saving with yearly billing": "Stai risparmiando il {{percent}}% con la fatturazione annuale",
13693
+ "Save with quarterly billing": "Risparmia fino al {{percent}}% con la fatturazione trimestrale",
13694
+ "Saving with quarterly billing": "Stai risparmiando il {{percent}}% con la fatturazione trimestrale",
13695
+ "See all": "Vedi tutto",
13696
+ "See all X": "Vedi tutto ({{total}})",
13697
+ "Select ID type": "Seleziona il tipo di identificativo",
13698
+ "Select country": "Seleziona il paese",
13699
+ "See balance details": "Vedi i dettagli del saldo",
13700
+ "See less": "Mostra meno",
13701
+ "See more": "Mostra altro",
13702
+ "Select add-ons": "Seleziona gli add-on",
13703
+ "Select existing payment method": "Seleziona un metodo di pagamento esistente",
13704
+ "Select payment method": "Seleziona il metodo di pagamento",
13705
+ "Select plan": "Seleziona il piano",
13706
+ "Select quantity": "Seleziona la quantit\xE0",
13707
+ "Select quantities for add-ons": "Seleziona le quantit\xE0 degli add-on",
13708
+ "Selected": "Selezionato",
13709
+ "Selected plan or associated price is missing.": "Manca il piano selezionato o il prezzo associato.",
13710
+ "Downgrade not permitted.": "Downgrade non consentito.",
13711
+ "Downgrade pending.": "Downgrade in attesa.",
13712
+ "Session expired. Please refresh and try again.": "Sessione scaduta. Aggiorna la pagina e riprova.",
13713
+ "Show details": "Mostra dettagli",
13714
+ "Start trial": "Inizia la prova",
13715
+ "Start X day trial": "Inizia la prova di {{days}} giorni",
13716
+ "Subscribe and close": "Abbonati e chiudi",
13717
+ "Subscription canceled": "Abbonamento annullato",
13718
+ "Subscription": "Abbonamento",
13719
+ "Talk to support": "Contatta l'assistenza",
13720
+ "Tax (description):": "Imposte ({{description}}):",
13721
+ "Tax ID": "Identificativo fiscale",
13722
+ "Tax ID format hint": "Non sembra un numero {{label}} nel formato consueto (es. {{example}}): controllalo prima di continuare.",
13723
+ "Tax ID save error": "Non \xE8 stato possibile salvare il tuo identificativo fiscale. Controllalo e riprova.",
13724
+ "There was a problem retrieving your upcoming invoice.": "Si \xE8 verificato un problema durante il recupero della prossima fattura.",
13725
+ "There was a problem retrieving your invoices.": "Si \xE8 verificato un problema durante il recupero delle fatture.",
13726
+ "Tier-based": "A fasce",
13727
+ "Tiers apply progressively as quantity increases.": "Le fasce si applicano progressivamente all'aumentare della quantit\xE0.",
13728
+ "Top up balance with:": "Ricarica il saldo con:",
13729
+ "Top-ups": "Ricariche",
13730
+ "Total": "Totale",
13731
+ "Trial ends in": "La prova termina tra {{amount}} {{units}}",
13732
+ "Trial in progress": "Prova in corso",
13733
+ "Trial selected": "Prova selezionata",
13734
+ "Trial": "Prova",
13735
+ "Try again": "Riprova",
13736
+ "Unlimited": "{{item}} senza limiti",
13737
+ "Unlimited in this tier": "{{feature}} senza limiti in questa fascia",
13738
+ "Unable to load payment form.": "Impossibile caricare il modulo di pagamento. Le impostazioni di sicurezza o privacy del browser potrebbero bloccarlo. Prova con un altro browser o modifica le impostazioni della privacy.",
13739
+ "Unsubscribe failed": "Disdetta non riuscita",
13740
+ "Unsubscribe": "Disdici",
13741
+ "Unused time": "Tempo non utilizzato",
13742
+ "Up to X units": "Fino a {{amount}} {{units}}",
13743
+ "Up to X units per period": "Fino a {{amount}} {{units}} per {{period}}",
13744
+ "Up to a limit of": "Fino a un limite di {{amount}} {{units}}",
13745
+ "Up to X units at $Y/unit": "Fino a {{X}} {{units}} a {{Y}} per {{unit}}",
13746
+ "Up to X units at $Y/unit + $Z/period": "Fino a {{X}} {{units}} a {{Y}} per {{unit}} pi\xF9 {{Z}} per {{period}}",
13747
+ "Up to X units for $Y/period": "Fino a {{X}} {{units}} a {{Y}} per {{period}}",
13748
+ "Up to X units for free": "Fino a {{X}} {{units}} gratis",
13749
+ "Up to X units in this tier": "Fino a {{amount}} {{feature}} in questa fascia",
13750
+ "Usage-based": "A consumo",
13751
+ "Use existing payment method": "Usa un metodo di pagamento esistente",
13752
+ "When balance reaches:": "Quando il saldo scende a:",
13753
+ "X additional": "{{amount}} aggiuntivi",
13754
+ "X included": "{{amount}} inclusi",
13755
+ "X item auto-topup": "Ricarica automatica di {{amount}} {{item}} acquistata il {{createdAt}}",
13756
+ "X item bundle": "Pacchetto di {{amount}} {{item}} acquistato il {{createdAt}}",
13757
+ "X item grant": "Assegnazione promozionale di {{amount}} {{item}} del {{createdAt}}",
13758
+ "X items included in plan": "{{amount}} {{item}} nel piano",
13759
+ "X off": "{{amount}} di sconto",
13760
+ "X% off": "{{percent}}% di sconto",
13761
+ "X units": "{{amount}} {{units}}",
13762
+ "X units remaining": "Residuo: {{amount}} {{units}}",
13763
+ "X units used": "Utilizzo: {{amount}} {{units}}",
13764
+ "X units per use": "{{amount}} {{units}} per utilizzo",
13765
+ "X credits per license": "{{amount}} {{creditName}} per {{licenseName}}",
13766
+ "X credits per license per period": "{{amount}} {{creditName}} per {{licenseName}} per {{period}}",
13767
+ "Plus X credits per period": "+ {{amount}} {{creditName}} per {{period}}",
13768
+ "Plus X credits per period for your company": "+ {{amount}} {{creditName}} per {{period}} per la tua azienda",
13769
+ "Includes X credits per license": "Include {{amount}} {{creditName}} per {{licenseName}}",
13770
+ "X licenses times Y credits": "{{quantity}} {{licenseName}} \xD7 {{perUnit}} = {{total}} {{creditName}}/{{period}}",
13771
+ "X licenses times Y credits plus company": "{{quantity}} {{licenseName}} \xD7 {{perUnit}} + {{fixed}} = {{total}} {{creditName}}/{{period}}",
13772
+ "Credits included": "Crediti inclusi",
13773
+ "Your plan includes credits": "Il tuo piano include {{total}} {{creditName}}/{{period}}{{composition}}.",
13774
+ "credit composition per license": "{{quantity}} {{licenseName}} \xD7 {{perUnit}}",
13775
+ "credit composition company grant": "{{amount}} assegnati all'azienda",
13776
+ "Renews on the day": "Si rinnova il giorno {{day}}.",
13777
+ "Adding licenses grants more credits today": "Aggiungendo {{added}} {{licenseName}} ottieni oggi {{credits}} {{creditName}} in pi\xF9, calcolati pro rata.",
13778
+ "Your full credits renew on the day": "L'intera assegnazione di {{total}} {{creditName}} si rinnova con cadenza {{cadence}} il giorno {{day}}.",
13779
+ "Your credit grant increases on the day": "La tua assegnazione di crediti sale a {{total}} il giorno {{day}}.",
13780
+ "Includes X credits per period": "Include {{total}} {{creditName}}/{{period}}",
13781
+ "Plus X credits today": "+{{amount}} oggi",
13782
+ "Plus X credits on the day": "+{{amount}} il giorno {{day}}",
13783
+ "X time left in trial": "Ancora {{amount}} {{units}} di prova",
13784
+ "Yearly total": "Totale annuale",
13785
+ "You will be billed": "Ti verr\xE0 addebitato {{price}} {{usage}}per questo abbonamento ogni {{period}} {{schedule}}a meno che tu non lo disdica.",
13786
+ "You will be billed with discount window": "Ti verr\xE0 addebitato {{price}} {{usage}}per questo abbonamento ogni {{period}} {{schedule}}{{window}}, poi {{fullPrice}} ogni {{period}}, a meno che tu non lo disdica.",
13787
+ "You will be billed next bill discount": "Ti verr\xE0 addebitato {{price}} {{usage}}per questo abbonamento nella prossima fattura, poi {{fullPrice}} ogni {{period}} {{schedule}}a meno che tu non lo disdica.",
13788
+ "plus usage based costs": "pi\xF9 i costi a consumo",
13789
+ "on the day": "il giorno {{day}}",
13790
+ "of month": "{{month}}",
13791
+ "for the next months_one": "per il prossimo mese",
13792
+ "for the next months_many": "per i prossimi {{count, number}} mesi",
13793
+ "for the next months_other": "per i prossimi {{count, number}} mesi",
13794
+ "You will be downgraded at the end of your billing period.": "Passerai al piano {{plan}} alla fine del periodo di fatturazione, il {{date}}.",
13795
+ "You will retain access to your plan until the end of the billing period, on": "Manterrai l'accesso al tuo piano fino alla fine del periodo di fatturazione, il",
13796
+ "$X per unit": "{{cost}} per {{unit}}",
13797
+ "$X per Y units": "{{cost}} ogni {{size}} {{units}}",
13798
+ "$X/unit/period": "{{cost}}/{{unit}}/{{period}}",
13799
+ "$X/Y units/period": "{{cost}}/{{size}} {{units}}/{{period}}",
13800
+ "day": "giorno",
13801
+ "day_one": "giorno",
13802
+ "day_many": "giorni",
13803
+ "day_other": "giorni",
13804
+ "week": "settimana",
13805
+ "month": "mese",
13806
+ "quarter": "trimestre",
13807
+ "year": "anno",
13808
+ "mo": "mese",
13809
+ "qtr": "trim.",
13810
+ "yr": "anno",
13811
+ "one time": "una tantum",
13812
+ "billing period": "periodo di fatturazione",
13813
+ "billing period_one": "periodo di fatturazione",
13814
+ "billing period_many": "periodi di fatturazione",
13815
+ "billing period_other": "periodi di fatturazione",
13816
+ "expires after purchase": "scade {{amount}} {{unit}} dopo l'acquisto",
13817
+ "expires at the end of the billing period": "scade alla fine del periodo di fatturazione",
13818
+ "expires at the end of the next billing period": "scade alla fine del prossimo periodo di fatturazione",
13819
+ "expires at the end of the trial": "scade alla fine della prova",
13820
+ "Ordinal_ordinal_many": "{{count, number}}",
13821
+ "Ordinal_ordinal_other": "{{count, number}}",
13822
+ "per": "per",
13823
+ "then": "poi",
13824
+ "use": "utilizzo",
13825
+ "used": "utilizzati",
13826
+ "license": "licenza",
13827
+ "month, billed yearly": "mese, fatturazione annuale",
13828
+ "month, billed quarterly": "mese, fatturazione trimestrale",
13829
+ "purchased": "acquistato il {{date}}",
13830
+ "hour_one": "ora",
13831
+ "hour_many": "ore",
13832
+ "hour_other": "ore",
13833
+ "minute_one": "minuto",
13834
+ "minute_many": "minuti",
13835
+ "minute_other": "minuti",
13836
+ "second_one": "secondo",
13837
+ "second_many": "secondi",
13838
+ "second_other": "secondi",
13839
+ "daily": "giornaliera",
13840
+ "weekly": "settimanale",
13841
+ "monthly": "mensile",
13842
+ "quarterly": "trimestrale",
13843
+ "yearly": "annuale",
13844
+ "Usage by user": "Utilizzo per utente",
13845
+ "X used by your team this period": "{{amount}} utilizzati dal tuo team in questo periodo",
13846
+ "Show all X users_one": "Mostra {{count, number}} utente",
13847
+ "Show all X users_many": "Mostra tutti i {{count, number}} utenti",
13848
+ "Show all X users_other": "Mostra tutti i {{count, number}} utenti",
13849
+ "Show top X users_one": "Mostra l'utente principale",
13850
+ "Show top X users_many": "Mostra i primi {{count, number}} utenti",
13851
+ "Show top X users_other": "Mostra i primi {{count, number}} utenti",
13852
+ "Show all": "Mostra tutto",
13853
+ "Show fewer": "Mostra meno",
13854
+ "Unattributed": "Non attribuito",
13855
+ "There was a problem retrieving usage by user.": "Si \xE8 verificato un problema durante il recupero dell'utilizzo per utente.",
13856
+ "plus X more_one": "e {{count, number}} altro",
13857
+ "plus X more_many": "e altri {{count, number}}",
13858
+ "plus X more_other": "e altri {{count, number}}",
13859
+ "usage.limited": "{{amount}} su {{allocation}} utilizzati",
13860
+ "usage.unlimited": "{{amount}} utilizzati",
13861
+ "Apply discount": "Applica sconto",
13862
+ "Buy More": "Acquista altro",
13863
+ "Choose different payment method": "Scegli un altro metodo di pagamento",
13864
+ "Downgrade pending. Cancel the scheduled downgrade before making another change.": "Downgrade in attesa. Annulla il downgrade programmato prima di apportare altre modifiche.",
13865
+ "Error deleting payment method. Please try again.": "Errore durante l'eliminazione del metodo di pagamento. Riprova.",
13866
+ "for cost": "per il costo",
13867
+ "Invalid currency filter: {{entries}}": "Filtro valuta non valido: {{entries}}",
13868
+ "No supported currencies are available.": "Non \xE8 disponibile nessuna valuta supportata.",
13869
+ "No {{currency}} price for the {{period}} billing period.": "Nessun prezzo in {{currency}} per il periodo di fatturazione {{period}}.",
13870
+ "Optionally add credit bundles to your subscription": "Aggiungi pacchetti di crediti al tuo abbonamento, se vuoi",
13871
+ "Quantity is required.": "La quantit\xE0 \xE8 obbligatoria.",
13872
+ "Schedule downgrade": "Programma il downgrade",
13873
+ "Select credits": "Seleziona i crediti",
13874
+ "Set default": "Imposta come predefinito",
13875
+ "This plan is not available in the selected currency and period.": "Questo piano non \xE8 disponibile nella valuta e nel periodo selezionati.",
13876
+ "Tier": "Fascia",
13877
+ "your plan": "il tuo piano",
13878
+ "Included features": "Funzionalit\xE0 incluse",
13879
+ "Next bill due": "Prossima fattura",
13880
+ "Error": "Errore",
13881
+ "Portal not found": "Portale non trovato",
13882
+ "Please try again later.": "Riprova pi\xF9 tardi.",
13883
+ "Email": "Email",
13884
+ "Enter email address": "Inserisci l'indirizzo email",
13885
+ "Limit": "Limite",
13886
+ "Tiered pricing": "Prezzi a fasce",
13887
+ "Billing threshold": "Soglia di fatturazione"
13888
+ };
13889
+ var it_default = it2;
13890
+
13518
13891
  // src/localization/i18n.ts
13519
13892
  var SCHEMATIC_NAMESPACE = "schematic";
13520
13893
  var DEFAULT_LANGUAGE = "en";
13521
13894
  var schematicTranslationsEn = en_default;
13895
+ var schematicTranslationsIt = it_default;
13522
13896
  var LOOKUP_OPTIONS = {
13523
13897
  ns: SCHEMATIC_NAMESPACE,
13524
13898
  keySeparator: false,
@@ -13714,6 +14088,30 @@ function getPlanPrice(plan, period = "month", options = { useSelectedPeriod: tru
13714
14088
  return { ...billingPrice, price: getPriceValue(billingPrice) };
13715
14089
  }
13716
14090
  }
14091
+ var ESTIMATE_PERIODS = {
14092
+ month: "monthly",
14093
+ quarter: "quarterly",
14094
+ year: "yearly"
14095
+ };
14096
+ function getPlanEstimatedTotal(plan, period = "month", currency) {
14097
+ const cadence = ESTIMATE_PERIODS[period];
14098
+ if (!cadence || !Array.isArray(plan.estimatedTotals)) {
14099
+ return void 0;
14100
+ }
14101
+ return plan.estimatedTotals.find(
14102
+ (estimate) => estimate.period === cadence && (!currency || estimate.currency.toLowerCase() === currency.toLowerCase())
14103
+ );
14104
+ }
14105
+ function getPlanEstimatedPrice(plan, period, planPrice, currency) {
14106
+ if (plan.custom) {
14107
+ return void 0;
14108
+ }
14109
+ const estimate = getPlanEstimatedTotal(plan, period, currency);
14110
+ if (!estimate || estimate.amount === (planPrice ?? 0)) {
14111
+ return void 0;
14112
+ }
14113
+ return estimate.amount;
14114
+ }
13717
14115
  function planOffersCurrencyForPeriod(plan, period = "month", currency) {
13718
14116
  if (!currency) return true;
13719
14117
  const price = getPlanPrice(
@@ -15571,7 +15969,7 @@ var reducer = (state, action) => {
15571
15969
  // src/context/EmbedProvider.tsx
15572
15970
  import { jsx as jsx3, jsxs } from "react/jsx-runtime";
15573
15971
  var getCustomHeaders = (sessionId) => ({
15574
- "X-Schematic-Components-Version": "2.30.0",
15972
+ "X-Schematic-Components-Version": "2.31.0",
15575
15973
  "X-Schematic-Session-ID": sessionId
15576
15974
  });
15577
15975
  var normalizeCurrencyFilter = (filter2) => {
@@ -18414,7 +18812,8 @@ var Plan = ({
18414
18812
  const hasUsageBasedEntitlements = (plan.entitlements ?? []).some(
18415
18813
  (entitlement) => !!entitlement.priceBehavior
18416
18814
  );
18417
- const isFreePlan = planPrice === 0;
18815
+ const headlinePrice = getPlanEstimatedPrice(plan, planPeriod, planPrice, planCurrency) ?? planPrice;
18816
+ const isFreePlan = headlinePrice === 0;
18418
18817
  const isUsageBasedPlan = isFreePlan && hasUsageBasedEntitlements;
18419
18818
  const headerPriceFontStyle = settings.theme.typography.heading2;
18420
18819
  const isExpanded = entitlementVisibility[plan.id] ?? false;
@@ -18459,15 +18858,15 @@ var Plan = ({
18459
18858
  $size: headerPriceFontStyle.fontSize,
18460
18859
  $weight: headerPriceFontStyle.fontWeight,
18461
18860
  $color: headerPriceFontStyle.color,
18462
- children: plan.custom ? plan.customPlanConfig?.priceText ? plan.customPlanConfig.priceText : t3("Custom price") : isUsageBasedPlan ? t3("Usage-based") : isFreePlan && showZeroPriceAsFree ? t3("Free") : showAsMonthlyPrices && planPeriod === BillingProductPriceInterval.Year ? formatCurrency((planPrice ?? 0) / 12, {
18861
+ children: plan.custom ? plan.customPlanConfig?.priceText ? plan.customPlanConfig.priceText : t3("Custom price") : isUsageBasedPlan ? t3("Usage-based") : isFreePlan && showZeroPriceAsFree ? t3("Free") : showAsMonthlyPrices && planPeriod === BillingProductPriceInterval.Year ? formatCurrency((headlinePrice ?? 0) / 12, {
18463
18862
  locale,
18464
18863
  currency: planCurrency,
18465
18864
  testSignificantDigits: false
18466
- }) : showAsMonthlyPrices && planPeriod === "quarter" ? formatCurrency((planPrice ?? 0) / 3, {
18865
+ }) : showAsMonthlyPrices && planPeriod === "quarter" ? formatCurrency((headlinePrice ?? 0) / 3, {
18467
18866
  locale,
18468
18867
  currency: planCurrency,
18469
18868
  testSignificantDigits: false
18470
- }) : formatCurrency(planPrice ?? 0, {
18869
+ }) : formatCurrency(headlinePrice ?? 0, {
18471
18870
  locale,
18472
18871
  currency: planCurrency
18473
18872
  })
@@ -18485,6 +18884,15 @@ var Plan = ({
18485
18884
  }
18486
18885
  )
18487
18886
  ] }),
18887
+ /* @__PURE__ */ jsx19(
18888
+ PlanEstimatedTotal,
18889
+ {
18890
+ plan,
18891
+ period: planPeriod,
18892
+ planPrice,
18893
+ currency: planCurrency
18894
+ }
18895
+ ),
18488
18896
  showCredits && credits.length > 0 && /* @__PURE__ */ jsx19(
18489
18897
  Flex,
18490
18898
  {
@@ -22147,12 +22555,46 @@ var PlanCreditText = ({
22147
22555
  ] });
22148
22556
  };
22149
22557
 
22558
+ // src/components/shared/plan-estimated-total/PlanEstimatedTotal.tsx
22559
+ import { jsx as jsx39 } from "react/jsx-runtime";
22560
+ var PlanEstimatedTotal = ({
22561
+ plan,
22562
+ period,
22563
+ planPrice,
22564
+ currency
22565
+ }) => {
22566
+ const { t: t3, locale } = useTranslation();
22567
+ const { data, settings } = useEmbed();
22568
+ if (getPlanEstimatedPrice(plan, period, planPrice, currency) === void 0) {
22569
+ return null;
22570
+ }
22571
+ const showAsMonthlyPrices = data?.displaySettings?.showAsMonthlyPrices ?? false;
22572
+ const divisor = !showAsMonthlyPrices ? 1 : period === BillingProductPriceInterval.Year ? 12 : period === "quarter" ? 3 : 1;
22573
+ return /* @__PURE__ */ jsx39(Box, { children: /* @__PURE__ */ jsx39(
22574
+ Text,
22575
+ {
22576
+ "data-testid": "sch-plan-estimated-total",
22577
+ $size: 0.875 * settings.theme.typography.text.fontSize,
22578
+ children: planPrice ? t3("Estimated at current usage with base price", {
22579
+ amount: formatCurrency(planPrice / divisor, {
22580
+ locale,
22581
+ currency,
22582
+ testSignificantDigits: divisor === 1
22583
+ }),
22584
+ period: t3(
22585
+ divisor === 1 ? period : "month"
22586
+ )
22587
+ }) : t3("Estimated at current usage")
22588
+ }
22589
+ ) });
22590
+ };
22591
+
22150
22592
  // src/components/shared/pricing-tiers-tooltip/PricingTiersTooltip.tsx
22151
22593
  import { useMemo as useMemo21 } from "react";
22152
22594
 
22153
22595
  // src/components/shared/pricing-tiers-tooltip/PriceText.tsx
22154
22596
  import { useMemo as useMemo20 } from "react";
22155
- import { Fragment as Fragment12, jsx as jsx39, jsxs as jsxs27 } from "react/jsx-runtime";
22597
+ import { Fragment as Fragment12, jsx as jsx40, jsxs as jsxs27 } from "react/jsx-runtime";
22156
22598
  var PriceText = ({
22157
22599
  feature,
22158
22600
  period,
@@ -22195,7 +22637,7 @@ var PriceText = ({
22195
22637
  ] })
22196
22638
  ] });
22197
22639
  }, [t3, feature, period, currency, flatAmount, perUnitPrice, locale]);
22198
- return /* @__PURE__ */ jsx39(
22640
+ return /* @__PURE__ */ jsx40(
22199
22641
  Text,
22200
22642
  {
22201
22643
  $size: 0.875 * settings.theme.typography.text.fontSize,
@@ -22206,7 +22648,7 @@ var PriceText = ({
22206
22648
  };
22207
22649
 
22208
22650
  // src/components/shared/pricing-tiers-tooltip/PricingTiersTooltip.tsx
22209
- import { Fragment as Fragment13, jsx as jsx40, jsxs as jsxs28 } from "react/jsx-runtime";
22651
+ import { Fragment as Fragment13, jsx as jsx41, jsxs as jsxs28 } from "react/jsx-runtime";
22210
22652
  var PricingTiersTooltip = ({
22211
22653
  portal,
22212
22654
  feature,
@@ -22239,11 +22681,11 @@ var PricingTiersTooltip = ({
22239
22681
  if (!priceTiers.length) {
22240
22682
  return null;
22241
22683
  }
22242
- return /* @__PURE__ */ jsx40(
22684
+ return /* @__PURE__ */ jsx41(
22243
22685
  Tooltip,
22244
22686
  {
22245
22687
  portal,
22246
- trigger: /* @__PURE__ */ jsx40(
22688
+ trigger: /* @__PURE__ */ jsx41(
22247
22689
  Icon3,
22248
22690
  {
22249
22691
  title: t3("Tiered pricing"),
@@ -22253,7 +22695,7 @@ var PricingTiersTooltip = ({
22253
22695
  }
22254
22696
  ),
22255
22697
  content: /* @__PURE__ */ jsxs28(Flex, { $flexDirection: "column", $gap: "1rem", children: [
22256
- /* @__PURE__ */ jsx40("dl", { children: tiers.map((tier, index) => {
22698
+ /* @__PURE__ */ jsx41("dl", { children: tiers.map((tier, index) => {
22257
22699
  const flatAmount = typeof tier.flatAmount === "number" ? tier.flatAmount : void 0;
22258
22700
  const perUnitPrice = typeof tier.perUnitPriceDecimal === "string" ? Number(tier.perUnitPriceDecimal) : typeof tier.perUnitPrice === "number" ? tier.perUnitPrice : void 0;
22259
22701
  return /* @__PURE__ */ jsxs28(
@@ -22264,17 +22706,17 @@ var PricingTiersTooltip = ({
22264
22706
  $gap: "1rem",
22265
22707
  $padding: "0.5rem",
22266
22708
  children: [
22267
- /* @__PURE__ */ jsx40("dt", { children: /* @__PURE__ */ jsxs28(
22709
+ /* @__PURE__ */ jsx41("dt", { children: /* @__PURE__ */ jsxs28(
22268
22710
  Text,
22269
22711
  {
22270
22712
  $size: 0.875 * settings.theme.typography.text.fontSize,
22271
22713
  children: [
22272
22714
  tier.from,
22273
- tier.from !== tier.to && /* @__PURE__ */ jsx40(Fragment13, { children: tier.to === Infinity ? "+" : `\u2013${tier.to}` })
22715
+ tier.from !== tier.to && /* @__PURE__ */ jsx41(Fragment13, { children: tier.to === Infinity ? "+" : `\u2013${tier.to}` })
22274
22716
  ]
22275
22717
  }
22276
22718
  ) }),
22277
- /* @__PURE__ */ jsx40("dd", { children: /* @__PURE__ */ jsx40(
22719
+ /* @__PURE__ */ jsx41("dd", { children: /* @__PURE__ */ jsx41(
22278
22720
  PriceText,
22279
22721
  {
22280
22722
  period,
@@ -22290,7 +22732,7 @@ var PricingTiersTooltip = ({
22290
22732
  );
22291
22733
  }) }),
22292
22734
  tiersMode && /* @__PURE__ */ jsxs28(Fragment13, { children: [
22293
- /* @__PURE__ */ jsx40(
22735
+ /* @__PURE__ */ jsx41(
22294
22736
  "hr",
22295
22737
  {
22296
22738
  style: {
@@ -22300,7 +22742,7 @@ var PricingTiersTooltip = ({
22300
22742
  }
22301
22743
  }
22302
22744
  ),
22303
- /* @__PURE__ */ jsx40(Box, { children: /* @__PURE__ */ jsxs28(Text, { $size: 0.875 * settings.theme.typography.text.fontSize, children: [
22745
+ /* @__PURE__ */ jsx41(Box, { children: /* @__PURE__ */ jsxs28(Text, { $size: 0.875 * settings.theme.typography.text.fontSize, children: [
22304
22746
  "\u2139\uFE0F",
22305
22747
  " ",
22306
22748
  tiersMode === BillingTiersMode.Volume ? t3("Price by unit based on final tier reached.") : t3("Tiers apply progressively as quantity increases.")
@@ -22324,7 +22766,7 @@ import {
22324
22766
  import { createPortal as createPortal2 } from "react-dom";
22325
22767
 
22326
22768
  // src/components/shared/subscription-sidebar/CheckoutStageButton.tsx
22327
- import { jsx as jsx41, jsxs as jsxs29 } from "react/jsx-runtime";
22769
+ import { jsx as jsx42, jsxs as jsxs29 } from "react/jsx-runtime";
22328
22770
  var NoPaymentRequired = ({
22329
22771
  isDisabled,
22330
22772
  isLoading,
@@ -22334,7 +22776,7 @@ var NoPaymentRequired = ({
22334
22776
  onClick
22335
22777
  }) => {
22336
22778
  const { t: t3 } = useTranslation();
22337
- return /* @__PURE__ */ jsx41(
22779
+ return /* @__PURE__ */ jsx42(
22338
22780
  Button,
22339
22781
  {
22340
22782
  type: "button",
@@ -22400,7 +22842,7 @@ var CheckoutStageButton = ({
22400
22842
  if (checkoutStage === "plan") {
22401
22843
  const nextStage = getNextStageId("plan");
22402
22844
  if (isSelectedPlanTrialable && trialPaymentMethodRequired && shouldTrial) {
22403
- return /* @__PURE__ */ jsx41(
22845
+ return /* @__PURE__ */ jsx42(
22404
22846
  Button,
22405
22847
  {
22406
22848
  type: "button",
@@ -22421,7 +22863,7 @@ var CheckoutStageButton = ({
22421
22863
  t3("Next"),
22422
22864
  ": ",
22423
22865
  t3("Checkout"),
22424
- /* @__PURE__ */ jsx41(Icon3, { name: "arrow-right" })
22866
+ /* @__PURE__ */ jsx42(Icon3, { name: "arrow-right" })
22425
22867
  ]
22426
22868
  }
22427
22869
  )
@@ -22429,7 +22871,7 @@ var CheckoutStageButton = ({
22429
22871
  );
22430
22872
  }
22431
22873
  if (!isPaymentMethodRequired && !nextStage) {
22432
- return /* @__PURE__ */ jsx41(
22874
+ return /* @__PURE__ */ jsx42(
22433
22875
  NoPaymentRequired,
22434
22876
  {
22435
22877
  isDisabled,
@@ -22440,7 +22882,7 @@ var CheckoutStageButton = ({
22440
22882
  }
22441
22883
  );
22442
22884
  }
22443
- return /* @__PURE__ */ jsx41(
22885
+ return /* @__PURE__ */ jsx42(
22444
22886
  Button,
22445
22887
  {
22446
22888
  type: "button",
@@ -22455,7 +22897,7 @@ var CheckoutStageButton = ({
22455
22897
  t3("Next"),
22456
22898
  ": ",
22457
22899
  getStageDisplayName(nextStage),
22458
- /* @__PURE__ */ jsx41(Icon3, { name: "arrow-right" })
22900
+ /* @__PURE__ */ jsx42(Icon3, { name: "arrow-right" })
22459
22901
  ] })
22460
22902
  }
22461
22903
  );
@@ -22463,7 +22905,7 @@ var CheckoutStageButton = ({
22463
22905
  if (checkoutStage === "autoTopup") {
22464
22906
  const nextStage = getNextStageId("autoTopup");
22465
22907
  if (!isPaymentMethodRequired && !nextStage) {
22466
- return /* @__PURE__ */ jsx41(
22908
+ return /* @__PURE__ */ jsx42(
22467
22909
  NoPaymentRequired,
22468
22910
  {
22469
22911
  isDisabled,
@@ -22474,7 +22916,7 @@ var CheckoutStageButton = ({
22474
22916
  }
22475
22917
  );
22476
22918
  }
22477
- return /* @__PURE__ */ jsx41(
22919
+ return /* @__PURE__ */ jsx42(
22478
22920
  Button,
22479
22921
  {
22480
22922
  type: "button",
@@ -22496,7 +22938,7 @@ var CheckoutStageButton = ({
22496
22938
  t3("Next"),
22497
22939
  ": ",
22498
22940
  getStageDisplayName(nextStage),
22499
- /* @__PURE__ */ jsx41(Icon3, { name: "arrow-right" })
22941
+ /* @__PURE__ */ jsx42(Icon3, { name: "arrow-right" })
22500
22942
  ]
22501
22943
  }
22502
22944
  )
@@ -22506,7 +22948,7 @@ var CheckoutStageButton = ({
22506
22948
  if (checkoutStage === "usage") {
22507
22949
  const nextStage = getNextStageId("usage");
22508
22950
  if (!isPaymentMethodRequired && !nextStage) {
22509
- return /* @__PURE__ */ jsx41(
22951
+ return /* @__PURE__ */ jsx42(
22510
22952
  NoPaymentRequired,
22511
22953
  {
22512
22954
  isDisabled,
@@ -22517,7 +22959,7 @@ var CheckoutStageButton = ({
22517
22959
  }
22518
22960
  );
22519
22961
  }
22520
- return /* @__PURE__ */ jsx41(
22962
+ return /* @__PURE__ */ jsx42(
22521
22963
  Button,
22522
22964
  {
22523
22965
  type: "button",
@@ -22539,7 +22981,7 @@ var CheckoutStageButton = ({
22539
22981
  t3("Next"),
22540
22982
  ": ",
22541
22983
  getStageDisplayName(nextStage),
22542
- /* @__PURE__ */ jsx41(Icon3, { name: "arrow-right" })
22984
+ /* @__PURE__ */ jsx42(Icon3, { name: "arrow-right" })
22543
22985
  ]
22544
22986
  }
22545
22987
  )
@@ -22549,7 +22991,7 @@ var CheckoutStageButton = ({
22549
22991
  if (checkoutStage === "addons") {
22550
22992
  const nextStage = getNextStageId("addons");
22551
22993
  if (!isPaymentMethodRequired && !nextStage) {
22552
- return /* @__PURE__ */ jsx41(
22994
+ return /* @__PURE__ */ jsx42(
22553
22995
  NoPaymentRequired,
22554
22996
  {
22555
22997
  isDisabled,
@@ -22560,7 +23002,7 @@ var CheckoutStageButton = ({
22560
23002
  }
22561
23003
  );
22562
23004
  }
22563
- return /* @__PURE__ */ jsx41(
23005
+ return /* @__PURE__ */ jsx42(
22564
23006
  Button,
22565
23007
  {
22566
23008
  type: "button",
@@ -22581,7 +23023,7 @@ var CheckoutStageButton = ({
22581
23023
  t3("Next"),
22582
23024
  ": ",
22583
23025
  getStageDisplayName(nextStage),
22584
- /* @__PURE__ */ jsx41(Icon3, { name: "arrow-right" })
23026
+ /* @__PURE__ */ jsx42(Icon3, { name: "arrow-right" })
22585
23027
  ]
22586
23028
  }
22587
23029
  )
@@ -22591,7 +23033,7 @@ var CheckoutStageButton = ({
22591
23033
  if (checkoutStage === "addonsUsage") {
22592
23034
  const nextStage = getNextStageId("addonsUsage");
22593
23035
  if (!isPaymentMethodRequired && !nextStage) {
22594
- return /* @__PURE__ */ jsx41(
23036
+ return /* @__PURE__ */ jsx42(
22595
23037
  NoPaymentRequired,
22596
23038
  {
22597
23039
  isDisabled,
@@ -22602,7 +23044,7 @@ var CheckoutStageButton = ({
22602
23044
  }
22603
23045
  );
22604
23046
  }
22605
- return /* @__PURE__ */ jsx41(
23047
+ return /* @__PURE__ */ jsx42(
22606
23048
  Button,
22607
23049
  {
22608
23050
  type: "button",
@@ -22624,7 +23066,7 @@ var CheckoutStageButton = ({
22624
23066
  t3("Next"),
22625
23067
  ": ",
22626
23068
  getStageDisplayName(nextStage),
22627
- /* @__PURE__ */ jsx41(Icon3, { name: "arrow-right" })
23069
+ /* @__PURE__ */ jsx42(Icon3, { name: "arrow-right" })
22628
23070
  ]
22629
23071
  }
22630
23072
  )
@@ -22634,7 +23076,7 @@ var CheckoutStageButton = ({
22634
23076
  if (checkoutStage === "credits") {
22635
23077
  const nextStage = getNextStageId("credits");
22636
23078
  if (!nextStage) {
22637
- return /* @__PURE__ */ jsx41(
23079
+ return /* @__PURE__ */ jsx42(
22638
23080
  NoPaymentRequired,
22639
23081
  {
22640
23082
  isDisabled,
@@ -22645,7 +23087,7 @@ var CheckoutStageButton = ({
22645
23087
  }
22646
23088
  );
22647
23089
  }
22648
- return /* @__PURE__ */ jsx41(
23090
+ return /* @__PURE__ */ jsx42(
22649
23091
  Button,
22650
23092
  {
22651
23093
  type: "button",
@@ -22666,7 +23108,7 @@ var CheckoutStageButton = ({
22666
23108
  t3("Next"),
22667
23109
  ": ",
22668
23110
  getStageDisplayName(nextStage),
22669
- /* @__PURE__ */ jsx41(Icon3, { name: "arrow-right" })
23111
+ /* @__PURE__ */ jsx42(Icon3, { name: "arrow-right" })
22670
23112
  ]
22671
23113
  }
22672
23114
  )
@@ -22674,10 +23116,10 @@ var CheckoutStageButton = ({
22674
23116
  );
22675
23117
  }
22676
23118
  if (checkoutStage === "checkout") {
22677
- const optInNotice = optInUnmet ? /* @__PURE__ */ jsx41(Text, { $color: "#D97706", $size: 15, children: t3("Please accept the agreement to continue.") }) : null;
23119
+ const optInNotice = optInUnmet ? /* @__PURE__ */ jsx42(Text, { $color: "#D97706", $size: 15, children: t3("Please accept the agreement to continue.") }) : null;
22678
23120
  if (!isPaymentMethodRequired) {
22679
23121
  return /* @__PURE__ */ jsxs29(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
22680
- /* @__PURE__ */ jsx41(
23122
+ /* @__PURE__ */ jsx42(
22681
23123
  NoPaymentRequired,
22682
23124
  {
22683
23125
  isDisabled: isDisabled || hasIncompleteRequiredCustomFields || optInUnmet,
@@ -22691,7 +23133,7 @@ var CheckoutStageButton = ({
22691
23133
  ] });
22692
23134
  }
22693
23135
  return /* @__PURE__ */ jsxs29(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
22694
- /* @__PURE__ */ jsx41(
23136
+ /* @__PURE__ */ jsx42(
22695
23137
  Button,
22696
23138
  {
22697
23139
  type: "button",
@@ -22708,7 +23150,7 @@ var CheckoutStageButton = ({
22708
23150
  };
22709
23151
 
22710
23152
  // src/components/shared/subscription-sidebar/EntitlementRow.tsx
22711
- import { Fragment as Fragment14, jsx as jsx42, jsxs as jsxs30 } from "react/jsx-runtime";
23153
+ import { Fragment as Fragment14, jsx as jsx43, jsxs as jsxs30 } from "react/jsx-runtime";
22712
23154
  var EntitlementRow = (props) => {
22713
23155
  const { t: t3, locale } = useTranslation();
22714
23156
  const { settings } = useEmbed();
@@ -22736,7 +23178,7 @@ var EntitlementRow = (props) => {
22736
23178
  $color: settings.theme.typography.text.color,
22737
23179
  children: [
22738
23180
  t3("Tier-based"),
22739
- /* @__PURE__ */ jsx42(
23181
+ /* @__PURE__ */ jsx43(
22740
23182
  PricingTiersTooltip,
22741
23183
  {
22742
23184
  portal,
@@ -22752,7 +23194,7 @@ var EntitlementRow = (props) => {
22752
23194
  }
22753
23195
  );
22754
23196
  return /* @__PURE__ */ jsxs30(Fragment14, { children: [
22755
- /* @__PURE__ */ jsx42(Box, { children: /* @__PURE__ */ jsx42(Text, { display: "heading4", children: priceBehavior === EntitlementPriceBehavior.PayInAdvance ? /* @__PURE__ */ jsxs30(Fragment14, { children: [
23197
+ /* @__PURE__ */ jsx43(Box, { children: /* @__PURE__ */ jsx43(Text, { display: "heading4", children: priceBehavior === EntitlementPriceBehavior.PayInAdvance ? /* @__PURE__ */ jsxs30(Fragment14, { children: [
22756
23198
  quantity,
22757
23199
  " ",
22758
23200
  getFeatureName(feature, locale, quantity)
@@ -22761,7 +23203,7 @@ var EntitlementRow = (props) => {
22761
23203
  " ",
22762
23204
  getFeatureName(feature, locale, softLimit)
22763
23205
  ] }) : feature.name }) }),
22764
- /* @__PURE__ */ jsx42(Box, { $whiteSpace: "nowrap", $lineHeight: 1, children: priceBehavior === EntitlementPriceBehavior.PayInAdvance ? (
23206
+ /* @__PURE__ */ jsx43(Box, { $whiteSpace: "nowrap", $lineHeight: 1, children: priceBehavior === EntitlementPriceBehavior.PayInAdvance ? (
22765
23207
  // A tiered scheme still resolves to a fixed amount at the chosen
22766
23208
  // quantity, so the row shows it alongside the tier breakdown
22767
23209
  // rather than leaving the charge unpriced.
@@ -22803,7 +23245,7 @@ var EntitlementRow = (props) => {
22803
23245
 
22804
23246
  // src/components/shared/subscription-sidebar/Proration.tsx
22805
23247
  import { useState as useState12 } from "react";
22806
- import { Fragment as Fragment15, jsx as jsx43, jsxs as jsxs31 } from "react/jsx-runtime";
23248
+ import { Fragment as Fragment15, jsx as jsx44, jsxs as jsxs31 } from "react/jsx-runtime";
22807
23249
  var Proration = ({ currency, charges }) => {
22808
23250
  const { t: t3, locale } = useTranslation();
22809
23251
  const { settings } = useEmbed();
@@ -22814,19 +23256,19 @@ var Proration = ({ currency, charges }) => {
22814
23256
  setOpen((open2) => !open2);
22815
23257
  };
22816
23258
  return /* @__PURE__ */ jsxs31(Fragment15, { children: [
22817
- /* @__PURE__ */ jsx43(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx43(Text, { $size: 14, children: t3("Proration") }) }),
23259
+ /* @__PURE__ */ jsx44(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx44(Text, { $size: 14, children: t3("Proration") }) }),
22818
23260
  /* @__PURE__ */ jsxs31(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
22819
23261
  open && charges?.upcomingInvoiceLineItems.map(
22820
23262
  ({ amount, description }, index) => {
22821
23263
  return /* @__PURE__ */ jsxs31(Flex, { $gap: "1rem", children: [
22822
- /* @__PURE__ */ jsx43(Text, { children: description }),
22823
- /* @__PURE__ */ jsx43(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsx43(Text, { children: formatCurrency(amount, { locale, currency }) }) })
23264
+ /* @__PURE__ */ jsx44(Text, { children: description }),
23265
+ /* @__PURE__ */ jsx44(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsx44(Text, { children: formatCurrency(amount, { locale, currency }) }) })
22824
23266
  ] }, index);
22825
23267
  }
22826
23268
  ),
22827
23269
  /* @__PURE__ */ jsxs31(Flex, { $justifyContent: "space-between", $alignItems: "center", $gap: "1rem", children: [
22828
23270
  /* @__PURE__ */ jsxs31(Flex, { children: [
22829
- /* @__PURE__ */ jsx43(Text, { display: "heading4", children: t3("Total") }),
23271
+ /* @__PURE__ */ jsx44(Text, { display: "heading4", children: t3("Total") }),
22830
23272
  /* @__PURE__ */ jsxs31(
22831
23273
  Button,
22832
23274
  {
@@ -22835,19 +23277,19 @@ var Proration = ({ currency, charges }) => {
22835
23277
  style: { height: "auto", padding: 0 },
22836
23278
  $variant: "text",
22837
23279
  children: [
22838
- /* @__PURE__ */ jsx43(
23280
+ /* @__PURE__ */ jsx44(
22839
23281
  Icon3,
22840
23282
  {
22841
23283
  name: open ? "chevron-up" : "chevron-down",
22842
23284
  color: settings.theme.typography.text.color
22843
23285
  }
22844
23286
  ),
22845
- /* @__PURE__ */ jsx43(Text, { children: open ? t3("Hide details") : t3("Show details") })
23287
+ /* @__PURE__ */ jsx44(Text, { children: open ? t3("Hide details") : t3("Show details") })
22846
23288
  ]
22847
23289
  }
22848
23290
  )
22849
23291
  ] }),
22850
- /* @__PURE__ */ jsx43(Flex, { children: /* @__PURE__ */ jsx43(Text, { children: formatCurrency(charges.proration, {
23292
+ /* @__PURE__ */ jsx44(Flex, { children: /* @__PURE__ */ jsx44(Text, { children: formatCurrency(charges.proration, {
22851
23293
  locale,
22852
23294
  currency
22853
23295
  }) }) })
@@ -22857,7 +23299,7 @@ var Proration = ({ currency, charges }) => {
22857
23299
  };
22858
23300
 
22859
23301
  // src/components/shared/subscription-sidebar/SubscriptionSidebar.tsx
22860
- import { jsx as jsx44, jsxs as jsxs32 } from "react/jsx-runtime";
23302
+ import { jsx as jsx45, jsxs as jsxs32 } from "react/jsx-runtime";
22861
23303
  var SubscriptionSidebar = forwardRef7(
22862
23304
  ({
22863
23305
  portal,
@@ -22982,7 +23424,9 @@ var SubscriptionSidebar = forwardRef7(
22982
23424
  resolvedCurrency = planBillingPrice?.currency;
22983
23425
  } else if (typeof currentPlan?.planPrice === "number") {
22984
23426
  planPrice = currentPlan.planPrice;
23427
+ resolvedCurrency = billingSubscription?.currency;
22985
23428
  }
23429
+ resolvedCurrency ??= currency;
22986
23430
  let total = 0;
22987
23431
  if (planPrice) {
22988
23432
  total += planPrice;
@@ -23021,6 +23465,7 @@ var SubscriptionSidebar = forwardRef7(
23021
23465
  }, [
23022
23466
  selectedPlan,
23023
23467
  currentPlan,
23468
+ billingSubscription?.currency,
23024
23469
  planPeriod,
23025
23470
  addOns,
23026
23471
  payInAdvanceEntitlements,
@@ -23079,7 +23524,7 @@ var SubscriptionSidebar = forwardRef7(
23079
23524
  $flexWrap: "wrap",
23080
23525
  $gap: "1rem",
23081
23526
  children: [
23082
- /* @__PURE__ */ jsx44(
23527
+ /* @__PURE__ */ jsx45(
23083
23528
  Text,
23084
23529
  {
23085
23530
  style: { opacity: 0.54 },
@@ -23092,7 +23537,7 @@ var SubscriptionSidebar = forwardRef7(
23092
23537
  })
23093
23538
  }
23094
23539
  ),
23095
- addedCredits > 0 && /* @__PURE__ */ jsx44(
23540
+ addedCredits > 0 && /* @__PURE__ */ jsx45(
23096
23541
  Text,
23097
23542
  {
23098
23543
  $size: 0.875 * settings.theme.typography.text.fontSize,
@@ -23374,7 +23819,7 @@ var SubscriptionSidebar = forwardRef7(
23374
23819
  const isSticky = !isButtonInView;
23375
23820
  switch (layout) {
23376
23821
  case "checkout":
23377
- return /* @__PURE__ */ jsx44(
23822
+ return /* @__PURE__ */ jsx45(
23378
23823
  CheckoutStageButton,
23379
23824
  {
23380
23825
  canCheckout,
@@ -23400,7 +23845,7 @@ var SubscriptionSidebar = forwardRef7(
23400
23845
  }
23401
23846
  );
23402
23847
  case "unsubscribe":
23403
- return /* @__PURE__ */ jsx44(
23848
+ return /* @__PURE__ */ jsx45(
23404
23849
  Button,
23405
23850
  {
23406
23851
  type: "button",
@@ -23503,7 +23948,7 @@ var SubscriptionSidebar = forwardRef7(
23503
23948
  },
23504
23949
  ...rest,
23505
23950
  children: [
23506
- showHeader && /* @__PURE__ */ jsx44(
23951
+ showHeader && /* @__PURE__ */ jsx45(
23507
23952
  Flex,
23508
23953
  {
23509
23954
  $position: "relative",
@@ -23515,7 +23960,7 @@ var SubscriptionSidebar = forwardRef7(
23515
23960
  $borderBottomWidth: "1px",
23516
23961
  $borderStyle: "solid",
23517
23962
  $borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.1)" : "hsla(0, 0%, 100%, 0.2)",
23518
- children: /* @__PURE__ */ jsx44(Flex, { $justifyContent: "space-between", children: /* @__PURE__ */ jsx44(Text, { as: "h3", display: "heading3", children: t3("Subscription") }) })
23963
+ children: /* @__PURE__ */ jsx45(Flex, { $justifyContent: "space-between", children: /* @__PURE__ */ jsx45(Text, { as: "h3", display: "heading3", children: t3("Subscription") }) })
23519
23964
  }
23520
23965
  ),
23521
23966
  /* @__PURE__ */ jsxs32(
@@ -23532,7 +23977,7 @@ var SubscriptionSidebar = forwardRef7(
23532
23977
  $borderStyle: "solid",
23533
23978
  $borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.1)" : "hsla(0, 0%, 100%, 0.2)",
23534
23979
  children: [
23535
- /* @__PURE__ */ jsx44(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx44(Text, { $size: 14, children: t3("Plan") }) }),
23980
+ /* @__PURE__ */ jsx45(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx45(Text, { $size: 14, children: t3("Plan") }) }),
23536
23981
  /* @__PURE__ */ jsxs32(Flex, { $flexDirection: "column", $gap: "0.5rem", $marginBottom: "1.5rem", children: [
23537
23982
  currentPlan && /* @__PURE__ */ jsxs32(
23538
23983
  Flex,
@@ -23546,8 +23991,8 @@ var SubscriptionSidebar = forwardRef7(
23546
23991
  $color: settings.theme.typography.heading4.color
23547
23992
  },
23548
23993
  children: [
23549
- /* @__PURE__ */ jsx44(Box, { children: /* @__PURE__ */ jsx44(Text, { display: "heading4", children: currentPlan.name }) }),
23550
- typeof currentPlan.planPrice === "number" && /* @__PURE__ */ jsx44(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs32(Text, { children: [
23994
+ /* @__PURE__ */ jsx45(Box, { children: /* @__PURE__ */ jsx45(Text, { display: "heading4", children: currentPlan.name }) }),
23995
+ typeof currentPlan.planPrice === "number" && /* @__PURE__ */ jsx45(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs32(Text, { children: [
23551
23996
  formatCurrency(currentPlan.planPrice, {
23552
23997
  locale,
23553
23998
  currency: billingSubscription?.currency
@@ -23564,7 +24009,7 @@ var SubscriptionSidebar = forwardRef7(
23564
24009
  }
23565
24010
  ),
23566
24011
  selectedPlan && !selectedPlan.current && /* @__PURE__ */ jsxs32(Box, { children: [
23567
- /* @__PURE__ */ jsx44(
24012
+ /* @__PURE__ */ jsx45(
23568
24013
  Box,
23569
24014
  {
23570
24015
  $width: "100%",
@@ -23572,7 +24017,7 @@ var SubscriptionSidebar = forwardRef7(
23572
24017
  $opacity: "50%",
23573
24018
  $marginBottom: "0.25rem",
23574
24019
  $marginTop: "-0.25rem",
23575
- children: /* @__PURE__ */ jsx44(
24020
+ children: /* @__PURE__ */ jsx45(
23576
24021
  Icon3,
23577
24022
  {
23578
24023
  name: "arrow-down",
@@ -23591,8 +24036,8 @@ var SubscriptionSidebar = forwardRef7(
23591
24036
  $alignItems: "baseline",
23592
24037
  $gap: "1rem",
23593
24038
  children: [
23594
- /* @__PURE__ */ jsx44(Flex, { children: /* @__PURE__ */ jsx44(Text, { display: "heading4", children: selectedPlan.name }) }),
23595
- /* @__PURE__ */ jsx44(Flex, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs32(Text, { children: [
24039
+ /* @__PURE__ */ jsx45(Flex, { children: /* @__PURE__ */ jsx45(Text, { display: "heading4", children: selectedPlan.name }) }),
24040
+ /* @__PURE__ */ jsx45(Flex, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs32(Text, { children: [
23596
24041
  formatCurrency(selectedPlanPrice ?? 0, {
23597
24042
  locale,
23598
24043
  currency: selectedPlanCurrency
@@ -23608,12 +24053,12 @@ var SubscriptionSidebar = forwardRef7(
23608
24053
  ] })
23609
24054
  ] }),
23610
24055
  updatedUsageBasedEntitlements.willChange && /* @__PURE__ */ jsxs32(Flex, { $flexDirection: "column", $gap: "0.5rem", $marginBottom: "1.5rem", children: [
23611
- /* @__PURE__ */ jsx44(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx44(Text, { $size: 14, children: t3("Usage-based") }) }),
24056
+ /* @__PURE__ */ jsx45(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx45(Text, { $size: 14, children: t3("Usage-based") }) }),
23612
24057
  updatedUsageBasedEntitlements.removed.reduce(
23613
24058
  (acc, entitlement, index) => {
23614
24059
  if (entitlement.feature?.name) {
23615
24060
  acc.push(
23616
- /* @__PURE__ */ jsx44(
24061
+ /* @__PURE__ */ jsx45(
23617
24062
  Flex,
23618
24063
  {
23619
24064
  $justifyContent: "space-between",
@@ -23622,7 +24067,7 @@ var SubscriptionSidebar = forwardRef7(
23622
24067
  $opacity: "0.625",
23623
24068
  $textDecoration: "line-through",
23624
24069
  $color: settings.theme.typography.heading4.color,
23625
- children: /* @__PURE__ */ jsx44(
24070
+ children: /* @__PURE__ */ jsx45(
23626
24071
  EntitlementRow,
23627
24072
  {
23628
24073
  portal: resolvedPortal,
@@ -23645,7 +24090,7 @@ var SubscriptionSidebar = forwardRef7(
23645
24090
  if (next2.feature?.name) {
23646
24091
  acc.push(
23647
24092
  /* @__PURE__ */ jsxs32(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
23648
- /* @__PURE__ */ jsx44(
24093
+ /* @__PURE__ */ jsx45(
23649
24094
  Flex,
23650
24095
  {
23651
24096
  $justifyContent: "space-between",
@@ -23654,7 +24099,7 @@ var SubscriptionSidebar = forwardRef7(
23654
24099
  $opacity: "0.625",
23655
24100
  $textDecoration: "line-through",
23656
24101
  $color: settings.theme.typography.heading4.color,
23657
- children: /* @__PURE__ */ jsx44(
24102
+ children: /* @__PURE__ */ jsx45(
23658
24103
  EntitlementRow,
23659
24104
  {
23660
24105
  portal: resolvedPortal,
@@ -23665,13 +24110,13 @@ var SubscriptionSidebar = forwardRef7(
23665
24110
  )
23666
24111
  }
23667
24112
  ),
23668
- /* @__PURE__ */ jsx44(
24113
+ /* @__PURE__ */ jsx45(
23669
24114
  Flex,
23670
24115
  {
23671
24116
  $justifyContent: "space-between",
23672
24117
  $alignItems: "baseline",
23673
24118
  $gap: "1rem",
23674
- children: /* @__PURE__ */ jsx44(
24119
+ children: /* @__PURE__ */ jsx45(
23675
24120
  EntitlementRow,
23676
24121
  {
23677
24122
  portal: resolvedPortal,
@@ -23695,13 +24140,13 @@ var SubscriptionSidebar = forwardRef7(
23695
24140
  if (entitlement.feature?.name) {
23696
24141
  acc.push(
23697
24142
  /* @__PURE__ */ jsxs32(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
23698
- /* @__PURE__ */ jsx44(
24143
+ /* @__PURE__ */ jsx45(
23699
24144
  Flex,
23700
24145
  {
23701
24146
  $justifyContent: "space-between",
23702
24147
  $alignItems: "baseline",
23703
24148
  $gap: "1rem",
23704
- children: /* @__PURE__ */ jsx44(
24149
+ children: /* @__PURE__ */ jsx45(
23705
24150
  EntitlementRow,
23706
24151
  {
23707
24152
  portal: resolvedPortal,
@@ -23722,7 +24167,7 @@ var SubscriptionSidebar = forwardRef7(
23722
24167
  )
23723
24168
  ] }),
23724
24169
  selectedPlan && isSelectedPlanTrialable && shouldTrial && /* @__PURE__ */ jsxs32(Box, { children: [
23725
- /* @__PURE__ */ jsx44(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx44(Text, { $size: 14, children: t3("Trial") }) }),
24170
+ /* @__PURE__ */ jsx45(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx45(Text, { $size: 14, children: t3("Trial") }) }),
23726
24171
  /* @__PURE__ */ jsxs32(
23727
24172
  Flex,
23728
24173
  {
@@ -23730,24 +24175,24 @@ var SubscriptionSidebar = forwardRef7(
23730
24175
  $alignItems: "baseline",
23731
24176
  $gap: "1rem",
23732
24177
  children: [
23733
- /* @__PURE__ */ jsx44(Flex, { children: /* @__PURE__ */ jsx44(Text, { display: "heading4", children: t3("Ends on", {
24178
+ /* @__PURE__ */ jsx45(Flex, { children: /* @__PURE__ */ jsx45(Text, { display: "heading4", children: t3("Ends on", {
23734
24179
  date: toPrettyDate(trialEndsOn, { locale })
23735
24180
  }) }) }),
23736
- /* @__PURE__ */ jsx44(Flex, { children: /* @__PURE__ */ jsxs32(Text, { children: [
24181
+ /* @__PURE__ */ jsx45(Flex, { children: /* @__PURE__ */ jsxs32(Text, { children: [
23737
24182
  "-",
23738
24183
  formatCurrency(selectedPlanPrice ?? 0, {
23739
24184
  locale,
23740
24185
  currency: selectedPlanCurrency
23741
24186
  }),
23742
24187
  "/",
23743
- /* @__PURE__ */ jsx44("sub", { children: shortenPeriod(planPeriod, t3) })
24188
+ /* @__PURE__ */ jsx45("sub", { children: shortenPeriod(planPeriod, t3) })
23744
24189
  ] }) })
23745
24190
  ]
23746
24191
  }
23747
24192
  )
23748
24193
  ] }),
23749
24194
  (willAddOnsChange || selectedAddOnsWithPrice.length > 0) && /* @__PURE__ */ jsxs32(Flex, { $flexDirection: "column", $gap: "0.5rem", $marginBottom: "1.5rem", children: [
23750
- /* @__PURE__ */ jsx44(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx44(Text, { $size: 14, children: t3("Add-ons") }) }),
24195
+ /* @__PURE__ */ jsx45(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx45(Text, { $size: 14, children: t3("Add-ons") }) }),
23751
24196
  removedAddOns.map((addOn, index) => {
23752
24197
  return /* @__PURE__ */ jsxs32(
23753
24198
  Flex,
@@ -23759,8 +24204,8 @@ var SubscriptionSidebar = forwardRef7(
23759
24204
  $textDecoration: "line-through",
23760
24205
  $color: settings.theme.typography.heading4.color,
23761
24206
  children: [
23762
- /* @__PURE__ */ jsx44(Box, { children: /* @__PURE__ */ jsx44(Text, { display: "heading4", children: addOn.name }) }),
23763
- typeof addOn.planPrice === "number" && addOn.planPeriod && /* @__PURE__ */ jsx44(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs32(Text, { children: [
24207
+ /* @__PURE__ */ jsx45(Box, { children: /* @__PURE__ */ jsx45(Text, { display: "heading4", children: addOn.name }) }),
24208
+ typeof addOn.planPrice === "number" && addOn.planPeriod && /* @__PURE__ */ jsx45(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs32(Text, { children: [
23764
24209
  formatCurrency(addOn.planPrice, {
23765
24210
  locale,
23766
24211
  currency: selectedPlanCurrency
@@ -23784,8 +24229,8 @@ var SubscriptionSidebar = forwardRef7(
23784
24229
  $alignItems: "baseline",
23785
24230
  $gap: "1rem",
23786
24231
  children: [
23787
- /* @__PURE__ */ jsx44(Box, { children: /* @__PURE__ */ jsx44(Text, { display: "heading4", children: addOn.name }) }),
23788
- /* @__PURE__ */ jsx44(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs32(Text, { children: [
24232
+ /* @__PURE__ */ jsx45(Box, { children: /* @__PURE__ */ jsx45(Text, { display: "heading4", children: addOn.name }) }),
24233
+ /* @__PURE__ */ jsx45(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs32(Text, { children: [
23789
24234
  formatCurrency(addOnPrice ?? 0, {
23790
24235
  locale,
23791
24236
  currency: addOnCurrency
@@ -23802,7 +24247,7 @@ var SubscriptionSidebar = forwardRef7(
23802
24247
  })
23803
24248
  ] }),
23804
24249
  addedCreditBundles.length > 0 && /* @__PURE__ */ jsxs32(Flex, { $flexDirection: "column", $gap: "0.5rem", $marginBottom: "1.5rem", children: [
23805
- /* @__PURE__ */ jsx44(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx44(Text, { $size: 14, children: t3("Credits") }) }),
24250
+ /* @__PURE__ */ jsx45(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx45(Text, { $size: 14, children: t3("Credits") }) }),
23806
24251
  addedCreditBundles.reduce(
23807
24252
  (acc, bundle, index) => {
23808
24253
  const price = typeof bundle.price?.priceDecimal === "string" ? Number(bundle.price.priceDecimal) : typeof bundle.price?.price === "number" ? bundle.price.price : void 0;
@@ -23818,24 +24263,24 @@ var SubscriptionSidebar = forwardRef7(
23818
24263
  $gap: "1rem",
23819
24264
  children: [
23820
24265
  /* @__PURE__ */ jsxs32(Box, { children: [
23821
- /* @__PURE__ */ jsx44(Box, { children: /* @__PURE__ */ jsxs32(Text, { display: "heading4", children: [
24266
+ /* @__PURE__ */ jsx45(Box, { children: /* @__PURE__ */ jsxs32(Text, { display: "heading4", children: [
23822
24267
  bundle.name,
23823
24268
  !isIndividualBundlePurchase && ` (${bundle.count})`
23824
24269
  ] }) }),
23825
- /* @__PURE__ */ jsx44(Box, { children: /* @__PURE__ */ jsxs32(Text, { children: [
24270
+ /* @__PURE__ */ jsx45(Box, { children: /* @__PURE__ */ jsxs32(Text, { children: [
23826
24271
  formatNumber(amount, { locale }),
23827
24272
  " ",
23828
24273
  getFeatureName(bundle, locale, amount),
23829
24274
  expiry && ` \xB7 ${expiry}`
23830
24275
  ] }) })
23831
24276
  ] }),
23832
- bundle.count > 0 && /* @__PURE__ */ jsx44(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs32(Text, { children: [
24277
+ bundle.count > 0 && /* @__PURE__ */ jsx45(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs32(Text, { children: [
23833
24278
  formatCurrency(price * bundle.count, {
23834
24279
  locale,
23835
24280
  currency: currency || bundle.price?.currency
23836
24281
  }),
23837
24282
  " ",
23838
- /* @__PURE__ */ jsx44("sub", { children: t3("one time") })
24283
+ /* @__PURE__ */ jsx45("sub", { children: t3("one time") })
23839
24284
  ] }) })
23840
24285
  ]
23841
24286
  },
@@ -23849,7 +24294,7 @@ var SubscriptionSidebar = forwardRef7(
23849
24294
  )
23850
24295
  ] }),
23851
24296
  selectedOneTimeAddOns.length > 0 && /* @__PURE__ */ jsxs32(Flex, { $flexDirection: "column", $gap: "0.5rem", $marginBottom: "1.5rem", children: [
23852
- /* @__PURE__ */ jsx44(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx44(Text, { $size: 14, children: t3("One-time charges") }) }),
24297
+ /* @__PURE__ */ jsx45(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx45(Text, { $size: 14, children: t3("One-time charges") }) }),
23853
24298
  selectedOneTimeAddOns.map((addOn, index) => {
23854
24299
  const { price: addOnPrice, currency: addOnCurrency } = getAddOnPrice(addOn, planPeriod, currency) || {};
23855
24300
  return /* @__PURE__ */ jsxs32(
@@ -23859,14 +24304,14 @@ var SubscriptionSidebar = forwardRef7(
23859
24304
  $alignItems: "baseline",
23860
24305
  $gap: "1rem",
23861
24306
  children: [
23862
- /* @__PURE__ */ jsx44(Box, { children: /* @__PURE__ */ jsx44(Text, { display: "heading4", children: addOn.name }) }),
23863
- /* @__PURE__ */ jsx44(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs32(Text, { children: [
24307
+ /* @__PURE__ */ jsx45(Box, { children: /* @__PURE__ */ jsx45(Text, { display: "heading4", children: addOn.name }) }),
24308
+ /* @__PURE__ */ jsx45(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs32(Text, { children: [
23864
24309
  formatCurrency(addOnPrice ?? 0, {
23865
24310
  locale,
23866
24311
  currency: addOnCurrency
23867
24312
  }),
23868
24313
  " ",
23869
- /* @__PURE__ */ jsx44("sub", { children: t3("one time") })
24314
+ /* @__PURE__ */ jsx45("sub", { children: t3("one time") })
23870
24315
  ] }) })
23871
24316
  ]
23872
24317
  },
@@ -23874,7 +24319,7 @@ var SubscriptionSidebar = forwardRef7(
23874
24319
  );
23875
24320
  })
23876
24321
  ] }),
23877
- proration !== 0 && charges && selectedPlanCurrency && /* @__PURE__ */ jsx44(
24322
+ proration !== 0 && charges && selectedPlanCurrency && /* @__PURE__ */ jsx45(
23878
24323
  Proration,
23879
24324
  {
23880
24325
  charges,
@@ -23901,7 +24346,7 @@ var SubscriptionSidebar = forwardRef7(
23901
24346
  $alignItems: "baseline",
23902
24347
  $gap: "1rem",
23903
24348
  children: [
23904
- /* @__PURE__ */ jsx44(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx44(Text, { children: t3("Discount") }) }),
24349
+ /* @__PURE__ */ jsx45(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx45(Text, { children: t3("Discount") }) }),
23905
24350
  /* @__PURE__ */ jsxs32(
23906
24351
  Flex,
23907
24352
  {
@@ -23912,15 +24357,15 @@ var SubscriptionSidebar = forwardRef7(
23912
24357
  $outlineColor: isLightBackground ? "hsla(0, 0%, 0%, 0.15)" : "hsla(0, 0%, 100%, 0.15)",
23913
24358
  $borderRadius: "0.3125rem",
23914
24359
  children: [
23915
- /* @__PURE__ */ jsx44(Text, { $size: 0.75 * settings.theme.typography.text.fontSize, children: promoCode }),
23916
- /* @__PURE__ */ jsx44(
24360
+ /* @__PURE__ */ jsx45(Text, { $size: 0.75 * settings.theme.typography.text.fontSize, children: promoCode }),
24361
+ /* @__PURE__ */ jsx45(
23917
24362
  Box,
23918
24363
  {
23919
24364
  $cursor: "pointer",
23920
24365
  onClick: () => {
23921
24366
  updatePromoCode?.(null);
23922
24367
  },
23923
- children: /* @__PURE__ */ jsx44(
24368
+ children: /* @__PURE__ */ jsx45(
23924
24369
  Icon3,
23925
24370
  {
23926
24371
  name: "close",
@@ -23943,8 +24388,8 @@ var SubscriptionSidebar = forwardRef7(
23943
24388
  $alignItems: "baseline",
23944
24389
  $gap: "1rem",
23945
24390
  children: [
23946
- /* @__PURE__ */ jsx44(Box, { $opacity: "0.625", $lineHeight: 1.15, children: /* @__PURE__ */ jsx44(Text, { children: t3("X% off", { percent: percentOff }) }) }),
23947
- /* @__PURE__ */ jsx44(Box, { children: /* @__PURE__ */ jsx44(Text, { children: formatCurrency(
24391
+ /* @__PURE__ */ jsx45(Box, { $opacity: "0.625", $lineHeight: 1.15, children: /* @__PURE__ */ jsx45(Text, { children: t3("X% off", { percent: percentOff }) }) }),
24392
+ /* @__PURE__ */ jsx45(Box, { children: /* @__PURE__ */ jsx45(Text, { children: formatCurrency(
23948
24393
  // Prefer the discount Stripe applied; derive from
23949
24394
  // `percentOff` only for API responses that predate it.
23950
24395
  // The derived value can carry fractional minor units
@@ -23967,13 +24412,13 @@ var SubscriptionSidebar = forwardRef7(
23967
24412
  $alignItems: "baseline",
23968
24413
  $gap: "1rem",
23969
24414
  children: [
23970
- /* @__PURE__ */ jsx44(Box, { $opacity: "0.625", $lineHeight: 1.15, children: /* @__PURE__ */ jsx44(Text, { children: t3("X off", {
24415
+ /* @__PURE__ */ jsx45(Box, { $opacity: "0.625", $lineHeight: 1.15, children: /* @__PURE__ */ jsx45(Text, { children: t3("X off", {
23971
24416
  amount: formatCurrency(Math.abs(amountOff), {
23972
24417
  locale,
23973
24418
  currency: selectedPlanCurrency
23974
24419
  })
23975
24420
  }) }) }),
23976
- /* @__PURE__ */ jsx44(Box, { children: /* @__PURE__ */ jsxs32(Text, { children: [
24421
+ /* @__PURE__ */ jsx45(Box, { children: /* @__PURE__ */ jsxs32(Text, { children: [
23977
24422
  "-",
23978
24423
  formatCurrency(Math.abs(amountOff), {
23979
24424
  locale,
@@ -23990,11 +24435,11 @@ var SubscriptionSidebar = forwardRef7(
23990
24435
  $alignItems: "baseline",
23991
24436
  $gap: "1rem",
23992
24437
  children: [
23993
- /* @__PURE__ */ jsx44(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsxs32(Text, { children: [
24438
+ /* @__PURE__ */ jsx45(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsxs32(Text, { children: [
23994
24439
  planPeriod === "year" ? t3("Yearly total") : planPeriod === "quarter" ? t3("Quarterly total") : t3("Monthly total"),
23995
24440
  ":"
23996
24441
  ] }) }),
23997
- /* @__PURE__ */ jsx44(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs32(Text, { children: [
24442
+ /* @__PURE__ */ jsx45(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs32(Text, { children: [
23998
24443
  subscriptionPrice,
23999
24444
  /* @__PURE__ */ jsxs32("sub", { children: [
24000
24445
  "/",
@@ -24011,10 +24456,10 @@ var SubscriptionSidebar = forwardRef7(
24011
24456
  $alignItems: "baseline",
24012
24457
  $gap: "1rem",
24013
24458
  children: [
24014
- /* @__PURE__ */ jsx44(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx44(Text, { children: t3("Tax (description):", {
24459
+ /* @__PURE__ */ jsx45(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx45(Text, { children: t3("Tax (description):", {
24015
24460
  description: taxDescription
24016
24461
  }) }) }),
24017
- /* @__PURE__ */ jsx44(Box, { children: /* @__PURE__ */ jsx44(Text, { children: formatCurrency(taxAmount, {
24462
+ /* @__PURE__ */ jsx45(Box, { children: /* @__PURE__ */ jsx45(Text, { children: formatCurrency(taxAmount, {
24018
24463
  locale,
24019
24464
  currency: selectedPlanCurrency
24020
24465
  }) }) })
@@ -24028,11 +24473,11 @@ var SubscriptionSidebar = forwardRef7(
24028
24473
  $alignItems: "baseline",
24029
24474
  $gap: "1rem",
24030
24475
  children: [
24031
- /* @__PURE__ */ jsx44(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsxs32(Text, { children: [
24476
+ /* @__PURE__ */ jsx45(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsxs32(Text, { children: [
24032
24477
  t3("Due today"),
24033
24478
  ":"
24034
24479
  ] }) }),
24035
- /* @__PURE__ */ jsx44(Box, { children: /* @__PURE__ */ jsx44(Text, { children: formatCurrency(Math.max(0, dueNow), {
24480
+ /* @__PURE__ */ jsx45(Box, { children: /* @__PURE__ */ jsx45(Text, { children: formatCurrency(Math.max(0, dueNow), {
24036
24481
  locale,
24037
24482
  currency: selectedPlanCurrency
24038
24483
  }) }) })
@@ -24040,11 +24485,11 @@ var SubscriptionSidebar = forwardRef7(
24040
24485
  }
24041
24486
  ),
24042
24487
  dueNow < 0 && /* @__PURE__ */ jsxs32(Flex, { $justifyContent: "space-between", $gap: "1rem", children: [
24043
- /* @__PURE__ */ jsx44(Box, { $opacity: "0.625", $lineHeight: 1.15, children: /* @__PURE__ */ jsxs32(Text, { children: [
24488
+ /* @__PURE__ */ jsx45(Box, { $opacity: "0.625", $lineHeight: 1.15, children: /* @__PURE__ */ jsxs32(Text, { children: [
24044
24489
  t3("Credits to be applied to future invoices"),
24045
24490
  ":"
24046
24491
  ] }) }),
24047
- /* @__PURE__ */ jsx44(Box, { children: /* @__PURE__ */ jsx44(Text, { children: formatCurrency(Math.abs(dueNow), {
24492
+ /* @__PURE__ */ jsx45(Box, { children: /* @__PURE__ */ jsx45(Text, { children: formatCurrency(Math.abs(dueNow), {
24048
24493
  locale,
24049
24494
  currency: selectedPlanCurrency
24050
24495
  }) }) })
@@ -24052,7 +24497,7 @@ var SubscriptionSidebar = forwardRef7(
24052
24497
  /* @__PURE__ */ jsxs32("div", { ref: buttonRef, children: [
24053
24498
  button,
24054
24499
  createPortal2(
24055
- /* @__PURE__ */ jsx44(
24500
+ /* @__PURE__ */ jsx45(
24056
24501
  Box,
24057
24502
  {
24058
24503
  $position: "sticky",
@@ -24066,15 +24511,15 @@ var SubscriptionSidebar = forwardRef7(
24066
24511
  $borderTopWidth: "1px",
24067
24512
  $borderTopStyle: "solid",
24068
24513
  $borderTopColor: isLightBackground ? "hsla(0, 0%, 0%, 0.1)" : "hsla(0, 0%, 100%, 0.2)",
24069
- children: /* @__PURE__ */ jsx44(Box, { $padding: "1rem 1.5rem", children: button })
24514
+ children: /* @__PURE__ */ jsx45(Box, { $padding: "1rem 1.5rem", children: button })
24070
24515
  }
24071
24516
  ),
24072
24517
  resolvedPortal
24073
24518
  )
24074
24519
  ] }),
24075
24520
  !isLoading && error && /* @__PURE__ */ jsxs32(Flex, { $flexDirection: "column", children: [
24076
- /* @__PURE__ */ jsx44(Text, { $weight: 500, $color: "#DB6669", children: error }),
24077
- error === t3("Downgrade not permitted.") && data?.preventSelfServiceDowngrade && data?.preventSelfServiceDowngradeUrl && data?.preventSelfServiceDowngradeButtonText && /* @__PURE__ */ jsx44(
24521
+ /* @__PURE__ */ jsx45(Text, { $weight: 500, $color: "#DB6669", children: error }),
24522
+ error === t3("Downgrade not permitted.") && data?.preventSelfServiceDowngrade && data?.preventSelfServiceDowngradeUrl && data?.preventSelfServiceDowngradeButtonText && /* @__PURE__ */ jsx45(
24078
24523
  Text,
24079
24524
  {
24080
24525
  as: "a",
@@ -24084,7 +24529,7 @@ var SubscriptionSidebar = forwardRef7(
24084
24529
  }
24085
24530
  )
24086
24531
  ] }),
24087
- layout !== "unsubscribe" && !isCreditOnlyPurchase && disclaimerText && /* @__PURE__ */ jsx44(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx44(Text, { children: disclaimerText }) })
24532
+ layout !== "unsubscribe" && !isCreditOnlyPurchase && disclaimerText && /* @__PURE__ */ jsx45(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx45(Text, { children: disclaimerText }) })
24088
24533
  ]
24089
24534
  }
24090
24535
  )
@@ -24152,7 +24597,7 @@ var TieredPricingDetails = ({
24152
24597
 
24153
24598
  // src/components/shared/unsubscribe-dialog/UnsubscribeDialog.tsx
24154
24599
  import { useCallback as useCallback12, useLayoutEffect as useLayoutEffect7, useMemo as useMemo24, useRef as useRef10, useState as useState14 } from "react";
24155
- import { jsx as jsx45, jsxs as jsxs33 } from "react/jsx-runtime";
24600
+ import { jsx as jsx46, jsxs as jsxs33 } from "react/jsx-runtime";
24156
24601
  var UnsubscribeDialog = ({ top }) => {
24157
24602
  const { t: t3, locale } = useTranslation();
24158
24603
  const { data, layout, setLayout, setCheckoutState, clearCheckoutState } = useEmbed();
@@ -24223,7 +24668,7 @@ var UnsubscribeDialog = ({ top }) => {
24223
24668
  element.show();
24224
24669
  }
24225
24670
  }, [layout]);
24226
- return /* @__PURE__ */ jsx45(
24671
+ return /* @__PURE__ */ jsx46(
24227
24672
  Dialog2,
24228
24673
  {
24229
24674
  ref: setDialog,
@@ -24233,7 +24678,7 @@ var UnsubscribeDialog = ({ top }) => {
24233
24678
  onClose: handleClose,
24234
24679
  ...!isModal && { open: layout === "unsubscribe" },
24235
24680
  children: /* @__PURE__ */ jsxs33(DialogContent2, { children: [
24236
- /* @__PURE__ */ jsx45(
24681
+ /* @__PURE__ */ jsx46(
24237
24682
  DialogClose,
24238
24683
  {
24239
24684
  onClose: handleClose,
@@ -24254,7 +24699,7 @@ var UnsubscribeDialog = ({ top }) => {
24254
24699
  $overflow: "auto",
24255
24700
  children: [
24256
24701
  /* @__PURE__ */ jsxs33(Flex, { $flexDirection: "column", $flexWrap: "wrap", $gap: "0.5rem", children: [
24257
- /* @__PURE__ */ jsx45(Text, { as: "h2", display: "heading2", children: t3("Cancel subscription") }),
24702
+ /* @__PURE__ */ jsx46(Text, { as: "h2", display: "heading2", children: t3("Cancel subscription") }),
24258
24703
  /* @__PURE__ */ jsxs33(Text, { as: "p", children: [
24259
24704
  t3(
24260
24705
  "You will retain access to your plan until the end of the billing period, on"
@@ -24264,8 +24709,8 @@ var UnsubscribeDialog = ({ top }) => {
24264
24709
  ] })
24265
24710
  ] }),
24266
24711
  /* @__PURE__ */ jsxs33(Flex, { $flexDirection: "column", $flexWrap: "wrap", $gap: "0.5rem", children: [
24267
- /* @__PURE__ */ jsx45(Text, { as: "p", children: t3("Not ready to cancel?") }),
24268
- /* @__PURE__ */ jsx45(
24712
+ /* @__PURE__ */ jsx46(Text, { as: "p", children: t3("Not ready to cancel?") }),
24713
+ /* @__PURE__ */ jsx46(
24269
24714
  Button,
24270
24715
  {
24271
24716
  type: "button",
@@ -24286,7 +24731,7 @@ var UnsubscribeDialog = ({ top }) => {
24286
24731
  ]
24287
24732
  }
24288
24733
  ),
24289
- /* @__PURE__ */ jsx45(
24734
+ /* @__PURE__ */ jsx46(
24290
24735
  SubscriptionSidebar,
24291
24736
  {
24292
24737
  ref: sidebarRef,
@@ -24313,14 +24758,14 @@ var UnsubscribeDialog = ({ top }) => {
24313
24758
  };
24314
24759
 
24315
24760
  // src/components/shared/usage-violation-text/UsageViolationText.tsx
24316
- import { jsx as jsx46 } from "react/jsx-runtime";
24761
+ import { jsx as jsx47 } from "react/jsx-runtime";
24317
24762
  var UsageViolationText = ({ violations }) => {
24318
24763
  const { t: t3 } = useTranslation();
24319
24764
  const { settings } = useEmbed();
24320
24765
  if (violations.length === 0) {
24321
24766
  return null;
24322
24767
  }
24323
- return /* @__PURE__ */ jsx46(
24768
+ return /* @__PURE__ */ jsx47(
24324
24769
  Text,
24325
24770
  {
24326
24771
  $size: 0.875 * settings.theme.typography.text.fontSize,
@@ -24339,7 +24784,7 @@ var UsageViolationText = ({ violations }) => {
24339
24784
  };
24340
24785
 
24341
24786
  // src/components/ui/badge/Badge.tsx
24342
- import { jsx as jsx47, jsxs as jsxs34 } from "react/jsx-runtime";
24787
+ import { jsx as jsx48, jsxs as jsxs34 } from "react/jsx-runtime";
24343
24788
  var Badge = () => {
24344
24789
  const { t: t3 } = useTranslation();
24345
24790
  const { settings } = useEmbed();
@@ -24361,77 +24806,77 @@ var Badge = () => {
24361
24806
  " "
24362
24807
  ] }),
24363
24808
  /* @__PURE__ */ jsxs34("svg", { viewBox: "0 0 86 16", width: 86, height: 16, children: [
24364
- /* @__PURE__ */ jsx47(
24809
+ /* @__PURE__ */ jsx48(
24365
24810
  "path",
24366
24811
  {
24367
24812
  d: "M21.2354 6.16227C21.1796 5.95015 21.0494 5.76779 20.8261 5.61893C20.6028 5.46635 20.3423 5.39564 20.0408 5.39564C19.3151 5.39564 18.7941 5.69708 18.7941 6.2367C18.7941 6.49721 18.9095 6.69073 19.1402 6.81726C19.3635 6.94379 19.732 7.07033 20.2344 7.18569C21.0084 7.37177 21.4922 7.51691 21.9686 7.7402C22.203 7.85557 22.3928 7.97465 22.5305 8.10863C22.7948 8.3803 22.9548 8.74501 22.9362 9.20276C22.9176 9.86147 22.6571 10.375 22.1547 10.7397C21.6523 11.1082 20.9563 11.2905 20.0818 11.2905C19.2072 11.2905 18.5597 11.1268 18.0312 10.8067C17.5065 10.4867 17.2013 10.0215 17.1194 9.41116L18.6192 9.27719C18.6974 9.57491 18.8723 9.7982 19.1514 9.94706C19.4305 10.0959 19.7394 10.1778 20.0818 10.1778C20.4614 10.1778 20.7777 10.0996 21.0308 9.9359C21.2838 9.77959 21.4104 9.56002 21.4104 9.28835C21.4104 8.90876 21.0531 8.61104 20.5991 8.43613C20.3683 8.35053 20.0855 8.27238 19.7468 8.19423C19.2705 8.07886 18.8946 7.97094 18.6155 7.87418C18.3364 7.78486 18.0908 7.66205 17.8712 7.51319C17.4358 7.21547 17.2832 6.8247 17.2832 6.2367C17.2832 5.61521 17.5325 5.13141 18.0312 4.79648C18.5262 4.46526 19.2035 4.29407 20.0669 4.29407C21.5853 4.29407 22.5752 4.9044 22.7389 6.05807L21.228 6.16227H21.2354Z",
24368
24813
  fill: "currentColor"
24369
24814
  }
24370
24815
  ),
24371
- /* @__PURE__ */ jsx47(
24816
+ /* @__PURE__ */ jsx48(
24372
24817
  "path",
24373
24818
  {
24374
24819
  d: "M29.4145 8.9796L30.7803 9.55271C30.49 10.0923 30.0621 10.5129 29.5001 10.8217C28.9382 11.1344 28.3167 11.2944 27.6319 11.2944C26.9472 11.2944 26.3629 11.1567 25.8121 10.8701C25.2613 10.5873 24.8147 10.1742 24.4835 9.6383C24.1523 9.09868 23.9811 8.48835 23.9811 7.79987C23.9811 7.11138 24.1486 6.49361 24.4835 5.95771C24.8147 5.41809 25.2613 5.00873 25.8121 4.72589C26.3629 4.44305 26.9732 4.30164 27.6319 4.30164C28.2906 4.30164 28.9382 4.45794 29.5038 4.77427C30.0658 5.08688 30.4938 5.51113 30.7803 6.05075L29.4145 6.62015C29.0535 5.93539 28.3985 5.56323 27.6319 5.56323C27.0327 5.56323 26.5303 5.77536 26.1135 6.19961C25.6967 6.62387 25.492 7.15977 25.492 7.80731C25.492 8.45486 25.6967 8.99076 26.1135 9.40757C26.5303 9.83182 27.0327 10.0439 27.6319 10.0439C28.3985 10.0439 29.0535 9.66807 29.4145 8.98703V8.9796Z",
24375
24820
  fill: "currentColor"
24376
24821
  }
24377
24822
  ),
24378
- /* @__PURE__ */ jsx47(
24823
+ /* @__PURE__ */ jsx48(
24379
24824
  "path",
24380
24825
  {
24381
24826
  d: "M37.4386 11.2049V7.80341C37.4386 6.35945 36.9139 5.59282 35.697 5.59282C35.0978 5.59282 34.614 5.7975 34.2419 6.21059C33.8623 6.61996 33.6725 7.15214 33.6725 7.80713V11.2086H32.1615V1.9234H33.6725V5.47745C34.1004 4.73315 35.001 4.29773 36.1919 4.29773C37.167 4.29773 37.8666 4.59917 38.302 5.19834C38.7375 5.7975 38.9533 6.66834 38.9533 7.80341V11.2049H37.4349H37.4386Z",
24382
24827
  fill: "currentColor"
24383
24828
  }
24384
24829
  ),
24385
- /* @__PURE__ */ jsx47(
24830
+ /* @__PURE__ */ jsx48(
24386
24831
  "path",
24387
24832
  {
24388
24833
  d: "M46.5692 5.38819C47.2167 6.07295 47.5777 7.1187 47.5107 8.30587H41.8242C41.9284 8.83805 42.1741 9.26602 42.5611 9.59352C42.9481 9.92473 43.4022 10.0885 43.9157 10.0885C44.8052 10.0885 45.5234 9.59724 45.8844 8.78222L47.1795 9.40372C46.8818 9.99172 46.4352 10.4495 45.8509 10.7881C45.2629 11.1268 44.6191 11.2943 43.9157 11.2943C42.9295 11.2943 42.0178 10.9444 41.3516 10.3453C40.6855 9.7461 40.2649 8.83432 40.2649 7.79602C40.2649 6.75771 40.6892 5.84222 41.3516 5.23933C42.0178 4.64017 42.9295 4.29034 43.9157 4.29034C44.9801 4.29034 45.9216 4.69971 46.5692 5.38447V5.38819ZM42.5388 6.00224C42.1592 6.32974 41.921 6.75772 41.8205 7.29734H46.0221C45.9179 6.75772 45.6835 6.3223 45.3039 5.99852C44.9243 5.67847 44.4628 5.51473 43.9195 5.51473C43.3761 5.51473 42.9221 5.67847 42.5425 6.00597L42.5388 6.00224Z",
24389
24834
  fill: "currentColor"
24390
24835
  }
24391
24836
  ),
24392
- /* @__PURE__ */ jsx47(
24837
+ /* @__PURE__ */ jsx48(
24393
24838
  "path",
24394
24839
  {
24395
24840
  d: "M59.7699 5.23933C60.1495 5.86827 60.3132 6.68329 60.3132 7.80347V11.2049H58.8023V7.80347C58.8023 6.35952 58.3371 5.59288 57.2318 5.59288C56.6438 5.59288 56.1861 5.79384 55.8586 6.19577C55.5311 6.60141 55.3673 7.13731 55.3673 7.80347V11.2049H53.8489V7.80347C53.8489 6.35952 53.3838 5.59288 52.2785 5.59288C51.6905 5.59288 51.2327 5.79384 50.9052 6.19577C50.574 6.60141 50.4102 7.13731 50.4102 7.80347V11.2049H48.8993V4.39827H50.3433L50.4102 5.47379C50.8196 4.65878 51.5825 4.29407 52.8106 4.29407C53.9606 4.29407 54.7161 4.78531 55.077 5.76407C55.5199 4.81508 56.4428 4.29407 57.7677 4.29407C58.7093 4.29407 59.3829 4.61412 59.7699 5.23562V5.23933Z",
24396
24841
  fill: "currentColor"
24397
24842
  }
24398
24843
  ),
24399
- /* @__PURE__ */ jsx47(
24844
+ /* @__PURE__ */ jsx48(
24400
24845
  "path",
24401
24846
  {
24402
24847
  d: "M67.4264 5.47382L67.4934 4.3983H68.9373V11.205H67.4934L67.4264 10.1294C67.0282 10.9147 66.1797 11.3092 64.8809 11.3017C63.102 11.3427 61.591 9.79823 61.6283 7.8035C61.591 5.8162 63.102 4.2606 64.8809 4.29782C66.0643 4.29782 67.0096 4.7444 67.4264 5.47754V5.47382ZM66.8049 9.37398C67.2217 8.95717 67.4264 8.43243 67.4264 7.79605C67.4264 7.15967 67.2217 6.64238 66.8049 6.21813C66.3881 5.80132 65.8782 5.58919 65.2828 5.58919C64.6874 5.58919 64.1887 5.80132 63.7719 6.21813C63.355 6.64238 63.1504 7.16711 63.1504 7.79605C63.1504 8.42499 63.355 8.95717 63.7719 9.37398C64.1887 9.79823 64.6911 10.0104 65.2828 10.0104C65.8745 10.0104 66.3881 9.79823 66.8049 9.37398Z",
24403
24848
  fill: "currentColor"
24404
24849
  }
24405
24850
  ),
24406
- /* @__PURE__ */ jsx47(
24851
+ /* @__PURE__ */ jsx48(
24407
24852
  "path",
24408
24853
  {
24409
24854
  d: "M71.3891 2.85757H72.8926V4.39828H74.6455V5.58172H72.8926V8.9683C72.8926 9.5898 73.1048 9.90985 73.5923 9.96568C73.89 10.0252 74.2398 10.0141 74.6455 9.9359V11.1863C74.1989 11.257 73.7858 11.2943 73.4062 11.2943C72.6731 11.2943 72.1595 11.1082 71.8543 10.7323C71.5454 10.3639 71.3891 9.79076 71.3891 9.02041V5.58172H70.4215V4.39828H71.3891V2.85757Z",
24410
24855
  fill: "currentColor"
24411
24856
  }
24412
24857
  ),
24413
- /* @__PURE__ */ jsx47(
24858
+ /* @__PURE__ */ jsx48(
24414
24859
  "path",
24415
24860
  {
24416
24861
  d: "M76.1747 3.15526C75.9923 2.98035 75.903 2.76078 75.903 2.50772C75.903 2.25466 75.9923 2.04997 76.1747 1.86762C76.3496 1.69271 76.5691 1.60339 76.8222 1.60339C77.0753 1.60339 77.2874 1.69271 77.4623 1.86762C77.6372 2.04997 77.7265 2.2621 77.7265 2.50772C77.7265 2.75334 77.6372 2.97291 77.4623 3.15526C77.2874 3.33762 77.0678 3.42694 76.8222 3.42694C76.5766 3.42694 76.3496 3.33762 76.1747 3.15526ZM76.0593 4.39826H77.5777V11.2049H76.0593V4.39826Z",
24417
24862
  fill: "currentColor"
24418
24863
  }
24419
24864
  ),
24420
- /* @__PURE__ */ jsx47(
24865
+ /* @__PURE__ */ jsx48(
24421
24866
  "path",
24422
24867
  {
24423
24868
  d: "M84.3023 8.9796L85.6681 9.55271C85.3778 10.0923 84.9498 10.5129 84.3879 10.8217C83.8259 11.1344 83.2044 11.2944 82.5197 11.2944C81.8349 11.2944 81.2506 11.1567 80.6998 10.8701C80.1491 10.5873 79.7025 10.1742 79.3713 9.6383C79.04 9.09868 78.8689 8.48835 78.8689 7.79987C78.8689 7.11138 79.0363 6.49361 79.3713 5.95771C79.7025 5.41809 80.1528 5.00873 80.6998 4.72589C81.2469 4.44305 81.8609 4.30164 82.5197 4.30164C83.1784 4.30164 83.8259 4.45794 84.3916 4.77427C84.9535 5.08688 85.3815 5.51113 85.6681 6.05075L84.3023 6.62015C83.9413 5.93539 83.2863 5.56323 82.5197 5.56323C81.9205 5.56323 81.4181 5.77536 81.0013 6.19961C80.5845 6.62387 80.3798 7.15977 80.3798 7.80731C80.3798 8.45486 80.5845 8.99076 81.0013 9.40757C81.4181 9.83182 81.9205 10.0439 82.5197 10.0439C83.2863 10.0439 83.9413 9.66807 84.3023 8.98703V8.9796Z",
24424
24869
  fill: "currentColor"
24425
24870
  }
24426
24871
  ),
24427
- /* @__PURE__ */ jsx47(
24872
+ /* @__PURE__ */ jsx48(
24428
24873
  "path",
24429
24874
  {
24430
24875
  d: "M5.93091 10.8141L7.2758 9.41753L3.83719 5.84667C2.98568 4.9624 2.98568 3.52157 3.83719 2.63731C4.68871 1.75305 6.07617 1.75305 6.92769 2.63731L10.3663 6.20817L11.7112 4.81156L8.27258 1.24069C6.67975 -0.413401 4.08513 -0.413401 2.4923 1.24069C0.899472 2.89479 0.899472 5.58919 2.4923 7.24328L5.93091 10.8141Z",
24431
24876
  fill: "currentColor"
24432
24877
  }
24433
24878
  ),
24434
- /* @__PURE__ */ jsx47(
24879
+ /* @__PURE__ */ jsx48(
24435
24880
  "path",
24436
24881
  {
24437
24882
  d: "M6.05827 3.54751C5.68761 3.1626 5.08404 3.1626 4.71338 3.54751C4.34272 3.93243 4.34272 4.55921 4.71338 4.94413L9.02103 9.41746L5.93054 12.6268L1.62288 8.15349C1.25223 7.76857 0.648653 7.76857 0.277994 8.15349C-0.0926647 8.5384 -0.0926647 9.16519 0.277994 9.5501L5.93054 15.4201L11.7108 9.41746L6.05827 3.54751Z",
@@ -24445,10 +24890,10 @@ var Badge = () => {
24445
24890
  };
24446
24891
 
24447
24892
  // src/components/layout/RenderLayout.tsx
24448
- import { jsx as jsx48, jsxs as jsxs35 } from "react/jsx-runtime";
24893
+ import { jsx as jsx49, jsxs as jsxs35 } from "react/jsx-runtime";
24449
24894
  var Disabled = () => {
24450
24895
  const { t: t3 } = useTranslation();
24451
- return /* @__PURE__ */ jsx48(Box, { $width: "max-content", $height: "max-content", children: /* @__PURE__ */ jsx48(Card, { children: /* @__PURE__ */ jsxs35(
24896
+ return /* @__PURE__ */ jsx49(Box, { $width: "max-content", $height: "max-content", children: /* @__PURE__ */ jsx49(Card, { children: /* @__PURE__ */ jsxs35(
24452
24897
  Element,
24453
24898
  {
24454
24899
  as: Flex,
@@ -24457,8 +24902,8 @@ var Disabled = () => {
24457
24902
  $alignItems: "center",
24458
24903
  $whiteSpace: "nowrap",
24459
24904
  children: [
24460
- /* @__PURE__ */ jsx48(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx48(Text, { as: "h1", display: "heading1", children: t3("Portal not found") }) }),
24461
- /* @__PURE__ */ jsx48(Text, { as: "p", children: t3("Please try again later.") })
24905
+ /* @__PURE__ */ jsx49(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx49(Text, { as: "h1", display: "heading1", children: t3("Portal not found") }) }),
24906
+ /* @__PURE__ */ jsx49(Text, { as: "p", children: t3("Please try again later.") })
24462
24907
  ]
24463
24908
  }
24464
24909
  ) }) });
@@ -24467,7 +24912,7 @@ var RenderLayout = ({ children }) => {
24467
24912
  const { layout } = useEmbed();
24468
24913
  switch (layout) {
24469
24914
  case "disabled":
24470
- return /* @__PURE__ */ jsx48(Disabled, {});
24915
+ return /* @__PURE__ */ jsx49(Disabled, {});
24471
24916
  default:
24472
24917
  return children;
24473
24918
  }
@@ -24492,7 +24937,7 @@ var StyledViewport = gt.div.withConfig({
24492
24937
  `;
24493
24938
 
24494
24939
  // src/components/layout/viewport/Viewport.tsx
24495
- import { Fragment as Fragment16, jsx as jsx49, jsxs as jsxs36 } from "react/jsx-runtime";
24940
+ import { Fragment as Fragment16, jsx as jsx50, jsxs as jsxs36 } from "react/jsx-runtime";
24496
24941
  var Viewport = forwardRef8(
24497
24942
  ({ children, portal, ...props }, ref) => {
24498
24943
  portal = portal || document.body;
@@ -24515,19 +24960,19 @@ var Viewport = forwardRef8(
24515
24960
  const isBadgeVisible = !data?.capabilities?.badgeVisibility || settings.badge?.visibility !== "hidden";
24516
24961
  return /* @__PURE__ */ jsxs36(Fragment16, { children: [
24517
24962
  /* @__PURE__ */ jsxs36(StyledViewport, { ref, ...props, children: [
24518
- /* @__PURE__ */ jsx49(RenderLayout, { children }),
24519
- isBadgeVisible && /* @__PURE__ */ jsx49(Badge, {})
24963
+ /* @__PURE__ */ jsx50(RenderLayout, { children }),
24964
+ isBadgeVisible && /* @__PURE__ */ jsx50(Badge, {})
24520
24965
  ] }),
24521
- layout === "checkout" && createPortal3(/* @__PURE__ */ jsx49(CheckoutDialog, { top }), portal),
24522
- layout === "unsubscribe" && createPortal3(/* @__PURE__ */ jsx49(UnsubscribeDialog, { top }), portal),
24523
- layout === "payment" && createPortal3(/* @__PURE__ */ jsx49(PaymentDialog, { top }), portal)
24966
+ layout === "checkout" && createPortal3(/* @__PURE__ */ jsx50(CheckoutDialog, { top }), portal),
24967
+ layout === "unsubscribe" && createPortal3(/* @__PURE__ */ jsx50(UnsubscribeDialog, { top }), portal),
24968
+ layout === "payment" && createPortal3(/* @__PURE__ */ jsx50(PaymentDialog, { top }), portal)
24524
24969
  ] });
24525
24970
  }
24526
24971
  );
24527
24972
  Viewport.displayName = "Viewport";
24528
24973
 
24529
24974
  // src/components/elements/button/Button.tsx
24530
- import { jsx as jsx50 } from "react/jsx-runtime";
24975
+ import { jsx as jsx51 } from "react/jsx-runtime";
24531
24976
  var resolveDesignProps = (props) => {
24532
24977
  return {
24533
24978
  button: {
@@ -24558,7 +25003,7 @@ var ButtonElement = forwardRef9(({ children, className, ...rest }, ref) => {
24558
25003
  variant: "text"
24559
25004
  }
24560
25005
  };
24561
- return /* @__PURE__ */ jsx50(
25006
+ return /* @__PURE__ */ jsx51(
24562
25007
  Element,
24563
25008
  {
24564
25009
  as: Flex,
@@ -24566,7 +25011,7 @@ var ButtonElement = forwardRef9(({ children, className, ...rest }, ref) => {
24566
25011
  className,
24567
25012
  $flexDirection: "column",
24568
25013
  $gap: "2rem",
24569
- children: /* @__PURE__ */ jsx50(
25014
+ children: /* @__PURE__ */ jsx51(
24570
25015
  Button,
24571
25016
  {
24572
25017
  as: "a",
@@ -24591,7 +25036,7 @@ import { Fragment as Fragment19, forwardRef as forwardRef10, useMemo as useMemo2
24591
25036
 
24592
25037
  // src/components/elements/included-features/UsageDetails.tsx
24593
25038
  import { Fragment as Fragment17, useMemo as useMemo25 } from "react";
24594
- import { Fragment as Fragment18, jsx as jsx51, jsxs as jsxs37 } from "react/jsx-runtime";
25039
+ import { Fragment as Fragment18, jsx as jsx52, jsxs as jsxs37 } from "react/jsx-runtime";
24595
25040
  var UsageDetails = ({ entitlement, layout }) => {
24596
25041
  const {
24597
25042
  allocation,
@@ -24728,7 +25173,7 @@ var UsageDetails = ({ entitlement, layout }) => {
24728
25173
  let index = 0;
24729
25174
  if (priceBehavior === EntitlementPriceBehavior.PayInAdvance && !tiered && typeof period === "string" && typeof price === "number") {
24730
25175
  acc.push(
24731
- /* @__PURE__ */ jsx51(Fragment17, { children: packageSize > 1 ? t3("$X/Y units/period", {
25176
+ /* @__PURE__ */ jsx52(Fragment17, { children: packageSize > 1 ? t3("$X/Y units/period", {
24732
25177
  cost: formatCurrency(price, { locale, currency }),
24733
25178
  size: packageSize,
24734
25179
  units: getFeatureName(feature, locale, packageSize),
@@ -24742,7 +25187,7 @@ var UsageDetails = ({ entitlement, layout }) => {
24742
25187
  index += 1;
24743
25188
  } else if ((priceBehavior === EntitlementPriceBehavior.PayAsYouGo || priceBehavior === EntitlementPriceBehavior.Overage || priceBehavior === EntitlementPriceBehavior.Tier || priceBehavior === EntitlementPriceBehavior.CreditBurndown || tiered) && typeof usage === "number") {
24744
25189
  acc.push(
24745
- /* @__PURE__ */ jsx51(Fragment17, { children: t3("X units used", {
25190
+ /* @__PURE__ */ jsx52(Fragment17, { children: t3("X units used", {
24746
25191
  amount: usage,
24747
25192
  units: getFeatureName(feature, locale, usage)
24748
25193
  }) }, index)
@@ -24752,7 +25197,7 @@ var UsageDetails = ({ entitlement, layout }) => {
24752
25197
  if (typeof cost === "number" && cost > 0) {
24753
25198
  acc.push(
24754
25199
  /* @__PURE__ */ jsxs37(Fragment17, { children: [
24755
- acc.length > 0 && /* @__PURE__ */ jsx51(Fragment18, { children: " \u2022 " }),
25200
+ acc.length > 0 && /* @__PURE__ */ jsx52(Fragment18, { children: " \u2022 " }),
24756
25201
  formatCurrency(cost, { locale, currency })
24757
25202
  ] }, index)
24758
25203
  );
@@ -24768,7 +25213,7 @@ var UsageDetails = ({ entitlement, layout }) => {
24768
25213
  if (metricResetAt) {
24769
25214
  acc.push(
24770
25215
  /* @__PURE__ */ jsxs37(Fragment17, { children: [
24771
- acc.length > 0 && /* @__PURE__ */ jsx51(Fragment18, { children: " \u2022 " }),
25216
+ acc.length > 0 && /* @__PURE__ */ jsx52(Fragment18, { children: " \u2022 " }),
24772
25217
  t3("Resets", {
24773
25218
  date: toPrettyDate(metricResetAt, {
24774
25219
  locale,
@@ -24810,7 +25255,7 @@ var UsageDetails = ({ entitlement, layout }) => {
24810
25255
  return null;
24811
25256
  }
24812
25257
  return /* @__PURE__ */ jsxs37(Fragment18, { children: [
24813
- layout.entitlement.isVisible && /* @__PURE__ */ jsx51(
25258
+ layout.entitlement.isVisible && /* @__PURE__ */ jsx52(
24814
25259
  Flex,
24815
25260
  {
24816
25261
  $marginTop: "0.75rem",
@@ -24822,7 +25267,7 @@ var UsageDetails = ({ entitlement, layout }) => {
24822
25267
  },
24823
25268
  children: /* @__PURE__ */ jsxs37(Text, { display: layout.entitlement.fontStyle, children: [
24824
25269
  text,
24825
- entitlementHasHardLimit(entitlement) && entitlement.allocationType === EntitlementValueType.Numeric && /* @__PURE__ */ jsx51(
25270
+ entitlementHasHardLimit(entitlement) && entitlement.allocationType === EntitlementValueType.Numeric && /* @__PURE__ */ jsx52(
24826
25271
  HardLimitTooltip,
24827
25272
  {
24828
25273
  feature: entitlement.feature,
@@ -24832,7 +25277,7 @@ var UsageDetails = ({ entitlement, layout }) => {
24832
25277
  ] })
24833
25278
  }
24834
25279
  ),
24835
- layout.usage.isVisible && usageText && /* @__PURE__ */ jsx51(
25280
+ layout.usage.isVisible && usageText && /* @__PURE__ */ jsx52(
24836
25281
  Flex,
24837
25282
  {
24838
25283
  $viewport: {
@@ -24842,7 +25287,7 @@ var UsageDetails = ({ entitlement, layout }) => {
24842
25287
  },
24843
25288
  children: /* @__PURE__ */ jsxs37(Text, { display: layout.usage.fontStyle, children: [
24844
25289
  usageText,
24845
- (priceBehavior === EntitlementPriceBehavior.Tier || tiered) && /* @__PURE__ */ jsx51(
25290
+ (priceBehavior === EntitlementPriceBehavior.Tier || tiered) && /* @__PURE__ */ jsx52(
24846
25291
  PricingTiersTooltip,
24847
25292
  {
24848
25293
  feature,
@@ -24859,7 +25304,7 @@ var UsageDetails = ({ entitlement, layout }) => {
24859
25304
  };
24860
25305
 
24861
25306
  // src/components/elements/included-features/IncludedFeatures.tsx
24862
- import { jsx as jsx52, jsxs as jsxs38 } from "react/jsx-runtime";
25307
+ import { jsx as jsx53, jsxs as jsxs38 } from "react/jsx-runtime";
24863
25308
  function resolveDesignProps2(props) {
24864
25309
  return {
24865
25310
  // there is a typescript bug with `DeepPartial` so we must cast to `string[] | undefined`
@@ -24929,8 +25374,8 @@ var IncludedFeatures = forwardRef10(({ className, ...rest }, ref) => {
24929
25374
  return null;
24930
25375
  }
24931
25376
  return /* @__PURE__ */ jsxs38(Element, { ref, className, $containerType: "inline-size", children: [
24932
- props.header.isVisible && /* @__PURE__ */ jsx52(Box, { $marginBottom: "1.5rem", children: /* @__PURE__ */ jsx52(Text, { display: props.header.fontStyle, children: t3(props.header.text) }) }),
24933
- /* @__PURE__ */ jsx52(
25377
+ props.header.isVisible && /* @__PURE__ */ jsx53(Box, { $marginBottom: "1.5rem", children: /* @__PURE__ */ jsx53(Text, { display: props.header.fontStyle, children: t3(props.header.text) }) }),
25378
+ /* @__PURE__ */ jsx53(
24934
25379
  Box,
24935
25380
  {
24936
25381
  $display: "grid",
@@ -24944,7 +25389,7 @@ var IncludedFeatures = forwardRef10(({ className, ...rest }, ref) => {
24944
25389
  },
24945
25390
  children: visibleFeatureUsage.items.map((entitlement, index) => {
24946
25391
  return /* @__PURE__ */ jsxs38(Fragment19, { children: [
24947
- props.icons.isVisible && entitlement.feature?.icon && /* @__PURE__ */ jsx52(
25392
+ props.icons.isVisible && entitlement.feature?.icon && /* @__PURE__ */ jsx53(
24948
25393
  Icon3,
24949
25394
  {
24950
25395
  name: entitlement.feature.icon,
@@ -24961,12 +25406,12 @@ var IncludedFeatures = forwardRef10(({ className, ...rest }, ref) => {
24961
25406
  $alignSelf: "baseline",
24962
25407
  $gap: "0.25rem",
24963
25408
  children: [
24964
- entitlement.feature?.name && /* @__PURE__ */ jsx52(Text, { display: props.icons.fontStyle, children: entitlement.feature.name }),
24965
- props.description.isVisible && entitlement.feature?.description && /* @__PURE__ */ jsx52(Text, { display: props.description.fontStyle, children: entitlement.feature.description }),
25409
+ entitlement.feature?.name && /* @__PURE__ */ jsx53(Text, { display: props.icons.fontStyle, children: entitlement.feature.name }),
25410
+ props.description.isVisible && entitlement.feature?.description && /* @__PURE__ */ jsx53(Text, { display: props.description.fontStyle, children: entitlement.feature.description }),
24966
25411
  getPerLicenseGrantsForFeature(
24967
25412
  plan?.includedCreditGrants,
24968
25413
  entitlement.feature
24969
- ).map((grant, grantIndex) => /* @__PURE__ */ jsx52(Text, { display: props.description.fontStyle, children: t3("Includes X credits per license", {
25414
+ ).map((grant, grantIndex) => /* @__PURE__ */ jsx53(Text, { display: props.description.fontStyle, children: t3("Includes X credits per license", {
24970
25415
  amount: grant.creditAmount,
24971
25416
  creditName: getFeatureName(
24972
25417
  {
@@ -24979,7 +25424,7 @@ var IncludedFeatures = forwardRef10(({ className, ...rest }, ref) => {
24979
25424
  ),
24980
25425
  licenseName: entitlement.feature ? getFeatureName(entitlement.feature, locale, 1) : ""
24981
25426
  }) }, grantIndex)),
24982
- props.entitlementExpiration.isVisible && entitlement.entitlementExpirationDate && /* @__PURE__ */ jsx52(
25427
+ props.entitlementExpiration.isVisible && entitlement.entitlementExpirationDate && /* @__PURE__ */ jsx53(
24983
25428
  Text,
24984
25429
  {
24985
25430
  as: "em",
@@ -24998,7 +25443,7 @@ var IncludedFeatures = forwardRef10(({ className, ...rest }, ref) => {
24998
25443
  ]
24999
25444
  }
25000
25445
  ),
25001
- /* @__PURE__ */ jsx52(
25446
+ /* @__PURE__ */ jsx53(
25002
25447
  Flex,
25003
25448
  {
25004
25449
  $gridColumn: "span 2",
@@ -25015,14 +25460,14 @@ var IncludedFeatures = forwardRef10(({ className, ...rest }, ref) => {
25015
25460
  $marginLeft: 0
25016
25461
  }
25017
25462
  },
25018
- children: /* @__PURE__ */ jsx52(UsageDetails, { entitlement, layout: props })
25463
+ children: /* @__PURE__ */ jsx53(UsageDetails, { entitlement, layout: props })
25019
25464
  }
25020
25465
  )
25021
25466
  ] }, index);
25022
25467
  })
25023
25468
  }
25024
25469
  ),
25025
- visibleFeatureUsage.canExpand && /* @__PURE__ */ jsx52(
25470
+ visibleFeatureUsage.canExpand && /* @__PURE__ */ jsx53(
25026
25471
  ExpandListToggle,
25027
25472
  {
25028
25473
  isExpanded: visibleFeatureUsage.isExpanded,
@@ -25036,7 +25481,7 @@ IncludedFeatures.displayName = "IncludedFeatures";
25036
25481
 
25037
25482
  // src/components/elements/invoices/Invoices.tsx
25038
25483
  import { forwardRef as forwardRef11, useCallback as useCallback13, useEffect as useEffect5, useMemo as useMemo27, useState as useState16 } from "react";
25039
- import { Fragment as Fragment20, jsx as jsx53, jsxs as jsxs39 } from "react/jsx-runtime";
25484
+ import { Fragment as Fragment20, jsx as jsx54, jsxs as jsxs39 } from "react/jsx-runtime";
25040
25485
  function resolveDesignProps3(props) {
25041
25486
  return {
25042
25487
  header: {
@@ -25146,7 +25591,7 @@ var Invoices = forwardRef11(({ className, ...rest }, ref) => {
25146
25591
  return null;
25147
25592
  }
25148
25593
  return /* @__PURE__ */ jsxs39(Element, { ref, className, children: [
25149
- /* @__PURE__ */ jsx53(Flex, { as: TransitionBox, $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ jsx53(Loader, { $color: settings.theme.primary, $isLoading: isLoading }) }),
25594
+ /* @__PURE__ */ jsx54(Flex, { as: TransitionBox, $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ jsx54(Loader, { $color: settings.theme.primary, $isLoading: isLoading }) }),
25150
25595
  error ? /* @__PURE__ */ jsxs39(
25151
25596
  Flex,
25152
25597
  {
@@ -25156,8 +25601,8 @@ var Invoices = forwardRef11(({ className, ...rest }, ref) => {
25156
25601
  $alignItems: "center",
25157
25602
  $gap: "1rem",
25158
25603
  children: [
25159
- /* @__PURE__ */ jsx53(Text, { $weight: 500, $color: "#DB6669", children: t3("There was a problem retrieving your invoices.") }),
25160
- /* @__PURE__ */ jsx53(
25604
+ /* @__PURE__ */ jsx54(Text, { $weight: 500, $color: "#DB6669", children: t3("There was a problem retrieving your invoices.") }),
25605
+ /* @__PURE__ */ jsx54(
25161
25606
  Button,
25162
25607
  {
25163
25608
  type: "button",
@@ -25170,10 +25615,10 @@ var Invoices = forwardRef11(({ className, ...rest }, ref) => {
25170
25615
  )
25171
25616
  ]
25172
25617
  }
25173
- ) : !isLoading && /* @__PURE__ */ jsx53(TransitionBox, { children: /* @__PURE__ */ jsxs39(Flex, { $flexDirection: "column", $gap: "1rem", children: [
25174
- props.header.isVisible && /* @__PURE__ */ jsx53(Flex, { $justifyContent: "space-between", $alignItems: "center", children: /* @__PURE__ */ jsx53(Text, { display: props.header.fontStyle, children: t3("Invoices") }) }),
25618
+ ) : !isLoading && /* @__PURE__ */ jsx54(TransitionBox, { children: /* @__PURE__ */ jsxs39(Flex, { $flexDirection: "column", $gap: "1rem", children: [
25619
+ props.header.isVisible && /* @__PURE__ */ jsx54(Flex, { $justifyContent: "space-between", $alignItems: "center", children: /* @__PURE__ */ jsx54(Text, { display: props.header.fontStyle, children: t3("Invoices") }) }),
25175
25620
  invoices.length > 0 ? /* @__PURE__ */ jsxs39(Fragment20, { children: [
25176
- /* @__PURE__ */ jsx53(Flex, { $flexDirection: "column", $gap: "0.5rem", children: visibleInvoices.items.map(
25621
+ /* @__PURE__ */ jsx54(Flex, { $flexDirection: "column", $gap: "0.5rem", children: visibleInvoices.items.map(
25177
25622
  ({ date, amount, amountDue, url }, index) => {
25178
25623
  return /* @__PURE__ */ jsxs39(
25179
25624
  Flex,
@@ -25181,7 +25626,7 @@ var Invoices = forwardRef11(({ className, ...rest }, ref) => {
25181
25626
  $justifyContent: "space-between",
25182
25627
  $alignItems: "center",
25183
25628
  children: [
25184
- props.date.isVisible && /* @__PURE__ */ jsx53(
25629
+ props.date.isVisible && /* @__PURE__ */ jsx54(
25185
25630
  Text,
25186
25631
  {
25187
25632
  display: props.date.fontStyle,
@@ -25195,10 +25640,10 @@ var Invoices = forwardRef11(({ className, ...rest }, ref) => {
25195
25640
  children: date
25196
25641
  }
25197
25642
  ),
25198
- props.amount.isVisible && /* @__PURE__ */ jsx53(
25643
+ props.amount.isVisible && /* @__PURE__ */ jsx54(
25199
25644
  Tooltip,
25200
25645
  {
25201
- trigger: /* @__PURE__ */ jsx53(Text, { display: props.amount.fontStyle, children: amount }),
25646
+ trigger: /* @__PURE__ */ jsx54(Text, { display: props.amount.fontStyle, children: amount }),
25202
25647
  content: amountDue < 0 ? t3("Invoice credit tooltip") : t3("Invoice charge tooltip")
25203
25648
  }
25204
25649
  )
@@ -25208,7 +25653,7 @@ var Invoices = forwardRef11(({ className, ...rest }, ref) => {
25208
25653
  );
25209
25654
  }
25210
25655
  ) }),
25211
- props.collapse.isVisible && visibleInvoices.canExpand && /* @__PURE__ */ jsx53(
25656
+ props.collapse.isVisible && visibleInvoices.canExpand && /* @__PURE__ */ jsx54(
25212
25657
  ExpandListToggle,
25213
25658
  {
25214
25659
  isExpanded: visibleInvoices.isExpanded,
@@ -25219,7 +25664,7 @@ var Invoices = forwardRef11(({ className, ...rest }, ref) => {
25219
25664
  $gap: "0.5rem"
25220
25665
  }
25221
25666
  )
25222
- ] }) : /* @__PURE__ */ jsx53(Text, { display: "heading2", children: t3("No invoices created yet") })
25667
+ ] }) : /* @__PURE__ */ jsx54(Text, { display: "heading2", children: t3("No invoices created yet") })
25223
25668
  ] }) })
25224
25669
  ] });
25225
25670
  });
@@ -25229,7 +25674,7 @@ Invoices.displayName = "Invoices";
25229
25674
  import { forwardRef as forwardRef12, useCallback as useCallback14, useMemo as useMemo29, useRef as useRef12, useState as useState18 } from "react";
25230
25675
 
25231
25676
  // src/components/elements/metered-features/Meter.tsx
25232
- import { jsx as jsx54 } from "react/jsx-runtime";
25677
+ import { jsx as jsx55 } from "react/jsx-runtime";
25233
25678
  var Meter = ({ entitlement }) => {
25234
25679
  const { allocation, priceBehavior, softLimit, usage } = entitlement;
25235
25680
  const { warningThresholdConfig } = useEmbed();
@@ -25242,7 +25687,7 @@ var Meter = ({ entitlement }) => {
25242
25687
  return null;
25243
25688
  }
25244
25689
  const progress = (priceBehavior === EntitlementPriceBehavior.Overage && usage > limit ? Math.min(usage, limit) / Math.max(usage, limit) : usage / limit) * 100;
25245
- const meter = /* @__PURE__ */ jsx54(
25690
+ const meter = /* @__PURE__ */ jsx55(
25246
25691
  ProgressBar,
25247
25692
  {
25248
25693
  progress,
@@ -25259,7 +25704,7 @@ var Meter = ({ entitlement }) => {
25259
25704
  };
25260
25705
 
25261
25706
  // src/components/elements/metered-features/PriceDetails.tsx
25262
- import { Fragment as Fragment21, jsx as jsx55, jsxs as jsxs40 } from "react/jsx-runtime";
25707
+ import { Fragment as Fragment21, jsx as jsx56, jsxs as jsxs40 } from "react/jsx-runtime";
25263
25708
  var PriceDetails = ({
25264
25709
  entitlement,
25265
25710
  usageDetails,
@@ -25321,8 +25766,8 @@ var PriceDetails = ({
25321
25766
  t3("Tier"),
25322
25767
  ": ",
25323
25768
  currentTier?.from || 1,
25324
- typeof currentTier?.to === "number" && (currentTier.from || 1) !== currentTier.to && /* @__PURE__ */ jsx55(Fragment21, { children: currentTier.to === Infinity ? "+" : `\u2013${currentTier.to}` }),
25325
- /* @__PURE__ */ jsx55(
25769
+ typeof currentTier?.to === "number" && (currentTier.from || 1) !== currentTier.to && /* @__PURE__ */ jsx56(Fragment21, { children: currentTier.to === Infinity ? "+" : `\u2013${currentTier.to}` }),
25770
+ /* @__PURE__ */ jsx56(
25326
25771
  PricingTiersTooltip,
25327
25772
  {
25328
25773
  period,
@@ -25333,7 +25778,7 @@ var PriceDetails = ({
25333
25778
  }
25334
25779
  )
25335
25780
  ] }),
25336
- typeof amount === "number" && /* @__PURE__ */ jsx55(Fragment21, { children: priceBehavior === EntitlementPriceBehavior.Overage ? /* @__PURE__ */ jsxs40(Text, { children: [
25781
+ typeof amount === "number" && /* @__PURE__ */ jsx56(Fragment21, { children: priceBehavior === EntitlementPriceBehavior.Overage ? /* @__PURE__ */ jsxs40(Text, { children: [
25337
25782
  formatNumber(amount, { locale }),
25338
25783
  " ",
25339
25784
  getFeatureName(feature, locale, amount),
@@ -25360,7 +25805,7 @@ var PriceDetails = ({
25360
25805
 
25361
25806
  // src/components/elements/metered-features/UsageByUser.tsx
25362
25807
  import { useEffect as useEffect6, useMemo as useMemo28, useState as useState17 } from "react";
25363
- import { jsx as jsx56, jsxs as jsxs41 } from "react/jsx-runtime";
25808
+ import { jsx as jsx57, jsxs as jsxs41 } from "react/jsx-runtime";
25364
25809
  var COLLAPSED_COUNT = 3;
25365
25810
  var EXPANDED_COUNT = 20;
25366
25811
  var toCreditSection = (data) => ({
@@ -25390,7 +25835,7 @@ var InitialAvatar = ({ label }) => {
25390
25835
  const { settings } = useEmbed();
25391
25836
  const isLightBackground = useIsLightBackground();
25392
25837
  const initial = (label.trim()[0] ?? "?").toUpperCase();
25393
- return /* @__PURE__ */ jsx56(
25838
+ return /* @__PURE__ */ jsx57(
25394
25839
  Flex,
25395
25840
  {
25396
25841
  $alignItems: "center",
@@ -25400,7 +25845,7 @@ var InitialAvatar = ({ label }) => {
25400
25845
  $flexShrink: 0,
25401
25846
  $borderRadius: "9999px",
25402
25847
  $background: isLightBackground ? "hsla(0, 0%, 0%, 0.0625)" : "hsla(0, 0%, 100%, 0.15)",
25403
- children: /* @__PURE__ */ jsx56(
25848
+ children: /* @__PURE__ */ jsx57(
25404
25849
  Text,
25405
25850
  {
25406
25851
  $size: 11,
@@ -25467,9 +25912,9 @@ var UsageByUser = ({ source, unit }) => {
25467
25912
  const formatAmount = (amount) => `${formatNumber(amount, { locale })} ${getFeatureName(unit, locale, amount)}`;
25468
25913
  if (error) {
25469
25914
  return /* @__PURE__ */ jsxs41(Flex, { $flexDirection: "column", $gap: "0.5rem", $alignItems: "flex-start", children: [
25470
- /* @__PURE__ */ jsx56(Text, { display: "heading4", children: t3("Usage by user") }),
25471
- /* @__PURE__ */ jsx56(Text, { $weight: 500, $color: "#DB6669", children: t3("There was a problem retrieving usage by user.") }),
25472
- /* @__PURE__ */ jsx56(
25915
+ /* @__PURE__ */ jsx57(Text, { display: "heading4", children: t3("Usage by user") }),
25916
+ /* @__PURE__ */ jsx57(Text, { $weight: 500, $color: "#DB6669", children: t3("There was a problem retrieving usage by user.") }),
25917
+ /* @__PURE__ */ jsx57(
25473
25918
  Button,
25474
25919
  {
25475
25920
  type: "button",
@@ -25498,8 +25943,8 @@ var UsageByUser = ({ source, unit }) => {
25498
25943
  const shouldShowToggle = hiddenUsers > 0 || Boolean(unattributed);
25499
25944
  const expandLabel = totalUsers > EXPANDED_COUNT ? t3("Show top X users", { count: EXPANDED_COUNT }) : hiddenUsers > 0 ? t3("Show all X users", { count: totalUsers }) : t3("Show all");
25500
25945
  const row = (key, label, amount, muted) => /* @__PURE__ */ jsxs41(Flex, { $alignItems: "center", $gap: "0.75rem", $padding: "0.5rem 0", children: [
25501
- /* @__PURE__ */ jsx56(InitialAvatar, { label: muted ? "?" : label }),
25502
- /* @__PURE__ */ jsx56(Box, { $flexGrow: 1, $overflow: "hidden", children: /* @__PURE__ */ jsx56(
25946
+ /* @__PURE__ */ jsx57(InitialAvatar, { label: muted ? "?" : label }),
25947
+ /* @__PURE__ */ jsx57(Box, { $flexGrow: 1, $overflow: "hidden", children: /* @__PURE__ */ jsx57(
25503
25948
  Text,
25504
25949
  {
25505
25950
  display: "text",
@@ -25507,7 +25952,7 @@ var UsageByUser = ({ source, unit }) => {
25507
25952
  children: label
25508
25953
  }
25509
25954
  ) }),
25510
- /* @__PURE__ */ jsx56(
25955
+ /* @__PURE__ */ jsx57(
25511
25956
  Text,
25512
25957
  {
25513
25958
  display: "text",
@@ -25518,16 +25963,16 @@ var UsageByUser = ({ source, unit }) => {
25518
25963
  )
25519
25964
  ] }, key);
25520
25965
  return /* @__PURE__ */ jsxs41(Flex, { $flexDirection: "column", $gap: "0.25rem", children: [
25521
- /* @__PURE__ */ jsx56(Text, { display: "heading4", children: t3("Usage by user") }),
25522
- /* @__PURE__ */ jsx56(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx56(Text, { display: "text", $color: mutedColor(isLightBackground), children: t3("X used by your team this period", {
25966
+ /* @__PURE__ */ jsx57(Text, { display: "heading4", children: t3("Usage by user") }),
25967
+ /* @__PURE__ */ jsx57(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx57(Text, { display: "text", $color: mutedColor(isLightBackground), children: t3("X used by your team this period", {
25523
25968
  amount: formatAmount(total)
25524
25969
  }) }) }),
25525
25970
  visible.map(
25526
25971
  (entry, index) => row(entry.id || `row-${index}`, entry.label, entry.amount)
25527
25972
  ),
25528
25973
  expanded && unattributed && row("unattributed", t3("Unattributed"), unattributed.amount, true),
25529
- expanded && remaining > 0 && /* @__PURE__ */ jsx56(Box, { $marginTop: "0.25rem", children: /* @__PURE__ */ jsx56(Text, { display: "text", $color: mutedColor(isLightBackground), children: t3("plus X more", { count: remaining }) }) }),
25530
- shouldShowToggle && /* @__PURE__ */ jsx56(
25974
+ expanded && remaining > 0 && /* @__PURE__ */ jsx57(Box, { $marginTop: "0.25rem", children: /* @__PURE__ */ jsx57(Text, { display: "text", $color: mutedColor(isLightBackground), children: t3("plus X more", { count: remaining }) }) }),
25975
+ shouldShowToggle && /* @__PURE__ */ jsx57(
25531
25976
  ExpandListToggle,
25532
25977
  {
25533
25978
  isExpanded: expanded,
@@ -25560,7 +26005,7 @@ var Container2 = gt.div`
25560
26005
  `;
25561
26006
 
25562
26007
  // src/components/elements/metered-features/MeteredFeatures.tsx
25563
- import { Fragment as Fragment22, jsx as jsx57, jsxs as jsxs42 } from "react/jsx-runtime";
26008
+ import { Fragment as Fragment22, jsx as jsx58, jsxs as jsxs42 } from "react/jsx-runtime";
25564
26009
  var Limit = ({ entitlement, usageDetails, fontStyle }) => {
25565
26010
  const { t: t3, locale } = useTranslation();
25566
26011
  const { data } = useEmbed();
@@ -25605,7 +26050,7 @@ var Limit = ({ entitlement, usageDetails, fontStyle }) => {
25605
26050
  }
25606
26051
  return /* @__PURE__ */ jsxs42(Text, { display: fontStyle, children: [
25607
26052
  acc.join(" \u2022 "),
25608
- entitlementHasHardLimit(entitlement) && entitlement.allocationType === EntitlementValueType.Numeric && /* @__PURE__ */ jsx57(
26053
+ entitlementHasHardLimit(entitlement) && entitlement.allocationType === EntitlementValueType.Numeric && /* @__PURE__ */ jsx58(
25609
26054
  HardLimitTooltip,
25610
26055
  {
25611
26056
  feature: entitlement.feature,
@@ -25753,7 +26198,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25753
26198
  acc.push(
25754
26199
  /* @__PURE__ */ jsxs42(Element, { as: Flex, $flexDirection: "column", $gap: "1.5rem", children: [
25755
26200
  /* @__PURE__ */ jsxs42(Flex, { $gap: "1.5rem", children: [
25756
- props.icon.isVisible && /* @__PURE__ */ jsx57(
26201
+ props.icon.isVisible && /* @__PURE__ */ jsx58(
25757
26202
  Icon3,
25758
26203
  {
25759
26204
  name: feature.icon,
@@ -25775,8 +26220,8 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25775
26220
  $gap: "1rem",
25776
26221
  children: [
25777
26222
  /* @__PURE__ */ jsxs42(Flex, { $flexDirection: "column", $gap: "0.5rem", $flexGrow: 1, children: [
25778
- /* @__PURE__ */ jsx57(Box, { children: /* @__PURE__ */ jsx57(Text, { display: props.header.fontStyle, children: feature.name }) }),
25779
- props.description.isVisible && feature.description && /* @__PURE__ */ jsx57(Box, { children: /* @__PURE__ */ jsx57(Text, { display: props.description.fontStyle, children: feature.description }) })
26223
+ /* @__PURE__ */ jsx58(Box, { children: /* @__PURE__ */ jsx58(Text, { display: props.header.fontStyle, children: feature.name }) }),
26224
+ props.description.isVisible && feature.description && /* @__PURE__ */ jsx58(Box, { children: /* @__PURE__ */ jsx58(Text, { display: props.description.fontStyle, children: feature.description }) })
25780
26225
  ] }),
25781
26226
  /* @__PURE__ */ jsxs42(
25782
26227
  Box,
@@ -25785,7 +26230,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25785
26230
  $flexGrow: 1,
25786
26231
  $textAlign: shouldWrapChildren ? "left" : "right",
25787
26232
  children: [
25788
- props.usage.isVisible && /* @__PURE__ */ jsx57(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsx57(Text, { display: props.usage.fontStyle, children: priceBehavior === EntitlementPriceBehavior.PayInAdvance ? /* @__PURE__ */ jsxs42(Fragment22, { children: [
26233
+ props.usage.isVisible && /* @__PURE__ */ jsx58(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsx58(Text, { display: props.usage.fontStyle, children: priceBehavior === EntitlementPriceBehavior.PayInAdvance ? /* @__PURE__ */ jsxs42(Fragment22, { children: [
25789
26234
  typeof limit === "number" && /* @__PURE__ */ jsxs42(Fragment22, { children: [
25790
26235
  formatNumber(limit, { locale }),
25791
26236
  " "
@@ -25798,7 +26243,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25798
26243
  " ",
25799
26244
  t3("used")
25800
26245
  ] }) }) }),
25801
- props.allocation.isVisible && /* @__PURE__ */ jsx57(
26246
+ props.allocation.isVisible && /* @__PURE__ */ jsx58(
25802
26247
  Limit,
25803
26248
  {
25804
26249
  entitlement,
@@ -25812,8 +26257,8 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25812
26257
  ]
25813
26258
  }
25814
26259
  ),
25815
- props.isVisible && priceBehavior !== EntitlementPriceBehavior.PayAsYouGo && priceBehavior !== EntitlementPriceBehavior.CreditBurndown && /* @__PURE__ */ jsx57(Meter, { entitlement }),
25816
- canCheckout && priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ jsx57(
26260
+ props.isVisible && priceBehavior !== EntitlementPriceBehavior.PayAsYouGo && priceBehavior !== EntitlementPriceBehavior.CreditBurndown && /* @__PURE__ */ jsx58(Meter, { entitlement }),
26261
+ canCheckout && priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ jsx58(
25817
26262
  Button,
25818
26263
  {
25819
26264
  type: "button",
@@ -25826,7 +26271,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25826
26271
  )
25827
26272
  ] })
25828
26273
  ] }),
25829
- (priceBehavior === EntitlementPriceBehavior.Overage || priceBehavior === EntitlementPriceBehavior.Tier) && /* @__PURE__ */ jsx57(
26274
+ (priceBehavior === EntitlementPriceBehavior.Overage || priceBehavior === EntitlementPriceBehavior.Tier) && /* @__PURE__ */ jsx58(
25830
26275
  PriceDetails,
25831
26276
  {
25832
26277
  entitlement,
@@ -25838,7 +26283,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25838
26283
  // they are denominated in the feature's own unit — the same one
25839
26284
  // the usage line above uses. A credit-burndown feature's credit
25840
26285
  // spend is broken down separately, under its credit.
25841
- /* @__PURE__ */ jsx57(
26286
+ /* @__PURE__ */ jsx58(
25842
26287
  UsageByUser,
25843
26288
  {
25844
26289
  source: { kind: "feature", id: feature.id },
@@ -25859,7 +26304,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25859
26304
  const getRowPadding = (rowIndex) => rowIndex === 0 ? `1rem ${paddingX}rem` : `0 ${paddingX}rem 1rem`;
25860
26305
  return /* @__PURE__ */ jsxs42(Element, { as: Flex, $flexDirection: "column", $gap: "1rem", children: [
25861
26306
  /* @__PURE__ */ jsxs42(Flex, { $gap: "1.5rem", children: [
25862
- props.icon.isVisible && /* @__PURE__ */ jsx57(
26307
+ props.icon.isVisible && /* @__PURE__ */ jsx58(
25863
26308
  Icon3,
25864
26309
  {
25865
26310
  name: credit.icon,
@@ -25869,12 +26314,12 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25869
26314
  }
25870
26315
  ),
25871
26316
  /* @__PURE__ */ jsxs42(Flex, { $flexDirection: "column", $gap: "2rem", $flexGrow: 1, children: [
25872
- /* @__PURE__ */ jsx57(Flex, { $flexWrap: "wrap", $gap: "1rem", children: /* @__PURE__ */ jsxs42(Flex, { $flexDirection: "column", $gap: "0.5rem", $flexGrow: 1, children: [
25873
- /* @__PURE__ */ jsx57(Box, { children: /* @__PURE__ */ jsx57(Text, { display: props.header.fontStyle, children: credit.name }) }),
25874
- props.description.isVisible && credit.description && /* @__PURE__ */ jsx57(Box, { children: /* @__PURE__ */ jsx57(Text, { display: props.description.fontStyle, children: credit.description }) })
26317
+ /* @__PURE__ */ jsx58(Flex, { $flexWrap: "wrap", $gap: "1rem", children: /* @__PURE__ */ jsxs42(Flex, { $flexDirection: "column", $gap: "0.5rem", $flexGrow: 1, children: [
26318
+ /* @__PURE__ */ jsx58(Box, { children: /* @__PURE__ */ jsx58(Text, { display: props.header.fontStyle, children: credit.name }) }),
26319
+ props.description.isVisible && credit.description && /* @__PURE__ */ jsx58(Box, { children: /* @__PURE__ */ jsx58(Text, { display: props.description.fontStyle, children: credit.description }) })
25875
26320
  ] }) }),
25876
26321
  /* @__PURE__ */ jsxs42(Flex, { $gap: "1rem", $alignItems: "center", children: [
25877
- props.usage.isVisible && /* @__PURE__ */ jsx57(Box, { $flexGrow: 1, $whiteSpace: "nowrap", children: /* @__PURE__ */ jsx57(Text, { display: props.usage.fontStyle, children: t3("X units remaining", {
26322
+ props.usage.isVisible && /* @__PURE__ */ jsx58(Box, { $flexGrow: 1, $whiteSpace: "nowrap", children: /* @__PURE__ */ jsx58(Text, { display: props.usage.fontStyle, children: t3("X units remaining", {
25878
26323
  // Balances burn at rates with up to 10 decimal
25879
26324
  // places, so a small remainder must not round to 0.
25880
26325
  amount: formatNumber(credit.total.remaining, {
@@ -25887,7 +26332,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25887
26332
  credit.total.remaining
25888
26333
  )
25889
26334
  }) }) }),
25890
- canCheckout && purchasableCreditIds.has(credit.id) && /* @__PURE__ */ jsx57(
26335
+ canCheckout && purchasableCreditIds.has(credit.id) && /* @__PURE__ */ jsx58(
25891
26336
  Button,
25892
26337
  {
25893
26338
  type: "button",
@@ -25940,7 +26385,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25940
26385
  }
25941
26386
  return (
25942
26387
  // Pulled up against the balance line despite the column's 2rem gap
25943
- /* @__PURE__ */ jsx57(Box, { $marginTop: "-1.5rem", children: /* @__PURE__ */ jsxs42(
26388
+ /* @__PURE__ */ jsx58(Box, { $marginTop: "-1.5rem", children: /* @__PURE__ */ jsxs42(
25944
26389
  Text,
25945
26390
  {
25946
26391
  style: { opacity: 0.54 },
@@ -25966,7 +26411,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25966
26411
  })()
25967
26412
  ] })
25968
26413
  ] }),
25969
- hasGrants && /* @__PURE__ */ jsx57(
26414
+ hasGrants && /* @__PURE__ */ jsx58(
25970
26415
  Box,
25971
26416
  {
25972
26417
  $width: `calc(100% + ${2 * settings.theme.card.padding / TEXT_BASE_SIZE}rem)`,
@@ -25979,8 +26424,8 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25979
26424
  children: [
25980
26425
  visibleGrants.map((grant, index2) => {
25981
26426
  const padding = getRowPadding(index2);
25982
- return /* @__PURE__ */ jsx57(Box, { $display: "table-row", children: grant.grantReason === BillingCreditGrantReason.Plan ? /* @__PURE__ */ jsxs42(Fragment22, { children: [
25983
- /* @__PURE__ */ jsx57(Box, { $display: "table-cell", $padding: padding, children: /* @__PURE__ */ jsx57(Text, { children: t3("X items included in plan", {
26427
+ return /* @__PURE__ */ jsx58(Box, { $display: "table-row", children: grant.grantReason === BillingCreditGrantReason.Plan ? /* @__PURE__ */ jsxs42(Fragment22, { children: [
26428
+ /* @__PURE__ */ jsx58(Box, { $display: "table-cell", $padding: padding, children: /* @__PURE__ */ jsx58(Text, { children: t3("X items included in plan", {
25984
26429
  amount: grant.quantity,
25985
26430
  item: getFeatureName(
25986
26431
  credit,
@@ -25988,14 +26433,14 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25988
26433
  grant.quantity
25989
26434
  )
25990
26435
  }) }) }),
25991
- /* @__PURE__ */ jsx57(
26436
+ /* @__PURE__ */ jsx58(
25992
26437
  Box,
25993
26438
  {
25994
26439
  $display: "table-cell",
25995
26440
  $padding: padding,
25996
26441
  $textAlign: "right",
25997
26442
  $whiteSpace: "nowrap",
25998
- children: grant.expiresAt && /* @__PURE__ */ jsx57(Text, { children: t3("Resets", {
26443
+ children: grant.expiresAt && /* @__PURE__ */ jsx58(Text, { children: t3("Resets", {
25999
26444
  date: toPrettyDate(
26000
26445
  modifyDate(grant.expiresAt, 1),
26001
26446
  { locale, month: "short" }
@@ -26004,14 +26449,14 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
26004
26449
  }
26005
26450
  )
26006
26451
  ] }) : /* @__PURE__ */ jsxs42(Fragment22, { children: [
26007
- /* @__PURE__ */ jsx57(Box, { $display: "table-cell", $padding: padding, children: /* @__PURE__ */ jsx57(Text, { children: grant.grantReason === BillingCreditGrantReason.Purchased ? /* @__PURE__ */ jsx57(Fragment22, { children: t3("X item bundle", {
26452
+ /* @__PURE__ */ jsx58(Box, { $display: "table-cell", $padding: padding, children: /* @__PURE__ */ jsx58(Text, { children: grant.grantReason === BillingCreditGrantReason.Purchased ? /* @__PURE__ */ jsx58(Fragment22, { children: t3("X item bundle", {
26008
26453
  amount: grant.quantity,
26009
26454
  item: getFeatureName(credit, locale, 1),
26010
26455
  createdAt: toPrettyDate(
26011
26456
  grant.createdAt,
26012
26457
  { locale, month: "short" }
26013
26458
  )
26014
- }) }) : grant.grantReason === BillingCreditGrantReason.BillingCreditAutoTopup ? /* @__PURE__ */ jsx57(Fragment22, { children: t3("X item auto-topup", {
26459
+ }) }) : grant.grantReason === BillingCreditGrantReason.BillingCreditAutoTopup ? /* @__PURE__ */ jsx58(Fragment22, { children: t3("X item auto-topup", {
26015
26460
  amount: grant.quantity,
26016
26461
  item: getFeatureName(
26017
26462
  credit,
@@ -26022,7 +26467,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
26022
26467
  grant.createdAt,
26023
26468
  { locale, month: "short" }
26024
26469
  )
26025
- }) }) : /* @__PURE__ */ jsx57(Fragment22, { children: t3("X item grant", {
26470
+ }) }) : /* @__PURE__ */ jsx58(Fragment22, { children: t3("X item grant", {
26026
26471
  amount: grant.quantity,
26027
26472
  item: getFeatureName(
26028
26473
  credit,
@@ -26034,14 +26479,14 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
26034
26479
  { locale, month: "short" }
26035
26480
  )
26036
26481
  }) }) }) }),
26037
- /* @__PURE__ */ jsx57(
26482
+ /* @__PURE__ */ jsx58(
26038
26483
  Box,
26039
26484
  {
26040
26485
  $display: "table-cell",
26041
26486
  $padding: padding,
26042
26487
  $textAlign: "right",
26043
26488
  $whiteSpace: "nowrap",
26044
- children: grant.expiresAt && /* @__PURE__ */ jsx57(Text, { children: t3("Expires", {
26489
+ children: grant.expiresAt && /* @__PURE__ */ jsx58(Text, { children: t3("Expires", {
26045
26490
  date: toPrettyDate(
26046
26491
  modifyDate(grant.expiresAt, 1),
26047
26492
  { locale, month: "short" }
@@ -26052,7 +26497,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
26052
26497
  ] }) }, grant.id);
26053
26498
  }),
26054
26499
  canExpandLedger && /* @__PURE__ */ jsxs42(Box, { $display: "table-row", children: [
26055
- /* @__PURE__ */ jsx57(Box, { $display: "table-cell", $padding: getRowPadding(1), children: /* @__PURE__ */ jsx57(
26500
+ /* @__PURE__ */ jsx58(Box, { $display: "table-cell", $padding: getRowPadding(1), children: /* @__PURE__ */ jsx58(
26056
26501
  ExpandListToggle,
26057
26502
  {
26058
26503
  isExpanded: showAllGrants,
@@ -26061,7 +26506,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
26061
26506
  iconColor: isLightBackground ? "hsla(0, 0%, 0%, 0.8)" : "hsla(0, 0%, 100%, 0.4)"
26062
26507
  }
26063
26508
  ) }),
26064
- /* @__PURE__ */ jsx57(
26509
+ /* @__PURE__ */ jsx58(
26065
26510
  Box,
26066
26511
  {
26067
26512
  $display: "table-cell",
@@ -26074,7 +26519,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
26074
26519
  )
26075
26520
  }
26076
26521
  ),
26077
- hasGrants && /* @__PURE__ */ jsx57(
26522
+ hasGrants && /* @__PURE__ */ jsx58(
26078
26523
  ExpandListToggle,
26079
26524
  {
26080
26525
  isExpanded,
@@ -26084,7 +26529,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
26084
26529
  iconColor: isLightBackground ? "hsla(0, 0%, 0%, 0.8)" : "hsla(0, 0%, 100%, 0.4)"
26085
26530
  }
26086
26531
  ),
26087
- props.usageByUser.isVisible && /* @__PURE__ */ jsx57(
26532
+ props.usageByUser.isVisible && /* @__PURE__ */ jsx58(
26088
26533
  UsageByUser,
26089
26534
  {
26090
26535
  source: { kind: "credit", id: credit.id },
@@ -26102,7 +26547,7 @@ import { forwardRef as forwardRef13, useMemo as useMemo31 } from "react";
26102
26547
 
26103
26548
  // src/components/elements/payment-method/PaymentMethodElement.tsx
26104
26549
  import { useMemo as useMemo30 } from "react";
26105
- import { jsx as jsx58, jsxs as jsxs43 } from "react/jsx-runtime";
26550
+ import { jsx as jsx59, jsxs as jsxs43 } from "react/jsx-runtime";
26106
26551
  var PaymentElement2 = ({
26107
26552
  iconName,
26108
26553
  iconTitle,
@@ -26111,7 +26556,7 @@ var PaymentElement2 = ({
26111
26556
  }) => {
26112
26557
  const { settings } = useEmbed();
26113
26558
  return /* @__PURE__ */ jsxs43(Flex, { $flexDirection: "row", $alignItems: "center", $gap: "0.5rem", children: [
26114
- iconName && /* @__PURE__ */ jsx58(
26559
+ iconName && /* @__PURE__ */ jsx59(
26115
26560
  Icon3,
26116
26561
  {
26117
26562
  name: iconName,
@@ -26120,15 +26565,15 @@ var PaymentElement2 = ({
26120
26565
  }
26121
26566
  ),
26122
26567
  (label || paymentLast4) && /* @__PURE__ */ jsxs43(Box, { $flexGrow: 1, children: [
26123
- label && /* @__PURE__ */ jsx58(Text, { children: label }),
26568
+ label && /* @__PURE__ */ jsx59(Text, { children: label }),
26124
26569
  " ",
26125
- paymentLast4 && /* @__PURE__ */ jsx58(Text, { children: paymentLast4 })
26570
+ paymentLast4 && /* @__PURE__ */ jsx59(Text, { children: paymentLast4 })
26126
26571
  ] })
26127
26572
  ] });
26128
26573
  };
26129
26574
  var EmptyPaymentElement = () => {
26130
26575
  const { t: t3 } = useTranslation();
26131
- return /* @__PURE__ */ jsx58(Text, { children: /* @__PURE__ */ jsx58(Flex, { $flexDirection: "row", $alignItems: "center", children: /* @__PURE__ */ jsx58(Flex, { $alignItems: "center", children: /* @__PURE__ */ jsx58(Box, { $lineHeight: 1, children: t3("No payment method added yet") }) }) }) });
26576
+ return /* @__PURE__ */ jsx59(Text, { children: /* @__PURE__ */ jsx59(Flex, { $flexDirection: "row", $alignItems: "center", children: /* @__PURE__ */ jsx59(Flex, { $alignItems: "center", children: /* @__PURE__ */ jsx59(Box, { $lineHeight: 1, children: t3("No payment method added yet") }) }) }) });
26132
26577
  };
26133
26578
  var getPaymentMethodData = ({
26134
26579
  accountLast4,
@@ -26210,8 +26655,8 @@ var PaymentMethodElement = ({
26210
26655
  const hasCustomFields = customCheckoutFields && customCheckoutFields.length > 0;
26211
26656
  return /* @__PURE__ */ jsxs43(Flex, { $flexDirection: "column", $gap: `${sizeFactor}rem`, children: [
26212
26657
  props.header.isVisible && /* @__PURE__ */ jsxs43(Flex, { $justifyContent: "space-between", $alignItems: "center", children: [
26213
- /* @__PURE__ */ jsx58(Text, { display: props.header.fontStyle, children: t3("Payment Details") }),
26214
- props.functions.showExpiration && typeof monthsToExpiration === "number" && monthsToExpiration < 4 && /* @__PURE__ */ jsx58(Text, { $size: 14, $color: "#DB6769", children: monthsToExpiration > 0 ? t3("Expires in X months", { months: monthsToExpiration }) : t3("Expired") })
26658
+ /* @__PURE__ */ jsx59(Text, { display: props.header.fontStyle, children: t3("Payment Details") }),
26659
+ props.functions.showExpiration && typeof monthsToExpiration === "number" && monthsToExpiration < 4 && /* @__PURE__ */ jsx59(Text, { $size: 14, $color: "#DB6769", children: monthsToExpiration > 0 ? t3("Expires in X months", { months: monthsToExpiration }) : t3("Expired") })
26215
26660
  ] }),
26216
26661
  /* @__PURE__ */ jsxs43(
26217
26662
  Flex,
@@ -26222,8 +26667,8 @@ var PaymentMethodElement = ({
26222
26667
  $padding: `${sizeFactor / 2.25}rem ${sizeFactor}rem`,
26223
26668
  $borderRadius: "9999px",
26224
26669
  children: [
26225
- paymentMethod ? /* @__PURE__ */ jsx58(PaymentElement2, { ...getPaymentMethodData(paymentMethod) }) : /* @__PURE__ */ jsx58(EmptyPaymentElement, {}),
26226
- onRemove && /* @__PURE__ */ jsx58(
26670
+ paymentMethod ? /* @__PURE__ */ jsx59(PaymentElement2, { ...getPaymentMethodData(paymentMethod) }) : /* @__PURE__ */ jsx59(EmptyPaymentElement, {}),
26671
+ onRemove && /* @__PURE__ */ jsx59(
26227
26672
  Text,
26228
26673
  {
26229
26674
  onClick: onRemove,
@@ -26233,7 +26678,7 @@ var PaymentMethodElement = ({
26233
26678
  children: t3("Remove")
26234
26679
  }
26235
26680
  ),
26236
- props.functions.allowEdit && onEdit && /* @__PURE__ */ jsx58(
26681
+ props.functions.allowEdit && onEdit && /* @__PURE__ */ jsx59(
26237
26682
  Text,
26238
26683
  {
26239
26684
  onClick: onEdit,
@@ -26246,8 +26691,8 @@ var PaymentMethodElement = ({
26246
26691
  ]
26247
26692
  }
26248
26693
  ),
26249
- hasCustomFields && /* @__PURE__ */ jsx58(Flex, { $flexDirection: "column", $gap: "0.75rem", $marginTop: "0.5rem", children: customCheckoutFields.map((field) => /* @__PURE__ */ jsxs43(Flex, { $flexDirection: "column", $gap: "0.125rem", children: [
26250
- /* @__PURE__ */ jsx58(
26694
+ hasCustomFields && /* @__PURE__ */ jsx59(Flex, { $flexDirection: "column", $gap: "0.75rem", $marginTop: "0.5rem", children: customCheckoutFields.map((field) => /* @__PURE__ */ jsxs43(Flex, { $flexDirection: "column", $gap: "0.125rem", children: [
26695
+ /* @__PURE__ */ jsx59(
26251
26696
  Text,
26252
26697
  {
26253
26698
  $size: 12,
@@ -26255,7 +26700,7 @@ var PaymentMethodElement = ({
26255
26700
  children: field.name
26256
26701
  }
26257
26702
  ),
26258
- /* @__PURE__ */ jsx58(Text, { $size: 14, children: field.value != null && field.value !== "" ? field.value : /* @__PURE__ */ jsx58(
26703
+ /* @__PURE__ */ jsx59(Text, { $size: 14, children: field.value != null && field.value !== "" ? field.value : /* @__PURE__ */ jsx59(
26259
26704
  "span",
26260
26705
  {
26261
26706
  style: {
@@ -26300,7 +26745,7 @@ var PaymentListElement = ({
26300
26745
  $borderStyle: "solid",
26301
26746
  $borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.175)" : "hsla(0, 0%, 100%, 0.175)",
26302
26747
  children: [
26303
- iconName && /* @__PURE__ */ jsx58(
26748
+ iconName && /* @__PURE__ */ jsx59(
26304
26749
  Icon3,
26305
26750
  {
26306
26751
  name: iconName,
@@ -26309,19 +26754,19 @@ var PaymentListElement = ({
26309
26754
  }
26310
26755
  ),
26311
26756
  (label || paymentLast4) && /* @__PURE__ */ jsxs43(Box, { $flexGrow: 1, children: [
26312
- label && /* @__PURE__ */ jsx58(Text, { children: label }),
26757
+ label && /* @__PURE__ */ jsx59(Text, { children: label }),
26313
26758
  " ",
26314
- paymentLast4 && /* @__PURE__ */ jsx58(Text, { children: paymentLast4 })
26759
+ paymentLast4 && /* @__PURE__ */ jsx59(Text, { children: paymentLast4 })
26315
26760
  ] }),
26316
- expirationDate && /* @__PURE__ */ jsx58(
26761
+ expirationDate && /* @__PURE__ */ jsx59(
26317
26762
  Box,
26318
26763
  {
26319
26764
  $flexGrow: 1,
26320
26765
  $color: isLightBackground ? "hsla(0, 0%, 0%, 0.375)" : "hsla(0, 0%, 100%, 0.375)",
26321
- children: /* @__PURE__ */ jsx58(Text, { children: t3("Expires", { date: expirationDate }) })
26766
+ children: /* @__PURE__ */ jsx59(Text, { children: t3("Expires", { date: expirationDate }) })
26322
26767
  }
26323
26768
  ),
26324
- /* @__PURE__ */ jsx58(Box, { children: /* @__PURE__ */ jsx58(
26769
+ /* @__PURE__ */ jsx59(Box, { children: /* @__PURE__ */ jsx59(
26325
26770
  Text,
26326
26771
  {
26327
26772
  onClick: () => {
@@ -26334,7 +26779,7 @@ var PaymentListElement = ({
26334
26779
  children: t3("Set default")
26335
26780
  }
26336
26781
  ) }),
26337
- /* @__PURE__ */ jsx58(
26782
+ /* @__PURE__ */ jsx59(
26338
26783
  Icon3,
26339
26784
  {
26340
26785
  tabIndex: 0,
@@ -26356,7 +26801,7 @@ var PaymentListElement = ({
26356
26801
  };
26357
26802
 
26358
26803
  // src/components/elements/payment-method/PaymentMethod.tsx
26359
- import { jsx as jsx59 } from "react/jsx-runtime";
26804
+ import { jsx as jsx60 } from "react/jsx-runtime";
26360
26805
  var resolveDesignProps5 = (props) => {
26361
26806
  return {
26362
26807
  header: {
@@ -26391,7 +26836,7 @@ var PaymentMethod = forwardRef13(({ children, className, portal, allowEdit = tru
26391
26836
  monthsToExpiration: monthsToExpiration2
26392
26837
  };
26393
26838
  }, [data?.company?.defaultPaymentMethod, data?.subscription?.paymentMethod]);
26394
- return /* @__PURE__ */ jsx59(Element, { ref, className, children: /* @__PURE__ */ jsx59(
26839
+ return /* @__PURE__ */ jsx60(Element, { ref, className, children: /* @__PURE__ */ jsx60(
26395
26840
  PaymentMethodElement,
26396
26841
  {
26397
26842
  customCheckoutFields: data?.customCheckoutFields,
@@ -26577,7 +27022,7 @@ var loadStripe = function loadStripe2() {
26577
27022
 
26578
27023
  // src/components/elements/payment-method/PaymentMethodDetails.tsx
26579
27024
  import { useCallback as useCallback15, useEffect as useEffect7, useMemo as useMemo32, useState as useState19 } from "react";
26580
- import { jsx as jsx60, jsxs as jsxs44 } from "react/jsx-runtime";
27025
+ import { jsx as jsx61, jsxs as jsxs44 } from "react/jsx-runtime";
26581
27026
  var resolveDesignProps6 = () => {
26582
27027
  return {
26583
27028
  header: {
@@ -26758,7 +27203,7 @@ var PaymentMethodDetails = ({
26758
27203
  $flexGrow: 1,
26759
27204
  $gap: "1.5rem",
26760
27205
  children: [
26761
- /* @__PURE__ */ jsx60(
27206
+ /* @__PURE__ */ jsx61(
26762
27207
  Flex,
26763
27208
  {
26764
27209
  $position: "absolute",
@@ -26767,7 +27212,7 @@ var PaymentMethodDetails = ({
26767
27212
  $alignItems: "center",
26768
27213
  $width: "100%",
26769
27214
  $height: "100%",
26770
- children: /* @__PURE__ */ jsx60(
27215
+ children: /* @__PURE__ */ jsx61(
26771
27216
  Loader,
26772
27217
  {
26773
27218
  $color: settings.theme.primary,
@@ -26825,7 +27270,7 @@ var PaymentMethodDetails = ({
26825
27270
  clientSecret: setupIntent?.setupIntentClientSecret
26826
27271
  },
26827
27272
  children: [
26828
- /* @__PURE__ */ jsx60(
27273
+ /* @__PURE__ */ jsx61(
26829
27274
  PaymentForm,
26830
27275
  {
26831
27276
  financeData,
@@ -26836,7 +27281,7 @@ var PaymentMethodDetails = ({
26836
27281
  }
26837
27282
  }
26838
27283
  ),
26839
- currentPaymentMethod && /* @__PURE__ */ jsx60(Box, { children: /* @__PURE__ */ jsx60(
27284
+ currentPaymentMethod && /* @__PURE__ */ jsx61(Box, { children: /* @__PURE__ */ jsx61(
26840
27285
  Text,
26841
27286
  {
26842
27287
  onClick: focusExistingPaymentMethods,
@@ -26850,7 +27295,7 @@ var PaymentMethodDetails = ({
26850
27295
  ]
26851
27296
  }
26852
27297
  ) : /* @__PURE__ */ jsxs44(Flex, { $flexDirection: "column", $gap: "2rem", children: [
26853
- /* @__PURE__ */ jsx60(
27298
+ /* @__PURE__ */ jsx61(
26854
27299
  PaymentMethodElement,
26855
27300
  {
26856
27301
  paymentMethod: currentPaymentMethod,
@@ -26864,7 +27309,7 @@ var PaymentMethodDetails = ({
26864
27309
  }
26865
27310
  ),
26866
27311
  paymentMethods.length > 0 && /* @__PURE__ */ jsxs44(Flex, { $alignItems: "center", $gap: "0.5rem", children: [
26867
- /* @__PURE__ */ jsx60(
27312
+ /* @__PURE__ */ jsx61(
26868
27313
  Text,
26869
27314
  {
26870
27315
  onClick: toggleShowPaymentMethods,
@@ -26875,7 +27320,7 @@ var PaymentMethodDetails = ({
26875
27320
  children: t3("Choose different payment method")
26876
27321
  }
26877
27322
  ),
26878
- /* @__PURE__ */ jsx60(
27323
+ /* @__PURE__ */ jsx61(
26879
27324
  Icon3,
26880
27325
  {
26881
27326
  name: showDifferentPaymentMethods ? "chevron-up" : "chevron-down",
@@ -26884,9 +27329,9 @@ var PaymentMethodDetails = ({
26884
27329
  )
26885
27330
  ] }),
26886
27331
  showDifferentPaymentMethods && /* @__PURE__ */ jsxs44(Flex, { $flexDirection: "column", $gap: "2rem", $marginTop: "-1rem", children: [
26887
- paymentMethods.length > 1 && /* @__PURE__ */ jsx60(Flex, { $flexDirection: "column", $overflow: "auto", children: (paymentMethods.filter(
27332
+ paymentMethods.length > 1 && /* @__PURE__ */ jsx61(Flex, { $flexDirection: "column", $overflow: "auto", children: (paymentMethods.filter(
26888
27333
  (paymentMethod) => paymentMethod.id !== currentPaymentMethod?.id
26889
- ) || []).map((paymentMethod) => /* @__PURE__ */ jsx60(
27334
+ ) || []).map((paymentMethod) => /* @__PURE__ */ jsx61(
26890
27335
  PaymentListElement,
26891
27336
  {
26892
27337
  paymentMethod,
@@ -26895,7 +27340,7 @@ var PaymentMethodDetails = ({
26895
27340
  },
26896
27341
  paymentMethod.id
26897
27342
  )) }),
26898
- /* @__PURE__ */ jsx60(
27343
+ /* @__PURE__ */ jsx61(
26899
27344
  Button,
26900
27345
  {
26901
27346
  type: "button",
@@ -26910,7 +27355,7 @@ var PaymentMethodDetails = ({
26910
27355
  )
26911
27356
  ] })
26912
27357
  ] }),
26913
- !isLoading && error && /* @__PURE__ */ jsx60(Box, { children: /* @__PURE__ */ jsx60(Text, { $weight: 500, $color: "#DB6669", children: error }) })
27358
+ !isLoading && error && /* @__PURE__ */ jsx61(Box, { children: /* @__PURE__ */ jsx61(Text, { $weight: 500, $color: "#DB6669", children: error }) })
26914
27359
  ]
26915
27360
  }
26916
27361
  )
@@ -26923,7 +27368,7 @@ var PaymentMethodDetails = ({
26923
27368
  import { forwardRef as forwardRef14, useMemo as useMemo34 } from "react";
26924
27369
 
26925
27370
  // src/components/elements/plan-manager/AddOn.tsx
26926
- import { jsx as jsx61, jsxs as jsxs45 } from "react/jsx-runtime";
27371
+ import { jsx as jsx62, jsxs as jsxs45 } from "react/jsx-runtime";
26927
27372
  var AddOn = ({ addOn, currency, period, layout }) => {
26928
27373
  const { t: t3, locale } = useTranslation();
26929
27374
  const resolvedPeriod = addOn.planPeriod === "one-time" ? addOn.planPeriod : period ?? addOn.planPeriod;
@@ -26935,10 +27380,10 @@ var AddOn = ({ addOn, currency, period, layout }) => {
26935
27380
  $flexWrap: "wrap",
26936
27381
  $gap: "1rem",
26937
27382
  children: [
26938
- /* @__PURE__ */ jsx61(Text, { display: layout.addOns.fontStyle, children: addOn.name }),
27383
+ /* @__PURE__ */ jsx62(Text, { display: layout.addOns.fontStyle, children: addOn.name }),
26939
27384
  typeof addOn.planPrice === "number" && resolvedPeriod && /* @__PURE__ */ jsxs45(Text, { children: [
26940
27385
  formatCurrency(addOn.planPrice, { locale, currency }),
26941
- /* @__PURE__ */ jsx61("sub", { children: resolvedPeriod === "one-time" ? shortenPeriod(resolvedPeriod, t3) : `/${shortenPeriod(resolvedPeriod, t3)}` })
27386
+ /* @__PURE__ */ jsx62("sub", { children: resolvedPeriod === "one-time" ? shortenPeriod(resolvedPeriod, t3) : `/${shortenPeriod(resolvedPeriod, t3)}` })
26942
27387
  ] })
26943
27388
  ]
26944
27389
  }
@@ -26947,7 +27392,7 @@ var AddOn = ({ addOn, currency, period, layout }) => {
26947
27392
 
26948
27393
  // src/components/elements/plan-manager/UsageDetails.tsx
26949
27394
  import { Fragment as Fragment23, useMemo as useMemo33 } from "react";
26950
- import { Fragment as Fragment24, jsx as jsx62, jsxs as jsxs46 } from "react/jsx-runtime";
27395
+ import { Fragment as Fragment24, jsx as jsx63, jsxs as jsxs46 } from "react/jsx-runtime";
26951
27396
  var UsageDetails2 = ({
26952
27397
  entitlement,
26953
27398
  period,
@@ -26979,7 +27424,7 @@ var UsageDetails2 = ({
26979
27424
  index += 1;
26980
27425
  }
26981
27426
  if (entitlement.priceBehavior === EntitlementPriceBehavior.Tier) {
26982
- acc.push(/* @__PURE__ */ jsx62(Fragment23, { children: t3("Tier-based") }, index));
27427
+ acc.push(/* @__PURE__ */ jsx63(Fragment23, { children: t3("Tier-based") }, index));
26983
27428
  index += 1;
26984
27429
  }
26985
27430
  const { price } = getEntitlementPrice(entitlement, period, currency) || {};
@@ -27047,13 +27492,13 @@ var UsageDetails2 = ({
27047
27492
  $flexWrap: "wrap",
27048
27493
  $gap: "0.5rem",
27049
27494
  children: [
27050
- /* @__PURE__ */ jsx62(Text, { display: layout.addOns.fontStyle, children: typeof quantity === "number" ? /* @__PURE__ */ jsxs46(Fragment24, { children: [
27495
+ /* @__PURE__ */ jsx63(Text, { display: layout.addOns.fontStyle, children: typeof quantity === "number" ? /* @__PURE__ */ jsxs46(Fragment24, { children: [
27051
27496
  quantity,
27052
27497
  " ",
27053
27498
  getFeatureName(entitlement.feature, locale, quantity, true)
27054
27499
  ] }) : entitlement.feature.name }),
27055
27500
  /* @__PURE__ */ jsxs46(Text, { children: [
27056
- description.length > 0 && /* @__PURE__ */ jsx62(
27501
+ description.length > 0 && /* @__PURE__ */ jsx63(
27057
27502
  Text,
27058
27503
  {
27059
27504
  style: { opacity: 0.54 },
@@ -27075,7 +27520,7 @@ var UsageDetails2 = ({
27075
27520
  shortenPeriod(period, t3)
27076
27521
  ] })
27077
27522
  ] }),
27078
- entitlement.priceBehavior === EntitlementPriceBehavior.Tier && /* @__PURE__ */ jsx62(
27523
+ entitlement.priceBehavior === EntitlementPriceBehavior.Tier && /* @__PURE__ */ jsx63(
27079
27524
  PricingTiersTooltip,
27080
27525
  {
27081
27526
  feature: entitlement.feature,
@@ -27085,7 +27530,7 @@ var UsageDetails2 = ({
27085
27530
  tiersMode: billingPrice?.tiersMode ?? void 0
27086
27531
  }
27087
27532
  ),
27088
- entitlementHasHardLimit(entitlement) && entitlement.allocationType === EntitlementValueType.Numeric && /* @__PURE__ */ jsx62(
27533
+ entitlementHasHardLimit(entitlement) && entitlement.allocationType === EntitlementValueType.Numeric && /* @__PURE__ */ jsx63(
27089
27534
  HardLimitTooltip,
27090
27535
  {
27091
27536
  feature: entitlement.feature,
@@ -27099,7 +27544,7 @@ var UsageDetails2 = ({
27099
27544
  };
27100
27545
 
27101
27546
  // src/components/elements/plan-manager/PlanManager.tsx
27102
- import { Fragment as Fragment25, jsx as jsx63, jsxs as jsxs47 } from "react/jsx-runtime";
27547
+ import { Fragment as Fragment25, jsx as jsx64, jsxs as jsxs47 } from "react/jsx-runtime";
27103
27548
  var resolveDesignProps7 = (props) => {
27104
27549
  return {
27105
27550
  header: {
@@ -27270,8 +27715,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27270
27715
  $textAlign: "center",
27271
27716
  $backgroundColor: isLightBackground ? darken(settings.theme.card.background, 0.04) : lighten(settings.theme.card.background, 0.04),
27272
27717
  children: [
27273
- typeof trialEnd.endDate !== "undefined" && /* @__PURE__ */ jsx63(Text, { as: "h3", display: "heading3", children: t3("Trial ends in", trialEnd) }),
27274
- (trialPaymentMethodRequired || postTrialPlan || currentPlan) && /* @__PURE__ */ jsx63(
27718
+ typeof trialEnd.endDate !== "undefined" && /* @__PURE__ */ jsx64(Text, { as: "h3", display: "heading3", children: t3("Trial ends in", trialEnd) }),
27719
+ (trialPaymentMethodRequired || postTrialPlan || currentPlan) && /* @__PURE__ */ jsx64(
27275
27720
  Text,
27276
27721
  {
27277
27722
  as: "p",
@@ -27295,8 +27740,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27295
27740
  $textAlign: "center",
27296
27741
  $backgroundColor: isLightBackground ? darken(settings.theme.card.background, 0.04) : lighten(settings.theme.card.background, 0.04),
27297
27742
  children: [
27298
- /* @__PURE__ */ jsx63(Text, { as: "h3", display: "heading3", children: t3("Subscription canceled") }),
27299
- typeof billingSubscription?.cancelAt === "number" && /* @__PURE__ */ jsx63(
27743
+ /* @__PURE__ */ jsx64(Text, { as: "h3", display: "heading3", children: t3("Subscription canceled") }),
27744
+ typeof billingSubscription?.cancelAt === "number" && /* @__PURE__ */ jsx64(
27300
27745
  Text,
27301
27746
  {
27302
27747
  as: "p",
@@ -27322,19 +27767,19 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27322
27767
  $textAlign: "center",
27323
27768
  $backgroundColor: isLightBackground ? darken(settings.theme.card.background, 0.04) : lighten(settings.theme.card.background, 0.04),
27324
27769
  children: [
27325
- /* @__PURE__ */ jsx63(Text, { as: "h3", display: "heading3", children: customPlanBilling.isAwaitingActivation ? t3("Custom plan awaiting payment", {
27770
+ /* @__PURE__ */ jsx64(Text, { as: "h3", display: "heading3", children: customPlanBilling.isAwaitingActivation ? t3("Custom plan awaiting payment", {
27326
27771
  plan: customPlanBilling.planName ?? t3("your plan")
27327
27772
  }) : t3("Custom plan payment due", {
27328
27773
  plan: customPlanBilling.planName ?? t3("your plan"),
27329
27774
  date: toPrettyDate(customPlanBilling.deadline, { locale })
27330
27775
  }) }),
27331
- /* @__PURE__ */ jsx63(Text, { as: "p", $size: 0.8125 * settings.theme.typography.text.fontSize, children: customPlanBilling.isAwaitingActivation ? t3("Custom plan awaiting payment description", {
27776
+ /* @__PURE__ */ jsx64(Text, { as: "p", $size: 0.8125 * settings.theme.typography.text.fontSize, children: customPlanBilling.isAwaitingActivation ? t3("Custom plan awaiting payment description", {
27332
27777
  date: toPrettyDate(customPlanBilling.deadline, { locale })
27333
27778
  }) : t3("Custom plan payment due description", {
27334
27779
  plan: customPlanBilling.planName ?? t3("your plan"),
27335
27780
  date: toPrettyDate(customPlanBilling.deadline, { locale })
27336
27781
  }) }),
27337
- customPlanBilling.billing.stripeInvoiceUrl && /* @__PURE__ */ jsx63(
27782
+ customPlanBilling.billing.stripeInvoiceUrl && /* @__PURE__ */ jsx64(
27338
27783
  Button,
27339
27784
  {
27340
27785
  as: "a",
@@ -27358,10 +27803,10 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27358
27803
  $textAlign: "center",
27359
27804
  $backgroundColor: isLightBackground ? darken(settings.theme.card.background, 0.04) : lighten(settings.theme.card.background, 0.04),
27360
27805
  children: [
27361
- /* @__PURE__ */ jsx63(Text, { as: "h3", display: "heading3", children: t3("Downgrade to plan scheduled", {
27806
+ /* @__PURE__ */ jsx64(Text, { as: "h3", display: "heading3", children: t3("Downgrade to plan scheduled", {
27362
27807
  plan: data.company.scheduledDowngrade.toPlanName
27363
27808
  }) }),
27364
- typeof billingSubscription?.periodEnd === "number" && /* @__PURE__ */ jsx63(
27809
+ typeof billingSubscription?.periodEnd === "number" && /* @__PURE__ */ jsx64(
27365
27810
  Text,
27366
27811
  {
27367
27812
  as: "p",
@@ -27395,11 +27840,11 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27395
27840
  $gap: "1rem",
27396
27841
  children: [
27397
27842
  /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "1rem", children: [
27398
- /* @__PURE__ */ jsx63(Text, { display: props.header.title.fontStyle, $leading: "none", children: currentPlan.name }),
27399
- props.header.description.isVisible && currentPlan.description && /* @__PURE__ */ jsx63(Text, { display: props.header.description.fontStyle, children: currentPlan.description })
27843
+ /* @__PURE__ */ jsx64(Text, { display: props.header.title.fontStyle, $leading: "none", children: currentPlan.name }),
27844
+ props.header.description.isVisible && currentPlan.description && /* @__PURE__ */ jsx64(Text, { display: props.header.description.fontStyle, children: currentPlan.description })
27400
27845
  ] }),
27401
27846
  props.header.price.isVisible && typeof currentPlan.planPrice === "number" && /* @__PURE__ */ jsxs47(Box, { children: [
27402
- /* @__PURE__ */ jsx63(
27847
+ /* @__PURE__ */ jsx64(
27403
27848
  Text,
27404
27849
  {
27405
27850
  display: isUsageBasedPlan ? "heading3" : props.header.price.fontStyle,
@@ -27409,7 +27854,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27409
27854
  })
27410
27855
  }
27411
27856
  ),
27412
- !isFreePlan && currentPlanPeriod && /* @__PURE__ */ jsx63(Text, { display: props.header.price.fontStyle, children: /* @__PURE__ */ jsxs47("sub", { children: [
27857
+ !isFreePlan && currentPlanPeriod && /* @__PURE__ */ jsx64(Text, { display: props.header.price.fontStyle, children: /* @__PURE__ */ jsxs47("sub", { children: [
27413
27858
  "/",
27414
27859
  shortenPeriod(currentPlanPeriod, t3)
27415
27860
  ] }) })
@@ -27418,7 +27863,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27418
27863
  }
27419
27864
  ),
27420
27865
  props.addOns.isVisible && currentAddOns.length > 0 && /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27421
- props.addOns.showLabel && /* @__PURE__ */ jsx63(
27866
+ props.addOns.showLabel && /* @__PURE__ */ jsx64(
27422
27867
  Text,
27423
27868
  {
27424
27869
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -27426,7 +27871,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27426
27871
  children: t3("Add-ons")
27427
27872
  }
27428
27873
  ),
27429
- /* @__PURE__ */ jsx63(Flex, { $flexDirection: "column", $gap: "1rem", children: currentAddOns.map((addOn, addOnIndex) => /* @__PURE__ */ jsx63(
27874
+ /* @__PURE__ */ jsx64(Flex, { $flexDirection: "column", $gap: "1rem", children: currentAddOns.map((addOn, addOnIndex) => /* @__PURE__ */ jsx64(
27430
27875
  AddOn,
27431
27876
  {
27432
27877
  addOn,
@@ -27438,7 +27883,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27438
27883
  )) })
27439
27884
  ] }),
27440
27885
  props.addOns.isVisible && usageBasedEntitlements.length > 0 && /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27441
- props.addOns.showLabel && /* @__PURE__ */ jsx63(
27886
+ props.addOns.showLabel && /* @__PURE__ */ jsx64(
27442
27887
  Text,
27443
27888
  {
27444
27889
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -27446,8 +27891,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27446
27891
  children: t3("Usage-based")
27447
27892
  }
27448
27893
  ),
27449
- /* @__PURE__ */ jsx63(Flex, { $flexDirection: "column", $gap: "1rem", children: usageBasedEntitlements.map((entitlement, entitlementIndex) => {
27450
- return /* @__PURE__ */ jsx63(
27894
+ /* @__PURE__ */ jsx64(Flex, { $flexDirection: "column", $gap: "1rem", children: usageBasedEntitlements.map((entitlement, entitlementIndex) => {
27895
+ return /* @__PURE__ */ jsx64(
27451
27896
  UsageDetails2,
27452
27897
  {
27453
27898
  entitlement,
@@ -27461,7 +27906,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27461
27906
  }) })
27462
27907
  ] }),
27463
27908
  props.addOns.isVisible && showCredits && creditGroups.plan.length > 0 && /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27464
- props.addOns.showLabel && /* @__PURE__ */ jsx63(
27909
+ props.addOns.showLabel && /* @__PURE__ */ jsx64(
27465
27910
  Text,
27466
27911
  {
27467
27912
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -27469,7 +27914,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27469
27914
  children: t3("Credits in plan")
27470
27915
  }
27471
27916
  ),
27472
- /* @__PURE__ */ jsx63(Flex, { $flexDirection: "column", $gap: "1rem", children: planCredits.items.map((group, groupIndex) => {
27917
+ /* @__PURE__ */ jsx64(Flex, { $flexDirection: "column", $gap: "1rem", children: planCredits.items.map((group, groupIndex) => {
27473
27918
  const planCreditGrant = currentPlan?.includedCreditGrants.find(
27474
27919
  (grant) => grant.creditId === group.id
27475
27920
  );
@@ -27506,7 +27951,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27506
27951
  $flexWrap: "wrap",
27507
27952
  $gap: "0.5rem",
27508
27953
  children: [
27509
- /* @__PURE__ */ jsx63(Text, { display: props.addOns.fontStyle, children: showPerLicense ? /* @__PURE__ */ jsxs47(Fragment25, { children: [
27954
+ /* @__PURE__ */ jsx64(Text, { display: props.addOns.fontStyle, children: showPerLicense ? /* @__PURE__ */ jsxs47(Fragment25, { children: [
27510
27955
  t3("X credits per license", {
27511
27956
  amount: perLicenseGrant.amount,
27512
27957
  creditName: getFeatureName(
@@ -27547,7 +27992,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27547
27992
  )
27548
27993
  ] })
27549
27994
  ] }) }),
27550
- group.total.used > 0 && /* @__PURE__ */ jsx63(Flex, { $alignItems: "baseline", children: /* @__PURE__ */ jsxs47(
27995
+ group.total.used > 0 && /* @__PURE__ */ jsx64(Flex, { $alignItems: "baseline", children: /* @__PURE__ */ jsxs47(
27551
27996
  Text,
27552
27997
  {
27553
27998
  style: { opacity: 0.54 },
@@ -27557,7 +28002,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27557
28002
  group.total.used,
27558
28003
  " ",
27559
28004
  t3("used"),
27560
- hasAutoTopup && planCreditGrant && !isAutoTopupOff(planCreditGrant) && /* @__PURE__ */ jsx63(
28005
+ hasAutoTopup && planCreditGrant && !isAutoTopupOff(planCreditGrant) && /* @__PURE__ */ jsx64(
27561
28006
  AutoTopupNotice,
27562
28007
  {
27563
28008
  thresholdCredits,
@@ -27570,7 +28015,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27570
28015
  ]
27571
28016
  }
27572
28017
  ),
27573
- showPerLicense && typeof licenseQuantity === "number" && typeof resolvedTotal === "number" && creditPeriod && /* @__PURE__ */ jsx63(
28018
+ showPerLicense && typeof licenseQuantity === "number" && typeof resolvedTotal === "number" && creditPeriod && /* @__PURE__ */ jsx64(
27574
28019
  Text,
27575
28020
  {
27576
28021
  style: { opacity: 0.54 },
@@ -27615,7 +28060,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27615
28060
  groupIndex
27616
28061
  );
27617
28062
  }) }),
27618
- planCredits.canExpand && /* @__PURE__ */ jsx63(
28063
+ planCredits.canExpand && /* @__PURE__ */ jsx64(
27619
28064
  ExpandListToggle,
27620
28065
  {
27621
28066
  isExpanded: planCredits.isExpanded,
@@ -27635,7 +28080,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27635
28080
  $borderRadius: "0.5rem",
27636
28081
  children: [
27637
28082
  /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27638
- /* @__PURE__ */ jsx63(Text, { display: props.addOns.fontStyle, children: t3("Auto Top-up") }),
28083
+ /* @__PURE__ */ jsx64(Text, { display: props.addOns.fontStyle, children: t3("Auto Top-up") }),
27639
28084
  currentPlan?.includedCreditGrants.reduce(
27640
28085
  (acc, grant) => {
27641
28086
  if (!grant.credit || !isSelfServiceAutoTopupAvailable(grant)) {
@@ -27644,7 +28089,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27644
28089
  const autoTopupEnabled = grant.companyAutoTopupEnabled ?? false;
27645
28090
  if (!autoTopupEnabled) {
27646
28091
  acc.push(
27647
- /* @__PURE__ */ jsx63(Text, { $leading: "tight", children: t3("Auto top-up disabled for token", {
28092
+ /* @__PURE__ */ jsx64(Text, { $leading: "tight", children: t3("Auto top-up disabled for token", {
27648
28093
  unit: getFeatureName(grant.credit, locale, 1)
27649
28094
  }) }, grant.id)
27650
28095
  );
@@ -27654,7 +28099,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27654
28099
  const autoTopupAmount = getAutoTopupAmount(grant);
27655
28100
  if (typeof autoTopupThresholdCredits === "number" && typeof autoTopupAmount === "number") {
27656
28101
  acc.push(
27657
- /* @__PURE__ */ jsx63(Text, { $leading: "tight", children: t3("Adds X tokens when Y remaining in balance", {
28102
+ /* @__PURE__ */ jsx64(Text, { $leading: "tight", children: t3("Adds X tokens when Y remaining in balance", {
27658
28103
  unit: getFeatureName(
27659
28104
  grant.credit,
27660
28105
  locale,
@@ -27670,7 +28115,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27670
28115
  []
27671
28116
  )
27672
28117
  ] }),
27673
- /* @__PURE__ */ jsx63(
28118
+ /* @__PURE__ */ jsx64(
27674
28119
  Button,
27675
28120
  {
27676
28121
  type: "button",
@@ -27688,7 +28133,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27688
28133
  )
27689
28134
  ] }),
27690
28135
  props.addOns.isVisible && showCredits && creditGroups.autoTopups.length > 0 && /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27691
- props.addOns.showLabel && /* @__PURE__ */ jsx63(
28136
+ props.addOns.showLabel && /* @__PURE__ */ jsx64(
27692
28137
  Text,
27693
28138
  {
27694
28139
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -27696,7 +28141,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27696
28141
  children: t3("Top-ups")
27697
28142
  }
27698
28143
  ),
27699
- /* @__PURE__ */ jsx63(Flex, { $flexDirection: "column", $gap: "1rem", children: autoTopupCredits.items.map((group, groupIndex) => {
28144
+ /* @__PURE__ */ jsx64(Flex, { $flexDirection: "column", $gap: "1rem", children: autoTopupCredits.items.map((group, groupIndex) => {
27700
28145
  const bundle = group?.bundleId ? creditBundles.find((b2) => b2.id === group.bundleId) : void 0;
27701
28146
  return /* @__PURE__ */ jsxs47(
27702
28147
  Flex,
@@ -27748,7 +28193,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27748
28193
  groupIndex
27749
28194
  );
27750
28195
  }) }),
27751
- autoTopupCredits.canExpand && /* @__PURE__ */ jsx63(
28196
+ autoTopupCredits.canExpand && /* @__PURE__ */ jsx64(
27752
28197
  ExpandListToggle,
27753
28198
  {
27754
28199
  isExpanded: autoTopupCredits.isExpanded,
@@ -27759,7 +28204,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27759
28204
  )
27760
28205
  ] }),
27761
28206
  props.addOns.isVisible && creditGroups.bundles.length > 0 && /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27762
- props.addOns.showLabel && /* @__PURE__ */ jsx63(
28207
+ props.addOns.showLabel && /* @__PURE__ */ jsx64(
27763
28208
  Text,
27764
28209
  {
27765
28210
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -27767,7 +28212,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27767
28212
  children: t3("Credit bundles")
27768
28213
  }
27769
28214
  ),
27770
- /* @__PURE__ */ jsx63(Flex, { $flexDirection: "column", $gap: "1rem", children: bundleCredits.items.map((group, groupIndex) => {
28215
+ /* @__PURE__ */ jsx64(Flex, { $flexDirection: "column", $gap: "1rem", children: bundleCredits.items.map((group, groupIndex) => {
27771
28216
  const bundle = group?.bundleId ? creditBundles.find((b2) => b2.id === group.bundleId) : void 0;
27772
28217
  return /* @__PURE__ */ jsxs47(
27773
28218
  Flex,
@@ -27813,7 +28258,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27813
28258
  groupIndex
27814
28259
  );
27815
28260
  }) }),
27816
- bundleCredits.canExpand && /* @__PURE__ */ jsx63(
28261
+ bundleCredits.canExpand && /* @__PURE__ */ jsx64(
27817
28262
  ExpandListToggle,
27818
28263
  {
27819
28264
  isExpanded: bundleCredits.isExpanded,
@@ -27824,7 +28269,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27824
28269
  )
27825
28270
  ] }),
27826
28271
  props.addOns.isVisible && creditGroups.promotional.length > 0 && /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27827
- props.addOns.showLabel && /* @__PURE__ */ jsx63(
28272
+ props.addOns.showLabel && /* @__PURE__ */ jsx64(
27828
28273
  Text,
27829
28274
  {
27830
28275
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -27832,7 +28277,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27832
28277
  children: t3("Promotional credits")
27833
28278
  }
27834
28279
  ),
27835
- /* @__PURE__ */ jsx63(Flex, { $flexDirection: "column", $gap: "1rem", children: promotionalCredits.items.map((group, groupIndex) => {
28280
+ /* @__PURE__ */ jsx64(Flex, { $flexDirection: "column", $gap: "1rem", children: promotionalCredits.items.map((group, groupIndex) => {
27836
28281
  return /* @__PURE__ */ jsxs47(
27837
28282
  Flex,
27838
28283
  {
@@ -27864,7 +28309,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27864
28309
  groupIndex
27865
28310
  );
27866
28311
  }) }),
27867
- promotionalCredits.canExpand && /* @__PURE__ */ jsx63(
28312
+ promotionalCredits.canExpand && /* @__PURE__ */ jsx64(
27868
28313
  ExpandListToggle,
27869
28314
  {
27870
28315
  isExpanded: promotionalCredits.isExpanded,
@@ -27874,7 +28319,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27874
28319
  }
27875
28320
  )
27876
28321
  ] }),
27877
- canCheckout && props.callToAction.isVisible && !customPlanBilling?.isAwaitingActivation && /* @__PURE__ */ jsx63(
28322
+ canCheckout && props.callToAction.isVisible && !customPlanBilling?.isAwaitingActivation && /* @__PURE__ */ jsx64(
27878
28323
  Button,
27879
28324
  {
27880
28325
  type: "button",
@@ -27906,7 +28351,7 @@ import {
27906
28351
 
27907
28352
  // src/components/elements/pricing-table/AddOn.tsx
27908
28353
  import { useMemo as useMemo35 } from "react";
27909
- import { Fragment as Fragment26, jsx as jsx64, jsxs as jsxs48 } from "react/jsx-runtime";
28354
+ import { Fragment as Fragment26, jsx as jsx65, jsxs as jsxs48 } from "react/jsx-runtime";
27910
28355
  function renderMeteredEntitlementPricing2({
27911
28356
  priceBehavior,
27912
28357
  softLimit,
@@ -27930,7 +28375,7 @@ function renderMeteredEntitlementPricing2({
27930
28375
  ] });
27931
28376
  }
27932
28377
  if (isTiered) {
27933
- return /* @__PURE__ */ jsx64(Fragment26, { children: "Tier-based pricing" });
28378
+ return /* @__PURE__ */ jsx65(Fragment26, { children: "Tier-based pricing" });
27934
28379
  }
27935
28380
  if (priceBehavior === EntitlementPriceBehavior.PayAsYouGo || priceBehavior === EntitlementPriceBehavior.PayInAdvance) {
27936
28381
  return /* @__PURE__ */ jsxs48(Fragment26, { children: [
@@ -28037,7 +28482,7 @@ var AddOn2 = ({
28037
28482
  $borderStyle: "solid",
28038
28483
  $borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.175)" : "hsla(0, 0%, 100%, 0.175)",
28039
28484
  children: [
28040
- /* @__PURE__ */ jsx64(Box, { children: /* @__PURE__ */ jsx64(
28485
+ /* @__PURE__ */ jsx65(Box, { children: /* @__PURE__ */ jsx65(
28041
28486
  Text,
28042
28487
  {
28043
28488
  as: "h3",
@@ -28046,8 +28491,8 @@ var AddOn2 = ({
28046
28491
  children: addOn.name
28047
28492
  }
28048
28493
  ) }),
28049
- layout.addOns.showDescription && /* @__PURE__ */ jsx64(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx64(Text, { display: layout.plans.description.fontStyle, children: addOn.description }) }),
28050
- /* @__PURE__ */ jsx64(Box, { children: /* @__PURE__ */ jsx64(
28494
+ layout.addOns.showDescription && /* @__PURE__ */ jsx65(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx65(Text, { display: layout.plans.description.fontStyle, children: addOn.description }) }),
28495
+ /* @__PURE__ */ jsx65(Box, { children: /* @__PURE__ */ jsx65(
28051
28496
  Text,
28052
28497
  {
28053
28498
  "data-testid": "sch-addon-price",
@@ -28064,7 +28509,7 @@ var AddOn2 = ({
28064
28509
  ] })
28065
28510
  }
28066
28511
  ) }),
28067
- isActiveAddOn && /* @__PURE__ */ jsx64(
28512
+ isActiveAddOn && /* @__PURE__ */ jsx65(
28068
28513
  Flex,
28069
28514
  {
28070
28515
  "data-testid": "sch-addon-active",
@@ -28074,7 +28519,7 @@ var AddOn2 = ({
28074
28519
  $backgroundColor: settings.theme.primary,
28075
28520
  $borderRadius: "9999px",
28076
28521
  $padding: "0.125rem 0.85rem",
28077
- children: /* @__PURE__ */ jsx64(
28522
+ children: /* @__PURE__ */ jsx65(
28078
28523
  Text,
28079
28524
  {
28080
28525
  $size: 0.75 * settings.theme.typography.text.fontSize,
@@ -28096,7 +28541,7 @@ var AddOn2 = ({
28096
28541
  $flexGrow: 1,
28097
28542
  $padding: `${0.75 * cardPadding}rem ${cardPadding}rem 0`,
28098
28543
  children: [
28099
- layout.addOns.showEntitlements && displayableEntitlements.length > 0 && /* @__PURE__ */ jsx64(
28544
+ layout.addOns.showEntitlements && displayableEntitlements.length > 0 && /* @__PURE__ */ jsx65(
28100
28545
  Flex,
28101
28546
  {
28102
28547
  as: "ul",
@@ -28118,7 +28563,7 @@ var AddOn2 = ({
28118
28563
  $gap: "1rem",
28119
28564
  children: [
28120
28565
  /* @__PURE__ */ jsxs48(Flex, { $gap: "1rem", children: [
28121
- layout.addOns.showFeatureIcons && entitlement.feature?.icon && /* @__PURE__ */ jsx64(
28566
+ layout.addOns.showFeatureIcons && entitlement.feature?.icon && /* @__PURE__ */ jsx65(
28122
28567
  Icon3,
28123
28568
  {
28124
28569
  name: entitlement.feature.icon,
@@ -28127,16 +28572,16 @@ var AddOn2 = ({
28127
28572
  rounded: true
28128
28573
  }
28129
28574
  ),
28130
- entitlement.feature && /* @__PURE__ */ jsx64(
28575
+ entitlement.feature && /* @__PURE__ */ jsx65(
28131
28576
  Flex,
28132
28577
  {
28133
28578
  $flexDirection: "column",
28134
28579
  $justifyContent: "center",
28135
- children: /* @__PURE__ */ jsx64(Text, { children: getFeatureName(entitlement.feature, locale) })
28580
+ children: /* @__PURE__ */ jsx65(Text, { children: getFeatureName(entitlement.feature, locale) })
28136
28581
  }
28137
28582
  )
28138
28583
  ] }),
28139
- /* @__PURE__ */ jsx64(
28584
+ /* @__PURE__ */ jsx65(
28140
28585
  Text,
28141
28586
  {
28142
28587
  style: { opacity: 0.54 },
@@ -28162,7 +28607,7 @@ var AddOn2 = ({
28162
28607
  $listStyle: "none",
28163
28608
  children: [
28164
28609
  /* @__PURE__ */ jsxs48(Flex, { $gap: "1rem", children: [
28165
- meteredEntitlement.feature?.icon && /* @__PURE__ */ jsx64(
28610
+ meteredEntitlement.feature?.icon && /* @__PURE__ */ jsx65(
28166
28611
  Icon3,
28167
28612
  {
28168
28613
  "data-testid": "sch-feature-icon",
@@ -28172,9 +28617,9 @@ var AddOn2 = ({
28172
28617
  rounded: true
28173
28618
  }
28174
28619
  ),
28175
- /* @__PURE__ */ jsx64(Flex, { $flexDirection: "column", $justifyContent: "center", children: /* @__PURE__ */ jsx64(Text, { children: typeof meteredEntitlement.limit === "number" ? `${meteredEntitlement.limit} ${getEntitlementFeatureName(meteredEntitlement, "units")}` : getEntitlementFeatureName(meteredEntitlement) }) })
28620
+ /* @__PURE__ */ jsx65(Flex, { $flexDirection: "column", $justifyContent: "center", children: /* @__PURE__ */ jsx65(Text, { children: typeof meteredEntitlement.limit === "number" ? `${meteredEntitlement.limit} ${getEntitlementFeatureName(meteredEntitlement, "units")}` : getEntitlementFeatureName(meteredEntitlement) }) })
28176
28621
  ] }),
28177
- /* @__PURE__ */ jsx64(
28622
+ /* @__PURE__ */ jsx65(
28178
28623
  Text,
28179
28624
  {
28180
28625
  style: { opacity: 0.54 },
@@ -28193,7 +28638,7 @@ var AddOn2 = ({
28193
28638
  })
28194
28639
  }
28195
28640
  ),
28196
- sharedProps.showCallToAction && (layout.upgrade.isVisible || layout.downgrade.isVisible) && /* @__PURE__ */ jsx64(Flex, { $flexDirection: "column", $gap: "0.5rem", children: /* @__PURE__ */ jsx64(
28641
+ sharedProps.showCallToAction && (layout.upgrade.isVisible || layout.downgrade.isVisible) && /* @__PURE__ */ jsx65(Flex, { $flexDirection: "column", $gap: "0.5rem", children: /* @__PURE__ */ jsx65(
28197
28642
  Button,
28198
28643
  {
28199
28644
  type: "button",
@@ -28235,7 +28680,7 @@ var AddOn2 = ({
28235
28680
  import { useState as useState20 } from "react";
28236
28681
 
28237
28682
  // src/components/elements/pricing-table/Entitlement.tsx
28238
- import { Fragment as Fragment27, jsx as jsx65, jsxs as jsxs49 } from "react/jsx-runtime";
28683
+ import { Fragment as Fragment27, jsx as jsx66, jsxs as jsxs49 } from "react/jsx-runtime";
28239
28684
  var Entitlement2 = ({
28240
28685
  entitlement,
28241
28686
  sharedProps,
@@ -28270,7 +28715,7 @@ var Entitlement2 = ({
28270
28715
  credits
28271
28716
  );
28272
28717
  return /* @__PURE__ */ jsxs49(Flex, { as: "li", $gap: "1rem", style: { listStyle: "none" }, children: [
28273
- layout.plans.showFeatureIcons && entitlement.feature?.icon && /* @__PURE__ */ jsx65(
28718
+ layout.plans.showFeatureIcons && entitlement.feature?.icon && /* @__PURE__ */ jsx66(
28274
28719
  Icon3,
28275
28720
  {
28276
28721
  "data-testid": "sch-feature-icon",
@@ -28282,7 +28727,7 @@ var Entitlement2 = ({
28282
28727
  ),
28283
28728
  entitlement.feature?.name && /* @__PURE__ */ jsxs49(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
28284
28729
  /* @__PURE__ */ jsxs49(Flex, { $flexDirection: "column", $justifyContent: "center", $flexGrow: 1, children: [
28285
- /* @__PURE__ */ jsx65(Text, { children: typeof entitlementPrice === "number" && !tiered && (entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance || entitlement.priceBehavior === EntitlementPriceBehavior.PayAsYouGo) ? /* @__PURE__ */ jsxs49(Fragment27, { children: [
28730
+ /* @__PURE__ */ jsx66(Text, { children: typeof entitlementPrice === "number" && !tiered && (entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance || entitlement.priceBehavior === EntitlementPriceBehavior.PayAsYouGo) ? /* @__PURE__ */ jsxs49(Fragment27, { children: [
28286
28731
  formatCurrency(entitlementPrice, {
28287
28732
  locale,
28288
28733
  currency: entitlementCurrency
@@ -28305,7 +28750,7 @@ var Entitlement2 = ({
28305
28750
  " ",
28306
28751
  selectedPeriod
28307
28752
  ] })
28308
- ] }) : entitlement.priceBehavior === EntitlementPriceBehavior.Tier || tiered ? /* @__PURE__ */ jsx65(
28753
+ ] }) : entitlement.priceBehavior === EntitlementPriceBehavior.Tier || tiered ? /* @__PURE__ */ jsx66(
28309
28754
  TieredPricingDetails,
28310
28755
  {
28311
28756
  entitlement,
@@ -28323,7 +28768,7 @@ var Entitlement2 = ({
28323
28768
  t3("per"),
28324
28769
  " ",
28325
28770
  getFeatureName(entitlement.feature, locale, 1)
28326
- ] }) : entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && creditBasedEntitlementLimit ? /* @__PURE__ */ jsx65(Fragment27, { children: creditBasedEntitlementLimit?.period ? t3("Up to X units per period", {
28771
+ ] }) : entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && creditBasedEntitlementLimit ? /* @__PURE__ */ jsx66(Fragment27, { children: creditBasedEntitlementLimit?.period ? t3("Up to X units per period", {
28327
28772
  amount: formatNumber(
28328
28773
  creditBasedEntitlementLimit.limit,
28329
28774
  { locale }
@@ -28364,7 +28809,7 @@ var Entitlement2 = ({
28364
28809
  ] })
28365
28810
  ] }) : entitlement.feature.name }),
28366
28811
  /* @__PURE__ */ jsxs49(Text, { children: [
28367
- entitlement.priceBehavior === EntitlementPriceBehavior.Overage && typeof entitlementPrice === "number" ? /* @__PURE__ */ jsx65(Fragment27, { children: /* @__PURE__ */ jsxs49(
28812
+ entitlement.priceBehavior === EntitlementPriceBehavior.Overage && typeof entitlementPrice === "number" ? /* @__PURE__ */ jsx66(Fragment27, { children: /* @__PURE__ */ jsxs49(
28368
28813
  Text,
28369
28814
  {
28370
28815
  $size: 0.875 * settings.theme.typography.text.fontSize,
@@ -28393,7 +28838,7 @@ var Entitlement2 = ({
28393
28838
  ]
28394
28839
  }
28395
28840
  ) }) : (entitlement.priceBehavior === EntitlementPriceBehavior.Tier || tiered) && /* @__PURE__ */ jsxs49(Fragment27, { children: [
28396
- /* @__PURE__ */ jsx65(
28841
+ /* @__PURE__ */ jsx66(
28397
28842
  Text,
28398
28843
  {
28399
28844
  style: { opacity: 0.54 },
@@ -28402,7 +28847,7 @@ var Entitlement2 = ({
28402
28847
  children: t3("Tier-based")
28403
28848
  }
28404
28849
  ),
28405
- /* @__PURE__ */ jsx65(
28850
+ /* @__PURE__ */ jsx66(
28406
28851
  PricingTiersTooltip,
28407
28852
  {
28408
28853
  feature: entitlement.feature,
@@ -28413,14 +28858,14 @@ var Entitlement2 = ({
28413
28858
  }
28414
28859
  )
28415
28860
  ] }),
28416
- entitlementHasHardLimit(entitlement) && entitlement.valueType === EntitlementValueType.Numeric && /* @__PURE__ */ jsx65(
28861
+ entitlementHasHardLimit(entitlement) && entitlement.valueType === EntitlementValueType.Numeric && /* @__PURE__ */ jsx66(
28417
28862
  HardLimitTooltip,
28418
28863
  {
28419
28864
  feature: entitlement.feature,
28420
28865
  limit: entitlement.valueNumeric
28421
28866
  }
28422
28867
  ),
28423
- entitlement.billingThreshold && /* @__PURE__ */ jsx65(
28868
+ entitlement.billingThreshold && /* @__PURE__ */ jsx66(
28424
28869
  BillingThresholdTooltip,
28425
28870
  {
28426
28871
  billingThreshold: entitlement.billingThreshold
@@ -28428,7 +28873,7 @@ var Entitlement2 = ({
28428
28873
  )
28429
28874
  ] })
28430
28875
  ] }),
28431
- layout.plans.showFeatureDescriptions && entitlement.feature?.description && /* @__PURE__ */ jsx65(
28876
+ layout.plans.showFeatureDescriptions && entitlement.feature?.description && /* @__PURE__ */ jsx66(
28432
28877
  Text,
28433
28878
  {
28434
28879
  $size: 0.875 * settings.theme.typography.text.fontSize,
@@ -28441,7 +28886,7 @@ var Entitlement2 = ({
28441
28886
  };
28442
28887
 
28443
28888
  // src/components/elements/pricing-table/Plan.tsx
28444
- import { jsx as jsx66, jsxs as jsxs50 } from "react/jsx-runtime";
28889
+ import { jsx as jsx67, jsxs as jsxs50 } from "react/jsx-runtime";
28445
28890
  var Plan2 = ({
28446
28891
  plan,
28447
28892
  index,
@@ -28480,7 +28925,8 @@ var Plan2 = ({
28480
28925
  const hasUsageBasedEntitlements = (plan.entitlements ?? []).some(
28481
28926
  (entitlement) => !!entitlement.priceBehavior
28482
28927
  );
28483
- const isFreePlan = planPrice === 0;
28928
+ const headlinePrice = getPlanEstimatedPrice(plan, selectedPeriod, planPrice, planCurrency) ?? planPrice;
28929
+ const isFreePlan = headlinePrice === 0;
28484
28930
  const isUsageBasedPlan = isFreePlan && hasUsageBasedEntitlements;
28485
28931
  const headerPriceFontStyle = settings.theme.typography[layout.plans.name.fontStyle];
28486
28932
  const isExpanded = entitlementVisibility[plan.id] ?? false;
@@ -28515,7 +28961,7 @@ var Plan2 = ({
28515
28961
  $borderStyle: "solid",
28516
28962
  $borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.175)" : "hsla(0, 0%, 100%, 0.175)",
28517
28963
  children: [
28518
- /* @__PURE__ */ jsx66(Box, { children: /* @__PURE__ */ jsx66(
28964
+ /* @__PURE__ */ jsx67(Box, { children: /* @__PURE__ */ jsx67(
28519
28965
  Text,
28520
28966
  {
28521
28967
  as: "h3",
@@ -28524,8 +28970,8 @@ var Plan2 = ({
28524
28970
  children: plan.name
28525
28971
  }
28526
28972
  ) }),
28527
- layout.plans.description.isVisible && /* @__PURE__ */ jsx66(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx66(Text, { display: layout.plans.description.fontStyle, children: plan.description }) }),
28528
- /* @__PURE__ */ jsx66(Box, { children: /* @__PURE__ */ jsxs50(
28973
+ layout.plans.description.isVisible && /* @__PURE__ */ jsx67(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx67(Text, { display: layout.plans.description.fontStyle, children: plan.description }) }),
28974
+ /* @__PURE__ */ jsx67(Box, { children: /* @__PURE__ */ jsxs50(
28529
28975
  Text,
28530
28976
  {
28531
28977
  "data-testid": "sch-plan-price",
@@ -28534,15 +28980,15 @@ var Plan2 = ({
28534
28980
  $weight: headerPriceFontStyle.fontWeight,
28535
28981
  $color: headerPriceFontStyle.color,
28536
28982
  children: [
28537
- plan.custom ? plan.customPlanConfig?.priceText ? plan.customPlanConfig.priceText : t3("Custom price") : isUsageBasedPlan ? t3("Usage-based") : isFreePlan && showZeroPriceAsFree ? t3("Free") : showAsMonthlyPrices && selectedPeriod === BillingProductPriceInterval.Year ? formatCurrency((planPrice ?? 0) / 12, {
28983
+ plan.custom ? plan.customPlanConfig?.priceText ? plan.customPlanConfig.priceText : t3("Custom price") : isUsageBasedPlan ? t3("Usage-based") : isFreePlan && showZeroPriceAsFree ? t3("Free") : showAsMonthlyPrices && selectedPeriod === BillingProductPriceInterval.Year ? formatCurrency((headlinePrice ?? 0) / 12, {
28538
28984
  locale,
28539
28985
  currency: planCurrency,
28540
28986
  testSignificantDigits: false
28541
- }) : showAsMonthlyPrices && selectedPeriod === "quarter" ? formatCurrency((planPrice ?? 0) / 3, {
28987
+ }) : showAsMonthlyPrices && selectedPeriod === "quarter" ? formatCurrency((headlinePrice ?? 0) / 3, {
28542
28988
  locale,
28543
28989
  currency: planCurrency,
28544
28990
  testSignificantDigits: false
28545
- }) : formatCurrency(planPrice ?? 0, {
28991
+ }) : formatCurrency(headlinePrice ?? 0, {
28546
28992
  locale,
28547
28993
  currency: planCurrency
28548
28994
  }),
@@ -28553,7 +28999,16 @@ var Plan2 = ({
28553
28999
  ]
28554
29000
  }
28555
29001
  ) }),
28556
- showCredits && credits.length > 0 && /* @__PURE__ */ jsx66(
29002
+ /* @__PURE__ */ jsx67(
29003
+ PlanEstimatedTotal,
29004
+ {
29005
+ plan,
29006
+ period: selectedPeriod,
29007
+ planPrice,
29008
+ currency: planCurrency
29009
+ }
29010
+ ),
29011
+ showCredits && credits.length > 0 && /* @__PURE__ */ jsx67(
28557
29012
  Flex,
28558
29013
  {
28559
29014
  as: "ul",
@@ -28566,7 +29021,7 @@ var Plan2 = ({
28566
29021
  $listStyle: "none",
28567
29022
  children: credits.map((credit, idx) => {
28568
29023
  return /* @__PURE__ */ jsxs50(Flex, { as: "li", $gap: "1rem", $listStyle: "none", children: [
28569
- layout.plans.showFeatureIcons && credit.icon && /* @__PURE__ */ jsx66(
29024
+ layout.plans.showFeatureIcons && credit.icon && /* @__PURE__ */ jsx67(
28570
29025
  Icon3,
28571
29026
  {
28572
29027
  "data-testid": "sch-feature-icon",
@@ -28576,13 +29031,13 @@ var Plan2 = ({
28576
29031
  rounded: true
28577
29032
  }
28578
29033
  ),
28579
- credit.name && /* @__PURE__ */ jsx66(
29034
+ credit.name && /* @__PURE__ */ jsx67(
28580
29035
  Flex,
28581
29036
  {
28582
29037
  $flexDirection: "column",
28583
29038
  $justifyContent: "center",
28584
29039
  $gap: "0.5rem",
28585
- children: /* @__PURE__ */ jsx66(
29040
+ children: /* @__PURE__ */ jsx67(
28586
29041
  PlanCreditText,
28587
29042
  {
28588
29043
  credit,
@@ -28595,7 +29050,7 @@ var Plan2 = ({
28595
29050
  })
28596
29051
  }
28597
29052
  ),
28598
- isActivePlan && /* @__PURE__ */ jsx66(
29053
+ isActivePlan && /* @__PURE__ */ jsx67(
28599
29054
  Flex,
28600
29055
  {
28601
29056
  "data-testid": "sch-plan-active",
@@ -28605,7 +29060,7 @@ var Plan2 = ({
28605
29060
  $backgroundColor: settings.theme.primary,
28606
29061
  $borderRadius: "9999px",
28607
29062
  $padding: "0.125rem 0.85rem",
28608
- children: /* @__PURE__ */ jsx66(
29063
+ children: /* @__PURE__ */ jsx67(
28609
29064
  Text,
28610
29065
  {
28611
29066
  $size: 0.75 * settings.theme.typography.text.fontSize,
@@ -28638,14 +29093,14 @@ var Plan2 = ({
28638
29093
  $margin: 0,
28639
29094
  $listStyle: "none",
28640
29095
  children: [
28641
- layout.plans.showInclusionText && index > 0 && /* @__PURE__ */ jsx66(Box, { $marginBottom: "1.5rem", children: /* @__PURE__ */ jsx66(Text, { children: t3("Everything in", {
29096
+ layout.plans.showInclusionText && index > 0 && /* @__PURE__ */ jsx67(Box, { $marginBottom: "1.5rem", children: /* @__PURE__ */ jsx67(Text, { children: t3("Everything in", {
28642
29097
  plan: plans[index - 1].name
28643
29098
  }) }) }),
28644
29099
  (plan.entitlements ?? []).reduce(
28645
29100
  (acc, entitlement, idx) => {
28646
29101
  if (isExpanded || idx < VISIBLE_ENTITLEMENT_COUNT) {
28647
29102
  acc.push(
28648
- /* @__PURE__ */ jsx66(
29103
+ /* @__PURE__ */ jsx67(
28649
29104
  Entitlement2,
28650
29105
  {
28651
29106
  entitlement,
@@ -28663,7 +29118,7 @@ var Plan2 = ({
28663
29118
  },
28664
29119
  []
28665
29120
  ),
28666
- (plan.entitlements ?? []).length > VISIBLE_ENTITLEMENT_COUNT && /* @__PURE__ */ jsx66(
29121
+ (plan.entitlements ?? []).length > VISIBLE_ENTITLEMENT_COUNT && /* @__PURE__ */ jsx67(
28667
29122
  ExpandListToggle,
28668
29123
  {
28669
29124
  as: "li",
@@ -28686,7 +29141,7 @@ var Plan2 = ({
28686
29141
  $gap: "0.25rem",
28687
29142
  $padding: "0.625rem 0",
28688
29143
  children: [
28689
- /* @__PURE__ */ jsx66(
29144
+ /* @__PURE__ */ jsx67(
28690
29145
  Icon3,
28691
29146
  {
28692
29147
  name: "check-rounded",
@@ -28694,11 +29149,11 @@ var Plan2 = ({
28694
29149
  color: settings.theme.primary
28695
29150
  }
28696
29151
  ),
28697
- /* @__PURE__ */ jsx66(Text, { $size: 15, $leading: "none", children: t3("Current plan") })
29152
+ /* @__PURE__ */ jsx67(Text, { $size: 15, $leading: "none", children: t3("Current plan") })
28698
29153
  ]
28699
29154
  }
28700
29155
  ) : sharedProps.showCallToAction && (layout.upgrade.isVisible || layout.downgrade.isVisible) && /* @__PURE__ */ jsxs50(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
28701
- /* @__PURE__ */ jsx66(
29156
+ /* @__PURE__ */ jsx67(
28702
29157
  Button,
28703
29158
  {
28704
29159
  type: "button",
@@ -28736,10 +29191,10 @@ var Plan2 = ({
28736
29191
  }
28737
29192
  },
28738
29193
  $fullWidth: true,
28739
- children: plan.custom ? plan.customPlanConfig?.ctaText ?? t3("Talk to support") : !plan.valid ? /* @__PURE__ */ jsx66(Text, { as: Box, $align: "center", children: t3("Over plan limit") }) : t3("Choose plan")
29194
+ children: plan.custom ? plan.customPlanConfig?.ctaText ?? t3("Talk to support") : !plan.valid ? /* @__PURE__ */ jsx67(Text, { as: Box, $align: "center", children: t3("Over plan limit") }) : t3("Choose plan")
28740
29195
  }
28741
29196
  ),
28742
- !plan.valid && /* @__PURE__ */ jsx66(UsageViolationText, { violations: plan.usageViolations })
29197
+ !plan.valid && /* @__PURE__ */ jsx67(UsageViolationText, { violations: plan.usageViolations })
28743
29198
  ] })
28744
29199
  ]
28745
29200
  }
@@ -28750,7 +29205,7 @@ var Plan2 = ({
28750
29205
  };
28751
29206
 
28752
29207
  // src/components/elements/pricing-table/PricingTable.tsx
28753
- import { Fragment as Fragment29, jsx as jsx67, jsxs as jsxs51 } from "react/jsx-runtime";
29208
+ import { Fragment as Fragment29, jsx as jsx68, jsxs as jsxs51 } from "react/jsx-runtime";
28754
29209
  var resolveDesignProps8 = (props) => {
28755
29210
  return {
28756
29211
  showPeriodToggle: props.showPeriodToggle ?? true,
@@ -28855,7 +29310,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28855
29310
  }
28856
29311
  }, [data?.component, hydratePublic]);
28857
29312
  if (isPending) {
28858
- return /* @__PURE__ */ jsx67(
29313
+ return /* @__PURE__ */ jsx68(
28859
29314
  Flex,
28860
29315
  {
28861
29316
  $width: "100%",
@@ -28863,12 +29318,12 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28863
29318
  $alignItems: "center",
28864
29319
  $justifyContent: "center",
28865
29320
  $padding: `${settings.theme.card.padding / TEXT_BASE_SIZE}rem`,
28866
- children: /* @__PURE__ */ jsx67(Loader, { "aria-label": t3("Loading"), $size: "2xl" })
29321
+ children: /* @__PURE__ */ jsx68(Loader, { "aria-label": t3("Loading"), $size: "2xl" })
28867
29322
  }
28868
29323
  );
28869
29324
  }
28870
29325
  if (hasNoUsableCurrency) {
28871
- return /* @__PURE__ */ jsx67(Container, { children: /* @__PURE__ */ jsx67(Flex, { $justifyContent: "center", $padding: "2rem 0", children: /* @__PURE__ */ jsx67(InvalidCurrencyNotice, { invalidEntries: invalidFilterEntries }) }) });
29326
+ return /* @__PURE__ */ jsx68(Container, { children: /* @__PURE__ */ jsx68(Flex, { $justifyContent: "center", $padding: "2rem 0", children: /* @__PURE__ */ jsx68(InvalidCurrencyNotice, { invalidEntries: invalidFilterEntries }) }) });
28872
29327
  }
28873
29328
  const currentPlan = plans.find((plan) => plan.id === data?.company?.plan?.id);
28874
29329
  const showCallToAction = typeof data?.component !== "undefined" || typeof rest.callToActionUrl === "string" || typeof rest.onCallToAction === "function";
@@ -28877,7 +29332,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28877
29332
  rest.callToActionTarget
28878
29333
  );
28879
29334
  const Wrapper = typeof data?.component === "undefined" ? Container : Fragment28;
28880
- return /* @__PURE__ */ jsx67(Wrapper, { children: /* @__PURE__ */ jsxs51(
29335
+ return /* @__PURE__ */ jsx68(Wrapper, { children: /* @__PURE__ */ jsxs51(
28881
29336
  FussyChild,
28882
29337
  {
28883
29338
  ref,
@@ -28903,7 +29358,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28903
29358
  }
28904
29359
  },
28905
29360
  children: [
28906
- /* @__PURE__ */ jsx67(
29361
+ /* @__PURE__ */ jsx68(
28907
29362
  Text,
28908
29363
  {
28909
29364
  as: "h2",
@@ -28913,7 +29368,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28913
29368
  }
28914
29369
  ),
28915
29370
  /* @__PURE__ */ jsxs51(Flex, { $alignItems: "center", $gap: "0.75rem", children: [
28916
- showCurrencySelector && /* @__PURE__ */ jsx67(
29371
+ showCurrencySelector && /* @__PURE__ */ jsx68(
28917
29372
  CurrencyToggle,
28918
29373
  {
28919
29374
  currencies,
@@ -28921,7 +29376,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28921
29376
  onSelect: setSelectedCurrency
28922
29377
  }
28923
29378
  ),
28924
- showPeriodToggle && periods.length > 1 && /* @__PURE__ */ jsx67(
29379
+ showPeriodToggle && periods.length > 1 && /* @__PURE__ */ jsx68(
28925
29380
  PeriodToggle,
28926
29381
  {
28927
29382
  options: periods,
@@ -28938,7 +29393,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28938
29393
  ]
28939
29394
  }
28940
29395
  ),
28941
- props.plans.isVisible && plans.length > 0 && /* @__PURE__ */ jsx67(
29396
+ props.plans.isVisible && plans.length > 0 && /* @__PURE__ */ jsx68(
28942
29397
  Box,
28943
29398
  {
28944
29399
  as: "ul",
@@ -28951,7 +29406,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28951
29406
  $listStyle: "none",
28952
29407
  children: plans.map((plan, index, self2) => {
28953
29408
  const planPeriod = showPeriodToggle ? selectedPeriod : plan.monthlyPrice ? BillingProductPriceInterval.Month : plan.quarterlyPrice ? "quarter" : plan.yearlyPrice ? BillingProductPriceInterval.Year : BillingProductPriceInterval.Month;
28954
- return /* @__PURE__ */ jsx67(
29409
+ return /* @__PURE__ */ jsx68(
28955
29410
  Plan2,
28956
29411
  {
28957
29412
  plan,
@@ -28973,14 +29428,14 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28973
29428
  }
28974
29429
  )
28975
29430
  ] }),
28976
- /* @__PURE__ */ jsx67(Box, { children: props.addOns.isVisible && addOns.length > 0 && /* @__PURE__ */ jsxs51(Fragment29, { children: [
28977
- props.header.isVisible && /* @__PURE__ */ jsx67(
29431
+ /* @__PURE__ */ jsx68(Box, { children: props.addOns.isVisible && addOns.length > 0 && /* @__PURE__ */ jsxs51(Fragment29, { children: [
29432
+ props.header.isVisible && /* @__PURE__ */ jsx68(
28978
29433
  Flex,
28979
29434
  {
28980
29435
  $justifyContent: "space-between",
28981
29436
  $alignItems: "center",
28982
29437
  $marginBottom: "1rem",
28983
- children: /* @__PURE__ */ jsx67(
29438
+ children: /* @__PURE__ */ jsx68(
28984
29439
  Text,
28985
29440
  {
28986
29441
  as: "h2",
@@ -28991,7 +29446,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28991
29446
  )
28992
29447
  }
28993
29448
  ),
28994
- /* @__PURE__ */ jsx67(
29449
+ /* @__PURE__ */ jsx68(
28995
29450
  Box,
28996
29451
  {
28997
29452
  as: "ul",
@@ -29003,7 +29458,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
29003
29458
  $listStyle: "none",
29004
29459
  children: addOns.map((addOn, index) => {
29005
29460
  const addOnPeriod = showPeriodToggle ? selectedPeriod : addOn.monthlyPrice ? BillingProductPriceInterval.Month : addOn.quarterlyPrice ? "quarter" : addOn.yearlyPrice ? BillingProductPriceInterval.Year : BillingProductPriceInterval.Month;
29006
- return /* @__PURE__ */ jsx67(
29461
+ return /* @__PURE__ */ jsx68(
29007
29462
  AddOn2,
29008
29463
  {
29009
29464
  addOn,
@@ -29031,7 +29486,7 @@ PricingTable.displayName = "PricingTable";
29031
29486
 
29032
29487
  // src/components/elements/text/Text.tsx
29033
29488
  import { forwardRef as forwardRef16 } from "react";
29034
- import { jsx as jsx68 } from "react/jsx-runtime";
29489
+ import { jsx as jsx69 } from "react/jsx-runtime";
29035
29490
  var resolveDesignProps9 = (props) => {
29036
29491
  return {
29037
29492
  text: {
@@ -29043,7 +29498,7 @@ var resolveDesignProps9 = (props) => {
29043
29498
  };
29044
29499
  var TextElement = forwardRef16(({ children, className, ...rest }, ref) => {
29045
29500
  const props = resolveDesignProps9(rest);
29046
- return /* @__PURE__ */ jsx68(Element, { as: Flex, ref, className, children: /* @__PURE__ */ jsx68(
29501
+ return /* @__PURE__ */ jsx69(Element, { as: Flex, ref, className, children: /* @__PURE__ */ jsx69(
29047
29502
  Text,
29048
29503
  {
29049
29504
  display: props.text.fontStyle,
@@ -29057,7 +29512,7 @@ TextElement.displayName = "Text";
29057
29512
 
29058
29513
  // src/components/elements/unsubscribe-button/UnsubscribeButton.tsx
29059
29514
  import { forwardRef as forwardRef17, useMemo as useMemo37 } from "react";
29060
- import { jsx as jsx69 } from "react/jsx-runtime";
29515
+ import { jsx as jsx70 } from "react/jsx-runtime";
29061
29516
  var buttonStyles = {
29062
29517
  primary: {
29063
29518
  color: "primary",
@@ -29093,7 +29548,7 @@ var UnsubscribeButton = forwardRef17(({ children, className, ...rest }, ref) =>
29093
29548
  if (!hasActiveSubscription) {
29094
29549
  return null;
29095
29550
  }
29096
- return /* @__PURE__ */ jsx69(
29551
+ return /* @__PURE__ */ jsx70(
29097
29552
  Element,
29098
29553
  {
29099
29554
  as: Flex,
@@ -29101,7 +29556,7 @@ var UnsubscribeButton = forwardRef17(({ children, className, ...rest }, ref) =>
29101
29556
  className,
29102
29557
  $flexDirection: "column",
29103
29558
  $gap: "2rem",
29104
- children: /* @__PURE__ */ jsx69(
29559
+ children: /* @__PURE__ */ jsx70(
29105
29560
  Button,
29106
29561
  {
29107
29562
  type: "button",
@@ -29123,7 +29578,7 @@ UnsubscribeButton.displayName = "UnsubscribeButton";
29123
29578
 
29124
29579
  // src/components/elements/upcoming-bill/UpcomingBill.tsx
29125
29580
  import { forwardRef as forwardRef18, useCallback as useCallback17, useEffect as useEffect9, useMemo as useMemo38, useState as useState22 } from "react";
29126
- import { jsx as jsx70, jsxs as jsxs52 } from "react/jsx-runtime";
29581
+ import { jsx as jsx71, jsxs as jsxs52 } from "react/jsx-runtime";
29127
29582
  function resolveDesignProps11(props) {
29128
29583
  return {
29129
29584
  header: {
@@ -29213,7 +29668,7 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
29213
29668
  return null;
29214
29669
  }
29215
29670
  return /* @__PURE__ */ jsxs52(Element, { ref, className, children: [
29216
- /* @__PURE__ */ jsx70(Flex, { as: TransitionBox, $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ jsx70(Loader, { $color: settings.theme.primary, $isLoading: isLoading }) }),
29671
+ /* @__PURE__ */ jsx71(Flex, { as: TransitionBox, $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ jsx71(Loader, { $color: settings.theme.primary, $isLoading: isLoading }) }),
29217
29672
  error ? /* @__PURE__ */ jsxs52(
29218
29673
  Flex,
29219
29674
  {
@@ -29223,8 +29678,8 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
29223
29678
  $alignItems: "center",
29224
29679
  $gap: "1rem",
29225
29680
  children: [
29226
- /* @__PURE__ */ jsx70(Text, { $weight: 500, $color: "#DB6669", children: t3("There was a problem retrieving your upcoming invoice.") }),
29227
- /* @__PURE__ */ jsx70(
29681
+ /* @__PURE__ */ jsx71(Text, { $weight: 500, $color: "#DB6669", children: t3("There was a problem retrieving your upcoming invoice.") }),
29682
+ /* @__PURE__ */ jsx71(
29228
29683
  Button,
29229
29684
  {
29230
29685
  type: "button",
@@ -29237,14 +29692,14 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
29237
29692
  )
29238
29693
  ]
29239
29694
  }
29240
- ) : !isLoading && /* @__PURE__ */ jsx70(TransitionBox, { children: upcomingInvoice ? /* @__PURE__ */ jsxs52(Flex, { $flexDirection: "column", $gap: "1rem", children: [
29695
+ ) : !isLoading && /* @__PURE__ */ jsx71(TransitionBox, { children: upcomingInvoice ? /* @__PURE__ */ jsxs52(Flex, { $flexDirection: "column", $gap: "1rem", children: [
29241
29696
  props.header.isVisible && upcomingInvoice.dueDate && billDate && /* @__PURE__ */ jsxs52(Flex, { $flexDirection: "column", $gap: "0.25rem", children: [
29242
29697
  /* @__PURE__ */ jsxs52(Text, { display: props.header.fontStyle, children: [
29243
29698
  t3(props.header.prefix),
29244
29699
  " ",
29245
29700
  toPrettyDate(billDate, { locale })
29246
29701
  ] }),
29247
- paymentDueDate && /* @__PURE__ */ jsx70(
29702
+ paymentDueDate && /* @__PURE__ */ jsx71(
29248
29703
  Text,
29249
29704
  {
29250
29705
  $size: 0.8125 * settings.theme.typography.text.fontSize,
@@ -29261,11 +29716,11 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
29261
29716
  $alignItems: "start",
29262
29717
  $gap: "1rem",
29263
29718
  children: [
29264
- props.price.isVisible && /* @__PURE__ */ jsx70(Text, { display: props.price.fontStyle, $leading: "none", children: formatCurrency(upcomingInvoice.amountDue, {
29719
+ props.price.isVisible && /* @__PURE__ */ jsx71(Text, { display: props.price.fontStyle, $leading: "none", children: formatCurrency(upcomingInvoice.amountDue, {
29265
29720
  locale,
29266
29721
  currency: upcomingInvoice.currency
29267
29722
  }) }),
29268
- /* @__PURE__ */ jsx70(Box, { $maxWidth: "10rem", $textAlign: "right", children: /* @__PURE__ */ jsx70(Text, { display: props.contractEndDate.fontStyle, children: t3("Estimated bill") }) })
29723
+ /* @__PURE__ */ jsx71(Box, { $maxWidth: "10rem", $textAlign: "right", children: /* @__PURE__ */ jsx71(Text, { display: props.contractEndDate.fontStyle, children: t3("Estimated bill") }) })
29269
29724
  ]
29270
29725
  }
29271
29726
  ),
@@ -29277,8 +29732,8 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
29277
29732
  $alignItems: "start",
29278
29733
  $gap: "1rem",
29279
29734
  children: [
29280
- /* @__PURE__ */ jsx70(Text, { $weight: 600, children: t3("Applied balance towards next invoice") }),
29281
- /* @__PURE__ */ jsx70(Text, { children: formatCurrency(-applied, { locale, currency }) })
29735
+ /* @__PURE__ */ jsx71(Text, { $weight: 600, children: t3("Applied balance towards next invoice") }),
29736
+ /* @__PURE__ */ jsx71(Text, { children: formatCurrency(-applied, { locale, currency }) })
29282
29737
  ]
29283
29738
  }
29284
29739
  ),
@@ -29290,8 +29745,8 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
29290
29745
  $alignItems: "start",
29291
29746
  $gap: "1rem",
29292
29747
  children: [
29293
- /* @__PURE__ */ jsx70(Text, { $weight: 600, children: t3("Remaining balance after next invoice") }),
29294
- /* @__PURE__ */ jsx70(Text, { children: formatCurrency(remaining, { locale, currency }) })
29748
+ /* @__PURE__ */ jsx71(Text, { $weight: 600, children: t3("Remaining balance after next invoice") }),
29749
+ /* @__PURE__ */ jsx71(Text, { children: formatCurrency(remaining, { locale, currency }) })
29295
29750
  ]
29296
29751
  }
29297
29752
  ),
@@ -29302,8 +29757,8 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
29302
29757
  $alignItems: "start",
29303
29758
  $gap: "1rem",
29304
29759
  children: [
29305
- /* @__PURE__ */ jsx70(Text, { $weight: 600, children: t3("Discount") }),
29306
- /* @__PURE__ */ jsx70(
29760
+ /* @__PURE__ */ jsx71(Text, { $weight: 600, children: t3("Discount") }),
29761
+ /* @__PURE__ */ jsx71(
29307
29762
  Flex,
29308
29763
  {
29309
29764
  $flexDirection: "column",
@@ -29325,7 +29780,7 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
29325
29780
  $alignItems: "center",
29326
29781
  $gap: "0.5rem",
29327
29782
  children: [
29328
- discount.customerFacingCode && /* @__PURE__ */ jsx70(
29783
+ discount.customerFacingCode && /* @__PURE__ */ jsx71(
29329
29784
  Flex,
29330
29785
  {
29331
29786
  $alignItems: "center",
@@ -29334,7 +29789,7 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
29334
29789
  $borderStyle: "solid",
29335
29790
  $borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.15)" : "hsla(0, 0%, 100%, 0.15)",
29336
29791
  $borderRadius: "0.3125rem",
29337
- children: /* @__PURE__ */ jsx70(
29792
+ children: /* @__PURE__ */ jsx71(
29338
29793
  Text,
29339
29794
  {
29340
29795
  $size: 0.75 * settings.theme.typography.text.fontSize,
@@ -29344,7 +29799,7 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
29344
29799
  )
29345
29800
  }
29346
29801
  ),
29347
- /* @__PURE__ */ jsx70(Box, { children: /* @__PURE__ */ jsx70(Text, { children: discount.duration === "repeating" && discount.durationInMonths ? t3("Discount for months", {
29802
+ /* @__PURE__ */ jsx71(Box, { children: /* @__PURE__ */ jsx71(Text, { children: discount.duration === "repeating" && discount.durationInMonths ? t3("Discount for months", {
29348
29803
  discount: label,
29349
29804
  count: discount.durationInMonths
29350
29805
  }) : label }) })
@@ -29358,7 +29813,7 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
29358
29813
  ]
29359
29814
  }
29360
29815
  )
29361
- ] }) : /* @__PURE__ */ jsx70(Text, { display: "heading2", children: t3("No upcoming invoice") }) })
29816
+ ] }) : /* @__PURE__ */ jsx71(Text, { display: "heading2", children: t3("No upcoming invoice") }) })
29362
29817
  ] });
29363
29818
  });
29364
29819
  UpcomingBill.displayName = "UpcomingBill";
@@ -32074,11 +32529,11 @@ function createRenderer(options) {
32074
32529
  }
32075
32530
 
32076
32531
  // src/components/embed/Embed.tsx
32077
- import { jsx as jsx71, jsxs as jsxs53 } from "react/jsx-runtime";
32532
+ import { jsx as jsx72, jsxs as jsxs53 } from "react/jsx-runtime";
32078
32533
  var renderer = createRenderer();
32079
32534
  var Loading = () => {
32080
32535
  const { settings } = useEmbed();
32081
- return /* @__PURE__ */ jsx71(
32536
+ return /* @__PURE__ */ jsx72(
32082
32537
  Flex,
32083
32538
  {
32084
32539
  $width: "100%",
@@ -32086,7 +32541,7 @@ var Loading = () => {
32086
32541
  $alignItems: "center",
32087
32542
  $justifyContent: "center",
32088
32543
  $padding: `${settings.theme.card.padding / TEXT_BASE_SIZE}rem`,
32089
- children: /* @__PURE__ */ jsx71(Loader, { $color: settings.theme.primary, $size: "2xl" })
32544
+ children: /* @__PURE__ */ jsx72(Loader, { $color: settings.theme.primary, $size: "2xl" })
32090
32545
  }
32091
32546
  );
32092
32547
  };
@@ -32104,8 +32559,8 @@ var Error2 = ({ message }) => {
32104
32559
  $alignItems: "center",
32105
32560
  $justifyContent: "center",
32106
32561
  children: [
32107
- /* @__PURE__ */ jsx71(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx71(Text, { display: "heading1", children: t3("Error") }) }),
32108
- /* @__PURE__ */ jsx71(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx71(Text, { children: message }) })
32562
+ /* @__PURE__ */ jsx72(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx72(Text, { display: "heading1", children: t3("Error") }) }),
32563
+ /* @__PURE__ */ jsx72(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx72(Text, { children: message }) })
32109
32564
  ]
32110
32565
  }
32111
32566
  );
@@ -32180,13 +32635,13 @@ var SchematicEmbed = ({ id, accessToken }) => {
32180
32635
  return stub();
32181
32636
  }
32182
32637
  if (error) {
32183
- return /* @__PURE__ */ jsx71(Error2, { message: error.message });
32638
+ return /* @__PURE__ */ jsx72(Error2, { message: error.message });
32184
32639
  }
32185
32640
  if (accessToken?.length === 0) {
32186
- return /* @__PURE__ */ jsx71(Error2, { message: t3("Please provide an access token.") });
32641
+ return /* @__PURE__ */ jsx72(Error2, { message: t3("Please provide an access token.") });
32187
32642
  }
32188
32643
  if (!accessToken?.startsWith("token_")) {
32189
- return /* @__PURE__ */ jsx71(
32644
+ return /* @__PURE__ */ jsx72(
32190
32645
  Error2,
32191
32646
  {
32192
32647
  message: t3(
@@ -32196,9 +32651,9 @@ var SchematicEmbed = ({ id, accessToken }) => {
32196
32651
  );
32197
32652
  }
32198
32653
  if (isPending) {
32199
- return /* @__PURE__ */ jsx71(Loading, {});
32654
+ return /* @__PURE__ */ jsx72(Loading, {});
32200
32655
  }
32201
- return /* @__PURE__ */ jsx71(Box, { className: "sch-Embed", "data-testid": "sch-embed", children: children ?? /* @__PURE__ */ jsx71(Loading, {}) });
32656
+ return /* @__PURE__ */ jsx72(Box, { className: "sch-Embed", "data-testid": "sch-embed", children: children ?? /* @__PURE__ */ jsx72(Loading, {}) });
32202
32657
  };
32203
32658
  export {
32204
32659
  AddOns,
@@ -32272,6 +32727,7 @@ export {
32272
32727
  progressColorMap,
32273
32728
  resolveSettings,
32274
32729
  schematicTranslationsEn,
32730
+ schematicTranslationsIt,
32275
32731
  stub,
32276
32732
  useAvailableCurrencies,
32277
32733
  useAvailableCurrenciesWithInvalid,