@ranty/ranty-sdk 3.28.5-beta.1 → 3.28.5-beta.3
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.
|
@@ -926,7 +926,7 @@ function _e(t) {
|
|
|
926
926
|
*/
|
|
927
927
|
var oy;
|
|
928
928
|
((oy = window.HTMLSlotElement) === null || oy === void 0 ? void 0 : oy.prototype.assignedElements) != null;
|
|
929
|
-
const FT = "@nx-ranty/ranty-sdk", RT = "3.28.5-beta.
|
|
929
|
+
const FT = "@nx-ranty/ranty-sdk", RT = "3.28.5-beta.3", DT = "Ranty sdk", PT = "dist/index.js", NT = {
|
|
930
930
|
".": "./dist/index.js"
|
|
931
931
|
}, OT = "types/index.d.ts", LT = [
|
|
932
932
|
"dist",
|
|
@@ -16591,10 +16591,10 @@ function YM(t, e, n, r) {
|
|
|
16591
16591
|
}
|
|
16592
16592
|
const Pp = bM(YM);
|
|
16593
16593
|
bQ(Qo(), "DD_LOGS", Pp);
|
|
16594
|
-
const JM = "@nx-ranty/ranty-sdk", XM = "3.28.5-beta.
|
|
16594
|
+
const JM = "@nx-ranty/ranty-sdk", XM = "3.28.5-beta.3", ZM = 3, $M = !0, ez = {
|
|
16595
16595
|
"": {
|
|
16596
16596
|
name: "@nx-ranty/ranty-sdk",
|
|
16597
|
-
version: "3.28.5-beta.
|
|
16597
|
+
version: "3.28.5-beta.3",
|
|
16598
16598
|
license: "ISC",
|
|
16599
16599
|
dependencies: {
|
|
16600
16600
|
"@amplitude/analytics-browser": "^2.33.1",
|
|
@@ -42608,14 +42608,14 @@ const lp = hA, x4 = class wp {
|
|
|
42608
42608
|
x4._instance = null;
|
|
42609
42609
|
let C4 = x4;
|
|
42610
42610
|
typeof window != "undefined" && (window.dataLayer = window.dataLayer || []);
|
|
42611
|
-
function
|
|
42611
|
+
function on(t, e) {
|
|
42612
42612
|
return ue(this, null, function* () {
|
|
42613
42613
|
yield C4.getInstance().waitUntilLoaded(), window.dataLayer.push(Fe({
|
|
42614
42614
|
event: t
|
|
42615
42615
|
}, e));
|
|
42616
42616
|
});
|
|
42617
42617
|
}
|
|
42618
|
-
function
|
|
42618
|
+
function In(t, e) {
|
|
42619
42619
|
return { paymentinputsavailable: t.resolvePaymentInputsAvailable(
|
|
42620
42620
|
e == null ? void 0 : e.payment_inputs
|
|
42621
42621
|
) };
|
|
@@ -42647,7 +42647,7 @@ class Si {
|
|
|
42647
42647
|
}
|
|
42648
42648
|
/** PV - Loading page */
|
|
42649
42649
|
loading(e, n) {
|
|
42650
|
-
|
|
42650
|
+
on("trackevent", {
|
|
42651
42651
|
eventName: "pageview",
|
|
42652
42652
|
eventParams: {
|
|
42653
42653
|
product: "checkout",
|
|
@@ -42659,7 +42659,7 @@ class Si {
|
|
|
42659
42659
|
}
|
|
42660
42660
|
/** PV - MEDIOS DE PAGO **/
|
|
42661
42661
|
paymentMethodSelection(e, n) {
|
|
42662
|
-
|
|
42662
|
+
on("trackevent", {
|
|
42663
42663
|
eventName: "pageview",
|
|
42664
42664
|
eventParams: {
|
|
42665
42665
|
product: "checkout",
|
|
@@ -42671,7 +42671,7 @@ class Si {
|
|
|
42671
42671
|
}
|
|
42672
42672
|
/** CLICK - MEDIO DE PAGO **/
|
|
42673
42673
|
clickCreditOrDebitCard(e, n) {
|
|
42674
|
-
|
|
42674
|
+
on("trackevent", {
|
|
42675
42675
|
eventName: "click",
|
|
42676
42676
|
eventParams: {
|
|
42677
42677
|
product: "checkout",
|
|
@@ -42683,8 +42683,21 @@ class Si {
|
|
|
42683
42683
|
});
|
|
42684
42684
|
}
|
|
42685
42685
|
/** CLICK - MEDIO DE PAGO **/
|
|
42686
|
+
clickA2A(e, n) {
|
|
42687
|
+
on("trackevent", {
|
|
42688
|
+
eventName: "click",
|
|
42689
|
+
eventParams: {
|
|
42690
|
+
product: "checkout",
|
|
42691
|
+
section: "choose_payment_method",
|
|
42692
|
+
element: "a2a",
|
|
42693
|
+
mode: e,
|
|
42694
|
+
paymenttype: this.resolvePaymentType(n)
|
|
42695
|
+
}
|
|
42696
|
+
});
|
|
42697
|
+
}
|
|
42698
|
+
/** CLICK - MEDIO DE PAGO **/
|
|
42686
42699
|
clickModo(e, n) {
|
|
42687
|
-
|
|
42700
|
+
on("trackevent", {
|
|
42688
42701
|
eventName: "click",
|
|
42689
42702
|
eventParams: {
|
|
42690
42703
|
product: "checkout",
|
|
@@ -42697,7 +42710,7 @@ class Si {
|
|
|
42697
42710
|
}
|
|
42698
42711
|
/** PV - CARD LIST **/
|
|
42699
42712
|
cardSaved(e, n) {
|
|
42700
|
-
|
|
42713
|
+
on("trackevent", {
|
|
42701
42714
|
eventName: "pageview",
|
|
42702
42715
|
eventParams: {
|
|
42703
42716
|
product: "checkout",
|
|
@@ -42709,7 +42722,7 @@ class Si {
|
|
|
42709
42722
|
}
|
|
42710
42723
|
/** CLICK - HACIA EL FORM DESDE CARD LIST **/
|
|
42711
42724
|
chooseFormInCardList(e, n) {
|
|
42712
|
-
|
|
42725
|
+
on("trackevent", {
|
|
42713
42726
|
eventName: "click",
|
|
42714
42727
|
eventParams: {
|
|
42715
42728
|
product: "checkout",
|
|
@@ -42722,7 +42735,7 @@ class Si {
|
|
|
42722
42735
|
}
|
|
42723
42736
|
/** CLICK - CARD LIST **/
|
|
42724
42737
|
chooseCardSaved(e, n, r) {
|
|
42725
|
-
|
|
42738
|
+
on("trackevent", {
|
|
42726
42739
|
eventName: "click",
|
|
42727
42740
|
eventParams: {
|
|
42728
42741
|
product: "checkout",
|
|
@@ -42736,7 +42749,7 @@ class Si {
|
|
|
42736
42749
|
}
|
|
42737
42750
|
/** PV - ENTER DATA FORMULARIO */
|
|
42738
42751
|
enterCardData(e, n) {
|
|
42739
|
-
|
|
42752
|
+
on("trackevent", {
|
|
42740
42753
|
eventName: "pageview",
|
|
42741
42754
|
eventParams: {
|
|
42742
42755
|
product: "checkout",
|
|
@@ -42748,7 +42761,7 @@ class Si {
|
|
|
42748
42761
|
}
|
|
42749
42762
|
/** CLICK- ENTER DATA FORMULARIO */
|
|
42750
42763
|
clickContinueAfterData(e, n, r, s) {
|
|
42751
|
-
|
|
42764
|
+
on("trackevent", {
|
|
42752
42765
|
eventName: "click",
|
|
42753
42766
|
eventParams: {
|
|
42754
42767
|
product: "checkout",
|
|
@@ -42763,7 +42776,7 @@ class Si {
|
|
|
42763
42776
|
}
|
|
42764
42777
|
/** PV - INSTALLMENT PLANS */
|
|
42765
42778
|
screenSelectInstallments(e, n) {
|
|
42766
|
-
|
|
42779
|
+
on("trackevent", {
|
|
42767
42780
|
eventName: "pageview",
|
|
42768
42781
|
eventParams: {
|
|
42769
42782
|
product: "checkout",
|
|
@@ -42776,7 +42789,7 @@ class Si {
|
|
|
42776
42789
|
}
|
|
42777
42790
|
/** CLICK - INSTALLEMNTS*/
|
|
42778
42791
|
selectInstallments(e, n) {
|
|
42779
|
-
|
|
42792
|
+
on("trackevent", {
|
|
42780
42793
|
eventName: "click",
|
|
42781
42794
|
eventParams: {
|
|
42782
42795
|
product: "checkout",
|
|
@@ -42790,7 +42803,7 @@ class Si {
|
|
|
42790
42803
|
}
|
|
42791
42804
|
/** PV - RESUMEN DE PAGO*/
|
|
42792
42805
|
paymentSummary(e, n, r) {
|
|
42793
|
-
|
|
42806
|
+
on("trackevent", {
|
|
42794
42807
|
eventName: "pageview",
|
|
42795
42808
|
eventParams: {
|
|
42796
42809
|
product: "checkout",
|
|
@@ -42803,7 +42816,7 @@ class Si {
|
|
|
42803
42816
|
}
|
|
42804
42817
|
/** CLICK - PAGAR RESUMEN DE PAGO */
|
|
42805
42818
|
clickPay(e, n, r, s) {
|
|
42806
|
-
|
|
42819
|
+
on("trackevent", {
|
|
42807
42820
|
eventName: "click",
|
|
42808
42821
|
eventParams: {
|
|
42809
42822
|
product: "checkout",
|
|
@@ -42818,7 +42831,7 @@ class Si {
|
|
|
42818
42831
|
}
|
|
42819
42832
|
/** PV - PROCESANDO EL PAGO */
|
|
42820
42833
|
processingPayment(e, n, r, s) {
|
|
42821
|
-
|
|
42834
|
+
on("trackevent", {
|
|
42822
42835
|
eventName: "pageview",
|
|
42823
42836
|
eventParams: {
|
|
42824
42837
|
product: "checkout",
|
|
@@ -42830,26 +42843,25 @@ class Si {
|
|
|
42830
42843
|
}
|
|
42831
42844
|
});
|
|
42832
42845
|
}
|
|
42833
|
-
paymentResult(e, n, r, s, i
|
|
42834
|
-
|
|
42846
|
+
paymentResult(e, n, r, s, i) {
|
|
42847
|
+
on("trackevent", {
|
|
42835
42848
|
eventName: "pageview",
|
|
42836
42849
|
eventParams: {
|
|
42837
42850
|
product: "checkout",
|
|
42838
42851
|
section: "payment_result",
|
|
42839
|
-
subsection:
|
|
42852
|
+
subsection: i ? i === "APPROVED" ? "payment_confirmation" : "payment_not_processed" : "service_failed",
|
|
42840
42853
|
method: this.resolveCard(n),
|
|
42841
42854
|
paymentinput: e,
|
|
42842
42855
|
mode: s,
|
|
42843
42856
|
paymentstage: "completed_attempt",
|
|
42844
42857
|
paymenttype: this.resolvePaymentType(r),
|
|
42845
|
-
|
|
42846
|
-
statusResponsePayment: o
|
|
42858
|
+
statusresponsePayment: i
|
|
42847
42859
|
}
|
|
42848
42860
|
});
|
|
42849
42861
|
}
|
|
42850
42862
|
/** CLICK - DESCARGA COMPROBANTE DE PAGO */
|
|
42851
42863
|
clickDownloadReceipt(e, n, r, s) {
|
|
42852
|
-
|
|
42864
|
+
on("trackevent", {
|
|
42853
42865
|
eventName: "click",
|
|
42854
42866
|
eventParams: {
|
|
42855
42867
|
product: "checkout",
|
|
@@ -42865,7 +42877,7 @@ class Si {
|
|
|
42865
42877
|
// TC/TD PANTALLAS ERROR
|
|
42866
42878
|
// PV - Es una de las pantallas que existe si hay un problema en el sistema, te permite reintentar
|
|
42867
42879
|
servicePaymentFailed(e, n) {
|
|
42868
|
-
|
|
42880
|
+
on("trackevent", {
|
|
42869
42881
|
eventName: "error",
|
|
42870
42882
|
eventParams: {
|
|
42871
42883
|
product: "checkout",
|
|
@@ -42877,7 +42889,7 @@ class Si {
|
|
|
42877
42889
|
}
|
|
42878
42890
|
// CLICK - Es una de las pantallas que existe si hay un problema en el sistema, te permite reintentar
|
|
42879
42891
|
servicePaymentFailedRetry(e, n, r) {
|
|
42880
|
-
|
|
42892
|
+
on("trackevent", {
|
|
42881
42893
|
eventName: "click",
|
|
42882
42894
|
eventParams: {
|
|
42883
42895
|
product: "checkout",
|
|
@@ -42891,7 +42903,7 @@ class Si {
|
|
|
42891
42903
|
/** FLUJO QR */
|
|
42892
42904
|
/** 1) medio de pago QR */
|
|
42893
42905
|
choisePaymentMethodQR(e, n) {
|
|
42894
|
-
|
|
42906
|
+
on("trackevent", {
|
|
42895
42907
|
eventName: "click",
|
|
42896
42908
|
eventParams: {
|
|
42897
42909
|
product: "checkout",
|
|
@@ -42903,23 +42915,26 @@ class Si {
|
|
|
42903
42915
|
}
|
|
42904
42916
|
});
|
|
42905
42917
|
}
|
|
42906
|
-
paymentResultQR(e, n, r, s) {
|
|
42907
|
-
|
|
42918
|
+
paymentResultQR(e, n, r, s, i) {
|
|
42919
|
+
const o = i.name === "APPROVED" ? "payment_confirmation" : "payment_not_processed";
|
|
42920
|
+
on("trackevent", {
|
|
42908
42921
|
eventName: "pageview",
|
|
42909
42922
|
eventParams: {
|
|
42910
42923
|
product: "checkout",
|
|
42911
42924
|
section: "payment_result",
|
|
42912
|
-
|
|
42925
|
+
paymentstage: "completed_attempt",
|
|
42926
|
+
subsection: o,
|
|
42913
42927
|
method: "qr",
|
|
42914
42928
|
paymentinput: e,
|
|
42915
|
-
walletname:
|
|
42916
|
-
paymenttype: this.resolvePaymentType(
|
|
42917
|
-
|
|
42929
|
+
walletname: r,
|
|
42930
|
+
paymenttype: this.resolvePaymentType(s),
|
|
42931
|
+
type: n,
|
|
42932
|
+
statusresponsePayment: i.name
|
|
42918
42933
|
}
|
|
42919
42934
|
});
|
|
42920
42935
|
}
|
|
42921
42936
|
openReceiptQR(e, n, r, s, i) {
|
|
42922
|
-
|
|
42937
|
+
on("trackevent", {
|
|
42923
42938
|
eventName: "click",
|
|
42924
42939
|
eventParams: {
|
|
42925
42940
|
product: "checkout",
|
|
@@ -42935,7 +42950,7 @@ class Si {
|
|
|
42935
42950
|
});
|
|
42936
42951
|
}
|
|
42937
42952
|
webSocketDisconnet(e) {
|
|
42938
|
-
|
|
42953
|
+
on("trackevent", {
|
|
42939
42954
|
eventName: "error",
|
|
42940
42955
|
eventParams: {
|
|
42941
42956
|
product: "checkout",
|
|
@@ -42945,8 +42960,8 @@ class Si {
|
|
|
42945
42960
|
}
|
|
42946
42961
|
});
|
|
42947
42962
|
}
|
|
42948
|
-
|
|
42949
|
-
|
|
42963
|
+
webSocketDisconnetRetry(e) {
|
|
42964
|
+
on("trackevent", {
|
|
42950
42965
|
eventName: "click",
|
|
42951
42966
|
eventParams: {
|
|
42952
42967
|
product: "checkout",
|
|
@@ -42959,7 +42974,7 @@ class Si {
|
|
|
42959
42974
|
}
|
|
42960
42975
|
/** ACCIONES BACK*/
|
|
42961
42976
|
clickBackEnterData(e, n) {
|
|
42962
|
-
|
|
42977
|
+
on("trackevent", {
|
|
42963
42978
|
eventName: "click",
|
|
42964
42979
|
eventParams: {
|
|
42965
42980
|
product: "checkout",
|
|
@@ -42971,7 +42986,7 @@ class Si {
|
|
|
42971
42986
|
});
|
|
42972
42987
|
}
|
|
42973
42988
|
clickBackInstallemntSection(e, n) {
|
|
42974
|
-
|
|
42989
|
+
on("trackevent", {
|
|
42975
42990
|
eventName: "click",
|
|
42976
42991
|
eventParams: {
|
|
42977
42992
|
product: "checkout",
|
|
@@ -42984,7 +42999,7 @@ class Si {
|
|
|
42984
42999
|
}
|
|
42985
43000
|
// si toc back en la PV de savedcard no tiene cargada tarjetas
|
|
42986
43001
|
clickBackCardList(e) {
|
|
42987
|
-
|
|
43002
|
+
on("trackevent", {
|
|
42988
43003
|
eventName: "click",
|
|
42989
43004
|
eventParams: {
|
|
42990
43005
|
product: "checkout",
|
|
@@ -42995,7 +43010,7 @@ class Si {
|
|
|
42995
43010
|
});
|
|
42996
43011
|
}
|
|
42997
43012
|
clickBackPaymentSummary(e, n) {
|
|
42998
|
-
|
|
43013
|
+
on("trackevent", {
|
|
42999
43014
|
eventName: "click",
|
|
43000
43015
|
eventParams: {
|
|
43001
43016
|
product: "checkout",
|
|
@@ -43009,7 +43024,7 @@ class Si {
|
|
|
43009
43024
|
// BACK QR
|
|
43010
43025
|
// Elegir otro medio de pago QR */
|
|
43011
43026
|
chooseAnotherMethod(e) {
|
|
43012
|
-
|
|
43027
|
+
on("trackevent", {
|
|
43013
43028
|
eventName: "click",
|
|
43014
43029
|
eventParams: {
|
|
43015
43030
|
product: "checkout",
|
|
@@ -46460,10 +46475,10 @@ let Ts = class extends Ze {
|
|
|
46460
46475
|
try {
|
|
46461
46476
|
const i = (n = (e = (t = this.state.paymentResponse) == null ? void 0 : t.data) == null ? void 0 : e.id) != null ? n : this.payfacContext.paymentRequest.payment_id, o = (s = (r = this.payfacContext.payment) != null ? r : this.state.payment) != null ? s : void 0, a = o != null ? o : yield q0(i, !1);
|
|
46462
46477
|
this.state.payment = a, this.payfacContext.payment = a, this.paymentInput = this.state.payment.payment_input;
|
|
46463
|
-
const d = this.state.payment.payment_type;
|
|
46478
|
+
const d = this.state.payment.payment_type, l = this.state.payment.payment_method.type;
|
|
46464
46479
|
this.walletName = this.state.payment.payment_method.wallet_name;
|
|
46465
|
-
const
|
|
46466
|
-
this.tracking.paymentResultQR(this.paymentInput, this.walletName, d,
|
|
46480
|
+
const c = this.state.payment.status;
|
|
46481
|
+
this.tracking.paymentResultQR(this.paymentInput, l, this.walletName, d, c);
|
|
46467
46482
|
} catch (i) {
|
|
46468
46483
|
console.log(i), _t("PAYMENT_ERROR", "Payment failed.");
|
|
46469
46484
|
}
|
|
@@ -46578,19 +46593,19 @@ let Ts = class extends Ze {
|
|
|
46578
46593
|
}), this.requestUpdate();
|
|
46579
46594
|
}
|
|
46580
46595
|
getInpustAvailableClickBackCardList() {
|
|
46581
|
-
const { paymentinputsavailable: t } =
|
|
46596
|
+
const { paymentinputsavailable: t } = In(this.tracking, this.payfacContext.paymentRequest);
|
|
46582
46597
|
this.tracking.clickBackCardList(t);
|
|
46583
46598
|
}
|
|
46584
46599
|
getInpustAvailableBackPaymentSummary() {
|
|
46585
|
-
const { paymentinputsavailable: t } =
|
|
46600
|
+
const { paymentinputsavailable: t } = In(this.tracking, this.payfacContext.paymentRequest);
|
|
46586
46601
|
this.tracking.clickBackPaymentSummary(this.state.binData.installment.type, t);
|
|
46587
46602
|
}
|
|
46588
46603
|
getInpustAvailableClickBackInstallemntSection() {
|
|
46589
|
-
const { paymentinputsavailable: t } =
|
|
46604
|
+
const { paymentinputsavailable: t } = In(this.tracking, this.payfacContext.paymentRequest);
|
|
46590
46605
|
this.tracking.clickBackInstallemntSection(this.state.binData.installment.type, t);
|
|
46591
46606
|
}
|
|
46592
46607
|
getInpustAvailableClickBackEnterData() {
|
|
46593
|
-
const { paymentinputsavailable: t } =
|
|
46608
|
+
const { paymentinputsavailable: t } = In(this.tracking, this.payfacContext.paymentRequest);
|
|
46594
46609
|
this.tracking.clickBackEnterData(this.state.binData.installment.type, t);
|
|
46595
46610
|
}
|
|
46596
46611
|
showAlertComponent() {
|
|
@@ -46758,11 +46773,11 @@ let VA = class extends Ze {
|
|
|
46758
46773
|
});
|
|
46759
46774
|
}
|
|
46760
46775
|
getInpustAvailableScreenSelectInstallments() {
|
|
46761
|
-
const { paymentinputsavailable: t } =
|
|
46776
|
+
const { paymentinputsavailable: t } = In(this.tracking, this.payfacContext.paymentRequest);
|
|
46762
46777
|
this.tracking.screenSelectInstallments(t, this.payfacContext.paymentRequest.payment_type);
|
|
46763
46778
|
}
|
|
46764
46779
|
getInpustAvailableSelectInstallments() {
|
|
46765
|
-
const { paymentinputsavailable: t } =
|
|
46780
|
+
const { paymentinputsavailable: t } = In(this.tracking, this.payfacContext.paymentRequest);
|
|
46766
46781
|
this.tracking.selectInstallments(t, this.payfacContext.paymentRequest.payment_type);
|
|
46767
46782
|
}
|
|
46768
46783
|
updateSharedState(t) {
|
|
@@ -47258,10 +47273,11 @@ let Ta = class extends Ze {
|
|
|
47258
47273
|
});
|
|
47259
47274
|
}
|
|
47260
47275
|
getInpustAvailablePaymentSummary() {
|
|
47261
|
-
|
|
47262
|
-
this.tracking.
|
|
47276
|
+
var n, r;
|
|
47277
|
+
const { paymentinputsavailable: t } = In(this.tracking, this.payfacContext.paymentRequest), e = (r = (n = this.state.binData) == null ? void 0 : n.installment) == null ? void 0 : r.type;
|
|
47278
|
+
e && this.tracking.paymentSummary(
|
|
47263
47279
|
t,
|
|
47264
|
-
|
|
47280
|
+
e,
|
|
47265
47281
|
this.payfacContext.paymentRequest.payment_type
|
|
47266
47282
|
);
|
|
47267
47283
|
}
|
|
@@ -47515,11 +47531,11 @@ class W0 extends Ze {
|
|
|
47515
47531
|
});
|
|
47516
47532
|
}
|
|
47517
47533
|
getInpustAvailable() {
|
|
47518
|
-
const { paymentinputsavailable: e } =
|
|
47534
|
+
const { paymentinputsavailable: e } = In(this.tracking, this.payfacContext.paymentRequest);
|
|
47519
47535
|
this.tracking.paymentMethodSelection(e, this.payfacContext.paymentRequest.payment_type);
|
|
47520
47536
|
}
|
|
47521
47537
|
getInpustAvailableMODO() {
|
|
47522
|
-
const { paymentinputsavailable: e } =
|
|
47538
|
+
const { paymentinputsavailable: e } = In(this.tracking, this.payfacContext.paymentRequest);
|
|
47523
47539
|
this.tracking.clickModo(e, this.payfacContext.paymentRequest.payment_type);
|
|
47524
47540
|
}
|
|
47525
47541
|
}
|
|
@@ -47557,17 +47573,26 @@ let s2 = class extends W0 {
|
|
|
47557
47573
|
}
|
|
47558
47574
|
toggleShowPersonalDataForm() {
|
|
47559
47575
|
const t = !this.state.scofEnabled || this.state.userCardData.list.length === 0 ? Ne.STANDARD_FORM : Ne.CARD_LIST;
|
|
47560
|
-
this.goTo(t), this.
|
|
47576
|
+
this.goTo(t), this.choiseCreditOrDebitCard();
|
|
47561
47577
|
}
|
|
47562
|
-
|
|
47563
|
-
const { paymentinputsavailable: t } =
|
|
47578
|
+
choiseCreditOrDebitCard() {
|
|
47579
|
+
const { paymentinputsavailable: t } = In(this.tracking, this.payfacContext.paymentRequest);
|
|
47564
47580
|
this.tracking.clickCreditOrDebitCard(t, this.payfacContext.paymentRequest.payment_type);
|
|
47565
47581
|
}
|
|
47582
|
+
choiseA2A() {
|
|
47583
|
+
const { paymentinputsavailable: t } = In(this.tracking, this.payfacContext.paymentRequest);
|
|
47584
|
+
this.tracking.clickA2A(t, this.payfacContext.paymentRequest.payment_type);
|
|
47585
|
+
}
|
|
47586
|
+
// agregue este metodo para escuchar cuando se renderiza el qr
|
|
47587
|
+
handleQrClick() {
|
|
47588
|
+
const { paymentinputsavailable: t } = In(this.tracking, this.payfacContext.paymentRequest);
|
|
47589
|
+
this.tracking.choisePaymentMethodQR(t, this.payfacContext.paymentRequest.payment_type), this.goTo(Ne.QR);
|
|
47590
|
+
}
|
|
47566
47591
|
deepLinkModoConnection() {
|
|
47567
47592
|
return ue(this, null, function* () {
|
|
47568
47593
|
var e;
|
|
47569
47594
|
const t = this.state.userAccountsData.list.length > 0 ? Ne.ACCOUNT_LIST : Ne.PCP_LIST;
|
|
47570
|
-
this.createEvent("button-pushed", t), ie.info("goTo", {
|
|
47595
|
+
this.createEvent("button-pushed", t), this.choiseA2A(), ie.info("goTo", {
|
|
47571
47596
|
context: this.payfacContext.context,
|
|
47572
47597
|
origin_sdk: P3,
|
|
47573
47598
|
tag: "GO_TO",
|
|
@@ -47613,11 +47638,6 @@ let s2 = class extends W0 {
|
|
|
47613
47638
|
@click="${() => this.handleQrClick()}"
|
|
47614
47639
|
></card-home>` : q``;
|
|
47615
47640
|
}
|
|
47616
|
-
// agregue este metodo para escuchar cuando se renderiza el qr
|
|
47617
|
-
handleQrClick() {
|
|
47618
|
-
const { paymentinputsavailable: t } = Tn(this.tracking, this.payfacContext.paymentRequest);
|
|
47619
|
-
this.tracking.choisePaymentMethodQR(t, this.payfacContext.paymentRequest.payment_type), this.goTo(Ne.QR);
|
|
47620
|
-
}
|
|
47621
47641
|
renderAccountToAccountAvailable() {
|
|
47622
47642
|
return this.isAccountToAccountAvailable && this.state.a2aEnabled ? q`<card-home
|
|
47623
47643
|
class="clickeable"
|
|
@@ -47708,15 +47728,15 @@ let $i = class extends Ze {
|
|
|
47708
47728
|
})), this.requestUpdate();
|
|
47709
47729
|
}
|
|
47710
47730
|
getInpustAvailableMethod() {
|
|
47711
|
-
const { paymentinputsavailable: t } =
|
|
47731
|
+
const { paymentinputsavailable: t } = In(this.tracking, this.payfacContext.paymentRequest);
|
|
47712
47732
|
this.tracking.cardSaved(t, this.payfacContext.paymentRequest.payment_type);
|
|
47713
47733
|
}
|
|
47714
47734
|
getInpustAvailableChooseFormInCardList() {
|
|
47715
|
-
const { paymentinputsavailable: t } =
|
|
47735
|
+
const { paymentinputsavailable: t } = In(this.tracking, this.payfacContext.paymentRequest);
|
|
47716
47736
|
this.tracking.chooseFormInCardList(t, this.payfacContext.paymentRequest.payment_type);
|
|
47717
47737
|
}
|
|
47718
47738
|
getInpustAvailableChooseCardSaved() {
|
|
47719
|
-
const { paymentinputsavailable: t } =
|
|
47739
|
+
const { paymentinputsavailable: t } = In(this.tracking, this.payfacContext.paymentRequest);
|
|
47720
47740
|
this.tracking.chooseCardSaved(
|
|
47721
47741
|
this.state.binData.installment.type,
|
|
47722
47742
|
t,
|
|
@@ -50166,7 +50186,7 @@ let uh = class extends Ze {
|
|
|
50166
50186
|
// )
|
|
50167
50187
|
// }
|
|
50168
50188
|
getInpustAvailableAnotherMethod() {
|
|
50169
|
-
const { paymentinputsavailable: t } =
|
|
50189
|
+
const { paymentinputsavailable: t } = In(this.tracking, this.payfacContext.paymentRequest);
|
|
50170
50190
|
this.tracking.chooseAnotherMethod(t);
|
|
50171
50191
|
}
|
|
50172
50192
|
firstUpdated() {
|
|
@@ -50849,11 +50869,11 @@ let eo = class t extends Ze {
|
|
|
50849
50869
|
});
|
|
50850
50870
|
}
|
|
50851
50871
|
getPaymentsFailedInpustAvailable() {
|
|
50852
|
-
const { paymentinputsavailable: e } =
|
|
50872
|
+
const { paymentinputsavailable: e } = In(this.tracking, this.payfacContext.paymentRequest);
|
|
50853
50873
|
this.tracking.servicePaymentFailed(e, this.payfacContext.paymentRequest.payment_type);
|
|
50854
50874
|
}
|
|
50855
50875
|
getPaymentsPayInpustAvailable() {
|
|
50856
|
-
const { paymentinputsavailable: e } =
|
|
50876
|
+
const { paymentinputsavailable: e } = In(this.tracking, this.payfacContext.paymentRequest);
|
|
50857
50877
|
this.tracking.clickPay(
|
|
50858
50878
|
this.state.binData.installment.type,
|
|
50859
50879
|
this.paymentInput,
|
|
@@ -50862,7 +50882,7 @@ let eo = class t extends Ze {
|
|
|
50862
50882
|
);
|
|
50863
50883
|
}
|
|
50864
50884
|
getPaymentsProcessingInpustAvailable() {
|
|
50865
|
-
const { paymentinputsavailable: e } =
|
|
50885
|
+
const { paymentinputsavailable: e } = In(this.tracking, this.payfacContext.paymentRequest);
|
|
50866
50886
|
this.tracking.processingPayment(
|
|
50867
50887
|
this.state.binData.installment.type,
|
|
50868
50888
|
this.paymentInput,
|
|
@@ -50871,18 +50891,17 @@ let eo = class t extends Ze {
|
|
|
50871
50891
|
);
|
|
50872
50892
|
}
|
|
50873
50893
|
getPaymentsPaymentResult() {
|
|
50874
|
-
var l, c, u, h, p, f
|
|
50894
|
+
var d, l, c, u, h, p, f;
|
|
50875
50895
|
const e = this.payfacContext.paymentRequest, n = this.state.paymentResponse;
|
|
50876
50896
|
if (!e)
|
|
50877
50897
|
return;
|
|
50878
|
-
const r = (
|
|
50898
|
+
const r = (l = (d = n == null ? void 0 : n.data) == null ? void 0 : d.payment_input) != null ? l : "unknown", s = (h = (u = (c = this.state.binData) == null ? void 0 : c.installment) == null ? void 0 : u.type) != null ? h : "unknown", i = (p = e.payment_type) != null ? p : "unknown", o = (f = n == null ? void 0 : n.data) == null ? void 0 : f.status.name, { paymentinputsavailable: a } = In(this.tracking, e);
|
|
50879
50899
|
this.tracking.paymentResult(
|
|
50880
50900
|
r,
|
|
50881
50901
|
s,
|
|
50882
50902
|
i,
|
|
50883
|
-
|
|
50884
|
-
o
|
|
50885
|
-
a
|
|
50903
|
+
a != null ? a : "unknown",
|
|
50904
|
+
o
|
|
50886
50905
|
);
|
|
50887
50906
|
}
|
|
50888
50907
|
directPaymentTokenized() {
|
|
@@ -55953,13 +55972,13 @@ const SX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
55953
55972
|
__proto__: null,
|
|
55954
55973
|
default: u_
|
|
55955
55974
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
55956
|
-
function
|
|
55975
|
+
function an(t) {
|
|
55957
55976
|
"@babel/helpers - typeof";
|
|
55958
|
-
return
|
|
55977
|
+
return an = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
55959
55978
|
return typeof e;
|
|
55960
55979
|
} : function(e) {
|
|
55961
55980
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
55962
|
-
},
|
|
55981
|
+
}, an(t);
|
|
55963
55982
|
}
|
|
55964
55983
|
var to = Uint8Array, Gs = Uint16Array, p_ = Int32Array, h_ = new to([
|
|
55965
55984
|
0,
|
|
@@ -59268,7 +59287,7 @@ function Rf(t) {
|
|
|
59268
59287
|
e.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), t.dispatchEvent(e);
|
|
59269
59288
|
}
|
|
59270
59289
|
}
|
|
59271
|
-
var jd = wt.saveAs || ((typeof window == "undefined" ? "undefined" :
|
|
59290
|
+
var jd = wt.saveAs || ((typeof window == "undefined" ? "undefined" : an(window)) !== "object" || window !== wt ? function() {
|
|
59272
59291
|
} : typeof HTMLAnchorElement != "undefined" && "download" in HTMLAnchorElement.prototype ? function(t, e, n) {
|
|
59273
59292
|
var r = wt.URL || wt.webkitURL, s = document.createElement("a");
|
|
59274
59293
|
e = e || t.name || "download", s.download = e, s.rel = "noopener", typeof t == "string" ? (s.href = t, s.origin !== location.origin ? MB(s.href) ? Lb(t, e, n) : Rf(s, s.target = "_blank") : Rf(s)) : (s.href = r.createObjectURL(t), setTimeout(function() {
|
|
@@ -59288,13 +59307,13 @@ var jd = wt.saveAs || ((typeof window == "undefined" ? "undefined" : on(window))
|
|
|
59288
59307
|
}
|
|
59289
59308
|
else
|
|
59290
59309
|
navigator.msSaveOrOpenBlob(function(s, i) {
|
|
59291
|
-
return i === void 0 ? i = { autoBom: !1 } :
|
|
59310
|
+
return i === void 0 ? i = { autoBom: !1 } : an(i) !== "object" && (hn.warn("Deprecated: Expected third argument to be a object"), i = { autoBom: !i }), i.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(s.type) ? new Blob([String.fromCharCode(65279), s], { type: s.type }) : s;
|
|
59292
59311
|
}(t, n), e);
|
|
59293
59312
|
} : function(t, e, n, r) {
|
|
59294
59313
|
if ((r = r || open("", "_blank")) && (r.document.title = r.document.body.innerText = "downloading..."), typeof t == "string")
|
|
59295
59314
|
return Lb(t, e, n);
|
|
59296
59315
|
var s = t.type === "application/octet-stream", i = /constructor/i.test(wt.HTMLElement) || wt.safari, o = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
59297
|
-
if ((o || s && i) && (typeof FileReader == "undefined" ? "undefined" :
|
|
59316
|
+
if ((o || s && i) && (typeof FileReader == "undefined" ? "undefined" : an(FileReader)) === "object") {
|
|
59298
59317
|
var a = new FileReader();
|
|
59299
59318
|
a.onloadend = function() {
|
|
59300
59319
|
var c = a.result;
|
|
@@ -59464,7 +59483,7 @@ function yA(t) {
|
|
|
59464
59483
|
return e;
|
|
59465
59484
|
}
|
|
59466
59485
|
function KB(t) {
|
|
59467
|
-
if (
|
|
59486
|
+
if (an(t) !== "object")
|
|
59468
59487
|
throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");
|
|
59469
59488
|
var e = {};
|
|
59470
59489
|
this.subscribe = function(n, r, s) {
|
|
@@ -59519,7 +59538,7 @@ function _A(t, e, n, r, s) {
|
|
|
59519
59538
|
}
|
|
59520
59539
|
function pt(t) {
|
|
59521
59540
|
var e, n = typeof arguments[0] == "string" ? arguments[0] : "p", r = arguments[1], s = arguments[2], i = arguments[3], o = [], a = 1, d = 16, l = "S", c = null;
|
|
59522
|
-
|
|
59541
|
+
an(t = t || {}) === "object" && (n = t.orientation, r = t.unit || r, s = t.format || s, i = t.compress || t.compressPdf || i, (c = t.encryption || null) !== null && (c.userPassword = c.userPassword || "", c.ownerPassword = c.ownerPassword || "", c.userPermissions = c.userPermissions || []), a = typeof t.userUnit == "number" ? Math.abs(t.userUnit) : 1, t.precision !== void 0 && (e = t.precision), t.floatPrecision !== void 0 && (d = t.floatPrecision), l = t.defaultPathOperation || "S"), o = t.filters || (i === !0 ? ["FlateEncode"] : o), r = r || "mm", n = ("" + (n || "P")).toLowerCase();
|
|
59523
59542
|
var u = t.putOnlyUsedFonts || !1, h = {}, p = { internal: {}, __private__: {} };
|
|
59524
59543
|
p.__private__.PubSub = KB;
|
|
59525
59544
|
var f = "1.3", m = p.__private__.getPdfVersion = function() {
|
|
@@ -59865,7 +59884,7 @@ function pt(t) {
|
|
|
59865
59884
|
}
|
|
59866
59885
|
if (te === void 0 || je === void 0 && J === te && te === ce)
|
|
59867
59886
|
I = typeof J == "string" ? J + " " + Le[0] : y.precision === 2 ? U(J / 255) + " " + Le[0] : Q(J / 255) + " " + Le[0];
|
|
59868
|
-
else if (je === void 0 ||
|
|
59887
|
+
else if (je === void 0 || an(je) === "object") {
|
|
59869
59888
|
if (je && !isNaN(je.a) && je.a === 0)
|
|
59870
59889
|
return ["1.", "1.", "1.", Le[1]].join(" ");
|
|
59871
59890
|
I = typeof J == "string" ? [J, te, ce, Le[1]].join(" ") : y.precision === 2 ? [U(J / 255), U(te / 255), U(ce / 255), Le[1]].join(" ") : [Q(J / 255), Q(te / 255), Q(ce / 255), Le[1]].join(" ");
|
|
@@ -59891,14 +59910,14 @@ function pt(t) {
|
|
|
59891
59910
|
vt.push({ key: "Filter", value: "[" + Ut + "]" });
|
|
59892
59911
|
for (var Jt = 0; Jt < vt.length; Jt += 1)
|
|
59893
59912
|
if (vt[Jt].key === "DecodeParms") {
|
|
59894
|
-
for (var
|
|
59895
|
-
|
|
59896
|
-
|
|
59913
|
+
for (var Tn = [], ir = 0; ir < dt.reverseChain.split("/").length - 1; ir += 1)
|
|
59914
|
+
Tn.push("null");
|
|
59915
|
+
Tn.push(vt[Jt].value), vt[Jt].value = "[" + Tn.join(" ") + "]";
|
|
59897
59916
|
}
|
|
59898
59917
|
}
|
|
59899
59918
|
Z("<<");
|
|
59900
|
-
for (var
|
|
59901
|
-
Z("/" + vt[
|
|
59919
|
+
for (var dn = 0; dn < vt.length; dn++)
|
|
59920
|
+
Z("/" + vt[dn].key + " " + vt[dn].value);
|
|
59902
59921
|
Z(">>"), dt.data.length !== 0 && (Z("stream"), Z(rt(dt.data)), Z("endstream"));
|
|
59903
59922
|
}, sd = p.__private__.putPage = function(y) {
|
|
59904
59923
|
var I = y.number, J = y.data, te = y.objId, ce = y.contentsObjId;
|
|
@@ -59938,13 +59957,13 @@ Q`), Ir(ce, !0), oi({ data: je, filters: Fi(), objectId: ce }), Z("endobj"), te;
|
|
|
59938
59957
|
Le.unshift(Jt);
|
|
59939
59958
|
}
|
|
59940
59959
|
if (Le[Le.length - 1].offset != 1) {
|
|
59941
|
-
var
|
|
59942
|
-
Le.push(
|
|
59960
|
+
var Tn = { offset: 1, color: Le[Le.length - 1].color };
|
|
59961
|
+
Le.push(Tn);
|
|
59943
59962
|
}
|
|
59944
|
-
for (var ir = "",
|
|
59945
|
-
for (dt = vt[pr]; dt > Le[
|
|
59946
|
-
|
|
59947
|
-
var or = Le[
|
|
59963
|
+
for (var ir = "", dn = 0, pr = 0; pr < vt.length; pr++) {
|
|
59964
|
+
for (dt = vt[pr]; dt > Le[dn + 1].offset; )
|
|
59965
|
+
dn++;
|
|
59966
|
+
var or = Le[dn].offset, Tr = (dt - or) / (Le[dn + 1].offset - or), ra = Le[dn].color, Ga = Le[dn + 1].color;
|
|
59948
59967
|
ir += ee(Math.round((1 - Tr) * ra[0] + Tr * Ga[0]).toString(16)) + ee(Math.round((1 - Tr) * ra[1] + Tr * Ga[1]).toString(16)) + ee(Math.round((1 - Tr) * ra[2] + Tr * Ga[2]).toString(16));
|
|
59949
59968
|
}
|
|
59950
59969
|
return ir.trim();
|
|
@@ -60003,7 +60022,7 @@ Q`), Ir(ce, !0), oi({ data: je, filters: Fi(), objectId: ce }), Z("endobj"), te;
|
|
|
60003
60022
|
return $t.publish("addFont", { font: je, instance: this }), At[je.id] = je, tg(je), je.id;
|
|
60004
60023
|
}, ai = p.__private__.pdfEscape = p.pdfEscape = function(y, I) {
|
|
60005
60024
|
return function(J, te) {
|
|
60006
|
-
var ce, je, Le, rt, dt, vt, Ut, Jt,
|
|
60025
|
+
var ce, je, Le, rt, dt, vt, Ut, Jt, Tn;
|
|
60007
60026
|
if (Le = (te = te || {}).sourceEncoding || "Unicode", dt = te.outputEncoding, (te.autoencode || dt) && At[Ve].metadata && At[Ve].metadata[Le] && At[Ve].metadata[Le].encoding && (rt = At[Ve].metadata[Le].encoding, !dt && At[Ve].encoding && (dt = At[Ve].encoding), !dt && rt.codePages && (dt = rt.codePages[0]), typeof dt == "string" && (dt = rt[dt]), dt)) {
|
|
60008
60027
|
for (Ut = !1, vt = [], ce = 0, je = J.length; ce < je; ce++)
|
|
60009
60028
|
(Jt = dt[J.charCodeAt(ce)]) ? vt.push(String.fromCharCode(Jt)) : vt.push(J[ce]), vt[ce].charCodeAt(0) >> 8 && (Ut = !0);
|
|
@@ -60014,9 +60033,9 @@ Q`), Ir(ce, !0), oi({ data: je, filters: Fi(), objectId: ce }), Z("endobj"), te;
|
|
|
60014
60033
|
if (!Ut)
|
|
60015
60034
|
return J;
|
|
60016
60035
|
for (vt = te.noBOM ? [] : [254, 255], ce = 0, je = J.length; ce < je; ce++) {
|
|
60017
|
-
if ((
|
|
60036
|
+
if ((Tn = (Jt = J.charCodeAt(ce)) >> 8) >> 8)
|
|
60018
60037
|
throw new Error("Character at position " + ce + " of string '" + J + "' exceeds 16bits. Cannot be encoded into UCS-2 BE");
|
|
60019
|
-
vt.push(
|
|
60038
|
+
vt.push(Tn), vt.push(Jt - (Tn << 8));
|
|
60020
60039
|
}
|
|
60021
60040
|
return String.fromCharCode.apply(void 0, vt);
|
|
60022
60041
|
}(y, I).replace(/\\/g, "\\\\").replace(/\(/g, "\\(").replace(/\)/g, "\\)");
|
|
@@ -60170,9 +60189,9 @@ Q`), Ir(ce, !0), oi({ data: je, filters: Fi(), objectId: ce }), Z("endobj"), te;
|
|
|
60170
60189
|
case "dataurlnewwindow":
|
|
60171
60190
|
if (Object.prototype.toString.call(wt) !== "[object Window]")
|
|
60172
60191
|
throw new Error("The option dataurlnewwindow just works in a browser-environment.");
|
|
60173
|
-
var Jt = '<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="' + this.output("datauristring", I) + '"></iframe></body></html>',
|
|
60174
|
-
if (
|
|
60175
|
-
return
|
|
60192
|
+
var Jt = '<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="' + this.output("datauristring", I) + '"></iframe></body></html>', Tn = wt.open();
|
|
60193
|
+
if (Tn !== null && (Tn.document.write(Jt), Tn.document.title = I.filename), Tn || typeof safari == "undefined")
|
|
60194
|
+
return Tn;
|
|
60176
60195
|
break;
|
|
60177
60196
|
case "datauri":
|
|
60178
60197
|
case "dataurl":
|
|
@@ -60262,16 +60281,16 @@ Q`), Ir(ce, !0), oi({ data: je, filters: Fi(), objectId: ce }), Z("endobj"), te;
|
|
|
60262
60281
|
}, p.deletePage = function() {
|
|
60263
60282
|
return Su.apply(this, arguments), this;
|
|
60264
60283
|
}, p.__private__.text = p.text = function(y, I, J, te, ce) {
|
|
60265
|
-
var je, Le, rt, dt, vt, Ut, Jt,
|
|
60284
|
+
var je, Le, rt, dt, vt, Ut, Jt, Tn, ir, dn = (te = te || {}).scope || this;
|
|
60266
60285
|
if (typeof y == "number" && typeof I == "number" && (typeof J == "string" || Array.isArray(J))) {
|
|
60267
60286
|
var pr = J;
|
|
60268
60287
|
J = I, I = y, y = pr;
|
|
60269
60288
|
}
|
|
60270
|
-
if (arguments[3] instanceof yt == 0 ? (rt = arguments[4], dt = arguments[5],
|
|
60289
|
+
if (arguments[3] instanceof yt == 0 ? (rt = arguments[4], dt = arguments[5], an(Jt = arguments[3]) === "object" && Jt !== null || (typeof rt == "string" && (dt = rt, rt = null), typeof Jt == "string" && (dt = Jt, Jt = null), typeof Jt == "number" && (rt = Jt, Jt = null), te = { flags: Jt, angle: rt, align: dt })) : (D("The transform parameter of text() with a Matrix value"), ir = ce), isNaN(I) || isNaN(J) || y == null)
|
|
60271
60290
|
throw new Error("Invalid arguments passed to jsPDF.text");
|
|
60272
60291
|
if (y.length === 0)
|
|
60273
|
-
return
|
|
60274
|
-
var or, Tr = "", ra = typeof te.lineHeightFactor == "number" ? te.lineHeightFactor : dd, Ga =
|
|
60292
|
+
return dn;
|
|
60293
|
+
var or, Tr = "", ra = typeof te.lineHeightFactor == "number" ? te.lineHeightFactor : dd, Ga = dn.internal.scaleFactor;
|
|
60275
60294
|
function T1(bn) {
|
|
60276
60295
|
return bn = bn.split(" ").join(Array(te.TabLen || 9).join(" ")), ai(bn, Jt);
|
|
60277
60296
|
}
|
|
@@ -60304,7 +60323,7 @@ Q`), Ir(ce, !0), oi({ data: je, filters: Fi(), objectId: ce }), Z("endobj"), te;
|
|
|
60304
60323
|
if (Di === !1)
|
|
60305
60324
|
throw new Error('Type of text must be string or Array. "' + y + '" is not recognized.');
|
|
60306
60325
|
typeof y == "string" && (y = y.match(/[\r?\n]/) ? y.split(/\r\n|\r|\n/g) : [y]);
|
|
60307
|
-
var sa = _ /
|
|
60326
|
+
var sa = _ / dn.internal.scaleFactor, ia = sa * (ra - 1);
|
|
60308
60327
|
switch (te.baseline) {
|
|
60309
60328
|
case "bottom":
|
|
60310
60329
|
J -= ia;
|
|
@@ -60318,8 +60337,8 @@ Q`), Ir(ce, !0), oi({ data: je, filters: Fi(), objectId: ce }), Z("endobj"), te;
|
|
|
60318
60337
|
case "middle":
|
|
60319
60338
|
J += sa / 2 - ia;
|
|
60320
60339
|
}
|
|
60321
|
-
if ((Ut = te.maxWidth || 0) > 0 && (typeof y == "string" ? y =
|
|
60322
|
-
return bn.concat(
|
|
60340
|
+
if ((Ut = te.maxWidth || 0) > 0 && (typeof y == "string" ? y = dn.splitTextToSize(y, Ut) : Object.prototype.toString.call(y) === "[object Array]" && (y = y.reduce(function(bn, vn) {
|
|
60341
|
+
return bn.concat(dn.splitTextToSize(vn, Ut));
|
|
60323
60342
|
}, []))), je = { text: y, x: I, y: J, options: te, mutex: { pdfEscape: ai, activeFontKey: Ve, fonts: At, activeFontSize: _ } }, $t.publish("preProcessText", je), y = je.text, rt = (te = je.options).angle, ir instanceof yt == 0 && rt && typeof rt == "number") {
|
|
60324
60343
|
rt *= Math.PI / 180, te.rotationDirection === 0 && (rt = -rt), E === k && (rt = -rt);
|
|
60325
60344
|
var Lc = Math.cos(rt), Mu = Math.sin(rt);
|
|
@@ -60327,9 +60346,9 @@ Q`), Ir(ce, !0), oi({ data: je, filters: Fi(), objectId: ce }), Z("endobj"), te;
|
|
|
60327
60346
|
} else
|
|
60328
60347
|
rt && rt instanceof yt && (ir = rt);
|
|
60329
60348
|
E !== k || ir || (ir = $o), (vt = te.charSpace || Pc) !== void 0 && (Tr += K(X(vt)) + ` Tc
|
|
60330
|
-
`, this.setCharSpace(this.getCharSpace() || 0)), (
|
|
60349
|
+
`, this.setCharSpace(this.getCharSpace() || 0)), (Tn = te.horizontalScale) !== void 0 && (Tr += K(100 * Tn) + ` Tz
|
|
60331
60350
|
`), te.lang;
|
|
60332
|
-
var ss = -1, ug = te.renderingMode !== void 0 ? te.renderingMode : te.stroke, Qc =
|
|
60351
|
+
var ss = -1, ug = te.renderingMode !== void 0 ? te.renderingMode : te.stroke, Qc = dn.internal.getCurrentPageInfo().pageContext;
|
|
60333
60352
|
switch (ug) {
|
|
60334
60353
|
case 0:
|
|
60335
60354
|
case !1:
|
|
@@ -60369,10 +60388,10 @@ Q`), Ir(ce, !0), oi({ data: je, filters: Fi(), objectId: ce }), Z("endobj"), te;
|
|
|
60369
60388
|
ss !== -1 ? Tr += ss + ` Tr
|
|
60370
60389
|
` : pg !== -1 && (Tr += `0 Tr
|
|
60371
60390
|
`), ss !== -1 && (Qc.usedRenderingMode = ss), dt = te.align || "left";
|
|
60372
|
-
var hr, li = _ * ra, zu =
|
|
60391
|
+
var hr, li = _ * ra, zu = dn.internal.pageSize.getWidth(), Hu = At[Ve];
|
|
60373
60392
|
vt = te.charSpace || Pc, Ut = te.maxWidth || 0, Jt = Object.assign({ autoencode: !0, noBOM: !0 }, te.flags);
|
|
60374
60393
|
var Ya = [], Mc = function(bn) {
|
|
60375
|
-
return
|
|
60394
|
+
return dn.getStringUnitWidth(bn, { font: Hu, charSpace: vt, fontSize: _, doKerning: !1 }) * _ / Ga;
|
|
60376
60395
|
};
|
|
60377
60396
|
if (Object.prototype.toString.call(y) === "[object Array]") {
|
|
60378
60397
|
var _s;
|
|
@@ -60442,7 +60461,7 @@ T* `) : y.join(` Tj
|
|
|
60442
60461
|
return wo += Ve + " " + _ + ` Tf
|
|
60443
60462
|
`, wo += K(_ * ra) + ` TL
|
|
60444
60463
|
`, wo += cd + `
|
|
60445
|
-
`, wo += Tr, wo += y, Z(wo += "ET"), h[Ve] = !0,
|
|
60464
|
+
`, wo += Tr, wo += y, Z(wo += "ET"), h[Ve] = !0, dn;
|
|
60446
60465
|
};
|
|
60447
60466
|
var y1 = p.__private__.clip = p.clip = function(y) {
|
|
60448
60467
|
return Z(y === "evenodd" ? "W*" : "W"), this;
|
|
@@ -60495,7 +60514,7 @@ T* `) : y.join(` Tj
|
|
|
60495
60514
|
return Ka("B*", y), this;
|
|
60496
60515
|
};
|
|
60497
60516
|
var Ka = function(y, I) {
|
|
60498
|
-
|
|
60517
|
+
an(I) === "object" ? v1(I, y) : Z(y);
|
|
60499
60518
|
}, Tu = function(y) {
|
|
60500
60519
|
y === null || E === k && y === void 0 || (y = dg(y), Z(y));
|
|
60501
60520
|
};
|
|
@@ -60539,11 +60558,11 @@ T* `) : y.join(` Tj
|
|
|
60539
60558
|
throw new Error("Invalid arguments passed to jsPDF.line");
|
|
60540
60559
|
return E === B ? this.lines([[J - y, te - I]], y, I, [1, 1], ce || "S") : this.lines([[J - y, te - I]], y, I, [1, 1]).stroke();
|
|
60541
60560
|
}, p.__private__.lines = p.lines = function(y, I, J, te, ce, je) {
|
|
60542
|
-
var Le, rt, dt, vt, Ut, Jt,
|
|
60561
|
+
var Le, rt, dt, vt, Ut, Jt, Tn, ir, dn, pr, or, Tr;
|
|
60543
60562
|
if (typeof y == "number" && (Tr = J, J = I, I = y, y = Tr), te = te || [1, 1], je = je || !1, isNaN(I) || isNaN(J) || !Array.isArray(y) || !Array.isArray(te) || !fo(ce) || typeof je != "boolean")
|
|
60544
60563
|
throw new Error("Invalid arguments passed to jsPDF.lines");
|
|
60545
60564
|
for (Uu(I, J), Le = te[0], rt = te[1], vt = y.length, pr = I, or = J, dt = 0; dt < vt; dt++)
|
|
60546
|
-
(Ut = y[dt]).length === 2 ? (pr = Ut[0] * Le + pr, or = Ut[1] * rt + or, ld(pr, or)) : (Jt = Ut[0] * Le + pr,
|
|
60565
|
+
(Ut = y[dt]).length === 2 ? (pr = Ut[0] * Le + pr, or = Ut[1] * rt + or, ld(pr, or)) : (Jt = Ut[0] * Le + pr, Tn = Ut[1] * rt + or, ir = Ut[2] * Le + pr, dn = Ut[3] * rt + or, pr = Ut[4] * Le + pr, or = Ut[5] * rt + or, Va(Jt, Tn, ir, dn, pr, or));
|
|
60547
60566
|
return je && cg(), Tu(ce), this;
|
|
60548
60567
|
}, p.path = function(y) {
|
|
60549
60568
|
for (var I = 0; I < y.length; I++) {
|
|
@@ -60842,7 +60861,7 @@ mA.prototype.lsbFirstWord = function(t) {
|
|
|
60842
60861
|
};
|
|
60843
60862
|
}, u0.prototype.equals = function(t) {
|
|
60844
60863
|
var e, n = "id,objectNumber,equals";
|
|
60845
|
-
if (!t ||
|
|
60864
|
+
if (!t || an(t) !== an(this))
|
|
60846
60865
|
return !1;
|
|
60847
60866
|
var r = 0;
|
|
60848
60867
|
for (e in this)
|
|
@@ -61034,7 +61053,7 @@ var js = function(t, e) {
|
|
|
61034
61053
|
for (var o in r || (s.internal.newObjectDeferredBegin(s.internal.acroformPlugin.acroFormDictionaryRoot.objId, !0), s.internal.acroformPlugin.acroFormDictionaryRoot.putStream()), r = r || s.internal.acroformPlugin.acroFormDictionaryRoot.Kids)
|
|
61035
61054
|
if (r.hasOwnProperty(o)) {
|
|
61036
61055
|
var a = r[o], d = [], l = a.Rect;
|
|
61037
|
-
if (a.Rect && (a.Rect = tte(a.Rect, s)), s.internal.newObjectDeferredBegin(a.objId, !0), a.DA = nt.createDefaultAppearanceStream(a),
|
|
61056
|
+
if (a.Rect && (a.Rect = tte(a.Rect, s)), s.internal.newObjectDeferredBegin(a.objId, !0), a.DA = nt.createDefaultAppearanceStream(a), an(a) === "object" && typeof a.getKeyValueListForStream == "function" && (d = a.getKeyValueListForStream()), a.Rect = l, a.hasAppearanceStream && !a.appearanceStreamContent) {
|
|
61038
61057
|
var c = nte(a);
|
|
61039
61058
|
d.push({ key: "AP", value: "<</N " + c + ">>" }), s.internal.acroformPlugin.xForms.push(c);
|
|
61040
61059
|
}
|
|
@@ -61062,7 +61081,7 @@ var js = function(t, e) {
|
|
|
61062
61081
|
for (var v in m)
|
|
61063
61082
|
if (m.hasOwnProperty(v)) {
|
|
61064
61083
|
var B = v, k = m[v];
|
|
61065
|
-
w.internal.newObjectDeferredBegin(k.objId, !0),
|
|
61084
|
+
w.internal.newObjectDeferredBegin(k.objId, !0), an(k) === "object" && typeof k.putStream == "function" && k.putStream(), delete m[B];
|
|
61066
61085
|
}
|
|
61067
61086
|
}(s.internal.acroformPlugin.xForms, s);
|
|
61068
61087
|
})(n, t);
|
|
@@ -61074,7 +61093,7 @@ var js = function(t, e) {
|
|
|
61074
61093
|
};
|
|
61075
61094
|
if (Array.isArray(t)) {
|
|
61076
61095
|
for (var s = "[", i = 0; i < t.length; i++)
|
|
61077
|
-
switch (i !== 0 && (s += " "),
|
|
61096
|
+
switch (i !== 0 && (s += " "), an(t[i])) {
|
|
61078
61097
|
case "boolean":
|
|
61079
61098
|
case "number":
|
|
61080
61099
|
case "object":
|
|
@@ -61463,7 +61482,7 @@ var kr = function() {
|
|
|
61463
61482
|
`);
|
|
61464
61483
|
}
|
|
61465
61484
|
}, set: function(n) {
|
|
61466
|
-
|
|
61485
|
+
an(n) === "object" && (e = n);
|
|
61467
61486
|
} }), Object.defineProperty(this, "caption", { enumerable: !0, configurable: !0, get: function() {
|
|
61468
61487
|
return e.CA || "";
|
|
61469
61488
|
}, set: function(n) {
|
|
@@ -61516,7 +61535,7 @@ var p0 = function() {
|
|
|
61516
61535
|
return o.push(">>"), o.join(`
|
|
61517
61536
|
`);
|
|
61518
61537
|
}, set: function(s) {
|
|
61519
|
-
|
|
61538
|
+
an(s) === "object" && (r = s);
|
|
61520
61539
|
} }), Object.defineProperty(this, "caption", { enumerable: !0, configurable: !0, get: function() {
|
|
61521
61540
|
return r.CA || "";
|
|
61522
61541
|
}, set: function(s) {
|
|
@@ -61676,10 +61695,10 @@ nt.internal = { Bezier_C: 0.551915024494, calculateCross: function(t) {
|
|
|
61676
61695
|
return { x1: { x: (e - r) / 2, y: (n - r) / 2 + r }, x2: { x: (e - r) / 2 + r, y: (n - r) / 2 }, x3: { x: (e - r) / 2, y: (n - r) / 2 }, x4: { x: (e - r) / 2 + r, y: (n - r) / 2 + r } };
|
|
61677
61696
|
} }, nt.internal.getWidth = function(t) {
|
|
61678
61697
|
var e = 0;
|
|
61679
|
-
return
|
|
61698
|
+
return an(t) === "object" && (e = VB(t.Rect[2])), e;
|
|
61680
61699
|
}, nt.internal.getHeight = function(t) {
|
|
61681
61700
|
var e = 0;
|
|
61682
|
-
return
|
|
61701
|
+
return an(t) === "object" && (e = VB(t.Rect[3])), e;
|
|
61683
61702
|
};
|
|
61684
61703
|
var ote = On.addField = function(t) {
|
|
61685
61704
|
if (ite(this, t), !(t instanceof co))
|
|
@@ -61765,7 +61784,7 @@ function oI(t) {
|
|
|
61765
61784
|
}, u = function(U) {
|
|
61766
61785
|
return typeof t["process" + U.toUpperCase()] == "function";
|
|
61767
61786
|
}, h = function(U) {
|
|
61768
|
-
return
|
|
61787
|
+
return an(U) === "object" && U.nodeType === 1;
|
|
61769
61788
|
}, p = function(U, Q) {
|
|
61770
61789
|
if (U.nodeName === "IMG" && U.hasAttribute("src")) {
|
|
61771
61790
|
var X = "" + U.getAttribute("src");
|
|
@@ -61846,7 +61865,7 @@ function oI(t) {
|
|
|
61846
61865
|
};
|
|
61847
61866
|
t.addImage = function() {
|
|
61848
61867
|
var U, Q, X, $, Ae, be, ve, pe, Ce;
|
|
61849
|
-
if (typeof arguments[1] == "number" ? (Q = n, X = arguments[1], $ = arguments[2], Ae = arguments[3], be = arguments[4], ve = arguments[5], pe = arguments[6], Ce = arguments[7]) : (Q = arguments[1], X = arguments[2], $ = arguments[3], Ae = arguments[4], be = arguments[5], ve = arguments[6], pe = arguments[7], Ce = arguments[8]),
|
|
61868
|
+
if (typeof arguments[1] == "number" ? (Q = n, X = arguments[1], $ = arguments[2], Ae = arguments[3], be = arguments[4], ve = arguments[5], pe = arguments[6], Ce = arguments[7]) : (Q = arguments[1], X = arguments[2], $ = arguments[3], Ae = arguments[4], be = arguments[5], ve = arguments[6], pe = arguments[7], Ce = arguments[8]), an(U = arguments[0]) === "object" && !h(U) && "imageData" in U) {
|
|
61850
61869
|
var fe = U;
|
|
61851
61870
|
U = fe.imageData, Q = fe.format || Q || n, X = fe.x || X || 0, $ = fe.y || $ || 0, Ae = fe.w || fe.width || Ae, be = fe.h || fe.height || be, ve = fe.alias || ve, pe = fe.compression || pe, Ce = fe.rotation || fe.angle || Ce;
|
|
61852
61871
|
}
|
|
@@ -62204,7 +62223,7 @@ function(t) {
|
|
|
62204
62223
|
B = v = Object.keys(c[0]), k = v.map(function() {
|
|
62205
62224
|
return "left";
|
|
62206
62225
|
});
|
|
62207
|
-
else if (Array.isArray(u) &&
|
|
62226
|
+
else if (Array.isArray(u) && an(u[0]) === "object")
|
|
62208
62227
|
for (v = u.map(function(fe) {
|
|
62209
62228
|
return fe.name;
|
|
62210
62229
|
}), B = u.map(function(fe) {
|
|
@@ -63338,7 +63357,7 @@ function d6(t) {
|
|
|
63338
63357
|
g != null && (g.X = null), A.vb = null, e(A != null);
|
|
63339
63358
|
}
|
|
63340
63359
|
function sd() {
|
|
63341
|
-
var A = new
|
|
63360
|
+
var A = new Tn();
|
|
63342
63361
|
return A == null ? null : (A.a = 0, A.xb = Z_, Mt("Predictor", "VP8LPredictors"), Mt("Predictor", "VP8LPredictors_C"), Mt("PredictorAdd", "VP8LPredictorsAdd"), Mt("PredictorAdd", "VP8LPredictorsAdd_C"), zc = lt, oa = ft, Vu = tn, Ds = Yt, wo = At, bn = St, vn = An, D.VP8LMapColor32b = Hc, D.VP8LMapColor8b = fd, A);
|
|
63343
63362
|
}
|
|
63344
63363
|
function go(A, g, b, x, S) {
|
|
@@ -63981,27 +64000,27 @@ function d6(t) {
|
|
|
63981
64000
|
function Jt() {
|
|
63982
64001
|
this.ua = 0, this.Wa = new Et(), this.vb = new Et(), this.md = this.xc = this.wc = 0, this.vc = [], this.Wb = 0, this.Ya = new Ae(), this.yc = new X();
|
|
63983
64002
|
}
|
|
63984
|
-
function
|
|
64003
|
+
function Tn() {
|
|
63985
64004
|
this.xb = this.a = 0, this.l = new Fc(), this.ca = new un(), this.V = [], this.Ba = 0, this.Ta = [], this.Ua = 0, this.m = new z(), this.Pb = 0, this.wd = new z(), this.Ma = this.$ = this.C = this.i = this.c = this.xd = 0, this.s = new Jt(), this.ab = 0, this.gc = o(4, Ut), this.Oc = 0;
|
|
63986
64005
|
}
|
|
63987
64006
|
function ir() {
|
|
63988
64007
|
this.Lc = this.Z = this.$a = this.i = this.c = 0, this.l = new Fc(), this.ic = 0, this.ca = [], this.tb = 0, this.qd = null, this.rd = 0;
|
|
63989
64008
|
}
|
|
63990
|
-
function
|
|
64009
|
+
function dn(A, g, b, x, S, j, F) {
|
|
63991
64010
|
for (A = A == null ? 0 : A[g + 0], g = 0; g < F; ++g)
|
|
63992
64011
|
S[j + g] = A + b[x + g] & 255, A = S[j + g];
|
|
63993
64012
|
}
|
|
63994
64013
|
function pr(A, g, b, x, S, j, F) {
|
|
63995
64014
|
var P;
|
|
63996
64015
|
if (A == null)
|
|
63997
|
-
|
|
64016
|
+
dn(null, null, b, x, S, j, F);
|
|
63998
64017
|
else
|
|
63999
64018
|
for (P = 0; P < F; ++P)
|
|
64000
64019
|
S[j + P] = A[g + P] + b[x + P] & 255;
|
|
64001
64020
|
}
|
|
64002
64021
|
function or(A, g, b, x, S, j, F) {
|
|
64003
64022
|
if (A == null)
|
|
64004
|
-
|
|
64023
|
+
dn(null, null, b, x, S, j, F);
|
|
64005
64024
|
else {
|
|
64006
64025
|
var P, M = A[g + 0], V = M, oe = M;
|
|
64007
64026
|
for (P = 0; P < F; ++P)
|
|
@@ -64018,7 +64037,7 @@ function d6(t) {
|
|
|
64018
64037
|
if (A.ga = new ir(), (F = A.ga == null) || (F = g.width * g.o, e(A.Gb.length == 0), A.Gb = i(F), A.Uc = 0, A.Gb == null ? F = 0 : (A.mb = A.Gb, A.nb = A.Uc, A.rc = null, F = 1), F = !F), !F) {
|
|
64019
64038
|
F = A.ga;
|
|
64020
64039
|
var P = A.Fa, M = A.P, V = A.qc, oe = A.mb, ye = A.nb, G = M + 1, ae = V - 1, he = F.l;
|
|
64021
|
-
if (e(P != null && oe != null && g != null), $a[0] = null, $a[1] =
|
|
64040
|
+
if (e(P != null && oe != null && g != null), $a[0] = null, $a[1] = dn, $a[2] = pr, $a[3] = or, F.ca = oe, F.tb = ye, F.c = g.width, F.i = g.height, e(0 < F.c && 0 < F.i), 1 >= V)
|
|
64022
64041
|
g = 0;
|
|
64023
64042
|
else if (F.$a = 3 & P[M + 0], F.Z = P[M + 0] >> 2 & 3, F.Lc = P[M + 0] >> 4 & 3, M = P[M + 0] >> 6 & 3, 0 > F.$a || 1 < F.$a || 4 <= F.Z || 1 < F.Lc || M)
|
|
64024
64043
|
g = 0;
|
|
@@ -65137,7 +65156,7 @@ function d6(t) {
|
|
|
65137
65156
|
}, u.prototype.closePath = function() {
|
|
65138
65157
|
var T = new o(0, 0), z = 0;
|
|
65139
65158
|
for (z = this.path.length - 1; z !== -1; z--)
|
|
65140
|
-
if (this.path[z].type === "begin" &&
|
|
65159
|
+
if (this.path[z].type === "begin" && an(this.path[z + 1]) === "object" && typeof this.path[z + 1].x == "number") {
|
|
65141
65160
|
T = new o(this.path[z + 1].x, this.path[z + 1].y);
|
|
65142
65161
|
break;
|
|
65143
65162
|
}
|
|
@@ -65668,7 +65687,7 @@ function(t) {
|
|
|
65668
65687
|
});
|
|
65669
65688
|
}
|
|
65670
65689
|
var r = function(a) {
|
|
65671
|
-
var d =
|
|
65690
|
+
var d = an(a);
|
|
65672
65691
|
return d === "undefined" ? "undefined" : d === "string" || a instanceof String ? "string" : d === "number" || a instanceof Number ? "number" : d === "function" || a instanceof Function ? "function" : a && a.constructor === Array ? "array" : a && a.nodeType === 1 ? "element" : d === "object" ? "object" : "unknown";
|
|
65673
65692
|
}, s = function(a, d) {
|
|
65674
65693
|
var l = document.createElement(a);
|
|
@@ -65904,7 +65923,7 @@ function(t) {
|
|
|
65904
65923
|
throw new Error(a);
|
|
65905
65924
|
});
|
|
65906
65925
|
}, o.prototype.using = o.prototype.set, o.prototype.saveAs = o.prototype.save, o.prototype.export = o.prototype.output, o.prototype.run = o.prototype.then, pt.getPageSize = function(a, d, l) {
|
|
65907
|
-
if (
|
|
65926
|
+
if (an(a) === "object") {
|
|
65908
65927
|
var c = a;
|
|
65909
65928
|
a = c.orientation, d = c.unit || d, l = c.format || l;
|
|
65910
65929
|
}
|
|
@@ -66265,7 +66284,7 @@ function(t) {
|
|
|
66265
66284
|
}, dA = pt.API, Nf = dA.getCharWidthsArray = function(t, e) {
|
|
66266
66285
|
var n, r, s = (e = e || {}).font || this.internal.getFont(), i = e.fontSize || this.internal.getFontSize(), o = e.charSpace || this.internal.getCharSpace(), a = e.widths ? e.widths : s.metadata.Unicode.widths, d = a.fof ? a.fof : 1, l = e.kerning ? e.kerning : s.metadata.Unicode.kerning, c = l.fof ? l.fof : 1, u = e.doKerning !== !1, h = 0, p = t.length, f = 0, m = a[0] || d, w = [];
|
|
66267
66286
|
for (n = 0; n < p; n++)
|
|
66268
|
-
r = t.charCodeAt(n), typeof s.metadata.widthOfString == "function" ? w.push((s.metadata.widthOfGlyph(s.metadata.characterToGlyph(r)) + o * (1e3 / i) || 0) / 1e3) : (h = u &&
|
|
66287
|
+
r = t.charCodeAt(n), typeof s.metadata.widthOfString == "function" ? w.push((s.metadata.widthOfGlyph(s.metadata.characterToGlyph(r)) + o * (1e3 / i) || 0) / 1e3) : (h = u && an(l[r]) === "object" && !isNaN(parseInt(l[r][f], 10)) ? l[r][f] / c : 0, w.push((a[r] || m) / d + h)), f = r;
|
|
66269
66288
|
return w;
|
|
66270
66289
|
}, $B = dA.getStringUnitWidth = function(t, e) {
|
|
66271
66290
|
var n = (e = e || {}).fontSize || this.internal.getFontSize(), r = e.font || this.internal.getFont(), s = e.charSpace || this.internal.getCharSpace();
|
|
@@ -66341,8 +66360,8 @@ function(t) {
|
|
|
66341
66360
|
if (p = h[B], isNaN(parseInt(B, 10)) ? f = "'" + B + "'" : (B = parseInt(B, 10), f = (f = o(B).slice(2)).slice(0, -1) + s[f.slice(-1)]), typeof p == "number")
|
|
66342
66361
|
p < 0 ? (m = o(p).slice(3), w = "-") : (m = o(p).slice(2), w = ""), m = w + m.slice(0, -1) + s[m.slice(-1)];
|
|
66343
66362
|
else {
|
|
66344
|
-
if (
|
|
66345
|
-
throw new Error("Don't know what to do with value type " +
|
|
66363
|
+
if (an(p) !== "object")
|
|
66364
|
+
throw new Error("Don't know what to do with value type " + an(p) + ".");
|
|
66346
66365
|
m = a(p);
|
|
66347
66366
|
}
|
|
66348
66367
|
v.push(f + m);
|
|
@@ -66394,7 +66413,7 @@ function(t) {
|
|
|
66394
66413
|
var l = d.getContext("2d");
|
|
66395
66414
|
l.fillStyle = "#fff", l.fillRect(0, 0, d.width, d.height);
|
|
66396
66415
|
var c = { ignoreMouse: !0, ignoreAnimation: !0, ignoreDimensions: !0 }, u = this;
|
|
66397
|
-
return (wt.canvg ? Promise.resolve(wt.canvg) : import("./index.es-
|
|
66416
|
+
return (wt.canvg ? Promise.resolve(wt.canvg) : import("./index.es-d3594be9.js")).catch(function(h) {
|
|
66398
66417
|
return Promise.reject(new Error("Could not load canvg: " + h));
|
|
66399
66418
|
}).then(function(h) {
|
|
66400
66419
|
return h.default ? h.default : h;
|
|
@@ -66429,7 +66448,7 @@ function(t) {
|
|
|
66429
66448
|
for (u = 0; u < p; u += 1)
|
|
66430
66449
|
n[a[u]].value = n[a[u]].defaultValue, n[a[u]].explicitSet = !1;
|
|
66431
66450
|
}
|
|
66432
|
-
if (
|
|
66451
|
+
if (an(t) === "object") {
|
|
66433
66452
|
for (s in t)
|
|
66434
66453
|
if (i = t[s], h(a, s) && i !== void 0) {
|
|
66435
66454
|
if (n[s].type === "boolean" && typeof i == "boolean")
|
|
@@ -67382,6 +67401,9 @@ let Ch = class extends Ze {
|
|
|
67382
67401
|
var t, e;
|
|
67383
67402
|
return ((e = (t = this.state.payment) == null ? void 0 : t.payment_method) == null ? void 0 : e.card_type) === Um.CREDIT;
|
|
67384
67403
|
}
|
|
67404
|
+
get isCards() {
|
|
67405
|
+
return this.state.payment.payment_method.card_type;
|
|
67406
|
+
}
|
|
67385
67407
|
get buyerDocumentNumber() {
|
|
67386
67408
|
var t, e;
|
|
67387
67409
|
return (e = (t = this.state.payment) == null ? void 0 : t.payment_method) == null ? void 0 : e.card_holder_doc_number;
|
|
@@ -67394,7 +67416,7 @@ let Ch = class extends Ze {
|
|
|
67394
67416
|
return this.state.paymentRequest;
|
|
67395
67417
|
}
|
|
67396
67418
|
get paymentInput() {
|
|
67397
|
-
return this.state.
|
|
67419
|
+
return this.state.payment.payment_input;
|
|
67398
67420
|
}
|
|
67399
67421
|
get isBuyerInfo() {
|
|
67400
67422
|
return !!this.buyerDocumentNumber && !!this.buyerFullName;
|
|
@@ -67414,21 +67436,21 @@ let Ch = class extends Ze {
|
|
|
67414
67436
|
t && this.generatePDF(t);
|
|
67415
67437
|
}
|
|
67416
67438
|
getTracking() {
|
|
67417
|
-
this.
|
|
67439
|
+
this.paymentInput === "wallet" ? this.getPaymentsClickDownloadReceiptQR() : this.getPaymentsClickDownloadReceipt();
|
|
67418
67440
|
}
|
|
67419
67441
|
getPaymentsClickDownloadReceipt() {
|
|
67420
|
-
const { paymentinputsavailable: t } =
|
|
67442
|
+
const { paymentinputsavailable: t } = In(this.tracking, this.paymentRequest);
|
|
67421
67443
|
this.tracking.clickDownloadReceipt(
|
|
67422
67444
|
this.paymentInput,
|
|
67423
|
-
this.
|
|
67445
|
+
this.isCards ? this.isCards : "",
|
|
67424
67446
|
t,
|
|
67425
67447
|
this.state.paymentRequest.payment_type
|
|
67426
67448
|
);
|
|
67427
67449
|
}
|
|
67428
67450
|
getPaymentsClickDownloadReceiptQR() {
|
|
67429
|
-
const { paymentinputsavailable: t } =
|
|
67451
|
+
const { paymentinputsavailable: t } = In(this.tracking, this.paymentRequest);
|
|
67430
67452
|
this.tracking.openReceiptQR(
|
|
67431
|
-
this.
|
|
67453
|
+
this.paymentInput,
|
|
67432
67454
|
this.state.payment.payment_method.type,
|
|
67433
67455
|
this.state.payment.payment_method.wallet_name,
|
|
67434
67456
|
t,
|
|
@@ -67874,7 +67896,7 @@ var Rte = Object.defineProperty, Dte = Object.getOwnPropertyDescriptor, yn = (t,
|
|
|
67874
67896
|
(o = t[i]) && (s = (r ? o(e, n, s) : o(s)) || s);
|
|
67875
67897
|
return r && s && Rte(e, n, s), s;
|
|
67876
67898
|
};
|
|
67877
|
-
let
|
|
67899
|
+
let ln = class extends Ze {
|
|
67878
67900
|
constructor() {
|
|
67879
67901
|
super(...arguments), this.customClass = "", this.value = "", this.label = "", this.autocomplete = "off", this.autofocus = !1, this.disabled = !1, this.inputmode = "text", this.name = "", this.pattern = "", this.placeholder = "", this.readonly = !1, this.required = !1, this.type = "text", this.thousandSeparator = "", this.dropSpecialCharacters = !0, this.specialCharacters = [], this.id = "", this.textTransform = "", this.isTouched = !1, this.isValid = !1, this.validationRules = [], this.docType = Hm.DNI, this.errorMessage = "", this.helpText = "", this.previousValue = "";
|
|
67880
67902
|
}
|
|
@@ -67988,90 +68010,90 @@ let an = class extends Ze {
|
|
|
67988
68010
|
`;
|
|
67989
68011
|
}
|
|
67990
68012
|
};
|
|
67991
|
-
|
|
68013
|
+
ln.styles = at`
|
|
67992
68014
|
${ot(Fte)}
|
|
67993
68015
|
`;
|
|
67994
68016
|
yn([
|
|
67995
68017
|
L({ type: String })
|
|
67996
|
-
],
|
|
68018
|
+
], ln.prototype, "customClass", 2);
|
|
67997
68019
|
yn([
|
|
67998
68020
|
L({ type: String })
|
|
67999
|
-
],
|
|
68021
|
+
], ln.prototype, "value", 2);
|
|
68000
68022
|
yn([
|
|
68001
68023
|
L({ type: String })
|
|
68002
|
-
],
|
|
68024
|
+
], ln.prototype, "label", 2);
|
|
68003
68025
|
yn([
|
|
68004
68026
|
L({ type: String })
|
|
68005
|
-
],
|
|
68027
|
+
], ln.prototype, "autocomplete", 2);
|
|
68006
68028
|
yn([
|
|
68007
68029
|
L({ type: Boolean })
|
|
68008
|
-
],
|
|
68030
|
+
], ln.prototype, "autofocus", 2);
|
|
68009
68031
|
yn([
|
|
68010
68032
|
L({ type: Boolean })
|
|
68011
|
-
],
|
|
68033
|
+
], ln.prototype, "disabled", 2);
|
|
68012
68034
|
yn([
|
|
68013
68035
|
L({ type: String })
|
|
68014
|
-
],
|
|
68036
|
+
], ln.prototype, "inputmode", 2);
|
|
68015
68037
|
yn([
|
|
68016
68038
|
L({ type: Number })
|
|
68017
|
-
],
|
|
68039
|
+
], ln.prototype, "maxlength", 2);
|
|
68018
68040
|
yn([
|
|
68019
68041
|
L({ type: Number })
|
|
68020
|
-
],
|
|
68042
|
+
], ln.prototype, "minlength", 2);
|
|
68021
68043
|
yn([
|
|
68022
68044
|
L({ type: String })
|
|
68023
|
-
],
|
|
68045
|
+
], ln.prototype, "name", 2);
|
|
68024
68046
|
yn([
|
|
68025
68047
|
L({ type: String })
|
|
68026
|
-
],
|
|
68048
|
+
], ln.prototype, "pattern", 2);
|
|
68027
68049
|
yn([
|
|
68028
68050
|
L({ type: String })
|
|
68029
|
-
],
|
|
68051
|
+
], ln.prototype, "placeholder", 2);
|
|
68030
68052
|
yn([
|
|
68031
68053
|
L({ type: Boolean })
|
|
68032
|
-
],
|
|
68054
|
+
], ln.prototype, "readonly", 2);
|
|
68033
68055
|
yn([
|
|
68034
68056
|
L({ type: Boolean })
|
|
68035
|
-
],
|
|
68057
|
+
], ln.prototype, "required", 2);
|
|
68036
68058
|
yn([
|
|
68037
68059
|
L({ type: String })
|
|
68038
|
-
],
|
|
68060
|
+
], ln.prototype, "type", 2);
|
|
68039
68061
|
yn([
|
|
68040
68062
|
L({ type: String })
|
|
68041
|
-
],
|
|
68063
|
+
], ln.prototype, "thousandSeparator", 2);
|
|
68042
68064
|
yn([
|
|
68043
68065
|
L({ type: Boolean })
|
|
68044
|
-
],
|
|
68066
|
+
], ln.prototype, "dropSpecialCharacters", 2);
|
|
68045
68067
|
yn([
|
|
68046
68068
|
L({ type: Array })
|
|
68047
|
-
],
|
|
68069
|
+
], ln.prototype, "specialCharacters", 2);
|
|
68048
68070
|
yn([
|
|
68049
68071
|
L({ type: String })
|
|
68050
|
-
],
|
|
68072
|
+
], ln.prototype, "id", 2);
|
|
68051
68073
|
yn([
|
|
68052
68074
|
L({ type: String })
|
|
68053
|
-
],
|
|
68075
|
+
], ln.prototype, "textTransform", 2);
|
|
68054
68076
|
yn([
|
|
68055
68077
|
L({ type: Boolean })
|
|
68056
|
-
],
|
|
68078
|
+
], ln.prototype, "isTouched", 2);
|
|
68057
68079
|
yn([
|
|
68058
68080
|
L({ type: Boolean })
|
|
68059
|
-
],
|
|
68081
|
+
], ln.prototype, "isValid", 2);
|
|
68060
68082
|
yn([
|
|
68061
68083
|
L({ type: Array })
|
|
68062
|
-
],
|
|
68084
|
+
], ln.prototype, "validationRules", 2);
|
|
68063
68085
|
yn([
|
|
68064
68086
|
L({ type: String })
|
|
68065
|
-
],
|
|
68087
|
+
], ln.prototype, "docType", 2);
|
|
68066
68088
|
yn([
|
|
68067
68089
|
L({ type: String })
|
|
68068
|
-
],
|
|
68090
|
+
], ln.prototype, "errorMessage", 2);
|
|
68069
68091
|
yn([
|
|
68070
68092
|
L({ type: String })
|
|
68071
|
-
],
|
|
68072
|
-
|
|
68093
|
+
], ln.prototype, "helpText", 2);
|
|
68094
|
+
ln = yn([
|
|
68073
68095
|
$e("scof-input")
|
|
68074
|
-
],
|
|
68096
|
+
], ln);
|
|
68075
68097
|
const Pte = `@import"normalize.css";form{margin:inherit}.clickeable{cursor:pointer}.clickeable{display:block;transition:transform .3s ease}.clickeable:hover{transform:translate(3px)}.hidden{display:none}.skeleton-card{background-color:#d0d4d7;animation:skeleton-loading 1s linear infinite alternate;width:100%;height:43px;border-radius:8px}.skeleton{display:flex;align-items:center;justify-content:space-between;background-color:#d0d4d7;animation:skeleton-loading 1s linear infinite alternate;width:100%;height:60px;border-radius:8px;gap:16px;margin-bottom:16px}.skeleton .input{width:12px;height:10px;border-radius:8px;background-color:#c2cfd6;margin-left:10px}.skeleton .img{width:45px;height:36px;border-radius:50%;background-color:#c2cfd6}.skeleton .details{width:100%;height:auto;border-radius:8px;display:flex;flex-direction:column;gap:6px}.skeleton .text{width:200px;height:14px;border-radius:8px;background-color:#c2cfd6;margin:0}.hidden-element{visibility:hidden}@keyframes skeleton-loading{0%{background-color:#c2cfd6}to{background-color:#f0f3f5}}:host .tooltip-container{position:relative;display:inline-block}:host .tooltip-text{font-family:Inter;font-size:14px;font-style:normal;font-weight:400;line-height:20px;letter-spacing:.14px;visibility:hidden;min-width:289px;width:100%;background-color:#2b2b2b;color:#fff;text-align:center;border-radius:4px;display:none;padding:8px;justify-content:center;align-items:center;position:absolute;z-index:1;bottom:-4%;margin-left:12px;opacity:0;transition:opacity .3s}@media only screen and (max-width: 768px){:host .tooltip-text{top:25px;padding:16px;margin:0 auto;right:0;font-size:12px}}:host .tooltip-container:hover .tooltip-text{display:inline-flex;visibility:visible;opacity:1}.customClass{font-family:Inter;font-size:12px!important;font-style:normal;font-weight:400;line-height:20px;letter-spacing:.14px;visibility:hidden;min-width:300px!important;width:100%;background-color:#2b2b2b;color:#fff;border-radius:4px;display:none;padding:15px 2px!important;position:absolute;z-index:1;top:30px;right:0;opacity:0;transition:opacity .3s}@media only screen and (max-width: 768px){.customClass{top:25px;padding:16px;margin:0 auto;right:0;font-size:12px}}
|
|
68076
68098
|
`;
|
|
68077
68099
|
var Nte = Object.defineProperty, Ote = Object.getOwnPropertyDescriptor, Zh = (t, e, n, r) => {
|
|
@@ -68181,11 +68203,11 @@ let Hr = class t extends Ze {
|
|
|
68181
68203
|
});
|
|
68182
68204
|
}
|
|
68183
68205
|
getInpustAvailableMethod() {
|
|
68184
|
-
const { paymentinputsavailable: e } =
|
|
68206
|
+
const { paymentinputsavailable: e } = In(this.tracking, this.payfacContext.paymentRequest);
|
|
68185
68207
|
this.tracking.enterCardData(e, this.payfacContext.paymentRequest.payment_type);
|
|
68186
68208
|
}
|
|
68187
68209
|
getInpustAvailableClickContinueAfterData() {
|
|
68188
|
-
const { paymentinputsavailable: e } =
|
|
68210
|
+
const { paymentinputsavailable: e } = In(this.tracking, this.payfacContext.paymentRequest);
|
|
68189
68211
|
this.tracking.clickContinueAfterData(
|
|
68190
68212
|
this.state.isAddCardConsent,
|
|
68191
68213
|
e,
|
|
@@ -72895,7 +72917,7 @@ export {
|
|
|
72895
72917
|
ki as X,
|
|
72896
72918
|
ja as Y,
|
|
72897
72919
|
nr as Z,
|
|
72898
|
-
|
|
72920
|
+
an as _,
|
|
72899
72921
|
Yi as a,
|
|
72900
72922
|
zre as a0,
|
|
72901
72923
|
Us as a1,
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a4 as t, a7 as e, a5 as n, a6 as o, A as r, t as p, G as C, v as i, B as u, a3 as l, R as d, K as m, X as c, J as P, Y as A, Z as I, $ as y, h as D, f, a2 as k, a1 as F, M as S, O as L, T as H, U as M, V as g, C as v, i as x, n as E, a as O, d as b, a0 as Q, s as h, y as B, r as w, o as N, p as j, q, D as z, W as G, E as J, e as K, k as R, b as T, F as U, H as V, I as W, L as X, N as Y, j as Z, w as $, P as _, l as aa, u as sa, x as ta, Q as ea, S as na, z as oa, m as ra } from "./index-
|
|
1
|
+
import { a4 as t, a7 as e, a5 as n, a6 as o, A as r, t as p, G as C, v as i, B as u, a3 as l, R as d, K as m, X as c, J as P, Y as A, Z as I, $ as y, h as D, f, a2 as k, a1 as F, M as S, O as L, T as H, U as M, V as g, C as v, i as x, n as E, a as O, d as b, a0 as Q, s as h, y as B, r as w, o as N, p as j, q, D as z, W as G, E as J, e as K, k as R, b as T, F as U, H as V, I as W, L as X, N as Y, j as Z, w as $, P as _, l as aa, u as sa, x as ta, Q as ea, S as na, z as oa, m as ra } from "./index-28c5c75a.js";
|
|
2
2
|
export {
|
|
3
3
|
t as A2AAccountDetails,
|
|
4
4
|
e as A2AFeedbackHome,
|