@schematichq/schematic-components 2.29.1 → 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.
@@ -5693,6 +5693,7 @@ function CustomPlanBillingResponseDataFromJSONTyped(json, ignoreDiscriminator) {
5693
5693
  json["activation_strategy"]
5694
5694
  ),
5695
5695
  billingCycleAnchor: json["billing_cycle_anchor"] == null ? void 0 : new Date(json["billing_cycle_anchor"]),
5696
+ billingStartDate: json["billing_start_date"] == null ? void 0 : new Date(json["billing_start_date"]),
5696
5697
  companyId: json["company_id"],
5697
5698
  createdAt: new Date(json["created_at"]),
5698
5699
  daysUntilDue: json["days_until_due"],
@@ -5710,6 +5711,22 @@ function CustomPlanBillingResponseDataFromJSONTyped(json, ignoreDiscriminator) {
5710
5711
  };
5711
5712
  }
5712
5713
 
5714
+ // src/api/checkoutexternal/models/MigrationProrationBehavior.ts
5715
+ function MigrationProrationBehaviorFromJSON(json) {
5716
+ return MigrationProrationBehaviorFromJSONTyped(json, false);
5717
+ }
5718
+ function MigrationProrationBehaviorFromJSONTyped(json, ignoreDiscriminator) {
5719
+ return json;
5720
+ }
5721
+
5722
+ // src/api/checkoutexternal/models/PlanVersionMigrationStrategy.ts
5723
+ function PlanVersionMigrationStrategyFromJSON(json) {
5724
+ return PlanVersionMigrationStrategyFromJSONTyped(json, false);
5725
+ }
5726
+ function PlanVersionMigrationStrategyFromJSONTyped(json, ignoreDiscriminator) {
5727
+ return json;
5728
+ }
5729
+
5713
5730
  // src/api/checkoutexternal/models/PendingMigrationResponseData.ts
5714
5731
  function PendingMigrationResponseDataFromJSON(json) {
5715
5732
  return PendingMigrationResponseDataFromJSONTyped(json, false);
@@ -5719,8 +5736,11 @@ function PendingMigrationResponseDataFromJSONTyped(json, ignoreDiscriminator) {
5719
5736
  return json;
5720
5737
  }
5721
5738
  return {
5739
+ effectiveAt: json["effective_at"] == null ? void 0 : new Date(json["effective_at"]),
5722
5740
  migrationId: json["migration_id"],
5741
+ prorationBehavior: json["proration_behavior"] == null ? void 0 : MigrationProrationBehaviorFromJSON(json["proration_behavior"]),
5723
5742
  scheduledFor: json["scheduled_for"] == null ? void 0 : new Date(json["scheduled_for"]),
5743
+ strategy: PlanVersionMigrationStrategyFromJSON(json["strategy"]),
5724
5744
  toPlanId: json["to_plan_id"],
5725
5745
  toPlanName: json["to_plan_name"],
5726
5746
  toPlanVersionId: json["to_plan_version_id"],
@@ -5906,6 +5926,7 @@ function CompanyDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
5906
5926
  CompanyPlanWithBillingSubViewFromJSON
5907
5927
  ),
5908
5928
  billingCreditBalances: json["billing_credit_balances"] == null ? void 0 : json["billing_credit_balances"],
5929
+ billingEmail: json["billing_email"] == null ? void 0 : json["billing_email"],
5909
5930
  billingProfile: json["billing_profile"] == null ? void 0 : CompanyBillingProfileResponseDataFromJSON(json["billing_profile"]),
5910
5931
  billingProfiles: json["billing_profiles"] == null ? void 0 : json["billing_profiles"].map(
5911
5932
  CompanyBillingProfileResponseDataFromJSON
@@ -6159,6 +6180,29 @@ function CompanyPlanInvalidReasonFromJSONTyped(json, ignoreDiscriminator) {
6159
6180
  return json;
6160
6181
  }
6161
6182
 
6183
+ // src/api/checkoutexternal/models/PlanPriceCadence.ts
6184
+ function PlanPriceCadenceFromJSON(json) {
6185
+ return PlanPriceCadenceFromJSONTyped(json, false);
6186
+ }
6187
+ function PlanPriceCadenceFromJSONTyped(json, ignoreDiscriminator) {
6188
+ return json;
6189
+ }
6190
+
6191
+ // src/api/checkoutexternal/models/EstimatedPlanTotal.ts
6192
+ function EstimatedPlanTotalFromJSON(json) {
6193
+ return EstimatedPlanTotalFromJSONTyped(json, false);
6194
+ }
6195
+ function EstimatedPlanTotalFromJSONTyped(json, ignoreDiscriminator) {
6196
+ if (json == null) {
6197
+ return json;
6198
+ }
6199
+ return {
6200
+ amount: json["amount"],
6201
+ currency: json["currency"],
6202
+ period: PlanPriceCadenceFromJSON(json["period"])
6203
+ };
6204
+ }
6205
+
6162
6206
  // src/api/checkoutexternal/models/EntitlementCurrencyPricesResponseData.ts
6163
6207
  function EntitlementCurrencyPricesResponseDataFromJSON(json) {
6164
6208
  return EntitlementCurrencyPricesResponseDataFromJSONTyped(json, false);
@@ -6504,14 +6548,6 @@ function FeatureInPlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
6504
6548
  };
6505
6549
  }
6506
6550
 
6507
- // src/api/checkoutexternal/models/PlanPriceCadence.ts
6508
- function PlanPriceCadenceFromJSON(json) {
6509
- return PlanPriceCadenceFromJSONTyped(json, false);
6510
- }
6511
- function PlanPriceCadenceFromJSONTyped(json, ignoreDiscriminator) {
6512
- return json;
6513
- }
6514
-
6515
6551
  // src/api/checkoutexternal/models/CustomPlanConfig.ts
6516
6552
  function CustomPlanConfigFromJSON(json) {
6517
6553
  return CustomPlanConfigFromJSONTyped(json, false);
@@ -6780,6 +6816,9 @@ function CompanyPlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
6780
6816
  entitlements: json["entitlements"] == null ? void 0 : json["entitlements"].map(
6781
6817
  PlanEntitlementResponseDataFromJSON
6782
6818
  ),
6819
+ estimatedTotals: json["estimated_totals"] == null ? void 0 : json["estimated_totals"].map(
6820
+ EstimatedPlanTotalFromJSON
6821
+ ),
6783
6822
  features: json["features"].map(
6784
6823
  FeatureInPlanResponseDataFromJSON
6785
6824
  ),
@@ -6924,6 +6963,7 @@ function ComponentDisplaySettingsFromJSONTyped(json, ignoreDiscriminator) {
6924
6963
  return {
6925
6964
  showAsMonthlyPrices: json["show_as_monthly_prices"],
6926
6965
  showCredits: json["show_credits"],
6966
+ showEstimatedTotal: json["show_estimated_total"],
6927
6967
  showFeatureDescription: json["show_feature_description"],
6928
6968
  showHardLimit: json["show_hard_limit"],
6929
6969
  showPeriodToggle: json["show_period_toggle"],
@@ -9909,6 +9949,7 @@ function ComponentDisplaySettingsFromJSONTyped3(json, ignoreDiscriminator) {
9909
9949
  return {
9910
9950
  showAsMonthlyPrices: json["show_as_monthly_prices"],
9911
9951
  showCredits: json["show_credits"],
9952
+ showEstimatedTotal: json["show_estimated_total"],
9912
9953
  showFeatureDescription: json["show_feature_description"],
9913
9954
  showHardLimit: json["show_hard_limit"],
9914
9955
  showPeriodToggle: json["show_period_toggle"],
@@ -10373,9 +10414,9 @@ function PlanEntitlementResponseDataFromJSONTyped6(json, ignoreDiscriminator) {
10373
10414
 
10374
10415
  // src/api/componentspublic/models/PlanPriceCadence.ts
10375
10416
  function PlanPriceCadenceFromJSON2(json) {
10376
- return PlanPriceCadenceFromJSONTyped4(json, false);
10417
+ return PlanPriceCadenceFromJSONTyped5(json, false);
10377
10418
  }
10378
- function PlanPriceCadenceFromJSONTyped4(json, ignoreDiscriminator) {
10419
+ function PlanPriceCadenceFromJSONTyped5(json, ignoreDiscriminator) {
10379
10420
  return json;
10380
10421
  }
10381
10422
 
@@ -10616,6 +10657,9 @@ var ComponentspublicApi = class extends BaseAPI2 {
10616
10657
  async getPublicPlansRaw(initOverrides) {
10617
10658
  const queryParameters = {};
10618
10659
  const headerParameters = {};
10660
+ if (this.configuration && this.configuration.apiKey) {
10661
+ headerParameters["X-Schematic-Context-Sig"] = await this.configuration.apiKey("X-Schematic-Context-Sig");
10662
+ }
10619
10663
  if (this.configuration && this.configuration.apiKey) {
10620
10664
  headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
10621
10665
  "X-Schematic-Api-Key"
@@ -13395,6 +13439,8 @@ var en = {
13395
13439
  "Error processing payment. Please try a different payment method.": "Error processing payment. Please try a different payment method.",
13396
13440
  "Error retrieving plan details. Please try again in a moment.": "Error retrieving plan details. Please try again in a moment.",
13397
13441
  "Error updating payment method. Please try again.": "Error updating payment method. Please try again.",
13442
+ "Estimated at current usage": "Estimated at your current usage",
13443
+ "Estimated at current usage with base price": "Estimated at your current usage. Base price {{amount}}/{{period}}",
13398
13444
  "Estimated bill": "Estimated bill",
13399
13445
  "Everything in": "Everything in {{plan}}, plus",
13400
13446
  "Expired": "Expired",
@@ -13640,10 +13686,338 @@ var en = {
13640
13686
  };
13641
13687
  var en_default = en;
13642
13688
 
13689
+ // src/localization/it.ts
13690
+ var it2 = {
13691
+ "A problem occurred while saving your payment method.": "Si \xE8 verificato un problema durante il salvataggio del metodo di pagamento.",
13692
+ "Access to plan will end.": "L'accesso a {{plan}} terminer\xE0 il {{date}}.",
13693
+ "Active": "Attivo",
13694
+ "Add": "Aggiungi",
13695
+ "Add new payment method": "Aggiungi un nuovo metodo di pagamento",
13696
+ "Add More": "Aggiungi altro",
13697
+ "Additional information": "Informazioni aggiuntive",
13698
+ "Add-ons": "Add-on",
13699
+ "Add-ons Quantity": "Quantit\xE0 add-on",
13700
+ "Additional": "Extra",
13701
+ "Adds X tokens when Y remaining in balance": "Aggiunge {{amount}} {{unit}} quando nel saldo ne restano {{threshold}}",
13702
+ "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.",
13703
+ "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.",
13704
+ "After the trial, subscribe": "Al termine della prova l'abbonamento avr\xE0 inizio e ti verr\xE0 addebitato.",
13705
+ "Agreement": "Accordo",
13706
+ "Applied balance towards next invoice": "Saldo applicato alla prossima fattura",
13707
+ "Discount for months_one": "{{discount}} per il prossimo mese",
13708
+ "Discount for months_many": "{{discount}} per i prossimi {{count, number}} mesi",
13709
+ "Discount for months_other": "{{discount}} per i prossimi {{count, number}} mesi",
13710
+ "Auto Top-up": "Ricarica automatica",
13711
+ "Auto top-up enabled": "Ricarica automatica attiva",
13712
+ "Auto top-up disabled": "Ricarica automatica disattivata",
13713
+ "Auto top-up disabled for token": "Ricarica automatica disattivata per {{unit}}",
13714
+ "Automatically purchase more credits when your balance is low": "Acquista automaticamente altri {{units}} quando il saldo \xE8 basso",
13715
+ "at": "a",
13716
+ "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.",
13717
+ "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.",
13718
+ "An unknown error occurred.": "Si \xE8 verificato un errore sconosciuto.",
13719
+ "Billed": "Fatturazione {{period}}",
13720
+ "Bundle selected": "Pacchetto selezionato",
13721
+ "Buy credits": "Acquista crediti",
13722
+ "Cancel": "Annulla",
13723
+ "Country": "Paese",
13724
+ "Cancel subscription": "Annulla abbonamento",
13725
+ "Cannot change to this plan.": "L'utilizzo di {{reason, list(type: 'conjunction')}} supera il limite.",
13726
+ "Cannot downgrade entitlement": "Non puoi scendere a una quantit\xE0 inferiore all'utilizzo attuale.",
13727
+ "Card ending in": "\u{1F4B3} Carta che termina con {{value}}",
13728
+ "Change add-on": "Cambia add-on",
13729
+ "Change payment method": "Cambia metodo di pagamento",
13730
+ "Change plan": "Cambia piano",
13731
+ "Checkout": "Pagamento",
13732
+ "Choose add-on": "Scegli l'add-on",
13733
+ "Choose bundle": "Scegli il pacchetto",
13734
+ "Choose plan": "Scegli il piano",
13735
+ "Choose your base plan": "Scegli il tuo piano base",
13736
+ "Credit Auto Top-up": "Ricarica automatica di {{unit}}",
13737
+ "Credit bundles": "Pacchetti di crediti",
13738
+ "Credits": "Crediti",
13739
+ "Credits in plan": "Crediti nel piano",
13740
+ "Credits to be applied to future invoices": "Crediti da applicare alle fatture future",
13741
+ "Current plan": "Piano attuale",
13742
+ "Current usage exceeds the limit of this plan.": "L'utilizzo attuale supera il limite di questo piano.",
13743
+ "Currently using": "Attualmente in uso: {{quantity}} {{unit}}",
13744
+ "Custom plan awaiting payment": "Paga per attivare {{plan}}",
13745
+ "Custom plan awaiting payment description": "Paga la fattura per attivare il tuo piano personalizzato. Scadenza: {{date}}.",
13746
+ "Custom plan payment due": "Paga entro il {{date}} per mantenere {{plan}}",
13747
+ "Custom plan payment due description": "L'accesso a {{plan}} terminer\xE0 il {{date}} se la fattura non viene pagata.",
13748
+ "Custom price": "Prezzo personalizzato",
13749
+ "Discount": "Sconto",
13750
+ "Downgrade to plan scheduled": "Passaggio a {{plan}} programmato",
13751
+ "Due today": "Da pagare oggi",
13752
+ "Edit payment details": "Modifica i dati di pagamento",
13753
+ "Edit": "Modifica",
13754
+ "Ends on": "Termina il {{date}}",
13755
+ "Enter discount code": "Inserisci il codice sconto",
13756
+ "Error initializing payment method change. Please try again.": "Errore durante l'avvio del cambio del metodo di pagamento. Riprova.",
13757
+ "Error processing payment. Please try a different payment method.": "Errore durante l'elaborazione del pagamento. Prova con un altro metodo di pagamento.",
13758
+ "Error retrieving plan details. Please try again in a moment.": "Errore durante il recupero dei dettagli del piano. Riprova tra qualche istante.",
13759
+ "Error updating payment method. Please try again.": "Errore durante l'aggiornamento del metodo di pagamento. Riprova.",
13760
+ "Estimated bill": "Importo stimato",
13761
+ "Everything in": "Tutto quanto incluso in {{plan}}, pi\xF9",
13762
+ "Expired": "Scaduta",
13763
+ "Expires in X months": "Mesi alla scadenza: {{months}}",
13764
+ "Expires": "Scade il {{date}}",
13765
+ "Free": "Gratis",
13766
+ "Hide all": "Nascondi tutto",
13767
+ "Hide balance details": "Nascondi i dettagli del saldo",
13768
+ "Hide details": "Nascondi dettagli",
13769
+ "ID type": "Tipo di identificativo",
13770
+ "Ineligible for this discount.": "Non hai diritto a questo sconto.",
13771
+ "Invalid access token; your temporary access token will start with `token_`.": "Token di accesso non valido: il token di accesso temporaneo inizia con `token_`.",
13772
+ "Invalid discount code.": "Codice sconto non valido.",
13773
+ "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",
13774
+ "Invoice charge tooltip": "Addebito: questo importo ti \xE8 stato fatturato",
13775
+ "Invoices": "Fatture",
13776
+ "Limit of": "Limite di {{amount}}",
13777
+ "Loading": "Caricamento",
13778
+ "Manage plan": "Gestisci il piano",
13779
+ "Monthly total": "Totale mensile",
13780
+ "Quarterly total": "Totale trimestrale",
13781
+ "Next": "Avanti",
13782
+ "No invoices created yet": "Non \xE8 ancora stata emessa nessuna fattura",
13783
+ "No limit": "Nessun limite",
13784
+ "No payment method added yet": "Nessun metodo di pagamento aggiunto",
13785
+ "Not provided": "Non fornito",
13786
+ "No upcoming invoice": "Nessuna fattura in arrivo",
13787
+ "Not ready to cancel?": "Preferisci non disdire?",
13788
+ "On demand": "On demand",
13789
+ "One time": "Una tantum",
13790
+ "One-time charges": "Addebiti una tantum",
13791
+ "Optionally add features to your subscription": "Aggiungi funzionalit\xE0 al tuo abbonamento, se vuoi",
13792
+ "Other existing payment method": "Altro metodo di pagamento esistente",
13793
+ "Over plan limit": "Oltre il limite del piano",
13794
+ "Pay-in-advance features require a quantity.": "Le funzionalit\xE0 a pagamento anticipato richiedono una quantit\xE0.",
13795
+ "Error saving custom field values. Please try again.": "Errore durante il salvataggio dei campi personalizzati. Riprova.",
13796
+ "Pay now": "Paga ora",
13797
+ "Payment Details": "Dati di pagamento",
13798
+ "Payment due": "Pagamento entro il {{date}}",
13799
+ "Plan selected": "Piano selezionato",
13800
+ "Please accept the agreement to continue.": "Accetta l'accordo per continuare.",
13801
+ "Plan": "Piano",
13802
+ "Plans": "Piani",
13803
+ "Please provide an access token.": "Fornisci un token di accesso.",
13804
+ "Powered by": "Con tecnologia",
13805
+ "Price by unit based on final tier reached.": "Prezzo unitario in base all'ultima fascia raggiunta.",
13806
+ "Promotional credits": "Crediti promozionali",
13807
+ "Proration": "Pro rata",
13808
+ "Quantity": "Quantit\xE0",
13809
+ "Quantity to pay for in advance": "Quantit\xE0 da pagare in anticipo",
13810
+ "Remaining balance after next invoice": "Saldo residuo dopo la prossima fattura",
13811
+ "Remove": "Rimuovi",
13812
+ "Remove add-on": "Rimuovi add-on",
13813
+ "Resets": "Si azzera il {{date}}",
13814
+ "Save changes": "Salva modifiche",
13815
+ "Save payment method": "Salva metodo di pagamento",
13816
+ "Save with yearly billing": "Risparmia fino al {{percent}}% con la fatturazione annuale",
13817
+ "Saving with yearly billing": "Stai risparmiando il {{percent}}% con la fatturazione annuale",
13818
+ "Save with quarterly billing": "Risparmia fino al {{percent}}% con la fatturazione trimestrale",
13819
+ "Saving with quarterly billing": "Stai risparmiando il {{percent}}% con la fatturazione trimestrale",
13820
+ "See all": "Vedi tutto",
13821
+ "See all X": "Vedi tutto ({{total}})",
13822
+ "Select ID type": "Seleziona il tipo di identificativo",
13823
+ "Select country": "Seleziona il paese",
13824
+ "See balance details": "Vedi i dettagli del saldo",
13825
+ "See less": "Mostra meno",
13826
+ "See more": "Mostra altro",
13827
+ "Select add-ons": "Seleziona gli add-on",
13828
+ "Select existing payment method": "Seleziona un metodo di pagamento esistente",
13829
+ "Select payment method": "Seleziona il metodo di pagamento",
13830
+ "Select plan": "Seleziona il piano",
13831
+ "Select quantity": "Seleziona la quantit\xE0",
13832
+ "Select quantities for add-ons": "Seleziona le quantit\xE0 degli add-on",
13833
+ "Selected": "Selezionato",
13834
+ "Selected plan or associated price is missing.": "Manca il piano selezionato o il prezzo associato.",
13835
+ "Downgrade not permitted.": "Downgrade non consentito.",
13836
+ "Downgrade pending.": "Downgrade in attesa.",
13837
+ "Session expired. Please refresh and try again.": "Sessione scaduta. Aggiorna la pagina e riprova.",
13838
+ "Show details": "Mostra dettagli",
13839
+ "Start trial": "Inizia la prova",
13840
+ "Start X day trial": "Inizia la prova di {{days}} giorni",
13841
+ "Subscribe and close": "Abbonati e chiudi",
13842
+ "Subscription canceled": "Abbonamento annullato",
13843
+ "Subscription": "Abbonamento",
13844
+ "Talk to support": "Contatta l'assistenza",
13845
+ "Tax (description):": "Imposte ({{description}}):",
13846
+ "Tax ID": "Identificativo fiscale",
13847
+ "Tax ID format hint": "Non sembra un numero {{label}} nel formato consueto (es. {{example}}): controllalo prima di continuare.",
13848
+ "Tax ID save error": "Non \xE8 stato possibile salvare il tuo identificativo fiscale. Controllalo e riprova.",
13849
+ "There was a problem retrieving your upcoming invoice.": "Si \xE8 verificato un problema durante il recupero della prossima fattura.",
13850
+ "There was a problem retrieving your invoices.": "Si \xE8 verificato un problema durante il recupero delle fatture.",
13851
+ "Tier-based": "A fasce",
13852
+ "Tiers apply progressively as quantity increases.": "Le fasce si applicano progressivamente all'aumentare della quantit\xE0.",
13853
+ "Top up balance with:": "Ricarica il saldo con:",
13854
+ "Top-ups": "Ricariche",
13855
+ "Total": "Totale",
13856
+ "Trial ends in": "La prova termina tra {{amount}} {{units}}",
13857
+ "Trial in progress": "Prova in corso",
13858
+ "Trial selected": "Prova selezionata",
13859
+ "Trial": "Prova",
13860
+ "Try again": "Riprova",
13861
+ "Unlimited": "{{item}} senza limiti",
13862
+ "Unlimited in this tier": "{{feature}} senza limiti in questa fascia",
13863
+ "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.",
13864
+ "Unsubscribe failed": "Disdetta non riuscita",
13865
+ "Unsubscribe": "Disdici",
13866
+ "Unused time": "Tempo non utilizzato",
13867
+ "Up to X units": "Fino a {{amount}} {{units}}",
13868
+ "Up to X units per period": "Fino a {{amount}} {{units}} per {{period}}",
13869
+ "Up to a limit of": "Fino a un limite di {{amount}} {{units}}",
13870
+ "Up to X units at $Y/unit": "Fino a {{X}} {{units}} a {{Y}} per {{unit}}",
13871
+ "Up to X units at $Y/unit + $Z/period": "Fino a {{X}} {{units}} a {{Y}} per {{unit}} pi\xF9 {{Z}} per {{period}}",
13872
+ "Up to X units for $Y/period": "Fino a {{X}} {{units}} a {{Y}} per {{period}}",
13873
+ "Up to X units for free": "Fino a {{X}} {{units}} gratis",
13874
+ "Up to X units in this tier": "Fino a {{amount}} {{feature}} in questa fascia",
13875
+ "Usage-based": "A consumo",
13876
+ "Use existing payment method": "Usa un metodo di pagamento esistente",
13877
+ "When balance reaches:": "Quando il saldo scende a:",
13878
+ "X additional": "{{amount}} aggiuntivi",
13879
+ "X included": "{{amount}} inclusi",
13880
+ "X item auto-topup": "Ricarica automatica di {{amount}} {{item}} acquistata il {{createdAt}}",
13881
+ "X item bundle": "Pacchetto di {{amount}} {{item}} acquistato il {{createdAt}}",
13882
+ "X item grant": "Assegnazione promozionale di {{amount}} {{item}} del {{createdAt}}",
13883
+ "X items included in plan": "{{amount}} {{item}} nel piano",
13884
+ "X off": "{{amount}} di sconto",
13885
+ "X% off": "{{percent}}% di sconto",
13886
+ "X units": "{{amount}} {{units}}",
13887
+ "X units remaining": "Residuo: {{amount}} {{units}}",
13888
+ "X units used": "Utilizzo: {{amount}} {{units}}",
13889
+ "X units per use": "{{amount}} {{units}} per utilizzo",
13890
+ "X credits per license": "{{amount}} {{creditName}} per {{licenseName}}",
13891
+ "X credits per license per period": "{{amount}} {{creditName}} per {{licenseName}} per {{period}}",
13892
+ "Plus X credits per period": "+ {{amount}} {{creditName}} per {{period}}",
13893
+ "Plus X credits per period for your company": "+ {{amount}} {{creditName}} per {{period}} per la tua azienda",
13894
+ "Includes X credits per license": "Include {{amount}} {{creditName}} per {{licenseName}}",
13895
+ "X licenses times Y credits": "{{quantity}} {{licenseName}} \xD7 {{perUnit}} = {{total}} {{creditName}}/{{period}}",
13896
+ "X licenses times Y credits plus company": "{{quantity}} {{licenseName}} \xD7 {{perUnit}} + {{fixed}} = {{total}} {{creditName}}/{{period}}",
13897
+ "Credits included": "Crediti inclusi",
13898
+ "Your plan includes credits": "Il tuo piano include {{total}} {{creditName}}/{{period}}{{composition}}.",
13899
+ "credit composition per license": "{{quantity}} {{licenseName}} \xD7 {{perUnit}}",
13900
+ "credit composition company grant": "{{amount}} assegnati all'azienda",
13901
+ "Renews on the day": "Si rinnova il giorno {{day}}.",
13902
+ "Adding licenses grants more credits today": "Aggiungendo {{added}} {{licenseName}} ottieni oggi {{credits}} {{creditName}} in pi\xF9, calcolati pro rata.",
13903
+ "Your full credits renew on the day": "L'intera assegnazione di {{total}} {{creditName}} si rinnova con cadenza {{cadence}} il giorno {{day}}.",
13904
+ "Your credit grant increases on the day": "La tua assegnazione di crediti sale a {{total}} il giorno {{day}}.",
13905
+ "Includes X credits per period": "Include {{total}} {{creditName}}/{{period}}",
13906
+ "Plus X credits today": "+{{amount}} oggi",
13907
+ "Plus X credits on the day": "+{{amount}} il giorno {{day}}",
13908
+ "X time left in trial": "Ancora {{amount}} {{units}} di prova",
13909
+ "Yearly total": "Totale annuale",
13910
+ "You will be billed": "Ti verr\xE0 addebitato {{price}} {{usage}}per questo abbonamento ogni {{period}} {{schedule}}a meno che tu non lo disdica.",
13911
+ "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.",
13912
+ "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.",
13913
+ "plus usage based costs": "pi\xF9 i costi a consumo",
13914
+ "on the day": "il giorno {{day}}",
13915
+ "of month": "{{month}}",
13916
+ "for the next months_one": "per il prossimo mese",
13917
+ "for the next months_many": "per i prossimi {{count, number}} mesi",
13918
+ "for the next months_other": "per i prossimi {{count, number}} mesi",
13919
+ "You will be downgraded at the end of your billing period.": "Passerai al piano {{plan}} alla fine del periodo di fatturazione, il {{date}}.",
13920
+ "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",
13921
+ "$X per unit": "{{cost}} per {{unit}}",
13922
+ "$X per Y units": "{{cost}} ogni {{size}} {{units}}",
13923
+ "$X/unit/period": "{{cost}}/{{unit}}/{{period}}",
13924
+ "$X/Y units/period": "{{cost}}/{{size}} {{units}}/{{period}}",
13925
+ "day": "giorno",
13926
+ "day_one": "giorno",
13927
+ "day_many": "giorni",
13928
+ "day_other": "giorni",
13929
+ "week": "settimana",
13930
+ "month": "mese",
13931
+ "quarter": "trimestre",
13932
+ "year": "anno",
13933
+ "mo": "mese",
13934
+ "qtr": "trim.",
13935
+ "yr": "anno",
13936
+ "one time": "una tantum",
13937
+ "billing period": "periodo di fatturazione",
13938
+ "billing period_one": "periodo di fatturazione",
13939
+ "billing period_many": "periodi di fatturazione",
13940
+ "billing period_other": "periodi di fatturazione",
13941
+ "expires after purchase": "scade {{amount}} {{unit}} dopo l'acquisto",
13942
+ "expires at the end of the billing period": "scade alla fine del periodo di fatturazione",
13943
+ "expires at the end of the next billing period": "scade alla fine del prossimo periodo di fatturazione",
13944
+ "expires at the end of the trial": "scade alla fine della prova",
13945
+ "Ordinal_ordinal_many": "{{count, number}}",
13946
+ "Ordinal_ordinal_other": "{{count, number}}",
13947
+ "per": "per",
13948
+ "then": "poi",
13949
+ "use": "utilizzo",
13950
+ "used": "utilizzati",
13951
+ "license": "licenza",
13952
+ "month, billed yearly": "mese, fatturazione annuale",
13953
+ "month, billed quarterly": "mese, fatturazione trimestrale",
13954
+ "purchased": "acquistato il {{date}}",
13955
+ "hour_one": "ora",
13956
+ "hour_many": "ore",
13957
+ "hour_other": "ore",
13958
+ "minute_one": "minuto",
13959
+ "minute_many": "minuti",
13960
+ "minute_other": "minuti",
13961
+ "second_one": "secondo",
13962
+ "second_many": "secondi",
13963
+ "second_other": "secondi",
13964
+ "daily": "giornaliera",
13965
+ "weekly": "settimanale",
13966
+ "monthly": "mensile",
13967
+ "quarterly": "trimestrale",
13968
+ "yearly": "annuale",
13969
+ "Usage by user": "Utilizzo per utente",
13970
+ "X used by your team this period": "{{amount}} utilizzati dal tuo team in questo periodo",
13971
+ "Show all X users_one": "Mostra {{count, number}} utente",
13972
+ "Show all X users_many": "Mostra tutti i {{count, number}} utenti",
13973
+ "Show all X users_other": "Mostra tutti i {{count, number}} utenti",
13974
+ "Show top X users_one": "Mostra l'utente principale",
13975
+ "Show top X users_many": "Mostra i primi {{count, number}} utenti",
13976
+ "Show top X users_other": "Mostra i primi {{count, number}} utenti",
13977
+ "Show all": "Mostra tutto",
13978
+ "Show fewer": "Mostra meno",
13979
+ "Unattributed": "Non attribuito",
13980
+ "There was a problem retrieving usage by user.": "Si \xE8 verificato un problema durante il recupero dell'utilizzo per utente.",
13981
+ "plus X more_one": "e {{count, number}} altro",
13982
+ "plus X more_many": "e altri {{count, number}}",
13983
+ "plus X more_other": "e altri {{count, number}}",
13984
+ "usage.limited": "{{amount}} su {{allocation}} utilizzati",
13985
+ "usage.unlimited": "{{amount}} utilizzati",
13986
+ "Apply discount": "Applica sconto",
13987
+ "Buy More": "Acquista altro",
13988
+ "Choose different payment method": "Scegli un altro metodo di pagamento",
13989
+ "Downgrade pending. Cancel the scheduled downgrade before making another change.": "Downgrade in attesa. Annulla il downgrade programmato prima di apportare altre modifiche.",
13990
+ "Error deleting payment method. Please try again.": "Errore durante l'eliminazione del metodo di pagamento. Riprova.",
13991
+ "for cost": "per il costo",
13992
+ "Invalid currency filter: {{entries}}": "Filtro valuta non valido: {{entries}}",
13993
+ "No supported currencies are available.": "Non \xE8 disponibile nessuna valuta supportata.",
13994
+ "No {{currency}} price for the {{period}} billing period.": "Nessun prezzo in {{currency}} per il periodo di fatturazione {{period}}.",
13995
+ "Optionally add credit bundles to your subscription": "Aggiungi pacchetti di crediti al tuo abbonamento, se vuoi",
13996
+ "Quantity is required.": "La quantit\xE0 \xE8 obbligatoria.",
13997
+ "Schedule downgrade": "Programma il downgrade",
13998
+ "Select credits": "Seleziona i crediti",
13999
+ "Set default": "Imposta come predefinito",
14000
+ "This plan is not available in the selected currency and period.": "Questo piano non \xE8 disponibile nella valuta e nel periodo selezionati.",
14001
+ "Tier": "Fascia",
14002
+ "your plan": "il tuo piano",
14003
+ "Included features": "Funzionalit\xE0 incluse",
14004
+ "Next bill due": "Prossima fattura",
14005
+ "Error": "Errore",
14006
+ "Portal not found": "Portale non trovato",
14007
+ "Please try again later.": "Riprova pi\xF9 tardi.",
14008
+ "Email": "Email",
14009
+ "Enter email address": "Inserisci l'indirizzo email",
14010
+ "Limit": "Limite",
14011
+ "Tiered pricing": "Prezzi a fasce",
14012
+ "Billing threshold": "Soglia di fatturazione"
14013
+ };
14014
+ var it_default = it2;
14015
+
13643
14016
  // src/localization/i18n.ts
13644
14017
  var SCHEMATIC_NAMESPACE = "schematic";
13645
14018
  var DEFAULT_LANGUAGE = "en";
13646
14019
  var schematicTranslationsEn = en_default;
14020
+ var schematicTranslationsIt = it_default;
13647
14021
  var LOOKUP_OPTIONS = {
13648
14022
  ns: SCHEMATIC_NAMESPACE,
13649
14023
  keySeparator: false,
@@ -13839,6 +14213,30 @@ function getPlanPrice(plan, period = "month", options = { useSelectedPeriod: tru
13839
14213
  return { ...billingPrice, price: getPriceValue(billingPrice) };
13840
14214
  }
13841
14215
  }
14216
+ var ESTIMATE_PERIODS = {
14217
+ month: "monthly",
14218
+ quarter: "quarterly",
14219
+ year: "yearly"
14220
+ };
14221
+ function getPlanEstimatedTotal(plan, period = "month", currency) {
14222
+ const cadence = ESTIMATE_PERIODS[period];
14223
+ if (!cadence || !Array.isArray(plan.estimatedTotals)) {
14224
+ return void 0;
14225
+ }
14226
+ return plan.estimatedTotals.find(
14227
+ (estimate) => estimate.period === cadence && (!currency || estimate.currency.toLowerCase() === currency.toLowerCase())
14228
+ );
14229
+ }
14230
+ function getPlanEstimatedPrice(plan, period, planPrice, currency) {
14231
+ if (plan.custom) {
14232
+ return void 0;
14233
+ }
14234
+ const estimate = getPlanEstimatedTotal(plan, period, currency);
14235
+ if (!estimate || estimate.amount === (planPrice ?? 0)) {
14236
+ return void 0;
14237
+ }
14238
+ return estimate.amount;
14239
+ }
13842
14240
  function planOffersCurrencyForPeriod(plan, period = "month", currency) {
13843
14241
  if (!currency) return true;
13844
14242
  const price = getPlanPrice(
@@ -15696,7 +16094,7 @@ var reducer = (state, action) => {
15696
16094
  // src/context/EmbedProvider.tsx
15697
16095
  import { jsx as jsx3, jsxs } from "react/jsx-runtime";
15698
16096
  var getCustomHeaders = (sessionId) => ({
15699
- "X-Schematic-Components-Version": "2.29.1",
16097
+ "X-Schematic-Components-Version": "2.31.0",
15700
16098
  "X-Schematic-Session-ID": sessionId
15701
16099
  });
15702
16100
  var normalizeCurrencyFilter = (filter2) => {
@@ -18539,7 +18937,8 @@ var Plan = ({
18539
18937
  const hasUsageBasedEntitlements = (plan.entitlements ?? []).some(
18540
18938
  (entitlement) => !!entitlement.priceBehavior
18541
18939
  );
18542
- const isFreePlan = planPrice === 0;
18940
+ const headlinePrice = getPlanEstimatedPrice(plan, planPeriod, planPrice, planCurrency) ?? planPrice;
18941
+ const isFreePlan = headlinePrice === 0;
18543
18942
  const isUsageBasedPlan = isFreePlan && hasUsageBasedEntitlements;
18544
18943
  const headerPriceFontStyle = settings.theme.typography.heading2;
18545
18944
  const isExpanded = entitlementVisibility[plan.id] ?? false;
@@ -18584,15 +18983,15 @@ var Plan = ({
18584
18983
  $size: headerPriceFontStyle.fontSize,
18585
18984
  $weight: headerPriceFontStyle.fontWeight,
18586
18985
  $color: headerPriceFontStyle.color,
18587
- 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, {
18986
+ 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, {
18588
18987
  locale,
18589
18988
  currency: planCurrency,
18590
18989
  testSignificantDigits: false
18591
- }) : showAsMonthlyPrices && planPeriod === "quarter" ? formatCurrency((planPrice ?? 0) / 3, {
18990
+ }) : showAsMonthlyPrices && planPeriod === "quarter" ? formatCurrency((headlinePrice ?? 0) / 3, {
18592
18991
  locale,
18593
18992
  currency: planCurrency,
18594
18993
  testSignificantDigits: false
18595
- }) : formatCurrency(planPrice ?? 0, {
18994
+ }) : formatCurrency(headlinePrice ?? 0, {
18596
18995
  locale,
18597
18996
  currency: planCurrency
18598
18997
  })
@@ -18610,6 +19009,15 @@ var Plan = ({
18610
19009
  }
18611
19010
  )
18612
19011
  ] }),
19012
+ /* @__PURE__ */ jsx19(
19013
+ PlanEstimatedTotal,
19014
+ {
19015
+ plan,
19016
+ period: planPeriod,
19017
+ planPrice,
19018
+ currency: planCurrency
19019
+ }
19020
+ ),
18613
19021
  showCredits && credits.length > 0 && /* @__PURE__ */ jsx19(
18614
19022
  Flex,
18615
19023
  {
@@ -22272,12 +22680,46 @@ var PlanCreditText = ({
22272
22680
  ] });
22273
22681
  };
22274
22682
 
22683
+ // src/components/shared/plan-estimated-total/PlanEstimatedTotal.tsx
22684
+ import { jsx as jsx39 } from "react/jsx-runtime";
22685
+ var PlanEstimatedTotal = ({
22686
+ plan,
22687
+ period,
22688
+ planPrice,
22689
+ currency
22690
+ }) => {
22691
+ const { t: t3, locale } = useTranslation();
22692
+ const { data, settings } = useEmbed();
22693
+ if (getPlanEstimatedPrice(plan, period, planPrice, currency) === void 0) {
22694
+ return null;
22695
+ }
22696
+ const showAsMonthlyPrices = data?.displaySettings?.showAsMonthlyPrices ?? false;
22697
+ const divisor = !showAsMonthlyPrices ? 1 : period === BillingProductPriceInterval.Year ? 12 : period === "quarter" ? 3 : 1;
22698
+ return /* @__PURE__ */ jsx39(Box, { children: /* @__PURE__ */ jsx39(
22699
+ Text,
22700
+ {
22701
+ "data-testid": "sch-plan-estimated-total",
22702
+ $size: 0.875 * settings.theme.typography.text.fontSize,
22703
+ children: planPrice ? t3("Estimated at current usage with base price", {
22704
+ amount: formatCurrency(planPrice / divisor, {
22705
+ locale,
22706
+ currency,
22707
+ testSignificantDigits: divisor === 1
22708
+ }),
22709
+ period: t3(
22710
+ divisor === 1 ? period : "month"
22711
+ )
22712
+ }) : t3("Estimated at current usage")
22713
+ }
22714
+ ) });
22715
+ };
22716
+
22275
22717
  // src/components/shared/pricing-tiers-tooltip/PricingTiersTooltip.tsx
22276
22718
  import { useMemo as useMemo21 } from "react";
22277
22719
 
22278
22720
  // src/components/shared/pricing-tiers-tooltip/PriceText.tsx
22279
22721
  import { useMemo as useMemo20 } from "react";
22280
- import { Fragment as Fragment12, jsx as jsx39, jsxs as jsxs27 } from "react/jsx-runtime";
22722
+ import { Fragment as Fragment12, jsx as jsx40, jsxs as jsxs27 } from "react/jsx-runtime";
22281
22723
  var PriceText = ({
22282
22724
  feature,
22283
22725
  period,
@@ -22320,7 +22762,7 @@ var PriceText = ({
22320
22762
  ] })
22321
22763
  ] });
22322
22764
  }, [t3, feature, period, currency, flatAmount, perUnitPrice, locale]);
22323
- return /* @__PURE__ */ jsx39(
22765
+ return /* @__PURE__ */ jsx40(
22324
22766
  Text,
22325
22767
  {
22326
22768
  $size: 0.875 * settings.theme.typography.text.fontSize,
@@ -22331,7 +22773,7 @@ var PriceText = ({
22331
22773
  };
22332
22774
 
22333
22775
  // src/components/shared/pricing-tiers-tooltip/PricingTiersTooltip.tsx
22334
- import { Fragment as Fragment13, jsx as jsx40, jsxs as jsxs28 } from "react/jsx-runtime";
22776
+ import { Fragment as Fragment13, jsx as jsx41, jsxs as jsxs28 } from "react/jsx-runtime";
22335
22777
  var PricingTiersTooltip = ({
22336
22778
  portal,
22337
22779
  feature,
@@ -22364,11 +22806,11 @@ var PricingTiersTooltip = ({
22364
22806
  if (!priceTiers.length) {
22365
22807
  return null;
22366
22808
  }
22367
- return /* @__PURE__ */ jsx40(
22809
+ return /* @__PURE__ */ jsx41(
22368
22810
  Tooltip,
22369
22811
  {
22370
22812
  portal,
22371
- trigger: /* @__PURE__ */ jsx40(
22813
+ trigger: /* @__PURE__ */ jsx41(
22372
22814
  Icon3,
22373
22815
  {
22374
22816
  title: t3("Tiered pricing"),
@@ -22378,7 +22820,7 @@ var PricingTiersTooltip = ({
22378
22820
  }
22379
22821
  ),
22380
22822
  content: /* @__PURE__ */ jsxs28(Flex, { $flexDirection: "column", $gap: "1rem", children: [
22381
- /* @__PURE__ */ jsx40("dl", { children: tiers.map((tier, index) => {
22823
+ /* @__PURE__ */ jsx41("dl", { children: tiers.map((tier, index) => {
22382
22824
  const flatAmount = typeof tier.flatAmount === "number" ? tier.flatAmount : void 0;
22383
22825
  const perUnitPrice = typeof tier.perUnitPriceDecimal === "string" ? Number(tier.perUnitPriceDecimal) : typeof tier.perUnitPrice === "number" ? tier.perUnitPrice : void 0;
22384
22826
  return /* @__PURE__ */ jsxs28(
@@ -22389,17 +22831,17 @@ var PricingTiersTooltip = ({
22389
22831
  $gap: "1rem",
22390
22832
  $padding: "0.5rem",
22391
22833
  children: [
22392
- /* @__PURE__ */ jsx40("dt", { children: /* @__PURE__ */ jsxs28(
22834
+ /* @__PURE__ */ jsx41("dt", { children: /* @__PURE__ */ jsxs28(
22393
22835
  Text,
22394
22836
  {
22395
22837
  $size: 0.875 * settings.theme.typography.text.fontSize,
22396
22838
  children: [
22397
22839
  tier.from,
22398
- tier.from !== tier.to && /* @__PURE__ */ jsx40(Fragment13, { children: tier.to === Infinity ? "+" : `\u2013${tier.to}` })
22840
+ tier.from !== tier.to && /* @__PURE__ */ jsx41(Fragment13, { children: tier.to === Infinity ? "+" : `\u2013${tier.to}` })
22399
22841
  ]
22400
22842
  }
22401
22843
  ) }),
22402
- /* @__PURE__ */ jsx40("dd", { children: /* @__PURE__ */ jsx40(
22844
+ /* @__PURE__ */ jsx41("dd", { children: /* @__PURE__ */ jsx41(
22403
22845
  PriceText,
22404
22846
  {
22405
22847
  period,
@@ -22415,7 +22857,7 @@ var PricingTiersTooltip = ({
22415
22857
  );
22416
22858
  }) }),
22417
22859
  tiersMode && /* @__PURE__ */ jsxs28(Fragment13, { children: [
22418
- /* @__PURE__ */ jsx40(
22860
+ /* @__PURE__ */ jsx41(
22419
22861
  "hr",
22420
22862
  {
22421
22863
  style: {
@@ -22425,7 +22867,7 @@ var PricingTiersTooltip = ({
22425
22867
  }
22426
22868
  }
22427
22869
  ),
22428
- /* @__PURE__ */ jsx40(Box, { children: /* @__PURE__ */ jsxs28(Text, { $size: 0.875 * settings.theme.typography.text.fontSize, children: [
22870
+ /* @__PURE__ */ jsx41(Box, { children: /* @__PURE__ */ jsxs28(Text, { $size: 0.875 * settings.theme.typography.text.fontSize, children: [
22429
22871
  "\u2139\uFE0F",
22430
22872
  " ",
22431
22873
  tiersMode === BillingTiersMode.Volume ? t3("Price by unit based on final tier reached.") : t3("Tiers apply progressively as quantity increases.")
@@ -22449,7 +22891,7 @@ import {
22449
22891
  import { createPortal as createPortal2 } from "react-dom";
22450
22892
 
22451
22893
  // src/components/shared/subscription-sidebar/CheckoutStageButton.tsx
22452
- import { jsx as jsx41, jsxs as jsxs29 } from "react/jsx-runtime";
22894
+ import { jsx as jsx42, jsxs as jsxs29 } from "react/jsx-runtime";
22453
22895
  var NoPaymentRequired = ({
22454
22896
  isDisabled,
22455
22897
  isLoading,
@@ -22459,7 +22901,7 @@ var NoPaymentRequired = ({
22459
22901
  onClick
22460
22902
  }) => {
22461
22903
  const { t: t3 } = useTranslation();
22462
- return /* @__PURE__ */ jsx41(
22904
+ return /* @__PURE__ */ jsx42(
22463
22905
  Button,
22464
22906
  {
22465
22907
  type: "button",
@@ -22525,7 +22967,7 @@ var CheckoutStageButton = ({
22525
22967
  if (checkoutStage === "plan") {
22526
22968
  const nextStage = getNextStageId("plan");
22527
22969
  if (isSelectedPlanTrialable && trialPaymentMethodRequired && shouldTrial) {
22528
- return /* @__PURE__ */ jsx41(
22970
+ return /* @__PURE__ */ jsx42(
22529
22971
  Button,
22530
22972
  {
22531
22973
  type: "button",
@@ -22546,7 +22988,7 @@ var CheckoutStageButton = ({
22546
22988
  t3("Next"),
22547
22989
  ": ",
22548
22990
  t3("Checkout"),
22549
- /* @__PURE__ */ jsx41(Icon3, { name: "arrow-right" })
22991
+ /* @__PURE__ */ jsx42(Icon3, { name: "arrow-right" })
22550
22992
  ]
22551
22993
  }
22552
22994
  )
@@ -22554,7 +22996,7 @@ var CheckoutStageButton = ({
22554
22996
  );
22555
22997
  }
22556
22998
  if (!isPaymentMethodRequired && !nextStage) {
22557
- return /* @__PURE__ */ jsx41(
22999
+ return /* @__PURE__ */ jsx42(
22558
23000
  NoPaymentRequired,
22559
23001
  {
22560
23002
  isDisabled,
@@ -22565,7 +23007,7 @@ var CheckoutStageButton = ({
22565
23007
  }
22566
23008
  );
22567
23009
  }
22568
- return /* @__PURE__ */ jsx41(
23010
+ return /* @__PURE__ */ jsx42(
22569
23011
  Button,
22570
23012
  {
22571
23013
  type: "button",
@@ -22580,7 +23022,7 @@ var CheckoutStageButton = ({
22580
23022
  t3("Next"),
22581
23023
  ": ",
22582
23024
  getStageDisplayName(nextStage),
22583
- /* @__PURE__ */ jsx41(Icon3, { name: "arrow-right" })
23025
+ /* @__PURE__ */ jsx42(Icon3, { name: "arrow-right" })
22584
23026
  ] })
22585
23027
  }
22586
23028
  );
@@ -22588,7 +23030,7 @@ var CheckoutStageButton = ({
22588
23030
  if (checkoutStage === "autoTopup") {
22589
23031
  const nextStage = getNextStageId("autoTopup");
22590
23032
  if (!isPaymentMethodRequired && !nextStage) {
22591
- return /* @__PURE__ */ jsx41(
23033
+ return /* @__PURE__ */ jsx42(
22592
23034
  NoPaymentRequired,
22593
23035
  {
22594
23036
  isDisabled,
@@ -22599,7 +23041,7 @@ var CheckoutStageButton = ({
22599
23041
  }
22600
23042
  );
22601
23043
  }
22602
- return /* @__PURE__ */ jsx41(
23044
+ return /* @__PURE__ */ jsx42(
22603
23045
  Button,
22604
23046
  {
22605
23047
  type: "button",
@@ -22621,7 +23063,7 @@ var CheckoutStageButton = ({
22621
23063
  t3("Next"),
22622
23064
  ": ",
22623
23065
  getStageDisplayName(nextStage),
22624
- /* @__PURE__ */ jsx41(Icon3, { name: "arrow-right" })
23066
+ /* @__PURE__ */ jsx42(Icon3, { name: "arrow-right" })
22625
23067
  ]
22626
23068
  }
22627
23069
  )
@@ -22631,7 +23073,7 @@ var CheckoutStageButton = ({
22631
23073
  if (checkoutStage === "usage") {
22632
23074
  const nextStage = getNextStageId("usage");
22633
23075
  if (!isPaymentMethodRequired && !nextStage) {
22634
- return /* @__PURE__ */ jsx41(
23076
+ return /* @__PURE__ */ jsx42(
22635
23077
  NoPaymentRequired,
22636
23078
  {
22637
23079
  isDisabled,
@@ -22642,7 +23084,7 @@ var CheckoutStageButton = ({
22642
23084
  }
22643
23085
  );
22644
23086
  }
22645
- return /* @__PURE__ */ jsx41(
23087
+ return /* @__PURE__ */ jsx42(
22646
23088
  Button,
22647
23089
  {
22648
23090
  type: "button",
@@ -22664,7 +23106,7 @@ var CheckoutStageButton = ({
22664
23106
  t3("Next"),
22665
23107
  ": ",
22666
23108
  getStageDisplayName(nextStage),
22667
- /* @__PURE__ */ jsx41(Icon3, { name: "arrow-right" })
23109
+ /* @__PURE__ */ jsx42(Icon3, { name: "arrow-right" })
22668
23110
  ]
22669
23111
  }
22670
23112
  )
@@ -22674,7 +23116,7 @@ var CheckoutStageButton = ({
22674
23116
  if (checkoutStage === "addons") {
22675
23117
  const nextStage = getNextStageId("addons");
22676
23118
  if (!isPaymentMethodRequired && !nextStage) {
22677
- return /* @__PURE__ */ jsx41(
23119
+ return /* @__PURE__ */ jsx42(
22678
23120
  NoPaymentRequired,
22679
23121
  {
22680
23122
  isDisabled,
@@ -22685,7 +23127,7 @@ var CheckoutStageButton = ({
22685
23127
  }
22686
23128
  );
22687
23129
  }
22688
- return /* @__PURE__ */ jsx41(
23130
+ return /* @__PURE__ */ jsx42(
22689
23131
  Button,
22690
23132
  {
22691
23133
  type: "button",
@@ -22706,7 +23148,7 @@ var CheckoutStageButton = ({
22706
23148
  t3("Next"),
22707
23149
  ": ",
22708
23150
  getStageDisplayName(nextStage),
22709
- /* @__PURE__ */ jsx41(Icon3, { name: "arrow-right" })
23151
+ /* @__PURE__ */ jsx42(Icon3, { name: "arrow-right" })
22710
23152
  ]
22711
23153
  }
22712
23154
  )
@@ -22716,7 +23158,7 @@ var CheckoutStageButton = ({
22716
23158
  if (checkoutStage === "addonsUsage") {
22717
23159
  const nextStage = getNextStageId("addonsUsage");
22718
23160
  if (!isPaymentMethodRequired && !nextStage) {
22719
- return /* @__PURE__ */ jsx41(
23161
+ return /* @__PURE__ */ jsx42(
22720
23162
  NoPaymentRequired,
22721
23163
  {
22722
23164
  isDisabled,
@@ -22727,7 +23169,7 @@ var CheckoutStageButton = ({
22727
23169
  }
22728
23170
  );
22729
23171
  }
22730
- return /* @__PURE__ */ jsx41(
23172
+ return /* @__PURE__ */ jsx42(
22731
23173
  Button,
22732
23174
  {
22733
23175
  type: "button",
@@ -22749,7 +23191,7 @@ var CheckoutStageButton = ({
22749
23191
  t3("Next"),
22750
23192
  ": ",
22751
23193
  getStageDisplayName(nextStage),
22752
- /* @__PURE__ */ jsx41(Icon3, { name: "arrow-right" })
23194
+ /* @__PURE__ */ jsx42(Icon3, { name: "arrow-right" })
22753
23195
  ]
22754
23196
  }
22755
23197
  )
@@ -22759,7 +23201,7 @@ var CheckoutStageButton = ({
22759
23201
  if (checkoutStage === "credits") {
22760
23202
  const nextStage = getNextStageId("credits");
22761
23203
  if (!nextStage) {
22762
- return /* @__PURE__ */ jsx41(
23204
+ return /* @__PURE__ */ jsx42(
22763
23205
  NoPaymentRequired,
22764
23206
  {
22765
23207
  isDisabled,
@@ -22770,7 +23212,7 @@ var CheckoutStageButton = ({
22770
23212
  }
22771
23213
  );
22772
23214
  }
22773
- return /* @__PURE__ */ jsx41(
23215
+ return /* @__PURE__ */ jsx42(
22774
23216
  Button,
22775
23217
  {
22776
23218
  type: "button",
@@ -22791,7 +23233,7 @@ var CheckoutStageButton = ({
22791
23233
  t3("Next"),
22792
23234
  ": ",
22793
23235
  getStageDisplayName(nextStage),
22794
- /* @__PURE__ */ jsx41(Icon3, { name: "arrow-right" })
23236
+ /* @__PURE__ */ jsx42(Icon3, { name: "arrow-right" })
22795
23237
  ]
22796
23238
  }
22797
23239
  )
@@ -22799,10 +23241,10 @@ var CheckoutStageButton = ({
22799
23241
  );
22800
23242
  }
22801
23243
  if (checkoutStage === "checkout") {
22802
- const optInNotice = optInUnmet ? /* @__PURE__ */ jsx41(Text, { $color: "#D97706", $size: 15, children: t3("Please accept the agreement to continue.") }) : null;
23244
+ const optInNotice = optInUnmet ? /* @__PURE__ */ jsx42(Text, { $color: "#D97706", $size: 15, children: t3("Please accept the agreement to continue.") }) : null;
22803
23245
  if (!isPaymentMethodRequired) {
22804
23246
  return /* @__PURE__ */ jsxs29(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
22805
- /* @__PURE__ */ jsx41(
23247
+ /* @__PURE__ */ jsx42(
22806
23248
  NoPaymentRequired,
22807
23249
  {
22808
23250
  isDisabled: isDisabled || hasIncompleteRequiredCustomFields || optInUnmet,
@@ -22816,7 +23258,7 @@ var CheckoutStageButton = ({
22816
23258
  ] });
22817
23259
  }
22818
23260
  return /* @__PURE__ */ jsxs29(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
22819
- /* @__PURE__ */ jsx41(
23261
+ /* @__PURE__ */ jsx42(
22820
23262
  Button,
22821
23263
  {
22822
23264
  type: "button",
@@ -22833,7 +23275,7 @@ var CheckoutStageButton = ({
22833
23275
  };
22834
23276
 
22835
23277
  // src/components/shared/subscription-sidebar/EntitlementRow.tsx
22836
- import { Fragment as Fragment14, jsx as jsx42, jsxs as jsxs30 } from "react/jsx-runtime";
23278
+ import { Fragment as Fragment14, jsx as jsx43, jsxs as jsxs30 } from "react/jsx-runtime";
22837
23279
  var EntitlementRow = (props) => {
22838
23280
  const { t: t3, locale } = useTranslation();
22839
23281
  const { settings } = useEmbed();
@@ -22861,7 +23303,7 @@ var EntitlementRow = (props) => {
22861
23303
  $color: settings.theme.typography.text.color,
22862
23304
  children: [
22863
23305
  t3("Tier-based"),
22864
- /* @__PURE__ */ jsx42(
23306
+ /* @__PURE__ */ jsx43(
22865
23307
  PricingTiersTooltip,
22866
23308
  {
22867
23309
  portal,
@@ -22877,7 +23319,7 @@ var EntitlementRow = (props) => {
22877
23319
  }
22878
23320
  );
22879
23321
  return /* @__PURE__ */ jsxs30(Fragment14, { children: [
22880
- /* @__PURE__ */ jsx42(Box, { children: /* @__PURE__ */ jsx42(Text, { display: "heading4", children: priceBehavior === EntitlementPriceBehavior.PayInAdvance ? /* @__PURE__ */ jsxs30(Fragment14, { children: [
23322
+ /* @__PURE__ */ jsx43(Box, { children: /* @__PURE__ */ jsx43(Text, { display: "heading4", children: priceBehavior === EntitlementPriceBehavior.PayInAdvance ? /* @__PURE__ */ jsxs30(Fragment14, { children: [
22881
23323
  quantity,
22882
23324
  " ",
22883
23325
  getFeatureName(feature, locale, quantity)
@@ -22886,7 +23328,7 @@ var EntitlementRow = (props) => {
22886
23328
  " ",
22887
23329
  getFeatureName(feature, locale, softLimit)
22888
23330
  ] }) : feature.name }) }),
22889
- /* @__PURE__ */ jsx42(Box, { $whiteSpace: "nowrap", $lineHeight: 1, children: priceBehavior === EntitlementPriceBehavior.PayInAdvance ? (
23331
+ /* @__PURE__ */ jsx43(Box, { $whiteSpace: "nowrap", $lineHeight: 1, children: priceBehavior === EntitlementPriceBehavior.PayInAdvance ? (
22890
23332
  // A tiered scheme still resolves to a fixed amount at the chosen
22891
23333
  // quantity, so the row shows it alongside the tier breakdown
22892
23334
  // rather than leaving the charge unpriced.
@@ -22928,7 +23370,7 @@ var EntitlementRow = (props) => {
22928
23370
 
22929
23371
  // src/components/shared/subscription-sidebar/Proration.tsx
22930
23372
  import { useState as useState12 } from "react";
22931
- import { Fragment as Fragment15, jsx as jsx43, jsxs as jsxs31 } from "react/jsx-runtime";
23373
+ import { Fragment as Fragment15, jsx as jsx44, jsxs as jsxs31 } from "react/jsx-runtime";
22932
23374
  var Proration = ({ currency, charges }) => {
22933
23375
  const { t: t3, locale } = useTranslation();
22934
23376
  const { settings } = useEmbed();
@@ -22939,19 +23381,19 @@ var Proration = ({ currency, charges }) => {
22939
23381
  setOpen((open2) => !open2);
22940
23382
  };
22941
23383
  return /* @__PURE__ */ jsxs31(Fragment15, { children: [
22942
- /* @__PURE__ */ jsx43(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx43(Text, { $size: 14, children: t3("Proration") }) }),
23384
+ /* @__PURE__ */ jsx44(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx44(Text, { $size: 14, children: t3("Proration") }) }),
22943
23385
  /* @__PURE__ */ jsxs31(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
22944
23386
  open && charges?.upcomingInvoiceLineItems.map(
22945
23387
  ({ amount, description }, index) => {
22946
23388
  return /* @__PURE__ */ jsxs31(Flex, { $gap: "1rem", children: [
22947
- /* @__PURE__ */ jsx43(Text, { children: description }),
22948
- /* @__PURE__ */ jsx43(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsx43(Text, { children: formatCurrency(amount, { locale, currency }) }) })
23389
+ /* @__PURE__ */ jsx44(Text, { children: description }),
23390
+ /* @__PURE__ */ jsx44(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsx44(Text, { children: formatCurrency(amount, { locale, currency }) }) })
22949
23391
  ] }, index);
22950
23392
  }
22951
23393
  ),
22952
23394
  /* @__PURE__ */ jsxs31(Flex, { $justifyContent: "space-between", $alignItems: "center", $gap: "1rem", children: [
22953
23395
  /* @__PURE__ */ jsxs31(Flex, { children: [
22954
- /* @__PURE__ */ jsx43(Text, { display: "heading4", children: t3("Total") }),
23396
+ /* @__PURE__ */ jsx44(Text, { display: "heading4", children: t3("Total") }),
22955
23397
  /* @__PURE__ */ jsxs31(
22956
23398
  Button,
22957
23399
  {
@@ -22960,19 +23402,19 @@ var Proration = ({ currency, charges }) => {
22960
23402
  style: { height: "auto", padding: 0 },
22961
23403
  $variant: "text",
22962
23404
  children: [
22963
- /* @__PURE__ */ jsx43(
23405
+ /* @__PURE__ */ jsx44(
22964
23406
  Icon3,
22965
23407
  {
22966
23408
  name: open ? "chevron-up" : "chevron-down",
22967
23409
  color: settings.theme.typography.text.color
22968
23410
  }
22969
23411
  ),
22970
- /* @__PURE__ */ jsx43(Text, { children: open ? t3("Hide details") : t3("Show details") })
23412
+ /* @__PURE__ */ jsx44(Text, { children: open ? t3("Hide details") : t3("Show details") })
22971
23413
  ]
22972
23414
  }
22973
23415
  )
22974
23416
  ] }),
22975
- /* @__PURE__ */ jsx43(Flex, { children: /* @__PURE__ */ jsx43(Text, { children: formatCurrency(charges.proration, {
23417
+ /* @__PURE__ */ jsx44(Flex, { children: /* @__PURE__ */ jsx44(Text, { children: formatCurrency(charges.proration, {
22976
23418
  locale,
22977
23419
  currency
22978
23420
  }) }) })
@@ -22982,7 +23424,7 @@ var Proration = ({ currency, charges }) => {
22982
23424
  };
22983
23425
 
22984
23426
  // src/components/shared/subscription-sidebar/SubscriptionSidebar.tsx
22985
- import { jsx as jsx44, jsxs as jsxs32 } from "react/jsx-runtime";
23427
+ import { jsx as jsx45, jsxs as jsxs32 } from "react/jsx-runtime";
22986
23428
  var SubscriptionSidebar = forwardRef7(
22987
23429
  ({
22988
23430
  portal,
@@ -23107,7 +23549,9 @@ var SubscriptionSidebar = forwardRef7(
23107
23549
  resolvedCurrency = planBillingPrice?.currency;
23108
23550
  } else if (typeof currentPlan?.planPrice === "number") {
23109
23551
  planPrice = currentPlan.planPrice;
23552
+ resolvedCurrency = billingSubscription?.currency;
23110
23553
  }
23554
+ resolvedCurrency ??= currency;
23111
23555
  let total = 0;
23112
23556
  if (planPrice) {
23113
23557
  total += planPrice;
@@ -23146,6 +23590,7 @@ var SubscriptionSidebar = forwardRef7(
23146
23590
  }, [
23147
23591
  selectedPlan,
23148
23592
  currentPlan,
23593
+ billingSubscription?.currency,
23149
23594
  planPeriod,
23150
23595
  addOns,
23151
23596
  payInAdvanceEntitlements,
@@ -23204,7 +23649,7 @@ var SubscriptionSidebar = forwardRef7(
23204
23649
  $flexWrap: "wrap",
23205
23650
  $gap: "1rem",
23206
23651
  children: [
23207
- /* @__PURE__ */ jsx44(
23652
+ /* @__PURE__ */ jsx45(
23208
23653
  Text,
23209
23654
  {
23210
23655
  style: { opacity: 0.54 },
@@ -23217,7 +23662,7 @@ var SubscriptionSidebar = forwardRef7(
23217
23662
  })
23218
23663
  }
23219
23664
  ),
23220
- addedCredits > 0 && /* @__PURE__ */ jsx44(
23665
+ addedCredits > 0 && /* @__PURE__ */ jsx45(
23221
23666
  Text,
23222
23667
  {
23223
23668
  $size: 0.875 * settings.theme.typography.text.fontSize,
@@ -23499,7 +23944,7 @@ var SubscriptionSidebar = forwardRef7(
23499
23944
  const isSticky = !isButtonInView;
23500
23945
  switch (layout) {
23501
23946
  case "checkout":
23502
- return /* @__PURE__ */ jsx44(
23947
+ return /* @__PURE__ */ jsx45(
23503
23948
  CheckoutStageButton,
23504
23949
  {
23505
23950
  canCheckout,
@@ -23525,7 +23970,7 @@ var SubscriptionSidebar = forwardRef7(
23525
23970
  }
23526
23971
  );
23527
23972
  case "unsubscribe":
23528
- return /* @__PURE__ */ jsx44(
23973
+ return /* @__PURE__ */ jsx45(
23529
23974
  Button,
23530
23975
  {
23531
23976
  type: "button",
@@ -23628,7 +24073,7 @@ var SubscriptionSidebar = forwardRef7(
23628
24073
  },
23629
24074
  ...rest,
23630
24075
  children: [
23631
- showHeader && /* @__PURE__ */ jsx44(
24076
+ showHeader && /* @__PURE__ */ jsx45(
23632
24077
  Flex,
23633
24078
  {
23634
24079
  $position: "relative",
@@ -23640,7 +24085,7 @@ var SubscriptionSidebar = forwardRef7(
23640
24085
  $borderBottomWidth: "1px",
23641
24086
  $borderStyle: "solid",
23642
24087
  $borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.1)" : "hsla(0, 0%, 100%, 0.2)",
23643
- children: /* @__PURE__ */ jsx44(Flex, { $justifyContent: "space-between", children: /* @__PURE__ */ jsx44(Text, { as: "h3", display: "heading3", children: t3("Subscription") }) })
24088
+ children: /* @__PURE__ */ jsx45(Flex, { $justifyContent: "space-between", children: /* @__PURE__ */ jsx45(Text, { as: "h3", display: "heading3", children: t3("Subscription") }) })
23644
24089
  }
23645
24090
  ),
23646
24091
  /* @__PURE__ */ jsxs32(
@@ -23657,7 +24102,7 @@ var SubscriptionSidebar = forwardRef7(
23657
24102
  $borderStyle: "solid",
23658
24103
  $borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.1)" : "hsla(0, 0%, 100%, 0.2)",
23659
24104
  children: [
23660
- /* @__PURE__ */ jsx44(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx44(Text, { $size: 14, children: t3("Plan") }) }),
24105
+ /* @__PURE__ */ jsx45(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx45(Text, { $size: 14, children: t3("Plan") }) }),
23661
24106
  /* @__PURE__ */ jsxs32(Flex, { $flexDirection: "column", $gap: "0.5rem", $marginBottom: "1.5rem", children: [
23662
24107
  currentPlan && /* @__PURE__ */ jsxs32(
23663
24108
  Flex,
@@ -23671,8 +24116,8 @@ var SubscriptionSidebar = forwardRef7(
23671
24116
  $color: settings.theme.typography.heading4.color
23672
24117
  },
23673
24118
  children: [
23674
- /* @__PURE__ */ jsx44(Box, { children: /* @__PURE__ */ jsx44(Text, { display: "heading4", children: currentPlan.name }) }),
23675
- typeof currentPlan.planPrice === "number" && /* @__PURE__ */ jsx44(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs32(Text, { children: [
24119
+ /* @__PURE__ */ jsx45(Box, { children: /* @__PURE__ */ jsx45(Text, { display: "heading4", children: currentPlan.name }) }),
24120
+ typeof currentPlan.planPrice === "number" && /* @__PURE__ */ jsx45(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs32(Text, { children: [
23676
24121
  formatCurrency(currentPlan.planPrice, {
23677
24122
  locale,
23678
24123
  currency: billingSubscription?.currency
@@ -23689,7 +24134,7 @@ var SubscriptionSidebar = forwardRef7(
23689
24134
  }
23690
24135
  ),
23691
24136
  selectedPlan && !selectedPlan.current && /* @__PURE__ */ jsxs32(Box, { children: [
23692
- /* @__PURE__ */ jsx44(
24137
+ /* @__PURE__ */ jsx45(
23693
24138
  Box,
23694
24139
  {
23695
24140
  $width: "100%",
@@ -23697,7 +24142,7 @@ var SubscriptionSidebar = forwardRef7(
23697
24142
  $opacity: "50%",
23698
24143
  $marginBottom: "0.25rem",
23699
24144
  $marginTop: "-0.25rem",
23700
- children: /* @__PURE__ */ jsx44(
24145
+ children: /* @__PURE__ */ jsx45(
23701
24146
  Icon3,
23702
24147
  {
23703
24148
  name: "arrow-down",
@@ -23716,8 +24161,8 @@ var SubscriptionSidebar = forwardRef7(
23716
24161
  $alignItems: "baseline",
23717
24162
  $gap: "1rem",
23718
24163
  children: [
23719
- /* @__PURE__ */ jsx44(Flex, { children: /* @__PURE__ */ jsx44(Text, { display: "heading4", children: selectedPlan.name }) }),
23720
- /* @__PURE__ */ jsx44(Flex, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs32(Text, { children: [
24164
+ /* @__PURE__ */ jsx45(Flex, { children: /* @__PURE__ */ jsx45(Text, { display: "heading4", children: selectedPlan.name }) }),
24165
+ /* @__PURE__ */ jsx45(Flex, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs32(Text, { children: [
23721
24166
  formatCurrency(selectedPlanPrice ?? 0, {
23722
24167
  locale,
23723
24168
  currency: selectedPlanCurrency
@@ -23733,12 +24178,12 @@ var SubscriptionSidebar = forwardRef7(
23733
24178
  ] })
23734
24179
  ] }),
23735
24180
  updatedUsageBasedEntitlements.willChange && /* @__PURE__ */ jsxs32(Flex, { $flexDirection: "column", $gap: "0.5rem", $marginBottom: "1.5rem", children: [
23736
- /* @__PURE__ */ jsx44(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx44(Text, { $size: 14, children: t3("Usage-based") }) }),
24181
+ /* @__PURE__ */ jsx45(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx45(Text, { $size: 14, children: t3("Usage-based") }) }),
23737
24182
  updatedUsageBasedEntitlements.removed.reduce(
23738
24183
  (acc, entitlement, index) => {
23739
24184
  if (entitlement.feature?.name) {
23740
24185
  acc.push(
23741
- /* @__PURE__ */ jsx44(
24186
+ /* @__PURE__ */ jsx45(
23742
24187
  Flex,
23743
24188
  {
23744
24189
  $justifyContent: "space-between",
@@ -23747,7 +24192,7 @@ var SubscriptionSidebar = forwardRef7(
23747
24192
  $opacity: "0.625",
23748
24193
  $textDecoration: "line-through",
23749
24194
  $color: settings.theme.typography.heading4.color,
23750
- children: /* @__PURE__ */ jsx44(
24195
+ children: /* @__PURE__ */ jsx45(
23751
24196
  EntitlementRow,
23752
24197
  {
23753
24198
  portal: resolvedPortal,
@@ -23770,7 +24215,7 @@ var SubscriptionSidebar = forwardRef7(
23770
24215
  if (next2.feature?.name) {
23771
24216
  acc.push(
23772
24217
  /* @__PURE__ */ jsxs32(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
23773
- /* @__PURE__ */ jsx44(
24218
+ /* @__PURE__ */ jsx45(
23774
24219
  Flex,
23775
24220
  {
23776
24221
  $justifyContent: "space-between",
@@ -23779,7 +24224,7 @@ var SubscriptionSidebar = forwardRef7(
23779
24224
  $opacity: "0.625",
23780
24225
  $textDecoration: "line-through",
23781
24226
  $color: settings.theme.typography.heading4.color,
23782
- children: /* @__PURE__ */ jsx44(
24227
+ children: /* @__PURE__ */ jsx45(
23783
24228
  EntitlementRow,
23784
24229
  {
23785
24230
  portal: resolvedPortal,
@@ -23790,13 +24235,13 @@ var SubscriptionSidebar = forwardRef7(
23790
24235
  )
23791
24236
  }
23792
24237
  ),
23793
- /* @__PURE__ */ jsx44(
24238
+ /* @__PURE__ */ jsx45(
23794
24239
  Flex,
23795
24240
  {
23796
24241
  $justifyContent: "space-between",
23797
24242
  $alignItems: "baseline",
23798
24243
  $gap: "1rem",
23799
- children: /* @__PURE__ */ jsx44(
24244
+ children: /* @__PURE__ */ jsx45(
23800
24245
  EntitlementRow,
23801
24246
  {
23802
24247
  portal: resolvedPortal,
@@ -23820,13 +24265,13 @@ var SubscriptionSidebar = forwardRef7(
23820
24265
  if (entitlement.feature?.name) {
23821
24266
  acc.push(
23822
24267
  /* @__PURE__ */ jsxs32(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
23823
- /* @__PURE__ */ jsx44(
24268
+ /* @__PURE__ */ jsx45(
23824
24269
  Flex,
23825
24270
  {
23826
24271
  $justifyContent: "space-between",
23827
24272
  $alignItems: "baseline",
23828
24273
  $gap: "1rem",
23829
- children: /* @__PURE__ */ jsx44(
24274
+ children: /* @__PURE__ */ jsx45(
23830
24275
  EntitlementRow,
23831
24276
  {
23832
24277
  portal: resolvedPortal,
@@ -23847,7 +24292,7 @@ var SubscriptionSidebar = forwardRef7(
23847
24292
  )
23848
24293
  ] }),
23849
24294
  selectedPlan && isSelectedPlanTrialable && shouldTrial && /* @__PURE__ */ jsxs32(Box, { children: [
23850
- /* @__PURE__ */ jsx44(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx44(Text, { $size: 14, children: t3("Trial") }) }),
24295
+ /* @__PURE__ */ jsx45(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx45(Text, { $size: 14, children: t3("Trial") }) }),
23851
24296
  /* @__PURE__ */ jsxs32(
23852
24297
  Flex,
23853
24298
  {
@@ -23855,24 +24300,24 @@ var SubscriptionSidebar = forwardRef7(
23855
24300
  $alignItems: "baseline",
23856
24301
  $gap: "1rem",
23857
24302
  children: [
23858
- /* @__PURE__ */ jsx44(Flex, { children: /* @__PURE__ */ jsx44(Text, { display: "heading4", children: t3("Ends on", {
24303
+ /* @__PURE__ */ jsx45(Flex, { children: /* @__PURE__ */ jsx45(Text, { display: "heading4", children: t3("Ends on", {
23859
24304
  date: toPrettyDate(trialEndsOn, { locale })
23860
24305
  }) }) }),
23861
- /* @__PURE__ */ jsx44(Flex, { children: /* @__PURE__ */ jsxs32(Text, { children: [
24306
+ /* @__PURE__ */ jsx45(Flex, { children: /* @__PURE__ */ jsxs32(Text, { children: [
23862
24307
  "-",
23863
24308
  formatCurrency(selectedPlanPrice ?? 0, {
23864
24309
  locale,
23865
24310
  currency: selectedPlanCurrency
23866
24311
  }),
23867
24312
  "/",
23868
- /* @__PURE__ */ jsx44("sub", { children: shortenPeriod(planPeriod, t3) })
24313
+ /* @__PURE__ */ jsx45("sub", { children: shortenPeriod(planPeriod, t3) })
23869
24314
  ] }) })
23870
24315
  ]
23871
24316
  }
23872
24317
  )
23873
24318
  ] }),
23874
24319
  (willAddOnsChange || selectedAddOnsWithPrice.length > 0) && /* @__PURE__ */ jsxs32(Flex, { $flexDirection: "column", $gap: "0.5rem", $marginBottom: "1.5rem", children: [
23875
- /* @__PURE__ */ jsx44(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx44(Text, { $size: 14, children: t3("Add-ons") }) }),
24320
+ /* @__PURE__ */ jsx45(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx45(Text, { $size: 14, children: t3("Add-ons") }) }),
23876
24321
  removedAddOns.map((addOn, index) => {
23877
24322
  return /* @__PURE__ */ jsxs32(
23878
24323
  Flex,
@@ -23884,8 +24329,8 @@ var SubscriptionSidebar = forwardRef7(
23884
24329
  $textDecoration: "line-through",
23885
24330
  $color: settings.theme.typography.heading4.color,
23886
24331
  children: [
23887
- /* @__PURE__ */ jsx44(Box, { children: /* @__PURE__ */ jsx44(Text, { display: "heading4", children: addOn.name }) }),
23888
- typeof addOn.planPrice === "number" && addOn.planPeriod && /* @__PURE__ */ jsx44(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs32(Text, { children: [
24332
+ /* @__PURE__ */ jsx45(Box, { children: /* @__PURE__ */ jsx45(Text, { display: "heading4", children: addOn.name }) }),
24333
+ typeof addOn.planPrice === "number" && addOn.planPeriod && /* @__PURE__ */ jsx45(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs32(Text, { children: [
23889
24334
  formatCurrency(addOn.planPrice, {
23890
24335
  locale,
23891
24336
  currency: selectedPlanCurrency
@@ -23909,8 +24354,8 @@ var SubscriptionSidebar = forwardRef7(
23909
24354
  $alignItems: "baseline",
23910
24355
  $gap: "1rem",
23911
24356
  children: [
23912
- /* @__PURE__ */ jsx44(Box, { children: /* @__PURE__ */ jsx44(Text, { display: "heading4", children: addOn.name }) }),
23913
- /* @__PURE__ */ jsx44(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs32(Text, { children: [
24357
+ /* @__PURE__ */ jsx45(Box, { children: /* @__PURE__ */ jsx45(Text, { display: "heading4", children: addOn.name }) }),
24358
+ /* @__PURE__ */ jsx45(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs32(Text, { children: [
23914
24359
  formatCurrency(addOnPrice ?? 0, {
23915
24360
  locale,
23916
24361
  currency: addOnCurrency
@@ -23927,7 +24372,7 @@ var SubscriptionSidebar = forwardRef7(
23927
24372
  })
23928
24373
  ] }),
23929
24374
  addedCreditBundles.length > 0 && /* @__PURE__ */ jsxs32(Flex, { $flexDirection: "column", $gap: "0.5rem", $marginBottom: "1.5rem", children: [
23930
- /* @__PURE__ */ jsx44(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx44(Text, { $size: 14, children: t3("Credits") }) }),
24375
+ /* @__PURE__ */ jsx45(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx45(Text, { $size: 14, children: t3("Credits") }) }),
23931
24376
  addedCreditBundles.reduce(
23932
24377
  (acc, bundle, index) => {
23933
24378
  const price = typeof bundle.price?.priceDecimal === "string" ? Number(bundle.price.priceDecimal) : typeof bundle.price?.price === "number" ? bundle.price.price : void 0;
@@ -23943,24 +24388,24 @@ var SubscriptionSidebar = forwardRef7(
23943
24388
  $gap: "1rem",
23944
24389
  children: [
23945
24390
  /* @__PURE__ */ jsxs32(Box, { children: [
23946
- /* @__PURE__ */ jsx44(Box, { children: /* @__PURE__ */ jsxs32(Text, { display: "heading4", children: [
24391
+ /* @__PURE__ */ jsx45(Box, { children: /* @__PURE__ */ jsxs32(Text, { display: "heading4", children: [
23947
24392
  bundle.name,
23948
24393
  !isIndividualBundlePurchase && ` (${bundle.count})`
23949
24394
  ] }) }),
23950
- /* @__PURE__ */ jsx44(Box, { children: /* @__PURE__ */ jsxs32(Text, { children: [
24395
+ /* @__PURE__ */ jsx45(Box, { children: /* @__PURE__ */ jsxs32(Text, { children: [
23951
24396
  formatNumber(amount, { locale }),
23952
24397
  " ",
23953
24398
  getFeatureName(bundle, locale, amount),
23954
24399
  expiry && ` \xB7 ${expiry}`
23955
24400
  ] }) })
23956
24401
  ] }),
23957
- bundle.count > 0 && /* @__PURE__ */ jsx44(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs32(Text, { children: [
24402
+ bundle.count > 0 && /* @__PURE__ */ jsx45(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs32(Text, { children: [
23958
24403
  formatCurrency(price * bundle.count, {
23959
24404
  locale,
23960
24405
  currency: currency || bundle.price?.currency
23961
24406
  }),
23962
24407
  " ",
23963
- /* @__PURE__ */ jsx44("sub", { children: t3("one time") })
24408
+ /* @__PURE__ */ jsx45("sub", { children: t3("one time") })
23964
24409
  ] }) })
23965
24410
  ]
23966
24411
  },
@@ -23974,7 +24419,7 @@ var SubscriptionSidebar = forwardRef7(
23974
24419
  )
23975
24420
  ] }),
23976
24421
  selectedOneTimeAddOns.length > 0 && /* @__PURE__ */ jsxs32(Flex, { $flexDirection: "column", $gap: "0.5rem", $marginBottom: "1.5rem", children: [
23977
- /* @__PURE__ */ jsx44(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx44(Text, { $size: 14, children: t3("One-time charges") }) }),
24422
+ /* @__PURE__ */ jsx45(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx45(Text, { $size: 14, children: t3("One-time charges") }) }),
23978
24423
  selectedOneTimeAddOns.map((addOn, index) => {
23979
24424
  const { price: addOnPrice, currency: addOnCurrency } = getAddOnPrice(addOn, planPeriod, currency) || {};
23980
24425
  return /* @__PURE__ */ jsxs32(
@@ -23984,14 +24429,14 @@ var SubscriptionSidebar = forwardRef7(
23984
24429
  $alignItems: "baseline",
23985
24430
  $gap: "1rem",
23986
24431
  children: [
23987
- /* @__PURE__ */ jsx44(Box, { children: /* @__PURE__ */ jsx44(Text, { display: "heading4", children: addOn.name }) }),
23988
- /* @__PURE__ */ jsx44(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs32(Text, { children: [
24432
+ /* @__PURE__ */ jsx45(Box, { children: /* @__PURE__ */ jsx45(Text, { display: "heading4", children: addOn.name }) }),
24433
+ /* @__PURE__ */ jsx45(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs32(Text, { children: [
23989
24434
  formatCurrency(addOnPrice ?? 0, {
23990
24435
  locale,
23991
24436
  currency: addOnCurrency
23992
24437
  }),
23993
24438
  " ",
23994
- /* @__PURE__ */ jsx44("sub", { children: t3("one time") })
24439
+ /* @__PURE__ */ jsx45("sub", { children: t3("one time") })
23995
24440
  ] }) })
23996
24441
  ]
23997
24442
  },
@@ -23999,7 +24444,7 @@ var SubscriptionSidebar = forwardRef7(
23999
24444
  );
24000
24445
  })
24001
24446
  ] }),
24002
- proration !== 0 && charges && selectedPlanCurrency && /* @__PURE__ */ jsx44(
24447
+ proration !== 0 && charges && selectedPlanCurrency && /* @__PURE__ */ jsx45(
24003
24448
  Proration,
24004
24449
  {
24005
24450
  charges,
@@ -24026,7 +24471,7 @@ var SubscriptionSidebar = forwardRef7(
24026
24471
  $alignItems: "baseline",
24027
24472
  $gap: "1rem",
24028
24473
  children: [
24029
- /* @__PURE__ */ jsx44(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx44(Text, { children: t3("Discount") }) }),
24474
+ /* @__PURE__ */ jsx45(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx45(Text, { children: t3("Discount") }) }),
24030
24475
  /* @__PURE__ */ jsxs32(
24031
24476
  Flex,
24032
24477
  {
@@ -24037,15 +24482,15 @@ var SubscriptionSidebar = forwardRef7(
24037
24482
  $outlineColor: isLightBackground ? "hsla(0, 0%, 0%, 0.15)" : "hsla(0, 0%, 100%, 0.15)",
24038
24483
  $borderRadius: "0.3125rem",
24039
24484
  children: [
24040
- /* @__PURE__ */ jsx44(Text, { $size: 0.75 * settings.theme.typography.text.fontSize, children: promoCode }),
24041
- /* @__PURE__ */ jsx44(
24485
+ /* @__PURE__ */ jsx45(Text, { $size: 0.75 * settings.theme.typography.text.fontSize, children: promoCode }),
24486
+ /* @__PURE__ */ jsx45(
24042
24487
  Box,
24043
24488
  {
24044
24489
  $cursor: "pointer",
24045
24490
  onClick: () => {
24046
24491
  updatePromoCode?.(null);
24047
24492
  },
24048
- children: /* @__PURE__ */ jsx44(
24493
+ children: /* @__PURE__ */ jsx45(
24049
24494
  Icon3,
24050
24495
  {
24051
24496
  name: "close",
@@ -24068,8 +24513,8 @@ var SubscriptionSidebar = forwardRef7(
24068
24513
  $alignItems: "baseline",
24069
24514
  $gap: "1rem",
24070
24515
  children: [
24071
- /* @__PURE__ */ jsx44(Box, { $opacity: "0.625", $lineHeight: 1.15, children: /* @__PURE__ */ jsx44(Text, { children: t3("X% off", { percent: percentOff }) }) }),
24072
- /* @__PURE__ */ jsx44(Box, { children: /* @__PURE__ */ jsx44(Text, { children: formatCurrency(
24516
+ /* @__PURE__ */ jsx45(Box, { $opacity: "0.625", $lineHeight: 1.15, children: /* @__PURE__ */ jsx45(Text, { children: t3("X% off", { percent: percentOff }) }) }),
24517
+ /* @__PURE__ */ jsx45(Box, { children: /* @__PURE__ */ jsx45(Text, { children: formatCurrency(
24073
24518
  // Prefer the discount Stripe applied; derive from
24074
24519
  // `percentOff` only for API responses that predate it.
24075
24520
  // The derived value can carry fractional minor units
@@ -24092,13 +24537,13 @@ var SubscriptionSidebar = forwardRef7(
24092
24537
  $alignItems: "baseline",
24093
24538
  $gap: "1rem",
24094
24539
  children: [
24095
- /* @__PURE__ */ jsx44(Box, { $opacity: "0.625", $lineHeight: 1.15, children: /* @__PURE__ */ jsx44(Text, { children: t3("X off", {
24540
+ /* @__PURE__ */ jsx45(Box, { $opacity: "0.625", $lineHeight: 1.15, children: /* @__PURE__ */ jsx45(Text, { children: t3("X off", {
24096
24541
  amount: formatCurrency(Math.abs(amountOff), {
24097
24542
  locale,
24098
24543
  currency: selectedPlanCurrency
24099
24544
  })
24100
24545
  }) }) }),
24101
- /* @__PURE__ */ jsx44(Box, { children: /* @__PURE__ */ jsxs32(Text, { children: [
24546
+ /* @__PURE__ */ jsx45(Box, { children: /* @__PURE__ */ jsxs32(Text, { children: [
24102
24547
  "-",
24103
24548
  formatCurrency(Math.abs(amountOff), {
24104
24549
  locale,
@@ -24115,11 +24560,11 @@ var SubscriptionSidebar = forwardRef7(
24115
24560
  $alignItems: "baseline",
24116
24561
  $gap: "1rem",
24117
24562
  children: [
24118
- /* @__PURE__ */ jsx44(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsxs32(Text, { children: [
24563
+ /* @__PURE__ */ jsx45(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsxs32(Text, { children: [
24119
24564
  planPeriod === "year" ? t3("Yearly total") : planPeriod === "quarter" ? t3("Quarterly total") : t3("Monthly total"),
24120
24565
  ":"
24121
24566
  ] }) }),
24122
- /* @__PURE__ */ jsx44(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs32(Text, { children: [
24567
+ /* @__PURE__ */ jsx45(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs32(Text, { children: [
24123
24568
  subscriptionPrice,
24124
24569
  /* @__PURE__ */ jsxs32("sub", { children: [
24125
24570
  "/",
@@ -24136,10 +24581,10 @@ var SubscriptionSidebar = forwardRef7(
24136
24581
  $alignItems: "baseline",
24137
24582
  $gap: "1rem",
24138
24583
  children: [
24139
- /* @__PURE__ */ jsx44(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx44(Text, { children: t3("Tax (description):", {
24584
+ /* @__PURE__ */ jsx45(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx45(Text, { children: t3("Tax (description):", {
24140
24585
  description: taxDescription
24141
24586
  }) }) }),
24142
- /* @__PURE__ */ jsx44(Box, { children: /* @__PURE__ */ jsx44(Text, { children: formatCurrency(taxAmount, {
24587
+ /* @__PURE__ */ jsx45(Box, { children: /* @__PURE__ */ jsx45(Text, { children: formatCurrency(taxAmount, {
24143
24588
  locale,
24144
24589
  currency: selectedPlanCurrency
24145
24590
  }) }) })
@@ -24153,11 +24598,11 @@ var SubscriptionSidebar = forwardRef7(
24153
24598
  $alignItems: "baseline",
24154
24599
  $gap: "1rem",
24155
24600
  children: [
24156
- /* @__PURE__ */ jsx44(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsxs32(Text, { children: [
24601
+ /* @__PURE__ */ jsx45(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsxs32(Text, { children: [
24157
24602
  t3("Due today"),
24158
24603
  ":"
24159
24604
  ] }) }),
24160
- /* @__PURE__ */ jsx44(Box, { children: /* @__PURE__ */ jsx44(Text, { children: formatCurrency(Math.max(0, dueNow), {
24605
+ /* @__PURE__ */ jsx45(Box, { children: /* @__PURE__ */ jsx45(Text, { children: formatCurrency(Math.max(0, dueNow), {
24161
24606
  locale,
24162
24607
  currency: selectedPlanCurrency
24163
24608
  }) }) })
@@ -24165,11 +24610,11 @@ var SubscriptionSidebar = forwardRef7(
24165
24610
  }
24166
24611
  ),
24167
24612
  dueNow < 0 && /* @__PURE__ */ jsxs32(Flex, { $justifyContent: "space-between", $gap: "1rem", children: [
24168
- /* @__PURE__ */ jsx44(Box, { $opacity: "0.625", $lineHeight: 1.15, children: /* @__PURE__ */ jsxs32(Text, { children: [
24613
+ /* @__PURE__ */ jsx45(Box, { $opacity: "0.625", $lineHeight: 1.15, children: /* @__PURE__ */ jsxs32(Text, { children: [
24169
24614
  t3("Credits to be applied to future invoices"),
24170
24615
  ":"
24171
24616
  ] }) }),
24172
- /* @__PURE__ */ jsx44(Box, { children: /* @__PURE__ */ jsx44(Text, { children: formatCurrency(Math.abs(dueNow), {
24617
+ /* @__PURE__ */ jsx45(Box, { children: /* @__PURE__ */ jsx45(Text, { children: formatCurrency(Math.abs(dueNow), {
24173
24618
  locale,
24174
24619
  currency: selectedPlanCurrency
24175
24620
  }) }) })
@@ -24177,7 +24622,7 @@ var SubscriptionSidebar = forwardRef7(
24177
24622
  /* @__PURE__ */ jsxs32("div", { ref: buttonRef, children: [
24178
24623
  button,
24179
24624
  createPortal2(
24180
- /* @__PURE__ */ jsx44(
24625
+ /* @__PURE__ */ jsx45(
24181
24626
  Box,
24182
24627
  {
24183
24628
  $position: "sticky",
@@ -24191,15 +24636,15 @@ var SubscriptionSidebar = forwardRef7(
24191
24636
  $borderTopWidth: "1px",
24192
24637
  $borderTopStyle: "solid",
24193
24638
  $borderTopColor: isLightBackground ? "hsla(0, 0%, 0%, 0.1)" : "hsla(0, 0%, 100%, 0.2)",
24194
- children: /* @__PURE__ */ jsx44(Box, { $padding: "1rem 1.5rem", children: button })
24639
+ children: /* @__PURE__ */ jsx45(Box, { $padding: "1rem 1.5rem", children: button })
24195
24640
  }
24196
24641
  ),
24197
24642
  resolvedPortal
24198
24643
  )
24199
24644
  ] }),
24200
24645
  !isLoading && error && /* @__PURE__ */ jsxs32(Flex, { $flexDirection: "column", children: [
24201
- /* @__PURE__ */ jsx44(Text, { $weight: 500, $color: "#DB6669", children: error }),
24202
- error === t3("Downgrade not permitted.") && data?.preventSelfServiceDowngrade && data?.preventSelfServiceDowngradeUrl && data?.preventSelfServiceDowngradeButtonText && /* @__PURE__ */ jsx44(
24646
+ /* @__PURE__ */ jsx45(Text, { $weight: 500, $color: "#DB6669", children: error }),
24647
+ error === t3("Downgrade not permitted.") && data?.preventSelfServiceDowngrade && data?.preventSelfServiceDowngradeUrl && data?.preventSelfServiceDowngradeButtonText && /* @__PURE__ */ jsx45(
24203
24648
  Text,
24204
24649
  {
24205
24650
  as: "a",
@@ -24209,7 +24654,7 @@ var SubscriptionSidebar = forwardRef7(
24209
24654
  }
24210
24655
  )
24211
24656
  ] }),
24212
- layout !== "unsubscribe" && !isCreditOnlyPurchase && disclaimerText && /* @__PURE__ */ jsx44(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx44(Text, { children: disclaimerText }) })
24657
+ layout !== "unsubscribe" && !isCreditOnlyPurchase && disclaimerText && /* @__PURE__ */ jsx45(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx45(Text, { children: disclaimerText }) })
24213
24658
  ]
24214
24659
  }
24215
24660
  )
@@ -24277,7 +24722,7 @@ var TieredPricingDetails = ({
24277
24722
 
24278
24723
  // src/components/shared/unsubscribe-dialog/UnsubscribeDialog.tsx
24279
24724
  import { useCallback as useCallback12, useLayoutEffect as useLayoutEffect7, useMemo as useMemo24, useRef as useRef10, useState as useState14 } from "react";
24280
- import { jsx as jsx45, jsxs as jsxs33 } from "react/jsx-runtime";
24725
+ import { jsx as jsx46, jsxs as jsxs33 } from "react/jsx-runtime";
24281
24726
  var UnsubscribeDialog = ({ top }) => {
24282
24727
  const { t: t3, locale } = useTranslation();
24283
24728
  const { data, layout, setLayout, setCheckoutState, clearCheckoutState } = useEmbed();
@@ -24348,7 +24793,7 @@ var UnsubscribeDialog = ({ top }) => {
24348
24793
  element.show();
24349
24794
  }
24350
24795
  }, [layout]);
24351
- return /* @__PURE__ */ jsx45(
24796
+ return /* @__PURE__ */ jsx46(
24352
24797
  Dialog2,
24353
24798
  {
24354
24799
  ref: setDialog,
@@ -24358,7 +24803,7 @@ var UnsubscribeDialog = ({ top }) => {
24358
24803
  onClose: handleClose,
24359
24804
  ...!isModal && { open: layout === "unsubscribe" },
24360
24805
  children: /* @__PURE__ */ jsxs33(DialogContent2, { children: [
24361
- /* @__PURE__ */ jsx45(
24806
+ /* @__PURE__ */ jsx46(
24362
24807
  DialogClose,
24363
24808
  {
24364
24809
  onClose: handleClose,
@@ -24379,7 +24824,7 @@ var UnsubscribeDialog = ({ top }) => {
24379
24824
  $overflow: "auto",
24380
24825
  children: [
24381
24826
  /* @__PURE__ */ jsxs33(Flex, { $flexDirection: "column", $flexWrap: "wrap", $gap: "0.5rem", children: [
24382
- /* @__PURE__ */ jsx45(Text, { as: "h2", display: "heading2", children: t3("Cancel subscription") }),
24827
+ /* @__PURE__ */ jsx46(Text, { as: "h2", display: "heading2", children: t3("Cancel subscription") }),
24383
24828
  /* @__PURE__ */ jsxs33(Text, { as: "p", children: [
24384
24829
  t3(
24385
24830
  "You will retain access to your plan until the end of the billing period, on"
@@ -24389,8 +24834,8 @@ var UnsubscribeDialog = ({ top }) => {
24389
24834
  ] })
24390
24835
  ] }),
24391
24836
  /* @__PURE__ */ jsxs33(Flex, { $flexDirection: "column", $flexWrap: "wrap", $gap: "0.5rem", children: [
24392
- /* @__PURE__ */ jsx45(Text, { as: "p", children: t3("Not ready to cancel?") }),
24393
- /* @__PURE__ */ jsx45(
24837
+ /* @__PURE__ */ jsx46(Text, { as: "p", children: t3("Not ready to cancel?") }),
24838
+ /* @__PURE__ */ jsx46(
24394
24839
  Button,
24395
24840
  {
24396
24841
  type: "button",
@@ -24411,7 +24856,7 @@ var UnsubscribeDialog = ({ top }) => {
24411
24856
  ]
24412
24857
  }
24413
24858
  ),
24414
- /* @__PURE__ */ jsx45(
24859
+ /* @__PURE__ */ jsx46(
24415
24860
  SubscriptionSidebar,
24416
24861
  {
24417
24862
  ref: sidebarRef,
@@ -24438,14 +24883,14 @@ var UnsubscribeDialog = ({ top }) => {
24438
24883
  };
24439
24884
 
24440
24885
  // src/components/shared/usage-violation-text/UsageViolationText.tsx
24441
- import { jsx as jsx46 } from "react/jsx-runtime";
24886
+ import { jsx as jsx47 } from "react/jsx-runtime";
24442
24887
  var UsageViolationText = ({ violations }) => {
24443
24888
  const { t: t3 } = useTranslation();
24444
24889
  const { settings } = useEmbed();
24445
24890
  if (violations.length === 0) {
24446
24891
  return null;
24447
24892
  }
24448
- return /* @__PURE__ */ jsx46(
24893
+ return /* @__PURE__ */ jsx47(
24449
24894
  Text,
24450
24895
  {
24451
24896
  $size: 0.875 * settings.theme.typography.text.fontSize,
@@ -24464,7 +24909,7 @@ var UsageViolationText = ({ violations }) => {
24464
24909
  };
24465
24910
 
24466
24911
  // src/components/ui/badge/Badge.tsx
24467
- import { jsx as jsx47, jsxs as jsxs34 } from "react/jsx-runtime";
24912
+ import { jsx as jsx48, jsxs as jsxs34 } from "react/jsx-runtime";
24468
24913
  var Badge = () => {
24469
24914
  const { t: t3 } = useTranslation();
24470
24915
  const { settings } = useEmbed();
@@ -24486,77 +24931,77 @@ var Badge = () => {
24486
24931
  " "
24487
24932
  ] }),
24488
24933
  /* @__PURE__ */ jsxs34("svg", { viewBox: "0 0 86 16", width: 86, height: 16, children: [
24489
- /* @__PURE__ */ jsx47(
24934
+ /* @__PURE__ */ jsx48(
24490
24935
  "path",
24491
24936
  {
24492
24937
  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",
24493
24938
  fill: "currentColor"
24494
24939
  }
24495
24940
  ),
24496
- /* @__PURE__ */ jsx47(
24941
+ /* @__PURE__ */ jsx48(
24497
24942
  "path",
24498
24943
  {
24499
24944
  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",
24500
24945
  fill: "currentColor"
24501
24946
  }
24502
24947
  ),
24503
- /* @__PURE__ */ jsx47(
24948
+ /* @__PURE__ */ jsx48(
24504
24949
  "path",
24505
24950
  {
24506
24951
  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",
24507
24952
  fill: "currentColor"
24508
24953
  }
24509
24954
  ),
24510
- /* @__PURE__ */ jsx47(
24955
+ /* @__PURE__ */ jsx48(
24511
24956
  "path",
24512
24957
  {
24513
24958
  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",
24514
24959
  fill: "currentColor"
24515
24960
  }
24516
24961
  ),
24517
- /* @__PURE__ */ jsx47(
24962
+ /* @__PURE__ */ jsx48(
24518
24963
  "path",
24519
24964
  {
24520
24965
  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",
24521
24966
  fill: "currentColor"
24522
24967
  }
24523
24968
  ),
24524
- /* @__PURE__ */ jsx47(
24969
+ /* @__PURE__ */ jsx48(
24525
24970
  "path",
24526
24971
  {
24527
24972
  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",
24528
24973
  fill: "currentColor"
24529
24974
  }
24530
24975
  ),
24531
- /* @__PURE__ */ jsx47(
24976
+ /* @__PURE__ */ jsx48(
24532
24977
  "path",
24533
24978
  {
24534
24979
  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",
24535
24980
  fill: "currentColor"
24536
24981
  }
24537
24982
  ),
24538
- /* @__PURE__ */ jsx47(
24983
+ /* @__PURE__ */ jsx48(
24539
24984
  "path",
24540
24985
  {
24541
24986
  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",
24542
24987
  fill: "currentColor"
24543
24988
  }
24544
24989
  ),
24545
- /* @__PURE__ */ jsx47(
24990
+ /* @__PURE__ */ jsx48(
24546
24991
  "path",
24547
24992
  {
24548
24993
  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",
24549
24994
  fill: "currentColor"
24550
24995
  }
24551
24996
  ),
24552
- /* @__PURE__ */ jsx47(
24997
+ /* @__PURE__ */ jsx48(
24553
24998
  "path",
24554
24999
  {
24555
25000
  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",
24556
25001
  fill: "currentColor"
24557
25002
  }
24558
25003
  ),
24559
- /* @__PURE__ */ jsx47(
25004
+ /* @__PURE__ */ jsx48(
24560
25005
  "path",
24561
25006
  {
24562
25007
  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",
@@ -24570,10 +25015,10 @@ var Badge = () => {
24570
25015
  };
24571
25016
 
24572
25017
  // src/components/layout/RenderLayout.tsx
24573
- import { jsx as jsx48, jsxs as jsxs35 } from "react/jsx-runtime";
25018
+ import { jsx as jsx49, jsxs as jsxs35 } from "react/jsx-runtime";
24574
25019
  var Disabled = () => {
24575
25020
  const { t: t3 } = useTranslation();
24576
- return /* @__PURE__ */ jsx48(Box, { $width: "max-content", $height: "max-content", children: /* @__PURE__ */ jsx48(Card, { children: /* @__PURE__ */ jsxs35(
25021
+ return /* @__PURE__ */ jsx49(Box, { $width: "max-content", $height: "max-content", children: /* @__PURE__ */ jsx49(Card, { children: /* @__PURE__ */ jsxs35(
24577
25022
  Element,
24578
25023
  {
24579
25024
  as: Flex,
@@ -24582,8 +25027,8 @@ var Disabled = () => {
24582
25027
  $alignItems: "center",
24583
25028
  $whiteSpace: "nowrap",
24584
25029
  children: [
24585
- /* @__PURE__ */ jsx48(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx48(Text, { as: "h1", display: "heading1", children: t3("Portal not found") }) }),
24586
- /* @__PURE__ */ jsx48(Text, { as: "p", children: t3("Please try again later.") })
25030
+ /* @__PURE__ */ jsx49(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx49(Text, { as: "h1", display: "heading1", children: t3("Portal not found") }) }),
25031
+ /* @__PURE__ */ jsx49(Text, { as: "p", children: t3("Please try again later.") })
24587
25032
  ]
24588
25033
  }
24589
25034
  ) }) });
@@ -24592,7 +25037,7 @@ var RenderLayout = ({ children }) => {
24592
25037
  const { layout } = useEmbed();
24593
25038
  switch (layout) {
24594
25039
  case "disabled":
24595
- return /* @__PURE__ */ jsx48(Disabled, {});
25040
+ return /* @__PURE__ */ jsx49(Disabled, {});
24596
25041
  default:
24597
25042
  return children;
24598
25043
  }
@@ -24617,7 +25062,7 @@ var StyledViewport = Tt.div.withConfig({
24617
25062
  `;
24618
25063
 
24619
25064
  // src/components/layout/viewport/Viewport.tsx
24620
- import { Fragment as Fragment16, jsx as jsx49, jsxs as jsxs36 } from "react/jsx-runtime";
25065
+ import { Fragment as Fragment16, jsx as jsx50, jsxs as jsxs36 } from "react/jsx-runtime";
24621
25066
  var Viewport = forwardRef8(
24622
25067
  ({ children, portal, ...props }, ref) => {
24623
25068
  portal = portal || document.body;
@@ -24640,19 +25085,19 @@ var Viewport = forwardRef8(
24640
25085
  const isBadgeVisible = !data?.capabilities?.badgeVisibility || settings.badge?.visibility !== "hidden";
24641
25086
  return /* @__PURE__ */ jsxs36(Fragment16, { children: [
24642
25087
  /* @__PURE__ */ jsxs36(StyledViewport, { ref, ...props, children: [
24643
- /* @__PURE__ */ jsx49(RenderLayout, { children }),
24644
- isBadgeVisible && /* @__PURE__ */ jsx49(Badge, {})
25088
+ /* @__PURE__ */ jsx50(RenderLayout, { children }),
25089
+ isBadgeVisible && /* @__PURE__ */ jsx50(Badge, {})
24645
25090
  ] }),
24646
- layout === "checkout" && createPortal3(/* @__PURE__ */ jsx49(CheckoutDialog, { top }), portal),
24647
- layout === "unsubscribe" && createPortal3(/* @__PURE__ */ jsx49(UnsubscribeDialog, { top }), portal),
24648
- layout === "payment" && createPortal3(/* @__PURE__ */ jsx49(PaymentDialog, { top }), portal)
25091
+ layout === "checkout" && createPortal3(/* @__PURE__ */ jsx50(CheckoutDialog, { top }), portal),
25092
+ layout === "unsubscribe" && createPortal3(/* @__PURE__ */ jsx50(UnsubscribeDialog, { top }), portal),
25093
+ layout === "payment" && createPortal3(/* @__PURE__ */ jsx50(PaymentDialog, { top }), portal)
24649
25094
  ] });
24650
25095
  }
24651
25096
  );
24652
25097
  Viewport.displayName = "Viewport";
24653
25098
 
24654
25099
  // src/components/elements/button/Button.tsx
24655
- import { jsx as jsx50 } from "react/jsx-runtime";
25100
+ import { jsx as jsx51 } from "react/jsx-runtime";
24656
25101
  var resolveDesignProps = (props) => {
24657
25102
  return {
24658
25103
  button: {
@@ -24683,7 +25128,7 @@ var ButtonElement = forwardRef9(({ children, className, ...rest }, ref) => {
24683
25128
  variant: "text"
24684
25129
  }
24685
25130
  };
24686
- return /* @__PURE__ */ jsx50(
25131
+ return /* @__PURE__ */ jsx51(
24687
25132
  Element,
24688
25133
  {
24689
25134
  as: Flex,
@@ -24691,7 +25136,7 @@ var ButtonElement = forwardRef9(({ children, className, ...rest }, ref) => {
24691
25136
  className,
24692
25137
  $flexDirection: "column",
24693
25138
  $gap: "2rem",
24694
- children: /* @__PURE__ */ jsx50(
25139
+ children: /* @__PURE__ */ jsx51(
24695
25140
  Button,
24696
25141
  {
24697
25142
  as: "a",
@@ -24716,7 +25161,7 @@ import { Fragment as Fragment19, forwardRef as forwardRef10, useMemo as useMemo2
24716
25161
 
24717
25162
  // src/components/elements/included-features/UsageDetails.tsx
24718
25163
  import { Fragment as Fragment17, useMemo as useMemo25 } from "react";
24719
- import { Fragment as Fragment18, jsx as jsx51, jsxs as jsxs37 } from "react/jsx-runtime";
25164
+ import { Fragment as Fragment18, jsx as jsx52, jsxs as jsxs37 } from "react/jsx-runtime";
24720
25165
  var UsageDetails = ({ entitlement, layout }) => {
24721
25166
  const {
24722
25167
  allocation,
@@ -24853,7 +25298,7 @@ var UsageDetails = ({ entitlement, layout }) => {
24853
25298
  let index = 0;
24854
25299
  if (priceBehavior === EntitlementPriceBehavior.PayInAdvance && !tiered && typeof period === "string" && typeof price === "number") {
24855
25300
  acc.push(
24856
- /* @__PURE__ */ jsx51(Fragment17, { children: packageSize > 1 ? t3("$X/Y units/period", {
25301
+ /* @__PURE__ */ jsx52(Fragment17, { children: packageSize > 1 ? t3("$X/Y units/period", {
24857
25302
  cost: formatCurrency(price, { locale, currency }),
24858
25303
  size: packageSize,
24859
25304
  units: getFeatureName(feature, locale, packageSize),
@@ -24867,7 +25312,7 @@ var UsageDetails = ({ entitlement, layout }) => {
24867
25312
  index += 1;
24868
25313
  } else if ((priceBehavior === EntitlementPriceBehavior.PayAsYouGo || priceBehavior === EntitlementPriceBehavior.Overage || priceBehavior === EntitlementPriceBehavior.Tier || priceBehavior === EntitlementPriceBehavior.CreditBurndown || tiered) && typeof usage === "number") {
24869
25314
  acc.push(
24870
- /* @__PURE__ */ jsx51(Fragment17, { children: t3("X units used", {
25315
+ /* @__PURE__ */ jsx52(Fragment17, { children: t3("X units used", {
24871
25316
  amount: usage,
24872
25317
  units: getFeatureName(feature, locale, usage)
24873
25318
  }) }, index)
@@ -24877,7 +25322,7 @@ var UsageDetails = ({ entitlement, layout }) => {
24877
25322
  if (typeof cost === "number" && cost > 0) {
24878
25323
  acc.push(
24879
25324
  /* @__PURE__ */ jsxs37(Fragment17, { children: [
24880
- acc.length > 0 && /* @__PURE__ */ jsx51(Fragment18, { children: " \u2022 " }),
25325
+ acc.length > 0 && /* @__PURE__ */ jsx52(Fragment18, { children: " \u2022 " }),
24881
25326
  formatCurrency(cost, { locale, currency })
24882
25327
  ] }, index)
24883
25328
  );
@@ -24893,7 +25338,7 @@ var UsageDetails = ({ entitlement, layout }) => {
24893
25338
  if (metricResetAt) {
24894
25339
  acc.push(
24895
25340
  /* @__PURE__ */ jsxs37(Fragment17, { children: [
24896
- acc.length > 0 && /* @__PURE__ */ jsx51(Fragment18, { children: " \u2022 " }),
25341
+ acc.length > 0 && /* @__PURE__ */ jsx52(Fragment18, { children: " \u2022 " }),
24897
25342
  t3("Resets", {
24898
25343
  date: toPrettyDate(metricResetAt, {
24899
25344
  locale,
@@ -24935,7 +25380,7 @@ var UsageDetails = ({ entitlement, layout }) => {
24935
25380
  return null;
24936
25381
  }
24937
25382
  return /* @__PURE__ */ jsxs37(Fragment18, { children: [
24938
- layout.entitlement.isVisible && /* @__PURE__ */ jsx51(
25383
+ layout.entitlement.isVisible && /* @__PURE__ */ jsx52(
24939
25384
  Flex,
24940
25385
  {
24941
25386
  $marginTop: "0.75rem",
@@ -24947,7 +25392,7 @@ var UsageDetails = ({ entitlement, layout }) => {
24947
25392
  },
24948
25393
  children: /* @__PURE__ */ jsxs37(Text, { display: layout.entitlement.fontStyle, children: [
24949
25394
  text,
24950
- entitlementHasHardLimit(entitlement) && entitlement.allocationType === EntitlementValueType.Numeric && /* @__PURE__ */ jsx51(
25395
+ entitlementHasHardLimit(entitlement) && entitlement.allocationType === EntitlementValueType.Numeric && /* @__PURE__ */ jsx52(
24951
25396
  HardLimitTooltip,
24952
25397
  {
24953
25398
  feature: entitlement.feature,
@@ -24957,7 +25402,7 @@ var UsageDetails = ({ entitlement, layout }) => {
24957
25402
  ] })
24958
25403
  }
24959
25404
  ),
24960
- layout.usage.isVisible && usageText && /* @__PURE__ */ jsx51(
25405
+ layout.usage.isVisible && usageText && /* @__PURE__ */ jsx52(
24961
25406
  Flex,
24962
25407
  {
24963
25408
  $viewport: {
@@ -24967,7 +25412,7 @@ var UsageDetails = ({ entitlement, layout }) => {
24967
25412
  },
24968
25413
  children: /* @__PURE__ */ jsxs37(Text, { display: layout.usage.fontStyle, children: [
24969
25414
  usageText,
24970
- (priceBehavior === EntitlementPriceBehavior.Tier || tiered) && /* @__PURE__ */ jsx51(
25415
+ (priceBehavior === EntitlementPriceBehavior.Tier || tiered) && /* @__PURE__ */ jsx52(
24971
25416
  PricingTiersTooltip,
24972
25417
  {
24973
25418
  feature,
@@ -24984,7 +25429,7 @@ var UsageDetails = ({ entitlement, layout }) => {
24984
25429
  };
24985
25430
 
24986
25431
  // src/components/elements/included-features/IncludedFeatures.tsx
24987
- import { jsx as jsx52, jsxs as jsxs38 } from "react/jsx-runtime";
25432
+ import { jsx as jsx53, jsxs as jsxs38 } from "react/jsx-runtime";
24988
25433
  function resolveDesignProps2(props) {
24989
25434
  return {
24990
25435
  // there is a typescript bug with `DeepPartial` so we must cast to `string[] | undefined`
@@ -25054,8 +25499,8 @@ var IncludedFeatures = forwardRef10(({ className, ...rest }, ref) => {
25054
25499
  return null;
25055
25500
  }
25056
25501
  return /* @__PURE__ */ jsxs38(Element, { ref, className, $containerType: "inline-size", children: [
25057
- props.header.isVisible && /* @__PURE__ */ jsx52(Box, { $marginBottom: "1.5rem", children: /* @__PURE__ */ jsx52(Text, { display: props.header.fontStyle, children: t3(props.header.text) }) }),
25058
- /* @__PURE__ */ jsx52(
25502
+ props.header.isVisible && /* @__PURE__ */ jsx53(Box, { $marginBottom: "1.5rem", children: /* @__PURE__ */ jsx53(Text, { display: props.header.fontStyle, children: t3(props.header.text) }) }),
25503
+ /* @__PURE__ */ jsx53(
25059
25504
  Box,
25060
25505
  {
25061
25506
  $display: "grid",
@@ -25069,7 +25514,7 @@ var IncludedFeatures = forwardRef10(({ className, ...rest }, ref) => {
25069
25514
  },
25070
25515
  children: visibleFeatureUsage.items.map((entitlement, index) => {
25071
25516
  return /* @__PURE__ */ jsxs38(Fragment19, { children: [
25072
- props.icons.isVisible && entitlement.feature?.icon && /* @__PURE__ */ jsx52(
25517
+ props.icons.isVisible && entitlement.feature?.icon && /* @__PURE__ */ jsx53(
25073
25518
  Icon3,
25074
25519
  {
25075
25520
  name: entitlement.feature.icon,
@@ -25086,12 +25531,12 @@ var IncludedFeatures = forwardRef10(({ className, ...rest }, ref) => {
25086
25531
  $alignSelf: "baseline",
25087
25532
  $gap: "0.25rem",
25088
25533
  children: [
25089
- entitlement.feature?.name && /* @__PURE__ */ jsx52(Text, { display: props.icons.fontStyle, children: entitlement.feature.name }),
25090
- props.description.isVisible && entitlement.feature?.description && /* @__PURE__ */ jsx52(Text, { display: props.description.fontStyle, children: entitlement.feature.description }),
25534
+ entitlement.feature?.name && /* @__PURE__ */ jsx53(Text, { display: props.icons.fontStyle, children: entitlement.feature.name }),
25535
+ props.description.isVisible && entitlement.feature?.description && /* @__PURE__ */ jsx53(Text, { display: props.description.fontStyle, children: entitlement.feature.description }),
25091
25536
  getPerLicenseGrantsForFeature(
25092
25537
  plan?.includedCreditGrants,
25093
25538
  entitlement.feature
25094
- ).map((grant, grantIndex) => /* @__PURE__ */ jsx52(Text, { display: props.description.fontStyle, children: t3("Includes X credits per license", {
25539
+ ).map((grant, grantIndex) => /* @__PURE__ */ jsx53(Text, { display: props.description.fontStyle, children: t3("Includes X credits per license", {
25095
25540
  amount: grant.creditAmount,
25096
25541
  creditName: getFeatureName(
25097
25542
  {
@@ -25104,7 +25549,7 @@ var IncludedFeatures = forwardRef10(({ className, ...rest }, ref) => {
25104
25549
  ),
25105
25550
  licenseName: entitlement.feature ? getFeatureName(entitlement.feature, locale, 1) : ""
25106
25551
  }) }, grantIndex)),
25107
- props.entitlementExpiration.isVisible && entitlement.entitlementExpirationDate && /* @__PURE__ */ jsx52(
25552
+ props.entitlementExpiration.isVisible && entitlement.entitlementExpirationDate && /* @__PURE__ */ jsx53(
25108
25553
  Text,
25109
25554
  {
25110
25555
  as: "em",
@@ -25123,7 +25568,7 @@ var IncludedFeatures = forwardRef10(({ className, ...rest }, ref) => {
25123
25568
  ]
25124
25569
  }
25125
25570
  ),
25126
- /* @__PURE__ */ jsx52(
25571
+ /* @__PURE__ */ jsx53(
25127
25572
  Flex,
25128
25573
  {
25129
25574
  $gridColumn: "span 2",
@@ -25140,14 +25585,14 @@ var IncludedFeatures = forwardRef10(({ className, ...rest }, ref) => {
25140
25585
  $marginLeft: 0
25141
25586
  }
25142
25587
  },
25143
- children: /* @__PURE__ */ jsx52(UsageDetails, { entitlement, layout: props })
25588
+ children: /* @__PURE__ */ jsx53(UsageDetails, { entitlement, layout: props })
25144
25589
  }
25145
25590
  )
25146
25591
  ] }, index);
25147
25592
  })
25148
25593
  }
25149
25594
  ),
25150
- visibleFeatureUsage.canExpand && /* @__PURE__ */ jsx52(
25595
+ visibleFeatureUsage.canExpand && /* @__PURE__ */ jsx53(
25151
25596
  ExpandListToggle,
25152
25597
  {
25153
25598
  isExpanded: visibleFeatureUsage.isExpanded,
@@ -25161,7 +25606,7 @@ IncludedFeatures.displayName = "IncludedFeatures";
25161
25606
 
25162
25607
  // src/components/elements/invoices/Invoices.tsx
25163
25608
  import { forwardRef as forwardRef11, useCallback as useCallback13, useEffect as useEffect5, useMemo as useMemo27, useState as useState16 } from "react";
25164
- import { Fragment as Fragment20, jsx as jsx53, jsxs as jsxs39 } from "react/jsx-runtime";
25609
+ import { Fragment as Fragment20, jsx as jsx54, jsxs as jsxs39 } from "react/jsx-runtime";
25165
25610
  function resolveDesignProps3(props) {
25166
25611
  return {
25167
25612
  header: {
@@ -25271,7 +25716,7 @@ var Invoices = forwardRef11(({ className, ...rest }, ref) => {
25271
25716
  return null;
25272
25717
  }
25273
25718
  return /* @__PURE__ */ jsxs39(Element, { ref, className, children: [
25274
- /* @__PURE__ */ jsx53(Flex, { as: TransitionBox, $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ jsx53(Loader, { $color: settings.theme.primary, $isLoading: isLoading }) }),
25719
+ /* @__PURE__ */ jsx54(Flex, { as: TransitionBox, $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ jsx54(Loader, { $color: settings.theme.primary, $isLoading: isLoading }) }),
25275
25720
  error ? /* @__PURE__ */ jsxs39(
25276
25721
  Flex,
25277
25722
  {
@@ -25281,8 +25726,8 @@ var Invoices = forwardRef11(({ className, ...rest }, ref) => {
25281
25726
  $alignItems: "center",
25282
25727
  $gap: "1rem",
25283
25728
  children: [
25284
- /* @__PURE__ */ jsx53(Text, { $weight: 500, $color: "#DB6669", children: t3("There was a problem retrieving your invoices.") }),
25285
- /* @__PURE__ */ jsx53(
25729
+ /* @__PURE__ */ jsx54(Text, { $weight: 500, $color: "#DB6669", children: t3("There was a problem retrieving your invoices.") }),
25730
+ /* @__PURE__ */ jsx54(
25286
25731
  Button,
25287
25732
  {
25288
25733
  type: "button",
@@ -25295,10 +25740,10 @@ var Invoices = forwardRef11(({ className, ...rest }, ref) => {
25295
25740
  )
25296
25741
  ]
25297
25742
  }
25298
- ) : !isLoading && /* @__PURE__ */ jsx53(TransitionBox, { children: /* @__PURE__ */ jsxs39(Flex, { $flexDirection: "column", $gap: "1rem", children: [
25299
- props.header.isVisible && /* @__PURE__ */ jsx53(Flex, { $justifyContent: "space-between", $alignItems: "center", children: /* @__PURE__ */ jsx53(Text, { display: props.header.fontStyle, children: t3("Invoices") }) }),
25743
+ ) : !isLoading && /* @__PURE__ */ jsx54(TransitionBox, { children: /* @__PURE__ */ jsxs39(Flex, { $flexDirection: "column", $gap: "1rem", children: [
25744
+ props.header.isVisible && /* @__PURE__ */ jsx54(Flex, { $justifyContent: "space-between", $alignItems: "center", children: /* @__PURE__ */ jsx54(Text, { display: props.header.fontStyle, children: t3("Invoices") }) }),
25300
25745
  invoices.length > 0 ? /* @__PURE__ */ jsxs39(Fragment20, { children: [
25301
- /* @__PURE__ */ jsx53(Flex, { $flexDirection: "column", $gap: "0.5rem", children: visibleInvoices.items.map(
25746
+ /* @__PURE__ */ jsx54(Flex, { $flexDirection: "column", $gap: "0.5rem", children: visibleInvoices.items.map(
25302
25747
  ({ date, amount, amountDue, url }, index) => {
25303
25748
  return /* @__PURE__ */ jsxs39(
25304
25749
  Flex,
@@ -25306,7 +25751,7 @@ var Invoices = forwardRef11(({ className, ...rest }, ref) => {
25306
25751
  $justifyContent: "space-between",
25307
25752
  $alignItems: "center",
25308
25753
  children: [
25309
- props.date.isVisible && /* @__PURE__ */ jsx53(
25754
+ props.date.isVisible && /* @__PURE__ */ jsx54(
25310
25755
  Text,
25311
25756
  {
25312
25757
  display: props.date.fontStyle,
@@ -25320,10 +25765,10 @@ var Invoices = forwardRef11(({ className, ...rest }, ref) => {
25320
25765
  children: date
25321
25766
  }
25322
25767
  ),
25323
- props.amount.isVisible && /* @__PURE__ */ jsx53(
25768
+ props.amount.isVisible && /* @__PURE__ */ jsx54(
25324
25769
  Tooltip,
25325
25770
  {
25326
- trigger: /* @__PURE__ */ jsx53(Text, { display: props.amount.fontStyle, children: amount }),
25771
+ trigger: /* @__PURE__ */ jsx54(Text, { display: props.amount.fontStyle, children: amount }),
25327
25772
  content: amountDue < 0 ? t3("Invoice credit tooltip") : t3("Invoice charge tooltip")
25328
25773
  }
25329
25774
  )
@@ -25333,7 +25778,7 @@ var Invoices = forwardRef11(({ className, ...rest }, ref) => {
25333
25778
  );
25334
25779
  }
25335
25780
  ) }),
25336
- props.collapse.isVisible && visibleInvoices.canExpand && /* @__PURE__ */ jsx53(
25781
+ props.collapse.isVisible && visibleInvoices.canExpand && /* @__PURE__ */ jsx54(
25337
25782
  ExpandListToggle,
25338
25783
  {
25339
25784
  isExpanded: visibleInvoices.isExpanded,
@@ -25344,7 +25789,7 @@ var Invoices = forwardRef11(({ className, ...rest }, ref) => {
25344
25789
  $gap: "0.5rem"
25345
25790
  }
25346
25791
  )
25347
- ] }) : /* @__PURE__ */ jsx53(Text, { display: "heading2", children: t3("No invoices created yet") })
25792
+ ] }) : /* @__PURE__ */ jsx54(Text, { display: "heading2", children: t3("No invoices created yet") })
25348
25793
  ] }) })
25349
25794
  ] });
25350
25795
  });
@@ -25354,7 +25799,7 @@ Invoices.displayName = "Invoices";
25354
25799
  import { forwardRef as forwardRef12, useCallback as useCallback14, useMemo as useMemo29, useRef as useRef12, useState as useState18 } from "react";
25355
25800
 
25356
25801
  // src/components/elements/metered-features/Meter.tsx
25357
- import { jsx as jsx54 } from "react/jsx-runtime";
25802
+ import { jsx as jsx55 } from "react/jsx-runtime";
25358
25803
  var Meter = ({ entitlement }) => {
25359
25804
  const { allocation, priceBehavior, softLimit, usage } = entitlement;
25360
25805
  const { warningThresholdConfig } = useEmbed();
@@ -25367,7 +25812,7 @@ var Meter = ({ entitlement }) => {
25367
25812
  return null;
25368
25813
  }
25369
25814
  const progress = (priceBehavior === EntitlementPriceBehavior.Overage && usage > limit ? Math.min(usage, limit) / Math.max(usage, limit) : usage / limit) * 100;
25370
- const meter = /* @__PURE__ */ jsx54(
25815
+ const meter = /* @__PURE__ */ jsx55(
25371
25816
  ProgressBar,
25372
25817
  {
25373
25818
  progress,
@@ -25384,7 +25829,7 @@ var Meter = ({ entitlement }) => {
25384
25829
  };
25385
25830
 
25386
25831
  // src/components/elements/metered-features/PriceDetails.tsx
25387
- import { Fragment as Fragment21, jsx as jsx55, jsxs as jsxs40 } from "react/jsx-runtime";
25832
+ import { Fragment as Fragment21, jsx as jsx56, jsxs as jsxs40 } from "react/jsx-runtime";
25388
25833
  var PriceDetails = ({
25389
25834
  entitlement,
25390
25835
  usageDetails,
@@ -25446,8 +25891,8 @@ var PriceDetails = ({
25446
25891
  t3("Tier"),
25447
25892
  ": ",
25448
25893
  currentTier?.from || 1,
25449
- typeof currentTier?.to === "number" && (currentTier.from || 1) !== currentTier.to && /* @__PURE__ */ jsx55(Fragment21, { children: currentTier.to === Infinity ? "+" : `\u2013${currentTier.to}` }),
25450
- /* @__PURE__ */ jsx55(
25894
+ typeof currentTier?.to === "number" && (currentTier.from || 1) !== currentTier.to && /* @__PURE__ */ jsx56(Fragment21, { children: currentTier.to === Infinity ? "+" : `\u2013${currentTier.to}` }),
25895
+ /* @__PURE__ */ jsx56(
25451
25896
  PricingTiersTooltip,
25452
25897
  {
25453
25898
  period,
@@ -25458,7 +25903,7 @@ var PriceDetails = ({
25458
25903
  }
25459
25904
  )
25460
25905
  ] }),
25461
- typeof amount === "number" && /* @__PURE__ */ jsx55(Fragment21, { children: priceBehavior === EntitlementPriceBehavior.Overage ? /* @__PURE__ */ jsxs40(Text, { children: [
25906
+ typeof amount === "number" && /* @__PURE__ */ jsx56(Fragment21, { children: priceBehavior === EntitlementPriceBehavior.Overage ? /* @__PURE__ */ jsxs40(Text, { children: [
25462
25907
  formatNumber(amount, { locale }),
25463
25908
  " ",
25464
25909
  getFeatureName(feature, locale, amount),
@@ -25485,7 +25930,7 @@ var PriceDetails = ({
25485
25930
 
25486
25931
  // src/components/elements/metered-features/UsageByUser.tsx
25487
25932
  import { useEffect as useEffect6, useMemo as useMemo28, useState as useState17 } from "react";
25488
- import { jsx as jsx56, jsxs as jsxs41 } from "react/jsx-runtime";
25933
+ import { jsx as jsx57, jsxs as jsxs41 } from "react/jsx-runtime";
25489
25934
  var COLLAPSED_COUNT = 3;
25490
25935
  var EXPANDED_COUNT = 20;
25491
25936
  var toCreditSection = (data) => ({
@@ -25515,7 +25960,7 @@ var InitialAvatar = ({ label }) => {
25515
25960
  const { settings } = useEmbed();
25516
25961
  const isLightBackground = useIsLightBackground();
25517
25962
  const initial = (label.trim()[0] ?? "?").toUpperCase();
25518
- return /* @__PURE__ */ jsx56(
25963
+ return /* @__PURE__ */ jsx57(
25519
25964
  Flex,
25520
25965
  {
25521
25966
  $alignItems: "center",
@@ -25525,7 +25970,7 @@ var InitialAvatar = ({ label }) => {
25525
25970
  $flexShrink: 0,
25526
25971
  $borderRadius: "9999px",
25527
25972
  $background: isLightBackground ? "hsla(0, 0%, 0%, 0.0625)" : "hsla(0, 0%, 100%, 0.15)",
25528
- children: /* @__PURE__ */ jsx56(
25973
+ children: /* @__PURE__ */ jsx57(
25529
25974
  Text,
25530
25975
  {
25531
25976
  $size: 11,
@@ -25592,9 +26037,9 @@ var UsageByUser = ({ source, unit }) => {
25592
26037
  const formatAmount = (amount) => `${formatNumber(amount, { locale })} ${getFeatureName(unit, locale, amount)}`;
25593
26038
  if (error) {
25594
26039
  return /* @__PURE__ */ jsxs41(Flex, { $flexDirection: "column", $gap: "0.5rem", $alignItems: "flex-start", children: [
25595
- /* @__PURE__ */ jsx56(Text, { display: "heading4", children: t3("Usage by user") }),
25596
- /* @__PURE__ */ jsx56(Text, { $weight: 500, $color: "#DB6669", children: t3("There was a problem retrieving usage by user.") }),
25597
- /* @__PURE__ */ jsx56(
26040
+ /* @__PURE__ */ jsx57(Text, { display: "heading4", children: t3("Usage by user") }),
26041
+ /* @__PURE__ */ jsx57(Text, { $weight: 500, $color: "#DB6669", children: t3("There was a problem retrieving usage by user.") }),
26042
+ /* @__PURE__ */ jsx57(
25598
26043
  Button,
25599
26044
  {
25600
26045
  type: "button",
@@ -25623,8 +26068,8 @@ var UsageByUser = ({ source, unit }) => {
25623
26068
  const shouldShowToggle = hiddenUsers > 0 || Boolean(unattributed);
25624
26069
  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");
25625
26070
  const row = (key, label, amount, muted) => /* @__PURE__ */ jsxs41(Flex, { $alignItems: "center", $gap: "0.75rem", $padding: "0.5rem 0", children: [
25626
- /* @__PURE__ */ jsx56(InitialAvatar, { label: muted ? "?" : label }),
25627
- /* @__PURE__ */ jsx56(Box, { $flexGrow: 1, $overflow: "hidden", children: /* @__PURE__ */ jsx56(
26071
+ /* @__PURE__ */ jsx57(InitialAvatar, { label: muted ? "?" : label }),
26072
+ /* @__PURE__ */ jsx57(Box, { $flexGrow: 1, $overflow: "hidden", children: /* @__PURE__ */ jsx57(
25628
26073
  Text,
25629
26074
  {
25630
26075
  display: "text",
@@ -25632,7 +26077,7 @@ var UsageByUser = ({ source, unit }) => {
25632
26077
  children: label
25633
26078
  }
25634
26079
  ) }),
25635
- /* @__PURE__ */ jsx56(
26080
+ /* @__PURE__ */ jsx57(
25636
26081
  Text,
25637
26082
  {
25638
26083
  display: "text",
@@ -25643,16 +26088,16 @@ var UsageByUser = ({ source, unit }) => {
25643
26088
  )
25644
26089
  ] }, key);
25645
26090
  return /* @__PURE__ */ jsxs41(Flex, { $flexDirection: "column", $gap: "0.25rem", children: [
25646
- /* @__PURE__ */ jsx56(Text, { display: "heading4", children: t3("Usage by user") }),
25647
- /* @__PURE__ */ jsx56(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx56(Text, { display: "text", $color: mutedColor(isLightBackground), children: t3("X used by your team this period", {
26091
+ /* @__PURE__ */ jsx57(Text, { display: "heading4", children: t3("Usage by user") }),
26092
+ /* @__PURE__ */ jsx57(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx57(Text, { display: "text", $color: mutedColor(isLightBackground), children: t3("X used by your team this period", {
25648
26093
  amount: formatAmount(total)
25649
26094
  }) }) }),
25650
26095
  visible.map(
25651
26096
  (entry, index) => row(entry.id || `row-${index}`, entry.label, entry.amount)
25652
26097
  ),
25653
26098
  expanded && unattributed && row("unattributed", t3("Unattributed"), unattributed.amount, true),
25654
- 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 }) }) }),
25655
- shouldShowToggle && /* @__PURE__ */ jsx56(
26099
+ 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 }) }) }),
26100
+ shouldShowToggle && /* @__PURE__ */ jsx57(
25656
26101
  ExpandListToggle,
25657
26102
  {
25658
26103
  isExpanded: expanded,
@@ -25685,7 +26130,7 @@ var Container2 = Tt.div`
25685
26130
  `;
25686
26131
 
25687
26132
  // src/components/elements/metered-features/MeteredFeatures.tsx
25688
- import { Fragment as Fragment22, jsx as jsx57, jsxs as jsxs42 } from "react/jsx-runtime";
26133
+ import { Fragment as Fragment22, jsx as jsx58, jsxs as jsxs42 } from "react/jsx-runtime";
25689
26134
  var Limit = ({ entitlement, usageDetails, fontStyle }) => {
25690
26135
  const { t: t3, locale } = useTranslation();
25691
26136
  const { data } = useEmbed();
@@ -25730,7 +26175,7 @@ var Limit = ({ entitlement, usageDetails, fontStyle }) => {
25730
26175
  }
25731
26176
  return /* @__PURE__ */ jsxs42(Text, { display: fontStyle, children: [
25732
26177
  acc.join(" \u2022 "),
25733
- entitlementHasHardLimit(entitlement) && entitlement.allocationType === EntitlementValueType.Numeric && /* @__PURE__ */ jsx57(
26178
+ entitlementHasHardLimit(entitlement) && entitlement.allocationType === EntitlementValueType.Numeric && /* @__PURE__ */ jsx58(
25734
26179
  HardLimitTooltip,
25735
26180
  {
25736
26181
  feature: entitlement.feature,
@@ -25878,7 +26323,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25878
26323
  acc.push(
25879
26324
  /* @__PURE__ */ jsxs42(Element, { as: Flex, $flexDirection: "column", $gap: "1.5rem", children: [
25880
26325
  /* @__PURE__ */ jsxs42(Flex, { $gap: "1.5rem", children: [
25881
- props.icon.isVisible && /* @__PURE__ */ jsx57(
26326
+ props.icon.isVisible && /* @__PURE__ */ jsx58(
25882
26327
  Icon3,
25883
26328
  {
25884
26329
  name: feature.icon,
@@ -25900,8 +26345,8 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25900
26345
  $gap: "1rem",
25901
26346
  children: [
25902
26347
  /* @__PURE__ */ jsxs42(Flex, { $flexDirection: "column", $gap: "0.5rem", $flexGrow: 1, children: [
25903
- /* @__PURE__ */ jsx57(Box, { children: /* @__PURE__ */ jsx57(Text, { display: props.header.fontStyle, children: feature.name }) }),
25904
- props.description.isVisible && feature.description && /* @__PURE__ */ jsx57(Box, { children: /* @__PURE__ */ jsx57(Text, { display: props.description.fontStyle, children: feature.description }) })
26348
+ /* @__PURE__ */ jsx58(Box, { children: /* @__PURE__ */ jsx58(Text, { display: props.header.fontStyle, children: feature.name }) }),
26349
+ props.description.isVisible && feature.description && /* @__PURE__ */ jsx58(Box, { children: /* @__PURE__ */ jsx58(Text, { display: props.description.fontStyle, children: feature.description }) })
25905
26350
  ] }),
25906
26351
  /* @__PURE__ */ jsxs42(
25907
26352
  Box,
@@ -25910,7 +26355,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25910
26355
  $flexGrow: 1,
25911
26356
  $textAlign: shouldWrapChildren ? "left" : "right",
25912
26357
  children: [
25913
- props.usage.isVisible && /* @__PURE__ */ jsx57(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsx57(Text, { display: props.usage.fontStyle, children: priceBehavior === EntitlementPriceBehavior.PayInAdvance ? /* @__PURE__ */ jsxs42(Fragment22, { children: [
26358
+ props.usage.isVisible && /* @__PURE__ */ jsx58(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsx58(Text, { display: props.usage.fontStyle, children: priceBehavior === EntitlementPriceBehavior.PayInAdvance ? /* @__PURE__ */ jsxs42(Fragment22, { children: [
25914
26359
  typeof limit === "number" && /* @__PURE__ */ jsxs42(Fragment22, { children: [
25915
26360
  formatNumber(limit, { locale }),
25916
26361
  " "
@@ -25923,7 +26368,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25923
26368
  " ",
25924
26369
  t3("used")
25925
26370
  ] }) }) }),
25926
- props.allocation.isVisible && /* @__PURE__ */ jsx57(
26371
+ props.allocation.isVisible && /* @__PURE__ */ jsx58(
25927
26372
  Limit,
25928
26373
  {
25929
26374
  entitlement,
@@ -25937,8 +26382,8 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25937
26382
  ]
25938
26383
  }
25939
26384
  ),
25940
- props.isVisible && priceBehavior !== EntitlementPriceBehavior.PayAsYouGo && priceBehavior !== EntitlementPriceBehavior.CreditBurndown && /* @__PURE__ */ jsx57(Meter, { entitlement }),
25941
- canCheckout && priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ jsx57(
26385
+ props.isVisible && priceBehavior !== EntitlementPriceBehavior.PayAsYouGo && priceBehavior !== EntitlementPriceBehavior.CreditBurndown && /* @__PURE__ */ jsx58(Meter, { entitlement }),
26386
+ canCheckout && priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ jsx58(
25942
26387
  Button,
25943
26388
  {
25944
26389
  type: "button",
@@ -25951,7 +26396,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25951
26396
  )
25952
26397
  ] })
25953
26398
  ] }),
25954
- (priceBehavior === EntitlementPriceBehavior.Overage || priceBehavior === EntitlementPriceBehavior.Tier) && /* @__PURE__ */ jsx57(
26399
+ (priceBehavior === EntitlementPriceBehavior.Overage || priceBehavior === EntitlementPriceBehavior.Tier) && /* @__PURE__ */ jsx58(
25955
26400
  PriceDetails,
25956
26401
  {
25957
26402
  entitlement,
@@ -25963,7 +26408,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25963
26408
  // they are denominated in the feature's own unit — the same one
25964
26409
  // the usage line above uses. A credit-burndown feature's credit
25965
26410
  // spend is broken down separately, under its credit.
25966
- /* @__PURE__ */ jsx57(
26411
+ /* @__PURE__ */ jsx58(
25967
26412
  UsageByUser,
25968
26413
  {
25969
26414
  source: { kind: "feature", id: feature.id },
@@ -25984,7 +26429,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25984
26429
  const getRowPadding = (rowIndex) => rowIndex === 0 ? `1rem ${paddingX}rem` : `0 ${paddingX}rem 1rem`;
25985
26430
  return /* @__PURE__ */ jsxs42(Element, { as: Flex, $flexDirection: "column", $gap: "1rem", children: [
25986
26431
  /* @__PURE__ */ jsxs42(Flex, { $gap: "1.5rem", children: [
25987
- props.icon.isVisible && /* @__PURE__ */ jsx57(
26432
+ props.icon.isVisible && /* @__PURE__ */ jsx58(
25988
26433
  Icon3,
25989
26434
  {
25990
26435
  name: credit.icon,
@@ -25994,12 +26439,12 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25994
26439
  }
25995
26440
  ),
25996
26441
  /* @__PURE__ */ jsxs42(Flex, { $flexDirection: "column", $gap: "2rem", $flexGrow: 1, children: [
25997
- /* @__PURE__ */ jsx57(Flex, { $flexWrap: "wrap", $gap: "1rem", children: /* @__PURE__ */ jsxs42(Flex, { $flexDirection: "column", $gap: "0.5rem", $flexGrow: 1, children: [
25998
- /* @__PURE__ */ jsx57(Box, { children: /* @__PURE__ */ jsx57(Text, { display: props.header.fontStyle, children: credit.name }) }),
25999
- props.description.isVisible && credit.description && /* @__PURE__ */ jsx57(Box, { children: /* @__PURE__ */ jsx57(Text, { display: props.description.fontStyle, children: credit.description }) })
26442
+ /* @__PURE__ */ jsx58(Flex, { $flexWrap: "wrap", $gap: "1rem", children: /* @__PURE__ */ jsxs42(Flex, { $flexDirection: "column", $gap: "0.5rem", $flexGrow: 1, children: [
26443
+ /* @__PURE__ */ jsx58(Box, { children: /* @__PURE__ */ jsx58(Text, { display: props.header.fontStyle, children: credit.name }) }),
26444
+ props.description.isVisible && credit.description && /* @__PURE__ */ jsx58(Box, { children: /* @__PURE__ */ jsx58(Text, { display: props.description.fontStyle, children: credit.description }) })
26000
26445
  ] }) }),
26001
26446
  /* @__PURE__ */ jsxs42(Flex, { $gap: "1rem", $alignItems: "center", children: [
26002
- props.usage.isVisible && /* @__PURE__ */ jsx57(Box, { $flexGrow: 1, $whiteSpace: "nowrap", children: /* @__PURE__ */ jsx57(Text, { display: props.usage.fontStyle, children: t3("X units remaining", {
26447
+ props.usage.isVisible && /* @__PURE__ */ jsx58(Box, { $flexGrow: 1, $whiteSpace: "nowrap", children: /* @__PURE__ */ jsx58(Text, { display: props.usage.fontStyle, children: t3("X units remaining", {
26003
26448
  // Balances burn at rates with up to 10 decimal
26004
26449
  // places, so a small remainder must not round to 0.
26005
26450
  amount: formatNumber(credit.total.remaining, {
@@ -26012,7 +26457,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
26012
26457
  credit.total.remaining
26013
26458
  )
26014
26459
  }) }) }),
26015
- canCheckout && purchasableCreditIds.has(credit.id) && /* @__PURE__ */ jsx57(
26460
+ canCheckout && purchasableCreditIds.has(credit.id) && /* @__PURE__ */ jsx58(
26016
26461
  Button,
26017
26462
  {
26018
26463
  type: "button",
@@ -26065,7 +26510,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
26065
26510
  }
26066
26511
  return (
26067
26512
  // Pulled up against the balance line despite the column's 2rem gap
26068
- /* @__PURE__ */ jsx57(Box, { $marginTop: "-1.5rem", children: /* @__PURE__ */ jsxs42(
26513
+ /* @__PURE__ */ jsx58(Box, { $marginTop: "-1.5rem", children: /* @__PURE__ */ jsxs42(
26069
26514
  Text,
26070
26515
  {
26071
26516
  style: { opacity: 0.54 },
@@ -26091,7 +26536,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
26091
26536
  })()
26092
26537
  ] })
26093
26538
  ] }),
26094
- hasGrants && /* @__PURE__ */ jsx57(
26539
+ hasGrants && /* @__PURE__ */ jsx58(
26095
26540
  Box,
26096
26541
  {
26097
26542
  $width: `calc(100% + ${2 * settings.theme.card.padding / TEXT_BASE_SIZE}rem)`,
@@ -26104,8 +26549,8 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
26104
26549
  children: [
26105
26550
  visibleGrants.map((grant, index2) => {
26106
26551
  const padding = getRowPadding(index2);
26107
- return /* @__PURE__ */ jsx57(Box, { $display: "table-row", children: grant.grantReason === BillingCreditGrantReason.Plan ? /* @__PURE__ */ jsxs42(Fragment22, { children: [
26108
- /* @__PURE__ */ jsx57(Box, { $display: "table-cell", $padding: padding, children: /* @__PURE__ */ jsx57(Text, { children: t3("X items included in plan", {
26552
+ return /* @__PURE__ */ jsx58(Box, { $display: "table-row", children: grant.grantReason === BillingCreditGrantReason.Plan ? /* @__PURE__ */ jsxs42(Fragment22, { children: [
26553
+ /* @__PURE__ */ jsx58(Box, { $display: "table-cell", $padding: padding, children: /* @__PURE__ */ jsx58(Text, { children: t3("X items included in plan", {
26109
26554
  amount: grant.quantity,
26110
26555
  item: getFeatureName(
26111
26556
  credit,
@@ -26113,14 +26558,14 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
26113
26558
  grant.quantity
26114
26559
  )
26115
26560
  }) }) }),
26116
- /* @__PURE__ */ jsx57(
26561
+ /* @__PURE__ */ jsx58(
26117
26562
  Box,
26118
26563
  {
26119
26564
  $display: "table-cell",
26120
26565
  $padding: padding,
26121
26566
  $textAlign: "right",
26122
26567
  $whiteSpace: "nowrap",
26123
- children: grant.expiresAt && /* @__PURE__ */ jsx57(Text, { children: t3("Resets", {
26568
+ children: grant.expiresAt && /* @__PURE__ */ jsx58(Text, { children: t3("Resets", {
26124
26569
  date: toPrettyDate(
26125
26570
  modifyDate(grant.expiresAt, 1),
26126
26571
  { locale, month: "short" }
@@ -26129,14 +26574,14 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
26129
26574
  }
26130
26575
  )
26131
26576
  ] }) : /* @__PURE__ */ jsxs42(Fragment22, { children: [
26132
- /* @__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", {
26577
+ /* @__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", {
26133
26578
  amount: grant.quantity,
26134
26579
  item: getFeatureName(credit, locale, 1),
26135
26580
  createdAt: toPrettyDate(
26136
26581
  grant.createdAt,
26137
26582
  { locale, month: "short" }
26138
26583
  )
26139
- }) }) : grant.grantReason === BillingCreditGrantReason.BillingCreditAutoTopup ? /* @__PURE__ */ jsx57(Fragment22, { children: t3("X item auto-topup", {
26584
+ }) }) : grant.grantReason === BillingCreditGrantReason.BillingCreditAutoTopup ? /* @__PURE__ */ jsx58(Fragment22, { children: t3("X item auto-topup", {
26140
26585
  amount: grant.quantity,
26141
26586
  item: getFeatureName(
26142
26587
  credit,
@@ -26147,7 +26592,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
26147
26592
  grant.createdAt,
26148
26593
  { locale, month: "short" }
26149
26594
  )
26150
- }) }) : /* @__PURE__ */ jsx57(Fragment22, { children: t3("X item grant", {
26595
+ }) }) : /* @__PURE__ */ jsx58(Fragment22, { children: t3("X item grant", {
26151
26596
  amount: grant.quantity,
26152
26597
  item: getFeatureName(
26153
26598
  credit,
@@ -26159,14 +26604,14 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
26159
26604
  { locale, month: "short" }
26160
26605
  )
26161
26606
  }) }) }) }),
26162
- /* @__PURE__ */ jsx57(
26607
+ /* @__PURE__ */ jsx58(
26163
26608
  Box,
26164
26609
  {
26165
26610
  $display: "table-cell",
26166
26611
  $padding: padding,
26167
26612
  $textAlign: "right",
26168
26613
  $whiteSpace: "nowrap",
26169
- children: grant.expiresAt && /* @__PURE__ */ jsx57(Text, { children: t3("Expires", {
26614
+ children: grant.expiresAt && /* @__PURE__ */ jsx58(Text, { children: t3("Expires", {
26170
26615
  date: toPrettyDate(
26171
26616
  modifyDate(grant.expiresAt, 1),
26172
26617
  { locale, month: "short" }
@@ -26177,7 +26622,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
26177
26622
  ] }) }, grant.id);
26178
26623
  }),
26179
26624
  canExpandLedger && /* @__PURE__ */ jsxs42(Box, { $display: "table-row", children: [
26180
- /* @__PURE__ */ jsx57(Box, { $display: "table-cell", $padding: getRowPadding(1), children: /* @__PURE__ */ jsx57(
26625
+ /* @__PURE__ */ jsx58(Box, { $display: "table-cell", $padding: getRowPadding(1), children: /* @__PURE__ */ jsx58(
26181
26626
  ExpandListToggle,
26182
26627
  {
26183
26628
  isExpanded: showAllGrants,
@@ -26186,7 +26631,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
26186
26631
  iconColor: isLightBackground ? "hsla(0, 0%, 0%, 0.8)" : "hsla(0, 0%, 100%, 0.4)"
26187
26632
  }
26188
26633
  ) }),
26189
- /* @__PURE__ */ jsx57(
26634
+ /* @__PURE__ */ jsx58(
26190
26635
  Box,
26191
26636
  {
26192
26637
  $display: "table-cell",
@@ -26199,7 +26644,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
26199
26644
  )
26200
26645
  }
26201
26646
  ),
26202
- hasGrants && /* @__PURE__ */ jsx57(
26647
+ hasGrants && /* @__PURE__ */ jsx58(
26203
26648
  ExpandListToggle,
26204
26649
  {
26205
26650
  isExpanded,
@@ -26209,7 +26654,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
26209
26654
  iconColor: isLightBackground ? "hsla(0, 0%, 0%, 0.8)" : "hsla(0, 0%, 100%, 0.4)"
26210
26655
  }
26211
26656
  ),
26212
- props.usageByUser.isVisible && /* @__PURE__ */ jsx57(
26657
+ props.usageByUser.isVisible && /* @__PURE__ */ jsx58(
26213
26658
  UsageByUser,
26214
26659
  {
26215
26660
  source: { kind: "credit", id: credit.id },
@@ -26227,7 +26672,7 @@ import { forwardRef as forwardRef13, useMemo as useMemo31 } from "react";
26227
26672
 
26228
26673
  // src/components/elements/payment-method/PaymentMethodElement.tsx
26229
26674
  import { useMemo as useMemo30 } from "react";
26230
- import { jsx as jsx58, jsxs as jsxs43 } from "react/jsx-runtime";
26675
+ import { jsx as jsx59, jsxs as jsxs43 } from "react/jsx-runtime";
26231
26676
  var PaymentElement2 = ({
26232
26677
  iconName,
26233
26678
  iconTitle,
@@ -26236,7 +26681,7 @@ var PaymentElement2 = ({
26236
26681
  }) => {
26237
26682
  const { settings } = useEmbed();
26238
26683
  return /* @__PURE__ */ jsxs43(Flex, { $flexDirection: "row", $alignItems: "center", $gap: "0.5rem", children: [
26239
- iconName && /* @__PURE__ */ jsx58(
26684
+ iconName && /* @__PURE__ */ jsx59(
26240
26685
  Icon3,
26241
26686
  {
26242
26687
  name: iconName,
@@ -26245,15 +26690,15 @@ var PaymentElement2 = ({
26245
26690
  }
26246
26691
  ),
26247
26692
  (label || paymentLast4) && /* @__PURE__ */ jsxs43(Box, { $flexGrow: 1, children: [
26248
- label && /* @__PURE__ */ jsx58(Text, { children: label }),
26693
+ label && /* @__PURE__ */ jsx59(Text, { children: label }),
26249
26694
  " ",
26250
- paymentLast4 && /* @__PURE__ */ jsx58(Text, { children: paymentLast4 })
26695
+ paymentLast4 && /* @__PURE__ */ jsx59(Text, { children: paymentLast4 })
26251
26696
  ] })
26252
26697
  ] });
26253
26698
  };
26254
26699
  var EmptyPaymentElement = () => {
26255
26700
  const { t: t3 } = useTranslation();
26256
- 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") }) }) }) });
26701
+ 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") }) }) }) });
26257
26702
  };
26258
26703
  var getPaymentMethodData = ({
26259
26704
  accountLast4,
@@ -26335,8 +26780,8 @@ var PaymentMethodElement = ({
26335
26780
  const hasCustomFields = customCheckoutFields && customCheckoutFields.length > 0;
26336
26781
  return /* @__PURE__ */ jsxs43(Flex, { $flexDirection: "column", $gap: `${sizeFactor}rem`, children: [
26337
26782
  props.header.isVisible && /* @__PURE__ */ jsxs43(Flex, { $justifyContent: "space-between", $alignItems: "center", children: [
26338
- /* @__PURE__ */ jsx58(Text, { display: props.header.fontStyle, children: t3("Payment Details") }),
26339
- 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") })
26783
+ /* @__PURE__ */ jsx59(Text, { display: props.header.fontStyle, children: t3("Payment Details") }),
26784
+ 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") })
26340
26785
  ] }),
26341
26786
  /* @__PURE__ */ jsxs43(
26342
26787
  Flex,
@@ -26347,8 +26792,8 @@ var PaymentMethodElement = ({
26347
26792
  $padding: `${sizeFactor / 2.25}rem ${sizeFactor}rem`,
26348
26793
  $borderRadius: "9999px",
26349
26794
  children: [
26350
- paymentMethod ? /* @__PURE__ */ jsx58(PaymentElement2, { ...getPaymentMethodData(paymentMethod) }) : /* @__PURE__ */ jsx58(EmptyPaymentElement, {}),
26351
- onRemove && /* @__PURE__ */ jsx58(
26795
+ paymentMethod ? /* @__PURE__ */ jsx59(PaymentElement2, { ...getPaymentMethodData(paymentMethod) }) : /* @__PURE__ */ jsx59(EmptyPaymentElement, {}),
26796
+ onRemove && /* @__PURE__ */ jsx59(
26352
26797
  Text,
26353
26798
  {
26354
26799
  onClick: onRemove,
@@ -26358,7 +26803,7 @@ var PaymentMethodElement = ({
26358
26803
  children: t3("Remove")
26359
26804
  }
26360
26805
  ),
26361
- props.functions.allowEdit && onEdit && /* @__PURE__ */ jsx58(
26806
+ props.functions.allowEdit && onEdit && /* @__PURE__ */ jsx59(
26362
26807
  Text,
26363
26808
  {
26364
26809
  onClick: onEdit,
@@ -26371,8 +26816,8 @@ var PaymentMethodElement = ({
26371
26816
  ]
26372
26817
  }
26373
26818
  ),
26374
- 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: [
26375
- /* @__PURE__ */ jsx58(
26819
+ 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: [
26820
+ /* @__PURE__ */ jsx59(
26376
26821
  Text,
26377
26822
  {
26378
26823
  $size: 12,
@@ -26380,7 +26825,7 @@ var PaymentMethodElement = ({
26380
26825
  children: field.name
26381
26826
  }
26382
26827
  ),
26383
- /* @__PURE__ */ jsx58(Text, { $size: 14, children: field.value != null && field.value !== "" ? field.value : /* @__PURE__ */ jsx58(
26828
+ /* @__PURE__ */ jsx59(Text, { $size: 14, children: field.value != null && field.value !== "" ? field.value : /* @__PURE__ */ jsx59(
26384
26829
  "span",
26385
26830
  {
26386
26831
  style: {
@@ -26425,7 +26870,7 @@ var PaymentListElement = ({
26425
26870
  $borderStyle: "solid",
26426
26871
  $borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.175)" : "hsla(0, 0%, 100%, 0.175)",
26427
26872
  children: [
26428
- iconName && /* @__PURE__ */ jsx58(
26873
+ iconName && /* @__PURE__ */ jsx59(
26429
26874
  Icon3,
26430
26875
  {
26431
26876
  name: iconName,
@@ -26434,19 +26879,19 @@ var PaymentListElement = ({
26434
26879
  }
26435
26880
  ),
26436
26881
  (label || paymentLast4) && /* @__PURE__ */ jsxs43(Box, { $flexGrow: 1, children: [
26437
- label && /* @__PURE__ */ jsx58(Text, { children: label }),
26882
+ label && /* @__PURE__ */ jsx59(Text, { children: label }),
26438
26883
  " ",
26439
- paymentLast4 && /* @__PURE__ */ jsx58(Text, { children: paymentLast4 })
26884
+ paymentLast4 && /* @__PURE__ */ jsx59(Text, { children: paymentLast4 })
26440
26885
  ] }),
26441
- expirationDate && /* @__PURE__ */ jsx58(
26886
+ expirationDate && /* @__PURE__ */ jsx59(
26442
26887
  Box,
26443
26888
  {
26444
26889
  $flexGrow: 1,
26445
26890
  $color: isLightBackground ? "hsla(0, 0%, 0%, 0.375)" : "hsla(0, 0%, 100%, 0.375)",
26446
- children: /* @__PURE__ */ jsx58(Text, { children: t3("Expires", { date: expirationDate }) })
26891
+ children: /* @__PURE__ */ jsx59(Text, { children: t3("Expires", { date: expirationDate }) })
26447
26892
  }
26448
26893
  ),
26449
- /* @__PURE__ */ jsx58(Box, { children: /* @__PURE__ */ jsx58(
26894
+ /* @__PURE__ */ jsx59(Box, { children: /* @__PURE__ */ jsx59(
26450
26895
  Text,
26451
26896
  {
26452
26897
  onClick: () => {
@@ -26459,7 +26904,7 @@ var PaymentListElement = ({
26459
26904
  children: t3("Set default")
26460
26905
  }
26461
26906
  ) }),
26462
- /* @__PURE__ */ jsx58(
26907
+ /* @__PURE__ */ jsx59(
26463
26908
  Icon3,
26464
26909
  {
26465
26910
  tabIndex: 0,
@@ -26481,7 +26926,7 @@ var PaymentListElement = ({
26481
26926
  };
26482
26927
 
26483
26928
  // src/components/elements/payment-method/PaymentMethod.tsx
26484
- import { jsx as jsx59 } from "react/jsx-runtime";
26929
+ import { jsx as jsx60 } from "react/jsx-runtime";
26485
26930
  var resolveDesignProps5 = (props) => {
26486
26931
  return {
26487
26932
  header: {
@@ -26516,7 +26961,7 @@ var PaymentMethod = forwardRef13(({ children, className, portal, allowEdit = tru
26516
26961
  monthsToExpiration: monthsToExpiration2
26517
26962
  };
26518
26963
  }, [data?.company?.defaultPaymentMethod, data?.subscription?.paymentMethod]);
26519
- return /* @__PURE__ */ jsx59(Element, { ref, className, children: /* @__PURE__ */ jsx59(
26964
+ return /* @__PURE__ */ jsx60(Element, { ref, className, children: /* @__PURE__ */ jsx60(
26520
26965
  PaymentMethodElement,
26521
26966
  {
26522
26967
  customCheckoutFields: data?.customCheckoutFields,
@@ -26702,7 +27147,7 @@ var loadStripe = function loadStripe2() {
26702
27147
 
26703
27148
  // src/components/elements/payment-method/PaymentMethodDetails.tsx
26704
27149
  import { useCallback as useCallback15, useEffect as useEffect7, useMemo as useMemo32, useState as useState19 } from "react";
26705
- import { jsx as jsx60, jsxs as jsxs44 } from "react/jsx-runtime";
27150
+ import { jsx as jsx61, jsxs as jsxs44 } from "react/jsx-runtime";
26706
27151
  var resolveDesignProps6 = () => {
26707
27152
  return {
26708
27153
  header: {
@@ -26883,7 +27328,7 @@ var PaymentMethodDetails = ({
26883
27328
  $flexGrow: 1,
26884
27329
  $gap: "1.5rem",
26885
27330
  children: [
26886
- /* @__PURE__ */ jsx60(
27331
+ /* @__PURE__ */ jsx61(
26887
27332
  Flex,
26888
27333
  {
26889
27334
  $position: "absolute",
@@ -26892,7 +27337,7 @@ var PaymentMethodDetails = ({
26892
27337
  $alignItems: "center",
26893
27338
  $width: "100%",
26894
27339
  $height: "100%",
26895
- children: /* @__PURE__ */ jsx60(
27340
+ children: /* @__PURE__ */ jsx61(
26896
27341
  Loader,
26897
27342
  {
26898
27343
  $color: settings.theme.primary,
@@ -26950,7 +27395,7 @@ var PaymentMethodDetails = ({
26950
27395
  clientSecret: setupIntent?.setupIntentClientSecret
26951
27396
  },
26952
27397
  children: [
26953
- /* @__PURE__ */ jsx60(
27398
+ /* @__PURE__ */ jsx61(
26954
27399
  PaymentForm,
26955
27400
  {
26956
27401
  financeData,
@@ -26961,7 +27406,7 @@ var PaymentMethodDetails = ({
26961
27406
  }
26962
27407
  }
26963
27408
  ),
26964
- currentPaymentMethod && /* @__PURE__ */ jsx60(Box, { children: /* @__PURE__ */ jsx60(
27409
+ currentPaymentMethod && /* @__PURE__ */ jsx61(Box, { children: /* @__PURE__ */ jsx61(
26965
27410
  Text,
26966
27411
  {
26967
27412
  onClick: focusExistingPaymentMethods,
@@ -26975,7 +27420,7 @@ var PaymentMethodDetails = ({
26975
27420
  ]
26976
27421
  }
26977
27422
  ) : /* @__PURE__ */ jsxs44(Flex, { $flexDirection: "column", $gap: "2rem", children: [
26978
- /* @__PURE__ */ jsx60(
27423
+ /* @__PURE__ */ jsx61(
26979
27424
  PaymentMethodElement,
26980
27425
  {
26981
27426
  paymentMethod: currentPaymentMethod,
@@ -26989,7 +27434,7 @@ var PaymentMethodDetails = ({
26989
27434
  }
26990
27435
  ),
26991
27436
  paymentMethods.length > 0 && /* @__PURE__ */ jsxs44(Flex, { $alignItems: "center", $gap: "0.5rem", children: [
26992
- /* @__PURE__ */ jsx60(
27437
+ /* @__PURE__ */ jsx61(
26993
27438
  Text,
26994
27439
  {
26995
27440
  onClick: toggleShowPaymentMethods,
@@ -27000,7 +27445,7 @@ var PaymentMethodDetails = ({
27000
27445
  children: t3("Choose different payment method")
27001
27446
  }
27002
27447
  ),
27003
- /* @__PURE__ */ jsx60(
27448
+ /* @__PURE__ */ jsx61(
27004
27449
  Icon3,
27005
27450
  {
27006
27451
  name: showDifferentPaymentMethods ? "chevron-up" : "chevron-down",
@@ -27009,9 +27454,9 @@ var PaymentMethodDetails = ({
27009
27454
  )
27010
27455
  ] }),
27011
27456
  showDifferentPaymentMethods && /* @__PURE__ */ jsxs44(Flex, { $flexDirection: "column", $gap: "2rem", $marginTop: "-1rem", children: [
27012
- paymentMethods.length > 1 && /* @__PURE__ */ jsx60(Flex, { $flexDirection: "column", $overflow: "auto", children: (paymentMethods.filter(
27457
+ paymentMethods.length > 1 && /* @__PURE__ */ jsx61(Flex, { $flexDirection: "column", $overflow: "auto", children: (paymentMethods.filter(
27013
27458
  (paymentMethod) => paymentMethod.id !== currentPaymentMethod?.id
27014
- ) || []).map((paymentMethod) => /* @__PURE__ */ jsx60(
27459
+ ) || []).map((paymentMethod) => /* @__PURE__ */ jsx61(
27015
27460
  PaymentListElement,
27016
27461
  {
27017
27462
  paymentMethod,
@@ -27020,7 +27465,7 @@ var PaymentMethodDetails = ({
27020
27465
  },
27021
27466
  paymentMethod.id
27022
27467
  )) }),
27023
- /* @__PURE__ */ jsx60(
27468
+ /* @__PURE__ */ jsx61(
27024
27469
  Button,
27025
27470
  {
27026
27471
  type: "button",
@@ -27035,7 +27480,7 @@ var PaymentMethodDetails = ({
27035
27480
  )
27036
27481
  ] })
27037
27482
  ] }),
27038
- !isLoading && error && /* @__PURE__ */ jsx60(Box, { children: /* @__PURE__ */ jsx60(Text, { $weight: 500, $color: "#DB6669", children: error }) })
27483
+ !isLoading && error && /* @__PURE__ */ jsx61(Box, { children: /* @__PURE__ */ jsx61(Text, { $weight: 500, $color: "#DB6669", children: error }) })
27039
27484
  ]
27040
27485
  }
27041
27486
  )
@@ -27048,7 +27493,7 @@ var PaymentMethodDetails = ({
27048
27493
  import { forwardRef as forwardRef14, useMemo as useMemo34 } from "react";
27049
27494
 
27050
27495
  // src/components/elements/plan-manager/AddOn.tsx
27051
- import { jsx as jsx61, jsxs as jsxs45 } from "react/jsx-runtime";
27496
+ import { jsx as jsx62, jsxs as jsxs45 } from "react/jsx-runtime";
27052
27497
  var AddOn = ({ addOn, currency, period, layout }) => {
27053
27498
  const { t: t3, locale } = useTranslation();
27054
27499
  const resolvedPeriod = addOn.planPeriod === "one-time" ? addOn.planPeriod : period ?? addOn.planPeriod;
@@ -27060,10 +27505,10 @@ var AddOn = ({ addOn, currency, period, layout }) => {
27060
27505
  $flexWrap: "wrap",
27061
27506
  $gap: "1rem",
27062
27507
  children: [
27063
- /* @__PURE__ */ jsx61(Text, { display: layout.addOns.fontStyle, children: addOn.name }),
27508
+ /* @__PURE__ */ jsx62(Text, { display: layout.addOns.fontStyle, children: addOn.name }),
27064
27509
  typeof addOn.planPrice === "number" && resolvedPeriod && /* @__PURE__ */ jsxs45(Text, { children: [
27065
27510
  formatCurrency(addOn.planPrice, { locale, currency }),
27066
- /* @__PURE__ */ jsx61("sub", { children: resolvedPeriod === "one-time" ? shortenPeriod(resolvedPeriod, t3) : `/${shortenPeriod(resolvedPeriod, t3)}` })
27511
+ /* @__PURE__ */ jsx62("sub", { children: resolvedPeriod === "one-time" ? shortenPeriod(resolvedPeriod, t3) : `/${shortenPeriod(resolvedPeriod, t3)}` })
27067
27512
  ] })
27068
27513
  ]
27069
27514
  }
@@ -27072,7 +27517,7 @@ var AddOn = ({ addOn, currency, period, layout }) => {
27072
27517
 
27073
27518
  // src/components/elements/plan-manager/UsageDetails.tsx
27074
27519
  import { Fragment as Fragment23, useMemo as useMemo33 } from "react";
27075
- import { Fragment as Fragment24, jsx as jsx62, jsxs as jsxs46 } from "react/jsx-runtime";
27520
+ import { Fragment as Fragment24, jsx as jsx63, jsxs as jsxs46 } from "react/jsx-runtime";
27076
27521
  var UsageDetails2 = ({
27077
27522
  entitlement,
27078
27523
  period,
@@ -27104,7 +27549,7 @@ var UsageDetails2 = ({
27104
27549
  index += 1;
27105
27550
  }
27106
27551
  if (entitlement.priceBehavior === EntitlementPriceBehavior.Tier) {
27107
- acc.push(/* @__PURE__ */ jsx62(Fragment23, { children: t3("Tier-based") }, index));
27552
+ acc.push(/* @__PURE__ */ jsx63(Fragment23, { children: t3("Tier-based") }, index));
27108
27553
  index += 1;
27109
27554
  }
27110
27555
  const { price } = getEntitlementPrice(entitlement, period, currency) || {};
@@ -27172,13 +27617,13 @@ var UsageDetails2 = ({
27172
27617
  $flexWrap: "wrap",
27173
27618
  $gap: "0.5rem",
27174
27619
  children: [
27175
- /* @__PURE__ */ jsx62(Text, { display: layout.addOns.fontStyle, children: typeof quantity === "number" ? /* @__PURE__ */ jsxs46(Fragment24, { children: [
27620
+ /* @__PURE__ */ jsx63(Text, { display: layout.addOns.fontStyle, children: typeof quantity === "number" ? /* @__PURE__ */ jsxs46(Fragment24, { children: [
27176
27621
  quantity,
27177
27622
  " ",
27178
27623
  getFeatureName(entitlement.feature, locale, quantity, true)
27179
27624
  ] }) : entitlement.feature.name }),
27180
27625
  /* @__PURE__ */ jsxs46(Text, { children: [
27181
- description.length > 0 && /* @__PURE__ */ jsx62(
27626
+ description.length > 0 && /* @__PURE__ */ jsx63(
27182
27627
  Text,
27183
27628
  {
27184
27629
  style: { opacity: 0.54 },
@@ -27200,7 +27645,7 @@ var UsageDetails2 = ({
27200
27645
  shortenPeriod(period, t3)
27201
27646
  ] })
27202
27647
  ] }),
27203
- entitlement.priceBehavior === EntitlementPriceBehavior.Tier && /* @__PURE__ */ jsx62(
27648
+ entitlement.priceBehavior === EntitlementPriceBehavior.Tier && /* @__PURE__ */ jsx63(
27204
27649
  PricingTiersTooltip,
27205
27650
  {
27206
27651
  feature: entitlement.feature,
@@ -27210,7 +27655,7 @@ var UsageDetails2 = ({
27210
27655
  tiersMode: billingPrice?.tiersMode ?? void 0
27211
27656
  }
27212
27657
  ),
27213
- entitlementHasHardLimit(entitlement) && entitlement.allocationType === EntitlementValueType.Numeric && /* @__PURE__ */ jsx62(
27658
+ entitlementHasHardLimit(entitlement) && entitlement.allocationType === EntitlementValueType.Numeric && /* @__PURE__ */ jsx63(
27214
27659
  HardLimitTooltip,
27215
27660
  {
27216
27661
  feature: entitlement.feature,
@@ -27224,7 +27669,7 @@ var UsageDetails2 = ({
27224
27669
  };
27225
27670
 
27226
27671
  // src/components/elements/plan-manager/PlanManager.tsx
27227
- import { Fragment as Fragment25, jsx as jsx63, jsxs as jsxs47 } from "react/jsx-runtime";
27672
+ import { Fragment as Fragment25, jsx as jsx64, jsxs as jsxs47 } from "react/jsx-runtime";
27228
27673
  var resolveDesignProps7 = (props) => {
27229
27674
  return {
27230
27675
  header: {
@@ -27395,8 +27840,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27395
27840
  $textAlign: "center",
27396
27841
  $backgroundColor: isLightBackground ? darken(settings.theme.card.background, 0.04) : lighten(settings.theme.card.background, 0.04),
27397
27842
  children: [
27398
- typeof trialEnd.endDate !== "undefined" && /* @__PURE__ */ jsx63(Text, { as: "h3", display: "heading3", children: t3("Trial ends in", trialEnd) }),
27399
- (trialPaymentMethodRequired || postTrialPlan || currentPlan) && /* @__PURE__ */ jsx63(
27843
+ typeof trialEnd.endDate !== "undefined" && /* @__PURE__ */ jsx64(Text, { as: "h3", display: "heading3", children: t3("Trial ends in", trialEnd) }),
27844
+ (trialPaymentMethodRequired || postTrialPlan || currentPlan) && /* @__PURE__ */ jsx64(
27400
27845
  Text,
27401
27846
  {
27402
27847
  as: "p",
@@ -27420,8 +27865,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27420
27865
  $textAlign: "center",
27421
27866
  $backgroundColor: isLightBackground ? darken(settings.theme.card.background, 0.04) : lighten(settings.theme.card.background, 0.04),
27422
27867
  children: [
27423
- /* @__PURE__ */ jsx63(Text, { as: "h3", display: "heading3", children: t3("Subscription canceled") }),
27424
- typeof billingSubscription?.cancelAt === "number" && /* @__PURE__ */ jsx63(
27868
+ /* @__PURE__ */ jsx64(Text, { as: "h3", display: "heading3", children: t3("Subscription canceled") }),
27869
+ typeof billingSubscription?.cancelAt === "number" && /* @__PURE__ */ jsx64(
27425
27870
  Text,
27426
27871
  {
27427
27872
  as: "p",
@@ -27447,19 +27892,19 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27447
27892
  $textAlign: "center",
27448
27893
  $backgroundColor: isLightBackground ? darken(settings.theme.card.background, 0.04) : lighten(settings.theme.card.background, 0.04),
27449
27894
  children: [
27450
- /* @__PURE__ */ jsx63(Text, { as: "h3", display: "heading3", children: customPlanBilling.isAwaitingActivation ? t3("Custom plan awaiting payment", {
27895
+ /* @__PURE__ */ jsx64(Text, { as: "h3", display: "heading3", children: customPlanBilling.isAwaitingActivation ? t3("Custom plan awaiting payment", {
27451
27896
  plan: customPlanBilling.planName ?? t3("your plan")
27452
27897
  }) : t3("Custom plan payment due", {
27453
27898
  plan: customPlanBilling.planName ?? t3("your plan"),
27454
27899
  date: toPrettyDate(customPlanBilling.deadline, { locale })
27455
27900
  }) }),
27456
- /* @__PURE__ */ jsx63(Text, { as: "p", $size: 0.8125 * settings.theme.typography.text.fontSize, children: customPlanBilling.isAwaitingActivation ? t3("Custom plan awaiting payment description", {
27901
+ /* @__PURE__ */ jsx64(Text, { as: "p", $size: 0.8125 * settings.theme.typography.text.fontSize, children: customPlanBilling.isAwaitingActivation ? t3("Custom plan awaiting payment description", {
27457
27902
  date: toPrettyDate(customPlanBilling.deadline, { locale })
27458
27903
  }) : t3("Custom plan payment due description", {
27459
27904
  plan: customPlanBilling.planName ?? t3("your plan"),
27460
27905
  date: toPrettyDate(customPlanBilling.deadline, { locale })
27461
27906
  }) }),
27462
- customPlanBilling.billing.stripeInvoiceUrl && /* @__PURE__ */ jsx63(
27907
+ customPlanBilling.billing.stripeInvoiceUrl && /* @__PURE__ */ jsx64(
27463
27908
  Button,
27464
27909
  {
27465
27910
  as: "a",
@@ -27483,10 +27928,10 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27483
27928
  $textAlign: "center",
27484
27929
  $backgroundColor: isLightBackground ? darken(settings.theme.card.background, 0.04) : lighten(settings.theme.card.background, 0.04),
27485
27930
  children: [
27486
- /* @__PURE__ */ jsx63(Text, { as: "h3", display: "heading3", children: t3("Downgrade to plan scheduled", {
27931
+ /* @__PURE__ */ jsx64(Text, { as: "h3", display: "heading3", children: t3("Downgrade to plan scheduled", {
27487
27932
  plan: data.company.scheduledDowngrade.toPlanName
27488
27933
  }) }),
27489
- typeof billingSubscription?.periodEnd === "number" && /* @__PURE__ */ jsx63(
27934
+ typeof billingSubscription?.periodEnd === "number" && /* @__PURE__ */ jsx64(
27490
27935
  Text,
27491
27936
  {
27492
27937
  as: "p",
@@ -27520,11 +27965,11 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27520
27965
  $gap: "1rem",
27521
27966
  children: [
27522
27967
  /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "1rem", children: [
27523
- /* @__PURE__ */ jsx63(Text, { display: props.header.title.fontStyle, $leading: "none", children: currentPlan.name }),
27524
- props.header.description.isVisible && currentPlan.description && /* @__PURE__ */ jsx63(Text, { display: props.header.description.fontStyle, children: currentPlan.description })
27968
+ /* @__PURE__ */ jsx64(Text, { display: props.header.title.fontStyle, $leading: "none", children: currentPlan.name }),
27969
+ props.header.description.isVisible && currentPlan.description && /* @__PURE__ */ jsx64(Text, { display: props.header.description.fontStyle, children: currentPlan.description })
27525
27970
  ] }),
27526
27971
  props.header.price.isVisible && typeof currentPlan.planPrice === "number" && /* @__PURE__ */ jsxs47(Box, { children: [
27527
- /* @__PURE__ */ jsx63(
27972
+ /* @__PURE__ */ jsx64(
27528
27973
  Text,
27529
27974
  {
27530
27975
  display: isUsageBasedPlan ? "heading3" : props.header.price.fontStyle,
@@ -27534,7 +27979,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27534
27979
  })
27535
27980
  }
27536
27981
  ),
27537
- !isFreePlan && currentPlanPeriod && /* @__PURE__ */ jsx63(Text, { display: props.header.price.fontStyle, children: /* @__PURE__ */ jsxs47("sub", { children: [
27982
+ !isFreePlan && currentPlanPeriod && /* @__PURE__ */ jsx64(Text, { display: props.header.price.fontStyle, children: /* @__PURE__ */ jsxs47("sub", { children: [
27538
27983
  "/",
27539
27984
  shortenPeriod(currentPlanPeriod, t3)
27540
27985
  ] }) })
@@ -27543,7 +27988,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27543
27988
  }
27544
27989
  ),
27545
27990
  props.addOns.isVisible && currentAddOns.length > 0 && /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27546
- props.addOns.showLabel && /* @__PURE__ */ jsx63(
27991
+ props.addOns.showLabel && /* @__PURE__ */ jsx64(
27547
27992
  Text,
27548
27993
  {
27549
27994
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -27551,7 +27996,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27551
27996
  children: t3("Add-ons")
27552
27997
  }
27553
27998
  ),
27554
- /* @__PURE__ */ jsx63(Flex, { $flexDirection: "column", $gap: "1rem", children: currentAddOns.map((addOn, addOnIndex) => /* @__PURE__ */ jsx63(
27999
+ /* @__PURE__ */ jsx64(Flex, { $flexDirection: "column", $gap: "1rem", children: currentAddOns.map((addOn, addOnIndex) => /* @__PURE__ */ jsx64(
27555
28000
  AddOn,
27556
28001
  {
27557
28002
  addOn,
@@ -27563,7 +28008,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27563
28008
  )) })
27564
28009
  ] }),
27565
28010
  props.addOns.isVisible && usageBasedEntitlements.length > 0 && /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27566
- props.addOns.showLabel && /* @__PURE__ */ jsx63(
28011
+ props.addOns.showLabel && /* @__PURE__ */ jsx64(
27567
28012
  Text,
27568
28013
  {
27569
28014
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -27571,8 +28016,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27571
28016
  children: t3("Usage-based")
27572
28017
  }
27573
28018
  ),
27574
- /* @__PURE__ */ jsx63(Flex, { $flexDirection: "column", $gap: "1rem", children: usageBasedEntitlements.map((entitlement, entitlementIndex) => {
27575
- return /* @__PURE__ */ jsx63(
28019
+ /* @__PURE__ */ jsx64(Flex, { $flexDirection: "column", $gap: "1rem", children: usageBasedEntitlements.map((entitlement, entitlementIndex) => {
28020
+ return /* @__PURE__ */ jsx64(
27576
28021
  UsageDetails2,
27577
28022
  {
27578
28023
  entitlement,
@@ -27586,7 +28031,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27586
28031
  }) })
27587
28032
  ] }),
27588
28033
  props.addOns.isVisible && showCredits && creditGroups.plan.length > 0 && /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27589
- props.addOns.showLabel && /* @__PURE__ */ jsx63(
28034
+ props.addOns.showLabel && /* @__PURE__ */ jsx64(
27590
28035
  Text,
27591
28036
  {
27592
28037
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -27594,7 +28039,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27594
28039
  children: t3("Credits in plan")
27595
28040
  }
27596
28041
  ),
27597
- /* @__PURE__ */ jsx63(Flex, { $flexDirection: "column", $gap: "1rem", children: planCredits.items.map((group, groupIndex) => {
28042
+ /* @__PURE__ */ jsx64(Flex, { $flexDirection: "column", $gap: "1rem", children: planCredits.items.map((group, groupIndex) => {
27598
28043
  const planCreditGrant = currentPlan?.includedCreditGrants.find(
27599
28044
  (grant) => grant.creditId === group.id
27600
28045
  );
@@ -27631,7 +28076,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27631
28076
  $flexWrap: "wrap",
27632
28077
  $gap: "0.5rem",
27633
28078
  children: [
27634
- /* @__PURE__ */ jsx63(Text, { display: props.addOns.fontStyle, children: showPerLicense ? /* @__PURE__ */ jsxs47(Fragment25, { children: [
28079
+ /* @__PURE__ */ jsx64(Text, { display: props.addOns.fontStyle, children: showPerLicense ? /* @__PURE__ */ jsxs47(Fragment25, { children: [
27635
28080
  t3("X credits per license", {
27636
28081
  amount: perLicenseGrant.amount,
27637
28082
  creditName: getFeatureName(
@@ -27672,7 +28117,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27672
28117
  )
27673
28118
  ] })
27674
28119
  ] }) }),
27675
- group.total.used > 0 && /* @__PURE__ */ jsx63(Flex, { $alignItems: "baseline", children: /* @__PURE__ */ jsxs47(
28120
+ group.total.used > 0 && /* @__PURE__ */ jsx64(Flex, { $alignItems: "baseline", children: /* @__PURE__ */ jsxs47(
27676
28121
  Text,
27677
28122
  {
27678
28123
  style: { opacity: 0.54 },
@@ -27682,7 +28127,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27682
28127
  group.total.used,
27683
28128
  " ",
27684
28129
  t3("used"),
27685
- hasAutoTopup && planCreditGrant && !isAutoTopupOff(planCreditGrant) && /* @__PURE__ */ jsx63(
28130
+ hasAutoTopup && planCreditGrant && !isAutoTopupOff(planCreditGrant) && /* @__PURE__ */ jsx64(
27686
28131
  AutoTopupNotice,
27687
28132
  {
27688
28133
  thresholdCredits,
@@ -27695,7 +28140,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27695
28140
  ]
27696
28141
  }
27697
28142
  ),
27698
- showPerLicense && typeof licenseQuantity === "number" && typeof resolvedTotal === "number" && creditPeriod && /* @__PURE__ */ jsx63(
28143
+ showPerLicense && typeof licenseQuantity === "number" && typeof resolvedTotal === "number" && creditPeriod && /* @__PURE__ */ jsx64(
27699
28144
  Text,
27700
28145
  {
27701
28146
  style: { opacity: 0.54 },
@@ -27740,7 +28185,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27740
28185
  groupIndex
27741
28186
  );
27742
28187
  }) }),
27743
- planCredits.canExpand && /* @__PURE__ */ jsx63(
28188
+ planCredits.canExpand && /* @__PURE__ */ jsx64(
27744
28189
  ExpandListToggle,
27745
28190
  {
27746
28191
  isExpanded: planCredits.isExpanded,
@@ -27760,7 +28205,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27760
28205
  $borderRadius: "0.5rem",
27761
28206
  children: [
27762
28207
  /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27763
- /* @__PURE__ */ jsx63(Text, { display: props.addOns.fontStyle, children: t3("Auto Top-up") }),
28208
+ /* @__PURE__ */ jsx64(Text, { display: props.addOns.fontStyle, children: t3("Auto Top-up") }),
27764
28209
  currentPlan?.includedCreditGrants.reduce(
27765
28210
  (acc, grant) => {
27766
28211
  if (!grant.credit || !isSelfServiceAutoTopupAvailable(grant)) {
@@ -27769,7 +28214,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27769
28214
  const autoTopupEnabled = grant.companyAutoTopupEnabled ?? false;
27770
28215
  if (!autoTopupEnabled) {
27771
28216
  acc.push(
27772
- /* @__PURE__ */ jsx63(Text, { $leading: "tight", children: t3("Auto top-up disabled for token", {
28217
+ /* @__PURE__ */ jsx64(Text, { $leading: "tight", children: t3("Auto top-up disabled for token", {
27773
28218
  unit: getFeatureName(grant.credit, locale, 1)
27774
28219
  }) }, grant.id)
27775
28220
  );
@@ -27779,7 +28224,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27779
28224
  const autoTopupAmount = getAutoTopupAmount(grant);
27780
28225
  if (typeof autoTopupThresholdCredits === "number" && typeof autoTopupAmount === "number") {
27781
28226
  acc.push(
27782
- /* @__PURE__ */ jsx63(Text, { $leading: "tight", children: t3("Adds X tokens when Y remaining in balance", {
28227
+ /* @__PURE__ */ jsx64(Text, { $leading: "tight", children: t3("Adds X tokens when Y remaining in balance", {
27783
28228
  unit: getFeatureName(
27784
28229
  grant.credit,
27785
28230
  locale,
@@ -27795,7 +28240,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27795
28240
  []
27796
28241
  )
27797
28242
  ] }),
27798
- /* @__PURE__ */ jsx63(
28243
+ /* @__PURE__ */ jsx64(
27799
28244
  Button,
27800
28245
  {
27801
28246
  type: "button",
@@ -27813,7 +28258,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27813
28258
  )
27814
28259
  ] }),
27815
28260
  props.addOns.isVisible && showCredits && creditGroups.autoTopups.length > 0 && /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27816
- props.addOns.showLabel && /* @__PURE__ */ jsx63(
28261
+ props.addOns.showLabel && /* @__PURE__ */ jsx64(
27817
28262
  Text,
27818
28263
  {
27819
28264
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -27821,7 +28266,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27821
28266
  children: t3("Top-ups")
27822
28267
  }
27823
28268
  ),
27824
- /* @__PURE__ */ jsx63(Flex, { $flexDirection: "column", $gap: "1rem", children: autoTopupCredits.items.map((group, groupIndex) => {
28269
+ /* @__PURE__ */ jsx64(Flex, { $flexDirection: "column", $gap: "1rem", children: autoTopupCredits.items.map((group, groupIndex) => {
27825
28270
  const bundle = group?.bundleId ? creditBundles.find((b2) => b2.id === group.bundleId) : void 0;
27826
28271
  return /* @__PURE__ */ jsxs47(
27827
28272
  Flex,
@@ -27873,7 +28318,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27873
28318
  groupIndex
27874
28319
  );
27875
28320
  }) }),
27876
- autoTopupCredits.canExpand && /* @__PURE__ */ jsx63(
28321
+ autoTopupCredits.canExpand && /* @__PURE__ */ jsx64(
27877
28322
  ExpandListToggle,
27878
28323
  {
27879
28324
  isExpanded: autoTopupCredits.isExpanded,
@@ -27884,7 +28329,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27884
28329
  )
27885
28330
  ] }),
27886
28331
  props.addOns.isVisible && creditGroups.bundles.length > 0 && /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27887
- props.addOns.showLabel && /* @__PURE__ */ jsx63(
28332
+ props.addOns.showLabel && /* @__PURE__ */ jsx64(
27888
28333
  Text,
27889
28334
  {
27890
28335
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -27892,7 +28337,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27892
28337
  children: t3("Credit bundles")
27893
28338
  }
27894
28339
  ),
27895
- /* @__PURE__ */ jsx63(Flex, { $flexDirection: "column", $gap: "1rem", children: bundleCredits.items.map((group, groupIndex) => {
28340
+ /* @__PURE__ */ jsx64(Flex, { $flexDirection: "column", $gap: "1rem", children: bundleCredits.items.map((group, groupIndex) => {
27896
28341
  const bundle = group?.bundleId ? creditBundles.find((b2) => b2.id === group.bundleId) : void 0;
27897
28342
  return /* @__PURE__ */ jsxs47(
27898
28343
  Flex,
@@ -27938,7 +28383,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27938
28383
  groupIndex
27939
28384
  );
27940
28385
  }) }),
27941
- bundleCredits.canExpand && /* @__PURE__ */ jsx63(
28386
+ bundleCredits.canExpand && /* @__PURE__ */ jsx64(
27942
28387
  ExpandListToggle,
27943
28388
  {
27944
28389
  isExpanded: bundleCredits.isExpanded,
@@ -27949,7 +28394,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27949
28394
  )
27950
28395
  ] }),
27951
28396
  props.addOns.isVisible && creditGroups.promotional.length > 0 && /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27952
- props.addOns.showLabel && /* @__PURE__ */ jsx63(
28397
+ props.addOns.showLabel && /* @__PURE__ */ jsx64(
27953
28398
  Text,
27954
28399
  {
27955
28400
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -27957,7 +28402,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27957
28402
  children: t3("Promotional credits")
27958
28403
  }
27959
28404
  ),
27960
- /* @__PURE__ */ jsx63(Flex, { $flexDirection: "column", $gap: "1rem", children: promotionalCredits.items.map((group, groupIndex) => {
28405
+ /* @__PURE__ */ jsx64(Flex, { $flexDirection: "column", $gap: "1rem", children: promotionalCredits.items.map((group, groupIndex) => {
27961
28406
  return /* @__PURE__ */ jsxs47(
27962
28407
  Flex,
27963
28408
  {
@@ -27989,7 +28434,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27989
28434
  groupIndex
27990
28435
  );
27991
28436
  }) }),
27992
- promotionalCredits.canExpand && /* @__PURE__ */ jsx63(
28437
+ promotionalCredits.canExpand && /* @__PURE__ */ jsx64(
27993
28438
  ExpandListToggle,
27994
28439
  {
27995
28440
  isExpanded: promotionalCredits.isExpanded,
@@ -27999,7 +28444,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27999
28444
  }
28000
28445
  )
28001
28446
  ] }),
28002
- canCheckout && props.callToAction.isVisible && !customPlanBilling?.isAwaitingActivation && /* @__PURE__ */ jsx63(
28447
+ canCheckout && props.callToAction.isVisible && !customPlanBilling?.isAwaitingActivation && /* @__PURE__ */ jsx64(
28003
28448
  Button,
28004
28449
  {
28005
28450
  type: "button",
@@ -28031,7 +28476,7 @@ import {
28031
28476
 
28032
28477
  // src/components/elements/pricing-table/AddOn.tsx
28033
28478
  import { useMemo as useMemo35 } from "react";
28034
- import { Fragment as Fragment26, jsx as jsx64, jsxs as jsxs48 } from "react/jsx-runtime";
28479
+ import { Fragment as Fragment26, jsx as jsx65, jsxs as jsxs48 } from "react/jsx-runtime";
28035
28480
  function renderMeteredEntitlementPricing2({
28036
28481
  priceBehavior,
28037
28482
  softLimit,
@@ -28055,7 +28500,7 @@ function renderMeteredEntitlementPricing2({
28055
28500
  ] });
28056
28501
  }
28057
28502
  if (isTiered) {
28058
- return /* @__PURE__ */ jsx64(Fragment26, { children: "Tier-based pricing" });
28503
+ return /* @__PURE__ */ jsx65(Fragment26, { children: "Tier-based pricing" });
28059
28504
  }
28060
28505
  if (priceBehavior === EntitlementPriceBehavior.PayAsYouGo || priceBehavior === EntitlementPriceBehavior.PayInAdvance) {
28061
28506
  return /* @__PURE__ */ jsxs48(Fragment26, { children: [
@@ -28162,7 +28607,7 @@ var AddOn2 = ({
28162
28607
  $borderStyle: "solid",
28163
28608
  $borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.175)" : "hsla(0, 0%, 100%, 0.175)",
28164
28609
  children: [
28165
- /* @__PURE__ */ jsx64(Box, { children: /* @__PURE__ */ jsx64(
28610
+ /* @__PURE__ */ jsx65(Box, { children: /* @__PURE__ */ jsx65(
28166
28611
  Text,
28167
28612
  {
28168
28613
  as: "h3",
@@ -28171,8 +28616,8 @@ var AddOn2 = ({
28171
28616
  children: addOn.name
28172
28617
  }
28173
28618
  ) }),
28174
- layout.addOns.showDescription && /* @__PURE__ */ jsx64(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx64(Text, { display: layout.plans.description.fontStyle, children: addOn.description }) }),
28175
- /* @__PURE__ */ jsx64(Box, { children: /* @__PURE__ */ jsx64(
28619
+ layout.addOns.showDescription && /* @__PURE__ */ jsx65(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx65(Text, { display: layout.plans.description.fontStyle, children: addOn.description }) }),
28620
+ /* @__PURE__ */ jsx65(Box, { children: /* @__PURE__ */ jsx65(
28176
28621
  Text,
28177
28622
  {
28178
28623
  "data-testid": "sch-addon-price",
@@ -28189,7 +28634,7 @@ var AddOn2 = ({
28189
28634
  ] })
28190
28635
  }
28191
28636
  ) }),
28192
- isActiveAddOn && /* @__PURE__ */ jsx64(
28637
+ isActiveAddOn && /* @__PURE__ */ jsx65(
28193
28638
  Flex,
28194
28639
  {
28195
28640
  "data-testid": "sch-addon-active",
@@ -28199,7 +28644,7 @@ var AddOn2 = ({
28199
28644
  $backgroundColor: settings.theme.primary,
28200
28645
  $borderRadius: "9999px",
28201
28646
  $padding: "0.125rem 0.85rem",
28202
- children: /* @__PURE__ */ jsx64(
28647
+ children: /* @__PURE__ */ jsx65(
28203
28648
  Text,
28204
28649
  {
28205
28650
  $size: 0.75 * settings.theme.typography.text.fontSize,
@@ -28221,7 +28666,7 @@ var AddOn2 = ({
28221
28666
  $flexGrow: 1,
28222
28667
  $padding: `${0.75 * cardPadding}rem ${cardPadding}rem 0`,
28223
28668
  children: [
28224
- layout.addOns.showEntitlements && displayableEntitlements.length > 0 && /* @__PURE__ */ jsx64(
28669
+ layout.addOns.showEntitlements && displayableEntitlements.length > 0 && /* @__PURE__ */ jsx65(
28225
28670
  Flex,
28226
28671
  {
28227
28672
  as: "ul",
@@ -28243,7 +28688,7 @@ var AddOn2 = ({
28243
28688
  $gap: "1rem",
28244
28689
  children: [
28245
28690
  /* @__PURE__ */ jsxs48(Flex, { $gap: "1rem", children: [
28246
- layout.addOns.showFeatureIcons && entitlement.feature?.icon && /* @__PURE__ */ jsx64(
28691
+ layout.addOns.showFeatureIcons && entitlement.feature?.icon && /* @__PURE__ */ jsx65(
28247
28692
  Icon3,
28248
28693
  {
28249
28694
  name: entitlement.feature.icon,
@@ -28252,16 +28697,16 @@ var AddOn2 = ({
28252
28697
  rounded: true
28253
28698
  }
28254
28699
  ),
28255
- entitlement.feature && /* @__PURE__ */ jsx64(
28700
+ entitlement.feature && /* @__PURE__ */ jsx65(
28256
28701
  Flex,
28257
28702
  {
28258
28703
  $flexDirection: "column",
28259
28704
  $justifyContent: "center",
28260
- children: /* @__PURE__ */ jsx64(Text, { children: getFeatureName(entitlement.feature, locale) })
28705
+ children: /* @__PURE__ */ jsx65(Text, { children: getFeatureName(entitlement.feature, locale) })
28261
28706
  }
28262
28707
  )
28263
28708
  ] }),
28264
- /* @__PURE__ */ jsx64(
28709
+ /* @__PURE__ */ jsx65(
28265
28710
  Text,
28266
28711
  {
28267
28712
  style: { opacity: 0.54 },
@@ -28287,7 +28732,7 @@ var AddOn2 = ({
28287
28732
  $listStyle: "none",
28288
28733
  children: [
28289
28734
  /* @__PURE__ */ jsxs48(Flex, { $gap: "1rem", children: [
28290
- meteredEntitlement.feature?.icon && /* @__PURE__ */ jsx64(
28735
+ meteredEntitlement.feature?.icon && /* @__PURE__ */ jsx65(
28291
28736
  Icon3,
28292
28737
  {
28293
28738
  "data-testid": "sch-feature-icon",
@@ -28297,9 +28742,9 @@ var AddOn2 = ({
28297
28742
  rounded: true
28298
28743
  }
28299
28744
  ),
28300
- /* @__PURE__ */ jsx64(Flex, { $flexDirection: "column", $justifyContent: "center", children: /* @__PURE__ */ jsx64(Text, { children: typeof meteredEntitlement.limit === "number" ? `${meteredEntitlement.limit} ${getEntitlementFeatureName(meteredEntitlement, "units")}` : getEntitlementFeatureName(meteredEntitlement) }) })
28745
+ /* @__PURE__ */ jsx65(Flex, { $flexDirection: "column", $justifyContent: "center", children: /* @__PURE__ */ jsx65(Text, { children: typeof meteredEntitlement.limit === "number" ? `${meteredEntitlement.limit} ${getEntitlementFeatureName(meteredEntitlement, "units")}` : getEntitlementFeatureName(meteredEntitlement) }) })
28301
28746
  ] }),
28302
- /* @__PURE__ */ jsx64(
28747
+ /* @__PURE__ */ jsx65(
28303
28748
  Text,
28304
28749
  {
28305
28750
  style: { opacity: 0.54 },
@@ -28318,7 +28763,7 @@ var AddOn2 = ({
28318
28763
  })
28319
28764
  }
28320
28765
  ),
28321
- sharedProps.showCallToAction && (layout.upgrade.isVisible || layout.downgrade.isVisible) && /* @__PURE__ */ jsx64(Flex, { $flexDirection: "column", $gap: "0.5rem", children: /* @__PURE__ */ jsx64(
28766
+ sharedProps.showCallToAction && (layout.upgrade.isVisible || layout.downgrade.isVisible) && /* @__PURE__ */ jsx65(Flex, { $flexDirection: "column", $gap: "0.5rem", children: /* @__PURE__ */ jsx65(
28322
28767
  Button,
28323
28768
  {
28324
28769
  type: "button",
@@ -28360,7 +28805,7 @@ var AddOn2 = ({
28360
28805
  import { useState as useState20 } from "react";
28361
28806
 
28362
28807
  // src/components/elements/pricing-table/Entitlement.tsx
28363
- import { Fragment as Fragment27, jsx as jsx65, jsxs as jsxs49 } from "react/jsx-runtime";
28808
+ import { Fragment as Fragment27, jsx as jsx66, jsxs as jsxs49 } from "react/jsx-runtime";
28364
28809
  var Entitlement2 = ({
28365
28810
  entitlement,
28366
28811
  sharedProps,
@@ -28395,7 +28840,7 @@ var Entitlement2 = ({
28395
28840
  credits
28396
28841
  );
28397
28842
  return /* @__PURE__ */ jsxs49(Flex, { as: "li", $gap: "1rem", style: { listStyle: "none" }, children: [
28398
- layout.plans.showFeatureIcons && entitlement.feature?.icon && /* @__PURE__ */ jsx65(
28843
+ layout.plans.showFeatureIcons && entitlement.feature?.icon && /* @__PURE__ */ jsx66(
28399
28844
  Icon3,
28400
28845
  {
28401
28846
  "data-testid": "sch-feature-icon",
@@ -28407,7 +28852,7 @@ var Entitlement2 = ({
28407
28852
  ),
28408
28853
  entitlement.feature?.name && /* @__PURE__ */ jsxs49(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
28409
28854
  /* @__PURE__ */ jsxs49(Flex, { $flexDirection: "column", $justifyContent: "center", $flexGrow: 1, children: [
28410
- /* @__PURE__ */ jsx65(Text, { children: typeof entitlementPrice === "number" && !tiered && (entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance || entitlement.priceBehavior === EntitlementPriceBehavior.PayAsYouGo) ? /* @__PURE__ */ jsxs49(Fragment27, { children: [
28855
+ /* @__PURE__ */ jsx66(Text, { children: typeof entitlementPrice === "number" && !tiered && (entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance || entitlement.priceBehavior === EntitlementPriceBehavior.PayAsYouGo) ? /* @__PURE__ */ jsxs49(Fragment27, { children: [
28411
28856
  formatCurrency(entitlementPrice, {
28412
28857
  locale,
28413
28858
  currency: entitlementCurrency
@@ -28430,7 +28875,7 @@ var Entitlement2 = ({
28430
28875
  " ",
28431
28876
  selectedPeriod
28432
28877
  ] })
28433
- ] }) : entitlement.priceBehavior === EntitlementPriceBehavior.Tier || tiered ? /* @__PURE__ */ jsx65(
28878
+ ] }) : entitlement.priceBehavior === EntitlementPriceBehavior.Tier || tiered ? /* @__PURE__ */ jsx66(
28434
28879
  TieredPricingDetails,
28435
28880
  {
28436
28881
  entitlement,
@@ -28448,7 +28893,7 @@ var Entitlement2 = ({
28448
28893
  t3("per"),
28449
28894
  " ",
28450
28895
  getFeatureName(entitlement.feature, locale, 1)
28451
- ] }) : entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && creditBasedEntitlementLimit ? /* @__PURE__ */ jsx65(Fragment27, { children: creditBasedEntitlementLimit?.period ? t3("Up to X units per period", {
28896
+ ] }) : entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && creditBasedEntitlementLimit ? /* @__PURE__ */ jsx66(Fragment27, { children: creditBasedEntitlementLimit?.period ? t3("Up to X units per period", {
28452
28897
  amount: formatNumber(
28453
28898
  creditBasedEntitlementLimit.limit,
28454
28899
  { locale }
@@ -28489,7 +28934,7 @@ var Entitlement2 = ({
28489
28934
  ] })
28490
28935
  ] }) : entitlement.feature.name }),
28491
28936
  /* @__PURE__ */ jsxs49(Text, { children: [
28492
- entitlement.priceBehavior === EntitlementPriceBehavior.Overage && typeof entitlementPrice === "number" ? /* @__PURE__ */ jsx65(Fragment27, { children: /* @__PURE__ */ jsxs49(
28937
+ entitlement.priceBehavior === EntitlementPriceBehavior.Overage && typeof entitlementPrice === "number" ? /* @__PURE__ */ jsx66(Fragment27, { children: /* @__PURE__ */ jsxs49(
28493
28938
  Text,
28494
28939
  {
28495
28940
  $size: 0.875 * settings.theme.typography.text.fontSize,
@@ -28518,7 +28963,7 @@ var Entitlement2 = ({
28518
28963
  ]
28519
28964
  }
28520
28965
  ) }) : (entitlement.priceBehavior === EntitlementPriceBehavior.Tier || tiered) && /* @__PURE__ */ jsxs49(Fragment27, { children: [
28521
- /* @__PURE__ */ jsx65(
28966
+ /* @__PURE__ */ jsx66(
28522
28967
  Text,
28523
28968
  {
28524
28969
  style: { opacity: 0.54 },
@@ -28527,7 +28972,7 @@ var Entitlement2 = ({
28527
28972
  children: t3("Tier-based")
28528
28973
  }
28529
28974
  ),
28530
- /* @__PURE__ */ jsx65(
28975
+ /* @__PURE__ */ jsx66(
28531
28976
  PricingTiersTooltip,
28532
28977
  {
28533
28978
  feature: entitlement.feature,
@@ -28538,14 +28983,14 @@ var Entitlement2 = ({
28538
28983
  }
28539
28984
  )
28540
28985
  ] }),
28541
- entitlementHasHardLimit(entitlement) && entitlement.valueType === EntitlementValueType.Numeric && /* @__PURE__ */ jsx65(
28986
+ entitlementHasHardLimit(entitlement) && entitlement.valueType === EntitlementValueType.Numeric && /* @__PURE__ */ jsx66(
28542
28987
  HardLimitTooltip,
28543
28988
  {
28544
28989
  feature: entitlement.feature,
28545
28990
  limit: entitlement.valueNumeric
28546
28991
  }
28547
28992
  ),
28548
- entitlement.billingThreshold && /* @__PURE__ */ jsx65(
28993
+ entitlement.billingThreshold && /* @__PURE__ */ jsx66(
28549
28994
  BillingThresholdTooltip,
28550
28995
  {
28551
28996
  billingThreshold: entitlement.billingThreshold
@@ -28553,7 +28998,7 @@ var Entitlement2 = ({
28553
28998
  )
28554
28999
  ] })
28555
29000
  ] }),
28556
- layout.plans.showFeatureDescriptions && entitlement.feature?.description && /* @__PURE__ */ jsx65(
29001
+ layout.plans.showFeatureDescriptions && entitlement.feature?.description && /* @__PURE__ */ jsx66(
28557
29002
  Text,
28558
29003
  {
28559
29004
  $size: 0.875 * settings.theme.typography.text.fontSize,
@@ -28566,7 +29011,7 @@ var Entitlement2 = ({
28566
29011
  };
28567
29012
 
28568
29013
  // src/components/elements/pricing-table/Plan.tsx
28569
- import { jsx as jsx66, jsxs as jsxs50 } from "react/jsx-runtime";
29014
+ import { jsx as jsx67, jsxs as jsxs50 } from "react/jsx-runtime";
28570
29015
  var Plan2 = ({
28571
29016
  plan,
28572
29017
  index,
@@ -28605,7 +29050,8 @@ var Plan2 = ({
28605
29050
  const hasUsageBasedEntitlements = (plan.entitlements ?? []).some(
28606
29051
  (entitlement) => !!entitlement.priceBehavior
28607
29052
  );
28608
- const isFreePlan = planPrice === 0;
29053
+ const headlinePrice = getPlanEstimatedPrice(plan, selectedPeriod, planPrice, planCurrency) ?? planPrice;
29054
+ const isFreePlan = headlinePrice === 0;
28609
29055
  const isUsageBasedPlan = isFreePlan && hasUsageBasedEntitlements;
28610
29056
  const headerPriceFontStyle = settings.theme.typography[layout.plans.name.fontStyle];
28611
29057
  const isExpanded = entitlementVisibility[plan.id] ?? false;
@@ -28640,7 +29086,7 @@ var Plan2 = ({
28640
29086
  $borderStyle: "solid",
28641
29087
  $borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.175)" : "hsla(0, 0%, 100%, 0.175)",
28642
29088
  children: [
28643
- /* @__PURE__ */ jsx66(Box, { children: /* @__PURE__ */ jsx66(
29089
+ /* @__PURE__ */ jsx67(Box, { children: /* @__PURE__ */ jsx67(
28644
29090
  Text,
28645
29091
  {
28646
29092
  as: "h3",
@@ -28649,8 +29095,8 @@ var Plan2 = ({
28649
29095
  children: plan.name
28650
29096
  }
28651
29097
  ) }),
28652
- layout.plans.description.isVisible && /* @__PURE__ */ jsx66(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx66(Text, { display: layout.plans.description.fontStyle, children: plan.description }) }),
28653
- /* @__PURE__ */ jsx66(Box, { children: /* @__PURE__ */ jsxs50(
29098
+ layout.plans.description.isVisible && /* @__PURE__ */ jsx67(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx67(Text, { display: layout.plans.description.fontStyle, children: plan.description }) }),
29099
+ /* @__PURE__ */ jsx67(Box, { children: /* @__PURE__ */ jsxs50(
28654
29100
  Text,
28655
29101
  {
28656
29102
  "data-testid": "sch-plan-price",
@@ -28659,15 +29105,15 @@ var Plan2 = ({
28659
29105
  $weight: headerPriceFontStyle.fontWeight,
28660
29106
  $color: headerPriceFontStyle.color,
28661
29107
  children: [
28662
- 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, {
29108
+ 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, {
28663
29109
  locale,
28664
29110
  currency: planCurrency,
28665
29111
  testSignificantDigits: false
28666
- }) : showAsMonthlyPrices && selectedPeriod === "quarter" ? formatCurrency((planPrice ?? 0) / 3, {
29112
+ }) : showAsMonthlyPrices && selectedPeriod === "quarter" ? formatCurrency((headlinePrice ?? 0) / 3, {
28667
29113
  locale,
28668
29114
  currency: planCurrency,
28669
29115
  testSignificantDigits: false
28670
- }) : formatCurrency(planPrice ?? 0, {
29116
+ }) : formatCurrency(headlinePrice ?? 0, {
28671
29117
  locale,
28672
29118
  currency: planCurrency
28673
29119
  }),
@@ -28678,7 +29124,16 @@ var Plan2 = ({
28678
29124
  ]
28679
29125
  }
28680
29126
  ) }),
28681
- showCredits && credits.length > 0 && /* @__PURE__ */ jsx66(
29127
+ /* @__PURE__ */ jsx67(
29128
+ PlanEstimatedTotal,
29129
+ {
29130
+ plan,
29131
+ period: selectedPeriod,
29132
+ planPrice,
29133
+ currency: planCurrency
29134
+ }
29135
+ ),
29136
+ showCredits && credits.length > 0 && /* @__PURE__ */ jsx67(
28682
29137
  Flex,
28683
29138
  {
28684
29139
  as: "ul",
@@ -28691,7 +29146,7 @@ var Plan2 = ({
28691
29146
  $listStyle: "none",
28692
29147
  children: credits.map((credit, idx) => {
28693
29148
  return /* @__PURE__ */ jsxs50(Flex, { as: "li", $gap: "1rem", $listStyle: "none", children: [
28694
- layout.plans.showFeatureIcons && credit.icon && /* @__PURE__ */ jsx66(
29149
+ layout.plans.showFeatureIcons && credit.icon && /* @__PURE__ */ jsx67(
28695
29150
  Icon3,
28696
29151
  {
28697
29152
  "data-testid": "sch-feature-icon",
@@ -28701,13 +29156,13 @@ var Plan2 = ({
28701
29156
  rounded: true
28702
29157
  }
28703
29158
  ),
28704
- credit.name && /* @__PURE__ */ jsx66(
29159
+ credit.name && /* @__PURE__ */ jsx67(
28705
29160
  Flex,
28706
29161
  {
28707
29162
  $flexDirection: "column",
28708
29163
  $justifyContent: "center",
28709
29164
  $gap: "0.5rem",
28710
- children: /* @__PURE__ */ jsx66(
29165
+ children: /* @__PURE__ */ jsx67(
28711
29166
  PlanCreditText,
28712
29167
  {
28713
29168
  credit,
@@ -28720,7 +29175,7 @@ var Plan2 = ({
28720
29175
  })
28721
29176
  }
28722
29177
  ),
28723
- isActivePlan && /* @__PURE__ */ jsx66(
29178
+ isActivePlan && /* @__PURE__ */ jsx67(
28724
29179
  Flex,
28725
29180
  {
28726
29181
  "data-testid": "sch-plan-active",
@@ -28730,7 +29185,7 @@ var Plan2 = ({
28730
29185
  $backgroundColor: settings.theme.primary,
28731
29186
  $borderRadius: "9999px",
28732
29187
  $padding: "0.125rem 0.85rem",
28733
- children: /* @__PURE__ */ jsx66(
29188
+ children: /* @__PURE__ */ jsx67(
28734
29189
  Text,
28735
29190
  {
28736
29191
  $size: 0.75 * settings.theme.typography.text.fontSize,
@@ -28763,14 +29218,14 @@ var Plan2 = ({
28763
29218
  $margin: 0,
28764
29219
  $listStyle: "none",
28765
29220
  children: [
28766
- layout.plans.showInclusionText && index > 0 && /* @__PURE__ */ jsx66(Box, { $marginBottom: "1.5rem", children: /* @__PURE__ */ jsx66(Text, { children: t3("Everything in", {
29221
+ layout.plans.showInclusionText && index > 0 && /* @__PURE__ */ jsx67(Box, { $marginBottom: "1.5rem", children: /* @__PURE__ */ jsx67(Text, { children: t3("Everything in", {
28767
29222
  plan: plans[index - 1].name
28768
29223
  }) }) }),
28769
29224
  (plan.entitlements ?? []).reduce(
28770
29225
  (acc, entitlement, idx) => {
28771
29226
  if (isExpanded || idx < VISIBLE_ENTITLEMENT_COUNT) {
28772
29227
  acc.push(
28773
- /* @__PURE__ */ jsx66(
29228
+ /* @__PURE__ */ jsx67(
28774
29229
  Entitlement2,
28775
29230
  {
28776
29231
  entitlement,
@@ -28788,7 +29243,7 @@ var Plan2 = ({
28788
29243
  },
28789
29244
  []
28790
29245
  ),
28791
- (plan.entitlements ?? []).length > VISIBLE_ENTITLEMENT_COUNT && /* @__PURE__ */ jsx66(
29246
+ (plan.entitlements ?? []).length > VISIBLE_ENTITLEMENT_COUNT && /* @__PURE__ */ jsx67(
28792
29247
  ExpandListToggle,
28793
29248
  {
28794
29249
  as: "li",
@@ -28811,7 +29266,7 @@ var Plan2 = ({
28811
29266
  $gap: "0.25rem",
28812
29267
  $padding: "0.625rem 0",
28813
29268
  children: [
28814
- /* @__PURE__ */ jsx66(
29269
+ /* @__PURE__ */ jsx67(
28815
29270
  Icon3,
28816
29271
  {
28817
29272
  name: "check-rounded",
@@ -28819,11 +29274,11 @@ var Plan2 = ({
28819
29274
  color: settings.theme.primary
28820
29275
  }
28821
29276
  ),
28822
- /* @__PURE__ */ jsx66(Text, { $size: 15, $leading: "none", children: t3("Current plan") })
29277
+ /* @__PURE__ */ jsx67(Text, { $size: 15, $leading: "none", children: t3("Current plan") })
28823
29278
  ]
28824
29279
  }
28825
29280
  ) : sharedProps.showCallToAction && (layout.upgrade.isVisible || layout.downgrade.isVisible) && /* @__PURE__ */ jsxs50(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
28826
- /* @__PURE__ */ jsx66(
29281
+ /* @__PURE__ */ jsx67(
28827
29282
  Button,
28828
29283
  {
28829
29284
  type: "button",
@@ -28861,10 +29316,10 @@ var Plan2 = ({
28861
29316
  }
28862
29317
  },
28863
29318
  $fullWidth: true,
28864
- 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")
29319
+ 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")
28865
29320
  }
28866
29321
  ),
28867
- !plan.valid && /* @__PURE__ */ jsx66(UsageViolationText, { violations: plan.usageViolations })
29322
+ !plan.valid && /* @__PURE__ */ jsx67(UsageViolationText, { violations: plan.usageViolations })
28868
29323
  ] })
28869
29324
  ]
28870
29325
  }
@@ -28875,7 +29330,7 @@ var Plan2 = ({
28875
29330
  };
28876
29331
 
28877
29332
  // src/components/elements/pricing-table/PricingTable.tsx
28878
- import { Fragment as Fragment29, jsx as jsx67, jsxs as jsxs51 } from "react/jsx-runtime";
29333
+ import { Fragment as Fragment29, jsx as jsx68, jsxs as jsxs51 } from "react/jsx-runtime";
28879
29334
  var resolveDesignProps8 = (props) => {
28880
29335
  return {
28881
29336
  showPeriodToggle: props.showPeriodToggle ?? true,
@@ -28980,7 +29435,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28980
29435
  }
28981
29436
  }, [data?.component, hydratePublic]);
28982
29437
  if (isPending) {
28983
- return /* @__PURE__ */ jsx67(
29438
+ return /* @__PURE__ */ jsx68(
28984
29439
  Flex,
28985
29440
  {
28986
29441
  $width: "100%",
@@ -28988,12 +29443,12 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28988
29443
  $alignItems: "center",
28989
29444
  $justifyContent: "center",
28990
29445
  $padding: `${settings.theme.card.padding / TEXT_BASE_SIZE}rem`,
28991
- children: /* @__PURE__ */ jsx67(Loader, { "aria-label": t3("Loading"), $size: "2xl" })
29446
+ children: /* @__PURE__ */ jsx68(Loader, { "aria-label": t3("Loading"), $size: "2xl" })
28992
29447
  }
28993
29448
  );
28994
29449
  }
28995
29450
  if (hasNoUsableCurrency) {
28996
- return /* @__PURE__ */ jsx67(Container, { children: /* @__PURE__ */ jsx67(Flex, { $justifyContent: "center", $padding: "2rem 0", children: /* @__PURE__ */ jsx67(InvalidCurrencyNotice, { invalidEntries: invalidFilterEntries }) }) });
29451
+ return /* @__PURE__ */ jsx68(Container, { children: /* @__PURE__ */ jsx68(Flex, { $justifyContent: "center", $padding: "2rem 0", children: /* @__PURE__ */ jsx68(InvalidCurrencyNotice, { invalidEntries: invalidFilterEntries }) }) });
28997
29452
  }
28998
29453
  const currentPlan = plans.find((plan) => plan.id === data?.company?.plan?.id);
28999
29454
  const showCallToAction = typeof data?.component !== "undefined" || typeof rest.callToActionUrl === "string" || typeof rest.onCallToAction === "function";
@@ -29002,7 +29457,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
29002
29457
  rest.callToActionTarget
29003
29458
  );
29004
29459
  const Wrapper = typeof data?.component === "undefined" ? Container : Fragment28;
29005
- return /* @__PURE__ */ jsx67(Wrapper, { children: /* @__PURE__ */ jsxs51(
29460
+ return /* @__PURE__ */ jsx68(Wrapper, { children: /* @__PURE__ */ jsxs51(
29006
29461
  FussyChild,
29007
29462
  {
29008
29463
  ref,
@@ -29028,7 +29483,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
29028
29483
  }
29029
29484
  },
29030
29485
  children: [
29031
- /* @__PURE__ */ jsx67(
29486
+ /* @__PURE__ */ jsx68(
29032
29487
  Text,
29033
29488
  {
29034
29489
  as: "h2",
@@ -29038,7 +29493,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
29038
29493
  }
29039
29494
  ),
29040
29495
  /* @__PURE__ */ jsxs51(Flex, { $alignItems: "center", $gap: "0.75rem", children: [
29041
- showCurrencySelector && /* @__PURE__ */ jsx67(
29496
+ showCurrencySelector && /* @__PURE__ */ jsx68(
29042
29497
  CurrencyToggle,
29043
29498
  {
29044
29499
  currencies,
@@ -29046,7 +29501,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
29046
29501
  onSelect: setSelectedCurrency
29047
29502
  }
29048
29503
  ),
29049
- showPeriodToggle && periods.length > 1 && /* @__PURE__ */ jsx67(
29504
+ showPeriodToggle && periods.length > 1 && /* @__PURE__ */ jsx68(
29050
29505
  PeriodToggle,
29051
29506
  {
29052
29507
  options: periods,
@@ -29063,7 +29518,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
29063
29518
  ]
29064
29519
  }
29065
29520
  ),
29066
- props.plans.isVisible && plans.length > 0 && /* @__PURE__ */ jsx67(
29521
+ props.plans.isVisible && plans.length > 0 && /* @__PURE__ */ jsx68(
29067
29522
  Box,
29068
29523
  {
29069
29524
  as: "ul",
@@ -29076,7 +29531,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
29076
29531
  $listStyle: "none",
29077
29532
  children: plans.map((plan, index, self2) => {
29078
29533
  const planPeriod = showPeriodToggle ? selectedPeriod : plan.monthlyPrice ? BillingProductPriceInterval.Month : plan.quarterlyPrice ? "quarter" : plan.yearlyPrice ? BillingProductPriceInterval.Year : BillingProductPriceInterval.Month;
29079
- return /* @__PURE__ */ jsx67(
29534
+ return /* @__PURE__ */ jsx68(
29080
29535
  Plan2,
29081
29536
  {
29082
29537
  plan,
@@ -29098,14 +29553,14 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
29098
29553
  }
29099
29554
  )
29100
29555
  ] }),
29101
- /* @__PURE__ */ jsx67(Box, { children: props.addOns.isVisible && addOns.length > 0 && /* @__PURE__ */ jsxs51(Fragment29, { children: [
29102
- props.header.isVisible && /* @__PURE__ */ jsx67(
29556
+ /* @__PURE__ */ jsx68(Box, { children: props.addOns.isVisible && addOns.length > 0 && /* @__PURE__ */ jsxs51(Fragment29, { children: [
29557
+ props.header.isVisible && /* @__PURE__ */ jsx68(
29103
29558
  Flex,
29104
29559
  {
29105
29560
  $justifyContent: "space-between",
29106
29561
  $alignItems: "center",
29107
29562
  $marginBottom: "1rem",
29108
- children: /* @__PURE__ */ jsx67(
29563
+ children: /* @__PURE__ */ jsx68(
29109
29564
  Text,
29110
29565
  {
29111
29566
  as: "h2",
@@ -29116,7 +29571,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
29116
29571
  )
29117
29572
  }
29118
29573
  ),
29119
- /* @__PURE__ */ jsx67(
29574
+ /* @__PURE__ */ jsx68(
29120
29575
  Box,
29121
29576
  {
29122
29577
  as: "ul",
@@ -29128,7 +29583,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
29128
29583
  $listStyle: "none",
29129
29584
  children: addOns.map((addOn, index) => {
29130
29585
  const addOnPeriod = showPeriodToggle ? selectedPeriod : addOn.monthlyPrice ? BillingProductPriceInterval.Month : addOn.quarterlyPrice ? "quarter" : addOn.yearlyPrice ? BillingProductPriceInterval.Year : BillingProductPriceInterval.Month;
29131
- return /* @__PURE__ */ jsx67(
29586
+ return /* @__PURE__ */ jsx68(
29132
29587
  AddOn2,
29133
29588
  {
29134
29589
  addOn,
@@ -29156,7 +29611,7 @@ PricingTable.displayName = "PricingTable";
29156
29611
 
29157
29612
  // src/components/elements/text/Text.tsx
29158
29613
  import { forwardRef as forwardRef16 } from "react";
29159
- import { jsx as jsx68 } from "react/jsx-runtime";
29614
+ import { jsx as jsx69 } from "react/jsx-runtime";
29160
29615
  var resolveDesignProps9 = (props) => {
29161
29616
  return {
29162
29617
  text: {
@@ -29168,7 +29623,7 @@ var resolveDesignProps9 = (props) => {
29168
29623
  };
29169
29624
  var TextElement = forwardRef16(({ children, className, ...rest }, ref) => {
29170
29625
  const props = resolveDesignProps9(rest);
29171
- return /* @__PURE__ */ jsx68(Element, { as: Flex, ref, className, children: /* @__PURE__ */ jsx68(
29626
+ return /* @__PURE__ */ jsx69(Element, { as: Flex, ref, className, children: /* @__PURE__ */ jsx69(
29172
29627
  Text,
29173
29628
  {
29174
29629
  display: props.text.fontStyle,
@@ -29182,7 +29637,7 @@ TextElement.displayName = "Text";
29182
29637
 
29183
29638
  // src/components/elements/unsubscribe-button/UnsubscribeButton.tsx
29184
29639
  import { forwardRef as forwardRef17, useMemo as useMemo37 } from "react";
29185
- import { jsx as jsx69 } from "react/jsx-runtime";
29640
+ import { jsx as jsx70 } from "react/jsx-runtime";
29186
29641
  var buttonStyles = {
29187
29642
  primary: {
29188
29643
  color: "primary",
@@ -29218,7 +29673,7 @@ var UnsubscribeButton = forwardRef17(({ children, className, ...rest }, ref) =>
29218
29673
  if (!hasActiveSubscription) {
29219
29674
  return null;
29220
29675
  }
29221
- return /* @__PURE__ */ jsx69(
29676
+ return /* @__PURE__ */ jsx70(
29222
29677
  Element,
29223
29678
  {
29224
29679
  as: Flex,
@@ -29226,7 +29681,7 @@ var UnsubscribeButton = forwardRef17(({ children, className, ...rest }, ref) =>
29226
29681
  className,
29227
29682
  $flexDirection: "column",
29228
29683
  $gap: "2rem",
29229
- children: /* @__PURE__ */ jsx69(
29684
+ children: /* @__PURE__ */ jsx70(
29230
29685
  Button,
29231
29686
  {
29232
29687
  type: "button",
@@ -29248,7 +29703,7 @@ UnsubscribeButton.displayName = "UnsubscribeButton";
29248
29703
 
29249
29704
  // src/components/elements/upcoming-bill/UpcomingBill.tsx
29250
29705
  import { forwardRef as forwardRef18, useCallback as useCallback17, useEffect as useEffect9, useMemo as useMemo38, useState as useState22 } from "react";
29251
- import { jsx as jsx70, jsxs as jsxs52 } from "react/jsx-runtime";
29706
+ import { jsx as jsx71, jsxs as jsxs52 } from "react/jsx-runtime";
29252
29707
  function resolveDesignProps11(props) {
29253
29708
  return {
29254
29709
  header: {
@@ -29338,7 +29793,7 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
29338
29793
  return null;
29339
29794
  }
29340
29795
  return /* @__PURE__ */ jsxs52(Element, { ref, className, children: [
29341
- /* @__PURE__ */ jsx70(Flex, { as: TransitionBox, $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ jsx70(Loader, { $color: settings.theme.primary, $isLoading: isLoading }) }),
29796
+ /* @__PURE__ */ jsx71(Flex, { as: TransitionBox, $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ jsx71(Loader, { $color: settings.theme.primary, $isLoading: isLoading }) }),
29342
29797
  error ? /* @__PURE__ */ jsxs52(
29343
29798
  Flex,
29344
29799
  {
@@ -29348,8 +29803,8 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
29348
29803
  $alignItems: "center",
29349
29804
  $gap: "1rem",
29350
29805
  children: [
29351
- /* @__PURE__ */ jsx70(Text, { $weight: 500, $color: "#DB6669", children: t3("There was a problem retrieving your upcoming invoice.") }),
29352
- /* @__PURE__ */ jsx70(
29806
+ /* @__PURE__ */ jsx71(Text, { $weight: 500, $color: "#DB6669", children: t3("There was a problem retrieving your upcoming invoice.") }),
29807
+ /* @__PURE__ */ jsx71(
29353
29808
  Button,
29354
29809
  {
29355
29810
  type: "button",
@@ -29362,14 +29817,14 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
29362
29817
  )
29363
29818
  ]
29364
29819
  }
29365
- ) : !isLoading && /* @__PURE__ */ jsx70(TransitionBox, { children: upcomingInvoice ? /* @__PURE__ */ jsxs52(Flex, { $flexDirection: "column", $gap: "1rem", children: [
29820
+ ) : !isLoading && /* @__PURE__ */ jsx71(TransitionBox, { children: upcomingInvoice ? /* @__PURE__ */ jsxs52(Flex, { $flexDirection: "column", $gap: "1rem", children: [
29366
29821
  props.header.isVisible && upcomingInvoice.dueDate && billDate && /* @__PURE__ */ jsxs52(Flex, { $flexDirection: "column", $gap: "0.25rem", children: [
29367
29822
  /* @__PURE__ */ jsxs52(Text, { display: props.header.fontStyle, children: [
29368
29823
  t3(props.header.prefix),
29369
29824
  " ",
29370
29825
  toPrettyDate(billDate, { locale })
29371
29826
  ] }),
29372
- paymentDueDate && /* @__PURE__ */ jsx70(
29827
+ paymentDueDate && /* @__PURE__ */ jsx71(
29373
29828
  Text,
29374
29829
  {
29375
29830
  $size: 0.8125 * settings.theme.typography.text.fontSize,
@@ -29386,11 +29841,11 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
29386
29841
  $alignItems: "start",
29387
29842
  $gap: "1rem",
29388
29843
  children: [
29389
- props.price.isVisible && /* @__PURE__ */ jsx70(Text, { display: props.price.fontStyle, $leading: "none", children: formatCurrency(upcomingInvoice.amountDue, {
29844
+ props.price.isVisible && /* @__PURE__ */ jsx71(Text, { display: props.price.fontStyle, $leading: "none", children: formatCurrency(upcomingInvoice.amountDue, {
29390
29845
  locale,
29391
29846
  currency: upcomingInvoice.currency
29392
29847
  }) }),
29393
- /* @__PURE__ */ jsx70(Box, { $maxWidth: "10rem", $textAlign: "right", children: /* @__PURE__ */ jsx70(Text, { display: props.contractEndDate.fontStyle, children: t3("Estimated bill") }) })
29848
+ /* @__PURE__ */ jsx71(Box, { $maxWidth: "10rem", $textAlign: "right", children: /* @__PURE__ */ jsx71(Text, { display: props.contractEndDate.fontStyle, children: t3("Estimated bill") }) })
29394
29849
  ]
29395
29850
  }
29396
29851
  ),
@@ -29402,8 +29857,8 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
29402
29857
  $alignItems: "start",
29403
29858
  $gap: "1rem",
29404
29859
  children: [
29405
- /* @__PURE__ */ jsx70(Text, { $weight: 600, children: t3("Applied balance towards next invoice") }),
29406
- /* @__PURE__ */ jsx70(Text, { children: formatCurrency(-applied, { locale, currency }) })
29860
+ /* @__PURE__ */ jsx71(Text, { $weight: 600, children: t3("Applied balance towards next invoice") }),
29861
+ /* @__PURE__ */ jsx71(Text, { children: formatCurrency(-applied, { locale, currency }) })
29407
29862
  ]
29408
29863
  }
29409
29864
  ),
@@ -29415,8 +29870,8 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
29415
29870
  $alignItems: "start",
29416
29871
  $gap: "1rem",
29417
29872
  children: [
29418
- /* @__PURE__ */ jsx70(Text, { $weight: 600, children: t3("Remaining balance after next invoice") }),
29419
- /* @__PURE__ */ jsx70(Text, { children: formatCurrency(remaining, { locale, currency }) })
29873
+ /* @__PURE__ */ jsx71(Text, { $weight: 600, children: t3("Remaining balance after next invoice") }),
29874
+ /* @__PURE__ */ jsx71(Text, { children: formatCurrency(remaining, { locale, currency }) })
29420
29875
  ]
29421
29876
  }
29422
29877
  ),
@@ -29427,8 +29882,8 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
29427
29882
  $alignItems: "start",
29428
29883
  $gap: "1rem",
29429
29884
  children: [
29430
- /* @__PURE__ */ jsx70(Text, { $weight: 600, children: t3("Discount") }),
29431
- /* @__PURE__ */ jsx70(
29885
+ /* @__PURE__ */ jsx71(Text, { $weight: 600, children: t3("Discount") }),
29886
+ /* @__PURE__ */ jsx71(
29432
29887
  Flex,
29433
29888
  {
29434
29889
  $flexDirection: "column",
@@ -29450,7 +29905,7 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
29450
29905
  $alignItems: "center",
29451
29906
  $gap: "0.5rem",
29452
29907
  children: [
29453
- discount.customerFacingCode && /* @__PURE__ */ jsx70(
29908
+ discount.customerFacingCode && /* @__PURE__ */ jsx71(
29454
29909
  Flex,
29455
29910
  {
29456
29911
  $alignItems: "center",
@@ -29459,7 +29914,7 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
29459
29914
  $borderStyle: "solid",
29460
29915
  $borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.15)" : "hsla(0, 0%, 100%, 0.15)",
29461
29916
  $borderRadius: "0.3125rem",
29462
- children: /* @__PURE__ */ jsx70(
29917
+ children: /* @__PURE__ */ jsx71(
29463
29918
  Text,
29464
29919
  {
29465
29920
  $size: 0.75 * settings.theme.typography.text.fontSize,
@@ -29469,7 +29924,7 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
29469
29924
  )
29470
29925
  }
29471
29926
  ),
29472
- /* @__PURE__ */ jsx70(Box, { children: /* @__PURE__ */ jsx70(Text, { children: discount.duration === "repeating" && discount.durationInMonths ? t3("Discount for months", {
29927
+ /* @__PURE__ */ jsx71(Box, { children: /* @__PURE__ */ jsx71(Text, { children: discount.duration === "repeating" && discount.durationInMonths ? t3("Discount for months", {
29473
29928
  discount: label,
29474
29929
  count: discount.durationInMonths
29475
29930
  }) : label }) })
@@ -29483,7 +29938,7 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
29483
29938
  ]
29484
29939
  }
29485
29940
  )
29486
- ] }) : /* @__PURE__ */ jsx70(Text, { display: "heading2", children: t3("No upcoming invoice") }) })
29941
+ ] }) : /* @__PURE__ */ jsx71(Text, { display: "heading2", children: t3("No upcoming invoice") }) })
29487
29942
  ] });
29488
29943
  });
29489
29944
  UpcomingBill.displayName = "UpcomingBill";
@@ -32199,11 +32654,11 @@ function createRenderer(options) {
32199
32654
  }
32200
32655
 
32201
32656
  // src/components/embed/Embed.tsx
32202
- import { jsx as jsx71, jsxs as jsxs53 } from "react/jsx-runtime";
32657
+ import { jsx as jsx72, jsxs as jsxs53 } from "react/jsx-runtime";
32203
32658
  var renderer = createRenderer();
32204
32659
  var Loading = () => {
32205
32660
  const { settings } = useEmbed();
32206
- return /* @__PURE__ */ jsx71(
32661
+ return /* @__PURE__ */ jsx72(
32207
32662
  Flex,
32208
32663
  {
32209
32664
  $width: "100%",
@@ -32211,7 +32666,7 @@ var Loading = () => {
32211
32666
  $alignItems: "center",
32212
32667
  $justifyContent: "center",
32213
32668
  $padding: `${settings.theme.card.padding / TEXT_BASE_SIZE}rem`,
32214
- children: /* @__PURE__ */ jsx71(Loader, { $color: settings.theme.primary, $size: "2xl" })
32669
+ children: /* @__PURE__ */ jsx72(Loader, { $color: settings.theme.primary, $size: "2xl" })
32215
32670
  }
32216
32671
  );
32217
32672
  };
@@ -32229,8 +32684,8 @@ var Error2 = ({ message }) => {
32229
32684
  $alignItems: "center",
32230
32685
  $justifyContent: "center",
32231
32686
  children: [
32232
- /* @__PURE__ */ jsx71(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx71(Text, { display: "heading1", children: t3("Error") }) }),
32233
- /* @__PURE__ */ jsx71(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx71(Text, { children: message }) })
32687
+ /* @__PURE__ */ jsx72(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx72(Text, { display: "heading1", children: t3("Error") }) }),
32688
+ /* @__PURE__ */ jsx72(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx72(Text, { children: message }) })
32234
32689
  ]
32235
32690
  }
32236
32691
  );
@@ -32305,13 +32760,13 @@ var SchematicEmbed = ({ id, accessToken }) => {
32305
32760
  return stub();
32306
32761
  }
32307
32762
  if (error) {
32308
- return /* @__PURE__ */ jsx71(Error2, { message: error.message });
32763
+ return /* @__PURE__ */ jsx72(Error2, { message: error.message });
32309
32764
  }
32310
32765
  if (accessToken?.length === 0) {
32311
- return /* @__PURE__ */ jsx71(Error2, { message: t3("Please provide an access token.") });
32766
+ return /* @__PURE__ */ jsx72(Error2, { message: t3("Please provide an access token.") });
32312
32767
  }
32313
32768
  if (!accessToken?.startsWith("token_")) {
32314
- return /* @__PURE__ */ jsx71(
32769
+ return /* @__PURE__ */ jsx72(
32315
32770
  Error2,
32316
32771
  {
32317
32772
  message: t3(
@@ -32321,9 +32776,9 @@ var SchematicEmbed = ({ id, accessToken }) => {
32321
32776
  );
32322
32777
  }
32323
32778
  if (isPending) {
32324
- return /* @__PURE__ */ jsx71(Loading, {});
32779
+ return /* @__PURE__ */ jsx72(Loading, {});
32325
32780
  }
32326
- return /* @__PURE__ */ jsx71(Box, { className: "sch-Embed", "data-testid": "sch-embed", children: children ?? /* @__PURE__ */ jsx71(Loading, {}) });
32781
+ return /* @__PURE__ */ jsx72(Box, { className: "sch-Embed", "data-testid": "sch-embed", children: children ?? /* @__PURE__ */ jsx72(Loading, {}) });
32327
32782
  };
32328
32783
  export {
32329
32784
  AddOns,
@@ -32397,6 +32852,7 @@ export {
32397
32852
  progressColorMap,
32398
32853
  resolveSettings,
32399
32854
  schematicTranslationsEn,
32855
+ schematicTranslationsIt,
32400
32856
  stub,
32401
32857
  useAvailableCurrencies,
32402
32858
  useAvailableCurrenciesWithInvalid,