@ranty/ranty-sdk 2.18.0-beta.11 → 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,7 +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
|
-
const lE = "@
|
|
919
|
+
const lE = "@ranty/ranty-sdk", dE = "2.18.0-beta.13", cE = "Ranty sdk", AE = "dist/index.js", uE = {
|
|
920
920
|
".": "./dist/index.js"
|
|
921
921
|
}, pE = "types/index.d.ts", gE = [
|
|
922
922
|
"dist",
|
|
@@ -9360,10 +9360,10 @@ function fU(t, e, r, s) {
|
|
|
9360
9360
|
}
|
|
9361
9361
|
var Ou = qF(fU);
|
|
9362
9362
|
hI(hl(), "DD_LOGS", Ou);
|
|
9363
|
-
const yU = "@nx-ranty/ranty-sdk", vU = "2.18.0-beta.
|
|
9363
|
+
const yU = "@nx-ranty/ranty-sdk", vU = "2.18.0-beta.13", bU = 2, wU = !0, xU = {
|
|
9364
9364
|
"": {
|
|
9365
9365
|
name: "@nx-ranty/ranty-sdk",
|
|
9366
|
-
version: "2.18.0-beta.
|
|
9366
|
+
version: "2.18.0-beta.13",
|
|
9367
9367
|
license: "ISC",
|
|
9368
9368
|
dependencies: {
|
|
9369
9369
|
"@datadog/browser-logs": "^5.7.0",
|
|
@@ -61479,7 +61479,7 @@ const PO = `@import"normalize.css";form{margin:inherit}.clickeable{cursor:pointe
|
|
|
61479
61479
|
o.appendChild(a);
|
|
61480
61480
|
}
|
|
61481
61481
|
}
|
|
61482
|
-
}, P3 = "validations-scof", Bb = (t) => ({ validate: (e) => /^[a-
|
|
61482
|
+
}, P3 = "validations-scof", Bb = (t) => ({ validate: (e) => /^[a-záéíóúüñA-ZÁÉÍÓÚÜÑ\s]*$/.test(e), errorMessage: t }), Cb = (t) => ({ validate: (e) => !/^\s+$/.test(e), errorMessage: t }), Ms = (t) => ({
|
|
61483
61483
|
validate: (e) => e.trim() !== "",
|
|
61484
61484
|
errorMessage: t
|
|
61485
61485
|
}), Eb = (t = "Revisá el email, está incompleto.") => ({
|
|
@@ -63505,7 +63505,7 @@ let xi = class extends qe {
|
|
|
63505
63505
|
payment_request_id: (e = this.stateScof.statePaymentRequest) == null ? void 0 : e.id,
|
|
63506
63506
|
payment_request_status: this.statusMessage,
|
|
63507
63507
|
card_name: t.transactions[0].payment_method ? t.transactions[0].payment_method.name : "no_card_name",
|
|
63508
|
-
card_type: t.transactions[0].payment_method
|
|
63508
|
+
card_type: t.transactions[0].payment_method ? t.transactions[0].payment_method.card_type : "no_card_type",
|
|
63509
63509
|
payment_type: t.payment_type
|
|
63510
63510
|
}
|
|
63511
63511
|
}), Qt.setEndPaymentTime());
|
|
@@ -64515,6 +64515,10 @@ let qo = class extends qe {
|
|
|
64515
64515
|
var t, e, r;
|
|
64516
64516
|
return (t = this.getBuyer) != null && t.doc_number && ((e = this.getBuyer) == null ? void 0 : e.doc_number.length) >= 6 ? (r = this.getBuyer) == null ? void 0 : r.doc_number : "";
|
|
64517
64517
|
}
|
|
64518
|
+
get name() {
|
|
64519
|
+
var t, e;
|
|
64520
|
+
return (t = this.getBuyer) != null && t.name ? (e = this.getBuyer) == null ? void 0 : e.name.replace(/[^a-záéíóúüñA-ZÁÉÍÓÚÜÑ\s]/g, "") : "";
|
|
64521
|
+
}
|
|
64518
64522
|
firstUpdated(t) {
|
|
64519
64523
|
var e;
|
|
64520
64524
|
super.firstUpdated(t), pe.info("firstUpdated", {
|
|
@@ -64599,7 +64603,7 @@ let qo = class extends qe {
|
|
|
64599
64603
|
}), this.isValidForm = e, this.holder.doc_type = this.isDni ? "DNI" : "PASAPORTE";
|
|
64600
64604
|
}
|
|
64601
64605
|
renderHTML() {
|
|
64602
|
-
var t, e
|
|
64606
|
+
var t, e;
|
|
64603
64607
|
return P`
|
|
64604
64608
|
<form @input="${this.validateForm}">
|
|
64605
64609
|
<scof-input
|
|
@@ -64612,14 +64616,14 @@ let qo = class extends qe {
|
|
|
64612
64616
|
Bb("El nombre solo puede contener letras y espacios."),
|
|
64613
64617
|
Cb("El nombre no puede estar en blanco.")
|
|
64614
64618
|
]}"
|
|
64615
|
-
.value="${
|
|
64619
|
+
.value="${this.name}"
|
|
64616
64620
|
></scof-input>
|
|
64617
64621
|
<scof-input
|
|
64618
64622
|
name="user_email"
|
|
64619
64623
|
label="Email"
|
|
64620
64624
|
type="email"
|
|
64621
64625
|
.validationRules="${[Ms("Tenés que completar el mail."), Eb()]}"
|
|
64622
|
-
.value="${(
|
|
64626
|
+
.value="${(t = this.getBuyer) != null && t.user_email ? (e = this.getBuyer) == null ? void 0 : e.user_email : ""}"
|
|
64623
64627
|
></scof-input>
|
|
64624
64628
|
|
|
64625
64629
|
<div class="panel-id-selection">
|
|
@@ -65665,7 +65669,7 @@ let Ho = class extends qe {
|
|
|
65665
65669
|
payment_request_id: (e = this._statePaymentManualInput.statePaymentRequest) == null ? void 0 : e.id,
|
|
65666
65670
|
payment_request_status: this.statusMessage,
|
|
65667
65671
|
card_name: t.transactions[0].payment_method ? t.transactions[0].payment_method.name : "no_card_name",
|
|
65668
|
-
card_type: t.transactions[0].payment_method
|
|
65672
|
+
card_type: t.transactions[0].payment_method ? t.transactions[0].payment_method.card_type : "no_card_type",
|
|
65669
65673
|
payment_type: t.payment_type
|
|
65670
65674
|
}
|
|
65671
65675
|
}), Qt.setEndPaymentTime());
|
|
@@ -65888,13 +65892,15 @@ let wn = class extends qe {
|
|
|
65888
65892
|
if (!navigator.userAgent.match(/iPhone|iPad/i))
|
|
65889
65893
|
return;
|
|
65890
65894
|
const t = document.createElement("form");
|
|
65891
|
-
t.style.position = "absolute", t.style.top = "-
|
|
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 = `
|
|
65892
65896
|
<input type="text" id="hiddenCreditNumber" autocomplete="cc-number">
|
|
65893
65897
|
<input type="text" id="hiddenDateExpired" autocomplete="cc-exp">
|
|
65894
65898
|
<input type="password" id="hiddenCvv" autocomplete="cc-csc">
|
|
65895
65899
|
`, document.body.appendChild(t);
|
|
65896
|
-
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"]')
|
|
65897
|
-
|
|
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 })));
|
|
65898
65904
|
};
|
|
65899
65905
|
document.addEventListener("visibilitychange", () => {
|
|
65900
65906
|
document.visibilityState === "visible" && a();
|
|
@@ -66135,6 +66141,10 @@ let so = class extends qe {
|
|
|
66135
66141
|
var t, e, r;
|
|
66136
66142
|
return (t = this.getBuyer) != null && t.doc_number && ((e = this.getBuyer) == null ? void 0 : e.doc_number.length) >= 6 ? (r = this.getBuyer) == null ? void 0 : r.doc_number : "";
|
|
66137
66143
|
}
|
|
66144
|
+
get name() {
|
|
66145
|
+
var t, e;
|
|
66146
|
+
return (t = this.getBuyer) != null && t.name ? (e = this.getBuyer) == null ? void 0 : e.name.replace(/[^a-záéíóúüñA-ZÁÉÍÓÚÜÑ\s]/g, "") : "";
|
|
66147
|
+
}
|
|
66138
66148
|
firstUpdated(t) {
|
|
66139
66149
|
var e;
|
|
66140
66150
|
super.firstUpdated(t), this._statePaymentManualInput.isCardPresent || this._getinstallment(), (e = this._statePaymentManualInput.statePaymentRequest.buyer) != null && e.doc_type && (this.isDni = this._statePaymentManualInput.statePaymentRequest.buyer.doc_type === "DNI", this.requestUpdate()), this.forceValidation(["name", "user_email", "doc_number"]), this.validateForm();
|
|
@@ -66228,7 +66238,7 @@ let so = class extends qe {
|
|
|
66228
66238
|
}), this.isValidForm = e, this.holder.doc_type = this.isDni ? "DNI" : "PASAPORTE";
|
|
66229
66239
|
}
|
|
66230
66240
|
renderHTML() {
|
|
66231
|
-
var t, e
|
|
66241
|
+
var t, e;
|
|
66232
66242
|
return P`
|
|
66233
66243
|
<form @input="${this.validateForm}">
|
|
66234
66244
|
<scof-input
|
|
@@ -66241,14 +66251,14 @@ let so = class extends qe {
|
|
|
66241
66251
|
Bb("El nombre solo puede contener letras y espacios."),
|
|
66242
66252
|
Cb("El nombre no puede estar en blanco.")
|
|
66243
66253
|
]}"
|
|
66244
|
-
.value="${
|
|
66254
|
+
.value="${this.name}"
|
|
66245
66255
|
></scof-input>
|
|
66246
66256
|
<scof-input
|
|
66247
66257
|
name="user_email"
|
|
66248
66258
|
label="Email"
|
|
66249
66259
|
type="email"
|
|
66250
66260
|
.validationRules="${[Ms("Tenés que completar el mail."), Eb()]}"
|
|
66251
|
-
.value="${(
|
|
66261
|
+
.value="${(t = this.getBuyer) != null && t.user_email ? (e = this.getBuyer) == null ? void 0 : e.user_email : ""}"
|
|
66252
66262
|
></scof-input>
|
|
66253
66263
|
|
|
66254
66264
|
<div class="panel-id-selection">
|
|
@@ -80157,7 +80167,7 @@ function(t) {
|
|
|
80157
80167
|
*/
|
|
80158
80168
|
function(t) {
|
|
80159
80169
|
function e() {
|
|
80160
|
-
return (gt.canvg ? Promise.resolve(gt.canvg) : import("./index.es-
|
|
80170
|
+
return (gt.canvg ? Promise.resolve(gt.canvg) : import("./index.es-54ceaa11.js")).catch(function(r) {
|
|
80161
80171
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
80162
80172
|
}).then(function(r) {
|
|
80163
80173
|
return r.default ? r.default : r;
|
|
@@ -82007,6 +82017,10 @@ let io = class extends qe {
|
|
|
82007
82017
|
var t, e, r;
|
|
82008
82018
|
return (t = this.getBuyer) != null && t.doc_number && ((e = this.getBuyer) == null ? void 0 : e.doc_number.length) >= 6 ? (r = this.getBuyer) == null ? void 0 : r.doc_number : "";
|
|
82009
82019
|
}
|
|
82020
|
+
get name() {
|
|
82021
|
+
var t, e;
|
|
82022
|
+
return (t = this.getBuyer) != null && t.name ? (e = this.getBuyer) == null ? void 0 : e.name.replace(/[^a-záéíóúüñA-ZÁÉÍÓÚÜÑ\s]/g, "") : "";
|
|
82023
|
+
}
|
|
82010
82024
|
firstUpdated(t) {
|
|
82011
82025
|
var e;
|
|
82012
82026
|
super.firstUpdated(t), this.state.isCardPresent || this.getinstallment(), (e = this.state.statePaymentRequest.buyer) != null && e.doc_type && (this.isDni = this.state.statePaymentRequest.buyer.doc_type === "DNI", this.requestUpdate()), this.forceValidation(["name", "user_email", "doc_number"]), this.validateForm();
|
|
@@ -82098,7 +82112,7 @@ let io = class extends qe {
|
|
|
82098
82112
|
}), this.isValidForm = e, this.holder.doc_type = this.isDni ? "DNI" : "PASAPORTE";
|
|
82099
82113
|
}
|
|
82100
82114
|
renderHTML() {
|
|
82101
|
-
var t, e
|
|
82115
|
+
var t, e;
|
|
82102
82116
|
return P`
|
|
82103
82117
|
<form @input="${this.validateForm}">
|
|
82104
82118
|
<scof-input
|
|
@@ -82111,14 +82125,14 @@ let io = class extends qe {
|
|
|
82111
82125
|
Bb("El nombre solo puede contener letras y espacios."),
|
|
82112
82126
|
Cb("El nombre no puede estar en blanco.")
|
|
82113
82127
|
]}"
|
|
82114
|
-
.value="${
|
|
82128
|
+
.value="${this.name}"
|
|
82115
82129
|
></scof-input>
|
|
82116
82130
|
<scof-input
|
|
82117
82131
|
name="user_email"
|
|
82118
82132
|
label="Email"
|
|
82119
82133
|
type="email"
|
|
82120
82134
|
.validationRules="${[Ms("Tenés que completar el mail."), Eb()]}"
|
|
82121
|
-
.value="${(
|
|
82135
|
+
.value="${(t = this.getBuyer) != null && t.user_email ? (e = this.getBuyer) == null ? void 0 : e.user_email : ""}"
|
|
82122
82136
|
></scof-input>
|
|
82123
82137
|
|
|
82124
82138
|
<div class="panel-id-selection">
|
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-
|
|
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,
|