@ranty/ranty-sdk 0.0.25 → 0.0.27
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.
- package/dist/index.js +32 -18
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -72,7 +72,7 @@ si([
|
|
|
72
72
|
$r = si([
|
|
73
73
|
X("footer-component")
|
|
74
74
|
], $r);
|
|
75
|
-
const Ju = `/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}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}.input.checkbox label{font-size:12px}.input.checkbox label p{margin:0}.input.checkbox 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:28px}.errorBin{color:red;margin-top:5px;font-family:Inter,Arial,"sans-serif";font-size:14px;font-weight:200;bottom:42px}
|
|
75
|
+
const Ju = `/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}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: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:28px}.errorBin{color:red;margin-top:5px;font-family:Inter,Arial,"sans-serif";font-size:14px;font-weight:200;bottom:42px}
|
|
76
76
|
`;
|
|
77
77
|
var Zu = Object.defineProperty, Qu = Object.getOwnPropertyDescriptor, ft = (r, e, t, n) => {
|
|
78
78
|
for (var i = n > 1 ? void 0 : n ? Qu(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
@@ -14611,6 +14611,7 @@ let de = class r extends Q {
|
|
|
14611
14611
|
cardType: "",
|
|
14612
14612
|
hasError: !1,
|
|
14613
14613
|
hasPayError: !1,
|
|
14614
|
+
hasC2PAuthError: !1,
|
|
14614
14615
|
hasErrorWebSocket: !1,
|
|
14615
14616
|
locale: "",
|
|
14616
14617
|
dpaId: "",
|
|
@@ -14673,7 +14674,7 @@ let de = class r extends Q {
|
|
|
14673
14674
|
connectedCallback() {
|
|
14674
14675
|
super.connectedCallback(), this.addEventListener("errorOnClick2pay", (e) => {
|
|
14675
14676
|
const t = e;
|
|
14676
|
-
console.log("There was an error with click2pay platform"), this.contextData.hasError = !0, t.detail.hasPayError && (this.contextData.hasPayError = !0), t.detail.hasErrorWebSocket && (this.contextData.hasErrorWebSocket = !0);
|
|
14677
|
+
console.log("There was an error with click2pay platform"), this.contextData.hasError = !0, t.detail.hasPayError && (this.contextData.hasPayError = !0), t.detail.hasErrorWebSocket && (this.contextData.hasErrorWebSocket = !0), t.detail.hasC2PAuthError && (this.contextData.hasC2PAuthError = !0);
|
|
14677
14678
|
}), this.addEventListener("clearErrors", () => {
|
|
14678
14679
|
this.contextData.hasError = !1, this.contextData.hasPayError = !1, this.contextData.hasErrorWebSocket = !1;
|
|
14679
14680
|
}), this.addEventListener("click2payNotAvailable", () => {
|
|
@@ -15135,7 +15136,7 @@ Er([
|
|
|
15135
15136
|
Ft = Er([
|
|
15136
15137
|
X("credit-card")
|
|
15137
15138
|
], Ft);
|
|
15138
|
-
const Ly = `/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}form{margin:inherit}.clickeable{cursor:pointer}.container{margin-top:4px}.panel-container{padding:12px 32px 8px;background:#ffffff;border:1px solid #e5e7eb;border-radius:20px}.continue{width:238px;display:flex;justify-content:flex-end}.back{width:248px;display:flex;justify-content:flex-start;align-items:center}.panel-id-selection{display:flex;gap:15px}.panel-id-selection>*{flex:1;max-width:50%}.card-form__title-form{font-family:Inter,Arial,"sans-serif";font-size:14px;font-weight:500;color:#888}.learn-text{font-family:Inter,Arial,"sans-serif";font-size:14px;color:#652bdf;text-decoration:underline;cursor:pointer}.credit-info{display:flex}.credit-info click2pay-card-input{flex:1}.credit-info img{margin-top:20px;margin-left:20px;align-self:flex-start}.modal{display:none;border:1px solid rgb(229,231,235);border-radius:20px;height:450px;width:500px;background-color:#fff;position:fixed;z-index:5}.panel-title{display:flex;margin-bottom:23px;align-items:end;gap:5px}.panel-title span{color:#6a6a6a;font-family:Inter,Arial,"sans-serif";font-size:12px;font-weight:400;padding-top:10px;margin-bottom:5px}.panel-title img{width:120px}.card-form__input-icon{display:flex;gap:12px}.card-form__buttons{display:flex;justify-content:space-between;margin-bottom:10px;margin-top:30px}@media only screen and (max-width: 800px){.panel-container{margin-left:8px;margin-right:8px;padding:8px 10px}.card-form__buttons{margin-top:0}}
|
|
15139
|
+
const Ly = `/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}form{margin:inherit}.clickeable{cursor:pointer}.container{margin-top:4px}.panel-container{padding:12px 32px 8px;background:#ffffff;border:1px solid #e5e7eb;border-radius:20px}.checkbox{padding-bottom:20px!important}.continue{width:238px;display:flex;justify-content:flex-end}.back{width:248px;display:flex;justify-content:flex-start;align-items:center}.panel-id-selection{display:flex;gap:15px}.panel-id-selection>*{flex:1;max-width:50%}.card-form__title-form{font-family:Inter,Arial,"sans-serif";font-size:14px;font-weight:500;color:#888}.learn-text{font-family:Inter,Arial,"sans-serif";font-size:14px;color:#652bdf;text-decoration:underline;cursor:pointer}.credit-info{display:flex}.credit-info click2pay-card-input{flex:1}.credit-info img{margin-top:20px;margin-left:20px;align-self:flex-start}.modal{display:none;border:1px solid rgb(229,231,235);border-radius:20px;height:450px;width:500px;background-color:#fff;position:fixed;z-index:5}.panel-title{display:flex;margin-bottom:23px;align-items:end;gap:5px}.panel-title span{color:#6a6a6a;font-family:Inter,Arial,"sans-serif";font-size:12px;font-weight:400;padding-top:10px;margin-bottom:5px}.panel-title img{width:120px}.card-form__input-icon{display:flex;gap:12px}.card-form__buttons{display:flex;justify-content:space-between;margin-bottom:10px;margin-top:30px}@media only screen and (max-width: 800px){.learn-text{position:relative;top:-15px}.panel-container{margin-left:8px;margin-right:8px;padding:8px 10px}.card-form__buttons{margin-top:0}}
|
|
15139
15140
|
`;
|
|
15140
15141
|
var zy = Object.defineProperty, jy = Object.getOwnPropertyDescriptor, $e = (r, e, t, n) => {
|
|
15141
15142
|
for (var i = n > 1 ? void 0 : n ? jy(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
@@ -15254,7 +15255,7 @@ let Te = class extends Q {
|
|
|
15254
15255
|
.value="${this._shouldAddCard}"
|
|
15255
15256
|
.checked="${this._shouldAddCard}"
|
|
15256
15257
|
@click="${this._toggleChecked}"
|
|
15257
|
-
customClass="checkbox"
|
|
15258
|
+
customClass="checkbox-form-credit"
|
|
15258
15259
|
></my-input>
|
|
15259
15260
|
<span class="learn-text" @click="${this._openModal}">Aprendé más</span>
|
|
15260
15261
|
` : ""}
|
|
@@ -17006,7 +17007,9 @@ let q = class r extends Q {
|
|
|
17006
17007
|
} catch (c) {
|
|
17007
17008
|
this.isLoading = !1, this.dispatchEvent(
|
|
17008
17009
|
new CustomEvent("errorOnClick2pay", {
|
|
17009
|
-
detail: {
|
|
17010
|
+
detail: {
|
|
17011
|
+
hasC2PAuthError: !0
|
|
17012
|
+
},
|
|
17010
17013
|
bubbles: !0,
|
|
17011
17014
|
composed: !0
|
|
17012
17015
|
})
|
|
@@ -17075,17 +17078,27 @@ let q = class r extends Q {
|
|
|
17075
17078
|
subtitle="Para aprovechar todos los beneficios de tu banco."
|
|
17076
17079
|
@click="${this._deepLinkModo}"
|
|
17077
17080
|
></card-home>
|
|
17078
|
-
|
|
17079
|
-
|
|
17080
|
-
|
|
17081
|
-
|
|
17082
|
-
|
|
17083
|
-
|
|
17084
|
-
|
|
17085
|
-
|
|
17086
|
-
|
|
17087
|
-
|
|
17088
|
-
|
|
17081
|
+
<br />
|
|
17082
|
+
<card-home
|
|
17083
|
+
class="clickeable"
|
|
17084
|
+
image="https://ranty-sdk-js.naranjax.com/images/card.svg"
|
|
17085
|
+
title="Tarjeta de crédito o débito"
|
|
17086
|
+
subtitle="Pagá con la tarjeta de crédito o débito que prefieras."
|
|
17087
|
+
@click="${this._toggleShowPersonalDataForm}"
|
|
17088
|
+
></card-home>
|
|
17089
|
+
` : C`
|
|
17090
|
+
${this.wallet ? C` <card-home class="clickeable" @click="${this._handleCardClick}"></card-home> ` : ""}
|
|
17091
|
+
<br />
|
|
17092
|
+
${this.manualInput ? C`
|
|
17093
|
+
<card-home
|
|
17094
|
+
class="clickeable"
|
|
17095
|
+
image="https://ranty-sdk-js.naranjax.com/images/card.svg"
|
|
17096
|
+
title="Tarjeta de crédito o débito"
|
|
17097
|
+
subtitle="Pagá con la tarjeta de crédito o débito que prefieras."
|
|
17098
|
+
@click="${this._toggleShowPersonalDataForm}"
|
|
17099
|
+
></card-home>
|
|
17100
|
+
` : ""}
|
|
17101
|
+
`}
|
|
17089
17102
|
`;
|
|
17090
17103
|
}
|
|
17091
17104
|
_handleCardClick() {
|
|
@@ -17163,12 +17176,13 @@ let q = class r extends Q {
|
|
|
17163
17176
|
`;
|
|
17164
17177
|
}
|
|
17165
17178
|
_retryPanels() {
|
|
17166
|
-
|
|
17179
|
+
var e;
|
|
17180
|
+
console.log("retryPanels 2"), this.isLoading = !0, $n(this), this.isLoading = !1, (e = this._contextData) != null && e.hasC2PAuthError ? this._showInitialPanels = !0 : this._showC2pCardList = !0, this.dispatchEvent(
|
|
17167
17181
|
new CustomEvent("clearErrors", {
|
|
17168
17182
|
bubbles: !0,
|
|
17169
17183
|
composed: !0
|
|
17170
17184
|
})
|
|
17171
|
-
)
|
|
17185
|
+
);
|
|
17172
17186
|
}
|
|
17173
17187
|
_callbackUrl() {
|
|
17174
17188
|
var t;
|