!function(){"use strict";angular.module("sims",["pdf","ngRoute","ui.router","ngCookies","gettext","config","sims.module.core","sims.module.users","sims.module.main","sims.module.dashboard","sims.module.circular","sims.module.student","sims.module.teacher","sims.module.transport","sims.module.parent","sims.module.attendance","sims.module.medical","sims.module.fees","sims.module.calendar","sims.module.incidence","sims.module.agenda","sims.module.handbook","sims.module.gallery","sims.module.reportcard","sims.module.uploadimages","sims.module.lms","sims.module.library","sims.module.sms","sims.module.email","sims.module.suggestion","sims.module.timetable","sims.module.test","sims.module.assignment","sims.module.SJSRptG11Sci","sims.module.SJSRptG1G8","sims.module.SJSrptG12Com","sims.module.MISG1to12","sims.module.sjspp","sims.module.rptSmmEyfs","sims.module.rptSmmPri","sims.module.smmpp","sims.module.rptSnisG1G8","sims.module.rptSnisG9G10","sims.module.news","sims.module.leave","sims.module.fileupload","sims.module.certificate","sims.module.demo","sims.module.reportCardNew","sims.module.documentUpload","sims.module.documentUpload","sims.module.alert","sims.module.social"]).config(["$httpProvider",function(e){e.interceptors.push(function(){return{request:function(e){return e.url&&e.url.endsWith(".html")&&(e.headers.Accept="text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",console.log(e)),e}}})}])}(),function(){"use strict";angular.module("sims").config(["$stateProvider","$urlRouterProvider","$locationProvider",function(e,t,a){var s={login:{url:"/login",templateUrl:"app/modules/users/views/login.html",controller:"LoginController",isAdded:!0},main:{url:"/main",templateUrl:"app/modules/main/views/main.html",controller:"MainController",isAdded:!0},"main.dashboard":{url:"/dashboard",templateUrl:"app/modules/dashboard/views/dashboard.html",controller:"DashboardController",isAdded:!0}};window.stateSimsProvider=e,window.stateSimsObj=s,e.state("login",{url:"/login",templateUrl:"app/modules/users/views/login.html",controller:"LoginController"}).state("main",{url:"/main",templateUrl:"app/modules/main/views/main.html",controller:"MainController"}).state("main.dashboard",{url:"/dashboard",templateUrl:"app/modules/dashboard/views/dashboard.html",controller:"DashboardController"}).state("main.PC727",{url:"/schoolPolicies",templateUrl:"app/modules/test/views/schoolPolicies.html",controller:"schoolPoliciesController"}).state("main.pp070",{url:"/Gradebook",templateUrl:"app/modules/Gradebook/views/Gradebook.html",controller:"GradebookCont"}).state("main.PP071",{url:"/GradebookNew",templateUrl:"app/modules/Gradebook/views/GradebookNew.html",controller:"GradebookNewCont"}).state("main.PP090",{url:"/CentralRepository",templateUrl:"app/modules/circular/views/CentralRepository.html",controller:"CentralRepositoryController",params:{flag:!1}}).state("main.PP015",{url:"/circulars",templateUrl:"app/modules/circular/views/circularOld.html",controller:"CircularController",params:{flag:!1}}).state("main.PP015N",{url:"/Consent",templateUrl:"app/modules/circular/views/consent.html",controller:"consentController",params:{flag:!1}}).state("main.PP032",{url:"/leave",templateUrl:"app/modules/leave/views/leave.html",controller:"LeaveController"}).state("main.PP043",{url:"/leave_ihs",templateUrl:"app/modules/leave/views/leave_ihs.html",controller:"Leave_ihsController"}).state("main.PP042",{url:"/Exam",templateUrl:"app/modules/exam/views/Exam.html",controller:"ExamController"}).state("main.PP0421",{url:"/ExamHallTicket",templateUrl:"app/modules/exam/views/ExamHallTicket.html",controller:"ExamHallTicketController"}).state("main.PP0409",{url:"/ExamHallTicketVMS",templateUrl:"app/modules/exam/views/ExamHallTicketVMS.html",controller:"ExamHallTicketVMSController"}).state("main.PP049",{url:"/ExamNew",templateUrl:"app/modules/exam/views/ExamNew.html",controller:"ExamNewController"}).state("main.PP056",{url:"/Photocopy",templateUrl:"app/modules/exam/views/Photocopy.html",controller:"PhotocopyController"}).state("main.PP057",{url:"/Revaluation",templateUrl:"app/modules/exam/views/Revaluation.html",controller:"RevaluationController"}).state("main.PP058",{url:"/Improvement",templateUrl:"app/modules/exam/views/Improvement.html",controller:"ImprovementController"}).state("main.PP442",{url:"/ExamNS",templateUrl:"app/modules/exam/views/Exam_Nacs.html",controller:"ExamController_Nacs"}).state("main.PP443",{url:"/ExmCmb",templateUrl:"app/modules/exam/views/Exam_Combine.html",controller:"ExamController_Combine"}).state("main.PP012",{url:"/news",templateUrl:"app/modules/news/views/news.html",controller:"NewsController"}).state("main.PP909",{url:"/news_classwise",templateUrl:"app/modules/news/views/news_classwise.html",controller:"NewsController_classwise"}).state("main.PP001",{url:"/student",templateUrl:"app/modules/student/views/student.html",controller:"StudentController"}).state("main.PP111",{url:"/studentIHS",templateUrl:"app/modules/student/views/studentIHS.html",controller:"StudentIHSController"}).state("main.PP100",{url:"/gr11admission",templateUrl:"app/modules/student/views/gr11Admission.html",controller:"gr11AdmissionController"}).state("main.PPGR11",{url:"/grselctionis",templateUrl:"app/modules/student/views/grade11selectionis.html",controller:"grade11selectioniscont"}).state("main.PP101",{url:"/gr11progress",templateUrl:"app/modules/student/views/gr11progress.html",controller:"gr11progressController"}).state("main.mojo",{url:"/mojo",templateUrl:"app/modules/student/views/mojo.html",controller:"MojoController"}).state("main.kyc",{url:"/kyc",templateUrl:"app/modules/student/views/kyc.html",controller:"Kyc_Controller"}).state("main.PP0SSD",{url:"/StudentSubject",templateUrl:"app/modules/student/views/StudentSubject.html",controller:"StudentSubjectController"}).state("main.PPP01",{url:"/studentNew",templateUrl:"app/modules/student/views/studentNew.html",controller:"StudentControllerNew"}).state("main.PPP02",{url:"/studentCollege",templateUrl:"app/modules/student/views/studentCollege.html",controller:"StudentCollegeController"}).state("main.INVPPN",{url:"/InvoiceReceiveable",templateUrl:"app/modules/student/views/InvoiceReceiveable.html",controller:"InvoiceReceiveableCont"}).state("main.PP006",{url:"/teacher",templateUrl:"app/modules/teacher/views/teacher.html",controller:"TeacherController"}).state("main.hyplog",{url:"/hyperlinkLogo",templateUrl:"app/modules/hyperlinks/views/Hyperlinkslogo.html",controller:"HyperlinkslogoCont"}).state("main.PPP006",{url:"/communication",templateUrl:"app/modules/teacher/views/communication.html",controller:"communicationController"}).state("main.PP016",{url:"/communication",templateUrl:"app/modules/teacher/views/communication.html",controller:"communicationController"}).state("main.PP011",{url:"/transport",templateUrl:"app/modules/transport/views/transport.html",controller:"TransportController"}).state("main.PP039",{url:"/transportReport",templateUrl:"app/modules/transport/views/transportReport.html",controller:"transportReportController",params:{flag:"SIMR115"}}).state("main.PP040",{url:"/leaveReport",templateUrl:"app/modules/transport/views/transportReport.html",controller:"transportReportController",params:{flag:"SIMR114"}}).state("main.PP019",{url:"/parent",templateUrl:"app/modules/parent/views/parent.html",controller:"ParentController",params:{app_code:{}}}).state("main.traihs",{url:"/transportIHS",templateUrl:"app/modules/transport/views/TransportIHS.html",controller:"TransportIHSController",params:{app_code:{}}}).state("main.stdidc",{url:"/studentidcard",templateUrl:"app/modules/studentid/views/studentid.html",controller:"StudentControllerId",params:{student_status:{}}}).state("main.PP002",{url:"/attendance",templateUrl:"app/modules/test/views/test.html",controller:"TestController"}).state("main.PP0021",{url:"/attendanceTime",templateUrl:"app/modules/test/views/attendanceWithTime.html",controller:"AttendanceWithTimeController"}).state("main.PP045",{url:"/testslip",templateUrl:"app/modules/test/views/exitSlip.html",controller:"ExitSlipController"}).state("main.PP009",{url:"/medical",templateUrl:"app/modules/medical/views/medical.html",controller:"MedicalController",params:{flag:!1}}).state("main.cosen",{url:"/medicalConsent",templateUrl:"app/modules/medical/views/MedicalConsentPPN.html",controller:"MedicalConsentPPNCont"}).state("main.fees1",{url:"/fees1",templateUrl:"app/modules/fees/views/fees2.html",controller:"Fee2Controller"}).state("main.feeiis",{url:"/feesIis",templateUrl:"app/modules/fees/views/feesIis.html",controller:"FeeIisController"}).state("main.feeiin",{url:"/feesIisNew",templateUrl:"app/modules/fees/views/feesiisnew.html",controller:"FeeIisNewController"}).state("main.feerag",{url:"/feesRakaag",templateUrl:"app/modules/fees/views/feesRakaag.html",controller:"FeesRakaagController"}).state("main.feeDvp",{url:"/feeDvps",templateUrl:"app/modules/fees/views/feesDvps.html",controller:"FeeDvpsController"}).state("main.feechr",{url:"/feechrist",templateUrl:"app/modules/fees/views/feeschrist.html",controller:"FeechristController"}).state("main.fechnw",{url:"/feechristNew",templateUrl:"app/modules/fees/views/feeschristNew.html",controller:"FeechristControllerNew"}).state("main.feeExm",{url:"/feesExamchrist",templateUrl:"app/modules/fees/views/feesExamchrist.html",controller:"FeeExamchristController"}).state("main.assmar",{url:"/assignmentmark",templateUrl:"app/modules/attendance/views/AssignmentMarksheet.html",controller:"AssignmentMarksController"}).state("main.asssai",{url:"/assignmentmarksaisd_new",templateUrl:"app/modules/attendance/views/AssignmentMarksheetSaisd.html",controller:"AssignmentMarksSaisdController"}).state("main.coass",{url:"/coassignmentmark",templateUrl:"app/modules/attendance/views/CoAssignmentMarksheet.html",controller:"CoAssignmentMarksheetController"}).state("main.feeAsd",{url:"/feesAsd",templateUrl:"app/modules/fees/views/feesAsd.html",controller:"FeeAsdController"}).state("main.feePea",{url:"/feesPea",templateUrl:"app/modules/fees/views/feesPearl.html",controller:"FeePearlController"}).state("main.feeSvs",{url:"/feesSvs",templateUrl:"app/modules/fees/views/feesSvs.html",controller:"FeesvsController"}).state("main.feeDis",{url:"/feesDis",templateUrl:"app/modules/fees/views/feesdisley.html",controller:"FeedisleyController"}).state("main.feeDpa",{url:"/feespayDis",templateUrl:"app/modules/fees/views/feepaymentsdisley.html",controller:"FeepaymentdisleyController"}).state("main.feeVis",{url:"/feeVis",templateUrl:"app/modules/fees/views/feesVision.html",controller:"feesVisionController"}).state("main.feAhis",{url:"/feeAhis",templateUrl:"app/modules/fees/views/feesAhis.html",controller:"FeeAhisController"}).state("main.feesok",{url:"/feesok",templateUrl:"app/modules/fees/views/feesSok.html",controller:"FeeSokController"}).state("main.feLeam",{url:"/feeLeams",templateUrl:"app/modules/fees/views/feesLeams.html",controller:"FeeLeamsController"}).state("main.FeIISq",{url:"/FeIISq",templateUrl:"app/modules/fees/views/feesIIsqatar.html",controller:"FeeIIsqatarController"}).state("main.feLNew",{url:"/feeLeamsNew",templateUrl:"app/modules/fees/views/feesLeamsnew.html",controller:"FeeLeamsnewController"}).state("main.feIhsO",{url:"/feeIhsonline",templateUrl:"app/modules/fees/views/feesIhsonline.html",controller:"FeeIhsonlineController"}).state("main.feIhsG",{url:"/feeIhsonlinenew",templateUrl:"app/modules/fees/views/feesIhsonlinenew.html",controller:"FeeIhsonlineControllernew"}).state("main.fecli",{url:"/feeclarion",templateUrl:"app/modules/fees/views/feeclarion.html",controller:"FeeclarionController"}).state("main.feseps",{url:"/feeSeps",templateUrl:"app/modules/fees/views/feesSeps.html",controller:"FeeSepsController"}).state("main.feeiat",{url:"/feeiat",templateUrl:"app/modules/fees/views/feesIAT.html",controller:"FeeIATController"}).state("main.CanTnn",{url:"/CanteenSetup",templateUrl:"app/modules/calendar/views/CanteenSetup.html",controller:"CanteenSetupController"}).state("main.fetsis",{url:"/feeschool",templateUrl:"app/modules/fees/views/feestsis.html",controller:"FeetsisController"}).state("main.feemod",{url:"/feeModrNew",templateUrl:"app/modules/fees/views/feesModernNew.html",controller:"FeeModernNewController"}).state("main.feemjr",{url:"/feeModrJr",templateUrl:"app/modules/fees/views/feesModernJr.html",controller:"FeeModernJrController"}).state("main.PP008",{url:"/fees",templateUrl:"app/modules/fees/views/fees.html",controller:"FeeController"}).state("main.PP013N",{url:"/calendar",templateUrl:"app/modules/calendar/views/calendar.html",controller:"CalendarController"}).state("main.daily",{url:"/daily",templateUrl:"app/modules/calendar/views/dailyReport.html",controller:"dailyReportController"}).state("main.AcdCal",{url:"/AcademicCalender",templateUrl:"app/modules/calendar/views/AcademicCalendar.html",controller:"AcademicCalendarController"}).state("main.PP025",{url:"/incidence",templateUrl:"app/modules/incidence/views/incidence.html",controller:"IncidenceController"}).state("main.welben",{url:"/StudentWellBeingCont",templateUrl:"app/modules/incidence/views/StudentWellBeing.html",controller:"StudentWellBeingCont"}).state("main.incwel",{url:"/InclusionParent",templateUrl:"app/modules/incidence/views/InclusionParent.html",controller:"InclusionParentCont"}).state("main.incpar",{url:"/InclusionParent",templateUrl:"app/modules/incidence/views/InclusionParent.html",controller:"InclusionParentCont"}).state("main.inpcrm",{url:"/HappyToHelp",templateUrl:"app/modules/incidence/views/InclusionParentCRM.html",controller:"InclusionParentCRMCont"}).state("main.vireq",{url:"/ViewRequisition",templateUrl:"app/modules/incidence/views/ViewRequisition.html",controller:"ViewRequisitionCont"}).state("main.PP030",{url:"/agenda",templateUrl:"app/modules/agenda/views/agenda.html",controller:"AgendaController",params:{flag:!1}}).state("main.PP036",{url:"/WeeklyAssessmentShow",templateUrl:"app/modules/agenda/views/WeeklyAssessmentShow.html",controller:"WeeklyAssessmentShowCont",params:{flag:!1}}).state("main.PP037",{url:"/materialView",templateUrl:"app/modules/agenda/views/ExamMaterialView.html",controller:"ExamMaterialViewCont",params:{flag:!1}}).state("main.PP018",{url:"/handbook",templateUrl:"app/modules/handbook/views/handbook.html",controller:"HandbookController"}).state("main.PP035",{url:"/LearnArabic",templateUrl:"app/modules/handbook/views/LearnArabic.html",controller:"LearnArabicCont"}).state("main.galary",{url:"/gallery",templateUrl:"app/modules/gallery/views/gallery.html",controller:"GalleryController"}).state("main.PP014",{url:"/gallerynew",templateUrl:"app/modules/gallery/views/albumView.html",controller:"AlbumViewController"}).state("main.PP0BAS",{url:"/BadgeView",templateUrl:"app/modules/gallery/views/BadgeView.html",controller:"BadgeViewCont"}).state("main.reportCardNew",{url:"/reportcard",templateUrl:"app/modules/reportcard/views/reportcard.html",controller:"ReportCardController"}).state("main.PP020",{url:"/uploadimages",templateUrl:"app/modules/uploadimages/views/uploadimages.html",controller:"UploadImageController"}).state("main.feemdp",{url:"/feeModrpg",templateUrl:"app/modules/fees/views/feesModern.html",controller:"FeeModernControllerPG"}).state("main.PP027",{url:"/lms",templateUrl:"app/modules/lms/views/lms.html",controller:"LMSController"}).state("main.PPLMS",{url:"/lms1",templateUrl:"app/modules/lms/views/lms1.html",controller:"LMS1Controller"}).state("main.PPLMS1",{url:"/lms2",templateUrl:"app/modules/lms/views/lms2.html",controller:"LMS2Controller"}).state("main.paRef",{url:"/parentRef",templateUrl:"app/modules/lms/views/ParentRef.html",controller:"ParentRefController"}).state("main.paRefN",{url:"/parentRefN",templateUrl:"app/modules/lms/views/ParentRefNew.html",controller:"ParentRefNewController"}).state("main.paAsd",{url:"/parentAsd",templateUrl:"app/modules/lms/views/ParentAsd.html",controller:"ParentAsdController"}).state("main.haRpt",{url:"/healthReport",templateUrl:"app/modules/medical/views/HealthReport.html",controller:"HealthReportController"}).state("main.trk001",{url:"/bus_track",templateUrl:"app/modules/lms/views/BusTrack.html",controller:"BusTrackController"}).state("main.ttasd",{url:"/timetableAsd",templateUrl:"app/modules/timetable/views/TimeTableClassView.html",controller:"TimeTableClassViewCont"}).state("main.PP028",{url:"/library",templateUrl:"app/modules/library/views/library.html",controller:"LibraryController",params:{flag:!1}}).state("main.Ucw009",{url:"/email",templateUrl:"app/modules/email/views/email.html",controller:"EmailController"}).state("main.Ucw020",{url:"/sms",templateUrl:"app/modules/sms/views/sms.html",controller:"SmsController"}).state("main.Ucw239",{url:"/suggestion",templateUrl:"app/modules/suggestion/views/suggestion.html",controller:"SuggestionController"}).state("main.PP029",{url:"/timetable",templateUrl:"app/modules/timetable/views/timetable.html",controller:"TimetableController"}).state("main.tbleas",{url:"/timetable_asis",templateUrl:"app/modules/timetable/views/timetable_new.html",controller:"TimetableController_new"}).state("main.test",{url:"/test",templateUrl:"app/modules/test/views/test.html",controller:"TestController"}).state("main.PP004",{url:"/assignment",templateUrl:"app/modules/assignment/views/assignment.html",controller:"AssignmentController",params:{flag:!1}}).state("main.upload",{url:"/upload",templateUrl:"app/modules/fileUpload/views/fileupload.html",controller:"FileuploadController"}).state("main.PP003",{url:"/demo",templateUrl:"app/modules/demo/views/demo.html",controller:"DemoController"}).state("main.PP00003",{url:"/reportCard11",templateUrl:"app/modules/reportCardNew/views/reportCardNew.html",controller:"reportCardNewController"}).state("main.PP0333",{url:"/reportCard_Leams",templateUrl:"app/modules/reportCardNew/views/reportCardNew_Skill.html",controller:"reportCardNewController_Skill"}).state("main.PP333",{url:"/reportCard_Leams_n",templateUrl:"app/modules/reportCardNew/views/reportCardNew_SkillNew1.html",controller:"reportCardNewController_SkillNew1"}).state("main.REPPER",{url:"/ReportCardPerformance",templateUrl:"app/modules/reportCardNew/views/ReportCardPerformance.html",controller:"ReportCardPerformanceCont"}).state("main.PP334",{url:"/reportCard_Leams_n_V2",templateUrl:"app/modules/reportCardNew/views/reportCardNew_SkillNew1_V2.html",controller:"reportCardNewController_SkillNew1_V2"}).state("main.PP3333",{url:"/reportCard_IISQ",templateUrl:"app/modules/reportCardNew/views/reportCard_SkillfeeModrNew.html",controller:"reportCardController_SkillNew"}).state("main.PP0334",{url:"/ReportCardViewNew",templateUrl:"app/modules/reportCardNew/views/reportCardNew_Skill_New.html",controller:"reportCardNewController_Skill_New"}).state("main.PP0335",{url:"/ReportCardViewDownload",templateUrl:"app/modules/reportCardNew/views/reportCardNew_View_Download.html",controller:"reportCardNewController_View_Download"}).state("main.confirmationReport",{url:"/confirmationReport",templateUrl:"app/modules/reportCardNew/views/confirmationReport.html",controller:"confirmationReportController"}).state("main.PP0031",{url:"/reportCardsmm",templateUrl:"app/modules/reportCardNew/views/reportCardSmmNew.html",controller:"reportCardSmmController"}).state("main.Sportr",{url:"/SportsEvaluationReport",templateUrl:"app/modules/reportCardNew/views/ReportSportsEvaluation.html",controller:"ReportSportsEvaluationController"}).state("main.feeCla",{url:"/feeclara",templateUrl:"app/modules/fees/views/feesclara.html",controller:"FeeClaraController"}).state("main.ReportCardParameter",{url:"/ReportCardParameter",templateUrl:"app/modules/reportCardNew/views/ReportCardParameter.html",controller:"ReportCardParameterCont"}).state("main.alert",{url:"/alert",templateUrl:"app/modules/alert/views/alert.html",controller:"alertController"}).state("main.alerts",{url:"/alert",templateUrl:"app/modules/alert/views/alert.html",controller:"alertController"}).state("main.Feerim",{url:"/Feerim",templateUrl:"app/modules/alert/views/FeeReminder.html",controller:"FeeReminderController"}).state("main.certificate",{url:"/certificate",templateUrl:"app/modules/certificate/views/certificate.html",controller:"CertificateController"}).state("main.PP033",{url:"/tcertificate",templateUrl:"app/modules/TCCertificate/views/TCCertificate.html",controller:"TCCertificateController"}).state("main.tcLeam",{url:"/tcertificateLeams",templateUrl:"app/modules/TCCertificate/views/TCCertificateLeams.html",controller:"TCCertificateLeamsController"}).state("main.tcihso",{url:"/TCCertificateNew",templateUrl:"app/modules/TCCertificate/views/TCCertificateIhso.html",controller:"TCCertificateIhsoController"}).state("main.tcertificateper",{url:"/tcertificateper",templateUrl:"app/modules/TCCertificate/views/TCApplicationPearl.html",controller:"TCApplicationPearlCont"}).state("main.tcertificateadis",{url:"/tcertificateadis",templateUrl:"app/modules/TCCertificate/views/TCApplication_Adis.html",controller:"TCApplication_AdisCont"}).state("main.3",{url:"/online",templateUrl:"app/modules/lms/views/onlineAdmission.html",controller:"OnlineAdmissionController"}).state("main.feCesc",{url:"/feeCesc",templateUrl:"app/modules/fees/views/feesCesc.html",controller:"FeeCescController"}).state("main.feVMs",{url:"/feeVMs",templateUrl:"app/modules/fees/views/feesVMIIHE.html",controller:"FeeVMIIHEController"}).state("main.PP0321",{url:"/documentUploadNew",templateUrl:"app/modules/documentUpload/views/documentUploadAdis.html",controller:"documentUploadAdisController"}).state("main.PP0322",{url:"/documentUpload",templateUrl:"app/modules/documentUpload/views/documentUpload.html",controller:"documentUploadController"}).state("main.PP0323",{url:"/documentUploadcorv",templateUrl:"app/modules/documentUpload/views/documentUploadCorv.html",controller:"documentUploadCorvController"}).state("main.rptcrd",{url:"/reportCardAdiswnew",templateUrl:"app/modules/reportCardAdisw/views/reportCardAdisw.html",controller:"reportCardAdiswController"}).state("main.survy",{url:"/Survey",templateUrl:"app/modules/suggestion/views/Survey.html",controller:"SurveyCont"}).state("main.PP038",{url:"/SurveySelection",templateUrl:"app/modules/suggestion/views/SurveySelection.html",controller:"SurveySelectionCont"}).state("main.SrSeNe",{url:"/SurveySelectionNew",templateUrl:"app/modules/suggestion/views/SurveySelectionNew.html",controller:"SurveySelectionNewCont"}).state("main.SrSeTR",{url:"/SurveySelectionNewTeacher",templateUrl:"app/modules/suggestion/views/SurveySelectionNewTeacher.html",controller:"SurveySelectionNewTeacherCont"}).state("main.FeeParent",{url:"/FeeDetailsParent",templateUrl:"app/modules/fees/views/FeeTransactionDetailsParent.html",controller:"FeeTransactionDetailsCont"}).state("main.FeePdmc",{url:"/FeeDetailsParent_dmc",templateUrl:"app/modules/fees/views/FeeTransactionDetailsParent_dmc.html",controller:"FeeTransactionDetailsCont_dmc"}).state("main.PP034",{url:"/ViewExamPaper",templateUrl:"app/modules/agenda/views/ViewExamPaper.html",controller:"ViewExamPaperCont"}).state("main.viwexa",{url:"/ViewExamPaper",templateUrl:"app/modules/agenda/views/ViewExamPaper.html",controller:"ViewExamPaperCont"}).state("main.PP005",{url:"/syllabus",templateUrl:"app/modules/syllabus/views/SyllabusView.html",controller:"SyllabusViewCont"}).state("main.gradeb",{url:"/gradebook",templateUrl:"app/modules/Gradebook/views/Gradebook.html",controller:"GradebookCont"}).state("main.feeSmf",{url:"/feeSmfc",templateUrl:"app/modules/fees/views/feeSmfc.html",controller:"feeSmfcController"}).state("main.feeDmc",{url:"/feeDmc",templateUrl:"app/modules/fees/views/feeDmc.html",controller:"feeDmcController"}).state("main.stdid",{url:"/studentidcardreport",templateUrl:"app/modules/studentid/views/studentidcard.html",controller:"StudentidcardController"}).state("main.feeSmm",{url:"/feeSmsm",templateUrl:"app/modules/fees/views/feeSmsm.html",controller:"feeSmsmController"}).state("main.feeSmn",{url:"/feeSmsmNew",templateUrl:"app/modules/fees/views/feeSmsmNew.html",controller:"feeSmsmNewController"}).state("main.facbok",{url:"/facebook",templateUrl:"app/modules/social/views/facebook.html",controller:"facebookCont"}).state("main.twiter",{url:"/twitter",templateUrl:"app/modules/social/views/twitter.html",controller:"twitterCont"}).state("main.Check",{url:"/Check",templateUrl:"app/modules/Check/views/Check.html",controller:"CheckController"}).state("main.SAQ01",{url:"/MeritDemerit",templateUrl:"app/modules/merit/views/StudentMeritDemerit_parent.html",controller:"StudentMeritDemerit_parentCont"}).state("main.web001",{url:"/Web",templateUrl:"app/modules/social/views/web.html",controller:"webCont"}).state("main.instag",{url:"/insta",templateUrl:"app/modules/social/views/instagram.html",controller:"InstaCont"}).state("main.PP013",{url:"/calendarO",templateUrl:"app/modules/calendar/views/Oldcalendar.html",controller:"OldCalendarController"}).state("main.gradeB",{url:"/GradebookAhis",templateUrl:"app/modules/Gradebook/views/GradebookReport.html",controller:"GradebookReportCont"}).state("main.comhis",{url:"/CommunicationHis",templateUrl:"app/modules/communicationhistory/views/CommunicationHistory.html",controller:"CommunicationHistoryController"}).state("main.PP041",{url:"/QuestionBank",templateUrl:"app/modules/suggestion/views/Questionbank.html",controller:"QuestionbankCont"}).state("main.feeAbq",{url:"/feeAbq",templateUrl:"app/modules/fees/views/feeAbq.html",controller:"feeAbqController"}).state("main.feCofM",{url:"/feeCof_m",templateUrl:"app/modules/demo/views/StudentConfimation_modern.html",controller:"StudentConfimationController_modern"}).state("main.feeCof",{url:"/feeCof",templateUrl:"app/modules/demo/views/StudentConfimation.html",controller:"StudentConfimationController"}).state("main.fecoff",{url:"/feeCof_Facp",templateUrl:"app/modules/exam/views/StudentConfimationFacp.html",controller:"StudentConfimationFacpController"}).state("main.feCofD",{url:"/feeCof_d",templateUrl:"app/modules/demo/views/StudentConfimation_dmc.html",controller:"StudentConfimationController_dmc"}).state("main.feCoRG",{url:"/feeCof_new",templateUrl:"app/modules/demo/views/StudentConfimation_rakaa.html",controller:"StudentConfimationController_rakaa"}).state("main.feCofL",{url:"/feeCof_leams",templateUrl:"app/modules/demo/views/StudentConfimation_leams.html",controller:"StudentConfimationController_leams"}).state("main.feCofH",{url:"/feeCof_ahis",templateUrl:"app/modules/demo/views/StudentConfimation_ahis.html",controller:"StudentConfimationController_ahis"}).state("main.feCofS",{url:"/feeCof_sok",templateUrl:"app/modules/demo/views/StudentConfimation_sok.html",controller:"StudentConfimationController_sok"}).state("main.feCoSv",{url:"/feeCof_svs",templateUrl:"app/modules/demo/views/StudentConfirmation_svs.html",controller:"StudentConfirmationController_svs"}).state("main.itmrqs",{url:"/itemRequest",templateUrl:"app/modules/itemRequest/views/ItemReq.html",controller:"ItemReqCont"}).state("main.itmrqi",{url:"/itemRequestNew",templateUrl:"app/modules/itemRequest/views/ItemReqNew.html",controller:"ItemReqNewCont"}).state("main.itmrds",{url:"/itemRequestDS",templateUrl:"app/modules/itemRequest/views/ItemReqNew_DS.html",controller:"ItemReqNew_DSCont"}).state("main.itmrbk",{url:"/itemRequestDSBook",templateUrl:"app/modules/itemRequest/views/ItemReqNew_DS_Book.html",controller:"ItemReqNew_DS_BookCont"}).state("main.itmrqd",{url:"/itemRequestS",templateUrl:"app/modules/itemRequest/views/ItemReqSIA.html",controller:"ItemReqSIACont"}).state("main.itmrqM",{url:"/itemRequestSMSM",templateUrl:"app/modules/itemRequest/views/ItemReqSMSM.html",controller:"ItemReqSMSMCont"}).state("main.vires",{url:"/ViewVoucher",templateUrl:"app/modules/itemRequest/views/ViewRequisitionnew.html",controller:"ViewRequisitionContnew"}).state("main.storrqs",{url:"/StoresRequest",templateUrl:"app/modules/itemRequest/views/StoresRequest.html",controller:"StoresRequestCont"}).state("main.saleIn",{url:"/ViewSaleInvoice",templateUrl:"app/modules/itemRequest/views/ViewSaleInvoice.html",controller:"ViewSaleInvoiceCont"}).state("main.subatt",{url:"/subattendance",templateUrl:"app/modules/attendance/views/subjectattendance.html",controller:"SubAttendanceController"}).state("main.gpsatt",{url:"/gpsattendance",templateUrl:"app/modules/attendance/views/GpsAttendance.html",controller:"GpsAttendanceController"}).state("main.regDmc",{url:"/reregistrationDmc",templateUrl:"app/modules/demo/views/reregistrationDmc.html",controller:"ExamReRegistrationCont"}).state("main.assgkp",{url:"/assignmentmarkgkp",templateUrl:"app/modules/attendance/views/AssignmentMarksheetGkp.html",controller:"AssignmentMarksGkpController"}).state("main.tcModn",{url:"/tcertificateModern",templateUrl:"app/modules/TCCertificate/views/TCCertificateModern.html",controller:"TCCertificateModernController"}).state("main.StGrad",{url:"/SetTargetGrade",templateUrl:"app/modules/Gradebook/views/SetTargetGrade.html",controller:"SetTargetGradeCont"}).state("main.StExtr",{url:"/SetTargetGradeExternal",templateUrl:"app/modules/Gradebook/views/SetTargetGradeExternal.html",controller:"SetTargetGradeExternalCont"}).state("main.ViGrad",{url:"/ViewTargetGrade",templateUrl:"app/modules/Gradebook/views/ViewTargetGrade.html",controller:"ViewTargetGradeCont"}).state("main.ViExtr",{url:"/ViewTargetGradeExternal",templateUrl:"app/modules/Gradebook/views/ViewTargetGradeExternal.html",controller:"ViewTargetGradeExternalCont"}).state("main.sttask",{url:"/studenttask",templateUrl:"app/modules/Gradebook/views/StudentTask.html",controller:"StudentTaskCont"}).state("main.ascorv",{url:"/assignmentmarkcorv",templateUrl:"app/modules/attendance/views/AssignmentMarksheetCorv.html",controller:"AssignmentMarksCorvController"}).state("main.trareq",{url:"/transportRequest",templateUrl:"app/modules/transport/views/TransportRequest.html",controller:"TransportRequestCont"}).state("main.feenet",{url:"/feesNetwork",templateUrl:"app/modules/fees/views/feesNetwork.html",controller:"FeesNetworkController"}).state("main.paylnk",{url:"/PayByLink",templateUrl:"app/modules/fees/views/PayByLink.html",controller:"PayByLinkController"}).state("main.feSisd",{url:"/feesaisd",templateUrl:"app/modules/fees/views/feesSaisd.html",controller:"FeeSaisdController"}).state("main.PP046",{url:"/RegistrationInfo",templateUrl:"app/modules/test/views/RegistrationInfo.html",controller:"RegistrationInfoCont"}),a.html5Mode(!0);var o=location.pathname.split("/");o="/"+o[o.length-1];for(var n=Object.keys(s),r=0;r<n.length;r++)s[n[r]].url!==o||s[n[r]].isAdded||(e.state(n[r],s[n[r]]),s[n[r]].isAdded=!0);t.otherwise("/login")}])}(),function(){"use strict";angular.module("sims").run(["$rootScope","$location","$cookieStore","$http","$state","gettextCatalog",function(e,t,a,s,o,n){e.locales={ar:{lang:"ar",country:"AR",name:n.getString("Arabic")},en:{lang:"en",country:"US",name:n.getString("English")},th:{lang:"th",country:"US",name:n.getString("Thai")}},a.put("lang","en");var r=a.get("lang")||navigator.language||navigator.userLanguage;e.locale=e.locales[r],e.langDirection="ar"==r?"rtl":"ltr",void 0===e.locale&&(e.locale=e.locales[r],void 0===e.locale&&(e.locale=e.locales.en,a.put("lang","en"))),n.setCurrentLanguage(e.locale.lang),n.debug=!0,e.bodyStyle={"background-color":""}}])}(),angular.module("sims").run(["gettextCatalog",function(e){e.setStrings("ar",{"Parents Portal":"الآباء البوابة",Login:"تسجيل الدخول","Forget Password?":"نسيت كلمة؟",or:"أو","Sign in to SIMS!!!":"!!!SIMS تسجيل الدخول إلى","Please enter username or email id":"الرجاء إدخال اسم المستخدم أو البريد الإلكتروني ","Please enter password":"الرجاء إدخال كلمة المرور","Keep me signed":"احفظ التوقيع","Enter your Email ID":"أدخل بريدك الالكتروني","Send reset password link":"إرسال رابط إعادة تعيين كلمة المرور",Dashboard:"لوحة القيادة",Circular:"تنبية",Student:"طالب",Teacher:"معلم",Transport:"النقل",Parent:"ولي امر",Attendance:"الحضور",Fees:"الرسوم",Medical:"طبي",Calender:"رزنامة",Incidence:"حدث",Agenda:"جدول أعمال",Handbook:"كتيب",Gallery:"جدول أعمال","Loading...":"تحميل ...","Report Card":"بطاقة تقرير","Time table":"الجدول المدرسي",LMS:"مهارات إدارة التعلم","Present %:":"حاضر ٪","Present % till date:":"النسبة المئوية الحالية حتى الآن:","100% congratulation":"تهنئة 100%","100% attendance is expected":"ومن المتوقع حضور 100٪","Enroll No.":"رقم التسجيل","Enroll no":"رقم التسجيل","1. I require assistance with,":"1. أحتاج إلى المساعدة في،","2. Sub Category.":"2. الفئة الفرعية.","2. Fee applicable ":"2. الرسوم المطبقة","3. Have you previously reported this concern?":"3. هل سبق لك أن أبلغت عن هذا الأمر؟","5. What kind of advice do you expect from the school?":"5. ما نوع النصيحة التي تتوقعها من المدرسة؟","4. Briefly state your concern/nature of enquiry":"4. اذكر بإيجاز مخاوفك/طبيعة استفسارك"," Academic Calendar":"التقويم الأكاديمي","Academic year:":"السنة الأكاديمية","Report card:":"بطاقة تقرير:","CLASS NAME: ":"اسم الصف",Download:"تحميل",New:"جديد","Select Student":"حدد الطلاب",Teachers:"معلم",Library:"مكتبة",Suggestion:"اقتراح","Student information":"معلومات الطالب","Personal Information":"معلومات شخصية","Personal Details":"تفاصيل شخصية","Full Name":"الاسم الكامل","Family Name":"اسم العائلة","In Regional":"في الإقليمي","Transport Application":"تطبيق النقل","Enrollment Number":"رقم التسجيل","Academic Year":"السنة الأكاديمية","Route Name":"اسم المسار","Route Direction":"اتجاة المسار","Effective From":"اعتبارا من","Effective Upto":"فعالية لغاية","Pick Up Stop":"نقطة التوقف","Drop Stop":"ايقاف الجرعة",Edit:"تحرير","Parent Profile":"ملف ولي الامر",Father:"الأب","Father Details":"تفاصيل الأب","Father details":"تفاصيل الأب","First Name":"الاسم الأول","Family Name":"اسم العائلة","Family name":"اسم العائلة","In Regional":"في الإقليمي","Nationality 1":"الجنسية 1","Nationality 2":"الجنسية 2",Address:"عنوان",Apartment:"شقة",Building:"مبنى",Street:"شارع",Area:"منطقة",Country:"بلد",State:"الحالة",City:"مدينة","P.O. Box":"ص ب: الصندوق",Summary:"ملخص",Address:"عنوان","Contact Details":"تفاصيل الاتصال",Phone:"هاتف",Mobile:"الهاتف المحمول",Fax:"فاكس",Email:"البريد الإلكتروني","Other Details":"تفاصيل أخرى",Occupation:"الوظيفة",Company:"شركة","Passport Number":"رقم جواز السفر",Mother:"أم",Guardian:"وصي","Mother Details":"تفاصيل الأم","Mother details":"تفاصيل الأم","Guardian Details":"تفاصيل الوصي","Summary Address":"ملخص العناوين","Relation with Student":"العلاقة مع الطلاب","Student Attendance Report":"طالب تقرير الحضور","Todays Attendance":"الحضور اليوم","View Your Attendance":"عرض حضوركم","Select Date":"حدد التاريخ","Attendance Report":"تقرير الحضور","Image Gallery":"معرض الصور",Agenda:" جدول أعمال","Academic Year":"السنة الأكاديمية","From Date":"من التاريخ:","To Date":"حتى الآن",Search:"بحث","Record Not Available":"سجل غير متوفر",Subject:"موضوع",Title:"عنوان",Description:"وصف","< Back":"<الخلف","Show details":"عرض التفاصيل","Library Details":"تفاصيل مكتبة","From Date":"من التاريخ","To Date":"حتى الآن",Search:"بحث","Transaction Date":"عملية التسجيل: -","Transaction Remark":"عملية الملاحظة","Library Transaction Information":"مكتبة معلومات عملية","Lib Transaction Num":"رقم صيغة Lib ","Lib Line Num":"رقم Lib Line","Item Num":"رمز العنصر","Item Quantity":"كمية العنصر","Actual Return Date":"تاريخ الرجوع الفعلي","Expected Return Date":"من المتوقع ان يعود التسجيل","Release Date":"تاريخ الافراج عنه","Item Name":"اسم العنصر","Item Title":"عنوان العنصر","Item Category":"فئة البند","Item Author":"كاتب البند",Handbook:"كتيب","Select Handbook":"حدد الدليل","Loading...":"تحميل ...",Save:"حفظ",Cancel:"إلغاء","Reference Number":"رقم المرجع","Reference Description":"الوصف المرجعي","Publish Date":"تاريخ النشر",Attachments:"المرفقات","Select Student":"حدد الطلاب","Subject Teacher List":"تخضع قائمة المعلم","Medical Report":"تقرير طبي",Visits:"مرة","Medical Details":"تفاصيل الطبية","Health/Insurance No":"الصحة /رقم التأمين ","Issue Date":"تاريخ الإصدار","Expiry Date":"تاريخ الانتهاء","Issuing Authority":"إصدار السلطة","Blood Group":"فصيلة الدم",Height:"ارتفاع","Hospital Name":"اسم المستشفى","Doctor's Name":"اسم الطبيب",Teeth:"أسنان",Weight:"الوزن","Hospital Phone No":"رقم هاتف المستشفى ","Phone No":"رقم الهاتف","Health Details":"تفاصيل الصحة","Medical Description":"الوصف الطبي","Vision Description":"رؤية الوصف","Other Details":"تفاصيل أخرى","Disability Description":"وصف العجز","Health Restriction":"تقييد الصحة","Hearing Description":"سماع الوصف","Visit Date":"زيارة تاريخ","Attended Date":"تاريخ الحضور","Followup Comment":"تعليق المتابعة","Complaint Description":"وصف الشكوى","Attendant Observation":"مراقبة الحضور","Health Description":"وصف الصحة","Attended By":"حضر بواسطة","Loading...":"جار التحميل...","Student Menu":"القائمة الطلبة","Student information":"معلومات الطالب","Personal Information":"معلومات شخصية","Passport/Visa Details":"جواز السفر / تفاصيل فيزا","Personal Details":"تفاصيل شخصية","Full Name":"الاسم الكامل","Family Name":"اسم العائلة","In Regional":"في الإقليمي","Nick Name":"اسم الشهره","Fam Name In Reg":"Fam Name In Reg","Birth Country":"بلد الميلاد",Nationality:"جنسية",Gender:"جنس",Ethnicity:"العرق","Date of Birth":"تاريخ الميلاد",Religion:"دين","Address Information":"معلومات عنوان","Summary Address":"ملخص العناوين",City:"مدينة",Email:"البريد الإلكتروني",Country:"بلد",Phone:"هاتف",Fax:"فاكس",State:"الحالة",Mobile:"الهاتف المحمول","P.O. Box":"ص ب: الصندوق","Academic Details":"نفاصيل أكاديمية","School Name":"اسم المدرسة","Joined Date":"تاريخ الاشتراك","Commenced Date":"تاريخ بداء التسجيل","Class Rank":"استيعاب الصف","Academic Status":"الحالة الأكاديمية","Emergency Contact":"الاتصال في حالات الطوارئ",House:"بيت",Name1:"اسم1","Phone No.1":"رقم الهاتف.1",Name2:"اسم2","Phone No.2":"رقم الهاتف.2","Transport Status":"حالة النقل","Other Language":"لغات اخرى","Last Login":"آخر تسجيل دخول",Language:"لغة","Primary Contact Pref":"تفضيل جهة الاتصال الأساسية",Remark:"ملاحظة","Passport Details":"تفاصيل جواز السفر","Passport No":"رقم جواز السفر","Issue Date":"تاريخ الإصدار","Issuing Authority":"إصدار السلطة","Expiry Date":"تاريخ الانتهاء","Issuing Place":"مكان الإصدار","ID Details":"تفاصيل الهوية",ID:"الهوية","Issue Date":"تاريخ الإصدار","Visa Details":"تفاصيل التأشيرة","Visa No":"تأشيرة لا","Visa Type":"نوع التأشيرة","Department of Education Details":"تفاصيل قسم التعليم","ESIS No":"ESIS رقم ","Transfer Status":"حالة نقل","Registration Date":"تاريخ التسجيل","Registration Status":"حالة التسجيل","Passport no":"رقم جواز السفر","Fees Report":"تقرير الرسوم","Fee Type":"نوع الرسوم",Term:"تعبير","PAID FEES":"الرسوم المدفوعة","REMAINING FEES":"الرسوم المتبقية","TODAY’S ATTENDANCE":"الحضور اليوم",CIRCULAR:"تنبية","Expected Fee":"رسوم المتوقعه","Paid Fee":"الرسوم المدفوعة",Concession:"امتياز","Concession Paid":"الامتياز المدفوعة","Remaining Fee":"الرسوم المتبقية",Remaining:"المتبقية",Name:"اسم","Payment Link":"رابط الدفع","Fee Balance":"رصيد الرسوم","Normal Link:":"الرابط العادي:","Custom Link:":"رابط مخصص:","Upload Images":"تحميل الصور",Upload:"تحميل",Browse:"تصفح","Report card":"بطاقة تقرير","Academic Year":"السنة الأكاديمية","Report Card Name":"اسم بطاقة تقرير",Calendar:"التقويم","Time table":"الجدول المدرسي","Select Time Table":"تحديد الجدول المدرسي",Incidence:"حدث",Name:"اسم","Enrollment no":"رقم التسجيل",Description:"وصف",Location:"موقع",Building:"مبنى","Incidence Action Information":"معلومات الاصابة","Consequence Information":"معلومات النتيجة","Action Type":"نوع العمل","Action Description":"وصف العمل","Warning Code":"رمز تحذير","Warning Description":"تحذير الوصف","Action Point":"نقطة العمل",Details:"تفاصيل","Consequence Type":"نوع النتيجة","Consequence point":"نقطة نتيجة","Consequence start date":"تاريخ بداية النتيجه","Consequence Code":"رمز النتيجه","Consequence Desc":"تفاصيل النتيجة","Reported by":"تم عمل تقرير بواسطة","Back-To Incidence":"العودة الى الحدث","Please select":"اختر من فضلك","Total Circular":"إجمالي التنبيهات","UnRead:":"غير مقروء",Message:"رسالة",Subject:"موضوع","No Record Found":"لا يوجد سجلات",circular:"تنبية",Circulars:"التنبيهات","From Date:":"من التاريخ:","To Date:":"حتى الآن",Title:"عنوان",Description:"وصف","Short Description":"وصف قصير","Publish Date":"تاريخ النشر","File Name":"اسم الملف",Search:"بحث",Reset:"إعادة ضبط","Primary Contact Pref.":"تفضيل جهة الاتصال الأساسية",Curriculum:"المنهج الدراسي",Archive:"أرشيف",Search:"بحث",Title:"عنوان","Circular No":"رقم التنبية","Publish Date":"تاريخ النشر",Attachments:"المرفقات",Month:"شهر",View:"عرض",File:"ملف",Download:"تحميل",SMS:"رسالة قصيرة",Inbox:"البريد الوارد",Message:"رسالة",Date:"تاريخ","Posted Date":"تاريخ النشر",File:"ملف","Back-":"الخلف-",Inbox:"البريد الوارد","Email Id":"عنوان الايميل",Subject:"موضوع",Date:"تاريخ",Email:"البريد الإلكتروني",Particulars:"تفاصيل",EMAIL:"البريد الإلكتروني","Sorry No Record Found":"عذرا لم يتم العثور على السجل","Sorry File Not Found":"عذرا لم يتم العثور على الملف","Total Circulars":"إجمالي التنبيهات","OVERALL ATTENDANCE FOR MONTH":"الحضور الإجمالي لهذا العام",TOTAL:"المجموع",Present:"حاضر",Absent:"غائب",Unmarked:"إنفراد","CIRCULAR DETAILS":"تفاصيل التنبية","Total Circulars":"إجمالي التنبيهات",Read:"اقرأ",Unread:"غير مقروء","FEES DETAILS":"تفاصيل الرسوم",TOTAL:"المجموع",PAID:"دفع",REMAINING:"المتبقية",NOTIFICATIONs:"اشعارات","View All":"عرض الكل","#Gallery":"#البوم",Album:"الألبوم",Details:"تفاصيل","Direct Chat":"دردشة مباشرة",Send:"إرسال","Browser Usage":"استخدام المتصفح","Student Profile":"الملف الشخصي للطالب",Other:"آخر",Details:"تفاصيل","Pri Contact Pref":"تفضيل جهة الاتصال الأساسية","Last Login":"آخر تسجيل دخول","Emergency Contact":"الاتصال في حالات الطوارئ","Emergency Contact 2":"الاتصال في حالات الطوارئ 2",Passport:"جواز سفر",Details:"تفاصيل","National ID":"الهوية الوطنية","National ID and Visa Details":"الهوية الوطنية وتفاصيل فيزا","Civil ID":"الهوية المدنية","Department of Education":"قسم التعليم","Ministry Details":"تفاصيل الوزارة","School Details":"تفاصيل المدرسة","Date of Admission":"تاريخ القبول","Date of Commencement":"تاريخ البدء",About:"حول",Me:"أنا","Enroll. No.":"رقم التسجيل",Class:"صف",ClassRank:"استيعاب الصف","Monthly Attendance":"الحضور الشهري","Unmarked:":"إنفراد:","Academic Year":"السنة الأكاديمية",Term:"مصطلح","Height (cm)":"الطول (سم)","Card Number":"رقم البطاقة","Issuing Authority":"إصدار السلطة","Issuing Date":"تاريخ الإصدار","Expiry Date":"تاريخ الانتهاء","Hospital Name":"اسم المستشفى","Hospital Phone":"هاتف المستشفى","Doctor Name":"اسم الطبيب","Other Description":"وصف آخر",Medication:"أدوية",Duration:"المدة الزمنية",Dosage:"جرعة","Medicine Name":"اسم الدواء",Health:"الصحة",BMI:"مؤشر كتلة الجسم",Index:"الوارد","Weight (kg)":"الوزن (كجم)","Medication Description":"وصف الدواء","Health Restriction Description":"وصف تقييد الصحة","Doctor Phone":"هاتف الطبيب",Submit:"عرض","Pay Now and Submit":"ادفع الآن وأرسل",Cancel:"إلغاء",News:"أخبار","Search:":"بحث:","Academic Year:":"السنة الأكاديمية","Month:":"شهر:",Calendar:"التقويم",month:"شهر",week:"أسبوع",day:"يوم","School Album":"ألبوم المدرسة","Fax no.":"رقم الفاكس","Fax no.":"رقم الفاكس","Parent Id":"معرف ولي الأمر","Passport No.":"رقم جواز السفر.","First:":"الأول:","Middle:":"الأوسط:","Last:":"الاخير:","Summary Address:":"ملخص العنوان:","Country:":"بلد:","State:":"الحالة:","City:":"مدينة:","PO Box:":"صندوق بريد:","Phone:":"هاتف:","Mobile:":"الهاتف المحمول","Email:":"البريد الإلكتروني","Fax:":"فاكس:","Nationality:":"الجنسية:","Passport Number:":"رقم جواز السفر:","Father Other Details":"تفاصيل اخرى للأب","Family Name:":"اسم العائلة:","Company:":"شركة:","Building Number:":"رقم المبنى","Occupation:":"الوظيفة","Mother Details":"تفاصيل الأم","Mother Other Details":"تفاصيل اخرى للام","Street Number:":"رقم الشارع:","Device Settings":"إعدادات الجهاز","Search:":"بحث:","Start Date":"تاريخ البدء","End Date":"تاريخ الانتهاء",Clear:"مسح",Examination:"فحص","View Exam":"عرض الامتحان",Papers:"أوراق",PAPERS:"أوراق","PAPER NAME":"اسم الورق",EXAM:"امتحان",SUBJECT:"موضوع","Assginment Upload":"تحميل  المهام",Archive:"أرشيف","Name:":"اسم:","Class:":"صف","Freeze date":"تاريخ التجميد","Submission  Date":"تاريخ التقديم","Assignment Title":"عناوين المهام",CURRICULUM:"المنهج الدراسي",YEAR:"عام",SUBJECT:"موضوع","GRADE/SECTION":"الصف / الشعبة",Action:"عمل","Unit Details":"تفاصيل الوحدة","Topic and Sub Topic Details":"الموضوع والموضوع الفرعي تفاصيل",Print:"طباعة","APPLY NEW":"تطبيق جديد","Drop Stop":"ايقاف الجرعة","Pick Up Stop":"نقطة التوقف","Effective Upto":"فعالة","Effective From":"فعالة من","Route Direction":"اتجاة المسار","Route Name":"اسم المسار","Bus No":"الحافلة رقم","Share Location":"مشاركة الموقع",Status:"الحالة","Leave Application":"اترك التطبيق","Apply Student Leave":"تقديم اجازة الطالب","Choose File":"اختر ملف","Leave Type":"نوع الاجازة ","Reason:":"السبب:","Attachment:":"المرفق:","Missed Cycle Test/Term Exam:":"اختبار الدورة المفقودة / اختبار المدة:","Contact Information While On Leave":"معلومات الاتصال أثناء الإجازة","Address:":"عنوان:","Landline Number:":"رقم الهاتف الثابت:","Mobile Number:":"رقم الهاتف المحمول","Email Id:":"عنوان الايميل","Invalid Email Id.":"معرف البريد الإلكتروني غير صالح.","Leave Type:":"نوع الاجازة ",No:"لا",Yes:"نعم فعلا","Weekly Assessment":"التقييم الأسبوعي",Report:"أبلغ عن","Select Month":"اختر الشهر","Select Week":"حدد أسبوع","Select Subject":"حدد الموضوع",Show:"عرض",Reset:"إعادة ضبط",Dashboard:"لوحة القيادة",Notifications:"اشعارات","View All":"عرض الكل","Term:":"مصطلح:","No record(s) found.":"لا توجد سجلات.","Fee Details:":"تفاصيل الرسوم:","View Previous FeeDetails":"عرض السابق فيديتايلز","Payment Details":"بيانات الدفع","School Name:":"اسم المدرسة:","Parent name:":"اسم ولي الامر:","Website:":"موقع الكتروني:","School Country:":"بلد المدرسة:","Parent Id:":"معرف ولي الأمر","Payment Type:":"نوع الدفع:","Account N#:":"رقم الحساب#","Bank Code:":"رمز البنك","Swift Code:":"رمز السرعة:",Paid:"دفع",UnPaid:"غير مدفوعة الأجر","Partial Paid":"جزئي المدفوع","Grand Total:":"المبلغ الإجمالي:","Total Paid:":"مجموع المبالغ المدفوعة:","Total Due:":"إجمالي المستحقات",To:"إلى",From:"من عند","Request For Transfer Certificate":"طلب للحصول على شهادة النقل","Expected Date":"التاريخ المتوقع","Reason Of Leaving":"سبب المغادرة",Learn:"تعلم",Arabic:"عربي",FILE:"ملف","FILE NAME":"اسم الملف",DESCRIPTION:"وصف","REFERENCE NAME":"اسم الإشارة","REFERENCE DATE":"تاريخ المراجع","Exam Material Reference View":"عرض مراجع الامتحان",Attachment:"المرفق",Inbox:"صندوق الوارد","Email ID":"عنوان الايميل","My Calendar":"التقويم","My Inbox":"صندوق البريد الخاص بي","Change Password":"تغيير كلمة السر","Log Out":"الخروج",Welcome:"أهلا بك","Change Password":"تغيير كلمة السر","Old Password":"كلمة المرور القديمة","New Password":"كلمة السر الجديدة","Confirm Password":"تأكيد كلمة المرور",Close:"يغلق","Remember me !":"تذكرنى !","Forgot your password?":"نسيت رقمك السري؟",Acknowledge:"المعرفة","Present:":"حاضر:","GRADE NAME":"اسم الصف","Attachments:":"المرفقات","Date:":"تاريخ","Search:":"بحث:",Alert:"إضافة مراجعة الكتاب",Read:"اقرأ",UnRead:"غير مقروء","Your child does not use school bus transportation.":"ال يستخدم طفلك النقل بالحافلة المدرسية.",Pending:"قيد الانتظار",Approved:"وافق","Not Approved":"غير مقبول","SIS Broadcast":"بث SIS","Short Description :":"وصف قصير :","Publish Date :":"تاريخ النشر :","Attachments :":"المرفقات",File:"ملف","Home Work and Study material":"الواجب المنزلي و المواد الدراسية",DOB:"تاريخ الميلاد","Survey Selection":"اختيار الاستبيان","Survey Description":"وصف الاستبيان","Survey Subject":"موضوع الاستبيان","User Group Name":"اسم مجموعة المستخدمين","Survey Start Date":"تاريخ بدء الاستبيان","Survey End Date":"تاريخ انتهاء الاستبيان",Action:"عمل",Feedback:"ردود الفعل",Suggestion:"اقتراح","Rating:":"تقييم:",Subject:"موضوع",Suggestion:"اقتراح",Message:"رسالة","Start Survey":"بدء الاستبيان","Absent:":"غائب:","Instructions:":"تعليمات:","Survey Type":"نوع الاستبيان","Total Number Of Questions":"إجمالي عدد الأسئلة","Number Of Questions Attempt":"عدد الأسئلة محاولة","DO NOT Refresh The Page":"لا تقم بتحديث الصفحة","Time Left:":"الوقت المتبقي:",of:"من",Question:"سؤال",previous:"سابق",Next:"التالى",Back:"الخلف","Student Name":"إسم الطالب","RECEIPT NO":"رقم الإيصال","Total Amount":"المبلغ الإجمالي","Received By":"استلمت من قبل",Date:"تاريخ","Cheque Status":"تحقق من الحالة","Cheque/DD No":"تحقق / د لا","Payment Mode":"طريقة الدفع",Balance:"توازن","Fee Amount":"مبلغ الرسوم","Expected Amount":"المبلغ المتوقع",Particulars:"تفاصيل","Sr.No":"الأب رقم","New Subject":"موضوع جديد",Cancel:"إلغاء",OK:"نعم","Education Authority No":"رقم سلطة التعليم","Transaction Status":"حالة عملية","Lib Transaction Number":"رقم صيغة Lib ","Lib Line Number":"رقم Lib Line","Item Number":"رمز العنصر","Transaction Status":"حالة عملية","Book Accession Number":"رقم دخول الكتاب","Add Book Review":"إضافة مراجعة الكتاب","Library Book Review Details":"مكتبة تفاصيل مراجعة الكتاب","Sr No":"رقم التسلسلي","Login Id":"تسجيل الدخول","Book name":"اسم الكتاب",Rating:"تقييم",comment:"ملاحظة","Book Details":"تفاصيل الكتاب","Book Title":"عنوان كتاب","Book Author":"كتاب المؤلف","Book Publisher":"كتاب الناشر","Book ISBN Number":"حجز رقم ISBN","Book Category":"فئة الكتاب","Book Sub-Category":"كتاب الفئة الفرعية","Book Publication":"كتاب النشر",Available:"متوفر",Unavailable:"غير متوفره","Add Library Book Rating":"إضافة تصنيف مكتبة الكتب","Book Ratring":"تصنيف الكتاب",Comment:"ملاحظة","":"","Best student ":"افضل طالب","School Badge View":"عرض شارة المدرسة","Online Admission":"القبول عبر الإنترنت",view:"عرض","apply new":"تطبيق جديد","application details ":"تفاصيل التطبيق",curriculum:"المنهج الدراسي","academic year":"السنة الأكاديمية","grade name ":"اسم الصف","enter prospective student name & information":"أدخل اسم الطالب المستقبلي والمعلومات","child first name (as on passport)":"الاسم الأول للطفل (كما في جواز السفر)","Child's Middle Name(as on Passport)":"اسم الطفل الأوسط (كما في جواز السفر)","Child's Last Name (as on passport)":"اسم الطفل الأخير (كما في جواز السفر)",gender:"جنس","birth date":"تاريخ الميلاد",clear:"مسح",confirm:"تأكيد",View:"عرض",status:"الحالة",date:"تاريخ",grade:"الصف","student name ":"إسم الطالب","parent email id ":"معرف ولي الأمر","parent name ":"اسم ولي الامر","Family and Friend Referral Program":"برنامج إحالة الأسرة والعائلة","enter referal student name and information ":"أدخل اسم الطالب المرجعية والمعلومات","First Name (as on Passport)":"الاسم الأول (كما في جواز السفر)","Middle Name(as on Passport)":"الاسم الأوسط (كما في جواز السفر)","Last Name(as on Passport)":"اسم العائلة (كما في جواز السفر)","Personal Email":"البريد الشخصي",mobile:"الهاتف المحمول",status:"الحالة",ACTION:"عمل",appearing:"الظهور",tagore:"طاغور",sunday:"الأحد","Monday ":"الإثنين",Tuesday:"الثلاثاء",Wednesday:"الأربعاء",Thursday:"الخميس",Friday:"يوم الجمعة",Saturday:"يوم السبت","expected amount ":"المبلغ المتوقع","Special Education Needs Description":"وصف الاحتياجات التعليمية الخاصة ","Title ":"عنوان","Short Description":"وصف قصير","Publish Date":"تاريخ النشر",Attachments:"المرفقات","document upload":"تحميل المستند",action:"عمل","file name ":"اسم الملف","criteria ":"المعايير",reset:"إعادة ضبط",save:"حفظ",upload:"تحميل","Health report":"التقرير الخاص بالصحة","Report name ":"اسم التقرير","Time table view ":"عرض جدول المدرسي","total lectures per week":"محاضرات إجمالية في الأسبوع","Application date":"تاريخ التقديم",Reason:"سبب","To date":"حتى الآن","From date":"من التاريخ","Type of leave":"نوع من الإجازة","Contact information while on leave":"معلومات الاتصال أثناء الإجازة","Missed cycle test/Term exam":"اختبار الدورة الفائتة / امتحان الفصل الدراسي","Apply student leave":"تقديم اجازة الطالب","Monthly attendance":"الحضور الشهري",Day:"يوم",Week:"أسبوع"," Calendar":"التقويم","From Date:":"من التاريخ:","Landline no.":"ليس خط أرضي.","Primary contact preference":"تفضيل جهة الاتصال الأساسية","Emergency contact 1":"الاتصال في حالات الطوارئ 1","Phone no. 1":"رقم الهاتف. 1","Phone no.2":"رقم الهاتف 2","Transport status":"حالة النقل","Last login":"آخر تسجيل دخول","Emergency contact 2":"الاتصال في حالات الطوارئ 2",Details:"تفاصيل","Expiry date":"تاريخ الانتهاء","Issuing place":"مكان الإصدار","Expiry date":"تاريخ الانتهاء","Contact Information":"معلومات الاتصال","Grade & division":"الصف/ التقسيم","Enroll no.":"رقم التسجيل","Issue date":"تاريخ الإصدار","Issuing authority":"إصدار السلطة","Emirates ID number":"رقم الهوية الإماراتية","Issue date":"تاريخ الإصدار","Ministry details":"تفاصيل الوزارة","Transfer status":"حالة نقل"," Passport":"جواز سفر"," National ID":"الهوية الوطنية"," Department of Education":"قسم التعليم"," Visa type":"نوع الفيزا","  Download":"تحميل",Curriculum:"المنهج الدراسي","GRADE NAME: ":"اسم الصف","Report Card:":"بطاقة تقرير:"," Other":"آخر","Click here":"انقر هنا","Enter the reasons for your absence":"أدخل أسباب غيابك",CURRICULUM:"المنهج الدراسي"," Download":"تحميل","CURRICULUM: ":"المنهج الدراسي",details:"تفاصيل","Card number":"رقم البطاقة","List any allergies your learner has":"ضع قائمة بأي حساسية يعاني منها الطالب","Make a list of the allergies' medicine descriptions":"اكتب قائمة بأوصاف أدوية الحساسية","Issuing date":"تاريخ الإصدار","If your learner is a student in need kindly explain his/her special education needs":"إذا كان المتعلم الخاص بك طالبًا محتاجًا ، فيرجى توضيح احتياجاته التعليمية الخاصة","Hospital name":"اسم المستشفى","Describe your learner's vital health information":"صف المعلومات الصحية الحيوية للمتعلم","Hospital phone":"هاتف المستشفى","Make a list of any medications your learner is currently taking":"قم بعمل قائمة بأية أدوية يتناولها طالب حاليًا","Doctor name":"اسم الطبيب","Other description":"وصف آخر","Doctor phone":"هاتف الطبيب","Landline No.":"ليس خط أرضي.","Parent ID":"معرف ولي الأمر","Total Working Days:":"إجمالي أيام العمل:","About Me":"عني","Grade & Division":"الصف/ التقسيم","Primary Contact Preference":"تفضيل جهة الاتصال الأساسية","Emergency Contact 1":"جهة اتصال الطوارئ 1"," Other Details":"تفاصيل أخرى","Phone No. 1":"رقم الهاتف 1","Phone No. 2":"رقم الهاتف 2"," Passport Details":"تفاصيل جواز السفر"," National ID Details":"تفاصيل الهوية الوطنية","Department of Education Details":"تفاصيل قسم التعليم","ESIS Number":"ESIS رقم ","Visa Number":"رقم الفيزا",ALERTS:"إضافة مراجعة الكتاب",COMMUNICATION:"تواصل",FEEREMINDER:"ذكريات خرافية","Father Details":"تفاصيل الأب","FATHER DETAILS":"تفاصيل الأب","Landline Number":"رقم الهاتف الثابت","Mark as Read/Acknowledge ":"وضع علامة كمقروءة / معرفه","Phone no. 2":"رقم الهاتف. 2","Visa number":"رقم الفيزا","Registration date":"تاريخ التسجيل","ESIS number":"ESIS رقم ","Department of Education details":"تفاصيل قسم التعليم","Passport details":"تفاصيل جواز السفر","Other details":"تفاصيل أخرى","National ID details":"تفاصيل الهوية الوطنية","National ID and visa details":"الهوية الوطنية وتفاصيل فيزا","About me":"عني","Birth country":"بلد الميلاد","Contact information":"معلومات الاتصال","School details":"تفاصيل المدرسة","Date of admission":"تاريخ القبول","Date of commencement":"تاريخ البدء","Student profile":"الملف الشخصي للطالب","Passport number":"رقم جواز السفر","Building Number":"رقم المبنى","Street Number":"رقم الشارع","Date Of Birth":"تاريخ الميلاد","ABQ AMBASSADOR":"سفير ABQ","Click here for more details":"اضغط هنا لمعرفة المزيد","Apply New":"تطبيق جديد","View Application History":"عرض تاريخ تقديم الطلب","Sohar International School":"مدرسة صحار العالمية","As Seeb International School":"مدرسة السيب العالمية ","Azzan Bin Qais International School":"مدرسة عزان بن قيس العالمية ","Application Details":"تفاصيل الطلب",Curriculum:"المنهج الدراسي","Academic Year":"السنة الأكاديمية",Grade:"الصف","Enter Referral Student Name and Information":"ادخل إسم و بيانات الطالب","Child's First Name":"الأسم الأول","Child's Middle Name":"الاسم الثاني","Child's Last Name":"القبيلة","Enter Referral Parent Details":"ادخل اسم ولي الأمر","First Name":"الأسم الأول","Middle Name":"الاسم الثاني","Last Name":"القبيلة",Email:"البريد الإلكتروني",Mobile:"الهاتف المحمول",Confirm:"تأكيد",Clear:"مسح","Parent Email Id":"البريد الإلكتروني","Parent Name":"اسم ولي الامر","Family ID":"رقم العائلة التعريفي","Name of Student":"اسم الطالب",Grade:"الصف","Current outstanding fees:":"رسوم المستحقات الحالية","Balance Due(OMR):":"المبلغ المتبقي (ر.ع):","PDC Total(OMR):":"الشيكات المؤجلة (ر.ع)","Net Balance(OMR):":"إجمالي المستحقات (ر.ع)",Date:"تاريخ",Description:"وصف","Amount (OMR)":"المبلغ  (ر.ع)","Amount to Pay:":"مبلغ الدفع ","Pay Now":"ادفع الأن","Total:":"المجموع","Family ID: ":"معرف العائلة:","Balance Due:":"الرصيد المستحق:","PDC Total:":"إجمالي تكلفة التوزيع اليومية:","Net Balance:":"صافي الرصيد:","(OMR)":"ريال عماني","Current outstanding fees: ":"الرسوم المستحقة الحالية:","Total(in OMR): ":"الإجمالي بالريال العماني:"," Pay Now":"ادفع الآن","Al Imtiaz Private School":"مدرسة الامتياز الخاصة","Class Name: ":"الطبقة اسم","Dear Parent, View your learner's report card by selecting the required fields from the dropdown menu below.":"عزيزي ولي الأمر، قم بعرض بطاقة تقرير المتعلم الخاص بك عن طريق تحديد الحقول المطلوبة من القائمة المنسدلة أدناه.","View PDF":"عرض قوات الدفاع الشعبي","Student Academic Tracker":"المتتبع الأكاديمي للطلاب","Assignment:":"تكليف:","Subject:":"موضوع:","Report card:":"بطاقة التقرير:","Report card level:":"مستوى بطاقة التقرير:","Academic year:":"العام الدراسي:","To Date :":"حتى الآن :","From Date :":"من التاريخ :",visits:"الزيارات","Parent Care Officer":"موظف رعاية الوالدين",Mentor:"مُرشِد","Department of education details":"تفاصيل إدارة التعليم","Visa type":"نوع التأشيرة","Report Card PDF":"كشف الدرجات PDF","Report card level":"مستوى كشف الدرجات",Notification:"إشعار","Digital Resources":"الموارد الرقمية",Attendance:"الحضور","Blood group":"فصيلة الدم","School Policies":"سياسات المدرسة","News Flash":"عاجل","Exit Category":"فئة الخروج","Exit ReqNo":"رقم طلب الخروج","Creation Date":"تاريخ الإنشاء","Name of student":"اسم الطالب","Requested Exit date":"تاريخ الخروج المطلوب","Requested Exit time":"وقت الخروج المطلوب","Reason for exit":"سبب الخروج","Other Reason":"سبب آخر","Will Return Y/N":"هل سيعود نعم/لا","Request received from":"تم استلام الطلب من","Exit Gate Number":"رقم بوابة الخروج","Name Of The Person":"اسم الشخص","EID Number":"رقم الهوية","Attachment status":"حالة المرفق","Approval/cancellation remark":"ملاحظة الموافقة/الإلغاء",Action:"إجراء","Welcome to 2019-20 online Seat confirmation":"مرحبا بك في خدمة الحجز الإلكتروني   للمقاعد الدراسية للعام الدراسي  20-2019","STUDENT NAME":"إسم الطالب","Student ID":"رقم الطالب التعريفي","Current Grade":"الصف الحالي","Next Grade":"الصف المقبل","Returning to School":"العودة الى المدرسة","Transport required":"متطلبات النقل","Direction/Distance":"تفاصيل الموقع","Transport fee":"رسوم النقل","Registration status":"حالة التسجيل","Current Outstanding Fees :":"رسوم المستحقات الحالية","Balance Due(OMR)":"المبلغ المتبقي (ر.ع)","PDC Total(OMR)":"الشيكات المؤجلة (ر.ع)","Net Balance(OMR)":"إجمالي المستحقات (ر.ع)","Pay Current Outstanding Fees":"دفع المستحقات الحالية","STUDENT NAME":"إسم الطالب","STUDENT ID":"رقم الطالب التعريفي","Fees 2019-20 (OMR)":"الرسوم المالية(ر.ع) لعام 2019-20","Total Due":"إجمالي المستحقات","Paying Now":"ادفع الأن","Will pay at School":"الدفع بالمدرسة","The above fees do not include  Uniform and External Exam fees  as may be applicable.I wish to confirm a seat for my child/Children as per the payment option selected below.":"المبالغ أعلاه لا تشمل رسوم اللبس المدرسي و رسوم الإمتحانات والإمتحانات الخارجية إذا تم تطبيقها.                                          أرغب في تاكيد حجز مقعد ل إبني/ ابنائي  كما في الخيارات المطروحة ادناه:","One Payment":"دفعه واحدة","2 Post Dated Cheques":"2 شيكات مؤجلة ","8 Post Dated Cheques":"8 شيكات مؤجلة","I understand that seats for next year will be confirmed only upon":"أتفهم أن مقعد العام الدراسي المقبل سيتم التأكيد عليه في حال:","1)Payment of seat confirmation fee 200 OMR per child":"1) دفع رسوم حجز المقعد 200 ر.ع لكل طالب ","2) Receipt of posted dated cheques as per above selected payment plan":"2) إستلام الشيكات المؤجلة الدفع حسب خطة الدفع اعلاه","3) The outstanding amount of":"3) دفع المبلغ المستحق الحالي و قدره  ","is paid full.":" دفع كامل الرسوم","Please verify and update below information and proceed to payment":"الرجاء تحديث وتأكيد البيانات ادناه لأكمال إجراءات الدفع","Father Mobile Number":"رقم هاتف الأب","Father Email ID":"البريد الإلكتروني للأب / ولي الأمر","Mother Mobile Number":"رقم هاتف الأم","Mother Email ID":"البريد الإلكتروني للأم","Please note that the 2019-20 seat will be confirmed after these dues are fully settled.":"نحيطكم علما، أن المقاعد الدراسية لعام 2019-20 سيتم تأكيد حجزها بعد إتمام الاجراءات التالية","1. You can choose to pay the full amount. Minimum payable is 200 OMR per student. If Transport is selected, minimum deposit of 100 OMR will be added.":" لك حرية الإختيار بدفع المبلغ كاملا. الدفع لا يقل عن 200 ر.ع لكل طالب. وسيتم إضافة مبلغ لا يقل عن 100 ر.ع في حال إختيار المواصلات لكل طالب.","Fee Payment":"دفع الرسوم","Online Payment History":"تفاصيل الدفع عبر الإنترنت","Family Statement of accounts":"بيان حساب العائله","Transport Deposit":" إيداع رسوم النقل",Transport:"النقل","Advance fee (seat confirmation payable now)":"رسوم مسبقة (تأكيد استحقاق حجز مقعد الآن)","Discount (Sibling)":"خصم الأخوة","Tution Fee":"رسوم الدراسة","Book Fee":"رسوم الكتب الدراسية","Cafeteria Fee":"رسوم الكافيتيريا","Checkpoint Fee":"رسوم امتحان كامبريدج","Fees 2020-21 (OMR)":"الرسوم المالية(ر.ع) لعام 2020-21","Welcome to 2020-21 online Seat confirmation":"مرحبا بك في خدمة الحجز الإلكتروني   للمقاعد الدراسية للعام الدراسي  21-2020","The above fees do not include Transport, Uniform, Activities,and External Exam fees (IGCSE, AS and A levels), as applicable":"لا تشمل الرسوم أعلاه رسوم النقل والزي الرسمي والأنشطة والامتحان الخارجي (IGCSE و AS و A) ، حسب الاقتضاء",Enroll:"تسجيل","Briefly describe your observation of the area of concern and since when have you observed it.":"صِف بإيجاز ملاحظتك لمجال الاهتمام ومنذ متى لاحظت ذلك.","How frequently do you see your ward facing the concern?":"كم مرة ترى جناحك يواجه القلق؟","What type of support are you expecting?":"ما نوع الدعم الذي تتوقعه؟","Upload relevant documents as applicable :":"قم بتحميل المستندات ذات الصلة حسب الاقتضاء:","Areas of concern":"مجالات الاهتمام","Support required from":"الدعم المطلوب من","I have difficulty with":"أجد صعوبة مع","I need to briefly talk about":"أنا بحاجة للحديث بإيجاز عن","What have I done to try and solve the problem":"ماذا فعلت لمحاولة حل المشكلة","Student leave Application":"طلب إجازة الطالب","Paired Devices":"الأجهزة المقترنة","( Newest 5 )":"(الاحدث 5)","Please Select":"اختر من فضلك","Dear Parent, The school's important alerts and notifications are listed here.":"ولي الأمر العزيز ، تم إدراج التنبيهات والإشعارات المهمة الخاصة بالمدرسة هنا.","Other Details":"تفاصيل أخرى","Academic Year":"السنة الأكاديمية","Medication visits":"زيارات العلاج","Dear parent, take a look at all of the school's previous, ongoing and upcoming events":"عزيزي ولي الأمر ، ألق نظرة على جميع أحداث المدرسة السابقة والجارية والقادمة","The popup window should be enabled on this browser":"يجب تمكين النافذة المنبثقة في هذا المتصفح","In order to see learning resource":"من أجل رؤية مصادر التعلم",Select:"يختار","Parent Profile":"ملف ولي الامر",Upload:"تحميل",Delete:"يمسح","UPLOAD DOCUMENTS":"تحميل المستندات",Cancel:"إلغاء",Remark:"ملاحظة",Edit:"تحرير",Upload:"تحميل",View:"عرض",Reset:"إعادة ضبط",Update:"تحديث",Submit:"يُقدِّم","Email ID is required.":"عنوان الايميل المطلوب","Email Id":"عنوان الايميل","Mobile number is required.":"رقم الهاتف المحمول مطلوب.","Mobile number":"رقم الهاتف المحمول","Landline number is required.":"رقم الهاتف الأرضي مطلوب.","Landline number":"رقم الهاتف الثابت","Address is required.":"العنوان مطلوب.",Address:"عنوان","Reason is required.":"السبب مطلوب.","Type of leave is required.":"نوع الإجازة مطلوب.","Student leave Application":"طلب إجازة الطالب","Students' leave application policy based on the need of the school.":"سياسة طلب إجازة الطلاب بناءً على حاجة المدرسة.",Address:"عنوان","Counselling Request / Counsellor":"طلب استشارة / مستشار","Parent Counselling based on the need of the school.":"إرشاد أولياء الأمور بناءً على حاجة المدرسة.","Supporting medical records":"دعم السجلات الطبية",uploaded:"تم التحميل","External assessment report (from a Psychologist/Clinical Psychologist)":"تقرير التقييم الخارجي (من عالم نفسي / اخصائي نفسي سريري)","Student Wellbeing ":"رفاهية الطالب","Student wellbeing details":"تفاصيل رفاهية الطالب","Add Remark":"أضف ملاحظة","Inclusion: Counseling request":"التضمين: طلب الاستشارة","Any other supportive documents":"أي مستندات داعمة أخرى","I need your help":"انا بحاجة الى مساعدتكم","I am managing at present but I need to talk":"أنا أدير في الوقت الحالي ولكني بحاجة إلى التحدث","I can wait for a week":"يمكنني الانتظار لمدة أسبوع","Missed cycle test/Term exam":"اختبار الدورة الفائتة/امتحان الفصل الدراسي","Total number of days":"إجمالي عدد الأيام","Term/Month":"مصطلح / شهر",Fees:"الرسوم",Gross:"إجمالي","VAT Amount":"قيمة الضريبة","Amount Paid":"المبلغ المدفوع","Enter Amount to pay":"أدخل المبلغ المطلوب دفعه","Online Payment Details":"تفاصيل الدفع عبر الإنترنت","Transaction Id":"رقم المعاملة","Transaction Time":"وقت المعاملة","Transaction Status":"حالة عملية",Receipt:"إيصال","Receipt Download":"تحميل الإيصال","Previous Fee Receipt":"إيصال الرسوم السابق",Particulars:"تفاصيل","Expected Amount":"المبلغ المتوقع","View Online Paid Details":"عرض التفاصيل المدفوعة عبر الإنترنت","Note:":"ملحوظة:","The receipt for the payment will be available on this portal once the transaction is approved by the school accounts team.":"سيكون إيصال الدفع متاحًا على هذه البوابة بمجرد موافقة فريق حسابات المدرسة على المعاملة.","Total Fees":"الرسوم الكلية","Convenience Charges":"رسوم الراحة","Final Amount":"القيمة النهائية",SUCCESS:"نجاح",FAILURE:"فشل","Fee Payment Terms and Conditions":"شروط وأحكام دفع الرسوم","Refund Policy :":"سياسة الاسترجاع :","I have read and agree to the terms and conditions of the service.":"لقد قرأت ووافقت على شروط وأحكام الخدمة.",Pay:"يدفع","Enroll No:":"رقم التسجيل","Roll No:":"رقم التسجيل:","Select Term":"حدد المصطلح","* Please scroll right to see more information":"* يرجى التمرير لليمين لرؤية المزيد من المعلومات",Exam:"امتحان",Assignment:"المهام","Max Marks":"اعلى علامه","Max Obtained":"تم الحصول على العلامه","Student Name and Class":"اسم الطالب والفصل الدراسي","Sal Code":"Sal Code","Doc Type":"نوع المستند","Customer Type":"نوع العميل","Prov Date":"التاريخ السابق","New Order":"طلب جديد","View Order":"عرض الطلب","Check this box to proceed to the book order.":"حدد المربع لمتابعة طلب الكتاب.","Instructions :":"تعليمات :","Sr.no":"رقم التسلسلي","Requisition no":"رقم الطلب","Requisition Date":"تاريخ الطلب","Payment Status":"حالة السداد",Paid:"دفع",Unpaid:"غير مدفوعة الأجر","View details":"عرض التفاصيل",Pay:"يدفع",Print:"طباعة",Close:"يغلق",Category:"فئة","Item Code":"رمز العنصر",Group:"مجموعة",Quantity:"كمية","Sell Price":"سعر البيع",Value:"قيمة","Discount %":"تخفيض ٪","Discount AMT":"خصم AMT","VAT %":"نسبة ضريبة القيمة المضافة","Gross Amount":"المبلغ الإجمالي","VAT Amount":"قيمة الضريبة","Net Amount":"صافي المبلغ","Final Amount":"القيمة النهائية","Place Order":"مكان الطلب",Back:"الخلف",Checkout:"الدفع","Invoice no":"رقم الفاتورة","Sale / Services Detail":"تفاصيل المبيعات/الخدمة","UOM Name":"اسم UOM","Malc Rate":"معدل مالك","Sell Price Incl.Vat":"سعر البيع شامل ضريبة القيمة المضافة","Current QTY.":"الكمية الحالية.","Dept Name":"اسم القسم","Section Name":"اسم الشعبة","Supplier Name":"اسم المورد","Continue to item selection":"الاستمرار في اختيار العنصر",Section:"شعبة","Doc No":"رقم الوثيقة","Invoice Date":"تاريخ الفاتورة","Enroll No.":"رقم التسجيل","Sell Amt":"Sell Amt","Created By":"انشأ من قبل","Search User":"بحث المستخدم","National Id":"الهوية الوطنية","Enrollment No":"رقم التسجيل","Mobile No":"رقم الهاتف المحمول","Company Name":"اسم الشركة","Ledger Code":"رمز دفتر المسؤول","Sync User Data":"مزامنة بيانات المستخدم","Account No":"رقم الحساب","Party Full Name":"الاسم الكامل للحفل","Address Type":"نوع العنوان","Party Class":"فئة الحفل","Party Type":"نوع الحفل",Active:"نشيط","In Active":"غير نشط",LOC:"LOC","Current Quantity":"الكمية الحالية",Qty:"الكمية","Final Value":"القيمة النهائية","I have read and agreed to the":"لقد قرأت ووافقت على","terms and conditions":"الأحكام والشروط","of the service.":"من الخدمة.","Click here to view the size chart before selecting item(s).":"انقر هنا لعرض مخطط المقاسات قبل اختيار العنصر (العناصر).","Add transport request":"إضافة طلب النقل","Change route request":"طلب تغيير المسار","Transport cancel request":"طلب الغاء النقل",Rejected:"مرفوض",Cancelled:"ألغيت","Change request sent":"تم إرسال طلب التغيير","Cancel request sent":"تم إرسال إلغاء الطلب","Download undertaking":"تحميل التعهد","Pick up / Drop stop":"التقاط / إسقاط التوقف",Landmark:"معلم معروف","See fee details":"انظر تفاصيل الرسوم","Transport fee details :":"تفاصيل رسوم النقل:",Hide:"يخفي","Change request":"طلب تعديل","Change route":"تغيير المسار","Send route change request":"إرسال طلب تغيير المسار","Add reason for cancellation":"أضف سبب الإلغاء","Send transport cancel request":"إرسال طلب إلغاء النقل","Print Undertaking":"تعهد الطباعة","FROM DATE :":"من التاريخ :","TO DATE :":"حتى الآن:","OVERALL ATTENDANCE FOR YEAR":"الحضور الإجمالي لهذا العام","Overall Stats":"الإحصائيات الشاملة",Total:"المجموع","Present %":"حاضر ٪","Online Present:":"الحاضر عبر الإنترنت:","Tardy:":"متأخر:","*Disclaimer: This payment goes directly to the third-party service provider, and not to the school.":"*إخلاء المسؤولية: تذهب هذه الدفعة مباشرة إلى مزود الخدمة التابع لجهة خارجية، وليس إلى المدرسة.","Online Payment - Sale/Services":"الدفع عبر الإنترنت - البيع/الخدمات","Prov Date":"التاريخ السابق","Customer Type":"نوع العميل","Doc Type":"نوع المستند","Sal Code":"Sal Code","Student Name and Class":"اسم الطالب والفصل الدراسي","New Order":"طلب جديد","View Order":"عرض الطلب","Instructions :":"تعليمات :","I have read and agreed to the":"لقد قرأت ووافقت على","terms and conditions":"الأحكام والشروط","of the service.":"من الخدمة.","Click here to view the size chart before selecting item(s).":"انقر هنا لعرض مخطط المقاسات قبل اختيار العنصر (العناصر).",Category:"فئة","Item Code":"رمز العنصر",Quantity:"كمية","Sell Price":"سعر البيع",Value:"قيمة","Discount %":"تخفيض ٪","Discount AMT":"خصم AMT","VAT %":"نسبة ضريبة القيمة المضافة","Gross Amount":"المبلغ الإجمالي","VAT Amount":"قيمة الضريبة","Net Amount":"صافي المبلغ","Place Order":"مكان الطلب","Sr.no":"رقم التسلسلي",Checkout:"الدفع","Invoice no":"رقم الفاتورة","Sale / Services Detail":"تفاصيل المبيعات/الخدمة",SubCategory:"تصنيف فرعي","UOM Name":"اسم UOM","Malc Rate":"معدل مالك","Sell Price":"سعر البيع","Sell Price Incl.Vat":"سعر البيع شامل ضريبة القيمة المضافة","Current QTY.":"الكمية الحالية.","Dept Name":"اسم القسم","Section Name":"اسم الشعبة","Supplier Name":"اسم المورد","Continue to item selection":"الاستمرار في اختيار العنصر","Requisition no":"رقم الطلب","Requisition Date":"تاريخ الطلب","Payment Status":"حالة السداد","View details":"عرض التفاصيل","Doc No":"رقم الوثيقة","Invoice Date":"تاريخ الفاتورة","Invoice No":"رقم الفاتورة","Enroll No.":"رقم التسجيل","Student Name":"إسم الطالب","Sell Amt":"Sell Amt","Created By":"انشأ من قبل",OK:"نعم","Search User":"بحث المستخدم",Nationality:"جنسية","National Id":"الهوية الوطنية","ENROLL NO":"رقم التسجيل",CLASS:"صف","EMAIL ID":"عنوان الايميل",GRADE:"الصف",SECTION:"شعبة","MOBILE NO":"رقم الهاتف المحمول",ACTION:"عمل","Company Name":"اسم الشركة","Ledger Code":"رمز دفتر المسؤول","Sync User Data":"مزامنة بيانات المستخدم","Account No":"رقم الحساب","Party Full Name":"الاسم الكامل للحفل","Address Type":"نوع العنوان","Party Class":"فئة الحفل","Party Type":"نوع الحفل",Active:"نشيط","In Active":"غير نشط",Group:"مجموعة","Item CODE":"رمز العنصر",LOC:"LOC","Current Quantity":"الكمية الحالية",Qty:"الكمية","Final Value":"القيمة النهائية",Unpaid:"غير مدفوعة الأجر","Student Info":"معلومات الطالب","Parent Info":"معلومات ولي الأمر","Raise a ticket if any of the noneditable data is incorrect.":"ارفع تذكرة إذا كانت أي من البيانات غير القابلة للتعديل غير صحيحة.","Click ":"انقر",Section:"شعبة","Country of birth":"بلد الميلاد","Emirates of residence":"إمارات الإقامة","Area of residence":"منطقة الإقامة","Mobile Number":"رقم الهاتف المحمول",EID:"EID","EID Issue date":"تاريخ إصدار EID","EID Expiry date":"تاريخ انتهاء EID","Passport Issue Auth":"مصادقة إصدار جواز السفر","Passport Issue Place":"مكان اصدار جواز السفر","Passport Issue Date":"تاريخ اصدار جواز السفر","Passport Expiry Date":"وقت نفاذ صلاحيه جواز السفر","Click here to choose file":"انقر هنا لاختيار الملف","View Requisition":"عرض الطلب","Requisition no":"رقم الطلب","Requisition Date":"تاريخ الطلب","Requisition Details":"تفاصيل الطلب","Student Merit Demerit":"النقاط السلبية/ الايجابية لطالب","Total Students :":"إجمالي الطلاب :","Total Present :":"إجمالي الحضور :","Total Absent :":"إجمالي الغياب :","MERITS:":"الأيجابيات:","DEMERITS:":"السلبيات",Null:"فارغ","Merit/Demerit":"النقاط السلبية/ الايجابية",Points:"نقاط","Reported By":"تم عمل تقرير بواسطة",Comment:"ملاحظة","Pay By Link":"الدفع عن طريق الرابط","(cm)":"(سم)","(kg)":"(كلغ)",Other:"آخر","Dear Parent, Take a look at our most recent news concerning our Students and the school itself.":"عزيزي ولي الأمر، قم بإلقاء نظرة على آخر الأخبار المتعلقة بطلابنا والمدرسة نفسها.","Publish Date :":"تاريخ النشر :","Academic year":"السنة الأكاديمية",Current:"الحالي","Non Teaching Staff":"غير أعضاء هيئة التدريس","Teaching Staff":"أعضاء هيئة التدريس","Disclaimer - All continuous assessment grades are provisional and subject to change. The final official grade for the semester and year will appear on the official school report.":"إخلاء المسؤولية - جميع درجات التقييم المستمر مؤقتة وقابلة للتغيير. ستظهر الدرجة الرسمية النهائية للفصل الدراسي والسنة في تقرير المدرسة الرسمي.","Subject Name":"اسم الموضوع",Marks:"علامات","Out of Marks":"خارج العلامات",Comments:"ملاحظات",Reply:"رد","No Data Found...":"لاتوجد بيانات...","Student Comments":"تعليقات الطلاب","View Item Set":"عرض مجموعة العناصر","Note :":"ملحوظة :","Gross Amt":"المبلغ الإجمالي","VAT Amt":"مبلغ ضريبة القيمة المضافة","Net Amt":"صافي المبلغ","Invoice No":"رقم الفاتورة",SubCategory:"تصنيف فرعي","published date":"تاريخ النشر","Mojo Insights":"رؤى موجو",Positive:"إيجابي","Needs Improvement":"يحتاج الى تحسين",Print:"طباعة","Mojo waves":"موجات موجو","Given by":"معطى بواسطة","Leave Policy":"سياسه الاجازة",Calculate:"احسب","Support Priority":"أولوية الدعم","Try solve problem":"حاول حل المشكلة","Briefly talk about":"الحديث باختصار عن","Difficulty with":"صعوبة مع","Request id":"طلب معرف","Student's remark":"ملاحظات الطلاب","Counselor’s  remark":"ملاحظة المستشار","Provide the documents you believe may help us understand the type of assistance you require. (JPEG or PDF files less than 2MB in size are recommended.)":"قم بتقديم المستندات التي تعتقد أنها قد تساعدنا في فهم نوع المساعدة التي تحتاجها. (يُنصح باستخدام ملفات JPEG أو PDF بحجم أقل من 2 ميجابايت.)","To :":"ل :"," Reset":"إعادة ضبط"," Submit":"عرض"," Close":"يغلق","Goalsetting entry - Academic Year 2021-2022":"مدخل تحديد الأهداف - العام الدراسي 2021-2022",Subject:"موضوع","Subject Code":"رمز الموضوع","My Previous Grade target":"هدفي الصفي السابق","My Achievement for Previous Grade":"إنجازاتي في الصف السابق","Suggested Target for this Grade":"الهدف المقترح لهذا الصف","My Target for this Grade":"هدفي لهذا الصف",Submit:"يُقدِّم","TC Request":"طلب TC","TC Type":"نوع TC","Last date of attendance":"آخر موعد للحضور","Reason Of Leaving":"سبب المغادرة","Reason is required.":"السبب مطلوب.","I have read and agreed to the":"لقد قرأت ووافقت على","terms and conditions":"لقد قرأت ووافقت على","of the service.":"من الخدمة.",Submit:"يُقدِّم",Reset:"إعادة ضبط","Request Number":"رقم الطلب","Enroll Number":"رقم التسجيل",Reason:"سبب","Request Date":"تاريخ الطلب","Last Date of Attendance":"آخر موعد للحضور",Status:"حالة",Pending:"قيد الانتظار",Cancel:"يلغي",Approve:"يعتمد","Goal Setting View Application - Academic Year":"تطبيق عرض تحديد الأهداف - العام الدراسي",Admission:"قبول",of:"ل",Date:"تاريخ",Commencement:"بدء",MERITS:"المزايا",DEMERITS:"العيوب",Question:"سؤال","Save Later":"احفظ لاحقًا",description:"وصف",Medication:"دواء","Nursing and Treatment Care":"التمريض والرعاية العلاجية","Student Status":"حالة الطالب","Title: ":"عنوان: ","Publish Date: ":"تاريخ النشر: ","Short Description":"وصف مختصر","Short Description: ":"الوصف المختصر: ","Description: ":"وصف: ","Published Date":"تاريخ النشر",All:"الكل",all:"الكل"})}]),angular.module("sims").run(["gettextCatalog",function(e){e.setStrings("th",{"Parents Portal":"พอร์ทัลผู้ปกครอง",Login:"เข้าสู่ระบบ","Forget Password?":"ลืมรหัสผ่าน?",or:"หรือ","Sign in to SIMS!!!":"ลงชื่อเข้าใช้ SIMS !!!","Please enter username or email id":"โปรดป้อนชื่อผู้ใช้หรือรหัสอีเมล","Please enter password":"กรุณาใส่รหัสผ่าน","Keep me signed":"ให้ฉันเซ็นชื่อ","Enter your Email ID":"ป้อนรหัสอีเมลของคุณ","Send reset password link":"ส่งลิงค์รีเซ็ตรหัสผ่าน",Dashboard:"แผงควบคุม",Circular:"วงกลม",Student:"นักเรียน",Teacher:"ครู",Transport:"ขนส่ง",Parent:"ผู้ปกครอง",Attendance:"ผู้เข้าร่วม",Fees:"ค่าบริการ",Medical:"การแพทย์",Calender:"ปฏิทิน",Incidence:"อุบัติการณ์",Agenda:"วาระ",Handbook:"คู่มือ",Gallery:"แกลลอรี่","Loading...":"กำลังโหลด ...","Report Card":"บัตรรายงาน","Time table":"ตารางเวลา",LMS:"LMS","Select Student":"เลือกนักเรียน",Teachers:"ครูผู้สอน",Library:"ห้องสมุด",Suggestion:"ข้อเสนอแนะ","Student information":"ข้อมูลนักเรียน","Personal Information":"ข้อมูลส่วนบุคคล","Personal Details":"ข้อมูลส่วนตัว","Full Name":"ชื่อเต็ม","Family Name":"นามสกุล","In Regional":"ในภูมิภาค","Transport Application":"แอปพลิเคชันการขนส่ง","Enrollment Number":"หมายเลขการลงทะเบียน","Academic Year":"ปีการศึกษา","Route Name":"ชื่อเส้นทาง","Route Direction":"เส้นทางเส้นทาง","Effective From":"มีผลตั้งแต่","Effective Upto":"มีประสิทธิภาพไม่เกิน","Pick Up Stop":"หยุดรับ","Drop Stop":"หยุดหยุด",Edit:"แก้ไข","Parent Profile":"โปรไฟล์ผู้ปกครอง",Father:"พ่อ","Father Details":"รายละเอียดพ่อ","First Name":"ชื่อจริง","Nationality 1":"สัญชาติ 1","Nationality 2":"สัญชาติ 2",Address:"ที่อยู่",Apartment:"อพาร์ทเม้น",Building:"อาคาร",Street:"ถนน",Area:"พื้นที่",Country:"ประเทศ",State:"สถานะ",City:"เมือง","P.O. Box":"ตู้ไปรษณีย์",Summary:"สรุป","Contact Details":"รายละเอียดการติดต่อ",Phone:"โทรศัพท์",Mobile:"มือถือ",Fax:"แฟกซ์",Email:"อีเมล","Other Details":"รายละเอียดอื่น ๆ",Occupation:"อาชีพ",Company:"บริษัท","Passport Number":"หมายเลขหนังสือเดินทาง",Mother:"แม่",Guardian:"การ์เดียน","Mother Details":"รายละเอียดแม่","Guardian Details":"รายละเอียดผู้พิทักษ์","Summary Address":"ที่อยู่สรุป","Relation with Student":"ความสัมพันธ์กับนักศึกษา","Student Attendance Report":"รายงานการเข้าร่วมของนักเรียน","Todays Attendance":"วันนี้เข้าร่วม","View Your Attendance":"ดูการเข้าร่วมของคุณ","Select Date":"เลือกวันที่","Attendance Report":"รายงานการเข้าร่วม","Image Gallery":"คลังภาพ","From Date":"จากวันที่","To Date":"ถึงวันที่",Search:"ค้นหา","Record Not Available":"ไม่มีข้อมูลบันทึก",Subject:"หัวเรื่อง",Title:"หัวข้อ",Description:"คำอธิบาย","< Back":"<ย้อนกลับ","Show details":"แสดงรายละเอียด","Library Details":"รายละเอียดห้องสมุด","Transaction Date":"วันที่ทำธุรกรรม","Transaction Remark":"หมายเหตุธุรกรรม","Library Transaction Information":"ข้อมูลธุรกรรมห้องสมุด","Lib Transaction Num":"จำนวนธุรกรรม Lib","Lib Line Num":"Lib Line Num","Item Num":"จำนวนรายการ","Item Quantity":"ปริมาณรายการ","Actual Return Date":"วันที่ส่งคืนจริง","Expected Return Date":"วันที่คาดว่าจะกลับมา","Release Date":"วันที่วางจำหน่าย","Item Name":"ชื่อรายการ","Item Title":"ชื่อรายการ","Item Category":"หมวดรายการ","Item Author":"ผู้เขียนรายการ","Select Handbook":"เลือกคู่มือ",Save:"บันทึก",Cancel:"ยกเลิก","Reference Number":"หมายเลขอ้างอิง","Reference Description":"คำอธิบายอ้างอิง","Publish Date":"วันที่เผยแพร่",Attachments:"สิ่งที่แนบมา","Subject Teacher List":"รายชื่อครูวิชา","Medical Report":"รายงานทางการแพทย์",Visits:"การเข้าชม","Medical Details":"รายละเอียดการแพทย์","Health/Insurance No":"สุขภาพ / ประกันไม่มี","Issue Date":"วันที่ออก","Expiry Date":"วันหมดอายุ","Issuing Authority":"ผู้มีอำนาจออก","Blood Group":"กรุ๊ปเลือด",Height:"ความสูง","Hospital Name":"ชื่อโรงพยาบาล","Doctor's Name":"หมอชื่อ",Teeth:"ฟัน",Weight:"น้ำหนัก","Hospital Phone No":"หมายเลขโทรศัพท์โรงพยาบาล","Phone No":"หมายเลขโทรศัพท์","Health Details":"รายละเอียดสุขภาพ","Medical Description":"คำอธิบายทางการแพทย์","Vision Description":"คำอธิบายวิสัยทัศน์","Disability Description":"คำอธิบายความพิการ","Health Restriction":"ข้อ จำกัด ด้านสุขภาพ","Hearing Description":"คำอธิบายการได้ยิน","Visit Date":"วันที่เข้าชม","Attended Date":"วันที่เข้าร่วม","Followup Comment":"ความคิดเห็นติดตามผล","Complaint Description":"คำอธิบายการร้องเรียน","Attendant Observation":"การสังเกตผู้เข้าร่วม","Health Description":"คำอธิบายสุขภาพ","Attended By":"เข้าร่วมโดย","Student Menu":"เมนูนักเรียน","Passport/Visa Details":"รายละเอียดหนังสือเดินทาง / วีซ่า","Nick Name":"ชื่อนิค","Fam Name In Reg":"ชื่อ Fam In Reg","Birth Country":"ประเทศเกิด",Nationality:"สัญชาติ",Gender:"เพศ",Ethnicity:"เชื้อชาติ","Date of Birth":"วันเกิด",Religion:"ศาสนา","Address Information":"ข้อมูลที่อยู่","Academic Details":"รายละเอียดทางวิชาการ","School Name":"ชื่อโรงเรียน","Joined Date":"วันที่เข้าร่วม","Commenced Date":"วันที่เริ่มต้น","Class Rank":"อันดับของชั้นเรียน","Academic Status":"สถานะทางวิชาการ","Emergency Contact":"ติดต่อในกรณีฉุกเฉิน",House:"บ้าน",Name1:"ชื่อ 1","Phone No.1":"เบอร์โทรศัพท์ 1",Name2:"NAME2","Phone No.2":"โทรศัพท์หมายเลข 2","Transport Status":"สถานะการขนส่ง","Other Language":"ภาษาอื่น ๆ","Last Login":"เข้าสู่ระบบครั้งสุดท้าย",Language:"ภาษา","Primary Contact Pref":"Pref ผู้ติดต่อหลัก",Remark:"สังเกต","Passport Details":"รายละเอียดหนังสือเดินทาง","Passport No":"ไม่มีหนังสือเดินทาง","Issuing Place":"สถานที่ออก","ID Details":"รายละเอียดรหัส",ID:"รหัส","Visa Details":"รายละเอียดการขอวีซ่า","Visa No":"ไม่มีวีซ่า","Visa Type":"ประเภทวีซ่า","Department of Education Details":"รายละเอียดกรมสามัญศึกษา","ESIS No":"ESIS ไม่","Transfer Status":"สถานะการโอน","Registration Date":"วันที่ลงทะเบียน","Registration Status":"สถานะการลงทะเบียน","Fees Report":"รายงานค่าธรรมเนียม","Fee Type":"ประเภทค่าธรรมเนียม",Term:"ระยะเวลา","PAID FEES":"ค่าธรรมเนียมที่ต้องชำระ","REMAINING FEES":"ค่าธรรมเนียมที่เหลืออยู่","TODAY’S ATTENDANCE":"การเข้าร่วมวันนี้","Expected Fee":"ค่าธรรมเนียมที่คาดหวัง","Paid Fee":"ค่าธรรมเนียมจ่าย",Concession:"สัมปทาน","Concession Paid":"สัมปทานจ่าย","Remaining Fee":"ค่าธรรมเนียมที่เหลืออยู่","Upload Images":"อัปโหลดภาพ",Upload:"ที่อัพโหลด",Browse:"Browse","Report Card Name":"ชื่อบัตรรายงาน",Calendar:"ปฏิทิน","Select Time Table":"เลือกตารางเวลา",Name:"ชื่อ","Enrollment no":"ไม่มีการลงทะเบียน",Location:"สถานที่","Incidence Action Information":"ข้อมูลการดำเนินการเกี่ยวกับอุบัติการณ์","Consequence Information":"ข้อมูลที่ตามมา","Action Type":"ประเภทการกระทำ","Action Description":"คำอธิบายการกระทำ","Warning Code":"รหัสคำเตือน","Warning Description":"คำอธิบายคำเตือน","Action Point":"Action Point",Details:"รายละเอียด","Consequence Type":"ประเภทผลสืบเนื่อง","Consequence point":"จุดที่เกิดขึ้น","Consequence start date":"วันที่เริ่มต้นที่ตามมา","Consequence Code":"รหัสผลสืบเนื่อง","Consequence Desc":"ผลสืบเนื่องเรียง","Reported by":"รายงานโดย","Back-To Incidence":"กลับไปสู่อุบัติการณ์","Please select":"โปรดเลือก","Total Circular":"วงเวียนรวม",UnRead:"ยังไม่ได้อ่าน",Message:"ข้อความ","No Record Found":"ไม่พบบันทึก",Circulars:"หนังสือเวียน","From Date":"จากวันที่","To Date":"ถึงวันที่","Short Description":"คำอธิบายสั้น","File Name":"ชื่อไฟล์","News & Circulars":"ข่าวและหนังสือเวียน",Reset:"ตั้งค่าใหม่","Primary Contact Pref.":"Pref ผู้ติดต่อหลัก",Archive:"เก็บ","Circular No":"ไม่มีวงกลม",Month:"เดือน",month:"เดือน",View:"ดู",File:"ไฟล์",Download:"ดาวน์โหลด",SMS:"ข้อความ",Inbox:"กล่องจดหมาย",Date:"วัน","Posted Date":"วันที่โพสต์","Back-":"กลับ-","Email Id":"ชื่ออีเมล์",Particulars:"รายการ","Sorry No Record Found":"ขออภัยไม่พบบันทึก","Sorry File Not Found":"ขออภัยไม่พบไฟล์","Total Circulars":"หนังสือเวียนทั้งหมด","OVERALL ATTENDANCE FOR MONTH":"การเข้าร่วมโดยรวมเป็นเดือน",TOTAL:"รวม","Present:":"ปัจจุบัน","Absent:":"ขาด",Unmarked:"ป้าย","CIRCULAR DETAILS":"รายละเอียดวงกลม",Read:"อ่าน",Unread:"ยังไม่ได้อ่าน","FEES DETAILS":"ค่าธรรมเนียมรายละเอียด",PAID:"จ่าย",REMAINING:"ที่เหลือ",NOTIFICATIONS:"การแจ้งเตือน",Notifications:"การแจ้งเตือน","View All":"ดูทั้งหมด","#Gallery":"#Gallery",Album:"อัลบั้ม","Direct Chat":"แชทโดยตรง",Send:"ส่ง","Browser Usage":"การใช้เบราว์เซอร์","Student Profile":"ประวัตินักศึกษา",Other:"อื่น ๆ","Pri Contact Pref":"Pri Pref Pref","Emergency Contact 2":"ติดต่อฉุกเฉิน 2",Passport:"หนังสือเดินทาง","National ID":"รหัสประจำชาติ","National ID and Visa Details":"รายละเอียดบัตรประจำตัวประชาชนและวีซ่า","Civil ID":"โยธา ID","Department of Education":"แผนกการศึกษา","Ministry Details":"รายละเอียดกระทรวง","School Details":"รายละเอียดโรงเรียน","Date of Admission":"วันของการรับสมัคร","Date of Commencement":"วันที่เริ่มต้น",About:"เกี่ยวกับ",Me:"ฉัน","Enroll. No.":"ลงทะเบียนหมายเลข",ClassRank:"อันดับของคลาส","From Date":"จากวันที่","To Date":"ถึงวันที่","Monthly Attendance":"การเข้าร่วมรายเดือน","Parent Care Officer":"เจ้าหน้าที่ดูแลผู้ปกครอง",Mentor:"ที่ปรึกษา",Curriculum:"หลักสูตร",BirthCountry:"ประเทศเกิด","Total working days:":"วันทำงานทั้งหมด",Unmarked:"ป้าย","Height (cm)":"ความสูง (ซม.)","Card Number":"หมายเลขบัตร","Issuing Date":"วันที่ออก","Hospital Phone":"โทรศัพท์โรงพยาบาล","Doctor Name":"หมอชื่อ","Other Description":"คำอธิบายอื่น ๆ ",Medication:"ยา",Duration:"ระยะเวลา",Dosage:"ปริมาณ","Medicine Name":"ชื่อยา",Health:"สุขภาพ",BMI:"ค่าดัชนีมวลกาย",Index:"ดัชนี","Weight (kg)":"น้ำหนัก (กิโลกรัม)","Medication Description":"คำอธิบายยา","Health Restriction Description":"คำอธิบายข้อ จำกัด ด้านสุขภาพ","Doctor Phone":"โทรศัพท์หมอ",Submit:"ส่ง",News:"ข่าว",Search:"ค้นหา","Academic Year":"ปีการศึกษา",Month:"เดือน",week:"สัปดาห์",day:"วัน","School Album":"อัลบั้มโรงเรียน","Fax no.":"หมายเลขแฟกซ์","Parent Id":"รหัสผู้ปกครอง","Passport No.":"หมายเลขหนังสือเดินทาง",First:"ครั้งแรก",Middle:"กลาง",Last:"ล่าสุด","Summary Address":"ที่อยู่สรุป",Country:"ประเทศ",State:"สถานะ",City:"เมือง","PO Box":"ตู้ไปรษณีย์",Phone:"โทรศัพท์",Mobile:"มือถือ",Email:"อีเมล",Fax:"แฟกซ์",Nationality:"สัญชาติ","Passport Number":"หมายเลขหนังสือเดินทาง","Father Other Details":"พ่อรายละเอียดอื่น ๆ ","Family Name":"นามสกุล",Company:"บริษัท","Building Number":"อาคารเลขที่",Occupation:"อาชีพ","Mother Other Details":"แม่รายละเอียดอื่น ๆ ","Street Number":"หมายเลขถนน","Device Settings":"การตั้งค่าอุปกรณ์","Start Date":"วันที่เริ่มต้น","End Date":"วันที่สิ้นสุด",Clear:"ชัดเจน",Examination:"การตรวจสอบ","View Exam":"ดูการสอบ",Papers:"เอกสาร","PAPER NAME":"PAPER NAME",EXAM:"สอบ","Assginment Upload":"การอัปโหลด Assginment",Name:"ชื่อ",Class:"ชั้น","Freeze date":"วันที่แช่แข็ง","Submission  Date":"วันที่ยื่น","Assignment Title":"ชื่อการมอบหมาย",YEAR:"ปี","GRADE/SECTION":"ระดับการศึกษา / ส่วน",Action:"หนังบู๊","Unit Details":"รายละเอียดหน่วย","Topic and Sub Topic Details":"รายละเอียดหัวข้อและหัวข้อย่อย",Print:"พิมพ์","APPLY NEW":"สมัครใหม่","Bus No":"ไม่มีรถบัส","Share Location":"แชร์ตำแหน่ง",Status:"สถานะ","Leave Application":"ออกจากแอปพลิเคชัน","Apply Student Leave":"สมัครลานักเรียน","Choose File":"เลือกไฟล์","Leave Type":"ปล่อยประเภท",Reason:"เหตุผล",Attachment:"สิ่งที่แนบมา","Missed Cycle Test/Term Exam":"การทดสอบครบวงจร / การสอบเทอมที่ไม่ได้รับ","Contact Information While On Leave":"ข้อมูลการติดต่อขณะออกเดินทาง",Address:"ที่อยู่","Landline Number":"หมายเลขโทรศัพท์พื้นฐาน","Mobile Number":"เบอร์มือถือ","Email Id":"ชื่ออีเมล์","Invalid Email Id.":"รหัสอีเมลไม่ถูกต้อง","Leave Type":"ปล่อยประเภท",No:"ไม่",Yes:"ใช่","Weekly Assessment":"การประเมินรายสัปดาห์",Report:"รายงาน","Select Month":"เลือกเดือน","Select Week":"เลือกสัปดาห์","Select Subject":"เลือกหัวเรื่อง",Show:"แสดง",Term:"ระยะเวลา","No record(s) found.":"ไม่พบบันทึกเลย","Fee Details":"รายละเอียดค่าธรรมเนียม","View Previous FeeDetails":"ดูรายละเอียดค่าธรรมเนียมก่อนหน้า","Payment Details":"รายละเอียดการจ่ายเงิน","School Name":"ชื่อโรงเรียน","Parent name":"ชื่อผู้ปกครอง",Website:"เว็บไซต์","School Country":"ประเทศโรงเรียน","Parent Id":"รหัสผู้ปกครอง","Payment Type":"ประเภทการชำระเงิน","Account N#":"บัญชี N #","Bank Code":"รหัสธนาคาร","Swift Code":"รหัสสวิฟท์",UnPaid:"ค้างชำระ","Partial Paid":"จ่ายบางส่วน","Grand Total":"ผลรวมทั้งสิ้น","Total Paid":"ทั้งหมดที่จ่าย","Total Due":"ครบกำหนดรวม",To:"ถึง",From:"จาก","Request For Transfer Certificate":"คำขอโอนใบรับรอง","Expected Date":"วันที่คาดหวัง","Reason Of Leaving":"เหตุผลที่ออกไป",Learn:"เรียนรู้",Arabic:"อาหรับ","REFERENCE NAME":"ชื่ออ้างอิง","REFERENCE DATE":"วันที่อ้างอิง","Exam Material Reference View":"มุมมองการอ้างอิงการสอบวัสดุ",Attachment:"สิ่งที่ส่งมา","My Calendar":"ปฏิทินของฉัน","My Inbox":"กล่องจดหมายเข้าของฉัน","Change Password":"เปลี่ยนรหัสผ่าน","Log Out":"ออกจากระบบ",Welcome:"ยินดีต้อนรับ","Old Password":"รหัสผ่านเก่า","New Password":"รหัสผ่านใหม่","Confirm Password":"ยืนยันรหัสผ่าน",Close:"ปิด","Remember me !":"จดจำฉัน !","Forgot your password?":"ลืมรหัสผ่านหรือไม่?",Acknowledge:"รับทราบ",Present:"ปัจจุบัน","GRADE NAME":"GRADE NAME",Attachments:"สิ่งที่แนบมา",Date:"วันที่",Alert:"การแจ้งเตือน","Your child does not use school bus transportation.":"ลูกของคุณไม่ใช้รถโรงเรียน",Pending:"รอ",Approved:"อนุมัติ","Not Approved":"ไม่อนุมัติ","SIS Broadcast":"SIS Broadcast","Short Description":"คำอธิบายสั้น ","Publish Date":"วันที่เผยแพร่ ",Attachments:"สิ่งที่แนบมา ","Home Work and Study material":"งานบ้านและวัสดุการศึกษา",DOB:"วันเกิด","Survey Selection":"การเลือกแบบสำรวจ","Survey Description":"คำอธิบายแบบสำรวจ","Survey Subject":"หัวเรื่องการสำรวจ","User Group Name":"ชื่อกลุ่มผู้ใช้","Survey Start Date":"วันที่เริ่มสำรวจ","Survey End Date":"วันที่สิ้นสุดการสำรวจ",Feedback:"ความคิดเห็น",Rating:"คะแนน","Start Survey":"เริ่มสำรวจ",Absent:"ขาด",Instructions:"คำแนะนำ","Survey Type":"ประเภทการสำรวจ","Total Number Of Questions":"จำนวนคำถามทั้งหมด","Number Of Questions Attempt":"จำนวนคำถามที่พยายามทำ","DO NOT Refresh The Page":"อย่ารีเฟรชหน้า","Time Left":"เวลาเหลือ",of:"ของ",Question:"คำถาม",previous:"ก่อนหน้านี้",Next:"ต่อไป",Back:"กลับ","Student Name":"ชื่อนักเรียน","RECEIPT NO":"รับไม่","Total Amount":"ยอดรวม","Received By":"ที่ได้รับจาก","Cheque Status":"ตรวจสอบสถานะ","Cheque/DD No":"ตรวจสอบ / ไม่ DD","Payment Mode":"โหมดการชำระเงิน",Balance:"สมดุล","Fee Amount":"จำนวนค่าธรรมเนียม","Expected Amount":"จำนวนเงินที่คาดหวัง","Sr.No":"Sr.No","New Subject":"วิชาใหม่",OK:"ตกลง","Education Authority No":"หน่วยงานการศึกษาไม่มี","Transaction Status":"สถานะการทำธุรกรรม","Lib Transaction Number":"หมายเลขธุรกรรม Lib","Lib Line Number":"หมายเลขบรรทัด Lib","Item Number":"หมายเลขรายการ","Book Accession Number":"หมายเลขการจองหนังสือ","Add Book Review":"เพิ่มรีวิวหนังสือ","Library Book Review Details":"รายละเอียดการตรวจสอบหนังสือห้องสมุด","Sr No":"Sr No","Login Id":"ชื่อเข้าสู่ระบบ","Book name":"ชื่อหนังสือ",Rating:"คะแนน",comment:"ความคิดเห็น","Book Details":"รายละเอียดหนังสือ","Book Title":"ชื่อหนังสือ","Book Author":"ผู้แต่งหนังสือ","Book Publisher":"สำนักพิมพ์หนังสือ","Book ISBN Number":"หมายเลข ISBN หนังสือ","Book Category":"หมวดหมู่หนังสือ","Book Sub-Category":"หมวดหมู่ย่อยหนังสือ","Book Publication":"หนังสือสิ่งพิมพ์",Available:"ที่มีอยู่",Unavailable:"ไม่พร้อม","Add Library Book Rating":"เพิ่มคะแนนหนังสือในห้องสมุด","Book Ratring":"หนังสือ Ratring","Best student ":"นักเรียนที่ดีที่สุด","School Badge View":"มุมมองป้ายโรงเรียน","Online Admission":"เข้าชมออนไลน์","application details ":"รายละเอียดแอปพลิเคชัน","grade name ":"ชื่อเกรด","enter prospective student name & information":"ป้อนชื่อและข้อมูลนักเรียนที่คาดหวัง","child first name (as on passport)":"ชื่อเด็ก (เหมือนหนังสือเดินทาง)","Child's Middle Name(as on Passport)":"ชื่อกลางของเด็ก (ตามหนังสือเดินทาง)","Child's Last Name (as on passport)":"นามสกุลของเด็ก (ในหนังสือเดินทาง)","birth date":"วันที่เกิด",confirm:"ยืนยัน",grade:"เกรด","student name ":"ชื่อนักเรียน ","parent email id ":"รหัสอีเมลหลัก","parent name ":"ชื่อผู้ปกครอง ","Family and Friend Referral Program":"โปรแกรมแนะนำครอบครัวและเพื่อน","enter referal student name and information ":"ป้อนชื่อและข้อมูลนักเรียนอ้างอิง","First Name (as on Passport)":"ชื่อ (ตามหนังสือเดินทาง)","Middle Name(as on Passport)":"ชื่อกลาง (ตามหนังสือเดินทาง)","Last Name(as on Passport)":"นามสกุล (ตามหนังสือเดินทาง)","Personal Email":"อีเมลส่วนตัว",appearing:"ปรากฏ",tagore:"ฐากูร",sunday:"อาทิตย์","Monday ":"วันจันทร์",Tuesday:"อังคาร",Wednesday:"พุธ",Thursday:"พฤหัสบดี",Friday:"ศุกร์",Saturday:"วันเสาร์","expected amount ":"จำนวนที่คาดหวัง","Special Education Needs Description":"คำอธิบายความต้องการการศึกษาพิเศษ","Title ":"ชื่อ","document upload":"อัปโหลดเอกสาร","file name ":"ชื่อไฟล์ ","criteria ":"เกณฑ์","Health report":"รายงานสุขภาพ","Report name ":"ชื่อรายงาน","Time table view ":"มุมมองตารางเวลา","total lectures per week":"การบรรยายทั้งหมดต่อสัปดาห์","ABQ AMBASSADOR":"ABQ AMBASSADOR","Click here for more details":"คลิกที่นี่เพื่อดูรายละเอียดเพิ่มเติม","View Application History":"ดูประวัติแอปพลิเคชัน","Sohar International School":"โรงเรียนนานาชาติ Sohar","As Seeb International School":"โรงเรียนนานาชาติเซบบ","Azzan Bin Qais International School":"โรงเรียนนานาชาติ Azzan Bin Qais","Application Details":"รายละเอียดแอปพลิเคชัน","Enter Referral Student Name and Information":"ป้อนชื่อและข้อมูลนักศึกษาอ้างอิง","Child's First Name":"ชื่อเด็ก","Child's Middle Name":"ชื่อกลางของเด็ก","Child's Last Name":"นามสกุลของเด็ก","Enter Referral Parent Details":"ป้อนรายละเอียดผู้ปกครองอ้างอิง","Middle Name":"ชื่อกลาง","Last Name":"นามสกุล","Parent Email Id":"รหัสอีเมลหลัก","Parent Name":"ชื่อผู้ปกครอง","Family ID":"รหัสครอบครัว","Name of Student":"ชื่อนักเรียน","Current outstanding fees":"ค่าธรรมเนียมค้างชำระในปัจจุบัน","Balance Due(OMR)":"ยอดเงินที่ต้องชำระ (OMR)","PDC Total(OMR)":"รวม PDC (OMR)","Net Balance(OMR)":"ยอดเงินคงเหลือสุทธิ (OMR)","Amount (OMR)":"จำนวนเงิน (OMR)","Amount to Pay":"จำนวนเงินที่ต้องจ่าย","Pay Now":"จ่ายตอนนี้",Total:"รวม","Welcome to 2019-20 online Seat confirmation":"ยินดีต้อนรับสู่การยืนยันที่นั่งออนไลน์ 2019-20","Student ID":"รหัสนักศึกษา","Current Grade":"เกรดปัจจุบัน",Welcome:"ยินดีต้อนรับ","Next Grade":"เกรดถัดไป","Returning to School":"กลับไปโรงเรียน","Transport required":"การขนส่งที่จำเป็น","Direction/Distance":"ทิศทาง / ระยะทาง","Transport fee":"ค่าธรรมเนียมการขนส่ง","Current Outstanding Fees":"ค่าธรรมเนียมคงค้างปัจจุบัน ","Balance Due(OMR)":"ยอดคงเหลือเนื่องจาก (OMR)","PDC Total(OMR)":"PDC รวม (OMR)","Net Balance(OMR)":"ยอดคงเหลือสุทธิ (OMR)","Pay Current Outstanding Fees":"ชำระค่าธรรมเนียมคงค้างปัจจุบัน","Fees 2019-20 (OMR)":"ค่าธรรมเนียม 2019-20 (OMR)","Total Due":"รวมครบกำหนด","Paying Now":"จ่ายตอนนี้","Will pay at School":"จะจ่ายที่โรงเรียน","The above fees do not include  Uniform and External Exam fees  as may be applicable.I wish to confirm a seat for my child/Children as per the payment option selected below.":"ค่าธรรมเนียมข้างต้นไม่รวมค่าธรรมเนียมการสอบและนอกเครื่องแบบตามที่บังคับใช้ฉันต้องการยืนยันที่นั่งสำหรับเด็ก / เด็กตามตัวเลือกการชำระเงินที่เลือกด้านล่าง","One Payment":"ชำระครั้งเดียว","2 Post Dated Cheques":"2 ลงวันที่เช็ค","8 Post Dated Cheques":"8 เช็คลงวันที่แล้ว","I understand that seats for next year will be confirmed only upon":"ฉันเข้าใจว่าที่นั่งสำหรับปีหน้าจะได้รับการยืนยันเมื่อ","1)Payment of seat confirmation fee 200 OMR per child":"1) ชำระค่าธรรมเนียมการยืนยันที่นั่ง 200 OMR ต่อเด็กหนึ่งคน","2) Receipt of posted dated cheques as per above selected payment plan":"2) การรับเช็คที่ลงวันที่แล้วตามแผนการชำระเงินที่เลือกด้านบน","3) The outstanding amount of":"3) จำนวนที่ค้างชำระ","is paid full.":"ชำระเต็มแล้ว","Please verify and update below information and proceed to payment":"โปรดยืนยันและอัปเดตข้อมูลด้านล่างและดำเนินการชำระเงิน","Father Mobile Number":"พ่อหมายเลขโทรศัพท์มือถือ","Father Email ID":"ID อีเมลของพ่อ","Mother Mobile Number":"หมายเลขโทรศัพท์มือถือ","Mother Email ID":"รหัสอีเมลแม่","Please note that the 2019-20 seat will be confirmed after these dues are fully settled.":"โปรดทราบว่าที่นั่ง 2019-20 จะได้รับการยืนยันหลังจากชำระค่าธรรมเนียมเหล่านี้แล้ว","1. You can choose to pay the full amount. Minimum payable is 200 OMR per student. If Transport is selected, minimum deposit of 100 OMR will be added.":"1. คุณสามารถเลือกชำระเงินเต็มจำนวนเจ้าหนี้ขั้นต่ำคือ 200 OMR ต่อนักเรียนถ้าเลือกการขนส่งการฝากขั้นต่ำ 100 OMR จะถูกเพิ่ม","Fee Payment":"ชำระค่าธรรมเนียม","Online Payment History":"ประวัติการชำระเงินออนไลน์","Family Statement of accounts":"งบการเงินของครอบครัว","Transport Deposit":"เงินฝากการขนส่ง","Advance fee (seat confirmation payable now)":"ค่าธรรมเนียมล่วงหน้า (ยืนยันที่นั่งเรียบร้อยแล้ว)","Discount (Sibling)":"ส่วนลด (พี่น้อง)"})}]),function(){"use strict";var e=["ang1dev","aas","ang1prod","saisd","saiss","saisa","saids","saisu","sokstaging","tsk","tsis","sisqatar","abps","svs","nas","ccw64","clarahealtonation","facp","gurukulponda","modernjr","nacasca","puneiat","sessos","smsk","smsm","vdpes","vmsiihe","cbsesmf","ds","sia","sok","uksmf","ics","iisqatar","christ","dmc","dvhs","dvhss","dvps","ges","iis","slis","clarionschool","oesco","abqstaging","demo","asdportal","apsportal","aelc","lpn","portal","bloomeseuaq","bloomesealwadi","modern","asis","abqis","siso","lazulite","bwa","network","sisub","alimtiaz","newarts","feebilling","bloomeseajman","bloomesealmizhar","bloomesealtwar","pippend","pippena","pippens","bnad","skiply","bloomcharteralghaf","qis","aaf","ans","ars","ajs","agk","jhs","ags","deploy","arf","cae","ksa","iisriyadh","iipsr","apv","mus","mbhs","miz","mae","kha","aisa","impact","lln","csmps","zaya","connect","gus","rushmore","dess"];const t=window.location.href.includes("leamseducation.com");let a=location.host.split(".")[0],s="/ppapi/",o="/kindoapi/";(location.host.includes("ang1dev.mograsys.co.in")||location.host.includes(".pr.mograsys.co.in"))&&(s="/ppapi-staging/",o="/kindoapi-staging/"),location.host.includes("ang1test.mograsys.co.in")&&(s="/ppapi-qa/",o="/kindoapi-staging/"),angular.module("config",[]).constant("ENV",{name:"production",apiUrl:s,kindoApi:o,siteUrl:"https://api.mograsys.com/ppapi/",docUrl:t?"https://assets.leamseducation.com/Content/":e.includes(a)?"https://assets.mograsys.com/Content/":"https://api.mograsys.com/kindoapi/Content/",AWS:e,reportUrl:"/reportapi/api/reports/",newReportUrl:t?"https://reports.leamseducation.com/":["modernjr","modern"].includes(a)?"https://rep1.mograsys.com/":"https://rep.mograsys.com/",developmentUrl:["ang1dev","ang1test","127"],isLeamEducation:t})}(),function(){"use strict";angular.module("sims.module.core",["sims","gettext"])}(),function(){"use strict";angular.module("sims.module.core").controller("LayoutController",["$scope","gettextCatalog",function(e,t){e.title=t.getString("Parents Portal");for(var a,s=location.hash.substring(1),o={},n=/([^&=]+)=([^&]*)/g;a=n.exec(s);)o[decodeURIComponent(a[1])]=decodeURIComponent(a[2]);Object.keys(o).length>0&&localStorage.setItem("oauth2-test-params",JSON.stringify(o)),e.change_fun=function(a){e.title=t.getString(a)}}])}(),function(){"use strict";angular.module("sims.module.users",["sims","gettext"])}(),function(){"use strict";angular.module("sims.module.users").config(["$routeProvider","$httpProvider",function(e,t){t.interceptors.push(["$q","$location",function(e,t){return{responseError:function(a){var s=function(){return{toastError:function(){},toastWarning:function(){}}};return 401===a.status&&(t.nextAfterLogin=t.path(),"/login"===t.path()?console.log("401 while on router on login path"):("/register"!==t.path()&&t.path("/login"),s.toastWarning("Error 401 received","We received a 401 error from the API! Redirecting to login"))),404===a.status&&console.log(a),422===a.status&&console.log(a),0===a.status&&(t.path("/"),s.toastError("Connection Refused","The connection to the API is refused. Please verify that the API is running!")),e.reject(a)}}}])}])}(),function(){"use strict";var e=angular.module("sims.module.users");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("LoginController",["$scope","$state","$rootScope","AuthenticationService","$timeout","$location","gettextCatalog","$http","ENV",function(e,t,a,s,o,n,r,i,l){e.username="",e.password="",e.schoolUrl="",e.user={},e.logo_big_thai=!1,e.signup=function(){},e.showForgetPaaword=!1,e.toggleLoginScreen=function(){e.showForgetPaaword=!e.showForgetPaaword},e.schoolUrl=window.location.href;const d=s.getSchooldId();i.defaults.headers.common.schoolId=d;const m=function(t){i.defaults.headers.common.schoolId=t,localStorage.setItem("schoolId",t),e.SchoolLogo=l.docUrl+i.defaults.headers.common.schoolId+"/Images/SchoolLogo/",e.pwd=!1,["abqis","asis","siso"].includes(t)&&(e.logo_big=!0,e.logo_big1=!0),"iconems"==t&&(e.mobile_big=!0,e.logo_big_thai=!0,e.logo_big1=!0,e.logo_big=!1),e.edt={sims_user_name_en:void 0},["modern","schoolId"].includes(t)?e.pwdsave=function(){if(e.fbtn=!0,e.flgMobi)e.pwd=!1,e.securitydata==e.edt.emailId?i.post(l.apiUrl+"api/authenticate/sendmobile?strUsername="+e.edt.sims_user_name_en+"&mobile="+e.securitydata+"&msg=please click here for reset password http://"+i.defaults.headers.common.schoolId+".mograsys.com/ppn/ChangePassword.html#?foo="+e.edt.sims_user_name_en,t).then(function(t){e.pwd=!0,e.edt.pwd_success="Your password is sent to your mobile number",e.fbtn=!1}):(e.pwd=!0,e.edt.pwd_success="Please Enter Correct Mobile!!!",e.fbtn=!1);else if(e.securitydata==e.edt.emailId){e.pwd=!1;var t={emailsendto:e.securitydata,sender_emailid:e.securitydata,subject:"Parent Password",body:s.Base64.encode(e.edt.sims_user_name_en)};i.post(l.apiUrl+"api/parentportal/SendEmail",t).then(function(t){e.fbtn=!1,e.pwd=!0,e.edt.pwd_success="Your Reset password link  is sent to your email id"})}else e.pwd=!0,e.edt.pwd_success="Please Enter Correct Email!!!",e.fbtn=!1}:e.pwdsave=function(){if(e.fbtn=!0,e.flgMobi)e.uname=s.Base64.encode(e.edt.sims_user_name_en),e.pwd=!1,void 0!=e.edt.emailId&&e.securitydata==e.edt.emailId?""!=e.Phone_temp?i.post(l.apiUrl+"api/authenticate/sendmobile?strUsername="+e.edt.sims_user_name_en+"&mobile="+e.securitydata+"&uname="+e.uname+"&msg=please click here for reset password http://"+i.defaults.headers.common.schoolId+".mograsys.com/ppn/ChangePassword.html#?foo="+e.edt.sims_user_name_en).then(function(t){e.obj1=t.data,(e.obj1=!0)?(e.pwd=!0,e.edt.pwd_success="Your password is sent to your mobile number",e.fbtn=!1):(e.pwd=!0,e.edt.pwd_success="Password not sent, Please Contact Administrator.",e.fbtn=!1)}):(e.pwd=!0,e.edt.pwd_success="Template not defined, Please Contact Administrator.",e.fbtn=!1):(e.pwd=!0,e.edt.pwd_success="Please Enter Correct Mobile!!!",e.fbtn=!1);else if(void 0!=e.edt.emailId)if(e.securitydata==e.edt.emailId){let t={emailsendto:e.securitydata,sender_emailid:e.securitydata,subject:"Parent Password",Email_temp:e.Email_temp,Phone_temp:e.Phone_temp,body:s.Base64.encode(e.edt.sims_user_name_en),Parameter:e.Parameter,Email_temp:e.Email_temp,Phone_temp:e.Phone_temp};""!==e.Email_temp?i.post(l.apiUrl+"api/parentportal/SendEmail",t).then(function(t){""!==t.data?(e.fbtn=!0,e.pwd=!0,e.edt.pwd_success="Your Reset password link  is sent to your email id"):(e.fbtn=!1,e.pwd=!0,e.edt.pwd_success="Email Template Is Undefined, Please Contact Administrator.")}):(e.fbtn=!1,e.pwd=!0,e.edt.pwd_success="Email Template Is Undefined, Please Contact Administrator.")}else e.pwd=!0,e.edt.pwd_success="Oops, Entered email address is not found",e.fbtn=!1;else e.pwd=!0,e.edt.pwd_success="Please enter valid login credentials",e.fbtn=!1},e.footershow=!1,i.get(l.apiUrl+"api/common/getDataParameter?sims_appl_code=Common&sims_appl_form_field=FooterVisible").then(function(t){e.footervisible=t.data,console.log(e.footervisible),e.footervisible.length>0&&"Y"==e.footervisible[0].sims_appl_form_field_value4?(e.footershow=!0,i.get(e.apiUrl+"api/common/getDataParameter?sims_appl_code=Common&sims_appl_form_field=Footer").then(function(t){e.termofuse=t.data,console.log(e.termofuse)})):e.footershow=!1}),e.display=!1,i.get(l.apiUrl+"api/common/getSchoolDetails").then(function(t){e.display=!0,e.obj1=t.data,e.SchoolDetails=t.data}),i.get(l.apiUrl+"api/common/getSSODetails?sso=SSO&microsoftppn=MicrosoftPPN").then(function(t){e.ssodata=t.data,console.log(e.ssodata.table);for(var a=0;e.ssodata.table.length>a;a++)if("MicrosoftPPN"==e.ssodata.table[a].app_parameter1){e.client_id=e.ssodata.table[a].app_parameter2,e.tentant_id=e.ssodata.table[a].app_parameter3,e.redirectUrl=e.ssodata.table[a].app_parameter5,"Y"==e.ssodata.table[a].app_parameter_status&&(e.btnvisible=!0);break}window.config={tenant:e.tentant_id,clientId:e.client_id,postLogoutRedirectUri:e.redirectUrl};var s=new AuthenticationContext(config);e.microsoftLogin=function(){s.login()};var o=s.isCallback(window.location.hash);s.handleWindowCallback(),o&&!s.getLoginError()&&(window.location=s._getItem(s.CONSTANTS.STORAGE.LOGIN_REQUEST),console.log(window.location));var n=s.getCachedUser();n&&(console.log(n.userName),i.get(l.apiUrl+"api/common/getuserpass?email_id="+n.userName).then(function(t){console.log(t.data),""==t.data?(swal({title:"Alert",text:"Your email Id is not found please contact to administrator",imageUrl:"assets/img/notification-alert.png"}),e.show_auth=!1):1==t.data.length&&e.Login_microsoft(t.data[0].comn_user_name,t.data[0].comn_user_password)}))}),i.get(l.apiUrl+"api/common/getSSODetails?sso=SSO&microsoftppn=gmailPPN").then(function(t){if(!t.data||!1!==t.data.sso){e.ssodata=t.data;for(var a=0;e.ssodata.table.length>a;a++)if("gmailPPN"==e.ssodata.table[a].app_parameter1){e.client_id_gmail=e.ssodata.table[a].app_parameter2,e.redirectUrl_gmail=e.ssodata.table[a].app_parameter5,window.localStorage.ClientSecret=e.ssodata.table[a].app_parameter3,"Y"==e.ssodata.table[a].app_parameter_status&&(e.gmail=!0);break}}}),e.login_google=function(){var t=e.client_id_gmail;window.localStorage.ClientId=t;var a=e.redirectUrl_gmail,s=document.createElement("form");s.setAttribute("method","GET"),s.setAttribute("action","https://accounts.google.com/o/oauth2/v2/auth");var o={client_id:t,redirect_uri:a,discoveryDocs:["https://www.googleapis.com/discovery/v1/apis/classroom/v1/rest"],scope:"https://www.googleapis.com/auth/classroom.courses  https://www.googleapis.com/auth/classroom.coursework.students https://www.googleapis.com/auth/drive.metadata.readonly https://www.googleapis.com/auth/classroom.rosters",state:"try_sample_request",include_granted_scopes:"true",response_type:"token"};for(var n in o){var r=document.createElement("input");r.setAttribute("type","hidden"),r.setAttribute("name",n),r.setAttribute("value",o[n]),s.appendChild(r)}document.body.appendChild(s),s.submit()};var a=JSON.parse(localStorage.getItem("oauth2-test-params"));if(!jQuery.isEmptyObject(a)&&a&&a.access_token){var o=new XMLHttpRequest;o.open("GET","https://www.googleapis.com/drive/v3/about?fields=user&access_token="+a.access_token),o.onreadystatechange=function(t){if(4===o.readyState&&200===o.status){var a=JSON.parse(o.response);i.get(l.kindoApi+"api/common/getuserpass?email_id="+a.user.emailAddress).then(function(t){""==t.data?(swal({title:"Alert",text:"Your email id is not found. Please contact the administrator.",imageUrl:"assets/img/notification-alert.png"}),e.show_auth=!1):1==t.data.length&&(window.localStorage.login_google=!0,e.Login_microsoft(t.data[0].comn_user_name,t.data[0].comn_user_password))})}else 4===o.readyState&&401===o.status&&e.login_google()},o.send(null)}};e.showSchoolConnection=window.location.href.includes(".mograsys.co.in")||window.location.href.includes("localhost"),e.showSchoolConnection?i.get(l.kindoApi+"api/common/getAllConnections").then(function(t){e.schoolList=t.data}).catch(function(e){console.error(e)}):m(d),e.onChangeSchool=function(){m(e.school_id)},e.Login=function(){if(e.showForgetPaaword)e.toggleLoginScreen();else{e.userid=e.username.toLowerCase();var n=e.userid.split(".");["saiss"].includes(i.defaults.headers.common.schoolId)?i.get(l.apiUrl+"api/common/getLoginUserType?uname="+e.userid).then(function(t){t.data.length>0?e.username2=t.data.toLowerCase():n.length>0&&(1==n.length?e.username2=n[0]:e.username2=n[1])}):n.length>0&&(1==n.length?e.username2=n[0]:e.username2=n[1]),e.showMessage=!1,i.get(l.apiUrl+"api/common/getlastLogin?uname="+e.username2).then(function(n){e.isfistTimeLog=n.data,a.isfistTimeLog=e.isfistTimeLog,i.get(l.apiUrl+"api/common/getUname?name="+e.username2).then(function(a){""!=a.data?(e.uname=a.data,s.Login(e.uname,e.password,function(a){console.log(a),e.showMessage=!0,0==a.success?(e.showMessage=!0,e.messageClass="alert alert-warning alert-dismissable",e.message="Invalid username or password!!!"):(e.showMessage=!0,e.messageClass="alert alert-success alert-dismissable",AuthenticationSerdashboardvice.ClearCredentials(),s.SetCredentials(e.uname,e.password),e.message="Successfully Authenticated!!!",o(function(){window.localStorage.removeItem("Finn_comp"),t.go("main.")}))})):s.Login(e.username2,e.password,function(a){console.log(a),e.showMessage=!0,0==a.success?(e.showMessage=!0,e.messageClass="alert alert-warning alert-dismissable",e.message="Invalid username or password!!!"):(e.showMessage=!0,e.messageClass="alert alert-success alert-dismissable",s.SetCredentials(e.username2,e.password),e.message="Successfully Authenticated!!!",o(function(){window.localStorage.removeItem("Finn_comp"),"slis"==i.defaults.headers.common.schoolId?t.go("main"):t.go("main.dashboard")}))})})})}};var _=n.search();if(!angular.equals({},_)){e.display_login=!0,_.q.split("-").length>=2&&(e.username=_.q.substring(_.q.indexOf("-")+1,_.q.length),e.password=s.Base64.decode(_.q.substring(0,_.q.indexOf("-"))),["tiadxb","tosdxb","tiashj","staging2","staging"].includes(i.defaults.headers.common.schoolId)&&(window.localStorage.loginFromLeamsPortal=!0),["asis","abqis","siso"].includes(i.defaults.headers.common.schoolId)&&(window.localStorage.loginFromAbqPortal=!0)),e.Login()}e.Login_microsoft=function(n,r){e.showForgetPaaword?e.toggleLoginScreen():(e.showMessage=!1,i.get(l.apiUrl+"api/common/getlastLogin?uname="+n).then(function(l){a.isfistTimeLog=l.data,s.Login(n,r,function(a){console.log(a),e.showMessage=!0,0==a.success?(e.showMessage=!0,e.messageClass="alert alert-warning alert-dismissable",e.message="Invalid username or password!!!"):(e.showMessage=!0,e.messageClass="alert alert-success alert-dismissable",s.ClearCredentials(),s.SetCredentials(n,r),e.message="Successfully Authenticated!!!",o(function(){window.localStorage.microsoft_flg=!0,window.localStorage.removeItem("Finn_comp"),"slis"==i.defaults.headers.common.schoolId?t.go("main"):t.go("main.dashboard")}))})}))},e.onKeyPress=function(t){13==t.keyCode&&e.Login()},e.forgotPassword_link=function(){e.email_id=!1,i.get(l.apiUrl+"api/authenticate/GetGroups").then(function(t){e.grp=t.data})},e.getemailId=function(){e.email_id=!0},e.Save=function(){if(void 0!=e.edt.sims_email_id){i.get(l.apiUrl+"api/authenticate/GetUserName?strEmailID="+e.edt.sims_email_id+"&strCode=&strgroupname="+e.edt.comn_user_group_code).then(function(t){e.emaildata=t.data,console.log(e.emaildata),"false"!=t.data?e.edt.mail_success="Your Username is :'"+e.emaildata+"'":e.edt.mail_success="No User Name is Found!!!"})}void 0==e.edt.sims_email_id&&(e.edt.mail_success="Please Enter Email")},e.Cancel=function(){e.edt.mail_success_lbl="",e.edt.mail_success="",e.edt.sims_email_id="",e.edt.comn_user_group_code=null,e.email_id=!1},e.Cancel1=function(){e.edt.sims_user_name_en="",e.edt.pwd_success="",e.edt.pwd_success_lbl="",e.edt.sims_seq_ans="",e.edt.sims_seq_que="",e.edt.comn_user_group_code="",$("#UploadDocModal").modal("hide")},e.getparam=function(){i.get(l.apiUrl+"api/authenticate/Getparam").then(function(t){e.obj=t.data,e.Parameter=e.obj[0].parameter,e.Email_temp=e.obj[0].email_temp,e.Phone_temp=e.obj[0].phone_temp,"M"==e.Parameter&&(e.flgMobi=!0)})},e.getsecurity=function(){null==e.edt.sims_user_name_en||""==e.edt.sims_user_name_en||void 0==e.edt.sims_user_name_en?(e.pwd=!0,e.edt.pwd_success="Please Enter User Name!!!"):(e.pwd=!1,"M"==e.Parameter&&(e.flgMobi=!0,i.get(l.apiUrl+"api/authenticate/GetMobile?strUsername="+e.edt.sims_user_name_en).then(function(t){e.securitydata=t.data,""==t.data&&swal({title:"Alert",text:"Your email and mobile number is not found please contact to administrator",imageUrl:"assets/img/notification-alert.png"})})),"E"==e.Parameter&&i.get(l.apiUrl+"api/authenticate/GetEmail?strUsername="+e.edt.sims_user_name_en).then(function(t){e.securitydata=t.data}))},e.footerClick=function(e){"OPAC"==e.sims_appl_parameter?t.go(e.sims_appl_form_field_value2):window.open(e.sims_appl_form_field_value2,"_new")};if(["bloomesealwadi","bloomeseuaq","cbsesmf","uksmf","bloomeseajman","ksa","bloomesealmizhar","bloomesealtwar","demo","gurukulponda","nas","sok","ics","sisqatar","slis","csmps","saisd","saisu","cae","dvhs","dvhss","saisa","saiss","vmsiihe","dvps","iisqatar","modern","nacasca","network","newarts"].includes(i.defaults.headers.common.schoolId)){e.showbanner=!0;const t=i.defaults.headers.common.schoolId;e.schoolLink=`https://${t}.ppnv1.mograsys.com/sign-in`||"#"}else e.showbanner=!1;e.closeBanner=function(){e.showbanner=!1,localStorage.removeItem("showbanner")}}])}(),function(){"use strict";function e(e,a,s,o,n,r){var i={Login:function(t,a,s){e.post(n.apiUrl+"api/authenticate",{username:t,password:a}).success(function(t,a,o,n){t.token&&(localStorage.setItem("token",t.token),localStorage.setItem("_token",t.token),e.defaults.headers.common.Authorization="Bearer "+t.token),s(t)}).error(function(e,t,a,o){switch(t){case 401:s({success:!1})}})},SetCredentials:function(e,t){s.globals={currentUser:{username:e}},localStorage.setItem("globals",JSON.stringify(s.globals))},ClearCredentials:function(){s.globals={},localStorage.removeItem("globals"),localStorage.removeItem("schoolId"),localStorage.removeItem("token"),localStorage.removeItem("_token")}};if(i.getSchooldId=l,i.deleyc=function(e){var t,a,s,o,n,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="",l="",d="",m=0;/[^A-Za-z0-9\+\/\=]/g.exec(e)&&window.alert("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding.");e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{s=r.indexOf(e.charAt(m++)),o=r.indexOf(e.charAt(m++)),n=r.indexOf(e.charAt(m++)),d=r.indexOf(e.charAt(m++)),t=s<<2|o>>4,a=(15&o)<<4|n>>2,l=(3&n)<<6|d,i+=String.fromCharCode(t),64!=n&&(i+=String.fromCharCode(a)),64!=d&&(i+=String.fromCharCode(l)),t=a=l="",s=o=n=d=""}while(m<e.length);return i},i.Base64=t,localStorage.getItem("token")||localStorage.getItem("_token")){e.defaults.headers.common.Authorization="Bearer "+(localStorage.getItem("token")||localStorage.getItem("_token")),localStorage.getItem("globals")||r.path("/login"),e.defaults.headers.common.schoolId=localStorage.getItem("schoolId")||l();try{s.globals=JSON.parse(localStorage.getItem("globals"))}catch(e){}}return i;function l(){let e=window.location.href,t=e.substring(e.indexOf("/")+2,e.indexOf("."));return"www"==t||"WWW"==t?t=e.split(".")[1]:t}}angular.module("sims.module.users").factory("AuthenticationService",e),e.$inject=["$http","$cookieStore","$rootScope","$timeout","ENV","$location"];const t={keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var t,a,s,o,n,r="",i="",l="",d=0;do{s=(t=e.charCodeAt(d++))>>2,o=(3&t)<<4|(a=e.charCodeAt(d++))>>4,n=(15&a)<<2|(i=e.charCodeAt(d++))>>6,l=63&i,isNaN(a)?n=l=64:isNaN(i)&&(l=64),r=r+this.keyStr.charAt(s)+this.keyStr.charAt(o)+this.keyStr.charAt(n)+this.keyStr.charAt(l),t=a=i="",s=o=n=l=""}while(d<e.length);return r},decode:function(e){var t,a,s,o,n="",r="",i="",l=0;/[^A-Za-z0-9\+\/\=]/g.exec(e)&&window.alert("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding."),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{t=this.keyStr.indexOf(e.charAt(l++))<<2|(s=this.keyStr.indexOf(e.charAt(l++)))>>4,a=(15&s)<<4|(o=this.keyStr.indexOf(e.charAt(l++)))>>2,r=(3&o)<<6|(i=this.keyStr.indexOf(e.charAt(l++))),n+=String.fromCharCode(t),64!=o&&(n+=String.fromCharCode(a)),64!=i&&(n+=String.fromCharCode(r)),t=a=r="",s=o=i=""}while(l<e.length);return n}}}(),function(){"use strict";angular.module("sims.module.main",["sims","gettext"])}(),function(){"use strict";var e=angular.module("sims.module.main");e.run(["$rootScope","$templateCache",function(e,t){e.$on("$viewContentLoaded",function(){t.removeAll()})}]),e.controller("MainController",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV","AuthenticationService",function(e,t,a,s,o,n,r,i){e.isCondensed=!1,e.lang="en",e.new_std="",e.isChild1=!0,e.menuoptions=[];var l="",d="";e.obj1={},e.schoolCode=n.defaults.headers.common.schoolId,e.apiurlpath=r.apiUrl,"abqis"==n.defaults.headers.common.schoolId.toLowerCase()?(e.abqismainlogo=!0,e.abqcolor="#682772",e.fontcolor="#fff",e.logoname="abqnew.png"):"asis"==n.defaults.headers.common.schoolId.toLowerCase()?(e.abqismainlogo=!0,e.abqcolor="#682772",e.fontcolor="#fff",e.logoname="asisnew.png"):"siso"==n.defaults.headers.common.schoolId.toLowerCase()?(e.abqismainlogo=!0,e.abqcolor="#682772",e.fontcolor="#fff",e.logoname="sisonew.png"):"alimtiaz"==n.defaults.headers.common.schoolId.toLowerCase()?(e.abqcolor="#4192A6",e.abqislogo=!1,e.fontcolor="#fff"):(e.abqislogo=!1,e.abqcolor="#682772",e.fontcolor="#fff"),a.isfistTimeLog?($("#ResetPasswordModal").modal({backdrop:"static",keyboard:!1}),e.hide_reset_pass=!0):e.hide_reset_pass=!1,"abqis"!=n.defaults.headers.common.schoolId&&"asis"!=n.defaults.headers.common.schoolId&&"siso"!=n.defaults.headers.common.schoolId||(e.logo_big=!0,e.logo_big1=!0),"iconems"==n.defaults.headers.common.schoolId&&(e.logo_big1=!0),e.portal_data=[],n.get(r.apiUrl+"api/common/getSchoolDetails").then(function(t){if(e.obj1=t.data,e.ObjSchoolDetails=t.data,a.globals.currentSchool=e.obj1,a.globals.currentSchool.lic_website_url=e.obj1.lic_website_url,e.$broadcast("school_change",a.globals.currentSchool.lic_website_url),e.schoolUrl=a.globals.currentSchool.lic_website_url,"www"==(s=e.schoolUrl.substring(e.schoolUrl.indexOf("/")+2,e.schoolUrl.indexOf(".")))||"WWW"==s){e.schoolUrl=window.location.href;var s=e.schoolUrl.split(".")[1];e.main_Std_images=e.obj1.lic_website_url+"Images/StudentImages"}else e.main_Std_images=e.obj1.lic_website_url+"Images/StudentImages"}),e.RedirectCommunicationPage=function(){goToState("main.PPP006")},n.get(r.apiUrl+"api/common/getLang_hide").then(function(t){e.languageicon=t.data}),n.get(r.apiUrl+"api/dashboard/getDashboardData").then(function(t){t.data.length>0?e.portal_data=t.data:(e.portal_data_flg="1",e.portal_data.push({}))}),n.get(r.apiUrl+"api/common/getPPUrls").then(function(t){e.pp_url_list=t.data,a.pp_url_lst=t.data}),e.loggedUser=angular.uppercase(a.globals.currentUser.username),e.condenseMenu=function(){e.isCondensed?($("body").removeClass("grey condense-menu"),$("#main-menu").removeClass("mini"),$(".page-content").removeClass("condensed"),e.isCondensed=!1):($("body").addClass("grey condense-menu"),$("#main-menu").addClass("mini"),$(".page-content").addClass("condensed"),e.isCondensed=!0)},a.globals||(a.globals={}),a.globals.studentsLoaded=!1,e.communication=function(){$("#sidr").toggleChat(),n.get(r.apiUrl+"api/ParentPortal/Communication/getTeachersList?enrollNo="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.teachers=t.data})};/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(a.mobStyle={display:"block"},a.moblie_logout={display:"block"},$(".user-info-wrapper").css({display:"block"}),$(".mobstud").css({display:"block"}),e.mobleView=!0):(a.mobStyle={display:"none"},a.moblie_logout={display:"none"},$(".user-info-wrapper").css({display:"none"}),$(".mobstud").css({display:"none"}),e.mobleView=!1),e.contentClick=function(){$("body").removeClass("breakpoint-768 pace-done open-menu-right"),$("body").addClass("breakpoint-768 pace-done "),$("#main-menu").removeClass("page-sidebar visible"),$("#main-menu").addClass("page-sidebar"),$("body").removeClass("breakpoint-768 pace-done open-menu-left")},e.menutoggle=function(){1==e.mobile?($("body").addClass("breakpoint-768 pace-done open-menu-left"),$("#main-menu").addClass("page-sidebar visible"),e.mobile=!1):($("body").removeClass("breakpoint-768 pace-done open-menu-left"),$("body").addClass("breakpoint-768 pace-done "),$("#main-menu").removeClass("page-sidebar visible"),$("#main-menu").addClass("page-sidebar"),e.mobile=!0)},e.submnuClick=function(){$("body").removeClass("breakpoint-768 pace-done open-menu-left"),$("body").addClass("breakpoint-768 pace-done "),$("#main-menu").removeClass("page-sidebar visible"),$("#main-menu").addClass("page-sidebar")},e.Click=function(t){e.new_std=t},e.teacherClick=function(t){$(".chat-window-wrapper").addClass("visible"),$("body").addClass("open-menu-right"),e.tnm=t,e.chatsyle={display:"none"},e.chatDetail={display:"none"},e.subjectsyle={display:"block"},n.get(r.apiUrl+"api/ParentPortal/Communication/getCommunicationSubject?sender="+a.globals.currentUser.username+"&receiver="+e.tnm.sims_teacher_login_code+"&enrollNumber="+l).then(function(t){e.comm_subject=t.data})},e.newsubject=function(){e.newSubjectTxt={display:"block"},e.subject="",e.focustxt="input-focus"},e.newsubject_txt=function(t){e.newSubjectTxt={display:"block"},e.subject=t,e.focustxt="input-focus"},e.teacherback=function(t){e.chatsyle={display:"none"},e.subjectsyle={display:"block"},e.chatDetail={display:"none"},e.comm="",e.newSubjectTxt={display:"none"}},e.teacherHome=function(t){e.chatsyle={display:"block"},e.newSubjectTxt={display:"none"},e.subjectsyle={display:"none"},e.chatDetail={display:"none"},e.comm=""},$.fn.toggleChat=function(){var t;$("body").hasClass("open-menu-right")?($("body").removeClass("open-menu-right"),t=setTimeout(function(){$(".chat-window-wrapper").removeClass("visible")},300)):(clearTimeout(t),$(".chat-window-wrapper").addClass("visible"),$("body").addClass("open-menu-right")),e.chatsyle={display:"block"},e.chatDetail={display:"none"},e.comm=""},n.get(r.apiUrl+"api/common/getParentApplicationsNew?userName="+a.globals.currentUser.username).then(function(s){e.appcode=t.current.name.split("."),e.chkExist_state=!1,e.menuoptions_new=[],(l=[]).uiSref="main.dashboard",l.name=o.getString("Dashboard"),l.name_ar="لوحة القيادة",l.iconCls="fa fa-dashboard","1"==s.data[0].flag&&(e.menuoptions.push(l),e.menuoptions_new.push(l));for(var i=0;i<s.data.length;i++){var l;s.data[i].comn_user_appl_code==e.appcode[1]&&(e.chkExist_state=!0),(l=[]).uiSref="main."+s.data[i].comn_user_appl_code,l.name=s.data[i].comn_user_appl_name,l.name_ar=s.data[i].comn_user_appl_name_ar,l.bgcolor=s.data[i].comn_appl_color,l.iconCls=s.data[i].comn_user_icon,"1"==s.data[0].flag&&(e.menuoptions.push(l),e.menuoptions_new.push(l)),"PP038"==s.data[i].comn_user_appl_code&&(e.survey_link_flg=!0)}e.chkExist_state||t.go("main.dashboard"),(l=[]).iconCls="","1"==s.data[0].flag&&(e.menuoptions.push(l),e.menuoptions_new.push(l)),"slis"==n.defaults.headers.common.schoolId&&n.get(r.apiUrl+"api/common/GetReportCardBlockNew?userName="+a.globals.currentUser.username).then(function(a){e.rpt_list=a.data,""!=e.rpt_list&&swal({title:"User inactive, Please contact to Account Department",text:"(The portal modules can  be accessed after User Active)",showCancelButton:!1,closeOnConfirm:!0,animation:"slide-from-top",closeOnCancel:!1},function(a){if(a){e.menuoptions=[],t.go("main.PP013")}})}),"abqis"!=n.defaults.headers.common.schoolId&&"asis"!=n.defaults.headers.common.schoolId&&"siso"!=n.defaults.headers.common.schoolId&&"oes"!=n.defaults.headers.common.schoolId&&"imert"!=n.defaults.headers.common.schoolId&&"saisd"!=n.defaults.headers.common.schoolId&&"saiss"!=n.defaults.headers.common.schoolId&&"saisu"!=n.defaults.headers.common.schoolId&&"saisa"!=n.defaults.headers.common.schoolId||n.get(r.apiUrl+"api/surveyselection/Get_survey_validation").then(function(s){"Y"==s.data[0].sims_appl_parameter?e.survey_link_flg&&n.get(r.apiUrl+"api/surveyselection/Get_survey_for_user?user_code="+a.globals.currentUser.username).then(function(a){e.flg_survey=!1;for(var s=0;s<a.data.length;s++)if(""==a.data[s].sims_survey_user_response_srl_no){e.flg_survey=!0;break}e.flg_survey&&swal({title:"Dear parent,request you to please fill the survey",text:"(The portal modules can  be accessed after the survey is submitted)",showCancelButton:!1,closeOnConfirm:!0,animation:"slide-from-top",closeOnCancel:!1},function(a){a&&(e.menuoptions=[],t.go("main.PP038"))})}):e.survey_link_flg&&n.get(r.apiUrl+"api/surveyselection/Get_survey_for_user?user_code="+a.globals.currentUser.username).then(function(t){e.flg_survey=!1;for(var a=0;a<t.data.length;a++)if(""==t.data[a].sims_survey_user_response_srl_no){e.flg_survey=!0;break}e.flg_survey&&swal({title:"Dear parent,request you to please fill the survey",text:"(The portal modules can  be accessed after the survey is submitted)",showCancelButton:!1,closeOnConfirm:!0,animation:"slide-from-top",closeOnCancel:!1})})}),"0"==s.data[0].flag&&(e.isActive="1",swal({title:"Alert",text:"Student is inactive for current year.",imageUrl:"assets/img/notification-alert.png"}))}).then(function(){n.get(r.apiUrl+"api/common/getUserDetails?uname="+a.globals.currentUser.username).then(function(t){"04"==t.data.table[0].comn_user_group_code?(e.change_fun("Student Portal"),e.is_student=!0,"asis"!=n.defaults.headers.common.schoolId&&"abqis"!=n.defaults.headers.common.schoolId&&"siso"!=n.defaults.headers.common.schoolId||(e.hide_chat=!0),n.get(r.apiUrl+"api/parent/GetStudentListByEnroll").then(function(t){a.globals.studentsLoaded=!0,a.globals.studentList=t.data,e.studentList=t.data,1==t.data.length&&(e.isChild1=!1),a.globals.isActive=!0,n.get(r.apiUrl+"api/common/getStudentIsActive?userName="+a.globals.currentUser.username).then(function(t){if("0"==t.data[0].flag)return e.menuoptions=[],a.globals.isActive=!1,void("1"!=e.isActive&&swal({title:"Alert",text:"Student is inactive for current year.",imageUrl:"assets/img/notification-alert.png"}))}),e.currentStudent=t.data[0],a.globals.currentStudent=e.currentStudent,e.new_std=e.currentStudent,a.globals.currentStudent.enroll_number=e.currentStudent.sims_student_enroll_number,e.$broadcast("student_change",a.globals.currentStudent.enroll_number),l=e.currentStudent.sims_student_enroll_number,n.get(r.apiUrl+"api/ParentPortal/Communication/getTeachersList?enrollNo="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.teachers=t.data})})):n.get(r.apiUrl+"api/parent/getStudentList").then(function(t){a.globals.studentList=t.data,t.data.length>0?(a.globals.studentsLoaded=!0,e.studentList=t.data,e.currentStudent=t.data[0]):(swal({title:"Alert",text:"Student is inactive for current year.",imageUrl:"assets/img/notification-alert.png"}),e.menuoptions=[],e.currentStudent={}),1==t.data.length&&(e.isChild1=!1),"sms"==n.defaults.headers.common.schoolId&&n.get(r.apiUrl+"api/common/getschoolLogo?curCode="+e.currentStudent.sims_cur_code).then(function(t){t.data.length>0&&(e.obj1.lic_school_logo=t.data[0].lic_school_logo,e.obj1.lic_school_name=t.data[0].lic_school_name)}),a.globals.currentStudent=e.currentStudent,e.new_std=e.currentStudent,a.globals.currentStudent.enroll_number=e.currentStudent.sims_student_enroll_number,e.$broadcast("student_change",a.globals.currentStudent.enroll_number),l=e.currentStudent.sims_student_enroll_number,n.get(r.apiUrl+"api/ParentPortal/Communication/getTeachersList?enrollNo="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.teachers=t.data}),a.globals.isActive=!0,n.get(r.apiUrl+"api/common/getStudentIsActive?userName="+a.globals.currentStudent.enroll_number).then(function(t){if("0"==t.data[0].flag)return e.menuoptions=[],a.globals.isActive=!1,void("1"!=e.isActive&&swal({title:"Alert",text:"Student is inactive for current year.",imageUrl:"assets/img/notification-alert.png"}))})})})}),e.onsubjectClk=function(t){e.chatsyle={display:"none"},e.chatDetail={display:"block"},e.subjectsyle={display:"none"},d=t.sims_comm_subject_id,e.subjectnm=t.sims_comm_subject,n.get(r.apiUrl+"api/ParentPortal/Communication/getCommunication?sender="+a.globals.currentUser.username+"&receiver="+e.tnm.sims_teacher_login_code+"&subject_id="+d+"&enrollNumber="+l).then(function(t){e.display=!0,e.comm=t.data})},e.onsubjectClkDashboard=function(t,s,o,i){for(var l=0;l<e.studentList.length;l++)if(i==e.studentList[l].sims_student_enroll_number){e.studentChange(e.studentList[l]);break}e.tnm={sims_teacher_name:o,sims_teacher_login_code:t},d=s,$(".chat-window-wrapper").addClass("visible"),$("body").addClass("open-menu-right"),e.chatsyle={display:"none"},e.chatDetail={display:"block"},e.subjectsyle={display:"none"},n.get(r.apiUrl+"api/ParentPortal/Communication/getCommunication?sender="+a.globals.currentUser.username+"&receiver="+t+"&subject_id="+s+"&enrollNumber="+i).then(function(t){e.display=!0,e.comm=t.data})},e.addsubjectclick=function(){n.post(r.apiUrl+"api/ParentPortal/Communication/newSubjectAdd?sender="+e.tnm.sims_teacher_login_code+"&receiver="+e.loggedUser+"&message="+e.text_msg+"&comm_no=1&enrollNumber="+l+"&subject="+e.subject+"&cur="+e.currentStudent.sims_cur_code+"&academic="+e.currentStudent.sims_acad_yr).then(function(t){e.commsub=t.data,e.newSubjectTxt={display:"none"},n.get(r.apiUrl+"api/ParentPortal/Communication/getCommunicationSubject?sender="+a.globals.currentUser.username+"&receiver="+e.tnm.sims_teacher_login_code+"&enrollNumber="+l).then(function(t){swal({title:"Alert",text:"Subject created. Click on the subject to enter the message"}),e.comm_subject=t.data})})},e.CancelSubjectclick=function(){e.newSubjectTxt={display:"none"},e.subject=""},n.get(r.apiUrl+"api/uploadimages/getActiveParentImage?parentCode="+a.globals.currentUser.username).then(function(t){e.parentdetail=t.data;var a=e.parentdetail.sims_admission_father_full_name.split(" ");e.pname_first=a[0]}),e.language=function(t){var s;"en"==t?(s="en",a.langDirection="ar"==s?"rtl":"ltr",o.setCurrentLanguage("en"),e.lagFlg=!1,n.post(r.apiUrl+"api/common/updateLanguage?lang="+t+"&uname="+a.globals.currentUser.username).then(function(e){})):"th"==t?(s="th",a.langDirection="ar"==s?"rtl":"ltr",o.setCurrentLanguage("th"),e.lagFlg=!0,n.post(r.apiUrl+"api/common/updateLanguage?lang="+t+"&uname="+a.globals.currentUser.username).then(function(e){})):"ar"==t&&(s="ar",a.locale=a.locales.ar,a.langDirection="ar"==s?"rtl":"ltr",o.setCurrentLanguage("ar"),e.arabic_chat={display:"inline"},e.arabic_chat={"z-index":"-1"},e.lagFlg=!0,n.post(r.apiUrl+"api/common/updateLanguage?lang="+t+"&uname="+a.globals.currentUser.username).then(function(e){}))},n.get(r.apiUrl+"api/common/getLanguge?uname="+a.globals.currentUser.username).then(function(t){""!=t.data?(e.lang=t.data,e.language(t.data)):(e.lang="en",e.language("en"))}),e.microsoftLogout=function(){n.get(r.apiUrl+"api/common/getSSODetails?sso=SSO&microsoftppn=MicrosoftPPN").then(function(t){e.ssodata=t.data;for(var a=0;e.ssodata.table.length>a;a++)if("MicrosoftPPN"==e.ssodata.table[a].app_parameter1){e.client_id=e.ssodata.table[a].app_parameter2,e.tentant_id=e.ssodata.table[a].app_parameter3,e.redirectUrl=e.ssodata.table[a].app_parameter5,"Y"==e.ssodata.table[a].app_parameter_status&&(e.btnvisible=!0);break}window.config={tenant:e.tentant_id,clientId:e.client_id,postLogoutRedirectUri:e.redirectUrl};var s=new AuthenticationContext(config);s.logOut();var o=s.isCallback(window.location.hash);s.handleWindowCallback(),o&&!s.getLoginError()&&(window.location=s._getItem(s.CONSTANTS.STORAGE.LOGIN_REQUEST))})},e.logout=function(){if(e.flagg=window.localStorage.loginFromAsdPortal,e.flagg1=window.localStorage.loginFromLeamsPortal,e.flagg2=window.localStorage.loginFromAbqPortal,"true"==window.localStorage.microsoft_flg)e.microsoftLogout(),i.ClearCredentials(),t.go("login"),$("body").hasClass("open-menu-right")&&($("body").removeClass("open-menu-right"),setTimeout(function(){$(".chat-window-wrapper").removeClass("visible")},300));else if(e.flagg){window.open("http://amitylearning.ae","_self"),window.localStorage.removeItem("loginFromAsdPortal"),i.ClearCredentials(),$("body").hasClass("open-menu-right")&&($("body").removeClass("open-menu-right"),setTimeout(function(){$(".chat-window-wrapper").removeClass("visible")},300))}else if(e.flagg1){window.open("https://portal.leamseducation.com","_self"),window.localStorage.removeItem("loginFromLeamsPortal"),i.ClearCredentials(),$("body").hasClass("open-menu-right")&&($("body").removeClass("open-menu-right"),setTimeout(function(){$(".chat-window-wrapper").removeClass("visible")},300))}else if("aisdxb"==n.defaults.headers.common.schoolId){window.open("https://portal.leamseducation.com","_self"),window.localStorage.removeItem("loginFromLeamsPortal"),i.ClearCredentials(),$("body").hasClass("open-menu-right")&&($("body").removeClass("open-menu-right"),setTimeout(function(){$(".chat-window-wrapper").removeClass("visible")},300))}else if(e.flagg2){window.open("http://portal.abq.edu.om ","_self"),window.localStorage.removeItem("loginFromAbqPortal"),i.ClearCredentials(),$("body").hasClass("open-menu-right")&&($("body").removeClass("open-menu-right"),setTimeout(function(){$(".chat-window-wrapper").removeClass("visible")},300))}else{i.ClearCredentials(),t.go("login"),$("body").hasClass("open-menu-right")&&($("body").removeClass("open-menu-right"),setTimeout(function(){$(".chat-window-wrapper").removeClass("visible")},300)),window.localStorage.removeItem("KeepMeDetails")}},e.navigate=function(a){switch(a){case 1:t.go("main.PP013");break;case 2:t.go("main.Ucw009"),e.email_msg="";break;case 3:$("#ResetPasswordModal").modal("show")}},e.changePassword=function(s){if(e.temp.NewPasscode===e.temp.cnfrmPass){if(e.flg_match=!1,s){e.temp.UserName=a.globals.currentUser.username;var o={old:e.temp.OldPasscode,newpass:e.temp.NewPasscode,user:a.globals.currentUser.username};n.post(r.apiUrl+"api/common/ResetPasswordNew",o).then(function(a){a.data?(e.display=!0,e.obj=a.data,$("#ResetPasswordModal").modal("hide"),swal({title:"Password Changed Successfully.",text:"Cilck OK to login",showCancelButton:!1,closeOnConfirm:!0,animation:"slide-from-top",closeOnCancel:!1},function(){setTimeout(function(){i.ClearCredentials(),e.flagg?window.open("http://amitylearning.ae","_self"):t.go("login")},1e3)}),e.flg_old_match=!1):e.flg_old_match=!0})}}else e.flg_match=!0},e.studentChange=function(s){a.globals.currentStudent=s,a.globals.currentStudent.enroll_number=s.sims_student_enroll_number,e.$broadcast("student_change",a.globals.currentStudent.enroll_number),e.new_std=s,l=a.globals.currentStudent.enroll_number,a.globals.isActive=!0,n.get(r.apiUrl+"api/common/getStudentIsActive?userName="+a.globals.currentStudent.enroll_number).then(function(s){if("0"==s.data[0].flag)return e.menuoptions=[],a.globals.isActive=!1,void swal({title:"Alert",text:"Student is inactive for current year.",imageUrl:"assets/img/notification-alert.png"});n.get(r.apiUrl+"api/common/getParentApplicationsNew?userName="+a.globals.currentUser.username).then(function(s){e.appcode=t.current.name.split("."),e.chkExist_state=!1,e.menuoptions_new=[],(l=[]).uiSref="main.dashboard",l.name=o.getString("Dashboard"),l.name_ar="لوحة القيادة",l.iconCls="fa fa-dashboard","1"==s.data[0].flag&&(e.menuoptions.push(l),e.menuoptions_new.push(l));for(var i=0;i<s.data.length;i++){var l;s.data[i].comn_user_appl_code==e.appcode[1]&&(e.chkExist_state=!0),(l=[]).uiSref="main."+s.data[i].comn_user_appl_code,l.name=s.data[i].comn_user_appl_name,l.name_ar=s.data[i].comn_user_appl_name_ar,l.bgcolor=s.data[i].comn_appl_color,l.iconCls=s.data[i].comn_user_icon,"1"==s.data[0].flag&&(e.menuoptions.push(l),e.menuoptions_new.push(l)),"PP038"==s.data[i].comn_user_appl_code&&(e.survey_link_flg=!0)}e.chkExist_state||t.go("main.dashboard"),(l=[]).iconCls="","1"==s.data[0].flag&&(e.menuoptions.push(l),e.menuoptions_new.push(l)),"slis"==n.defaults.headers.common.schoolId&&n.get(r.apiUrl+"api/common/GetReportCardBlockNew?userName="+a.globals.currentUser.username).then(function(a){e.rpt_list=a.data,""!=e.rpt_list&&swal({title:"User inactive, Please contact to Account Department",text:"(The portal modules can  be accessed after User Active)",showCancelButton:!1,closeOnConfirm:!0,animation:"slide-from-top",closeOnCancel:!1},function(a){if(a){e.menuoptions=[],t.go("main.PP013")}})}),"abqis"!=n.defaults.headers.common.schoolId&&"asis"!=n.defaults.headers.common.schoolId&&"siso"!=n.defaults.headers.common.schoolId&&"oes"!=n.defaults.headers.common.schoolId&&"imert"!=n.defaults.headers.common.schoolId&&"saisd"!=n.defaults.headers.common.schoolId&&"saiss"!=n.defaults.headers.common.schoolId&&"saisu"!=n.defaults.headers.common.schoolId&&"saisa"!=n.defaults.headers.common.schoolId||n.get(r.apiUrl+"api/surveyselection/Get_survey_validation").then(function(s){"Y"==s.data[0].sims_appl_parameter?e.survey_link_flg&&n.get(r.apiUrl+"api/surveyselection/Get_survey_for_user?user_code="+a.globals.currentUser.username).then(function(a){e.flg_survey=!1;for(var s=0;s<a.data.length;s++)if(""==a.data[s].sims_survey_user_response_srl_no){e.flg_survey=!0;break}e.flg_survey&&swal({title:"Dear parent,request you to please fill the survey",text:"(The portal modules can  be accessed after the survey is submitted)",showCancelButton:!1,closeOnConfirm:!0,animation:"slide-from-top",closeOnCancel:!1},function(a){a&&(e.menuoptions=[],t.go("main.PP038"))})}):e.survey_link_flg&&n.get(r.apiUrl+"api/surveyselection/Get_survey_for_user?user_code="+a.globals.currentUser.username).then(function(t){e.flg_survey=!1;for(var a=0;a<t.data.length;a++)if(""==t.data[a].sims_survey_user_response_srl_no){e.flg_survey=!0;break}e.flg_survey&&swal({title:"Dear parent,request you to please fill the survey",text:"(The portal modules can  be accessed after the survey is submitted)",showCancelButton:!1,closeOnConfirm:!0,animation:"slide-from-top",closeOnCancel:!1})})}),"0"==s.data[0].flag&&(e.isActive="1",swal({title:"Alert",text:"Student is inactive for current year.",imageUrl:"assets/img/notification-alert.png"}))})}),"sms"==n.defaults.headers.common.schoolId&&n.get(r.apiUrl+"api/common/getschoolLogo?curCode="+a.globals.currentStudent.sims_cur_code).then(function(t){t.data.length>0&&(e.obj1.lic_school_logo=t.data[0].lic_school_logo,e.obj1.lic_school_name=t.data[0].lic_school_name)}),n.get(r.apiUrl+"api/ParentPortal/Communication/getTeachersList?enrollNo="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.teachers=t.data})},$("#chat-message-input").keypress(function(t){13==t.keyCode&&(n.post(r.apiUrl+"api/ParentPortal/Communication/insertCommu?sender="+e.tnm.sims_teacher_login_code+"&receiver="+e.loggedUser+"&message="+e.text_msg+"&comm_no=1&subject_id="+d+"&enrollNumber="+l+"&cur="+e.currentStudent.sims_cur_code+"&academic="+e.currentStudent.sims_acad_yr).then(function(t){e.comm=t.data,e.text_msg="",n.get(r.apiUrl+"api/ParentPortal/Communication/getCommunication?sender="+a.globals.currentUser.username+"&receiver="+e.tnm.sims_teacher_login_code+"&subject_id="+d+"&enrollNumber="+l).then(function(t){e.display=!0,e.comm=t.data})}),$(this).val(""),$(this).focus(),t.preventDefault())}),$(".simple-chat-popup").click(function(){$(this).addClass("hide"),$("#chat-message-count").addClass("hide")}),setTimeout(function(){$("#chat-message-count").removeClass("hide"),$("#chat-message-count").addClass("animated bounceIn"),$(".simple-chat-popup").removeClass("hide"),$(".simple-chat-popup").addClass("animated fadeIn")},5e3),setTimeout(function(){$(".simple-chat-popup").addClass("hide"),$(".simple-chat-popup").removeClass("animated fadeIn"),$(".simple-chat-popup").addClass("animated fadeOut")},8e3),e.menuoptions=[],e.getDateTime=function(){var e=new Date,t=e.getFullYear(),a=e.getMonth()+1,s=e.getDate(),o=e.getHours(),n=e.getMinutes(),r=e.getSeconds();if(1==a.toString().length)a="0"+a;if(1==s.toString().length)s="0"+s;if(1==o.toString().length)o="0"+o;if(1==n.toString().length)n="0"+n;if(1==r.toString().length)r="0"+r;return t+"/"+a+"/"+s+" "+o+":"+n+":"+r},$.getJSON("https://jsonip.com/?callback=?",function(e){e.ip;a.ip_add=e.ip,a.dns=""}),e.menu_click=function(t,s){e.main_link_name=s.name;var o=angular.copy(t.split(".")[1]);if(void 0==e.oldobj)e.oldobj={opr:"I",comn_audit_user_code:a.globals.currentUser.username,comn_appl_name_en:o,comn_audit_start_time:e.getDateTime(),comn_audit_end_time:""},n.post(r.apiUrl+"api/common/InsertUserAudit?opr=I&comn_audit_user_code="+a.globals.currentUser.username+"&comn_appl_name_en="+o+"&comn_audit_start_time="+e.getDateTime()+"&comn_audit_end_time=&comn_audit_ip="+a.ip_add).then(function(e){});else{var i=e.getDateTime();a.globals.currentUser.username;e.edate=angular.copy(i),n.post(r.apiUrl+"api/common/InsertUserAudit?opr=I&comn_audit_user_code="+a.globals.currentUser.username+"&comn_appl_name_en="+o+"&comn_audit_start_time="+i+"&comn_audit_end_time=&comn_audit_ip="+a.ip_add).then(function(t){e.oldobj.comn_audit_end_time=i,e.oldobj.opr="J",n.post(r.apiUrl+"api/common/InsertUserAudit?opr=J&comn_audit_user_code="+a.globals.currentUser.username+"&comn_appl_name_en="+e.oldobj.comn_appl_name_en+"&comn_audit_start_time="+e.oldobj.comn_audit_start_time+"&comn_audit_end_time="+e.oldobj.comn_audit_end_time+"&comn_audit_ip="+a.ip_add).then(function(t){e.oldobj.comn_audit_start_time=i,e.oldobj.comn_appl_name_en=o})})}},s(function(){$("#main-menu-wrapper").scrollbar()},100),n.get(r.apiUrl+"api/common/getSocialSiteUrl").then(function(t){e.social_data=t.data}),"abqis"!=n.defaults.headers.common.schoolId&&"asis"!=n.defaults.headers.common.schoolId&&"siso"!=n.defaults.headers.common.schoolId||(e.flg_help=!0),e.help_window=function(){n.get(r.apiUrl+"api/common/getDataParameter?sims_appl_code=Common&sims_appl_form_field=Video").then(function(t){if(t.data.length>0)for(var a=0;a<t.data.length;a++)"en"==e.lang?"E"==t.data[a].sims_appl_parameter&&window.open(t.data[a].sims_appl_form_field_value1):"A"==t.data[a].sims_appl_parameter&&window.open(t.data[a].sims_appl_form_field_value1)})},e.get_link=function(){n.get(r.apiUrl+"api/surveyselection/Get_survey_for_user?user_code="+a.globals.currentUser.username).then(function(a){e.flg_survey=!1;for(var s=0;s<a.data.length;s++)if(""==a.data[s].sims_survey_user_response_srl_no){e.flg_survey=!0;break}e.flg_survey?swal({title:"Dear parent,request you to please fill the survey",text:"(The portal modules can  be accessed after the survey is submitted)",showCancelButton:!1,closeOnConfirm:!0,animation:"slide-from-top",closeOnCancel:!1},function(a){a&&(e.menuoptions=[],t.go("main.PP038"))}):e.menuoptions=e.menuoptions_new})},e.autoloadsidebar=function(){e.isCondensed&&($("body").removeClass("grey condense-menu"),$("#main-menu").removeClass("mini"),$("#main-menu-wrapper").addClass("mini-20"),$(".page-content").removeClass("condensed"),window.innerWidth<=1229&&document.querySelector(".comp1").classList.add("condensecsscomp"),window.innerWidth<=1088&&(document.querySelector(".selectdrpwn").classList.add("condensecss"),document.querySelector(".comp1").classList.add("condensecsscomp")))},e.autoclosesidebar=function(){e.isCondensed&&($("body").addClass("grey condense-menu"),$("#main-menu").addClass("mini"),$("#main-menu-wrapper").addClass("mini-20"),$(".page-content").addClass("condensed"),window.innerWidth<=1229&&document.querySelector(".comp1").classList.remove("condensecsscomp"),window.innerWidth<=1088&&(document.querySelector(".selectdrpwn").classList.remove("condensecss"),document.querySelector(".comp1").classList.remove("condensecsscomp")),a.isCondensed=!0)}}])}(),function(){"use strict";angular.module("sims.module.dashboard",["sims","gettext"])}(),angular.module("sims.module.alert",["sims","gettext"]),function(){"use strict";angular.module("sims.module.dashboard").controller("DashboardController",["$scope","$state","$rootScope","$timeout","$window","gettextCatalog","$http","ENV",function(e,t,a,s,o,n,r,i){e.itemsPerPage=5,e.noti1={},e.portal_data=[],e.vision=!1,e.file={},e.communication=[],e.email=[],e.alerts=[],e.sms=[],e.circular=[],e.feereminder=[],e.notifications={},e.msg_type=["COMMUNICATION","ALERTS","CIRCULAR","SMS","EMAIL","FEEREMINDER"],e.icons={EMAIL:"fa fa-envelope",COMMUNICATION:"fa fa-comments",CIRCULAR:"fa fa-bookmark-o",ALERTS:"fa fa-bell",SMS:"fa fa-envelope-o",FEEREMINDER:"fa fa-bell"},e.getNotifData=(()=>{let t=i.apiUrl+"api/dashboard/getDashboardEmail?userName="+a.globals.currentUser.username;r.get(t).then(function(t){e.email=t.data.eml,e.notifications.EMAIL=e.email});let s=i.apiUrl+"api/dashboard/getDashboardComm?userName="+a.globals.currentUser.username+"&curCode="+a.globals.currentStudent.sims_cur_code+"&academicYear="+a.globals.currentStudent.sims_acad_yr;r.get(s).then(function(t){e.communication=t.data.comm,e.notifications.COMMUNICATION=e.communication});let o=i.apiUrl+"api/dashboard/getDashboardNews?userName="+a.globals.currentUser.username;r.get(o).then(function(t){e.alerts=t.data.news,e.notifications.ALERTS=e.alerts});let n=i.apiUrl+"api/dashboard/getFeeReminder?userName="+a.globals.currentUser.username;r.get(n).then(function(t){e.feereminder=t.data.feerem,e.notifications.FEEREMINDER=e.feereminder});let l=i.apiUrl+"api/dashboard/getDashboardSMS?userName="+a.globals.currentUser.username;r.get(l).then(function(t){e.sms=t.data.sms,e.notifications.SMS=e.sms});let d=i.apiUrl+"api/dashboard/getDashboardCircular?userName="+a.globals.currentUser.username;r.get(d).then(function(t){e.circular=t.data.circ,e.notifications.CIRCULAR=e.circular})}),"oes"==r.defaults.headers.common.schoolId&&(e.vision=!0);var l=!0;"oes"==r.defaults.headers.common.schoolId&&(l=!1),e.visiondash=function(){!0===l?(e.vision=!0,l=!1):(e.vision=!1,l=!0)},e.size=function(t){e.itemsPerPage=t},"abqis"==r.defaults.headers.common.schoolId&&(e.mnudas=!0),"siso"==r.defaults.headers.common.schoolId&&(e.mnudas=!0),"asis"==r.defaults.headers.common.schoolId&&(e.mnudas=!0),"alimtiaz"==r.defaults.headers.common.schoolId&&(e.mnudas=!0),"asdportal"!=r.defaults.headers.common.schoolId&&"elcportal"!=r.defaults.headers.common.schoolId&&"apsportal"!=r.defaults.headers.common.schoolId&&"lwgportal"!=r.defaults.headers.common.schoolId||(e.hide_menu=!0),"asdportal"!=r.defaults.headers.common.schoolId&&"apsportal"!=r.defaults.headers.common.schoolId||(e.hide_bus=!0),e.go_ds=function(){t.go("main.PP027")},e.menudash=function(){!0===e.mnudas?e.mnudas=!1:e.mnudas=!0},e.mnudas=!0,r.get(i.apiUrl+"api/common/getParentApplicationsNew?userName="+a.globals.currentUser.username).then(function(t){if(e.menuoptions=[],t.data.length>0){e.menuData=t.data;for(var s=0;s<e.menuData.length;s++){var o=[];o.uiSref="main."+e.menuData[s].comn_user_appl_code,o.bgcolor=e.menuData[s].comn_appl_color,o.name=e.menuData[s].comn_user_appl_name,o.name_ar=e.menuData[s].comn_user_appl_name_ar,o.iconCls=e.menuData[s].comn_user_icon,"1"!=t.data[0].flag&&0==a.globals.isActive||e.menuoptions.push(o)}e.mnudas=!0}}),r.get(i.apiUrl+"api/dashboard/getDashboardData").then(function(t){t.data.length>0?e.portal_data=t.data:(e.portal_data_flg="1",e.portal_data.push({}))}),e.chatClass="box box-warning direct-chat direct-chat-warning direct-chat-contacts-open",e.contact=function(){"box box-warning direct-chat direct-chat-warning"==e.chatClass?e.chatClass="box box-warning direct-chat direct-chat-warning direct-chat-contacts-open":e.chatClass="box box-warning direct-chat direct-chat-warning"},e.teacherClick1=function(t){e.chatClass="box box-warning direct-chat direct-chat-warning"},e.alert=function(){e.search="ALERT"},e.all=function(){e.search=""},e.communi=function(){e.search="COMMUNICATION"},e.email=function(){e.search="EMAIL"},e.sms=function(){e.search="SMS"},e.circular=function(){e.search="CIRCULAR"},e.getFeesDetails=function(t){e.goTobus=function(){r.get(i.apiUrl+"api/common/getTrackBusUrl").then(function(e){window.open(e.data+a.globals.currentStudent.enroll_number,"_new")})},r.get(i.apiUrl+"api/common/getBus?name="+a.globals.currentStudent.enroll_number).then(function(t){""!=t.data&&(e.bus_tile=!0)}),e.CurrentDate=new Date;var s=new Date,o=s.getMonth()+1,n=s.getDate();o<10&&(o="0"+o),n<10&&(n="0"+n),e.today=s.getFullYear()+"-"+o+"-"+n,e.contentClick=function(){};var l="";l="asdportal"==r.defaults.headers.common.schoolId||"elcportal"==r.defaults.headers.common.schoolId||"apsportal"==r.defaults.headers.common.schoolId||"lwgportal"==r.defaults.headers.common.schoolId?i.apiUrl+"api/dashboard/getDashboardAlertsAsd?userName="+a.globals.currentUser.username+"&curCode="+a.globals.currentStudent.sims_cur_code+"&academicYear="+a.globals.currentStudent.sims_acad_yr+"&student_enroll_no="+a.globals.currentStudent.enroll_number+"&gradeCode="+a.globals.currentStudent.sims_grade_code+"&attendanceDate="+e.today:"svvmc"==r.defaults.headers.common.schoolId||"lpn"==r.defaults.headers.common.schoolId||"dvhss"==r.defaults.headers.common.schoolId||"dvhs"==r.defaults.headers.common.schoolId||"dvps"==r.defaults.headers.common.schoolId||"hedgewar"==r.defaults.headers.common.schoolId||"vision"==r.defaults.headers.common.schoolId||"mptesdvs"==r.defaults.headers.common.schoolId||"dmc"==r.defaults.headers.common.schoolId||"ahis"==r.defaults.headers.common.schoolId||"ges"==r.defaults.headers.common.schoolId||"rakaa"==r.defaults.headers.common.schoolId||"rakmps"==r.defaults.headers.common.schoolId||"facp"==r.defaults.headers.common.schoolId?i.apiUrl+"api/dashboard/getDashboardAlertsSvcc?userName="+a.globals.currentUser.username+"&curCode="+a.globals.currentStudent.sims_cur_code+"&academicYear="+a.globals.currentStudent.sims_acad_yr+"&student_enroll_no="+a.globals.currentStudent.enroll_number+"&gradeCode="+a.globals.currentStudent.sims_grade_code+"&attendanceDate="+e.today:i.apiUrl+"api/dashboard/getDashboardAlertsAbps?userName="+a.globals.currentUser.username+"&curCode="+a.globals.currentStudent.sims_cur_code+"&academicYear="+a.globals.currentStudent.sims_acad_yr+"&student_enroll_no="+a.globals.currentStudent.enroll_number+"&gradeCode="+a.globals.currentStudent.sims_grade_code+"&attendanceDate="+e.today,r.get(l).then(function(t){e.noti1={},e.noti1.read="0",e.noti1.unread="0",e.noti1=t.data,e.getNotifData(),e.noti1.fee.length<=0?(e.noti1.fee.sims_expected_fee="0",e.noti1.fee.sims_paid_fee="0",e.noti1.fee.sims_remaining_fee="0"):e.noti1.fee=e.noti1.fee[e.noti1.fee.length-1],void 0==e.noti1.attendance&&(e.noti1.attendance="Unmarked")}),r.get(i.apiUrl+"api/albums/getAlbumForDashboard?curCode="+a.globals.currentStudent.sims_cur_code+"&gradeCode="+a.globals.currentStudent.sims_grade_code).then(function(t){e.display=!0,e.album=t.data}),r.get(i.apiUrl+"api/attendance/getMonthlyAttendance?enroll="+a.globals.currentStudent.enroll_number+"&acad="+a.globals.currentStudent.sims_acad_yr+"&grade_code="+a.globals.currentStudent.sims_grade_code+"&section_code="+a.globals.currentStudent.sims_section_code+"&date="+e.today).then(function(t){if(e.month=t.data,t.data.length>0){for(var a=0;a<t.data.length;a++)"TOTAL"==t.data[a].code&&(e.t=t.data[a].count),"P"==t.data[a].code&&(e.p=t.data[a].count),"A"==t.data[a].code&&(e.a=t.data[a].count),"UM"==t.data[a].code&&(e.UM=t.data[a].count);void 0==e.a&&(e.a=0),void 0==e.p&&(e.p=0),void 0==e.UM&&(e.UM=0)}else e.t=0,e.p=0,e.a=0})},e.gallerylink=function(){t.go("main.PP014")},e.goToLink=function(e,s,o){switch(e){case 1:a.globals.circularMsg=s,t.go("main.PP015",{flag:!0});break;case 2:t.go("main.PP002");break;case 3:t.go("main.PP008");break;case 4:a.email_msg=o,t.go("main.Ucw009");break;case 5:a.sms_msg=o,t.go("main.Ucw020");break;case 6:a.globals.alterDate=s;try{t.go("main.alert")}catch(e){}break;case 7:a.globals.circularMsg=s,t.go("main.PP015",{flag:!1});break;case 8:t.go("main.PP016");break;case 9:t.go("main.Feerim")}},e.$on("student_change",function(t,a){e.getFeesDetails()}),a.globals.studentsLoaded&&e.getFeesDetails();var d=$("#pieChart").get(0).getContext("2d");new Chart(d).Doughnut([{value:700,color:"#f56954",highlight:"#f56954",label:"Chrome"},{value:70,color:"#00a65a",highlight:"#00a65a",label:"IE"},{value:400,color:"#f39c12",highlight:"#f39c12",label:"FireFox"},{value:600,color:"#00c0ef",highlight:"#00c0ef",label:"Safari"},{value:300,color:"#3c8dbc",highlight:"#3c8dbc",label:"Opera"},{value:100,color:"#d2d6de",highlight:"#d2d6de",label:"Navigator"}],{segmentShowStroke:!0,segmentStrokeColor:"#fff",segmentStrokeWidth:1,percentageInnerCutout:50,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:!0,animateScale:!1,responsive:!0,maintainAspectRatio:!1,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<segments.length; i++){%><li><span style="background-color:<%=segments[i].fillColor%>"></span><%if(segments[i].label){%><%=segments[i].label%><%}%></li><%}%></ul>',tooltipTemplate:"<%=value %> <%=label%> users"}),$(document).ready(function(){$("#t1").addClass("disableTab"),$("#t2").addClass("disableTab")}),r.get(i.apiUrl+"api/dashboard/getMessage").then(function(t){if(e.Message_detail=[],t.data.length>0){e.filedata1=t.data;for(var a=0;a<e.filedata1.length;a++){var s=[];s.message=e.filedata1[a].sims_appl_form_field_value1,s.message2=e.filedata1[a].sims_appl_form_field_value2,s.message3=e.filedata1[a].sims_appl_form_field_value3,e.Message_detail.push(s)}}}),r.get(i.apiUrl+"api/dashboard/GetFile").then(function(t){if(e.url_doc=i.docUrl+r.defaults.headers.common.schoolId+"/Docs/portalReference",e.file_name=[],t.data.length>0){e.filedata2=t.data;for(var a=0;a<e.filedata2.length;a++){var s=[];s.fileName=e.filedata2[a].sims_reference_Policy,s.status=e.filedata2[a].sims_policy_status,s.desc=e.filedata2[a].sims_reference_desc,s.sims_reference_number=e.filedata2[a].sims_reference_number,s.filePath=e.filedata2[a].sims_reference_filename,e.file_name.push(s)}}}),e.PolicyClick=function(){for(var t=!1,s=[],o=0;o<e.file_name.length;o++)!0===e.file_name[o].status&&null!=e.file_name[o].status&&""!=e.file_name[o].status||(swal({title:"Alert",text:"Please read all policies",imageUrl:"assets/img/notification-alert.png"}),t=!0);if(!0!==t){for(o=0;o<e.file_name.length;o++){var n={sims_policy_statusTrue:e.file_name[o].status,sims_reference_number:e.file_name[o].sims_reference_number,sims_consent_parent_id:a.globals.currentUser.username};s.push(n)}r.post(i.apiUrl+"api/dashboard/Insert_Policy",s).then(function(t){e.ins=t.data}),$('.nav-tabs a[href="#admtab2"]').tab("show")}},e.Submit=function(){for(var t=!1,s=0;s<e.file_name_Con.length;s++)(null===e.file_name_Con[s].statusFalse&&null===e.file_name_Con[s].statusTrue||""===e.file_name_Con[s].statusFalse&&""===e.file_name_Con[s].statusTrue)&&(swal({title:"Alert",text:"Please check all boxes",imageUrl:"assets/img/notification-alert.png"}),t=!0);if(!0!==t){var o=[];for(s=0;s<e.file_name_Con.length;s++){var n={sims_consent_statusFalse:e.file_name_Con[s].statusFalse,sims_consent_statusTrue:e.file_name_Con[s].statusTrue,sims_reference_number:e.file_name_Con[s].sims_reference_number,sims_consent_parent_id:a.globals.currentUser.username,sims_consent_enroll:a.globals.currentStudent.enroll_number};o.push(n)}r.post(i.apiUrl+"api/dashboard/Insert_Consent",o).then(function(t){e.ins=t.data,t.data?swal({title:"Alert",text:"Consent Submitted Successfully",showCloseButton:!0,width:380}):swal({title:"Alert",text:"Consent not submitted",showCloseButton:!0,width:380})});var l={sims_consent_parent_id:a.globals.currentUser.username,sims_consent_enroll:a.globals.currentStudent.enroll_number};r.post(i.apiUrl+"api/dashboard/Insert_Consent_Conf",l).then(function(t){e.ins=t.data})}$("#myModal").modal("hide")},r.get(i.apiUrl+"api/dashboard/GetFileCon").then(function(t){if(e.url_doc=i.docUrl+r.defaults.headers.common.schoolId+"/Docs/portalReference",e.file_name_Con=[],t.data.length>0){e.filedata4=t.data;for(var a=0;a<e.filedata4.length;a++){var s=[];s.fileNameCon=e.filedata4[a].sims_reference_Policy,s.statusTrue=e.filedata4[a].sims_Consent_status,s.statusFalse=e.filedata4[a].sims_Consent_status_false,s.desc1=e.filedata4[a].sims_reference_desc,s.sims_reference_number=e.filedata4[a].sims_reference_number,s.filePathCon=e.filedata4[a].sims_reference_filename,e.file_name_Con.push(s)}}}),"portal"==r.defaults.headers.common.schoolId&&r.get(i.apiUrl+"api/dashboard/getParentDetail").then(function(t){var s=[];if(t.data.length>0){e.filedata5=t.data;for(var o=0;o<e.filedata5.length;o++)if(s.userName=e.filedata5[o].sims_consent_parent_id,s.status=e.filedata5[o].sims_consent_status,s.userName==a.globals.currentUser.username)return}$("#myModal1").modal("show"),$('.nav-tabs a[href="#admtab1"]').tab("show")}),e.getPrevStep2=function(){$('.nav-tabs a[href="#admtab1"]').tab("show")}}])}(),function(){var e=angular.module("sims");e.filter("studentDataFilter",function(){return function(e){return e.split("|")[0]}}),e.filter("studentVisibleFilter",function(){return function(e){var t=e.split("|")[1];return"Y"===(t=t.substring(1,1))}}),e.filter("studentDisableFilter",function(){return function(e){var t=e.split("|")[1];return"Y"===(t=t.substring(0,1))}}),e.filter("html",["$sce",function(e){return function(t){return e.trustAsHtml(t)}}]),e.filter("offset",function(){return function(e,t){return t=parseInt(t,10),e.slice(t)}}),e.filter("capitalize",function(){return function(e){return e?e.charAt(0).toUpperCase()+e.substr(1).toLowerCase():""}}),e.filter("linkyWithHtml",["$filter",function(e){return function(t){return e("linky")(t).replace(/\&gt;/g,">").replace(/\&lt;/g,"<")}}])}(),function(){"use strict";angular.module("sims.module.circular",["sims","gettext"])}(),function(){"use strict";angular.module("sims.module.circular").controller("CircularController",["$scope","$state","$rootScope","$timeout","$stateParams","gettextCatalog","$http","ENV",function(e,t,a,s,o,n,r,i){e.display=!1,e.grid=!0,e.itemsPerPage="5",e.currentPage=0,e.obj=[];e.edt=[],e.user_name=a.globals.currentUser.username,e.temp=[],e.archivelst=[],e.chk_school=!1,e.flg_asd=!1,"asd"!=r.defaults.headers.common.schoolId&&"aps"!=r.defaults.headers.common.schoolId&&"lwg"!=r.defaults.headers.common.schoolId&&"aelc"!=r.defaults.headers.common.schoolId||(e.flg_asd=!0),"pearl"!=r.defaults.headers.common.schoolId&&"tiadxb"!=r.defaults.headers.common.schoolId&&"tiashj"!=r.defaults.headers.common.schoolId&&"aisdxb"!=r.defaults.headers.common.schoolId&&"tosdxb"!=r.defaults.headers.common.schoolId&&"staging1"!=r.defaults.headers.common.schoolId&&"staging2"!=r.defaults.headers.common.schoolId&&"staging3"!=r.defaults.headers.common.schoolId&&"staging4"!=r.defaults.headers.common.schoolId||(e.flg_pearl=!0),e.month=[{month_nm:"January",month_code:"01"},{month_nm:"February",month_code:"02"},{month_nm:"March",month_code:"03"},{month_nm:"April",month_code:"04"},{month_nm:"May",month_code:"05"},{month_nm:"June",month_code:"06"},{month_nm:"July",month_code:"07"},{month_nm:"August",month_code:"08"},{month_nm:"September",month_code:"09"},{month_nm:"October",month_code:"10"},{month_nm:"November",month_code:"11"},{month_nm:"December",month_code:"12"}];var l,d=(l=new Date).getDate(),m=l.getMonth()+1,_=l.getFullYear();d=(l=new Date).getDate(),a.globals.currentUser.username;d<10&&(d="0"+d),(m=l.getMonth()+1)<10&&(m="0"+m);_=l.getFullYear();if(e.current_date=d+"-"+m+"-"+_,e.search_Archive_click=function(){void 0==e.temp.month_code&&(e.temp.month_code=""),r.get(i.apiUrl+"api/circular/GetArchiveCirculers?academic_year="+e.temp.sims_academic_year+"&month="+e.temp.month_code).then(function(t){e.display=!0,e.obj=t.data,e.currentPage=0})},r.get(i.apiUrl+"api/circular/GetStudentByGrade?parentcode="+e.user_name).then(function(t){e.studentbygrade=t.data}),e.getallcirculars=function(){console.log(a.globals.currentStudent,"abc"),r.get(i.apiUrl+"api/circular/getCircularByDates?fromDate="+c+"&toDate="+c+"&cur="+a.globals.currentStudent.sims_cur_code+"&acad_year="+a.globals.currentStudent.sims_acad_yr+"&user_name="+e.user_name).then(function(t){e.display=!0,e.grid=!0,e.obj=t.data})},e.getcircularsbystudent=function(t){r.get(i.apiUrl+"api/circular/GetCircularBystudent?fromDate="+c+"&toDate="+c+"&user_name="+e.user_name+"&enroll="+t).then(function(t){e.display=!0,e.grid=!0,e.obj=t.data})},e.getCircularDetails=function(t){e.temp=[],e.enrollno=a.globals.currentStudent.sims_student_enroll_number,e.cur_code=a.globals.currentStudent.sims_cur_code,e.acad_yr=a.globals.currentStudent.sims_acad_yr;var s=new Date,o=s.getDate()+"-"+(s.getMonth()+1)+"-"+s.getFullYear();e.edt.sdate=moment(o,"DD-MM-YYYY").format("DD-MM-YYYY"),e.edt.edate=moment(o,"DD-MM-YYYY").format("DD-MM-YYYY"),"kipling"==r.defaults.headers.common.schoolId?r.get(i.apiUrl+"api/circular/getCircularByDatesKipling?fromDate="+void 0+"&toDate="+void 0+"&cur="+a.globals.currentStudent.sims_cur_code+"&acad_year="+a.globals.currentStudent.sims_acad_yr+"&user_name="+e.user_name+"&enroll_no="+e.enrollno).then(function(t){e.display=!0,e.grid=!0,e.obj=t.data}):r.get(i.apiUrl+"api/circular/getCircularByDates?fromDate="+void 0+"&toDate="+void 0+"&cur="+a.globals.currentStudent.sims_cur_code+"&acad_year="+a.globals.currentStudent.sims_acad_yr+"&user_name="+e.user_name).then(function(t){e.display=!0,e.grid=!0,e.obj=t.data}),r.get(i.apiUrl+"api/common/getCuriculum").then(function(t){e.display=!0,e.cur_data=t.data,t.data.length>0&&(e.edt.sims_attendance_cur_code=e.cur_code,r.get(i.apiUrl+"api/common/getAllAcademicYear?cur_code="+e.cur_code).then(function(t){e.display=!0,e.acad_data=t.data,e.edt.sims_academic_year=e.acad_yr}))}),e.getAcademicYr=function(t){r.get(i.apiUrl+"api/common/getAllAcademicYear?cur_code="+t).then(function(t){e.display=!0,e.acad_data=t.data})},e.sims_cur_code=a.globals.currentStudent.sims_cur_code,r.get(i.apiUrl+"api/circular/GetAcademicYear?cur="+e.sims_cur_code).then(function(t){e.rcmbAcademic=t.data,e.temp.sims_academic_year=e.acad_yr})},e.size=function(t){e.itemsPerPage=t},e.range=function(){var t,a=[];(t=e.currentPage)>e.pageCount()-5&&(t=e.pageCount()-5+1);for(var s=t;s<t+5;s++)s>=0&&a.push(s);return a},e.prevPage=function(){try{var t="#page-"+e.currentPage;$(t).css({"background-color":"transparent"})}catch(e){}if(e.currentPage>0){e.currentPage--;var a="#page-"+e.currentPage;$(a).css({"background-color":"#000"})}},e.prevPageDisabled=function(){return 0===e.currentPage?"disabled":""},e.pageCount=function(){return Math.ceil(e.obj.length/e.itemsPerPage)-1},e.nextPage=function(){e.currentPage<e.pageCount()&&e.currentPage++},e.nextPageDisabled=function(){return e.currentPage===e.pageCount()?"disabled":""},e.setPage=function(t){for(var a=0;a<=e.pageCount();a++){var s="#page-"+a;$(s).css({"background-color":"transparent"})}s="#page-"+t;$(s).css({"background-color":"#000"}),e.currentPage=t},o.flag)if(a.globals.cirflag){var c=a.globals.alertDate;e.search=c,a.globals.cirflag=!1}else{var u=a.globals.circularMsg.split(/-/)[1];e.search=u.trim()}else e.search=void 0;function p(e){var t=e.split("-");return t[2]+"-"+t[1]+"-"+t[0]}e.getReadCirculars=function(t){var a=[],s={sims_circular_number:t,sims_user_name:e.user_name,opr:"U"};a.push(s),r.post(i.apiUrl+"api/circular/CUDCircular",a).then(function(t){e.display=!0,e.grid=!0,e.cirdata=t.data,!0===e.cirdata&&e.getGrid()})},e.getGrid=function(){e.obj=[],r.get(i.apiUrl+"api/circular/GetCirculers?user_name="+e.user_name).then(function(t){e.display=!0,e.grid=!0,e.obj=t.data})},e.get=function(t){r.get(i.apiUrl+"api/circular/getCircularById?sims_circular_number="+t).then(function(t){e.display=!0,e.grid=!0,e.obj1=t.data})},e.search_click=function(t,s){if(e.currentPage=0,e.obj=[],""==e.edt.sdate||""==e.edt.edate)e.getGrid();else{e.enrollno=a.globals.currentStudent.sims_student_enroll_number;var o=moment(e.edt.sdate,"DD-MM-YYYY").format("YYYY-MM-DD"),n=moment(e.edt.edate,"DD-MM-YYYY").format("YYYY-MM-DD");"kipling"==r.defaults.headers.common.schoolId?r.get(i.apiUrl+"api/circular/getCircularByDatesKipling?fromDate="+o+"&toDate="+n+"&cur="+t+"&acad_year="+s+"&user_name="+e.user_name+"&enroll_no="+e.enrollno).then(function(t){e.display=!0,e.grid=!0,e.obj=t.data}):r.get(i.apiUrl+"api/circular/getCircularByDates?fromDate="+o+"&toDate="+n+"&cur="+t+"&acad_year="+s+"&user_name="+e.user_name).then(function(t){e.display=!0,e.grid=!0,e.obj=t.data})}},e.link=function(t){if(e.cir_url="",!angular.isUndefined(a.pp_url_lst)&&a.pp_url_lst.length>0)for(var s=0;s<a.pp_url_lst.length;s++)"Circular"==a.pp_url_lst[s].sims_appl_parameter&&(e.cir_url=a.pp_url_lst[s].sims_appl_form_field_value1+a.pp_url_lst[s].sims_appl_form_field_value2+"/");""==e.cir_url&&(e.cir_url=e.ObjSchoolDetails.lic_website_url+"/Images/CircularFiles/"),window.open(e.cir_url+t,"_new")},e.getsetStart=function(t){var a=t.split("/")[0],s=t.split("/")[1],o=t.split("/")[2]+"-"+a+"-"+s;e.edt.sdate=o},e.getsetEnd=function(t){var a=t.split("/")[0],s=t.split("/")[1],o=t.split("/")[2]+"-"+a+"-"+s;e.edt.edate=o},e.cirClick=function(){e.on_archive=!1,r.get(i.apiUrl+"api/circular/GetCirculers?user_name="+e.user_name).then(function(t){e.display=!0,e.grid=!0,e.obj=t.data,e.currentPage=0})},e.on_archive=!1,e.archClick=function(){e.on_archive=!0,e.temp=[],e.temp.sims_academic_year=a.globals.currentStudent.sims_acad_yr,e.obj=[],r.get(i.apiUrl+"api/circular/GetArchiveCirculers?academic_year="+e.temp.sims_academic_year+"&month=").then(function(t){e.display=!0,e.obj=t.data,e.currentPage=0})},e.archiveClick=function(t){e.desc=[],e.desc.sims_circular_title=t.sims_circular_title,e.desc.sims_circular_short_desc=t.sims_circular_short_desc,e.desc.sims_circular_desc=t.sims_circular_desc,e.desc.sims_circular_publish_date=t.sims_circular_publish_date,e.desc.sims_circular_file_name1=t.sims_circular_file_name1,e.desc.sims_circular_file_name2=t.sims_circular_file_name2,e.desc.sims_circular_file_name3=t.sims_circular_file_name3,$("#archiveModel").modal("show")},e.reset=function(){e.obj="",e.endDate="",e.startDate="",e.edate="",e.sdate="",e.search=void 0,e.getGrid(),e.edt="",e.temp=[],e.temp.sims_academic_year=a.globals.currentStudent.sims_acad_yr},e.chkdate=function(){p(e.edt.sdate)>p(e.current_date)&&(swal({title:"Alert",text:"From date should not be greater then today date",imageUrl:"assets/img/notification-alert.png"}),e.edt.sdate="")},e.$on("student_change",function(t,a){e.getCircularDetails()}),a.globals.studentsLoaded&&e.getCircularDetails()}])}(),function(){"use strict";angular.module("sims.module.student",["sims","gettext"])}(),function(){"use strict";var e=angular.module("sims.module.student");e.controller("StudentController",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(e,t,a,s,o,n,r,i){function l(e){if(null!=e){var t=new Date(e),a=t.getMonth()+1,s=t.getDate();return a<10&&(a="0"+a),s<10&&(s="0"+s),t.getFullYear()+"-"+a+"-"+s}}e.display=!1,e.btnEdit=!0,e.btnCancel=!1,e.btnSave=!1,e.btnEdit1=!0,e.btnCancel1=!1,e.btnSave1=!1,e.btnEdit2=!0,e.btnCancel2=!1,e.btnSave2=!1,e.btnEdit3=!0,e.btnCancel3=!1,e.btnSave3=!1,e.btnEdit4=!0,e.btnCancel4=!1,e.btnSave4=!1,e.prev_img="",e.uploading_path="",e.d_sims_student_emergency_contact_name1=!1,e.d_sims_student_emergency_contact_name2=!1,e.d_sims_student_remark=!1,e.d_sims_student_emergency_contact_number1=!1,e.d_sims_student_emergency_contact_number2=!1,e.d_sims_student_passport_number=!1,e.otherDetailsReadonly=!0,e.otherDetailshow=!1,e.Passportshow=!1,e.PassportReadonly=!0,e.is_studentpco=!0,e.Nationalshow=!1,e.NationalReadonly=!0,e.Departmentshow=!1,e.DepartmentReadonly=!0,e.div_hide=!1,e.show=!0,e.hide=!1,e.chk_school=!1,$(".loader").hide(),["aics","tiadxb","staging1","staging2","staging3","tiashj","staging4","aisdxb","tosdxb"].includes(n.defaults.headers.common.schoolId)&&(e.flg_leams=!0,e.visa_hide=!0,e.hide_Ministry=!0),["misqatar","sisqatar","eiama","eiand","eiagps","tiadxb","tiashj","tosdxb","aisdxb"].includes(n.defaults.headers.common.schoolId)&&(e.hide_Ministry=!0),"hedgewar"==n.defaults.headers.common.schoolId&&(e.show_adhar=!0),["amps","sisqatar","abqis","asis","siso","ges","smsm","saiss","saisu","saisd","saisa"].includes(n.defaults.headers.common.schoolId)&&(e.is_student=!0,e.is_student_aboutus=!0),["abqis","asis","siso"].includes(n.defaults.headers.common.schoolId)&&(e.flg_house=!0),["abqis","asis","siso"].includes(n.defaults.headers.common.schoolId)&&(e.is_studentpco=!1),"abqis"==n.defaults.headers.common.schoolId||"siso"==n.defaults.headers.common.schoolId||"asis"==n.defaults.headers.common.schoolId?e.profile_abq=!1:e.profile_abq=!0,e.national1=!0,e.national2=!1,e.id_number="Emirates ID number","aas"!=n.defaults.headers.common.schoolId&&"iisqatar"!=n.defaults.headers.common.schoolId&&"sisqatar"!=n.defaults.headers.common.schoolId||(e.national1=!1,e.national2=!0,e.id_number="Quatar ID number"),"sisqatar"==n.defaults.headers.common.schoolId&&(e.d_sims_student_emergency_contact_name1=!0,e.d_sims_student_emergency_contact_name2=!0,e.d_sims_student_emergency_contact_number1=!0,e.d_sims_student_emergency_contact_number2=!0,e.d_sims_student_remark=!0,e.d_sims_student_passport_number=!0),["ihsonlineom","mstagingdso","iisonlinedso","mstagingag","ihsonlineag","mstagingom","portaldso","portalag"].includes(n.defaults.headers.common.schoolId)?(e.is_student_aboutus=!0,e.tile_hide=!0,e.contactinfo=!0):e.contactinfo=!1,e.getstudentList=function(){e.student_grade_section(),e.studentName=a.globals.currentStudent.sims_student_passport_fullname,e.enroll_number=a.globals.currentStudent.sims_student_enroll_number,e.grade=a.globals.currentStudent.sims_grade_name_en,e.section=a.globals.currentStudent.sims_section_name_en,e.schoolCode=n.defaults.headers.common.schoolId,e.apiurlpath=r.apiUrl,"asd"==n.defaults.headers.common.schoolId&&(e.chk_school=!0),["asis","abqis","siso"].includes(n.defaults.headers.common.schoolId)&&(e.tile_hide=!0,e.visa_hide=!0,e.hide_Ministry=!0),n.get(r.apiUrl+"api/student/getStudentInfo?student_enroll="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.obj=t.data,e.getimg()}),n.get(r.apiUrl+"api/device/GetRegIdNew?username="+a.globals.currentUser.username).then(function(t){e.device=t.data}),e.updateDevice=function(t){n.post(r.apiUrl+"api/device/UpdateRegId?opr=X&obj="+JSON.stringify(t)).then(function(t){e.devi=t.data})},n.get(r.apiUrl+"api/student/getStudentpco?student_enroll="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.studentpco=t.data,e.div_hide=!0})},e.Save=function(){var t=new Object;t.student_enroll_no=a.globals.currentStudent.sims_student_enroll_number,t.sims_parent_number=a.globals.currentUser.username,t.sims_student_image=e.obj.sims_student_image,t.sims_student_passport_first_name_en=e.obj.sims_student_passport_first_name_en,t.sims_student_passport_middle_name_en=e.obj.sims_student_passport_middle_name_en,t.sims_student_passport_last_name_en=e.obj.sims_student_passport_last_name_en,t.sims_student_family_name_en=e.obj.sims_student_family_name_en,t.sims_student_passport_first_name_ot=e.obj.sims_student_passport_first_name_ot,t.sims_student_passport_middle_name_ot=e.obj.sims_student_passport_middle_name_ot,t.sims_student_passport_last_name_ot=e.obj.sims_student_passport_last_name_ot,t.sims_student_family_name_ot=e.obj.sims_student_family_name_ot,t.sims_student_nickname=e.obj.sims_student_nickname,t.sims_appl_parameter_gender=e.obj.sims_appl_parameter_gender,t.sims_student_dob=l(e.obj.sims_student_dob),t.sims_student_birth_country_code=e.obj.sims_student_birth_country_code,t.sims_nationality_code=e.obj.sims_nationality_code,t.sims_ethnicity_code=e.obj.sims_ethnicity_code,t.sims_religion_code=e.obj.sims_religion_code,t.sims_parent_father_summary_address=e.obj.sims_parent_father_summary_address,t.sims_parent_father_city=e.obj.sims_parent_father_city,t.sims_parent_father_state=e.obj.sims_parent_father_state,t.sims_parent_father_country_code=e.obj.sims_parent_country_code,t.sims_parent_father_phone=e.obj.sims_parent_father_phone,t.sims_parent_father_mobile=e.obj.sims_parent_father_mobile,t.sims_parent_father_email=e.obj.sims_parent_father_email,t.sims_parent_father_fax=e.obj.sims_parent_father_fax,t.sims_parent_father_po_box=e.obj.sims_parent_father_po_box,t.sims_student_current_school_code=e.obj.sims_student_current_school_code,t.sims_student_date=l(e.obj.sims_student_date),t.sims_student_commence_date=l(e.obj.sims_student_commence_date),t.sims_student_academic_status=e.obj.sims_appl_parameter_Academic_Status_Code,t.sims_student_class_rank=e.obj.sims_student_class_rank,t.sims_student_house=e.obj.sims_student_house,t.sims_student_transport_status=e.obj.sims_student_transport_status,t.sims_student_main_language=e.obj.sims_language_code,t.sims_student_other_language=e.obj.sims_student_other_language,t.sims_appl_parameter_legal=e.obj.sims_appl_parameter_legal,t.sims_student_last_login=l(e.obj.sims_student_last_login),t.sims_student_remark=e.obj.sims_student_remark,t.sims_student_emergency_contact_name1=e.obj.sims_student_emergency_contact_name1,t.sims_student_emergency_contact_name2=e.obj.sims_student_emergency_contact_name2,t.sims_student_emergency_contact_number1=e.obj.sims_student_emergency_contact_number1,t.sims_student_emergency_contact_number2=e.obj.sims_student_emergency_contact_number2,t.sims_student_passport_number=e.obj.sims_student_passport_number,t.sims_student_passport_issue_date=l(e.obj.sims_student_passport_issue_date),t.sims_student_passport_expiry_date=l(e.obj.sims_student_passport_expiry_date),t.sims_student_passport_issuing_authority=e.obj.sims_student_passport_issuing_authority,t.sims_student_passport_issue_place=e.obj.sims_student_passport_issue_place,t.sims_student_national_id=e.obj.sims_student_national_id,t.sims_student_national_id_issue_date=l(e.obj.sims_student_national_id_issue_date),t.sims_student_national_id_expiry_date=l(e.obj.sims_student_national_id_expiry_date),t.sims_student_visa_number=e.obj.sims_student_visa_number,t.sims_student_visa_issue_date=l(e.obj.sims_student_visa_issue_date),t.sims_student_visa_expiry_date=l(e.obj.sims_student_visa_expiry_date),t.sims_student_visa_issuing_place=e.obj.sims_student_visa_issuing_place,t.sims_student_visa_issuing_authority=e.obj.sims_student_visa_issuing_authority,t.sims_student_visa_type=e.obj.sims_student_visa_type,t.sims_student_ea_number=e.obj.sims_student_ea_number,t.sims_student_ea_registration_date=l(e.obj.sims_student_ea_registration_date),t.sims_student_ea_transfer=e.obj.sims_student_ea_transfer,t.sims_student_ea_status=e.obj.sims_student_ea_status,t.student_email=e.obj.student_email,n.delete(r.apiUrl+"api/student/studentupdate",{data:t,headers:{"Content-Type":"application/json"}},null).then(function(t){n.get(r.apiUrl+"api/student/getStudentInfo?student_enroll="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.obj=t.data,e.div_hide=!1,e.show=!0,e.hide=!1,e.div_hide=!0,e.btnEdit=!0,e.btnCancel=!1,e.btnSave=!1,e.btnEdit1=!0,e.btnCancel1=!1,e.btnSave1=!1,e.btnEdit2=!0,e.btnCancel2=!1,e.btnSave2=!1,e.btnEdit3=!0,e.btnCancel3=!1,e.btnSave3=!1,e.btnEdit4=!0,e.btnCancel4=!1,e.btnSave4=!1})},function(e){})},e.student_grade_section=function(){n.get(r.apiUrl+"api/student/getStudentGradeSection?enroll_num="+a.globals.currentStudent.sims_student_enroll_number).then(function(t){e.class=t.data[0].grade_sec})},e.edit=function(){e.btnEdit=!1,e.btnSave=!0,e.btnCancel=!0,e.btnEdit1=!1,e.btnSave1=!0,e.btnCancel1=!0,e.btnEdit2=!1,e.btnCancel2=!0,e.btnSave2=!0,e.btnEdit3=!1,e.btnCancel3=!0,e.btnSave3=!0,e.btnEdit4=!1,e.btnCancel4=!0,e.btnSave4=!0,e.hide=!0,e.show=!1},e.Cancel=function(){e.btnEdit=!0,e.btnSave=!1,e.btnCancel=!1,e.btnEdit1=!0,e.btnSave1=!1,e.btnCancel1=!1,e.btnEdit2=!0,e.btnCancel2=!1,e.btnSave2=!1,e.btnEdit3=!0,e.btnCancel3=!1,e.btnSave3=!1,e.btnEdit4=!0,e.btnCancel4=!1,e.btnSave4=!1,e.hide=!1,e.show=!0},n.get(r.apiUrl+"api/common/getAllComboBoxValues?academicYear=2015&routeCode=01").then(function(t){e.display=!0,e.obj2=t.data}),e.Getinfo1=function(t){n.get(r.apiUrl+"api/common/getState?CountryCode="+t).then(function(t){e.display=!0,e.obj3=t.data})},e.Getinfo2=function(t){n.get(r.apiUrl+"api/common/getCity?StateCode="+t).then(function(t){e.display=!0,e.obj4=t.data})},$('*[data-datepicker="true"] input[type="text"]').datepicker({todayBtn:!0,orientation:"top left",autoclose:!0,todayHighlight:!0}),e.model=function(){$("#myModal").modal("show")};var d=new FormData;e.getTheFiles=function(e){angular.forEach(e,function(e,t){d.append(t,e)})},e.file_changed=function(t){e.flg_check_photo=!1;var a=t.files[0];imageConversion.compressAccurately(a,{type:"image/jpeg",width:168,size:100}).then(t=>{e.sims_photo_compressed=new File([t],"compressed_photo",{type:"image/jpeg"})}),e.photo_filename=a.type;var s=a.name.toLowerCase().split(".");if(s=s[s.length-1],t.files[0].size<8e6)if("jpeg"==s||"jpg"==s||"png"==s){var o=new FileReader;o.onload=function(t){e.$apply(function(){e.prev_img=t.target.result})},o.readAsDataURL(a)}else swal({title:"File format not Supported. Supporting formats are jpeg , jpg , png",imageUrl:"assets/img/notification-alert.png",showCloseButton:!0,width:380}),e.flg_check_photo=!0,e.ImgClickFShow=!1;else swal({title:"Error : File size should be less than 8MB.",imageUrl:"assets/img/notification-alert.png"}),e.flg_check_photo=!0,e.uploadImgClickFShow=!1},e.uploadImgClickF=function(){e.uploadImgClickFShow=!0},e.uploadImgCancel=function(){e.uploadImgClickFShow=!1},e.getimg=function(){if(e.prev_img="",e.uploading_path="",!angular.isUndefined(a.pp_url_lst)){if(a.pp_url_lst.length>0)for(var t=0;t<a.pp_url_lst.length;t++)if("Student"==a.pp_url_lst[t].sims_appl_parameter){e.prev_img=e.obj1.lic_website_url+a.pp_url_lst[t].sims_appl_form_field_value2+"/"+(e.obj.sims_student_image?e.obj.sims_student_image:a.globals.currentStudent.sims_student_img),e.uploading_path=a.pp_url_lst[t].sims_appl_form_field_value2;break}""==e.prev_img&&(e.prev_img=e.obj1.lic_website_url+"Images/StudentImages/"+a.globals.currentStudent.sims_student_img)}};var m=null;["ihsonlineom","mstagingdso","iisonlinedso","mstagingag","ihsonlineag","mstagingom","portaldso","portalag"].includes(n.defaults.headers.common.schoolId)?(e.urlapi_path="https://apiihs.schoolappsuae.com/mograSISAPI/",m=""!=e.uploading_path?e.uploading_path.replace("Images/",""):"StudentImages/"):r.AWS.includes(n.defaults.headers.common.schoolId)?(e.urlapi_path="https://assets.mograsys.com/Content/"+n.defaults.headers.common.schoolId,m=""!=e.uploading_path?e.uploading_path.replace("Images/",""):"StudentImages/"):(e.urlapi_path="https://api.mograsys.com/kindoapi/",m=e.uploading_path,m=""!=e.uploading_path?e.uploading_path.replace("Images/",""):"StudentImages/"),e.uploadImg=function(){$(".loader").show();let t=Array.from(Math.random().toString());t.splice(0,2),t="_"+(t=t.join(""));let s=new FormData;if(e.upapi_path="",["facp","smsm","modernjr","smsk","nacasca","gurukulponda","ccw64","sessos","ameyahss","vmsiihe","clarahealtonation","puneiat","christ","dmc","dvhs","dvhss","dvps","modern"].includes(n.defaults.headers.common.schoolId)){e.upapi_path="https://"+n.defaults.headers.common.schoolId+".appsis.co.in/kindoapi/",e.aws_path=!0;var o={method:"POST",url:e.upapi_path+"api/fileNew/uploadDocument?filename="+a.globals.currentStudent.enroll_number+t+".png&location=/Images/StudentImages/",data:d,headers:{"Content-Type":void 0}};s.append(a.globals.currentStudent.enroll_number+t+"_lowres.png",e.sims_photo_compressed);var i={method:"POST",url:e.upapi_path+"api/fileNew/uploadDocument?filename="+a.globals.currentStudent.enroll_number+t+"_lowres.png&location=/Images/StudentImages/",data:s,headers:{"Content-Type":void 0}}}else if(["ang1dev","aas","ang1prod","saisd","saiss","saisa","saids","saisu","sokstaging","tsk","tsis","sisqatar","abps","svs","nas","cbsesmf","ds","sia","sok","uksmf","ics","iisqatar","ges","iis","slis","clarionschool","oesco","abqstaging","demo","aelc","lpn","bloomeducation","bloomeseuaq","bloomesealwadi","bloomesealmizhar","bloomeseajman","bloomesealtwar","bloomsisams","modern","abqis","siso","asis"].includes(n.defaults.headers.common.schoolId)){e.upapi_path="https://"+n.defaults.headers.common.schoolId+".mograsys.com/kindoapi/",e.aws_path=!0;o={method:"POST",url:e.upapi_path+"api/fileNew/uploadDocument?filename="+a.globals.currentStudent.enroll_number+t+".png&location=/Images/StudentImages/",data:d,headers:{"Content-Type":void 0}};s.append(a.globals.currentStudent.enroll_number+t+"_lowres.png",e.sims_photo_compressed);i={method:"POST",url:e.upapi_path+"api/fileNew/uploadDocument?filename="+a.globals.currentStudent.enroll_number+t+"_lowres.png&location=/Images/StudentImages/",data:s,headers:{"Content-Type":void 0}}}else if(["portal"].includes(n.defaults.headers.common.schoolId)){e.upapi_path="https://"+n.defaults.headers.common.schoolId+".rakaa.sch.ae/kindoapi/",e.aws_path=!0;o={method:"POST",url:e.upapi_path+"api/fileNew/uploadDocument?filename="+a.globals.currentStudent.enroll_number+t+".png&location=/Images/StudentImages/",data:d,headers:{"Content-Type":void 0}};s.append(a.globals.currentStudent.enroll_number+t+"_lowres.png",e.sims_photo_compressed);i={method:"POST",url:e.upapi_path+"api/fileNew/uploadDocument?filename="+a.globals.currentStudent.enroll_number+t+"_lowres.png&location=/Images/StudentImages/",data:s,headers:{"Content-Type":void 0}}}else if(["asdportal","apsportal"].includes(n.defaults.headers.common.schoolId)){e.upapi_path="https://"+n.defaults.headers.common.schoolId+".amitydubai.ae/kindoapi/",e.aws_path=!0;o={method:"POST",url:e.upapi_path+"api/fileNew/uploadDocument?filename="+a.globals.currentStudent.enroll_number+t+".png&location=/Images/StudentImages/",data:d,headers:{"Content-Type":void 0}};s.append(a.globals.currentStudent.enroll_number+t+"_lowres.png",e.sims_photo_compressed);i={method:"POST",url:e.upapi_path+"api/fileNew/uploadDocument?filename="+a.globals.currentStudent.enroll_number+t+"_lowres.png&location=/Images/StudentImages/",data:s,headers:{"Content-Type":void 0}}}else if(["ihsonlineom","mstagingdso","iisonlinedso","mstagingag","ihsonlineag","mstagingom","portaldso","portalag","portalom"].includes(n.defaults.headers.common.schoolId)){e.upapi_path="https://apiihs.schoolappsuae.com/mograSISAPI/",e.aws_path=!0;o={method:"POST",url:e.upapi_path+"api/file1/uploadImageIHS?filename="+a.globals.currentStudent.enroll_number+t+".png&location=/Images/StudentImages/",data:d,headers:{"Content-Type":void 0}};s.append(a.globals.currentStudent.enroll_number+t+"_lowres.png",e.sims_photo_compressed);i={method:"POST",url:e.upapi_path+"api/file1/uploadImageIHS?filename="+a.globals.currentStudent.enroll_number+t+"_lowres.png&location=/Images/StudentImages/",data:s,headers:{"Content-Type":void 0}}}else{e.upapi_path="https://api.mograsys.com/kindoapi/";o={method:"POST",url:e.upapi_path+"api/fileNew/uploadDocument?filename="+a.globals.currentStudent.enroll_number+"&location="+m,data:d,headers:{"Content-Type":void 0}};s.append(a.globals.currentStudent.enroll_number+"_lowres.png",e.sims_photo_compressed);i={method:"POST",url:e.upapi_path+"api/fileNew/uploadDocument?filename="+a.globals.currentStudent.enroll_number+"_lowres.png&location="+m,data:s,headers:{"Content-Type":void 0}}}n(o).success(function(t){var s=t,o=t;e.aws_path&&(o=(s=t.substring(t.lastIndexOf("/",t.length)+1,t.length)).replace(".png","_lowres.png"));var l={sims_student_img:s,sims_student_img_lowres:o,sims_student_enroll_number:a.globals.currentStudent.enroll_number,sims_student_updated_by:a.globals.currentUser.username};n.post(r.apiUrl+"api/student/updateStudentDetails?opr=SI&student_details="+JSON.stringify(l)).then(function(t){e.imgdata=t.data,n(i).success(function(e){}),e.imgdata?(swal({title:"Alert",text:"Photo saved successfully",imageUrl:"assets/img/check.png"}),e.reloadState()):swal({title:"Alert",text:"Photo not saved",imageUrl:"assets/img/notification-alert.png"})}),e.uploadImgClickFShow=!1,$(".loader").hide()})},e.reloadState=function(){t.reload()},e.updateAboutMe=function(){var t={sims_student_birth_country_code:e.obj.sims_student_birth_country_code,sims_student_nationality_code:e.obj.sims_nationality_code,sims_student_gender:e.obj.sims_appl_parameter_gender,sims_student_dob:e.obj.sims_student_dob,sims_student_enroll_number:a.globals.currentStudent.enroll_number,sims_religion_code:e.obj.sims_religion_code};n.post(r.apiUrl+"api/student/updateStudentDetails1?opr=AM&student_details="+JSON.stringify(t)).then(function(t){e.abt=t.data,e.abt?swal({title:"Alert",text:"Record Updated Successfully",imageUrl:"assets/img/check.png"}):swal({title:"Alert",text:"Record Not Updated",imageUrl:"assets/img/notification-alert.png"})})},e.otherDetailsClick=function(){e.otherDetailsReadonly=!1,e.otherDetailshow=!0},e.SaveotherDetailsClick=function(){e.otherDetailshow=!1,e.otherDetailsReadonly=!0;var t={sims_student_enroll_number:a.globals.currentStudent.enroll_number,sims_student_main_language_code:e.obj.sims_language_code,sims_student_transport_status:e.obj.sims_student_transport_status,sims_student_primary_contact_pref:e.obj.sims_appl_parameter_legal,sims_student_emergency_contact_name1:e.obj.sims_student_emergency_contact_name1,sims_student_emergency_contact_name2:e.obj.sims_student_emergency_contact_name2,sims_student_emergency_contact_number1:e.obj.sims_student_emergency_contact_number1,sims_student_emergency_contact_number2:e.obj.sims_student_emergency_contact_number2,sims_student_remark:e.obj.sims_student_remark,sims_student_updated_by:a.globals.currentUser.username};n.post(r.apiUrl+"api/student/updateStudentDetails?opr=OD&student_details="+JSON.stringify(t)).then(function(t){e.othr=t.data,e.othr?swal({title:"Alert",text:"Record Updated Successfully",imageUrl:"assets/img/check.png"}):swal({title:"Alert",text:"Record Not Updated",imageUrl:"assets/img/notification-alert.png"})})},e.cancelotherDetailsClick=function(){e.otherDetailshow=!1,e.otherDetailsReadonly=!0},e.PassportClick=function(){e.PassportReadonly=!1,e.Passportshow=!0},e.SavePassportClick=function(){e.Passportshow=!1,e.PassportReadonly=!0;var t={sims_student_enroll_number:a.globals.currentStudent.enroll_number,sims_student_passport_issue_date:e.obj.sims_student_passport_issue_date,sims_student_passport_expiry_date:e.obj.sims_student_passport_expiry_date,sims_student_passport_issuing_authority:e.obj.sims_student_passport_issuing_authority,sims_student_passport_issue_place:e.obj.sims_student_passport_issue_place,sims_student_updated_by:a.globals.currentUser.username,sims_student_passport_number:e.obj.sims_student_passport_number};n.post(r.apiUrl+"api/student/updateStudentDetails?opr=PD&student_details="+JSON.stringify(t)).then(function(t){e.pd=t.data,e.pd?swal({title:"Alert",text:"Record Updated Successfully",imageUrl:"assets/img/check.png"}):swal({title:"Alert",text:"Record Not Updated",imageUrl:"assets/img/notification-alert.png"})})},e.getcontactdetails=function(t){"F"==t&&(e.father_show=!0,e.mother_show=!1,e.guardian_show=!1),"M"==t&&(e.father_show=!1,e.mother_show=!0,e.guardian_show=!1),"G"==t&&(e.father_show=!1,e.mother_show=!1,e.guardian_show=!0)},e.cancelPassportClick=function(){e.Passportshow=!1,e.PassportReadonly=!0},e.NationalClick=function(){e.NationalReadonly=!1,e.Nationalshow=!0},e.SaveNationalClick=function(){e.Nationalshow=!1,e.NationalReadonly=!0;var t={sims_student_enroll_number:a.globals.currentStudent.enroll_number,sims_student_national_id:e.obj.sims_student_national_id,sims_student_national_id_issue_date:e.obj.sims_student_national_id_issue_date,sims_student_national_id_expiry_date:e.obj.sims_student_national_id_expiry_date,sims_student_visa_number:e.obj.sims_student_visa_number,sims_student_visa_type:e.obj.sims_student_visa_type_code,sims_student_visa_issue_date:e.obj.sims_student_visa_issue_date,sims_student_visa_expiry_date:e.obj.sims_student_visa_expiry_date,sims_student_visa_issuing_authority:e.obj.sims_student_visa_issuing_authority,sims_student_updated_by:a.globals.currentUser.username};n.post(r.apiUrl+"api/student/updateStudentDetails?opr=VD&student_details="+JSON.stringify(t)).then(function(t){e.VD=t.data,e.VD?swal({title:"Alert",text:"Record Updated Successfully",imageUrl:"assets/img/check.png"}):swal({title:"Alert",text:"Record Not Updated",imageUrl:"assets/img/notification-alert.png"})})},e.cancelNationalClick=function(){e.Nationalshow=!1,e.NationalReadonly=!0},e.DepartmentClick=function(){e.DepartmentReadonly=!1,e.Departmentshow=!0},e.SaveDepartmentClick=function(){e.Departmentshow=!1,e.DepartmentReadonly=!0;var t={sims_student_enroll_number:a.globals.currentStudent.enroll_number,sims_student_ea_number:e.obj.sims_student_ea_number,sims_student_ea_registration_date:e.obj.sims_student_ea_registration_date,sims_student_ea_transfer:e.obj.sims_student_ea_transfer,sims_student_ea_status:e.obj.sims_student_ea_status,sims_student_updated_by:a.globals.currentUser.username};n.post(r.apiUrl+"api/student/updateStudentDetails?opr=ED&student_details="+JSON.stringify(t)).then(function(t){e.ED=t.data,t.data?swal({title:"Alert",text:"Record Updated Successfully",imageUrl:"assets/img/check.png"}):swal({title:"Alert",text:"Record Not Updated",imageUrl:"assets/img/notification-alert.png"})})},e.cancelDepartmentClick=function(){e.Departmentshow=!1,e.DepartmentReadonly=!0},$(document).on("touch click",'*[data-datepicker="true"] .add-on',function(e){$('input[type="text"]',$(this).parent()).focus()}),a.globals.studentsLoaded&&e.getstudentList(),e.$on("student_change",function(){e.getstudentList()})}]),e.directive("ngFiles",["$parse",function(e){return{link:function(t,a,s){var o=e(s.ngFiles);a.on("change",function(e){o(t,{$files:e.target.files})})}}}])}(),function(){"use strict";var e=angular.module("sims.module.student");e.controller("StudentIHSController",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(e,t,a,s,o,n,r,i){function l(e){if(null!=e){var t=new Date(e),a=t.getMonth()+1,s=t.getDate();return a<10&&(a="0"+a),s<10&&(s="0"+s),t.getFullYear()+"-"+a+"-"+s}}e.display=!1,e.btnEdit=!0,e.btnCancel=!1,e.btnSave=!1,e.btnEdit1=!0,e.btnCancel1=!1,e.btnSave1=!1,e.btnEdit2=!0,e.btnCancel2=!1,e.btnSave2=!1,e.btnEdit3=!0,e.btnCancel3=!1,e.btnSave3=!1,e.btnEdit4=!0,e.btnCancel4=!1,e.btnSave4=!1,e.prev_img="",e.uploading_path="",e.d_sims_student_emergency_contact_name1=!1,e.d_sims_student_emergency_contact_name2=!1,e.d_sims_student_remark=!1,e.d_sims_student_emergency_contact_number1=!1,e.d_sims_student_emergency_contact_number2=!1,e.d_sims_student_passport_number=!1,e.otherDetailsReadonly=!0,e.otherDetailshow=!1,e.Passportshow=!1,e.PassportReadonly=!0,e.is_studentpco=!0,e.Nationalshow=!1,e.NationalReadonly=!0,e.Departmentshow=!1,e.DepartmentReadonly=!0,e.div_hide=!1,e.show=!0,e.hide=!1,e.chk_school=!1,$(".loader").hide(),["aics","tiadxb","staging1","staging2","staging3","tiashj","staging4","aisdxb","tosdxb"].includes(n.defaults.headers.common.schoolId)&&(e.flg_leams=!0,e.visa_hide=!0,e.hide_Ministry=!0),["misqatar","sisqatar","eiama","eiand","eiagps","tiadxb","tiashj","tosdxb","aisdxb"].includes(n.defaults.headers.common.schoolId)&&(e.hide_Ministry=!0),"hedgewar"==n.defaults.headers.common.schoolId&&(e.show_adhar=!0),["amps","sisqatar","abqis","asis","siso","ges","smsm","saiss","saisu","saisd","saisa"].includes(n.defaults.headers.common.schoolId)&&(e.is_student=!0,e.is_student_aboutus=!0),["abqis","asis","siso"].includes(n.defaults.headers.common.schoolId)&&(e.flg_house=!0),["abqis","asis","siso"].includes(n.defaults.headers.common.schoolId)&&(e.is_studentpco=!1),"abqis"==n.defaults.headers.common.schoolId||"siso"==n.defaults.headers.common.schoolId||"asis"==n.defaults.headers.common.schoolId?e.profile_abq=!1:e.profile_abq=!0,e.national1=!0,e.national2=!1,e.id_number="Emirates ID number","aas"!=n.defaults.headers.common.schoolId&&"iisqatar"!=n.defaults.headers.common.schoolId&&"sisqatar"!=n.defaults.headers.common.schoolId||(e.national1=!1,e.national2=!0,e.id_number="Quatar ID number"),"sisqatar"==n.defaults.headers.common.schoolId&&(e.d_sims_student_emergency_contact_name1=!0,e.d_sims_student_emergency_contact_name2=!0,e.d_sims_student_emergency_contact_number1=!0,e.d_sims_student_emergency_contact_number2=!0,e.d_sims_student_remark=!0,e.d_sims_student_passport_number=!0),["ihsonlineom","mstagingdso","iisonlinedso","mstagingag","ihsonlineag","mstagingom","portaldso","portalag"].includes(n.defaults.headers.common.schoolId)?(e.is_student_aboutus=!0,e.tile_hide=!0,e.contactinfo=!0):e.contactinfo=!1,e.getstudentList=function(){e.student_grade_section(),e.studentName=a.globals.currentStudent.sims_student_passport_fullname,e.enroll_number=a.globals.currentStudent.sims_student_enroll_number,e.grade=a.globals.currentStudent.sims_grade_name_en,e.section=a.globals.currentStudent.sims_section_name_en,e.schoolCode=n.defaults.headers.common.schoolId,e.apiurlpath=r.apiUrl,"asd"==n.defaults.headers.common.schoolId&&(e.chk_school=!0),["asis","abqis","siso"].includes(n.defaults.headers.common.schoolId)&&(e.tile_hide=!0,e.visa_hide=!0,e.hide_Ministry=!0),n.get(r.apiUrl+"api/student/getStudentInfo?student_enroll="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.obj=t.data,n.get(r.apiUrl+"api/student/getStudentUploadImgInfo?student_enroll="+a.globals.currentStudent.enroll_number).then(function(t){e.Temp5=t.data,e.obj.d_sims_student_image=e.Temp5[0].d_sims_student_image}),e.getimg()}),n.get(r.apiUrl+"api/device/GetRegIdNew?username="+a.globals.currentUser.username).then(function(t){e.device=t.data}),e.updateDevice=function(t){n.post(r.apiUrl+"api/device/UpdateRegId?opr=X&obj="+JSON.stringify(t)).then(function(t){e.devi=t.data})},n.get(r.apiUrl+"api/student/getStudentpco?student_enroll="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.studentpco=t.data,e.div_hide=!0})},e.Save=function(){var t=new Object;t.student_enroll_no=a.globals.currentStudent.sims_student_enroll_number,t.sims_parent_number=a.globals.currentUser.username,t.sims_student_image=e.obj.sims_student_image,t.sims_student_passport_first_name_en=e.obj.sims_student_passport_first_name_en,t.sims_student_passport_middle_name_en=e.obj.sims_student_passport_middle_name_en,t.sims_student_passport_last_name_en=e.obj.sims_student_passport_last_name_en,t.sims_student_family_name_en=e.obj.sims_student_family_name_en,t.sims_student_passport_first_name_ot=e.obj.sims_student_passport_first_name_ot,t.sims_student_passport_middle_name_ot=e.obj.sims_student_passport_middle_name_ot,t.sims_student_passport_last_name_ot=e.obj.sims_student_passport_last_name_ot,t.sims_student_family_name_ot=e.obj.sims_student_family_name_ot,t.sims_student_nickname=e.obj.sims_student_nickname,t.sims_appl_parameter_gender=e.obj.sims_appl_parameter_gender,t.sims_student_dob=l(e.obj.sims_student_dob),t.sims_student_birth_country_code=e.obj.sims_student_birth_country_code,t.sims_nationality_code=e.obj.sims_nationality_code,t.sims_ethnicity_code=e.obj.sims_ethnicity_code,t.sims_religion_code=e.obj.sims_religion_code,t.sims_parent_father_summary_address=e.obj.sims_parent_father_summary_address,t.sims_parent_father_city=e.obj.sims_parent_father_city,t.sims_parent_father_state=e.obj.sims_parent_father_state,t.sims_parent_father_country_code=e.obj.sims_parent_country_code,t.sims_parent_father_phone=e.obj.sims_parent_father_phone,t.sims_parent_father_mobile=e.obj.sims_parent_father_mobile,t.sims_parent_father_email=e.obj.sims_parent_father_email,t.sims_parent_father_fax=e.obj.sims_parent_father_fax,t.sims_parent_father_po_box=e.obj.sims_parent_father_po_box,t.sims_student_current_school_code=e.obj.sims_student_current_school_code,t.sims_student_date=l(e.obj.sims_student_date),t.sims_student_commence_date=l(e.obj.sims_student_commence_date),t.sims_student_academic_status=e.obj.sims_appl_parameter_Academic_Status_Code,t.sims_student_class_rank=e.obj.sims_student_class_rank,t.sims_student_house=e.obj.sims_student_house,t.sims_student_transport_status=e.obj.sims_student_transport_status,t.sims_student_main_language=e.obj.sims_language_code,t.sims_student_other_language=e.obj.sims_student_other_language,t.sims_appl_parameter_legal=e.obj.sims_appl_parameter_legal,t.sims_student_last_login=l(e.obj.sims_student_last_login),t.sims_student_remark=e.obj.sims_student_remark,t.sims_student_emergency_contact_name1=e.obj.sims_student_emergency_contact_name1,t.sims_student_emergency_contact_name2=e.obj.sims_student_emergency_contact_name2,t.sims_student_emergency_contact_number1=e.obj.sims_student_emergency_contact_number1,t.sims_student_emergency_contact_number2=e.obj.sims_student_emergency_contact_number2,t.sims_student_passport_number=e.obj.sims_student_passport_number,t.sims_student_passport_issue_date=l(e.obj.sims_student_passport_issue_date),t.sims_student_passport_expiry_date=l(e.obj.sims_student_passport_expiry_date),t.sims_student_passport_issuing_authority=e.obj.sims_student_passport_issuing_authority,t.sims_student_passport_issue_place=e.obj.sims_student_passport_issue_place,t.sims_student_national_id=e.obj.sims_student_national_id,t.sims_student_national_id_issue_date=l(e.obj.sims_student_national_id_issue_date),t.sims_student_national_id_expiry_date=l(e.obj.sims_student_national_id_expiry_date),t.sims_student_visa_number=e.obj.sims_student_visa_number,t.sims_student_visa_issue_date=l(e.obj.sims_student_visa_issue_date),t.sims_student_visa_expiry_date=l(e.obj.sims_student_visa_expiry_date),t.sims_student_visa_issuing_place=e.obj.sims_student_visa_issuing_place,t.sims_student_visa_issuing_authority=e.obj.sims_student_visa_issuing_authority,t.sims_student_visa_type=e.obj.sims_student_visa_type,t.sims_student_ea_number=e.obj.sims_student_ea_number,t.sims_student_ea_registration_date=l(e.obj.sims_student_ea_registration_date),t.sims_student_ea_transfer=e.obj.sims_student_ea_transfer,t.sims_student_ea_status=e.obj.sims_student_ea_status,t.student_email=e.obj.student_email,n.delete(r.apiUrl+"api/student/studentupdate",{data:t,headers:{"Content-Type":"application/json"}},null).then(function(t){n.get(r.apiUrl+"api/student/getStudentInfo?student_enroll="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.obj=t.data,e.div_hide=!1,e.show=!0,e.hide=!1,e.div_hide=!0,e.btnEdit=!0,e.btnCancel=!1,e.btnSave=!1,e.btnEdit1=!0,e.btnCancel1=!1,e.btnSave1=!1,e.btnEdit2=!0,e.btnCancel2=!1,e.btnSave2=!1,e.btnEdit3=!0,e.btnCancel3=!1,e.btnSave3=!1,e.btnEdit4=!0,e.btnCancel4=!1,e.btnSave4=!1})},function(e){})},e.student_grade_section=function(){n.get(r.apiUrl+"api/student/getStudentGradeSection?enroll_num="+a.globals.currentStudent.sims_student_enroll_number).then(function(t){e.class=t.data[0].grade_sec})},e.edit=function(){e.btnEdit=!1,e.btnSave=!0,e.btnCancel=!0,e.btnEdit1=!1,e.btnSave1=!0,e.btnCancel1=!0,e.btnEdit2=!1,e.btnCancel2=!0,e.btnSave2=!0,e.btnEdit3=!1,e.btnCancel3=!0,e.btnSave3=!0,e.btnEdit4=!1,e.btnCancel4=!0,e.btnSave4=!0,e.hide=!0,e.show=!1},e.Cancel=function(){e.btnEdit=!0,e.btnSave=!1,e.btnCancel=!1,e.btnEdit1=!0,e.btnSave1=!1,e.btnCancel1=!1,e.btnEdit2=!0,e.btnCancel2=!1,e.btnSave2=!1,e.btnEdit3=!0,e.btnCancel3=!1,e.btnSave3=!1,e.btnEdit4=!0,e.btnCancel4=!1,e.btnSave4=!1,e.hide=!1,e.show=!0},n.get(r.apiUrl+"api/common/getAllComboBoxValues?academicYear=2015&routeCode=01").then(function(t){e.display=!0,e.obj2=t.data}),e.Getinfo1=function(t){n.get(r.apiUrl+"api/common/getState?CountryCode="+t).then(function(t){e.display=!0,e.obj3=t.data})},e.Getinfo2=function(t){n.get(r.apiUrl+"api/common/getCity?StateCode="+t).then(function(t){e.display=!0,e.obj4=t.data})},$('*[data-datepicker="true"] input[type="text"]').datepicker({todayBtn:!0,orientation:"top left",autoclose:!0,todayHighlight:!0}),e.model=function(){$("#myModal").modal("show")};var d=new FormData;e.getTheFiles=function(e){angular.forEach(e,function(e,t){d.append(t,e)})},e.file_changed=function(t){e.flg_check_photo=!1;var a=t.files[0];imageConversion.compressAccurately(a,{type:"image/jpeg",width:168,size:100}).then(t=>{e.sims_photo_compressed=new File([t],"compressed_photo",{type:"image/jpeg"})}),e.photo_filename=a.type;var s=a.name.toLowerCase().split(".");if(s=s[s.length-1],t.files[0].size<8e6)if("jpeg"==s||"jpg"==s||"png"==s){var o=new FileReader;o.onload=function(t){e.$apply(function(){e.prev_img=t.target.result})},o.readAsDataURL(a)}else swal({title:"File format not Supported. Supporting formats are jpeg , jpg , png",imageUrl:"assets/img/notification-alert.png",showCloseButton:!0,width:380}),e.flg_check_photo=!0,e.ImgClickFShow=!1;else swal({title:"Error : File size should be less than 8MB.",imageUrl:"assets/img/notification-alert.png"}),e.flg_check_photo=!0,e.uploadImgClickFShow=!1},e.uploadImgClickF=function(){e.uploadImgClickFShow=!0},e.uploadImgCancel=function(){e.uploadImgClickFShow=!1},e.getimg=function(){if(e.prev_img="",e.uploading_path="",!angular.isUndefined(a.pp_url_lst)){if(a.pp_url_lst.length>0)for(var t=0;t<a.pp_url_lst.length;t++)if("Student"==a.pp_url_lst[t].sims_appl_parameter){e.prev_img=e.obj1.lic_website_url+a.pp_url_lst[t].sims_appl_form_field_value2+"/"+(e.obj.sims_student_image?e.obj.sims_student_image:a.globals.currentStudent.sims_student_img),e.uploading_path=a.pp_url_lst[t].sims_appl_form_field_value2;break}""==e.prev_img&&(e.prev_img=e.obj1.lic_website_url+"Images/StudentImages/"+a.globals.currentStudent.sims_student_img)}};var m=null;["ihsonlineom","mstagingdso","iisonlinedso","mstagingag","ihsonlineag","mstagingom","portaldso","portalag"].includes(n.defaults.headers.common.schoolId)?(e.urlapi_path="https://apiihs.schoolappsuae.com/mograSISAPI/",m=""!=e.uploading_path?e.uploading_path.replace("Images/",""):"StudentImages/"):r.AWS.includes(n.defaults.headers.common.schoolId)?(e.urlapi_path="https://assets.mograsys.com/Content/"+n.defaults.headers.common.schoolId,m=""!=e.uploading_path?e.uploading_path.replace("Images/",""):"StudentImages/"):(e.urlapi_path="https://api.mograsys.com/kindoapi/",m=e.uploading_path,m=""!=e.uploading_path?e.uploading_path.replace("Images/",""):"StudentImages/"),e.uploadImg=function(){$(".loader").show();let t=Array.from(Math.random().toString());t.splice(0,2),t="_"+(t=t.join(""));let s=new FormData;if(e.upapi_path="",["facp","smsm","modernjr","smsk","nacasca","gurukulponda","ccw64","sessos","ameyahss","vmsiihe","clarahealtonation","puneiat","christ","dmc","dvhs","dvhss","dvps","modern"].includes(n.defaults.headers.common.schoolId)){e.upapi_path="https://"+n.defaults.headers.common.schoolId+".appsis.co.in/kindoapi/",e.aws_path=!0;var o={method:"POST",url:e.upapi_path+"api/fileNew/uploadDocument?filename="+a.globals.currentStudent.enroll_number+t+".png&location=/Images/StudentImages/",data:d,headers:{"Content-Type":void 0}};s.append(a.globals.currentStudent.enroll_number+t+"_lowres.png",e.sims_photo_compressed);var i={method:"POST",url:e.upapi_path+"api/fileNew/uploadDocument?filename="+a.globals.currentStudent.enroll_number+t+"_lowres.png&location=/Images/StudentImages/",data:s,headers:{"Content-Type":void 0}}}else if(["ang1dev","aas","ang1prod","saisd","saiss","saisa","saids","saisu","sokstaging","tsk","tsis","sisqatar","abps","svs","nas","cbsesmf","ds","sia","sok","uksmf","ics","iisqatar","ges","iis","slis","clarionschool","oesco","abqstaging","demo","aelc","lpn","bloomeducation","bloomeseuaq","bloomesealwadi","bloomesealmizhar","bloomeseajman","bloomesealtwar","bloomsisams","modern","abqis","siso","asis"].includes(n.defaults.headers.common.schoolId)){e.upapi_path="https://"+n.defaults.headers.common.schoolId+".mograsys.com/kindoapi/",e.aws_path=!0;o={method:"POST",url:e.upapi_path+"api/fileNew/uploadDocument?filename="+a.globals.currentStudent.enroll_number+t+".png&location=/Images/StudentImages/",data:d,headers:{"Content-Type":void 0}};s.append(a.globals.currentStudent.enroll_number+t+"_lowres.png",e.sims_photo_compressed);i={method:"POST",url:e.upapi_path+"api/fileNew/uploadDocument?filename="+a.globals.currentStudent.enroll_number+t+"_lowres.png&location=/Images/StudentImages/",data:s,headers:{"Content-Type":void 0}}}else if(["portal"].includes(n.defaults.headers.common.schoolId)){e.upapi_path="https://"+n.defaults.headers.common.schoolId+".rakaa.sch.ae/kindoapi/",e.aws_path=!0;o={method:"POST",url:e.upapi_path+"api/fileNew/uploadDocument?filename="+a.globals.currentStudent.enroll_number+t+".png&location=/Images/StudentImages/",data:d,headers:{"Content-Type":void 0}};s.append(a.globals.currentStudent.enroll_number+t+"_lowres.png",e.sims_photo_compressed);i={method:"POST",url:e.upapi_path+"api/fileNew/uploadDocument?filename="+a.globals.currentStudent.enroll_number+t+"_lowres.png&location=/Images/StudentImages/",data:s,headers:{"Content-Type":void 0}}}else if(["asdportal","apsportal"].includes(n.defaults.headers.common.schoolId)){e.upapi_path="https://"+n.defaults.headers.common.schoolId+".amitydubai.ae/kindoapi/",e.aws_path=!0;o={method:"POST",url:e.upapi_path+"api/fileNew/uploadDocument?filename="+a.globals.currentStudent.enroll_number+t+".png&location=/Images/StudentImages/",data:d,headers:{"Content-Type":void 0}};s.append(a.globals.currentStudent.enroll_number+t+"_lowres.png",e.sims_photo_compressed);i={method:"POST",url:e.upapi_path+"api/fileNew/uploadDocument?filename="+a.globals.currentStudent.enroll_number+t+"_lowres.png&location=/Images/StudentImages/",data:s,headers:{"Content-Type":void 0}}}else if(["ihsonlineom","mstagingdso","iisonlinedso","mstagingag","ihsonlineag","mstagingom","portaldso","portalag","portalom"].includes(n.defaults.headers.common.schoolId)){e.upapi_path="https://apiihs.schoolappsuae.com/mograSISAPI/",e.aws_path=!0;o={method:"POST",url:e.upapi_path+"api/file1/uploadImageIHS?filename="+a.globals.currentStudent.enroll_number+t+".png&location=/Images/StudentImages/",data:d,headers:{"Content-Type":void 0}};s.append(a.globals.currentStudent.enroll_number+t+"_lowres.png",e.sims_photo_compressed);i={method:"POST",url:e.upapi_path+"api/file1/uploadImageIHS?filename="+a.globals.currentStudent.enroll_number+t+"_lowres.png&location=/Images/StudentImages/",data:s,headers:{"Content-Type":void 0}}}else{e.upapi_path="https://api.mograsys.com/kindoapi/";o={method:"POST",url:e.upapi_path+"api/fileNew/uploadDocument?filename="+a.globals.currentStudent.enroll_number+"&location="+m,data:d,headers:{"Content-Type":void 0}};s.append(a.globals.currentStudent.enroll_number+"_lowres.png",e.sims_photo_compressed);i={method:"POST",url:e.upapi_path+"api/fileNew/uploadDocument?filename="+a.globals.currentStudent.enroll_number+"_lowres.png&location="+m,data:s,headers:{"Content-Type":void 0}}}n(o).success(function(t){var s=t,o=t;e.aws_path&&(o=(s=t.substring(t.lastIndexOf("/",t.length)+1,t.length)).replace(".png","_lowres.png"));var l={sims_student_img:s,sims_student_img_lowres:o,sims_student_enroll_number:a.globals.currentStudent.enroll_number,sims_student_updated_by:a.globals.currentUser.username};n.post(r.apiUrl+"api/student/updateStudentDetails?opr=SI&student_details="+JSON.stringify(l)).then(function(t){e.imgdata=t.data,n(i).success(function(e){}),e.imgdata?(swal({title:"Alert",text:"Photo saved successfully",imageUrl:"assets/img/check.png"}),e.reloadState()):swal({title:"Alert",text:"Photo not saved",imageUrl:"assets/img/notification-alert.png"})}),e.uploadImgClickFShow=!1,$(".loader").hide()})},e.reloadState=function(){t.reload()},e.updateAboutMe=function(){var t={sims_student_birth_country_code:e.obj.sims_student_birth_country_code,sims_student_nationality_code:e.obj.sims_nationality_code,sims_student_gender:e.obj.sims_appl_parameter_gender,sims_student_dob:e.obj.sims_student_dob,sims_student_enroll_number:a.globals.currentStudent.enroll_number,sims_religion_code:e.obj.sims_religion_code};n.post(r.apiUrl+"api/student/updateStudentDetails1?opr=AM&student_details="+JSON.stringify(t)).then(function(t){e.abt=t.data,e.abt?swal({title:"Alert",text:"Record Updated Successfully",imageUrl:"assets/img/check.png"}):swal({title:"Alert",text:"Record Not Updated",imageUrl:"assets/img/notification-alert.png"})})},e.otherDetailsClick=function(){e.otherDetailsReadonly=!1,e.otherDetailshow=!0},e.SaveotherDetailsClick=function(){e.otherDetailshow=!1,e.otherDetailsReadonly=!0;var t={sims_student_enroll_number:a.globals.currentStudent.enroll_number,sims_student_main_language_code:e.obj.sims_language_code,sims_student_transport_status:e.obj.sims_student_transport_status,sims_student_primary_contact_pref:e.obj.sims_appl_parameter_legal,sims_student_emergency_contact_name1:e.obj.sims_student_emergency_contact_name1,sims_student_emergency_contact_name2:e.obj.sims_student_emergency_contact_name2,sims_student_emergency_contact_number1:e.obj.sims_student_emergency_contact_number1,sims_student_emergency_contact_number2:e.obj.sims_student_emergency_contact_number2,sims_student_remark:e.obj.sims_student_remark,sims_student_updated_by:a.globals.currentUser.username};n.post(r.apiUrl+"api/student/updateStudentDetails?opr=OD&student_details="+JSON.stringify(t)).then(function(t){e.othr=t.data,e.othr?swal({title:"Alert",text:"Record Updated Successfully",imageUrl:"assets/img/check.png"}):swal({title:"Alert",text:"Record Not Updated",imageUrl:"assets/img/notification-alert.png"})})},e.cancelotherDetailsClick=function(){e.otherDetailshow=!1,e.otherDetailsReadonly=!0},e.PassportClick=function(){e.PassportReadonly=!1,e.Passportshow=!0},e.SavePassportClick=function(){e.Passportshow=!1,e.PassportReadonly=!0;var t={sims_student_enroll_number:a.globals.currentStudent.enroll_number,sims_student_passport_issue_date:e.obj.sims_student_passport_issue_date,sims_student_passport_expiry_date:e.obj.sims_student_passport_expiry_date,sims_student_passport_issuing_authority:e.obj.sims_student_passport_issuing_authority,sims_student_passport_issue_place:e.obj.sims_student_passport_issue_place,sims_student_updated_by:a.globals.currentUser.username,sims_student_passport_number:e.obj.sims_student_passport_number};n.post(r.apiUrl+"api/student/updateStudentDetails?opr=PD&student_details="+JSON.stringify(t)).then(function(t){e.pd=t.data,e.pd?swal({title:"Alert",text:"Record Updated Successfully",imageUrl:"assets/img/check.png"}):swal({title:"Alert",text:"Record Not Updated",imageUrl:"assets/img/notification-alert.png"})})},e.getcontactdetails=function(t){"F"==t&&(e.father_show=!0,e.mother_show=!1,e.guardian_show=!1),"M"==t&&(e.father_show=!1,e.mother_show=!0,e.guardian_show=!1),"G"==t&&(e.father_show=!1,e.mother_show=!1,e.guardian_show=!0)},e.cancelPassportClick=function(){e.Passportshow=!1,e.PassportReadonly=!0},e.NationalClick=function(){e.NationalReadonly=!1,e.Nationalshow=!0},e.SaveNationalClick=function(){e.Nationalshow=!1,e.NationalReadonly=!0;var t={sims_student_enroll_number:a.globals.currentStudent.enroll_number,sims_student_national_id:e.obj.sims_student_national_id,sims_student_national_id_issue_date:e.obj.sims_student_national_id_issue_date,sims_student_national_id_expiry_date:e.obj.sims_student_national_id_expiry_date,sims_student_visa_number:e.obj.sims_student_visa_number,sims_student_visa_type:e.obj.sims_student_visa_type_code,sims_student_visa_issue_date:e.obj.sims_student_visa_issue_date,sims_student_visa_expiry_date:e.obj.sims_student_visa_expiry_date,sims_student_visa_issuing_authority:e.obj.sims_student_visa_issuing_authority,sims_student_updated_by:a.globals.currentUser.username};n.post(r.apiUrl+"api/student/updateStudentDetails?opr=VD&student_details="+JSON.stringify(t)).then(function(t){e.VD=t.data,e.VD?swal({title:"Alert",text:"Record Updated Successfully",imageUrl:"assets/img/check.png"}):swal({title:"Alert",text:"Record Not Updated",imageUrl:"assets/img/notification-alert.png"})})},e.cancelNationalClick=function(){e.Nationalshow=!1,e.NationalReadonly=!0},e.DepartmentClick=function(){e.DepartmentReadonly=!1,e.Departmentshow=!0},e.SaveDepartmentClick=function(){e.Departmentshow=!1,e.DepartmentReadonly=!0;var t={sims_student_enroll_number:a.globals.currentStudent.enroll_number,sims_student_ea_number:e.obj.sims_student_ea_number,sims_student_ea_registration_date:e.obj.sims_student_ea_registration_date,sims_student_ea_transfer:e.obj.sims_student_ea_transfer,sims_student_ea_status:e.obj.sims_student_ea_status,sims_student_updated_by:a.globals.currentUser.username};n.post(r.apiUrl+"api/student/updateStudentDetails?opr=ED&student_details="+JSON.stringify(t)).then(function(t){e.ED=t.data,t.data?swal({title:"Alert",text:"Record Updated Successfully",imageUrl:"assets/img/check.png"}):swal({title:"Alert",text:"Record Not Updated",imageUrl:"assets/img/notification-alert.png"})})},e.cancelDepartmentClick=function(){e.Departmentshow=!1,e.DepartmentReadonly=!0},$(document).on("touch click",'*[data-datepicker="true"] .add-on',function(e){$('input[type="text"]',$(this).parent()).focus()}),a.globals.studentsLoaded&&e.getstudentList(),e.$on("student_change",function(){e.getstudentList()})}]),e.directive("ngFiles",["$parse",function(e){return{link:function(t,a,s){var o=e(s.ngFiles);a.on("change",function(e){o(t,{$files:e.target.files})})}}}])}(),function(){"use strict";angular.module("sims.module.student").controller("grade11selectioniscont",["$scope","$state","$rootScope","$timeout","$stateParams","gettextCatalog","$http","ENV","$filter",function(e,t,a,s,o,n,r,i,l){l("date")(new Date,"dd-MM-yyyy");e.viewmarks=!1,e.showSubjectOption=!0,e.enroll_no=a.globals.currentStudent.sims_student_enroll_number,e.year_code=a.globals.currentStudent.sims_acad_yr,e.remark="",e.responsetable=!1,r.get(i.apiUrl+"api/gr11Is/Getresponseinfo?academic="+e.year_code+"&enroll_no="+e.enroll_no).then(function(t){e.resdata=t.data.table,e.resdata.length>0?(e.responsetable=!0,e.responseheader=!0,e.prevresponseheader=!1,e.showSubjectOption=!1,r.get(i.apiUrl+"api/gr11Is/getcheckprefalloted?academic="+e.year_code+"&enroll_no="+e.enroll_no).then(function(t){e.datares=t.data.table,e.datares.length>0&&("Y"===e.datares[0].sims_alloted_status?r.get(i.apiUrl+"api/gr11Is/getallotedlist?academic="+e.year_code+"&enroll_no="+e.enroll_no).then(function(t){e.allotedlist_data=[],e.allotedlist_data=t.data.table,e.alloted_list=!0}):e.alloted_list=!1)})):(e.responsetable=!1,e.showSubjectOption=!0,r.get(i.apiUrl+"api/gr11Is/getresubmissionchk?academic="+e.year_code+"&enroll_no="+e.enroll_no).then(function(t){e.hisres=t.data.table,e.hisres.length>0&&(e.previous_res=!0,e.responsetable=!1,e.prevresponsetable=!0,e.responseheader=!1,e.prevresponseheader=!0,e.showSubjectOption=!1,r.get(i.apiUrl+"api/gr11Is/gethisdata?academic="+e.year_code+"&enroll_no="+e.enroll_no).then(function(t){e.hisdata=t.data.table}))}))}),e.getData=function(){r.get(i.apiUrl+"api/gr11Is/Getinfo?academic="+e.year_code+"&enroll_no="+e.enroll_no).then(function(t){if(e.viewdata=t.data.table,e.viewgrid=!1,e.viewdata.length>0){e.prefrences=[];const t=e.viewdata[0].sims_subject_count;for(let a=1;a<=t;a++)e.prefrences.push({prefrence:"Preference "+[a],pref_code:[a].toString()});e.viewdata.forEach(function(t){e.released=!0,e.ppnbtn=!0,"M"===t.sims_student_res_ctrl_sub_group_subject_mandatory?(t.disable_status=!0,t.chk_status=!0,t.limit_status=!1,t.dis_status=!1,t.pref_disabled=!0,t.pref_type="1"):(t.disable_status=!1,t.chk_status=!1,t.limit_status=!1,t.dis_status=!1,t.pref_disabled=!0)}),e.view()}else e.showSubjectOption=!1,e.released=!1,e.ppnbtn=!0})},r.get(i.apiUrl+"api/gr11Is/Getparametersnotes").then(function(t){e.notes=t.data}),e.getData(),e.view=function(){e.subjects=e.viewdata,e.displaydata=!1,e.viewgrid=!0,e.selectedSubjects={},e.subjects.forEach(function(e){"M"===e.sims_student_res_ctrl_sub_group_subject_mandatory&&(e.chk_status=!0,e.disable_status=!0)}),e.handleSelection=function(t){e.selectedSubjects[t.sims_group_sub_group_subject_code]?e.selectedSubjects[t.sims_group_sub_group_subject_code]=!0:delete e.selectedSubjects[t.sims_group_sub_group_subject_code]},e.updateGroupSelections=function(t){var a=t.sims_group_sub_group_code,s=t.sims_student_res_ctrl_sub_group_subject_count,o=e.viewdata.filter(e=>e.sims_group_sub_group_code===a&&!0===e.chk_status).length;e.viewdata.forEach(e=>{e.sims_group_sub_group_code===a&&(o<s&&!0!==e.dis_status?(e.disable_status=!1,e.limit_status=!1):(e.disable_status=!e.chk_status,e.limit_status=!0))}),angular.forEach(e.viewdata,function(e){!0===t.chk_status?(t.pref_disabled=!1,(t.sims_group_sub_group_subject_code===e.sims_group_sub_group_subject_code&&t.sims_group_sub_group_code!==e.sims_group_sub_group_code||t.sims_group_sub_group_subject_code!==e.sims_group_sub_group_subject_code&&e.sims_group_sub_group_group==t.sims_group_sub_group_group&&"Y"===e.sims_group_sub_group_choice)&&(e.disable_status=!0,e.dis_status=!0)):t.sims_group_sub_group_subject_code===e.sims_group_sub_group_subject_code&&t.sims_group_sub_group_code!==e.sims_group_sub_group_code||t.sims_group_sub_group_subject_code!==e.sims_group_sub_group_subject_code&&e.sims_group_sub_group_group==t.sims_group_sub_group_group&&"Y"===e.sims_group_sub_group_choice?(t.pref_disabled=!0,t.pref_type="",e.disable_status=!1,e.dis_status=!1):(t.pref_disabled=!0,t.pref_type="")}),e.viewdata.map(e=>e.sims_group_sub_group_code).filter((e,t,a)=>a.indexOf(e)===t).forEach(t=>{let a=e.viewdata.filter(e=>e.sims_group_sub_group_code===t&&!0===e.chk_status).length,s=e.viewdata.filter(e=>e.sims_group_sub_group_code===t),o=s.length>0?s[0].sims_student_res_ctrl_sub_group_subject_count:0;e.viewdata.forEach(e=>{e.sims_group_sub_group_code===t&&(a<o&&!0!==e.dis_status?(e.disable_status=!1,e.limit_status=!1):"M"===e.sims_student_res_ctrl_sub_group_subject_mandatory?e.disable_status=!0:(e.disable_status=!e.chk_status,e.limit_status=!0))})})},e.isSelected=function(t){return e.selectedSubjects[t.sims_group_sub_group_subject_code]||!1}},e.chk_prefrence=function(t,a){e.viewdata.forEach((s,o)=>{s.pref_type===t&&o!==a&&(e.viewdata[a].pref_type="",swal.fire({title:"",text:"Preference "+t+" already selected",width:"300px",height:"300px"}))})},e.updateSelectionCount=function(t){var a=0;angular.forEach(e.subjectMap[t].subGroups,function(s){s.isChoice?e.selectedSubjects[s.subjects[0].subGroupCode+s.subjects[0].subjectCode]&&a++:angular.forEach(s.subjects,function(s){e.selectedSubjects[t+""+s.subjectCode]&&a++})}),e.selectedCounts[t]=a},e.previousSelections={},e.toggleRadioSelection=function(t,a){e.previousSelections[t+a]===a?(e.selectedSubjects[t+a]=null,e.previousSelections[t+a]=null):e.previousSelections[t+a]=a,e.updateSelectionCountForAllGroups()},e.updateSelectionCountForAllGroups=function(){angular.forEach(e.subjectMap,function(t,a){e.updateSelectionCount(a)})},e.extractSubjectDetails=function(){const t=[];return angular.forEach(e.selectedSubjects,function(a,s){if(a||null===a){const o=s.toString();let n,r,i;null===a?(n=o,r=null):(n=o.charAt(0),r=o.slice(1),i=e.selectedSubjects[n]),angular.forEach(e.subjectMap,function(a,s){angular.forEach(a.subGroups,function(a,o){angular.forEach(a.subjects,function(o){(null===r&&a.isChoice||o.subjectCode===r||o.subjectCode===i&&""!=r)&&t.push({sims_stream_code:a.streamCode,sims_group_sub_group_subject_code:o.subjectCode,sims_student_res_ctrl_group_code:s,sims_group_sub_group_code:o.subGroupCode,sims_academic_year:e.year_code,sims_enroll_number:e.enroll_no})})})})}}),t},e.swalopenModal=!1,e.swalopenModal1=!1,e.swalopenModal2=!1,e.swalopenModal3=!1,e.swalclose=function(){e.swalopenModal=!1,e.showSubjectOption=!1},e.swalclose1=function(){e.swalopenModal1=!1},e.swalclose2=function(){e.swalopenModal2=!1},e.swalclose3=function(){e.swalopenModal3=!1},e.popupClose=function(){$("#MyModal").modal("hide"),$(".modal-backdrop").removeClass("modal-backdrop")},e.saveStudentRes=function(){e.send_data2=[];for(let t=0;t<e.viewdata.length;t++){const a=e.viewdata[t];if(a.chk_status&&(""==a.pref_type||void 0==a.pref_type))return void swal.fire({title:"",text:"Please select preference for all selected choices",width:"300px",height:"300px"});a.chk_status&&e.send_data2.push({sims_academic_year:e.year_code,sims_stream_code:a.sims_stream_code,sims_group_sub_group_subject_code:a.sims_group_sub_group_subject_code,sims_student_res_ctrl_group_code:a.sims_student_res_ctrl_group_code,sims_group_sub_group_code:a.sims_group_sub_group_code,sims_enroll_number:e.enroll_no,remark:e.remark,prefrence:a.pref_type})}e.send_data2.length==e.viewdata[0].sims_subject_count?swal.fire({title:"",text:"Please confirm that the selected subject preferences are final. Once confirmed, subject preferences cannot be edited.",showCancelButton:!0,confirmButtonText:"Yes",cancelButtonText:"No",width:"400px",height:"300px"}).then(e=>{1==e.isConfirmed&&$("#MyModal").modal({backdrop:"static",keyboard:!1})}):swal.fire({title:"",text:"Please select all "+e.viewdata[0].sims_subject_count+" preferences including English",width:"300px",height:"300px"})},e.filterPreferences=function(e){return function(t){return"2"===e.sims_group_sub_group_code?"2"===t.pref_code:"1"==e.sims_group_sub_group_code?"1"===t.pref_code:("M"==e.sims_student_res_ctrl_sub_group_subject_mandatory&&(e.preference="1"),"2"!==t.pref_code&&"1"!==t.pref_code)}},e.saveData=function(){let t=0;if(e.send_data=[],e.viewdata.forEach(function(a,s){a.chk_status&&""!=a.pref_type&&void 0!=a.pref_type&&""!=a.pref_type&&(e.send_data.push({sims_academic_year:e.year_code,sims_stream_code:a.sims_stream_code,sims_group_sub_group_subject_code:a.sims_group_sub_group_subject_code,sims_student_res_ctrl_group_code:a.sims_student_res_ctrl_group_code,sims_group_sub_group_code:a.sims_group_sub_group_code,sims_enroll_number:e.enroll_no,remark:e.remark,prefrence:a.pref_type,current_index:t}),t++)}),e.send_data.length==e.viewdata[0].sims_subject_count)if(""!=e.remark){if(void 0==e.remark)return void swal.fire({title:"",text:"Remark should not exceed 500 characters",width:"300px",height:"300px"});e.disableBtn=!0,r.post(i.apiUrl+"api/gr11Is/UpdateStudentRes",e.send_data).then(function(t){t.data?(swal.fire({title:"",text:"Response saved successfully",width:"300px",height:"300px"}),e.showSubjectOption=!1,r.get(i.apiUrl+"api/gr11Is/Getresponseinfo?academic="+e.year_code+"&enroll_no="+e.enroll_no).then(function(t){e.resdata=t.data.table,e.resdata.length>0&&(e.responsetable=!0,e.responseheader=!0)}),$("#MyModal").modal("hide"),$(".modal-backdrop").removeClass("modal-backdrop")):swal.fire({title:"",text:"Response not saved ",width:"300px",height:"300px"})}),console.log("$scope.selectedDataArr: ",e.selectedDataArr)}else swal.fire({title:"",text:"Please enter remark",width:"300px",height:"300px"});else swal.fire({title:"",text:"Please select atleast "+e.viewdata[0].sims_subject_count+" choices",width:"300px",height:"300px"})},e.resubmitresponse=function(){console.log("worked"),e.resubmitform=!0,e.getDataresubmit()},e.getDataresubmit=function(){r.get(i.apiUrl+"api/gr11Is/Getinforesubmit?academic="+e.year_code+"&enroll_no="+e.enroll_no).then(function(t){if(e.viewdata=t.data.table,e.viewgrid=!1,e.viewdata.length>0){e.prefrences=[],e.prevresponsetable=!1,e.prevresponseheader=!1,e.showSubjectOption=!0;const t=e.viewdata[0].sims_subject_count;for(let a=1;a<=t;a++)e.prefrences.push({prefrence:"Preference "+[a],pref_code:[a].toString()});e.viewdata.forEach(function(t){e.released=!0,e.ppnbtn=!0,"M"===t.sims_student_res_ctrl_sub_group_subject_mandatory?(t.disable_status=!0,t.chk_status=!0,t.limit_status=!1,t.dis_status=!1,t.pref_disabled=!0,t.pref_type="1"):void 0!==t.sims_student_res_ctrl_preference?(t.pref_type=t.sims_student_res_ctrl_preference,t.chk_status=!0):(t.disable_status=!0,t.chk_status=!1,t.limit_status=!1,t.dis_status=!1,t.pref_disabled=!0)}),e.view()}else e.showSubjectOption=!1,e.released=!1,e.ppnbtn=!0})},e.details_Exams=function(){r.get(i.apiUrl+"api/gr11Is/Getdetailsexam?year_code="+e.year_code+"&enroll_no="+e.enroll_no).then(function(t){e.exams_data=t.data.table,e.subjectdata=t.data.table1,e.allexams=[],e.subjects_data=[],angular.forEach(e.exams_data,function(t){var a=t.sims_reportcard_name+"("+parseFloat(t.sims_reportcard_weightage).toFixed(0)+")";-1===e.allexams.indexOf(a)&&e.allexams.push(a)}),angular.forEach(e.exams_data,function(t){var a=t.sims_subject_code,s=(t.sims_subject_name,t.sims_reportcard_name+"("+parseFloat(t.sims_reportcard_weightage).toFixed(0)+")"),o=t.sims_marks_obtained,n=t.sims_marks_outoff,r=t.sims_subject_weightage_obtained,i=(t.sims_reportcard_weightage,t.total_sub_weightage),l=t.agg_total,d=t.agg_per,m=e.subjects_data.find(function(e){return e.code===a});m||(m={name:t.sims_subject_name,code:t.sims_subject_code,sub_cal_agg:i,sub_cal_weightage:t.sims_subject_obtained_weightage,agg_total:l,agg_per:d,exams:{}},e.subjects_data.push(m)),m.exams[s]={recevied:o,max:n,sub_agg:r}}),angular.forEach(e.subjects_data,function(t){angular.forEach(e.allexams,function(e){t.exams[e]||(t.exams[e]={recevied:"0.00",max:"0.00",sub_agg:"0.00"})})}),e.viewmarks=!0,e.subjects_datanew=[],e.subjects_datanew.push(e.subjects_data[0])})}}])}(),function(){"use strict";angular.module("sims.module.student").controller("gr11AdmissionController",["$scope","$state","$rootScope","$timeout","$stateParams","gettextCatalog","$http","ENV","$filter",function(e,t,a,s,o,n,r,i,l){e.chosen_list=[],e.prferance_list=[],e.saved_list=[],e.user_name=a.globals.currentUser.username,e.saved=!0,e.accept_btn=!0,e.not_accept_btn=!0,e.disable=!1;var d=l("date")(new Date,"dd-MM-yyyy");e.getCircularDetails=function(s){function o(e){var t=e.split("-");return new Date(t[2],t[1]-1,t[0])}e.enrollno=a.globals.currentStudent.sims_student_enroll_number,e.seeForm=!1,["ihsonlineom","mstagingdso","iisonlinedso","mstagingag","ihsonlineag","mstagingom","portaldso","portalag","portalom"].includes(r.defaults.headers.common.schoolId)&&(e.img_path="https://apiihs.schoolappsuae.com/mograSISAPI/Content/"+r.defaults.headers.common.schoolId+"/Images/StudentImages/"),e.seebutton=!0,e.tcbtn=!0,e.getCurrentDate=function(){var e=new Date;return e.getFullYear()+"-"+(e.getMonth()+1).toString().padStart(2,"0")+"-"+e.getDate().toString().padStart(2,"0")},r.get(i.apiUrl+"api/Gradebook/getBetweenDate?enroll_number="+e.enrollno).then(function(t){e.getBetweenDate=t.data,e.startDate=e.getBetweenDate[0].sims_admission_parent_initiated_date,e.endDate=e.getBetweenDate[0].sims_admission_parent_initiated_last_date}),e.Apply=function(){const t=o(d),a=o(e.startDate),s=o(e.endDate);if(t>=a&&t<=s){e.seeForm=!0,e.prefsel=!0;var n=document.getElementById("Start");$(n).removeClass("btngrow")}else swal.fire({title:"",text:"Application Expired !",width:"300px",height:"300px"})},e.TC=function(){t.go("main.tcihso")},r.get(i.apiUrl+"api/Gradebook/getstudentdetails?enroll_number="+e.enrollno).then(function(t){e.All_Student_Details=t.data,e.student={sims_student_enroll_number:e.All_Student_Details[0].sims_student_enroll_number,sims_student_full_name:e.All_Student_Details[0].sims_student_full_name,sims_student_gender:e.All_Student_Details[0].sims_student_gender,sims_student_img:e.img_path+e.All_Student_Details[0].sims_student_img,sims_grade_name_en:e.All_Student_Details[0].sims_grade_name_en,sims_section_name_en:e.All_Student_Details[0].sims_section_name_en,sims_admission_parent_initiated_date_status:e.All_Student_Details[0].sims_admission_parent_initiated_date,terms_n_conditions:e.All_Student_Details[0].terms_n_conditions,tc_status:e.All_Student_Details[0].tc_status,fee_code:e.All_Student_Details[0].fee_code},"A"!==e.student.sims_admission_parent_initiated_date_status&&swal.fire({title:"",text:"Admission not initiated",width:"300px",height:"300px"})}),r.get(i.apiUrl+"api/Gradebook/getPreferance").then(function(t){e.Preferance_Details=t.data}),r.get(i.apiUrl+"api/Gradebook/getsubjectdetails?enroll_number="+e.enrollno).then(function(t){e.All_Subject_Details=t.data;var a=new Map;e.SubjectList=[],e.cnt=0,e.All_Subject_Details.forEach(function(t){a.has(t.sims_stream_code)?e.SubjectList.forEach(function(e){t.sims_stream_code==e.sims_stream_code&&e.sublist.push(t)}):(a.set(t.sims_stream_code,!0),e.SubjectList.push(t),t.sublist=[],t.sublist.push(t))})}),r.post(i.apiUrl+"api/Gradebook/fetchSavedData?enroll_number="+e.enrollno).then(function(t){e.chosen_list=t.data,e.chosen_list.length>0?(e.seeForm=!0,e.seebutton=!1,e.saved=!1,e.prefsel=!1,e.tcbtn=!1):e.seebutton=!0}),r.get(i.apiUrl+"api/Gradebook/getSupervisorChoice?enroll_number="+e.enrollno).then(function(t){e.Supervisor_list=t.data,e.fchoice=e.Supervisor_list[0].sims_choice_code,e.resrec=e.Supervisor_list[0].sims_status}),r.get(i.apiUrl+"api/Gradebook/getRejectedList?enroll_number="+e.enrollno).then(function(t){e.RejectedList=t.data}),e.Accept=function(){e.not_accept_btn=!1;var t=[],s={opr:"WX",sims_enroll_number:e.enrollno,sims_fee_academic_year:a.globals.currentStudent.sims_acad_yr,sims_fee_category:"01",sims_fee_cur_code:"01",sims_fee_grade_code:a.globals.currentStudent.sims_grade_code,sims_fee_section_code:a.globals.currentStudent.sims_section_code,sims_fee_code:e.student.fee_code,sims_choice_code:e.fchoice};t.push(s),r.post(i.apiUrl+"api/Gradebook/Assign_fee_to_studentNewGR11",t).then(function(t){e.Accepted_Res=t.data,1==e.Accepted_Res?(e.status_refresh(),swal.fire({title:"",text:"Your confirmation has been saved",width:"300px",height:"300px"}),e.accept_btn=!1):swal.fire({title:"",text:"Response not saved please try again",width:"300px",height:"300px"})})},e.edt=[],e.Not_Accept_Reason_Submit=function(){var t=[];console.log(e.edt);var a={opr:"I",sims_student_enroll_number:e.enrollno,sims_choice_code:e.fchoice,parent_reason_for_rejection:e.edt.parent_reason_for_rejection};t.push(a),r.post(i.apiUrl+"api/Gradebook/updateParentReason",t).then(function(t){e.Accepted_Reason=t.data,1==e.Accepted_Reason?(e.status_refresh(),swal.fire({title:"",text:"Your reason has been saved",width:"300px",height:"300px"}),$("#myModal").modal("hide"),$(".modal-backdrop").removeClass("modal-backdrop"),r.get(i.apiUrl+"api/Gradebook/getRejectedList?enroll_number="+e.enrollno).then(function(t){e.RejectedList=t.data})):(swal.fire({title:"",text:"Response not saved please try again",width:"300px",height:"300px"}),$("#myModal").modal("hide"),$(".modal-backdrop").removeClass("modal-backdrop"))})},e.status_refresh=function(){r.get(i.apiUrl+"api/Gradebook/getSupervisorChoice?enroll_number="+e.enrollno).then(function(t){e.Supervisor_list=t.data,e.fchoice=e.Supervisor_list[0].sims_choice_code,e.resrec=e.Supervisor_list[0].sims_status})},e.Not_Accept=function(){$("#myModal").modal("show")},e.test=function(e){console.log(e)},e.reset=(()=>{e.prferance_list=[],e.saved_list=[],console.log("SS",e.chosen_list)}),e.Save=function(){e.dup_preferance=!1,e.prferance_list=[];for(var t=0;t<e.chosen_list.length;t++)e.prferance_list.push(e.chosen_list[t].preferance);for(var a=0;a<e.prferance_list.length;a++)for(var s=0;s<e.prferance_list.length;s++)a!==s&&e.prferance_list[a]==e.prferance_list[s]&&(e.dup_preferance=!0);if(0==e.dup_preferance)if(e.All_Subject_Details.length>=3)if(3==e.chosen_list.length){let t=0;for(var o=0;o<e.chosen_list.length;o++){o==e.chosen_list.length-1&&(t=1);let a={preferance:e.chosen_list[o].preferance,sims_student_enroll_number:e.chosen_list[o].sims_student_enroll_number,sims_choice_code:e.chosen_list[o].sims_choice_code,sims_choice_name:e.chosen_list[o].sims_choice_name,sims_stream_code:e.chosen_list[o].sims_stream_code,sims_stream_name:e.chosen_list[o].sims_stream_name,sims_subject_name:e.chosen_list[o].sims_subject_name,flag:t};e.saved_list.push(a)}3==e.saved_list.length&&swal.fire({title:"",text:"Do you want to submit the response, you can submit only once?",showCancelButton:!0,confirmButtonText:"Yes",cancelButtonText:"No",width:"300px",height:"300px"}).then(t=>{console.log("NNN",t),1==t.isConfirmed?(console.log("YES",t),r.post(i.apiUrl+"api/Gradebook/saveSubjectGR11",e.saved_list).then(function(t){!0===t.data?(swal.fire({title:"",text:"Saved Successfully",width:"300px",height:"300px"}),document.getElementById("savebtn").disabled=!0,e.prefsel=!1,e.tcbtn=!1,e.seebutton=!1,e.saved=!1):(swal.fire({title:"",text:"Record Not Saved",width:"300px",height:"300px"}),e.reset())})):e.reset()})}else swal.fire({title:"",text:"Please Select Three Preferences",width:"300px",height:"300px"});else if(2==e.All_Subject_Details.length){let t=0;if(2==e.chosen_list.length){for(o=0;o<e.chosen_list.length;o++){o==e.chosen_list.length-1&&(t=1);let a={preferance:e.chosen_list[o].preferance,sims_student_enroll_number:e.chosen_list[o].sims_student_enroll_number,sims_choice_code:e.chosen_list[o].sims_choice_code,sims_choice_name:e.chosen_list[o].sims_choice_name,sims_stream_code:e.chosen_list[o].sims_stream_code,sims_stream_name:e.chosen_list[o].sims_stream_name,sims_subject_name:e.chosen_list[o].sims_subject_name,flag:t};e.saved_list.push(a)}2==e.saved_list.length&&swal.fire({title:"",text:"Do you want to submit the response, you can submit only once?",showCancelButton:!0,confirmButtonText:"Yes",cancelButtonText:"No",width:"300px",height:"300px"}).then(t=>{console.log("NNN",t),1==t.isConfirmed?(console.log("YES",t),r.post(i.apiUrl+"api/Gradebook/saveSubjectGR11",e.saved_list).then(function(t){!0===t.data?(swal.fire({title:"",text:"Saved Successfully",width:"300px",height:"300px"}),document.getElementById("savebtn").disabled=!0,e.prefsel=!1,e.tcbtn=!1,e.seebutton=!1,e.saved=!1):(swal.fire({title:"",text:"Record Not Saved",width:"300px",height:"300px"}),e.reset())})):e.reset()})}else swal.fire({title:"",text:"Please Select Two Preferences",width:"300px",height:"300px"})}else if(1==e.chosen_list.length){let t=0;for(o=0;o<e.chosen_list.length;o++){o==e.chosen_list.length-1&&(t=1);let a={preferance:e.chosen_list[o].preferance,sims_student_enroll_number:e.chosen_list[o].sims_student_enroll_number,sims_choice_code:e.chosen_list[o].sims_choice_code,sims_choice_name:e.chosen_list[o].sims_choice_name,sims_stream_code:e.chosen_list[o].sims_stream_code,sims_stream_name:e.chosen_list[o].sims_stream_name,sims_subject_name:e.chosen_list[o].sims_subject_name,flag:t};e.saved_list.push(a)}1==e.saved_list.length&&swal.fire({title:"",text:"Do you want to submit the response, you can submit only once?",showCancelButton:!0,confirmButtonText:"Yes",cancelButtonText:"No",width:"300px",height:"300px"}).then(t=>{console.log("NNN",t),1==t.isConfirmed?(console.log("YES",t),r.post(i.apiUrl+"api/Gradebook/saveSubjectGR11",e.saved_list).then(function(t){!0===t.data?(swal.fire({title:"",text:"Saved Successfully",width:"300px",height:"300px"}),document.getElementById("savebtn").disabled=!0,e.prefsel=!1,e.tcbtn=!1,e.seebutton=!1,e.saved=!1):(swal.fire({title:"",text:"Record Not Saved",width:"300px",height:"300px"}),e.reset())})):e.reset()})}else swal.fire({title:"",text:"Please Select One Preferences",width:"300px",height:"300px"});else swal.fire({title:"",text:"Please Select Unique Preferences",width:"300px",height:"300px"})},e.get_tc=function(){console.log("ABC",e.student),window.open(e.student.terms_n_conditions)},e.Check=function(t){var a=document.getElementById(t.sims_choice_code);if(1==t.checkbox){for(var s=0,o=0;o<e.chosen_list.length;o++)1==e.chosen_list[o].checkbox&&(s+=1);s<3&&1==t.checkbox&&$(a).removeAttr("disabled"),s>=3&&(t.checkbox=!1,swal.fire({title:"",text:"Only Three Preferences Are Allowed",width:"300px",height:"300px"})),s=""}if(0==t.checkbox){t.preferance=null,$(a).attr("disabled","disabled"),$(a).val("");for(var n=0;n<e.chosen_list.length;n++)e.chosen_list[n].sims_choice_code==t.sims_choice_code&&e.chosen_list.splice(n,1)}},e.choice=function(t){e.choicepresent=!1,e.dup_preferance=!1,e.prferance_list=[],e.prferance_list.push(t.preferance);for(var a=0;a<e.chosen_list.length;a++)e.prferance_list.push(e.chosen_list[a].preferance);for(var s=0;s<e.prferance_list.length;s++)for(var o=0;o<e.prferance_list.length;o++)s!==o&&e.prferance_list[s]==e.prferance_list[o]&&(e.dup_preferance=!0);for(var n=0;n<e.chosen_list.length;n++)t.sims_choice_code==e.chosen_list[n].sims_choice_code&&(e.choicepresent=!0);if(1==e.dup_preferance){var r=document.getElementById(t.sims_choice_code);t.preferance=null,t.checkbox=!1,$(r).val(""),$(r).attr("disabled","disabled"),swal.fire({title:"",text:"Please Select Unique Preferances",width:"300px",height:"300px"});for(var i=0;i<e.chosen_list.length;i++)e.chosen_list[i].sims_choice_code==t.sims_choice_code&&e.chosen_list.splice(i,1)}if(1==t.checkbox&&1==e.choicepresent&&0==e.dup_preferance){if(null!==t.preferance){for(var l=0;l<e.chosen_list.length;l++)t.sims_choice_code==e.chosen_list[l].sims_choice_code&&(e.chosen_list[l].preferance=t.preferance);e.choicepresent=""}if(null==t.preferance){t.checkbox=!1;var d=document.getElementById(t.sims_choice_code);$(d).val(""),$(d).attr("disabled","disabled");for(i=0;i<e.chosen_list.length;i++)e.chosen_list[i].sims_choice_code==t.sims_choice_code&&e.chosen_list.splice(i,1)}}else{if(1==t.checkbox&&null!==t.preferance&&0==e.dup_preferance)if(e.chosen_list.length<3)e.chosen_list.push(t);else{var m=document.getElementById(t.sims_choice_code);t.checkbox=!1,t.preferance=null,$(m).val(""),$(m).attr("disabled","disabled"),swal.fire({title:"",text:"Only Three Preferences Are Allowed",width:"300px",height:"300px"})}e.choicepresent=""}}},e.$on("student_change",function(t,a){e.getCircularDetails()}),a.globals.studentsLoaded&&e.getCircularDetails()}])}(),function(){"use strict";angular.module("sims.module.student").controller("gr11progressController",["$scope","$state","$rootScope","$timeout","$stateParams","gettextCatalog","$http","ENV","$filter",function(e,t,a,s,o,n,r,i,l){e.chosen_list=[],e.prferance_list=[],e.saved_list=[],e.user_name=a.globals.currentUser.username,e.saved=!0,e.markdetails=!1,e.accept_btn=!0,e.not_accept_btn=!0,e.disable=!1;l("date")(new Date,"dd-MM-yyyy");e.enroll_no=a.globals.currentStudent.sims_student_enroll_number,e.year_code=a.globals.currentStudent.sims_acad_yr,r.get(i.apiUrl+"api/Gradebook/Getprogresscount?year_code="+e.year_code+"&enroll_no="+e.enroll_no).then(function(t){e.count_no=t.data,e.count_no[0].count_no>0?(e.seeForm=!0,r.get(i.apiUrl+"api/Gradebook/Geteligilibity?year_code="+e.year_code+"&enroll_no="+e.enroll_no).then(function(t){e.eligibility_data=t.data,e.allexams=[],e.combinations=[],angular.forEach(e.eligibility_data,function(t){var a=t.sims_progress_name;-1===e.allexams.indexOf(a)&&e.allexams.push(a)}),angular.forEach(e.eligibility_data,function(t){var a=t.sims_stream_code+t.sims_choice_code,s=t.sims_progress_name,o=t.sims_eligibility_status,n=(t.sims_choice_name,t.sims_stream_name,t.sims_stream_code,t.sims_choice_code,t.sims_progress_code,e.combinations.find(function(e){return e.code===a}));n||(n={name:t.sims_stream_name,code:t.sims_stream_code+t.sims_choice_code,choice_name:t.sims_choice_name,stream_code1:t.sims_stream_code,choice_code1:t.sims_choice_code,progress_code1:t.sims_progress_code,exams:{}},e.combinations.push(n)),n.exams[s]={status:o}}),angular.forEach(e.combinations,function(t){angular.forEach(e.allexams,function(e){t.exams[e]||(t.exams[e]={status:"N"})})}),e.preprocessedData=[];let a=0;e.colors={};const s=["#d6e6ff","#d7f9f8","#ffffea","#fff0d4","#fbe0e0","#e8cef9","#e5d4ef","#f2eaf7"];let o={};angular.forEach(e.combinations,function(t){o[t.name]||(o[t.name]=0,e.colors[t.name]||(e.colors[t.name]=s[a%s.length],a++)),o[t.name]++}),e.preprocessedData=[],angular.forEach(e.combinations,function(t){e.preprocessedData.push({name:t.name,choice_name:t.choice_name,stream_code1:t.stream_code1,choice_code1:t.choice_code1,progress_code1:t.progress_code1,exams:t.exams,rowspan:o[t.name],color:e.colors[t.name]})})})):swal.fire({title:"",text:"Progress Eligibility list not initiated",width:"300px",height:"300px"})}),e.geteligidetails=function(t,a,s,o,n,l){e.eligibleDetails=[],e.progress_code=n,e.markdetails=!1,r.get(i.apiUrl+"api/Gradebook/Geteligibilitylistdetails?year_code="+e.year_code+"&progress_code="+n+"&enroll_no="+l+"&stream_code="+s+"&choice_code="+o).then(function(t){$("#MyModaleligiblity").modal("show"),e.eligibleDetails=t.data})},e.details=function(t,a){e.enroll=t,e.name=a,r.get(i.apiUrl+"api/Gradebook/Getcalculationdetails?year_code="+e.year_code+"&progress_code="+e.progress_code+"&enroll_no="+e.enroll_no).then(function(t){e.details_progress=t.data,e.markdetails=!0,e.allexams=[],e.subjects=[],angular.forEach(e.details_progress,function(t){var a=t.sims_reportcard_name+"("+parseFloat(t.sims_reportcard_weightage).toFixed(0)+")";-1===e.allexams.indexOf(a)&&e.allexams.push(a)}),angular.forEach(e.details_progress,function(t){var a=t.sims_subject_code,s=t.sims_reportcard_name+"("+parseFloat(t.sims_reportcard_weightage).toFixed(0)+")",o=t.sims_student_category_received_point,n=t.sims_report_card_assign_points_possible,r=t.sims_reportcard_calculated_subject_aggregate,i=t.sims_reportcard_calculated_overall_aggregate,l=t.sims_reportcard_weightage,d=e.subjects.find(function(e){return e.code===a});d||(d={name:t.sims_subject_name_en,code:t.sims_subject_code,exams:{}},e.subjects.push(d)),d.exams[s]={recevied:o,max:n,sub_agg:r,overall_agg:i,weightage:l}}),angular.forEach(e.subjects,function(t){angular.forEach(e.allexams,function(e){t.exams[e]||(t.exams[e]={recevied:"0.00",max:"0.00",sub_agg:"0.00",overall_agg:"0.00",weightage:"0.00"})})})})}}])}(),function(){"use strict";angular.module("sims.module.student").controller("MojoController",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(e,t,a,s,o,n,r,i){e.div_hide=!1,e.show=!0,e.hide=!1,e.chk_school=!1,e.getstudentList=function(){var t=document.getElementById("btn1"),s=document.getElementById("btn2");e.studentName=a.globals.currentStudent.sims_student_passport_fullname,e.enroll_number=a.globals.currentStudent.sims_student_enroll_number,e.grade=a.globals.currentStudent.sims_grade_name_en,e.section=a.globals.currentStudent.sims_section_name_en,e.class=e.grade+"-"+e.section,e.schoolCode=n.defaults.headers.common.schoolId,e.apiurlpath=r.apiUrl,e.Positive_panel=!0,e.Negative_panel=!1,e.imageUrl="https://assets.mograsys.com/Content/"+n.defaults.headers.common.schoolId+"/Images/StudentImages/",e.skill_img="https://assets.mograsys.com/Images/mojo/skills/",n.get(r.apiUrl+"api/student/getMojoStudent?cur_code="+a.globals.currentStudent.sims_cur_code+"&acd_year="+a.globals.currentStudent.sims_acad_yr+"&grade_code="+a.globals.currentStudent.sims_grade_code+"&section_code="+a.globals.currentStudent.sims_section_code+"&enroll="+a.globals.currentStudent.sims_student_enroll_number).then(function(t){e.stud_details=t.data,e.data={student_name:e.stud_details[0].sims_student_full_name,student_img:e.imageUrl+e.stud_details[0].sims_student_img,student_enroll:a.globals.currentStudent.sims_student_enroll_number}}),n.get(r.apiUrl+"api/student/getMojoRating?cur_code="+a.globals.currentStudent.sims_cur_code+"&acd_year="+a.globals.currentStudent.sims_acad_yr+"&grade_code="+a.globals.currentStudent.sims_grade_code+"&section_code="+a.globals.currentStudent.sims_section_code+"&enroll="+a.globals.currentStudent.sims_student_enroll_number).then(function(a){e.rating_details=a.data,0==e.rating_details.length&&swal({title:"Alert",text:"No Data Found",imageUrl:"assets/img/notification-alert.png"}),t.classList.remove("btn_fade"),s.classList.remove("btn_fade2")}),n.get(r.apiUrl+"api/student/getMojoRatingHistory?cur_code="+a.globals.currentStudent.sims_cur_code+"&acd_year="+a.globals.currentStudent.sims_acad_yr+"&grade_code="+a.globals.currentStudent.sims_grade_code+"&section_code="+a.globals.currentStudent.sims_section_code+"&enroll="+a.globals.currentStudent.sims_student_enroll_number).then(function(a){e.allRatings=a.data,t.classList.remove("btn_fade"),s.classList.remove("btn_fade2")}),e.Positive=function(){e.Positive_panel=!0,e.Negative_panel=!1,t.classList.remove("btn_fade"),t.classList.toggle("btn_fade1"),s.classList.remove("btn_fade2"),s.classList.toggle("btn_fade"),t.disabled=!0,s.disabled=!1},e.Negative=function(){e.Positive_panel=!1,e.Negative_panel=!0,t.classList.remove("btn_fade1"),t.classList.toggle("btn_fade"),s.disabled=!0,t.disabled=!1,s.classList.toggle("btn_fade2"),s.classList.remove("btn_fade")},e.View=function(){e.view_all_transaction=!0},n.get(r.apiUrl+"api/student/getStudentpco?student_enroll="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.studentpco=t.data,e.div_hide=!0})},a.globals.studentsLoaded&&e.getstudentList(),e.$on("student_change",function(){e.getstudentList()})}])}(),function(){"use strict";var e=angular.module("sims.module.student");e.controller("StudentControllerNew",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV","$filter",function(e,t,a,s,o,n,r,i){function l(e){if(null!=e){var t=new Date(e),a=t.getMonth()+1,s=t.getDate();return a<10&&(a="0"+a),s<10&&(s="0"+s),t.getFullYear()+"-"+a+"-"+s}}e.display=!1,e.btnEdit=!0,e.btnCancel=!1,e.btnSave=!1,e.btnEdit1=!0,e.btnCancel1=!1,e.btnSave1=!1,e.btnEdit2=!0,e.btnCancel2=!1,e.btnSave2=!1,e.btnEdit3=!0,e.btnCancel3=!1,e.btnSave3=!1,e.btnEdit4=!0,e.btnCancel4=!1,e.btnSave4=!1,e.prev_img="",e.d_sims_student_emergency_contact_name1=!1,e.d_sims_student_emergency_contact_name2=!1,e.d_sims_student_remark=!1,e.d_sims_student_emergency_contact_number1=!1,e.d_sims_student_emergency_contact_number2=!1,e.d_sims_student_passport_number=!1,e.otherDetailsReadonly=!0,e.otherDetailshow=!1,e.Passportshow=!1,e.PassportReadonly=!0,e.is_studentpco=!0,e.Nationalshow=!1,e.NationalReadonly=!0,e.Departmentshow=!1,e.DepartmentReadonly=!0,e.div_hide=!1,e.show=!0,e.hide=!1,e.chk_school=!1,"tiadxb"!=n.defaults.headers.common.schoolId&&"staging1"!=n.defaults.headers.common.schoolId&&"staging2"!=n.defaults.headers.common.schoolId&&"staging3"!=n.defaults.headers.common.schoolId&&"staging4"!=n.defaults.headers.common.schoolId&&"tiashj"!=n.defaults.headers.common.schoolId&&"tosdxb"!=n.defaults.headers.common.schoolId&&"aisdxb"!=n.defaults.headers.common.schoolId||(e.flg_leams=!0,e.visa_hide=!0,e.hide_Ministry=!0),"misqatar"!=n.defaults.headers.common.schoolId&&"sisqatar"!=n.defaults.headers.common.schoolId&&"eiama"!=n.defaults.headers.common.schoolId&&"eiand"!=n.defaults.headers.common.schoolId&&"eiagps"!=n.defaults.headers.common.schoolId&&"tiadxb"!=n.defaults.headers.common.schoolId&&"tiashj"!=n.defaults.headers.common.schoolId&&"tiashj"!=n.defaults.headers.common.schoolId&&"tosdxb"!=n.defaults.headers.common.schoolId&&"aisdxb"!=n.defaults.headers.common.schoolId||(e.hide_Ministry=!0),"hedgewar"==n.defaults.headers.common.schoolId&&(e.show_adhar=!0),"sisqatar"!=n.defaults.headers.common.schoolId&&"abqis"!=n.defaults.headers.common.schoolId&&"asis"!=n.defaults.headers.common.schoolId&&"siso"!=n.defaults.headers.common.schoolId&&"ges"!=n.defaults.headers.common.schoolId&&"smsm"!=n.defaults.headers.common.schoolId||(e.is_student=!0),"abqis"!=n.defaults.headers.common.schoolId&&"asis"!=n.defaults.headers.common.schoolId&&"siso"!=n.defaults.headers.common.schoolId||(e.flg_house=!0),"abqis"!=n.defaults.headers.common.schoolId&&"asis"!=n.defaults.headers.common.schoolId&&"siso"!=n.defaults.headers.common.schoolId||(e.is_studentpco=!1),"sisqatar"==n.defaults.headers.common.schoolId&&(e.d_sims_student_emergency_contact_name1=!0,e.d_sims_student_emergency_contact_name2=!0,e.d_sims_student_emergency_contact_number1=!0,e.d_sims_student_emergency_contact_number2=!0,e.d_sims_student_remark=!0,e.d_sims_student_passport_number=!0),e.getstudentList=function(){e.studentName=a.globals.currentStudent.sims_student_passport_fullname,e.enroll_number=a.globals.currentStudent.sims_student_enroll_number,e.grade=a.globals.currentStudent.sims_grade_name_en,e.section=a.globals.currentStudent.sims_section_name_en,e.class=e.grade+"-"+e.section,e.schoolCode=n.defaults.headers.common.schoolId,e.apiurlpath=r.apiUrl,e.docurl=r.docUrl+e.schoolCode,"asd"==n.defaults.headers.common.schoolId&&(e.chk_school=!0),"asis"!=n.defaults.headers.common.schoolId&&"abqis"!=n.defaults.headers.common.schoolId&&"siso"!=n.defaults.headers.common.schoolId||(e.tile_hide=!0,e.visa_hide=!0,e.hide_Ministry=!0),n.get(r.apiUrl+"api/student/getStudentInfo?student_enroll="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.obj=t.data,e.getimg(),console.log(" $scope.obj",e.obj),e.div_hide=!0,n.get(r.apiUrl+"api/student/GetCriteriaName?student_roll_number="+e.obj.student_enroll_no).then(function(t){e.Upload_doc_datails=t.data;for(var a=0;a<e.Upload_doc_datails.length;a++)e.Upload_doc_datails[a]=t.data[a],e.visible=[],e.visible=t.data[a].sims_admission_doc_path.split(","),e.Upload_doc_datails[a].path=e.visible;console.log("doc",e.Upload_doc_datails)})}),n.get(r.apiUrl+"api/student/getStudentpco?student_enroll="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.studentpco=t.data,e.div_hide=!0})},e.Save=function(){var t=new Object;t.student_enroll_no=a.globals.currentStudent.sims_student_enroll_number,t.sims_parent_number=a.globals.currentUser.username,t.sims_student_image=e.obj.sims_student_image,t.sims_student_passport_first_name_en=e.obj.sims_student_passport_first_name_en,t.sims_student_passport_middle_name_en=e.obj.sims_student_passport_middle_name_en,t.sims_student_passport_last_name_en=e.obj.sims_student_passport_last_name_en,t.sims_student_family_name_en=e.obj.sims_student_family_name_en,t.sims_student_passport_first_name_ot=e.obj.sims_student_passport_first_name_ot,t.sims_student_passport_middle_name_ot=e.obj.sims_student_passport_middle_name_ot,t.sims_student_passport_last_name_ot=e.obj.sims_student_passport_last_name_ot,t.sims_student_family_name_ot=e.obj.sims_student_family_name_ot,t.sims_student_nickname=e.obj.sims_student_nickname,t.sims_appl_parameter_gender=e.obj.sims_appl_parameter_gender,t.sims_student_dob=l(e.obj.sims_student_dob),t.sims_student_birth_country_code=e.obj.sims_student_birth_country_code,t.sims_nationality_code=e.obj.sims_nationality_code,t.sims_ethnicity_code=e.obj.sims_ethnicity_code,t.sims_religion_code=e.obj.sims_religion_code,t.sims_parent_father_summary_address=e.obj.sims_parent_father_summary_address,t.sims_parent_father_city=e.obj.sims_parent_father_city,t.sims_parent_father_state=e.obj.sims_parent_father_state,t.sims_parent_father_country_code=e.obj.sims_parent_country_code,t.sims_parent_father_phone=e.obj.sims_parent_father_phone,t.sims_parent_father_mobile=e.obj.sims_parent_father_mobile,t.sims_parent_father_email=e.obj.sims_parent_father_email,t.sims_parent_father_fax=e.obj.sims_parent_father_fax,t.sims_parent_father_po_box=e.obj.sims_parent_father_po_box,t.sims_student_current_school_code=e.obj.sims_student_current_school_code,t.sims_student_date=l(e.obj.sims_student_date),t.sims_student_commence_date=l(e.obj.sims_student_commence_date),t.sims_student_academic_status=e.obj.sims_appl_parameter_Academic_Status_Code,t.sims_student_class_rank=e.obj.sims_student_class_rank,t.sims_student_house=e.obj.sims_student_house,t.sims_student_transport_status=e.obj.sims_student_transport_status,t.sims_student_main_language=e.obj.sims_language_code,t.sims_student_other_language=e.obj.sims_student_other_language,t.sims_appl_parameter_legal=e.obj.sims_appl_parameter_legal,t.sims_student_last_login=l(e.obj.sims_student_last_login),t.sims_student_remark=e.obj.sims_student_remark,t.sims_student_emergency_contact_name1=e.obj.sims_student_emergency_contact_name1,t.sims_student_emergency_contact_name2=e.obj.sims_student_emergency_contact_name2,t.sims_student_emergency_contact_number1=e.obj.sims_student_emergency_contact_number1,t.sims_student_emergency_contact_number2=e.obj.sims_student_emergency_contact_number2,t.sims_student_passport_number=e.obj.sims_student_passport_number,t.sims_student_passport_issue_date=l(e.obj.sims_student_passport_issue_date),t.sims_student_passport_expiry_date=l(e.obj.sims_student_passport_expiry_date),t.sims_student_passport_issuing_authority=e.obj.sims_student_passport_issuing_authority,t.sims_student_passport_issue_place=e.obj.sims_student_passport_issue_place,t.sims_student_national_id=e.obj.sims_student_national_id,t.sims_student_national_id_issue_date=l(e.obj.sims_student_national_id_issue_date),t.sims_student_national_id_expiry_date=l(e.obj.sims_student_national_id_expiry_date),t.sims_student_visa_number=e.obj.sims_student_visa_number,t.sims_student_visa_issue_date=l(e.obj.sims_student_visa_issue_date),t.sims_student_visa_expiry_date=l(e.obj.sims_student_visa_expiry_date),t.sims_student_visa_issuing_place=e.obj.sims_student_visa_issuing_place,t.sims_student_visa_issuing_authority=e.obj.sims_student_visa_issuing_authority,t.sims_student_visa_type=e.obj.sims_student_visa_type,t.sims_student_ea_number=e.obj.sims_student_ea_number,t.sims_student_ea_registration_date=l(e.obj.sims_student_ea_registration_date),t.sims_student_ea_transfer=e.obj.sims_student_ea_transfer,t.sims_student_ea_status=e.obj.sims_student_ea_status,n.delete(r.apiUrl+"api/student/studentupdate",{data:t,headers:{"Content-Type":"application/json"}},null).then(function(t){n.get(r.apiUrl+"api/student/getStudentInfo?student_enroll="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.obj=t.data,e.div_hide=!1,e.show=!0,e.hide=!1,e.div_hide=!0,e.btnEdit=!0,e.btnCancel=!1,e.btnSave=!1,e.btnEdit1=!0,e.btnCancel1=!1,e.btnSave1=!1,e.btnEdit2=!0,e.btnCancel2=!1,e.btnSave2=!1,e.btnEdit3=!0,e.btnCancel3=!1,e.btnSave3=!1,e.btnEdit4=!0,e.btnCancel4=!1,e.btnSave4=!1})},function(e){})},e.edit=function(){e.btnEdit=!1,e.btnSave=!0,e.btnCancel=!0,e.btnEdit1=!1,e.btnSave1=!0,e.btnCancel1=!0,e.btnEdit2=!1,e.btnCancel2=!0,e.btnSave2=!0,e.btnEdit3=!1,e.btnCancel3=!0,e.btnSave3=!0,e.btnEdit4=!1,e.btnCancel4=!0,e.btnSave4=!0,e.hide=!0,e.show=!1},e.Cancel=function(){e.btnEdit=!0,e.btnSave=!1,e.btnCancel=!1,e.btnEdit1=!0,e.btnSave1=!1,e.btnCancel1=!1,e.btnEdit2=!0,e.btnCancel2=!1,e.btnSave2=!1,e.btnEdit3=!0,e.btnCancel3=!1,e.btnSave3=!1,e.btnEdit4=!0,e.btnCancel4=!1,e.btnSave4=!1,e.hide=!1,e.show=!0},n.get(r.apiUrl+"api/common/getAllComboBoxValues?academicYear=2015&routeCode=01").then(function(t){e.display=!0,e.obj2=t.data,console.log("$scope.obj2 ",e.obj2)}),e.Getinfo1=function(t){n.get(r.apiUrl+"api/common/getState?CountryCode="+t).then(function(t){e.display=!0,e.obj3=t.data})},e.Getinfo2=function(t){n.get(r.apiUrl+"api/common/getCity?StateCode="+t).then(function(t){e.display=!0,e.obj4=t.data})},$('*[data-datepicker="true"] input[type="text"]').datepicker({todayBtn:!0,orientation:"top left",autoclose:!0,todayHighlight:!0}),e.model=function(){$("#myModal").modal("show")},e.uploadImgClickFShow=!1,e.uploadImgClickF=function(){e.uploadImgClickFShow=!0,_=new FormData},e.uploadImgCancel=function(){e.uploadImgClickFShow=!1},e.getimg=function(){if(e.prev_img="",e.uploading_path="",!angular.isUndefined(a.pp_url_lst)&&a.pp_url_lst.length>0)for(var t=0;t<a.pp_url_lst.length;t++)if("Student"==a.pp_url_lst[t].sims_appl_parameter){e.prev_img=a.pp_url_lst[t].sims_appl_form_field_value1+a.pp_url_lst[t].sims_appl_form_field_value2+"/"+a.globals.currentStudent.sims_student_img,e.uploading_path=a.pp_url_lst[t].sims_appl_form_field_value2;break}""==e.prev_image&&(e.prev_image=e.obj1.lic_website_url+"/Images/StudentImages/"+a.globals.currentStudent.sims_student_img)},e.uploadImg=function(){var t={method:"POST",url:r.kindoApi+"api/AssignmentUpload/upload1?filename="+a.globals.currentStudent.enroll_number+".png&location=Images/StudentImages/",data:_,headers:{"Content-Type":void 0}};n(t).success(function(t){(r.AWS.includes(n.defaults.headers.common.schoolId)||r.isLeamEducation)&&(t=t.substring(t.lastIndexOf("/")+1));var s={sims_student_img:t,sims_student_enroll_number:a.globals.currentStudent.enroll_number};n.post(r.apiUrl+"api/student/updateStudentDetails?opr=SI&student_details="+JSON.stringify(s)).then(function(t){e.imgdata=t.data,e.imgdata?swal({title:"Alert",text:"Photo saved successfully",imageUrl:"assets/img/check.png"}):swal({title:"Alert",text:"Photo not saved",imageUrl:"assets/img/notification-alert.png"})}),e.uploadImgClickFShow=!1})},e.UploadDocument=function(){$("#viewDocumentModal").modal("show")};var d,m,_=new FormData;e.getTheFiles=function(t){e.filesize=!0,angular.forEach(t,function(a,s){_.append(s,a);t[0].size>2e6&&(e.filesize=!1,swal({title:"Error : Cannot upload files larger than 2Mb.",imageUrl:"assets/img/notification-alert.png"}))})},e.uploadClick=function(t){e.filesize=!0,e.edt1=t,console.log(e.edt1),e.edt1.photoStatus=!0,e.ins=!1,_=new FormData},e.file_changed=function(t,a){var s=t.files[0];e.photo_filename=s.type,d=t.files;var o=s.name.split(".")[1];if("jpeg"==o||"jpg"==o||"png"==o||"pdf"==o||"docx"==o||"doc"==o){var l=new FileReader;if(l.onload=function(t){e.$apply(function(){e.prev_image=t.target.result})},d.length){m=new FormData;for(var c=0;c<d.length;c++){d[c].name.split(".");m.append(d[c].name,d[c],"Web\\"+d[c].name.replace(/\s/g,""))}}if(l.readAsDataURL(s),t.files[0].size<2e6)if(console.log(e.edt1.count),e.edt1.count<2){console.log(e.edt1.sims_admission_doc_path),null==e.edt1.sims_admission_doc_path||""==e.edt1.sims_admission_doc_path?e.edt1.count=e.edt1.count:e.edt1.count=e.edt1.count+1;var u={url:r.kindoApi+"api/AssignmentUpload/upload1?filename="+e.obj.student_enroll_no+"_"+e.edt1.sims_criteria_code+"_("+i("date")(new Date,"dd-MM-yyyy")+"-"+i("date")(new Date,"HH-mm-ss")+")."+o+"&location=Docs/Student/",data:_,headers:{"Content-Type":void 0},method:"POST"};n(u).success(function(t){r.isLeamEducation&&(t=t.replace("Content/",""));var a={enrollno:e.obj.student_enroll_no,sims_criteria_code:e.edt1.sims_criteria_code,sims_doc_path:t,opr:"E"};console.log(a),a.sims_admission_doc_status="true",a.sims_admission_doc_verify="true",n.post(r.apiUrl+"api/student/CUD_Update_student_Doc",a).then(function(t){e.ins=t.data,t.data&&(swal({title:"Document Updated Successfully",imageUrl:"assets/img/check.png",showCloseButton:!0,width:380}),e.edt1.count=e.edt1.count+1),e.allDocument()})})}else swal({title:"Alert",text:"Error : You Can Upload Maximum of 2 Documents For Each Document Type",showCloseButton:!0,width:380})}else swal({title:"Document type not allowed",imageUrl:"assets/img/notification-alert.png",showCloseButton:!0,width:380})},e.file_changed1=function(t){e.flg_check_photo=!1;var a=t.files[0];e.photo_filename=a.type;var s=a.name.split(".");if(s=s[s.length-1],t.files[0].size<2e6)if("jpeg"==s||"jpg"==s||"png"==s){var o=new FileReader;o.onload=function(t){e.$apply(function(){e.prev_image=t.target.result})},o.readAsDataURL(a)}else swal({title:"File format not Supported. Supporting formats are jpeg , jpg , png",imageUrl:"assets/img/notification-alert.png",showCloseButton:!0,width:380}),e.flg_check_photo=!0,e.uploadImgClickFShow=!1;else swal({title:"Error : File size should be less than 2MB.",imageUrl:"assets/img/notification-alert.png"}),e.flg_check_photo=!0,e.uploadImgClickFShow=!1},e.add_upload_doc=function(){var t=e.Upload_doc_datails;n.post(r.apiUrl+"api/student/CUD_Update_Admission_DocList",t).then(function(t){e.ins=t.data,t.data,e.Upload_doc=!1})},e.UploadDocModal_Reset=function(){e.maingrid1=!0,e.maingrid2=!0,e.Upload_doc=!1},e.doc_delete=function(t,a,s){n.post(r.apiUrl+"api/student/CUD_Delete_student_Doc?adm_no="+s+"&criteria_code="+a+"&doc_path="+t).then(function(t){e.del=t.data,t.data&&swal({title:"Document Deleted Successfully",imageUrl:"assets/img/check.png",showCloseButton:!0,width:380}),e.allDocument()})},e.allDocument=function(){n.get(r.apiUrl+"api/student/GetCriteriaName?student_roll_number="+a.globals.currentStudent.sims_student_enroll_number).then(function(t){e.Upload_doc_datails=t.data;for(var a=0;a<e.Upload_doc_datails.length;a++)e.Upload_doc_datails[a]=t.data[a],e.visible=[],e.visible=t.data[a].sims_admission_doc_path.split(","),e.Upload_doc_datails[a].path=e.visible;console.log("doc",e.Upload_doc_datails)})},e.downloaddoc=function(t){e.url=r.docUrl+t,window.open(e.url)},e.updateAboutMe=function(){a.globals.currentStudent.enroll_number;var t={sims_student_birth_country_code:e.obj.sims_student_birth_country_code,sims_student_nationality_code:e.obj.sims_nationality_code,sims_student_gender:e.obj.sims_appl_parameter_gender,sims_student_dob:e.obj.sims_student_dob,sims_student_enroll_number:a.globals.currentStudent.enroll_number,sims_religion_code:e.obj.sims_religion_code};n.post(r.apiUrl+"api/student/updateStudentDetails1?opr=AM&student_details="+JSON.stringify(t)).then(function(t){e.abt=t.data,e.abt?swal({title:"Alert",text:"Record Updated Successfully",imageUrl:"assets/img/check.png"}):swal({title:"Alert",text:"Record Not Updated",imageUrl:"assets/img/notification-alert.png"})})},e.otherDetailsClick=function(){e.otherDetailsReadonly=!1,e.otherDetailshow=!0},e.SaveotherDetailsClick=function(){e.otherDetailshow=!1,e.otherDetailsReadonly=!0;a.globals.currentStudent.enroll_number;var t={sims_student_enroll_number:a.globals.currentStudent.enroll_number,sims_student_main_language_code:e.obj.sims_language_code,sims_student_transport_status:e.obj.sims_student_transport_status,sims_student_primary_contact_pref:e.obj.sims_appl_parameter_legal,sims_student_emergency_contact_name1:e.obj.sims_student_emergency_contact_name1,sims_student_emergency_contact_name2:e.obj.sims_student_emergency_contact_name2,sims_student_emergency_contact_number1:e.obj.sims_student_emergency_contact_number1,sims_student_emergency_contact_number2:e.obj.sims_student_emergency_contact_number2,sims_student_remark:e.obj.sims_student_remark};n.post(r.apiUrl+"api/student/updateStudentDetails?opr=OD&student_details="+JSON.stringify(t)).then(function(t){e.othr=t.data,e.othr?swal({title:"Alert",text:"Record Updated Successfully",imageUrl:"assets/img/check.png"}):swal({title:"Alert",text:"Record Not Updated",imageUrl:"assets/img/notification-alert.png"})})},e.cancelotherDetailsClick=function(){e.otherDetailshow=!1,e.otherDetailsReadonly=!0},e.PassportClick=function(){e.PassportReadonly=!1,e.Passportshow=!0},e.SavePassportClick=function(){e.Passportshow=!1,e.PassportReadonly=!0;a.globals.currentStudent.enroll_number;var t={sims_student_enroll_number:a.globals.currentStudent.enroll_number,sims_student_passport_issue_date:e.obj.sims_student_passport_issue_date,sims_student_passport_expiry_date:e.obj.sims_student_passport_expiry_date,sims_student_passport_issuing_authority:e.obj.sims_student_passport_issuing_authority,sims_student_passport_issue_place:e.obj.sims_student_passport_issue_place,sims_student_passport_number:e.obj.sims_student_passport_number};n.post(r.apiUrl+"api/student/updateStudentDetails?opr=PD&student_details="+JSON.stringify(t)).then(function(t){e.pd=t.data,e.pd?swal({title:"Alert",text:"Record Updated Successfully",imageUrl:"assets/img/check.png"}):swal({title:"Alert",text:"Record Not Updated",imageUrl:"assets/img/notification-alert.png"})})},e.getcontactdetails=function(t){"F"==t&&(e.father_show=!0,e.mother_show=!1,e.guardian_show=!1),"M"==t&&(e.father_show=!1,e.mother_show=!0,e.guardian_show=!1),"G"==t&&(e.father_show=!1,e.mother_show=!1,e.guardian_show=!0)},e.cancelPassportClick=function(){e.Passportshow=!1,e.PassportReadonly=!0},e.NationalClick=function(){e.NationalReadonly=!1,e.Nationalshow=!0},e.SaveNationalClick=function(){e.Nationalshow=!1,e.NationalReadonly=!0;a.globals.currentStudent.enroll_number;var t={sims_student_enroll_number:a.globals.currentStudent.enroll_number,sims_student_national_id:e.obj.sims_student_national_id,sims_student_national_id_issue_date:e.obj.sims_student_national_id_issue_date,sims_student_national_id_expiry_date:e.obj.sims_student_national_id_expiry_date,sims_student_visa_number:e.obj.sims_student_visa_number,sims_student_visa_type:e.obj.sims_student_visa_type_code,sims_student_visa_issue_date:e.obj.sims_student_visa_issue_date,sims_student_visa_expiry_date:e.obj.sims_student_visa_expiry_date,sims_student_visa_issuing_authority:e.obj.sims_student_visa_issuing_authority};n.post(r.apiUrl+"api/student/updateStudentDetails?opr=VD&student_details="+JSON.stringify(t)).then(function(t){e.VD=t.data,e.VD?swal({title:"Alert",text:"Record Updated Successfully",imageUrl:"assets/img/check.png"}):swal({title:"Alert",text:"Record Not Updated",imageUrl:"assets/img/notification-alert.png"})})},e.cancelNationalClick=function(){e.Nationalshow=!1,e.NationalReadonly=!0},e.DepartmentClick=function(){e.DepartmentReadonly=!1,e.Departmentshow=!0},e.SaveDepartmentClick=function(){e.Departmentshow=!1,e.DepartmentReadonly=!0;a.globals.currentStudent.enroll_number;var t={sims_student_enroll_number:a.globals.currentStudent.enroll_number,sims_student_ea_number:e.obj.sims_student_ea_number,sims_student_ea_registration_date:e.obj.sims_student_ea_registration_date,sims_student_ea_transfer:e.obj.sims_student_ea_transfer,sims_student_ea_status:e.obj.sims_student_ea_status};n.post(r.apiUrl+"api/student/updateStudentDetails?opr=ED&student_details="+JSON.stringify(t)).then(function(t){e.ED=t.data,t.data?swal({title:"Alert",text:"Record Updated Successfully",imageUrl:"assets/img/check.png"}):swal({title:"Alert",text:"Record Not Updated",imageUrl:"assets/img/notification-alert.png"})})},e.cancelDepartmentClick=function(){e.Departmentshow=!1,e.DepartmentReadonly=!0},$(document).on("touch click",'*[data-datepicker="true"] .add-on',function(e){$('input[type="text"]',$(this).parent()).focus()}),a.globals.studentsLoaded&&e.getstudentList(),e.$on("student_change",function(){e.getstudentList()})}]),e.directive("ngFiles",["$parse",function(e){return{link:function(t,a,s){var o=e(s.ngFiles);a.on("change",function(e){o(t,{$files:e.target.files})})}}}])}(),function(){"use strict";var e=angular.module("sims.module.student");e.controller("StudentCollegeController",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(e,t,a,s,o,n,r,i){function l(e){if(null!=e){var t=new Date(e),a=t.getMonth()+1,s=t.getDate();return a<10&&(a="0"+a),s<10&&(s="0"+s),t.getFullYear()+"-"+a+"-"+s}}e.display=!1,e.btnEdit=!0,e.btnCancel=!1,e.btnSave=!1,e.btnEdit1=!0,e.btnCancel1=!1,e.btnSave1=!1,e.btnEdit2=!0,e.btnCancel2=!1,e.btnSave2=!1,e.btnEdit3=!0,e.btnCancel3=!1,e.btnSave3=!1,e.btnEdit4=!0,e.btnCancel4=!1,e.btnSave4=!1,e.d_sims_student_emergency_contact_name1=!1,e.d_sims_student_emergency_contact_name2=!1,e.d_sims_student_remark=!1,e.d_sims_student_emergency_contact_number1=!1,e.d_sims_student_emergency_contact_number2=!1,e.d_sims_student_passport_number=!1,e.otherDetailsReadonly=!0,e.otherDetailshow=!1,e.Passportshow=!1,e.PassportReadonly=!0,e.is_studentpco=!0,e.Nationalshow=!1,e.NationalReadonly=!0,e.Departmentshow=!1,e.DepartmentReadonly=!0,e.div_hide=!1,e.show=!0,e.hide=!1,e.chk_school=!1,"tiadxb"!=n.defaults.headers.common.schoolId&&"staging1"!=n.defaults.headers.common.schoolId&&"staging2"!=n.defaults.headers.common.schoolId&&"staging3"!=n.defaults.headers.common.schoolId&&"staging4"!=n.defaults.headers.common.schoolId&&"tiashj"!=n.defaults.headers.common.schoolId&&"tosdxb"!=n.defaults.headers.common.schoolId&&"aisdxb"!=n.defaults.headers.common.schoolId||(e.flg_leams=!0,e.visa_hide=!0,e.hide_Ministry=!0),"misqatar"!=n.defaults.headers.common.schoolId&&"sisqatar"!=n.defaults.headers.common.schoolId&&"eiama"!=n.defaults.headers.common.schoolId&&"eiand"!=n.defaults.headers.common.schoolId&&"eiagps"!=n.defaults.headers.common.schoolId&&"tiadxb"!=n.defaults.headers.common.schoolId&&"tiashj"!=n.defaults.headers.common.schoolId&&"tiashj"!=n.defaults.headers.common.schoolId&&"tosdxb"!=n.defaults.headers.common.schoolId&&"aisdxb"!=n.defaults.headers.common.schoolId||(e.hide_Ministry=!0),"hedgewar"==n.defaults.headers.common.schoolId&&(e.show_adhar=!0),"amps"!=n.defaults.headers.common.schoolId&&"sisqatar"!=n.defaults.headers.common.schoolId&&"abqis"!=n.defaults.headers.common.schoolId&&"asis"!=n.defaults.headers.common.schoolId&&"siso"!=n.defaults.headers.common.schoolId&&"ges"!=n.defaults.headers.common.schoolId&&"smsm"!=n.defaults.headers.common.schoolId||(e.is_student=!0),"abqis"!=n.defaults.headers.common.schoolId&&"asis"!=n.defaults.headers.common.schoolId&&"siso"!=n.defaults.headers.common.schoolId||(e.flg_house=!0),"abqis"!=n.defaults.headers.common.schoolId&&"asis"!=n.defaults.headers.common.schoolId&&"siso"!=n.defaults.headers.common.schoolId||(e.is_studentpco=!1),"sisqatar"==n.defaults.headers.common.schoolId&&(e.d_sims_student_emergency_contact_name1=!0,e.d_sims_student_emergency_contact_name2=!0,e.d_sims_student_emergency_contact_number1=!0,e.d_sims_student_emergency_contact_number2=!0,e.d_sims_student_remark=!0,e.d_sims_student_passport_number=!0),e.getstudentList=function(){if(e.studentName=a.globals.currentStudent.sims_student_passport_fullname,e.enroll_number=a.globals.currentStudent.sims_student_enroll_number,e.grade=a.globals.currentStudent.sims_grade_name_en,e.section=a.globals.currentStudent.sims_section_name_en,e.class=e.grade+"-"+e.section,e.schoolCode=n.defaults.headers.common.schoolId,e.apiurlpath=r.apiUrl,"asd"==n.defaults.headers.common.schoolId&&(e.chk_school=!0),"asis"!=n.defaults.headers.common.schoolId&&"abqis"!=n.defaults.headers.common.schoolId&&"siso"!=n.defaults.headers.common.schoolId||(e.tile_hide=!0,e.visa_hide=!0,e.hide_Ministry=!0),e.prev_img="",e.uploading_path="",!angular.isUndefined(a.pp_url_lst)&&a.pp_url_lst.length>0)for(var t=0;t<a.pp_url_lst.length;t++)"Student"==a.pp_url_lst[t].sims_appl_parameter&&(e.prev_img=a.pp_url_lst[t].sims_appl_form_field_value1+a.pp_url_lst[t].sims_appl_form_field_value2+"/"+a.globals.currentStudent.sims_student_img,e.uploading_path=a.pp_url_lst[t].sims_appl_form_field_value2);""==e.prev_img&&(e.prev_img=e.obj1.lic_website_url+"/Images/StudentImages/"+a.globals.currentStudent.sims_student_img),""!=e.uploading_path?e.uploading_path=e.uploading_path.replace("Images/","")+"/":e.uploading_path="StudentImages/",n.get(r.apiUrl+"api/student/getStudentInfoNew?student_enroll="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.obj=t.data,e.obj.sims_parent_father_email=e.obj.sims_admission_student_email,e.obj.sims_parent_father_mobile=e.obj.sims_admission_student_mobile,e.obj.sims_blood_group=e.obj.sims_blood_group,console.log("blood group",e.obj.sims_blood_group),console.log(" $scope.obj",e.obj),e.div_hide=!0}),n.get(r.apiUrl+"api/student/getStudentpco?student_enroll="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.studentpco=t.data,e.div_hide=!0})},e.Save=function(){var t=new Object;t.student_enroll_no=a.globals.currentStudent.sims_student_enroll_number,t.sims_parent_number=a.globals.currentUser.username,t.sims_student_image=e.obj.sims_student_image,t.sims_student_passport_first_name_en=e.obj.sims_student_passport_first_name_en,t.sims_student_passport_middle_name_en=e.obj.sims_student_passport_middle_name_en,t.sims_student_passport_last_name_en=e.obj.sims_student_passport_last_name_en,t.sims_student_family_name_en=e.obj.sims_student_family_name_en,t.sims_student_passport_first_name_ot=e.obj.sims_student_passport_first_name_ot,t.sims_student_passport_middle_name_ot=e.obj.sims_student_passport_middle_name_ot,t.sims_student_passport_last_name_ot=e.obj.sims_student_passport_last_name_ot,t.sims_student_family_name_ot=e.obj.sims_student_family_name_ot,t.sims_student_nickname=e.obj.sims_student_nickname,t.sims_appl_parameter_gender=e.obj.sims_appl_parameter_gender,t.sims_student_dob=l(e.obj.sims_student_dob),t.sims_student_birth_country_code=e.obj.sims_student_birth_country_code,t.sims_nationality_code=e.obj.sims_nationality_code,t.sims_ethnicity_code=e.obj.sims_ethnicity_code,t.sims_religion_code=e.obj.sims_religion_code,t.sims_parent_father_summary_address=e.obj.sims_parent_father_summary_address,t.sims_parent_father_city=e.obj.sims_parent_father_city,t.sims_parent_father_state=e.obj.sims_parent_father_state,t.sims_parent_father_country_code=e.obj.sims_parent_country_code,t.sims_parent_father_phone=e.obj.sims_parent_father_phone,t.sims_parent_father_mobile=e.obj.sims_parent_father_mobile,t.sims_parent_father_email=e.obj.sims_parent_father_email,t.sims_parent_father_fax=e.obj.sims_parent_father_fax,t.sims_parent_father_po_box=e.obj.sims_parent_father_po_box,t.sims_student_current_school_code=e.obj.sims_student_current_school_code,t.sims_student_date=l(e.obj.sims_student_date),t.sims_student_commence_date=l(e.obj.sims_student_commence_date),t.sims_student_academic_status=e.obj.sims_appl_parameter_Academic_Status_Code,t.sims_student_class_rank=e.obj.sims_student_class_rank,t.sims_student_house=e.obj.sims_student_house,t.sims_student_transport_status=e.obj.sims_student_transport_status,t.sims_student_main_language=e.obj.sims_language_code,t.sims_student_other_language=e.obj.sims_student_other_language,t.sims_appl_parameter_legal=e.obj.sims_appl_parameter_legal,t.sims_student_last_login=l(e.obj.sims_student_last_login),t.sims_student_remark=e.obj.sims_student_remark,t.sims_student_emergency_contact_name1=e.obj.sims_student_emergency_contact_name1,t.sims_student_emergency_contact_name2=e.obj.sims_student_emergency_contact_name2,t.sims_student_emergency_contact_number1=e.obj.sims_student_emergency_contact_number1,t.sims_student_emergency_contact_number2=e.obj.sims_student_emergency_contact_number2,t.sims_student_passport_number=e.obj.sims_student_passport_number,t.sims_student_passport_issue_date=l(e.obj.sims_student_passport_issue_date),t.sims_student_passport_expiry_date=l(e.obj.sims_student_passport_expiry_date),t.sims_student_passport_issuing_authority=e.obj.sims_student_passport_issuing_authority,t.sims_student_passport_issue_place=e.obj.sims_student_passport_issue_place,t.sims_student_national_id=e.obj.sims_student_national_id,t.sims_student_national_id_issue_date=l(e.obj.sims_student_national_id_issue_date),t.sims_student_national_id_expiry_date=l(e.obj.sims_student_national_id_expiry_date),t.sims_student_visa_number=e.obj.sims_student_visa_number,t.sims_student_visa_issue_date=l(e.obj.sims_student_visa_issue_date),t.sims_student_visa_expiry_date=l(e.obj.sims_student_visa_expiry_date),t.sims_student_visa_issuing_place=e.obj.sims_student_visa_issuing_place,t.sims_student_visa_issuing_authority=e.obj.sims_student_visa_issuing_authority,t.sims_student_visa_type=e.obj.sims_student_visa_type,t.sims_student_ea_number=e.obj.sims_student_ea_number,t.sims_student_ea_registration_date=l(e.obj.sims_student_ea_registration_date),t.sims_student_ea_transfer=e.obj.sims_student_ea_transfer,t.sims_student_ea_status=e.obj.sims_student_ea_status,n.delete(r.apiUrl+"api/student/studentupdate",{data:t,headers:{"Content-Type":"application/json"}},null).then(function(t){n.get(r.apiUrl+"api/student/getStudentInfo?student_enroll="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.obj=t.data,e.div_hide=!1,e.show=!0,e.hide=!1,e.div_hide=!0,e.btnEdit=!0,e.btnCancel=!1,e.btnSave=!1,e.btnEdit1=!0,e.btnCancel1=!1,e.btnSave1=!1,e.btnEdit2=!0,e.btnCancel2=!1,e.btnSave2=!1,e.btnEdit3=!0,e.btnCancel3=!1,e.btnSave3=!1,e.btnEdit4=!0,e.btnCancel4=!1,e.btnSave4=!1})},function(e){})},e.edit=function(){e.btnEdit=!1,e.btnSave=!0,e.btnCancel=!0,e.btnEdit1=!1,e.btnSave1=!0,e.btnCancel1=!0,e.btnEdit2=!1,e.btnCancel2=!0,e.btnSave2=!0,e.btnEdit3=!1,e.btnCancel3=!0,e.btnSave3=!0,e.btnEdit4=!1,e.btnCancel4=!0,e.btnSave4=!0,e.hide=!0,e.show=!1},e.Cancel=function(){e.btnEdit=!0,e.btnSave=!1,e.btnCancel=!1,e.btnEdit1=!0,e.btnSave1=!1,e.btnCancel1=!1,e.btnEdit2=!0,e.btnCancel2=!1,e.btnSave2=!1,e.btnEdit3=!0,e.btnCancel3=!1,e.btnSave3=!1,e.btnEdit4=!0,e.btnCancel4=!1,e.btnSave4=!1,e.hide=!1,e.show=!0},n.get(r.apiUrl+"api/common/getAllComboBoxValuesmodern?academicYear=2016&routeCode=01").then(function(t){e.display=!0,e.obj2=t.data,console.log("$scope.obj2 ",e.obj2)}),e.Getinfo1=function(t){n.get(r.apiUrl+"api/common/getState?CountryCode="+t).then(function(t){e.display=!0,e.obj3=t.data})},e.Getinfo2=function(t){n.get(r.apiUrl+"api/common/getCity?StateCode="+t).then(function(t){e.display=!0,e.obj4=t.data})},$('*[data-datepicker="true"] input[type="text"]').datepicker({todayBtn:!0,orientation:"top left",autoclose:!0,todayHighlight:!0}),e.model=function(){$("#myModal").modal("show")};var d=new FormData;e.getTheFiles=function(e){angular.forEach(e,function(e,t){d.append(t,e)})},e.file_changed=function(t){var a=t.files[0];e.photo_filename=a.type;var s=new FileReader;s.onload=function(t){e.$apply(function(){e.prev_img=t.target.result})},s.readAsDataURL(a)},e.uploadImgClickF=function(){e.uploadImgClickFShow=!0},e.uploadImgCancel=function(){e.uploadImgClickFShow=!1},e.uploadImg=function(){var t={method:"POST",url:"https://api.mograsys.com/kindoapi/api/file/upload?filename="+a.globals.currentStudent.enroll_number+"&location="+e.uploading_path,data:d,headers:{"Content-Type":void 0}};n(t).success(function(t){var s={sims_student_img:t,sims_student_enroll_number:a.globals.currentStudent.enroll_number};n.post(r.apiUrl+"api/student/updateStudentDetails?opr=SI&student_details="+JSON.stringify(s)).then(function(t){e.imgdata=t.data,e.imgdata?swal({title:"Alert",text:"Photo saved successfully",imageUrl:"assets/img/check.png"}):swal({title:"Alert",text:"Photo not saved",imageUrl:"assets/img/notification-alert.png"})}),e.uploadImgClickFShow=!1})},e.updateAboutMe=function(){a.globals.currentStudent.enroll_number;var t={sims_student_birth_country_code:e.obj.sims_student_birth_country_code,sims_student_nationality_code:e.obj.sims_nationality_code,sims_student_gender:e.obj.sims_appl_parameter_gender,sims_student_dob:e.obj.sims_student_dob,sims_parent_father_email:e.obj.sims_parent_father_email,sims_parent_father_mobile:e.obj.sims_parent_father_mobile,sims_student_enroll_number:a.globals.currentStudent.enroll_number,sims_religion_code:e.obj.sims_religion_code,sims_blood_group_code:e.obj.sims_blood_group_code};n.post(r.apiUrl+"api/student/updateStudentDetails_new?opr=AM&student_details="+JSON.stringify(t)).then(function(t){e.abt=t.data,e.abt?swal({title:"Alert",text:"Record Updated Successfully",imageUrl:"assets/img/check.png"}):swal({title:"Alert",text:"Record Not Updated",imageUrl:"assets/img/notification-alert.png"})})},e.otherDetailsClick=function(){e.otherDetailsReadonly=!1,e.otherDetailshow=!0},e.SaveotherDetailsClick=function(){e.otherDetailshow=!1,e.otherDetailsReadonly=!0;a.globals.currentStudent.enroll_number;var t={sims_student_enroll_number:a.globals.currentStudent.enroll_number,sims_student_emergency_contact_name1:e.obj.sims_student_emergency_contact_name1,sims_student_emergency_contact_name2:e.obj.sims_student_emergency_contact_name2,sims_student_emergency_contact_number1:e.obj.sims_student_emergency_contact_number1,sims_student_emergency_contact_number2:e.obj.sims_student_emergency_contact_number2,sims_student_sub_caste:e.obj.sims_student_sub_caste,sims_student_caste:e.obj.sims_student_caste,sims_student_is_physically_handicapped:e.obj.sims_student_is_physically_handicapped,sims_fee_category_description:e.obj.sims_fee_category_description};n.post(r.apiUrl+"api/student/updateStudentDetails_new?opr=OT&student_details="+JSON.stringify(t)).then(function(t){e.othr=t.data,e.othr?swal({title:"Alert",text:"Record Updated Successfully",imageUrl:"assets/img/check.png"}):swal({title:"Alert",text:"Record Not Updated",imageUrl:"assets/img/notification-alert.png"})})},e.cancelotherDetailsClick=function(){e.otherDetailshow=!1,e.otherDetailsReadonly=!0},e.PassportClick=function(){e.PassportReadonly=!1,e.Passportshow=!0},e.SavePassportClick=function(){e.Passportshow=!1,e.PassportReadonly=!0;a.globals.currentStudent.enroll_number;var t={sims_student_enroll_number:a.globals.currentStudent.enroll_number,sims_student_passport_issue_date:e.obj.sims_student_passport_issue_date,sims_student_passport_expiry_date:e.obj.sims_student_passport_expiry_date,sims_student_passport_issuing_authority:e.obj.sims_student_passport_issuing_authority,sims_student_passport_issue_place:e.obj.sims_student_passport_issue_place,sims_student_passport_number:e.obj.sims_student_passport_number};n.post(r.apiUrl+"api/student/updateStudentDetails?opr=PD&student_details="+JSON.stringify(t)).then(function(t){e.pd=t.data,e.pd?swal({title:"Alert",text:"Record Updated Successfully",imageUrl:"assets/img/check.png"}):swal({title:"Alert",text:"Record Not Updated",imageUrl:"assets/img/notification-alert.png"})})},e.getcontactdetails=function(t){"F"==t&&(e.father_show=!0,e.mother_show=!1,e.guardian_show=!1),"M"==t&&(e.father_show=!1,e.mother_show=!0,e.guardian_show=!1),"G"==t&&(e.father_show=!1,e.mother_show=!1,e.guardian_show=!0)},e.cancelPassportClick=function(){e.Passportshow=!1,e.PassportReadonly=!0},e.NationalClick=function(){e.NationalReadonly=!1,e.Nationalshow=!0},e.SaveNationalClick=function(){e.Nationalshow=!1,e.NationalReadonly=!0;a.globals.currentStudent.enroll_number;var t={sims_student_enroll_number:a.globals.currentStudent.enroll_number,sims_student_national_id:e.obj.sims_student_national_id,sims_student_national_id_issue_date:e.obj.sims_student_national_id_issue_date,sims_student_national_id_expiry_date:e.obj.sims_student_national_id_expiry_date,sims_student_visa_number:e.obj.sims_student_visa_number,sims_student_visa_type:e.obj.sims_student_visa_type_code,sims_student_visa_issue_date:e.obj.sims_student_visa_issue_date,sims_student_visa_expiry_date:e.obj.sims_student_visa_expiry_date,sims_student_visa_issuing_authority:e.obj.sims_student_visa_issuing_authority};n.post(r.apiUrl+"api/student/updateStudentDetails?opr=VD&student_details="+JSON.stringify(t)).then(function(t){e.VD=t.data,e.VD?swal({title:"Alert",text:"Record Updated Successfully",imageUrl:"assets/img/check.png"}):swal({title:"Alert",text:"Record Not Updated",imageUrl:"assets/img/notification-alert.png"})})},e.cancelNationalClick=function(){e.Nationalshow=!1,e.NationalReadonly=!0},e.DepartmentClick=function(){e.DepartmentReadonly=!1,e.Departmentshow=!0},e.SaveDepartmentClick=function(){e.Departmentshow=!1,e.DepartmentReadonly=!0;a.globals.currentStudent.enroll_number;var t={sims_student_enroll_number:a.globals.currentStudent.enroll_number,sims_student_ea_number:e.obj.sims_student_ea_number,sims_student_ea_registration_date:e.obj.sims_student_ea_registration_date,sims_student_ea_transfer:e.obj.sims_student_ea_transfer,sims_student_ea_status:e.obj.sims_student_ea_status};n.post(r.apiUrl+"api/student/updateStudentDetails?opr=ED&student_details="+JSON.stringify(t)).then(function(t){e.ED=t.data,t.data?swal({title:"Alert",text:"Record Updated Successfully",imageUrl:"assets/img/check.png"}):swal({title:"Alert",text:"Record Not Updated",imageUrl:"assets/img/notification-alert.png"})})},e.cancelDepartmentClick=function(){e.Departmentshow=!1,e.DepartmentReadonly=!0},$(document).on("touch click",'*[data-datepicker="true"] .add-on',function(e){$('input[type="text"]',$(this).parent()).focus()}),a.globals.studentsLoaded&&e.getstudentList(),e.$on("student_change",function(){e.getstudentList()})}]),e.directive("ngFiles",["$parse",function(e){return{link:function(t,a,s){var o=e(s.ngFiles);a.on("change",function(e){o(t,{$files:e.target.files})})}}}])}(),function(){"use strict";angular.module("sims.module.student").controller("InvoiceReceiveableCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV","$location",function(e,t,a,s,o,n,r,i){e.grid={},e.chk_disabled=!0;e.studentName=a.globals.currentStudent.sims_student_passport_fullname,e.enroll_number=a.globals.currentStudent.sims_student_enroll_number,e.grade=a.globals.currentStudent.sims_grade_name_en,e.year=a.globals.currentStudent.sims_acad_yr,e.std_cur_code=a.globals.currentStudent.sims_cur_code,e.username=a.globals.currentUser.username,e.getFeesDetails=function(t){e.academic_year=a.globals.currentStudent.sims_acad_yr,e.fe_enroll=a.globals.currentStudent.enroll_number;a.globals.currentStudent.enroll_number;e.studentName=a.globals.currentStudent.sims_student_passport_fullname,e.acYear=a.globals.currentStudent.sims_acad_yr,e.std_enroll_number=a.globals.currentStudent.enroll_number,e.std_cur_code=a.globals.currentStudent.sims_cur_code,e.Student=a.globals.currentStudent,n.get(r.apiUrl+"api/student/getAllInvoiceReceivablePrint?search="+e.enroll_number+"&comp_code=1&academic_year="+e.year).then(function(t){e.InvoiceReceivable_Data=t.data,e.InvoiceReceivable_Data.length>0?e.studFeeDetails=e.InvoiceReceivable_Data:swal({title:"Alert",text:"Invoice Not Found",width:300,height:200})})},e.onlyNumbers=function(e){var t={escape:27,backspace:8,tab:9,enter:13,del:46,0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57};for(var a in t)if(t.hasOwnProperty(a)&&(e.charCode==t[a]||e.keyCode==t[a]))return;e.preventDefault()},a.globals.studentsLoaded&&e.getFeesDetails()}])}(),function(){"use strict";angular.module("sims.module.student").controller("Kyc_Controller",["$scope","$state","$rootScope","$timeout","$stateParams","gettextCatalog","$http","ENV",function(e,t,a,s,o,n,r,i){e.kyc_data=[],r.get(i.apiUrl+"api/dashboard/getprofession_codes").then(function(t){e.prof_data=t.data}),e.edt={},e.data={},e.student=[],e.All_Student_Details=[],r.get(i.apiUrl+"api/dashboard/getKYC_Survey_Details?acad_year="+a.globals.currentStudent.sims_acad_yr+"&pid="+a.globals.currentUser.username).then(function(t){e.kyc_data=t.data,console.log("Length",e.kyc_data.length),e.edt={sims_kyc_user_type:e.kyc_data[0].sims_kyc_user_type,sims_student_emergency_contact_name1:e.kyc_data[0].sims_student_emergency_contact_name1,sims_student_visa_number:e.kyc_data[0].sims_student_visa_number,sims_student_visa_issue_date:e.kyc_data[0].sims_student_visa_issue_date,sims_student_visa_expiry_date:e.kyc_data[0].sims_student_visa_expiry_date,sims_student_national_id_issue_date:e.kyc_data[0].sims_student_national_id_issue_date,sims_student_national_id_expiry_date:e.kyc_data[0].sims_student_national_id_expiry_date,sims_student_primary_contact_pref:e.kyc_data[0].sims_student_primary_contact_pref,sims_student_legal_custody:e.kyc_data[0].sims_student_legal_custody,sims_student_emergency_contact_name1:e.kyc_data[0].sims_student_emergency_contact_name1,sims_student_emergency_contact_name2:e.kyc_data[0].sims_student_emergency_contact_name2,sims_student_emergency_contact_number1:e.kyc_data[0].sims_student_emergency_contact_number1,sims_student_emergency_contact_number2:e.kyc_data[0].sims_student_emergency_contact_number2,sims_student_passport_number:e.kyc_data[0].sims_student_passport_number,sims_student_passport_issue_date:e.kyc_data[0].sims_student_passport_issue_date,sims_student_passport_expiry_date:e.kyc_data[0].sims_student_passport_expiry_date,sims_student_passport_issuing_authority:e.kyc_data[0].sims_student_passport_issuing_authority,sims_student_passport_issue_place:e.kyc_data[0].sims_student_passport_issue_place},e.edt_father={sims_parent_father_salutation_code:e.kyc_data[0].sims_parent_father_salutation_code,sims_parent_father_nationality2_code:e.kyc_data[0].sims_parent_father_nationality2_code,sims_parent_father_appartment_number:e.kyc_data[0].sims_parent_father_appartment_number,sims_parent_father_building_number:e.kyc_data[0].sims_parent_father_building_number,sims_parent_father_street_number:e.kyc_data[0].sims_parent_father_street_number,sims_parent_father_area_number:e.kyc_data[0].sims_parent_father_area_number,sims_parent_father_summary_address:e.kyc_data[0].sims_parent_father_summary_address,sims_parent_father_summary_address_local_language:e.kyc_data[0].sims_parent_father_summary_address_local_language,sims_parent_father_city:e.kyc_data[0].sims_parent_father_city,sims_parent_father_state:e.kyc_data[0].sims_parent_father_state,sims_parent_father_country_code:e.kyc_data[0].sims_parent_father_country_code,sims_parent_father_phone:e.kyc_data[0].sims_parent_father_phone,sims_parent_father_mobile:e.kyc_data[0].sims_parent_father_mobile,sims_parent_father_email:e.kyc_data[0].sims_parent_father_email,sims_parent_father_fax:e.kyc_data[0].sims_parent_father_fax,sims_parent_father_po_box:e.kyc_data[0].sims_parent_father_po_box,sims_parent_father_occupation:e.kyc_data[0].sims_parent_father_occupation,sims_parent_father_occupation_local_language:e.kyc_data[0].sims_parent_father_occupation_local_language,sims_parent_father_occupation_location_local_language:e.kyc_data[0].sims_parent_father_occupation_location_local_language,sims_parent_father_company:e.kyc_data[0].sims_parent_father_company,sims_parent_father_passport_number:e.kyc_data[0].sims_parent_father_passport_number,sims_parent_father_passport_issue_date:e.kyc_data[0].sims_parent_father_passport_issue_date,sims_parent_father_passport_expiry_date:e.kyc_data[0].sims_parent_father_passport_expiry_date,sims_parent_father_national_id:e.kyc_data[0].sims_parent_father_national_id,sims_parent_father_national_id_issue_date:e.kyc_data[0].sims_parent_father_national_id_issue_date,sims_parent_father_national_id__expiry_date:e.kyc_data[0].sims_parent_father_national_id__expiry_date,sims_parent_father_qualification:e.kyc_data[0].sims_parent_father_qualification,sims_parent_father_passing_year:e.kyc_data[0].sims_parent_father_passing_year,sims_parent_father_profession_code:e.kyc_data[0].sims_parent_father_profession_code,sims_parent_father_specialization_code:e.kyc_data[0].sims_parent_father_specialization_code,sims_parent_father_profession_value:e.kyc_data[0].sims_parent_father_profession_value,sims_parent_father_company_address:e.kyc_data[0].sims_parent_father_company_address,sims_parent_father_company_joining_year:e.kyc_data[0].sims_parent_father_company_joining_year,sims_parent_father_isalumni:e.kyc_data[0].sims_parent_father_isalumni},e.edt_mother={sims_parent_mother_salutation_code:e.kyc_data[0].sims_parent_mother_salutation_code,sims_parent_mother_last_name:e.kyc_data[0].sims_parent_mother_salutation_code,sims_parent_mother_family_name:e.kyc_data[0].sims_parent_mother_salutation_code,sims_parent_mother_nationality2_code:e.kyc_data[0].sims_parent_mother_nationality2_code,sims_parent_mother_appartment_number:e.kyc_data[0].sims_parent_mother_appartment_number,sims_parent_mother_building_number:e.kyc_data[0].sims_parent_mother_building_number,sims_parent_mother_street_number:e.kyc_data[0].sims_parent_mother_street_number,sims_parent_mother_area_number:e.kyc_data[0].sims_parent_mother_area_number,sims_parent_mother_summary_address:e.kyc_data[0].sims_parent_mother_summary_address,sims_parent_mother_city:e.kyc_data[0].sims_parent_mother_city,sims_parent_mother_state:e.kyc_data[0].sims_parent_mother_state,sims_parent_mother_country_code:e.kyc_data[0].sims_parent_mother_country_code,sims_parent_mother_phone:e.kyc_data[0].sims_parent_mother_phone,sims_parent_mother_mobile:e.kyc_data[0].sims_parent_mother_mobile,sims_parent_mother_email:e.kyc_data[0].sims_parent_mother_email,sims_parent_mother_fax:e.kyc_data[0].sims_parent_mother_fax,sims_parent_mother_po_box:e.kyc_data[0].sims_parent_mother_po_box,sims_parent_mother_occupation:e.kyc_data[0].sims_parent_mother_occupation,sims_parent_mother_occupation_local_language:e.kyc_data[0].sims_parent_mother_occupation_local_language,sims_parent_mother_company:e.kyc_data[0].sims_parent_mother_company,sims_parent_mother_passport_number:e.kyc_data[0].sims_parent_mother_passport_number,sims_parent_mother_passport_issue_date:e.kyc_data[0].sims_parent_mother_passport_issue_date,sims_parent_mother_passport_expiry_date:e.kyc_data[0].sims_parent_mother_passport_expiry_date,sims_parent_mother_national_id:e.kyc_data[0].sims_parent_mother_national_id,sims_parent_mother_national_id_issue_date:e.kyc_data[0].sims_parent_mother_national_id_issue_date,sims_parent_mother_national_id_expiry_date:e.kyc_data[0].sims_parent_mother_national_id_expiry_date,sims_parent_mother_qualification:e.kyc_data[0].sims_parent_mother_qualification,sims_parent_mother_passing_year:e.kyc_data[0].sims_parent_mother_passing_year,sims_parent_mother_profession_code:e.kyc_data[0].sims_parent_mother_profession_code,sims_parent_mother_specialization_code:e.kyc_data[0].sims_parent_mother_specialization_code,sims_parent_mother_profession_value:e.kyc_data[0].sims_parent_mother_profession_value,sims_parent_mother_company_address:e.kyc_data[0].sims_parent_mother_company_address,sims_parent_mother_company_joining_year:e.kyc_data[0].sims_parent_mother_company_joining_year,sims_parent_mother_isalumni:e.kyc_data[0].sims_parent_mother_isalumni},(e.kyc_data.length=0)&&swal({title:"Alert",text:"No Survey Defined",width:300,height:200})}),r.get(i.apiUrl+"api/dashboard/get_Kyc_Sibling?opr=D&pid="+a.globals.currentUser.username+"&acad_year="+a.globals.currentStudent.sims_acad_yr).then(function(t){e.sibling_data=t.data,e.All_Student_Details=e.sibling_data,console.log(e.All_Student_Details)}),e.getSpecialization_F=function(){r.get(i.apiUrl+"api/dashboard/getSpecialization_F?sims_father_profession="+e.data.sims_parent_father_profession_code).then(function(t){e.specialization_dataF=t.data}),console.log(specialization_data)},e.getSpecialization_M=function(){r.get(i.apiUrl+"api/dashboard/getSpecialization_M?sims_mother_profession="+e.data.sims_parent_mother_profession_code).then(function(t){e.specialization_dataM=t.data}),console.log(specialization_data)},e.Submit=function(t){if(console.log("Saving Data"),console.log("Enroll Num",a.globals.currentStudent.sims_student_enroll_number),t){var s={sims_kyc_student_id:a.globals.currentStudent.sims_student_enroll_number,sims_kyc_transaction_no:a.globals.currentStudent.sims_student_enroll_number,sims_student_visa_number:t.sims_student_visa_number,sims_student_visa_issue_date:t.sims_student_visa_issue_date,sims_student_visa_expiry_date:t.sims_student_visa_expiry_date,sims_student_national_id_issue_date:t.sims_student_national_id_issue_date,sims_student_national_id_expiry_date:t.sims_student_national_id_expiry_date,sims_student_primary_contact_pref:t.sims_student_primary_contact_pref,sims_student_legal_custody:t.sims_student_legal_custody,sims_student_emergency_contact_name1:t.sims_student_emergency_contact_name1,sims_student_emergency_contact_name2:t.sims_student_emergency_contact_name2,sims_student_emergency_contact_number1:t.sims_student_emergency_contact_number1,sims_student_emergency_contact_number2:t.sims_student_emergency_contact_number2,sims_student_passport_number:t.sims_student_passport_number,sims_student_passport_issue_date:t.sims_student_passport_issue_date,sims_student_passport_expiry_date:t.sims_student_passport_expiry_date,sims_student_passport_issuing_authority:t.sims_student_passport_issuing_authority,sims_student_passport_issue_place:t.sims_student_passport_issue_place,student_status:t.status=!1};r.post(i.apiUrl+"api/dashboard/student_kyc_tranaction?opr=B&student_details="+JSON.stringify(s)).then(function(a){e.transaction_student=a.data,1==e.transaction_student?(t.status=!0,swal({title:"Alert",text:"KYC Updated Successfully",imageUrl:"assets/img/check.png"})):swal({title:"Alert",text:"Record Not Updated",imageUrl:"assets/img/notification-alert.png"})}),console.log(t)}},e.Submit_P=function(t){if(console.log("Saving Data"),console.log("Enroll Num",a.globals.currentStudent.sims_student_enroll_number),t){document.getElementById("parent_submit").disabled=!0;var s={sims_kyc_parent_id:a.globals.currentUser.username,sims_kyc_transaction_no:a.globals.currentUser.username,sims_parent_father_salutation_code:e.data.sims_parent_father_salutation_code,sims_parent_father_nationality2_code:e.data.sims_parent_father_nationality2_code,sims_parent_father_appartment_number:e.data.sims_parent_father_appartment_number,sims_parent_father_building_number:e.data.sims_parent_father_building_number,sims_parent_father_street_number:e.data.sims_parent_father_street_number,sims_parent_father_area_number:e.data.sims_parent_father_area_number,sims_parent_father_summary_address:e.data.sims_parent_father_summary_address,sims_parent_father_summary_address_local_language:e.data.sims_parent_father_summary_address_local_language,sims_parent_father_city:e.data.sims_parent_father_city,sims_parent_father_state:e.data.sims_parent_father_state,sims_parent_father_country_code:e.data.sims_parent_father_country_code,sims_parent_father_phone:e.data.sims_parent_father_phone,sims_parent_father_mobile:e.data.sims_parent_father_mobile,sims_parent_father_email:e.data.sims_parent_father_email,sims_parent_father_fax:e.data.sims_parent_father_fax,sims_parent_father_po_box:e.data.sims_parent_father_po_box,sims_parent_father_occupation:e.data.sims_parent_father_occupation,sims_parent_father_occupation_local_language:e.data.sims_parent_father_occupation_local_language,sims_parent_father_company:e.data.sims_parent_father_company,sims_parent_father_passport_number:e.data.sims_parent_father_passport_number,sims_parent_father_passport_issue_date:e.data.sims_parent_father_passport_issue_date,sims_parent_father_passport_expiry_date:e.data.sims_parent_father_passport_expiry_date,sims_parent_father_national_id:e.data.sims_parent_father_national_id,sims_parent_father_national_id_issue_date:e.data.sims_parent_father_national_id_issue_date,sims_parent_father_national_id__expiry_date:e.data.sims_parent_father_national_id__expiry_date,sims_parent_father_qualification:e.data.sims_parent_father_qualification,sims_parent_father_passing_year:e.data.sims_parent_father_passing_year,sims_parent_father_profession_code:e.data.sims_parent_father_profession_code,sims_parent_father_specialization_code:e.data.sims_parent_father_specialization_code,sims_parent_father_profession_value:e.data.sims_parent_father_profession_value,sims_parent_father_company_address:e.data.sims_parent_father_company_address,sims_parent_father_company_joining_year:e.data.sims_parent_father_company_joining_year,sims_parent_father_isalumni:e.data.sims_parent_father_isalumni,sims_parent_mother_salutation_code:e.data.sims_parent_mother_salutation_code,sims_parent_mother_family_name:e.data.sims_parent_mother_salutation_code,sims_parent_mother_nationality2_code:e.data.sims_parent_mother_nationality2_code,sims_parent_mother_appartment_number:e.data.sims_parent_mother_appartment_number,sims_parent_mother_building_number:e.data.sims_parent_mother_building_number,sims_parent_mother_street_number:e.data.sims_parent_mother_street_number,sims_parent_mother_area_number:e.data.sims_parent_mother_area_number,sims_parent_mother_last_name:e.data.sims_parent_mother_salutation_code,sims_parent_mother_summary_address:e.data.sims_parent_mother_summary_address,sims_parent_mother_city:e.data.sims_parent_mother_city,sims_parent_mother_state:e.data.sims_parent_mother_state,sims_parent_mother_country_code:e.data.sims_parent_mother_country_code,sims_parent_mother_phone:e.data.sims_parent_mother_phone,sims_parent_mother_mobile:e.data.sims_parent_mother_mobile,sims_parent_mother_email:e.data.sims_parent_mother_email,sims_parent_mother_fax:e.data.sims_parent_mother_fax,sims_parent_mother_po_box:e.data.sims_parent_mother_po_box,sims_parent_mother_occupation:e.data.sims_parent_mother_occupation,sims_parent_mother_occupation_local_language:e.data.sims_parent_mother_occupation_local_language,sims_parent_mother_company:e.data.sims_parent_mother_company,sims_parent_mother_passport_number:e.data.sims_parent_mother_passport_number,sims_parent_mother_passport_issue_date:e.data.sims_parent_mother_passport_issue_date,sims_parent_mother_passport_expiry_date:e.data.sims_parent_mother_passport_expiry_date,sims_parent_mother_national_id:e.data.sims_parent_mother_national_id,sims_parent_mother_national_id_issue_date:e.data.sims_parent_mother_national_id_issue_date,sims_parent_mother_national_id_expiry_date:e.data.sims_parent_mother_national_id_expiry_date,sims_parent_mother_qualification:e.data.sims_parent_mother_qualification,sims_parent_mother_passing_year:e.data.sims_parent_mother_passing_year,sims_parent_mother_profession_code:e.data.sims_parent_mother_profession_code,sims_parent_mother_specialization_code:e.data.sims_parent_mother_specialization_code,sims_parent_mother_profession_value:e.data.sims_parent_mother_profession_value,sims_parent_mother_company_address:e.data.sims_parent_mother_company_address,sims_parent_mother_company_joining_year:e.data.sims_parent_mother_company_joining_year,sims_parent_mother_isalumni:e.data.sims_parent_mother_isalumni};r.post(i.apiUrl+"api/dashboard/parent_kyc_tranaction?opr=C&parent_details="+JSON.stringify(s)).then(function(t){e.transaction_parent=t.data,1==e.transaction_parent?swal({title:"Alert",text:"KYC Updated Successfully",imageUrl:"assets/img/check.png"}):swal({title:"Alert",text:"Record Not Updated",imageUrl:"assets/img/notification-alert.png"})}),console.log(data)}}}])}(),function(){"use strict";angular.module("sims.module.student").controller("StudentControllerId",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(e,t,a,s,o,n,r,i){$(".preloader").fadeIn(),e.display=!1,e.btnEdit=!0,e.btnCancel=!1,e.btnSave=!1,e.btnEdit1=!0,e.btnCancel1=!1,e.btnSave1=!1,e.btnEdit2=!0,e.btnCancel2=!1,e.btnSave2=!1,e.btnEdit3=!0,e.btnCancel3=!1,e.btnSave3=!1,e.btnEdit4=!0,e.btnCancel4=!1,e.btnSave4=!1,e.qrcodeString="",e.size=200,e.correctionLevel="",e.typeNumber=0,e.inputMode="",e.image=!0,e.otherDetailsReadonly=!0,e.otherDetailshow=!1,e.Passportshow=!1,e.PassportReadonly=!0,e.Nationalshow=!1,e.NationalReadonly=!0,e.Departmentshow=!1,e.DepartmentReadonly=!0,e.filteredTodos=[],e.abqis=!1,e.infodatayes=!1,e.infodatano=!1,e.radiobtn=!1;window.localStorage.UploadUrl;n.get(r.apiUrl+"api/dashboard/getDashboardData").then(function(t){if(t.data.length>0){e.portal_data=t.data,console.log(e.portal_data);for(var a=0;e.portal_data.length>a;a++){if("StudentImgUpload"==e.portal_data[a].sims_field_name&&"N"==e.portal_data[a].sims_field_iseditable){$("#stimg").css({"pointer-events":"none"});break}$("#stimg").css({"pointer-events":""})}}}),e.div_hide=!1,e.show=!0,e.hide=!1,e.obj=[],e.obj2=[],e.obj3=[],e.obj4=[];n.defaults.headers.common.schoolId.toLowerCase();e.getstudentList=function(){e.studentName=a.globals.currentStudent.sims_student_passport_fullname,e.enroll_number=a.globals.currentStudent.sims_student_enroll_number,e.grade=a.globals.currentStudent.sims_grade_name_en,e.section=a.globals.currentStudent.sims_section_name_en,e.class=e.grade+"-"+e.section,e.url=a.globals.currentSchool.lic_website_url,console.log(a.globals.currentStudent.sims_student_img),e.studImg=a.globals.currentStudent.sims_student_img,e.sims_parent_father_phone=e.obj.sims_parent_father_phone,e.sims_academic_year_description=a.globals.currentStudent.sims_academic_year_description,e.schoolCode=n.defaults.headers.common.schoolId,e.apiurlpath=r.apiUrl,n.get(r.apiUrl+"api/student/getStudentInfo?student_enroll="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.obj=t.data,console.log(e.obj),e.div_hide=!0,e.getimg(),e.getdata(),e.student_data(),window.localStorage.StudentInfo=JSON.stringify(e.obj)},function(t){0==t.status&&(e.obj=JSON.parse(window.localStorage.StudentInfo),e.getimg())}),e.student_data=function(){n.get(r.apiUrl+"api/student/getStudentInfo?student_enroll="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.obj=t.data})},n.get(r.apiUrl+"api/student/getidcarddetails?enrollno="+a.globals.currentStudent.enroll_number).then(function(t){e.mainlead1=t.data,e.totalItems=e.mainlead1.length,0==e.mainlead1.length?e.tablehide=!1:e.tablehide=!0}),e.transportsch=!0,e.transportt=!0,n.get(r.apiUrl+"api/student/getTransportRoute?student_enroll="+a.globals.currentStudent.enroll_number+"&sims_acad_yr="+a.globals.currentStudent.sims_acad_yr).then(function(t){e.transpp=[],e.display=!0,e.transpp=t.data,0==e.transpp.length||"I"==e.transpp[0].status_code?(e.transportt=!1,e.transportsch=!0):(e.transportt=!0,e.transportsch=!1,e.edt.sims_transport_route_short_name=e.transpp[0].sims_transport_route_short_name,e.transpp.status_code=e.transpp[0].status_code)}),n.get(r.apiUrl+"api/parent/getParentDetailm?parentCode="+a.globals.currentUser.username).then(function(t){e.display=!0,e.objrt=t.data})},e.clcik_check=function(){"1"==e.edt.sims_id_acknowlegde_flag?e.main_edt1=!0:e.main_edt1=!1},e.clcik_1=function(){"1"==e.edt.student_id_wrong?e.main_edt=!0:e.main_edt=!1},e.declationcheck=function(t){t?e.disable_btn=!1:(e.disable_btn=!0,swal({title:"",text:"Please indicate that you have read and agreed to the terms to proceed with the order."}))},e.savedata=function(){if(void 0!==e.latitudedata&&""!==e.latitudedata&&void 0!==e.longitudedata&&""!==e.longitudedata)if(void 0===e.edt.student_id_wrong){if("1"==e.edt.exit_student_status)return void swal("Please check the consent box to proceed with the submission.");if("0"==e.edt.exit_student_status)return void swal({title:" ",text:"1.Please visit the 'Parent Profile' application or 'Request for transport registration' application.\n\n2.Please check the consent box to proceed with the submission.",icon:"warning",button:"OK"})}else swal({title:"",text:"Confirm Submission of form ?",type:"warning",showCancelButton:!0,confirmButtonColor:"#0aa699",confirmButtonText:"Yes",cancelButtonText:"No",closeOnConfirm:!1,closeOnCancel:!1},function(t){t?e.save():swal("Please verify and reconfirm the information")});else swal("Please enter the Latitude & Longitude coordinates")},e.save=function(){if(1==e.edt.sims_id_acknowlegde_flag||1==e.edt.student_id_wrong)var t={sims_cur_code:a.globals.currentStudent.sims_cur_code,enroll_number:a.globals.currentStudent.sims_student_enroll_number,sims_id_acknowlegde_flag:e.edt.sims_id_acknowlegde_flag,sims_student_id_remaks:e.edt.sims_student_id_remaks,sims_acad_yr:a.globals.currentStudent.sims_acad_yr,latitudedata:e.latitudedata,longitudedata:e.longitudedata};n.post(r.apiUrl+"api/student/CUDstudentdata",t).then(function(t){if(e.msg1=t.data,1==e.msg1){swal({title:"Alert",text:"Successfully Submitted",width:450,height:200}),e.getdata()}else swal({title:"Alert",text:"Please Confirm the details",width:450,height:200})})},e.getdata=function(){n.get(r.apiUrl+"api/student/getidcarddetails?enrollno="+a.globals.currentStudent.enroll_number).then(function(t){e.mainlead1=[],e.mainlead1=t.data,e.totalItems=e.mainlead1.length,"S"==e.mainlead1[0].sims_id_status?(e.disbled=!0,e.radiobtn=!0):(e.disbled=!1,e.radiobtn=!1),"Y"==e.mainlead1[0].sims_id_acknowlegde_flag?e.edt.exit_student_status="1":e.edt.exit_student_status="0",e.mainlead1.length,e.tablehide=!1})},n.get(r.apiUrl+"api/parent/getParentDetail?parentCode="+a.globals.currentUser.username).then(function(t){e.display=!0,e.objrt=t.data}),e.updateAboutMe=function(){a.globals.currentStudent.enroll_number;var t={sims_student_birth_country_code:e.obj.sims_student_birth_country_code,sims_student_nationality_code:e.obj.sims_nationality_code,sims_student_gender:e.obj.sims_appl_parameter_gender,sims_student_dob:e.obj.sims_student_dob,sims_student_enroll_number:a.globals.currentStudent.enroll_number,sims_religion_code:e.obj.sims_religion_code};n.post(r.apiUrl+"api/student/updateStudentDetails?opr=AM&student_details="+JSON.stringify(t)).then(function(t){e.abt=t.data,e.abt?(e.getstudentList(),swal({title:"Updated",text:"Update Successfully",imageUrl:"assets/img/check.png"})):(e.getstudentList(),swal({title:"Alert",text:"Record Not Updated",imageUrl:"assets/img/notification-alert.png"}))})},n.get(r.apiUrl+"api/common/getDataParameter?sims_appl_code=Common&sims_appl_form_field=qrcodeString").then(function(t){e.qrdata=t.data,console.log(e.qrdata),e.qrdata.length>0&&"Y"==e.qrdata[0].sims_appl_form_field_value4?e.qrcodeString=e.qrdata[0].sims_appl_form_field_value1:e.qrcodeString="Roll Number -"+a.globals.currentStudent.sims_student_enroll_number}),e.getimg=function(){if(e.prev_img="",e.uploading_path="",!angular.isUndefined(a.pp_url_lst)&&a.pp_url_lst.length>0)for(var t=0;t<a.pp_url_lst.length;t++)if("Student"==a.pp_url_lst[t].sims_appl_parameter){e.prev_img=a.pp_url_lst[t].sims_appl_form_field_value1+a.pp_url_lst[t].sims_appl_form_field_value2+"/"+a.globals.currentStudent.sims_student_img,e.uploading_path=a.pp_url_lst[t].sims_appl_form_field_value2;break}""==e.prev_img&&(e.prev_img=e.obj1.lic_website_url+"/Images/StudentImages/"+a.globals.currentStudent.sims_student_img),""!=e.uploading_path?e.uploading_path=e.uploading_path.replace("Images/","")+"/":e.uploading_path="StudentImages/"},$(document).on("touch click",'*[data-datepicker="true"] .add-on',function(e){$('input[type="text"]',$(this).parent()).focus()}),a.globals.studentsLoaded&&e.getstudentList(),e.$on("student_change",function(){e.getstudentList()}),e.radiobutton=function(t){"1"==t&&(e.edt.sims_id_acknowlegde_flag=!0,e.infodatayes=!0,e.infodatano=!1,e.disbled=!1,e.pleasevisit=!1),"0"==t&&(e.pleasevisit=!0,e.edt.sims_id_acknowlegde_flag=!1,e.infodatayes=!1,e.infodatano=!0,e.disbled=!0)},e.edt=[],"parent"===t.params.student_status&&(e.pleasevisit=!1,e.disbled=!1,e.infodatano=!0,e.edt.exit_student_status=0),e.redirectparent=function(){return e.disbled=!1,t.go("main.PP019",{app_code:"stdidc"}),!0},e.redirecttransport=function(){return e.disbled=!1,t.go("main.traihs",{app_code:"stdidc"}),!0},e.redirectvideo=function(){return["mstagingdso","iisonlinedso","portaldso"].includes(n.defaults.headers.common.schoolId)?(window.open("https://apiihs.schoolappsuae.com/mograSISAPI/Content/iisonlinedso/Docs/portalReference/Latitude%20and%20Longitude%20Finder%20Help.mp4","_new"),!0):["ihsonlineom","mstagingom","portalom"].includes(n.defaults.headers.common.schoolId)?(window.open("https://apiihs.schoolappsuae.com/mograSISAPI/Content/ihsonlineom/Docs/portalReference/Latitude%20and%20Longitude%20Finder%20Help.mp4","_new"),!0):["mstagingag","ihsonlineag","portalag"].includes(n.defaults.headers.common.schoolId)?(window.open("https://apiihs.schoolappsuae.com/mograSISAPI/Content/ihsonlineag/Docs/portalReference/Latitude%20and%20Longitude%20Finder%20Help.mp4","_new"),!0):void window.open("https://apiihs.schoolappsuae.com/mograSISAPI/Content/iisonlinedso/Docs/portalReference/Latitude%20and%20Longitude%20Finder%20Help.mp4","_new")};const l=document.getElementById("demo");function d(t){l.innerHTML="<b>Latitude:</b> "+t.coords.latitude+"<br><b>Longitude:</b> "+t.coords.longitude,e.latitudedata=t.coords.latitude,e.longitudedata=t.coords.longitude}e.getLocation=function(){navigator.geolocation?navigator.geolocation.getCurrentPosition(d):l.innerHTML="Geolocation is not supported by this browser."},e.getLocation()}])}(),function(){"use strict";angular.module("sims.module.student").controller("StudentidcardController",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(e,t,a,s,o,n,r){var i,l;e.grid=!1,e.grid1=!1,e.grid2=!1,e.grid3=!1,e.show=!1,e.gridnew=!0,e.studentName=a.globals.currentStudent.sims_student_passport_fullname,console.log("Reportcard"),e.flg_report=!0;var d=window.location.href,m=d.substring(0,d.indexOf(":"));if("ihsonlineom"==n.defaults.headers.common.schoolId||"mstagingom"==n.defaults.headers.common.schoolId||"ihsonlineag"==n.defaults.headers.common.schoolId||"mstagingag"==n.defaults.headers.common.schoolId||"iisonlinedso"==n.defaults.headers.common.schoolId||"mstagingdso"==n.defaults.headers.common.schoolId||"portalag"==n.defaults.headers.common.schoolId||"portalom"==n.defaults.headers.common.schoolId||"portaldso"==n.defaults.headers.common.schoolId)if(i="SimsReports.Sims.SIMR20FORihs_2022,SimsReports",l={cur_code:a.globals.currentStudent.sims_cur_code,acad_year:a.globals.currentStudent.sims_acad_yr,grade:a.globals.currentStudent.sims_grade_code,section:a.globals.currentStudent.sims_section_code,search:a.globals.currentStudent.enroll_number},"https"==m)var _="https://"+n.defaults.headers.common.schoolId.toLowerCase()+".ihsdubai.org/report/api/reports/";else _="https://"+n.defaults.headers.common.schoolId.toLowerCase()+".ihsdubai.org/report/api/reports/";else{i="SimsReports.Sims.SIMR20RAKAAG_2021,SimsReports",l={cur_code:a.globals.currentStudent.sims_cur_code,acad_year:a.globals.currentStudent.sims_acad_yr,grade_code:a.globals.currentStudent.sims_grade_code,section_code:a.globals.currentStudent.sims_section_code,search:a.globals.currentStudent.enroll_number};_=r.newReportUrl+n.defaults.headers.common.schoolId+"/api/reports/"}$("#reportViewer1").telerik_ReportViewer({serviceUrl:_,viewMode:telerikReportViewer.ViewModes.INTERACTIVE,scaleMode:telerikReportViewer.ScaleModes.SPECIFIC,scale:1,ready:function(){}}),$("#reportViewer1").data("telerik_ReportViewer").reportSource({report:i,parameters:l}),setTimeout(function(){var e=$("#reportViewer1").data("telerik_ReportViewer");e.commands.togglePrintPreview.exec(),e.ShowExportGroup=!1},1e3),e.reportShow=!0,e.rowshow=!1,setInterval(function(){$(".trv-nav li").css({display:"block"}),$(".trv-nav li:nth-child(3)").css({display:"none"}),$(".trv-nav li:nth-child(4)").css({display:"none"}),$(".trv-side-menu li:eq(3)").css({display:"none"}),$(".trv-side-menu li:eq(4)").css({display:"none"}),$(".trv-report-viewer input[type=number]").css({"min-height":"0px","margin-top":"-5px"})},1e3),s(function(){$(".trv-nav li").css({display:"block"}),$(".trv-nav li:nth-child(3)").css({display:"none"}),$(".trv-nav li:nth-child(4)").css({display:"none"}),$(".trv-side-menu li:eq(3)").css({display:"none"}),$(".trv-side-menu li:eq(4)").css({display:"none"}),$(".trv-report-viewer input[type=number]").css({"min-height":"0px","margin-top":"-5px"})},100)}])}(),function(){"use strict";angular.module("sims.module.transport",["sims","gettext"])}(),function(){"use strict";angular.module("sims.module.transport").controller("TransportController",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(e,t,a,s,o,n,r){e.display=!1,e.readonly=!1,e.y=!0,e.n=!1,e.savedata=!0,e.showMessage=!1,e.saveDisable=!1,e.obj1=[],n.get(r.apiUrl+"api/common/getTransportFlag").then(function(t){t.data.length>0&&("N"==t.data[0].sims_appl_form_field_value2?e.saveDisable=!0:e.saveDisable=!1)}),e.getAcademicyear=function(){n.post(r.apiUrl+"api/transport/TransportInstruction",{opr:"AC"}).then(function(t){if(e.academics=t.data.table,!jQuery.isEmptyObject(e.academics))for(let t=0;e.academics.length>t;t++)e.academics[t].sims_academic_year==a.globals.currentStudent.sims_acad_yr&&(e.start_academicyear=e.academics[t].sims_academic_year_start_date,e.end_academicyear=e.academics[t].sims_academic_year_end_date,e.setAcademicDatetoDatepicker())})},e.setAcademicDatetoDatepicker=function(){$("#effective_from_date").kendoDatePicker({value:"",format:"dd-MM-yyyy",defaultOption:null,min:new Date(e.start_academicyear),max:new Date(e.end_academicyear),month:{empty:'<span class="k-state-disabled">#= data.value #</span>'}}),$("#effective_upto_date").kendoDatePicker({value:"",format:"dd-MM-yyyy",defaultOption:null,min:new Date(e.start_academicyear),max:new Date(e.end_academicyear),month:{empty:'<span class="k-state-disabled">#= data.value #</span>'}})},"brs"==n.defaults.headers.common.schoolId?(e.brspies=!0,e.transportcode="1"):"pies"==n.defaults.headers.common.schoolId?(e.brspies=!0,e.transportcode="6"):e.brspies=!1,"asis"!=n.defaults.headers.common.schoolId&&"abqis"!=n.defaults.headers.common.schoolId||(e.saveDisable=!0),e.routeChange=function(t){n.get(r.apiUrl+"api/transport/GetAllStudRouteDirection?route_code="+t+"&academic_year=2016").then(function(t){e.RouteDirection=t.data}),n.get(r.apiUrl+"api/transport/GetAllStudRouteStop?route_code="+t+"&academic_year=2016").then(function(t){e.RouteStop=t.data})},e.editstud=function(t){e.obj={},e.savedata=!1,e.readonly=!1,e.y=!1,e.n=!0,e.obj=t,e.routeChange(e.obj.sims_transport_route_code),e.obj.sims_transport_route_direction=t.sims_transport_route_direction},e.trackClick=function(e){window.open(e,"_new")},e.getTransportDetails=function(t){e.studentName=a.globals.currentStudent.sims_student_passport_fullname,e.weburl=a.globals.currentSchool.lic_website_url,e.trackUrl="http://www.mysafetravel.net/l.php?s="+e.transportcode+"&e="+a.globals.currentStudent.enroll_number,n.get(r.apiUrl+"api/transport/GetAllStudRouteCode").then(function(t){e.Route=t.data}),n.get(r.apiUrl+"api/transport/getTransportDetailsNew?enroll_number="+a.globals.currentStudent.enroll_number).then(function(t){e.objold=t.data,e.objold?e.show_no_record=!1:e.show_no_record=!0}),n.get(r.apiUrl+"api/transport/getTransportDetails?enroll_number="+a.globals.currentStudent.enroll_number).then(function(t){e.obj1=t.data;for(let a=0;a<t.data.length;a++)"P"==e.obj1[a].sims_transport_route_student_status&&(e.saveDisable=!0)})},n.get(r.apiUrl+"api/common/getAllComboBoxValues?academicYear=2015&routeCode=01").then(function(t){e.display=!0,e.obj2=t.data}),n.get(r.apiUrl+"api/transport/getBusCode").then(function(t){e.BusCode_Data=t.data}),e.getroutebybuscode=function(){n.get(r.apiUrl+"api/transport/getRouteNameByBusCode?AcaYear="+e.obj.sims_transport_academic_year+"&Vehicle_Code="+e.obj.sims_transport_bus_no).then(function(t){e.RouteNameByBusCode_Data=t.data})},e.getStopbyRoute=function(t,a){n.get(r.apiUrl+"api/transport/getDirectionByRouteCodeName?route_code="+e.obj.sims_transport_route_code+"&aca_year="+e.obj.sims_transport_academic_year).then(function(t){e.DirectionName=t.data}),n.get(r.apiUrl+"api/transport/getStopByRoute?route_code="+e.obj.sims_transport_route_code+"&aca_year="+e.obj.sims_transport_academic_year).then(function(t){e.StopByRoute_Data=t.data})},e.getAcademic=function(e){},e.edit=function(){e.readonly=!1,e.y=!1,e.n=!0,e.savedata=!0,1==e.savedata&&(e.obj={sims_transport_enroll_number:a.globals.currentStudent.enroll_number})},e.cancel=function(){e.readonly=!0,e.y=!0,e.n=!1,e.showMessage=!1},e.close=function(){e.showMessage=!1,e.message=""},e.save=function(){let t={sims_transport_drop_stop_code:e.obj.sims_transport_drop_stop_code,sims_transport_share_location:e.sims_transport_share_location,sims_transport_route_student_code:e.obj.sims_transport_route_student_code,sims_transport_enroll_number:e.obj.sims_transport_enroll_number,sims_transport_academic_year:e.obj.sims_transport_academic_year,sims_transport_route_code:e.obj.sims_transport_route_code,sims_transport_route_direction:e.obj.sims_transport_route_direction,sims_transport_effective_from:e.obj.sims_transport_effective_from,sims_transport_effective_upto:e.obj.sims_transport_effective_upto,sims_transport_pickup_stop_code:e.obj.sims_transport_pickup_stop_code};if(e.savedata)e.obj.sims_transport_route_student_request_by=a.globals.currentUser.username,n.post(r.apiUrl+"api/transport/InsertSims_transport_route_student?obj="+JSON.stringify(t)).then(function(t){e.othr=t.data,t.data?(e.fb_subject=null,e.fb_msg=null,e.showMessage=!0,e.messageClass="alert-success",e.message="Record Inserted Sucessfully!!!",n.get(r.apiUrl+"api/transport/getTransportDetails?enroll_number="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.obj1=t.data,e.routeChange(e.obj.sims_transport_route_code)})):(e.showMessage=!0,e.messageClass="alert-error",e.message="Record Not Inserted!!!")});else{e.obj.sims_sibling_parent_number=a.globals.currentUser.username;e.obj.sims_transport_drop_stop_code,e.sims_transport_share_location,e.obj.sims_transport_route_student_code,e.obj.sims_transport_enroll_number,e.obj.sims_transport_academic_year,e.obj.sims_transport_route_code,e.obj.sims_transport_route_direction,e.obj.sims_transport_effective_from,e.obj.sims_transport_effective_upto,e.obj.sims_transport_pickup_stop_code;n.post(r.apiUrl+"api/transport/UpdateSims_transport_route_student?obj="+JSON.stringify(e.obj1)).then(function(t){e.othr=t.data,t.data?(e.fb_subject=null,e.fb_msg=null,e.showMessage=!0,e.messageClass="alert-success",e.message="Record Updated Sucessfully!!!",n.get(r.apiUrl+"api/transport/getTransportDetails?enroll_number="+a.globals.currentStudent.enroll_number).then(function(t){e.display=!0,e.obj1=t.data,e.routeChange(e.obj.sims_transport_route_code)})):(e.showMessage=!0,e.messageClass="alert-error",e.message="Record Not Updated!!!")})}e.obj={sims_transport_academic_year:"",sims_transport_bus_no:"",sims_transport_route_direction:"",sims_transport_effective_from:"",sims_transport_effective_upto:"",sims_transport_pickup_stop_code:"",sims_transport_drop_stop_code:""}},e.$on("student_change",function(t,a){e.getTransportDetails()}),$('*[data-datepicker="true"] input[type="text"]').datepicker({todayBtn:!0,orientation:"top left",autoclose:!0,todayHighlight:!0}),$(document).on("touch click",'*[data-datepicker="true"] .add-on',function(e){$('input[type="text"]',$(this).parent()).focus()}),a.globals.studentsLoaded&&e.getTransportDetails();let i,l,d,m,_,c,u=document.getElementById("latitude"),p=document.getElementById("longitude");function h(t){u.value=t.coords.latitude,p.value=t.coords.longitude,function(){m=document.getElementById("latitude").value,_=document.getElementById("longitude").value;let t=function(e,t){let a=new XMLHttpRequest;"withCredentials"in a?a.open(e,t,!0):"undefined"!=typeof XDomainRequest?(a=new XDomainRequest).open(e,t):a=null;return a}("POST","http://maps.googleapis.com/maps/api/geocode/json?latlng="+m+","+_+"&sensor=true");t.onload=function(){let a=JSON.parse(t.responseText);if(a.results.length>0){let t=a.results[0].formatted_address,s=t.split(",");c=s.length,i=s[c-1],m=s[c-2],l=s[c-3],d=s[c-4];let o=s[c-5],n=m.split(" "),r=n[n.length-1],m=m.replace(r," ");e.sims_transport_share_location=o+", "+d+", "+l+", "+m+", "+i+", "+r+"."}else document.getElementById("message").innerHTML="No location available for provided details."},t.send()}()}navigator.geolocation&&navigator.geolocation.getCurrentPosition(h),e.obj=null}])}(),function(){"use strict";angular.module("sims.module.transport").controller("TransportRequestCont",["$scope","$state","$rootScope","$timeout","gettextCatalog","$http","ENV",function(e,t,a,s,o,n,r){e.display=!1,e.readonly=!1,e.y=!0,e.n=!1,e.savedata=!0,e.showMessage=!1,e.saveDisable=!1,e.disable_btn=!0,e.applytransport=!1,e.transporttable=!1,e.firstPage=!0,e.obj1=[],e.changdisable_btn=!1,e.canceltransport=!1,e.savebtn=!0,e.feedetail=!0,e.showdata=!0,e.canceldata=!0,e.temp={};n.post(r.apiUrl+"api/transport/TransportInstruction",{opr:"DE"}).then(function(t){e.transportTermUrl=t.data.table,e.termscondition=e.transportTermUrl[0].termUrl}),n.get(r.apiUrl+"api/common/getTransportFlag").then(function(t){t.data.length>0&&("N"==t.data[0].sims_appl_form_field_value2?e.saveDisable=!0:e.saveDisable=!1)});var i={opr:"IN"};n.post(r.apiUrl+"api/transport/TransportInstruction",i).then(function(t){e.instructions=t.data.table});i={opr:"TD"};n.post(r.apiUrl+"api/transport/TransportInstruction",i).then(function(t){e.decimalcur=t.data.table,e.curdecimal=e.decimalcur[0].decimal}),n.get(r.apiUrl+"api/transport/getBusCode").then(function(t){e.BusCode_Data=t.data}),e.declationcheck=function(t){if(t){var a=new Date;e.undertakingdate=moment(a).format("YYYY-MM-DD HH:MM:SS"),e.disable_btn=!1}else e.undertakingdate="",e.disable_btn=!0,swal({title:"",text:"Please indicate that you have read and agreed to the terms to proceed with the request."})},e.transportcode="6",e.applyTransport=function(){e.getAcademicYear(),e.feedetail=!0,e.temp={};var t={opr:"ED",sims_transport_enroll_number:a.globals.currentStudent.enroll_number};n.post(r.apiUrl+"api/transport/TransportInstruction",t).then(function(t){if(e.applied=t.data.table,e.appliedflag=e.applied[0].alreadyapplied,"true"==e.appliedflag)swal({title:e.applied[0].titlemsg,text:e.applied[0].textmsg,type:"warning",showCancelButton:!0,confirmButtonColor:"#DD6B55",confirmButtonText:"Yes",cancelButtonText:"No",closeOnConfirm:!1,closeOnCancel:!1},function(t){t?(s(function(){e.changebtnClick()},300),swal.close()):swal.close()});else{var a=new Date;e.sims_transport_effective_from=moment(a).format("DD-MM-YYYY"),e.applytransport=!0,e.transporttable=!1,e.firstPage=!1,e.canceltransport=!1,e.savebtn=!0}})},e.check_from_date=function(){var t=$("#effective_from_date").data("kendoDatePicker").value();t.setMonth(t.getMonth()),$("#effective_upto_date").kendoDatePicker({format:"dd-MM-yyyy",min:new Date(t),max:new Date(e.yearEndDate),month:{empty:'<span class="k-state-disabled">#= data.value #</span>'}})},e.hidefeedetails=function(){e.feedetail=!0},e.feedetails=function(){if(void 0!=e.temp.sims_transport_academic_year)if(void 0!=e.temp.sims_transport_route_code){var t=moment(e.sims_transport_effective_from,"DD-MM-YYYY").format("YYYY-MM-DD"),s=moment(e.sims_transport_effective_upto,"DD-MM-YYYY").format("YYYY-MM-DD"),o={opr:"FG",sims_transport_academic_year:e.temp.sims_transport_academic_year,sims_transport_route_code:e.temp.sims_transport_route_code,sims_transport_enroll_number:a.globals.currentStudent.enroll_number,sims_transport_effective_from:t,sims_transort_effective_upto:s};n.post(r.apiUrl+"api/transport/TransportInstruction",o).then(function(t){e.transportfee=t.data.table,e.feedetail=!1})}else swal("Select route name to see fee details");else swal("Select academic year to see fee details")},e.changebtnClick=function(){e.feedetail=!0,e.transporttable=!0,e.applytransport=!1,e.firstPage=!1,e.canceltransport=!1,e.savebtn=!0,e.showdata=!0,e.getAcademicYear()},e.cancelTransport=function(){e.getAcademicYear(),e.canceldata=!0,e.transporttable=!1,e.applytransport=!1,e.firstPage=!1,e.canceltransport=!0,e.feedetail=!0},e.academicChange=function(){for(var t=0;e.academics.length>t;t++)e.academics[t].sims_academic_year===e.temp.sims_transport_academic_year&&(e.sims_transport_effective_upto=moment(e.academics[t].sims_academic_year_end_date).format("DD-MM-YYYY"),e.yearEndDate=new Date(e.academics[t].sims_academic_year_end_date),$("#effective_upto_date").kendoDatePicker({format:"dd-MM-yyyy",max:new Date(e.yearEndDate),month:{empty:'<span class="k-state-disabled">#= data.value #</span>'}}),e.getroutebybuscode())},e.routeChange=function(t){n.get(r.apiUrl+"api/transport/GetAllStudRouteDirection?route_code="+t+"&academic_year=2016").then(function(t){e.RouteDirection=t.data}),n.get(r.apiUrl+"api/transport/GetAllStudRouteStop?route_code="+t+"&academic_year=2016").then(function(t){e.RouteStop=t.data})},e.editstud=function(t){e.getAcademicYear(),e.getroutebybuscode(),e.savedata=!1,e.savebtn=!1,e.temp.sims_transport_academic_year=t.sims_transport_academic_year;for(var a=0;e.RouteNameByBusCode_Data.length>a;a++)if(e.RouteNameByBusCode_Data[a].sims_transport_route_code===t.sims_transport_route_code){e.temp.sims_transport_route_code=e.RouteNameByBusCode_Data[a].sims_transport_route_code;break}e.temp.sims_transport_pickup_stop_code=t.sims_transport_pickup_stop_code,e.temp.sims_transport_academic_year=t.sims_transport_academic_year,e.sims_transport_effective_from=t.sims_transport_effective_from,e.sims_transport_effective_upto=t.sims_transport_effective_upto,e.temp.sims_transport_landmark=t.sims_transport_landmark,e.temp.sims_transport_route_student_code=t.sims_transport_route_student_code,e.applytransport=!0,e.transporttable=!1,e.firstPage=!1,e.canceltransport=!1},e.chaneRouteRequest=function(t){var a={opr:"DD",sims_transport_enroll_number:t.sims_transport_enroll_number};n.post(r.apiUrl+"api/transport/TransportInstruction",a).then(function(a){e.change_Date=moment(moment(e.sysdate[0].systemDate,"DD-MM-YYYY").format("YYYY-MM-DD")).add(1,"M").format("DD-MM-YYYY"),e.changerouteflag=a.data.table,$("#change_effective_from_date").kendoDatePicker({value:new Date,format:"dd-MM-yyyy",min:new Date(moment(e.change_Date,"DD-MM-YYYY").format("YYYY-MM-DD")),month:{empty:'<span class="k-state-disabled">#= data.value #</span>'}}),swal(e.changerouteflag[0].mesg),e.showdata=!1,e.getAcademicYear(),e.savedata=!1,e.temp.sims_transport_route_code=t.sims_transport_route_code,e.temp.sims_transport_pickup_stop_code=t.sims_transport_pickup_stop_code,e.temp.sims_transport_academic_year=t.sims_transport_academic_year,e.sims_transport_effective_from=e.change_Date,e.sims_transport_effective_upto=t.sims_transport_effective_upto,e.temp.sims_transport_landmark=t.sims_transport_landmark,e.temp.sims_transport_route_student_code=t.sims_transport_route_student_code,e.applytransport=!1,e.transporttable=!0,e.firstPage=!1,e.canceltransport=!1})},e.trackClick=function(e){window.open(e,"_new")},e.getTransportDetails=function(t){jQuery.isEmptyObject(a.globals.currentStudent)||(e.studentClass=a.globals.currentStudent.sims_grade_name_en+"("+a.globals.currentStudent.sims_section_name_en+")",e.studentfullName=a.globals.currentStudent.sims_student_passport_fullname_new+"  "+e.studentClass,e.studentEnroll=a.globals.currentStudent.enroll_number),e.studentName=a.globals.currentStudent.sims_student_passport_fullname,e.weburl=a.globals.currentSchool.lic_website_url,e.trackUrl="http://www.mysafetravel.net/l.php?s="+e.transportcode+"&e="+a.globals.currentStudent.enroll_number,n.get(r.apiUrl+"api/transport/GetAllStudRouteCode").then(function(t){e.Route=t.data}),n.get(r.apiUrl+"api/transport/getTransportDetailsNew?enroll_number="+a.globals.currentStudent.enroll_number).then(function(t){e.objold=t.data,e.objold?e.show_no_record=!1:e.show_no_record=!0});var s={opr:"S",sims_transport_enroll_number:a.globals.currentStudent.enroll_number};n.post(r.apiUrl+"api/transport/TransportInstruction",s).then(function(t){e.obj1=t.data.table;for(var a=0;a<e.obj1.length;a++)"P"==e.obj1[a].sims_transport_route_student_status&&(e.saveDisable=!0)})},e.getAcademicYear=function(){n.post(r.apiUrl+"api/transport/TransportInstruction",{opr:"AC"}).then(function(t){e.academics=t.data.table,e.temp.sims_transport_academic_year=e.academics[0].sims_academic_year,e.academicChange(),e.getroutebybuscode()})};i={opr:"RD"};n.post(r.apiUrl+"api/transport/TransportInstruction",i).then(function(t){e.sysdate=t.data.table;var a=moment(e.sysdate[0].systemDate,"DD-MM-YYYY").format("YYYY-MM-DD");$("#effective_from_date").kendoDatePicker({format:"dd-MM-yyyy",min:new Date(a),month:{empty:'<span class="k-state-disabled">#= data.value #</span>'}})}),e.getroutebybuscode=function(){var t={opr:"M",sims_transport_academic_year:e.temp.sims_transport_academic_year};n.post(r.apiUrl+"api/transport/TransportInstruction",t).then(function(t){e.RouteNameByBusCode_Data=t.data.table,e.getStopbyRoute()})},e.getStopbyRoute=function(){n.get(r.apiUrl+"api/transport/getDirectionByRouteCodeName?route_code="+e.temp.sims_transport_route_code+"&aca_year="+e.temp.sims_transport_academic_year).then(function(t){e.DirectionName=t.data}),n.get(r.apiUrl+"api/transport/getStopByRoute?route_code="+e.temp.sims_transport_route_code+"&aca_year="+e.temp.sims_transport_academic_year).then(function(t){e.StopByRoute_Data=t.data})},e.cancel=function(){e.applytransport=!1,e.firstPage=!0,e.canceltransport=!1,e.showMessage=!1,e.transporttable=!1,e.savebtn=!0,e.showdata=!0},e.close=function(){e.showMessage=!1,e.message=""},e.save=function(){e.pendingFlag=!1;for(var t=0;e.obj1.length>t;t++)if("P"==e.obj1[t].sims_transport_route_student_status){e.pendingFlag=!0;break}if(e.pendingFlag)swal({title:"",text:"You already have a pending transport request.You may edit the same.",type:"",showCancelButton:!1,confirmButtonColor:"#DD6B55",confirmButtonText:"Ok",closeOnConfirm:!0},function(e){swal.close()});else{for(var s=0;e.RouteNameByBusCode_Data.length>s;s++)if(e.RouteNameByBusCode_Data[s].sims_transport_route_code===e.temp.sims_transport_route_code){e.routeName=e.RouteNameByBusCode_Data[s].routename,e.routedirection=e.RouteNameByBusCode_Data[s].sims_transport_route_direction;break}var o=moment(e.sims_transport_effective_from,"DD-MM-YYYY").format("YYYY-MM-DD"),i=moment(e.sims_transport_effective_upto,"DD-MM-YYYY").format("YYYY-MM-DD");if(void 0!=e.routeName&&""!=e.routeName)if(void 0!=e.temp.sims_transport_pickup_stop_code&&""!=e.temp.sims_transport_pickup_stop_code){e.datasend=[];var l={opr:"I",sims_transport_share_location:e.sims_transport_share_location,sims_transport_route_student_code:e.temp.sims_transport_route_student_code,sims_transport_enroll_number:a.globals.currentStudent.enroll_number,sims_transport_academic_year:e.temp.sims_transport_academic_year,sims_transport_route_code:e.routeName,sims_transport_route_direction:e.routedirection,sims_transport_effective_from:o,sims_transport_effective_upto:i,sims_transport_pickup_stop_code:e.temp.sims_transport_pickup_stop_code,sims_transport_drop_stop_code:e.temp.sims_transport_pickup_stop_code,sims_transport_landmark:e.temp.sims_transport_landmark,sims_transport_route_student_request_by:a.globals.currentUser.username,sims_transport_route_student_status:"P"};e.datasend.push(l),e.datasend.length>0&&n.post(r.apiUrl+"api/transport/Insert_updateTransportData",e.datasend).then(function(t){e.othr=t.data,t.data?(e.fb_subject=null,e.fb_msg=null,e.showMessage=!0,e.messageClass="alert-success",e.message="School transport request submitted successfully!!",e.getTransportDetails()):(e.showMessage=!0,e.messageClass="alert-error",e.message="Unable to submit transport request!!")})}else swal("Select pick-up/drop stop");else swal("Select route name")}},e.update=function(){for(var t=0;e.RouteNameByBusCode_Data.length>t;t++)if(e.RouteNameByBusCode_Data[t].sims_transport_route_code===e.temp.sims_transport_route_code){e.routeName=e.RouteNameByBusCode_Data[t].routename,e.routedirection=e.RouteNameByBusCode_Data[t].sims_transport_route_direction;break}var s=moment(e.sims_transport_effective_from,"DD-MM-YYYY").format("YYYY-MM-DD"),o=moment(e.sims_transport_effective_upto,"DD-MM-YYYY").format("YYYY-MM-DD");if(void 0!=e.routeName&&""!=e.routeName)if(void 0!=e.temp.sims_transport_pickup_stop_code&&""!=e.temp.sims_transport_pickup_stop_code){e.datasend=[];var i={opr:"UU",sims_transport_route_student_code:e.temp.sims_transport_route_student_code,sims_transport_enroll_number:a.globals.currentStudent.enroll_number,sims_transport_academic_year:e.temp.sims_transport_academic_year,sims_transport_route_code:e.routeName,sims_transport_route_direction:e.routedirection,sims_transport_effective_from:s,sims_transport_effective_upto:o,sims_transport_pickup_stop_code:e.temp.sims_transport_pickup_stop_code,sims_transport_drop_stop_code:e.temp.sims_transport_pickup_stop_code,sims_transport_landmark:e.temp.sims_transport_landmark,sims_transport_route_student_request_by:a.globals.currentUser.username,sims_transport_route_student_status:"P"};e.datasend.push(i),n.post(r.apiUrl+"api/transport/Insert_updateTransportData",e.datasend).then(function(t){e.othr=t.data,t.data?(e.fb_subject=null,e.fb_msg=null,e.showMessage=!0,e.messageClass="alert-success",e.message="Updated Sucessfully",e.getTransportDetails()):(e.showMessage=!0,e.messageClass="alert-error",e.message="Not Updated")})}else swal("Select pick-up/drop stop");else swal("Select route name")},e.applyforcancel=function(t){var a={opr:"CD",sims_transport_enroll_number:t.sims_transport_enroll_number};n.post(r.apiUrl+"api/transport/TransportInstruction",a).then(function(a){e.changerouteflag=a.data.table,e.changerouteflag[0].canceltransport,e.blockCanel=e.changerouteflag[0].cancelblock,swal(e.changerouteflag[0].cancelmesg),"true"==e.blockCanel&&(e.canceldata=!1,e.appliedDate=t.sims_transport_effective_from,e.temp.sims_transport_route_code=t.sims_transport_route_code,e.temp.sims_transport_pickup_stop_code=t.sims_transport_pickup_stop_code,e.temp.sims_transport_academic_year=t.sims_transport_academic_year,e.sims_transport_effective_from=t.sims_transport_effective_from,e.sims_transport_effective_upto=t.sims_transport_effective_upto,e.temp.sims_transport_landmark=t.sims_transport_landmark,e.temp.sims_transport_route_student_code=t.sims_transport_route_student_code)})},e.sendChangeRequest=function(){e.changerequestFlag=!1;for(var t=0;e.obj1.length>t;t++)if("R"==e.obj1[t].sims_transport_route_student_status){e.changerequestFlag=!0;break}if(e.changerequestFlag)swal({title:"",text:"You already have a pending change transport request.",type:"",showCancelButton:!1,confirmButtonColor:"#DD6B55",confirmButtonText:"Ok",closeOnConfirm:!0},function(e){swal.close()});else{for(var s=0;e.RouteNameByBusCode_Data.length>s;s++)if(e.RouteNameByBusCode_Data[s].sims_transport_route_code===e.temp.sims_transport_route_code){e.routeName=e.RouteNameByBusCode_Data[s].routename,e.routedirection=e.RouteNameByBusCode_Data[s].sims_transport_route_direction;break}var o=moment(e.sims_transport_effective_from,"DD-MM-YYYY").format("YYYY-MM-DD"),i=moment(e.sims_transport_effective_upto,"DD-MM-YYYY").format("YYYY-MM-DD");e.datasend=[];var l={opr:"CR",sims_transport_share_location:e.sims_transport_share_location,sims_transport_route_student_code:e.temp.sims_transport_route_student_code,sims_transport_enroll_number:a.globals.currentStudent.enroll_number,sims_transport_academic_year:e.temp.sims_transport_academic_year,sims_transport_route_code:e.routeName,sims_transport_route_direction:e.routedirection,sims_transport_effective_from:o,sims_transport_effective_upto:i,sims_transport_pickup_stop_code:e.temp.sims_transport_pickup_stop_code,sims_transport_drop_stop_code:e.temp.sims_transport_pickup_stop_code,sims_transport_landmark:e.temp.sims_transport_landmark,sims_transport_route_student_request_by:a.globals.currentUser.username,sims_transport_route_student_status:"P"};e.datasend.push(l),e.datasend.length>0&&n.post(r.apiUrl+"api/transport/Insert_updateTransportData",e.datasend).then(function(t){e.othr=t.data,t.data?(e.fb_subject=null,e.fb_msg=null,e.showMessage=!0,e.messageClass="alert-success",e.message="Record Inserted Sucessfully",e.getTransportDetails()):(e.showMessage=!0,e.messageClass="alert-error",e.message="Record Not Inserted")})}},e.cancel_from_date=function(e){},e.cancelTrans=function(){var t=moment(e.sims_transport_cancel_effective_from,"DD-MM-YYYY").format("YYYY-MM-DD");if(void 0!=e.temp.reason_cancellation){e.datasend=[];var s={opr:"CC",sims_transport_route_student_code:e.temp.sims_transport_route_student_code,sims_transport_enroll_number:a.globals.currentStudent.enroll_number,sims_transport_academic_year:e.temp.sims_transport_academic_year,sims_transport_route_code:e.temp.sims_transport_route_code,sims_transport_pickup_stop_code:e.temp.sims_transport_pickup_stop_code,sims_transport_drop_stop_code:e.temp.sims_transport_pickup_stop_code,sims_transport_route_student_status:"C",sims_transport_route_cancel_reason:e.temp.reason_cancellation,sims_transport_effective_from:t};e.datasend.push(s),n.post(r.apiUrl+"api/transport/Insert_updateTransportData",e.datasend).then(function(t){e.othr=t.data,t.data?(e.fb_subject=null,e.fb_msg=null,e.showMessage=!0,e.messageClass="alert-success",e.message="Request sent for cancellation",e.getTransportDetails()):(e.showMessage=!0,e.messageClass="alert-error",e.message="Failed to send request for cancellation")})}else swal("Enter reason for cancellation")},e.printUnderTaking=function(t){var o;if(r.AWS.includes(n.defaults.headers.common.schoolId)&&"reports-","tiadxb"==n.defaults.headers.common.schoolId||"tiashj"==n.defaults.headers.common.schoolId||"staging1"==n.defaults.headers.common.schoolId||"staging2"==n.defaults.headers.common.schoolId||"staging3"==n.defaults.headers.common.schoolId||"staging4"==n.defaults.headers.common.schoolId||"aisdxb"==n.defaults.headers.common.schoolId||"tosdxb"==n.defaults.headers.common.schoolId)var i="https://reports.leamseducation.com/"+n.defaults.headers.common.schoolId.toLowerCase()+"/api/reports/";else if("ihsonlineom"==n.defaults.headers.common.schoolId||"mstagingom"==n.defaults.headers.common.schoolId||"ihsonlineag"==n.defaults.headers.common.schoolId||"mstagingag"==n.defaults.headers.common.schoolId||"iisonlinedso"==n.defaults.headers.common.schoolId||"mstagingdso"==n.defaults.headers.common.schoolId||"portalag"==n.defaults.headers.common.schoolId||"portalom"==n.defaults.headers.common.schoolId||"portaldso"==n.defaults.headers.common.schoolId){"portalom"==n.defaults.headers.common.schoolId.toLowerCase()&&(e.schoolcode="ihsonlineom"),"portaldso"==n.defaults.headers.common.schoolId.toLowerCase()&&(e.schoolcode="iisonlinedso"),"portalag"==n.defaults.headers.common.schoolId.toLowerCase()&&(e.schoolcode="ihsonlineag");i="https://"+e.schoolcode+".ihsdubai.org/report/api/reports/"}else i=r.newReportUrl+n.defaults.headers.common.schoolId+"/api/reports/";o={acad_year:t.sims_transport_academic_year,enroll:a.globals.currentStudent.enroll_number,route_code:t.sims_transport_route_code},$("#reportViewer1").telerik_ReportViewer({serviceUrl:i,viewMode:telerikReportViewer.ViewModes.INTERACTIVE,scaleMode:telerikReportViewer.ScaleModes.SPECIFIC,scale:1,ready:function(){}}),$("#reportViewer1").data("telerik_ReportViewer").reportSource({report:"SimsReports.Fleet.FLER42IHS1,SimsReports",parameters:o}),setTimeout(function(){$("#reportViewer1").data("telerik_ReportViewer").commands.export.exec("pdf")},1e3),setInterval(function(){$(".trv-nav li").css({display:"block"}),$(".trv-nav li:nth-child(3)").css({display:"none"}),$(".trv-nav li:nth-child(4)").css({display:"none"}),$(".trv-side-menu li:eq(3)").css({display:"none"}),$(".trv-side-menu li:eq(4)").css({display:"none"}),$(".trv-report-viewer input[type=number]").css({"min-height":"0px","margin-top":"-5px"})},1e3),s(function(){$(".trv-nav li").css({display:"block"}),$(".trv-nav li:nth-child(3)").css({display:"none"}),$(".trv-nav li:nth-child(4)").css({display:"none"}),$(".trv-side-menu li:eq(3)").css({display:"none"}),$(".trv-side-menu li:eq(4)").css({display:"none"}),$(".trv-report-viewer input[type=number]").css({"min-height":"0px","margin-top":"-5px"})},100)},e.$on("student_change",function(t,a){e.getTransportDetails()}),$('*[data-datepicker="true"] input[type="text"]').datepicker({todayBtn:!0,orientation:"top left",autoclose:!0,todayHighlight:!0}),$(document).on("touch click",'*[data-datepicker="true"] .add-on',function(e){$('input[type="text"]',$(this).parent()).focus()}),a.globals.studentsLoaded&&e.getTransportDetails();var l,d,m,_,c,u,p=document.getElementById("latitude"),h=document.getElementById("longitude");function g(t){p.value=t.coords.latitude,h.value=t.coords.longitude,function(){_=document.getElementById("latitude").value,c=document.getElementById("longitude").value;var t=function(e,t){var a=new XMLHttpRequest;"withCredentials"in a?a.open(e,t,!0):"undefined"!=typeof XDomainRequest?(a=new XDomainRequest).open(e,t):a=null;return a}("POST","http://maps.googleapis.com/maps/api/geocode/json?latlng="+_+","+c+"&sensor=true");t.onload=function(){var a=JSON.parse(t.responseText);if(a.results.length>0){var s=a.results[0].formatted_address,o=s.split(",");u=o.length,l=o[u-1],_=o[u-2],d=o[u-3],m=o[u-4];var n=o[u-5],r=_.split(" "),i=r[r.length-1],_=_.replace(i," ");e.sims_transport_share_location=n+", "+m+", "+d+", "+_+", "+l+", "+i+"."}else document.getElementById("message").innerHTML="No location available for provided details."},t.send()}()}navigator.geolocation&&navigator.geolocation.getCurrentPosition(g),e.obj=null}])}();