epp-lib 0.0.54-snapshot → 0.0.55-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.
@@ -1,14 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
- import { signal, Injectable, inject, makeEnvironmentProviders, Pipe, Input, Component, Inject } from '@angular/core';
3
- import * as i3 from '@jsverse/transloco';
4
- import { TranslocoService, provideTransloco, TranslocoModule } from '@jsverse/transloco';
5
- import { Observable, Subject, timer, takeUntil } from 'rxjs';
2
+ import { signal, Injectable, inject, Pipe, Input, Component, Inject } from '@angular/core';
3
+ import { of, Observable, Subject, timer, takeUntil } from 'rxjs';
6
4
  import { HttpClient, HttpHeaders } from '@angular/common/http';
7
5
  import * as i1 from '@angular/material/dialog';
8
6
  import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
9
- import * as i2 from '@angular/material/progress-spinner';
7
+ import * as i3 from '@angular/material/progress-spinner';
10
8
  import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
11
- import * as i2$1 from '@angular/common';
9
+ import * as i2 from '@angular/common';
12
10
  import { NgStyle, CommonModule } from '@angular/common';
13
11
  import * as i1$1 from '@angular/material/snack-bar';
14
12
  import { MAT_SNACK_BAR_DATA, MatSnackBarRef, MatSnackBarModule } from '@angular/material/snack-bar';
@@ -26,16 +24,6 @@ var enTranslations = {
26
24
  mobile_payment_form_title: mobile_payment_form_title$3
27
25
  };
28
26
 
29
- var en = /*#__PURE__*/Object.freeze({
30
- __proto__: null,
31
- default: enTranslations,
32
- mobile_payment_form_title: mobile_payment_form_title$3,
33
- payment_form_title: payment_form_title$3,
34
- visaCardErrorMessage: visaCardErrorMessage$3,
35
- visaCardErrorMessage2: visaCardErrorMessage2$3,
36
- visaCardTimeout: visaCardTimeout$3
37
- });
38
-
39
27
  var payment_form_title$2 = "支付信息";
40
28
  var visaCardErrorMessage$2 = "我们无法识别您输入的卡号。请尝试输入另一张卡号。";
41
29
  var visaCardErrorMessage2$2 = "如果问题仍然存在,我们建议您检查您的银行卡信息或联系客服寻求帮助。";
@@ -49,16 +37,6 @@ var csTranslations = {
49
37
  mobile_payment_form_title: mobile_payment_form_title$2
50
38
  };
51
39
 
52
- var cs = /*#__PURE__*/Object.freeze({
53
- __proto__: null,
54
- default: csTranslations,
55
- mobile_payment_form_title: mobile_payment_form_title$2,
56
- payment_form_title: payment_form_title$2,
57
- visaCardErrorMessage: visaCardErrorMessage$2,
58
- visaCardErrorMessage2: visaCardErrorMessage2$2,
59
- visaCardTimeout: visaCardTimeout$2
60
- });
61
-
62
40
  var payment_form_title$1 = "INFORMACIÓN DE PAGO";
63
41
  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.";
64
42
  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.";
@@ -72,16 +50,6 @@ var esTranslations = {
72
50
  mobile_payment_form_title: mobile_payment_form_title$1
73
51
  };
74
52
 
75
- var es = /*#__PURE__*/Object.freeze({
76
- __proto__: null,
77
- default: esTranslations,
78
- mobile_payment_form_title: mobile_payment_form_title$1,
79
- payment_form_title: payment_form_title$1,
80
- visaCardErrorMessage: visaCardErrorMessage$1,
81
- visaCardErrorMessage2: visaCardErrorMessage2$1,
82
- visaCardTimeout: visaCardTimeout$1
83
- });
84
-
85
53
  var payment_form_title = "ПЛАТЕЖНАЯ ИНФОРМАЦИЯ";
86
54
  var visaCardErrorMessage = "Похоже, номер карты был введен некорректно, поэтому нам не удалось обработать Ваш запрос. ";
87
55
  var visaCardErrorMessage2 = "Попробуйте использовать другую карту. Если проблема повторится, пожалуйста, проверьте введенную информацию или обратитесь в службу поддержки.";
@@ -95,16 +63,6 @@ var ruTranslations = {
95
63
  mobile_payment_form_title: mobile_payment_form_title
96
64
  };
97
65
 
98
- var ru = /*#__PURE__*/Object.freeze({
99
- __proto__: null,
100
- default: ruTranslations,
101
- mobile_payment_form_title: mobile_payment_form_title,
102
- payment_form_title: payment_form_title,
103
- visaCardErrorMessage: visaCardErrorMessage,
104
- visaCardErrorMessage2: visaCardErrorMessage2,
105
- visaCardTimeout: visaCardTimeout
106
- });
107
-
108
66
  class EppLibTranslateService {
109
67
  constructor() {
110
68
  this.currentLang = signal('en');
@@ -113,6 +71,8 @@ class EppLibTranslateService {
113
71
  this.currentLang.set(lang);
114
72
  }
115
73
  get(key) {
74
+ if (!key)
75
+ return key;
116
76
  const langData = EPP_LIB_DICTIONARY[this.currentLang()];
117
77
  return langData[key] || key;
118
78
  }
@@ -132,69 +92,24 @@ const EPP_LIB_DICTIONARY = {
132
92
  ru: ruTranslations
133
93
  };
134
94
 
135
- class EppLibTranslationService {
95
+ class TransPipe {
136
96
  constructor() {
137
- this.transloco = inject(TranslocoService);
97
+ this.trans = inject(EppLibTranslateService);
138
98
  }
139
- setLanguage(lang) {
140
- this.transloco.setActiveLang(lang);
141
- }
142
- getLanguage() {
143
- return this.transloco.getActiveLang();
99
+ transform(key) {
100
+ return of(this.trans.get(key));
144
101
  }
145
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EppLibTranslationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
146
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EppLibTranslationService, providedIn: 'root' }); }
102
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TransPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
103
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: TransPipe, isStandalone: true, name: "vTrans" }); }
147
104
  }
148
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EppLibTranslationService, decorators: [{
149
- type: Injectable,
105
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TransPipe, decorators: [{
106
+ type: Pipe,
150
107
  args: [{
151
- providedIn: 'root'
108
+ name: 'vTrans',
109
+ standalone: true
152
110
  }]
153
111
  }] });
154
112
 
155
- class EppLibLoader {
156
- getTranslation(lang) {
157
- switch (lang) {
158
- case 'cs':
159
- return Promise.resolve().then(function () { return cs; });
160
- case 'ru':
161
- return Promise.resolve().then(function () { return ru; });
162
- case 'es':
163
- return Promise.resolve().then(function () { return es; });
164
- case 'en':
165
- default:
166
- return Promise.resolve().then(function () { return en; });
167
- }
168
- }
169
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EppLibLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
170
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EppLibLoader }); }
171
- }
172
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EppLibLoader, decorators: [{
173
- type: Injectable
174
- }] });
175
-
176
- function provideEppLibTranslations(config) {
177
- return makeEnvironmentProviders([
178
- provideTransloco({
179
- config: {
180
- availableLangs: config.availableLangs,
181
- defaultLang: config.defaultLang,
182
- reRenderOnLangChange: true,
183
- },
184
- loader: EppLibLoader,
185
- }),
186
- // provideTranslocoScope({
187
- // scope: 'epp-lib',
188
- // loader: {
189
- // en: () => import('./i18n/en.json'),
190
- // cs: () => import('./i18n/cs.json'),
191
- // es: () => import('./i18n/es.json'),
192
- // ru: () => import('./i18n/ru.json'),
193
- // },
194
- // })
195
- ]);
196
- }
197
-
198
113
  class Domain {
199
114
  constructor() {
200
115
  this.defaultDomain = '';
@@ -280,24 +195,25 @@ var IframeMessageType;
280
195
  IframeMessageType[IframeMessageType["OPEN_DEPOSIT"] = 3] = "OPEN_DEPOSIT";
281
196
  IframeMessageType[IframeMessageType["OPEN_WITHDRAW"] = 4] = "OPEN_WITHDRAW";
282
197
  IframeMessageType[IframeMessageType["OPEN_TRANSACTION"] = 5] = "OPEN_TRANSACTION";
283
- IframeMessageType[IframeMessageType["CANCEL_WITHDRAW"] = 6] = "CANCEL_WITHDRAW";
284
- IframeMessageType[IframeMessageType["NOTIFICATION"] = 7] = "NOTIFICATION";
285
- IframeMessageType[IframeMessageType["IN_PROGRESS"] = 8] = "IN_PROGRESS";
286
- IframeMessageType[IframeMessageType["CONFIG_UPDATE"] = 9] = "CONFIG_UPDATE";
287
- IframeMessageType[IframeMessageType["OPEN_DEPOSIT_SUBMITED"] = 10] = "OPEN_DEPOSIT_SUBMITED";
288
- IframeMessageType[IframeMessageType["REFRESH_TOKEN"] = 11] = "REFRESH_TOKEN";
289
- IframeMessageType[IframeMessageType["REQUIRE_REFRESH_TOKEN"] = 12] = "REQUIRE_REFRESH_TOKEN";
290
- IframeMessageType[IframeMessageType["TOKEN_INVALID"] = 13] = "TOKEN_INVALID";
291
- IframeMessageType[IframeMessageType["TOKEN_EXPIRED"] = 14] = "TOKEN_EXPIRED";
292
- IframeMessageType[IframeMessageType["REFRESH_IFRAME"] = 15] = "REFRESH_IFRAME";
293
- IframeMessageType[IframeMessageType["INIT_UTM_COOKIE"] = 16] = "INIT_UTM_COOKIE";
294
- IframeMessageType[IframeMessageType["TRACK_GA4"] = 17] = "TRACK_GA4";
295
- IframeMessageType[IframeMessageType["OPEN_WITHDRAWAL_REQUEST_CONFIRMATION"] = 18] = "OPEN_WITHDRAWAL_REQUEST_CONFIRMATION";
296
- IframeMessageType[IframeMessageType["IFRAME_RESIZE"] = 19] = "IFRAME_RESIZE";
297
- IframeMessageType[IframeMessageType["OPEN_WITHDRAWAL_SUBMITTED"] = 20] = "OPEN_WITHDRAWAL_SUBMITTED";
298
- IframeMessageType[IframeMessageType["RESULT_WITHDRAWAL_REQUEST_CONFIRMATION"] = 21] = "RESULT_WITHDRAWAL_REQUEST_CONFIRMATION";
299
- IframeMessageType[IframeMessageType["RESULT_WITHDRAWAL_SUBMITTED"] = 22] = "RESULT_WITHDRAWAL_SUBMITTED";
300
- IframeMessageType[IframeMessageType["UPDATE_PROFILE"] = 23] = "UPDATE_PROFILE";
198
+ IframeMessageType[IframeMessageType["OPEN_BITRIX"] = 6] = "OPEN_BITRIX";
199
+ IframeMessageType[IframeMessageType["CANCEL_WITHDRAW"] = 7] = "CANCEL_WITHDRAW";
200
+ IframeMessageType[IframeMessageType["NOTIFICATION"] = 8] = "NOTIFICATION";
201
+ IframeMessageType[IframeMessageType["IN_PROGRESS"] = 9] = "IN_PROGRESS";
202
+ IframeMessageType[IframeMessageType["CONFIG_UPDATE"] = 10] = "CONFIG_UPDATE";
203
+ IframeMessageType[IframeMessageType["OPEN_DEPOSIT_SUBMITED"] = 11] = "OPEN_DEPOSIT_SUBMITED";
204
+ IframeMessageType[IframeMessageType["REFRESH_TOKEN"] = 12] = "REFRESH_TOKEN";
205
+ IframeMessageType[IframeMessageType["REQUIRE_REFRESH_TOKEN"] = 13] = "REQUIRE_REFRESH_TOKEN";
206
+ IframeMessageType[IframeMessageType["TOKEN_INVALID"] = 14] = "TOKEN_INVALID";
207
+ IframeMessageType[IframeMessageType["TOKEN_EXPIRED"] = 15] = "TOKEN_EXPIRED";
208
+ IframeMessageType[IframeMessageType["REFRESH_IFRAME"] = 16] = "REFRESH_IFRAME";
209
+ IframeMessageType[IframeMessageType["INIT_UTM_COOKIE"] = 17] = "INIT_UTM_COOKIE";
210
+ IframeMessageType[IframeMessageType["TRACK_GA4"] = 18] = "TRACK_GA4";
211
+ IframeMessageType[IframeMessageType["OPEN_WITHDRAWAL_REQUEST_CONFIRMATION"] = 19] = "OPEN_WITHDRAWAL_REQUEST_CONFIRMATION";
212
+ IframeMessageType[IframeMessageType["IFRAME_RESIZE"] = 20] = "IFRAME_RESIZE";
213
+ IframeMessageType[IframeMessageType["OPEN_WITHDRAWAL_SUBMITTED"] = 21] = "OPEN_WITHDRAWAL_SUBMITTED";
214
+ IframeMessageType[IframeMessageType["RESULT_WITHDRAWAL_REQUEST_CONFIRMATION"] = 22] = "RESULT_WITHDRAWAL_REQUEST_CONFIRMATION";
215
+ IframeMessageType[IframeMessageType["RESULT_WITHDRAWAL_SUBMITTED"] = 23] = "RESULT_WITHDRAWAL_SUBMITTED";
216
+ IframeMessageType[IframeMessageType["UPDATE_PROFILE"] = 24] = "UPDATE_PROFILE";
301
217
  })(IframeMessageType || (IframeMessageType = {}));
302
218
 
303
219
  class IframeMessageService {
@@ -573,25 +489,6 @@ class Profile extends Payload {
573
489
  }
574
490
  }
575
491
 
576
- class TranslocoPipe {
577
- constructor() {
578
- this.transloco = inject(TranslocoService);
579
- }
580
- transform(key) {
581
- return this.transloco.translate(key, {}, 'epp-lib');
582
- // return this.transloco.selectTranslate(key, {}, 'epp-lib');
583
- }
584
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TranslocoPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
585
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: TranslocoPipe, isStandalone: true, name: "vTransloco" }); }
586
- }
587
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TranslocoPipe, decorators: [{
588
- type: Pipe,
589
- args: [{
590
- name: 'vTransloco',
591
- standalone: true
592
- }]
593
- }] });
594
-
595
492
  class VoddsLoaderComponent {
596
493
  constructor() {
597
494
  this.message = '';
@@ -610,9 +507,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
610
507
  }] } });
611
508
 
612
509
  class RapydComponent {
613
- constructor(dialogRef, data) {
510
+ constructor(dialogRef, data, eppLibTranslateService) {
614
511
  this.dialogRef = dialogRef;
615
512
  this.data = data;
513
+ this.eppLibTranslateService = eppLibTranslateService;
616
514
  this.isOpen = false;
617
515
  this.checkoutToolKit = undefined;
618
516
  this.visaMasterTimeout = 300;
@@ -652,14 +550,12 @@ class RapydComponent {
652
550
  this.visaMasterTimeout = this.checkout.expiration;
653
551
  this.visaMasterCheckoutId = this.checkout.url;
654
552
  }
655
- // this.translocoService.selectTranslate('mobile_payment_form_title').subscribe(buttonText => {
656
- // console.log('Async translations loaded:', buttonText);
657
- this.checkoutToolKit = this.isMobile() ? this.createCheckoutToolKitOnMobile("DEPOSIT") : this.createCheckoutToolKitOnDesktop("DEPOSIT");
553
+ const title = this.eppLibTranslateService.get('mobile_payment_form_title');
554
+ this.checkoutToolKit = this.isMobile() ? this.createCheckoutToolKitOnMobile(title) : this.createCheckoutToolKitOnDesktop(title);
658
555
  this.displayCheckout();
659
556
  window.addEventListener('onLoading', this.handleLoading);
660
557
  window.addEventListener('onCheckoutPaymentSuccess', this.handleCheckoutPaymentSuccess);
661
558
  window.addEventListener('onCheckoutPaymentFailure', this.handleCheckoutPaymentFailure);
662
- // });
663
559
  }
664
560
  createCheckoutToolKitOnDesktop(buttonText) {
665
561
  return new RapydCheckoutToolkit({
@@ -806,16 +702,16 @@ class RapydComponent {
806
702
  isMobile() {
807
703
  return CommonUtil.isMobileTemplate();
808
704
  }
809
- 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 }); }
810
- 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()) {\r\n <div class=\"v-dialog mobile\">\r\n <div class=\"v-flex-center-between header text-black-cs\">\r\n <div class=\"v-flex-center-none\">\r\n <span class=\"ml-8\">{{ 'mobile_payment_form_title' | transloco }}</span>\r\n </div>\r\n <div class=\"v-flex-center-between mr-8\">\r\n <div (click)=\"closeDialog()\">\r\n <svg width=\"22\" height=\"22\" viewBox=\"0 0 22 22\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\r\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\" />\r\n </svg>\r\n </div>\r\n </div>\r\n </div>\r\n @if (isLoading) {\r\n <div class=\"v-spinner\">\r\n <mat-spinner diameter=\"50\" strokeWidth=\"4\"></mat-spinner>\r\n </div>\r\n }\r\n <div class=\"v-content\" id=\"deposit-id\">\r\n @if (!isLoading && !isShow) {\r\n <div class=\"visa-card-message\">\r\n {{ 'visaCardErrorMessage' | transloco }} <br> {{ 'visaCardErrorMessage2' | transloco }}\r\n </div>\r\n }\r\n <div class=\"vodds-checkout-deposit\">\r\n @if(!isLoading && isShow) {\r\n <div class=\"vodds-checkout-expiration\">\r\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 15\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\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\"\r\n fill=\"#8C8C8C\" />\r\n <line x1=\"10.0303\" y1=\"0.530339\" x2=\"12.8588\" y2=\"3.35877\" stroke=\"#8C8C8C\" stroke-width=\"1.5\" />\r\n <line y1=\"-0.75\" x2=\"4\" y2=\"-0.75\" transform=\"matrix(-0.707107 0.707107 0.707107 0.707107 4.82843 1.06067)\"\r\n stroke=\"#8C8C8C\" stroke-width=\"1.5\" />\r\n </svg>\r\n <span>{{ 'visaCardTimeout' | transloco }} <span class=\"countdown-timer\">{{displayTimer}}</span></span>\r\n </div>\r\n }\r\n <div id=\"rapyd-checkout\" class=\"iframe-wrapper\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n} @else {\r\n <div id=\"visa-card\">\r\n <div class=\"top\">\r\n <h2>{{ 'payment_form_title' | transloco }}</h2>\r\n <svg class=\"clsbtn my-account\" (click)=\"closeDialog()\" width=\"11\" height=\"11\" viewBox=\"0 0 11 11\" fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\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\"\r\n fill=\"white\" />\r\n </svg>\r\n </div>\r\n <div class=\"flex-center\">\r\n <vodds-loader [showAjaxLoader]=\"isLoading\"></vodds-loader>\r\n </div>\r\n @if (!isLoading && !isShow) {\r\n <div class=\"visa-card-message\">\r\n {{ 'visaCardErrorMessage' | transloco }} <br> {{ 'visaCardErrorMessage2' | transloco }}\r\n </div>\r\n }\r\n <div class=\"visa-card-form\" [style]=\"{display: isShow ? 'flex' : 'none'}\">\r\n <div class=\"timer\">\r\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\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\"\r\n fill=\"#B5B5B5\" />\r\n <line x1=\"10.0303\" y1=\"0.530339\" x2=\"12.8588\" y2=\"3.35877\" stroke=\"#B5B5B5\" stroke-width=\"1.5\" />\r\n <line y1=\"-0.75\" x2=\"4\" y2=\"-0.75\"\r\n transform=\"matrix(-0.707107 0.707107 0.707107 0.707107 4.82861 1.06067)\" stroke=\"#B5B5B5\"\r\n stroke-width=\"1.5\" />\r\n </svg>\r\n <span class=\"label\">&nbsp;{{ 'visaCardTimeout' | transloco }}&nbsp;</span> <span class=\"display-time\">\r\n {{displayTimer}}</span>\r\n </div>\r\n <div id=\"rapyd-checkout\"></div>\r\n </div>\r\n </div>\r\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: "ngmodule", type: TranslocoModule }, { kind: "pipe", type: i3.TranslocoPipe, name: "transloco" }] }); }
705
+ 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 }, { token: EppLibTranslateService }], target: i0.ɵɵFactoryTarget.Component }); }
706
+ 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()) {\r\n <div class=\"v-dialog mobile\">\r\n <div class=\"v-flex-center-between header text-black-cs\">\r\n <div class=\"v-flex-center-none\">\r\n <span class=\"ml-8\">{{ 'mobile_payment_form_title' | vTrans }}</span>\r\n </div>\r\n <div class=\"v-flex-center-between mr-8\">\r\n <div (click)=\"closeDialog()\">\r\n <svg width=\"22\" height=\"22\" viewBox=\"0 0 22 22\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\r\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\" />\r\n </svg>\r\n </div>\r\n </div>\r\n </div>\r\n @if (isLoading) {\r\n <div class=\"v-spinner\">\r\n <mat-spinner diameter=\"50\" strokeWidth=\"4\"></mat-spinner>\r\n </div>\r\n }\r\n <div class=\"v-content\" id=\"deposit-id\">\r\n @if (!isLoading && !isShow) {\r\n <div class=\"visa-card-message\">\r\n {{ 'visaCardErrorMessage' | vTrans }} <br> {{ 'visaCardErrorMessage2' | vTrans }}\r\n </div>\r\n }\r\n <div class=\"vodds-checkout-deposit\">\r\n @if(!isLoading && isShow) {\r\n <div class=\"vodds-checkout-expiration\">\r\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 15\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\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\"\r\n fill=\"#8C8C8C\" />\r\n <line x1=\"10.0303\" y1=\"0.530339\" x2=\"12.8588\" y2=\"3.35877\" stroke=\"#8C8C8C\" stroke-width=\"1.5\" />\r\n <line y1=\"-0.75\" x2=\"4\" y2=\"-0.75\" transform=\"matrix(-0.707107 0.707107 0.707107 0.707107 4.82843 1.06067)\"\r\n stroke=\"#8C8C8C\" stroke-width=\"1.5\" />\r\n </svg>\r\n <span>{{ 'visaCardTimeout' | vTrans }} <span class=\"countdown-timer\">{{displayTimer}}</span></span>\r\n </div>\r\n }\r\n <div id=\"rapyd-checkout\" class=\"iframe-wrapper\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n} @else {\r\n <div id=\"visa-card\">\r\n <div class=\"top\">\r\n <h2>{{ 'payment_form_title' | vTrans }}</h2>\r\n <svg class=\"clsbtn my-account\" (click)=\"closeDialog()\" width=\"11\" height=\"11\" viewBox=\"0 0 11 11\" fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\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\"\r\n fill=\"white\" />\r\n </svg>\r\n </div>\r\n <div class=\"flex-center\">\r\n <vodds-loader [showAjaxLoader]=\"isLoading\"></vodds-loader>\r\n </div>\r\n @if (!isLoading && !isShow) {\r\n <div class=\"visa-card-message\">\r\n {{ 'visaCardErrorMessage' | vTrans }} <br> {{ 'visaCardErrorMessage2' | vTrans }}\r\n </div>\r\n }\r\n <div class=\"visa-card-form\" [style]=\"{display: isShow ? 'flex' : 'none'}\">\r\n <div class=\"timer\">\r\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\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\"\r\n fill=\"#B5B5B5\" />\r\n <line x1=\"10.0303\" y1=\"0.530339\" x2=\"12.8588\" y2=\"3.35877\" stroke=\"#B5B5B5\" stroke-width=\"1.5\" />\r\n <line y1=\"-0.75\" x2=\"4\" y2=\"-0.75\"\r\n transform=\"matrix(-0.707107 0.707107 0.707107 0.707107 4.82861 1.06067)\" stroke=\"#B5B5B5\"\r\n stroke-width=\"1.5\" />\r\n </svg>\r\n <span class=\"label\">&nbsp;{{ 'visaCardTimeout' | vTrans }}&nbsp;</span> <span class=\"display-time\">\r\n {{displayTimer}}</span>\r\n </div>\r\n <div id=\"rapyd-checkout\"></div>\r\n </div>\r\n </div>\r\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: i3.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "pipe", type: TransPipe, name: "vTrans" }] }); }
811
707
  }
812
708
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RapydComponent, decorators: [{
813
709
  type: Component,
814
- args: [{ selector: 'v-rapyd', standalone: true, imports: [NgStyle, VoddsLoaderComponent, MatDialogModule, MatProgressSpinnerModule, TranslocoModule], template: "@if(isMobile()) {\r\n <div class=\"v-dialog mobile\">\r\n <div class=\"v-flex-center-between header text-black-cs\">\r\n <div class=\"v-flex-center-none\">\r\n <span class=\"ml-8\">{{ 'mobile_payment_form_title' | transloco }}</span>\r\n </div>\r\n <div class=\"v-flex-center-between mr-8\">\r\n <div (click)=\"closeDialog()\">\r\n <svg width=\"22\" height=\"22\" viewBox=\"0 0 22 22\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\r\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\" />\r\n </svg>\r\n </div>\r\n </div>\r\n </div>\r\n @if (isLoading) {\r\n <div class=\"v-spinner\">\r\n <mat-spinner diameter=\"50\" strokeWidth=\"4\"></mat-spinner>\r\n </div>\r\n }\r\n <div class=\"v-content\" id=\"deposit-id\">\r\n @if (!isLoading && !isShow) {\r\n <div class=\"visa-card-message\">\r\n {{ 'visaCardErrorMessage' | transloco }} <br> {{ 'visaCardErrorMessage2' | transloco }}\r\n </div>\r\n }\r\n <div class=\"vodds-checkout-deposit\">\r\n @if(!isLoading && isShow) {\r\n <div class=\"vodds-checkout-expiration\">\r\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 15\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\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\"\r\n fill=\"#8C8C8C\" />\r\n <line x1=\"10.0303\" y1=\"0.530339\" x2=\"12.8588\" y2=\"3.35877\" stroke=\"#8C8C8C\" stroke-width=\"1.5\" />\r\n <line y1=\"-0.75\" x2=\"4\" y2=\"-0.75\" transform=\"matrix(-0.707107 0.707107 0.707107 0.707107 4.82843 1.06067)\"\r\n stroke=\"#8C8C8C\" stroke-width=\"1.5\" />\r\n </svg>\r\n <span>{{ 'visaCardTimeout' | transloco }} <span class=\"countdown-timer\">{{displayTimer}}</span></span>\r\n </div>\r\n }\r\n <div id=\"rapyd-checkout\" class=\"iframe-wrapper\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n} @else {\r\n <div id=\"visa-card\">\r\n <div class=\"top\">\r\n <h2>{{ 'payment_form_title' | transloco }}</h2>\r\n <svg class=\"clsbtn my-account\" (click)=\"closeDialog()\" width=\"11\" height=\"11\" viewBox=\"0 0 11 11\" fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\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\"\r\n fill=\"white\" />\r\n </svg>\r\n </div>\r\n <div class=\"flex-center\">\r\n <vodds-loader [showAjaxLoader]=\"isLoading\"></vodds-loader>\r\n </div>\r\n @if (!isLoading && !isShow) {\r\n <div class=\"visa-card-message\">\r\n {{ 'visaCardErrorMessage' | transloco }} <br> {{ 'visaCardErrorMessage2' | transloco }}\r\n </div>\r\n }\r\n <div class=\"visa-card-form\" [style]=\"{display: isShow ? 'flex' : 'none'}\">\r\n <div class=\"timer\">\r\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\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\"\r\n fill=\"#B5B5B5\" />\r\n <line x1=\"10.0303\" y1=\"0.530339\" x2=\"12.8588\" y2=\"3.35877\" stroke=\"#B5B5B5\" stroke-width=\"1.5\" />\r\n <line y1=\"-0.75\" x2=\"4\" y2=\"-0.75\"\r\n transform=\"matrix(-0.707107 0.707107 0.707107 0.707107 4.82861 1.06067)\" stroke=\"#B5B5B5\"\r\n stroke-width=\"1.5\" />\r\n </svg>\r\n <span class=\"label\">&nbsp;{{ 'visaCardTimeout' | transloco }}&nbsp;</span> <span class=\"display-time\">\r\n {{displayTimer}}</span>\r\n </div>\r\n <div id=\"rapyd-checkout\"></div>\r\n </div>\r\n </div>\r\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"] }]
710
+ args: [{ selector: 'v-rapyd', standalone: true, imports: [NgStyle, VoddsLoaderComponent, MatDialogModule, MatProgressSpinnerModule, TransPipe], template: "@if(isMobile()) {\r\n <div class=\"v-dialog mobile\">\r\n <div class=\"v-flex-center-between header text-black-cs\">\r\n <div class=\"v-flex-center-none\">\r\n <span class=\"ml-8\">{{ 'mobile_payment_form_title' | vTrans }}</span>\r\n </div>\r\n <div class=\"v-flex-center-between mr-8\">\r\n <div (click)=\"closeDialog()\">\r\n <svg width=\"22\" height=\"22\" viewBox=\"0 0 22 22\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\r\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\" />\r\n </svg>\r\n </div>\r\n </div>\r\n </div>\r\n @if (isLoading) {\r\n <div class=\"v-spinner\">\r\n <mat-spinner diameter=\"50\" strokeWidth=\"4\"></mat-spinner>\r\n </div>\r\n }\r\n <div class=\"v-content\" id=\"deposit-id\">\r\n @if (!isLoading && !isShow) {\r\n <div class=\"visa-card-message\">\r\n {{ 'visaCardErrorMessage' | vTrans }} <br> {{ 'visaCardErrorMessage2' | vTrans }}\r\n </div>\r\n }\r\n <div class=\"vodds-checkout-deposit\">\r\n @if(!isLoading && isShow) {\r\n <div class=\"vodds-checkout-expiration\">\r\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 15\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\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\"\r\n fill=\"#8C8C8C\" />\r\n <line x1=\"10.0303\" y1=\"0.530339\" x2=\"12.8588\" y2=\"3.35877\" stroke=\"#8C8C8C\" stroke-width=\"1.5\" />\r\n <line y1=\"-0.75\" x2=\"4\" y2=\"-0.75\" transform=\"matrix(-0.707107 0.707107 0.707107 0.707107 4.82843 1.06067)\"\r\n stroke=\"#8C8C8C\" stroke-width=\"1.5\" />\r\n </svg>\r\n <span>{{ 'visaCardTimeout' | vTrans }} <span class=\"countdown-timer\">{{displayTimer}}</span></span>\r\n </div>\r\n }\r\n <div id=\"rapyd-checkout\" class=\"iframe-wrapper\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n} @else {\r\n <div id=\"visa-card\">\r\n <div class=\"top\">\r\n <h2>{{ 'payment_form_title' | vTrans }}</h2>\r\n <svg class=\"clsbtn my-account\" (click)=\"closeDialog()\" width=\"11\" height=\"11\" viewBox=\"0 0 11 11\" fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\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\"\r\n fill=\"white\" />\r\n </svg>\r\n </div>\r\n <div class=\"flex-center\">\r\n <vodds-loader [showAjaxLoader]=\"isLoading\"></vodds-loader>\r\n </div>\r\n @if (!isLoading && !isShow) {\r\n <div class=\"visa-card-message\">\r\n {{ 'visaCardErrorMessage' | vTrans }} <br> {{ 'visaCardErrorMessage2' | vTrans }}\r\n </div>\r\n }\r\n <div class=\"visa-card-form\" [style]=\"{display: isShow ? 'flex' : 'none'}\">\r\n <div class=\"timer\">\r\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\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\"\r\n fill=\"#B5B5B5\" />\r\n <line x1=\"10.0303\" y1=\"0.530339\" x2=\"12.8588\" y2=\"3.35877\" stroke=\"#B5B5B5\" stroke-width=\"1.5\" />\r\n <line y1=\"-0.75\" x2=\"4\" y2=\"-0.75\"\r\n transform=\"matrix(-0.707107 0.707107 0.707107 0.707107 4.82861 1.06067)\" stroke=\"#B5B5B5\"\r\n stroke-width=\"1.5\" />\r\n </svg>\r\n <span class=\"label\">&nbsp;{{ 'visaCardTimeout' | vTrans }}&nbsp;</span> <span class=\"display-time\">\r\n {{displayTimer}}</span>\r\n </div>\r\n <div id=\"rapyd-checkout\"></div>\r\n </div>\r\n </div>\r\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"] }]
815
711
  }], ctorParameters: () => [{ type: i1.MatDialogRef }, { type: undefined, decorators: [{
816
712
  type: Inject,
817
713
  args: [MAT_DIALOG_DATA]
818
- }] }], propDecorators: { checkout: [{
714
+ }] }, { type: EppLibTranslateService }], propDecorators: { checkout: [{
819
715
  type: Input
820
716
  }] } });
821
717
 
@@ -834,7 +730,7 @@ class CancelWithdrawDialog {
834
730
  this.dialogRef.close(isCancel);
835
731
  }
836
732
  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 }); }
837
- 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\" [ngClass]=\"isDesktop ? 'desktop' : 'mobile'\">\r\n <div class=\"title\">{{title}}</div>\r\n <div class=\"button-group v-flex-center-between history\">\r\n <div class=\"left\" (click)=\"onClose(true)\">\r\n <span>Yes</span>\r\n </div>\r\n <div class=\"right\" (click)=\"onClose(false)\">\r\n <span>No</span>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".mobile.v-dialog{padding:28px 16px;background:var(--vodds-headerBg)}.desktop.v-dialog{width:400px;height:110px;position:static;padding:20px;display:flex;flex-direction:column;justify-content:center;align-items:center}.mobile .title{font-size:14px;font-weight:800;line-height:16px;text-align:center;padding-bottom:28px}.desktop .title{padding-bottom:24px;text-align:center;font-size:16px;color:#000;margin:0}.button-group.v-flex-center-between{gap:15px;width:100%}.desktop .button-group.v-flex-center-between{display:flex;justify-content:center}.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%}.desktop .left,.desktop .right{color:#fff;width:50px;height:21px;padding:3px 15px;font-size:12px!important;margin-left:5px;margin-right:5px;border-radius:2px;background-image:none;box-shadow:0 2px 5px #787878}.left{background:var(--vodds-cancelBtnBg);color:var(--vodds-textColor)}.desktop .left{background-color:#a82828}.desktop .right{background-color:#85c4b9}.right{background:var(--vodds-focusButtonBg);color:var(--vodds-textColorFocus)}.full{width:100%!important;padding:0 15px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
733
+ 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\" [ngClass]=\"isDesktop ? 'desktop' : 'mobile'\">\r\n <div class=\"title\">{{title}}</div>\r\n <div class=\"button-group v-flex-center-between history\">\r\n <div class=\"left\" (click)=\"onClose(true)\">\r\n <span>Yes</span>\r\n </div>\r\n <div class=\"right\" (click)=\"onClose(false)\">\r\n <span>No</span>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".mobile.v-dialog{padding:28px 16px;background:var(--vodds-headerBg)}.desktop.v-dialog{width:400px;height:110px;position:static;padding:20px;display:flex;flex-direction:column;justify-content:center;align-items:center}.mobile .title{font-size:14px;font-weight:800;line-height:16px;text-align:center;padding-bottom:28px}.desktop .title{padding-bottom:24px;text-align:center;font-size:16px;color:#000;margin:0}.button-group.v-flex-center-between{gap:15px;width:100%}.desktop .button-group.v-flex-center-between{display:flex;justify-content:center}.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%}.desktop .left,.desktop .right{color:#fff;width:50px;height:21px;padding:3px 15px;font-size:12px!important;margin-left:5px;margin-right:5px;border-radius:2px;background-image:none;box-shadow:0 2px 5px #787878}.left{background:var(--vodds-cancelBtnBg);color:var(--vodds-textColor)}.desktop .left{background-color:#a82828}.desktop .right{background-color:#85c4b9}.right{background:var(--vodds-focusButtonBg);color:var(--vodds-textColorFocus)}.full{width:100%!important;padding:0 15px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
838
734
  }
839
735
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CancelWithdrawDialog, decorators: [{
840
736
  type: Component,
@@ -921,7 +817,7 @@ class Payment {
921
817
  this.cache = new Map();
922
818
  this.timer = new Timer(500); // 0.5s
923
819
  this.iframeMessageService = inject(IframeMessageService);
924
- this.snackBar = inject(VoddsSnackBarService);
820
+ this.snackBarService = inject(VoddsSnackBarService);
925
821
  this.rapydScriptLoaded = false;
926
822
  this.msgSub = null;
927
823
  /**
@@ -991,11 +887,12 @@ class Payment {
991
887
  if (!notity.errorMessage && !notity.successMessage)
992
888
  return;
993
889
  const classes = [notity.successMessage ? 'v-success' : 'v-error', undefined].filter((c) => !!c);
994
- this.snackBar.openSnackbar(new VoddsSnackbarConfig({
890
+ this.snackBarService.openSnackbar(new VoddsSnackbarConfig({
995
891
  message: notity.errorMessage ? notity.errorMessage : notity.successMessage,
996
892
  panelClass: classes
997
893
  }));
998
894
  break;
895
+ case IframeMessageType.OPEN_BITRIX:
999
896
  case IframeMessageType.OPEN_DEPOSIT:
1000
897
  case IframeMessageType.OPEN_TRANSACTION:
1001
898
  case IframeMessageType.OPEN_WITHDRAW:
@@ -1159,5 +1056,5 @@ class Payment {
1159
1056
  * Generated bundle index. Do not edit.
1160
1057
  */
1161
1058
 
1162
- export { CancelWithdraw, CancelWithdrawDialog, Checkout, CommonUtil, CountDownTime, Domain, EPP_LIB_DICTIONARY, EppLibTranslateService, EppLibTranslationService, IParam, IframeMessageService, IframeMessageType, Payload, Payment, PaymentType, Profile, RapydComponent, Timer, TranslocoPipe, VoddsHttpService, VoddsLoaderComponent, VoddsSnackBarComponent, VoddsSnackBarService, VoddsSnackbarConfig, provideEppLibTranslations };
1059
+ export { CancelWithdraw, CancelWithdrawDialog, Checkout, CommonUtil, CountDownTime, Domain, EPP_LIB_DICTIONARY, EppLibTranslateService, IParam, IframeMessageService, IframeMessageType, Payload, Payment, PaymentType, Profile, RapydComponent, Timer, TransPipe, VoddsHttpService, VoddsLoaderComponent, VoddsSnackBarComponent, VoddsSnackBarService, VoddsSnackbarConfig };
1163
1060
  //# sourceMappingURL=epp-lib.mjs.map