@global.engg/switcher-lib 0.0.62 → 0.0.66

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.
@@ -245,14 +245,14 @@
245
245
  }
246
246
  else if (app === 'creditScore') {
247
247
  if ((_c = this.userData) === null || _c === void 0 ? void 0 : _c.is_crif_enabled) {
248
- 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');
248
+ window.open("https://capital.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');
249
249
  }
250
250
  else {
251
251
  window.open("https://www.shiprocket.in/capital/", '_blank');
252
252
  }
253
253
  }
254
254
  else if (app === 'capital') {
255
- 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');
255
+ window.open("https://capital.shiprocket.in/home/?utm_source=App-Switcher&utm_medium=Manual-Adhoc&utm_content=capital&utm_term=flexi_business_loan&authToken=" + this.userData.token, '_blank');
256
256
  }
257
257
  else if (app === 'marketing') {
258
258
  window.location.href = this.DOMAIN + "/seller/home";
@@ -888,7 +888,7 @@
888
888
  return SwitcherComponent;
889
889
  }());
890
890
  SwitcherComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SwitcherComponent, deps: [{ token: AppSwitcherService }, { token: i2__namespace.HttpClient }, { token: WindowRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
891
- SwitcherComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SwitcherComponent, selector: "lib-switcher", inputs: { data: "data" }, ngImport: i0__namespace, 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__namespace.NgIf, selector: "[ngIf]" }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]" }], animations: [
891
+ SwitcherComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SwitcherComponent, selector: "lib-switcher", inputs: { data: "data" }, ngImport: i0__namespace, 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 1234</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__namespace.NgIf, selector: "[ngIf]" }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]" }], animations: [
892
892
  animations.trigger('modalAnimation', [
893
893
  animations.transition(':enter', [
894
894
  animations.style({ opacity: 0, transform: 'scale(0.8)' }),
@@ -1 +1 @@
1
- {"version":3,"file":"global.engg-switcher-lib.umd.js","sources":["../../../projects/switcher/src/lib/window-ref.service.ts","../../../projects/switcher/src/lib/switcher.service.ts","../../../projects/switcher/src/lib/switcher.component.ts","../../../projects/switcher/src/lib/switcher.component.html","../../../projects/switcher/src/lib/switcher.module.ts","../../../projects/switcher/src/public-api.ts","../../../projects/switcher/src/global.engg-switcher-lib.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\nfunction _window(): any {\n return window;\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class WindowRef {\n get nativeWindow(): any {\n return _window();\n }\n} ","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { WindowRef } from './window-ref.service';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AppSwitcherService {\n\n // {\n // \"name\": \"@jitender_sharma/switcher-lib\",\n // \"version\": \"0.0.28\",\n // \"peerDependencies\": {\n // \"@angular/common\": \"^12.2.0\",\n // \"@angular/core\": \"^12.2.0\"\n // },\n // \"dependencies\": {\n // \"tslib\": \"^2.3.0\"\n // }\n // }\n\n\n SR_CONSTANTS = {\n QuickWebBaseUrl: 'https://quick.shiprocket.in/',\n EngageWebBaseUrl: 'https://app-engage.shiprocket.in/',\n CheckoutWebBaseUrl: 'https://checkout-app.shiprocket.in/',\n SrfWebBaseUrl: 'https://srf-app.shiprocket.in/',\n FulfillmentWebBaseUrl: 'https://fulfillment.shiprocket.in',\n WigzoWebBaseUrl:'https://convert.shiprocket.in/wigzo/lite/auth/shiprocket/login',\n PickrrWebBaseUrl: 'https://dashboard.pickrr.com/',\n EngagePlusWebBaseURL: 'https://app-engage.shiprocket.in/'\n };\n\n private readonly DOMAIN = 'https://app.shiprocket.in';\n\n constructor(\n private router: Router,\n private _http: HttpClient,\n private windowRef: WindowRef\n ) {\n }\n userData: any = JSON.parse(localStorage.getItem('ngStorage-USER') || localStorage.getItem('_userData') || '{}');\n isDesktop: boolean = false;\n appSwitchList: Array<Record<string, string>> = [\n {\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Whatsapp-Solutions.png',\n appName: 'engage',\n checkKey: 'allow_engage',\n displayName: 'Whatsapp Solutions (Engage360)'\n },\n {\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Checkout.png',\n appName: 'checkout',\n checkKey: 'allow_checkout',\n displayName: 'Checkout'\n },\n {\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Warehousing.png',\n appName: 'fullfilment',\n checkKey: 'allow_fbs',\n displayName: 'Warehousing (SR Fulfilment)'\n },\n {\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Cargo.png',\n appName: 'rocketbox',\n checkKey: 'allow_rocketbox',\n displayName: 'Cargo'\n },\n {\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Instant-deliveries.png',\n appName: 'openInApp',\n checkKey: 'openInApp',\n displayName: 'Open In App'\n },\n {\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Omnichannel.png',\n appName: 'omuni',\n checkKey: 'allow_omuni',\n displayName: 'Omuni'\n },\n {\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/trends.png',\n appName: 'trends',\n checkKey: 'allow_trends',\n displayName: 'Trends'\n },\n ];\n\n isCheckoutAllowed(companyId: any): boolean {\n const companies = [3619232, 3322144, 2630080, 1219154, 3723110, 2486122, 1424320, 735819, 3868367, 466488, 1187211, 355135, 3372742, 2153217, 2659051, 12190, 3285700, 2942236, 1853655, 466332, 3474860, 2071835, 2809225, 77836, 4363328, 3870510, 320289, 2354051, 1538934, 451814, 216243, 3246257, 4104707, 932406, 3447462, 2233565, 4040499, 2687352, 377748, 64142, 3622166, 344345, 627070, 2223298, 75317, 30998, 406125, 141604, 1207559, 1044491, 1097031, 3354026, 528679, 917075, 282372, 513487, 340318, 3350, 420144, 1446678, 3831929, 4004306, 793143, 65024, 4022429, 951452, 206052, 468669, 2054855, 4280735, 4022331, 537542, 3505499, 4239125, 981859, 502106, 2279505, 2889533, 1207678, 2993584, 1278688, 4231781, 61696, 948703, 1220143, 4447207, 377831, 4263698, 492761, 354046, 835031, 444332, 146042, 3778635, 4352642, 33998, 4244698, 3699357, 379559, 3335748, 2777986, 27877, 1001872, 1984134, 4404528, 567791, 75237, 486331, 4053332, 1489760, 2032364, 371704, 3941047, 3600970, 125490, 2967660, 1157119, 876879, 288812, 941678, 466059, 4054535, 134619, 3867552, 1563779, 195793, 1323291, 4115809, 1454656, 930557, 482600, 1589740, 4089391, 235881, 562058, 3535852, 1564529, 385296, 130730, 3505428, 458306, 4216054, 145403, 1859049, 380185, 3468261, 701936, 1450350, 937507, 35448, 4380825, 1838326, 2434291, 4375587, 1726791, 2704736, 3430137, 791432, 871200, 2673928, 3501380, 548185, 1755248, 176850, 924185, 477613, 19892, 755629, 2622857, 1150763, 1054413, 712521, 430958, 225038, 4145753, 2025467, 896750, 415164, 531736, 583216, 103391, 1478414, 3189465, 3122097, 1735799, 1722604, 2125044, 692005, 3653188, 3189556, 3490164, 471096, 1612625, 197857, 430466, 2539492, 234220, 192173, 3468964, 1015543, 3139638, 221975, 2487565, 3568028, 83262, 2277661, 3377930, 206271, 577858\n ]\n const isAllowedCompany = companies.includes(companyId);\n return isAllowedCompany;\n }\n\n showAppSwitchListToDiffUser(): void {\n this.appSwitchList = this.appSwitchList.filter((res) => {\n if (this.userData.allow_engage && res.checkKey === 'allow_engage') {\n return true;\n } else if (\n (this.isCheckoutAllowed(this.userData?.company_id) ||\n this.userData.allow_checkout) &&\n res.checkKey === 'allow_checkout'\n ) {\n return true;\n } else if (this.userData.allow_fbs && res.checkKey === 'allow_fbs') {\n return true;\n } else if (\n (this.userData.allow_rb_panel || this.userData.is_rb_user) &&\n res.checkKey === 'allow_rocketbox'\n ) {\n return true;\n } else if (\n this.userData?.allow_sr_convert &&\n !this.userData?.allow_engage &&\n res.checkKey === 'allow_sr_convert'\n ) {\n return true;\n } else if (res?.checkKey === 'allow_one_impression') {\n return true;\n } else if (res?.checkKey === 'openInApp' && this.userData?.open_app_user) {\n return true;\n } else if (res?.checkKey === 'allow_wigzo' && this.userData?.allow_wigzo) {\n return true;\n } else if (res?.appName === 'omuni' && this.userData?.is_omuni2_user == 1) {\n return true;\n } else {\n return false;\n }\n });\n }\n\n appSwitch(app: string,kyc_status?:any): void {\n this.sendGaEvent(app);\n if (this.userData.allow_engage && app === 'engage') {\n window.open(\n `${this.SR_CONSTANTS.EngageWebBaseUrl}gate-keeper?token=${this.userData.token}`,\n '_blank'\n );\n } else if (app === 'checkout') {\n let url = `https://fastrr-dashboard.pickrr.com/dashboard?utm_source=sr_dashboard&utm_medium=appswitcher&utm_campaign=appswitcher01&utm_content=appswitcher01&cid=${this.userData.company_id}`;\n url = `${url}&token=${this.userData.token}`\n window.open(url, '_blank');\n // if ((this.isCheckoutAllowed(this.userData?.company_id) || this.userData.allow_checkout)) {\n // url = `${url}&token=${this.userData.token}`\n // window.open(url, '_blank');\n // }else{\n // window.open(\"https://checkout.shiprocket.in/\", '_blank');\n // }\n } else if (this.userData.allow_fbs && app === 'fullfilment') {\n window.open(\n `${this.SR_CONSTANTS.SrfWebBaseUrl}login?token=${this.userData.token}`,\n '_blank'\n );\n } else if (!this.userData.allow_fbs && app === 'fullfilment') {\n window.open(\n `${this.SR_CONSTANTS.FulfillmentWebBaseUrl}?utm_source=panel&utm_medium=app_switcher&utm_campaign=SR-Panel-non-srf-switcher&token=${this.userData.token}`,\n '_blank'\n );\n } else if (app === 'rocketbox') {\n if (this.userData.allow_rb_panel || this.userData.is_rb_user) {\n window.location.href = `${this.DOMAIN}/rocketbox`;\n } else {\n window.location.href = `${this.DOMAIN}/seller/settings/internationalsettings/internationalkyc`;\n }\n } else if (\n this.userData?.allow_sr_convert &&\n !this.userData?.allow_engage &&\n app === 'sr_convert'\n ) {\n window.open(`${this.SR_CONSTANTS.WigzoWebBaseUrl}/${this.userData.token}`, '_blank');\n } else if (app === 'sr_genie') {\n window.open(\n `https://ai-test.kartrocket.com/login?token=${this.userData.token}`,\n '_blank'\n );\n } else if (app === 'one_impression') {\n // Calling one-impression and redirecting to new tab\n this.fetchOneImpressionLoginLink();\n } else if (app === 'openInApp') {\n this.fetchOpenInAppLink();\n } else if (app === 'wigzo') {\n window.open(\n `https://app.wigzo.com/auth/shiprocket/login/${this.userData.token}`,\n '_blank'\n );\n } else if (app === 'omuni') {\n window.open(\n `https://omuni.com/`, '_blank'\n );\n // if (this.userData?.is_omuni2_user == 1) {\n // this.httpService.get('omuni/switch').subscribe(\n // (res) => {\n // const redirect_uri = res?.redirect_uri;\n // if (!redirect_uri) {\n // this.toastr.error('Something Went Wrong');\n // }\n // window.open(redirect_uri, '_blank');\n // },\n // (err) => {\n // this.toastr.error(err.message);\n // }\n // );\n // } else {\n // this.router.navigate(['/home'])\n // }\n } else if (app === 'trends') {\n \n window.open(`https://trends.shiprocket.in/`, '_blank');\n } else if (app === 'creditScore') {\n if(this.userData?.is_crif_enabled){\n window.open(\n `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,\n '_blank'\n );\n }else{\n window.open(\n `https://www.shiprocket.in/capital/`,\n '_blank'\n );\n }\n\n\n\n \n } else if (app === 'capital') {\n window.open(\n `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,\n '_blank'\n );\n \n } else if (app === 'marketing') {\n window.location.href = `${this.DOMAIN}/seller/home`;\n } else if (app === 'whatsapp_solutions') {\n if (this.userData.allow_engage) {\n window.open(\n `${this.SR_CONSTANTS.EngageWebBaseUrl}gate-keeper?token=${this.userData.token}`,\n '_blank'\n );\n } else {\n window.open(`https://app-engage.shiprocket.in/auth/register`, '_blank');\n }\n } else if (app === 'internationalParcels') {\n if(kyc_status==0||kyc_status==1||kyc_status==2||kyc_status==4){\n window.location.href = `${this.DOMAIN}/seller/internationalDashboard/overview`;\n }else{\n window.location.href = `${this.DOMAIN}/seller/settings/internationalsettings/internationalkyc`;\n }\n } else if (app === 'i_rocketbox') {\n window.location.href = `${this.DOMAIN}/seller/settings/internationalsettings/internationalkyc`;\n } else if (app === 'brand_launch') {\n window.location.href = `${this.DOMAIN}/seller/settings/internationalsettings/internationalkyc`;\n } else if (app === 'express_parcel') {\n window.location.href = `${this.DOMAIN}/seller/home`;\n } else if (app === 'instant_deliveries') {\n window.open(`${this.SR_CONSTANTS.QuickWebBaseUrl}gate-keeper?token=${this.userData.token}`,'_blank');\n return;\n } else if (app === 'warehousing') {\n window.open(`https://fulfillment.shiprocket.in/`, '_blank');\n } else if (app == 'srocketbox') {\n window.location.href = `${this.DOMAIN}/seller/settings/internationalsettings/internationalkyc`;\n } else if (app == 'somuni') {\n window.location.href = `${this.DOMAIN}/seller/home`;\n }\n }\n sendGaEvent(event: string): void {\n let category = '';\n let eventName = '';\n let label = '';\n switch (event) {\n case 'addorder':\n category = 'Rvmp_Header - Quick Actions';\n eventName = 'Clicked on \"Add an Order\"';\n label = '';\n break;\n case 'quickshipment':\n category = 'Rvmp_Header - Quick Actions';\n eventName = 'Clicked on \"Create a quick shipemnt';\n label = '';\n break;\n case 'ratecalculator':\n category = 'Rvmp_Header - Quick Actions';\n eventName = 'Clicked on \"Rate Calculator\"';\n label = '';\n break;\n case 'createticket':\n category = 'Rvmp_Header - Quick Actions';\n eventName = 'Clicked on \"Create a Ticket\"';\n label = '';\n break;\n case 'trackshipment':\n category = 'Rvmp_Header - Quick Actions';\n eventName = 'Clicked on \"Track Shipments\"';\n label = '';\n break;\n case 'profilename':\n category = 'Rvmp_Header - Profile Icon';\n eventName = 'Clicked on \"User Profile\"';\n label = '';\n break;\n case 'currentplan':\n category = 'Rvmp_Header - Profile Icon';\n eventName = 'Clicked on \"Current Plan\"';\n label = '';\n break;\n case 'refer':\n category = 'Rvmp_Header - Profile Icon';\n eventName = 'Clicked on \"Refer & Earn\"';\n label = '';\n break;\n case 'rateus':\n category = 'Rvmp_Header - Profile Icon';\n eventName = 'Clicked on \"Rate Us\"';\n label = '';\n break;\n case 'tnc':\n category = 'Rvmp_Header - Profile Icon';\n eventName = 'Clicked on \"T&C\"';\n label = '';\n break;\n case 'changepassword':\n category = 'Rvmp_Header - Profile Icon';\n eventName = 'Clicked on \"Change Password\"';\n label = '';\n break;\n case 'logout':\n category = 'Rvmp_Header - Profile Icon';\n eventName = 'Clicked on \"Logout\"';\n label = '';\n break;\n case 'recharge':\n category = 'Rvmp_Header';\n eventName = 'Clicked on \"Recharge Wallet\"';\n label = '';\n break;\n case 'profileicon':\n category = 'Rvmp_Header';\n eventName = 'Clicked on \"Profile Icon\"';\n label = '';\n break;\n case 'fullfilment':\n category = 'Rvmp_Header - App Switcher';\n eventName = 'Clicked on \"SR Fulfilment\"';\n label = '';\n break;\n case 'switchtooldversion':\n category = 'Rvmp_Header - Switch to old version';\n eventName = 'Clicked on \"Switch to old version\"';\n label = 'company_id:' + this.userData.company_id;\n break;\n case 'engage':\n category = 'Rvmp_Header - App Switcher';\n eventName = 'Clicked on \"SR Engage\"';\n label = '';\n }\n \n this.send(category, eventName, label);\n \n }\n\n\n send(eventCategory: any, eventAction: any, eventLabel: any) {\n const source = document.cookie\n .split('; ')\n .find(row => row.startsWith('UTM='))\n ?.split('=')[1] || '';\n\n this.windowRef.nativeWindow.ga('send', 'event', {\n eventCategory: eventCategory,\n eventAction: eventAction,\n eventLabel: eventLabel ? eventLabel : source,\n });\n \n if (this.windowRef?.nativeWindow?.gtag_g4 && typeof this.windowRef.nativeWindow.gtag_g4 === 'function') {\n this.windowRef.nativeWindow.gtag_g4('event', eventAction, {\n event_category: eventCategory,\n event_label: eventLabel ? eventLabel : source,\n });\n }\n }\n\n\n fetchOpenInAppLink(): void {\n this._http.get('oneimpression/open-app-redirection_url')\n .subscribe((res:any) => {\n if (res && res?.url) {\n window.open(res?.url, '_blank');\n }\n })\n }\n fetchOneImpressionLoginLink(): void {\n this._http.get(this._getURL()+'oneimpression/get-login-link').subscribe((res:any) => {\n if (res && res?.url) {\n window.open(res?.url, '_blank');\n } else if (res?.status == 'fail') {\n // this.toastr.error(res?.message)\n }\n }),\n (error: any) => {\n };\n }\n\n\n\n public _getURL(): string {\n return `https://apiv2.shiprocket.in/v1/`;\n }\n}\n","import { Component, Input, OnInit, HostListener, OnDestroy } from '@angular/core';\nimport { trigger, transition, style, animate } from '@angular/animations';\nimport { AppSwitcherService } from './switcher.service';\nconst user = JSON.parse(localStorage.getItem('ngStorage-USER') || localStorage.getItem('_userData') || '{}');\nimport { HttpClient } from '@angular/common/http';\nimport { WindowRef } from './window-ref.service';\n\ninterface RecentProduct {\n appName: string;\n appLogo: string;\n displayName: string;\n}\n\n@Component({\n selector: 'lib-switcher',\n templateUrl: './switcher.component.html',\n styleUrls: ['./switcher.component.css'],\n animations: [\n trigger('modalAnimation', [\n transition(':enter', [\n style({ opacity: 0, transform: 'scale(0.8)' }),\n animate('200ms ease-out', \n style({ opacity: 1, transform: 'scale(1)' })\n )\n ]),\n transition(':leave', [\n animate('200ms ease-in',\n style({ opacity: 0, transform: 'scale(0.8)' })\n )\n ])\n ]),\n // ... other animations ...\n trigger('slideDown', [\n transition(':enter', [\n style({ transform: 'translateY(-20px)', opacity: 0 }),\n animate('300ms ease-out', style({ transform: 'translateY(0)', opacity: 1 }))\n ])\n ])\n ]\n})\nexport class SwitcherComponent implements OnInit, OnDestroy {\n @Input() data: string = '';\n isModalOpen = false;\n showProducts = false;\n\n openModal(param?:any) {\n this.isModalOpen = true;\n this.showProducts = false;\n const sidebar = document.querySelector('app-sidebar');\n if (sidebar) {\n sidebar.setAttribute('style', 'display: none');\n }\n this.getCompanyService();\n \n setTimeout(() => {\n this.showProducts = true;\n }, 200);\n\n\n if(param == 'mobile'){\n this.userJson = JSON.parse(localStorage.getItem('ngStorage-USER') || localStorage.getItem('_userData') || '{}');\n this.company_id = this.userJson != null ? this.userJson?.company_id : '';\n this.appSwitcherService.send(\n 'All Products',\n 'All Products Mobile',\n 'Company Id: ' + this.company_id\n );\n }else if(param == 'desktop'){\n this.appSwitcherService.send(\n 'All Products',\n 'All Products Desktop',\n 'Company Id: ' + this.company_id\n );\n }\n\n }\n\n closeModal() {\n this.isModalOpen = false;\n const sidebar = document.querySelector('app-sidebar');\n if (sidebar) {\n sidebar.setAttribute('style', 'display: block');\n }\n }\n isDesktop: boolean = false;\n company_id = '';\n userJson:any;\n kycStatus:any;\n userData=user;\n recentUsedProducts: RecentProduct[] = [];\n\n appSwitcherApps:any={\n shipping_fulfilment_india : [\n {\n id: 1,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Express-Parcel.png',\n appName: 'express_parcel',\n checkKey: 'Domestic Shipping',\n displayName:'Domestic Shipping',\n subText :'Multiple couriers, SDD/NDD, widest reach'\n },{\n id: 2,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Instant-deliveries.png',\n appName: 'instant_deliveries',\n checkKey: 'Instant deliveries',\n displayName:'Instant deliveries',\n subText :'Multiple couriers, Hyperlocal, Intracity'\n },{\n id: 3,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Warehousing.png',\n appName: 'fullfilment',\n checkKey: 'Warehousing',\n displayName:'Warehousing',\n subText :'End-to-end brand fulfilment '\n },\n {\n id: 4,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Cargo.png',\n appName: 'rocketbox',\n checkKey: 'allow_rocketbox',\n displayName:'Cargo',\n subText:'Heavy shipments, FTL & PTL '\n },\n ],\n cross_border_commerce:[{\n id: 5,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/International-Parcels.png',\n appName: 'internationalParcels',\n checkKey: 'internationalParcels',\n displayName:'International Parcels',\n subText:'Ship to 220+ countries'\n\n },{\n id: 6,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/International-Cargo.png',\n appName: 'i_rocketbox',\n checkKey: 'i_allow_rocketbox',\n displayName:'International Cargo',\n subText:'Air & Ocean freight'\n },{\n id: 7,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Brand-Launch.png',\n appName: 'brand_launch',\n checkKey: 'brand_launch',\n displayName:'Brand Launch'\n ,\n subText:'Expand your brand globally '\n }],\n growth_marketing_solutions:[{\n id: 8,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Checkout.png',\n appName: 'checkout',\n checkKey: 'allow_checkout',\n displayName:'Checkout',\n subText:'Simplified one-click checkout'\n },{\n id: 9,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Whatsapp-Solutions.png',\n appName: 'whatsapp_solutions',\n checkKey: 'whatsapp_solutions',\n displayName:'Whatsapp Solutions',\n subText:'Marketing, commerce, chatbot - ',\n nextLineLabel:''\n },{\n id: 10,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Marketing.png',\n appName: 'marketing',\n checkKey: 'marketing',\n displayName:'Marketing',\n subText:'Digital and influencer marketing & more '\n },{\n id: 11,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/trends.png',\n appName: 'trends',\n checkKey: 'allow_trends',\n displayName:'Trends',\n subText:'E-commerce analytics for Bharat'\n }],\n financial_servicea:[{\n id: 12,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Capital.png',\n appName: 'capital',\n checkKey: 'Capital',\n displayName:'Business Loan',\n subText:'Flexible Business loan up to ₹20 Lakhs'\n },{\n id: 13,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Credit-Score.png',\n appName: 'creditScore',\n checkKey: 'Credit Score',\n displayName:'Credit Score',\n subText:'Check your credit score for free '\n }],\n other_services:[{\n id: 14,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Omnichannel.png',\n appName: 'omuni',\n checkKey: 'allow_omuni',\n displayName:'Omnichannel',\n subText:'Manage all sales channels - online + offline at one place'\n \n }]\n \n }\n\n\n mobile_appSwitcherApps:any={\n india_logistics_platform : [\n {\n id: 1,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/courier_app.png',\n appName: 'express_parcel',\n checkKey: 'Domestic Shipping',\n displayName:'Courier',\n subText :'Multiple couriers, SDD/NDD, widest reach'\n },{\n id: 2,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/quick_app.png',\n appName: 'instant_deliveries',\n checkKey: 'Instant deliveries',\n displayName:'Quick',\n subText :'Multiple couriers, Hyperlocal, Intracity'\n },\n {\n id: 4,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/cargo_app.png',\n appName: 'rocketbox',\n checkKey: 'allow_rocketbox',\n displayName:'Cargo',\n subText:'Heavy shipments, FTL & PTL '\n },\n {\n id: 3,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/fulfillment_app.png',\n appName: 'fullfilment',\n checkKey: 'Warehousing',\n displayName:'Fulfillment',\n subText :'End-to-end brand fulfilment '\n },\n ],\n cross_border_commerce:[{\n id: 5,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/parcel_app.png',\n appName: 'internationalParcels',\n checkKey: 'internationalParcels',\n displayName:'Parcel',\n subText:'Ship to 220+ countries'\n\n },{\n id: 6,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/cargo_int_app.png',\n appName: 'i_rocketbox',\n checkKey: 'i_allow_rocketbox',\n displayName:'Cargo X',\n subText:'Air & Ocean freight'\n }],\n growth_marketing_solutions:[\n {\n id: 9,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/engage_app.png',\n appName: 'whatsapp_solutions',\n checkKey: 'whatsapp_solutions',\n displayName:'Engage',\n subText:'Marketing, commerce, chatbot - ',\n nextLineLabel:''\n },{\n id: 11,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/trends_app.png',\n appName: 'trends',\n checkKey: 'allow_trends',\n displayName:'Trends',\n subText:'E-commerce analytics for Bharat'\n },\n {\n id: 8,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/checkout_new_app.png',\n appName: 'checkout',\n checkKey: 'allow_checkout',\n displayName:'Checkout',\n subText:'Simplified one-click checkout'\n },\n {\n id: 10,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/ads_app.png',\n appName: 'marketing',\n checkKey: 'marketing',\n displayName:'Ads',\n subText:'Digital and influencer marketing & more '\n }],\n financial_servicea:[{\n id: 12,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/capital_app.png',\n appName: 'capital',\n checkKey: 'Capital',\n displayName:'Capital',\n subText:'Flexible Business loan up to ₹20 Lakhs'\n },{\n id: 13,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/credit_score.png',\n appName: 'creditScore',\n checkKey: 'Credit Score',\n displayName:'Credit Score',\n subText:'Check your credit score for free '\n }]\n \n }\n\n public isMobileView: boolean = false;\n private readonly MOBILE_BREAKPOINT = 768;\n private resizeListener: () => void;\n private resizeTimeout: any;\n\n user: Record<string, any> = user;\n\n\n appSwitchList: Array<Record<string, string>> = [];\n\n coreStrengthImages = [\n {\n id: 1,\n imgSrc: 'https://sr-cdn-1.shiprocket.in/img/switcher_1.png',\n altText: 'Core Strength 1'\n },\n {\n id: 2,\n imgSrc: 'https://sr-cdn-1.shiprocket.in/img/switcher_2.png',\n altText: 'Core Strength 2'\n },\n {\n id: 3,\n imgSrc: 'https://sr-cdn-1.shiprocket.in/img/switcher_3.png',\n altText: 'Core Strength 3'\n },\n {\n id: 4,\n imgSrc: 'https://sr-cdn-1.shiprocket.in/img/switcher_4.png',\n altText: 'Core Strength 4'\n },\n {\n id: 5,\n imgSrc: 'https://sr-cdn-1.shiprocket.in/img/switcher_5.png',\n altText: 'Core Strength 5'\n },\n {\n id: 6,\n imgSrc: 'https://sr-cdn-1.shiprocket.in/img/switcher_6.png',\n altText: 'Core Strength 6'\n }\n ];\n\n constructor(\n private appSwitcherService: AppSwitcherService,\n private _http: HttpClient,\n private windowRef: WindowRef,\n ) {\n this.resizeListener = () => {\n // Clear the timeout if it exists\n if (this.resizeTimeout) {\n clearTimeout(this.resizeTimeout);\n }\n \n // Set a new timeout\n this.resizeTimeout = setTimeout(() => {\n this.checkScreenSize();\n }, 150);\n };\n \n this.checkScreenSize();\n this.windowRef.nativeWindow.addEventListener('resize', this.resizeListener);\n this.appSwitcherService.showAppSwitchListToDiffUser();\n this.appSwitchList = this.appSwitcherService.appSwitchList;\n }\n\n ngOnInit(): void {\n this.userJson = JSON.parse(localStorage.getItem('ngStorage-USER') || localStorage.getItem('_userData') || '{}');\n this.company_id = this.userJson != null ? this.userJson?.company_id : '';\n \n if (this.data) {\n const appsToRemove = this.data.split(',').map(app => app.trim());\n Object.keys(this.appSwitcherApps).forEach((category: any) => {\n this.appSwitcherApps[category] = this.appSwitcherApps[category].filter(\n (app: any) => !appsToRemove.includes(app.appName)\n );\n });\n }\n \n }\n\n ngOnDestroy(): void {\n this.windowRef.nativeWindow.removeEventListener('resize', this.resizeListener);\n if (this.resizeTimeout) {\n clearTimeout(this.resizeTimeout);\n }\n }\n\n private checkScreenSize(): void {\n const width = this.windowRef.nativeWindow.innerWidth;\n this.isMobileView = width < this.MOBILE_BREAKPOINT;\n this.isDesktop = width >= 768;\n document.body.classList.toggle('mobile-view', this.isMobileView);\n }\n\n getKYCData() {\n this._http.get(`settings/international/kyc/details?company_id=${this.userData.company_id}`).subscribe(\n (res:any) => {\n const data = res.data;\n if (data.kyc_status != null) {\n this.kycStatus=data.kyc_status\n }\n },\n (error) => {\n }\n );\n }\n \n getBaseUrl(): string {\n const currentUrl = window.location.hostname;\n if (currentUrl.includes('multichannel-channels-partnerships-qa-web.kartrocket.com')) {\n return 'https://multichannel-channels-partnerships-qa-api.kartrocket.com/v1/';\n } else if (currentUrl.includes('app.shiprocket.in')) {\n return 'https://apiv2.shiprocket.co/v1/';\n } else {\n return 'https://apiv2.shiprocket.co/v1/';\n }\n }\n\n\n analyticsevent(item:any){\n this.appSwitcherService.send(\n 'Switcher Service Selection',\n 'Recent Used Product',\n 'App: ' + item.displayName\n );\n }\n\n analyticsevent_mobile(item:any){\n this.appSwitcherService.send(\n 'Switcher Service Selection Mobile',\n 'Mobile Product Selection',\n 'App: ' + item.displayName\n );\n }\n\n callEvent(type: any, displayName: any) {\n // List of apps that require API call before redirection\n const apiFirstApps = [\n 'rocketbox', 'marketing', 'internationalParcels', \n 'i_rocketbox', 'brand_launch', 'express_parcel',\n 'srocketbox', 'somuni'\n ];\n\n // If not in apiFirstApps list, redirect immediately\n if (!apiFirstApps.includes(type)) {\n this.appSwitcherService.appSwitch(type, this.kycStatus);\n }\n \n this.appSwitcherService.send(\n 'Swithcer Service Selection',\n displayName,\n 'Company Id : ' + this.company_id\n );\n\n // Find the app object across all categories that matches the displayName\n let appId: any;\n let clickedApp: any;\n Object.values(this.appSwitcherApps).forEach((category: unknown) => {\n const categoryArray = category as Array<{\n id: number, \n displayName: string, \n appName: string, \n appLogo: string\n }>;\n const app = categoryArray.find(app => app.displayName === displayName);\n if (app) {\n appId = app.id;\n clickedApp = app;\n }\n });\n\n const data = {\n service_id: appId.toString()\n }\n const headers = {\n 'Content-Type': 'application/json',\n 'Authorization': 'Bearer ' + this.userData.token\n };\n \n this._http.post(`${this.getBaseUrl()}settings/company-service`, data, { headers }).subscribe(\n (res:any) => {\n // API call complete, but we don't wait for it\n },\n (error) => {}\n );\n\n // Handle UI updates and navigation independently with timeout\n setTimeout(() => {\n if (clickedApp) {\n const newRecentProduct: RecentProduct = {\n appName: clickedApp.appName,\n appLogo: clickedApp.appLogo,\n displayName: clickedApp.displayName\n };\n\n // Remove the clicked item if it exists\n this.recentUsedProducts = this.recentUsedProducts.filter(\n item => item.displayName !== displayName\n );\n\n // Add new item at the beginning\n this.recentUsedProducts.unshift(newRecentProduct);\n\n // Keep only the first 4 elements\n this.recentUsedProducts = this.recentUsedProducts.slice(0, 4);\n\n // For apps in apiFirstApps list, redirect after timeout\n if (apiFirstApps.includes(type)) {\n this.appSwitcherService.appSwitch(type, this.kycStatus);\n }\n }\n }, 500); // 500ms timeout\n }\n\n appSwitch(app: any, analyticsevent?:any): void {\n\n if(analyticsevent == 'recentUsedProduct'){\n this.analyticsevent(app);\n }else if(analyticsevent == 'mobileProductSelection'){\n this.analyticsevent_mobile(app);\n }\n\n\n\n this.appSwitcherService.appSwitch(app.appName);\n }\n\n getCompanyService() {\n \n const headers = {\n 'Content-Type': 'application/json',\n 'Authorization': 'Bearer ' + this.userData.token\n };\n\n this._http.get(`${this.getBaseUrl()}settings/company-service`, { headers }).subscribe(\n (res: any) => {\n this.appSwitchList = res.data;\n \n // Map the API response to recentUsedProducts\n this.recentUsedProducts = res.data.map((item: any) => {\n // Search for matching app across all categories\n let matchedApp;\n Object.values(this.appSwitcherApps).forEach((category: unknown) => {\n const categoryArray = category as Array<{\n id: number,\n appName: string,\n appLogo: string,\n displayName: string\n }>;\n \n const app = categoryArray.find(app => app.id === item.service_id);\n if (app) {\n matchedApp = app;\n }\n });\n\n // Return mapped object if match found, otherwise return null\n return matchedApp ? {\n appName: (matchedApp as {appName: string}).appName,\n appLogo: (matchedApp as {appLogo: string}).appLogo,\n displayName: (matchedApp as {displayName: string}).displayName\n } : null;\n }).filter((item: RecentProduct | null): item is RecentProduct => item !== null);\n }\n );\n }\n\n}\n","<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> ","import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SwitcherComponent } from './switcher.component';\nimport { WindowRef } from './window-ref.service';\nimport { AppSwitcherService } from './switcher.service';\n\n@NgModule({\n declarations: [SwitcherComponent],\n imports: [CommonModule],\n exports: [SwitcherComponent], // Export the component for use in other modules\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n providers: [\n WindowRef,\n AppSwitcherService\n ]\n})\nexport class SwitcherModule {}\n","/*\n * Public API Surface of switcher\n */\n\nexport * from './lib/switcher.service';\nexport * from './lib/switcher.component';\nexport * from './lib/switcher.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i0","Injectable","i1","i2","i3.WindowRef","i1.AppSwitcherService","i4","trigger","transition","style","animate","Component","Input","CommonModule","NgModule","CUSTOM_ELEMENTS_SCHEMA"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEA,SAAS,OAAO,GAAA;IACd,IAAA,OAAO,MAAM,CAAC;IAChB,CAAC;IAKD,IAAA,SAAA,kBAAA,YAAA;IAAA,IAAA,SAAA,SAAA,GAAA;;IACE,IAAA,MAAA,CAAA,cAAA,CAAI,SAAY,CAAA,SAAA,EAAA,cAAA,EAAA;IAAhB,QAAA,GAAA,EAAA,YAAA;gBACE,OAAO,OAAO,EAAE,CAAC;aAClB;;;IAAA,KAAA,CAAA,CAAA;;;iIAHU,SAAS,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAAA,aAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;IAAT,SAAA,CAAA,KAAA,GAAAA,aAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAAA,aAAA,EAAA,IAAA,EAAA,SAAS,cAFR,MAAM,EAAA,CAAA,CAAA;sHAEP,SAAS,EAAA,UAAA,EAAA,CAAA;sBAHrBC,aAAU;IAAC,YAAA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eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;IAAd,cAAA,CAAA,IAAA,GAAAA,aAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAAA,aAAA,EAAA,IAAA,EAAA,cAAc,EATV,YAAA,EAAA,CAAA,iBAAiB,CACtB,EAAA,OAAA,EAAA,CAAAa,eAAY,aACZ,iBAAiB,CAAA,EAAA,CAAA,CAAA;IAOhB,cAAA,CAAA,IAAA,GAAAb,aAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAAA,aAAA,EAAA,IAAA,EAAA,cAAc,EALd,SAAA,EAAA;YACT,SAAS;YACT,kBAAkB;SACnB,EANQ,OAAA,EAAA,CAAA,CAACa,eAAY,CAAC,CAAA,EAAA,CAAA,CAAA;sHAQZ,cAAc,EAAA,UAAA,EAAA,CAAA;sBAV1BC,WAAQ;IAAC,YAAA,IAAA,EAAA,CAAA;wBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;wBACjC,OAAO,EAAE,CAACD,eAAY,CAAC;wBACvB,OAAO,EAAE,CAAC,iBAAiB,CAAC;wBAC5B,OAAO,EAAE,CAACE,yBAAsB,CAAC;IACjC,oBAAA,SAAS,EAAE;4BACT,SAAS;4BACT,kBAAkB;IACnB,qBAAA;qBACF,CAAA;;;ICfD;;IAEG;;ICFH;;IAEG;;;;;;;;;;;;"}
1
+ {"version":3,"file":"global.engg-switcher-lib.umd.js","sources":["../../../projects/switcher/src/lib/window-ref.service.ts","../../../projects/switcher/src/lib/switcher.service.ts","../../../projects/switcher/src/lib/switcher.component.ts","../../../projects/switcher/src/lib/switcher.component.html","../../../projects/switcher/src/lib/switcher.module.ts","../../../projects/switcher/src/public-api.ts","../../../projects/switcher/src/global.engg-switcher-lib.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\nfunction _window(): any {\n return window;\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class WindowRef {\n get nativeWindow(): any {\n return _window();\n }\n} ","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { WindowRef } from './window-ref.service';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AppSwitcherService {\n\n // {\n // \"name\": \"@jitender_sharma/switcher-lib\",\n // \"version\": \"0.0.28\",\n // \"peerDependencies\": {\n // \"@angular/common\": \"^12.2.0\",\n // \"@angular/core\": \"^12.2.0\"\n // },\n // \"dependencies\": {\n // \"tslib\": \"^2.3.0\"\n // }\n // }\n\n\n SR_CONSTANTS = {\n QuickWebBaseUrl: 'https://quick.shiprocket.in/',\n EngageWebBaseUrl: 'https://app-engage.shiprocket.in/',\n CheckoutWebBaseUrl: 'https://checkout-app.shiprocket.in/',\n SrfWebBaseUrl: 'https://srf-app.shiprocket.in/',\n FulfillmentWebBaseUrl: 'https://fulfillment.shiprocket.in',\n WigzoWebBaseUrl:'https://convert.shiprocket.in/wigzo/lite/auth/shiprocket/login',\n PickrrWebBaseUrl: 'https://dashboard.pickrr.com/',\n EngagePlusWebBaseURL: 'https://app-engage.shiprocket.in/'\n };\n\n private readonly DOMAIN = 'https://app.shiprocket.in';\n\n constructor(\n private router: Router,\n private _http: HttpClient,\n private windowRef: WindowRef\n ) {\n }\n userData: any = JSON.parse(localStorage.getItem('ngStorage-USER') || localStorage.getItem('_userData') || '{}');\n isDesktop: boolean = false;\n appSwitchList: Array<Record<string, string>> = [\n {\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Whatsapp-Solutions.png',\n appName: 'engage',\n checkKey: 'allow_engage',\n displayName: 'Whatsapp Solutions (Engage360)'\n },\n {\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Checkout.png',\n appName: 'checkout',\n checkKey: 'allow_checkout',\n displayName: 'Checkout'\n },\n {\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Warehousing.png',\n appName: 'fullfilment',\n checkKey: 'allow_fbs',\n displayName: 'Warehousing (SR Fulfilment)'\n },\n {\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Cargo.png',\n appName: 'rocketbox',\n checkKey: 'allow_rocketbox',\n displayName: 'Cargo'\n },\n {\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Instant-deliveries.png',\n appName: 'openInApp',\n checkKey: 'openInApp',\n displayName: 'Open In App'\n },\n {\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Omnichannel.png',\n appName: 'omuni',\n checkKey: 'allow_omuni',\n displayName: 'Omuni'\n },\n {\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/trends.png',\n appName: 'trends',\n checkKey: 'allow_trends',\n displayName: 'Trends'\n },\n ];\n\n isCheckoutAllowed(companyId: any): boolean {\n const companies = [3619232, 3322144, 2630080, 1219154, 3723110, 2486122, 1424320, 735819, 3868367, 466488, 1187211, 355135, 3372742, 2153217, 2659051, 12190, 3285700, 2942236, 1853655, 466332, 3474860, 2071835, 2809225, 77836, 4363328, 3870510, 320289, 2354051, 1538934, 451814, 216243, 3246257, 4104707, 932406, 3447462, 2233565, 4040499, 2687352, 377748, 64142, 3622166, 344345, 627070, 2223298, 75317, 30998, 406125, 141604, 1207559, 1044491, 1097031, 3354026, 528679, 917075, 282372, 513487, 340318, 3350, 420144, 1446678, 3831929, 4004306, 793143, 65024, 4022429, 951452, 206052, 468669, 2054855, 4280735, 4022331, 537542, 3505499, 4239125, 981859, 502106, 2279505, 2889533, 1207678, 2993584, 1278688, 4231781, 61696, 948703, 1220143, 4447207, 377831, 4263698, 492761, 354046, 835031, 444332, 146042, 3778635, 4352642, 33998, 4244698, 3699357, 379559, 3335748, 2777986, 27877, 1001872, 1984134, 4404528, 567791, 75237, 486331, 4053332, 1489760, 2032364, 371704, 3941047, 3600970, 125490, 2967660, 1157119, 876879, 288812, 941678, 466059, 4054535, 134619, 3867552, 1563779, 195793, 1323291, 4115809, 1454656, 930557, 482600, 1589740, 4089391, 235881, 562058, 3535852, 1564529, 385296, 130730, 3505428, 458306, 4216054, 145403, 1859049, 380185, 3468261, 701936, 1450350, 937507, 35448, 4380825, 1838326, 2434291, 4375587, 1726791, 2704736, 3430137, 791432, 871200, 2673928, 3501380, 548185, 1755248, 176850, 924185, 477613, 19892, 755629, 2622857, 1150763, 1054413, 712521, 430958, 225038, 4145753, 2025467, 896750, 415164, 531736, 583216, 103391, 1478414, 3189465, 3122097, 1735799, 1722604, 2125044, 692005, 3653188, 3189556, 3490164, 471096, 1612625, 197857, 430466, 2539492, 234220, 192173, 3468964, 1015543, 3139638, 221975, 2487565, 3568028, 83262, 2277661, 3377930, 206271, 577858\n ]\n const isAllowedCompany = companies.includes(companyId);\n return isAllowedCompany;\n }\n\n showAppSwitchListToDiffUser(): void {\n this.appSwitchList = this.appSwitchList.filter((res) => {\n if (this.userData.allow_engage && res.checkKey === 'allow_engage') {\n return true;\n } else if (\n (this.isCheckoutAllowed(this.userData?.company_id) ||\n this.userData.allow_checkout) &&\n res.checkKey === 'allow_checkout'\n ) {\n return true;\n } else if (this.userData.allow_fbs && res.checkKey === 'allow_fbs') {\n return true;\n } else if (\n (this.userData.allow_rb_panel || this.userData.is_rb_user) &&\n res.checkKey === 'allow_rocketbox'\n ) {\n return true;\n } else if (\n this.userData?.allow_sr_convert &&\n !this.userData?.allow_engage &&\n res.checkKey === 'allow_sr_convert'\n ) {\n return true;\n } else if (res?.checkKey === 'allow_one_impression') {\n return true;\n } else if (res?.checkKey === 'openInApp' && this.userData?.open_app_user) {\n return true;\n } else if (res?.checkKey === 'allow_wigzo' && this.userData?.allow_wigzo) {\n return true;\n } else if (res?.appName === 'omuni' && this.userData?.is_omuni2_user == 1) {\n return true;\n } else {\n return false;\n }\n });\n }\n\n appSwitch(app: string,kyc_status?:any): void {\n this.sendGaEvent(app);\n if (this.userData.allow_engage && app === 'engage') {\n window.open(\n `${this.SR_CONSTANTS.EngageWebBaseUrl}gate-keeper?token=${this.userData.token}`,\n '_blank'\n );\n } else if (app === 'checkout') {\n let url = `https://fastrr-dashboard.pickrr.com/dashboard?utm_source=sr_dashboard&utm_medium=appswitcher&utm_campaign=appswitcher01&utm_content=appswitcher01&cid=${this.userData.company_id}`;\n url = `${url}&token=${this.userData.token}`\n window.open(url, '_blank');\n // if ((this.isCheckoutAllowed(this.userData?.company_id) || this.userData.allow_checkout)) {\n // url = `${url}&token=${this.userData.token}`\n // window.open(url, '_blank');\n // }else{\n // window.open(\"https://checkout.shiprocket.in/\", '_blank');\n // }\n } else if (this.userData.allow_fbs && app === 'fullfilment') {\n window.open(\n `${this.SR_CONSTANTS.SrfWebBaseUrl}login?token=${this.userData.token}`,\n '_blank'\n );\n } else if (!this.userData.allow_fbs && app === 'fullfilment') {\n window.open(\n `${this.SR_CONSTANTS.FulfillmentWebBaseUrl}?utm_source=panel&utm_medium=app_switcher&utm_campaign=SR-Panel-non-srf-switcher&token=${this.userData.token}`,\n '_blank'\n );\n } else if (app === 'rocketbox') {\n if (this.userData.allow_rb_panel || this.userData.is_rb_user) {\n window.location.href = `${this.DOMAIN}/rocketbox`;\n } else {\n window.location.href = `${this.DOMAIN}/seller/settings/internationalsettings/internationalkyc`;\n }\n } else if (\n this.userData?.allow_sr_convert &&\n !this.userData?.allow_engage &&\n app === 'sr_convert'\n ) {\n window.open(`${this.SR_CONSTANTS.WigzoWebBaseUrl}/${this.userData.token}`, '_blank');\n } else if (app === 'sr_genie') {\n window.open(\n `https://ai-test.kartrocket.com/login?token=${this.userData.token}`,\n '_blank'\n );\n } else if (app === 'one_impression') {\n // Calling one-impression and redirecting to new tab\n this.fetchOneImpressionLoginLink();\n } else if (app === 'openInApp') {\n this.fetchOpenInAppLink();\n } else if (app === 'wigzo') {\n window.open(\n `https://app.wigzo.com/auth/shiprocket/login/${this.userData.token}`,\n '_blank'\n );\n } else if (app === 'omuni') {\n window.open(\n `https://omuni.com/`, '_blank'\n );\n // if (this.userData?.is_omuni2_user == 1) {\n // this.httpService.get('omuni/switch').subscribe(\n // (res) => {\n // const redirect_uri = res?.redirect_uri;\n // if (!redirect_uri) {\n // this.toastr.error('Something Went Wrong');\n // }\n // window.open(redirect_uri, '_blank');\n // },\n // (err) => {\n // this.toastr.error(err.message);\n // }\n // );\n // } else {\n // this.router.navigate(['/home'])\n // }\n } else if (app === 'trends') {\n \n window.open(`https://trends.shiprocket.in/`, '_blank');\n } else if (app === 'creditScore') {\n if(this.userData?.is_crif_enabled){\n window.open(\n `https://capital.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,\n '_blank'\n );\n }else{\n window.open(\n `https://www.shiprocket.in/capital/`,\n '_blank'\n );\n }\n\n\n\n \n } else if (app === 'capital') {\n window.open(\n `https://capital.shiprocket.in/home/?utm_source=App-Switcher&utm_medium=Manual-Adhoc&utm_content=capital&utm_term=flexi_business_loan&authToken=`+ this.userData.token,\n '_blank'\n );\n \n } else if (app === 'marketing') {\n window.location.href = `${this.DOMAIN}/seller/home`;\n } else if (app === 'whatsapp_solutions') {\n if (this.userData.allow_engage) {\n window.open(\n `${this.SR_CONSTANTS.EngageWebBaseUrl}gate-keeper?token=${this.userData.token}`,\n '_blank'\n );\n } else {\n window.open(`https://app-engage.shiprocket.in/auth/register`, '_blank');\n }\n } else if (app === 'internationalParcels') {\n if(kyc_status==0||kyc_status==1||kyc_status==2||kyc_status==4){\n window.location.href = `${this.DOMAIN}/seller/internationalDashboard/overview`;\n }else{\n window.location.href = `${this.DOMAIN}/seller/settings/internationalsettings/internationalkyc`;\n }\n } else if (app === 'i_rocketbox') {\n window.location.href = `${this.DOMAIN}/seller/settings/internationalsettings/internationalkyc`;\n } else if (app === 'brand_launch') {\n window.location.href = `${this.DOMAIN}/seller/settings/internationalsettings/internationalkyc`;\n } else if (app === 'express_parcel') {\n window.location.href = `${this.DOMAIN}/seller/home`;\n } else if (app === 'instant_deliveries') {\n window.open(`${this.SR_CONSTANTS.QuickWebBaseUrl}gate-keeper?token=${this.userData.token}`,'_blank');\n return;\n } else if (app === 'warehousing') {\n window.open(`https://fulfillment.shiprocket.in/`, '_blank');\n } else if (app == 'srocketbox') {\n window.location.href = `${this.DOMAIN}/seller/settings/internationalsettings/internationalkyc`;\n } else if (app == 'somuni') {\n window.location.href = `${this.DOMAIN}/seller/home`;\n }\n }\n sendGaEvent(event: string): void {\n let category = '';\n let eventName = '';\n let label = '';\n switch (event) {\n case 'addorder':\n category = 'Rvmp_Header - Quick Actions';\n eventName = 'Clicked on \"Add an Order\"';\n label = '';\n break;\n case 'quickshipment':\n category = 'Rvmp_Header - Quick Actions';\n eventName = 'Clicked on \"Create a quick shipemnt';\n label = '';\n break;\n case 'ratecalculator':\n category = 'Rvmp_Header - Quick Actions';\n eventName = 'Clicked on \"Rate Calculator\"';\n label = '';\n break;\n case 'createticket':\n category = 'Rvmp_Header - Quick Actions';\n eventName = 'Clicked on \"Create a Ticket\"';\n label = '';\n break;\n case 'trackshipment':\n category = 'Rvmp_Header - Quick Actions';\n eventName = 'Clicked on \"Track Shipments\"';\n label = '';\n break;\n case 'profilename':\n category = 'Rvmp_Header - Profile Icon';\n eventName = 'Clicked on \"User Profile\"';\n label = '';\n break;\n case 'currentplan':\n category = 'Rvmp_Header - Profile Icon';\n eventName = 'Clicked on \"Current Plan\"';\n label = '';\n break;\n case 'refer':\n category = 'Rvmp_Header - Profile Icon';\n eventName = 'Clicked on \"Refer & Earn\"';\n label = '';\n break;\n case 'rateus':\n category = 'Rvmp_Header - Profile Icon';\n eventName = 'Clicked on \"Rate Us\"';\n label = '';\n break;\n case 'tnc':\n category = 'Rvmp_Header - Profile Icon';\n eventName = 'Clicked on \"T&C\"';\n label = '';\n break;\n case 'changepassword':\n category = 'Rvmp_Header - Profile Icon';\n eventName = 'Clicked on \"Change Password\"';\n label = '';\n break;\n case 'logout':\n category = 'Rvmp_Header - Profile Icon';\n eventName = 'Clicked on \"Logout\"';\n label = '';\n break;\n case 'recharge':\n category = 'Rvmp_Header';\n eventName = 'Clicked on \"Recharge Wallet\"';\n label = '';\n break;\n case 'profileicon':\n category = 'Rvmp_Header';\n eventName = 'Clicked on \"Profile Icon\"';\n label = '';\n break;\n case 'fullfilment':\n category = 'Rvmp_Header - App Switcher';\n eventName = 'Clicked on \"SR Fulfilment\"';\n label = '';\n break;\n case 'switchtooldversion':\n category = 'Rvmp_Header - Switch to old version';\n eventName = 'Clicked on \"Switch to old version\"';\n label = 'company_id:' + this.userData.company_id;\n break;\n case 'engage':\n category = 'Rvmp_Header - App Switcher';\n eventName = 'Clicked on \"SR Engage\"';\n label = '';\n }\n \n this.send(category, eventName, label);\n \n }\n\n\n send(eventCategory: any, eventAction: any, eventLabel: any) {\n const source = document.cookie\n .split('; ')\n .find(row => row.startsWith('UTM='))\n ?.split('=')[1] || '';\n\n this.windowRef.nativeWindow.ga('send', 'event', {\n eventCategory: eventCategory,\n eventAction: eventAction,\n eventLabel: eventLabel ? eventLabel : source,\n });\n \n if (this.windowRef?.nativeWindow?.gtag_g4 && typeof this.windowRef.nativeWindow.gtag_g4 === 'function') {\n this.windowRef.nativeWindow.gtag_g4('event', eventAction, {\n event_category: eventCategory,\n event_label: eventLabel ? eventLabel : source,\n });\n }\n }\n\n\n fetchOpenInAppLink(): void {\n this._http.get('oneimpression/open-app-redirection_url')\n .subscribe((res:any) => {\n if (res && res?.url) {\n window.open(res?.url, '_blank');\n }\n })\n }\n fetchOneImpressionLoginLink(): void {\n this._http.get(this._getURL()+'oneimpression/get-login-link').subscribe((res:any) => {\n if (res && res?.url) {\n window.open(res?.url, '_blank');\n } else if (res?.status == 'fail') {\n // this.toastr.error(res?.message)\n }\n }),\n (error: any) => {\n };\n }\n\n\n\n public _getURL(): string {\n return `https://apiv2.shiprocket.in/v1/`;\n }\n}\n","import { Component, Input, OnInit, HostListener, OnDestroy } from '@angular/core';\nimport { trigger, transition, style, animate } from '@angular/animations';\nimport { AppSwitcherService } from './switcher.service';\nconst user = JSON.parse(localStorage.getItem('ngStorage-USER') || localStorage.getItem('_userData') || '{}');\nimport { HttpClient } from '@angular/common/http';\nimport { WindowRef } from './window-ref.service';\n\ninterface RecentProduct {\n appName: string;\n appLogo: string;\n displayName: string;\n}\n\n@Component({\n selector: 'lib-switcher',\n templateUrl: './switcher.component.html',\n styleUrls: ['./switcher.component.css'],\n animations: [\n trigger('modalAnimation', [\n transition(':enter', [\n style({ opacity: 0, transform: 'scale(0.8)' }),\n animate('200ms ease-out', \n style({ opacity: 1, transform: 'scale(1)' })\n )\n ]),\n transition(':leave', [\n animate('200ms ease-in',\n style({ opacity: 0, transform: 'scale(0.8)' })\n )\n ])\n ]),\n // ... other animations ...\n trigger('slideDown', [\n transition(':enter', [\n style({ transform: 'translateY(-20px)', opacity: 0 }),\n animate('300ms ease-out', style({ transform: 'translateY(0)', opacity: 1 }))\n ])\n ])\n ]\n})\nexport class SwitcherComponent implements OnInit, OnDestroy {\n @Input() data: string = '';\n isModalOpen = false;\n showProducts = false;\n\n openModal(param?:any) {\n this.isModalOpen = true;\n this.showProducts = false;\n const sidebar = document.querySelector('app-sidebar');\n if (sidebar) {\n sidebar.setAttribute('style', 'display: none');\n }\n this.getCompanyService();\n \n setTimeout(() => {\n this.showProducts = true;\n }, 200);\n\n\n if(param == 'mobile'){\n this.userJson = JSON.parse(localStorage.getItem('ngStorage-USER') || localStorage.getItem('_userData') || '{}');\n this.company_id = this.userJson != null ? this.userJson?.company_id : '';\n this.appSwitcherService.send(\n 'All Products',\n 'All Products Mobile',\n 'Company Id: ' + this.company_id\n );\n }else if(param == 'desktop'){\n this.appSwitcherService.send(\n 'All Products',\n 'All Products Desktop',\n 'Company Id: ' + this.company_id\n );\n }\n\n }\n\n closeModal() {\n this.isModalOpen = false;\n const sidebar = document.querySelector('app-sidebar');\n if (sidebar) {\n sidebar.setAttribute('style', 'display: block');\n }\n }\n isDesktop: boolean = false;\n company_id = '';\n userJson:any;\n kycStatus:any;\n userData=user;\n recentUsedProducts: RecentProduct[] = [];\n\n appSwitcherApps:any={\n shipping_fulfilment_india : [\n {\n id: 1,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Express-Parcel.png',\n appName: 'express_parcel',\n checkKey: 'Domestic Shipping',\n displayName:'Domestic Shipping',\n subText :'Multiple couriers, SDD/NDD, widest reach'\n },{\n id: 2,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Instant-deliveries.png',\n appName: 'instant_deliveries',\n checkKey: 'Instant deliveries',\n displayName:'Instant deliveries',\n subText :'Multiple couriers, Hyperlocal, Intracity'\n },{\n id: 3,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Warehousing.png',\n appName: 'fullfilment',\n checkKey: 'Warehousing',\n displayName:'Warehousing',\n subText :'End-to-end brand fulfilment '\n },\n {\n id: 4,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Cargo.png',\n appName: 'rocketbox',\n checkKey: 'allow_rocketbox',\n displayName:'Cargo',\n subText:'Heavy shipments, FTL & PTL '\n },\n ],\n cross_border_commerce:[{\n id: 5,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/International-Parcels.png',\n appName: 'internationalParcels',\n checkKey: 'internationalParcels',\n displayName:'International Parcels',\n subText:'Ship to 220+ countries'\n\n },{\n id: 6,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/International-Cargo.png',\n appName: 'i_rocketbox',\n checkKey: 'i_allow_rocketbox',\n displayName:'International Cargo',\n subText:'Air & Ocean freight'\n },{\n id: 7,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Brand-Launch.png',\n appName: 'brand_launch',\n checkKey: 'brand_launch',\n displayName:'Brand Launch'\n ,\n subText:'Expand your brand globally '\n }],\n growth_marketing_solutions:[{\n id: 8,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Checkout.png',\n appName: 'checkout',\n checkKey: 'allow_checkout',\n displayName:'Checkout',\n subText:'Simplified one-click checkout'\n },{\n id: 9,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Whatsapp-Solutions.png',\n appName: 'whatsapp_solutions',\n checkKey: 'whatsapp_solutions',\n displayName:'Whatsapp Solutions',\n subText:'Marketing, commerce, chatbot - ',\n nextLineLabel:''\n },{\n id: 10,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Marketing.png',\n appName: 'marketing',\n checkKey: 'marketing',\n displayName:'Marketing',\n subText:'Digital and influencer marketing & more '\n },{\n id: 11,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/trends.png',\n appName: 'trends',\n checkKey: 'allow_trends',\n displayName:'Trends',\n subText:'E-commerce analytics for Bharat'\n }],\n financial_servicea:[{\n id: 12,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Capital.png',\n appName: 'capital',\n checkKey: 'Capital',\n displayName:'Business Loan',\n subText:'Flexible Business loan up to ₹20 Lakhs'\n },{\n id: 13,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Credit-Score.png',\n appName: 'creditScore',\n checkKey: 'Credit Score',\n displayName:'Credit Score',\n subText:'Check your credit score for free '\n }],\n other_services:[{\n id: 14,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/Web_New/Omnichannel.png',\n appName: 'omuni',\n checkKey: 'allow_omuni',\n displayName:'Omnichannel',\n subText:'Manage all sales channels - online + offline at one place'\n \n }]\n \n }\n\n\n mobile_appSwitcherApps:any={\n india_logistics_platform : [\n {\n id: 1,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/courier_app.png',\n appName: 'express_parcel',\n checkKey: 'Domestic Shipping',\n displayName:'Courier',\n subText :'Multiple couriers, SDD/NDD, widest reach'\n },{\n id: 2,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/quick_app.png',\n appName: 'instant_deliveries',\n checkKey: 'Instant deliveries',\n displayName:'Quick',\n subText :'Multiple couriers, Hyperlocal, Intracity'\n },\n {\n id: 4,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/cargo_app.png',\n appName: 'rocketbox',\n checkKey: 'allow_rocketbox',\n displayName:'Cargo',\n subText:'Heavy shipments, FTL & PTL '\n },\n {\n id: 3,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/fulfillment_app.png',\n appName: 'fullfilment',\n checkKey: 'Warehousing',\n displayName:'Fulfillment',\n subText :'End-to-end brand fulfilment '\n },\n ],\n cross_border_commerce:[{\n id: 5,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/parcel_app.png',\n appName: 'internationalParcels',\n checkKey: 'internationalParcels',\n displayName:'Parcel',\n subText:'Ship to 220+ countries'\n\n },{\n id: 6,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/cargo_int_app.png',\n appName: 'i_rocketbox',\n checkKey: 'i_allow_rocketbox',\n displayName:'Cargo X',\n subText:'Air & Ocean freight'\n }],\n growth_marketing_solutions:[\n {\n id: 9,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/engage_app.png',\n appName: 'whatsapp_solutions',\n checkKey: 'whatsapp_solutions',\n displayName:'Engage',\n subText:'Marketing, commerce, chatbot - ',\n nextLineLabel:''\n },{\n id: 11,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/trends_app.png',\n appName: 'trends',\n checkKey: 'allow_trends',\n displayName:'Trends',\n subText:'E-commerce analytics for Bharat'\n },\n {\n id: 8,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/checkout_new_app.png',\n appName: 'checkout',\n checkKey: 'allow_checkout',\n displayName:'Checkout',\n subText:'Simplified one-click checkout'\n },\n {\n id: 10,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/ads_app.png',\n appName: 'marketing',\n checkKey: 'marketing',\n displayName:'Ads',\n subText:'Digital and influencer marketing & more '\n }],\n financial_servicea:[{\n id: 12,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/capital_app.png',\n appName: 'capital',\n checkKey: 'Capital',\n displayName:'Capital',\n subText:'Flexible Business loan up to ₹20 Lakhs'\n },{\n id: 13,\n appLogo: 'https://sr-cdn-1.shiprocket.in/img/credit_score.png',\n appName: 'creditScore',\n checkKey: 'Credit Score',\n displayName:'Credit Score',\n subText:'Check your credit score for free '\n }]\n \n }\n\n public isMobileView: boolean = false;\n private readonly MOBILE_BREAKPOINT = 768;\n private resizeListener: () => void;\n private resizeTimeout: any;\n\n user: Record<string, any> = user;\n\n\n appSwitchList: Array<Record<string, string>> = [];\n\n coreStrengthImages = [\n {\n id: 1,\n imgSrc: 'https://sr-cdn-1.shiprocket.in/img/switcher_1.png',\n altText: 'Core Strength 1'\n },\n {\n id: 2,\n imgSrc: 'https://sr-cdn-1.shiprocket.in/img/switcher_2.png',\n altText: 'Core Strength 2'\n },\n {\n id: 3,\n imgSrc: 'https://sr-cdn-1.shiprocket.in/img/switcher_3.png',\n altText: 'Core Strength 3'\n },\n {\n id: 4,\n imgSrc: 'https://sr-cdn-1.shiprocket.in/img/switcher_4.png',\n altText: 'Core Strength 4'\n },\n {\n id: 5,\n imgSrc: 'https://sr-cdn-1.shiprocket.in/img/switcher_5.png',\n altText: 'Core Strength 5'\n },\n {\n id: 6,\n imgSrc: 'https://sr-cdn-1.shiprocket.in/img/switcher_6.png',\n altText: 'Core Strength 6'\n }\n ];\n\n constructor(\n private appSwitcherService: AppSwitcherService,\n private _http: HttpClient,\n private windowRef: WindowRef,\n ) {\n this.resizeListener = () => {\n // Clear the timeout if it exists\n if (this.resizeTimeout) {\n clearTimeout(this.resizeTimeout);\n }\n \n // Set a new timeout\n this.resizeTimeout = setTimeout(() => {\n this.checkScreenSize();\n }, 150);\n };\n \n this.checkScreenSize();\n this.windowRef.nativeWindow.addEventListener('resize', this.resizeListener);\n this.appSwitcherService.showAppSwitchListToDiffUser();\n this.appSwitchList = this.appSwitcherService.appSwitchList;\n }\n\n ngOnInit(): void {\n this.userJson = JSON.parse(localStorage.getItem('ngStorage-USER') || localStorage.getItem('_userData') || '{}');\n this.company_id = this.userJson != null ? this.userJson?.company_id : '';\n \n if (this.data) {\n const appsToRemove = this.data.split(',').map(app => app.trim());\n Object.keys(this.appSwitcherApps).forEach((category: any) => {\n this.appSwitcherApps[category] = this.appSwitcherApps[category].filter(\n (app: any) => !appsToRemove.includes(app.appName)\n );\n });\n }\n \n }\n\n ngOnDestroy(): void {\n this.windowRef.nativeWindow.removeEventListener('resize', this.resizeListener);\n if (this.resizeTimeout) {\n clearTimeout(this.resizeTimeout);\n }\n }\n\n private checkScreenSize(): void {\n const width = this.windowRef.nativeWindow.innerWidth;\n this.isMobileView = width < this.MOBILE_BREAKPOINT;\n this.isDesktop = width >= 768;\n document.body.classList.toggle('mobile-view', this.isMobileView);\n }\n\n getKYCData() {\n this._http.get(`settings/international/kyc/details?company_id=${this.userData.company_id}`).subscribe(\n (res:any) => {\n const data = res.data;\n if (data.kyc_status != null) {\n this.kycStatus=data.kyc_status\n }\n },\n (error) => {\n }\n );\n }\n \n getBaseUrl(): string {\n const currentUrl = window.location.hostname;\n if (currentUrl.includes('multichannel-channels-partnerships-qa-web.kartrocket.com')) {\n return 'https://multichannel-channels-partnerships-qa-api.kartrocket.com/v1/';\n } else if (currentUrl.includes('app.shiprocket.in')) {\n return 'https://apiv2.shiprocket.co/v1/';\n } else {\n return 'https://apiv2.shiprocket.co/v1/';\n }\n }\n\n\n analyticsevent(item:any){\n this.appSwitcherService.send(\n 'Switcher Service Selection',\n 'Recent Used Product',\n 'App: ' + item.displayName\n );\n }\n\n analyticsevent_mobile(item:any){\n this.appSwitcherService.send(\n 'Switcher Service Selection Mobile',\n 'Mobile Product Selection',\n 'App: ' + item.displayName\n );\n }\n\n callEvent(type: any, displayName: any) {\n // List of apps that require API call before redirection\n const apiFirstApps = [\n 'rocketbox', 'marketing', 'internationalParcels', \n 'i_rocketbox', 'brand_launch', 'express_parcel',\n 'srocketbox', 'somuni'\n ];\n\n // If not in apiFirstApps list, redirect immediately\n if (!apiFirstApps.includes(type)) {\n this.appSwitcherService.appSwitch(type, this.kycStatus);\n }\n \n this.appSwitcherService.send(\n 'Swithcer Service Selection',\n displayName,\n 'Company Id : ' + this.company_id\n );\n\n // Find the app object across all categories that matches the displayName\n let appId: any;\n let clickedApp: any;\n Object.values(this.appSwitcherApps).forEach((category: unknown) => {\n const categoryArray = category as Array<{\n id: number, \n displayName: string, \n appName: string, \n appLogo: string\n }>;\n const app = categoryArray.find(app => app.displayName === displayName);\n if (app) {\n appId = app.id;\n clickedApp = app;\n }\n });\n\n const data = {\n service_id: appId.toString()\n }\n const headers = {\n 'Content-Type': 'application/json',\n 'Authorization': 'Bearer ' + this.userData.token\n };\n \n this._http.post(`${this.getBaseUrl()}settings/company-service`, data, { headers }).subscribe(\n (res:any) => {\n // API call complete, but we don't wait for it\n },\n (error) => {}\n );\n\n // Handle UI updates and navigation independently with timeout\n setTimeout(() => {\n if (clickedApp) {\n const newRecentProduct: RecentProduct = {\n appName: clickedApp.appName,\n appLogo: clickedApp.appLogo,\n displayName: clickedApp.displayName\n };\n\n // Remove the clicked item if it exists\n this.recentUsedProducts = this.recentUsedProducts.filter(\n item => item.displayName !== displayName\n );\n\n // Add new item at the beginning\n this.recentUsedProducts.unshift(newRecentProduct);\n\n // Keep only the first 4 elements\n this.recentUsedProducts = this.recentUsedProducts.slice(0, 4);\n\n // For apps in apiFirstApps list, redirect after timeout\n if (apiFirstApps.includes(type)) {\n this.appSwitcherService.appSwitch(type, this.kycStatus);\n }\n }\n }, 500); // 500ms timeout\n }\n\n appSwitch(app: any, analyticsevent?:any): void {\n\n if(analyticsevent == 'recentUsedProduct'){\n this.analyticsevent(app);\n }else if(analyticsevent == 'mobileProductSelection'){\n this.analyticsevent_mobile(app);\n }\n\n\n\n this.appSwitcherService.appSwitch(app.appName);\n }\n\n getCompanyService() {\n \n const headers = {\n 'Content-Type': 'application/json',\n 'Authorization': 'Bearer ' + this.userData.token\n };\n\n this._http.get(`${this.getBaseUrl()}settings/company-service`, { headers }).subscribe(\n (res: any) => {\n this.appSwitchList = res.data;\n \n // Map the API response to recentUsedProducts\n this.recentUsedProducts = res.data.map((item: any) => {\n // Search for matching app across all categories\n let matchedApp;\n Object.values(this.appSwitcherApps).forEach((category: unknown) => {\n const categoryArray = category as Array<{\n id: number,\n appName: string,\n appLogo: string,\n displayName: string\n }>;\n \n const app = categoryArray.find(app => app.id === item.service_id);\n if (app) {\n matchedApp = app;\n }\n });\n\n // Return mapped object if match found, otherwise return null\n return matchedApp ? {\n appName: (matchedApp as {appName: string}).appName,\n appLogo: (matchedApp as {appLogo: string}).appLogo,\n displayName: (matchedApp as {displayName: string}).displayName\n } : null;\n }).filter((item: RecentProduct | null): item is RecentProduct => item !== null);\n }\n );\n }\n\n}\n","<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 1234</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> ","import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SwitcherComponent } from './switcher.component';\nimport { WindowRef } from './window-ref.service';\nimport { AppSwitcherService } from './switcher.service';\n\n@NgModule({\n declarations: [SwitcherComponent],\n imports: [CommonModule],\n exports: [SwitcherComponent], // Export the component for use in other modules\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n providers: [\n WindowRef,\n AppSwitcherService\n ]\n})\nexport class SwitcherModule {}\n","/*\n * Public API Surface of switcher\n */\n\nexport * from './lib/switcher.service';\nexport * from './lib/switcher.component';\nexport * from './lib/switcher.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i0","Injectable","i1","i2","i3.WindowRef","i1.AppSwitcherService","i4","trigger","transition","style","animate","Component","Input","CommonModule","NgModule","CUSTOM_ELEMENTS_SCHEMA"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEA,SAAS,OAAO,GAAA;IACd,IAAA,OAAO,MAAM,CAAC;IAChB,CAAC;IAKD,IAAA,SAAA,kBAAA,YAAA;IAAA,IAAA,SAAA,SAAA,GAAA;;IAC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