@ranty/ranty-sdk 2.13.1-beta.1 → 2.13.1-beta.2

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.
@@ -960,7 +960,7 @@ A1([
960
960
  fA = A1([
961
961
  et("footer-component")
962
962
  ], fA);
963
- const J8 = `@import"normalize.css";form{margin:inherit}.clickeable{cursor:pointer}.input{padding-bottom:40px;position:relative}.input label{font-family:Inter,Arial,"sans-serif";font-size:14px;font-weight:400;color:#6a6a6a;display:block;min-width:140px}.input.checkbox{display:flex;flex-direction:row;justify-content:flex-start;padding-bottom:20px}.input.checkbox label{text-align:left;font-size:12px}.input.checkbox label p{margin:0}.input.checkbox input[type=checkbox]{order:-1;width:30px;margin-right:10px;accent-color:black}.input.checkbox-form-credit{display:flex;flex-direction:row;justify-content:flex-start;padding-bottom:20px}.input.checkbox-form-credit label{text-align:left;font-size:12px}.input.checkbox-form-credit label p{margin:0}.input.checkbox-form-credit input[type=checkbox]{order:-1;width:30px;margin-right:10px;accent-color:black}.input input{border:none;border-bottom:1px solid #6a6a6a;color:#2b2b2b;font-family:Inter,Arial,"sans-serif";font-weight:400;font-size:16px;outline:none;width:100%;height:26px}.errorBin{color:red;margin-top:5px;font-family:Inter,Arial,"sans-serif";font-size:14px;font-weight:200;bottom:42px}.checkbox-save-card-scof{display:flex;flex-direction:row;justify-content:flex-start;padding-bottom:20px}.checkbox-save-card-scof label{text-align:left;font-size:12px;margin-top:2px}.checkbox-save-card-scof label p{margin:0}.checkbox-save-card-scof input[type=checkbox]{order:-1;width:17px;height:17px;margin-right:10px;accent-color:#652bdf}
963
+ const J8 = `@import"normalize.css";form{margin:inherit}.clickeable{cursor:pointer}.input{padding-bottom:40px;position:relative}.input label{font-family:Inter,Arial,"sans-serif";font-size:14px;font-weight:400;color:#6a6a6a;display:block;min-width:140px}.input.checkbox{display:flex;flex-direction:row;justify-content:flex-start;padding-bottom:20px}.input.checkbox label{text-align:left;font-size:12px}.input.checkbox label p{margin:0}.input.checkbox input[type=checkbox]{order:-1;width:30px;margin-right:10px;accent-color:black}.input.checkbox-form-credit{display:flex;flex-direction:row;justify-content:flex-start;padding-bottom:20px}.input.checkbox-form-credit label{text-align:left;font-size:12px}.input.checkbox-form-credit label p{margin:0}.input.checkbox-form-credit input[type=checkbox]{order:-1;width:30px;margin-right:10px;accent-color:black}.input input{border:none;border-bottom:1px solid #6a6a6a;color:#2b2b2b;font-family:Inter,Arial,"sans-serif";font-weight:400;font-size:16px;outline:none;width:100%;height:26px}.errorBin{color:red;margin-top:5px;font-family:Inter,Arial,"sans-serif";font-size:14px;font-weight:200;bottom:42px}.checkbox-save-card-scof{display:flex;flex-direction:row;justify-content:flex-start;padding-bottom:20px}.checkbox-save-card-scof label{text-align:left;font-size:12px;margin:auto 0}.checkbox-save-card-scof label p{margin:0}.checkbox-save-card-scof input[type=checkbox]{order:-1;width:17px;height:17px;margin-right:10px;accent-color:#652bdf}
964
964
  `;
965
965
  var X8 = Object.defineProperty, Z8 = Object.getOwnPropertyDescriptor, ci = (r, e, t, s) => {
966
966
  for (var n = s > 1 ? void 0 : s ? Z8(e, t) : e, i = r.length - 1, o; i >= 0; i--)
@@ -9203,10 +9203,10 @@ function RI(r, e, t, s) {
9203
9203
  }
9204
9204
  var Zu = AI(RI);
9205
9205
  P7(Qa(), "DD_LOGS", Zu);
9206
- const NI = "@nx-ranty/ranty-sdk", OI = "2.13.1-beta.1", LI = 2, MI = !0, qI = {
9206
+ const NI = "@nx-ranty/ranty-sdk", OI = "2.13.1-beta.2", LI = 2, MI = !0, qI = {
9207
9207
  "": {
9208
9208
  name: "@nx-ranty/ranty-sdk",
9209
- version: "2.13.1-beta.1",
9209
+ version: "2.13.1-beta.2",
9210
9210
  license: "ISC",
9211
9211
  dependencies: {
9212
9212
  "@datadog/browser-logs": "^5.7.0",
@@ -63150,7 +63150,7 @@ const Ey = {
63150
63150
  * Copyright 2018 Google LLC
63151
63151
  * SPDX-License-Identifier: BSD-3-Clause
63152
63152
  */
63153
- const Pf = (r) => r != null ? r : Dr, n9 = `@import"normalize.css";form{margin:inherit}.clickeable{cursor:pointer}.input{padding-bottom:24px;position:relative}.input label{font-family:Inter,Arial,"sans-serif";font-size:14px;font-weight:400;color:#6a6a6a;display:block;min-width:140px}.input.checkbox{display:flex;flex-direction:row;justify-content:flex-start;padding-bottom:20px}.input.checkbox label{text-align:left;font-size:12px}.input.checkbox label p{margin:0}.input.checkbox input[type=checkbox]{order:-1;width:30px;margin-right:10px;accent-color:black}.input.checkbox-form-credit{display:flex;flex-direction:row;justify-content:flex-start;padding-bottom:20px}.input.checkbox-form-credit label{text-align:left;font-size:12px}.input.checkbox-form-credit label p{margin:0}.input.checkbox-form-credit input[type=checkbox]{order:-1;width:50px;margin-right:10px;accent-color:black}.input input{border:none;border-bottom:1px solid #6a6a6a;color:#2b2b2b;font-family:Inter,Arial,"sans-serif";font-weight:400;font-size:16px;outline:none;width:100%;height:26px}.errorBin{color:red;margin-top:5px;font-family:Inter,Arial,"sans-serif";font-size:14px;font-weight:400;bottom:42px}.errorBin>p{margin-top:3px;margin-block-end:0px}.placeholder{display:flex;justify-content:start}.placeholder>p{color:#888;bottom:45px;margin:3px 0 0}span p{font-family:Inter,Arial,"sans-serif";font-size:12px}.checkbox-save-card-scof{display:flex;flex-direction:row;justify-content:flex-start;padding-bottom:20px}.checkbox-save-card-scof label{text-align:left;font-size:12px;margin-top:2px}.checkbox-save-card-scof label p{margin:0}.checkbox-save-card-scof input[type=checkbox]{order:-1;width:17px;height:17px;margin-right:10px;accent-color:#652bdf}
63153
+ const Pf = (r) => r != null ? r : Dr, n9 = `@import"normalize.css";form{margin:inherit}.clickeable{cursor:pointer}.input{padding-bottom:24px;position:relative}.input label{font-family:Inter,Arial,"sans-serif";font-size:14px;font-weight:400;color:#6a6a6a;display:block;min-width:140px}.input.checkbox{display:flex;flex-direction:row;justify-content:flex-start;padding-bottom:20px}.input.checkbox label{text-align:left;font-size:12px}.input.checkbox label p{margin:0}.input.checkbox input[type=checkbox]{order:-1;width:30px;margin-right:10px;accent-color:black}.input.checkbox-form-credit{display:flex;flex-direction:row;justify-content:flex-start;padding-bottom:20px}.input.checkbox-form-credit label{text-align:left;font-size:12px}.input.checkbox-form-credit label p{margin:0}.input.checkbox-form-credit input[type=checkbox]{order:-1;width:50px;margin-right:10px;accent-color:black}.input input{border:none;border-bottom:1px solid #6a6a6a;color:#2b2b2b;font-family:Inter,Arial,"sans-serif";font-weight:400;font-size:16px;outline:none;width:100%;height:26px}.errorBin{color:red;margin-top:5px;font-family:Inter,Arial,"sans-serif";font-size:14px;font-weight:400;bottom:42px}.errorBin>p{margin-top:3px;margin-block-end:0px}.placeholder{display:flex;justify-content:start}.placeholder>p{color:#888;bottom:45px;margin:3px 0 0}span p{font-family:Inter,Arial,"sans-serif";font-size:12px}.checkbox-save-card-scof{display:flex;flex-direction:row;justify-content:flex-start;padding-bottom:20px}.checkbox-save-card-scof label{text-align:left;font-size:12px;margin:auto 0}.checkbox-save-card-scof label p{margin:0}.checkbox-save-card-scof input[type=checkbox]{order:-1;width:17px;height:17px;margin-right:10px;accent-color:#652bdf}
63154
63154
  `;
63155
63155
  var i9 = Object.defineProperty, o9 = Object.getOwnPropertyDescriptor, ar = (r, e, t, s) => {
63156
63156
  for (var n = s > 1 ? void 0 : s ? o9(e, t) : e, i = r.length - 1, o; i >= 0; i--)
@@ -63172,7 +63172,7 @@ let $t = class extends Je {
63172
63172
  }
63173
63173
  handleInput(r) {
63174
63174
  const e = r.target;
63175
- this.value = e.type === "checkbox" ? e.checked ? "true" : "false" : e.value, this.label === "DNI" && (this.value = e.value.replace(/\D/g, "").replace(/^(\d{1,2})(\d{3})(\d{3})$/, "$1.$2.$3")), this.name === "creditNumber" && (this.value = this.value.replace(/\D/g, "").replace(/(\d{4})/g, "$1 ").trim()), this.name === "dateExpired" && (this.value = this.value.replace(/\D/g, "").replace(/(\d{2})(\d{2})?/, "$1/$2").trim().substring(0, 5)), this.checkValidity(), this.dispatchEvent(
63175
+ this.value = e.type === "checkbox" ? e.checked ? "true" : "false" : e.value, this.label === "DNI" && (this.value = e.value.replace(/\D/g, "").replace(/^(\d{1,2})(\d{3})(\d{3})$/, "$1.$2.$3")), this.name === "creditNumber" && (this.value = this.value.replace(/\D/g, "").slice(0, 16).replace(/(\d{4})(?=\d)/g, "$1 ").trim()), this.name === "dateExpired" && (this.value = this.value.replace(/\D/g, "").replace(/(\d{2})(\d{2})?/, "$1/$2").trim().substring(0, 5)), this.checkValidity(), this.dispatchEvent(
63176
63176
  new CustomEvent("input-event", {
63177
63177
  bubbles: !0,
63178
63178
  composed: !0,
@@ -63213,6 +63213,10 @@ let $t = class extends Je {
63213
63213
  }
63214
63214
  }
63215
63215
  }
63216
+ handlePaste(r) {
63217
+ const e = (r.clipboardData || window.clipboardData).getData("text");
63218
+ /^\d+$/.test(e) || r.preventDefault();
63219
+ }
63216
63220
  render() {
63217
63221
  const r = this.isEnabledLenght ? this.minlength : void 0, e = this.isEnabledLenght ? this.maxlength : void 0;
63218
63222
  return this.helpText = this.name === "doc_number" ? "Del titular de la tarjeta." : this.helpText, this.helpText = this.name === "name" ? "Como aparece en la tarjeta." : this.helpText, W`
@@ -63239,6 +63243,7 @@ let $t = class extends Je {
63239
63243
  @blur="${this.handleBlur}"
63240
63244
  @keydown="${this.handleKeyDown}"
63241
63245
  inputmode="${Pf(this.inputmode)}"
63246
+ @paste="${this.handlePaste}"
63242
63247
  />
63243
63248
  ${this.hasErrors ? W`<span class="errorSpan errorBin" id="error"><p>${this.errorMessage}</p></span>` : W`<span class="placeholder"><p>${this.helpText}</p></span>`}
63244
63249
  </div>
@@ -63584,6 +63589,7 @@ let Dn = class extends Je {
63584
63589
  name="creditNumber"
63585
63590
  label="Número de tarjeta"
63586
63591
  .maxlength="${19}"
63592
+ @keypress="${(r) => r.key.match(/[0-9]/) ? !0 : r.preventDefault()}"
63587
63593
  .validationRules="${[
63588
63594
  si("Tenés que completar el número de la tarjeta."),
63589
63595
  ho(16, "Revisá el número de la tarjeta, está incompleto."),
@@ -65405,6 +65411,7 @@ let cn = class extends Je {
65405
65411
  label="Número de tarjeta"
65406
65412
  inputmode="numeric"
65407
65413
  .maxlength="${19}"
65414
+ @keypress="${(r) => r.key.match(/[0-9]/) ? !0 : r.preventDefault()}"
65408
65415
  .validationRules="${[
65409
65416
  Nf("Tenés que completar el número de la tarjeta."),
65410
65417
  Of(16, "Revisá el número de la tarjeta, está incompleto."),
@@ -79507,7 +79514,7 @@ function(r) {
79507
79514
  */
79508
79515
  function(r) {
79509
79516
  function e() {
79510
- return (pt.canvg ? Promise.resolve(pt.canvg) : import("./index.es-b541610d.js")).catch(function(t) {
79517
+ return (pt.canvg ? Promise.resolve(pt.canvg) : import("./index.es-6addfd0d.js")).catch(function(t) {
79511
79518
  return Promise.reject(new Error("Could not load canvg: " + t));
79512
79519
  }).then(function(t) {
79513
79520
  return t.default ? t.default : t;
@@ -1,4 +1,4 @@
1
- import { c as Ke, _ as za, g as _o } from "./index-6358d25c.js";
1
+ import { c as Ke, _ as za, g as _o } from "./index-3383744e.js";
2
2
  var vt = function(a) {
3
3
  return a && a.Math === Math && a;
4
4
  }, V = (
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as s, w as t, f as e, e as o, n as r, p as C, Q as m, o as p, q as l, m as i, r as d, C as u, u as y, T as P, j as F, a as S, d as c, D as M, l as O, E as I, v as k, b as x, F as f, k as H, $ as L, a1 as v, N as A, P as D, M as g, x as E, V as w, W as Q, U as h, a2 as B, X as N, Y as R, Z as b, i as j, h as q, a0 as z, S as G, y as J, t as K, z as T, B as U, G as V, s as W, K as X, H as Y, I as Z, J as $, O as _, R as aa, L as na } from "./index-6358d25c.js";
1
+ import { A as s, w as t, f as e, e as o, n as r, p as C, Q as m, o as p, q as l, m as i, r as d, C as u, u as y, T as P, j as F, a as S, d as c, D as M, l as O, E as I, v as k, b as x, F as f, k as H, $ as L, a1 as v, N as A, P as D, M as g, x as E, V as w, W as Q, U as h, a2 as B, X as N, Y as R, Z as b, i as j, h as q, a0 as z, S as G, y as J, t as K, z as T, B as U, G as V, s as W, K as X, H as Y, I as Z, J as $, O as _, R as aa, L as na } from "./index-3383744e.js";
2
2
  export {
3
3
  s as AppHome,
4
4
  t as AppLoading,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ranty/ranty-sdk",
3
- "version": "2.13.1-beta.1",
3
+ "version": "2.13.1-beta.2",
4
4
  "description": "Ranty sdk",
5
5
  "main": "dist/index.js",
6
6
  "exports": {