@odus/checkout 1.8.0 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/checkout.es.js +166 -145
  2. package/dist/components/checkout/card-elements/CardCvvElement.d.ts.map +1 -1
  3. package/dist/components/checkout/card-elements/CardNumberElement.d.ts.map +1 -1
  4. package/dist/components/checkout/form/AddressSection.d.ts +10 -0
  5. package/dist/components/checkout/form/AddressSection.d.ts.map +1 -1
  6. package/dist/components/checkout/form/CardSection.d.ts +14 -1
  7. package/dist/components/checkout/form/CardSection.d.ts.map +1 -1
  8. package/dist/components/checkout/form/CardholderSection.d.ts.map +1 -1
  9. package/dist/components/checkout/form/FormComponentManager.d.ts +1 -0
  10. package/dist/components/checkout/form/FormComponentManager.d.ts.map +1 -1
  11. package/dist/components/checkout/form/PaymentMethods.d.ts.map +1 -1
  12. package/dist/components/common/HelperText.d.ts +2 -0
  13. package/dist/components/common/HelperText.d.ts.map +1 -1
  14. package/dist/components/common/Input.d.ts +14 -2
  15. package/dist/components/common/Input.d.ts.map +1 -1
  16. package/dist/components/common/Select.d.ts +7 -0
  17. package/dist/components/common/Select.d.ts.map +1 -1
  18. package/dist/elements/ApplePayElement.d.ts.map +1 -1
  19. package/dist/elements/card/VgsCardAdapter.d.ts +6 -0
  20. package/dist/elements/card/VgsCardAdapter.d.ts.map +1 -1
  21. package/dist/elements.es.js +237 -236
  22. package/dist/index.css +1 -1
  23. package/dist/locales/cs.json.d.ts +1 -1
  24. package/dist/locales/de.json.d.ts +1 -1
  25. package/dist/locales/en.json.d.ts +1 -1
  26. package/dist/locales/es.json.d.ts +1 -1
  27. package/dist/locales/fr.json.d.ts +1 -1
  28. package/dist/locales/it.json.d.ts +1 -1
  29. package/dist/locales/nl.json.d.ts +1 -1
  30. package/dist/locales/pl.json.d.ts +1 -1
  31. package/dist/locales/pt.json.d.ts +1 -1
  32. package/dist/locales/sk.json.d.ts +1 -1
  33. package/dist/locales/tr.json.d.ts +1 -1
  34. package/dist/phone.js +29 -29
  35. package/dist/shared.js +169 -151
  36. package/dist/utils/country/isCountryAllowed.util.d.ts +17 -0
  37. package/dist/utils/country/isCountryAllowed.util.d.ts.map +1 -0
  38. package/dist/utils/helpers/vgsFieldMetrics.util.d.ts +9 -0
  39. package/dist/utils/helpers/vgsFieldMetrics.util.d.ts.map +1 -0
  40. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -1,2 +1,2 @@
1
- .form-input{opacity:1;font-size:var(--odus-input-font-size,16px);font-weight:var(--odus-input-font-weight,400);letter-spacing:var(--odus-input-letter-spacing,.02em);box-shadow:0 0 0 1px var(--odus-border-color,#e0e0e0), 0 2px 4px 0 #00000012, 0 1px 1.5px 0 #0000000d;background:var(--odus-color-background,#fff);padding:var(--odus-input-padding,8px 12px);line-height:var(--odus-input-line-height,1.5);z-index:0;box-sizing:border-box;border:none;outline:none;flex:1;width:100%;min-height:0;transition:box-shadow .1s ease-in,border-radius .2s ease-in}.form-input[name=cardNumber]{padding-right:100px}.form-input-error{box-shadow:0 0 0 1px var(--odus-color-error,#dc2727), 0 2px 4px 0 #00000012, 0 1px 1.5px 0 #0000000d}.form-input::placeholder{color:var(--odus-input-placeholder-color,#717173);opacity:var(--odus-input-placeholder-opacity,.3)}.form-input:focus{z-index:2;position:relative;box-shadow:0 0 0 1px #3297d3b3,0 1px 1px #00000012,0 0 0 4px #3297d34d}.form-helper-text{color:#dc2727;font-family:var(--odus-font-family,inherit);max-height:100px;margin-top:4px;font-size:12px;font-weight:500;transition:max-height .3s ease-in-out,opacity .3s ease-in-out,margin .3s ease-in-out;display:block;overflow:hidden}.form-helper-text-hidden{opacity:0;max-height:0;margin-top:0;overflow:hidden}.form-helper-text-hint{color:var(--odus-color-muted,#6b7280);font-weight:400}.input-label{font-family:var(--odus-font-family,inherit);font-size:var(--odus-label-font-size,14px);font-weight:var(--odus-label-font-weight,400);color:var(--odus-label-color,var(--odus-color-text,#1a1a1a));letter-spacing:var(--odus-label-letter-spacing,normal);line-height:var(--odus-label-line-height,1.4);margin-bottom:var(--odus-label-margin-bottom,6px)}.input-wrapper{box-sizing:border-box;flex-direction:column;align-items:stretch;width:100%;min-width:0;display:flex}.input-wrapper *{box-sizing:border-box}.form-select{opacity:1;letter-spacing:.02em;padding:var(--odus-input-padding,8px 12px);z-index:0;box-sizing:border-box;cursor:pointer;appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none'%3E%3Cpath d='M2 3.5L5 6.5L8 3.5' stroke='%23717173' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center no-repeat;border:none;outline:none;flex:1;width:100%;min-height:0;padding-right:32px;font-weight:400;line-height:1.5;transition:box-shadow .1s ease-in,border-radius .2s ease-in;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d}.form-select-error{box-shadow:0 0 0 1px var(--odus-color-error,#dc2727), 0 2px 4px 0 #00000012, 0 1px 1.5px 0 #0000000d}.form-select-placeholder{color:#d4d4d5}.form-select option[disabled]{color:#717173;opacity:.5}.form-select:focus{z-index:2;position:relative;box-shadow:0 0 0 1px #3297d3b3,0 1px 1px #00000012,0 0 0 4px #3297d34d}.card-element{border-radius:inherit;box-sizing:border-box;background:#fff;border:none;height:38.5px;padding:0;transition:box-shadow .1s ease-in;position:relative;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d}.card-element iframe{width:100%;min-width:0;display:block}.card-element-focus{box-shadow:0 0 0 1px #3297d3b3,0 1px 1px #00000012,0 0 0 4px #3297d34d}.card-icon{opacity:1;width:18px;transition:opacity .6s ease-in}.card-icon img{max-width:100%;height:auto;display:block}.cards-position{z-index:10;pointer-events:none;align-items:center;gap:8px;display:flex;position:absolute;top:50%;right:12px;transform:translateY(-50%)}.loading{position:relative}.loading:after{content:"";border-radius:inherit;background-color:#fff;width:100%;height:100%;position:absolute;inset:0}@media only screen and (min-width:600px){.card-icon{width:20px}}.vgs-card-group iframe,.vgs-wrap iframe{width:100%;min-width:0;display:block}.fake-ph{color:#717173;opacity:.3;font-size:var(--odus-input-font-size,16px);letter-spacing:.02em;font-weight:400;line-height:1.5;font-family:var(--odus-font-family,inherit);pointer-events:none;-webkit-user-select:none;user-select:none;white-space:nowrap;z-index:0;background:#fff;align-items:center;padding:8px 12px;display:flex;position:absolute;inset:0}@keyframes vgs-shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.vgs-field-skeleton{pointer-events:none;z-index:11;border-radius:inherit;background:linear-gradient(90deg,#f7f7f7 25%,#fdfdfd 50%,#f7f7f7 75%) 0 0/200% 100%;animation:1.5s ease-in-out infinite vgs-shimmer;position:absolute;inset:0}apple-pay-button{appearance:-apple-pay-button;-apple-pay-button-type:plain;-apple-pay-button-style:black;cursor:pointer;box-sizing:border-box;border-radius:4px;width:100%;height:40px;min-height:40px;display:inline-block}apple-pay-button:hover{filter:brightness(.9)}.paypal{color:#253b80;text-transform:none;cursor:pointer;background-color:#ffc439;border-radius:4px;padding:8px 16px;font-weight:700;box-shadow:0 2px 4px #0000001a}.paypal:hover{filter:brightness(.95);background-color:#ffc439}.paypal-icon-container{justify-content:center;align-items:center;display:flex}.paypal-icon-container img{width:69px;height:22px}@keyframes slideIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.error-alert{background-color:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:16px;animation:.3s ease-out slideIn;box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f}.error-alert-content{align-items:flex-start;gap:12px;display:flex}.error-alert-icon-container{color:#dc2626;background-color:#fee2e2;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;display:flex}.error-alert-icon{color:#dc2626}.error-alert-text-container{flex:1;min-width:0}.error-alert-title{color:#991b1b;margin:0 0 4px;font-size:14px;font-weight:600;line-height:1.4}.error-alert-message{font-family:var(--odus-font-family,inherit);color:#7f1d1d;word-break:break-word;margin:0;font-size:14px;line-height:1.5}.form-container{text-align:left;flex-direction:column;gap:16px;max-width:100%;min-height:340px;padding:4px;display:flex;position:relative}.form-container>*{font-family:inherit}.card-details{display:flex}.card-details>*{flex:1;min-width:0}.error-messages-container>*{display:none}.error-messages-container>:first-child{display:block}.address-section{flex-direction:column;gap:6px;display:flex}.address-section-title{margin:0;padding:0;font-size:14px;font-weight:600}.address-same-as-billing{cursor:pointer;align-items:center;gap:4px;display:flex}.address-same-as-billing input[type=checkbox]{opacity:0;pointer-events:none;width:0;height:0;position:absolute}.address-same-as-billing .checkbox-icon{cursor:pointer;flex-shrink:0;width:24px;height:24px}.address-same-as-billing .checkbox-icon .checkbox-checked{display:none}.address-same-as-billing .checkbox-icon .checkbox-unchecked,.address-same-as-billing input[type=checkbox]:checked+.checkbox-icon .checkbox-checked{display:block}.address-same-as-billing input[type=checkbox]:checked+.checkbox-icon .checkbox-unchecked{display:none}.address-same-as-billing label{cursor:pointer;font-size:14px}.address-fields{flex-direction:column;gap:0;transition:opacity .2s;display:flex}.address-fields--ungrouped{gap:16px}.address-row{gap:0;display:flex}.address-row-single{width:100%}.address-row-single>*{flex:1}.address-row-double{width:100%}.address-row-double>*{flex:1;min-width:0}.payment-methods{flex-direction:column;gap:12px;display:flex}.skeleton-container{text-align:left;flex-direction:column;gap:12px;width:100%;max-width:100%;display:flex;position:relative}.skeleton{background:linear-gradient(90deg,#f7f7f7 25%,#fdfdfd 50%,#f7f7f7 75%) 0 0/200% 100%;border-radius:8px;animation:1.5s ease-in-out infinite shimmer;position:relative;overflow:hidden}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.skeleton-field{flex-direction:column;gap:8px;display:flex}.skeleton-label{border-radius:4px;width:80px;height:16px}.skeleton-input{border-radius:8px;width:100%;height:35px}.skeleton-payment-method{border-radius:8px;width:100%;height:37.8614px}.skeleton-card-row{gap:12px;display:flex}.skeleton-card-row .skeleton-field{flex:1}.skeleton-submit-button{border-radius:8px;width:100%;height:35px}.skeleton-separator-text{border-radius:4px;width:12ch;height:13px;font-size:14px}.payment-separator_container{justify-content:space-between;align-items:center;gap:16px;width:100%;min-height:21px;margin:0 0 -8px;display:flex}.payment-separator{justify-content:space-between;align-items:center;width:100%;margin:0 0 -8px;display:flex}.payment-separator__line{background:#9f9f9f;flex-grow:1;height:1.3px}.payment-separator__text{color:#0d0d0d;margin:0;padding:0 16px;font-size:14px;font-weight:400}.button{text-align:center;cursor:pointer;white-space:nowrap;border:none;outline:none;justify-content:center;align-items:center;width:100%;height:min-content;padding:8px 16px;font-size:14px;font-weight:700;line-height:1.5;transition:all .2s;display:inline-flex;position:relative}.disabled{pointer-events:none}.valid{outline:none;transition:all .3s;overflow:hidden}.valid:before{content:"";background:linear-gradient(90deg,#0000,#fff6,#0000);width:100%;height:100%;transition:left .5s;animation:6s infinite glowSlide;position:absolute;top:0;left:-100%}@keyframes glowSlide{0%{left:-100%}50%{left:100%}to{left:100%}}.valid:after{content:"";background:linear-gradient(90deg,#0000 0%,#ffffff1a 25%,#ffffff4d 50%,#ffffff1a 75%,#0000 100%);width:100%;height:100%;animation:7s infinite smoothGlow;position:absolute;top:0;left:0;transform:translate(-100%)}@keyframes smoothGlow{0%{transform:translate(-100%)}to{transform:translate(100%)}}.blur-bg{-webkit-backdrop-filter:blur(3.5px);backdrop-filter:blur(3.5px);z-index:9999;background:0 0;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;inset:0}.loader{background:conic-gradient(from 270deg,#134e4a 0deg,#0f766e 90deg,#0d9488 180deg,#5eaba3 240deg,#0d948833 300deg,#0000 330deg);border-radius:50%;width:64px;height:64px;animation:1s linear infinite spin;position:relative}.loader:before{content:"";background:#fff;border-radius:50%;position:absolute;inset:6px}@keyframes spin{to{transform:rotate(360deg)}}.title{color:#4f4f4f;margin-top:20px;font-size:18px;animation:1s ease-in-out fadeIn}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.country-dial-code-dropdown{display:inline-block;position:relative}.country-dial-code-trigger{padding:var(--odus-input-padding,8px 12px);cursor:pointer;letter-spacing:.02em;font-weight:400;line-height:var(--odus-input-line-height,1.5);white-space:nowrap;box-sizing:border-box;background:#fff;border:none;border-right:1px solid #e0e0e0;align-items:center;gap:6px;padding-right:8px;transition:all .1s ease-in;display:flex}.country-dial-code-trigger:hover{background:#f5f5f5}.country-dial-code-trigger:focus{outline:none}.country-dial-code-trigger .country-flag{font-size:14px;line-height:1}.country-dial-code-trigger .country-chevron{color:#717173;flex-shrink:0;transition:transform .15s}.country-dial-code-trigger[aria-expanded=true] .country-chevron{transform:rotate(180deg)}.country-dial-code-panel{z-index:10000;background:#fff;border-radius:8px;flex-direction:column;width:280px;max-height:360px;display:flex;position:fixed;top:0;left:0;overflow:hidden;box-shadow:0 0 0 1px #0000000d,0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.country-dial-code-panel.hidden{display:none}.country-search-wrapper{border-bottom:1px solid #e0e0e0;flex-shrink:0;padding:12px}.country-search{width:100%;font-size:inherit;box-sizing:border-box;border:1px solid #e0e0e0;border-radius:6px;outline:none;padding:6px 12px;font-family:inherit;transition:all .1s ease-in}.country-search:focus{border-color:#3297d3b3;box-shadow:0 0 0 3px #3297d31a}.country-search::placeholder{color:#717173;opacity:.6}.countries-list{flex:1;min-height:0;overflow-y:auto}.countries-list::-webkit-scrollbar{width:8px}.countries-list::-webkit-scrollbar-track{background:#f5f5f5}.countries-list::-webkit-scrollbar-thumb{background:#d0d0d0;border-radius:4px}.countries-list::-webkit-scrollbar-thumb:hover{background:#b0b0b0}.country-group-header{color:#717173;text-transform:uppercase;letter-spacing:.05em;z-index:1;background:#fafafa;padding:8px 16px 4px;font-size:12px;font-weight:600;position:sticky;top:0}.country-item{cursor:pointer;text-align:left;width:100%;color:inherit;background:#fff;border:none;align-items:center;gap:12px;padding:10px 16px;font-family:inherit;font-size:14px;transition:background .1s;display:flex}.country-item:hover{background:#f5f5f5}.country-item.selected{color:#3297d3;background:#3297d314}.country-item:focus{background:#f0f0f0;outline:none}.country-item .country-flag{flex-shrink:0;font-size:20px;line-height:1}.country-item .country-name{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.country-item .country-dial-code{color:#717173;flex-shrink:0;font-size:.95em}.country-item.selected .country-dial-code{color:#3297d3cc}.no-results{text-align:center;color:#717173;padding:24px 16px;font-size:14px}.phone-number-field-wrapper{width:100%;display:flex}.phone-number-field-container{border-radius:inherit;background:#fff;align-items:center;width:100%;transition:box-shadow .1s ease-in,border-radius .2s ease-in;display:flex;position:relative;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d}.phone-number-field-container.focused{z-index:2;box-shadow:0 0 0 1px #3297d3b3,0 1px 1px #00000012,0 0 0 4px #3297d34d}.phone-number-field-container.error{box-shadow:0 0 0 1px #dc2727,0 2px 4px #dc27271a}.phone-number-field-container.error.focused{box-shadow:0 0 0 1px #dc2727,0 1px 1px #00000012,0 0 0 4px #dc272733}.phone-number-field-container .country-select-wrapper{padding:var(--odus-input-padding,8px 12px);border-top-left-radius:var(--phone-border-radius,0px);border-bottom-left-radius:var(--phone-border-radius,0px);white-space:nowrap;background:0 0;flex-shrink:0;align-items:center;gap:4px;padding-right:6px;display:flex;position:relative}.phone-number-field-container .country-select-wrapper .country-flag{pointer-events:none;font-size:14px;line-height:1}.phone-number-field-container .country-select-wrapper .country-chevron{color:#717173;pointer-events:none;flex-shrink:0;align-items:center;display:flex}.phone-number-field-container .country-select-wrapper .country-select{cursor:pointer;opacity:0;background:0 0;border:none;outline:none;width:100%;height:100%;position:absolute;inset:0}.phone-number-field-container .phone-input-wrapper{flex:1;min-width:0}.phone-number-field-container .phone-input-wrapper .form-input{box-shadow:none;border-radius:0;border-top-right-radius:var(--phone-border-radius,0px);border-bottom-right-radius:var(--phone-border-radius,0px);padding:var(--odus-input-padding,8px 2px);border:none}.phone-number-field-container .phone-input-wrapper .form-input:focus{box-shadow:none;z-index:auto}
1
+ .form-helper-text-anchor{height:var(--odus-helper-text-space,4px);z-index:3;position:relative}.form-helper-text{color:#dc2727;font-family:var(--odus-font-family,inherit);font-size:12px;font-weight:500;line-height:var(--odus-helper-text-line-height,14px);background:var(--odus-color-background,#fff);pointer-events:none;transition:opacity .2s ease-in-out;display:block;position:absolute;top:2px;left:0;right:0}.form-helper-text-hidden{opacity:0;visibility:hidden}.form-helper-text-hint{color:var(--odus-color-muted,#6b7280);font-weight:400}.form-input{opacity:1;font-size:var(--odus-input-font-size,16px);font-weight:var(--odus-input-font-weight,400);letter-spacing:var(--odus-input-letter-spacing,.02em);box-shadow:0 0 0 1px var(--odus-border-color,#e0e0e0), 0 2px 4px 0 #00000012, 0 1px 1.5px 0 #0000000d;background:var(--odus-color-background,#fff);padding:var(--odus-input-padding,8px 12px);line-height:var(--odus-input-line-height,1.5);z-index:0;box-sizing:border-box;border:none;outline:none;flex:1;width:100%;min-height:0;transition:box-shadow .1s ease-in,border-radius .2s ease-in}.form-input[name=cardNumber]{padding-right:100px}.form-input-error{box-shadow:0 0 0 1px var(--odus-color-error,#dc2727), 0 2px 4px 0 #00000012, 0 1px 1.5px 0 #0000000d}.form-input::placeholder{color:var(--odus-input-placeholder-color,#717173);opacity:var(--odus-input-placeholder-opacity,.3)}.form-input:focus{z-index:2;position:relative;box-shadow:0 0 0 1px #3297d3b3,0 1px 1px #00000012,0 0 0 4px #3297d34d}.input-label{font-family:var(--odus-font-family,inherit);font-size:var(--odus-label-font-size,14px);font-weight:var(--odus-label-font-weight,400);color:var(--odus-label-color,var(--odus-color-text,#1a1a1a));letter-spacing:var(--odus-label-letter-spacing,normal);line-height:var(--odus-label-line-height,1.4);margin-bottom:var(--odus-label-margin-bottom,6px)}.input-wrapper{box-sizing:border-box;flex-direction:column;align-items:stretch;width:100%;min-width:0;display:flex}.input-wrapper *{box-sizing:border-box}.form-select{opacity:1;letter-spacing:.02em;padding:var(--odus-input-padding,8px 12px);z-index:0;box-sizing:border-box;cursor:pointer;appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none'%3E%3Cpath d='M2 3.5L5 6.5L8 3.5' stroke='%23717173' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center no-repeat;border:none;outline:none;flex:1;width:100%;min-height:0;padding-right:32px;font-weight:400;line-height:1.5;transition:box-shadow .1s ease-in,border-radius .2s ease-in;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d}.form-select-error{box-shadow:0 0 0 1px var(--odus-color-error,#dc2727), 0 2px 4px 0 #00000012, 0 1px 1.5px 0 #0000000d}.form-select-placeholder{color:#d4d4d5}.form-select option[disabled]{color:#717173;opacity:.5}.form-select:focus{z-index:2;position:relative;box-shadow:0 0 0 1px #3297d3b3,0 1px 1px #00000012,0 0 0 4px #3297d34d}.card-element{border-radius:inherit;box-sizing:border-box;background:#fff;border:none;height:38.5px;padding:0;transition:box-shadow .1s ease-in;position:relative;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d}.card-element iframe{width:100%;min-width:0;display:block}.card-element-focus{box-shadow:0 0 0 1px #3297d3b3,0 1px 1px #00000012,0 0 0 4px #3297d34d}.card-icon{opacity:1;width:18px;transition:opacity .6s ease-in}.card-icon img{max-width:100%;height:auto;display:block}.cards-position{z-index:10;pointer-events:none;align-items:center;gap:8px;display:flex;position:absolute;top:50%;right:12px;transform:translateY(-50%)}.loading{position:relative}.loading:after{content:"";border-radius:inherit;background-color:#fff;width:100%;height:100%;position:absolute;inset:0}@media only screen and (min-width:600px){.card-icon{width:20px}}.vgs-card-group iframe,.vgs-wrap iframe{width:100%;min-width:0;display:block}.fake-ph{color:#717173;opacity:.3;font-size:var(--odus-input-font-size,16px);letter-spacing:.02em;font-weight:400;line-height:1.5;font-family:var(--odus-font-family,inherit);pointer-events:none;-webkit-user-select:none;user-select:none;white-space:nowrap;z-index:0;background:#fff;align-items:center;padding:8px 12px;display:flex;position:absolute;inset:0}@keyframes vgs-shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.vgs-field-skeleton{pointer-events:none;z-index:11;border-radius:inherit;background:linear-gradient(90deg,#f7f7f7 25%,#fdfdfd 50%,#f7f7f7 75%) 0 0/200% 100%;animation:1.5s ease-in-out infinite vgs-shimmer;position:absolute;inset:0}apple-pay-button{appearance:-apple-pay-button;-apple-pay-button-type:plain;-apple-pay-button-style:black;cursor:pointer;box-sizing:border-box;border-radius:4px;width:100%;height:40px;min-height:40px;display:inline-block}apple-pay-button:hover{filter:brightness(.9)}.paypal{color:#253b80;text-transform:none;cursor:pointer;background-color:#ffc439;border-radius:4px;padding:8px 16px;font-weight:700;box-shadow:0 2px 4px #0000001a}.paypal:hover{filter:brightness(.95);background-color:#ffc439}.paypal-icon-container{justify-content:center;align-items:center;display:flex}.paypal-icon-container img{width:69px;height:22px}@keyframes slideIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.error-alert{background-color:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:16px;animation:.3s ease-out slideIn;box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f}.error-alert-content{align-items:flex-start;gap:12px;display:flex}.error-alert-icon-container{color:#dc2626;background-color:#fee2e2;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;display:flex}.error-alert-icon{color:#dc2626}.error-alert-text-container{flex:1;min-width:0}.error-alert-title{color:#991b1b;margin:0 0 4px;font-size:14px;font-weight:600;line-height:1.4}.error-alert-message{font-family:var(--odus-font-family,inherit);color:#7f1d1d;word-break:break-word;margin:0;font-size:14px;line-height:1.5}.form-container{text-align:left;flex-direction:column;gap:16px;max-width:100%;min-height:340px;padding:4px;display:flex;position:relative}.form-container>*{font-family:inherit}.card-details{display:flex}.card-details>*{flex:1;min-width:0}.error-messages-container>*{display:none}.error-messages-container>:first-child{display:block}.error-messages-container{min-height:var(--odus-helper-text-space,4px)}.address-section{flex-direction:column;gap:6px;display:flex}.address-section-title{margin:0;padding:0;font-size:14px;font-weight:600}.address-same-as-billing{cursor:pointer;align-items:center;gap:4px;display:flex}.address-same-as-billing input[type=checkbox]{opacity:0;pointer-events:none;width:0;height:0;position:absolute}.address-same-as-billing .checkbox-icon{cursor:pointer;flex-shrink:0;width:24px;height:24px}.address-same-as-billing .checkbox-icon .checkbox-checked{display:none}.address-same-as-billing .checkbox-icon .checkbox-unchecked,.address-same-as-billing input[type=checkbox]:checked+.checkbox-icon .checkbox-checked{display:block}.address-same-as-billing input[type=checkbox]:checked+.checkbox-icon .checkbox-unchecked{display:none}.address-same-as-billing label{cursor:pointer;font-size:14px}.address-fields{flex-direction:column;gap:0;transition:opacity .2s;display:flex}.address-fields--ungrouped{gap:16px}.address-row{gap:0;display:flex}.address-row-single{width:100%}.address-row-single>*{flex:1}.address-row-double{width:100%}.address-row-double>*{flex:1;min-width:0}.payment-methods{flex-direction:column;gap:12px;display:flex}.skeleton-container{text-align:left;flex-direction:column;gap:12px;width:100%;max-width:100%;display:flex;position:relative}.skeleton{background:linear-gradient(90deg,#f7f7f7 25%,#fdfdfd 50%,#f7f7f7 75%) 0 0/200% 100%;border-radius:8px;animation:1.5s ease-in-out infinite shimmer;position:relative;overflow:hidden}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.skeleton-field{flex-direction:column;gap:8px;display:flex}.skeleton-label{border-radius:4px;width:80px;height:16px}.skeleton-input{border-radius:8px;width:100%;height:35px}.skeleton-payment-method{border-radius:8px;width:100%;height:37.8614px}.skeleton-card-row{gap:12px;display:flex}.skeleton-card-row .skeleton-field{flex:1}.skeleton-submit-button{border-radius:8px;width:100%;height:35px}.skeleton-separator-text{border-radius:4px;width:12ch;height:13px;font-size:14px}.payment-separator_container{justify-content:space-between;align-items:center;gap:16px;width:100%;min-height:21px;margin:0 0 -8px;display:flex}.payment-separator{justify-content:space-between;align-items:center;width:100%;margin:0 0 -8px;display:flex}.payment-separator__line{background:#9f9f9f;flex-grow:1;height:1.3px}.payment-separator__text{color:#0d0d0d;margin:0;padding:0 16px;font-size:14px;font-weight:400}.button{text-align:center;cursor:pointer;white-space:nowrap;border:none;outline:none;justify-content:center;align-items:center;width:100%;height:min-content;padding:8px 16px;font-size:14px;font-weight:700;line-height:1.5;transition:all .2s;display:inline-flex;position:relative}.disabled{pointer-events:none}.valid{outline:none;transition:all .3s;overflow:hidden}.valid:before{content:"";background:linear-gradient(90deg,#0000,#fff6,#0000);width:100%;height:100%;transition:left .5s;animation:6s infinite glowSlide;position:absolute;top:0;left:-100%}@keyframes glowSlide{0%{left:-100%}50%{left:100%}to{left:100%}}.valid:after{content:"";background:linear-gradient(90deg,#0000 0%,#ffffff1a 25%,#ffffff4d 50%,#ffffff1a 75%,#0000 100%);width:100%;height:100%;animation:7s infinite smoothGlow;position:absolute;top:0;left:0;transform:translate(-100%)}@keyframes smoothGlow{0%{transform:translate(-100%)}to{transform:translate(100%)}}.blur-bg{-webkit-backdrop-filter:blur(3.5px);backdrop-filter:blur(3.5px);z-index:9999;background:0 0;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;inset:0}.loader{background:conic-gradient(from 270deg,#134e4a 0deg,#0f766e 90deg,#0d9488 180deg,#5eaba3 240deg,#0d948833 300deg,#0000 330deg);border-radius:50%;width:64px;height:64px;animation:1s linear infinite spin;position:relative}.loader:before{content:"";background:#fff;border-radius:50%;position:absolute;inset:6px}@keyframes spin{to{transform:rotate(360deg)}}.title{color:#4f4f4f;margin-top:20px;font-size:18px;animation:1s ease-in-out fadeIn}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.country-dial-code-dropdown{display:inline-block;position:relative}.country-dial-code-trigger{padding:var(--odus-input-padding,8px 12px);cursor:pointer;letter-spacing:.02em;font-weight:400;line-height:var(--odus-input-line-height,1.5);white-space:nowrap;box-sizing:border-box;background:#fff;border:none;border-right:1px solid #e0e0e0;align-items:center;gap:6px;padding-right:8px;transition:all .1s ease-in;display:flex}.country-dial-code-trigger:hover{background:#f5f5f5}.country-dial-code-trigger:focus{outline:none}.country-dial-code-trigger .country-flag{font-size:14px;line-height:1}.country-dial-code-trigger .country-chevron{color:#717173;flex-shrink:0;transition:transform .15s}.country-dial-code-trigger[aria-expanded=true] .country-chevron{transform:rotate(180deg)}.country-dial-code-panel{z-index:10000;background:#fff;border-radius:8px;flex-direction:column;width:280px;max-height:360px;display:flex;position:fixed;top:0;left:0;overflow:hidden;box-shadow:0 0 0 1px #0000000d,0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.country-dial-code-panel.hidden{display:none}.country-search-wrapper{border-bottom:1px solid #e0e0e0;flex-shrink:0;padding:12px}.country-search{width:100%;font-size:inherit;box-sizing:border-box;border:1px solid #e0e0e0;border-radius:6px;outline:none;padding:6px 12px;font-family:inherit;transition:all .1s ease-in}.country-search:focus{border-color:#3297d3b3;box-shadow:0 0 0 3px #3297d31a}.country-search::placeholder{color:#717173;opacity:.6}.countries-list{flex:1;min-height:0;overflow-y:auto}.countries-list::-webkit-scrollbar{width:8px}.countries-list::-webkit-scrollbar-track{background:#f5f5f5}.countries-list::-webkit-scrollbar-thumb{background:#d0d0d0;border-radius:4px}.countries-list::-webkit-scrollbar-thumb:hover{background:#b0b0b0}.country-group-header{color:#717173;text-transform:uppercase;letter-spacing:.05em;z-index:1;background:#fafafa;padding:8px 16px 4px;font-size:12px;font-weight:600;position:sticky;top:0}.country-item{cursor:pointer;text-align:left;width:100%;color:inherit;background:#fff;border:none;align-items:center;gap:12px;padding:10px 16px;font-family:inherit;font-size:14px;transition:background .1s;display:flex}.country-item:hover{background:#f5f5f5}.country-item.selected{color:#3297d3;background:#3297d314}.country-item:focus{background:#f0f0f0;outline:none}.country-item .country-flag{flex-shrink:0;font-size:20px;line-height:1}.country-item .country-name{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.country-item .country-dial-code{color:#717173;flex-shrink:0;font-size:.95em}.country-item.selected .country-dial-code{color:#3297d3cc}.no-results{text-align:center;color:#717173;padding:24px 16px;font-size:14px}.phone-number-field-wrapper{width:100%;display:flex}.phone-number-field-container{border-radius:inherit;background:#fff;align-items:center;width:100%;transition:box-shadow .1s ease-in,border-radius .2s ease-in;display:flex;position:relative;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d}.phone-number-field-container.focused{z-index:2;box-shadow:0 0 0 1px #3297d3b3,0 1px 1px #00000012,0 0 0 4px #3297d34d}.phone-number-field-container.error{box-shadow:0 0 0 1px #dc2727,0 2px 4px #dc27271a}.phone-number-field-container.error.focused{box-shadow:0 0 0 1px #dc2727,0 1px 1px #00000012,0 0 0 4px #dc272733}.phone-number-field-container .country-select-wrapper{padding:var(--odus-input-padding,8px 12px);border-top-left-radius:var(--phone-border-radius,0px);border-bottom-left-radius:var(--phone-border-radius,0px);white-space:nowrap;background:0 0;flex-shrink:0;align-items:center;gap:4px;padding-right:6px;display:flex;position:relative}.phone-number-field-container .country-select-wrapper .country-flag{pointer-events:none;font-size:14px;line-height:1}.phone-number-field-container .country-select-wrapper .country-chevron{color:#717173;pointer-events:none;flex-shrink:0;align-items:center;display:flex}.phone-number-field-container .country-select-wrapper .country-select{cursor:pointer;opacity:0;background:0 0;border:none;outline:none;width:100%;height:100%;position:absolute;inset:0}.phone-number-field-container .phone-input-wrapper{flex:1;min-width:0}.phone-number-field-container .phone-input-wrapper .form-input{box-shadow:none;border-radius:0;border-top-right-radius:var(--phone-border-radius,0px);border-bottom-right-radius:var(--phone-border-radius,0px);padding:var(--odus-input-padding,8px 2px);border:none}.phone-number-field-container .phone-input-wrapper .form-input:focus{box-shadow:none;z-index:auto}
2
2
  /*$vite$:1*/
@@ -56,7 +56,7 @@ declare const _default: {
56
56
  "cardNumberInvalid": "Číslo karty je neúplné",
57
57
  "cardNumberLuhnInvalid": "Číslo karty je neplatné",
58
58
  "phoneNumberRequired": "Telefonní číslo je povinné",
59
- "phoneNumberInvalid": "Vaše telefonní číslo je neplatné. Ujistěte se, že je v rozbalovací nabídce vybrána správná země.",
59
+ "phoneNumberInvalid": "Vaše telefonní číslo je neplatné",
60
60
  "invalid-checkout": "Nepodařilo se spustit pokladnu",
61
61
  "streetRequired": "Ulice je povinná",
62
62
  "firstNameRequired": "Jméno je povinné",
@@ -56,7 +56,7 @@ declare const _default: {
56
56
  "cardNumberInvalid": "Die Kartennummer ist unvollständig",
57
57
  "cardNumberLuhnInvalid": "Die Kartennummer ist ungültig",
58
58
  "phoneNumberRequired": "Telefonnummer ist erforderlich",
59
- "phoneNumberInvalid": "Ihre Telefonnummer ist ungültig. Bitte stellen Sie sicher, dass das richtige Land im Dropdown-Menü ausgewählt ist.",
59
+ "phoneNumberInvalid": "Ihre Telefonnummer ist ungültig",
60
60
  "invalid-checkout": "Checkout konnte nicht initialisiert werden",
61
61
  "streetRequired": "Straße ist erforderlich",
62
62
  "firstNameRequired": "Vorname ist erforderlich",
@@ -56,7 +56,7 @@ declare const _default: {
56
56
  "cardNumberInvalid": "Your card number is incomplete",
57
57
  "cardNumberLuhnInvalid": "Your card number is invalid",
58
58
  "phoneNumberRequired": "Phone number is required",
59
- "phoneNumberInvalid": "Your phone number is invalid. Please ensure the correct country is selected in the dropdown.",
59
+ "phoneNumberInvalid": "Your phone number is invalid",
60
60
  "invalid-checkout": "Failed to initialize checkout",
61
61
  "streetRequired": "Street address is required",
62
62
  "firstNameRequired": "First name is required",
@@ -56,7 +56,7 @@ declare const _default: {
56
56
  "cardNumberInvalid": "Su número de tarjeta no es válido",
57
57
  "cardNumberLuhnInvalid": "Su número de tarjeta no es válido",
58
58
  "phoneNumberRequired": "El número de teléfono es obligatorio",
59
- "phoneNumberInvalid": "Su número de teléfono no es válido. Asegúrese de que el país correcto esté seleccionado en el menú desplegable.",
59
+ "phoneNumberInvalid": "Su número de teléfono no es válido",
60
60
  "invalid-checkout": "No se pudo inicializar el checkout",
61
61
  "streetRequired": "La dirección es obligatoria",
62
62
  "firstNameRequired": "El nombre es obligatorio",
@@ -56,7 +56,7 @@ declare const _default: {
56
56
  "cardNumberInvalid": "Votre numéro de carte est invalide",
57
57
  "cardNumberLuhnInvalid": "Votre numéro de carte est invalide",
58
58
  "phoneNumberRequired": "Le numéro de téléphone est requis",
59
- "phoneNumberInvalid": "Votre numéro de téléphone est invalide. Veuillez vous assurer que le bon pays est sélectionné dans le menu déroulant.",
59
+ "phoneNumberInvalid": "Votre numéro de téléphone est invalide",
60
60
  "invalid-checkout": "Échec de l'initialisation du checkout",
61
61
  "streetRequired": "L'adresse est requise",
62
62
  "firstNameRequired": "Le prénom est requis",
@@ -56,7 +56,7 @@ declare const _default: {
56
56
  "cardNumberInvalid": "Il numero della tua carta non è valido",
57
57
  "cardNumberLuhnInvalid": "Il numero della tua carta non è valido",
58
58
  "phoneNumberRequired": "Il numero di telefono è obbligatorio",
59
- "phoneNumberInvalid": "Il tuo numero di telefono non è valido. Assicurati che il paese corretto sia selezionato nel menu a discesa.",
59
+ "phoneNumberInvalid": "Il tuo numero di telefono non è valido",
60
60
  "invalid-checkout": "Impossibile inizializzare il checkout",
61
61
  "streetRequired": "L'indirizzo è obbligatorio",
62
62
  "firstNameRequired": "Il nome è obbligatorio",
@@ -56,7 +56,7 @@ declare const _default: {
56
56
  "cardNumberInvalid": "Uw kaartnummer is onvolledig",
57
57
  "cardNumberLuhnInvalid": "Uw kaartnummer is ongeldig",
58
58
  "phoneNumberRequired": "Telefoonnummer is verplicht",
59
- "phoneNumberInvalid": "Uw telefoonnummer is ongeldig. Zorg ervoor dat het juiste land is geselecteerd in het dropdownmenu.",
59
+ "phoneNumberInvalid": "Uw telefoonnummer is ongeldig",
60
60
  "invalid-checkout": "Initialiseren van afrekenen mislukt",
61
61
  "streetRequired": "Adres is verplicht",
62
62
  "firstNameRequired": "Voornaam is verplicht",
@@ -56,7 +56,7 @@ declare const _default: {
56
56
  "cardNumberInvalid": "Numer Państwa karty jest nieprawidłowy",
57
57
  "cardNumberLuhnInvalid": "Numer Państwa karty jest nieprawidłowy",
58
58
  "phoneNumberRequired": "Numer telefonu jest wymagany",
59
- "phoneNumberInvalid": "Twój numer telefonu jest nieprawidłowy. Upewnij się, że w menu rozwijanym wybrany jest właściwy kraj.",
59
+ "phoneNumberInvalid": "Twój numer telefonu jest nieprawidłowy",
60
60
  "invalid-checkout": "Nie udało się zainicjować procesu płatności",
61
61
  "streetRequired": "Adres jest wymagany",
62
62
  "firstNameRequired": "Imię jest wymagane",
@@ -56,7 +56,7 @@ declare const _default: {
56
56
  "cardNumberInvalid": "O número do seu cartão é inválido",
57
57
  "cardNumberLuhnInvalid": "O número do seu cartão é inválido",
58
58
  "phoneNumberRequired": "O número de telefone é obrigatório",
59
- "phoneNumberInvalid": "O seu número de telefone é inválido. Certifique-se de que o país correto está selecionado no menu suspenso.",
59
+ "phoneNumberInvalid": "O seu número de telefone é inválido",
60
60
  "invalid-checkout": "Falha ao inicializar o checkout",
61
61
  "streetRequired": "A morada é obrigatória",
62
62
  "firstNameRequired": "O nome é obrigatório",
@@ -56,7 +56,7 @@ declare const _default: {
56
56
  "cardNumberInvalid": "Číslo karty je neúplné",
57
57
  "cardNumberLuhnInvalid": "Číslo karty je neplatné",
58
58
  "phoneNumberRequired": "Telefónne číslo je povinné",
59
- "phoneNumberInvalid": "Vaše telefónne číslo je neplatné. Uistite sa, že v rozbaľovacej ponuke je vybraná správna krajina.",
59
+ "phoneNumberInvalid": "Vaše telefónne číslo je neplatné",
60
60
  "invalid-checkout": "Nepodarilo sa spustiť pokladňu",
61
61
  "streetRequired": "Ulica je povinná",
62
62
  "firstNameRequired": "Meno je povinné",
@@ -56,7 +56,7 @@ declare const _default: {
56
56
  "cardNumberInvalid": "Kart numaranız geçersiz",
57
57
  "cardNumberLuhnInvalid": "Kart numaranız geçersiz",
58
58
  "phoneNumberRequired": "Telefon numarası gerekli",
59
- "phoneNumberInvalid": "Telefon numaranız geçersiz. Lütfen açılır menüden doğru ülkenin seçili olduğundan emin olun.",
59
+ "phoneNumberInvalid": "Telefon numaranız geçersiz",
60
60
  "invalid-checkout": "Checkout başlatılamadı",
61
61
  "streetRequired": "Sokak adresi gerekli",
62
62
  "firstNameRequired": "Ad gerekli",
package/dist/phone.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as e, d as t, f as n, g as r, p as i, v as a, x as o } from "./shared.js";
1
+ import { _ as e, f as t, m as n, p as r, v as i, w as a, x as o } from "./shared.js";
2
2
  //#region libs/checkout/src/utils/dom/restoreCursorAfterFormat.util.ts
3
3
  var s = (e, t, n) => {
4
4
  let r = 0, i = n.length;
@@ -10460,28 +10460,28 @@ var X = (e) => {
10460
10460
  let t = e.toUpperCase().split("").map((e) => 127397 + e.charCodeAt(0));
10461
10461
  return String.fromCodePoint(...t);
10462
10462
  }, Si = (t, n) => {
10463
- let i = Object.values(e);
10464
- return (t?.length ? i.filter((e) => t.includes(e.toUpperCase())) : i).map((e) => {
10463
+ let r = Object.values(i);
10464
+ return (t?.length ? r.filter((e) => t.includes(e.toUpperCase())) : r).map((t) => {
10465
10465
  try {
10466
- let t = bi(e);
10466
+ let r = bi(t);
10467
10467
  return {
10468
- code: e.toUpperCase(),
10469
- name: r(e, n),
10470
- dialCode: `+${t}`,
10471
- flag: X(e)
10468
+ code: t.toUpperCase(),
10469
+ name: e(t, n),
10470
+ dialCode: `+${r}`,
10471
+ flag: X(t)
10472
10472
  };
10473
10473
  } catch {
10474
10474
  return null;
10475
10475
  }
10476
10476
  }).filter((e) => e !== null).sort((e, t) => e.name.localeCompare(t.name, n));
10477
- }, Ci = (e) => {
10477
+ }, Ci = (t) => {
10478
10478
  try {
10479
- let t = e.toUpperCase(), n = bi(t);
10479
+ let n = t.toUpperCase(), r = bi(n);
10480
10480
  return {
10481
- code: t,
10482
- name: r(t),
10483
- dialCode: `+${n}`,
10484
- flag: X(t)
10481
+ code: n,
10482
+ name: e(n),
10483
+ dialCode: `+${r}`,
10484
+ flag: X(n)
10485
10485
  };
10486
10486
  } catch {
10487
10487
  return null;
@@ -10778,19 +10778,19 @@ var X = (e) => {
10778
10778
  } catch {
10779
10779
  return Infinity;
10780
10780
  }
10781
- }, Oi = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" fill=\"none\" aria-hidden=\"true\"><path d=\"M2 3.5L5 6.5L8 3.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>", ki = class extends a {
10781
+ }, Oi = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" fill=\"none\" aria-hidden=\"true\"><path d=\"M2 3.5L5 6.5L8 3.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>", ki = class extends o {
10782
10782
  _flagDisplay;
10783
10783
  _selectElement;
10784
10784
  _locale;
10785
10785
  constructor(e) {
10786
10786
  super("div", ["country-select-wrapper"]);
10787
- let { countries: t, selectedCode: n, locale: r, styles: i, ariaLabel: o, onChange: s } = e;
10788
- this._locale = r, this._flagDisplay = new a("span", ["country-flag"]), this._flagDisplay.setText(X(n)), this._selectElement = new a("select", ["country-select"]), this._selectElement.setAttribute("aria-label", o);
10787
+ let { countries: t, selectedCode: n, locale: r, styles: i, ariaLabel: a, onChange: s } = e;
10788
+ this._locale = r, this._flagDisplay = new o("span", ["country-flag"]), this._flagDisplay.setText(X(n)), this._selectElement = new o("select", ["country-select"]), this._selectElement.setAttribute("aria-label", a);
10789
10789
  let c = this._selectElement.getElement();
10790
10790
  c.style.fontFamily = `"${i.fontFamily}", sans-serif`, c.style.color = i.textColor, c.style.fontSize = `${i.fontSize}px`, this._buildOptions(t, n), this._selectElement.addEventListener("change", (e) => {
10791
10791
  s(e.target.value);
10792
10792
  });
10793
- let l = new a("span", ["country-chevron"]);
10793
+ let l = new o("span", ["country-chevron"]);
10794
10794
  l.getElement().innerHTML = Oi, this.appendChild(this._flagDisplay), this.appendChild(l), this.appendChild(this._selectElement);
10795
10795
  }
10796
10796
  setCountry(e) {
@@ -10814,7 +10814,7 @@ var X = (e) => {
10814
10814
  }), n.appendChild(i);
10815
10815
  });
10816
10816
  }
10817
- }, Ai = class extends a {
10817
+ }, Ai = class extends o {
10818
10818
  _countrySelector;
10819
10819
  _inputElement;
10820
10820
  _countryCodeInput;
@@ -10828,14 +10828,14 @@ var X = (e) => {
10828
10828
  _customPlaceholder;
10829
10829
  constructor(e) {
10830
10830
  super("div", ["input-wrapper", "phone-number-field-wrapper"]);
10831
- let { value: t, onChange: r, onBlur: o, onTab: s, checkoutProfile: c, translationFunc: l, defaultCountry: u, allowedCountries: d, locale: f, label: p, placeholder: m } = e;
10832
- this._onChange = r, this._onBlur = o, this._translationFunc = l, this._customPlaceholder = m, this._currentCountryCode = u?.toUpperCase() || "US", this._buildLabel(c, l, p), this._containerElement = this._buildContainer(c), this._countrySelector = this._buildCountrySelector(d, f, c, l), this._containerElement.appendChild(this._countrySelector), this._countryCodeInput = i.createInput("hidden", [], {
10831
+ let { value: t, onChange: i, onBlur: a, onTab: s, checkoutProfile: c, translationFunc: l, defaultCountry: u, allowedCountries: d, locale: f, label: p, placeholder: m } = e;
10832
+ this._onChange = i, this._onBlur = a, this._translationFunc = l, this._customPlaceholder = m, this._currentCountryCode = u?.toUpperCase() || "US", this._buildLabel(c, l, p), this._containerElement = this._buildContainer(c), this._countrySelector = this._buildCountrySelector(d, f, c, l), this._containerElement.appendChild(this._countrySelector), this._countryCodeInput = r.createInput("hidden", [], {
10833
10833
  name: "phoneCountryCode",
10834
10834
  value: this._currentCountryCode
10835
10835
  }), this.appendChild(this._countryCodeInput);
10836
10836
  let h = this._currentCountryCode, { inputElement: g, initialValue: _ } = this._buildInput(c, t, s);
10837
10837
  this._inputElement = g, _ !== t && (this._inputElement.getElement().value = _), this._currentCountryCode !== h && this._syncCountryCodeInput(this._currentCountryCode);
10838
- let v = new a("div", ["phone-input-wrapper"]);
10838
+ let v = new o("div", ["phone-input-wrapper"]);
10839
10839
  v.appendChild(this._inputElement), this._containerElement.appendChild(v), this.appendChild(this._containerElement), this._helperText = new n({
10840
10840
  text: e.errorMsg || "",
10841
10841
  visible: e.error
@@ -10853,7 +10853,7 @@ var X = (e) => {
10853
10853
  this.appendChild(i);
10854
10854
  }
10855
10855
  _buildContainer(e) {
10856
- let t = new a("div", ["phone-number-field-container"]), n = t.getElement();
10856
+ let t = new o("div", ["phone-number-field-container"]), n = t.getElement();
10857
10857
  return n.style.borderRadius = `${e.styles.borderRadius}px`, n.style.setProperty("--phone-border-radius", `${e.styles.borderRadius}px`), t;
10858
10858
  }
10859
10859
  _buildCountrySelector(e, t, n, r) {
@@ -10873,16 +10873,16 @@ var X = (e) => {
10873
10873
  });
10874
10874
  }
10875
10875
  _buildInput(e, t, n) {
10876
- let r = t;
10876
+ let i = t;
10877
10877
  if (t && t.startsWith("+")) {
10878
10878
  let e = Q(t);
10879
- e && (this._currentCountryCode = e.countryCode, this._countrySelector.setCountry(e.countryCode), r = Z(t, e.countryCode));
10879
+ e && (this._currentCountryCode = e.countryCode, this._countrySelector.setCountry(e.countryCode), i = Z(t, e.countryCode));
10880
10880
  }
10881
- let a = i.createInput("tel", ["form-input"], {
10881
+ let a = r.createInput("tel", ["form-input"], {
10882
10882
  id: "phoneNumber",
10883
10883
  name: "phoneNumber",
10884
10884
  placeholder: this._customPlaceholder ?? $(this._currentCountryCode),
10885
- value: r,
10885
+ value: i,
10886
10886
  autocomplete: "tel",
10887
10887
  maxlength: "30"
10888
10888
  }), o = a.getElement();
@@ -10897,7 +10897,7 @@ var X = (e) => {
10897
10897
  t.key === "Tab" && !t.shiftKey && (t.preventDefault(), n());
10898
10898
  }), {
10899
10899
  inputElement: a,
10900
- initialValue: r
10900
+ initialValue: i
10901
10901
  };
10902
10902
  }
10903
10903
  _handleInput(e) {
@@ -10920,7 +10920,7 @@ var X = (e) => {
10920
10920
  a !== e && (t.value = a, s(t, i, a));
10921
10921
  }
10922
10922
  _syncCountryCodeInput(e) {
10923
- this._countryCodeInput.getElement().value = e, this._onChange(o({
10923
+ this._countryCodeInput.getElement().value = e, this._onChange(a({
10924
10924
  type: "input",
10925
10925
  target: {
10926
10926
  name: "phoneCountryCode",