function IsAdminRole(){var n=JSON.parse(JSON.parse(localStorage.getItem("ngStorage-UserRoleId")));return n==3||n==7||n==18?!0:!1}function IsSuperAdminRole(){var n=JSON.parse(JSON.parse(localStorage.getItem("ngStorage-UserRoleId")));return n==7||n==11?!0:!1}function IsRememberMe(){return JSON.parse(JSON.parse(localStorage.getItem("ngStorage-RememberMe")))}function IsEmptyString(n){return typeof n=="undefined"||n==null||n==!1||n.length==0||n==""||n.replace(/\s/g,"")==""||!/[^\s]/.test(n)||/^\s*$/.test(n)}function CheckExist(n,t){if(n in Authentications){var i=Authentications[n][t];if(i!=undefined)return!0}return!1}function makeIsValidTransitionFunction(n,t){return["$q","$rootScope","$cookies","$state","$location",function(i,r,u,f,e){if(t==RegistrationAdminState){e.path(RegistrationAdminUrl);return}var o=i.defer();return t=="RootState"?r.IsLoggedIn()?e.path(DashboardUrl):e.path(HomeUrl):n&&!r.IsLoggedIn()?e.path(LoginUrl):!n&&r.IsLoggedIn()||(t!="LoginState"||r.IsLoggedIn()?o.resolve():o.resolve()),o.promise}]}function MarkerClusterer(n,t,i){var r,u;this.extend(MarkerClusterer,google.maps.OverlayView);this.map_=n;this.markers_=[];this.clusters_=[];this.sizes=[53,56,66,78,90];this.styles_=[];this.ready_=!1;r=i||{};this.gridSize_=r.gridSize||60;this.minClusterSize_=r.minimumClusterSize||2;this.maxZoom_=r.maxZoom||null;this.styles_=r.styles||[];this.imagePath_=r.imagePath||this.MARKER_CLUSTER_IMAGE_PATH_;this.imageExtension_=r.imageExtension||this.MARKER_CLUSTER_IMAGE_EXTENSION_;this.zoomOnClick_=!0;r.zoomOnClick!=undefined&&(this.zoomOnClick_=r.zoomOnClick);this.averageCenter_=!1;r.averageCenter!=undefined&&(this.averageCenter_=r.averageCenter);this.setupStyles_();this.setMap(n);this.prevZoom_=this.map_.getZoom();u=this;google.maps.event.addListener(this.map_,"zoom_changed",function(){var n=u.map_.getZoom();u.prevZoom_!=n&&(u.prevZoom_=n,u.resetViewport())});google.maps.event.addListener(this.map_,"idle",function(){u.redraw()});t&&t.length&&this.addMarkers(t,!1)}function Cluster(n){this.markerClusterer_=n;this.map_=n.getMap();this.gridSize_=n.getGridSize();this.minClusterSize_=n.getMinClusterSize();this.averageCenter_=n.isAverageCenter();this.center_=null;this.markers_=[];this.bounds_=null;this.clusterIcon_=new ClusterIcon(this,n.getStyles(),n.getGridSize())}function ClusterIcon(n,t,i){n.getMarkerClusterer().extend(ClusterIcon,google.maps.OverlayView);this.styles_=t;this.padding_=i||0;this.cluster_=n;this.center_=null;this.map_=n.getMap();this.div_=null;this.sums_=null;this.visible_=!1;this.setMap(this.map_)}function IsAdminRole(){var n=JSON.parse(JSON.parse(localStorage.getItem("ngStorage-UserRoleId")));return n==3||n==7||n==11?!0:!1}function IsSuperAdminRole(){var n=JSON.parse(JSON.parse(localStorage.getItem("ngStorage-UserRoleId")));return n==7||n==11?!0:!1}function IsRememberMe(){return JSON.parse(JSON.parse(localStorage.getItem("ngStorage-RememberMe")))}function IsCurrentYearAllowedForEventCreate(){return ClientCode=readCookie("ClientCode"),ClientCode=="MOH"}function IsEmptyString(n){return typeof n=="undefined"||n==null||n==!1||n.length==0||n==""||n.replace(/\s/g,"")==""||!/[^\s]/.test(n)||/^\s*$/.test(n)}function includeHTML(){for(var n,u,i,r=document.getElementsByTagName("*"),t=0;t<r.length;t++)if(n=r[t],u=n.getAttribute("w3-include-html"),u){i=new XMLHttpRequest;i.onreadystatechange=function(){this.readyState==4&&(this.status==200&&(n.innerHTML=this.responseText),this.status==404&&(n.innerHTML="Page not found."),n.removeAttribute("w3-include-html"),includeHTML())};i.open("GET",u,!0);i.send();return}}function PagingController(n){function t(t,i,r){var u,e,f;i=i||1;f=Math.ceil(t/r);f<=n.pagingSize?(u=1,e=f):i+1>=f?(u=f-(n.pagingSize-1),e=f):(u=i-parseInt(n.pagingSize/2),u=u<=0?1:u,e=u+n.pagingSize-1<=f?u+n.pagingSize-1:f,f===e&&(u=e-n.pagingSize+1));for(var s=(i-1)*r,c=s+r-1,o=u,h=[];o<e+1;o++)h.push(o);n.pager.currentPage=i;n.pager.totalPages=f;n.pager.startPage=u;n.pager.endPage=e;n.pager.startIndex=s;n.pager.endIndex=c;n.pager.pages=h}n.pager={};n.pagingSize=n.pagingSize||10;n.itemPerPage=n.itemPerPage||10;n.setPage=function(i){i<1||i>n.pager.totalPages||(t(n.totalItems.length,i,n.itemPerPage),n.displayItems=n.totalItems.slice(n.pager.startIndex,n.pager.endIndex+1))};n.setPage(1)}function PagerController(n){n.pagingSize=5;n.dataPerPage=10;n.totalItems=[];for(var t=1;t<=200;t++)n.totalItems.push(t);n.displayItems=[]}function HasAllControl(){var n=JSON.parse(JSON.parse(localStorage.getItem("ngStorage-UserRoleId")));return n==7||n==11}function removeGoogleMapScript(){console.debug("removing google script...");let t=["maps.googleapis"];window.google=undefined;let n=document.head.getElementsByTagName("script");for(let i=n.length-1;i>=0;i--){let r=n[i].getAttribute("src");r!=null&&t.filter(n=>r.includes(n)).length&&n[i].remove()}}function addGoogleMapScript(n){if(removeGoogleMapScript(),n==undefined&&(n=!0),n==!0){let n=[`https://maps.googleapis.com/maps/api/js?key=AIzaSyDStn12tQn1M5du0TytxKtKJtGP4FZ5vaQ&callback=initMap`];var t=readCookie("ClientCode");t=="NEOM"&&(n=[`https://maps.googleapis.com/maps/api/js?key=AIzaSyBJTmxo5_cRpWN8Uz3t1R3m7paNXfLPWfg&callback=initMap`]);t=="MOH"&&(n=[`https://maps.googleapis.com/maps/api/js?key=AIzaSyCyu4dhM0yaey2eaqeX0lSlF8OLP4UgdvE&callback=initMap&libraries=places`]);for(let t=0;t<n.length;t++){let i=document.createElement("script");i.src=n[t];i.type="text/javascript";i.async=!0;i.charset="utf-8";i.defer=!0;document.head.appendChild(i)}}else{dynamicScripts=[`https://maps.googleapis.com/maps/api/js?key=AIzaSyDStn12tQn1M5du0TytxKtKJtGP4FZ5vaQ&v=3.exp&libraries=drawing,places,visualization`];t=="NEOM"&&(dynamicScripts=[`https://maps.googleapis.com/maps/api/js?key=AIzaSyBJTmxo5_cRpWN8Uz3t1R3m7paNXfLPWfg&v=3.exp&libraries=drawing,places,visualization`]);t=="MOH"&&(dynamicScripts=[`https://maps.googleapis.com/maps/api/js?key=AIzaSyCyu4dhM0yaey2eaqeX0lSlF8OLP4UgdvE&v=3.exp&libraries=drawing,places,visualization`]);for(let n=0;n<dynamicScripts.length;n++){let t=document.createElement("script");t.src=dynamicScripts[n];t.type="text/javascript";t.charset="utf-8";document.head.appendChild(t)}}}function loadVsSlider(){jQuery(document).ready(function(){var n;setTimeout(function(){var i,t;if(jQuery(".fullwidthbanner ul , .fullscreenbanner ul").removeClass("hide"),jQuery(".fullwidthbanner").length>0){var r=100,u=50,f=200,i="bullet",e="solo",o=10;_shadow=jQuery(".fullwidthbanner").attr("data-shadow")||0;jQuery(".fullwidthbanner").hasClass("thumb-small")&&(i="thumb");jQuery(".fullwidthbanner").hasClass("thumb-large")&&(i="thumb",r=195,u=95,f=0,e="solo",o=-94);n=jQuery(".fullwidthbanner").revolution({dottedOverlay:"none",delay:9e3,startwidth:1170,startheight:jQuery(".fullwidthbanner").attr("data-height")||500,hideThumbs:f,thumbWidth:r,thumbHeight:u,thumbAmount:parseInt(jQuery(".fullwidthbanner ul li").length)||2,navigationType:i,navigationArrows:e,navigationStyle:jQuery(".fullwidthbanner").attr("data-navigationStyle")||"round",touchenabled:"on",onHoverStop:"on",navigationHAlign:"center",navigationVAlign:"bottom",navigationHOffset:0,navigationVOffset:o,soloArrowLeftHalign:"left",soloArrowLeftValign:"center",soloArrowLeftHOffset:20,soloArrowLeftVOffset:0,soloArrowRightHalign:"right",soloArrowRightValign:"center",soloArrowRightHOffset:20,soloArrowRightVOffset:0,parallax:"mouse",parallaxBgFreeze:"on",parallaxLevels:[7,4,3,2,5,4,3,2,1,0],shadow:parseInt(_shadow),fullWidth:"on",fullScreen:"off",stopLoop:"off",stopAfterLoops:-1,stopAtSlide:-1,spinner:"spinner0",shuffle:"off",autoHeight:"off",forceFullWidth:"off",hideThumbsOnMobile:"off",hideBulletsOnMobile:"on",hideArrowsOnMobile:"on",hideThumbsUnderResolution:0,hideSliderAtLimit:0,hideCaptionAtLimit:768,hideAllCaptionAtLilmit:0,startWithSlide:0,fullScreenOffsetContainer:""});jQuery("#is_wide, #is_boxed").bind("click",function(){n.revredraw()})}jQuery(".fullscreenbanner").length>0&&(t=jQuery,t.noConflict(),_shadow=jQuery(".fullscreenbanner").attr("data-shadow")||0,t(document).ready(function(){t(".fullscreenbanner").revolution!=undefined&&(revapi25=t(".fullscreenbanner").show().revolution({dottedOverlay:"none",delay:9e3,startwidth:1200,startheight:700,hideThumbs:10,thumbWidth:100,thumbHeight:50,thumbAmount:4,navigationType:"none",navigationArrows:"solo",navigationStyle:jQuery(".fullscreenbanner").attr("data-navigationStyle")||"round",touchenabled:"on",onHoverStop:"on",swipe_velocity:.7,swipe_min_touches:1,swipe_max_touches:1,drag_block_vertical:!1,keyboardNavigation:"on",navigationHAlign:"center",navigationVAlign:"bottom",navigationHOffset:0,navigationVOffset:30,soloArrowLeftHalign:"left",soloArrowLeftValign:"center",soloArrowLeftHOffset:20,soloArrowLeftVOffset:0,soloArrowRightHalign:"right",soloArrowRightValign:"center",soloArrowRightHOffset:20,soloArrowRightVOffset:0,parallax:"mouse",parallaxBgFreeze:"on",parallaxLevels:[7,4,3,2,5,4,3,2,1,0],shadow:parseInt(_shadow),fullWidth:"off",fullScreen:"on",stopLoop:"off",stopAfterLoops:-1,stopAtSlide:-1,shuffle:"off",forceFullWidth:"off",fullScreenAlignForce:"off",hideThumbsOnMobile:"off",hideBulletsOnMobile:"on",hideArrowsOnMobile:"off",hideThumbsUnderResolution:0,hideSliderAtLimit:0,hideCaptionAtLimit:768,hideAllCaptionAtLilmit:0,startWithSlide:0,fullScreenOffsetContainer:jQuery("#header").hasClass("transparent")||jQuery("#header").hasClass("translucent")?null:"#header"}))}));jQuery(".fullscreenbanner.ken-burns").length>0&&(n=jQuery(".fullwidthbanner").revolution({dottedOverlay:"none",delay:9e3,startwidth:1170,startheight:400,hideThumbs:200,thumbWidth:100,thumbHeight:50,thumbAmount:5,navigationType:"bullet",navigationArrows:"solo",navigationStyle:jQuery(".fullwidthbanner").attr("data-navigationStyle")||"round",touchenabled:"on",onHoverStop:"off",navigationHAlign:"center",navigationVAlign:"bottom",navigationHOffset:0,navigationVOffset:10,soloArrowLeftHalign:"left",soloArrowLeftValign:"center",soloArrowLeftHOffset:20,soloArrowLeftVOffset:0,soloArrowRightHalign:"right",soloArrowRightValign:"center",soloArrowRightHOffset:20,soloArrowRightVOffset:0,shadow:0,fullWidth:"on",fullScreen:"off",stopLoop:"off",stopAfterLoops:-1,stopAtSlide:-1,shuffle:"off",autoHeight:"off",forceFullWidth:"off",hideThumbsOnMobile:"off",hideBulletsOnMobile:"off",hideArrowsOnMobile:"off",hideThumbsUnderResolution:0,hideSliderAtLimit:0,hideCaptionAtLimit:0,hideAllCaptionAtLilmit:0,startWithSlide:0,fullScreenOffsetContainer:""}))},10)})}function loadFlipPanels(){jQuery(".box-flip").length>0&&(jQuery(".box-flip").each(function(){_height1=jQuery(".box1",this).outerHeight();_height2=jQuery(".box2",this).outerHeight();_height=_height1>=_height2?_height1:_height2;jQuery(this).css({"min-height":_height+"px"});jQuery(".box1",this).css({"min-height":_height+"px"});jQuery(".box2",this).css({"min-height":_height+"px"})}),jQuery(".box-flip").hover(function(){jQuery(this).addClass("flip")},function(){jQuery(this).removeClass("flip")}))}function owl_carousel(){var n=jQuery("div.owl-carousel");n.length>0&&loadScript(plugin_path+"owl-carousel/owl.carousel.js",function(){n.each(function(){function progressBar(n){$elem=n;buildProgressBar();start()}function buildProgressBar(){$progressBar=jQuery("<div>",{id:"progressBar"});$bar=jQuery("<div>",{id:"bar"});$progressBar.append($bar).prependTo($elem)}function start(){percentTime=0;isPause=!1;tick=setInterval(interval,10)}function interval(){isPause===!1&&(percentTime+=1/time,$bar.css({width:percentTime+"%"}),percentTime>=100&&$elem.trigger("owl.next"))}function pauseOnDragging(){isPause=!0}function moved(){clearTimeout(tick);start()}var slider=jQuery(this),options=slider.attr("data-plugin-options"),$opt=eval("("+options+")"),afterInit,defaults,config,elem,time;afterInit=$opt.progressBar=="true"?progressBar:!1;defaults={items:5,itemsCustom:!1,itemsDesktop:[1199,4],itemsDesktopSmall:[980,3],itemsTablet:[768,2],itemsTabletSmall:!1,itemsMobile:[479,1],singleItem:!0,itemsScaleUp:!1,slideSpeed:200,paginationSpeed:800,rewindSpeed:1e3,autoPlay:!1,stopOnHover:!1,navigation:!1,navigationText:['<i class="fa fa-angle-left"><\/i>','<i class="fa fa-angle-right"><\/i>'],rewindNav:!0,scrollPerPage:!1,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:window,baseClass:"owl-carousel",theme:"owl-theme",lazyLoad:!1,lazyFollow:!0,lazyEffect:"fade",autoHeight:!1,jsonPath:!1,jsonSuccess:!1,dragBeforeAnimFinish:!0,mouseDrag:!0,touchDrag:!0,transitionStyle:!1,addClassActive:!1,beforeUpdate:!1,afterUpdate:!1,beforeInit:!1,afterInit:afterInit,beforeMove:!1,afterMove:afterInit==!1?!1:moved,afterAction:!1,startDragging:!1,afterLazyLoad:!1};config=jQuery.extend({},defaults,options,slider.data("plugin-options"));slider.owlCarousel(config).addClass("owl-carousel-init");elem=jQuery(this);time=7})})}function lightbox(){var n=jQuery(".lightbox");n.length>0&&loadScript("/TemplateScripts/assets/plugins//magnific-popup/jquery.magnific-popup.min.js",function(){if(typeof jQuery.magnificPopup=="undefined")return!1;jQuery.extend(!0,jQuery.magnificPopup.defaults,{tClose:"Close",tLoading:"Loading...",gallery:{tPrev:"Previous",tNext:"Next",tCounter:"%curr% / %total%"},image:{tError:"Image not loaded!"},ajax:{tError:"Content not loaded!"}});n.each(function(){var n=jQuery(this),r=n.attr("data-plugin-options"),t={},i;n.data("plugin-options")&&(t=jQuery.extend({},{type:"image",fixedContentPos:!1,fixedBgPos:!1,mainClass:"mfp-no-margins mfp-with-zoom",closeOnContentClick:!0,closeOnBgClick:!0,image:{verticalFit:!0},zoom:{enabled:!1,duration:300},gallery:{enabled:!1,navigateByImgClick:!0,preload:[0,1],arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"><\/button>',tPrev:"Previous",tNext:"Next",tCounter:'<span class="mfp-counter">%curr% / %total%<\/span>'}},r,n.data("plugin-options")));i=jQuery(this);i.magnificPopup(t)})})}function lightbox(){var n=jQuery(".lightbox");n.length>0&&loadScript("/TemplateScripts/assets/plugins//magnific-popup/jquery.magnific-popup.min.js",function(){if(typeof jQuery.magnificPopup=="undefined")return!1;jQuery.extend(!0,jQuery.magnificPopup.defaults,{tClose:"Close",tLoading:"Loading...",gallery:{tPrev:"Previous",tNext:"Next",tCounter:"%curr% / %total%"},image:{tError:"Image not loaded!"},ajax:{tError:"Content not loaded!"}});n.each(function(){var n=jQuery(this),r=n.attr("data-plugin-options"),t={},i;n.data("plugin-options")&&(t=jQuery.extend({},{type:"image",fixedContentPos:!1,fixedBgPos:!1,mainClass:"mfp-no-margins mfp-with-zoom",closeOnContentClick:!0,closeOnBgClick:!0,image:{verticalFit:!0},zoom:{enabled:!1,duration:300},gallery:{enabled:!1,navigateByImgClick:!0,preload:[0,1],arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"><\/button>',tPrev:"Previous",tNext:"Next",tCounter:'<span class="mfp-counter">%curr% / %total%<\/span>'}},r,n.data("plugin-options")));i=jQuery(this);i.magnificPopup(t)})})}var ApiPath="api/",VsApp=angular.module("VsApp",["ui.router","ngIdle","ui.bootstrap","ngCookies","ui.event","validation","ngscroll-to","ngStorage","vcRecaptcha","ui.select","ngPrint","ngTagsInput","swangular","angular-owl-carousel-2","ngtweet","ui.map","ngFileUpload"]),langCookie,str,n,vl,GridRowStatus,GridRowColor,window;VsApp.run(["$rootScope","Idle","$state","$stateParams","$cookies","$http","$timeout","$localStorage","$window","locale","UtilsApis","$uibModal","swangular","api","$sce","$anchorScroll","AuthService","Lookups","$window","Upload",function(n,t,i,r,u,f,e,o,$window,s,h,c,l,a,v,y,p,w){function d(){jQuery(function(n){k?(n("#box").css("height","0px"),n("#box").css("opacity","0"),k=!1):(n("#box").css("height","auto"),n("#box").css("opacity","1"),k=!0)})}function b(t){var r=!1,i;return(n.AuthorizedModules==null||n.AuthorizedModules==undefined)&&GetModuleAuthorized(),i=n.AuthorizedModules,t!=null&&i!=undefined&&i.length>0&&jQuery.each(i,function(n,i){if(i.toLowerCase()==t.toLowerCase())return r=!0,!1}),r}function nt(n,t){try{ManagePostCard=GetSyncCall("Get","UserRoles/IsScreenAuthorizedForRole?currentPage="+n+"&RoleId="+t);setCookie("ManagePostCard",ManagePostCard)}catch(i){return!1}}var k,g;n.$state=i;n.$stateParams=r;n.SetLang=s.SetLang;n.GetResource=s.GetResource;n.GetLang=s.GetLang;n.GetSystemPages=s.GetSystemPages;n.Labels=s.GetCurrentLangResources();n.BloodGroups=w.BloodGroups;n.IamId="";n.CurrentPage="Home";n.Configs=[];n.utilsU="/api/utils/";n.eventsU="/api/events/";n.volU="/api/volunteers/";n.surU="/api/survey/";n.gsurU="/GeneralSurvey/";n.resU="/api/responder/";n.usrU="/api/Users/";n.ticU="/api/Ticket/";n.loginMode="E";n.isUserActiveOnPage=!0;n.Invitation=null;n.EnumUserLoginStatus={Success:1,WrongCaptcha:2,WrongInfo:3,DeactivatedUser:4,Locked:5,InvalidNIC:6,EmailVerification:7};n.GetRememberMeUserName=function(){var n="";return IsRememberMe()&&(n=u.get("UserName")),n&&(n=JSON.parse(n)),n};n.getLookupText=function(n,t,i,r){if(n&&t){var u=n.filter(function(n){return n[i||"value"]==t});return u&&u.length>0?u[0][r||"text"]||" ":""}return""};n.gridOnError=function(t,i,r){if(n.IsForbiddenResponse(t.xhr)){n.logoutIfForbidden(t.xhr);return}if(t.errors&&t.errors._addKey?n.showErrorMessageFromKey(t.errors._addKey.errors[0]):t.errors&&t.errors._deleteKey?n.showErrorMessageFromKey(t.errors._deleteKey.errors[0]):t.errors&&t.errors._updateKey?n.showErrorMessageFromKey(t.errors._updateKey.errors[0]):t.errors&&t.errors._alreadyExistKey?n.showErrorMessageFromKey(t.errors._alreadyExistKey.errors[0]):n.showErrorMessage(n.Labels.GenericErrorMessage),!r&&i)i.cancelChanges();else r.one("dataBinding",function(n){n.preventDefault()})};n.trust=function(n){return v.trustAsHtml(n)};n.getLookupDataSource=function(t){return new kendo.data.DataSource({transport:{read:{url:t,async:!1,beforeSend:n.addTokenToRequest,complete:n.logoutIfForbidden}},schema:{parse:function(n){for(var r,i=[],t=0;t<n.length;t++)r={value:n[t].Id,text:CurrentLang=="ar"?n[t].NameAr:n[t].Name},i.push(r);return i}}})};n.showVolunteerMessage=function(n,t){l.swal("",n,"warning").then(function(){t&&t()})};n.showErrorMessage=function(t,i){l.swal(n.Labels.ErrorHeader,t,"warning").then(function(){i&&i()})};n.showSuccessMessage=function(t,i){l.swal({title:n.Labels.SuccessHeader,text:t,type:"success",allowOutsideClick:!1}).then(function(){i&&i()})};n.showInfoMessageFromKey=function(t,i){l.swal("",n.GetResource(t),"warning").then(function(){i&&i()})};n.showErrorMessageFromKey=function(t,i){l.swal(n.Labels.ErrorHeader,n.GetResource(t),"warning").then(function(){i&&i()})};n.showSuccessMessageFromKey=function(t,i){l.swal({title:n.Labels.SuccessHeader,text:n.GetResource(t),type:"success",allowOutsideClick:!1}).then(function(){i&&i()})};n.showSuccessMessageTextNoTitle=function(n,t){l.swal({text:n,type:"success",allowOutsideClick:!1}).then(function(){t&&t()})};n.showInfoMessageTextNoTitle=function(n,t){l.swal({text:n,type:"info",allowOutsideClick:!1}).then(function(){t&&t()})};n.showConfirmBox=function(t,i){l.swal({title:n.Labels.AreYouSure,text:n.GetResource(t),type:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:n.Labels.Yes,cancelButtonText:n.Labels.Cancel}).then(function(){i&&i()},function(){})};n.showConfirmBoxText=function(t,i,r){l.swal({title:n.Labels.AreYouSure,text:t,type:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:n.Labels.Yes,cancelButtonText:n.Labels.Cancel}).then(function(n){n&&i&&i()},function(){r&&r()})};n.ShowRegistrationMessage1=function(){let t;l.swal({title:"",html:n.Labels.RegistrationMessage,timer:3e3,showCancelButton:!1,showConfirmButton:!0,onBeforeOpen:()=>{swal.showLoading()},onClose:()=>{window.open("/IAMRegister.aspx","_self"),clearInterval(t)}}).then(n=>{n.dismiss===swal.DismissReason.timer})};n.ShowRegistrationMessage=function(){swal({html:n.Labels.RegistrationMessage,icon:"warning",showCancelButton:!0,confirmButtonText:n.Labels.IAMLogin,cancelButtonText:n.Labels.IAMLogout,reverseButtons:!0}).then(function(){window.open("/IAMRegister.aspx","_self")},function(n){if(n==="cancel")window.open("/IAMLogout.aspx","_self");else throw n;})};n.ShowLoginMessage=function(){swal({html:n.Labels.YouMustLogIn,icon:"warning",showCancelButton:!0,confirmButtonText:n.Labels.VolunteerLogin,cancelButtonText:n.Labels.VolunteerLoginCancel,reverseButtons:!0}).then(function(){n.GoTo("Login")},function(n){if(n!=="cancel")throw n;})};n.updateGridPopupActionsText=function(t){var i=$(t.container);i.find(".k-grid-update").html(n.Labels.Submit).end().find(".k-grid-cancel").html(n.Labels.Cancel).end()};n.isCurrentBrowserIE=!1;n.CheckForCurrentBrowser=function(){var t=window.navigator.userAgent,i=t.indexOf("MSIE ");return n.isCurrentBrowserIE=i>0||!!navigator.userAgent.match(/Trident.*rv\:11\./)?!0:!1,!1};n.CheckForCurrentBrowser();n.GetAuthenticationToken=p.GetAuthenticationToken;n.addTokenToRequest=function(t){t.setRequestHeader("AuthorizationHeader",p.getAuthToken());t.setRequestHeader("CurrentPage",n.CurrentPage)};n.IsForbiddenResponse=function(t){return(t||{}).status==n.statusCodes.Forbidden};n.logoutIfForbidden=function(t){n.IsForbiddenResponse(t)&&(n.destroyTicket(),n.GoTo("Login"))};n.createLocalStorageTicket=function(n,t){o.User=angular.toJson(n.Token);o.UserName=angular.toJson(t);o.UserId=angular.toJson(n.UserId);o.VolunteerInfoId=angular.toJson(n.VolunteerInfoId);o.Name=angular.toJson(n.Name);o.UserRoleId=angular.toJson(n.UserRoleId)};n.$on("$stateChangeStart",function(t,i,r,u){u.name=="Home"&&!!revapi25&&revapi25.revkill&&revapi25.revkill();jQuery("div.owl-carousel").each(function(){var n=jQuery(this);n.trigger("destroy.owl.carousel").removeClass("owl-carousel owl-loaded");n.find(".owl-stage-outer").children().unwrap()});n.GetApprovedVolunteers=function(){if(n.Counters!=null)return JSON.parse(Math.ceil(n.Counters[2].Value))+JSON.parse(Math.ceil(n.Counters[3].Value))};n.RefreshCounter=function(){jQuery(function(t){t(".count").each(function(){t(this).prop("Counter",0).animate({Counter:n.GetApprovedVolunteers()},{duration:4e3,easing:"swing",step:function(n){t(this).text(Math.ceil(n))}})})})};n.GetHomeCounters=function(){a.Get("/api/utils/home/counters/getallcount").then(function(t){n.Counters=t;n.GetClientCode()=="SRCA"&&n.RefreshCounter()},function(){})};n.GetHomeCounters();n.GetUserNotifications=function(){n.ConfigKey().HasNotificationsHeader&&n.IsLoggedIn()&&a.Get(Resources.urls.getUserNotifications).then(function(t){if(t){n.NotificationsCount=t.length;for(var i=0;i<t.length;i++)t[i].Name!=null&&t[i].Name.length>30&&(t[i].Name=t[i].Name.substr(0,100)+"...");n.Notifications=t}})};n.GetUserNotifications()});k=!1;$("#bell").click(function(){d()});$("body").click(function(t){jQuery(function(i){if(n.ConfigKey().HasNotificationsHeader&&n.IsLoggedIn()){if(t.target.id=="bell")return;if(i(t.target).closest("#bell").length)return;k=!0;d()}})});window.setInterval(function(){n.IsLoggedIn()&&n.GetUserNotifications();n.GetHomeCounters()},3e5);n.GetActionPage=function(t){jQuery(function(i){if(i("#bell").click(),n.NotificationActionType(t)=="16")l.swal({title:n.Labels.VolunteeropportunityhasbeenextendedFirstTitle,html:t.Name+" <br>"+n.Labels.SurveyStartDate+"-"+t.StartDate.slice(0,10).replace(/-/g,"/")+"<br>"+n.Labels.SurveyExpiryDate+"-"+t.EndDate.slice(0,10).replace(/-/g,"/")+"<br>"+n.Labels.VolunteeropportunityhasbeenextendedSecondTitle,type:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",allowOutsideClick:!1,confirmButtonText:n.Labels.YesIWantToContinue,cancelButtonText:n.Labels.IDontWantToContinue}).then(function(i){i&&n.acceptInvitation(t.EventInvitationId)},function(i){i&&n.rejectInvitation(t.EventInvitationId)});else{var r=n.$state.href(t.ActionPage,{id:encodeURIComponent(t.EventId)});t.ActionId==4?r=n.$state.href(t.ActionPage,{id:encodeURIComponent(t.VolunteerInfoId),eventId:t.EventId}):t.ActionId==7&&(r=n.$state.href(t.ActionPage,{tkn:encodeURIComponent(t.Token)}));window.open(r,"_self")}d()})};n.NotificationActionType=function(n){return n.ActionId.toString()};GetSyncCall=function(t,i){var r="";return jQuery.ajax({type:t,url:i,data:null,headers:{"header-name":undefined},success:function(n){n&&(r=n)},async:!1,beforeSend:n.addTokenToRequest,complete:n.logoutIfForbidden}),r};n.IsRedirectAdmin=function(){return GetSyncCall("Post",Resources.urls.isRedirectAdmin)};n.GetConfigKey=function(){n.Configs=GetSyncCall("Get",Resources.urls.configKey)};n.ConfigKey=function(){return n.Configs.length<=0&&(n.Configs=GetSyncCall("Get",Resources.urls.configKey)),n.Configs};n.AdminUrl=function(){return url=GetSyncCall("Get",Resources.urls.admUrl)};n.$on("$locationChangeStart",function(){});n.$on("$locationChangeSuccess",function(){y()});n.CurrentLang=CurrentLang=n.GetLang();n.isHomePage=function(){return i.current.name=="Home"};n.isRegister=function(){return i.current.name=="Register"};n.getCurrentStateName=function(){return i.current.name};n.EditProfile=function(){n.GoTo("EditStaffProfile",n.GetCurrentUserId())};n.ToggleLanguage=function(){n.MaskPage=!0;n.GetLang()=="ar"?(setCookie("lang","en"),n.SetLang("en"),location.reload(),i.transitionTo(i.current.name,i.params),n.CurrentLang=CurrentLang=n.GetLang()):n.GetLang()=="en"&&(setCookie("lang","ar"),n.SetLang("ar"),location.reload(),i.transitionTo(i.current.name,i.params),n.CurrentLang=CurrentLang=n.GetLang())};n.isPaused=!0;n.isStarted=!1;n.isLoading=!1;n.MaskPage=!1;g=function(){var n=u.get("UserRoleId");return n==undefined?null:JSON.parse(n=="undefined"?null:n)};GetModuleAuthorized=function(){if(u.get("User")!=undefined&&u.get("User")!="undefined"){var t=[];$.ajax({type:"POST",url:Resources.urls.userRoles_Screens,data:null,success:function(n){n&&n.Data&&$.each(n.Data,function(n,i){t.push(i)})},async:!1,beforeSend:n.addTokenToRequest,complete:n.logoutIfForbidden});n.AuthorizedModules=t}};GetModuleAuthorized();n.IsAllowedApproveVolunteerHours=function(){return b("approvevolunteerhours")};n.IsScreenAuthorized=function(n){return b(n)};nt("ManagePostCard","1");n.OpenWindow=function(n,t){t==!0?(clang=CurrentLang=="ar"?"ar":"",n="https://impact.neom.com/"+clang+"/privacy-policy",window.open(n,"_blank")):window.open(n,"_blank")};n.IsAdminOrStaff=function(){var n=b("allowadminrole"),t=b("allowregionrestriction");return n||t?!0:!1};n.IsAdmin=function(){return b("allowadminrole")};n.IsResponderAdmin=function(){return b("allowfirstresponderrole")};n.IsStaff=function(){return b("allowregionrestriction")};n.IsVolunteer=function(){return b("allowvolunteerrole")};n.IsReviewer=function(){return b("allowreviewrole")};n.IsVolunteerAdmin=function(){return b("allowvolunteeradminrole")};n.IsRegistrationComplete=function(){if(u.get("IsRegistrationComplete"))return JSON.parse(u.get("IsRegistrationComplete"))};n.IsUserNICValid=function(){return JSON.parse(u.get("IsUserNICValid"))};n.ManageNICAuthetication=function(){n.IsUserNICValid()!=undefined&&n.IsUserNICValid()==!1&&n.$state.transitionTo("UserVerification")};n.ShowHeaderMenus=function(){return n.IsRegistrationComplete()==!0&&n.IsUserNICValid()==!0};n.IsLoggedIn=function(){var n,t;return u.get("User")&&(n=g(),!!JSON.parse(n))?!0:o.User!=undefined&&o.User!="undefined"&&(t=JSON.parse(o.UserRoleId),t)?!0:!1};n.IsScreenAuthorizedForPostCard=function(){if(u.get("ManagePostCard")){var n=u.get("ManagePostCard");return n&&n=="true"?!0:!1}return!1};n.GoTo=function(t,i){n.isLoading=!0;n.$state.transitionTo(t,i);n.isLoading=!1};n.SetCurrentVolunteerId=function(n){o.VolunteerInfoId=angular.toJson(n);u.put("VolunteerInfoId",o.VolunteerInfoId)};n.GetLocalStorageTicket=function(){o.User!=undefined&&o.User!="undefined"&&(u.put("User",o.User),u.put("VolunteerInfoId",o.VolunteerInfoId),u.put("UserName",o.UserName),u.put("UserId",o.UserId),u.put("Name",o.Name),u.put("UserRoleId",o.UserRoleId),u.put("UserAuthorizedRegions",o.UserAuthorizedRegions),u.put("UserAuthorizedCities",o.UserAuthorizedCities))};n.GetClientCode=function(){return n.ConfigKey().ClientCode};n.CreateTicket=function(n,t,i){u.put("User",n);u.put("UserRoleId",i);u.put("UserAuthorizedRegions",o.UserAuthorizedRegions);u.put("UserAuthorizedCities",o.UserAuthorizedCities)};n.IsCurrentUser=function(n){var t=JSON.parse(u.get("UserName")).toLowerCase(),i=n.toLowerCase();return i==t?!0:!1};n.GetUserAuthorizedRegions=function(){var n=u.get("UserAuthorizedRegions");return n?JSON.parse(n):[0]};n.GetUserAuthorizedCities=function(){var n=u.get("UserAuthorizedCities");return n?JSON.parse(n):[0]};n.GetAuthorizedModules=function(){var n=u.get("AuthorizedModules");return n?JSON.parse(n):[0]};n.GetCurrentUserRoleId=function(){var n=u.get("UserRoleId");return n?JSON.parse(n):null};n.GetCurrentUserName=function(){var n=u.get("UserName");return n?JSON.parse(n):""};n.GetCurrentUserId=function(){var n=u.get("UserId");return n?JSON.parse(n):null};n.GetCurrentUserFullName=function(){try{var n=u.get("Name");if(n)return JSON.parse(n)}catch(t){}return""};n.GetCurrentUserRoleId=function(){var n=u.get("UserRoleId");return n?JSON.parse(n):null};n.GetCurrentVolunteerId=function(){var n=u.get("VolunteerInfoId");return n?JSON.parse(n):null};n.destroyTicket=function(){u.remove("User");u.remove("VolunteerInfoId");IsRememberMe()||(u.remove("UserName"),u.remove("RememberMe"));u.remove("UserId");u.remove("Name");u.remove("UserRoleId");u.remove("VolunteerInfoId");u.remove("UserAuthorizedRegions");u.remove("UserAuthorizedCities");u.remove("HasNotificationsHeader");u.remove("IsUserNICValid");u.remove("IsRegistrationComplete");u.remove("IsRegistrationComplete");n.AuthorizedModules=null;delete o.UserAuthorizedRegions;delete o.UserAuthorizedCities;o.User==undefined||o.User=="undefined"||(delete o.User,delete o.VolunteerInfoId,IsRememberMe()||(delete o.UserName,delete o.RememberMe),delete o.UserId,delete o.Name,delete o.UserRoleId,delete localStorage["ngStorage-UserRoleId"])};n.Logout=function(){if(f({method:"POST",url:Resources.urls.logout,params:null,data:null,headers:{AuthorizationHeader:n.GetAuthenticationToken()}}),n.destroyTicket(),u.put("lang",""),createCookie("ClientCode",n.ConfigKey().ClientCode),n.ConfigKey().HasSingleSignOn){var t=n.ConfigKey().VolunteerURL;t=t.replace("/#!","");window.open(t,"_self")}else n.$state.transitionTo(LoginState)};n.ShowUserMessage=function(t,i){i==0?(n.ShowError=!0,n.ShowConfirm=!1,n.ShowWarning=!1):i==1?(n.ShowError=!1,n.ShowConfirm=!0,n.ShowWarning=!1):i==2&&(n.ShowError=!1,n.ShowConfirm=!1,n.ShowWarning=!0);n.UserMessage=t;e(function(){n.ShowError=!1;n.ShowConfirm=!1},5e3)};n.CloseError=function(){n.ShowError=!1};n.ConfirmationAccepted=!1;n.ConfirmationRejected=function(){n.ShowWarning=!1};n.ExportToPDF=function(){var n=new jsPDF("p","pt","letter"),t=$("#PDFme")[0],i={"#bypassme":function(){return!0}};margins={top:80,bottom:60,left:40,width:522};n.fromHTML(t,margins.left,margins.top,{width:margins.width,elementHandlers:i},function(){n.save("Test.pdf")},margins)};n.ie=!1;navigator.appName=="Microsoft Internet Explorer"&&(n.ie=!0);n.IsDatesValid=function(n,t){var e=[" ","/",":"],i=n.split(new RegExp(e.join("|"),"g")),r=t.split(new RegExp(e.join("|"),"g")),u=parseInt(i[3]),f=parseInt(r[3]);i[5]=="PM"&&u<12&&(u+=12);r[5]=="PM"&&f<12&&(f+=12);var o=parseInt(i[2]),s=parseInt(i[1])-1,h=parseInt(i[0]),c=parseInt(r[2]),l=parseInt(r[1])-1,a=parseInt(r[0]);return(i=new Date(o,s,h,u,parseInt(i[4])),r=new Date(c,l,a,f,parseInt(r[4])),i>r)?!1:!0};n.IsDatesValidMDY=function(n,t){var e=[" ","/",":"],i=n.split(new RegExp(e.join("|"),"g")),r=t.split(new RegExp(e.join("|"),"g")),u=parseInt(i[3]),f=parseInt(r[3]);i[5]=="PM"&&u<12&&(u+=12);r[5]=="PM"&&f<12&&(f+=12);var o=parseInt(i[2]),s=parseInt(i[0])-1,h=parseInt(i[1]),c=parseInt(r[2]),l=parseInt(r[0])-1,a=parseInt(r[1]);return(i=new Date(o,s,h,u,parseInt(i[4])),r=new Date(c,l,a,f,parseInt(r[4])),i>r)?!1:!0};n.IsTimeValid=function(n,t){var e=[" ","/",":"],i=n.split(new RegExp(e.join("|"),"g")),r=t.split(new RegExp(e.join("|"),"g")),u=parseInt(i[0]),o=parseInt(i[1]),f=parseInt(r[0]),s=parseInt(r[1]);return(i[2]=="PM"&&u<12&&(u+=12),r[2]=="PM"&&f<12&&(f+=12),u>f)?!1:o>s?!1:!0};n.FireEvent=function(n,t){var r,u,f,i;if(n.ownerDocument)r=n.ownerDocument;else if(n.nodeType==9)r=n;else throw new Error("Invalid node passed to fireEvent: "+n.id);if(n.dispatchEvent){u="";switch(t){case"click":case"mousedown":case"mouseup":u="MouseEvents";break;case"focus":case"change":case"blur":case"select":u="HTMLEvents";break;default:throw"fireEvent: Couldn't find an event class for event '"+t+"'.";}i=r.createEvent(u);f=t=="change"?!1:!0;i.initEvent(t,f,!0);i.synthetic=!0;n.dispatchEvent(i,!0)}else n.fireEvent&&(i=r.createEventObject(),i.synthetic=!0,n.fireEvent("on"+t,i))};n.GetBaseURL=function(){var n=location.href.split("/"),t=n[0],i=n[2];return t+"//"+i};n.openSettingsModal=function(){c.open({animation:n.animationsEnabled,templateUrl:"preferencesModal.html",controller:"InstanceController",backdrop:!1,resolve:{items:function(){return n.desc}}})};n.openModal=function(n,t,i,r){var u=t?angular.element($document[0].querySelector(".modal-demo "+t)):undefined,f=c.open({animation:!1,ariaLabelledBy:"modal-title",ariaDescribedBy:"modal-body",templateUrl:i,controller:"ModalInstanceCtrl",controllerAs:"$ctrl",size:n,appendTo:u,resolve:{data:function(){return r}}});return f.result};n.passwordDisplay=!1;n.showPassword=function(){n.passwordDisplay=n.passwordDisplay==!0?!1:!0};n.passwordHide=function(){n.passwordDisplay=!1};n.acceptInvitation=function(t){n.showConfirmBoxText("",function(){a.Post(n.volU+"invitation/"+t+"/accept").then(function(t){n.isLoading=!1;t&&t.Success?a.Get(n.eventsU+"invitedEvents").then(function(t){n.Invitation=t;n.showSuccessMessageFromKey("Success")}):t.Message=="UpdateRegistrationTitle"?(n.ShowUserMessage($scope.Messages.UpdateRegistrationTitle,0),l.swal({title:"",text:$scope.Messages.UpdateRegistrationMessage,type:"info"}).then(function(){n.$state.transitionTo("EditRegistration",{id:angular.toJson(n.GetCurrentVolunteerId())})})):t&&t.Message=="expired"?n.showErrorMessageFromKey("event_expired"):t&&t.Message=="deleted"?n.showErrorMessageFromKey("event_deleted"):t&&t.Message=="OtherEventAccepted"?n.showErrorMessageFromKey("OtherEventAccepted"):t&&t.Message=="ExceededApprovalLimit"?n.showErrorMessageFromKey("ExceededApprovalLimit"):t&&t.Message=="ErrorMessageConflictEventDate"?n.showErrorMessageFromKey("ErrorMessageConflictEventDate"):n.showErrorMessageFromKey("Error_CheckEventStatus")})})};n.rejectInvitation=function(t){n.showConfirmBoxText("",function(){a.Post(n.volU+"invitation/"+t+"/reject").then(function(t){n.isLoading=!1;t&&t.Success?a.Get(n.eventsU+"invitedEvents").then(function(t){n.Invitation=t;n.showSuccessMessageFromKey("Success")}):t&&t.Message=="expired"?n.showErrorMessageFromKey("event_expired"):t&&t.Message=="deleted"?n.showErrorMessageFromKey("event_deleted"):t&&t.Message=="OtherEventAccepted"?n.showErrorMessageFromKey("OtherEventAccepted"):t&&t.Message=="ExceededApprovalLimit"?n.showErrorMessageFromKey("ExceededApprovalLimit"):t&&t.Message=="ErrorMessageConflictEventDate"?n.showErrorMessageFromKey("ErrorMessageConflictEventDate"):t&&t.Message=="expired"?n.showErrorMessageFromKey("event_expired"):t&&t.Message=="deleted"?n.showErrorMessageFromKey("event_deleted"):n.showErrorMessageFromKey("ErrorUpdating")})})};n.GetLocalStorageTicket();n.GetConfigKey();a.Get(Resources.urls.news).then(function(t){n.News=t;n.News.forEach(function(n){n.JContent=!n.Content?null:JSON.parse(n.Content);n.JContent&&(n.JContent.Content[CurrentLang]=strip(n.JContent.Content[CurrentLang],100))})},function(){});n.newsMoreInfo=function(t){n.$state.transitionTo("NewsDetails",{id:t,data:null})};n.subscribe=function(t){h.Subscribe(t).then(function(t){n.subscriptionEmail="";t.Success?n.showSuccessMessageFromKey(t.Message):n.showErrorMessageFromKey(t.Message||"GenericErrorMessage")})};n.RegistrationStatusEnum={Draft:1,Submitted:2,Initially_Accepted:3,Approved:5,Rejected:6};$(document).ready(function(){setInterval(function(){e(function(){n.GetClientCode()=="NEOM"&&n.IsLoggedIn()&&n.isUserActiveOnPage&&(t.watch(),n.isUserActiveOnPage=!1)})},18e4)});n.$on("IdleTimeout",function(){t.unwatch();n.isUserActiveOnPage=!0;n.Logout()})}]);VsApp.config(["IdleProvider",function(n){n.idle(1);n.timeout(900)}]);VsApp.filter("range",function(){return function(n,t){t=parseInt(t);for(var i=0;i<t;i++)n.push(i+1);return n}});VsApp.filter("jsDate",function(){return function(n){return n!=undefined?new Date(parseInt(n.substr(6))):""}});VsApp.filter("FilterMatchCounter",function(){return function(n,t,i){if(!t)return n;var r=[];return angular.forEach(n,function(n){n[i]===t&&r.push(n)}),r}});VsApp.factory("Authorize",["$rootScope","api",function(n,t){var i={};return i.screenActionList=function(i,r){t.Post("/UserRoles/UserRoles_ScreensActionsList",null,{controllerName:r}).then(function(t){t?t.Data&&(n.screenActions=t.Data,i.read()):n.showErrorMessage($scope.Labels.ErrorMessage)})},i}]);VsApp.factory("locale",["$cookies",function(n){function e(){var n=window.navigator.userAgent,t=n.indexOf("MSIE ");(t>0||!!navigator.userAgent.match(/Trident.*rv\:11\./))&&(u=r[1])}function i(){return n.get("lang")||n.put("lang",u),n.get("lang")}function o(){return n.get("ClientCode")||n.put("ClientCode","MOH"),n.get("ClientCode")}function s(t){r.indexOf(t)>=0?n.put("lang",t):n.put("lang",u)}function h(n){var r=i();return n in t?t[n][r]:"Resource does not exist"}function c(){var u=i(),r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n][u]);return r}function l(n){var t=i();return n in f?f[n][t]:"Resource does not exist"}var r=["ar","en"],u=r[0],t,f;return e(),t={HomePageTitle_SRCA:{ar:"منصة التطوع بهيئة الهلال الأحمر السعودي",en:"Saudi Red Crescent Volunteering System"},HomePageTitle_MOH:{ar:"منصة التطوع الصحي",en:"MOH Volunteering System"},Quote0:{ar:"التطوع رؤية وطـن",en:"التطوع رؤية وطـن"},Quote1:{ar:"منصة التطوع الصحي",en:"Health Volunteering Platform"},Quote2:{ar:"بالتــــطوع نرســــم ابتســـــامة ... ونحيــي أمــــلاً",en:"بالتــــطوع نرســــم ابتســـــامة ... ونحيــي أمــــلاً"},JoinUs:{ar:"تطوع معنا",en:"Volunteer With US"},JoinUsSRCA:{ar:"تطوع معنا",en:"Contribute With Us"},HomePage:{ar:"الرئيسية",en:"Home"},VolunteersManagement:{ar:"إدارة المتطوعين",en:"Volunteers Management"},WhoAreWe:{ar:"<h2>من نحن ?<\/h2><h4>We build a future where people live in peace &amp; harmony.<\/h4><p>We’re an NGO (Non-Governmental Organization) with the main focus on finding young generation problems and solving them. We support young generation and help them nurture their creative ideas. Our&nbsp;head office is located in Romania, Baia Mare but our volunteers participate from all around the world, EIZO Group being one of the first NGO’s performing with full activities&nbsp;in the online environment.<\/p>",en:"<h2>Who are we ?<\/h2><h4>We build a future where people live in peace &amp; harmony.<\/h4><p>We’re an NGO (Non-Governmental Organization) with the main focus on finding young generation problems and solving them. We support young generation and help them nurture their creative ideas. Our&nbsp;head office is located in Romania, Baia Mare but our volunteers participate from all around the world, EIZO Group being one of the first NGO’s performing with full activities&nbsp;in the online environment.<\/p>"},MainNavigation:{ar:"القائمة الرئيسية",en:"Main Navidagtion"},HomePageUrlText:{ar:"نظام التطوع",en:"Volunteer System"},HomePageUrlMiniText:{ar:"تطوع",en:"VS"},GenericErrorMessage:{ar:"حدث خطأ بالنظام، الرجاء المحاولة لاحقا",en:"An error has been occurred, please contact system admin."},ErrorHeader:{ar:"خطأ !",en:"Attention!"},SuccessHeader:{ar:"نجحت العملية !",en:"Operation Succeeded!"},SliderPanelTitle:{ar:"عنوان",en:"Heading"},SliderHeader1:{ar:"نص تجريبي نص تجريبي نص تجريبي 1",en:"Sample Information 1"},SliderHeader2:{ar:"نص تجريبي نص تجريبي نص تجريبي 2",en:"Sample Information 2"},SliderHeader3:{ar:"نص تجريبي نص تجريبي نص تجريبي 3",en:"Sample Information 3"},SliderDetails1:{ar:"تفاصيل أكثر",en:"Details Sample 1"},SliderDetails2:{ar:"تفاصيل أكثر",en:"Details Sample 2"},SliderDetails3:{ar:"تفاصيل أكثر",en:"Details Sample 3"},Previous:{ar:"السابق",en:"Previous"},Next:{ar:"التالي",en:"Next"},LoginUrlText:{ar:"تسجيل الدخول",en:"Login"},NewUser:{ar:"مستخدم جديد",en:"New User"},RegistrationUrlText:{ar:"تسجيل المتطوعين",en:"Volunteers Registration"},CurrentRegistrationRequest:{ar:"طلب التسجيل الحالي",en:"Current Registration Request"},Registration_Administration:{ar:"إدارة تسجيل المتطوعين",en:"Volunteers Registration Management"},lbl_AdminPageUrlText:{ar:"إدارة النظام",en:"System Management"},lbl_ApiPageUrlText:{ar:"الأدوات المساعدة",en:"API Help"},CopyRight:{ar:"نظام التطوع 2017",en:"2017 - Volunteering System"},Events:{ar:" الفرص التطوعية",en:"Events"},EventsRecord:{ar:"سجل الفرص التطوعية",en:"Events Record"},lbl_workFields:{ar:"مجالات العمل التطوعي",en:"Volunteering Work Fields"},WorkFields_Administration:{ar:"مجالات العمل التطوعي",en:"Volunteering Work Fields"},lbl_EventTypes:{ar:"أنواع الفرص التطوعية",en:"Event Types"},EventTypes_Administration:{ar:"إدارة أنواع الفرص التطوعية",en:"Event Types"},lbl_Skills:{ar:"المهارات",en:"Skills"},Skills_Administration:{ar:"إدارة المهارات",en:"Skills Management"},lbl_CertificateTypes:{ar:"أنواع الشهادات",en:"Certificate Types"},CertificateTypes_Administration:{ar:"إدارة أنواع الشهادات",en:"Certificate Types"},VolunteersUrlText:{ar:"المتطوعون",en:"Volunteers"},Dashboard:{ar:"صفحتي",en:"My Page"},MyApplicationUrlText:{ar:"عرض بياناتي الخاصة",en:"View My Information"},MyApplicationUrlTextLabel:{ar:"عرض بياناتي الشخصية",en:"View my personal details"},ViewProfile:{ar:"عرض الملف الشخصي ",en:"View My Information"},InitallyAcceptedBy:{ar:"تم القبول المبدئي بواسطة",en:"Initally Accepted By"},ApprovedBy:{ar:"تمت الموافقة النهائية بواسطة",en:"Approved By"},RejectedBy:{ar:"تم الرفض بواسطة",en:"Rejected By"},VGoals:{ar:"أهداف التطوع",en:"Volunteering Goals"},VGoalsDesc:{ar:"<ol><li>1. إنفاذ توجيهات ولاة الأمر الرامية إلى تفعيل رسالة الهيئة بتبني العمل التطوعي وترسيخ مفهومة في الأعمال وإتاحة الفرصة للمتطوعين ودعمهم في الأعمال التي تلائم أعمال وأهداف الهيئة.<\/li><li>2. تقوية أواصر المجتمع وصهرها في بوتقة واحدة من خلال التعاون والتالف وتجسيد معاني التكاتف والشهامة وتحقيق مبدأ الجسد الواحد في تقديم المساعدة للأشخاص الأشد حاجة.<\/li><li>3. الاستفادة من الكوادر البشرية المؤهلة والمدربة والمنتجة وتسخيرها لخدمة المجتمع دون تبعات مالية.<\/li><li>4. الإسهام في إخراج الطاقات المعطلة لدى بعض فئات المجتمع وإتاحة فرصة العطاء لهم لاكتساب خبرة واستثمار أوقات الفراغ وإشباع الحاجات النفسية والاجتماعية كإثبات الذات، والرغبة بالنجاح، والحاجة لترسيخ الانتماء.<\/li><li>5. تدريب فئة الشباب على الإسعافات الأولية لمواجهة الحوادث وكيفية التعامل مع الكوارث.<\/li><li>6. الاستفادة من المخزون الفكري لدى الأفراد واستنهاض الهمم لخدمة القضايا الاجتماعية والإنسانية في دعم هذه القدرات وإتاحة الفرصة للباحثين وطلبة العلم لإجراء الدراسات والبحوث العلمية المتعلقة بالعمل التطوعي.<\/li><li>7. نشر ثقافة التفاني وتعويد النشء على بذل العطاء دون مقابل.<\/li><\/ol>",en:"<ol><li>1. To implement directions of the government in activating the message of the authority adopting volunteering works as well deepen its concepts. Also, to provide opportunities to volunteers and support them in works that correspond the objectives and works of the authority.<\/li><li>2. Strengthen the bonds of society through cooperation and harmony and embody the meanings of solidarity and magnanimity in providing assistance to the most needy people. <\/li><li>3. Utilizing qualified, trained, and productive manpower and dedicate their knowledge and experience to serve the community without financial consequences.<\/li><li>4. Build and strengthen the capabilities of young volunteers by contributing in making use of the energies of the society and provide opportunity to gain experience and invest leisure time to satisfy the psychological and social needs such as self-assertion and desire for success, and the need to establish the sense of belonging. <\/li><li>5. Provide volunteering and training opportunities to prepare young people in development realization and open horizons for them as well train them on first aid to deal with accidents. <\/li><li>6. Make use of intellectual accumulations to serve social and humanitarian issues in supporting capabilities and provide opportunities for researchers and students to conduct scientific studies and research related to volunteer work. <\/li><li>7. Spread awareness and values of dedication and accustoming young people to dedicate effort and time out of charge and empower the concept of volunteering work and its importance at the individual or collective level. <\/li><\/ol>"},VConditions:{ar:"شروط التطوع",en:"Volunteering Conditions"},VConditionsDesc:{ar:"<ol><li>1. أن يكون سعودي الجنسية ويجوز قبول غير السعودي وفق الشروط وينطبق عليه من الحقوق والواجبات والمتطلبات ما ينطبق على المتطوع السعودي بما لا يتعارض مع الأنظمة الأخرى. <\/li><li>2. تناسب المؤهلات العلمية, والخبرات (إن وجدت) مع متطلبات طبيعة العمل الذي سيؤديه المتطوع أو المتطوعة.<\/li><li>3. أن الا يتعارض عمله الأساسي مع عمله التطوعي.<\/li><li>4. أن لا يقل عمره عن 18 عام ولا يزيد عن 60 عاما.<\/li><li>5. أن يكون لائقاً طبياً للقيام بأعمال الهيئة.<\/li><li>6. تعبئة كافة البيانات المطلوبة وتحديثها بشكل مستمر بمنصة التطوع.<\/li><\/ol>",en:"<ol><li>1. Must be Saudi national, non-Saudis may apply in accordance with conditions and applicable rights, duties, and requirements that applicable to Saudi volunteers in a manner that does not conflict with other regulations.<\/li><li>2. Qualifications of applicant and work experiences must correspond with fields of works in the Authority.<\/li><li>3. Volunteering works should not interrupt applicant's job.<\/li><li>4. Applicant should be at least 18 years old and not more than 60 years old.<\/li><li>5. Applicant should be medically fit for works tasked by the Authority.<\/li><li>6. Fill in entire data required and update them continuously on SRCA Volunteers system.<\/li><\/ol>"},VDuties:{ar:"واجبات المتطوع",en:"Volunteer Duties"},VDutiesDesc:{ar:"<ol><li>1. المجالات التطوعية الإنسانية والإغاثية<br/> ا.  تكون مشاركة المتطوع في المجالات التالية.<br />ب. المجالات التطوعية الاجتماعية والتدريبية.<br />ج. المجالات التطوعية الإسعافية.<br />د. المجالات التطوعية الإدارية والدعم اللوجستي. <\/li><li>2. الالتزام بالحضور والانتظام أثناء عقد الدورات التدريبية.<\/li><li>3. .تلبية النداء في اسرع وقت<\/li><li>4. التقيد بالتوجيهات والتعليمات الصادرة إليه وعدم الامتناع عن أداء العمل المكلف به أو رفض الاستمرار فيه بغير عذر.<\/li><li>5. الإلتزام بالسلوك والآداب العامة واحترام مبادئ العمل التطوعي.<\/li><li>6. إالتزام المتطوع في المجال الإسعافي الميداني بالزي الرسمي خلال ساعات العمل<\/li><li>7. إشعار الجهة المختصة بالهيئة عن أي تغيرات تطرأ على عنوان عمله أو سكنه.<\/li><li>8. المحافظة على العهد المسلمة له من ملابس ومعدات وأدوات واستخدامها في الأماكن المحدد لها مع ضمان إعادتها عند تركه للعمل التطوعي.<\/li><li>9. عدم الإدلاء او التصريح بأي معلومات صحفية أو إعلامية تتعلق بالعمل التطوعي بدون تصريح.<\/li><\/ol>",en:"<ol><li>1. Volunteers will contribute in the following fields: <br/>A- Humanitarian and Relief works.<br/>B- Social and Training activities.<br/>C- Ambulatory volunteering fields.<br/>D- Administrative and Logistic support.<\/li><li>2. Maintain attendance and discipline during training courses.<\/li><li>3. Response to volunteering calls as soon as possible.<\/li><li>4. Adhere to directions and instructions given to volunteers with no refrain from performing or continuing of duties assigned without excuse.<\/li><li>5. Maintain public behavior and morals and show respect and courtesy to colleagues and person in charge.<\/li><li>6. Notify the competent authority in SRCA with any change of work or residence address.<\/li><li>7. Maintain the handed-over custodies such as clothes, equipment, and tools to be used in already specified areas with obligation to return them when leaving volunteering work.<\/li><li>8. Do not interact with media on matters related to Volunteer with no prior permission.<\/li><\/ol>"},VTerms1H:{ar:"التمهيد",en:"التمهيد"},VTerms2H:{ar:"نطاق العقد",en:"نطاق العقد"},VTerms3H:{ar:"حقوق الطرف الأول",en:"حقوق الطرف الأول"},VTerms4H:{ar:"التزامات الطرف الثاني",en:"التزامات الطرف الثاني"},VTerms5H:{ar:"أحكام عامة",en:"أحكام عامة"},VTerms1D:{ar:"<ol>يعتبر التمهيد أعلاه والوثائق الملحقة جزء لا يتجزأ من هذا العقد. <\/ol>",en:"<ol>يعتبر التمهيد أعلاه والوثائق الملحقة جزء لا يتجزأ من هذا العقد. <\/ol>"},VTerms2D:{ar:"<ol>المهام الموكلة للطرف الثاني من قبل الطرف الأول بما لا يتعارض مع الأنظمة الصحية بالمملكة العربية السعودية ونظام العمل التطوعي وكافة الأنظمة ذات العلاقة.<\/ol>",en:"<ol>المهام الموكلة للطرف الثاني من قبل الطرف الأول بما لا يتعارض مع الأنظمة الصحية بالمملكة العربية السعودية ونظام العمل التطوعي وكافة الأنظمة ذات العلاقة.<\/ol>"},VTerms3D:{ar:"<ol>            <li>التدريب اللازم في مجاله التطوعي.  <\/li><li>الأجهزة، وأدوات السلامة، والملابس، التي يحتاج إليها العمل التطوعي.  <\/li><li>الإعاشة والمواصلات، وكذلك السكن إذا كان العمل التطوعي خارج مقر الإقامة.  <\/li><li>العلاج إذا أصيب أثناء التدريب أو ممارسة العمل التطوعي، أو خلال ذهابه إلى عمله التطوعي وعودته منه.  <\/li><li>بطاقة تعريفية أو مشهد من الجهة المستفيدة <\/li><li>شهادة تطوع تشمل نوع العمل المنجز ومدته وساعات العمل ووصف الخبرة المكتسبة. <\/li><\/ol>",en:"<ol>            <li>التدريب اللازم في مجاله التطوعي.  <\/li><li>الأجهزة، وأدوات السلامة، والملابس، التي يحتاج إليها العمل التطوعي.  <\/li><li>الإعاشة والمواصلات، وكذلك السكن إذا كان العمل التطوعي خارج مقر الإقامة.  <\/li><li>العلاج إذا أصيب أثناء التدريب أو ممارسة العمل التطوعي، أو خلال ذهابه إلى عمله التطوعي وعودته منه.  <\/li><li>بطاقة تعريفية أو مشهد من الجهة المستفيدة <\/li><li>شهادة تطوع تشمل نوع العمل المنجز ومدته وساعات العمل ووصف الخبرة المكتسبة. <\/li><\/ol>"},VTerms4D:{ar:"<ol>            <li>التحلي بالأخلاق الإسلامية والآداب العامة<li><li>التعهد بالالتزام بكامل البرنامج التدريبي والتعليمات وإنجاز المهام بأمانة ونزاهة وفق مبادئ وأهداف الوزارة والجهات المعنية والأنظمة ذات العلاقة. <li><li>الحفاظ على جودة الخدمات الصحية المقدمة وفقاً لأعلى المعايير المعتمدة وتوجيهات الجهات ذات العلاقة. <li><li>المحافظة على العُهد المسلمة إليه بجميع أشكالها وإعادتها للوزارة. <li><li>الالتزام بكافة الإجراءات الاحترازية والوقائية وإتقان استخدام أدوات الوقاية الشخصية ومراعاة وسائل السلامة وحماية نفسه والعاملين معه، إذا كانت المهمة ذات طبيعة ميدانية، لاحتمالية تعرض المتطوع للإصابة بالعدوى. <li><li>عدم إفشاء أي سر يتعلق بالمهام الموكلة له أو تصوير أي مقاطع أثناء العمل أو بعد تركه. <li><li>عدم الإدلاء أو التصريح بأي معلومة لأي وسيلة إعلامية دون الحصول على إذن رسمي من صاحب الصلاحية،  <li><\/ol>",en:"<ol>            <li>التحلي بالأخلاق الإسلامية والآداب العامة<li><li>التعهد بالالتزام بكامل البرنامج التدريبي والتعليمات وإنجاز المهام بأمانة ونزاهة وفق مبادئ وأهداف الوزارة والجهات المعنية والأنظمة ذات العلاقة. <li><li>الحفاظ على جودة الخدمات الصحية المقدمة وفقاً لأعلى المعايير المعتمدة وتوجيهات الجهات ذات العلاقة. <li><li>المحافظة على العُهد المسلمة إليه بجميع أشكالها وإعادتها للوزارة. <li><li>الالتزام بكافة الإجراءات الاحترازية والوقائية وإتقان استخدام أدوات الوقاية الشخصية ومراعاة وسائل السلامة وحماية نفسه والعاملين معه، إذا كانت المهمة ذات طبيعة ميدانية، لاحتمالية تعرض المتطوع للإصابة بالعدوى. <li><li>عدم إفشاء أي سر يتعلق بالمهام الموكلة له أو تصوير أي مقاطع أثناء العمل أو بعد تركه. <li><li>عدم الإدلاء أو التصريح بأي معلومة لأي وسيلة إعلامية دون الحصول على إذن رسمي من صاحب الصلاحية،  <li><\/ol>"},VTerms5D:{ar:"<ol>            <li>أقل فترة للعمل هي مدة أسبوعين، أربعة أيام في الأسبوع، ست ساعات في اليوم.  <\/li><li>يحق للوزارة أو أي من الجهات التابعة لها استبعاد الطرف الثاني في حال انتفاء الحاجة له دون أي التزامات تترتب على ذلك بما لا يخالف أحكام المادة (3) من هذا العقد. <\/li><li>يحق للوزارة أو أي من فروعها اتخاذ ما تراه مناسبا من إجراءات اتجاه الطرف الثاني في حال مخالفة أحكام هذا العقد والأنظمة الصحية بالمملكة العربية السعودية ونظام العمل التطوعي والأنظمة ذات العلاقة. <\/li><li>يلغي هذا العقد جميع الوعود الشفيهة والمكتوبة سابقا، ولا يجوز للطرف الثاني المطالبة بأي حقوق لم ترد في هذا العقد. <\/li><li>يقر الطرف الثاني بصحة جميع المستندات والوثائق التي تقدم بها. <\/li><li>يقر الطرف الثاني بسلامته الصحية وجاهزيته البدنية وأنه لا يعاني من أي أمراض أو إعاقات لم يفصح عنها للطرف الأول، ولم يختلط بحالات إصابة مؤكدة بفايروس كورونا. <\/li><li>يقر الطرفان بأنهما اطلعا على أحكام هذا العقد وفهماها فهما تاما نافيا للجهالة والغرر والغبن. <\/li><li>تم تحرير هذا العقد من صفحتين وخمسة بنود ونسختين لكل طرف منهما نسخة للعمل بمقتضاها. <\/li><\/ol>",en:"<ol>            <li>أقل فترة للعمل هي مدة أسبوعين، أربعة أيام في الأسبوع، ست ساعات في اليوم.  <\/li><li>يحق للوزارة أو أي من الجهات التابعة لها استبعاد الطرف الثاني في حال انتفاء الحاجة له دون أي التزامات تترتب على ذلك بما لا يخالف أحكام المادة (3) من هذا العقد. <\/li><li>يحق للوزارة أو أي من فروعها اتخاذ ما تراه مناسبا من إجراءات اتجاه الطرف الثاني في حال مخالفة أحكام هذا العقد والأنظمة الصحية بالمملكة العربية السعودية ونظام العمل التطوعي والأنظمة ذات العلاقة. <\/li><li>يلغي هذا العقد جميع الوعود الشفيهة والمكتوبة سابقا، ولا يجوز للطرف الثاني المطالبة بأي حقوق لم ترد في هذا العقد. <\/li><li>يقر الطرف الثاني بصحة جميع المستندات والوثائق التي تقدم بها. <\/li><li>يقر الطرف الثاني بسلامته الصحية وجاهزيته البدنية وأنه لا يعاني من أي أمراض أو إعاقات لم يفصح عنها للطرف الأول، ولم يختلط بحالات إصابة مؤكدة بفايروس كورونا. <\/li><li>يقر الطرفان بأنهما اطلعا على أحكام هذا العقد وفهماها فهما تاما نافيا للجهالة والغرر والغبن. <\/li><li>تم تحرير هذا العقد من صفحتين وخمسة بنود ونسختين لكل طرف منهما نسخة للعمل بمقتضاها. <\/li><\/ol>"},Quote:{ar:"العــمــل الـتـطــوعــي إنـتــمــاء ونــمــاء",en:""},AggreementApproval_MOH:{ar:"أقر أنني قرأت وأوافق على الآليات والقواعد المنظمة للتطوع الصحي (إضغط للقراءة)",en:"I agree to the terms & condition of MOH (click to read)"},AggreementApproval_SRCA:{ar:"أقر أنني قرأت وأوافق على شروط الهلال الأحمر السعودي والشروط المذكورة في الأتفاقيه (إضغط للقراءة)",en:"I agree to the terms & condition of SRCA (click to read)"},AggreementApproval_NEOM:{ar:"أقر أنني قرأت وأوفق على سياسة الشروط والأحكام المذكورة في الاتفاقية (اضغط للقراءة)",en:"I agree to the privacy policy of NEOM (click to read)"},AggrementNeedsApproval:{ar:"الرجاء الموافقة على الإتفاقية",en:"Please accept terms & conditions"},Close:{ar:"إغلاق",en:"Close"},Aggrement:{ar:"الإتفاقية",en:"Agreement"},MaxFileSizeReached:{ar:"أقصى حد مسموح به هو 2048 كيلوبايت",en:"Max allowed file size is 2048KB"},MaxFileSizeReachedMB:{ar:"أقصى حجم مسموح به هو 2 ميجابايت لكل صورة",en:"Max allowed file size is 2 Megabytes for each photo"},InvalidIdEntered:{ar:"لقد أدخلت رقم هوية/إقامة مستخدم مسبقا",en:"National/Residency ID you entered is already used"},ActionsAddRecord:{ar:"إضافة جديد",en:"Add New Record"},ActionsEditRecord:{ar:"تعديل",en:"Edit"},ActionsRemoveRecord:{ar:"حذف",en:"Delete"},Region:{ar:"المنطقة",en:"Region"},RegionsUrlText:{ar:"المنطقة",en:"Region"},City:{ar:"المدينة",en:"City"},TeamsUrlText:{ar:"فريق التطوع",en:"Team"},Team:{ar:"فريق التطوع",en:"Volunteer Team"},TeamActivity:{ar:"نشاط الفريق بالإنجليزية",en:"Team Activity in English"},TeamActivityAr:{ar:"نشاط الفريق بالعربية",en:"Team Activity in Arabic"},TeamLeaderName:{ar:"اسم قائد الفريق بالإنجليزية",en:"Team leader's Name in English"},TeamLeaderNameAr:{ar:"اسم قائد الفريق بالعربية",en:"Team leader's Name in Arabic"},MailSubscriptionUrlText:{ar:"مشتركي النشرة البريدية",en:"Mail Subscribers"},MailSubscription:{ar:"مشتركي النشرة البريدية",en:"Mail Subscribers"},SendNotificationToSubscribers:{ar:"إرسال تنبيه ",en:"Send Notification"},IsSubscribed:{ar:"مشتركي النشرة البريدية",en:"Is Subscribed"},CitiesUrlText:{ar:"المدينة",en:"City"},SelectRole:{ar:"الوظيفه/الدور",en:"Select Role"},SelectUser:{ar:"مستخدمي",en:"Select User"},lbl_Count:{ar:"العدد",en:"Count"},CertificateFields_Administration:{ar:"المجالات العلمية",en:"Certificate Fields"},PreferencesSettings:{ar:"إعدادات الحساب",en:"Preferences and Settings"},PreferedLanguage:{ar:"اللغة المفضلة",en:"Prefered Language"},NotificationsReceiveVia:{ar:"إستقبال الرسائل بواسطة",en:"Receive Notifications Via"},ResetPassword:{ar:"اعادة تعيين كلمة المرور",en:"Reset Password "},English:{ar:"الإنجليزية",en:"English"},Arabic:{ar:"العربية",en:"Arabic"},NewPassword:{ar:" كلمة المرور الجديدة",en:" New Password"},ConfirmNewPassword:{ar:" تأكيد كلمة المرور الجديدة",en:" Confirm New Password"},SavePreferences:{ar:"حفظ الإعدادات",en:"Save Preferences"},Preferences:{ar:"الإعدادات",en:"Preferences"},BasicInfo:{ar:"البيانات الرئيسية",en:"Basic Info"},PersonalInfo:{ar:"البيانات الشخصية",en:"Personal Information"},FullName:{ar:"الاسم رباعي (بالعربية)",en:"Full Name (Arabic)"},FullNameEn:{ar:"الاسم رباعي (بالإنجليزية)",en:"Full Name (English)"},Full_Name:{ar:"الاسم رباعي",en:"Full Name"},Title:{ar:"اللقب",en:"Title"},Mr:{ar:"السيد",en:"Mr."},Ms:{ar:"السيدة",en:"Mrs."},Miss:{ar:"الآنسة",en:"Miss"},SecondName:{ar:"اسم الاب",en:"Second Name"},ThirdName:{ar:"اسم الجد",en:"Third Name"},BirthDate:{ar:"تاريخ الميلاد",en:"Birth Date"},BirthDateAr:{ar:"تاريخ الميلاد",en:"Birth Date"},BirthPlace:{ar:"مكان الميلاد",en:"Birth Place"},JobRoleType:{ar:"الدور الوظيفي",en:"Job Role"},GenderType:{ar:"الجنس",en:"Gender Type"},Male:{ar:"ذكر",en:"Male"},Female:{ar:"أنثى",en:"Female"},MaritalStatus:{ar:"الحالة الإجتماعية",en:"Marital Status"},Single:{ar:"أعزب",en:"Single"},Married:{ar:"متزوج",en:"Married"},ChildrenCount:{ar:"عدد الأطفال",en:"Children Count"},Children:{ar:"أطفال",en:"Children"},Child:{ar:"طفل",en:"Child"},IdInfo:{ar:"بيانات الهوية/الإقامة",en:"National/Residency ID w"},Nationality:{ar:"الجنسية",en:"Nationality"},IdType:{ar:"نوع الهوية",en:"Id Type"},IdNumber:{ar:"رقم الهوية/الإقامة",en:"National/Residency ID"},IdExpiryDate:{ar:"إنتهاء الهوية/الإقامة",en:"National/Residency ID Expiry Date"},IdExpiryDateAr:{ar:"إنتهاء الهوية/الإقامة",en:"National/Residency ID Expiry Date"},ContactInfo:{ar:"بيانات التواصل",en:"Contact Information"},PhoneNumber:{ar:"رقم الهاتف",en:"Phone Number"},MobileNumber:{ar:"رقم الجوال",en:"Mobile Number"},Email:{ar:"البريد الإلكتروني",en:"Email"},AddressInfo:{ar:"العنوان",en:"Address Information"},District:{ar:"الحي",en:"District"},Street:{ar:"الشارع",en:"Street"},BuildingNo:{ar:"رقم المبنى",en:"Building Number"},PostalCode:{ar:"الرقم البريدي",en:"Postal Code"},ExtraNumber:{ar:"الرقم الإضافي",en:"Extra Number"},BloodGroup:{ar:"فصيلة الدم",en:"Blood Group"},IsCurrentJob:{ar:"الوظيفة الحالية",en:"Current job"},CurrentRole:{ar:"ما هو دورك الوظيفي الحالي؟",en:"What is your current profession role?"},GeneticDiseasesExist:{ar:"هل لديك أمراض وراثية أو أمراض مزمنة؟",en:"Any Genetic Diseases Exist?"},GeneticDiseases:{ar:"وصف المرض",en:"Disease Description"},Yes:{ar:"نعم",en:"Yes"},No:{ar:"لا",en:"No"},AreYouSure:{ar:"هل أنت متأكد؟",en:"Are you sure?"},EmergencyContacts:{ar:"التواصل في حالة الطوارئ",en:"Emergency Contacts"},NameGeneric:{ar:"الاسم",en:"Name"},Relation:{ar:"العلاقة",en:"Relation"},AddAnotherContact:{ar:"إضافة شخص أخر",en:"Add Another Contact"},RemoveEmergencyContact:{ar:"حذف",en:"Remove Contact"},Certificates:{ar:"الشهادات الحاصل عليها",en:"Certificates"},Certificate:{ar:"الشهادة",en:"Certificate"},CertificateField:{ar:"التخصص",en:"Field"},CertificateDate:{ar:"تاريخ الشهادة",en:"Issue Date"},Country:{ar:"الدولة",en:"Country"},UniversityOrInstitute:{ar:"الجامعه/المعهد",en:"University/Institute"},CertificateAttachment:{ar:"صورة الشهادة",en:"Certificate Attachment"},UniversityOrInstituteAttachment:{ar:"صورة الإفادة",en:"University Attachment"},Trainings:{ar:"الدورات",en:"Trainings"},CourseName:{ar:"اسم الدورة",en:"Course Name"},TrainingDuration:{ar:"مدة الدورة",en:"Duration"},TrainingOrganization:{ar:"جهة التدريب",en:"Organization"},TrainingStartDate:{ar:"تاريخ البدء",en:"Start Date"},TrainingEndDate:{ar:"تاريخ الإنتهاء",en:"End Date"},TrainingAttachment:{ar:"صورة الشهادة",en:"Certificate"},RemoveTraining:{ar:"حذف",en:"Remove"},AddAnotherTraining:{ar:"إضافه دورة أخرى",en:"Add Training"},Languages:{ar:"اللغات التي تجيدها",en:"Languages"},LanguageName:{ar:"اللغة",en:"Language"},VolunteeringTimes:{ar:"أوقات التطوع",en:"VolunteeringTimes"},Timely:{ar:"التوقيت المناسب",en:"Timely"},Morning:{ar:"صباحي",en:"Morning"},Evening:{ar:"مسائي",en:"Evening"},Both:{ar:"كلاهما",en:"Both"},FavoriteDays:{ar:"الأيام المفضلة",en:"Favorite days "},ProfessioncyLevel:{ar:"درجة الإتقان",en:"Level"},RemoveLanguage:{ar:"حذف",en:"Remove"},AddAnotherLanguage:{ar:"إضافة لغة أخرى",en:"Add Another Language"},Skills:{ar:"المهارات",en:"Skills"},Remove:{ar:"حذف",en:"Remove"},AddAnotherSkill:{ar:"إضافة مهارة أخرى",en:"Add Another Skill"},AddAnotherVWork:{ar:"إضافة مشاركة",en:"Add Another Volunteering Work"},VolunteerWorks:{ar:"المشاركات التطوعية السابقة",en:"Volunteering Work"},OrganizationName:{ar:"اسم الجهة",en:"Organization Name"},VWorkDuration:{ar:"مدة المشاركة",en:"Duration"},VWorkRole:{ar:"الوظيفة/الدور",en:"Role"},VWorkAttachment:{ar:"شهادة الحضور",en:"Attachment"},WorkFieldsAndPlaces:{ar:"مجال العمل التطوعي",en:"Volunteer Fields"},WorkFields:{ar:"مجالات العمل التطوعي",en:"Volunteering Work Fields"},PreferredWorkFields:{ar:"مجالات العمل التطوعي المفضلة",en:"Preferred Volunteering Work Fields"},AbilityToStayAbroad:{ar:"هل يمكنك البقاء خارج المملكة لتقديم الخدمه؟",en:"Ability to stay abroad to provide serivce?"},AbilityToStayAbroadDuration:{ar:"المده التي تستطيع فيها البقاء خارج المملكة؟",en:"Preferred Aborad Duration"},AddAnotherWorkPlace:{ar:"إضافة منطقة أخرى",en:"Add Another WorkPlace"},Days:{ar:"أيام",en:"Days"},Week:{ar:"أيام الاسبوع",en:"Days"},AbilityToCallDuringWork:{ar:"هل تمانع من الاتصال بك في جهة عملك؟",en:"Ability To Call You During Work?"},AbilityToDedicate:{ar:"هل تستطيع التفرغ للمهام التي تكلف بها من قبل الهيئة؟",en:"Ability To Dedicate Totally To SRCA Work?"},AbilityToCallDuringVacations:{ar:"هل تمانع من استدعائك في الإجازات الرسمية عند الضرورة؟",en:"Ability To Call You During Vacations?"},ExtraInfo:{ar:"بيانات إضافية",en:"Extra Information"},OtherAttachments:{ar:"مرفقات أخرى",en:"Other Attachments"},FileName:{ar:"اسم الملف",en:"File Name"},FileDescription:{ar:"وصف الملف",en:"File Description"},AddAnotherAttachment:{ar:"إضافة ملف أخر",en:"Add Another Attachment"},UserInfo:{ar:"معلومات الحساب",en:"User Information"},UserName:{ar:"اسم المستخدم",en:"User Name"},Password:{ar:"كلمة المرور",en:"Password"},RequestInfo:{ar:"بيانات الطلب",en:"Registration Information"},RegistrationId:{ar:"رقم الطلب",en:"Registration Number"},RegistrationStatus:{ar:"حالة الطلب",en:"Registration Status"},AppointmentTime:{ar:"وقت المقابلة",en:"Appointment Time"},AppointmentLocation:{ar:"مكان المقابلة",en:"Appointment Location"},SaveDraft:{ar:"حفظ لوقت لاحق",en:"Save Draft"},SubmitRequest:{ar:"حفظ وتقديم الطلب",en:"Submit Registration"},SkillTypeAhead:{ar:"ابحث عن مهارة أو أضف جديد",en:"Search for a skill or Add New"},NoResultsFound:{ar:"لا يوجد نتائج للبحث",en:"No results found."},WorkPlaces:{ar:"مناطق العمل",en:"Work Places"},Expertises:{ar:"الخبرات السابقة",en:"Expertises"},Profession:{ar:"الوظيفة الحالية",en:"Profession"},WorkPhone:{ar:"هاتف العمل",en:"Work Phone"},YearsOfExperience:{ar:"سنوات الخبرة",en:"Years Of Experience"},ExpertiseAttachment:{ar:"شهادة الخبرة",en:"Expertise Certificate"},AddAnotherExpertise:{ar:"إضافة مهنة أخرى",en:"Add Another Expertise"},WorkEntity:{ar:"جهة العمل",en:"Work Entity"},Year1:{ar:"المرحلة الأولي",en:"First Year"},Year2:{ar:"المرحلة الثانية",en:"Second Year"},Year3:{ar:"المرحلة الثالثة",en:"Third Year"},Year4:{ar:"المرحلة الرابعة",en:"Fourth Year"},Year5:{ar:"المرحلة الخامسة",en:"Fifth Year"},Year6:{ar:"المرحلة السادسة",en:"Sixth Year"},Year7:{ar:"المرحلة السابعة",en:"Seventh Year"},UniversityOrInstituteYear:{ar:"العام الجامعي",en:"College Year"},ErrorLoadingData:{ar:"حدث خطأ في الحصول على البيانات",en:"Error loading data."},ErrorSavingData:{ar:"حدث خطأ في حفظ البيانات، الرجاء المحاولة لاحقا",en:"Error has been occurred, please try again later"},GenericFillFormError:{ar:"الرجاء التأكد من إكمال جميع الحقول المطلوبة",en:"Please make sure all required fields are filled in"},RegistrationSavedSuccessfully:{ar:"تم حفظ الطلب بنجاح. يمكنك الإطلاع على طلبك من القائمة الرئيسية (صفحتي) ثم إختيار (طلب التسجيل الخاص بي) وذلك بعد تسجيل الدخول",en:"Your request has been saved successfully. You can see your application from home page (My Page) and then select (My Registration Application). But make sure you're logged in."},NotificationsSent:{ar:"تم الإرسال لعدد متطوعين ",en:"Notifications Sent to volunteers count "},NotificationsSentForSubscribers:{ar:"تم الإرسال لعدد مشتركين ",en:"Notifications Sent to Subscribers count "},Confirmation:{ar:"هل أنت متأكد؟",en:"Are you sure?"},FinalAccept:{ar:"الموافقة النهائية",en:"Final Acceptance"},Accept:{ar:"موافق",en:"Ok"},PrintBadge:{ar:"طباعة البطاقة الشخصية",en:"Print Personal Badge"},Badge:{ar:"البطاقة الشخصية",en:"Personal Badge"},Volunteer:{ar:"متطوع",en:"Volunteer"},HijriCalendarName:{ar:"هجري",en:"Hijri"},PassportNumber:{ar:"رقم جواز السفر",en:"Passport Number"},PassportCountry:{ar:"جهة الإصدار",en:"Issuing Country"},PassportExpDate:{ar:"تاريخ إنتهاء جواز السفر",en:"Passport Expiry Date"},TwitterFeed:{ar:"أخبارنا على تويتر",en:"Twitter Feed"},IdAttachment:{ar:"صورة الهوية",en:"Id Photo"},PhotoAttachment:{ar:"الصورة الشخصية",en:"Personal Photo"},CfhsAttachment:{ar:"الشهادة",en:"Certificate"},InitiallyAcceptAction:{ar:"موافقة مبدئية",en:"Initial Accept"},InitiallAccept:{ar:"موافقة مبدئية",en:"Initial Accept"},RejectAction:{ar:"رفض الطلب",en:"Reject"},AcceptAction:{ar:"قبول الطلب",en:"Accept"},ViewDetails:{ar:"عرض البيانات",en:"View Details"},ViewDetail:{ar:"عرض البيانات",en:"View Details"},ConfirmFinalApproval:{ar:"هل أنت متأكد من قبول الطلب؟",en:"Are you sure for final approval?"},Confirm:{ar:"تأكيد",en:"Confirm"},RejectReason:{ar:"سبب الرفض",en:"Please provide rejection reason"},RegId:{ar:"رقم الطلب",en:"Registration Id"},lbl_RegistrationDate:{ar:"تاريخ الطلب",en:"Registration Date"},lbl_RequestStatus:{ar:"حالة الطلب",en:"Request Status"},lbl_users:{ar:"مستخدمي النظام",en:"System Users"},ApplicationNotes:{ar:"الملاحظات",en:"Application Notes"},AddApplicationNotes:{ar:"أضف ملاحظة",en:"Add Application Notes"},Date:{ar:"التاريخ",en:"Date"},Reviewer:{ar:"المراجع",en:"Reviewer"},AllFieldsRequired:{ar:"جميع الحقول المشار إليها بعلامة النجمة الحمراء مطلوبة",en:"All fields marked with red star are required"},ConfirmPassword:{ar:"تأكيد كلمة المرور",en:"Confirm Password"},ErrorConfirmPassword:{ar:"كلمات المرور غير متطابقة",en:"Password and confirm password does not match"},EdtEventRegionRequired:{ar:"اختر المنطقة",en:"Select Region"},EdtEventCityRequired:{ar:"اختر المدينة",en:"Select City"},MobileAlreadyExist:{ar:"رقم الجوال مسجل مسبقا",en:"Mobile Number is already exist"},EmailAlreadyExist:{ar:"البريد الالكتروني مسجل مسبقا",en:"Email is already exist"},IdAlreadyExist:{ar:"رقم الهوية/الإقامة مسجل مسبقا",en:"National/Residency ID is already exist"},UserAlreadyExist:{ar:"اسم المستخدم الذي أدخلته غير متاح، من فضلك أدخل اسم مستخدم آخر",en:"Username you entered is already used, please enter another username"},SelectAtleastOneContact:{ar:"أدخل بيانات الاتصال عند الطوارئ",en:"Please Select At least One Emergency Contact"},SelectAtleastOneLanguage:{ar:"أدخل اللغات التي تجيدها",en:"Please Select At least One Language"},PleaseProvideTrainigFullDetails:{ar:"أدخل شهادات التدريب",en:"Please Provide full Details of Training"},StartDateMustBeLessThanEndDate:{ar:"تاريخ البداية يجب أن يكون أقل من تاريخ النهاية",en:"Start Date must be less than end Date"},PleaseProvideFullVolunteerWorkDetails:{ar:"أدخل تفاصيل العمل السابقة مع الشهادات",en:"Please Provide Full Volunteering Work Details with certificate"},PleaseProvideFullAttachmentDetails:{ar:"الرجاء رفع الملفات أو حذف الوصف إن لم يكن هناك ملف للرفع",en:"Please upload missing files or remove file description if there is no file to upload"},GraduationCertificatesRequired:{ar:"يجب ملء حقل الشهادات الحاصل عليها",en:"Please fill graduation certificate section"},ReferenceNumber:{ar:"الرقم المرجعي",en:"Reference Number"},PleaseProvideFullEmergencyContacts:{ar:"أدخل تفاصيل جهة الاتصال عند الطوارئ",en:"Please Provide Full Details of Emergency Contacts"},RegistrationSuccessfull_SRCA:{ar:" تم تسجيل بياناتك بنجاح وقبولك بشكل مبدئي في منصة التطوع ، ورقمك المرجعي هو   : ",en:"Your registration has been successfully accepted. Your Volunteer Reference Number is : "},RegistrationSuccessfull_MOH:{ar:" تم تسجيل بياناتك بنجاح وقبولك بشكل مبدئي في منصة التطوع الصحي، ورقمك المرجعي هو   : ",en:"Your registration has been successfully accepted. Your Volunteer Reference Number is : "},RegistrationSuccessfull_NEOM:{ar:" تم تسجيل بياناتك بنجاح وقبولك بشكل مبدئي في منصة التطوع ، ورقمك المرجعي هو   : ",en:"Your registration has been successfully accepted. Your Volunteer Reference Number is : "},RegistrationSuccessfullRedirect:{ar:" تم التسجيل بنجاح، سيتم إرسال رابط الدورة المقدمة من بوابة التعلم عن بعد عبر بريدك الالكتروني، رقمك المرجعي هو  ",en:"Your registration has been done successfully. If you have not completed a mandatory training required, you will receive it on your registered email address. Your Volunteer Reference Number is : "},StartDateValidation:{ar:"تاريخ البداية يجب أن يكون أقل من أو يساوي تاريخ النهاية",en:"Start Date must be less than or equal to end Date"},EndDateValidation:{ar:"تاريخ النهاية يجب أن يكون أكبر من أو يساوي تاريخ البداية",en:"End Date must be greater than or equal to start Date"},RegStartDateValidation:{ar:"تاريخ بداية التسجيل يجب أن يكون أقل من تاريخ نهاية التسجيل",en:"Registration Start Date must be less than or equal to end Date"},RegEndDateValidation:{ar:"تاريخ بداية التسجيل يجب أن يكون أقل من تاريخ نهاية التسجيل",en:"Registration End Date must be greater than or equal to start Date"},PendingVolunteer:{ar:"أدخل النص",en:"Text must not be empty or only spaces"},ExportPhones:{ar:"تصدير بيانات التواصل",en:"Export Mobile Numbers"},InputTextValidation:{ar:"أدخل النص",en:"Text must not be empty or only spaces"},SelectOneWorkFields:{ar:"اختر مجالات العمل",en:"Select at least one work field"},UniqueTextValidation:{ar:"التكرار غير مسموح به",en:"Duplicates are not allowed"},EventName:{ar:"اسم الفرصة التطوعية",en:"Event Name"},EventType:{ar:"نوع الفرصة التطوعية",en:"Event Type"},EventDescription:{ar:"وصف الفرصة التطوعية",en:"Description"},EventStartDate:{ar:"تاريخ البداية",en:"Start Date"},EventEndDate:{ar:"تاريخ النهاية",en:"End Date"},EventRegStartDate:{ar:"تاريخ بداية التسجيل",en:"Registration Start Date"},EventRegEndDate:{ar:"تاريخ نهاية التسجيل",en:"Registration End Date"},EventDuration:{ar:"المدة",en:"Duration"},EventMinimumContribution:{ar:"الحد الأقصى للمشاركة",en:"Maximum Contribution"},Test:{ar:"اختبار",en:"Test"},Events_admin:{ar:"إدارة الفرص التطوعية",en:"Events Management"},RequestStatus:{ar:"حالة الطلب",en:"Request Status"},cannot_add_message:{ar:"عفوا! لا يمكن الإضافة حاليا لوجود خطأ بالنظام",en:"Sorry! Can't add record due to some errors in system."},cannot_update_message:{ar:"عفوا! لا يمكن التعديل حاليا لوجود خطأ بالنظام",en:"Sorry! Can't update record due to some errors in system."},cannot_delete_message:{ar:"عفوا! لا يمكن الحذف حاليا لوجود خطأ بالنظام",en:"Sorry! Can't remove record due to some errors in system."},InternalServerError:{ar:"حدث خطأ بالنظام. الرجاء المحاولة لاحقا",en:"An error has been occurred, please contact system admin."},ErrorMessage:{ar:"حدث خطأ بالنظام. الرجاء المحاولة لاحقا",en:"An error has been occurred, please contact system admin."},ConfirmCancelInvitation:{ar:"هل أنت متأكد من إلغاء الدعوة؟",en:"Are you sure to cancel this invitaion."},ConfirmAcceptInvitation:{ar:"هل أنت متأكد من قبول الدعوة؟",en:"Are you sure to accept this invitaion."},ConfirmRejectInvitation:{ar:"هل أنت متأكد من رفض الدعوة؟",en:"Are you sure to reject this invitation."},lbl_eventInvitations:{ar:"الدعوات المرسلة",en:"Event Invitations"},lbl_volunteersContribution:{ar:"مشاركة المتطوعين",en:"Volunteers Contribution"},lbl_InviteVolunteers:{ar:"دعوة المتطوعين",en:"Invite Volunteers"},Rating:{ar:"التقييم",en:"Rating"},Review:{ar:"الملاحظات",en:"Review"},CheckInTime:{ar:"وقت الدخول",en:"CheckIn Time"},CheckOutTime:{ar:"وقت الخروج",en:"CheckOut Time"},ParticipatedIncidents:{ar:"الحالات المتعامل معها",en:"Participated Incidents"},Age:{ar:"العمر",en:"Age"},StartTime:{ar:"وقت البدء",en:"Start Time"},CloseTime:{ar:"وقت الإنتهاء",en:"Close Time"},Complaints:{ar:"الشكوى",en:"Complaints"},ProceduresTaken:{ar:"الإجراءات التي أتخذت",en:"Procedures Taken"},selectDay:{ar:"إختر يوم",en:"Select Day"},selectMonth:{ar:"إختر شهر",en:"Select Month"},selectYear:{ar:"إختر سنة",en:"Select Year"},AddNewEvent:{ar:"إضافة نوع الفرصة التطوعية",en:"Add New Event"},Submit:{ar:"حفظ",en:"Submit"},AddNewEventWorkField:{ar:"إضافة مجالات العمل للفرصة تطوعية",en:"Add New Event Work Field"},AddNewUser:{ar:"إضافة مستخدم جديد",en:"Add New User"},AddNewWorkField:{ar:"إضافة مجال عمل",en:"Add New Work Field"},AddNewEventType:{ar:"إضافة نوع فرصة تطوعية",en:"Add New Event Type"},AddNewSkill:{ar:"إضافة مهارة",en:"Add New Skill"},AddNewCertificateType:{ar:"إضافة نوع شهادة",en:"Add New Certificate Type"},AddNewCertificateField:{ar:"إضافة شهادة",en:"Add New Certificate Field"},lbl_username:{ar:"اسم المستخدم",en:"Username"},FirstName:{ar:"الاسم الأول",en:"First Name"},LastName:{ar:"العائلة",en:"Family name"},lbl_password:{ar:"كلمة المرور",en:"Password"},lbl_captcha:{ar:"رمز الحماية",en:"Security Code"},lbl_language:{ar:"اللغـة",en:"Language"},lbl_Login:{ar:"تسجيل الدخول",en:"Login"},lbl_RegisterWithNafaz:{ar:"تسجيل عبر نفاذ / أبشر",en:"Absher/NAFAZ Login"},lbl_RememberMe:{ar:"تذكرني",en:"Remember Me"},lbl_userNameOrEmail:{ar:"اسم المستخدم / البريد الالكتروني",en:"UserName / Email"},lbl_ForgetPassword:{ar:"نسيت كلمة المرور",en:"Forgot Password"},lbl_WrongEmail:{ar:"البيانات المدخلة خاطئة!",en:"Invalid Information Provided !"},lbl_ForgetUsername:{ar:"نسيت اسم المستخدم",en:"Forgot Username"},Name:{ar:"الاسم بالإنجليزية",en:"Name"},NameAr:{ar:"الاسم بالعربية",en:"Arabic Name"},confirm:{ar:"هل انت متأكد؟",en:"Are you sure?"},Approve:{ar:"موافقة",en:"Approve"},Cancel:{ar:"إلغاء",en:"Cancel"},lbl_Oooops:{ar:"عفوا",en:"Oooops!"},lbl_PageNotFound:{ar:"لم يتم العثور على الصفحة",en:"Page Not Found!"},success_edit:{ar:"تم التعديل بنجاح",en:"Successfully Edited"},success_activate:{ar:"تم التشغيل بنجاح",en:"Activated Successfully"},success_deactivate:{ar:"تم التعطيل بنجاح",en:"Deactivated Successfully"},success_add:{ar:"تمت الاضافة بنجاح",en:"Added Successfully"},success_remove:{ar:"تم الحذف بنجاح",en:"Removed Successfully"},success_save:{ar:"تم الحفظ بنجاح",en:"Saved Successfully"},success_sent:{ar:"تم الارسال بنجاح",en:"Sent Successfully"},success_configured:{ar:"تم التعديل:",en:"Successfully Configured: "},failed_configured:{ar:"فشل التعديل:",en:"Failed To Configure: "},error_occured:{ar:"حـدث خطــأ",en:"Error occured"},error_ChildAreasExist:{ar:"يجب تعطيل المناطق التابعة أولا",en:"You Must Deactivate Children Areas First"},error_wrongCaptcha:{ar:"رمز دخول خاطئ",en:"Wrong Captcha !"},error_lockeduser:{ar:"هذا المستخدم مغلق",en:"This user is locked !"},error_wrongcredentials:{ar:"البيانات المدخلة خاطئة!",en:"Invalid Information Provided !"},error_InvalidInfo:{ar:"برجاء إدخال معلومات صحيحة",en:"Please enter valid information !"},invalid_event_dates:{ar:"برجاء إختيار تواريخ صحيحه لبداية ونهاية التسجيل وبداية ونهاية الفرصة التطوعية",en:"Please enter valid registration start/end dates and start/end dates for the event."},Error_ReqCredentials:{ar:"أدخل اسم المستخدم وكلمة المرور بشكل صحيح",en:" Please enter your Username and Password"},lbl_EditProfile:{ar:"تعديل البيانات الشخصية",en:"Edit Profile"},lbl_changeLang:{ar:"English",en:"العربية"},lbl_LanguageTitle:{ar:"الإنجليزية",en:"Arabic"},lbl_ChangePassword:{ar:"كلمة المرور",en:"Password"},lbl_Save:{ar:"حفظ",en:"Save"},lbl_logout:{ar:"خـروج",en:"Logout"},lbl_OldPassword:{ar:"كلمة المرور الحالية",en:"Current Password"},lbl_NewPassword:{ar:"كلمة المرور الجديدة",en:"New Password"},lbl_ExpMessage:{ar:"انتهت صلاحية الرابط",en:"The link has expired..!"},lbl_ApprovedUser:{ar:"تم الاعتماد بنجاح",en:"Successfully approved"},lbl_Ok:{ar:"حسناً",en:"Ok"},lbl_ResendEmail:{ar:"إعادة إرسال البريد الإلكتروني",en:"Resend Email"},lbl_HostExample:{ar:"ex:smtp.srca.com",en:"ex:smtp.srca.com"},lbl_PortExample:{ar:"ex:25",en:"ex:25"},lbl_usermanagement:{ar:"إدارة المستخدمين",en:"Users Management"},lbl_AddUser:{ar:"إضافة مستخدم",en:"Add User"},lbl_BasicInformation:{ar:"البيانات الأساسية",en:"Basic Information"},lbl_FullName:{ar:"الاسـم الكامـل",en:"Full Name"},lbl_ConfirmPassword:{ar:"تأكيد كلمة المرور",en:"Confirm Password"},lbl_CloseTitle:{ar:"إغلاق",en:"Close"},lbl_Email:{ar:"البريد الالكتروني",en:"Email"},lbl_ResetPassword:{ar:"إستعادة كلمة المرور",en:"Reset Password"},lbl_RestoreUsername:{ar:"إستعادة اسم المستخدم",en:"Restore Username"},lbl_SendEmail:{ar:"إرسال بريد إلكتروني",en:"Send Email"},lbl_PrivilegesInfo:{ar:"صلاحيات المستخدم",en:"User's Privileges"},lbl_Role:{ar:"دور المستخدم",en:"User's Role"},lbl_InActive:{ar:"الحساب غير نشط",en:"Is InActive"},lbl_Area:{ar:"منطقة المستخدم",en:"User's Area"},lbl_SelectArea:{ar:"اختر منطقة",en:"Select Area"},lbl_AdditionalInfo:{ar:"معلومات إضافية",en:"Additional Information"},lbl_Phone:{ar:"رقم الجوال",en:"Mobile Number"},lbl_DriverLicence:{ar:"رخصة القيادة",en:"Driver License"},lbl_PersonalID:{ar:"الهوية الشخصية",en:"Personal ID"},lbl_Address:{ar:"عنوان المستخدم",en:"User's Address"},lbl_PersonalPhoto:{ar:"الصورة الشخصية",en:"Personal Photo"},lbl_ReceiveSMS:{ar:"إستلام رسائل نصية",en:"Receive SMS"},lbl_ReceiveEmail:{ar:"إستلام بريد إلكتروني",en:"Receive Emails"},lbl_Image:{ar:"صورة",en:"Image"},lbl_RemoveImage:{ar:"حذف الصورة",en:"Remove Image"},UpdateVolunteerInfoRequired:{ar:"الرجاء تحديث البيانات الشخصية حتى تتمكن من الانضمام",en:"Please update your personal data so you can join the event"},NotAllowToJoinEvent:{ar:"لا يمكن ارسال طلب انضمام لأكثر من فرصتين",en:"It is not possible to send a joining request for more than two event"},VolunteerJoinedAnotherEvent:{ar:"لا يمكن ارسال طلب الانضمام ل اشتراكك في فرصة اخري",en:"A request to join cannot be sent to participate in another opportunity"},AcceptInvitation:{ar:"قبول الدعوة",en:"Accept Invitation"},RejectInvitation:{ar:"رفض الدعوة",en:"Reject Invitation"},EventDetails:{ar:"تفاصيل الفرصة التطوعية",en:"Event Details"},EventInvitationUrlText:{ar:"قبول ورفض الدعوات",en:"Accept/Reject Invitations"},CurrentEventsUrlText:{ar:"الفرص التطوعية النشطة",en:"Current Events"},RecentEventsUrlText:{ar:"الفرص التطوعية السابقة",en:"Recent Events"},RecentEventsClosedUrlText:{ar:"الفرص التطوعية المنتهية",en:"Closed Events"},IncidentInvitationsUrlText:{ar:"بلاغات العمليات",en:"Incident Requests"},MyStatusUrlText:{ar:"حالتي",en:"My Status"},LandMark:{ar:"المعلم",en:"LandMark"},NoInvitedEvent:{ar:"لا توجد لديك طلبات انضمام أو دعوات للفرص تطوعية",en:"You do not have any active and invited events"},Contribute:{ar:"شارك",en:"Contribute"},CurrentStatus:{ar:"حالة الدعوة",en:"Invitation Status"},Success:{ar:"نجاح",en:"Success"},ErrorUpdating:{ar:"خطأ أثناء التحديث",en:"Error Updating"},MyContribution:{ar:"مشاركاتي",en:"My Contribution"},PastEvents:{ar:"الفرص التطوعية السابقة",en:"Past Events"},IncidentInfo:{ar:"معلومات الحالة",en:"Incident Information"},ProceudresTaken:{ar:"الإجراءات المتخذة",en:"Procedures Taken"},Complaint:{ar:"الشكوى",en:"Complaint"},InvalidStartDate:{ar:"خطأ بالتاريخ, لا يمكن أن يكون أكبر من تاريخ الاغلاق",en:"Invalid date, cannot be greater than close date"},InvalidEndDate:{ar:"خطأ بالوقت, لا يمكن أن يكون أقل من وقت البدء",en:"Invalid date, cannot be less than start time"},StartDateisRequired:{ar:"وقت البداية مطلوب",en:"Start Time is Required"},SuccessfullyAdded:{ar:"تمت الاضافة بنجاح",en:"Successfully Added"},EditorView:{ar:"عرض أو تعديل",en:"Edit or View"},PastContributionUrlText:{ar:"مشاركاتي",en:"Your Contributions"},PastContributionWithCertificates:{ar:"المشاركات/ الشهادات",en:"Contributions / Certification"},Add:{ar:"إضافة",en:"Add"},Update:{ar:"تعديل",en:"Update"},UpdatedSuccessfully:{ar:"تم التعديل بنجاح",en:"Updated Successfully"},InvalidContribution:{ar:"خطأ بالبيانات",en:"Invalid Contribution Record"},InitiallyAcceptedUrlText:{ar:"المقبولون مبدئيا",en:"Initially Accepted"},RejectedVolunteersUrlText:{ar:"المرفوضون",en:"Rejected"},ApprovedVolunteersUrlText:{ar:"المقبولون نهائيا",en:"Approved"},ApprovedVolunteers:{ar:"المتطوعون المقبولون نهائيا",en:"Approved Volunteers"},RejectedVolunteers:{ar:"الطلبات المرفوضة",en:"Rejected Volunteers"},InitiallyAcceptedVolunteers:{ar:"المتطوعون المقبولون مبدئيا",en:"Initially Accepted Volunteers"},OpenInvitationsEventsUrlText:{ar:"الفرص التطوعية المستقبلية",en:"Upcoming Events"},Search:{ar:"بحث",en:"Search"},SearchFilters:{ar:"محددات البحث",en:"Search Filters"},SendNotificationToApproved:{ar:"إرسال تنبيه ",en:"Send Notification"},SendNotificationToAccepted:{ar:"إرسال تنبيه ",en:"Send Notification"},SendNotificationToSubmitted:{ar:"إرسال تنبيه",en:"Send Notification"},SendNotificationBasedOnStatus:{ar:"إرسال تنبيه",en:"Send Notification"},SubmitNotification:{ar:"إرسال",en:"Send"},Send:{ar:"إرسال",en:"Send"},NotificationHeader:{ar:"عنوان التنبيه",en:"Notification Header"},NotificationText:{ar:"محتوى التنبيه",en:"Notification Text"},AddBulkPerformance:{ar:"إضافة مؤشر أداء جماعي",en:"Add Bulk Performance Report"},StartTimeRequired:{ar:"تاريخ البدء إلزامي",en:"Start Time Required"},EndTimeRequired:{ar:"تاريخ الإنتهاء إلزامي",en:"End Time Required"},Clear:{ar:"مسح",en:"Clear"},InvitedVolunteersHeader:{ar:"المدعوين للفرصة تطوعية ",en:"Invited Volunteers "},InvitedVolunteers:{ar:"الدعوات المرسلة",en:"Join Requests"},SendInvitationConfirmation:{ar:"هل أنت متأكد من إرسال الدعوات؟",en:"Are your sure you want to send these invitations?"},CancelInvitationConfirmation:{ar:"هل أنت متأكد من إلغاء الدعوات؟",en:"Are your sure you want to cancel these invitations?"},RequestToReleaseConfirmation:{ar:"هل أنت متأكد من طلب الانسحاب؟",en:"Are you sure about the withdrawal request?"},PleaseSelectVolunteers:{ar:"الرجاء إختيار متطوعين",en:"Please Select Volunteers to Invite"},PleaseSelectVolunteers2:{ar:"الرجاء إختيار متطوعين",en:"Please Select Volunteers"},PleaseSelectSubscribers:{ar:"الرجاء إختيار مشتركين",en:"Please Select subscribers to Invite"},InvitedSuccessfully:{ar:"تم إرسال الدعوة بنجاح",en:"Invitation has been sent successfully"},InvitationsCancelledSuccessfully:{ar:"تم إلغاء الدعوات بنجاح",en:"Invitations have been canceled successfully"},btnCancelInvitationVolunteers:{ar:"إلغاء الدعوات",en:"Cancel Invitations"},ViewParticipatedVolunteers:{ar:"عرض المتطوعين المشاركين",en:"View Participated Volunteers"},CurrentorClosedEventsUrlText:{ar:"فرصة تطوعية نشطة أو مغلقة",en:"Active or Closed Events"},AllActiveandClosedEvents:{ar:"كل الفرص التطوعية نشطة أو مغلقة",en:"All Active or Closed Events"},Status:{ar:"الحالة",en:"Status"},error_PasswordNotMatched:{ar:"كلمات المرور غير متطابقة",en:"Password and Confirm Password Not Matching"},RequiredSpecialNeeds:{ar:"ذو إحتياجات خاصة؟",en:"Do you have any special needs?"},SpecialNeedsDescription:{ar:"وصف الإعاقة؟",en:"Special Needs Description ?"},ErrorOccurredContactAdmin:{ar:"حدث خطأ بالنظام. الرجاء مراجعة مدير النظام",en:"An error has been occurred, please contact system admin "},IsSpecialNeeds:{ar:"ذو إحتياجات خاصة?",en:"Is Special Needs?"},AddSlide:{ar:"إضافة شريحة جديدة",en:"Add New"},EditSlide:{ar:"تعديل شريحة",en:"Edit Slide"},SlidesManagement:{ar:"شرائح الصفحة الرئيسية",en:"Home Page Slides"},EditContent:{ar:"تعديل المحتوى",en:"Edit"},Order:{ar:"الترتيب",en:"Order"},Actions:{ar:"الإجراءات المتاحة",en:"Actions"},BackgroundImage:{ar:"صورة الخلفية",en:"Background Image"},MainImage:{ar:"الصورة الرئيسية",en:"Main Image"},HeaderEn:{ar:"العنوان بالإنجليزية",en:"Title in English"},HeaderAr:{ar:"العنوان بالعربية",en:"Title in Arabic"},Header:{ar:"العنوان الرئيسي",en:"Main Title"},ContentEn:{ar:"المحتوى الرئيسي (بالأنجليزية)",en:"Main Content (English)"},ContentAr:{ar:"المحتوى الرئيسي (بالعربية)",en:"Main Content (Arabic)"},ActionEn:{ar:"اسم الزر بالإنجليزية",en:"Action Name (English)"},ActionAr:{ar:"اسم الزر بالعربية",en:"Action Name (Arabic)"},ActionUrl:{ar:"رابط التحويل للزر",en:"Action Page Url"},AddAnother:{ar:"إضافة",en:"Add Another"},SaveChanges:{ar:"حفظ التغييرات",en:"Save Changes"},SaveHoursChanges:{ar:"حفظ التغييرات",en:"Save Changes"},CancelChanges:{ar:"إلغاء التغييرات",en:"Cancel Changes"},NoRevertMsg:{ar:"لن تستطيع الإسترجاع بعد الحذف",en:"You won't be able to revert this!"},ExportCertificate:{ar:"إصدار شهادة تطوع (سنوية)",en:"Get Certificate (Yearly)"},VolunteeringHours:{ar:"عدد الساعات المقبولة",en:"Volunteering Hours"},ApprovedVolunteeringHours:{ar:"عدد الساعات المقبولة",en:"Approved Volunteering Hours"},labelApprovedVolunteeringHours:{ar:"عدد الساعات التطوعية",en:"Number Of Volunteering Hours"},EventsOpenedforInvitations:{ar:"الفرص التطوعية المستقبلية",en:"Upcoming Events"},ParticipatedVolunteers:{ar:"المتطوعون المشاركون في الفرصة التطوعية",en:"Participated Volunteers"},OtherInfo:{ar:"معلومات أخرى",en:"Other Information"},NewsManagement:{ar:"إدارة الأخبار",en:"News Management"},AddNews:{ar:"إضافة خبر",en:"Add News"},StartDate:{ar:"تاريخ البداية",en:"Start Date"},EndDate:{ar:"تاريخ النهاية",en:"End Date"},EditNews:{ar:"تعديل خبر",en:"Edit News"},News:{ar:"أخبارنا",en:"Our News"},MediaCenter:{ar:"المركز الاعلامي",en:"Media Center"},MoreInfo:{ar:"قراءة المزيد...",en:"Read more..."},TermsUrl:{ar:"الشروط والأحكام",en:"Terms & Conditions"},InvalidIdNo:{ar:"رقم الهوية/الإقامة غير صحيح",en:"Invalid National/Residency ID"},JoinDate:{ar:"تايخ الإلتحاق بالتطوع",en:"Join Date"},ReviewerName:{ar:"اسم القائم بالمقابلة",en:"Reviewer Name"},Privacy:{ar:"الخصوصية",en:"Privacy"},Rights:{ar:"جميع الحقوق محفوظة لشركة  ",en:"All Rights Reserved, "},SRCAPhoneNumber:{ar:"19971",en:"19971"},ContactInfoHeader:{ar:"بيانات التواصل",en:"CONTACT INFO"},AddressHeader:{ar:"الموقع: ",en:"Address: "},PhoneHeader:{ar:"الهاتف: ",en:"Phone: "},EmailHeader:{ar:"البريد الإلكتروني: ",en:"Email: "},SRCAAddress:{ar:"2448 شارع زرقاء اليمامة ، المربع ، الرياض 12628",en:"Riyadh - Olayya Street - Al Sahafa "},SRCAPhone:{ar:"920022776",en:"920022776"},SRCAEmail:{ar:"info@srca.org.sa",en:"info@srca.org.sa"},AddressPobox:{ar:"",en:""},AddressStreetMOH:{ar:"البرج الثالث - الدور الثالث - 2448 شارع زرقاء اليمامة - المربع",en:" Third Tower - Third Floor  - 2448 Zarga Alyamamah St - AlMurabba"},AddressCityMOH:{ar:"الرياض 12628",en:"Riyadh 12628"},AddressStreetSRCA:{ar:" شارع العليا العام أمام نادي الشباب ,الرياض",en:" Third Tower - Third Floor  - 2448 Zarga Alyamamah St - AlMurabba"},AddressLocation_MOH:{ar:"وزارة الصحة ",en:"Ministry Of Health"},AddressLocation_SRCA:{ar:" شارع العليا العام أمام نادي الشباب ,الرياض",en:" SRCA Address"},AddressCitySRCA:{ar:"الرياض 12628",en:"Riyadh 12628"},AddressPhone_MOH:{ar:"٩٣٧",en:"937"},AddressPhone_SRCA:{ar:"١٩٩٧١",en:"19971"},AddressEmail_SRCA:{ar:"volunteer@srca.org.sa",en:"volunteer@srca.org.sa"},AddressEmail_MOH:{ar:"healthvolunteer@srca.org.sa",en:"healthvolunteer@srca.org.sa"},AddressEmail_NEOM:{ar:"neom.friends@neom.com",en:"neom.friends@neom.com"},AddressPhone_NEOM:{ar:"966550000550",en:"966550000550"},TotalEvents:{ar:"عدد الفرص التطوعية",en:"Total Events"},TotalVolunteeringHours:{ar:"مجموع ساعات التطوع",en:"Total Volunteering Hours"},InitialVolunteeringHours:{ar:"ساعات التطوع المبدئية",en:"Initial Volunteering Hours"},TotalVolunteersCount:{ar:"إجمالي المتطوعين",en:"Total Volunteers"},TotalCasesHandled:{ar:"عدد المستفيدين",en:"Total Cases Handled"},OngoingEvents:{ar:"الفرص التطوعية النشطة",en:"Active Events"},OngoingEventsNEOM:{ar:"فرص اليوم ",en:"Today Events"},AllOngoingEvents:{ar:"جميع الفرص التطوعية النشطة",en:"All Active Events"},OngoingEventsStaticMessage:{ar:"أصدقائنا المتطوعين, نرحب بكم, وندعوكم للاطلاع على الفرص التطوعية النشطة",en:"Our volunteer friends, you are most welcome to contribute to our current events."},RejectReasonHead:{ar:"سبب الرفض",en:"Rejected Reason"},SpecialNeeds:{ar:"ذوي احتياجات خاصة",en:"Special Needs"},RecentNews:{ar:"آخر الاخبار",en:"Recent News"},ImageGallery:{ar:"مكتبة الصور",en:"Image Gallery"},PractionerVerifyUrlText:{ar:"تحقق من ممارس عام",en:"Practioner Verification"},SearchBy:{ar:"البحث بـ",en:"Search By"},LatestNews:{ar:"آخر الأخبار",en:"Latest News"},UpcomingEvents:{ar:"الفرص التطوعية المستقبلية",en:"Upcoming Events"},OrderedbyDate:{ar:"مرتب حسب التاريخ",en:"Ordered by Date"},JoinEventRequest:{ar:"إنضم معنا",en:"Join Request"},ShareEventRequest:{ar:" مشاركة الفرصة",en:"share Event"},Sharetheeventmessage:{ar:"  لقد وجدت هذه الفرصه التطوعية الرائعة واحببت مشاركتها معك ",en:" I found this amazing volunteer opportunity and would love to share it with you "},NoUpComingEvents:{ar:"لا توجد فرص تطوعية مستقبلية",en:"No upcoming events"},Register:{ar:"تسجيل",en:"Register"},RelatedLinks:{ar:"مواقع ذات صلة",en:"Related Links"},Link1Url_MOH:{ar:"https://www.moh.gov.sa/Pages/Default.aspx",en:"https://www.moh.gov.sa/Pages/Default.aspx"},Link2Url_MOH:{ar:"https://www.srca.org.sa/en",en:"https://www.srca.org.sa/en"},Link3Url_MOH:{ar:"https://www.scfhs.org.sa/Pages/default.aspx",en:"https://www.scfhs.org.sa/Pages/default.aspx"},Link4Url_MOH:{ar:"https://mlsd.gov.sa/",en:"https://mlsd.gov.sa/"},Link5Url_MOH:{ar:"https://www.moe.gov.sa/",en:"https://www.moe.gov.sa/"},Link1Text_MOH:{ar:"وزارة الصحة ",en:"Ministry Of Health"},Link2Text_MOH:{ar:"الهلال الأحمر السعودي",en:"Saudi Red Crescent Authority"},Link3Text_MOH:{ar:"الهيئة السعودية للتخصصات الطبية ",en:"Saudi Commission for Health Specialties "},Link4Text_MOH:{ar:"وزارة الموارد البشرية والتنمية الإجتماعية",en:"Ministry of Labor and Social Development"},Link5Text_MOH:{ar:"وزارة التعليم",en:"Minister of Education"},Link1Url_SRCA:{ar:"https://www.srca.org.sa/en",en:"https://www.srca.org.sa/en"},Link2Url_SRCA:{ar:"http://www.arabrcrc.org/",en:"http://www.arabrcrc.org/"},Link3Url_SRCA:{ar:"http://www.ifrc.org/ar/",en:"http://www.ifrc.org/ar/"},Link4Url_SRCA:{ar:"https://www.moh.gov.sa/Pages/Default.aspx",en:"https://www.moh.gov.sa/Pages/Default.aspx"},Link5Url_SRCA:{ar:"https://www.scfhs.org.sa/Pages/default.aspx",en:"https://www.scfhs.org.sa/Pages/default.aspx"},Link1Text_SRCA:{ar:"الهلال الأحمر السعودي",en:"Saudi Red Crescent Authority"},Link2Text_SRCA:{ar:"المنظمة العربية للهلال الأحمر والصليب الأحمر ",en:"Arab Federation Of Red Crecent "},Link3Text_SRCA:{ar:"الاتحاد الدولي لجمعيات الهلال الأحمر والصليب الأحمر ",en:"International Federation Of red Cross And Red Crecent "},Link4Text_SRCA:{ar:"وزارة الصحة ",en:"Ministry Of Health"},Link5Text_SRCA:{ar:"الهيئة السعودية للتخصصات الطبية ",en:"Saudi Commission for Health Specialties "},LinkTwitterText_MOH:{ar:"true",en:"true"},LinkTwitterUrl_MOH:{ar:"https://twitter.com/H_Volunteering",en:"https://twitter.com/H_Volunteering"},LinkInstagramText_MOH:{ar:"true",en:"true"},LinkInstagramUrl_MOH:{ar:"https://instagram.com/h_volunteering/",en:"https://instagram.com/h_volunteering/"},LinkFacebookText_MOH:{ar:"false",en:"false"},LinkFacebookUrl_MOH:{ar:"",en:""},LinkYouTubeText_MOH:{ar:"false",en:"false"},LinkYouTubeUrl_MOH:{ar:"",en:""},LinkTwitterText_SRCA:{ar:"true",en:"true"},LinkTwitterUrl_SRCA:{ar:"https://twitter.com/mediasrca",en:"https://twitter.com/mediasrca"},LinkInstagramText_SRCA:{ar:"false",en:"false"},LinkInstagramUrl_SRCA:{ar:"https://www.instagram.com/mediasrca/",en:"https://www.instagram.com/mediasrca/"},LinkFacebookText_SRCA:{ar:"false",en:"false"},LinkFacebookUrl_SRCA:{ar:"https://www.facebook.com/srca997",en:"https://www.facebook.com/srca997"},LinkYouTubeText_SRCA:{ar:"false",en:"false"},LinkYouTubeUrl_SRCA:{ar:"https://www.youtube.com/user/997SRCA",en:"https://www.youtube.com/user/997SRCA"},LinkTwitterText_NEOM:{ar:"true",en:"true"},LinkTwitterUrl_NEOM:{ar:"https://twitter.com/NEOM_CSR",en:"https://twitter.com/NEOM_CSR"},LinkInstagramText_NEOM:{ar:"false",en:"false"},LinkInstagramUrl_NEOM:{ar:"https://www.instagram.com/discoverneom/?hl=en",en:"https://www.instagram.com/discoverneom/?hl=en"},LinkFacebookText_NEOM:{ar:"false",en:"false"},LinkFacebookUrl_NEOM:{ar:"https://www.facebook.com/discoverneom/",en:"https://www.facebook.com/discoverneom/"},LinkYouTubeText_NEOM:{ar:"false",en:"false"},LinkYouTubeUrl_NEOM:{ar:"https://www.youtube.com/channel/UCl0eCJPupCsTrobb_0bprhw",en:"https://www.youtube.com/channel/UCl0eCJPupCsTrobb_0bprhw"},LinkLinkedinUrl_NEOM:{ar:"https://www.linkedin.com/company/discoverneom/",en:"https://www.linkedin.com/company/discoverneom/"},ReceiveOffers:{ar:"أريد أن أستقبل الجديد عن الخدمات",en:"I want to receive news",ur:""},ReceiveAllOffers:{ar:"اشترك معنا",en:"Subscribe With Us"},ReceiveAllOffersMsg:{ar:"اشترك معنا ليصلك كل جديد عن الخدمات",en:"Subscribe to Our Newsletter to get Important News"},EmailPlaceHolder:{ar:"أدخل بريدك الإلكتروني",en:"Enter your Email"},Subscribe:{ar:"اشترك",en:"Subscribe"},SuccessfullyUnsubscribed:{ar:"تم إلغاء الإشتراك بنجاح",en:"You have been unsubscribed successfully."},SuccessfulSubscription:{ar:"تم تفعيل الإشتراك بنجاح",en:"You have been subscribed successfully."},AlreadySubscribed:{ar:"يوجد بالفعل اشتراك مفعل لهذا البريد الإلكتروني",en:"There is already an active subscription for this email."},PasswordRequired:{ar:"الرجاء إدخال كلمة المرور",en:"Password Required"},error_EnterValidNewPassword:{ar:"برجاء إدخال كلمة المرور الجديدة بشكل صحيح",en:"Please enter a valid new password !"},PasswordChangesSuccessfully:{ar:"تم تغيير كلمة المرور بنجاح",en:"Password Changed Successfully"},error_WrongActivationLink:{ar:"إن الرابط المستخدم غير صالح",en:"This is an invalid reset link"},OurAddressDescription:{ar:"تواصل معنا على العنوان التالي",en:"Contact us on the following address"},FlipBoxName0:{ar:"قريبا",en:"Coming soon"},FlipBoxDescription0:{ar:"قريبا",en:"Coming soon"},FlipBoxName1:{ar:"قريبا",en:"Coming soon"},FlipBoxDescription1:{ar:"قريبا",en:"Coming soon"},FlipBoxName2:{ar:"قريبا",en:"Coming soon"},FlipBoxDescription2:{ar:"قريبا",en:"Coming soon"},PreferencesSavedSucessfully:{ar:"تم حفظ الإعدادات بنجاح",en:"Preferences Saved Successfully"},EventsInfo:{ar:"الفرص التطوعية",en:"Browse Events"},EventsInfoLabel:{ar:"الفرصة التطوعية المستقبلية",en:"Browse Events"},EventsInfoMOH:{ar:"الفرص التطوعية",en:"Browse Events"},EventInitiative:{ar:"ابتكر فرصة",en:"Event initiative"},ViewEvent:{ar:"تصفح الفرصة التطوعية",en:"View Event"},NoEvents:{ar:"لا توجد فرص تطوعية ",en:"No Events Data Found"},DoNotMiss:{ar:"لا تفوتك فرصنا التطوعية ",en:"Do Not Miss"},EventStatus:{ar:"حالة الفرصة التطوعية",en:"Event Status"},ImageFile:{ar:"الصورة الرئيسية",en:"Main Image"},InvalidEvent:{ar:"فرصة تطوعية غير صحيحة",en:"Invalid Event"},JoinEvent:{ar:"إنضم للفرصة تطوعية",en:"Join Event"},YouMustLogIn:{ar:"لابد من تسجيل الدخول لإرسال طلب إنضمام",en:"You must be logged in to send join event request"},YouMustLogInErrorMsg:{ar:"لابد من تسجيل الدخول لمشاهدة تفاصيل الفرصة",en:"You must be logged in to  show event details"},SuccessfullyAddedJoinRequest:{ar:"تم إرسال طلب الإنضمام بنجاح وستصلك رسالة على البريد الالكتروني عند تأكيد قبولك في هذه الفرصة بعد موافقة المشرف",en:"Sucessfully Event Join Requested and you will receive email after accepting you"},AlreadyEventJoinRequested:{ar:"يوجد بالفعل طلب إنضمام لهذه الفرصة التطوعية",en:"Already availabe join request in the database for this event"},YouMustBeVolunteer:{ar:"لابد أن تكون متطوع بالنظام ليتسني لك إرسال طلب إنضمام",en:"You must be a volunteer to send the event join request"},Gallery:{ar:"معرض الصور",en:"Image Gallery"},UploadImages:{ar:"رفع الصور",en:"Upload Images"},SetYoutubeUrl:{ar:"رابط الفيديو بالصفحة الرئيسية",en:"Set Home page Youtube Video URL"},SetYoutubeUrlAr:{ar:"رابط الفيديو للمتحدثين بالعربية",en:"Set Youtube Url Arabic"},SetYoutubeUrlEn:{ar:"رابط الفيديو لغير الناطقي بالعربية",en:"Set Youtube Url English"},ImageGalleryAdminUrlText:{ar:"معرض الصور",en:"Image Gallery"},DeletedSuccessfully:{ar:"تم الحذف بنجاح",en:"Deleted Successfully"},already_exist_message:{ar:"موجود بالفعل",en:"Record already exist"},EventNotOpenForInvitations:{ar:"الفرصة التطوعية غير مفتوحة للدعوات",en:"Event not opened for invitation"},VolunteerAlreadyInvited:{ar:"المتطوع لديه دعوة بالفعل",en:"Volunteer already invited"},EventNotFound:{ar:"فرصة تطوعية غير موجودة",en:"Event not found"},InvalidEmail:{ar:"بريد إلكتروني غير صحيح",en:"Invalid Email"},CheckIn:{ar:"دخول",en:"Check In"},CheckOut:{ar:"خروج",en:"Check Out"},Check:{ar:"تحقق من الرمز الوظيفي",en:"Validate"},InvalidEmployeeCode:{ar:"خطأ في الرمز الوظيفي",en:"Invalid Employee Code"},ValidEmployeeCode:{ar:"الرمز الوظيفي صحيح",en:"Valid Employee Code"},ConfirmCheckIn:{ar:"هل أنت متأكد من أنك تود الدخول في الفرصة التطوعية",en:"Are you sure to checkin to the event?"},ConfirmCheckOut:{ar:"هل أنت متأكد من أنك تود الخروج من الفرصة التطوعية",en:"Are you sure to checkout from the event?"},NoOngoingEvent:{ar:"لا يوجد فرصة تطوعية متاحة الأن",en:"No ongoing Event available"},CurrentEvents:{ar:"الفرص التطوعية النشطة",en:"Active Events"},CurrentEventInvitations:{ar:"الدعوات الحالية",en:"Current Event Invitation Requests"},PleaseProvideLocationTime:{ar:"الرجاء كتابة موعد ومكان المقابلة الشخصية",en:"Please provide Appointment Location and Time"},PleaseProvideRejectingReason:{ar:"الرجاء كتابة سبب الرفض",en:"Please provide rejecting reason"},SuccessfullyApproved:{ar:"قد تمت الموافقة",en:"Successfully Approved"},SubmittedUrlText:{ar:"طلبات التسجيل الجديدة",en:"Submitted Volunteers"},SuccessfullyRejected:{ar:"قد تم الرفض",en:"Successfully Rejected"},YesDelete:{ar:"موافق على الحذف",en:"Yes Delete It!"},FinalAcceptAction:{ar:"موافقة نهائية",en:"Final Accept"},SelectReviewer:{ar:"إختر الموظف لحضور المقابلة",en:"Select Reviewer"},PleaseSelectReviewer:{ar:"الرجاء إختيار الموظف الذي سيحضر المقابلة",en:"Please Select Reviewer"},InvalidDate:{ar:"إختيار التاريخ والوقت خاطئ",en:"Invalid Date, Date Cannot be less than current time"},AppointmentDate:{ar:"موعد المقابلة",en:"Appointment Date"},PleasefillAllDetails:{ar:"الرجاء ملء جميع الحقول",en:"Please fill all fields"},ClosedEvents:{ar:"الفرص التطوعية المنتهية",en:"Closed Events"},ClosedEventsUrlText:{ar:"الفرص التطوعية المنتهية",en:"Closed Events"},AllInprogressEvents:{ar:"الفرص التطوعية النشطة",en:"All Active Events"},InprogressEventsUrlText:{ar:"الفرص التطوعية النشطة",en:"Active Events"},EditMyApplicationUrlText:{ar:"تعديل الطلب الخاص بي",en:"Update My Application"},EditMyApplicationUrlTextLabel:{ar:"تعديل البيانات الشخصية",en:"Update of personal data"},UpdateRequest:{ar:"تعديل الطلب",en:"Update"},UpdateProfile:{ar:"تعديل الملف الشخصي",en:"Edit My Information"},ExportVolunteersStateUrlText:{ar:"تصدير بيانات المتطوعين",en:"Export Volunteer Details"},Notes:{ar:"ملاحظات",en:"Notes"},Reason:{ar:"السبب",en:"Reason"},ReasonOfNotResolve:{ar:"سبب عدم الحل ",en:"Reason of not resolve"},RegNotes:{ar:"ملاحظات",en:"Notes"},Qualifications:{ar:"المؤهلات العلمية",en:"Qualifications"},WorkPlace:{ar:"مكان العمل",en:"Work Place"},JobName:{ar:"المسمى الوظيفي",en:"Job Name"},ExportToExcel:{ar:"تصدير إلى ملف إكسيل",en:"Export to Excel"},ExportToPDF:{ar:"تصدير إلى ملف PDF",en:"Export to PDF"},ChangetoSubmitted:{ar:"تحويل إلى الطلبات الجديدة",en:"Move to Submitted"},ConfirmMovetoSubmitted:{ar:"هل تريد بالفعل تحويل المتطوع إلى قائمة الطلبات الجديدة؟",en:"Are you sure to move to submitted status?"},ImageTypeError:{ar:"مسموح فقط بالملفات من النوع: jpg,jpeg,png,bmp",en:"Only jpg,jpeg,png or bmp file types are allowed"},MixTypeError:{ar:"مسموح فقط بالملفات من النوع: jpeg,jpg,png,bmp,pdf,ppt,pptx,txt,zip,rar,7z",en:"Only jpeg,jpg,png,bmp,pdf,ppt,pptx,txt,zip,rar,7z file types are allowed"},DocTypeError:{ar:"مسموح فقط بالملفات من النوع: doc,docx,xls,xlxs,ppt,pptx,pdf",en:"Only doc,docx,xls,xlxs,ppt,pptx,pdf file types are allowed"},ExportInvitedVolunteers:{ar:"تصدير بيانات المتطوعين",en:"Export Volunteer Data"},CannotJoinTillApproved_MOH:{ar:"يتوجب عليك إنهاء البرنامج التدريبي قبل الإلتحاق بالتطوع",en:"You must end the training program before joining the volunteer"},CannotJoinTillApproved_SRCA:{ar:"عزيزي المتطوع .. يجب أن يتم قبولك نهائيا من قبل المسؤول حتى تتمكن من إرسال طلبات الانضمام",en:"Dear volunteer, you have to be approved by Admin to send join requests"},CannotJoinTillApproved_NEOM:{ar:"عزيزي المتطوع .. يجب أن يتم قبولك نهائيا من قبل المسؤول حتى تتمكن من إرسال طلبات الانضمام",en:"Dear volunteer, you have to be approved by Admin to send join requests"},TotalVisitors:{ar:"عدد زوار الموقع",en:"Site Visitors Count"},UserImage:{ar:"الصورة الشخصية",en:"Personal Image"},EventInvitationStatus:{ar:"حالة الدعوة",en:"Event Invitation Status"},EditUser:{ar:"تعديل الملف الشخصى",en:"Edit Profile"},EditProfile:{ar:"تعديل الملف الشخصى",en:"Edit Profile"},CertificateFieldEvent:{ar:"التخصص",en:"Certificate Field"},ExcellentVolunteersManagment:{ar:"إدارة المتطوعين المتميزون",en:"Excellent Volunteers Management"},VolunteerName:{ar:"اسم المتطوع",en:"Volunteer Name"},FeedbackDate:{ar:"التاريخ",en:"Feedback Date"},Feedback:{ar:"أداء المتطوع",en:"Feedback"},isActive:{ar:"نشط",en:"Is Active"},AddExcellentVolunteer:{ar:"إضافة متطوع متميز",en:"Add Excellent Volunteer"},EditExcellentVolunteer:{ar:"تعديل متطوع متميز",en:"Edit Excellent Volunteer"},PleaseEnterFeedback:{ar:"الرجاء كتابة أداء المتطوع",en:"Please enter the feedback"},ExcellentVolunteersManagementUrlText:{ar:"إدارة المتطوعين المتميزون",en:"Manage Excellent Volunteers"},VolunteerPerformance:{ar:"مؤشرات أداء المتطوع",en:"Volunteer Performance"},NoofHours:{ar:"عدد الساعات",en:"No. of Hours"},NoofCasesHandled:{ar:"عدد المستفيدين",en:"No. of Cases Handled"},Percentage:{ar:"النسبة",en:"Percentage"},PleaseEnterNoofHours:{ar:"الرجاء إدخال عدد الساعات",en:"Please Enter No. of Hours"},PleaseEnterNoofPatients:{ar:"الرجاء إدخال عدد الحالات",en:"Please enter no of patients"},PleaseSelectPerformance:{ar:"الرجاء إختيار مدى رضاكم عن أداء المتطوع",en:"Please Select Performance"},AddPerformance:{ar:"إضافة مؤشر أداء",en:"Add Performance"},EditPerformance:{ar:"تعديل مؤشر الأداء",en:"Edit Performance"},EventReport:{ar:"تقرير الفرصة التطوعية",en:"Event Report"},ReportDate:{ar:"التاريخ",en:"Report Date"},MaleCount:{ar:"عدد المتطوعين",en:"No. of Male Volunteers"},FemaleCount:{ar:"عدد المتطوعات",en:"No. of Female Volunteers"},HoursContributed:{ar:"عدد الساعات التطوعية",en:"No. of Hours Contributed"},EventImages:{ar:"الصور",en:"Event Images"},AddAnotherImage:{ar:"إضافة صورة أخرى",en:"Add Another Image"},Description:{ar:"التفاصيل",en:"Description"},ReportList:{ar:"قائمة التقارير",en:"Report List"},Delete:{ar:"حذف",en:"Delete"},AddEventsReport:{ar:"إضافة تقرير فرصة تطوعية",en:"Add Events Report"},EventsReportsManagement:{ar:"إدارة تقارير الفرص التطوعية",en:"Events Report Management"},MaleVolunteers:{ar:"المتطوعين ",en:"Male Volunteers"},FemaleVolunteers:{ar:"المتطوعات",en:"Female Volunteers"},NoofhoursContributed:{ar:"عدد الساعات التطوعية",en:"No. of hours Contributed"},EventReportSummaryTitle:{ar:"ملخص تقرير الفرصة التطوعية",en:"Events Report Summary"},PrintReport:{ar:"تصدير إلى ملف PDF",en:"Export to PDF"},NoDataAvailaible:{ar:"لا يوجد بيانات متاحة",en:"No Data Available"},lbl_VolunteerDashboard:{ar:"مشاركاتي",en:"My Contributions"},StaffNotes:{ar:"الملاحظات",en:"Staff Notes"},MustCheckInFirst:{ar:"لابد من تسجيل دخولك بالفرصة التطوعية أولا حتي يتسنى لك إضافة حالات",en:"You Must be checked in first to add contributions"},Performance:{ar:"الأداء",en:"Performance"},NoofCases:{ar:"عدد المستفيدين",en:"Number of Cases"},ActiveEvents:{ar:"الفرص التطوعية النشطة",en:"Active Events"},SummaryReport:{ar:"التقرير المجمع",en:"Summary Report"},TotalRegistrations:{ar:"عدد طلبات التسجيل",en:"Total Registration"},TotalNewRegistrations:{ar:"الطلبات الجديدة",en:"New Registration"},ApprovedMaleVolunteers:{ar:"المتطوعون",en:"Approved Male Volunteers"},ApprovedFemaleVolunteers:{ar:"المتطوعات",en:"Approved Female Volunteers"},TotalStaff:{ar:"مشرفي النظام",en:"Staff Members"},Reports:{ar:"التقارير",en:"Reports"},GetUserName:{ar:"إستعادة اسم المستخدم",en:"Restore Username"},ConfirmRedirectToEventsInfo:{ar:"سيتم تحويلك إلي صفحة بيانات الفرصة التطوعية",en:"You will be redirected to events details page. Confirm to redirect!"},NumberOfCasesHandled:{ar:"عدد المستفيدين",en:"No. of Cases Handled"},CfhsNumber:{ar:"رقم تصنيف هيئة التخصصات الصحية",en:"SCFHS Number"},CfhsIssueDate:{ar:"تاريخ الإصدار",en:"Issue Date"},CfhsExpiryDate:{ar:"صالحة لغاية",en:"Expiry Date"},CfhsStatus:{ar:"الحالة",en:"Status"},IsVIP:{ar:"متطوع شرفي",en:"Is VIP"},VIPVolunteers:{ar:"المتطوعون الشرفيون",en:"VIP Volunteers"},StaffCalendarURL:{ar:"الروزنامة",en:"Staff Events Calendar"},MalesCount:{ar:"عدد المتطوعين",en:"Males Count"},FemalesCount:{ar:"عدد المتطوعات",en:"Females Count"},Location:{ar:"تفاصيل الموقع",en:"Location Description"},LocationEvent:{ar:"مكان الفرصة",en:"Event Location "},WorkingHours:{ar:"ساعات وأوقات العمل",en:"Working Hours"},WorkingHoursLabel:{ar:"عدد ساعات التطوع",en:"Number of volunteering hours"},LatitudeLongitude:{ar:"الموقع على الخريطة",en:"Location On Map"},RegionwiseVolunteersStats:{ar:"مؤشرات النظام",en:"Region wise volunteers Statistics"},Years:{ar:"العام",en:"Years"},VolunteersStatsUrlText:{ar:"مؤشرات النظام",en:"Volunteers Stats"},PleaseSelectVolunteer:{ar:"الرجاء إختيار متطوعين أولا",en:"Please Select volunteer to send notification"},StudentNote:{ar:"إذا كنت طالب جامعي الرجاء إختيارطالب في حقل الشهادة وإختيار اسم الجامعه الحالي (لا تختار شهادة ثانوية)",en:"If you are a college student then please select student in cetificate field and select your current university (Not high school)"},Term:{ar:"الرقم",en:"ID"},FillSearchFields:{ar:"الرجاء تعبئة محددات البحث",en:"Please fill search fields"},EnterLoaion:{ar:"ادخل الموقع",en:"Enter a location"},educationCollegeAr:{ar:"الكلية (العربية)",en:"College (Arabic)"},educationCollegeEn:{ar:"الكلية (الإنجليزية)",en:"College (English)"},educationCountryAr:{ar:"الدولة (العربية)",en:"Country (Arabic)"},educationCountryEn:{ar:"الدولة (الإنجليزية)",en:"Country (English)"},educationDegreeAr:{ar:"الدرجة الجامعية (العربية)",en:"Degree (Arabic)"},educationUniversityAr:{ar:"الجامعة (العربية)",en:"University (Arabic)"},educationUniversityEn:{ar:"الجامعة (الإنجليزية)",en:"University (English)"},classificationTypeAr:{ar:"نوع التصنيف (العربية)",en:"Classification (Arabic)"},classificationTypeEn:{ar:"نوع التصنيف (الإنجليزية)",en:"Classification (English)"},specialtyAr:{ar:"التخصص (العربية)",en:"Specialty (Arabic)"},specialtyTypeAr:{ar:"نوع التخصص (العربية)",en:"Specialty Type (Arabic)"},specialtyTypeEn:{ar:"نوع التخصص (الإنجليزية)",en:"Specialty Type (English)"},blacklistLastReason:{ar:"سبب الحظر",en:"Black List Reason"},nameAr:{ar:"الاسم (العربية)",en:"Name (Arabic)"},nameEn:{ar:"الاسم (الإنجليزية)",en:"Name (English)"},nationalIdentifierNumber:{ar:"رقم الهوية/الإقامة",en:"National/Residency ID"},nationalIdentifierType:{ar:"نوع الرقم",en:"Identifier Type"},registrationEndDateG:{ar:"نهاية التسجيل (ميلادي)",en:"Registration EndDate (Gregorian)"},registrationEndDateH:{ar:"نهاية التسجيل (هجري)",en:"Registration EndDate (Hijri)"},registrationStartDateG:{ar:"بداية التسجيل (ميلادي)",en:"Registration StartdDate (Gregorian)"},registrationStartDateH:{ar:"بداية التسجيل (هجري)",en:"Registration StartdDate (Hijri)"},sCfHSRegistrationNumber:{ar:"رقم التسجيل",en:"Registration Number"},status:{ar:"الحالة",en:"Status"},NoPractionerFound:{ar:"المتطوع غير مسجل في هيئة التخصصات الصحية",en:"Volunteer isn't registered in SCfHS."},IsPractioner:{ar:"ممارس صحي",en:"Is Practioner"},ExportVolunteersData:{ar:"تصدير بيانات المتطوعين",en:"Export Volunteer Details"},ExportInvitedVolunteersData:{ar:"تصدير بيانات المتطوعين المدعوين",en:"Export Invited Volunteer Data"},StaffEventsCalendar:{ar:"الروزنامة",en:"Staff Events Calendar"},TotalVolunteeringDays:{ar:"إجمالي أيام التطوع",en:"Total Volunteering Days"},FromDate:{ar:"من تاريخ",en:"From Date"},ToDate:{ar:"إلى تاريخ",en:"To Date"},SelectYearlyReport:{ar:"عرض التقرير السنوي",en:"Preview Yearly report"},AcceptVolunteersConfirmation:{ar:"هل تريد الموافقة على جميع المتطوعين الذين حددتهم؟",en:"Are your sure you want to accept all selected volunteers?"},InvitationsAcceptedSuccessfully:{ar:"تم قبول الدعوة بنجاح",en:"Invitations have been accepted successfully"},AcceptInvitedVolunteersHeader:{ar:"المتطوعون المقبولون من الدعوات",en:"Accept Invited Volunteers"},AcceptVolunteers:{ar:"المتطوعون المقبولون",en:"Accept Volunteers"},EventsStatsUrlText:{ar:"إحصائيات الفرص التطوعية للمناطق",en:"Events Stats (Region)"},EventsStats:{ar:"إحصائيات الفرص التطوعية للمناطق",en:"Events Statistics (Region)"},BankName:{ar:"اسم البنك",en:"Bank Name"},IBAN:{ar:"IBAN",en:"IBAN"},BankInfo:{ar:"بيانات البنك",en:"Bank Info"},LastActionByUser:{ar:"أخر تحديث بواسطة",en:"Last Update By"},ExportPreviousYearCertificate:{ar:"تصدير الشهادات",en:"Export Previous Year Certificate"},AddBulkPerformanceEventYearBased:{ar:"إضافة مؤشر أداء جماعي بناء على سنة الفرصة التطوعية",en:"Add Bulk Performance Report Based on Event Year"},All:{ar:"الكل",en:"All"},Active:{ar:"مفعل",en:"Active"},InActive:{ar:"غير مفعل",en:"InActive"},ActiveVolunteer:{ar:"نشط",en:"Active"},InActiveVolunteer:{ar:"غير نشط",en:"InActive"},HasParticipated:{ar:"تطوع من قبل",en:"Has Participated"},HasNotParticipated:{ar:"لم يتطوع من قبل",en:"Has Not Participated"},IsActive:{ar:"تطوع من قبل؟",en:"Has Participated ?"},Print:{ar:"طباعة",en:"Print"},MaleVolunteers:{ar:"عدد المتطوعين ",en:"Total Male Volunteers"},FemaleVolunteers:{ar:"عدد المتطوعات",en:"Total Female Volunteers"},NoEventFound:{ar:"لا يوجد سجل فرص تطوعية في العام المحدد ",en:"No events found for selected year"},NoHoursFound:{ar:"لا توجد شهادات في العام المحدد ",en:"No certificate found for selected year"},ApprovedByName:{ar:"تمم الموافقة بواسطة",en:"Approved By"},IsApproved:{ar:"هل تمت الموافقة",en:"Is Approved"},Reject:{ar:"رفض",en:"Reject"},AcceptBtn:{ar:"قبول",en:"Accept"},ApproveAll:{ar:"قبول الكل",en:"Accept All"},RejectAll:{ar:"رفض الكل",en:"Reject All"},RejectAllPerformanceAction:{ar:"هل انت متأكد من رفض ساعات الآداء لجميع المتطوعين بالصفحة الحالية ؟",en:"Are you sure to reject performance hours of all volunteers in the current page ?"},ConfirmAllPerformanceAction:{ar:"هل انت متأكد من قبول ساعات الآداء لجميع المتطوعين بالصفحة الحالية ؟",en:"Are you sure to accept performance hours of all volunteers in the current page ?"},LicenseStatus:{ar:"حالة الترخيص",en:"License Status"},AreYouSRCAEmployee:{ar:"هل أنت موظف تابع لهيئة الهلال الأحمر السعودي",en:"Are you an employee at Saudi Red Crescent Authority"},SrcaEmployee:{ar:"موظف",en:"Employee at SRCA"},EnterYourEmployeeCode:{ar:"ادخل رقمك الوظيفي",en:"Enter Your Employee Code"},FirstResponderUrlText:{ar:"المستجيب",en:"Responder"},FirstResponderRegistration:{ar:"سجل كمستجيب",en:"Register as Responder"},DoyouhaveBLS:{ar:"هل لديك شهادة BLS",en:"Do you have Basic Life Support Training Certificate"},CertificateExpiryDate:{ar:"تاريخ نهاية الشهادة",en:"Certificate Expiry Date"},UploadCertificate:{ar:"تحميل الشهادة",en:"Upload Certificate"},ResponderRequestAlreadyExist:{ar:"يوجد لديك طلب تم تسجيله مسبقا",en:"Your request for responder already exist"},FirstResponderRequest:{ar:"طلبات المستجيبين",en:"Responders Requests"},ApprovedFirstResponder:{ar:"المستجيبون المقبولون",en:"Approved Responders"},RejectedFirstResponder:{ar:"المستجيبون المرفوضون",en:"Rejected Responders"},ViewRequestDetails:{ar:"عرض تفاصيل الطلب",en:"View Request Details"},FirstResponderUpdation:{ar:"تفاصيل التعديل",en:"Update Details"},UpdateWarning:{ar:"*بانتظار قبول التعديل من قبل مدير النظام",en:"*After submitting the update it must be approved by the admin"},YourFirstResponderRequestApproved:{ar:"تم قبول طلبك كمستجيب",en:"Your request is approved"},ApprovalProgressMessage:{ar:"طلبك قيد التنفيذ",en:"Your request is in progress for responder"},YourFirstResponderRequestRejected:{ar:"نأسف تم رفض طلبك كمستجيب",en:"Your responder request is rejected"},lbl_weakPassword:{ar:"كلمة مرور ضعيفة",en:"Weak Password"},strong_password:{ar:"كلمة المرور يجب أن تكون 8 أحرف على الأقل وتحتوي على أحرف صغيرة وكبيرة ورمز, على أن يكون الرمز من هذه الرموز فقط !@#$%^&*+(){}?~`=.<>-",en:"Length of password must be atleast 8 characters, must have small, capital letters and one special character from the follwoing !@#$%^&*+(){}?~`=.<>-"},password_change_message:{ar:"حرصا على معلوماتكم يجب تغيير كلمة المرور الحالية ويجب أن تكون كلمة المرور الجديدة 8 أحرف على الأقل وتحتوي على أحرف صغيرة وكبيرة ورمز, على أن يكون الرمز من هذه الرموز فقط !@#$%^&*+(){}?~`=.<>-",en:"Due to security reasons, we request you to change your password and it must be 8 characters long with atleast one special character from the follwoing !@#$%^&*+(){}?~`=.<>-, capital and small alphabets and numbers"},Strong:{ar:"قوية",en:"Strong"},Medium:{ar:"متوسطة",en:"Medium"},Weak:{ar:"ضعيفة",en:"Weak"},IsValidSCHFSLicense:{ar:"مصرح من هيئة التخصصات الصحية",en:"IsValidSCHFSLicense"},PasswordsDoesNotMatch:{ar:"كلمات المرور غير متطابقة",en:"Password and Confirm passwords does not match"},StrongPassword:{ar:"الرجاء إدخال كلمة مرور معقدة أكثر",en:"Please make a strong password"},RegistrationMessage:{ar:"للتسجيل في منصة التطوع الصحي يتوجب عليك الدخول أولاً إلى بوابة نفاذ الوطنية باستخدام حسابك فى أبشر. ملاحظة *: في حالة كنت قد قمت بتسجيل الدخول لدينا مؤخراً عبر بوابة نفاذ الوطنية/ حسابك في أبشر، يرجى تسجيل الخروج وإعادة .تسجيل الدخول من جديد",en:"To register in Volunteering system, you must login to NAFAZ using your Absher account. Note*: If you have recently logged in NAFAZ / Absher system, you must logout first and re- login again"},SuccessPermissionSavedMessage:{ar:"تم حفظ الصلاحيات بنجاح",en:"Permissions granted successfully"},NoScreenActionsErrorMessage:{ar:"الرجاء اختر الشاشة أو الإجراء",en:"Please select screen or actions and continue"},NoRoleErrorMessage:{ar:"الرجاء اختر الدور",en:"Please select role"},ScreenPermissionsUrlText:{ar:"صلاحيات المستخدم",en:"Screen Permissions"},ScreenPermissions:{ar:"صلاحيات المستخدم",en:"Screen Permissions"},ManagePermissions:{ar:"إدارة الصلاحيات",en:"Manage Permissions"},ViewPermissions:{ar:"عرض الصلاحيات",en:"Permissions"},AddNewUserRole:{ar:"إضافة وظيفة",en:"Add New User Role"},CreatedOn:{ar:" تم الانشاء على ",en:"Created On"},ManageUserRoles:{ar:"إدارة صلاحيات المستخدمين",en:"Manage User Roles"},ManagePermissionsModalTitle:{ar:"صلاحيات الشاشة والعمل (@@)",en:"Screen & Action Permissions (@@)"},cannot_add_duplicate_message:{ar:"عفوا! لا يمكن الإضافة حاليا لوجود خطأ بالنظام",en:"Sorry! Can't add record as same name already exists"},UploadDocumentsUrlText:{ar:"رفع المستندات",en:"Upload Documents"},DocumentsUrlText:{ar:"المستندات",en:"Documents"},UploadDocuments:{ar:"رفع المستندات",en:"Upload Documents"},DocumentsUrlText:{ar:"المستندات",en:"Documents"},ExcelFile:{ar:"ملف إكسيل",en:"Excel File"},PdfFile:{ar:"Pdf ملف",en:"Pdf File"},PleaseSelectAtleasetOneFile:{ar:"من فضلك اختر ملف واحد على الأقل وأدخل الوصف، وتحقق من حجم الملف (2 ميجابايت كحد أقصى)",en:"Please select at least one file and enter description or check the file size (Max 2 MB)"},CreationDate:{ar:"تاريخ الإنشاء",en:"Creation Date"},DescriptionArabic:{ar:"الوصف بالعربية",en:"Description Arabic"},DescriptionEnglish:{ar:"الوصف بالإنجليزية",en:"Description English"},Upload:{ar:"رفع",en:"Upload"},Reset:{ar:"إعادة ضبط",en:"Reset"},CheckUnCheckAll:{ar:"تحديد/عدم تحديد الكل",en:"Check/UnCheck All"},Downloads:{ar:"التنزيلات",en:"Downloads"},Error_CheckEventStatus_ApprovalLimit:{ar:"تحدث مشكلة أثناء التحديث، من فضلك تحقق من تاريخ الفرصة التطوعية والحد المسموح من مرات القبول للمتطوع",en:"Problem appears while updating, Please check event date and volunteer approval limit"},ExceededApprovalLimit:{ar:"نعتذر الفرصة التطوعية مكتملة",en:"Exceeded Approval Limit"},EventExpired:{ar:"هذه الفرصة التطوعية قد انتهت بالفعل ولا يمكن إلغاؤها أو الموافقة عن أي طلبات تطوعية للالتحاق بها",en:"Event is already expired and cannot cancel or approve any request at this time"},UseAddBulkPerformanceOption:{ar:"من فضلك استخدم إضافة الأداء المجمع لخانة خيار تاريخ الفرصة التطوعية لكل الفرص التطوعية للسنين الماضية",en:"Please use Add Bulk Performance for event date option for Previous Year Events"},Modules:{ar:"وحدات",en:"Modules"},AuditLog:{ar:"تاريخ التدقيق",en:"Audit Log"},ChooseModule:{ar:"اختر وحدة",en:"Choose a Module"},ActivityPerformed:{ar:"إتمام العملية",en:"Activity"},ActivityDate:{ar:"تاريخ العملية",en:"ActivityDate"},ReferenceRecordNo:{ar:"رقم السجل المرجعي",en:"Reference Record No"},OriginalRecord:{ar:"السجل الأصلي",en:"Original Record"},ChangedRecord:{ar:"السجل المعدل",en:"Changed Record"},ActionUser:{ar:"المستخدم",en:"Action User"},LogDefMessage:{ar:"سجل التدقيق بطبيعته يعرض أحداث آخر 24 ساعة، إذا رغبت في استعراض فترة أخرى عليك تحديد كل من التاريخ ووحدة النظام",en:"Default logs are shown for last 24 hours, please select the date and module to read audit logs for required period."},NoOfRecords:{ar:"عدد المدخلات التي تم العثور عليها",en:"No of records found:"},NoRecordsFound:{ar:"لا يوجد بيانات توافق محددات البحث المدخلة",en:"No records found for selected criteria"},VolunteersJoinCounter:{ar:"عدد المتطوعين المنضمين",en:"Number of Volunteers Joined"},ManageRegionCityPermission:{ar:"إدارة صلاحيات المناطق والمدن",en:"Manage Region City Permission"},NoUserErrorMessage:{ar:"الرجاء اختيار مستخدم",en:"Please select user"},NoSelectRegionCityErrorMessage:{ar:"الرجاء اختيار منطقة او مدينة",en:"Please select Region/ Cities"},RegionCityPermissionUrlText:{ar:"إدارة صلاحيات المناطق والمدن",en:"Region City Permission"},ManageRegionCityPermissionsModalTitle:{ar:"أذون الشاشة والعمل (@@)",en:"Manage Region City Permissions for @@"},ManageRegionCityPermissionSubHead:{ar:"سيتم تفعيل المناطق او المدن عند الدخول مرة اخرى للنظام",en:"Assigned Region(s) & City(s) changes will reflect once user re-logins to the System"},TotalVolunteersCountFemale:{ar:"عدد المتطوعات",en:"Females"},TotalVolunteersCountMale:{ar:"عدد المتطوعين",en:"Males"},TotalVolunteersCountTotal:{ar:"إجمالي المتطوعين",en:"Total Volunteers"},NoOfTeams:{ar:"عدد الفرق",en:"No Of Teams"},CasesTransferred:{ar:"الحالات المنقولة",en:"Cases Transferred"},CasesHandledAtSite:{ar:"تمت مباشرة الحالة بالموقع",en:"Handled on Site"},TotalIncidents:{ar:"إجمالي البلاغات",en:"Total Incidents"},EventsStatsAllRegionUrlText:{ar:"إحصائيات الفرص التطوعية عام ",en:"Events Stats (All Regions)"},EventsStatsAllRegions:{ar:"إحصائيات الفرص التطوعية عام",en:"Events Statistics  (All Regions)"},NoOfTeams:{ar:"عدد الفرق التطوعية",en:"No. of Teams"},NoOfCasesTransfered:{ar:"عدد الحالات المنقولة",en:"No. of Cases Transfered"},IncidentsHandled:{ar:"عدد المستفيدين",en:"No. of Cases Handled"},MaleApplied:{ar:"عدد الذكور المسجلين",en:"No. Of Males Applicants"},FemaleApplied:{ar:"عدد الإناث المسجلين",en:"No. of Female Applicants"},MaleApproved:{ar:"عدد الذكور المقبولين",en:"No. of Male Approved"},FemaleApproved:{ar:"عدد الإناث المقبولين",en:"No. of Female Approved"},ExpiredEvent:{ar:"لا يمكن قبول المتطوع للفرصة تطوعية المنتهية، الرجاء التأكد من إدخال حالة الفرصة التطوعية وتاريخ البداية بشكل صحيح",en:"Volunteer cannot be accepted as Event is expired, please check event status & event start date"},ActiveorExpired:{ar:"لا يمكن قبول المتطوع للفرصة تطوعية النشطة أو المنتهية، الرجاء التأكد من إدخال حالة الفرصة التطوعية وتاريخ البداية بشكل صحيح ",en:"Volunteer cannot be accepted as Event is either exprired or is active, please check event status & event start date"},ActiveVolunteers:{ar:"المتطوعون النشطون",en:"Active Volunteers"},VolunteeringWorkFields:{ar:"مجالات العمل التطوعي",en:"Volunteering Work Fields"},GroupRegionsUrlText:{ar:"مجموعات المناطق",en:"Group Region"},GroupRegions:{ar:"مجموعات المناطق",en:"Group Region"},EventTypeGroupsUrlText:{ar:"مجموعات الفرص التطوعية",en:"Group Event Type"},EventTypeGroups:{ar:"مجموعات الفرص التطوعية",en:"Group Event Type"},Color:{ar:"اللون",en:"Color"},RegionColorSettingUrlText:{ar:"إعدادات مؤشرات الفرص التطوعية والدورات",en:"Region Color Setting"},MinimumTargetValueEvent:{ar:"الحد الأدنى للفرص التطوعية",en:"Minimum (Event)"},MaximumTargetValueEvent:{ar:"الحد الأعلى للفرص التطوعية",en:"Maximum (Event)"},MinimumTargetValueEventType:{ar:"الحد الأدنى للدورات",en:"Minimum (Event Type)"},MaximumTargetValueEventType:{ar:"الحد الأعلى للدورات",en:"Maximum (Event Type)"},MaximumTargetValueEventVolunteer:{ar:"الحد الأعلى للدورات",en:"Maximum (Event Volunteers)"},MinMaxValidationEvent:{ar:"الحد الأدنى يجب ان يكون اعلى من الحد الأعلى",en:"Minimum target value should be less than Maximum Target Value for an Event"},MinMaxValidationEventType:{ar:"الحد الأدنى يجب ان يكون اعلى من الحد الأعلى",en:"Minimum target value should be less than Maximum Target Value for Event Type"},EventsTarget:{ar:"مؤشرات أداء الفرص التطوعية",en:"KPI - Events"},MaxRangeValue:{ar:"الحد الأعلى",en:"Maximum Range"},EventTypesTarget:{ar:"مؤشرات أداء المحاضرات والدورات",en:"KPI - Event Types"},KPICompareEvents:{ar:" مؤشر مقارنة الفرص التطوعية",en:"KPI - Compare Events"},HalfYear1:{ar:"النصف الأول",en:"First Half"},HalfYear2:{ar:"النصف الثاني",en:"Second Half"},Qaurter1:{ar:"الربع الأول",en:"Qaurter 1"},Qaurter2:{ar:"الربع الثاني",en:"Qaurter 2"},Qaurter3:{ar:"الربع الثالث",en:"Qaurter 3"},Qaurter4:{ar:"الربع الرابع",en:"Qaurter 4"},Criteria:{ar:"المعايير",en:"Criteria"},Selection:{ar:"التاريخ الأول",en:"Selection"},Base:{ar:"التاريخ الثاني ",en:"Base"},Yearly:{ar:"سنوي",en:"Yearly"},HalfYear:{ar:"نصف سنوي",en:"Half Yearly"},Quarterly:{ar:"ربع سنوي",en:"Quarterly"},Monthly:{ar:"شهري",en:"Monthly"},SelectionYearErr:{ar:"التاريخ الأول مطلوب",en:"Selection Year is required"},BaseYearErr:{ar:"التاريخ الثاني مطلوب",en:"Base Year is required"},PreferredReportErr:{ar:"اختر طريقة عرض التقرير المفضلة",en:"Select prefered report view"},HalfYearSelectionErr:{ar:"التاريخ الأول مطلوب",en:"Selection Half Year is required"},HalfYearBaseErr:{ar:"التاريخ الثاني مطلوب",en:"Base Half Year is required"},PercentBase:{ar:"السابق",en:"Previous"},PercentageSelection:{ar:"الحالي",en:"Current"},EventsSelCount:{ar:"الفرص التطوعية النشطة",en:"Events Current"},EventsBaseCount:{ar:"الفرص التطوعية السابقة",en:"Events Previous"},PercentageDiff:{ar:"الفرق",en:"Difference"},Percentage:{ar:"النسبة (%)",en:"Percentage (%)"},InfoHeader:{ar:"خطأ!",en:"Info!"},QuarterSelectionErr:{ar:"التاريخ الأول للربع مطلوب",en:"Selection Quarter is required"},QuarterrBaseErr:{ar:" التاريخ الثاني للربع مطلوب ",en:"Base Quarter is required"},MonthlySelectionErr:{ar:"التاريخ الأول للشهر مطلوب",en:"Selection Month is required"},MonthlyBaseErr:{ar:" التاريخ الثاني للشهر مطلوب",en:"Base Month is required"},ViewChart:{ar:"عرض كمخطط",en:"View Chart"},ViewList:{ar:"عرض كقائمة",en:"View List"},ExportEvents:{ar:"تصدير الفرص التطوعية",en:"Export Events"},Select:{ar:"إختر",en:"Select"},Year:{ar:"سنة",en:"Year"},DownloadVolunteerBadge:{ar:"تحميل بطاقة المتطوع",en:"Download Volunteer Badge"},CategoryUrlText:{ar:"نوع التطوع",en:"Category"},SubCategoryUrlText:{ar:"المجال المهني",en:"SubCategory"},IsTrainingCompulsory:{ar:"هل التدريب مطلوب(AR)",en:"Is Training Compulsory"},Attach:{ar:"ارفق",en:"Attach"},Category:{ar:"نوع التطوع",en:"Category"},UserSubCategoryLevel1:{ar:"المجال المهني",en:"Specialities (Level 1)"},UserSubCategoryLevel2:{ar:"التخصص",en:"Specialities (Level 2)"},UserExperienceLevel:{ar:"الفئة",en:"Experience Level"},IdentityInfo:{ar:"بيانات الهوية",en:"Identification Information"},MedicalInformation:{ar:"المعلومات الطبية",en:"Medical Information"},ContactedCovidStatus:{ar:"هل اختلطت بحالة مؤكدة بفايروس كورونا ؟",en:"Have you contacted any confirmed case with COVID-19 recently? "},TrainingCertificates:{ar:"الشهادات التدريبية",en:"Training Certificates"},CertificateAttachments:{ar:"مرفقات الشهادة",en:"Certificate Attachments"},AddAnotherCertificate:{ar:"إضافة شهادة أخرى",en:"Add Another Certificate"},SpecialitiesInformation:{ar:"معلومات التخصص",en:"Specialities Information"},RegistrationInformation:{ar:"تفاصيل التسجيل",en:"Registration Details"},SelectProfession:{ar:"اختر وظيفتك الحالية",en:"Select your profession"},SelectCategory:{ar:"اختر نوع التطوع",en:"Select Category"},SelectSpecialitiesLevel1:{ar:"اختر المجال المهني",en:"Select Specialities (Level 1)"},MobileNumberRequired:{ar:"الرجاء ادخال رقم الجوال",en:"Please enter mobile number"},CityVolunteers:{ar:"مناطق المتطوعين",en:"Cities Volunteers"},LearnMore:{ar:"Learn More",en:"Learn More"},UpdateReport:{ar:"بـحث",en:"Search"},Regions:{ar:"المناطق",en:"Regions"},CitiesForRegion:{ar:"إجمالي متطوعي: ",en:"Total Volunteers in: "},ManagementEvents:{ar:"إدارة الفرص التطوعية",en:"Manage Events"},ReportFilters:{ar:"عناصر البحث",en:"Filters"},PractionerInformation:{ar:"معلومات الممارس الصحي",en:"Practioner Information"},EventsManagement:{ar:"إدارة الفرص التطوعية",en:"Events Management"},lblSoapOnHand:{ar:"ضع الصابون",en:"Soap On Hand"},lblPalmtoPalm:{ar:"افرك يديك بدعك الراحتين",en:"Palm To Palm"},lblBetweenFingers:{ar:"افرك بين الأصابع",en:"Between Fingers"},lblBacktoHands:{ar:"افرك ظهر اليد",en:"Back to Hands"},lblCleanwithWater:{ar:"غسل بالماء",en:"Clean with Water"},lblFocusonWrist:{ar:"جففها جيداً",en:"Focus on Wrist"},lblHowtoWashHands:{ar:"نصائح عامة للوقاية من فيروس كورونا(COVID-19)",en:"Way To Wash Hands"},lblGenAdvice:{ar:"كيفية غسل اليدين",en:"General Advices"},SahabTitle:{ar:"سـحاب",en:"SAHAB"},SahabUrl:{ar:"https://alsahab.sa/",en:"https://alsahab.sa/"},RegisterMOHMobileNote:{ar:"اذا كنت مسجل في مبادرة متطوع صحي مستعد ادخل رقم جوالك واسترجع بعض بياناتك",en:"MOH users please enter your registered mobile number to autofill your available information"},IAMLogin:{ar:"الدخول عبر نفاذ / أبشر",en:"Absher/NAFAZ Login"},IAMLogout:{ar:"تسجيل الخروج عبر نفاذ / أبشر",en:"Absher/NAFAZ Logout"},UpdateRegistrationTitle:{ar:"عناصر البحث",en:"Update Registration Required"},UpdateRegistrationMessage_MOH1:{ar:"عزيزي المتطوع .. الرجاء اكمال البيانات المطلوبة ليتم قبولك مبدئياً في منصة التطوع الصحي لحين اكمال البرنامج التدريبي من خلال بوابة التعلم عن بعد ",en:"Dear User, Few mandatory information is required on registration page. On completion of registration, you will be redirected to complete a mandatory training session. Once these tasks are completed your your profile will be APPROVED."},UpdateRegistrationMessage_MOH:{ar:"عزيزي المتطوع , الرجاء اكمال البيانات المطلوبة ",en:"Dear User, Few mandatory information is required on registration page. "},UpdateRegistrationMessage_SRCA:{ar:"عزيزي المتطوع .. الرجاء اكمال البيانات المطلوبة ليتم قبولك مبدئياً في منصة التطوع الصحي ",en:"Dear Volunteer, Few mandatory information is required on registration page. Once these tasks are completed your your profile will be APPROVED."},lblOr:{ar:"او",en:"OR"},cannot_change_event_status:{ar:"حالة الفرصة التطوعية لا تتطابق مع التاريخ المدخل",en:"Event Status cannot be changed, please select valid date criteria"},ExpiredEventCannotSendInvitation:{ar:"لا يمكن إرسال الدعوات للفرص التطوعية المنتهية",en:"Invitations cannot be sent for expired events"},CourseUrlButton:{ar:"رابط الدورة",en:"Course Url"},Courses:{ar:"الدورات التدريبية",en:"Courses"},btnAcceptAllInvitationsVolunteers:{ar:"قبول كل المحدد",en:"Accept All Selected Invitations"},AcceptInvitationConfirmation:{ar:"هل أنت متأكد من قبول جميع المتطوعين المحددين ؟",en:"Are your sure you want to accept all selected invitations?"},InvitationsAcceptedSuccessfully:{ar:"تم قبول جميع الدعوات بنجاح",en:"Invitations Accepted Successfully"},lblAppliedEvent:{ar:"تم ارسال طلب الانضمام",en:"Applied Event"},lblInvitationClosed:{ar:"مكتملة العدد",en:"Invitation Closed"},lblEventExpired:{ar:"الفرصة منتهية",en:"Event Expired"},lblSaudi:{ar:"سعودي",en:"Saudi"},lblNonSaudi:{ar:"غير سعودي",en:"Non-Saudi"},lblMales:{ar:"ذكور",en:"Males"},lblFemales:{ar:"إناث",en:"Females"},lblGeneral:{ar:"عام",en:"General"},lblHealth:{ar:"صحي",en:"Health"},lblUnCategorized:{ar:"غير مصنف",en:"Uncategorized"},lblTotalVolunteers:{ar:"إجمالي المتطوعين",en:"Total Registered Volunteers"},FemalePercent:{ar:"نسبة المتطوعات",en:"Female Volunteers Percentage"},MalePercent:{ar:"نسبة المتطوعين",en:"Male Volunteers Percentage"},CourseLink:{ar:"رابط الدورة",en:"Course Link"},CourseStatus:{ar:"الحالة",en:"Courses Status"},CourseComplete:{ar:"تم الإجتياز",en:"Complete"},CourseIncomplete:{ar:"غير مكتمل",en:"Incomplete"},IsPublic:{ar:"عامة",en:"Public"},IsPrivate:{ar:"خاصة",en:"Private"},EventVisibilityType:{ar:"نوع النطاق المخصص",en:"Event Visibility Type"},PrivateEventsURL:{ar:"الفرص التطوعية الحالية",en:"Private Events"},btnRejectAllInvitationsVolunteers:{ar:"رفض طلبات الانضمام المحددة",en:"Reject All Selected Invitations"},RejectAllInvitationConfirmation:{ar:"هل أنت متأكد وتريد استكمال رفض جميع طلبات الانضمام المحددة ؟ ",en:"Are your sure you want to reject all selected invitations?"},PleaseSelectVolunteerstoReject:{ar:"لا يوجد طلبات انضمام محددة ليتم رفضها !",en:"Please select volunteers to reject"},PleaseSelectVolunteerstoAccept:{ar:"لا يوجد طلبات انضمام محددة ليتم قبولها !",en:"Please select volunteers to accept"},InvitationsRejectedSuccessfully:{ar:"تم رفض طلبات الانضمام المحددة بنجاح",en:"Invitations Rejected Successfully"},ApprovalAll3Errors:{ar:"لا يمكن قبول المتطوعين لتجاوز الحد الأقصى المحدد لهذه الفرصة",en:"Some volunteers have accepted status for other events between the days for this selected event and Some volunteers have status which cannot be changed now and Approval limit exceeded, Cannot approve more"},ApprovalExceedandStatusErrors:{ar:"لا يمكن قبول المتطوعين لتجاوز الحد الأقصى المحدد لهذه الفرصة",en:"Some volunteers have status which cannot be changed now and  Approval limit exceeded, Cannot approve more"},ApprovalOtherandStatusErrors:{ar:"تنبيه 1: بعض المتطوعين المحددين تم قبولهم في فرص تطوعية أخرى تتعارض مع هذه ة لفرصة. تنبيه 2 : بعض المتطوعين المحددين لا يمكن تحويل حالتهم الحالية إلى مقبول. ",en:"Some volunteers have accepted status for other events between the days for this selected event and Some volunteers have status which cannot be changed now"},ApprovalExceedandOtherErrors:{ar:"ا يمكن قبول المتطوعين لتجاوز الحد الأقصى المحدد لهذه الفرصة",en:"Some volunteers have accepted status for other events between the days for this selected event and  Approval limit exceeded, Cannot approve more"},OtherEventAccepted:{ar:"لا يمكن قبول متطوعين مشاركين في فرص تطوعية أخرى، يمكنك الانضمام للفرص الأخرى فور انتهاء فرصتك الحالية",en:"Other event have accepted status and you cannot send/join another request till the accepted event expires"},ApprovalCannotExceedContributionsCount:{ar:"لا يمكن قبول المتطوعين لتجاوز الحد الأقصى المحدد لهذه الفرصة",en:"Approval cannot exceed the contribution count entered"},OtherStatusCannotChangeforAccept:{ar:"لا يمكن قبول المتطوعين الذين تم رفضهم من قبل أو  الذين قاموا برفض الدعوة  أو الدعوات المعلقة التي لم يقبلها المتطوع بعد ",en:"Cannot accept for status which have already rejected, Pending by volunteer, rejected by volunteer etc."},AlreadyAcceptedforOtherEvent:{ar:"لا يمكن قبول متطوعين مشاركين في فرص تطوعية أخرى",en:"Other event have accepted status between the days for this selected event"},AlreadySentInvitaions:{ar:"لقد تم بالفعل إرسال طلب الانضمام",en:"Already sent invitation request"},EventExpiredorDeleted:{ar:"الفرصة التطوعية منتهية أو محذوفة",en:"Event is expired or deleted"},AcceptIfAccidentallyRejectedInvitation:{ar:"التراجع عن الرفض",en:"Accept if Accidentally Rejected"},AlreadySentInvitaionstoSome:{ar:"لقد تم بالفعل إرسال دعوات لبعض المتطوعين المحددين",en:"Already sent invitaions to some of the selected volunteers"},AlreadySenttoSomeandAcceptedSome:{ar:"لقد تم بالفعل إرسال دعوات لبعض المتطوعين المحددين ",en:"Already sent invitaions and accepted request to some of the selected volunteers"},AcceptIfAccidentlyRejectedAdmin:{ar:" التراجع عن الرفض أو الإلغاء",en:"Accept if Accidentally Rejected | Cancelled | Absent"},ConfirmAcceptAccidentInvitationMessage:{ar:"هل أنت متأكد، وتريد استكمال قبول الطلب المرفوض سابقاً؟",en:"Are you sure to accept this request. Make sure you are accepting since it was rejected accidentally"},NotAuthorizedtoAccept:{ar:"لا تملك الصلاحية لفعل هذا الإجراء ",en:"You are not authorized to accept"},OtherStatusCannotChangeforReject:{ar:"لا يمكنك رفض الطلب المقبول  أو الطلب الدعوة المرسلة إلى المتطوع",en:"Cannot reject now since some has a status which is either accepted or pending from volunteer etc.."},RegisterEmailNote:{ar:"ملاحظة: سيتم استخدام البريد الالكتروني المدخل في منصة التدريب لاستكمال الدورات التدريبية المطلوبة",en:"Provided email address will be further used for mandatory courses"},DashboardStatistics:{ar:"لوحة التحكم",en:"Dashboard"},Available:{ar:"المتاحون",en:"Available"},AvailableVolunteers:{ar:"المتطوعون المتاحون",en:"Available Volunteers"},Volunteers:{ar:"المتطوعون",en:"Volunteers"},RegistrationStatus:{ar:"حـالة المتطوعين",en:"Registration Status"},ExportEventsData:{ar:"تصدير تفاصيل الفرص التطوعية",en:"Export Event Volunteers Details"},lblExpiredEvents:{ar:"الفرص المنتهية",en:"Expired Events"},EventVolunteers:{ar:"الفرص التطوعية",en:"Event Volunteers"},EventCreatedBy:{ar:"تم الإنشاء بواسطة",en:"Created By"},EventCreatedOn:{ar:"تاريخ الإنشاء",en:"Created On"},EventModifiedBy:{ar:"تم التعديل بواسطة",en:"Modified By"},EventModifiedOn:{ar:"تاريخ التعديل",en:"Modified On"},EventSummary:{ar:"ملخص الفرص التطوعية",en:"Event Summary"},NoVolunteersInvitedForThisEvent:{ar:"لا يوجد متطوعين مقبولين لهذه الفرصة",en:"No Volunteers are accepted by Admin for this Event"},cannot_delete_passed_date:{ar:"عفوا ! لايمكن حذف الفرصة بسبب انتهائها",en:"Sorry! Can't remove record due the event end date already passed."},event_expired:{ar:"الفرصة منتهية, لايمكن فعل هذا الإجراء",en:"Event already expired, cannot make this action now"},event_deleted:{ar:"الفرصة محذوفة, لايمكن فعل هذا الأجراء",en:"Event already deleted, cannot make this action now"},event_CanNotCancelnvitation:{ar:"لا يمكن الغاء الفرصة , الرجاء التواصل مع قائد الفرصة ",en:"Event can't be canceled, please contact the event leader"},Error_CheckEventStatus:{ar:"يرجى التأكد بأن الفرصة التطوعية مازالت متاحة، وأنك لست مسجلاً في فرصة تطوعية أخرى ستبدأ في نفس التاريخ",en:"Make sure the event is still available, and you are still not accepted in another event will take place in the same period"},ErrorMessageConflictEventDate:{ar:"لايمكن قبول المتطوع نظراً لمشاركته في فرص تطوعية اخرى في نفس الفترة ",en:"Other event have accepted status between the days for this selected event."},SeeMore:{ar:"الاطلاع على المزيد",en:"See More"},SeeAll:{ar:" عرض الكل",en:"Show All"},btnReleaseVolunteer:{ar:"إنسحاب المتطوع",en:"Release Volunteer"},ReleaseVolunteer:{ar:"إنسحاب المتطوع",en:"Release Volunteer"},ConfirmReleaseVolunteer:{ar:"هل أنت متأكد وتريد الاستمرار في انسحاب المتطوعين المحددين؟",en:"Are you sure to release the selected volunteer from this event?"},EventisNotActive:{ar:"بما أن الفرصة منتهية لا يمكن انسحاب المتطوعين ",en:"Cannot Release Volunteer since event is not active"},MaxInvitationCounts:{ar:"الحد الأقصى للدعوات",en:"Maximimum Invitations"},endtime_lessthan_currenttime:{ar:" لا يمكن إضافة فرص تطوعية منتهية، الرجاء التأكد من التاريخ المدخل",en:"Cannot add expired events, Please check end date"},MaxInvitationsFilled:{ar:"اكتمل عدد الدعوات",en:"Maximimum Invitations Filled"},GeneralStatistics:{ar:"إحصائيات عامة",en:"General Statistics"},lblParticipatedVolunteers:{ar:"المتطوعون الفاعلون",en:"Participated Volunteers"},BusyVolunteers:{ar:"المتطوعون المشغولون",en:"Busy Volunteers"},AvailableSeats:{ar:"الفرص الشاغرة",en:"Available Seats"},PendingOnVolunteer:{ar:"معلق لدى المتطوع",en:"Pending On Volunteer"},PendingOnAdmin:{ar:"معلق لدى المشرف",en:"Pending On Admin"},AcceptedInvitationAdmin:{ar:"دعوات مقبولة",en:"Accepted Invitation By Admin"},RejectedInvitationAdmin:{ar:"المشرف رفض الدعوة",en:"Rejected Invitation By Admin"},CancelledInvitationAdmin:{ar:"دعوات ملغاة",en:"Cancelled Invitation By Admin"},AcceptedInvitationVolunteer:{ar:"المتطوع قبل الدعوة",en:"Accepted Invitation By Volunteer"},RejectedInvitationVolunteer:{ar:"المتطوع رفض الدعوة",en:"Rejected Invitation By Volunteer"},CancelledInvitationVolunteer:{ar:"المتطوع ألغى الطلب",en:"Cancelled Invitation By Volunteer"},JoinRequestInvitationVolunteer:{ar:"متطوع يطلب الانضمام",en:"Join Request By Volunteer"},HoursApproved:{ar:"الساعات التطوعية المعتمدة",en:"Volunteers (Approved Hours)"},HoursPending:{ar:"الساعات التطوعية المعلقة",en:"Volunteers (Pending Hours)"},StopInvitationsAcceptanceConfirm:{ar:"سيقوم النظام بالإكتفاء بعدد المتطوعين المقبولين حاليا وإيقاف الدعوات المعلقة وذلك بإرسال رسائل الإلغاء أو الرفض بناء على حالة الدعوة",en:"This action will change the maximum contributions for this event to number of currently approved volunteers and stops pending volunteers to gets accepted and sends Cancellation and Rejection emails based on the volunteers current status"},btnStopInvitationsAcceptance:{ar:"الإكتفاء بالعدد الحالي",en:"Stop Invitations Acceptance"},Registrations:{ar:"التسجيلات",en:"Registrations"},DownloadImage:{ar:"تنزيل الصورة",en:"Download"},PostCard:{ar:"بطاقة التهنئة",en:"PostCard"},CityGroup:{ar:"المديريات",en:"Mudiriyaat"},LinkCities:{ar:"الربط مع المدينة",en:"Link Cities"},ManageCitiesModalTitle:{ar:"إضافة منطقة /مدينة لل @@",en:"Add Region/ Cities for @@"},SuccessCityGroupCitiesSavedMessage:{ar:"تم ربط المناطق والمدن بنجاح",en:"Regions/ Cities are linked successfully"},ApprovedHours:{ar:"الساعات التطوعية المعتمدة (نوع الفرصة التطوعية)",en:"Approved Hours (Event Type)"},NotApprovedHours:{ar:" الساعات غير المعتمدة(نوع الفرصة التطوعية)",en:"Not Approved Hours(Event Type)"},EventTypeEvents:{ar:"الفرص التطوعية(نوع الفرصة)",en:"Events(Event Type)"},SurveyQuestionnarie:{ar:"اسئلة الإستبيان",en:"Survey Questionnarie"},AlreadyParticipated:{ar:"تمت المشاركة بالفعل",en:"Sorry you cannot submit multiple surveys, Already Participated"},AnswerAllQuestions:{ar:"الرجاء الإجابة على جميع الأسئلة",en:"Please answer all questions"},AlreadyParticipated:{ar:"تم بالفعل الإجابة على الإستبيان",en:"You have already participated for this survey."},SucessfullySavedSurvey:{ar:"تمت العملية بنجاح",en:"Survey has been saved successfully"},GroupHeader1:{ar:"القسم الأول",en:"Group Header 1"},GroupHeader2:{ar:"القسم الثاني",en:"Group Header 2"},GroupHeader3:{ar:"القسم الثالث",en:"Group Header 3"},ThankYouforParticipation:{ar:"شكراً لمشاركتك ",en:"Thank you for your participation"},YouMustBeaVolunteerforSurvey:{ar:"يجب أن تكون متطوع لتتمكن من التقييم في الإستبيان",en:"You must be a volunteer to participate in Survey"},CannotParticipate:{ar:"لا يمكن المشاركة في الاستبيان بسبب أن الرابط لم يعد صالح",en:"Cannot participate, since the link is invalid or invalid volunteer"},AddNewQuestion:{ar:"إضافة سؤال جديد",en:"Add a New Question"},Questions:{ar:"اسئلة اللإستبيان",en:"Survey Questions"},AddQuestiontoEventType:{ar:"إضافة سؤال لنوع الفرصة",en:"Add Question to Event Type"},EventSurveyQuestions:{ar:"اسئلة الإستبيان المخصص بنوع الفرصة",en:"Survey questions based on event types"},EventSurveyQuestion:{ar:"اسئلة استبيان الفرصة التطوعية",en:"Event Survey Questions"},DisabledCitiesMessage:{ar:"ملاحظة:المدن التي تم اختيارها مسبقاً في مديريات أخرى لن تظهر في القائمة",en:"Note: Cities selected for other Mudiriyats are not be displayed"},SelectCategory:{ar:" اختر نوع التطوع",en:"Select Category"},SelectUserSubCategoryLevel1:{ar:" اختر المجال المهني",en:"Select Specialities (Level 1)"},SelectUserSubCategoryLevel2:{ar:" اختر التخصص",en:"Select Specialities (Level 2)"},SelectUserExperienceLevel:{ar:" اختر الفئة",en:" Select Experience Level"},Department:{ar:"القسم",en:"Department"},MasterPages:{ar:"الإدارات",en:"Master Pages"},AdministrativePages:{ar:"إدارات المستخدمين",en:"Administrative Pages"},UserRole:{ar:"دور المستخدم",en:"User Role"},SelectDepartment:{ar:"اختر القسم",en:"Select Department"},lblDetailsData:{ar:"التفاصيل",en:"View Details"},lblSafeDistance:{ar:"المسافة الآمنة",en:"Keep safe distance"},lblFaceTouch:{ar:"عدم لمس الوجه",en:"Avoid touching your face"},lblDirectContact:{ar:"الابتعاد عن الحالات المشتبه بها",en:"Avoid direct contact with suspects"},lblHandShaking:{ar:"تجنب المصافحة",en:"Avoid handshaking"},lblNoTouchCards:{ar:"عدم لمس البطاقات",en:"Do not touch cards"},lblSterilization:{ar:"التطهير والتعقيم",en:"Sterilization and disinfection"},lblClean:{ar:"تنظيف الأدوات وتعقيمها",en:"Clean and sterilize tools"},lblNoTouchMobile:{ar:"عدم لمس أي جهاز جوال",en:"Do not touch any mobile devices"},lblWearMask:{ar:"الحرص على لبس الكمامة",en:"Wear mask"},lblDrinkFluids:{ar:"الإكثار من شرب السوائل",en:"Drink fluids"},lblCallAuth:{ar:"إبلاغ المسؤولين والتوجه إلى أقرب مستشفى",en:"Call authorities and head to the nearest hospital"},lblEventsDetailsHead:{ar:"فرصنا التطوعية",en:"Event Details"},lblSuccessPartners:{ar:"شركاؤنا في النجاح",en:"Success Partners"},EventCurrentStatus:{ar:"حالة الدعوات للفرصة",en:"Event Current Status"},HoursApprovalFilter:{ar:"الساعات التطوعية",en:"Hours Approval Filter"},CostPerHour:{ar:"تكلفة الساعة",en:"Cost Per Hour"},AdminAddedHoursCount:{ar:"الساعات المضافة",en:"Admin Added Hours Count"},ApprovedHoursCount:{ar:"الساعات المعتمدة",en:"Approved Hours Count"},InvitationAcceptedByAdminCount:{ar:"المقبولين في الفرصة",en:"Invitation Accepted By Admin"},DepartmentChanged:{ar:"جميع الفرص التي تم إنشاؤها بواسطة هذا المستخدم سيتم انتقالها للقسم المحدد. هل تريد الاستمرار ؟",en:"All events created by this user will be assigned to selected department. Do you want to continue?"},CancelInvitaion:{ar:"إلغاء الفرصة",en:"Cancel Invitation"},Withdraw:{ar:"انسحاب",en:"Withdraw"},WithdrawSuccessMessage:{ar:"تم إرسال طلب الانسحاب بنجاح",en:"Your request has been sent successfully"},CancelInvitationConfirm:{ar:"إذا قمت بإلغاء الفرصة التطوعية لن يتم احتساب الساعات التطوعية لهذه الفرصة",en:"If you cancel the accepted invitation, you will loose all the volunteering hours for this event."},Absent:{ar:"لم يحضر",en:"Mark Absent"},AbsentConfirm:{ar:"سيتم تسجيل عدم حضور للمتطوع وحذفه من القائمة، هل تريد الاستمرار؟  ",en:"Do you want to mark this Volunteer as Absent? "},SuccessfullyMarkedAbsent:{ar:"تم تسجيل عدم حضور المتطوع بنجاح",en:"Successfully Marked Absent"},MarkAbsentAllPerformanceAction:{ar:"الغاء المتطوعين الغائبين",en:"Update Attendance"},AbsentAllConfirm:{ar:"هل أنت متأكد من إلغاء جميع المتطوعين الذين ليس لهم ساعات تطوعية من هذه الفرصة؟ ",en:"Do you want to mark all volunteers as absent who have no volunteering hours? "},SuccessfullyMarkedAllAbsent:{ar:"تم إلغاء جميع المتطوعين الذين ليس لديهم ساعات تطوعية مسجلة",en:"All Volunteers having no hours have been marked absent"},ManagePerformance:{ar:"إدارة مؤشر الأداء",en:"Manage Performance"},EventMaxHours:{ar:"الحد الأقصى للساعات الممكنة",en:"Event Maximum Duration (Hours)"},TotalHoursApproved:{ar:"الساعات المعتمدة",en:"Hours Approved"},TotalHoursApprovedPending:{ar:"ساعات معلقة للإعتماد",en:"Hours Pending Approval"},TotalHoursRejected:{ar:"ساعات مرفوضة",en:"Hours Rejected"},TotalHoursAdded:{ar:"الساعات المضافة",en:"Total Hours Added"},AddPerformance:{ar:"إضافة مؤشر أداء",en:"Add Performance"},PleaseEnterNoofHours:{ar:"عدد الساعات يجب أن يكون أكبر من الصفر",en:"No. of hours cannot be blank or zero"},PleaseEnterNoofPatients:{ar:"يجب إدخال عدد المستفيدين برقم أكبر من الصفر",en:"No. cases handled cannot be blank or zero"},PleaseSelectPerformance:{ar:"الرجاء اختيار مستوى الأداء للمتطوع",en:"Please Select Performance"},MaxHoursValidation:{ar:"عدد الساعات المدخلة أكبر من مدة أيام التطوع",en:"Added Hours are greater than event duration hours"},RatePerformance:{ar:"تقييم الأداء",en:"Rate Performance"},IsRejected:{ar:"محذوف",en:"Is Rejected"},AcceptConfirmation:{ar:"هل تريد قبول الساعات المضافة؟ ",en:"Do you want to accept hours added? "},RejectConfirmation:{ar:"هل تريد رفض الساعات المضافة؟ ",en:"Do you want to reject hours added? "},AcceptAllConfirmation:{ar:"هل تريد قبول جميع الساعات المضافة المعلقة؟",en:"Do you want to accept all not approved hours added? "},RejectAllConfirmation:{ar:"هل تريد رفض جميع الساعات المضافة المعلقة؟ ",en:"Do you want to reject all not approved hours added? "},AddBulkEventPerformance:{ar:"إضافة مؤشر جماعي",en:"Add Bulk Volunteers Performance"},BtnBack:{ar:"رجوع",en:"Back"},CurrentEvent:{ar:"الفرصة التطوعية الحالية",en:"Current Working Event"},NA:{ar:"لا يوجد فرصة حالية",en:"N/A"},UserNameEnglishOnly:{ar:"اسم المستخدم يجب أن يحتوي على الحروف والأرقام الإنجليزية فقط، دون إدخال رموز خاصة أو مسافة",en:"User Name should be alphanumeric with only English Characters, no spaces allowed."},MobileNumberErr:{ar:"الرجاء إدخال رقم الجوال بالصيغة التالية : (05********)",en:"Please enter correct 10 Digit Mobile number (05X XXXXXXX)"},AvailableDuration:{ar:"عدد الساعات المتاح للإضافة",en:"Available Event Hours"},CancelErrorAcceptedInvitation:{ar:"لا يمكن إلغاء المتطوع الذي لديه ساعات تطوعية في الفرصة",en:"Cannot cancel the invitation, please check if the volunteer have already added volunteering hours"},ReleaseErrorAcceptedInvitation:{ar:"لا يمكن عمل إنسحاب للمتطوع الذي ليس لديه ساعات تطوعية",en:"Cannot release before adding volunteering hours"},InvitationAcceptedHasHoursCount:{ar:"متطوعين لديهم ساعات مضافة",en:"No. of Volunteer Added Hours"},InvitationAcceptedByAdminCount:{ar:"المقبولين في الفرصة",en:"No. of Invitations Accepted"},NotApprovedHoursCount:{ar:"متطوعين لديهم ساعات معلقة",en:"No. of Volunteers Hours Not Approved"},ApprovedHoursCount:{ar:"متطوعين لديهم ساعات معتمدة",en:"No. of Volunteers Hours Approved"},RejectedHoursCount:{ar:"متطوعين لديهم ساعات مرفوضة",en:"No. of Volunteers Hours Rejected"},CancelErrorAcceptedInvitation:{ar:"لا يمكن إلغاء المتطوع الذي لديه ساعات تطوعية في الفرصة",en:"Cannot cancel the invitation, please check if the volunteer have already added volunteering hours"},ReleaseErrorAcceptedInvitation:{ar:"لا يمكن عمل إنسحاب للمتطوع الذي ليس لديه ساعات تطوعية",en:"Cannot release before adding volunteering hours"},InvitationAcceptedHasHoursCount:{ar:"متطوعين لديهم ساعات مضافة",en:"No. of Volunteer Added Hours"},InvitationAcceptedByAdminCount:{ar:"المقبولين في الفرصة",en:"No. of Invitations Accepted"},NotApprovedHoursCount:{ar:"متطوعين لديهم ساعات معلقة",en:"No. of Volunteers Hours Not Approved"},ApprovedHoursCount:{ar:"متطوعين لديهم ساعات معتمدة",en:"No. of Volunteers Hours Approved"},RejectedHoursCount:{ar:"متطوعين لديهم ساعات مرفوضة",en:"No. of Volunteers Hours Rejected"},EventsPerformanceApproved:{ar:"عدد الفرص المكتملة",en:"Events Having Performance Approved"},EventsPerformancePending:{ar:"عدد الفرص المعلقة ساعاتها",en:"Events Having Performance Pending"},EventsPendingInvitations:{ar:"عدد الفرص المعلقة دعواتها",en:"Events Having Pending Invitations"},EventPerformanceHours:{ar:"الساعات التطوعية للفرصة",en:"Event Performance Hours"},Hours100Message:{ar:"1 لكل 100 ساعة",en:"Hours displayed in 100(s)"},InvAcceptedMales:{ar:"المتطوعون المقبولون (ذكور)",en:"Invitation Accepted Males"},InvAcceptedFemales:{ar:"المتطوعات المقبولات (إناث)",en:"Invitation Accepted Females"},PerformanceApprovedHoursMales:{ar:"الساعات المعتمدة للمتطوعين",en:"Performances Approved Males"},PerformanceApprovedHoursFemales:{ar:"الساعات المعتمدة للمتطوعات",en:"Performances Approved Females"},PerformancePendingHoursMales:{ar:"الساعات المعلقة للمتطوعين",en:"Performances Pending Males"},PerformancePendingHoursFemales:{ar:"الساعات المعلقة للمتطوعات",en:"Performances Pending Females"},IsActiveVolunteer:{ar:"هل المتطوع نشط؟",en:"Is Active?"},ActiveVolunteer:{ar:"نشط",en:"Active"},All:{ar:"كل",en:"All"},NotActiveVolunteer:{ar:"غير نشط",en:"Not Active"},ConfirmExceedContribution:{ar:"لقد وصلت بالفعل للحد الأقصى للمتطوعين في هذه الفرصة، هل تريد قبول المتطوع وتحديث الحد الأقصى",en:"Approval quota is already finished, your action will increase approval quota and accept this volunteer"},ContactAdmin:{ar:"لقد حصل خطأ غير متوقع الرجاء التواصل مع مدير النظام",en:"Unknown Error, Contact Admin"},PleaseSelectVolunteerSave:{ar:"الرجاء اختيار متطوع لحفظ التفاصيل ",en:"Please select volunteer to save details"},AllEvents:{ar:"جميع الفرص التطوعية",en:"All Events"},VolunteerAvailabilityStatus:{ar:"حالة الحساب",en:"Availability Status"},PleaseSelectAvailability:{ar:"الرجاء اختيار حالة الحساب",en:"Please Select Availability Status First"},UpdateAvailability:{ar:"تحديث حالة الحساب",en:"Update Status"},PreviousHoursPendingApproval:{ar:"لايمكن إضافة ساعات تطوعية جديدة حتى يتم اعتماد الساعات التطوعية السابقة",en:"Adding new performance is allowed only when previously entered are approved or deleted"},DeletePerformance:{ar:"حذف الساعات",en:"Delete Performance"},DeletePerformanceConfirm:{ar:"لا يمكن استرجاع البيانات بعد حذفها، هل أنت متأكد من حذف الساعات التطوعية ؟",en:"Once deleted this will not be reverted, Do you want to deleted this performance hours? "},InvitationExceededMessage:{ar:"لقد تجاوزت الحد الأقصى للدعوات، هل أنت متأكد من إرسال الدعوات المحددة وتحديث الحد القصى",en:"No. of invitations will be added in the max invitation count as the limit exceeded"},ContributionExceededMessage:{ar:"لقد تجاوزت الحد الأقصى للمشاركة، هل أنت متأكد من الاستمرار وتحديث الحد الأقصى؟",en:"No. of contributions will be added in the max contribution count as the limit exceeded"},OtherEventAccepted:{ar:"لا يمكن إرسال الدعوات للمتطوعين المقبولين في الفرص التطوعية النشطة الأخرى ",en:"Some volunteers have accepted status in other events and you cannot send/join another request till the accepted event expires"},ReleasedVolunteerByAdmin:{ar:"متطوع منسحب",en:"Released Volunteer By Admin"},IsAvailable:{ar:"هل المتطوع نشط ",en:"Is Available"},SurveyResultTitle:{ar:"نتائج الإستبيان",en:"Survey Result Title"},EventsSurveyResultMenu:{ar:"نتائج الإستبيان",en:"Survey Results"},invalid_max_invitation_count:{ar:"يجب إدخال رقم أكبر من صفر للحد الأقصى للدعوات",en:"Invitaiton Count must be grater than 0"},invalid_max_contribution_count:{ar:"يجب إدخال رقم أكبر من صفر للحد الأقصى للمشاركة",en:"Max Contribution Count must be grater than 0"},EventsNoPerformances:{ar:"فرص لم تضاف ساعاتها التطوعية",en:"Events With No Performances"},ViewEventHistory:{ar:"عرض السجل",en:"View History"},VolunteerEventHistory:{ar:"سجل تاريخ المتطوع",en:"Volunteer Events History"},GetCertificate:{ar:"طباعة الشهادة",en:"Get Certificate"},ApproveEvents:{ar:"اعتماد الفرص التطوعية",en:"Approve Events"},IsEventApproved:{ar:"هل الفرصة معتمدة",en:"Is Event Approved"},EventApprovedStatus:{ar:"حالة الاعتماد",en:"Approve Status"},Pending:{ar:"معلقة",en:"Pending"},Approved:{ar:"معتمدة",en:"Approved"},Rejected:{ar:"مرفوضة",en:"Rejected"},AcceptEventConfirmation:{ar:" هل أنت متأكد من قبول الفرصة التطوعية ؟ ",en:"Do you want to accept this event? "},RejectEventConfirmation:{ar:"هل أنت متأكد من رفض الفرصة التطوعية ؟",en:"Do you want to reject this event? "},AcceptEventConfirmationMultiple:{ar:"هل أنت متأكد من قبول الفرص المحددة ؟  ",en:"Do you want to accept selected events? "},RejectEventConfirmationMultiple:{ar:"هل أنت متأكد من رفض الفرص المحددة ؟ ",en:"Do you want to reject selected events? "},SelectEvents:{ar:" الرجاء تحديد الفرص أولاً",en:"Please select events first to approve / reject"},SelectedEvents:{ar:"الفرص المحددة",en:"Selected Events"},RestrictedInvitation:{ar:"نعتذر عزيزي المتطوع هذه الفرصة مخصصة لنطاق محدد من المتطوعين حسب التخصص أو المدينة الرجاء محاولة التقديم في الفرص الأخرى",en:"Invitation for this event is restricted to specific category of volunteers, please apply for some other event."},NoNews:{ar:"لا توجد اخبار الان",en:"No news available for now"},TotalRegisteredVolunteers:{ar:"إجمالي المتطوعين المسجلين",en:"Total Volunteers Registered"},RegistrationStatistics:{ar:"احصائيات تسجيل ",en:"Registration Statistics"},NotificationsTitle:{ar:"التنبيهات",en:"Notifications"},PendingPerformance:{ar:"ساعات معلقة للإعتماد",en:"Hours Pending Approval"},PendingEvent:{ar:"فرصة معلقة للإعتماد",en:"Event Pending Approval"},RejectedEvent:{ar:"فرصة مرفوضة",en:"Rejected Event"},ApprovedEvent:{ar:"فرصة معتمدة",en:"Approved Event"},PendingTicket:{ar:"شكوى جديده",en:"New Ticket"},TicketResponseFromAdmin:{ar:"يوجد رد على الشكوى من قبل المشرف",en:"There is a response to the ticket by the admin"},TicketResponseFromVolunteer:{ar:"يوجد رد على الشكوى من قبل المتطوع",en:"There is a response to the ticket by the volunteer"},TicketDate:{ar:"تاريخ الشكوى ",en:"Ticket Date "},TicketClosed:{ar:"تم اغلاق الشكوى  ",en:"Ticket closed"},InvitationAccepted:{ar:"تم قبولك في الفرصة",en:"You have been accepted for the Event"},RejectedPerformance:{ar:"ساعات مرفوضة",en:"Rejected Performance"},invalid_event_start_date3Days:{ar:"يجب أن تبدأ الفرصة بعد ثلاث أيام على الأقل من تاريخ الإنشاء",en:"Event Start Date should be greater then 3 days from today's date"},EventLeadName:{ar:"اسم منسق الجهة/المشرف الميداني",en:"Lead Name"},EventLeadMobile:{ar:"رقم قائد الفرصة",en:"Lead Mobile"},EventLeadEmail:{ar:"البريد الإلكتروني",en:"Lead Email"},VolunteerTasks:{ar:"مهام المتطوع",en:" Volunteer tasks"},CompleteSurvey:{ar:"استكمال الاستبيان",en:"Complete Survey"},GeneralSurvey:{ar:"الاستبيان العام",en:"General Survey"},SurveyManagement:{ar:"إدارة الاستبيان",en:"Survey Management"},SurveyCode:{ar:"رقم الاستبيان",en:"Survey Code"},SurveyCreatedBy:{ar:"تم الإنشاء بواسطة ",en:"Created By"},SurveyCreatedOn:{ar:" تم الإنشاء  في",en:"Created On"},SurveyCurrentStatus:{ar:"الحالة الحالية",en:"Current Status"},SurveyExpiryDate:{ar:"تاريخ الإنتهاء",en:"Expiry Date"},SurveyStartDate:{ar:"تاريخ البدء",en:"Start Date"},SurveyTitle:{ar:"العنوان",en:"Title"},SurveyAddNew:{ar:"إضافة استبيان جديد",en:"Add New Survey"},SurveyScope:{ar:"نطاق الاستبيان",en:"Survey Scope"},SurveyGrouped:{ar:"مجموعة",en:"Grouped"},SurveySelectiveVolunteers:{ar:"متطوعين محددين",en:"Selective Volunteers"},FilterMessage:{ar:"الرجاء اختيار المحددات  المناطق | الفئات ",en:"Please select filters Regions | Categories "},PleaseSelectQuestions:{ar:"الرجاء تحديد اسئلة الاستبيان",en:"Please select survey questions"},QuestionType:{ar:"نوع السؤال",en:"Question Type"},TitleRequired:{ar:"العنوان حقل إجباري",en:"Title is required"},ExpiryDateRequired:{ar:"تاريخ الانتهاء حقل إجباري",en:"Expiry Date is required"},ExpiryDateInvalid:{ar:"تاريخ الانتهاء المحدد غير صحيح، الرجاء إعادة الإدخال بشكل صحيح",en:"Selected Expiry Date is invalid, please select correct expiry date"},SurveyScopeRequired:{ar:"الرجاء تحديد نطاق الاستبيان ",en:"Please define scope for this Survey"},SurveySuccessfullAdminMsg:{ar:"تم حفظ الاستبيان بنجاح، وحالته معلق للاعتماد",en:"Survey has been saved successfully and has been sent for approval"},SurveySuccessfullSuperAdminMsg:{ar:"تم حفظ الاستبيان بنجاح",en:"Survey has been saved successfully"},SurveyCurrentStatus:{ar:"الحالة الحالية",en:"Current Status"},ManageSurvey:{ar:"إدارة الاستبيان",en:"Manage Survey"},RejectSurveyConfirmation:{ar:"هل تريد رفض الاستبيان ؟ ?",en:"Do you want to reject this survey? "},AcceptSurveyConfirmation:{ar:"هل تريد قبول الاستبيان ؟ ",en:"Do you want to accept this survey? "},PublishSurveyConfirmation:{ar:"هل تريد نشر الاستبيان ؟",en:"Do you want to publish this survey? "},RejectedReason:{ar:"سبب الرفض",en:"Rejected Reason"},RejectedSurvey:{ar:"الاستبيان المرفوض",en:"Rejected Survey"},PendingSurvey:{ar:"الاستبيان معلق للاعتماد",en:"Pending Survey Approval"},PendingVolunteerSurvey:{ar:"Pending Survey Answer",en:"Pending Survey Answer"},PublishAction:{ar:"نشر",en:"Publish"},SuccessfullyPublished:{ar:"تم نشر الاستبيان بنجاح",en:"Survey has been successfully published"},Published:{ar:"تم النشر",en:"Published"},SavePublishSurveyConfirmation:{ar:"هل تريد نشر الاستبيان ؟",en:"Do you want to Save & Publish this survey? "},GeneralSurveyResultMenu:{ar:"نتائج الاستبيان العام",en:"General Survey Results"},DepartmentMissing:{ar:"الرجاء التواصل مع مشرف النظام لإضافة معلومات القسم لحسابك الشخصي",en:"Department Information Missing !! Please contact your super-admin to assign you a department"},ViewResults:{ar:"عرض النتائج",en:"View Results"},InputTypeAnswers:{ar:"نوع السؤال",en:"Input Answers"},AcceptPublishAction:{ar:"قبول ونشر",en:"Accept & Publish"},AcceptPublishSurveyConfirmation:{ar:"هل تريد قبول ونشر الاستبيان؟",en:"Do you want to Accept & Publish this survey? "},SavedAndPublishedSuccessful:{ar:"تم حفظ ونشر الاستبيان بنجاح",en:"Survey has been Saved and Published successfully"},SavedSuccessfulOtherPublishInProgress:{ar:"تم حفظ الاستبيان، الرجاء محاولة النشر لاحقاً حتى يتم الانتهاء من نشر الاستبيانات المعلقة.",en:"Survey has been Saved successfully but not Published. Other Survey is in progress, please try Publish later"},SavedSuccessfulErrorInPublish:{ar:"تم حفظ الاستبيان بنجاح، وتعثر نشر الاستبيان ",en:"Survey has been Saved successfully.Publish is Not Successful"},ErrorInPublish:{ar:"حدث خطأ أثناء النشر، الرجاء التواصل مع مدير النظام",en:"Error occured while publishing. please contact your system administrator"},OtherPublishInProgress:{ar:"الرجاء محاولة النشر لاحقاً حتى يتم الانتهاء من نشر الاستبيانات المعلقة.",en:"Other Survey Publish is in progress, please try again later"},CompletedSurvey:{ar:"مكتمل",en:"Complete"},Selective:{ar:"اختيار",en:"Selective"},NoVolunteersFoundForSelectedCriteria:{ar:" لا يمكن نشر الاستبيان لعدم وجود متطوعين حسب النطاق المدخل",en:"Publish is Not Successful, No volunteers found for selected criteria"},DeleteConfirmation:{ar:"هل أنت متأكد من حذف الفرصة:  @eventname@?",en:"Confirm if you want to delete event: @eventname@?"},SuccessfullyDeleteMessageApproval:{ar:"تم رفع طلب الحذف بنجاح، في انتظار اعتماد الحذف",en:"Delete operation successfull, waiting for Final Delete Approval"},SuccessfullyDeleteMessage:{ar:"تم حذف الفرصة بنجاح",en:"Event has been deleted successfully"},SuccessfullyDeletedWithNotification:{ar:"تم حذف الفرصة التطوعية وإخطار المتطوعين بنجاح",en:"Event has been deleted successfully and volunteers have been notified"},DeleteReasonRequired:{ar:"الرجاء إدخال سبب حذف الفرصة التطوعية",en:"Reason is required to continue delete action"},DeleteReason:{ar:"سبب الحذف",en:"Delete Reason"},ActionsRemoveRecordWithApproval:{ar:"حذف (اعتماد)",en:"Delete (Approval)"},DeleteConfirmationWithApproval:{ar:"تحتوي الفرصة التطوعية على دعوات مقبولة، وعندها حذفها سيتم إخطار جميع المتطوعين المقبولين:  @eventname@?",en:"This event has invitations accepted, All volunteers will be notified for this event`s cancellation, Confirm if you want to delete event:  @eventname@?"},Deleted:{ar:"محذوف",en:"Deleted"},PendingDeleted:{ar:"معلقة للحذف",en:"Pending Deleted"},NotAvailable:{ar:"غير نشط",en:"Not Available"},ActionClone:{ar:"نسخ",en:"Clone"},CloneEventTitle:{ar:"نسخ الفرصة التطوعية @Name",en:"Clone Event @Name"},ClonedFromEvent:{ar:"نسخ الفرصة التطوعية",en:"Cloned From Event"},NoDeleteIfHoursAvailable:{ar:"لا يمكن حذف الفرصة التطوعية لوجود ساعات تطوعية مقبولة",en:"This event cannot be deleted as it has volunteer hours approved."},invalid_event_startdate:{ar:"تاريخ بداية الفرصة التطوعية لا يجب أن يكون أصغر من تاريخ اليوم",en:"Start date cannot be less than today's date"},invalid_event_enddate:{ar:"تاريخ نهاية الفرصة التطوعية لا يجب أن يكون أصغر من تاريخ اليوم",en:"End date cannot be less than today's date"},QALabel:{ar:"الاسئلة الشائعة",en:"Q&A"},TicketAndSuggestionsCreate:{ar:"إدارة الشكاوي والاقتراحات",en:"Create Ticket And Suggestions "},TicketCreate:{ar:"إدارة الشكاوي",en:"Create Ticket"},TicketCode:{ar:"رقم الشكوى",en:"Ticket Code"},TicketCreatedBy:{ar:"تم الإنشاء بواسطة ",en:"Created By"},TicketCreatedOn:{ar:" تم الإنشاء  في",en:"Created On"},TicketCreatedTime:{ar:" وقت الانشاء",en:"Created time"},RequestType:{ar:"نوع الطلب ",en:"Request Type"},TicketAction:{ar:"الإجراء",en:"Action"},TicketStatus:{ar:"حالة الشكوى",en:"Ticket Status"},TicketExpiryDate:{ar:"تاريخ الإنتهاء",en:"Expiry Date"},TicketTitle:{ar:"العنوان",en:"Title"},TicketAddNew:{ar:"إضافة شكوى/مقترح",en:"Add New Ticket"},TicketActionBy:{ar:"تم اتخاذ الإجراء بواسطة ",en:"Action By"},TicketActionOn:{ar:" تم الإنشاء  في",en:"Action On"},TicketType:{ar:"نوع الشكوى",en:"Ticket Type"},Reasons:{ar:"الأسباب",en:"Reasons"},AddReasons:{ar:"إضافة الأسباب",en:"Add reasons"},TicketPriority:{ar:"أولوية الشكوى",en:"Ticket Priority"},ActionResponse:{ar:"تم الإنشاء بواسطة ",en:"Action Response"},TicketSavedSuccess:{ar:"تم حفظ الشكوى رقم @code@ بنجاح",en:"Ticket Number @code@ has been saved successfully."},EventInitiativeSavedSuccess:{ar:"تم حفظ الابتكار رقم @code@ بنجاح",en:"Event Initiative Number @code@ has been saved successfully."},TicketSavedError:{ar:"الرجاء إنشاء الشكوى لاحقا",en:"Ticket is not created. Please try again later"},EventInitiativeSavedError:{ar:"الرجاء إنشاء ابتكار الفرصة لاحقا",en:"Event Initiative is not created. Please try again later"},TicketTitleRequired:{ar:"عنوان الشكوى إلزامي ",en:"Ticket Title is required"},TicketDescriptionRequired:{ar:"وصف الشكوى إلزامي ",en:"Ticket Description is required"},TicketTypeRequired:{ar:"نوع الشكوى إلزامي ",en:"Ticket Type is required"},ManageTicket:{ar:"إدارة الشكوى",en:"Manage Ticket"},RecordsLastRefreshedOn:{ar:"آخر تحديث للوحة التحكم في",en:"Dashboard Repository Last Updated On"},RefreshRepository:{ar:"تحديث لوحة التحكم",en:"Refresh Repository"},TotalExportedRecords:{ar:" عنصر تم تصديره بنجاح @No@",en:"@No@ records have been exported successfully"},ApprovedVolunteersInActive:{ar:"المتطوعين المقبولين في الفرص النشطة",en:"Approved Volunteers In Active Events"},ApprovedVolunteersInUpcoming:{ar:"المتطوعين المقبولين في الفرص المستقبلية",en:"Approved Volunteers In Upcoming Events"},ApprovedVolunteersInExpired:{ar:"المتطوعين المقبولين في الفرص المنتهية",en:"Approved Volunteers In Expired Events"},ApprovedVolunteersInAllEvent:{ar:"المتطوعين المقبولين في جميع الفرص",en:"Approved Volunteers In All Event Events"},ExportVolunteerOptions:{ar:"تصدير بيانات المتطوعين",en:"Export Volunteer Options"},ExportEventsOptions:{ar:"تصدير بيانات الفعاليات",en:"Export Events Options"},ExportToExcelF:{ar:"تصدير منسق",en:"Export To Excel (With Formatting)"},ExportToExcelWF:{ar:"تصدير سريع",en:"Export To Excel (Without Formatting)"},VolunteerRegion:{ar:"منطقة المتطوع",en:"Volunteer Region"},VolunteerCity:{ar:"مدينة المتطوع",en:"Volunteer City"},NoOfRecPerPage:{ar:"عدد العناصر في الصفحة",en:"No of Records Per Page"},ActionsViewRecord:{ar:"View",en:"View"},PagingRecords:{ar:" Showing @itemsPerPage@ of @total_count@",en:" Showing @itemsPerPage@ of @total_count@"},AcceptToBeFirstResponder:{ar:"عزيزي موظف الهيئة, للتسجيل كمستجيب أول الرجاء الضغط على الزر التقديم",en:"Dear SRCA Employee, please click on submit button to be a First Responder"},AcceptToBeFirstResponderStatus:{ar:"عزيزي موظف الهيئة, شكرا لتقديمك كمستجيب أول, طلب التقديم تحت المراجعة",en:"Dear SRCA Employee, Thank you for applying"},ApplicantSRCAEmployee:{ar:"المتقدم موظف بهيئة الهلال الأحمر السعودي",en:"Applicant is a SRCA Employee"},FirstResponderRequestDetails:{ar:"تفاصيل طلبات المستجيب الأول",en:"First Responder Request Details"},EmployeeCode:{ar:"االرقم الوظيفي",en:"Employee Code"},Records:{ar:"عنصر",en:"Records"},lblOf:{ar:"من",en:"of"},UndoReject:{ar:"التراجع عن الرفض",en:"Undo Reject"},SuccessfullyUndoneReject:{ar:"تم تحويل المستجيب إلى قائمة طلبات المستجيبين",en:"First Responder has been moved to Request List"},pgFirst:{ar:"الأولى",en:"First"},pgLast:{ar:"الأخيرة",en:"Last"},pgNext:{ar:"التالي",en:"Next"},pgPrevious:{ar:"السابق",en:"Previous"},BtnApproveHours:{ar:"المقبولين",en:"Approve Hours"},BtnReport:{ar:"التقرير",en:"Report"},BtnExport:{ar:"تصدير",en:"Export"},BtnSummary:{ar:"ملخص",en:"Summary"},BtnEventsRecord:{ar:" الفرص التطوعية",en:"Events"},EnterYourName:{ar:"الرجاء كتابة اسمك",en:"Please enter your name"},CourseErrMessage:{ar:"حتى تحصل على روابط الدورات التدريبية، الرجاء قم بالتأكد من ادخال رقم الجوال والبريد الالكتروني بطريقة صحيحة حسب الصيغة المطلوبة",en:"To get your Course links please use correct mobile number and email address in your registration details"},CourseLoadMessage:{ar:"برجاء الانتظار جاري تحميل الدورات التدريبية",en:"Please wait we are loading the courses "},VolunteerFinallyAcceptedMessage:{ar:"عزيزنا المتطوع  بعد اجتيازك لدورة التطوع المجتمعي وإصدار الشهادة سيتم قبولك بشكل نهائي خلال 24 ساعة.",en:"Dear volunteer, after passing the community volunteer course and issuing the certificate, you will be finally accepted within 24 hours."},EventCode:{ar:"رقم الفرصة",en:"Event Code"},HomeSliderTitle:{ar:"بناء المستقبل في أيدي الحالمينا",en:"Building the future is in the hands of the dreamers"},HomeSliderSubTitle:{ar:"كن جزءا من مجتمعنا التطوعي",en:"Be Part of Our Volunteering Opportunities"},FooterAddreeDescription:{ar:"نيوم هي الحلم الجريء والرؤية الشجاعة التي ستكون موطناً ووجهةً لأصحاب الأحلام الكبيرة.خطوة لم يجرؤ أحد على خوضها من قبل، في زمن يحتاج فيه العالم للتفكير بطريقة مبتكرة وإيجاد حلول جديدة.",en:"NEOM is a bold dream and a brave ambition. It is the vision that will shape the new future (and indeed, the word NEOM symbolizes the new future). It is facing the challenge of change that no one has dared to undertake before, at a time when the world needs to think in an innovative way and find new solutions."},FooterSocialMediaLable:{ar:" وسائل التواصل الاجتماعي",en:"Social media"},FooterEmailLable:{ar:" وسائل التواصل الاجتماعي",en:"Social media"},CancelEventRestrictMessage:{ar:"تم قبول انضمامك إلى الفرصة التطوعية، للإلغاء يرجى التواصل مع قائد الفرصة ( @LeadName@ ) عبر البريد الإلكتروني ( @LeadEmail@ )",en:"Your event invitation was approved, to cancel it kindly contact Event Lead ( @LeadName@ ) on Email ( @LeadEmail@ )"},DownloadEventCard:{ar:"تحميل بطاقات المتطوعيين",en:"Download Volunteers Cards"},TicketResponse:{ar:"الرد",en:"Response"},TicketDateTime:{ar:" الوقت والتاريخ",en:"DateTime"},ManageResponse:{ar:"إدارة الشكوى",en:"Manage Ticket"},Reply:{ar:"الرد",en:"Reply"},TicketRepliedSuccess:{ar:"تم إرسال الرد بنجاح",en:"Reply has been sent successfully"},ActionResponseRequired:{ar:"الرجاء إضافة رد",en:"Reply is required"},ActionByUser:{ar:"تم اتخاذ الإجراء بواسطة",en:"Action By User"},TicketActionRequired:{ar:"إجراء الطلب إلزامي",en:"Ticket Action is required"},DownloadCard:{ar:"تحميل بطاقة الفرصة",en:"Download Event Card"},Resolved:{ar:"تم الحل",en:"Resolved"},NotResolved:{ar:"لم يتم الحل",en:"Not Resolved"},ThankYouResponse:{ar:"تم حفظ الرد، نشكر تعاونكم",en:"We have received your response, Thank you for submitting"},ErrorUpdatingTicket:{ar:"لم يتم التعديل، حاول مرة أخرى",en:"Ticket is not modified. Please try again later"},TicketExist:{ar:"يوجد شكوى على الفرصة",en:"There is an exist complaint on the ticket"},EventisRequired:{ar:"ادخال الفرصة التطوعية متطلب إلزامي",en:"Please select the event"},View:{ar:"عرض",en:"View"},InvalidUser:{ar:"مستخدم غير مؤهل",en:"Invalid User"},ResolvedStatus:{ar:"الحالة",en:"Status"},AcceptedStartDate:{ar:"تاريخ قبول المتطوع",en:"Accepted Start Date"},AcceptedEndDate:{ar:"تاريخ نهاية التطوع",en:"Accepted End Date"},ManageTickets:{ar:"الشكاوي والاقتراحات",en:"Manage Tickets"},error_unlockuser:{ar:"لإعادة تنشيط الحساب، الرجاء قم بإعادة تعيين كلمة المرور من خلال الضغط على زر استعادة كلمة المرور",en:"To unlock, please reset your password"},error_deactivatedaccount:{ar:"الحساب معلق، الرجاء التواصل مع مدير النظام",en:"The account is suspended, please contact the system administrator"},NeomFriendsHomePageLinkText:{ar:"أصدقاء نيوم",en:"Neom-Friends"},NeomFriendsHomePageLinkUrl:{ar:"https://impact.neom.com/",en:"https://impact.neom.com/"},error_invalidNIC:{ar:"تم تحديث بيانات بنجاح، سيتم تحويلك إلى بوابة الدخول الموحد",en:"Your information has been successfully updated,  you will be now redirected to National Information Center Platform"},error_invalidNICTitle:{ar:"الدخول عبر النفاذ الموحد إلزامي",en:"National Sign In Required"},IdInfoVerification:{ar:"التحقق من رقم الهوية",en:"Identification Information Verification"},VerificationMsg:{ar:"(الرجاء التأكد من صحة رقم الهوية)",en:"(Please make sure to use your own valid National Identity Number before clicking Verify Button)"},VerificationBtn:{ar:"تحقق",en:"Verify"},error_invalidNICRedirect:{ar:"الحساب بحاجة إلى التوثيق، الرجاء إكمال عملية التوثيق",en:"Account needs verification, kindly proceed to complete the process"},AboutUs:{ar:"من نحن",en:"About Us"},TermsAndCondition:{ar:"الشروط و الاحكام",en:"Terms And Condition"},UpdateInformation:{ar:"طلب تعديل بياناتي الخاصة",en:"Update My Information"},NoPastEvents:{ar:"لا توجد فرصة تطوعية سابقة",en:"There are no previous volunteering "},PrivacyPolicy:{ar:"سياسة الخصوصية",en:"Privacy Policy"},NEOM:{ar:"نيوم",en:"NEOM"},VolunteerInNumbers:{ar:"التطوع في أرقام",en:"Volunteers in numbers"},NeomMessage:{ar:"الناس هم من يجعلون نيوم رائدة",en:"It is the people who make NEOM"},PendingVolInvitation:{ar:"دعوة معلقة",en:"Pending Invitation Request"},GeorgianCalendarName:{ar:"ميلادي",en:"Georgian"},ShareInnovationEvent:{ar:"هل ترغب بمشاركة الابتكار الى مركز التطوع ؟ ",en:"Would you like to share innovation to the volunteer center?"},CurrentProfession:{ar:"الوضع الوظيفي الحالي",en:"Profession"},VolunteeringInformation:{ar:"معلومات المتطوع",en:"Volunteering information"},AccessInformation:{ar:"معلومات الدخول",en:"Access Information"},NeomEmployee:{ar:" هل أنت موظف في نيوم ؟",en:"Are you NEOM employee ?"},InvalidEmailNeom:{ar:"ان كنت من موظفين نيوم يجب ان يحتوي الايميل على @neom.com ",en:"If you're a NEOM employee, the email should contain @neom.com"},RegistrationSavedSuccessfullyNEOM:{ar:"تم حفظ طلبك بنجاح.تم إرسال رابط التحقق من البريد الإلكتروني إلى بريدك الإلكتروني المسجل.بمجرد التحقق من البريد الإلكتروني ، يمكنك الوصول إلى النظام.",en:"Your request has been saved successfully. Email Verification link has been sent to your registered email. Once Email is verified you access the system."},RegeneratedEmailMessage:{ar:"Email Verification link has expired we have re-sent new link to your registered email. Once Email is verified you access the system.",en:"Email Verification link has expired we have re-sent new link to your registered email. Once Email is verified you access the system."},AlreadyVerifiedEmailMessage:{ar:"You are already verified, you can login and access the system using your credentials",en:"You are already verified, you can login and access the system using your credentials"},error_EmailVerification:{ar:"الرجاء توثيق بريدك الالكتروني بالنقر على الرابط المرسل لبريدك الالكتروني المسجل في النظام",en:"Your email verification is still pending, please check your registered email for the verification link."},error_ValidPasswordRequired:{ar:"الرجاء التأكد من كلمة المرور واعادة المحاولة",en:"Please verify your password and try again"},LackOfVolunteerDataErrorMessage:{ar:"برجاء استكمال بيانات التخصص قبل طباعه الشهادة الخاصة بك وذلك من خلال تعديل بيانات التسجيل",en:"Please complete the volunteer's specialization data before printing his certificate by modifying the registration data"},InvitationAcceptedMessage:{ar:"نبارك لك قبولك في الفرصة، الرجاء ملاحظة أن الالتزام بالتطوع يؤثر بشكل مباشر على تقييمك العام، وتبعا على فرصك في القبول في الفرص التطوعية الأخرى ",en:"We congratulate you for being accepted into the event,Please note that the commitment to volunteering will affect directly your overall evaluation, and affect your chances of being accepted into other events "},VolunteeropportunityhasbeenextendedFirstTitle:{ar:"عزيزي المتطوع , لقد تم تمديد فرصتكم التطوعية ",en:"Dear Volunteer, Your volunteer opportunity has been extended "},VolunteeropportunityhasbeenextendedSecondTitle:{ar:"في حال رغبتكم في استمرار عطائكم يرجي اختيار ما يناسبكم  ",en:"If you wish to continue your bid, please choose the one that suits you "},Faq:{ar:"الأسئلة الشائعة",en:"FAQ'S"},VolunteerLogin:{ar:" تسجيل الدخول ",en:" Login"},VolunteerLoginCancel:{ar:"الغاء",en:"Cancel"},RankHours:{ar:" ساعة ",en:"Hours"},RankNextLevel:{ar:" المستوي القادم ",en:"Next Level "},RankCurrentLevel:{ar:"انت الان ",en:"You Are "},RankCurrentLevelWithoutEvents:{ar:" انت الان بحاجة ل المشاركة في الفرص التطوعية ",en:"You now need to participate in volunteer opportunities "},ConditionsSkills:{ar:"المهارات والشروط اللازمة",en:"Conditions & skills required for the event "},Responsibilities:{ar:"مهام ومسئوليات المتطوع",en:"Necessary skills and conditions"},Timely:{ar:"التوقيت المناسب",en:"Timely"},EventTime:{ar:"وقت الفرصة",en:"Event Time"},Morning:{ar:"صباحي",en:"Morning"},Evening:{ar:"مسائي",en:"Evening"},Both:{ar:"كلاهما",en:"Both"},FavoriteDays:{ar:"الأيام المفضلة",en:"Favorite days "},EventDays:{ar:"ايام التطوع",en:"Volunteering days "},EventLocation:{ar:" موقع الفرصة",en:"Event Location"},PresenceInsideFacility:{ar:"حضوري داخل المنشأة",en:"Presence inside facility"},PresenceOutsideFacility:{ar:"حضوري خارج المنشأة",en:"Presence outside facility"},PresenceRemotely:{ar:"عن بعد",en:"Remotely"},EventGender:{ar:"الجنس ",en:"Event Gender"},EventGenderMale:{ar:"ذكور فقط",en:"Males Only"},EventGenderFemale:{ar:"اناث فقط",en:"Females Only"},EventGenderAll:{ar:"كلاهما",en:"Males/Females"},lbl_Saturday:{ar:"السبت",en:"Saturday"},lbl_Sunday:{ar:"الاحد",en:"Sunday"},lbl_Monday:{ar:"الاثنين",en:"Monday"},lbl_Tuesday:{ar:"الثلاثاء",en:"Tuesday"},lbl_Wednesday:{ar:"الاربعاء",en:"Wednesday"},lbl_Thursday:{ar:"الخميس",en:"Thursday"},lbl_Friday:{ar:"الجمعة",en:"Friday"},lbl_EventData:{ar:"بيانات الفرصة التطوعية",en:"Event Data"},lbl_EventStatusData:{ar:"بيانات حالة الفرصة التطوعية",en:"Event status Data"},lbl_VolunteersData:{ar:"بيانات المتطوعيين",en:"volunteers Data"},lbl_SupervisorData:{ar:"بيانات الجهة / المشرف الميداني",en:"Volunteer supervisor Data"},lbl_TravelTime:{ar:"كم تستغرق مدة السفر ",en:"How long does it take to travel?"},lbl_DurationOfTheTraining:{ar:"مدة دورة التدريب بالساعة",en:"Duration of the training"},lbl_VolunteerWorkFieldCategoryGroup:{ar:"تصنيف مجال الفرصة التطوعية",en:"Volunteer WorkField Category"},EventWorkField:{ar:"مجال الفرصة التطوعية",en:"Event Work Field"},EventCategory:{ar:"تصنيف الفرصة",en:"Event Category"},AttendanceType:{ar:"نوع الحضور",en:"Attendance Type"},TimePeriod:{ar:"الفترة الزمنية",en:"Time Period"},FacilityCoordinatorMobile:{ar:"هاتف منسق الجهة",en:"Facility Coordinator Mobile"},YesIWantToContinue:{ar:"نعم اريد الاستمرار",en:"Yes, I want to continue"},IDontWantToContinue:{ar:"لا اريد الاستمرار",en:"I don't want to continue"},CfhsRegistrationValidity:{ar:"صلاحية التسجيل",en:"Registration validity"},lbl_AttendaTraining:{ar:"هل يلزم المتطوع حضور تدريب قبل تنفيذ الفرصة؟",en:"Is it necessary to attend a training to participate in the opportunity?"},lbl_TravelRequired:{ar:"هل تستلزم الفرصة التطوعية ان يسافر المتطوع لتفنيذها؟ ",en:"Is it necessary to travel to participate in the volunteer opportunity?"},AllNews:{ar:"تصفح المزيد",en:" All News"},JoinWithUs:{ar:"إنضم معنا",en:"Join Us"},lblMediaCenterHeader:{ar:"المركز الاعلامي",en:"Media Center"},lblSocialMediaHeader:{ar:"وسائل التواصل الإجتماعية",en:"Social Media"},lblNew:{ar:"جديد",en:" New "},lblActive:{ar:"نشطة",en:" Active "},lblUpcoming:{ar:"مستقبلية",en:" Upcoming "},lblMyAccount:{ar:"حسابي",en:" My Account "},lblListView:{ar:"عرض قائمة",en:" List View "},lblMapView:{ar:"عرض خريطة",en:" Map View "},lblSubscribeOnYouTube:{ar:"اشترك في القناة",en:" Subscribe on YouTube "}},f={Page_Login:{ar:"صفحة الدخول",en:"Login Page"},Page_Users:{ar:"المستخدمين",en:"Users"},Page_Configuration:{ar:" إعدادات الأجهزة",en:"Devices Configurations"},Page_NotFound:{ar:"لم يتم العثور",en:"Not Found"},Page_Home:{ar:"الصفحة الرئيسية",en:"Home"}},{GetLang:i,SetLang:s,GetResource:h,GetSystemPages:l,GetCurrentLangResources:c,GetClientCode:o}}]);VsApp.factory("Lookups",["locale","AuthService","$rootScope","api",function(n,t,i){var u={},k=n.GetClientCode(),r=n.GetLang(),f=n.GetCurrentLangResources(),e=null,p=null,b=null,w=null,o=null,s=null,h=null,c=null,l=null,a=null,v=null,y=null;return u.invitationRequestStatuses={PendingVolunteer:1,AcceptedVolunteerPendingStaff:2,RejectedVolunteer:3,AcceptedStaff:4,RejectedStaff:5,Cancelled:6,VolunteerJoinRequest:7,ReleaseVolunteer:8,VolunteerAbsent:9,VolunteerRequestToRelease:10},u.InvitationRequestStatusLookup=[{value:1,text:r=="ar"?"بإنتظار موافقة المتطوع":"Pending Volunteer"},{value:2,text:r=="ar"?"بإنتظار موافقة المشرف":"Pending Staff"},{value:3,text:r=="ar"?"رفض من قبل المتطوع":"Rejected Volunteer"},{value:4,text:r=="ar"?"مقبول":"Accepted Staff"},{value:5,text:r=="ar"?"مرفوض من قبل المشرف":"Rejected Staff"},{value:6,text:r=="ar"?"لاغي":"Cancelled"},{value:7,text:r=="ar"?"متطوع يطلب الانضمام":"Volunteer Join Request"},{value:8,text:r=="ar"?"متطوع منسحب":"Volunteer Released"},{value:9,text:r=="ar"?"متطوع غائب":"Volunteer Absent"},{value:10,text:r=="ar"?"متطوع يطلب الانسحاب":"Volunteer request to release "}],u.EventStatusData=[{value:0,text:r=="ar"?"الفرص التطوعية المستقبلية":"Upcoming Events"},{value:2,text:r=="ar"?k=="NEOM"?"فرص اليوم":"الفرص التطوعية النشطة":"Active Events"},{value:3,text:r=="ar"?"الفرص التطوعية المنتهية":"Closed Events"},{value:4,text:r=="ar"?"محذوف":"Deleted"}],u.EventVisibilityType=[{value:0,text:r=="ar"?" متاح لجميع المدن والمناطق":"Open to Region and City"},{value:1,text:r=="ar"?"المنطقة المحددة فقط":"Restricted to Selected Region"},{value:2,text:r=="ar"?"المدينة المحددة فقط":"Restricted to Selected City"},{value:3,text:r=="ar"?"المتطوعين المحددين فقط":"Restricted to Volunteers who gets Invitaion"}],u.BloodGroups=[{value:1,text:"A+"},{value:2,text:"A-"},{value:3,text:"B+"},{value:4,text:"B-"},{value:5,text:"O+"},{value:6,text:"O-"},{value:7,text:"AB+"},{value:8,text:"AB-"}],u.MaritalStatusData=[{value:1,text:f.Single},{value:2,text:f.Married}],u.GenderTypeData=[{value:1,text:f.Male},{value:2,text:f.Female}],u.VolunteerHourYears=[{value:2018,text:2018},{value:2019,text:2019},{value:2020,text:2020}],u.JobRoleTypesData=[{value:1,text:r=="ar"?"طالب/متدرب":"Student"},{value:2,text:r=="ar"?"خريج جديد":"Fresh-Graduate"},{value:3,text:r=="ar"?"متوسط الخبرة":"Mid-Level"},{value:4,text:r=="ar"?"إدارة":"Management"},{value:5,text:r=="ar"?"إدارة عليا":"Superior Management"},{value:6,text:r=="ar"?"إستشاري":"Consultant"},{value:7,text:r=="ar"?"تنفيذي":"Executives"}],u.IdTypesData=[{value:0,text:r=="ar"?"بطاقة أحوال":"National"},{value:1,text:r=="ar"?"إقامه":"Resident"}],u.TitleData=[{value:1,text:f.Mr},{value:2,text:f.Ms},{value:3,text:f.Miss}],u.GetRegionsDS=function(){return!e?(e=e||new kendo.data.DataSource({transport:{read:{url:Resources.urls.regions,async:!1,beforeSend:t.addTokenToRequest,complete:i.logoutIfForbidden}},schema:{parse:function(n){for(var u,i=[],t=0;t<n.length;t++)u={RegionId:n[t].Id,value:n[t].Id,text:r=="ar"?n[t].NameAr:n[t].Name,Name:r=="ar"?n[t].NameAr:n[t].Name},i.push(u);return i}}}),e.read(),e):e},u.GetGroupRegionsDS=function(){return!o?(o=o||new kendo.data.DataSource({transport:{read:{url:Resources.urls.groupRegions,async:!1,beforeSend:t.addTokenToRequest,complete:i.logoutIfForbidden}},schema:{parse:function(n){for(var u,i=[],t=0;t<n.length;t++)u={grpId:n[t].Id,value:n[t].Id,text:r=="ar"?n[t].NameAr:n[t].Name,Name:r=="ar"?n[t].NameAr:n[t].Name},i.push(u);return i}}}),o.read(),o):o},u.GetUserCategoryDS=function(){return!a?(a=a||new kendo.data.DataSource({transport:{read:{url:Resources.urls.userCategories,async:!1,beforeSend:t.addTokenToRequest,complete:i.logoutIfForbidden}},schema:{parse:function(n){for(var u,i=[],t=0;t<n.length;t++)u={CategoryId:n[t].Id,value:n[t].Id,text:r=="ar"?n[t].NameAr:n[t].Name,Name:r=="ar"?n[t].NameAr:n[t].Name},i.push(u);return i}}}),a.read(),a):a},u.GetUserSubCategoryLevel1DS=function(){return!v?(v=v||new kendo.data.DataSource({transport:{read:{url:Resources.urls.userSubCategoriesLevel1,async:!1,beforeSend:t.addTokenToRequest,complete:i.logoutIfForbidden}},schema:{parse:function(n){for(var u,i=[],t=0;t<n.length;t++)u={Id:n[t].Id,value:n[t].Id,text:r=="ar"?n[t].NameAr:n[t].Name,Name:r=="ar"?n[t].NameAr:n[t].Name},i.push(u);return i}}}),v.read(),v):v},u.GetUserSubCategoryLevel2DS=function(){return!y?(y=y||new kendo.data.DataSource({transport:{read:{url:Resources.urls.userSubCategoriesLevel2,async:!1,beforeSend:t.addTokenToRequest,complete:i.logoutIfForbidden}},schema:{parse:function(n){for(var u,i=[],t=0;t<n.length;t++)u={Id:n[t].Id,value:n[t].Id,text:r=="ar"?n[t].NameAr:n[t].Name,Name:r=="ar"?n[t].NameAr:n[t].Name},i.push(u);return i}}}),y.read(),y):y},u.GetColorSettingsDS=function(){return!s?(s=s||new kendo.data.DataSource({transport:{read:{url:Resources.urls.colorSetting,async:!1,beforeSend:t.addTokenToRequest,complete:i.logoutIfForbidden}},schema:{parse:function(n){for(var r,i=[],t=0;t<n.length;t++)r={ColorSettingId:n[t].Id,value:n[t].Id,text:n[t].ColorName,Name:n[t].ColorCode},i.push(r);return i}}}),s.read(),s):s},u.GetGregorianYearsDS=function(){return!c?(c=c||new kendo.data.DataSource({transport:{read:{url:Resources.urls.gregRunningYears,async:!1,beforeSend:t.addTokenToRequest,complete:i.logoutIfForbidden}},schema:{parse:function(n){for(var r,i=[],t=0;t<n.length;t++)r={yearValue:n[t]},i.push(r);return i}}}),c.read(),c):c},u.GetRegionBasedRoleDS=function(){return!e?(e=e||new kendo.data.DataSource({transport:{read:{url:Resources.urls.regionsReadbasedRole,async:!1,beforeSend:t.addTokenToRequest,complete:i.logoutIfForbidden}},schema:{parse:function(n){for(var u,i=[],t=0;t<n.length;t++)u={RegionId:n[t].Id,value:n[t].Id,text:r=="ar"?n[t].NameAr:n[t].Name,Name:r=="ar"?n[t].NameAr:n[t].Name},i.push(u);return i}}}),e.read(),e):e},u.GetEventTypeGroupsDS=function(){return!l?(l=l||new kendo.data.DataSource({transport:{read:{url:Resources.urls.eventTypeGroups,async:!1,beforeSend:t.addTokenToRequest,complete:i.logoutIfForbidden}},schema:{parse:function(n){for(var u,i=[],t=0;t<n.length;t++)u={grpId:n[t].Id,value:n[t].Id,text:r=="ar"?n[t].NameAr:n[t].Name,Name:r=="ar"?n[t].NameAr:n[t].Name},i.push(u);return i}}}),l.read(),l):l},u.GetCitiesDS=function(){return b=new kendo.data.DataSource({transport:{read:{url:Resources.urls.cities,async:!1,beforeSend:i.addTokenToRequest,complete:i.logoutIfForbidden}},schema:{parse:function(n){for(var u,i=[],t=0;t<n.length;t++)u={CityId:n[t].Id,value:n[t].Id,text:r=="ar"?n[t].NameAr:n[t].Name,Name:r=="ar"?n[t].NameAr:n[t].Name,RegionId:n[t].RegionId},i.push(u);return i}}}),b.read(),b},u.GetUserRoles=function(){return!w?(w=new kendo.data.DataSource({transport:{read:{url:Resources.urls.userRoles,async:!1,beforeSend:i.addTokenToRequest,complete:i.logoutIfForbidden}},schema:{parse:function(n){for(var u,i=[],t=0;t<n.length;t++)u={Id:n[t].Id,value:n[t].Id,text:r=="ar"?n[t].NameAr:n[t].Name,Name:r=="ar"?n[t].NameAr:n[t].Name},i.push(u);return i}}}),w.read(),w):w},u.GetLanguageDS=function(){return!p?(p=p||new kendo.data.DataSource({transport:{read:{url:Resources.urls.languages,async:!1,beforeSend:t.addTokenToRequest}},schema:{parse:function(n){for(var u,i=[],t=0;t<n.length;t++)u={value:n[t].Id,text:r=="ar"?n[t].NameAr:n[t].Name},i.push(u);return i}}}),p.read(),p):e},u.SysRoles=[{value:1,text:r=="ar"?"متطوع":"Volunteer"},{value:2,text:r=="ar"?"مشرف":"Staff"},{value:3,text:r=="ar"?"مدير النظام":"Admin"},{value:4,text:r=="ar"?"مراجع":"Reviewer"},{value:5,text:r=="ar"?"مشرف المتطوعين":"Volunteer Admin"},{value:6,text:r=="ar"?"إدارة المستجيبين":"Responder Admin"}],u.PercentageRatingsData=[{value:1,text:r=="ar"?"ضعيف":"Poor"},{value:2,text:r=="ar"?"مقبول":"Fair"},{value:3,text:r=="ar"?"جيد":"Good"},{value:4,text:r=="ar"?"جيد جدا":"Very Good"},{value:5,text:r=="ar"?"متميز":"Excellent"},],u.PercentageRatings=[{Id:1,Name:"Poor",NameAr:"ضعيف"},{Id:2,Name:"Fair",NameAr:"مقبول"},{Id:3,Name:"Good",NameAr:"جيد"},{Id:4,Name:"Very Good",NameAr:"جيد جدا"},{Id:5,Name:"Excellent",NameAr:"متميز"}],u.RegistrationRequestStatuses=[{value:1,text:r=="ar"?"لم يرسل بعد":"Draft"},{value:2,text:r=="ar"?"تم الإرسال":"Submitted"},{value:3,text:r=="ar"?"تمت الموافقه المبدئيه":"Initially Accepted"},{value:5,text:r=="ar"?"تم الموافقه النهائيه":"Approved"},{value:6,text:r=="ar"?"تم الرفض":"Rejected"}],u.imageAllowedTypes=["jpeg","jpg","png","bmp"],u.docsAllowedTypes=["pdf","ppt","pptx","txt"],u.mixAllowedTypes=["jpeg","jpg","png","bmp","pdf","ppt","pptx","zip","rar","7z"],u.UniversityYears=[{Id:1,Name:f.Year1},{Id:2,Name:f.Year2},{Id:3,Name:f.Year3},{Id:4,Name:f.Year4},{Id:5,Name:f.Year5},{Id:6,Name:f.Year6},{Id:7,Name:f.Year7}],u.SCfHSSearchTypes=[{Id:0,Name:"Iqama Number",NameAr:"رقم الإقامة"},{Id:1,Name:"NationalID",NameAr:"رقم الهوية"},{Id:2,Name:"Passport Number",NameAr:"رقم جواز السفر"},{Id:3,Name:"SCfHS Number",NameAr:"رقم هيئة التخصصات الصحية"}],u.SCfHSPractionerStatusesData=[{value:1,text:r=="ar"?"مسجل و مصنف":"Registered & Classified"},{value:2,text:r=="ar"?"تحت الموافقة المبدئية":"Under Initial Approval"},{value:3,text:r=="ar"?"مصنف و غير مسجل":"Classified & Not Registered"},{value:4,Name:"Not Registered in SCfHS",text:r=="ar"?"غير مسجل في الهيئة":"Not Registered in SCfHS"},{value:5,text:r=="ar"?"عليك مراجعة إدارة التوثيق لتحديث بياناتك":"Must Contact Documentation Department to update your information"},{value:6,text:r=="ar"?"ممنوع من العمل":"Black Listed"},{value:7,text:r=="ar"?"حالة الممارس غير معرفه":"Unknown Practitioner Status"},{value:8,text:r=="ar"?"صالحة":"Valid"},{value:9,text:r=="ar"?"منتهية":"Expired"}],u.SCfHSPractionerStatuses=[{Id:1,Name:"Registered & Classified",NameAr:"مسجل و مصنف"},{Id:2,Name:"Under Initial Approval",NameAr:"تحت الموافقة المبدئية"},{Id:3,Name:"Classified & Not Registered",NameAr:"مصنف و غير مسجل"},{Id:4,Name:"Not Registered in SCfHS",NameAr:"غير مسجل في الهيئة"},{Id:5,Name:"Must Contact Documentation Department to update your information",NameAr:"عليك مراجعة إدارة التوثيق لتحديث بياناتك"},{Id:6,Name:"Black Listed",NameAr:"ممنوع من العمل"},{Id:7,Name:"Unknown Practitioner Status",NameAr:"حالة الممارس غير معرفه"},{Id:8,Name:"Valid",NameAr:"صالحة"},{Id:9,Name:"Expired",NameAr:"منتهية"}],u.GetCategoriesDS=function(){return!h?(h=h||new kendo.data.DataSource({transport:{read:{url:Resources.urls.userCategories,async:!1,beforeSend:t.addTokenToRequest,complete:i.logoutIfForbidden}},schema:{parse:function(n){for(var u,i=[],t=0;t<n.length;t++)u={CategoryId:n[t].Id,value:n[t].Id,text:r=="ar"?n[t].NameAr:n[t].Name,Name:r=="ar"?n[t].NameAr:n[t].Name},i.push(u);return i}}}),h.read(),h):h},u.getObjectNameById=function(n,t){if(n!=undefined){var i=n.map(function(n,t){return t.Id});return i&&i.length&&n[$(i).index(t)]?n[$(i).index(t)].Name:null}},u.GetRunningYears=function(n,t,i){return _url="/api/utils/gregRunningYears/read/"+n,_dataParams=null,$.ajax({type:"GET",url:_url,data:_dataParams,dataType:"json",success:function(n){if(n!=null||n!=undefined)var t=[];$.each(n,function(n,i){t.push({text:i,value:i})});t.push({text:f.All,value:-1});RunningYearsLookup=t},async:!1,beforeSend:t,complete:i}),RunningYearsLookup},u}]);langCookie=readCookie("lang");langCookie||(str=location.hash,str!=""?(n=str.lastIndexOf("/"),vl=str.split("/"),langCookie=vl[1]!="en"&&vl[1]!="ar"?"ar":vl[1],createCookie("lang",langCookie,1)):langCookie="ar");var CurrentLanguage="/"+langCookie,clientCode=readCookie("ClientCode"),RootState="Root",RootUrl=CurrentLanguage+"",viewsVersion="?t="+buildNumber,viewsPath="ngApp/Views/",RootTemplatePath=viewsPath+clientCode+"/Home.html"+viewsVersion,ChangePasswordState="ChangePassword",ChangePasswordUrl=CurrentLanguage+"/ChangePassword?token&exp",ChangePasswordPath=viewsPath+"ChangePassword.html"+viewsVersion,LoginState="Login",LoginUrl=CurrentLanguage+"/login",LoginTemplatePath=viewsPath+clientCode+"/Login.html"+viewsVersion,HomeState="Home",HomeUrl=CurrentLanguage+"/home",HomeTemplatePath=viewsPath+clientCode+"/Home.html"+viewsVersion,SSOState="SSO",SSOUrl=CurrentLanguage+"/SSO",SSOTemplatePath=viewsPath+"SSO.html"+viewsVersion,OnlineState="Home.Online",OnlineUrl=CurrentLanguage+"/online",OnlineTemplatePath=viewsPath+"Online.html"+viewsVersion,UsersState="Users",UsersUrl=CurrentLanguage+"/users",UsersTemplatePath=viewsPath+"Users.html"+viewsVersion,NotFoundState="Home.NotFound",NotFoundUrl=CurrentLanguage+"/notfound",NotFoundTemplatePath=viewsPath+"NotFound.html"+viewsVersion,ForbiddenState="Home.Forbidden",ForbiddenUrl=CurrentLanguage+"/forbidden",ForbiddenTemplatePath=viewsPath+"Forbidden.html"+viewsVersion,DashboardState="dashboard",DashboardUrl=CurrentLanguage+"/dashboard",DashboardTemplatePath=viewsPath+"dashboard.html"+viewsVersion,DashboardStatisticsState="DashboardStatistics",DashboardStatisticsUrl=CurrentLanguage+"/DashboardStatistics",DashboardStatisticsTemplatePath=viewsPath+"DashboardStatistics.html"+viewsVersion,PrivateEventsInfoState="PrivateEventsInfo",PrivateEventsInfoUrl=CurrentLanguage+"/PrivateEventsInfo",PrivateEventsInfoTemplatePath=viewsPath+"PrivateEventsInfo.html"+viewsVersion,PrivateEventsInfoDetailsState="PrivateEventsInfoDetails",PrivateEventsInfoDetailsUrl=CurrentLanguage+"/PrivateEventsInfoDetails/:id",PrivateEventsInfoDetailsTemplatePath=viewsPath+"PrivateEventsInfoDetails.html"+viewsVersion,RegistrationState="Registration",RegistrationUrl=CurrentLanguage+"/Registration/:id",RegistrationTemplatePath=viewsPath+"Registration.html"+viewsVersion,PractionerVerifyState="PractionerVerify",PractionerVerifyUrl=CurrentLanguage+"/PractionerVerify",PractionerVerifyTemplatePath=viewsPath+"PractionerVerify.html"+viewsVersion,EventsState="Events",EventsUrl=CurrentLanguage+"/Event",EventsTemplatePath=viewsPath+"EventsHome.html"+viewsVersion,WorkFieldsState="WorkFields",WorkFieldsUrl=CurrentLanguage+"/WorkFields",WorkFieldsTemplatePath=viewsPath+"WorkFields.html"+viewsVersion,EventTypesState="EventTypes",EventTypesUrl=CurrentLanguage+"/EventTypes",EventTypesTemplatePath=viewsPath+"EventTypes.html"+viewsVersion,SkillsState="Skills",SkillsUrl=CurrentLanguage+"/Skills",SkillsTemplatePath=viewsPath+"Skills.html"+viewsVersion,CertificateTypesState="CertificateTypes",CertificateTypesUrl=CurrentLanguage+"/CertificateTypes",CertificateTypesTemplatePath=viewsPath+"CertificateTypes.html"+viewsVersion,RegistrationAdminState="RegistrationAdmin",RegistrationAdminUrl=CurrentLanguage+"/RegistrationAdmin",RegistrationAdminTemplatePath=viewsPath+"RegistrationAdmin.html"+viewsVersion,CertificateFieldsState="CertificateFields",CertificateFieldsUrl=CurrentLanguage+"/CertificateFieldsAdmin",CertificateFieldsTemplatePath=viewsPath+"CertificateFields.html"+viewsVersion,ThankYouState="Confirmation",ThankYouUrl=CurrentLanguage+"/Confirmation",ThankYouTemplatePath=viewsPath+"Confirmation.html"+viewsVersion,VolunteersState="Volunteers",VolunteersUrl=CurrentLanguage+"/Volunteers",VolunteersTemplatePath=viewsPath+"Volunteers.html"+viewsVersion,CurrentEventsState="CurrentEvents",CurrentEventsUrl=CurrentLanguage+"/CurrentEvents",CurrentEventsTemplatePath=viewsPath+"CurrentEvents.html"+viewsVersion,RecentEventsState="RecentEvents",RecentEventsUrl=CurrentLanguage+"/RecentEvents",RecentEventsTemplatePath=viewsPath+"RecentEvents.html"+viewsVersion,EventInvitationsState="EventInvitations",EventInvitationsUrl=CurrentLanguage+"/EventInvitations",EventInvitationsTemplatePath=viewsPath+"EventInvitations.html"+viewsVersion,PastEventsState="PastEvents",PastEventsUrl=CurrentLanguage+"/PastEvents",PastEventsTemplatePath=viewsPath+"PastEvents.html"+viewsVersion,ContributionState="Contribution",ContributionUrl=CurrentLanguage+"/Contribution/:volunteerId/:eventId",ContributionTemplatePath=viewsPath+"Contribution.html"+viewsVersion,PastContributionState="PastContribution",PastContributionUrl=CurrentLanguage+"/PastContribution",PastContributionTemplatePath=viewsPath+"PastContribution.html"+viewsVersion,AcceptedState="Accepted",AcceptedUrl=CurrentLanguage+"/Accepted",AcceptedTemplatePath=viewsPath+"Accepted.html"+viewsVersion,ApprovedState="Approved",ApprovedUrl=CurrentLanguage+"/Approved",ApprovedTemplatePath=viewsPath+"Approved.html"+viewsVersion,RejectedState="Rejected",RejectedUrl=CurrentLanguage+"/Rejected",RejectedTemplatePath=viewsPath+"Rejected.html"+viewsVersion,EventInviteVolunteersState="EventInviteVolunteers",EventInviteVolunteersUrl=CurrentLanguage+"/EventInviteVolunteers/:id",EventInviteVolunteersTemplatePath=viewsPath+"EventInviteVolunteers.html"+viewsVersion,OpenInvitationsEvents="OpenInvitationsEvents",OpenInvitationsEventsUrl=CurrentLanguage+"/OpenInvitationsEvents",OpenInvitationsEventsTemplatePath=viewsPath+"OpenInvitationsEvents.html"+viewsVersion,EventInvitedVolunteers="EventInvitedVolunteers",EventInvitedVolunteersUrl=CurrentLanguage+"/EventInvitedVolunteers/:id",EventInvitedVolunteersTemplatePath=viewsPath+"EventInvitedVolunteers.html"+viewsVersion,InprogressEventsState="InprogressEvents",InprogressEventsUrl=CurrentLanguage+"/InprogressEvents",InprogressEventsTemplatePath=viewsPath+"InprogressEvents.html"+viewsVersion,ParticipatedVolunteers="ParticipatedVolunteers",ParticipatedVolunteersUrl=CurrentLanguage+"/ParticipatedVolunteers/:id",ParticipatedVolunteersTemplatePath=viewsPath+"ParticipatedVolunteers.html"+viewsVersion,SlidesManagmentState="SlidesManagment",SlidesManagmentStateUrl=CurrentLanguage+"/SlidesManagment",SlidesManagmentStateTemplatePath=viewsPath+"SlidesManagment.html"+viewsVersion,SlidesEditState="SlidesEdit",SlidesEditStateUrl=CurrentLanguage+"/SlidesEdit/:id",SlidesEditStateTemplatePath=viewsPath+"SlidesEdit.html"+viewsVersion,NewsManagementState="NewsManagement",NewsManagementStateUrl=CurrentLanguage+"/NewsManagement",NewsManagementStateTemplatePath=viewsPath+"NewsManagement.html"+viewsVersion,NewsEditState="NewsEdit",NewsEditStateUrl=CurrentLanguage+"/NewsEdit/:id",NewsEditStateTemplatePath=viewsPath+"NewsEdit.html"+viewsVersion,NewsState="News",NewsStateUrl=CurrentLanguage+"/News/:id",NewsStateTemplatePath=viewsPath+"News.html"+viewsVersion,MediaCenterState="MediaCenter",MediaCenterStateUrl=CurrentLanguage+"/MediaCenter/:id",MediaCenterStateTemplatePath=viewsPath+"MediaCenter.html"+viewsVersion,NewsDetailsState="NewsDetails",NewsDetailsStateUrl=CurrentLanguage+"/NewsDetails/:id",NewsDetailsStateTemplatePath=viewsPath+"NewsDetails.html"+viewsVersion,EventsInfoState="EventsInfo",EventsInfoUrl=CurrentLanguage+"/EventsInfo",EventsInfoTemplatePath=viewsPath+"EventsInfo.html"+viewsVersion,EventsInfoDetailsState="EventsInfoDetails",EventsInfoDetailsUrl=CurrentLanguage+"/EventsInfoDetails/:id",EventsInfoDetailsTemplatePath=viewsPath+"EventsInfoDetails.html"+viewsVersion,OngoingEventsState="OngoingEvents",OngoingEventsUrl=CurrentLanguage+"/OngoingEvents/:id",OngoingEventsTemplatePath=viewsPath+"OngoingEvents.html"+viewsVersion,JoinEventState="JoinEvent",JoinEventUrl=CurrentLanguage+"/JoinEvent/:id",JoinEventTemplatePath=viewsPath+"JoinEvent.html"+viewsVersion,ImageGalleryState="ImageGallery",ImageGalleryUrl=CurrentLanguage+"/ImageGallery/:id",ImageGalleryTemplatePath=viewsPath+"ImageGallery.html"+viewsVersion,SubmittedState="Submitted",SubmittedUrl=CurrentLanguage+"/Submitted",SubmittedTemplatePath=viewsPath+"Submitted.html"+viewsVersion,PublicImageGalleryState="PublicImageGallery",PublicImageGalleryUrl=CurrentLanguage+"/PublicImageGallery/:id",PublicImageGalleryTemplatePath=viewsPath+"PublicImageGallery.html"+viewsVersion,ClosedEventsState="ClosedEvents",ClosedEventsUrl=CurrentLanguage+"/ClosedEvents",ClosedEventsTemplatePath=viewsPath+"ClosedEvents.html"+viewsVersion,ExcellentVolunteersManagementState="ExcellentVolunteersManagement",ExcellentVolunteersManagementUrl=CurrentLanguage+"/ExcellentVolunteersManagement",ExcellentVolunteersManagementTemplatePath=viewsPath+"ExcellentVolunteersManagement.html"+viewsVersion,EditExcellentVolunteerState="EditExcellentVolunteer",EditExcellentVolunteerUrl=CurrentLanguage+"/EditExcellentVolunteer/:id",EditExcellentVolunteerTemplatePath=viewsPath+"EditExcellentVolunteer.html"+viewsVersion,EditRegistrationState="EditRegistration",EditRegistrationUrl=CurrentLanguage+"/EditRegistration",EditRegistrationTemplatePath=viewsPath+"Registration.html"+viewsVersion,ExportVolunteersDataState="ExportVolunteersData",ExportVolunteersDataUrl=CurrentLanguage+"/ExportVolunteersData",ExportVolunteersDataTemplatePath=viewsPath+"ExportVolunteersData.html"+viewsVersion,ExportInvitedVolunteersDataState="ExportInvitedVolunteersData",ExportInvitedVolunteersDataUrl=CurrentLanguage+"/ExportInvitedVolunteersData/:id",ExportInvitedVolunteersDataTemplatePath=viewsPath+"ExportInvitedVolunteersData.html"+viewsVersion,EditStaffProfileState="EditStaffProfile",EditStaffProfileUrl=CurrentLanguage+"/EditStaffProfile/:id",EditStaffProfileTemplatePath=viewsPath+"EditStaffProfile.html"+viewsVersion,VolunteerPerformanceState="VolunteerPerformance",VolunteerPerformanceUrl=CurrentLanguage+"/VolunteerPerformance/:id/:eventId",VolunteerPerformanceTemplatePath=viewsPath+"VolunteerPerformance.html"+viewsVersion,VolunteersPerformanceState="VolunteersPerformance",VolunteersPerformanceUrl=CurrentLanguage+"/VolunteersPerformance/:eventId",VolunteersPerformanceTemplatePath=viewsPath+"VolunteersPerformance.html"+viewsVersion,EventApprovedVolunteersState="EventApprovedVolunteers",EventApprovedVolunteersUrl=CurrentLanguage+"/EventApprovedVolunteers/:id",EventApprovedVolunteersTemplatePath=viewsPath+"EventApprovedVolunteers.html"+viewsVersion,EventReportsState="EventReports",EventReportsUrl=CurrentLanguage+"/EventReports/:id/:eventId",EventReportsTemplatePath=viewsPath+"EventReport.html"+viewsVersion,EventReportsListState="EventReportsList",EventReportsListUrl=CurrentLanguage+"/EventReportsList/:id",EventReportsListTemplatePath=viewsPath+"EventReportsList.html"+viewsVersion,EventReportsSummaryState="EventReportsSummary",EventReportsSummaryUrl=CurrentLanguage+"/EventReportsSummary/:id",EventReportsSummaryTemplatePath=viewsPath+"EventReportsSummary.html"+viewsVersion,EventsCalendarState="EventsCalendar",EventsCalendarUrl=CurrentLanguage+"/EventsCalendar",EventsCalendarTemplatePath=viewsPath+"EventsCalendar.html"+viewsVersion,StatisticsState="Statistics",StatisticsUrl=CurrentLanguage+"/Statistics",StatisticsTemplatePath=viewsPath+"Statistics.html"+viewsVersion,StaffEventsCalendarState="StaffEventsCalendar",StaffEventsCalendarUrl=CurrentLanguage+"/StaffEventsCalendar",StaffEventsCalendarTemplatePath=viewsPath+"StaffEventsCalendar.html"+viewsVersion,VolunteersStatsState="VolunteersStats",VolunteersStatsUrl=CurrentLanguage+"/VolunteersStats",VolunteersStatsTemplatePath=viewsPath+"VolunteersStats.html"+viewsVersion,ApproveInvitedVolunteersState="ApproveInvitedVolunteers",ApproveInvitedVolunteersUrl=CurrentLanguage+"/ApproveInvitedVolunteers/:id",ApproveInvitedVolunteersTemplatePath=viewsPath+"ApproveInvitedVolunteers.html"+viewsVersion,EventsStatsState="EventsStats",EventsStatsUrl=CurrentLanguage+"/EventsStats",EventsStatsTemplatePath=viewsPath+"EventsStats.html"+viewsVersion,EventsStatsAllRegionState="EventsStatsAllRegion",EventsStatsAllRegionUrl=CurrentLanguage+"/EventsStatsAllRegion",EventsStatsAllRegionTemplatePath=viewsPath+"EventsStatsAllRegion.html"+viewsVersion,EventsTargetState="EventsTarget",EventsTargetUrl=CurrentLanguage+"/EventsTarget",EventsTargetTemplatePath=viewsPath+"EventsTarget.html"+viewsVersion,EventTypesTargetState="EventTypesTarget",EventTypesTargetUrl=CurrentLanguage+"/EventTypesTarget",EventTypesTargetTemplatePath=viewsPath+"EventTypesTarget.html"+viewsVersion,KPICompareEventsState="KPICompareEvents",KPICompareEventsUrl=CurrentLanguage+"/KPICompareEvents",KPICompareEventsTemplatePath=viewsPath+"KPICompareEvents.html"+viewsVersion,VolunteersPerformancePState="VolunteersPerformanceP",VolunteersPerformancePUrl=CurrentLanguage+"/VolunteersPerformanceP/:eventId",VolunteersPerformancePTemplatePath=viewsPath+"VolunteersPerformanceP.html"+viewsVersion,RegionsState="Regions",RegionsUrl=CurrentLanguage+"/Regions",RegionsTemplatePath=viewsPath+"Regions.html"+viewsVersion,CitiesState="Cities",CitiesUrl=CurrentLanguage+"/Cities",CitiesTemplatePath=viewsPath+"Cities.html"+viewsVersion,GroupRegionsState="GroupRegions",GroupRegionsUrl=CurrentLanguage+"/GroupRegions",GroupRegionsTemplatePath=viewsPath+"GroupRegions.html"+viewsVersion,UserCategoryState="UserCategory",UserCategoryUrl=CurrentLanguage+"/UserCategory",UserCategoryTemplatePath=viewsPath+"UserCategory.html"+viewsVersion,UserSubCategoryLevel1State="UserSubCategoryLevel1",UserSubCategoryLevel1Url=CurrentLanguage+"/UserSubCategoryLevel1",UserSubCategoryLevel1TemplatePath=viewsPath+"UserSubCategoryLevel1.html"+viewsVersion,UserSubCategoryLevel2State="UserSubCategoryLevel2",UserSubCategoryLevel2Url=CurrentLanguage+"/UserSubCategoryLevel2",UserSubCategoryLevel2TemplatePath=viewsPath+"UserSubCategoryLevel2.html"+viewsVersion,UserExperienceLevelState="UserExperienceLevel",UserExperienceLevelUrl=CurrentLanguage+"/UserExperienceLevel",UserExperienceLevelTemplatePath=viewsPath+"UserExperienceLevel.html"+viewsVersion,TrainingCertificatesState="TrainingCertificates",TrainingCertificatesUrl=CurrentLanguage+"/TrainingCertificates",TrainingCertificatesTemplatePath=viewsPath+"TrainingCertificates.html"+viewsVersion,EventTypeGroupState="EventTypeGroups",EventTypeGroupUrl=CurrentLanguage+"/EventTypeGroups",EventTypeGroupTemplatePath=viewsPath+"EventTypeGroups.html"+viewsVersion,RegionColorSettingState="RegionColorSetting",RegionColorSettingUrl=CurrentLanguage+"/RegionColorSetting",RegionColorSettingTemplatePath=viewsPath+"RegionColorSetting.html"+viewsVersion,CityGroupState="CityGroup",CityGroupUrl=CurrentLanguage+"/CityGroup",CityGroupTemplatePath=viewsPath+"CityGroup.html"+viewsVersion,ScreenPermissionState="ScreenPermission",ScreenPermissionUrl=CurrentLanguage+"/ScreenPermission",ScreenPermissionTemplatePath=viewsPath+"ScreenPermission.html"+viewsVersion,TeamState="Teams",TeamStateUrl=CurrentLanguage+"/Teams",TeamStateTemplatePath=viewsPath+"Teams.html"+viewsVersion,MailSubscriptionState="MailSubscription",MailSubscriptionUrl=CurrentLanguage+"/MailSubscription",MailSubscriptionTemplatePath=viewsPath+"MailSubscription.html"+viewsVersion,EmailSubscriptionState="EmailSubscription",EmailSubscriptionUrl=CurrentLanguage+"/EmailSubscription",EmailSubscriptionTemplatePath=viewsPath+"EmailSubscription.html"+viewsVersion,UnauthorizedState="Unauthorized",UnauthorizedUrl=CurrentLanguage+"/Unauthorized",UnauthorizedTemplatePath=viewsPath+"Unauthorized.html"+viewsVersion,VolunteerHoursState="VolunteerHours",VolunteerHoursUrl=CurrentLanguage+"/VolunteerHours",VolunteerHoursTemplatePath=viewsPath+"VolunteerHours.html"+viewsVersion,FirstResponderState="FirstResponder",FirstResponderUrl=CurrentLanguage+"/FirstResponder/:id/:edit",FirstResponderTemplatePath=viewsPath+"FirstResponder.html"+viewsVersion,FirstResponderRequestsListState="FirstResponderRequestsList",FirstResponderRequestsListUrl=CurrentLanguage+"/FirstResponderRequestsList",FirstResponderRequestsListTemplatePath=viewsPath+"FirstResponderRequestsList.html"+viewsVersion,ApprovedFirstResponderState="ApprovedFirstResponder",ApprovedFirstResponderUrl=CurrentLanguage+"/ApprovedFirstResponderList",ApprovedFirstResponderTemplatePath=viewsPath+"ApprovedFirstResponder.html"+viewsVersion,RejectedFirstResponderState="RejectedFirstResponder",RejectedFirstResponderUrl=CurrentLanguage+"/RejectedFirstResponderList",RejectedFirstResponderTemplatePath=viewsPath+"RejectedFirstResponder.html"+viewsVersion,ForceChangePasswordState="ForceChangePassword",ForceChangePasswordUrl=CurrentLanguage+"/ForceChangePassword/:id",ForceChangePasswordTemplatePath=viewsPath+"ForceChangePassword.html"+viewsVersion,UploadDocumentsState="UploadDocuments",UploadDocumentsUrl=CurrentLanguage+"/UploadDocuments",UploadDocumentsTemplatePath=viewsPath+"UploadDocuments.html"+viewsVersion,DocumentsState="Documents",DocumentsUrl=CurrentLanguage+"/Documents",DocumentsTemplatePath=viewsPath+"Documents.html"+viewsVersion,AuditLogState="AuditLog",AuditLogUrl=CurrentLanguage+"/AuditLog",AuditLogTemplatePath=viewsPath+"AuditLog.html"+viewsVersion,RegionCityPermissionState="RegionCityPermission",RegionCityPermissionUrl=CurrentLanguage+"/RegionCityPermission",RegionCityPermissionTemplatePath=viewsPath+"RegionCityPermission.html"+viewsVersion,CityVolunteersState="CityVolunteers",CityVolunteersUrl=CurrentLanguage+"/CityVolunteers",CityVolunteersTemplatePath=viewsPath+"CityVolunteers.html"+viewsVersion,PrivateEventsState="PrivateEvents",PrivateEventsUrl=CurrentLanguage+"/PrivateEvents/:id",PrivateEventsTemplatePath=viewsPath+"PrivateEvents.html"+viewsVersion,PrivateEventsInfoState="PrivateEventsInfo",PrivateEventsInfoUrl=CurrentLanguage+"/PrivateEventsInfo",PrivateEventsInfoTemplatePath=viewsPath+"PrivateEventsInfo.html"+viewsVersion,PrivateEventsInfoDetailsState="PrivateEventsInfoDetails",PrivateEventsInfoDetailsUrl=CurrentLanguage+"/PrivateEventsInfoDetails/:id",PrivateEventsInfoDetailsTemplatePath=viewsPath+"PrivateEventsInfoDetails.html"+viewsVersion,SurveyState="Survey",SurveyUrl=CurrentLanguage+"/Survey",SurveyTemplatePath=viewsPath+"Survey.html"+viewsVersion,EventSurveyState="EventSurvey",EventSurveyUrl="/EventSurvey/:id",EventSurveyTemplatePath=viewsPath+"EventSurvey.html"+viewsVersion,VolunteerEventSurveyState="VolunteerEventSurvey",VolunteerEventSurveyUrl=CurrentLanguage+"/VolunteerEventSurvey/:id",VolunteerEventSurveyTemplatePath=viewsPath+"VolunteerEventSurvey.html"+viewsVersion,QuestionsState="Questions",QuestionsUrl=CurrentLanguage+"/Questions",QuestionsTemplatePath=viewsPath+"Questions.html"+viewsVersion,EventSurveyQuestionsState="EventSurveyQuestions",EventSurveyQuestionsUrl=CurrentLanguage+"/EventSurveyQuestions",EventSurveyQuestionsTemplatePath=viewsPath+"EventSurveyQuestions.html"+viewsVersion,DepartmentState="Department",DepartmentUrl=CurrentLanguage+"/Department",DepartmentTemplatePath=viewsPath+"Department.html"+viewsVersion,SinglePerformanceState="SinglePerformance",SinglePerformanceUrl=CurrentLanguage+"/SinglePerformance/:id/:eventId",SinglePerformanceTemplatePath=viewsPath+"SinglePerformance.html"+viewsVersion,EventsSurveyResultState="EventsSurveyResult",EventsSurveyResultUrl=CurrentLanguage+"/EventsSurveyResult",EventsSurveyResultTemplatePath=viewsPath+"EventsSurveyResult.html"+viewsVersion,VolunteerEventsHistoryState="VolunteerEventsHistory",VolunteerEventsHistoryUrl=CurrentLanguage+"/VolunteerEventsHistory/:id",VolunteerEventsHistoryTemplatePath=viewsPath+"VolunteerEventsHistory.html"+viewsVersion,ApproveEventsState="ApproveEvents",ApproveEventsUrl=CurrentLanguage+"/ApproveEvents/:id",ApproveEventsTemplatePath=viewsPath+"ApproveEvents.html"+viewsVersion,RegistrationStatisticsState="RegistrationStatistics",RegistrationStatisticsUrl=CurrentLanguage+"/RegistrationStatistics",RegistrationStatisticsTemplatePath=viewsPath+"RegistrationStatistics.html"+viewsVersion,GeneralSurveyState="GeneralSurvey",GeneralSurveyUrl=CurrentLanguage+"/GeneralSurvey/:id",GeneralSurveyTemplatePath=viewsPath+"GeneralSurvey.html"+viewsVersion,GeneralSurveyQuestionnaireState="GeneralSurveyQuestionnaire",GeneralSurveyQuestionnaireUrl=CurrentLanguage+"/GeneralSurveyQuestionnaire/:tkn",GeneralSurveyQuestionnaireTemplatePath=viewsPath+"GeneralSurveyQuestionnaire.html"+viewsVersion,GeneralSurveyResultState="GeneralSurveyResult",GeneralSurveyResultUrl=CurrentLanguage+"/GeneralSurveyResult/:id",GeneralSurveyResultTemplatePath=viewsPath+"GeneralSurveyResult.html"+viewsVersion,MultiSelectFiltersState="MultiSelectFilters",MultiSelectFiltersUrl=CurrentLanguage+"/MultiSelectFilters",MultiSelectFiltersTemplatePath=viewsPath+"MultiSelectFilters.html"+viewsVersion,ChangeLaguageState="ChangeLaguage",ChangeLaguageUrl=CurrentLanguage+"/ChangeLaguage",ChangeLaguageTemplatePath=viewsPath+"ChangeLaguage.html"+viewsVersion,PostCardState="PostCard",PostCardStateUrl=CurrentLanguage+"/PostCard",PostCardStateTemplatePath=viewsPath+"PostCard.html"+viewsVersion,TicketState="Ticket",TicketUrl=CurrentLanguage+"/Ticket/:id",TicketTemplatePath=viewsPath+"Ticket.html"+viewsVersion,EventInitiativeState="EventInitiative",EventInitiativeUrl=CurrentLanguage+"/EventInitiative",EventInitiativeTemplatePath=viewsPath+"EventInitiative.html"+viewsVersion,UserVerificationState="UserVerification",UserVerificationUrl=CurrentLanguage+"/UserVerification",UserVerificationTemplatePath=viewsPath+"UserVerification.html"+viewsVersion,AboutUsState="AboutUs",AboutUsUrl=CurrentLanguage+"/AboutUs",AboutUsTemplatePath=viewsPath+"AboutUs.html"+viewsVersion,FaqState="Faq",FaqUrl=CurrentLanguage+"/Faq",FaqTemplatePath=viewsPath+"Faq.html"+viewsVersion,TermsAndConditionState="TermsAndCondition",TermsAndConditionUrl=CurrentLanguage+"/TermsAndCondition",TermsAndConditionTemplatePath=viewsPath+"TermsAndCondition.html"+viewsVersion,RegisterState="Register",RegisterUrl=CurrentLanguage+"/Register/:id",RegisterTemplatePath=viewsPath+"Register.html"+viewsVersion,EditRegisterState="EditRegister",EditRegisterUrl=CurrentLanguage+"/EditRegister",EditRegisterTemplatePath=viewsPath+"Register.html"+viewsVersion,VerifyEmailState="VerifyEmail",VerifyEmailUrl=CurrentLanguage+"/VerifyEmail?token&exp",VerifyEmailPath=viewsPath+"VerifyEmail.html"+viewsVersion,Authentications={HomeState:{1:"Admin",2:"SuperUser",3:"User",4:"CenterAdmin",5:"Viewer",6:"ReportViewer"},OnlineState:{1:"Admin",2:"SuperUser",3:"User",4:"CenterAdmin",5:"Viewer"},UsersState:{1:"Admin",2:"SuperUser",4:"CenterAdmin"},NotFoundState:{1:"Admin",2:"SuperUser",3:"User",4:"CenterAdmin",5:"Viewer",6:"ReportViewer"},ForbiddenState:{1:"Admin",2:"SuperUser",3:"User",4:"CenterAdmin",5:"Viewer",6:"ReportViewer"},DashboardState:{1:"Admin",2:"SuperUser",3:"User",4:"CenterAdmin",5:"Viewer",6:"ReportViewer"}};VsApp.config(["$stateProvider","$urlRouterProvider",function(n,t){function i(n){for(var t="",i=2;i<n.length;i++)t=t+"/"+n[i];return t}function r(){var n=location.hash,u=n.lastIndexOf("/"),t=n.substr(u,n.length-u);n=n.replace("#!/ar","").replace("#!/en","");var t=n.split("/"),e=t[1]==undefined?"home":t[1],r=CurrentLanguage+"/"+e,f=i(t);return f&&(r=r+f),r}n.state(RootState,{url:RootUrl,templateUrl:RootTemplatePath,resolve:{isValidTransition:makeIsValidTransitionFunction(!1,"RootState")}}).state(ChangePasswordState,{url:ChangePasswordUrl,templateUrl:ChangePasswordPath,controller:"ChangePasswordController"}).state(LoginState,{url:LoginUrl,templateUrl:LoginTemplatePath,controller:"LoginController"}).state(HomeState,{url:HomeUrl,templateUrl:HomeTemplatePath,controller:"HomeController"}).state(RegistrationState,{url:RegistrationUrl,templateUrl:RegistrationTemplatePath,controller:"RegistrationController",params:{id:{value:null,squash:!0}}}).state(DashboardState,{url:DashboardUrl,templateUrl:DashboardTemplatePath,controller:"DashboardController",resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(DashboardStatisticsState,{url:DashboardStatisticsUrl,templateUrl:DashboardStatisticsTemplatePath,controller:"DashboardStatisticsController"}).state(NotFoundState,{url:NotFoundUrl,templateUrl:NotFoundTemplatePath,controller:""}).state(ForbiddenState,{url:ForbiddenUrl,templateUrl:ForbiddenTemplatePath,controller:""}).state(UsersState,{url:UsersUrl,templateUrl:UsersTemplatePath,controller:"UsersController",resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(EventsState,{url:EventsUrl,templateUrl:EventsTemplatePath,controller:"EventsController",resolve:{isValidTransition:makeIsValidTransitionFunction(!0,EventsState)}}).state(WorkFieldsState,{url:WorkFieldsUrl,templateUrl:WorkFieldsTemplatePath,controller:"WorkFieldsController",resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(EventTypesState,{url:EventTypesUrl,templateUrl:EventTypesTemplatePath,controller:"EventTypesController",resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(SkillsState,{url:SkillsUrl,templateUrl:SkillsTemplatePath,controller:"SkillsController",resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(CertificateTypesState,{url:CertificateTypesUrl,templateUrl:CertificateTypesTemplatePath,controller:"CertificateTypesController",resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(RegistrationAdminState,{url:RegistrationAdminUrl,templateUrl:RegistrationAdminTemplatePath,controller:"RegistrationAdminController",resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(CertificateFieldsState,{url:CertificateFieldsUrl,templateUrl:CertificateFieldsTemplatePath,controller:"CertificateFieldsAdminController",resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(ThankYouState,{url:ThankYouUrl,templateUrl:ThankYouTemplatePath,controller:"ThankYouController"}).state(VolunteersState,{url:VolunteersUrl,templateUrl:VolunteersTemplatePath,controller:"VolunteersAdminController",resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(CurrentEventsState,{url:CurrentEventsUrl,templateUrl:CurrentEventsTemplatePath,controller:"CurrentEventsController",resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(RecentEventsState,{url:RecentEventsUrl,templateUrl:RecentEventsTemplatePath,controller:"RecentEventsController",resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(EventInvitationsState,{url:EventInvitationsUrl,templateUrl:EventInvitationsTemplatePath,controller:"EventInvitationsController",resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(PastEventsState,{url:PastEventsUrl,templateUrl:PastEventsTemplatePath,controller:"PastEventsController",resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(ContributionState,{url:ContributionUrl,templateUrl:ContributionTemplatePath,controller:"ContributionController",resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(PastContributionState,{url:PastContributionUrl,templateUrl:PastContributionTemplatePath,controller:"PastContributionController",resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(AcceptedState,{url:AcceptedUrl,templateUrl:AcceptedTemplatePath,controller:"AcceptedController",resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(ApprovedState,{url:ApprovedUrl,templateUrl:ApprovedTemplatePath,controller:"ApprovedController",resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(RejectedState,{url:RejectedUrl,templateUrl:RejectedTemplatePath,controller:"RejectedController",resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(EventInviteVolunteersState,{url:EventInviteVolunteersUrl,templateUrl:EventInviteVolunteersTemplatePath,controller:"EventInviteVolunteers",resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(OpenInvitationsEvents,{url:OpenInvitationsEventsUrl,templateUrl:OpenInvitationsEventsTemplatePath,controller:"OpenInvitationsEvents",resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(EventInvitedVolunteers,{url:EventInvitedVolunteersUrl,templateUrl:EventInvitedVolunteersTemplatePath,controller:"EventInvitedVolunteers",params:{id:{value:null},EventName:null},resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(InprogressEventsState,{url:InprogressEventsUrl,templateUrl:InprogressEventsTemplatePath,controller:"InprogressEventsController",resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(ParticipatedVolunteers,{url:ParticipatedVolunteersUrl,templateUrl:ParticipatedVolunteersTemplatePath,controller:"ParticipatedVolunteers",resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(SlidesManagmentState,{url:SlidesManagmentStateUrl,templateUrl:SlidesManagmentStateTemplatePath,controller:"SlidesManagmentController",resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(SlidesEditState,{url:SlidesEditStateUrl,templateUrl:SlidesEditStateTemplatePath,controller:"SlidesEditController",params:{id:{value:null},SlideData:null},resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(NewsEditState,{url:NewsEditStateUrl,templateUrl:NewsEditStateTemplatePath,controller:"NewsEditController",params:{id:{value:null},NewsData:null},resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(NewsManagementState,{url:NewsManagementStateUrl,templateUrl:NewsManagementStateTemplatePath,controller:"NewsManagementController",resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(NewsState,{url:NewsStateUrl,templateUrl:NewsStateTemplatePath,controller:"NewsController"}).state(MediaCenterState,{url:MediaCenterStateUrl,templateUrl:MediaCenterStateTemplatePath,controller:"MediaCenterController"}).state(NewsDetailsState,{url:NewsDetailsStateUrl,templateUrl:NewsDetailsStateTemplatePath,controller:"NewsDetailsController",params:{id:{value:null},NewsData:null}}).state(EventsInfoState,{url:EventsInfoUrl,templateUrl:EventsInfoTemplatePath,controller:"EventsInfoController"}).state(EventsInfoDetailsState,{url:EventsInfoDetailsUrl,templateUrl:EventsInfoDetailsTemplatePath,controller:"EventsInfoDetailsController"}).state(OngoingEventsState,{url:OngoingEventsUrl,templateUrl:OngoingEventsTemplatePath,controller:"OngoingEventsController"}).state(JoinEventState,{url:JoinEventUrl,templateUrl:JoinEventTemplatePath,controller:"JoinEventController"}).state(ImageGalleryState,{url:ImageGalleryUrl,templateUrl:ImageGalleryTemplatePath,controller:"ImageGalleryController"}).state(SubmittedState,{url:SubmittedUrl,templateUrl:SubmittedTemplatePath,controller:"SubmittedController",resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(PublicImageGalleryState,{url:PublicImageGalleryUrl,templateUrl:PublicImageGalleryTemplatePath,controller:"PublicImageGalleryController"}).state(ClosedEventsState,{url:ClosedEventsUrl,templateUrl:ClosedEventsTemplatePath,controller:"ClosedEventsController",resolve:{isValidTransition:makeIsValidTransitionFunction(!0,ClosedEventsState)},params:{page:{value:"1",squash:!0}}}).state(ExcellentVolunteersManagementState,{url:ExcellentVolunteersManagementUrl,templateUrl:ExcellentVolunteersManagementTemplatePath,controller:"ExcellentVolunteersManagementController"}).state(EditExcellentVolunteerState,{url:EditExcellentVolunteerUrl,templateUrl:EditExcellentVolunteerTemplatePath,controller:"EditExcellentVolunteerController",resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(EditRegistrationState,{url:EditRegistrationUrl,templateUrl:EditRegistrationTemplatePath,controller:"RegistrationController",resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(ExportVolunteersDataState,{url:ExportVolunteersDataUrl,templateUrl:ExportVolunteersDataTemplatePath,controller:"ExportVolunteersDataController",resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(ExportInvitedVolunteersDataState,{url:ExportInvitedVolunteersDataUrl,templateUrl:ExportInvitedVolunteersDataTemplatePath,controller:"ExportInvitedVolunteersDataController",resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(EditStaffProfileState,{url:EditStaffProfileUrl,templateUrl:EditStaffProfileTemplatePath,controller:"EditStaffProfileController"}).state(VolunteerPerformanceState,{url:VolunteerPerformanceUrl,templateUrl:VolunteerPerformanceTemplatePath,controller:"VolunteerPerformanceController"}).state(VolunteersPerformanceState,{url:VolunteersPerformanceUrl,templateUrl:VolunteersPerformanceTemplatePath,controller:"VolunteersPerformanceController"}).state(EventApprovedVolunteersState,{url:EventApprovedVolunteersUrl,templateUrl:EventApprovedVolunteersTemplatePath,controller:"EventApprovedVolunteersController"}).state(EventReportsState,{url:EventReportsUrl,templateUrl:EventReportsTemplatePath,controller:"EventReportsController"}).state(EventReportsListState,{url:EventReportsListUrl,templateUrl:EventReportsListTemplatePath,controller:"EventReportsListController"}).state(EventReportsSummaryState,{url:EventReportsSummaryUrl,templateUrl:EventReportsSummaryTemplatePath,controller:"EventReportsSummaryController"}).state(EventsCalendarState,{url:EventsCalendarUrl,templateUrl:EventsCalendarTemplatePath,controller:"EventsCalendarController",onEnter:function(){CurrentLang=="ar"&&kendo.culture("ar-EG")},onExit:function(){kendo.culture("en-US")}}).state(StatisticsState,{url:StatisticsUrl,templateUrl:StatisticsTemplatePath,controller:"StatisticsController"}).state(RegistrationStatisticsState,{url:RegistrationStatisticsUrl,templateUrl:RegistrationStatisticsTemplatePath,controller:"RegistrationStatisticsController"}).state(StaffEventsCalendarState,{url:StaffEventsCalendarUrl,templateUrl:StaffEventsCalendarTemplatePath,controller:"StaffEventsCalendarController"}).state(VolunteersStatsState,{url:VolunteersStatsUrl,templateUrl:VolunteersStatsTemplatePath,controller:"VolunteersStatsController"}).state(PractionerVerifyState,{url:PractionerVerifyUrl,templateUrl:PractionerVerifyTemplatePath,controller:"PractionerVerifyController"}).state(ApproveInvitedVolunteersState,{url:ApproveInvitedVolunteersUrl,templateUrl:ApproveInvitedVolunteersTemplatePath,controller:"ApproveInvitedVolunteersController"}).state(EventsStatsState,{url:EventsStatsUrl,templateUrl:EventsStatsTemplatePath,controller:"EventsStatsController"}).state(EventsStatsAllRegionState,{url:EventsStatsAllRegionUrl,templateUrl:EventsStatsAllRegionTemplatePath,controller:"EventsStatsAllRegionController"}).state(EventsTargetState,{url:EventsTargetUrl,templateUrl:EventsTargetTemplatePath,controller:"EventsTargetController"}).state(EventTypesTargetState,{url:EventTypesTargetUrl,templateUrl:EventTypesTargetTemplatePath,controller:"EventTypesTargetController"}).state(KPICompareEventsState,{url:KPICompareEventsUrl,templateUrl:KPICompareEventsTemplatePath,controller:"KPICompareEventsController"}).state(VolunteersPerformancePState,{url:VolunteersPerformancePUrl,templateUrl:VolunteersPerformancePTemplatePath,controller:"VolunteersPerformancePController"}).state(RegionsState,{url:RegionsUrl,templateUrl:RegionsTemplatePath,controller:"RegionsController"}).state(CitiesState,{url:CitiesUrl,templateUrl:CitiesTemplatePath,controller:"CitiesController"}).state(RegionColorSettingState,{url:RegionColorSettingUrl,templateUrl:RegionColorSettingTemplatePath,controller:"RegionColorSettingController"}).state(GroupRegionsState,{url:GroupRegionsUrl,templateUrl:GroupRegionsTemplatePath,controller:"GroupRegionsController"}).state(UserCategoryState,{url:UserCategoryUrl,templateUrl:UserCategoryTemplatePath,controller:"UserCategoryController"}).state(UserSubCategoryLevel1State,{url:UserSubCategoryLevel1Url,templateUrl:UserSubCategoryLevel1TemplatePath,controller:"UserSubCategoryLevel1Controller"}).state(UserSubCategoryLevel2State,{url:UserSubCategoryLevel2Url,templateUrl:UserSubCategoryLevel2TemplatePath,controller:"UserSubCategoryLevel2Controller"}).state(UserExperienceLevelState,{url:UserExperienceLevelUrl,templateUrl:UserExperienceLevelTemplatePath,controller:"UserExperienceLevelController"}).state(TrainingCertificatesState,{url:TrainingCertificatesUrl,templateUrl:TrainingCertificatesTemplatePath,controller:"TrainingCertificatesController"}).state(CityGroupState,{url:CityGroupUrl,templateUrl:CityGroupTemplatePath,controller:"CityGroupController"}).state(EventTypeGroupState,{url:EventTypeGroupUrl,templateUrl:EventTypeGroupTemplatePath,controller:"EventTypeGroupsController"}).state(ScreenPermissionState,{url:ScreenPermissionUrl,templateUrl:ScreenPermissionTemplatePath,controller:"ScreenPermissionController"}).state(TeamState,{url:TeamStateUrl,templateUrl:TeamStateTemplatePath,controller:"TeamsController"}).state(MailSubscriptionState,{url:MailSubscriptionUrl,templateUrl:MailSubscriptionTemplatePath,controller:"MailSubscriptionController"}).state(EmailSubscriptionState,{url:EmailSubscriptionUrl,templateUrl:EmailSubscriptionTemplatePath,controller:"EmailSubscriptionController"}).state(UnauthorizedState,{url:UnauthorizedUrl,templateUrl:UnauthorizedTemplatePath,controller:"UnauthorizedController"}).state(VolunteerHoursState,{url:VolunteerHoursUrl,templateUrl:VolunteerHoursTemplatePath,controller:"VolunteerHoursController"}).state(FirstResponderState,{url:FirstResponderUrl,templateUrl:FirstResponderTemplatePath,controller:"FirstResponderController"}).state(FirstResponderRequestsListState,{url:FirstResponderRequestsListUrl,templateUrl:FirstResponderRequestsListTemplatePath,controller:"FirstResponderRequestsListController"}).state(ApprovedFirstResponderState,{url:ApprovedFirstResponderUrl,templateUrl:ApprovedFirstResponderTemplatePath,controller:"ApprovedFirstResponderController"}).state(RejectedFirstResponderState,{url:RejectedFirstResponderUrl,templateUrl:RejectedFirstResponderTemplatePath,controller:"RejectedFirstResponderController"}).state(ForceChangePasswordState,{url:ForceChangePasswordUrl,templateUrl:ForceChangePasswordTemplatePath,controller:"ForceChangePasswordController"}).state(UploadDocumentsState,{url:UploadDocumentsUrl,templateUrl:UploadDocumentsTemplatePath,controller:"UploadDocumentsController"}).state(DocumentsState,{url:DocumentsUrl,templateUrl:DocumentsTemplatePath,controller:"DocumentsController"}).state(AuditLogState,{url:AuditLogUrl,templateUrl:AuditLogTemplatePath,controller:"AuditLogController"}).state(RegionCityPermissionState,{url:RegionCityPermissionUrl,templateUrl:RegionCityPermissionTemplatePath,controller:"RegionCityPermissionController"}).state(CityVolunteersState,{url:CityVolunteersUrl,templateUrl:CityVolunteersTemplatePath,controller:"CityVolunteersController"}).state(PrivateEventsInfoState,{url:PrivateEventsInfoUrl,templateUrl:PrivateEventsInfoTemplatePath,controller:"PrivateEventsInfoController"}).state(PrivateEventsInfoDetailsState,{url:PrivateEventsInfoDetailsUrl,templateUrl:PrivateEventsInfoDetailsTemplatePath,controller:"PrivateEventsInfoDetailsController"}).state(PostCardState,{url:PostCardStateUrl,templateUrl:PostCardStateTemplatePath,controller:"PostCardController"}).state(PrivateEventsState,{url:PrivateEventsUrl,views:{"":{templateUrl:PrivateEventsTemplatePath,controller:"PrivateEventsController"},"deletePopup@PrivateEvents":{url:"/_DeleteConfirm/:id",templateUrl:viewsPath+"_DeleteConfirm.html"+viewsVersion,controller:"DeleteConfirmController"}}}).state(SurveyState,{url:SurveyUrl,templateUrl:SurveyTemplatePath,controller:"SurveyController"}).state(EventSurveyState,{url:EventSurveyUrl,templateUrl:EventSurveyTemplatePath,controller:"EventSurveyController"}).state(VolunteerEventSurveyState,{url:VolunteerEventSurveyUrl,templateUrl:VolunteerEventSurveyTemplatePath,controller:"VolunteerEventSurveyController"}).state(QuestionsState,{url:QuestionsUrl,templateUrl:QuestionsTemplatePath,controller:"QuestionsController"}).state(EventSurveyQuestionsState,{url:EventSurveyQuestionsUrl,templateUrl:EventSurveyQuestionsTemplatePath,controller:"EventSurveyQuestionsController"}).state(DepartmentState,{url:DepartmentUrl,templateUrl:DepartmentTemplatePath,controller:"DepartmentController"}).state(SinglePerformanceState,{url:SinglePerformanceUrl,templateUrl:SinglePerformanceTemplatePath,controller:"SinglePerformanceController"}).state(EventsSurveyResultState,{url:EventsSurveyResultUrl,templateUrl:EventsSurveyResultTemplatePath,controller:"EventsSurveyResultController"}).state(VolunteerEventsHistoryState,{url:VolunteerEventsHistoryUrl,templateUrl:VolunteerEventsHistoryTemplatePath,controller:"VolunteerEventsHistoryController"}).state(ApproveEventsState,{url:ApproveEventsUrl,templateUrl:ApproveEventsTemplatePath,controller:"ApproveEventsController"}).state(SSOState,{url:SSOUrl,templateUrl:SSOTemplatePath,controller:"SSOController"}).state(GeneralSurveyState,{url:GeneralSurveyUrl,templateUrl:GeneralSurveyTemplatePath,controller:"GeneralSurveyController"}).state(GeneralSurveyQuestionnaireState,{url:GeneralSurveyQuestionnaireUrl,templateUrl:GeneralSurveyQuestionnaireTemplatePath,controller:"GeneralSurveyQuestionnaireController"}).state(GeneralSurveyResultState,{url:GeneralSurveyResultUrl,templateUrl:GeneralSurveyResultTemplatePath,controller:"GeneralSurveyResultController"}).state(MultiSelectFiltersState,{url:MultiSelectFiltersUrl,templateUrl:MultiSelectFiltersTemplatePath,controller:"MultiSelectFiltersController"}).state(ChangeLaguageState,{url:ChangeLaguageUrl,templateUrl:ChangeLaguageTemplatePath,controller:"ChangeLaguageController"}).state(TicketState,{url:TicketUrl,templateUrl:TicketTemplatePath,controller:"TicketController"}).state(EventInitiativeState,{url:EventInitiativeUrl,templateUrl:EventInitiativeTemplatePath,controller:"EventInitiativeController"}).state(UserVerificationState,{url:UserVerificationUrl,templateUrl:UserVerificationTemplatePath,controller:"UserVerificationController"}).state(AboutUsState,{url:AboutUsUrl,templateUrl:AboutUsTemplatePath,controller:"AboutUsController",params:{AboutUsData:null}}).state(FaqState,{url:FaqUrl,templateUrl:FaqTemplatePath,controller:"FaqController",params:{FaqData:null}}).state(TermsAndConditionState,{url:TermsAndConditionUrl,templateUrl:TermsAndConditionTemplatePath,controller:"TermsAndConditionController",params:{TermsAndConditionData:null}}).state(RegisterState,{url:RegisterUrl,templateUrl:RegisterTemplatePath,controller:"RegisterController",params:{id:{value:null,squash:!0}}}).state(EditRegisterState,{url:EditRegisterUrl,templateUrl:EditRegisterTemplatePath,controller:"RegisterController",resolve:{isValidTransition:makeIsValidTransitionFunction(!0)}}).state(VerifyEmailState,{url:VerifyEmailUrl,templateUrl:VerifyEmailPath,controller:"VerifyEmailController"});t.otherwise(r())}]);VsApp.factory("api",["$http","$rootScope","$q","$cookies",function(n,t,i,r){function u(i,u,f,e){var o={AccessTo:u};return n({method:"POST",url:Resources.urls.refresh,params:null,data:o,beforeSend:function(n){n.setRequestHeader("Accept-Encoding","deflate")},headers:{AuthorizationHeader:t.GetAuthenticationToken(),CurrentPage:t.CurrentPage}}).then(function(o){return n({method:i,url:u,params:f,data:e,beforeSend:function(n){n.setRequestHeader("Accept-Encoding","deflate")},headers:{AuthorizationHeader:t.GetAuthenticationToken(),CurrentPage:t.CurrentPage,RefreshToken:o.data.Message}}).then(function(n){return r.User=n.config.headers.AuthorizationHeader,n.data&&(n.data.RequestSucceeded=!0),n.data},function(n){n.status==t.statusCodes.Forbidden?t.Logout():n.status==t.statusCodes.NotFound;t.isLoading=!1;var i=n.data||{};return{Success:!1,Message:"InternalServerError",StackTrace:(i.ExceptionMessage||"")+"\r\n"+(i.StackTrace||"")}})},function(n){n.status==t.statusCodes.Forbidden&&t.Logout();t.isLoading=!1;var i=n.data||{};return{Success:!1,Message:"InternalServerError",StackTrace:(i.ExceptionMessage||"")+"\r\n"+(i.StackTrace||"")}})}function f(i,u,f,e){return n({method:i,url:u,params:f,data:e,beforeSend:function(n){n.setRequestHeader("Accept-Encoding","deflate")},headers:{AuthorizationHeader:t.GetAuthenticationToken(),CurrentPage:t.CurrentPage}}).then(function(n){return r.User=n.config.headers.AuthorizationHeader,n.data&&(n.data.RequestSucceeded=!0),n.data},function(n){n.status==t.statusCodes.Forbidden?(t.destroyTicket(),window.location.href="/#"+LoginUrl):n.status==t.statusCodes.NotFound;t.isLoading=!1;var i=n.data||{};return{Success:!1,Message:"InternalServerError",StackTrace:(i.ExceptionMessage||"")+"\r\n"+(i.StackTrace||"")}})}function e(n,t,i){return u("GET",n,t,i)}function o(n,t,i){return u("POST",n,t,i)}function s(n,t,i){return f("POST",n,t,i)}function h(n,t,i){return f("GET",n,t,i)}return t.statusCodes={Forbidden:403,NotFound:404},{Get:e,Post:o,PostA:s,GetA:h}}]);VsApp.factory("AuthService",["api","$cookies","$rootScope","UtilsApis",function(n,t,i,r){function y(){return null||t.get("User")}function p(t){var i={username:t.username,password:t.password,orgId:1,reCaptchaResponse:t.ReCaptchaResponse,IsWebLogin:1};return n.PostA(u+"TryLogin",null,i)}function w(t){var i={username:t.username,password:t.password,orgId:1,reCaptchaResponse:t.ReCaptchaResponse,IsWebLogin:1};return n.PostA(u+"TLEncr",null,i)}function b(t){return n.Post(u+"GetUI",null,t)}function k(t){var i={userId:t.id,oldPassword:t.oldPassword,newPassword:t.newPassword};return n.Post(u+"ChangePassword",null,t)}function d(t){return n.Post(u+"RegisterUser",null,t)}function g(t){var i={orgName:t.orgName};return n.Post(u+"RegisterOrganization",i,null)}function nt(){return n.Post(u+"GetAllRoles",null,null)}function tt(){return n.Post(u+"GetAllOrganizations",null,null)}function it(){return n.Post(u+"GetAllAreas",null,null)}function rt(){return n.Post(u+"logout",null,null)}function ut(){return n.Get(u+"GetActiveUsers",null,null)}function ft(t){return n.Post(u+"EditUser",null,t)}function et(t){return n.Post(u+"GetUserById",null,t)}function ot(t){return n.Post(u+"RemoveUser",null,t)}function st(t){return n.Post(u+"GetUserAreas",null,t)}function ht(t,i){return n.Post(u+"EditUserAreas",{userId:t},i)}function ct(){return n.Post(u+"Render",null,null)}function lt(t,i,r){var f={StartDate:t.toString(),EndDate:i.toString(),LoginStatuses:r};return n.Post(u+"GetUsersLogReportData",null,f)}function at(t,i){var r={reportData:t,coulmnLabel:i};return n.Post(u+"ExporttoExcel",null,r)}function vt(t){var t={email:t.UserEmail,reCaptchaResponse:t.ReCaptchaResponse,lang:CurrentLang};return n.Post(u+"ForgetPassword",null,t)}function yt(t){var t={email:t.UserEmail,reCaptchaResponse:t.ReCaptchaResponse,lang:CurrentLang};return n.Post(u+"ForgetUsername",null,t)}function pt(t,i){var r={token:t,newPass:i};return n.Get(u+"ChangeForgottenPassword",r,null)}function wt(n,t,i){var f={controllerName:n},u=null,r=o("UserRoles","UserRoles_ScreensActionsList",f,t,i);return r!=undefined&&r!=null&&(u=r.Data),u}function bt(n,t){var i="";switch(t){case"whatsapp":i="https://web.whatsapp.com/send?text="+n;break;case"twitter":i="https://twitter.com/share?ref_src="+n;break;case"facebook":i="http://www.facebook.com/sharer.php?u="+n}return i}function o(n,t,i,r,u){var f=null,e=n+"/"+t;return i==null&&(i={}),i!=undefined&&$.ajax({type:"POST",url:e,data:i,dataType:"json",success:function(n){(n!=null||n!=undefined)&&(f=n)},async:!1,beforeSend:r,complete:u}),f}function kt(n,t){var i=!1;return n!=null&&$.each(t,function(t,r){if(r.ControlName.toLowerCase()==n.toLowerCase())return i=!0,!1}),i}function dt(n,t){var i=[];$("a[class *='k-grid']").each(function(){var t=this.className,n=[];n=t.split(" ");n[2]!=undefined&&i.push(n[2])});i=i.filter((n,t)=>i.indexOf(n)==t);i.length>0&&$.each(i,function(i,r){ControlName=r.replace("k-grid-","").toLowerCase();kt(ControlName,t)==!1&&n.find("."+r)&&n.find("."+r).remove()})}function gt(n,t,i){for(var r=0;r<t.length;r++)t[r].spriteCssClass=="actionfolder"?n.findByUid(t[r].uid).addClass("actionItemsClass"):t[r].spriteCssClass=="childfolder"?n.findByUid(t[r].uid).addClass("childItemsClass"):t[r].spriteCssClass=="rootfolder"&&n.findByUid(t[r].uid).addClass("rootItemsClass"),i!=undefined&&n.findByUid(t[r].uid).addClass("disabledDiv")}function ni(n,t){for(var r,i=0;i<t.length;i++)t[i].disabledCssClass=="disable"&&(r=n.findByUid(t[i].uid),n.enable(r,!1))}function ti(n){return n.filter((t,i)=>n.indexOf(t)==i)}function ii(n){return new Date(parseInt(n.replace("/Date(","")))}function ri(n){var r,t,i;return n=new Date(n),r=n.getFullYear(),t=(1+n.getMonth()).toString(),t=t.length>1?t:"0"+t,i=n.getDate().toString(),i=i.length>1?i:"0"+i,i+"-"+t+"-"+r}function ui(n){var t=new Date,r=t.getDate(),i;r<10&&(r="0"+r);i=t.getMonth()+1;i<10&&(i="0"+i);var u=t.getFullYear(),f=t.getHours(),e=t.getMinutes(),o=t.getSeconds();return n+"_"+r+i+u+"_"+f+e+o}function fi(n){for(var t=0;t<n.columns.length;t++)n.autoFitColumn(t)}function ei(n,t,i,r){for(var e,f=!1,u=0;u<n.length;u++)if(e=n[u][i].replace(/ {1,}/g," "),$.trim(t)==e&&r!=n[u].Id){f=!0;break}return f}function oi(n,t,i,r){if(r){$('<input id ="departmentDropDownList" required="required" data-val-required="true" style="width:350px" name="Department"  data-bind="value:'+i.field+'"/>').appendTo(t).kendoDropDownList({dataValueField:"DepartmentId",dataTextField:"Name",valuePrimitive:!0,optionLabel:n.Labels.SelectDepartment,dataSource:n.departmentLookupDS}).data("kendoDropDownList");$('<span>&nbsp;<\/span><span style="color: red; font-size:14pt">*<\/span>').appendTo(t)}}function si(n,t){title="";n=="filter"?title=" <span><i class='icon icon-search2'><\/i> "+t.SearchFilters+"<\/span>":n=="summary"&&(title=" <span><i class='icon  icon-list2'><\/i> "+t.EventSummary+"<\/span>");child=n+"Content";$content=$("#"+child);$content.slideToggle(500,function(){$("#"+n).html(function(){return $content.is(":visible")?title+" <i class='fa fa-caret-down text-success'><\/i>":title+" <i class='fa fa-caret-right'><\/i>"})})}function hi(n,t,i){return $.grep(n,function(n){return n[t]===i})}function ci(n,t){return $.map(n,function(i,r){if(n[r][t])return i[t]})}function li(n,t){var i=[];return $.each(n,function(n,r){var u=$.grep(i,function(n){return n[t]===r[t]});u.length===0&&i.push(r)}),i}function ai(n,t){t||(t=window.location.href);n=n.replace(/[\[\]]/g,"\\$&");var r=new RegExp("[?&]"+n+"(=([^&#]*)|&|#|$)"),i=r.exec(t);return i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null}function vi(n,t,i){r.getLookUp("/api/utils/cities/read").then(function(r){n.Cities=r;f("msCities",n.FilteredCities,t,i);s(n,t,i)})}function yi(n,t,i){r.getLookUp("/api/utils/cities/read").then(function(r){n.Cities=r;f("msCities",r,t,i)})}function s(n,t,i){r.getLookUp("/api/utils/regions/read").then(function(r){n.Regions=r;f("msRegions",r,t,i)})}function h(n,t,i){r.getLookUp("/api/utils/usercategories/read").then(function(r){n.Categories=r;f("msUserCategories",r,t,i)})}function c(n,t,i){r.getLookUp("/api/utils/usersubcategorieslevel1/read").then(function(r){n.UserSubCategoriesLevel1=r;f("msUserSubCategoryLevel1",r,t,i)})}function l(n,t,i){r.getLookUp("/api/utils/usersubcategorieslevel2/read").then(function(r){n.UserSubCategoriesLevel2=r;f("msUserSubCategoryLevel2",r,t,i)})}function a(n,t,i){r.getLookUp("/api/utils/userexperiencelevel/read").then(function(r){n.UserExperienceLevel=r;f("msUserExperienceLevel",r,t,i)})}function pi(n,t,i){a(n,t,i);l(n,t,i);c(n,t,i);h(n,t,i)}function wi(n,t){var i=$("#"+n).data("kendoMultiSelect"),r=new kendo.data.DataSource({data:t});i.setDataSource(r)}function f(n,t,i,r){$("#"+n).kendoMultiSelect({dataTextField:"Name",dataValueField:"Id",selectable:!0,dataSource:{data:t},select:i,deselect:r})}function bi(n){return n==null?null:n.join()}function ki(n,t){var i=n.dataSource.view();$.each(i,function(){var r=n.tbody.find("[data-uid='"+i.uid+"']");r.find("[type=checkbox]").prop("checked",t);t?r.addClass("k-state-selected"):r.removeClass("k-state-selected");i.Selected=t})}function di(n){$("#"+n).toggle()}function gi(){return(new Date).getFullYear()}function nr(n){return n=="MOH"?4:n=="SRCA"?5:n=="NEOM"?2:void 0}function tr(n,t){var i=n.target.attributes.clearSelection.value;scopelist=i.split(",");$.each(scopelist,function(n,i){i.toLowerCase().indexOf("Id".toLowerCase())>0?t.SearchFilters[i]=0:(t.SearchFilters[i]=null,i=="EventStatus"&&(t.SearchFilters.EventStatus=t.EventStatus))})}function ir(n,t){r.getLookUp(Resources.urls.api_Cities).then(function(i){n[t]=i})}function rr(n,t){return r.getLookUp(Resources.urls.regions).then(function(i){n[t]=i}),n[t]}function ur(n,t){var i=!1;return t!=null&&$.each(t,function(t,r){if(r.ControlName.toLowerCase()==n.toLowerCase())return i=!0,!1}),i}function fr(n,t){r.getLookUp(Resources.urls.api_WorkFields).then(function(i){n[t]=i})}function er(n,t){r.getLookUp(Resources.urls.api_VolunteerWorkFieldCategoryGroup).then(function(i){n[t]=i})}var u=ApiPath+"Users/",v=function(n){n.setRequestHeader("AuthorizationHeader",e())},e=function(){return null||t.get("User")};return GetModuleAuthorized=function(){if(t.get("User")!=undefined&&t.get("User")!="undefined"){var n=[];$.ajax({type:"POST",url:"/UserRoles/UserRoles_Screens",data:null,success:function(t){t&&t.Data&&$.each(t.Data,function(t,i){n.push(i)})},async:!1,beforeSend:i.addTokenToRequest,complete:i.logoutIfForbidden});i.AuthorizedModules=n;t.put("AuthorizedModules",n)}},{login:p,registerUser:d,registerOrganization:g,getAllRoles:nt,GetAllOrganizations:tt,logout:rt,changePassword:k,RemoveUser:ot,EditUser:ft,GetUserById:et,GetUserAreas:st,EditUserAreas:ht,GetAllAreas:it,RenderCaptcha:ct,GetActiveUsers:ut,GetUsersLogReportData:lt,ExportToExcel:at,forgetPassword:vt,changeForgottenPassword:pt,GetAuthenticationToken:e,addTokenToRequest:v,forgetUsername:yt,getScreenActionsAuthorization:wt,setControlsAuthorization:dt,getAuthToken:y,addTreeViewCssClass:gt,getDataSourceSyncCall:o,removeDuplicates:ti,parseJsonDate:ii,GetModuleAuthorized:GetModuleAuthorized,getFormattedDate:ri,GetUniqueFileName:ui,SetGridColumnSize:fi,ValidateDuplicate:ei,addTreeViewDisabledCssClass:ni,departmentDropDownEditor:oi,manageHeaders:si,FilterObjectArray:hi,FilterObjectGetColumnValue:ci,getParameterByName:ai,SetChildDropDownlistDS:wi,SetMultipleDropdownList:f,GetMultipleRegions:s,GetMultipleCities:yi,GetMultipleCitiesWithRegions:vi,GetSpecialistSet:pi,GetMultipleUserExperienceLevel:a,GetMultipleUserSubCategoryLevel2:l,GetMultipleUserSubCategoryLevel1:c,GetMultipleUserCategories:h,GetCommaSeparatedString:bi,ClearGridSelections:ki,RemoveDuplicatesFromObject:li,HideShowModal:di,GetCurrentYear:gi,RunningYearCount:nr,LoginEncrypted:w,LoginDecrypted:b,ClearSelection:tr,GetRegionsRelatedToAdmin:rr,GetSingleCities:ir,IsPageActionAllowed:ur,GetSocialMedialUrl:bt,GetSingleWorkFields:fr,GetSingleVolunteerWorkFieldCategoryGroup:er}}]);VsApp.service("UtilsApis",["api",function(n){function i(i){return data={html:i},n.Post(t+"ExportPdf",null,data)}var t=ApiPath+"utils/",r=function(t){return n.Get(t).then(function(n){return $(n).map(function(n,t){var i={Id:t.Id,Name:CurrentLang=="ar"?t.NameAr:t.Name};return angular.extend(t,i),t})},function(){return[]})},u=function(t){return n.Get(t).then(function(n){return n},function(){return""})},f=function(i){return n.Post(t+"promotions/Subscribe",null,{Email:i})},e=function(i){var r={Token:i};return n.Post(t+"promotions/UnSubscribe",null,r)};return{getLookUp:r,exportPdf:i,getString:u,Subscribe:f,UnSubscribe:e}}]);VsApp.directive("datepicker",function(){function n(n,t,i,r){r.$parsers.push(function(n){return Date.parse(n)})}return{restrict:"A",require:"ngModel",link:n}});VsApp.directive("lowerThan",[function(){var n=function(n,t,i,r){var u=function(n){var u=i.lowerThan,f,e,t;return n&&u||r.$setValidity("lowerThan",!0),u&&(f=new Date(u.replace('"',"").replace('"',""))),n&&(t=n.split("-"),e=new Date(t[0],t[1]-1,t[2])),f&&e&&r.$setValidity("lowerThan",Date.parse(f)>Date.parse(e)),n};r.$parsers.unshift(u);i.$observe("lowerThan",function(){return u(r.$viewValue)})};return{require:"ngModel",link:n}}]);VsApp.directive("higherThan",[function(){var n=function(n,t,i,r){var u=function(n){var u=i.higherThan,f,e,t;return n&&u||r.$setValidity("higherThan",!0),u&&(f=new Date(u.replace('"',"").replace('"',""))),n&&(t=n.split("-"),e=new Date(t[0],t[1]-1,t[2])),f&&e&&r.$setValidity("higherThan",Date.parse(f)<Date.parse(e)),n};r.$parsers.unshift(u);i.$observe("higherThan",function(){return u(r.$viewValue)})};return{require:"ngModel",link:n}}]);VsApp.directive("fileread",[function(){return{scope:{fileread:"=",filename:"=",maxsizeviolation:"=",typeviolation:"=",extension:"=",allowedTypes:"=?"},link:function(n,t){var i=2097152;t.bind("change",function(t){var u=new FileReader,f,r,e;u.onload=function(t){n.$apply(function(){n.fileread=t.target.result})};f=t.target.files[0].name.lastIndexOf(".")+1;r=t.target.files[0].name.substr(f,t.target.files[0].name.length).toLowerCase();n.typeviolation=n.allowedTypes&&n.allowedTypes.indexOf(r)<0;u.readAsDataURL(t.target.files[0]);n.filename=t.target.files[0].name;n.extension=r;e=t.target.files[0].size;n.maxsizeviolation=e>i?!0:!1})}}}]),function(){angular.module("validation",["validation.provider","validation.directive"])}.call(this),function(){angular.module("validation.provider",[]).provider("$validation",function(){var n,f,i,t=this,e=function(t){n=t;f=n.get("$http");i=n.get("$q")},r={required:/^.+$/,url:/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/,email:/^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/,number:/^\d+$/},u={required:{error:"*",success:""},url:{error:"This should be Url",success:"It's Url"},email:{error:"This should be Email",success:"It's Email"},number:{error:"This should be Number",success:"It's Number"}};this.setExpression=function(n){angular.extend(r,n)};this.getExpression=function(n){return r[n]};this.setDefaultMsg=function(n){angular.extend(u,n)};this.getDefaultMsg=function(n){return u[n]};this.setErrorHTML=function(n){n.constructor===Function&&(t.getErrorHTML=n)};this.getErrorHTML=function(n){return'<p class="validation-invalid">'+n+"<\/p>"};this.setSuccessHTML=function(n){n.constructor===Function&&(t.getSuccessHTML=n)};this.getSuccessHTML=function(n){return'<p class="validation-valid">'+n+"<\/p>"};this.checkValid=function(n){return n.$valid===undefined?!1:n&&n.$valid===!0};this.validate=function(n,r){var f,u;for(f in r)r[f].hasOwnProperty("$dirty")&&n.$broadcast(f+"submit");return u=i.defer(),u.promise.success=function(n){return u.promise.then(function(t){n(t)}),u.promise},u.promise.error=function(n){return u.promise.then(null,function(t){n(t)}),u.promise},t.checkValid(r)?u.resolve("success"):u.reject("error"),u.promise};this.reset=function(n,t){for(var i in t)t[i].hasOwnProperty("$dirty")&&(t[i].$setViewValue(null),t[i].$setPristine(),t[i].$setValidity(t[i].$name,!1),t[i].$render(),n.$broadcast(i+"reset"))};this.$get=["$injector",function(n){return e(n),{setErrorHTML:this.setErrorHTML,getErrorHTML:this.getErrorHTML,setSuccessHTML:this.setSuccessHTML,getSuccessHTML:this.getSuccessHTML,setExpression:this.setExpression,getExpression:this.getExpression,setDefaultMsg:this.setDefaultMsg,getDefaultMsg:this.getDefaultMsg,checkValid:this.checkValid,validate:this.validate,reset:this.reset}}]})}.call(this),function(){angular.module("validation.directive",["validation.provider"]).directive("validator",["$injector",function(n){var t=n.get("$validation"),r=n.get("$q"),u=function(n,i,r,u,f){n.next().html(t.getSuccessHTML(i||t.getDefaultMsg(r).success));f.$setValidity(f.$name,!0);u&&u()},f=function(n,i,r,u,f){n.next().html(t.getErrorHTML(i||t.getDefaultMsg(r).error));f.$setValidity(f.$name,!1);u&&u()},i=function(n,i,e,o,s,h){var a=s+"SuccessMessage",v=s+"ErrorMessage",l=t.getExpression(s).constructor,c={success:function(){u(i,e[a],s,null,o)},error:function(){f(i,e[v],s,null,o)}};return l===Function?r.all([t.getExpression(s)(h)]).then(function(n){return n&&n.length>0&&n[0]?c.success():c.error()},function(){return c.error()}):l===RegExp?t.getExpression(s).test(h)?c.success():c.error():c.error()};return{restrict:"A",require:"ngModel",link:function(n,t,r,u){var f=r.validator.split(",");t.after('<span style="float: right;margin-top: 7px;"><\/span>');r.$observe("noValidationMessage",function(n){var i=t.next();n=="true"||n==!0?i.css("display","none"):(n=="false"||n==!1)&&i.css("display","block")});f.forEach(function(f){if(u.$setValidity(u.$name,!1),n.$on(u.$name+"submit",function(){var e=t[0].value;i(n,t,r,u,f,e)}),n.$on(u.$name+"reset",function(){t.next().html("")}),r.validMethod==="blur"){t.bind("blur",function(){var e=t[0].value;n.$apply(function(){i(n,t,r,u,f,e)})});return}r.validMethod!=="submit"&&n.$watch(r.ngModel,function(e){if(u.$pristine&&u.$viewValue)u.$setViewValue(u.$viewValue);else if(u.$pristine){t.next().html("");return}i(n,t,r,u,f,e)})})}}}])}.call(this);VsApp.directive("passwordConfirm",["$parse",function(){return{restrict:"A",scope:{matchTarget:"="},require:"ngModel",link:function(n,t,i,r){var u=function(t){return r.$setValidity("match",t===n.matchTarget),t};r.$parsers.unshift(u);r.$formatters.push(u);n.$watch("matchTarget",function(){u(r.$viewValue)})}}}]);VsApp.directive("scrollToBottom",["$timeout","$window",function(n){return{scope:{scrollToBottom:"=",extraCollection:"="},restrict:"A",link:function(t,i){t.$watchCollection("scrollToBottom",function(t,r){t&&t.length>1&&r&&n(function(){i[0].scrollTop=i[0].scrollHeight},0)});t.extraCollection&&t.$watchCollection("extraCollection",function(t,r){t&&t.length>1&&r&&n(function(){i[0].scrollTop=i[0].scrollHeight},0)})}}}]);MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_PATH_="../Content/Images/Markers/m";MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_EXTENSION_="png";MarkerClusterer.prototype.extend=function(n,t){return function(n){for(var t in n.prototype)this.prototype[t]=n.prototype[t];return this}.apply(n,[t])};MarkerClusterer.prototype.onAdd=function(){this.setReady_(!0)};MarkerClusterer.prototype.draw=function(){};MarkerClusterer.prototype.setupStyles_=function(){if(!this.styles_.length)for(var n=0,t;t=this.sizes[n];n++)this.styles_.push({url:this.imagePath_+(n+1)+"."+this.imageExtension_,height:t,width:t})};MarkerClusterer.prototype.fitMapToMarkers=function(){for(var r=this.getMarkers(),n=new google.maps.LatLngBounds,t=0,i;i=r[t];t++)n.extend(i.getPosition());this.map_.fitBounds(n)};MarkerClusterer.prototype.setStyles=function(n){this.styles_=n};MarkerClusterer.prototype.getStyles=function(){return this.styles_};MarkerClusterer.prototype.isZoomOnClick=function(){return this.zoomOnClick_};MarkerClusterer.prototype.isAverageCenter=function(){return this.averageCenter_};MarkerClusterer.prototype.getMarkers=function(){return this.markers_};MarkerClusterer.prototype.getTotalMarkers=function(){return this.markers_.length};MarkerClusterer.prototype.setMaxZoom=function(n){this.maxZoom_=n};MarkerClusterer.prototype.getMaxZoom=function(){return this.maxZoom_};MarkerClusterer.prototype.calculator_=function(n,t){for(var i=0,u=n.length,r=u;r!==0;)r=parseInt(r/10,10),i++;return i=Math.min(i,t),{text:u,index:i}};MarkerClusterer.prototype.setCalculator=function(n){this.calculator_=n};MarkerClusterer.prototype.getCalculator=function(){return this.calculator_};MarkerClusterer.prototype.addMarkers=function(n,t){for(var i=0,r;r=n[i];i++)this.pushMarkerTo_(r);t||this.redraw()};MarkerClusterer.prototype.pushMarkerTo_=function(n){if(n.isAdded=!1,n.draggable){var t=this;google.maps.event.addListener(n,"dragend",function(){n.isAdded=!1;t.repaint()})}this.markers_.push(n)};MarkerClusterer.prototype.addMarker=function(n,t){this.pushMarkerTo_(n);t||this.redraw()};MarkerClusterer.prototype.removeMarker_=function(n){var t=-1,i,r;if(this.markers_.indexOf)t=this.markers_.indexOf(n);else for(i=0;r=this.markers_[i];i++)if(r==n){t=i;break}return t==-1?!1:(n.setMap(null),this.markers_.splice(t,1),!0)};MarkerClusterer.prototype.removeMarker=function(n,t){var i=this.removeMarker_(n);return!t&&i?(this.resetViewport(),this.redraw(),!0):!1};MarkerClusterer.prototype.removeMarkers=function(n,t){for(var f,i=!1,r=0,u;u=n[r];r++)f=this.removeMarker_(u),i=i||f;if(!t&&i)return this.resetViewport(),this.redraw(),!0};MarkerClusterer.prototype.setReady_=function(n){this.ready_||(this.ready_=n,this.createClusters_())};MarkerClusterer.prototype.getTotalClusters=function(){return this.clusters_.length};MarkerClusterer.prototype.getMap=function(){return this.map_};MarkerClusterer.prototype.setMap=function(n){this.map_=n};MarkerClusterer.prototype.getGridSize=function(){return this.gridSize_};MarkerClusterer.prototype.setGridSize=function(n){this.gridSize_=n};MarkerClusterer.prototype.getMinClusterSize=function(){return this.minClusterSize_};MarkerClusterer.prototype.setMinClusterSize=function(n){this.minClusterSize_=n};MarkerClusterer.prototype.getExtendedBounds=function(n){var t=this.getProjection(),e=new google.maps.LatLng(n.getNorthEast().lat(),n.getNorthEast().lng()),o=new google.maps.LatLng(n.getSouthWest().lat(),n.getSouthWest().lng()),r=t.fromLatLngToDivPixel(e),i,u,f;return r.x+=this.gridSize_,r.y-=this.gridSize_,i=t.fromLatLngToDivPixel(o),i.x-=this.gridSize_,i.y+=this.gridSize_,u=t.fromDivPixelToLatLng(r),f=t.fromDivPixelToLatLng(i),n.extend(u),n.extend(f),n};MarkerClusterer.prototype.isMarkerInBounds_=function(n,t){return t.contains(n.getPosition())};MarkerClusterer.prototype.clearMarkers=function(){this.resetViewport(!0);this.markers_=[]};MarkerClusterer.prototype.resetViewport=function(n){for(var r,i,t=0;r=this.clusters_[t];t++)r.remove();for(t=0;i=this.markers_[t];t++)i.isAdded=!1,n&&i.setMap(null);this.clusters_=[]};MarkerClusterer.prototype.repaint=function(){var n=this.clusters_.slice();this.clusters_.length=0;this.resetViewport();this.redraw();window.setTimeout(function(){for(var t=0,i;i=n[t];t++)i.remove()},0)};MarkerClusterer.prototype.redraw=function(){this.createClusters_()};MarkerClusterer.prototype.distanceBetweenPoints_=function(n,t){if(!n||!t)return 0;var i=(t.lat()-n.lat())*Math.PI/180,r=(t.lng()-n.lng())*Math.PI/180,u=Math.sin(i/2)*Math.sin(i/2)+Math.cos(n.lat()*Math.PI/180)*Math.cos(t.lat()*Math.PI/180)*Math.sin(r/2)*Math.sin(r/2),f=2*Math.atan2(Math.sqrt(u),Math.sqrt(1-u));return 6371*f};MarkerClusterer.prototype.addToClosestCluster_=function(n){for(var r,u,t,f=4e4,i=null,o=n.getPosition(),e=0;t=this.clusters_[e];e++)r=t.getCenter(),r&&(u=this.distanceBetweenPoints_(r,n.getPosition()),u<f&&(f=u,i=t));i&&i.isMarkerInClusterBounds(n)?i.addMarker(n):(t=new Cluster(this),t.addMarker(n),this.clusters_.push(t))};MarkerClusterer.prototype.createClusters_=function(){var i,r,t,n;if(this.ready_)for(i=new google.maps.LatLngBounds(this.map_.getBounds().getSouthWest(),this.map_.getBounds().getNorthEast()),r=this.getExtendedBounds(i),t=0;n=this.markers_[t];t++)!n.isAdded&&this.isMarkerInBounds_(n,r)&&this.addToClosestCluster_(n)};Cluster.prototype.isMarkerAlreadyAdded=function(n){if(this.markers_.indexOf)return this.markers_.indexOf(n)!=-1;for(var t=0,i;i=this.markers_[t];t++)if(i==n)return!0;return!1};Cluster.prototype.addMarker=function(n){var t,r;if(this.isMarkerAlreadyAdded(n))return!1;if(this.center_){if(this.averageCenter_){var i=this.markers_.length+1,u=(this.center_.lat()*(i-1)+n.getPosition().lat())/i,f=(this.center_.lng()*(i-1)+n.getPosition().lng())/i;this.center_=new google.maps.LatLng(u,f);this.calculateBounds_()}}else this.center_=n.getPosition(),this.calculateBounds_();if(n.isAdded=!0,this.markers_.push(n),t=this.markers_.length,t<this.minClusterSize_&&n.getMap()!=this.map_&&n.setMap(this.map_),t==this.minClusterSize_)for(r=0;r<t;r++)this.markers_[r].setMap(null);return t>=this.minClusterSize_&&n.setMap(null),this.updateIcon(),!0};Cluster.prototype.getMarkerClusterer=function(){return this.markerClusterer_};Cluster.prototype.getBounds=function(){for(var n=new google.maps.LatLngBounds(this.center_,this.center_),r=this.getMarkers(),t=0,i;i=r[t];t++)n.extend(i.getPosition());return n};Cluster.prototype.remove=function(){this.clusterIcon_.remove();this.markers_.length=0;delete this.markers_};Cluster.prototype.getSize=function(){return this.markers_.length};Cluster.prototype.getMarkers=function(){return this.markers_};Cluster.prototype.getCenter=function(){return this.center_};Cluster.prototype.calculateBounds_=function(){var n=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(n)};Cluster.prototype.isMarkerInClusterBounds=function(n){return this.bounds_.contains(n.getPosition())};Cluster.prototype.getMap=function(){return this.map_};Cluster.prototype.updateIcon=function(){var f=this.map_.getZoom(),t=this.markerClusterer_.getMaxZoom(),n,i,r,u;if(t&&f>t){for(n=0;i=this.markers_[n];n++)i.setMap(this.map_);return}if(this.markers_.length<this.minClusterSize_){this.clusterIcon_.hide();return}r=this.markerClusterer_.getStyles().length;u=this.markerClusterer_.getCalculator()(this.markers_,r);this.clusterIcon_.setCenter(this.center_);this.clusterIcon_.setSums(u);this.clusterIcon_.show()};ClusterIcon.prototype.triggerClusterClick=function(n){var t=this.cluster_.getMarkerClusterer();google.maps.event.trigger(t,"clusterclick",this.cluster_,n);t.isZoomOnClick()&&this.map_.fitBounds(this.cluster_.getBounds())};ClusterIcon.prototype.onAdd=function(){var n,t,i;this.div_=document.createElement("DIV");this.visible_&&(n=this.getPosFromLatLng_(this.center_),this.div_.style.cssText=this.createCss(n),this.div_.innerHTML=this.sums_.text);t=this.getPanes();t.overlayMouseTarget.appendChild(this.div_);i=this;google.maps.event.addDomListener(this.div_,"click",function(n){i.triggerClusterClick(n)})};ClusterIcon.prototype.getPosFromLatLng_=function(n){var t=this.getProjection().fromLatLngToDivPixel(n);return typeof this.iconAnchor_=="object"&&this.iconAnchor_.length===2?(t.x-=this.iconAnchor_[0],t.y-=this.iconAnchor_[1]):(t.x-=parseInt(this.width_/2,10),t.y-=parseInt(this.height_/2,10)),t};ClusterIcon.prototype.draw=function(){if(this.visible_){var n=this.getPosFromLatLng_(this.center_);this.div_.style.top=n.y+"px";this.div_.style.left=n.x+"px"}};ClusterIcon.prototype.hide=function(){this.div_&&(this.div_.style.display="none");this.visible_=!1};ClusterIcon.prototype.show=function(){if(this.div_){var n=this.getPosFromLatLng_(this.center_);this.div_.style.cssText=this.createCss(n);this.div_.style.display=""}this.visible_=!0};ClusterIcon.prototype.remove=function(){this.setMap(null)};ClusterIcon.prototype.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),this.div_.parentNode.removeChild(this.div_),this.div_=null)};ClusterIcon.prototype.setSums=function(n){this.sums_=n;this.text_=n.text;this.index_=n.index;this.div_&&(this.div_.innerHTML=n.text);this.useStyle()};ClusterIcon.prototype.useStyle=function(){var t=Math.max(0,this.sums_.index-1),n;t=Math.min(this.styles_.length-1,t);n=this.styles_[t];this.url_=n.url;this.height_=n.height;this.width_=n.width;this.textColor_=n.textColor;this.anchor_=n.anchor;this.textSize_=n.textSize;this.backgroundPosition_=n.backgroundPosition;this.iconAnchor_=n.iconAnchor};ClusterIcon.prototype.setCenter=function(n){this.center_=n};ClusterIcon.prototype.createCss=function(n){var t=[],i,r,u;return t.push("background-image:url("+this.url_+");"),i=this.backgroundPosition_?this.backgroundPosition_:"0 0",t.push("background-position:"+i+";"),typeof this.anchor_=="object"?(typeof this.anchor_[0]=="number"&&this.anchor_[0]>0&&this.anchor_[0]<this.height_?t.push("height:"+(this.height_-this.anchor_[0])+"px; padding-top:"+this.anchor_[0]+"px;"):typeof this.anchor_[0]=="number"&&this.anchor_[0]<0&&-this.anchor_[0]<this.height_?t.push("height:"+this.height_+"px; line-height:"+(this.height_+this.anchor_[0])+"px;"):t.push("height:"+this.height_+"px; line-height:"+this.height_+"px;"),typeof this.anchor_[1]=="number"&&this.anchor_[1]>0&&this.anchor_[1]<this.width_?t.push("width:"+(this.width_-this.anchor_[1])+"px; padding-left:"+this.anchor_[1]+"px;"):t.push("width:"+this.width_+"px; text-align:center;")):t.push("height:"+this.height_+"px; line-height:"+this.height_+"px; width:"+this.width_+"px; text-align:center;"),r=this.textColor_?this.textColor_:"black",u=this.textSize_?this.textSize_:11,t.push("cursor:pointer; top:"+n.y+"px; left:"+n.x+"px; color:"+r+"; position:absolute; font-size:"+u+"px; font-family:Arial,sans-serif; font-weight:bold"),t.join("")};window.MarkerClusterer=MarkerClusterer;MarkerClusterer.prototype.addMarker=MarkerClusterer.prototype.addMarker;MarkerClusterer.prototype.addMarkers=MarkerClusterer.prototype.addMarkers;MarkerClusterer.prototype.clearMarkers=MarkerClusterer.prototype.clearMarkers;MarkerClusterer.prototype.fitMapToMarkers=MarkerClusterer.prototype.fitMapToMarkers;MarkerClusterer.prototype.getCalculator=MarkerClusterer.prototype.getCalculator;MarkerClusterer.prototype.getGridSize=MarkerClusterer.prototype.getGridSize;MarkerClusterer.prototype.getExtendedBounds=MarkerClusterer.prototype.getExtendedBounds;MarkerClusterer.prototype.getMap=MarkerClusterer.prototype.getMap;MarkerClusterer.prototype.getMarkers=MarkerClusterer.prototype.getMarkers;MarkerClusterer.prototype.getMaxZoom=MarkerClusterer.prototype.getMaxZoom;MarkerClusterer.prototype.getStyles=MarkerClusterer.prototype.getStyles;MarkerClusterer.prototype.getTotalClusters=MarkerClusterer.prototype.getTotalClusters;MarkerClusterer.prototype.getTotalMarkers=MarkerClusterer.prototype.getTotalMarkers;MarkerClusterer.prototype.redraw=MarkerClusterer.prototype.redraw;MarkerClusterer.prototype.removeMarker=MarkerClusterer.prototype.removeMarker;MarkerClusterer.prototype.removeMarkers=MarkerClusterer.prototype.removeMarkers;MarkerClusterer.prototype.resetViewport=MarkerClusterer.prototype.resetViewport;MarkerClusterer.prototype.repaint=MarkerClusterer.prototype.repaint;MarkerClusterer.prototype.setCalculator=MarkerClusterer.prototype.setCalculator;MarkerClusterer.prototype.setGridSize=MarkerClusterer.prototype.setGridSize;MarkerClusterer.prototype.setMaxZoom=MarkerClusterer.prototype.setMaxZoom;MarkerClusterer.prototype.onAdd=MarkerClusterer.prototype.onAdd;MarkerClusterer.prototype.draw=MarkerClusterer.prototype.draw;Cluster.prototype.getCenter=Cluster.prototype.getCenter;Cluster.prototype.getSize=Cluster.prototype.getSize;Cluster.prototype.getMarkers=Cluster.prototype.getMarkers;ClusterIcon.prototype.onAdd=ClusterIcon.prototype.onAdd;ClusterIcon.prototype.draw=ClusterIcon.prototype.draw;ClusterIcon.prototype.onRemove=ClusterIcon.prototype.onRemove;angular.module("ui.event",[]).directive("uiEvent",["$parse",function(n){return function(t,i,r){var u=t.$eval(r.uiEvent);angular.forEach(u,function(r,u){var f=n(r);i.bind(u,function(n){var i=Array.prototype.slice.call(arguments);i=i.splice(1);f(t,{$event:n,$params:i});t.$$phase||t.$apply()})})}}]),function(){function i(n,t,i,r){angular.forEach(t.split(" "),function(t){google.maps.event.addListener(i,t,function(i){r.triggerHandler("map-"+t,i);n.$$phase||n.$apply()})})}function n(n,r){t.directive(n,[function(){return{restrict:"A",link:function(t,u,f){t.$watch(f[n],function(n){n&&i(t,r,n,u)})}}}])}var t=angular.module("ui.map",["ui.event"]);t.value("uiMapConfig",{}).directive("uiMap",["uiMapConfig","$parse",function(n,t){var r="bounds_changed center_changed click dblclick drag dragend dragstart heading_changed idle maptypeid_changed mousemove mouseout mouseover projection_changed resize rightclick tilesloaded tilt_changed zoom_changed",u=n||{};return{restrict:"A",link:function(n,f,e){var s=angular.extend({},u,n.$eval(e.uiOptions)),o=new google.maps.Map(f[0],s),h=t(e.uiMap);h.assign(n,o);i(n,r,o,f)}}}]);t.value("uiMapInfoWindowConfig",{}).directive("uiMapInfoWindow",["uiMapInfoWindowConfig","$parse","$compile",function(n,t,r){var u="closeclick content_change domready position_changed zindex_changed",f=n||{};return{link:function(n,e,o){var c=angular.extend({},f,n.$eval(o.uiOptions)),h,s,l;c.content=e[0];h=t(o.uiMapInfoWindow);s=h(n);s||(s=new google.maps.InfoWindow(c),h.assign(n,s));i(n,u,s,e);e.replaceWith("<div><\/div>");l=s.open;s.open=function(t,i,u,f,o,h){r(e.contents())(n);l.call(s,t,i,u,f,o,h)}}}}]);n("uiMapMarker","animation_changed click clickable_changed cursor_changed dblclick drag dragend draggable_changed dragstart flat_changed icon_changed mousedown mouseout mouseover mouseup position_changed rightclick shadow_changed shape_changed title_changed visible_changed zindex_changed");n("uiMapPolyline","click dblclick mousedown mousemove mouseout mouseover mouseup rightclick");n("uiMapPolygon","click dblclick mousedown mousemove mouseout mouseover mouseup rightclick");n("uiMapRectangle","bounds_changed click dblclick mousedown mousemove mouseout mouseover mouseup rightclick");n("uiMapCircle","center_changed click dblclick mousedown mousemove mouseout mouseover mouseup radius_changed rightclick");n("uiMapGroundOverlay","click dblclick")}();GridRowStatus={"0":"Pending","1":"Approved","2":"Rejected","3":"PendingDelete","4":"Normal"};GridRowColor={Pending:"#FADBD8",Rejected:"#EEEEEE",PendingDelete:"#FF7676",Approved:"transparent"};VsApp.controller("AboutUsController",["$scope","$rootScope","api","$stateParams","$sce",function(n,t,i,r,u){$=jQuery;n.AboutUsData=null;t.isLoading=!0;n.errorLoading=null;n.AboutUsData=r.AboutUsData;n.id=0;n.processData=function(){n.AboutUsData.JContent=!n.AboutUsData.Content?{MainImage:"",Header:{en:"",ar:""},Content:{en:"",ar:""}}:JSON.parse(n.AboutUsData.Content)};i.Get(t.utilsU+"home/AboutUs").then(function(i){console.log(i);n.AboutUsData=i||{};n.processData();t.isLoading=!1},function(){t.isLoading=!1;t.showErrorMessageFromKey("error_occured")});n.trust=function(n){return u.trustAsHtml(n)}}]);VsApp.controller("appNotesCtrl",["$rootScope","$scope","$uibModalInstance","$sce","$timeout","UtilsApis","data",function(n,t,i,r,u,f,e){var o=this;t.data=e;t.status={};t.output={};t.userNotes="";o.ok=function(){t.userNotes&&(i.close(t.userNotes),t.userNotes="")};o.cancel=function(){i.dismiss("cancel")};o.print=function(){window.print()}}]);VsApp.controller("ChangePasswordController",["$scope","AuthService","$rootScope","$timeout","$location",function(n,t,i,r,u){var e,o;$=jQuery;e="ChangePassword";i.CurrentPage=e;n.Messages={Error_NotMatch:n.GetResource("error_PasswordNotMatched"),Error_InvalidPassword:n.GetResource("error_EnterValidNewPassword"),Error_InvalidActivation:n.GetResource("error_WrongActivationLink"),Success:n.GetResource("success_save"),strong_password:n.GetResource("strong_password")};n.changePasswordModel={newPassword:"",confirmPassword:""};n.isExpired=!1;var s=u.search().exp,f=s.split("/"),h=new Date,c=new Date(f[2],f[0]-1,f[1]);h-c>5184e5&&(n.isExpired=!0);o=new RegExp("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*+(){}?~`=.<>-])(?=.{8,})");n.changePassword=function(f){if(!f.newPassword||!f.confirmPassword){i.showErrorMessage(n.Messages.Error_InvalidPassword);return}if(i.isLoading=!0,f.newPassword==f.confirmPassword)if(o.test(f.newPassword)){var e=f.newPassword,s=u.search().token;t.changeForgottenPassword(s,window.btoa(e)).then(function(t){i.isLoading=!1;t===!0?i.showSuccessMessageFromKey("PasswordChangesSuccessfully",function(){r(function(){i.Logout()},100)}):i.showErrorMessage(n.Messages.Error_InvalidActivation)},function(){i.isLoading=!1;i.showErrorMessage(n.Messages.Error_EnterValidNewPassword)})}else i.showErrorMessage(n.Messages.strong_password);else i.showErrorMessage(n.Messages.Error_NotMatch);i.isLoading=!1};n.ClosePopup=function(){u.path("/login")};n.showForgetPasswordPanel=function(){n.openModal("md",null,"forgetpassword.html").then(function(t){n.changePassword(t)},function(){n.ClosePopup()})};n.showForgetPasswordPanel()}]);VsApp.controller("ContributionController",["$scope","AuthService","$rootScope","$cookies","$window","UtilsApis","$localStorage","$sce","swangular","api","$stateParams","Lookups",function(n,t,i,r,u,f,e,o,s,h,c,l){var y,p,a,v;$=jQuery;n.IsEditable=!0;n.IncidentModel=null;n.errorStartDate=!1;n.errorEndDate=!1;n.DisplayAddContribution=!1;n.errorEmptyStartDate=!1;n.isDraft=!0;n.isSubmit=!0;n.errorMessage="";n.isSaving=!1;n.errorSaving=null;f.getLookUp(i.utilsU+"Nationalities/read").then(function(t){n.Nationalities=t});n.IncidentModel={Id:0,FullName:"",GenderType:"",Age:"",StartTime:new Date,CloseTime:"",ProceduresTaken:"",Complaint:"",NationalityId:""};n.nationalitiesLookupDS=i.getLookupDataSource(i.utilsU+"Nationalities/read");n.nationalitiesLookupDS.read();n.GenderTypeData=l.GenderTypeData;y=new Date;p=new Date(2013,1,1);n.IncidentModel.StartTime&&(y=n.IncidentModel.StartTime);a=$("#txtStartTime").kendoDateTimePicker({value:y,open:function(){a.min()==p&&a.value(y)}}).data("kendoDateTimePicker");v=$("#txtCloseTime").kendoDateTimePicker({open:function(){v.min()==p}}).data("kendoDateTimePicker");a.bind("change",function(){var t=a.value(),i=v.value();n.errorEmptyStartDate=!1;i!=null&&(t>i?(n.errorStartDate=!0,n.errorEndDate=!0):(n.errorStartDate=!1,n.errorEndDate=!1),n.$apply());n.IncidentModel.StartTime=t});v.bind("change",function(){var i=v.value(),t=a.value();t==null?n.errorEmptyStartDate=!0:(n.errorEmptyStartDate=!1,i<t?(n.errorEndDate=!0,n.errorStartDate=!0):(n.errorEndDate=!1,n.errorStartDate=!1));n.$apply()});n.openeditview=function(t){var i=n.kg.dataItem($(t.currentTarget).closest("tr"));n.IncidentModel.Id=i.Id;n.IncidentModel.FullName=i.FullName;n.IncidentModel.GenderType=parseInt(i.GenderType);n.IncidentModel.Age=i.Age;n.IncidentModel.StartTime=i.StartTime;n.IncidentModel.CloseTime=i.CloseTime;n.IncidentModel.ProceduresTaken=i.ProceduresTaken;n.IncidentModel.Complaint=i.Complaint;n.IncidentModel.NationalityId=i.NationalityId;a.value(i.StartTime);v.value(n.IncidentModel.CloseTime);n.DisplayAddContribution=!0;n.$apply();t.preventDefault()};c.volunteerId&&c.eventId&&(n.ContributionDataSource=new kendo.data.DataSource({transport:{read:{url:"/EventsAdmin/GetEventVolunteerIncidents?eventId="+c.eventId+"&volunteerId="+c.volunteerId,dataType:"json",beforeSend:i.addTokenToRequest,complete:i.logoutIfForbidden},parameterMap:function(n,t){if(t!=="read"&&n.models)return JSON.stringify({IncidentModel:n.models})}},batch:!0,pageSize:10,serverPaging:!1,schema:{data:"Data",total:"Total",model:{id:"Id",fields:{Id:{editable:!1,nullable:!1,defaultValue:0},FullName:{type:"string"},GenderType:{type:"string"},Age:{type:"int"},NationalityId:{type:"int"},StartTime:{type:"date"},Complaint:{type:"string"},ProceduresTaken:{type:"string"},CloseTime:{type:"date"},VolunteerId:{type:"int"}}},errors:"Errors"},error:function(n){i.gridOnError(n,this)}}),n.contributionGridOptions={dataSource:n.ContributionDataSource,selectable:"row",resizable:!0,scrollable:!0,sortable:!0,filterable:!0,reorderable:!0,columnMenu:!0,pageable:{refresh:!0,input:!0,numeric:!1,pageSizes:[10,20,30,50,75,100,500,1e3]},columns:[{field:"Id",title:n.Labels.Id,width:200,visible:!1},{field:"FullName",title:n.Labels.FullName,width:200},{field:"GenderType",title:n.Labels.GenderType,values:n.GenderTypeData,width:69},{field:"Age",title:n.Labels.Age,width:69},{field:"NationalityId",title:n.Labels.NationalityId,values:n.nationalitiesLookupDS.data().toJSON(),width:69},{field:"Complaint",title:n.Labels.Complaint,width:69},{field:"ProceduresTaken",title:n.Labels.ProceduresTaken,width:69},{field:"StartTime",title:n.Labels.StartTime,format:"{0:dd-MM-yyyy HH:mm}",template:"#= kendo.toString(StartTime,'dd-MM-yyyy HH:mm') #",width:100},{field:"CloseTime",title:n.Labels.CloseTime,format:"{0:dd-MM-yyyy HH:mm}",template:"#= kendo.toString(CloseTime,'dd-MM-yyyy HH:mm') #",width:100},{command:[{name:"EditorView",text:n.Labels.EditorView,click:n.openeditview}],title:"",width:"120px"}],editable:"popup",toolbar:[{template:'<a role="button" class="k-button k-button-icontext k-grid-AddContribution" href="javascript:void(0)">'+i.Labels.ActionsAddRecord+"<\/a>"}],dataBound:function(){$(".k-grid-AddContribution").unbind("click").bind("click",n.ShowAddContributionPanel)}});n.ShowAddContributionPanel=function(){n.ClearControls();n.DisplayAddContribution=!0;n.$apply()};n.ClearControls=function(){n.IncidentModel.FullName="";n.IncidentModel.Age="";n.IncidentModel.GenderType="";n.IncidentModel.NationalityId="";n.IncidentModel.Complaint="";n.IncidentModel.ProceduresTaken="";n.IncidentModel.StartTime="";n.IncidentModel.CloseTime="";n.IncidentModel.Id="";a.value(null);v.value(null)};n.SaveDraft=function(t){n.isDraft=!1;n.isSubmit=!0;n.IncidentModel.StartTime=a.value();n.IncidentModel.CloseTime=v.value();n.ValidateFields(t);n.errorMessage||(n.save(),n.DisplayAddContribution=!1)};n.SubmitForm=function(t){n.isSubmit=!1;n.isDraft=!1;n.IncidentModel.StartTime=a.value();n.IncidentModel.CloseTime=v.value();n.ValidateFields(t);n.errorMessage||(n.save(),n.DisplayAddContribution=!1)};n.Cancel=function(){n.DisplayAddContribution=!1};n.save=function(){n.errorSaving=null;h.Post(utilsU.eventsU+"contribution/"+c.eventId+"/"+c.volunteerId,null,n.IncidentModel).then(function(t){t.Success?(n.ContributionDataSource.read(),s.swal({title:"",text:n.Labels[t.Message],type:"success"}),n.ClearControls()):i.showErrorMessage(n.Labels[t.Message])},function(){n.errorSaving=n.Labels.ErrorSavingData})};n.ValidateFields=function(t){if((n.errorMessage=n.Labels.AllFieldsRequired,n.IncidentModel.FullName)&&n.IncidentModel.Age&&(n.IncidentModel.GenderType||n.IncidentModel.GenderType==0)&&n.IncidentModel.NationalityId){if(n.IncidentModel.StartTime&&n.IncidentModel.CloseTime&&n.IncidentModel.StartTime>n.IncidentModel.CloseTime){n.errorEndDate=!0;n.errorStartDate=!0;n.$apply();return}if(t){if(!n.IncidentModel.Complaint)return;if(!n.IncidentModel.ProceduresTaken)return;if(!n.IncidentModel.StartTime)return;if(!n.IncidentModel.CloseTime)return}if(!n.IncidentModel.StartTime){n.errorMessage=n.Labels.StartTimeRequired;return}if(n.IncidentModel.ProceudresTaken&&!n.IncidentModel.CloseTime){n.errorMessage=n.Labels.EndTimeRequired;return}n.errorMessage=""}}}]);VsApp.controller("CurrentEventsController",["$scope","AuthService","$rootScope","$cookies","$window","UtilsApis","$localStorage","$sce","swangular","api","Lookups","$http",function(n,t,i,r,u,f,e,o,s,h,c,l){$=jQuery;n.InvitationRequestStatusLookup=c.InvitationRequestStatusLookup;n.invitationRequestStatuses=c.invitationRequestStatuses;i.CurrentPage="CurrentEvents";n.CurrentEvents=null;i.isLoading=!0;n.VolunteerId=0;n.EventId=0;h.Get(i.eventsU+"currentEvents").then(function(t){n.CurrentEvents=t;i.isLoading=!1},function(){i.isLoading=!1;i.showErrorMessage(n.Labels.ErrorLoadingData)});n.contribute=function(n,t){i.$state.transitionTo("Contribution",{volunteerId:n,eventId:t,data:null})};n.printVolunteerCardWithEventInfo=function(n){i.isLoading=!0;l({method:"GET",url:"/VolunteerRegistration/VolunteerCardWithEventInfo",params:{eventId:n},responseType:"arraybuffer",headers:{AuthorizationHeader:i.GetAuthenticationToken()}}).then(function(t){var o="Volunteer_"+n+".pdf",r=document.createElement("a"),u,f,e;try{u=new Blob([t.data],{type:"application/octet-stream"});f=window.URL.createObjectURL(u);r.setAttribute("href",f);r.setAttribute("download",o);e=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});r.dispatchEvent(e);i.isLoading=!1}catch(s){i.isLoading=!1;console.log(s)}},function(n){console.log(n);i.isLoading=!1})}}]);VsApp.controller("DashboardController",["$scope","api","$rootScope","AuthService",function(n,t,i,r){function u(){var t=r.getDataSourceSyncCall("UserRoles","UserRoles_GetFirstAssignedModule",null,i.addTokenToRequest,i.logoutIfForbidden),u;n.firstModule=t;t!=""&&n.ShowHeaderMenus()&&(u="pills-"+t,$("#"+u).addClass("show active"))}$=jQuery;i.CurrentPage="Dashboard";n.hasEventInvitations=!1;n.enrolledInCurrentEvents=!1;n.contributedToPastEvents=!1;n.isSRCAEmployee=!1;n.ClientCode=i.ConfigKey().ClientCode;n.SysEnvironment=i.ConfigKey().SysEnvironment.toLowerCase();n.status={};n.IsRegistrationCompleteMessage=n.Labels["UpdateRegistrationMessage_"+n.ClientCode];n.isRegistrationStatusApproved=!1;n.ListofCourses=function(r=0){r?(i.isLoading=!0,t.Get(i.volU+"getcourselinks/"+i.GetCurrentVolunteerId()+"/1").then(function(t){n.Courses=t==null?[]:t},function(){}),i.isLoading=!1):(i.isLoading=!0,t.Get(i.volU+"getcourselinks/"+i.GetCurrentVolunteerId()+"/0").then(function(t){n.Courses=t==null?[]:t},function(){}),i.isLoading=!1)};n.isRegistrationStatusApprovedForCurrentVolunteer=function(){t.Post(i.volU+"isRegistrationStatusApproved/"+i.GetCurrentVolunteerId()).then(function(t){n.isRegistrationStatusApproved=t},function(){})};n.ClientCode=="MOH"&&n.isRegistrationStatusApprovedForCurrentVolunteer();$(document).ready(function(){window.performance;console.info(performance.navigation.type);performance.navigation.type==performance.navigation.TYPE_RELOAD?i.GetCurrentVolunteerId()!=null?n.ListofCourses(0):n.Courses=null:i.GetCurrentVolunteerId()!=null?n.ListofCourses(1):n.Courses=null});n.ShowHeaderMenus=function(){return i.IsRegistrationComplete()==!0&&i.IsUserNICValid()==!0};i.ManageNICAuthetication();n.getClass=function(t){if(t==n.firstModule&&i.IsRegistrationComplete()!=!1)return"nav-link active"};u();n.IsVolunteer()&&t.Get(i.volU+"CheckSRCAEmployee").then(function(t){n.isSRCAEmployee=t},function(){})}]);VsApp.controller("DashboardStatisticsController",["$scope","$rootScope","UtilsApis","Lookups","$http",function(n,t,i,r,u){var o;$=jQuery;o="DashboardStatistics";t.CurrentPage=o;n.GenderTypeData=r.GenderTypeData;i.getLookUp(t.utilsU+"regions/read").then(function(t){n.Regions=t});i.getLookUp(t.utilsU+"cities/read").then(function(t){n.Cities=t});i.getLookUp(t.utilsU+"usercategories/read").then(function(t){n.Categories=t});i.getLookUp(t.utilsU+"usersubcategorieslevel1/read").then(function(t){n.UserSubCategoriesLevel1=t});i.getLookUp(t.utilsU+"userexperiencelevel/read").then(function(t){n.UserExperienceLevel=t});i.getLookUp(t.utilsU+"citygroups/read").then(function(t){n.CityGroups=t});i.getLookUp(t.eventsU+"EventTypes/read").then(function(t){n.EventTypes=t});n.onSelected=function(){n.SearchFilters.SubCategoryLevel1Id=null;n.SearchFilters.SubCategoryLevel2Id=null;n.SearchFilters.UserExperienceLevelId=null};n.onSelectedSubCategoriesLevel1=function(){n.SearchFilters.SubCategoryLevel2Id=null;n.SearchFilters.UserExperienceLevelId=null};n.EventStatusData=r.EventStatusData;var f="#71B37C",e="#528FE8",s="#E04C57";n.SearchFilters={RegionId:null,ReportType:1,CityId:null,StatusId:null,GenderType:null,IsPractioner:!1,CategoryId:null,SubCategoryLevel1Id:null,SubCategoryLevel2Id:null,UserExperienceLevelId:null,TypeId:null,IsPublic:-1,StartDate:null,EndDate:null,EventStatus:null,CityGroupId:null};n.GetDashboardStatistics=function(){n.IsExecuting=!0;t.isLoading=!0;u({url:"/VolunteerRegistration/GetDashboardStatistics",params:{ReportType:n.SearchFilters.ReportType,StatusId:n.SearchFilters.StatusId,RegionId:n.SearchFilters.RegionId,CityId:n.SearchFilters.CityId,GenderType:n.SearchFilters.GenderType,IsPractioner:n.SearchFilters.IsPractioner,CategoryId:n.SearchFilters.CategoryId,UserSubCategoryLevel1Id:n.SearchFilters.SubCategoryLevel1Id,UserSubCategoryLevel2Id:n.SearchFilters.SubCategoryLevel2Id,UserExperienceLevelId:n.SearchFilters.UserExperienceLevelId,EventStatus:n.SearchFilters.EventStatus,StartDate:n.SearchFilters.StartDate,EndDate:n.SearchFilters.EndDate,CityGroupId:n.SearchFilters.CityGroupId},method:"POST",headers:{AuthorizationHeader:t.GetAuthenticationToken(),"Content-type":"application/json"},responseType:"JSON"}).then(function(t){var i=t.data[0];if(n.RegionChartSourceRegister=null,n.RegionChartSourceEvents=null,i!=null){n.ClearScopeValues();var h=i.DSCountersViewModel,u=i.DSRegionsViewModel,o=i.DSCityGroupViewModel,r=i.DSEventTypeViewModel;h.length>=0&&($.each(h,function(t,i){n[i.LabelName]=i.LabelValue;n[i.LabelName+"Percent"]=i.Percentage}),n.CategoryChartSource(),n.GenderChartSource(),n.NationalityChartSource(),getPieCharts());u.length>=0&&(n.RegionChartSourceRegister=n.SetRegionChartSourceRegister(u),n.RegionChartSourceEvents=n.SetRegionChartSourceEvents(u),getRegionCharts());o.length>=0&&(n.CityGroupChartSourceRegister=n.SetCityGroupChartSourceRegister(o),n.CityGroupChartSourceEvents=n.SetCityGroupChartSourceEvents(o),getCityGroupCharts());r.length>=0&&(n.EventType_ApprovedHours_ChartSource=n.SetEventTypeChartSource(r,"ApprovedHoursValue","ApprovedHoursPercentage","ApprovedHours",e),n.EventType_NotApprovedHours_ChartSource=n.SetEventTypeChartSource(r,"NotApprovedHoursValue","NotApprovedHoursPercentage","NotApprovedHours",s),n.EventType_Events_ChartSource=n.SetEventTypeChartSource(r,"EventValue","EventPercentage","EventTypeEvents",f),getEventTypeCharts())}},function(n){n.status=="403"&&(console.log("Error------ "+n.status+" - "+n.statusText),t.Logout())});t.isLoading=!1};n.GetDashboardStatistics();n.ClearScopeValues=function(){angular.forEach(n,function(t,i){i.startsWith("lbl")&&(n[i]=null)})};n.SearchOnEventStatus=function(i){t.isLoading=!0;n.SearchFilters.EventStatus=i;n.GetDashboardStatistics();t.isLoading=!1};n.ClearControls=function(){n.SearchFilters.RegionId=null;n.SearchFilters.CityId=null;n.SearchFilters.StatusId=null;n.SearchFilters.GenderType=null;n.SearchFilters.IsPractioner=!1;n.SearchFilters.CategoryId=null;n.SearchFilters.SubCategoryLevel1Id=null;n.SearchFilters.SubCategoryLevel2Id=null;n.SearchFilters.UserExperienceLevelId=null;n.SearchFilters.TypeId=null;n.SearchFilters.IsPublic=-1;n.SearchFilters.StartDate=null;n.SearchFilters.EndDate=null;n.SearchFilters.EventStatus=null;n.SearchFilters.CityGroupId=null;n.GetDashboardStatistics()};n.SetTheme=function(){alert("Theme");$("#theme-sheet").attr({href:"~/TemplateScripts/assets/css/layoutDarkTheme.css"})};n.GetPieChartOptions=function(n,t,i){return{series:n,chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{enabled:!0,delay:150},dynamicAnimation:{enabled:!0,speed:350}},height:320,type:"radialBar",fontFamily:"arabicFonts"},plotOptions:{radialBar:{offsetY:0,startAngle:0,endAngle:270,hollow:{margin:5,size:"30%",background:"transparent",image:undefined},dataLabels:{name:{show:!1},value:{show:!1}}}},colors:t,labels:i,legend:{show:!0,floating:!0,fontSize:"13px",position:"left",offsetX:40,offsetY:40,labels:{useSeriesColors:!0},markers:{size:0},formatter:function(n,t){return n+":  "+t.w.globals.series[t.seriesIndex]+" %"},itemMargin:{vertical:3}},responsive:[{breakpoint:480,options:{legend:{show:!1}}}]}};n.CategoryChartSource=function(){var t=[n.lblGeneralPercent,n.lblHealthPercent,n.lblUncategorizedPercent],i=[n.Labels.lblGeneral,n.Labels.lblHealth,n.Labels.lblUnCategorized];return n.GetPieChartOptions(t,["#1ab7ea","#0084ff","#0034ff"],i)};n.GenderChartSource=function(){var t=[n.lblMalePercent,n.lblFemalePercent],i=[n.Labels.lblMales,n.Labels.lblFemales];return n.GetPieChartOptions(t,["#1ab7ea","#0084ff"],i)};n.NationalityChartSource=function(){var t=[n.lblSaudiPercent,n.lblNonSaudiPercent],i=[f,e],r=[n.Labels.lblSaudi,n.Labels.lblNonSaudi];return n.GetPieChartOptions(t,i,r)};n.GetMultipleBarChartOptions=function(n,t,i,r,u){return{series:[{name:t,data:n},{name:r,data:i}],chart:{type:"bar",height:630,width:"100%",fontFamily:"arabicFonts"},plotOptions:{bar:{horizontal:!0,dataLabels:{position:"top"},barHeight:"100%"}},dataLabels:{enabled:!0,offsetX:-6,style:{fontSize:"11px",colors:["#fff"]}},stroke:{show:!0,width:0,colors:["#fff"]},colors:["#1ab7ea","#0084ff"],xaxis:{categories:u},yaxis:{labels:{show:!0,rotate:0,rotateAlways:!1,hideOverlappingLabels:!0,showDuplicates:!1,trim:!1,minHeight:undefined,maxHeight:220,style:{colors:[],fontSize:"12px",fontFamily:"arabicFonts",fontWeight:400,cssClass:"apexcharts-xaxis-label"},offsetX:-110}}}};n.GetBarChartOptions=function(n,t,i,r){return{series:[{name:t,data:n}],chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{enabled:!0,delay:150},dynamicAnimation:{enabled:!0,speed:350}},type:"bar",height:630,width:"100%",fontFamily:"arabicFonts"},plotOptions:{bar:{horizontal:!0,dataLabels:{position:"top"},barHeight:"90%"}},dataLabels:{enabled:!0,style:{fontSize:"12px",colors:["#000"],align:"right"},formatter:function(n,t){return t.w.globals.labels[t.dataPointIndex]+"  :  "+n},textAnchor:"right"},stroke:{show:!0,width:0,colors:["#fff"]},colors:r,yaxis:{categories:i,reversed:!0,labels:{show:!1}},xaxis:{categories:i,labels:{show:!0}}}};n.GetBarChartOptionsEmpty=function(){return{series:[{name:"Empty",data:[]}],chart:{type:"bar",height:430}}};n.SetRegionChartSource=function(t){var i=[],f=[],r=[],e=[],u=[];return $.each(t,function(n,t){i.push(t.RegisterValue);f.push(t.RegisterPercentage);r.push(t.EventValue);e.push(t.EventPercentage);u.push(CurrentLang=="en"?t.Name:t.NameAr)}),n.GetMultipleBarChartOptions(i,n.Labels.Registrations,r,n.Labels.Events,u)};n.SetRegionChartSourceRegister=function(t){var i=[],u=[],r=[];return $.each(t,function(n,t){i.push(t.RegisterValue);u.push(t.RegisterPercentage);r.push(CurrentLang=="en"?t.Name:t.NameAr)}),i.length==0?n.GetBarChartOptionsEmpty([],n.Labels.Registrations,[],f):n.GetBarChartOptions(i,n.Labels.Registrations,r,f)};n.SetRegionChartSourceEvents=function(t){var i=[],u=[],r=[];return $.each(t,function(n,t){i.push(t.EventValue);u.push(t.EventPercentage);r.push(CurrentLang=="en"?t.Name:t.NameAr)}),i.length==0?n.GetBarChartOptionsEmpty([],n.Labels.Events,[],"#0084ff"):n.GetBarChartOptions(i,n.Labels.Events,r,e)};n.SetCityGroupChartSourceRegister=function(t){var i=[],u=[],r=[];return $.each(t,function(n,t){i.push(t.RegisterValue);u.push(t.RegisterPercentage);r.push(CurrentLang=="en"?t.Name:t.NameAr)}),i.length==0?n.GetBarChartOptionsEmpty([],n.Labels.Registrations,[],"#1ab7ea"):n.GetBarChartOptions(i,n.Labels.Registrations,r,f)};n.SetCityGroupChartSourceEvents=function(t){var i=[],u=[],r=[];return $.each(t,function(n,t){i.push(t.EventValue);u.push(t.EventPercentage);r.push(CurrentLang=="en"?t.Name:t.NameAr)}),i.length==0?n.GetBarChartOptionsEmpty([],n.Labels.Events,[],"#0084ff"):n.GetBarChartOptions(i,n.Labels.Events,r,e)};n.SetEventTypeChartSource=function(t,i,r,u,f){var e=[],s=[],o=[];return $.each(t,function(n,t){e.push(t[i]);s.push(t[r]);o.push(CurrentLang=="en"?t.Name:t.NameAr)}),e.length==0?n.GetBarChartOptionsEmpty([],n.Labels[u],[],"#1ab7ea"):n.GetBarChartOptions(e,n.Labels[u],o,f)}}]);VsApp.controller("EventInitiativeController",["$scope","AuthService","$rootScope","UtilsApis","api","$stateParams","$timeout","Lookups",function(n,t,i,r,u,f,e,o){var h,s;$=jQuery;h="EventInitiative";i.CurrentPage=h;screenControlAutorization=t.getScreenActionsAuthorization(i.CurrentPage,i.addTokenToRequest,i.logoutIfForbidden);n.AllowShowDetails=t.IsPageActionAllowed("View",screenControlAutorization);n.AllowNewEventInitiative=t.IsPageActionAllowed("Add",screenControlAutorization);n.IsView=!1;n.modal={Id:0,Name:null,Description:null,Details:null,RegionId:0,CityId:0,Location:"",Latitude:null,Longitude:null,IsCenterSent:!1,EventApprovedStatus:0,IsDeleted:!1};n.YearList=o.GetRunningYears(t.RunningYearCount(n.ClientCode),i.addTokenToRequest,i.logoutIfForbidden);n.ClearSelection=function(i){return t.ClearSelection(i,n)};n.EventInitiativeYear=t.GetCurrentYear();hideShowModal=function(t,i){var r=document.getElementById(t);n.modelPopup=r;r.style.display=i==!0?"block":"none";i==!1&&ClearModal()};ClearModal=function(){n.modal.Id=null;n.modal.Name=null;n.modal.Description=null;n.modal.Details=null;n.modal.RegionId=0;n.modal.CityId=0;n.modal.Location="";n.modal.Latitude=24.7425103;n.modal.Longitude=46.6367476;n.modal.IsCenterSent=!1;n.modal.IsDeleted=!1;hideShowModal("modalDetails")};n.SearchFilters={Code:"",Name:"",EventApprovedStatus:-1,EventInitiativeYear:null};n.SearchFilters.EventInitiativeYear=n.EventInitiativeYear;s=f.id;s!=""&&s!=undefined&&(n.SearchFilters.TicketBaseId=s,n.modal.Id=s);r.getLookUp(i.utilsU+"eventsApprovedStatus/read").then(function(t){n.EventApprovedStatus=t;n.EventApprovedStatus.splice(n.EventApprovedStatus.length-1,1);n.EventApprovedStatus.splice(2,1);angular.forEach(n.EventApprovedStatus,function(n){(n.Name=="معلقة"||n.Name=="Pending")&&(n.Name=CurrentLang=="ar"?"جديد":"New");(n.Name=="معتمدة"||n.Name=="Approved")&&(n.Name=CurrentLang=="ar"?"تم استقبال الطلب":"Recievd ")})});n.ShowDetails=function(t){n.IsView=!0;ClearModal();$.each(t,function(t){n.modal[t]=null});$.each(t,function(t,i){n.modal[t]=i});n.PopupHeader=n.modal.Code;e(function(){hideShowModal("modalDetails",!0)},100)};n.GetGridData=function(){i.isLoading=!0;u.Post(i.eventsU+"getEventInitiative/",null,n.SearchFilters).then(function(t){n.dsGridData=t.Data;i.isLoading=!1},function(){i.isLoading=!1})};n.GetGridData();n.ClearSearchFiltersControls=function(){n.SearchFilters.Code=null;n.SearchFilters.Name=null;n.SearchFilters.EventApprovedStatus=-1;n.SearchFilters.EventInitiativeYear=null;n.GetGridData()};n.manageHeaders=function(i){t.manageHeaders(i,n.Labels)};n.manageHeaders("filter");n.IsPageValid=function(){return n.modal.Name==""||n.modal.Name==undefined||n.modal.Name==null?(i.showErrorMessageFromKey("AllFieldsRequired"),!1):n.modal.Description==""||n.modal.Description==undefined||n.modal.Description==null?(i.showErrorMessageFromKey("AllFieldsRequired"),!1):n.modal.Details==""||n.modal.Details==undefined||n.modal.Details==null?(i.showErrorMessageFromKey("AllFieldsRequired"),!1):n.modal.Location==""||n.modal.Location==undefined||n.modal.Location==null?(i.showErrorMessageFromKey("AllFieldsRequired"),!1):!0};n.Save=function(){u.Post(i.eventsU+"EventInitiative/manage/",null,n.modal).then(function(t){n.isSaving=!1;t.Success?(t.Data!=""&&(msg=n.Labels.EventInitiativeSavedSuccess,msg=msg.replace("@code@",t.Data),i.showSuccessMessage(msg)),setTimeout(function(){$("#submitEventInitiative").prop("disabled",!1)},5e3),i.isLoading=!1,hideShowModal("modalDetails",!1),n.SearchFilters.Id=-1,n.GetGridData()):n.modal.Id>0?i.showErrorMessage(n.Labels.ErrorUpdatingTicket):i.showErrorMessage(n.Labels.EventInitiativeSavedError)},function(){n.isSaving=!1;n.errorSaving=n.Labels.ErrorSavingData;setTimeout(function(){$("#submitEventInitiative").prop("disabled",!1)},5e3);i.isLoading=!1})};n.Submit=function(){n.IsPageValid()&&(n.modal.EventApprovedStatus=0,n.modal.IsCenterSent=!0,i.isLoading=!0,$("#submitEventInitiative").prop("disabled",!0),n.Save())};n.AddNewEventInitiative=function(){ClearModal();n.PopupHeader=n.Labels.EventInitiative;e(function(){hideShowModal("modalDetails",!0)},100)};n.CloseModal=function(){n.IsView=!1;ClearModal();hideShowModal("modalDetails",!1)}}]);VsApp.controller("EventInvitationsController",["$scope","AuthService","$rootScope","$cookies","$window","UtilsApis","$localStorage","$sce","swangular","api","$filter","Lookups","$http","$timeout",function(n,t,i,r,u,f,e,o,s,h,c,l,a,v){$=jQuery;n.ClientCode=i.ConfigKey().ClientCode;i.CurrentPage="EventInvitations";n.Invitation=null;n.InvitationRequestStatusLookup=l.InvitationRequestStatusLookup;n.invitationRequestStatuses=l.invitationRequestStatuses;n.Clientcode=i.ConfigKey().ClientCode;n.HaveDifferentLabelName=n.Clientcode=="MOH";i.isLoading=!0;h.Get(i.eventsU+"invitedEvents").then(function(t){n.Invitation=t;i.isLoading=!1},function(){i.isLoading=!1;i.showErrorMessage(n.Labels.ErrorLoadingData)});n.acceptInvitation=function(t){i.showConfirmBoxText("",function(){h.Post(i.volU+"invitation/"+t+"/accept").then(function(t){i.isLoading=!1;t&&t.Success?h.Get(n.eventsU+"invitedEvents").then(function(t){n.Invitation=t;i.showSuccessMessageFromKey("Success")}):t.Message=="UpdateRegistrationTitle"?(i.ShowUserMessage(n.Messages.UpdateRegistrationTitle,0),s.swal({title:"",text:n.Messages.UpdateRegistrationMessage,type:"info"}).then(function(){i.$state.transitionTo("EditRegistration",{id:angular.toJson(i.GetCurrentVolunteerId())})})):t&&t.Message=="expired"?i.showErrorMessageFromKey("event_expired"):t&&t.Message=="deleted"?i.showErrorMessageFromKey("event_deleted"):t&&t.Message=="OtherEventAccepted"?i.showErrorMessageFromKey("OtherEventAccepted"):t&&t.Message=="ExceededApprovalLimit"?i.showErrorMessageFromKey("ExceededApprovalLimit"):t&&t.Message=="ErrorMessageConflictEventDate"?i.showErrorMessageFromKey("ErrorMessageConflictEventDate"):i.showErrorMessageFromKey("Error_CheckEventStatus")})})};n.rejectInvitation=function(t){i.isLoading=!0;h.Post(i.volU+"invitation/"+t+"/reject").then(function(t){i.isLoading=!1;t&&t.Success?h.Get(n.eventsU+"invitedEvents").then(function(t){n.Invitation=t;i.showSuccessMessageFromKey("Success")}):t&&t.Message=="expired"?i.showErrorMessageFromKey("event_expired"):t&&t.Message=="deleted"?i.showErrorMessageFromKey("event_deleted"):i.showErrorMessageFromKey("ErrorUpdating")})};$(document).ready(function(){setInterval(function(){v(function(){h.Get(i.eventsU+"invitedEvents").then(function(t){n.Invitation=t})})},2e3)});n.cancelInvitation=function(t){if(eventInvitationId=t.EventInvitationId,eventId=t.Id,t.RequestStatusId==18)return msg=n.Labels.CancelEventRestrictMessage,msg=msg.replace("@LeadName@",t.EventLeadName),msg=msg.replace("@LeadEmail@",t.EventLeadEmail),i.showInfoMessageTextNoTitle(msg),!1;i.showConfirmBoxText(n.Labels.CancelInvitationConfirm,function(){i.isLoading=!0;h.Post(i.volU+"invitation/"+eventInvitationId+"/cancel").then(function(r){i.isLoading=!1;r&&r.Success?h.Get("/api/events/invitedEvents").then(function(t){n.Invitation=t;i.showSuccessMessageFromKey("Success")}):r&&r.Message=="expired"?i.showErrorMessageFromKey("event_expired"):r&&r.Message=="deleted"?i.showErrorMessageFromKey("event_deleted"):r&&r.Message=="ApprovedInvitationCannotCancel"?(msg=n.Labels.CancelEventRestrictMessage,msg=msg.replace("@LeadName@",t.EventLeadName),msg=msg.replace("@LeadEmail@",t.EventLeadEmail),i.showInfoMessageTextNoTitle(msg)):i.showErrorMessageFromKey("ErrorUpdating")})})};n.requestToRelease=function(t){eventInvitationId=t.EventInvitationId;i.showConfirmBoxText(n.Labels.RequestToReleaseConfirmation,function(){i.isLoading=!0;h.Post(i.volU+"invitation/"+eventInvitationId+"/RequestToRelease").then(function(t){i.isLoading=!1;t&&t.Success?h.Get("/api/events/invitedEvents").then(function(t){n.Invitation=t;i.showSuccessMessageFromKey("Success")}):i.showErrorMessageFromKey("ErrorUpdating")})})};n.contribute=function(n,t){i.$state.transitionTo("Contribution",{volunteerId:n,eventId:t,data:null})};n.printVolunteerCardWithEventInfo=function(n){i.isLoading=!0;a({method:"GET",url:"/VolunteerRegistration/VolunteerCardWithEventInfo",params:{eventId:n},responseType:"arraybuffer",headers:{AuthorizationHeader:i.GetAuthenticationToken()}}).then(function(t){var o="Volunteer_"+n+".pdf",r=document.createElement("a"),u,f,e;try{u=new Blob([t.data],{type:"application/octet-stream"});f=window.URL.createObjectURL(u);r.setAttribute("href",f);r.setAttribute("download",o);e=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});r.dispatchEvent(e);i.isLoading=!1}catch(s){i.isLoading=!1;console.log(s)}},function(n){console.log(n);i.isLoading=!1})}}]);VsApp.controller("EventsInfoController",["$scope","AuthService","$rootScope","$cookies","$window","UtilsApis","$localStorage","api","Lookups",function(n,t,i,r,u,f,e,o,s){n.AllEvents=[];i.CurrentPage="EventsInfo";i.isLoading=!0;n.errorLoading=null;n.FrontButton=1;n.BackButton=1;n.DefaultImage="../../TemplateScripts/assets/images/default"+i.ConfigKey().ClientCode+".png";n.Cities=[];o.Get(i.utilsU+"citiesRegistration/read").then(function(t){arr=[];jQuery.each(t,function(n,t){var i={Id:t.Id,Name:CurrentLang=="ar"?t.NameAr:t.Name,RegionId:t.RegionId};arr.push(i)});n.Cities=arr});n.Regions=[];o.Get(i.utilsU+"regionsRegistration/read").then(function(t){arr=[];obj=t.filter(function(n,t){return t.Id!=16});jQuery.each(obj,function(n,t){var i={Id:t.Id,Name:CurrentLang=="ar"?t.NameAr:t.Name};arr.push(i)});n.Regions=arr});n.EventTypes=[];o.Get(i.eventsU+"EventTypes/read").then(function(t){arr=[];jQuery.each(t,function(n,t){var i={Id:t.Id,Name:CurrentLang=="ar"?t.NameAr:t.Name};arr.push(i)});n.EventTypes=arr});n.SearchFilters={PageNo:0,StatusId:-1,PreviousStatusId:-2,StartFrom:1,EndAt:5,TotalPages:5,AllPages:0,TotalEvents:50,CurrentPagePosition:1,RegionId:-1,CityId:-1,PreviousRegionId:-2,PreviousCityId:-2,EventTypeId:-1,PreviousEventTypeId:-2};n.EventStatusData=s.EventStatusData;n.SetFirstPage=function(){n.SearchFilters.PageNo=1};n.SetLastPage=function(){n.SearchFilters.PageNo=n.SearchFilters.AllPages};n.ClearControls=function(){n.SearchFilters.PageNo=0;n.SearchFilters.StatusId=-1;n.SearchFilters.PreviousStatusId=-2;n.SearchFilters.StartFrom=1;n.SearchFilters.EndAt=5;n.SearchFilters.TotalPages=5;n.SearchFilters.AllPages=0;n.SearchFilters.TotalEvents=50;n.SearchFilters.CurrentPagePosition=1;n.SearchFilters.RegionId=-1;n.SearchFilters.CityId=-1;n.SearchFilters.PreviousRegionId=-2;n.SearchFilters.PreviousCityId=-2;n.SearchFilters.EventTypeId=-1;n.SearchFilters.PreviousEventTypeId=-2;n.GetEvents(1)};n.GetEvents=function(t){(n.SearchFilters.PageNo!=t||n.SearchFilters.PreviousStatusId!=n.SearchFilters.StatusId||n.SearchFilters.PreviousRegionId!=n.SearchFilters.RegionId||n.SearchFilters.PreviousCityId!=n.SearchFilters.CityId||n.SearchFilters.PreviousEventTypeId!=n.SearchFilters.EventTypeId)&&(n.SearchFilters.PageNo=t,n.SearchFilters.PreviousStatusId=n.SearchFilters.StatusId,n.SearchFilters.PreviousRegionId=n.SearchFilters.RegionId,n.SearchFilters.PreviousCityId=n.SearchFilters.CityId,n.SearchFilters.PreviousEventTypeId=n.SearchFilters.EventTypeId,o.Get(i.utilsU+"home/events/eventsCountWithRegionsCities/"+n.SearchFilters.StatusId+"/"+n.SearchFilters.RegionId+"/"+n.SearchFilters.CityId+"/"+n.SearchFilters.EventTypeId).then(function(t){n.SearchFilters.TotalEvents=t;n.SearchFilters.TotalPages=n.SearchFilters.TotalEvents/12;n.SearchFilters.AllPages=arrayFromRange(n.SearchFilters.StartFrom,n.SearchFilters.TotalPages)}),o.Get(i.utilsU+"home/events/eventsbyPageWithRegionsCities/"+n.SearchFilters.PageNo+"/"+n.SearchFilters.StatusId+"/"+n.SearchFilters.RegionId+"/"+n.SearchFilters.CityId+"/"+n.SearchFilters.EventTypeId).then(function(t){i.isLoading=!1;for(var r=0;r<t.length;r++)t[r].Description=strip(t[r].Description,240)+"...";n.AllEvents=t},function(){i.isLoading=!1;i.showErrorMessage(n.Labels.ErrorMessage)}))};n.GetEvents(1);n.eventsInfoDetails=function(n){i.$state.transitionTo("EventsInfoDetails",{id:n,data:null})};n.SwitchCalendar=function(){i.$state.transitionTo("EventsCalendar")};n.joinEvent=function(t){i.IsLoggedIn()?i.IsVolunteer()?o.Post(i.utilsU+"home/events/addeventjoinrequest/"+t.Id).then(function(n){n.Success?(i.showSuccessMessageFromKey(n.Message),t.IsJoined=!0):i.showInfoMessageFromKey(n.Message)}):i.showVolunteerMessage(n.Labels.YouMustBeVolunteer):i.ShowLoginMessage(n.Labels.YouMustLogIn)}}]);VsApp.controller("EventsInfoDetailsController",["$scope","AuthService","$rootScope","$cookies","$window","UtilsApis","$localStorage","api","$stateParams",function(n,t,i,r,u,f,e,o,s){n.eventDetails=null;i.CurrentPage="EventsInfoDetails";i.isLoading=!0;n.errorLoading=null;n.myMap=null;n.labels=i.Labels;n.id=s.id;n.DefaultImage="../../TemplateScripts/assets/images/default"+i.ConfigKey().ClientCode+".png";n.mapOptions={center:new google.maps.LatLng(24,45),zoom:15,mapTypeId:google.maps.MapTypeId.ROADMAP};o.Get(i.utilsU+"home/events/eventdetails/"+n.id).then(function(t){i.isLoading=!1;n.eventDetails=t;n.mapOptions.center=new google.maps.LatLng(t.Latitude,t.Longitude)},function(){i.isLoading=!1;i.showErrorMessage(n.Labels.ErrorMessage)});o.Post(i.eventsU+"GetJoinedCount/"+n.id).then(function(t){t.Success!=!1&&(n.Counter=t)},function(){});n.onMapIdle=function(){var t,i;n.eventDetails!=null&&(t=new google.maps.LatLng(n.eventDetails.Latitude,n.eventDetails.Longitude),n.mapOptions.center=t,i=new google.maps.Marker({position:t,map:n.myMap,icon:{path:"M0-48c-9.8 0-17.7 7.8-17.7 17.4 0 15.5 17.7 30.6 17.7 30.6s17.7-15.4 17.7-30.6c0-9.6-7.9-17.4-17.7-17.4z",rotation:0,strokeOpacity:.9,scale:.75,anchor:new google.maps.Point(16,16),fillColor:"red",fillOpacity:.9,zIndex:1e3,strokeColor:"black"}}),function(n,t){google.maps.event.addListener(n,"click",function(){window.open("https://www.google.com/maps?ll="+t.Latitude+","+t.Longitude+"&z=15&t=m&hl=en-US&gl=SA&mapclient=embed&daddr=,@"+t.Latitude+","+t.Longitude)})}(i,n.eventDetails),n.myMap.setCenter(t))};n.joinEvent=function(t){i.IsLoggedIn()?i.IsVolunteer()?o.Post(i.utilsU+"home/events/addeventjoinrequest/"+t.Id).then(function(n){n.Success?(i.showSuccessMessageFromKey(n.Message),t.IsJoined=!0):i.showErrorMessageFromKey(n.Message)}):i.showVolunteerMessage(n.Labels.YouMustBeVolunteer):i.ShowLoginMessage(n.Labels.YouMustLogIn)}}]);VsApp.controller("EventSurveyController",["$scope","AuthService","$rootScope","api","$stateParams","$location",function(n,t,i,r,u,f){function s(n){var t={token:n};return r.Post(i.surU+"checkVolunteersEventsParticipations",t,null)}var o,e;$=jQuery;n.SelectedFiles=[];o="SurveyController";i.CurrentPage=o;i.isLoading=!0;n.errorLoading=null;n.thankYou=!1;e=f.search().token;e&&e!=""||n.$state.transitionTo(LoginState);s(e).then(function(t){if(n.AlreadyParticipated=!t.Success&&t.Message=="AlreadyParticipated",n.CannotParticipate=!t.Success&&t.Message=="CannotParticipate",!n.AlreadyParticipated&&!n.CannotParticipate){var t={token:e};r.Get(i.surU+"getEventsSurveyQuestions",t,null).then(function(t){n.Questions=t;i.isLoading=!1},function(){i.isLoading=!1;i.showErrorMessageFromKey("error_occured")})}i.isLoading=!1},function(){i.isLoading=!1;i.showErrorMessageFromKey("error_occured")});n.Validate=function(){var t=!0;return n.Questions.forEach(function(n){n.SelectedAnswer<=0&&(t=!1)}),t};n.SubmitAnswers=function(){if(n.Validate()){var t={token:e};r.Post(i.surU+"submitEventSurvey/",t,n.Questions).then(function(t){n.isSaving=!1;t.Success?(i.showSuccessMessage(n.Labels.Successfully),n.thankYou=!0,n.AlreadyParticipated=!0):i.showErrorMessage(n.Labels[t.Message])},function(){n.isSaving=!1;n.errorSaving=n.Labels.ErrorSavingData})}else i.showErrorMessageFromKey("AnswerAllQuestions")}}]);VsApp.controller("EventTypesController",["$scope","AuthService","$rootScope","Lookups",function(n,t,i,r){function f(t,i){$('<input id ="groupRegionsDropDownList" required="required" data-val-required="true" name="eveTypeGrps" data-bind="value:'+i.field+'"/>').appendTo(t).kendoDropDownList({dataValueField:"grpId",dataTextField:"Name",change:function(){},dataSource:n.EventTypeGroupsLookupDS,valuePrimitive:!0}).data("kendoDropDownList")}$=jQuery;var u="EventTypes";i.CurrentPage=u;n.selectedRows=undefined;n.EventTypeGroupsLookupDS=r.GetEventTypeGroupsDS();n.eventTypesDataSource=new kendo.data.DataSource({transport:{read:{url:"/EventTypesAdmin/EventTypes_Read",dataType:"json",beforeSend:i.addTokenToRequest,complete:i.logoutIfForbidden},update:{url:"/EventTypesAdmin/EventTypes_Update",contentType:"application/json; charset=utf-8",dataType:"json",type:"POST",beforeSend:i.addTokenToRequest,complete:i.logoutIfForbidden},destroy:{url:"/EventTypesAdmin/EventTypes_Destroy",contentType:"application/json; charset=utf-8",dataType:"json",type:"POST",beforeSend:i.addTokenToRequest,complete:i.logoutIfForbidden},create:{url:"/EventTypesAdmin/EventTypes_Create",dataType:"json",contentType:"application/json; charset=utf-8",type:"POST",beforeSend:i.addTokenToRequest,complete:i.logoutIfForbidden},parameterMap:function(n,t){if(t!=="read"&&n.models)return JSON.stringify({eventTypes:n.models})}},batch:!0,pageSize:20,serverPaging:!1,schema:{data:"Data",total:"Total",model:{id:"Id",fields:{Id:{editable:!1,nullable:!1,defaultValue:0},Name:{validation:{custom:function(t){return t.attr("data-bind")=="value:Name"?(t.attr("data-custom-msg",n.Labels.InputTextValidation),!isBlank(t.val())):!0}},type:"string"},NameAr:{validation:{custom1:function(t){return t.attr("data-bind")=="value:NameAr"?(t.attr("data-custom1-msg",n.Labels.InputTextValidation),!isBlank(t.val())):!0}},type:"string"},EventTypeGroupId:{validation:{groupRegionsValidation:function(n){return n.is("[name='eveTypeGrps']")&&!n.val()?!1:!0}},type:"string"}}},errors:"Errors"},error:function(n){i.gridOnError(n,this);this.cancelChanges()}});n.screenControlAutorization=t.getScreenActionsAuthorization(u,i.addTokenToRequest,i.logoutIfForbidden);n.screenControlAutorization!=null&&n.screenControlAutorization!=undefined&&n.eventTypesDataSource.read();i.CurrentPage="";n.eventTypesGridOptions={autoBind:!1,dataSource:n.eventTypesDataSource,selectable:"row",resizable:!0,scrollable:!0,sortable:!0,filterable:!0,reorderable:!0,columnMenu:!0,pageable:{refresh:!0,input:!0,numeric:!1,pageSizes:[10,20,30,50,75,100,500,1e3]},columns:[{field:"Name",title:n.Labels.Name,width:200},{field:"NameAr",title:n.Labels.NameAr,width:69},{field:"EventTypeGroupId",title:n.Labels.EventTypeGroups,editor:f,values:n.EventTypeGroupsLookupDS.data().toJSON(),width:"100px",type:"String"},{command:[{name:"edit",text:i.Labels.ActionsEditRecord},{name:"destroy",text:i.Labels.ActionsRemoveRecord}],title:"&nbsp;",width:"120px"}],editable:"popup",toolbar:[{name:"create",text:i.Labels.ActionsAddRecord}],edit:function(t){var r=$(t.container.data("kendoWindow")),i;n.updateGridPopupActionsText(t);t.container.data("kendoWindow").bind("activate",function(){$(r).attr("element").find("input:first").focus()});t.model.isNew()&&(t.container.data("kendoWindow").title(n.Labels.AddNewEventType),i=$(t.container).find(".k-grid-update"),i.html(n.Labels.Submit))},change:function(){n.selectedRows=this.select()},save:function(n){var t=$(n.container).find(".k-grid-update");t.hasClass("k-state-disabled")?n.preventDefault():t.addClass("k-state-disabled")},dataBound:function(){t.setControlsAuthorization(this.element,n.screenControlAutorization)}}}]);VsApp.controller("FaqController",["$scope","$rootScope","api","$stateParams","$sce",function(n,t,i,r,u){$=jQuery;n.FaqData=null;t.isLoading=!0;n.errorLoading=null;n.FaqData=r.FaqData;n.id=0;n.processData=function(){n.FaqData.JContent=!n.FaqData.Content?{MainImage:"",Header:{en:"",ar:""},Content:{en:"",ar:""}}:JSON.parse(n.FaqData.Content);n.FaqData.JContent.MainImage=t.AdminUrl().replace("#!/","")+n.FaqData.JContent.MainImage};i.Get(t.utilsU+"home/Faq").then(function(i){console.log(i);n.FaqData=i||{};n.processData();t.isLoading=!1},function(){t.isLoading=!1;t.showErrorMessageFromKey("error_occured")});n.trust=function(n){return u.trustAsHtml(n)}}]);VsApp.controller("FirstResponderController",["$scope","AuthService","$rootScope","$cookies","$window","UtilsApis","$localStorage","$sce","api","$stateParams","Lookups",function(n,t,i,r,u,f,e,o,s,h,c){function l(t){s.Get(i.volU+"GetSRCAEmployeeDetails/"+t).then(function(t){t!=null&&(n.SRCAEmployeeDetails=t)},function(){})}$=jQuery;i.CurrentPage="FirstResponder";n.errorLoading=null;n.mixAllowedTypes=c.mixAllowedTypes;n.IsEditable=!0;n.IsRegistration=!0;n.IsUpdation=!1;n.isSRCAEmployee=!1;n.isSRCAEmployeeRequest=!1;n.SRCAEmployeeDetails=null;n.IsVolunteer()&&s.Get(i.volU+"CheckSRCAEmployee").then(function(t){n.isSRCAEmployee=t},function(){});h.id?s.Get(i.resU+"registration/"+h.id).then(function(t){n.IsEditable=!1;t.CertificateExpiryDate=new Date(t.CertificateExpiryDate);n.FirstResponder=t;n.FirstResponder.HaveBLS=!0;l(n.FirstResponder.VolunteerId)},function(){n.isLoading=!1;n.errorLoading=n.Labels.ErrorLoadingData;n.IsEditable=!1}):s.Get(i.resU+"registration/0").then(function(t){t&&(t.CertificateExpiryDate=new Date(t.CertificateExpiryDate),n.FirstResponder=t,n.FirstResponder.HaveBLS=!0,n.IsUpdation=!0,n.IsRegistration=!1)},function(){n.isLoading=!1;n.errorLoading=n.Labels.ErrorLoadingData});n.FirstResponder={VolunteerId:h.id,CertificateExpiryDate:"",IsApproved:0,Data:null,FileName:""};n.formats=["yyyy-MM-dd","dd-MMMM-yyyy","dd.MM.yyyy","shortDate"];n.dateFormat=n.formats[0];n.altInputFormats=["M!/d!/yyyy"];n.TodaysDate=function(){var n=new Date;return n.setDate(n.getDate()+1)};n.dateToday=n.TodaysDate();n.dateOptions={formatYear:"yyyy",maxDate:new Date(2030,5,22),minDate:n.dateToday,startingDay:1,todayBtn:!1,clearBtn:!1,showButtonBar:!1};n.expiryDatePopup={opened:!1};n.expiryDatePopupOpen=function(){n.expiryDatePopup.opened=!0};n.save=function(){if(n.IsUpdation)if(n.FirstResponder)if((n.FirstResponder.Data||n.FirstResponder.Id)&&n.FirstResponder.MaxReached!=!0&&n.FirstResponder.ImageTypeError!=!0&&n.FirstResponder.HaveBLS)i.showConfirmBox("NoRevertMsg",function(){n.isLoading=!0;n.isSaving=!0;n.errorSaving=null;s.Post(i.resU+"updateRequestResponder",null,n.FirstResponder).then(function(t){n.isLoading=!1;n.isSaving=!1;t.Success?i.showSuccessMessage(n.Labels.SuccessfullyAdded):i.showErrorMessage(n.Labels[t.Message],!1)},function(){n.isLoading=!1;n.isSaving=!1;i.showErrorMessage(n.Labels.ErrorSavingData)})});else{i.showErrorMessage(n.Labels.GenericFillFormError,!1);return}else{i.showErrorMessage(n.Labels.GenericFillFormError,!1);return}else if(n.FirstResponder)if((n.FirstResponder.Data||n.FirstResponder.Id)&&n.FirstResponder.MaxReached!=!0&&n.FirstResponder.ImageTypeError!=!0&&n.FirstResponder.HaveBLS)n.isLoading=!0,n.isSaving=!0,n.errorSaving=null,s.Post(i.resU+"requestResponder",null,n.FirstResponder).then(function(t){n.isLoading=!1;n.isSaving=!1;t.Success?i.showSuccessMessage(n.Labels.SuccessfullyAdded):i.showErrorMessage(n.Labels[t.Message],!1)},function(){n.isLoading=!1;n.isSaving=!1;i.showErrorMessage(n.Labels.ErrorSavingData)});else{i.showErrorMessage(n.Labels.GenericFillFormError,!1);return}else{i.showErrorMessage(n.Labels.GenericFillFormError,!1);return}};n.saveSRCA=function(){n.isLoading=!0;n.isSaving=!0;n.errorSaving=null;n.FirstResponder.Data=0;n.FirstResponder.MaxReached=!1;n.FirstResponder.MixTypeError=!1;n.FirstResponder.HaveBLS=!0;s.Post(i.resU+"requestResponder",null,n.FirstResponder).then(function(t){n.isLoading=!1;n.isSaving=!1;t.Success?(n.IsRegistration=!1,n.FirstResponder.HaveBLS=!0,n.FirstResponder.IsApproved=!1,n.FirstResponder.ApprovedBy=0,n.IsUpdation=!0,i.showSuccessMessage(n.Labels.SuccessfullyAdded)):i.showErrorMessage(n.Labels[t.Message],!1)},function(){n.isLoading=!1;n.isSaving=!1;i.showErrorMessage(n.Labels.ErrorSavingData)})}}]);VsApp.controller("ForceChangePasswordController",["$scope","AuthService","$rootScope","$cookies","$window","UtilsApis","$localStorage","$sce","api","$stateParams",function(n,t,i,r,u,f,e,o,s,h){var l,c,a;$=jQuery;l="ChangePassword";i.CurrentPage=l;n.IsStrong=!1;c=new RegExp("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*+(){}?~`=.<>-])(?=.{8,})");a=new RegExp("^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})");n.checkpwdStrength={width:"150px",height:"25px",float:"right"};n.validationInputPwdText=function(t){c.test(t)?(n.IsStrong=!0,n.checkpwdStrength["background-color"]="green",pwdStrength.innerHTML=n.Labels.Strong):a.test(t)?(n.checkpwdStrength["background-color"]="orange",pwdStrength.innerHTML=n.Labels.Medium,n.IsStrong=!1):(n.checkpwdStrength["background-color"]="red",pwdStrength.innerHTML=n.Labels.Weak,n.IsStrong=!1)};n.checkPasswords=function(){n.confirmPassword&&(n.newPassword!=n.confirmPassword?(n.IsCompare=!1,pwdCompare.innerHTML="Password and Confirm passwords does not match"):(pwdCompare.innerHTML="",n.IsCompare=!0))};n.errorLoading=null;n.id=h.id;n.updatePassword=function(){if(c.test(n.newPassword)){if(n.confirmPassword)if(n.newPassword==n.confirmPassword){i.isLoading=!0;var t={userId:n.id,oldPassword:n.oldPassword,newPassword:window.btoa(n.newPassword)};s.Post(i.usrU+"UpdateNewPassword/",null,t).then(function(t){i.isLoading=!1;t==!0?(i.showSuccessMessageFromKey("success_save"),n.$state.transitionTo(LoginState)):i.showErrorMessageFromKey("error_occured")},function(){i.isLoading=!1;i.showErrorMessageFromKey("error_occured")})}else pwdCompare.innerHTML="Password and Confirm passwords does not match"}else pwdCompare.innerHTML="Please make a strong password"}}]);VsApp.controller("GeneralSurveyQuestionnaireController",["$scope","AuthService","$rootScope","api","$stateParams",function(n,t,i,r,u){var o,f,e;$=jQuery;n.SelectedFiles=[];o="GeneralSurvey";i.CurrentPage=o;i.isLoading=!0;n.errorLoading=null;n.thankYou=!1;n.SearchFilters={Code:"",Title:"",DepartmentId:null,CurrentStatus:-1,SurveyBaseId:null,Token:null};f=u.Id;f!=""&&f!=undefined&&(n.SearchFilters.SurveyBaseId=f);e=decodeURIComponent(u.tkn);e!=""&&e!=undefined&&(n.SearchFilters.Token=e);n.Questions={QuestionId:0,QuestionTypeId:0,QuestionAr:null,QuestionEn:null};n.QuestionList=[];n.AnswerList=[];n.FilterQuestion=function(i){$.map(i,function(t,r){i[r].QuestionId&&(obj={QuestionId:0,QuestionTypeId:0,QuestionAr:null,QuestionEn:null,SelectedAnswer:0,InputAnswer:null,SurveyBaseId:n.SearchFilters.SurveyBaseId,Token:n.SearchFilters.Token},obj.QuestionId=t.QuestionId,obj.QuestionTypeId=t.QuestionTypeId,obj.QuestionAr=t.QuestionAr,obj.QuestionEn=t.QuestionEn,n.QuestionList.push(obj))});n.QuestionList=t.RemoveDuplicatesFromObject(n.QuestionList,"QuestionId")};n.FilterAnswers=function(t){$.map(t,function(i,r){t[r].AnswerId&&(obj={AnswerId:0,QuestionId:0,QuestionTypeId:0,AnswerAr:null,AnswerEn:null},obj.AnswerId=i.AnswerId,obj.QuestionId=i.QuestionId,obj.QuestionTypeId=i.QuestionTypeId,obj.AnswerAr=i.AnswerAr,obj.AnswerEn=i.AnswerEn,n.AnswerList.push(obj))})};n.CheckVolunteerParticipatationInGeneralSurvey=function(){r.Post(i.gsurU+"CheckVolunteerParticipatationInGeneralSurvey",null,n.SearchFilters).then(function(t){t.Data==!0&&(n.AlreadyParticipated=!0,n.thankYou=!1)},function(){i.isLoading=!1})};n.CheckVolunteerParticipatationInGeneralSurvey();n.GetQuestionnaire=function(){i.isLoading=!0;r.Post(i.gsurU+"GetGeneralSurveyQuestionnaire",null,n.SearchFilters).then(function(t){n.dsQuestionnaire=t.Data;n.dsQuestionnaire.length>0&&(n.FilterQuestion(t.Data),n.FilterAnswers(t.Data));i.isLoading=!1},function(){i.isLoading=!1})};n.GetQuestionnaire();n.Validate=function(){var t=!0;return n.QuestionList.forEach(function(n){return n.QuestionTypeId==1&&n.SelectedAnswer==0?(t=!1,!1):n.QuestionTypeId==2&&n.InputAnswer==null?(t=!1,!1):void 0}),t};n.SetSelectedAnswer=function(t){n.QuestionList.forEach(function(n){n.QuestionId==t.QuestionId&&(n.SelectedAnswer=t.AnswerId)})};n.SubmitAnswers=function(){n.Validate()?r.Post(i.gsurU+"SubmitGeneralSurveyAnswers",null,n.QuestionList).then(function(t){n.isSaving=!1;t.Data.Success?(i.showSuccessMessage(n.Labels.SucessfullySavedSurvey),n.thankYou=!0,n.AlreadyParticipated=!0,i.GetUserNotifications()):i.showErrorMessage(n.Labels[t.Message])},function(){n.isSaving=!1;n.errorSaving=n.Labels.ErrorSavingData}):i.showErrorMessageFromKey("AnswerAllQuestions")}}]);VsApp.controller("HomeController",["$scope","AuthService","$rootScope","$cookies","$window","UtilsApis","$localStorage","$sce","api","$timeout","$stateParams","$state","swangular",function(n,t,i,r,u,f,e,o,s,h,c,l,a){var p,y,k,v,w,b;if($=jQuery,p="Home",i.CurrentPage=p,n.ClientCode=i.ConfigKey().ClientCode,n.HaveDepartmentAndCode=n.ClientCode=="MOH",(n.ClientCode==""||n.ClientCode==null||n.ClientCode==undefined)&&(n.ClientCode=readCookie("ClientCode")),n.getClientCode=function(){return n.ClientCode},slidePath="../../Content/Images/"+n.ClientCode+"/slide",name330="_330.jpg",name428="_428.jpg",name750="_750.jpg",name900="_900.jpg",name1400="_1400.jpg",name1920="_1920.jpg",n.ClientCode=="SRCA")for(y=1;y<8;++y)n["Slid"+y+"Source"]=slidePath+y+".jpg",n["slide"+y+"_330"]=slidePath+y+name330,n["slide"+y+"_428"]=slidePath+y+name428,n["slide"+y+"_750"]=slidePath+y+name428,n["slide"+y+"_900"]=slidePath+y+name900,n["slide"+y+"_1400"]=slidePath+y+name1400,n["slide"+y+"_1920"]=slidePath+y+name1920;else n.Slid1Source="../../Content/Images/"+n.ClientCode+"/slid1.jpg",n.Slid2Source="../../Content/Images/"+n.ClientCode+"/slid2.jpg",n.Slid3Source="../../Content/Images/"+n.ClientCode+"/MOHslide5.png";n.androidSource="../../Content/Images/android.png";n.IOSSource="../../Content/Images/IOS.png";n.GetImageSource=function(t){return(width=$(window).width(),width<428)?n["slide"+t+"_330"]:width>=428&&width<750?n["slide"+t+"_428"]:width>=750&&width<900?n["slide"+t+"_750"]:width>=900&&width<1400?n["slide"+t+"_900"]:width>=1400&&width<1920?n["slide"+t+"_1400"]:width>=1920?n["slide"+t+"_1920"]:void 0};k=6;window.loginData&&(n.Messages={UpdateRegistrationTitle:i.GetResource("UpdateRegistrationTitle"),UpdateRegistrationMessage:i.GetResource("UpdateRegistrationMessage_"+n.ClientCode)},v=window.loginData,w=!0,v.LoginStatus==i.EnumUserLoginStatus.Success?(i.isLoginScreen=!1,w&&i.createLocalStorageTicket(v,v.UserName),angular.toJson(v.IsRegistrationComplete)=="false"&&(i.ShowUserMessage(n.Messages.UpdateRegistrationTitle,0),a.swal({title:"",text:n.Messages.UpdateRegistrationMessage,type:"info"}),b=l.href("EditRegistration",{id:angular.toJson(v.VolunteerInfoId)}),window.open(b,"_self")),n.CreateTicket(v.Token,angular.toJson(v.RoleId),angular.toJson(v.UserRoleId)),r.put("UserName",angular.toJson(v.UserName)),r.put("UserId",angular.toJson(v.UserId)),r.put("VolunteerInfoId",angular.toJson(v.VolunteerInfoId)),r.put("Name",angular.toJson(v.Name)),r.put("UserRoleId",angular.toJson(v.UserRoleId)),r.put("IsUserNICValid",angular.toJson(v.IsUserNICValid)),r.put("IsRegistrationComplete",angular.toJson(v.IsRegistrationComplete)),i.isLoading=!1,window.loginData=null,n.$state.transitionTo(DashboardState)):(i.isLoading=!1,v.nationalId?(i.IamId=v.nationalId,r.put("nationalId",angular.toJson(v.nationalId)),r.put("arabicName",angular.toJson(v.arabicName)),r.put("englishName",angular.toJson(v.englishName)),r.put("dobHijri",angular.toJson(v.dobHijri)),r.put("dob",angular.toJson(v.dob)),r.put("arabicNationality",angular.toJson(v.arabicNationality)),r.put("nationality",angular.toJson(v.nationality)),r.put("arabicFirstName",angular.toJson(v.arabicFirstName)),r.put("englishFirstName",angular.toJson(v.englishFirstName)),r.put("arabicFamilyName",angular.toJson(v.arabicFamilyName)),r.put("englishFamilyName",angular.toJson(v.englishFamilyName)),r.put("iqamaExpirationDateH",angular.toJson(v.iqamaExpirationDateH)),r.put("iqamaExpirationDateG",angular.toJson(v.iqamaExpirationDateG)),n.$state.transitionTo(RegistrationState)):n.$state.transitionTo(LoginState)));n.trust=function(n){return o.trustAsHtml(n)};n.status={VGoalsOpen:!0};n.isLoading=!0;n.errorLoading=null;n.loadingGallery=!0;n.loadingYouTube=!0;n.loadingPastEvents=!0;n.loadingUpcomingEvents=!0;n.loadingRecentNews=!0;n.loadingVIPVolunteers=!0;n.status={VGoalsOpen:!0};n.today=new Date;n.GoTo=function(t){i.isLoading=!0;n.$state.transitionTo(t);i.isLoading=!1};s.Get(i.utilsU+"home/news/some/4").then(function(t){n.News=t;n.News.forEach(function(n){n.JContent=!n.Content?null:JSON.parse(n.Content);n.JContent&&(n.JContent.Header[CurrentLang]=n.JContent.Header[CurrentLang].substr(0,80)+"...",n.JContent.Content[CurrentLang]=strip(n.JContent.Content[CurrentLang],250))});n.loadingRecentNews=!1},function(){n.loadingRecentNews=!1});n.trustSrc=function(n){return o.trustAsResourceUrl(n)};n.eventsInfoDetails=function(n){i.$state.transitionTo("PrivateEventsInfoDetails",{id:n,data:null})};n.getNumber=function(n){return new Array(n)};n.GetEventList=function(t,i,r,u,f){s.Get(Resources.urls.privateEventsbyPageWithRegionsCitiesSQL+1+"/"+t+"/0/0/0/"+i+"/0/0/-1/0/allEvent").then(function(t){if(t.length>0){for(var i=0;i<t.length;i++)t[i].Description=strip(t[i].Description.replace(/(\r\n|\n|\r)/gm,""),f)+"...",t[i].Name=strip(t[i].Name.replace(/(\r\n|\n|\r)/gm,""),u)+"...";n[r]=t;n.loadingUpcomingEvents=!1}else n[r]=[]},function(){n.loadingUpcomingEvents=!1})};n.GetEventList(0,4,"UpComingEvents",90,90);n.GetEventList(2,4,"OngoingEvents",20,90);n.newsMoreInfo=function(n){i.$state.transitionTo("NewsDetails",{id:n,data:null})};n.joinEvent=function(t){i.IsLoggedIn()?i.IsVolunteer()?s.Post(i.utilsU+"home/events/addeventjoinrequest/"+t.Id).then(function(n){n.Success?(i.showSuccessMessageFromKey(n.Message),t.IsJoined=!0):i.showErrorMessageFromKey(n.Message)}):i.showVolunteerMessage(n.Labels.YouMustBeVolunteer):i.ShowLoginMessage(n.Labels.YouMustLogIn)};n.eventsInfoDetails=function(n){i.$state.transitionTo("PrivateEventsInfoDetails",{id:n,data:null})};loadVsSlider();owl_carousel();n.GetImage=function(n){return n.ImageFileId!=null?i.utilsU+"DownloadEventInfo/"+n.ImageFileId:"../../Content/Images/"+i.ConfigKey().ClientCode+"/default.png"}}]);VsApp.controller("ImageGalleryController",["$scope","AuthService","$rootScope","$cookies","$window","UtilsApis","$localStorage","api","$sce","swangular","$timeout",function(n,t,i,r,u,f,e,o,s,h,c){$=jQuery;i.CurrentPage="ImageGallery";n.AllImages=[];i.isLoading=!0;n.errorLoading=null;n.LoadImages=function(){lightbox();o.Get(i.utilsU+"home/imagegallery/all/150").then(function(t){i.isLoading=!1;n.AllImages=t;c(function(){lightbox()},15)},function(){i.isLoading=!1;i.showErrorMessage(n.Labels.ErrorMessage)})};n.LoadImages();n.youtubeUrl={Id:"",English:"",Arabic:""};o.Get(i.utilsU+"home/videoUrl/loadUrl").then(function(t){n.youtubeUrl=t},function(){});n.saveUrl=function(){i.isLoading=!0;o.Post(i.utilsU+"home/videoUrl/add",null,n.youtubeUrl).then(function(n){i.isLoading=!1;n.Success?i.showSuccessMessageFromKey("success_save"):i.showErrorMessageFromKey("error_occured")},function(){i.isLoading=!1;i.showErrorMessage(n.Labels.ErrorMessage)})};n.trustSrc=function(n){return s.trustAsResourceUrl(n)};n.deleteImage=function(t){h.swal({title:n.Labels.AreYouSure,text:n.Labels.NoRevertMsg,type:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:n.Labels.YesDelete}).then(r=>{r&&(i.isLoading=!0,o.Post(i.utilsU+"home/imagegallery/deleteImage/"+t,null,null).then(function(t){i.isLoading=!1;t.Success?(i.showSuccessMessage("DeletedSuccessfully"),n.LoadImages()):i.showErrorMessage("cannot_delete_message")},function(){i.isLoading=!1;i.showErrorMessage(n.Labels.ErrorMessage)}))})};n.onCurrImageUpload=function(){n.LoadImages()};n.newsMoreInfo=function(n){i.$state.transitionTo("NewsDetails",{id:n,data:null})}}]);VsApp.controller("InstanceController",["$rootScope","$uibModalInstance","$scope","api",function(n,t,i,r){i.labels=i.Labels=n.Labels;i.settings={ConfirmNewPassword:"",Password:"",ReceiveEmail:!0,ReceiveSms:!0,PreferredLanguage:0,OldPassword:""};i.isLoading=!1;i.savePreferences=function(){i.settings.Password=null;i.settings.ConfirmNewPassword=null;i.settings.OldPassword=null;i.isLoading=!0;r.Post(n.usrU+"updatePreferences",null,i.settings).then(function(t){i.isLoading=!1;t?n.showSuccessMessageFromKey("PreferencesSavedSucessfully"):n.showErrorMessage(n.Labels.GenericErrorMessage)},function(){i.isLoading=!1;n.showErrorMessage(n.Labels.GenericErrorMessage)});t.close(i.data)};var u=new RegExp("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*+(){}?~`=.<>-])(?=.{8,})");i.resetPassword=function(){i.settings.Password&&i.settings.ConfirmNewPassword?u.test(i.settings.Password)?(i.isLoading=!0,r.Post(n.usrU+"updatePassword",null,i.settings).then(function(t){i.isLoading=!1;t?(n.showSuccessMessageFromKey("PasswordChangesSuccessfully"),n.Logout()):n.showErrorMessage(n.Labels.error_ValidPasswordRequired)},function(){i.isLoading=!1;n.showErrorMessage(n.Labels.GenericErrorMessage)}),t.close(i.data)):n.showErrorMessage(n.Labels.strong_password):n.showErrorMessage(n.Labels.PasswordRequired)};i.cancel=function(){t.dismiss("cancel")};r.Get(n.utilsU+"preferences").then(function(n){n&&n.RequestSucceeded&&(i.settings=n)})}]);VsApp.controller("JoinEventController",["$scope","AuthService","$rootScope","$cookies","$window","UtilsApis","$localStorage","api","$stateParams","swangular",function(n,t,i,r,u,f,e,o,s){i.CurrentPage="JoinEvent";n.Details=null;n.errorLoading=null;n.isAlreadyJoined=null;n.erroMessage=null;s.id?o.Get(i.utilsU+"home/events/eventfulldetails/"+s.id).then(function(t){t&&!t.Attachments.Data.startsWith("data:")&&(t.Attachments.Data="data:image/jpeg;base64,"+t.Attachments.Data);n.Details=t},function(){i.showErrorMessage(n.Labels.ErrorMessage);n.errorLoading=n.Labels.ErrorLoadingData}):i.showErrorMessage(n.Labels.InvalidEvent,function(){i.GoTo("Home")});n.NavigatetoEnroll=function(n){i.$state.transitionTo("Enroll",{id:n})};n.getCurriculumFile=function(n){n.FileId&&window.open(i.utilsU+"Download/"+n.FileId)}}]);VsApp.controller("LoginController",["$scope","AuthService","$rootScope","$cookies","$window","UtilsApis","$localStorage","swangular","$state",function(n,t,i,r,u,f,e,o,s){function c(t){t!=null&&(t.LoginStatus==i.EnumUserLoginStatus.WrongCaptcha?(i.ShowUserMessage(n.Messages.Error_WrongCaptcha,0),o.swal({title:"",text:n.Messages.Error_WrongCaptcha,type:"error"})):t.LoginStatus==i.EnumUserLoginStatus.WrongInfo?(i.ShowUserMessage(n.Messages.Error_WrongCredentials,0),o.swal({title:"",text:n.Messages.Error_WrongCredentials,type:"error"})):t.LoginStatus==i.EnumUserLoginStatus.Locked?o.swal({title:n.Messages.Error_LockedUser,text:n.Messages.error_unlockuser,type:"error"}):t.LoginStatus==i.EnumUserLoginStatus.DeactivatedUser?(i.ShowUserMessage(n.Messages.Error_LockedUser,0),o.swal({title:"",text:n.Messages.error_deactivatedaccount,type:"error"})):t.LoginStatus==i.EnumUserLoginStatus.EmailVerification&&o.swal({title:"",text:n.Messages.Error_EmailVerification,type:"error"}))}$=jQuery;i.isLoginScreen=!0;n.ClientCode=i.ConfigKey().ClientCode;n.isLoading=!1;n.IsNIC=n.ClientCode!="NEOM";n.HasIAM=i.ConfigKey().HasIAM;n.HasEmailVerification=i.ConfigKey().HasEmailVerification;n.SysEnvironment=i.ConfigKey().SysEnvironment;n.HasReCWidget=n.SysEnvironment!="local";n.MaskPage=i.MaskPage;n.base64Key=CryptoJS.enc.Utf8.parse("0123456789abcdef");n.iv=CryptoJS.enc.Utf8.parse("8080808080808080");n.Messages={Error_WrongCaptcha:i.GetResource("error_wrongCaptcha"),Error_LockedUser:i.GetResource("error_lockeduser"),Error_WrongCredentials:i.GetResource("error_wrongcredentials"),Error_InvalidInfo:i.GetResource("error_InvalidInfo"),Error_ReqCredentials:i.GetResource("Error_ReqCredentials"),Error_InvalidNIC:i.GetResource("error_invalidNIC"),Error_InvalidNICTitle:i.GetResource("error_invalidNICTitle"),Error_EmailVerification:i.GetResource("error_EmailVerification"),Success_Sent:i.GetResource("success_sent"),WrongMail:i.GetResource("lbl_WrongEmail"),error_unlockuser:i.GetResource("error_unlockuser"),error_deactivatedaccount:i.GetResource("error_deactivatedaccount"),lbl_OldPassword:i.GetResource("lbl_OldPassword"),lbl_weakPassword:i.GetResource("lbl_weakPassword"),UpdateRegistrationTitle:i.GetResource("UpdateRegistrationTitle"),UpdateRegistrationMessage:i.GetResource("UpdateRegistrationMessage_"+n.ClientCode)};i.IsRegistrationOfVolunteerComplete=!0;n.IsLoggedIn()&&n.$state.transitionTo(DashboardState);n.credentials={username:i.GetRememberMeUserName(),password:"",language:1,rememberMe:!1,recaptchaPublicKey:"6LdLq-gUAAAAAJPr5YbNVpoGQpxjKUHZVG-SMcLc"};n.credentialsBasic={username:i.GetRememberMeUserName(),password:""};n.Languages=[{id:1,name:"العربية"},{id:2,name:"English"}];n.setWidgetId=function(t){n.recaptchaWidgetId=t};var h=readCookie("lang");h||(h="ar",r.put("lang","ar"));setCookies=function(n,t){i.isLoginScreen=!1;t.rememberMe&&i.createLocalStorageTicket(n,t.UserName);i.CreateTicket(n.Token,null,angular.toJson(n.UserRoleId));r.put("UserName",angular.toJson(t.username));r.put("UserId",angular.toJson(n.UserId));r.put("VolunteerInfoId",angular.toJson(n.VolunteerInfoId));r.put("Role",angular.toJson(n.Role));r.put("Name",angular.toJson(n.Name));r.put("IsRegistrationComplete",angular.toJson(n.IsRegistrationComplete));r.put("IsUserNICValid",angular.toJson(n.IsUserNICValid));e.RoleId=angular.toJson(n.RoleId);e.UserRoleId=angular.toJson(n.UserRoleId);r.put("RememberMe",t.rememberMe);e.RememberMe=t.rememberMe;i.isLoading=!1};n.showPassword=!1;n.toggleShowPassword=function(){n.showPassword=!n.showPassword};n.ForgetPassword=function(r){i.isLoading=!0;var u=r.UserEmail;u||(i.showErrorMessage(n.Messages.Error_InvalidInfo),i.isLoading=!1);t.forgetPassword(r).then(function(n){n===!0?i.showSuccessMessageFromKey("success_sent"):i.showErrorMessageFromKey("lbl_WrongEmail");i.isLoading=!1},function(){i.showErrorMessageFromKey("error_InvalidInfo");i.isLoading=!1;return})};n.getUserName=function(r){i.isLoading=!0;var u=r.UserEmail;if(!u){i.showErrorMessage(n.Messages.Error_InvalidInfo);i.isLoading=!1;return}t.forgetUsername(r).then(function(n){n===!0?i.showSuccessMessageFromKey("success_sent"):i.showErrorMessageFromKey("lbl_WrongEmail");i.isLoading=!1},function(){i.showErrorMessageFromKey("error_InvalidInfo");i.isLoading=!1})};n.showForgetPasswordPanel=function(){n.openModal("md",null,"forgetpassword.html").then(function(t){n.ForgetPassword(t)},function(){})};n.showGetUserNamePanel=function(){n.openModal("md",null,"getusername.html").then(function(t){n.getUserName(t)},function(){})};n.changePassword=function(){n.openModal("md",null,"ForcePasswordChange.html").then(function(t){n.ForgetPassword(t)},function(){})};n.Encrypt=function(t){if(t==null)return"";var i=t+"",r=CryptoJS.AES.encrypt(i,n.base64Key,{iv:n.iv});return r.ciphertext.toString(CryptoJS.enc.Base64)};setLoginAction=function(t,r){var f,u;t.LoginStatus==i.EnumUserLoginStatus.InvalidNIC?(setCookies(t,r),i.$state.transitionTo("UserVerification")):t.LoginStatus==i.EnumUserLoginStatus.Success?(setCookies(t,r),angular.toJson(t.IsRegistrationComplete)=="false"&&(i.ShowUserMessage(n.Messages.UpdateRegistrationTitle,0),o.swal({title:"",text:n.Messages.UpdateRegistrationMessage,type:"info"}),i.IsRegistrationOfVolunteerComplete=!1,u=s.href("EditRegistration",{id:angular.toJson(t.VolunteerInfoId)}),window.open(u,"_self")),t.UpdatedPassword?i.ConfigKey().HasSingleSignOn?t.Hashedkey!=""?(h=readCookie("lang"),h||(h="ar"),f=i.AdminUrl(),u=f+h+"/SSO?ky="+encodeURIComponent(t.Hashedkey),i.destroyTicket(),window.open(u,"_self")):n.$state.transitionTo(DashboardState):n.$state.transitionTo(DashboardState):(i.isLoading=!1,u=s.href("ForceChangePassword",{id:t.UserId}),window.open(u,"_self"))):(t.LoginStatus==i.EnumUserLoginStatus.WrongCaptcha?(i.ShowUserMessage(n.Messages.Error_WrongCaptcha,0),o.swal({title:"",text:n.Messages.Error_WrongCaptcha,type:"error"})):t.LoginStatus==i.EnumUserLoginStatus.Locked?o.swal({title:n.Messages.Error_LockedUser,text:n.Messages.error_unlockuser,type:"error"}):t.LoginStatus==i.EnumUserLoginStatus.DeactivatedUser?(i.ShowUserMessage(n.Messages.Error_LockedUser,0),o.swal({title:"",text:n.Messages.error_deactivatedaccount,type:"error"})):t.LoginStatus==i.EnumUserLoginStatus.EmailVerification?o.swal({title:"",text:n.Messages.Error_EmailVerification,type:"error"}):(i.ShowUserMessage(n.Messages.Error_WrongCredentials,0),o.swal({title:"",text:n.Messages.Error_WrongCredentials,type:"error"})),i.isLoading=!1)};n.loginNormal=function(r){r.username!=null&&r.password!=null&&r.username!=""&&r.password!=""?(i.isLoading=!0,t.login(r).then(function(n){setLoginAction(n,r)},function(){o.swal({title:"",text:n.Messages.Error_InvalidInfo,type:"error"});i.ShowUserMessage(n.Messages.Error_InvalidInfo,0);u.grecaptcha.reset(n.recaptchaWidgetId);i.isLoading=!1})):(i.ShowUserMessage(n.Messages.Error,0),i.isLoading=!1,o.swal({title:"",text:n.Messages.Error_ReqCredentials,type:"error"}))};n.loginEncrypted=function(f){f.username=n.credentialsBasic.username;f.password=n.credentialsBasic.password;f.username=n.Encrypt(f.username);f.password=n.Encrypt(f.password);f.username!=null&&f.password!=null&&f.username!=""&&f.password!=""?(i.isLoading=!0,t.LoginEncrypted(f).then(function(u){u.LoginStatus!=i.EnumUserLoginStatus.Success?(u.LoginStatus==i.EnumUserLoginStatus.InvalidNIC&&(i.SetCurrentVolunteerId(u.VolunteerInfoId),i.ShowUserMessage(n.Messages.UpdateRegistrationTitle,0),o.swal({title:n.Messages.Error_InvalidNICTitle,text:n.Messages.Error_InvalidNICRedirect,type:"info"}).then(function(){setCookies(u,f);i.$state.transitionTo("UserVerification")})),c(u),i.isLoading=!1,n.SysEnvironment!="local"&&window.grecaptcha.reset(n.recaptchaWidgetId)):u!=null&&u.Token?(r.put("User",u.Token),i.isLoading=!0,t.LoginDecrypted(u).then(function(n){n!=null&&(n.Token=u.Token,n.Hashedkey=u.Hashedkey,n.UniqueUserToken=u.UniqueUserToken,setLoginAction(n,f))})):(o.swal({title:"",text:n.Messages.Error_InvalidInfo,type:"error"}),i.isLoading=!1,i.ShowUserMessage(n.Messages.Error_InvalidInfo,0),n.SysEnvironment!="local"&&window.grecaptcha.reset(n.recaptchaWidgetId))},function(){o.swal({title:"",text:n.Messages.Error_InvalidInfo,type:"error"});i.ShowUserMessage(n.Messages.Error_InvalidInfo,0);n.SysEnvironment!="local"&&u.grecaptcha.reset(n.recaptchaWidgetId);i.isLoading=!1})):(i.ShowUserMessage(n.Messages.Error,0),i.isLoading=!1,o.swal({title:"",text:n.Messages.Error_ReqCredentials,type:"error"}))};n.login=function(t){i.loginMode=="N"?n.loginNormal(t):i.loginMode=="E"&&n.loginEncrypted(t)}}]);VsApp.controller("MailSubscriptionController",["$scope","AuthService","$rootScope","$cookies","$window","UtilsApis","$localStorage","api","$state","Lookups",function(n,t,i,r,u,f,e,o){$=jQuery;n.Labels.SendNotification=n.Labels.SendNotificationToSubscribers;var s="MailSubscription";i.CurrentPage=s;n.notificationText="";n.notificationHeader="";n.selectedRows=undefined;n.error_validdata="";n.MailSubscriptionDataSource=new kendo.data.DataSource({transport:{read:{url:"/MailSubscription/MailSubscription_Read",dataType:"json",contentType:"application/json; charset=utf-8",type:"POST",beforeSend:i.addTokenToRequest,complete:i.logoutIfForbidden},update:{url:"/MailSubscription/MailSubscription_Update",dataType:"json",contentType:"application/json; charset=utf-8",type:"POST",beforeSend:i.addTokenToRequest,complete:i.logoutIfForbidden},parameterMap:function(n,t){if(t!=="read"&&n.models)return JSON.stringify({VolunteerInfo:n.models});var i=serializeKendoFilter(n);return JSON.stringify(i)}},batch:!0,pageSize:10,schema:{data:"Data",total:"Total",model:{id:"Id",fields:{Id:{editable:!1,nullable:!1,defaultValue:0},Email:{validation:{custom1:function(t){return t.attr("data-bind")=="value:Email"?(t.attr("data-custom1-msg",n.Labels.Email),!isBlank(t.val())):!0}},type:"string"}}},errors:"Errors"},error:function(n){i.gridOnError(n,this);this.cancelChanges()}});n.screenControlAutorization=t.getScreenActionsAuthorization(s,i.addTokenToRequest,i.logoutIfForbidden);n.screenControlAutorization!=null&&n.screenControlAutorization!=undefined&&n.MailSubscriptionDataSource.read();i.CurrentPage="";n.mailsubscrptionGridOptions={autoBind:!1,dataSource:n.MailSubscriptionDataSource,resizable:!0,scrollable:!0,sortable:!0,filterable:!0,persistSelection:!0,groupable:!0,reorderable:!0,columnMenu:!0,pageable:{refresh:!0,input:!0,numeric:!1,pageSizes:[10,20,30,50,75,100,500,1e3]},height:150,columns:[{selectable:!0,width:"30px"},{field:"Email",title:n.Labels.Email,width:150}],editable:"popup",toolbar:[{name:"sendNotificatoin",template:"<a class='k-button k-button-icontext k-grid-sendNotification' ng-click='showNotificationWnd(event)'><span class='k-icon k-i-hyperlink-email'><\/span>"+n.Labels.SendNotificationToSubscribers+"<\/a>"}],save:function(n){var t=$(n.container).find(".k-grid-update");t.hasClass("k-state-disabled")?n.preventDefault():t.addClass("k-state-disabled")},dataBound:function(i){this.element.height("auto");this.element.find(".k-grid-content").height("auto");kendo.resize(this.element);this.expandRow(this.tbody.find("tr.k-master-row").first());n.currentVolunteerGrid=i.sender;var r=n.currentVolunteerGrid.element;n.EditBtn=r.find(".k-grid-ActionsEditRecord");n.viewDetailsBtn=r.find(".k-grid-ViewDetails");t.setControlsAuthorization(r,n.screenControlAutorization)}};n.getSelectedSubscribersIds=function(){var t=n.mailSubscriptionGrid.dataItems(),i=n.mailSubscriptionGrid.selectedKeyNames();return t.filter(function(n){return i.indexOf(n.Id.toString())>=0}).map(function(n){return n.Id})};n.mailSubscriptionGrid;n.sendNotification=function(){if(!n.notificationText||!n.notificationHeader){i.showErrorMessageFromKey("PleasefillAllDetails");return}var t=n.getSelectedSubscribersIds();t.length>0?o.Post(i.volU+"notifications/SendsubscriptionMail",null,{Volunteers:t,notificationModel:{Body:n.notificationText,Header:n.notificationHeader}}).then(function(t){n.notificationText="";n.notificationHeader="";t.Success?(i.showSuccessMessage(n.Labels.NotificationsSentForSubscribers+t.Data),n.notificationWnd.close(),n.mailSubscriptionGrid.clearSelection()):(i.showErrorMessageFromKey(t.Message),n.notificationWnd.close())},function(){n.notificationText="";n.notificationHeader="";i.showErrorMessage(n.Labels.ErrorMessage);n.notificationWnd.close()}):i.showErrorMessage(n.Labels.PleaseSelectSubscribers)};n.showNotificationWnd=function(){event.preventDefault();n.notificationWnd.center().open()};n.closeNotificationWindow=function(){n.notificationWnd.close()};n.GetCurrentDate=function(){return new Date}}]);VsApp.controller("MediaCenterController",["$scope","AuthService","$rootScope","$cookies","$window","UtilsApis","$localStorage","api",function(n,t,i,r,u,f,e,o){function s(n){return!isNaN(parseFloat(n))&&!isNaN(+n)}$=jQuery;n.News={};n.ClientCode=i.ConfigKey().ClientCode;i.isLoading=!0;n.errorLoading=null;n.lblSubscribeOnYouTubeChannelName="";o.Get(i.utilsU+"home/news/some/0").then(function(t){n.News=t;n.News.forEach(function(n){n.JContent=!n.Content?null:JSON.parse(n.Content);n.JContent&&(n.JContent.Header[CurrentLang]=n.JContent.Header[CurrentLang].substr(0,80)+"...",n.JContent.Content[CurrentLang]=strip(n.JContent.Content[CurrentLang],250))});i.isLoading=!1},function(){i.isLoading=!1;i.showErrorMessageFromKey("error_occured")});n.MediacenterMoreInfo=function(n){i.$state.transitionTo("MediacenterDetails",{id:n,data:null})};n.MediacenterGetNewsDescriptions=function(n){return n.length>220?n.substring(0,220)+"...":n};n.newsMoreInfo=function(n){i.$state.transitionTo("NewsDetails",{id:n,data:null})};n.GetImage=function(n){return n.ImageFileId!=null?i.utilsU+"DownloadEventInfo/"+n.ImageFileId:"../../Content/Images/"+i.ConfigKey().ClientCode+"/default.png"};n.AllImages=[];o.Get(i.utilsU+"home/imagegallery/all/10").then(function(t){n.AllImages=t});n.ShowImg=function(n){var t="";t=s(n)?"/api/utils/DownloadImage/"+n:n.JContent.MainImage;$("#imagepreview").attr("src",t);$("#imagemodal").modal("show")};n.CloseImg=function(){$("#imagemodal").modal("hide");$("#imagemodal1").modal("hide")}}]);VsApp.controller("ModalInstanceCtrl",["$rootScope","$scope","$uibModalInstance","$sce","$timeout","UtilsApis","data","api",function(n,t,i,r,u,f,e,o){function h(n){var i=$("<div/>").append($(n).clone()).html(),t=window.open("","my div","height=500,width=500");return t.document.write('<!DOCTYPE html> <meta charset="UTF-8"><link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"><link rel="stylesheet" type="text/css" href="https://volunteer.srca.org.sa/content/style.css" media="screen"/>'),t.document.write("<\/head><body >"),t.document.write(i),t.document.write("<\/body><\/html>"),u(function(){t.print()},100),!0}var s=this;t.data=e;t.status={};t.output={};t.Labels.VGoalsDesc=r.trustAsHtml(n.GetResource("VGoalsDesc"));t.Labels.VConditionsDesc=r.trustAsHtml(n.GetResource("VConditionsDesc"));t.Labels.VDutiesDesc=r.trustAsHtml(n.GetResource("VDutiesDesc"));t.Labels.VTerms1D=r.trustAsHtml(n.GetResource("VTerms1D"));t.Labels.VTerms2D=r.trustAsHtml(n.GetResource("VTerms2D"));t.Labels.VTerms3D=r.trustAsHtml(n.GetResource("VTerms3D"));t.Labels.VTerms4D=r.trustAsHtml(n.GetResource("VTerms4D"));t.Labels.VTerms5D=r.trustAsHtml(n.GetResource("VTerms5D"));e=="InitialAccept.html"&&f.getLookUp(n.utilsU+"home/getStaffMembers/read").then(function(n){t.reviewerLookupDS=n});e&&o.Get(n.volU+"card/expirydate/0/"+e.volunteerId).then(function(n){n&&(e.expiryDate=n)});t.hstep=1;t.mstep=1;t.ismeridian=!0;t.formats=["yyyy-MM-dd","dd-MMMM-yyyy","dd.MM.yyyy","shortDate"];t.dateFormat=t.formats[0];t.altInputFormats=["M!/d!/yyyy"];t.YesterdayDate=function(){var n=new Date;return n.setDate(n.getDate()-1)};t.dateYesterday=t.YesterdayDate();t.getAppointmentDateOptions={formatYear:"yyyy",maxDate:new Date(2030,5,22),minDate:new Date,startingDay:1,todayBtn:!1,clearBtn:!1,showButtonBar:!1};t.dateOptions={formatYear:"yyyy",maxDate:new Date(2030,5,22),minDate:new Date(1950,1,1),startingDay:1,todayBtn:!1,clearBtn:!1,showButtonBar:!1};t.appointmentTime={opened:!1};t.appointmentTimePopupOpen=function(){t.appointmentTime.opened=!0};s.ok=function(){i.close(t.output)};s.cancel=function(){i.dismiss("cancel")};s.print=function(){o.Get(n.volU+"card/expirydate/1/"+e.volunteerId).then(function(n){n&&h("#modal-bodyBadge")})}}]);VsApp.controller("NewsController",["$scope","AuthService","$rootScope","$cookies","$window","UtilsApis","$localStorage","api",function(n,t,i,r,u,f,e,o){$=jQuery;n.News={};n.ClientCode=i.ConfigKey().ClientCode;i.isLoading=!0;n.errorLoading=null;o.Get(i.utilsU+"home/news/some/0").then(function(t){n.News=t;n.News.forEach(function(n){n.JContent=!n.Content?null:JSON.parse(n.Content);n.JContent&&(n.JContent.Header[CurrentLang]=n.JContent.Header[CurrentLang].substr(0,80)+"...",n.JContent.Content[CurrentLang]=strip(n.JContent.Content[CurrentLang],250))});i.isLoading=!1},function(){i.isLoading=!1;i.showErrorMessageFromKey("error_occured")});n.newsMoreInfo=function(n){i.$state.transitionTo("NewsDetails",{id:n,data:null})}}]);VsApp.controller("NewsDetailsController",["$scope","AuthService","$rootScope","$cookies","$window","UtilsApis","$localStorage","$sce","api","$stateParams",function(n,t,i,r,u,f,e,o,s,h){$=jQuery;n.errorLoading=null;n.id=h.id;n.ClientCode=i.ConfigKey().ClientCode;n.NewsData=h.NewsData;i.trust=function(n){return o.trustAsHtml(n)};n.processData=function(){n.NewsData.JContent=!n.NewsData.Content?{MainImage:"",Header:{en:"",ar:""},Content:{en:"",ar:""}}:JSON.parse(n.NewsData.Content);n.NewsData.StartDate&&(n.NewsData.StartDate=new Date(n.NewsData.StartDate));n.NewsData.EndDate&&(n.NewsData.EndDate=new Date(n.NewsData.EndDate))};n.NewsData?n.processData():(i.isLoading=!0,s.Get(i.utilsU+"home/news/"+n.id).then(function(t){i.isLoading=!1;n.NewsData=t||{};n.processData()},function(){i.isLoading=!1;i.showErrorMessage(n.Labels.ErrorMessage)}));n.trust=function(n){return o.trustAsHtml(n)};n.getImage=function(n){return n?n:"/Content/Images/images/lightblue-min.jpg"}}]);VsApp.controller("OngoingEventsController",["$scope","$rootScope","api","Lookups","swangular",function(n,t,i,r,u){n.AllEvents=[];t.isLoading=!0;n.errorLoading=null;n.FrontButton=1;n.BackButton=1;n.ClientCode=t.ConfigKey().ClientCode;n.GetImage=function(n){return n.ImageFileId!=null?t.utilsU+"DownloadEventInfo/"+n.ImageFileId:"../../Content/Images/"+t.ConfigKey().ClientCode+"/default.png"};n.Cities=[];i.Get(t.utilsU+"citiesRegistration/read").then(function(t){arr=[];jQuery.each(t,function(n,t){var i={Id:t.Id,Name:CurrentLang=="ar"?t.NameAr:t.Name,RegionId:t.RegionId};arr.push(i)});n.Cities=arr});n.OutputResults=arrayFromRangeSteps(5,20,5);n.Regions=[];i.Get(t.utilsU+"regionsRegistration/read").then(function(t){arr=[];obj=t.filter(function(n,t){return t.Id!=16});jQuery.each(obj,function(n,t){var i={Id:t.Id,Name:CurrentLang=="ar"?t.NameAr:t.Name};arr.push(i)});n.Regions=arr});n.EventTypes=[];i.Get(t.eventsU+"EventTypes/read").then(function(t){arr=[];jQuery.each(t,function(n,t){var i={Id:t.Id,Name:CurrentLang=="ar"?t.NameAr:t.Name};arr.push(i)});n.EventTypes=arr});n.SearchFilters={PageNo:1,StatusId:2,PreviousStatusId:2,StartFrom:1,EndAt:5,TotalPages:5,AllPages:0,TotalEvents:50,CurrentPagePosition:1,RegionId:0,CityId:0,PreviousRegionId:-2,PreviousCityId:-2,EventTypeId:0,PreviousEventTypeId:-2,maxOutputRecords:12,code:"allEvent"};n.EventStatusData=r.EventStatusData;n.EventStatusData=n.EventStatusData.slice(0,n.EventStatusData.length-1);n.SetFirstPage=function(){n.SearchFilters.PageNo=1};n.SetLastPage=function(){n.SearchFilters.PageNo=n.SearchFilters.AllPages};n.ClearControls=function(){n.SearchFilters.PageNo=1;n.SearchFilters.StatusId=2;n.SearchFilters.PreviousStatusId=2;n.SearchFilters.StartFrom=1;n.SearchFilters.EndAt=5;n.SearchFilters.TotalPages=5;n.SearchFilters.AllPages=0;n.SearchFilters.TotalEvents=50;n.SearchFilters.CurrentPagePosition=1;n.SearchFilters.RegionId=0;n.SearchFilters.CityId=0;n.SearchFilters.PreviousRegionId=-2;n.SearchFilters.PreviousCityId=-2;n.SearchFilters.EventTypeId=0;n.SearchFilters.PreviousEventTypeId=-2;n.SearchFilters.maxOutputRecords=12;n.GetEvents(1)};n.RegionSelectedChange=function(){n.SearchFilters.PageNo=1;n.SearchFilters.CityId=0;n.GetEvents(n.SearchFilters.PageNo)};n.GetEvents=function(r){n.SearchFilters.PageNo=r;n.SearchFilters.PreviousStatusId=n.SearchFilters.StatusId;n.SearchFilters.PreviousRegionId=n.SearchFilters.RegionId;n.SearchFilters.PreviousCityId=n.SearchFilters.CityId;n.SearchFilters.PreviousEventTypeId=n.SearchFilters.EventTypeId;i.Get(t.utilsU+"home/events/privateEventsbyPageWithRegionsCitiesSQL/"+n.SearchFilters.PageNo+"/"+n.SearchFilters.StatusId+"/"+n.SearchFilters.RegionId+"/"+n.SearchFilters.CityId+"/"+n.SearchFilters.EventTypeId+"/"+n.SearchFilters.maxOutputRecords+"/0/0/-1/"+n.SearchFilters.code).then(function(i){if(t.isLoading=!1,i.length>0){n.SearchFilters.TotalEvents=i[0].TotalCount;n.SearchFilters.TotalPages=n.SearchFilters.TotalEvents/n.SearchFilters.maxOutputRecords;n.SearchFilters.AllPages=arrayFromRange(n.SearchFilters.StartFrom,n.SearchFilters.TotalPages);for(var r=0;r<i.length;r++)i[r].Description=strip(i[r].Description,140)+"...";n.AllEvents=i}else n.SearchFilters.TotalEvents=0,n.SearchFilters.TotalPages=0,n.SearchFilters.AllPages=null,n.AllEvents=null,t.showInfoMessageFromKey("NoRecordsFound")},function(){t.isLoading=!1;t.showErrorMessage(n.Labels.ErrorMessage)})};n.GetEvents(1);n.eventsInfoDetails=function(n){t.$state.transitionTo("PrivateEventsInfoDetails",{id:n,data:null})};n.SwitchCalendar=function(){t.$state.transitionTo("EventsCalendar")};n.Messages={UpdateRegistrationTitle:t.GetResource("UpdateRegistrationTitle"),UpdateRegistrationMessage:t.GetResource("UpdateRegistrationMessage_"+n.ClientCode),Error_InvalidNICRedirect:t.GetResource("error_invalidNICRedirect"),Error_InvalidNICTitle:t.GetResource("error_invalidNICTitle")};n.joinEvent=function(r){t.IsLoggedIn()?t.IsVolunteer()?i.Post(t.utilsU+"home/events/addeventjoinrequest/"+r.Id).then(function(i){i.Success?(t.showSuccessMessageFromKey(i.Message),r.IsJoined=!0):i.Message=="UpdateRegistrationTitle"?(t.ShowUserMessage(n.Messages.UpdateRegistrationTitle,0),u.swal({title:"",text:n.Messages.UpdateRegistrationMessage,type:"info"}),t.$state.transitionTo("EditRegistration",{id:angular.toJson(t.GetCurrentVolunteerId())})):i.Message=="InvalidNICAccount"?(t.ShowUserMessage(n.Messages.UpdateRegistrationTitle,0),u.swal({title:n.Messages.Error_InvalidNICTitle,text:n.Messages.Error_InvalidNICRedirect,type:"info"}).then(function(){t.$state.transitionTo("UserVerification",{id:angular.toJson(t.GetCurrentVolunteerId())})})):t.showInfoMessageFromKey(i.Message)}):t.showVolunteerMessage(n.Labels.YouMustBeVolunteer):t.ShowLoginMessage(n.Labels.YouMustLogIn)}}]);VsApp.controller("PastContributionController",["$scope","$rootScope","Lookups","swangular","api","$http","AuthService","$state",function(n,t,i,r,u,f,e){$=jQuery;t.CurrentPage="PastContribution";n.VolunteerId=null;n.erroMessage=!1;n.VolunteerEventsHistorySummary=null;n.VolunteerEventsHistorySummaryDone=!1;n.Clientcode=t.ConfigKey().ClientCode;clientCode=t.ConfigKey().ClientCode;n.HaveDifferentFieldName=n.Clientcode=="MOH";n.RunningYearCount=function(){return e.RunningYearCount(clientCode)};u.Get(t.utilsU+"gregRunningYears/read/"+n.RunningYearCount()).then(function(t){n.VolunteerHourYears=t});u.Get("EventsAdmin/HasCompletedVolunteerInfo/").then(function(t){n.VolunteerInfoId=t});n.GetImage=function(n){return n.ImageFileId!=null?t.utilsU+"DownloadEventInfo/"+n.ImageFileId:"../../Content/Images/"+t.ConfigKey().ClientCode+"/default.png"};n.SearchFilter={Year:e.GetCurrentYear()};n.ShowButtons=n.SearchFilter.Year!=undefined;n.GetYearValue=function(){return n.SearchFilter.Year==null||n.SearchFilter.Year==""||n.SearchFilter.Year==undefined?2020:n.SearchFilter.Year};n.ClearFilters=function(){n.SearchFilter.Year=undefined;n.ShowButtons=n.SearchFilter.Year==undefined;n.SearchEvents()};n.ShowCertificatesHours=t.IsScreenAuthorized("CertificatesHours");n.ShowCertificatesEventType=t.IsScreenAuthorized("CertificatesEventType");n.SurveyMandatory=t.IsScreenAuthorized("SurveyMandatory");n.GetDetails=function(){t.isLoading=!0;f({method:"GET",url:"/EventsAdmin/GetPastEventsByYear/",params:{Year:n.GetYearValue()},responseType:"json",headers:{AuthorizationHeader:t.GetAuthenticationToken()}}).then(function(i){n.GridDetails=null;try{if(i!=null&&i.data!=null&&i.data.Data.length>0){dataDs=i.data.Data;n.MainNotes=dataDs.StaffNotesAll;for(var r=0;r<dataDs.length;r++)dataDs[r].StaffNotesAll1=dataDs[r].StaffNotesAll,dataDs[r].StaffNotesAll=dataDs[r].StaffNotesAll==null?"":dataDs[r].StaffNotesAll,dataDs[r].StaffNotesAll=strip(dataDs[r].StaffNotesAll.replace(/(\r\n|\n|\r)/gm,""),20)+"...";n.GridDetails=dataDs}t.isLoading=!1}catch(u){console.log(u)}},function(n){console.log(n)})};n.GetDetails();n.exportCertificate=function(){t.isLoading=!0;f({method:"GET",url:"/VolunteerRegistration/PrintCertificate",params:{volunteerId:n.volunteerId},responseType:"arraybuffer",headers:{AuthorizationHeader:t.GetAuthenticationToken()}}).then(function(i){var o="VolunteerCertificate_"+n.volunteerId+".pdf",r=document.createElement("a"),u,f,e;try{u=new Blob([i.data],{type:"application/octet-stream"});f=window.URL.createObjectURL(u);r.setAttribute("href",f);r.setAttribute("download",o);e=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});r.dispatchEvent(e);t.isLoading=!1}catch(s){console.log(s)}},function(){})};n.SelectYear=function(t){n.SearchFilter.Year=t;n.SearchEvents()};n.exportPreviousCertificate=function(){t.isLoading=!0;f({method:"GET",url:"/VolunteerRegistration/PrintPreviousCertificate",params:{volunteerId:n.volunteerId,year:n.SearchFilter.Year},responseType:"arraybuffer",headers:{AuthorizationHeader:t.GetAuthenticationToken()}}).then(function(i){var f,e,o;if(i.data.byteLength==0){t.isLoading=!1;r.swal({type:"error",title:n.Labels.ErrorHeader,text:n.Labels.NoHoursFound,confirmButtonText:n.Labels.Accept,footer:"<a href> "+n.Labels.ErrorMessage+"<\/a>"});return}var s="VolunteerCertificate_"+n.volunteerId+".pdf",u=document.createElement("a");try{f=new Blob([i.data],{type:"application/octet-stream"});e=window.URL.createObjectURL(f);u.setAttribute("href",e);u.setAttribute("download",s);o=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});u.dispatchEvent(o);t.isLoading=!1}catch(h){console.log(h)}},function(n){console.log(n)})};n.exportVolunteerEvents=function(){t.isLoading=!0;f({method:"GET",url:"/VolunteerRegistration/PrintVolunteerEvents",params:{volunteerId:n.volunteerId,year:n.GetYearValue()},responseType:"arraybuffer",headers:{AuthorizationHeader:t.GetAuthenticationToken()}}).then(function(i){var f,e,o;if(i.data.byteLength==0){t.isLoading=!1;r.swal({type:"error",title:n.Labels.ErrorHeader,text:n.Labels.NoEventFound,confirmButtonText:n.Labels.Accept,footer:"<a href> "+n.Labels.ErrorMessage+"<\/a>"});return}var s="VolunteerEvents_"+n.volunteerId+".pdf",u=document.createElement("a");try{f=new Blob([i.data],{type:"application/octet-stream"});e=window.URL.createObjectURL(f);u.setAttribute("href",e);u.setAttribute("download",s);o=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});u.dispatchEvent(o);t.isLoading=!1}catch(h){console.log(h)}},function(){})};n.getVolunteerEventsHistorySummary=function(){n.volunteerId=t.GetCurrentVolunteerId();n.VolunteerEventsHistorySummaryDone=!1;u.Get(t.eventsU+"volunteerperformance/getVolunteerEventsHistorySummary/"+n.volunteerId+"/4").then(function(t){t!=null?(n.VolunteerEventsHistorySummary=t,n.VolunteerEventsHistorySummaryDone=!0):n.VolunteerEventsHistorySummaryDone=!1},function(){})};n.getVolunteerEventsHistorySummary();n.GetHoursByYearPerformance=function(){var i=n.GetYearValue();n.volunteeringHours=0;u.Get(t.volU+"hoursByYearPerformance/"+i).then(function(i){n.volunteerId=t.GetCurrentVolunteerId();i.Data!=null&&(n.volunteeringHours=i.Data,n.volunteeringHours==0?(n.erroMessage=n.Labels.NoRecordsFound,n.ShowButtons=!1,$("#btnExportEvents").hide()):(n.erroMessage="",$("#btnExportEvents").show()))},function(){})};n.GetHoursByYearPerformance();n.SearchEvents=function(){var t=n.GetYearValue();n.GetHoursByYearPerformance();n.GetDetails();n.ShowButtons=n.SearchFilter.Year!=undefined};n.GetCertificateApprovedHours=function(){t.isLoading=!0;f({method:"GET",url:"/EventsAdmin/GetCertificateOnYear",params:{volunteerId:n.volunteerId,year:n.SearchFilter.Year},responseType:"arraybuffer",headers:{AuthorizationHeader:t.GetAuthenticationToken()}}).then(function(i){var f,e,o;if(i.data.byteLength==0){t.isLoading=!1;r.swal({type:"error",title:n.Labels.ErrorHeader,text:n.Labels.NoHoursFound,confirmButtonText:n.Labels.Accept,footer:"<a href> "+n.Labels.ErrorMessage+"<\/a>"});return}var s="VolunteerCertificate_"+n.volunteerId+".pdf",u=document.createElement("a");try{f=new Blob([i.data],{type:"application/octet-stream"});e=window.URL.createObjectURL(f);u.setAttribute("href",e);u.setAttribute("download",s);o=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});u.dispatchEvent(o);t.isLoading=!1}catch(h){console.log(h)}},function(n){console.log(n)})};n.GetCertificateOnEventType=function(i){t.isLoading=!0;var r=n.volunteerId,u=i.EventId;f({method:"GET",url:"EventsAdmin/GetCertificateOnEventType",params:{volunteerId:r,eventId:u},responseType:"arraybuffer",headers:{AuthorizationHeader:t.GetAuthenticationToken()}}).then(function(i){var f,e,o;if(i.data.byteLength!=0){var s="VolunteerCertificate_"+r+".pdf",u=document.createElement("a");try{f=new Blob([i.data],{type:"application/octet-stream"});e=window.URL.createObjectURL(f);u.setAttribute("href",e);u.setAttribute("download",s);o=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});u.dispatchEvent(o);t.isLoading=!1}catch(h){t.isLoading=!1;console.log(h)}}else t.showErrorMessage(n.Labels.LackOfVolunteerDataErrorMessage),t.isLoading=!1},function(){t.isLoading=!1})}}]);VsApp.controller("PastEventsController",["$scope","AuthService","$rootScope","$cookies","$window","UtilsApis","$localStorage","$sce","swangular","api","Lookups",function(n,t,i,r,u,f,e,o,s,h,c){$=jQuery;i.CurrentPage="PastEvents";n.InvitationRequestStatusLookup=c.InvitationRequestStatusLookup;n.invitationRequestStatuses=c.invitationRequestStatuses;n.ClientCode=i.ConfigKey().ClientCode;n.Invitation=null;n.PercentageRatings=$(c.PercentageRatings).map(function(n,t){return CurrentLang=="ar"?t.NameAr:t.Name});h.Get(i.eventsU+"pastEvents").then(function(t){n.Invitation=t},function(){i.isLoading=!1;i.showErrorMessage(n.Labels.ErrorMessage)});n.contribute=function(){}}]);VsApp.controller("PostCardController",["$scope","$rootScope","$http","Upload",function(n,t,i,r){$=jQuery;GetFolderImage=function(){r.upload({url:"ManagePostCard/GetImagefromDBStoreInFolder",data:n.modal,headers:{AuthorizationHeader:t.GetAuthenticationToken(),CurrentPage:t.CurrentPage,ImageFor:1}}).then(function(n){n.status==200?(d=new Date,$("#myimg").attr("src","../PostCards/postcard.jpg?"+d.getTime())):clr=$("#myimg").val("")},function(n){console.log("Error status: "+n.status)})};GetFolderImage();n.PrintPostCard=function(){if(n.MyName==""||n.MyName==null||n.MyName==undefined)return t.showErrorMessage(n.Labels.PostCardNameRequired),!1;t.isLoading=!0;i({method:"GET",url:"/ManagePostCard/PrintPostCardEnhance",params:{name:n.MyName},responseType:"JSON",headers:{AuthorizationHeader:t.GetAuthenticationToken()}}).then(function(n){url=$(location).attr("protocol")+"//"+$(location).attr("host")+"/Documents/"+n.data;download(url);t.isLoading=!1},function(n){console.log(n)})}}]);VsApp.controller("printBadgeController",["$rootScope","$scope","$uibModalInstance","$sce","$timeout","UtilsApis","data","api",function(n,t,i,r,u,f,e){function s(n){var i=$("<div/>").append($(n).clone()).html(),t=window.open("","my div","height=400,width=400");return t.document.write("<html><head><title><\/title>"),t.document.write("<\/head><body >"),t.document.write(i),t.document.write("<\/body><\/html>"),u(function(){t.print()},100),!0}var o=this;t.userdata=e;t.output={};t.Labels={Cancel:n.GetResource("Cancel"),PrintBadge:n.GetResource("PrintBadge"),Badge:n.GetResource("Badge"),SrcaBadge:n.GetResource("SrcaBadge"),Close:n.GetResource("Close")};o.ok=function(){i.close(t.output)};o.cancel=function(){i.dismiss("cancel")};o.printDiv=function(){s("#modal-bodyBadge")}}]);VsApp.controller("PrivateEventsInfoController",["$scope","$rootScope","AuthService","api","Lookups","swangular","$state","UtilsApis","$compile",function(n,t,i,r,u,f,o,s,h){function w(){function w(n){l.geocode({latLng:a},function(t,i){if(i==google.maps.GeocoderStatus.OK)if(t[0]){var u={placeId:n,fields:["name","geometry"]},f=new google.maps.places.PlacesService(r);f.getDetails(u,i);function i(n,i){i==google.maps.places.PlacesServiceStatus.OK&&$("#searchPlace").val(n.name+" "+t[0].formatted_address)}}else console.log("Location not found");else console.log("Geocoder failed due to: "+i)})}var r=new google.maps.Map(document.getElementById("map"),{zoom:14,center:a,mapTypeId:google.maps.MapTypeId.ROADMAP,streetViewControl:!0}),p;i&&i.setMap&&i.setMap(null);const c=document.getElementById("searchPlace"),s=new google.maps.places.Autocomplete(c,{fields:["place_id","geometry","name","formatted_address"]});s.bindTo("bounds",r);r.controls[google.maps.ControlPosition.TOP_CENTER].push(c);const u=new google.maps.InfoWindow,o=document.getElementById("infowindow-content");u.setContent(o);const l=new google.maps.Geocoder;var i,t,v,y="../../Content/Images/MOH/mapview/currentplaceeventstatus.png",f=y;for(y.png,i=new google.maps.Marker({position:a,map:r,icon:f}),t=0;t<n.AllEvents.length;t++)n.AllEvents[t]&&n.AllEvents[t].EventStatus!=3&&n.AllEvents[t].Latitude&&n.AllEvents[t].Longitude&&n.AllEvents[t].Latitude!=0&&n.AllEvents[t].Longitude!=0&&n.AllEvents[t].Latitude!=""&&n.AllEvents[t].Longitude!=""&&n.AllEvents[t].EventPresenceLocation!=3&&(n.AllEvents[t].EventStatus==0?f="../../Content/Images/MOH/mapview/upcomingeventstatus.png":n.AllEvents[t].EventStatus==2?f="../../Content/Images/MOH/mapview/activeeventstatus.png":n.AllEvents[t].EventStatus==3&&(f="../../Content/Images/MOH/mapview/closedeventstatus.png"),i=new google.maps.Marker({position:new google.maps.LatLng(n.AllEvents[t].Latitude,n.AllEvents[t].Longitude),map:r,icon:f}),v='<div class="news-block-two"> <div class="p-30"><div class="blockquote-inne" style=" font-family: arabicFonts !important;"><img class="eventImage" src="'+n.GetImage(n.AllEvents[t])+'" alt="image"><\/div> <div class="lower-box"> <h4 class="pt-10">'+n.AllEvents[t].Code+'  <\/h4> <a   class="btn-all-news mt-20" style="position: static  !important;" href="javascript:void(0)"  ng-click="eventsInfoDetails('+n.AllEvents[t].Id+')"> <h4 class="" style="height: 30px; overflow: hidden; font-size: 17px !important; text-align: initial;     font-family: arabicFonts !important;" >'+n.AllEvents[t].Name+'<\/h4><\/a>  <\/div> <div class="text" style="  font-family: arabicFonts !important;">  <\/div> <button class="btn btn-default mt-20" ng-click="eventsInfoDetails('+n.AllEvents[t].Id+')"> '+n.AllEvents[t].DepartmentNameAr+' <\/button> <a   class="btn-all-news mt-20" style="float:left; position: static  !important;" href="javascript:void(0)"  ng-click="eventsInfoDetails('+n.AllEvents[t].Id+')"><i class="fa fa-arrow-left"><\/i><\/a><\/div><\/div><\/div>',p=h(v)(n),google.maps.event.addListener(i,"click",function(n,t){return function(){CurrentLang=="ar"?"الكل":"All";u.setContent(t);u.open(r,n)}}(i,p[0],n,t)));google.maps.event.addListener(i,"dragend",function(n){var t=n.latLng;currentLatitude=t.lat();currentLongitude=t.lng();$("#latitude").val(currentLatitude.toFixed(5));$("#longitude").val(currentLongitude.toFixed(5));e.placeId?w(n.placeId):$("#searchPlace").val("")});google.maps.event.addListener(r,"click",function(n){var t=n.latLng;currentLatitude=t.lat();currentLongitude=t.lng();$("#latitude").val(currentLatitude.toFixed(5));$("#longitude").val(currentLongitude.toFixed(5));n.placeId?w(n.placeId):$("#searchPlace").val("")});s.addListener("place_changed",()=>{u.close();const n=s.getPlace();n.place_id&&l.geocode({placeId:n.place_id},function(t,f){f==google.maps.GeocoderStatus.OK&&t[0]&&(r.setZoom(14),r.setCenter(t[0].geometry.location),o.children["place-name"].textContent=n.name,o.children["place-id"].textContent=n.place_id,o.children["place-address"].textContent=t[0].formatted_address,$("#searchPlace").val(n.name+" "+t[0].formatted_address),$("#latitude").val(t[0].geometry.location.lat()),$("#longitude").val(t[0].geometry.location.lng()),u.open(r,i))})})}var l=24.7425103,c,a,v;l=isNaN(l)||l==0?24.7730952:l;c=46.6367476;c=isNaN(c)||c==0?46.6382741:c;a={lat:l,lng:c};n.isMapView=!1;n.isListView=!0;addGoogleMapScript(!0);const y=n=>{console.log(n),n&&(l=isNaN(n.coords.latitude)||n.coords.latitude==0?24.7425103:n.coords.latitude,c=isNaN(n.coords.longitude)||n.coords.longitude==0?46.6367476:n.coords.longitude,a={lat:l,lng:c})},p=n=>{console.log(n)};navigator.geolocation.getCurrentPosition(y,p);n.ShowView=function(t){console.log("IsView");console.log(t);t!=2?(n.isMapView=!1,n.isListView=!0,n.SearchFilters.maxOutputRecords=12):(n.SearchFilters.maxOutputRecords=100,addGoogleMapScript(!0),n.isMapView=!0,n.isListView=!1,window.initMap=w)};n.ClientCode=t.ConfigKey().ClientCode;v="PrivateEventsInfo";t.CurrentPage=v;t.isLoading=!0;n.errorLoading=null;n.FrontButton=1;n.BackButton=1;n.ClientCode=t.ConfigKey().ClientCode;n.GetImage=function(t){return t.ImageFileId!=null?Resources.urls.downloadEventInfo+t.ImageFileId:"../../Content/Images/"+n.ClientCode+"/default.png"};n.Cities=[];n.AllOption={Id:-1,Name:CurrentLang=="ar"?"الكل":"All"};n.CheckHasCompletedVolunteerInfo=n.ClientCode=="NEOM";n.IsAllowToShowEventDetails=n.ClientCode=="MOH";n.HaveDepartmentAndCode=n.ClientCode=="MOH";n.HasAddtionalOptionsOnSearchFilter=n.ClientCode=="MOH";n.AttendanceTypes=[{Id:1,Name:"Attendance",NameAr:"حضوري"},{Id:2,Name:"Remotely",NameAr:"عن بعد"},{Id:3,Name:"All",NameAr:"الكل"}];n.EventVolunteeringTimes=[{Id:1,Name:"Morning",NameAr:"صباحي"},{Id:2,Name:"Evening",NameAr:"مسائي"},{Id:3,Name:"All",NameAr:"الكل"}];s.getLookUp("/api/utils/usercategories/read").then(function(t){n.Categories=t;n.Categories.push(n.AllOption)});n.Days=[{Id:-1,Name:"All",NameAr:"الكل"},{Id:6,Name:"Saturday",NameAr:"السبت"},{Id:0,Name:"Sunday",NameAr:"الاحـد"},{Id:1,Name:"Monday",NameAr:"الاثنين"},{Id:2,Name:"Tuesday",NameAr:"الثلاثاء"},{Id:3,Name:"Wednesday",NameAr:"الاربعاء"},{Id:4,Name:"Thursday",NameAr:"الخميس"},{Id:5,Name:"Friday",NameAr:"الجمعة"}];r.Get(Resources.urls.citiesRegistration).then(function(t){arr=[];jQuery.each(t,function(n,t){var i={Id:t.Id,Name:CurrentLang=="ar"?t.NameAr:t.Name,RegionId:t.RegionId};arr.push(i)});n.Cities=arr});t.IsLoggedIn()&&n.CheckHasCompletedVolunteerInfo&&r.Get("EventsAdmin/HasCompletedVolunteerInfo/").then(function(t){n.VolunteerInfoId=t});n.OutputResults=arrayFromRangeSteps(5,20,5);i.GetSingleWorkFields(n,"EventWorkFields");i.GetSingleVolunteerWorkFieldCategoryGroup(n,"EdtVolunteerWorkFieldCategoryGroup");n.Regions=[];r.Get(Resources.urls.regionsRegistration).then(function(t){arr=[];obj=t.filter(function(n,t){return t.Id!=16});jQuery.each(obj,function(n,t){var i={Id:t.Id,Name:CurrentLang=="ar"?t.NameAr:t.Name};arr.push(i)});n.Regions=arr});n.EventTypes=[];r.Get(Resources.urls.eventTypes).then(function(t){arr=[];jQuery.each(t,function(n,t){var i={Id:t.Id,Name:CurrentLang=="ar"?t.NameAr:t.Name,VolunteerWorkFieldCategoryGroupId:t.VolunteerWorkFieldCategoryGroupId};arr.push(i)});n.EventTypes=arr});n.SearchFilters={PageNo:1,StatusId:-1,PreviousStatusId:-2,StartFrom:1,EndAt:5,TotalPages:5,AllPages:0,TotalEvents:50,CurrentPagePosition:1,RegionId:0,CityId:0,PreviousRegionId:-2,PreviousCityId:-2,EventTypeId:0,PreviousEventTypeId:-2,maxOutputRecords:12,Code:"",CodeURLText:"",EventPresenceLocation:0,EventVolunteeringTime:0,EventVolunteeringDay:-1,CategoryId:0,EventWorkFieldId:0,VolunteerWorkFieldCategoryGroupId:0};n.IsFilterSelected=function(){return n.SearchFilters.StatusId!=-1||n.SearchFilters.RegionId!=0||n.SearchFilters.CityId!=0||n.SearchFilters.EventTypeId!=0||n.SearchFilters.EventWorkFieldId!=0||n.SearchFilters.VolunteerWorkFieldCategoryGroupId!=0};n.EventStatusData=u.EventStatusData;n.EventStatusData=n.EventStatusData.slice(0,n.EventStatusData.length-2);n.SetFirstPage=function(){n.SearchFilters.PageNo=1};n.SetLastPage=function(){n.SearchFilters.PageNo=n.SearchFilters.AllPages};n.showalert=function(){alert("tst")};n.getNumber=function(n){return new Array(n)};n.ClearControls=function(){n.SearchFilters.PageNo=1;n.SearchFilters.StatusId=-1;n.SearchFilters.PreviousStatusId=-2;n.SearchFilters.StartFrom=1;n.SearchFilters.EndAt=5;n.SearchFilters.TotalPages=5;n.SearchFilters.AllPages=0;n.SearchFilters.TotalEvents=50;n.SearchFilters.CurrentPagePosition=1;n.SearchFilters.RegionId=0;n.SearchFilters.CityId=0;n.SearchFilters.PreviousRegionId=-2;n.SearchFilters.PreviousCityId=-2;n.SearchFilters.EventTypeId=0;n.SearchFilters.PreviousEventTypeId=-2;n.SearchFilters.maxOutputRecords=12;n.SearchFilters.Code="";n.SearchFilters.CodeURLText="";n.SearchFilters.EventPresenceLocation=0;n.SearchFilters.EventVolunteeringTime=0;n.SearchFilters.EventVolunteeringDay=-1;n.SearchFilters.CategoryId=0;n.SearchFilters.EventWorkFieldId=0;n.SearchFilters.VolunteerWorkFieldCategoryGroupId=0;n.AllEvents=[];n.GetEvents(1)};n.RegionSelectedChange=function(){};n.ChangeNoOfEventsPerPage=function(t){n.SearchFilters.maxOutputRecordsPrevious!=n.SearchFilters.maxOutputRecords&&(n.SearchFilters.maxOutputRecordsPrevious=n.SearchFilters.maxOutputRecords,t=1);n.GetEvents(t)};n.GetEvents=function(i){t.isLoading=!0;n.SearchFilters.PageNo=i;n.SearchFilters.PreviousStatusId=n.SearchFilters.StatusId;n.SearchFilters.PreviousRegionId=n.SearchFilters.RegionId;n.SearchFilters.PreviousCityId=n.SearchFilters.CityId;n.SearchFilters.PreviousEventTypeId=n.SearchFilters.EventTypeId;n.SearchFilters.CodeURLText=n.SearchFilters.Code==" "||n.SearchFilters.Code==""?"allEvent":n.SearchFilters.Code;r.Get(Resources.urls.privateEventsbyPageWithRegionsCitiesSQL+n.SearchFilters.PageNo+"/"+n.SearchFilters.StatusId+"/"+n.SearchFilters.RegionId+"/"+n.SearchFilters.CityId+"/"+n.SearchFilters.EventTypeId+"/"+n.SearchFilters.maxOutputRecords+"/"+n.SearchFilters.EventPresenceLocation+"/"+n.SearchFilters.EventVolunteeringTime+"/"+n.SearchFilters.EventVolunteeringDay+"/"+n.SearchFilters.CategoryId+"/"+n.SearchFilters.EventWorkFieldId+"/"+n.SearchFilters.CodeURLText+"/"+n.SearchFilters.VolunteerWorkFieldCategoryGroupId).then(function(i){if(t.isLoading=!1,i.length>0){n.SearchFilters.TotalEvents=i[0].TotalCount;n.SearchFilters.TotalPages=n.SearchFilters.TotalEvents/n.SearchFilters.maxOutputRecords;n.SearchFilters.AllPages=arrayFromRange(n.SearchFilters.StartFrom,n.SearchFilters.TotalPages);for(var r=0;r<i.length;r++)i[r].Description=strip(i[r].Description.replace(/(\r\n|\n|\r)/gm,""),90)+"...",i[r].Name=strip(i[r].Name.replace(/(\r\n|\n|\r)/gm,""),30)+"...",i[r].DepartmentNameAr&&i[r].DepartmentNameAr.length>40&&(i[r].DepartmentNameAr=strip(i[r].DepartmentNameAr.replace(/(\r\n|\n|\r)/gm,""),35)+"...");n.AllEvents=i}else n.SearchFilters.TotalEvents=0,n.SearchFilters.TotalPages=0,n.SearchFilters.AllPages=null,n.AllEvents=[],n.SearchFilters.StatusId!=-1&&n.SearchFilters.RegionId!=0&&n.SearchFilters.CityId!=0&&n.SearchFilters.EventTypeId!=0&&t.showInfoMessageFromKey("NoRecordsFound");n.isMapView?n.ShowView(2):n.ShowView(1)},function(){t.isLoading=!1;n.isMapView?n.ShowView(2):n.ShowView(1);t.showErrorMessage(n.Labels.ErrorMessage)})};n.GetEvents(1);n.eventsInfoDetails=function(i){n.IsAllowToShowEventDetails?(t.IsLoggedIn()?t.$state.transitionTo("PrivateEventsInfoDetails",{id:i,data:null}):t.ShowLoginMessage(n.Labels.YouMustLogInErrorMsg),$("#btnSearchFilters").focus()):t.$state.transitionTo("PrivateEventsInfoDetails",{id:i,data:null})};n.SwitchCalendar=function(){t.$state.transitionTo("EventsCalendar")};n.Messages={UpdateRegistrationTitle:t.GetResource("UpdateRegistrationTitle"),UpdateRegistrationMessage:t.GetResource("UpdateRegistrationMessage_"+n.ClientCode),Error_InvalidNICRedirect:t.GetResource("error_invalidNICRedirect"),Error_InvalidNICTitle:t.GetResource("error_invalidNICTitle"),UpdateRegistrationMessageRequired:t.GetResource("UpdateVolunteerInfoRequired"),NotAllowToJoinEvent:t.GetResource("NotAllowToJoinEvent"),VolunteerJoinedAnotherEvent:t.GetResource("VolunteerJoinedAnotherEvent")};n.myFunction=function(n){alert(n)};n.joinEvent=function(i){if(t.IsLoggedIn())if(t.IsVolunteer())if(n.CheckHasCompletedVolunteerInfo&&n.VolunteerInfoId!=-1&&n.VolunteerInfoId!=undefined){t.isLoading=!0;t.ShowUserMessage(n.Messages.UpdateRegistrationMessageRequired,0);f.swal({title:"",text:n.Messages.UpdateRegistrationMessageRequired,type:"info"});var u=o.href("EditRegister",{id:n.VolunteerInfoId});window.open(u,"_self");t.isLoading=!1}else r.Post(Resources.urls.addEventJoinRequest+i.Id).then(function(r){r.Success?(i.IsJoined=!0,t.showSuccessMessageFromKey(r.Message),n.GetEvents(1)):r.Message=="UpdateRegistrationTitle"?(t.ShowUserMessage(n.Messages.UpdateRegistrationTitle,0),f.swal({title:"",text:n.Messages.UpdateRegistrationMessage,type:"info"}).then(function(){t.$state.transitionTo("EditRegistration",{id:angular.toJson(t.GetCurrentVolunteerId())})})):r.Message=="InvalidNICAccount"?(t.ShowUserMessage(n.Messages.UpdateRegistrationTitle,0),f.swal({title:n.Messages.Error_InvalidNICTitle,text:n.Messages.Error_InvalidNICRedirect,type:"info"}).then(function(){t.$state.transitionTo("UserVerification",{id:angular.toJson(t.GetCurrentVolunteerId())})})):r.Message=="NotAllowToJoinEvent"?(t.ShowUserMessage(n.Messages.UpdateRegistrationTitle,0),f.swal({title:"",text:n.Messages.NotAllowToJoinEvent,type:"info"})):r.Message=="VolunteerJoinedAnotherEvent"?(t.ShowUserMessage(n.Messages.UpdateRegistrationTitle,0),f.swal({title:"",text:n.Messages.VolunteerJoinedAnotherEvent,type:"info"})):(t.showInfoMessageFromKey(r.Message),n.GetEvents(1))});else t.showVolunteerMessage(n.Labels.YouMustBeVolunteer);else t.ShowLoginMessage(n.Labels.YouMustLogIn),$("#btnSearchFilters").focus()}}]);VsApp.controller("PrivateEventsInfoDetailsController",["$scope","AuthService","$rootScope","$cookies","$window","UtilsApis","$localStorage","api","$stateParams","swangular","$state",function(n,t,i,r,u,f,e,o,s,h,c){function l(n){if(window.clipboardData&&window.clipboardData.setData)return clipboardData.setData("Text",n);if(document.queryCommandSupported&&document.queryCommandSupported("copy")){var t=document.createElement("textarea");t.textContent=n;t.style.position="fixed";document.body.appendChild(t);t.select();try{return document.execCommand("copy")}catch(i){return console.warn("Copy to clipboard failed.",i),!1}finally{document.body.removeChild(t)}}}n.eventDetails=null;i.CurrentPage="PrivateEventsInfo";i.isLoading=!0;n.errorLoading=null;n.myMap=null;n.labels=i.Labels;n.id=s.id;n.eventID=0;n.ClientCode=i.ConfigKey().ClientCode;n.GetImage=function(n){return n!=null&&n.ImageFileId!==null&&n!=undefined?i.utilsU+"DownloadEventInfo/"+n.ImageFileId:"../../Content/Images/"+i.ConfigKey().ClientCode+"/default.png"};n.CheckHasCompletedVolunteerInfo=n.ClientCode=="NEOM";n.mapOptions={center:new google.maps.LatLng(24,45),zoom:15,mapTypeId:google.maps.MapTypeId.ROADMAP};n.ClientCode=="MOH"?o.Get(i.utilsU+"home/events/privateEventdetailsByEventID/"+n.id).then(function(t){i.isLoading=!1;n.eventDetails=t;n.eventDetails&&n.eventDetails.EventVolunteeringDays&&(n.eventDetails.EventVolunteeringDays=n.eventDetails.EventVolunteeringDays.replace("0",n.Labels.lbl_Sunday),n.eventDetails.EventVolunteeringDays=n.eventDetails.EventVolunteeringDays.replace("1",n.Labels.lbl_Monday),n.eventDetails.EventVolunteeringDays=n.eventDetails.EventVolunteeringDays.replace("2",n.Labels.lbl_Tuesday),n.eventDetails.EventVolunteeringDays=n.eventDetails.EventVolunteeringDays.replace("3",n.Labels.lbl_Wednesday),n.eventDetails.EventVolunteeringDays=n.eventDetails.EventVolunteeringDays.replace("4",n.Labels.lbl_Thursday),n.eventDetails.EventVolunteeringDays=n.eventDetails.EventVolunteeringDays.replace("5",n.Labels.lbl_Friday),n.eventDetails.EventVolunteeringDays=n.eventDetails.EventVolunteeringDays.replace("6",n.Labels.lbl_Saturday));n.eventDetails&&n.eventDetails.ConditionSkills&&(n.eventDetails.ConditionSkills=n.eventDetails.ConditionSkills.split("\n"));n.eventDetails&&n.eventDetails.Responsibilities&&(n.eventDetails.Responsibilities=n.eventDetails.Responsibilities.split("\n"));n.eventDetails&&n.eventDetails.Location&&(n.eventDetails.Location=n.eventDetails.Location.split("\n"));n.mapOptions.center=new google.maps.LatLng(n.eventDetails.Latitude,n.eventDetails.Longitude);n.ImagePath=n.GetImage(t);i.IsLoggedIn()&&n.IsJoinAllowed()},function(){i.isLoading=!1;i.showErrorMessage(n.Labels.ErrorMessage)}):o.Get(i.utilsU+"home/events/privateEventdetails/"+n.id).then(function(t){i.isLoading=!1;n.eventDetails=t;n.eventDetails&&n.eventDetails.EventVolunteeringDays&&(n.eventDetails.EventVolunteeringDays=n.eventDetails.EventVolunteeringDays.replace("0",n.Labels.lbl_Sunday),n.eventDetails.EventVolunteeringDays=n.eventDetails.EventVolunteeringDays.replace("1",n.Labels.lbl_Monday),n.eventDetails.EventVolunteeringDays=n.eventDetails.EventVolunteeringDays.replace("2",n.Labels.lbl_Tuesday),n.eventDetails.EventVolunteeringDays=n.eventDetails.EventVolunteeringDays.replace("3",n.Labels.lbl_Wednesday),n.eventDetails.EventVolunteeringDays=n.eventDetails.EventVolunteeringDays.replace("4",n.Labels.lbl_Thursday),n.eventDetails.EventVolunteeringDays=n.eventDetails.EventVolunteeringDays.replace("5",n.Labels.lbl_Friday),n.eventDetails.EventVolunteeringDays=n.eventDetails.EventVolunteeringDays.replace("6",n.Labels.lbl_Saturday));n.eventDetails&&n.eventDetails.ConditionSkills&&(n.eventDetails.ConditionSkills=n.eventDetails.ConditionSkills.split("\n"));n.eventDetails&&n.eventDetails.Responsibilities&&(n.eventDetails.Responsibilities=n.eventDetails.Responsibilities.split("\n"));n.eventDetails&&n.eventDetails.Location&&(n.eventDetails.Location=n.eventDetails.Location.split("\n"));n.mapOptions.center=new google.maps.LatLng(t.Latitude,t.Longitude);n.ImagePath=n.GetImage(t);i.IsLoggedIn()&&n.IsJoinAllowed()},function(){i.isLoading=!1;i.showErrorMessage(n.Labels.ErrorMessage)});i.IsLoggedIn()&&o.Get("EventsAdmin/HasCompletedVolunteerInfo/").then(function(t){n.VolunteerInfoId=t});n.IsJoinAllowed=function(){o.Post(i.utilsU+"home/events/isVolunteerAcceptedReleasedForEvent/"+n.id).then(function(t){n.ShowJoin=t!=null?!t:!0},function(){i.isLoading=!1;i.showErrorMessage(n.Labels.ErrorMessage)})};o.Post(i.eventsU+"GetJoinedCount/"+n.id).then(function(t){t.Success!=!1&&(n.Counter=t)},function(){});n.onMapIdle=function(){var t,i;n.eventDetails!=null&&(t=new google.maps.LatLng(n.eventDetails.Latitude,n.eventDetails.Longitude),n.mapOptions.center=t,i=new google.maps.Marker({position:t,map:n.myMap,icon:{path:"M0-48c-9.8 0-17.7 7.8-17.7 17.4 0 15.5 17.7 30.6 17.7 30.6s17.7-15.4 17.7-30.6c0-9.6-7.9-17.4-17.7-17.4z",rotation:0,strokeOpacity:.9,scale:.75,anchor:new google.maps.Point(16,16),fillColor:"red",fillOpacity:.9,zIndex:1e3,strokeColor:"black"}}),function(n,t){google.maps.event.addListener(n,"click",function(){window.open("https://www.google.com/maps?ll="+t.Latitude+","+t.Longitude+"&z=15&t=m&hl=en-US&gl=SA&mapclient=embed&daddr=,@"+t.Latitude+","+t.Longitude)})}(i,n.eventDetails),n.myMap.setCenter(t))};n.Messages={UpdateRegistrationTitle:i.GetResource("UpdateRegistrationTitle"),UpdateRegistrationMessage:i.GetResource("UpdateRegistrationMessage_"+n.ClientCode),Error_InvalidNICRedirect:i.GetResource("error_invalidNICRedirect"),Error_InvalidNICTitle:i.GetResource("error_invalidNICTitle"),UpdateRegistrationMessageRequired:i.GetResource("UpdateVolunteerInfoRequired")};n.joinEvent=function(t){if(i.IsLoggedIn())if(i.IsVolunteer())if(t.IsJoined=!0,n.CheckHasCompletedVolunteerInfo&&n.VolunteerInfoId!=-1&&n.VolunteerInfoId!=undefined){i.isLoading=!0;i.ShowUserMessage(n.Messages.UpdateRegistrationMessageRequired,0);h.swal({title:"",text:n.Messages.UpdateRegistrationMessageRequired,type:"info"});var r=c.href("EditRegister",{id:n.VolunteerInfoId});window.open(r,"_self");i.isLoading=!1}else o.Post(i.utilsU+"home/events/addeventjoinrequest/"+t.Id).then(function(t){t.Success?i.showSuccessMessageFromKey(t.Message):t.Message=="UpdateRegistrationTitle"?(i.ShowUserMessage(n.Messages.UpdateRegistrationTitle,0),h.swal({title:"",text:n.Messages.UpdateRegistrationMessage,type:"info"}).then(function(){i.$state.transitionTo("EditRegistration",{id:angular.toJson(i.GetCurrentVolunteerId())})})):t.Message=="InvalidNICAccount"?(i.ShowUserMessage(n.Messages.UpdateRegistrationTitle,0),h.swal({title:n.Messages.Error_InvalidNICTitle,text:n.Messages.Error_InvalidNICRedirect,type:"info"}).then(function(){i.$state.transitionTo("UserVerification",{id:angular.toJson(i.GetCurrentVolunteerId())})})):(i.showInfoMessageFromKey(t.Message),n.GetEvents(1))});else i.showVolunteerMessage(n.Labels.YouMustBeVolunteer);else i.ShowLoginMessage(n.Labels.YouMustLogIn)};n.getNumber=function(n){return new Array(n)};n.replacetext=function(n){return n=String(n).trim(),n.length>0?n.replace(/[\r\n]+/g,"<br>"):null};n.shareEventViaWhatsapp=function(r){n.eventID=r;var f=i.ConfigKey().VolunteerURL,u=i.Labels.Sharetheeventmessage+" - ";u=u+f+CurrentLang+"/PrivateEventsInfoDetails/"+r;finalUrl=t.GetSocialMedialUrl(u,"whatsapp");window.open(finalUrl)};document.querySelector("#shareEventViaWhatsapp").onclick=function(){var f=i.ConfigKey().VolunteerURL,r=i.Labels.Sharetheeventmessage+" - ",u;r=r+f+CurrentLang+"/PrivateEventsInfoDetails/"+n.eventID;finalUrl=t.GetSocialMedialUrl(r,"whatsapp");u=l(finalUrl);console.log("copied?",u)}}]);VsApp.controller("PublicImageGalleryController",["$scope","AuthService","$rootScope","$cookies","$window","UtilsApis","$localStorage","api","$sce","swangular","$timeout",function(n,t,i,r,u,f,e,o,s,h,c){$=jQuery;i.CurrentPage="ImageGallery";n.AllImages=[];i.isLoading=!0;n.errorLoading=null;n.LoadImages=function(){o.Get(i.utilsU+"home/imagegallery/all/150").then(function(t){i.isLoading=!1;n.AllImages=t},function(){i.isLoading=!1;i.showErrorMessage(n.Labels.ErrorMessage)});c(function(){lightbox()},15)};n.LoadImages();n.trustSrc=function(n){return s.trustAsResourceUrl(n)}}]);VsApp.controller("RegisterController",["$scope","AuthService","$rootScope","$cookies","$window","UtilsApis","$localStorage","api","$stateParams","$timeout","$uibModal","Lookups","$http","$filter",function(n,t,i,r,u,f,e,o,s,h,c,l,a,v){var p,w,b,y;$=jQuery;p="Registration";i.CurrentPage=p;n.HasIAM=i.ConfigKey().HasIAM;n.DisableCategory=!0;n.SysEnvironment=i.ConfigKey().SysEnvironment;n.ClientCode=i.ConfigKey().ClientCode;n.HasClientEmployeeVerification=i.ConfigKey().HasClientEmployeeVerification;n.IsCategoryAllowed=!1;n.LogoImage="../../TemplateScripts/assets/images/logo"+n.ClientCode+".png";n.jobRoleTypesEnum={Student:1,FreshGrad:2,MidLevel:3,Management:4,SuperiorManagement:5,Consultant:6,Executives:7};n.ShowRegistrationSection=null;n.isLoading=!1;n.errorLoading=null;n.regExIdNo="^(10|11|20|21|22|23|24|25)([0-9]{8})$";n.imageAllowedTypes=l.imageAllowedTypes;n.docsAllowedTypes=l.docsAllowedTypes;n.mixAllowedTypes=l.mixAllowedTypes;n.ValidUserName=!1;n.userNotes="";n.CertificateFor={Graduation:0,Expertise:1,VolunteerWork:2,OtherAttachment:3,PersonalPhoto:4,IdPhoto:5,Training:6,News:7,Slides:8,University:9,SCFHS:10,VolunteerCertificate:11};n.Cities=[];n.Nationalities=[];n.Regions=[];n.Countries=[];n.Languages=[];n.ProfessioncyLevels=[];n.RegStatuses=[];n.Professions=[];n.HijriDays=[];n.GregorianDays=[];n.Months=[1,2,3,4,5,6,7,8,9,10,11,12];n.GregorianYears=[];n.HijriYears=[];n.erroMessage="";n.errorEmergency="";n.errorMobile="";n.IsEditable=!0;n.IsVisibleAppNotes=!1;n.IsEditableAppNotes=!0;n.isDraft=!0;n.isSubmit=!0;n.ConfirmPassword="";n.errorConfirmPassword="";n.statusBeforeSavingorSubmitting=0;n.AgreementApproved=!1;n.WorkFields=[];n.IsRegistered=!1;n.IdTypes=l.IdTypesData;n.JobRoleTypes=l.JobRoleTypesData;n.EmployeeCodeErrorMessage=null;n.EmployeeCodeSuccessMessage=null;n.GenricCodeErrorMessage=null;n.TermsConditionLabel=n.Labels["AggreementApproval_"+n.ClientCode];s.id=i.GetCurrentVolunteerId();n.Registration={SaveOnly:!0,RegistrationStatusId:1,Language:CurrentLang,VolunteerInfo:{VolunteerId:s.id,Title:"",FirstName:"",SecondName:"",ThirdName:"",LastName:"",FirstNameEn:"",SecondNameEn:"",ThirdNameEn:"",LastNameEn:"",BirthDate:null,BirthDateAr:null,GenderType:1,MaritalStatus:1,JobRoleType:null,UniversityYear:null,StudentUniversityId:null,UniversityAttachment:{Data:null,CertificateFor:n.CertificateFor.University},ChildrenCount:null,BloodGroup:null,GeneticDiseasesExist:!1,GeneticDiseases:"",NationalityId:null,IdType:null,IdNumber:null,IdExpiryDate:"",IdExpiryDateAr:"",PassportNo:"",PassportExpDate:"",PassportIssueCountryId:null,RegionId:null,CityId:null,District:"",Street:"",BuildingNo:"",PostalCode:"",ExtraNumber:"",Phone:"",AbilityToStayAbroad:null,AbilityToStayAbroadDuration:null,AbilityToCallDuringWork:null,AbilityToDedicate:null,AbilityToCallDuringVacations:null,StatusId:null,UserId:null,User:{IsHashed:!1},RegDate:new Date,PhotoAttachment:{Data:null,CertificateFor:n.CertificateFor.PersonalPhoto},IdAttachment:{Data:null,CertificateFor:n.CertificateFor.IdPhoto},RegistrationStatusId:1,AppointmentTime:null,AppointmentLocation:null,RejectReason:null,EmergencyContacts:[{ContactRelationId:null,MobileNumber:null,Name:null}],GraduationCertificates:[{CertificatePhoto:{Data:null,CertificateFor:n.CertificateFor.Graduation}}],Expertises:[{ExperienceLetter:{Data:null,CertificateFor:n.CertificateFor.Expertise}}],Trainings:[{CertificatePhoto:{Data:null,CertificateFor:n.CertificateFor.Training}}],VolunteerCertificates:[{CertificateAttachments:{Data:null,CertificateFor:n.CertificateFor.VolunteerCertificate}}],Languages:[{}],Skills:[],VolunteerWorks:[{Certificate:{Data:null,CertificateFor:n.CertificateFor.VolunteerWork}}],PreferredWorkFields:[],PreferredWorkCities:[{RegionId:1,CityId:1}],OtherAttachments:[{Data:null,CertificateFor:n.CertificateFor.OtherAttachment}],RegistrationNotes:[],IsSpecialNeeds:null,SpecialNeedsDetails:"",ReviewerName:"",ReviewerId:null,JoinDate:null,CfhsNumber:null,CfhsIssueDate:null,CfhsExpiryDate:null,CfhsStatusId:null,CfhsAttachment:{Data:null,CertificateFor:n.CertificateFor.SCFHS},VolunteeringHours:0,BankName:"",IBAN:"",IsSRCAEmployee:!1,TeamId:null,EmployeeCode:null,CategoryId:n.ClientCode=="NEOM"?1:null,UserSubCategoryLevel1Id:null,UserSubCategoryLevel2Id:null,UserExperienceLevelId:null,ContactedCovidStatus:null,ProfessionId:null,IsEmployee:!1}};n.HasIAM==!0&&(s.id||window.loginData||n.$state.transitionTo(LoginState));s.id?(n.isLoading=!0,n.errorLoading=null,o.Get(i.volU+"volunteerRegistration").then(function(t){n.IsRegistered=!0;n.processDates(t);CurrentLang=="ar"?$.each(t.VolunteerInfo.Skills,function(n,t){t.text=t.NameAr}):$.each(t.VolunteerInfo.Skills,function(n,t){t.text=t.Name});n.Registration=t;n.Registration.Language=CurrentLang;n.isLoading=!1;n.IsEditable=n.Registration.RegistrationStatusId==1||n.getCurrentStateName()=="EditRegister";n.IsEditable&&(n.ShowRegistrationSection=!0);n.allowAttachmentsUpdate=n.Registration.RegistrationStatusId!=5&&n.Registration.RegistrationStatusId!=6&&i.IsVolunteer()&&n.IsEditable;n.IsVisibleAppNotes=n.Registration.RegistrationStatusId>1||n.IsAdminOrStaff();n.IsEditableAppNotes=n.Registration.RegistrationStatusId<5&&n.IsAdminOrStaff();n.ConfirmPassword=n.Registration.VolunteerInfo.User.Password;n.Registration.RegistrationStatusId>1&&(n.AgreementApproved=!0);n.FirstNameExist=n.Registration.VolunteerInfo.FirstName!=""&&n.Registration.VolunteerInfo.FirstName!=null;n.FirstNameEnExist=n.Registration.VolunteerInfo.FirstNameEn!=""&&n.Registration.VolunteerInfo.FirstNameEn!=null;n.SecondNameExist=n.Registration.VolunteerInfo.SecondName!=""&&n.Registration.VolunteerInfo.SecondName!=null;n.SecondNameEnExist=n.Registration.VolunteerInfo.SecondNameEn!=""&&n.Registration.VolunteerInfo.SecondNameEn!=null;n.ThirdNameExist=n.Registration.VolunteerInfo.ThirdName!=""&&n.Registration.VolunteerInfo.ThirdName!=null;n.ThirdNameEnExist=n.Registration.VolunteerInfo.ThirdNameEn!=""&&n.Registration.VolunteerInfo.ThirdNameEn!=null;n.LastNameExist=n.Registration.VolunteerInfo.LastName!=""&&n.Registration.VolunteerInfo.LastName!=null;n.LastNameEnExist=n.Registration.VolunteerInfo.LastNameEn!=""&&n.Registration.VolunteerInfo.LastNameEn!=null;try{n.Registration.VolunteerInfo.GraduationCertificates.length<=0&&(n.Registration.VolunteerInfo.GraduationCertificates=[{CertificatePhoto:{Data:null,CertificateFor:n.CertificateFor.Graduation}}])}catch(r){}o.Post(i.volU+"getCurrentEventName").then(function(t){n.CurrentWorkingEvent=t.Success?t.Message:"N/A"},function(){})},function(){n.isLoading=!1;n.errorLoading=n.Labels.ErrorLoadingData;n.IsEditable=!1})):n.Registration.VolunteerInfo.User.Email=null;n.BirthDate={HijriDay:null,HijriMonth:null,HijriYear:null,GregDay:null,GregMonth:null,GregYear:null,Checked:!n.Registration.VolunteerInfo.VolunteerId||n.Registration.VolunteerInfo.VolunteerId&&n.Registration.VolunteerInfo.BirthDateAr};n.formats=["yyyy-MM-dd","dd-MMMM-yyyy","dd.MM.yyyy","shortDate"];n.dateFormat=n.formats[0];n.altInputFormats=["M!/d!/yyyy"];n.dateOptions={formatYear:"yyyy",maxDate:new Date(2030,5,22),minDate:new Date(1950,1,1),startingDay:1,todayBtn:!1,clearBtn:!1,showButtonBar:!1};n.YesterdayDate=function(){var n=new Date;return n.setDate(n.getDate()-1)};n.dateYesterday=n.YesterdayDate();n.TommorowDate=function(){var n=new Date;return n.setDate(n.getDate()+1)};n.dateTomorrow=n.TommorowDate();n.birthDatePopup={opened:!1};n.birthDatePopupOpen=function(){n.birthDatePopup.opened=!0};n.getValidIdTypes=function(t){return n.IdTypes.filter(function(n){return t==44&&n.value==0||t!=44&&n.value==1})};f.getLookUp(i.utilsU+"trainingcertificates/read").then(function(t){n.TrainingCertificates=t});f.getLookUp(i.utilsU+"userexperiencelevel/read").then(function(t){n.UserExperienceLevel=t});f.getLookUp(i.utilsU+"usersubcategorieslevel1/read").then(function(t){n.UserSubCategoriesLevel1=t});f.getLookUp(i.utilsU+"citiesRegistration/read").then(function(t){n.Cities=t});f.getLookUp(i.utilsU+"Nationalities/read").then(function(t){n.Nationalities=t});f.getLookUp(i.utilsU+"regionsRegistration/read").then(function(t){n.Regions=t.filter(function(n,t){return t.Id!=16})});f.getLookUp(i.utilsU+"countries/read").then(function(t){n.Countries=t});f.getLookUp(i.utilsU+"Languages/read").then(function(t){n.Languages=t});f.getLookUp(i.utilsU+"Language/ProfessioncyLevels/read").then(function(t){n.ProfessioncyLevels=t});f.getLookUp(i.utilsU+"Professions/read").then(function(t){n.Professions=t});f.getLookUp(i.utilsU+"regStatus/read").then(function(t){n.RegStatuses=t});f.getLookUp(i.utilsU+"workFields/read").then(function(t){n.WorkFields=t});o.Get(i.utilsU+"hijriDays/read/1/1432").then(function(t){n.HijriDays=n.IdExpiryHijriDays=n.CertificateHijriDays=n.CfhsIssueDateHijriDays=n.CfhsExpiryDateHijriDays=t});o.Get(i.utilsU+"gregDays/read/1").then(function(t){n.GregorianDays=n.IdExpiryGregorianDays=n.CertificateGregorianDays=n.CfhsIssueDateGregorianDays=n.CfhsExpiryDateGregorianDays=t});o.Get(i.utilsU+"hijriYearsWithCount/read/1340/102").then(function(t){n.HijriYears=t});o.Get(i.utilsU+"gregYears/read/null").then(function(t){n.GregorianYears=t});o.Get(i.utilsU+"hijriYears/read/1441").then(function(t){n.IdExpiryHijriYears=t});o.Get(i.utilsU+"gregYears/read/2021").then(function(t){n.IdExpiryGregorianYears=t});n.getDays=function(){n.BirthDate.GregMonth&&o.Get(i.utilsU+"gregDays/read/"+n.BirthDate.GregMonth).then(function(t){n.GregorianDays=t;n.BirthDate.GregDay>n.GregorianDays.length&&(n.BirthDate.GregDay=1)})};n.getHijriDays=function(){n.BirthDate.HijriMonth&&n.BirthDate.HijriYear&&o.Get(i.utilsU+"hijriDays/read/"+n.BirthDate.HijriMonth+"/"+n.BirthDate.HijriYear).then(function(t){n.HijriDays=t;n.BirthDate.HijriDay>n.HijriDays.length&&(n.BirthDate.HijriDay=1)})};n.certificateChoicesOptions={valueField:"Id",labelField:"Name",create:!0,maxItems:1,createOnBlur:!0,closeAfterSelect:!0,selectOnTab:!0,addEmptyOption:!1,onChange:function(){}};n.setCurrentJob=function(t){t.IsCurrentJob&&n.Registration.VolunteerInfo.Expertises.forEach(function(n){n!=t&&(n.IsCurrentJob=!1)})};n.onSelected=function(){n.Registration.VolunteerInfo.PreferredWorkFields=[];n.Registration.VolunteerInfo.UserSubCategoryLevel1Id=null;n.Registration.VolunteerInfo.UserSubCategoryLevel2Id=null;n.Registration.VolunteerInfo.UserExperienceLevelId=null};n.onSelectedSubCategoriesLevel1=function(){n.SubCategoryLevel1Status=n.ControlEnableDisableStatus(n.UserSubCategoriesLevel2,n.Registration.VolunteerInfo.UserSubCategoryLevel1Id,"SubCategoryLevel1Id");n.Registration.VolunteerInfo.PreferredWorkFields=[];n.Registration.VolunteerInfo.UserSubCategoryLevel2Id=null;n.Registration.VolunteerInfo.UserExperienceLevelId=null};n.toggleSelection=function(t,i,r){var u=n.getIndexByProperty(t,i,r);u>-1?i.splice(u,1):i.push(t)};n.getIndexByProperty=function(n,t,i){if(!t)return-1;var r=t.map(function(n){return n[i]});return r&&r.length?$(r).index(n[i]):-1};n.validateInitialFields=function(t){var r="",u=n.Labels.AllFieldsRequired,i=n.Registration.VolunteerInfo,f,e;if(n.erroMessage="",n.errorConfirmPassword="",n.errorEmergency="",n.errorLanguage="",n.PleaseProvideFullEmergencyContacts="",n.PleaseProvideFullAttachmentDetails="",n.PleaseProvideFullVolunteerWorkDetails="",n.errorWorkFields="",n.isDraft=!1,n.errorMobile="",(!i.FirstName||!i.LastName||i.GenderType<0)&&(n.erroMessage=u,r="personalInfoSection"),n.BirthDate.Checked?n.IsRegistered&&n.BirthDate.GregMonth&&n.BirthDate.GregDay&&n.BirthDate.GregYear?(i.BirthDate=n.BirthDate.GregMonth+"/"+n.BirthDate.GregDay+"/"+n.BirthDate.GregYear,i.BirthDateAr=null):n.IsRegistered&&(n.erroMessage=u,r="personalInfoSection"):n.IsRegistered&&n.BirthDate.HijriDay&&n.BirthDate.HijriMonth&&n.BirthDate.HijriYear?(i.BirthDateAr=n.BirthDate.HijriYear+"-"+n.BirthDate.HijriMonth+"-"+n.BirthDate.HijriDay,i.BirthDate=null):n.IsRegistered&&(n.erroMessage=u,r="personalInfoSection"),i.User.MobileNumber){if(i.User.MobileNumber.length!=10||(f=/^[05][0-9]{9}$/,!f.test(i.User.MobileNumber)))return r="personalInfoSection",n.erroMessage=n.Labels.MobileNumberErr,r}else r="personalInfoSection",n.erroMessage=u;if(r||(n.IsRegistered&&i.NationalityId<=0?(r="IdSection",n.erroMessage=u):i.IdType=i.NationalityId==44?0:1,n.IsRegistered&&(i.IdType<0||!i.IdNumber)&&(r="IdSection",n.erroMessage=u),i.User.Email&&i.User.MobileNumber||(r="IdSection",n.erroMessage=u),r)||(i.RegionId&&i.CityId||(r="addressSection",n.erroMessage=u),r)||(t&&(n.ClientCode!="MOH"&&(i.ContactedCovidStatus=0),n.IsRegistered&&(!i.BloodGroup||i.GeneticDiseasesExist&&!i.GeneticDiseases||i.ContactedCovidStatus==null||i.ContactedCovidStatus==undefined)&&(r="medicalInformationSection",n.erroMessage=u)),r))return r;if(t){if(n.IsRegistered&&!i.ProfessionId)return n.errorWorkFields=n.Labels.SelectProfession,"specialitiesSection";if(n.IsRegistered&&!i.UserSubCategoryLevel1Id)return n.errorWorkFields=n.Labels.SelectSpecialitiesLevel1,"specialitiesSection";if(n.IsRegistered&&!i.PreferredWorkFields.length>0)return n.errorWorkFields=n.Labels.SelectOneWorkFields,"specialitiesSection";n.errorWorkFields=null}return r?r:(i.User.Password&&n.ConfirmPassword||(r="userInfoSection",n.erroMessage=u),!i.User.Password||!n.ConfirmPassword)?(r="userInfoSection",n.erroMessage=n.Labels.AllFieldsRequired,r):(i.User.Password&&n.ConfirmPassword!=i.User.Password&&(r="userInfoSection",n.errorConfirmPassword=n.Labels.ErrorConfirmPassword,n.erroMessage=u),e=/\w+([-+.']\w+)*\@neom\.com/,n.HasClientEmployeeVerification&&i.IsEmployee&&!e.test(i.User.Email))?(r="userInfoSection",n.erroMessage=n.Labels.InvalidEmailNeom,r):r};n.saveRegistration=function(){n.isSubmit=!0;n.errorSaving=null;n.errorWorkFields=null;n.validateInitialFields(!1);n.erroMessage||(n.statusBeforeSavingorSubmitting=n.Registration.RegistrationStatusId,n.Registration.RegistrationStatusId=1,n.save())};n.submitRegistration=function(t){n.isSubmit=!1;var i=n.validateInitialFields(!0);n.errorSaving=n.AgreementApproved?null:n.Labels.AggrementNeedsApproval;i&&$("#"+i).offset()&&$("html, body").animate({scrollTop:$("#"+i).offset().top-60},1e3);n.erroMessage||n.errorSaving||n.errorWorkFields||n.registrationForm.$valid&&(n.statusBeforeSavingorSubmitting=n.Registration.RegistrationStatusId,t&&(n.Registration.RegistrationStatusId=2),n.save())};n.CommonSaveAction=function(t){t.Success?(referencenumber=t.Data.ReferenceNumber,n.getCurrentStateName()=="EditRegister"?i.showSuccessMessageFromKey("UpdatedSuccessfully",function(){h(function(){i.$state.transitionTo(DashboardState)},100)}):t.Data.HasEmailVerification?i.$state.transitionTo(ThankYouState):n.Registration.RegistrationStatusId==2?i.showSuccessMessage(n.Labels["RegistrationSuccessfull_"+n.ClientCode]+referencenumber,function(){h(function(){i.$state.transitionTo(ThankYouState)},100)}):i.$state.transitionTo(ThankYouState)):(n.statusBeforeSavingorSubmitting==1&&(n.Registration.RegistrationStatusId=1),n.errorSaving=n.Labels[t.Message])};n.save=function(){n.isLoading=!0;n.isSaving=!0;n.errorSaving=null;n.IsCategoryAllowed||(n.Registration.VolunteerInfo.CategoryId=1);n.Registration.VolunteerInfo.User.UserName=n.Registration.VolunteerInfo.User.Email;n.Registration.VolunteerInfo.FirstNameEn=n.Registration.VolunteerInfo.FirstName;n.Registration.VolunteerInfo.SecondNameEn=n.Registration.VolunteerInfo.SecondName;n.Registration.VolunteerInfo.ThirdNameEn=n.Registration.VolunteerInfo.ThirdName;n.Registration.VolunteerInfo.LastNameEn=n.Registration.VolunteerInfo.LastName;o.Post(i.volU+"registration",null,n.Registration).then(function(t){n.isLoading=!1;n.isSaving=!1;message="";i.ConfigKey().HasMandatoryCoursesSaveAction==!0?n.HasMandatoryCoursesSaveAction(t):n.CommonSaveAction(t)},function(){n.isLoading=!1;n.isSaving=!1;n.statusBeforeSavingorSubmitting==1&&(n.Registration.RegistrationStatusId=1);n.errorSaving=n.Labels.ErrorSavingData})};n.rejectRegistration=function(){n.openModal("md",null,"reject.html").then(function(t){n.isSaving=!0;o.Post("/RegistrationAdmin/registrationAdmin_RejectAction",null,{Id:n.Registration.VolunteerInfo.VolunteerId,RejectReason:t.RejectReason}).then(function(t){n.isSaving=!1;t&&t.Result?(n.Registration.RegistrationStatusId=6,i.$state.transitionTo("Submitted")):n.errorSaving=t&&t.Message?n.Labels[t.Message]:n.Labels.ErrorSavingData})},function(){})};n.approveRegistration=function(){var t=n.validateInitialFields(!0);n.errorSaving=n.AgreementApproved?null:n.Labels.AggrementNeedsApproval;t&&$("#"+t).offset()&&$("html, body").animate({scrollTop:$("#"+t).offset().top-60},1e3);n.erroMessage||n.errorSaving||n.errorWorkFields||n.registrationForm.$valid&&(n.Registration.RegistrationStatusId==2?n.openModal("md",null,"InitialAccept.html","InitialAccept.html").then(function(t){if(t.AppointmentDatePart&&t.AppointmentTimePart&&t.AppointmentLocation&&t.ReviewerId)if(t.AppointmentDatePart!=""&&t.AppointmentTimePart!=""&&t.AppointmentLocation!=""&&t.ReviewerId!=""){n.isSaving=!0;var r=new Date(t.AppointmentDatePart),u=t.AppointmentTimePart.getHours(),f=t.AppointmentTimePart.getMinutes();r.setHours(u,f);o.Post("/RegistrationAdmin/registrationAdmin_UpdateInitialAction",null,{Id:n.Registration.VolunteerInfo.VolunteerId,AppointmentTime:r,AppointmentLocation:t.AppointmentLocation,ReviewerId:t.ReviewerId}).then(function(t){n.isSaving=!1;t&&t.Result?(n.Registration.RegistrationStatusId=3,i.$state.transitionTo("Submitted")):n.errorSaving=t&&t.Message?n.Labels[t.Message]:n.Labels.ErrorSavingData})}else i.showErrorMessage(n.Labels.PleasefillAllDetails);else i.showErrorMessage(n.Labels.PleasefillAllDetails)},function(){}):n.Registration.RegistrationStatusId==3&&n.openModal("md",null,"Confirm.html").then(function(){n.isSaving=!0;o.Post("/RegistrationAdmin/registrationAdmin_AcceptAction",{registrationId:n.Registration.VolunteerInfo.VolunteerId}).then(function(t){n.isSaving=!1;t&&t.Result?(n.Registration.RegistrationStatusId=5,i.$state.transitionTo("Accepted")):n.errorSaving=t&&t.Message?n.Labels[t.Message]:n.Labels.ErrorSavingData})},function(){}))};n.openModal=function(n,t,i,r){var u=t?angular.element($document[0].querySelector(".modal-demo "+t)):undefined,f=c.open({animation:!1,ariaLabelledBy:"modal-title",ariaDescribedBy:"modal-body",templateUrl:i,controller:"ModalInstanceCtrl",controllerAs:"$ctrl",size:n,appendTo:u,resolve:{data:function(){return r}}});return f.result};n.openNotesModal=function(n,t,i,r){var u=t?angular.element($document[0].querySelector(".modal-demo "+t)):undefined,f=c.open({animation:!1,ariaLabelledBy:"modal-title",ariaDescribedBy:"modal-body",templateUrl:i,controller:"appNotesCtrl",controllerAs:"$ctrl",size:n,appendTo:u,resolve:{data:function(){return r}}});return f.result};n.processDates=function(t){var r,i,u;if(t&&(t.VolunteerInfo.BirthDate&&(t.VolunteerInfo.BirthDate=new Date(t.VolunteerInfo.BirthDate),n.BirthDate.GregMonth=t.VolunteerInfo.BirthDate.getMonth()+1,n.BirthDate.GregYear=t.VolunteerInfo.BirthDate.getFullYear(),n.getDays(),n.BirthDate.GregDay=t.VolunteerInfo.BirthDate.getDate()),t.VolunteerInfo.BirthDateAr&&(u=t.VolunteerInfo.BirthDateAr.split("-"),n.BirthDate.HijriYear=u[0],n.BirthDate.HijriMonth=u[1],n.getHijriDays(),n.BirthDate.HijriDay=u[2]),n.BirthDate.Checked=!n.Registration.VolunteerInfo.VolunteerId||!!n.Registration.VolunteerInfo.VolunteerId&&!!t.VolunteerInfo.BirthDate,t.VolunteerInfo.Trainings))for(r=0;r<t.VolunteerInfo.Trainings.length;r++)i=t.VolunteerInfo.Trainings[r],i&&i.StartDate&&(i.StartDate=new Date(i.StartDate)),i&&i.EndDate&&(i.EndDate=new Date(i.EndDate))};n.getObjectNameById=l.getObjectNameById;n.addItemToCollection=function(t,i,r,u){if(!u||!(n.Registration.VolunteerInfo[t].length>=u)){var f={};i&&(f[i]=r);n.Registration.VolunteerInfo[t].push(f)}};n.removeItemFromCollection=function(t,i){n.Registration.VolunteerInfo[t].splice(i,1)};n.isCollectionFull=function(t,i){return n.Registration.VolunteerInfo[t].length>=i};n.showAgreement=function(){if(clientCode=n.ClientCode,clientCode=="SRCA"){var t="aggrement"+clientCode+".html";n.openModal("lg",null,t).then(function(){},function(){})}};n.ShowAgreementNEOM=function(){clang=CurrentLang=="ar"?"ar":"";url="https://impact.neom.com/"+clang+"/privacy-policy";window.open(url,"_blank")};n.printA4Badge=function(){i.isLoading=!0;a({method:"GET",url:"/VolunteerRegistration/PrintIDCard",params:{volunteerId:n.Registration.VolunteerInfo.VolunteerId},responseType:"arraybuffer",headers:{AuthorizationHeader:i.GetAuthenticationToken()}}).then(function(t){var o="Volunteer"+n.Registration.VolunteerInfo.ReferenceNumber+".pdf",r=document.createElement("a"),u,f,e;try{u=new Blob([t.data],{type:"application/octet-stream"});f=window.URL.createObjectURL(u);r.setAttribute("href",f);r.setAttribute("download",o);e=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});r.dispatchEvent(e);i.isLoading=!1}catch(s){i.isLoading=!1;console.log(s)}},function(n){console.log(n);i.isLoading=!1})};n.printBadge=function(){var t=n.Registration.VolunteerInfo;n.openModal("md",null,"badge.html",{Image:(t.PhotoAttachment||{}).Data?t.PhotoAttachment.Data:(t.PhotoAttachment||{}).Id?i.utilsU+"Download/"+t.PhotoAttachment.Id:"/Content/Images/empty_profile.png",ReferenceNumber:t.ReferenceNumber,IdNumber:t.IdNumber,IsVolunteer:!0,FullName:n.Registration.VolunteerInfo.FirstName+" "+n.Registration.VolunteerInfo.LastName,FullNameEn:n.Registration.VolunteerInfo.FirstNameEn+" "+n.Registration.VolunteerInfo.LastNameEn,QrCode:n.Registration.QrCode,volunteerId:s.id}).then(function(){},function(){})};w=new RegExp("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*+(){}?~`=.<>-])(?=.{8,})");b=new RegExp("^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})");n.checkpwdStrength={width:"150px",height:"25px",float:"right"};n.validationInputPwdText=function(t){w.test(t)?(n.IsStrong=!0,n.checkpwdStrength["background-color"]="green",pwdStrength.innerHTML=n.Labels.Strong):b.test(t)?(n.checkpwdStrength["background-color"]="orange",pwdStrength.innerHTML=n.Labels.Medium,n.IsStrong=!1):(n.checkpwdStrength["background-color"]="red",pwdStrength.innerHTML=n.Labels.Weak,n.IsStrong=!1)};n.checkPasswords=function(){n.confirmPassword&&(Registration.VolunteerInfo.User.Password!=n.ConfirmPassword?(n.IsCompare=!1,pwdCompare.innerHTML="Password and Confirm passwords does not match"):(pwdCompare.innerHTML="",n.IsCompare=!0))};n.IsIam=!1;n.HasIAM==!0&&(i.IamId&&(n.Registration.VolunteerInfo.IdNumber=i.IamId),s.id||window.loginData?window.loginData&&(y=window.loginData,n.IsIam=!0,y.dobHijri&&(dateParts=y.dobHijri.split("/"),n.BirthDate.HijriYear=dateParts[0],n.BirthDate.HijriMonth=dateParts[1],n.getHijriDays(),n.BirthDate.HijriDay=dateParts[2]),y.dob&&(dateParts=y.dob.split("/"),n.BirthDate.GregMonth=dateParts[0],n.BirthDate.GregDay=dateParts[1],n.getDays(),n.BirthDate.GregYear=dateParts[2].substr(0,4)),n.Registration.VolunteerInfo.FirstName=y.arabicFirstName,n.Registration.VolunteerInfo.FirstNameEn=y.englishFirstName,n.Registration.VolunteerInfo.SecondName=y.arabicFatherName,n.Registration.VolunteerInfo.SecondNameEn=y.englishFatherName,n.Registration.VolunteerInfo.ThirdName=y.arabicGrandFatherName,n.Registration.VolunteerInfo.ThirdNameEn=y.englishGrandFatherName,n.Registration.VolunteerInfo.LastName=y.arabicFamilyName,n.Registration.VolunteerInfo.LastNameEn=y.englishFamilyName,n.Registration.UniqueUserToken=y.UniqueUserToken,n.Registration.VolunteerInfo.CategoryId=y.registrationPractionerInfo.CategoryId,n.Registration.VolunteerInfo.CfhsNumber=y.registrationPractionerInfo.CfhsNumber,n.Registration.VolunteerInfo.CfhsStatusId=y.registrationPractionerInfo.CfhsStatusId,n.Registration.VolunteerInfo.LicenseValidityStatusName=y.registrationPractionerInfo.LicenseValidityStatusName,n.Registration.VolunteerInfo.LicenseValidityStatusArName=y.registrationPractionerInfo.LicenseValidityStatusArName,n.FirstNameExist=n.Registration.VolunteerInfo.FirstName!=""&&n.Registration.VolunteerInfo.FirstName!=null,n.FirstNameEnExist=n.Registration.VolunteerInfo.FirstNameEn!=""&&n.Registration.VolunteerInfo.FirstNameEn!=null,n.SecondNameExist=n.Registration.VolunteerInfo.SecondName!=""&&n.Registration.VolunteerInfo.SecondName!=null,n.SecondNameEnExist=n.Registration.VolunteerInfo.SecondNameEn!=""&&n.Registration.VolunteerInfo.SecondNameEn!=null,n.ThirdNameExist=n.Registration.VolunteerInfo.ThirdName!=""&&n.Registration.VolunteerInfo.ThirdName!=null,n.ThirdNameEnExist=n.Registration.VolunteerInfo.ThirdNameEn!=""&&n.Registration.VolunteerInfo.ThirdNameEn!=null,n.LastNameExist=n.Registration.VolunteerInfo.LastName!=""&&n.Registration.VolunteerInfo.LastName!=null,n.LastNameEnExist=n.Registration.VolunteerInfo.LastNameEn!=""&&n.Registration.VolunteerInfo.LastNameEn!=null,n.Registration.VolunteerInfo.IdType=y.nationalId.startsWith("1")?0:1):n.$state.transitionTo(LoginState));n.ControlEnableDisableStatus=function(n,t,i){var r=v("FilterMatchCounter")(n,t,i);return r.length==0}}]);VsApp.controller("RegistrationController",["$scope","AuthService","$rootScope","$cookies","$window","UtilsApis","$localStorage","api","$stateParams","$timeout","$uibModal","Lookups","$http","$filter",function(n,t,i,r,u,f,e,o,s,h,c,l,a,v){var p,w,b,y;$=jQuery;p="Registration";i.CurrentPage=p;n.HasIAM=i.ConfigKey().HasIAM;n.DisableCategory=!0;n.SysEnvironment=i.ConfigKey().SysEnvironment;n.ClientCode=i.ConfigKey().ClientCode;n.HaveVolunteeringTimes=n.ClientCode=="MOH";n.PreferredDaysList=[];n.HasMandatoryCourses=i.ConfigKey().HasMandatoryCourses;n.HasEmployeeVerification=i.ConfigKey().HasEmployeeVerification;n.HasPractitioner=i.ConfigKey().HasPractitioner;n.LogoImage="../../TemplateScripts/assets/images/logo"+n.ClientCode+".png";n.jobRoleTypesEnum={Student:1,FreshGrad:2,MidLevel:3,Management:4,SuperiorManagement:5,Consultant:6,Executives:7};n.ShowRegistrationSection=null;n.isLoading=!1;n.errorLoading=null;n.regExIdNo="^(4|10|11|12|13|20|21|22|23|24|25)([0-9]{8})$";n.imageAllowedTypes=l.imageAllowedTypes;n.docsAllowedTypes=l.docsAllowedTypes;n.mixAllowedTypes=l.mixAllowedTypes;n.SCfHSPractionerStatuses=l.SCfHSPractionerStatuses;n.ValidUserName=!1;n.userNotes="";n.CertificateFor={Graduation:0,Expertise:1,VolunteerWork:2,OtherAttachment:3,PersonalPhoto:4,IdPhoto:5,Training:6,News:7,Slides:8,University:9,SCFHS:10,VolunteerCertificate:11};n.Cities=[];n.Nationalities=[];n.Regions=[];n.ContactRelations=[];n.CertificateTypes=[];n.CertificateFields=[];n.Universities=[];n.Countries=[];n.Languages=[];n.ProfessioncyLevels=[];n.RegStatuses=[];n.Skills=[];n.Teams=[];n.WorkFields=[];n.Professions=[];n.HijriDays=[];n.GregorianDays=[];n.IdExpiryHijriDays=[];n.IdExpiryGregorianDays=[];n.CfhsIssueDateHijriDays=[];n.CfhsIssueDateGregorianDays=[];n.CfhsExpiryDateHijriDays=[];n.CfhsExpiryDateGregorianDays=[];n.CertificateHijriDays=[];n.CertificateGregorianDays=[];n.Months=[1,2,3,4,5,6,7,8,9,10,11,12];n.CertificateMonths=[1,2,3,4,5,6,7,8,9,10,11,12];n.GregorianYears=[];n.HijriYears=[];n.erroMessage="";n.errorEmergency="";n.errorMobile="";n.PleaseProvideTrainigFullDetails="";n.PleaseProvideVolunteerRequiredTrainingFullDetails="";n.IsEditable=!0;n.IsVisibleAppNotes=!1;n.IsEditableAppNotes=!0;n.isDraft=!0;n.isSubmit=!0;n.ConfirmPassword="";n.errorConfirmPassword="";n.statusBeforeSavingorSubmitting=0;n.AgreementApproved=!1;n.Days=[{Id:6,Name:"Saturday",NameAr:"السبت"},{Id:0,Name:"Sunday",NameAr:"الاحد"},{Id:1,Name:"Monday",NameAr:"الاثنين"},{Id:2,Name:"Tuesday",NameAr:"الثلاثاء"},{Id:3,Name:"Wednesday",NameAr:"الاربعاء"},{Id:4,Name:"Thursday",NameAr:"الخميس"},{Id:5,Name:"Friday",NameAr:"الجمعة"}];n.IdTypes=l.IdTypesData;n.JobRoleTypes=l.JobRoleTypesData;n.UniversityYears=l.UniversityYears;n.EmployeeCodeErrorMessage=null;n.EmployeeCodeSuccessMessage=null;n.GenricCodeErrorMessage=null;n.TermsConditionLabel=n.Labels["AggreementApproval_"+n.ClientCode];s.id=i.GetCurrentVolunteerId();n.PreferredVolunteeringDays=null;n.preferredTime=["Morning","Evening","Both"];n.Registration={SaveOnly:!0,RegistrationStatusId:1,Language:CurrentLang,VolunteerInfo:{VolunteerId:s.id,Title:"",FirstName:"",SecondName:"",ThirdName:"",LastName:"",FirstNameEn:"",SecondNameEn:"",ThirdNameEn:"",LastNameEn:"",BirthDate:null,BirthDateAr:null,GenderType:1,MaritalStatus:1,JobRoleType:null,UniversityYear:null,StudentUniversityId:null,UniversityAttachment:{Data:null,CertificateFor:n.CertificateFor.University},ChildrenCount:null,BloodGroup:null,GeneticDiseasesExist:!1,GeneticDiseases:"",NationalityId:null,IdType:null,IdNumber:null,IdExpiryDate:"",IdExpiryDateAr:"",PassportNo:"",PassportExpDate:"",PassportIssueCountryId:null,RegionId:null,CityId:null,District:"",Street:"",BuildingNo:"",PostalCode:"",ExtraNumber:"",Phone:"",AbilityToStayAbroad:null,AbilityToStayAbroadDuration:null,AbilityToCallDuringWork:null,AbilityToDedicate:null,AbilityToCallDuringVacations:null,StatusId:null,UserId:null,User:{IsHashed:!1},RegDate:new Date,PhotoAttachment:{Data:null,CertificateFor:n.CertificateFor.PersonalPhoto},IdAttachment:{Data:null,CertificateFor:n.CertificateFor.IdPhoto},RegistrationStatusId:1,AppointmentTime:null,AppointmentLocation:null,RejectReason:null,EmergencyContacts:[{ContactRelationId:null,MobileNumber:null,Name:null}],GraduationCertificates:[{CertificatePhoto:{Data:null,CertificateFor:n.CertificateFor.Graduation}}],Expertises:[{ExperienceLetter:{Data:null,CertificateFor:n.CertificateFor.Expertise}}],Trainings:[{CertificatePhoto:{Data:null,CertificateFor:n.CertificateFor.Training}}],VolunteerCertificates:[{CertificateAttachments:{Data:null,CertificateFor:n.CertificateFor.VolunteerCertificate}}],Languages:[{}],Skills:[],VolunteerWorks:[{Certificate:{Data:null,CertificateFor:n.CertificateFor.VolunteerWork}}],PreferredWorkFields:[],PreferredWorkCities:[{RegionId:1,CityId:1}],OtherAttachments:[{Data:null,CertificateFor:n.CertificateFor.OtherAttachment}],RegistrationNotes:[],IsSpecialNeeds:null,SpecialNeedsDetails:"",ReviewerName:"",ReviewerId:null,JoinDate:null,CfhsNumber:null,CfhsIssueDate:null,CfhsExpiryDate:null,CfhsStatusId:null,CfhsAttachment:{Data:null,CertificateFor:n.CertificateFor.SCFHS},VolunteeringHours:0,BankName:"",IBAN:"",IsSRCAEmployee:!1,TeamId:null,EmployeeCode:null,CategoryId:null,UserSubCategoryLevel1Id:null,UserSubCategoryLevel2Id:null,UserExperienceLevelId:null,ContactedCovidStatus:null,ProfessionId:null,registrationPractionerInfo:{CategoryId:null,CfhsNumber:null,CfhsStatusId:null},PreferredTime:"",PreferredDays:[],PreferredVolunteeringDays:""}};n.HasIAM==!0&&(s.id||window.loginData||n.$state.transitionTo(LoginState));s.id?(n.isLoading=!0,n.errorLoading=null,o.Get(i.volU+"volunteerRegistration").then(function(t){n.processDates(t);n.ValidUserName=n.ValidateUserNameCharacters(t.VolunteerInfo.User.UserName)?!0:!1;CurrentLang=="ar"?$.each(t.VolunteerInfo.Skills,function(n,t){t.text=t.NameAr}):$.each(t.VolunteerInfo.Skills,function(n,t){t.text=t.Name});n.Registration=t;n.Registration.Language=CurrentLang;n.isLoading=!1;n.IsEditable=n.Registration.RegistrationStatusId==1||n.getCurrentStateName()=="EditRegistration";n.IsEditable&&(n.ShowRegistrationSection=!0);n.allowAttachmentsUpdate=n.Registration.RegistrationStatusId!=5&&n.Registration.RegistrationStatusId!=6&&i.IsVolunteer()&&n.IsEditable;n.IsVisibleAppNotes=n.Registration.RegistrationStatusId>1||n.IsAdminOrStaff();n.IsEditableAppNotes=n.Registration.RegistrationStatusId<5&&n.IsAdminOrStaff();n.ConfirmPassword=n.Registration.VolunteerInfo.User.Password;n.Registration.RegistrationStatusId>1&&(n.AgreementApproved=!0);n.CfhsIssueDate.Checked=n.CfhsIssueDate.Checked||n.Registration.VolunteerInfo.VolunteerId&&n.CfhsIssueDate.Year<1900;n.CfhsExpiryDate.Checked=n.CfhsExpiryDate.Checked||n.Registration.VolunteerInfo.VolunteerId&&n.CfhsExpiryDate.Year<1900;n.FirstNameExist=n.Registration.VolunteerInfo.FirstName!=""&&n.Registration.VolunteerInfo.FirstName!=null;n.FirstNameEnExist=n.Registration.VolunteerInfo.FirstNameEn!=""&&n.Registration.VolunteerInfo.FirstNameEn!=null;n.SecondNameExist=n.Registration.VolunteerInfo.SecondName!=""&&n.Registration.VolunteerInfo.SecondName!=null;n.SecondNameEnExist=n.Registration.VolunteerInfo.SecondNameEn!=""&&n.Registration.VolunteerInfo.SecondNameEn!=null;n.ThirdNameExist=n.Registration.VolunteerInfo.ThirdName!=""&&n.Registration.VolunteerInfo.ThirdName!=null;n.ThirdNameEnExist=n.Registration.VolunteerInfo.ThirdNameEn!=""&&n.Registration.VolunteerInfo.ThirdNameEn!=null;n.LastNameExist=n.Registration.VolunteerInfo.LastName!=""&&n.Registration.VolunteerInfo.LastName!=null;n.LastNameEnExist=n.Registration.VolunteerInfo.LastNameEn!=""&&n.Registration.VolunteerInfo.LastNameEn!=null;n.Registration.VolunteerInfo.CategoryId=n.Registration.VolunteerInfo.registrationPractionerInfo.CategoryId;n.Registration.VolunteerInfo.CfhsNumber=n.Registration.VolunteerInfo.registrationPractionerInfo.CfhsNumber;n.Registration.VolunteerInfo.CfhsStatusId=n.Registration.VolunteerInfo.registrationPractionerInfo.CfhsStatusId;n.Registration.VolunteerInfo.LicenseValidityStatusName=n.Registration.VolunteerInfo.registrationPractionerInfo.LicenseValidityStatusName;n.Registration.VolunteerInfo.LicenseValidityStatusArName=n.Registration.VolunteerInfo.registrationPractionerInfo.LicenseValidityStatusArName;n.HaveVolunteeringTimes&&(n.Registration.VolunteerInfo.PreferredVolunteeringDays!=null?(n.PreferredDaysList=n.Registration.VolunteerInfo.PreferredVolunteeringDays.split(","),n.Registration.VolunteerInfo.PreferredDays=n.Days.filter(t=>n.PreferredDaysList.includes(t.Id.toString()))):n.Registration.VolunteerInfo.PreferredDays=[]);try{n.Registration.VolunteerInfo.GraduationCertificates.length<=0&&(n.Registration.VolunteerInfo.GraduationCertificates=[{CertificatePhoto:{Data:null,CertificateFor:n.CertificateFor.Graduation}}])}catch(r){}o.Post(i.volU+"getCurrentEventName").then(function(t){n.CurrentWorkingEvent=t.Success?t.Message:"N/A"},function(){})},function(){n.isLoading=!1;n.errorLoading=n.Labels.ErrorLoadingData;n.IsEditable=!1})):n.Registration.VolunteerInfo.User.Email=null;n.BirthDate={HijriDay:null,HijriMonth:null,HijriYear:null,GregDay:null,GregMonth:null,GregYear:null,Checked:!n.Registration.VolunteerInfo.VolunteerId&&CurrentLang=="ar"||n.Registration.VolunteerInfo.VolunteerId&&n.Registration.VolunteerInfo.BirthDateAr};n.IdExpiryDate={HijriDay:null,HijriMonth:null,HijriYear:null,GregDay:null,GregMonth:null,GregYear:null,Checked:!n.Registration.VolunteerInfo.VolunteerId&&CurrentLang=="ar"||!!n.Registration.VolunteerInfo.VolunteerId&&!!n.Registration.VolunteerInfo.IdExpiryDateAr};n.CertificateDate={HijriDay:null,HijriMonth:null,HijriYear:null,GregDay:null,GregMonth:null,GregYear:null,Checked:!n.Registration.VolunteerInfo.VolunteerId&&CurrentLang=="ar"};n.CfhsIssueDate={Day:null,Month:null,Year:null,Checked:!n.Registration.VolunteerInfo.VolunteerId&&CurrentLang=="ar"};n.CfhsExpiryDate={Day:null,Month:null,Year:null,Checked:!n.Registration.VolunteerInfo.VolunteerId&&CurrentLang=="ar"};n.formats=["yyyy-MM-dd","dd-MMMM-yyyy","dd.MM.yyyy","shortDate"];n.dateFormat=n.formats[0];n.altInputFormats=["M!/d!/yyyy"];n.dateOptions={formatYear:"yyyy",maxDate:new Date(2030,5,22),minDate:new Date(1950,1,1),startingDay:1,todayBtn:!1,clearBtn:!1,showButtonBar:!1};n.YesterdayDate=function(){var n=new Date;return n.setDate(n.getDate()-1)};n.dateYesterday=n.YesterdayDate();n.TommorowDate=function(){var n=new Date;return n.setDate(n.getDate()+1)};n.dateTomorrow=n.TommorowDate();n.getTrainingStartDateOptions={formatYear:"yyyy",maxDate:n.dateYesterday,minDate:new Date(1950,1,1),startingDay:1,todayBtn:!1,clearBtn:!1,showButtonBar:!1};n.getTrainingEndDateOptions={formatYear:"yyyy",maxDate:new Date,minDate:new Date(1950,1,1),startingDay:1,todayBtn:!1,clearBtn:!1,showButtonBar:!1};n.getPassportExpDateOptions={formatYear:"yyyy",maxDate:new Date(2050,5,22),startingDay:1,todayBtn:!1,clearBtn:!1,showButtonBar:!1};n.birthDatePopup={opened:!1};n.birthDatePopupOpen=function(){n.birthDatePopup.opened=!0};n.PassportExpDate={opened:!1};n.passportExpDateOpen=function(){n.PassportExpDate.opened=!0};n.graduationCertificateIssueDatePopup={opened:!1};n.graduationCertificateIssueDatePopupOpen=function(){n.graduationCertificateIssueDatePopup.opened=!0};n.trainingEndDatePopup={opened:!1};n.trainingEndDatePopupOpen=function(n){n.endOpened=!n.endOpened};n.trainingStartDatePopup={opened:!1};n.trainingStartDatePopupOpen=function(n){n.startOpened=!n.startOpened};n.getValidIdTypes=function(t){return n.IdTypes.filter(function(n){return t==44&&n.value==0||t!=44&&n.value==1})};f.getLookUp(i.utilsU+"usercategories/read").then(function(t){n.Categories=t});f.getLookUp(i.utilsU+"trainingcertificates/read").then(function(t){n.TrainingCertificates=t});f.getLookUp(i.utilsU+"usersubcategorieslevel1/read").then(function(t){n.UserSubCategoriesLevel1=t});f.getLookUp(i.utilsU+"usersubcategorieslevel2/read").then(function(t){n.UserSubCategoriesLevel2=t});f.getLookUp(i.utilsU+"userexperiencelevel/read").then(function(t){n.UserExperienceLevel=t});f.getLookUp(i.utilsU+"citiesRegistration/read").then(function(t){n.Cities=t});f.getLookUp(i.utilsU+"Nationalities/read").then(function(t){n.Nationalities=t});f.getLookUp(i.utilsU+"regionsRegistration/read").then(function(t){n.Regions=t.filter(function(n,t){return t.Id!=16})});f.getLookUp(i.utilsU+"teams/read").then(function(t){n.Teams=t.filter(function(n,t){return t.Id})});f.getLookUp(i.utilsU+"ContactRelations/read").then(function(t){n.ContactRelations=t});f.getLookUp(i.utilsU+"CertificateTypes/read").then(function(t){n.CertificateTypes=t});f.getLookUp(i.utilsU+"CertificateFields/read").then(function(t){n.CertificateFields=t});f.getLookUp(i.utilsU+"Universities/read").then(function(t){n.Universities=t});f.getLookUp(i.utilsU+"countries/read").then(function(t){n.Countries=t});f.getLookUp(i.utilsU+"Languages/read").then(function(t){n.Languages=t});f.getLookUp(i.utilsU+"Language/ProfessioncyLevels/read").then(function(t){n.ProfessioncyLevels=t});f.getLookUp(i.utilsU+"Professions/read").then(function(t){n.Professions=t});f.getLookUp(i.utilsU+"regStatus/read").then(function(t){n.RegStatuses=t});f.getLookUp(i.utilsU+"workFields/read").then(function(t){n.WorkFields=t});f.getLookUp(i.utilsU+"SkillsList/read").then(function(t){CurrentLang=="ar"?$.each(t,function(n,t){t.text=t.NameAr}):$.each(t,function(n,t){t.text=t.Name});n.Skills=t});o.Get(i.utilsU+"hijriDays/read/1/1432").then(function(t){n.HijriDays=n.IdExpiryHijriDays=n.CertificateHijriDays=n.CfhsIssueDateHijriDays=n.CfhsExpiryDateHijriDays=t});o.Get(i.utilsU+"gregDays/read/1").then(function(t){n.GregorianDays=n.IdExpiryGregorianDays=n.CertificateGregorianDays=n.CfhsIssueDateGregorianDays=n.CfhsExpiryDateGregorianDays=t});o.Get(i.utilsU+"hijriYearsWithCount/read/1340/102").then(function(t){n.HijriYears=t});o.Get(i.utilsU+"gregYears/read/null").then(function(t){n.GregorianYears=t});o.Get(i.utilsU+"hijriYears/read/1441").then(function(t){n.IdExpiryHijriYears=t});o.Get(i.utilsU+"gregYears/read/2021").then(function(t){n.IdExpiryGregorianYears=t});n.getDays=function(){n.BirthDate.GregMonth&&o.Get(i.utilsU+"gregDays/read/"+n.BirthDate.GregMonth).then(function(t){n.GregorianDays=t;n.BirthDate.GregDay>n.GregorianDays.length&&(n.BirthDate.GregDay=1)})};n.getHijriDays=function(){n.BirthDate.HijriMonth&&n.BirthDate.HijriYear&&o.Get(i.utilsU+"hijriDays/read/"+n.BirthDate.HijriMonth+"/"+n.BirthDate.HijriYear).then(function(t){n.HijriDays=t;n.BirthDate.HijriDay>n.HijriDays.length&&(n.BirthDate.HijriDay=1)})};n.getIdExpiryDays=function(){n.IdExpiryDate.GregMonth&&o.Get(i.utilsU+"gregDays/read/"+n.IdExpiryDate.GregMonth).then(function(t){n.IdExpiryGregorianDays=t;n.IdExpiryDate.GregDay>n.IdExpiryGregorianDays.length&&(n.IdExpiryDate.GregDay=1)})};n.getIdExpiryHijriDays=function(){n.IdExpiryDate.HijriMonth&&n.IdExpiryDate.HijriYear&&o.Get(i.utilsU+"hijriDays/read/"+n.IdExpiryDate.HijriMonth+"/"+n.IdExpiryDate.HijriYear).then(function(t){n.IdExpiryHijriDays=t;n.IdExpiryDate.HijriDay>n.IdExpiryDate.length&&(n.IdExpiryDate.HijriDay=1)})};n.getCertificateDays=function(){n.CertificateDate.GregMonth&&o.Get(i.utilsU+"gregDays/read/"+n.CertificateDate.GregMonth).then(function(t){n.CertificateGregorianDays=t;n.CertificateDate.GregDay>n.CertificateGregorianDays.length&&(n.CertificateDate.GregDay=1)})};n.getCertificateHijriDays=function(){n.CertificateDate.HijriMonth&&n.CertificateDate.HijriYear&&o.Get(i.utilsU+"hijriDays/read/"+n.CertificateDate.HijriMonth+"/"+n.CertificateDate.HijriYear).then(function(t){n.CertificateHijriDays=t;n.CertificateDate.HijriDay>n.CertificateHijriDays.length&&(n.CertificateDate.HijriDay=1)})};n.getCfhsIssueDateDays=function(){n.CfhsIssueDate.Month&&o.Get(i.utilsU+"gregDays/read/"+n.CfhsIssueDate.Month).then(function(t){n.CfhsIssueDateGregorianDays=t;n.CfhsIssueDate.Day>n.CfhsIssueDateGregorianDays.length&&(n.CfhsIssueDate.Day=1)})};n.getCfhsIssueDateHijriDays=function(){n.CfhsIssueDate.Month&&n.CfhsIssueDate.Year&&o.Get(i.utilsU+"hijriDays/read/"+n.CfhsIssueDate.Month+"/"+n.CfhsIssueDate.Year).then(function(t){t!=null&&(n.CfhsIssueDateHijriDays=t,n.CfhsIssueDate.Day>n.CfhsIssueDateHijriDays.length&&(n.CfhsIssueDate.Day=1))})};n.getCfhsExpiryDateDays=function(){n.CfhsExpiryDate.Month&&o.Get(i.utilsU+"gregDays/read/"+n.CfhsExpiryDate.Month).then(function(t){t!=null&&(n.CfhsExpiryDateGregorianDays=t,n.CfhsExpiryDate.Day>n.CfhsExpiryDateGregorianDays.length&&(n.CfhsExpiryDate.Day=1))})};n.getCfhsExpiryDateHijriDays=function(){n.CfhsExpiryDate.Month&&n.CfhsExpiryDate.Year&&o.Get(i.utilsU+"hijriDays/read/"+n.CfhsExpiryDate.Month+"/"+n.CfhsExpiryDate.Year).then(function(t){t!=null&&(n.CfhsExpiryDateHijriDays=t,n.CfhsExpiryDate.Day>n.CfhsExpiryDateHijriDays.length&&(n.CfhsExpiryDate.Day=1))})};n.getAvailableSkills=function(n){return o.Get(i.utilsU+"Skills/"+CurrentLang+"/"+n,{params:{}}).then(function(n){return n.data.map(function(n){return{Id:n.Id,Name:CurrentLang=="ar"?n.NameAr:n.Name}})})};n.certificateChoicesOptions={valueField:"Id",labelField:"Name",create:!0,maxItems:1,createOnBlur:!0,closeAfterSelect:!0,selectOnTab:!0,addEmptyOption:!1,onChange:function(){}};n.getExtraChoices=function(n,t){var i=clone(n.slice());return t&&!any(i,function(n){return n.Name.startsWith(t)})&&i.unshift(t),i};n.setCurrentJob=function(t){t.IsCurrentJob&&n.Registration.VolunteerInfo.Expertises.forEach(function(n){n!=t&&(n.IsCurrentJob=!1)})};n.ValidateUserNameCharacters=function(n){if(n)return n.match(/^[0-9a-zA-Z_]+$/)?!0:!1;return!1};n.validateInitialFields=function(t){var r="",u=n.Labels.AllFieldsRequired,i=n.Registration.VolunteerInfo,f;if(n.erroMessage="",n.errorConfirmPassword="",n.errorEmergency="",n.errorLanguage="",n.PleaseProvideTrainigFullDetails="",n.PleaseProvideVolunteerRequiredTrainingFullDetails="",n.PleaseProvideFullEmergencyContacts="",n.PleaseProvideFullAttachmentDetails="",n.PleaseProvideFullVolunteerWorkDetails="",n.errorWorkFields="",n.isDraft=!1,n.errorMobile="",(!i.FirstName||!i.SecondName||!i.ThirdName||!i.LastName||i.GenderType<0||i.MaritalStatus<0)&&(n.erroMessage=u,r="personalInfoSection"),i.FirstNameEn&&i.SecondNameEn&&i.ThirdNameEn&&i.LastNameEn||(n.erroMessage=u,r="personalInfoSection"),n.HaveVolunteeringTimes&&(i.PreferredTime==""||i.PreferredDays!=null&&i.PreferredDays.length<=0)&&(n.erroMessage=u,r="VolunteeringTimes"),n.BirthDate.Checked?n.BirthDate.HijriDay&&n.BirthDate.HijriMonth&&n.BirthDate.HijriYear?(i.BirthDateAr=n.BirthDate.HijriYear+"-"+n.BirthDate.HijriMonth+"-"+n.BirthDate.HijriDay,i.BirthDate=null):(n.erroMessage=u,r="personalInfoSection"):n.BirthDate.GregMonth&&n.BirthDate.GregDay&&n.BirthDate.GregYear?(i.BirthDate=n.BirthDate.GregMonth+"/"+n.BirthDate.GregDay+"/"+n.BirthDate.GregYear,i.BirthDateAr=null):(n.erroMessage=u,r="personalInfoSection"),n.Registration.VolunteerInfo.PhotoAttachment!=null&&n.Registration.VolunteerInfo.PhotoAttachment!=undefined&&n.Registration.VolunteerInfo.PhotoAttachment.MaxReached&&(r="IdSection",n.erroMessage=u),i.User.MobileNumber){if(i.User.MobileNumber.length!=10||(f=/^05[0-9]{8}$/,!f.test(i.User.MobileNumber)))return r="personalInfoSection",n.erroMessage=n.Labels.MobileNumberErr,r}else r="personalInfoSection",n.erroMessage=u;if(r||(i.NationalityId<=0?(r="IdSection",n.erroMessage=u):i.IdType=i.NationalityId==44?0:1,n.IdExpiryDate.Checked?n.IdExpiryDate.HijriDay&&n.IdExpiryDate.HijriMonth&&n.IdExpiryDate.HijriYear?(i.IdExpiryDateAr=n.IdExpiryDate.HijriYear+"-"+n.IdExpiryDate.HijriMonth+"-"+n.IdExpiryDate.HijriDay,i.IdExpiryDate=null):(r="IdSection",n.erroMessage=u):n.IdExpiryDate.GregMonth&&n.IdExpiryDate.GregDay&&n.IdExpiryDate.GregYear?(i.IdExpiryDate=n.IdExpiryDate.GregMonth+"/"+n.IdExpiryDate.GregDay+"/"+n.IdExpiryDate.GregYear,i.IdExpiryDateAr=null):(r="IdSection",n.erroMessage=u),!(i.IdType<0)&&i.IdNumber&&(i.IdExpiryDate||i.IdExpiryDateAr)&&i.User.Email&&i.User.MobileNumber||(r="IdSection",n.erroMessage=u),r)||(i.RegionId&&i.CityId||(r="addressSection",n.erroMessage=u),r)||(t&&(n.ClientCode!="MOH"&&(i.ContactedCovidStatus=0),i.BloodGroup&&(!i.GeneticDiseasesExist||i.GeneticDiseases)&&i.ContactedCovidStatus!=null&&i.ContactedCovidStatus!=undefined||(r="medicalInformationSection",n.erroMessage=u)),r))return r;if(t){if(!i.ProfessionId)return n.errorWorkFields=n.Labels.SelectProfession,"specialitiesSection";if(!i.CategoryId)return n.errorWorkFields=n.Labels.SelectCategory,"specialitiesSection";if(!i.UserSubCategoryLevel1Id)return n.errorWorkFields=n.Labels.SelectSpecialitiesLevel1,"specialitiesSection";if(!i.PreferredWorkFields.length>0)return n.errorWorkFields=n.Labels.SelectOneWorkFields,"specialitiesSection";n.errorWorkFields=null}return r?r:(i.User.UserName&&i.User.Password&&n.ConfirmPassword||(r="userInfoSection",n.erroMessage=u),!n.ValidateUserNameCharacters(i.User.UserName))?(r="userInfoSection",n.ValidUserName=!1,n.erroMessage=n.Labels.UserNameEnglishOnly,r):!i.User.UserName||!i.User.Password||!n.ConfirmPassword?(r="userInfoSection",n.erroMessage=n.Labels.AllFieldsRequired,r):(i.User.Password&&n.ConfirmPassword!=i.User.Password&&(r="userInfoSection",n.errorConfirmPassword=n.Labels.ErrorConfirmPassword,n.erroMessage=u),n.CfhsIssueDate.Day&&n.CfhsIssueDate.Month&&n.CfhsIssueDate.Year&&(i.CfhsIssueDate=n.CfhsIssueDate.Year+"-"+n.CfhsIssueDate.Month+"-"+n.CfhsIssueDate.Day),n.CfhsExpiryDate.Day&&n.CfhsExpiryDate.Month&&n.CfhsExpiryDate.Year&&(i.CfhsExpiryDate=n.CfhsExpiryDate.Year+"-"+n.CfhsExpiryDate.Month+"-"+n.CfhsExpiryDate.Day),r)};n.saveRegistration=function(){n.isSubmit=!0;n.errorSaving=null;n.errorWorkFields=null;n.validateInitialFields(!1);n.erroMessage||(n.statusBeforeSavingorSubmitting=n.Registration.RegistrationStatusId,n.Registration.RegistrationStatusId=1,n.save())};n.submitRegistration=function(t){n.isSubmit=!1;var i=n.validateInitialFields(!0);n.errorSaving=n.AgreementApproved?null:n.Labels.AggrementNeedsApproval;i&&$("#"+i).offset()&&$("html, body").animate({scrollTop:$("#"+i).offset().top-60},1e3);n.erroMessage||n.errorSaving||n.errorWorkFields||n.registrationForm.$valid&&(n.statusBeforeSavingorSubmitting=n.Registration.RegistrationStatusId,t&&(n.Registration.RegistrationStatusId=2),n.save())};n.HasMandatoryCoursesSaveAction=function(t){t.Success?(referencenumber=t.Data.ReferenceNumber,course_url=t.Data.Course_URL,n.getCurrentStateName()=="EditRegistration"?(message=course_url!=""?n.Labels.RegistrationSuccessfullRedirect+referencenumber:n.Labels.UpdatedSuccessfully+referencenumber,i.showSuccessMessage(message,function(){h(function(){i.IsVolunteer()==1?course_url!=""?window.location.href=course_url:i.Logout():i.$state.transitionTo(DashboardState)},100)})):n.Registration.RegistrationStatusId==2?(message=course_url!=""?n.Labels.RegistrationSuccessfullRedirect+referencenumber:n.Labels["RegistrationSuccessfull_"+n.ClientCode]+referencenumber,i.showSuccessMessage(message,function(){h(function(){course_url!=null&&course_url!=""&&course_url!=undefined?window.location.href=course_url:i.$state.transitionTo(ThankYouState)},100)})):i.$state.transitionTo(ThankYouState)):(n.statusBeforeSavingorSubmitting==1&&(n.Registration.RegistrationStatusId=1),console.log(n.Labels[t.Message]+("\r\n"+(t.StackTrace||""))),n.errorSaving=n.Labels[t.Message])};n.CommonSaveAction=function(t){t.Success?(referencenumber=t.Data.ReferenceNumber,n.getCurrentStateName()=="EditRegistration"?(i.IsRegistrationOfVolunteerComplete=!0,i.showSuccessMessageFromKey("UpdatedSuccessfully",function(){h(function(){r.put("IsRegistrationComplete",angular.toJson(!0));i.$state.transitionTo(DashboardState)},100)})):n.Registration.RegistrationStatusId==2?i.showSuccessMessage(n.Labels["RegistrationSuccessfull_"+n.ClientCode]+referencenumber,function(){h(function(){i.$state.transitionTo(ThankYouState)},100)}):i.$state.transitionTo(ThankYouState)):(n.statusBeforeSavingorSubmitting==1&&(n.Registration.RegistrationStatusId=1),n.errorSaving=n.Labels[t.Message])};n.save=function(){n.isLoading=!0;n.isSaving=!0;n.errorSaving=null;n.HaveVolunteeringTimes&&(n.PreferredVolunteeringDays=n.Registration.VolunteerInfo.PreferredDays.map(n=>n.Id),n.Registration.VolunteerInfo.PreferredVolunteeringDays=n.PreferredVolunteeringDays.toString());o.Post(i.volU+"registration",null,n.Registration).then(function(t){n.isLoading=!1;n.isSaving=!1;message="";i.ConfigKey().HasMandatoryCoursesSaveAction==!0?n.HasMandatoryCoursesSaveAction(t):n.CommonSaveAction(t)},function(){n.isLoading=!1;n.isSaving=!1;n.statusBeforeSavingorSubmitting==1&&(n.Registration.RegistrationStatusId=1);n.errorSaving=n.Labels.ErrorSavingData})};n.rejectRegistration=function(){n.openModal("md",null,"reject.html").then(function(t){n.isSaving=!0;o.Post("/RegistrationAdmin/registrationAdmin_RejectAction",null,{Id:n.Registration.VolunteerInfo.VolunteerId,RejectReason:t.RejectReason}).then(function(t){n.isSaving=!1;t&&t.Result?(n.Registration.RegistrationStatusId=6,i.$state.transitionTo("Submitted")):n.errorSaving=t&&t.Message?n.Labels[t.Message]:n.Labels.ErrorSavingData})},function(){})};n.approveRegistration=function(){var t=n.validateInitialFields(!0);n.errorSaving=n.AgreementApproved?null:n.Labels.AggrementNeedsApproval;t&&$("#"+t).offset()&&$("html, body").animate({scrollTop:$("#"+t).offset().top-60},1e3);n.erroMessage||n.errorSaving||n.errorWorkFields||n.registrationForm.$valid&&(n.Registration.RegistrationStatusId==2?n.openModal("md",null,"InitialAccept.html","InitialAccept.html").then(function(t){if(t.AppointmentDatePart&&t.AppointmentTimePart&&t.AppointmentLocation&&t.ReviewerId)if(t.AppointmentDatePart!=""&&t.AppointmentTimePart!=""&&t.AppointmentLocation!=""&&t.ReviewerId!=""){n.isSaving=!0;var r=new Date(t.AppointmentDatePart),u=t.AppointmentTimePart.getHours(),f=t.AppointmentTimePart.getMinutes();r.setHours(u,f);o.Post("/RegistrationAdmin/registrationAdmin_UpdateInitialAction",null,{Id:n.Registration.VolunteerInfo.VolunteerId,AppointmentTime:r,AppointmentLocation:t.AppointmentLocation,ReviewerId:t.ReviewerId}).then(function(t){n.isSaving=!1;t&&t.Result?(n.Registration.RegistrationStatusId=3,i.$state.transitionTo("Submitted")):n.errorSaving=t&&t.Message?n.Labels[t.Message]:n.Labels.ErrorSavingData})}else i.showErrorMessage(n.Labels.PleasefillAllDetails);else i.showErrorMessage(n.Labels.PleasefillAllDetails)},function(){}):n.Registration.RegistrationStatusId==3&&n.openModal("md",null,"Confirm.html").then(function(){n.isSaving=!0;o.Post("/RegistrationAdmin/registrationAdmin_AcceptAction",{registrationId:n.Registration.VolunteerInfo.VolunteerId}).then(function(t){n.isSaving=!1;t&&t.Result?(n.Registration.RegistrationStatusId=5,i.$state.transitionTo("Accepted")):n.errorSaving=t&&t.Message?n.Labels[t.Message]:n.Labels.ErrorSavingData})},function(){}))};n.openModal=function(n,t,i,r){var u=t?angular.element($document[0].querySelector(".modal-demo "+t)):undefined,f=c.open({animation:!1,ariaLabelledBy:"modal-title",ariaDescribedBy:"modal-body",templateUrl:i,controller:"ModalInstanceCtrl",controllerAs:"$ctrl",size:n,appendTo:u,resolve:{data:function(){return r}}});return f.result};n.openNotesModal=function(n,t,i,r){var u=t?angular.element($document[0].querySelector(".modal-demo "+t)):undefined,f=c.open({animation:!1,ariaLabelledBy:"modal-title",ariaDescribedBy:"modal-body",templateUrl:i,controller:"appNotesCtrl",controllerAs:"$ctrl",size:n,appendTo:u,resolve:{data:function(){return r}}});return f.result};n.processDates=function(t){var u,r,i;if(console.log(t),t){if(t.VolunteerInfo.BirthDate&&(t.VolunteerInfo.BirthDate=new Date(t.VolunteerInfo.BirthDate),n.BirthDate.GregMonth=t.VolunteerInfo.BirthDate.getMonth()+1,n.BirthDate.GregYear=t.VolunteerInfo.BirthDate.getFullYear(),n.getDays(),n.BirthDate.GregDay=t.VolunteerInfo.BirthDate.getDate()),t.VolunteerInfo.BirthDateAr&&(i=t.VolunteerInfo.BirthDateAr.split("-"),n.BirthDate.HijriYear=i[0],n.BirthDate.HijriMonth=i[1],n.getHijriDays(),n.BirthDate.HijriDay=i[2]),t.VolunteerInfo.IdExpiryDate&&(t.VolunteerInfo.IdExpiryDate=new Date(t.VolunteerInfo.IdExpiryDate),n.IdExpiryDate.GregMonth=t.VolunteerInfo.IdExpiryDate.getMonth()+1,n.IdExpiryDate.GregYear=t.VolunteerInfo.IdExpiryDate.getFullYear(),n.getIdExpiryDays(),n.IdExpiryDate.GregDay=t.VolunteerInfo.IdExpiryDate.getDate()),t.VolunteerInfo.IdExpiryDateAr&&(i=t.VolunteerInfo.IdExpiryDateAr.split("-"),n.IdExpiryDate.HijriYear=i[0],n.IdExpiryDate.HijriMonth=i[1],n.getIdExpiryHijriDays(),n.IdExpiryDate.HijriDay=i[2]),t.VolunteerInfo.CfhsIssueDate&&(i=t.VolunteerInfo.CfhsIssueDate.split("-"),n.CfhsIssueDate.Year=i[0],n.CfhsIssueDate.Month=i[1],n.CfhsIssueDate.Year<1900?n.getCfhsIssueDateHijriDays():n.getCfhsIssueDateDays(),n.CfhsIssueDate.Day=i[2]),t.VolunteerInfo.CfhsExpiryDate&&(i=t.VolunteerInfo.CfhsExpiryDate.split("-"),n.CfhsExpiryDate.Year=i[0],n.CfhsExpiryDate.Month=i[1],n.CfhsExpiryDate.Year<1900?n.getCfhsExpiryDateHijriDays():n.getCfhsExpiryDateDays(),n.CfhsExpiryDate.Day=i[2]),n.CfhsIssueDate.Checked=!n.Registration.VolunteerInfo.VolunteerId&&CurrentLang=="ar"||!!n.Registration.VolunteerInfo.VolunteerId&&(t.VolunteerInfo.CfhsIssueDate||{}).Year<1900,n.CfhsExpiryDate.Checked=!n.Registration.VolunteerInfo.VolunteerId&&CurrentLang=="ar"||!!n.Registration.VolunteerInfo.VolunteerId&&(t.VolunteerInfo.CfhsExpiryDate||{}).Year<1900,n.IdExpiryDate.Checked=!n.Registration.VolunteerInfo.VolunteerId&&CurrentLang=="ar"||!!n.Registration.VolunteerInfo.VolunteerId&&!!t.VolunteerInfo.IdExpiryDateAr,n.BirthDate.Checked=!n.Registration.VolunteerInfo.VolunteerId&&CurrentLang=="ar"||!!n.Registration.VolunteerInfo.VolunteerId&&!!t.VolunteerInfo.BirthDateAr,t.VolunteerInfo.PassportExpDate&&(t.VolunteerInfo.PassportExpDate=new Date(t.VolunteerInfo.PassportExpDate)),t.VolunteerInfo.GraduationCertificates.length>0&&(n.CertificateDate.Checked=!n.Registration.VolunteerInfo.VolunteerId&&CurrentLang=="ar"||!!n.Registration.VolunteerInfo.VolunteerId&&!!t.VolunteerInfo.GraduationCertificates[0].IssueDateAr),t.VolunteerInfo.GraduationCertificates)for(u=0;u<t.VolunteerInfo.GraduationCertificates.length;u++)r=t.VolunteerInfo.GraduationCertificates[u],r&&(r.IssueDate&&(r.IssueDate=new Date(r.IssueDate),n.CertificateDate.GregMonth=r.IssueDate.getMonth()+1,n.CertificateDate.GregYear=r.IssueDate.getFullYear(),n.getCertificateDays(),n.CertificateDate.GregDay=r.IssueDate.getDate()),r.IssueDateAr&&(i=r.IssueDateAr.split("-"),n.CertificateDate.HijriYear=i[0],n.CertificateDate.HijriMonth=i[1],n.getCertificateHijriDays(),n.CertificateDate.HijriDay=i[2]));if(t.VolunteerInfo.Trainings)for(u=0;u<t.VolunteerInfo.Trainings.length;u++)r=t.VolunteerInfo.Trainings[u],r&&r.StartDate&&(r.StartDate=new Date(r.StartDate)),r&&r.EndDate&&(r.EndDate=new Date(r.EndDate))}};n.getObjectNameById=l.getObjectNameById;n.addItemToCollection=function(t,i,r,u){if(!u||!(n.Registration.VolunteerInfo[t].length>=u)){var f={};i&&(f[i]=r);n.Registration.VolunteerInfo[t].push(f)}};n.removeItemFromCollection=function(t,i){n.Registration.VolunteerInfo[t].splice(i,1)};n.isCollectionFull=function(t,i){return n.Registration.VolunteerInfo[t].length>=i};n.toggleSelection=function(t,i,r){var u=n.getIndexByProperty(t,i,r);u>-1?i.splice(u,1):i.push(t)};n.getIndexByProperty=function(n,t,i){if(!t)return-1;var r=t.map(function(n){return n[i]});return r&&r.length?r.indexOf(0)==0&&n[i]==0?0:$(r).index(n[i]):-1};n.showAgreement=function(){if(clientCode=n.ClientCode,clientCode=="SRCA"){var t="aggrement"+clientCode+".html";n.openModal("lg",null,t).then(function(){},function(){})}};n.ShowAgreementNEOM=function(){clang=CurrentLang=="ar"?"ar":"";url="https://impact.neom.com/"+clang+"/privacy-policy";window.open(url,"_blank")};n.printA4Badge=function(){i.isLoading=!0;a({method:"GET",url:"/VolunteerRegistration/PrintIDCard",params:{volunteerId:n.Registration.VolunteerInfo.VolunteerId},responseType:"arraybuffer",headers:{AuthorizationHeader:i.GetAuthenticationToken()}}).then(function(t){var o="Volunteer"+n.Registration.VolunteerInfo.ReferenceNumber+".pdf",r=document.createElement("a"),u,f,e;try{u=new Blob([t.data],{type:"application/octet-stream"});f=window.URL.createObjectURL(u);r.setAttribute("href",f);r.setAttribute("download",o);e=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});r.dispatchEvent(e);i.isLoading=!1}catch(s){i.isLoading=!1;console.log(s)}},function(n){console.log(n);i.isLoading=!1})};n.printBadge=function(){var t=n.Registration.VolunteerInfo;n.openModal("md",null,"badge.html",{Image:(t.PhotoAttachment||{}).Data?t.PhotoAttachment.Data:(t.PhotoAttachment||{}).Id?i.utilsU+"Download/"+t.PhotoAttachment.Id:"/Content/Images/empty_profile.png",ReferenceNumber:t.ReferenceNumber,IdNumber:t.IdNumber,IsVolunteer:!0,FullName:n.Registration.VolunteerInfo.FirstName+" "+n.Registration.VolunteerInfo.LastName,FullNameEn:n.Registration.VolunteerInfo.FirstNameEn+" "+n.Registration.VolunteerInfo.LastNameEn,QrCode:n.Registration.QrCode,volunteerId:s.id}).then(function(){},function(){})};n.DisplayAddNotesPopup=function(){n.openNotesModal("sm",null,"applicationNotes.html").then(function(t){o.Post(i.volU+"volunteer/addApplicationNotes",null,{Note:t,UserId:i.GetCurrentUserId(),VolunteerInfoId:n.Registration.VolunteerInfo.VolunteerId,CreationDate:new Date}).then(function(t){n.Registration.VolunteerInfo.RegistrationNotes=t},function(){})},function(){})};n.removeNotes=function(t){o.Post(i.volU+"volunteer/removeApplicationNote/"+t+"/"+n.Registration.VolunteerInfo.VolunteerId,null,null).then(function(t){n.Registration.VolunteerInfo.RegistrationNotes=t},function(){})};n.loadTags=function(t){t=t.toLowerCase();var i=$(n.Skills).filter(function(n,i){return CurrentLang=="ar"?i.NameAr&&i.NameAr.toLowerCase().includes(t):i.Name&&i.Name.toLowerCase().includes(t)}).map(function(n,t){return{text:CurrentLang=="ar"?t.NameAr:t.Name}});return{data:i}};n.skillsTagChanged=function(){CurrentLang=="ar"?$.each(n.Registration.VolunteerInfo.Skills,function(n,t){t.NameAr=t.text}):$.each(n.Registration.VolunteerInfo.Skills,function(n,t){t.Name=t.text})};n.getCertificateFields=function(t,i){var r=n.Registration.VolunteerInfo.GraduationCertificates[0].CertificateFieldId;return t||i?n.CertificateFields.filter(function(n,r){return r.Id==i||r.Name.indexOf(t)>=0}).filter(function(n,t){return n<100||t.Id==r}):n.CertificateFields.filter(function(n,t){return n<100||t.Id==r})};w=new RegExp("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*+(){}?~`=.<>-])(?=.{8,})");b=new RegExp("^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})");n.checkpwdStrength={width:"150px",height:"25px",float:"right"};n.validationInputPwdText=function(t){w.test(t)?(n.IsStrong=!0,n.checkpwdStrength["background-color"]="green",pwdStrength.innerHTML=n.Labels.Strong):b.test(t)?(n.checkpwdStrength["background-color"]="orange",pwdStrength.innerHTML=n.Labels.Medium,n.IsStrong=!1):(n.checkpwdStrength["background-color"]="red",pwdStrength.innerHTML=n.Labels.Weak,n.IsStrong=!1)};n.checkPasswords=function(){n.confirmPassword&&(Registration.VolunteerInfo.User.Password!=n.ConfirmPassword?(n.IsCompare=!1,pwdCompare.innerHTML="Password and Confirm passwords does not match"):(pwdCompare.innerHTML="",n.IsCompare=!0))};n.checkEmployeeCode=function(){i.isLoading=!0;a({url:"/VolunteerRegistration/ValidateEmployeeCode",params:{id:n.Registration.VolunteerInfo.EmployeeCode},method:"POST",headers:{AuthorizationHeader:i.GetAuthenticationToken(),"Content-type":"application/json"}}).then(function(t){t.data.Status=="success"?t.data.N_id==n.Registration.VolunteerInfo.IdNumber?(n.EmployeeCodeErrorMessage=!1,n.GenricCodeErrorMessage=!1,n.EmployeeCodeSuccessMessage=!0):t.data.N_id!==n.Registration.VolunteerInfo.IdNumber&&(n.EmployeeCodeErrorMessage=!0,n.GenricCodeErrorMessage=!1,n.EmployeeCodeSuccessMessage=!1):(n.EmployeeCodeErrorMessage=!0,n.GenricCodeErrorMessage=!1,n.EmployeeCodeSuccessMessage=!1);i.isLoading=!1})};n.IsIam=!1;n.HasIAM==!0&&(i.IamId&&(n.Registration.VolunteerInfo.IdNumber=i.IamId),s.id||window.loginData?window.loginData&&(y=window.loginData,n.IsIam=!0,y.dobHijri&&(dateParts=y.dobHijri.split("/"),n.BirthDate.HijriYear=dateParts[0],n.BirthDate.HijriMonth=dateParts[1],n.getHijriDays(),n.BirthDate.HijriDay=dateParts[2]),y.dob&&(dateParts=y.dob.split("/"),n.BirthDate.GregMonth=dateParts[0],n.BirthDate.GregDay=dateParts[1],n.getDays(),n.BirthDate.GregYear=dateParts[2].substr(0,4)),n.Registration.VolunteerInfo.FirstName=y.arabicFirstName,n.Registration.VolunteerInfo.FirstNameEn=y.englishFirstName,n.Registration.VolunteerInfo.SecondName=y.arabicFatherName,n.Registration.VolunteerInfo.SecondNameEn=y.englishFatherName,n.Registration.VolunteerInfo.ThirdName=y.arabicGrandFatherName,n.Registration.VolunteerInfo.ThirdNameEn=y.englishGrandFatherName,n.Registration.VolunteerInfo.LastName=y.arabicFamilyName,n.Registration.VolunteerInfo.LastNameEn=y.englishFamilyName,n.Registration.UniqueUserToken=y.UniqueUserToken,n.Registration.VolunteerInfo.CategoryId=y.registrationPractionerInfo.CategoryId,n.Registration.VolunteerInfo.CfhsNumber=y.registrationPractionerInfo.CfhsNumber,n.Registration.VolunteerInfo.CfhsStatusId=y.registrationPractionerInfo.CfhsStatusId,n.Registration.VolunteerInfo.LicenseValidityStatusName=y.registrationPractionerInfo.LicenseValidityStatusName,n.Registration.VolunteerInfo.LicenseValidityStatusArName=y.registrationPractionerInfo.LicenseValidityStatusArName,n.FirstNameExist=n.Registration.VolunteerInfo.FirstName!=""&&n.Registration.VolunteerInfo.FirstName!=null,n.FirstNameEnExist=n.Registration.VolunteerInfo.FirstNameEn!=""&&n.Registration.VolunteerInfo.FirstNameEn!=null,n.SecondNameExist=n.Registration.VolunteerInfo.SecondName!=""&&n.Registration.VolunteerInfo.SecondName!=null,n.SecondNameEnExist=n.Registration.VolunteerInfo.SecondNameEn!=""&&n.Registration.VolunteerInfo.SecondNameEn!=null,n.ThirdNameExist=n.Registration.VolunteerInfo.ThirdName!=""&&n.Registration.VolunteerInfo.ThirdName!=null,n.ThirdNameEnExist=n.Registration.VolunteerInfo.ThirdNameEn!=""&&n.Registration.VolunteerInfo.ThirdNameEn!=null,n.LastNameExist=n.Registration.VolunteerInfo.LastName!=""&&n.Registration.VolunteerInfo.LastName!=null,n.LastNameEnExist=n.Registration.VolunteerInfo.LastNameEn!=""&&n.Registration.VolunteerInfo.LastNameEn!=null,n.Registration.VolunteerInfo.IdType=y.nationalId.startsWith("1")?0:1):n.$state.transitionTo(LoginState));n.FindUserDetails=function(){n.ShowRegistrationSection=null;var t=n.Registration.VolunteerInfo.User.MobileNumber;t==null||t==""||t==undefined?(n.errMobile=n.Labels.MobileNumberRequired,n.ShowRegistrationSection=!1):(a({method:"GET",url:"/VolunteerRegistration/GetVolunteerAvailableInformation",params:{mobileNumber:t},responseType:"json",headers:{AuthorizationHeader:i.GetAuthenticationToken()}}).then(function(t){t.data!=null&&(obj=t.data,n.Registration.VolunteerInfo.GenderType=obj.GenderType,n.Registration.VolunteerInfo.NationalityId=obj.NationalityId,n.Registration.VolunteerInfo.User.Email=obj.Email,n.Registration.VolunteerInfo.RegionId=obj.RegionId,n.Registration.VolunteerInfo.CfhsNumber=obj.SCFHS_Number);n.ShowRegistrationSection=!0}),n.errMobile="")};n.onSelected=function(){n.Registration.VolunteerInfo.PreferredWorkFields=[];n.Registration.VolunteerInfo.UserSubCategoryLevel1Id=null;n.Registration.VolunteerInfo.UserSubCategoryLevel2Id=null;n.Registration.VolunteerInfo.UserExperienceLevelId=null};n.onSelectedSubCategoriesLevel1=function(){n.SubCategoryLevel1Status=n.ControlEnableDisableStatus(n.UserSubCategoriesLevel2,n.Registration.VolunteerInfo.UserSubCategoryLevel1Id,"SubCategoryLevel1Id");n.Registration.VolunteerInfo.PreferredWorkFields=[];n.Registration.VolunteerInfo.UserSubCategoryLevel2Id=null;n.Registration.VolunteerInfo.UserExperienceLevelId=null};n.ControlEnableDisableStatus=function(n,t,i){var r=v("FilterMatchCounter")(n,t,i);return r.length==0}}]);VsApp.controller("SurveyController",["$scope","AuthService","$rootScope","api",function(n,t,i,r){$=jQuery;n.SelectedFiles=[];i.CurrentPage="SurveyController";i.isLoading=!0;n.errorLoading=null;n.thankYou=!1;r.Post(i.surU+"checkVolunteersParticipations").then(function(t){n.AlreadyParticipated=t;r.Get(i.surU+"getAllAnswers").then(function(t){n.Answers=t},function(){i.showErrorMessageFromKey("error_occured")});r.Get(i.surU+"getAllQuestions").then(function(t){n.Questions=t;i.isLoading=!1},function(){i.isLoading=!1;i.showErrorMessageFromKey("error_occured")})},function(){i.showErrorMessageFromKey("error_occured")});n.Validate=function(){var t=!0;return n.Questions.forEach(function(n){n.SelectedAnswer<=0&&(t=!1)}),t};n.SubmitAnswers=function(){n.Validate()?r.Post(i.surU+"submitSurvey/",null,n.Questions).then(function(t){n.isSaving=!1;t.Success?(i.showSuccessMessage(n.Labels.Successfully),n.thankYou=!0,n.AlreadyParticipated=!0):i.showErrorMessage(n.Labels[t.Message])},function(){n.isSaving=!1;n.errorSaving=n.Labels.ErrorSavingData}):i.showErrorMessageFromKey("AnswerAllQuestions")}}]);VsApp.controller("TermsAndConditionController",["$scope","$rootScope","api","$stateParams","$sce",function(n){n.TermsConditionLabel=n.Labels["AggreementApproval_"+n.ClientCode]}]);VsApp.controller("ThankYouController",["$scope","$rootScope","$window",function(n,t,i){$=jQuery;i.scrollTo(0,0);n.Message=n.Labels.RegistrationSavedSuccessfully;n.ClientCode=t.ConfigKey().ClientCode;n.ClientCode=="NEOM"&&(n.Message=n.Labels.RegistrationSavedSuccessfullyNEOM)}]);VsApp.controller("TicketController",["$scope","AuthService","$rootScope","UtilsApis","api","$stateParams","swangular","$timeout","$state","Lookups",function(n,t,i,r,u,f,e,o,s,h){var l,c;$=jQuery;l="CreateTicket";i.CurrentPage=l;r.getLookUp(i.utilsU+"ticketTypes/read").then(function(t){n.TicketTypes=t});r.getLookUp(i.utilsU+"getRejectReasonTickets/read").then(function(t){n.RejectReasonTickets=t});r.getLookUp(i.utilsU+"ticketPriorities/read").then(function(t){n.TicketPriorities=t});r.getLookUp(i.utilsU+"ticketActions/read").then(function(t){n.TicketActions=t});n.ClientCode=i.ConfigKey().ClientCode;n.HasReasonsOfNotResolvedTicket=n.ClientCode=="MOH";n.HasTime=n.ClientCode=="MOH";n.HasRequestType=n.ClientCode=="MOH";n.RequestType=[{Id:1,Name:"Ticket",NameAr:"شكوى"},{Id:2,Name:"Suggestion",NameAr:"اقتراح"},{Id:4,Name:"Contact Us",NameAr:"تواصل معنا"}];n.TicketStatus=[{Id:1,Name:"Resolved",NameAr:"تم الحل"},{Id:2,Name:"Not Resolved",NameAr:"لم يتم الحل "}];n.ClearSelection=function(i){return t.ClearSelection(i,n)};n.YearList=h.GetRunningYears(t.RunningYearCount(n.ClientCode),i.addTokenToRequest,i.logoutIfForbidden);n.modal={Id:0,Title:null,Description:null,TicketTypeId:null,TicketPriorityId:null,TicketActionId:null,DepartmentId:null,VolunteerId:0,EventId:null,RejectReasonTicketId:null,Note:null,Reason:null};n.SearchFilters={Code:"",Title:"",TicketActionId:null,Id:null,TicketYear:null,RequestTypeId:null,TicketStatusId:null};n.SearchFilters.TicketYear=t.GetCurrentYear();c=f.id;c!=""&&c!=undefined&&(n.SearchFilters.Id=c,n.SearchFilters.TicketBaseId=c,n.modal.Id=c);n.ClearModal=function(){n.modal.Id=0;n.modal.Title=null;n.modal.Description=null;n.modal.TicketTypeId=null;n.modal.TicketPriorityId=4;n.modal.TicketActionId=null;n.modal.EventId=null;n.modal.VolunteerId=0;n.modal.RejectReasonTicketId=null;n.modal.Note=null;n.modal.Reason=null;n.modal.ActionResponse=null};n.ShowDetails=function(i){n.ClearModal();$.each(i,function(t){n.modal[t]=null});$.each(i,function(t,i){n.modal[t]=i});n.PopupHeader=n.modal.Code+": "+n.modal.Title;t.HideShowModal("modalDetails")};n.GetEventsData=function(){i.isLoading=!0;u.Post(i.ticU+"getEventsList/",null,null).then(function(t){n.eventData=t.Data;i.isLoading=!1},function(){i.isLoading=!1})};n.GetEventsData();n.GetGridData=function(){i.isLoading=!0;u.Post(i.ticU+"getTickets/",null,n.SearchFilters).then(function(t){n.dsGridData=t.Data;i.isLoading=!1},function(){i.isLoading=!1})};n.GetGridData();n.ClearSearchFiltersControls=function(){n.SearchFilters.Code=null;n.SearchFilters.Title=null;n.SearchFilters.TicketActionId=null;n.SearchFilters.RequestTypeId=null;n.SearchFilters.TicketStatusId=null;n.GetGridData()};n.RowStatus=function(n){return n.CurrentStatus==0?"pending":n.CurrentStatus==1?"approved":n.CurrentStatus==2?"rejected":n.CurrentStatus==3?"published":n.CurrentStatus==4?"completed":void 0};n.manageHeaders=function(i){t.manageHeaders(i,n.Labels)};n.IsPageValid=function(){return n.modal.Title==""||n.modal.Title==undefined||n.modal.Title==null?(i.showErrorMessageFromKey("TicketTitleRequired"),!1):n.modal.TicketTypeId==""||n.modal.TicketTypeId==undefined||n.modal.TicketTypeId==null?(i.showErrorMessageFromKey("TicketTypeRequired"),!1):n.modal.Description==""||n.modal.Description==undefined||n.modal.Description==null?(i.showErrorMessageFromKey("TicketDescriptionRequired"),!1):n.modal.TicketTypeId==1&&(n.modal.EventId==""||n.modal.EventId==undefined||n.modal.EventId==null)?(i.showErrorMessageFromKey("EventisRequired"),!1):!0};n.ISModalNotResolvedValid=function(){return(console.log(n.modal.RejectReasonTicketId),n.modal.RejectReasonTicketId==""||n.modal.RejectReasonTicketId==undefined||n.modal.RejectReasonTicketId==null)?(i.showErrorMessageFromKey("AllFieldsRequired"),!1):n.modal.RejectReasonTicketId==4&&(n.modal.Reason==""||n.modal.Reason==undefined||n.modal.Reason==null)?(i.showErrorMessageFromKey("AllFieldsRequired"),!1):(n.modal.RejectReasonTicketId!=4&&(n.modal.Reason=null),!0)};n.Save=function(){n.modal.VolunteerId=i.GetCurrentVolunteerId();u.Post(i.ticU+"submitTicket/",null,n.modal).then(function(r){n.isSaving=!1;r.Success?(r.Data!=""&&r.Data!="DuplicateTicketNotResolvedYet"?(msg=n.Labels.TicketSavedSuccess,msg=msg.replace("@code@",r.Data),i.showSuccessMessage(msg)):(r.Data="DuplicateTicketNotResolvedYet")&&i.showErrorMessage(n.Labels.TicketExist),setTimeout(function(){$("#submitTicket").prop("disabled",!1)},5e3),i.isLoading=!1,t.HideShowModal("modalDetails"),n.SearchFilters.Id=-1,n.GetGridData()):n.modal.Id>0?i.showErrorMessage(n.Labels.ErrorUpdatingTicket):i.showErrorMessage(n.Labels.TicketSavedError);setTimeout(function(){$("#submitTicket").prop("disabled",!1)},5e3);i.isLoading=!1},function(){n.isSaving=!1;n.errorSaving=n.Labels.ErrorSavingData;setTimeout(function(){$("#submitTicket").prop("disabled",!1)},5e3);i.isLoading=!1})};n.SubmitTicket=function(){n.IsPageValid()&&(n.modal.TicketActionId=1,$("#submitTicket").prop("disabled",!0),i.isLoading=!0,n.Save())};n.AddNewTicket=function(){n.ClearModal();n.PopupHeader=n.Labels.Add;t.HideShowModal("modalDetails")};n.AddReasonOfNotResolved=function(r){n.ClearModal();i.showConfirmBoxText("",function(){n.PopupHeader=n.Labels.AddReasons;n.modal.Id=r;t.HideShowModal("modalNotResolved")})};n.CloseModal=function(){n.ClearModal();t.HideShowModal("modalDetails")};n.UserAction=function(t,r){n.HasReasonsOfNotResolvedTicket&&r!=1?n.ISModalNotResolvedValid()&&n.SaveUserAction(t,r):n.HasReasonsOfNotResolvedTicket&&r==1?i.showConfirmBoxText("",function(){n.SaveUserAction(t,r)}):n.SaveUserAction(t,r)};n.SaveUserAction=function(t,r){n.SearchFilters.Id=-1;n.modal.IsResolved=r;n.HasReasonsOfNotResolvedTicket||(n.modal.Id=t);r==1?(n.modal.ActionResponse=n.Labels.Resolved,n.modal.Id=t):n.modal.ActionResponse=n.Labels.NotResolved;u.Post(i.ticU+"submitUserAction/",null,n.modal).then(function(t){n.isSaving=!1;t.Success?(t.Data!=""&&(msg=n.Labels.ThankYouResponse,i.showSuccessMessage(msg)),n.HasReasonsOfNotResolvedTicket&&r!=1&&n.CloseModal("modalNotResolved"),n.GetGridData()):i.showErrorMessage(n.Labels.ErrorSavingData)},function(){n.isSaving=!1;n.errorSaving=n.Labels.ErrorSavingData})};n.GetReponseList=function(){i.isLoading=!0;u.Post(i.ticU+"getTicketResponse/",null,n.SearchFilters).then(function(r){n.dsGridResponseData=r.Data;i.isLoading=!1;t.HideShowModal("modalResponseDetails")},function(){i.isLoading=!1})};n.GetTicketRejectReasons=function(){i.isLoading=!0;u.Post("/api/Ticket/getTicketRejectReasons/",null,n.SearchFilters).then(function(t){n.dsGridRejectReasonsData=t.Data;console.log(t.Data);i.isLoading=!1},function(){i.isLoading=!1})};n.Description="";n.ShowResponseDetails=function(t){n.Description="";n.Description=t.Description;n.ClearModal();$.each(t,function(t){n.modal[t]=null});$.each(t,function(t,i){n.modal[t]=i});n.PopupHeader=n.modal.Code+"- "+n.modal.Title;n.modal.TicketActionId;n.ResponseSection=n.modal.TicketActionId!==3?!0:!1;n.SearchFilters.Id=n.modal.Id;n.GetReponseList();n.GetTicketRejectReasons();console.log(n.modal)};n.CloseModal=function(n){t.HideShowModal(n)};n.IsPageResponseValid=function(){return n.modal.ActionResponse===""||n.modal.ActionResponse===undefined||n.modal.ActionResponse===null?(i.showErrorMessageFromKey("ActionResponseRequired"),!1):n.modal.TicketActionId===""||n.modal.TicketActionId===undefined||n.modal.TicketActionId===null||n.modal.TicketActionId===1?(i.showErrorMessageFromKey("TicketActionRequired"),!1):!0};n.SaveReply=function(){u.Post(i.ticU+"submitReply/",null,n.modal).then(function(r){n.isSaving=!1;r.Success?(r.Data!==""&&(msg=n.Labels.TicketRepliedSuccess,i.showSuccessMessage(msg)),t.HideShowModal("modalResponseDetails"),n.SearchFilters.Id=-1,n.GetGridData()):i.showErrorMessage(n.Labels.TicketSavedError)},function(){n.isSaving=!1;n.errorSaving=n.Labels.ErrorSavingData})};n.SubmitReply=function(){n.IsPageResponseValid()&&(n.modal.TicketActionId=2,n.SaveReply())}}]);VsApp.controller("UnauthorizedController",["$scope","$rootScope",function(n,t){$=jQuery;n.Labels.SendNotification=n.Labels.SendNotificationToAccepted;t.CurrentPage="Unauthorized"}]);VsApp.controller("UserVerificationController",["$scope","AuthService","$rootScope","swangular","UtilsApis","api","$stateParams","Lookups",function(n,t,i,r,u,f,e,o){$=jQuery;i.CurrentPage="Registration";n.SysEnvironment=i.ConfigKey().SysEnvironment;n.ClientCode=i.ConfigKey().ClientCode;u.getLookUp(i.utilsU+"regStatus/read").then(function(t){n.RegStatuses=t});u.getLookUp(i.utilsU+"Nationalities/read").then(function(t){n.Nationalities=t});n.getObjectNameById=o.getObjectNameById;n.errorSaving=null;n.Registration={RegistrationStatusId:1,Language:CurrentLang,VolunteerId:e.id,Title:"",FirstName:"",SecondName:"",ThirdName:"",LastName:"",FirstNameEn:null,SecondNameEn:"",ThirdNameEn:"",LastNameEn:"",BirthDate:null,BirthDateAr:null,GenderType:1,MaritalStatus:1,NationalityId:null,IdType:null,IdNumber:null,IdExpiryDate:"",IdExpiryDateAr:"",StatusId:null,UserId:null,User:{IsHashed:!1},RegDate:new Date,RegistrationStatusId:1,Nationality:null};n.VolunteerInfoOrg={IdNumber:null};e.id=i.GetCurrentVolunteerId();e.id&&(n.isLoading=!0,n.errorLoading=null,f.Get(i.volU+"volunteerVerification").then(function(i){n.Registration=i;n.Registration.Language=CurrentLang;n.isLoading=!1;_nationality=t.FilterObjectArray(n.Nationalities,"Id",i.NationalityId);i.Nationality=CurrentLang=="ar"?_nationality[0].NameAr:_nationality[0].Name;n.VolunteerInfoOrg.IdNumber=i.IdNumber},function(){n.isLoading=!1;n.errorLoading=n.Labels.ErrorLoadingData;n.IsEditable=!1}));RedirectToIM=function(){r.swal({title:n.Labels.error_invalidNICTitle,text:n.Labels.error_invalidNIC,type:"info"}).then(function(){window.open("/IAMLogin.aspx","_self")})};n.Verify=function(){if(n.isLoading=!0,n.isSaving=!0,n.errorSaving=null,n.Registration.IdNumber==null||n.Registration.IdNumber==""||n.Registration.IdNumber==undefined||n.Registration.IdNumber.length<10)return r.swal({title:n.Labels.ErrorHeader,text:n.Labels.InvalidIdNo,type:"error"}),!1;n.VolunteerInfoOrg.IdNumber==n.Registration.IdNumber?RedirectToIM():f.Post(i.volU+"verifyNId",null,n.Registration).then(function(t){t.Success?(n.isLoading=!1,n.isSaving=!1,RedirectToIM()):n.errorSaving=n.Labels[t.Message]},function(){n.isLoading=!1;n.isSaving=!1;n.errorSaving=n.Labels.ErrorSavingData})}}]);VsApp.controller("VerifyEmailController",["$scope","$rootScope","$timeout","$location","api",function(n,t,i,r,u){var e,f;$=jQuery;e="VerifyEmail";t.CurrentPage=e;f=r.search().token;n.ClientCode=t.ConfigKey().ClientCode;n.ClosePopup=function(){r.path("/login")};n.IsEmailVerificationValid=function(){t.isLoading=!0;var r={token:f};u.Post(t.volU+"IsEmailVerificationValid",null,r).then(function(r){t.isLoading=!1;n.isLoading=!1;r=="100"?n.isExpired=!n.UpdateEmailVerification():r=="400"?n.RegenerateEmailVerifyLink():r=="200"&&t.showSuccessMessageTextNoTitle(n.Labels.AlreadyVerifiedEmailMessage,function(){i(function(){t.$state.transitionTo(LoginState)},100)})},function(){t.showErrorMessage(n.Labels.ErrorSavingData)})};n.IsEmailVerificationValid();n.UpdateEmailVerification=function(){var r={token:f};u.Post(t.volU+"UpdateEmailVerification",null,r).then(function(r){r!=""&&t.showSuccessMessageTextNoTitle(n.Labels["RegistrationSuccessfull_"+n.ClientCode]+r,function(){i(function(){t.$state.transitionTo(LoginState)},100)});t.isLoading=!1;n.isLoading=!1},function(){n.isLoading=!1;t.showErrorMessage(n.Labels.ErrorSavingData)})};n.RegenerateEmailVerifyLink=function(){var i={token:f,lang:CurrentLang};u.Post(t.volU+"RegenerateEmailVerifyLink",null,i).then(function(i){i==!0?t.showSuccessMessageTextNoTitle(n.Labels.RegeneratedEmailMessage):t.showErrorMessage(n.Labels.GenericErrorMessage);t.isLoading=!1;n.isLoading=!1},function(){n.isLoading=!1;t.showErrorMessage(n.Labels.GenericErrorMessage)})}}]);VsApp.controller("VolunteerEventSurveyController",["$scope","AuthService","$rootScope","api","$stateParams","$location",function(n,t,i,r,u,f){function s(n){var t={token:n};return r.Post(i.surU+"checkVolunteersEventsParticipations",t,null)}var o,e;$=jQuery;n.SelectedFiles=[];o="SurveyController";i.CurrentPage=o;i.isLoading=!0;n.errorLoading=null;n.thankYou=!1;e=f.search().token;e&&e!=""||n.$state.transitionTo(LoginState);s(e).then(function(t){if(n.AlreadyParticipated=!t.Success&&t.Message=="AlreadyParticipated",n.CannotParticipate=!t.Success&&t.Message=="CannotParticipate",!n.AlreadyParticipated&&!n.CannotParticipate){var t={token:e};r.Get(i.surU+"getEventsSurveyQuestions",t,null).then(function(t){n.Questions=t;i.isLoading=!1},function(){i.isLoading=!1;i.showErrorMessageFromKey("error_occured")})}i.isLoading=!1},function(){i.isLoading=!1;i.showErrorMessageFromKey("error_occured")});n.Validate=function(){var t=!0;return n.Questions.forEach(function(n){n.SelectedAnswer<=0&&(t=!1)}),t};n.SubmitAnswers=function(){if(n.Validate()){var t={token:e};r.Post(i.surU+"submitEventSurvey/",t,n.Questions).then(function(t){n.isSaving=!1;t.Success?(i.showSuccessMessage(n.Labels.Successfully),n.thankYou=!0,n.AlreadyParticipated=!0):i.showErrorMessage(n.Labels[t.Message])},function(){n.isSaving=!1;n.errorSaving=n.Labels.ErrorSavingData})}else i.showErrorMessageFromKey("AnswerAllQuestions")}}])