epp-lib 0.0.41-snapshot → 0.0.42-snapshot
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/esm2022/lib/component/cancel-withdraw/cancel-withdraw.component.mjs +4 -3
- package/esm2022/lib/component/rapyd/rapyd.component.mjs +4 -5
- package/esm2022/lib/pipe/index.mjs +2 -2
- package/esm2022/lib/pipe/translate.pipe.mjs +21 -0
- package/esm2022/lib/translation/epp-lib-translate.service.mjs +4 -2
- package/esm2022/lib/translation/i18n/cs.json +3 -1
- package/esm2022/lib/translation/i18n/en.json +3 -1
- package/esm2022/lib/translation/i18n/es.json +3 -1
- package/esm2022/lib/translation/i18n/ru.json +3 -1
- package/esm2022/lib/translation/index.mjs +1 -3
- package/fesm2022/epp-lib.mjs +36 -124
- package/fesm2022/epp-lib.mjs.map +1 -1
- package/lib/pipe/index.d.ts +1 -1
- package/lib/pipe/translate.pipe.d.ts +8 -0
- package/lib/translation/epp-lib-translate.service.d.ts +9 -0
- package/lib/translation/index.d.ts +0 -2
- package/package.json +1 -2
- package/esm2022/lib/pipe/transloco.pipe.mjs +0 -22
- package/esm2022/lib/translation/epp-lib-loader.mjs +0 -23
- package/esm2022/lib/translation/epp-lib-translation.service.mjs +0 -23
- package/esm2022/lib/translation/epp-lib.providers.mjs +0 -25
- package/lib/pipe/transloco.pipe.d.ts +0 -9
- package/lib/translation/epp-lib-loader.d.ts +0 -20
- package/lib/translation/epp-lib-translation.service.d.ts +0 -8
- package/lib/translation/epp-lib.providers.d.ts +0 -6
package/fesm2022/epp-lib.mjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { signal, Injectable, inject,
|
|
3
|
-
import * as i3 from '@jsverse/transloco';
|
|
4
|
-
import { TranslocoService, provideTransloco, TranslocoModule } from '@jsverse/transloco';
|
|
2
|
+
import { signal, Injectable, inject, Pipe, Input, Component, Inject } from '@angular/core';
|
|
5
3
|
import { Observable, Subject, timer, takeUntil } from 'rxjs';
|
|
6
4
|
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
7
5
|
import * as i1 from '@angular/material/dialog';
|
|
@@ -15,95 +13,72 @@ var visaCardErrorMessage$3 = "It looks like the card number entered wasn’t rec
|
|
|
15
13
|
var visaCardErrorMessage2$3 = "Please try again using a valid card. If the issue persists, we recommend checking your card details or contacting support for assistance.";
|
|
16
14
|
var visaCardTimeout$3 = "Your checkout will expire in";
|
|
17
15
|
var mobile_payment_form_title$3 = "DEPOSIT";
|
|
16
|
+
var yes$3 = "Yes";
|
|
17
|
+
var no$3 = "No";
|
|
18
18
|
var enTranslations = {
|
|
19
19
|
payment_form_title: payment_form_title$3,
|
|
20
20
|
visaCardErrorMessage: visaCardErrorMessage$3,
|
|
21
21
|
visaCardErrorMessage2: visaCardErrorMessage2$3,
|
|
22
22
|
visaCardTimeout: visaCardTimeout$3,
|
|
23
|
-
mobile_payment_form_title: mobile_payment_form_title$3
|
|
23
|
+
mobile_payment_form_title: mobile_payment_form_title$3,
|
|
24
|
+
yes: yes$3,
|
|
25
|
+
no: no$3
|
|
24
26
|
};
|
|
25
27
|
|
|
26
|
-
var en = /*#__PURE__*/Object.freeze({
|
|
27
|
-
__proto__: null,
|
|
28
|
-
default: enTranslations,
|
|
29
|
-
mobile_payment_form_title: mobile_payment_form_title$3,
|
|
30
|
-
payment_form_title: payment_form_title$3,
|
|
31
|
-
visaCardErrorMessage: visaCardErrorMessage$3,
|
|
32
|
-
visaCardErrorMessage2: visaCardErrorMessage2$3,
|
|
33
|
-
visaCardTimeout: visaCardTimeout$3
|
|
34
|
-
});
|
|
35
|
-
|
|
36
28
|
var payment_form_title$2 = "支付信息";
|
|
37
29
|
var visaCardErrorMessage$2 = "我们无法识别您输入的卡号。请尝试输入另一张卡号。";
|
|
38
30
|
var visaCardErrorMessage2$2 = "如果问题仍然存在,我们建议您检查您的银行卡信息或联系客服寻求帮助。";
|
|
39
31
|
var visaCardTimeout$2 = "结账将在倒计时结束后失效";
|
|
40
32
|
var mobile_payment_form_title$2 = "充值";
|
|
33
|
+
var yes$2 = "Yes";
|
|
34
|
+
var no$2 = "No";
|
|
41
35
|
var csTranslations = {
|
|
42
36
|
payment_form_title: payment_form_title$2,
|
|
43
37
|
visaCardErrorMessage: visaCardErrorMessage$2,
|
|
44
38
|
visaCardErrorMessage2: visaCardErrorMessage2$2,
|
|
45
39
|
visaCardTimeout: visaCardTimeout$2,
|
|
46
|
-
mobile_payment_form_title: mobile_payment_form_title$2
|
|
40
|
+
mobile_payment_form_title: mobile_payment_form_title$2,
|
|
41
|
+
yes: yes$2,
|
|
42
|
+
no: no$2
|
|
47
43
|
};
|
|
48
44
|
|
|
49
|
-
var cs = /*#__PURE__*/Object.freeze({
|
|
50
|
-
__proto__: null,
|
|
51
|
-
default: csTranslations,
|
|
52
|
-
mobile_payment_form_title: mobile_payment_form_title$2,
|
|
53
|
-
payment_form_title: payment_form_title$2,
|
|
54
|
-
visaCardErrorMessage: visaCardErrorMessage$2,
|
|
55
|
-
visaCardErrorMessage2: visaCardErrorMessage2$2,
|
|
56
|
-
visaCardTimeout: visaCardTimeout$2
|
|
57
|
-
});
|
|
58
|
-
|
|
59
45
|
var payment_form_title$1 = "INFORMACIÓN DE PAGO";
|
|
60
46
|
var visaCardErrorMessage$1 = "Parece que no se ha reconocido el número de tarjeta introducido, por lo que no se ha podido procesar tu solicitud.";
|
|
61
47
|
var visaCardErrorMessage2$1 = "Inténtelo de nuevo con una tarjeta válida. Si el problema persiste, le recomendamos que compruebes los datos de su tarjeta o que se ponga en contacto con el servicio de atención al cliente para obtener ayuda.";
|
|
62
48
|
var visaCardTimeout$1 = "Tu proceso de pago caducará en";
|
|
63
49
|
var mobile_payment_form_title$1 = "Depósito";
|
|
50
|
+
var yes$1 = "Yes";
|
|
51
|
+
var no$1 = "No";
|
|
64
52
|
var esTranslations = {
|
|
65
53
|
payment_form_title: payment_form_title$1,
|
|
66
54
|
visaCardErrorMessage: visaCardErrorMessage$1,
|
|
67
55
|
visaCardErrorMessage2: visaCardErrorMessage2$1,
|
|
68
56
|
visaCardTimeout: visaCardTimeout$1,
|
|
69
|
-
mobile_payment_form_title: mobile_payment_form_title$1
|
|
57
|
+
mobile_payment_form_title: mobile_payment_form_title$1,
|
|
58
|
+
yes: yes$1,
|
|
59
|
+
no: no$1
|
|
70
60
|
};
|
|
71
61
|
|
|
72
|
-
var es = /*#__PURE__*/Object.freeze({
|
|
73
|
-
__proto__: null,
|
|
74
|
-
default: esTranslations,
|
|
75
|
-
mobile_payment_form_title: mobile_payment_form_title$1,
|
|
76
|
-
payment_form_title: payment_form_title$1,
|
|
77
|
-
visaCardErrorMessage: visaCardErrorMessage$1,
|
|
78
|
-
visaCardErrorMessage2: visaCardErrorMessage2$1,
|
|
79
|
-
visaCardTimeout: visaCardTimeout$1
|
|
80
|
-
});
|
|
81
|
-
|
|
82
62
|
var payment_form_title = "ПЛАТЕЖНАЯ ИНФОРМАЦИЯ";
|
|
83
63
|
var visaCardErrorMessage = "Похоже, номер карты был введен некорректно, поэтому нам не удалось обработать Ваш запрос. ";
|
|
84
64
|
var visaCardErrorMessage2 = "Попробуйте использовать другую карту. Если проблема повторится, пожалуйста, проверьте введенную информацию или обратитесь в службу поддержки.";
|
|
85
65
|
var visaCardTimeout = "Время оплаты истечет через";
|
|
86
66
|
var mobile_payment_form_title = "Депозит";
|
|
67
|
+
var yes = "Yes";
|
|
68
|
+
var no = "No";
|
|
87
69
|
var ruTranslations = {
|
|
88
70
|
payment_form_title: payment_form_title,
|
|
89
71
|
visaCardErrorMessage: visaCardErrorMessage,
|
|
90
72
|
visaCardErrorMessage2: visaCardErrorMessage2,
|
|
91
73
|
visaCardTimeout: visaCardTimeout,
|
|
92
|
-
mobile_payment_form_title: mobile_payment_form_title
|
|
74
|
+
mobile_payment_form_title: mobile_payment_form_title,
|
|
75
|
+
yes: yes,
|
|
76
|
+
no: no
|
|
93
77
|
};
|
|
94
78
|
|
|
95
|
-
var ru = /*#__PURE__*/Object.freeze({
|
|
96
|
-
__proto__: null,
|
|
97
|
-
default: ruTranslations,
|
|
98
|
-
mobile_payment_form_title: mobile_payment_form_title,
|
|
99
|
-
payment_form_title: payment_form_title,
|
|
100
|
-
visaCardErrorMessage: visaCardErrorMessage,
|
|
101
|
-
visaCardErrorMessage2: visaCardErrorMessage2,
|
|
102
|
-
visaCardTimeout: visaCardTimeout
|
|
103
|
-
});
|
|
104
|
-
|
|
105
79
|
class EppLibTranslateService {
|
|
106
80
|
constructor() {
|
|
81
|
+
this.defaultLang = signal('en');
|
|
107
82
|
this.currentLang = signal('en');
|
|
108
83
|
}
|
|
109
84
|
setLanguage(lang) {
|
|
@@ -111,7 +86,8 @@ class EppLibTranslateService {
|
|
|
111
86
|
}
|
|
112
87
|
get(key) {
|
|
113
88
|
const langData = EPP_LIB_DICTIONARY[this.currentLang()];
|
|
114
|
-
|
|
89
|
+
const defaultLangData = EPP_LIB_DICTIONARY[this.defaultLang()];
|
|
90
|
+
return langData[key] || defaultLangData[key] || key;
|
|
115
91
|
}
|
|
116
92
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EppLibTranslateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
117
93
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EppLibTranslateService, providedIn: 'root' }); }
|
|
@@ -129,69 +105,6 @@ const EPP_LIB_DICTIONARY = {
|
|
|
129
105
|
ru: ruTranslations
|
|
130
106
|
};
|
|
131
107
|
|
|
132
|
-
class EppLibTranslationService {
|
|
133
|
-
constructor() {
|
|
134
|
-
this.transloco = inject(TranslocoService);
|
|
135
|
-
}
|
|
136
|
-
setLanguage(lang) {
|
|
137
|
-
this.transloco.setActiveLang(lang);
|
|
138
|
-
}
|
|
139
|
-
getLanguage() {
|
|
140
|
-
return this.transloco.getActiveLang();
|
|
141
|
-
}
|
|
142
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EppLibTranslationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
143
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EppLibTranslationService, providedIn: 'root' }); }
|
|
144
|
-
}
|
|
145
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EppLibTranslationService, decorators: [{
|
|
146
|
-
type: Injectable,
|
|
147
|
-
args: [{
|
|
148
|
-
providedIn: 'root'
|
|
149
|
-
}]
|
|
150
|
-
}] });
|
|
151
|
-
|
|
152
|
-
class EppLibLoader {
|
|
153
|
-
getTranslation(lang) {
|
|
154
|
-
switch (lang) {
|
|
155
|
-
case 'cs':
|
|
156
|
-
return Promise.resolve().then(function () { return cs; });
|
|
157
|
-
case 'ru':
|
|
158
|
-
return Promise.resolve().then(function () { return ru; });
|
|
159
|
-
case 'es':
|
|
160
|
-
return Promise.resolve().then(function () { return es; });
|
|
161
|
-
case 'en':
|
|
162
|
-
default:
|
|
163
|
-
return Promise.resolve().then(function () { return en; });
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EppLibLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
167
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EppLibLoader }); }
|
|
168
|
-
}
|
|
169
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EppLibLoader, decorators: [{
|
|
170
|
-
type: Injectable
|
|
171
|
-
}] });
|
|
172
|
-
|
|
173
|
-
function provideEppLibTranslations(config) {
|
|
174
|
-
return makeEnvironmentProviders([
|
|
175
|
-
provideTransloco({
|
|
176
|
-
config: {
|
|
177
|
-
availableLangs: config.availableLangs,
|
|
178
|
-
defaultLang: config.defaultLang,
|
|
179
|
-
reRenderOnLangChange: true,
|
|
180
|
-
},
|
|
181
|
-
loader: EppLibLoader,
|
|
182
|
-
}),
|
|
183
|
-
// provideTranslocoScope({
|
|
184
|
-
// scope: 'epp-lib',
|
|
185
|
-
// loader: {
|
|
186
|
-
// en: () => import('./i18n/en.json'),
|
|
187
|
-
// cs: () => import('./i18n/cs.json'),
|
|
188
|
-
// es: () => import('./i18n/es.json'),
|
|
189
|
-
// ru: () => import('./i18n/ru.json'),
|
|
190
|
-
// },
|
|
191
|
-
// })
|
|
192
|
-
]);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
108
|
class Domain {
|
|
196
109
|
constructor() {
|
|
197
110
|
this.defaultDomain = '';
|
|
@@ -539,21 +452,20 @@ class Timer {
|
|
|
539
452
|
}
|
|
540
453
|
}
|
|
541
454
|
|
|
542
|
-
class
|
|
455
|
+
class TranslatePipe {
|
|
543
456
|
constructor() {
|
|
544
|
-
this.
|
|
457
|
+
this.trans = inject(EppLibTranslateService);
|
|
545
458
|
}
|
|
546
459
|
transform(key) {
|
|
547
|
-
return this.
|
|
548
|
-
// return this.transloco.selectTranslate(key, {}, 'epp-lib');
|
|
460
|
+
return this.trans.get(key);
|
|
549
461
|
}
|
|
550
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type:
|
|
551
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type:
|
|
462
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TranslatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
463
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: TranslatePipe, isStandalone: true, name: "vTrans" }); }
|
|
552
464
|
}
|
|
553
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type:
|
|
465
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TranslatePipe, decorators: [{
|
|
554
466
|
type: Pipe,
|
|
555
467
|
args: [{
|
|
556
|
-
name: '
|
|
468
|
+
name: 'vTrans',
|
|
557
469
|
standalone: true
|
|
558
470
|
}]
|
|
559
471
|
}] });
|
|
@@ -773,11 +685,11 @@ class RapydComponent {
|
|
|
773
685
|
return CommonUtil.isMobileTemplate();
|
|
774
686
|
}
|
|
775
687
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RapydComponent, deps: [{ token: i1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
776
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: RapydComponent, isStandalone: true, selector: "v-rapyd", inputs: { checkout: "checkout" }, ngImport: i0, template: "@if(isMobile()) {\n <div class=\"v-dialog mobile\">\n <div class=\"v-flex-center-between header text-black-cs\">\n <div class=\"v-flex-center-none\">\n <span class=\"ml-8\">{{ 'mobile_payment_form_title' |
|
|
688
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: RapydComponent, isStandalone: true, selector: "v-rapyd", inputs: { checkout: "checkout" }, ngImport: i0, template: "@if(isMobile()) {\n <div class=\"v-dialog mobile\">\n <div class=\"v-flex-center-between header text-black-cs\">\n <div class=\"v-flex-center-none\">\n <span class=\"ml-8\">{{ 'mobile_payment_form_title' | vTrans }}</span>\n </div>\n <div class=\"v-flex-center-between mr-8\">\n <div (click)=\"closeDialog()\">\n <svg width=\"22\" height=\"22\" viewBox=\"0 0 22 22\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n d=\"M11.0121 12.3959L16.6455 18.0293C16.8333 18.2107 17.0849 18.3111 17.346 18.3088C17.6071 18.3065 17.8569 18.2018 18.0415 18.0172C18.2261 17.8325 18.3309 17.5828 18.3331 17.3217C18.3354 17.0606 18.235 16.809 18.0536 16.6212L12.4202 10.9878L18.0536 5.35431C18.235 5.16649 18.3354 4.91494 18.3331 4.65384C18.3309 4.39273 18.2261 4.14297 18.0415 3.95833C17.8569 3.77369 17.6071 3.66896 17.346 3.66669C17.0849 3.66443 16.8333 3.7648 16.6455 3.9462L11.0121 9.57964L5.37863 3.9462C5.18997 3.76928 4.93988 3.67271 4.68128 3.67691C4.42268 3.68111 4.17585 3.78575 3.99304 3.9687C3.81022 4.15165 3.70575 4.39854 3.70173 4.65715C3.69772 4.91575 3.79447 5.16577 3.97152 5.35431L9.60396 10.9878L3.97052 16.6212C3.87541 16.7131 3.79954 16.8229 3.74735 16.9444C3.69516 17.0659 3.66769 17.1966 3.66654 17.3288C3.66539 17.4611 3.69059 17.5922 3.74066 17.7146C3.79073 17.837 3.86468 17.9481 3.95818 18.0416C4.05168 18.1352 4.16287 18.2091 4.28525 18.2592C4.40764 18.3092 4.53877 18.3344 4.67099 18.3333C4.80322 18.3321 4.93389 18.3047 5.05539 18.2525C5.17688 18.2003 5.28677 18.1244 5.37863 18.0293L11.0121 12.3959Z\" />\n </svg>\n </div>\n </div>\n </div>\n @if (isLoading) {\n <div class=\"v-spinner\">\n <mat-spinner diameter=\"50\" strokeWidth=\"4\"></mat-spinner>\n </div>\n }\n <div class=\"v-content\" id=\"deposit-id\">\n @if (!isLoading && !isShow) {\n <div class=\"visa-card-message\">\n {{ 'visaCardErrorMessage' | vTrans }} <br> {{ 'visaCardErrorMessage2' | vTrans }}\n </div>\n }\n <div class=\"vodds-checkout-deposit\">\n @if(!isLoading && isShow) {\n <div class=\"vodds-checkout-expiration\">\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 15\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M7 2.56067C9.76142 2.56067 12 4.79925 12 7.56067C12 10.3221 9.76142 12.5607 7 12.5607C4.23858 12.5607 2 10.3221 2 7.56067C2 4.79925 4.23858 2.56067 7 2.56067ZM6.25 4.06067V7.93567L6.5498 8.16028L8.5498 9.66028L9.4502 8.46106L7.75 7.18567V4.06067H6.25Z\"\n fill=\"#8C8C8C\" />\n <line x1=\"10.0303\" y1=\"0.530339\" x2=\"12.8588\" y2=\"3.35877\" stroke=\"#8C8C8C\" stroke-width=\"1.5\" />\n <line y1=\"-0.75\" x2=\"4\" y2=\"-0.75\" transform=\"matrix(-0.707107 0.707107 0.707107 0.707107 4.82843 1.06067)\"\n stroke=\"#8C8C8C\" stroke-width=\"1.5\" />\n </svg>\n <span>{{ 'visaCardTimeout' | vTrans }} <span class=\"countdown-timer\">{{displayTimer}}</span></span>\n </div>\n }\n <div id=\"rapyd-checkout\" class=\"iframe-wrapper\"></div>\n </div>\n </div>\n </div>\n} @else {\n <div id=\"visa-card\">\n <div class=\"top\">\n <h2>{{ 'payment_form_title' | vTrans }}</h2>\n <svg class=\"clsbtn my-account\" (click)=\"closeDialog()\" width=\"11\" height=\"11\" viewBox=\"0 0 11 11\" fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M9.89214 0L5.5 4.39214L1.10786 0L0 1.10786L4.39214 5.5L0 9.89214L1.10786 11L5.5 6.60786L9.89214 11L11 9.89214L6.60786 5.5L11 1.10786L9.89214 0Z\"\n fill=\"white\" />\n </svg>\n </div>\n <div class=\"flex-center\">\n <vodds-loader [showAjaxLoader]=\"isLoading\"></vodds-loader>\n </div>\n @if (!isLoading && !isShow) {\n <div class=\"visa-card-message\">\n {{ 'visaCardErrorMessage' | vTrans }} <br> {{ 'visaCardErrorMessage2' | vTrans }}\n </div>\n }\n <div class=\"visa-card-form\" [style]=\"{display: isShow ? 'flex' : 'none'}\">\n <div class=\"timer\">\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M7 2.56067C9.76142 2.56067 12 4.79925 12 7.56067C12 10.3221 9.76142 12.5607 7 12.5607C4.23858 12.5607 2 10.3221 2 7.56067C2 4.79925 4.23858 2.56067 7 2.56067ZM6.25 4.06067V7.93567L6.5498 8.16028L8.5498 9.66028L9.4502 8.46106L7.75 7.18567V4.06067H6.25Z\"\n fill=\"#B5B5B5\" />\n <line x1=\"10.0303\" y1=\"0.530339\" x2=\"12.8588\" y2=\"3.35877\" stroke=\"#B5B5B5\" stroke-width=\"1.5\" />\n <line y1=\"-0.75\" x2=\"4\" y2=\"-0.75\"\n transform=\"matrix(-0.707107 0.707107 0.707107 0.707107 4.82861 1.06067)\" stroke=\"#B5B5B5\"\n stroke-width=\"1.5\" />\n </svg>\n <span class=\"label\"> {{ 'visaCardTimeout' | vTrans }} </span> <span class=\"display-time\">\n {{displayTimer}}</span>\n </div>\n <div id=\"rapyd-checkout\"></div>\n </div>\n </div>\n}", styles: [".flex-center{display:flex;justify-content:center;align-items:center}#visa-card{height:auto;width:500px;top:0;left:710px;z-index:101}.top{width:100%;align-items:center;margin-bottom:8px;border-radius:0;background:#dd453c;position:relative;color:#fff;display:flex;justify-content:space-between}.top h2{padding-left:15px;text-align:left;font-size:16px;font-weight:800}.top svg{position:unset;padding-right:15px;width:18px;height:18px}.visa-card-form{display:flex;flex-direction:column;align-items:center;min-height:500px!important;width:100%}.visa-card-form .timer{display:flex;align-items:center}#rapyd-checkout{min-height:550px;max-height:550px;overflow-y:auto;scrollbar-width:none}#rapyd-checkout::-webkit-scrollbar{display:none}.ui-widget.ui-widget-content.vodds-visa-card-dialog{padding:0;border:none;border-radius:10px}.vodds-visa-card-dialog .ui-dialog-content{display:flex;align-items:center;flex-direction:column;padding:0;margin:0}.vodds-visa-card-dialog .ui-dialog-content .top{width:100%;display:flex;align-items:center;padding:6px 18px;margin-bottom:8px;border-radius:8px}.vodds-visa-card-dialog .ui-dialog-content .top h2{text-align:left;font-size:16px;font-weight:800}#trading-platform.dark .vodds-visa-card-dialog .label,.vodds-visa-card-dialog .label{color:#80807f!important}#trading-platform.dark .vodds-visa-card-dialog span{color:#000!important}#trading-platform.dark .vodds-visa-card-dialog{background:#fff!important}.mobile .header{font-weight:800;font-size:18px;line-height:18px;margin:0 7px;border-bottom:1px solid #96A2B3;padding:20px 0 15px}.mobile .header .dark{color:#fff}.mobile .header .light{color:#2c3644}.mobile .header svg{fill:#2c3644}.mobile .v-flex-center-between{display:flex;justify-content:space-between;align-items:center;padding-left:10px;padding-right:10px}.mobile .vodds-checkout-expiration{display:flex;justify-content:center;align-items:center;font-weight:700;gap:5px;color:#8c8c8c;font-size:12px}.mobile .countdown-timer{color:#000}.mobile .iframe-wrapper{position:relative;overflow:hidden}.mobile .v-dialog .v-content{padding:0!important;max-height:74vh}.mobile .vodds-checkout-deposit{overflow:auto;margin-top:10px}.mobile .v-dialog{background:#f3f2f9;color:#28303a}.mobile .v-spinner{display:flex;justify-content:center;width:100%}.mobile ::ng-deep .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:#dd443c!important}.mobile .visa-card-message{margin:28px 20px;color:#dd453c;font-size:14px}.mobile .v-dialog .v-content{background-color:#f1f1f1}\n"], dependencies: [{ kind: "component", type: VoddsLoaderComponent, selector: "vodds-loader", inputs: ["message", "showAjaxLoader"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i2.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "pipe", type: TranslatePipe, name: "vTrans" }] }); }
|
|
777
689
|
}
|
|
778
690
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RapydComponent, decorators: [{
|
|
779
691
|
type: Component,
|
|
780
|
-
args: [{ selector: 'v-rapyd', standalone: true, imports: [NgStyle, VoddsLoaderComponent, MatDialogModule, MatProgressSpinnerModule,
|
|
692
|
+
args: [{ selector: 'v-rapyd', standalone: true, imports: [NgStyle, VoddsLoaderComponent, MatDialogModule, MatProgressSpinnerModule, TranslatePipe], template: "@if(isMobile()) {\n <div class=\"v-dialog mobile\">\n <div class=\"v-flex-center-between header text-black-cs\">\n <div class=\"v-flex-center-none\">\n <span class=\"ml-8\">{{ 'mobile_payment_form_title' | vTrans }}</span>\n </div>\n <div class=\"v-flex-center-between mr-8\">\n <div (click)=\"closeDialog()\">\n <svg width=\"22\" height=\"22\" viewBox=\"0 0 22 22\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n d=\"M11.0121 12.3959L16.6455 18.0293C16.8333 18.2107 17.0849 18.3111 17.346 18.3088C17.6071 18.3065 17.8569 18.2018 18.0415 18.0172C18.2261 17.8325 18.3309 17.5828 18.3331 17.3217C18.3354 17.0606 18.235 16.809 18.0536 16.6212L12.4202 10.9878L18.0536 5.35431C18.235 5.16649 18.3354 4.91494 18.3331 4.65384C18.3309 4.39273 18.2261 4.14297 18.0415 3.95833C17.8569 3.77369 17.6071 3.66896 17.346 3.66669C17.0849 3.66443 16.8333 3.7648 16.6455 3.9462L11.0121 9.57964L5.37863 3.9462C5.18997 3.76928 4.93988 3.67271 4.68128 3.67691C4.42268 3.68111 4.17585 3.78575 3.99304 3.9687C3.81022 4.15165 3.70575 4.39854 3.70173 4.65715C3.69772 4.91575 3.79447 5.16577 3.97152 5.35431L9.60396 10.9878L3.97052 16.6212C3.87541 16.7131 3.79954 16.8229 3.74735 16.9444C3.69516 17.0659 3.66769 17.1966 3.66654 17.3288C3.66539 17.4611 3.69059 17.5922 3.74066 17.7146C3.79073 17.837 3.86468 17.9481 3.95818 18.0416C4.05168 18.1352 4.16287 18.2091 4.28525 18.2592C4.40764 18.3092 4.53877 18.3344 4.67099 18.3333C4.80322 18.3321 4.93389 18.3047 5.05539 18.2525C5.17688 18.2003 5.28677 18.1244 5.37863 18.0293L11.0121 12.3959Z\" />\n </svg>\n </div>\n </div>\n </div>\n @if (isLoading) {\n <div class=\"v-spinner\">\n <mat-spinner diameter=\"50\" strokeWidth=\"4\"></mat-spinner>\n </div>\n }\n <div class=\"v-content\" id=\"deposit-id\">\n @if (!isLoading && !isShow) {\n <div class=\"visa-card-message\">\n {{ 'visaCardErrorMessage' | vTrans }} <br> {{ 'visaCardErrorMessage2' | vTrans }}\n </div>\n }\n <div class=\"vodds-checkout-deposit\">\n @if(!isLoading && isShow) {\n <div class=\"vodds-checkout-expiration\">\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 15\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M7 2.56067C9.76142 2.56067 12 4.79925 12 7.56067C12 10.3221 9.76142 12.5607 7 12.5607C4.23858 12.5607 2 10.3221 2 7.56067C2 4.79925 4.23858 2.56067 7 2.56067ZM6.25 4.06067V7.93567L6.5498 8.16028L8.5498 9.66028L9.4502 8.46106L7.75 7.18567V4.06067H6.25Z\"\n fill=\"#8C8C8C\" />\n <line x1=\"10.0303\" y1=\"0.530339\" x2=\"12.8588\" y2=\"3.35877\" stroke=\"#8C8C8C\" stroke-width=\"1.5\" />\n <line y1=\"-0.75\" x2=\"4\" y2=\"-0.75\" transform=\"matrix(-0.707107 0.707107 0.707107 0.707107 4.82843 1.06067)\"\n stroke=\"#8C8C8C\" stroke-width=\"1.5\" />\n </svg>\n <span>{{ 'visaCardTimeout' | vTrans }} <span class=\"countdown-timer\">{{displayTimer}}</span></span>\n </div>\n }\n <div id=\"rapyd-checkout\" class=\"iframe-wrapper\"></div>\n </div>\n </div>\n </div>\n} @else {\n <div id=\"visa-card\">\n <div class=\"top\">\n <h2>{{ 'payment_form_title' | vTrans }}</h2>\n <svg class=\"clsbtn my-account\" (click)=\"closeDialog()\" width=\"11\" height=\"11\" viewBox=\"0 0 11 11\" fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M9.89214 0L5.5 4.39214L1.10786 0L0 1.10786L4.39214 5.5L0 9.89214L1.10786 11L5.5 6.60786L9.89214 11L11 9.89214L6.60786 5.5L11 1.10786L9.89214 0Z\"\n fill=\"white\" />\n </svg>\n </div>\n <div class=\"flex-center\">\n <vodds-loader [showAjaxLoader]=\"isLoading\"></vodds-loader>\n </div>\n @if (!isLoading && !isShow) {\n <div class=\"visa-card-message\">\n {{ 'visaCardErrorMessage' | vTrans }} <br> {{ 'visaCardErrorMessage2' | vTrans }}\n </div>\n }\n <div class=\"visa-card-form\" [style]=\"{display: isShow ? 'flex' : 'none'}\">\n <div class=\"timer\">\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M7 2.56067C9.76142 2.56067 12 4.79925 12 7.56067C12 10.3221 9.76142 12.5607 7 12.5607C4.23858 12.5607 2 10.3221 2 7.56067C2 4.79925 4.23858 2.56067 7 2.56067ZM6.25 4.06067V7.93567L6.5498 8.16028L8.5498 9.66028L9.4502 8.46106L7.75 7.18567V4.06067H6.25Z\"\n fill=\"#B5B5B5\" />\n <line x1=\"10.0303\" y1=\"0.530339\" x2=\"12.8588\" y2=\"3.35877\" stroke=\"#B5B5B5\" stroke-width=\"1.5\" />\n <line y1=\"-0.75\" x2=\"4\" y2=\"-0.75\"\n transform=\"matrix(-0.707107 0.707107 0.707107 0.707107 4.82861 1.06067)\" stroke=\"#B5B5B5\"\n stroke-width=\"1.5\" />\n </svg>\n <span class=\"label\"> {{ 'visaCardTimeout' | vTrans }} </span> <span class=\"display-time\">\n {{displayTimer}}</span>\n </div>\n <div id=\"rapyd-checkout\"></div>\n </div>\n </div>\n}", styles: [".flex-center{display:flex;justify-content:center;align-items:center}#visa-card{height:auto;width:500px;top:0;left:710px;z-index:101}.top{width:100%;align-items:center;margin-bottom:8px;border-radius:0;background:#dd453c;position:relative;color:#fff;display:flex;justify-content:space-between}.top h2{padding-left:15px;text-align:left;font-size:16px;font-weight:800}.top svg{position:unset;padding-right:15px;width:18px;height:18px}.visa-card-form{display:flex;flex-direction:column;align-items:center;min-height:500px!important;width:100%}.visa-card-form .timer{display:flex;align-items:center}#rapyd-checkout{min-height:550px;max-height:550px;overflow-y:auto;scrollbar-width:none}#rapyd-checkout::-webkit-scrollbar{display:none}.ui-widget.ui-widget-content.vodds-visa-card-dialog{padding:0;border:none;border-radius:10px}.vodds-visa-card-dialog .ui-dialog-content{display:flex;align-items:center;flex-direction:column;padding:0;margin:0}.vodds-visa-card-dialog .ui-dialog-content .top{width:100%;display:flex;align-items:center;padding:6px 18px;margin-bottom:8px;border-radius:8px}.vodds-visa-card-dialog .ui-dialog-content .top h2{text-align:left;font-size:16px;font-weight:800}#trading-platform.dark .vodds-visa-card-dialog .label,.vodds-visa-card-dialog .label{color:#80807f!important}#trading-platform.dark .vodds-visa-card-dialog span{color:#000!important}#trading-platform.dark .vodds-visa-card-dialog{background:#fff!important}.mobile .header{font-weight:800;font-size:18px;line-height:18px;margin:0 7px;border-bottom:1px solid #96A2B3;padding:20px 0 15px}.mobile .header .dark{color:#fff}.mobile .header .light{color:#2c3644}.mobile .header svg{fill:#2c3644}.mobile .v-flex-center-between{display:flex;justify-content:space-between;align-items:center;padding-left:10px;padding-right:10px}.mobile .vodds-checkout-expiration{display:flex;justify-content:center;align-items:center;font-weight:700;gap:5px;color:#8c8c8c;font-size:12px}.mobile .countdown-timer{color:#000}.mobile .iframe-wrapper{position:relative;overflow:hidden}.mobile .v-dialog .v-content{padding:0!important;max-height:74vh}.mobile .vodds-checkout-deposit{overflow:auto;margin-top:10px}.mobile .v-dialog{background:#f3f2f9;color:#28303a}.mobile .v-spinner{display:flex;justify-content:center;width:100%}.mobile ::ng-deep .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:#dd443c!important}.mobile .visa-card-message{margin:28px 20px;color:#dd453c;font-size:14px}.mobile .v-dialog .v-content{background-color:#f1f1f1}\n"] }]
|
|
781
693
|
}], ctorParameters: () => [{ type: i1.MatDialogRef }, { type: undefined, decorators: [{
|
|
782
694
|
type: Inject,
|
|
783
695
|
args: [MAT_DIALOG_DATA]
|
|
@@ -798,11 +710,11 @@ class CancelWithdrawDialog {
|
|
|
798
710
|
this.dialogRef.close(isCancel);
|
|
799
711
|
}
|
|
800
712
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CancelWithdrawDialog, deps: [{ token: i1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
801
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: CancelWithdrawDialog, isStandalone: true, selector: "epp-cancel-withdraw", ngImport: i0, template: "<div class=\"v-dialog\">\n <div class=\"title\">{{title}}</div>\n <div class=\"button-group v-flex-center-between history\">\n <div class=\"left\" (click)=\"onClose(true)\">\n <span>
|
|
713
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: CancelWithdrawDialog, isStandalone: true, selector: "epp-cancel-withdraw", ngImport: i0, template: "<div class=\"v-dialog\">\n <div class=\"title\">{{title}}</div>\n <div class=\"button-group v-flex-center-between history\">\n <div class=\"left\" (click)=\"onClose(true)\">\n <span>{{ 'yes' | vTrans }}</span>\n </div>\n <div class=\"right\" (click)=\"onClose(false)\">\n <span>{{ 'no' | vTrans }}</span>\n </div>\n </div>\n</div>\n", styles: [".v-dialog{padding:28px 16px;background:var(--vodds-headerBg)}.title{font-size:14px;font-weight:800;line-height:16px;text-align:center;padding-bottom:28px}.button-group.v-flex-center-between{gap:15px;width:100%}.left,.right{display:flex;height:35px;font-size:14px;font-weight:800;text-align:center;justify-content:center;align-items:center;border-radius:23px;width:50%}.left{background:var(--vodds-leftBtnBg)}.right{background:var(--vodds-rightBtnBg);color:var(--vodds-textColorFocus)}.full{width:100%!important;padding:0 15px}\n"], dependencies: [{ kind: "pipe", type: TranslatePipe, name: "vTrans" }] }); }
|
|
802
714
|
}
|
|
803
715
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CancelWithdrawDialog, decorators: [{
|
|
804
716
|
type: Component,
|
|
805
|
-
args: [{ selector: 'epp-cancel-withdraw', standalone: true, template: "<div class=\"v-dialog\">\n <div class=\"title\">{{title}}</div>\n <div class=\"button-group v-flex-center-between history\">\n <div class=\"left\" (click)=\"onClose(true)\">\n <span>
|
|
717
|
+
args: [{ selector: 'epp-cancel-withdraw', standalone: true, imports: [TranslatePipe], template: "<div class=\"v-dialog\">\n <div class=\"title\">{{title}}</div>\n <div class=\"button-group v-flex-center-between history\">\n <div class=\"left\" (click)=\"onClose(true)\">\n <span>{{ 'yes' | vTrans }}</span>\n </div>\n <div class=\"right\" (click)=\"onClose(false)\">\n <span>{{ 'no' | vTrans }}</span>\n </div>\n </div>\n</div>\n", styles: [".v-dialog{padding:28px 16px;background:var(--vodds-headerBg)}.title{font-size:14px;font-weight:800;line-height:16px;text-align:center;padding-bottom:28px}.button-group.v-flex-center-between{gap:15px;width:100%}.left,.right{display:flex;height:35px;font-size:14px;font-weight:800;text-align:center;justify-content:center;align-items:center;border-radius:23px;width:50%}.left{background:var(--vodds-leftBtnBg)}.right{background:var(--vodds-rightBtnBg);color:var(--vodds-textColorFocus)}.full{width:100%!important;padding:0 15px}\n"] }]
|
|
806
718
|
}], ctorParameters: () => [{ type: i1.MatDialogRef }, { type: undefined, decorators: [{
|
|
807
719
|
type: Inject,
|
|
808
720
|
args: [MAT_DIALOG_DATA]
|
|
@@ -1035,5 +947,5 @@ class Payment {
|
|
|
1035
947
|
* Generated bundle index. Do not edit.
|
|
1036
948
|
*/
|
|
1037
949
|
|
|
1038
|
-
export { CancelWithdraw, CancelWithdrawDialog, Checkout, CommonUtil, CountDownTime, Domain, EPP_LIB_DICTIONARY, EppLibTranslateService,
|
|
950
|
+
export { CancelWithdraw, CancelWithdrawDialog, Checkout, CommonUtil, CountDownTime, Domain, EPP_LIB_DICTIONARY, EppLibTranslateService, IParam, IframeMessageService, IframeMessageType, Payload, Payment, PaymentType, RapydComponent, Timer, TranslatePipe, VoddsHttpService, VoddsLoaderComponent };
|
|
1039
951
|
//# sourceMappingURL=epp-lib.mjs.map
|