var AdvertDetailItemViewModel=kendo.Class.extend({init:function(){},isLoaded:!1,advertId:0,model:{LongPresentation:"",ShortPresentation:"",DisplayPresentation:"",Heading:"",Presentation:"",BulletList:[],ToggleText:"",Responsibility:"",OurOffer:"",RefNr:"",WorkhourPercentage:"",ContractType:"",StartDate:"",ContactInfo:[],OfficeStreet:"",OfficeZip:"",OfficeCity:"",ApplyWithinDate:null,NrPositions:0,DisableBullets:!1,EndDate:null,FreeText:"",IsFreeText:!1,CompanyNameWithTitle:""},load:function(n,t){var i=this,r,u;if(n===this.advertId){t&&t();return}i.advertId=n;r="";u="/api/odvert/"+n;We.get(r,u,function(n){var r,f,e,o,s,u;i.set("model.Heading",n.Heading);n.Presentation&&(r=n.Presentation.replace(/<img[^>]+>(<\/img>)?|<iframe.+?<\/iframe>/g,"<br />"),f=r.split(" "),f.length>20?(e=f.slice(0,19),i.set("model.ShortPresentation",e.join(" ")+"..."),i.set("model.LongPresentation",r),i.set("model.DisplayPresentation",i.model.LongPresentation),i.set("model.ToggleText",We.translate("Click to expand"))):(i.set("model.ShortPresentation",r),i.set("model.LongPresentation",r),i.set("model.DisplayPresentation",r)),i.set("model.Presentation",r));i.set("model.RefNr",n.RefNr);i.set("model.WorkhourPercentage",n.WorkhourPercentage);i.set("model.StartDate",n.StartDate);i.set("model.OfficeStreet",n.OfficeStreet);i.set("model.OfficeZip",n.OfficeZip);i.set("model.OfficeCity",n.OfficeCity);i.set("model.ContactInfo",n.ContactInfo);i.set("model.ContractType",n.ContractType);i.set("model.ApplyWithinDate",n.ApplyWithinDate);i.set("model.NrPositions",n.NrPositions);i.set("model.DisableBullets",n.DisableBullets);i.set("model.EndDate",n.EndDate);i.set("model.CompanyName",n.CompanyName);i.set("model.CompanyNameWithTitle",n.CompanyNameWithTitle);n.FreeText&&(o=n.FreeText.replace(/<img[^>]+>(<\/img>)?|<iframe.+?<\/iframe>/g,"<br />"),i.set("model.FreeText",o));n.Ingress&&(s=n.Ingress.replace(/<img[^>]+>(<\/img>)?|<iframe.+?<\/iframe>/g,"<br />"),i.set("model.Ingress",s));i.set("model.IsFreeText",n.IsFreeText);u=[];n.Responsibility.length>0&&u.push({text:We.translate("Responsibility"),visible:!0,items:$.map(n.Responsibility,function(n){return{text:n}}),toggle:function(){var n=this.get("visible");return this.set("visible",!n),n}});n.WorkTasks.length>0&&u.push({text:We.translate("Work Tasks"),visible:!0,items:$.map(n.WorkTasks,function(n){return{text:n}}),toggle:function(){var n=this.get("visible");return this.set("visible",!n),n}});n.Qualifications.length>0&&u.push({text:We.translate("Qualifications"),visible:!0,items:$.map(n.Qualifications,function(n){return{text:n}}),toggle:function(){var n=this.get("visible");return this.set("visible",!n),n}});n.Personality.length>0&&u.push({text:We.translate("Personal skills"),visible:!0,items:$.map(n.Personality,function(n){return{text:n}}),toggle:function(){var n=this.get("visible");return this.set("visible",!n),n}});n.OurOffer.length>0&&u.push({text:We.translate("Our offer"),visible:!0,items:$.map(n.OurOffer,function(n){return{text:n}}),toggle:function(){var n=this.get("visible");return this.set("visible",!n),n}});i.set("model.BulletList",u);t&&t()})},presentationToggle:function(){this.model.LongPresentation===this.model.DisplayPresentation?(this.set("model.DisplayPresentation",this.model.ShortPresentation),this.set("model.ToggleText",We.translate("Click to expand"))):(this.set("model.DisplayPresentation",this.model.LongPresentation),this.set("model.ToggleText",We.translate("Click to minimize")))},showContactInfo:function(){var n=this.get("model.ContactInfo");return n&&n.length>0},showWorkPlace:function(){var n=this.get("model.OfficeStreet"),t=this.get("model.OfficeZip"),i=this.get("model.OfficeCity");return n||t||i},hasPlaceOrInfo:function(){return this.showContactInfo()||this.showWorkPlace()}}),AttachmentBaseViewModel=kendo.Class.extend({deleteMessageMaster:We.translate("Delete this file from you Master CV?"),deleteMessageApplication:We.translate("Delete this file from your job application?"),deleteMessageOpenApplication:We.translate("Delete this file from your CV?"),deleteMessageTenant:We.translate("Delete this file from all your job applications at this employer"),init:function(n,t){this.currentForm=n;this.backRoute=t},load:function(n,t){var i=this;i.set("attachments",n);t&&t()},cancel:function(){this.attachments.cancelChanges();router.navigate(this.backRoute)},deleteFile:function(n){if(n.preventDefault(),!vm.hasAnyEditableElement()){var t=n.data.get("RecruiterId");this.process===UploadProcessEnum.MASTER_CV?n.data.set("deleteMessage",this.deleteMessageMaster):this.process===UploadProcessEnum.OPEN_SUBSEQUENT_APPLICATION?(n.data.set("editMode",!1),n.data.set("deleteMessage",this.deleteMessageOpenApplication),n.data.set("showConfirmDelete",!0)):this.process===UploadProcessEnum.OPEN_APPLICATION?(n.data.set("IsSelected",!0),n.data.set("editMode",!1),n.data.set("deleteMessage",this.deleteMessageOpenApplication)):this.process===UploadProcessEnum.RESEND_APPLICATION?n.data.set("deleteMessage",this.deleteMessageApplication):t?n.data.set("deleteMessage",this.deleteMessageTenant):n.data.set("deleteMessage",this.deleteMessageApplication);n.data.set("showConfirmDelete",!0)}},doDeleteFile:function(n){n.preventDefault();App.ModelState.clearErrors($("#cv-form"));n.data.set("showConfirmDelete",!1);var t=n.data;this.attachments.remove(t);this.attachments.sync()},cancelDelete:function(n){n.preventDefault();n.data.set("showConfirmDelete",!1)},isOpenApp:function(){return this.process===UploadProcessEnum.OPEN_APPLICATION||this.process===UploadProcessEnum.OPEN_SUBSEQUENT_APPLICATION},doDeselectFile:function(n){n.preventDefault();n.data.set("IsSelected",!1);n.data.set("showConfirmDelete",!1)},edit:function(n){(n.preventDefault(),vm.hasAnyEditableElement())||(console.log("edit"),console.log(n.data),n.data.set("editMode",!0),n.data.set("readOnlyMode",!1))},saveOnEnter:function(n){var t=n.keyCode?n.keyCode:n.which;if(t===13)return n.preventDefault(),updateFileName(n),!1},updateFileName:function(n){if(!n.data.attachmentName)return n.data.set("isFileNameEmpty",!0),!1;n.preventDefault();n.data.set("editMode",!1);n.data.set("readOnlyMode",!0);n.data.set("isFileNameEmpty",!1);n.data.set("FileName",n.data.attachmentName+n.data.extension);var t=this;t.attachments.sync().done(function(){console.log("Sync done");App.ModelState.clearErrors($("#cv-form"));$.each(t.attachments.data(),function(n,t){t.get("isFileNameEmpty")&&(t.set("editMode",!0),t.set("readOnlyMode",!1))})});console.log(n.data)},displayError:function(n){var t=this;App.ModelState.showResponseErrors($(t.currentForm),n.XMLHttpRequest)},clearError:function(){var n=this;App.ModelState.clearErrors($(n.currentForm))},checkClicked:function(){},attachments:kendo.observable(),showEditButton:!0}),AttachmentSchemaModel=kendo.data.Model.define({id:"Id",fields:{Id:{type:"number"},FileName:{type:"string",from:"FileName"},Url:{type:"string",from:"Url"},attachmentName:{type:"string",from:"AttachmentName"},extension:{type:"string",from:"Extension",editable:!1},size:{type:"number",from:"Size"},IsSelected:{type:"boolean",from:"IsSelected"},ShowSelect:{type:"boolean",from:"ShowSelect"},IsVisible:{type:"boolean",from:"IsVisible",defaultValue:!1},editMode:{type:"boolean",from:"EditMode",defaultValue:!1},readOnlyMode:{type:"boolean",from:"ReadOnlyMode",defaultValue:!0},IsReadonlyMode:{type:"boolean",from:"IsReadonlyMode"},showConfirmDelete:{type:"boolean",from:"ShowConfirmDelete",defaultValue:!1}},pdf:function(){return this.get("extension")===".pdf"?!0:!1},img:function(){var n=this.get("extension");return n===".jpg"||n===".png"||n===".gif"||n===".jpeg"||n===".bmp"?!0:!1},doc:function(){var n=this.get("extension");return n===".doc"||n===".docx"?!0:!1},xls:function(){var n=this.get("extension");return n===".xls"||n===".xlsx"?!0:!1},other:function(){return this.pdf()||this.img()||this.doc()||this.xls()?!1:!0},sizeText:function(){var n=this.get("size");return n>=1048576?Math.round(n/1048576*100)/100+" MB":Math.round(n/1024*100)/100+" kB"}}),AttachmentDataSource=function(n,t,i){var r="/api/attachment/",u=r,f=r,e=r;return n&&(u=r+n),t&&(f=r+t),i&&(e=r+i),new kendo.data.DataSource({error:function(n){if(n.xhr.status===401)return location.reload(!0);console.log("Error: "+n.xhr.responseText);App.ModelState.showResponseErrors($("#cv-form"),n.xhr)},transport:{read:{url:u,type:"get",dataType:"json",contentType:"application/json",beforeSend:function(n){n.setRequestHeader("X-Accept-Language",We.getTwoLetterLanguageCode())}},update:{url:f,type:"put",dataType:"json",contentType:"application/json",beforeSend:function(n){n.setRequestHeader("X-Accept-Language",We.getTwoLetterLanguageCode())}},destroy:{url:e,type:"delete",dataType:"json",contentType:"application/json"},create:function(n){n.success()},parameterMap:function(n,t){return t=="update"||t=="create"||t=="destroy"?kendo.stringify(n):n},sort:{field:""}},schema:{model:AttachmentSchemaModel,total:function(n){for(var i=0,t=0;t<n.length;t++)n[t].IsSelected&&i++;return i}}})},ConfirmEmailViewModel=kendo.Class.extend({model:{Email:"",IsConfirmed:!0},sendEmailConfirmationCss:"we-modal we-modal-closed",alertClosed:!1,init:function(){kendo.data.ObservableObject.fn.init.call(this)},load:function(){var n=this;We.get("","/api/account/hasconfirmedemail",function(t){n.set("model",t)})},isAlertVisible:function(){return!this.get("model.IsConfirmed")&&!this.get("model.IsTemporary")&&!this.get("alertClosed")},closeAlert:function(){this.set("alertClosed",!0)},sendEmailConfirmation:function(){this._showSendEmailConfirmation(!0)},sendEmailButtonSpacePress:function(){this.sendEmailConfirmation();$("#sendConfirmEmailButton").focus()},doSendEmailConfirmation:function(){var t=this,i,n;t._showSendEmailConfirmation(!1);i=this.get("model.Email");n={Email:i};console.log(n);We.post(kendo.stringify(n),"/api/account/sendemailconfirmation",undefined,function(){t.set("alertClosed",!0)})},closeSendEmailConfirmation:function(){this._showSendEmailConfirmation(!1)},_showSendEmailConfirmation:function(n){n?this.set("sendEmailConfirmationCss","we-modal we-modal-opened"):this.set("sendEmailConfirmationCss","we-modal we-modal-closed")}}),ElevationDialogViewModel=kendo.Class.extend({init:function(){this.dialogCss="we-modal we-modal-closed";this.tenantId=0;this.email="";this.isDisabled=!1},show:function(n,t,i){this.set("isDisabled",!1);this.set("tenantId",t);this.set("email",i);n?this.set("dialogCss","we-modal we-modal-opened"):this.set("dialogCss","we-modal we-modal-closed")},"continue":function(){this.set("isDisabled",!0);let n=this.get("tenantId"),t=encodeURIComponent(this.get("email")),i=window.location.search,r=encodeURIComponent(window.location.pathname+i+window.location.hash);window.location.href="/account/elevate?tenantId="+n+"&email="+t+"&returnUrl="+r},cancel:function(){this.set("isDisabled",!0);let n=this,t=window.location.pathname;window.history.back();setTimeout(function(){let i=window.location.pathname;t==i&&n.show(!1)},1e3)}}),elevation=kendo.observable(new ElevationDialogViewModel),elevationDialog=new kendo.View("elevate-authorization-dialog",{model:elevation}),ItemDialogViewModel=kendo.Class.extend({init:function(){this.removeConfirmationCss="we-modal we-modal-closed";this.genericErrorConfirmationCss="we-modal we-modal-closed";this.backConfirmationCss="we-modal we-modal-closed";this.removeTranslationConfirmationCss="we-modal we-modal-closed"},_showRemoveConfirmation:function(n){n?this.set("removeConfirmationCss","we-modal we-modal-opened"):this.set("removeConfirmationCss","we-modal we-modal-closed")},_showGenericErrorConfirmation:function(n){n?this.set("genericErrorConfirmationCss","we-modal we-modal-opened"):this.set("genericErrorConfirmationCss","we-modal we-modal-closed")},_showBackConfirmation:function(n){n?this.set("backConfirmationCss","we-modal we-modal-opened"):this.set("backConfirmationCss","we-modal we-modal-closed")},cancelGenericNotification:function(){this._showGenericErrorConfirmation(!1)},cancelNotification:function(){this._showRemoveConfirmation(!1)},cancel:function(){this._showBackConfirmation(!1);currentVm.cancel()},save:function(){var n=this;n._showBackConfirmation(!1);currentVm.save()},currentVm:{},test:function(){console.log("testing dialog vm")}}),LanguageHandlingSchemaModel=kendo.data.Model.extend({init:function(n){kendo.data.Model.fn.init.call(this,n);this.bind("change",this._onChange)},bindLangChangeHandler:function(){var n=this,t=function(t){n._onLangChange(t)};this.Languages.bind("change",t)},_onLangChange:function(n){$.inArray(n.field,this.syncFields)!==-1&&(this.dirty=!0)},_onChange:function(n){if(n&&(kendo.data.Model.fn._notifyChange.call(this,n),n.action==="itemchange"&&n.field==="Languages",n.sender)){var t=n.sender;n.field==="Languages"&&t.Id===0&&n.items&&this._duplicateLanguage(n.items[0],t.Languages)}},_duplicateLanguage:function(n,t){if(this.syncFields){var i=this.syncFields;$.each(t,function(t,r){$.each(i,function(t,i){n[i]!==""&&r[i]===""&&r.set(i,n[i])})})}}}),Wei18n,weLoadingVm,headerVm,cookieVm,bgModel,PreviewCvViewModel,TwoFactorViewModel;LanguageHandlingSchemaModel.define=function(n){return kendo.data.Model.define(LanguageHandlingSchemaModel,n)};weLoadingVm=new kendo.data.ObservableObject({loadingText:We.translate("Loading...")});headerVm=kendo.observable({heading:"",headerText:"",profileName:"",showBurgerTop:!1,isLogedIn:!1,isAllPositionsOpen:!1,toggleAllPositions:function(){this.set("isAllPositionsOpen",!this.isAllPositionsOpen)},setHeader:function(n){headerVm.set("headerText",n?n:headerVm.get("heading"))},openRightMenu:function(){this.set("showBurgerTop",!0);$(".menu-slide").removeClass("menu-hide")},closeRightMenu:function(){this.set("showBurgerTop",!1);$(".menu-slide").addClass("menu-hide")},jobSearchLogin:function(){var n=window.location.pathname+window.location.search+"#search",t=We.addLanguage("/Account/SpaLogin?ReturnUrl="+encodeURIComponent(n));window.location.assign(t)},logout:function(){$("#signOutEverywhereForm").submit()},isGoBackVisible:!1,showBackLink:function(){this.set("isGoBackVisible",!0)},hideBackLink:function(){this.set("isGoBackVisible",!1)},setLogoData:function(n){this.set("url",n.CompanyLogoLibUrl);this.set("companyName",n.CompanyName)},altText:function(){return We.companyMeta.translate("Logo for")+" "+this.get("companyName")}});We.addHeaderMenuDefaults(headerVm);cookieVm=new kendo.data.ObservableObject({hasCookie:!1,isCookieDetailsVisible:!1,isCookieInfoVisible:function(){return!1},closeCookieInfo:function(){var n=new Date,t;n.setTime(n.getTime()+5184e6);t="expires="+n.toUTCString();document.cookie="WeCookie=true; "+t+"; path=/";this.set("hasCookie",!0)},showCookieDetails:function(){this.set("isCookieDetailsVisible",!0)}});We.addTermsFunctions(cookieVm);bgModel=new kendo.data.ObservableObject({selectedPhoto:"",asAdvertId:0,asCompanyId:0,hasAs:!1,moreText:!0,moreTextReg:!0,branchPortalInfo:"",allAdvertsInfoVisible:!0,toggleMoreText:function(){this.set("moreText",!this.get("moreText"))},toggleMoreTextReg:function(){this.set("moreTextReg",!this.get("moreTextReg"))},showAsLink:function(){return this.get("hasAs")===!0&&(this.get("asCompanyId")>0||this.get("asAdvertId")>0)},asLink:function(){var n=this.get("asCompanyId"),t;return n==undefined&&(n=0),t=this.get("asAdvertId"),"/userinfo#asCustomer/"+n+"/"+t}});$(document).ready(function(){kendo.bind(document.body,bgModel);kendo.bind($("#topMenu"),headerVm);kendo.bind($(".menu-header"),headerVm);kendo.bind($(".menu-mobile-top"),headerVm);kendo.bind($("#sub-menu"),headerVm);kendo.bind($("#loadingModal"),weLoadingVm);kendo.bind($("#cookieInfo"),cookieVm);kendo.bind($("#logo"),headerVm);$("link[rel='icon']").attr("href","/favicon.png")});PreviewCvViewModel=kendo.Class.extend({cvSummary:{WorkExperience:[],Education:[],References:[],LanguageSkills:[],OtherExperience:[],Courses:[],Projects:[],Attachments:[],CvAsAttachment:[],PersonalDetails:{OnlineProfiles:[]},ProfileImageUrl:"",NumberOfIncompletedTests:0,HasAnyTests:!1},isMasterCvVisible:!0,tenantId:0,showEditButton:!1,postalAddress:function(){var n="";return this.get("cvSummary.PersonalDetails.ZipCode")&&(n+=this.get("cvSummary.PersonalDetails.ZipCode")),this.get("cvSummary.PersonalDetails.City")&&(n+=" "+this.get("cvSummary.PersonalDetails.City")),$.trim(n)},hasAddressAndPostalAddress:function(){return!!this.get("cvSummary.PersonalDetails.Address")&&!!this.postalAddress()},visibleDateOfBirth:function(){return this.get("cvSummary.PersonalDetails.ShowBirthDate")&&!!this.get("cvSummary.PersonalDetails.BirthDate")},visibleAddressOrCountry:function(){return this.get("cvSummary.PersonalDetails.ShowAddress")||this.get("cvSummary.PersonalDetails.ShowCountry")},visibleCountry:function(){return this.get("cvSummary.PersonalDetails.ShowCountry")&&!!this.get("cvSummary.PersonalDetails.CountryName")},visibleGender:function(){return this.get("cvSummary.PersonalDetails.ShowGender")&&this.get("cvSummary.PersonalDetails.Gender")!==null},visibleWorkingPermit:function(){return this.get("cvSummary.PersonalDetails.ShowWorkingPermit")&&this.get("cvSummary.PersonalDetails.WorkingPermit")!==null},visibleNationalIdNo:function(){return this.get("cvSummary.PersonalDetails.ShowNationalIdNumber")&&!!this.get("cvSummary.PersonalDetails.NationalIdNo")},visibleNationality:function(){return this.get("cvSummary.PersonalDetails.ShowNationality")&&!!this.get("cvSummary.PersonalDetails.Nationality")},isPersonalDetailsError:function(){return!this.get("cvSummary.PersonalDetails.IsValid")},editAttachments:function(){console.log("Not implemented")},selectedLanguage:function(){return We.getLanguageCulture(We.getTwoLetterLanguageCode())},defaultLanguage:function(){return We.getLanguageCulture(this.get("cvSummary.PersonalDetails.DefaultLanguage"))},languageLabel:function(){return this.get("cvSummary.PersonalDetails.DefaultLanguage")?We.translate(this.get("cvSummary.PersonalDetails.DefaultLanguage")):""},showWorkExperience:function(){var n=this.get("cvSummary.WorkExperience.length");return n?!0:!1},isWorkExperienceError:function(){return this.get("cvSummary.HasWorkExperienceError")},isWorkExperienceOk:function(){return!this.isWorkExperienceError()},showEducation:function(){var n=this.get("cvSummary.Education.length");return n?!0:!1},isEducationError:function(){return this.get("cvSummary.HasEducationError")},isEducationOk:function(){return!this.isEducationError()},showOtherExperience:function(){var n=this.get("cvSummary.OtherExperience.length");return n?!0:!1},isOtherExperienceError:function(){return this.get("cvSummary.HasOtherExperienceError")},isOtherExperienceOk:function(){return!this.isOtherExperienceError()},showCourses:function(){var n=this.get("cvSummary.Courses.length");return n?!0:!1},isCoursesError:function(){return this.get("cvSummary.HasCoursesError")},isCoursesOk:function(){return!this.isCoursesError()},showCertificates:function(){var n=this.get("cvSummary.Certificates.length");return n?!0:!1},isCertificatesError:function(){return this.get("cvSummary.HasCertificatesError")},isCertificatesOk:function(){return!this.isCertificatesError()},showReferences:function(){var n=this.get("cvSummary.References.length");return n?!0:!1},isReferencesError:function(){return this.get("cvSummary.HasReferencesError")},isReferencesOk:function(){return!this.isReferencesError()},showNoReferenceInfo:function(){var t=this,n=t.get("cvSummary.References");return n?n.length<1:!0},showLanguages:function(){var n=this.get("cvSummary.LanguageSkills.length");return n?!0:!1},showCvAsAttachment:function(){var n=this.get("cvSummary.CvAsAttachment.length");return n?!0:!1},isLanguagesError:function(){return this.get("cvSummary.HasLanguageSkillsError")},isLanguagesOk:function(){return!this.isLanguagesError()},showProjects:function(){var n=this.get("cvSummary.Projects.length");return n?!0:!1},showCompetences:function(){var n=this.get("cvSummary.Competences.length");return n?!0:!1},showSpecialization:function(){var n=this.get("cvSummary.Specialisations.length");return n?!0:!1},isSpecializationError:function(){return this.get("cvSummary.HasSpecialisationsError")},isSpecializationOk:function(){return!this.isSpecializationError()},showAttachments:function(){var n=this.get("cvSummary.Attachments.length");return n?!0:!1},showNoAttachmentsInfo:function(){var n=this.get("cvSummary.Attachments.length");return n?!1:!0},viewAttachmentPreview:function(){return this.showAttachments()||this.showCvAsAttachment()},showAdditionalInfo:function(){return this.get("cvSummary.PersonalDetails.AdditionalInfo.Languages[0].Comment")},showHealthSectorInfo:function(){return this.get("cvSummary.HealthSectorInfo")},init:function(n){this.backRoute=n},gotoCvOptions:function(n){n.preventDefault();We.scrollDown("preview-options",2e3)},back:function(){router.navigate(this.backRoute)},profileImageUrl:"",profileBackGround:function(){var n=this.get("profileImageUrl");return n?n:"/content/images/noimage.png"},cvElementsExist:function(n){var t=n.Attachments&&n.Attachments.length>0,i=n.WorkExperience&&n.WorkExperience.length>0,r=n.Education&&n.Education.length>0,u=n.Courses&&n.Courses.length>0,f=n.Certificates&&n.Certificates.length>0,e=n.OtherExperience&&n.OtherExperience.length>0,o=n.Competences!==null&&n.Competences!=undefined&&n.Competences.length>0,s=n.HealthSectorInfo!=null,h=n.Projects&&n.Projects.length>0,c=n.References&&n.References.length>0,l=n.Specialisations&&n.length>0,a=n.LanguageSkills&&n.LanguageSkills.length>0;return t||i||r||u||f||e||o||s||h||c||l||a},isReplaceInfoVisible:function(){var n=this.get("cvSummary");return!this.cvElementsExist(n)},hasCvElementsError:function(){return this.cvElementsExist(this.get("cvSummary"))&&this.get("cvSummary.HasCvElementsError")},isMobileDevice:function(){return!!We.isMobile.any()}});TwoFactorViewModel=kendo.Class.extend({init:function(){kendo.data.ObservableObject.fn.init.call(this)},load:function(){this.check2FA()},is2FAClosed:!0,check2FA:function(){var n=this;We.get("","/api/account/twofactorenabled",function(t){n.set("is2FAClosed",t)})},is2FAInfoVisible:function(){var n=We.readCookie("We2FA");return n==="true"?!1:this.get("is2FAClosed")===!0?!1:!0},close2FAInfo:function(){var n=new Date,t;n.setTime(n.getTime()+31536e6);t="expires="+n.toUTCString();document.cookie="We2FA=true; "+t+"; path=/";this.set("is2FAClosed",!0)}})