@global.engg/switcher-lib 0.0.67 → 0.0.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/global.engg-switcher-lib.umd.js +5 -4
- package/bundles/global.engg-switcher-lib.umd.js.map +1 -1
- package/esm2015/lib/switcher.component.js +4 -3
- package/esm2015/lib/switcher.service.js +3 -3
- package/fesm2015/global.engg-switcher-lib.js +5 -4
- package/fesm2015/global.engg-switcher-lib.js.map +1 -1
- package/package.json +1 -1
|
@@ -216,14 +216,14 @@ class AppSwitcherService {
|
|
|
216
216
|
}
|
|
217
217
|
else if (app === 'creditScore') {
|
|
218
218
|
if ((_c = this.userData) === null || _c === void 0 ? void 0 : _c.is_crif_enabled) {
|
|
219
|
-
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');
|
|
219
|
+
window.open(`https://capital-web.shiprocket.in/crif-home/?utm_source=App-Switcher&utm_medium=Manual-Adhoc&utm_content=crif_credit_score&utm_term=app_switcher_click&authToken=` + this.userData.token, '_blank');
|
|
220
220
|
}
|
|
221
221
|
else {
|
|
222
222
|
window.open(`https://www.shiprocket.in/capital/`, '_blank');
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
else if (app === 'capital') {
|
|
226
|
-
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');
|
|
226
|
+
window.open(`https://capital-web.shiprocket.in/home/?utm_source=App-Switcher&utm_medium=Manual-Adhoc&utm_content=capital&utm_term=flexi_business_loan&authToken=` + this.userData.token, '_blank');
|
|
227
227
|
}
|
|
228
228
|
else if (app === 'marketing') {
|
|
229
229
|
window.location.href = `${this.DOMAIN}/seller/home`;
|
|
@@ -683,6 +683,7 @@ class SwitcherComponent {
|
|
|
683
683
|
}
|
|
684
684
|
openModal(param) {
|
|
685
685
|
var _a;
|
|
686
|
+
console.log('package version is 0.0.71');
|
|
686
687
|
this.isModalOpen = true;
|
|
687
688
|
this.showProducts = false;
|
|
688
689
|
const sidebar = document.querySelector('app-sidebar');
|
|
@@ -750,7 +751,7 @@ class SwitcherComponent {
|
|
|
750
751
|
return 'https://apiv2.shiprocket.co/v1/';
|
|
751
752
|
}
|
|
752
753
|
else {
|
|
753
|
-
return '
|
|
754
|
+
return '';
|
|
754
755
|
}
|
|
755
756
|
}
|
|
756
757
|
analyticsevent(item) {
|
|
@@ -851,7 +852,7 @@ class SwitcherComponent {
|
|
|
851
852
|
}
|
|
852
853
|
}
|
|
853
854
|
SwitcherComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SwitcherComponent, deps: [{ token: AppSwitcherService }, { token: i2.HttpClient }, { token: WindowRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
854
|
-
SwitcherComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SwitcherComponent, selector: "lib-switcher", inputs: { data: "data" }, ngImport: i0, template: "<div class=\"\" [style.display]=\"!isMobileView ? 'block' : 'none'\">\n <button class=\"appSwitcherBtn\" style=\"padding: 0 !important; margin-right: .5em !important;\" (click)=\"openModal('desktop')\" *ngIf=\"userData.allow_checkout || userData.allow_engage || userData.allow_fbs || !userData.allow_fbs\">\n <div class=\"appSwitcherTxt\" style=\"display: flex; align-items: center;\">\n <span>ALL PRODUCTS</span>\n <img style=\"top: -1px; width: 15px; position: relative; margin-left: 4px;\" src=\"https://sr-sidebar.shiprocket.in/assets/svg/apps.svg\" />\n </div>\n </button>\n</div>\n\n<div [style.display]=\"isMobileView ? 'block' : 'none'\">\n <button\n (click)=\"openModal('mobile')\"\n class=\"switcher_icon\"\n >\n <img\n src=\"https://sr-sidebar.shiprocket.in/assets/svg/apps.svg\"\n alt=\"apps\"\n class=\"logo\"\n />\n </button>\n</div>\n\n<div *ngIf=\"isModalOpen\" class=\"modal\" [@modalAnimation]>\n <div class=\"modal-content_new\">\n <span class=\"close\" (click)=\"closeModal()\"><img src=\"https://sr-sidebar.shiprocket.in/assets/svg/cross-dark.svg\" /></span>\n \n <!-- ------------------------------------------------------------------------------------------------- -->\n\n\n <div class=\"mobileScreen\" [style.display]=\"!isMobileView ? 'block' : 'none'\">\n\n\n <div class=\"Topheader\">\n <h1>892898973 - Select the product you would like to experience </h1>\n <p>Elevate your business with our industry-leading products.</p>\n </div>\n\n\n <ng-container *ngIf=\"recentUsedProducts && recentUsedProducts.length\">\n <h5 class=\"section_heading\">Recently Used Products</h5>\n <div class=\"d-flex gap-4 flex-wrap\">\n <div class=\"box_section featured_section mob_box_section h-195px\" (click)=\"appSwitch(item, 'recentUsedProduct')\" *ngFor=\"let item of recentUsedProducts; let i = index\">\n <img class=\"icon\" [src]=\"item.appLogo\" />\n <h6>{{item.displayName}}</h6>\n <span class=\"getstarted mob_getstarted\">Get Started <img src=\"https://app.shiprocket.in/seller/assets/images/arrow-small-left.svg\" /></span>\n </div>\n </div>\n </ng-container>\n\n\n <!-- <ng-container *ngIf=\"appSwitchList && appSwitchList.length\">\n <h5 class=\"section_heading\">Featured Products</h5>\n <div class=\"d-flex gap-4 flex-wrap\">\n <div class=\"box_section featured_section mob_box_section\" (click)=\"appSwitch(item.appName)\" *ngFor=\"let item of appSwitchList; let i = index\">\n <img class=\"icon\" [src]=\"item.appLogo\" />\n <h6>{{item.displayName}}</h6>\n <span class=\"getstarted mob_getstarted\">Get Started <img src=\"https://app.shiprocket.in/seller/assets/images/arrow-small-left.svg\" /></span>\n </div>\n </div>\n </ng-container> -->\n \n <!-- ------------------------------------------------------------------------------------------------- -->\n \n\n\n \n <h5 class=\"section_heading\">Shipping & Fulfilment in India</h5>\n <div class=\"d-flex flex-wrap gap-4\" >\n <div class=\"box_section\" *ngFor=\"let app of appSwitcherApps.shipping_fulfilment_india\" (click)=\"callEvent(app.appName, app.displayName)\">\n <img class=\"icon\" [src]=\"app.appLogo\"/>\n <h6>{{app.displayName}}</h6>\n <p>{{app.subText}}</p>\n <span class=\"getstarted\">Get Started <img src=\"https://app.shiprocket.in/seller/assets/images/arrow-small-left.svg\"/></span>\n </div>\n </div>\n \n \n \n <h5 class=\"section_heading\">Cross Border Commerce</h5>\n <div class=\"d-flex flex-wrap gap-4\">\n <div class=\"box_section\" *ngFor=\"let app of appSwitcherApps.cross_border_commerce\" (click)=\"callEvent(app.appName, app.displayName)\">\n <img class=\"icon\" [src]=\"app.appLogo\"/>\n <h6>{{app.displayName}}</h6>\n <p>{{app.subText}}</p>\n <span class=\"getstarted\">Get Started <img src=\"https://app.shiprocket.in/seller/assets/images/arrow-small-left.svg\"/></span>\n </div>\n \n </div>\n \n \n \n <h5 class=\"section_heading\">Growth & Marketing Solutions</h5>\n <div class=\"d-flex flex-wrap gap-4\">\n <div class=\"box_section\" *ngFor=\"let app of appSwitcherApps.growth_marketing_solutions\" (click)=\"callEvent(app.appName, app.displayName)\">\n <img class=\"icon\" [src]=\"app.appLogo\"/>\n <h6>{{app.displayName}}</h6>\n <p>{{app.subText}} <span *ngIf=\"app.nextLineLabel\"><br>{{app.nextLineLabel}} </span></p>\n <span class=\"getstarted\">Get Started <img src=\"https://app.shiprocket.in/seller/assets/images/arrow-small-left.svg\"/></span>\n </div>\n </div>\n \n \n <h5 class=\"section_heading\">Financial Services</h5>\n <div class=\"d-flex flex-wrap gap-4\">\n <div class=\"box_section\" *ngFor=\"let app of appSwitcherApps.financial_servicea\" (click)=\"callEvent(app.appName, app.displayName)\">\n <span class=\"newtag\" *ngIf=\"app.appName === 'capital' || (app.appName === 'creditScore' && userData.is_crif_enabled)\"><em>New</em></span>\n <span class=\"newtag\" *ngIf=\"app.appName === 'creditScore' && !userData.is_crif_enabled\"><em>Coming Soon</em></span>\n <img class=\"icon\" [src]=\"app.appLogo\"/>\n <h6>{{app.displayName}}</h6>\n <p>{{app.subText}}</p>\n <span class=\"getstarted\">Get Started <img src=\"https://app.shiprocket.in/seller/assets/images/arrow-small-left.svg\"/></span>\n </div>\n </div>\n <h5 class=\"section_heading\">Other services</h5>\n <div class=\"d-flex flex-wrap gap-4\">\n <div class=\"box_section other_ser\" *ngFor=\"let app of appSwitcherApps.other_services\" (click)=\"callEvent(app.appName, app.displayName)\">\n <img class=\"icon\" src=\"https://sr-cdn-1.shiprocket.in/img/Web_New/Omnichannel.png\"/>\n <h6>Omnichannel</h6>\n <p style=\"text-wrap: wrap;\">Manage all sales channels - online + offline at one place</p>\n <span class=\"getstarted\" style=\"bottom: 5px;\">Get Started <img src=\"https://app.shiprocket.in/seller/assets/images/arrow-small-left.svg\"/></span>\n </div>\n </div>\n </div>\n\n <div class=\"mobileScreen_new\" [style.display]=\"isMobileView ? 'block' : 'none'\">\n <div class=\"mobile-container\">\n <!-- Header Section -->\n <div class=\"mobile-header\">\n <h2 class=\"welcome-text\">Hi {{userJson?.first_name || 'User'}}</h2>\n <p class=\"subtitle\">Power your business with our industry-leading products.</p>\n </div>\n\n <!-- Products Grid -->\n <div class=\"products-section\">\n <h3 class=\"section-title\">Shipping</h3>\n <div class=\"products-grid\">\n <ng-container >\n <div class=\"product-card product_card_shadow\"\n *ngFor=\"let product of mobile_appSwitcherApps.india_logistics_platform; let i = index\" \n (click)=\"appSwitch(product, 'mobileProductSelection')\">\n <div class=\"icon-circle\">\n <img [src]=\"product.appLogo\" [alt]=\"product.displayName\">\n </div>\n <span class=\"product-name\">{{product.displayName}}</span>\n </div>\n </ng-container>\n </div>\n\n <h3 class=\"section-title\">Cross Border</h3>\n <div class=\"products-grid\">\n <ng-container >\n <div class=\"product-card\"\n *ngFor=\"let product of mobile_appSwitcherApps.cross_border_commerce; let i = index\" \n (click)=\"appSwitch(product, 'mobileProductSelection')\">\n <div class=\"icon-circle\">\n <img [src]=\"product.appLogo\" [alt]=\"product.displayName\">\n </div>\n <span class=\"product-name\">{{product.displayName}}</span>\n </div>\n </ng-container>\n </div>\n\n <h3 class=\"section-title\">Marketing</h3>\n <div class=\"products-grid\">\n <ng-container >\n <div class=\"product-card\"\n *ngFor=\"let product of mobile_appSwitcherApps.growth_marketing_solutions; let i = index\" \n (click)=\"appSwitch(product, 'mobileProductSelection')\">\n <div class=\"icon-circle\">\n <img [src]=\"product.appLogo\" [alt]=\"product.displayName\">\n </div>\n <span class=\"product-name\">{{product.displayName}}</span>\n </div>\n </ng-container>\n </div>\n\n <h3 class=\"section-title\">Financing</h3>\n <div class=\"products-grid\">\n <ng-container >\n <div class=\"product-card\"\n *ngFor=\"let product of mobile_appSwitcherApps.financial_servicea; let i = index\" \n (click)=\"appSwitch(product, 'mobileProductSelection')\">\n <div class=\"icon-circle\">\n <img [src]=\"product.appLogo\" [alt]=\"product.displayName\">\n </div>\n <span class=\"product-name\">{{product.displayName}}</span>\n </div>\n </ng-container>\n </div>\n\n <h3 class=\"section-title\">Our Core Strengths</h3>\n <div class=\"strength-container\">\n <div class=\"strength-scroll\">\n <ng-container >\n <div class=\"strength-card\"\n *ngFor=\"let image of coreStrengthImages; let i = index\">\n <img [src]=\"image.imgSrc\" [alt]=\"image.altText\">\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n\n </div>\n</div> ", styles: ["@import\"https://fonts.cdnfonts.com/css/sf-pro-display\";@import\"https://fonts.cdnfonts.com/css/twk-lausanne\";.modal{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;z-index:1000;display:flex;justify-content:center;align-items:center}.modal-content_new{position:relative;width:100%;height:100%;background-color:#f7f5fb;overflow-y:scroll}.h-195px{height:195px!important}.close{position:absolute;top:10px;right:10px;font-size:24px;cursor:pointer;z-index:1001;padding:0 10px}::ng-deep .ad-padding-b{min-height:0!important}.d-flex{display:flex;flex-wrap:wrap}.gap-4{grid-gap:16px;gap:16px}.mobileScreen{background:#F7F5FB;padding:80px;background-image:url(https://sr-cdn-1.shiprocket.in/img/Web/Bg-Pattern.svg);background-repeat:no-repeat;background-size:contain;background-position:top right}.mobileScreen_new{background:#F7F5FB;padding:20px;background-image:url(https://sr-cdn-1.shiprocket.in/img/BG.svg);background-repeat:no-repeat;background-size:cover;background-position:top right}.Topheader{margin-bottom:35px}.Topheader h1{color:#1d1d1d;font-size:36px!important;line-height:32px!important;letter-spacing:-.48px;margin-top:0;font-family:\"SF Pro Display\",sans-serif;font-weight:500}.Topheader h1 span{color:#745be7}.Topheader p{color:#757575;font-size:18px;line-height:normal;margin-top:10px}.section_heading{color:#676767;font-size:20px!important;text-transform:uppercase;margin-bottom:0;margin-top:60px}.featured_section{width:225px!important}.box_section{height:242px;padding:12px;border-radius:16px;background:#FBFBFB;box-shadow:0 5px 20px #1b1f440d;cursor:pointer;margin-top:16px;margin-bottom:0;position:relative;width:268px}.box_section img.icon{width:100%;border-radius:10px}.box_section h6{color:#1d1d1d;font-size:18px!important;margin-top:14px;font-family:\"SF Pro Display\",sans-serif;font-weight:500;margin-bottom:8px;text-transform:capitalize;line-height:22px!important;text-wrap:wrap}.box_section p{color:#828488;font-size:14px;line-height:18px;margin-bottom:0;font-family:\"SF Pro Display\",sans-serif;font-weight:400}.box_section span.getstarted{color:#745be7;font-size:16px;position:absolute;bottom:18px;font-family:\"SF Pro Display\",sans-serif;font-weight:500}.box_section span img{margin-left:5px}.box_section .newtag{position:absolute;right:5px;padding:3px 8px 1px;background:#DDFFE8;top:5px;border-radius:30px}.box_section .newtag em{position:relative;border-radius:4px;padding:1px 8px;color:#3fc06a;font-size:10px;top:-1px;font-style:normal;text-align:center;width:100%;display:block;left:0px;line-height:20px}.appSwitcherBtn{border-radius:4px;border:0;cursor:pointer;line-height:12px;color:#1d1d1d;font-size:12px;background:linear-gradient(169deg,#12c2e999 40.8%,#12c2e999 45%,#c471ed99 60%);font-weight:400;transition:background-color .3s}.appSwitcherBtn:hover{background-color:#fff}.appSwitcherTxt{background:linear-gradient(150.38deg,#fefefe -5.2%,#e7f9fd 7.94%,#f9f1fd 40.98%);padding:8px 12px 6px;border-radius:4px;margin:1px;transition:background-color .5s}.appSwitcherTxt:hover{background-color:#f9f8fe!important}.appSwitcherTxt:hover{background-color:#f9f8fe!important;transition:.5s}@media only screen and (max-width:362px){.box_section h6{font-size:12px!important}.box_section p,.box_section span.getstarted{font-size:11px}}@media (min-width: 768px) and (max-width: 1059px){.box_section h6{font-size:16px!important}.box_section p{font-size:13px!important}.box_section{height:206px!important;width:188px!important}.box_section span.getstarted{font-size:12px!important}.section_heading{font-size:16px!important}}@media (max-width: 767px){.h-195px{height:142px!important}.mob_box_section.h-195px{min-height:142px!important}.mob_box_section.h-195px h6{min-height:auto!important}.mob_box_section{width:100%!important;padding:12px!important;border-radius:16px!important;background:#FBFBFB!important;box-shadow:0 5px 20px #1b1f440d!important;cursor:pointer!important;margin-top:16px!important;margin-bottom:0!important;position:relative!important;line-height:18px!important;min-height:160px!important}.mob_box_section img.mob_icon{width:100%!important;border-radius:6px!important}.mob_box_section h6{color:#1b1f44!important;font-size:14px!important;margin-top:10px!important;font-family:\"SF Pro Display\",sans-serif!important;margin-bottom:5px!important;text-transform:capitalize!important;min-height:34px!important;font-weight:500!important;line-height:20px!important}.mob_getstarted{color:#745be7!important}.switcher_icon{border:none;background:#fff;position:relative;top:0px;box-shadow:0 -1px 4px #0000000f;padding:11px 7px}.mobileScreen{padding:20px;background-size:auto}.box_section{flex:0 0 calc(50% - 16px);box-sizing:border-box}.box_section span.getstarted{bottom:10px;font-size:14px}.box_section{padding:10px;margin-top:0;height:auto}.box_section h6{font-size:14px;margin-top:10px}.box_section p{font-size:12px;line-height:1.3;max-height:70px;min-height:55px}.other_ser p{min-height:65px!important}.box_section .icon{height:auto}.getstarted{font-size:12px}.Topheader h1{font-size:25px!important;line-height:30px!important}.Topheader p{font-size:14px}.section_heading{font-size:16px!important;margin:45px 0 10px}}.mobile-container{min-height:100vh;font-family:\"TWK Lausanne\",sans-serif}.mobile-header{margin-bottom:24px}.welcome-text{font-size:22px!important;margin-bottom:8px;font-weight:600;text-transform:capitalize;margin-top:10px}.subtitle{font-size:14px;color:#888;line-height:1.4}.section-title{font-size:18px;margin:24px 0 16px;text-transform:capitalize;color:#191919;font-weight:600}.products-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:16px;gap:16px;margin-bottom:30px}.product-card{background:#fff;border-radius:12px;padding:15px 10px;display:flex;flex-direction:column;align-items:center;grid-gap:8px;gap:8px;cursor:pointer;box-shadow:0 0 20px #1b1f440d}.product_card_shadow{box-shadow:0 0 20px #0a0b111a!important}@keyframes slideDown{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}.product-card.show{animation-play-state:running}.product-card:active{transform:scale(.98)}.product-card.ng-enter{opacity:0;transform:translateY(-20px)}.product-card.ng-enter-active{opacity:1;transform:translateY(0)}.icon-circle{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center}.icon-circle img{width:50px;height:50px}.product-name{font-size:12px;color:#333;text-align:center;font-weight:600;display:inline-block;white-space:nowrap;margin-top:5px;font-family:\"TWK Lausanne\",sans-serif}.recharge-banner{background:linear-gradient(45deg,#745BE7,#12C2E9);border-radius:16px;padding:20px;margin:24px 0;position:relative;overflow:hidden}.banner-content{display:flex;justify-content:space-between;align-items:center;z-index:1;position:relative}.banner-text h3{font-size:16px;margin-bottom:4px;color:#fff}.banner-text h2{font-size:24px;color:#4ade80;margin:0}.recharge-btn{background:#4ADE80;color:#000;border:none;padding:8px 16px;border-radius:8px;font-weight:500;cursor:pointer;transition:background-color .2s}.recharge-btn:hover{background:#22C55E}.wallet-image{position:absolute;right:-20px;bottom:-20px;width:120px;opacity:.8}.pagination-dots{display:flex;justify-content:center;align-items:center;grid-gap:4px;gap:4px;margin-top:16px;position:relative}.dot{height:4px;width:16px;background:rgba(115,91,231,.3);cursor:pointer;transition:all .3s ease;border-radius:2px}.dot.active{background:#745BE7;position:relative}.dot.active:after{content:\"\";position:absolute;bottom:-4px;left:50%;transform:translate(-50%);width:4px;height:4px;background:#745BE7;border-radius:50%}@media (min-width: 361px) and (max-width: 380px){.product-card{min-width:70px;width:100%;padding:10px}}@media (max-width: 360px){.product-card{min-width:60px;width:100%;padding:10px}.product-name{font-size:12px;margin-top:5px}.mobile-container{padding:0}.welcome-text{font-size:22px}.subtitle{font-size:13px}.icon-circle{width:40px;height:40px}.icon-circle img{width:40px;height:40px}}@media (max-width: 767px){.products-grid{grid-gap:12px;gap:12px}.recharge-banner{padding:16px}.banner-text h2{font-size:20px}.recharge-btn{padding:6px 12px;font-size:14px}}.strength-container{width:100%;overflow:hidden;position:relative;padding:0;margin-bottom:50px}.strength-scroll{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;grid-gap:16px;gap:16px;padding:0 16px;scrollbar-width:none;-ms-overflow-style:none}.strength-scroll::-webkit-scrollbar{display:none}.strength-card{flex:0 0 220px;scroll-snap-align:start;border-radius:12px;overflow:hidden}.strength-card img{width:100%;height:auto;display:block;object-fit:cover}@media (hover: none){.strength-scroll{touch-action:pan-x}}.mobile-container{font-family:\"TWK Lausanne\",sans-serif}.mobile-header .welcome-text,.mobile-header .subtitle,.section-title,.product-name{font-family:\"TWK Lausanne\",sans-serif}\n"], directives: [{ type: i4.NgIf, selector: "[ngIf]" }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]" }], animations: [
|
|
855
|
+
SwitcherComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SwitcherComponent, selector: "lib-switcher", inputs: { data: "data" }, ngImport: i0, template: "<div class=\"\" [style.display]=\"!isMobileView ? 'block' : 'none'\">\n <button class=\"appSwitcherBtn\" style=\"padding: 0 !important; margin-right: .5em !important;\" (click)=\"openModal('desktop')\" *ngIf=\"userData.allow_checkout || userData.allow_engage || userData.allow_fbs || !userData.allow_fbs\">\n <div class=\"appSwitcherTxt\" style=\"display: flex; align-items: center;\">\n <span>ALL PRODUCTS</span>\n <img style=\"top: -1px; width: 15px; position: relative; margin-left: 4px;\" src=\"https://sr-sidebar.shiprocket.in/assets/svg/apps.svg\" />\n </div>\n </button>\n</div>\n\n<div [style.display]=\"isMobileView ? 'block' : 'none'\">\n <button\n (click)=\"openModal('mobile')\"\n class=\"switcher_icon\"\n >\n <img\n src=\"https://sr-sidebar.shiprocket.in/assets/svg/apps.svg\"\n alt=\"apps\"\n class=\"logo\"\n />\n </button>\n</div>\n\n<div *ngIf=\"isModalOpen\" class=\"modal\" [@modalAnimation]>\n <div class=\"modal-content_new\">\n <span class=\"close\" (click)=\"closeModal()\"><img src=\"https://sr-sidebar.shiprocket.in/assets/svg/cross-dark.svg\" /></span>\n \n <!-- ------------------------------------------------------------------------------------------------- -->\n\n\n <div class=\"mobileScreen\" [style.display]=\"!isMobileView ? 'block' : 'none'\">\n\n\n <div class=\"Topheader\">\n <h1>Select the product you would like to experience </h1>\n <p>Elevate your business with our industry-leading products.</p>\n </div>\n\n\n <ng-container *ngIf=\"recentUsedProducts && recentUsedProducts.length\">\n <h5 class=\"section_heading\">Recently Used Products</h5>\n <div class=\"d-flex gap-4 flex-wrap\">\n <div class=\"box_section featured_section mob_box_section h-195px\" (click)=\"appSwitch(item, 'recentUsedProduct')\" *ngFor=\"let item of recentUsedProducts; let i = index\">\n <img class=\"icon\" [src]=\"item.appLogo\" />\n <h6>{{item.displayName}}</h6>\n <span class=\"getstarted mob_getstarted\">Get Started <img src=\"https://app.shiprocket.in/seller/assets/images/arrow-small-left.svg\" /></span>\n </div>\n </div>\n </ng-container>\n\n\n <!-- <ng-container *ngIf=\"appSwitchList && appSwitchList.length\">\n <h5 class=\"section_heading\">Featured Products</h5>\n <div class=\"d-flex gap-4 flex-wrap\">\n <div class=\"box_section featured_section mob_box_section\" (click)=\"appSwitch(item.appName)\" *ngFor=\"let item of appSwitchList; let i = index\">\n <img class=\"icon\" [src]=\"item.appLogo\" />\n <h6>{{item.displayName}}</h6>\n <span class=\"getstarted mob_getstarted\">Get Started <img src=\"https://app.shiprocket.in/seller/assets/images/arrow-small-left.svg\" /></span>\n </div>\n </div>\n </ng-container> -->\n \n <!-- ------------------------------------------------------------------------------------------------- -->\n \n\n\n \n <h5 class=\"section_heading\">Shipping & Fulfilment in India</h5>\n <div class=\"d-flex flex-wrap gap-4\" >\n <div class=\"box_section\" *ngFor=\"let app of appSwitcherApps.shipping_fulfilment_india\" (click)=\"callEvent(app.appName, app.displayName)\">\n <img class=\"icon\" [src]=\"app.appLogo\"/>\n <h6>{{app.displayName}}</h6>\n <p>{{app.subText}}</p>\n <span class=\"getstarted\">Get Started <img src=\"https://app.shiprocket.in/seller/assets/images/arrow-small-left.svg\"/></span>\n </div>\n </div>\n \n \n \n <h5 class=\"section_heading\">Cross Border Commerce</h5>\n <div class=\"d-flex flex-wrap gap-4\">\n <div class=\"box_section\" *ngFor=\"let app of appSwitcherApps.cross_border_commerce\" (click)=\"callEvent(app.appName, app.displayName)\">\n <img class=\"icon\" [src]=\"app.appLogo\"/>\n <h6>{{app.displayName}}</h6>\n <p>{{app.subText}}</p>\n <span class=\"getstarted\">Get Started <img src=\"https://app.shiprocket.in/seller/assets/images/arrow-small-left.svg\"/></span>\n </div>\n \n </div>\n \n \n \n <h5 class=\"section_heading\">Growth & Marketing Solutions</h5>\n <div class=\"d-flex flex-wrap gap-4\">\n <div class=\"box_section\" *ngFor=\"let app of appSwitcherApps.growth_marketing_solutions\" (click)=\"callEvent(app.appName, app.displayName)\">\n <img class=\"icon\" [src]=\"app.appLogo\"/>\n <h6>{{app.displayName}}</h6>\n <p>{{app.subText}} <span *ngIf=\"app.nextLineLabel\"><br>{{app.nextLineLabel}} </span></p>\n <span class=\"getstarted\">Get Started <img src=\"https://app.shiprocket.in/seller/assets/images/arrow-small-left.svg\"/></span>\n </div>\n </div>\n \n \n <h5 class=\"section_heading\">Financial Services</h5>\n <div class=\"d-flex flex-wrap gap-4\">\n <div class=\"box_section\" *ngFor=\"let app of appSwitcherApps.financial_servicea\" (click)=\"callEvent(app.appName, app.displayName)\">\n <span class=\"newtag\" *ngIf=\"app.appName === 'capital' || (app.appName === 'creditScore' && userData.is_crif_enabled)\"><em>New</em></span>\n <span class=\"newtag\" *ngIf=\"app.appName === 'creditScore' && !userData.is_crif_enabled\"><em>Coming Soon</em></span>\n <img class=\"icon\" [src]=\"app.appLogo\"/>\n <h6>{{app.displayName}}</h6>\n <p>{{app.subText}}</p>\n <span class=\"getstarted\">Get Started <img src=\"https://app.shiprocket.in/seller/assets/images/arrow-small-left.svg\"/></span>\n </div>\n </div>\n <h5 class=\"section_heading\">Other services</h5>\n <div class=\"d-flex flex-wrap gap-4\">\n <div class=\"box_section other_ser\" *ngFor=\"let app of appSwitcherApps.other_services\" (click)=\"callEvent(app.appName, app.displayName)\">\n <img class=\"icon\" src=\"https://sr-cdn-1.shiprocket.in/img/Web_New/Omnichannel.png\"/>\n <h6>Omnichannel</h6>\n <p style=\"text-wrap: wrap;\">Manage all sales channels - online + offline at one place</p>\n <span class=\"getstarted\" style=\"bottom: 5px;\">Get Started <img src=\"https://app.shiprocket.in/seller/assets/images/arrow-small-left.svg\"/></span>\n </div>\n </div>\n </div>\n\n <div class=\"mobileScreen_new\" [style.display]=\"isMobileView ? 'block' : 'none'\">\n <div class=\"mobile-container\">\n <!-- Header Section -->\n <div class=\"mobile-header\">\n <h2 class=\"welcome-text\">Hi {{userJson?.first_name || 'User'}}</h2>\n <p class=\"subtitle\">Power your business with our industry-leading products.</p>\n </div>\n\n <!-- Products Grid -->\n <div class=\"products-section\">\n <h3 class=\"section-title\">Shipping</h3>\n <div class=\"products-grid\">\n <ng-container >\n <div class=\"product-card product_card_shadow\"\n *ngFor=\"let product of mobile_appSwitcherApps.india_logistics_platform; let i = index\" \n (click)=\"appSwitch(product, 'mobileProductSelection')\">\n <div class=\"icon-circle\">\n <img [src]=\"product.appLogo\" [alt]=\"product.displayName\">\n </div>\n <span class=\"product-name\">{{product.displayName}}</span>\n </div>\n </ng-container>\n </div>\n\n <h3 class=\"section-title\">Cross Border</h3>\n <div class=\"products-grid\">\n <ng-container >\n <div class=\"product-card\"\n *ngFor=\"let product of mobile_appSwitcherApps.cross_border_commerce; let i = index\" \n (click)=\"appSwitch(product, 'mobileProductSelection')\">\n <div class=\"icon-circle\">\n <img [src]=\"product.appLogo\" [alt]=\"product.displayName\">\n </div>\n <span class=\"product-name\">{{product.displayName}}</span>\n </div>\n </ng-container>\n </div>\n\n <h3 class=\"section-title\">Marketing</h3>\n <div class=\"products-grid\">\n <ng-container >\n <div class=\"product-card\"\n *ngFor=\"let product of mobile_appSwitcherApps.growth_marketing_solutions; let i = index\" \n (click)=\"appSwitch(product, 'mobileProductSelection')\">\n <div class=\"icon-circle\">\n <img [src]=\"product.appLogo\" [alt]=\"product.displayName\">\n </div>\n <span class=\"product-name\">{{product.displayName}}</span>\n </div>\n </ng-container>\n </div>\n\n <h3 class=\"section-title\">Financing</h3>\n <div class=\"products-grid\">\n <ng-container >\n <div class=\"product-card\"\n *ngFor=\"let product of mobile_appSwitcherApps.financial_servicea; let i = index\" \n (click)=\"appSwitch(product, 'mobileProductSelection')\">\n <div class=\"icon-circle\">\n <img [src]=\"product.appLogo\" [alt]=\"product.displayName\">\n </div>\n <span class=\"product-name\">{{product.displayName}}</span>\n </div>\n </ng-container>\n </div>\n\n <h3 class=\"section-title\">Our Core Strengths</h3>\n <div class=\"strength-container\">\n <div class=\"strength-scroll\">\n <ng-container >\n <div class=\"strength-card\"\n *ngFor=\"let image of coreStrengthImages; let i = index\">\n <img [src]=\"image.imgSrc\" [alt]=\"image.altText\">\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n\n </div>\n</div> ", styles: ["@import\"https://fonts.cdnfonts.com/css/sf-pro-display\";@import\"https://fonts.cdnfonts.com/css/twk-lausanne\";.modal{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;z-index:1000;display:flex;justify-content:center;align-items:center}.modal-content_new{position:relative;width:100%;height:100%;background-color:#f7f5fb;overflow-y:scroll}.h-195px{height:195px!important}.close{position:absolute;top:10px;right:10px;font-size:24px;cursor:pointer;z-index:1001;padding:0 10px}::ng-deep .ad-padding-b{min-height:0!important}.d-flex{display:flex;flex-wrap:wrap}.gap-4{grid-gap:16px;gap:16px}.mobileScreen{background:#F7F5FB;padding:80px;background-image:url(https://sr-cdn-1.shiprocket.in/img/Web/Bg-Pattern.svg);background-repeat:no-repeat;background-size:contain;background-position:top right}.mobileScreen_new{background:#F7F5FB;padding:20px;background-image:url(https://sr-cdn-1.shiprocket.in/img/BG.svg);background-repeat:no-repeat;background-size:cover;background-position:top right}.Topheader{margin-bottom:35px}.Topheader h1{color:#1d1d1d;font-size:36px!important;line-height:32px!important;letter-spacing:-.48px;margin-top:0;font-family:\"SF Pro Display\",sans-serif;font-weight:500}.Topheader h1 span{color:#745be7}.Topheader p{color:#757575;font-size:18px;line-height:normal;margin-top:10px}.section_heading{color:#676767;font-size:20px!important;text-transform:uppercase;margin-bottom:0;margin-top:60px}.featured_section{width:225px!important}.box_section{height:242px;padding:12px;border-radius:16px;background:#FBFBFB;box-shadow:0 5px 20px #1b1f440d;cursor:pointer;margin-top:16px;margin-bottom:0;position:relative;width:268px}.box_section img.icon{width:100%;border-radius:10px}.box_section h6{color:#1d1d1d;font-size:18px!important;margin-top:14px;font-family:\"SF Pro Display\",sans-serif;font-weight:500;margin-bottom:8px;text-transform:capitalize;line-height:22px!important;text-wrap:wrap}.box_section p{color:#828488;font-size:14px;line-height:18px;margin-bottom:0;font-family:\"SF Pro Display\",sans-serif;font-weight:400}.box_section span.getstarted{color:#745be7;font-size:16px;position:absolute;bottom:18px;font-family:\"SF Pro Display\",sans-serif;font-weight:500}.box_section span img{margin-left:5px}.box_section .newtag{position:absolute;right:5px;padding:3px 8px 1px;background:#DDFFE8;top:5px;border-radius:30px}.box_section .newtag em{position:relative;border-radius:4px;padding:1px 8px;color:#3fc06a;font-size:10px;top:-1px;font-style:normal;text-align:center;width:100%;display:block;left:0px;line-height:20px}.appSwitcherBtn{border-radius:4px;border:0;cursor:pointer;line-height:12px;color:#1d1d1d;font-size:12px;background:linear-gradient(169deg,#12c2e999 40.8%,#12c2e999 45%,#c471ed99 60%);font-weight:400;transition:background-color .3s}.appSwitcherBtn:hover{background-color:#fff}.appSwitcherTxt{background:linear-gradient(150.38deg,#fefefe -5.2%,#e7f9fd 7.94%,#f9f1fd 40.98%);padding:8px 12px 6px;border-radius:4px;margin:1px;transition:background-color .5s}.appSwitcherTxt:hover{background-color:#f9f8fe!important}.appSwitcherTxt:hover{background-color:#f9f8fe!important;transition:.5s}@media only screen and (max-width:362px){.box_section h6{font-size:12px!important}.box_section p,.box_section span.getstarted{font-size:11px}}@media (min-width: 768px) and (max-width: 1059px){.box_section h6{font-size:16px!important}.box_section p{font-size:13px!important}.box_section{height:206px!important;width:188px!important}.box_section span.getstarted{font-size:12px!important}.section_heading{font-size:16px!important}}@media (max-width: 767px){.h-195px{height:142px!important}.mob_box_section.h-195px{min-height:142px!important}.mob_box_section.h-195px h6{min-height:auto!important}.mob_box_section{width:100%!important;padding:12px!important;border-radius:16px!important;background:#FBFBFB!important;box-shadow:0 5px 20px #1b1f440d!important;cursor:pointer!important;margin-top:16px!important;margin-bottom:0!important;position:relative!important;line-height:18px!important;min-height:160px!important}.mob_box_section img.mob_icon{width:100%!important;border-radius:6px!important}.mob_box_section h6{color:#1b1f44!important;font-size:14px!important;margin-top:10px!important;font-family:\"SF Pro Display\",sans-serif!important;margin-bottom:5px!important;text-transform:capitalize!important;min-height:34px!important;font-weight:500!important;line-height:20px!important}.mob_getstarted{color:#745be7!important}.switcher_icon{border:none;background:#fff;position:relative;top:0px;box-shadow:0 -1px 4px #0000000f;padding:11px 7px}.mobileScreen{padding:20px;background-size:auto}.box_section{flex:0 0 calc(50% - 16px);box-sizing:border-box}.box_section span.getstarted{bottom:10px;font-size:14px}.box_section{padding:10px;margin-top:0;height:auto}.box_section h6{font-size:14px;margin-top:10px}.box_section p{font-size:12px;line-height:1.3;max-height:70px;min-height:55px}.other_ser p{min-height:65px!important}.box_section .icon{height:auto}.getstarted{font-size:12px}.Topheader h1{font-size:25px!important;line-height:30px!important}.Topheader p{font-size:14px}.section_heading{font-size:16px!important;margin:45px 0 10px}}.mobile-container{min-height:100vh;font-family:\"TWK Lausanne\",sans-serif}.mobile-header{margin-bottom:24px}.welcome-text{font-size:22px!important;margin-bottom:8px;font-weight:600;text-transform:capitalize;margin-top:10px}.subtitle{font-size:14px;color:#888;line-height:1.4}.section-title{font-size:18px;margin:24px 0 16px;text-transform:capitalize;color:#191919;font-weight:600}.products-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:16px;gap:16px;margin-bottom:30px}.product-card{background:#fff;border-radius:12px;padding:15px 10px;display:flex;flex-direction:column;align-items:center;grid-gap:8px;gap:8px;cursor:pointer;box-shadow:0 0 20px #1b1f440d}.product_card_shadow{box-shadow:0 0 20px #0a0b111a!important}@keyframes slideDown{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}.product-card.show{animation-play-state:running}.product-card:active{transform:scale(.98)}.product-card.ng-enter{opacity:0;transform:translateY(-20px)}.product-card.ng-enter-active{opacity:1;transform:translateY(0)}.icon-circle{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center}.icon-circle img{width:50px;height:50px}.product-name{font-size:12px;color:#333;text-align:center;font-weight:600;display:inline-block;white-space:nowrap;margin-top:5px;font-family:\"TWK Lausanne\",sans-serif}.recharge-banner{background:linear-gradient(45deg,#745BE7,#12C2E9);border-radius:16px;padding:20px;margin:24px 0;position:relative;overflow:hidden}.banner-content{display:flex;justify-content:space-between;align-items:center;z-index:1;position:relative}.banner-text h3{font-size:16px;margin-bottom:4px;color:#fff}.banner-text h2{font-size:24px;color:#4ade80;margin:0}.recharge-btn{background:#4ADE80;color:#000;border:none;padding:8px 16px;border-radius:8px;font-weight:500;cursor:pointer;transition:background-color .2s}.recharge-btn:hover{background:#22C55E}.wallet-image{position:absolute;right:-20px;bottom:-20px;width:120px;opacity:.8}.pagination-dots{display:flex;justify-content:center;align-items:center;grid-gap:4px;gap:4px;margin-top:16px;position:relative}.dot{height:4px;width:16px;background:rgba(115,91,231,.3);cursor:pointer;transition:all .3s ease;border-radius:2px}.dot.active{background:#745BE7;position:relative}.dot.active:after{content:\"\";position:absolute;bottom:-4px;left:50%;transform:translate(-50%);width:4px;height:4px;background:#745BE7;border-radius:50%}@media (min-width: 361px) and (max-width: 380px){.product-card{min-width:70px;width:100%;padding:10px}}@media (max-width: 360px){.product-card{min-width:60px;width:100%;padding:10px}.product-name{font-size:12px;margin-top:5px}.mobile-container{padding:0}.welcome-text{font-size:22px}.subtitle{font-size:13px}.icon-circle{width:40px;height:40px}.icon-circle img{width:40px;height:40px}}@media (max-width: 767px){.products-grid{grid-gap:12px;gap:12px}.recharge-banner{padding:16px}.banner-text h2{font-size:20px}.recharge-btn{padding:6px 12px;font-size:14px}}.strength-container{width:100%;overflow:hidden;position:relative;padding:0;margin-bottom:50px}.strength-scroll{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;grid-gap:16px;gap:16px;padding:0 16px;scrollbar-width:none;-ms-overflow-style:none}.strength-scroll::-webkit-scrollbar{display:none}.strength-card{flex:0 0 220px;scroll-snap-align:start;border-radius:12px;overflow:hidden}.strength-card img{width:100%;height:auto;display:block;object-fit:cover}@media (hover: none){.strength-scroll{touch-action:pan-x}}.mobile-container{font-family:\"TWK Lausanne\",sans-serif}.mobile-header .welcome-text,.mobile-header .subtitle,.section-title,.product-name{font-family:\"TWK Lausanne\",sans-serif}\n"], directives: [{ type: i4.NgIf, selector: "[ngIf]" }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]" }], animations: [
|
|
855
856
|
trigger('modalAnimation', [
|
|
856
857
|
transition(':enter', [
|
|
857
858
|
style({ opacity: 0, transform: 'scale(0.8)' }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global.engg-switcher-lib.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>892898973 - 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":["i3.WindowRef","i1.AppSwitcherService"],"mappings":";;;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B,CAAC;oBAC5B,OAAO,EAAE,CAAC,sBAAsB,CAAC;AACjC,oBAAA,SAAS,EAAE;wBACT,SAAS;wBACT,kBAAkB;AACnB,qBAAA;AACF,iBAAA,CAAA;;;ACfD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"global.engg-switcher-lib.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 console.log('package version is 0.0.71');\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 '';\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":["i3.WindowRef","i1.AppSwitcherService"],"mappings":";;;;;;;;AAEA,SAAS,OAAO,GAAA;AACd,IAAA,OAAO,MAAM,CAAC;AAChB,CAAC;MAKY,SAAS,CAAA;AACpB,IAAA,IAAI,YAAY,GAAA;QACd,OAAO,OAAO,EAAE,CAAC;KAClB;;uGAHU,SAAS,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAT,SAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,SAAS,cAFR,MAAM,EAAA,CAAA,CAAA;4FAEP,SAAS,EAAA,UAAA,EAAA,CAAA;kBAHrB,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;MCAY,kBAAkB,CAAA;AA4B7B,IAAA,WAAA,CACU,MAAc,EACd,KAAiB,EACjB,SAAoB,EAAA;QAFpB,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;QACd,IAAK,CAAA,KAAA,GAAL,KAAK,CAAY;QACjB,IAAS,CAAA,SAAA,GAAT,SAAS,CAAW;;;;;;;;;;;;AAhB9B,QAAA,IAAA,CAAA,YAAY,GAAG;AACb,YAAA,eAAe,EAAE,8BAA8B;AAC/C,YAAA,gBAAgB,EAAE,mCAAmC;AACrD,YAAA,kBAAkB,EAAE,qCAAqC;AACzD,YAAA,aAAa,EAAE,gCAAgC;AAC/C,YAAA,qBAAqB,EAAE,mCAA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