@global.engg/switcher-lib 0.0.72 → 0.1.16

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.
@@ -146,6 +146,7 @@ class AppSwitcherService {
146
146
  appSwitch(app, kyc_status) {
147
147
  var _a, _b, _c;
148
148
  this.sendGaEvent(app);
149
+ this.moengageEvent(app);
149
150
  if (this.userData.allow_engage && app === 'engage') {
150
151
  window.open(`${this.SR_CONSTANTS.EngageWebBaseUrl}gate-keeper?token=${this.userData.token}`, '_blank');
151
152
  }
@@ -359,6 +360,10 @@ class AppSwitcherService {
359
360
  }
360
361
  this.send(category, eventName, label);
361
362
  }
363
+ moengageEvent(event) {
364
+ var _a, _b;
365
+ (_b = (_a = this.windowRef.nativeWindow) === null || _a === void 0 ? void 0 : _a.Moengage) === null || _b === void 0 ? void 0 : _b.track_event("product_navigation_icon_clicked", { icon_name: event, company_id: this.userData.company_id });
366
+ }
362
367
  send(eventCategory, eventAction, eventLabel) {
363
368
  var _a, _b, _c;
364
369
  const source = ((_a = document.cookie
@@ -422,6 +427,14 @@ class SwitcherComponent {
422
427
  this.company_id = '';
423
428
  this.userData = user;
424
429
  this.recentUsedProducts = [];
430
+ this.isLoadingRecentProducts = false; // Start as false since we'll load from cache first
431
+ this.shouldShowRecentSection = false;
432
+ this.hasLoadedData = false; // Track if we've loaded data at least once
433
+ this.isApiCallInProgress = false; // Prevent duplicate API calls
434
+ this.apiRetryCount = 0; // Track API retry attempts
435
+ this.modalHasBeenOpened = false; // Track if modal has been opened at least once
436
+ this.skeletonMinDuration = 1000; // Minimum skeleton loader duration (1 second)
437
+ this.skeletonStartTime = 0; // Track when skeleton started showing
425
438
  this.appSwitcherApps = {
426
439
  shipping_fulfilment_india: [
427
440
  {
@@ -683,14 +696,23 @@ class SwitcherComponent {
683
696
  }
684
697
  openModal(param) {
685
698
  var _a;
686
- console.log('package version is 0.0.72');
699
+ console.log('package version is 0.0.71 move to update 4 sep ======');
687
700
  this.isModalOpen = true;
688
701
  this.showProducts = false;
702
+ this.modalHasBeenOpened = true; // Mark that modal has been opened
689
703
  const sidebar = document.querySelector('app-sidebar');
690
704
  if (sidebar) {
691
705
  sidebar.setAttribute('style', 'display: none');
692
706
  }
693
- this.getCompanyService();
707
+ // Hide Intercom chat widget
708
+ const intercomWidget = document.querySelector('.intercom-lightweight-app');
709
+ if (intercomWidget) {
710
+ intercomWidget.style.display = 'none';
711
+ }
712
+ // Only load data if we haven't loaded it before AND modal has been opened
713
+ if (!this.hasLoadedData) {
714
+ this.loadRecentProductsData();
715
+ }
694
716
  setTimeout(() => {
695
717
  this.showProducts = true;
696
718
  }, 200);
@@ -709,6 +731,11 @@ class SwitcherComponent {
709
731
  if (sidebar) {
710
732
  sidebar.setAttribute('style', 'display: block');
711
733
  }
734
+ // Show Intercom chat widget
735
+ const intercomWidget = document.querySelector('.intercom-lightweight-app');
736
+ if (intercomWidget) {
737
+ intercomWidget.style.display = 'block';
738
+ }
712
739
  }
713
740
  ngOnInit() {
714
741
  var _a;
@@ -720,12 +747,18 @@ class SwitcherComponent {
720
747
  this.appSwitcherApps[category] = this.appSwitcherApps[category].filter((app) => !appsToRemove.includes(app.appName));
721
748
  });
722
749
  }
750
+ // CRITICAL: Do NOT load data here - only load when modal is explicitly opened
751
+ // this.loadRecentProductsData(); // This should NEVER be uncommented
752
+ console.log('SwitcherComponent initialized - NO API calls should happen until modal is opened');
723
753
  }
724
754
  ngOnDestroy() {
725
755
  this.windowRef.nativeWindow.removeEventListener('resize', this.resizeListener);
726
756
  if (this.resizeTimeout) {
727
757
  clearTimeout(this.resizeTimeout);
728
758
  }
759
+ if (this.apiCallTimeout) {
760
+ clearTimeout(this.apiCallTimeout);
761
+ }
729
762
  }
730
763
  checkScreenSize() {
731
764
  const width = this.windowRef.nativeWindow.innerWidth;
@@ -750,8 +783,25 @@ class SwitcherComponent {
750
783
  else if (currentUrl.includes('app.shiprocket.in')) {
751
784
  return 'https://apiv2.shiprocket.co/v1/';
752
785
  }
786
+ else if (currentUrl.includes('multichannel-web-lastmile-stage.kartrocket.com')) {
787
+ return 'https://multichannel-api-stage.kartrocket.com/v1/';
788
+ }
753
789
  else {
754
- return '';
790
+ return 'https://apiv2.shiprocket.co/v1/';
791
+ }
792
+ }
793
+ isTokenValid() {
794
+ try {
795
+ const token = this.userData.token;
796
+ if (!token)
797
+ return false;
798
+ const payload = JSON.parse(atob(token.split('.')[1]));
799
+ const now = Math.floor(Date.now() / 1000);
800
+ return payload.exp > now;
801
+ }
802
+ catch (error) {
803
+ console.warn('Invalid JWT token:', error);
804
+ return false;
755
805
  }
756
806
  }
757
807
  analyticsevent(item) {
@@ -792,7 +842,11 @@ class SwitcherComponent {
792
842
  };
793
843
  this._http.post(`${this.getBaseUrl()}settings/company-service`, data, { headers }).subscribe((res) => {
794
844
  // API call complete, but we don't wait for it
795
- }, (error) => { });
845
+ console.log('POST API call successful for:', displayName);
846
+ }, (error) => {
847
+ // Log error but don't retry for POST calls
848
+ console.warn('POST API call failed for:', displayName, error);
849
+ });
796
850
  // Handle UI updates and navigation independently with timeout
797
851
  setTimeout(() => {
798
852
  if (clickedApp) {
@@ -807,6 +861,8 @@ class SwitcherComponent {
807
861
  this.recentUsedProducts.unshift(newRecentProduct);
808
862
  // Keep only the first 4 elements
809
863
  this.recentUsedProducts = this.recentUsedProducts.slice(0, 4);
864
+ // Update localStorage with new recent products
865
+ localStorage.setItem('recentUsedProducts', JSON.stringify(this.recentUsedProducts));
810
866
  // For apps in apiFirstApps list, redirect after timeout
811
867
  if (apiFirstApps.includes(type)) {
812
868
  this.appSwitcherService.appSwitch(type, this.kycStatus);
@@ -823,15 +879,134 @@ class SwitcherComponent {
823
879
  }
824
880
  this.appSwitcherService.appSwitch(app.appName);
825
881
  }
826
- getCompanyService() {
882
+ loadRecentProductsData() {
883
+ // First, try to load from localStorage for immediate display
884
+ this.loadFromCache();
885
+ // Only fetch from API if we don't have cached data
886
+ if (this.recentUsedProducts.length === 0) {
887
+ // Show skeleton loader while fetching from API
888
+ this.shouldShowRecentSection = true;
889
+ this.isLoadingRecentProducts = true;
890
+ this.skeletonStartTime = Date.now(); // Track when skeleton started
891
+ // Debounce API calls to prevent rapid successive calls
892
+ this.debouncedFetchFromAPI();
893
+ }
894
+ else {
895
+ // We have cached data, just mark as loaded
896
+ this.hasLoadedData = true;
897
+ }
898
+ }
899
+ debouncedFetchFromAPI() {
900
+ // Clear previous timeout
901
+ if (this.apiCallTimeout) {
902
+ clearTimeout(this.apiCallTimeout);
903
+ }
904
+ // Debounce API calls by 500ms to prevent rapid successive calls
905
+ this.apiCallTimeout = setTimeout(() => {
906
+ this.fetchRecentProductsFromAPI();
907
+ }, 500);
908
+ }
909
+ hideSkeletonWithMinDuration() {
910
+ const elapsedTime = Date.now() - this.skeletonStartTime;
911
+ const remainingTime = Math.max(0, this.skeletonMinDuration - elapsedTime);
912
+ setTimeout(() => {
913
+ this.isLoadingRecentProducts = false;
914
+ }, remainingTime);
915
+ }
916
+ loadFromCache() {
917
+ // Check if we have recent products stored in localStorage from previous sessions
918
+ const storedRecentProducts = localStorage.getItem('recentUsedProducts');
919
+ if (storedRecentProducts) {
920
+ try {
921
+ const parsed = JSON.parse(storedRecentProducts);
922
+ if (parsed && parsed.length > 0) {
923
+ this.recentUsedProducts = parsed;
924
+ this.shouldShowRecentSection = true;
925
+ this.isLoadingRecentProducts = false;
926
+ }
927
+ }
928
+ catch (e) {
929
+ // Invalid JSON, ignore
930
+ }
931
+ }
932
+ }
933
+ checkForExistingRecentProducts() {
934
+ // Check if we have recent products stored in localStorage from previous sessions
935
+ const storedRecentProducts = localStorage.getItem('recentUsedProducts');
936
+ if (storedRecentProducts) {
937
+ try {
938
+ const parsed = JSON.parse(storedRecentProducts);
939
+ if (parsed && parsed.length > 0) {
940
+ this.shouldShowRecentSection = true;
941
+ }
942
+ }
943
+ catch (e) {
944
+ // Invalid JSON, ignore
945
+ }
946
+ }
947
+ }
948
+ onImageLoad(event) {
949
+ // Image loaded successfully
950
+ event.target.classList.remove('loading');
951
+ event.target.classList.add('loaded');
952
+ // Remove loading animation from container
953
+ const container = event.target.closest('.image-container');
954
+ if (container) {
955
+ container.style.background = 'none';
956
+ container.style.animation = 'none';
957
+ }
958
+ }
959
+ onImageError(event) {
960
+ // Image failed to load, show placeholder or default
961
+ event.target.classList.remove('loading');
962
+ event.target.classList.add('loaded');
963
+ // Remove loading animation from container
964
+ const container = event.target.closest('.image-container');
965
+ if (container) {
966
+ container.style.background = 'none';
967
+ container.style.animation = 'none';
968
+ }
969
+ // You can set a default image here if needed
970
+ // event.target.src = 'path/to/default-image.png';
971
+ }
972
+ fetchRecentProductsFromAPI() {
973
+ // CRITICAL: Only allow API calls when modal has been explicitly opened
974
+ if (!this.modalHasBeenOpened) {
975
+ console.warn('API call blocked: Modal has not been opened yet');
976
+ return;
977
+ }
978
+ // Prevent duplicate API calls
979
+ if (this.isApiCallInProgress || this.hasLoadedData) {
980
+ return;
981
+ }
982
+ // Check if token is valid before making API call
983
+ if (!this.isTokenValid()) {
984
+ console.warn('Invalid or expired JWT token, skipping API call');
985
+ this.isLoadingRecentProducts = false;
986
+ this.hasLoadedData = true;
987
+ this.shouldShowRecentSection = false;
988
+ return;
989
+ }
990
+ // Check retry limit
991
+ if (this.apiRetryCount >= 3) {
992
+ console.log('Max API retries reached, stopping API calls');
993
+ this.isLoadingRecentProducts = false;
994
+ this.hasLoadedData = true;
995
+ this.shouldShowRecentSection = false;
996
+ return;
997
+ }
998
+ this.isApiCallInProgress = true;
999
+ // Loading state is already set in loadRecentProductsData() if needed
827
1000
  const headers = {
828
1001
  'Content-Type': 'application/json',
829
1002
  'Authorization': 'Bearer ' + this.userData.token
830
1003
  };
831
1004
  this._http.get(`${this.getBaseUrl()}settings/company-service`, { headers }).subscribe((res) => {
1005
+ // Success - reset retry count
1006
+ this.apiRetryCount = 0;
832
1007
  this.appSwitchList = res.data;
833
1008
  // Map the API response to recentUsedProducts
834
- this.recentUsedProducts = res.data.map((item) => {
1009
+ const newRecentProducts = res.data.map((item) => {
835
1010
  // Search for matching app across all categories
836
1011
  let matchedApp;
837
1012
  Object.values(this.appSwitcherApps).forEach((category) => {
@@ -848,11 +1023,53 @@ class SwitcherComponent {
848
1023
  displayName: matchedApp.displayName
849
1024
  } : null;
850
1025
  }).filter((item) => item !== null);
1026
+ // Only update if we have new data or no cached data
1027
+ if (newRecentProducts.length > 0 || this.recentUsedProducts.length === 0) {
1028
+ this.recentUsedProducts = newRecentProducts;
1029
+ this.shouldShowRecentSection = this.recentUsedProducts && this.recentUsedProducts.length > 0;
1030
+ // Store recent products in localStorage for future reference
1031
+ if (this.shouldShowRecentSection) {
1032
+ localStorage.setItem('recentUsedProducts', JSON.stringify(this.recentUsedProducts));
1033
+ }
1034
+ else {
1035
+ localStorage.removeItem('recentUsedProducts');
1036
+ }
1037
+ }
1038
+ // Hide skeleton with minimum duration to prevent flicker
1039
+ this.hideSkeletonWithMinDuration();
1040
+ this.hasLoadedData = true;
1041
+ this.isApiCallInProgress = false;
1042
+ }, (error) => {
1043
+ // Increment retry count
1044
+ this.apiRetryCount++;
1045
+ console.warn(`API call failed (attempt ${this.apiRetryCount}/3):`, error);
1046
+ // If 403 error, don't retry immediately
1047
+ if (error.status === 403) {
1048
+ console.log('403 Forbidden - stopping retries immediately');
1049
+ this.apiRetryCount = 3; // Max out retries
1050
+ }
1051
+ // Hide skeleton with minimum duration even on error
1052
+ this.hideSkeletonWithMinDuration();
1053
+ this.hasLoadedData = true;
1054
+ this.isApiCallInProgress = false;
1055
+ // Don't change shouldShowRecentSection if we have cached data
1056
+ if (this.recentUsedProducts.length === 0) {
1057
+ this.shouldShowRecentSection = false;
1058
+ }
851
1059
  });
852
1060
  }
1061
+ getCompanyService() {
1062
+ // This method is kept for backward compatibility but only calls API if modal has been opened
1063
+ if (this.modalHasBeenOpened) {
1064
+ this.fetchRecentProductsFromAPI();
1065
+ }
1066
+ else {
1067
+ console.warn('getCompanyService() blocked: Modal has not been opened yet');
1068
+ }
1069
+ }
853
1070
  }
854
1071
  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 });
855
- 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('desktop')\" *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('mobile')\"\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\" [style.display]=\"!isMobileView ? 'block' : 'none'\">\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, 'recentUsedProduct')\" *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 <div class=\"mobileScreen_new\" [style.display]=\"isMobileView ? 'block' : 'none'\">\n <div class=\"mobile-container\">\n <!-- Header Section -->\n <div class=\"mobile-header\">\n <h2 class=\"welcome-text\">Hi {{userJson?.first_name || 'User'}}</h2>\n <p class=\"subtitle\">Power your business with our industry-leading products.</p>\n </div>\n\n <!-- Products Grid -->\n <div class=\"products-section\">\n <h3 class=\"section-title\">Shipping</h3>\n <div class=\"products-grid\">\n <ng-container >\n <div class=\"product-card product_card_shadow\"\n *ngFor=\"let product of mobile_appSwitcherApps.india_logistics_platform; let i = index\" \n (click)=\"appSwitch(product, 'mobileProductSelection')\">\n <div class=\"icon-circle\">\n <img [src]=\"product.appLogo\" [alt]=\"product.displayName\">\n </div>\n <span class=\"product-name\">{{product.displayName}}</span>\n </div>\n </ng-container>\n </div>\n\n <h3 class=\"section-title\">Cross Border</h3>\n <div class=\"products-grid\">\n <ng-container >\n <div class=\"product-card\"\n *ngFor=\"let product of mobile_appSwitcherApps.cross_border_commerce; let i = index\" \n (click)=\"appSwitch(product, 'mobileProductSelection')\">\n <div class=\"icon-circle\">\n <img [src]=\"product.appLogo\" [alt]=\"product.displayName\">\n </div>\n <span class=\"product-name\">{{product.displayName}}</span>\n </div>\n </ng-container>\n </div>\n\n <h3 class=\"section-title\">Marketing</h3>\n <div class=\"products-grid\">\n <ng-container >\n <div class=\"product-card\"\n *ngFor=\"let product of mobile_appSwitcherApps.growth_marketing_solutions; let i = index\" \n (click)=\"appSwitch(product, 'mobileProductSelection')\">\n <div class=\"icon-circle\">\n <img [src]=\"product.appLogo\" [alt]=\"product.displayName\">\n </div>\n <span class=\"product-name\">{{product.displayName}}</span>\n </div>\n </ng-container>\n </div>\n\n <h3 class=\"section-title\">Financing</h3>\n <div class=\"products-grid\">\n <ng-container >\n <div class=\"product-card\"\n *ngFor=\"let product of mobile_appSwitcherApps.financial_servicea; let i = index\" \n (click)=\"appSwitch(product, 'mobileProductSelection')\">\n <div class=\"icon-circle\">\n <img [src]=\"product.appLogo\" [alt]=\"product.displayName\">\n </div>\n <span class=\"product-name\">{{product.displayName}}</span>\n </div>\n </ng-container>\n </div>\n\n <h3 class=\"section-title\">Our Core Strengths</h3>\n <div class=\"strength-container\">\n <div class=\"strength-scroll\">\n <ng-container >\n <div class=\"strength-card\"\n *ngFor=\"let image of coreStrengthImages; let i = index\">\n <img [src]=\"image.imgSrc\" [alt]=\"image.altText\">\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n\n </div>\n</div> ", styles: ["@import\"https://fonts.cdnfonts.com/css/sf-pro-display\";@import\"https://fonts.cdnfonts.com/css/twk-lausanne\";.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:10px;right:10px;font-size:24px;cursor:pointer;z-index:1001;padding:0 10px}::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}.mobileScreen_new{background:#F7F5FB;padding:20px;background-image:url(https://sr-cdn-1.shiprocket.in/img/BG.svg);background-repeat:no-repeat;background-size:cover;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:20px;background-size:auto}.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}}.mobile-container{min-height:100vh;font-family:\"TWK Lausanne\",sans-serif}.mobile-header{margin-bottom:24px}.welcome-text{font-size:22px!important;margin-bottom:8px;font-weight:600;text-transform:capitalize;margin-top:10px}.subtitle{font-size:14px;color:#888;line-height:1.4}.section-title{font-size:18px;margin:24px 0 16px;text-transform:capitalize;color:#191919;font-weight:600}.products-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:16px;gap:16px;margin-bottom:30px}.product-card{background:#fff;border-radius:12px;padding:15px 10px;display:flex;flex-direction:column;align-items:center;grid-gap:8px;gap:8px;cursor:pointer;box-shadow:0 0 20px #1b1f440d}.product_card_shadow{box-shadow:0 0 20px #0a0b111a!important}@keyframes slideDown{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}.product-card.show{animation-play-state:running}.product-card:active{transform:scale(.98)}.product-card.ng-enter{opacity:0;transform:translateY(-20px)}.product-card.ng-enter-active{opacity:1;transform:translateY(0)}.icon-circle{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center}.icon-circle img{width:50px;height:50px}.product-name{font-size:12px;color:#333;text-align:center;font-weight:600;display:inline-block;white-space:nowrap;margin-top:5px;font-family:\"TWK Lausanne\",sans-serif}.recharge-banner{background:linear-gradient(45deg,#745BE7,#12C2E9);border-radius:16px;padding:20px;margin:24px 0;position:relative;overflow:hidden}.banner-content{display:flex;justify-content:space-between;align-items:center;z-index:1;position:relative}.banner-text h3{font-size:16px;margin-bottom:4px;color:#fff}.banner-text h2{font-size:24px;color:#4ade80;margin:0}.recharge-btn{background:#4ADE80;color:#000;border:none;padding:8px 16px;border-radius:8px;font-weight:500;cursor:pointer;transition:background-color .2s}.recharge-btn:hover{background:#22C55E}.wallet-image{position:absolute;right:-20px;bottom:-20px;width:120px;opacity:.8}.pagination-dots{display:flex;justify-content:center;align-items:center;grid-gap:4px;gap:4px;margin-top:16px;position:relative}.dot{height:4px;width:16px;background:rgba(115,91,231,.3);cursor:pointer;transition:all .3s ease;border-radius:2px}.dot.active{background:#745BE7;position:relative}.dot.active:after{content:\"\";position:absolute;bottom:-4px;left:50%;transform:translate(-50%);width:4px;height:4px;background:#745BE7;border-radius:50%}@media (min-width: 361px) and (max-width: 380px){.product-card{min-width:70px;width:100%;padding:10px}}@media (max-width: 360px){.product-card{min-width:60px;width:100%;padding:10px}.product-name{font-size:12px;margin-top:5px}.mobile-container{padding:0}.welcome-text{font-size:22px}.subtitle{font-size:13px}.icon-circle{width:40px;height:40px}.icon-circle img{width:40px;height:40px}}@media (max-width: 767px){.products-grid{grid-gap:12px;gap:12px}.recharge-banner{padding:16px}.banner-text h2{font-size:20px}.recharge-btn{padding:6px 12px;font-size:14px}}.strength-container{width:100%;overflow:hidden;position:relative;padding:0;margin-bottom:50px}.strength-scroll{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;grid-gap:16px;gap:16px;padding:0 16px;scrollbar-width:none;-ms-overflow-style:none}.strength-scroll::-webkit-scrollbar{display:none}.strength-card{flex:0 0 220px;scroll-snap-align:start;border-radius:12px;overflow:hidden}.strength-card img{width:100%;height:auto;display:block;object-fit:cover}@media (hover: none){.strength-scroll{touch-action:pan-x}}.mobile-container{font-family:\"TWK Lausanne\",sans-serif}.mobile-header .welcome-text,.mobile-header .subtitle,.section-title,.product-name{font-family:\"TWK Lausanne\",sans-serif}\n"], directives: [{ type: i4.NgIf, selector: "[ngIf]" }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]" }], animations: [
1072
+ 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('desktop')\" *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('mobile')\"\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\" [style.display]=\"!isMobileView ? 'block' : 'none'\">\n\n\n <div class=\"Topheader\">\n <h1 class=\"sfpro-bold\">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 <!-- Loading skeleton for recently used products - only show if we expect to have data -->\n <ng-container *ngIf=\"isLoadingRecentProducts && shouldShowRecentSection\">\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\" *ngFor=\"let i of [1,2,3,4]\">\n <div class=\"skeleton-loader\">\n <div class=\"skeleton-icon featured-skeleton-icon\"></div>\n <div class=\"skeleton-text\"></div>\n <div class=\"skeleton-button\"></div>\n </div>\n </div>\n </div>\n </ng-container>\n\n <!-- Show recent products only when loaded and have data -->\n <ng-container *ngIf=\"!isLoadingRecentProducts && 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, 'recentUsedProduct')\" *ngFor=\"let item of recentUsedProducts; let i = index\">\n <div class=\"image-container featured-image-container\">\n <img class=\"icon h-95px\" [src]=\"item.appLogo\" (load)=\"onImageLoad($event)\" (error)=\"onImageError($event)\" />\n </div>\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 <!-- No recent products message (optional - only show if you want to inform users) -->\n <!-- <ng-container *ngIf=\"!isLoadingRecentProducts && (!recentUsedProducts || recentUsedProducts.length === 0)\">\n <h5 class=\"section_heading\">Recently Used Products</h5>\n <div class=\"no-recent-products\">\n <p>No recently used products found. Start using our services to see them here!</p>\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 <div class=\"image-container\">\n <img class=\"icon\" [src]=\"app.appLogo\" (load)=\"onImageLoad($event)\" (error)=\"onImageError($event)\"/>\n </div>\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 <div class=\"image-container\">\n <img class=\"icon\" [src]=\"app.appLogo\" (load)=\"onImageLoad($event)\" (error)=\"onImageError($event)\"/>\n </div>\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 <div class=\"image-container\">\n <img class=\"icon\" [src]=\"app.appLogo\" (load)=\"onImageLoad($event)\" (error)=\"onImageError($event)\"/>\n </div>\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 <div class=\"image-container\">\n <img class=\"icon\" [src]=\"app.appLogo\" (load)=\"onImageLoad($event)\" (error)=\"onImageError($event)\"/>\n </div>\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 <div class=\"image-container\">\n <img class=\"icon\" src=\"https://sr-cdn-1.shiprocket.in/img/Web_New/Omnichannel.png\" (load)=\"onImageLoad($event)\" (error)=\"onImageError($event)\"/>\n </div>\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 <div class=\"mobileScreen_new\" [style.display]=\"isMobileView ? 'block' : 'none'\">\n <div class=\"mobile-container\">\n <!-- Header Section -->\n <div class=\"mobile-header\">\n <h2 class=\"welcome-text\">Hi {{userJson?.first_name || 'User'}}</h2>\n <p class=\"subtitle\">Power your business with our industry-leading products.</p>\n </div>\n\n <!-- Products Grid -->\n <div class=\"products-section\">\n <h3 class=\"section-title\">Shipping</h3>\n <div class=\"products-grid\">\n <ng-container >\n <div class=\"product-card product_card_shadow\"\n *ngFor=\"let product of mobile_appSwitcherApps.india_logistics_platform; let i = index\" \n (click)=\"appSwitch(product, 'mobileProductSelection')\">\n <div class=\"icon-circle\">\n <img [src]=\"product.appLogo\" [alt]=\"product.displayName\" (load)=\"onImageLoad($event)\" (error)=\"onImageError($event)\">\n </div>\n <span class=\"product-name\">{{product.displayName}}</span>\n </div>\n </ng-container>\n </div>\n\n <h3 class=\"section-title\">Cross Border</h3>\n <div class=\"products-grid\">\n <ng-container >\n <div class=\"product-card\"\n *ngFor=\"let product of mobile_appSwitcherApps.cross_border_commerce; let i = index\" \n (click)=\"appSwitch(product, 'mobileProductSelection')\">\n <div class=\"icon-circle\">\n <img [src]=\"product.appLogo\" [alt]=\"product.displayName\" (load)=\"onImageLoad($event)\" (error)=\"onImageError($event)\">\n </div>\n <span class=\"product-name\">{{product.displayName}}</span>\n </div>\n </ng-container>\n </div>\n\n <h3 class=\"section-title\">Marketing</h3>\n <div class=\"products-grid\">\n <ng-container >\n <div class=\"product-card\"\n *ngFor=\"let product of mobile_appSwitcherApps.growth_marketing_solutions; let i = index\" \n (click)=\"appSwitch(product, 'mobileProductSelection')\">\n <div class=\"icon-circle\">\n <img [src]=\"product.appLogo\" [alt]=\"product.displayName\" (load)=\"onImageLoad($event)\" (error)=\"onImageError($event)\">\n </div>\n <span class=\"product-name\">{{product.displayName}}</span>\n </div>\n </ng-container>\n </div>\n\n <h3 class=\"section-title\">Financing</h3>\n <div class=\"products-grid\">\n <ng-container >\n <div class=\"product-card\"\n *ngFor=\"let product of mobile_appSwitcherApps.financial_servicea; let i = index\" \n (click)=\"appSwitch(product, 'mobileProductSelection')\">\n <div class=\"icon-circle\">\n <img [src]=\"product.appLogo\" [alt]=\"product.displayName\" (load)=\"onImageLoad($event)\" (error)=\"onImageError($event)\">\n </div>\n <span class=\"product-name\">{{product.displayName}}</span>\n </div>\n </ng-container>\n </div>\n\n <h3 class=\"section-title\">Our Core Strengths</h3>\n <div class=\"strength-container\">\n <div class=\"strength-scroll\">\n <ng-container >\n <div class=\"strength-card\"\n *ngFor=\"let image of coreStrengthImages; let i = index\">\n <img [src]=\"image.imgSrc\" [alt]=\"image.altText\">\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n\n </div>\n</div> ", styles: ["@import\"https://fonts.cdnfonts.com/css/sf-pro-display\";@import\"https://fonts.cdnfonts.com/css/twk-lausanne\";.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}.h-180px{height:180px!important}.h-95px{height:95px!important}.skeleton-loader{display:flex;flex-direction:column;height:100%;padding:12px}.skeleton-icon{width:100%;height:80px;background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%);background-size:200% 100%;animation:loading 1.5s infinite;border-radius:10px;margin-bottom:14px}.featured-skeleton-icon{height:95px}.skeleton-text{width:80%;height:22px;background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%);background-size:200% 100%;animation:loading 1.5s infinite;border-radius:4px;margin-bottom:8px}.skeleton-button{width:120px;height:16px;background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%);background-size:200% 100%;animation:loading 1.5s infinite;border-radius:4px;position:absolute;bottom:18px}@keyframes loading{0%{background-position:200% 0}to{background-position:-200% 0}}.close{position:absolute;top:10px;right:10px;font-size:24px;cursor:pointer;z-index:1001;padding:0 10px}::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}.mobileScreen_new{background:#F7F5FB;padding:20px;background-image:url(https://sr-cdn-1.shiprocket.in/img/BG.svg);background-repeat:no-repeat;background-size:cover;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-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%;height:120px;object-fit:cover;border-radius:10px}.image-container{width:100%;height:120px;position:relative;border-radius:10px;overflow:hidden;background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%);background-size:200% 100%;animation:loading 1.5s infinite}.image-container img{width:100%;height:120px;object-fit:cover;border-radius:10px}.image-container img.loaded{background:none;animation:none}.featured-image-container{width:100%;height:95px;position:relative;border-radius:10px;overflow:hidden;background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%);background-size:200% 100%;animation:loading 1.5s infinite}.featured-image-container img{width:100%;height:95px;object-fit:cover;border-radius:10px}.featured-image-container img.loaded{background:none;animation:none}.box_section h6{color:#1d1d1d;font-size:18px!important;margin-top:14px;font-weight:500;font-family:\"SFProDisplay-Regular\";margin-bottom:3px;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:\"SFProDisplay-Regular\";font-weight:400;margin-top:0}.box_section span.getstarted{color:#745be7;font-size:16px;position:absolute;bottom:18px;font-family:\"SFProDisplay-Medium\";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 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:20px;background-size:auto}.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}}.mobile-container{min-height:100vh;font-family:\"TWK Lausanne\",sans-serif}.mobile-header{margin-bottom:24px}.welcome-text{font-size:22px!important;margin-bottom:8px;font-weight:600;text-transform:capitalize;margin-top:10px}.subtitle{font-size:14px;color:#888;line-height:1.4}.section-title{font-size:18px;margin:24px 0 16px;text-transform:capitalize;color:#191919;font-weight:600}.products-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:16px;gap:16px;margin-bottom:30px}.product-card{background:#fff;border-radius:12px;padding:15px 10px;display:flex;flex-direction:column;align-items:center;grid-gap:8px;gap:8px;cursor:pointer;box-shadow:0 0 20px #1b1f440d}.product_card_shadow{box-shadow:0 0 20px #0a0b111a!important}@keyframes slideDown{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}.product-card.show{animation-play-state:running}.product-card:active{transform:scale(.98)}.product-card.ng-enter{opacity:0;transform:translateY(-20px)}.product-card.ng-enter-active{opacity:1;transform:translateY(0)}.icon-circle{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center}.icon-circle img{width:50px;height:50px}.product-name{font-size:12px;color:#333;text-align:center;font-weight:600;display:inline-block;white-space:nowrap;margin-top:5px;font-family:\"TWK Lausanne\",sans-serif}.recharge-banner{background:linear-gradient(45deg,#745BE7,#12C2E9);border-radius:16px;padding:20px;margin:24px 0;position:relative;overflow:hidden}.banner-content{display:flex;justify-content:space-between;align-items:center;z-index:1;position:relative}.banner-text h3{font-size:16px;margin-bottom:4px;color:#fff}.banner-text h2{font-size:24px;color:#4ade80;margin:0}.recharge-btn{background:#4ADE80;color:#000;border:none;padding:8px 16px;border-radius:8px;font-weight:500;cursor:pointer;transition:background-color .2s}.recharge-btn:hover{background:#22C55E}.wallet-image{position:absolute;right:-20px;bottom:-20px;width:120px;opacity:.8}.pagination-dots{display:flex;justify-content:center;align-items:center;grid-gap:4px;gap:4px;margin-top:16px;position:relative}.dot{height:4px;width:16px;background:rgba(115,91,231,.3);cursor:pointer;transition:all .3s ease;border-radius:2px}.dot.active{background:#745BE7;position:relative}.dot.active:after{content:\"\";position:absolute;bottom:-4px;left:50%;transform:translate(-50%);width:4px;height:4px;background:#745BE7;border-radius:50%}@media (min-width: 361px) and (max-width: 380px){.product-card{min-width:70px;width:100%;padding:10px}}@media (max-width: 360px){.product-card{min-width:60px;width:100%;padding:10px}.product-name{font-size:12px;margin-top:5px}.mobile-container{padding:0}.welcome-text{font-size:22px}.subtitle{font-size:13px}.icon-circle{width:40px;height:40px}.icon-circle img{width:40px;height:40px}}@media (max-width: 767px){.products-grid{grid-gap:12px;gap:12px}.recharge-banner{padding:16px}.banner-text h2{font-size:20px}.recharge-btn{padding:6px 12px;font-size:14px}}.strength-container{width:100%;overflow:hidden;position:relative;padding:0;margin-bottom:50px}.strength-scroll{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;grid-gap:16px;gap:16px;padding:0 16px;scrollbar-width:none;-ms-overflow-style:none}.strength-scroll::-webkit-scrollbar{display:none}.strength-card{flex:0 0 220px;scroll-snap-align:start;border-radius:12px;overflow:hidden}.strength-card img{width:100%;height:auto;display:block;object-fit:cover}@media (hover: none){.strength-scroll{touch-action:pan-x}}.mobile-container{font-family:\"TWK Lausanne\",sans-serif}.mobile-header .welcome-text,.mobile-header .subtitle,.section-title,.product-name{font-family:\"TWK Lausanne\",sans-serif}\n"], directives: [{ type: i4.NgIf, selector: "[ngIf]" }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]" }], animations: [
856
1073
  trigger('modalAnimation', [
857
1074
  transition(':enter', [
858
1075
  style({ opacity: 0, transform: 'scale(0.8)' }),