@spot-flow/checkout-inline-js 0.2.9 → 0.3.0-dev.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.
@@ -2281,7 +2281,7 @@ class Nl {
2281
2281
  }
2282
2282
  handleOtpInput(e, t) {
2283
2283
  const i = e.target, s = e.data;
2284
- s && this.cardOtp.length < 6 ? this.cardOtp += s : e.inputType === "deleteContentBackward" && (this.cardOtp = this.cardOtp.slice(0, -1)), i.value = "*".repeat(this.cardOtp.length), this.cardOtp.length >= 6 && t && t.removeAttribute("disabled");
2284
+ s && this.cardOtp.length < 8 ? this.cardOtp += s : e.inputType === "deleteContentBackward" && (this.cardOtp = this.cardOtp.slice(0, -1), this.cardOtp.length < 6 && t && t.setAttribute("disabled", "true")), i.value = "*".repeat(this.cardOtp.length), this.cardOtp.length >= 6 && t && t.removeAttribute("disabled");
2285
2285
  }
2286
2286
  renderComponent() {
2287
2287
  this.container.innerHTML = this.render();
@@ -735,7 +735,7 @@
735
735
  <path
736
736
  d="M62 32C62 38.6156 59.8132 45.0457 55.78 50.2897C51.7468 55.5336 46.0932 59.2974 39.6992 60.9952C33.3052 62.693 26.5293 62.2297 20.4258 59.6774C14.3224 57.1251 9.2338 52.6268 5.95186 46.8827C2.66993 41.1385 1.37873 34.4707 2.2792 27.9166C3.17967 21.3626 6.22129 15.29 10.9308 10.6438C15.6402 5.9976 21.7534 3.0384 28.3191 2.22668C34.8847 1.41496 41.5345 2.79623 47.2337 6.15557"
737
737
  stroke="black" stroke-width="4" stroke-linejoin="round" />
738
- </svg>`),i&&i.classList.add("hidden"),t&&t.setAttribute("disabled","true"),e&&(e.value="",this.cardOtp="",e.setAttribute("disabled","true")),this.onClose(!1)}))}handleOtpInput(e,t){const i=e.target,s=e.data;s&&this.cardOtp.length<6?this.cardOtp+=s:e.inputType==="deleteContentBackward"&&(this.cardOtp=this.cardOtp.slice(0,-1)),i.value="*".repeat(this.cardOtp.length),this.cardOtp.length>=6&&t&&t.removeAttribute("disabled")}renderComponent(){this.container.innerHTML=this.render();const e=this.container.querySelector("#otp-message");e&&(e.innerHTML=this.otpMessage),this.attachListener()}render(){return lr}}const dr=`<div id="checkoutcardpin" data-section="card-pin-validation">
738
+ </svg>`),i&&i.classList.add("hidden"),t&&t.setAttribute("disabled","true"),e&&(e.value="",this.cardOtp="",e.setAttribute("disabled","true")),this.onClose(!1)}))}handleOtpInput(e,t){const i=e.target,s=e.data;s&&this.cardOtp.length<8?this.cardOtp+=s:e.inputType==="deleteContentBackward"&&(this.cardOtp=this.cardOtp.slice(0,-1),this.cardOtp.length<6&&t&&t.setAttribute("disabled","true")),i.value="*".repeat(this.cardOtp.length),this.cardOtp.length>=6&&t&&t.removeAttribute("disabled")}renderComponent(){this.container.innerHTML=this.render();const e=this.container.querySelector("#otp-message");e&&(e.innerHTML=this.otpMessage),this.attachListener()}render(){return lr}}const dr=`<div id="checkoutcardpin" data-section="card-pin-validation">
739
739
  <div>
740
740
  <div id="pin-content" class="grid gap-4">
741
741
  <h5 id="enter-pin-text">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spot-flow/checkout-inline-js",
3
- "version": "0.2.9",
3
+ "version": "0.3.0-dev.1",
4
4
  "description": "",
5
5
  "main": "dist/checkout-inline.js",
6
6
  "module": "dist/checkout-inline.es.js",