();\r\n public form: FormGroup;\r\n arr1: any = [];\r\n isActive: boolean = false; arr: any;\r\n pdfurl: any;\r\n pdfpath: any;\r\n HomeURL: any;\r\n brochuedata: any = [];\r\n showSocialMedia : any=1;\r\n Statedata: any = [];\r\n deptList: any;\r\n districtdata: any = [];\r\n deptList1: any;\r\n Citydata: any = [];\r\n deptList2: any;\r\n selectedState1: any;\r\n selectedState2: any;\r\n selectedState3: any; brochures: any;\r\n pincode: any; DownloadLogo:any; \r\n LoginDetails1: any; LoginDetails: any; activeCardIndex: number = -1;\r\n refreshTimeout: 5000;\r\n //activeCardIndex: number = -1;\r\n \r\n constructor(public generalservice: GeneralService, private location: Location,\r\nprivate cdr: ChangeDetectorRef, public router: Router, public http: HttpClient, public fb: FormBuilder) {\r\n \r\n this.LoginDetails1 = localStorage.getItem(\"LoginDetails\");\r\n this.LoginDetails = JSON.parse(this.LoginDetails1);\r\n this.http.get('../assets/WebService.json').subscribe((data: any) => {\r\n // this.pdfurl = 'https://localhost:44387/';\r\n this.pdfurl = 'https://letshelp.breakingindiaapp.com/Webservices/';\r\n });\r\n \r\n \r\n\r\n this.form = this.fb.group({\r\n // Define your form controls here\r\n StateName: ['',],\r\n DistrictName: ['', ],\r\n CityName: ['',],\r\n pincode: ['', ],\r\n location: ['',],\r\n \r\n });\r\n\r\n }\r\n\r\n ngOnInit():void {\r\n this.brochure();\r\n this.getstate();\r\n this.getDistrict();\r\n this.getCity();\r\n\r\n \r\n }\r\n handleClick(index: number) {\r\n \r\n if (this.activeCardIndex === index) {\r\n this.activeCardIndex = -1; // Toggle off if same card clicked again\r\n } else {\r\n this.activeCardIndex = index;\r\n }\r\n }\r\n Brochureinsert() {\r\n \r\n if (!this.form.value.pincode || !this.form.value.DistrictName || !this.form.value.CityName\r\n || !this.form.value.StateName || !this.form.value.location) {\r\n alert('Please select all details or select Skip and Download option');\r\n return;\r\n }\r\n \r\n this.arr = [];\r\n this.arr.push({\r\n stateid: this.form.value.StateName.StateId,\r\n districtid: this.form.value.DistrictName.DistrictID,\r\n cityid: this.form.value.CityName.CityId,\r\n Pincode: this.form.value.pincode,\r\n Location: this.form.value.location\r\n })\r\n var uploadfile = new FormData()\r\n uploadfile.append(\"Param\", JSON.stringify(this.arr));\r\n var url = \"api/BG/InsertBrochures_Deatails\";\r\n this.generalservice.PostData(url, uploadfile).then(data => {\r\n if (data == \"SUCCESS\") {\r\n this.downloadFile(this.pdfpath);\r\n }\r\n\r\n })\r\n \r\n \r\n }\r\n\r\n brochure() {\r\n \r\n this.arr = [];\r\n this.arr.push({\r\n\r\n })\r\n var uploadfile = new FormData()\r\n uploadfile.append(\"Param\", JSON.stringify(this.arr));\r\n uploadfile.append(\"Flag\", '4');\r\n var url = \"api/BG/BG_Brochers_Crud\";\r\n this.generalservice.PostData(url, uploadfile).then(data => {\r\n this.brochuedata = data;\r\n this.pdfpath = this.brochuedata[0].BrochurePath\r\n })\r\n\r\n }\r\n \r\n download1(filePath: string | null): void {\r\n if (filePath) {\r\n const fileName: string = filePath.split('/').pop() || '';\r\n const absoluteUrl: string = `https://localhost:44387/${filePath}`;\r\n\r\n const link: HTMLAnchorElement = document.createElement('a');\r\n link.href = absoluteUrl;\r\n link.download = fileName;\r\n\r\n document.body.appendChild(link);\r\n link.click();\r\n document.body.removeChild(link);\r\n } else {\r\n console.error('File path not available');\r\n }\r\n }\r\n download(filePath: string | null): void {\r\n if (filePath) {\r\n const timestamp = new Date().getTime(); // Get current timestamp\r\n const absoluteUrl: string = `https://letshelp.breakingindiaapp.com/Webservices/${filePath}?t=${timestamp}`;\r\n\r\n // Create a temporary anchor element\r\n const link = document.createElement('a');\r\n link.href = absoluteUrl;\r\n link.setAttribute('download', ''); // This will set the download attribute to force download\r\n document.body.appendChild(link);\r\n\r\n // Simulate a click on the anchor element\r\n link.click();\r\n\r\n // Remove the anchor element from the DOM after a short delay\r\n setTimeout(() => {\r\n document.body.removeChild(link);\r\n }, 100);\r\n } else {\r\n console.error('File path not available');\r\n }\r\n }\r\n downloadFile(filePath: string): void {\r\n \r\n const absoluteUrl: string = `https://letshelp.breakingindiaapp.com/Webservices/${filePath}`;\r\n\r\n // Create a temporary anchor element\r\n const link = document.createElement('a');\r\n link.href = absoluteUrl;\r\n link.setAttribute('download', ''); // This will set the download attribute to force download\r\n document.body.appendChild(link);\r\n\r\n // Simulate a click on the anchor element\r\n link.click();\r\n\r\n // Remove the anchor element from the DOM\r\n document.body.removeChild(link);\r\n }\r\n\r\n \r\n\r\n \r\n\r\n toggleSocialMedia(value: number) {\r\n // Update showSocialMedia variable\r\n this.showSocialMedia = value;\r\n }\r\n \r\n ngOnDestroy(): void {\r\n // Clear the refresh timeout when the component is destroyed to prevent memory leaks\r\n if (this.refreshTimeout) {\r\n clearTimeout(this.refreshTimeout);\r\n }\r\n }\r\n\r\n \r\n toggleSocialMedias(value:any) {\r\n ;\r\n if (value != 2) {\r\n this.showSocialMedia = value;\r\n\r\n }\r\n else {\r\n this.downloadlogo();\r\n }\r\n }\r\n\r\n opentwitter() {\r\n // Replace 'your-instagram-url' with the actual Instagram share URL\r\n const instagramShareUrl = 'https://twitter.com/i/flow/login';\r\n const urlToShare = 'https://letshelp.breakingindiaapp.com/Brochures';\r\n\r\n // Combine Instagram URL and the URL to share\r\n const finalInstagramUrl = `${instagramShareUrl}?url=${encodeURIComponent(urlToShare)}`;\r\n\r\n // Open Instagram in a new window or tab\r\n window.open(finalInstagramUrl, '_blank');\r\n }\r\n openInstagram() {\r\n // Replace 'your-instagram-url' with the actual Instagram share URL\r\n const instagramShareUrl = 'https://www.instagram.com/';\r\n const urlToShare = 'https://letshelp.breakingindiaapp.com/Brochures';\r\n\r\n // Combine Instagram URL and the URL to share\r\n const finalInstagramUrl = `${instagramShareUrl}?url=${encodeURIComponent(urlToShare)}`;\r\n\r\n // Open Instagram in a new window or tab\r\n window.open(finalInstagramUrl, '_blank');\r\n }\r\n openFacebook() {\r\n // Replace 'your-facebook-url' with the actual Facebook share URL\r\n const facebookShareUrl = 'https://www.facebook.com/sharer/sharer.php?u=';\r\n const urlToShare = 'https://letshelp.breakingindiaapp.com/Brochures';\r\n\r\n // Combine Facebook URL and the URL to share\r\n const finalFacebookUrl = `${facebookShareUrl}${encodeURIComponent(urlToShare)}`;\r\n\r\n // Open Facebook in a new window or tab\r\n window.open(finalFacebookUrl, '_blank');\r\n }\r\n openWhatsApp() {\r\n // Replace 'your-whatsapp-url' with the actual WhatsApp share URL\r\n const whatsappShareUrl = 'https://wa.me/?text=';\r\n const textToShare = 'Check out this link: https://letshelp.breakingindiaapp.com/Brochures';\r\n\r\n // Combine WhatsApp URL and the text to share\r\n const finalWhatsAppUrl = `${whatsappShareUrl}${encodeURIComponent(textToShare)}`;\r\n\r\n // Open WhatsApp in a new window or tab\r\n window.open(finalWhatsAppUrl, '_blank');\r\n }\r\n\r\n openGmailApp() {\r\n // Replace 'your-whatsapp-url' with the actual WhatsApp share URL\r\n const GmailShareUrl = 'https://mail.google.com/mail/u/0/';\r\n const textToShare = 'Check out this link: https://letshelp.breakingindiaapp.com/Brochures';\r\n\r\n // Combine WhatsApp URL and the text to share\r\n const finalWhatsAppUrl = `${GmailShareUrl}${encodeURIComponent(textToShare)}`;\r\n\r\n // Open WhatsApp in a new window or tab\r\n window.open(finalWhatsAppUrl, '_blank');\r\n }\r\n\r\n\r\n setActiveCard(index: number) {\r\n this.activeCardIndex = index;\r\n }\r\n\r\n getstate() {\r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '4');\r\n var url = \"api/BG/StatesMaster_crudCustomer\";\r\n this.generalservice.PostData(url, UploadFile).then(data => {\r\n\r\n this.Statedata = data;\r\n }, err => {\r\n this.generalservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for states //\r\n searchCont(event) {\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList = [];\r\n for (var i = 0; i < this.Statedata.length; i++) {\r\n let country = this.Statedata[i];\r\n if (country.StateName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList = filtered;\r\n }\r\n }\r\n\r\n getDistrict() {\r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n StateId: this.selectedState1.StateId,\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '5');\r\n var url = \"api/BG/DistrictMaster_crudCustomer\";\r\n this.generalservice.PostData(url, UploadFile).then(data => {\r\n this.districtdata = data;\r\n }, err => {\r\n this.generalservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for District //\r\n searchCont1(event) {\r\n\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList1 = [];\r\n for (var i = 0; i < this.districtdata.length; i++) {\r\n let country = this.districtdata[i];\r\n if (country.DistrictName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList1 = filtered;\r\n }\r\n }\r\n\r\n getCity() {\r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n DistrictId: this.selectedState2.DistrictID,\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '5');\r\n var url = \"api/BG/CitiesMaster_Crudcustomer\";\r\n this.generalservice.PostData(url, UploadFile).then(data => {\r\n this.Citydata = data;\r\n }, err => {\r\n this.generalservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n \r\n\r\n // drop down for cities //\r\n searchCont2(event) {\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList2 = [];\r\n for (var i = 0; i < this.Citydata.length; i++) {\r\n let country = this.Citydata[i];\r\n if (country.CityName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList2 = filtered;\r\n }\r\n }\r\n\r\n\r\n vol() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // If LoginDetails is empty or not set, route to the login page\r\n this.router.navigate(['/Volunteerlogin']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n // Assuming roleid is a property of LoginDetails\r\n if ((this.LoginDetails[0].RoleId === 4 && (this.LoginDetails[0].Rolestatus === false || this.LoginDetails[0].Rolestatus === null)) || (this.LoginDetails[0].RoleId === 4 && this.LoginDetails[0].Rolestatus === true) || (this.LoginDetails[0].RoleId === 2 && this.LoginDetails[0].Rolestatus === true)) {\r\n // If roleid is 4, navigate to the '/Volunters' page\r\n this.router.navigate(['/Volunters']);\r\n }\r\n\r\n else if (this.LoginDetails[0].RoleId === 0 && (this.LoginDetails[0].Rolestatus === false)) {\r\n // If roleid is not 4, display an alert message\r\n this.router.navigate(['/Volunteerprofile']);\r\n // alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n else {\r\n this.router.navigate(['/Profile']);\r\n alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n\r\n }\r\n }\r\n\r\n onStateSelect1(event) {\r\n console.log('Selected State:', this.selectedState1);\r\n // You can perform additional actions with the selected state here\r\n }\r\n onStateSelect2(event) {\r\n console.log('Selected Distict:', this.selectedState2);\r\n // You can perform additional actions with the selected state here\r\n }\r\n onStateSelect3(event) {\r\n console.log('Selected City:', this.selectedState3);\r\n // You can perform additional actions with the selected state here\r\n }\r\n\r\n reg() {\r\n \r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // Route to login page\r\n this.router.navigate(['/Login']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n this.router.navigate(['/Profile']).then(() => { window.location.reload(); });\r\n }\r\n }\r\n\r\n downloadlogo() {\r\n ;\r\n // Assuming value is boolean\r\n this.router.navigate(['/Downloadsbrouchers'])\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 \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
\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
\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\nimport { Router } from '@angular/router';\r\n@Component({\r\n selector: 'app-about',\r\n templateUrl: './about.component.html',\r\n styleUrls: ['./about.component.scss']\r\n})\r\nexport class AboutComponent implements OnInit {\r\n LoginDetails1: any; LoginDetails: any;\r\n constructor(private router: Router) {\r\n this.LoginDetails1 = localStorage.getItem(\"LoginDetails\");\r\n this.LoginDetails = JSON.parse(this.LoginDetails1);\r\n }\r\n ngOnInit() { }\r\n reg() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // Route to login page\r\n this.router.navigate(['/Login']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n this.router.navigate(['/Profile']);\r\n }\r\n }\r\n vol() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // If LoginDetails is empty or not set, route to the login page\r\n this.router.navigate(['/Volunteerlogin']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n // Assuming roleid is a property of LoginDetails\r\n if ((this.LoginDetails[0].RoleId === 4 && (this.LoginDetails[0].Rolestatus === false || this.LoginDetails[0].Rolestatus === null)) || (this.LoginDetails[0].RoleId === 4 && this.LoginDetails[0].Rolestatus === true) || (this.LoginDetails[0].RoleId === 2 && this.LoginDetails[0].Rolestatus === true)) {\r\n // If roleid is 4, navigate to the '/Volunters' page\r\n this.router.navigate(['/Volunters']);\r\n }\r\n\r\n else if (this.LoginDetails[0].RoleId === 0 && (this.LoginDetails[0].Rolestatus === false)) {\r\n // If roleid is not 4, display an alert message\r\n this.router.navigate(['/Volunteerprofile']);\r\n // alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n else {\r\n this.router.navigate(['/Profile']);\r\n alert(\"Please update your profile as a volunteer to access this page.\");\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 \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
Let’s Help \r\n \r\n
Together, for a noble cause! \r\n\r\n\r\n
\r\n\r\n Hope and Service are the two factors on which \r\n Let's Help\r\n is built upon. \r\n Its main intention is to\r\n bring all the kind and intellectual hearts to one place for the wellbeing of the society\r\n\r\n \r\n The registration of this website domain, hosting and design has done long back in 2010, lots of\r\n challenges delayed this Service.\r\n \r\n \r\n Blood donation , is a divine act which has no alternative, expect donations. Even this has\r\n become an act of Business with the mediators. Through Let's Help, \r\n there will be no mediator, no\r\n money involved. \r\n We all together can completely abolish deaths due to lack of blood. \r\n \r\n There are numerous sufferers for various reasons.\r\n Corruption, Caste, Region, Poor, Rich,\r\n Politics, Legal System, Naxalism, Terrorism, Policing, Patriotism, Democracy, Reservation, Parliament,\r\n Tax, Media, etc.\r\n these keep on coming.\r\n \r\n Lot of things which always needs an attention, a modification, a change, or a replacement but how can this\r\n happen? \r\n
Let's Help \r\n
\r\n -Against the social injustice, inequality, religious mis-concepts, against the Social evil termites\r\n eating\r\n away our country’s progress\r\n \r\n -Towards creating a helping hand, a supportive system and finally towards a positive change \r\n
\r\n\r\n
Learn More \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\nimport { OwlOptions } from 'ngx-owl-carousel-o';\r\nimport { ViewportScroller } from '@angular/common';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\n@Component({\r\n selector: 'app-blog',\r\n templateUrl: './blog.component.html',\r\n styleUrls: ['./blog.component.scss']\r\n})\r\nexport class BlogComponent implements OnInit {\r\n LoginDetails1: any; LoginDetails: any;\r\n constructor(private router: Router) {\r\n this.LoginDetails1 = localStorage.getItem(\"LoginDetails\");\r\n this.LoginDetails = JSON.parse(this.LoginDetails1);\r\n }\r\n public onClick(elementId: string): void { \r\n //this.viewportScroller.scrollToAnchor(elementId);\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n\r\n reg() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // Route to login page\r\n this.router.navigate(['/Login']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n this.router.navigate(['/Profile']);\r\n }\r\n }\r\n blogSlides: OwlOptions = {\r\n\t\tloop: true,\r\n\t\tnav: false,\r\n\t\tdots: true,\r\n\t\tautoplayHoverPause: true,\r\n\t\tautoplay: true,\r\n\t\tmargin: 30,\r\n\t\tnavText: [\r\n\t\t\t\" \",\r\n\t\t\t\" \"\r\n\t\t],\r\n\t\tresponsive: {\r\n\t\t\t0: {\r\n\t\t\t\titems: 1,\r\n\t\t\t},\r\n\t\t\t768: {\r\n\t\t\t\titems: 2,\r\n\t\t\t},\r\n\t\t\t1200: {\r\n\t\t\t\titems: 3,\r\n\t\t\t}\r\n\t\t}\r\n }\r\n vol() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // If LoginDetails is empty or not set, route to the login page\r\n this.router.navigate(['/Volunteerlogin']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n // Assuming roleid is a property of LoginDetails\r\n if ((this.LoginDetails[0].RoleId === 4 && (this.LoginDetails[0].Rolestatus === false || this.LoginDetails[0].Rolestatus === null)) || (this.LoginDetails[0].RoleId === 4 && this.LoginDetails[0].Rolestatus === true) || (this.LoginDetails[0].RoleId === 2 && this.LoginDetails[0].Rolestatus === true)) {\r\n // If roleid is 4, navigate to the '/Volunters' page\r\n this.router.navigate(['/Volunters']);\r\n }\r\n\r\n else if (this.LoginDetails[0].RoleId === 0 && (this.LoginDetails[0].Rolestatus === false)) {\r\n // If roleid is not 4, display an alert message\r\n this.router.navigate(['/Volunteerprofile']);\r\n // alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n else {\r\n this.router.navigate(['/Profile']);\r\n alert(\"Please update your profile as a volunteer to access this page.\");\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 \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 \r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\nimport { FormBuilder, FormControl, Validators, FormsModule } from '@angular/forms';\r\nimport { GeneralService } from '../../../general.service';\r\nimport { Route, Router, ActivatedRoute } from '@angular/router';\r\nimport Swal from 'sweetalert2';\r\n\r\n\r\n@Component({\r\n selector: 'app-contact',\r\n templateUrl: './contact.component.html',\r\n styleUrls: ['./contact.component.scss']\r\n})\r\nexport class ContactComponent implements OnInit {\r\n enquiery: any = [];\r\n formGroup: any;\r\n contactForm: FormsModule;\r\n Fullname: any;\r\n email: any;\r\n Message: any;\r\n //subject: any;\r\n //number: any;\r\n LoginDetails: any; LoginDetails1: any;\r\n constructor(private viewportScroller: ViewportScroller, fb: FormBuilder, public generalservice: GeneralService,\r\n private router: Router) {\r\n this.LoginDetails1 = localStorage.getItem(\"LoginDetails\");\r\n this.LoginDetails = JSON.parse(this.LoginDetails1);\r\n }\r\n\r\n public onClick(elementId: string): void {\r\n this.viewportScroller.scrollToAnchor(elementId);\r\n }\r\n\r\n ngOnInit() {\r\n this.sendmail();\r\n }\r\n reg() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // Route to login page\r\n this.router.navigate(['/Login']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n this.router.navigate(['/Profile']);\r\n }\r\n }\r\n\r\n sendmail() {\r\n \r\n this.enquiery = [];\r\n this.enquiery.push({\r\n FarmerName: this.Fullname,\r\n EmailID: this.email,\r\n Comments: this.Message,\r\n\r\n })\r\n var uploadfile = new FormData;\r\n uploadfile.append(\"Email\", JSON.stringify(this.enquiery));\r\n var url = \"api/BG/EnquiryMailTo_BloodCustomer\";\r\n this.generalservice.PostData(url, uploadfile).then(data => {\r\n \r\n this.generalservice.ShowAlert(\"SUCCESS\", 'Mail sent Successfuly', 'success');\r\n Swal.fire('SUCCESS',\r\n 'Your Enquiry has been submitted successfully. Our Team will contact you soon.',\r\n 'success')\r\n this.Fullname = '';\r\n this.email = '';\r\n this.Message = '';\r\n\r\n //setTimeout(() => {\r\n // window.location.reload();\r\n //}, 2000);\r\n });\r\n\r\n }\r\n vol() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // If LoginDetails is empty or not set, route to the login page\r\n this.router.navigate(['/Volunteerlogin']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n // Assuming roleid is a property of LoginDetails\r\n if ((this.LoginDetails[0].RoleId === 4 && (this.LoginDetails[0].Rolestatus === false || this.LoginDetails[0].Rolestatus === null)) || (this.LoginDetails[0].RoleId === 4 && this.LoginDetails[0].Rolestatus === true) || (this.LoginDetails[0].RoleId === 2 && this.LoginDetails[0].Rolestatus === true)) {\r\n // If roleid is 4, navigate to the '/Volunters' page\r\n this.router.navigate(['/Volunters']);\r\n }\r\n\r\n else if (this.LoginDetails[0].RoleId === 0 && (this.LoginDetails[0].Rolestatus === false)) {\r\n // If roleid is not 4, display an alert message\r\n this.router.navigate(['/Volunteerprofile']);\r\n // alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n else {\r\n this.router.navigate(['/Profile']);\r\n alert(\"Please update your profile as a volunteer to access this page.\");\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 \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
LETS HELP \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 Submit \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
Newsletter Signup \r\n\r\n
\r\n
\r\n
\r\n \r\n Got It \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\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { FormGroup, FormControl, AbstractControl, FormBuilder, Validators } from '@angular/forms';\r\n//import { EmailValidators } from 'ngx-validators'\r\n\r\n//import { CookieService } from 'ngx-cookie-service';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\nimport { GeneralService } from '../../../general.service';\r\nimport Swal from 'sweetalert2';\r\nimport { HttpClient, HttpHandler, HttpResponse, HttpRequest } from '@angular/common/http';\r\ndeclare var $;\r\n\r\n@Component({\r\n selector: 'app-cta',\r\n templateUrl: './cta.component.html',\r\n styleUrls: ['./cta.component.scss']\r\n})\r\nexport class CtaComponent implements OnInit {\r\n HomeUrl: any;\r\n pwd1: any;\r\n userid: any;\r\n Mobile: any;\r\n OTP: any;\r\n OTPtoMobile: any;\r\n logindata: any;\r\n otpSent: boolean = false;\r\n showLogin: boolean = false;\r\n showLogin1: boolean = true; loginDet:any;\r\n LoginDetails: any; LoginDetails1: any; letter: any;\r\n constructor(public router: Router, public generalService: GeneralService, public http: HttpClient, public activeroute: ActivatedRoute) { //\r\n this.loginDet = JSON.parse(localStorage.getItem(\"LoginDetails\"));\r\n this.LoginDetails1 = localStorage.getItem(\"LoginDetails\");\r\n this.LoginDetails = JSON.parse(this.LoginDetails1);\r\n if (Array.isArray(this.LoginDetails) && this.LoginDetails.length > 0) {\r\n this.letter = this.LoginDetails[0].FullName.charAt(0);\r\n } else if (this.LoginDetails && this.LoginDetails.FullName) {\r\n this.letter = this.LoginDetails.FullName.charAt(0);\r\n } else {\r\n this.letter = '';\r\n }\r\n \r\n this.http.get('../assets/WebService.json').subscribe((data: any) => {\r\n this.HomeUrl = data.Webservice;\r\n });\r\n }\r\n ngOnInit() {\r\n // this.Getsurname();\r\n }\r\n SendOTPtoMobile() {\r\n \r\n if (!this.otpSent && this.Mobile && this.Mobile.length === 10) {\r\n this.OTPtoMobile = Math.floor(1000 + Math.random() * 9000);\r\n var Uploadfile = new FormData();\r\n Uploadfile.append(\"MobileNo\", this.Mobile)\r\n Uploadfile.append(\"OTP\", this.OTPtoMobile)\r\n var url = \"api/BG/SendOtpToMobile\";\r\n this.generalService.PostData(url, Uploadfile).then((data: any) => {\r\n // Set otpSent to true once OTP is sent\r\n this.otpSent = true;\r\n this.showLogin1 = false;\r\n this.showLogin = true;\r\n })\r\n }\r\n }\r\n openLoginModal() {\r\n // Show the modal here\r\n this.router.navigate(['/Login']);\r\n }\r\n\r\n share() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // Route to login page\r\n this.router.navigate(['/Login']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n this.router.navigate(['/Shareyourservices']);\r\n }\r\n }\r\n pro() {\r\n this.router.navigate(['/Profile']);\r\n }\r\n signOut() {\r\n \r\n // Remove the login details from localStorage\r\n localStorage.removeItem('LoginDetails');\r\n window.location.reload();\r\n // Optionally, you might want to perform other sign-out related tasks such as\r\n // navigating the user to the login page, clearing any local state, etc.\r\n }\r\n checkmobile(Mobile) {\r\n \r\n if (Mobile.length == 10) {\r\n if (this.OTPtoMobile == this.OTP) {\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Mobile\", Mobile);\r\n\r\n\r\n var url = 'api/BG/checking_Mobile'\r\n\r\n this.generalService.PostData(url, UploadFile).then(data => {\r\n //this.logindata = JSON.stringify(data[0]);\r\n //localStorage.setItem(\"LoginDetails\", this.logindata);\r\n \r\n if (data != 'NOTEXIST') {\r\n \r\n this.pwd1 = data[0].Password;\r\n this.userid = data[0].ID;\r\n this.router.navigate(['/Profile']).then(() => { window.location.reload(); });\r\n this.logindata = JSON.stringify(data[0]);\r\n localStorage.setItem(\"LoginDetails\", this.logindata);\r\n\r\n }\r\n else {\r\n\r\n this.router.navigate(['/Donersform'])\r\n // this.router.navigate(['/register', { Mobile: this.form.value.Mobile }])\r\n .then(() => {\r\n window.location.reload();\r\n });\r\n }\r\n })\r\n }\r\n }\r\n }\r\n\r\n\r\n showmenu() {\r\n\r\n }\r\n\r\n toggleDropdown() {\r\n const dropdownContent = document.getElementById(\"dropdownContent\");\r\n if (dropdownContent.style.display === \"block\") {\r\n dropdownContent.style.display = \"none\";\r\n } else {\r\n dropdownContent.style.display = \"block\";\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 Let's Help \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\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-demo-sidebar',\r\n templateUrl: './demo-sidebar.component.html',\r\n styleUrls: ['./demo-sidebar.component.scss']\r\n})\r\nexport class DemoSidebarComponent implements OnInit {\r\n\r\n constructor() { }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n classApplied = false;\r\n toggleClass() {\r\n this.classApplied = !this.classApplied;\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
Main Demo \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
Slider Demo \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
Video Demo \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
Ripple Home \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
Creative Demo 1 \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
Creative Demo 2 \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
Creative Demo 3 \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
Animation Text Demo \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
Particles Demo 1 \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
Creative Demo 4 \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
Creative Demo 5 \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
Gradient Demo \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
Particles Demo 2 \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
Blog Details \r\n
\r\n
\r\n \r\n \r\n
\r\n \r\n
","import { Component, OnInit } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-faq',\r\n templateUrl: './faq.component.html',\r\n styleUrls: ['./faq.component.scss']\r\n})\r\nexport class FaqComponent implements OnInit {\r\n\r\n constructor(private viewportScroller: ViewportScroller) {}\r\n\r\n public onClick(elementId: string): void { \r\n this.viewportScroller.scrollToAnchor(elementId);\r\n }\r\n\r\n ngOnInit() {}\r\n\r\n // Accordion\r\n contentHeight: number = 0;\r\n openSectionIndex: number = -1;\r\n toggleSection(index: number): void {\r\n if (this.openSectionIndex === index) {\r\n this.openSectionIndex = -1;\r\n } else {\r\n this.openSectionIndex = index;\r\n this.calculateContentHeight();\r\n }\r\n }\r\n isSectionOpen(index: number): boolean {\r\n return this.openSectionIndex === index;\r\n }\r\n calculateContentHeight(): void {\r\n const contentElement = document.querySelector('.accordion-content');\r\n if (contentElement) {\r\n this.contentHeight = contentElement.scrollHeight;\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 \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
To donate blood online, you typically need to meet certain criteria, including being in good health, meeting age requirements (usually between 16 to 65 years old), meeting weight requirements (usually over 110 pounds), and not having certain medical conditions or recent surgeries.
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
Most blood donation websites have a search feature where you can enter your location and find nearby blood donation centers or blood drives. You may also be able to schedule appointments for donation through the website.
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
Yes, donating blood online through reputable and secure blood donation websites is safe. These websites typically have secure payment gateways and follow strict protocols to protect your personal and medical information.
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
Yes, many blood donation websites allow you to schedule appointments for blood donation at your convenience. This helps streamline the donation process and ensures that blood donation centers are adequately prepared for donations.
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
After you donate blood online, you may receive a confirmation email or message with details about your donation, including any instructions for preparation before donation and aftercare tips. Your donation will then be processed by the blood donation center, and it will be used to help save lives.
\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
Newsletter Signup \r\n\r\n
\r\n
\r\n
\r\n \r\n Got It \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 } from '@angular/core';\r\nimport { GeneralService } from '../../../general.service';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { FormBuilder, FormControl, Validators, FormGroup, ReactiveFormsModule } from '@angular/forms';\r\n\r\n@Component({\r\n selector: 'app-feedback',\r\n templateUrl: './feedback.component.html',\r\n styleUrls: ['./feedback.component.scss']\r\n})\r\nexport class FeedbackComponent implements OnInit {\r\n\r\n public form: FormGroup;\r\n arr: any = [];\r\n districtdata: any = [];\r\n deptList: any;\r\n flag: any;\r\n Statedata: any = [];\r\n Citydata: any = [];\r\n deptList1: any;\r\n deptList2: any; bloodgroupdata: any = [];\r\n deptList3: any;\r\n subDropdownStyle: { [key: string]: string } = {};\r\n isMouseOverSubDropdown: boolean = false;\r\n showDropdownContent = false;\r\n selectedBloodgroup: string = '';\r\n GalleryImages: any;\r\n imagefile2: any;\r\n HomeUrl: any;\r\n GalleryID: any;\r\n Form: FormGroup;\r\n LoginDetails1: any; LoginDetails: any\r\n constructor(public genralservice: GeneralService, public http: HttpClient, public fb: FormBuilder) {\r\n \r\n this.LoginDetails1 = localStorage.getItem(\"LoginDetails\");\r\n this.LoginDetails = JSON.parse(this.LoginDetails1);\r\n const fullName: string = this.LoginDetails.FullName;\r\n const firstLetter: string = fullName.charAt(0);\r\n this.form = this.fb.group({\r\n Category: ['', Validators.required],\r\n Dateofservice: [''],\r\n bloodgroup: [''],\r\n statename: [''],\r\n districtname: [''],\r\n cityname: [''],\r\n Institutionname: [''],\r\n GalleryImages: ['', Validators.required],\r\n });\r\n\r\n\r\n }\r\n\r\n\r\n ngOnInit(): void { \r\n this.getstate();\r\n this.getDistrict();\r\n this.getCity();\r\n }\r\n\r\n AddBanner(value, flag) {\r\n \r\n if (!value.GalleryImages) {\r\n this.genralservice.ShowAlert('Warning', 'Please upload an image file', 'Warning');\r\n return;\r\n }\r\n var arr = [];\r\n arr.push({\r\n RegId: this.LoginDetails?.RegId || 0,\r\n GalleryID: this.GalleryID,\r\n Category: this.form.value.Category,\r\n GalleryImages: this.GalleryImages,\r\n Dateofservice: this.form.value.Dateofservice,\r\n State: this.form.value.statename.StateId,\r\n District: this.form.value.districtname.DistrictID,\r\n City: this.form.value.cityname.CityId,\r\n Institutionname: this.form.value.Institutionname,\r\n\r\n });\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Param\", JSON.stringify(arr));\r\n UploadFile.append(\"Flag\", flag);\r\n var url = \"api/BG/Gallery_Crud\";\r\n\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n \r\n if (data == \"SUCCESS\") {\r\n if (flag == 1) {\r\n this.genralservice.ShowAlert('SUCCESS', 'Image Added successfully ', 'success');\r\n } else {\r\n this.genralservice.ShowAlert('SUCCESS', 'Image Updated successfully', 'success');\r\n }\r\n this.form.reset();\r\n window.location.reload();\r\n\r\n }\r\n if (data == \"Exist\") {\r\n this.genralservice.ShowAlert('Exist', 'Data Already Exist ', 'success');\r\n }\r\n }, error => ({\r\n title: 'ERROR',\r\n text: 'Something went wrong. Please try again later.',\r\n type: 'error',\r\n confirmButtonText: 'Ok'\r\n }));\r\n }\r\n\r\n\r\n\r\n\r\n\r\n\r\n getstate() {\r\n \r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '4');\r\n var url = \"api/BG/StatesMaster_crudCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n\r\n this.Statedata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for states //\r\n searchCont(event) {\r\n \r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList = [];\r\n for (var i = 0; i < this.Statedata.length; i++) {\r\n let country = this.Statedata[i];\r\n if (country.StateName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList = filtered;\r\n }\r\n }\r\n\r\n\r\n getDistrict() {\r\n \r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n StateId: this.form.value.statename.StateId\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '5');\r\n var url = \"api/BG/DistrictMaster_crudCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n \r\n this.districtdata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for District //\r\n searchCont1(event) {\r\n\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList1 = [];\r\n for (var i = 0; i < this.districtdata.length; i++) {\r\n let country = this.districtdata[i];\r\n if (country.DistrictName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList1 = filtered;\r\n }\r\n }\r\n\r\n getCity() {\r\n \r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n DistrictId: this.form.value.districtname.DistrictID,\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '5');\r\n var url = \"api/BG/CitiesMaster_Crudcustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n \r\n this.Citydata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for cities //\r\n searchCont2(event) {\r\n\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList2 = [];\r\n for (var i = 0; i < this.Citydata.length; i++) {\r\n let country = this.Citydata[i];\r\n if (country.CityName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList2 = filtered;\r\n }\r\n }\r\n\r\n\r\n \r\n\r\n // drop down for bloodgroup //\r\n searchCont3(event) {\r\n \r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList3 = [];\r\n for (var i = 0; i < this.bloodgroupdata.length; i++) {\r\n let country = this.bloodgroupdata[i];\r\n if (country.BLGName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList3 = filtered;\r\n }\r\n }\r\n\r\n \r\n\r\n detectFiles2(input2) {\r\n \r\n //let arr = [];\r\n //arr.push({ UserID: this.loginDet.Id, TokenID: this.loginDet.TokenID })\r\n const reader = new FileReader();\r\n if (input2.files.length) {\r\n\r\n const file = input2.files[0];\r\n reader.onload = () => {\r\n\r\n this.imagefile2 = reader.result;\r\n this.GalleryImages = this.imagefile2;\r\n }\r\n reader.readAsDataURL(file);\r\n var selectedFile = file;\r\n var idxDot = selectedFile.name.lastIndexOf(\".\") + 1;\r\n var extFile = selectedFile.name.substr(idxDot, selectedFile.name.length).toLowerCase();\r\n if (extFile == \"jpg\" || extFile == \"jpeg\" || extFile == \"png\" || extFile == \"gif\" || extFile == \"webp\") {\r\n\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"UploadedImage\", file);\r\n var url = \"api/BG/UploadGallery\";\r\n this.genralservice.PostData(url, UploadFile).then((data: any) => {\r\n if (data != null) {\r\n \r\n this.imagefile2 = this.HomeUrl + data;\r\n this.GalleryImages = data;\r\n }\r\n });\r\n }\r\n else {\r\n alert(\"Only jpg/jpeg, png, gif, and webp files are allowed!\");\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
Share Your Service \r\n\r\n \r\n
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
{{LoginDetails.FullName.charAt(0)}}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n Sharing your experience and your service is always a reminder and motivitating\r\n factor to someone so, please donot hesitate to share your services below\r\n
\r\n
\r\n It will be desiplayed on the main page of blood donation and its always saved in our\r\n lets-fight data base\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 } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\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(private viewportScroller: ViewportScroller) {}\r\n\r\n public onClick(elementId: string): void { \r\n this.viewportScroller.scrollToAnchor(elementId);\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n}\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-funfacts',\r\n templateUrl: './funfacts.component.html',\r\n styleUrls: ['./funfacts.component.scss']\r\n})\r\nexport class FunfactsComponent implements OnInit {\r\n\r\n constructor(private viewportScroller: ViewportScroller) {}\r\n\r\n public onClick(elementId: string): void { \r\n this.viewportScroller.scrollToAnchor(elementId);\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n}\r\n","\r\n \r\n
\r\n
\r\n
\r\n
\r\n
00 \r\n
Happy Clients
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
00 \r\n
Completed Projects
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
00 \r\n
Winning Awards
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
00 \r\n
Team Members
\r\n
\r\n
\r\n
\r\n
\r\n ","import { Component, OnInit } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-how-we-work',\r\n templateUrl: './how-we-work.component.html',\r\n styleUrls: ['./how-we-work.component.scss']\r\n})\r\nexport class HowWeWorkComponent implements OnInit {\r\n\r\n constructor(private viewportScroller: ViewportScroller) {}\r\n\r\n public onClick(elementId: string): void { \r\n this.viewportScroller.scrollToAnchor(elementId);\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n}\r\n","\r\n \r\n
\r\n
How We Work \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
Planing \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut.
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
Designing \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut.
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
Product Launch \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut.
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n\r\n","import { Component, OnInit, HostListener } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-navbar',\r\n templateUrl: './navbar.component.html',\r\n styleUrls: ['./navbar.component.scss']\r\n})\r\nexport class NavbarComponent implements OnInit {\r\n\r\n constructor(private viewportScroller: ViewportScroller) {}\r\n\r\n // Navbar Sticky\r\n isSticky: boolean = false;\r\n @HostListener('window:scroll', ['$event'])\r\n checkScroll() {\r\n const scrollPosition = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;\r\n if (scrollPosition >= 50) {\r\n this.isSticky = true;\r\n } else {\r\n this.isSticky = false;\r\n }\r\n }\r\n\r\n\r\n public onClick(elementId: string): void { \r\n this.viewportScroller.scrollToAnchor(elementId);\r\n }\r\n\r\n ngOnInit() {}\r\n\r\n classApplied = false;\r\n toggleClass() {\r\n this.classApplied = !this.classApplied;\r\n }\r\n\r\n}\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { OwlOptions } from 'ngx-owl-carousel-o';\r\nimport { ViewportScroller } from '@angular/common';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\n@Component({\r\n selector: 'app-partner',\r\n templateUrl: './partner.component.html',\r\n styleUrls: ['./partner.component.scss']\r\n})\r\nexport class PartnerComponent implements OnInit {\r\n LoginDetails1: any; LoginDetails: any;\r\n constructor(private viewportScroller: ViewportScroller, public router: Router,) {\r\n this.LoginDetails1 = localStorage.getItem(\"LoginDetails\");\r\n this.LoginDetails = JSON.parse(this.LoginDetails1);}\r\n\r\n public onClick(elementId: string): void { \r\n this.viewportScroller.scrollToAnchor(elementId);\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n reg() {\r\n \r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // Route to login page\r\n this.router.navigate(['/Login']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n this.router.navigate(['/Profile']).then(() => { window.location.reload(); });\r\n }\r\n }\r\n vol() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // If LoginDetails is empty or not set, route to the login page\r\n this.router.navigate(['/Volunteerlogin']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n // Assuming roleid is a property of LoginDetails\r\n if ((this.LoginDetails[0].RoleId === 4 && (this.LoginDetails[0].Rolestatus === false || this.LoginDetails[0].Rolestatus === null)) || (this.LoginDetails[0].RoleId === 4 && this.LoginDetails[0].Rolestatus === true) || (this.LoginDetails[0].RoleId === 2 && this.LoginDetails[0].Rolestatus === true)) {\r\n // If roleid is 4, navigate to the '/Volunters' page\r\n this.router.navigate(['/Volunters']);\r\n }\r\n\r\n else if (this.LoginDetails[0].RoleId === 0 && (this.LoginDetails[0].Rolestatus === false)) {\r\n // If roleid is not 4, display an alert message\r\n this.router.navigate(['/Volunteerprofile']);\r\n // alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n else {\r\n this.router.navigate(['/Profile']);\r\n alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n\r\n }\r\n }\r\n partnerSlides: OwlOptions = {\r\n\t\tloop: true,\r\n\t\tnav: false,\r\n\t\tdots: true,\r\n\t\tautoplayHoverPause: true,\r\n\t\tautoplay: true,\r\n\t\tmargin: 30,\r\n\t\tnavText: [\r\n\t\t\t\" \",\r\n\t\t\t\" \"\r\n\t\t],\r\n\t\tresponsive: {\r\n\t\t\t0: {\r\n\t\t\t\titems: 2,\r\n\t\t\t},\r\n\t\t\t576: {\r\n\t\t\t\titems: 3,\r\n\t\t\t},\r\n\t\t\t768: {\r\n\t\t\t\titems: 4,\r\n\t\t\t},\r\n\t\t\t1200: {\r\n\t\t\t\titems: 6,\r\n\t\t\t}\r\n\t\t}\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\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\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 In a bit detailed - \r\n\r\n There are many instances which resulted in registering let's Help domain.\r\n \r\n In 2007, when I was pursuing my education at Kachiguda, I found a mentally retarded woman, who didn’t know to cover her body, sitting at the same place day and night, has no one to take care of. Wanting to help her, I went to Erragada mental hospital, old age homes (at this point I met Sunitha Krishnana of Prajwala), Kachiguda Police Station and when I tried meeting Women and Child Welfare minister, an elderly person has suggested me to visit Human Right Commission which was then headed by Justice Subhashan Reddy which I did and complained. \r\n \r\n Everyone that I have met had greatly appreciated my intention, but no one could help me, not exempting the great Human Rights Commission in this cause.\r\n \r\n \r\n In 2010, I was working in a company in West Maredpally, which is actually a residential apartment, the Watchmen looking after that building has two kids, where both are deaf and dumb, and one is mentally challenged. After talking to their mother, got to know their marriage is behind the genetic disorder. They were poor, can’t afford the medical expenses and in fact, her husband has health issues too. \r\n I and my sister had a couple discussions with Director, Dr. P.Hanumantha Rao and his Daughter of Sweekaar Upkaar , a multi-specialty Rehabilitation Center, and with their kind helping hear, accepted to join the kids in their center and also give their mother a job in the same institution as she passed out class 10th. \r\n When I requested the different teams in my company Ambrosia, many of them has donated money and did hand over to that women.\r\n \r\n \r\n Shawls to the poor in winter, donating little money to orphan homes, nothing is satisfactory. After meeting who are in service for the need, I understood that Government can do limited or no help in this regard and everywhere I go, I see needy people, I’m not financially fit to organize homes nor influence politicians to build them but wanted to do whatever I can. That's where the idea of Let's Help has begun. \r\n Most importantly I realized that there are many people with similar thoughts out there, and getting all under one roof is always a challenge where Lets-fight will play its role. The simple fact is ‘I’ can do less, but we all ‘I’s together can do much. \r\n \r\n\r\n Thank you for taking time to visit this page and registering @ Let's Help.com\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\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { FormGroup, FormControl, AbstractControl, FormBuilder, Validators } from '@angular/forms';\r\n//import { EmailValidators } from 'ngx-validators'\r\n\r\n//import { CookieService } from 'ngx-cookie-service';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\nimport { GeneralService } from '../../../general.service';\r\nimport Swal from 'sweetalert2';\r\nimport { HttpClient, HttpHandler, HttpResponse, HttpRequest } from '@angular/common/http';\r\ndeclare var $;\r\n\r\n@Component({\r\n selector: 'app-preloader',\r\n templateUrl: './preloader.component.html',\r\n styleUrls: ['./preloader.component.scss']\r\n})\r\nexport class PreloaderComponent implements OnInit {\r\n HomeUrl: any;\r\n pwd1: any;\r\n userid: any;\r\n Mobile: any;\r\n OTP: any;\r\n OTPtoMobile: any;\r\n logindata: any;\r\n otpSent: boolean = false;\r\n showLogin: boolean = false;\r\n showLogin1: boolean = true; loginDet: any;\r\n LoginDetails: any; LoginDetails1: any; letter: any;\r\n constructor(public router: Router, public generalService: GeneralService, public http: HttpClient, public activeroute: ActivatedRoute) { //\r\n this.loginDet = JSON.parse(localStorage.getItem(\"LoginDetails\"));\r\n this.LoginDetails1 = localStorage.getItem(\"LoginDetails\");\r\n this.LoginDetails = JSON.parse(this.LoginDetails1);\r\n if (Array.isArray(this.LoginDetails) && this.LoginDetails.length > 0) {\r\n this.letter = this.LoginDetails[0].FullName.charAt(0);\r\n } else if (this.LoginDetails && this.LoginDetails.FullName) {\r\n this.letter = this.LoginDetails.FullName.charAt(0);\r\n } else {\r\n this.letter = '';\r\n }\r\n \r\n this.http.get('../assets/WebService.json').subscribe((data: any) => {\r\n this.HomeUrl = data.Webservice;\r\n });\r\n }\r\n ngOnInit() {\r\n // this.Getsurname();\r\n }\r\n SendOTPtoMobile() {\r\n \r\n if (!this.otpSent && this.Mobile && this.Mobile.length === 10) {\r\n this.OTPtoMobile = Math.floor(1000 + Math.random() * 9000);\r\n var Uploadfile = new FormData();\r\n Uploadfile.append(\"MobileNo\", this.Mobile)\r\n Uploadfile.append(\"OTP\", this.OTPtoMobile)\r\n var url = \"api/BG/SendOtpToMobile\";\r\n this.generalService.PostData(url, Uploadfile).then((data: any) => {\r\n // Set otpSent to true once OTP is sent\r\n this.otpSent = true;\r\n this.showLogin1 = false;\r\n this.showLogin = true;\r\n })\r\n }\r\n }\r\n openLoginModal() {\r\n // Show the modal here\r\n this.router.navigate(['/Login']);\r\n }\r\n\r\n share() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // Route to login page\r\n this.router.navigate(['/Login']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n this.router.navigate(['/Shareyourservices']);\r\n }\r\n }\r\n pro() {\r\n this.router.navigate(['/Profile']);\r\n }\r\n signOut() {\r\n \r\n // Remove the login details from localStorage\r\n localStorage.removeItem('LoginDetails');\r\n window.location.reload();\r\n // Optionally, you might want to perform other sign-out related tasks such as\r\n // navigating the user to the login page, clearing any local state, etc.\r\n }\r\n checkmobile(Mobile) {\r\n \r\n if (Mobile.length == 10) {\r\n if (this.OTPtoMobile == this.OTP) {\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Mobile\", Mobile);\r\n\r\n\r\n var url = 'api/BG/checking_Mobile'\r\n\r\n this.generalService.PostData(url, UploadFile).then(data => {\r\n //this.logindata = JSON.stringify(data[0]);\r\n //localStorage.setItem(\"LoginDetails\", this.logindata);\r\n \r\n if (data != 'NOTEXIST') {\r\n \r\n this.pwd1 = data[0].Password;\r\n this.userid = data[0].ID;\r\n this.router.navigate(['/Profile']).then(() => { window.location.reload(); });\r\n this.logindata = JSON.stringify(data[0]);\r\n localStorage.setItem(\"LoginDetails\", this.logindata);\r\n\r\n }\r\n else {\r\n\r\n this.router.navigate(['/Donersform'])\r\n // this.router.navigate(['/register', { Mobile: this.form.value.Mobile }])\r\n .then(() => {\r\n window.location.reload();\r\n });\r\n }\r\n })\r\n }\r\n }\r\n }\r\n\r\n\r\n showmenu() {\r\n\r\n }\r\n\r\n toggleDropdown() {\r\n const dropdownContent = document.getElementById(\"dropdownContent\");\r\n if (dropdownContent.style.display === \"block\") {\r\n dropdownContent.style.display = \"none\";\r\n } else {\r\n dropdownContent.style.display = \"block\";\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 Let's Help \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 Blood Transfusion \r\n \r\n Blood transfusion is a a crucial medical intervention that involves the transfer of blood or blood products from a healthy donor to a recipient who requires it. This procedure is essential for various medical situations, including surgeries, trauma cases, cancer treatments, childbirth complications, and management of certain medical conditions. \r\n The process of blood transfusion typically begins with a thorough assessment of the recipient's medical history, including their blood type and any potential risk factors for transfusion reactions. It is vital to match the blood type of the donor and recipient to minimize the risk of adverse reactions. The major blood group systems include ABO and Rh(D), which determine compatibility between donor and recipient blood. \r\n Blood transfusion is a crucial medical intervention that involves the transfer of blood or blood products from a healthy donor to a recipient who requires it. This procedure is essential for various medical situations, including surgeries, trauma cases, cancer treatments, childbirth complications, and management of certain medical conditions. \r\n The process of blood transfusion typically begins with a thorough assessment of the recipient's medical history, including their blood type and any potential risk factors for transfusion reactions. It is vital to match the blood type of the donor and recipient to minimize the risk of adverse reactions. The major blood group systems include ABO and Rh(D), which determine compatibility between donor and recipient blood. \r\n Once compatibility is confirmed, blood is collected from a voluntary donor who has undergone screening to ensure the safety of the donated blood. The collected blood is then processed to separate it into various components, including red blood cells, white blood cells, platelets, and plasma. This allows healthcare providers to tailor the transfusion to the specific needs of the recipient. \r\n During the transfusion process, the blood component is administered intravenously into the recipient's bloodstream using a sterile infusion set. Healthcare providers closely monitor the transfusion to watch for any signs of adverse reactions, such as allergic reactions, transfusion-related acute lung injury (TRALI), transfusion-associated circulatory overload (TACO), or hemolytic reactions. \r\n Red blood cell transfusions are commonly used to treat anemia, which is characterized by a deficiency of red blood cells or hemoglobin in the blood. Anemia can result from various medical conditions, including blood loss, chronic diseases, nutritional deficiencies, or bone marrow disorders. By providing additional red blood cells, transfusions help improve oxygen delivery to tissues and alleviate symptoms such as fatigue, weakness, and shortness of breath. \r\n Platelet transfusions are administered to patients with low platelet counts, a condition known as thrombocytopenia. Platelets play a crucial role in blood clotting, and low platelet counts can lead to increased bleeding and difficulty in controlling bleeding, particularly during surgery or following trauma. \r\n Fresh frozen plasma (FFP) transfusions are used to replenish clotting factors in patients with clotting disorders or coagulopathies. FFP contains a mixture of proteins, including clotting factors, albumin, and immunoglobulins, which help restore the balance of coagulation factors and promote blood clotting. \r\n In addition to treating medical conditions, blood transfusions are also integral to supporting patients undergoing certain medical procedures, such as organ transplants, chemotherapy, or major surgeries, where significant blood loss is anticipated. \r\n Overall, blood transfusion is a life-saving intervention that plays a vital role in modern medicine by providing patients with the necessary blood components to restore or maintain their health and well-being. However, it is essential to ensure proper screening, compatibility testing, and monitoring to minimize the risk of complications and ensure the safety and efficacy of transfusion therapy. \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 } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\nimport { GeneralService } from '../../../general.service';\r\n\r\nimport { FormBuilder, FormGroup, Validators, FormControl, AbstractControl } from '@angular/forms';\r\nimport { Injectable } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\n\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { Subject } from 'rxjs';\r\nimport { debounceTime, distinctUntilChanged } from 'rxjs/operators';\r\n\r\n@Component({\r\n selector: 'app-pricing',\r\n templateUrl: './pricing.component.html',\r\n styleUrls: ['./pricing.component.scss']\r\n})\r\nexport class PricingComponent implements OnInit {\r\n HomeUrl: any;\r\n OTP: any;\r\n OTPtoMobile: any;\r\n Mobile1: any;\r\n public form: FormGroup;\r\n SurName: any;\r\n Name: any;\r\n Mobile: any;\r\n\r\n otp: any;\r\n submitAttempt: boolean | undefined;\r\n arr: any;\r\n logindata: any;\r\n surnamedata: any;\r\n selectedSurname: any;\r\n\r\n constructor(public router: Router, public fb: FormBuilder, public generalService: GeneralService, public http: HttpClient, public activeroute: ActivatedRoute) { //\r\n this.logindata = localStorage.getItem('LoginDetails');\r\n this.http.get('../assets/WebService.json').subscribe((data: any) => {\r\n this.HomeUrl = data.Webservice;\r\n });\r\n this.form = fb.group({\r\n FullName: ['', Validators.compose([Validators.required, Validators.minLength(1), Validators.maxLength(20)])],\r\n // Name: ['', Validators.compose([Validators.required, Validators.minLength(3), Validators.maxLength(30)])],\r\n Email: ['', ],\r\n Age: ['', ],\r\n Gender: ['', ],\r\n BloodGroupId: ['', ],\r\n StateId: ['', ],\r\n DistrictId: ['', ],\r\n CityId: ['', ],\r\n Phonenumber: ['', Validators.compose([Validators.required, Validators.minLength(10), Validators.maxLength(10)])],\r\n // otp: ['', Validators.compose([Validators.required, Validators.minLength(10), Validators.maxLength(10)])],\r\n\r\n });\r\n\r\n }\r\n Register() {\r\n this.router.navigate(['/Newprofiledetails']);\r\n }\r\n\r\n\r\n ngOnInit() {\r\n // this.Getsurname();\r\n }\r\n\r\n Getsurname() {\r\n\r\n\r\n var url = \"api/Events/GetSurNames\";\r\n this.generalService.GetData(url).then(data => {\r\n \r\n this.surnamedata = data;\r\n\r\n\r\n\r\n\r\n\r\n // this.filteredDataLength = this.filteredData.length;\r\n }, err => {\r\n this.generalService.ShowAlert('ERROR', 'Something went wrong. Please try again later', 'error');\r\n })\r\n }\r\n\r\n onSurnameSelection(value: string) {\r\n this.selectedSurname = value;\r\n // You can also set the value to your form control here if needed:\r\n // this.Form.controls['Surname'].setValue(value);\r\n }\r\n\r\n onSubmit(value: any) {\r\n ;\r\n this.submitAttempt = true;\r\n this.arr = [];\r\n\r\n // Assuming value contains the form data, make sure to access its properties correctly\r\n this.arr.push({\r\n FullName: value?.FullName, // Check if value is structured correctly\r\n Phonenumber: value?.Phonenumber,\r\n Mobile: value?.Mobile,\r\n Email: value?.Email,\r\n Age: value?.Age,\r\n Gender: value?.Gender,\r\n BloodGroupId: value?.BloodGroupId,\r\n StateId: value?.StateId,\r\n DistrictId: value?.DistrictId,\r\n CityId: value?.CityId,\r\n \r\n // Add other fields as needed\r\n });\r\n\r\n ;\r\n\r\n let formData: FormData = new FormData();\r\n formData.append('Param', JSON.stringify(this.arr));\r\n formData.append('Flag', '1');\r\n const url = \"api/BG/Register_User_Curd\";\r\n\r\n this.generalService.PostData(url, formData).then((data: any) => {\r\n if (data && data) {\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Mobile\", value?.Mobile);\r\n var url = 'api/Events/checking_Mobile';\r\n this.generalService.PostData(url, UploadFile).then((data1: any) => {\r\n this.logindata = JSON.stringify(data1[0]);\r\n localStorage.setItem(\"LoginDetails\", this.logindata);\r\n this.generalService.ShowAlert('Success', 'Your registration completed successfully.', 'success');\r\n localStorage.setItem('userData', JSON.stringify(this.arr));\r\n ;\r\n this.router.navigate(['/Newprofiledetails', { userdet: data }])\r\n\r\n // this.router.navigate(['/Newprofiledetails', { UserDetails: JSON.stringify(this.arr[0].Mobile) }])\r\n .then(() => {\r\n window.location.reload();\r\n });\r\n //this.router.navigate(['/EditProfile', { Mobile: this.form.value.Mobile }]);\r\n // this.navCtrl.pop();\r\n })\r\n }\r\n });\r\n }\r\n\r\n SendOTPtoMobile(value: any) {\r\n \r\n if (value.Phonenumber != null || value.Mobile != undefined) {\r\n if (value.Phonenumber.length == 10) {\r\n \r\n this.OTPtoMobile = Math.floor(1000 + Math.random() * 9000);\r\n var Uploadfile = new FormData();\r\n Uploadfile.append(\"MobileNo\", value.Phonenumber)\r\n Uploadfile.append(\"OTP\", this.OTPtoMobile)\r\n var url = \"api/BG/SendOtpToMobile\";\r\n this.generalService.PostData(url, Uploadfile).then((data: any) => {\r\n\r\n })\r\n }\r\n }\r\n }\r\n\r\n}\r\n\r\nfunction matchingPasswords(arg0: string, arg1: string) {\r\n throw new Error('Function not implemented.');\r\n}\r\n\r\n\r\n","\r\n
\r\n
\r\n
\r\n
\r\n
LETS'S HELP
Together ,for a Nobel Cause.! \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
Registration \r\n
Create your Lets Fight Account \r\n
\r\n Blood donation registration allows you to do the following: \r\n 1. Become a blood donor and start saving life..! \r\n 2. Post a Blood request \r\n 3. Search and view the donor contact information \r\n 4. View the Contact info of the Old age, Blood Banks and Orphan Homes in India \r\n 5. Comment, share and Vote on the social issues \r\n 6. Date of Birth will be hidden, and its only purpose is to calculate your age \r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n\r\n Name* \r\n \r\n rrFullName is required \r\n
\r\n
\r\n Email* \r\n \r\n Email is required \r\n
\r\n
\r\n Age* \r\n \r\n Age is required \r\n
\r\n
\r\n
\r\n
\r\n Mobile number* \r\n \r\n Phonenumber is required \r\n
\r\n
\r\n
\r\n
Send OTP
\r\n\r\n
\r\n
\r\n
\r\n
\r\n OTP* \r\n \r\n
\r\n\r\n
\r\n Gender* \r\n \r\n Gender is required \r\n
\r\n
\r\n BloodGroupId* \r\n \r\n BloodGroupId is required \r\n
\r\n
\r\n StateId* \r\n \r\n StateId is required \r\n
\r\n
\r\n DistrictId* \r\n \r\n DistrictId is required \r\n
\r\n
\r\n CityId* \r\n \r\n CityId is required \r\n
\r\n
\r\n\r\n \r\n
\r\n
\r\n\r\n
\r\n Sign Up \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 } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-services-two',\r\n templateUrl: './services-two.component.html',\r\n styleUrls: ['./services-two.component.scss']\r\n})\r\nexport class ServicesTwoComponent implements OnInit {\r\n\r\n constructor(private viewportScroller: ViewportScroller) {}\r\n\r\n public onClick(elementId: string): void { \r\n this.viewportScroller.scrollToAnchor(elementId);\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n}\r\n","\r\n \r\n
\r\n
Our Services \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
Web Design \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
Branding \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
Marketing Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
Analytics \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
Development \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
Ui & Ux Design \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
Responsive Design \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
Photography \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
Custom Support \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
\r\n
\r\n
\r\n
\r\n
\r\n ","import { Component, OnInit } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-services',\r\n templateUrl: './services.component.html',\r\n styleUrls: ['./services.component.scss']\r\n})\r\nexport class ServicesComponent implements OnInit {\r\n\r\n constructor(private viewportScroller: ViewportScroller) {}\r\n\r\n public onClick(elementId: string): void { \r\n this.viewportScroller.scrollToAnchor(elementId);\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n}\r\n","\r\n
\r\n
\r\n
Our Services \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
Web Design \r\n
Lorem ipsum dolor sit amet consecte, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
\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
Branding \r\n
Lorem ipsum dolor sit amet consecte, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
\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
Marketing \r\n
Lorem ipsum dolor sit amet consecte, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
\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
Analytics \r\n
Lorem ipsum dolor sit amet consecte, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
\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
Development \r\n
Lorem ipsum dolor sit amet consecte, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
\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
Ui & Ux Design \r\n
Lorem ipsum dolor sit amet consecte, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
\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
Responsive Design \r\n
Lorem ipsum dolor sit amet consecte, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
\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
Photography \r\n
Lorem ipsum dolor sit amet consecte, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
\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
Custom Support \r\n
Lorem ipsum dolor sit amet consecte, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
","import { Router, ActivatedRoute } from '@angular/router';\r\nimport { FormGroup, FormControl, AbstractControl, FormBuilder, Validators } from '@angular/forms';\r\n//import { EmailValidators } from 'ngx-validators'\r\n\r\n//import { CookieService } from 'ngx-cookie-service';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\nimport { GeneralService } from '../../../general.service';\r\nimport Swal from 'sweetalert2';\r\nimport { HttpClient, HttpHandler, HttpResponse, HttpRequest } from '@angular/common/http';\r\ndeclare var $;\r\n\r\n@Component({\r\n selector: 'app-skill',\r\n templateUrl: './skill.component.html',\r\n styleUrls: ['./skill.component.scss']\r\n})\r\nexport class SkillComponent implements OnInit {\r\n HomeUrl: any;\r\n pwd1: any;\r\n userid: any;\r\n Mobile: any;\r\n OTP: any;\r\n OTPtoMobile: any;\r\n logindata: any;\r\n otpSent: boolean = false;\r\n showLogin: boolean = false;\r\n showLogin1: boolean = true; loginDet: any;\r\n LoginDetails: any; LoginDetails1: any; letter: any;\r\n constructor(public router: Router, public generalService: GeneralService, public http: HttpClient, public activeroute: ActivatedRoute) { //\r\n this.loginDet = JSON.parse(localStorage.getItem(\"LoginDetails\"));\r\n this.LoginDetails1 = localStorage.getItem(\"LoginDetails\");\r\n this.LoginDetails = JSON.parse(this.LoginDetails1);\r\n if (Array.isArray(this.LoginDetails) && this.LoginDetails.length > 0) {\r\n this.letter = this.LoginDetails[0].FullName.charAt(0);\r\n } else if (this.LoginDetails && this.LoginDetails.FullName) {\r\n this.letter = this.LoginDetails.FullName.charAt(0);\r\n } else {\r\n this.letter = '';\r\n }\r\n \r\n this.http.get('../assets/WebService.json').subscribe((data: any) => {\r\n this.HomeUrl = data.Webservice;\r\n });\r\n }\r\n ngOnInit() {\r\n // this.Getsurname();\r\n }\r\n SendOTPtoMobile() {\r\n \r\n if (!this.otpSent && this.Mobile && this.Mobile.length === 10) {\r\n this.OTPtoMobile = Math.floor(1000 + Math.random() * 9000);\r\n var Uploadfile = new FormData();\r\n Uploadfile.append(\"MobileNo\", this.Mobile)\r\n Uploadfile.append(\"OTP\", this.OTPtoMobile)\r\n var url = \"api/BG/SendOtpToMobile\";\r\n this.generalService.PostData(url, Uploadfile).then((data: any) => {\r\n // Set otpSent to true once OTP is sent\r\n this.otpSent = true;\r\n this.showLogin1 = false;\r\n this.showLogin = true;\r\n })\r\n }\r\n }\r\n openLoginModal() {\r\n // Show the modal here\r\n this.router.navigate(['/Login']);\r\n }\r\n\r\n share() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // Route to login page\r\n this.router.navigate(['/Login']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n this.router.navigate(['/Shareyourservices']);\r\n }\r\n }\r\n pro() {\r\n this.router.navigate(['/Profile']);\r\n }\r\n signOut() {\r\n \r\n // Remove the login details from localStorage\r\n localStorage.removeItem('LoginDetails');\r\n window.location.reload();\r\n // Optionally, you might want to perform other sign-out related tasks such as\r\n // navigating the user to the login page, clearing any local state, etc.\r\n }\r\n checkmobile(Mobile) {\r\n \r\n if (Mobile.length == 10) {\r\n if (this.OTPtoMobile == this.OTP) {\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Mobile\", Mobile);\r\n\r\n\r\n var url = 'api/BG/checking_Mobile'\r\n\r\n this.generalService.PostData(url, UploadFile).then(data => {\r\n //this.logindata = JSON.stringify(data[0]);\r\n //localStorage.setItem(\"LoginDetails\", this.logindata);\r\n \r\n if (data != 'NOTEXIST') {\r\n \r\n this.pwd1 = data[0].Password;\r\n this.userid = data[0].ID;\r\n this.router.navigate(['/Profile']).then(() => { window.location.reload(); });\r\n this.logindata = JSON.stringify(data[0]);\r\n localStorage.setItem(\"LoginDetails\", this.logindata);\r\n\r\n }\r\n else {\r\n\r\n this.router.navigate(['/Donersform'])\r\n // this.router.navigate(['/register', { Mobile: this.form.value.Mobile }])\r\n .then(() => {\r\n window.location.reload();\r\n });\r\n }\r\n })\r\n }\r\n }\r\n }\r\n\r\n\r\n showmenu() {\r\n\r\n }\r\n\r\n toggleDropdown() {\r\n const dropdownContent = document.getElementById(\"dropdownContent\");\r\n if (dropdownContent.style.display === \"block\") {\r\n dropdownContent.style.display = \"none\";\r\n } else {\r\n dropdownContent.style.display = \"block\";\r\n }\r\n }\r\n\r\n}\r\n","\r\n\r\n\r\n \r\n \r\n \r\n \r\n Let's Help \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 Iron and blood donation \r\n \r\n \r\n Iron and blood donation are intricately connected processes, as regular blood donation can impact the iron levels in the donor's body. Here's a deeper explanation:\r\n \r\n \r\n When an individual donates blood, they are essentially giving a portion of their red blood cells to help others in need. Each donation results in the loss of some iron-containing hemoglobin from the donor's body. As a result, frequent blood donation can lead to a gradual decrease in the donor's iron stores over time.\r\n \r\n \r\n For many blood donors, especially those who donate regularly, maintaining optimal iron levels becomes important to prevent iron deficiency anemia, a condition characterized by low levels of hemoglobin and insufficient oxygen transport capacity in the blood. Iron deficiency anemia can lead to symptoms such as fatigue, weakness, dizziness, pale skin, and shortness of breath.\r\n \r\n \r\n To address the potential impact of blood donation on iron levels, blood donation centers often provide guidance on iron supplementation and dietary recommendations to donors. Iron supplements or dietary changes rich in iron, such as consuming red meat, poultry, fish, leafy greens, legumes, and iron-fortified foods, can help replenish iron stores and maintain adequate hemoglobin levels.\r\n \r\n \r\n However, it's essential for donors to consult with healthcare professionals before starting iron supplementation, as excessive iron intake can lead to adverse effects and complications, particularly in individuals with certain medical conditions or genetic predispositions.\r\n \r\n \r\n Furthermore, blood donation centers typically implement measures to ensure the health and safety of donors, including screening for eligibility criteria based on hemoglobin levels and providing post-donation care instructions to minimize the risk of iron depletion and associated health concerns.\r\n \r\n \r\n In summary, while blood donation is a noble act that saves lives and contributes to the well-being of others, it's essential for donors to be aware of the potential impact on their iron levels and take proactive steps to maintain optimal iron status through appropriate supplementation and dietary choices, thereby supporting their own health while continuing to donate blood altruistically.\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 { Router, ActivatedRoute } from '@angular/router';\r\nimport { FormGroup, FormControl, AbstractControl, FormBuilder, Validators } from '@angular/forms';\r\n//import { EmailValidators } from 'ngx-validators'\r\n\r\n//import { CookieService } from 'ngx-cookie-service';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\nimport { GeneralService } from '../../../general.service';\r\nimport Swal from 'sweetalert2';\r\nimport { HttpClient, HttpHandler, HttpResponse, HttpRequest } from '@angular/common/http';\r\ndeclare var $;\r\n\r\n@Component({\r\n selector: 'app-strategy',\r\n templateUrl: './strategy.component.html',\r\n styleUrls: ['./strategy.component.scss']\r\n})\r\nexport class StrategyComponent implements OnInit {\r\n\r\n HomeUrl: any;\r\n pwd1: any;\r\n userid: any;\r\n Mobile: any;\r\n OTP: any;\r\n OTPtoMobile: any;\r\n logindata: any;\r\n otpSent: boolean = false;\r\n showLogin: boolean = false;\r\n showLogin1: boolean = true; loginDet: any;\r\n LoginDetails: any; LoginDetails1: any; letter: any;\r\n constructor(public router: Router, public generalService: GeneralService, public http: HttpClient, public activeroute: ActivatedRoute) { //\r\n this.loginDet = JSON.parse(localStorage.getItem(\"LoginDetails\"));\r\n this.LoginDetails1 = localStorage.getItem(\"LoginDetails\");\r\n this.LoginDetails = JSON.parse(this.LoginDetails1);\r\n if (Array.isArray(this.LoginDetails) && this.LoginDetails.length > 0) {\r\n this.letter = this.LoginDetails[0].FullName.charAt(0);\r\n } else if (this.LoginDetails && this.LoginDetails.FullName) {\r\n this.letter = this.LoginDetails.FullName.charAt(0);\r\n } else {\r\n this.letter = '';\r\n }\r\n \r\n this.http.get('../assets/WebService.json').subscribe((data: any) => {\r\n this.HomeUrl = data.Webservice;\r\n });\r\n }\r\n ngOnInit() {\r\n // this.Getsurname();\r\n }\r\n SendOTPtoMobile() {\r\n \r\n if (!this.otpSent && this.Mobile && this.Mobile.length === 10) {\r\n this.OTPtoMobile = Math.floor(1000 + Math.random() * 9000);\r\n var Uploadfile = new FormData();\r\n Uploadfile.append(\"MobileNo\", this.Mobile)\r\n Uploadfile.append(\"OTP\", this.OTPtoMobile)\r\n var url = \"api/BG/SendOtpToMobile\";\r\n this.generalService.PostData(url, Uploadfile).then((data: any) => {\r\n // Set otpSent to true once OTP is sent\r\n this.otpSent = true;\r\n this.showLogin1 = false;\r\n this.showLogin = true;\r\n })\r\n }\r\n }\r\n openLoginModal() {\r\n // Show the modal here\r\n this.router.navigate(['/Login']);\r\n }\r\n\r\n share() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // Route to login page\r\n this.router.navigate(['/Login']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n this.router.navigate(['/Shareyourservices']);\r\n }\r\n }\r\n pro() {\r\n this.router.navigate(['/Profile']);\r\n }\r\n signOut() {\r\n \r\n // Remove the login details from localStorage\r\n localStorage.removeItem('LoginDetails');\r\n window.location.reload();\r\n // Optionally, you might want to perform other sign-out related tasks such as\r\n // navigating the user to the login page, clearing any local state, etc.\r\n }\r\n checkmobile(Mobile) {\r\n \r\n if (Mobile.length == 10) {\r\n if (this.OTPtoMobile == this.OTP) {\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Mobile\", Mobile);\r\n\r\n\r\n var url = 'api/BG/checking_Mobile'\r\n\r\n this.generalService.PostData(url, UploadFile).then(data => {\r\n //this.logindata = JSON.stringify(data[0]);\r\n //localStorage.setItem(\"LoginDetails\", this.logindata);\r\n \r\n if (data != 'NOTEXIST') {\r\n \r\n this.pwd1 = data[0].Password;\r\n this.userid = data[0].ID;\r\n this.router.navigate(['/Profile']).then(() => { window.location.reload(); });\r\n this.logindata = JSON.stringify(data[0]);\r\n localStorage.setItem(\"LoginDetails\", this.logindata);\r\n\r\n }\r\n else {\r\n\r\n this.router.navigate(['/Donersform'])\r\n // this.router.navigate(['/register', { Mobile: this.form.value.Mobile }])\r\n .then(() => {\r\n window.location.reload();\r\n });\r\n }\r\n })\r\n }\r\n }\r\n }\r\n\r\n\r\n showmenu() {\r\n\r\n }\r\n\r\n toggleDropdown() {\r\n const dropdownContent = document.getElementById(\"dropdownContent\");\r\n if (dropdownContent.style.display === \"block\") {\r\n dropdownContent.style.display = \"none\";\r\n } else {\r\n dropdownContent.style.display = \"block\";\r\n }\r\n }\r\n\r\n}\r\n","\r\n\r\n\r\n \r\n \r\n \r\n \r\n Let's Help \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 Blood and blood diversity \r\n\r\n \r\n \r\n Blood and blood diversity encompass a wide array of factors that contribute to the complexity and uniqueness of this vital bodily fluid. Here's a deeper explanation:\r\n \r\n \r\n Blood Types: The ABO blood group system, along with the Rh factor (positive or negative), are the most well-known blood type classifications. Blood types are determined by specific antigens present on the surface of red blood cells. These antigens can trigger immune responses if they are foreign to the recipient's body, making blood type matching crucial for safe transfusions.\r\n \r\n \r\n Genetic Diversity: Blood exhibits considerable genetic diversity among individuals and populations. Genetic variations influence not only blood type but also other factors such as hemoglobin structure, immune system components, and susceptibility to certain diseases. Understanding this diversity is essential for personalized medicine and population health studies.\r\n \r\n \r\n Ethnic and Racial Diversity: Different ethnic and racial groups may have varying distributions of blood types and genetic markers. For example, certain blood types may be more prevalent in specific populations. Understanding these differences is critical for ensuring equitable access to blood transfusions and healthcare services.\r\n \r\n \r\n Immunological Diversity: The immune system plays a crucial role in blood compatibility and transfusion safety. Individuals can develop antibodies against specific blood antigens through exposure to foreign blood or during pregnancy. This immunological diversity influences the selection of compatible blood donors and recipients to prevent transfusion reactions.\r\n \r\n \r\n Biological Functions: Blood serves multiple essential functions in the body, including oxygen transport, nutrient delivery, waste removal, immune defense, and clotting. The diversity of blood components, such as red blood cells, white blood cells, platelets, and plasma proteins, enables these complex biological processes to occur efficiently.\r\n \r\n \r\n Medical Relevance: Blood diversity has significant implications for medical practice, particularly in the fields of transfusion medicine, hematology, and immunology. Understanding blood diversity helps healthcare professionals make informed decisions regarding blood transfusions, organ transplants, disease diagnosis, and treatment strategies tailored to individual patients.\r\n \r\n \r\n Cultural and Social Contexts: Blood holds cultural and symbolic significance in many societies worldwide, often associated with notions of identity, ancestry, and community. Cultural beliefs and practices regarding blood donation, transfusion, and medical care can vary widely across different cultures and may influence healthcare-seeking behaviors.\r\n \r\n \r\n In summary, blood and its diversity represent a complex interplay of genetic, immunological, biological, cultural, and social factors. Recognizing and understanding this diversity is essential for ensuring the safety and efficacy of blood transfusions, advancing medical research and healthcare practices, and promoting cultural sensitivity and equity in healthcare delivery.\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 } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-subscribe',\r\n templateUrl: './subscribe.component.html',\r\n styleUrls: ['./subscribe.component.scss']\r\n})\r\nexport class SubscribeComponent implements OnInit {\r\n\r\n constructor(private viewportScroller: ViewportScroller) {}\r\n\r\n public onClick(elementId: string): void { \r\n this.viewportScroller.scrollToAnchor(elementId);\r\n }\r\n\r\n ngOnInit() {\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
Post A Blood Request
\r\n
\r\n
\r\n
Share Your services
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n Lets-Fight Gallery\r\n
\r\n
\r\n
\r\n
\r\n RECENT OLD AGE SERVICES\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Welcome to the largest Blood Donars in India \r\n
At Let's help, we understand the critical need for blood donations to save lives. Our blood donor network is dedicated to connecting generous individuals with those in need of life-saving blood transfusions.
\r\n
Every two seconds, someone in the world requires blood. By donating blood, you have the power to make a direct impact on the lives of patients facing medical emergencies, undergoing surgeries, or battling life-threatening conditions such as cancer or anemia. Your donation can mean the difference between life and death for someone in need.
\r\n
\r\n
\r\n\r\n
\r\n
\r\n","import { Router, ActivatedRoute } from '@angular/router';\r\nimport { FormGroup, FormControl, AbstractControl, FormBuilder, Validators } from '@angular/forms';\r\n//import { EmailValidators } from 'ngx-validators'\r\n\r\n//import { CookieService } from 'ngx-cookie-service';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\nimport { GeneralService } from '../../../general.service';\r\nimport Swal from 'sweetalert2';\r\nimport { HttpClient, HttpHandler, HttpResponse, HttpRequest } from '@angular/common/http';\r\ndeclare var $;\r\n\r\n@Component({\r\n selector: 'app-team',\r\n templateUrl: './team.component.html',\r\n styleUrls: ['./team.component.scss']\r\n})\r\nexport class TeamComponent implements OnInit {\r\n\r\n HomeUrl: any;\r\n pwd1: any;\r\n userid: any;\r\n Mobile: any;\r\n OTP: any;\r\n OTPtoMobile: any;\r\n logindata: any;\r\n otpSent: boolean = false;\r\n showLogin: boolean = false;\r\n showLogin1: boolean = true; loginDet: any; letter: any;\r\n LoginDetails: any; LoginDetails1: any;\r\n constructor(public router: Router, public generalService: GeneralService, public http: HttpClient, public activeroute: ActivatedRoute) { //\r\n this.loginDet = JSON.parse(localStorage.getItem(\"LoginDetails\"));\r\n this.LoginDetails1 = localStorage.getItem(\"LoginDetails\");\r\n this.LoginDetails = JSON.parse(this.LoginDetails1);\r\n if (Array.isArray(this.LoginDetails) && this.LoginDetails.length > 0) {\r\n this.letter = this.LoginDetails[0].FullName.charAt(0);\r\n } else if (this.LoginDetails && this.LoginDetails.FullName) {\r\n this.letter = this.LoginDetails.FullName.charAt(0);\r\n } else {\r\n this.letter = '';\r\n }\r\n debugger\r\n this.http.get('../assets/WebService.json').subscribe((data: any) => {\r\n this.HomeUrl = data.Webservice;\r\n });\r\n }\r\n ngOnInit() {\r\n // this.Getsurname();\r\n }\r\n SendOTPtoMobile() {\r\n debugger\r\n if (!this.otpSent && this.Mobile && this.Mobile.length === 10) {\r\n this.OTPtoMobile = Math.floor(1000 + Math.random() * 9000);\r\n var Uploadfile = new FormData();\r\n Uploadfile.append(\"MobileNo\", this.Mobile)\r\n Uploadfile.append(\"OTP\", this.OTPtoMobile)\r\n var url = \"api/BG/SendOtpToMobile\";\r\n this.generalService.PostData(url, Uploadfile).then((data: any) => {\r\n // Set otpSent to true once OTP is sent\r\n this.otpSent = true;\r\n this.showLogin1 = false;\r\n this.showLogin = true;\r\n })\r\n }\r\n }\r\n openLoginModal() {\r\n // Show the modal here\r\n this.router.navigate(['/Login']);\r\n }\r\n\r\n share() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // Route to login page\r\n this.router.navigate(['/Login']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n this.router.navigate(['/Shareyourservices']);\r\n }\r\n }\r\n pro() {\r\n this.router.navigate(['/Profile']);\r\n }\r\n signOut() {\r\n debugger\r\n // Remove the login details from localStorage\r\n localStorage.removeItem('LoginDetails');\r\n window.location.reload();\r\n // Optionally, you might want to perform other sign-out related tasks such as\r\n // navigating the user to the login page, clearing any local state, etc.\r\n }\r\n checkmobile(Mobile) {\r\n debugger\r\n if (Mobile.length == 10) {\r\n if (this.OTPtoMobile == this.OTP) {\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Mobile\", Mobile);\r\n\r\n\r\n var url = 'api/BG/checking_Mobile'\r\n\r\n this.generalService.PostData(url, UploadFile).then(data => {\r\n //this.logindata = JSON.stringify(data[0]);\r\n //localStorage.setItem(\"LoginDetails\", this.logindata);\r\n debugger\r\n if (data != 'NOTEXIST') {\r\n debugger\r\n this.pwd1 = data[0].Password;\r\n this.userid = data[0].ID;\r\n this.router.navigate(['/Profile']).then(() => { window.location.reload(); });\r\n this.logindata = JSON.stringify(data[0]);\r\n localStorage.setItem(\"LoginDetails\", this.logindata);\r\n\r\n }\r\n else {\r\n\r\n this.router.navigate(['/Donersform'])\r\n // this.router.navigate(['/register', { Mobile: this.form.value.Mobile }])\r\n .then(() => {\r\n window.location.reload();\r\n });\r\n }\r\n })\r\n }\r\n }\r\n }\r\n\r\n\r\n showmenu() {\r\n\r\n }\r\n\r\n toggleDropdown() {\r\n const dropdownContent = document.getElementById(\"dropdownContent\");\r\n if (dropdownContent.style.display === \"block\") {\r\n dropdownContent.style.display = \"none\";\r\n } else {\r\n dropdownContent.style.display = \"block\";\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 Let's Help \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 Health and wellness \r\n \r\n \r\n Health and wellness encompass multifaceted dimensions of overall well-being, extending beyond mere absence of illness to encompass physical, mental, emotional, social, and even spiritual aspects of health. Here's a deep exploration:\r\n \r\n \r\n Physical Health: Physical health relates to the proper functioning of the body and its systems. It includes factors such as nutrition, exercise, sleep, hygiene, and regular medical check-ups. Maintaining physical health involves adopting healthy lifestyle habits, such as balanced diet, regular exercise, avoiding harmful substances like tobacco and excessive alcohol, and managing chronic conditions effectively.\r\n \r\n \r\n Mental Health: Mental health refers to emotional, psychological, and cognitive well-being. It involves how individuals think, feel, and cope with life's challenges. Promoting mental health includes managing stress, practicing self-care and relaxation techniques, seeking support when needed, and addressing mental health disorders through therapy, counseling, or medication.\r\n \r\n \r\n Emotional Health: Emotional health involves understanding and managing one's emotions in a healthy and constructive manner. It includes recognizing and expressing feelings, building resilience, fostering positive relationships, and developing coping strategies to navigate life's ups and downs effectively.\r\n \r\n \r\n Social Health: Social health relates to the quality of interactions and relationships with others. It encompasses aspects such as communication skills, empathy, social support networks, and a sense of belonging and connectedness within communities. Cultivating social health involves building and maintaining meaningful relationships, contributing to social causes, and fostering a sense of community and inclusion.\r\n \r\n Environmental Health: Environmental health focuses on the impact of the external environment on individual and community well-being. It includes factors such as access to clean air, water, and food, exposure to pollutants and toxins, and the sustainability of natural resources. Protecting environmental health involves promoting environmental stewardship, sustainable practices, and advocating for policies that ensure a safe and healthy environment for all.\r\n \r\n \r\n Occupational Health: Occupational health pertains to the well-being of individuals in their work environments. It involves promoting safe and healthy working conditions, preventing work-related injuries and illnesses, managing occupational hazards, and supporting work-life balance and employee well-being initiatives.\r\n \r\n \r\n Spiritual Health: Spiritual health relates to a sense of purpose, meaning, and connection to something greater than oneself. It encompasses beliefs, values, ethics, and existential questions about life's purpose and significance. Cultivating spiritual health involves practices such as meditation, prayer, reflection, mindfulness, and engaging in activities that align with one's values and beliefs.\r\n \r\n \r\n Holistic Approach: Health and wellness are best approached holistically, considering the interconnectedness of various dimensions of well-being. Adopting a holistic approach involves addressing physical, mental, emotional, social, and spiritual needs in a balanced and integrated manner. It emphasizes preventive care, self-awareness, self-care, and proactive efforts to promote overall health and vitality across the lifespan.\r\n \r\n \r\n In conclusion, health and wellness encompass a comprehensive understanding of individual and collective well-being, incorporating physical, mental, emotional, social, environmental, occupational, and spiritual dimensions. Striving for optimal health and wellness involves nurturing these dimensions through healthy lifestyle choices, supportive environments, and holistic approaches to care and self-care.\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 } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-welcome',\r\n templateUrl: './welcome.component.html',\r\n styleUrls: ['./welcome.component.scss']\r\n})\r\nexport class WelcomeComponent implements OnInit {\r\n\r\n constructor(private viewportScroller: ViewportScroller) {}\r\n\r\n public onClick(elementId: string): void { \r\n this.viewportScroller.scrollToAnchor(elementId);\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n}\r\n","\r\n
\r\n
\r\n
Empowering Lives Through Lifesaving Acts \r\n Welcome to Let's help \r\n \r\n\r\n
\r\n
\r\n
At Blood Donation, we are dedicated to saving lives through the selfless act of blood donation. Every day, countless individuals rely on donated blood to recover from illness, injury, and surgery. Your decision to donate blood can make a profound difference in someone's life.
\r\n
\r\n Join us in our mission to ensure a stable and safe blood supply for those in need. Whether you're a first-time donor or a regular supporter, your contribution is invaluable and deeply appreciated.\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Explore our website to learn more about the donation process, find donation centers near you, and discover how you can get involved in our lifesaving efforts.
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
A Ray Of Hope \r\n
In a world often fraught with challenges and uncertainties, blood donation stands as a beacon of hope, illuminating the darkest of days with its lifesaving potential. Each donation represents a ray of hope, a chance for someone in need to find solace, healing, and renewed strength.
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
Blood Donation \r\n
where every drop counts in the journey to save lives. We believe in the profound impact of each donation, as it holds the power to heal, restore, and uplift those in need. By donating blood, you become a lifeline for individuals battling illness, injury, and undergoing medical procedures.
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
Be A Support \r\n
you play a vital role in raising awareness, organizing donation drives, and providing comfort to individuals and families affected by medical emergencies. Your dedication helps ensure a steady supply of blood for hospitals and patients in critical need.
\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 { ViewportScroller } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-who-we-are',\r\n templateUrl: './who-we-are.component.html',\r\n styleUrls: ['./who-we-are.component.scss']\r\n})\r\nexport class WhoWeAreComponent implements OnInit {\r\n\r\n constructor(private viewportScroller: ViewportScroller) {}\r\n\r\n public onClick(elementId: string): void { \r\n this.viewportScroller.scrollToAnchor(elementId);\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n}\r\n","\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Register for Donating Blood \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
Newsletter
\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 { ViewportScroller } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-why-we-different',\r\n templateUrl: './why-we-different.component.html',\r\n styleUrls: ['./why-we-different.component.scss']\r\n})\r\nexport class WhyWeDifferentComponent implements OnInit {\r\n\r\n constructor(private viewportScroller: ViewportScroller) {}\r\n\r\n public onClick(elementId: string): void { \r\n this.viewportScroller.scrollToAnchor(elementId);\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n}\r\n","\r\n
\r\n
\r\n
Why We Are Different \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\r\n
\r\n
\r\n \r\n
\r\n
Speed , flexibility \r\n \r\n
\r\n
Profeesional work \r\n \r\n
\r\n
Experienced Staff \r\n \r\n
\r\n
Custom Support \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Speed , flexibility \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco.
\r\n
\r\n Creative Design \r\n Retina Ready \r\n Responsive Design \r\n Modern Design \r\n Awesome Design \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
Profeesional work \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco.
\r\n
\r\n Creative Design \r\n Retina Ready \r\n Responsive Design \r\n Modern Design \r\n Awesome Design \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
Experienced staff \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco.
\r\n
\r\n Creative Design \r\n Retina Ready \r\n Responsive Design \r\n Modern Design \r\n Awesome Design \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
24/7 support \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco.
\r\n
\r\n Creative Design \r\n Retina Ready \r\n Responsive Design \r\n Modern Design \r\n Awesome Design \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 { ViewportScroller } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-work',\r\n templateUrl: './work.component.html',\r\n styleUrls: ['./work.component.scss']\r\n})\r\nexport class WorkComponent implements OnInit {\r\n\r\n constructor(private viewportScroller: ViewportScroller) {}\r\n\r\n public onClick(elementId: string): void { \r\n this.viewportScroller.scrollToAnchor(elementId);\r\n }\r\n\r\n ngOnInit() {}\r\n\r\n // for tab click event\r\n currentTab = 'tab1';\r\n switchTab(event: MouseEvent, tab: string) {\r\n event.preventDefault();\r\n this.currentTab = tab;\r\n }\r\n\r\n}","\r\n
\r\n
\r\n
Our Work \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n All\r\n \r\n \r\n \r\n \r\n OldAge Homes\r\n \r\n \r\n \r\n \r\n Orphanage Homes\r\n \r\n \r\n \r\n \r\n Blood Banks\r\n \r\n \r\n \r\n \r\n Photoshop\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Creative Design \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Games Design \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Creative Design \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Creative Design \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Creative Design \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Creative Design \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
Creative Design \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Creative Design \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
Creative Design \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Games Design \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
Games Design \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Creative Design \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
Creative Design \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Creative Design \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, ViewChild, ElementRef, NgZone, ViewEncapsulation } from '@angular/core';\r\nimport { GeneralService } from '../../general.service';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { FormBuilder, FormControl, Validators, FormGroup, ReactiveFormsModule } from '@angular/forms';\r\n//import { MapsAPILoader, MouseEvent } from '@agm/core';\r\ndeclare var $: any\r\nimport { DatePipe } from '@angular/common';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\n@Component({\r\n selector: 'app-donersform',\r\n templateUrl: './donersform.component.html',\r\n styleUrls: ['./donersform.component.scss']\r\n})\r\nexport class DonersformComponent {\r\n public form: FormGroup;\r\n arr: any = [];\r\n districtdata: any = [];\r\n deptList: any;\r\n flag: any;\r\n Statedata: any = [];\r\n Citydata: any = [];\r\n deptList1: any;\r\n deptList2: any; bloodgroupdata: any = [];\r\n deptList3: any;\r\n subDropdownStyle: { [key: string]: string } = {};\r\n isMouseOverSubDropdown: boolean = false;\r\n showDropdownContent = false;\r\n selectedBloodgroup: string = '';\r\n selectedGender: string | null = null;\r\n latitude: any;\r\n longitude: any;\r\n lat: any; selectedpast: string;\r\n long: any;\r\n zoom: number;\r\n address: string;\r\n Dropaddress: string; activeCardIndex: number = -1;\r\n private geoCoder;\r\n map: boolean\r\n @ViewChild('search')\r\n public searchElementRef: ElementRef;\r\n trip: any; Address: any;\r\n profiledata: any;\r\n LoginDetails1: any; LoginDetails: any;\r\n Lastdonatedate: any;\r\n loginDet: any;\r\n logindata: any;\r\n modalVisible: boolean;\r\n constructor(public genralservice: GeneralService, public http: HttpClient, private datePipe: DatePipe,public fb: FormBuilder, public router: Router,\r\n ) {\r\n //this.loginDet = JSON.parse(localStorage.getItem(\"LoginDetails\"));\r\n this.LoginDetails1 = localStorage.getItem(\"LoginDetails\");\r\n this.LoginDetails = JSON.parse(this.LoginDetails1);\r\n\r\n this.form = this.fb.group({\r\n // Define your form controls here\r\n username: ['', Validators.required],\r\n mobile: ['', Validators.required],\r\n email: ['', Validators.required],\r\n Gender: ['',],\r\n DOB: ['',],\r\n PastDonation: ['',],\r\n age: [''],\r\n // unitsofblood: [''],\r\n bloodgroup: ['', Validators.required],\r\n statename: [''],\r\n districtname: [''],\r\n cityname: [''],\r\n useraddress: [''],\r\n area: [''],\r\n Weight: [''],\r\n Lastdonatedate: [''],\r\n Pincode: [''],\r\n Messagetorequester: [''],\r\n termsAndConditions: [false, Validators.requiredTrue],\r\n eligibilityCriteria: [false, Validators.requiredTrue]\r\n });\r\n\r\n\r\n }\r\n\r\n\r\n ngOnInit(): void {\r\n \r\n\r\n this.getProfileAndBindFormData();\r\n this.getBloodgroup();\r\n this.getstate();\r\n this.getDistrict();\r\n this.getCity();\r\n \r\n }\r\n\r\n downloadlogo() {\r\n ;\r\n // Assuming value is boolean\r\n this.router.navigate(['/Downloadsbrouchers']).then(() => { window.location.reload(); });\r\n }\r\n handleClick(index: number) {\r\n if (this.activeCardIndex === index) {\r\n this.activeCardIndex = -1; // Toggle off if same card clicked again\r\n } else {\r\n this.activeCardIndex = index;\r\n }\r\n }\r\n toggleSocialMedia(value: number) {\r\n // Update showSocialMedia variable\r\n this.router.navigate(['/Brochures']).then(() => { window.location.reload(); });\r\n }\r\n reg() {\r\n \r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // Route to login page\r\n this.router.navigate(['/Login']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n this.router.navigate(['/Profile']).then(() => { window.location.reload(); });\r\n }\r\n }\r\n async getProfileAndBindFormData() {\r\n try {\r\n const profileData = await this.getprofile();\r\n // Assuming `getprofile()` returns `null` or some default value when no profile data is available\r\n if (profileData !== null) {\r\n this.bindFormData(profileData);\r\n } else {\r\n // Handle case where profile data is not available\r\n }\r\n } catch (error) {\r\n console.error('Error fetching profile data:', error);\r\n // Handle error appropriately, e.g., show error message to user\r\n }\r\n }\r\n\r\n checkFormValidity() {\r\n // Check if all form controls are valid\r\n this.form.updateValueAndValidity();\r\n }\r\n openLoginModal() {\r\n // Show the modal here\r\n $('#myModal').modal('show');\r\n }\r\n openLoginModal1() {\r\n // Show the modal here\r\n $('#myModal1').modal('show');\r\n }\r\n closeModal() {\r\n // this.modalVisible = false;\r\n $('#myModal').modal('hide');\r\n }\r\n \r\n\r\n getprofile() {\r\n ;\r\n this.arr = [];\r\n this.arr.push({});\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Mobile\", this.LoginDetails ? (this.LoginDetails.Phonenumber || (this.LoginDetails[0] && this.LoginDetails[0].Phonenumber)) : '');\r\n\r\n var url = \"api/BG/checking_Mobile\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n \r\n this.profiledata = data;\r\n this.bindFormData(this.profiledata);\r\n localStorage.setItem(\"LoginDetails\", JSON.stringify(this.profiledata));\r\n\r\n this.LoginDetails = this.profiledata;// Call bindFormData with the received data\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error');\r\n });\r\n }\r\n\r\n\r\n bindFormData(data) {\r\n \r\n if (data) {\r\n \r\n this.selectedGender = data[0].Gender;\r\n this.selectedpast = data[0].PastDonation;\r\n const lastDonateDate = data[0].Lastdonatedate && !isNaN(Date.parse(data[0].Lastdonatedate)) ?\r\n this.datePipe.transform(new Date(data[0].Lastdonatedate), 'yyyy-MM-dd') : null;\r\n\r\n const dob = data[0].DOB && !isNaN(Date.parse(data[0].DOB)) ?\r\n this.datePipe.transform(new Date(data[0].DOB), 'yyyy-MM-dd') : null;\r\n\r\n \r\n this.form.patchValue({\r\n\r\n username: data[0].FullName,\r\n mobile: data[0].Phonenumber,\r\n email: data[0].Email,\r\n age: data[0].Age,\r\n bloodgroup: data[0].BLGName,\r\n BloodGroupId: data[0].BLGId,\r\n statename: data[0].StateName,\r\n StateId: data[0].StateId,\r\n districtname: data[0].DistrictName,\r\n DistrictId: data[0].DistrictId,\r\n cityname: data[0].CityName,\r\n CityId: data[0].CityId,\r\n useraddress: data[0].UserAddress,\r\n area: data[0].Area,\r\n Status: data[0].Status,\r\n Weight: data[0].Weight,\r\n Pincode: data[0].Pincode,\r\n DoB: dob,\r\n Lastdonatedate: lastDonateDate,\r\n Messagetorequester: data[0].Messagetorequester\r\n });\r\n }\r\n }\r\n\r\n\r\n Donersform() {\r\n if (!this.form.value.username || !this.form.value.mobile || !this.form.value.bloodgroup || !this.form.value.Weight || !this.form.value.age || !this.form.value.Pincode || this.selectedGender === \"\" ||\r\n this.selectedpast === \"\") {\r\n this.genralservice.ShowAlert(\"ERROR\", 'Please fill all required fields', 'error');\r\n return; // Stop further execution of the method\r\n }\r\n\r\n ;\r\n this.arr = [];\r\n const bloodgroup = this.form.value.bloodgroup && this.form.value.bloodgroup.BLGId !== undefined\r\n ? this.form.value.bloodgroup.BLGId\r\n : this.LoginDetails.BLGId !== undefined\r\n ? this.LoginDetails.BLGId\r\n : this.LoginDetails.BloodGroupId;\r\n\r\n const stateId = this.form.value.statename && this.form.value.statename.StateId !== undefined\r\n ? this.form.value.statename.StateId\r\n : this.LoginDetails.StateId !== undefined\r\n ? this.LoginDetails.StateId\r\n : this.LoginDetails.StateID;\r\n\r\n const districtId = this.form.value.districtname && this.form.value.districtname.DistrictID !== undefined\r\n ? this.form.value.districtname.DistrictID\r\n : this.LoginDetails.DistrictId !== undefined\r\n ? this.LoginDetails.DistrictId\r\n : this.LoginDetails.DistrictID;\r\n\r\n const cityId = this.form.value.cityname && this.form.value.cityname.CityId !== undefined\r\n ? this.form.value.cityname.CityId\r\n : this.LoginDetails.CityId !== undefined\r\n ? this.LoginDetails.CityId\r\n : this.LoginDetails.CityID;\r\n const lastDonateDate = this.selectedpast === 'No' ? null : this.form.value.Lastdonatedate || this.LoginDetails.Lastdonatedate;\r\n\r\n this.arr.push({\r\n RegId: this.LoginDetails ? (this.LoginDetails[0] ? this.LoginDetails[0].RegId : this.LoginDetails.RegId) : '',\r\n FullName: this.form.value.username,\r\n Phonenumber: this.form.value.mobile,\r\n Weight: this.form.value.Weight,\r\n Email: this.form.value.email || this.LoginDetails.Email,\r\n Gender: this.selectedGender || this.LoginDetails.Gender,\r\n Lastdonatedate: lastDonateDate,\r\n DOB: this.form.value.DOB || this.LoginDetails.DOB,\r\n Pincode: this.form.value.Pincode || this.LoginDetails.Pincode,\r\n PastDonation: this.selectedpast,\r\n age: this.form.value.age || this.LoginDetails.Age,\r\n BloodGroupId: bloodgroup,\r\n StateId: stateId,\r\n DistrictId: districtId,\r\n CityId: cityId,\r\n UserAddress: this.form.value.useraddress || this.LoginDetails.UserAddress,\r\n Area: this.form.value.area || this.LoginDetails.Area,\r\n Messagetorequester: this.form.value.Messagetorequester || this.LoginDetails.Messagetorequester,\r\n RoleId: '2',\r\n Status: true,\r\n });\r\n\r\n var uploadfile = new FormData();\r\n uploadfile.append(\"Param\", JSON.stringify(this.arr));\r\n uploadfile.append(\"Flag\", '2');\r\n var url = \"api/BG/Insert_Update_DonersForm\";\r\n this.genralservice.PostData(url, uploadfile).then(data => {\r\n if (data == \"SUCCESS\") {\r\n if (this.flag == 2) {\r\n this.genralservice.ShowAlert(\"ERROR\", 'Profile Updated Succesfully', 'error');\r\n } else {\r\n localStorage.setItem('LoginDetails', JSON.stringify(this.arr));\r\n this.genralservice.ShowAlert(\"SUCCESS\", 'Profile Updated Succesfully', 'success');\r\n this.router.navigate(['/blooddonation']).then(() => {\r\n window.location.reload();\r\n });\r\n }\r\n this.form.reset();\r\n } else {\r\n this.genralservice.ShowAlert(\"ERROR\", 'Something went wrong. Please check validation fields', 'error');\r\n }\r\n });\r\n }\r\n\r\n\r\n toggleStatus(checked: boolean) {\r\n this.LoginDetails.Status = checked ? 1 : 0;\r\n }\r\n\r\n getstate() {\r\n \r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '4');\r\n var url = \"api/BG/StatesMaster_crudCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n\r\n this.Statedata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for states //\r\n searchCont(event) {\r\n \r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList = [];\r\n for (var i = 0; i < this.Statedata.length; i++) {\r\n let country = this.Statedata[i];\r\n if (country.StateName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList = filtered;\r\n }\r\n }\r\n\r\n\r\n getDistrict() {\r\n \r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n StateId: this.form.value.statename.StateId\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '5');\r\n var url = \"api/BG/DistrictMaster_crudCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n \r\n this.districtdata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for District //\r\n searchCont1(event) {\r\n\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList1 = [];\r\n for (var i = 0; i < this.districtdata.length; i++) {\r\n let country = this.districtdata[i];\r\n if (country.DistrictName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList1 = filtered;\r\n }\r\n }\r\n\r\n getCity() {\r\n \r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n DistrictId: this.form.value.districtname.DistrictID,\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '5');\r\n var url = \"api/BG/CitiesMaster_Crudcustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n \r\n this.Citydata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for cities //\r\n searchCont2(event) {\r\n\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList2 = [];\r\n for (var i = 0; i < this.Citydata.length; i++) {\r\n let country = this.Citydata[i];\r\n if (country.CityName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList2 = filtered;\r\n }\r\n }\r\n\r\n\r\n getBloodgroup() {\r\n \r\n this.arr = []\r\n this.arr.push({\r\n RegId: this.LoginDetails.RegId,\r\n TokenId: this.LoginDetails.TokenId,\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '4');\r\n var url = \"api/BG/BloodGroupMaster_CRUDCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n \r\n this.bloodgroupdata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for bloodgroup //\r\n searchCont3(event) {\r\n \r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList3 = [];\r\n for (var i = 0; i < this.bloodgroupdata.length; i++) {\r\n let country = this.bloodgroupdata[i];\r\n if (country.BLGName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList3 = filtered;\r\n }\r\n }\r\n\r\n updateSubDropdownPosition(event: MouseEvent) {\r\n // Adjust the sub-dropdown position based on mouse movement\r\n this.subDropdownStyle = {\r\n top: event.clientY + 'px',\r\n left: event.clientX + 'px',\r\n display: 'block',\r\n };\r\n }\r\n\r\n hideSubDropdown() {\r\n if (!this.isMouseOverSubDropdown) {\r\n this.subDropdownStyle = {\r\n display: 'none',\r\n };\r\n }\r\n }\r\n\r\n toggleDropdown() {\r\n this.showDropdownContent = !this.showDropdownContent;\r\n }\r\n\r\n\r\n // Function to select a blood group\r\n selectBloodgroup(bloodgroup: string) {\r\n this.selectedBloodgroup = bloodgroup;\r\n this.showDropdownContent = false; // Hide the dropdown after selection if needed\r\n }\r\n\r\n selectGender(gender: string) {\r\n \r\n this.selectedGender = gender;\r\n // Optionally call your Interior function with the `id`\r\n // this.Interior(id);\r\n }\r\n PastDonation(Past: string) {\r\n \r\n this.selectedpast = Past;\r\n // Optionally call your Interior function with the `id`\r\n // this.Interior(id);\r\n }\r\n vol() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // If LoginDetails is empty or not set, route to the login page\r\n this.router.navigate(['/Volunteerlogin']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n // Assuming roleid is a property of LoginDetails\r\n if ((this.LoginDetails[0].RoleId === 4 && (this.LoginDetails[0].Rolestatus === false || this.LoginDetails[0].Rolestatus === null)) || (this.LoginDetails[0].RoleId === 4 && this.LoginDetails[0].Rolestatus === true) || (this.LoginDetails[0].RoleId === 2 && this.LoginDetails[0].Rolestatus === true)) {\r\n // If roleid is 4, navigate to the '/Volunters' page\r\n this.router.navigate(['/Volunters']);\r\n }\r\n\r\n else if (this.LoginDetails[0].RoleId === 0 && (this.LoginDetails[0].Rolestatus === false)) {\r\n // If roleid is not 4, display an alert message\r\n this.router.navigate(['/Volunteerprofile']);\r\n // alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n else {\r\n this.router.navigate(['/Profile']);\r\n alert(\"Please update your profile as a volunteer to access this page.\");\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 \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
\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 Donor Registration Form \r\n \r\n
\r\n
\r\n\r\n \r\n
\r\n Full Name* \r\n
\r\n
\r\n \r\n Donor Name is required \r\n\r\n
\r\n\r\n
\r\n Mobile Number* \r\n
\r\n\r\n
\r\n \r\n Donor Mobile is required \r\n\r\n
\r\n\r\n
\r\n Email* \r\n
\r\n\r\n
\r\n \r\n Donor Email is required \r\n
\r\n\r\n
\r\n Gender* \r\n
\r\n
\r\n\r\n
\r\n Ever donated blood* \r\n
\r\n
\r\n\r\n
\r\n Date of Birth \r\n
\r\n
\r\n\r\n
\r\n Last donate date* \r\n
\r\n
\r\n\r\n
\r\n Weight* \r\n
\r\n\r\n
\r\n \r\n Doner Weight is required \r\n\r\n
\r\n\r\n
\r\n Age* \r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n Blood Group* \r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n\r\n
blood group is required. \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 State Name \r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n \r\n\r\n
State Name is required. \r\n
\r\n\r\n
\r\n\r\n
\r\n District Name \r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n \r\n\r\n
District Name is required. \r\n
\r\n
\r\n\r\n\r\n
\r\n City Name \r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n\r\n\r\n
City Name is required. \r\n
\r\n\r\n
\r\n\r\n\r\n
\r\n User Address \r\n
\r\n
\r\n \r\n\r\n \r\n
\r\n\r\n
\r\n Area \r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n Pincode* \r\n
\r\n\r\n
\r\n \r\n Pincode is required \r\n\r\n
\r\n\r\n
\r\n Message to blood Requester \r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n
\r\n \r\n
\r\n
\r\n
I Agree to the terms and conditions of the website
\r\n
\r\n\r\n\r\n
\r\n
\r\n \r\n
\r\n
\r\n
I Have read the eligibility criteria and confirm that I am eligible to Donate blood
\r\n
\r\n
\r\n\r\n \r\n \r\n Submit \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 Eligibility Criteria to Donate Blood\r\n \r\n\r\n There are several parameters that determine the eligibility of an individual to donate blood.\r\n \r\n . Overall health- The donor must be fit and healthy, and should not be suffering from transmittable diseases.\r\n \r\n . Age and weight- The donor must be 18–60 years old and should weigh a minimum of 50 kg.\r\n \r\n . Pulse rate- Between 50 and 100 without irregularities.\r\n \r\n . Hemoglobin level- A minimum of 12.5 g/dL.\r\n . Blood pressure- Diastolic: 50–100 mm Hg, Systolic: 100–180 mm Hg.\r\n . Body temperature- Should be normal, with an oral temperature not exceeding 37.5 °C.\r\n . The time period between successive blood donations should be more than 3 months.\r\n \r\n Individuals under certain conditions are deemed ineligible to donate blood\r\n \r\n . A person who has been tested HIV positive.\r\n . Individuals suffering from ailments like cardiac arrest, hypertension, blood pressure, cancer, epilepsy, kidney ailments and diabetes.\r\n . A person who has undergone ear/body piercing or tattoo in the past 6 months.\r\n . Individuals who have undergone immunization in the past 1 month.\r\n . Individuals treated for rabies or received Hepatitis B vaccine in the past 6 months.\r\n . A person who has consumed alcohol in the past 24 hours.\r\n . Women who are pregnant or breastfeeding.\r\n . Individuals who have undergone major dental procedures or general surgeries in the past 1 month.\r\n . Women who have had miscarriage in the past 6 months.\r\n . Individuals who have had fits, tuberculosis, asthma and allergic disorders in the past.\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 In using this Site, you agree to and understand these Terms of Use as well as our Privacy Policy. Lets- fignt website reserves the right to change the content within the web pages and within the Website Privacy Policy and Terms and Conditions at any time, without notice, at any time by updating this posting. You should visit this page periodically to review the current terms and conditions.\r\n \r\n GENERAL DISCLAIMER:\r\n \r\n Let's Help.com is a Non Profit, Non Commercial, ......\r\n \r\n The information on this Site or otherwise communicated to users of this Site, including information communicated via e-mail is is provided solely for the Social cause and this site is Non Commercial, .\r\n We make reasonable efforts to present current and accurate information. We would not assume any legal liability and makes no representations or warranties concerning the accuracy, completeness, timeliness, reliability or usefulness of the materials accessed from or through this Site or any other site accessed through this Site. No warranty is made that the information provided is error- free. The numbers, percentages and ratios contained within the web pages may be, at any time, outdated and may include inaccuracies and/or errors.\r\n Let's Help assumes no responsibility or liability for any consequence resulting directly or indirectly from any action you take based on or made in reliance on the information or materials on this Site, or other sites linked to it. It does not represent or warrant that access to this Site or any sites linked to this Site will be uninterrupted, that this Site will operate error free. This Site or any portion thereof may be unavailable at any time\r\n \r\n NOTIFICATION OF CHANGES:\r\n \r\n We aim to update our site regularly, and may change the content at any time. If the need arises, we may suspend access to our site, or close it indefinitely. Any of the material on our site may be out of date at any given time, and we are under no obligation to update such material.\r\n \r\n SECURITY\r\n \r\n This website takes reasonable precautions to protect user information from unauthorized use or alteration. All data, correspondence, and responses that the user of the website provides will be handled confidentially, both online and offline.. Any Information Users submit via this website will not be shared nor rented, nor sold to others in any forms. All of our users’ personally identifiable information is restricted to our website only. However, the information that is needed for the Sole purpose of blood donation registration will be available for the public view. COPY RIGHT and TRADE MARKS All media (downloaded or samples), text, images, graphics, user interfaces, videos, photographs, and other content on the Site, including, but not limited to, the design, selection, arrangement, and coordination of such content on the Site, is not owned or licensed by or to Let's Help. Being a Social, Non commercial website, its been sourced through various forms from the Internet. We would like to thank all the News Channels in India, not limited to, English, Hindi or regional who has played a prominent part in building up this Website,we would like to thank Google, Wikipedia, Youtube and many more online informational sites that being a building block in making Let's Help and we assure you that none of the material will not be exploited for any commercial usage. You have been a part of our sincere endeavor of creating a good society and a social cause. If you still feel that your material, information should be deleted from this website, please feel free to send an email with the information to letsfight.ind@gmail.com and we would delete it as soon as possible. REVIEWS, COMMENTS, COMMUNICATION and OTHER Site visitors may send communications; and submit suggestions, ideas, comments, questions, or other information, provided that the content is not illegal, obscene, threatening, defamatory, invasive of privacy or objectionable and does not consist of or contain software viruses, political campaigning, commercial solicitation, chain letters, mass mailings, or any form of “spam”. You may not use a false email address, impersonate any person or entity, or otherwise mislead as to the content’s origin. We have the right to disable any user identification code or password, whether chosen by you or allocated by us, at any time, if in our opinion you have failed to comply with any of the provisions of these terms of use. LINKS TO OTHER SITES This website may provide links or references to other sites. These links are provided for your convenience and Lets-help is not responsible for the content of these other sites, does not make any representations or gives any warranties with respect to any information contained in or at these other sites, and shall not be liable for any damages or injury arising from the content of these other sites.When leaving Lets-help website to visit another website, we recommend that you review that website’s terms and conditions and privacy policy. YOUR CONCERNS – TO CONTACT US If you have any questions concerning your right to the privacy and confidentiality of your personal information and data that has been entrusted to Lets-help.com website or for any specific inquiries, please contact us directly using our online contact us form Thank you for visiting our site.\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 { ChangeDetectorRef, Component } from '@angular/core';\r\nimport { GeneralService } from '../../general.service';\r\nimport { HttpClient, HttpHeaders } from '@angular/common/http';\r\nimport { FormBuilder, FormControl, Validators, FormGroup } from '@angular/forms';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { Observable } from 'rxjs';\r\nimport { Location } from '@angular/common';\r\n@Component({\r\n selector: 'app-downloadsbrouchers',\r\n templateUrl: './downloadsbrouchers.component.html',\r\n styleUrls: ['./downloadsbrouchers.component.scss']\r\n})\r\nexport class DownloadsbrouchersComponent {\r\n HomeURL: any;\r\n brochuedata: any = [];\r\n showSocialMedia: any;\r\n Statedata: any = [];\r\n deptList: any;\r\n districtdata: any = [];\r\n deptList1: any;\r\n Citydata: any = [];\r\n deptList2: any;\r\n selectedState1: any;\r\n selectedState2: any;\r\n selectedState3: any; brochures: any;\r\n pincode: any; DownloadLogo: any = 2;\r\n LoginDetails1: any; LoginDetails: any; activeCardIndex: number = -1;\r\n pdfurl: any;\r\n pdfpath: any;\r\n arr1: any = [];\r\n isActive: boolean = false; arr: any;\r\n public form: FormGroup;\r\n\r\n constructor(public generalservice: GeneralService, private location: Location,\r\n private cdr: ChangeDetectorRef, public router: Router, public http: HttpClient, public fb: FormBuilder) {\r\n\r\n this.LoginDetails1 = localStorage.getItem(\"LoginDetails\");\r\n this.LoginDetails = JSON.parse(this.LoginDetails1);\r\n this.http.get('../assets/WebService.json').subscribe((data: any) => {\r\n // this.pdfurl = 'https://localhost:44387/';\r\n this.pdfurl = 'https://letshelp.breakingindiaapp.com/Webservices/';\r\n });\r\n\r\n this.form = this.fb.group({\r\n // Define your form controls here\r\n StateName: ['',],\r\n DistrictName: ['',],\r\n CityName: ['',],\r\n pincode: ['',],\r\n location: ['',],\r\n\r\n });\r\n\r\n }\r\n\r\n ngOnInit(): void {\r\n this.brochure();\r\n this.getstate();\r\n this.getDistrict();\r\n this.getCity();\r\n \r\n\r\n\r\n\r\n }\r\n handleClick(index: number) {\r\n if (this.activeCardIndex === index) {\r\n this.activeCardIndex = -1; // Toggle off if same card clicked again\r\n } else {\r\n this.activeCardIndex = index;\r\n }\r\n }\r\n\r\n vol() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // If LoginDetails is empty or not set, route to the login page\r\n this.router.navigate(['/Volunteerlogin']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n // Assuming roleid is a property of LoginDetails\r\n if ((this.LoginDetails[0].RoleId === 4 && (this.LoginDetails[0].Rolestatus === false || this.LoginDetails[0].Rolestatus === null)) || (this.LoginDetails[0].RoleId === 4 && this.LoginDetails[0].Rolestatus === true) || (this.LoginDetails[0].RoleId === 2 && this.LoginDetails[0].Rolestatus === true)) {\r\n // If roleid is 4, navigate to the '/Volunters' page\r\n this.router.navigate(['/Volunters']);\r\n }\r\n\r\n else if (this.LoginDetails[0].RoleId === 0 && (this.LoginDetails[0].Rolestatus === false)) {\r\n // If roleid is not 4, display an alert message\r\n this.router.navigate(['/Volunteerprofile']);\r\n // alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n else {\r\n this.router.navigate(['/Profile']);\r\n alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n\r\n }\r\n }\r\n Brochureinsert() {\r\n\r\n if (!this.form.value.pincode || !this.form.value.DistrictName || !this.form.value.CityName\r\n || !this.form.value.StateName || !this.form.value.location) {\r\n alert('Please select all details or select Skip and Download option');\r\n return;\r\n }\r\n\r\n this.arr = [];\r\n this.arr.push({\r\n stateid: this.form.value.StateName.StateId,\r\n districtid: this.form.value.DistrictName.DistrictID,\r\n cityid: this.form.value.CityName.CityId,\r\n Pincode: this.form.value.pincode,\r\n Location: this.form.value.location\r\n })\r\n var uploadfile = new FormData()\r\n uploadfile.append(\"Param\", JSON.stringify(this.arr));\r\n var url = \"api/BG/InsertBrochures_Deatails\";\r\n this.generalservice.PostData(url, uploadfile).then(data => {\r\n if (data == \"SUCCESS\") {\r\n this.downloadFile(this.pdfpath);\r\n }\r\n\r\n })\r\n\r\n\r\n }\r\n\r\n Brochureinsert1() {\r\n debugger\r\n if (!this.form.value.pincode || !this.form.value.DistrictName || !this.form.value.CityName\r\n || !this.form.value.StateName || !this.form.value.location) {\r\n alert('Please select all details');\r\n return;\r\n }\r\n this.arr = [];\r\n this.arr.push({\r\n stateid: this.form.value.StateName.StateId,\r\n districtid: this.form.value.DistrictName.DistrictID,\r\n cityid: this.form.value.CityName.CityId,\r\n Pincode: this.form.value.pincode,\r\n Location: this.form.value.location,\r\n \r\n });\r\n var uploadfile = new FormData();\r\n uploadfile.append(\"Param\", JSON.stringify(this.arr));\r\n var url = \"api/BG/InsertBrochures_Deatails\";\r\n this.generalservice.PostData(url, uploadfile)\r\n .then(data => {\r\n if (data === \"SUCCESS\") {\r\n alert('Brochure details added Successfully ');\r\n window.location.reload();\r\n this.form.reset(); // Reset the form\r\n \r\n } else {\r\n console.error(\"Error occurred while processing file:\", data);\r\n }\r\n //this.form = \"\";\r\n })\r\n .catch(error => {\r\n console.error(\"Error occurred while processing file:\", error);\r\n });\r\n }\r\n\r\n brochure() {\r\n debugger\r\n this.arr = [];\r\n this.arr.push({\r\n\r\n })\r\n var uploadfile = new FormData()\r\n uploadfile.append(\"Param\", JSON.stringify(this.arr));\r\n uploadfile.append(\"Flag\", '4');\r\n var url = \"api/BG/BG_Brochers_Crud\";\r\n this.generalservice.PostData(url, uploadfile).then(data => {\r\n debugger\r\n this.brochuedata = data;\r\n this.pdfpath = this.brochuedata[0].BrochurePath\r\n })\r\n\r\n }\r\n\r\n download1(pdfpath: string | null): void {\r\n if (pdfpath) {\r\n const timestamp = new Date().getTime(); // Get current timestamp\r\n const absoluteUrl: string = `https://localhost:44387/${pdfpath}`;\r\n\r\n const link = document.createElement('a');\r\n link.href = absoluteUrl;\r\n link.setAttribute('download', ''); // This will set the download attribute to force download\r\n document.body.appendChild(link);\r\n\r\n // Simulate a click on the anchor element\r\n link.click();\r\n document.body.removeChild(link);\r\n } else {\r\n console.error('File path not available');\r\n }\r\n }\r\n download(pdfpath: string | null): void {\r\n debugger\r\n if (pdfpath) {\r\n const timestamp = new Date().getTime(); // Get current timestamp\r\n const absoluteUrl: string = `https://letshelp.breakingindiaapp.com/Webservices/${pdfpath}?t=${timestamp}`;\r\n\r\n // Create a temporary anchor element\r\n const link = document.createElement('a');\r\n link.href = absoluteUrl;\r\n link.setAttribute('download', ''); // This will set the download attribute to force download\r\n document.body.appendChild(link);\r\n\r\n // Simulate a click on the anchor element\r\n link.click();\r\n\r\n // Remove the anchor element from the DOM after a short delay\r\n setTimeout(() => {\r\n document.body.removeChild(link);\r\n }, 100);\r\n } else {\r\n console.error('File path not available');\r\n }\r\n }\r\n\r\n \r\n\r\n\r\n downloadFile(filePath: string): void {\r\n debugger\r\n const absoluteUrl: string = `https://letshelp.breakingindiaapp.com/Webservices/${filePath}`;\r\n\r\n // Create a temporary anchor element\r\n const link = document.createElement('a');\r\n link.href = absoluteUrl;\r\n link.setAttribute('download', ''); // This will set the download attribute to force download\r\n document.body.appendChild(link);\r\n\r\n // Simulate a click on the anchor element\r\n link.click();\r\n\r\n // Remove the anchor element from the DOM\r\n document.body.removeChild(link);\r\n }\r\n\r\n\r\n\r\n\r\n\r\n toggleSocialMedia(value: number) {\r\n // Update showSocialMedia variable\r\n this.router.navigate(['/Brochures'])\r\n }\r\n\r\n\r\n\r\n\r\n toggleSocialMedias(value: any) {\r\n ;\r\n if (value != 2) {\r\n this.showSocialMedia = value;\r\n\r\n }\r\n else {\r\n // this.downloadlogo();\r\n }\r\n }\r\n\r\n\r\n openInstagram() {\r\n // Replace 'your-instagram-url' with the actual Instagram share URL\r\n const instagramShareUrl = 'https://www.instagram.com/';\r\n const urlToShare = 'https://letshelp.breakingindiaapp.com/Brochures';\r\n\r\n // Combine Instagram URL and the URL to share\r\n const finalInstagramUrl = `${instagramShareUrl}?url=${encodeURIComponent(urlToShare)}`;\r\n\r\n // Open Instagram in a new window or tab\r\n window.open(finalInstagramUrl, '_blank');\r\n }\r\n\r\n openFacebook() {\r\n // Replace 'your-facebook-url' with the actual Facebook share URL\r\n const facebookShareUrl = 'https://www.facebook.com/sharer/sharer.php?u=';\r\n const urlToShare = 'https://letshelp.breakingindiaapp.com/Brochures';\r\n\r\n // Combine Facebook URL and the URL to share\r\n const finalFacebookUrl = `${facebookShareUrl}${encodeURIComponent(urlToShare)}`;\r\n\r\n // Open Facebook in a new window or tab\r\n window.open(finalFacebookUrl, '_blank');\r\n }\r\n\r\n openWhatsApp() {\r\n // Replace 'your-whatsapp-url' with the actual WhatsApp share URL\r\n const whatsappShareUrl = 'https://wa.me/?text=';\r\n const textToShare = 'Check out this link: https://letshelp.breakingindiaapp.com/Brochures';\r\n\r\n // Combine WhatsApp URL and the text to share\r\n const finalWhatsAppUrl = `${whatsappShareUrl}${encodeURIComponent(textToShare)}`;\r\n\r\n // Open WhatsApp in a new window or tab\r\n window.open(finalWhatsAppUrl, '_blank');\r\n }\r\n\r\n openGmailApp() {\r\n // Replace 'your-whatsapp-url' with the actual WhatsApp share URL\r\n const GmailShareUrl = 'https://mail.google.com/mail/u/0/';\r\n const textToShare = 'Check out this link: https://letshelp.breakingindiaapp.com/Brochures';\r\n\r\n // Combine WhatsApp URL and the text to share\r\n const finalWhatsAppUrl = `${GmailShareUrl}${encodeURIComponent(textToShare)}`;\r\n\r\n // Open WhatsApp in a new window or tab\r\n window.open(finalWhatsAppUrl, '_blank');\r\n }\r\n\r\n\r\n setActiveCard(index: number) {\r\n this.activeCardIndex = index;\r\n }\r\n\r\n getstate() {\r\n this.arr = []\r\n this.arr.push({\r\n RegId: this.LoginDetails[0].RegId,\r\n TokenId: this.LoginDetails[0].TokenId,\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '4');\r\n var url = \"api/BG/StatesMaster_crudCustomer\";\r\n this.generalservice.PostData(url, UploadFile).then(data => {\r\n\r\n this.Statedata = data;\r\n }, err => {\r\n this.generalservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for states //\r\n searchCont(event) {\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList = [];\r\n for (var i = 0; i < this.Statedata.length; i++) {\r\n let country = this.Statedata[i];\r\n if (country.StateName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList = filtered;\r\n }\r\n }\r\n\r\n getDistrict() {\r\n this.arr = []\r\n this.arr.push({\r\n RegId: this.LoginDetails[0].RegId,\r\n TokenId: this.LoginDetails[0].TokenId,\r\n StateId: this.selectedState1.StateId,\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '5');\r\n var url = \"api/BG/DistrictMaster_crudCustomer\";\r\n this.generalservice.PostData(url, UploadFile).then(data => {\r\n this.districtdata = data;\r\n }, err => {\r\n this.generalservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for District //\r\n searchCont1(event) {\r\n\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList1 = [];\r\n for (var i = 0; i < this.districtdata.length; i++) {\r\n let country = this.districtdata[i];\r\n if (country.DistrictName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList1 = filtered;\r\n }\r\n }\r\n\r\n getCity() {\r\n this.arr = []\r\n this.arr.push({\r\n RegId: this.LoginDetails[0].RegId,\r\n TokenId: this.LoginDetails[0].TokenId,\r\n DistrictId: this.selectedState2.DistrictID,\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '5');\r\n var url = \"api/BG/CitiesMaster_Crudcustomer\";\r\n this.generalservice.PostData(url, UploadFile).then(data => {\r\n this.Citydata = data;\r\n }, err => {\r\n this.generalservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n\r\n\r\n // drop down for cities //\r\n searchCont2(event) {\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList2 = [];\r\n for (var i = 0; i < this.Citydata.length; i++) {\r\n let country = this.Citydata[i];\r\n if (country.CityName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList2 = filtered;\r\n }\r\n }\r\n\r\n onStateSelect1(event) {\r\n console.log('Selected State:', this.selectedState1);\r\n // You can perform additional actions with the selected state here\r\n }\r\n onStateSelect2(event) {\r\n console.log('Selected Distict:', this.selectedState2);\r\n // You can perform additional actions with the selected state here\r\n }\r\n onStateSelect3(event) {\r\n console.log('Selected City:', this.selectedState3);\r\n // You can perform additional actions with the selected state here\r\n }\r\n\r\n reg() {\r\n\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // Route to login page\r\n this.router.navigate(['/Login']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n this.router.navigate(['/Profile']).then(() => { window.location.reload(); });\r\n }\r\n }\r\n downloadlogo() {\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 \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
\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 Pincode \r\n \r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n
\r\n Download \r\n
\r\n
\r\n Submit \r\n
\r\n
\r\n
\r\n
\r\n Skip and Download \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
\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 { GeneralService } from '../../general.service';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { FormBuilder, FormControl, Validators, FormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { Router } from '@angular/router';\r\ndeclare var $: any;\r\n@Component({\r\n selector: 'app-gallery',\r\n templateUrl: './gallery.component.html',\r\n styleUrls: ['./gallery.component.scss']\r\n})\r\nexport class GalleryComponent {\r\n disableViewDetails: boolean = false; \r\n item: any;\r\n isActive: string;\r\n isSearching: boolean = false;\r\n isSearchInputFocused: boolean = false;\r\n prevSearchQuery: string = '';\r\n activeButton: string = '';\r\n arr3: any[];\r\n HomeUrl: any;\r\n public ckeditorContent: any;\r\n gridview: boolean = true;\r\n Form: FormGroup;\r\n GalleryImages: any;\r\n urls: any;\r\n arr: any = [];\r\n isDonorRegisterClicked: boolean = false;\r\n isRegistrationFormVisible: boolean = false;\r\n isDonorRegisterClickedd: boolean = false;\r\n isshareFormVisible: boolean = false;\r\n isrequestFormVisible: boolean = false;\r\n isprofileFormVisible: boolean = false;\r\n dataResult: any = [];\r\n showSocialList: boolean = false; \r\n currentPage: number = 1;\r\n itemsPerPage: number = 6;\r\n startIndex: number = 0;\r\n LoginDetails1: any; LoginDetails: any\r\n pwd1: any;\r\n userid: any;\r\n Mobile: any;\r\n OTP: any;\r\n OTPtoMobile: any;\r\n logindata: any;\r\n otpSent: boolean = false;\r\n showLogin: boolean = false;\r\n showLogin1: boolean = true;\r\n modalVisible: false;\r\n Age: any;\r\n BloodRequestDate: any;\r\n RequestTime: any;\r\n Purpose: any; letter: any;\r\n searchQuery: string;\r\n GalleryID: any;\r\n FullName: any;\r\n StateName: any;\r\n\r\n constructor(public generalService: GeneralService, public http: HttpClient, public fb: FormBuilder, private router: Router) {\r\n this.LoginDetails1 = localStorage.getItem(\"LoginDetails\");\r\n this.LoginDetails = JSON.parse(this.LoginDetails1);\r\n if (Array.isArray(this.LoginDetails) && this.LoginDetails.length > 0) {\r\n this.letter = this.LoginDetails[0].FullName.charAt(0);\r\n } else if (this.LoginDetails && this.LoginDetails.FullName) {\r\n this.letter = this.LoginDetails.FullName.charAt(0);\r\n } else {\r\n this.letter = '';\r\n }\r\n \r\n this.http.get('../assets/WebService.json').subscribe((data: any) => {\r\n this.HomeUrl = data.Webservice;\r\n });\r\n }\r\n\r\n ngOnInit(): void {\r\n\r\n this.Getimages();\r\n\r\n\r\n }\r\n \r\n toggleDropdown() {\r\n const dropdownContent = document.getElementById(\"dropdownContent\");\r\n if (dropdownContent.style.display === \"block\") {\r\n dropdownContent.style.display = \"none\";\r\n } else {\r\n dropdownContent.style.display = \"block\";\r\n }\r\n }\r\n checkLoginStatus() {\r\n // Check if user is logged in (replace with your actual logic)\r\n // If user is logged in, set LoginDetails, otherwise set it to null\r\n if (this.LoginDetails != null) {\r\n this.LoginDetails = {\r\n\r\n };\r\n } else {\r\n this.LoginDetails = null;\r\n }\r\n }\r\n\r\n checkmobile(Mobile) {\r\n if (Mobile.length == 10) {\r\n if (this.OTPtoMobile == this.OTP) {\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Mobile\", Mobile);\r\n\r\n\r\n var url = 'api/BG/checking_Mobile'\r\n\r\n this.generalService.PostData(url, UploadFile).then(data => {\r\n //this.logindata = JSON.stringify(data[0]);\r\n //localStorage.setItem(\"LoginDetails\", this.logindata);\r\n \r\n if (data != 'NOTEXIST') {\r\n \r\n this.pwd1 = data[0].Password;\r\n this.userid = data[0].ID;\r\n this.router.navigate(['/blooddonation']).then(() => { window.location.reload(); });\r\n this.logindata = JSON.stringify(data[0]);\r\n localStorage.setItem(\"LoginDetails\", this.logindata);\r\n\r\n }\r\n else {\r\n\r\n this.router.navigate(['/Donersform'])\r\n // this.router.navigate(['/register', { Mobile: this.form.value.Mobile }])\r\n .then(() => {\r\n window.location.reload();\r\n });\r\n this.logindata = JSON.stringify(data[0]);\r\n localStorage.setItem(\"LoginDetails\", this.logindata);\r\n }\r\n })\r\n }\r\n }\r\n }\r\n openLoginModal() {\r\n // Show the modal here\r\n $('#myModal').modal('show');\r\n }\r\n SendOTPtoMobile() {\r\n if (!this.otpSent && this.Mobile && this.Mobile.length === 10) {\r\n this.OTPtoMobile = Math.floor(1000 + Math.random() * 9000);\r\n var Uploadfile = new FormData();\r\n Uploadfile.append(\"MobileNo\", this.Mobile)\r\n Uploadfile.append(\"OTP\", this.OTPtoMobile)\r\n var url = \"api/BG/SendOtpToMobile\";\r\n this.generalService.PostData(url, Uploadfile).then((data: any) => {\r\n // Set otpSent to true once OTP is sent\r\n this.otpSent = true;\r\n this.showLogin1 = false;\r\n this.showLogin = true;\r\n })\r\n }\r\n }\r\n sharee()\r\n {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // Route to login page\r\n this.router.navigate(['/Login']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n this.router.navigate(['/Joincampain']);\r\n }\r\n }\r\n //share() {\r\n // if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // // Route to login page\r\n // this.router.navigate(['/Login']);\r\n // return; // Stop further execution\r\n // }\r\n // else {\r\n // this.router.navigate(['/blooddonation']);\r\n // }\r\n //}\r\n\r\n share() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // Route to login page\r\n this.router.navigate(['/Login']);\r\n return; // Stop further execution\r\n } else {\r\n this.router.navigate(['/blooddonation'], { queryParams: { isshare: true } });\r\n }\r\n }\r\n\r\n closeModal() {\r\n this.modalVisible = false;\r\n $('#myModal').modal('hide');\r\n }\r\n signOut() {\r\n // Remove the login details from localStorage\r\n localStorage.removeItem('LoginDetails');\r\n window.location.reload();\r\n }\r\n\r\n Getimages() {\r\n this.isActive = 'bloodDonation';\r\n this.activeButton = 'bloodDonation';\r\n this.arr = []\r\n this.arr.push({\r\n \r\n\r\n });\r\n\r\n var UploadFile = new FormData(); \r\n UploadFile.append(\"Param1\", '1');\r\n var url = \"api/BG/Get_gallerycatwise\";\r\n this.generalService.PostData(url, UploadFile).then(data => {\r\n \r\n this.dataResult = data;\r\n\r\n }, err => {\r\n this.generalService.ShowAlert('ERROR', 'Something went wrong. Please try again later', 'error');\r\n })\r\n }\r\n\r\n Getimages1() {\r\n this.isActive = 'oldAgeService';\r\n this.activeButton = 'oldAgeService';\r\n this.arr = [];\r\n this.arr.push({\r\n \r\n });\r\n\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Param1\", '2');\r\n var url = \"api/BG/Get_gallerycatwise\";\r\n this.generalService.PostData(url, UploadFile).then(data => {\r\n this.dataResult = data;\r\n this.currentPage = 1; \r\n this.startIndex = 0; \r\n }, err => {\r\n this.generalService.ShowAlert('ERROR', 'Something went wrong. Please try again later', 'error');\r\n });\r\n }\r\n\r\n Getimages2() {\r\n this.isActive = 'orphanServices';\r\n this.activeButton = 'orphanServices';\r\n this.arr = []\r\n this.arr.push({\r\n \r\n\r\n });\r\n\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Param1\", '3');\r\n var url = \"api/BG/Get_gallerycatwise\";\r\n this.generalService.PostData(url, UploadFile).then(data => {\r\n this.dataResult = data;\r\n this.currentPage = 1; \r\n this.startIndex = 0; \r\n\r\n }, err => {\r\n this.generalService.ShowAlert('ERROR', 'Something went wrong. Please try again later', 'error');\r\n })\r\n }\r\n Getimages3() {\r\n debugger\r\n this.isActive = 'Campaign';\r\n this.activeButton = 'Campaign';\r\n this.arr = []\r\n this.arr.push({\r\n // ServicePrice: 0\r\n\r\n });\r\n\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Param1\", '5');\r\n var url = \"api/BG/Get_gallerycatwise\";\r\n this.generalService.PostData(url, UploadFile).then(data => {\r\n this.dataResult = data;\r\n this.currentPage = 1; \r\n this.startIndex = 0; \r\n }, err => {\r\n this.generalService.ShowAlert('ERROR', 'Something went wrong. Please try again later', 'error');\r\n })\r\n }\r\n \r\n\r\n shareTo(platform: string) {\r\n let url = 'https://letshelp.breakingindiaapp.com/Gallery'; // Your page URL\r\n switch (platform) {\r\n case 'Twitter':\r\n url = `https://twitter.com/intent/tweet?url=${encodeURIComponent(url)}`;\r\n break;\r\n case 'WhatsApp':\r\n url = `https://api.whatsapp.com/send?text=${encodeURIComponent(url)}`;\r\n break;\r\n case 'Facebook':\r\n url = `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(url)}`;\r\n break;\r\n default:\r\n break;\r\n }\r\n window.open(url, '_blank');\r\n }\r\n \r\n shareTo1(platform: string, imageUrl: string) {\r\n this.disableViewDetails = true;\r\n let shareUrl: string;\r\n if (platform === 'Facebook') {\r\n shareUrl = 'https://www.facebook.com/sharer/sharer.php?u=' + encodeURIComponent(imageUrl);\r\n } else if (platform === 'Twitter') {\r\n shareUrl = 'https://twitter.com/intent/tweet?url=' + encodeURIComponent(imageUrl);\r\n } else if (platform === 'WhatsApp') {\r\n shareUrl = 'https://api.whatsapp.com/send?text=' + encodeURIComponent(imageUrl);\r\n }\r\n window.open(shareUrl, '_blank');\r\n }\r\n\r\n\r\n prevPage() {\r\n if (this.currentPage > 1) {\r\n this.currentPage--;\r\n this.startIndex -= this.itemsPerPage;\r\n }\r\n }\r\n\r\n\r\n nextPage() {\r\n debugger\r\n let totalPages = Math.ceil(this.dataResult.length / this.itemsPerPage);\r\n if (this.currentPage < totalPages) {\r\n this.currentPage++;\r\n this.startIndex += this.itemsPerPage;\r\n }\r\n }\r\n\r\n getPages(): number[] {\r\n const totalPages = Math.ceil(this.dataResult.length / this.itemsPerPage);\r\n let startPage = Math.max(1, this.currentPage - 1); // Ensure startPage is at least 1\r\n let endPage = Math.min(startPage + 5, totalPages); // Show at most 3 pages\r\n\r\n // Adjust startPage if endPage is less than 3\r\n if (endPage - startPage < 5) {\r\n startPage = Math.max(1, endPage - 5);\r\n }\r\n\r\n return Array.from({ length: endPage - startPage + 1 }, (_, i) => startPage + i);\r\n }\r\n\r\n setPage(page: number) {\r\n this.currentPage = page;\r\n this.startIndex = (page - 1) * this.itemsPerPage;\r\n }\r\n\r\n getPagedItems(): any[] {\r\n return this.dataResult.slice(this.startIndex, this.startIndex + this.itemsPerPage);\r\n }\r\n\r\n goToFirstPage() {\r\n this.setPage(1);\r\n }\r\n\r\n goToLastPage() {\r\n const totalPages = Math.ceil(this.dataResult.length / this.itemsPerPage);\r\n this.setPage(totalPages);\r\n }\r\n \r\n Gallerysearch(searchQuery: string) {\r\n this.arr = [];\r\n this.isSearching = true; // Set isSearching to true when search is initiated\r\n\r\n if (searchQuery && searchQuery.trim() !== '') {\r\n // Search for images based on the search query\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Param1\", searchQuery);\r\n var url = \"api/BG/Get_gallery_Search\";\r\n this.generalService.PostData(url, UploadFile).then(data => {\r\n this.dataResult = data;\r\n this.currentPage = 1;\r\n this.startIndex = 0;\r\n this.isSearching = false; // Reset isSearching to false after search is completed\r\n }, err => {\r\n this.generalService.ShowAlert('ERROR', 'Something went wrong. Please try again later', 'error');\r\n this.isSearching = false; // Reset isSearching to false on error\r\n });\r\n } else {\r\n // Filter images based on the selected category\r\n let categoryId = 1; // Default category ID\r\n switch (this.isActive) {\r\n case 'bloodDonation':\r\n categoryId = 1;\r\n break;\r\n case 'oldAgeService':\r\n categoryId = 2;\r\n break;\r\n case 'orphanServices':\r\n categoryId = 3;\r\n break;\r\n case 'Campaign':\r\n categoryId = 5;\r\n break;\r\n default:\r\n break;\r\n }\r\n\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Param1\", categoryId.toString());\r\n var url = \"api/BG/Get_gallerycatwise\";\r\n this.generalService.PostData(url, UploadFile).then(data => {\r\n this.dataResult = data;\r\n this.currentPage = 1;\r\n this.startIndex = 0;\r\n this.isSearching = false; // Reset isSearching to false after filter is applied\r\n }, err => {\r\n this.generalService.ShowAlert('ERROR', 'Something went wrong. Please try again later', 'error');\r\n this.isSearching = false; // Reset isSearching to false on error\r\n });\r\n }\r\n }\r\n\r\n\r\n autoSearch() {\r\n // Only trigger the search if the search input field is not focused\r\n if (!this.isSearchInputFocused) {\r\n if (this.searchQuery.length >= 1) {\r\n this.Gallerysearch(this.searchQuery);\r\n } else if (this.prevSearchQuery.length >= 1 && this.activeButton !== '') {\r\n this.isActive = this.activeButton;\r\n switch (this.activeButton) {\r\n case 'bloodDonation':\r\n this.Getimages();\r\n break;\r\n case 'oldAgeService':\r\n this.Getimages1();\r\n break;\r\n case 'orphanServices':\r\n this.Getimages2();\r\n break;\r\n case 'Campaign':\r\n this.Getimages3();\r\n break;\r\n default:\r\n break;\r\n }\r\n } else {\r\n this.isActive = ''; \r\n this.Getimages(); \r\n }\r\n }\r\n\r\n this.prevSearchQuery = this.searchQuery; // Update the previous search query\r\n }\r\n copyUrl(url: string) {\r\n const el = document.createElement('textarea');\r\n el.value = url;\r\n document.body.appendChild(el);\r\n el.select();\r\n document.execCommand('copy');\r\n document.body.removeChild(el);\r\n alert('Image URL copied to clipboard');\r\n }\r\n\r\n copyPageUrl() {\r\n const url = window.location.href;\r\n const el = document.createElement('textarea');\r\n el.value = url;\r\n document.body.appendChild(el);\r\n el.select();\r\n document.execCommand('copy');\r\n document.body.removeChild(el);\r\n alert('image URL copied to clipboard');\r\n }\r\n \r\n viewDetails(GalleryID: any, FullName: any, StateName: any) {\r\n \r\n if (!this.disableViewDetails) {\r\n $('#myModal123').modal('show');\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Param1\", GalleryID);\r\n var url = \"api/BG/Gallery_View\";\r\n this.generalService.PostData(url, UploadFile).then(data => {\r\n \r\n console.log(\"API-RESPONSE\", data);\r\n this.GalleryID = data;\r\n this.GalleryImages = this.GalleryID[0].GalleryImages;\r\n this.FullName = FullName;\r\n this.StateName = StateName;\r\n \r\n }, err => {\r\n\r\n this.generalService.ShowAlert('ERROR', 'Something Went wrong', 'error');\r\n });\r\n }\r\n\r\n }\r\n\r\n close() {\r\n $('#myModal123').modal('hide');\r\n }\r\n\r\n flipToBack(event: any) {\r\n const container = event.currentTarget.closest('.image-container');\r\n if (container) {\r\n container.classList.add('flipped');\r\n }\r\n this.disableViewDetailsOnClick(); // Disable viewDetails click event\r\n }\r\n\r\n flipToFront(event: any) {\r\n const target = event.target;\r\n const isSocialIcon = target.classList.contains('fab') || target.closest('.fab');\r\n if (!isSocialIcon) { // Check if the target is not a social media icon\r\n const container = event.currentTarget.closest('.image-container');\r\n if (container) {\r\n container.classList.remove('flipped');\r\n }\r\n this.enableViewDetailsOnClick(); // Enable viewDetails click event\r\n }\r\n }\r\n disableViewDetailsOnClick() {\r\n this.disableViewDetails = true;\r\n }\r\n enableViewDetailsOnClick() {\r\n this.disableViewDetails = false;\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 Share this Gallery
\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 {{ letter }}\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n\r\n LOGIN
\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
Let's Help Gallery \r\n
\r\n
\r\n \r\n Blood Donation\r\n \r\n \r\n Old Age Service\r\n \r\n \r\n Orphan Services\r\n \r\n \r\n Campaign\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
{{ item.FullName }}
\r\n
{{ item.StateName }}
\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 {{ FullName }} \r\n , \r\n {{ StateName }} \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 } from '@angular/core';\r\nimport { GeneralService } from '../../general.service';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { FormBuilder, FormControl, Validators, FormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { Router } from '@angular/router';\r\nimport { DatePipe } from '@angular/common';\r\nimport { StatedisrticrcityService } from '../Sevices/statedisrticrcity.service';\r\ndeclare var $: any;\r\n@Component({\r\n selector: 'app-harphan',\r\n templateUrl: './harphan.component.html',\r\n styleUrls: ['./harphan.component.scss']\r\n})\r\nexport class HarphanComponent {\r\n public form: FormGroup;\r\n arr: any[];\r\n Orphanagedata: any;\r\n modalVisible = false;\r\n OldAgeHome: any = [];\r\n LoginDetails1: any; LoginDetails: any\r\n HomeUrl: any;\r\n pwd1: any;\r\n userid: any;\r\n Mobile: any;\r\n OTP: any;\r\n OTPtoMobile: any;\r\n logindata: any;\r\n otpSent: boolean = false;\r\n showLogin: boolean = false;\r\n showLogin1: boolean = true; loginDet: any; \r\n countrydata: any;\r\n districtdata: any = [];\r\n deptList: any;\r\n flag: any;\r\n Statedata: any = [];\r\n Citydata: any = [];\r\n deptList1: any;\r\n deptList2: any; bloodgroupdata: any = [];\r\n deptList3: any;\r\n deptList4: any;\r\n deptList6: any;\r\n selectedState1: any;\r\n selectedState2: any;\r\n selectedState3: any;\r\n selectedState4: any;\r\n selectedState5: any;\r\n selectedState6: any;\r\n Areadata: any = [];\r\n State: any;\r\n distict: any;\r\n city: any;\r\n bloodgroup: any;\r\n Address: any;\r\n lat = 20.5937;\r\n lng = 78.9629;\r\n zoom = 5;\r\n markers: any[] = []; selectedGender: string | null = null;\r\n letter: any; selectedpast: string;\r\n GalleryImages1: any; GallaryCategory: any;\r\n showingcontent: boolean = true;\r\n showingProfile: boolean = true; profiledata: any;\r\n\r\n constructor(public genralservice: GeneralService, public http: HttpClient, private datePipe: DatePipe,\r\n public router: Router, public fb: FormBuilder, private statedisrticrcityService: StatedisrticrcityService, ) {\r\n this.LoginDetails1 = localStorage.getItem(\"LoginDetails\");\r\n this.LoginDetails = JSON.parse(this.LoginDetails1);\r\n if (Array.isArray(this.LoginDetails) && this.LoginDetails.length > 0) {\r\n this.letter = this.LoginDetails[0].FullName.charAt(0);\r\n } else if (this.LoginDetails && this.LoginDetails.FullName) {\r\n this.letter = this.LoginDetails.FullName.charAt(0);\r\n } else {\r\n this.letter = '';\r\n }\r\n\r\n\r\n this.form = this.fb.group({\r\n // Define your form controls here\r\n username: ['', Validators.required],\r\n mobile: ['', Validators.required],\r\n email: ['',],\r\n Gender: ['',],\r\n age: ['', Validators.required],\r\n //unitsofblood: [''],\r\n bloodgroup: ['', Validators.required],\r\n statename: [''],\r\n districtname: [''],\r\n cityname: [''],\r\n useraddress: [''],\r\n area: [''],\r\n Status: [''],\r\n Messagetorequester: [''],\r\n Weight: [''],\r\n PastDonation: ['', Validators.required],\r\n Lastdonatedate: [''],\r\n Pincode: ['', Validators.required],\r\n \r\n Statusphn: [''],\r\n Rolestatus: [''],\r\n\r\n });\r\n\r\n\r\n this.http.get('../assets/WebService.json').subscribe((data: any) => {\r\n this.HomeUrl = data.Webservice;\r\n // this.HomeUrl = 'https://localhost:44387/';\r\n });\r\n\r\n }\r\n\r\n ngOnInit(): void {\r\n this.gallerycat();\r\n this.getAreas();\r\n this.getBloodgroup();\r\n // this.loadDefaultData();\r\n //this.getstate();\r\n this.getprofile();\r\n //this.getDistrict();\r\n // this.getCity();\r\n this.getcountry();\r\n \r\n // this.getOrphanage(); \r\n\r\n this.statedisrticrcityService.getstate().then(data => {\r\n this.Statedata = data;\r\n console.log(\"STATEDATA\", data);\r\n }).catch(error => {\r\n console.error(\"Error fetching state data:\", error);\r\n });\r\n }\r\n\r\n toggleDropdown() {\r\n const dropdownContent = document.getElementById(\"dropdownContent\");\r\n if (dropdownContent.style.display === \"block\") {\r\n dropdownContent.style.display = \"none\";\r\n } else {\r\n dropdownContent.style.display = \"block\";\r\n }\r\n }\r\n checkLoginStatus() {\r\n // Check if user is logged in (replace with your actual logic)\r\n // If user is logged in, set LoginDetails, otherwise set it to null\r\n if (this.LoginDetails != null) {\r\n this.LoginDetails = {\r\n\r\n };\r\n } else {\r\n this.LoginDetails = null;\r\n }\r\n }\r\n \r\n checkmobile(Mobile) {\r\n \r\n if (Mobile.length == 10) {\r\n if (this.OTPtoMobile == this.OTP) {\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Mobile\", Mobile);\r\n\r\n\r\n var url = 'api/BG/checking_Mobile'\r\n\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n //this.logindata = JSON.stringify(data[0]);\r\n //localStorage.setItem(\"LoginDetails\", this.logindata);\r\n \r\n if (data != 'NOTEXIST') {\r\n \r\n this.pwd1 = data[0].Password;\r\n this.userid = data[0].ID;\r\n this.router.navigate(['/blooddonation'])\r\n this.logindata = JSON.stringify(data[0]);\r\n localStorage.setItem(\"LoginDetails\", this.logindata);\r\n\r\n }\r\n else {\r\n\r\n this.router.navigate(['/Donersform'])\r\n // this.router.navigate(['/register', { Mobile: this.form.value.Mobile }])\r\n .then(() => {\r\n window.location.reload();\r\n });\r\n }\r\n })\r\n }\r\n }\r\n }\r\n openLoginModal() {\r\n // Show the modal here\r\n $('#myModal').modal('show');\r\n }\r\n SendOTPtoMobile() {\r\n \r\n if (!this.otpSent && this.Mobile && this.Mobile.length === 10) {\r\n this.OTPtoMobile = Math.floor(1000 + Math.random() * 9000);\r\n var Uploadfile = new FormData();\r\n Uploadfile.append(\"MobileNo\", this.Mobile)\r\n Uploadfile.append(\"OTP\", this.OTPtoMobile)\r\n var url = \"api/BG/SendOtpToMobile\";\r\n this.genralservice.PostData(url, Uploadfile).then((data: any) => {\r\n // Set otpSent to true once OTP is sent\r\n this.otpSent = true;\r\n this.showLogin1 = false;\r\n this.showLogin = true;\r\n })\r\n }\r\n }\r\n\r\n //viewDetails() {\r\n // this.modalVisible = true;\r\n // $('#myModal').modal('show');\r\n //}\r\n\r\n closeModal() {\r\n this.modalVisible = false;\r\n $('#myModal').modal('hide');\r\n }\r\n signOut() {\r\n // Remove the login details from localStorage\r\n localStorage.removeItem('LoginDetails');\r\n window.location.reload();\r\n }\r\n sharelog() {\r\n // Pass parameters to blooddonation route\r\n this.router.navigate(['/blooddonation'], { queryParams: { issharee: true } });\r\n }\r\n refresh() {\r\n this.loadDefaultData();\r\n }\r\n\r\n onSearchClick(selectedState1, selectedState2, selectedState3, selectedState6, selectedState5) {\r\n this.State = this.selectedState1 != undefined ? this.selectedState1.StateName : '';\r\n this.distict = this.selectedState2 != undefined ? this.selectedState2.DistrictName : '';\r\n this.city = this.selectedState3 != undefined ? this.selectedState3.CityName : '';\r\n this.bloodgroup = this.selectedState5 != undefined ? this.selectedState5.BLGName : '';\r\n this.Address = this.selectedState6 != undefined ? this.selectedState6.Address : '';\r\n\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param1\", this.State);\r\n UploadFile.append(\"Param2\", this.distict);\r\n UploadFile.append(\"Param3\", this.city);\r\n UploadFile.append(\"Param4\", '');\r\n UploadFile.append(\"Param5\", this.bloodgroup);\r\n UploadFile.append(\"Param6\", this.Address);\r\n\r\n var url = \"api/BG/orphanDeatils\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n this.Orphanagedata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n this.showingcontent = !this.showingcontent;\r\n }\r\n\r\n clearsearch() {\r\n this.loadDefaultData();\r\n }\r\n\r\n loadDefaultData() {\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Param1\", '');\r\n UploadFile.append(\"Param2\", '');\r\n UploadFile.append(\"Param3\", '');\r\n UploadFile.append(\"Param4\", '');\r\n UploadFile.append(\"Param5\", '');\r\n UploadFile.append(\"Param6\", '');\r\n\r\n var url = \"api/BG/orphanDeatils\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n this.Orphanagedata = data;\r\n }).catch(err => {\r\n this.genralservice.ShowAlert('ERROR', 'Something went Wrong', 'error');\r\n });\r\n }\r\n\r\n \r\n\r\n // drop down for states //\r\n searchCont(event) {\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList = [];\r\n for (var i = 0; i < this.Statedata.length; i++) {\r\n let country = this.Statedata[i];\r\n if (country.StateName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList = filtered;\r\n }\r\n }\r\n onStateSelect1(event) {\r\n console.log('Selected State:', this.selectedState1);\r\n // You can perform additional actions with the selected state here\r\n }\r\n onStateSelect2(event) {\r\n console.log('Selected Distict:', this.selectedState2);\r\n // You can perform additional actions with the selected state here\r\n }\r\n onStateSelect3(event) {\r\n console.log('Selected City:', this.selectedState3);\r\n // You can perform additional actions with the selected state here\r\n }\r\n onStateSelect4(event) {\r\n console.log('Selected Country:', this.selectedState4);\r\n // You can perform additional actions with the selected state here\r\n }\r\n onStateSelect5(event) {\r\n console.log('Selected BloodGroup:', this.selectedState5);\r\n // You can perform additional actions with the selected state here\r\n }\r\n onStateSelect6(event) {\r\n console.log('Selected Address:', this.selectedState6);\r\n }\r\n\r\n\r\n getAreas() {\r\n var url = \"api/BG/GetOrphan_Address\";\r\n this.genralservice.GetData(url).then(data => {\r\n this.Areadata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n searchCont6(event) {\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList6 = [];\r\n for (var i = 0; i < this.Areadata.length; i++) {\r\n let country = this.Areadata[i];\r\n if (country.Address.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList6 = filtered;\r\n }\r\n }\r\n getDistrict() {\r\n console.log(\"SELECTED Dirsrict-->\", this.selectedState1.StateId);\r\n this.statedisrticrcityService.getDistrict(this.selectedState1.StateId).then(districtData => {\r\n console.log(\"DISTRICTDATA\", districtData);\r\n this.districtdata = districtData;\r\n }).catch(error => {\r\n console.error(\"Error fetching district data:\", error);\r\n });\r\n\r\n }\r\n\r\n // drop down for District //\r\n searchCont1(event) {\r\n debugger\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList1 = [];\r\n for (var i = 0; i < this.districtdata.length; i++) {\r\n let country = this.districtdata[i];\r\n if (country.DistrictName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList1 = filtered;\r\n }\r\n }\r\n\r\n getCity() {\r\n console.log(\"SELECTED DISTRICTID\", this.selectedState2.DistrictID);\r\n this.statedisrticrcityService.getCity(this.selectedState2.DistrictID).then(cityData => {\r\n console.log(\"CITYDATA\", cityData);\r\n this.Citydata = cityData;\r\n }).catch(error => {\r\n console.error(\"Error fetching city data:\", error);\r\n });\r\n\r\n }\r\n\r\n // drop down for cities //\r\n searchCont2(event) {\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList2 = [];\r\n for (var i = 0; i < this.Citydata.length; i++) {\r\n let country = this.Citydata[i];\r\n if (country.CityName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList2 = filtered;\r\n }\r\n }\r\n\r\n\r\n getBloodgroup() {\r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '4');\r\n var url = \"api/BG/BloodGroupMaster_CRUDCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n this.bloodgroupdata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for bloodgroup //\r\n searchCont3(event) {\r\n\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList3 = [];\r\n for (var i = 0; i < this.bloodgroupdata.length; i++) {\r\n let country = this.bloodgroupdata[i];\r\n if (country.BLGName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList3 = filtered;\r\n }\r\n }\r\n\r\n\r\n // select country\r\n getcountry() {\r\n\r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '4');\r\n var url = \"api/BG/StatesMaster_crudCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n\r\n this.countrydata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for states //\r\n searchCont4(event) {\r\n\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList4 = [];\r\n for (var i = 0; i < this.countrydata.length; i++) {\r\n let country = this.countrydata[i];\r\n if (country.StateName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList4 = filtered;\r\n }\r\n }\r\n //pro() {\r\n \r\n // this.showingProfile = !this.showingProfile;\r\n \r\n //}\r\n\r\n pro() {\r\n\r\n if (this.LoginDetails[0].RoleId === 4 && (this.LoginDetails[0].Rolestatus === false || this.LoginDetails[0].Rolestatus==null)) {\r\n this.router.navigate(['/Volunteerprofile']);\r\n\r\n } else {\r\n this.showingProfile = !this.showingProfile;\r\n\r\n }\r\n }\r\n\r\n share() {\r\n \r\n this.router.navigate(['/Orphanage']);\r\n \r\n }\r\n register() {\r\n \r\n this.router.navigate(['/Oldagehome']);\r\n }\r\n\r\n requestlogin() {\r\n \r\n this.router.navigate(['/blooddonation']);\r\n \r\n }\r\n\r\n gallerycat() {\r\n \r\n var uploadfile = new FormData()\r\n uploadfile.append(\"Param\", '3');\r\n var url = \"api/BG/Get_GallaryImagedBasedOn_ID\";\r\n this.genralservice.PostData(url, uploadfile).then(data => {\r\n \r\n this.GallaryCategory = data;\r\n this.GalleryImages1 = this.GallaryCategory[0].GalleryImages;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n Gallery() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // Route to login page\r\n window.open('/Gallery', '_self');\r\n return; // Stop further execution\r\n }\r\n else {\r\n window.open('/Gallery', '_self');\r\n }\r\n\r\n }\r\n\r\n cleanUpUrl(url: string): string {\r\n // Remove leading and trailing spaces\r\n return url.trim();\r\n }\r\n\r\n getprofile() {\r\n debugger\r\n this.arr = [];\r\n this.arr.push({});\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Mobile\", this.LoginDetails ? (this.LoginDetails.Phonenumber || (this.LoginDetails[0] && this.LoginDetails[0].Phonenumber)) : '');\r\n\r\n var url = \"api/BG/checking_Mobile\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n this.profiledata = data;\r\n this.bindFormData(this.profiledata);\r\n\r\n this.LoginDetails = this.profiledata;\r\n // Call bindFormData with the received data\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error');\r\n });\r\n }\r\n\r\n reg() {\r\n \r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // Route to login page\r\n this.router.navigate(['/Login']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n this.router.navigate(['/Profile']).then(() => { window.location.reload(); });\r\n }\r\n }\r\n\r\n bindFormData(data) {\r\n debugger\r\n if (data) {\r\n \r\n this.selectedGender = data[0].Gender;\r\n this.selectedpast = data[0].PastDonation;\r\n const lastDonateDate = data[0].Lastdonatedate && !isNaN(Date.parse(data[0].Lastdonatedate)) ?\r\n this.datePipe.transform(new Date(data[0].Lastdonatedate), 'yyyy-MM-dd') : null;\r\n\r\n const dob = data[0].DOB && !isNaN(Date.parse(data[0].DOB)) ?\r\n this.datePipe.transform(new Date(data[0].DOB), 'yyyy-MM-dd') : null;\r\n\r\n \r\n this.form.patchValue({\r\n\r\n username: data[0].FullName,\r\n mobile: data[0].Phonenumber,\r\n email: data[0].Email,\r\n age: data[0].Age,\r\n bloodgroup: data[0].BLGName,\r\n BloodGroupId: data[0].BLGId,\r\n statename: data[0].StateName,\r\n StateId: data[0].StateId,\r\n districtname: data[0].DistrictName,\r\n DistrictId: data[0].DistrictId,\r\n cityname: data[0].CityName,\r\n CityId: data[0].CityId,\r\n useraddress: data[0].UserAddress,\r\n area: data[0].Area,\r\n Status: data[0].Status || data.Status,\r\n Weight: data[0].Weight,\r\n Pincode: data[0].Pincode,\r\n \r\n \r\n Statusphn: data[0].Statusphn || data.Statusphn,\r\n Rolestatus: data[0].Rolestatus || data.Rolestatus,\r\n Lastdonatedate: lastDonateDate,\r\n Messagetorequester: data[0].Messagetorequester\r\n });\r\n }\r\n }\r\n\r\n\r\n Donersform() {\r\n \r\n if (!this.form.value.username || !this.form.value.mobile || !this.form.value.bloodgroup || !this.form.value.Weight || !this.form.value.age || !this.form.value.Pincode || this.selectedGender === \"\" ||\r\n this.selectedpast === \"\") {\r\n this.genralservice.ShowAlert(\"ERROR\", 'Please fill all required fields', 'error');\r\n return; // Stop further execution of the method\r\n }\r\n\r\n ;\r\n this.arr = [];\r\n const bloodgroup = this.form.value.bloodgroup && this.form.value.bloodgroup.BLGId !== undefined\r\n ? this.form.value.bloodgroup.BLGId\r\n : this.LoginDetails[0] && this.LoginDetails[0].BLGId !== undefined\r\n ? this.LoginDetails[0].BLGId\r\n : this.LoginDetails.BLGId !== undefined\r\n ? this.LoginDetails.BLGId\r\n : this.LoginDetails.BloodGroupId;\r\n\r\n const stateId = this.form.value.statename && this.form.value.statename.StateId !== undefined\r\n ? this.form.value.statename.StateId\r\n : this.LoginDetails[0] && this.LoginDetails[0].StateId !== undefined\r\n ? this.LoginDetails[0].StateId\r\n : this.LoginDetails.StateId !== undefined\r\n ? this.LoginDetails.StateId\r\n : this.LoginDetails.StateID;\r\n\r\n const districtId = this.form.value.districtname && this.form.value.districtname.DistrictID !== undefined\r\n ? this.form.value.districtname.DistrictID\r\n : this.LoginDetails[0] && this.LoginDetails[0].DistrictID !== undefined\r\n ? this.LoginDetails[0].DistrictID\r\n : this.LoginDetails.DistrictID !== undefined\r\n ? this.LoginDetails.DistrictID\r\n : this.LoginDetails.DistrictID;\r\n\r\n const cityId = this.form.value.cityname && this.form.value.cityname.CityId !== undefined\r\n ? this.form.value.cityname.CityId\r\n : this.LoginDetails[0] && this.LoginDetails[0].CityId !== undefined\r\n ? this.LoginDetails[0].CityId\r\n : this.LoginDetails.CityId !== undefined\r\n ? this.LoginDetails.CityId\r\n : this.LoginDetails.CityID;\r\n const lastDonateDate = this.selectedpast === 'No' ? null : this.form.value.Lastdonatedate || this.LoginDetails.Lastdonatedate;\r\n let updatedRoleId: string;\r\n\r\n if (this.LoginDetails && this.LoginDetails[0].RoleId != null) {\r\n if (this.LoginDetails[0].RoleId === 0) {\r\n updatedRoleId = '2';\r\n } else if (this.LoginDetails[0].RoleId > 0) {\r\n updatedRoleId = this.LoginDetails[0].RoleId;\r\n }\r\n }\r\n this.arr.push({\r\n RegId: this.LoginDetails ? (this.LoginDetails[0] ? this.LoginDetails[0].RegId : this.LoginDetails.RegId) : '',\r\n TokenId: this.LoginDetails ? (this.LoginDetails[0] ? this.LoginDetails[0].TokenId : this.LoginDetails.TokenId) : '',\r\n FullName: this.form.value.username,\r\n Phonenumber: this.form.value.mobile,\r\n Weight: this.form.value.Weight,\r\n Email: this.form.value.email || this.LoginDetails.Email,\r\n Gender: this.selectedGender || this.LoginDetails.Gender,\r\n Lastdonatedate: lastDonateDate,\r\n \r\n Pincode: this.form.value.Pincode || this.LoginDetails.Pincode,\r\n PastDonation: this.selectedpast,\r\n age: this.form.value.age || this.LoginDetails.Age,\r\n BloodGroupId: bloodgroup,\r\n StateId: stateId,\r\n DistrictId: districtId,\r\n CityId: cityId,\r\n UserAddress: this.form.value.useraddress || this.LoginDetails.UserAddress,\r\n Area: this.form.value.area || this.LoginDetails.Area,\r\n Messagetorequester: this.form.value.Messagetorequester || this.LoginDetails.Messagetorequester,\r\n RoleId: updatedRoleId,\r\n Status: this.form.value.Status || this.LoginDetails.Status,\r\n Statusphn: this.form.value.Statusphn || this.LoginDetails.Statusphn,\r\n Rolestatus: this.form.value.Rolestatus || this.LoginDetails.Rolestatus,\r\n });\r\n\r\n var uploadfile = new FormData();\r\n uploadfile.append(\"Param\", JSON.stringify(this.arr));\r\n uploadfile.append(\"Flag\", '2');\r\n var url = \"api/BG/Insert_Update_DonersForm\";\r\n this.genralservice.PostData(url, uploadfile).then(data => {\r\n \r\n if (data == \"SUCCESS\") {\r\n if (this.flag == 2) {\r\n this.genralservice.ShowAlert(\"ERROR\", 'Profile Updated Succesfully', 'error');\r\n } else {\r\n\r\n localStorage.setItem('LoginDetails', JSON.stringify(this.arr));\r\n this.genralservice.ShowAlert(\"SUCCESS\", 'Profile Updated Succesfully', 'success');\r\n this.router.navigate(['/blooddonation']).then(() => {\r\n window.location.reload();\r\n\r\n });\r\n\r\n }\r\n this.form.reset();\r\n } else {\r\n this.genralservice.ShowAlert(\"ERROR\", 'Something went wrong. Please check validation fields', 'error');\r\n }\r\n });\r\n }\r\n toggleStatuss(checked: boolean) {\r\n this.form.controls['Status'].setValue(checked);\r\n }\r\n\r\n\r\n toggleStatuss1(checked: boolean) {\r\n this.form.controls['Statusphn'].setValue(checked);\r\n }\r\n\r\n\r\n toggleStatuss2(checked: boolean) {\r\n this.form.controls['Rolestatus'].setValue(checked);\r\n }\r\n selectGender(gender: string) {\r\n \r\n this.selectedGender = gender;\r\n }\r\n PastDonation(Past: string) {\r\n \r\n this.selectedpast = Past;\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 {{ letter }}\r\n \r\n
\r\n
\r\n \r\n
\r\n LOGIN
\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 Search Orphanage\r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n
\r\n
Search \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 Note : Enable or disable the visibility of your details to the public for donation \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 Note : Enable or disable the visibility of your phone number to the public for donation \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n
\r\n\r\n\r\n\r\n
\r\n Full Name* \r\n
\r\n
\r\n \r\n Donor Name is required \r\n\r\n
\r\n\r\n
\r\n Mobile Number* \r\n
\r\n
\r\n \r\n Donor Mobile is required \r\n\r\n
\r\n\r\n
\r\n Email \r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n Gender* \r\n
\r\n
\r\n\r\n
\r\n Ever donated blood* \r\n
\r\n
\r\n
\r\n
\r\n\r\n Last donate date* \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n\r\n
\r\n
\r\n
\r\n Weight* \r\n
\r\n
\r\n \r\n Donor Weight is required \r\n\r\n
\r\n\r\n\r\n
\r\n Age* \r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n Blood Group* \r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n\r\n\r\n
blood group is required. \r\n
\r\n
\r\n\r\n\r\n
\r\n State Name \r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n \r\n\r\n
State Name is required. \r\n
\r\n\r\n
\r\n\r\n
\r\n District Name \r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n \r\n\r\n
District Name is required. \r\n
\r\n
\r\n\r\n\r\n
\r\n City Name \r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n\r\n\r\n
City Name is required. \r\n
\r\n\r\n
\r\n\r\n\r\n
\r\n User Address \r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n Area \r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n Pincode* \r\n
\r\n\r\n
\r\n \r\n Pincode is required \r\n\r\n
\r\n\r\n
\r\n Message \r\n
\r\n
\r\n \r\n
\r\n\r\n \r\n\r\n
\r\n Note: Enable or disable to become as a donor \r\n
\r\n
\r\n Note: Enable or disable to become as a volunteer \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 Cancel \r\n
\r\n\r\n
\r\n Update \r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n Let's Help Gallery\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
{{item.categoryname}}
\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 \"An orphanage is a residential institution, total institution ,\r\n or group home , devoted to the care of orphans and children who,\r\n for various reasons, cannot be cared for by their biological families. The parents may be\r\n deceased , absent , or abusive . There may be\r\n substance abuse or mental illness in the biological home,\r\n or the parent may simply be unwilling to care for the child. The legal responsibility for the support of\r\n abandoned children differs from country to country, and within countries.\" \r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n
\r\n
Search Results
\r\n
\r\n
\r\n \r\n Orphanage Name \r\n Phone Number \r\n State Name \r\n District Name \r\n City Name \r\n Address \r\n Pincode \r\n SiteURL \r\n\r\n \r\n \r\n {{item.Orphanage_Name}} \r\n {{item.PhoneNumber}} \r\n {{item.StateName}} \r\n {{item.DistrictName}} \r\n {{item.CityName}} \r\n {{item.Address}} \r\n {{item.Pincode}} \r\n \r\n {{item.SiteURL}} \r\n \r\n\r\n \r\n
\r\n\r\n
\r\n
\r\n No search results available on this search querry. \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 } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-home-eight',\r\n templateUrl: './home-eight.component.html',\r\n styleUrls: ['./home-eight.component.scss']\r\n})\r\nexport class HomeEightComponent implements OnInit {\r\n\r\n constructor(private viewportScroller: ViewportScroller) {}\r\n\r\n public onClick(elementId: string): void { \r\n this.viewportScroller.scrollToAnchor(elementId);\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n}\r\n","\r\n
\r\n
\r\n
\r\n
\r\n
We Are Creative \r\n
We Are \r\n \r\n \r\n \r\n \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\r\n
Get Started \r\n
View Work \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\r\n \r\n\r\n ","import { Component, OnInit } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-home-eleven',\r\n templateUrl: './home-eleven.component.html',\r\n styleUrls: ['./home-eleven.component.scss']\r\n})\r\nexport class HomeElevenComponent implements OnInit {\r\n\r\n constructor(private viewportScroller: ViewportScroller) {}\r\n\r\n public onClick(elementId: string): void { \r\n this.viewportScroller.scrollToAnchor(elementId);\r\n }\r\n\r\n myStyle: object = {};\r\n myParams: object = {};\r\n width: number = 100;\r\n height: number = 100;\r\n \r\n ngOnInit() {\r\n this.myStyle = {\r\n 'top': 0,\r\n 'left': 0,\r\n 'width': '100%',\r\n 'height': '100%',\r\n 'position': 'absolute'\r\n };\r\n this.myParams = {\r\n particles: {\r\n number: {\r\n value: 80,\r\n },\r\n color: {\r\n value: '#ffffff'\r\n },\r\n shape: {\r\n type: 'triangle',\r\n },\r\n }\r\n };\r\n }\r\n\r\n}","\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
We Are Creative \r\n
We Are \r\n \r\n \r\n \r\n \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\r\n
Get Started \r\n
View Work \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\r\n \r\n\r\n ","import { Component, OnInit } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-home-five',\r\n templateUrl: './home-five.component.html',\r\n styleUrls: ['./home-five.component.scss']\r\n})\r\nexport class HomeFiveComponent implements OnInit {\r\n\r\n constructor(private viewportScroller: ViewportScroller) {}\r\n\r\n public onClick(elementId: string): void { \r\n this.viewportScroller.scrollToAnchor(elementId);\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n}\r\n","\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
We Are Creative \r\n
The Best Digital Experience \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\r\n
Get Started \r\n
View Work \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 \r\n\r\n \r\n\r\n ","import { Component, OnInit } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-home-four',\r\n templateUrl: './home-four.component.html',\r\n styleUrls: ['./home-four.component.scss']\r\n})\r\nexport class HomeFourComponent implements OnInit {\r\n\r\n constructor(private viewportScroller: ViewportScroller) {}\r\n\r\n public onClick(elementId: string): void { \r\n this.viewportScroller.scrollToAnchor(elementId);\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n}\r\n","\r\n
\r\n
\r\n
\r\n
\r\n
We Are Creative \r\n
The Best Digital Experience \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\r\n
Get Started \r\n
View Work \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\r\n \r\n\r\n ","import { Component, OnInit } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-home-nine',\r\n templateUrl: './home-nine.component.html',\r\n styleUrls: ['./home-nine.component.scss']\r\n})\r\nexport class HomeNineComponent implements OnInit {\r\n\r\n constructor(private viewportScroller: ViewportScroller) {}\r\n\r\n public onClick(elementId: string): void { \r\n this.viewportScroller.scrollToAnchor(elementId);\r\n }\r\n\r\n myStyle: object = {};\r\n myParams: object = {};\r\n width: number = 100;\r\n height: number = 100;\r\n \r\n ngOnInit() {\r\n this.myStyle = {\r\n 'top': 0,\r\n 'left': 0,\r\n 'width': '100%',\r\n 'height': '100%',\r\n 'position': 'absolute'\r\n };\r\n this.myParams = {\r\n particles: {\r\n number: {\r\n value: 80,\r\n },\r\n color: {\r\n value: '#ffffff'\r\n },\r\n shape: {\r\n type: 'triangle',\r\n },\r\n }\r\n };\r\n }\r\n\r\n}","\r\n
\r\n
\r\n
\r\n
\r\n
We Are Creative \r\n
The Best Digital Experience \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\r\n
Get Started \r\n
View Work \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\r\n \r\n\r\n ","import { Component, OnInit } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\nimport { Router } from '@angular/router';\r\n@Component({\r\n selector: 'app-home-one',\r\n templateUrl: './home-one.component.html',\r\n styleUrls: ['./home-one.component.scss']\r\n})\r\nexport class HomeOneComponent implements OnInit {\r\n\r\n LoginDetails1: any; LoginDetails: any;\r\n constructor(private router: Router) {\r\n this.LoginDetails1 = localStorage.getItem(\"LoginDetails\");\r\n this.LoginDetails = JSON.parse(this.LoginDetails1);\r\n }\r\n ngOnInit() { }\r\n reg() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // Route to login page\r\n this.router.navigate(['/Login']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n this.router.navigate(['/Profile']);\r\n }\r\n }\r\n\r\n vol() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // If LoginDetails is empty or not set, route to the login page\r\n this.router.navigate(['/Volunteerlogin']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n // Assuming roleid is a property of LoginDetails\r\n if ((this.LoginDetails[0].RoleId === 4 && (this.LoginDetails[0].Rolestatus === false || this.LoginDetails[0].Rolestatus === null)) || (this.LoginDetails[0].RoleId === 4 && this.LoginDetails[0].Rolestatus === true) || (this.LoginDetails[0].RoleId === 2 && this.LoginDetails[0].Rolestatus === true)) {\r\n // If roleid is 4, navigate to the '/Volunters' page\r\n this.router.navigate(['/Volunters']);\r\n }\r\n\r\n else if (this.LoginDetails[0].RoleId === 0 && (this.LoginDetails[0].Rolestatus === false)) {\r\n // If roleid is not 4, display an alert message\r\n this.router.navigate(['/Volunteerprofile']);\r\n // alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n else {\r\n this.router.navigate(['/Profile']);\r\n alert(\"Please update your profile as a volunteer to access this page.\");\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 Let's Fight \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\r\n\r\n\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-home-seven',\r\n templateUrl: './home-seven.component.html',\r\n styleUrls: ['./home-seven.component.scss']\r\n})\r\nexport class HomeSevenComponent implements OnInit {\r\n\r\n constructor(private viewportScroller: ViewportScroller) {}\r\n\r\n public onClick(elementId: string): void { \r\n this.viewportScroller.scrollToAnchor(elementId);\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n}\r\n","\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
We Are Creative \r\n
The Best Digital Experience \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\r\n
Get Started \r\n
View Work \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\r\n \r\n\r\n ","import { Component, OnInit } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-home-six',\r\n templateUrl: './home-six.component.html',\r\n styleUrls: ['./home-six.component.scss']\r\n})\r\nexport class HomeSixComponent implements OnInit {\r\n\r\n constructor(private viewportScroller: ViewportScroller) {}\r\n\r\n public onClick(elementId: string): void { \r\n this.viewportScroller.scrollToAnchor(elementId);\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n}\r\n","\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
We Are Creative \r\n
The Best Digital Experience \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\r\n
Get Started \r\n
View Work \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\r\n \r\n\r\n ","import { Component, OnInit } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-home-ten',\r\n templateUrl: './home-ten.component.html',\r\n styleUrls: ['./home-ten.component.scss']\r\n})\r\nexport class HomeTenComponent implements OnInit {\r\n\r\n constructor(private viewportScroller: ViewportScroller) {}\r\n\r\n public onClick(elementId: string): void { \r\n this.viewportScroller.scrollToAnchor(elementId);\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n}\r\n","\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
We Are Creative \r\n
We Are \r\n \r\n \r\n \r\n \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\r\n
Get Started \r\n
View Work \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\r\n \r\n\r\n ","import { Component, OnInit } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-home-thirteen',\r\n templateUrl: './home-thirteen.component.html',\r\n styleUrls: ['./home-thirteen.component.scss']\r\n})\r\nexport class HomeThirteenComponent implements OnInit {\r\n\r\n constructor(private viewportScroller: ViewportScroller) {}\r\n\r\n public onClick(elementId: string): void { \r\n this.viewportScroller.scrollToAnchor(elementId);\r\n }\r\n\r\n myStyle: object = {};\r\n myParams: object = {};\r\n width: number = 100;\r\n height: number = 100;\r\n \r\n ngOnInit() {\r\n this.myStyle = {\r\n 'top': 0,\r\n 'left': 0,\r\n 'width': '100%',\r\n 'height': '100%',\r\n 'position': 'absolute'\r\n };\r\n this.myParams = {\r\n particles: {\r\n number: {\r\n value: 80,\r\n },\r\n color: {\r\n value: '#ffffff'\r\n },\r\n shape: {\r\n type: 'stroke',\r\n },\r\n }\r\n };\r\n }\r\n\r\n}","\r\n
\r\n
\r\n
\r\n
\r\n
We Are Creative \r\n
The Best Digital Experience \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\r\n
Get Started \r\n
View Work \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\r\n \r\n\r\n ","import { Component, OnInit } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-home-three',\r\n templateUrl: './home-three.component.html',\r\n styleUrls: ['./home-three.component.scss']\r\n})\r\nexport class HomeThreeComponent implements OnInit {\r\n\r\n constructor(private viewportScroller: ViewportScroller) {}\r\n\r\n public onClick(elementId: string): void { \r\n this.viewportScroller.scrollToAnchor(elementId);\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n}\r\n","\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
We Are Creative \r\n
The Best Digital Experience \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\r\n
Get Started \r\n
View Work \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\r\n \r\n\r\n ","import { Component, OnInit } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-home-twelve',\r\n templateUrl: './home-twelve.component.html',\r\n styleUrls: ['./home-twelve.component.scss']\r\n})\r\nexport class HomeTwelveComponent implements OnInit {\r\n\r\n constructor(private viewportScroller: ViewportScroller) {}\r\n\r\n public onClick(elementId: string): void { \r\n this.viewportScroller.scrollToAnchor(elementId);\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n}\r\n","\r\n
\r\n
\r\n
\r\n
\r\n
We Are Creative \r\n
The Best Digital Experience \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\r\n
Get Started \r\n
View Work \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\r\n \r\n\r\n ","import { Component, OnInit } from '@angular/core';\r\nimport { OwlOptions } from 'ngx-owl-carousel-o';\r\nimport { ViewportScroller } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-home-two',\r\n templateUrl: './home-two.component.html',\r\n styleUrls: ['./home-two.component.scss']\r\n})\r\nexport class HomeTwoComponent implements OnInit {\r\n\r\n constructor(private viewportScroller: ViewportScroller) {}\r\n\r\n public onClick(elementId: string): void { \r\n this.viewportScroller.scrollToAnchor(elementId);\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n homeSlides: OwlOptions = {\r\n\t\tloop: true,\r\n\t\tnav: true,\r\n\t\tdots: false,\r\n\t\tautoplayHoverPause: true,\r\n\t\titems: 1,\r\n\t\tautoHeight: true,\r\n\t\tsmartSpeed: 750,\r\n\t\tautoplay: true,\r\n\t\tnavText: [\r\n\t\t\t\" \",\r\n\t\t\t\" \"\r\n\t\t]\r\n }\r\n\r\n}","\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
We Are Creative \r\n
Nice To Meet You \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\r\n
Get Started \r\n
View Work \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
We Are Professional \r\n
Best Digital Experience \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\r\n
Get Started \r\n
View Work \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
We Are Designer \r\n
Creativity is Intelligence \r\n
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\r\n
Get Started \r\n
View Work \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 \r\n\r\n \r\n\r\n ","import { Component } from '@angular/core';\r\nimport { GeneralService } from '../../general.service';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { FormBuilder, FormControl, Validators, FormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { Router } from '@angular/router';\r\ndeclare var $: any;\r\n@Component({\r\n selector: 'app-hospital',\r\n templateUrl: './hospital.component.html',\r\n styleUrls: ['./hospital.component.scss']\r\n})\r\nexport class HospitalComponent {\r\n activeCardIndex: number = -1;\r\n public form: FormGroup;\r\n arr: any = []; profiledata: any;\r\n districtdata: any = [];\r\n deptList: any;\r\n flag: any; data: any[] = [];\r\n Statedata: any = [];\r\n Citydata: any = [];\r\n deptList1: any;\r\n deptList2: any; bloodgroupdata: any = [];\r\n subDropdownStyle: { [key: string]: string } = {};\r\n isMouseOverSubDropdown: boolean = false;\r\n showDropdownContent = false;\r\n selectedBloodgroup: string = '';\r\n GalleryImages: any;\r\n imagefile2: any;\r\n HomeUrl: any;\r\n GalleryID: any;\r\n Form: FormGroup;\r\n LoginDetails1: any; LoginDetails: any\r\n HsptName: any = []; deptList3: any;\r\n RegId: any;\r\n addextra: any;\r\n\r\n pwd1: any;\r\n userid: any;\r\n Mobile: any;\r\n OTP: any;\r\n OTPtoMobile: any;\r\n logindata: any;\r\n otpSent: boolean = false;\r\n showLogin: boolean = false;\r\n showLogin1: boolean = true;\r\n modalVisible: false;\r\n Age: any;\r\n BloodRequestDate: any;\r\n RequestTime: any;\r\n Purpose: any;\r\n letter: any;\r\n HsptID: any;\r\n hstid: any;\r\n sid: any;\r\n ddid: any;\r\n ccid: any;\r\n pcname: any;\r\n hspa: any;\r\n cty: any;\r\n pic: any;\r\n dit: any;\r\n stn: any;\r\n dct: any;\r\n hptn: any;\r\n pom: any;\r\n pccc: any;\r\n filteredDeptList: any[];\r\n ButtonText: any;\r\n constructor(public genralservice: GeneralService, public http: HttpClient, public fb: FormBuilder, private router: Router) {\r\n\r\n this.LoginDetails1 = localStorage.getItem(\"LoginDetails\");\r\n this.LoginDetails = JSON.parse(this.LoginDetails1);\r\n if (Array.isArray(this.LoginDetails) && this.LoginDetails.length > 0) {\r\n this.letter = this.LoginDetails[0].FullName.charAt(0);\r\n } else if (this.LoginDetails && this.LoginDetails.FullName) {\r\n this.letter = this.LoginDetails.FullName.charAt(0);\r\n } else {\r\n this.letter = '';\r\n }\r\n this.form = this.fb.group({\r\n HsptName: ['', Validators.required],\r\n HsptAddress: [''],\r\n HsptPhNum: [''],\r\n statename: [''],\r\n districtname: [''],\r\n cityname: [''],\r\n POCName: [''],\r\n Pincode: ['', Validators.required],\r\n POC_ContactNumber: [''],\r\n DoctorName: [''],\r\n CityExtraName:[''],\r\n });\r\n\r\n\r\n }\r\n ngOnInit(): void {\r\n this.GetHospitals();\r\n this.getstate();\r\n this.getDistrict();\r\n this.getCity();\r\n\r\n }\r\n getstate() {\r\n \r\n this.arr = []\r\n this.arr.push({\r\n RegId: this.LoginDetails[0].RegId,\r\n TokenId: this.LoginDetails[0].TokenId,\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '4');\r\n var url = \"api/BG/StatesMaster_crudCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n\r\n this.Statedata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for states //\r\n searchCont(event) {\r\n \r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList = [];\r\n for (var i = 0; i < this.Statedata.length; i++) {\r\n let country = this.Statedata[i];\r\n if (country.StateName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList = filtered;\r\n }\r\n }\r\n\r\n\r\n filterDepts(event) {\r\n const query = event.query;\r\n this.filteredDeptList = this.deptList3.filter(dept => dept.HsptName.toLowerCase().indexOf(query.toLowerCase()) !== -1);\r\n }\r\n\r\n\r\n getDistrict() {\r\n \r\n this.arr = []\r\n this.arr.push({\r\n RegId: this.LoginDetails[0].RegId,\r\n TokenId: this.LoginDetails[0].TokenId,\r\n StateId: this.form.value.statename.StateId\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '5');\r\n var url = \"api/BG/DistrictMaster_crudCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n \r\n this.districtdata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for District //\r\n searchCont1(event) {\r\n\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList1 = [];\r\n for (var i = 0; i < this.districtdata.length; i++) {\r\n let country = this.districtdata[i];\r\n if (country.DistrictName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList1 = filtered;\r\n }\r\n }\r\n\r\n\r\n refresh() {\r\n this.form.reset();\r\n window.location.reload();\r\n }\r\n getCity() {\r\n \r\n this.arr = []\r\n this.arr.push({\r\n RegId: this.LoginDetails[0].RegId,\r\n TokenId: this.LoginDetails[0].TokenId,\r\n DistrictId: this.form.value.districtname.DistrictID,\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '5');\r\n var url = \"api/BG/CitiesMaster_Crudcustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n \r\n this.Citydata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for cities //\r\n searchCont2(event) {\r\n\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList2 = [];\r\n for (var i = 0; i < this.Citydata.length; i++) {\r\n let country = this.Citydata[i];\r\n if (country.CityName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList2 = filtered;\r\n }\r\n }\r\n\r\n\r\n\r\n GetHospitals() {\r\n debugger\r\n this.arr = []\r\n this.arr.push({\r\n RegId: this.LoginDetails[0].RegId ,\r\n TokenId: this.LoginDetails[0].TokenId ,\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '6');\r\n var url = \"api/BG/HospitalDetails_CRUD\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n debugger\r\n this.HsptName = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n searchCont3(event) {\r\n debugger\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n\r\n this.deptList3 = [];\r\n for (var i = 0; i < this.HsptName.length; i++) {\r\n\r\n let country = this.HsptName[i];\r\n if (country.HsptName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList3 = filtered;\r\n }\r\n }\r\n\r\n\r\n\r\n onDropdownSelect(value: any) {\r\n \r\n console.log(\"Dropdown item selected:\", value);\r\n if (value && value.value.HsptID) {\r\n this.hstid = value.value.HsptID;\r\n this.flag = 2;\r\n this.GetHospitalsfilter();\r\n //this.GetHospitalsfilter(value.value.HsptID);\r\n } else {\r\n console.error(\"Invalid selected item:\", value);\r\n }\r\n }\r\n\r\n\r\n\r\n\r\n GetHospitalsfilter() {\r\n \r\n // No need to pass HsptID to an array, you can directly use it here\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Param1\", this.hstid);\r\n var url = \"api/BG/Get_Hospital\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n \r\n this.HsptName = data;\r\n this.bindFormDatas(this.HsptName);\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error');\r\n });\r\n }\r\n bindFormDatas(data) {\r\n \r\n if (data) {\r\n // Create a copy of the existing form values\r\n const formValues = { ...this.form.value };\r\n\r\n // Update only the fields that have corresponding data in 'data'\r\n \r\n if (data[0].HsptPhNum) {\r\n formValues.HsptPhNum = data[0].HsptPhNum;\r\n this.hptn = data[0].HsptPhNum\r\n }\r\n //if (data[0].DoctorName) {\r\n // formValues.DoctorName = data[0].DoctorName;\r\n // this.dct = data[0].DoctorName\r\n //}\r\n if (data[0].StateName) {\r\n formValues.statename = data[0].StateName;\r\n this.stn = data[0].StateName\r\n }\r\n if (data[0].StateId) {\r\n formValues.StateId = data[0].StateId;\r\n this.sid = data[0].StateId\r\n }\r\n if (data[0].DistrictName) {\r\n formValues.districtname = data[0].DistrictName;\r\n this.dit = data[0].DistrictName\r\n }\r\n if (data[0].DistrictID) {\r\n formValues.DistrictId = data[0].DistrictId;\r\n this.ddid = data[0].DistrictID\r\n }\r\n if (data[0].CityName) {\r\n formValues.cityname = data[0].CityName;\r\n this.cty = data[0].CityName\r\n }\r\n if (data[0].CityId) {\r\n formValues.CityId = data[0].CityId;\r\n\r\n this.ccid = data[0].CityId\r\n }\r\n if (data[0].HsptAddress) {\r\n formValues.HsptAddress = data[0].HsptAddress;\r\n this.hspa = data[0].HsptAddress\r\n }\r\n if (data[0].POCName) {\r\n formValues.POCName = data[0].POCName;\r\n this.pom = data[0].HsptAddress\r\n }\r\n if (data[0].POC_ContactNumber) {\r\n formValues.POC_ContactNumber = data[0].POC_ContactNumber;\r\n this.pccc = data[0].HsptAddress\r\n }\r\n if (data[0].Pincode) {\r\n formValues.Pincode = data[0].Pincode;\r\n this.pic = data[0].Pincode\r\n }\r\n \r\n // Update the form with the modified values\r\n this.form.patchValue(formValues);\r\n }\r\n }\r\n //addNewTrip(addextra) {\r\n \r\n // //this.trip != newTrip\r\n // this.addextra = 2;\r\n //}\r\n AddBanner(value) {\r\n debugger\r\n const Flag = '1';\r\n if (!value.HsptName) {\r\n this.genralservice.ShowAlert('Warning', 'Please provide the name of the hospital.', 'Warning');\r\n return;\r\n }\r\n if (!value.HsptPhNum) {\r\n this.genralservice.ShowAlert('Warning', 'Please provide the contact number of the hospital.', 'Warning');\r\n return;\r\n }\r\n if (!value.DoctorName) {\r\n this.genralservice.ShowAlert('Warning', 'Please provide the Doctor name.', 'Warning');\r\n return;\r\n }\r\n if (!value.statename) {\r\n this.genralservice.ShowAlert('Warning', 'Please provide the name of the state.', 'Warning');\r\n return;\r\n }\r\n if (!value.POCName) {\r\n this.genralservice.ShowAlert('Warning', 'Please provide the name of the POC.', 'Warning');\r\n return;\r\n }\r\n if (!value.POC_ContactNumber) {\r\n this.genralservice.ShowAlert('Warning', 'Please provide the contact number of the POC.', 'Warning');\r\n return;\r\n } if (!value.Pincode) {\r\n this.genralservice.ShowAlert('Warning', 'Please provide the Pincode.', 'Warning');\r\n return;\r\n }\r\n \r\n const stateId =\r\n this.data[0]?.StateId === undefined\r\n ? this.form.value.statename && this.form.value.statename.StateId\r\n : this.data[0].StateId;\r\n\r\n const districtId =\r\n this.data[0]?.DistrictId === undefined\r\n ? this.form.value.districtname && this.form.value.districtname.DistrictID\r\n : this.data[0].DistrictId;\r\n const cityId =\r\n this.data[0]?.CityId === undefined\r\n ? this.form.value.cityname && this.form.value.cityname.CityId\r\n : this.data[0].CityId;\r\n \r\n var arr = [];\r\n \r\n arr.push({\r\n RegId: this.LoginDetails[0].RegId,\r\n TokenId: this.LoginDetails[0].TokenId,\r\n HsptID: this.form.value.HsptName.HsptID,\r\n // HsptName: this.form.value.HsptName.HsptName.split(' - ')[0],\r\n HsptName: typeof this.form.value.HsptName === 'string'\r\n ? this.form.value.HsptName\r\n : this.form.value.HsptName.HsptName.split(' - ')[0],\r\n\r\n HsptAddress: this.form.value.HsptAddress,\r\n // StateId: stateId,\r\n //DistrictID: districtId,\r\n //CityId: cityId,\r\n StateId: stateId !== undefined ? stateId : this.sid,\r\n DistrictID: districtId !== undefined ? districtId : this.ddid,\r\n CityId: cityId !== undefined ? cityId : this.ccid,\r\n CreatedBy: this.LoginDetails[0].RegId,\r\n\r\n \r\n POCName: this.form.value.POCName,\r\n POC_ContactNumber: this.form.value.POC_ContactNumber,\r\n Pincode: this.form.value.Pincode,\r\n HsptPhNum: this.form.value.HsptPhNum,\r\n DoctorName: this.form.value.DoctorName,\r\n });\r\n\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Param\", JSON.stringify(arr));\r\n UploadFile.append(\"Flag\", \"1\");\r\n var url = \"api/BG/HospitalDetails_CRUD\";\r\n\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n \r\n if (data == \"SUCCESS\") {\r\n if (Flag == '1') {\r\n this.genralservice.ShowAlert('SUCCESS', 'Hospital added successfully', 'success');\r\n } else {\r\n this.genralservice.ShowAlert('SUCCESS', 'Hospital updated successfully', 'success');\r\n }\r\n // Reload the form\r\n this.form.reset();\r\n // this.form.controls['HsptName'].reset(); // Reset specific control if needed\r\n }\r\n if (data == \"Exist\") {\r\n this.genralservice.ShowAlert('Exist', 'Data Already Exist', 'success');\r\n }\r\n }, error => ({\r\n title: 'ERROR',\r\n text: 'Something went wrong. Please try again later.',\r\n type: 'error',\r\n confirmButtonText: 'Ok'\r\n })).then(() => {\r\n // Reload the page\r\n // this.addextra = 1;\r\n window.location.reload();\r\n });\r\n }\r\n\r\n\r\n //Addhospital(value) {\r\n \r\n // const Flag = '7';\r\n \r\n\r\n // var arr = [];\r\n\r\n // arr.push({\r\n // RegId: this.LoginDetails[0].RegId,\r\n // TokenId: this.LoginDetails[0].TokenId,\r\n // HsptID: this.form.value.HsptName.HsptID,\r\n // HsptName: this.form.value.HsptName, \r\n // });\r\n\r\n // var UploadFile = new FormData();\r\n // UploadFile.append(\"Param\", JSON.stringify(arr));\r\n // UploadFile.append(\"Flag\", \"7\");\r\n // var url = \"api/BG/HospitalDetails_CRUD\";\r\n\r\n // this.genralservice.PostData(url, UploadFile).then(data => {\r\n\r\n // if (data == \"SUCCESS\") {\r\n // if (Flag == '7') {\r\n // this.genralservice.ShowAlert('SUCCESS', 'Hospital added successfully', 'success');\r\n // } else {\r\n // this.genralservice.ShowAlert('SUCCESS', 'Hospital updated successfully', 'success');\r\n // }\r\n // // Reload the form\r\n \r\n // this.form.reset();\r\n \r\n // this.GetHospitals();\r\n // }\r\n // if (data == \"Exist\") {\r\n // this.genralservice.ShowAlert('Exist', 'Data Already Exist', 'success');\r\n // }\r\n // }, error => ({\r\n // title: 'ERROR',\r\n // text: 'Something went wrong. Please try again later.',\r\n // type: 'error',\r\n // confirmButtonText: 'Ok'\r\n // })).then(() => {\r\n // // Reload the page\r\n // // window.location.reload();\r\n // this.addextra = 1;\r\n // });\r\n //}\r\n\r\n\r\n reg() {\r\n \r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // Route to login page\r\n this.router.navigate(['/Login']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n this.router.navigate(['/Profile']).then(() => { window.location.reload(); });\r\n }\r\n }\r\n handleClick(index: number) {\r\n if (this.activeCardIndex === index) {\r\n this.activeCardIndex = -1; // Toggle off if same card clicked again\r\n } else {\r\n this.activeCardIndex = index;\r\n }\r\n }\r\n toggleSocialMedia(value: number) {\r\n // Update showSocialMedia variable\r\n this.router.navigate(['/Requestpresentation']).then(() => { window.location.reload(); });\r\n }\r\n downloadlogo() {\r\n \r\n // Assuming value is boolean\r\n this.router.navigate(['/Stickbrochure']).then(() => { window.location.reload(); });\r\n }\r\n vol() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // If LoginDetails is empty or not set, route to the login page\r\n this.router.navigate(['/Volunteerlogin']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n // Assuming roleid is a property of LoginDetails\r\n if ((this.LoginDetails[0].RoleId === 4 && (this.LoginDetails[0].Rolestatus === false || this.LoginDetails[0].Rolestatus === null)) || (this.LoginDetails[0].RoleId === 4 && this.LoginDetails[0].Rolestatus === true) || (this.LoginDetails[0].RoleId === 2 && this.LoginDetails[0].Rolestatus === true)) {\r\n // If roleid is 4, navigate to the '/Volunters' page\r\n this.router.navigate(['/Volunters']);\r\n }\r\n\r\n else if (this.LoginDetails[0].RoleId === 0 && (this.LoginDetails[0].Rolestatus === false)) {\r\n // If roleid is not 4, display an alert message\r\n this.router.navigate(['/Volunteerprofile']);\r\n // alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n else {\r\n this.router.navigate(['/Profile']);\r\n alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n\r\n }\r\n }\r\n\r\n cancel() {\r\n \r\n //this.gridview = true;\r\n this.addextra = 1;\r\n }\r\n\r\n //**This is used to back from the form.**//\r\n Back() {\r\n \r\n //this.gridview = true;\r\n this.addextra = 1;\r\n }\r\n\r\n //**This is used to open add from**//\r\n openAddForm() {\r\n \r\n\r\n this.Form.reset();\r\n //this.gridview = false;\r\n this.flag = 1;\r\n //this.SId = undefined;\r\n this.ButtonText = \"Add\";\r\n this.addextra = 1;\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 \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 Verify/Add hospitals details\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 Search Hospital* \r\n
\r\n\r\n
\r\n
\r\n \r\n
Hospital Name is required. \r\n
\r\n\r\n\r\n\r\n \r\n\r\n\r\n
\r\n Hospital Contact No* \r\n
\r\n
\r\n \r\n\r\n
\r\n\r\n\r\n
\r\n Doctor Name* \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 State Name* \r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n\r\n
State Name is required. \r\n
\r\n
\r\n\r\n
\r\n District Name \r\n
\r\n
\r\n
\r\n
\r\n \r\n\r\n\r\n
District Name is required. \r\n
\r\n\r\n\r\n
\r\n\r\n\r\n\r\n
\r\n City Name \r\n
\r\n
\r\n
\r\n
\r\n \r\n\r\n\r\n\r\n
City name is required. \r\n
\r\n\r\n\r\n\r\n
\r\n\r\n
\r\n Address \r\n
\r\n
\r\n \r\n
\r\n\r\n\r\n\r\n
\r\n Pincode* \r\n
\r\n
\r\n \r\n
\r\n\r\n\r\n
\r\n POC Name * \r\n
\r\n
\r\n\r\n \r\n
\r\n\r\n\r\n\r\n
\r\n POC No* \r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n
\r\n Submit \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 } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\n@Component({\r\n selector: 'app-joincompain',\r\n templateUrl: './joincompain.component.html',\r\n styleUrls: ['./joincompain.component.scss']\r\n})\r\nexport class JoincompainComponent {\r\n showSocialMedia = false;\r\n LoginDetails1: any; LoginDetails: any;\r\n constructor(private router: Router) {\r\n this.LoginDetails1 = localStorage.getItem(\"LoginDetails\");\r\n this.LoginDetails = JSON.parse(this.LoginDetails1);\r\n }\r\n ngOnInit() { }\r\n\r\n toggleSocialMedia() {\r\n this.showSocialMedia = !this.showSocialMedia;\r\n }\r\n openTwitter() {\r\n // Replace 'your-twitter-url' with the actual Twitter share URL\r\n const twitterShareUrl = 'https://twitter.com/intent/tweet';\r\n const urlToShare = 'https://letshelp.breakingindiaapp.com/Brochures';\r\n\r\n // Combine Twitter URL and the URL to share\r\n const finalTwitterUrl = `${twitterShareUrl}?url=${encodeURIComponent(urlToShare)}`;\r\n\r\n // Open Twitter in a new window or tab\r\n window.open(finalTwitterUrl, '_blank');\r\n }\r\n\r\n openInstagram() {\r\n // Replace 'your-instagram-url' with the actual Instagram share URL\r\n const instagramShareUrl = 'https://www.instagram.com/';\r\n const urlToShare = 'https://letshelp.breakingindiaapp.com/Brochures';\r\n\r\n // Combine Instagram URL and the URL to share\r\n const finalInstagramUrl = `${instagramShareUrl}?url=${encodeURIComponent(urlToShare)}`;\r\n\r\n // Open Instagram in a new window or tab\r\n window.open(finalInstagramUrl, '_blank');\r\n }\r\n openFacebook() {\r\n // Replace 'your-facebook-url' with the actual Facebook share URL\r\n const facebookShareUrl = 'https://www.facebook.com/sharer/sharer.php?u=';\r\n const urlToShare = 'https://letshelp.breakingindiaapp.com/Brochures';\r\n\r\n // Combine Facebook URL and the URL to share\r\n const finalFacebookUrl = `${facebookShareUrl}${encodeURIComponent(urlToShare)}`;\r\n\r\n // Open Facebook in a new window or tab\r\n window.open(finalFacebookUrl, '_blank');\r\n }\r\n openWhatsApp() {\r\n // Replace 'your-whatsapp-url' with the actual WhatsApp share URL\r\n const whatsappShareUrl = 'https://wa.me/?text=';\r\n const textToShare = 'Check out this link: https://letshelp.breakingindiaapp.com/Brochures';\r\n\r\n // Combine WhatsApp URL and the text to share\r\n const finalWhatsAppUrl = `${whatsappShareUrl}${encodeURIComponent(textToShare)}`;\r\n\r\n // Open WhatsApp in a new window or tab\r\n window.open(finalWhatsAppUrl, '_blank');\r\n }\r\n\r\n openGmailApp() {\r\n // Replace 'your-whatsapp-url' with the actual WhatsApp share URL\r\n const GmailShareUrl = 'https://mail.google.com/mail/u/0/';\r\n const textToShare = 'Check out this link: https://letshelp.breakingindiaapp.com/Brochures';\r\n\r\n // Combine WhatsApp URL and the text to share\r\n const finalWhatsAppUrl = `${GmailShareUrl}${encodeURIComponent(textToShare)}`;\r\n\r\n // Open WhatsApp in a new window or tab\r\n window.open(finalWhatsAppUrl, '_blank');\r\n }\r\n\r\n reg() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // Route to login page\r\n this.router.navigate(['/Login']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n this.router.navigate(['/Profile']);\r\n }\r\n }\r\n vol() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // If LoginDetails is empty or not set, route to the login page\r\n this.router.navigate(['/Volunteerlogin']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n // Assuming roleid is a property of LoginDetails\r\n if ((this.LoginDetails[0].RoleId === 4 && (this.LoginDetails[0].Rolestatus === false || this.LoginDetails[0].Rolestatus === null)) || (this.LoginDetails[0].RoleId === 4 && this.LoginDetails[0].Rolestatus === true) || (this.LoginDetails[0].RoleId === 2 && this.LoginDetails[0].Rolestatus === true)) {\r\n // If roleid is 4, navigate to the '/Volunters' page\r\n this.router.navigate(['/Volunters']);\r\n }\r\n\r\n else if (this.LoginDetails[0].RoleId === 0 && (this.LoginDetails[0].Rolestatus === false)) {\r\n // If roleid is not 4, display an alert message\r\n this.router.navigate(['/Volunteerprofile']);\r\n // alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n else {\r\n this.router.navigate(['/Profile']);\r\n alert(\"Please update your profile as a volunteer to access this page.\");\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 \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
\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
\r\n
Newsletter Signup \r\n
\r\n
\r\n \r\n Email \r\n \r\n
\r\n \r\n please leave this blank\r\n \r\n
\r\n \r\n Submit \r\n Thanks! \r\n \r\n \r\n
\r\n \r\n Got It \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\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { FormGroup, FormControl, AbstractControl, FormBuilder, Validators } from '@angular/forms';\r\n//import { EmailValidators } from 'ngx-validators'\r\n\r\n//import { CookieService } from 'ngx-cookie-service';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\nimport { GeneralService } from '../../general.service';\r\nimport Swal from 'sweetalert2';\r\nimport { HttpClient, HttpHandler, HttpResponse, HttpRequest } from '@angular/common/http';\r\ndeclare var $;\r\n\r\n@Component({\r\n selector: 'app-login',\r\n templateUrl: './login.component.html',\r\n styleUrls: ['./login.component.scss']\r\n})\r\nexport class LoginComponent {\r\n HomeUrl: any; arr: any = [];\r\n pwd1: any;\r\n userid: any;\r\n Mobile: any;\r\n OTP: any;\r\n flag: any;\r\n OTPtoMobile: any;\r\n logindata: any;\r\n otpSent: boolean = false;\r\n showLogin: boolean = false;\r\n showLogin1: boolean = true; loginDet: any;\r\n registerAsDonor: boolean = false; RegId: any;\r\n LoginDetails: any;\r\n EmailID: any;\r\n EditFlag: any;\r\n\r\n isMobileDisabled: boolean = false;\r\n\r\n constructor(public router: Router, public generalService: GeneralService, public http: HttpClient, public activeroute: ActivatedRoute) { //\r\n this.loginDet = JSON.parse(localStorage.getItem(\"LoginDetails\"));\r\n\r\n \r\n this.http.get('../assets/WebService.json').subscribe((data: any) => {\r\n this.HomeUrl = data.Webservice;\r\n });\r\n }\r\n ngOnInit() {\r\n // this.Getsurname();\r\n }\r\n \r\n\r\n checkMobileLength(event: any) {\r\n if (event.target.value.length === 10) {\r\n this.isMobileDisabled = true;\r\n } else {\r\n this.isMobileDisabled = false;\r\n }\r\n }\r\n\r\n\r\n \r\n\r\n reg() {\r\n \r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // Route to login page\r\n this.router.navigate(['/Login']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n this.router.navigate(['/Profile']).then(() => { window.location.reload(); });\r\n }\r\n }\r\n vol() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // If LoginDetails is empty or not set, route to the login page\r\n this.router.navigate(['/Volunteerlogin']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n // Assuming roleid is a property of LoginDetails\r\n if ((this.LoginDetails[0].RoleId === 4 && (this.LoginDetails[0].Rolestatus === false || this.LoginDetails[0].Rolestatus === null)) || (this.LoginDetails[0].RoleId === 4 && this.LoginDetails[0].Rolestatus === true) || (this.LoginDetails[0].RoleId === 2 && this.LoginDetails[0].Rolestatus === true)) {\r\n // If roleid is 4, navigate to the '/Volunters' page\r\n this.router.navigate(['/Volunters']);\r\n }\r\n\r\n else if (this.LoginDetails[0].RoleId === 0 && (this.LoginDetails[0].Rolestatus === false)) {\r\n // If roleid is not 4, display an alert message\r\n this.router.navigate(['/Volunteerprofile']);\r\n // alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n else {\r\n this.router.navigate(['/Profile']);\r\n alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n\r\n }\r\n }\r\n EditMobileNumber() {\r\n debugger\r\n this.EditFlag = 1;\r\n this.Mobile = '';\r\n this.OTPtoMobile = null;\r\n this.showLogin1 = true;\r\n this.showLogin = false;\r\n this.otpSent = false;\r\n this.isMobileDisabled = false;\r\n\r\n }\r\n SendOTPtoMobile() {\r\n \r\n this.CheckMobileNumber();\r\n if (!this.otpSent && this.Mobile && this.Mobile.length === 10) {\r\n this.OTPtoMobile = Math.floor(1000 + Math.random() * 9000);\r\n var Uploadfile = new FormData();\r\n Uploadfile.append(\"MobileNo\", this.Mobile)\r\n Uploadfile.append(\"OTP\", this.OTPtoMobile)\r\n var url = \"api/BG/SendOtpToMobile\";\r\n this.generalService.PostData(url, Uploadfile).then((data: any) => {\r\n // Set otpSent to true once OTP is sent\r\n this.otpSent = true;\r\n this.showLogin1 = false;\r\n this.showLogin = true;\r\n if (this.EmailID != null) {\r\n this.SendOTPtoMail();\r\n }\r\n })\r\n }\r\n }\r\n\r\n CheckMobileNumber() {\r\n \r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Mobile\", this.Mobile);\r\n var url = 'api/BG/checking_Mobile';\r\n this.generalService.PostData(url, UploadFile).then((data: any) => {\r\n \r\n if (data != 'NOTEXIST') {\r\n this.EmailID = data[0].Email;\r\n }\r\n })\r\n }\r\n\r\n SendOTPtoMail() {\r\n \r\n var Content = \"Your Login OTP is: \" + this.OTPtoMobile; \r\n var UploadFile = new FormData();\r\n UploadFile.append(\"EMailID\", this.EmailID);\r\n UploadFile.append(\"Content\", Content);\r\n var url = \"api/BG/SendOTPtoMail\";\r\n this.generalService.PostData(url, UploadFile).then((data: any) => {\r\n\r\n })\r\n }\r\n\r\n //checkmobile(Mobile) {\r\n // \r\n // if (!this.registerAsDonor) {\r\n // alert('Please click on the checkbox to register as a blood donor.');\r\n \r\n // return;\r\n //}\r\n // if (Mobile.length == 10) {\r\n // if (this.OTPtoMobile == this.OTP) {\r\n // var UploadFile = new FormData();\r\n // UploadFile.append(\"Mobile\", Mobile);\r\n\r\n\r\n // var url = 'api/BG/checking_Mobile'\r\n\r\n // this.generalService.PostData(url, UploadFile).then(data => {\r\n // //this.logindata = JSON.stringify(data[0]);\r\n // //localStorage.setItem(\"LoginDetails\", this.logindata);\r\n // \r\n // if (data != 'NOTEXIST') {\r\n // \r\n // this.pwd1 = data[0].Password;\r\n // this.userid = data[0].ID;\r\n // this.router.navigate(['/blooddonation']).then(() => { window.location.reload(); });\r\n // this.logindata = JSON.stringify(data[0]);\r\n // localStorage.setItem(\"LoginDetails\", this.logindata);\r\n\r\n // }\r\n // else {\r\n\r\n // this.router.navigate(['/Donersform']);\r\n // this.logindata = JSON.stringify(data[0]);\r\n // localStorage.setItem(\"LoginDetails\", this.logindata);\r\n // }\r\n // })\r\n // }\r\n // }\r\n //}\r\n checkmobile(Mobile) {\r\n // if (!this.registerAsDonor) {\r\n // alert('Please click on the checkbox to register as a blood donor.');\r\n\r\n // return;\r\n //}\r\n \r\n if (Mobile.length == 10) {\r\n if (this.OTPtoMobile == this.OTP) {\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Mobile\", Mobile);\r\n\r\n var url = 'api/BG/checking_Mobile'\r\n\r\n this.generalService.PostData(url, UploadFile).then(data => {\r\n \r\n if (data != 'NOTEXIST') {\r\n ;\r\n this.pwd1 = data[0].Password;\r\n this.userid = data[0].ID;\r\n this.router.navigate(['/blooddonation'])\r\n this.logindata = JSON.stringify(data[0]);\r\n localStorage.setItem(\"LoginDetails\", this.logindata);\r\n this.RegId = data;\r\n localStorage.setItem(\"RegID\", this.RegId);\r\n\r\n } else {\r\n // If the phone number doesn't exist, insert it into the table\r\n this.insertPhoneNumber(Mobile);\r\n // Navigate to the registration page\r\n this.router.navigate(['/Donersform'], { queryParams: { mobile: Mobile } });\r\n }\r\n })\r\n }\r\n }\r\n }\r\n\r\n insertPhoneNumber(Mobile) {\r\n this.arr = [{\r\n Phonenumber: Mobile,\r\n BloodGroupId: 0,\r\n Lastdonatedate: null,\r\n Status:true,\r\n Statusphn:true\r\n }];\r\n\r\n var uploadfile = new FormData();\r\n uploadfile.append(\"Param\", JSON.stringify(this.arr));\r\n uploadfile.append(\"Flag\", '1');\r\n\r\n var url = 'api/BG/Insert_Update_DonersForm';\r\n\r\n this.generalService.PostData(url, uploadfile).then(data => {\r\n if (data == \"SUCCESS\") {\r\n \r\n if (this.flag == 1) {\r\n this.generalService.ShowAlert(\"ERROR\", 'You have successfully signed in to the application', 'error');\r\n } else {\r\n this.generalService.ShowAlert(\"SUCCESS\", 'You have successfully signed in to the application', 'success');\r\n //this.router.navigate(['/Donersform']).then(() => { window.location.reload(); });\r\n this.router.navigate(['/Donersform'], { queryParams: { mobile: Mobile } });\r\n this.logindata = JSON.stringify(data[0]);\r\n localStorage.setItem(\"LoginDetails\", this.logindata);\r\n localStorage.setItem(\"LoginDetails\", JSON.stringify(this.arr));\r\n window.location.reload()\r\n\r\n this.RegId = data[0].RegId;\r\n localStorage.setItem(\"RegID\", this.RegId);\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 \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
Mobile
\r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n \r\n\r\n\r\n OTP \r\n \r\n\r\n Send OTP \r\n \r\n \r\n \r\n \r\n\r\n
\r\n Sign in \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 } from '@angular/core';\r\nimport { GeneralService } from '../../general.service';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { FormControl, FormBuilder, Validators, FormGroup } from '@angular/forms';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { DatePipe } from '@angular/common';\r\nimport { StatedisrticrcityService } from '../Sevices/statedisrticrcity.service';\r\ndeclare var $: any;\r\n\r\n@Component({\r\n selector: 'app-oldagehome',\r\n templateUrl: './oldagehome.component.html',\r\n styleUrls: ['./oldagehome.component.scss']\r\n})\r\nexport class OldagehomeComponent {\r\n public form: FormGroup;\r\n arr: any[];\r\n modalVisible = false;\r\n OldAgeHome: any = [];\r\n LoginDetails1: any; LoginDetails: any\r\n HomeUrl: any;\r\n pwd1: any;\r\n userid: any;\r\n Mobile: any;\r\n OTP: any;\r\n OTPtoMobile: any;\r\n logindata: any;\r\n otpSent: boolean = false;\r\n showLoginButton: boolean = true;\r\n showLogin: boolean = false;\r\n showLogin1: boolean = true; loginDet: any;\r\n countrydata: any;\r\n districtdata: any = [];\r\n deptList: any;\r\n flag: any;\r\n Statedata: any = [];\r\n Citydata: any = [];\r\n deptList1: any;\r\n deptList2: any; bloodgroupdata: any = [];\r\n deptList3: any;\r\n deptList4: any;\r\n deptList6: any;\r\n selectedState1: any;\r\n selectedState2: any;\r\n selectedState3: any;\r\n selectedState4: any;\r\n selectedState5: any;\r\n selectedState6: any;\r\n Areadata: any = [];\r\n State: any;\r\n distict: any;\r\n city: any; isDropdownOpen: boolean = false;\r\n bloodgroup: any;\r\n Address: any;\r\n lat = 20.5937;\r\n lng = 78.9629;\r\n zoom = 5;\r\n markers: any[] = [];\r\n dropdownOpen: boolean = true;\r\n letter: any; Donersdata: any;\r\n GallaryCategory: any; selectedGender: string | null = null;\r\n GalleryImages1: any; selectedpast: string;\r\n ShowContent: boolean = true;\r\n showingProfile: boolean = true;\r\n profiledata: any;\r\n\r\n constructor(public genralservice: GeneralService, private statedisrticrcityService: StatedisrticrcityService, public http: HttpClient, public router: Router, public fb: FormBuilder,\r\n private datePipe: DatePipe) {\r\n this.LoginDetails1 = localStorage.getItem(\"LoginDetails\");\r\n this.LoginDetails = JSON.parse(this.LoginDetails1);\r\n if (Array.isArray(this.LoginDetails) && this.LoginDetails.length > 0) {\r\n this.letter = this.LoginDetails[0].FullName.charAt(0);\r\n } else if (this.LoginDetails && this.LoginDetails.FullName) {\r\n this.letter = this.LoginDetails.FullName.charAt(0);\r\n } else {\r\n this.letter = '';\r\n }\r\n\r\n this.form = this.fb.group({\r\n username: ['', Validators.required],\r\n mobile: ['', Validators.required],\r\n email: ['',],\r\n Gender: ['',],\r\n age: ['', Validators.required],\r\n //unitsofblood: [''],\r\n bloodgroup: ['', Validators.required],\r\n statename: [''],\r\n districtname: [''],\r\n cityname: [''],\r\n useraddress: [''],\r\n area: [''],\r\n Status: [''],\r\n Messagetorequester: [''],\r\n Weight: [''],\r\n PastDonation: ['', Validators.required],\r\n Lastdonatedate: [''],\r\n Pincode: ['', Validators.required],\r\n \r\n Statusphn: [''],\r\n Rolestatus: [''],\r\n });\r\n\r\n this.http.get('../assets/WebService.json').subscribe((data: any) => {\r\n this.HomeUrl = data.Webservice;\r\n // this.HomeUrl = 'https://localhost:44387/';\r\n });\r\n\r\n }\r\n\r\n\r\n ngOnInit(): void {\r\n this.gallerycat();\r\n this.getAreas();\r\n this.getBloodgroup();\r\n this.getprofile();\r\n // this.loadDefaultData();\r\n //this.getstate();\r\n //this.getDistrict();\r\n //this.getCity();\r\n \r\n // this.getcountry();\r\n // this.getOrphanage();\r\n // this.getOldAgeHome();\r\n \r\n this.statedisrticrcityService.getstate().then(data => {\r\n this.Statedata = data;\r\n console.log(\"STATEDATA\", data);\r\n }).catch(error => {\r\n console.error(\"Error fetching state data:\", error);\r\n });\r\n\r\n }\r\n\r\n // drop down for states //\r\n searchCont(event) {\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList = [];\r\n for (var i = 0; i < this.Statedata.length; i++) {\r\n let country = this.Statedata[i];\r\n if (country.StateName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList = filtered;\r\n }\r\n }\r\n\r\n\r\n getDistrict() {\r\n console.log(\"SELECTED Dirsrict-->\", this.selectedState1.StateId);\r\n this.statedisrticrcityService.getDistrict(this.selectedState1.StateId).then(districtData => {\r\n console.log(\"DISTRICTDATA\", districtData);\r\n this.districtdata = districtData;\r\n }).catch(error => {\r\n console.error(\"Error fetching district data:\", error);\r\n });\r\n\r\n }\r\n // drop down for District //\r\n searchCont1(event) {\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList1 = [];\r\n for (var i = 0; i < this.districtdata.length; i++) {\r\n let country = this.districtdata[i];\r\n if (country.DistrictName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList1 = filtered;\r\n }\r\n }\r\n\r\n\r\n getCity() {\r\n console.log(\"SELECTED DISTRICTID\", this.selectedState2.DistrictID);\r\n this.statedisrticrcityService.getCity(this.selectedState2.DistrictID).then(cityData => {\r\n console.log(\"CITYDATA\", cityData);\r\n this.Citydata = cityData;\r\n }).catch(error => {\r\n console.error(\"Error fetching city data:\", error);\r\n });\r\n\r\n }\r\n\r\n // drop down for cities //\r\n searchCont2(event) {\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList2 = [];\r\n for (var i = 0; i < this.Citydata.length; i++) {\r\n let country = this.Citydata[i];\r\n if (country.CityName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList2 = filtered;\r\n }\r\n }\r\n\r\n toggleDropdown() {\r\n const dropdownContent = document.getElementById(\"dropdownContent\");\r\n if (dropdownContent.style.display === \"block\") {\r\n dropdownContent.style.display = \"none\";\r\n } else {\r\n dropdownContent.style.display = \"block\";\r\n }\r\n }\r\n\r\n checkLoginStatus() {\r\n // If user is logged in, set LoginDetails, otherwise set it to null\r\n if (this.LoginDetails!=null) {\r\n this.LoginDetails = {\r\n \r\n };\r\n } else {\r\n this.LoginDetails = null;\r\n }\r\n }\r\n\r\n checkmobile(Mobile) {\r\n \r\n if (Mobile.length == 10) {\r\n if (this.OTPtoMobile == this.OTP) {\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Mobile\", Mobile);\r\n\r\n\r\n var url = 'api/BG/checking_Mobile'\r\n\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n //this.logindata = JSON.stringify(data[0]);\r\n //localStorage.setItem(\"LoginDetails\", this.logindata);\r\n \r\n if (data != 'NOTEXIST') {\r\n \r\n this.pwd1 = data[0].Password;\r\n this.userid = data[0].ID;\r\n this.router.navigate(['/blooddonation']).then(() => { window.location.reload(); });\r\n this.logindata = JSON.stringify(data[0]);\r\n localStorage.setItem(\"LoginDetails\", this.logindata);\r\n\r\n }\r\n else {\r\n\r\n this.router.navigate(['/Donersform'])\r\n // this.router.navigate(['/register', { Mobile: this.form.value.Mobile }])\r\n .then(() => {\r\n window.location.reload();\r\n });\r\n }\r\n })\r\n }\r\n }\r\n }\r\n\r\n openLoginModal() {\r\n // Show the modal here\r\n $('#myModal').modal('show');\r\n }\r\n\r\n SendOTPtoMobile() {\r\n \r\n if (!this.otpSent && this.Mobile && this.Mobile.length === 10) {\r\n this.OTPtoMobile = Math.floor(1000 + Math.random() * 9000);\r\n var Uploadfile = new FormData();\r\n Uploadfile.append(\"MobileNo\", this.Mobile)\r\n Uploadfile.append(\"OTP\", this.OTPtoMobile)\r\n var url = \"api/BG/SendOtpToMobile\";\r\n this.genralservice.PostData(url, Uploadfile).then((data: any) => {\r\n // Set otpSent to true once OTP is sent\r\n this.otpSent = true;\r\n this.showLogin1 = false;\r\n this.showLogin = true;\r\n })\r\n }\r\n }\r\n sharelog() {\r\n // Pass parameters to blooddonation route\r\n this.router.navigate(['/blooddonation'], { queryParams: { issharee: true } });\r\n }\r\n closeModal() {\r\n this.modalVisible = false;\r\n $('#myModal').modal('hide');\r\n }\r\n\r\n signOut() {\r\n // Remove the login details from localStorage\r\n localStorage.removeItem('LoginDetails');\r\n window.location.reload();\r\n }\r\n \r\n\r\n onSearchClick(selectedState1, selectedState2, selectedState3, selectedState6, selectedState5) {\r\n \r\n this.State = this.selectedState1 != undefined ? this.selectedState1.StateName : '';\r\n this.distict = this.selectedState2 != undefined ? this.selectedState2.DistrictName : '';\r\n this.city = this.selectedState3 != undefined ? this.selectedState3.CityName : '';\r\n this.bloodgroup = this.selectedState5 != undefined ? this.selectedState5.BLGName : '';\r\n this.Address = this.selectedState6 != undefined ? this.selectedState6.Address : '';\r\n\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param1\", this.State);\r\n UploadFile.append(\"Param2\", this.distict);\r\n UploadFile.append(\"Param3\", this.city);\r\n UploadFile.append(\"Param4\", '');\r\n UploadFile.append(\"Param5\", this.bloodgroup);\r\n UploadFile.append(\"Param6\", this.Address);\r\n \r\n var url = \"api/BG/Oldagehomedetails\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n \r\n this.OldAgeHome = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n this.ShowContent = !this.ShowContent;\r\n }\r\n\r\n loadDefaultData() {\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Param1\", '');\r\n UploadFile.append(\"Param2\", '');\r\n UploadFile.append(\"Param3\", '');\r\n UploadFile.append(\"Param4\", '');\r\n UploadFile.append(\"Param5\", '');\r\n UploadFile.append(\"Param6\", '');\r\n\r\n var url = \"api/BG/Oldagehomedetails\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n this.OldAgeHome = data;\r\n }).catch(err => {\r\n this.genralservice.ShowAlert('ERROR', 'Something went Wrong', 'error');\r\n });\r\n }\r\n\r\n \r\n onStateSelect1(event) {\r\n console.log('Selected State:', this.selectedState1);\r\n // You can perform additional actions with the selected state here\r\n }\r\n\r\n onStateSelect2(event) {\r\n console.log('Selected Distict:', this.selectedState2);\r\n // You can perform additional actions with the selected state here\r\n }\r\n\r\n onStateSelect3(event) {\r\n console.log('Selected City:', this.selectedState3);\r\n // You can perform additional actions with the selected state here\r\n }\r\n\r\n onStateSelect4(event) {\r\n console.log('Selected Country:', this.selectedState4);\r\n // You can perform additional actions with the selected state here\r\n }\r\n\r\n onStateSelect5(event) {\r\n console.log('Selected BloodGroup:', this.selectedState5);\r\n // You can perform additional actions with the selected state here\r\n }\r\n\r\n onStateSelect6(event) {\r\n console.log('Selected Address:', this.selectedState6);\r\n }\r\n\r\n getAreas() {\r\n var url = \"api/BG/Get_oldAreass\";\r\n this.genralservice.GetData(url).then(data => {\r\n this.Areadata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n searchCont6(event) {\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList6 = [];\r\n for (var i = 0; i < this.Areadata.length; i++) {\r\n let country = this.Areadata[i];\r\n if (country.Address.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList6 = filtered;\r\n }\r\n }\r\n\r\n\r\n getBloodgroup() {\r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '4');\r\n var url = \"api/BG/BloodGroupMaster_CRUDCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n this.bloodgroupdata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for bloodgroup //\r\n searchCont3(event) {\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList3 = [];\r\n for (var i = 0; i < this.bloodgroupdata.length; i++) {\r\n let country = this.bloodgroupdata[i];\r\n if (country.BLGName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList3 = filtered;\r\n }\r\n }\r\n\r\n // select country\r\n getcountry() {\r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '4');\r\n var url = \"api/BG/StatesMaster_crudCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n\r\n this.countrydata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for states //\r\n searchCont4(event) {\r\n \r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList4 = [];\r\n for (var i = 0; i < this.countrydata.length; i++) {\r\n let country = this.countrydata[i];\r\n if (country.StateName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList4 = filtered;\r\n }\r\n }\r\n\r\n cleanUpUrl(url: string): string {\r\n // Remove leading and trailing spaces\r\n return url.trim();\r\n }\r\n\r\n pro() {\r\n\r\n if (this.LoginDetails[0].RoleId === 4 && (this.LoginDetails[0].Rolestatus === false || this.LoginDetails[0].Rolestatus == null)) {\r\n this.router.navigate(['/Volunteerprofile']);\r\n\r\n } else {\r\n this.showingProfile = !this.showingProfile;\r\n\r\n }\r\n }\r\n\r\n share() {\r\n this.router.navigate(['/Oldagehome']);\r\n \r\n }\r\n register() {\r\n this.router.navigate(['/Orphanage']);\r\n \r\n }\r\n \r\n requestlogin() {\r\n this.router.navigate(['/blooddonation']);\r\n \r\n }\r\n\r\n gallerycat() {\r\n var uploadfile = new FormData()\r\n uploadfile.append(\"Param\", '2');\r\n var url = \"api/BG/Get_GallaryImagedBasedOn_ID\";\r\n this.genralservice.PostData(url, uploadfile).then(data => {\r\n this.GallaryCategory = data;\r\n this.GalleryImages1 = this.GallaryCategory[0].GalleryImages;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n Gallery() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // Route to login page\r\n window.open('/Gallery', '_self');\r\n return; // Stop further execution\r\n }\r\n else {\r\n window.open('/Gallery', '_self');\r\n }\r\n\r\n }\r\n\r\n clearsearch() {\r\n this.loadDefaultData();\r\n }\r\n\r\n Donersform() {\r\n \r\n if (!this.form.value.username || !this.form.value.mobile || !this.form.value.bloodgroup || !this.form.value.Weight || !this.form.value.age || !this.form.value.Pincode || this.selectedGender === \"\" ||\r\n this.selectedpast === \"\") {\r\n this.genralservice.ShowAlert(\"ERROR\", 'Please fill all required fields', 'error');\r\n return; // Stop further execution of the method\r\n }\r\n\r\n ;\r\n this.arr = [];\r\n const bloodgroup = this.form.value.bloodgroup && this.form.value.bloodgroup.BLGId !== undefined\r\n ? this.form.value.bloodgroup.BLGId\r\n : this.LoginDetails[0] && this.LoginDetails[0].BLGId !== undefined\r\n ? this.LoginDetails[0].BLGId\r\n : this.LoginDetails.BLGId !== undefined\r\n ? this.LoginDetails.BLGId\r\n : this.LoginDetails.BloodGroupId;\r\n\r\n const stateId = this.form.value.statename && this.form.value.statename.StateId !== undefined\r\n ? this.form.value.statename.StateId\r\n : this.LoginDetails[0] && this.LoginDetails[0].StateId !== undefined\r\n ? this.LoginDetails[0].StateId\r\n : this.LoginDetails.StateId !== undefined\r\n ? this.LoginDetails.StateId\r\n : this.LoginDetails.StateID;\r\n\r\n const districtId = this.form.value.districtname && this.form.value.districtname.DistrictID !== undefined\r\n ? this.form.value.districtname.DistrictID\r\n : this.LoginDetails[0] && this.LoginDetails[0].DistrictID !== undefined\r\n ? this.LoginDetails[0].DistrictID\r\n : this.LoginDetails.DistrictID !== undefined\r\n ? this.LoginDetails.DistrictID\r\n : this.LoginDetails.DistrictID;\r\n\r\n const cityId = this.form.value.cityname && this.form.value.cityname.CityId !== undefined\r\n ? this.form.value.cityname.CityId\r\n : this.LoginDetails[0] && this.LoginDetails[0].CityId !== undefined\r\n ? this.LoginDetails[0].CityId\r\n : this.LoginDetails.CityId !== undefined\r\n ? this.LoginDetails.CityId\r\n : this.LoginDetails.CityID;\r\n const lastDonateDate = this.selectedpast === 'No' ? null : this.form.value.Lastdonatedate || this.LoginDetails.Lastdonatedate;\r\n let updatedRoleId: string;\r\n\r\n if (this.LoginDetails && this.LoginDetails[0].RoleId != null) {\r\n if (this.LoginDetails[0].RoleId === 0) {\r\n updatedRoleId = '2';\r\n } else if (this.LoginDetails[0].RoleId > 0) {\r\n updatedRoleId = this.LoginDetails[0].RoleId;\r\n }\r\n }\r\n this.arr.push({\r\n RegId: this.LoginDetails ? (this.LoginDetails[0] ? this.LoginDetails[0].RegId : this.LoginDetails.RegId) : '',\r\n TokenId: this.LoginDetails ? (this.LoginDetails[0] ? this.LoginDetails[0].TokenId : this.LoginDetails.TokenId) : '',\r\n FullName: this.form.value.username,\r\n Phonenumber: this.form.value.mobile,\r\n Weight: this.form.value.Weight,\r\n Email: this.form.value.email || this.LoginDetails.Email,\r\n Gender: this.selectedGender || this.LoginDetails.Gender,\r\n Lastdonatedate: lastDonateDate,\r\n DOB: this.form.value.DOB || this.LoginDetails.DOB,\r\n Pincode: this.form.value.Pincode || this.LoginDetails.Pincode,\r\n PastDonation: this.selectedpast,\r\n age: this.form.value.age || this.LoginDetails.Age,\r\n BloodGroupId: bloodgroup,\r\n StateId: stateId,\r\n DistrictId: districtId,\r\n CityId: cityId,\r\n UserAddress: this.form.value.useraddress || this.LoginDetails.UserAddress,\r\n Area: this.form.value.area || this.LoginDetails.Area,\r\n Messagetorequester: this.form.value.Messagetorequester || this.LoginDetails.Messagetorequester,\r\n RoleId: updatedRoleId,\r\n Status: this.form.value.Status || this.LoginDetails.Status,\r\n Statusphn: this.form.value.Statusphn || this.LoginDetails.Statusphn,\r\n Rolestatus: this.form.value.Rolestatus || this.LoginDetails.Rolestatus,\r\n });\r\n\r\n var uploadfile = new FormData();\r\n uploadfile.append(\"Param\", JSON.stringify(this.arr));\r\n uploadfile.append(\"Flag\", '2');\r\n var url = \"api/BG/Insert_Update_DonersForm\";\r\n this.genralservice.PostData(url, uploadfile).then(data => {\r\n \r\n if (data == \"SUCCESS\") {\r\n if (this.flag == 2) {\r\n this.genralservice.ShowAlert(\"ERROR\", 'Profile Updated Succesfully', 'error');\r\n } else {\r\n\r\n localStorage.setItem('LoginDetails', JSON.stringify(this.arr));\r\n this.genralservice.ShowAlert(\"SUCCESS\", 'Profile Updated Succesfully', 'success');\r\n this.router.navigate(['/blooddonation']).then(() => {\r\n window.location.reload();\r\n\r\n });\r\n\r\n }\r\n this.form.reset();\r\n } else {\r\n this.genralservice.ShowAlert(\"ERROR\", 'Something went wrong. Please check validation fields', 'error');\r\n }\r\n });\r\n }\r\n toggleStatuss(checked: boolean) {\r\n this.form.controls['Status'].setValue(checked);\r\n }\r\n\r\n\r\n toggleStatuss1(checked: boolean) {\r\n this.form.controls['Statusphn'].setValue(checked);\r\n }\r\n\r\n\r\n toggleStatuss2(checked: boolean) {\r\n this.form.controls['Rolestatus'].setValue(checked);\r\n }\r\n selectGender(gender: string) {\r\n \r\n this.selectedGender = gender;\r\n }\r\n PastDonation(Past: string) {\r\n \r\n this.selectedpast = Past;\r\n }\r\n\r\n getprofile() {\r\n debugger\r\n this.arr = [];\r\n this.arr.push({});\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Mobile\", this.LoginDetails ? (this.LoginDetails.Phonenumber || (this.LoginDetails[0] && this.LoginDetails[0].Phonenumber)) : '');\r\n\r\n var url = \"api/BG/checking_Mobile\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n this.profiledata = data;\r\n this.bindFormData(this.profiledata);\r\n\r\n this.LoginDetails = this.profiledata;\r\n // Call bindFormData with the received data\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error');\r\n });\r\n }\r\n bindFormData(data) {\r\n \r\n if (data) {\r\n \r\n this.selectedGender = data[0].Gender;\r\n this.selectedpast = data[0].PastDonation;\r\n const lastDonateDate = data[0].Lastdonatedate && !isNaN(Date.parse(data[0].Lastdonatedate)) ?\r\n this.datePipe.transform(new Date(data[0].Lastdonatedate), 'yyyy-MM-dd') : null;\r\n\r\n const dob = data[0].DOB && !isNaN(Date.parse(data[0].DOB)) ?\r\n this.datePipe.transform(new Date(data[0].DOB), 'yyyy-MM-dd') : null;\r\n\r\n \r\n this.form.patchValue({\r\n\r\n username: data[0].FullName,\r\n mobile: data[0].Phonenumber,\r\n email: data[0].Email,\r\n age: data[0].Age,\r\n bloodgroup: data[0].BLGName,\r\n BloodGroupId: data[0].BLGId,\r\n statename: data[0].StateName,\r\n StateId: data[0].StateId,\r\n districtname: data[0].DistrictName,\r\n DistrictId: data[0].DistrictId,\r\n cityname: data[0].CityName,\r\n CityId: data[0].CityId,\r\n useraddress: data[0].UserAddress,\r\n area: data[0].Area,\r\n Status: data[0].Status || data.Status,\r\n Weight: data[0].Weight,\r\n Pincode: data[0].Pincode,\r\n Statusphn: data[0].Statusphn || data.Statusphn,\r\n Rolestatus: data[0].Rolestatus || data.Rolestatus,\r\n Lastdonatedate: lastDonateDate,\r\n Messagetorequester: data[0].Messagetorequester\r\n });\r\n }\r\n }\r\n\r\n getDistrict1() {\r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n StateId: this.form.value.statename.StateId\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '5');\r\n var url = \"api/BG/DistrictMaster_crudCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n this.districtdata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for District //\r\n searchCont11(event) {\r\n debugger\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList1 = [];\r\n for (var i = 0; i < this.districtdata.length; i++) {\r\n let country = this.districtdata[i];\r\n if (country.DistrictName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList1 = filtered;\r\n }\r\n }\r\n\r\n getCity1() {\r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n DistrictId: this.form.value.districtname.DistrictID,\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '5');\r\n var url = \"api/BG/CitiesMaster_Crudcustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n this.Citydata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for cities //\r\n searchCont21(event) {\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList2 = [];\r\n for (var i = 0; i < this.Citydata.length; i++) {\r\n let country = this.Citydata[i];\r\n if (country.CityName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList2 = filtered;\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 {{ letter }}\r\n\r\n \r\n
\r\n
\r\n \r\n
\r\n\r\n LOGIN
\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 Search OldAge Home\r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n
\r\n
Search \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 Note : Enable or disable the visibility of your details to the public for donation \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 Note : Enable or disable the visibility of your phone number to the public for donation \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n
\r\n\r\n\r\n\r\n
\r\n Full Name* \r\n
\r\n
\r\n \r\n Donor Name is required \r\n\r\n
\r\n\r\n
\r\n Mobile Number* \r\n
\r\n
\r\n \r\n Donor Mobile is required \r\n\r\n
\r\n\r\n
\r\n Email \r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n Gender* \r\n
\r\n
\r\n\r\n\r\n
\r\n Ever donated blood* \r\n
\r\n
\r\n
\r\n
\r\n Last donate date* \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n\r\n
\r\n
\r\n
\r\n Weight* \r\n
\r\n
\r\n \r\n Donor Weight is required \r\n\r\n
\r\n\r\n\r\n
\r\n Age* \r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n Blood Group* \r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n
blood group is required. \r\n
\r\n
\r\n\r\n\r\n
\r\n State Name \r\n
\r\n
\r\n
\r\n
\r\n\r\n \r\n\r\n
State Name is required. \r\n
\r\n\r\n
\r\n\r\n
\r\n District Name \r\n
\r\n
\r\n
\r\n
\r\n\r\n \r\n
District Name is required. \r\n
\r\n
\r\n\r\n\r\n
\r\n City Name \r\n
\r\n
\r\n
\r\n
\r\n \r\n
City Name is required. \r\n
\r\n\r\n
\r\n\r\n\r\n
\r\n User Address \r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n Area \r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n Pincode* \r\n
\r\n
\r\n \r\n Pincode is required \r\n\r\n
\r\n\r\n
\r\n Message \r\n
\r\n
\r\n \r\n
\r\n\r\n\r\n \r\n
\r\n \r\n
\r\n Note: Enable or disable to become as a donor \r\n
\r\n
\r\n Note: Enable or disable to become as a volunteer \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 Cancel \r\n
\r\n\r\n
\r\n Update \r\n
\r\n
\r\n
\r\n \r\n\r\n
\r\n
\r\n
\r\n Let's Help Gallery\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n \r\n
{{item.categoryname}}
\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 An old age home , also called a retirement home ,\r\n is a residential facility with nursing and assisted living facilities designed for\r\n older adults . They receive the necessary assistance and care ,\r\n from meals , housekeeping , medical care , and\r\n recreational activities to maintain their quality of life. The purpose \r\n of old age home is to provide a safe and secure haven for those with nowhere else to go\r\n and no one to support them. \r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
Search Results \r\n
\r\n
\r\n \r\n OldAgeHome Name \r\n Phone Number \r\n State Name \r\n District Name \r\n City Name \r\n Address \r\n Pincode \r\n SiteURL \r\n \r\n \r\n {{item.HomeName}} \r\n {{item.PhoneNumber}} \r\n {{item.StateName}} \r\n {{item.DistrictName}} \r\n {{item.CityName}} \r\n {{item.Address}} \r\n {{item.Pincode}} \r\n \r\n \r\n {{ item.SiteURL.trim() }}\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n No search results available on this search querry. \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 { Router, ActivatedRoute } from '@angular/router';\r\nimport { FormGroup, FormControl, AbstractControl, FormBuilder, Validators } from '@angular/forms';\r\n//import { EmailValidators } from 'ngx-validators'\r\n\r\n//import { CookieService } from 'ngx-cookie-service';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\nimport { GeneralService } from '../../general.service';\r\nimport Swal from 'sweetalert2';\r\ndeclare var $;\r\nimport { HttpClient, HttpHandler, HttpResponse, HttpRequest } from '@angular/common/http';\r\n@Component({\r\n selector: 'app-prerequisites',\r\n templateUrl: './prerequisites.component.html',\r\n styleUrls: ['./prerequisites.component.scss']\r\n})\r\nexport class PrerequisitesComponent {\r\n HomeUrl: any;\r\n pwd1: any;\r\n userid: any;\r\n Mobile: any;\r\n OTP: any;\r\n OTPtoMobile: any;\r\n logindata: any;\r\n otpSent: boolean = false;\r\n showLogin: boolean = false;\r\n showLogin1: boolean = true; loginDet: any;\r\n LoginDetails: any; LoginDetails1: any; letter: any;\r\n constructor(public router: Router, public generalService: GeneralService, public http: HttpClient, public activeroute: ActivatedRoute) { //\r\n this.loginDet = JSON.parse(localStorage.getItem(\"LoginDetails\"));\r\n this.LoginDetails1 = localStorage.getItem(\"LoginDetails\");\r\n this.LoginDetails = JSON.parse(this.LoginDetails1);\r\n if (Array.isArray(this.LoginDetails) && this.LoginDetails.length > 0) {\r\n this.letter = this.LoginDetails[0].FullName.charAt(0);\r\n } else if (this.LoginDetails && this.LoginDetails.FullName) {\r\n this.letter = this.LoginDetails.FullName.charAt(0);\r\n } else {\r\n this.letter = '';\r\n }\r\n \r\n this.http.get('../assets/WebService.json').subscribe((data: any) => {\r\n this.HomeUrl = data.Webservice;\r\n });\r\n }\r\n ngOnInit() {\r\n // this.Getsurname();\r\n }\r\n SendOTPtoMobile() {\r\n \r\n if (!this.otpSent && this.Mobile && this.Mobile.length === 10) {\r\n this.OTPtoMobile = Math.floor(1000 + Math.random() * 9000);\r\n var Uploadfile = new FormData();\r\n Uploadfile.append(\"MobileNo\", this.Mobile)\r\n Uploadfile.append(\"OTP\", this.OTPtoMobile)\r\n var url = \"api/BG/SendOtpToMobile\";\r\n this.generalService.PostData(url, Uploadfile).then((data: any) => {\r\n // Set otpSent to true once OTP is sent\r\n this.otpSent = true;\r\n this.showLogin1 = false;\r\n this.showLogin = true;\r\n })\r\n }\r\n }\r\n openLoginModal() {\r\n // Show the modal here\r\n $('#myModal1').modal('show');\r\n }\r\n vol() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // If LoginDetails is empty or not set, route to the login page\r\n this.router.navigate(['/Volunteerlogin']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n // Assuming roleid is a property of LoginDetails\r\n if ((this.LoginDetails[0].RoleId === 4 && (this.LoginDetails[0].Rolestatus === false || this.LoginDetails[0].Rolestatus === null)) || (this.LoginDetails[0].RoleId === 4 && this.LoginDetails[0].Rolestatus === true) || (this.LoginDetails[0].RoleId === 2 && this.LoginDetails[0].Rolestatus === true)) {\r\n // If roleid is 4, navigate to the '/Volunters' page\r\n this.router.navigate(['/Volunters']);\r\n }\r\n\r\n else if (this.LoginDetails[0].RoleId === 0 && (this.LoginDetails[0].Rolestatus === false)) {\r\n // If roleid is not 4, display an alert message\r\n this.router.navigate(['/Volunteerprofile']);\r\n // alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n else {\r\n this.router.navigate(['/Profile']);\r\n alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n\r\n }\r\n }\r\n\r\n reg() {\r\n\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // Route to login page\r\n this.router.navigate(['/Login']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n this.router.navigate(['/Profile']).then(() => { window.location.reload(); });\r\n }\r\n }\r\n pro() {\r\n this.router.navigate(['/Profile']);\r\n }\r\n signOut() {\r\n \r\n // Remove the login details from localStorage\r\n localStorage.removeItem('LoginDetails');\r\n window.location.reload();\r\n // Optionally, you might want to perform other sign-out related tasks such as\r\n // navigating the user to the login page, clearing any local state, etc.\r\n }\r\n checkmobile(Mobile) {\r\n \r\n if (Mobile.length == 10) {\r\n if (this.OTPtoMobile == this.OTP) {\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Mobile\", Mobile);\r\n\r\n\r\n var url = 'api/BG/checking_Mobile'\r\n\r\n this.generalService.PostData(url, UploadFile).then(data => {\r\n //this.logindata = JSON.stringify(data[0]);\r\n //localStorage.setItem(\"LoginDetails\", this.logindata);\r\n \r\n if (data != 'NOTEXIST') {\r\n \r\n this.pwd1 = data[0].Password;\r\n this.userid = data[0].ID;\r\n this.router.navigate(['/Profile']).then(() => { window.location.reload(); });\r\n this.logindata = JSON.stringify(data[0]);\r\n localStorage.setItem(\"LoginDetails\", this.logindata);\r\n\r\n }\r\n else {\r\n\r\n this.router.navigate(['/Donersform'])\r\n // this.router.navigate(['/register', { Mobile: this.form.value.Mobile }])\r\n .then(() => {\r\n window.location.reload();\r\n });\r\n }\r\n })\r\n }\r\n }\r\n }\r\n\r\n\r\n showmenu() {\r\n\r\n }\r\n\r\n toggleDropdown() {\r\n const dropdownContent = document.getElementById(\"dropdownContent\");\r\n if (dropdownContent.style.display === \"block\") {\r\n dropdownContent.style.display = \"none\";\r\n } else {\r\n dropdownContent.style.display = \"block\";\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 \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 In using this Site, you agree to and understand these Terms of Use as well as our Privacy Policy.\r\n Lets-help website reserves the right to change the content within the web pages and within the Website\r\n Privacy Policy and Terms and Conditions at any time, without notice, at any time by updating this\r\n posting. You should visit this page periodically to review the current terms and conditions. \r\n
GENERAL DISCLAIMER: \r\n
Lets Help.com is a Non Profit, Non Commercial, ...... \r\n
\r\n \r\n The information on this Site or otherwise communicated to users of this Site, including information\r\n communicated via e-mail is is provided solely for the Social cause and this site is Non Commercial, . \r\n We make reasonable efforts to present current and accurate information. We would not\r\n assume any legal liability and makes no representations or warranties concerning the accuracy,\r\n completeness, timeliness, reliability or usefulness of the materials accessed from or through this Site\r\n or any other site accessed through this Site. No warranty is made that the information provided is error-\r\n free. The numbers, percentages and ratios contained within the web pages may be, at any time,\r\n outdated and may include inaccuracies and/or errors. \r\n Lets-help assumes no responsibility or liability for any consequence resulting directly or indirectly from\r\n any action you take based on or made in reliance on the information or materials on this Site, or other\r\n sites linked to it. It does not represent or warrant that access to this Site or any sites linked to this Site\r\n will be uninterrupted, that this Site will operate error free. This Site or any portion thereof may be\r\n unavailable at any time \r\n
NOTIFICATION OF CHANGES: \r\n
\r\n We aim to update our site regularly, and may change the content at any time. If the need arises, we may\r\n suspend access to our site, or close it indefinitely. Any of the material on our site may be out of date at\r\n any given time, and we are under no obligation to update such material. \r\n
SECURITY \r\n
\r\n This website takes reasonable precautions to protect user information from unauthorized use or\r\n alteration. All data, correspondence, and responses that the user of the website provides will be\r\n handled confidentially, both online and offline.. Any Information Users submit via this website will not\r\n be shared nor rented, nor sold to others in any forms. All of our users’ personally identifiable\r\n information is restricted to our website only. However, the information that is needed for the Sole\r\n purpose of blood donation registration will be available for the public view.\r\n COPY RIGHT and TRADE MARKS\r\n All media (downloaded or samples), text, images, graphics, user interfaces, videos, photographs, and\r\n other content on the Site, including, but not limited to, the design, selection, arrangement, and\r\n coordination of such content on the Site, is not owned or licensed by or to Lets-help. Being a Social,\r\n Non commercial website, its been sourced through various forms from the Internet. We would like to\r\n\r\n thank all the News Channels in India, not limited to, English, Hindi or regional who has played a\r\n prominent part in building up this Website,we would like to thank Google, Wikipedia, Youtube and\r\n many more online informational sites that being a building block in making Lets-help and we assure\r\n you that none of the material will not be exploited for any commercial usage. You have been a part of\r\n our sincere endeavor of creating a good society and a social cause. If you still feel that your material,\r\n information should be deleted from this website, please feel free to send an email with the\r\n information to letshelp.ind gmail.com and we would delete it as soon as possible.\r\n\r\n REVIEWS, COMMENTS, COMMUNICATION and OTHER\r\n Site visitors may send communications; and submit suggestions, ideas, comments, questions, or other\r\n information, provided that the content is not illegal, obscene, threatening, defamatory, invasive of\r\n privacy or objectionable and does not consist of or contain software viruses, political campaigning,\r\n commercial solicitation, chain letters, mass mailings, or any form of “spam”. You may not use a false\r\n email address, impersonate any person or entity, or otherwise mislead as to the content’s origin.\r\n We have the right to disable any user identification code or password, whether chosen by you or\r\n allocated by us, at any time, if in our opinion you have failed to comply with any of the provisions of\r\n these terms of use.\r\n\r\n LINKS TO OTHER SITES\r\n This website may provide links or references to other sites. These links are provided for your\r\n convenience and Lets-help is not responsible for the content of these other sites, does not make any\r\n representations or gives any warranties with respect to any information contained in or at these other\r\n sites, and shall not be liable for any damages or injury arising from the content of these other\r\n sites.When leaving Lets-help website to visit another website, we recommend that you review that\r\n website’s terms and conditions and privacy policy.\r\n YOUR CONCERNS – TO CONTACT US\r\n If you have any questions concerning your right to the privacy and confidentiality of your personal\r\n information and data that has been entrusted to Lets-help.com website or for any specific inquiries,\r\n please contact us directly using our online contact us form\r\n\r\n Thank you for visiting our site.\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 } from '@angular/core';\r\nimport { GeneralService } from '../../general.service';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { FormBuilder, FormControl, Validators, FormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { DatePipe } from '@angular/common';\r\n@Component({\r\n selector: 'app-profile',\r\n templateUrl: './profile.component.html',\r\n styleUrls: ['./profile.component.scss']\r\n})\r\nexport class ProfileComponent {\r\n public form: FormGroup;\r\n arr: any = [];\r\n districtdata: any = [];\r\n deptList: any;\r\n flag: any;\r\n Statedata: any = [];\r\n profiledata: any;\r\n Citydata: any = [];\r\n deptList1: any;\r\n deptList2: any; bloodgroupdata: any = [];\r\n deptList3: any;\r\n subDropdownStyle: { [key: string]: string } = {};\r\n isMouseOverSubDropdown: boolean = false;\r\n showDropdownContent = false;\r\n selectedBloodgroup: string = '';\r\n selectedGender: string | null = null;\r\n LoginDetails1: any; LoginDetails: any;\r\n selectedpast: string;\r\n Lastdonatedate: any;\r\n Status: boolean=true;\r\n constructor(public genralservice: GeneralService, private datePipe: DatePipe, public http: HttpClient, public fb: FormBuilder, public router: Router, ) {\r\n \r\n this.LoginDetails1 = localStorage.getItem(\"LoginDetails\");\r\n this.LoginDetails = JSON.parse(this.LoginDetails1);\r\n\r\n this.form = this.fb.group({\r\n // Define your form controls here\r\n username: ['', Validators.required],\r\n mobile: ['', Validators.required],\r\n email: ['', ],\r\n Gender: ['',],\r\n age: ['', Validators.required],\r\n //unitsofblood: [''],\r\n bloodgroup: ['', Validators.required],\r\n statename: [''],\r\n districtname: [''],\r\n cityname: [''],\r\n useraddress: [''],\r\n area: [''],\r\n Status: [''],\r\n Messagetorequester: [''],\r\n Weight: [''],\r\n PastDonation: ['', Validators.required],\r\n Lastdonatedate: [''],\r\n Pincode: ['', Validators.required],\r\n Statusphn: [''],\r\n Rolestatus: [''],\r\n\r\n\r\n });\r\n\r\n\r\n }\r\n\r\n\r\n ngOnInit(): void {\r\n this.getprofile();\r\n this.getBloodgroup();\r\n this.getstate();\r\n this.getDistrict();\r\n this.getCity();\r\n // this.bindFormData();\r\n \r\n\r\n }\r\n\r\n\r\n getprofile() {\r\n ;\r\n this.arr = [];\r\n this.arr.push({});\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Mobile\", this.LoginDetails ? (this.LoginDetails.Phonenumber || (this.LoginDetails[0] && this.LoginDetails[0].Phonenumber)) : '');\r\n\r\n var url = \"api/BG/checking_Mobile\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n this.profiledata = data;\r\n this.bindFormData(this.profiledata);\r\n \r\n this.LoginDetails = this.profiledata;\r\n // Call bindFormData with the received data\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error');\r\n });\r\n }\r\n\r\n reg() {\r\n \r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // Route to login page\r\n this.router.navigate(['/Login']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n this.router.navigate(['/Profile']).then(() => { window.location.reload(); });\r\n }\r\n }\r\n bindFormData(data) {\r\n \r\n if (data) {\r\n \r\n this.selectedGender = data[0].Gender;\r\n this.selectedpast = data[0].PastDonation;\r\n const lastDonateDate = data[0].Lastdonatedate && !isNaN(Date.parse(data[0].Lastdonatedate)) ?\r\n this.datePipe.transform(new Date(data[0].Lastdonatedate), 'yyyy-MM-dd') : null;\r\n\r\n \r\n \r\n this.form.patchValue({\r\n \r\n username: data[0].FullName,\r\n mobile: data[0].Phonenumber,\r\n email: data[0].Email,\r\n age: data[0].Age,\r\n bloodgroup: data[0].BLGName,\r\n BloodGroupId: data[0].BLGId,\r\n statename: data[0].StateName,\r\n StateId: data[0].StateId,\r\n districtname: data[0].DistrictName,\r\n DistrictId: data[0].DistrictId,\r\n cityname: data[0].CityName,\r\n CityId: data[0].CityId,\r\n useraddress: data[0].UserAddress,\r\n area: data[0].Area,\r\n Status: data[0].Status || data.Status,\r\n Weight: data[0].Weight,\r\n Pincode: data[0].Pincode,\r\n \r\n Statusphn: data[0].Statusphn || data.Statusphn,\r\n Rolestatus: data[0].Rolestatus || data.Rolestatus,\r\n Lastdonatedate: lastDonateDate,\r\n Messagetorequester: data[0].Messagetorequester\r\n });\r\n }\r\n }\r\n\r\n\r\n Donersform() {\r\n \r\n if (!this.form.value.username || !this.form.value.mobile || !this.form.value.bloodgroup || !this.form.value.Weight || !this.form.value.age || !this.form.value.Pincode || this.selectedGender === \"\" ||\r\n this.selectedpast === \"\") {\r\n this.genralservice.ShowAlert(\"ERROR\", 'Please fill all required fields', 'error');\r\n return; // Stop further execution of the method\r\n }\r\n\r\n ;\r\n this.arr = [];\r\n const bloodgroup = this.form.value.bloodgroup && this.form.value.bloodgroup.BLGId !== undefined\r\n ? this.form.value.bloodgroup.BLGId\r\n : this.LoginDetails[0] && this.LoginDetails[0].BLGId !== undefined\r\n ? this.LoginDetails[0].BLGId\r\n : this.LoginDetails.BLGId !== undefined\r\n ? this.LoginDetails.BLGId\r\n : this.LoginDetails.BloodGroupId;\r\n\r\n const stateId = this.form.value.statename && this.form.value.statename.StateId !== undefined\r\n ? this.form.value.statename.StateId\r\n : this.LoginDetails[0] && this.LoginDetails[0].StateId !== undefined\r\n ? this.LoginDetails[0].StateId\r\n : this.LoginDetails.StateId !== undefined\r\n ? this.LoginDetails.StateId\r\n : this.LoginDetails.StateID;\r\n\r\n const districtId = this.form.value.districtname && this.form.value.districtname.DistrictID !== undefined\r\n ? this.form.value.districtname.DistrictID\r\n : this.LoginDetails[0] && this.LoginDetails[0].DistrictID !== undefined\r\n ? this.LoginDetails[0].DistrictID\r\n : this.LoginDetails.DistrictID !== undefined\r\n ? this.LoginDetails.DistrictID\r\n : this.LoginDetails.DistrictID;\r\n\r\n const cityId = this.form.value.cityname && this.form.value.cityname.CityId !== undefined\r\n ? this.form.value.cityname.CityId\r\n : this.LoginDetails[0] && this.LoginDetails[0].CityId !== undefined\r\n ? this.LoginDetails[0].CityId\r\n : this.LoginDetails.CityId !== undefined\r\n ? this.LoginDetails.CityId\r\n : this.LoginDetails.CityID;\r\n const lastDonateDate = this.selectedpast === 'No' ? null : this.form.value.Lastdonatedate || this.LoginDetails.Lastdonatedate;\r\n let updatedRoleId: string;\r\n\r\n if (this.LoginDetails && this.LoginDetails[0].RoleId != null) {\r\n if (this.LoginDetails[0].RoleId === 0) {\r\n updatedRoleId = '2';\r\n } else if (this.LoginDetails[0].RoleId > 0) {\r\n updatedRoleId = this.LoginDetails[0].RoleId;\r\n }\r\n }\r\n this.arr.push({\r\n RegId: this.LoginDetails ? (this.LoginDetails[0] ? this.LoginDetails[0].RegId : this.LoginDetails.RegId) : '',\r\n TokenId: this.LoginDetails ? (this.LoginDetails[0] ? this.LoginDetails[0].TokenId : this.LoginDetails.TokenId) : '',\r\n FullName: this.form.value.username,\r\n Phonenumber: this.form.value.mobile,\r\n Weight: this.form.value.Weight,\r\n Email: this.form.value.email || this.LoginDetails.Email,\r\n Gender: this.selectedGender || this.LoginDetails.Gender,\r\n Lastdonatedate: lastDonateDate,\r\n DOB: this.form.value.DOB || this.LoginDetails.DOB,\r\n Pincode: this.form.value.Pincode || this.LoginDetails.Pincode,\r\n PastDonation: this.selectedpast,\r\n age: this.form.value.age || this.LoginDetails.Age,\r\n BloodGroupId: bloodgroup,\r\n StateId: stateId,\r\n DistrictId: districtId,\r\n CityId: cityId,\r\n UserAddress: this.form.value.useraddress || this.LoginDetails.UserAddress,\r\n Area: this.form.value.area || this.LoginDetails.Area,\r\n Messagetorequester: this.form.value.Messagetorequester || this.LoginDetails.Messagetorequester,\r\n RoleId: updatedRoleId,\r\n \r\n Status: this.form.value.Status || this.LoginDetails.Status,\r\n Statusphn: this.form.value.Statusphn || this.LoginDetails.Statusphn,\r\n Rolestatus: this.form.value.Rolestatus || this.LoginDetails.Rolestatus,\r\n });\r\n\r\n var uploadfile = new FormData();\r\n uploadfile.append(\"Param\", JSON.stringify(this.arr));\r\n uploadfile.append(\"Flag\", '2');\r\n var url = \"api/BG/Insert_Update_DonersForm\";\r\n this.genralservice.PostData(url, uploadfile).then(data => {\r\n \r\n if (data == \"SUCCESS\") {\r\n if (this.flag == 2) {\r\n this.genralservice.ShowAlert(\"ERROR\", 'Profile Updated Succesfully', 'error');\r\n } else {\r\n\r\n localStorage.setItem('LoginDetails', JSON.stringify(this.arr));\r\n this.genralservice.ShowAlert(\"SUCCESS\", 'Profile Updated Succesfully', 'success');\r\n this.router.navigate(['/blooddonation']).then(() => {\r\n window.location.reload();\r\n\r\n });\r\n\r\n }\r\n this.form.reset();\r\n } else {\r\n this.genralservice.ShowAlert(\"ERROR\", 'Something went wrong. Please check validation fields', 'error');\r\n }\r\n });\r\n }\r\n\r\n\r\n toggleStatus(checked: boolean) {\r\n this.form.controls['Status'].setValue(checked);\r\n }\r\n\r\n getstate() {\r\n \r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '4');\r\n var url = \"api/BG/StatesMaster_crudCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n\r\n this.Statedata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for states //\r\n searchCont(event) {\r\n \r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList = [];\r\n for (var i = 0; i < this.Statedata.length; i++) {\r\n let country = this.Statedata[i];\r\n if (country.StateName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList = filtered;\r\n }\r\n }\r\n\r\n\r\n getDistrict() {\r\n \r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n StateId: this.form.value.statename.StateId\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '5');\r\n var url = \"api/BG/DistrictMaster_crudCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n \r\n this.districtdata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for District //\r\n searchCont1(event) {\r\n\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList1 = [];\r\n for (var i = 0; i < this.districtdata.length; i++) {\r\n let country = this.districtdata[i];\r\n if (country.DistrictName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList1 = filtered;\r\n }\r\n }\r\n\r\n getCity() {\r\n \r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n DistrictId: this.form.value.districtname.DistrictID,\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '5');\r\n var url = \"api/BG/CitiesMaster_Crudcustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n \r\n this.Citydata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for cities //\r\n searchCont2(event) {\r\n\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList2 = [];\r\n for (var i = 0; i < this.Citydata.length; i++) {\r\n let country = this.Citydata[i];\r\n if (country.CityName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList2 = filtered;\r\n }\r\n }\r\n\r\n\r\n getBloodgroup() {\r\n \r\n this.arr = []\r\n this.arr.push({\r\n RegId: this.LoginDetails.RegId,\r\n TokenId: this.LoginDetails.TokenId,\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '4');\r\n var url = \"api/BG/BloodGroupMaster_CRUDCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n \r\n this.bloodgroupdata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for bloodgroup //\r\n searchCont3(event) {\r\n \r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList3 = [];\r\n for (var i = 0; i < this.bloodgroupdata.length; i++) {\r\n let country = this.bloodgroupdata[i];\r\n if (country.BLGName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList3 = filtered;\r\n }\r\n }\r\n\r\n updateSubDropdownPosition(event: MouseEvent) {\r\n // Adjust the sub-dropdown position based on mouse movement\r\n this.subDropdownStyle = {\r\n top: event.clientY + 'px',\r\n left: event.clientX + 'px',\r\n display: 'block',\r\n };\r\n }\r\n\r\n hideSubDropdown() {\r\n if (!this.isMouseOverSubDropdown) {\r\n this.subDropdownStyle = {\r\n display: 'none',\r\n };\r\n }\r\n }\r\n\r\n toggleDropdown() {\r\n this.showDropdownContent = !this.showDropdownContent;\r\n }\r\n\r\n\r\n // Function to select a blood group\r\n selectBloodgroup(bloodgroup: string) {\r\n this.selectedBloodgroup = bloodgroup;\r\n this.showDropdownContent = false; // Hide the dropdown after selection if needed\r\n }\r\n\r\n selectGender(gender: string) {\r\n \r\n this.selectedGender = gender;\r\n // Optionally call your Interior function with the `id`\r\n // this.Interior(id);\r\n }\r\n PastDonation(Past: string) {\r\n \r\n this.selectedpast = Past;\r\n // Optionally call your Interior function with the `id`\r\n // this.Interior(id);\r\n }\r\n vol() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // If LoginDetails is empty or not set, route to the login page\r\n this.router.navigate(['/Volunteerlogin']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n // Assuming roleid is a property of LoginDetails\r\n if ((this.LoginDetails[0].RoleId === 4 && (this.LoginDetails[0].Rolestatus === false || this.LoginDetails[0].Rolestatus === null)) || (this.LoginDetails[0].RoleId === 4 && this.LoginDetails[0].Rolestatus === true) || (this.LoginDetails[0].RoleId === 2 && this.LoginDetails[0].Rolestatus === true)) {\r\n // If roleid is 4, navigate to the '/Volunters' page\r\n this.router.navigate(['/Volunters']);\r\n }\r\n\r\n else if (this.LoginDetails[0].RoleId === 0 && (this.LoginDetails[0].Rolestatus === false)) {\r\n // If roleid is not 4, display an alert message\r\n this.router.navigate(['/Volunteerprofile']);\r\n // alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n else {\r\n this.router.navigate(['/Profile']);\r\n alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n\r\n }\r\n }\r\n\r\n toggleStatuss(checked: boolean) {\r\n this.form.controls['Status'].setValue(checked);\r\n }\r\n\r\n\r\n toggleStatuss1(checked: boolean) {\r\n this.form.controls['Statusphn'].setValue(checked);\r\n }\r\n\r\n\r\n toggleStatuss2(checked: boolean) {\r\n this.form.controls['Rolestatus'].setValue(checked);\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 \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 Note : Enable or disable the visibility of your details to the public for donation \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 Note : Enable or disable the visibility of your phone number to the public for donation \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 Full Name* \r\n
\r\n
\r\n \r\n Donor Name is required \r\n\r\n
\r\n
\r\n\r\n \r\n
\r\n Mobile Number* \r\n
\r\n
\r\n \r\n Donor Mobile is required \r\n\r\n
\r\n
\r\n\r\n \r\n
\r\n Email* \r\n
\r\n
\r\n \r\n
\r\n
\r\n\r\n \r\n
\r\n Gender* \r\n
\r\n
\r\n\r\n\r\n
\r\n Ever donated blood* \r\n
\r\n
\r\n\r\n
\r\n
\r\n Last donate date* \r\n
\r\n
\r\n
\r\n\r\n\r\n
\r\n Weight* \r\n
\r\n
\r\n \r\n Donor Weight is required \r\n\r\n
\r\n\r\n
\r\n\r\n \r\n
\r\n Age* \r\n
\r\n
\r\n \r\n
\r\n
\r\n\r\n \r\n
\r\n Blood Group* \r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n
blood group is required. \r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n \r\n\r\n
\r\n State Name \r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n \r\n\r\n
State Name is required. \r\n
\r\n\r\n
\r\n
\r\n\r\n \r\n
\r\n District Name \r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n \r\n\r\n
District Name is required. \r\n
\r\n
\r\n\r\n
\r\n\r\n \r\n
\r\n City Name \r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n\r\n\r\n
City Name is required. \r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n \r\n
\r\n Address \r\n
\r\n
\r\n \r\n
\r\n
\r\n\r\n \r\n
\r\n Area \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n Pincode* \r\n
\r\n\r\n
\r\n \r\n Pincode is required \r\n\r\n
\r\n
\r\n \r\n
\r\n Message to blood Requester \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 Note: Enable or disable to become as a donor \r\n
\r\n
\r\n Note: Enable or disable to become as a volunteer \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 Cancel \r\n
\r\n
\r\n Update \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
Newsletter Signup \r\n\r\n
\r\n
\r\n \r\n Email \r\n \r\n
\r\n \r\n please leave this blank\r\n \r\n
\r\n \r\n Submit \r\n Thanks! \r\n \r\n \r\n
\r\n \r\n Got It \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 } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\nimport { GeneralService } from '../../general.service';\r\n\r\nimport { FormBuilder, FormGroup, Validators, FormControl, AbstractControl, ReactiveFormsModule } from '@angular/forms';\r\nimport { Injectable } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\n\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { Subject } from 'rxjs';\r\nimport { debounceTime, distinctUntilChanged } from 'rxjs/operators';\r\n@Component({\r\n selector: 'app-registration',\r\n templateUrl: './registration.component.html',\r\n styleUrls: ['./registration.component.scss']\r\n})\r\nexport class RegistrationComponent {\r\n HomeUrl: any;\r\n OTP: any;\r\n OTPtoMobile: any;\r\n Mobile1: any;\r\n public form: FormGroup;\r\n SurName: any;\r\n Name: any;\r\n Mobile: any;\r\n\r\n otp: any;\r\n submitAttempt: boolean | undefined;\r\n arr: any;\r\n logindata: any;\r\n surnamedata: any;\r\n selectedSurname: any;\r\n\r\n constructor(public router: Router, public fb: FormBuilder, public generalService: GeneralService, public http: HttpClient, public activeroute: ActivatedRoute) { //\r\n this.logindata = localStorage.getItem('LoginDetails');\r\n this.http.get('../assets/WebService.json').subscribe((data: any) => {\r\n this.HomeUrl = data.Webservice;\r\n });\r\n this.form = fb.group({\r\n FullName: ['', Validators.compose([Validators.required, Validators.minLength(1), Validators.maxLength(20)])],\r\n // Name: ['', Validators.compose([Validators.required, Validators.minLength(3), Validators.maxLength(30)])],\r\n Email: ['',],\r\n Age: ['',],\r\n Gender: ['',],\r\n BloodGroupId: ['',],\r\n StateId: ['',],\r\n DistrictId: ['',],\r\n CityId: ['',],\r\n Phonenumber: ['', Validators.compose([Validators.required, Validators.minLength(10), Validators.maxLength(10)])],\r\n // otp: ['', Validators.compose([Validators.required, Validators.minLength(10), Validators.maxLength(10)])],\r\n\r\n });\r\n\r\n }\r\n Register() {\r\n this.router.navigate(['/Newprofiledetails']);\r\n }\r\n\r\n\r\n ngOnInit() {\r\n // this.Getsurname();\r\n }\r\n\r\n Getsurname() {\r\n\r\n\r\n var url = \"api/Events/GetSurNames\";\r\n this.generalService.GetData(url).then(data => {\r\n \r\n this.surnamedata = data;\r\n\r\n\r\n\r\n\r\n\r\n // this.filteredDataLength = this.filteredData.length;\r\n }, err => {\r\n this.generalService.ShowAlert('ERROR', 'Something went wrong. Please try again later', 'error');\r\n })\r\n }\r\n\r\n onSurnameSelection(value: string) {\r\n this.selectedSurname = value;\r\n // You can also set the value to your form control here if needed:\r\n // this.Form.controls['Surname'].setValue(value);\r\n }\r\n\r\n onSubmit(value: any) {\r\n ;\r\n this.submitAttempt = true;\r\n this.arr = [];\r\n\r\n // Assuming value contains the form data, make sure to access its properties correctly\r\n this.arr.push({\r\n FullName: value?.FullName, // Check if value is structured correctly\r\n Phonenumber: value?.Phonenumber,\r\n Mobile: value?.Mobile,\r\n Email: value?.Email,\r\n Age: value?.Age,\r\n Gender: value?.Gender,\r\n BloodGroupId: value?.BloodGroupId,\r\n StateId: value?.StateId,\r\n DistrictId: value?.DistrictId,\r\n CityId: value?.CityId,\r\n\r\n // Add other fields as needed\r\n });\r\n\r\n ;\r\n\r\n let formData: FormData = new FormData();\r\n formData.append('Param', JSON.stringify(this.arr));\r\n formData.append('Flag', '1');\r\n const url = \"api/BG/Register_User_Curd\";\r\n\r\n this.generalService.PostData(url, formData).then((data: any) => {\r\n if (data && data) {\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Mobile\", value?.Mobile);\r\n var url = 'api/Events/checking_Mobile';\r\n this.generalService.PostData(url, UploadFile).then((data1: any) => {\r\n this.logindata = JSON.stringify(data1[0]);\r\n localStorage.setItem(\"LoginDetails\", this.logindata);\r\n this.generalService.ShowAlert('Success', 'Your registration completed successfully.', 'success');\r\n localStorage.setItem('userData', JSON.stringify(this.arr));\r\n ;\r\n this.router.navigate(['/Newprofiledetails', { userdet: data }])\r\n\r\n // this.router.navigate(['/Newprofiledetails', { UserDetails: JSON.stringify(this.arr[0].Mobile) }])\r\n .then(() => {\r\n window.location.reload();\r\n });\r\n //this.router.navigate(['/EditProfile', { Mobile: this.form.value.Mobile }]);\r\n // this.navCtrl.pop();\r\n })\r\n }\r\n });\r\n }\r\n\r\n SendOTPtoMobile(value: any) {\r\n \r\n if (value.Phonenumber != null || value.Mobile != undefined) {\r\n if (value.Phonenumber.length == 10) {\r\n \r\n this.OTPtoMobile = Math.floor(1000 + Math.random() * 9000);\r\n var Uploadfile = new FormData();\r\n Uploadfile.append(\"MobileNo\", value.Phonenumber)\r\n Uploadfile.append(\"OTP\", this.OTPtoMobile)\r\n var url = \"api/BG/SendOtpToMobile\";\r\n this.generalService.PostData(url, Uploadfile).then((data: any) => {\r\n\r\n })\r\n }\r\n }\r\n }\r\n\r\n}\r\n\r\nfunction matchingPasswords(arg0: string, arg1: string) {\r\n throw new Error('Function not implemented.');\r\n}\r\n","\r\n
\r\n
\r\n
\r\n
\r\n
LETS'S HELP
Together ,for a Nobel Cause.! \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
Registration \r\n
Create your Lets Fight Account \r\n
\r\n Blood donation registration allows you to do the following: \r\n 1. Become a blood donor and start saving life..! \r\n 2. Post a Blood request \r\n 3. Search and view the donor contact information \r\n 4. View the Contact info of the Old age, Blood Banks and Orphan Homes in India \r\n 5. Comment, share and Vote on the social issues \r\n 6. Date of Birth will be hidden, and its only purpose is to calculate your age \r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n\r\n Name* \r\n \r\n rrFullName is required \r\n
\r\n
\r\n Email* \r\n \r\n Email is required \r\n
\r\n
\r\n Age* \r\n \r\n Age is required \r\n
\r\n
\r\n
\r\n
\r\n Mobile number* \r\n \r\n Phonenumber is required \r\n
\r\n
\r\n
\r\n
Send OTP
\r\n\r\n
\r\n
\r\n
\r\n
\r\n OTP* \r\n \r\n
\r\n\r\n
\r\n Gender* \r\n \r\n Gender is required \r\n
\r\n
\r\n BloodGroupId* \r\n \r\n BloodGroupId is required \r\n
\r\n
\r\n StateId* \r\n \r\n StateId is required \r\n
\r\n
\r\n DistrictId* \r\n \r\n DistrictId is required \r\n
\r\n
\r\n CityId* \r\n \r\n CityId is required \r\n
\r\n
\r\n\r\n \r\n
\r\n
\r\n\r\n
\r\n Sign Up \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 } from '@angular/core';\r\nimport { GeneralService } from '../../general.service';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { FormBuilder, FormControl, Validators, FormGroup } from '@angular/forms';\r\nimport { Route, Router } from '@angular/router';\r\n//import { DatePipe } from '@angular/common';\r\n\r\n\r\n@Component({\r\n selector: 'app-requestform',\r\n templateUrl: './requestform.component.html',\r\n styleUrls: ['./requestform.component.scss']\r\n})\r\nexport class RequestformComponent {\r\n public form: FormGroup;\r\n arr: any = [];\r\n districtdata: any = [];\r\n deptList: any;\r\n flag: any;\r\n Statedata: any = [];\r\n Citydata: any = [];\r\n deptList1: any;\r\n deptList2: any; bloodgroupdata: any = [];\r\n deptList3: any;\r\n subDropdownStyle: { [key: string]: string } = {};\r\n isMouseOverSubDropdown: boolean = false;\r\n showDropdownContent = false;\r\n dropdownActive: boolean = false; unitsofblood: any = [];\r\n deptList4: any; selectedItem1: any;\r\n selectedGender: string | null = null;\r\n Startdate: any; fromDate: any; mindate: any; toDate: any;\r\n logindata: any;\r\n RegId: any; LoginDetails: any; \r\n LoginDetails1: any;\r\n constructor(public genralservice: GeneralService, public http: HttpClient, public fb: FormBuilder,\r\n private router: Router) {\r\n this.LoginDetails1 = localStorage.getItem(\"LoginDetails\");\r\n this.LoginDetails = JSON.parse(this.LoginDetails1);\r\n // this.RegId = JSON.parse(localStorage.getItem(\"RegID\"));\r\n this.RegId = localStorage.getItem(\"RegID\");\r\n\r\n this.form = this.fb.group({\r\n // Define your form controls here\r\n contactperson: ['',],\r\n username: ['', Validators.required],\r\n Contmobile: ['', Validators.required],\r\n email: ['', Validators.email],\r\n Gender: ['',],\r\n age: [''],\r\n BloodRequestDate: ['',],\r\n RequestTime: ['',],\r\n unitsofblood: [''],\r\n bloodgroup: [''],\r\n Purpose: ['',],\r\n useraddress: [''],\r\n area: [''],\r\n DoctorName: ['',],\r\n HospitalName: ['',],\r\n HospitalPhonenumber: ['',],\r\n HospitalAddress: ['',],\r\n statename: [''],\r\n districtname: [''],\r\n cityname: ['',],\r\n PersonalNote: ['',],\r\n });\r\n\r\n\r\n }\r\n\r\n\r\n ngOnInit(): void {\r\n this.getunitofblood();\r\n this.getBloodgroup();\r\n this.getstate();\r\n this.getDistrict();\r\n this.getCity();\r\n\r\n\r\n }\r\n\r\n reg() {\r\n \r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // Route to login page\r\n this.router.navigate(['/Login']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n this.router.navigate(['/Profile']).then(() => { window.location.reload(); });\r\n }\r\n }\r\n\r\n Requestform() {\r\n if (!this.form.value.username || !this.form.value.Contmobile || !this.form.value.bloodgroup || !this.form.value.username\r\n || !this.selectedGender || !this.form.value.unitsofblood) {\r\n this.genralservice.ShowAlert(\"ERROR\", 'Please fill all required fields', 'error');\r\n return; // Stop further execution of the method\r\n }\r\n\r\n \r\n this.arr = [];\r\n this.arr.push({\r\n RegId: this.RegId,\r\n ContactPerson: this.form.value.contactperson,\r\n FullName: this.form.value.username,\r\n ContactMobile: this.form.value.Contmobile,\r\n Email: this.form.value.email,\r\n Gender: this.selectedGender,\r\n age: this.form.value.age,\r\n UnitsofBloodId: this.form.value.unitsofblood.UnitsofBloodId,\r\n UserAddress: this.form.value.useraddress,\r\n Area: this.form.value.area,\r\n BloodRequestDate: this.form.value.BloodRequestDate,\r\n RequestTime: this.form.value.RequestTime,\r\n DoctorName: this.form.value.DoctorName,\r\n Purpose: this.form.value.Purpose,\r\n HospitalName: this.form.value.HospitalName,\r\n HospitalPhonenumber: this.form.value.HospitalPhonenumber,\r\n HospitalAddress: this.form.value.HospitalAddress,\r\n BloodGroupId: this.form.value.bloodgroup.BLGId,\r\n StateId: this.form.value.statename.StateId,\r\n DistrictId: this.form.value.districtname.DistrictID,\r\n CityId: this.form.value.cityname.CityId,\r\n Note: this.form.value.PersonalNote,\r\n requestid:1\r\n })\r\n var uploadfile = new FormData()\r\n uploadfile.append(\"Param\", JSON.stringify(this.arr));\r\n uploadfile.append(\"Flag\", '1');\r\n var url = \"api/BG/Insert_Update_requestForm\";\r\n this.genralservice.PostData(url, uploadfile).then(data => {\r\n if (data == \"SUCCESS\") {\r\n if (this.flag == 1) {\r\n this.genralservice.ShowAlert(\"SUCCESS\", 'Blood Request Raised Succesfully,Please Wait Untill Admin Approve', 'success');\r\n }\r\n else {\r\n this.genralservice.ShowAlert(\"SUCCESS\", 'Blood Request Raised Succesfully,Please Wait Untill Admin Approve', 'success');\r\n\r\n }\r\n this.router.navigate(['/blooddonation']);\r\n this.form.reset();\r\n\r\n }\r\n else {\r\n this.genralservice.ShowAlert(\"ERROR\", 'Some thing went wrong', 'error')\r\n }\r\n\r\n })\r\n\r\n\r\n }\r\n\r\n\r\n getstate() {\r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '4');\r\n var url = \"api/BG/StatesMaster_crudCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n\r\n this.Statedata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for states //\r\n searchCont(event) {\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList = [];\r\n for (var i = 0; i < this.Statedata.length; i++) {\r\n let country = this.Statedata[i];\r\n if (country.StateName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList = filtered;\r\n }\r\n }\r\n\r\n\r\n getDistrict() {\r\n \r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n StateId: this.form.value.statename.StateId\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '5');\r\n var url = \"api/BG/DistrictMaster_crudCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n this.districtdata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for District //\r\n searchCont1(event) {\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList1 = [];\r\n for (var i = 0; i < this.districtdata.length; i++) {\r\n let country = this.districtdata[i];\r\n if (country.DistrictName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList1 = filtered;\r\n }\r\n }\r\n\r\n getCity() {\r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n DistrictId: this.form.value.districtname.DistrictID,\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '5');\r\n var url = \"api/BG/CitiesMaster_Crudcustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n this.Citydata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for cities //\r\n searchCont2(event) {\r\n\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList2 = [];\r\n for (var i = 0; i < this.Citydata.length; i++) {\r\n let country = this.Citydata[i];\r\n if (country.CityName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList2 = filtered;\r\n }\r\n }\r\n\r\n\r\n getBloodgroup() {\r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '4');\r\n var url = \"api/BG/BloodGroupMaster_CRUDCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n this.bloodgroupdata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for bloodgroup //\r\n searchCont3(event) {\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList3 = [];\r\n for (var i = 0; i < this.bloodgroupdata.length; i++) {\r\n let country = this.bloodgroupdata[i];\r\n if (country.BLGName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList3 = filtered;\r\n }\r\n }\r\n\r\n getunitofblood() {\r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '4');\r\n var url = \"api/BG/UnitsofBlood_CRUDCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n this.unitsofblood = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for bloodgroup //\r\n searchCont4(event) {\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList3 = [];\r\n for (var i = 0; i < this.unitsofblood.length; i++) {\r\n let country = this.unitsofblood[i];\r\n if (country.UnitsofBlood.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList4 = filtered;\r\n }\r\n }\r\n\r\n updateSubDropdownPosition(event: MouseEvent) {\r\n // Adjust the sub-dropdown position based on mouse movement\r\n this.subDropdownStyle = {\r\n top: event.clientY + 'px',\r\n left: event.clientX + 'px',\r\n display: 'block',\r\n };\r\n }\r\n\r\n hideSubDropdown() {\r\n if (!this.isMouseOverSubDropdown) {\r\n this.subDropdownStyle = {\r\n display: 'none',\r\n };\r\n }\r\n }\r\n\r\n toggleDropdown() {\r\n this.showDropdownContent = !this.showDropdownContent;\r\n }\r\n\r\n toggleDropdownActive() {\r\n this.dropdownActive = !this.dropdownActive;\r\n }\r\n\r\n back() {\r\n this.router.navigate(['/blooddonation']);\r\n }\r\n\r\n selectOption1(gender: string) {\r\n this.form.value('Gender').setValue(gender === '1' ? 'Female' : 'Male');\r\n }\r\n\r\n getChipStyle1(option: string): any {\r\n return {\r\n 'background-color': this.selectedItem1 === option ? 'green' : '#f0f0f0',\r\n 'color': this.selectedItem1 === option ? 'white' : 'black',\r\n 'border-color': this.selectedItem1 === option ? 'green' : '#ccc'\r\n };\r\n }\r\n\r\n selectGender(gender: string) {\r\n this.selectedGender = gender;\r\n // Optionally call your Interior function with the `id`\r\n // this.Interior(id);\r\n }\r\n\r\n vol() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // If LoginDetails is empty or not set, route to the login page\r\n this.router.navigate(['/Volunteerlogin']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n // Assuming roleid is a property of LoginDetails\r\n if ((this.LoginDetails[0].RoleId === 4 && (this.LoginDetails[0].Rolestatus === false || this.LoginDetails[0].Rolestatus === null)) || (this.LoginDetails[0].RoleId === 4 && this.LoginDetails[0].Rolestatus === true) || (this.LoginDetails[0].RoleId === 2 && this.LoginDetails[0].Rolestatus === true)) {\r\n // If roleid is 4, navigate to the '/Volunters' page\r\n this.router.navigate(['/Volunters']);\r\n }\r\n\r\n else if (this.LoginDetails[0].RoleId === 0 && (this.LoginDetails[0].Rolestatus === false)) {\r\n // If roleid is not 4, display an alert message\r\n this.router.navigate(['/Volunteerprofile']);\r\n // alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n else {\r\n this.router.navigate(['/Profile']);\r\n alert(\"Please update your profile as a volunteer to access this page.\");\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 \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 Contact Person* \r\n
\r\n
\r\n \r\n Contact Person Name is required \r\n\r\n
\r\n
\r\n \r\n
\r\n Mobile Number* \r\n
\r\n
\r\n \r\n Attender Mobile is required \r\n
\r\n
\r\n \r\n Patient Information\r\n
\r\n \r\n
\r\n Patient Name* \r\n
\r\n
\r\n \r\n Patient Name is required \r\n\r\n
\r\n
\r\n\r\n \r\n
\r\n Email \r\n
\r\n
\r\n \r\n
\r\n
\r\n\r\n \r\n
\r\n Gender* \r\n
\r\n
\r\n
\r\n\r\n \r\n
\r\n Patient Age \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n Patient Location \r\n
\r\n
\r\n \r\n
\r\n
\r\n\r\n \r\n
\r\n Required Date \r\n
\r\n
\r\n \r\n
\r\n
\r\n\r\n \r\n
\r\n Required Time \r\n
\r\n
\r\n \r\n
\r\n
\r\n\r\n \r\n
\r\n Blood Group \r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n\r\n
Patient blood group is required. \r\n
\r\n
\r\n
\r\n \r\n
\r\n Units of blood \r\n
\r\n
\r\n
\r\n\r\n \r\n
\r\n units of blood is required.\r\n \r\n
\r\n
\r\n \r\n\r\n
\r\n \r\n\r\n
\r\n
\r\n Doctor Name \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n Purpose \r\n
\r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n Location of Donation\r\n
\r\n
\r\n
\r\n Hospital Name \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n Hospital Number \r\n
\r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n
\r\n Hospital Address \r\n
\r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n State \r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n \r\n\r\n
State Name is required. \r\n
\r\n\r\n
\r\n
\r\n\r\n \r\n
\r\n District \r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n \r\n\r\n
District Name is required. \r\n
\r\n
\r\n\r\n
\r\n\r\n \r\n
\r\n City \r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n\r\n\r\n
City Name is required. \r\n
\r\n\r\n
\r\n\r\n
\r\n \r\n\r\n \r\n
\r\n Patient Area \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n Message \r\n
\r\n
\r\n \r\n
\r\n
\r\n\r\n \r\n \r\n Submit \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 } from '@angular/core';\r\nimport { GeneralService } from '../../general.service';\r\nimport { HttpClient, HttpRequest } from '@angular/common/http';\r\nimport { Route, Router } from '@angular/router';\r\n\r\n@Component({\r\n selector: 'app-requestlogin',\r\n templateUrl: './requestlogin.component.html',\r\n styleUrls: ['./requestlogin.component.scss']\r\n})\r\nexport class RequestloginComponent {\r\n OTP: any;\r\n OTPtoMobile: any;\r\n Mobile: any;\r\n otpSent: boolean = false;\r\n showLogin: boolean = false;\r\n showLogin1: boolean = true;\r\n logindata: any; RegId: any;\r\n arr: any = []; flag: any;\r\n registerAsDonor: boolean = false;\r\n Fullname: any;\r\n LoginDetails: any; LoginDetails1: any;\r\n constructor(public generalservice: GeneralService, public http: HttpClient, public router: Router) {\r\n this.LoginDetails1 = localStorage.getItem(\"LoginDetails\");\r\n this.LoginDetails = JSON.parse(this.LoginDetails1);\r\n }\r\n\r\n ngOnInit(): void {\r\n\r\n }\r\n reg() {\r\n \r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // Route to login page\r\n this.router.navigate(['/Login']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n this.router.navigate(['/Profile']).then(() => { window.location.reload(); });\r\n }\r\n }\r\n SendOTPtoMobile() {\r\n \r\n if (!this.otpSent && this.Mobile && this.Mobile.length === 10) {\r\n this.OTPtoMobile = Math.floor(1000 + Math.random() * 9000);\r\n var Uploadfile = new FormData();\r\n Uploadfile.append(\"MobileNo\", this.Mobile)\r\n Uploadfile.append(\"OTP\", this.OTPtoMobile)\r\n var url = \"api/BG/SendOtpToMobile\";\r\n this.generalservice.PostData(url, Uploadfile).then((data: any) => {\r\n // Set otpSent to true once OTP is sent\r\n this.otpSent = true;\r\n this.showLogin1 = false;\r\n this.showLogin = true;\r\n })\r\n }\r\n }\r\n vol() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // If LoginDetails is empty or not set, route to the login page\r\n this.router.navigate(['/Volunteerlogin']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n // Assuming roleid is a property of LoginDetails\r\n if ((this.LoginDetails[0].RoleId === 4 && (this.LoginDetails[0].Rolestatus === false || this.LoginDetails[0].Rolestatus === null)) || (this.LoginDetails[0].RoleId === 4 && this.LoginDetails[0].Rolestatus === true) || (this.LoginDetails[0].RoleId === 2 && this.LoginDetails[0].Rolestatus === true)) {\r\n // If roleid is 4, navigate to the '/Volunters' page\r\n this.router.navigate(['/Volunters']);\r\n }\r\n\r\n else if (this.LoginDetails[0].RoleId === 0 && (this.LoginDetails[0].Rolestatus === false)) {\r\n // If roleid is not 4, display an alert message\r\n this.router.navigate(['/Volunteerprofile']);\r\n // alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n else {\r\n this.router.navigate(['/Profile']);\r\n alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n\r\n }\r\n }\r\n\r\n\r\n checkmobile(Mobile) {\r\n ;\r\n if (Mobile.length == 10) {\r\n if (this.OTPtoMobile == this.OTP) {\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Mobile\", Mobile);\r\n\r\n var url = 'api/BG/checking_Mobile'\r\n\r\n this.generalservice.PostData(url, UploadFile).then(data => {\r\n ;\r\n if (data != 'NOTEXIST') {\r\n ;\r\n this.RegId = data[0].RegId;\r\n this.Fullname = data[0].FullName;\r\n this.router.navigate(['/Requestform'])\r\n // .then(() => { window.location.reload(); });\r\n localStorage.setItem(\"RegID\", this.RegId);\r\n localStorage.setItem(\"FullName\", this.Fullname);\r\n this.logindata = JSON.stringify(data[0]);\r\n localStorage.setItem(\"LoginDetails\", this.logindata);\r\n\r\n } else {\r\n // If the phone number doesn't exist, insert it into the table\r\n this.insertPhoneNumber(Mobile);\r\n // Navigate to the registration page\r\n this.router.navigate(['/Requestform'], { queryParams: { mobile: Mobile } });\r\n }\r\n })\r\n }\r\n }\r\n }\r\n\r\n insertPhoneNumber(Mobile) {\r\n var arr = [];\r\n this.arr = [{\r\n Phonenumber: Mobile,\r\n Status: true,\r\n Statusphn: true\r\n }];\r\n\r\n var uploadfile = new FormData();\r\n uploadfile.append(\"Param\", JSON.stringify(this.arr));\r\n uploadfile.append(\"Flag\", '1');\r\n\r\n var url = 'api/BG/Insert_Update_requestForm';\r\n\r\n this.generalservice.PostData(url, uploadfile).then(data => {\r\n if (data != null) {\r\n ;\r\n this.router.navigate(['/Requestform']).then(() => { window.location.reload(); });\r\n this.logindata = JSON.stringify(data[0]);\r\n localStorage.setItem(\"LoginDetails\", this.logindata);\r\n\r\n this.RegId = data[0].RegId;\r\n localStorage.setItem(\"RegID\", this.RegId);\r\n // localStorage.setItem(\"LoginDetails\", JSON.stringify(this.arr));\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 \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, ViewChild, ElementRef, NgZone, ViewEncapsulation } from '@angular/core';\r\nimport { GeneralService } from '../../general.service';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { FormBuilder, FormControl, Validators, FormGroup, ReactiveFormsModule } from '@angular/forms';\r\n//import { MapsAPILoader, MouseEvent } from '@agm/core';\r\ndeclare var $: any\r\nimport { DatePipe } from '@angular/common';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\n@Component({\r\n selector: 'app-requestpresentation',\r\n templateUrl: './requestpresentation.component.html',\r\n styleUrls: ['./requestpresentation.component.scss']\r\n})\r\nexport class RequestpresentationComponent {\r\n public form: FormGroup;\r\n arr: any = [];\r\n districtdata: any = [];\r\n deptList: any;\r\n flag: any;\r\n Statedata: any = [];\r\n Citydata: any = [];\r\n deptList1: any;\r\n deptList2: any; bloodgroupdata: any = [];\r\n deptList3: any;\r\n subDropdownStyle: { [key: string]: string } = {};\r\n isMouseOverSubDropdown: boolean = false;\r\n showDropdownContent = false;\r\n selectedBloodgroup: string = '';\r\n selectedGender: string | null = null;\r\n latitude: any;\r\n longitude: any;\r\n lat: any; selectedpast: string;\r\n selectedaudi: string;\r\n long: any;\r\n zoom: number;\r\n address: string;\r\n Dropaddress: string; activeCardIndex: number = -1;\r\n private geoCoder;\r\n map: boolean\r\n @ViewChild('search')\r\n public searchElementRef: ElementRef;\r\n trip: any; Address: any;\r\n profiledata: any;\r\n LoginDetails1: any; LoginDetails: any;\r\n Lastdonatedate: any;\r\n loginDet: any;\r\n logindata: any;\r\n modalVisible: boolean;\r\n RegId: any;\r\n selectedVenue: string;\r\n deptList9: any;\r\n observ: any = [];\r\n constructor(public genralservice: GeneralService, public http: HttpClient, private datePipe: DatePipe, public fb: FormBuilder, public router: Router,\r\n ) {\r\n //this.loginDet = JSON.parse(localStorage.getItem(\"LoginDetails\"));\r\n this.LoginDetails1 = localStorage.getItem(\"LoginDetails\");\r\n this.LoginDetails = JSON.parse(this.LoginDetails1);\r\n\r\n this.form = this.fb.group({\r\n // Define your form controls here\r\n Mode: ['', Validators.required],\r\n Audiance: ['', Validators.required],\r\n WorkPlace: ['', Validators.required],\r\n Venue_name: ['',],\r\n statename: [''],\r\n districtname: [''],\r\n cityname: [''],\r\n Address: [''],\r\n Area: [''],\r\n \r\n Pincode: [''],\r\n Message: [''],\r\n Contact_name: [''],\r\n Contact_number: [''],\r\n \r\n });\r\n\r\n \r\n \r\n \r\n }\r\n\r\n\r\n ngOnInit(): void {\r\n \r\n\r\n // this.getProfileAndBindFormData();\r\n \r\n this.getstate();\r\n this.getvenue();\r\n\r\n }\r\n\r\n downloadlogo() {\r\n \r\n // Assuming value is boolean\r\n this.router.navigate(['/Stickbrochure']).then(() => { window.location.reload(); });\r\n }\r\n handleClick(index: number) {\r\n if (this.activeCardIndex === index) {\r\n this.activeCardIndex = -1; // Toggle off if same card clicked again\r\n } else {\r\n this.activeCardIndex = index;\r\n }\r\n }\r\n toggleSocialMedia(value: number) {\r\n // Update showSocialMedia variable\r\n this.router.navigate(['/Requestpresentation']).then(() => { window.location.reload(); });\r\n }\r\n reg() {\r\n \r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // Route to login page\r\n this.router.navigate(['/Login']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n this.router.navigate(['/Profile']).then(() => { window.location.reload(); });\r\n }\r\n }\r\n \r\n\r\n getprofile() {\r\n \r\n this.arr = [];\r\n this.arr.push({});\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Mobile\", this.LoginDetails ? (this.LoginDetails.Phonenumber || (this.LoginDetails[0] && this.LoginDetails[0].Phonenumber)) : '');\r\n\r\n var url = \"api/BG/checking_Mobile\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n \r\n this.profiledata = data;\r\n //this.bindFormData(this.profiledata);\r\n localStorage.setItem(\"LoginDetails\", JSON.stringify(this.profiledata));\r\n\r\n this.LoginDetails = this.profiledata;// Call bindFormData with the received data\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error');\r\n });\r\n }\r\n\r\n\r\n\r\n\r\n Donersform() {\r\n debugger\r\n if (!this.form.value.Contact_number || !this.form.value.Contact_name ||\r\n !this.form.value.Venue_name || !this.form.value.Pincode || this.selectedGender === \"\" ||\r\n this.selectedaudi === \"\" || !this.form.value.WorkPlace.WorkPlace) {\r\n // Display an error alert\r\n window.alert('ERROR: Please fill all required fields');\r\n\r\n return; // Stop further execution of the method\r\n }\r\n const stateId = this.form.value.statename && this.form.value.statename.StateId !== undefined\r\n ? this.form.value.statename.StateId\r\n : this.LoginDetails.StateId !== undefined\r\n ? this.LoginDetails.StateId\r\n : this.LoginDetails.StateID;\r\n\r\n const districtId = this.form.value.districtname && this.form.value.districtname.DistrictID !== undefined\r\n ? this.form.value.districtname.DistrictID\r\n : this.LoginDetails.DistrictId !== undefined\r\n ? this.LoginDetails.DistrictId\r\n : this.LoginDetails.DistrictID;\r\n\r\n const cityId = this.form.value.cityname && this.form.value.cityname.CityId !== undefined\r\n ? this.form.value.cityname.CityId\r\n : this.LoginDetails.CityId !== undefined\r\n ? this.LoginDetails.CityId\r\n : this.LoginDetails.CityID;\r\n ;\r\n this.arr = [];\r\n\r\n this.arr.push({\r\n \r\n \r\n Contact_number: this.form.value.Contact_number,\r\n Contact_name: this.form.value.Contact_name,\r\n Address: this.form.value.Address,\r\n Venue_name: this.form.value.Venue_name,\r\n \r\n Mode: this.selectedGender,\r\n Pincode: this.form.value.Pincode || this.LoginDetails.Pincode,\r\n Audiance: this.selectedaudi,\r\n // Venue: this.selectedVenue,\r\n Venue: this.form.value.WorkPlace.WorkPlace,\r\n \r\n StateId: stateId,\r\n DistrictId: districtId,\r\n CityId: cityId,\r\n \r\n Area: this.form.value.Area ,\r\n Message: this.form.value.Message,\r\n CreatedBy:this.LoginDetails ? (this.LoginDetails[0] ? this.LoginDetails[0].RegId : this.LoginDetails.RegId) : '',\r\n });\r\n\r\n var uploadfile = new FormData();\r\n uploadfile.append(\"Param\", JSON.stringify(this.arr));\r\n uploadfile.append(\"Flag\", '1');\r\n var url = \"api/BG/Insert_Update_Requestpresent\";\r\n this.genralservice.PostData(url, uploadfile).then(data => {\r\n if (data == \"SUCCESS\") {\r\n if (this.flag == 1) {\r\n this.genralservice.ShowAlert(\"ERROR\", 'Request added Succesfully', 'error');\r\n\r\n } else {\r\n // localStorage.setItem('LoginDetails', JSON.stringify(this.arr));\r\n this.genralservice.ShowAlert(\"SUCCESS\", 'Request added Succesfully', 'success');\r\n this.router.navigate(['/Volunters']).then(() => {\r\n \r\n window.location.reload();\r\n });\r\n\r\n }\r\n this.form.reset();\r\n } else {\r\n this.genralservice.ShowAlert(\"ERROR\", 'Something went wrong. Please check validation fields', 'error');\r\n }\r\n });\r\n }\r\n\r\n\r\n toggleStatus(checked: boolean) {\r\n this.LoginDetails.Status = checked ? 1 : 0;\r\n }\r\n\r\n getstate() {\r\n \r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '4');\r\n var url = \"api/BG/StatesMaster_crudCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n\r\n this.Statedata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for states //\r\n searchCont(event) {\r\n \r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList = [];\r\n for (var i = 0; i < this.Statedata.length; i++) {\r\n let country = this.Statedata[i];\r\n if (country.StateName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList = filtered;\r\n }\r\n }\r\n\r\n\r\n getDistrict() {\r\n \r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n StateId: this.form.value.statename.StateId\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '5');\r\n var url = \"api/BG/DistrictMaster_crudCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n \r\n this.districtdata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for District //\r\n searchCont1(event) {\r\n\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList1 = [];\r\n for (var i = 0; i < this.districtdata.length; i++) {\r\n let country = this.districtdata[i];\r\n if (country.DistrictName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList1 = filtered;\r\n }\r\n }\r\n\r\n getCity() {\r\n \r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n DistrictId: this.form.value.districtname.DistrictID,\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '5');\r\n var url = \"api/BG/CitiesMaster_Crudcustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n \r\n this.Citydata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for cities //\r\n searchCont2(event) {\r\n\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList2 = [];\r\n for (var i = 0; i < this.Citydata.length; i++) {\r\n let country = this.Citydata[i];\r\n if (country.CityName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList2 = filtered;\r\n }\r\n }\r\n\r\n\r\n getvenue() {\r\n\r\n this.arr = []\r\n this.arr.push({\r\n\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '4');\r\n var url = \"api/BG/BG_Work_Place_Crud\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n debugger\r\n this.observ = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for states //\r\n searchCont9(event) {\r\n \r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList = [];\r\n for (var i = 0; i < this.observ.length; i++) {\r\n let country = this.observ[i];\r\n if (country.WorkPlace.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList9 = filtered;\r\n }\r\n }\r\n\r\n updateSubDropdownPosition(event: MouseEvent) {\r\n // Adjust the sub-dropdown position based on mouse movement\r\n this.subDropdownStyle = {\r\n top: event.clientY + 'px',\r\n left: event.clientX + 'px',\r\n display: 'block',\r\n };\r\n }\r\n\r\n hideSubDropdown() {\r\n if (!this.isMouseOverSubDropdown) {\r\n this.subDropdownStyle = {\r\n display: 'none',\r\n };\r\n }\r\n }\r\n\r\n toggleDropdown() {\r\n this.showDropdownContent = !this.showDropdownContent;\r\n }\r\n\r\n\r\n // Function to select a blood group\r\n selectBloodgroup(bloodgroup: string) {\r\n this.selectedBloodgroup = bloodgroup;\r\n this.showDropdownContent = false; // Hide the dropdown after selection if needed\r\n }\r\n\r\n selectGender(gender: string) {\r\n \r\n this.selectedGender = gender;\r\n // Optionally call your Interior function with the `id`\r\n // this.Interior(id);\r\n } selectaudi(Audiance: string) {\r\n \r\n this.selectedaudi = Audiance;\r\n // Optionally call your Interior function with the `id`\r\n // this.Interior(id);\r\n } selectVenue(venue: string) {\r\n \r\n this.selectedVenue = venue;\r\n // Optionally call your Interior function with the `id`\r\n // this.Interior(id);\r\n }\r\n PastDonation(Past: string) {\r\n \r\n this.selectedpast = Past;\r\n // Optionally call your Interior function with the `id`\r\n // this.Interior(id);\r\n }\r\n vol() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // If LoginDetails is empty or not set, route to the login page\r\n this.router.navigate(['/Volunteerlogin']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n // Assuming roleid is a property of LoginDetails\r\n if ((this.LoginDetails[0].RoleId === 4 && (this.LoginDetails[0].Rolestatus === false || this.LoginDetails[0].Rolestatus === null)) || (this.LoginDetails[0].RoleId === 4 && this.LoginDetails[0].Rolestatus === true) || (this.LoginDetails[0].RoleId === 2 && this.LoginDetails[0].Rolestatus === true)) {\r\n // If roleid is 4, navigate to the '/Volunters' page\r\n this.router.navigate(['/Volunters']);\r\n }\r\n\r\n else if (this.LoginDetails[0].RoleId === 0 && (this.LoginDetails[0].Rolestatus === false)) {\r\n // If roleid is not 4, display an alert message\r\n this.router.navigate(['/Volunteerprofile']);\r\n // alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n else {\r\n this.router.navigate(['/Profile']);\r\n alert(\"Please update your profile as a volunteer to access this page.\");\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 \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
\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 Request for a presentation from Let's help team \r\n \r\n
\r\n
\r\n\r\n\r\n \r\n
\r\n Mode* \r\n
\r\n
\r\n \r\n\r\n
\r\n
\r\n Search Mode \r\n In-Person \r\n Virtual \r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n\r\n
\r\n\r\n\r\n
\r\n Audience* \r\n
\r\n
\r\n
\r\n
\r\n Search Audience number \r\n 100+ \r\n 50-100 \r\n Less than 50 \r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n
\r\n Venue* \r\n
\r\n
\r\n\r\n
\r\n Venue Name* \r\n
\r\n
\r\n \r\n Venue Name is required \r\n\r\n
\r\n\r\n
\r\n Contact Person* \r\n
\r\n
\r\n
\r\n \r\n Contact Name is required \r\n
\r\n\r\n
\r\n Contact Number* \r\n
\r\n\r\n
\r\n \r\n Contact Number is required \r\n
\r\n
\r\n \r\n\r\n\r\n
\r\n\r\n \r\n\r\n
\r\n State Name \r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n \r\n\r\n
State Name is required. \r\n
\r\n\r\n
\r\n\r\n
\r\n District Name \r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n \r\n\r\n
District Name is required. \r\n
\r\n
\r\n\r\n\r\n
\r\n City Name \r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n\r\n\r\n
City Name is required. \r\n
\r\n\r\n
\r\n\r\n\r\n
\r\n Address \r\n
\r\n
\r\n \r\n\r\n \r\n
\r\n\r\n
\r\n Area \r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n Pincode* \r\n
\r\n
\r\n
\r\n \r\n Pincode is required \r\n\r\n
\r\n\r\n
\r\n Message \r\n
\r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n \r\n Submit \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 } from '@angular/core';\r\nimport { GeneralService } from '../../general.service';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { Router } from '@angular/router'\r\ndeclare var $: any;\r\nimport { FormBuilder, FormControl, Validators, FormGroup } from '@angular/forms';\r\nimport { ActivatedRoute } from '@angular/router';\r\n@Component({\r\n selector: 'app-search',\r\n templateUrl: './search.component.html',\r\n styleUrls: ['./search.component.scss']\r\n})\r\nexport class SearchComponent {\r\n arr: any[];\r\n countrydata: any;\r\n Orphanagedata: any;\r\n districtdata: any = [];\r\n deptList: any;\r\n flag: any;\r\n Statedata: any = [];\r\n observ: any = [];\r\n Citydata: any = [];\r\n deptList1: any;\r\n deptList2: any; bloodgroupdata: any = [];\r\n deptList3: any;\r\n deptList4: any;\r\n deptList6: any;\r\n selectedState1: any;\r\n selectedState2: any;\r\n selectedState3: any;\r\n selectedState4: any;\r\n selectedState5: any;\r\n selectedState6: any;\r\n Areadata: any = [];\r\n State: any;\r\n distict: any;\r\n city: any;\r\n bloodgroup: any;\r\n area: any;\r\n lat = 20.5937;\r\n lng = 78.9629;\r\n zoom = 5;\r\n markers: any[] = []; numberdata: any; mobilenumber: any;\r\n NoDonors: boolean = false;\r\n pincode: any; selctedpincode: any;\r\n pincodedata: any; deptList5: any = [];\r\n currentPage: number = 1;\r\n itemsPerPage: number = 10;\r\n startIndex: number = 0;\r\n StateName: any; DistictName: any; CityName: any;\r\n Pincode: any; BloodGroup: any;\r\n \r\n formData: any;\r\n\r\n public form: FormGroup;\r\n public form1: FormGroup;\r\n HsptName: any;\r\n subDropdownStyle: { [key: string]: string } = {};\r\n isMouseOverSubDropdown: boolean = false;\r\n showDropdownContent = false;\r\n dropdownActive: boolean = false; unitsofblood: any = [];\r\n selectedItem1: any;\r\n selectedGender: string | null = null;\r\n Startdate: any; fromDate: any; mindate: any; toDate: any;\r\n logindata: any;\r\n RegId: any; LoginDetails: any;\r\n LoginDetails1: any;\r\n selectedaudi: string;\r\n deptList8: any = [];\r\n addextra: any;\r\n baseurl: string;\r\n arr2: any[];\r\n Email: any;\r\n FullName: any;\r\n submissionCount: number = 0;\r\n Messagetorequester: any;\r\n showNote: boolean;\r\n isTitleVisible: boolean=false;\r\n constructor(public genralservice: GeneralService, public fb: FormBuilder, public http: HttpClient, public router: Router, private route: ActivatedRoute) {\r\n debugger\r\n this.LoginDetails1 = localStorage.getItem(\"LoginDetails\");\r\n this.LoginDetails = JSON.parse(this.LoginDetails1);\r\n this.selectedState1 = localStorage.getItem(\"StateName\");\r\n this.selectedState2 = localStorage.getItem(\"DistictName\");\r\n this.selectedState3 = localStorage.getItem(\"CityName\");\r\n this.selctedpincode = localStorage.getItem(\"PinCode\");\r\n this.selectedState5 = localStorage.getItem(\"BloodGroup\");\r\n this.form = this.fb.group({\r\n // Define your form controls here\r\n contactperson: ['',],\r\n username: ['', Validators.required],\r\n Contmobile: ['', Validators.required],\r\n email: ['', Validators.email],\r\n Gender: ['',],\r\n age: [''],\r\n BloodRequestDate: ['',],\r\n RequestTime: ['',],\r\n unitsofblood: [''],\r\n bloodgroup: [''],\r\n Purpose: ['',],\r\n useraddress: [''],\r\n area: [''],\r\n DoctorName: ['',],\r\n HsptName: ['',],\r\n HospitalPhonenumber: ['',],\r\n HospitalAddress: ['',],\r\n statename: [''],\r\n districtname: [''],\r\n cityname: ['',],\r\n Pincode: ['',],\r\n PersonalNote: ['',],\r\n requestid: ['',],\r\n });\r\n this.form1 = this.fb.group({\r\n // Define your form controls here\r\n FullName: ['',],\r\n ObservationReason: ['', Validators.required],\r\n Comments: ['', Validators.required],\r\n });\r\n \r\n const storedFormData = localStorage.getItem('formData');\r\n if (storedFormData) {\r\n this.formData = JSON.parse(storedFormData);\r\n this.setFormData();\r\n }\r\n }\r\n\r\n openLoginModal() {\r\n $('#myModal1').modal('show');\r\n }\r\n\r\n ngOnInit(): void {\r\n this.GetHospitals();\r\n this.getunitofblood();\r\n this.getobserv();\r\n this.getstate();\r\n this.checkSubmissionCount();\r\n this.getBloodgroup();\r\n this.GetPincode();\r\n \r\n this.getAreas();\r\n this.DataFilter(); \r\n this.route.queryParams.subscribe(params => {\r\n console.log(params); // Check if query parameters are received\r\n this.applyFilters(\r\n params.State.trim(),\r\n params.district.trim(),\r\n params.city.trim(),\r\n params.BloodGroup.trim(),\r\n params.pincode.trim()\r\n\r\n );\r\n\r\n });\r\n\r\n this.route.queryParams.subscribe(params => {\r\n debugger\r\n console.log(params); // Check if query parameters are received\r\n //this.State = params.State.trim(); // Trim whitespace\r\n //this.distict = params.district.trim();\r\n //this.city = params.city.trim();\r\n //this.bloodgroup = params.BloodGroup.trim();\r\n //this.pincode = params.pincode.trim();\r\n this.State = params.State ? params.State.trim() : '';\r\n this.distict = params.district ? params.district.trim() : '';\r\n this.city = params.city ? params.city.trim() : '';\r\n this.bloodgroup = params.BloodGroup ? params.BloodGroup.trim() : '';\r\n this.pincode = params.pincode ? params.pincode.trim() : '';\r\n\r\n this.selectedState1 = { StateName: this.State };\r\n this.selectedState2 = { DistrictName: this.distict };\r\n this.selectedState3 = { CityName: this.city };\r\n this.selctedpincode = { Pincode: this.pincode };\r\n this.selectedState5 = { BLGName: this.bloodgroup };\r\n //this.applyFilters(this.State, this.distict, this.city, this.bloodgroup, this.Pincode);\r\n this.DonorFilterData();\r\n });\r\n \r\n\r\n }\r\n\r\n applyFilters(State: string, district: string, city: string, bloodgroup: string, pincode: string) {\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Param1\", State);\r\n UploadFile.append(\"Param2\", district);\r\n UploadFile.append(\"Param3\", city);\r\n UploadFile.append(\"Param4\", pincode);\r\n UploadFile.append(\"Param5\", bloodgroup);\r\n UploadFile.append(\"Param6\", '');\r\n\r\n var url = \"api/BG/Get_Searchdetails\";\r\n this.genralservice.PostData(url, UploadFile).then((data: any[]) => {\r\n if (data == null || (Array.isArray(data) && data.length === 0)) {\r\n this.NoDonors = true;\r\n this.Orphanagedata = [];\r\n } else {\r\n this.NoDonors = false;\r\n this.Orphanagedata = data.filter((item: any) => {\r\n return (\r\n item.StateName.toLowerCase().includes(State.toLowerCase()) &&\r\n item.DistrictName.toLowerCase().includes(district.toLowerCase()) &&\r\n item.CityName.toLowerCase().includes(city.toLowerCase()) &&\r\n item.BLGName.toLowerCase().includes(bloodgroup.toLowerCase()) &&\r\n item.Pincode.toLowerCase().includes(pincode.toLowerCase())\r\n );\r\n });\r\n\r\n \r\n }\r\n }, err => {\r\n this.NoDonors = true;\r\n this.genralservice.ShowAlert('ERROR', 'Something went wrong', 'error');\r\n });\r\n}\r\n\r\n DataFilter() {\r\n \r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param1\", this.selectedState1);\r\n UploadFile.append(\"Param2\", this.selectedState2);\r\n UploadFile.append(\"Param3\", this.selectedState3);\r\n UploadFile.append(\"Param4\", this.selctedpincode);\r\n UploadFile.append(\"Param5\", this.selectedState5);\r\n UploadFile.append(\"Param6\", '');\r\n var url = \"api/BG/Get_Searchdetails\";\r\n this.genralservice.PostData(url, UploadFile).then((data: any) => {\r\n \r\n if (data == null || (Array.isArray(data) && data.length === 0)) {\r\n this.NoDonors = true;\r\n alert(\"No donors are available.\")\r\n this.Orphanagedata = [];\r\n } else {\r\n this.Orphanagedata = data;\r\n\r\n }\r\n // this.NoDonors = true;\r\n })\r\n }\r\n\r\n DonorFilterData() {\r\n debugger\r\n this.State = this.selectedState1 ? this.selectedState1.StateName : '';\r\n this.distict = this.selectedState2 ? this.selectedState2.DistrictName : '';\r\n this.city = this.selectedState3 ? this.selectedState3.CityName : '';\r\n this.bloodgroup = this.selectedState5 ? this.selectedState5.BLGName : '';\r\n this.Pincode = this.selctedpincode ? this.selctedpincode.Pincode : '';\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param1\", this.State );\r\n UploadFile.append(\"Param2\", this.distict);\r\n UploadFile.append(\"Param3\", this.city);\r\n UploadFile.append(\"Param4\", this.Pincode);\r\n UploadFile.append(\"Param5\", this.bloodgroup);\r\n UploadFile.append(\"Param6\", '');\r\n var url = \"api/BG/Get_Searchdetails\";\r\n this.genralservice.PostData(url, UploadFile).then((data: any) => {\r\n debugger\r\n if (data == null || (Array.isArray(data) && data.length === 0)) {\r\n this.NoDonors = true;\r\n alert(\"No donors are available.\")\r\n this.Orphanagedata = [];\r\n } else {\r\n this.Orphanagedata = data;\r\n const emailsWithNames = this.Orphanagedata.map((donor: any) => ({ email: donor.Email, fullName: donor.FullName }));\r\n this.send_Mail1(emailsWithNames);\r\n\r\n this.NoDonors = false;\r\n }\r\n \r\n })\r\n }\r\n\r\n\r\n send_Mail1(emailsWithNames: { email: string; fullName: string }[]) {\r\n debugger;\r\n this.baseurl = \"https://letshelp.breakingindiaapp.com/webservices\";\r\n\r\n // Extract the top 10 emails with names\r\n const top10EmailsWithNames = emailsWithNames.slice(0, 10);\r\n\r\n // Iterate over each email with name in the top 10 array\r\n top10EmailsWithNames.forEach(({ email, fullName }) => {\r\n // Create an array with current email and full name\r\n const emailArr = [{ Email: email, FullName: fullName }];\r\n\r\n // Create FormData for this email\r\n var uploadFile = new FormData();\r\n uploadFile.append(\"Blood\", JSON.stringify(emailArr));\r\n uploadFile.append(\"url\", this.baseurl);\r\n\r\n // Send the email data\r\n var url = \"api/BG/MailPlaces\";\r\n this.genralservice.PostData(url, uploadFile).then((data: any) => {\r\n // Handle the response if needed\r\n });\r\n });\r\n }\r\n\r\n\r\n\r\n refresh() {\r\n \r\n this.loadDefaultData();\r\n // Clear dropdown selections\r\n this.selectedState1 = null;\r\n this.selectedState2 = null;\r\n this.selectedState3 = null;\r\n this.selctedpincode = null;\r\n this.selectedState5 = null;\r\n }\r\n\r\n\r\n\r\n loadDefaultData() {\r\n \r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Param1\", '');\r\n UploadFile.append(\"Param2\", '');\r\n UploadFile.append(\"Param3\", '');\r\n UploadFile.append(\"Param4\", '');\r\n UploadFile.append(\"Param5\", '');\r\n UploadFile.append(\"Param6\", '');\r\n\r\n \r\n }\r\n toggleMessageVisibility(event: MouseEvent): void {\r\n const icon = event.currentTarget as HTMLElement;\r\n icon.classList.toggle('clicked');\r\n }\r\n showMessage(event: MouseEvent): void {\r\n // Toggle the 'clicked' class to show or hide the message\r\n const icon = event.currentTarget as HTMLElement;\r\n icon.classList.toggle('clicked');\r\n }\r\n getstate() {\r\n \r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '4');\r\n var url = \"api/BG/StatesMaster_crudCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n\r\n this.Statedata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for states //\r\n searchCont(event) {\r\n \r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList = [];\r\n for (var i = 0; i < this.Statedata.length; i++) {\r\n let country = this.Statedata[i];\r\n if (country.StateName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList = filtered;\r\n }\r\n }\r\n onStateSelect1(event) {\r\n console.log('Selected State:', this.selectedState1);\r\n // You can perform additional actions with the selected state here\r\n }\r\n onStateSelect2(event) {\r\n console.log('Selected Distict:', this.selectedState2);\r\n // You can perform additional actions with the selected state here\r\n }\r\n onStateSelect3(event) {\r\n console.log('Selected City:', this.selectedState3);\r\n // You can perform additional actions with the selected state here\r\n }\r\n onSelctedpincode(event) {\r\n console.log('Selected Pincode:', this.selctedpincode);\r\n // You can perform additional actions with the selected state here\r\n }\r\n onStateSelect5(event) {\r\n console.log('Selected BloodGroup:', this.selectedState5);\r\n // You can perform additional actions with the selected state here\r\n }\r\n onStateSelect6(event) {\r\n console.log('Selected Area:', this.selectedState6);\r\n }\r\n\r\n\r\n getAreas() {\r\n\r\n var url = \"api/BG/Get_Areass\";\r\n this.genralservice.GetData(url).then(data => {\r\n \r\n this.Areadata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n searchCont6(event) {\r\n\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList6 = [];\r\n for (var i = 0; i < this.Areadata.length; i++) {\r\n let country = this.Areadata[i];\r\n if (country.Area.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList6 = filtered;\r\n }\r\n }\r\n getDistrict() {\r\n \r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n StateId: this.selectedState1.StateId,\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '5');\r\n var url = \"api/BG/DistrictMaster_crudCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n \r\n this.districtdata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for District //\r\n searchCont1(event) {\r\n\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList1 = [];\r\n for (var i = 0; i < this.districtdata.length; i++) {\r\n let country = this.districtdata[i];\r\n if (country.DistrictName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList1 = filtered;\r\n }\r\n }\r\n\r\n getCity() {\r\n\r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n DistrictId: this.selectedState2.DistrictID,\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '5');\r\n var url = \"api/BG/CitiesMaster_Crudcustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n \r\n this.Citydata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for cities //\r\n searchCont2(event) {\r\n\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList2 = [];\r\n for (var i = 0; i < this.Citydata.length; i++) {\r\n let country = this.Citydata[i];\r\n if (country.CityName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList2 = filtered;\r\n }\r\n }\r\n\r\n\r\n getBloodgroup() {\r\n \r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '4');\r\n var url = \"api/BG/BloodGroupMaster_CRUDCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n \r\n this.bloodgroupdata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for bloodgroup //\r\n searchCont3(event) {\r\n \r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList3 = [];\r\n for (var i = 0; i < this.bloodgroupdata.length; i++) {\r\n let country = this.bloodgroupdata[i];\r\n if (country.BLGName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList3 = filtered;\r\n }\r\n }\r\n\r\n\r\n // select country\r\n getcountry() {\r\n \r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '4');\r\n var url = \"api/BG/StatesMaster_crudCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n\r\n this.countrydata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for states //\r\n searchCont4(event) {\r\n \r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList4 = [];\r\n for (var i = 0; i < this.countrydata.length; i++) {\r\n let country = this.countrydata[i];\r\n if (country.StateName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList4 = filtered;\r\n }\r\n }\r\n GetHospitals() {\r\n\r\n this.arr = []\r\n this.arr.push({\r\n RegId: this.LoginDetails[0]?.RegId || this.LoginDetails?.RegId,\r\n TokenId: this.LoginDetails[0]?.TokenId || this.LoginDetails?.TokenId || 0,\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '6');\r\n var url = \"api/BG/HospitalDetails_CRUD\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n\r\n this.HsptName = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n searchCont8(event) {\r\n\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n\r\n this.deptList3 = [];\r\n for (var i = 0; i < this.HsptName.length; i++) {\r\n\r\n let country = this.HsptName[i];\r\n if (country.HsptName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList8 = filtered;\r\n }\r\n }\r\n //addNewTrip(addextra) {\r\n\r\n // //this.trip != newTrip\r\n // this.addextra = 2;\r\n //}\r\n //Addhospital(value) {\r\n\r\n // const Flag = '7';\r\n\r\n\r\n // var arr = [];\r\n\r\n // arr.push({\r\n // RegId: this.LoginDetails[0].RegId,\r\n // TokenId: this.LoginDetails[0].TokenId,\r\n // HsptID: this.form.value.HsptName.HsptID,\r\n // HsptName: this.form.value.HsptName,\r\n // });\r\n\r\n // var UploadFile = new FormData();\r\n // UploadFile.append(\"Param\", JSON.stringify(arr));\r\n // UploadFile.append(\"Flag\", \"7\");\r\n // var url = \"api/BG/HospitalDetails_CRUD\";\r\n\r\n // this.genralservice.PostData(url, UploadFile).then(data => {\r\n\r\n // if (data == \"SUCCESS\") {\r\n // if (Flag == '7') {\r\n // this.genralservice.ShowAlert('SUCCESS', 'Hospital added successfully', 'success');\r\n // } else {\r\n // this.genralservice.ShowAlert('SUCCESS', 'Hospital updated successfully', 'success');\r\n // }\r\n // // Reload the form\r\n\r\n // this.form.reset();\r\n \r\n // }\r\n // if (data == \"Exist\") {\r\n // this.genralservice.ShowAlert('Exist', 'Data Already Exist', 'success');\r\n // }\r\n // }, error => ({\r\n // title: 'ERROR',\r\n // text: 'Something went wrong. Please try again later.',\r\n // type: 'error',\r\n // confirmButtonText: 'Ok'\r\n // })).then(() => {\r\n // // Reload the page\r\n // // window.location.reload();\r\n // this.addextra = 1;\r\n // this.GetHospitals();\r\n // });\r\n //}\r\n phonenum(val: any) {\r\n \r\n // this.Id = rowData.Id\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Param\", val);\r\n\r\n var url = \"api/BG/Get_Phonenumber\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n debugger\r\n this.numberdata = data;\r\n this.mobilenumber = this.numberdata[0].Phonenumber;\r\n this.Email = this.numberdata[0].Email;\r\n this.FullName = this.numberdata[0].FullName;\r\n this.Messagetorequester = this.numberdata[0].Messagetorequester;\r\n\r\n debugger\r\n // Check if the middle three digits of the phone number are \"xxx\"\r\n if (this.mobilenumber.includes('xxxx')) {\r\n // Render the element or perform any other necessary actions\r\n // For example, you can set a boolean flag to indicate whether to render the
element in your template\r\n this.showNote = true;\r\n } else {\r\n // Hide the
element or perform any other necessary actions\r\n // For example, you can set the flag to false\r\n this.showNote = false;\r\n }\r\n // Open the modal if the middle three digits are \"xxx\"\r\n $('#phoneNumberModal').modal('show');\r\n \r\n\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error');\r\n });\r\n }\r\n\r\n\r\n openModal(val: any) {\r\n \r\n // this.Id = rowData.Id\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Param\", val);\r\n\r\n var url = \"api/BG/Get_Phonenumber\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n \r\n this.numberdata = data;\r\n this.mobilenumber = this.numberdata[0].Phonenumber;\r\n this.form1.get('FullName').setValue(this.numberdata[0].FullName);\r\n this.Email = this.numberdata[0].Email;\r\n this.FullName = this.numberdata[0].FullName;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n\r\n\r\n $('#phoneNumberModal1').modal('show');\r\n }\r\n\r\n selectaudi(Audiance: string) {\r\n \r\n this.selectedaudi = Audiance;\r\n // Optionally call your Interior function with the `id`\r\n // this.Interior(id);\r\n }\r\n\r\n GetPincode() {\r\n \r\n var url = \"api/BG/Get_PincodeDropdown\";\r\n this.genralservice.GetData(url).then(data => {\r\n this.pincodedata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n })\r\n }\r\n\r\n Selectcount5(event) {\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList5 = [];\r\n for (var i = 0; i < this.pincodedata.length; i++) {\r\n let country = this.pincodedata[i];\r\n if (country.Pincode.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n this.deptList5 = filtered;\r\n }\r\n }\r\n prevPage() {\r\n if (this.currentPage > 1) {\r\n this.currentPage--;\r\n this.startIndex -= this.itemsPerPage;\r\n }\r\n }\r\n\r\n nextPage() {\r\n let totalPages = Math.ceil(this.Orphanagedata.length / this.itemsPerPage);\r\n if (this.currentPage < totalPages) {\r\n this.currentPage++;\r\n this.startIndex += this.itemsPerPage;\r\n }\r\n }\r\n\r\n getPages(): number[] {\r\n const pageCount = Math.ceil(this.Orphanagedata.length / this.itemsPerPage);\r\n return Array.from({ length: pageCount }, (_, i) => i + 1);\r\n }\r\n\r\n setPage(page: number) {\r\n this.currentPage = page;\r\n this.startIndex = (page - 1) * this.itemsPerPage;\r\n }\r\n\r\n getPagedItems(): any[] {\r\n const startIndex = (this.currentPage - 1) * this.itemsPerPage;\r\n const endIndex = startIndex + this.itemsPerPage;\r\n return this.Orphanagedata.slice(startIndex, endIndex);\r\n }\r\n\r\n goToFirstPage() {\r\n this.setPage(1);\r\n }\r\n\r\n goToLastPage() {\r\n const totalPages = Math.ceil(this.Orphanagedata.length / this.itemsPerPage);\r\n this.setPage(totalPages);\r\n }\r\n\r\n\r\n\r\n\r\n\r\n\r\n register() {\r\n this.router.navigate(['/blooddonation'], { queryParams: { Visible: true } });\r\n\r\n }\r\n setFormData() {\r\n \r\n // Set form values from stored data\r\n this.form.patchValue({\r\n contactperson: this.formData[0].ContactPerson,\r\n Contmobile: this.formData[0].ContactMobile,\r\n bloodgroup: this.formData[0].BLGName,\r\n BloodRequestDate: this.formData[0].BloodRequestDate,\r\n RequestTime: this.formData[0].RequestTime,\r\n // Set other form values similarly...\r\n \r\n HsptName: this.formData[0].HsptName,\r\n statename: this.formData[0].StateName,\r\n districtname: this.formData[0].DistrictName,\r\n cityname: this.formData[0].CityName,\r\n area: this.formData[0].Area,\r\n PersonalNote: this.formData[0].Note,\r\n Pincode: this.formData[0].Pincode,\r\n requestid: this.formData[0].requestid\r\n });\r\n }\r\n\r\n //request form\r\n Requestform() {\r\n debugger\r\n if (!this.form.value.contactperson || !this.form.value.Contmobile || !this.form.value.bloodgroup\r\n || !this.form.value.HospitalAddress || !this.form.value.unitsofblood || !this.form.value.BloodRequestDate || !this.form.value.RequestTime)\r\n {\r\n this.genralservice.ShowAlert(\"ERROR\", 'Please fill all required fields', 'error');\r\n return; // Stop further execution of the method\r\n }\r\n if (this.submissionCount >= 10) {\r\n this.genralservice.ShowAlert(\"ERROR\", 'You have submitted not more than 10 times. It will be enabled again tomorrow.', 'error');\r\n return;\r\n }\r\n let HsptName;\r\n if (this.form.value.HsptName) {\r\n // Check if HsptName is not empty\r\n let hospitalNameParts;\r\n if (typeof this.form.value.HsptName === 'string') {\r\n // If HsptName is a string, directly split it\r\n hospitalNameParts = this.form.value.HsptName.split(' - ');\r\n } else if (typeof this.form.value.HsptName.HsptName === 'string') {\r\n // If HsptName is an object with HsptName property as string, split that\r\n hospitalNameParts = this.form.value.HsptName.HsptName.split(' - ');\r\n }\r\n\r\n if (hospitalNameParts && hospitalNameParts.length >= 2) {\r\n // Ensure that HsptName can be split into parts\r\n HsptName = hospitalNameParts[0]; // Assign the split result to HsptName\r\n } else {\r\n // Handle the case where split result is not as expected\r\n console.error('Unexpected format for HsptName:', this.form.value.HsptName);\r\n // Add appropriate error handling or fallback behavior here\r\n }\r\n } else {\r\n // Handle the case where HsptName is empty\r\n console.error('HsptName is empty');\r\n // Add appropriate error handling or fallback behavior here\r\n }\r\n\r\n\r\n this.arr = [];\r\n this.arr.push({\r\n RegId: this.LoginDetails ? (this.LoginDetails[0] ? this.LoginDetails[0].RegId : this.LoginDetails.RegId) : '',\r\n ContactPerson: this.form.value.contactperson,\r\n FullName: this.form.value.username,\r\n ContactMobile: this.form.value.Contmobile,\r\n Email: this.form.value.email,\r\n Gender: this.selectedGender,\r\n age: this.form.value.age,\r\n UnitsofBloodId: this.form.value.unitsofblood.UnitsofBloodId,\r\n UserAddress: this.form.value.useraddress,\r\n Area: this.form.value.area,\r\n BloodRequestDate: this.form.value.BloodRequestDate,\r\n RequestTime: this.form.value.RequestTime,\r\n DoctorName: this.form.value.DoctorName,\r\n Purpose: this.form.value.Purpose,\r\n HsptName: HsptName,\r\n HospitalPhonenumber: this.form.value.HospitalPhonenumber,\r\n HospitalAddress: this.form.value.HospitalAddress,\r\n BloodGroupId: this.form.value.bloodgroup.BLGId,\r\n StateId: this.form.value.statename ? this.form.value.statename.StateId : null,\r\n DistrictId: this.form.value.districtname ? this.form.value.districtname.DistrictID : null,\r\n CityId: this.form.value.cityname ? this.form.value.cityname.CityId : null,\r\n\r\n // StateId: this.form.value.statename.StateId ,\r\n //DistrictId: this.form.value.districtname.DistrictID,\r\n //CityId: this.form.value.cityname.CityId,\r\n Note: this.form.value.PersonalNote,\r\n Pincode: this.form.value.Pincode,\r\n requestid: 1,\r\n\r\n })\r\n localStorage.setItem('formData', JSON.stringify(this.arr));\r\n var uploadfile = new FormData()\r\n uploadfile.append(\"Param\", JSON.stringify(this.arr));\r\n uploadfile.append(\"Flag\", '2');\r\n var url = \"api/BG/Insert_Update_requestForm\";\r\n this.genralservice.PostData(url, uploadfile).then(data => {\r\n debugger\r\n if (data == \"SUCCESS\") {\r\n if (this.flag == 1) {\r\n this.genralservice.ShowAlert(\"SUCCESS\", 'Blood Request Raised Succesfully,Please Wait Untill Admin Approve', 'success');\r\n } else {\r\n this.genralservice.ShowAlert(\"SUCCESS\", 'Blood Request Raised Succesfully,Please Wait Untill Admin Approve', 'success');\r\n }\r\n // this.addextra = 1;\r\n this.router.navigate(['/Userdetails']);\r\n $('#phoneNumberModal').modal('hide');\r\n\r\n // Call send_Mail() after processing the request form\r\n this.submissionCount++;\r\n localStorage.setItem('submissionCount', this.submissionCount.toString());\r\n const hsptName = this.extractHospitalName(this.form.value.HsptName);\r\n\r\n this.send_Mail(this.arr, this.arr2, hsptName );\r\n \r\n } else {\r\n this.genralservice.ShowAlert(\"ERROR\", 'Some thing went wrong', 'error');\r\n }\r\n });\r\n }\r\n extractHospitalName(hsptName: any): string {\r\n if (!hsptName) return \"\";\r\n if (typeof hsptName === 'string') {\r\n return hsptName.split(' - ')[0];\r\n } else if (typeof hsptName.HsptName === 'string') {\r\n return hsptName.HsptName.split(' - ')[0];\r\n } else {\r\n console.error('Unexpected format for HsptName:', hsptName);\r\n // Handle the unexpected format\r\n return \"\";\r\n }\r\n }\r\n send_Mail(arr1: any[], arr2: any[], hsptName: string) {\r\n debugger\r\n this.baseurl = \"https://letshelp.breakingindiaapp.com/webservices\";\r\n this.arr2 = [];\r\n this.arr2.push({ ////SPR details\r\n ContactPerson: this.form.value.contactperson,\r\n ContactMobile: this.form.value.Contmobile,\r\n // Email: this.form.value.email,\r\n unitsofblood: this.form.value.unitsofblood.UnitsofBlood,\r\n Area: this.form.value.area,\r\n HsptName: hsptName,\r\n HospitalAddress: this.form.value.HospitalAddress,\r\n BloodRequestDate: this.form.value.BloodRequestDate,\r\n BLGName: this.form.value.bloodgroup.BLGName,\r\n Pincode: this.form.value.Pincode,\r\n \r\n StateName: this.form.value.statename ? this.form.value.statename.StateName : '',\r\n DistrictName: this.form.value.districtname ? this.form.value.districtname.DistrictName : '',\r\n CityName: this.form.value.cityname ? this.form.value.cityname.CityName : '',\r\n\r\n Email: this.Email,\r\n FullName: this.FullName,\r\n \r\n\r\n });\r\n\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Blood\", JSON.stringify(this.arr2));\r\n UploadFile.append(\"url\", this.baseurl);\r\n var url = \"api/BG/MailPlaceOrder\";\r\n this.genralservice.PostData(url, UploadFile).then((data: any) => {\r\n // Handle the response if needed\r\n });\r\n }\r\n Requestform1() {\r\n debugger\r\n // Check if form fields are filled\r\n if (!this.form1.value.Comments || !this.form1.value.ObservationReason?.ObservationReason) {\r\n this.genralservice.ShowAlert(\"ERROR\", 'Please fill all required fields', 'error');\r\n return; // Stop further execution of the method\r\n }\r\n\r\n \r\n const formData = {\r\n RegId: this.numberdata[0].RegId,\r\n Observation: this.form1.value.ObservationReason.ObservationReason,\r\n Comments: this.form1.value.Comments,\r\n CreatedBy: this.LoginDetails ? (this.LoginDetails[0] ? this.LoginDetails[0].RegId : this.LoginDetails.RegId) : '',\r\n };\r\n\r\n // Submit data\r\n var uploadfile = new FormData();\r\n uploadfile.append(\"Param\", JSON.stringify([formData]));\r\n uploadfile.append(\"Flag\", '1');\r\n var url = \"api/BG/Insert_Update_Report\";\r\n this.genralservice.PostData(url, uploadfile).then(data => {\r\n if (data === \"1\" || data === \"0\") {\r\n // Execute this block only when data is \"1\" or an empty string\r\n this.genralservice.ShowAlert(\"SUCCESS\", 'Report Raised Successfully', 'success');\r\n } else {\r\n this.genralservice.ShowAlert(\"ERROR\", 'Something went wrong', 'error');\r\n }\r\n\r\n this.router.navigate(['/Userdetails']);\r\n $('#phoneNumberModal1').modal('hide');\r\n if (data == \"1\") {\r\n this.send_observation([formData], this.arr2);\r\n }\r\n\r\n // Increment submission count and save\r\n // this.submissionCount++;\r\n // localStorage.setItem('submissionCount', this.submissionCount.toString());\r\n\r\n });\r\n }\r\n checkSubmissionCount() {\r\n // Retrieve submission count from local storage or server\r\n const savedSubmissionCount = localStorage.getItem('submissionCount');\r\n\r\n // Check if savedSubmissionCount exists and if it's from today\r\n const savedDate = localStorage.getItem('submissionDate');\r\n const currentDate = new Date().toLocaleDateString();\r\n\r\n if (savedSubmissionCount && savedDate === currentDate) {\r\n this.submissionCount = parseInt(savedSubmissionCount, 10);\r\n } else {\r\n // Reset submission count for a new day\r\n this.submissionCount = 0;\r\n localStorage.setItem('submissionCount', '0');\r\n localStorage.setItem('submissionDate', currentDate);\r\n // Re-enable the form\r\n this.form1.enable();\r\n this.form.enable();\r\n }\r\n }\r\n\r\n send_observation(arr1: any[], arr2: any[]) {\r\n debugger\r\n this.baseurl = \"https://letshelp.breakingindiaapp.com/webservices\";\r\n this.arr2 = [];\r\n this.arr2.push({ ////SPR details\r\n Observation: this.form1.value.ObservationReason.ObservationReason,\r\n Comments: this.form1.value.Comments,\r\n Email: this.Email,\r\n FullName: this.FullName\r\n\r\n });\r\n\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Blood\", JSON.stringify(this.arr2));\r\n UploadFile.append(\"url\", this.baseurl);\r\n var url = \"api/BG/MailtoDonar\";\r\n this.genralservice.PostData(url, UploadFile).then((data: any) => {\r\n // Handle the response if needed\r\n });\r\n }\r\n getobserv() {\r\n \r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '4');\r\n var url = \"api/BG/BG_Observation_Crud\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n \r\n this.observ = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for states //\r\n searchCont9(event) {\r\n \r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList = [];\r\n for (var i = 0; i < this.observ.length; i++) {\r\n let country = this.observ[i];\r\n if (country.ObservationReason.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList6 = filtered;\r\n }\r\n }\r\n \r\n \r\n getunitofblood() {\r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '4');\r\n var url = \"api/BG/UnitsofBlood_CRUDCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n this.unitsofblood = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for bloodgroup //\r\n searchCont41(event) {\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList3 = [];\r\n for (var i = 0; i < this.unitsofblood.length; i++) {\r\n let country = this.unitsofblood[i];\r\n if (country.UnitsofBlood.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList4 = filtered;\r\n }\r\n }\r\n\r\n updateSubDropdownPosition(event: MouseEvent) {\r\n // Adjust the sub-dropdown position based on mouse movement\r\n this.subDropdownStyle = {\r\n top: event.clientY + 'px',\r\n left: event.clientX + 'px',\r\n display: 'block',\r\n };\r\n }\r\n\r\n hideSubDropdown() {\r\n if (!this.isMouseOverSubDropdown) {\r\n this.subDropdownStyle = {\r\n display: 'none',\r\n };\r\n }\r\n }\r\n\r\n toggleDropdown() {\r\n this.showDropdownContent = !this.showDropdownContent;\r\n }\r\n\r\n toggleDropdownActive() {\r\n this.dropdownActive = !this.dropdownActive;\r\n }\r\n\r\n back() {\r\n this.router.navigate(['/blooddonation']);\r\n }\r\n\r\n selectOption1(gender: string) {\r\n this.form.value('Gender').setValue(gender === '1' ? 'Female' : 'Male');\r\n }\r\n\r\n getChipStyle1(option: string): any {\r\n return {\r\n 'background-color': this.selectedItem1 === option ? 'green' : '#f0f0f0',\r\n 'color': this.selectedItem1 === option ? 'white' : 'black',\r\n 'border-color': this.selectedItem1 === option ? 'green' : '#ccc'\r\n };\r\n }\r\n\r\n selectGender(gender: string) {\r\n this.selectedGender = gender;\r\n // Optionally call your Interior function with the `id`\r\n // this.Interior(id);\r\n }\r\n\r\n toggleStatus(checked: number) {\r\n this.form.get('requestid').setValue(checked ? 1 : 0);\r\n }\r\n\r\n //request form\r\n\r\n \r\n getDistrict1() {\r\n\r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n \r\n StateId: this.form.value.statename.StateId\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '5');\r\n var url = \"api/BG/DistrictMaster_crudCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n\r\n this.districtdata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for District //\r\n searchCont11(event) {\r\n\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList1 = [];\r\n for (var i = 0; i < this.districtdata.length; i++) {\r\n let country = this.districtdata[i];\r\n if (country.DistrictName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList1 = filtered;\r\n }\r\n }\r\n\r\n getCity1() {\r\n\r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n DistrictId: this.form.value.districtname.DistrictID,\r\n \r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '5');\r\n var url = \"api/BG/CitiesMaster_Crudcustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n\r\n this.Citydata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for cities //\r\n searchCont21(event) {\r\n\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList2 = [];\r\n for (var i = 0; i < this.Citydata.length; i++) {\r\n let country = this.Citydata[i];\r\n if (country.CityName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList2 = filtered;\r\n }\r\n }\r\n}\r\n","\r\n\r\n
\r\n \r\n \r\n \r\n \r\n Let's Help \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
Search Donor Details \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 No Donors are there please Fill\r\n a request form to raise the blood request\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 \r\n Search \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 Donor \r\n Donor Number \r\n Report/Update \r\n \r\n \r\n \r\n {{ item.FullName }} \r\n \r\n \r\n \r\n \r\n Click to contact \r\n Click here \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\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 Note :\r\n Update here if there is any issue reaching the donor so that we rectify the problem for the future users.\r\n \r\n\r\n
\r\n \r\n\r\n\r\n \r\n
\r\n Donor Name \r\n
\r\n
\r\n \r\n Donor Name is required \r\n\r\n
\r\n\r\n \r\n\r\n
\r\n Observation \r\n
\r\n
\r\n\r\n\r\n\r\n\r\n
\r\n Additional Comments* \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 Submit \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 } from '@angular/core';\r\nimport { GeneralService } from '../../general.service';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { FormBuilder, FormControl, Validators, FormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { Router } from '@angular/router';\r\ndeclare var $: any;\r\n@Component({\r\n selector: 'app-shareyourservices',\r\n templateUrl: './shareyourservices.component.html',\r\n styleUrls: ['./shareyourservices.component.scss']\r\n})\r\nexport class ShareyourservicesComponent implements OnInit {\r\n\r\n public form: FormGroup;\r\n arr: any = [];\r\n districtdata: any = [];\r\n deptList: any;\r\n flag: any;\r\n Statedata: any = [];\r\n Citydata: any = [];\r\n deptList1: any;\r\n deptList2: any; bloodgroupdata: any = [];\r\n subDropdownStyle: { [key: string]: string } = {};\r\n isMouseOverSubDropdown: boolean = false;\r\n showDropdownContent = false;\r\n selectedBloodgroup: string = '';\r\n GalleryImages: any;\r\n imagefile2: any;\r\n HomeUrl: any;\r\n GalleryID: any;\r\n Form: FormGroup;\r\n LoginDetails1: any; LoginDetails: any\r\n category: any = []; deptList3: any;\r\n RegId: any;\r\n\r\n\r\n pwd1: any;\r\n userid: any;\r\n Mobile: any;\r\n OTP: any;\r\n OTPtoMobile: any;\r\n logindata: any;\r\n otpSent: boolean = false;\r\n showLogin: boolean = false;\r\n showLogin1: boolean = true;\r\n modalVisible: false;\r\n Age: any;\r\n BloodRequestDate: any;\r\n RequestTime: any;\r\n Purpose: any;\r\n letter: any;\r\n \r\n constructor(public genralservice: GeneralService, public http: HttpClient, public fb: FormBuilder, private router: Router) {\r\n debugger\r\n this.LoginDetails1 = localStorage.getItem(\"LoginDetails\");\r\n this.LoginDetails = JSON.parse(this.LoginDetails1);\r\n if (Array.isArray(this.LoginDetails) && this.LoginDetails.length > 0) {\r\n this.letter = this.LoginDetails[0].FullName.charAt(0);\r\n } else if (this.LoginDetails && this.LoginDetails.FullName) {\r\n this.letter = this.LoginDetails.FullName.charAt(0);\r\n } else {\r\n this.letter = '';\r\n }\r\n this.form = this.fb.group({\r\n Category: ['', Validators.required],\r\n Dateofservice: [''],\r\n //bloodgroup: [''],\r\n statename: [''],\r\n districtname: [''],\r\n cityname: [''],\r\n Institutionname: [''],\r\n GalleryImages: ['', Validators.required],\r\n Message: ['',],\r\n });\r\n\r\n\r\n }\r\n\r\n\r\n ngOnInit(): void {\r\n this.getgallerycat();\r\n this.getstate();\r\n this.getDistrict();\r\n this.getCity();\r\n\r\n }\r\n toggleDropdown() {\r\n const dropdownContent = document.getElementById(\"dropdownContent\");\r\n if (dropdownContent.style.display === \"block\") {\r\n dropdownContent.style.display = \"none\";\r\n } else {\r\n dropdownContent.style.display = \"block\";\r\n }\r\n }\r\n\r\n checkLoginStatus() {\r\n // Check if user is logged in (replace with your actual logic)\r\n // If user is logged in, set LoginDetails, otherwise set it to null\r\n if (this.LoginDetails != null) {\r\n this.LoginDetails = {\r\n\r\n };\r\n } else {\r\n this.LoginDetails = null;\r\n }\r\n }\r\n\r\n checkmobile(Mobile) {\r\n if (Mobile.length == 10) {\r\n if (this.OTPtoMobile == this.OTP) {\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Mobile\", Mobile);\r\n\r\n\r\n var url = 'api/BG/checking_Mobile'\r\n\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n //this.logindata = JSON.stringify(data[0]);\r\n //localStorage.setItem(\"LoginDetails\", this.logindata);\r\n debugger\r\n if (data != 'NOTEXIST') {\r\n debugger\r\n this.pwd1 = data[0].Password;\r\n this.userid = data[0].ID;\r\n this.router.navigate(['/blooddonation']).then(() => { window.location.reload(); });\r\n this.logindata = JSON.stringify(data[0]);\r\n localStorage.setItem(\"LoginDetails\", this.logindata);\r\n\r\n }\r\n else {\r\n\r\n this.router.navigate(['/Donersform'])\r\n // this.router.navigate(['/register', { Mobile: this.form.value.Mobile }])\r\n .then(() => {\r\n window.location.reload();\r\n });\r\n this.logindata = JSON.stringify(data[0]);\r\n localStorage.setItem(\"LoginDetails\", this.logindata);\r\n }\r\n })\r\n }\r\n }\r\n }\r\n openLoginModal() {\r\n // Show the modal here\r\n $('#myModal').modal('show');\r\n }\r\n SendOTPtoMobile() {\r\n if (!this.otpSent && this.Mobile && this.Mobile.length === 10) {\r\n this.OTPtoMobile = Math.floor(1000 + Math.random() * 9000);\r\n var Uploadfile = new FormData();\r\n Uploadfile.append(\"MobileNo\", this.Mobile)\r\n Uploadfile.append(\"OTP\", this.OTPtoMobile)\r\n var url = \"api/BG/SendOtpToMobile\";\r\n this.genralservice.PostData(url, Uploadfile).then((data: any) => {\r\n // Set otpSent to true once OTP is sent\r\n this.otpSent = true;\r\n this.showLogin1 = false;\r\n this.showLogin = true;\r\n })\r\n }\r\n }\r\n\r\n\r\n closeModal() {\r\n this.modalVisible = false;\r\n $('#myModal').modal('hide');\r\n }\r\n signOut() {\r\n // Remove the login details from localStorage\r\n localStorage.removeItem('LoginDetails');\r\n\r\n // Optionally, you might want to perform other sign-out related tasks such as\r\n // navigating the user to the login page, clearing any local state, etc.\r\n }\r\n\r\n\r\n AddBanner(value, flag) {\r\n debugger\r\n if (!value.GalleryImages) {\r\n this.genralservice.ShowAlert('Warning', 'Please upload an image file', 'Warning');\r\n return;\r\n }\r\n if (!value.Category) {\r\n this.genralservice.ShowAlert('Warning', 'Please specify a category', 'Warning');\r\n return;\r\n }\r\n if (!value.Dateofservice) {\r\n this.genralservice.ShowAlert('Warning', 'Please choose a Date of service', 'Warning');\r\n return;\r\n }\r\n if (!value.statename) {\r\n this.genralservice.ShowAlert('Warning', 'Please choose a state', 'Warning');\r\n return;\r\n }\r\n if (!value.Institutionname) {\r\n this.genralservice.ShowAlert('Warning', 'Please enter the institution name', 'Warning');\r\n return;\r\n }\r\n var arr = [];\r\n debugger\r\n arr.push({\r\n RegId: this.LoginDetails[0]?.RegId || this.LoginDetails?.RegId || 0,\r\n GalleryID: this.GalleryID,\r\n Categoryid: value.Category.Categoryid,\r\n GalleryImages: this.GalleryImages,\r\n Dateofservice: this.form.value.Dateofservice,\r\n State: this.form.value.statename.StateId,\r\n District: this.form.value.districtname.DistrictID,\r\n City: this.form.value.cityname.CityId,\r\n Institutionname: this.form.value.Institutionname,\r\n Message: this.form.value.Message,\r\n });\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Param\", JSON.stringify(arr));\r\n UploadFile.append(\"Flag\", flag);\r\n var url = \"api/BG/Gallery_Crud\";\r\n\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n debugger\r\n if (data == \"SUCCESS\") {\r\n if (flag == 1) {\r\n this.genralservice.ShowAlert('SUCCESS', 'Image Uploaded successfully ', 'success');\r\n } else {\r\n this.genralservice.ShowAlert('SUCCESS', 'Image Updated successfully', 'success');\r\n }\r\n this.form.reset();\r\n this.router.navigate(['/Gallery']);\r\n\r\n }\r\n if (data == \"Exist\") {\r\n this.genralservice.ShowAlert('Exist', 'Data Already Exist ', 'success');\r\n }\r\n }, error => ({\r\n title: 'ERROR',\r\n text: 'Something went wrong. Please try again later.',\r\n type: 'error',\r\n confirmButtonText: 'Ok'\r\n }));\r\n }\r\n\r\n\r\n\r\n\r\n getstate() {\r\n debugger\r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '4');\r\n var url = \"api/BG/StatesMaster_crudCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n\r\n this.Statedata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for states //\r\n searchCont(event) {\r\n debugger\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList = [];\r\n for (var i = 0; i < this.Statedata.length; i++) {\r\n let country = this.Statedata[i];\r\n if (country.StateName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList = filtered;\r\n }\r\n }\r\n\r\n\r\n getDistrict() {\r\n debugger\r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n StateId: this.form.value.statename.StateId\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '5');\r\n var url = \"api/BG/DistrictMaster_crudCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n debugger\r\n this.districtdata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for District //\r\n searchCont1(event) {\r\n\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList1 = [];\r\n for (var i = 0; i < this.districtdata.length; i++) {\r\n let country = this.districtdata[i];\r\n if (country.DistrictName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList1 = filtered;\r\n }\r\n }\r\n\r\n getCity() {\r\n debugger\r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n DistrictId: this.form.value.districtname.DistrictID,\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '5');\r\n var url = \"api/BG/CitiesMaster_Crudcustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n debugger\r\n this.Citydata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for cities //\r\n searchCont2(event) {\r\n\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList2 = [];\r\n for (var i = 0; i < this.Citydata.length; i++) {\r\n let country = this.Citydata[i];\r\n if (country.CityName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList2 = filtered;\r\n }\r\n }\r\n\r\n\r\n getgallerycat() {\r\n debugger\r\n this.arr = []\r\n this.arr.push({\r\n\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '4');\r\n var url = \"api/BG/GalleryCat_Crud\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n debugger\r\n this.category = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n searchCont3(event) {\r\n debugger\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList3 = [];\r\n for (var i = 0; i < this.category.length; i++) {\r\n let country = this.category[i];\r\n if (country.categoryname.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList3 = filtered;\r\n }\r\n }\r\n detectFiles2(input2) {\r\n debugger\r\n //let arr = [];\r\n //arr.push({ UserID: this.loginDet.Id, TokenID: this.loginDet.TokenID })\r\n const reader = new FileReader();\r\n if (input2.files.length) {\r\n\r\n const file = input2.files[0];\r\n reader.onload = () => {\r\n\r\n this.imagefile2 = reader.result;\r\n this.GalleryImages = this.imagefile2;\r\n }\r\n reader.readAsDataURL(file);\r\n var selectedFile = file;\r\n var idxDot = selectedFile.name.lastIndexOf(\".\") + 1;\r\n var extFile = selectedFile.name.substr(idxDot, selectedFile.name.length).toLowerCase();\r\n if (extFile == \"jpg\" || extFile == \"jpeg\" || extFile == \"png\" || extFile == \"gif\" || extFile == \"webp\") {\r\n\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"UploadedImage\", file);\r\n var url = \"api/BG/UploadGallery\";\r\n this.genralservice.PostData(url, UploadFile).then((data: any) => {\r\n if (data != null) {\r\n debugger\r\n this.imagefile2 = this.HomeUrl + data;\r\n this.GalleryImages = data;\r\n }\r\n });\r\n }\r\n else {\r\n alert(\"Only jpg/jpeg, png, gif, and webp files are allowed!\");\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
Share Your Service \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 Sharing your experience and your service is always a reminder and motivitating\r\n factor to someone so, please donot hesitate to share your services below\r\n
\r\n
\r\n It will be desiplayed on the main page of blood donation and its always saved in our\r\n lets-fight data base\r\n
\r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n
\r\n \r\n\r\n
\r\n
Category* \r\n \r\n\r\n
\r\n \r\n\r\n
Donor category is required. \r\n \r\n
\r\n
\r\n \r\n \r\n\r\n
\r\n Upload Picture* \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
State Name* \r\n
\r\n\r\n
\r\n\r\n \r\n\r\n
State Name is required. \r\n
\r\n\r\n
\r\n
\r\n\r\n \r\n\r\n
\r\n
District Name \r\n
\r\n
\r\n\r\n \r\n\r\n
District Name is required. \r\n
\r\n
\r\n\r\n
\r\n\r\n \r\n\r\n
\r\n
City Name \r\n
\r\n
\r\n \r\n\r\n\r\n
City name is required. \r\n
\r\n\r\n
\r\n\r\n
\r\n \r\n \r\n\r\n
\r\n Name of institution / Hospital* \r\n \r\n
\r\n
\r\n\r\n \r\n\r\n
\r\n Message your personal note \r\n \r\n Submit \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
Share Your Service \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 Sharing your experience and your service is always a reminder and motivitating\r\n factor to someone so, please donot hesitate to share your services below\r\n
\r\n
\r\n It will be desiplayed on the main page of blood donation and its always saved in our\r\n lets-fight data base\r\n
\r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n
\r\n \r\n\r\n
\r\n
Category* \r\n \r\n\r\n
\r\n \r\n\r\n
Donor category is required. \r\n \r\n
\r\n
\r\n \r\n \r\n\r\n
\r\n Upload Picture* \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
State Name* \r\n
\r\n\r\n
\r\n\r\n \r\n\r\n
State Name is required. \r\n
\r\n\r\n
\r\n
\r\n\r\n \r\n\r\n
\r\n
District Name \r\n
\r\n
\r\n\r\n \r\n\r\n
District Name is required. \r\n
\r\n
\r\n\r\n
\r\n\r\n \r\n\r\n
\r\n
City Name \r\n
\r\n
\r\n \r\n\r\n\r\n
City name is required. \r\n
\r\n\r\n
\r\n\r\n
\r\n \r\n \r\n\r\n
\r\n Name of institution / Hospital* \r\n \r\n
\r\n
\r\n\r\n \r\n\r\n
\r\n Message your personal note \r\n \r\n Submit \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 { ChangeDetectorRef, Component } from '@angular/core';\r\nimport { GeneralService } from '../../general.service';\r\nimport { HttpClient, HttpHeaders } from '@angular/common/http';\r\nimport { FormBuilder, FormControl, Validators, FormGroup } from '@angular/forms';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { Observable } from 'rxjs';\r\nimport { Location } from '@angular/common';\r\n@Component({\r\n selector: 'app-stickbrochure',\r\n templateUrl: './stickbrochure.component.html',\r\n styleUrls: ['./stickbrochure.component.scss']\r\n})\r\nexport class StickbrochureComponent {\r\n HomeURL: any;\r\n brochuedata: any = [];\r\n showSocialMedia: any;\r\n Statedata: any = [];\r\n observ: any = [];\r\n deptList: any;\r\n districtdata: any = [];\r\n deptList1: any;\r\n Citydata: any = [];\r\n deptList2: any;\r\n deptList9: any;\r\n selectedState1: any;\r\n selectedState2: any;\r\n selectedState3: any; brochures: any;\r\n pincode: any; DownloadLogo: any = 2;\r\n LoginDetails1: any; LoginDetails: any; activeCardIndex: number = -1;\r\n pdfurl: any;\r\n pdfpath: any;\r\n arr1: any = [];\r\n isActive: boolean = false; arr: any;\r\n public form: FormGroup;\r\n selectedVenue: string;\r\n\r\n constructor(public generalservice: GeneralService, private location: Location,\r\n private cdr: ChangeDetectorRef, public router: Router, public http: HttpClient, public fb: FormBuilder) {\r\n debugger\r\n this.LoginDetails1 = localStorage.getItem(\"LoginDetails\");\r\n this.LoginDetails = JSON.parse(this.LoginDetails1);\r\n this.http.get('../assets/WebService.json').subscribe((data: any) => {\r\n // this.pdfurl = 'https://localhost:44387/';\r\n this.pdfurl = 'https://letshelp.breakingindiaapp.com/Webservices/';\r\n });\r\n\r\n this.form = this.fb.group({\r\n // Define your form controls here\r\n StateName: ['',],\r\n DistrictName: ['',],\r\n CityName: ['',],\r\n pincode: ['',],\r\n location: ['',],\r\n WorkPlace: ['',],\r\n Place_name: ['',],\r\n\r\n });\r\n\r\n }\r\n\r\n ngOnInit(): void {\r\n this.getvenue();\r\n this.brochure();\r\n this.getstate();\r\n \r\n\r\n\r\n\r\n }\r\n handleClick(index: number) {\r\n if (this.activeCardIndex === index) {\r\n this.activeCardIndex = -1; // Toggle off if same card clicked again\r\n } else {\r\n this.activeCardIndex = index;\r\n }\r\n }\r\n selectVenue(venue: string) {\r\n \r\n this.selectedVenue = venue;\r\n // Optionally call your Interior function with the `id`\r\n // this.Interior(id);\r\n }\r\n Brochureinsert() {\r\n\r\n if (!this.form.value.pincode || !this.form.value.DistrictName || !this.form.value.WorkPlace.WorkPlace || !this.form.value.CityName\r\n || !this.form.value.StateName) {\r\n alert('Please select all the details ');\r\n return;\r\n }\r\n \r\n this.arr = [];\r\n this.arr.push({\r\n stateid: this.form.value.StateName.StateId,\r\n districtid: this.form.value.DistrictName.DistrictID,\r\n cityid: this.form.value.CityName.CityId,\r\n Pincode: this.form.value.pincode,\r\n Location: this.form.value.location,\r\n Place_name: this.form.value.Place_name,\r\n Place: this.form.value.WorkPlace.WorkPlace,\r\n // Place: this.selectedVenue,\r\n })\r\n var uploadfile = new FormData()\r\n uploadfile.append(\"Param\", JSON.stringify(this.arr));\r\n var url = \"api/BG/InsertBrochures_Deatails\";\r\n this.generalservice.PostData(url, uploadfile)\r\n .then(data => {\r\n if (data === \"SUCCESS\") {\r\n this.downloadFile(this.pdfpath);\r\n } else {\r\n console.error(\"Error occurred while processing file:\", data);\r\n }\r\n })\r\n .catch(error => {\r\n console.error(\"Error occurred while downloading file:\", error);\r\n });\r\n\r\n\r\n\r\n }\r\n\r\n Brochureinsert1() {\r\n if (!this.form.value.pincode || !this.form.value.DistrictName || !this.form.value.CityName || !this.form.value.WorkPlace.WorkPlace\r\n || !this.form.value.StateName) {\r\n alert('Please select all the details ');\r\n return;\r\n }\r\n \r\n this.arr = [];\r\n this.arr.push({\r\n stateid: this.form.value.StateName.StateId,\r\n districtid: this.form.value.DistrictName.DistrictID,\r\n cityid: this.form.value.CityName.CityId,\r\n Pincode: this.form.value.pincode,\r\n Location: this.form.value.location,\r\n Place_name: this.form.value.Place_name,\r\n Place: this.form.value.WorkPlace.WorkPlace,\r\n });\r\n var uploadfile = new FormData();\r\n uploadfile.append(\"Param\", JSON.stringify(this.arr));\r\n var url = \"api/BG/InsertBrochures_Deatails\";\r\n this.generalservice.PostData(url, uploadfile)\r\n .then(data => {\r\n if (data === \"SUCCESS\") {\r\n this.generalservice.ShowAlert('SUCCESS', 'Successfully added the Brochure details', 'SUCCESS');\r\n \r\n \r\n window.location.reload();\r\n \r\n } else {\r\n console.error(\"Error occurred while processing file:\", data);\r\n }\r\n })\r\n .catch(error => {\r\n console.error(\"Error occurred while processing file:\", error);\r\n });\r\n }\r\n\r\n brochure() {\r\n \r\n this.arr = [];\r\n this.arr.push({\r\n\r\n })\r\n var uploadfile = new FormData()\r\n uploadfile.append(\"Param\", JSON.stringify(this.arr));\r\n uploadfile.append(\"Flag\", '4');\r\n var url = \"api/BG/BG_Brochers_Crud\";\r\n this.generalservice.PostData(url, uploadfile).then(data => {\r\n this.brochuedata = data;\r\n this.pdfpath = this.brochuedata[0].BrochurePath\r\n })\r\n\r\n }\r\n getvenue() {\r\n \r\n this.arr = []\r\n this.arr.push({\r\n \r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '4');\r\n var url = \"api/BG/BG_Work_Place_Crud\";\r\n this.generalservice.PostData(url, UploadFile).then(data => {\r\n debugger\r\n this.observ = data;\r\n }, err => {\r\n this.generalservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for states //\r\n searchCont9(event) {\r\n \r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList = [];\r\n for (var i = 0; i < this.observ.length; i++) {\r\n let country = this.observ[i];\r\n if (country.WorkPlace.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList9 = filtered;\r\n }\r\n }\r\n\r\n download1(filePath: string | null): void {\r\n if (filePath) {\r\n const fileName: string = filePath.split('/').pop() || '';\r\n const absoluteUrl: string = `https://localhost:44387/${filePath}`;\r\n\r\n const link: HTMLAnchorElement = document.createElement('a');\r\n link.href = absoluteUrl;\r\n link.download = fileName;\r\n\r\n document.body.appendChild(link);\r\n link.click();\r\n document.body.removeChild(link);\r\n } else {\r\n console.error('File path not available');\r\n }\r\n }\r\n download(filePath: string | null): void {\r\n if (filePath) {\r\n const timestamp = new Date().getTime(); // Get current timestamp\r\n const absoluteUrl: string = `https://letshelp.breakingindiaapp.com/Webservices/${filePath}?t=${timestamp}`;\r\n\r\n // Create a temporary anchor element\r\n const link = document.createElement('a');\r\n link.href = absoluteUrl;\r\n link.setAttribute('download', ''); // This will set the download attribute to force download\r\n document.body.appendChild(link);\r\n\r\n // Simulate a click on the anchor element\r\n link.click();\r\n\r\n // Remove the anchor element from the DOM after a short delay\r\n setTimeout(() => {\r\n document.body.removeChild(link);\r\n }, 100);\r\n } else {\r\n console.error('File path not available');\r\n }\r\n }\r\n downloadFile(filePath: string): void {\r\n \r\n const absoluteUrl: string = `https://letshelp.breakingindiaapp.com/Webservices/${filePath}`;\r\n\r\n // Create a temporary anchor element\r\n const link = document.createElement('a');\r\n link.href = absoluteUrl;\r\n link.setAttribute('download', ''); // This will set the download attribute to force download\r\n document.body.appendChild(link);\r\n\r\n // Simulate a click on the anchor element\r\n link.click();\r\n\r\n // Remove the anchor element from the DOM\r\n document.body.removeChild(link);\r\n }\r\n\r\n\r\n\r\n\r\n\r\n toggleSocialMedia(value: number) {\r\n // Update showSocialMedia variable\r\n this.router.navigate(['/Requestpresentation'])\r\n }\r\n\r\n vol() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // If LoginDetails is empty or not set, route to the login page\r\n this.router.navigate(['/Volunteerlogin']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n // Assuming roleid is a property of LoginDetails\r\n if ((this.LoginDetails[0].RoleId === 4 && (this.LoginDetails[0].Rolestatus === false || this.LoginDetails[0].Rolestatus === null)) || (this.LoginDetails[0].RoleId === 4 && this.LoginDetails[0].Rolestatus === true) || (this.LoginDetails[0].RoleId === 2 && this.LoginDetails[0].Rolestatus === true)) {\r\n // If roleid is 4, navigate to the '/Volunters' page\r\n this.router.navigate(['/Volunters']);\r\n }\r\n\r\n else if (this.LoginDetails[0].RoleId === 0 && (this.LoginDetails[0].Rolestatus === false)) {\r\n // If roleid is not 4, display an alert message\r\n this.router.navigate(['/Volunteerprofile']);\r\n // alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n else {\r\n this.router.navigate(['/Profile']);\r\n alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n\r\n }\r\n }\r\n\r\n\r\n\r\n toggleSocialMedias(value: any) {\r\n \r\n if (value != 2) {\r\n this.showSocialMedia = value;\r\n\r\n }\r\n else {\r\n // this.downloadlogo();\r\n }\r\n }\r\n\r\n\r\n openInstagram() {\r\n // Replace 'your-instagram-url' with the actual Instagram share URL\r\n const instagramShareUrl = 'https://www.instagram.com/';\r\n const urlToShare = 'https://letshelp.breakingindiaapp.com/Brochures';\r\n\r\n // Combine Instagram URL and the URL to share\r\n const finalInstagramUrl = `${instagramShareUrl}?url=${encodeURIComponent(urlToShare)}`;\r\n\r\n // Open Instagram in a new window or tab\r\n window.open(finalInstagramUrl, '_blank');\r\n }\r\n openFacebook() {\r\n // Replace 'your-facebook-url' with the actual Facebook share URL\r\n const facebookShareUrl = 'https://www.facebook.com/sharer/sharer.php?u=';\r\n const urlToShare = 'https://letshelp.breakingindiaapp.com/Brochures';\r\n\r\n // Combine Facebook URL and the URL to share\r\n const finalFacebookUrl = `${facebookShareUrl}${encodeURIComponent(urlToShare)}`;\r\n\r\n // Open Facebook in a new window or tab\r\n window.open(finalFacebookUrl, '_blank');\r\n }\r\n openWhatsApp() {\r\n // Replace 'your-whatsapp-url' with the actual WhatsApp share URL\r\n const whatsappShareUrl = 'https://wa.me/?text=';\r\n const textToShare = 'Check out this link: https://letshelp.breakingindiaapp.com/Brochures';\r\n\r\n // Combine WhatsApp URL and the text to share\r\n const finalWhatsAppUrl = `${whatsappShareUrl}${encodeURIComponent(textToShare)}`;\r\n\r\n // Open WhatsApp in a new window or tab\r\n window.open(finalWhatsAppUrl, '_blank');\r\n }\r\n\r\n openGmailApp() {\r\n // Replace 'your-whatsapp-url' with the actual WhatsApp share URL\r\n const GmailShareUrl = 'https://mail.google.com/mail/u/0/';\r\n const textToShare = 'Check out this link: https://letshelp.breakingindiaapp.com/Brochures';\r\n\r\n // Combine WhatsApp URL and the text to share\r\n const finalWhatsAppUrl = `${GmailShareUrl}${encodeURIComponent(textToShare)}`;\r\n\r\n // Open WhatsApp in a new window or tab\r\n window.open(finalWhatsAppUrl, '_blank');\r\n }\r\n\r\n\r\n setActiveCard(index: number) {\r\n this.activeCardIndex = index;\r\n }\r\n\r\n getstate() {\r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '4');\r\n var url = \"api/BG/StatesMaster_crudCustomer\";\r\n this.generalservice.PostData(url, UploadFile).then(data => {\r\n\r\n this.Statedata = data;\r\n }, err => {\r\n this.generalservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for states //\r\n searchCont(event) {\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList = [];\r\n for (var i = 0; i < this.Statedata.length; i++) {\r\n let country = this.Statedata[i];\r\n if (country.StateName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList = filtered;\r\n }\r\n }\r\n\r\n getDistrict() {\r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n StateId: this.selectedState1.StateId,\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '5');\r\n var url = \"api/BG/DistrictMaster_crudCustomer\";\r\n this.generalservice.PostData(url, UploadFile).then(data => {\r\n this.districtdata = data;\r\n }, err => {\r\n this.generalservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for District //\r\n searchCont1(event) {\r\n\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList1 = [];\r\n for (var i = 0; i < this.districtdata.length; i++) {\r\n let country = this.districtdata[i];\r\n if (country.DistrictName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList1 = filtered;\r\n }\r\n }\r\n\r\n getCity() {\r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n DistrictId: this.selectedState2.DistrictID,\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '5');\r\n var url = \"api/BG/CitiesMaster_Crudcustomer\";\r\n this.generalservice.PostData(url, UploadFile).then(data => {\r\n this.Citydata = data;\r\n }, err => {\r\n this.generalservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n\r\n\r\n // drop down for cities //\r\n searchCont2(event) {\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList2 = [];\r\n for (var i = 0; i < this.Citydata.length; i++) {\r\n let country = this.Citydata[i];\r\n if (country.CityName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList2 = filtered;\r\n }\r\n }\r\n\r\n onStateSelect1(event) {\r\n console.log('Selected State:', this.selectedState1);\r\n // You can perform additional actions with the selected state here\r\n }\r\n onStateSelect2(event) {\r\n console.log('Selected Distict:', this.selectedState2);\r\n // You can perform additional actions with the selected state here\r\n }\r\n onStateSelect3(event) {\r\n console.log('Selected City:', this.selectedState3);\r\n // You can perform additional actions with the selected state here\r\n }\r\n\r\n reg() {\r\n debugger\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // Route to login page\r\n this.router.navigate(['/Login']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n this.router.navigate(['/Profile']).then(() => { window.location.reload(); });\r\n }\r\n }\r\n downloadlogo() {\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 \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
\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 Place Name is required \r\n\r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n
\r\n
\r\n Pincode \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 Download \r\n
\r\n
\r\n Submit \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\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 } from '@angular/core';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { FormBuilder, FormControl, Validators, FormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { GeneralService } from '../../general.service';\r\ndeclare var $: any\r\n\r\n@Component({\r\n selector: 'app-terms-and-conditions',\r\n templateUrl: './terms-and-conditions.component.html',\r\n styleUrls: ['./terms-and-conditions.component.scss']\r\n})\r\nexport class TermsAndConditionsComponent {\r\n LoginDetails1: any; LoginDetails: any;\r\n public form: FormGroup;\r\n arr: any = [];\r\n selectedaudi: string;\r\n selectedGender: string | null = null;\r\n flag: any;\r\n Statedata: any = [];\r\n Citydata: any = [];\r\n deptList: any;\r\n districtdata: any = [];\r\n deptList1: any;\r\n deptList2: any;\r\n observ: any = [];\r\n deptList9: any;\r\n selectedVenue: string; pincodedata: any;\r\n Pincode: any; requestdata: any;\r\n presentaiondet: any = []; emailDataToAdmin: any;\r\n\r\n constructor(public router: Router, public fb: FormBuilder,\r\n public genralservice: GeneralService) {\r\n\r\n this.LoginDetails1 = localStorage.getItem(\"LoginDetails\");\r\n this.LoginDetails = JSON.parse(this.LoginDetails1);\r\n\r\n this.form = this.fb.group({\r\n // Define your form controls here\r\n Mode: ['', Validators.required],\r\n Audiance: ['', Validators.required],\r\n WorkPlace: ['', Validators.required],\r\n Venue_name: ['',],\r\n statename: [''],\r\n districtname: [''],\r\n cityname: [''],\r\n Address: [''],\r\n Area: [''],\r\n\r\n Pincode: [''],\r\n Message: [''],\r\n Contact_name: [''],\r\n Contact_number: [''],\r\n\r\n });\r\n\r\n\r\n }\r\n\r\n\r\n ngOnInit(): void {\r\n\r\n this.getstate();\r\n this.getvenue();\r\n }\r\n\r\n\r\n reg() {\r\n debugger\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // Route to login page\r\n this.router.navigate(['/Login']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n this.router.navigate(['/Profile']).then(() => { window.location.reload(); });\r\n }\r\n\r\n }\r\n\r\n vol() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // If LoginDetails is empty or not set, route to the login page\r\n this.router.navigate(['/Volunteerlogin']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n // Assuming roleid is a property of LoginDetails\r\n if ((this.LoginDetails[0].RoleId === 4 && (this.LoginDetails[0].Rolestatus === false || this.LoginDetails[0].Rolestatus === null)) || (this.LoginDetails[0].RoleId === 4 && this.LoginDetails[0].Rolestatus === true) || (this.LoginDetails[0].RoleId === 2 && this.LoginDetails[0].Rolestatus === true)) {\r\n // If roleid is 4, navigate to the '/Volunters' page\r\n this.router.navigate(['/Volunters']);\r\n }\r\n\r\n else if (this.LoginDetails[0].RoleId === 0 && (this.LoginDetails[0].Rolestatus === false)) {\r\n // If roleid is not 4, display an alert message\r\n this.router.navigate(['/Volunteerprofile']);\r\n // alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n else {\r\n this.router.navigate(['/Profile']);\r\n alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n\r\n }\r\n }\r\n\r\n Donersform() {\r\n debugger\r\n if (!this.form.value.Contact_number || !this.form.value.Contact_name ||\r\n !this.form.value.Venue_name || !this.form.value.Pincode || this.selectedGender === \"\" ||\r\n this.selectedaudi === \"\" || !this.form.value.WorkPlace.WorkPlace) {\r\n // Display an error alert\r\n window.alert('ERROR: Please fill all required fields');\r\n\r\n return; // Stop further execution of the method\r\n }\r\n const stateId = this.form.value.statename && this.form.value.statename.StateId !== undefined\r\n ? this.form.value.statename.StateId\r\n : this.LoginDetails.StateId !== undefined\r\n ? this.LoginDetails.StateId\r\n : this.LoginDetails.StateID;\r\n\r\n const districtId = this.form.value.districtname && this.form.value.districtname.DistrictID !== undefined\r\n ? this.form.value.districtname.DistrictID\r\n : this.LoginDetails.DistrictId !== undefined\r\n ? this.LoginDetails.DistrictId\r\n : this.LoginDetails.DistrictID;\r\n\r\n const cityId = this.form.value.cityname && this.form.value.cityname.CityId !== undefined\r\n ? this.form.value.cityname.CityId\r\n : this.LoginDetails.CityId !== undefined\r\n ? this.LoginDetails.CityId\r\n : this.LoginDetails.CityID;\r\n ;\r\n this.arr = [];\r\n\r\n this.arr.push({\r\n\r\n\r\n Contact_number: this.form.value.Contact_number,\r\n Contact_name: this.form.value.Contact_name,\r\n Address: this.form.value.Address,\r\n Venue_name: this.form.value.Venue_name,\r\n\r\n Mode: this.selectedGender,\r\n Pincode: this.form.value.Pincode || this.LoginDetails.Pincode,\r\n Audiance: this.selectedaudi,\r\n // Venue: this.selectedVenue,\r\n Venue: this.form.value.WorkPlace.WorkPlace,\r\n StateId: stateId,\r\n DistrictId: districtId,\r\n CityId: cityId,\r\n Area: this.form.value.Area,\r\n Message: this.form.value.Message,\r\n CreatedBy: this.LoginDetails ? (this.LoginDetails[0] ? this.LoginDetails[0].RegId : this.LoginDetails.RegId) : '',\r\n });\r\n\r\n var uploadfile = new FormData();\r\n uploadfile.append(\"Param\", JSON.stringify(this.arr));\r\n uploadfile.append(\"Flag\", '1');\r\n var url = \"api/BG/Insert_Update_Requestpresent\";\r\n this.genralservice.PostData(url, uploadfile).then(data => {\r\n if (data == \"SUCCESS\") {\r\n debugger\r\n this.Pincode = this.form.value.Pincode\r\n //this.Getpincode();\r\n var uploadfile = new FormData();\r\n uploadfile.append(\"Param\", this.Pincode);\r\n var url = \"api/BG/Get_Users_basedOn_Pincode\";\r\n this.genralservice.PostData(url, uploadfile).then(data1 => {\r\n debugger\r\n this.pincodedata = data1;\r\n debugger\r\n for (let i = 0; i < this.pincodedata.length; i++) {\r\n const customer = this.pincodedata[i];\r\n const staticinfo = \"Do you want to become a donor? Click here to proceed.https://letshelp.breakingindiaapp.com/webservice/api/BG/replying_mail_admin\";\r\n this.presentaiondet = [];\r\n this.presentaiondet.push({\r\n Email: customer.Email,\r\n Contact_number: this.form.value.Contact_number,\r\n Contact_name: this.form.value.Contact_name,\r\n Address: this.form.value.Address,\r\n Venue_name: this.form.value.Venue_name,\r\n Venue: this.form.value.WorkPlace.WorkPlace,\r\n Mode: this.selectedGender,\r\n Audiance: this.selectedaudi,\r\n Message: staticinfo\r\n })\r\n\r\n debugger\r\n var uploadfile = new FormData();\r\n uploadfile.append(\"EMaildetails\", JSON.stringify(this.presentaiondet));\r\n var url = \"api/BG/RequestPresentationDetails\";\r\n \r\n this.genralservice.PostData(url, uploadfile).then(data2 => { \r\n if (data2 == \"SUCCESS\") {\r\n this.genralservice.ShowAlert(\"SUCCESS\", 'Presentation Mail Sent Successfully', 'Success')\r\n //localStorage.removeItem(\"RequestDetails\");\r\n \r\n if (this.flag == 1) {\r\n this.genralservice.ShowAlert(\"ERROR\", 'The request has been successfully added, and an email request has been sent to leaders within the same pincode area.', 'error');\r\n } else {\r\n // localStorage.setItem('LoginDetails', JSON.stringify(this.arr));\r\n this.genralservice.ShowAlert(\"SUCCESS\", 'The request has been successfully added, and an email request has been sent to leaders within the same pincode area.', 'success');\r\n //this.router.navigate(['/Volunters']).then(() => {\r\n // window.location.reload();\r\n //});\r\n this.form.reset();\r\n }\r\n } \r\n \r\n })\r\n }\r\n \r\n });\r\n \r\n \r\n } else {\r\n this.genralservice.ShowAlert(\"ERROR\", 'Something went wrong. Please check validation fields', 'error');\r\n }\r\n });\r\n }\r\n\r\n getstate() {\r\n\r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '4');\r\n var url = \"api/BG/StatesMaster_crudCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n\r\n this.Statedata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for states //\r\n searchCont(event) {\r\n\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList = [];\r\n for (var i = 0; i < this.Statedata.length; i++) {\r\n let country = this.Statedata[i];\r\n if (country.StateName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList = filtered;\r\n }\r\n }\r\n\r\n\r\n getDistrict() {\r\n\r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n StateId: this.form.value.statename.StateId\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '5');\r\n var url = \"api/BG/DistrictMaster_crudCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n\r\n this.districtdata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for District //\r\n searchCont1(event) {\r\n\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList1 = [];\r\n for (var i = 0; i < this.districtdata.length; i++) {\r\n let country = this.districtdata[i];\r\n if (country.DistrictName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList1 = filtered;\r\n }\r\n }\r\n\r\n getCity() {\r\n\r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n DistrictId: this.form.value.districtname.DistrictID,\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '5');\r\n var url = \"api/BG/CitiesMaster_Crudcustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n\r\n this.Citydata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for cities //\r\n searchCont2(event) {\r\n\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList2 = [];\r\n for (var i = 0; i < this.Citydata.length; i++) {\r\n let country = this.Citydata[i];\r\n if (country.CityName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList2 = filtered;\r\n }\r\n }\r\n\r\n getvenue() {\r\n\r\n this.arr = []\r\n this.arr.push({\r\n\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '4');\r\n var url = \"api/BG/BG_Work_Place_Crud\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n debugger\r\n this.observ = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for venue //\r\n searchCont9(event) {\r\n debugger\r\n let filtered: any = [];\r\n let query = event.query;\r\n if (query != \"\") {\r\n this.deptList = [];\r\n for (var i = 0; i < this.observ.length; i++) {\r\n let country = this.observ[i];\r\n if (country.WorkPlace && country.WorkPlace.toLowerCase().indexOf(query.toLowerCase()) === 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList9 = filtered;\r\n } else {\r\n this.deptList9 = this.observ;\r\n }\r\n }\r\n\r\n selectGender(gender: string) {\r\n\r\n this.selectedGender = gender;\r\n // Optionally call your Interior function with the `id`\r\n // this.Interior(id);\r\n } selectaudi(Audiance: string) {\r\n\r\n this.selectedaudi = Audiance;\r\n // Optionally call your Interior function with the `id`\r\n // this.Interior(id);\r\n } selectVenue(venue: string) {\r\n\r\n this.selectedVenue = venue;\r\n // Optionally call your Interior function with the `id`\r\n // this.Interior(id);\r\n }\r\n\r\n Getpincode() {\r\n debugger\r\n var uploadfile = new FormData();\r\n uploadfile.append(\"Param\", this.Pincode);\r\n var url = \"api/BG/Get_Users_basedOn_Pincode\";\r\n this.genralservice.PostData(url, uploadfile).then(data => {\r\n debugger\r\n this.pincodedata = data;\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 \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
\r\n
\r\n Request for a presentation from Let's help team \r\n \r\n
\r\n
\r\n\r\n\r\n \r\n
\r\n Request for a presentation from Let's help team \r\n\r\n
\r\n
\r\n Mode* \r\n
\r\n
\r\n \r\n \r\n Search Mode \r\n In-Person \r\n Virtual \r\n \r\n
\r\n\r\n
\r\n Audience* \r\n
\r\n
\r\n \r\n Search Audience number \r\n 100+ \r\n 50-100 \r\n Less than 50 \r\n\r\n \r\n \r\n
\r\n\r\n\r\n
\r\n Venue* \r\n
\r\n
\r\n\r\n
\r\n Venue Name* \r\n
\r\n
\r\n \r\n Venue Name is required \r\n\r\n
\r\n\r\n
\r\n Contact Person* \r\n
\r\n
\r\n
\r\n \r\n Contact Name is required \r\n
\r\n\r\n
\r\n Contact Number* \r\n
\r\n\r\n
\r\n \r\n Contact Number is required \r\n
\r\n
\r\n \r\n\r\n
\r\n \r\n
\r\n State Name \r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n \r\n\r\n
State Name is required. \r\n
\r\n\r\n
\r\n\r\n
\r\n District Name \r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n \r\n\r\n
District Name is required. \r\n
\r\n
\r\n\r\n\r\n
\r\n City Name \r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n\r\n\r\n
City Name is required. \r\n
\r\n\r\n
\r\n\r\n\r\n
\r\n Address \r\n
\r\n
\r\n \r\n\r\n \r\n
\r\n\r\n
\r\n Area \r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n Pincode* \r\n
\r\n
\r\n
\r\n \r\n Pincode is required \r\n\r\n
\r\n\r\n
\r\n Message \r\n
\r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n \r\n Submit \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
Newsletter Signup \r\n\r\n
\r\n
\r\n \r\n Email \r\n \r\n
\r\n \r\n please leave this blank\r\n \r\n
\r\n \r\n Submit \r\n Thanks! \r\n \r\n \r\n
\r\n \r\n Got It \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\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { FormGroup, FormControl, AbstractControl, FormBuilder, Validators } from '@angular/forms';\r\n//import { EmailValidators } from 'ngx-validators'\r\n\r\n//import { CookieService } from 'ngx-cookie-service';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { ViewportScroller } from '@angular/common';\r\nimport { GeneralService } from '../../general.service';\r\nimport Swal from 'sweetalert2';\r\nimport { HttpClient, HttpHandler, HttpResponse, HttpRequest } from '@angular/common/http';\r\ndeclare var $;\r\n\r\n@Component({\r\n selector: 'app-volunteerlogin',\r\n templateUrl: './volunteerlogin.component.html',\r\n styleUrls: ['./volunteerlogin.component.scss']\r\n})\r\nexport class VolunteerloginComponent {\r\n HomeUrl: any; arr: any = [];\r\n pwd1: any;\r\n userid: any;\r\n Mobile: any;\r\n OTP: any;\r\n flag: any;\r\n OTPtoMobile: any;\r\n logindata: any;\r\n otpSent: boolean = false;\r\n showLogin: boolean = false;\r\n showLogin1: boolean = true; loginDet: any;\r\n registerAsDonor: boolean = false; RegId: any;\r\n LoginDetails: any;\r\n EmailID: any;\r\n EditFlag: any;\r\n isMobileDisabled: boolean = false;\r\n constructor(public router: Router, public generalService: GeneralService, public http: HttpClient, public activeroute: ActivatedRoute) { //\r\n this.loginDet = JSON.parse(localStorage.getItem(\"LoginDetails\"));\r\n\r\n debugger\r\n this.http.get('../assets/WebService.json').subscribe((data: any) => {\r\n this.HomeUrl = data.Webservice;\r\n });\r\n }\r\n ngOnInit() {\r\n // this.Getsurname();\r\n }\r\n\r\n EditMobileNumber() {\r\n debugger\r\n this.EditFlag = 1;\r\n this.Mobile = '';\r\n this.OTPtoMobile = null;\r\n this.showLogin1 = true;\r\n this.showLogin = false;\r\n this.otpSent = false;\r\n this.isMobileDisabled = false;\r\n\r\n }\r\n checkMobileLength(event: any) {\r\n if (event.target.value.length === 10) {\r\n this.isMobileDisabled = true;\r\n } else {\r\n this.isMobileDisabled = false;\r\n }\r\n }\r\n reg() {\r\n debugger\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // Route to login page\r\n this.router.navigate(['/Login']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n this.router.navigate(['/Profile']).then(() => { window.location.reload(); });\r\n }\r\n }\r\n vol() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // If LoginDetails is empty or not set, route to the login page\r\n this.router.navigate(['/Volunteerlogin']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n // Assuming roleid is a property of LoginDetails\r\n if ((this.LoginDetails[0].RoleId === 4 && (this.LoginDetails[0].Rolestatus === false || this.LoginDetails[0].Rolestatus === null)) || (this.LoginDetails[0].RoleId === 4 && this.LoginDetails[0].Rolestatus === true) || (this.LoginDetails[0].RoleId === 2 && this.LoginDetails[0].Rolestatus === true)) {\r\n // If roleid is 4, navigate to the '/Volunters' page\r\n this.router.navigate(['/Volunters']);\r\n }\r\n\r\n else if (this.LoginDetails[0].RoleId === 0 && (this.LoginDetails[0].Rolestatus === false)) {\r\n // If roleid is not 4, display an alert message\r\n this.router.navigate(['/Volunteerprofile']);\r\n // alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n else {\r\n this.router.navigate(['/Profile']);\r\n alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n\r\n }\r\n }\r\n\r\n SendOTPtoMobile() {\r\n debugger\r\n this.CheckMobileNumber();\r\n if (!this.otpSent && this.Mobile && this.Mobile.length === 10) {\r\n this.OTPtoMobile = Math.floor(1000 + Math.random() * 9000);\r\n var Uploadfile = new FormData();\r\n Uploadfile.append(\"MobileNo\", this.Mobile)\r\n Uploadfile.append(\"OTP\", this.OTPtoMobile)\r\n var url = \"api/BG/SendOtpToMobile\";\r\n this.generalService.PostData(url, Uploadfile).then((data: any) => {\r\n // Set otpSent to true once OTP is sent\r\n this.otpSent = true;\r\n this.showLogin1 = false;\r\n this.showLogin = true;\r\n if (this.EmailID != null) {\r\n this.SendOTPtoMail();\r\n }\r\n })\r\n }\r\n }\r\n\r\n CheckMobileNumber() {\r\n debugger\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Mobile\", this.Mobile);\r\n var url = 'api/BG/checking_Mobile';\r\n this.generalService.PostData(url, UploadFile).then((data: any) => {\r\n debugger\r\n if (data != 'NOTEXIST') {\r\n this.EmailID = data[0].Email;\r\n }\r\n })\r\n }\r\n\r\n SendOTPtoMail() {\r\n debugger\r\n var Content = \"Your Login OTP is: \" + this.OTPtoMobile;\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"EMailID\", this.EmailID);\r\n UploadFile.append(\"Content\", Content);\r\n var url = \"api/BG/SendOTPtoMail\";\r\n this.generalService.PostData(url, UploadFile).then((data: any) => {\r\n\r\n })\r\n }\r\n\r\n //checkmobile(Mobile) {\r\n // debugger\r\n // if (!this.registerAsDonor) {\r\n // alert('Please click on the checkbox to register as a blood donor.');\r\n\r\n // return;\r\n //}\r\n // if (Mobile.length == 10) {\r\n // if (this.OTPtoMobile == this.OTP) {\r\n // var UploadFile = new FormData();\r\n // UploadFile.append(\"Mobile\", Mobile);\r\n\r\n\r\n // var url = 'api/BG/checking_Mobile'\r\n\r\n // this.generalService.PostData(url, UploadFile).then(data => {\r\n // //this.logindata = JSON.stringify(data[0]);\r\n // //localStorage.setItem(\"LoginDetails\", this.logindata);\r\n // debugger\r\n // if (data != 'NOTEXIST') {\r\n // debugger\r\n // this.pwd1 = data[0].Password;\r\n // this.userid = data[0].ID;\r\n // this.router.navigate(['/blooddonation']).then(() => { window.location.reload(); });\r\n // this.logindata = JSON.stringify(data[0]);\r\n // localStorage.setItem(\"LoginDetails\", this.logindata);\r\n\r\n // }\r\n // else {\r\n\r\n // this.router.navigate(['/Donersform']);\r\n // this.logindata = JSON.stringify(data[0]);\r\n // localStorage.setItem(\"LoginDetails\", this.logindata);\r\n // }\r\n // })\r\n // }\r\n // }\r\n //}\r\n checkmobile(Mobile) {\r\n // if (!this.registerAsDonor) {\r\n // alert('Please click on the checkbox to register as a blood donor.');\r\n\r\n // return;\r\n //}\r\n debugger;\r\n if (Mobile.length == 10) {\r\n if (this.OTPtoMobile == this.OTP) {\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Mobile\", Mobile);\r\n\r\n var url = 'api/BG/checking_Mobile'\r\n\r\n this.generalService.PostData(url, UploadFile).then(data => {\r\n debugger;\r\n if (data != 'NOTEXIST') {\r\n debugger;\r\n this.pwd1 = data[0].Password;\r\n this.userid = data[0].ID;\r\n this.router.navigate(['/Volunters'])\r\n this.logindata = JSON.stringify(data[0]);\r\n localStorage.setItem(\"LoginDetails\", this.logindata);\r\n this.RegId = data;\r\n localStorage.setItem(\"RegID\", this.RegId);\r\n\r\n } else {\r\n // If the phone number doesn't exist, insert it into the table\r\n this.insertPhoneNumber(Mobile);\r\n // Navigate to the registration page\r\n this.router.navigate(['/Volunteerprofile'], { queryParams: { mobile: Mobile } });\r\n }\r\n })\r\n }\r\n }\r\n }\r\n\r\n insertPhoneNumber(Mobile) {\r\n this.arr = [{\r\n Phonenumber: Mobile,\r\n BloodGroupId: 0,\r\n Lastdonatedate: null,\r\n Status: true,\r\n Statusphn: true,\r\n Rolestatus: false,\r\n }];\r\n\r\n var uploadfile = new FormData();\r\n uploadfile.append(\"Param\", JSON.stringify(this.arr));\r\n uploadfile.append(\"Flag\", '1');\r\n\r\n var url = 'api/BG/Insert_Update_DonersForm';\r\n\r\n this.generalService.PostData(url, uploadfile).then(data => {\r\n if (data == \"SUCCESS\") {\r\n debugger;\r\n if (this.flag == 1) {\r\n this.generalService.ShowAlert(\"ERROR\", 'You have successfully signed in to the application', 'error');\r\n } else {\r\n this.generalService.ShowAlert(\"SUCCESS\", 'You have successfully signed in to the application', 'success');\r\n //this.router.navigate(['/Donersform']).then(() => { window.location.reload(); });\r\n this.router.navigate(['/Volunteerprofile'], { queryParams: { mobile: Mobile } });\r\n this.logindata = JSON.stringify(data[0]);\r\n localStorage.setItem(\"LoginDetails\", this.logindata);\r\n localStorage.setItem(\"LoginDetails\", JSON.stringify(this.arr));\r\n window.location.reload()\r\n\r\n this.RegId = data[0].RegId;\r\n localStorage.setItem(\"RegID\", this.RegId);\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 \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
Mobile
\r\n
\r\n
\r\n
\r\n
\r\n \r\n\r\n OTP \r\n \r\n\r\n Send OTP \r\n \r\n \r\n \r\n \r\n\r\n
\r\n Sign in \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 } from '@angular/core';\r\nimport { GeneralService } from '../../general.service';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { FormBuilder, FormControl, Validators, FormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { DatePipe } from '@angular/common';\r\n@Component({\r\n selector: 'app-volunteerprofile',\r\n templateUrl: './volunteerprofile.component.html',\r\n styleUrls: ['./volunteerprofile.component.scss']\r\n})\r\nexport class VolunteerprofileComponent {\r\n public form: FormGroup;\r\n arr: any = [];\r\n districtdata: any = [];\r\n deptList: any;\r\n flag: any;\r\n Statedata: any = [];\r\n profiledata: any;\r\n Citydata: any = [];\r\n deptList1: any;\r\n deptList2: any; bloodgroupdata: any = [];\r\n deptList3: any;\r\n subDropdownStyle: { [key: string]: string } = {};\r\n isMouseOverSubDropdown: boolean = false;\r\n showDropdownContent = false;\r\n selectedBloodgroup: string = '';\r\n selectedGender: string | null = null;\r\n LoginDetails1: any; LoginDetails: any;\r\n selectedpast: string;\r\n Lastdonatedate: any;\r\n Status: boolean = true;\r\n constructor(public genralservice: GeneralService, private datePipe: DatePipe, public http: HttpClient, public fb: FormBuilder, public router: Router,) {\r\n debugger\r\n this.LoginDetails1 = localStorage.getItem(\"LoginDetails\");\r\n this.LoginDetails = JSON.parse(this.LoginDetails1);\r\n\r\n this.form = this.fb.group({\r\n username: ['', Validators.required],\r\n mobile: ['', Validators.required],\r\n email: ['',],\r\n Gender: ['',],\r\n age: ['', Validators.required],\r\n //unitsofblood: [''],\r\n bloodgroup: ['', Validators.required],\r\n statename: [''],\r\n districtname: [''],\r\n cityname: [''],\r\n useraddress: [''],\r\n area: [''],\r\n Status: [''],\r\n Messagetorequester: [''],\r\n Weight: [''],\r\n PastDonation: ['', Validators.required],\r\n Lastdonatedate: [''],\r\n Pincode: ['', Validators.required],\r\n\r\n Statusphn: [''],\r\n Rolestatus: [''],\r\n \r\n });\r\n\r\n\r\n }\r\n\r\n\r\n ngOnInit(): void {\r\n this.getprofile();\r\n this.getBloodgroup();\r\n this.getstate();\r\n // this.getDistrict();\r\n //this.getCity();\r\n // this.bindFormData();\r\n\r\n\r\n }\r\n\r\n\r\n getprofile() {\r\n debugger;\r\n this.arr = [];\r\n this.arr.push({});\r\n var UploadFile = new FormData();\r\n UploadFile.append(\"Mobile\", this.LoginDetails ? (this.LoginDetails.Phonenumber || (this.LoginDetails[0] && this.LoginDetails[0].Phonenumber)) : '');\r\n\r\n var url = \"api/BG/checking_Mobile\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n this.profiledata = data;\r\n this.bindFormData(this.profiledata);\r\n\r\n this.LoginDetails = this.profiledata;\r\n // Call bindFormData with the received data\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error');\r\n });\r\n }\r\n\r\n reg() {\r\n debugger;\r\n if (!this.LoginDetails || this.LoginDetails.length === 0) {\r\n // If no login details available, navigate to Login\r\n this.router.navigate(['/Login']);\r\n } else {\r\n // Check the role id\r\n const roleId = this.LoginDetails[0].RoleId || this.LoginDetails.RoleId;\r\n if (roleId === 4) {\r\n // Navigate to volunteer if role id is 4\r\n this.router.navigate(['/Volunteerprofile']);\r\n } else {\r\n // Otherwise, navigate to Profile\r\n this.router.navigate(['/Profile']).then(() => { window.location.reload(); });\r\n }\r\n }\r\n }\r\n\r\n bindFormData(data) {\r\n debugger\r\n if (data) {\r\n debugger\r\n this.selectedGender = data[0].Gender;\r\n this.selectedpast = data[0].PastDonation;\r\n const lastDonateDate = data[0].Lastdonatedate && !isNaN(Date.parse(data[0].Lastdonatedate)) ?\r\n this.datePipe.transform(new Date(data[0].Lastdonatedate), 'yyyy-MM-dd') : null;\r\n\r\n const dob = data[0].DOB && !isNaN(Date.parse(data[0].DOB)) ?\r\n this.datePipe.transform(new Date(data[0].DOB), 'yyyy-MM-dd') : null;\r\n\r\n debugger\r\n this.form.patchValue({\r\n\r\n username: data[0].FullName,\r\n mobile: data[0].Phonenumber,\r\n email: data[0].Email,\r\n age: data[0].Age,\r\n bloodgroup: data[0].BLGName,\r\n BloodGroupId: data[0].BLGId,\r\n statename: data[0].StateName,\r\n StateId: data[0].StateId,\r\n districtname: data[0].DistrictName,\r\n DistrictId: data[0].DistrictId,\r\n cityname: data[0].CityName,\r\n CityId: data[0].CityId,\r\n useraddress: data[0].UserAddress,\r\n area: data[0].Area,\r\n Status: data[0].Status || data.Status,\r\n Weight: data[0].Weight,\r\n Pincode: data[0].Pincode,\r\n\r\n\r\n Statusphn: data[0].Statusphn || data.Statusphn,\r\n Rolestatus: data[0].Rolestatus || data.Rolestatus,\r\n Lastdonatedate: lastDonateDate,\r\n Messagetorequester: data[0].Messagetorequester\r\n });\r\n }\r\n }\r\n\r\n\r\n Donersform() {\r\n debugger\r\n if (!this.form.value.username || !this.form.value.mobile || !this.form.value.Pincode || this.selectedGender === \"\" ||\r\n (this.form.controls['Rolestatus'].value && !this.selectedpast) ||\r\n (!this.form.value.bloodgroup && this.form.controls['Rolestatus'].value) ||\r\n (!this.form.value.Weight && this.form.controls['Rolestatus'].value) ||\r\n (!this.form.value.age && this.form.controls['Rolestatus'].value) ||\r\n (!this.form.value.age && this.form.controls['Rolestatus'].value)) {\r\n alert(\" Please fill all required fields\");\r\n \r\n return; // Stop further execution of the method\r\n }\r\n\r\n debugger;\r\n this.arr = [];\r\n const bloodgroup = this.form.value.bloodgroup && this.form.value.bloodgroup.BLGId !== undefined\r\n ? this.form.value.bloodgroup.BLGId\r\n : this.LoginDetails[0] && this.LoginDetails[0].BLGId !== undefined\r\n ? this.LoginDetails[0].BLGId\r\n : this.LoginDetails.BLGId !== undefined\r\n ? this.LoginDetails.BLGId\r\n : this.LoginDetails.BloodGroupId;\r\n\r\n const stateId = this.form.value.statename && this.form.value.statename.StateId !== undefined\r\n ? this.form.value.statename.StateId\r\n : this.LoginDetails[0] && this.LoginDetails[0].StateId !== undefined\r\n ? this.LoginDetails[0].StateId\r\n : this.LoginDetails.StateId !== undefined\r\n ? this.LoginDetails.StateId\r\n : this.LoginDetails.StateID;\r\n\r\n const districtId = this.form.value.districtname && this.form.value.districtname.DistrictID !== undefined\r\n ? this.form.value.districtname.DistrictID\r\n : this.LoginDetails[0] && this.LoginDetails[0].DistrictID !== undefined\r\n ? this.LoginDetails[0].DistrictID\r\n : this.LoginDetails.DistrictID !== undefined\r\n ? this.LoginDetails.DistrictID\r\n : this.LoginDetails.DistrictID;\r\n\r\n const cityId = this.form.value.cityname && this.form.value.cityname.CityId !== undefined\r\n ? this.form.value.cityname.CityId\r\n : this.LoginDetails[0] && this.LoginDetails[0].CityId !== undefined\r\n ? this.LoginDetails[0].CityId\r\n : this.LoginDetails.CityId !== undefined\r\n ? this.LoginDetails.CityId\r\n : this.LoginDetails.CityID;\r\n const lastDonateDate = this.selectedpast === 'No' ? null : this.form.value.Lastdonatedate || this.LoginDetails.Lastdonatedate;\r\n\r\n this.arr.push({\r\n RegId: this.LoginDetails ? (this.LoginDetails[0] ? this.LoginDetails[0].RegId : this.LoginDetails.RegId) : '',\r\n TokenId: this.LoginDetails ? (this.LoginDetails[0] ? this.LoginDetails[0].TokenId : this.LoginDetails.TokenId) : '',\r\n FullName: this.form.value.username,\r\n Phonenumber: this.form.value.mobile,\r\n Weight: this.form.value.Weight,\r\n Email: this.form.value.email || this.LoginDetails.Email,\r\n Gender: this.selectedGender || this.LoginDetails.Gender,\r\n Lastdonatedate: lastDonateDate,\r\n \r\n Pincode: this.form.value.Pincode || this.LoginDetails.Pincode,\r\n PastDonation: this.selectedpast,\r\n age: this.form.value.age || this.LoginDetails.Age,\r\n BloodGroupId: bloodgroup,\r\n StateId: stateId,\r\n DistrictId: districtId,\r\n CityId: cityId,\r\n UserAddress: this.form.value.useraddress || this.LoginDetails.UserAddress,\r\n Area: this.form.value.area || this.LoginDetails.Area,\r\n Messagetorequester: this.form.value.Messagetorequester || this.LoginDetails.Messagetorequester,\r\n RoleId: '4',\r\n Status: this.form.value.Status || this.LoginDetails.Status,\r\n Statusphn: this.form.value.Statusphn || this.LoginDetails.Statusphn,\r\n Rolestatus: this.form.value.Rolestatus || this.LoginDetails.Rolestatus,\r\n });\r\n\r\n var uploadfile = new FormData();\r\n uploadfile.append(\"Param\", JSON.stringify(this.arr));\r\n uploadfile.append(\"Flag\", '2');\r\n var url = \"api/BG/Insert_Update_DonersForm\";\r\n this.genralservice.PostData(url, uploadfile).then(data => {\r\n debugger\r\n if (data == \"SUCCESS\") {\r\n if (this.flag == 2) {\r\n this.genralservice.ShowAlert(\"ERROR\", 'Profile Updated Succesfully', 'error');\r\n } else {\r\n\r\n localStorage.setItem('LoginDetails', JSON.stringify(this.arr));\r\n this.genralservice.ShowAlert(\"SUCCESS\", 'Profile Updated Succesfully', 'success');\r\n this.router.navigate(['/blooddonation']).then(() => {\r\n window.location.reload();\r\n\r\n });\r\n\r\n }\r\n this.form.reset();\r\n } else {\r\n this.genralservice.ShowAlert(\"ERROR\", 'Something went wrong. Please check validation fields', 'error');\r\n }\r\n });\r\n }\r\n\r\n toggleStatuss(checked: boolean) {\r\n this.form.controls['Status'].setValue(checked);\r\n }\r\n\r\n\r\n toggleStatuss1(checked: boolean) {\r\n this.form.controls['Statusphn'].setValue(checked);\r\n }\r\n\r\n\r\n toggleStatuss2(checked: boolean) {\r\n this.form.controls['Rolestatus'].setValue(checked);\r\n }\r\n \r\n toggleStatus(checked: boolean) {\r\n this.form.controls['Status'].setValue(checked);\r\n }\r\n\r\n getstate() {\r\n debugger\r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '4');\r\n var url = \"api/BG/StatesMaster_crudCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n\r\n this.Statedata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for states //\r\n searchCont(event) {\r\n debugger\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList = [];\r\n for (var i = 0; i < this.Statedata.length; i++) {\r\n let country = this.Statedata[i];\r\n if (country.StateName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList = filtered;\r\n }\r\n }\r\n\r\n\r\n getDistrict() {\r\n debugger\r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n StateId: this.form.value.statename.StateId\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '5');\r\n var url = \"api/BG/DistrictMaster_crudCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n debugger\r\n this.districtdata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for District //\r\n searchCont1(event) {\r\n\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList1 = [];\r\n for (var i = 0; i < this.districtdata.length; i++) {\r\n let country = this.districtdata[i];\r\n if (country.DistrictName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList1 = filtered;\r\n }\r\n }\r\n\r\n getCity() {\r\n debugger\r\n this.arr = []\r\n this.arr.push({\r\n RegId: '1',\r\n TokenId: '4A9493F9-8CD2-42F8-90ED-49C6B28DC544',\r\n DistrictId: this.form.value.districtname.DistrictID,\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '5');\r\n var url = \"api/BG/CitiesMaster_Crudcustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n debugger\r\n this.Citydata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for cities //\r\n searchCont2(event) {\r\n\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList2 = [];\r\n for (var i = 0; i < this.Citydata.length; i++) {\r\n let country = this.Citydata[i];\r\n if (country.CityName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList2 = filtered;\r\n }\r\n }\r\n\r\n\r\n getBloodgroup() {\r\n debugger\r\n this.arr = []\r\n this.arr.push({\r\n RegId: this.LoginDetails.RegId,\r\n TokenId: this.LoginDetails.TokenId,\r\n })\r\n var UploadFile = new FormData()\r\n UploadFile.append(\"Param\", JSON.stringify(this.arr));\r\n UploadFile.append(\"Flag\", '4');\r\n var url = \"api/BG/BloodGroupMaster_CRUDCustomer\";\r\n this.genralservice.PostData(url, UploadFile).then(data => {\r\n debugger\r\n this.bloodgroupdata = data;\r\n }, err => {\r\n this.genralservice.ShowAlert('ERROR', 'Some thing went Wrong', 'error')\r\n\r\n })\r\n }\r\n\r\n // drop down for bloodgroup //\r\n searchCont3(event) {\r\n debugger\r\n let filtered: any = [];\r\n let query = event.query;\r\n {\r\n this.deptList3 = [];\r\n for (var i = 0; i < this.bloodgroupdata.length; i++) {\r\n let country = this.bloodgroupdata[i];\r\n if (country.BLGName.toLowerCase().indexOf(query.toLowerCase()) == 0) {\r\n filtered.push(country);\r\n }\r\n }\r\n\r\n this.deptList3 = filtered;\r\n }\r\n }\r\n\r\n updateSubDropdownPosition(event: MouseEvent) {\r\n // Adjust the sub-dropdown position based on mouse movement\r\n this.subDropdownStyle = {\r\n top: event.clientY + 'px',\r\n left: event.clientX + 'px',\r\n display: 'block',\r\n };\r\n }\r\n\r\n hideSubDropdown() {\r\n if (!this.isMouseOverSubDropdown) {\r\n this.subDropdownStyle = {\r\n display: 'none',\r\n };\r\n }\r\n }\r\n\r\n toggleDropdown() {\r\n this.showDropdownContent = !this.showDropdownContent;\r\n }\r\n\r\n\r\n // Function to select a blood group\r\n selectBloodgroup(bloodgroup: string) {\r\n this.selectedBloodgroup = bloodgroup;\r\n this.showDropdownContent = false; // Hide the dropdown after selection if needed\r\n }\r\n\r\n selectGender(gender: string) {\r\n debugger\r\n this.selectedGender = gender;\r\n // Optionally call your Interior function with the `id`\r\n // this.Interior(id);\r\n }\r\n PastDonation(Past: string) {\r\n debugger\r\n this.selectedpast = Past;\r\n // Optionally call your Interior function with the `id`\r\n // this.Interior(id);\r\n }\r\n vol() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // If LoginDetails is empty or not set, route to the login page\r\n this.router.navigate(['/Volunteerlogin']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n // Assuming roleid is a property of LoginDetails\r\n if ((this.LoginDetails[0].RoleId === 4 && (this.LoginDetails[0].Rolestatus === false || this.LoginDetails[0].Rolestatus === null)) || (this.LoginDetails[0].RoleId === 4 && this.LoginDetails[0].Rolestatus === true) || (this.LoginDetails[0].RoleId === 2 && this.LoginDetails[0].Rolestatus === true)) {\r\n // If roleid is 4, navigate to the '/Volunters' page\r\n this.router.navigate(['/Volunters']);\r\n }\r\n\r\n else if (this.LoginDetails[0].RoleId === 0 && (this.LoginDetails[0].Rolestatus === false)) {\r\n // If roleid is not 4, display an alert message\r\n this.router.navigate(['/Volunteerprofile']);\r\n // alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n else {\r\n this.router.navigate(['/Profile']);\r\n alert(\"Please update your profile as a volunteer to access this page.\");\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 \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 Note : Enable or disable the visibility of your details to the public for donation \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 Note : Enable or disable the visibility of your phone number to the public for donation \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n
\r\n\r\n\r\n
\r\n
\r\n Full Name* \r\n
\r\n
\r\n \r\n Volunteer Name is required \r\n\r\n
\r\n
\r\n\r\n \r\n
\r\n Mobile Number* \r\n
\r\n
\r\n \r\n Volunteer Mobile is required \r\n\r\n
\r\n
\r\n\r\n \r\n
\r\n Email* \r\n
\r\n
\r\n \r\n
\r\n
\r\n\r\n \r\n
\r\n Gender* \r\n
\r\n
\r\n
\r\n Ever donated blood* \r\n
\r\n
\r\n
\r\n
\r\n Last donate date* \r\n
\r\n
\r\n
\r\n\r\n
\r\n Weight* \r\n
\r\n
\r\n \r\n Donor Weight is required \r\n\r\n
\r\n\r\n
\r\n\r\n \r\n
\r\n Age* \r\n
\r\n
\r\n \r\n
\r\n
\r\n\r\n \r\n
\r\n Blood Group* \r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n
blood group is required. \r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n \r\n\r\n
\r\n State Name \r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n \r\n\r\n
State Name is required. \r\n
\r\n\r\n
\r\n
\r\n\r\n \r\n
\r\n District Name \r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n \r\n\r\n
District Name is required. \r\n
\r\n
\r\n\r\n
\r\n\r\n \r\n
\r\n City Name \r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n\r\n\r\n
City Name is required. \r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n \r\n
\r\n Address \r\n
\r\n
\r\n \r\n
\r\n
\r\n\r\n \r\n
\r\n Area \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n Pincode* \r\n
\r\n\r\n
\r\n \r\n Pincode is required \r\n\r\n
\r\n
\r\n \r\n
\r\n Message to blood Requester \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n\r\n \r\n\r\n \r\n
\r\n Note : Enable or disable to become as a volunteer \r\n
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n
\r\n\r\n
\r\n Note: Enable or disable to become as a donor \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 Cancel \r\n
\r\n
\r\n
\r\n Update \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
Newsletter Signup \r\n\r\n
\r\n
\r\n \r\n Email \r\n \r\n
\r\n \r\n please leave this blank\r\n \r\n
\r\n \r\n Submit \r\n Thanks! \r\n \r\n \r\n
\r\n \r\n Got It \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 } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\n@Component({\r\n selector: 'app-volunter',\r\n templateUrl: './volunter.component.html',\r\n styleUrls: ['./volunter.component.scss']\r\n})\r\nexport class VolunterComponent {\r\n showSocialMedia = false;\r\n LoginDetails1: any; LoginDetails: any;\r\n constructor(private router: Router) {\r\n this.LoginDetails1 = localStorage.getItem(\"LoginDetails\");\r\n this.LoginDetails = JSON.parse(this.LoginDetails1);\r\n }\r\n ngOnInit() { }\r\n\r\n toggleSocialMedia() {\r\n this.showSocialMedia = !this.showSocialMedia;\r\n }\r\n vol() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // If LoginDetails is empty or not set, route to the login page\r\n this.router.navigate(['/Volunteerlogin']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n // Assuming roleid is a property of LoginDetails\r\n if ((this.LoginDetails[0].RoleId === 4 && (this.LoginDetails[0].Rolestatus === false || this.LoginDetails[0].Rolestatus === null)) || (this.LoginDetails[0].RoleId === 4 && this.LoginDetails[0].Rolestatus === true) || (this.LoginDetails[0].RoleId === 2 && this.LoginDetails[0].Rolestatus === true)) {\r\n // If roleid is 4, navigate to the '/Volunters' page\r\n this.router.navigate(['/Volunters']);\r\n }\r\n\r\n else if (this.LoginDetails[0].RoleId === 0 && (this.LoginDetails[0].Rolestatus === false)) {\r\n // If roleid is not 4, display an alert message\r\n this.router.navigate(['/Volunteerprofile']);\r\n // alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n else {\r\n this.router.navigate(['/Profile']);\r\n alert(\"Please update your profile as a volunteer to access this page.\");\r\n }\r\n\r\n }\r\n }\r\n\r\n\r\n openTwitter() {\r\n // Replace 'your-twitter-url' with the actual Twitter share URL\r\n const twitterShareUrl = 'https://twitter.com/intent/tweet';\r\n const urlToShare = 'https://letshelp.breakingindiaapp.com/Brochures';\r\n\r\n // Combine Twitter URL and the URL to share\r\n const finalTwitterUrl = `${twitterShareUrl}?url=${encodeURIComponent(urlToShare)}`;\r\n\r\n // Open Twitter in a new window or tab\r\n window.open(finalTwitterUrl, '_blank');\r\n }\r\n\r\n openInstagram() {\r\n // Replace 'your-instagram-url' with the actual Instagram share URL\r\n const instagramShareUrl = 'https://www.instagram.com/';\r\n const urlToShare = 'https://letshelp.breakingindiaapp.com/Brochures';\r\n\r\n // Combine Instagram URL and the URL to share\r\n const finalInstagramUrl = `${instagramShareUrl}?url=${encodeURIComponent(urlToShare)}`;\r\n\r\n // Open Instagram in a new window or tab\r\n window.open(finalInstagramUrl, '_blank');\r\n }\r\n openFacebook() {\r\n // Replace 'your-facebook-url' with the actual Facebook share URL\r\n const facebookShareUrl = 'https://www.facebook.com/sharer/sharer.php?u=';\r\n const urlToShare = 'https://letshelp.breakingindiaapp.com/Brochures';\r\n\r\n // Combine Facebook URL and the URL to share\r\n const finalFacebookUrl = `${facebookShareUrl}${encodeURIComponent(urlToShare)}`;\r\n\r\n // Open Facebook in a new window or tab\r\n window.open(finalFacebookUrl, '_blank');\r\n }\r\n openWhatsApp() {\r\n // Replace 'your-whatsapp-url' with the actual WhatsApp share URL\r\n const whatsappShareUrl = 'https://wa.me/?text=';\r\n const textToShare = 'Check out this link: https://letshelp.breakingindiaapp.com/Brochures';\r\n\r\n // Combine WhatsApp URL and the text to share\r\n const finalWhatsAppUrl = `${whatsappShareUrl}${encodeURIComponent(textToShare)}`;\r\n\r\n // Open WhatsApp in a new window or tab\r\n window.open(finalWhatsAppUrl, '_blank');\r\n }\r\n\r\n openGmailApp() {\r\n // Replace 'your-whatsapp-url' with the actual WhatsApp share URL\r\n const GmailShareUrl = 'https://mail.google.com/mail/u/0/';\r\n const textToShare = 'Check out this link: https://letshelp.breakingindiaapp.com/Brochures';\r\n\r\n // Combine WhatsApp URL and the text to share\r\n const finalWhatsAppUrl = `${GmailShareUrl}${encodeURIComponent(textToShare)}`;\r\n\r\n // Open WhatsApp in a new window or tab\r\n window.open(finalWhatsAppUrl, '_blank');\r\n }\r\n\r\n reg() {\r\n if (!this.LoginDetails || Object.keys(this.LoginDetails).length === 0) {\r\n // Route to login page\r\n this.router.navigate(['/Login']);\r\n return; // Stop further execution\r\n }\r\n else {\r\n this.router.navigate(['/Profile']);\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 \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
\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
Newsletter Signup \r\n
\r\n
\r\n \r\n Email \r\n \r\n
\r\n \r\n please leave this blank\r\n \r\n
\r\n \r\n Submit \r\n Thanks! \r\n \r\n \r\n
\r\n \r\n Got It \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 { Injectable } from '@angular/core';\r\nimport { HttpClient, HttpHeaders } from '@angular/common/http';\r\nimport { Observable } from 'rxjs';\r\nimport { Subject, BehaviorSubject } from 'rxjs';\r\nimport Swal from 'sweetalert2';\r\n\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class GeneralService {\r\n HomeURL: any;\r\n url: any;\r\n urlname: any;\r\n categoryId: any = []\r\n prodData: any = []\r\n private client = new BehaviorSubject('');\r\n clientData = this.client.asObservable();\r\n public categoryIDarr = new BehaviorSubject([]);\r\n public productArr = new BehaviorSubject([]);\r\n presentToast: any;\r\n showCustomAlert: any;\r\n\r\n constructor(public http: HttpClient) {\r\n this.http.get('../assets/WebService.json').subscribe((data: any) => {\r\n this.HomeURL = data.Webservice;\r\n });\r\n }\r\n\r\n getClientData(data: any) {\r\n this.client.next(data);\r\n }\r\n /*\r\n Below method is for getting category id from throug services\r\n */\r\n getCategoryid() {\r\n return this.categoryIDarr.asObservable();\r\n }\r\n /*\r\n Below method is for setting category id from throug services\r\n */\r\n setCategoryid(data: any) {\r\n this.categoryId = []\r\n this.categoryId.push(...data)\r\n this.categoryIDarr.next(this.categoryId)\r\n }\r\n /**\r\n * clear category Id\r\n */\r\n clearCategoryid() {\r\n this.categoryId = []\r\n this.categoryIDarr.next(this.categoryId)\r\n }\r\n\r\n /*\r\n Below method is for getting Products from throug services\r\n */\r\n GetProducts() {\r\n return this.productArr.asObservable();\r\n }\r\n\r\n /*\r\n Below method is for setting Products from throug services\r\n */\r\n setProducts(data: any) {\r\n this.prodData = []\r\n this.prodData.push(...data)\r\n this.productArr.next(this.prodData)\r\n }\r\n\r\n\r\n ShowAlert(title, text, type) {\r\n Swal.fire({\r\n title: title,\r\n html: text,\r\n //icon: type,\r\n confirmButtonText: 'Ok'\r\n })\r\n }\r\n ShowAlert1(title, text, type) {\r\n Swal.fire({\r\n title: title,\r\n html: text,\r\n //icon: type,\r\n confirmButtonText: 'Print',\r\n //confirmButtonText1: 'Cancel'\r\n })\r\n }\r\n\r\n //Global Method to retrieve data \r\n GetData(url) {\r\n return new Promise((resolve, reject) => {\r\n\r\n this.http.get('../assets/WebService.json').subscribe((data: any) => {\r\n\r\n this.urlname = data.Webservice;\r\n this.url = this.urlname + url\r\n this.http.get(this.url).subscribe(data => {\r\n\r\n resolve(data)\r\n }, err => {\r\n reject(err)\r\n })\r\n }, err => {\r\n reject(err)\r\n })\r\n });\r\n }\r\n PostData(url, PostParam) {\r\n\r\n return new Promise((resolve, reject) => {\r\n\r\n this.http.get('../assets/WebService.json').subscribe((data: any) => {\r\n\r\n this.urlname = data.Webservice;\r\n url = data.Webservice + url\r\n this.http.post(url, PostParam).subscribe(data => {\r\n\r\n resolve(data)\r\n }, err => {\r\n reject(err)\r\n })\r\n }, err => {\r\n reject(err)\r\n })\r\n });\r\n }\r\n PostData2(url, PostParam, PostParam2) {\r\n ;\r\n return new Promise((resolve, reject) => {\r\n this.http.get('../assets/WebService.json').subscribe((data: any) => {\r\n url = data.Webservice + url\r\n this.http.post(url, PostParam, PostParam2).subscribe(data => {\r\n resolve(data)\r\n }, err => {\r\n reject(err)\r\n })\r\n }, err => {\r\n reject(err)\r\n })\r\n });\r\n }\r\n\r\n\r\n\r\n\r\n\r\n}\r\n\r\n\r\n","// This file can be replaced during build by using the `fileReplacements` array.\r\n// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.\r\n// The list of file replacements can be found in `angular.json`.\r\n\r\nexport const environment = {\r\n production: false\r\n};\r\n\r\n/*\r\n * For easier debugging in development mode, you can import the following file\r\n * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.\r\n *\r\n * This import should be commented out in production mode because it will have a negative impact\r\n * on performance if an error is thrown.\r\n */\r\n// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.\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"],"names":["RouterModule","HomeOneComponent","HomeTwoComponent","HomeThreeComponent","HomeFourComponent","HomeFiveComponent","HomeSixComponent","HomeSevenComponent","HomeEightComponent","HomeNineComponent","HomeTenComponent","HomeElevenComponent","HomeTwelveComponent","HomeThirteenComponent","BlogDetailsComponent","AboutComponent","CtaComponent","DonersformComponent","ContactComponent","PartnerComponent","FeedbackComponent","BlooddonationComponent","SearchComponent","HarphanComponent","RequestformComponent","TermsAndConditionsComponent","PrerequisitesComponent","RegistrationComponent","OldagehomeComponent","ShareyourservicesComponent","ProfileComponent","BrochuresComponent","FaqComponent","JoincompainComponent","NavbarComponent","LoginComponent","GalleryComponent","PreloaderComponent","SkillComponent","StrategyComponent","TeamComponent","RequestloginComponent","WhoWeAreComponent","DownloadsbrouchersComponent","VolunteerloginComponent","VolunteerprofileComponent","VolunterComponent","AddmemberComponent","HospitalComponent","StickbrochureComponent","RequestpresentationComponent","BlogComponent","routes","path","component","AppRoutingModule","_","_2","_3","forRoot","imports","i1","exports","NavigationCancel","NavigationEnd","Location","LocationStrategy","PathLocationStrategy","filter","AppComponent","constructor","router","ngOnInit","recallJsFuntions","routerSubscription","events","pipe","event","subscribe","location","url","window","scrollTo","i0","ɵɵdirectiveInject","Router","selectors","features","ɵɵProvidersFeature","provide","useClass","decls","vars","template","AppComponent_Template","rf","ctx","ɵɵelement","BrowserModule","BrowserAnimationsModule","NgxScrollTopModule","NgxTypedJsModule","CarouselModule","CountUpModule","isDevMode","FormsModule","ReactiveFormsModule","TooltipModule","HttpClientModule","WelcomeComponent","FunfactsComponent","HowWeWorkComponent","ServicesComponent","FooterComponent","SubscribeComponent","PricingComponent","WorkComponent","WhyWeDifferentComponent","ServicesTwoComponent","DemoSidebarComponent","ServiceWorkerModule","AutoCompleteModule","DatePipe","StatedisrticrcityService","AppModule","bootstrap","register","enabled","registrationStrategy","declarations","http","genralservice","Statedata","districtdata","Citydata","getstate","Promise","resolve","reject","arr","RegId","TokenId","UploadFile","FormData","append","JSON","stringify","PostData","then","data","console","log","err","ShowAlert","searchCont","filtered","query","deptList","i","length","country","StateName","toLowerCase","indexOf","push","getDistrict","StateId","districtData","searchCont1","deptList1","DistrictName","getCity","DistrictId","cityData","searchCont2","deptList2","CityName","onStateSelect1","selectedState1","onStateSelect2","selectedState2","ɵɵinject","HttpClient","i2","GeneralService","factory","ɵfac","providedIn","Validators","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","AddmemberComponent_div_96_small_2_Template","ɵɵadvance","ɵɵproperty","ctx_r1","form","controls","username","touched","errors","required","ɵɵlistener","AddmemberComponent_input_104_Template_input_click_0_listener","ɵɵrestoreView","_r24","ctx_r23","ɵɵnextContext","ɵɵresetView","checkOTP","AddmemberComponent_button_105_Template_button_click_0_listener","_r26","ctx_r25","CheckMobileNumber","AddmemberComponent_button_106_Template_button_click_0_listener","_r28","ctx_r27","AddmemberComponent_div_111_small_2_Template","ctx_r7","email","AddmemberComponent_div_113_Template_div_click_3_listener","_r31","ctx_r30","selectGender","AddmemberComponent_div_113_Template_div_click_6_listener","ctx_r32","ɵɵpureFunction1","_c1","ctx_r9","selectedGender","AddmemberComponent_div_115_Template_div_click_3_listener","_r34","ctx_r33","PastDonation","AddmemberComponent_div_115_Template_div_click_6_listener","ctx_r35","ctx_r11","selectedpast","AddmemberComponent_div_116_div_2_Template_input_ngModelChange_2_listener","$event","_r39","ctx_r38","ctx_r37","AddmemberComponent_div_116_div_1_Template","AddmemberComponent_div_116_div_2_Template","ctx_r12","AddmemberComponent_div_118_small_2_Template","ctx_r14","Weight","AddmemberComponent_div_122_Template_p_autoComplete_completeMethod_2_listener","_r43","ctx_r42","searchCont3","AddmemberComponent_div_122_small_3_Template","ɵɵstyleMap","ɵɵpureFunction0","_c2","ctx_r18","deptList3","_c3","bloodgroup","AddmemberComponent_div_124_Template_p_autoComplete_completeMethod_8_listener","_r49","ctx_r48","AddmemberComponent_div_124_Template_p_autoComplete_click_8_listener","ctx_r50","AddmemberComponent_div_124_small_9_Template","AddmemberComponent_div_124_Template_p_autoComplete_completeMethod_17_listener","ctx_r51","AddmemberComponent_div_124_Template_p_autoComplete_click_17_listener","ctx_r52","AddmemberComponent_div_124_small_18_Template","AddmemberComponent_div_124_Template_p_autoComplete_completeMethod_26_listener","ctx_r53","AddmemberComponent_div_124_small_27_Template","AddmemberComponent_div_124_small_47_Template","ctx_r19","_c4","statename","_c5","districtname","cityname","Pincode","AddmemberComponent_div_125_Template_input_change_3_listener","_r55","ctx_r54","checkFormValidity","AddmemberComponent_div_125_Template_div_click_4_listener","ctx_r56","openLoginModal1","AddmemberComponent_div_125_Template_input_change_9_listener","ctx_r57","AddmemberComponent_div_125_Template_div_click_10_listener","ctx_r58","openLoginModal","ctx_r21","valid","datePipe","fb","bloodgroupdata","subDropdownStyle","isMouseOverSubDropdown","showDropdownContent","selectedBloodgroup","activeCardIndex","otpSent","showLogin","showLogin1","registerAsDonor","showOTPInput","showFullNameInput","LoginDetails1","localStorage","getItem","LoginDetails","parse","group","mobile","Gender","DOB","age","useraddress","area","Lastdonatedate","OTP","Messagetorequester","termsAndConditions","requiredTrue","eligibilityCriteria","getBloodgroup","downloadlogo","navigate","reload","handleClick","index","toggleSocialMedia","value","reg","Object","keys","getProfileAndBindFormData","_this","_asyncToGenerator","profileData","getprofile","error","updateValueAndValidity","$","modal","closeModal","Phonenumber","profiledata","setItem","Donersform","BLGId","undefined","BloodGroupId","stateId","StateID","districtId","DistrictID","cityId","CityId","CityID","lastDonateDate","FullName","Email","Age","UserAddress","Area","RoleId","Status","CreatedBy","uploadfile","flag","reset","alert","toggleStatus","checked","BLGName","updateSubDropdownPosition","top","clientY","left","clientX","display","hideSubDropdown","toggleDropdown","selectBloodgroup","gender","Past","vol","Rolestatus","otpControl","get","_this2","SendOTPtoMobile","_this3","Math","floor","random","formData","toString","i3","i4","FormBuilder","i5","viewQuery","AddmemberComponent_Query","AddmemberComponent_Template_div_click_71_listener","AddmemberComponent_Template_div_click_75_listener","AddmemberComponent_Template_div_click_79_listener","AddmemberComponent_Template_img_click_80_listener","AddmemberComponent_Template_div_click_82_listener","AddmemberComponent_Template_a_click_83_listener","AddmemberComponent_Template_form_ngSubmit_93_listener","AddmemberComponent_div_95_Template","AddmemberComponent_div_96_Template","AddmemberComponent_input_104_Template","AddmemberComponent_button_105_Template","AddmemberComponent_button_106_Template","AddmemberComponent_small_107_Template","AddmemberComponent_div_110_Template","AddmemberComponent_div_111_Template","AddmemberComponent_div_112_Template","AddmemberComponent_div_113_Template","AddmemberComponent_div_114_Template","AddmemberComponent_div_115_Template","AddmemberComponent_div_116_Template","AddmemberComponent_div_117_Template","AddmemberComponent_div_118_Template","AddmemberComponent_div_119_Template","AddmemberComponent_div_120_Template","AddmemberComponent_div_121_Template","AddmemberComponent_div_122_Template","AddmemberComponent_Template_form_ngSubmit_123_listener","AddmemberComponent_div_124_Template","AddmemberComponent_div_125_Template","AddmemberComponent_div_128_Template","AddmemberComponent_Template_button_click_136_listener","AddmemberComponent_Template_button_click_190_listener","_c6","viewportScroller","generalService","btn","values","Navbar","ViewportScroller","consts","BlogDetailsComponent_Template","ɵɵnamespaceSVG","ɵɵnamespaceHTML","BlooddonationComponent_div_10_Template_div_click_0_listener","BlooddonationComponent_ng_template_11_Template_div_click_0_listener","_r30","ctx_r29","ɵɵelementContainerStart","BlooddonationComponent_ng_container_32_Template_div_click_1_listener","_r32","ctx_r31","BlooddonationComponent_ng_container_32_Template_a_click_5_listener","pro","BlooddonationComponent_ng_container_32_Template_a_click_7_listener","ctx_r34","signOut","ɵɵelementContainerEnd","ɵɵtextInterpolate1","ctx_r3","letter","BlooddonationComponent_ng_template_33_Template_p_click_0_listener","_r36","BlooddonationComponent_fieldset_48_div_9_Template_div_click_0_listener","_r41","ctx_r40","EditMobileNumber","BlooddonationComponent_fieldset_48_input_13_Template_input_ngModelChange_0_listener","ctx_r39","BlooddonationComponent_fieldset_48_Template_input_ngModelChange_8_listener","_r45","ctx_r44","Mobile","BlooddonationComponent_fieldset_48_div_9_Template","BlooddonationComponent_fieldset_48_label_11_Template","BlooddonationComponent_fieldset_48_input_13_Template","BlooddonationComponent_fieldset_48_Template_button_click_17_listener","ctx_r46","BlooddonationComponent_fieldset_48_Template_button_click_19_listener","ctx_r47","checkmobile","ctx_r6","OTPtoMobile","BlooddonationComponent_fieldset_49_div_9_Template_div_click_0_listener","_r52","BlooddonationComponent_fieldset_49_input_13_Template_input_ngModelChange_0_listener","_r54","BlooddonationComponent_fieldset_49_Template_input_ngModelChange_8_listener","_r56","ctx_r55","BlooddonationComponent_fieldset_49_div_9_Template","BlooddonationComponent_fieldset_49_label_11_Template","BlooddonationComponent_fieldset_49_input_13_Template","BlooddonationComponent_fieldset_49_Template_button_click_17_listener","BlooddonationComponent_fieldset_49_Template_button_click_19_listener","BlooddonationComponent_form_190_div_8_Template_div_click_0_listener","_r63","ctx_r62","BlooddonationComponent_form_190_input_12_Template_input_ngModelChange_0_listener","_r65","ctx_r64","ctx_r61","BlooddonationComponent_form_190_Template_input_ngModelChange_7_listener","_r67","ctx_r66","BlooddonationComponent_form_190_Template_input_input_7_listener","ctx_r68","checkMobileLength","BlooddonationComponent_form_190_div_8_Template","BlooddonationComponent_form_190_label_10_Template","BlooddonationComponent_form_190_input_12_Template","BlooddonationComponent_form_190_Template_button_click_15_listener","ctx_r69","BlooddonationComponent_form_190_Template_button_click_20_listener","ctx_r70","ctx_r13","isMobileDisabled","BlooddonationComponent_form_191_div_9_Template_div_click_0_listener","_r75","ctx_r74","BlooddonationComponent_form_191_input_13_Template_input_ngModelChange_0_listener","_r77","ctx_r76","ctx_r73","BlooddonationComponent_form_191_Template_input_ngModelChange_8_listener","_r79","ctx_r78","BlooddonationComponent_form_191_Template_input_input_8_listener","ctx_r80","BlooddonationComponent_form_191_div_9_Template","BlooddonationComponent_form_191_label_11_Template","BlooddonationComponent_form_191_input_13_Template","BlooddonationComponent_form_191_Template_button_click_16_listener","ctx_r81","BlooddonationComponent_form_191_Template_button_click_20_listener","ctx_r82","checkmobile1","ctx_r86","BlooddonationComponent_form_200_div_179_Template_input_change_2_listener","_r96","ctx_r95","toggleStatuss2","target","ctx_r94","form3","BlooddonationComponent_form_200_Template_form_ngSubmit_0_listener","_r98","ctx_r97","BlooddonationComponent_form_200_Template_input_change_13_listener","ctx_r99","toggleStatuss","BlooddonationComponent_form_200_Template_input_change_24_listener","ctx_r100","toggleStatuss1","BlooddonationComponent_form_200_small_33_Template","BlooddonationComponent_form_200_small_42_Template","BlooddonationComponent_form_200_Template_div_click_60_listener","ctx_r101","BlooddonationComponent_form_200_Template_div_click_63_listener","ctx_r102","BlooddonationComponent_form_200_Template_div_click_74_listener","ctx_r103","BlooddonationComponent_form_200_Template_div_click_77_listener","ctx_r104","BlooddonationComponent_form_200_div_80_Template","BlooddonationComponent_form_200_div_81_Template","BlooddonationComponent_form_200_small_90_Template","BlooddonationComponent_form_200_Template_p_autoComplete_completeMethod_107_listener","ctx_r105","BlooddonationComponent_form_200_small_108_Template","BlooddonationComponent_form_200_Template_p_autoComplete_completeMethod_115_listener","ctx_r106","searchCont111","BlooddonationComponent_form_200_Template_p_autoComplete_click_115_listener","ctx_r107","getDistrict111","BlooddonationComponent_form_200_small_116_Template","BlooddonationComponent_form_200_Template_p_autoComplete_completeMethod_123_listener","ctx_r108","searchCont112","BlooddonationComponent_form_200_Template_p_autoComplete_click_123_listener","ctx_r109","getCity111","BlooddonationComponent_form_200_small_124_Template","BlooddonationComponent_form_200_Template_p_autoComplete_completeMethod_131_listener","ctx_r110","searchCont222","BlooddonationComponent_form_200_small_132_Template","BlooddonationComponent_form_200_small_153_Template","BlooddonationComponent_form_200_Template_input_change_163_listener","ctx_r111","BlooddonationComponent_form_200_Template_div_click_166_listener","ctx_r112","opent","BlooddonationComponent_form_200_Template_input_change_172_listener","ctx_r113","BlooddonationComponent_form_200_Template_div_click_175_listener","ctx_r114","openC","BlooddonationComponent_form_200_div_178_Template","BlooddonationComponent_form_200_div_179_Template","_c0","BlooddonationComponent_form_201_Template_form_ngSubmit_0_listener","_r126","ctx_r125","Requestform","BlooddonationComponent_form_201_small_10_Template","BlooddonationComponent_form_201_small_19_Template","BlooddonationComponent_form_201_small_36_Template","BlooddonationComponent_form_201_Template_div_click_52_listener","ctx_r127","selectGenders","BlooddonationComponent_form_201_Template_div_click_55_listener","ctx_r128","BlooddonationComponent_form_201_Template_p_autoComplete_completeMethod_97_listener","ctx_r129","BlooddonationComponent_form_201_small_98_Template","BlooddonationComponent_form_201_Template_p_autoComplete_completeMethod_106_listener","ctx_r130","searchCont4","BlooddonationComponent_form_201_small_107_Template","BlooddonationComponent_form_201_Template_p_autoComplete_completeMethod_135_listener","ctx_r131","searchCont8","BlooddonationComponent_form_201_small_136_Template","BlooddonationComponent_form_201_Template_p_autoComplete_completeMethod_152_listener","ctx_r132","searchCont11","BlooddonationComponent_form_201_Template_p_autoComplete_click_152_listener","ctx_r133","getDistrict1","BlooddonationComponent_form_201_small_153_Template","BlooddonationComponent_form_201_Template_p_autoComplete_completeMethod_159_listener","ctx_r134","searchCont12","BlooddonationComponent_form_201_Template_p_autoComplete_click_159_listener","ctx_r135","getCity1","BlooddonationComponent_form_201_small_160_Template","BlooddonationComponent_form_201_Template_p_autoComplete_completeMethod_166_listener","ctx_r136","searchCont22","BlooddonationComponent_form_201_small_167_Template","BlooddonationComponent_form_201_small_181_Template","ctx_r22","form2","contactperson","Contmobile","selectedGenders","deptList4","unitsofblood","deptList8","HsptName","BlooddonationComponent_form_202_div_3_Template_input_change_9_listener","_r160","ctx_r159","ctx_r137","BlooddonationComponent_form_202_div_6_Template_input_change_9_listener","_r162","ctx_r161","ctx_r138","BlooddonationComponent_form_202_div_49_Template_div_click_3_listener","_r164","ctx_r163","BlooddonationComponent_form_202_div_49_Template_div_click_6_listener","ctx_r165","ctx_r143","BlooddonationComponent_form_202_div_50_div_1_Template","ctx_r144","ctx_r167","BlooddonationComponent_form_202_div_51_div_1_Template","ctx_r145","BlooddonationComponent_form_202_div_53_small_2_Template","ctx_r147","BlooddonationComponent_form_202_div_55_Template_p_autoComplete_completeMethod_8_listener","_r171","ctx_r170","BlooddonationComponent_form_202_div_55_small_9_Template","ctx_r149","BlooddonationComponent_form_202_div_107_Template_input_change_2_listener","_r173","ctx_r172","ctx_r157","BlooddonationComponent_form_202_div_108_Template_input_change_2_listener","_r175","ctx_r174","ctx_r158","BlooddonationComponent_form_202_Template_form_ngSubmit_0_listener","_r177","ctx_r176","Donersforms","BlooddonationComponent_form_202_div_3_Template","BlooddonationComponent_form_202_div_6_Template","BlooddonationComponent_form_202_small_14_Template","BlooddonationComponent_form_202_small_23_Template","BlooddonationComponent_form_202_small_32_Template","BlooddonationComponent_form_202_Template_div_click_42_listener","ctx_r178","BlooddonationComponent_form_202_Template_div_click_45_listener","ctx_r179","BlooddonationComponent_form_202_div_48_Template","BlooddonationComponent_form_202_div_49_Template","BlooddonationComponent_form_202_div_50_Template","BlooddonationComponent_form_202_div_51_Template","BlooddonationComponent_form_202_div_52_Template","BlooddonationComponent_form_202_div_53_Template","BlooddonationComponent_form_202_div_54_Template","BlooddonationComponent_form_202_div_55_Template","BlooddonationComponent_form_202_Template_p_autoComplete_completeMethod_62_listener","ctx_r180","searchConts","BlooddonationComponent_form_202_Template_p_autoComplete_click_62_listener","ctx_r181","getDistricts","BlooddonationComponent_form_202_small_63_Template","BlooddonationComponent_form_202_Template_p_autoComplete_completeMethod_70_listener","ctx_r182","searchCont1s","BlooddonationComponent_form_202_Template_p_autoComplete_click_70_listener","ctx_r183","getCitys","BlooddonationComponent_form_202_small_71_Template","BlooddonationComponent_form_202_Template_p_autoComplete_completeMethod_78_listener","ctx_r184","searchCont2s","BlooddonationComponent_form_202_small_79_Template","BlooddonationComponent_form_202_small_100_Template","BlooddonationComponent_form_202_div_101_Template","BlooddonationComponent_form_202_div_105_Template","BlooddonationComponent_form_202_div_106_Template","BlooddonationComponent_form_202_div_107_Template","BlooddonationComponent_form_202_div_108_Template","deptLists","deptList1s","deptList2s","BlooddonationComponent_form_203_Template_form_ngSubmit_0_listener","_r191","ctx_r190","AddBanner","form1","BlooddonationComponent_form_203_Template_p_autoComplete_completeMethod_14_listener","ctx_r192","searchContq3","BlooddonationComponent_form_203_small_15_Template","BlooddonationComponent_form_203_Template_input_change_23_listener","_r186","ɵɵreference","ctx_r193","detectFiles3","BlooddonationComponent_form_203_Template_p_autoComplete_completeMethod_43_listener","ctx_r194","searchContss","BlooddonationComponent_form_203_Template_p_autoComplete_click_43_listener","ctx_r195","getDistrictss","BlooddonationComponent_form_203_small_44_Template","BlooddonationComponent_form_203_Template_p_autoComplete_completeMethod_49_listener","ctx_r196","searchCont1ss","BlooddonationComponent_form_203_Template_p_autoComplete_click_49_listener","ctx_r197","getCityss","BlooddonationComponent_form_203_small_50_Template","BlooddonationComponent_form_203_Template_p_autoComplete_completeMethod_55_listener","ctx_r198","searchCont2ss","BlooddonationComponent_form_203_small_56_Template","ctx_r24","deptList3q","Category","BlooddonationComponent_div_210_Template_p_click_2_listener","restoredCtx","_r201","item_r199","$implicit","ctx_r200","viewDetails","UdId","ɵɵtextInterpolate2","ɵɵpipeBind2","BloodRequestDate","ɵɵpropertyInterpolate","ctx_r26","HomeUrl","item_r202","GalleryImages","ɵɵsanitizeUrl","ɵɵtextInterpolate","categoryname","route","Areadata","arr1","showSuccessMessage","isLoggedIn","isDonorRegisterClicked","isRegistrationFormVisible","isDonorRegisterClickedd","isshareFormVisible","isrequestFormVisible","isprofileFormVisible","category","dropdownActive","isDropdownOpen","isDropdownOpen2","isDropdownOpen3","isDropdownOpen4","isDropdownOpen5","deptList5","showSecondModal","showEditForm","Array","isArray","charAt","Statusphn","Dateofservice","Institutionname","Message","RequestTime","Purpose","DoctorName","HospitalPhonenumber","HospitalAddress","PersonalNote","Webservice","GetHospitals","getgallerycat","GetPincode","getgallerycat11","getunitofblood","Request","getprofiles","queryParams","params","isshare","issharee","Visible","validateLastDonateDate","control","pastDonation","onSearchClick1","currentTarget","ripple","document","createElement","classList","add","style","getBoundingClientRect","appendChild","setTimeout","remove","Gallery","open","dropdownContent","getElementById","share","setFormVisibility","profileVisible","shareVisible","requestVisible","checkLoginStatus","pwd1","Password","userid","ID","logindata","insertPhoneNumber1","insertPhoneNumber","Editting","EditFlag","Uploadfile","SendOTPtoMail","EmailID","Content","modalVisible","removeItem","onSearchClick","State","distict","city","selectedState3","selectedState5","pincode","selctedpincode","Donersdata","emailsWithNames","map","donor","fullName","send_Mail1","district","BloodGroup","FilteredData","baseurl","top10EmailsWithNames","slice","forEach","emailArr","uploadFile","GetData","Requestdata","getAreas","searchCont6","deptList6","onStateSelect3","onStateSelect4","selectedState4","onStateSelect5","onpincodeselect","onStateSelect6","selectedState6","close","val","Requestdet","HospitalName","ContactPerson","ContactMobile","gallerycat","GallaryCategory","GalleryImages1","requestlogin","bindFormDatas","isNaN","Date","transform","dob","patchValue","DoB","imagedate","getTime","GalleryID","Categoryid","District","City","send_Mail","title","text","type","confirmButtonText","arr2","GallaryCategory12","Getimagedata","gallerydate","CreatedDate","today","ninetyFiveDaysAgo","toISOString","detectFiles2","input2","reader","FileReader","files","file","onload","imagefile2","result","readAsDataURL","selectedFile","idxDot","name","lastIndexOf","extFile","substr","detectFiles33","imageUrl","URL","createObjectURL","image","Image","canvas","maxWidth","maxHeight","quality","maxSizeKB","ratio","max","width","height","round","targetSizeBytes","currentSizeBytes","size","compressionRatio","getContext","drawImage","toBlob","blob","src","readAsArrayBuffer","hospitalNameParts","split","UnitsofBloodId","Note","requestid","UnitsofBlood","toggleDropdownActive","back","selectOption1","setValue","getChipStyle1","option","selectedItem1","bindFormData","updatedRoleId","getstates","getstatess","getstate1","getstate111","ComponentDropdown","ComponentDropdown2","ComponentDropdown3","ComponentDropdown4","ComponentDropdown5","pincodedata","Selectcount5","ActivatedRoute","BlooddonationComponent_Template","BlooddonationComponent_div_10_Template","BlooddonationComponent_ng_template_11_Template","ɵɵtemplateRefExtractor","BlooddonationComponent_Template_div_click_14_listener","BlooddonationComponent_Template_div_click_18_listener","BlooddonationComponent_ng_container_32_Template","BlooddonationComponent_ng_template_33_Template","BlooddonationComponent_Template_button_click_41_listener","BlooddonationComponent_fieldset_48_Template","BlooddonationComponent_fieldset_49_Template","BlooddonationComponent_Template_button_click_56_listener","BlooddonationComponent_Template_button_click_110_listener","BlooddonationComponent_Template_p_autoComplete_ngModelChange_142_listener","BlooddonationComponent_Template_p_autoComplete_completeMethod_142_listener","BlooddonationComponent_Template_p_autoComplete_onSelect_142_listener","BlooddonationComponent_Template_p_autoComplete_ngModelChange_144_listener","BlooddonationComponent_Template_p_autoComplete_completeMethod_144_listener","BlooddonationComponent_Template_p_autoComplete_click_144_listener","BlooddonationComponent_Template_p_autoComplete_onSelect_144_listener","BlooddonationComponent_Template_p_autoComplete_ngModelChange_146_listener","BlooddonationComponent_Template_p_autoComplete_completeMethod_146_listener","BlooddonationComponent_Template_p_autoComplete_click_146_listener","BlooddonationComponent_Template_p_autoComplete_onSelect_146_listener","BlooddonationComponent_Template_p_autoComplete_ngModelChange_148_listener","BlooddonationComponent_Template_p_autoComplete_completeMethod_148_listener","BlooddonationComponent_Template_p_autoComplete_onSelect_148_listener","BlooddonationComponent_Template_p_autoComplete_ngModelChange_150_listener","BlooddonationComponent_Template_p_autoComplete_completeMethod_150_listener","BlooddonationComponent_Template_p_autoComplete_onSelect_150_listener","BlooddonationComponent_Template_button_click_153_listener","BlooddonationComponent_Template_div_click_161_listener","BlooddonationComponent_div_164_Template","BlooddonationComponent_Template_div_click_167_listener","BlooddonationComponent_div_170_Template","BlooddonationComponent_Template_div_click_173_listener","BlooddonationComponent_div_176_Template","BlooddonationComponent_Template_div_click_179_listener","BlooddonationComponent_div_182_Template","BlooddonationComponent_Template_div_click_185_listener","BlooddonationComponent_div_188_Template","BlooddonationComponent_form_190_Template","BlooddonationComponent_form_191_Template","BlooddonationComponent_div_192_Template","BlooddonationComponent_p_195_Template","BlooddonationComponent_p_196_Template","BlooddonationComponent_p_197_Template","BlooddonationComponent_p_198_Template","BlooddonationComponent_p_199_Template","BlooddonationComponent_form_200_Template","BlooddonationComponent_form_201_Template","BlooddonationComponent_form_202_Template","BlooddonationComponent_form_203_Template","BlooddonationComponent_div_210_Template","BlooddonationComponent_Template_div_click_214_listener","BlooddonationComponent_div_220_Template","BlooddonationComponent_Template_button_click_228_listener","_r1","_r4","_c7","_c8","_c9","_c10","EventEmitter","BrochuresComponent_div_91_Template_a_click_16_listener","_r2","openFacebook","BrochuresComponent_div_91_Template_a_click_22_listener","opentwitter","BrochuresComponent_div_91_Template_a_click_28_listener","ctx_r4","openInstagram","BrochuresComponent_div_91_Template_a_click_33_listener","ctx_r5","openWhatsApp","generalservice","cdr","cardClicked","isActive","brochuedata","showSocialMedia","pdfurl","brochure","Brochureinsert","stateid","districtid","cityid","downloadFile","pdfpath","BrochurePath","download1","filePath","fileName","pop","absoluteUrl","link","href","download","body","click","removeChild","timestamp","setAttribute","ngOnDestroy","refreshTimeout","clearTimeout","toggleSocialMedias","instagramShareUrl","urlToShare","finalInstagramUrl","encodeURIComponent","facebookShareUrl","finalFacebookUrl","whatsappShareUrl","textToShare","finalWhatsAppUrl","openGmailApp","GmailShareUrl","setActiveCard","ChangeDetectorRef","inputs","position","outputs","BrochuresComponent_Template","BrochuresComponent_Template_div_click_77_listener","BrochuresComponent_Template_div_click_81_listener","BrochuresComponent_Template_img_click_82_listener","BrochuresComponent_Template_div_click_84_listener","BrochuresComponent_Template_img_click_85_listener","BrochuresComponent_Template_div_click_87_listener","BrochuresComponent_Template_a_click_88_listener","BrochuresComponent_div_91_Template","DownloadLogo","AboutComponent_Template","blogSlides","loop","nav","dots","autoplayHoverPause","autoplay","margin","navText","responsive","items","onClick","elementId","BlogComponent_Template","BlogComponent_Template_a_click_65_listener","BlogComponent_Template_a_click_89_listener","Swal","enquiery","scrollToAnchor","sendmail","FarmerName","Fullname","Comments","fire","ContactComponent_Template","ContactComponent_Template_input_ngModelChange_83_listener","ContactComponent_Template_input_ngModelChange_85_listener","ContactComponent_Template_textarea_ngModelChange_87_listener","ContactComponent_Template_button_click_92_listener","CtaComponent_ng_container_19_Template_div_click_1_listener","CtaComponent_ng_container_19_Template_a_click_5_listener","CtaComponent_ng_container_19_Template_a_click_7_listener","ctx_r0","CtaComponent_ng_template_20_Template_p_click_0_listener","_r8","activeroute","loginDet","showmenu","CtaComponent_Template","CtaComponent_ng_container_19_Template","CtaComponent_ng_template_20_Template","classApplied","toggleClass","DemoSidebarComponent_Template","DemoSidebarComponent_Template_button_click_1_listener","DemoSidebarComponent_Template_button_click_92_listener","ɵɵclassProp","contentHeight","openSectionIndex","toggleSection","calculateContentHeight","isSectionOpen","contentElement","querySelector","scrollHeight","FaqComponent_Template","FaqComponent_Template_div_click_221_listener","FaqComponent_Template_div_click_227_listener","FaqComponent_Template_div_click_233_listener","FaqComponent_Template_div_click_239_listener","FaqComponent_Template_div_click_245_listener","firstLetter","FeedbackComponent_Template","FeedbackComponent_Template_form_ngSubmit_30_listener","FeedbackComponent_small_45_Template","FeedbackComponent_Template_input_change_52_listener","_r5","FeedbackComponent_Template_form_ngSubmit_68_listener","FeedbackComponent_Template_p_autoComplete_completeMethod_76_listener","FeedbackComponent_Template_p_autoComplete_click_76_listener","FeedbackComponent_small_77_Template","FeedbackComponent_Template_p_autoComplete_completeMethod_86_listener","FeedbackComponent_Template_p_autoComplete_click_86_listener","FeedbackComponent_small_87_Template","FeedbackComponent_Template_p_autoComplete_completeMethod_96_listener","FeedbackComponent_small_97_Template","FooterComponent_Template","styles","FunfactsComponent_Template","HowWeWorkComponent_Template","isSticky","checkScroll","scrollPosition","pageYOffset","documentElement","scrollTop","hostBindings","NavbarComponent_HostBindings","ɵɵresolveWindow","partnerSlides","PartnerComponent_Template","PreloaderComponent_ng_container_19_Template_div_click_1_listener","PreloaderComponent_ng_container_19_Template_a_click_5_listener","PreloaderComponent_ng_container_19_Template_a_click_7_listener","PreloaderComponent_ng_template_20_Template_p_click_0_listener","PreloaderComponent_Template","PreloaderComponent_ng_container_19_Template","PreloaderComponent_ng_template_20_Template","compose","minLength","maxLength","Register","Getsurname","surnamedata","onSurnameSelection","selectedSurname","onSubmit","submitAttempt","data1","userdet","PricingComponent_Template","PricingComponent_small_73_Template","PricingComponent_small_81_Template","PricingComponent_small_89_Template","PricingComponent_small_99_Template","PricingComponent_Template_div_click_102_listener","PricingComponent_label_105_Template","PricingComponent_input_106_Template","PricingComponent_small_114_Template","PricingComponent_small_122_Template","PricingComponent_small_130_Template","PricingComponent_small_138_Template","PricingComponent_small_146_Template","PricingComponent_Template_button_click_150_listener","matchingPasswords","arg0","arg1","Error","ServicesTwoComponent_Template","ServicesComponent_Template","SkillComponent_ng_container_19_Template_div_click_1_listener","SkillComponent_ng_container_19_Template_a_click_5_listener","SkillComponent_ng_container_19_Template_a_click_7_listener","SkillComponent_ng_template_20_Template_p_click_0_listener","SkillComponent_Template","SkillComponent_ng_container_19_Template","SkillComponent_ng_template_20_Template","StrategyComponent_ng_container_20_Template_div_click_1_listener","StrategyComponent_ng_container_20_Template_a_click_5_listener","StrategyComponent_ng_container_20_Template_a_click_7_listener","StrategyComponent_ng_template_21_Template_p_click_0_listener","StrategyComponent_Template","StrategyComponent_ng_container_20_Template","StrategyComponent_ng_template_21_Template","SubscribeComponent_Template","TeamComponent_ng_container_19_Template_div_click_1_listener","TeamComponent_ng_container_19_Template_a_click_5_listener","TeamComponent_ng_container_19_Template_a_click_7_listener","TeamComponent_ng_template_20_Template_p_click_0_listener","TeamComponent_Template","TeamComponent_ng_container_19_Template","TeamComponent_ng_template_20_Template","WelcomeComponent_Template","WelcomeComponent_Template_a_click_29_listener","WelcomeComponent_Template_a_click_39_listener","WelcomeComponent_Template_a_click_50_listener","WhoWeAreComponent_Template","WhyWeDifferentComponent_Template","currentTab","switchTab","tab","preventDefault","WorkComponent_Template","WorkComponent_Template_span_click_13_listener","WorkComponent_Template_span_click_16_listener","WorkComponent_Template_span_click_19_listener","WorkComponent_Template_span_click_22_listener","WorkComponent_Template_span_click_25_listener","WorkComponent_div_28_Template","WorkComponent_div_29_Template","WorkComponent_div_30_Template","WorkComponent_div_31_Template","WorkComponent_div_32_Template","DonersformComponent_Query","DonersformComponent_Template_div_click_71_listener","DonersformComponent_Template_div_click_75_listener","DonersformComponent_Template_img_click_76_listener","DonersformComponent_Template_div_click_78_listener","DonersformComponent_Template_img_click_79_listener","DonersformComponent_Template_div_click_81_listener","DonersformComponent_Template_form_ngSubmit_92_listener","DonersformComponent_small_101_Template","DonersformComponent_small_109_Template","DonersformComponent_small_117_Template","DonersformComponent_Template_div_click_126_listener","DonersformComponent_Template_div_click_129_listener","DonersformComponent_Template_div_click_139_listener","DonersformComponent_Template_div_click_142_listener","DonersformComponent_Template_input_ngModelChange_158_listener","DonersformComponent_small_166_Template","DonersformComponent_Template_p_autoComplete_completeMethod_181_listener","DonersformComponent_small_182_Template","DonersformComponent_Template_form_ngSubmit_183_listener","DonersformComponent_Template_p_autoComplete_completeMethod_190_listener","DonersformComponent_Template_p_autoComplete_click_190_listener","DonersformComponent_small_191_Template","DonersformComponent_Template_p_autoComplete_completeMethod_197_listener","DonersformComponent_Template_p_autoComplete_click_197_listener","DonersformComponent_small_198_Template","DonersformComponent_Template_p_autoComplete_completeMethod_204_listener","DonersformComponent_small_205_Template","DonersformComponent_small_223_Template","DonersformComponent_Template_input_change_231_listener","DonersformComponent_Template_div_click_232_listener","DonersformComponent_Template_input_change_237_listener","DonersformComponent_Template_div_click_238_listener","DonersformComponent_Template_button_click_250_listener","DonersformComponent_Template_button_click_304_listener","DownloadsbrouchersComponent_div_84_Template_p_autoComplete_ngModelChange_21_listener","DownloadsbrouchersComponent_div_84_Template_p_autoComplete_completeMethod_21_listener","DownloadsbrouchersComponent_div_84_Template_p_autoComplete_click_21_listener","DownloadsbrouchersComponent_div_84_Template_p_autoComplete_onSelect_21_listener","DownloadsbrouchersComponent_div_84_Template_p_autoComplete_ngModelChange_27_listener","ctx_r8","DownloadsbrouchersComponent_div_84_Template_p_autoComplete_completeMethod_27_listener","DownloadsbrouchersComponent_div_84_Template_p_autoComplete_click_27_listener","ctx_r10","DownloadsbrouchersComponent_div_84_Template_p_autoComplete_onSelect_27_listener","DownloadsbrouchersComponent_div_84_Template_p_autoComplete_ngModelChange_33_listener","DownloadsbrouchersComponent_div_84_Template_p_autoComplete_completeMethod_33_listener","DownloadsbrouchersComponent_div_84_Template_p_autoComplete_onSelect_33_listener","DownloadsbrouchersComponent_div_84_Template_input_keydown_enter_43_listener","DownloadsbrouchersComponent_div_84_Template_button_click_53_listener","ctx_r16","DownloadsbrouchersComponent_div_84_Template_button_click_56_listener","ctx_r17","Brochureinsert1","DownloadsbrouchersComponent_div_84_Template_button_click_61_listener","DownloadsbrouchersComponent_div_85_Template_a_click_17_listener","_r20","DownloadsbrouchersComponent_div_85_Template_a_click_23_listener","DownloadsbrouchersComponent_div_85_Template_a_click_29_listener","DownloadsbrouchersComponent_div_85_Template_a_click_34_listener","catch","DownloadsbrouchersComponent_Template","DownloadsbrouchersComponent_Template_div_click_71_listener","DownloadsbrouchersComponent_Template_div_click_75_listener","DownloadsbrouchersComponent_Template_img_click_76_listener","DownloadsbrouchersComponent_Template_div_click_78_listener","DownloadsbrouchersComponent_Template_img_click_79_listener","DownloadsbrouchersComponent_Template_div_click_81_listener","DownloadsbrouchersComponent_Template_a_click_82_listener","DownloadsbrouchersComponent_div_84_Template","DownloadsbrouchersComponent_div_85_Template","GalleryComponent_div_22_Template_li_click_2_listener","_r10","shareTo","GalleryComponent_div_22_Template_li_click_4_listener","GalleryComponent_div_22_Template_li_click_6_listener","GalleryComponent_div_22_Template_li_click_8_listener","copyPageUrl","GalleryComponent_ng_container_35_ng_container_1_Template_div_click_1_listener","_r16","ctx_r15","GalleryComponent_ng_container_35_ng_container_1_Template_a_click_7_listener","GalleryComponent_ng_container_35_ng_container_1_Template","GalleryComponent_ng_template_36_Template_p_click_0_listener","_r19","GalleryComponent_input_59_Template_input_ngModelChange_0_listener","_r21","ctx_r20","GalleryComponent_div_85_Template_div_click_1_listener","_r25","item_r22","GalleryComponent_div_85_Template_div_click_3_listener","flipToBack","disableViewDetailsOnClick","GalleryComponent_div_85_Template_div_mouseleave_5_listener","flipToFront","GalleryComponent_div_85_Template_li_click_12_listener","ctx_r28","shareTo1","GalleryComponent_div_85_Template_li_click_14_listener","GalleryComponent_div_85_Template_li_click_16_listener","GalleryComponent_div_85_Template_li_click_18_listener","copyUrl","ɵɵpropertyInterpolate1","currentPage","itemsPerPage","i_r23","GalleryComponent_li_99_Template_a_click_1_listener","_r35","page_r32","setPage","disableViewDetails","isSearching","isSearchInputFocused","prevSearchQuery","activeButton","gridview","dataResult","showSocialList","startIndex","Getimages","sharee","Getimages1","Getimages2","Getimages3","platform","shareUrl","prevPage","nextPage","totalPages","ceil","getPages","startPage","endPage","min","from","page","getPagedItems","goToFirstPage","goToLastPage","Gallerysearch","searchQuery","trim","categoryId","autoSearch","el","select","execCommand","container","closest","isSocialIcon","contains","enableViewDetailsOnClick","GalleryComponent_Template","GalleryComponent_Template_div_click_10_listener","GalleryComponent_Template_div_click_14_listener","GalleryComponent_Template_div_click_18_listener","GalleryComponent_div_22_Template","GalleryComponent_ng_container_35_Template","GalleryComponent_ng_template_36_Template","GalleryComponent_Template_button_click_44_listener","GalleryComponent_Template_input_ngModelChange_57_listener","GalleryComponent_label_58_Template","GalleryComponent_input_59_Template","GalleryComponent_Template_button_click_61_listener","GalleryComponent_Template_button_click_65_listener","GalleryComponent_Template_button_click_74_listener","GalleryComponent_Template_button_click_76_listener","GalleryComponent_Template_button_click_78_listener","GalleryComponent_Template_button_click_80_listener","GalleryComponent_Template_input_ngModelChange_83_listener","GalleryComponent_Template_input_input_83_listener","GalleryComponent_Template_input_focus_83_listener","GalleryComponent_Template_input_blur_83_listener","GalleryComponent_Template_input_keyup_enter_83_listener","GalleryComponent_div_85_Template","GalleryComponent_Template_a_click_92_listener","GalleryComponent_Template_a_click_96_listener","GalleryComponent_li_99_Template","GalleryComponent_Template_a_click_101_listener","GalleryComponent_Template_a_click_105_listener","GalleryComponent_Template_button_click_115_listener","GalleryComponent_span_125_Template","HarphanComponent_ng_container_31_Template_div_click_1_listener","_r9","HarphanComponent_ng_container_31_Template_a_click_5_listener","HarphanComponent_ng_container_31_Template_a_click_7_listener","HarphanComponent_ng_template_32_Template_p_click_0_listener","_r13","sharelog","HarphanComponent_form_57_div_3_Template_input_change_2_listener","_r40","HarphanComponent_form_57_div_5_Template_input_change_2_listener","_r42","ctx_r41","HarphanComponent_form_57_div_42_Template_div_click_3_listener","_r44","ctx_r43","HarphanComponent_form_57_div_42_Template_div_click_6_listener","ctx_r45","HarphanComponent_form_57_div_43_div_1_Template","HarphanComponent_form_57_div_43_div_2_Template","HarphanComponent_form_57_div_45_small_2_Template","HarphanComponent_form_57_div_49_Template_p_autoComplete_completeMethod_2_listener","_r51","HarphanComponent_form_57_div_49_small_3_Template","HarphanComponent_form_57_div_93_Template_input_change_2_listener","_r53","HarphanComponent_form_57_div_94_Template_input_change_2_listener","HarphanComponent_form_57_Template_form_ngSubmit_0_listener","_r57","HarphanComponent_form_57_div_2_Template","HarphanComponent_form_57_div_3_Template","HarphanComponent_form_57_div_4_Template","HarphanComponent_form_57_div_5_Template","HarphanComponent_form_57_small_13_Template","HarphanComponent_form_57_small_21_Template","HarphanComponent_form_57_Template_div_click_35_listener","HarphanComponent_form_57_Template_div_click_38_listener","ctx_r59","HarphanComponent_form_57_div_41_Template","HarphanComponent_form_57_div_42_Template","HarphanComponent_form_57_div_43_Template","HarphanComponent_form_57_div_44_Template","HarphanComponent_form_57_div_45_Template","HarphanComponent_form_57_div_46_Template","HarphanComponent_form_57_div_47_Template","HarphanComponent_form_57_div_48_Template","HarphanComponent_form_57_div_49_Template","HarphanComponent_form_57_Template_p_autoComplete_completeMethod_55_listener","ctx_r60","HarphanComponent_form_57_Template_p_autoComplete_click_55_listener","HarphanComponent_form_57_small_56_Template","HarphanComponent_form_57_Template_p_autoComplete_completeMethod_62_listener","HarphanComponent_form_57_Template_p_autoComplete_click_62_listener","ctx_r63","HarphanComponent_form_57_small_63_Template","HarphanComponent_form_57_Template_p_autoComplete_completeMethod_69_listener","HarphanComponent_form_57_small_70_Template","HarphanComponent_form_57_small_88_Template","HarphanComponent_form_57_div_89_Template","HarphanComponent_form_57_div_90_Template","HarphanComponent_form_57_div_91_Template","HarphanComponent_form_57_div_92_Template","HarphanComponent_form_57_div_93_Template","HarphanComponent_form_57_div_94_Template","item_r65","item_r68","Orphanage_Name","PhoneNumber","Address","SiteURL","cleanUpUrl","HarphanComponent_div_68_tr_24_Template","HarphanComponent_div_68_div_26_Template","Orphanagedata","statedisrticrcityService","OldAgeHome","lat","lng","zoom","markers","showingcontent","showingProfile","getcountry","refresh","loadDefaultData","clearsearch","countrydata","i6","HarphanComponent_Template","HarphanComponent_ng_container_31_Template","HarphanComponent_ng_template_32_Template","HarphanComponent_Template_p_autoComplete_ngModelChange_46_listener","HarphanComponent_Template_p_autoComplete_completeMethod_46_listener","HarphanComponent_Template_p_autoComplete_click_46_listener","HarphanComponent_Template_p_autoComplete_onSelect_46_listener","HarphanComponent_Template_p_autoComplete_ngModelChange_48_listener","HarphanComponent_Template_p_autoComplete_completeMethod_48_listener","HarphanComponent_Template_p_autoComplete_click_48_listener","HarphanComponent_Template_p_autoComplete_onSelect_48_listener","HarphanComponent_Template_p_autoComplete_ngModelChange_50_listener","HarphanComponent_Template_p_autoComplete_completeMethod_50_listener","HarphanComponent_Template_p_autoComplete_onSelect_50_listener","HarphanComponent_Template_p_autoComplete_ngModelChange_52_listener","HarphanComponent_Template_p_autoComplete_completeMethod_52_listener","HarphanComponent_Template_p_autoComplete_onSelect_52_listener","HarphanComponent_Template_button_click_53_listener","HarphanComponent_div_56_Template","HarphanComponent_form_57_Template","HarphanComponent_Template_div_click_59_listener","HarphanComponent_div_65_Template","HarphanComponent_div_67_Template","HarphanComponent_div_68_Template","HomeEightComponent_Template","HomeEightComponent_Template_a_click_13_listener","HomeEightComponent_Template_a_click_15_listener","myStyle","myParams","particles","number","color","shape","HomeElevenComponent_Template","HomeElevenComponent_Template_a_click_14_listener","HomeElevenComponent_Template_a_click_16_listener","HomeFiveComponent_Template","HomeFiveComponent_Template_a_click_15_listener","HomeFiveComponent_Template_a_click_17_listener","HomeFourComponent_Template","HomeFourComponent_Template_a_click_14_listener","HomeFourComponent_Template_a_click_16_listener","HomeNineComponent_Template","HomeNineComponent_Template_a_click_14_listener","HomeNineComponent_Template_a_click_16_listener","HomeOneComponent_Template","HomeSevenComponent_Template","HomeSevenComponent_Template_a_click_15_listener","HomeSevenComponent_Template_a_click_17_listener","HomeSixComponent_Template","HomeSixComponent_Template_a_click_15_listener","HomeSixComponent_Template_a_click_17_listener","HomeTenComponent_Template","HomeTenComponent_Template_a_click_14_listener","HomeTenComponent_Template_a_click_16_listener","HomeThirteenComponent_Template","HomeThirteenComponent_Template_a_click_14_listener","HomeThirteenComponent_Template_a_click_16_listener","HomeThreeComponent_Template","HomeThreeComponent_Template_a_click_16_listener","HomeThreeComponent_Template_a_click_18_listener","HomeTwelveComponent_Template","HomeTwelveComponent_Template_a_click_14_listener","HomeTwelveComponent_Template_a_click_16_listener","HomeTwoComponent_ng_template_2_Template_a_click_16_listener","HomeTwoComponent_ng_template_3_Template_a_click_16_listener","_r6","HomeTwoComponent_ng_template_4_Template_a_click_15_listener","homeSlides","autoHeight","smartSpeed","HomeTwoComponent_Template","HomeTwoComponent_ng_template_2_Template","HomeTwoComponent_ng_template_3_Template","HomeTwoComponent_ng_template_4_Template","HsptAddress","HsptPhNum","POCName","POC_ContactNumber","CityExtraName","filterDepts","filteredDeptList","dept","onDropdownSelect","HsptID","hstid","GetHospitalsfilter","formValues","hptn","stn","sid","dit","ddid","cty","ccid","hspa","pom","pccc","pic","Flag","cancel","addextra","Back","openAddForm","Form","ButtonText","HospitalComponent_Template","HospitalComponent_Template_img_click_76_listener","HospitalComponent_Template_form_ngSubmit_77_listener","HospitalComponent_Template_p_autoComplete_completeMethod_85_listener","HospitalComponent_Template_p_autoComplete_onSelect_85_listener","HospitalComponent_small_86_Template","HospitalComponent_Template_form_ngSubmit_101_listener","HospitalComponent_Template_p_autoComplete_completeMethod_110_listener","HospitalComponent_Template_p_autoComplete_click_110_listener","HospitalComponent_small_111_Template","HospitalComponent_Template_p_autoComplete_completeMethod_117_listener","HospitalComponent_Template_p_autoComplete_click_117_listener","HospitalComponent_small_118_Template","HospitalComponent_Template_p_autoComplete_completeMethod_124_listener","HospitalComponent_small_125_Template","dct","ɵɵclassMap","JoincompainComponent_div_103_Template_a_click_17_listener","JoincompainComponent_div_103_Template_a_click_23_listener","openTwitter","JoincompainComponent_div_103_Template_a_click_29_listener","JoincompainComponent_div_103_Template_a_click_34_listener","twitterShareUrl","finalTwitterUrl","JoincompainComponent_Template","JoincompainComponent_Template_a_click_94_listener","JoincompainComponent_div_103_Template","LoginComponent_div_86_Template_div_click_0_listener","LoginComponent_input_89_Template_input_ngModelChange_0_listener","ctx_r2","LoginComponent_Template","LoginComponent_div_86_Template","LoginComponent_Template_input_ngModelChange_87_listener","LoginComponent_Template_input_input_87_listener","LoginComponent_label_88_Template","LoginComponent_input_89_Template","LoginComponent_Template_button_click_90_listener","LoginComponent_Template_button_click_94_listener","OldagehomeComponent_ng_container_31_Template_div_click_1_listener","OldagehomeComponent_ng_container_31_Template_a_click_5_listener","OldagehomeComponent_ng_container_31_Template_a_click_7_listener","OldagehomeComponent_ng_template_32_Template_p_click_0_listener","OldagehomeComponent_form_57_div_3_Template_input_change_2_listener","OldagehomeComponent_form_57_div_5_Template_input_change_2_listener","OldagehomeComponent_form_57_div_42_Template_div_click_3_listener","OldagehomeComponent_form_57_div_42_Template_div_click_6_listener","OldagehomeComponent_form_57_div_43_div_1_Template","OldagehomeComponent_form_57_div_43_div_2_Template","OldagehomeComponent_form_57_div_45_small_2_Template","OldagehomeComponent_form_57_div_49_Template_p_autoComplete_completeMethod_2_listener","OldagehomeComponent_form_57_div_49_small_3_Template","OldagehomeComponent_form_57_div_94_Template_input_change_2_listener","OldagehomeComponent_form_57_div_95_Template_input_change_2_listener","OldagehomeComponent_form_57_Template_form_ngSubmit_0_listener","OldagehomeComponent_form_57_div_2_Template","OldagehomeComponent_form_57_div_3_Template","OldagehomeComponent_form_57_div_4_Template","OldagehomeComponent_form_57_div_5_Template","OldagehomeComponent_form_57_small_13_Template","OldagehomeComponent_form_57_small_21_Template","OldagehomeComponent_form_57_Template_div_click_35_listener","OldagehomeComponent_form_57_Template_div_click_38_listener","OldagehomeComponent_form_57_div_41_Template","OldagehomeComponent_form_57_div_42_Template","OldagehomeComponent_form_57_div_43_Template","OldagehomeComponent_form_57_div_44_Template","OldagehomeComponent_form_57_div_45_Template","OldagehomeComponent_form_57_div_46_Template","OldagehomeComponent_form_57_div_47_Template","OldagehomeComponent_form_57_div_48_Template","OldagehomeComponent_form_57_div_49_Template","OldagehomeComponent_form_57_Template_p_autoComplete_completeMethod_55_listener","OldagehomeComponent_form_57_Template_p_autoComplete_click_55_listener","OldagehomeComponent_form_57_small_56_Template","OldagehomeComponent_form_57_Template_p_autoComplete_completeMethod_62_listener","OldagehomeComponent_form_57_Template_p_autoComplete_click_62_listener","OldagehomeComponent_form_57_small_63_Template","OldagehomeComponent_form_57_Template_p_autoComplete_completeMethod_69_listener","searchCont21","OldagehomeComponent_form_57_small_70_Template","OldagehomeComponent_form_57_small_88_Template","OldagehomeComponent_form_57_div_89_Template","OldagehomeComponent_form_57_div_90_Template","OldagehomeComponent_form_57_div_92_Template","OldagehomeComponent_form_57_div_93_Template","OldagehomeComponent_form_57_div_94_Template","OldagehomeComponent_form_57_div_95_Template","OldagehomeComponent_div_68_tr_23_a_16_Template","HomeName","OldagehomeComponent_div_68_tr_23_Template","OldagehomeComponent_div_68_div_25_Template","showLoginButton","dropdownOpen","ShowContent","OldagehomeComponent_Template","OldagehomeComponent_ng_container_31_Template","OldagehomeComponent_ng_template_32_Template","OldagehomeComponent_Template_p_autoComplete_ngModelChange_46_listener","OldagehomeComponent_Template_p_autoComplete_completeMethod_46_listener","OldagehomeComponent_Template_p_autoComplete_click_46_listener","OldagehomeComponent_Template_p_autoComplete_onSelect_46_listener","OldagehomeComponent_Template_p_autoComplete_ngModelChange_48_listener","OldagehomeComponent_Template_p_autoComplete_completeMethod_48_listener","OldagehomeComponent_Template_p_autoComplete_click_48_listener","OldagehomeComponent_Template_p_autoComplete_onSelect_48_listener","OldagehomeComponent_Template_p_autoComplete_ngModelChange_50_listener","OldagehomeComponent_Template_p_autoComplete_completeMethod_50_listener","OldagehomeComponent_Template_p_autoComplete_onSelect_50_listener","OldagehomeComponent_Template_p_autoComplete_ngModelChange_52_listener","OldagehomeComponent_Template_p_autoComplete_completeMethod_52_listener","OldagehomeComponent_Template_p_autoComplete_onSelect_52_listener","OldagehomeComponent_Template_button_click_53_listener","OldagehomeComponent_div_56_Template","OldagehomeComponent_form_57_Template","OldagehomeComponent_Template_div_click_59_listener","OldagehomeComponent_div_65_Template","OldagehomeComponent_div_67_Template","OldagehomeComponent_div_68_Template","PrerequisitesComponent_Template","ProfileComponent_div_70_Template_input_change_9_listener","_r22","ProfileComponent_div_71_Template_input_change_9_listener","ProfileComponent_div_115_Template_div_click_3_listener","ProfileComponent_div_115_Template_div_click_6_listener","ProfileComponent_div_116_div_1_Template","ProfileComponent_div_117_div_1_Template","ProfileComponent_div_119_small_2_Template","ProfileComponent_div_121_Template_p_autoComplete_completeMethod_8_listener","_r33","ProfileComponent_div_121_small_9_Template","ProfileComponent_div_172_Template_input_change_2_listener","ProfileComponent_div_173_Template_input_change_2_listener","_r37","ctx_r36","ProfileComponent_Template","ProfileComponent_div_70_Template","ProfileComponent_div_71_Template","ProfileComponent_Template_form_ngSubmit_72_listener","ProfileComponent_small_81_Template","ProfileComponent_small_90_Template","ProfileComponent_Template_div_click_108_listener","ProfileComponent_Template_div_click_111_listener","ProfileComponent_div_114_Template","ProfileComponent_div_115_Template","ProfileComponent_div_116_Template","ProfileComponent_div_117_Template","ProfileComponent_div_118_Template","ProfileComponent_div_119_Template","ProfileComponent_div_120_Template","ProfileComponent_div_121_Template","ProfileComponent_Template_p_autoComplete_completeMethod_128_listener","ProfileComponent_Template_p_autoComplete_click_128_listener","ProfileComponent_small_129_Template","ProfileComponent_Template_p_autoComplete_completeMethod_136_listener","ProfileComponent_Template_p_autoComplete_click_136_listener","ProfileComponent_small_137_Template","ProfileComponent_Template_p_autoComplete_completeMethod_144_listener","ProfileComponent_small_145_Template","ProfileComponent_small_166_Template","ProfileComponent_div_167_Template","ProfileComponent_div_170_Template","ProfileComponent_div_171_Template","ProfileComponent_div_172_Template","ProfileComponent_div_173_Template","RegistrationComponent_Template","RegistrationComponent_small_73_Template","RegistrationComponent_small_81_Template","RegistrationComponent_small_89_Template","RegistrationComponent_small_99_Template","RegistrationComponent_Template_div_click_102_listener","RegistrationComponent_label_105_Template","RegistrationComponent_input_106_Template","RegistrationComponent_small_114_Template","RegistrationComponent_small_122_Template","RegistrationComponent_small_130_Template","RegistrationComponent_small_138_Template","RegistrationComponent_small_146_Template","RegistrationComponent_Template_button_click_150_listener","RequestformComponent_Template","RequestformComponent_Template_form_ngSubmit_76_listener","RequestformComponent_small_85_Template","RequestformComponent_small_94_Template","RequestformComponent_small_106_Template","RequestformComponent_Template_div_click_122_listener","RequestformComponent_Template_div_click_125_listener","RequestformComponent_Template_p_autoComplete_completeMethod_157_listener","RequestformComponent_small_158_Template","RequestformComponent_Template_p_autoComplete_completeMethod_165_listener","RequestformComponent_small_166_Template","RequestformComponent_Template_form_ngSubmit_168_listener","RequestformComponent_Template_p_autoComplete_completeMethod_208_listener","RequestformComponent_Template_p_autoComplete_click_208_listener","RequestformComponent_small_209_Template","RequestformComponent_Template_p_autoComplete_completeMethod_217_listener","RequestformComponent_Template_p_autoComplete_click_217_listener","RequestformComponent_small_218_Template","RequestformComponent_Template_p_autoComplete_completeMethod_226_listener","RequestformComponent_small_227_Template","RequestloginComponent_input_95_Template_input_ngModelChange_0_listener","_r3","RequestloginComponent_Template","RequestloginComponent_Template_input_ngModelChange_93_listener","RequestloginComponent_label_94_Template","RequestloginComponent_input_95_Template","RequestloginComponent_Template_button_click_98_listener","RequestloginComponent_Template_button_click_100_listener","observ","Mode","Audiance","WorkPlace","Venue_name","Contact_name","Contact_number","getvenue","selectedaudi","Venue","searchCont9","deptList9","selectaudi","selectVenue","venue","selectedVenue","RequestpresentationComponent_Query","RequestpresentationComponent_Template_div_click_71_listener","RequestpresentationComponent_Template_div_click_75_listener","RequestpresentationComponent_Template_img_click_76_listener","RequestpresentationComponent_Template_div_click_78_listener","RequestpresentationComponent_Template_img_click_79_listener","RequestpresentationComponent_Template_div_click_81_listener","RequestpresentationComponent_Template_form_ngSubmit_92_listener","RequestpresentationComponent_Template_select_change_101_listener","RequestpresentationComponent_Template_select_change_117_listener","RequestpresentationComponent_Template_p_autoComplete_completeMethod_138_listener","RequestpresentationComponent_Template_p_autoComplete_onSelect_138_listener","RequestpresentationComponent_small_146_Template","RequestpresentationComponent_small_155_Template","RequestpresentationComponent_small_163_Template","RequestpresentationComponent_Template_form_ngSubmit_164_listener","RequestpresentationComponent_Template_p_autoComplete_completeMethod_171_listener","RequestpresentationComponent_Template_p_autoComplete_click_171_listener","RequestpresentationComponent_small_172_Template","RequestpresentationComponent_Template_p_autoComplete_completeMethod_178_listener","RequestpresentationComponent_Template_p_autoComplete_click_178_listener","RequestpresentationComponent_small_179_Template","RequestpresentationComponent_Template_p_autoComplete_completeMethod_185_listener","RequestpresentationComponent_small_186_Template","RequestpresentationComponent_small_205_Template","SearchComponent_tr_77_ng_container_3_Template_i_click_1_listener","toggleMessageVisibility","ɵɵattribute","item_r3","SearchComponent_tr_77_ng_container_3_Template","SearchComponent_tr_77_Template_span_click_5_listener","phonenum","SearchComponent_tr_77_Template_span_click_8_listener","openModal","SearchComponent_li_94_Template_a_click_1_listener","_r14","page_r11","NoDonors","submissionCount","isTitleVisible","ObservationReason","storedFormData","setFormData","getobserv","checkSubmissionCount","DataFilter","applyFilters","DonorFilterData","item","includes","icon","toggle","showMessage","onSelctedpincode","numberdata","mobilenumber","showNote","pageCount","endIndex","hsptName","extractHospitalName","Requestform1","Observation","send_observation","savedSubmissionCount","savedDate","currentDate","toLocaleDateString","parseInt","enable","searchCont41","SearchComponent_Template","SearchComponent_Template_div_click_39_listener","SearchComponent_Template_p_autoComplete_ngModelChange_50_listener","SearchComponent_Template_p_autoComplete_completeMethod_50_listener","SearchComponent_Template_p_autoComplete_click_50_listener","SearchComponent_Template_p_autoComplete_onSelect_50_listener","SearchComponent_Template_p_autoComplete_ngModelChange_52_listener","SearchComponent_Template_p_autoComplete_completeMethod_52_listener","SearchComponent_Template_p_autoComplete_click_52_listener","SearchComponent_Template_p_autoComplete_onSelect_52_listener","SearchComponent_Template_p_autoComplete_ngModelChange_54_listener","SearchComponent_Template_p_autoComplete_completeMethod_54_listener","SearchComponent_Template_p_autoComplete_onSelect_54_listener","SearchComponent_Template_p_autoComplete_ngModelChange_56_listener","SearchComponent_Template_p_autoComplete_completeMethod_56_listener","SearchComponent_Template_p_autoComplete_onSelect_56_listener","SearchComponent_Template_p_autoComplete_ngModelChange_58_listener","SearchComponent_Template_p_autoComplete_completeMethod_58_listener","SearchComponent_Template_p_autoComplete_onSelect_58_listener","SearchComponent_Template_button_click_60_listener","SearchComponent_Template_img_click_63_listener","SearchComponent_tr_77_Template","SearchComponent_Template_a_click_87_listener","SearchComponent_Template_a_click_91_listener","SearchComponent_li_94_Template","SearchComponent_Template_a_click_96_listener","SearchComponent_Template_a_click_100_listener","SearchComponent_Template_form_ngSubmit_132_listener","SearchComponent_small_147_Template","SearchComponent_Template_p_autoComplete_completeMethod_153_listener","ShareyourservicesComponent_ng_container_15_Template_a_click_8_listener","ShareyourservicesComponent_ng_template_16_Template_div_click_1_listener","_r23","ShareyourservicesComponent_input_40_Template_input_ngModelChange_0_listener","ShareyourservicesComponent_ng_container_146_Template_a_click_8_listener","_r27","ShareyourservicesComponent_ng_template_147_Template_div_click_1_listener","_r29","ShareyourservicesComponent_input_171_Template_input_ngModelChange_0_listener","ShareyourservicesComponent_Template","ShareyourservicesComponent_ng_container_15_Template","ShareyourservicesComponent_ng_template_16_Template","ShareyourservicesComponent_Template_button_click_25_listener","ShareyourservicesComponent_Template_input_ngModelChange_38_listener","ShareyourservicesComponent_label_39_Template","ShareyourservicesComponent_input_40_Template","ShareyourservicesComponent_Template_button_click_42_listener","ShareyourservicesComponent_Template_button_click_46_listener","ShareyourservicesComponent_Template_form_ngSubmit_59_listener","ShareyourservicesComponent_Template_p_autoComplete_completeMethod_66_listener","ShareyourservicesComponent_small_67_Template","ShareyourservicesComponent_Template_input_change_75_listener","ShareyourservicesComponent_Template_form_ngSubmit_87_listener","ShareyourservicesComponent_Template_p_autoComplete_completeMethod_95_listener","ShareyourservicesComponent_Template_p_autoComplete_click_95_listener","ShareyourservicesComponent_small_96_Template","ShareyourservicesComponent_Template_p_autoComplete_completeMethod_103_listener","ShareyourservicesComponent_Template_p_autoComplete_click_103_listener","ShareyourservicesComponent_small_104_Template","ShareyourservicesComponent_Template_p_autoComplete_completeMethod_111_listener","ShareyourservicesComponent_small_112_Template","ShareyourservicesComponent_ng_container_146_Template","ShareyourservicesComponent_ng_template_147_Template","ShareyourservicesComponent_Template_button_click_156_listener","ShareyourservicesComponent_Template_input_ngModelChange_169_listener","ShareyourservicesComponent_label_170_Template","ShareyourservicesComponent_input_171_Template","ShareyourservicesComponent_Template_button_click_173_listener","ShareyourservicesComponent_Template_button_click_177_listener","ShareyourservicesComponent_Template_form_ngSubmit_190_listener","ShareyourservicesComponent_Template_p_autoComplete_completeMethod_197_listener","ShareyourservicesComponent_small_198_Template","ShareyourservicesComponent_Template_input_change_206_listener","ShareyourservicesComponent_Template_form_ngSubmit_218_listener","ShareyourservicesComponent_Template_p_autoComplete_completeMethod_226_listener","ShareyourservicesComponent_Template_p_autoComplete_click_226_listener","ShareyourservicesComponent_small_227_Template","ShareyourservicesComponent_Template_p_autoComplete_completeMethod_234_listener","ShareyourservicesComponent_Template_p_autoComplete_click_234_listener","ShareyourservicesComponent_small_235_Template","ShareyourservicesComponent_Template_p_autoComplete_completeMethod_242_listener","ShareyourservicesComponent_small_243_Template","StickbrochureComponent_div_84_Template_p_autoComplete_completeMethod_19_listener","StickbrochureComponent_div_84_Template_p_autoComplete_onSelect_19_listener","StickbrochureComponent_div_84_small_22_Template","StickbrochureComponent_div_84_Template_p_autoComplete_ngModelChange_26_listener","StickbrochureComponent_div_84_Template_p_autoComplete_completeMethod_26_listener","StickbrochureComponent_div_84_Template_p_autoComplete_click_26_listener","StickbrochureComponent_div_84_Template_p_autoComplete_onSelect_26_listener","StickbrochureComponent_div_84_Template_p_autoComplete_ngModelChange_30_listener","StickbrochureComponent_div_84_Template_p_autoComplete_completeMethod_30_listener","StickbrochureComponent_div_84_Template_p_autoComplete_click_30_listener","StickbrochureComponent_div_84_Template_p_autoComplete_onSelect_30_listener","StickbrochureComponent_div_84_Template_p_autoComplete_ngModelChange_34_listener","StickbrochureComponent_div_84_Template_p_autoComplete_completeMethod_34_listener","StickbrochureComponent_div_84_Template_p_autoComplete_onSelect_34_listener","StickbrochureComponent_div_84_Template_input_keydown_enter_42_listener","StickbrochureComponent_div_84_Template_button_click_52_listener","StickbrochureComponent_div_84_Template_button_click_55_listener","Place_name","StickbrochureComponent_div_85_Template_a_click_17_listener","StickbrochureComponent_div_85_Template_a_click_23_listener","StickbrochureComponent_div_85_Template_a_click_29_listener","StickbrochureComponent_div_85_Template_a_click_34_listener","Place","StickbrochureComponent_Template","StickbrochureComponent_Template_div_click_71_listener","StickbrochureComponent_Template_div_click_75_listener","StickbrochureComponent_Template_img_click_76_listener","StickbrochureComponent_Template_div_click_78_listener","StickbrochureComponent_Template_img_click_79_listener","StickbrochureComponent_Template_div_click_81_listener","StickbrochureComponent_Template_a_click_82_listener","StickbrochureComponent_div_84_Template","StickbrochureComponent_div_85_Template","presentaiondet","customer","staticinfo","data2","Getpincode","TermsAndConditionsComponent_Template","TermsAndConditionsComponent_Template_form_ngSubmit_79_listener","TermsAndConditionsComponent_Template_select_change_90_listener","TermsAndConditionsComponent_Template_select_change_103_listener","TermsAndConditionsComponent_Template_p_autoComplete_completeMethod_122_listener","TermsAndConditionsComponent_Template_p_autoComplete_onSelect_122_listener","TermsAndConditionsComponent_small_130_Template","TermsAndConditionsComponent_small_139_Template","TermsAndConditionsComponent_small_147_Template","TermsAndConditionsComponent_Template_form_ngSubmit_148_listener","TermsAndConditionsComponent_Template_p_autoComplete_completeMethod_155_listener","TermsAndConditionsComponent_Template_p_autoComplete_click_155_listener","TermsAndConditionsComponent_small_156_Template","TermsAndConditionsComponent_Template_p_autoComplete_completeMethod_162_listener","TermsAndConditionsComponent_Template_p_autoComplete_click_162_listener","TermsAndConditionsComponent_small_163_Template","TermsAndConditionsComponent_Template_p_autoComplete_completeMethod_169_listener","TermsAndConditionsComponent_small_170_Template","TermsAndConditionsComponent_small_189_Template","VolunteerloginComponent_div_86_Template_div_click_0_listener","VolunteerloginComponent_input_89_Template_input_ngModelChange_0_listener","VolunteerloginComponent_Template","VolunteerloginComponent_div_86_Template","VolunteerloginComponent_Template_input_ngModelChange_87_listener","VolunteerloginComponent_Template_input_input_87_listener","VolunteerloginComponent_label_88_Template","VolunteerloginComponent_input_89_Template","VolunteerloginComponent_Template_button_click_90_listener","VolunteerloginComponent_Template_button_click_94_listener","VolunteerprofileComponent_div_72_Template_input_change_9_listener","VolunteerprofileComponent_div_75_Template_input_change_9_listener","VolunteerprofileComponent_div_117_Template_div_click_3_listener","VolunteerprofileComponent_div_117_Template_div_click_6_listener","VolunteerprofileComponent_div_118_div_1_Template","VolunteerprofileComponent_div_118_div_2_Template","VolunteerprofileComponent_div_120_small_2_Template","VolunteerprofileComponent_div_122_Template_p_autoComplete_completeMethod_8_listener","VolunteerprofileComponent_div_122_small_9_Template","VolunteerprofileComponent_div_172_Template_input_change_2_listener","VolunteerprofileComponent_div_174_Template_input_change_2_listener","roleId","VolunteerprofileComponent_Template","VolunteerprofileComponent_Template_form_ngSubmit_70_listener","VolunteerprofileComponent_div_72_Template","VolunteerprofileComponent_div_75_Template","VolunteerprofileComponent_small_83_Template","VolunteerprofileComponent_small_92_Template","VolunteerprofileComponent_Template_div_click_110_listener","VolunteerprofileComponent_Template_div_click_113_listener","VolunteerprofileComponent_div_116_Template","VolunteerprofileComponent_div_117_Template","VolunteerprofileComponent_div_118_Template","VolunteerprofileComponent_div_119_Template","VolunteerprofileComponent_div_120_Template","VolunteerprofileComponent_div_121_Template","VolunteerprofileComponent_div_122_Template","VolunteerprofileComponent_Template_p_autoComplete_completeMethod_129_listener","VolunteerprofileComponent_Template_p_autoComplete_click_129_listener","VolunteerprofileComponent_small_130_Template","VolunteerprofileComponent_Template_p_autoComplete_completeMethod_137_listener","VolunteerprofileComponent_Template_p_autoComplete_click_137_listener","VolunteerprofileComponent_small_138_Template","VolunteerprofileComponent_Template_p_autoComplete_completeMethod_145_listener","VolunteerprofileComponent_small_146_Template","VolunteerprofileComponent_small_167_Template","VolunteerprofileComponent_div_168_Template","VolunteerprofileComponent_div_171_Template","VolunteerprofileComponent_div_172_Template","VolunteerprofileComponent_div_173_Template","VolunteerprofileComponent_div_174_Template","VolunterComponent_div_95_Template_a_click_17_listener","VolunterComponent_div_95_Template_a_click_23_listener","VolunterComponent_div_95_Template_a_click_29_listener","VolunterComponent_div_95_Template_a_click_34_listener","VolunterComponent_Template","VolunterComponent_div_95_Template","BehaviorSubject","prodData","client","clientData","asObservable","categoryIDarr","productArr","HomeURL","getClientData","next","getCategoryid","setCategoryid","clearCategoryid","GetProducts","setProducts","html","ShowAlert1","urlname","PostParam","post","PostData2","PostParam2","environment","production","enableProdMode","__NgCli_bootstrap_1","platformBrowser","bootstrapModule"],"sourceRoot":"webpack:///","x_google_ignoreList":[]}