@zonos/elements 1.3.13-alpha.2 → 1.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{cart-b32bfb92.js → cart-5d196917.js} +3 -3
- package/dist/cjs/{getBorderRadius-4fa738c3.js → getBorderRadius-c8cc2bb3.js} +1 -1
- package/dist/cjs/{index-564fe383.js → index-3b4816ef.js} +20 -2
- package/dist/cjs/{isDarkColor-7faf0a82.js → isDarkColor-f5473002.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{sendErrorLog-5f732a8a.js → sendErrorLog-3e181984.js} +1 -1
- package/dist/cjs/{submitGtag-fe94f3a0.js → submitGtag-44e3a996.js} +2 -2
- package/dist/cjs/zonos-address_4.cjs.entry.js +13 -13
- package/dist/cjs/zonos-badge_2.cjs.entry.js +7 -7
- package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
- package/dist/cjs/zonos-button_2.cjs.entry.js +7 -7
- package/dist/cjs/zonos-card_2.cjs.entry.js +10 -10
- package/dist/cjs/zonos-cart-items_10.cjs.entry.js +17 -17
- package/dist/cjs/zonos-checkout.cjs.entry.js +7 -7
- package/dist/cjs/zonos-component.cjs.entry.js +2 -2
- package/dist/cjs/zonos-controller.cjs.entry.js +6 -6
- package/dist/cjs/zonos-country-flag.cjs.entry.js +5 -5
- package/dist/cjs/zonos-country-select_3.cjs.entry.js +14 -16
- package/dist/cjs/zonos-elements.cjs.js +2 -2
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +8 -8
- package/dist/cjs/zonos-hello.cjs.entry.js +5 -5
- package/dist/cjs/zonos-icon.cjs.entry.js +2 -2
- package/dist/cjs/zonos-link.cjs.entry.js +2 -2
- package/dist/cjs/zonos-logo.cjs.entry.js +4 -4
- package/dist/cjs/zonos-notification.cjs.entry.js +2 -2
- package/dist/cjs/zonos-payment.cjs.entry.js +6 -6
- package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +6 -6
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
- package/dist/cjs/zonos-text.cjs.entry.js +2 -2
- package/dist/cjs/{zonosStore-bd2a0c59.js → zonosStore-aee974e0.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +1 -1
- package/dist/collection/components/common/component-template/zonos-link/zonos-link.js +1 -1
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
- package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
- package/dist/collection/components/common/zonos-card/zonos-card.js +3 -3
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +3 -3
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/components/zonos-address2.js +1 -1
- package/dist/components/zonos-badge2.js +3 -3
- package/dist/components/zonos-button2.js +3 -3
- package/dist/components/zonos-card2.js +3 -3
- package/dist/components/zonos-checkbox2.js +3 -3
- package/dist/components/zonos-checkout-finish2.js +1 -1
- package/dist/components/zonos-checkout-footer2.js +2 -2
- package/dist/components/zonos-checkout-progress-tabs2.js +3 -3
- package/dist/components/zonos-collapse2.js +2 -2
- package/dist/components/zonos-component.js +1 -1
- package/dist/components/zonos-controller.js +1 -1
- package/dist/components/zonos-country-select2.js +5 -7
- package/dist/components/zonos-custom-message2.js +2 -2
- package/dist/components/zonos-dialog2.js +3 -3
- package/dist/components/zonos-hello-dialog-footer2.js +2 -2
- package/dist/components/zonos-hello-dialog2.js +3 -3
- package/dist/components/zonos-language-select2.js +2 -2
- package/dist/components/zonos-link-authentication2.js +1 -1
- package/dist/components/zonos-link.js +1 -1
- package/dist/components/zonos-logo.js +2 -2
- package/dist/components/zonos-payment2.js +1 -1
- package/dist/components/zonos-select-dialog-header2.js +2 -2
- package/dist/components/zonos-shipping2.js +1 -1
- package/dist/components/zonos-tooltip2.js +2 -2
- package/dist/components/zonos-v-stack2.js +2 -2
- package/dist/esm/{cart-9f9f26f9.js → cart-515aac56.js} +3 -3
- package/dist/esm/{getBorderRadius-a89e45fb.js → getBorderRadius-8129b0cb.js} +1 -1
- package/dist/esm/{index-dd40cc85.js → index-0e31d804.js} +20 -2
- package/dist/esm/{isDarkColor-6bf71e51.js → isDarkColor-7a6d2d14.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{sendErrorLog-283f65ab.js → sendErrorLog-e4546d7b.js} +1 -1
- package/dist/esm/{submitGtag-5847d1a1.js → submitGtag-6767c31f.js} +2 -2
- package/dist/esm/zonos-address_4.entry.js +13 -13
- package/dist/esm/zonos-badge_2.entry.js +7 -7
- package/dist/esm/zonos-banner.entry.js +2 -2
- package/dist/esm/zonos-button_2.entry.js +7 -7
- package/dist/esm/zonos-card_2.entry.js +10 -10
- package/dist/esm/zonos-cart-items_10.entry.js +17 -17
- package/dist/esm/zonos-checkout.entry.js +7 -7
- package/dist/esm/zonos-component.entry.js +2 -2
- package/dist/esm/zonos-controller.entry.js +6 -6
- package/dist/esm/zonos-country-flag.entry.js +5 -5
- package/dist/esm/zonos-country-select_3.entry.js +14 -16
- package/dist/esm/zonos-elements.js +3 -3
- package/dist/esm/zonos-hello-dialog.entry.js +8 -8
- package/dist/esm/zonos-hello.entry.js +5 -5
- package/dist/esm/zonos-icon.entry.js +2 -2
- package/dist/esm/zonos-link.entry.js +2 -2
- package/dist/esm/zonos-logo.entry.js +4 -4
- package/dist/esm/zonos-notification.entry.js +2 -2
- package/dist/esm/zonos-payment.entry.js +6 -6
- package/dist/esm/zonos-select-dialog-header_2.entry.js +6 -6
- package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
- package/dist/esm/zonos-text.entry.js +2 -2
- package/dist/esm/{zonosStore-c4c45591.js → zonosStore-f3eef64b.js} +1 -1
- package/dist/esm-es5/{cart-9f9f26f9.js → cart-515aac56.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-a89e45fb.js → getBorderRadius-8129b0cb.js} +1 -1
- package/dist/esm-es5/index-0e31d804.js +2 -0
- package/dist/esm-es5/{isDarkColor-6bf71e51.js → isDarkColor-7a6d2d14.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{sendErrorLog-283f65ab.js → sendErrorLog-e4546d7b.js} +1 -1
- package/dist/esm-es5/{submitGtag-5847d1a1.js → submitGtag-6767c31f.js} +1 -1
- package/dist/esm-es5/zonos-address_4.entry.js +1 -1
- package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_2.entry.js +1 -1
- package/dist/esm-es5/zonos-card_2.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-icon.entry.js +1 -1
- package/dist/esm-es5/zonos-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-notification.entry.js +1 -1
- package/dist/esm-es5/zonos-payment.entry.js +1 -1
- package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-c4c45591.js → zonosStore-f3eef64b.js} +1 -1
- package/dist/scripts/loadStripe.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/stripe.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/scripts/zonosBase.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.d.ts +1 -1
- package/dist/types/components/store/checkout/stripe.d.ts +1 -1
- package/dist/types/components/store/zonosStore.d.ts +1 -1
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/createCustomEvent.d.ts +1 -1
- package/dist/types/components/utils/darkenColor.d.ts +1 -1
- package/dist/types/components/utils/formatCurrency.d.ts +1 -1
- package/dist/types/components/utils/handleFetch.d.ts +1 -1
- package/dist/types/components/utils/lightenColor.d.ts +2 -2
- package/dist/types/components/utils/styles.d.ts +1 -2
- package/dist/types/environment.d.ts +2 -4
- package/dist/types/styles/stripe/defaultVariable.d.ts +1 -1
- package/dist/types/types/generated/graphql.customer.types.d.ts +17 -17
- package/dist/types/types/generated/graphql.frontend.types.d.ts +24 -24
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/{p-62c458ac.system.entry.js → p-05f749dc.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-160cdf4e.system.entry.js → p-0a0d45e9.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5c9c2973.system.entry.js → p-16b59229.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-eb1b1d4a.entry.js → p-1744bddb.entry.js} +1 -1
- package/dist/zonos-elements/{p-b5f28531.system.entry.js → p-17ded5a1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4515ec7b.entry.js → p-1f5c2d7b.entry.js} +1 -1
- package/dist/zonos-elements/p-2244534c.js +2 -0
- package/dist/zonos-elements/{p-ad499520.entry.js → p-257af88b.entry.js} +1 -1
- package/dist/zonos-elements/p-2825570c.system.js +2 -0
- package/dist/zonos-elements/{p-4d7b27af.system.entry.js → p-2aa3c0e8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3639f458.system.js → p-2d404058.system.js} +1 -1
- package/dist/zonos-elements/{p-215cd7ec.entry.js → p-2ee0d779.entry.js} +1 -1
- package/dist/zonos-elements/p-3b4225b2.entry.js +1 -0
- package/dist/zonos-elements/{p-20b080d1.system.entry.js → p-3d8254a2.system.entry.js} +1 -1
- package/dist/zonos-elements/p-3e38990b.entry.js +1 -0
- package/dist/zonos-elements/p-3f713699.entry.js +1 -0
- package/dist/zonos-elements/{p-e55d8394.system.entry.js → p-4029034e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b2d9dc9d.entry.js → p-418c056d.entry.js} +1 -1
- package/dist/zonos-elements/{p-f42bffad.system.entry.js → p-4f626a90.system.entry.js} +1 -1
- package/dist/zonos-elements/p-4fbd0ce6.entry.js +1 -0
- package/dist/zonos-elements/{p-15cd4a76.system.entry.js → p-509717bc.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-167b3369.system.js → p-520e8e63.system.js} +1 -1
- package/dist/zonos-elements/{p-72c6bf0f.entry.js → p-5ca09163.entry.js} +1 -1
- package/dist/zonos-elements/p-7aef7d5d.system.entry.js +1 -0
- package/dist/zonos-elements/p-808413f8.entry.js +1 -0
- package/dist/zonos-elements/{p-c5321a31.js → p-816f1aee.js} +1 -1
- package/dist/zonos-elements/{p-5a464374.system.js → p-882ec68e.system.js} +1 -1
- package/dist/zonos-elements/{p-f1037168.entry.js → p-8cb8fa93.entry.js} +1 -1
- package/dist/zonos-elements/{p-70c1f877.system.entry.js → p-8ec3995a.system.entry.js} +1 -1
- package/dist/zonos-elements/p-93698719.system.entry.js +1 -0
- package/dist/zonos-elements/{p-470284a3.entry.js → p-97534044.entry.js} +1 -1
- package/dist/zonos-elements/p-9da65d62.entry.js +1 -0
- package/dist/zonos-elements/{p-b62aee3d.entry.js → p-a48e7c84.entry.js} +1 -1
- package/dist/zonos-elements/{p-e237784c.system.entry.js → p-a583e3c6.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1d833f22.system.entry.js → p-a6bbf6de.system.entry.js} +1 -1
- package/dist/zonos-elements/p-aa5e2f7c.system.entry.js +1 -0
- package/dist/zonos-elements/p-aa671fa6.entry.js +1 -0
- package/dist/zonos-elements/p-ab06e5c8.system.entry.js +1 -0
- package/dist/zonos-elements/{p-6e81adba.system.js → p-b8e8330b.system.js} +1 -1
- package/dist/zonos-elements/{p-001518eb.system.entry.js → p-bc2bd266.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ad9c7245.system.js → p-bdd775f2.system.js} +1 -1
- package/dist/zonos-elements/{p-4c9367f1.entry.js → p-be022d8e.entry.js} +1 -1
- package/dist/zonos-elements/{p-f62b49aa.system.entry.js → p-c5bc49b5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-03da9e9d.js → p-ca6cf075.js} +1 -1
- package/dist/zonos-elements/{p-e3de496a.entry.js → p-cd449b56.entry.js} +1 -1
- package/dist/zonos-elements/{p-9a90fb56.js → p-d01576d7.js} +1 -1
- package/dist/zonos-elements/{p-6c5c5377.system.entry.js → p-d0d78094.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1bbdfae5.js → p-d41b5762.js} +1 -1
- package/dist/zonos-elements/{p-9726ff53.entry.js → p-d9aa8599.entry.js} +1 -1
- package/dist/zonos-elements/{p-a144d26a.system.entry.js → p-e1ac5b2a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-171eb334.entry.js → p-e703c902.entry.js} +1 -1
- package/dist/zonos-elements/{p-10dec8e6.entry.js → p-e9a41fd8.entry.js} +1 -1
- package/dist/zonos-elements/p-ed2e94d2.js +1 -0
- package/dist/zonos-elements/{p-c43da0c6.js → p-f0b4e58a.js} +1 -1
- package/dist/zonos-elements/p-f48a613e.system.entry.js +1 -0
- package/dist/zonos-elements/{p-41c2b1c5.system.js → p-f4c38bfc.system.js} +1 -1
- package/dist/zonos-elements/{p-86034f1e.system.js → p-fc4da55c.system.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/package.json +42 -40
- package/dist/esm-es5/index-dd40cc85.js +0 -2
- package/dist/zonos-elements/p-07022f11.js +0 -1
- package/dist/zonos-elements/p-07bb1bed.js +0 -2
- package/dist/zonos-elements/p-0b3cb5c2.system.entry.js +0 -1
- package/dist/zonos-elements/p-14c7d651.system.entry.js +0 -1
- package/dist/zonos-elements/p-29034d9c.entry.js +0 -1
- package/dist/zonos-elements/p-50777610.entry.js +0 -1
- package/dist/zonos-elements/p-52de4d70.system.js +0 -2
- package/dist/zonos-elements/p-6f5cc827.entry.js +0 -1
- package/dist/zonos-elements/p-76ac5680.system.entry.js +0 -1
- package/dist/zonos-elements/p-887bfef2.system.entry.js +0 -1
- package/dist/zonos-elements/p-9ab6e2b5.entry.js +0 -1
- package/dist/zonos-elements/p-b4a086e0.entry.js +0 -1
- package/dist/zonos-elements/p-e1bb026f.entry.js +0 -1
- package/dist/zonos-elements/p-f7da5199.system.entry.js +0 -1
- package/dist/zonos-elements/p-ff699d46.entry.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const zonosStore = require('./zonosStore-
|
|
4
|
-
const isDarkColor = require('./isDarkColor-
|
|
5
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
3
|
+
const zonosStore = require('./zonosStore-aee974e0.js');
|
|
4
|
+
const isDarkColor = require('./isDarkColor-f5473002.js');
|
|
5
|
+
const getBorderRadius = require('./getBorderRadius-c8cc2bb3.js');
|
|
6
6
|
|
|
7
7
|
const stringsArabic = {
|
|
8
8
|
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
@@ -584,17 +584,35 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
584
584
|
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
585
585
|
{
|
|
586
586
|
// remove attributes no longer present on the vnode by setting them to undefined
|
|
587
|
-
for (memberName
|
|
587
|
+
for (memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
588
588
|
if (!(memberName in newVnodeAttrs)) {
|
|
589
589
|
setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
593
|
// add new & update changed attributes
|
|
594
|
-
for (memberName
|
|
594
|
+
for (memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
595
595
|
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
|
|
596
596
|
}
|
|
597
597
|
};
|
|
598
|
+
/**
|
|
599
|
+
* Sort a list of attribute names to ensure that all the attribute names which
|
|
600
|
+
* are _not_ `"ref"` come before `"ref"`. Preserve the order of the non-ref
|
|
601
|
+
* attributes.
|
|
602
|
+
*
|
|
603
|
+
* **Note**: if the supplied attributes do not include `'ref'` then the same
|
|
604
|
+
* (by reference) array will be returned without modification.
|
|
605
|
+
*
|
|
606
|
+
* @param attrNames attribute names to sort
|
|
607
|
+
* @returns a list of attribute names, sorted if they include `"ref"`
|
|
608
|
+
*/
|
|
609
|
+
function sortedAttrNames(attrNames) {
|
|
610
|
+
return attrNames.includes('ref')
|
|
611
|
+
? // we need to sort these to ensure that `'ref'` is the last attr
|
|
612
|
+
[...attrNames.filter((attr) => attr !== 'ref'), 'ref']
|
|
613
|
+
: // no need to sort, return the original array
|
|
614
|
+
attrNames;
|
|
615
|
+
}
|
|
598
616
|
/**
|
|
599
617
|
* Create a DOM Node corresponding to one of the children of a given VNode.
|
|
600
618
|
*
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-3b4816ef.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const cart = require('./cart-
|
|
4
|
-
const zonosStore = require('./zonosStore-
|
|
3
|
+
const cart = require('./cart-5d196917.js');
|
|
4
|
+
const zonosStore = require('./zonosStore-aee974e0.js');
|
|
5
5
|
|
|
6
6
|
const trackConversionEvent = async (eventName, metadata) => {
|
|
7
7
|
var _a, _b;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const zonosStore = require('./zonosStore-
|
|
8
|
-
const sendErrorLog = require('./sendErrorLog-
|
|
5
|
+
const index = require('./index-3b4816ef.js');
|
|
6
|
+
const cart = require('./cart-5d196917.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-aee974e0.js');
|
|
8
|
+
const sendErrorLog = require('./sendErrorLog-3e181984.js');
|
|
9
9
|
const classes = require('./classes-b7918f56.js');
|
|
10
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
11
|
-
const isDarkColor = require('./isDarkColor-
|
|
10
|
+
const getBorderRadius = require('./getBorderRadius-c8cc2bb3.js');
|
|
11
|
+
const isDarkColor = require('./isDarkColor-f5473002.js');
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Check if the given address object contains non-latin characters
|
|
@@ -224,7 +224,7 @@ const ZonosAddress = class {
|
|
|
224
224
|
}
|
|
225
225
|
render() {
|
|
226
226
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
227
|
-
return (index.h(index.Host, { key: '
|
|
227
|
+
return (index.h(index.Host, { key: 'be43a9b0929211e2dd8e83950569caa12213ad91', class: "zonos--address zonos--elements" }, index.h("zonos-text", { key: '2a9214eae80832c2f706f3dc2e7c837c9f615dd6', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), index.h("div", { key: '70a039b36fe8550680c95338f1b225389f5c7fab', class: "zonos--address-component" }), this.invalidCharacterList && (index.h("zonos-banner", { key: 'a9cf6873645eb0ef68be0595d1f16483fccdf5df', bannerTitle: cart.translate('Please resolve the following errors:'), intent: "error" }, Object.keys(this.invalidCharacterList).map(fieldName => (index.h("zonos-text", null, `- ${cart.translate(mappedFields[fieldName])}: ${cart.translate('only supports Latin characters (A-Z, a-z)')}`)))))));
|
|
228
228
|
}
|
|
229
229
|
get el() { return index.getElement(this); }
|
|
230
230
|
static get watchers() { return {
|
|
@@ -272,14 +272,14 @@ const ZonosCheckbox = class {
|
|
|
272
272
|
? 'var(--amino-gray-800)'
|
|
273
273
|
: 'var(--amino-gray-0)';
|
|
274
274
|
const borderStyle = getBorderRadius.getBorderRadius(this.borderStyle, '4px');
|
|
275
|
-
return (index.h(index.Host, { key: '
|
|
275
|
+
return (index.h(index.Host, { key: '47b3b90b44f846e49de755f2c131e79da3f34c0f', class: classes.classes(['zonos--elements zonos--checkbox']), style: {
|
|
276
276
|
'--background-color': backgroundColor,
|
|
277
277
|
'--border-radius': borderStyle,
|
|
278
278
|
'--font-family': zonosStore.zonosStoreFontFamily(),
|
|
279
279
|
'--size': `${this.size}px`,
|
|
280
|
-
} }, index.h("label", { key: '
|
|
280
|
+
} }, index.h("label", { key: '6c1aac697aee17eb684d8416ae65092e3095fada', class: classes.classes([this.isDisabled && 'disabled']) }, index.h("input", { key: 'f75b6bff9ea136596af3489721096d862ea622c3', checked: this.isChecked, disabled: this.isDisabled, hidden: true, onChange: e => {
|
|
281
281
|
this.checkboxSelected.emit(e.target.checked);
|
|
282
|
-
}, type: "checkbox" }), index.h("span", { key: '
|
|
282
|
+
}, type: "checkbox" }), index.h("span", { key: '2a2dcd8e798fdd54daf43dedcb42dac3088a6dfc', class: "checkmark-container" }, index.h("svg", { key: 'e74713df9adc970d0a5b8d6374eb63e69c64ff1a', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: '3ae1a1a8f74a607ad5d4e4f940b45ac0b242426e', "clip-rule": "evenodd", d: "M17.456 7.404a.75.75 0 0 1 .14 1.052l-6.5 8.5a.75.75 0 0 1-1.126.074l-4-4a.75.75 0 0 1 1.06-1.06l3.395 3.394 5.98-7.82a.75.75 0 0 1 1.05-.14Z", fill: "currentColor", "fill-rule": "evenodd" }))), this.label && (index.h("zonos-text", { key: '25ff0a74e7ec6409e41d3f2998648f0c28a28ae0', size: this.fontSize }, this.label)))));
|
|
283
283
|
}
|
|
284
284
|
};
|
|
285
285
|
ZonosCheckbox.style = ZonosCheckboxStyle0;
|
|
@@ -329,10 +329,10 @@ const ZonosCollapse = class {
|
|
|
329
329
|
// set overflow to hidden to prevent content from showing when collapsed
|
|
330
330
|
this.el.style.overflow = 'hidden';
|
|
331
331
|
}
|
|
332
|
-
return (index.h(index.Host, { key: '
|
|
332
|
+
return (index.h(index.Host, { key: 'db574e5124dcd54045af65a6f429af3fddc501fd', class: 'zonos--elements zonos--collapse', style: {
|
|
333
333
|
'--font-family': zonosStore.zonosStoreFontFamily(),
|
|
334
334
|
height: this.getElementHeight(),
|
|
335
|
-
} }, index.h("div", { key: '
|
|
335
|
+
} }, index.h("div", { key: '9f773ededa3fb0b47b2dba74ef701fd8dc3af396' }, index.h("iframe", { key: '50a8449beb6272a854c34b859be04cdeea10f804', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), index.h("slot", { key: '5c0bd94dfe7bbb6a8dc20b1bac69e81ae7f99f76' }))));
|
|
336
336
|
}
|
|
337
337
|
get el() { return index.getElement(this); }
|
|
338
338
|
};
|
|
@@ -373,7 +373,7 @@ const ZonosLinkAuthentication = class {
|
|
|
373
373
|
}
|
|
374
374
|
render() {
|
|
375
375
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
376
|
-
return (index.h(index.Host, { key: '
|
|
376
|
+
return (index.h(index.Host, { key: '675de93a982a3cc558b64f24971441c227955e6f', class: "zonos--link-authentication zonos--elements" }, index.h("zonos-text", { key: 'd75a5a301e869325c9a249275ce10d4905c0198c', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), index.h("div", { key: 'fbf58d00fa76d7e715f2d1056a298840043e1056', class: "zonos--link-authentication-component" })));
|
|
377
377
|
}
|
|
378
378
|
get el() { return index.getElement(this); }
|
|
379
379
|
static get watchers() { return {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-3b4816ef.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-aee974e0.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const zonosBadgeCss = ":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 .zonos--badge-content{display:-ms-flexbox;display:flex;gap:var(--amino-space-8);font-size:var(--amino-font-size-s);padding:4px 8px;text-align:center;border-radius:var(--amino-radius-6);background-color:var(--amino-gray-100);color:var(--amino-gray-800);-ms-flex-align:center;align-items:center}:host p{font-weight:600;line-height:16px}:host .icon-right svg{-ms-flex-order:2;order:2}:host .small{padding:2px 8px}:host .rounded{border-radius:20px}:host .bold{background-color:var(--amino-gray-600);color:var(--amino-gray-100)}:host .blue{background-color:var(--amino-blue-100);color:var(--amino-blue-800)}:host .blue.bold{background-color:var(--amino-blue-600);color:var(--amino-blue-100)}:host .green{background-color:var(--amino-green-100);color:var(--amino-green-800)}:host .green.bold{background-color:var(--amino-green-600);color:var(--amino-green-100)}:host .red{background-color:var(--amino-red-100);color:var(--amino-red-800)}:host .red.bold{background-color:var(--amino-red-600);color:var(--amino-red-100)}:host .orange{background-color:var(--amino-orange-100);color:var(--amino-orange-800)}:host .orange.bold{background-color:var(--amino-orange-600);color:var(--amino-orange-100)}:host .purple{background-color:var(--amino-purple-100);color:var(--amino-purple-800)}:host .purple.bold{background-color:var(--amino-purple-600);color:var(--amino-purple-100)}:host .cyan{background-color:var(--amino-cyan-100);color:var(--amino-cyan-800)}:host .cyan.bold{background-color:var(--amino-cyan-600);color:var(--amino-cyan-100)}";
|
|
@@ -20,16 +20,16 @@ const ZonosBadge = class {
|
|
|
20
20
|
this.rounded = false;
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (index.h(index.Host, { key: '
|
|
23
|
+
return (index.h(index.Host, { key: '9113b76d0368284d8062ba73cb1433ae64648c56', class: classes.classes(['zonos--elements zonos--badge']), style: {
|
|
24
24
|
'--font-family': zonosStore.zonosStoreFontFamily(),
|
|
25
|
-
} }, index.h("div", { key: '
|
|
25
|
+
} }, index.h("div", { key: '0edaabad09319fa6cc2d5b02c304e5ed77d35eac', class: classes.classes([
|
|
26
26
|
'zonos--badge-content',
|
|
27
27
|
this.badgeColor,
|
|
28
28
|
this.rounded && 'rounded',
|
|
29
29
|
this.iconRight && 'icon-right',
|
|
30
30
|
this.size,
|
|
31
31
|
this.bold && 'bold',
|
|
32
|
-
]) }, this.icon, index.h("zonos-text", { key: '
|
|
32
|
+
]) }, this.icon, index.h("zonos-text", { key: '2d37289c26e12cb074ff7003032a1d417bbf1fdf' }, index.h("slot", { key: '2caa00a312b624d747dbe145b8673ced9118e49e' })))));
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
ZonosBadge.style = ZonosBadgeStyle0;
|
|
@@ -45,10 +45,10 @@ const ZonosTooltip = class {
|
|
|
45
45
|
this.showTooltip = false;
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (index.h(index.Host, { key: '
|
|
48
|
+
return (index.h(index.Host, { key: '5226e33bb8f9280965b254c51235c38e2e5f6ab6', class: "zonos--elements" }, index.h("div", { key: 'fd9bc052cc1081cbd87eaa3f4e6f0f53070c5b53', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, index.h("slot", { key: '82d9885a2afb7e28707ddf6b24cb7c2dc148ef33' }), index.h("div", { key: 'c59b3beaca558dc95149455c9a15a8ce26bb0d70', class: classes.classes([
|
|
49
49
|
this.showTooltip && 'zonos--show-tooltip',
|
|
50
50
|
'zonos--tooltip-content',
|
|
51
|
-
]) }, index.h("zonos-text", { key: '
|
|
51
|
+
]) }, index.h("zonos-text", { key: 'f5213ba0f401359e5bccd289df3eae18e7b18a1d', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), index.h("zonos-text", { key: '3bfad7df7cf6715230ffc0bc1c0b49b8900955b7', size: "xs", textColor: "gray-0" }, this.subtitle)))));
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
ZonosTooltip.style = ZonosTooltipStyle0;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-3b4816ef.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-aee974e0.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const zonosBannerCss = ":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{border-radius:var(--amino-radius-10);padding:var(--amino-space-16);background:var(--amino-gray-100)}:host .zonos--container{display:grid;-ms-flex-align:center;align-items:center;grid-template-areas:\"icon header\" \". content\";grid-template-columns:32px auto 0}:host .zonos--icon-wrapper{grid-area:icon;display:-ms-flexbox;display:flex;justify-self:start}:host .zonos--header-wrapper{margin-top:var(--amino-space-0);grid-area:header}:host .zonos--content-wrapper{grid-area:content;margin-top:var(--amino-space-4)}:host(.info){background-color:var(--amino-blue-100);border:1px solid var(--amino-blue-200)}:host(.success){background-color:var(--amino-green-100);border:1px solid var(--amino-green-200)}:host(.error){background-color:var(--amino-red-100);border:1px solid var(--amino-red-200)}:host(.warning){background-color:var(--amino-orange-100);border:1px solid var(--amino-orange-200)}";
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-3b4816ef.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-aee974e0.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
8
|
+
const getBorderRadius = require('./getBorderRadius-c8cc2bb3.js');
|
|
9
9
|
const isColorVariable = require('./isColorVariable-fff5e469.js');
|
|
10
|
-
const isDarkColor = require('./isDarkColor-
|
|
10
|
+
const isDarkColor = require('./isDarkColor-f5473002.js');
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Get theme for button text based on background color
|
|
@@ -100,12 +100,12 @@ const ZonosButton = class {
|
|
|
100
100
|
const spinnerColor = backgroundActualColor && isDarkColor.isDarkColor(backgroundActualColor)
|
|
101
101
|
? 'white'
|
|
102
102
|
: 'black';
|
|
103
|
-
return (index.h(index.Host, { key: '
|
|
103
|
+
return (index.h(index.Host, { key: '104b26d8b3fac6bafce6f5f852775af682d1b3f3', class: classes.classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles({
|
|
104
104
|
'--background-color': overrideBackground,
|
|
105
105
|
'--border-radius': borderStyle,
|
|
106
106
|
'--color': color,
|
|
107
107
|
'--font-family': zonosStore.zonosStoreFontFamily(),
|
|
108
|
-
}) }, index.h("button", { key: '
|
|
108
|
+
}) }, index.h("button", { key: '2ad1b59dd11e4460928b42f33e5d421e90f259d2', class: classes.classes([
|
|
109
109
|
this.hasIcon && 'has-icon',
|
|
110
110
|
this.hasContent && 'has-content',
|
|
111
111
|
this.noBackground && 'no-background',
|
|
@@ -118,7 +118,7 @@ const ZonosButton = class {
|
|
|
118
118
|
overrideBackground &&
|
|
119
119
|
variant === 'standard' &&
|
|
120
120
|
'override-background',
|
|
121
|
-
]), disabled: disabled }, this.loading && (index.h("div", { class: "zonos--spinner-wrapper" }, index.h("zonos-spinner", { size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, index.h("slot", { key: '
|
|
121
|
+
]), disabled: disabled }, this.loading && (index.h("div", { key: '2849e63aa713c682e61a4a0c95e9bd5e0f5f8892', class: "zonos--spinner-wrapper" }, index.h("zonos-spinner", { key: '7040089b82edd821ae997f39fbbab50c0e523924', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, index.h("slot", { key: 'b20b86b70bbb180f45880ffaf1fd13751fc4682f', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
|
|
122
122
|
}
|
|
123
123
|
get ele() { return index.getElement(this); }
|
|
124
124
|
static get watchers() { return {
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-3b4816ef.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-aee974e0.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const cart = require('./cart-
|
|
8
|
+
const cart = require('./cart-5d196917.js');
|
|
9
9
|
const ILanguage = require('./ILanguage-d247b45b.js');
|
|
10
|
-
require('./isDarkColor-
|
|
11
|
-
require('./getBorderRadius-
|
|
10
|
+
require('./isDarkColor-f5473002.js');
|
|
11
|
+
require('./getBorderRadius-c8cc2bb3.js');
|
|
12
12
|
|
|
13
13
|
const zonosCardCss = ":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)}";
|
|
14
14
|
const ZonosCardStyle0 = zonosCardCss;
|
|
@@ -24,12 +24,12 @@ const ZonosCard = class {
|
|
|
24
24
|
this.spacing = '24px';
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
|
-
return (index.h(index.Host, { key: '
|
|
27
|
+
return (index.h(index.Host, { key: '0d8b5af14b922c5bb4664a657da1f5f40dbb80c9', style: {
|
|
28
28
|
'--font-family': zonosStore.zonosStoreFontFamily(),
|
|
29
|
-
} }, index.h("div", { key: '
|
|
29
|
+
} }, index.h("div", { key: '4636de2659dac17eddf05aa9ce0e3b1b3091de65', class: classes.classes(['styled-card']), style: { padding: this.spacing } }, this.label && (index.h("header", { key: '591276139b808995cb26b54921bdbb1d55995fbb', class: "card-header", style: { padding: this.spacing } }, index.h("zonos-text", { key: '017ca4195a3d2b9efdc337966203165a1f0f074d', type: "subheader" }, this.label), index.h("h-stack", { key: 'dc3a2c4ad7cb2a053819727fc5bff90d70438a25', spacing: 8 }, this.actions))), index.h("slot", { key: '0f19e23f2744b2ccbfc5ca7d1aefebf7326ab649' }), (this.footerActions || this.footerContent) && (index.h("footer", { key: 'fd0adb2b5146f0542c12b2628f011417911c54ec', class: "card-footer", style: {
|
|
30
30
|
height: this.footerHeight ? `${this.footerHeight}px` : 'auto',
|
|
31
31
|
padding: this.spacing,
|
|
32
|
-
} }, index.h("div",
|
|
32
|
+
} }, index.h("div", { key: '82bc7d63eec3c3d716128740e86879a11befa0aa' }, this.footerContent), index.h("h-stack", { key: '66261eaffa40882c5bd2255649325a16a5f65f7e', spacing: 8 }, this.footerActions))))));
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
ZonosCard.style = ZonosCardStyle0;
|
|
@@ -55,9 +55,9 @@ const ZonosLanguageSelect = class {
|
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
57
|
const { selectedLocale } = cart.localizationStore;
|
|
58
|
-
return (index.h(index.Host, { key: '
|
|
58
|
+
return (index.h(index.Host, { key: 'c3185eaf7f8e73d1356d6cba5a7c7ba6da9db7f8', class: "zonos--elements", style: {
|
|
59
59
|
'--font-family': zonosStore.zonosStoreFontFamily(),
|
|
60
|
-
} }, index.h("div", { key: '
|
|
60
|
+
} }, index.h("div", { key: '59c2af417f20ee915dfddaa08c2a9f4288a5d040', class: "zonos--language-select" }, index.h("zonos-select-dialog-header", { key: '2cc4a3bed8e5e2c89f8ef624a9a0d2e778da9005', handleOnClose: () => this.handleOnClose(), label: cart.translate('Select a language') }), index.h("div", { key: 'b0bb95a16d56e344833f3d6ec3b23ae6d5b65270', class: "zonos--language-select-content" }, ILanguage.languages.map(language => (index.h("button", { class: "zonos--language-select-button", onClick: () => this.languageSelected(language.code) }, index.h("zonos-text", { textColor: "gray-800" }, language.translatedLabel), language.code === selectedLocale && (index.h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 16 })))))))));
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
63
|
ZonosLanguageSelect.style = ZonosLanguageSelectStyle0;
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const zonosStore = require('./zonosStore-
|
|
8
|
-
const submitGtag = require('./submitGtag-
|
|
9
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
10
|
-
const sendErrorLog = require('./sendErrorLog-
|
|
5
|
+
const index = require('./index-3b4816ef.js');
|
|
6
|
+
const cart = require('./cart-5d196917.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-aee974e0.js');
|
|
8
|
+
const submitGtag = require('./submitGtag-44e3a996.js');
|
|
9
|
+
const getBorderRadius = require('./getBorderRadius-c8cc2bb3.js');
|
|
10
|
+
const sendErrorLog = require('./sendErrorLog-3e181984.js');
|
|
11
11
|
const classes = require('./classes-b7918f56.js');
|
|
12
12
|
const ILanguage = require('./ILanguage-d247b45b.js');
|
|
13
|
-
const isDarkColor = require('./isDarkColor-
|
|
13
|
+
const isDarkColor = require('./isDarkColor-f5473002.js');
|
|
14
14
|
const isColorVariable = require('./isColorVariable-fff5e469.js');
|
|
15
15
|
|
|
16
16
|
const formatCurrency = ({ amount, currency, showCurrencyText, }) => showCurrencyText
|
|
@@ -244,7 +244,7 @@ const ZonosCheckoutFinish = class {
|
|
|
244
244
|
// }, 0);
|
|
245
245
|
return (index.h(index.Host, { key: '8c2087b3a0578cbbd7979fff5e6b696a4325e548', class: "zonos--checkout-finish zonos--elements", style: {
|
|
246
246
|
'--border-radius': getBorderRadius.getBorderRadius(this.borderRadius),
|
|
247
|
-
} }, this.isLoading && (index.h("div", { class: "loading-wrapper" }, index.h("zonos-spinner",
|
|
247
|
+
} }, this.isLoading && (index.h("div", { key: 'dd86d26aee1eb604b8e9b2e7328706db43c80467', class: "loading-wrapper" }, index.h("zonos-spinner", { key: 'a2f07a512a1d45df0be48461b0e989681b6cb78d' }))), !this.isLoading && (index.h(index.Fragment, null, index.h("div", { key: 'f147c24eefb4aa36ed556c581c2f64a096dbe17b', class: "zonos--group" }, this.notificationType === 'success' ? (index.h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (index.h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon$1, iconColor: 'red-800', size: 50 })), index.h("zonos-text", { key: '33a02654ede8a7ef7d884b0138c6e2c96406372f', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), index.h("zonos-text", { key: 'c179ac24421803973ae8509a338cc34a4c80ac54' }, this.notificationMessages.map(message => (index.h(index.Fragment, null, message, index.h("br", null))))), index.h("zonos-button", { key: '488594968d4e957856218b0f804ed9b9947102aa', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, cart.translate('Keep shopping')))))));
|
|
248
248
|
}
|
|
249
249
|
static get assetsDirs() { return ["assets"]; }
|
|
250
250
|
};
|
|
@@ -292,10 +292,10 @@ const ZonosCheckoutFooter = class {
|
|
|
292
292
|
const languageLabel = (_a = ILanguage.languages.find(x => x.code === cart.localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
|
|
293
293
|
// reverse color when on desktop. With the coversheet backdrop, the color should be white
|
|
294
294
|
const colorDesktop = this.dataTheme === 'LIGHT' && !this.mobile ? 'gray-0' : 'gray-1200';
|
|
295
|
-
return (index.h(index.Host, { key: '
|
|
295
|
+
return (index.h(index.Host, { key: 'fae1e5cb1250e834ecf3b09f11785ddea61be3b2', class: classes.classes(['zonos--elements', this.isMobile && 'mobile']) }, index.h("div", { key: 'f3d48fcc675458dd38ca48e21f24a003b5ff9b56', class: "zonos--checkout-footer" }, index.h("div", { key: '97daec871630cf2bb33956b668abee2e715eceb5', class: "zonos--checkout-locale-wrapper" }, index.h("zonos-button", { key: 'cd6e12e8d1320e3e6542eef16f15ab27921748c3', buttonColor: colorDesktop, class: "zonos--checkout-footer-language-button", icon: index.h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, languageLabel), index.h("div", { key: 'bdc6d9311d2d039e87c261ead45474b7bf1fe992', class: classes.classes([
|
|
296
296
|
'zonos--checkout-footer-dialog',
|
|
297
297
|
this.showLanguageDialog && 'zonos--checkout-footer-dialog-open',
|
|
298
|
-
]) }, index.h("zonos-language-select", { key: '
|
|
298
|
+
]) }, index.h("zonos-language-select", { key: '7318bb4137e160e9ed05a423fb80f1806c4f0104', handleOnClose: () => this.toggleLanguageDialog() }))), index.h("div", { key: '55c76c6cf6777407532c00cf167d59e3cefc5eab', class: "zonos--checkout-footer-icon-wrapper" }, index.h("zonos-text", { key: '41a7fae5a1a08d22b91341ccfcc0df9daeeb8f82', textColor: colorDesktop, type: "caption" }, "Powered by"), index.h("a", { key: '394e19392718d2a40a351692fa358f8f86366b46', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, index.h("zonos-icon", { key: '4d8cadbb7c26e8f7888caad2b158d521ab504590', autoHeight: true, content: ZonosIcon, iconColor: colorDesktop, size: 108 }))))));
|
|
299
299
|
}
|
|
300
300
|
get el() { return index.getElement(this); }
|
|
301
301
|
static get watchers() { return {
|
|
@@ -428,17 +428,17 @@ const ZonosCheckoutProgressTabs = class {
|
|
|
428
428
|
color: labelSelectedColor,
|
|
429
429
|
})
|
|
430
430
|
: labelSelectedColor;
|
|
431
|
-
return (index.h(index.Host, { key: '
|
|
431
|
+
return (index.h(index.Host, { key: '508d496a46dc5c97d68326e079a344f677f9cfc2', class: "zonos--elements", style: {
|
|
432
432
|
'--color': contrastLabelColor,
|
|
433
433
|
'--progress-percent': this.getTotalSuccessStep(),
|
|
434
|
-
} }, index.h("div", { key: '
|
|
434
|
+
} }, index.h("div", { key: '35892f4230914211d8aecde8bbc99fffebe44f47', class: "zonos--tab-wrapper" }, Object.values(cart.cartStore.tabItems).map((tab, index$1) => {
|
|
435
435
|
const isSelected = tab.value === selectedStep;
|
|
436
436
|
return (index.h("button", { class: classes.classes([
|
|
437
437
|
'zonos--tab-item',
|
|
438
438
|
tab.value === selectedStep && 'selected',
|
|
439
439
|
tab.isDone && 'done',
|
|
440
440
|
]), disabled: !this.isTabClickable(tab.value), key: tab.value, onClick: () => (cart.cartStore.step = tab.value) }, index.h("div", { class: "zonos--tab-index" }, index.h("zonos-text", { class: "zonos--tab-index-label", textColor: isSelected ? contrastLabelColor : 'gray-1200', type: "label" }, index$1 + 1), index.h("zonos-icon", { class: "zonos--tab-index-done-icon", content: TabCheckmark, iconColor: isSelected ? contrastLabelColor : 'gray-1200' })), index.h("zonos-text", { textColor: isSelected ? contrastLabelColor : 'gray-1200', type: "label" }, cart.translate(tab.label))));
|
|
441
|
-
})), index.h("div", { key: '
|
|
441
|
+
})), index.h("div", { key: '475526f811089f65ecfa1d81348f22e77662e565', class: "zonos--tab-progress" }, index.h("div", { key: 'b45d8170d733043c66e7d6e8f52874f3ccfa0274', class: "zonos--progress-bar-fill" }))));
|
|
442
442
|
}
|
|
443
443
|
static get assetsDirs() { return ["assets"]; }
|
|
444
444
|
get ele() { return index.getElement(this); }
|
|
@@ -562,7 +562,7 @@ const ZonosDialog = class {
|
|
|
562
562
|
document.body.style.overflow = 'auto';
|
|
563
563
|
}
|
|
564
564
|
const borderStyle = getBorderRadius.getBorderRadius(this.borderStyle);
|
|
565
|
-
return (index.h(index.Host, { key: '
|
|
565
|
+
return (index.h(index.Host, { key: 'b2f500bb70769f6d14d7e4002e5b11fe854e3bd1', class: classes.classes([
|
|
566
566
|
'zonos--elements',
|
|
567
567
|
this.open && 'open',
|
|
568
568
|
this.isLoading && 'is-loading',
|
|
@@ -573,10 +573,10 @@ const ZonosDialog = class {
|
|
|
573
573
|
'--font-family': zonosStore.zonosStoreFontFamily(),
|
|
574
574
|
'--height': this.height || 'initial',
|
|
575
575
|
'--width': this.width,
|
|
576
|
-
} }, index.h("div", { key: '
|
|
576
|
+
} }, index.h("div", { key: '9715c4765caee524a8030b2baa9352e44d0eeec0', class: "zonos--backdrop" }), index.h("div", { key: '05357a1ab95c995a35602517555f33e14c712bcc', "aria-hidden": "true", class: "zonos--dialog-layout", onClick: this.clickOutsideDialogHandler }, index.h("div", { key: '6acbd0635fcfb95910c20db9d1803a3c2685f4ac', class: "zonos--dialog" }, this.isLoading && (index.h("div", { key: '5a94b2d158ffdd5c1d5b4b6e2d1cca60ff31fb10', class: "zonos--loading" }, index.h("zonos-spinner", { key: '80fe57fea64e1ac4a5eb286fe19c327230748837', size: 30 }))), (this.headerText || !this.noCloseButton) && (index.h("div", { key: '773b53526fc24469e41e927d50a0aadbc8470a4a', class: "zonos--header" }, this.headerText && (index.h("h3", { key: '9e9a754fdc82900b720ac5289b83d0217eb89517', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (index.h("zonos-button", { key: '4525da6839849fd972f9b470e280f176803921ed', class: "zonos--close-button", icon: index.h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler })))), index.h("div", { key: '1c9ff5924f0fa9cdb7753fbcf0c2dc51171535b0', class: classes.classes([
|
|
577
577
|
'zonos--body',
|
|
578
578
|
this.noBodyPadding && 'zonos--no-body-padding',
|
|
579
|
-
]) }, index.h("slot", { key: '
|
|
579
|
+
]) }, index.h("slot", { key: '96b0c127f550413a5108a6f87a8397a0c6e01e64' })), index.h("slot", { key: 'a5c64424aadb3a56682de39b497ecc0eafdf3de7', name: "dialog-footer" })))));
|
|
580
580
|
}
|
|
581
581
|
static get assetsDirs() { return ["assets"]; }
|
|
582
582
|
};
|
|
@@ -716,7 +716,7 @@ const ZonosShipping = class {
|
|
|
716
716
|
}
|
|
717
717
|
render() {
|
|
718
718
|
var _a, _b;
|
|
719
|
-
return (index.h(index.Host, { key: '
|
|
719
|
+
return (index.h(index.Host, { key: '0ded6474793fbb142e8e9a3bc10f1b5ae88858a7', class: "zonos--shipping zonos--elements" }, index.h("div", { key: '334d49db61fe69bf43f2bf68828c724cb7c9851e', class: "zonos--group" }, index.h("zonos-text", { key: '57ac7f10aff623a7e9c009bee86a4e88c979417f', class: "zonos--title", type: "semiBoldSubheader" }, cart.translate('Shipping information')), index.h("zonos-text", { key: 'bb7679250828b859f90940617dc03c20addb6252', class: "zonos--shipping-method-title", type: "semiBoldLabel" }, cart.translate('Shipping method')), !((_a = this.serviceLevels) === null || _a === void 0 ? void 0 : _a.length) ? (index.h("zonos-banner", { bannerTitle: cart.translate('No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.'), intent: "error" })) : (index.h("zonos-shipping-rich-radio", { initialSelectedValue: (_b = this.selectedShippingMethod) === null || _b === void 0 ? void 0 : _b.value, items: this.serviceLevels, onRadioSelected: e => this.handleRadioSelected(e) })), index.h("div", { key: 'ace80fcc503601d577fb7751777b00331c027f16', class: "zonos--group-btn" }, index.h("zonos-button", { key: 'd48000ef65953b5f99d95c4b404bb7a47351dbce', backgroundColor: this.submitBtnColor, isDisabled: this.disabled, loading: this.continueLoading || this.isSelecting, onClick: () => this.continueClickHandler(), size: "lg",
|
|
720
720
|
// use primary type when on mobile mode
|
|
721
721
|
variant: this.submitBtnType }, cart.translate('Go to payment'))))));
|
|
722
722
|
}
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const zonosStore = require('./zonosStore-
|
|
8
|
-
const submitGtag = require('./submitGtag-
|
|
9
|
-
const sendErrorLog = require('./sendErrorLog-
|
|
5
|
+
const index = require('./index-3b4816ef.js');
|
|
6
|
+
const cart = require('./cart-5d196917.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-aee974e0.js');
|
|
8
|
+
const submitGtag = require('./submitGtag-44e3a996.js');
|
|
9
|
+
const sendErrorLog = require('./sendErrorLog-3e181984.js');
|
|
10
10
|
const classes = require('./classes-b7918f56.js');
|
|
11
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
12
|
-
const isDarkColor = require('./isDarkColor-
|
|
11
|
+
const getBorderRadius = require('./getBorderRadius-c8cc2bb3.js');
|
|
12
|
+
const isDarkColor = require('./isDarkColor-f5473002.js');
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* This is just function to make the key typesafe to enter
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-3b4816ef.js');
|
|
6
6
|
|
|
7
7
|
function format(first, middle, last) {
|
|
8
8
|
return ((first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : ''));
|
|
@@ -22,7 +22,7 @@ const ZonosComponent = class {
|
|
|
22
22
|
return format(this.first, this.middle, this.last);
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return index.h("div", { key: '
|
|
25
|
+
return index.h("div", { key: '4d80a174a7fa12f620fc831eb7fe3f5ad8ad575b' }, "Hello, World! I'm ", this.getText());
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
ZonosComponent.style = ZonosComponentStyle0;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const zonosStore = require('./zonosStore-
|
|
8
|
-
require('./isDarkColor-
|
|
9
|
-
require('./getBorderRadius-
|
|
5
|
+
const index = require('./index-3b4816ef.js');
|
|
6
|
+
const cart = require('./cart-5d196917.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-aee974e0.js');
|
|
8
|
+
require('./isDarkColor-f5473002.js');
|
|
9
|
+
require('./getBorderRadius-c8cc2bb3.js');
|
|
10
10
|
|
|
11
11
|
const getZonosSettings = async () => {
|
|
12
12
|
const url = `${"https://v1.route.js.zonos.com"}/api/zonos-elements/zonos-settings`;
|
|
@@ -269,7 +269,7 @@ const ZonosController = class {
|
|
|
269
269
|
zonosStore.zonosStore.organizationName = organizationName;
|
|
270
270
|
}
|
|
271
271
|
render() {
|
|
272
|
-
return index.h(index.Host, { key: '
|
|
272
|
+
return index.h(index.Host, { key: 'e0869cf08934b9d047adef9875c9a5f50d604bdf', class: "zonos--elements" });
|
|
273
273
|
}
|
|
274
274
|
};
|
|
275
275
|
ZonosController.style = ZonosControllerStyle0;
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-3b4816ef.js');
|
|
6
|
+
const cart = require('./cart-5d196917.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-aee974e0.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
|
-
require('./isDarkColor-
|
|
10
|
-
require('./getBorderRadius-
|
|
9
|
+
require('./isDarkColor-f5473002.js');
|
|
10
|
+
require('./getBorderRadius-c8cc2bb3.js');
|
|
11
11
|
|
|
12
12
|
const zonosCountryFlagCss = ":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}";
|
|
13
13
|
const ZonosCountryFlagStyle0 = zonosCountryFlagCss;
|