{"version":3,"file":"sm.portal.vm.personinformation.eu.min.js","names":["jQuery","sm","window","portal","extend","vm","eupersoninformation","ExtractATO","personInformation","dateFormat","resources","portalResource","getValue","toUpperCase","dateOfBirth","moment","DateOfBirth","format","smapi","community","PersonModel","SalutationID","GivenName","FirstName","MiddleName","Surname","LastName","PreferredGivenName","PreferredName","GenderID","TaxID","utility","isNullOrEmpty","ID","SuffixID","CRMRankID","LeadTypeID"],"sources":["assets/js/localization/eu/helpers/viewmodels/admissions/sm.portal.vm.personinformation.eu.js"],"mappings":"CAAA,SAAWA,GACP,IAAIC,EAAKC,OAAOD,GAAKC,OAAOD,IAAM,CAAC,OAIV,IAAdA,EAAGE,QACVH,EAAOI,OAAOH,EAAI,CAAEE,OAAQ,CAAC,SAEL,IAAjBF,EAAGE,OAAOE,IACjBL,EAAOI,OAAOH,EAAGE,OAAQ,CAAEE,GAAI,CAAC,SAEY,IAArCJ,EAAGE,OAAOE,GAAGC,qBACpBN,EAAOI,OAAOH,EAAGE,OAAOE,GAAI,CAAEC,oBAAqB,CAAC,IAuBxDN,EAAOI,QAAO,EAAMH,EAAGE,OAAOE,GAAGC,oBAAqB,CAClDC,WArBJ,SAAoBC,GAChB,IAAIC,EAAaR,EAAGS,UAAUC,eAAeC,SAAS,qBAAqBC,cACvEC,EAAcC,OAAOP,EAAkBQ,cAAeP,GAAYQ,OAAO,cAE7E,OAAO,IAAIC,MAAMC,UAAUC,YAAY,CACnCC,aAAcb,EAAkBa,eAChCC,UAAWd,EAAkBe,YAC7BC,WAAYhB,EAAkBgB,aAC9BC,QAASjB,EAAkBkB,WAC3BC,mBAAoBnB,EAAkBoB,gBACtCZ,YAAaF,EACbe,SAAUrB,EAAkBqB,WAC5BC,MAAO7B,EAAGE,OAAO4B,QAAQC,cAAcxB,EAAkBsB,SAAW,KAAOtB,EAAkBsB,QAC7FG,GAAIzB,EAAkByB,KACtBC,UAAW,EACXC,WAAY,EACZC,YAAa,GAErB,GAMH,CAvCD,CAuCGpC","ignoreList":[],"sourcesContent":["(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 if (typeof sm.portal.vm.eupersoninformation === \"undefined\") {\r\n jQuery.extend(sm.portal.vm, { eupersoninformation: {} });\r\n }\r\n\r\n function ExtractATO(personInformation){\r\n var dateFormat = sm.resources.portalResource.getValue('DateFormatExample').toUpperCase();\r\n var dateOfBirth = moment(personInformation.DateOfBirth(), dateFormat).format('YYYY-MM-DD');\r\n\r\n return new smapi.community.PersonModel({\r\n SalutationID: personInformation.SalutationID(),\r\n GivenName: personInformation.FirstName(),\r\n MiddleName: personInformation.MiddleName(),\r\n Surname: personInformation.LastName(),\r\n PreferredGivenName: personInformation.PreferredName(),\r\n DateOfBirth: dateOfBirth,\r\n GenderID: personInformation.GenderID(),\r\n TaxID: sm.portal.utility.isNullOrEmpty(personInformation.TaxID()) ? null : personInformation.TaxID(),\r\n ID: personInformation.ID(),\r\n SuffixID: -1,\r\n CRMRankID: -1,\r\n LeadTypeID: -1\r\n });\r\n }\r\n\r\n jQuery.extend(true, sm.portal.vm.eupersoninformation, {\r\n ExtractATO: ExtractATO\r\n });\r\n\r\n})(jQuery);"]}