@zonos/elements 1.3.14-alpha.0 → 1.3.15-alpha.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.
Files changed (98) hide show
  1. package/dist/cjs/{cart-5d196917.js → cart-b1c89065.js} +32 -8
  2. package/dist/cjs/{sendErrorLog-3e181984.js → sendErrorLog-f7172707.js} +1 -1
  3. package/dist/cjs/{submitGtag-44e3a996.js → submitGtag-219f4e54.js} +1 -1
  4. package/dist/cjs/zonos-address_4.cjs.entry.js +2 -2
  5. package/dist/cjs/zonos-card_2.cjs.entry.js +1 -1
  6. package/dist/cjs/zonos-cart-items_10.cjs.entry.js +4 -4
  7. package/dist/cjs/zonos-checkout.cjs.entry.js +5 -3
  8. package/dist/cjs/zonos-controller.cjs.entry.js +2 -4
  9. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  10. package/dist/cjs/zonos-country-select_3.cjs.entry.js +1 -1
  11. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +1 -1
  12. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  13. package/dist/cjs/zonos-payment.cjs.entry.js +1 -1
  14. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +3 -1
  15. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.css +3 -0
  16. package/dist/collection/components/store/checkout/cart.js +5 -10
  17. package/dist/collection/components/store/checkout/stripe.js +15 -8
  18. package/dist/collection/components/utils/hello/initHello.js +1 -3
  19. package/dist/collection/types/generated/graphql.customer.types.js +42 -0
  20. package/dist/collection/types/generated/graphql.frontend.types.js +5 -0
  21. package/dist/components/stripe.js +32 -9
  22. package/dist/components/zonos-checkout-finish2.js +1 -1
  23. package/dist/components/zonos-checkout-progress-tabs2.js +1 -1
  24. package/dist/components/zonos-checkout.js +3 -1
  25. package/dist/components/zonos-controller.js +2 -4
  26. package/dist/components/zonos-hello-dialog2.js +1 -1
  27. package/dist/components/zonos-hello.js +1 -1
  28. package/dist/components/zonos-language-select2.js +1 -1
  29. package/dist/components/zonos-link-authentication2.js +1 -1
  30. package/dist/components/zonos-shipping2.js +1 -1
  31. package/dist/esm/{cart-515aac56.js → cart-1b0aaea9.js} +32 -9
  32. package/dist/esm/{sendErrorLog-e4546d7b.js → sendErrorLog-4e7a8e6e.js} +1 -1
  33. package/dist/esm/{submitGtag-6767c31f.js → submitGtag-ce1c25e6.js} +1 -1
  34. package/dist/esm/zonos-address_4.entry.js +2 -2
  35. package/dist/esm/zonos-card_2.entry.js +1 -1
  36. package/dist/esm/zonos-cart-items_10.entry.js +4 -4
  37. package/dist/esm/zonos-checkout.entry.js +5 -3
  38. package/dist/esm/zonos-controller.entry.js +2 -4
  39. package/dist/esm/zonos-country-flag.entry.js +1 -1
  40. package/dist/esm/zonos-country-select_3.entry.js +1 -1
  41. package/dist/esm/zonos-hello-dialog.entry.js +1 -1
  42. package/dist/esm/zonos-hello.entry.js +1 -1
  43. package/dist/esm/zonos-payment.entry.js +1 -1
  44. package/dist/esm-es5/{cart-515aac56.js → cart-1b0aaea9.js} +1 -1
  45. package/dist/esm-es5/{sendErrorLog-e4546d7b.js → sendErrorLog-4e7a8e6e.js} +1 -1
  46. package/dist/esm-es5/{submitGtag-6767c31f.js → submitGtag-ce1c25e6.js} +1 -1
  47. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  48. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  49. package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -1
  50. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  51. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  52. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  53. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
  54. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  55. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  56. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  57. package/dist/scripts/loadZonos.js +1 -1
  58. package/dist/scripts/zonos.js +1 -1
  59. package/dist/scripts/zonosBase.js +1 -1
  60. package/dist/types/components/store/checkout/cart.d.ts +2 -2
  61. package/dist/types/types/generated/graphql.customer.types.d.ts +94 -0
  62. package/dist/types/types/generated/graphql.customer.types.ts +174 -0
  63. package/dist/types/types/generated/graphql.frontend.types.d.ts +10 -0
  64. package/dist/types/types/generated/graphql.frontend.types.ts +20 -0
  65. package/dist/zonos-elements/{p-a583e3c6.system.entry.js → p-30d04ce6.system.entry.js} +1 -1
  66. package/dist/zonos-elements/{p-4fbd0ce6.entry.js → p-3921d516.entry.js} +1 -1
  67. package/dist/zonos-elements/{p-05f749dc.system.entry.js → p-393a8412.system.entry.js} +1 -1
  68. package/dist/zonos-elements/{p-f48a613e.system.entry.js → p-4fbc3ea7.system.entry.js} +1 -1
  69. package/dist/zonos-elements/{p-3e38990b.entry.js → p-5247c5ab.entry.js} +1 -1
  70. package/dist/zonos-elements/{p-816f1aee.js → p-659e81b2.js} +1 -1
  71. package/dist/zonos-elements/{p-bdd775f2.system.js → p-6847b4e8.system.js} +1 -1
  72. package/dist/zonos-elements/{p-ab06e5c8.system.entry.js → p-6a429588.system.entry.js} +1 -1
  73. package/dist/zonos-elements/p-6fd110c3.entry.js +1 -0
  74. package/dist/zonos-elements/p-78983c23.entry.js +1 -0
  75. package/dist/zonos-elements/{p-aa671fa6.entry.js → p-81df5a1b.entry.js} +1 -1
  76. package/dist/zonos-elements/{p-3b4225b2.entry.js → p-85c2b823.entry.js} +1 -1
  77. package/dist/zonos-elements/{p-2d404058.system.js → p-86867593.system.js} +1 -1
  78. package/dist/zonos-elements/{p-93698719.system.entry.js → p-8cfec6b6.system.entry.js} +1 -1
  79. package/dist/zonos-elements/p-94226f90.system.entry.js +1 -0
  80. package/dist/zonos-elements/{p-aa5e2f7c.system.entry.js → p-9ee65a0b.system.entry.js} +1 -1
  81. package/dist/zonos-elements/p-ac1bccb6.system.entry.js +1 -0
  82. package/dist/zonos-elements/{p-1744bddb.entry.js → p-ae707165.entry.js} +1 -1
  83. package/dist/zonos-elements/{p-7aef7d5d.system.entry.js → p-b5b09a07.system.entry.js} +1 -1
  84. package/dist/zonos-elements/p-b8e8330b.system.js +1 -1
  85. package/dist/zonos-elements/{p-d9aa8599.entry.js → p-c93c8ecc.entry.js} +1 -1
  86. package/dist/zonos-elements/{p-9da65d62.entry.js → p-d8c5b848.entry.js} +1 -1
  87. package/dist/zonos-elements/{p-3f713699.entry.js → p-def5023c.entry.js} +1 -1
  88. package/dist/zonos-elements/{p-8ec3995a.system.entry.js → p-e412387c.system.entry.js} +1 -1
  89. package/dist/zonos-elements/p-ef8affe4.js +1 -0
  90. package/dist/zonos-elements/{p-882ec68e.system.js → p-f28970e2.system.js} +1 -1
  91. package/dist/zonos-elements/{p-f0b4e58a.js → p-fe83fc20.js} +1 -1
  92. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  93. package/package.json +1 -1
  94. package/dist/zonos-elements/p-17ded5a1.system.entry.js +0 -1
  95. package/dist/zonos-elements/p-4029034e.system.entry.js +0 -1
  96. package/dist/zonos-elements/p-418c056d.entry.js +0 -1
  97. package/dist/zonos-elements/p-ca6cf075.js +0 -1
  98. package/dist/zonos-elements/p-e9a41fd8.entry.js +0 -1
@@ -285,6 +285,13 @@ export const carrierApiRatingSpecialServiceType = {
285
285
 
286
286
  export type CarrierApiRatingSpecialServiceType =
287
287
  (typeof carrierApiRatingSpecialServiceType)[keyof typeof carrierApiRatingSpecialServiceType];
288
+ export const carrierApiSupportType = {
289
+ Supported: 'SUPPORTED',
290
+ Unsupported: 'UNSUPPORTED',
291
+ } as const;
292
+
293
+ export type CarrierApiSupportType =
294
+ (typeof carrierApiSupportType)[keyof typeof carrierApiSupportType];
288
295
 
289
296
  export const carrierCode = {
290
297
  Apc: 'APC',
@@ -1411,6 +1418,7 @@ export type EmailTemplateStatus =
1411
1418
  export const emailTemplateType = {
1412
1419
  AbandonedCart: 'ABANDONED_CART',
1413
1420
  CatalogExport: 'CATALOG_EXPORT',
1421
+ ManualClassificationExport: 'MANUAL_CLASSIFICATION_EXPORT',
1414
1422
  OrderCanceled: 'ORDER_CANCELED',
1415
1423
  OrderConfirmation: 'ORDER_CONFIRMATION',
1416
1424
  OrderReceipt: 'ORDER_RECEIPT',
@@ -1594,6 +1602,37 @@ export const imageSlot = {
1594
1602
  } as const;
1595
1603
 
1596
1604
  export type ImageSlot = (typeof imageSlot)[keyof typeof imageSlot];
1605
+ export const inclusivePriceCalculateJobStatus = {
1606
+ Completed: 'COMPLETED',
1607
+ Failed: 'FAILED',
1608
+ InProgress: 'IN_PROGRESS',
1609
+ } as const;
1610
+
1611
+ export type InclusivePriceCalculateJobStatus =
1612
+ (typeof inclusivePriceCalculateJobStatus)[keyof typeof inclusivePriceCalculateJobStatus];
1613
+ export const inclusivePriceCalculateJobType = {
1614
+ All: 'ALL',
1615
+ CatalogItem: 'CATALOG_ITEM',
1616
+ Country: 'COUNTRY',
1617
+ } as const;
1618
+
1619
+ export type InclusivePriceCalculateJobType =
1620
+ (typeof inclusivePriceCalculateJobType)[keyof typeof inclusivePriceCalculateJobType];
1621
+ export const inclusivePriceCatalogValidationJobCompletionStatus = {
1622
+ Archived: 'ARCHIVED',
1623
+ Completed: 'COMPLETED',
1624
+ InProgress: 'IN_PROGRESS',
1625
+ } as const;
1626
+
1627
+ export type InclusivePriceCatalogValidationJobCompletionStatus =
1628
+ (typeof inclusivePriceCatalogValidationJobCompletionStatus)[keyof typeof inclusivePriceCatalogValidationJobCompletionStatus];
1629
+ export const inclusivePriceCatalogValidationJobComplianceStatus = {
1630
+ Compliant: 'COMPLIANT',
1631
+ NonCompliant: 'NON_COMPLIANT',
1632
+ } as const;
1633
+
1634
+ export type InclusivePriceCatalogValidationJobComplianceStatus =
1635
+ (typeof inclusivePriceCatalogValidationJobComplianceStatus)[keyof typeof inclusivePriceCatalogValidationJobComplianceStatus];
1597
1636
  export const inclusivePriceHistoryCsvJobStatus = {
1598
1637
  Error: 'ERROR',
1599
1638
  Processed: 'PROCESSED',
@@ -3487,6 +3526,7 @@ export type GetOrderQuery = {
3487
3526
  }>;
3488
3527
  } | null;
3489
3528
  status: OrderStatus;
3529
+ trackingNumbers: Array<string | null> | null;
3490
3530
  } | null;
3491
3531
  };
3492
3532
 
@@ -3513,10 +3553,60 @@ export type GetOrdersQuery = {
3513
3553
  } | null;
3514
3554
  };
3515
3555
 
3556
+ export type GetWebhooksQuery = {
3557
+ webhooks: {
3558
+ edges: Array<{
3559
+ node: {
3560
+ id: string;
3561
+ query: string;
3562
+ status: WebhookStatus;
3563
+ type: WebhookType;
3564
+ url: string;
3565
+ } | null;
3566
+ }>;
3567
+ };
3568
+ };
3569
+
3570
+ export type CreateWebhookMutation = {
3571
+ webhookCreate: {
3572
+ id: string;
3573
+ organizationId: string;
3574
+ type: WebhookType;
3575
+ url: string;
3576
+ } | null;
3577
+ };
3578
+
3579
+ export type UpdateWebhookMutation = {
3580
+ webhookUpdate: {
3581
+ id: string;
3582
+ organizationId: string;
3583
+ type: WebhookType;
3584
+ url: string;
3585
+ } | null;
3586
+ };
3587
+
3588
+ export type DeleteWebhookMutation = { webhookDelete: Result | null };
3589
+
3516
3590
  export type GetCheckoutPlaceOrderButtonSelectorQuery = {
3517
3591
  checkoutSettings: { placeOrderButtonSelector: string | null } | null;
3518
3592
  };
3519
3593
 
3594
+ export type AddTrackingNumberMutation = {
3595
+ orderAddTrackingNumber: {
3596
+ id: string;
3597
+ status: OrderStatus;
3598
+ trackingNumbers: Array<string | null> | null;
3599
+ } | null;
3600
+ };
3601
+
3602
+ export type RemoveTrackingNumberMutation = {
3603
+ orderRemoveTrackingNumber: {
3604
+ id: string;
3605
+ status: OrderStatus;
3606
+ trackingNumbers: Array<string | null> | null;
3607
+ } | null;
3608
+ };
3609
+
3520
3610
  export type SdkFunctionWrapper = <T>(
3521
3611
  action: (requestHeaders?: Record<string, string>) => Promise<T>,
3522
3612
  operationName: string,
@@ -3758,6 +3848,48 @@ export function getSdk(
3758
3848
  'query',
3759
3849
  );
3760
3850
  },
3851
+ addTrackingNumber(
3852
+ variables?: { [x: string]: never },
3853
+ requestHeaders?: GraphQLClientRequestHeaders,
3854
+ ): Promise<AddTrackingNumberMutation> {
3855
+ return withWrapper(
3856
+ wrappedRequestHeaders =>
3857
+ client.request<AddTrackingNumberMutation>('', variables, {
3858
+ ...requestHeaders,
3859
+ ...wrappedRequestHeaders,
3860
+ }),
3861
+ 'addTrackingNumber',
3862
+ 'mutation',
3863
+ );
3864
+ },
3865
+ createWebhook(
3866
+ variables?: { [x: string]: never },
3867
+ requestHeaders?: GraphQLClientRequestHeaders,
3868
+ ): Promise<CreateWebhookMutation> {
3869
+ return withWrapper(
3870
+ wrappedRequestHeaders =>
3871
+ client.request<CreateWebhookMutation>('', variables, {
3872
+ ...requestHeaders,
3873
+ ...wrappedRequestHeaders,
3874
+ }),
3875
+ 'createWebhook',
3876
+ 'mutation',
3877
+ );
3878
+ },
3879
+ deleteWebhook(
3880
+ variables?: { [x: string]: never },
3881
+ requestHeaders?: GraphQLClientRequestHeaders,
3882
+ ): Promise<DeleteWebhookMutation> {
3883
+ return withWrapper(
3884
+ wrappedRequestHeaders =>
3885
+ client.request<DeleteWebhookMutation>('', variables, {
3886
+ ...requestHeaders,
3887
+ ...wrappedRequestHeaders,
3888
+ }),
3889
+ 'deleteWebhook',
3890
+ 'mutation',
3891
+ );
3892
+ },
3761
3893
  getCheckoutPlaceOrderButtonSelector(
3762
3894
  variables?: { [x: string]: never },
3763
3895
  requestHeaders?: GraphQLClientRequestHeaders,
@@ -3773,6 +3905,48 @@ export function getSdk(
3773
3905
  'query',
3774
3906
  );
3775
3907
  },
3908
+ getWebhooks(
3909
+ variables?: { [x: string]: never },
3910
+ requestHeaders?: GraphQLClientRequestHeaders,
3911
+ ): Promise<GetWebhooksQuery> {
3912
+ return withWrapper(
3913
+ wrappedRequestHeaders =>
3914
+ client.request<GetWebhooksQuery>('', variables, {
3915
+ ...requestHeaders,
3916
+ ...wrappedRequestHeaders,
3917
+ }),
3918
+ 'getWebhooks',
3919
+ 'query',
3920
+ );
3921
+ },
3922
+ removeTrackingNumber(
3923
+ variables?: { [x: string]: never },
3924
+ requestHeaders?: GraphQLClientRequestHeaders,
3925
+ ): Promise<RemoveTrackingNumberMutation> {
3926
+ return withWrapper(
3927
+ wrappedRequestHeaders =>
3928
+ client.request<RemoveTrackingNumberMutation>('', variables, {
3929
+ ...requestHeaders,
3930
+ ...wrappedRequestHeaders,
3931
+ }),
3932
+ 'removeTrackingNumber',
3933
+ 'mutation',
3934
+ );
3935
+ },
3936
+ updateWebhook(
3937
+ variables?: { [x: string]: never },
3938
+ requestHeaders?: GraphQLClientRequestHeaders,
3939
+ ): Promise<UpdateWebhookMutation> {
3940
+ return withWrapper(
3941
+ wrappedRequestHeaders =>
3942
+ client.request<UpdateWebhookMutation>('', variables, {
3943
+ ...requestHeaders,
3944
+ ...wrappedRequestHeaders,
3945
+ }),
3946
+ 'updateWebhook',
3947
+ 'mutation',
3948
+ );
3949
+ },
3776
3950
  };
3777
3951
  }
3778
3952
  export type Sdk = ReturnType<typeof getSdk>;
@@ -84,6 +84,7 @@ export declare const featureAspectKeyEnum: {
84
84
  readonly ComConsolidation: "com_consolidation";
85
85
  readonly DashboardCheckout_2Settings: "dashboard_checkout_2_settings";
86
86
  readonly DashboardHello_2Settings: "dashboard_hello_2_settings";
87
+ readonly DashboardNewLabelUi: "dashboard_new_label_ui";
87
88
  readonly DashboardOrderApprove: "dashboard_order_approve";
88
89
  readonly DashboardOrderApproveNoCapture: "dashboard_order_approve_no_capture";
89
90
  readonly Dashboard_909Settings: "dashboard_909_settings";
@@ -102,6 +103,7 @@ export declare const featureAudienceNameEnum: {
102
103
  readonly AccountsReceivable: "accounts_receivable";
103
104
  readonly CheckoutSales: "checkout_sales";
104
105
  readonly CustomerSuccess: "customer_success";
106
+ readonly DashboardLabelBetaMerchant: "dashboard_label_beta_merchant";
105
107
  readonly Designer: "designer";
106
108
  readonly DocsContributor: "docs_contributor";
107
109
  readonly Executive: "executive";
@@ -612,6 +614,11 @@ export type AllSettingsQuery = {
612
614
  zonosStoreId: number | null;
613
615
  }>;
614
616
  };
617
+ export type CleanupTestErrorsMutation = {
618
+ delete_error_event: {
619
+ affected_rows: number;
620
+ } | null;
621
+ };
615
622
  export type HasPreviousErrorsQuery = {
616
623
  error_event: Array<{
617
624
  endpoint: string;
@@ -792,6 +799,9 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
792
799
  UpsertBigCommerceSettings(variables?: {
793
800
  [x: string]: never;
794
801
  }, requestHeaders?: GraphQLClientRequestHeaders): Promise<UpsertBigCommerceSettingsMutation>;
802
+ cleanupTestErrors(variables?: {
803
+ [x: string]: never;
804
+ }, requestHeaders?: GraphQLClientRequestHeaders): Promise<CleanupTestErrorsMutation>;
795
805
  cleanupTestZonosElementSetting(variables?: {
796
806
  [x: string]: never;
797
807
  }, requestHeaders?: GraphQLClientRequestHeaders): Promise<CleanupTestZonosElementSettingMutation>;
@@ -62,6 +62,7 @@ export const featureAspectKeyEnum = {
62
62
  ComConsolidation: 'com_consolidation',
63
63
  DashboardCheckout_2Settings: 'dashboard_checkout_2_settings',
64
64
  DashboardHello_2Settings: 'dashboard_hello_2_settings',
65
+ DashboardNewLabelUi: 'dashboard_new_label_ui',
65
66
  DashboardOrderApprove: 'dashboard_order_approve',
66
67
  DashboardOrderApproveNoCapture: 'dashboard_order_approve_no_capture',
67
68
  Dashboard_909Settings: 'dashboard_909_settings',
@@ -83,6 +84,7 @@ export const featureAudienceNameEnum = {
83
84
  AccountsReceivable: 'accounts_receivable',
84
85
  CheckoutSales: 'checkout_sales',
85
86
  CustomerSuccess: 'customer_success',
87
+ DashboardLabelBetaMerchant: 'dashboard_label_beta_merchant',
86
88
  Designer: 'designer',
87
89
  DocsContributor: 'docs_contributor',
88
90
  Executive: 'executive',
@@ -617,6 +619,10 @@ export type AllSettingsQuery = {
617
619
  }>;
618
620
  };
619
621
 
622
+ export type CleanupTestErrorsMutation = {
623
+ delete_error_event: { affected_rows: number } | null;
624
+ };
625
+
620
626
  export type HasPreviousErrorsQuery = {
621
627
  error_event: Array<{
622
628
  endpoint: string;
@@ -1012,6 +1018,20 @@ export function getSdk(
1012
1018
  'mutation',
1013
1019
  );
1014
1020
  },
1021
+ cleanupTestErrors(
1022
+ variables?: { [x: string]: never },
1023
+ requestHeaders?: GraphQLClientRequestHeaders,
1024
+ ): Promise<CleanupTestErrorsMutation> {
1025
+ return withWrapper(
1026
+ wrappedRequestHeaders =>
1027
+ client.request<CleanupTestErrorsMutation>('', variables, {
1028
+ ...requestHeaders,
1029
+ ...wrappedRequestHeaders,
1030
+ }),
1031
+ 'cleanupTestErrors',
1032
+ 'mutation',
1033
+ );
1034
+ },
1015
1035
  cleanupTestZonosElementSetting(
1016
1036
  variables?: { [x: string]: never },
1017
1037
  requestHeaders?: GraphQLClientRequestHeaders,
@@ -1 +1 @@
1
- System.register(["./p-2825570c.system.js","./p-2d404058.system.js","./p-520e8e63.system.js","./p-fc4da55c.system.js","./p-f4c38bfc.system.js"],(function(n){"use strict";var t,e,s,o,a,c;return{setters:[function(n){t=n.r;e=n.h;s=n.H;o=n.d},function(n){a=n.j;c=n.d},function(){},function(){},function(){}],execute:function(){var m=".sc-zonos-payment-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-payment-h *.sc-zonos-payment{font-family:var(--font-family, Inter), Inter}.sc-zonos-payment-h img.sc-zonos-payment{max-width:100%}.sc-zonos-payment-h dl.sc-zonos-payment,.sc-zonos-payment-h dd.sc-zonos-payment,.sc-zonos-payment-h h1.sc-zonos-payment,.sc-zonos-payment-h h2.sc-zonos-payment,.sc-zonos-payment-h h3.sc-zonos-payment,.sc-zonos-payment-h h4.sc-zonos-payment,.sc-zonos-payment-h h5.sc-zonos-payment,.sc-zonos-payment-h h6.sc-zonos-payment,.sc-zonos-payment-h hr.sc-zonos-payment,.sc-zonos-payment-h figure.sc-zonos-payment,.sc-zonos-payment-h p.sc-zonos-payment,.sc-zonos-payment-h pre.sc-zonos-payment{margin:0}.sc-zonos-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-payment-h .zonos--title.sc-zonos-payment{margin-bottom:var(--amino-space-16)}";var i=m;var p=n("zonos_payment",function(){function n(n){t(this,n);this.titleText=undefined;this.stripe=a.stripe;this.stripeElements=a.stripeElements}n.prototype.watchInitStripe=function(){if(!this.stripeElements){return}var n=a.stripePaymentElement||this.stripeElements.create("payment",{layout:"tabs"});var t=this.el.querySelector(".zonos--payment-component");if(!t){c("Cannot find container element for paymentElement");return}n.mount(t);n.on("change",(function(n){a.stripePaymentEventData=n}));a.stripePaymentElement=n};n.prototype.componentDidLoad=function(){this.watchInitStripe()};n.prototype.render=function(){return e(s,{key:"4886087d915369f60296b6ba86fe9400ae6db8dd",class:"zonos--payment zonos--elements"},this.titleText&&e("zonos-text",{key:"ac83371e795b8ae833087143c719cf6dfc066ab3",class:"zonos--title",type:"semiBoldLabel"},this.titleText),e("div",{key:"2895560e50d856a071bef08c800b3112899e22e8",class:"zonos--payment-component"}))};Object.defineProperty(n.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(n,"watchers",{get:function(){return{stripeElements:["watchInitStripe"],stripe:["watchInitStripe"]}},enumerable:false,configurable:true});return n}());p.style=i}}}));
1
+ System.register(["./p-2825570c.system.js","./p-86867593.system.js","./p-520e8e63.system.js","./p-fc4da55c.system.js","./p-f4c38bfc.system.js"],(function(n){"use strict";var t,e,s,o,a,c;return{setters:[function(n){t=n.r;e=n.h;s=n.H;o=n.d},function(n){a=n.k;c=n.d},function(){},function(){},function(){}],execute:function(){var m=".sc-zonos-payment-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-payment-h *.sc-zonos-payment{font-family:var(--font-family, Inter), Inter}.sc-zonos-payment-h img.sc-zonos-payment{max-width:100%}.sc-zonos-payment-h dl.sc-zonos-payment,.sc-zonos-payment-h dd.sc-zonos-payment,.sc-zonos-payment-h h1.sc-zonos-payment,.sc-zonos-payment-h h2.sc-zonos-payment,.sc-zonos-payment-h h3.sc-zonos-payment,.sc-zonos-payment-h h4.sc-zonos-payment,.sc-zonos-payment-h h5.sc-zonos-payment,.sc-zonos-payment-h h6.sc-zonos-payment,.sc-zonos-payment-h hr.sc-zonos-payment,.sc-zonos-payment-h figure.sc-zonos-payment,.sc-zonos-payment-h p.sc-zonos-payment,.sc-zonos-payment-h pre.sc-zonos-payment{margin:0}.sc-zonos-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-payment-h .zonos--title.sc-zonos-payment{margin-bottom:var(--amino-space-16)}";var i=m;var p=n("zonos_payment",function(){function n(n){t(this,n);this.titleText=undefined;this.stripe=a.stripe;this.stripeElements=a.stripeElements}n.prototype.watchInitStripe=function(){if(!this.stripeElements){return}var n=a.stripePaymentElement||this.stripeElements.create("payment",{layout:"tabs"});var t=this.el.querySelector(".zonos--payment-component");if(!t){c("Cannot find container element for paymentElement");return}n.mount(t);n.on("change",(function(n){a.stripePaymentEventData=n}));a.stripePaymentElement=n};n.prototype.componentDidLoad=function(){this.watchInitStripe()};n.prototype.render=function(){return e(s,{key:"4886087d915369f60296b6ba86fe9400ae6db8dd",class:"zonos--payment zonos--elements"},this.titleText&&e("zonos-text",{key:"ac83371e795b8ae833087143c719cf6dfc066ab3",class:"zonos--title",type:"semiBoldLabel"},this.titleText),e("div",{key:"2895560e50d856a071bef08c800b3112899e22e8",class:"zonos--payment-component"}))};Object.defineProperty(n.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(n,"watchers",{get:function(){return{stripeElements:["watchInitStripe"],stripe:["watchInitStripe"]}},enumerable:false,configurable:true});return n}());p.style=i}}}));
@@ -1 +1 @@
1
- import{r as o,c as e,h as t,H as i}from"./p-2244534c.js";import{B as s,l as a,t as n}from"./p-816f1aee.js";import{z as l}from"./p-d41b5762.js";import{c as r}from"./p-b4b7f705.js";import{f as d}from"./p-a87561b8.js";import{g as h}from"./p-5883217a.js";import"./p-d01576d7.js";import"./p-ed2e94d2.js";const c=class{constructor(t){o(this,t),this.closeDialog=e(this,"closeDialog",7),this.clickOutsideDialogHandler=o=>{!o.composedPath().includes(this.dialogRef)&&this.isOpen&&this.setIsOpen(!1)},this.getCurrentPageEnum=()=>{switch(l.currentHelloPage){case"home":return"hello_homepage";case"cart":return"hello_cart";case"productList":return"hello_item_list";case"productDetail":return"hello_item_details";default:return null}},this.setShowCountrySelect=async o=>{this.showCountrySelect=o},this.setShowLanguageSelect=async o=>{this.showLanguageSelect=o},this.getDutyMessage=()=>{const{countryLandedCost:o}=a,e=(null==o?void 0:o.dutyDeminimus)?s(o.dutyDeminimus):null,t="CA"===a.selectedCountryCode?s(40):e;return t?`${n("Spend")} ${t} ${n("duty free")}`:n("Duties will apply to all orders")},this.getTaxMessage=()=>{const{countryLandedCost:o}=a,e=(null==o?void 0:o.vatTaxDeminimus)?s(o.vatTaxDeminimus):null,t="CA"===a.selectedCountryCode?s(150):e;return t?`${n("Spend")} ${t} ${n("tax free")}`:n("Taxes will apply to all orders")},this.getUkDutyTaxMessage=o=>o.allowLowValueOrders?null:n("Orders to ${countryName} must be over ${threshold} to ship.",{countryName:"United Kingdom",threshold:s(o.dutyDeminimus)}),this.getAustraliaDutyTaxMessage=o=>n("${percentage} GST due on any order above ${threshold}.",{percentage:100*o.vatTaxRate+"%",threshold:s(o.vatTaxDeminimus)}),this.getNewZealandDutyTaxMessge=o=>n("${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.",{percentage:100*o.vatTaxRate+"%",threshold:s(o.vatTaxDeminimus)}),this.getAdditionalDutyTaxMessage=()=>{if(!a.countryLandedCost)return null;if(!a.countryLandedCost.hasTaxId)return null;switch(a.countryLandedCost.countryCode){case"GB":return this.getUkDutyTaxMessage(a.countryLandedCost);case"AU":return this.getAustraliaDutyTaxMessage(a.countryLandedCost);case"NZ":return this.getNewZealandDutyTaxMessge(a.countryLandedCost);default:return null}},this.isOpen=!1,this.setIsOpen=()=>{},this.mobileLocationOverride=void 0,this.animateFromLeftOverride=void 0,this.appearanceSettings=void 0,this.restrictedItems=[],this.welcomeMessage="Welcome to our Demo App!",this.showCountrySelect=!1,this.showLanguageSelect=!1}globalClickHandler(o){this.clickOutsideDialogHandler(o)}isOpenHandler(o){o||(this.setShowCountrySelect(!1),this.setShowLanguageSelect(!1))}render(){var o;const{selectedCountryCode:e}=a,s=this.getDutyMessage(),c=this.getTaxMessage(),f=this.getAdditionalDutyTaxMessage(),m=this.animateFromLeftOverride||this.dialogRef&&h(this.dialogRef),g=this.dialogRef&&(()=>{const o=this.dialogRef.getBoundingClientRect();return o.top>=window.innerHeight-o.bottom})(),{customMessages:b}=a,p=`${n("Welcome to")} ${l.organizationName}!`,u=(null===(o=b.find((o=>"hello_default"===o.pageName)))||void 0===o?void 0:o.message)||n("Know about duties and taxes before you buy. Shop with confidence!"),w=d(u),v=this.getCurrentPageEnum(),z=b.filter((o=>o.pageName===v));return t(i,{key:"f300db080cf0634c72aae93aceae288ce67c500c",class:"zonos--elements"},t("div",{key:"e61bbf7022be71909ab56267721026f95b9fc2fc","aria-hidden":"true",class:r(["zonos--hello-dialog",m&&"zonos--hello-dialog-animate-from-left",g&&"zonos--hello-dialog-animate-from-bottom",!!this.mobileLocationOverride&&"zonos--hello-dialog-mobile-override",this.isOpen&&"zonos--hello-dialog-open"]),ref:o=>o&&(this.dialogRef=o)},!this.showCountrySelect&&!this.showLanguageSelect&&t("div",{key:"909e251587e2650dbdc1afe5b19e9b3a55f72a18"},t("div",{key:"a4a79886507449ba688c87474d064528cae3779b",class:"zonos--hello-dialog-content"},t("zonos-button",{key:"1e7a3e74f3f5ab94a70983a067cc08d596d9c5be",class:"zonos--close-button",icon:t("zonos-icon",{"aria-label":"Close Zonos Hello dialog",content:'<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>'}),noBackground:!0,onClick:()=>this.setIsOpen(!1)}),t("zonos-v-stack",{key:"1c981178390c120427d61f68a05808a95f8da72a",spacing:24},t("zonos-country-flag",{key:"095e060cf50ee4525ea501e682735370c0c03cfa",class:"zonos--hello-country-flag",countryCode:e}),t("zonos-v-stack",{key:"1db18e95118922462526c7092accf42639bd4fdd",class:"zonos--hello-dialog-header",spacing:4},t("zonos-text",{key:"f494d050c90922328f3e8ea3bd05e1cf9e6d239c",type:"boldSubheader"},p),t("zonos-text",{key:"b31645d57a3c5f25eb59b61482d4e383e3cb962c",innerHTML:w,textColor:"gray-800"})),t("zonos-v-stack",{key:"1e8f0a656074cd830715d19685c2a3c9daced9be",spacing:8},this.restrictedItems.map((o=>{var e;return o&&t("zonos-banner",{bannerTitle:o.name,intent:"error"},null===(e=o.itemRestrictions)||void 0===e?void 0:e.map((o=>t("zonos-text",{textColor:"red-800"},null==o?void 0:o.note))))})),t("zonos-card",{key:"fd2c574714b2e0dafacb4f9390c81b7b6003c7d3",spacing:"12px"},t("zonos-v-stack",{key:"41a9864f58ddc28f1767113f517a7a9cf3a0be6d",spacing:12},t("div",{key:"ced705bcf185987815a898a173d08c571017a052",class:"zonos--flex-message"},t("zonos-icon",{key:"4724edca926eec5e050c711dcb96c6b914985695","aria-label":"Duty de minimis",content:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M9.35028 11.5744C9.05738 11.2815 8.58251 11.2815 8.28962 11.5744C7.99672 11.8673 7.99672 12.3422 8.28962 12.635L11.2917 15.6372C11.6823 16.0277 12.3154 16.0277 12.7059 15.6372L15.708 12.6351C16.0009 12.3422 16.0009 11.8674 15.708 11.5745C15.4151 11.2816 14.9402 11.2816 14.6473 11.5745L12.7488 13.4729V4.68005C12.7488 4.26584 12.413 3.93005 11.9988 3.93005C11.5846 3.93005 11.2488 4.26584 11.2488 4.68005L11.2488 13.4729L9.35028 11.5744Z" fill="#4D505A"/>\n<path d="M20 14C20 13.5858 19.6642 13.25 19.25 13.25C18.8358 13.25 18.5 13.5858 18.5 14L18.5 17.25C18.5 17.9404 17.9404 18.5 17.25 18.5L6.75 18.5C6.05964 18.5 5.5 17.9404 5.5 17.25L5.5 14C5.5 13.5858 5.16421 13.25 4.75 13.25C4.33579 13.25 4 13.5858 4 14V17.25C4 18.7688 5.23122 20 6.75 20H17.25C18.7688 20 20 18.7688 20 17.25L20 14Z" fill="#4D505A"/>\n</svg>\n'}),t("zonos-text",{key:"6c6d3b36897fd141ca83fbf008dae9f24ac56e40"},s)),t("div",{key:"abe17715558f2ee3ded882eb2c5c1466904bfc8e",class:"zonos--flex-message"},t("zonos-icon",{key:"e8371f1e89a5b21947bfdcf73e6294bd6de49946","aria-label":"Tax de minimis",content:'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.16666 5.83301C2.16666 4.4523 3.28594 3.33301 4.66666 3.33301H16.3333C17.714 3.33301 18.8333 4.4523 18.8333 5.83301V14.1663C18.8333 15.5471 17.714 16.6663 16.3333 16.6663H4.66666C3.28594 16.6663 2.16666 15.5471 2.16666 14.1663V5.83301ZM4.66666 4.99967C4.20642 4.99967 3.83332 5.37277 3.83332 5.83301V14.1663C3.83332 14.6266 4.20642 14.9997 4.66666 14.9997H16.3333C16.7936 14.9997 17.1667 14.6266 17.1667 14.1663V5.83301C17.1667 5.37277 16.7936 4.99967 16.3333 4.99967H4.66666ZM6.33332 8.33301C6.79356 8.33301 7.16666 8.7061 7.16666 9.16634V10.833C7.16666 11.2932 6.79356 11.6663 6.33332 11.6663C5.87309 11.6663 5.49999 11.2932 5.49999 10.833V9.16634C5.49999 8.7061 5.87309 8.33301 6.33332 8.33301ZM8.83332 9.99967C8.83332 9.0792 9.57952 8.33301 10.5 8.33301C11.4205 8.33301 12.1667 9.0792 12.1667 9.99967C12.1667 10.9201 11.4205 11.6663 10.5 11.6663C9.57952 11.6663 8.83332 10.9201 8.83332 9.99967ZM14.6667 8.33301C15.1269 8.33301 15.5 8.7061 15.5 9.16634V10.833C15.5 11.2932 15.1269 11.6663 14.6667 11.6663C14.2064 11.6663 13.8333 11.2932 13.8333 10.833V9.16634C13.8333 8.7061 14.2064 8.33301 14.6667 8.33301Z" fill="#4D505A"/>\n</svg>\n'}),t("zonos-text",{key:"952485295cfec2d7ad1b61523bb05378bae08e34"},c)),f&&t("div",{key:"abc0e4c7ddecbe85dd8f4b8adab15073b1b6a2db",class:"zonos--flex-message"},t("zonos-icon",{key:"973ea223a40648ca8cac99bd0c839dd324894f1c","aria-label":"Low value order shipping restriction",content:'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M9.66666 4.16667C9.20642 4.16667 8.83333 4.53976 8.83333 5V5.83333H12.1667V5C12.1667 4.53976 11.7936 4.16667 11.3333 4.16667H9.66666ZM13.8333 5.83333V5C13.8333 3.61929 12.714 2.5 11.3333 2.5H9.66666C8.28595 2.5 7.16666 3.61929 7.16666 5V5.83333H6.77759C5.44832 5.83333 4.35149 6.87354 4.2811 8.20094L3.92756 14.8676C3.85169 16.2983 4.99133 17.5 6.42405 17.5H14.5759C16.0087 17.5 17.1483 16.2983 17.0724 14.8676L16.7189 8.20094C16.6485 6.87354 15.5517 5.83333 14.2224 5.83333H13.8333ZM12.1667 7.5V8.33333C12.1667 8.79357 12.5398 9.16667 13 9.16667C13.4602 9.16667 13.8333 8.79357 13.8333 8.33333V7.5H14.2224C14.6655 7.5 15.0311 7.84674 15.0546 8.2892L15.4081 14.9559C15.4334 15.4328 15.0535 15.8333 14.5759 15.8333H6.42405C5.94648 15.8333 5.5666 15.4328 5.59189 14.9559L5.94542 8.2892C5.96889 7.84674 6.3345 7.5 6.77759 7.5H7.16666V8.33333C7.16666 8.79357 7.53976 9.16667 7.99999 9.16667C8.46023 9.16667 8.83333 8.79357 8.83333 8.33333V7.5H12.1667Z" fill="#4D505A"/>\n</svg>\n'}),t("zonos-text",{key:"c6460eefa388097ed27e29d3a91055afbf8a5261"},f)))),z.map((o=>t("zonos-custom-message",{icon:'<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 4.5C2.25 3.25736 3.25736 2.25 4.5 2.25H13.5C14.7426 2.25 15.75 3.25736 15.75 4.5V10.5C15.75 11.7426 14.7426 12.75 13.5 12.75H8.25C8.01393 12.75 7.79164 12.8611 7.65 13.05L6.3 14.85C5.87508 15.4166 5.2082 15.75 4.5 15.75C3.25736 15.75 2.25 14.7426 2.25 13.5V4.5ZM4.5 3.75C4.08579 3.75 3.75 4.08579 3.75 4.5V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25C4.73607 14.25 4.95836 14.1389 5.1 13.95L6.45 12.15C6.87492 11.5834 7.5418 11.25 8.25 11.25H13.5C13.9142 11.25 14.25 10.9142 14.25 10.5V4.5C14.25 4.08579 13.9142 3.75 13.5 3.75H4.5ZM5.25 6C5.25 5.58579 5.58579 5.25 6 5.25H12C12.4142 5.25 12.75 5.58579 12.75 6C12.75 6.41421 12.4142 6.75 12 6.75H6C5.58579 6.75 5.25 6.41421 5.25 6ZM5.25 9C5.25 8.58579 5.58579 8.25 6 8.25H8.25C8.66421 8.25 9 8.58579 9 9C9 9.41421 8.66421 9.75 8.25 9.75H6C5.58579 9.75 5.25 9.41421 5.25 9Z" fill="#4D505A"/>\n</svg>\n',message:o.message})))))),t("zonos-hello-dialog-footer",{key:"daabdaf6f1f59e6e2ef3ad7516af60eb50a34633",appearanceSettings:this.appearanceSettings,setShowCountrySelect:o=>this.setShowCountrySelect(o),setShowLanguageSelect:o=>this.setShowLanguageSelect(o)})),this.showCountrySelect&&t("div",{key:"88608070d3a34b3742eeac74cb836b98ddb171eb"},t("zonos-country-select",{key:"91acd80a1549277528927512e9d299282a0e3d26",handleOnClose:()=>this.setShowCountrySelect(!1)})),this.showLanguageSelect&&t("div",{key:"5b70e70778b8e863d1f256406f884179a01d9de2"},t("zonos-language-select",{key:"ba74dfc5baa25694dec9273c08644db8cd312dc1",handleOnClose:()=>this.setShowLanguageSelect(!1)}))))}static get assetsDirs(){return["assets"]}static get watchers(){return{isOpen:["isOpenHandler"]}}};c.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--hello-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--amino-v3-shadow-medium);box-shadow:var(--amino-v3-shadow-medium);z-index:10;justify-self:center}:host .zonos--hello-dialog{position:absolute;background:var(--amino-surface-color);width:100vw;max-width:430px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;max-height:600px;border-radius:var(--amino-radius-12);outline:none;-webkit-box-shadow:var(--amino-v3-shadow-xxl);box-shadow:var(--amino-v3-shadow-xxl);overflow-y:auto;top:-2px;right:-2px;opacity:0;-webkit-transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:top right;transform-origin:top right;z-index:1001}:host .zonos--hello-dialog .zonos--hello-dialog-header{text-align:center}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:top left;transform-origin:top left;right:unset;left:-2px}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom{-webkit-transform-origin:bottom right;transform-origin:bottom right;bottom:calc(100% - 32px);top:unset}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom left;transform-origin:bottom left}:host .zonos--hello-dialog::-webkit-scrollbar{width:12px;height:12px}:host .zonos--hello-dialog::-webkit-scrollbar-track{background:#f5f5f5;border-top-right-radius:var(--amino-radius-12);border-bottom-right-radius:var(--amino-radius-12)}:host .zonos--hello-dialog::-webkit-scrollbar-thumb{border-radius:10px;background:#ccc;border:4px solid transparent;background-clip:content-box}:host .zonos--hello-dialog::-webkit-scrollbar-thumb:hover{background:#999}:host .zonos--hello-dialog .zonos--animate-content{opacity:0;height:0;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out}:host .zonos--hello-dialog .zonos--show-animate-content{opacity:1;height:100%}:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scale(1);transform:scale(1)}:host .zonos--hello-dialog .zonos--close-button{position:absolute;right:var(--amino-space-8);top:var(--amino-space-8);width:var(--amino-size-md);height:var(--amino-size-md);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;z-index:10}:host .zonos--hello-dialog .zonos--close-button:hover{background:var(--amino-hover-color);border-radius:var(--amino-radius-6)}:host .zonos--hello-dialog .zonos--hello-dialog-content{padding:var(--amino-space-16)}:host .zonos--hello-dialog .zonos--hello-dialog-content .zonos--hello-country-flag{border-radius:var(--amino-radius-4);width:32px;height:24px}:host .zonos--hello-dialog .zonos--flex-message{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--amino-space-12)}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:500px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}@media (max-height: 600px){:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{max-height:80vh}}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}@media (max-width: 768px){:host .zonos--hello-dialog{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:500px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}}@media (max-width: 768px) and (max-height: 600px){:host .zonos--hello-dialog{max-height:80vh}}@media (max-width: 768px){:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}}@media (max-width: 768px){:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}}";export{c as zonos_hello_dialog}
1
+ import{r as o,c as e,h as t,H as i}from"./p-2244534c.js";import{C as s,l as a,t as n}from"./p-659e81b2.js";import{z as l}from"./p-d41b5762.js";import{c as r}from"./p-b4b7f705.js";import{f as d}from"./p-a87561b8.js";import{g as h}from"./p-5883217a.js";import"./p-d01576d7.js";import"./p-ed2e94d2.js";const c=class{constructor(t){o(this,t),this.closeDialog=e(this,"closeDialog",7),this.clickOutsideDialogHandler=o=>{!o.composedPath().includes(this.dialogRef)&&this.isOpen&&this.setIsOpen(!1)},this.getCurrentPageEnum=()=>{switch(l.currentHelloPage){case"home":return"hello_homepage";case"cart":return"hello_cart";case"productList":return"hello_item_list";case"productDetail":return"hello_item_details";default:return null}},this.setShowCountrySelect=async o=>{this.showCountrySelect=o},this.setShowLanguageSelect=async o=>{this.showLanguageSelect=o},this.getDutyMessage=()=>{const{countryLandedCost:o}=a,e=(null==o?void 0:o.dutyDeminimus)?s(o.dutyDeminimus):null,t="CA"===a.selectedCountryCode?s(40):e;return t?`${n("Spend")} ${t} ${n("duty free")}`:n("Duties will apply to all orders")},this.getTaxMessage=()=>{const{countryLandedCost:o}=a,e=(null==o?void 0:o.vatTaxDeminimus)?s(o.vatTaxDeminimus):null,t="CA"===a.selectedCountryCode?s(150):e;return t?`${n("Spend")} ${t} ${n("tax free")}`:n("Taxes will apply to all orders")},this.getUkDutyTaxMessage=o=>o.allowLowValueOrders?null:n("Orders to ${countryName} must be over ${threshold} to ship.",{countryName:"United Kingdom",threshold:s(o.dutyDeminimus)}),this.getAustraliaDutyTaxMessage=o=>n("${percentage} GST due on any order above ${threshold}.",{percentage:100*o.vatTaxRate+"%",threshold:s(o.vatTaxDeminimus)}),this.getNewZealandDutyTaxMessge=o=>n("${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.",{percentage:100*o.vatTaxRate+"%",threshold:s(o.vatTaxDeminimus)}),this.getAdditionalDutyTaxMessage=()=>{if(!a.countryLandedCost)return null;if(!a.countryLandedCost.hasTaxId)return null;switch(a.countryLandedCost.countryCode){case"GB":return this.getUkDutyTaxMessage(a.countryLandedCost);case"AU":return this.getAustraliaDutyTaxMessage(a.countryLandedCost);case"NZ":return this.getNewZealandDutyTaxMessge(a.countryLandedCost);default:return null}},this.isOpen=!1,this.setIsOpen=()=>{},this.mobileLocationOverride=void 0,this.animateFromLeftOverride=void 0,this.appearanceSettings=void 0,this.restrictedItems=[],this.welcomeMessage="Welcome to our Demo App!",this.showCountrySelect=!1,this.showLanguageSelect=!1}globalClickHandler(o){this.clickOutsideDialogHandler(o)}isOpenHandler(o){o||(this.setShowCountrySelect(!1),this.setShowLanguageSelect(!1))}render(){var o;const{selectedCountryCode:e}=a,s=this.getDutyMessage(),c=this.getTaxMessage(),f=this.getAdditionalDutyTaxMessage(),m=this.animateFromLeftOverride||this.dialogRef&&h(this.dialogRef),g=this.dialogRef&&(()=>{const o=this.dialogRef.getBoundingClientRect();return o.top>=window.innerHeight-o.bottom})(),{customMessages:b}=a,p=`${n("Welcome to")} ${l.organizationName}!`,u=(null===(o=b.find((o=>"hello_default"===o.pageName)))||void 0===o?void 0:o.message)||n("Know about duties and taxes before you buy. Shop with confidence!"),w=d(u),v=this.getCurrentPageEnum(),z=b.filter((o=>o.pageName===v));return t(i,{key:"f300db080cf0634c72aae93aceae288ce67c500c",class:"zonos--elements"},t("div",{key:"e61bbf7022be71909ab56267721026f95b9fc2fc","aria-hidden":"true",class:r(["zonos--hello-dialog",m&&"zonos--hello-dialog-animate-from-left",g&&"zonos--hello-dialog-animate-from-bottom",!!this.mobileLocationOverride&&"zonos--hello-dialog-mobile-override",this.isOpen&&"zonos--hello-dialog-open"]),ref:o=>o&&(this.dialogRef=o)},!this.showCountrySelect&&!this.showLanguageSelect&&t("div",{key:"909e251587e2650dbdc1afe5b19e9b3a55f72a18"},t("div",{key:"a4a79886507449ba688c87474d064528cae3779b",class:"zonos--hello-dialog-content"},t("zonos-button",{key:"1e7a3e74f3f5ab94a70983a067cc08d596d9c5be",class:"zonos--close-button",icon:t("zonos-icon",{"aria-label":"Close Zonos Hello dialog",content:'<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>'}),noBackground:!0,onClick:()=>this.setIsOpen(!1)}),t("zonos-v-stack",{key:"1c981178390c120427d61f68a05808a95f8da72a",spacing:24},t("zonos-country-flag",{key:"095e060cf50ee4525ea501e682735370c0c03cfa",class:"zonos--hello-country-flag",countryCode:e}),t("zonos-v-stack",{key:"1db18e95118922462526c7092accf42639bd4fdd",class:"zonos--hello-dialog-header",spacing:4},t("zonos-text",{key:"f494d050c90922328f3e8ea3bd05e1cf9e6d239c",type:"boldSubheader"},p),t("zonos-text",{key:"b31645d57a3c5f25eb59b61482d4e383e3cb962c",innerHTML:w,textColor:"gray-800"})),t("zonos-v-stack",{key:"1e8f0a656074cd830715d19685c2a3c9daced9be",spacing:8},this.restrictedItems.map((o=>{var e;return o&&t("zonos-banner",{bannerTitle:o.name,intent:"error"},null===(e=o.itemRestrictions)||void 0===e?void 0:e.map((o=>t("zonos-text",{textColor:"red-800"},null==o?void 0:o.note))))})),t("zonos-card",{key:"fd2c574714b2e0dafacb4f9390c81b7b6003c7d3",spacing:"12px"},t("zonos-v-stack",{key:"41a9864f58ddc28f1767113f517a7a9cf3a0be6d",spacing:12},t("div",{key:"ced705bcf185987815a898a173d08c571017a052",class:"zonos--flex-message"},t("zonos-icon",{key:"4724edca926eec5e050c711dcb96c6b914985695","aria-label":"Duty de minimis",content:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M9.35028 11.5744C9.05738 11.2815 8.58251 11.2815 8.28962 11.5744C7.99672 11.8673 7.99672 12.3422 8.28962 12.635L11.2917 15.6372C11.6823 16.0277 12.3154 16.0277 12.7059 15.6372L15.708 12.6351C16.0009 12.3422 16.0009 11.8674 15.708 11.5745C15.4151 11.2816 14.9402 11.2816 14.6473 11.5745L12.7488 13.4729V4.68005C12.7488 4.26584 12.413 3.93005 11.9988 3.93005C11.5846 3.93005 11.2488 4.26584 11.2488 4.68005L11.2488 13.4729L9.35028 11.5744Z" fill="#4D505A"/>\n<path d="M20 14C20 13.5858 19.6642 13.25 19.25 13.25C18.8358 13.25 18.5 13.5858 18.5 14L18.5 17.25C18.5 17.9404 17.9404 18.5 17.25 18.5L6.75 18.5C6.05964 18.5 5.5 17.9404 5.5 17.25L5.5 14C5.5 13.5858 5.16421 13.25 4.75 13.25C4.33579 13.25 4 13.5858 4 14V17.25C4 18.7688 5.23122 20 6.75 20H17.25C18.7688 20 20 18.7688 20 17.25L20 14Z" fill="#4D505A"/>\n</svg>\n'}),t("zonos-text",{key:"6c6d3b36897fd141ca83fbf008dae9f24ac56e40"},s)),t("div",{key:"abe17715558f2ee3ded882eb2c5c1466904bfc8e",class:"zonos--flex-message"},t("zonos-icon",{key:"e8371f1e89a5b21947bfdcf73e6294bd6de49946","aria-label":"Tax de minimis",content:'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.16666 5.83301C2.16666 4.4523 3.28594 3.33301 4.66666 3.33301H16.3333C17.714 3.33301 18.8333 4.4523 18.8333 5.83301V14.1663C18.8333 15.5471 17.714 16.6663 16.3333 16.6663H4.66666C3.28594 16.6663 2.16666 15.5471 2.16666 14.1663V5.83301ZM4.66666 4.99967C4.20642 4.99967 3.83332 5.37277 3.83332 5.83301V14.1663C3.83332 14.6266 4.20642 14.9997 4.66666 14.9997H16.3333C16.7936 14.9997 17.1667 14.6266 17.1667 14.1663V5.83301C17.1667 5.37277 16.7936 4.99967 16.3333 4.99967H4.66666ZM6.33332 8.33301C6.79356 8.33301 7.16666 8.7061 7.16666 9.16634V10.833C7.16666 11.2932 6.79356 11.6663 6.33332 11.6663C5.87309 11.6663 5.49999 11.2932 5.49999 10.833V9.16634C5.49999 8.7061 5.87309 8.33301 6.33332 8.33301ZM8.83332 9.99967C8.83332 9.0792 9.57952 8.33301 10.5 8.33301C11.4205 8.33301 12.1667 9.0792 12.1667 9.99967C12.1667 10.9201 11.4205 11.6663 10.5 11.6663C9.57952 11.6663 8.83332 10.9201 8.83332 9.99967ZM14.6667 8.33301C15.1269 8.33301 15.5 8.7061 15.5 9.16634V10.833C15.5 11.2932 15.1269 11.6663 14.6667 11.6663C14.2064 11.6663 13.8333 11.2932 13.8333 10.833V9.16634C13.8333 8.7061 14.2064 8.33301 14.6667 8.33301Z" fill="#4D505A"/>\n</svg>\n'}),t("zonos-text",{key:"952485295cfec2d7ad1b61523bb05378bae08e34"},c)),f&&t("div",{key:"abc0e4c7ddecbe85dd8f4b8adab15073b1b6a2db",class:"zonos--flex-message"},t("zonos-icon",{key:"973ea223a40648ca8cac99bd0c839dd324894f1c","aria-label":"Low value order shipping restriction",content:'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M9.66666 4.16667C9.20642 4.16667 8.83333 4.53976 8.83333 5V5.83333H12.1667V5C12.1667 4.53976 11.7936 4.16667 11.3333 4.16667H9.66666ZM13.8333 5.83333V5C13.8333 3.61929 12.714 2.5 11.3333 2.5H9.66666C8.28595 2.5 7.16666 3.61929 7.16666 5V5.83333H6.77759C5.44832 5.83333 4.35149 6.87354 4.2811 8.20094L3.92756 14.8676C3.85169 16.2983 4.99133 17.5 6.42405 17.5H14.5759C16.0087 17.5 17.1483 16.2983 17.0724 14.8676L16.7189 8.20094C16.6485 6.87354 15.5517 5.83333 14.2224 5.83333H13.8333ZM12.1667 7.5V8.33333C12.1667 8.79357 12.5398 9.16667 13 9.16667C13.4602 9.16667 13.8333 8.79357 13.8333 8.33333V7.5H14.2224C14.6655 7.5 15.0311 7.84674 15.0546 8.2892L15.4081 14.9559C15.4334 15.4328 15.0535 15.8333 14.5759 15.8333H6.42405C5.94648 15.8333 5.5666 15.4328 5.59189 14.9559L5.94542 8.2892C5.96889 7.84674 6.3345 7.5 6.77759 7.5H7.16666V8.33333C7.16666 8.79357 7.53976 9.16667 7.99999 9.16667C8.46023 9.16667 8.83333 8.79357 8.83333 8.33333V7.5H12.1667Z" fill="#4D505A"/>\n</svg>\n'}),t("zonos-text",{key:"c6460eefa388097ed27e29d3a91055afbf8a5261"},f)))),z.map((o=>t("zonos-custom-message",{icon:'<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 4.5C2.25 3.25736 3.25736 2.25 4.5 2.25H13.5C14.7426 2.25 15.75 3.25736 15.75 4.5V10.5C15.75 11.7426 14.7426 12.75 13.5 12.75H8.25C8.01393 12.75 7.79164 12.8611 7.65 13.05L6.3 14.85C5.87508 15.4166 5.2082 15.75 4.5 15.75C3.25736 15.75 2.25 14.7426 2.25 13.5V4.5ZM4.5 3.75C4.08579 3.75 3.75 4.08579 3.75 4.5V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25C4.73607 14.25 4.95836 14.1389 5.1 13.95L6.45 12.15C6.87492 11.5834 7.5418 11.25 8.25 11.25H13.5C13.9142 11.25 14.25 10.9142 14.25 10.5V4.5C14.25 4.08579 13.9142 3.75 13.5 3.75H4.5ZM5.25 6C5.25 5.58579 5.58579 5.25 6 5.25H12C12.4142 5.25 12.75 5.58579 12.75 6C12.75 6.41421 12.4142 6.75 12 6.75H6C5.58579 6.75 5.25 6.41421 5.25 6ZM5.25 9C5.25 8.58579 5.58579 8.25 6 8.25H8.25C8.66421 8.25 9 8.58579 9 9C9 9.41421 8.66421 9.75 8.25 9.75H6C5.58579 9.75 5.25 9.41421 5.25 9Z" fill="#4D505A"/>\n</svg>\n',message:o.message})))))),t("zonos-hello-dialog-footer",{key:"daabdaf6f1f59e6e2ef3ad7516af60eb50a34633",appearanceSettings:this.appearanceSettings,setShowCountrySelect:o=>this.setShowCountrySelect(o),setShowLanguageSelect:o=>this.setShowLanguageSelect(o)})),this.showCountrySelect&&t("div",{key:"88608070d3a34b3742eeac74cb836b98ddb171eb"},t("zonos-country-select",{key:"91acd80a1549277528927512e9d299282a0e3d26",handleOnClose:()=>this.setShowCountrySelect(!1)})),this.showLanguageSelect&&t("div",{key:"5b70e70778b8e863d1f256406f884179a01d9de2"},t("zonos-language-select",{key:"ba74dfc5baa25694dec9273c08644db8cd312dc1",handleOnClose:()=>this.setShowLanguageSelect(!1)}))))}static get assetsDirs(){return["assets"]}static get watchers(){return{isOpen:["isOpenHandler"]}}};c.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--hello-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--amino-v3-shadow-medium);box-shadow:var(--amino-v3-shadow-medium);z-index:10;justify-self:center}:host .zonos--hello-dialog{position:absolute;background:var(--amino-surface-color);width:100vw;max-width:430px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;max-height:600px;border-radius:var(--amino-radius-12);outline:none;-webkit-box-shadow:var(--amino-v3-shadow-xxl);box-shadow:var(--amino-v3-shadow-xxl);overflow-y:auto;top:-2px;right:-2px;opacity:0;-webkit-transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:top right;transform-origin:top right;z-index:1001}:host .zonos--hello-dialog .zonos--hello-dialog-header{text-align:center}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:top left;transform-origin:top left;right:unset;left:-2px}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom{-webkit-transform-origin:bottom right;transform-origin:bottom right;bottom:calc(100% - 32px);top:unset}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom left;transform-origin:bottom left}:host .zonos--hello-dialog::-webkit-scrollbar{width:12px;height:12px}:host .zonos--hello-dialog::-webkit-scrollbar-track{background:#f5f5f5;border-top-right-radius:var(--amino-radius-12);border-bottom-right-radius:var(--amino-radius-12)}:host .zonos--hello-dialog::-webkit-scrollbar-thumb{border-radius:10px;background:#ccc;border:4px solid transparent;background-clip:content-box}:host .zonos--hello-dialog::-webkit-scrollbar-thumb:hover{background:#999}:host .zonos--hello-dialog .zonos--animate-content{opacity:0;height:0;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out}:host .zonos--hello-dialog .zonos--show-animate-content{opacity:1;height:100%}:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scale(1);transform:scale(1)}:host .zonos--hello-dialog .zonos--close-button{position:absolute;right:var(--amino-space-8);top:var(--amino-space-8);width:var(--amino-size-md);height:var(--amino-size-md);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;z-index:10}:host .zonos--hello-dialog .zonos--close-button:hover{background:var(--amino-hover-color);border-radius:var(--amino-radius-6)}:host .zonos--hello-dialog .zonos--hello-dialog-content{padding:var(--amino-space-16)}:host .zonos--hello-dialog .zonos--hello-dialog-content .zonos--hello-country-flag{border-radius:var(--amino-radius-4);width:32px;height:24px}:host .zonos--hello-dialog .zonos--flex-message{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--amino-space-12)}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:500px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}@media (max-height: 600px){:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{max-height:80vh}}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}@media (max-width: 768px){:host .zonos--hello-dialog{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:500px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}}@media (max-width: 768px) and (max-height: 600px){:host .zonos--hello-dialog{max-height:80vh}}@media (max-width: 768px){:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}}@media (max-width: 768px){:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}}";export{c as zonos_hello_dialog}
@@ -1 +1 @@
1
- System.register(["./p-2825570c.system.js","./p-2d404058.system.js","./p-520e8e63.system.js","./p-23e7c655.system.js","./p-fc4da55c.system.js","./p-f4c38bfc.system.js"],(function(t){"use strict";var s,o,e,n,i,a,h;return{setters:[function(t){s=t.r;o=t.h;e=t.H;n=t.d},function(t){i=t.l},function(t){a=t.d},function(t){h=t.c},function(){},function(){}],execute:function(){var r=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host .flag-container{position:relative;overflow:hidden;width:100%;height:100%}:host .flag-icon{position:absolute;top:0;left:0;width:100%;height:100%;background-position:center;background-repeat:no-repeat;background-size:cover}";var f=r;var l="https://zonos-store-assets.s3.amazonaws.com/images/elements-flags";var c=t("zonos_country_flag",function(){function t(t){s(this,t);this.countryCode=i.selectedCountryCode;this.size=undefined}t.prototype.render=function(){if(!this.el.shadowRoot||!this.countryCode){return null}var t="".concat(l,"/").concat(this.countryCode,".svg");var s=a();return o(e,{class:"zonos--elements",style:this.size?{"--font-family":s,height:"".concat(this.size,"px"),width:"".concat(this.size,"px")}:{"--font-family":s}},o("div",{class:h(["flag-container"])},o("div",{class:"flag-icon",style:{backgroundImage:"url(".concat(t,")")}})))};Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());c.style=f}}}));
1
+ System.register(["./p-2825570c.system.js","./p-86867593.system.js","./p-520e8e63.system.js","./p-23e7c655.system.js","./p-fc4da55c.system.js","./p-f4c38bfc.system.js"],(function(t){"use strict";var s,o,e,n,i,a,h;return{setters:[function(t){s=t.r;o=t.h;e=t.H;n=t.d},function(t){i=t.l},function(t){a=t.d},function(t){h=t.c},function(){},function(){}],execute:function(){var r=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host .flag-container{position:relative;overflow:hidden;width:100%;height:100%}:host .flag-icon{position:absolute;top:0;left:0;width:100%;height:100%;background-position:center;background-repeat:no-repeat;background-size:cover}";var f=r;var l="https://zonos-store-assets.s3.amazonaws.com/images/elements-flags";var c=t("zonos_country_flag",function(){function t(t){s(this,t);this.countryCode=i.selectedCountryCode;this.size=undefined}t.prototype.render=function(){if(!this.el.shadowRoot||!this.countryCode){return null}var t="".concat(l,"/").concat(this.countryCode,".svg");var s=a();return o(e,{class:"zonos--elements",style:this.size?{"--font-family":s,height:"".concat(this.size,"px"),width:"".concat(this.size,"px")}:{"--font-family":s}},o("div",{class:h(["flag-container"])},o("div",{class:"flag-icon",style:{backgroundImage:"url(".concat(t,")")}})))};Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());c.style=f}}}));
@@ -1 +1 @@
1
- System.register(["./p-2825570c.system.js","./p-520e8e63.system.js","./p-23e7c655.system.js","./p-2d404058.system.js","./p-abe7524f.system.js","./p-fc4da55c.system.js","./p-f4c38bfc.system.js"],(function(e){"use strict";var a,t,n,s,o,i,r,c,d;return{setters:[function(e){a=e.r;t=e.h;n=e.H},function(e){s=e.d},function(e){o=e.c},function(e){i=e.F;r=e.t;c=e.l},function(e){d=e.l},function(){},function(){}],execute:function(){var l=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .styled-card{border:var(--amino-border);border-radius:var(--amino-radius-6);padding:var(--spacing, var(--amino-space-24));text-align:left}:host .styled-card hr{margin-left:calc(var(--spacing, var(--amino-space-24)) * -1);margin-right:calc(var(--spacing, var(--amino-space-24)) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, var(--amino-space-24)) * -1);padding:var(--spacing, var(--amino-space-24));display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, var(--amino-space-24));border-bottom:var(--amino-border);height:65px;line-height:65px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .styled-card .card-header h5{margin-bottom:0;-ms-flex:1;flex:1}:host .styled-card .card-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:calc(var(--spacing, var(--amino-space-24)) * -1);padding:var(--spacing, var(--amino-space-24));border-top:var(--amino-border);background:var(--amino-surface-color-secondary);margin-top:var(--spacing, var(--amino-space-24));border-bottom-left-radius:var(--amino-radius-8);border-bottom-right-radius:var(--amino-radius-8);height:var(--footerHeight)}";var h=l;var f=e("zonos_card",function(){function e(e){a(this,e);this.actions=undefined;this.footerActions=undefined;this.footerContent=undefined;this.footerHeight=undefined;this.label=undefined;this.spacing="24px"}e.prototype.render=function(){return t(n,{key:"0d8b5af14b922c5bb4664a657da1f5f40dbb80c9",style:{"--font-family":s()}},t("div",{key:"4636de2659dac17eddf05aa9ce0e3b1b3091de65",class:o(["styled-card"]),style:{padding:this.spacing}},this.label&&t("header",{key:"591276139b808995cb26b54921bdbb1d55995fbb",class:"card-header",style:{padding:this.spacing}},t("zonos-text",{key:"017ca4195a3d2b9efdc337966203165a1f0f074d",type:"subheader"},this.label),t("h-stack",{key:"dc3a2c4ad7cb2a053819727fc5bff90d70438a25",spacing:8},this.actions)),t("slot",{key:"0f19e23f2744b2ccbfc5ca7d1aefebf7326ab649"}),(this.footerActions||this.footerContent)&&t("footer",{key:"fd0adb2b5146f0542c12b2628f011417911c54ec",class:"card-footer",style:{height:this.footerHeight?"".concat(this.footerHeight,"px"):"auto",padding:this.spacing}},t("div",{key:"82bc7d63eec3c3d716128740e86879a11befa0aa"},this.footerContent),t("h-stack",{key:"66261eaffa40882c5bd2255649325a16a5f65f7e",spacing:8},this.footerActions))))};return e}());f.style=h;var g='<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M7.99996 2.6665C5.05444 2.6665 2.66663 5.05432 2.66663 7.99984C2.66663 10.9454 5.05444 13.3332 7.99996 13.3332C10.9455 13.3332 13.3333 10.9454 13.3333 7.99984C13.3333 5.05432 10.9455 2.6665 7.99996 2.6665Z" fill="#AFF8C3"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M10.1403 6.10535C10.3582 6.27488 10.3975 6.58902 10.228 6.80699L8.01055 9.65797C7.76436 9.97449 7.29646 10.0036 7.01291 9.72008L5.81307 8.52024C5.61781 8.32498 5.61781 8.0084 5.81307 7.81314C6.00833 7.61787 6.32492 7.61787 6.52018 7.81314L7.45301 8.74597L9.43862 6.19305C9.60815 5.97508 9.92229 5.93581 10.1403 6.10535Z" fill="#246627"/>\n</svg>\n';var m=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--language-select{width:100%}:host .zonos--language-select .zonos--language-select-content{display:grid;grid-template-columns:repeat(3, minmax(-webkit-max-content, 1fr));grid-template-columns:repeat(3, minmax(max-content, 1fr));padding:var(--amino-space-16);padding-top:var(--amino-space-0)}:host .zonos--language-select .zonos--language-select-content .zonos--language-select-button{display:-ms-flexbox;display:flex;padding:var(--amino-space-8);gap:var(--amino-space-4);-ms-flex-align:center;align-items:center;border-radius:var(--amino-radius-4);cursor:pointer;width:100%;border:none;background:none}:host .zonos--language-select .zonos--language-select-content .zonos--language-select-button:hover{background:var(--amino-gray-100)}@media (max-width: 400px){:host .zonos--language-select .zonos--language-select-content{grid-template-columns:1fr 1fr}}";var u=m;var p=e("zonos_language_select",function(){function e(e){var t=this;a(this,e);this.languageSelected=function(e){void i(e);t.handleOnClose()};this.handleOnClose=function(){}}e.prototype.render=function(){var e=this;var a=c.selectedLocale;return t(n,{key:"c3185eaf7f8e73d1356d6cba5a7c7ba6da9db7f8",class:"zonos--elements",style:{"--font-family":s()}},t("div",{key:"59c2af417f20ee915dfddaa08c2a9f4288a5d040",class:"zonos--language-select"},t("zonos-select-dialog-header",{key:"2cc4a3bed8e5e2c89f8ef624a9a0d2e778da9005",handleOnClose:function(){return e.handleOnClose()},label:r("Select a language")}),t("div",{key:"b0bb95a16d56e344833f3d6ec3b23ae6d5b65270",class:"zonos--language-select-content"},d.map((function(n){return t("button",{class:"zonos--language-select-button",onClick:function(){return e.languageSelected(n.code)}},t("zonos-text",{textColor:"gray-800"},n.translatedLabel),n.code===a&&t("zonos-icon",{content:g,size:16}))})))))};return e}());p.style=u}}}));
1
+ System.register(["./p-2825570c.system.js","./p-520e8e63.system.js","./p-23e7c655.system.js","./p-86867593.system.js","./p-abe7524f.system.js","./p-fc4da55c.system.js","./p-f4c38bfc.system.js"],(function(e){"use strict";var a,t,n,s,o,i,r,c,d;return{setters:[function(e){a=e.r;t=e.h;n=e.H},function(e){s=e.d},function(e){o=e.c},function(e){i=e.G;r=e.t;c=e.l},function(e){d=e.l},function(){},function(){}],execute:function(){var l=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .styled-card{border:var(--amino-border);border-radius:var(--amino-radius-6);padding:var(--spacing, var(--amino-space-24));text-align:left}:host .styled-card hr{margin-left:calc(var(--spacing, var(--amino-space-24)) * -1);margin-right:calc(var(--spacing, var(--amino-space-24)) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, var(--amino-space-24)) * -1);padding:var(--spacing, var(--amino-space-24));display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, var(--amino-space-24));border-bottom:var(--amino-border);height:65px;line-height:65px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .styled-card .card-header h5{margin-bottom:0;-ms-flex:1;flex:1}:host .styled-card .card-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:calc(var(--spacing, var(--amino-space-24)) * -1);padding:var(--spacing, var(--amino-space-24));border-top:var(--amino-border);background:var(--amino-surface-color-secondary);margin-top:var(--spacing, var(--amino-space-24));border-bottom-left-radius:var(--amino-radius-8);border-bottom-right-radius:var(--amino-radius-8);height:var(--footerHeight)}";var h=l;var f=e("zonos_card",function(){function e(e){a(this,e);this.actions=undefined;this.footerActions=undefined;this.footerContent=undefined;this.footerHeight=undefined;this.label=undefined;this.spacing="24px"}e.prototype.render=function(){return t(n,{key:"0d8b5af14b922c5bb4664a657da1f5f40dbb80c9",style:{"--font-family":s()}},t("div",{key:"4636de2659dac17eddf05aa9ce0e3b1b3091de65",class:o(["styled-card"]),style:{padding:this.spacing}},this.label&&t("header",{key:"591276139b808995cb26b54921bdbb1d55995fbb",class:"card-header",style:{padding:this.spacing}},t("zonos-text",{key:"017ca4195a3d2b9efdc337966203165a1f0f074d",type:"subheader"},this.label),t("h-stack",{key:"dc3a2c4ad7cb2a053819727fc5bff90d70438a25",spacing:8},this.actions)),t("slot",{key:"0f19e23f2744b2ccbfc5ca7d1aefebf7326ab649"}),(this.footerActions||this.footerContent)&&t("footer",{key:"fd0adb2b5146f0542c12b2628f011417911c54ec",class:"card-footer",style:{height:this.footerHeight?"".concat(this.footerHeight,"px"):"auto",padding:this.spacing}},t("div",{key:"82bc7d63eec3c3d716128740e86879a11befa0aa"},this.footerContent),t("h-stack",{key:"66261eaffa40882c5bd2255649325a16a5f65f7e",spacing:8},this.footerActions))))};return e}());f.style=h;var g='<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M7.99996 2.6665C5.05444 2.6665 2.66663 5.05432 2.66663 7.99984C2.66663 10.9454 5.05444 13.3332 7.99996 13.3332C10.9455 13.3332 13.3333 10.9454 13.3333 7.99984C13.3333 5.05432 10.9455 2.6665 7.99996 2.6665Z" fill="#AFF8C3"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M10.1403 6.10535C10.3582 6.27488 10.3975 6.58902 10.228 6.80699L8.01055 9.65797C7.76436 9.97449 7.29646 10.0036 7.01291 9.72008L5.81307 8.52024C5.61781 8.32498 5.61781 8.0084 5.81307 7.81314C6.00833 7.61787 6.32492 7.61787 6.52018 7.81314L7.45301 8.74597L9.43862 6.19305C9.60815 5.97508 9.92229 5.93581 10.1403 6.10535Z" fill="#246627"/>\n</svg>\n';var m=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--language-select{width:100%}:host .zonos--language-select .zonos--language-select-content{display:grid;grid-template-columns:repeat(3, minmax(-webkit-max-content, 1fr));grid-template-columns:repeat(3, minmax(max-content, 1fr));padding:var(--amino-space-16);padding-top:var(--amino-space-0)}:host .zonos--language-select .zonos--language-select-content .zonos--language-select-button{display:-ms-flexbox;display:flex;padding:var(--amino-space-8);gap:var(--amino-space-4);-ms-flex-align:center;align-items:center;border-radius:var(--amino-radius-4);cursor:pointer;width:100%;border:none;background:none}:host .zonos--language-select .zonos--language-select-content .zonos--language-select-button:hover{background:var(--amino-gray-100)}@media (max-width: 400px){:host .zonos--language-select .zonos--language-select-content{grid-template-columns:1fr 1fr}}";var u=m;var p=e("zonos_language_select",function(){function e(e){var t=this;a(this,e);this.languageSelected=function(e){void i(e);t.handleOnClose()};this.handleOnClose=function(){}}e.prototype.render=function(){var e=this;var a=c.selectedLocale;return t(n,{key:"c3185eaf7f8e73d1356d6cba5a7c7ba6da9db7f8",class:"zonos--elements",style:{"--font-family":s()}},t("div",{key:"59c2af417f20ee915dfddaa08c2a9f4288a5d040",class:"zonos--language-select"},t("zonos-select-dialog-header",{key:"2cc4a3bed8e5e2c89f8ef624a9a0d2e778da9005",handleOnClose:function(){return e.handleOnClose()},label:r("Select a language")}),t("div",{key:"b0bb95a16d56e344833f3d6ec3b23ae6d5b65270",class:"zonos--language-select-content"},d.map((function(n){return t("button",{class:"zonos--language-select-button",onClick:function(){return e.languageSelected(n.code)}},t("zonos-text",{textColor:"gray-800"},n.translatedLabel),n.code===a&&t("zonos-icon",{content:g,size:16}))})))))};return e}());p.style=u}}}));