@zonos/elements 1.3.289 → 1.3.290
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-WLQb2hbe.js → cart-7DceSLKl.js} +3 -3
- package/dist/cjs/{collect-B92uIdsY.js → collect-C08DUE1L.js} +3 -3
- package/dist/cjs/{debounce-5sZmmlCI.js → debounce-Cd2emZPn.js} +2 -2
- package/dist/cjs/{debounce-Nu2lJW4A.js → debounce-vY0QYT6o.js} +1 -1
- package/dist/cjs/{getBorderRadius-DGZiQu09.js → getBorderRadius-CyYZw4qq.js} +1 -1
- package/dist/cjs/{getMissingRequiredShippingFields-5w62gTIB.js → getMissingRequiredShippingFields-Duz8xpmf.js} +1 -1
- package/dist/cjs/{hasInclusivePrice-hmV0Inld.js → hasInclusivePrice-C-iyXqJ0.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{invoice-Bal1mqYR.js → invoice-DSuHUQpi.js} +3 -3
- package/dist/cjs/{localization-C5HPlCNK.js → localization-BJqYz_PB.js} +1 -1
- package/dist/cjs/{paypal-o164C26_.js → paypal-CZoctP9S.js} +4 -4
- package/dist/cjs/{placeTestOrder-C7tAipav.js → placeTestOrder-D7baFuaV.js} +2 -2
- package/dist/cjs/{renderCheckoutCurrency-Bpx-vrTQ.js → renderCheckoutCurrency-Ca2HH1Gc.js} +2 -2
- package/dist/cjs/{shouldShowLanguageSelect-CtwkMt8b.js → shouldShowLanguageSelect-FyTdz7U_.js} +1 -1
- package/dist/cjs/{submitGtag-CcEL-w5D.js → submitGtag-D79e8u6s.js} +1 -1
- package/dist/cjs/{throttle-BcxGntLr.js → throttle-zSVRQLC0.js} +2 -2
- package/dist/cjs/{updateCheckoutSessionAttributes-Dltl5RBx.js → updateCheckoutSessionAttributes-jMtfOL2m.js} +1 -1
- package/dist/cjs/zonos-address-completion-dialog_7.cjs.entry.js +7 -7
- package/dist/cjs/zonos-address-display_2.cjs.entry.js +3 -3
- package/dist/cjs/zonos-address_4.cjs.entry.js +6 -6
- package/dist/cjs/zonos-airwallex-payment.cjs.entry.js +5 -5
- package/dist/cjs/zonos-badge.cjs.entry.js +1 -1
- package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
- package/dist/cjs/zonos-button_3.cjs.entry.js +2 -2
- package/dist/cjs/zonos-card_5.cjs.entry.js +6 -6
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +14 -14
- package/dist/cjs/zonos-checkbox_2.cjs.entry.js +2 -2
- package/dist/cjs/zonos-checkout.cjs.entry.js +9 -9
- package/dist/cjs/zonos-collapse.cjs.entry.js +1 -1
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +4 -4
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +10 -10
- package/dist/cjs/zonos-collect.cjs.entry.js +7 -7
- package/dist/cjs/zonos-controller.cjs.entry.js +5 -5
- package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +3 -3
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +3 -3
- package/dist/cjs/zonos-hello.cjs.entry.js +129 -51
- package/dist/cjs/zonos-input.cjs.entry.js +2 -2
- package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +6 -6
- package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +10 -10
- package/dist/cjs/zonos-invoice.cjs.entry.js +7 -7
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +2 -2
- package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
- package/dist/cjs/zonos-policy-consent_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +2 -2
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +2 -2
- package/dist/cjs/zonos-text.cjs.entry.js +1 -1
- package/dist/cjs/zonos-v-stack.cjs.entry.js +1 -1
- package/dist/cjs/{zonosStore-BCNYr6Tk.js → zonosStore-Bx9jK82G.js} +2 -0
- package/dist/collection/components/hello/zonos-hello/zonos-hello.css +17 -15
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +29 -52
- package/dist/collection/components/store/zonosStore.js +2 -0
- package/dist/collection/components/utils/hello/resolveHelloFloatPlacement.js +98 -0
- package/dist/collection/types/generated/graphql.internal.types.js +176 -9
- package/dist/esm/{cart-BDc4RTBJ.js → cart-Cleo1j5P.js} +3 -3
- package/dist/esm/{collect-NRCK3t-M.js → collect-CspdWIRo.js} +3 -3
- package/dist/esm/{debounce-D4ko2kvZ.js → debounce-BR3PaG8X.js} +1 -1
- package/dist/esm/{debounce-DWPsxJsW.js → debounce-CrmpwbEE.js} +2 -2
- package/dist/esm/{getBorderRadius-HwG64EKM.js → getBorderRadius-DYfkeXdx.js} +1 -1
- package/dist/esm/{getMissingRequiredShippingFields-D-B-N1NH.js → getMissingRequiredShippingFields-B1IL1-gn.js} +1 -1
- package/dist/esm/{hasInclusivePrice-Bti4iudO.js → hasInclusivePrice-DKRplpLX.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{invoice-DsvQvu4a.js → invoice-D49igPQ9.js} +3 -3
- package/dist/esm/{localization-Bs6hVcKV.js → localization-BiL8bPsY.js} +1 -1
- package/dist/esm/{paypal-BqyEZS_u.js → paypal-D4vWRxHJ.js} +4 -4
- package/dist/esm/{placeTestOrder-x3xwMAnW.js → placeTestOrder-BNmc5RCo.js} +2 -2
- package/dist/esm/{renderCheckoutCurrency-DIBdWKN1.js → renderCheckoutCurrency-BNbwijGo.js} +2 -2
- package/dist/esm/{shouldShowLanguageSelect-Bb9sbQ41.js → shouldShowLanguageSelect-B82gTfHz.js} +1 -1
- package/dist/esm/{submitGtag-CCGQS060.js → submitGtag-df9AQ2zL.js} +1 -1
- package/dist/esm/{throttle-D5GyA3yr.js → throttle-Cvlvb-dm.js} +2 -2
- package/dist/esm/{updateCheckoutSessionAttributes-eRSqdC74.js → updateCheckoutSessionAttributes-4Jq6V4pO.js} +1 -1
- package/dist/esm/zonos-address-completion-dialog_7.entry.js +7 -7
- package/dist/esm/zonos-address-display_2.entry.js +3 -3
- package/dist/esm/zonos-address_4.entry.js +6 -6
- package/dist/esm/zonos-airwallex-payment.entry.js +5 -5
- package/dist/esm/zonos-badge.entry.js +1 -1
- package/dist/esm/zonos-banner.entry.js +1 -1
- package/dist/esm/zonos-button_3.entry.js +2 -2
- package/dist/esm/zonos-card_5.entry.js +6 -6
- package/dist/esm/zonos-cart-items_12.entry.js +14 -14
- package/dist/esm/zonos-checkbox_2.entry.js +2 -2
- package/dist/esm/zonos-checkout.entry.js +9 -9
- package/dist/esm/zonos-collapse.entry.js +1 -1
- package/dist/esm/zonos-collect-cart-items_3.entry.js +4 -4
- package/dist/esm/zonos-collect-finish_6.entry.js +10 -10
- package/dist/esm/zonos-collect.entry.js +7 -7
- package/dist/esm/zonos-controller.entry.js +5 -5
- package/dist/esm/zonos-country-flag.entry.js +2 -2
- package/dist/esm/zonos-country-select_4.entry.js +3 -3
- package/dist/esm/zonos-hello-dialog.entry.js +3 -3
- package/dist/esm/zonos-hello.entry.js +129 -51
- package/dist/esm/zonos-input.entry.js +2 -2
- package/dist/esm/zonos-invoice-cart-items_2.entry.js +6 -6
- package/dist/esm/zonos-invoice-finish_5.entry.js +10 -10
- package/dist/esm/zonos-invoice.entry.js +7 -7
- package/dist/esm/zonos-language-select_2.entry.js +2 -2
- package/dist/esm/zonos-logo.entry.js +1 -1
- package/dist/esm/zonos-policy-consent_2.entry.js +5 -5
- package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
- package/dist/esm/zonos-stripe-input.entry.js +2 -2
- package/dist/esm/zonos-text.entry.js +1 -1
- package/dist/esm/zonos-v-stack.entry.js +1 -1
- package/dist/esm/{zonosStore-DrIOAz4M.js → zonosStore-msUlqmSD.js} +2 -0
- package/dist/esm-es5/{cart-BDc4RTBJ.js → cart-Cleo1j5P.js} +8 -8
- package/dist/esm-es5/{collect-NRCK3t-M.js → collect-CspdWIRo.js} +1 -1
- package/dist/esm-es5/{debounce-D4ko2kvZ.js → debounce-BR3PaG8X.js} +7 -7
- package/dist/esm-es5/debounce-CrmpwbEE.js +1 -0
- package/dist/esm-es5/{getBorderRadius-HwG64EKM.js → getBorderRadius-DYfkeXdx.js} +1 -1
- package/dist/esm-es5/{getMissingRequiredShippingFields-D-B-N1NH.js → getMissingRequiredShippingFields-B1IL1-gn.js} +3 -3
- package/dist/esm-es5/{hasInclusivePrice-Bti4iudO.js → hasInclusivePrice-DKRplpLX.js} +1 -1
- package/dist/esm-es5/index.js +4 -4
- package/dist/esm-es5/{invoice-DsvQvu4a.js → invoice-D49igPQ9.js} +1 -1
- package/dist/esm-es5/{localization-Bs6hVcKV.js → localization-BiL8bPsY.js} +1 -1
- package/dist/esm-es5/{paypal-BqyEZS_u.js → paypal-D4vWRxHJ.js} +1 -1
- package/dist/esm-es5/{placeTestOrder-x3xwMAnW.js → placeTestOrder-BNmc5RCo.js} +1 -1
- package/dist/esm-es5/{renderCheckoutCurrency-DIBdWKN1.js → renderCheckoutCurrency-BNbwijGo.js} +1 -1
- package/dist/esm-es5/{shouldShowLanguageSelect-Bb9sbQ41.js → shouldShowLanguageSelect-B82gTfHz.js} +1 -1
- package/dist/esm-es5/{submitGtag-CCGQS060.js → submitGtag-df9AQ2zL.js} +1 -1
- package/dist/esm-es5/{throttle-D5GyA3yr.js → throttle-Cvlvb-dm.js} +2 -2
- package/dist/esm-es5/{updateCheckoutSessionAttributes-eRSqdC74.js → updateCheckoutSessionAttributes-4Jq6V4pO.js} +1 -1
- package/dist/esm-es5/zonos-address-completion-dialog_7.entry.js +1 -1
- package/dist/esm-es5/zonos-address-display_2.entry.js +1 -1
- package/dist/esm-es5/zonos-address_4.entry.js +1 -1
- package/dist/esm-es5/zonos-airwallex-payment.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card_5.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
- package/dist/esm-es5/zonos-checkbox_2.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +3 -3
- package/dist/esm-es5/zonos-collapse.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
- package/dist/esm-es5/zonos-collect.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_4.entry.js +2 -2
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +21 -24
- package/dist/esm-es5/zonos-input.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +2 -2
- package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice.entry.js +3 -3
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-policy-consent_2.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-DrIOAz4M.js → zonosStore-msUlqmSD.js} +1 -1
- package/dist/scripts/index.d.ts +36 -6
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/hello/zonos-hello/zonos-hello.d.ts +5 -3
- package/dist/types/components/utils/hello/resolveHelloFloatPlacement.d.ts +39 -0
- package/dist/types/components.d.ts +4 -6
- package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +10 -0
- package/dist/types/types/generated/graphql.internal.types.d.ts +239 -11
- package/dist/types/types/generated/graphql.internal.types.ts +302 -15
- package/dist/types/types/hello/HelloConfig.d.ts +12 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-c090cc60.entry.js → p-028e0500.entry.js} +1 -1
- package/dist/zonos-elements/p-079af8c0.system.entry.js +118 -0
- package/dist/zonos-elements/{p-058f07aa.system.entry.js → p-0a4a7742.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-02ff6f8b.system.entry.js → p-0dca8a26.system.entry.js} +26 -26
- package/dist/zonos-elements/{p-d9527bd7.system.entry.js → p-0ee74bf3.system.entry.js} +32 -32
- package/dist/zonos-elements/{p-e582ae2a.entry.js → p-11bab88b.entry.js} +1 -1
- package/dist/zonos-elements/{p-d261f27c.system.entry.js → p-13d3a372.system.entry.js} +16 -16
- package/dist/zonos-elements/{p-1568ab06.system.entry.js → p-1409de3b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8328f44d.entry.js → p-193d9722.entry.js} +1 -1
- package/dist/zonos-elements/{p-22fab1ba.system.entry.js → p-195f6e38.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-317d4665.system.entry.js → p-1b77464d.system.entry.js} +18 -18
- package/dist/zonos-elements/{p-cc5306fe.system.entry.js → p-1bac5ac1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-128485dc.entry.js → p-1c150f26.entry.js} +1 -1
- package/dist/zonos-elements/{p-628a0f7f.entry.js → p-234c202c.entry.js} +1 -1
- package/dist/zonos-elements/{p-0ff26236.system.entry.js → p-23f6346b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-cc949df1.system.entry.js → p-244e0302.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-7681798d.entry.js → p-24f3c547.entry.js} +1 -1
- package/dist/zonos-elements/{p-5c08d36b.entry.js → p-2603dce0.entry.js} +1 -1
- package/dist/zonos-elements/{p-6c6c65f0.entry.js → p-26295311.entry.js} +1 -1
- package/dist/zonos-elements/{p-68e0180a.entry.js → p-34c5e145.entry.js} +1 -1
- package/dist/zonos-elements/{p-e126e9bd.system.entry.js → p-35509b10.system.entry.js} +78 -78
- package/dist/zonos-elements/p-35539d3d.entry.js +1 -0
- package/dist/zonos-elements/{p-56159b7c.system.entry.js → p-3c800376.system.entry.js} +19 -19
- package/dist/zonos-elements/{p-f8fd756a.system.entry.js → p-474e8a92.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-36559431.system.entry.js → p-481ecc23.system.entry.js} +19 -19
- package/dist/zonos-elements/{p-8cac7911.system.entry.js → p-4fd78ecf.system.entry.js} +13 -13
- package/dist/zonos-elements/{p-b78bab27.entry.js → p-52d9fd3a.entry.js} +1 -1
- package/dist/zonos-elements/{p-a6faab6a.entry.js → p-55916c90.entry.js} +1 -1
- package/dist/zonos-elements/p-5b06f069.entry.js +1 -0
- package/dist/zonos-elements/{p-635341d6.entry.js → p-5df25a1a.entry.js} +1 -1
- package/dist/zonos-elements/{p-b96666ca.system.entry.js → p-5f347f91.system.entry.js} +3 -3
- package/dist/zonos-elements/{p-beeb9d36.system.entry.js → p-756d303f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-fcfac62f.system.entry.js → p-79ddb12a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3cc27e0e.system.entry.js → p-7d284341.system.entry.js} +4 -4
- package/dist/zonos-elements/{p-b88e521e.system.entry.js → p-7e1050dd.system.entry.js} +16 -16
- package/dist/zonos-elements/{p-03fbe813.system.entry.js → p-7ee2af6e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-34d1545a.entry.js → p-83aa1c8c.entry.js} +1 -1
- package/dist/zonos-elements/{p-5eb82be3.entry.js → p-84c9ce16.entry.js} +1 -1
- package/dist/zonos-elements/{p-CaUXHglQ.system.js → p-8PPEbm_0.system.js} +9 -9
- package/dist/zonos-elements/{p-b6deae2b.system.entry.js → p-92fe9a1f.system.entry.js} +2 -2
- package/dist/zonos-elements/{p-cc17a230.entry.js → p-990b49f2.entry.js} +1 -1
- package/dist/zonos-elements/{p-c4713ff1.system.entry.js → p-9ef0f69e.system.entry.js} +3 -3
- package/dist/zonos-elements/{p-CZl1nwqv.system.js → p-B4Ufchqh.system.js} +3 -3
- package/dist/zonos-elements/{p-D4WI0B6-.system.js → p-B5NDhB1w.system.js} +4 -4
- package/dist/zonos-elements/{p-B6X55m0b.js → p-BDrM4x5N.js} +2 -2
- package/dist/zonos-elements/p-BGktDPwA.system.js +1 -0
- package/dist/zonos-elements/p-BJzAgoqz.js +1 -0
- package/dist/zonos-elements/{p-opB7B9YB.js → p-BKoLoalh.js} +1 -1
- package/dist/zonos-elements/{p-UM1aYZBV.system.js → p-BT9_ehlh.system.js} +1 -1
- package/dist/zonos-elements/{p-CVQ7-7E2.system.js → p-B_5RofQ9.system.js} +16 -16
- package/dist/zonos-elements/p-BaF00SfB.js +1 -0
- package/dist/zonos-elements/{p-D0erXw7p.js → p-BpDCLBwW.js} +1 -1
- package/dist/zonos-elements/{p-CpvnCfKt.js → p-BtWDzGMx.js} +1 -1
- package/dist/zonos-elements/p-Bu9WCfUC.system.js +1 -1
- package/dist/zonos-elements/{p-CPnR_T0a.system.js → p-BuU_p5DP.system.js} +58 -58
- package/dist/zonos-elements/{p-CH6tsv9B.system.js → p-CASTsiDR.system.js} +3 -3
- package/dist/zonos-elements/{p-CaAod213.system.js → p-CBx5nYet.system.js} +1 -1
- package/dist/zonos-elements/{p-Cd9xIgx7.system.js → p-CEmXVahp.system.js} +1 -1
- package/dist/zonos-elements/{p-nU86HJ5w.js → p-CUaf1cEg.js} +1 -1
- package/dist/zonos-elements/p-CX_vfdWt.js +1 -0
- package/dist/zonos-elements/p-C_z9WL8a.js +1 -0
- package/dist/zonos-elements/p-CcJF6xhQ.js +1 -0
- package/dist/zonos-elements/{p-MHVIIOVE.js → p-CewmhMGk.js} +1 -1
- package/dist/zonos-elements/{p-CQyFoOXW.system.js → p-Cpe_ISNt.system.js} +18 -18
- package/dist/zonos-elements/{p-CGkdA4pY.js → p-Cuk0LLGQ.js} +1 -1
- package/dist/zonos-elements/p-Cxuiqv1I.js +1 -0
- package/dist/zonos-elements/p-DQZncB2d.system.js +9 -0
- package/dist/zonos-elements/{p-D2fOB4Wn.system.js → p-DVITR-Eu.system.js} +1 -1
- package/dist/zonos-elements/{p-CuhGrJBA.system.js → p-DYIisqF7.system.js} +1 -1
- package/dist/zonos-elements/{p-uV7m6KrY.system.js → p-DoEHepOc.system.js} +1 -1
- package/dist/zonos-elements/{p-DqEtY53c.js → p-DwkyNtpD.js} +1 -1
- package/dist/zonos-elements/p-NJVOYjda.js +1 -0
- package/dist/zonos-elements/{p-CtEsvWI6.js → p-W82paT5F.js} +1 -1
- package/dist/zonos-elements/{p-72b6a006.system.entry.js → p-a571beaa.system.entry.js} +20 -20
- package/dist/zonos-elements/{p-e9a3bc27.system.entry.js → p-a5c25829.system.entry.js} +3 -3
- package/dist/zonos-elements/{p-b68ca96f.entry.js → p-a938c174.entry.js} +1 -1
- package/dist/zonos-elements/{p-f44631d5.entry.js → p-ab54d0a1.entry.js} +1 -1
- package/dist/zonos-elements/{p-9ebe9a36.entry.js → p-acd50b0b.entry.js} +1 -1
- package/dist/zonos-elements/{p-0f603278.system.entry.js → p-b5882fbb.system.entry.js} +2 -2
- package/dist/zonos-elements/{p-3d536086.entry.js → p-ba510730.entry.js} +1 -1
- package/dist/zonos-elements/{p-18021e6b.entry.js → p-c3b02dbf.entry.js} +1 -1
- package/dist/zonos-elements/{p-be64d823.system.entry.js → p-c403f004.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4625058a.entry.js → p-c4ad6d4b.entry.js} +1 -1
- package/dist/zonos-elements/p-ca3175d9.entry.js +1 -0
- package/dist/zonos-elements/{p-3e59d41c.entry.js → p-d3d0656a.entry.js} +1 -1
- package/dist/zonos-elements/{p-9b6482ef.entry.js → p-d4d2b39e.entry.js} +1 -1
- package/dist/zonos-elements/{p-c5f17bad.entry.js → p-d6b72f6d.entry.js} +1 -1
- package/dist/zonos-elements/p-d74bc3e8.entry.js +1 -0
- package/dist/zonos-elements/p-db75322d.entry.js +1 -0
- package/dist/zonos-elements/{p-5e074243.entry.js → p-dd8ca91e.entry.js} +1 -1
- package/dist/zonos-elements/{p-cf53f67a.entry.js → p-ddca5ee1.entry.js} +1 -1
- package/dist/zonos-elements/{p-bdba7d9e.system.entry.js → p-dfc87b10.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d451d5bc.system.entry.js → p-f37b8aaf.system.entry.js} +4 -4
- package/dist/zonos-elements/{p-2466b5f0.system.entry.js → p-fb869759.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-i1iCWKdv.js → p-sz4L-ZnB.js} +1 -1
- package/dist/zonos-elements/{p-BybDGrH4.system.js → p-tGJYTlGL.system.js} +4 -4
- package/dist/zonos-elements/p-tkSf-lrO.system.js +13 -0
- package/dist/zonos-elements/{p-NL_Eiq6m.system.js → p-uuZUZPIm.system.js} +6 -6
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/debounce-DWPsxJsW.js +0 -1
- package/dist/zonos-elements/p-02628b9f.entry.js +0 -1
- package/dist/zonos-elements/p-037d3688.entry.js +0 -1
- package/dist/zonos-elements/p-0466650f.entry.js +0 -1
- package/dist/zonos-elements/p-163b81c0.system.entry.js +0 -121
- package/dist/zonos-elements/p-3ERbuo5a.js +0 -1
- package/dist/zonos-elements/p-97f848f6.entry.js +0 -1
- package/dist/zonos-elements/p-9H2p9XKE.js +0 -1
- package/dist/zonos-elements/p-BANhKkF2.system.js +0 -1
- package/dist/zonos-elements/p-BJufDgh3.js +0 -1
- package/dist/zonos-elements/p-BSgVcCxT.system.js +0 -9
- package/dist/zonos-elements/p-ClUEwqZW.system.js +0 -13
- package/dist/zonos-elements/p-CtKp6AQ4.js +0 -1
- package/dist/zonos-elements/p-DdpeA8cH.js +0 -1
- package/dist/zonos-elements/p-DkirvyAh.js +0 -1
- package/dist/zonos-elements/p-a6354d15.entry.js +0 -1
- package/dist/zonos-elements/p-t_ClFAJR.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,n,o){function d(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function i(e){try{a(o.next(e))}catch(e){r(e)}}function s(e){try{a(o["throw"](e))}catch(e){r(e)}}function a(e){e.done?n(e.value):d(e.value).then(i,s)}a((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,d,r,i=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return i.next=s(0),i["throw"]=s(1),i["return"]=s(2),typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return a([e,t])}}function a(s){if(o)throw new TypeError("Generator is already executing.");while(i&&(i=0,s[0]&&(n=0)),n)try{if(o=1,d&&(r=s[0]&2?d["return"]:s[0]?d["throw"]||((r=d["return"])&&r.call(d),0):d.next)&&!(r=r.call(d,s[1])).done)return r;if(d=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;d=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){n.label=s[1];break}if(s[0]===6&&n.label<r[1]){n.label=r[1];r=s;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(s);break}if(r[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];d=0}finally{o=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var o=0,d=t.length,r;o<d;o++){if(r||!(o in t)){if(!r)r=Array.prototype.slice.call(t,0,o);r[o]=t[o]}}return e.concat(r||Array.prototype.slice.call(t))};System.register(["./p-CIevpRv_.system.js","./p-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,n,o){function d(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function i(e){try{a(o.next(e))}catch(e){r(e)}}function s(e){try{a(o["throw"](e))}catch(e){r(e)}}function a(e){e.done?n(e.value):d(e.value).then(i,s)}a((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,d,r,i=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return i.next=s(0),i["throw"]=s(1),i["return"]=s(2),typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return a([e,t])}}function a(s){if(o)throw new TypeError("Generator is already executing.");while(i&&(i=0,s[0]&&(n=0)),n)try{if(o=1,d&&(r=s[0]&2?d["return"]:s[0]?d["throw"]||((r=d["return"])&&r.call(d),0):d.next)&&!(r=r.call(d,s[1])).done)return r;if(d=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;d=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){n.label=s[1];break}if(s[0]===6&&n.label<r[1]){n.label=r[1];r=s;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(s);break}if(r[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];d=0}finally{o=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var o=0,d=t.length,r;o<d;o++){if(r||!(o in t)){if(!r)r=Array.prototype.slice.call(t,0,o);r[o]=t[o]}}return e.concat(r||Array.prototype.slice.call(t))};System.register(["./p-CIevpRv_.system.js","./p-CEmXVahp.system.js","./p-BuU_p5DP.system.js","./p-tGJYTlGL.system.js","./p-C2j7R11h.system.js","./p-uuZUZPIm.system.js","./p-0D0aCMu6.system.js","./p-BgSx82zO.system.js","./p-DQZncB2d.system.js","./p-B4Ufchqh.system.js","./p-zVLAvre1.system.js","./p-Bi-s0fp_.system.js","./p-BbgqQIHv.system.js","./p-Cby4EkFu.system.js","./p-d05Ku7gM.system.js","./p-DW-fW8yR.system.js","./p-8PPEbm_0.system.js","./p-C29tlYn0.system.js"],(function(e){"use strict";var t,n,o,d,r,i,s,a,u,l,$,f,c,h,p,v,b,y,m,g,z,w,x,k,C,S,O,E,N,I,A;return{setters:[function(e){t=e.r;n=e.d;o=e.h;d=e.a;r=e.g},function(e){i=e.t;s=e.s;a=e.z;u=e.l},function(e){l=e.z;$=e.a},function(e){f=e.M},function(e){c=e.c},function(e){h=e.U;p=e.b;v=e.w;b=e.t},function(e){y=e.R},function(e){m=e.i;g=e.c},function(e){z=e.g},function(e){w=e.t},function(e){x=e.i},function(e){k=e.a;C=e.s},function(e){S=e.l},function(e){O=e.c;E=e.s},function(e){N=e.i;I=e.a},function(e){A=e.i},null,null],execute:function(){var j=function(){return":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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--body{padding:0 24px;position:relative}:host .zonos--dialog-header{margin-bottom:24px;position:-webkit-sticky;position:sticky;padding-top:24px;top:0;z-index:11;background:var(--zonos-elements-gray-0)}:host .zonos--dialog-title{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;margin-bottom:12px}:host .zonos--group{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding-bottom:5px;gap:20px;-ms-scroll-chaining:chained;overscroll-behavior:auto}:host .zonos--selected-address{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:8px}:host .zonos--completion-fields{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:16px}:host .zonos--completion-name-row{display:-ms-flexbox;display:flex;gap:8px}:host .zonos--completion-name-row zonos-input{-ms-flex:1;flex:1}:host .zonos--group-btn{position:-webkit-sticky;position:sticky;padding:24px 0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:end;background:var(--zonos-elements-gray-0);z-index:11}:host .zonos--group-btn .zonos--button-wrapper{display:-ms-flexbox;display:flex;gap:8px}:host(.mobile) .zonos--completion-name-row{-ms-flex-direction:column;flex-direction:column}:host(.mobile) .zonos--button-wrapper{-ms-flex-direction:column;flex-direction:column;width:100%}:host(.mobile) .zonos--button-wrapper zonos-button{width:100%}:host(.mobile) .zonos--button-wrapper .zonos--cancel-btn{-ms-flex-order:2;order:2}:host(.mobile) .zonos--button-wrapper .zonos--submit-btn{-ms-flex-order:1;order:1}"};var T=e("zonos_address_completion_dialog",/** @class */function(){function e(e){var d=this;t(this,e);this.closeCompletionDialog=n(this,"closeCompletionDialog",7);this.completionSubmit=n(this,"completionSubmit",7);
|
|
2
2
|
/**
|
|
3
3
|
* Whether or not the continue button is loading
|
|
4
4
|
*/this.continueLoading=false;
|
|
@@ -43,13 +43,13 @@ return[4/*yield*/,new Promise((function(e){return setTimeout(e,100)}))];case 1:
|
|
|
43
43
|
// Wait for shippingAddress prop to be updated before resetting the values
|
|
44
44
|
o.sent();n=h({name:(t=this.shippingAddress)===null||t===void 0?void 0:t.name}).firstName;this.values=this.isFieldMissing("lastName")?{firstName:n}:{};this.showError=false;o.label=2;case 2:return[2/*return*/]}}))}))};e.prototype.render=function(){var e=this;var t=this.submitBtnColor||l.appearance.colorSecondary;
|
|
45
45
|
// dialog background is white, so a white button needs an outline to stay visible
|
|
46
|
-
var n=t==="#ffffff"?"outline":this.submitBtnType||"standard";return o(d,{key:"9a89376022ebd8f5793882fb13a3502deca001f8",class:c(["zonos--address-completion-dialog zonos--elements",this.isMobile&&"mobile"])},o("zonos-dialog",{key:"00ff3912a7bf8d021441440f0de2825b49f7b78e",isLoading:false,mobile:this.isMobile,noBodyPadding:true,noBorder:true,noClickOutside:true,noCloseButton:true,onCloseDialog:function(){return e.closeCompletionDialog.emit()},open:this.dialogOpen,width:"568px"},o("div",{key:"1ba1cd333bd1f362a77f1f114ac50c309ed5ccd6",class:"zonos--body"},o("div",{key:"ccf9f54ff4b26e5443ff5c8276e5c5d36aac332b",class:"zonos--dialog-header"},o("div",{key:"01e073aa559c4040a6599aefb3bf8cb967928929",class:"zonos--dialog-title"},o("zonos-text",{key:"8472a72f6274646bb87d150c82722f93c861ae72",type:"title"},i("Complete your shipping address")),o("zonos-button",{key:"e9a6c2cbc3d64bf87e94850c1126119687f75e7d",class:"zonos--close-button",icon:o("zonos-icon",{"aria-label":"Close checkout dialog",content:y}),noBackground:true,onClick:function(){return e.closeCompletionDialog.emit()},title:"Close checkout dialog"})),o("zonos-text",{key:"c9ff785b746810f0c266071ee9a3f433ad645a2b"},i("This saved address is missing information required to ship internationally. Please add the details below."))),o("div",{key:"86e2b0da7dbcd1370b80fc8c53e8a7de4c11ed74",class:"zonos--group"},o("div",{key:"1542bb7f0b9df16f5ce36d38dc9408a1b3e836a7",class:"zonos--selected-address"},o("zonos-text",{key:"2572e3e44a9c81f6694e4939de39951ec659c8fa",class:"zonos--selected-label",type:"semiBoldLabel"},i("Selected address")),o("zonos-address-display",{key:"8781622b3d057cfbdba59e13d5fabf76f3a7a7dd",addressType:"shipping",currentAddress:this.shippingAddress})),o("div",{key:"ac3a5f6566c2179045a784b661b7e82c7b371a3f",class:"zonos--completion-fields"},this.renderNameFields(),this.renderField("state",i("State/Province")),this.renderField("postal_code",i("Postal code")))),o("div",{key:"1007d7f6c671fbd94dd3027332d2d7ac1edeef6e",class:"zonos--group-btn"},o("div",{key:"22fe2c8d03d7b3c680eea2b4afebf1868b5b6c0b",class:"zonos--button-wrapper"},o("zonos-button",{key:"dbcf1aa175992bff762ecc36108bf94090b7df0e",class:"zonos--cancel-btn",onClick:function(){return e.closeCompletionDialog.emit()},variant:"subtle"},i("Cancel")),o("zonos-button",{key:"63b0f966565e86ea9bac640b2fa690287c94b11f",backgroundColor:this.submitBtnColor,class:"zonos--submit-btn",loading:this.continueLoading,onClick:function(){return e.submitHandler()},size:"sm",variant:n},i("Save and continue")))))))};Object.defineProperty(e,"watchers",{get:function(){return{dialogOpen:[{watchDialogOpen:0}]}},enumerable:false,configurable:true});return e}());T.style=j();var L=function(){return":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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--title{margin-bottom:20px}:host .zonos--address-group{display:-ms-flexbox;display:flex;gap:20px;-ms-flex-direction:column;flex-direction:column;margin:1px}:host .zonos--contact{display:-ms-flexbox;display:flex;gap:8px;-ms-flex-direction:column;flex-direction:column}:host .zonos--address-row{display:-ms-flexbox;display:flex;gap:8px}:host .zonos--address-row>*{-ms-flex:1;flex:1}:host .zonos--address{display:-ms-flexbox;display:flex;gap:8px;-ms-flex-direction:column;flex-direction:column}"};var
|
|
46
|
+
var n=t==="#ffffff"?"outline":this.submitBtnType||"standard";return o(d,{key:"9a89376022ebd8f5793882fb13a3502deca001f8",class:c(["zonos--address-completion-dialog zonos--elements",this.isMobile&&"mobile"])},o("zonos-dialog",{key:"00ff3912a7bf8d021441440f0de2825b49f7b78e",isLoading:false,mobile:this.isMobile,noBodyPadding:true,noBorder:true,noClickOutside:true,noCloseButton:true,onCloseDialog:function(){return e.closeCompletionDialog.emit()},open:this.dialogOpen,width:"568px"},o("div",{key:"1ba1cd333bd1f362a77f1f114ac50c309ed5ccd6",class:"zonos--body"},o("div",{key:"ccf9f54ff4b26e5443ff5c8276e5c5d36aac332b",class:"zonos--dialog-header"},o("div",{key:"01e073aa559c4040a6599aefb3bf8cb967928929",class:"zonos--dialog-title"},o("zonos-text",{key:"8472a72f6274646bb87d150c82722f93c861ae72",type:"title"},i("Complete your shipping address")),o("zonos-button",{key:"e9a6c2cbc3d64bf87e94850c1126119687f75e7d",class:"zonos--close-button",icon:o("zonos-icon",{"aria-label":"Close checkout dialog",content:y}),noBackground:true,onClick:function(){return e.closeCompletionDialog.emit()},title:"Close checkout dialog"})),o("zonos-text",{key:"c9ff785b746810f0c266071ee9a3f433ad645a2b"},i("This saved address is missing information required to ship internationally. Please add the details below."))),o("div",{key:"86e2b0da7dbcd1370b80fc8c53e8a7de4c11ed74",class:"zonos--group"},o("div",{key:"1542bb7f0b9df16f5ce36d38dc9408a1b3e836a7",class:"zonos--selected-address"},o("zonos-text",{key:"2572e3e44a9c81f6694e4939de39951ec659c8fa",class:"zonos--selected-label",type:"semiBoldLabel"},i("Selected address")),o("zonos-address-display",{key:"8781622b3d057cfbdba59e13d5fabf76f3a7a7dd",addressType:"shipping",currentAddress:this.shippingAddress})),o("div",{key:"ac3a5f6566c2179045a784b661b7e82c7b371a3f",class:"zonos--completion-fields"},this.renderNameFields(),this.renderField("state",i("State/Province")),this.renderField("postal_code",i("Postal code")))),o("div",{key:"1007d7f6c671fbd94dd3027332d2d7ac1edeef6e",class:"zonos--group-btn"},o("div",{key:"22fe2c8d03d7b3c680eea2b4afebf1868b5b6c0b",class:"zonos--button-wrapper"},o("zonos-button",{key:"dbcf1aa175992bff762ecc36108bf94090b7df0e",class:"zonos--cancel-btn",onClick:function(){return e.closeCompletionDialog.emit()},variant:"subtle"},i("Cancel")),o("zonos-button",{key:"63b0f966565e86ea9bac640b2fa690287c94b11f",backgroundColor:this.submitBtnColor,class:"zonos--submit-btn",loading:this.continueLoading,onClick:function(){return e.submitHandler()},size:"sm",variant:n},i("Save and continue")))))))};Object.defineProperty(e,"watchers",{get:function(){return{dialogOpen:[{watchDialogOpen:0}]}},enumerable:false,configurable:true});return e}());T.style=j();var L=function(){return":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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--title{margin-bottom:20px}:host .zonos--address-group{display:-ms-flexbox;display:flex;gap:20px;-ms-flex-direction:column;flex-direction:column;margin:1px}:host .zonos--contact{display:-ms-flexbox;display:flex;gap:8px;-ms-flex-direction:column;flex-direction:column}:host .zonos--address-row{display:-ms-flexbox;display:flex;gap:8px}:host .zonos--address-row>*{-ms-flex:1;flex:1}:host .zonos--address{display:-ms-flexbox;display:flex;gap:8px;-ms-flex-direction:column;flex-direction:column}"};var P=e("zonos_address_form",/** @class */function(){function e(e){var o=this;t(this,e);this.addressChange=n(this,"addressChange",7);
|
|
47
47
|
/**
|
|
48
48
|
* Local address to update
|
|
49
49
|
*/this.localAddress=this.currentAddress;this.onInputChange=function(e){var t;var n=e.key,d=e.value;o.addressChange.emit(Object.assign(Object.assign({},o.localAddress),(t={},t[n]=d,t)))}}e.prototype.watchCurrentAddress=function(){var e,t,n,o,d,r;var i=this.currentAddress,s=i.city,a=i.line1,u=i.line2,l=i.name,$=i.postal_code,f=i.state;
|
|
50
50
|
// Update the local address when the current address changes
|
|
51
51
|
// If translated address is available, use that instead
|
|
52
|
-
this.localAddress=Object.assign(Object.assign({},this.currentAddress),{city:((e=this.translatedAddress.city)===null||e===void 0?void 0:e[s])||s,line1:((t=this.translatedAddress.line1)===null||t===void 0?void 0:t[a])||a,line2:((n=this.translatedAddress.line2)===null||n===void 0?void 0:n[u])||u,name:((o=this.translatedAddress.name)===null||o===void 0?void 0:o[l])||l,postal_code:((d=this.translatedAddress.postal_code)===null||d===void 0?void 0:d[$])||$,state:((r=this.translatedAddress.state)===null||r===void 0?void 0:r[f])||f})};e.prototype.componentWillLoad=function(){this.watchCurrentAddress()};e.prototype.render=function(){var e=this;var t=this.localAddress,n=t.city,r=t.country,s=t.line1,a=t.line2,u=t.name,l=t.phone,$=t.postal_code,f=t.state;var c=h({name:u}),p=c.firstName,v=c.lastName;return o(d,{key:"44edb799473e427b08e17d6d20f08a028a3cc688",class:"zonos--address-form zonos--elements"},o("div",{key:"99c2d5b58464bebd7bb3e5c2a4ac3aa04d80b47f",class:"zonos--title"},o("zonos-text",{key:"5a86048c7d768b795db1416182e2b22458924601",textColor:"gray-700",type:"smallHeader"},this.addressType==="shipping"?i("Shipping"):i("Billing"))),o("div",{key:"a907058d970cb6674b403f79c0946e36a0e61f69",class:"zonos--address-group"},o("div",{key:"fad2f71614c6963015f95e74e297c58a4adee95b",class:"zonos--contact"},o("zonos-text",{key:"0c661050b1b95da56af1046fac39c7fa6de18685",type:"label"},i("Contact")),o("zonos-input",{key:"3e35a5f9d4bca373ef9403da0de53ea895aca61f",class:"zonos--form-email",inputLabel:i("Email"),inputValue:this.currentAddress.email,isDisabled:true}),o("div",{key:"093cdcc771b4ade381a392a1023d9d037d4e3e35",class:"zonos--name zonos--address-row"},o("zonos-input",{key:"e9d957551070a855179b78da655beaf3b4e731e2",class:"zonos--form-first-name",inputLabel:i("First name"),inputValue:p,isError:m(p),onInputChange:function(t){return e.onInputChange({key:"name",value:"".concat(t.detail," ").concat(v)})}}),o("zonos-input",{key:"0b86805e872607d367446f5e6ef074974f9840c2",class:"zonos--form-last-name",inputLabel:i("Last name"),inputValue:v,isError:m(v),onInputChange:function(t){return e.onInputChange({key:"name",value:"".concat(p," ").concat(t.detail)})}}))),o("div",{key:"6447f55e8d173d18cd46cba829527c4d487631a2",class:"zonos--address"},o("zonos-text",{key:"18ef146cc44f658524c6535e851281b62249fa26",type:"label"},i("Address")),o("zonos-input",{key:"95cfb115c4304e8a142ab2e952fc8c4bfbe39e43",class:"zonos--form-country",inputLabel:i("Country"),inputValue:r,isDisabled:true}),o("zonos-input",{key:"e3774713ec0b0e861981aa9f2c62f6749125e174",class:"zonos--form-line1",inputLabel:i("Address line 1"),inputValue:s,isError:m(s),onInputChange:function(t){return e.onInputChange({key:"line1",value:t.detail})}}),o("zonos-input",{key:"0d1fce85ad42e42b266ad411d4e3a96e4b8b8bf3",class:"zonos--form-line2",inputLabel:i("Address line 2"),inputValue:a,isError:m(a),onInputChange:function(t){return e.onInputChange({key:"line2",value:t.detail})}}),o("div",{key:"5d5e740b711ff65a0366a6c4891f22684f32c74b",class:"zonos--address-row"},o("zonos-input",{key:"8f124a91865c59096ba5c624ec229a3d1545c985",class:"zonos--form-city",inputLabel:i("City"),inputValue:n,isError:m(n),onInputChange:function(t){return e.onInputChange({key:"city",value:t.detail})}}),this.currentAddress.state&&o("zonos-input",{key:"50e852953ba88573929a200bce4c67fab2146245",class:"zonos--form-state",inputLabel:i("State/Province"),inputValue:f,isError:m(f),onInputChange:function(t){return e.onInputChange({key:"state",value:t.detail})}})),o("zonos-input",{key:"74c17f1d1a77af3f90100a6832b2c8fe7bdca24e",class:"zonos--form-postal-code",inputLabel:i("Postal code"),inputValue:$,isError:m($),onInputChange:function(t){return e.onInputChange({key:"postal_code",value:t.detail})}}),o("zonos-input",{key:"20775c4a944fe9305446898109637e5b38229a1d",class:"zonos--form-phone",inputLabel:i("Phone number"),inputValue:l,onInputChange:function(t){return e.onInputChange({key:"phone",value:t.detail})}}))))};Object.defineProperty(e,"watchers",{get:function(){return{translatedAddress:[{watchCurrentAddress:0}]}},enumerable:false,configurable:true});return e}());
|
|
52
|
+
this.localAddress=Object.assign(Object.assign({},this.currentAddress),{city:((e=this.translatedAddress.city)===null||e===void 0?void 0:e[s])||s,line1:((t=this.translatedAddress.line1)===null||t===void 0?void 0:t[a])||a,line2:((n=this.translatedAddress.line2)===null||n===void 0?void 0:n[u])||u,name:((o=this.translatedAddress.name)===null||o===void 0?void 0:o[l])||l,postal_code:((d=this.translatedAddress.postal_code)===null||d===void 0?void 0:d[$])||$,state:((r=this.translatedAddress.state)===null||r===void 0?void 0:r[f])||f})};e.prototype.componentWillLoad=function(){this.watchCurrentAddress()};e.prototype.render=function(){var e=this;var t=this.localAddress,n=t.city,r=t.country,s=t.line1,a=t.line2,u=t.name,l=t.phone,$=t.postal_code,f=t.state;var c=h({name:u}),p=c.firstName,v=c.lastName;return o(d,{key:"44edb799473e427b08e17d6d20f08a028a3cc688",class:"zonos--address-form zonos--elements"},o("div",{key:"99c2d5b58464bebd7bb3e5c2a4ac3aa04d80b47f",class:"zonos--title"},o("zonos-text",{key:"5a86048c7d768b795db1416182e2b22458924601",textColor:"gray-700",type:"smallHeader"},this.addressType==="shipping"?i("Shipping"):i("Billing"))),o("div",{key:"a907058d970cb6674b403f79c0946e36a0e61f69",class:"zonos--address-group"},o("div",{key:"fad2f71614c6963015f95e74e297c58a4adee95b",class:"zonos--contact"},o("zonos-text",{key:"0c661050b1b95da56af1046fac39c7fa6de18685",type:"label"},i("Contact")),o("zonos-input",{key:"3e35a5f9d4bca373ef9403da0de53ea895aca61f",class:"zonos--form-email",inputLabel:i("Email"),inputValue:this.currentAddress.email,isDisabled:true}),o("div",{key:"093cdcc771b4ade381a392a1023d9d037d4e3e35",class:"zonos--name zonos--address-row"},o("zonos-input",{key:"e9d957551070a855179b78da655beaf3b4e731e2",class:"zonos--form-first-name",inputLabel:i("First name"),inputValue:p,isError:m(p),onInputChange:function(t){return e.onInputChange({key:"name",value:"".concat(t.detail," ").concat(v)})}}),o("zonos-input",{key:"0b86805e872607d367446f5e6ef074974f9840c2",class:"zonos--form-last-name",inputLabel:i("Last name"),inputValue:v,isError:m(v),onInputChange:function(t){return e.onInputChange({key:"name",value:"".concat(p," ").concat(t.detail)})}}))),o("div",{key:"6447f55e8d173d18cd46cba829527c4d487631a2",class:"zonos--address"},o("zonos-text",{key:"18ef146cc44f658524c6535e851281b62249fa26",type:"label"},i("Address")),o("zonos-input",{key:"95cfb115c4304e8a142ab2e952fc8c4bfbe39e43",class:"zonos--form-country",inputLabel:i("Country"),inputValue:r,isDisabled:true}),o("zonos-input",{key:"e3774713ec0b0e861981aa9f2c62f6749125e174",class:"zonos--form-line1",inputLabel:i("Address line 1"),inputValue:s,isError:m(s),onInputChange:function(t){return e.onInputChange({key:"line1",value:t.detail})}}),o("zonos-input",{key:"0d1fce85ad42e42b266ad411d4e3a96e4b8b8bf3",class:"zonos--form-line2",inputLabel:i("Address line 2"),inputValue:a,isError:m(a),onInputChange:function(t){return e.onInputChange({key:"line2",value:t.detail})}}),o("div",{key:"5d5e740b711ff65a0366a6c4891f22684f32c74b",class:"zonos--address-row"},o("zonos-input",{key:"8f124a91865c59096ba5c624ec229a3d1545c985",class:"zonos--form-city",inputLabel:i("City"),inputValue:n,isError:m(n),onInputChange:function(t){return e.onInputChange({key:"city",value:t.detail})}}),this.currentAddress.state&&o("zonos-input",{key:"50e852953ba88573929a200bce4c67fab2146245",class:"zonos--form-state",inputLabel:i("State/Province"),inputValue:f,isError:m(f),onInputChange:function(t){return e.onInputChange({key:"state",value:t.detail})}})),o("zonos-input",{key:"74c17f1d1a77af3f90100a6832b2c8fe7bdca24e",class:"zonos--form-postal-code",inputLabel:i("Postal code"),inputValue:$,isError:m($),onInputChange:function(t){return e.onInputChange({key:"postal_code",value:t.detail})}}),o("zonos-input",{key:"20775c4a944fe9305446898109637e5b38229a1d",class:"zonos--form-phone",inputLabel:i("Phone number"),inputValue:l,onInputChange:function(t){return e.onInputChange({key:"phone",value:t.detail})}}))))};Object.defineProperty(e,"watchers",{get:function(){return{translatedAddress:[{watchCurrentAddress:0}]}},enumerable:false,configurable:true});return e}());P.style=L();var M='<svg color="var(--zonos-elements-gray-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-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" data-is-secondary-color="true" fill="var(--zonos-elements-gray-200)" fill-rule="evenodd"></path><path clip-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" fill="currentColor" fill-rule="evenodd"></path></svg>';var R=function(){return":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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{position:relative}:host .wrapper{position:absolute;margin-top:4px;top:100%;left:0;right:0;z-index:3;max-height:300px;overflow-y:auto;border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));-webkit-box-shadow:var(--zonos-elements-shadow-select-active);box-shadow:var(--zonos-elements-shadow-select-active);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;list-style:none;padding:0;background-color:var(--zonos-elements-surface-color)}:host .wrapper .option{padding:8px;background-color:var(--zonos-elements-surface-color);outline:none;border:none;text-align:left}:host .wrapper .option.last-hovered{background-color:var(--zonos-elements-gray-100)}:host .wrapper .option .highlight{font-weight:600;color:var(--zonos-elements-gray-1000)}:host .wrapper>.powered-by{padding:8px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}:host .wrapper>.powered-by .powered-by-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;gap:5px;-ms-flex:1;flex:1}:host .wrapper>.suggestion{cursor:pointer}:host .wrapper>.suggestion:hover{background-color:var(--zonos-elements-gray-100)}"};var _=e("zonos_address_suggestions",/** @class */function(){function e(e){var o=this;t(this,e);this.suggestionSelected=n(this,"suggestionSelected",7);
|
|
53
53
|
/**
|
|
54
54
|
* Suggestions to display
|
|
55
55
|
*/this.suggestions=[];
|
|
@@ -74,7 +74,7 @@ if(t.startOffset>o){n.push({isMatch:false,text:e.slice(o,t.startOffset)})}
|
|
|
74
74
|
// Add matching segment
|
|
75
75
|
n.push({isMatch:true,text:e.slice(t.startOffset,t.endOffset)});o=t.endOffset}));
|
|
76
76
|
// Add remaining non-matching text if exists
|
|
77
|
-
if(o<e.length){n.push({isMatch:false,text:e.slice(o)})}return n};e.prototype.render=function(){var e=this;return o(d,{key:"34018ecc951c0335041e24102329eb83a8d68439",class:"zonos--address-suggestions",role:"group",style:{"--zonos--border-radius":z()}},o("ul",{key:"80433831c875845e57225a1317c430e2626edf9a","aria-label":"Suggestions",class:"wrapper",role:"listbox"},!!this.localSuggestions.length&&o("li",{key:"3510ef51b56b1cb0a36334e842792bccc2daeca5","aria-selected":false,class:"powered-by option",role:"option"},o("div",{key:"72773af6f9c7e0644ebc5239e4bf585bba6e164a",class:"powered-by-container"},o("zonos-text",{key:"7fabccbe33cbc8d037dfd25f6e5b0a5bdaf97b2f",type:"caption"},"Suggestions powered by"),o("zonos-text",{key:"2d88a3b8d7369a44e910ec60f5c7ac0c3f0ce801",type:"semiBoldLabel"},"Google")),o("zonos-button",{key:"74315c248cc84617d854a3b51d0bad8300c6b762","aria-label":"Clear suggestions",icon:o("zonos-icon",{content:
|
|
77
|
+
if(o<e.length){n.push({isMatch:false,text:e.slice(o)})}return n};e.prototype.render=function(){var e=this;return o(d,{key:"34018ecc951c0335041e24102329eb83a8d68439",class:"zonos--address-suggestions",role:"group",style:{"--zonos--border-radius":z()}},o("ul",{key:"80433831c875845e57225a1317c430e2626edf9a","aria-label":"Suggestions",class:"wrapper",role:"listbox"},!!this.localSuggestions.length&&o("li",{key:"3510ef51b56b1cb0a36334e842792bccc2daeca5","aria-selected":false,class:"powered-by option",role:"option"},o("div",{key:"72773af6f9c7e0644ebc5239e4bf585bba6e164a",class:"powered-by-container"},o("zonos-text",{key:"7fabccbe33cbc8d037dfd25f6e5b0a5bdaf97b2f",type:"caption"},"Suggestions powered by"),o("zonos-text",{key:"2d88a3b8d7369a44e910ec60f5c7ac0c3f0ce801",type:"semiBoldLabel"},"Google")),o("zonos-button",{key:"74315c248cc84617d854a3b51d0bad8300c6b762","aria-label":"Clear suggestions",icon:o("zonos-icon",{content:M}),noBackground:true,onClick:function(){e.localSuggestions=[]}})),this.localSuggestions.map((function(t){
|
|
78
78
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
79
79
|
return o("li",{"aria-selected":e.selectedSuggestionId===t.id,class:c(["suggestion","option",e.lastHoveredSuggestionId===t.id&&"last-hovered"]),key:t.id,onClick:function(){e.selectedSuggestionId=t.id;e.suggestionSelected.emit({placeId:t.id,type:e.type})},onMouseEnter:function(){e.lastHoveredSuggestionId=t.id},role:"option",tabIndex:0},o("zonos-text",null,e.getHighlightedText(t.place,t.matches).map((function(e,t){return o("span",{class:e.isMatch?"highlight":undefined,key:"".concat(t,"-").concat(e.text)},e.text)}))))}))))};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{suggestions:[{suggestionsChanged:0}]}},enumerable:false,configurable:true});return e}());_.style=R();var F=function(){return":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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--body{padding:0 24px;position:relative}:host .zonos--dialog-header{margin-bottom:32px;position:-webkit-sticky;position:sticky;padding-top:24px;top:0;z-index:11;background:var(--zonos-elements-gray-0)}:host .zonos--dialog-title{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;margin-bottom:12px}:host .zonos--group{overflow:auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:8px;-ms-scroll-chaining:none;overscroll-behavior:contain}:host .zonos--group::-webkit-scrollbar{width:10px}:host .zonos--group::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}:host .zonos--group::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}:host .zonos--group::-webkit-scrollbar-thumb:hover{background:#d6d6d6}:host .zonos--group{-ms-scroll-chaining:chained;overscroll-behavior:auto}:host .zonos--address-display-group{display:-ms-flexbox;display:flex;gap:8px;margin-bottom:20px}:host .zonos--address-display-group zonos-address-display{-ms-flex:1;flex:1}:host .zonos--what-you-entered{margin-bottom:8px}:host .zonos--address-form-section{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:24px}:host .zonos--group-btn{position:-webkit-sticky;position:sticky;padding:24px 0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:end;background:var(--zonos-elements-gray-0);z-index:11}:host .zonos--group-btn .zonos--button-wrapper{display:-ms-flexbox;display:flex;gap:8px}:host(.mobile) .zonos--button-wrapper{-ms-flex-direction:column;flex-direction:column;width:100%}:host(.mobile) .zonos--button-wrapper zonos-button{width:100%}:host(.mobile) .zonos--button-wrapper .zonos--cancel-btn{-ms-flex-order:2;order:2}:host(.mobile) .zonos--button-wrapper .zonos--update-btn{-ms-flex-order:1;order:1}"};var B=e("zonos_address_update_dialog",/** @class */function(){function e(e){var o=this;t(this,e);this.closeUpdateDialog=n(this,"closeUpdateDialog",7);this.continueClicked=n(this,"continueClicked",7);
|
|
80
80
|
/**
|
|
@@ -144,7 +144,7 @@ return t.zipRequired&&!!n};var G=function(e){return!!e&&Object.keys(e).length>0}
|
|
|
144
144
|
* so the dropdown is never empty.
|
|
145
145
|
*/var U=function(e){var t=e.allCountries,n=e.shippingZoneCountries,o=e.type;var d=o==="billing"&&G(t)?t:n;return Object.values(d||{}).map((function(e){return{label:e.displayName,value:e.code}})).sort((function(e,t){return e.label.localeCompare(t.label)}))};var V=function(e){var t=e.addresses,n=e.delimiter,o=n===void 0?" ":n;
|
|
146
146
|
// Remove duplicate addresses
|
|
147
|
-
var d=new Set(t.filter(Boolean));return Array.from(d).join(o)};var
|
|
147
|
+
var d=new Set(t.filter(Boolean));return Array.from(d).join(o)};var K=function(){return".sc-zonos-custom-address-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-custom-address-h *.sc-zonos-custom-address{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-custom-address-h img.sc-zonos-custom-address{max-width:100%}.sc-zonos-custom-address-h dl.sc-zonos-custom-address,.sc-zonos-custom-address-h dd.sc-zonos-custom-address,.sc-zonos-custom-address-h h1.sc-zonos-custom-address,.sc-zonos-custom-address-h h2.sc-zonos-custom-address,.sc-zonos-custom-address-h h3.sc-zonos-custom-address,.sc-zonos-custom-address-h h4.sc-zonos-custom-address,.sc-zonos-custom-address-h h5.sc-zonos-custom-address,.sc-zonos-custom-address-h h6.sc-zonos-custom-address,.sc-zonos-custom-address-h hr.sc-zonos-custom-address,.sc-zonos-custom-address-h figure.sc-zonos-custom-address,.sc-zonos-custom-address-h p.sc-zonos-custom-address,.sc-zonos-custom-address-h pre.sc-zonos-custom-address{margin:0}.sc-zonos-custom-address-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-custom-address-h .zonos--title.sc-zonos-custom-address{margin-bottom:16px}.sc-zonos-custom-address-h .zonos--company-name-input.sc-zonos-custom-address,.sc-zonos-custom-address-h .zonos--tax-id-input.sc-zonos-custom-address{margin-bottom:8px}.sc-zonos-custom-address-h zonos-banner.sc-zonos-custom-address{margin-top:8px}.sc-zonos-custom-address-h .zonos--custom-address-form.sc-zonos-custom-address,.sc-zonos-custom-address-h .zonos--custom-address-form-additional-fields.sc-zonos-custom-address{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:8px}.sc-zonos-custom-address-h .zonos--custom-address-form-state-zip-wrapper.sc-zonos-custom-address{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:8px;-ms-flex-wrap:wrap;flex-wrap:wrap}.sc-zonos-custom-address-h .zonos--custom-address-form-state-zip-wrapper.sc-zonos-custom-address>*.sc-zonos-custom-address{-ms-flex:1 1 200px;flex:1 1 200px}.sc-zonos-custom-address-h .zonos--custom-address-form-additional-fields.sc-zonos-custom-address{opacity:0;height:0;overflow:hidden;-webkit-transition:opacity 0.3s ease-in-out, height 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, height 0.3s ease-in-out}.sc-zonos-custom-address-h .zonos--custom-address-form-additional-fields.zonos--show.sc-zonos-custom-address{opacity:1;height:auto}"};var H=undefined&&undefined.__rest||function(e,t){var n={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0)n[o]=e[o];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var d=0,o=Object.getOwnPropertySymbols(e);d<o.length;d++){if(t.indexOf(o[d])<0&&Object.prototype.propertyIsEnumerable.call(e,o[d]))n[o[d]]=e[o[d]]}return n};var Z=e("zonos_custom_address",/** @class */function(){function e(e){var o=this;t(this,e);this.invalidCharacters=n(this,"invalidCharacters",7);this.addressChange=n(this,"addressChange",7);this.onStoreCheckoutSessionIdChangedSubscription=function(){};
|
|
148
148
|
/**
|
|
149
149
|
* Default address for stripe
|
|
150
150
|
*/this.defaultAddress=[];
|
|
@@ -281,7 +281,7 @@ if(o!==e.type){return}e.addressSuggestions=n}));this.onAddressSelectedUnsubscrib
|
|
|
281
281
|
// If the country code of countryFields are the same as current selected country code, do nothing
|
|
282
282
|
if(((n=this.countryField)===null||n===void 0?void 0:n.countryCode)===this.country){return}if(o&&d){this.countryField=d;return}this.countryField=null};e.prototype.shouldEnabledCustomAddressChanged=function(){
|
|
283
283
|
// Only initialize the address suggestions if the address service is not already initialized
|
|
284
|
-
this.initAddressSuggestions();this.initDefaultCustomAddressForm()};e.prototype.renderCustomAddressForm=function(){var e=this;var t,n,d,r,s,a,$,f,h,p,v,b,y,m,g,z;var w=this.getCustomAddressErrors(),x=w.showError,k=
|
|
284
|
+
this.initAddressSuggestions();this.initDefaultCustomAddressForm()};e.prototype.renderCustomAddressForm=function(){var e=this;var t,n,d,r,s,a,$,f,h,p,v,b,y,m,g,z;var w=this.getCustomAddressErrors(),x=w.showError,k=H(w,["showError"]);var C=this.getStripeAddressInstance().stripeAddressEventData;var S=C===null||C===void 0?void 0:C.value.address.country;
|
|
285
285
|
/**
|
|
286
286
|
* Billing addresses are not limited to the shipping zone: a shopper's card
|
|
287
287
|
* can be billed to any country, so restricting it would block them from
|
|
@@ -362,7 +362,7 @@ this.onStoreCheckoutSessionIdChanged();this.countryChanged((e===null||e===void 0
|
|
|
362
362
|
// Only set country if custom address form is enabled
|
|
363
363
|
if(!this.country&&u.selectedCountryCode){this.country=u.selectedCountryCode}
|
|
364
364
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
365
|
-
return o(d,{key:"9d178094ee341623633d1e3822bd79f254a27e51",class:c(["zonos--address zonos--elements","zonos--".concat(this.type,"-address")])},o("zonos-text",{key:"c36b4ce9b63cce95664894fd8929ffe15807a22a",class:"zonos--title",type:"semiBoldLabel"},this.titleText),o("slot",{key:"661eab7074f99b6dca52d5f7f546cfbd29322fbf",name:"below-title"}),this.renderCompanyNameInput(),this.renderTaxIdInput(),this.renderShortAddressCodeInput(),this.renderCustomAddressForm())};Object.defineProperty(e.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{checkoutSessionId:[{isAddressFilledChanged:0}],isAddressFilled:[{isAddressFilledChanged:0}],defaultAddress:[{defaultAddressChanged:0}],line1:[{line1Changed:0}],city:[{formFieldsChanged:0}],country:[{formFieldsChanged:0},{countryChanged:0}],firstName:[{formFieldsChanged:0}],lastName:[{formFieldsChanged:0}],line2:[{formFieldsChanged:0}],phone:[{formFieldsChanged:0}],postalCode:[{formFieldsChanged:0}],state:[{formFieldsChanged:0}],addressService:[{shouldEnabledCustomAddressChanged:0}]}},enumerable:false,configurable:true});return e}());Z.style=
|
|
365
|
+
return o(d,{key:"9d178094ee341623633d1e3822bd79f254a27e51",class:c(["zonos--address zonos--elements","zonos--".concat(this.type,"-address")])},o("zonos-text",{key:"c36b4ce9b63cce95664894fd8929ffe15807a22a",class:"zonos--title",type:"semiBoldLabel"},this.titleText),o("slot",{key:"661eab7074f99b6dca52d5f7f546cfbd29322fbf",name:"below-title"}),this.renderCompanyNameInput(),this.renderTaxIdInput(),this.renderShortAddressCodeInput(),this.renderCustomAddressForm())};Object.defineProperty(e.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{checkoutSessionId:[{isAddressFilledChanged:0}],isAddressFilled:[{isAddressFilledChanged:0}],defaultAddress:[{defaultAddressChanged:0}],line1:[{line1Changed:0}],city:[{formFieldsChanged:0}],country:[{formFieldsChanged:0},{countryChanged:0}],firstName:[{formFieldsChanged:0}],lastName:[{formFieldsChanged:0}],line2:[{formFieldsChanged:0}],phone:[{formFieldsChanged:0}],postalCode:[{formFieldsChanged:0}],state:[{formFieldsChanged:0}],addressService:[{shouldEnabledCustomAddressChanged:0}]}},enumerable:false,configurable:true});return e}());Z.style=K();
|
|
366
366
|
// This file is a workaround for a bug in web browsers' "native"
|
|
367
367
|
// ES6 importing system which is uncapable of importing "*.json" files.
|
|
368
368
|
// https://github.com/catamphetamine/libphonenumber-js/issues/239
|
|
@@ -740,7 +740,7 @@ t=t||{};var o=new le(n);o.selectNumberingPlan(e.country||e.countryCallingCode);
|
|
|
740
740
|
if(o.hasTypes()){return Ie(e,t,o.metadata)!==undefined}
|
|
741
741
|
// If there are no type regexps for this country in metadata then use
|
|
742
742
|
// `nationalNumberPattern` as a "better than nothing" replacement.
|
|
743
|
-
var d=t.v2?e.nationalNumber:e.phone;return Ce(d,o.nationalNumberPattern())}var Te=/^[A-Z]{2}$/;function Le(e){return Te.test(e)}function
|
|
743
|
+
var d=t.v2?e.nationalNumber:e.phone;return Ce(d,o.nationalNumberPattern())}var Te=/^[A-Z]{2}$/;function Le(e){return Te.test(e)}function Pe(e,t){var n;var o;var d=new le(t);
|
|
744
744
|
// If country code is passed then derive `countryCallingCode` from it.
|
|
745
745
|
// Also store the country code as `.country`.
|
|
746
746
|
if(Le(e)){n=e;d.selectNumberingPlan(n);o=d.countryCallingCode()}else{o=e}return{country:n,callingCode:o}}
|
|
@@ -750,7 +750,7 @@ if(Le(e)){n=e;d.selectNumberingPlan(n);o=d.countryCallingCode()}else{o=e}return{
|
|
|
750
750
|
* @param {string} nationalNumber — National (significant) number.
|
|
751
751
|
* @param {object} metadata — Metadata.
|
|
752
752
|
* @return {string[]} A list of possible countries.
|
|
753
|
-
*/function
|
|
753
|
+
*/function Me(e,t,n){var o=new le(n);var d=o.getCountryCodesForCallingCode(e);if(!d){return[]}return d.filter((function(e){return Re(t,e,n)}))}function Re(e,t,n){var o=new le(n);o.selectNumberingPlan(t);return o.numberingPlan.possibleLengths().indexOf(e.length)>=0}
|
|
754
754
|
// The minimum length of the national significant number.
|
|
755
755
|
var _e=2;
|
|
756
756
|
// The ITU says the maximum length should be 15,
|
|
@@ -762,14 +762,14 @@ var Be=3;
|
|
|
762
762
|
// (ascii, fullwidth, arabic-indic, and eastern arabic digits).
|
|
763
763
|
var De="0-90-9٠-٩۰-۹";
|
|
764
764
|
// `DASHES` will be right after the opening square bracket of the "character class"
|
|
765
|
-
var Ge="-‐-―−ー-";var Ue="//";var Ve="..";var
|
|
765
|
+
var Ge="-‐-―−ー-";var Ue="//";var Ve="..";var Ke=" ";var He="()()[]\\[\\]";
|
|
766
766
|
// export const OPENING_BRACKETS = '(\uFF08\uFF3B\\\['
|
|
767
767
|
var Ze="~⁓∼~";
|
|
768
768
|
// Regular expression of acceptable punctuation found in phone numbers. This
|
|
769
769
|
// excludes punctuation found as a leading character only. This consists of dash
|
|
770
770
|
// characters, white space characters, full stops, slashes, square brackets,
|
|
771
771
|
// parentheses and tildes. Full-width variants are also present.
|
|
772
|
-
var We="".concat(Ge).concat(Ue).concat(Ve).concat(
|
|
772
|
+
var We="".concat(Ge).concat(Ue).concat(Ve).concat(Ke).concat(He).concat(Ze);var Ye="++";
|
|
773
773
|
// const LEADING_PLUS_CHARS_PATTERN = new RegExp('^[' + PLUS_CHARS + ']+')
|
|
774
774
|
var qe=new RegExp("(["+De+"])");function Je(e,t,n,o){if(!t){return}
|
|
775
775
|
// Get the IDD prefix pattern.
|
|
@@ -1409,7 +1409,7 @@ if(n==="1"){return n+" "+i}
|
|
|
1409
1409
|
// country calling code. Details here:
|
|
1410
1410
|
// http://www.petitfute.com/voyage/225-info-pratiques-reunion
|
|
1411
1411
|
|
|
1412
|
-
return i}var s=ct(o,undefined,d.metadata);if(s){return"".concat(s," ").concat(n," ").concat(Ot(e,null,"INTERNATIONAL",d))}}function At(){var e=1;for(var t=arguments.length,n=new Array(t),o=0;o<t;o++){n[o]=arguments[o]}while(e<n.length){if(n[e]){for(var d in n[e]){n[0][d]=n[e][d]}}e++}return n[0]}function jt(e,t){var n=0;while(n<e.length){if(t(e[n])){return e[n]}n++}}function Tt(e){"@babel/helpers - typeof";return Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tt(e)}function Lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function
|
|
1412
|
+
return i}var s=ct(o,undefined,d.metadata);if(s){return"".concat(s," ").concat(n," ").concat(Ot(e,null,"INTERNATIONAL",d))}}function At(){var e=1;for(var t=arguments.length,n=new Array(t),o=0;o<t;o++){n[o]=arguments[o]}while(e<n.length){if(n[e]){for(var d in n[e]){n[0][d]=n[e][d]}}e++}return n[0]}function jt(e,t){var n=0;while(n<e.length){if(t(e[n])){return e[n]}n++}}function Tt(e){"@babel/helpers - typeof";return Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tt(e)}function Lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lt(Object(n),true).forEach((function(t){Mt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mt(e,t,n){return(t=Bt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function Rt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _t(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||false,o.configurable=true,"value"in o&&(o.writable=true),Object.defineProperty(e,Bt(o.key),o)}}function Ft(e,t,n){return t&&_t(e.prototype,t),Object.defineProperty(e,"prototype",{writable:false}),e}function Bt(e){var t=Dt(e,"string");return"symbol"==Tt(t)?t:t+""}function Dt(e,t){if("object"!=Tt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=Tt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Gt=function(){
|
|
1413
1413
|
/**
|
|
1414
1414
|
* @param {string} countryOrCountryCallingCode
|
|
1415
1415
|
* @param {string} nationalNumber
|
|
@@ -1428,12 +1428,12 @@ if(!n){throw new TypeError("`nationalNumber` argument is required")}if(typeof n!
|
|
|
1428
1428
|
// Validate `metadata` argument.
|
|
1429
1429
|
ve(o);
|
|
1430
1430
|
// Initialize properties.
|
|
1431
|
-
var a=
|
|
1431
|
+
var a=Pe(t,o),u=a.country,l=a.callingCode;this.country=u;this.countryCallingCode=l;this.nationalNumber=n;this.number="+"+this.countryCallingCode+this.nationalNumber;
|
|
1432
1432
|
// Exclude `metadata` property output from `PhoneNumber.toString()`
|
|
1433
1433
|
// so that it doesn't clutter the console output of Node.js.
|
|
1434
1434
|
// Previously, when Node.js did `console.log(new PhoneNumber(...))`,
|
|
1435
1435
|
// it would output the whole internal structure of the `metadata` object.
|
|
1436
|
-
this.getMetadata=function(){return o}}return Ft(e,[{key:"setExt",value:function e(t){this.ext=t}},{key:"getPossibleCountries",value:function e(){if(this.country){return[this.country]}return
|
|
1436
|
+
this.getMetadata=function(){return o}}return Ft(e,[{key:"setExt",value:function e(t){this.ext=t}},{key:"getPossibleCountries",value:function e(){if(this.country){return[this.country]}return Me(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function e(){return xe(this,{v2:true},this.getMetadata())}},{key:"isValid",value:function e(){return je(this,{v2:true},this.getMetadata())}},{key:"isNonGeographic",value:function e(){var t=new le(this.getMetadata());return t.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function e(t){return this.number===t.number&&this.ext===t.ext}
|
|
1437
1437
|
// `validateLength()` method was originally meant to be an equivalent for `validatePhoneNumberLength()`.
|
|
1438
1438
|
|
|
1439
1439
|
// Later, it became apparent that it's not really a true equivalent.
|
|
@@ -1461,16 +1461,16 @@ this.getMetadata=function(){return o}}return Ft(e,[{key:"setExt",value:function
|
|
|
1461
1461
|
// return result
|
|
1462
1462
|
// }
|
|
1463
1463
|
// }
|
|
1464
|
-
},{key:"getType",value:function e(){return Ie(this,{v2:true},this.getMetadata())}},{key:"format",value:function e(t,n){return St(this,t,n?
|
|
1464
|
+
},{key:"getType",value:function e(){return Ie(this,{v2:true},this.getMetadata())}},{key:"format",value:function e(t,n){return St(this,t,n?Pt(Pt({},n),{},{v2:true}):{v2:true},this.getMetadata())}},{key:"formatNational",value:function e(t){return this.format("NATIONAL",t)}},{key:"formatInternational",value:function e(t){return this.format("INTERNATIONAL",t)}},{key:"getURI",value:function e(t){return this.format("RFC3966",t)}}])}();var Ut=/^\+\d+$/;function Vt(e){"@babel/helpers - typeof";return Vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vt(e)}function Kt(e,t,n){return Object.defineProperty(e,"prototype",{writable:false}),e}function Ht(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zt(e,t,n){return t=nn(t),Wt(e,Qt()?Reflect.construct(t,n||[],nn(e).constructor):t.apply(e,n))}function Wt(e,t){if(t&&("object"==Vt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Yt(e)}function Yt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}}),Object.defineProperty(e,"prototype",{writable:false}),t&&tn(e,t)}function Jt(e){var t="function"==typeof Map?new Map:void 0;return Jt=function e(n){if(null===n||!en(n))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return Xt(n,arguments,nn(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:false,writable:true,configurable:true}}),tn(o,n)},Jt(e)}function Xt(e,t,n){if(Qt())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var d=new(e.bind.apply(e,o));return n&&tn(d,n.prototype),d}function Qt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Qt=function t(){return!!e})()}function en(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}function tn(e,t){return tn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tn(e,t)}function nn(e){return nn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nn(e)}
|
|
1465
1465
|
// https://stackoverflow.com/a/46971044/970769
|
|
1466
1466
|
// "Breaking changes in Typescript 2.1"
|
|
1467
1467
|
// "Extending built-ins like Error, Array, and Map may no longer work."
|
|
1468
1468
|
// "As a recommendation, you can manually adjust the prototype immediately after any super(...) calls."
|
|
1469
1469
|
// https://github.com/Microsoft/TypeScript-wiki/blob/main/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
|
|
1470
|
-
var on=function(e){function t(e){var n;
|
|
1470
|
+
var on=function(e){function t(e){var n;Ht(this,t);n=Zt(this,t,[e]);
|
|
1471
1471
|
// Set the prototype explicitly.
|
|
1472
1472
|
// Any subclass of FooError will have to manually set the prototype as well.
|
|
1473
|
-
Object.setPrototypeOf(n,t.prototype);n.name=n.constructor.name;return n}qt(t,e);return
|
|
1473
|
+
Object.setPrototypeOf(n,t.prototype);n.name=n.constructor.name;return n}qt(t,e);return Kt(t)}(Jt(Error));
|
|
1474
1474
|
// Regexp of all known extension prefixes used by different regions followed by
|
|
1475
1475
|
// 1 or more valid digits, for use when parsing.
|
|
1476
1476
|
var dn=new RegExp("(?:"+vt()+")$","i");
|
|
@@ -1680,9 +1680,9 @@ if(d!==""){return d}}
|
|
|
1680
1680
|
// https://github.com/googlei18n/libphonenumber/commits/master/javascript/i18n/phonenumbers/phonenumberutil.js
|
|
1681
1681
|
// We don't allow input strings for parsing to be longer than 250 chars.
|
|
1682
1682
|
// This prevents malicious input from consuming CPU.
|
|
1683
|
-
var
|
|
1683
|
+
var Pn=250;
|
|
1684
1684
|
// This consists of the plus symbol, digits, and arabic-indic digits.
|
|
1685
|
-
var
|
|
1685
|
+
var Mn=new RegExp("["+Ye+De+"]");
|
|
1686
1686
|
// Regular expression of trailing characters that we want to remove.
|
|
1687
1687
|
// A trailing `#` is sometimes used when writing phone numbers with extensions in US.
|
|
1688
1688
|
// Example: "+1 (645) 123 1234-910#" number has extension "910".
|
|
@@ -1759,9 +1759,9 @@ return{country:u,countryCallingCode:$,carrierCode:c,valid:p,possible:p?true:t.ex
|
|
|
1759
1759
|
* @example
|
|
1760
1760
|
* // Returns "(213) 373-4253".
|
|
1761
1761
|
* extractFormattedPhoneNumber("Call (213) 373-4253 for assistance.")
|
|
1762
|
-
*/function Fn(e,t,n){if(!e){return}if(e.length>
|
|
1762
|
+
*/function Fn(e,t,n){if(!e){return}if(e.length>Pn){if(n){throw new on("TOO_LONG")}return}if(t===false){return e}
|
|
1763
1763
|
// Attempt to extract a possible number from the string passed in
|
|
1764
|
-
var o=e.search(
|
|
1764
|
+
var o=e.search(Mn);if(o<0){return}return e.slice(o).replace(Rn,"")}
|
|
1765
1765
|
/**
|
|
1766
1766
|
* @param {string} text - Input.
|
|
1767
1767
|
* @param {boolean} v2 - Legacy API functions don't pass `v2: true` flag.
|
|
@@ -1828,7 +1828,7 @@ if(!s){return{countryCallingCodeSource:r,countryCallingCode:i}}var u=dt(vn(s),un
|
|
|
1828
1828
|
// "phone number type" regular expressions.
|
|
1829
1829
|
|
|
1830
1830
|
var f=ot(i,{nationalNumber:l,metadata:o});if(f){a=f;
|
|
1831
|
-
/* istanbul ignore if */if(f==="001");else{o.selectNumberingPlan(a)}}return{country:a,countryCallingCode:i,countryCallingCodeSource:r,nationalNumber:l,carrierCode:$}}function Un(e){"@babel/helpers - typeof";return Un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Un(e)}function Vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function
|
|
1831
|
+
/* istanbul ignore if */if(f==="001");else{o.selectNumberingPlan(a)}}return{country:a,countryCallingCode:i,countryCallingCodeSource:r,nationalNumber:l,carrierCode:$}}function Un(e){"@babel/helpers - typeof";return Un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Un(e)}function Vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vn(Object(n),true).forEach((function(t){Hn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hn(e,t,n){return(t=Zn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function Zn(e){var t=Wn(e,"string");return"symbol"==Un(t)?t:t+""}function Wn(e,t){if("object"!=Un(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=Un(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function Yn(e,t,n){return _n(e,Kn(Kn({},t),{},{v2:true}),n)}function qn(e){"@babel/helpers - typeof";return qn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qn(e)}function Jn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Xn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jn(Object(n),true).forEach((function(t){Qn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qn(e,t,n){return(t=eo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function eo(e){var t=to(e,"string");return"symbol"==qn(t)?t:t+""}function to(e,t){if("object"!=qn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=qn(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function no(e,t){return ao(e)||so(e,t)||ro(e,t)||oo()}function oo(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ro(e,t){if(e){if("string"==typeof e)return io(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?io(e,t):void 0}}function io(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function so(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,d,r,i,s=[],a=true,u=false;try{if(r=(n=n.call(e)).next,0===t);else for(;!(a=(o=r.call(n)).done)&&(s.push(o.value),s.length!==t);a=true);}catch(e){u=true,d=e}finally{try{if(!a&&null!=n["return"]&&(i=n["return"](),Object(i)!==i))return}finally{if(u)throw d}}return s}}function ao(e){if(Array.isArray(e))return e}
|
|
1832
1832
|
// Extracts the following properties from function arguments:
|
|
1833
1833
|
// * input `text`
|
|
1834
1834
|
// * `options` object
|
|
@@ -1915,7 +1915,7 @@ for(var o=Co(n.split("")),d;!(d=o()).done;){var r=d.value;
|
|
|
1915
1915
|
// then set the next digit in the `template`,
|
|
1916
1916
|
// and return the formatted digits so far.
|
|
1917
1917
|
// If more digits are entered than the current format could handle.
|
|
1918
|
-
if(e.slice(t+1).search(No)<0){return}t=e.search(No);e=e.replace(No,r)}return[e,t]}function Lo(e,t,n){var o=n.shouldTryNationalPrefixFormattingRule,d=n.getSeparatorAfterNationalPrefix;var r=new RegExp("^(?:".concat(t.pattern(),")$"));if(r.test(e.nationalSignificantNumber)){return
|
|
1918
|
+
if(e.slice(t+1).search(No)<0){return}t=e.search(No);e=e.replace(No,r)}return[e,t]}function Lo(e,t,n){var o=n.shouldTryNationalPrefixFormattingRule,d=n.getSeparatorAfterNationalPrefix;var r=new RegExp("^(?:".concat(t.pattern(),")$"));if(r.test(e.nationalSignificantNumber)){return Mo(e,t,{shouldTryNationalPrefixFormattingRule:o,getSeparatorAfterNationalPrefix:d})}}function Po(e,t){return ze(e,undefined,t)==="IS_POSSIBLE"}function Mo(e,t,n){var o=n.shouldTryNationalPrefixFormattingRule,d=n.getSeparatorAfterNationalPrefix;
|
|
1919
1919
|
// Format the number with using `national_prefix_formatting_rule`.
|
|
1920
1920
|
// If the resulting formatted number is a valid formatted number, then return it.
|
|
1921
1921
|
|
|
@@ -1961,14 +1961,14 @@ r=e.nationalPrefix+d(t)+r}else if(e.prefixBeforeNationalSignificantNumberThatIsN
|
|
|
1961
1961
|
// https://github.com/google/libphonenumber/commit/3e7c1f04f5e7200f87fb131e6f85c6e99d60f510#diff-9149457fa9f5d608a11bb975c6ef4bc5
|
|
1962
1962
|
// https://github.com/google/libphonenumber/commit/3ac88c7106e7dcb553bcc794b15f19185928a1c6#diff-2dcb77e833422ee304da348b905cde0b
|
|
1963
1963
|
|
|
1964
|
-
function _o(e,t){return fn(e)===t.getNationalDigits()}function Fo(e){"@babel/helpers - typeof";return Fo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fo(e)}function Bo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Do(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||false,o.configurable=true,"value"in o&&(o.writable=true),Object.defineProperty(e,Uo(o.key),o)}}function Go(e,t,n){return t&&Do(e.prototype,t),Object.defineProperty(e,"prototype",{writable:false}),e}function Uo(e){var t=Vo(e,"string");return"symbol"==Fo(t)?t:t+""}function Vo(e,t){if("object"!=Fo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=Fo(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var
|
|
1964
|
+
function _o(e,t){return fn(e)===t.getNationalDigits()}function Fo(e){"@babel/helpers - typeof";return Fo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fo(e)}function Bo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Do(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||false,o.configurable=true,"value"in o&&(o.writable=true),Object.defineProperty(e,Uo(o.key),o)}}function Go(e,t,n){return t&&Do(e.prototype,t),Object.defineProperty(e,"prototype",{writable:false}),e}function Uo(e){var t=Vo(e,"string");return"symbol"==Fo(t)?t:t+""}function Vo(e,t){if("object"!=Fo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=Fo(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ko=function(){function e(){Bo(this,e)}return Go(e,[{key:"parse",value:function e(t){this.context=[{or:true,instructions:[]}];this.parsePattern(t);if(this.context.length!==1){throw new Error("Non-finalized contexts left when pattern parse ended")}var n=this.context[0],o=n.branches,d=n.instructions;if(o){return{op:"|",args:o.concat([Yo(d)])}}
|
|
1965
1965
|
/* istanbul ignore if */if(d.length===0){throw new Error("Pattern is required")}if(d.length===1){return d[0]}return d}},{key:"startContext",value:function e(t){this.context.push(t)}},{key:"endContext",value:function e(){this.context.pop()}},{key:"getContext",value:function e(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function e(t){if(!t){throw new Error("Pattern is required")}var n=t.match(Wo);if(!n){if(Zo.test(t)){throw new Error("Illegal characters found in a pattern: ".concat(t))}this.getContext().instructions=this.getContext().instructions.concat(t.split(""));return}var o=n[1];var d=t.slice(0,n.index);var r=t.slice(n.index+o.length);switch(o){case"(?:":if(d){this.parsePattern(d)}this.startContext({or:true,instructions:[],branches:[]});break;case")":if(!this.getContext().or){throw new Error('")" operator must be preceded by "(?:" operator')}if(d){this.parsePattern(d)}if(this.getContext().instructions.length===0){throw new Error('No instructions found after "|" operator in an "or" group')}var i=this.getContext(),s=i.branches;s.push(Yo(this.getContext().instructions));this.endContext();this.getContext().instructions.push({op:"|",args:s});break;case"|":if(!this.getContext().or){throw new Error('"|" operator can only be used inside "or" groups')}if(d){this.parsePattern(d)}
|
|
1966
1966
|
// The top-level is an implicit "or" group, if required.
|
|
1967
1967
|
if(!this.getContext().branches){
|
|
1968
1968
|
// `branches` are not defined only for the root implicit "or" operator.
|
|
1969
1969
|
/* istanbul ignore else */
|
|
1970
|
-
if(this.context.length===1){this.getContext().branches=[]}else{throw new Error('"branches" not found in an "or" group context')}}this.getContext().branches.push(Yo(this.getContext().instructions));this.getContext().instructions=[];break;case"[":if(d){this.parsePattern(d)}this.startContext({oneOfSet:true});break;case"]":if(!this.getContext().oneOfSet){throw new Error('"]" operator must be preceded by "[" operator')}this.endContext();this.getContext().instructions.push({op:"[]",args:
|
|
1971
|
-
/* istanbul ignore next */default:throw new Error("Unknown operator: ".concat(o))}if(r){this.parsePattern(r)}}}])}();function
|
|
1970
|
+
if(this.context.length===1){this.getContext().branches=[]}else{throw new Error('"branches" not found in an "or" group context')}}this.getContext().branches.push(Yo(this.getContext().instructions));this.getContext().instructions=[];break;case"[":if(d){this.parsePattern(d)}this.startContext({oneOfSet:true});break;case"]":if(!this.getContext().oneOfSet){throw new Error('"]" operator must be preceded by "[" operator')}this.endContext();this.getContext().instructions.push({op:"[]",args:Ho(d)});break;
|
|
1971
|
+
/* istanbul ignore next */default:throw new Error("Unknown operator: ".concat(o))}if(r){this.parsePattern(r)}}}])}();function Ho(e){var t=[];var n=0;while(n<e.length){if(e[n]==="-"){if(n===0||n===e.length-1){throw new Error("Couldn't parse a one-of set pattern: ".concat(e))}var o=e[n-1].charCodeAt(0)+1;var d=e[n+1].charCodeAt(0)-1;var r=o;while(r<=d){t.push(String.fromCharCode(r));r++}}else{t.push(e[n])}n++}return t}var Zo=/[\(\)\[\]\?\:\|]/;var Wo=new RegExp(
|
|
1972
1972
|
// any of:
|
|
1973
1973
|
"("+
|
|
1974
1974
|
// or operator
|
|
@@ -1988,7 +1988,7 @@ if(this.context.length===1){this.getContext().branches=[]}else{throw new Error('
|
|
|
1988
1988
|
// or
|
|
1989
1989
|
"|"+
|
|
1990
1990
|
// one-of set end
|
|
1991
|
-
"\\]"+")");function Yo(e){if(e.length===1){return e[0]}return e}function qo(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Jo(e))||t){n&&(e=n);var o=0;return function(){return o>=e.length?{done:true}:{done:false,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Jo(e,t){if(e){if("string"==typeof e)return Xo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xo(e,t):void 0}}function Xo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Qo(e){"@babel/helpers - typeof";return Qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qo(e)}function ed(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function td(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||false,o.configurable=true,"value"in o&&(o.writable=true),Object.defineProperty(e,od(o.key),o)}}function nd(e,t,n){return t&&td(e.prototype,t),Object.defineProperty(e,"prototype",{writable:false}),e}function od(e){var t=dd(e,"string");return"symbol"==Qo(t)?t:t+""}function dd(e,t){if("object"!=Qo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=Qo(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var rd=function(){function e(t){ed(this,e);this.matchTree=(new
|
|
1991
|
+
"\\]"+")");function Yo(e){if(e.length===1){return e[0]}return e}function qo(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Jo(e))||t){n&&(e=n);var o=0;return function(){return o>=e.length?{done:true}:{done:false,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Jo(e,t){if(e){if("string"==typeof e)return Xo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xo(e,t):void 0}}function Xo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Qo(e){"@babel/helpers - typeof";return Qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qo(e)}function ed(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function td(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||false,o.configurable=true,"value"in o&&(o.writable=true),Object.defineProperty(e,od(o.key),o)}}function nd(e,t,n){return t&&td(e.prototype,t),Object.defineProperty(e,"prototype",{writable:false}),e}function od(e){var t=dd(e,"string");return"symbol"==Qo(t)?t:t+""}function dd(e,t){if("object"!=Qo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=Qo(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var rd=function(){function e(t){ed(this,e);this.matchTree=(new Ko).parse(t)}return nd(e,[{key:"match",value:function e(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},o=n.allowOverflow;if(!t){throw new Error("String is required")}var d=id(t.split(""),this.matchTree,true);if(d&&d.match){delete d.matchedChars}if(d&&d.overflow){if(!o){return}}return d}}])}();function id(e,t,n){
|
|
1992
1992
|
// If `tree` is a string, then `tree` is a single character.
|
|
1993
1993
|
// That's because when a pattern is parsed, multi-character-string parts
|
|
1994
1994
|
// of a pattern are compiled into arrays of single characters.
|
|
@@ -2111,7 +2111,7 @@ var xd=3;var kd=function(){function e(t){var n=t.metadata;$d(this,e);this.metada
|
|
|
2111
2111
|
// If so, we should use this instead of any other formatting template
|
|
2112
2112
|
// whose leadingDigitsPattern also matches the input."
|
|
2113
2113
|
|
|
2114
|
-
if(
|
|
2114
|
+
if(Po(n.nationalSignificantNumber,this.metadata)){for(var d=ad(this.matchingFormats),r;!(r=d()).done;){var i=r.value;var s=Lo(n,i,{shouldTryNationalPrefixFormattingRule:function e(t){return o.shouldTryNationalPrefixFormattingRule(t,{international:n.international,nationalPrefix:n.nationalPrefix})},getSeparatorAfterNationalPrefix:function e(t){return o.getSeparatorAfterNationalPrefix(t)}});if(s){this.resetFormat();this.chosenFormat=i;this.setNationalNumberTemplate(s.replace(/\d/g,Eo),n);this.populatedNationalNumberTemplate=s;
|
|
2115
2115
|
// With a new formatting template, the matched position
|
|
2116
2116
|
// using the old template needs to be reset.
|
|
2117
2117
|
this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(Eo);return s}}}
|
|
@@ -2420,11 +2420,11 @@ return Ao(this.populatedNationalNumberTemplate,this.populatedNationalNumberTempl
|
|
|
2420
2420
|
// In some countries, `national_prefix_formatting_rule` is `($1)`,
|
|
2421
2421
|
// so it applies even if the user hasn't input a national prefix.
|
|
2422
2422
|
// `format.usesNationalPrefix()` detects such cases.
|
|
2423
|
-
var r=t.usesNationalPrefix();if(r&&d||!r&&!o){return true}}}}])}();function Cd(e){"@babel/helpers - typeof";return Cd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cd(e)}function Sd(e,t){return Ad(e)||Id(e,t)||Ed(e,t)||Od()}function Od(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ed(e,t){if(e){if("string"==typeof e)return Nd(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nd(e,t):void 0}}function Nd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Id(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,d,r,i,s=[],a=true,u=false;try{if(r=(n=n.call(e)).next,0===t);else for(;!(a=(o=r.call(n)).done)&&(s.push(o.value),s.length!==t);a=true);}catch(e){u=true,d=e}finally{try{if(!a&&null!=n["return"]&&(i=n["return"](),Object(i)!==i))return}finally{if(u)throw d}}return s}}function Ad(e){if(Array.isArray(e))return e}function jd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Td(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||false,o.configurable=true,"value"in o&&(o.writable=true),Object.defineProperty(e,
|
|
2423
|
+
var r=t.usesNationalPrefix();if(r&&d||!r&&!o){return true}}}}])}();function Cd(e){"@babel/helpers - typeof";return Cd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cd(e)}function Sd(e,t){return Ad(e)||Id(e,t)||Ed(e,t)||Od()}function Od(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ed(e,t){if(e){if("string"==typeof e)return Nd(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nd(e,t):void 0}}function Nd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Id(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,d,r,i,s=[],a=true,u=false;try{if(r=(n=n.call(e)).next,0===t);else for(;!(a=(o=r.call(n)).done)&&(s.push(o.value),s.length!==t);a=true);}catch(e){u=true,d=e}finally{try{if(!a&&null!=n["return"]&&(i=n["return"](),Object(i)!==i))return}finally{if(u)throw d}}return s}}function Ad(e){if(Array.isArray(e))return e}function jd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Td(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||false,o.configurable=true,"value"in o&&(o.writable=true),Object.defineProperty(e,Pd(o.key),o)}}function Ld(e,t,n){return t&&Td(e.prototype,t),Object.defineProperty(e,"prototype",{writable:false}),e}function Pd(e){var t=Md(e,"string");return"symbol"==Cd(t)?t:t+""}function Md(e,t){if("object"!=Cd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=Cd(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Rd="["+We+De+"]+";var _d=new RegExp("^"+Rd+"$","i");var Fd="(?:"+"["+Ye+"]"+"["+We+De+"]*"+"|"+"["+We+De+"]+"+")";var Bd=new RegExp("[^"+We+De+"]+"+".*"+"$");
|
|
2424
2424
|
// Tests whether `national_prefix_for_parsing` could match
|
|
2425
2425
|
// different national prefixes.
|
|
2426
2426
|
// Matches anything that's not a digit or a square bracket.
|
|
2427
|
-
var Dd=/[^\d\[\]]/;var Gd=function(){function e(t){var n=t.defaultCountry,o=t.defaultCallingCode,d=t.metadata,r=t.onNationalSignificantNumberChange;jd(this,e);this.defaultCountry=n;this.defaultCallingCode=o;this.metadata=d;this.onNationalSignificantNumberChange=r}return Ld(e,[{key:"input",value:function e(t,n){var o=
|
|
2427
|
+
var Dd=/[^\d\[\]]/;var Gd=function(){function e(t){var n=t.defaultCountry,o=t.defaultCallingCode,d=t.metadata,r=t.onNationalSignificantNumberChange;jd(this,e);this.defaultCountry=n;this.defaultCallingCode=o;this.metadata=d;this.onNationalSignificantNumberChange=r}return Ld(e,[{key:"input",value:function e(t,n){var o=Kd(t),d=Sd(o,2),r=d[0],i=d[1];var s=fn(r);
|
|
2428
2428
|
// Checks for a special case: just a leading `+` has been entered.
|
|
2429
2429
|
var a;if(i){if(!n.digits){n.startInternationalNumber(undefined,undefined);if(!s){a=true}}}if(s){this.inputDigits(s,n)}return{digits:s,justLeadingPlus:a}}
|
|
2430
2430
|
/**
|
|
@@ -2599,11 +2599,11 @@ if(t[0]==="+"){return[t.slice("+".length),true]}return[t]}
|
|
|
2599
2599
|
* Extracts formatted phone number digits (and a `+`) from text (if there're any).
|
|
2600
2600
|
* @param {string} text
|
|
2601
2601
|
* @return {any[]}
|
|
2602
|
-
*/function
|
|
2602
|
+
*/function Kd(e){var t=Vd(e),n=Sd(t,2),o=n[0],d=n[1];
|
|
2603
2603
|
// If the extracted phone number part
|
|
2604
2604
|
// can possibly be a part of some valid phone number
|
|
2605
2605
|
// then parse phone number characters from a formatted phone number.
|
|
2606
|
-
if(!_d.test(o)){o=""}return[o,d]}function
|
|
2606
|
+
if(!_d.test(o)){o=""}return[o,d]}function Hd(e){"@babel/helpers - typeof";return Hd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hd(e)}function Zd(e,t){return Xd(e)||Jd(e,t)||Yd(e,t)||Wd()}function Wd(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Yd(e,t){if(e){if("string"==typeof e)return qd(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qd(e,t):void 0}}function qd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Jd(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,d,r,i,s=[],a=true,u=false;try{if(r=(n=n.call(e)).next,0===t);else for(;!(a=(o=r.call(n)).done)&&(s.push(o.value),s.length!==t);a=true);}catch(e){u=true,d=e}finally{try{if(!a&&null!=n["return"]&&(i=n["return"](),Object(i)!==i))return}finally{if(u)throw d}}return s}}function Xd(e){if(Array.isArray(e))return e}function Qd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function er(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||false,o.configurable=true,"value"in o&&(o.writable=true),Object.defineProperty(e,nr(o.key),o)}}function tr(e,t,n){return t&&er(e.prototype,t),Object.defineProperty(e,"prototype",{writable:false}),e}function nr(e){var t=or(e,"string");return"symbol"==Hd(t)?t:t+""}function or(e,t){if("object"!=Hd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=Hd(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var dr=function(){
|
|
2607
2607
|
/**
|
|
2608
2608
|
* @param {(string|object)?} [optionsOrDefaultCountry] - The default country used for parsing non-international phone numbers. Can also be an `options` object.
|
|
2609
2609
|
* @param {Object} metadata
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as o,a as s}from"./p-_lt63o7c.js";import{D as t,t as a,A as n,l}from"./p-
|
|
1
|
+
import{r as e,h as o,a as s}from"./p-_lt63o7c.js";import{D as t,t as a,A as n,l}from"./p-Cuk0LLGQ.js";import{a as i}from"./p-W82paT5F.js";import"./p-DE4a-QD5.js";import"./p-BJmZPrZl.js";const c=class{constructor(o){e(this,o),this.handleOnClose=()=>{},this.languageSelected=e=>{t(e),this.handleOnClose()}}render(){const{selectedLocale:e}=l;return o(s,{key:"b557082e699209af33ab25715d5cb23fb8a20f56",class:"zonos--elements",style:{"--zonos--font-family":i()}},o("div",{key:"f5fa8a8163aa46589d67df8d7b69a9b60c7c3994",class:"zonos--language-select"},o("zonos-select-dialog-header",{key:"7ffc14b7fab4014352361424de6ea6e2fc8d7f6c",handleOnClose:()=>this.handleOnClose(),label:a("Select a language")}),o("div",{key:"ab06dd27d199ef7223ce4421ab4d4e7a5816e402",class:"zonos--language-select-content"},n().map((s=>o("button",{class:"zonos--language-select-button",onClick:()=>this.languageSelected(s.code)},o("zonos-text",{textColor:"gray-800"},s.translatedLabel),s.code===e&&o("zonos-icon",{content:'<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',size:16})))))))}};c.style=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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:16px;padding-top:0px}:host .zonos--language-select .zonos--language-select-content .zonos--language-select-button{display:-ms-flexbox;display:flex;padding:8px;gap:4px;-ms-flex-align:center;align-items:center;border-radius:var(--zonos-elements-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(--zonos-elements-gray-100)}@media (max-width: 400px){:host .zonos--language-select .zonos--language-select-content{grid-template-columns:1fr 1fr}}";const d=class{constructor(o){e(this,o),this.handleOnClose=()=>{},this.label=""}render(){return o(s,{key:"2c3fe65b8226875d1e543d87d622a2356c975bae",class:"zonos--elements",style:{"--zonos--font-family":i()}},o("zonos-v-stack",{key:"7e065cce508376405350d8cf0b90437c5bbbd6e9",class:"zonos--select-dialog-header-wrapper",spacing:8},o("div",{key:"363ff8e4b18b50497b904af45bcf62ae374f90de",class:"zonos--select-dialog-header"},o("zonos-text",{key:"5b3833d7186579859d067c205ab3cb70bf01ed99",type:"boldLabel"},this.label),o("zonos-button",{key:"7dd27337e33c3d97544696a8d850204296474f5e",class:"zonos--close-button",icon:o("zonos-icon",{"aria-label":"Close select 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>',size:20}),noBackground:!0,onClick:()=>this.handleOnClose()})),o("slot",{key:"a5f6b16ecc6a1fb8c24bd783f0384d3506656f01"})))}};d.style=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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--select-dialog-header-wrapper{position:-webkit-sticky;position:sticky;top:0;background:var(--zonos-elements-surface-color);padding:16px}:host .zonos--select-dialog-header-wrapper .zonos--select-dialog-header{position:relative;-ms-flex-pack:justify;justify-content:space-between;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}";export{c as zonos_language_select,d as zonos_select_dialog_header}
|