{"version":3,"file":"sm.portal.vm.documentList.min.js","names":["jQuery","undefined","sm","window","portal","extend","vm","DocumentListViewModel","self","this","AllTestScoreTemplate","ko","observable","AcceptAndDeclineButton","RequiredDocumentTemplate","AdmissionsAttemptGid","ExpectedEntrancePeriod","DeliveryMethod","AdmissionsType","AdmissionsStage","DisplayName","Program","EntryPoint","SubmittedStatusName","CurrentAdmissionStageHasOffer","StudentHasAcceptedOffer","StudentHasDeniedOffer","AdmissionsRecords","AdmissionsRecordID","ACTScore","observableArray","HighSchoolInformation","CollegeInformation","TranscriptGradeEvaluation","TranscriptGradeEvaluationName","TranscriptGradeEvaluationStatus","SATScore","PraxisScore","PraxisIIScore","TOEFL","GEDScore","GREScore","GMATScore","ApplicationFee","CollegeReleaseForm","Form48C","Immunizations","CodeOfConduct","I94Copy","VisaCopy","PassportCopy","AffidavitofSupport","BankStatement","TuitionForm","VisaCompliance","PermanentResidenceCard","LegalStatus","TransferForm","I20","DS2019","FormI539","FormI540","LetterfromPetitioner","LetterfromSponsor","COSFeePoP","SEVISFeePoP","Recommendations","Resume","Interview","RetentionStatement","TeachingCertificate","UGMajorContentApproval","ProgramPlanningConference","WritingAssessment","Form","GoalsObjectives","ContinuingEdForm","AdmissionsDocuments","observableDictionary","AdmissionsOffer","AdmissionOfferRichText","IsEmptyRichText","AttendanceStatuses","selectDoc","AdmissionsDocs","DocumentFile","DocumentUrl","filename","highSchoolFile","collegeFile","immunizationFile","releaseFile","form48File","conductFile","i94File","visaFile","passportFile","supportFile","bankFile","tuitionFile","complianceFile","residentFile","legalFile","transferFile","i20File","ds2019File","i539File","i540File","petitionFile","sponsorFile","cosFeeFile","sevisFeeFile","recommendationFile","resumeFile","interviewFile","retentionFile","teachingCertFile","ugMajorFile","programPlanFile","writingFile","formFile","goalsFile","edFormFile","admissionsDocFile","IsPaymentProviderEnabled","IsBackgroundProcessing","IsBackgroundProcessingError","PaymentProviderName","PaymentDetails","IsBillingDomicileMappingCorrect","BillingDomicileMessage","IsBillingDomicilePaymentProviderEnabled","BillingDomicilePaymentProviders","PartialPaymentAmount","MinimumAmountForPayments","EnablePartialPayment","SelectedPaymentProviderId","IsPaid","TermsAndCondition","TermsAndConditionLoaded","TemplatesLoaded","AdmissionsAdditionalInformations","ErrorHeader","custom","callCustomization","ErrorMessages","IsError","IsGeneralError","Header","Messages","ShowMessages","ShowCongratulationsID","ShowLabelID","ShowCustomField","AdmissionsProcess","HidePaymentInfoSec","RequiredDocumentsText","utility","getResourceValue","setCustomLocalizeKey","AllAdmissionsRecords","CheckAdmissionDocumentStatus","data","status","isNullOrEmpty","StatusBusinessMeaningName","CheckTranscriptStatus","GetRichTextStatus","value","richTextHTML","parseHTML","length","nodeName","innerText","get","output","LoadModel","container","customData","flag","entity","Payload","Entity","GID","currentLoaded","ID","DocumentName","Status","AdmissionsRequirementGroups","transcriptWithDefaultStatus","SetDefaultStatusTranscript","modifiedData","DataSetupTranscriptGradeEvaluation","modifiedWithRule","AssignRuleTypeMergeSubGroupToCourse","viewModel","items","each","push","RichTextField","ShowFacultyCommunication","SendCommunicationData","SendCommunicationViewModel","TermsConditions","termsModel","TermsConditionsViewModel","GetPaymentProviderName","BiilingDomicileSettings","PaymentProviders","updatedSections","map","section","updatedSection","InformationContent","GetSectionHtml","AdmissionsStageGID","AdmissionsStageConsts_BackgroundProcessingGuid","AdmissionsStageConsts_BackgroundProcessingErrorGuid","PageReady","ui","readyPage","Array","isArray","PlaceholderFieldsDetails","contentSections","split","modifiedSections","forEach","sectionContent","i","placeholderDetail","Name","Value","placeholderPattern","RegExp","test","replace","join","PaymentProviderSelectionPopup","blockUI","bodyContent","result","GenerateHTMLForPaymentMethods","buttonContent","lightBox","unblockUI","on","is","changeConfirmButtonEnable","click","selectedPaymentProvider","selectedPaymentProviderName","attr","selectedPaymentProviderId","removeLightbox","hasClass","removeAttr","rec","AdmissionsRequirementSubGroup","subRec","key","StatusDictionary","hasOwnProperty","Courses","course","ValuesAssignmentToRules","Tests","grptest","ValuesAssignmentToTestRules","consolidateSubGroups","subGrpCourse","subGrpTest","RuleTypeDisplayName","RuleTypeBusinessMeaningName","formatString","MinPassingScore","MaxPassingScore","TestField","testField","StartDate","EndDate","subGroup","subGroupWithParent","filter","sg","ParentSubGroupGID","sgp","sgpCourses","SubGroupName","subGroupTestWithParent","sgt","sgpTests","tests","sgwpt","sgwpTests","sgwp","sgwpCourses","LoadInitialData","url","_baseApiUri","AdmissionsAttemptGID","page","documentChecklist","doGet","Accept","admission","event","AcceptOrDeclineAdmissions","CanStudentAcceptOffer","computed","Completed","ShouldTermsConditionsBeDisplayed","HasAnyTestScores","Decline","adHocDocumentBtnClick","msgSubject","currentTarget","id","newMsg","ToAddress","FromAddress","ContextID","PersonID","CurrentUserID","_currentPersonId","Html","Subject","SendMessage","accept","ExtractATO","ajax","type","dataType","JSON","stringify","contentType","headers","processData","crossDomain","xhrFields","withCredentials","success","proxy","textStatus","jqXHR","smapi","access","ApiContainerModel","ValidationTitle","ValidationMessages","HandleError","error","exception","title","body","responseJSON","Message","ClearUploadDocumentInit","attemptGID","fileElement","element","uploadArea","closest","uploadBox","find","fileThumb","removeClass","addClass","loadingIndicator","ClearUploadArea","target","documentID","model","TranscriptDocumentID","formData","FormData","val","successIndicator","errorThrown","messages","accepted","mapping","toJS","termsData","AdmissionsAccepted","TermsData"],"sources":["assets/js/viewmodels/admissions/sm.portal.vm.documentList.js"],"mappings":"CACA,SAAWA,EAAQC,GACf,IAAIC,EAAKC,OAAOD,GAAKC,OAAOD,IAAM,CAAC,OAIV,IAAdA,EAAGE,QACVJ,EAAOK,OAAOH,EAAI,CAAEE,OAAQ,CAAC,SAEL,IAAjBF,EAAGE,OAAOE,IACjBN,EAAOK,OAAOH,EAAGE,OAAQ,CAAEE,GAAI,CAAC,IAq3BpCN,EAAOK,QAAO,EAAMH,EAAGE,OAAOE,GAAI,CAC9BC,sBAn3BJ,WA+1BI,OA51BAC,KAAOC,KAGPA,KAAKC,qBAAuBC,GAAGC,WAAW,IAC1C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AKwI,cAAc0O,GAEnBzX,EAAGE,OAAOyJ,QAAQO,cAAc6L,GAChC9J,UAAUrD,YAAY5I,EAAGE,OAAOyJ,QAAQC,iBAAiB,oBAEzDqC,UAAUrD,YAAYmN,EAE9B,EAEAxV,KAAKqM,uBAAyB,WAC1B,GAAIX,UAAUvE,yBAA0B,CACpC,IAAI8K,EAAMC,YAAczS,EAAGE,OAAOyJ,QAAQqH,aAAa,kDACvDlR,EAAO0U,KAAK,CACRhC,IAAKA,EACLiC,KAAM,MACNC,SAAU,OACVG,YAAa,kCACbC,QAAS,CACL,gBAAiB,KAErBC,aAAa,EACbC,aAAa,EACbC,UAAW,CACPC,iBAAiB,GAErBC,QAAS,SAAUnL,GACfiC,UAAUpE,oBAAoBmC,EAClC,EACA6L,MAAO,SAAUC,GACb7J,UAAU2J,YAAYE,EAC1B,GAER,CACJ,EAGAvV,KAAKgU,WAAa,SAAUmD,GACLjX,GAAGkX,QAAQC,KAAKrX,MAAnC,IAEIsX,EAAY,KAWhB,OAVK7X,EAAGE,OAAOyJ,QAAQO,cAAc5J,KAAKkI,uBACtCqP,EAAYvX,KAAKkI,oBAAoB+L,cAGvB,CACd1T,qBAAsBP,KAAKO,uBAC3BiX,mBAAoBJ,EACpBK,UAAWtX,GAAGmX,KAAKC,GAI3B,EAEOvX,IACX,GAsBH,CAl4BD,CAk4BGR","ignoreList":[],"sourcesContent":["\r\n(function (jQuery, undefined) {\r\n var sm = window.sm = window.sm || {};\r\n var windowProxy;\r\n var actionQueue = [];\r\n\r\n if (typeof sm.portal === \"undefined\") {\r\n jQuery.extend(sm, { portal: {} });\r\n }\r\n if (typeof sm.portal.vm === \"undefined\") {\r\n jQuery.extend(sm.portal, { vm: {} });\r\n }\r\n\r\n function DocumentListViewModel() {\r\n\r\n // Self-Identification\r\n self = this;\r\n\r\n // Checklist Form Values\r\n this.AllTestScoreTemplate = ko.observable('');\r\n this.AcceptAndDeclineButton = ko.observable('');\r\n this.RequiredDocumentTemplate = ko.observable('');\r\n this.AdmissionsAttemptGid = ko.observable();\r\n this.ExpectedEntrancePeriod = ko.observable();\r\n this.DeliveryMethod = ko.observable();\r\n this.AdmissionsType = ko.observable();\r\n this.AdmissionsStage = ko.observable();\r\n this.DisplayName = ko.observable();\r\n this.Program = ko.observable();\r\n this.EntryPoint = ko.observable();\r\n this.SubmittedStatusName = ko.observable();\r\n\r\n this.CurrentAdmissionStageHasOffer = ko.observable(false);\r\n this.StudentHasAcceptedOffer = ko.observable(false);\r\n this.StudentHasDeniedOffer = ko.observable(false);\r\n\r\n this.AdmissionsRecords = ko.observable();\r\n this.AdmissionsRecordID = ko.observable();\r\n this.ACTScore = ko.observableArray();\r\n this.HighSchoolInformation = ko.observableArray();\r\n this.CollegeInformation = ko.observableArray();\r\n this.TranscriptGradeEvaluation = ko.observableArray();\r\n this.TranscriptGradeEvaluationName = ko.observable();\r\n this.TranscriptGradeEvaluationStatus = ko.observable();\r\n this.SATScore = ko.observableArray();\r\n this.PraxisScore = ko.observableArray();\r\n this.PraxisIIScore = ko.observableArray();\r\n this.TOEFL = ko.observableArray();\r\n this.GEDScore = ko.observableArray();\r\n this.GREScore = ko.observableArray();\r\n this.GMATScore = ko.observableArray();\r\n this.ApplicationFee = ko.observableArray();\r\n this.CollegeReleaseForm = ko.observableArray();\r\n this.Form48C = ko.observableArray();\r\n this.Immunizations = ko.observableArray();\r\n this.CodeOfConduct = ko.observableArray();\r\n this.I94Copy = ko.observableArray();\r\n this.VisaCopy = ko.observableArray();\r\n this.PassportCopy = ko.observableArray();\r\n this.AffidavitofSupport = ko.observableArray();\r\n this.BankStatement = ko.observableArray();\r\n this.TuitionForm = ko.observableArray();\r\n this.VisaCompliance = ko.observableArray();\r\n this.PermanentResidenceCard = ko.observableArray();\r\n this.LegalStatus = ko.observableArray();\r\n this.TransferForm = ko.observableArray();\r\n this.I20 = ko.observableArray();\r\n this.DS2019 = ko.observableArray();\r\n this.FormI539 = ko.observableArray();\r\n this.FormI540 = ko.observableArray();\r\n this.LetterfromPetitioner = ko.observableArray();\r\n this.LetterfromSponsor = ko.observableArray();\r\n this.COSFeePoP = ko.observableArray();\r\n this.SEVISFeePoP = ko.observableArray();\r\n this.Recommendations = ko.observableArray();\r\n this.Resume = ko.observableArray();\r\n this.Interview = ko.observableArray();\r\n this.RetentionStatement = ko.observableArray();\r\n this.TeachingCertificate = ko.observableArray();\r\n this.UGMajorContentApproval = ko.observableArray();\r\n this.ProgramPlanningConference = ko.observableArray();\r\n this.WritingAssessment = ko.observableArray();\r\n this.Form = ko.observableArray();\r\n this.GoalsObjectives = ko.observableArray();\r\n this.ContinuingEdForm = ko.observableArray();\r\n this.AdmissionsDocuments = ko.observableDictionary();\r\n this.AdmissionsOffer = ko.observableDictionary();\r\n this.AdmissionOfferRichText = ko.observable('');\r\n this.IsEmptyRichText = ko.observable(true);\r\n\r\n this.AttendanceStatuses = ko.observableArray([]);\r\n this.selectDoc = ko.observable();\r\n this.AdmissionsDocs = ko.observableArray([]);\r\n\r\n this.DocumentFile = ko.observable();\r\n this.DocumentUrl = ko.observable();\r\n this.filename = ko.observable(\"\");\r\n this.highSchoolFile = ko.observable();\r\n this.collegeFile = ko.observable();\r\n this.immunizationFile = ko.observable();\r\n this.releaseFile = ko.observable();\r\n this.form48File = ko.observable();\r\n this.conductFile = ko.observable();\r\n this.i94File = ko.observable();\r\n this.visaFile = ko.observable();\r\n this.passportFile = ko.observable();\r\n this.supportFile = ko.observable();\r\n this.bankFile = ko.observable();\r\n this.tuitionFile = ko.observable();\r\n this.complianceFile = ko.observable();\r\n this.residentFile = ko.observable();\r\n this.legalFile = ko.observable();\r\n this.transferFile = ko.observable();\r\n this.i20File = ko.observable();\r\n this.ds2019File = ko.observable();\r\n this.i539File = ko.observable();\r\n this.i540File = ko.observable();\r\n this.petitionFile = ko.observable();\r\n this.sponsorFile = ko.observable();\r\n this.cosFeeFile = ko.observable();\r\n this.sevisFeeFile = ko.observable();\r\n this.recommendationFile = ko.observable();\r\n this.resumeFile = ko.observable();\r\n this.interviewFile = ko.observable();\r\n this.retentionFile = ko.observable();\r\n this.teachingCertFile = ko.observable();\r\n this.ugMajorFile = ko.observable();\r\n this.programPlanFile = ko.observable();\r\n this.writingFile = ko.observable();\r\n this.formFile = ko.observable();\r\n this.goalsFile = ko.observable();\r\n this.edFormFile = ko.observable();\r\n this.admissionsDocFile = ko.observable();\r\n this.IsPaymentProviderEnabled = ko.observable(false);\r\n this.IsBackgroundProcessing = ko.observable(false);\r\n this.IsBackgroundProcessingError = ko.observable(false);\r\n this.PaymentProviderName = ko.observable();\r\n this.PaymentDetails = ko.observable();\r\n //Domicile related observables\r\n this.IsBillingDomicileMappingCorrect = ko.observable(false);\r\n this.BillingDomicileMessage = ko.observable(\"\");\r\n this.IsBillingDomicilePaymentProviderEnabled = ko.observable(false);\r\n this.BillingDomicilePaymentProviders = ko.observableArray();\r\n this.PartialPaymentAmount = ko.observable();\r\n this.MinimumAmountForPayments = ko.observable();\r\n this.EnablePartialPayment = ko.observable();\r\n this.SelectedPaymentProviderId = ko.observable();\r\n\r\n this.IsPaid = ko.observable(false);\r\n this.TermsAndCondition = ko.observable();\r\n this.TermsAndConditionLoaded = ko.observable(false);\r\n this.TemplatesLoaded = ko.observable(false);\r\n this.AdmissionsAdditionalInformations = ko.observableArray();\r\n\r\n // Error Handling\r\n this.ErrorHeader = ko.observable();\r\n sm.portal.vm.custom.callCustomization('CustomizedErrorHeader',self);\r\n this.ErrorMessages = ko.observableArray();\r\n this.IsError = ko.observable();\r\n this.IsGeneralError = ko.observable();\r\n\r\n // Information Messages Handling\r\n this.Header = ko.observable();\r\n this.Messages = ko.observableArray();\r\n this.ShowMessages = ko.observable(false);\r\n \r\n this.ShowCongratulationsID = ko.observable('');\r\n this.ShowLabelID = ko.observable('');\r\n this.ShowCustomField = ko.observable(false);\r\n this.AdmissionsProcess = ko.observable('');\r\n this.HidePaymentInfoSec = ko.observable(true); \r\n this.RequiredDocumentsText = ko.observable(sm.portal.utility.getResourceValue('RequiredDocuments'));\r\n\r\n sm.portal.vm.custom.setCustomLocalizeKey(self);\r\n\r\n this.AllAdmissionsRecords = ko.observableArray();\r\n this.CheckAdmissionDocumentStatus = function (data) {\r\n var status = sm.portal.vm.custom.callCustomization('CheckDocumentStatus', data);\r\n if (sm.portal.utility.isNullOrEmpty(status)) {\r\n if (data.StatusBusinessMeaningName == 'ApplicationProcessStepStatus.Complete') {\r\n status = true;\r\n }\r\n else\r\n status = false;\r\n }\r\n\r\n return status;\r\n }\r\n\r\n this.CheckTranscriptStatus = function(status) {\r\n if (status == 'Complete') {\r\n return true;\r\n }\r\n else {\r\n return false;\r\n }\r\n }\r\n\r\n this.GetRichTextStatus = function(value){\r\n var richTextHTML = jQuery.parseHTML(value);\r\n if (richTextHTML && richTextHTML.length < 2 && richTextHTML[0] && richTextHTML[0].nodeName == 'P' && !richTextHTML[0].innerText){\r\n self.IsEmptyRichText(true);\r\n }else{\r\n self.IsEmptyRichText(false);\r\n }\r\n }\r\n\r\n sm.portal.utility.get('api/portalstudentledger/MinimumAmountForPayments', function (output) {\r\n self.MinimumAmountForPayments(output);\r\n });\r\n\r\n sm.portal.utility.get('api/portalstudentledger/EnablePartialPayment', function (output) {\r\n self.EnablePartialPayment(output); \r\n });\r\n\r\n // Handlers\r\n this.LoadModel = function (container) {\r\n\r\n\r\n var customData = {\r\n self: self,\r\n container: container\r\n }\r\n var flag = sm.portal.vm.custom.callCustomization('DocumentListLoadModelCustom',customData);\r\n if(!sm.portal.utility.isNullOrEmpty(flag)){\r\n return;\r\n }\r\n\r\n // Set the main Entity\r\n var entity = container.Payload.Entity;\r\n\r\n if (entity) {\r\n this.AdmissionsAttemptGid = ko.observable(entity.GID);\r\n }\r\n\r\n this.ExpectedEntrancePeriod(container.Payload.ExpectedEntrancePeriod);\r\n this.DeliveryMethod(container.Payload.DeliveryMethod);\r\n this.AdmissionsType(container.Payload.AdmissionsType);\r\n this.AdmissionsStage(container.Payload.AdmissionsStage);\r\n this.AdmissionsRecords(container.Payload.AdmissionsRecords);\r\n this.SubmittedStatusName(container.Payload.SubmittedStatusName);\r\n\r\n this.CurrentAdmissionStageHasOffer(container.Payload.CurrentAdmissionStageHasOffer);\r\n this.StudentHasAcceptedOffer(container.Payload.StudentHasAcceptedOffer);\r\n this.StudentHasDeniedOffer(container.Payload.StudentHasDeniedOffer);\r\n\r\n if (currentLoaded == 0 && !sm.portal.utility.isNullOrEmpty(this.AdmissionsRecords())) {\r\n currentLoaded = this.AdmissionsRecords()[0].ID;\r\n }\r\n\r\n if (container.Payload.ACTScore)\r\n this.ACTScore(container.Payload.ACTScore);\r\n if (container.Payload.HighSchoolInformation)\r\n this.HighSchoolInformation(container.Payload.HighSchoolInformation);\r\n if (container.Payload.CollegeInformation)\r\n this.CollegeInformation(container.Payload.CollegeInformation);\r\n if (container.Payload.TranscriptGradeEvaluation) {\r\n this.TranscriptGradeEvaluationName(container.Payload.TranscriptGradeEvaluation.DocumentName);\r\n this.TranscriptGradeEvaluationStatus(container.Payload.TranscriptGradeEvaluation.Status);\r\n if (container.Payload.TranscriptGradeEvaluation.AdmissionsRequirementGroups) {\r\n const transcriptWithDefaultStatus = this.SetDefaultStatusTranscript(container.Payload.TranscriptGradeEvaluation);\r\n const modifiedData = this.DataSetupTranscriptGradeEvaluation(transcriptWithDefaultStatus);\r\n const modifiedWithRule = this.AssignRuleTypeMergeSubGroupToCourse(modifiedData);\r\n this.TranscriptGradeEvaluation(modifiedWithRule.AdmissionsRequirementGroups);\r\n }\r\n }\r\n if (container.Payload.SATScore)\r\n this.SATScore(container.Payload.SATScore);\r\n if (container.Payload.PraxisScore)\r\n this.PraxisScore(container.Payload.PraxisScore);\r\n if (container.Payload.PraxisIIScore)\r\n this.PraxisIIScore(container.Payload.PraxisIIScore);\r\n if (container.Payload.TOEFL)\r\n this.TOEFL(container.Payload.TOEFL);\r\n if (container.Payload.GEDScore)\r\n this.GEDScore(container.Payload.GEDScore);\r\n if (container.Payload.GREScore)\r\n this.GREScore(container.Payload.GREScore);\r\n if (container.Payload.GMATScore)\r\n this.GMATScore(container.Payload.GMATScore);\r\n if (container.Payload.ApplicationFee)\r\n this.ApplicationFee(container.Payload.ApplicationFee);\r\n if (container.Payload.Immunizations)\r\n this.Immunizations(container.Payload.Immunizations);\r\n if (container.Payload.I94Copy)\r\n this.I94Copy(container.Payload.I94Copy);\r\n if (container.Payload.CollegeReleaseForm)\r\n this.CollegeReleaseForm(container.Payload.CollegeReleaseForm);\r\n if (container.Payload.Form48C)\r\n this.Form48C(container.Payload.Form48C);\r\n if (container.Payload.CodeOfConduct)\r\n this.CodeOfConduct(container.Payload.CodeOfConduct);\r\n if (container.Payload.VisaCopy)\r\n this.VisaCopy(container.Payload.VisaCopy);\r\n if (container.Payload.PassportCopy)\r\n this.PassportCopy(container.Payload.PassportCopy);\r\n if (container.Payload.AffidavitofSupport)\r\n this.AffidavitofSupport(container.Payload.AffidavitofSupport);\r\n if (container.Payload.BankStatement)\r\n this.BankStatement(container.Payload.BankStatement);\r\n if (container.Payload.TuitionForm)\r\n this.TuitionForm(container.Payload.TuitionForm);\r\n if (container.Payload.VisaCompliance)\r\n this.VisaCompliance(container.Payload.VisaCompliance);\r\n if (container.Payload.PermanentResidenceCard)\r\n this.PermanentResidenceCard(container.Payload.PermanentResidenceCard);\r\n if (container.Payload.LegalStatus)\r\n this.LegalStatus(container.Payload.LegalStatus);\r\n if (container.Payload.TransferForm)\r\n this.TransferForm(container.Payload.TransferForm);\r\n if (container.Payload.I20)\r\n this.I20(container.Payload.I20);\r\n if (container.Payload.DS2019)\r\n this.DS2019(container.Payload.DS2019);\r\n if (container.Payload.FormI539)\r\n this.FormI539(container.Payload.FormI539);\r\n if (container.Payload.FormI540)\r\n this.FormI540(container.Payload.FormI540);\r\n if (container.Payload.LetterfromPetitioner)\r\n this.LetterfromPetitioner(container.Payload.LetterfromPetitioner);\r\n if (container.Payload.LetterfromSponsor)\r\n this.LetterfromSponsor(container.Payload.LetterfromSponsor);\r\n if (container.Payload.COSFeePoP)\r\n this.COSFeePoP(container.Payload.COSFeePoP);\r\n if (container.Payload.SEVISFeePoP)\r\n this.SEVISFeePoP(container.Payload.SEVISFeePoP);\r\n if (container.Payload.Recommendations)\r\n this.Recommendations(container.Payload.Recommendations);\r\n if (container.Payload.Resume)\r\n this.Resume(container.Payload.Resume);\r\n if (container.Payload.Interview)\r\n this.Interview(container.Payload.Interview);\r\n if (container.Payload.RetentionStatement)\r\n this.RetentionStatement(container.Payload.RetentionStatement);\r\n if (container.Payload.TeachingCertificate)\r\n this.TeachingCertificate(container.Payload.TeachingCertificate);\r\n if (container.Payload.UGMajorContentApproval)\r\n this.UGMajorContentApproval(container.Payload.UGMajorContentApproval);\r\n if (container.Payload.ProgramPlanningConference)\r\n this.ProgramPlanningConference(container.Payload.ProgramPlanningConference);\r\n if (container.Payload.WritingAssessment)\r\n this.WritingAssessment(container.Payload.WritingAssessment);\r\n if (container.Payload.Form)\r\n this.Form(container.Payload.Form);\r\n if (container.Payload.GoalsObjectives)\r\n this.GoalsObjectives(container.Payload.GoalsObjectives);\r\n if (container.Payload.ContinuingEdForm)\r\n this.ContinuingEdForm(container.Payload.ContinuingEdForm);\r\n if (container.Payload.DisplayName)\r\n this.DisplayName(container.Payload.DisplayName);\r\n if (container.Payload.Program)\r\n this.Program(container.Payload.Program);\r\n this.EntryPoint(container.Payload.EntryPoint);\r\n if (container.Payload.AdmissionsDocuments) {\r\n viewModel.AdmissionsDocuments.items([]);\r\n jQuery.each(container.Payload.AdmissionsDocuments, function () {\r\n sm.portal.vm.custom.callCustomization('AdmissionsDocumentsCustom',this[0])\r\n viewModel.AdmissionsDocuments.push(this[0].DocumentName, this);\r\n });\r\n }\r\n if (container.Payload.AdmissionsOffer && container.Payload.AdmissionsOffer.AdmissionsOffer) {\r\n this.GetRichTextStatus(container.Payload.AdmissionsOffer.RichTextField);\r\n if(!self.IsEmptyRichText()){\r\n this.AdmissionOfferRichText(container.Payload.AdmissionsOffer.RichTextField);\r\n }\r\n this.AdmissionsOffer.items([]);\r\n this.AdmissionsOffer.push('Admissions Offer', container.Payload.AdmissionsOffer.AdmissionsOffer);\r\n }\r\n this.ShowFacultyCommunication = ko.observable(false);\r\n this.SendCommunicationData = ko.observable(new sm.portal.vm.SendCommunicationViewModel());\r\n\r\n if (container.Payload.TermsConditions) {\r\n var termsModel = new sm.portal.vm.TermsConditionsViewModel('AfterTerms', container, null);\r\n termsModel.LoadModel(container);\r\n this.TermsAndCondition(termsModel);\r\n this.TermsAndConditionLoaded(true);\r\n };\r\n\r\n if (container.Payload.IsPaymentProviderEnabled !== undefined)\r\n {\r\n this.GetPaymentProviderName();\r\n self.IsPaymentProviderEnabled(container.Payload.IsPaymentProviderEnabled);\r\n }\r\n if (container.Payload.BiilingDomicileSettings !== undefined) {\r\n self.IsBillingDomicileMappingCorrect(container.Payload.BiilingDomicileSettings.IsBillingDomicileMappingCorrect);\r\n self.BillingDomicileMessage(container.Payload.BiilingDomicileSettings.BillingDomicileMessage);\r\n self.IsBillingDomicilePaymentProviderEnabled(container.Payload.BiilingDomicileSettings.IsBillingDomicilePaymentProviderEnabled);\r\n self.BillingDomicilePaymentProviders(container.Payload.BiilingDomicileSettings.PaymentProviders);\r\n }\r\n if (container.Payload.AdmissionsAdditionalInformations)\r\n this.AdmissionsAdditionalInformations(container.Payload.AdmissionsAdditionalInformations);\r\n\r\n let updatedSections = this.AdmissionsAdditionalInformations().map((section) => {\r\n // Create a copy of the current section object to avoid modifying the original directly\r\n let updatedSection = { ...section };\r\n \r\n // Update the InformationContent field with the modified version\r\n updatedSection.InformationContent = this.GetSectionHtml(section);\r\n return updatedSection;\r\n });\r\n\r\n // Update the AdmissionsAdditionalInformations with the modified sections\r\n this.AdmissionsAdditionalInformations(updatedSections);\r\n\r\n this.IsBackgroundProcessing(container.Payload.AdmissionsStageGID === container.Payload.AdmissionsStageConsts_BackgroundProcessingGuid);\r\n this.IsBackgroundProcessingError(container.Payload.AdmissionsStageGID === container.Payload.AdmissionsStageConsts_BackgroundProcessingErrorGuid);\r\n };\r\n\r\n this.PageReady = function () {\r\n sm.portal.ui.readyPage();\r\n };\r\n\r\n self.GetSectionHtml = function (section) {\r\n \r\n if (!section || !section.InformationContent || !Array.isArray(section.PlaceholderFieldsDetails)) {\r\n return \"\"; // Return an empty string or handle it as appropriate\r\n }\r\n\r\n // Split the InformationContent into content sections (defaulting to an empty string if undefined)\r\n let contentSections = (section.InformationContent || \"\").split('\\n\\n');\r\n let modifiedSections = [];\r\n \r\n contentSections.forEach((sectionContent) => {\r\n // Iterate over each placeholder detail in the section\r\n for (let i = 0; i < section.PlaceholderFieldsDetails.length; i++) {\r\n let placeholderDetail = section.PlaceholderFieldsDetails[i];\r\n \r\n if (placeholderDetail.Name != null && placeholderDetail.Value != null) {\r\n let placeholderPattern = new RegExp(`\\\\[\\\\[@PlaceholderFields_\\\\d+\\\\.${placeholderDetail.Name}\\\\]\\\\]`, 'g');\r\n \r\n if (placeholderPattern.test(sectionContent)) {\r\n sectionContent = sectionContent.replace(placeholderPattern, placeholderDetail.Value);\r\n }\r\n }\r\n }\r\n\r\n // After processing, add the updated section content to the result array\r\n modifiedSections.push(sectionContent);\r\n });\r\n \r\n // Join the modified sections back together into the final content, separated by double newlines\r\n let updatedContent = modifiedSections.join('\\n\\n');\r\n return updatedContent;\r\n };\r\n\r\n self.PaymentProviderSelectionPopup = function(){\r\n jQuery.blockUI();\r\n function GenerateHTMLForPaymentMethods(){ \r\n var result = \r\n '
'+ sm.portal.utility.getResourceValue('DomicilePaymentSelectionHeading') +'
';\r\n if(self.BillingDomicilePaymentProviders().length > 0){\r\n for(var i = 0; i < self.BillingDomicilePaymentProviders().length; i++){\r\n result = result + \r\n '