@ranty/ranty-sdk 2.18.0-beta.12 → 2.18.0-beta.13

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.
@@ -916,8 +916,7 @@ function oe(t) {
916
916
  */
917
917
  var G0;
918
918
  ((G0 = window.HTMLSlotElement) === null || G0 === void 0 ? void 0 : G0.prototype.assignedElements) != null;
919
- var Le = /* @__PURE__ */ ((t) => (t.DEFAULT = "DEFAULT", t.CLICK_TO_PAY = "CLICK_TO_PAY", t.CARD_ON_FILE = "CARD_ON_FILE", t.ACCOUNT_TO_ACCOUNT = "ACCOUNT_TO_ACCOUNT", t.ACCOUNT_TO_ACCOUNT_FEEDBACK = "ACCOUNT_TO_ACCOUNT_FEEDBACK", t))(Le || {});
920
- const lE = "@ranty/ranty-sdk", dE = "2.18.0-beta.12", cE = "Ranty sdk", AE = "dist/index.js", uE = {
919
+ const lE = "@ranty/ranty-sdk", dE = "2.18.0-beta.13", cE = "Ranty sdk", AE = "dist/index.js", uE = {
921
920
  ".": "./dist/index.js"
922
921
  }, pE = "types/index.d.ts", gE = [
923
922
  "dist",
@@ -1027,9 +1026,6 @@ let pd = class t extends qe {
1027
1026
  constructor() {
1028
1027
  super(...arguments), this.image = "https://ranty-sdk-js.naranjax.com/images/nave-logo.png", this.icon = "https://ranty-sdk-js.naranjax.com/images/popup.svg", this.enableVersion = "", this.mode = "default";
1029
1028
  }
1030
- get textFooter() {
1031
- return this.mode === Le.CARD_ON_FILE.toLowerCase() ? "Procesado y almacenado por" : "Procesado por";
1032
- }
1033
1029
  firstUpdated(e) {
1034
1030
  return we(this, null, function* () {
1035
1031
  ur(t.prototype, this, "firstUpdated").call(this, e), this.enableVersion = BE.version;
@@ -1041,7 +1037,7 @@ let pd = class t extends qe {
1041
1037
  ${this.enableVersion ? P`<p class="version">Versión: ${this.enableVersion}</p>` : ""}
1042
1038
  <div class="footer-container">
1043
1039
  <a class="footer-link" href="https://navenegocios.ar/home" target="_blank">
1044
- <span class="footer-text">${this.textFooter}</span>
1040
+ <span class="footer-text">Procesado por</span>
1045
1041
  <img alt="nave" src=${this.image} class="footer-icon" />
1046
1042
  <img alt="nave" src=${this.icon} />
1047
1043
  </a>
@@ -9364,10 +9360,10 @@ function fU(t, e, r, s) {
9364
9360
  }
9365
9361
  var Ou = qF(fU);
9366
9362
  hI(hl(), "DD_LOGS", Ou);
9367
- const yU = "@ranty/ranty-sdk", vU = "2.18.0-beta.12", bU = 2, wU = !0, xU = {
9363
+ const yU = "@nx-ranty/ranty-sdk", vU = "2.18.0-beta.13", bU = 2, wU = !0, xU = {
9368
9364
  "": {
9369
- name: "@ranty/ranty-sdk",
9370
- version: "2.18.0-beta.12",
9365
+ name: "@nx-ranty/ranty-sdk",
9366
+ version: "2.18.0-beta.13",
9371
9367
  license: "ISC",
9372
9368
  dependencies: {
9373
9369
  "@datadog/browser-logs": "^5.7.0",
@@ -46613,7 +46609,9 @@ let TU = Hy;
46613
46609
  const eo = (t, e) => we(void 0, null, function* () {
46614
46610
  const { order_id: r, platform: s } = t.additional_info;
46615
46611
  return (yield TU.getInstallmentPlans(r, t.id, s, e)).response.data;
46616
- }), PU = (t, e, r) => (pe.info("getInstallmentFromCard", { tag: "GET_INSTALLMENT_PLANS_FROM_CARD" }), (t == null ? void 0 : t.cards.find((n) => n.type === r && n.name === e)).installment_plans), yd = class extends EventTarget {
46612
+ }), PU = (t, e, r) => (pe.info("getInstallmentFromCard", { tag: "GET_INSTALLMENT_PLANS_FROM_CARD" }), (t == null ? void 0 : t.cards.find((n) => n.type === r && n.name === e)).installment_plans);
46613
+ var Le = /* @__PURE__ */ ((t) => (t.DEFAULT = "DEFAULT", t.CLICK_TO_PAY = "CLICK_TO_PAY", t.CARD_ON_FILE = "CARD_ON_FILE", t.ACCOUNT_TO_ACCOUNT = "ACCOUNT_TO_ACCOUNT", t.ACCOUNT_TO_ACCOUNT_FEEDBACK = "ACCOUNT_TO_ACCOUNT_FEEDBACK", t))(Le || {});
46614
+ const yd = class extends EventTarget {
46617
46615
  static convertTime(e, r) {
46618
46616
  return r === "seconds" ? e * 1e3 : e * 60 * 1e3;
46619
46617
  }
@@ -64102,6 +64100,7 @@ let bn = class extends qe {
64102
64100
  name="creditNumber"
64103
64101
  label="Número de tarjeta"
64104
64102
  .maxlength="${19}"
64103
+ autocomplete="cc-number"
64105
64104
  .validationRules="${[
64106
64105
  Ms("Tenés que completar el número de la tarjeta."),
64107
64106
  Vn(16, "Revisá el número de la tarjeta, está incompleto.", !0),
@@ -64140,6 +64139,7 @@ let bn = class extends qe {
64140
64139
  id="expired"
64141
64140
  .maxlength="${5}"
64142
64141
  label="Vencimiento"
64142
+ autocomplete="cc-csc"
64143
64143
  .validationRules="${[
64144
64144
  Ms("Tenés que completar el vencimiento."),
64145
64145
  LO(),
@@ -64155,6 +64155,7 @@ let bn = class extends qe {
64155
64155
  id="cvv"
64156
64156
  .maxlength="${3}"
64157
64157
  label="Código de seguridad"
64158
+ autocomplete="cc-csc"
64158
64159
  .validationRules="${[
64159
64160
  Ms("Tenés que completar el código."),
64160
64161
  Vn(3, "Revisá el código."),
@@ -65883,6 +65884,28 @@ let wn = class extends qe {
65883
65884
  constructor() {
65884
65885
  super(...arguments), this.cardDefault = "https://ranty-sdk-js.naranjax.com/images/card.svg", this.iconRight = this.cardDefault, this.isLoading = !1, this.isValidForm = !1, this.isRecieveData = !1, this.bin = null, this.cardFormValue = {};
65885
65886
  }
65887
+ connectedCallback() {
65888
+ super.connectedCallback(), this.insertHiddenInputsForAutofill();
65889
+ }
65890
+ insertHiddenInputsForAutofill() {
65891
+ var d, l, c;
65892
+ if (!navigator.userAgent.match(/iPhone|iPad/i))
65893
+ return;
65894
+ const t = document.createElement("form");
65895
+ t.style.position = "absolute", t.style.top = "-100px", t.style.left = "0", t.style.width = "1px", t.style.height = "1px", t.style.overflow = "hidden", t.innerHTML = `
65896
+ <input type="text" id="hiddenCreditNumber" autocomplete="cc-number">
65897
+ <input type="text" id="hiddenDateExpired" autocomplete="cc-exp">
65898
+ <input type="password" id="hiddenCvv" autocomplete="cc-csc">
65899
+ `, document.body.appendChild(t);
65900
+ const e = document.getElementById("hiddenCreditNumber"), r = document.getElementById("hiddenDateExpired"), s = document.getElementById("hiddenCvv"), n = (d = this.shadowRoot) == null ? void 0 : d.querySelector('input[name="creditNumber"]'), i = (l = this.shadowRoot) == null ? void 0 : l.querySelector('input[name="dateExpired"]'), o = (c = this.shadowRoot) == null ? void 0 : c.querySelector('input[name="cvv"]');
65901
+ n == null || n.addEventListener("focus", () => e.focus()), i == null || i.addEventListener("focus", () => r.focus()), o == null || o.addEventListener("focus", () => s.focus());
65902
+ const a = () => {
65903
+ e.value && n && (n.value = e.value, n.dispatchEvent(new Event("input", { bubbles: !0 }))), r.value && i && (i.value = r.value, i.dispatchEvent(new Event("input", { bubbles: !0 }))), s.value && o && (o.value = s.value, o.dispatchEvent(new Event("input", { bubbles: !0 })));
65904
+ };
65905
+ document.addEventListener("visibilitychange", () => {
65906
+ document.visibilityState === "visible" && a();
65907
+ }), e.addEventListener("input", a), e.addEventListener("change", a), r.addEventListener("input", a), r.addEventListener("change", a), s.addEventListener("input", a), s.addEventListener("change", a);
65908
+ }
65886
65909
  updated(t) {
65887
65910
  super.updated(t), this._statePaymentManualInput && this._statePaymentManualInput.statePaymentRequest;
65888
65911
  }
@@ -65972,6 +65995,7 @@ let wn = class extends qe {
65972
65995
  label="Número de tarjeta"
65973
65996
  inputmode="numeric"
65974
65997
  .maxlength="${19}"
65998
+ autocomplete="cc-number"
65975
65999
  .validationRules="${[
65976
66000
  Vc("Tenés que completar el número de la tarjeta."),
65977
66001
  Kc(16, "Revisá el número de la tarjeta, está incompleto.", !0),
@@ -65997,6 +66021,7 @@ let wn = class extends qe {
65997
66021
  inputmode="numeric"
65998
66022
  .maxlength="${5}"
65999
66023
  label="Vencimiento"
66024
+ autocomplete="cc-exp"
66000
66025
  .validationRules="${[
66001
66026
  Vc("Tenés que completar el vencimiento."),
66002
66027
  w4(),
@@ -66013,6 +66038,7 @@ let wn = class extends qe {
66013
66038
  inputmode="numeric"
66014
66039
  .maxlength="${3}"
66015
66040
  label="Código de seguridad"
66041
+ autocomplete="cc-csc"
66016
66042
  .validationRules="${[
66017
66043
  Vc("Tenés que completar el código."),
66018
66044
  Kc(3, "Revisá el código."),
@@ -80141,7 +80167,7 @@ function(t) {
80141
80167
  */
80142
80168
  function(t) {
80143
80169
  function e() {
80144
- return (gt.canvg ? Promise.resolve(gt.canvg) : import("./index.es-c2774112.js")).catch(function(r) {
80170
+ return (gt.canvg ? Promise.resolve(gt.canvg) : import("./index.es-54ceaa11.js")).catch(function(r) {
80145
80171
  return Promise.reject(new Error("Could not load canvg: " + r));
80146
80172
  }).then(function(r) {
80147
80173
  return r.default ? r.default : r;
@@ -81835,7 +81861,7 @@ let xn = class extends qe {
81835
81861
  <div class="cards">${this.getBrandCardAccepted()}</div>
81836
81862
  </div>
81837
81863
  </div>
81838
- <form @input="${this.validateForm}">
81864
+ <form @input="${this.validateForm}" autocomplete="on">
81839
81865
  <div class="credit-info">
81840
81866
  <scof-input
81841
81867
  class="credit-number"
@@ -81845,6 +81871,7 @@ let xn = class extends qe {
81845
81871
  label="Número de tarjeta"
81846
81872
  inputmode="numeric"
81847
81873
  .maxlength="${19}"
81874
+ autocomplete="cc-number"
81848
81875
  .validationRules="${[
81849
81876
  Vc("Tenés que completar el número de la tarjeta."),
81850
81877
  Kc(16, "Revisá el número de la tarjeta, está incompleto."),
@@ -81870,6 +81897,7 @@ let xn = class extends qe {
81870
81897
  inputmode="numeric"
81871
81898
  .maxlength="${5}"
81872
81899
  label="Vencimiento"
81900
+ autocomplete="cc-csc"
81873
81901
  .validationRules="${[
81874
81902
  Vc("Tenés que completar el vencimiento."),
81875
81903
  w4(),
@@ -81886,6 +81914,7 @@ let xn = class extends qe {
81886
81914
  inputmode="numeric"
81887
81915
  .maxlength="${3}"
81888
81916
  label="Código de seguridad"
81917
+ autocomplete="cc-csc"
81889
81918
  .validationRules="${[
81890
81919
  Vc("Tenés que completar el código."),
81891
81920
  Kc(3, "Revisá el código."),
@@ -1,4 +1,4 @@
1
- import { c as Ke, _ as za, g as _o } from "./index-8321a5a2.js";
1
+ import { c as Ke, _ as za, g as _o } from "./index-fc8c1fe2.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 { ad as n, ac as e, a5 as t, ag as o, ae as r, af as C, a6 as m, a3 as p, ab as A, aa as d, a4 as i, a7 as l, a8 as u, a9 as y, A as c, w as F, f as S, e as P, n as M, p as O, Q as k, o as I, q as H, m as f, r as x, C as L, u as g, T as v, j as D, a as b, d as E, D as w, l as Q, E as h, v as B, b as N, F as R, k as j, $ as q, a1 as z, N as G, P as J, M as K, x as T, V as U, W as V, U as W, a2 as X, X as Y, Y as Z, Z as $, i as _, h as aa, a0 as sa, S as na, y as ea, t as ta, z as oa, B as ra, G as Ca, s as ma, K as pa, H as Aa, I as da, J as ia, O as la, R as ua, L as ya } from "./index-8321a5a2.js";
1
+ import { ad as n, ac as e, a5 as t, ag as o, ae as r, af as C, a6 as m, a3 as p, ab as A, aa as d, a4 as i, a7 as l, a8 as u, a9 as y, A as c, w as F, f as S, e as P, n as M, p as O, Q as k, o as I, q as H, m as f, r as x, C as L, u as g, T as v, j as D, a as b, d as E, D as w, l as Q, E as h, v as B, b as N, F as R, k as j, $ as q, a1 as z, N as G, P as J, M as K, x as T, V as U, W as V, U as W, a2 as X, X as Y, Y as Z, Z as $, i as _, h as aa, a0 as sa, S as na, y as ea, t as ta, z as oa, B as ra, G as Ca, s as ma, K as pa, H as Aa, I as da, J as ia, O as la, R as ua, L as ya } from "./index-fc8c1fe2.js";
2
2
  export {
3
3
  n as A2AAccountDetails,
4
4
  e as A2AAccountList,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ranty/ranty-sdk",
3
- "version": "2.18.0-beta.12",
3
+ "version": "2.18.0-beta.13",
4
4
  "description": "Ranty sdk",
5
5
  "main": "dist/index.js",
6
6
  "exports": {