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BACEA,mBACEA,iBACEA,oBACOA,kBACPA,oBAAsCA,gCAA8BA,QACtEA,QACAA,6BACEA,mBAEEA,gCACFA,QACFA,QAGAA,oBAAoBA,cAACA,QACrBA,mBACEA,iBACEA,qBACEA,mFADFA,QAEFA,QACFA,QACFA,QAEAA,sBAAQA,gCAASgM,uCACwChM,oBAAqCA,kBAC5FA,oBAAyBA,gCAA6BA,QACxDA,QAEFA,QAEFA,QACAA,mBACEA,mBACEA,mBACEA,mBAEEA,mBACEA,iBAAMA,gCAA8BA,QACpCA,kBAAMA,mBAERA,QAoBFA,QACFA,QACAA,mBACEA,mBAAoCA,oBACpCA,QACAA,6BACEA,mCACFA,QACFA,QACAA,2BAWAA,4BAwDAA,mBACEA,mBACEA,mBAEEA,iBAAMA,UAAYA,QAClBA,oBACFA,QACAA,6BACEA,kBACEA,kBAAIA,gCAASgM,cAAY,KAAK,aAC5BhM,cACEA,sBACFA,QACFA,QACAA,kBAAIA,gCAASgM,cAAY,KAAK,oCAC5BhM,cACEA,6CACFA,QACFA,QACAA,kBAAIA,gCAASgM,cAAY,KAAK,oCAC5BhM,cACEA,6CACFA,QACFA,QACFA,QACFA,QAEFA,QACFA,QACFA,QACFA,QACFA,QACFA,QACFA,QACAA,mBACEA,kBACEA,mBACEA,kBAaEA,mBACEA,kCACEA,0BAWFA,QACFA,QACAA,kBACEA,iBACEA,mBACEA,mBACFA,QACFA,QACFA,QACFA,QACFA,QACFA,QACFA,QAGAA,mBACEA,mBACEA,mBACEA,mBACEA,iBACEA,oBACOA,kBACPA,oBAAsCA,oBAAOA,QAC/CA,QACAA,6BACEA,mCACFA,QAEAA,oBAAoBA,cAACA,QACrBA,mBACEA,iBACEA,qBACFA,QACFA,QACFA,QAEAA,sBAA6EA,qBAC1CA,QAErCA,QACAA,oBACEA,kBACEA,oBACEA,oBACFA,QACFA,QACFA,QACFA,QACFA,QACFA,QACFA,QACFA,QACFA,QAGAA,oBAEEA,oBACEA,oBACEA,6BACFA,QACFA,QACF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,KAAKkkB,WAAW5B,SAASpd,EAAOlF,KAAKukB,aAAa9d,sDA9C3Cwd,GAAkBjlB,6CAAlBilB,EAAkBlZ,meAT3B/L,wBACmBA,wCAAiBgM,cAAjBhM,CAA4B,wDAAgC,IAA5DA,CAA4B,iCAAoDgM,mBAAgBhM,QACnHA,oBAAgDA,gCAASgM,eACvDhM,SACFA,cADEA,krBAMOilB,GAAb,GCLaO,GAAb,MAAM,QAEJ/kB,eAEEc,0DAJSikB,4DAJF,CAACC,SAICD,GAAb,SAHiB9E,GAAmB,MAAEgF,SAAkB,uBCwGjD,IAAMC,GAAb,MAAM,sDAAOA,8BAASC,WAFRxB,mCAVD,CAAC,CACVyB,QAASC,KACTC,SAAUrB,GACVsB,OAAO,GAEPC,KAAgBC,SA5CT,CACPC,KACAC,KACA3N,EACAgN,KACAY,MACAC,MACAC,KACAC,aAAwB,CAACC,OAAQ,CAACZ,QAASa,KAAiBC,WAAYC,GAAmBC,KAAM,CAACC,SAClGC,KACAC,IACAC,MACAC,MACAC,KACAC,KACAC,KACAC,KACAC,MACAC,MACAC,MACAhC,KACAiC,MACAzb,KACA0b,MACAC,MACAC,MACAC,MACAC,KACAC,MACAC,aACE,CACEC,cAAe,uBAGnBC,MACA3C,GACAkC,MACAU,cAAyBC,WAchB1C,GAAb,GAGM,YAA4B9kB,GAChC,OAAO,IAAIynB,KAAoBznB,EAAM,iBAAkB,iBC9GrD8H,iBACF4f,SAGFC,OAAyBC,gBAAgB9C,IACtC+C,MAAMC,GAAOC,QAAQpM,MAAMmM","names":["i0","ctx_r59","ctx_r64","oxw","ctx_r72","ctx_r76","routes","path","component","constructor","_formBuilder","boardingService","route","http","identityService","commonService","this","loggedUserDetails","JSON","parse","localStorage","getItem","loggedUsername","ngOnInit","reactiveForm","getAllProvince","queryParams","subscribe","params","dos","isDO","registrationForm","group","firstName","Validators","nameValidation","lastName","userName","userNameVerification","email","emailValidation","password","passwordValidation","rePassword","contactNo","onlyTenNumberValidation","fixedLineNo","gender","nic","bod","businessName","businessRegistrationNumber","businessStartDate","businessPhone","addressLine1","addressLine2","province","district","city","postalCode","division","gramaNiladhari","validator","MustMatch","blockInvalidChar","e","includes","key","preventDefault","f","controls","onSubmit","submitted","incorrectContactNo","incorrectEmail","incorrectUsername","invalid","body","value","mobileNO","telephoneNo","birthday","businessNameRegNo","businessLogo","imageArray","length","image","address1","address2","gramaNil","id","selectedGramaId","divisionalSecretariat","selectedDivisionalId","doUsername","selectedCityId","processing","saveSeller","result","Swal","success","successModal","nativeElement","click","checkExists","type","checkUsernameExists","isExists","message","setErrors","checkEmailExists","checkContactNoExists","activeLang","title","allowOutsideClick","onBeforeOpen","onSelect","event","files","addedFiles","ext","name","split","pop","toLowerCase","imageUploads","push","size","splice","formData","FormData","confirmButtonColor","confirmButtonText","append","headers","HttpHeaders","token","req","HttpRequest","environment","reportProgress","request","pipe","map","HttpEventType","last","catchError","of","isValidImageArray","onRemove","index","indexOf","selectProvince","selectedProvinceId","getAllDistrict","allDivisionList","allGramaList","fetchAllProvince","allProvinceList","agriDistrict","fetchAllDistrict","allDistrictList","selectedDistrictId","b","v","g","_a","_b","_c","getAllCities","getAllDivSec","selectDistrict","fetchAllCities","allCities","fetchAllDivision","divi","getAllGramaNiladari","selectCity","nameEN","nameSI","nameTA","cityName","selectGrama","grama","selectDivisional","fetchAllGrama","clickAgreement","$event","isClickedAgreement","checked","AsASellerComponent","selectors","ctx","AsASellerRoutingModule","RouterModule","CommonService","router","controlName","matchingControlName","formGroup","matchingControl","errors","I","mustMatch","filterOnlySpecialCharacters","word","filter","RegExp","test","addressValidation","referenceNumberValidation","mobileNumberValidation","pinVerification","sriLankaNICValidation","whiteSpaceNotAllowed","findInvalidControls","form","checkPrivilege","privilegeList","_activePrivilegesList","privilege","logOutMessage","language","logOutMessages","cancelMessage","customRouter","URL","navigate","then","factory","BoardingService","mainUrl","saveBuyer","nedaBuyerDTO","post","MAIN_URL_ONBOARDING","updateSellerProfile","fetchPrivilegesByUserId","userId","get","MAIN_URL_AUTH","fetchAllCountries","getSellerDetails","getSellerBusinessDetails","getBuyerDetails","getDistrictOfficerDetails","checkExistCountry","username","fetchCityById","fetchAllCitiesByProvinceId","fetchAllCitiesCityPak","MAIN_URL_DELIVERY","fetchAllDevelopmentOfficerBySellers","fetchAllDistrictOfficerBySellers","fetchPersonalDetailsSeller","fetchPersonalDetailsBuyer","fetchPersonalDetailsDso","fetchPersonalDetailsDistrictOfficer","updatePersonalDetails","resetPassword","forgotPassword","addReview","MAIN_URL_PRODUCT","checkExistFeedbackByTransactionIdAndProductId","transactionId","productId","saveSellerStory","fetchSellerStoryDetailsByUsername","deleteSellerStoryImage","CartService","updateCartQty","addToCart","findCartByUsername","showCartByOwner","showCartByUsername","findCartByOwner","cartMerge","user","owner","getPricingByUsername","loadCartTotalDetails","deleteItemFromCartOwner","deleteItemFromCartUser","IdentityService","sendContactUsMail","InteractionService","Subject","_loginSuccess","asObservable","_setCurrency","_updateCart","_popupLoginModal","_myAccount","_updateActiveLang","setMyAccountDetails","status","next","setLoginSuccess","setCurrencySuccess","setCartSuccess","setPopUpLoginSuccess","MainUrlService","ProductService","fetchCategories","fetchAllWithSubCategory","fetchSubCategoriesById","code","fetchProductUnitTypes","MAIN_URL_CORE","spotProductSave","fetchAllDevelopmentOfficerBySellerSales","spotProductUpdate","fetchPopularProducts","currency","fetchLatestProducts","fetchLatestProductsSellerStore","fetchAllProductsSellerStore","getProductDetails","fetchFilter","fetchFAQLst","searchFAQByTerm","term","fetchProductDetailsBySellerUsername","changeProductStatus","fetchFeedbacksByBuyerUsername","UserService","login","whoAmI","buyerAccountVerification","sellerDashboard","devoDashboard","districtOfficerDashboard","buyerDashboard","fetchSellerStoreDetails","checkSellerStory","production","proxyURL","baseURL","version","loadChildren","i","m","HomeModule","LoginModule","AboutModule","ContactModule","FaqModule","PrivacyPolicyModule","TermsAndConditionsBuyerModule","SignupModule","AsASellerModule","AsABuyerModule","ResetPasswordModule","Promise","MyProfileModule","OverviewModule","DevoOverviewModule","DistrictOverviewModule","AccountVerificationModule","AddProductModule","MyProductsModule","SellerSettingsModule","SellerMessagesModule","SellerOrdersModule","SellerOrderViewModule","SellerProductViewModule","BuyerMessagesModule","MarketPlaceModule","BankAccountsModule","SellerProfileModule","FeedbacksModule","MySellersModule","ProductSingleViewModule","MyPurchasesModule","TrackOrderModule","BuyerOverviewModule","SellerStoreModule","VideoArticleModule","CartModule","CheckoutModule","SellerEarningsModule","BuyerOrdersModule","TrackingFeedbackModule","TrackOrderBuyerModule","EditBankAccModule","EditProductModule","SellersModule","DistrictOfficerSellersModule","DistrictOfficerOrdersModule","DistrictOfficerSalesModule","DevoSellerProductsModule","DevoSellerProductViewModule","DevoSellerOrdersModule","AppRoutingModule","scrollPositionRestoration","preloadingStrategy","PreloadAllModules","relativeLinkResolution","CategoriesListComponent","productService","interactionService","undefined","sessionStorage","loadCategoryList","activeLang$","activeResult","categoryList","ctx_r10","ctx_r18","ShoppingCartListComponent","cartService","DEFAULT_CURRENCY","setItem","commonLoadCart","updateCart","loginSuccess","isLogged","isLoggedIn","cartID","c","cartDetails","commonCartLoader","cartLength","loadCartTotal","subTotal","arr","temp","cart","unitName","productImages","quantity","category","isSmallerQty","pricePerUnit","currentAvailableQty","guestCartTotal","loadLatestProductList","latestProductList","removeItem","continueToCheckout","LoginModalComponent","formBuilder","toastr","userService","reactiveLoginForm","loginForm","loginUsername","loginPassword","f1","submittedLoginForm","isPassUsernameInValid","accessToken","isSriLankan","whoAmIDetails","roles","commonBody","error","stringify","closeModal","SD","s","HeaderComponent","_translateService","slidesToShow","slidesToScroll","centerMode","autoplay","initialSlide","autoplaySpeed","infinite","responsive","breakpoint","settings","dots","userRole","isUserLogged","loadSellerDetails","setupCurrency","setSelectedCountry","loginModal","logout","text","showCancelButton","cancelButtonColor","cancelButtonText","clear","selectCountry","sellerResult","userDetails","buyerResult","developmentOfficerResult","districtOfficerResult","searchBarFunction","searchProduct","searchText","useLanguage","use","FooterComponent","ChatConfigComponent","EventEmitter","fadeInOut","trigger","transition","style","opacity","animate","fadeIn","ChatService","imageUpload","responseType","chat","MAIN_URL_CHAT","getSenderId","sender","getMessages","chatRoomId","getChatRoomList","getChatMessagesList","setAsDeliveredByChatRoomId","ctx_r11","ctx_r13","ctx_r14","ChatWidgetComponent","service","mainURL","connect","randomMessage","tenantValue","setTimeout","visible","_visible","scrollToBottom","focusMessage","addMessage","from","img","date","messages","unshift","bottom","scrollIntoView","focus","sendMessage","content","receiver","stompClient","send","newmessage","client","Date","getTime","position","showConfirmButton","timer","Object","keys","chatroomid","getMessage","notificationCount","operator","msg","time","setAsDeliveredMessages","chatRoomID","toggleChat","handleKeyboardEvent","imageRes","file","imageUrl","setConnected","connected","disabled","greetings","socket","SockJS","Stomp","_this","hello","showMessage","sendMessageSocket","AppComponent","bnIdle","startWatching","isTimedOut","clearSessionStorage","setDefaultLang","AuthInterceptor","_router","intercept","tokenReq","clone","setHeaders","handle","ChatInputComponent","chatWindow","clearMessage","trim","emit","onFileSelected","selectedFile","ChatModule","CommonModule","L","AppModule","bootstrap","provide","HTTP_INTERCEPTORS","useClass","multi","BnNgIdleService","imports","BrowserModule","NgbModule","NgxPaginationModule","BrowserAnimationsModule","SlickCarouselModule","TranslateModule","loader","TranslateLoader","useFactory","HttpLoaderFactory","deps","HttpClient","MatFormFieldModule","MatInputModule","MatButtonModule","MatTableModule","HttpClientModule","FormsModule","ReactiveFormsModule","MatCheckboxModule","MatPaginatorModule","MatIconModule","MatRadioModule","NgxDropzoneModule","MatDatepickerModule","MatNativeDateModule","MatAutocompleteModule","MatGridListModule","MatMenuModule","MatTabsModule","ToastrModule","positionClass","MatSelectModule","NgxPictureModule","CLOUDINARY_CONFIG","TranslateHttpLoader","enableProdMode","__NgCli_bootstrap_1","bootstrapModule","catch","err","console"],"sources":["./src/app/authentication/signup/as-a-seller/as-a-seller.component.html","./src/app/authentication/signup/as-a-seller/as-a-seller-routing.module.ts","./src/app/authentication/signup/as-a-seller/as-a-seller.component.ts","./src/app/common-service/common-service.ts","./src/app/services/boarding.service.ts","./src/app/services/cart.service.ts","./src/app/services/identity.service.ts","./src/app/services/interaction.service.ts","./src/app/services/main-url.service.ts","./src/app/services/product.service.ts","./src/app/services/user.service.ts","./src/environments/environment.neda_live.ts","./src/app/app-routing.module.ts","./src/app/popups/categories-list/categories-list.component.html","./src/app/popups/categories-list/categories-list.component.ts","./src/app/popups/shopping-cart-list/shopping-cart-list.component.html","./src/app/popups/shopping-cart-list/shopping-cart-list.component.ts","./src/app/popups/login-modal/login-modal.component.html","./src/app/popups/login-modal/login-modal.component.ts","./src/app/shared/header/header.component.html","./src/app/shared/header/header.component.ts","./src/app/shared/footer/footer.component.ts","./src/app/shared/footer/footer.component.html","./src/app/chat/chat-config/chat-config.component.ts","./src/app/chat/animations.ts","./src/app/services/chat.service.ts","./src/app/chat/chat-widget/chat-widget.component.html","./src/app/chat/chat-widget/chat-widget.component.ts","./src/app/app.component.ts","./src/app/app.component.html","./src/app/authentication/auth-interceptor.ts","./src/app/chat/chat-input/chat-input.component.ts","./src/app/chat/chat.module.ts","./src/app/app.module.ts","./src/main.ts"],"sourcesContent":["
\r\n
\r\n
\r\n
\r\n
\r\n

{{'SELLER_SIGNUP.TITLE_1'|translate}}

\r\n

{{'SELLER_SIGNUP.TITLE_2'|translate}}

\r\n
\r\n
\r\n\r\n
\r\n
\r\n

{{'SELLER_SIGNUP.USER_DETAILS'|translate}}

\r\n
\r\n
\r\n
\r\n {{'SELLER_SIGNUP.FIRST_NAME'|translate}}*\r\n \r\n \r\n\r\n
\r\n
The first name is required.
\r\n
Valid first name required.
\r\n
\r\n
\r\n
\r\n
\r\n {{'SELLER_SIGNUP.LAST_NAME'|translate}}*\r\n \r\n \r\n\r\n
\r\n
The last name is required.
\r\n
Valid last name required.
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {{'SELLER_SIGNUP.USERNAME'|translate}}*\r\n \r\n \r\n\r\n
\r\n
The username is required.
\r\n
\r\n Invalid username. The username must be between 5 and 10 characters & combination of both characters (A-Z\r\n or a-z) and numbers (0-9) ( examples: beatlesf2, Beatlesf99 ).\r\n
\r\n
\r\n
Username already exists.
\r\n
\r\n
\r\n
\r\n {{'SELLER_SIGNUP.EMAIL'|translate}}*\r\n \r\n \r\n\r\n
\r\n
The email is required.
\r\n
Email must be a valid email address.
\r\n
\r\n
Email already exists.
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {{'SELLER_SIGNUP.PASSWORD'|translate}}*\r\n \r\n \r\n\r\n
\r\n
The password is required.
\r\n
\r\n Invalid Password. Password must be between 6 and 20 characters and uppercase and lower-case\r\n letters (A-Z or a-z), numbers (0-9) and special characters (? _!@#) ( example: Beatlesfan#28 ).\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {{'SELLER_SIGNUP.CONFIRM_PASSWORD'|translate}}*\r\n \r\n \r\n\r\n
\r\n
The confirm password is required.
\r\n
Password and Confirm password do not match.
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {{'SELLER_SIGNUP.GENDER'|translate}}\r\n \r\n \r\n \r\n Male\r\n \r\n \r\n Female\r\n \r\n \r\n
\r\n
The gender is required.
\r\n
\r\n
\r\n
\r\n
\r\n {{'SELLER_SIGNUP.NIC'|translate}}*\r\n \r\n \r\n
\r\n
The nic is required.
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {{'SELLER_SIGNUP.MOBILE_PHONE'|translate}}*\r\n \r\n \r\n\r\n
\r\n
The mobile number is required.
\r\n
Valid mobile number required.
\r\n
\r\n
Mobile Phone already exists.
\r\n\r\n
\r\n
\r\n
\r\n {{'SELLER_SIGNUP.TEL_PHONE'|translate}}\r\n \r\n \r\n\r\n
\r\n
The telephone is required.
\r\n
Valid telephone required.
\r\n
\r\n
Telephone already exists.
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {{'SELLER_SIGNUP.BOD'|translate}}\r\n \r\n \r\n \r\n \r\n\r\n
\r\n
The birth day is required.
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n

{{'SELLER_SIGNUP.BUSINESS_DETAILS'|translate}}

\r\n
\r\n
\r\n
\r\n {{'SELLER_SIGNUP.BUSINESS_NAME'|translate}}*\r\n \r\n \r\n
\r\n
The business name is required.
\r\n
\r\n
\r\n
\r\n
\r\n {{'SELLER_SIGNUP.BUSINESS_REG_NO'|translate}}*\r\n \r\n \r\n
\r\n
The business registration number\r\n is required.\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {{'SELLER_SIGNUP.BUSINESS_START_DATE'|translate}}\r\n \r\n \r\n \r\n \r\n\r\n
\r\n
The business started date\r\n is required.\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n {{'SELLER_SIGNUP.BUSINESS_PHONE'|translate}}\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n {{'SELLER_SIGNUP.BUSINESS_LOGO'|translate}}\r\n\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n

{{'SELLER_SIGNUP.BUSINESS_LOGO_UPLOAD'|translate}}

\r\n
\r\n
\r\n\r\n
\r\n

\r\n {{'SELLER_SIGNUP.MAX_SIZE'|translate}}

\r\n

\r\n {{'SELLER_SIGNUP.ALLOWED_TYPE'|translate}}

\r\n
\r\n
\r\n
\r\n\r\n
\r\n

{{'SELLER_SIGNUP.BUSINESS_ADDRESS'|translate}}

\r\n
\r\n
\r\n
\r\n {{'SELLER_SIGNUP.ADDRESS_LINE_1'|translate}}*\r\n \r\n \r\n
\r\n
The address line 1 is required.
\r\n
\r\n
\r\n
\r\n
\r\n {{'SELLER_SIGNUP.ADDRESS_LINE_2'|translate}}*\r\n \r\n \r\n
\r\n
The address line 2 is required.
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {{'SELLER_SIGNUP.PROVINCE'|translate}}*\r\n \r\n \r\n \r\n {{province.nameEN}}\r\n \r\n \r\n
\r\n
\r\n The province is required.\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {{'SELLER_SIGNUP.DISTRICT'|translate}}*\r\n \r\n \r\n \r\n {{district.nameEN}}\r\n \r\n \r\n
\r\n
\r\n The district is required.\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {{'SELLER_SIGNUP.DS'|translate}}*\r\n \r\n \r\n \r\n {{division.nameEN}}\r\n \r\n \r\n
\r\n
\r\n The division secretariat is required.\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n {{'SELLER_SIGNUP.CITY'|translate}}*\r\n \r\n \r\n \r\n {{city.nameEN}}\r\n \r\n \r\n
\r\n
\r\n The city is required.\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n {{'SELLER_SIGNUP.GN'|translate}}*\r\n \r\n\r\n \r\n \r\n {{grama.nameEN}}\r\n \r\n \r\n\r\n
\r\n
\r\n The grama niladhari division is required.\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {{'SELLER_SIGNUP.POSTAL_CODE'|translate}}*\r\n\r\n \r\n \r\n
\r\n
The postal code is required.
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n {{'SELLER_SIGNUP.BY'|translate}}\r\n {{'SELLER_SIGNUP.MADE_IN'|translate}}
\r\n {{'SELLER_SIGNUP.PRIVACY'|translate}} {{'SELLER_SIGNUP.AND'|translate}} {{'SELLER_SIGNUP.TERMS'|translate}}\r\n
\r\n
\r\n
\r\n\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \"\"\r\n
\r\n
\r\n

Loading..

\r\n

Please wait

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n task_alt\r\n \r\n
\r\n
\r\n

{{'SELLER_SIGNUP.SUCCESS'|translate}}!

\r\n

\r\n Thank you for signing up with Made in Sri Lanka trade portal. Your account is under review.

\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Terms & Conditions - Seller

\r\n \r\n
\r\n
\r\n
\r\n
    \r\n
  1. The seller shall be solely responsible for the security and safety of seller account password and\r\n shall not be disclosed to any third party.\r\n
  2. \r\n
  3. \r\n The seller should operate their shop smoothly and avoid the consequences.\r\n
  4. \r\n
  5. \r\n The said trade portal shall show the product as being sold by the name of the seller and not by the\r\n NEDA.\r\n
  6. \r\n
  7. \r\n Any product listed in this trade portal may be delisted by NEDA if the sale of that product would\r\n contravene any law in Sri Lanka.\r\n
  8. \r\n
  9. \r\n Seller shall provide required product information if required to NEDA. This information must be true\r\n and in-line with the actual physical product.\r\n
  10. \r\n
  11. \r\n If customer places an order for purchasing a product through the platform it shall be deemed to be an\r\n acceptance of the seller offer to sell the product and binding contract shall come into force between\r\n customer and the seller. The terms offered by the seller and are agreed to by the customer and have no\r\n relation with NEDA.\r\n
  12. \r\n
  13. NEDA will not be responsible for resolve or mediate any disputes between the seller and a customer.\r\n
  14. \r\n
  15. As a service provider NEDA shall be entitled to receive a commission for the sale of each product on\r\n the platform.\r\n
  16. \r\n\r\n
  17. \r\n NEDA will receive and process all payments for products purchased on the platform on behalf of the\r\n seller. NEDA will make the payment of the amount of the listed price of the products received from the\r\n customer. The payments will made to the seller on monthly basis to the provided bank account of the\r\n seller. NEDA shall not be liable for any failure to make payments arising due to incomplete or\r\n inaccurate information provided by the seller with regards to its bank account.\r\n
  18. \r\n
  19. NEDA shall be entitled to deduct or withhold from payments to be made to the seller for any\r\n duties taxes or other amounts required to be deducted or withheld under any federal provincial or\r\n local law and to remit the same to the taxing authority of any jurisdiction relevant to the\r\n transaction.\r\n
  20. \r\n
  21. The seller shall be responsible for payment of all customer duties sales tax, value added tax\r\n and any other duties, excess fees or charges of whatsoever nature which may be imposed by governing\r\n authorities of any jurisdiction applicable in connection with sale or supply of its products on the\r\n platform and their purchase by customer. It is the solely responsibility for the payment of any sale\r\n tax on the supply of these products to the customer through the platform and NEDA shall have no\r\n liability in this regard.\r\n
  22. \r\n
  23. \r\n NEDA will forward questions or complaints received on the platform regarding any products are\r\n sold. The seller shall oblige to respond to NEDA and the customer on all such questions or complaints\r\n within 48 hours of the receipt of such questions or complaints. If a seller fails to respond to any\r\n questions or complaint within 48 hours the seller or any of its products may be delisted from the\r\n portal without any further notice.\r\n
  24. \r\n\r\n
  25. \r\n The Supplier shall make available sufficient stocks of the items offered through the portal and shall\r\n update the non-availability of such items on the portal.\r\n
  26. \r\n
  27. The seller should ensure all the Products and their packaging will comply with all applicable\r\n marking and labeling requirements.\r\n
  28. \r\n
  29. The seller should ensure none of the Products have been or will be produced or manufactured, in\r\n whole or in part, by child labor or by convict or forced labor.\r\n
  30. \r\n
  31. The seller should ensure that he or she and its subcontractors, agents and suppliers involved in\r\n producing or delivering the Products will strictly adhere to all applicable laws of Sri Lanka and\r\n other countries where the Products are produced or delivered, regarding the operation of their\r\n facilities and their business and labor practices, including without limitation working conditions,\r\n wages, hours and minimum ages of workers.\r\n
  32. \r\n
  33. All customs duties, excises tax and any other tax on the import, manufacture or production of\r\n the Products have been duly paid.\r\n
  34. \r\n
  35. The seller should ensure that it is legally entitled and permitted to sell the products that it\r\n is listing and products are not dangerous and do not contain any hazardous substance, contraband,\r\n explosives, or any kind of prohibited material as per law.\r\n
  36. \r\n
  37. It will package and ship all Products in line with all applicable laws, and the Seller will be\r\n fully responsible for any legal violations and will hold NEDA free from any legal consequences.\r\n
  38. \r\n
  39. \r\n The supplier should list the exact specifications of the goods displayed online in the Supplier’s\r\n web page and if weight exceeds the specified quantity, Supplier shall meet the excess delivery\r\n charges.\r\n
  40. \r\n
  41. \r\n The Supplier shall take immediate steps to dispatch the goods within the given time period to the\r\n courier or make available for freight forwarder to collect, once the transaction is confirmed.\r\n
  42. \r\n
  43. \r\n The Supplier shall be responsible for producing any additional documentation necessary for a\r\n transaction such as SLSI certification, GSP, (any other certifications to mention) etc. (Where\r\n required and mention by NEDA).\r\n
  44. \r\n
  45. \r\n The Supplier shall be responsible for packaging the goods in such a manner as required for\r\n shipping and suppler should ensure the quality of the product is ensured (With the packing guidance\r\n provided by the courier company).\r\n
  46. \r\n
  47. \r\n The Seller must print and pack the invoice, shipping label.\r\n
  48. \r\n\r\n
  49. \r\n Supplier shall adhere all times and protect title rights of the others during the course of\r\n services provided by the NEDA and in the event, the Applicant violates the rights of an Intellectual\r\n Property Right Holder, the NEDA shall reserve the right to terminate/discontinue the services provided\r\n by the NEDA.\r\n
  50. \r\n
  51. \r\n It is the responsibility of the seller to update the information availability photos logos texts\r\n of the products on the trade portal. NEDA will not responsible for any liability arising from\r\n incorrect information supplied by the seller.\r\n
  52. \r\n
  53. \r\n NEDA measures Seller performance on an ongoing basis and will share a performance report with the\r\n ranks of the respective Seller and will rate the sellers accordingly.\r\n
  54. \r\n
  55. \r\n NEDA at any time, delist, downgrade or upgrade the Seller depending on commercial and operational\r\n performance without any prior notice to the Seller.\r\n
  56. \r\n
  57. \r\n Seller shall remain the sole and undisputed owner of the sold Product(s) until it is successfully\r\n delivered to the Customer, at which point title and ownership shall be transferred to the Customer.\r\n
  58. \r\n
  59. \r\n The Seller agrees to release, defend, indemnify and hold harmless NEDA including its affiliates,\r\n and any director, officer, employee, contractor, or agent, against any costs (including attorney fees\r\n and court costs on an indemnity basis), fines, penalties, damages, and liabilities, arising from,\r\n alleged to arise from, or in any way associated with the following facts ny defect in Products sold to\r\n any Customer;\r\n
    \r\n
    \r\n i. Any claim made by any Customer on the basis of any Contract;

    \r\n ii. Any defect in the packaging or shipping of a Product by the Seller;

    \r\n iii. Any violation of any law committed by the Seller, including any failure by the Seller to pay any\r\n required tax on the import, manufacture, production, sale, supply, distribution or delivery of a\r\n Product;

    \r\n iv. Any negligence or fault of whatever nature of the Seller or its affiliates, and any director,\r\n officer, employee, contractor, or agent; or

    \r\n v. Any breach in any warranty or representation made herein.\r\n\r\n
  60. \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n","import { NgModule } from '@angular/core';\r\nimport { RouterModule, Routes } from '@angular/router';\r\nimport { AsASellerComponent } from './as-a-seller.component';\r\n\r\nconst routes: Routes = [{ path: '', component: AsASellerComponent }];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forChild(routes)],\r\n exports: [RouterModule]\r\n})\r\nexport class AsASellerRoutingModule { }\r\n","import {Component, OnInit, ViewChild} from '@angular/core';\r\nimport {FormBuilder, FormGroup, Validators} from \"@angular/forms\";\r\nimport {BoardingService} from \"../../../services/boarding.service\";\r\nimport {IdentityService} from \"../../../services/identity.service\";\r\nimport {CommonService} from \"../../../common-service/common-service\";\r\nimport Swal from \"sweetalert2\";\r\nimport {HttpClient, HttpEventType, HttpHeaders, HttpRequest} from \"@angular/common/http\";\r\nimport {environment} from \"../../../../environments/environment\";\r\nimport {catchError, last, map, of} from \"rxjs\";\r\nimport {MatCheckboxChange} from \"@angular/material/checkbox\";\r\nimport {ActivatedRoute} from \"@angular/router\";\r\n\r\n@Component({\r\n selector: 'app-as-a-seller',\r\n templateUrl: './as-a-seller.component.html',\r\n styleUrls: ['./as-a-seller.component.scss']\r\n})\r\nexport class AsASellerComponent implements OnInit {\r\n\r\n registrationForm: FormGroup;\r\n submitted = false;\r\n\r\n incorrectUsername = false;\r\n incorrectEmail = false;\r\n incorrectContactNo = false;\r\n incorrectFixedLineNo = false;\r\n\r\n files: File[] = [];\r\n isValidImageArray: boolean = false;\r\n imageArray: any[] = [];\r\n allProvinceList: any;\r\n allDistrictList: any;\r\n loggedUserDetails: any;\r\n\r\n isDO: boolean = false;\r\n selectedDistrictId: any;\r\n loggedUsername: any;\r\n\r\n @ViewChild('successModal') successModal: any;\r\n\r\n constructor(private _formBuilder: FormBuilder,\r\n private boardingService: BoardingService,\r\n private route: ActivatedRoute,\r\n private http: HttpClient,\r\n private identityService: IdentityService,\r\n public commonService: CommonService) {\r\n this.loggedUserDetails = JSON.parse(localStorage.getItem('USER_DETAILS'));\r\n this.loggedUsername = localStorage.getItem('LOGGED_USERNAME');\r\n\r\n }\r\n\r\n ngOnInit(): void {\r\n this.reactiveForm();\r\n this.getAllProvince();\r\n\r\n this.route.queryParams.subscribe(params => {\r\n if (params['dos']) {\r\n this.isDO = true;\r\n }\r\n });\r\n }\r\n\r\n reactiveForm() {\r\n this.registrationForm = this._formBuilder.group({\r\n firstName: ['', [Validators.required, Validators.pattern(this.commonService.nameValidation())]],\r\n lastName: ['', [Validators.required, Validators.pattern(this.commonService.nameValidation())]],\r\n userName: ['', [Validators.required, Validators.pattern(this.commonService.userNameVerification())]],\r\n email: ['', [Validators.required, Validators.pattern(this.commonService.emailValidation())]],\r\n password: ['', [Validators.required, Validators.pattern(this.commonService.passwordValidation())]],\r\n rePassword: ['', [Validators.required]],\r\n contactNo: ['', [Validators.required, Validators.pattern(this.commonService.onlyTenNumberValidation())]],\r\n fixedLineNo: ['', [Validators.pattern(this.commonService.onlyTenNumberValidation())]],\r\n gender: [''],\r\n nic: ['', [Validators.required]],\r\n bod: [''],\r\n businessName: ['', [Validators.required]],\r\n businessRegistrationNumber: ['', [Validators.required]],\r\n businessStartDate: [''],\r\n businessPhone: [''],\r\n addressLine1: ['', [Validators.required]],\r\n addressLine2: ['', [Validators.required]],\r\n province: ['', [Validators.required]],\r\n district: ['', [Validators.required]],\r\n city: ['', [Validators.required]],\r\n postalCode: ['', [Validators.required]],\r\n division: ['', [Validators.required]],\r\n gramaNiladhari: ['', [Validators.required]],\r\n }, {\r\n validator: this.commonService.MustMatch('password', 'rePassword')\r\n });\r\n }\r\n\r\n blockInvalidChar(e:any){\r\n if(['e', 'E'].includes(e.key) && e.preventDefault()){\r\n return;\r\n }\r\n }\r\n\r\n get f() {\r\n return this.registrationForm.controls;\r\n }\r\n\r\n onSubmit() {\r\n this.submitted = true;\r\n\r\n if (this.incorrectContactNo || this.incorrectEmail || this.incorrectUsername) {\r\n return;\r\n }\r\n\r\n if (this.registrationForm.invalid) {\r\n return;\r\n }\r\n\r\n let body = {\r\n 'firstName': this.registrationForm.controls['firstName'].value,\r\n 'lastName': this.registrationForm.controls['lastName'].value,\r\n 'userName': this.registrationForm.controls['userName'].value,\r\n 'email': this.registrationForm.controls['email'].value,\r\n 'password': this.registrationForm.controls['password'].value,\r\n 'gender': this.registrationForm.controls['gender'].value,\r\n 'nic': this.registrationForm.controls['nic'].value,\r\n 'mobileNO': this.registrationForm.controls['contactNo'].value,\r\n 'telephoneNo': this.registrationForm.controls['fixedLineNo'].value,\r\n 'birthday': this.registrationForm.controls['bod'].value,\r\n 'businessName': this.registrationForm.controls['businessName'].value,\r\n 'businessNameRegNo': this.registrationForm.controls['businessRegistrationNumber'].value,\r\n 'businessStartDate': this.registrationForm.controls['businessStartDate'].value,\r\n 'businessPhone': this.registrationForm.controls['businessPhone'].value,\r\n 'businessLogo': this.imageArray.length > 0 ? this.imageArray[0].image : \"\",\r\n 'address1': this.registrationForm.controls['addressLine1'].value,\r\n 'address2': this.registrationForm.controls['addressLine2'].value,\r\n 'gramaNil': {\r\n 'id': this.selectedGramaId,\r\n 'divisionalSecretariat': {\r\n 'id': this.selectedDivisionalId\r\n }\r\n },\r\n 'doUsername': this.loggedUsername,\r\n 'city': {'id': this.selectedCityId}\r\n };\r\n\r\n this.processing();\r\n\r\n this.boardingService.saveSeller(body).subscribe(result => {\r\n Swal.close();\r\n if (result['success']) {\r\n this.successModal.nativeElement.click();\r\n }\r\n }, () => {\r\n Swal.close();\r\n });\r\n }\r\n\r\n checkExists(value: string, type: any) {\r\n\r\n switch (type) {\r\n case 'USERNAME':\r\n if (value !== undefined && value !== null) {\r\n\r\n this.identityService.checkUsernameExists(value).subscribe((isExists: { [x: string]: string; }) => {\r\n if (isExists['message'] === 'USERNAME_NOT_EXISTS') {\r\n this.incorrectUsername = false;\r\n } else if (isExists['message'] === 'USERNAME_EXISTS') {\r\n this.incorrectUsername = true;\r\n this.registrationForm.controls['userName'].setErrors(isExists);\r\n }\r\n });\r\n }\r\n break;\r\n\r\n case 'EMAIL':\r\n if (value !== undefined && value !== null) {\r\n\r\n this.identityService.checkEmailExists(value).subscribe((isExists: { [x: string]: string; }) => {\r\n if (isExists['message'] === 'EMAIL_NOT_EXISTS') {\r\n this.incorrectEmail = false;\r\n } else if (isExists['message'] === 'EMAIL_EXISTS') {\r\n this.incorrectEmail = true;\r\n this.registrationForm.controls['email'].setErrors(isExists);\r\n }\r\n });\r\n }\r\n break;\r\n\r\n case 'CONTACT_NO':\r\n if (value !== undefined && value !== null) {\r\n\r\n this.identityService.checkContactNoExists(value).subscribe((isExists: { [x: string]: string; }) => {\r\n if (isExists['message'] === 'CONTACT_NO_NOT_EXISTS') {\r\n this.incorrectContactNo = false;\r\n } else if (isExists['message'] === 'CONTACT_NO_EXISTS') {\r\n this.incorrectContactNo = true;\r\n this.registrationForm.controls['contactNo'].setErrors(isExists);\r\n }\r\n });\r\n }\r\n break;\r\n }\r\n }\r\n\r\n\r\n processing() {\r\n let message = 'Processing...';\r\n if (this.activeLang == 'si') {\r\n message = 'ගිණුම සකස්කරමින්...';\r\n } else if (this.activeLang == 'ta') {\r\n message = 'செயலாக்கம்...';\r\n }\r\n Swal.fire({\r\n title: message,\r\n allowOutsideClick: false,\r\n onBeforeOpen: () => {\r\n Swal.showLoading();\r\n }\r\n });\r\n }\r\n\r\n onSelect(event: { addedFiles: any; }) {\r\n if (this.files.length <= 3 && event.addedFiles.length !== 0) {\r\n const ext = event.addedFiles[0].name.split('.').pop().toLowerCase();\r\n if (ext === 'jpeg' || ext === 'png' || ext === 'jpg') {\r\n this.imageUploads(event.addedFiles);\r\n this.files.push(...event.addedFiles);\r\n if (event.addedFiles[0].size / 1024 / 1024 > 5) {\r\n this.files.splice(-1, 1);\r\n }\r\n }\r\n }\r\n }\r\n\r\n imageUploads(value: any[]) {\r\n let formData = new FormData();\r\n if (value[0].size > 5000000) {\r\n Swal.close();\r\n Swal.fire({\r\n title: 'Image file size is greater than 5MB. Please upload a file below 5MB',\r\n type: 'error',\r\n confirmButtonColor: '#3085d6',\r\n confirmButtonText: 'Ok'\r\n });\r\n return false;\r\n }\r\n formData.append('file', value[0]);\r\n\r\n let headers: HttpHeaders = new HttpHeaders();\r\n headers = headers.append('Access-Control-Allow-Origin', '*');\r\n headers = headers.append('Set-Cookie', 'HttpOnly;Secure;SameSite=Strict');\r\n headers = headers.append('X-TenantID', 'neda');\r\n let token = localStorage.getItem('$Token');\r\n if (token !== null) {\r\n headers = headers.append('Access-Token', token);\r\n }\r\n let req = new HttpRequest('POST', environment.proxyURL + 'fileservice/upload/', formData, {\r\n headers: headers,\r\n reportProgress: true,\r\n });\r\n this.http.request(req).pipe(\r\n map(event => {\r\n switch (event.type) {\r\n case HttpEventType.UploadProgress:\r\n break;\r\n case HttpEventType.Response:\r\n return event;\r\n }\r\n }),\r\n last(),\r\n catchError(() => {\r\n Swal.close();\r\n this.files.splice(-1, 1);\r\n return of('upload failed.');\r\n })\r\n ).subscribe(\r\n (event: any) => {\r\n if (typeof (event) === 'object') {\r\n Swal.close();\r\n this.isValidImageArray = false;\r\n this.imageArray.push({\r\n 'event': value[0],\r\n 'image': event.body.message\r\n });\r\n }\r\n }\r\n );\r\n }\r\n\r\n onRemove(event: File) {\r\n for (let image of this.imageArray) {\r\n if (image.event === event) {\r\n let index = this.imageArray.indexOf(image);\r\n if (index !== -1) {\r\n this.imageArray.splice(index, 1);\r\n }\r\n this.files.splice(this.files.indexOf(event), 1);\r\n }\r\n }\r\n }\r\n\r\n selectedProvinceId: any;\r\n allDivisionList: any;\r\n allGramaList: any;\r\n\r\n selectProvince(event: any) {\r\n this.selectedProvinceId = event;\r\n this.getAllDistrict(event);\r\n this.allDivisionList = [];\r\n this.allGramaList = [];\r\n }\r\n\r\n getAllProvince() {\r\n this.boardingService.fetchAllProvince().subscribe((result: any) => {\r\n if (result) {\r\n this.allProvinceList = result;\r\n\r\n if (this.isDO) {\r\n this.selectedProvinceId = this.loggedUserDetails.city.agriDistrict.province.id;\r\n this.getAllDistrict(this.selectedProvinceId);\r\n }\r\n }\r\n });\r\n }\r\n\r\n getAllDistrict(id: any) {\r\n this.boardingService.fetchAllDistrict(id).subscribe((result: any) => {\r\n if (result) {\r\n this.allDistrictList = result;\r\n\r\n if (this.isDO) {\r\n this.selectedDistrictId = this.loggedUserDetails?.divisionalSecretariat?.district?.id;\r\n this.getAllCities(this.selectedDistrictId);\r\n this.getAllDivSec(this.selectedDistrictId);\r\n }\r\n }\r\n });\r\n\r\n }\r\n\r\n selectDistrict(event: any) {\r\n this.selectedDistrictId = event;\r\n this.getAllCities(event);\r\n this.getAllDivSec(event);\r\n }\r\n\r\n allCities: any;\r\n selectedCity: any;\r\n\r\n city: any;\r\n isCitySelected: boolean = false;\r\n\r\n divi: any;\r\n isDiviSelected: boolean = false;\r\n\r\n grama: any;\r\n isGramaSelected: boolean = false;\r\n activeLang: string = 'en';\r\n\r\n getAllCities(id: any) {\r\n this.boardingService.fetchAllCities(id).subscribe((result: any) => {\r\n if (result) {\r\n this.allCities = result;\r\n }\r\n });\r\n }\r\n\r\n getAllDivSec(id: any) {\r\n this.boardingService.fetchAllDivision(id).subscribe((result: any) => {\r\n if (result) {\r\n this.allDivisionList = result;\r\n\r\n if (this.isDO) {\r\n this.divi = this.loggedUserDetails.divisionalSecretariat.id\r\n this.selectedDivisionalId = this.divi;\r\n this.getAllGramaNiladari(this.divi);\r\n }\r\n }\r\n });\r\n }\r\n\r\n cityName: any;\r\n selectedGramaId: any;\r\n postalCode: any;\r\n\r\n selectCity(event: any) {\r\n\r\n if (this.activeLang === 'en') {\r\n this.city = event.nameEN;\r\n } else if (this.activeLang === 'si') {\r\n this.city = event.nameSI;\r\n } else if (this.activeLang === 'ta') {\r\n this.city = event.nameTA;\r\n }\r\n\r\n this.cityName = event.nameEN;\r\n this.postalCode = event.postalCode;\r\n }\r\n\r\n selectGrama(event: any) {\r\n\r\n if (this.activeLang === 'en') {\r\n this.grama = event.nameEN;\r\n } else if (this.activeLang === 'si') {\r\n this.grama = event.nameSI;\r\n } else if (this.activeLang === 'ta') {\r\n this.grama = event.nameTA;\r\n }\r\n\r\n this.selectedGramaId = event.id;\r\n }\r\n\r\n selectedDivisionalId: any;\r\n\r\n selectDivisional(event: any) {\r\n this.selectedDivisionalId = event;\r\n this.getAllGramaNiladari(event);\r\n }\r\n\r\n getAllGramaNiladari(id: any) {\r\n this.boardingService.fetchAllGrama(id).subscribe((result: any) => {\r\n if (result) {\r\n this.allGramaList = result;\r\n }\r\n });\r\n }\r\n\r\n isClickedAgreement: boolean = false;\r\n selectedCityId: any;\r\n\r\n clickAgreement($event: MatCheckboxChange) {\r\n this.isClickedAgreement = $event.checked;\r\n }\r\n\r\n}\r\n","import {Injectable} from '@angular/core';\r\nimport {FormGroup} from '@angular/forms';\r\nimport {Router} from \"@angular/router\";\r\n\r\n/**\r\n * @author Sachin Dilshan\r\n * @version 1.0.0\r\n */\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class CommonService {\r\n\r\n constructor(private router:Router) {\r\n }\r\n\r\n MustMatch(controlName: string, matchingControlName: string) {\r\n return (formGroup: FormGroup) => {\r\n const control = formGroup.controls[controlName];\r\n const matchingControl = formGroup.controls[matchingControlName];\r\n if (matchingControl.errors && !matchingControl.errors?.['mustMatch']) {\r\n return;\r\n }\r\n if (control.value !== matchingControl.value) {\r\n matchingControl.setErrors({mustMatch: true});\r\n } else {\r\n matchingControl.setErrors(null);\r\n }\r\n };\r\n }\r\n\r\n\r\n filterOnlySpecialCharacters(word: string) {\r\n let filter = new RegExp('[a-zA-Z]');\r\n return filter.test(word);\r\n }\r\n\r\n emailValidation() {\r\n return '^(([^<>()\\\\[\\\\]\\\\\\\\.,;:\\\\s@\"]+(\\\\.[^<>()\\\\[\\\\]\\\\\\\\.,;:\\\\s@\"]+)*)|(\".+\"))@((\\\\[[0-9]{1,3}\\\\.[0-9]{1,3}\\\\.[0-9]{1,3}\\\\.[0-9]{1,3}])|(([a-zA-Z\\\\-0-9]+\\\\.)+[a-zA-Z]{2,}))$';\r\n }\r\n\r\n nameValidation() {\r\n return '^[^\\\\s][@.a-z A-Z \\u0D80-\\u0DFF \\u0B80-\\u0BFF]+$';\r\n }\r\n\r\n addressValidation() {\r\n return '^[A-Za-z0-9\\\\()\\'/\\\\.\\\\-\\\\s\\\\,\\u0D80-\\u0DFF \\u0B80-\\u0BFF]+$';\r\n }\r\n\r\n referenceNumberValidation() {\r\n return '^[A-Z0-9]{10}$';\r\n }\r\n\r\n mobileNumberValidation() {\r\n return '^[+]*[(]{0,1}(?=(?:\\\\D*\\\\d){9,11}\\\\D*$)\\\\+?[0-9]{1,3}[\\\\s-]?(?:\\\\(0?[0-9]{1,5}\\\\)|[0-9]{1,5})[-\\\\s]?[0-9][\\\\d\\\\s-]{5,7}\\\\s?(?:x[\\\\d-]{0,4})?$';\r\n\r\n }\r\n\r\n onlyTenNumberValidation() {\r\n return '^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\\\\s\\\\./0-9]*$';\r\n }\r\n\r\n pinVerification() {\r\n return '^[0-9]{4}$';\r\n }\r\n\r\n passwordValidation() {\r\n return '^(?=.*[a-z])(?=.*[A-Z])(?=.*\\\\d)(?=.*[?_!@#])[A-Za-z\\\\d?_!@#]{6,20}$';\r\n }\r\n\r\n userNameVerification() {\r\n return '^(?=.*[0-9])(?=.*[a-zA-Z])([a-zA-Z0-9]{5,10})$';\r\n }\r\n\r\n sriLankaNICValidation() {\r\n return '^((?!(0))[0-9]{9}[x|X|v|V]|(?!(0))[0-9]{12})$';\r\n }\r\n\r\n whiteSpaceNotAllowed() {\r\n return '^[^\\\\s][A-Za-z0-9 \\u0D80-\\u0DFF \\u0B80-\\u0BFF \\\\r\\\\n ().,-\\\\\\\\ #&\\'\"%=_+]+$';\r\n }\r\n\r\n findInvalidControls(form: { controls: any; }) {\r\n const invalid = [];\r\n const controls = form.controls;\r\n for (const name in controls) {\r\n if (controls[name].invalid) {\r\n invalid.push(name);\r\n }\r\n }\r\n return invalid;\r\n }\r\n\r\n checkPrivilege(privilegeList: any) {\r\n let _activePrivilegesList = localStorage.getItem('PRIVILEGES_LIST');\r\n if (_activePrivilegesList !== null) {\r\n for (let privilege of privilegeList) {\r\n if (_activePrivilegesList.includes(privilege)) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n logOutMessage(language: any) {\r\n switch (language) {\r\n case 'en' :\r\n return 'Sign Out';\r\n\r\n case 'si' :\r\n return 'ඉවත්වන්න';\r\n\r\n case 'ta' :\r\n\r\n return 'வெளியேறு';\r\n }\r\n }\r\n\r\n logOutMessages(language: any) {\r\n switch (language) {\r\n case 'en' :\r\n return 'You will be returned to the login screen';\r\n\r\n case 'si' :\r\n return 'ඔබ නැවත පිවිසුම් තිරයට පැමිණෙනු ඇත';\r\n\r\n case 'ta' :\r\n\r\n return 'நீங்கள் உள்நுழைவுத் திரையில் திரும்பப்படுவீர்கள்';\r\n }\r\n }\r\n\r\n cancelMessage(language: any) {\r\n switch (language) {\r\n case 'en' :\r\n return 'Cancel';\r\n\r\n case 'si' :\r\n return 'අවලංගු කරන්න';\r\n\r\n case 'ta' :\r\n\r\n return 'ரத்துசெய்';\r\n }\r\n }\r\n\r\n\r\n customRouter(URL:string){\r\n this.router.navigate([URL]).then(()=>{\r\n this.router.navigate([URL]);\r\n });\r\n }\r\n}\r\n","import {Injectable} from '@angular/core';\r\nimport {MainUrlService} from \"./main-url.service\";\r\nimport {HttpClient} from \"@angular/common/http\";\r\nimport {Observable} from \"rxjs\";\r\nimport {NedaBuyerDTO} from \"../dto/NedaBuyerDTO\";\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class BoardingService {\r\n\r\n constructor(private http: HttpClient, private mainUrl: MainUrlService) {\r\n }\r\n\r\n saveBuyer(nedaBuyerDTO: NedaBuyerDTO): Observable {\r\n return this.http.post(this.mainUrl.MAIN_URL_ONBOARDING + '/buyer/save', nedaBuyerDTO);\r\n }\r\n\r\n saveSeller(body: any): Observable {\r\n return this.http.post(this.mainUrl.MAIN_URL_ONBOARDING + '/seller/save', body);\r\n }\r\n\r\n updateSellerProfile(body: any): Observable {\r\n return this.http.post(this.mainUrl.MAIN_URL_ONBOARDING + '/seller/updateBusinessDetails', body);\r\n }\r\n\r\n fetchPrivilegesByUserId(userId: string) {\r\n return this.http.get(this.mainUrl.MAIN_URL_AUTH + '/privileges/getByUser/' + userId);\r\n }\r\n\r\n fetchAllCountries(): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_ONBOARDING + '/country/all');\r\n }\r\n\r\n getSellerDetails(userName: any): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_ONBOARDING + '/seller/public/detailsByUserName/' + userName);\r\n }\r\n\r\n getSellerBusinessDetails(userName: any): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_ONBOARDING + '/seller/getBusinessDetails/' + userName);\r\n }\r\n\r\n getBuyerDetails(userName: any): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_ONBOARDING + '/buyer/public/detailsByUserName/' + userName);\r\n }\r\n\r\n // getDevelopmentOfficerDetails(userName: any): Observable {\r\n // return this.http.get(this.mainUrl.MAIN_URL_ONBOARDING + '/dso/getDetailsByUsername/' + userName);\r\n // }\r\n\r\n getDistrictOfficerDetails(userName: any): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_ONBOARDING + '/districtOfficer/getDetailsByUsername/' + userName);\r\n }\r\n\r\n checkExistCountry(username: string): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_ONBOARDING + '/buyer/isSriLankan/' + username);\r\n }\r\n\r\n fetchAllProvince(): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_ONBOARDING + '/location/fetchActiveProvinces');\r\n }\r\n\r\n fetchAllDistrict(id: number): Observable {\r\n return this.http.get\r\n (this.mainUrl.MAIN_URL_ONBOARDING + '/location/fetchActiveDistrictList/' + id);\r\n }\r\n\r\n fetchAllCities(id: number): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_ONBOARDING + '/location/fetchCities/' + id);\r\n }\r\n\r\n fetchCityById(id: number): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_ONBOARDING + '/location/fetchCityById/' + id);\r\n }\r\n\r\n fetchAllGrama(id: number): Observable {\r\n return this.http.get\r\n (this.mainUrl.MAIN_URL_ONBOARDING + '/location/fetchActiveGramaNilList/' + id);\r\n }\r\n\r\n fetchAllDivision(id: number): Observable {\r\n return this.http.get\r\n (this.mainUrl.MAIN_URL_ONBOARDING + '/location/fetchActiveDivSecList/' + id);\r\n }\r\n\r\n fetchAllCitiesByProvinceId(id: string): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_ONBOARDING + '/location/fetchCitiesByProvince/' + id);\r\n }\r\n\r\n fetchAllCitiesCityPak(): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_DELIVERY + '/courier/cities/getAll');\r\n }\r\n\r\n fetchAllDevelopmentOfficerBySellers(username: any): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_ONBOARDING + '/seller/getByDO/' + username);\r\n }\r\n\r\n fetchAllDistrictOfficerBySellers(username: any): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_ONBOARDING + '/dso/getByDistrictOfficer/' + username);\r\n }\r\n\r\n fetchPersonalDetailsSeller(username: any): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_ONBOARDING + '/seller/getPersonalDetails/' + username);\r\n }\r\n\r\n fetchPersonalDetailsBuyer(username: any): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_ONBOARDING + '/buyer/getPersonalDetails/' + username);\r\n }\r\n\r\n fetchPersonalDetailsDso(username: any): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_ONBOARDING + '/dso/getPersonalDetails/' + username);\r\n }\r\n\r\n fetchPersonalDetailsDistrictOfficer(username: any): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_ONBOARDING + '/districtOfficer/getPersonalDetails/' + username);\r\n }\r\n\r\n updatePersonalDetails(body: any): Observable {\r\n return this.http.post(this.mainUrl.MAIN_URL_ONBOARDING + '/identity/updatePersonalDetails/', body);\r\n }\r\n\r\n resetPassword(body: any): Observable {\r\n return this.http.post(this.mainUrl.MAIN_URL_AUTH + '/passwordReset/reset', body);\r\n }\r\n\r\n forgotPassword(username: string): Observable {\r\n return this.http.post(this.mainUrl.MAIN_URL_AUTH + '/passwordReset/init/' + username, '');\r\n }\r\n\r\n addReview(body: any): Observable {\r\n return this.http.post(this.mainUrl.MAIN_URL_PRODUCT + '/review/add', body);\r\n }\r\n\r\n checkExistFeedbackByTransactionIdAndProductId(transactionId: any, productId: any): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_PRODUCT + '/review/checkFeedbackExists/' + transactionId + '/' + productId);\r\n }\r\n\r\n saveSellerStory(body: any): Observable {\r\n return this.http.post(this.mainUrl.MAIN_URL_ONBOARDING + '/seller/saveSellerStory', body);\r\n }\r\n\r\n fetchSellerStoryDetailsByUsername(username: string): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_ONBOARDING + '/seller/fetchAllSellerStoryByUsername/' + username);\r\n }\r\n\r\n deleteSellerStoryImage(id: number): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_ONBOARDING + '/seller/removeSellerStoryImage/' + id);\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport {HttpClient} from \"@angular/common/http\";\r\nimport {MainUrlService} from \"./main-url.service\";\r\nimport {Observable} from \"rxjs\";\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class CartService {\r\n\r\n constructor(private http: HttpClient, private mainUrl: MainUrlService) {\r\n }\r\n\r\n updateCartQty(body: any): Observable {\r\n return this.http.post(this.mainUrl.MAIN_URL_PRODUCT + '/cart/updateCart',body);\r\n }\r\n\r\n addToCart(id: any,body: any): Observable {\r\n return this.http.post(this.mainUrl.MAIN_URL_PRODUCT + '/cart/addToCart/'+ id , body);\r\n }\r\n\r\n findCartByUsername(username: string): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_PRODUCT + '/cart/findCartByUsername/' + username);\r\n }\r\n\r\n showCartByOwner(id: string): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_PRODUCT + '/cart/showCartByOwner/' + id);\r\n }\r\n\r\n showCartByUsername(id: string): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_PRODUCT +'/cart/showCartByUsername/' + id);\r\n }\r\n\r\n findCartByOwner(id: any): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_PRODUCT +'/cart/findCartByCartId/' + id);\r\n }\r\n\r\n cartMerge(user: string, owner: string): Observable {\r\n return this.http.post(this.mainUrl.MAIN_URL_PRODUCT + '/cart/mergeCart/' + user + '/' + owner, '',\r\n );\r\n }\r\n\r\n getPricingByUsername(body: any): Observable {\r\n return this.http.post(this.mainUrl.MAIN_URL_PRODUCT + '/pricing/getDetails',body);\r\n }\r\n\r\n loadCartTotalDetails(username: string): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_PRODUCT +'/cart/getTotal/' + username);\r\n }\r\n\r\n deleteItemFromCartOwner(id: string, productId: string): Observable {\r\n return this.http.post(this.mainUrl.MAIN_URL_PRODUCT + '/cart/deleteItemFromCartOwner/' + id + '/' + productId, '');\r\n }\r\n\r\n deleteItemFromCartUser(id: string, productId: string): Observable {\r\n return this.http.post(this.mainUrl.MAIN_URL_PRODUCT + '/cart/deleteItemFromCartUser/' + id + '/' + productId, '');\r\n }\r\n\r\n}\r\n","import {Injectable} from '@angular/core';\r\nimport {HttpClient} from '@angular/common/http';\r\nimport {MainUrlService} from './main-url.service';\r\nimport {Observable} from 'rxjs';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class IdentityService {\r\n\r\n constructor(private http: HttpClient, private mainUrl: MainUrlService) {\r\n }\r\n\r\n checkEmailExists(email: string): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_ONBOARDING + '/identity/checkEmailExists/' + email);\r\n }\r\n\r\n checkContactNoExists(contactNo: string): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_ONBOARDING + '/identity/checkContactNoExists/' + contactNo);\r\n }\r\n\r\n checkUsernameExists(username: string): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_ONBOARDING + '/identity/checkUsernameExists/' + username);\r\n }\r\n\r\n sendContactUsMail(body:any):Observable{\r\n return this.http.post(this.mainUrl.MAIN_URL_ONBOARDING + '/identity/sendContactUsMail',body);\r\n }\r\n\r\n}\r\n\r\n","import {Injectable} from '@angular/core';\r\nimport {Subject} from 'rxjs';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class InteractionService {\r\n\r\n private _loginSuccess = new Subject();\r\n loginSuccess = this._loginSuccess.asObservable();\r\n\r\n private _setCurrency = new Subject();\r\n setupCurrency = this._setCurrency.asObservable();\r\n\r\n private _updateCart = new Subject();\r\n updateCart = this._updateCart.asObservable();\r\n\r\n private _popupLoginModal = new Subject();\r\n loginModal = this._popupLoginModal.asObservable();\r\n\r\n private _myAccount = new Subject();\r\n myAccountDetails = this._myAccount.asObservable();\r\n\r\n private _updateActiveLang = new Subject();\r\n activeLang$ = this._updateActiveLang.asObservable();\r\n\r\n constructor() {\r\n }\r\n\r\n setMyAccountDetails(status: boolean) {\r\n this._myAccount.next(status);\r\n }\r\n\r\n setLoginSuccess(status: boolean) {\r\n this._loginSuccess.next(status);\r\n }\r\n\r\n setCurrencySuccess(status: boolean) {\r\n this._setCurrency.next(status);\r\n }\r\n\r\n setCartSuccess(status: boolean) {\r\n this._updateCart.next(status);\r\n }\r\n\r\n setPopUpLoginSuccess(status: boolean) {\r\n this._popupLoginModal.next(status);\r\n }\r\n\r\n activeLang(message: boolean) {\r\n this._updateActiveLang.next(message);\r\n }\r\n}\r\n","import {Injectable} from '@angular/core';\r\nimport {environment} from '../../environments/environment';\r\n\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class MainUrlService {\r\n\r\n constructor() {\r\n }\r\n\r\n MAIN_URL_PRODUCT = environment.proxyURL + 'productservice';\r\n MAIN_URL_FILE = environment.proxyURL + 'fileservice/file/';\r\n MAIN_URL_CORE = environment.proxyURL + 'coreservice';\r\n MAIN_URL_PAYMENT = environment.proxyURL + 'paymentservice';\r\n MAIN_URL_DELIVERY = environment.proxyURL + 'deliveryservice';\r\n MAIN_URL_AUTH = environment.proxyURL + 'authservice';\r\n MAIN_URL_ONBOARDING = environment.proxyURL + 'boardingservice/v1';\r\n MAIN_URL_REPORT = environment.proxyURL + 'reportservice';\r\n MAIN_URL_CHAT = environment.proxyURL + 'chatservice';\r\n // MAIN_URL_CHAT = 'http://localhost:8080';\r\n // MAIN_URL_CHAT = 'http://localhost:8080';\r\n\r\n}\r\n","import {Injectable} from '@angular/core';\r\nimport {HttpClient} from \"@angular/common/http\";\r\nimport {MainUrlService} from \"./main-url.service\";\r\nimport {Observable} from \"rxjs\";\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ProductService {\r\n\r\n constructor(private http: HttpClient, private mainUrl: MainUrlService) {\r\n }\r\n\r\n fetchCategories(): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_PRODUCT + '/category/all');\r\n }\r\n\r\n fetchAllWithSubCategory(): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_PRODUCT + '/category/allWithSubCategory');\r\n }\r\n\r\n fetchSubCategoriesById(code: any): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_PRODUCT + '/subCategory/getAll/' + code);\r\n }\r\n\r\n fetchProductUnitTypes(): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_CORE + '/units/all');\r\n }\r\n\r\n spotProductSave(body: any): Observable {\r\n return this.http.post(this.mainUrl.MAIN_URL_PRODUCT + '/spot/add', body);\r\n }\r\n\r\n fetchAllDevelopmentOfficerBySellerSales(username: any): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_PRODUCT + '/purchase/getSalesBySeller/' + username);\r\n }\r\n\r\n spotProductUpdate(body: any): Observable {\r\n return this.http.post(this.mainUrl.MAIN_URL_PRODUCT + '/spot/update', body);\r\n }\r\n\r\n fetchPopularProducts(currency: string): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_PRODUCT + '/product/getPopularProducts/' + currency);\r\n }\r\n\r\n fetchLatestProducts(currency: string): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_PRODUCT + '/product/getLatestProducts/' + currency);\r\n }\r\n\r\n fetchLatestProductsSellerStore(username: string, currency: string): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_PRODUCT + '/product/getLatestProductsBySellerAndCurrency/' + username + '/' + currency);\r\n }\r\n\r\n fetchAllProductsSellerStore(username: string, currency: string): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_PRODUCT + '/product/getAllProductsBySellerAndCurrency/' + username + '/' + currency);\r\n }\r\n\r\n getProductDetails(productId: any): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_PRODUCT + '/spot/getProductById/' + productId);\r\n }\r\n\r\n fetchFilter(body: any): Observable {\r\n return this.http.post(this.mainUrl.MAIN_URL_PRODUCT + '/product/filter', body);\r\n }\r\n\r\n fetchFAQLst(): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_CORE + '/faq/all');\r\n }\r\n\r\n searchFAQByTerm(term: any): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_CORE + '/faq/search/' + term);\r\n }\r\n\r\n fetchProductDetailsBySellerUsername(username: any): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_PRODUCT + '/product/getProductsBySeller/' + username);\r\n }\r\n\r\n changeProductStatus(body: any): Observable {\r\n return this.http.post(this.mainUrl.MAIN_URL_PRODUCT + '/product/updateProductStatus', body);\r\n }\r\n\r\n fetchFeedbacksByBuyerUsername(username: any): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_PRODUCT + '/review/getByBuyerUsername/' + username);\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport {HttpClient} from \"@angular/common/http\";\r\nimport {MainUrlService} from \"./main-url.service\";\r\nimport {Observable} from \"rxjs\";\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class UserService {\r\n\r\n constructor(private http: HttpClient, private mainUrl: MainUrlService) {\r\n }\r\n\r\n login(body: any):Observable{\r\n return this.http.post(this.mainUrl.MAIN_URL_AUTH+'/auth/login',body);\r\n }\r\n\r\n whoAmI(): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_AUTH + '/users/whoAmI');\r\n }\r\n\r\n buyerAccountVerification(code: string): Observable {\r\n return this.http.post(this.mainUrl.MAIN_URL_ONBOARDING + '/identity/confirmRegistration/'+ code,'');\r\n }\r\n\r\n sellerDashboard(username: string): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_PRODUCT + '/dashboard/public/getSeller/'+username);\r\n }\r\n\r\n devoDashboard(username: string): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_ONBOARDING + '/seller/getDevelopmentOfficerDashboard/'+username);\r\n }\r\n\r\n districtOfficerDashboard(username: string): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_ONBOARDING + '/seller/getDistrictOfficerDashboard/'+username);\r\n }\r\n\r\n buyerDashboard(username: string): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_PRODUCT + '/dashboard/public/getBuyer/'+username);\r\n }\r\n\r\n fetchSellerStoreDetails(username: string): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_ONBOARDING + '/seller/public/storeDetails/'+username);\r\n }\r\n\r\n checkSellerStory(username: string,status:string): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_ONBOARDING + '/seller/checkSellerStoryExistsByStatus/'+username+'/'+status);\r\n }\r\n\r\n}\r\n","// #####################################################################################################################\r\n\r\n// FOR LIVE\r\n/**\r\n * DOCKER BUILD : docker image build -t eltpl/neda:neda-live-public-1.0.33 .\r\n * DOCKER PUSH : docker push eltpl/neda:neda-live-public-1.0.32\r\n * DOCKER RUN : sudo docker run -p 4200:80 -d eltpl/neda:neda-live-public-1.0.32\r\n * 'https://api.madeinsrilanka.org/'\r\n */\r\n\r\n\r\nexport const environment = {\r\n production: true,\r\n proxyURL: 'https://api.madeinsrilanka.neda.gov.lk/',\r\n baseURL: 'https://www.madeinsrilanka.neda.gov.lk',\r\n version: '1.0.36'\r\n};\r\n\r\n\r\n// ng build --prod --configuration=nedaLive\r\n","import { NgModule } from '@angular/core';\r\nimport {PreloadAllModules, RouterModule, Routes} from '@angular/router';\r\n\r\nconst routes: Routes = [\r\n { path: '', loadChildren: () => import('./home/home.module').then(m => m.HomeModule) },\r\n { path: 'login', loadChildren: () => import('./authentication/login/login.module').then(m => m.LoginModule) },\r\n { path: 'about', loadChildren: () => import('./public-pages/about/about.module').then(m => m.AboutModule) },\r\n { path: 'contact', loadChildren: () => import('./public-pages/contact/contact.module').then(m => m.ContactModule) },\r\n { path: 'faq', loadChildren: () => import('./public-pages/faq/faq.module').then(m => m.FaqModule) },\r\n { path: 'privacy-policy', loadChildren: () => import('./public-pages/privacy-policy/privacy-policy.module').then(m => m.PrivacyPolicyModule) },\r\n { path: 'terms-conditions-buyer', loadChildren: () => import('./documents/terms-and-conditions-buyer/terms-and-conditions-buyer.module').then(m => m.TermsAndConditionsBuyerModule) },\r\n { path: 'signup', loadChildren: () => import('./authentication/signup/signup.module').then(m => m.SignupModule) },\r\n { path: 'as-a-seller', loadChildren: () => import('./authentication/signup/as-a-seller/as-a-seller.module').then(m => m.AsASellerModule) },\r\n { path: 'as-a-buyer', loadChildren: () => import('./authentication/signup/as-a-buyer/as-a-buyer.module').then(m => m.AsABuyerModule) },\r\n { path: 'reset-password', loadChildren: () => import('./authentication/reset-password/reset-password.module').then(m => m.ResetPasswordModule) },\r\n { path: 'my-profile', loadChildren: () => import('./my-profile/my-profile.module').then(m => m.MyProfileModule) },\r\n { path: 'overview', loadChildren: () => import('./my-profile/seller/overview/overview.module').then(m => m.OverviewModule) },\r\n { path: 'devo-overview', loadChildren: () => import('./my-profile/development-officer/devo-overview/devo-overview.module').then(m => m.DevoOverviewModule) },\r\n { path: 'district-overview', loadChildren: () => import('./my-profile/district-officer/district-overview/district-overview.module').then(m => m.DistrictOverviewModule) },\r\n { path: 'account-verification', loadChildren: () => import('./authentication/account-verification/account-verification.module').then(m => m.AccountVerificationModule) },\r\n { path: 'add-product', loadChildren: () => import('./my-profile/seller/add-product/add-product.module').then(m => m.AddProductModule) },\r\n { path: 'my-products', loadChildren: () => import('./my-profile/seller/my-products/my-products.module').then(m => m.MyProductsModule) },\r\n { path: 'profile-settings', loadChildren: () => import('./my-profile/seller/seller-settings/seller-settings.module').then(m => m.SellerSettingsModule) },\r\n { path: 'seller-messages', loadChildren: () => import('./my-profile/seller/seller-messages/seller-messages.module').then(m => m.SellerMessagesModule) },\r\n { path: 'seller-orders', loadChildren: () => import('./my-profile/seller/seller-orders/seller-orders.module').then(m => m.SellerOrdersModule) },\r\n { path: 'seller-order-view', loadChildren: () => import('./my-profile/seller/seller-order-view/seller-order-view.module').then(m => m.SellerOrderViewModule) },\r\n { path: 'seller-product-view', loadChildren: () => import('./my-profile/seller/seller-product-view/seller-product-view.module').then(m => m.SellerProductViewModule) },\r\n { path: 'buyer-messages', loadChildren: () => import('./my-profile/buyer/buyer-messages/buyer-messages.module').then(m => m.BuyerMessagesModule) },\r\n { path: 'market-place', loadChildren: () => import('./market-place/market-place.module').then(m => m.MarketPlaceModule) },\r\n { path: 'bank-accounts', loadChildren: () => import('./my-profile/seller/bank-accounts/bank-accounts.module').then(m => m.BankAccountsModule) },\r\n { path: 'seller-profile', loadChildren: () => import('./my-profile/seller/seller-profile/seller-profile.module').then(m => m.SellerProfileModule) },\r\n { path: 'feedbacks', loadChildren: () => import('./my-profile/buyer/feedbacks/feedbacks.module').then(m => m.FeedbacksModule) },\r\n { path: 'my-sellers', loadChildren: () => import('./my-profile/buyer/my-sellers/my-sellers.module').then(m => m.MySellersModule) },\r\n { path: 'product-single-view', loadChildren: () => import('./product-single-view/product-single-view.module').then(m => m.ProductSingleViewModule) },\r\n { path: 'my-purchases', loadChildren: () => import('./my-profile/seller/my-purchases/my-purchases.module').then(m => m.MyPurchasesModule) },\r\n { path: 'seller-track-order', loadChildren: () => import('./my-profile/seller/track-order/track-order.module').then(m => m.TrackOrderModule) },\r\n { path: 'buyer-overview', loadChildren: () => import('./my-profile/buyer/buyer-overview/buyer-overview.module').then(m => m.BuyerOverviewModule) },\r\n { path: 'seller-store', loadChildren: () => import('./seller-store/seller-store.module').then(m => m.SellerStoreModule) },\r\n { path: 'video-article', loadChildren: () => import('./video-article/video-article.module').then(m => m.VideoArticleModule) },\r\n { path: 'cart', loadChildren: () => import('./cart/cart.module').then(m => m.CartModule) },\r\n { path: 'checkout', loadChildren: () => import('./checkout/checkout.module').then(m => m.CheckoutModule) },\r\n { path: 'seller-earnings', loadChildren: () => import('./my-profile/seller/seller-earnings/seller-earnings.module').then(m => m.SellerEarningsModule) },\r\n { path: 'buyer-orders', loadChildren: () => import('./my-profile/buyer/buyer-orders/buyer-orders.module').then(m => m.BuyerOrdersModule) },\r\n { path: 'tracking-feedback', loadChildren: () => import('./my-profile/buyer/tracking-feedback/tracking-feedback.module').then(m => m.TrackingFeedbackModule) },\r\n { path: 'track-order-buyer', loadChildren: () => import('./my-profile/buyer/track-order-buyer/track-order-buyer.module').then(m => m.TrackOrderBuyerModule) },\r\n { path: 'edit-bank-acc', loadChildren: () => import('./my-profile/seller/edit-bank-acc/edit-bank-acc.module').then(m => m.EditBankAccModule) },\r\n { path: 'edit-product', loadChildren: () => import('./my-profile/seller/edit-product/edit-product.module').then(m => m.EditProductModule) },\r\n { path: 'sellers', loadChildren: () => import('./my-profile/development-officer/sellers/sellers.module').then(m => m.SellersModule) },\r\n { path: 'district-officer-sellers', loadChildren: () => import('./my-profile/district-officer/district-officer-sellers/district-officer-sellers.module').then(m => m.DistrictOfficerSellersModule) },\r\n { path: 'district-officer-orders', loadChildren: () => import('./my-profile/district-officer/district-officer-orders/district-officer-orders.module').then(m => m.DistrictOfficerOrdersModule) },\r\n { path: 'district-officer-sales', loadChildren: () => import('./my-profile/district-officer/district-officer-sales/district-officer-sales.module').then(m => m.DistrictOfficerSalesModule) },\r\n { path: 'devo-seller-products', loadChildren: () => import('./my-profile/development-officer/devo-seller-products/devo-seller-products.module').then(m => m.DevoSellerProductsModule) },\r\n { path: 'devo-seller-product-view', loadChildren: () => import('./my-profile/development-officer/devo-seller-product-view/devo-seller-product-view.module').then(m => m.DevoSellerProductViewModule) },\r\n { path: 'devo-seller-orders', loadChildren: () => import('./my-profile/development-officer/devo-seller-orders/devo-seller-orders.module').then(m => m.DevoSellerOrdersModule) }\r\n\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forRoot(routes, {\r\n scrollPositionRestoration: 'enabled',\r\n preloadingStrategy: PreloadAllModules,\r\n relativeLinkResolution: 'legacy'\r\n })],\r\n exports: [RouterModule]\r\n})\r\nexport class AppRoutingModule { }\r\n","
\r\n
    \r\n
  • \r\n \"\"\r\n {{category.descriptionEN}}\r\n {{category.descriptionSI}}\r\n {{category.descriptionTM}}\r\n
  • \r\n
\r\n
\r\n","import {Component, OnInit} from '@angular/core';\r\nimport {ProductService} from \"../../services/product.service\";\r\nimport {InteractionService} from \"../../services/interaction.service\";\r\nimport {MainUrlService} from \"../../services/main-url.service\";\r\n\r\n@Component({\r\n selector: 'app-categories-list',\r\n templateUrl: './categories-list.component.html',\r\n styleUrls: ['./categories-list.component.scss']\r\n})\r\nexport class CategoriesListComponent implements OnInit {\r\n\r\n categoryList: any;\r\n activeLang: any = 'en';\r\n\r\n constructor(private productService: ProductService,\r\n public mainUrl: MainUrlService,\r\n private interactionService: InteractionService) {\r\n if(sessionStorage.getItem('LANG') != undefined){\r\n this.activeLang = sessionStorage.getItem('LANG');\r\n }\r\n }\r\n\r\n ngOnInit(): void {\r\n this.loadCategoryList();\r\n\r\n this.interactionService.activeLang$.subscribe(activeResult => {\r\n if (activeResult) {\r\n this.activeLang = sessionStorage.getItem('LANG');\r\n }\r\n });\r\n }\r\n\r\n loadCategoryList() {\r\n this.productService.fetchCategories().subscribe(result => {\r\n this.categoryList = result;\r\n });\r\n }\r\n\r\n}\r\n","
\r\n
\r\n
\r\n

  Shopping Cart ({{cartLength}}\r\n Items)

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
{{cart?.name}}
\r\n
${{cart?.pricePerUnit.toFixed(2)}} x {{cart?.quantity}}
\r\n
LKR {{cart?.pricePerUnit.toFixed(2)}} x {{cart?.quantity}}
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n

Grand Total:

\r\n
\r\n
\r\n

${{subTotal?.totalPrice.toFixed(2)}}

\r\n

LKR {{subTotal?.totalPrice.toFixed(2)}}

\r\n
\r\n
\r\n

${{guestCartTotal.toFixed(2)}}

\r\n

LKR {{guestCartTotal.toFixed(2)}}

\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n \"\"\r\n
\r\n
\r\n","import {Component, OnInit} from '@angular/core';\r\nimport {CartService} from \"../../services/cart.service\";\r\nimport {ProductService} from \"../../services/product.service\";\r\nimport {MainUrlService} from \"../../services/main-url.service\";\r\nimport Swal from \"sweetalert2\";\r\nimport {InteractionService} from \"../../services/interaction.service\";\r\nimport {Router} from \"@angular/router\";\r\n\r\n@Component({\r\n selector: 'app-shopping-cart-list',\r\n templateUrl: './shopping-cart-list.component.html',\r\n styleUrls: ['./shopping-cart-list.component.scss']\r\n})\r\nexport class ShoppingCartListComponent implements OnInit {\r\n\r\n username: any;\r\n DEFAULT_CURRENCY: any = 'LKR';\r\n\r\n latestProductList: any;\r\n\r\n subTotal: any;\r\n\r\n cartLength: number = 0;\r\n\r\n cartDetails: any;\r\n\r\n isLogged: boolean = false;\r\n\r\n constructor(private cartService: CartService,\r\n private router: Router,\r\n private productService: ProductService,\r\n private interactionService: InteractionService,\r\n public mainUrl: MainUrlService) {\r\n\r\n let currency = localStorage.getItem('DEFAULT_CURRENCY');\r\n\r\n if (currency !== null) {\r\n this.DEFAULT_CURRENCY = currency;\r\n } else {\r\n this.DEFAULT_CURRENCY = 'LKR';\r\n localStorage.setItem('DEFAULT_CURRENCY', 'LKR');\r\n }\r\n\r\n this.username = localStorage.getItem('LOGGED_USERNAME');\r\n }\r\n\r\n ngOnInit(): void {\r\n this.commonLoadCart();\r\n\r\n this.interactionService.updateCart.subscribe(result => {\r\n if (result) {\r\n this.commonLoadCart();\r\n }\r\n });\r\n\r\n this.interactionService.loginSuccess.subscribe(isLogged => {\r\n if (isLogged) {\r\n this.username = localStorage.getItem('LOGGED_USERNAME');\r\n }\r\n });\r\n }\r\n\r\n commonLoadCart() {\r\n let isLoggedIn = localStorage.getItem('isLogged');\r\n let cartID = localStorage.getItem('CART_ID');\r\n if (isLoggedIn === 'True') {\r\n this.isLogged = true;\r\n if (cartID !== null) {\r\n this.cartService.cartMerge(this.username, cartID).subscribe(() => {\r\n this.showCartByUsername();\r\n }, () => {\r\n Swal.close();\r\n });\r\n } else {\r\n this.showCartByUsername();\r\n }\r\n } else {\r\n this.isLogged = false;\r\n if (cartID !== null) {\r\n this.cartService.showCartByOwner(cartID).subscribe(cartDetails => {\r\n this.commonCartLoader(cartDetails, false);\r\n });\r\n } else {\r\n this.cartLength = 0;\r\n }\r\n }\r\n }\r\n\r\n loadCartTotal() {\r\n this.cartService.loadCartTotalDetails(this.username).subscribe(result => {\r\n this.subTotal = result;\r\n });\r\n }\r\n\r\n showCartByUsername() {\r\n let isLoggedIn = localStorage.getItem('isLogged');\r\n if (isLoggedIn === 'True') {\r\n this.cartService.showCartByUsername(this.username).subscribe(cartDetails => {\r\n this.commonCartLoader(cartDetails, true);\r\n }, () => {\r\n Swal.close();\r\n });\r\n }\r\n }\r\n\r\n guestCartTotal: number = 0;\r\n\r\n commonCartLoader(cartDetails: any, status: boolean) {\r\n let arr = [];\r\n let temp = 0;\r\n for (let cart of cartDetails) {\r\n arr.push({\r\n 'cartID': cart['cartID'],\r\n 'name': cart['name'],\r\n 'unitName': cart['unitName'],\r\n 'productImages': cart['productImages'][0]['image'],\r\n 'productId': cart['productId'],\r\n 'quantity': cart['quantity'],\r\n 'currency': cart['currency'],\r\n 'category': cart['category'],\r\n 'isSmallerQty': cart['isSmallerQty'],\r\n 'pricePerUnit': cart['pricePerUnit'],\r\n 'currentAvailableQty': cart['currentAvailableQty']\r\n });\r\n temp = (cart['pricePerUnit'] * cart['quantity']) + temp;\r\n this.cartLength = arr.length;\r\n this.cartDetails = arr;\r\n }\r\n if (status) {\r\n this.loadCartTotal();\r\n } else {\r\n this.guestCartTotal = temp;\r\n }\r\n }\r\n\r\n loadLatestProductList() {\r\n this.productService.fetchLatestProducts(this.DEFAULT_CURRENCY).subscribe(result => {\r\n this.latestProductList = result;\r\n });\r\n }\r\n\r\n removeItem(productId: any) {\r\n let isLoggedIn = localStorage.getItem('isLogged');\r\n let cartID = localStorage.getItem('CART_ID');\r\n if (isLoggedIn === 'True') {\r\n this.cartService.deleteItemFromCartUser\r\n (this.username, productId).subscribe(deleteItemFromCartUser => {\r\n if (deleteItemFromCartUser.success) {\r\n this.cartDetails = undefined;\r\n this.cartLength = 0;\r\n this.commonLoadCart();\r\n this.interactionService.setCartSuccess(true);\r\n } else {\r\n Swal.close();\r\n }\r\n }, () => {\r\n Swal.close();\r\n });\r\n\r\n } else if (cartID !== null) {\r\n this.cartService.deleteItemFromCartOwner\r\n (cartID, productId).subscribe(deleteItemFromCartOwner => {\r\n if (deleteItemFromCartOwner.success) {\r\n this.cartDetails = undefined;\r\n this.cartLength = 0;\r\n this.commonLoadCart();\r\n this.interactionService.setCartSuccess(true);\r\n }\r\n Swal.close();\r\n }, () => {\r\n Swal.close();\r\n });\r\n }\r\n }\r\n\r\n\r\n continueToCheckout() {\r\n let isLoggedIn = localStorage.getItem('isLogged');\r\n if (isLoggedIn === 'True') {\r\n this.router.navigate(['/checkout']);\r\n } else {\r\n this.interactionService.setPopUpLoginSuccess(true);\r\n }\r\n }\r\n}\r\n","
\r\n
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \"\"\r\n
\r\n
\r\n {{'username'|translate}}\r\n \r\n \r\n
\r\n
The username is required.
\r\n
Invalid username. Username must be between 5 and 10\r\n characters. Allowed characters are a-z / A-Z / 0-9.\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {{'password'|translate}}\r\n \r\n \r\n
\r\n
The password is required.
\r\n
\r\n Invalid Password. Password must be between 6 and 20 characters and uppercase and lower-case\r\n letters (A-Z or a-z), numbers (0-9) and special characters (? _!@#) ( example: Beatlesfan#28 ).\r\n
\r\n
\r\n
\r\n\r\n The username and/or password are invalid\r\n
\r\n
\r\n {{'LOGIN.KEEP_ME'|translate}}\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n

{{'LOGIN.FORGOT'|translate}} {{'LOGIN.RESET'|translate}}

\r\n
\r\n\r\n
\r\n

{{'LOGIN.DONT_HAVE'|translate}}Register here

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n","import {Component, OnInit, ViewChild} from '@angular/core';\r\nimport {FormBuilder, FormGroup, Validators} from \"@angular/forms\";\r\nimport {CommonService} from \"../../common-service/common-service\";\r\nimport {UserService} from \"../../services/user.service\";\r\nimport {ToastrService} from \"ngx-toastr\";\r\nimport {InteractionService} from \"../../services/interaction.service\";\r\nimport {Router} from \"@angular/router\";\r\nimport {BoardingService} from \"../../services/boarding.service\";\r\n\r\n@Component({\r\n selector: 'app-login-modal',\r\n templateUrl: './login-modal.component.html',\r\n styleUrls: ['./login-modal.component.scss']\r\n})\r\nexport class LoginModalComponent implements OnInit {\r\n\r\n loginForm: FormGroup;\r\n submittedLoginForm = false;\r\n isPassUsernameInValid: boolean = false;\r\n activeLang: any = 'en';\r\n\r\n @ViewChild('closeModal') closeModal: any;\r\n\r\n constructor(private formBuilder: FormBuilder,\r\n private toastr: ToastrService,\r\n private router: Router,\r\n private boardingService: BoardingService,\r\n public commonService: CommonService,\r\n private interactionService: InteractionService,\r\n private userService: UserService) {\r\n this.activeLang = sessionStorage.getItem('LANG');\r\n }\r\n\r\n ngOnInit(): void {\r\n this.reactiveLoginForm();\r\n this.interactionService.activeLang$.subscribe(activeResult => {\r\n if (activeResult) {\r\n this.activeLang = sessionStorage.getItem('LANG');\r\n }\r\n });\r\n }\r\n\r\n reactiveLoginForm() {\r\n this.loginForm = this.formBuilder.group({\r\n loginUsername: ['', Validators.required],\r\n loginPassword: ['', Validators.required]\r\n });\r\n }\r\n\r\n get f1() {\r\n return this.loginForm.controls;\r\n }\r\n\r\n onSubmit() {\r\n this.submittedLoginForm = true;\r\n if (this.loginForm.invalid) {\r\n return;\r\n }\r\n this.userService.login({\r\n 'email': this.loginForm.controls['loginUsername'].value,\r\n 'password': this.loginForm.controls['loginPassword'].value\r\n }).subscribe(token => {\r\n this.isPassUsernameInValid = false;\r\n localStorage.setItem('$Token', token['accessToken']);\r\n localStorage.setItem('IS_SRI_LANKA', token['isSriLankan']);\r\n localStorage.setItem('isLogged', 'True');\r\n this.userService.whoAmI().subscribe(whoAmIDetails => {\r\n localStorage.setItem('USER_ROLE', whoAmIDetails.roles[0].name);\r\n if (whoAmIDetails.roles[0].name === 'BUYER') {\r\n this.boardingService.checkExistCountry(this.loginForm.controls['loginUsername'].value).subscribe(result => {\r\n if (result['success']) {\r\n localStorage.setItem('DEFAULT_CURRENCY', 'LKR');\r\n } else {\r\n localStorage.setItem('DEFAULT_CURRENCY', 'USD');\r\n }\r\n this.commonBody(whoAmIDetails);\r\n });\r\n } else {\r\n localStorage.setItem('DEFAULT_CURRENCY', 'LKR');\r\n this.commonBody(whoAmIDetails);\r\n }\r\n\r\n });\r\n }, (error) => {\r\n if (error.status) {\r\n this.isPassUsernameInValid = true;\r\n }\r\n });\r\n }\r\n\r\n commonBody(whoAmIDetails: any) {\r\n this.interactionService.setCurrencySuccess(true);\r\n localStorage.setItem('LOGGED_USERNAME', whoAmIDetails['email']);\r\n localStorage.setItem('LOGGED_USERNAME_ID', whoAmIDetails['id']);\r\n localStorage.setItem('whoAmIDetails', JSON.stringify(whoAmIDetails));\r\n this.interactionService.setLoginSuccess(true);\r\n this.interactionService.setCartSuccess(true);\r\n this.closeModal.nativeElement.click();\r\n\r\n if (whoAmIDetails.roles[0].name !== null) {\r\n\r\n if (whoAmIDetails.roles[0].name === 'BUYER') {\r\n\r\n this.router.navigate(['/my-profile/buyer-overview'], {queryParams: {SD: true}});\r\n\r\n } else if (whoAmIDetails.roles[0].name === 'SELLER') {\r\n\r\n this.router.navigate(['/my-profile/overview'], {queryParams: {SD: true}});\r\n\r\n } else if (whoAmIDetails.roles[0].name === 'DS_OFFICER') {\r\n\r\n this.router.navigate(['/my-profile/devo-overview'], {queryParams: {SD: true}});\r\n\r\n } else if (whoAmIDetails.roles[0].name === 'DISTRICT_OFFICER') {\r\n\r\n this.router.navigate(['/my-profile/district-overview'], {queryParams: {SD: true}});\r\n\r\n }\r\n }\r\n }\r\n\r\n}\r\n","
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n {{'HEADER.SHIP_TO'|translate}}\r\n  \"\"\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n   {{'HEADER.SignIn'|translate}}\r\n
\r\n  \r\n
/
 \r\n {{'HEADER.Register'|translate}}\r\n
\r\n\r\n \r\n \r\n
\r\n
\r\n
\r\n {{language}}\r\n \r\n
\r\n \r\n \r\n \r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n\r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n","import {Component, OnInit, ViewChild} from '@angular/core';\r\nimport {InteractionService} from \"../../services/interaction.service\";\r\nimport {Router} from \"@angular/router\";\r\nimport Swal from 'sweetalert2'\r\nimport {ProductService} from \"../../services/product.service\";\r\nimport {BoardingService} from \"../../services/boarding.service\";\r\nimport {TranslateService} from \"@ngx-translate/core\";\r\nimport {CommonService} from \"../../common-service/common-service\";\r\n\r\n@Component({\r\n selector: 'app-header',\r\n templateUrl: './header.component.html',\r\n styleUrls: ['./header.component.scss']\r\n})\r\nexport class HeaderComponent implements OnInit {\r\n\r\n isUserLogged: boolean = false;\r\n defaultCountry: any;\r\n DEFAULT_CURRENCY: any = 'LKR';\r\n categoryList: any;\r\n username: any;\r\n userDetails: any;\r\n userRole: any;\r\n\r\n categorySlideConfig = {\r\n slidesToShow: 5,\r\n slidesToScroll: 1,\r\n centerMode: false,\r\n autoplay: true,\r\n initialSlide: 2,\r\n autoplaySpeed: 20000,\r\n infinite: false,\r\n responsive: [\r\n {\r\n breakpoint: 1200,\r\n settings: {\r\n slidesToShow: 4,\r\n slidesToScroll: 1,\r\n infinite: false,\r\n dots: false\r\n }\r\n },\r\n {\r\n breakpoint: 600,\r\n settings: {\r\n slidesToShow: 1,\r\n slidesToScroll: 1\r\n }\r\n },\r\n {\r\n breakpoint: 480,\r\n settings: {\r\n slidesToShow: 1,\r\n slidesToScroll: 1\r\n }\r\n }\r\n ]\r\n };\r\n\r\n\r\n @ViewChild('loginModal') loginModal: any;\r\n\r\n searchProduct: any = '';\r\n language: any = 'English';\r\n activeLang: any = 'en';\r\n\r\n constructor(private interactionService: InteractionService,\r\n private productService: ProductService,\r\n private _translateService: TranslateService,\r\n public commonService: CommonService,\r\n private router: Router,\r\n private boardingService: BoardingService) {\r\n\r\n let currency = localStorage.getItem('DEFAULT_CURRENCY');\r\n\r\n if (currency !== null) {\r\n this.DEFAULT_CURRENCY = currency;\r\n } else {\r\n this.DEFAULT_CURRENCY = 'LKR';\r\n localStorage.setItem('DEFAULT_CURRENCY', 'LKR');\r\n }\r\n\r\n this.username = localStorage.getItem('LOGGED_USERNAME');\r\n this.userRole = localStorage.getItem('USER_ROLE');\r\n let isLogged = localStorage.getItem('isLogged');\r\n\r\n if (isLogged !== null && isLogged === 'True') {\r\n this.isUserLogged = true;\r\n }\r\n\r\n this.activeLang = sessionStorage.getItem('LANG');\r\n\r\n if (this.activeLang !== null) {\r\n this.language = this.activeLang;\r\n switch (this.activeLang) {\r\n case 'en':\r\n this.language = 'English';\r\n\r\n break;\r\n case 'si':\r\n this.language = 'සිංහල';\r\n\r\n break;\r\n case 'ta':\r\n this.language = 'தமிழ்';\r\n\r\n break;\r\n }\r\n } else {\r\n this.language = 'English';\r\n this.activeLang = 'en';\r\n }\r\n\r\n }\r\n\r\n ngOnInit(): void {\r\n this.loadCategoryList();\r\n if (this.userRole !== null && this.isUserLogged) {\r\n this.loadSellerDetails(this.username);\r\n }\r\n this.interactionService.loginSuccess.subscribe(isLogged => {\r\n this.isUserLogged = !!isLogged;\r\n\r\n this.username = localStorage.getItem('LOGGED_USERNAME');\r\n this.userRole = localStorage.getItem('USER_ROLE');\r\n\r\n if (this.userRole !== null && this.isUserLogged) {\r\n this.loadSellerDetails(this.username);\r\n }\r\n });\r\n\r\n this.interactionService.setupCurrency.subscribe(result => {\r\n if (result) {\r\n this.DEFAULT_CURRENCY = localStorage.getItem('DEFAULT_CURRENCY');\r\n this.setSelectedCountry();\r\n }\r\n });\r\n\r\n this.interactionService.loginModal.subscribe(result => {\r\n if (result) {\r\n this.loginModal.nativeElement.click();\r\n }\r\n });\r\n\r\n this.interactionService.activeLang$.subscribe(activeResult => {\r\n if (activeResult) {\r\n this.activeLang = sessionStorage.getItem('LANG');\r\n }\r\n });\r\n }\r\n\r\n logout() {\r\n Swal.fire({\r\n title: this.commonService.logOutMessage(sessionStorage.getItem('LANG')),\r\n text: this.commonService.logOutMessages(sessionStorage.getItem('LANG')),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#3085d6',\r\n cancelButtonColor: '#d33',\r\n cancelButtonText: this.commonService.cancelMessage(sessionStorage.getItem('LANG')),\r\n confirmButtonText: this.commonService.logOutMessage(sessionStorage.getItem('LANG'))\r\n }).then((result) => {\r\n if (result.value) {\r\n localStorage.clear();\r\n localStorage.setItem('isLogged', 'False');\r\n localStorage.setItem('DEFAULT_CURRENCY', 'LKR');\r\n this.interactionService.setLoginSuccess(false);\r\n this.interactionService.setCurrencySuccess(true);\r\n this.interactionService.setCartSuccess(true);\r\n this.router.navigate(['/']);\r\n }\r\n });\r\n }\r\n\r\n selectCountry(value: string) {\r\n this.DEFAULT_CURRENCY = value;\r\n localStorage.setItem('DEFAULT_CURRENCY', value);\r\n this.interactionService.setCurrencySuccess(true);\r\n }\r\n\r\n setSelectedCountry() {\r\n if (this.DEFAULT_CURRENCY === 'LKR') {\r\n return '../../../assets/images/icons/CountryFlags/flag_Sri_Lanka_LK.png';\r\n } else if (this.DEFAULT_CURRENCY === 'USD') {\r\n return '../../../assets/images/icons/CountryFlags/flag_United_States_US.png';\r\n }\r\n }\r\n\r\n loadCategoryList() {\r\n this.productService.fetchCategories().subscribe(result => {\r\n this.categoryList = result;\r\n });\r\n }\r\n\r\n loadSellerDetails(userName: any) {\r\n if (this.userRole === 'SELLER') {\r\n this.boardingService.getSellerDetails(userName).subscribe(sellerResult => {\r\n this.userDetails = sellerResult;\r\n localStorage.setItem('USER_DETAILS', JSON.stringify(sellerResult));\r\n this.interactionService.setMyAccountDetails(true);\r\n });\r\n } else if (this.userRole === 'BUYER') {\r\n this.boardingService.getBuyerDetails(userName).subscribe(buyerResult => {\r\n this.userDetails = buyerResult;\r\n localStorage.setItem('USER_DETAILS', JSON.stringify(buyerResult));\r\n this.interactionService.setMyAccountDetails(true);\r\n });\r\n } else if (this.userRole === 'DS_OFFICER') {\r\n this.boardingService.fetchPersonalDetailsDso(userName).subscribe(developmentOfficerResult => {\r\n this.userDetails = developmentOfficerResult;\r\n localStorage.setItem('USER_DETAILS', JSON.stringify(developmentOfficerResult));\r\n this.interactionService.setMyAccountDetails(true);\r\n });\r\n } else if (this.userRole === 'DISTRICT_OFFICER') {\r\n this.boardingService.fetchPersonalDetailsDistrictOfficer(userName).subscribe(districtOfficerResult => {\r\n this.userDetails = districtOfficerResult;\r\n localStorage.setItem('USER_DETAILS', JSON.stringify(districtOfficerResult));\r\n this.interactionService.setMyAccountDetails(true);\r\n });\r\n }\r\n\r\n }\r\n\r\n searchBarFunction(searchBarFunction: any) {\r\n if (this.searchProduct === '') {\r\n this.router.navigate(['/']).then(() => {\r\n this.router.navigate(['/market-place']).then(() => {\r\n });\r\n });\r\n } else {\r\n this.router.navigate(['/market-place'], {queryParams: {searchText: searchBarFunction}}).then(() => {\r\n this.searchProduct = '';\r\n });\r\n }\r\n\r\n }\r\n\r\n useLanguage(language: string, value: any) {\r\n this.language = value;\r\n sessionStorage.setItem('LANG', language);\r\n this.interactionService.activeLang(true);\r\n this._translateService.use(language);\r\n }\r\n}\r\n","import { Component, OnInit } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'app-footer',\r\n templateUrl: './footer.component.html',\r\n styleUrls: ['./footer.component.scss']\r\n})\r\nexport class FooterComponent implements OnInit {\r\n\r\n constructor() { }\r\n\r\n ngOnInit(): void {\r\n }\r\n\r\n}\r\n","
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \"\"\r\n
\r\n
\r\n \"\"\r\n\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

© 2022 NEDA. All rights reserved

\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n","// import { Component, OnInit } from '@angular/core';\r\n//\r\n// @Component({\r\n// selector: 'app-chat-config',\r\n// templateUrl: './chat-config.component.html',\r\n// styleUrls: ['./chat-config.component.css']\r\n// })\r\n// export class ChatConfigComponent implements OnInit {\r\n//\r\n// constructor() { }\r\n//\r\n// ngOnInit(): void {\r\n// }\r\n//\r\n// }\r\n\r\nimport {Component, EventEmitter, Input, Output} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'app-chat-config',\r\n template: `\r\n\r\n `,\r\n styles: [`\r\n\r\n `],\r\n})\r\nexport class ChatConfigComponent {\r\n @Input() public theme: string;\r\n @Input() public text = 'Select theme';\r\n @Output() public themeChange: EventEmitter = new EventEmitter();\r\n}\r\n","import { animate, style, transition, trigger } from '@angular/animations';\r\n\r\nexport const fadeInOut = trigger('fadeInOut', [\r\n transition(':enter', [\r\n style({opacity: 0}),\r\n animate(250 )\r\n ]),\r\n transition('* => void', [\r\n animate(250, style({\r\n opacity: 0,\r\n }))\r\n ])\r\n]);\r\n\r\nexport const fadeIn = trigger('fadeIn', [\r\n transition(':enter', [\r\n style({opacity: 0}),\r\n animate(500 )\r\n ]),\r\n transition(':leave', [\r\n style({opacity: 0}),\r\n animate(1 )\r\n ]),\r\n]);\r\n","import { Injectable } from '@angular/core';\r\nimport {Observable} from 'rxjs';\r\nimport {HttpClient} from '@angular/common/http';\r\nimport {MainUrlService} from './main-url.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ChatService {\r\n\r\n constructor(private http: HttpClient, private mainUrl: MainUrlService) { }\r\n\r\n imageUpload(body: any): Observable {\r\n // @ts-ignore\r\n return this.http.post('http://127.0.0.1:5000/image/', body,{ responseType: 'text'});\r\n }\r\n\r\n chat(body: any): Observable {\r\n return this.http.post(this.mainUrl.MAIN_URL_CHAT + '/chat/save', body);\r\n }\r\n\r\n getSenderId(sender: string): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_CHAT + '/chat/fetchChatRoomList/' + sender);\r\n }\r\n\r\n getMessages(chatRoomId: string): Observable {\r\n return this.http.get(this.mainUrl.MAIN_URL_CHAT + '/chat/fetchMessagesByChatRoomId/' + chatRoomId);\r\n }\r\n\r\n getChatRoomList(sender: string) {\r\n return this.http.get( this.mainUrl.MAIN_URL_CHAT +'/chat/fetchChatRoomList/' + sender);\r\n }\r\n\r\n getChatMessagesList(chatRoomId: string) {\r\n return this.http.get( this.mainUrl.MAIN_URL_CHAT +'/chat/fetchMessagesByChatRoomId/' + chatRoomId);\r\n }\r\n\r\n setAsDeliveredByChatRoomId(chatRoomId:any, sender:string) {\r\n return this.http.get( this.mainUrl.MAIN_URL_CHAT +'/chat/setAsDeliveredByChatRoomId/' + chatRoomId+'/'+ sender);\r\n }\r\n}\r\n","\r\n\r\n\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {{operator['status']}}\r\n \r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n \r\n
\r\n
\r\n
\r\n {{message['text']}}\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n {{message['date'] | date: 'short'}}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n","import {Component, ElementRef, HostListener, Input, OnInit, ViewChild} from '@angular/core';\r\nimport {Subject} from 'rxjs';\r\nimport {fadeIn, fadeInOut} from '../animations';\r\nimport {ChatService} from '../../services/chat.service';\r\nimport Swal from 'sweetalert2';\r\nimport {InteractionService} from '../../services/interaction.service';\r\nimport {UserService} from \"../../services/user.service\";\r\nimport * as SockJS from 'sockjs-client';\r\nimport {Stomp} from \"@stomp/stompjs\";\r\nimport {MainUrlService} from \"../../services/main-url.service\";\r\n\r\n@Component({\r\n selector: 'app-chat-widget',\r\n templateUrl: './chat-widget.component.html',\r\n styleUrls: ['./chat-widget.component.css'],\r\n animations: [fadeInOut, fadeIn],\r\n})\r\nexport class ChatWidgetComponent implements OnInit {\r\n\r\n @ViewChild('bottom') bottom: ElementRef;\r\n @Input() public theme: 'blue' | 'grey' | 'red' = 'grey';\r\n\r\n public _visible = false;\r\n tenantValue: any;\r\n id: any;\r\n message: any;\r\n url: any;\r\n name: any;\r\n state: any;\r\n receiver: any;\r\n sender: any;\r\n status: any;\r\n time: any;\r\n deliveredTime: any;\r\n username: any;\r\n chatroomid: any;\r\n notificationCount: any = 0;\r\n\r\n // for the web socket\r\n greetings: string[] = [];\r\n disabled = true;\r\n newmessage: string;\r\n private stompClient: any = null;\r\n\r\n\r\n constructor(private service: ChatService,\r\n private mainURL: MainUrlService,\r\n private interactionService: InteractionService,\r\n private userService: UserService\r\n ) {\r\n this.connect();\r\n this.randomMessage();\r\n }\r\n\r\n ngOnInit() {\r\n this.tenantValue = localStorage.getItem('TENANT_VALUE');\r\n this.connect();\r\n setTimeout(() => this.visible = true, 1000);\r\n }\r\n\r\n\r\n public get visible() {\r\n return this._visible;\r\n }\r\n\r\n\r\n @Input()\r\n public set visible(visible) {\r\n this._visible = visible;\r\n if (this._visible) {\r\n setTimeout(() => {\r\n this.scrollToBottom();\r\n this.focusMessage();\r\n }, 0);\r\n }\r\n }\r\n\r\n public focus: any = new Subject();\r\n\r\n public operator = {\r\n name: 'Made in Sri Lanka',\r\n status: 'online'\r\n };\r\n\r\n public client = {\r\n name: 'User',\r\n status: 'online'\r\n };\r\n\r\n public messages: any = [];\r\n image: any;\r\n imageUrl: any;\r\n\r\n public addMessage(from: any, text: any, img: any, type: any, date: any) {\r\n this.messages.unshift({\r\n from,\r\n text,\r\n img,\r\n type,\r\n date\r\n });\r\n this.scrollToBottom();\r\n }\r\n\r\n public scrollToBottom() {\r\n if (this.bottom !== undefined) {\r\n this.bottom.nativeElement.scrollIntoView();\r\n }\r\n }\r\n\r\n public focusMessage() {\r\n this.focus.next(true);\r\n }\r\n\r\n\r\n // message sent\r\n public sendMessage(message: any) {\r\n\r\n if (message === '' || message === undefined) {\r\n return;\r\n }\r\n\r\n let isLoggedIn = localStorage.getItem('isLogged');\r\n\r\n if (isLoggedIn === 'True') {\r\n this.userService.whoAmI().subscribe(whoAmIDetails => {\r\n\r\n this.username = whoAmIDetails.name;\r\n\r\n localStorage.setItem('LOGGED_CHAT_USERNAME', this.username);\r\n\r\n let body = {\r\n 'sender': this.username,\r\n 'content': message.message,\r\n 'receiver': 'ADMIN',\r\n };\r\n this.stompClient.send(\r\n '/current/save',\r\n body,\r\n JSON.stringify(body)\r\n );\r\n this.newmessage = \"\";\r\n\r\n }, () => {\r\n Swal.close();\r\n });\r\n this.addMessage(this.client, message['message'], '', 'sent', new Date().getTime());\r\n setTimeout(() => this.randomMessage(), 1000);\r\n } else {\r\n Swal.close();\r\n Swal.fire({\r\n position: 'center',\r\n type: 'warning',\r\n title: 'Please Login First!',\r\n showConfirmButton: false,\r\n timer: 1500\r\n });\r\n }\r\n }\r\n\r\n // message received\r\n public randomMessage() {\r\n\r\n if (this.username != undefined) {\r\n this.service.getSenderId(this.username).subscribe(result => {\r\n if (Object.keys(result).length > 0) {\r\n this.chatroomid = result[0].chatRoomId;\r\n this.service.getMessages(this.chatroomid).subscribe(getMessage => {\r\n if (this.messages.length - 1 !== Object.keys(getMessage).length) {\r\n this.messages = [];\r\n this.notificationCount = 0;\r\n this.addMessage(this.operator, 'Hi, how can we help you?', '', 'received', new Date().getTime());\r\n if (getMessage != null) {\r\n for (let msg of getMessage) {\r\n\r\n if (msg.sender === 'ADMIN') {\r\n if (msg.status === 'NEW') {\r\n this.notificationCount++;\r\n }\r\n\r\n this.addMessage(this.operator, msg.content, '', 'received', msg.time);\r\n } else {\r\n this.addMessage(this.client, msg.content, '', 'sent', msg.time);\r\n }\r\n }\r\n }\r\n }\r\n });\r\n }\r\n\r\n });\r\n }\r\n }\r\n\r\n getMessages() {\r\n this.service.getSenderId(this.sender).subscribe(result => {\r\n this.chatroomid = result.chatRoomId;\r\n });\r\n\r\n this.service.getMessages(this.chatroomid).subscribe(() => {\r\n });\r\n }\r\n\r\n setAsDeliveredMessages(chatRoomID: any, sender: any) {\r\n this.service.setAsDeliveredByChatRoomId(chatRoomID, sender).subscribe(() => {\r\n });\r\n }\r\n\r\n\r\n public toggleChat() {\r\n\r\n this.visible = !this.visible;\r\n\r\n if (!this.visible) {\r\n this.notificationCount = 0;\r\n let isLoggedIn = localStorage.getItem('isLogged');\r\n\r\n if (isLoggedIn === 'True') {\r\n this.username = localStorage.getItem('LOGGED_CHAT_USERNAME');\r\n if (this.username == null) {\r\n this.userService.whoAmI().subscribe(whoAmIDetails => {\r\n this.username = whoAmIDetails.name;\r\n localStorage.setItem('LOGGED_CHAT_USERNAME', this.username);\r\n\r\n this.randomMessage();\r\n });\r\n } else {\r\n this.randomMessage();\r\n }\r\n if (this.chatroomid !== undefined && this.chatroomid !== null) {\r\n this.setAsDeliveredMessages(this.chatroomid, 'ADMIN');\r\n }\r\n } else {\r\n this.messages = [];\r\n this.addMessage(this.operator, 'Hi, how can we help you?', '', 'received', new Date().getTime());\r\n }\r\n }\r\n }\r\n\r\n @HostListener('document:keypress', ['$event'])\r\n handleKeyboardEvent(event: KeyboardEvent) {\r\n if (event.key === '/') {\r\n this.focusMessage();\r\n }\r\n\r\n }\r\n\r\n imageRes(message: any, file: string) {\r\n this.imageUrl = 'http://127.0.0.1:5000/uploads/' + file;\r\n this.addMessage(this.operator, '', this.imageUrl, 'sent', new Date().getTime());\r\n\r\n setTimeout(() => {\r\n this.addMessage(this.operator, message, '', 'received', new Date().getTime());\r\n }, 1000);\r\n }\r\n\r\n\r\n // for the websocket\r\n\r\n setConnected(connected: boolean) {\r\n this.disabled = !connected;\r\n\r\n if (connected) {\r\n this.greetings = [];\r\n }\r\n }\r\n\r\n connect() {\r\n // let wsUrl = this.mainURL.MAIN_URL_CHAT + '/testchat';\r\n //\r\n // // Ensure it uses \"wss://\" for secure connections\r\n // if (wsUrl.startsWith(\"http://\")) {\r\n // wsUrl = wsUrl.replace(\"http://\", \"ws://\");\r\n // } else if (wsUrl.startsWith(\"https://\")) {\r\n // wsUrl = wsUrl.replace(\"https://\", \"wss://\");\r\n // }\r\n const socket = new SockJS(this.mainURL.MAIN_URL_CHAT + '/testchat');\r\n // const socket = new SockJS(wsUrl);\r\n this.stompClient = Stomp.over(socket);\r\n\r\n const _this = this;\r\n this.stompClient.connect({}, function () {\r\n\r\n _this.stompClient.subscribe('/start/initial', function (hello: any) {\r\n\r\n\r\n _this.showMessage(JSON.parse(hello.body));\r\n });\r\n });\r\n }\r\n\r\n sendMessageSocket() {\r\n\r\n this.stompClient.send(\r\n '/current/resume',\r\n {},\r\n JSON.stringify(this.newmessage)\r\n );\r\n this.newmessage = \"\";\r\n\r\n }\r\n\r\n showMessage(message: any) {\r\n\r\n this.greetings.push(message);\r\n this.randomMessage();\r\n\r\n }\r\n\r\n\r\n}\r\n","import {Component, OnInit} from '@angular/core';\r\nimport {TranslateService} from \"@ngx-translate/core\";\r\nimport {BnNgIdleService} from \"bn-ng-idle\";\r\nimport {Router} from \"@angular/router\";\r\nimport {ToastrService} from \"ngx-toastr\";\r\nimport {InteractionService} from \"./services/interaction.service\";\r\nimport Swal from \"sweetalert2\";\r\n\r\n@Component({\r\n selector: 'app-root',\r\n templateUrl: './app.component.html',\r\n styleUrls: ['./app.component.scss']\r\n})\r\nexport class AppComponent implements OnInit {\r\n title = 'neda-web';\r\n\r\n constructor(private _translateService: TranslateService,\r\n private interactionService: InteractionService,\r\n private toastr: ToastrService,\r\n private bnIdle: BnNgIdleService,\r\n private router: Router) {\r\n\r\n }\r\n\r\n ngOnInit(): void {\r\n\r\n this.bnIdle.startWatching(1800).subscribe((isTimedOut: boolean) => {\r\n if (isTimedOut) {\r\n let isLoggedIn = localStorage.getItem('isLogged');\r\n if (isLoggedIn === 'True') {\r\n this.clearSessionStorage(true);\r\n }\r\n }\r\n });\r\n\r\n sessionStorage.setItem('LANG', 'en');\r\n this._translateService.setDefaultLang('en');\r\n this._translateService.use('en');\r\n\r\n // if (window.sessionStorage) {\r\n // this.clearSessionStorage(false);\r\n // }\r\n }\r\n\r\n clearSessionStorage(value: boolean) {\r\n Swal.close();\r\n localStorage.setItem('isLogged', 'False');\r\n localStorage.setItem('DEFAULT_CURRENCY', 'LKR');\r\n localStorage.removeItem('DEFAULT_CURRENCY');\r\n localStorage.removeItem('CART_ID');\r\n localStorage.removeItem('Access-Token');\r\n localStorage.removeItem('USER_ROLE');\r\n this.interactionService.setLoginSuccess(false);\r\n this.interactionService.setCurrencySuccess(true);\r\n\r\n if (value) {\r\n this.toastr.error('session expired!');\r\n this.router.navigate(['/']);\r\n }\r\n }\r\n\r\n}\r\n\r\n\r\n\r\n","
\r\n \r\n \r\n \r\n \r\n \r\n
\r\n","import {Injectable} from '@angular/core';\r\nimport {HttpEvent, HttpHandler, HttpInterceptor, HttpRequest} from '@angular/common/http';\r\nimport {Router} from '@angular/router';\r\nimport {Observable} from \"rxjs\";\r\n\r\n/**\r\n * @author Sachin Dilshan\r\n * @version 1.0.0\r\n */\r\n\r\n@Injectable()\r\nexport class AuthInterceptor implements HttpInterceptor {\r\n\r\n tenantValue: any;\r\n\r\n constructor(private _router: Router) {\r\n\r\n }\r\n\r\n public intercept(req: HttpRequest, next: HttpHandler): Observable> {\r\n\r\n let token = localStorage.getItem('$Token');\r\n\r\n if (token !== null) {\r\n const tokenReq: HttpRequest = req.clone({\r\n setHeaders: {\r\n 'Access-Token': `Bearer ${token}`,\r\n 'X-TenantID': 'neda',\r\n 'Access-Control-Allow-Origin': '*',\r\n 'Access-Control-Allow-Headers': 'content-type',\r\n 'Access-Control-Allow-Methods': 'PUT, POST, GET, DELETE, PATCH, OPTIONS',\r\n 'Content-Encoding': 'gzip'\r\n }\r\n });\r\n return next.handle(tokenReq);\r\n } else {\r\n const tokenReq: HttpRequest = req.clone({\r\n setHeaders: {\r\n 'X-TenantID': 'neda',\r\n 'Access-Control-Allow-Origin': '*',\r\n 'Access-Control-Allow-Headers': 'content-type',\r\n 'Access-Control-Allow-Methods': 'PUT, POST, GET, DELETE, PATCH, OPTIONS',\r\n 'Content-Encoding': 'gzip'\r\n }\r\n });\r\n return next.handle(tokenReq);\r\n }\r\n }\r\n\r\n}\r\n","import { Component, ElementRef, EventEmitter, Input, OnInit, Output, ViewChild, ViewEncapsulation } from '@angular/core';\r\nimport {ChatService} from '../../services/chat.service';\r\nimport {ChatWidgetComponent} from '..';\r\n\r\n@Component({\r\n selector: 'app-chat-input',\r\n template: `\r\n \r\n \r\n `,\r\n encapsulation: ViewEncapsulation.None,\r\n styleUrls: ['./chat-input.component.css'],\r\n})\r\nexport class ChatInputComponent implements OnInit {\r\n @Input() public buttonText = '↩︎';\r\n @Input() public focus = new EventEmitter();\r\n @Output() public send = new EventEmitter();\r\n @Output() public imageRes = new EventEmitter();\r\n @Output() public dismiss = new EventEmitter();\r\n // @ts-ignore\r\n @ViewChild('message') message: ElementRef;\r\n selectedFile:any;\r\n imageText: any;\r\n sender: any;\r\n chatroomid: any;\r\n constructor(private service: ChatService,private chatWindow: ChatWidgetComponent) {}\r\n\r\n ngOnInit() {\r\n this.focus.subscribe(() => this.focusMessage());\r\n }\r\n\r\n public focusMessage() {\r\n this.message.nativeElement.focus();\r\n }\r\n\r\n public getMessage() {\r\n return this.message.nativeElement.value;\r\n }\r\n\r\n public clearMessage() {\r\n this.message.nativeElement.value = '';\r\n }\r\n\r\n onSubmit() {\r\n const message = this.getMessage();\r\n if (message.trim() === '') {\r\n return;\r\n }\r\n this.send.emit({ message });\r\n this.clearMessage();\r\n this.focusMessage();\r\n }\r\n onFileSelected(files: null[]) {\r\n this.selectedFile = files[0];\r\n const body = new FormData();\r\n body.append('image', this.selectedFile, this.selectedFile.name);\r\n\r\n this.service.imageUpload(body).subscribe(result => {\r\n\r\n this.chatWindow.imageRes(result,this.selectedFile.name);\r\n });\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ChatWidgetComponent } from './chat-widget/chat-widget.component';\r\nimport { ChatInputComponent } from './chat-input/chat-input.component';\r\nimport { ChatConfigComponent } from './chat-config/chat-config.component';\r\n\r\n@NgModule({\r\n imports: [CommonModule],\r\n declarations: [ChatWidgetComponent, ChatInputComponent, ChatConfigComponent],\r\n exports: [ChatWidgetComponent, ChatConfigComponent],\r\n})\r\nexport class ChatModule implements OnInit {\r\n rate: any;\r\n constructor() { }\r\n\r\n ngOnInit(): void {\r\n }\r\n}\r\n\r\n\r\nimport { Component, OnInit } from '@angular/core';\r\n\r\n// @Component({\r\n// selector: 'app-message-box',\r\n// templateUrl: './message-box.component.html',\r\n// styleUrls: ['./message-box.component.css']\r\n// })\r\n// export class MessageBoxComponent implements OnInit {\r\n// msgTab = 1;\r\n// activeChat = 1;\r\n// rate: any;\r\n// constructor() { }\r\n//\r\n// ngOnInit(): void {\r\n// }\r\n// }\r\n","import {NgModule} from '@angular/core';\r\nimport {AppRoutingModule} from './app-routing.module';\r\n\r\nimport {AppComponent} from './app.component';\r\nimport {HeaderComponent} from \"./shared/header/header.component\";\r\nimport {FooterComponent} from \"./shared/footer/footer.component\";\r\nimport {SlickCarouselModule} from 'ngx-slick-carousel';\r\n\r\n//material\r\nimport {MatFormFieldModule} from '@angular/material/form-field';\r\nimport {MatInputModule} from '@angular/material/input';\r\nimport {MatButtonModule} from '@angular/material/button';\r\nimport {MatIconModule} from '@angular/material/icon';\r\nimport {MatGridListModule} from \"@angular/material/grid-list\";\r\nimport {MatTabsModule} from \"@angular/material/tabs\";\r\nimport {MatCheckboxModule} from '@angular/material/checkbox';\r\nimport {MatTableModule} from '@angular/material/table';\r\nimport {MatRadioModule} from '@angular/material/radio';\r\nimport {MatMenuModule} from '@angular/material/menu';\r\nimport {MatPaginatorModule} from '@angular/material/paginator';\r\nimport {MatSelectModule} from '@angular/material/select';\r\n\r\nimport {ShoppingCartListComponent} from './popups/shopping-cart-list/shopping-cart-list.component';\r\nimport {CategoriesListComponent} from './popups/categories-list/categories-list.component';\r\nimport {LoginModalComponent} from './popups/login-modal/login-modal.component';\r\nimport {TranslateLoader, TranslateModule} from \"@ngx-translate/core\";\r\nimport {HTTP_INTERCEPTORS, HttpClient, HttpClientModule} from \"@angular/common/http\";\r\nimport {TranslateHttpLoader} from \"@ngx-translate/http-loader\";\r\nimport {NgxDropzoneModule} from \"ngx-dropzone\";\r\nimport {AuthInterceptor} from \"./authentication/auth-interceptor\";\r\nimport {BnNgIdleService} from \"bn-ng-idle\";\r\nimport {BrowserAnimationsModule} from \"@angular/platform-browser/animations\";\r\nimport {FormsModule, ReactiveFormsModule} from \"@angular/forms\";\r\nimport {BrowserModule} from \"@angular/platform-browser\";\r\nimport {ToastrModule} from \"ngx-toastr\";\r\nimport {CommonModule} from \"@angular/common\";\r\nimport {NgxPaginationModule} from \"ngx-pagination\";\r\nimport {AsASellerRoutingModule} from \"./authentication/signup/as-a-seller/as-a-seller-routing.module\";\r\nimport {MatDatepickerModule} from \"@angular/material/datepicker\";\r\nimport {MatNativeDateModule} from \"@angular/material/core\";\r\nimport {MatAutocompleteModule} from \"@angular/material/autocomplete\";\r\nimport {MyProfileComponent} from \"./my-profile/my-profile.component\";\r\nimport {ChatConfigComponent, ChatModule, ChatWidgetComponent} from './chat';\r\nimport {\r\n DevoSellerProductsComponent\r\n} from \"./my-profile/development-officer/devo-seller-products/devo-seller-products.component\";\r\nimport {NgbModule} from \"@ng-bootstrap/ng-bootstrap\";\r\nimport {CLOUDINARY_CONFIG, NgxPictureModule} from \"ngx-picture\";\r\n\r\n\r\n@NgModule({\r\n declarations: [\r\n AppComponent,\r\n FooterComponent,\r\n HeaderComponent,\r\n ShoppingCartListComponent,\r\n CategoriesListComponent,\r\n LoginModalComponent,\r\n MyProfileComponent,\r\n DevoSellerProductsComponent\r\n ],\r\n imports: [\r\n BrowserModule,\r\n NgbModule,\r\n AppRoutingModule,\r\n CommonModule,\r\n NgxPaginationModule,\r\n BrowserAnimationsModule,\r\n SlickCarouselModule,\r\n TranslateModule.forRoot({loader: {provide: TranslateLoader, useFactory: HttpLoaderFactory, deps: [HttpClient]}}),\r\n MatFormFieldModule,\r\n MatInputModule,\r\n MatButtonModule,\r\n MatTableModule,\r\n HttpClientModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n MatCheckboxModule,\r\n MatPaginatorModule,\r\n MatIconModule,\r\n MatRadioModule,\r\n CommonModule,\r\n NgxDropzoneModule,\r\n AsASellerRoutingModule,\r\n MatDatepickerModule,\r\n MatNativeDateModule,\r\n MatAutocompleteModule,\r\n MatGridListModule,\r\n MatMenuModule,\r\n MatTabsModule,\r\n ToastrModule.forRoot(\r\n {\r\n positionClass: 'toast-bottom-right',\r\n }\r\n ),\r\n MatSelectModule,\r\n ChatModule,\r\n NgxDropzoneModule,\r\n NgxPictureModule.forRoot(CLOUDINARY_CONFIG)\r\n ],\r\n providers: [{\r\n provide: HTTP_INTERCEPTORS,\r\n useClass: AuthInterceptor,\r\n multi: true\r\n },\r\n BnNgIdleService],\r\n entryComponents: [\r\n ChatWidgetComponent,\r\n ChatConfigComponent\r\n ],\r\n bootstrap: [AppComponent]\r\n})\r\nexport class AppModule {\r\n}\r\n\r\nexport function HttpLoaderFactory(http: HttpClient) {\r\n return new TranslateHttpLoader(http, './assets/i18n/', '.json');\r\n}\r\n\r\n","import { enableProdMode } from '@angular/core';\r\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\r\n\r\nimport { AppModule } from './app/app.module';\r\nimport { environment } from './environments/environment';\r\n\r\nif (environment.production) {\r\n enableProdMode();\r\n}\r\n\r\nplatformBrowserDynamic().bootstrapModule(AppModule)\r\n .catch(err => console.error(err));\r\n"],"sourceRoot":"webpack:///","file":"main.712ed62786dd7ccb.js"}