@odus/checkout 1.9.2 → 1.10.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 (70) hide show
  1. package/dist/checkout.es.js +288 -199
  2. package/dist/components/checkout/form/CardSection.d.ts +6 -25
  3. package/dist/components/checkout/form/CardSection.d.ts.map +1 -1
  4. package/dist/components/checkout/form/CardUnavailableNotice.d.ts +16 -0
  5. package/dist/components/checkout/form/CardUnavailableNotice.d.ts.map +1 -0
  6. package/dist/components/checkout/form/Form.d.ts +17 -3
  7. package/dist/components/checkout/form/Form.d.ts.map +1 -1
  8. package/dist/components/checkout/form/FormComponentManager.d.ts +7 -7
  9. package/dist/components/checkout/form/FormComponentManager.d.ts.map +1 -1
  10. package/dist/components/checkout/form/FormStateCoordinator.d.ts +2 -0
  11. package/dist/components/checkout/form/FormStateCoordinator.d.ts.map +1 -1
  12. package/dist/components/checkout/form/FormUIManager.d.ts.map +1 -1
  13. package/dist/core/api/CheckoutAPI.service.d.ts +5 -1
  14. package/dist/core/api/CheckoutAPI.service.d.ts.map +1 -1
  15. package/dist/elements/CardElement.d.ts +42 -5
  16. package/dist/elements/CardElement.d.ts.map +1 -1
  17. package/dist/elements/OdusElements.d.ts.map +1 -1
  18. package/dist/elements/card/VgsCardAdapter.d.ts +6 -1
  19. package/dist/elements/card/VgsCardAdapter.d.ts.map +1 -1
  20. package/dist/elements/cardElement.constants.d.ts +0 -2
  21. package/dist/elements/cardElement.constants.d.ts.map +1 -1
  22. package/dist/elements/types/CardPayload.type.d.ts +0 -6
  23. package/dist/elements/types/CardPayload.type.d.ts.map +1 -1
  24. package/dist/elements/types/index.d.ts +1 -1
  25. package/dist/elements/types/index.d.ts.map +1 -1
  26. package/dist/elements.d.ts +1 -1
  27. package/dist/elements.d.ts.map +1 -1
  28. package/dist/elements.es.js +269 -335
  29. package/dist/factories/createForm.d.ts.map +1 -1
  30. package/dist/index.css +1 -1
  31. package/dist/locales/cs.json.d.ts +1 -0
  32. package/dist/locales/de.json.d.ts +1 -0
  33. package/dist/locales/en.json.d.ts +1 -0
  34. package/dist/locales/es.json.d.ts +1 -0
  35. package/dist/locales/fr.json.d.ts +1 -0
  36. package/dist/locales/it.json.d.ts +1 -0
  37. package/dist/locales/nl.json.d.ts +1 -0
  38. package/dist/locales/pl.json.d.ts +1 -0
  39. package/dist/locales/pt.json.d.ts +1 -0
  40. package/dist/locales/sk.json.d.ts +1 -0
  41. package/dist/locales/tr.json.d.ts +1 -0
  42. package/dist/phone.js +46 -45
  43. package/dist/services/checkout/CheckoutAPI.service.d.ts +1 -1
  44. package/dist/services/checkout/CheckoutAPI.service.d.ts.map +1 -1
  45. package/dist/services/checkout/CheckoutForm.service.d.ts +6 -0
  46. package/dist/services/checkout/CheckoutForm.service.d.ts.map +1 -1
  47. package/dist/shared.js +3656 -5960
  48. package/dist/shared2.js +13 -0
  49. package/dist/types/common/FormData.type.d.ts +0 -3
  50. package/dist/types/common/FormData.type.d.ts.map +1 -1
  51. package/dist/types/telemetry/TelemetryEvents.type.d.ts +15 -0
  52. package/dist/types/telemetry/TelemetryEvents.type.d.ts.map +1 -1
  53. package/dist/utils/focus/FocusManager.d.ts.map +1 -1
  54. package/dist/utils/validation/createValidationSchema.d.ts +0 -3
  55. package/dist/utils/validation/createValidationSchema.d.ts.map +1 -1
  56. package/package.json +1 -2
  57. package/dist/components/checkout/card-elements/CardCvvElement.d.ts +0 -28
  58. package/dist/components/checkout/card-elements/CardCvvElement.d.ts.map +0 -1
  59. package/dist/components/checkout/card-elements/CardNumberElement.d.ts +0 -32
  60. package/dist/components/checkout/card-elements/CardNumberElement.d.ts.map +0 -1
  61. package/dist/components/checkout/card-elements/index.d.ts +0 -3
  62. package/dist/components/checkout/card-elements/index.d.ts.map +0 -1
  63. package/dist/elements/card/NativeCardAdapter.d.ts +0 -35
  64. package/dist/elements/card/NativeCardAdapter.d.ts.map +0 -1
  65. package/dist/utils/card/detectCardBrand.d.ts +0 -3
  66. package/dist/utils/card/detectCardBrand.d.ts.map +0 -1
  67. package/dist/utils/card/luhnCheck.d.ts +0 -7
  68. package/dist/utils/card/luhnCheck.d.ts.map +0 -1
  69. package/dist/utils/formatters/formatters.d.ts +0 -6
  70. package/dist/utils/formatters/formatters.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"createForm.d.ts","sourceRoot":"","sources":["../../src/factories/createForm.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,QAAQ,EACR,UAAU,EACX,MAAM,+BAA+B,CAAC;AAKvC,UAAU,SAAU,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACjD,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,EAAE,UAAU,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;IAClD,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;GAGG;AACH,eAAO,MAAM,UAAU;;;yBAgKO,MAAM,QAAQ,SAAS,MAAM,KAAG,IAAI;uBAsGtC,MAAM,QAAQ,SAAS,MAAM,KAAG,IAAI;+BA8E5B,OAAO,CAAC,QAAQ,CAAC,KAAG,IAAI;;CAqB3D,CAAC"}
1
+ {"version":3,"file":"createForm.d.ts","sourceRoot":"","sources":["../../src/factories/createForm.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,QAAQ,EACR,UAAU,EACX,MAAM,+BAA+B,CAAC;AAGvC,UAAU,SAAU,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACjD,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,EAAE,UAAU,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;IAClD,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;GAGG;AACH,eAAO,MAAM,UAAU;;;yBA6IO,MAAM,QAAQ,SAAS,MAAM,KAAG,IAAI;uBAiFtC,MAAM,QAAQ,SAAS,MAAM,KAAG,IAAI;+BAqE5B,OAAO,CAAC,QAAQ,CAAC,KAAG,IAAI;;CAqB3D,CAAC"}
package/dist/index.css CHANGED
@@ -1,2 +1,2 @@
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}
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-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}.card-unavailable-message{color:var(--odus-color-error,#dc2727);background:color-mix(in srgb, var(--odus-color-error,#dc2727) 6%, transparent);box-shadow:0 0 0 1px var(--odus-color-error,#dc2727);box-sizing:border-box;padding:12px;line-height:1.4}.card-pending{width:100%;position:relative;overflow:hidden}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*/
@@ -8,6 +8,7 @@ declare const _default: {
8
8
  "cardInformation": "Informace o kartě",
9
9
  "cardholderNamePlaceholder": "Celé jméno na kartě",
10
10
  "cardExpiry": "MM / RR",
11
+ "cardUnavailable": "Platba kartou není momentálně dostupná. Zkuste to prosím později.",
11
12
  "loading": "Nezavírejte okno",
12
13
  "pay-with-card": "nebo zaplaťte kartou",
13
14
  "buttonTexts": {
@@ -8,6 +8,7 @@ declare const _default: {
8
8
  "cardInformation": "Kartendaten",
9
9
  "cardholderNamePlaceholder": "Vollständiger Name",
10
10
  "cardExpiry": "MM / JJ",
11
+ "cardUnavailable": "Kartenzahlung ist derzeit nicht verfügbar. Bitte versuchen Sie es später erneut.",
11
12
  "loading": "Das Fenster nicht schließen",
12
13
  "pay-with-card": "oder mit Karte bezahlen",
13
14
  "buttonTexts": {
@@ -8,6 +8,7 @@ declare const _default: {
8
8
  "cardInformation": "Card information",
9
9
  "cardholderNamePlaceholder": "Full name on card",
10
10
  "cardExpiry": "MM / YY",
11
+ "cardUnavailable": "Card payment is not available right now. Please try again later.",
11
12
  "loading": "Do not close the window",
12
13
  "pay-with-card": "or pay with card",
13
14
  "buttonTexts": {
@@ -8,6 +8,7 @@ declare const _default: {
8
8
  "cardInformation": "Información de la tarjeta",
9
9
  "cardholderNamePlaceholder": "Nombre completo en la tarjeta",
10
10
  "cardExpiry": "MM / AA",
11
+ "cardUnavailable": "El pago con tarjeta no está disponible en este momento. Vuelva a intentarlo más tarde.",
11
12
  "loading": "Por favor, no cierre esta ventana",
12
13
  "pay-with-card": "o paga con tarjeta",
13
14
  "buttonTexts": {
@@ -8,6 +8,7 @@ declare const _default: {
8
8
  "cardInformation": "Informations de la carte",
9
9
  "cardholderNamePlaceholder": "Nom complet figurant sur la carte",
10
10
  "cardExpiry": "MM / AA",
11
+ "cardUnavailable": "Le paiement par carte n'est pas disponible pour le moment. Veuillez réessayer plus tard.",
11
12
  "loading": "Veuillez ne pas fermer cette fenêtre",
12
13
  "pay-with-card": "ou payez avec une carte",
13
14
  "buttonTexts": {
@@ -8,6 +8,7 @@ declare const _default: {
8
8
  "cardInformation": "Informazioni sulla carta",
9
9
  "cardholderNamePlaceholder": "Nome completo sulla carta",
10
10
  "cardExpiry": "MM / AA",
11
+ "cardUnavailable": "Il pagamento con carta non è disponibile al momento. Riprova più tardi.",
11
12
  "loading": "Non chiudere la finestra",
12
13
  "pay-with-card": "o paga con carta",
13
14
  "buttonTexts": {
@@ -8,6 +8,7 @@ declare const _default: {
8
8
  "cardInformation": "Kaartinformatie",
9
9
  "cardholderNamePlaceholder": "Volledige naam op kaart",
10
10
  "cardExpiry": "MM / JJ",
11
+ "cardUnavailable": "Betalen met kaart is momenteel niet beschikbaar. Probeer het later opnieuw.",
11
12
  "loading": "Sluit het venster niet",
12
13
  "pay-with-card": "of betaal met kaart",
13
14
  "buttonTexts": {
@@ -8,6 +8,7 @@ declare const _default: {
8
8
  "cardInformation": "Informacje o karcie",
9
9
  "cardholderNamePlaceholder": "Imię i nazwisko na karcie",
10
10
  "cardExpiry": "MM / RR",
11
+ "cardUnavailable": "Płatność kartą jest obecnie niedostępna. Spróbuj ponownie później.",
11
12
  "loading": "Proszę nie zamykać tego okna",
12
13
  "pay-with-card": "albo zapłać kartą",
13
14
  "buttonTexts": {
@@ -8,6 +8,7 @@ declare const _default: {
8
8
  "cardInformation": "Informações do cartão",
9
9
  "cardholderNamePlaceholder": "Nome completo no cartão",
10
10
  "cardExpiry": "MM / AA",
11
+ "cardUnavailable": "O pagamento com cartão não está disponível neste momento. Tente novamente mais tarde.",
11
12
  "loading": "Por favor, não feche esta janela",
12
13
  "pay-with-card": "ou pagar com cartão",
13
14
  "buttonTexts": {
@@ -8,6 +8,7 @@ declare const _default: {
8
8
  "cardInformation": "Informácie o karte",
9
9
  "cardholderNamePlaceholder": "Meno na karte",
10
10
  "cardExpiry": "MM/RR",
11
+ "cardUnavailable": "Platba kartou momentálne nie je dostupná. Skúste to prosím neskôr.",
11
12
  "loading": "Nezatvárajte okno",
12
13
  "pay-with-card": "alebo zaplaťte kartou",
13
14
  "buttonTexts": {
@@ -8,6 +8,7 @@ declare const _default: {
8
8
  "cardInformation": "Kart bilgileri",
9
9
  "cardholderNamePlaceholder": "Kart üzerindeki tam ad",
10
10
  "cardExpiry": "AA / YY",
11
+ "cardUnavailable": "Kartla ödeme şu anda kullanılamıyor. Lütfen daha sonra tekrar deneyin.",
11
12
  "loading": "Lütfen pencereyi kapatmayın",
12
13
  "pay-with-card": "veya bir kartla ödeyin",
13
14
  "buttonTexts": {
package/dist/phone.js CHANGED
@@ -1,4 +1,5 @@
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";
1
+ import { S as e, h as t, m as n, p as r, v as i, y as a } from "./shared.js";
2
+ import { t as o } from "./shared2.js";
2
3
  //#region libs/checkout/src/utils/dom/restoreCursorAfterFormat.util.ts
3
4
  var s = (e, t, n) => {
4
5
  let r = 0, i = n.length;
@@ -10464,29 +10465,29 @@ function xi() {
10464
10465
  var X = (e) => {
10465
10466
  let t = e.toUpperCase().split("").map((e) => 127397 + e.charCodeAt(0));
10466
10467
  return String.fromCodePoint(...t);
10467
- }, Si = (t, n) => {
10468
- let r = Object.values(i);
10469
- return (t?.length ? r.filter((e) => t.includes(e.toUpperCase())) : r).map((t) => {
10468
+ }, Si = (e, t) => {
10469
+ let n = Object.values(a);
10470
+ return (e?.length ? n.filter((t) => e.includes(t.toUpperCase())) : n).map((e) => {
10470
10471
  try {
10471
- let r = bi(t);
10472
+ let n = bi(e);
10472
10473
  return {
10473
- code: t.toUpperCase(),
10474
- name: e(t, n),
10475
- dialCode: `+${r}`,
10476
- flag: X(t)
10474
+ code: e.toUpperCase(),
10475
+ name: i(e, t),
10476
+ dialCode: `+${n}`,
10477
+ flag: X(e)
10477
10478
  };
10478
10479
  } catch {
10479
10480
  return null;
10480
10481
  }
10481
- }).filter((e) => e !== null).sort((e, t) => e.name.localeCompare(t.name, n));
10482
- }, Ci = (t) => {
10482
+ }).filter((e) => e !== null).sort((e, n) => e.name.localeCompare(n.name, t));
10483
+ }, Ci = (e) => {
10483
10484
  try {
10484
- let n = t.toUpperCase(), r = bi(n);
10485
+ let t = e.toUpperCase(), n = bi(t);
10485
10486
  return {
10486
- code: n,
10487
- name: e(n),
10488
- dialCode: `+${r}`,
10489
- flag: X(n)
10487
+ code: t,
10488
+ name: i(t),
10489
+ dialCode: `+${n}`,
10490
+ flag: X(t)
10490
10491
  };
10491
10492
  } catch {
10492
10493
  return null;
@@ -10783,19 +10784,19 @@ var X = (e) => {
10783
10784
  } catch {
10784
10785
  return Infinity;
10785
10786
  }
10786
- }, 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 {
10787
+ }, 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 e {
10787
10788
  _flagDisplay;
10788
10789
  _selectElement;
10789
10790
  _locale;
10790
- constructor(e) {
10791
+ constructor(t) {
10791
10792
  super("div", ["country-select-wrapper"]);
10792
- let { countries: t, selectedCode: n, locale: r, styles: i, ariaLabel: a, onChange: s } = e;
10793
- 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);
10793
+ let { countries: n, selectedCode: r, locale: i, styles: a, ariaLabel: o, onChange: s } = t;
10794
+ this._locale = i, this._flagDisplay = new e("span", ["country-flag"]), this._flagDisplay.setText(X(r)), this._selectElement = new e("select", ["country-select"]), this._selectElement.setAttribute("aria-label", o);
10794
10795
  let c = this._selectElement.getElement();
10795
- 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) => {
10796
+ c.style.fontFamily = `"${a.fontFamily}", sans-serif`, c.style.color = a.textColor, c.style.fontSize = `${a.fontSize}px`, this._buildOptions(n, r), this._selectElement.addEventListener("change", (e) => {
10796
10797
  s(e.target.value);
10797
10798
  });
10798
- let l = new o("span", ["country-chevron"]);
10799
+ let l = new e("span", ["country-chevron"]);
10799
10800
  l.getElement().innerHTML = Oi, this.appendChild(this._flagDisplay), this.appendChild(l), this.appendChild(this._selectElement);
10800
10801
  }
10801
10802
  setCountry(e) {
@@ -10819,7 +10820,7 @@ var X = (e) => {
10819
10820
  }), n.appendChild(i);
10820
10821
  });
10821
10822
  }
10822
- }, Ai = class extends o {
10823
+ }, Ai = class extends e {
10823
10824
  _countrySelector;
10824
10825
  _inputElement;
10825
10826
  _countryCodeInput;
@@ -10831,35 +10832,35 @@ var X = (e) => {
10831
10832
  _onBlur;
10832
10833
  _translationFunc;
10833
10834
  _customPlaceholder;
10834
- constructor(e) {
10835
+ constructor(r) {
10835
10836
  super("div", ["input-wrapper", "phone-number-field-wrapper"]);
10836
- let { value: t, onChange: i, onBlur: a, onTab: s, checkoutProfile: c, translationFunc: l, defaultCountry: u, allowedCountries: d, locale: f, label: p, placeholder: m } = e;
10837
- 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", [], {
10837
+ let { value: i, onChange: a, onBlur: o, onTab: s, checkoutProfile: c, translationFunc: l, defaultCountry: u, allowedCountries: d, locale: f, label: p, placeholder: m } = r;
10838
+ this._onChange = a, 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 = n.createInput("hidden", [], {
10838
10839
  name: "phoneCountryCode",
10839
10840
  value: this._currentCountryCode
10840
10841
  }), this.appendChild(this._countryCodeInput);
10841
- let h = this._currentCountryCode, { inputElement: g, initialValue: _ } = this._buildInput(c, t, s);
10842
- this._inputElement = g, _ !== t && (this._inputElement.getElement().value = _), this._currentCountryCode !== h && this._syncCountryCodeInput(this._currentCountryCode);
10843
- let v = new o("div", ["phone-input-wrapper"]);
10844
- v.appendChild(this._inputElement), this._containerElement.appendChild(v), this.appendChild(this._containerElement), this._helperText = new n({
10845
- text: e.errorMsg || "",
10846
- visible: e.error
10847
- }), this.appendChild(this._helperText), e.error && this._containerElement.addClass("error");
10848
- }
10849
- _buildLabel(e, n, r) {
10850
- let i = new t({
10842
+ let h = this._currentCountryCode, { inputElement: g, initialValue: _ } = this._buildInput(c, i, s);
10843
+ this._inputElement = g, _ !== i && (this._inputElement.getElement().value = _), this._currentCountryCode !== h && this._syncCountryCodeInput(this._currentCountryCode);
10844
+ let v = new e("div", ["phone-input-wrapper"]);
10845
+ v.appendChild(this._inputElement), this._containerElement.appendChild(v), this.appendChild(this._containerElement), this._helperText = new t({
10846
+ text: r.errorMsg || "",
10847
+ visible: r.error
10848
+ }), this.appendChild(this._helperText), r.error && this._containerElement.addClass("error");
10849
+ }
10850
+ _buildLabel(e, t, n) {
10851
+ let i = new r({
10851
10852
  styles: {
10852
10853
  color: e.styles.textColor,
10853
10854
  fontSize: e.styles.fontSize
10854
10855
  },
10855
- label: r ?? n("phoneNumber"),
10856
+ label: n ?? t("phoneNumber"),
10856
10857
  id: "phoneNumber"
10857
10858
  });
10858
10859
  this.appendChild(i);
10859
10860
  }
10860
- _buildContainer(e) {
10861
- let t = new o("div", ["phone-number-field-container"]), n = t.getElement();
10862
- return n.style.borderRadius = `${e.styles.borderRadius}px`, n.style.setProperty("--phone-border-radius", `${e.styles.borderRadius}px`), t;
10861
+ _buildContainer(t) {
10862
+ let n = new e("div", ["phone-number-field-container"]), r = n.getElement();
10863
+ return r.style.borderRadius = `${t.styles.borderRadius}px`, r.style.setProperty("--phone-border-radius", `${t.styles.borderRadius}px`), n;
10863
10864
  }
10864
10865
  _buildCountrySelector(e, t, n, r) {
10865
10866
  return new ki({
@@ -10877,13 +10878,13 @@ var X = (e) => {
10877
10878
  }
10878
10879
  });
10879
10880
  }
10880
- _buildInput(e, t, n) {
10881
+ _buildInput(e, t, r) {
10881
10882
  let i = t;
10882
10883
  if (t && t.startsWith("+")) {
10883
10884
  let e = Q(t);
10884
10885
  e && (this._currentCountryCode = e.countryCode, this._countrySelector.setCountry(e.countryCode), i = Z(t, e.countryCode));
10885
10886
  }
10886
- let a = r.createInput("tel", ["form-input"], {
10887
+ let a = n.createInput("tel", ["form-input"], {
10887
10888
  id: "phoneNumber",
10888
10889
  name: "phoneNumber",
10889
10890
  placeholder: this._customPlaceholder ?? $(this._currentCountryCode),
@@ -10897,9 +10898,9 @@ var X = (e) => {
10897
10898
  this._containerElement.addClass("focused");
10898
10899
  }), a.addEventListener("blur", (e) => {
10899
10900
  this._containerElement.removeClass("focused"), this._validateInput(this._inputElement.getElement().value, !0), this._onBlur(e);
10900
- }), n && a.addEventListener("keydown", (e) => {
10901
+ }), r && a.addEventListener("keydown", (e) => {
10901
10902
  let t = e;
10902
- t.key === "Tab" && !t.shiftKey && (t.preventDefault(), n());
10903
+ t.key === "Tab" && !t.shiftKey && (t.preventDefault(), r());
10903
10904
  }), {
10904
10905
  inputElement: a,
10905
10906
  initialValue: i
@@ -10925,7 +10926,7 @@ var X = (e) => {
10925
10926
  a !== e && (t.value = a, s(t, i, a));
10926
10927
  }
10927
10928
  _syncCountryCodeInput(e) {
10928
- this._countryCodeInput.getElement().value = e, this._onChange(a({
10929
+ this._countryCodeInput.getElement().value = e, this._onChange(o({
10929
10930
  type: "input",
10930
10931
  target: {
10931
10932
  name: "phoneCountryCode",
@@ -1,2 +1,2 @@
1
- export { CheckoutAPIService } from '../../core/api/CheckoutAPI.service';
1
+ export { cardNotTokenizedMessage, CheckoutAPIService, } from '../../core/api/CheckoutAPI.service';
2
2
  //# sourceMappingURL=CheckoutAPI.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CheckoutAPI.service.d.ts","sourceRoot":"","sources":["../../../src/services/checkout/CheckoutAPI.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC"}
1
+ {"version":3,"file":"CheckoutAPI.service.d.ts","sourceRoot":"","sources":["../../../src/services/checkout/CheckoutAPI.service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,oCAAoC,CAAC"}
@@ -17,6 +17,12 @@ type FormOptions = {
17
17
  };
18
18
  initialValues?: InitialValues;
19
19
  vgsJwt?: string;
20
+ supportedPaymentMethods?: {
21
+ card?: boolean;
22
+ paypal?: boolean;
23
+ applePay?: boolean;
24
+ [key: string]: boolean | undefined;
25
+ };
20
26
  };
21
27
  type SubmitHandler = (data: {
22
28
  formData: FormData | null;
@@ -1 +1 @@
1
- {"version":3,"file":"CheckoutForm.service.d.ts","sourceRoot":"","sources":["../../../src/services/checkout/CheckoutForm.service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,aAAa,EACd,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAE7D,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB,EAAE,OAAO,CAAC;IAC9B,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,oBAAoB,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,aAAa,GAAG,CAAC,IAAI,EAAE;IAC1B,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;AAEvB,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,SAAS,CAA4B;IAC7C,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,QAAQ,CAAgB;IAChC,OAAO,CAAC,IAAI,CAAqB;gBAErB,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa;IAKzD,KAAK,CAAC,SAAS,EAAE,WAAW,GAAG,IAAI;IAOnC,MAAM,CAAC,KAAK,EAAE;QACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,GAAG,IAAI;IAkBR,OAAO,CAAC,UAAU;IA0BlB,OAAO,IAAI,IAAI;IAOf,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAOnC,UAAU,IAAI,IAAI;IAMZ,gBAAgB,CACpB,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,EACnB,uBAAuB,EAAE;QACvB,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;KACpC,EACD,eAAe,EAAE;QACf,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;KACrB,EACD,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC;CAkBjB"}
1
+ {"version":3,"file":"CheckoutForm.service.d.ts","sourceRoot":"","sources":["../../../src/services/checkout/CheckoutForm.service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,aAAa,EACd,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAE7D,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB,EAAE,OAAO,CAAC;IAC9B,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,oBAAoB,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uBAAuB,CAAC,EAAE;QACxB,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;KACpC,CAAC;CACH,CAAC;AAEF,KAAK,aAAa,GAAG,CAAC,IAAI,EAAE;IAC1B,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;AAEvB,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,SAAS,CAA4B;IAC7C,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,QAAQ,CAAgB;IAChC,OAAO,CAAC,IAAI,CAAqB;gBAErB,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa;IAKzD,KAAK,CAAC,SAAS,EAAE,WAAW,GAAG,IAAI;IAOnC,MAAM,CAAC,KAAK,EAAE;QACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,GAAG,IAAI;IAkBR,OAAO,CAAC,UAAU;IA2BlB,OAAO,IAAI,IAAI;IAOf,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAOnC,UAAU,IAAI,IAAI;IAMZ,gBAAgB,CACpB,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,EACnB,uBAAuB,EAAE;QACvB,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;KACpC,EACD,eAAe,EAAE;QACf,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;KACrB,EACD,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC;CAqBjB"}