@global.engg/switcher-lib 0.0.33 → 0.0.52
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/bundles/global.engg-switcher-lib.umd.js +151 -39
- package/bundles/global.engg-switcher-lib.umd.js.map +1 -1
- package/esm2015/lib/switcher.component.js +114 -12
- package/esm2015/lib/switcher.service.js +37 -29
- package/fesm2015/global.engg-switcher-lib.js +149 -39
- package/fesm2015/global.engg-switcher-lib.js.map +1 -1
- package/lib/switcher.component.d.ts +10 -1
- package/lib/switcher.service.d.ts +1 -0
- package/package.json +1 -5
|
@@ -28,23 +28,29 @@ class AppSwitcherService {
|
|
|
28
28
|
this.router = router;
|
|
29
29
|
this._http = _http;
|
|
30
30
|
this.windowRef = windowRef;
|
|
31
|
+
// {
|
|
32
|
+
// "name": "@jitender_sharma/switcher-lib",
|
|
33
|
+
// "version": "0.0.28",
|
|
34
|
+
// "peerDependencies": {
|
|
35
|
+
// "@angular/common": "^12.2.0",
|
|
36
|
+
// "@angular/core": "^12.2.0"
|
|
37
|
+
// },
|
|
38
|
+
// "dependencies": {
|
|
39
|
+
// "tslib": "^2.3.0"
|
|
40
|
+
// }
|
|
41
|
+
// }
|
|
31
42
|
this.SR_CONSTANTS = {
|
|
32
|
-
QuickWebBaseUrl:
|
|
33
|
-
|
|
34
|
-
: 'https://sr-quick-courier-qa-1-web.kartrocket.com/',
|
|
35
|
-
EngageWebBaseUrl: window.location.host == 'app.shiprocket.in'
|
|
36
|
-
? 'https://app-engage.shiprocket.in/'
|
|
37
|
-
: 'https://sr-engage-web-stage.kartrocket.com/',
|
|
43
|
+
QuickWebBaseUrl: 'https://quick.shiprocket.in/',
|
|
44
|
+
EngageWebBaseUrl: 'https://app-engage.shiprocket.in/',
|
|
38
45
|
CheckoutWebBaseUrl: 'https://checkout-app.shiprocket.in/',
|
|
39
46
|
SrfWebBaseUrl: 'https://srf-app.shiprocket.in/',
|
|
40
47
|
FulfillmentWebBaseUrl: 'https://fulfillment.shiprocket.in',
|
|
41
48
|
WigzoWebBaseUrl: 'https://convert.shiprocket.in/wigzo/lite/auth/shiprocket/login',
|
|
42
|
-
PickrrWebBaseUrl:
|
|
43
|
-
|
|
44
|
-
: 'https://shiprocket-to-pickrr.netlify.app/',
|
|
45
|
-
EngagePlusWebBaseURL: window.location.host == 'app.shiprocket.in' ? 'https://app-engage.shiprocket.in/' : 'https://sr-engage-web-qa-3.kartrocket.com/'
|
|
49
|
+
PickrrWebBaseUrl: 'https://dashboard.pickrr.com/',
|
|
50
|
+
EngagePlusWebBaseURL: 'https://app-engage.shiprocket.in/'
|
|
46
51
|
};
|
|
47
|
-
this.
|
|
52
|
+
this.DOMAIN = 'https://app.shiprocket.in';
|
|
53
|
+
this.userData = JSON.parse(localStorage.getItem('ngStorage-USER') || localStorage.getItem('_userData') || '{}');
|
|
48
54
|
this.isDesktop = false;
|
|
49
55
|
this.appSwitchList = [
|
|
50
56
|
{
|
|
@@ -162,10 +168,10 @@ class AppSwitcherService {
|
|
|
162
168
|
}
|
|
163
169
|
else if (app === 'rocketbox') {
|
|
164
170
|
if (this.userData.allow_rb_panel || this.userData.is_rb_user) {
|
|
165
|
-
window.location.href =
|
|
171
|
+
window.location.href = `${this.DOMAIN}/rocketbox`;
|
|
166
172
|
}
|
|
167
173
|
else {
|
|
168
|
-
window.location.href =
|
|
174
|
+
window.location.href = `${this.DOMAIN}/seller/settings/internationalsettings/internationalkyc`;
|
|
169
175
|
}
|
|
170
176
|
}
|
|
171
177
|
else if (((_a = this.userData) === null || _a === void 0 ? void 0 : _a.allow_sr_convert) &&
|
|
@@ -210,17 +216,17 @@ class AppSwitcherService {
|
|
|
210
216
|
}
|
|
211
217
|
else if (app === 'creditScore') {
|
|
212
218
|
if ((_c = this.userData) === null || _c === void 0 ? void 0 : _c.is_crif_enabled) {
|
|
213
|
-
window.open(`https://
|
|
219
|
+
window.open(`https://capital-web.shiprocket.in/crif-home/?utm_source=App-Switcher&utm_medium=Manual-Adhoc&utm_content=crif_credit_score&utm_term=app_switcher_click&authToken=` + this.userData.token, '_blank');
|
|
214
220
|
}
|
|
215
221
|
else {
|
|
216
222
|
window.open(`https://www.shiprocket.in/capital/`, '_blank');
|
|
217
223
|
}
|
|
218
224
|
}
|
|
219
225
|
else if (app === 'capital') {
|
|
220
|
-
window.open(`https://
|
|
226
|
+
window.open(`https://capital-web.shiprocket.in/home/?utm_source=App-Switcher&utm_medium=Manual-Adhoc&utm_content=capital&utm_term=flexi_business_loan&authToken=` + this.userData.token, '_blank');
|
|
221
227
|
}
|
|
222
228
|
else if (app === 'marketing') {
|
|
223
|
-
window.location.href =
|
|
229
|
+
window.location.href = `${this.DOMAIN}/seller/home`;
|
|
224
230
|
}
|
|
225
231
|
else if (app === 'whatsapp_solutions') {
|
|
226
232
|
if (this.userData.allow_engage) {
|
|
@@ -232,20 +238,20 @@ class AppSwitcherService {
|
|
|
232
238
|
}
|
|
233
239
|
else if (app === 'internationalParcels') {
|
|
234
240
|
if (kyc_status == 0 || kyc_status == 1 || kyc_status == 2 || kyc_status == 4) {
|
|
235
|
-
window.location.href =
|
|
241
|
+
window.location.href = `${this.DOMAIN}/seller/internationalDashboard/overview`;
|
|
236
242
|
}
|
|
237
243
|
else {
|
|
238
|
-
window.location.href =
|
|
244
|
+
window.location.href = `${this.DOMAIN}/seller/settings/internationalsettings/internationalkyc`;
|
|
239
245
|
}
|
|
240
246
|
}
|
|
241
247
|
else if (app === 'i_rocketbox') {
|
|
242
|
-
window.location.href =
|
|
248
|
+
window.location.href = `${this.DOMAIN}/seller/settings/internationalsettings/internationalkyc`;
|
|
243
249
|
}
|
|
244
250
|
else if (app === 'brand_launch') {
|
|
245
|
-
window.location.href =
|
|
251
|
+
window.location.href = `${this.DOMAIN}/seller/settings/internationalsettings/internationalkyc`;
|
|
246
252
|
}
|
|
247
253
|
else if (app === 'express_parcel') {
|
|
248
|
-
window.location.href =
|
|
254
|
+
window.location.href = `${this.DOMAIN}/seller/home`;
|
|
249
255
|
}
|
|
250
256
|
else if (app === 'instant_deliveries') {
|
|
251
257
|
window.open(`${this.SR_CONSTANTS.QuickWebBaseUrl}gate-keeper?token=${this.userData.token}`, '_blank');
|
|
@@ -255,10 +261,10 @@ class AppSwitcherService {
|
|
|
255
261
|
window.open(`https://fulfillment.shiprocket.in/`, '_blank');
|
|
256
262
|
}
|
|
257
263
|
else if (app == 'srocketbox') {
|
|
258
|
-
window.location.href =
|
|
264
|
+
window.location.href = `${this.DOMAIN}/seller/settings/internationalsettings/internationalkyc`;
|
|
259
265
|
}
|
|
260
266
|
else if (app == 'somuni') {
|
|
261
|
-
window.location.href =
|
|
267
|
+
window.location.href = `${this.DOMAIN}/seller/home`;
|
|
262
268
|
}
|
|
263
269
|
}
|
|
264
270
|
sendGaEvent(event) {
|
|
@@ -354,7 +360,7 @@ class AppSwitcherService {
|
|
|
354
360
|
this.send(category, eventName, label);
|
|
355
361
|
}
|
|
356
362
|
send(eventCategory, eventAction, eventLabel) {
|
|
357
|
-
var _a;
|
|
363
|
+
var _a, _b, _c;
|
|
358
364
|
const source = ((_a = document.cookie
|
|
359
365
|
.split('; ')
|
|
360
366
|
.find(row => row.startsWith('UTM='))) === null || _a === void 0 ? void 0 : _a.split('=')[1]) || '';
|
|
@@ -363,10 +369,12 @@ class AppSwitcherService {
|
|
|
363
369
|
eventAction: eventAction,
|
|
364
370
|
eventLabel: eventLabel ? eventLabel : source,
|
|
365
371
|
});
|
|
366
|
-
this.windowRef.nativeWindow.gtag_g4
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
372
|
+
if (((_c = (_b = this.windowRef) === null || _b === void 0 ? void 0 : _b.nativeWindow) === null || _c === void 0 ? void 0 : _c.gtag_g4) && typeof this.windowRef.nativeWindow.gtag_g4 === 'function') {
|
|
373
|
+
this.windowRef.nativeWindow.gtag_g4('event', eventAction, {
|
|
374
|
+
event_category: eventCategory,
|
|
375
|
+
event_label: eventLabel ? eventLabel : source,
|
|
376
|
+
});
|
|
377
|
+
}
|
|
370
378
|
}
|
|
371
379
|
fetchOpenInAppLink() {
|
|
372
380
|
this._http.get('oneimpression/open-app-redirection_url')
|
|
@@ -401,7 +409,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
401
409
|
}]
|
|
402
410
|
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i2.HttpClient }, { type: WindowRef }]; } });
|
|
403
411
|
|
|
404
|
-
const user = JSON.parse(localStorage.getItem('ngStorage-USER') || '{}');
|
|
412
|
+
const user = JSON.parse(localStorage.getItem('ngStorage-USER') || localStorage.getItem('_userData') || '{}');
|
|
405
413
|
class SwitcherComponent {
|
|
406
414
|
constructor(appSwitcherService, _http, windowRef) {
|
|
407
415
|
this.appSwitcherService = appSwitcherService;
|
|
@@ -412,21 +420,25 @@ class SwitcherComponent {
|
|
|
412
420
|
this.isDesktop = false;
|
|
413
421
|
this.company_id = '';
|
|
414
422
|
this.userData = user;
|
|
423
|
+
this.recentUsedProducts = [];
|
|
415
424
|
this.appSwitcherApps = {
|
|
416
425
|
shipping_fulfilment_india: [
|
|
417
426
|
{
|
|
427
|
+
id: 1,
|
|
418
428
|
appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Express-Parcel.png',
|
|
419
429
|
appName: 'express_parcel',
|
|
420
430
|
checkKey: 'Domestic Shipping',
|
|
421
431
|
displayName: 'Domestic Shipping',
|
|
422
432
|
subText: 'Multiple couriers, SDD/NDD, widest reach'
|
|
423
433
|
}, {
|
|
434
|
+
id: 2,
|
|
424
435
|
appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Instant-deliveries.png',
|
|
425
436
|
appName: 'instant_deliveries',
|
|
426
437
|
checkKey: 'Instant deliveries',
|
|
427
438
|
displayName: 'Instant deliveries',
|
|
428
439
|
subText: 'Multiple couriers, Hyperlocal, Intracity'
|
|
429
440
|
}, {
|
|
441
|
+
id: 3,
|
|
430
442
|
appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Warehousing.png',
|
|
431
443
|
appName: 'fullfilment',
|
|
432
444
|
checkKey: 'Warehousing',
|
|
@@ -434,6 +446,7 @@ class SwitcherComponent {
|
|
|
434
446
|
subText: 'End-to-end brand fulfilment '
|
|
435
447
|
},
|
|
436
448
|
{
|
|
449
|
+
id: 4,
|
|
437
450
|
appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Cargo.png',
|
|
438
451
|
appName: 'rocketbox',
|
|
439
452
|
checkKey: 'allow_rocketbox',
|
|
@@ -442,18 +455,21 @@ class SwitcherComponent {
|
|
|
442
455
|
},
|
|
443
456
|
],
|
|
444
457
|
cross_border_commerce: [{
|
|
458
|
+
id: 5,
|
|
445
459
|
appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/International-Parcels.png',
|
|
446
460
|
appName: 'internationalParcels',
|
|
447
461
|
checkKey: 'internationalParcels',
|
|
448
462
|
displayName: 'International Parcels',
|
|
449
463
|
subText: 'Ship to 220+ countries'
|
|
450
464
|
}, {
|
|
465
|
+
id: 6,
|
|
451
466
|
appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/International-Cargo.png',
|
|
452
467
|
appName: 'i_rocketbox',
|
|
453
468
|
checkKey: 'i_allow_rocketbox',
|
|
454
469
|
displayName: 'International Cargo',
|
|
455
470
|
subText: 'Air & Ocean freight'
|
|
456
471
|
}, {
|
|
472
|
+
id: 7,
|
|
457
473
|
appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Brand-Launch.png',
|
|
458
474
|
appName: 'brand_launch',
|
|
459
475
|
checkKey: 'brand_launch',
|
|
@@ -461,12 +477,14 @@ class SwitcherComponent {
|
|
|
461
477
|
subText: 'Expand your brand globally '
|
|
462
478
|
}],
|
|
463
479
|
growth_marketing_solutions: [{
|
|
480
|
+
id: 8,
|
|
464
481
|
appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Checkout.png',
|
|
465
482
|
appName: 'checkout',
|
|
466
483
|
checkKey: 'allow_checkout',
|
|
467
484
|
displayName: 'Checkout',
|
|
468
485
|
subText: 'Simplified one-click checkout'
|
|
469
486
|
}, {
|
|
487
|
+
id: 9,
|
|
470
488
|
appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Whatsapp-Solutions.png',
|
|
471
489
|
appName: 'whatsapp_solutions',
|
|
472
490
|
checkKey: 'whatsapp_solutions',
|
|
@@ -474,12 +492,14 @@ class SwitcherComponent {
|
|
|
474
492
|
subText: 'Marketing, commerce, chatbot - ',
|
|
475
493
|
nextLineLabel: ''
|
|
476
494
|
}, {
|
|
495
|
+
id: 10,
|
|
477
496
|
appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Marketing.png',
|
|
478
497
|
appName: 'marketing',
|
|
479
498
|
checkKey: 'marketing',
|
|
480
499
|
displayName: 'Marketing',
|
|
481
500
|
subText: 'Digital and influencer marketing & more '
|
|
482
501
|
}, {
|
|
502
|
+
id: 11,
|
|
483
503
|
appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/trends.png',
|
|
484
504
|
appName: 'trends',
|
|
485
505
|
checkKey: 'allow_trends',
|
|
@@ -487,12 +507,14 @@ class SwitcherComponent {
|
|
|
487
507
|
subText: 'E-commerce analytics for Bharat'
|
|
488
508
|
}],
|
|
489
509
|
financial_servicea: [{
|
|
510
|
+
id: 12,
|
|
490
511
|
appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Capital.png',
|
|
491
512
|
appName: 'capital',
|
|
492
513
|
checkKey: 'Capital',
|
|
493
514
|
displayName: 'Business Loan',
|
|
494
515
|
subText: 'Flexible Business loan up to ₹20 Lakhs'
|
|
495
516
|
}, {
|
|
517
|
+
id: 13,
|
|
496
518
|
appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Credit-Score.png',
|
|
497
519
|
appName: 'creditScore',
|
|
498
520
|
checkKey: 'Credit Score',
|
|
@@ -500,6 +522,7 @@ class SwitcherComponent {
|
|
|
500
522
|
subText: 'Check your credit score for free '
|
|
501
523
|
}],
|
|
502
524
|
other_services: [{
|
|
525
|
+
id: 14,
|
|
503
526
|
appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Omnichannel.png',
|
|
504
527
|
appName: 'omuni',
|
|
505
528
|
checkKey: 'allow_omuni',
|
|
@@ -511,7 +534,6 @@ class SwitcherComponent {
|
|
|
511
534
|
this.MOBILE_BREAKPOINT = 768;
|
|
512
535
|
this.user = user;
|
|
513
536
|
this.appSwitchList = [];
|
|
514
|
-
console.log(this.data);
|
|
515
537
|
this.resizeListener = () => {
|
|
516
538
|
// Clear the timeout if it exists
|
|
517
539
|
if (this.resizeTimeout) {
|
|
@@ -533,6 +555,7 @@ class SwitcherComponent {
|
|
|
533
555
|
if (sidebar) {
|
|
534
556
|
sidebar.setAttribute('style', 'display: none');
|
|
535
557
|
}
|
|
558
|
+
this.getCompanyService();
|
|
536
559
|
}
|
|
537
560
|
closeModal() {
|
|
538
561
|
this.isModalOpen = false;
|
|
@@ -542,17 +565,15 @@ class SwitcherComponent {
|
|
|
542
565
|
}
|
|
543
566
|
}
|
|
544
567
|
ngOnInit() {
|
|
545
|
-
|
|
546
|
-
this.
|
|
547
|
-
|
|
568
|
+
var _a;
|
|
569
|
+
this.userJson = JSON.parse(localStorage.getItem('ngStorage-USER') || localStorage.getItem('_userData') || '{}');
|
|
570
|
+
this.company_id = this.userJson != null ? (_a = this.userJson) === null || _a === void 0 ? void 0 : _a.company_id : '';
|
|
548
571
|
if (this.data) {
|
|
549
572
|
const appsToRemove = this.data.split(',').map(app => app.trim());
|
|
550
|
-
// Filter each category in appSwitcherApps
|
|
551
573
|
Object.keys(this.appSwitcherApps).forEach((category) => {
|
|
552
574
|
this.appSwitcherApps[category] = this.appSwitcherApps[category].filter((app) => !appsToRemove.includes(app.appName));
|
|
553
575
|
});
|
|
554
576
|
}
|
|
555
|
-
this.getKYCData();
|
|
556
577
|
}
|
|
557
578
|
ngOnDestroy() {
|
|
558
579
|
this.windowRef.nativeWindow.removeEventListener('resize', this.resizeListener);
|
|
@@ -573,16 +594,105 @@ class SwitcherComponent {
|
|
|
573
594
|
}, (error) => {
|
|
574
595
|
});
|
|
575
596
|
}
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
597
|
+
getBaseUrl() {
|
|
598
|
+
const currentUrl = window.location.hostname;
|
|
599
|
+
if (currentUrl.includes('multichannel-channels-partnerships-qa-web.kartrocket.com')) {
|
|
600
|
+
return 'https://multichannel-channels-partnerships-qa-api.kartrocket.com/v1/';
|
|
601
|
+
}
|
|
602
|
+
else if (currentUrl.includes('app.shiprocket.in')) {
|
|
603
|
+
return 'https://apiv2.shiprocket.co/v1/';
|
|
604
|
+
}
|
|
605
|
+
else {
|
|
606
|
+
return 'https://apiv2.shiprocket.co/v1/';
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
callEvent(type, displayName) {
|
|
610
|
+
// List of apps that require API call before redirection
|
|
611
|
+
const apiFirstApps = [
|
|
612
|
+
'rocketbox', 'marketing', 'internationalParcels',
|
|
613
|
+
'i_rocketbox', 'brand_launch', 'express_parcel',
|
|
614
|
+
'srocketbox', 'somuni'
|
|
615
|
+
];
|
|
616
|
+
// If not in apiFirstApps list, redirect immediately
|
|
617
|
+
if (!apiFirstApps.includes(type)) {
|
|
618
|
+
this.appSwitcherService.appSwitch(type, this.kycStatus);
|
|
619
|
+
}
|
|
620
|
+
this.appSwitcherService.send('Swithcer Service Selection', displayName, 'Company Id : ' + this.company_id);
|
|
621
|
+
// Find the app object across all categories that matches the displayName
|
|
622
|
+
let appId;
|
|
623
|
+
let clickedApp;
|
|
624
|
+
Object.values(this.appSwitcherApps).forEach((category) => {
|
|
625
|
+
const categoryArray = category;
|
|
626
|
+
const app = categoryArray.find(app => app.displayName === displayName);
|
|
627
|
+
if (app) {
|
|
628
|
+
appId = app.id;
|
|
629
|
+
clickedApp = app;
|
|
630
|
+
}
|
|
631
|
+
});
|
|
632
|
+
const data = {
|
|
633
|
+
service_id: appId.toString()
|
|
634
|
+
};
|
|
635
|
+
const headers = {
|
|
636
|
+
'Content-Type': 'application/json',
|
|
637
|
+
'Authorization': 'Bearer ' + this.userData.token
|
|
638
|
+
};
|
|
639
|
+
this._http.post(`${this.getBaseUrl()}settings/company-service`, data, { headers }).subscribe((res) => {
|
|
640
|
+
// API call complete, but we don't wait for it
|
|
641
|
+
}, (error) => { });
|
|
642
|
+
// Handle UI updates and navigation independently with timeout
|
|
643
|
+
setTimeout(() => {
|
|
644
|
+
if (clickedApp) {
|
|
645
|
+
const newRecentProduct = {
|
|
646
|
+
appName: clickedApp.appName,
|
|
647
|
+
appLogo: clickedApp.appLogo,
|
|
648
|
+
displayName: clickedApp.displayName
|
|
649
|
+
};
|
|
650
|
+
// Remove the clicked item if it exists
|
|
651
|
+
this.recentUsedProducts = this.recentUsedProducts.filter(item => item.displayName !== displayName);
|
|
652
|
+
// Add new item at the beginning
|
|
653
|
+
this.recentUsedProducts.unshift(newRecentProduct);
|
|
654
|
+
// Keep only the first 4 elements
|
|
655
|
+
this.recentUsedProducts = this.recentUsedProducts.slice(0, 4);
|
|
656
|
+
// For apps in apiFirstApps list, redirect after timeout
|
|
657
|
+
if (apiFirstApps.includes(type)) {
|
|
658
|
+
this.appSwitcherService.appSwitch(type, this.kycStatus);
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
}, 500); // 500ms timeout
|
|
579
662
|
}
|
|
580
663
|
appSwitch(app) {
|
|
581
664
|
this.appSwitcherService.appSwitch(app);
|
|
582
665
|
}
|
|
666
|
+
getCompanyService() {
|
|
667
|
+
const headers = {
|
|
668
|
+
'Content-Type': 'application/json',
|
|
669
|
+
'Authorization': 'Bearer ' + this.userData.token
|
|
670
|
+
};
|
|
671
|
+
this._http.get(`${this.getBaseUrl()}settings/company-service`, { headers }).subscribe((res) => {
|
|
672
|
+
this.appSwitchList = res.data;
|
|
673
|
+
// Map the API response to recentUsedProducts
|
|
674
|
+
this.recentUsedProducts = res.data.map((item) => {
|
|
675
|
+
// Search for matching app across all categories
|
|
676
|
+
let matchedApp;
|
|
677
|
+
Object.values(this.appSwitcherApps).forEach((category) => {
|
|
678
|
+
const categoryArray = category;
|
|
679
|
+
const app = categoryArray.find(app => app.id === item.service_id);
|
|
680
|
+
if (app) {
|
|
681
|
+
matchedApp = app;
|
|
682
|
+
}
|
|
683
|
+
});
|
|
684
|
+
// Return mapped object if match found, otherwise return null
|
|
685
|
+
return matchedApp ? {
|
|
686
|
+
appName: matchedApp.appName,
|
|
687
|
+
appLogo: matchedApp.appLogo,
|
|
688
|
+
displayName: matchedApp.displayName
|
|
689
|
+
} : null;
|
|
690
|
+
}).filter((item) => item !== null);
|
|
691
|
+
});
|
|
692
|
+
}
|
|
583
693
|
}
|
|
584
694
|
SwitcherComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SwitcherComponent, deps: [{ token: AppSwitcherService }, { token: i2.HttpClient }, { token: WindowRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
585
|
-
SwitcherComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SwitcherComponent, selector: "lib-switcher", inputs: { data: "data" }, ngImport: i0, template: "<div class=\"\" [style.display]=\"!isMobileView ? 'block' : 'none'\">\n <button class=\"p-0 me-2 appSwitcherBtn\" (click)=\"openModal()\" *ngIf=\"userData.allow_checkout || userData.allow_engage || userData.allow_fbs || !userData.allow_fbs\">\n <div class=\"appSwitcherTxt\">\n ALL PRODUCTS\n <img class=\"ml-2 position-relative w-15\" style=\"top: -1px\" src=\"https://sr-sidebar.shiprocket.in/assets/svg/apps.svg\" />\n </div>\n </button>\n</div>\n\n<div [style.display]=\"isMobileView ? 'block' : 'none'\">\n <button\n (click)=\"openModal()\"\n class=\"switcher_icon\"\n >\n <img\n src=\"https://sr-sidebar.shiprocket.in/assets/svg/apps.svg\"\n alt=\"apps\"\n class=\"logo\"\n />\n </button>\n</div>\n\n<div *ngIf=\"isModalOpen\" class=\"modal\" [@modalAnimation]>\n <div class=\"modal-content_new\">\n <span class=\"close\" (click)=\"closeModal()\"><img src=\"https://sr-sidebar.shiprocket.in/assets/svg/cross-dark.svg\" /></span>\n \n <!-- ------------------------------------------------------------------------------------------------- -->\n\n\n <div class=\"mobileScreen\">\n\n\n <div class=\"Topheader\">\n <h1>Select the product you would like to experience </h1>\n <p>Elevate your business with our industry-leading products.</p>\n </div>\n\n\n <ng-container *ngIf=\"appSwitchList && appSwitchList.length\">\n <h5 class=\"section_heading\">Featured Products</h5>\n <div class=\"d-flex gap-4 flex-wrap\">\n <div class=\"box_section featured_section mob_box_section\" (click)=\"appSwitch(item.appName)\" *ngFor=\"let item of appSwitchList; let i = index\">\n <img class=\"icon\" [src]=\"item.appLogo\" />\n <h6>{{item.displayName}}</h6>\n <span class=\"getstarted mob_getstarted\">Get Started <img src=\"https://app.shiprocket.in/seller/assets/images/arrow-small-left.svg\" /></span>\n </div>\n </div>\n </ng-container>\n \n <!-- ------------------------------------------------------------------------------------------------- -->\n \n\n\n \n <h5 class=\"section_heading\">Shipping & Fulfilment in India</h5>\n <div class=\"d-flex flex-wrap gap-4\" >\n <div class=\"box_section\" *ngFor=\"let app of appSwitcherApps.shipping_fulfilment_india\" (click)=\"callEvent(app.appName, app.displayName)\">\n <img class=\"icon\" [src]=\"app.appLogo\"/>\n <h6>{{app.displayName}}</h6>\n <p>{{app.subText}}</p>\n <span class=\"getstarted\">Get Started <img src=\"https://app.shiprocket.in/seller/assets/images/arrow-small-left.svg\"/></span>\n </div>\n </div>\n \n \n \n <h5 class=\"section_heading\">Cross Border Commerce</h5>\n <div class=\"d-flex flex-wrap gap-4\">\n <div class=\"box_section\" *ngFor=\"let app of appSwitcherApps.cross_border_commerce\" (click)=\"callEvent(app.appName, app.displayName)\">\n <img class=\"icon\" [src]=\"app.appLogo\"/>\n <h6>{{app.displayName}}</h6>\n <p>{{app.subText}}</p>\n <span class=\"getstarted\">Get Started <img src=\"https://app.shiprocket.in/seller/assets/images/arrow-small-left.svg\"/></span>\n </div>\n \n </div>\n \n \n \n <h5 class=\"section_heading\">Growth & Marketing Solutions</h5>\n <div class=\"d-flex flex-wrap gap-4\">\n <div class=\"box_section\" *ngFor=\"let app of appSwitcherApps.growth_marketing_solutions\" (click)=\"callEvent(app.appName, app.displayName)\">\n <img class=\"icon\" [src]=\"app.appLogo\"/>\n <h6>{{app.displayName}}</h6>\n <p>{{app.subText}} <span *ngIf=\"app.nextLineLabel\"><br>{{app.nextLineLabel}} </span></p>\n <span class=\"getstarted\">Get Started <img src=\"https://app.shiprocket.in/seller/assets/images/arrow-small-left.svg\"/></span>\n </div>\n </div>\n \n \n <h5 class=\"section_heading\">Financial Services</h5>\n <div class=\"d-flex flex-wrap gap-4\">\n <div class=\"box_section\" *ngFor=\"let app of appSwitcherApps.financial_servicea\" (click)=\"callEvent(app.appName, app.displayName)\">\n <span class=\"newtag\" *ngIf=\"app.appName === 'capital' || (app.appName === 'creditScore' && userData.is_crif_enabled)\"><em>New</em></span>\n <span class=\"newtag\" *ngIf=\"app.appName === 'creditScore' && !userData.is_crif_enabled\"><em>Coming Soon</em></span>\n <img class=\"icon\" [src]=\"app.appLogo\"/>\n <h6>{{app.displayName}}</h6>\n <p>{{app.subText}}</p>\n <span class=\"getstarted\">Get Started <img src=\"https://app.shiprocket.in/seller/assets/images/arrow-small-left.svg\"/></span>\n </div>\n </div>\n <h5 class=\"section_heading\">Other services</h5>\n <div class=\"d-flex flex-wrap gap-4\">\n <div class=\"box_section other_ser\" *ngFor=\"let app of appSwitcherApps.other_services\" (click)=\"callEvent(app.appName, app.displayName)\">\n <img class=\"icon\" src=\"https://sr-cdn-1.shiprocket.in/img/Web_New/Omnichannel.png\"/>\n <h6>Omnichannel</h6>\n <p style=\"text-wrap: wrap;\">Manage all sales channels - online + offline at one place</p>\n <span class=\"getstarted\" style=\"bottom: 5px;\">Get Started <img src=\"https://app.shiprocket.in/seller/assets/images/arrow-small-left.svg\"/></span>\n </div>\n </div>\n </div>\n\n \n\n\n </div>\n</div> ", styles: ["@import\"https://fonts.cdnfonts.com/css/sf-pro-display\";.modal{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;z-index:1000;display:flex;justify-content:center;align-items:center}.modal-content_new{position:relative;width:100%;height:100%;background-color:#f7f5fb;overflow-y:scroll}.close{position:absolute;top:20px;right:20px;font-size:24px;cursor:pointer;z-index:1001}::ng-deep .ad-padding-b{min-height:0!important}.d-flex{display:flex;flex-wrap:wrap}.gap-4{grid-gap:16px;gap:16px}.mobileScreen{background:#F7F5FB;padding:80px;background-image:url(https://sr-cdn-1.shiprocket.in/img/Web/Bg-Pattern.svg);background-repeat:no-repeat;background-size:contain;background-position:top right}.Topheader{margin-bottom:35px}.Topheader h1{color:#1d1d1d;font-size:36px!important;line-height:32px!important;letter-spacing:-.48px;margin-top:0;font-family:\"SF Pro Display\",sans-serif;font-weight:500}.Topheader h1 span{color:#745be7}.Topheader p{color:#757575;font-size:18px;line-height:normal;margin-top:10px}.section_heading{color:#676767;font-size:20px!important;text-transform:uppercase;margin-bottom:0;margin-top:60px}.featured_section{width:225px!important}.box_section{height:242px;padding:12px;border-radius:16px;background:#FBFBFB;box-shadow:0 5px 20px #1b1f440d;cursor:pointer;margin-top:16px;margin-bottom:0;position:relative;width:268px}.box_section img.icon{width:100%;border-radius:10px}.box_section h6{color:#1d1d1d;font-size:18px!important;margin-top:14px;font-family:\"SF Pro Display\",sans-serif;font-weight:500;margin-bottom:8px;text-transform:capitalize;line-height:22px!important;text-wrap:wrap}.box_section p{color:#828488;font-size:14px;line-height:18px;margin-bottom:0;font-family:\"SF Pro Display\",sans-serif;font-weight:400}.box_section span.getstarted{color:#745be7;font-size:16px;position:absolute;bottom:18px;font-family:\"SF Pro Display\",sans-serif;font-weight:500}.box_section span img{margin-left:5px}.box_section .newtag{position:absolute;right:5px;padding:3px 8px 1px;background:#DDFFE8;top:5px;border-radius:30px}.box_section .newtag em{position:relative;border-radius:4px;padding:1px 8px;color:#3fc06a;font-size:10px;top:-1px;font-style:normal;text-align:center;width:100%;display:block;left:0px;line-height:20px}.appSwitcherBtn{border-radius:4px;border:0;cursor:pointer;line-height:12px;color:#1d1d1d;font-size:12px;background:linear-gradient(169deg,#12c2e999 40.8%,#12c2e999 45%,#c471ed99 60%);font-weight:400;transition:background-color .3s}.appSwitcherBtn:hover{background-color:#fff}.appSwitcherTxt{background:linear-gradient(150.38deg,#fefefe -5.2%,#e7f9fd 7.94%,#f9f1fd 40.98%);padding:8px 12px 6px;border-radius:4px;margin:1px;transition:background-color .5s}.appSwitcherTxt:hover{background-color:#f9f8fe!important}.appSwitcherTxt:hover{background-color:#f9f8fe!important;transition:.5s}@media only screen and (max-width:362px){.box_section h6{font-size:12px!important}.box_section p,.box_section span.getstarted{font-size:11px}}@media (min-width: 768px) and (max-width: 1059px){.box_section h6{font-size:16px!important}.box_section p{font-size:13px!important}.box_section{height:206px!important;width:188px!important}.box_section span.getstarted{font-size:12px!important}.section_heading{font-size:16px!important}}@media (max-width: 767px){.mob_box_section{width:100%!important;padding:12px!important;border-radius:16px!important;background:#FBFBFB!important;box-shadow:0 5px 20px #1b1f440d!important;cursor:pointer!important;margin-top:16px!important;margin-bottom:0!important;position:relative!important;line-height:18px!important;min-height:160px!important}.mob_box_section img.mob_icon{width:100%!important;border-radius:6px!important}.mob_box_section h6{color:#1b1f44!important;font-size:14px!important;margin-top:10px!important;font-family:\"SF Pro Display\",sans-serif!important;margin-bottom:5px!important;text-transform:capitalize!important;min-height:34px!important;font-weight:500!important;line-height:20px!important}.mob_getstarted{color:#745be7!important}.switcher_icon{border:none;background:#fff;position:relative;top:0px;box-shadow:0 -1px 4px #0000000f;padding:11px 7px}.mobileScreen{padding:40px}.box_section{flex:0 0 calc(50% - 16px);box-sizing:border-box}.box_section span.getstarted{bottom:10px;font-size:14px}.box_section{padding:10px;margin-top:0;height:auto}.box_section h6{font-size:14px;margin-top:10px}.box_section p{font-size:12px;line-height:1.3;max-height:70px;min-height:55px}.other_ser p{min-height:65px!important}.box_section .icon{height:auto}.getstarted{font-size:12px}.Topheader h1{font-size:25px!important;line-height:30px!important}.Topheader p{font-size:14px}.section_heading{font-size:16px!important;margin:45px 0 10px}}\n"], directives: [{ type: i4.NgIf, selector: "[ngIf]" }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]" }], animations: [
|
|
695
|
+
SwitcherComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SwitcherComponent, selector: "lib-switcher", inputs: { data: "data" }, ngImport: i0, template: "<div class=\"\" [style.display]=\"!isMobileView ? 'block' : 'none'\">\n <button class=\"appSwitcherBtn\" style=\"padding: 0 !important; margin-right: .5em !important;\" (click)=\"openModal()\" *ngIf=\"userData.allow_checkout || userData.allow_engage || userData.allow_fbs || !userData.allow_fbs\">\n <div class=\"appSwitcherTxt\" style=\"display: flex; align-items: center;\">\n <span>ALL PRODUCTS</span>\n <img style=\"top: -1px; width: 15px; position: relative; margin-left: 4px;\" src=\"https://sr-sidebar.shiprocket.in/assets/svg/apps.svg\" />\n </div>\n </button>\n</div>\n\n<div [style.display]=\"isMobileView ? 'block' : 'none'\">\n <button\n (click)=\"openModal()\"\n class=\"switcher_icon\"\n >\n <img\n src=\"https://sr-sidebar.shiprocket.in/assets/svg/apps.svg\"\n alt=\"apps\"\n class=\"logo\"\n />\n </button>\n</div>\n\n<div *ngIf=\"isModalOpen\" class=\"modal\" [@modalAnimation]>\n <div class=\"modal-content_new\">\n <span class=\"close\" (click)=\"closeModal()\"><img src=\"https://sr-sidebar.shiprocket.in/assets/svg/cross-dark.svg\" /></span>\n \n <!-- ------------------------------------------------------------------------------------------------- -->\n\n\n <div class=\"mobileScreen\">\n\n\n <div class=\"Topheader\">\n <h1>Select the product you would like to experience </h1>\n <p>Elevate your business with our industry-leading products.</p>\n </div>\n\n\n <ng-container *ngIf=\"recentUsedProducts && recentUsedProducts.length\">\n <h5 class=\"section_heading\">Recently Used Products</h5>\n <div class=\"d-flex gap-4 flex-wrap\">\n <div class=\"box_section featured_section mob_box_section h-195px\" (click)=\"appSwitch(item.appName)\" *ngFor=\"let item of recentUsedProducts; let i = index\">\n <img class=\"icon\" [src]=\"item.appLogo\" />\n <h6>{{item.displayName}}</h6>\n <span class=\"getstarted mob_getstarted\">Get Started <img src=\"https://app.shiprocket.in/seller/assets/images/arrow-small-left.svg\" /></span>\n </div>\n </div>\n </ng-container>\n\n\n <!-- <ng-container *ngIf=\"appSwitchList && appSwitchList.length\">\n <h5 class=\"section_heading\">Featured Products</h5>\n <div class=\"d-flex gap-4 flex-wrap\">\n <div class=\"box_section featured_section mob_box_section\" (click)=\"appSwitch(item.appName)\" *ngFor=\"let item of appSwitchList; let i = index\">\n <img class=\"icon\" [src]=\"item.appLogo\" />\n <h6>{{item.displayName}}</h6>\n <span class=\"getstarted mob_getstarted\">Get Started <img src=\"https://app.shiprocket.in/seller/assets/images/arrow-small-left.svg\" /></span>\n </div>\n </div>\n </ng-container> -->\n \n <!-- ------------------------------------------------------------------------------------------------- -->\n \n\n\n \n <h5 class=\"section_heading\">Shipping & Fulfilment in India</h5>\n <div class=\"d-flex flex-wrap gap-4\" >\n <div class=\"box_section\" *ngFor=\"let app of appSwitcherApps.shipping_fulfilment_india\" (click)=\"callEvent(app.appName, app.displayName)\">\n <img class=\"icon\" [src]=\"app.appLogo\"/>\n <h6>{{app.displayName}}</h6>\n <p>{{app.subText}}</p>\n <span class=\"getstarted\">Get Started <img src=\"https://app.shiprocket.in/seller/assets/images/arrow-small-left.svg\"/></span>\n </div>\n </div>\n \n \n \n <h5 class=\"section_heading\">Cross Border Commerce</h5>\n <div class=\"d-flex flex-wrap gap-4\">\n <div class=\"box_section\" *ngFor=\"let app of appSwitcherApps.cross_border_commerce\" (click)=\"callEvent(app.appName, app.displayName)\">\n <img class=\"icon\" [src]=\"app.appLogo\"/>\n <h6>{{app.displayName}}</h6>\n <p>{{app.subText}}</p>\n <span class=\"getstarted\">Get Started <img src=\"https://app.shiprocket.in/seller/assets/images/arrow-small-left.svg\"/></span>\n </div>\n \n </div>\n \n \n \n <h5 class=\"section_heading\">Growth & Marketing Solutions</h5>\n <div class=\"d-flex flex-wrap gap-4\">\n <div class=\"box_section\" *ngFor=\"let app of appSwitcherApps.growth_marketing_solutions\" (click)=\"callEvent(app.appName, app.displayName)\">\n <img class=\"icon\" [src]=\"app.appLogo\"/>\n <h6>{{app.displayName}}</h6>\n <p>{{app.subText}} <span *ngIf=\"app.nextLineLabel\"><br>{{app.nextLineLabel}} </span></p>\n <span class=\"getstarted\">Get Started <img src=\"https://app.shiprocket.in/seller/assets/images/arrow-small-left.svg\"/></span>\n </div>\n </div>\n \n \n <h5 class=\"section_heading\">Financial Services</h5>\n <div class=\"d-flex flex-wrap gap-4\">\n <div class=\"box_section\" *ngFor=\"let app of appSwitcherApps.financial_servicea\" (click)=\"callEvent(app.appName, app.displayName)\">\n <span class=\"newtag\" *ngIf=\"app.appName === 'capital' || (app.appName === 'creditScore' && userData.is_crif_enabled)\"><em>New</em></span>\n <span class=\"newtag\" *ngIf=\"app.appName === 'creditScore' && !userData.is_crif_enabled\"><em>Coming Soon</em></span>\n <img class=\"icon\" [src]=\"app.appLogo\"/>\n <h6>{{app.displayName}}</h6>\n <p>{{app.subText}}</p>\n <span class=\"getstarted\">Get Started <img src=\"https://app.shiprocket.in/seller/assets/images/arrow-small-left.svg\"/></span>\n </div>\n </div>\n <h5 class=\"section_heading\">Other services</h5>\n <div class=\"d-flex flex-wrap gap-4\">\n <div class=\"box_section other_ser\" *ngFor=\"let app of appSwitcherApps.other_services\" (click)=\"callEvent(app.appName, app.displayName)\">\n <img class=\"icon\" src=\"https://sr-cdn-1.shiprocket.in/img/Web_New/Omnichannel.png\"/>\n <h6>Omnichannel</h6>\n <p style=\"text-wrap: wrap;\">Manage all sales channels - online + offline at one place</p>\n <span class=\"getstarted\" style=\"bottom: 5px;\">Get Started <img src=\"https://app.shiprocket.in/seller/assets/images/arrow-small-left.svg\"/></span>\n </div>\n </div>\n </div>\n\n \n\n\n </div>\n</div> ", styles: ["@import\"https://fonts.cdnfonts.com/css/sf-pro-display\";.modal{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;z-index:1000;display:flex;justify-content:center;align-items:center}.modal-content_new{position:relative;width:100%;height:100%;background-color:#f7f5fb;overflow-y:scroll}.h-195px{height:195px!important}.close{position:absolute;top:20px;right:20px;font-size:24px;cursor:pointer;z-index:1001}::ng-deep .ad-padding-b{min-height:0!important}.d-flex{display:flex;flex-wrap:wrap}.gap-4{grid-gap:16px;gap:16px}.mobileScreen{background:#F7F5FB;padding:80px;background-image:url(https://sr-cdn-1.shiprocket.in/img/Web/Bg-Pattern.svg);background-repeat:no-repeat;background-size:contain;background-position:top right}.Topheader{margin-bottom:35px}.Topheader h1{color:#1d1d1d;font-size:36px!important;line-height:32px!important;letter-spacing:-.48px;margin-top:0;font-family:\"SF Pro Display\",sans-serif;font-weight:500}.Topheader h1 span{color:#745be7}.Topheader p{color:#757575;font-size:18px;line-height:normal;margin-top:10px}.section_heading{color:#676767;font-size:20px!important;text-transform:uppercase;margin-bottom:0;margin-top:60px}.featured_section{width:225px!important}.box_section{height:242px;padding:12px;border-radius:16px;background:#FBFBFB;box-shadow:0 5px 20px #1b1f440d;cursor:pointer;margin-top:16px;margin-bottom:0;position:relative;width:268px}.box_section img.icon{width:100%;border-radius:10px}.box_section h6{color:#1d1d1d;font-size:18px!important;margin-top:14px;font-family:\"SF Pro Display\",sans-serif;font-weight:500;margin-bottom:8px;text-transform:capitalize;line-height:22px!important;text-wrap:wrap}.box_section p{color:#828488;font-size:14px;line-height:18px;margin-bottom:0;font-family:\"SF Pro Display\",sans-serif;font-weight:400}.box_section span.getstarted{color:#745be7;font-size:16px;position:absolute;bottom:18px;font-family:\"SF Pro Display\",sans-serif;font-weight:500}.box_section span img{margin-left:5px}.box_section .newtag{position:absolute;right:5px;padding:3px 8px 1px;background:#DDFFE8;top:5px;border-radius:30px}.box_section .newtag em{position:relative;border-radius:4px;padding:1px 8px;color:#3fc06a;font-size:10px;top:-1px;font-style:normal;text-align:center;width:100%;display:block;left:0px;line-height:20px}.appSwitcherBtn{border-radius:4px;border:0;cursor:pointer;line-height:12px;color:#1d1d1d;font-size:12px;background:linear-gradient(169deg,#12c2e999 40.8%,#12c2e999 45%,#c471ed99 60%);font-weight:400;transition:background-color .3s}.appSwitcherBtn:hover{background-color:#fff}.appSwitcherTxt{background:linear-gradient(150.38deg,#fefefe -5.2%,#e7f9fd 7.94%,#f9f1fd 40.98%);padding:8px 12px 6px;border-radius:4px;margin:1px;transition:background-color .5s}.appSwitcherTxt:hover{background-color:#f9f8fe!important}.appSwitcherTxt:hover{background-color:#f9f8fe!important;transition:.5s}@media only screen and (max-width:362px){.box_section h6{font-size:12px!important}.box_section p,.box_section span.getstarted{font-size:11px}}@media (min-width: 768px) and (max-width: 1059px){.box_section h6{font-size:16px!important}.box_section p{font-size:13px!important}.box_section{height:206px!important;width:188px!important}.box_section span.getstarted{font-size:12px!important}.section_heading{font-size:16px!important}}@media (max-width: 767px){.h-195px{height:142px!important}.mob_box_section.h-195px{min-height:142px!important}.mob_box_section.h-195px h6{min-height:auto!important}.mob_box_section{width:100%!important;padding:12px!important;border-radius:16px!important;background:#FBFBFB!important;box-shadow:0 5px 20px #1b1f440d!important;cursor:pointer!important;margin-top:16px!important;margin-bottom:0!important;position:relative!important;line-height:18px!important;min-height:160px!important}.mob_box_section img.mob_icon{width:100%!important;border-radius:6px!important}.mob_box_section h6{color:#1b1f44!important;font-size:14px!important;margin-top:10px!important;font-family:\"SF Pro Display\",sans-serif!important;margin-bottom:5px!important;text-transform:capitalize!important;min-height:34px!important;font-weight:500!important;line-height:20px!important}.mob_getstarted{color:#745be7!important}.switcher_icon{border:none;background:#fff;position:relative;top:0px;box-shadow:0 -1px 4px #0000000f;padding:11px 7px}.mobileScreen{padding:40px}.box_section{flex:0 0 calc(50% - 16px);box-sizing:border-box}.box_section span.getstarted{bottom:10px;font-size:14px}.box_section{padding:10px;margin-top:0;height:auto}.box_section h6{font-size:14px;margin-top:10px}.box_section p{font-size:12px;line-height:1.3;max-height:70px;min-height:55px}.other_ser p{min-height:65px!important}.box_section .icon{height:auto}.getstarted{font-size:12px}.Topheader h1{font-size:25px!important;line-height:30px!important}.Topheader p{font-size:14px}.section_heading{font-size:16px!important;margin:45px 0 10px}}\n"], directives: [{ type: i4.NgIf, selector: "[ngIf]" }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]" }], animations: [
|
|
586
696
|
trigger('modalAnimation', [
|
|
587
697
|
transition(':enter', [
|
|
588
698
|
style({ opacity: 0, transform: 'scale(0.8)' }),
|