function sendAntiForgery(){return{__RequestVerificationToken:$('input[name="__RequestVerificationToken"]').val()}}function Alert(n,t){t=="error"?($("#errorDialog .modal-body").html(n),$("#errorDialog").modal("show")):t=="info"?($("#infoDialog").find("modal-body").html(""),$("#infoDialog .modal-body").html(n),$("#infoDialog").modal("show")):t=="sc"?($("#scDialog").find("modal-body").html(""),$("#scDialog .modal-body").html(n),$("#scDialog").modal({backdrop:"static",keyboard:!1}),$("#scDialog").addClass("in"),$("#scDialog").css("display","block"),$(".modal-backdrop").not(":first").show()):t=="apply"&&($("#applyCheckDialog").find("modal-body").html(""),$("#applyCheckDialog .modal-body").html(n),$("#applyCheckDialog").modal("show"));$(".modal-backdrop").length>1&&$(".modal-backdrop").not(":first").css("z-index","1050");$("#scDialog button").on("click",function(){$(".modal-backdrop").length>1&&($(".modal-backdrop").not(":first").fadeOut(),$("#scDialog").removeClass("in"),$("#scDialog").css("display",""))})}var Cookie={SetMessage:function(){var n=document.cookie.match("(^|;) ?accept-gdpr-cookie=([^;]*)(;|$)");(n==null||n[2]!="true")&&($("#cookie").show(),$("body").addClass("needCookie"))},Accepted:function(){$("#cookie").remove();$("body").removeClass("needCookie");var n=new Date(864e13);n.setTime(n.getTime());document.cookie="accept-gdpr-cookie=true"+cookiesSecureString+";expires="+n.toUTCString()+";path=/"}},Question={openModal:function(){}},JobApplication={Apply:function(n,t){t=="True"?($("#loading").show(),$.ajax({cache:!1,type:"GET",url:url_missing,success:function(t){var i,r;if(typeof t=="object")if(t.Key==!0)n>0?$("#questionDialog").modal({backdrop:"static",show:!0}):$("form#frm").submit();else{for(i='<div class="detailMessage">',i+="<h3>"+dic_RequiredFieldsForApplication+"<\/h3>",i+="<ul>",r=0;r<t.Value.length;r++)i+="<li>",i+="- "+t.Value[r],i+="<\/li>";i+="<\/ul>";i+="<\/div>";Alert(i,"apply")}else Alert(dic_AnUnHandledErrorOccured,"error");$("#loading").hide()},error:function(n){Alert(n,"error");$("#loading").hide()}})):$("form#frm").submit()},QuestionDone:function(n){for(var i=!0,t=0;t<n;t++)if(!($("#QuestionList_"+t+"__SelectedAnswerId").val()>0)){i=!1;break}i?JobApplication.FormSubmit():Alert(dic_AllQuestionsShouldBeAnswered,"sc")},FormSubmit:function(){$("form#frm").submit()}},Job={FilterObject:function(n,t){this.type=n;this.data=t},List:{sort:{type:"Time",ad:"desc"},key:"",filter:[],data:[],result:function(){var u=[],n="",t,i,r,f;if(Job.List.filter.length>0)for(t=0;t<Job.List.filter.length;t++)Job.List.filter[t].type=="City"?n+="e.City.toLowerCase().indexOf('"+Job.List.filter[t].data.toLowerCase().replace("'","`")+"') >= 0":Job.List.filter[t].type=="Department"&&(n+="e.Department.toLowerCase() == '"+Job.List.filter[t].data.toLowerCase().replace("'","`")+"'"),t!==Job.List.filter.length-1&&(n+=" || ");return Job.List.key!=""&&Job.List.key!=null&&Job.List.key!="/(?:)/g"&&(i="",r=Job.List.key.toLowerCase().replace("'","`").replace(/&/g,"").replace(/</g,"").replace(/>/g,"").replace(/'/g,"").replace(/"/g,""),i+="e.Code.toLowerCase().indexOf('"+r+"') >= 0",i+=" || e.Header.toLowerCase().indexOf('"+r+"') >= 0",i+=" || e.Department.toLowerCase().indexOf('"+r+"') >= 0",i+=" || e.City.toLowerCase().indexOf('"+r+"') >= 0",n==""?n=i:(f=n,n="("+f+") && ("+i+")")),u=n!==""?$.grep(Job.List.data,function(e,index){return eval(n)}):Job.List.data,u.sort(function(n,t){var i=n[Job.List.sort.type],r=t[Job.List.sort.type];return Job.List.sort.ad=="asc"?i.toLowerCase()<r.toLowerCase()?-1:i.toLowerCase()>r.toLowerCase()?1:0:Job.List.sort.ad=="desc"?i.toLowerCase()>r.toLowerCase()?-1:i.toLowerCase()<r.toLowerCase()?1:0:void 0})},render:function(n){for(var t="",f=Job.List.result(),r,u,i=0;i<f.length;i++)t+=Job.List.visual(f[i],n);return r="",u="",n==1?r=dic_norecord:n==2&&(r=dic_noapplication,u='<a class="btn btn-clr-1 btn-md" href="'+url_announcementList+'">'+dic_FindJob+"<\/a>"),t==""&&(t='<div class="noListItem">'+r+"<\/div>"+u),t},visual:function(n,t){var f="",i,u,r,e,h;if(n.City!=""){if(i="",n.City.indexOf(",")>=0)for(u=n.City.split(","),r=0;r<u.length;r++)i+=u[r],r<u.length-1&&(i+=", ");else i=n.City;f='<div class="location">'+i+"<\/div>"}e="";n.Status!=null&&n.Status!=""&&typeof n.Status!="undefined"&&(e='<div class="applicationStatus">'+n.Status+"<\/div>");var o=new Date(parseInt(n.Time.substr(6))),c=o.getDate()+"/"+(o.getMonth()+1)+"/"+o.getFullYear(),s="";return t==1?s='<article><a href="'+url_announcementDetail+"/"+n.Code+'"><div class="leftPart"><div class="name">'+n.Header+'<span class="code">'+n.Code+'<\/span><\/div><div class="department">'+n.Department+'<\/div><\/div><div class="midPart"><div class="date">'+c+"<\/div>"+f+'<\/div><div class="rightPart"><span class="btn btn-clr-1">'+dic_view+"<\/span><\/div><\/a><\/article>":t==2&&(h="",n.AssessmentLink!=""&&n.AssessmentLink!=null&&(h='<div class="links"><a href="'+n.AssessmentLink+'"><i class="far fa-file-edit"><\/i>'+dic_takeAssessment+"<\/a><\/div>"),s='<article><div class="articleItem"><div class="leftPart"><a class="name" href="'+url_announcementDetail+"/"+n.Code+'">'+n.Header+'<span class="code">'+n.Code+'<\/span><\/a><div class="department">'+n.Department+'<\/div><\/div><div class="midPart" ><div class="date">'+c+"<\/div>"+f+e+h+"<\/div><\/div><\/article>"),s}}},JobList={Listing:function(n,t){$("#jobListLoading").show();$.ajax({type:"GET",url:url_announcement,cache:!1,dataType:"json",success:function(i){var b="",k="",h,e,v,u,y,c,r,w,f;if(n==null||n==""?($("#keyword").val(t),k="?search="+t,Job.List.key=t):Job.List.key=n,$("#keyword").val(Job.List.key),b+=k+"",window.history.pushState(null,null,b),Job.List.data=i,h="",i.length>0){for(e=[],v=[],h=Job.List.render(1),u=0;u<i.length;u++){if(i[u].CitySearch.indexOf(",")>=0)for(y=i[u].CitySearch.split(","),c=0;c<y.length;c++)e.push(y[c]);else e.push(i[u].CitySearch);v.push(i[u].Department)}var l=Control.RemoveDuplicateUsingFilter(e),d=Control.RemoveDuplicateUsingFilter(v),p="",a="",o="",s=[];for(r=0;r<l.length;r++)l[r].indexOf("|")>=0?(o=l[r].split("|")[0],a=l[r].split("|")[1]):(o="",a=e.push(i[r].CitySearch)),a!="Unknown"&&(typeof s!="undefined"&&s!=null&&s.length!=0&&s.includes(o)||(p+='<div class="countryHeader">'+o+"<\/div>",s.push(o)),p+='<li><input type="checkbox" id="loc'+r+'" class="k-checkbox"><label class="k-checkbox-label" for="loc'+r+'">'+a+"<\/label><\/li>");for($("#LocationFilterChecks").html(p),w="",f=0;f<d.length;f++)w+='<li><input type="checkbox" id="cmp'+f+'" class="k-checkbox"><label class="k-checkbox-label" for="cmp'+f+'">'+d[f]+"<\/label><\/li>";$("#CompanyFilterChecks").html(w);Search.Main()}else h='<div class="noListItem">'+dic_norecord+"<\/div>";$("#listview").html(h);$("#jobListLoading").fadeOut(50)},error:function(){$("#listview").html('<div class="noListItem">'+dic_norecord+"<\/div>");$("#jobListLoading").fadeOut(50)}})},Filters:[],FilterList:function(n,t){var u,i,f,r;for(Job.List.filter=[],u=[],i=0;i<n.length;i++)u.push(n[i].toLowerCase()),Job.List.filter.push({type:"City",data:n[i]});for(f=[],r=0;r<t.length;r++)f.push(t[r].toLowerCase()),Job.List.filter.push({type:"Department",data:t[r].toLowerCase()});$("#listview").html(Job.List.render(1))},SelectAll:function(n,t){t=="location"?optionsLocations=[]:t=="company"&&(optionsCompanies=[]);$(n).find("label.k-checkbox-label").each(function(){$(this).parent().children("input").prop("checked",!0);t=="location"?(optionsLocations.push($(this).text()),JobList.FilterList(optionsLocations,optionsCompanies)):t=="company"&&(optionsCompanies.push($(this).text()),JobList.FilterList(optionsLocations,optionsCompanies))})},UnSelectAll:function(n,t){$(n).find("label.k-checkbox-label").each(function(){$(this).parent().children("input").prop("checked",!1)});t=="location"?optionsLocations=[]:t=="company"&&(optionsCompanies=[]);JobList.FilterList(optionsLocations,optionsCompanies)},MyJobApplication:function(n){$.ajax({type:"GET",url:n,cache:!1,data:sendAntiForgery(),dataType:"json",success:function(n){Job.List.data=n.Data;$("#listViewHistory").html(Job.List.render(2));$("#jobListLoading").fadeOut(50)},error:function(){$("#listViewHistory").html('<div class="noListItem">'+dic_noapplication+'<\/div><a class="btn btn-clr-1 btn-md" href="'+url_announcementList+'">'+dic_FindJob+"<\/a>");$("#jobListLoading").fadeOut(50)}})}},Control={RemoveDuplicateUsingFilter:function(n){var t=[];return $.each(n,function(n,i){$.inArray(i,t)==-1&&i!==null&&i!==""&&t.push(i)}),t.sort()},RemoveFromArray:function(n,t){var i=n.indexOf(t);i!=-1&&n.splice(i,1)},Footer:function(){$(window).height()-$("footer").position().top>268&&($("body").addClass("fixed"),$("section.searchbg.bgimage2").css("min-height",$("footer").position().top+"px"))},IsValidEmailAddress:function(n){var t=new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);return t.test(n)}},Datas={CountryPhoneCodes:[{text:"Afghanistan",code:"af",value:"93",mask:"000 000 0000"},{text:"Åland Islands",code:"ax",value:"358",mask:"000 0000000"},{text:"Albania",code:"al",value:"355",mask:"000 000 0000"},{text:"Algeria",code:"dz",value:"213",mask:"0000 00 00 00"},{text:"American Samoa",code:"as",value:"1684",mask:"000 000 0000"},{text:"Andorra",code:"ad",value:"376",mask:"000 000"},{text:"Angola",code:"ao",value:"244",mask:"000 000 000"},{text:"Anguilla",code:"ai",value:"1264",mask:"000 000-0000"},{text:"Antigua and Barbuda",code:"ag",value:"1268",mask:"000 000 0000"},{text:"Argentina",code:"ar",value:"54",mask:"000 00 0000 0000"},{text:"Armenia",code:"am",value:"374",mask:"000 000000"},{text:"Aruba",code:"aw",value:"297",mask:"000 0000"},{text:"Australia",code:"au",value:"61",mask:"0000 000 000"},{text:"Austria",code:"at",value:"43",mask:"0000 0000000"},{text:"Azerbaijan",code:"az",value:"994",mask:"000 000 00 00"},{text:"Bahamas",code:"bs",value:"1242",mask:"000 000 0000"},{text:"Bahrain",code:"bh",value:"973",mask:"0000 0000"},{text:"Bangladesh",code:"bd",value:"880",mask:"00000 000000"},{text:"Barbados",code:"bb",value:"1246",mask:"000 000 0000"},{text:"Belarus",code:"by",value:"375",mask:"0 000 000 00 00"},{text:"Belgium",code:"be",value:"32",mask:"0000 00 00 00"},{text:"Belize",code:"bz",value:"501",mask:"000 0000"},{text:"Benin",code:"bj",value:"229",mask:"00 00 00 00"},{text:"Bermuda",code:"bm",value:"1441",mask:"000 000 0000"},{text:"Bhutan",code:"bt",value:"975",mask:"00 00 00 00"},{text:"Bolivia",code:"bo",value:"591",mask:"00000000"},{text:"Bosnia and Herzegovina",code:"ba",value:"387",mask:"000 000 000"},{text:"Botswana",code:"bw",value:"267",mask:"00 000 000"},{text:"Brazil",code:"br",value:"55",mask:"00 00000 0000"},{text:"British Indian Ocean Territory",code:"io",value:"246",mask:"000 0000"},{text:"British Virgin Islands",code:"vg",value:"1284",mask:"000 000 0000"},{text:"Brunei",code:"bn",value:"673",mask:"000 0000"},{text:"Bulgaria",code:"bg",value:"359",mask:"000 000 000"},{text:"Burkina Faso",code:"bf",value:"226",mask:"00 00 00 00"},{text:"Burundi",code:"bi",value:"257",mask:"00 00 00 00"},{text:"Cambodia",code:"kh",value:"855",mask:"000 000 000"},{text:"Cameroon",code:"cm",value:"237",mask:"0 00 00 00 00"},{text:"Canada",code:"ca",value:"1",mask:"000 000 0000"},{text:"Cape Verde (Kabu Verdi)",code:"cv",value:"238",mask:"000 00 00"},{text:"Caribbean Netherlands",code:"bq",value:"599",mask:"000 0000"},{text:"Cayman Islands",code:"ky",value:"1345",mask:"000 000 0000"},{text:"Central African Republic",code:"cf",value:"236",mask:"00 00 00 00"},{text:"Chad",code:"td",value:"235",mask:"00 00 00 00"},{text:"Chile",code:"cl",value:"56",mask:"0 0000 0000"},{text:"China",code:"cn",value:"86",mask:"000 0000 000000"},{text:"Christmas Island",code:"cx",value:"61",mask:"0000 000 000"},{text:"Cocos (Keeling) Islands",code:"cc",value:"61",mask:"000 000 000"},{text:"Colombia",code:"co",value:"57",mask:"000 0000000"},{text:"Comoros",code:"km",value:"269",mask:"000 00 00"},{text:"Congo DRC",code:"cd",value:"243",mask:"0000 000 000"},{text:"Congo Republic",code:"cg",value:"242",mask:"00 000 0000"},{text:"Cook Islands",code:"ck",value:"682",mask:"00 000"},{text:"Costa Rica",code:"cr",value:"506",mask:"0000 0000"},{text:"Ivory Coast",code:"ci",value:"225",mask:"00 00 00 00"},{text:"Croatia",code:"hr",value:"385",mask:"000 000 0000"},{text:"Cuba",code:"cu",value:"53",mask:"00 0000000"},{text:"Curacao",code:"cw",value:"599",mask:"0 000 0000"},{text:"Cyprus",code:"cy",value:"357",mask:"00 000000"},{text:"Czech Republic",code:"cz",value:"420",mask:"000 000 000"},{text:"Denmark",code:"dk",value:"45",mask:"00 00 00 00"},{text:"Djibouti",code:"dj",value:"253",mask:"00 00 00 00"},{text:"Dominica",code:"dm",value:"1767",mask:"000 000 0000"},{text:"Dominican Republic (RepÃºblica Dominicana)",code:"do",value:"1",mask:"000 000 0000"},{text:"Ecuador",code:"ec",value:"593",mask:"000 000 0000"},{text:"Egypt",code:"eg",value:"20",mask:"0000 000 0000"},{text:"El Salvador",code:"sv",value:"503",mask:"0000 0000"},{text:"Equatorial Guinea",code:"gq",value:"240",mask:"000 000 000"},{text:"Eritrea",code:"er",value:"291",mask:"00 000 000"},{text:"Estonia",code:"ee",value:"372",mask:"0000 0000"},{text:"Ethiopia",code:"et",value:"251",mask:"000 000 0000"},{text:"Falkland Islands",code:"fk",value:"500",mask:"00000"},{text:"Faroe Islands",code:"fo",value:"298",mask:"000000"},{text:"Fiji",code:"fj",value:"679",mask:"000 0000"},{text:"Finland",code:"fi",value:"358",mask:"000 0000000"},{text:"France",code:"fr",value:"33",mask:"00 00 00 00 00"},{text:"French Guiana",code:"gf",value:"594",mask:"0000 00 00 0000"},{text:"French Polynesia",code:"pf",value:"689",mask:"00 00 00 00"},{text:"Gabon",code:"ga",value:"241",mask:"00 00 00 00"},{text:"Gambia",code:"gm",value:"220",mask:"000 0000"},{text:"Georgia",code:"ge",value:"995",mask:"000 00 00 00"},{text:"Germany",code:"de",value:"49",mask:"00000 0000000"},{text:"Ghana",code:"gh",value:"233",mask:"000 000 0000"},{text:"Gibraltar",code:"gi",value:"350",mask:"00000000"},{text:"Greece",code:"gr",value:"30",mask:"000 000 0000"},{text:"Greenland (Kalaallit Nunaat)",code:"gl",value:"299",mask:"00 00 00"},{text:"Grenada",code:"gd",value:"1473",mask:"000 000 0000"},{text:"Guadeloupe",code:"gp",value:"590",mask:"0000 00 00 0000"},{text:"Guam",code:"gu",value:"1671",mask:"000 000 0000"},{text:"Guatemala",code:"gt",value:"502",mask:"0000 0000"},{text:"Guernsey",code:"gg",value:"44",mask:"00000 000000"},{text:"Guinea",code:"gn",value:"224",mask:"000 00 00 00"},{text:"Guinea-Bissau",code:"gw",value:"245",mask:"000 000 000"},{text:"Guyana",code:"gy",value:"592",mask:"000 0000"},{text:"Haiti",code:"ht",value:"509",mask:"00 00 0000"},{text:"Honduras",code:"hn",value:"504",mask:"0000 0000"},{text:"Hong Kong",code:"hk",value:"852",mask:"0000 0000"},{text:"Hungary",code:"hu",value:"36",mask:"00 000 0000"},{text:"Iceland",code:"is",value:"354",mask:"000 0000"},{text:"India",code:"in",value:"91",mask:"000000 00000"},{text:"Indonesia",code:"id",value:"62",mask:"0000 000 0000"},{text:"Iran",code:"ir",value:"98",mask:"0000 000 0000"},{text:"Iraq",code:"iq",value:"964",mask:"0000 000 0000"},{text:"Ireland",code:"ie",value:"353",mask:"000 000 0000"},{text:"Isle of Man",code:"im",value:"44",mask:"00000 000000"},{text:"Israel",code:"il",value:"972",mask:"00 000 0000"},{text:"Italy",code:"it",value:"39",mask:"000 0000000000"},{text:"Jamaica",code:"jm",value:"1",mask:"000 000 0000"},{text:"Japan",code:"jp",value:"81",mask:"000 0000 0000"},{text:"Jersey",code:"je",value:"44",mask:"00000 000000"},{text:"Jordan",code:"jo",value:"962",mask:"00 0000 0000"},{text:"Kazakhstan",code:"kz",value:"7",mask:"0 000 000 0000"},{text:"Kenya",code:"ke",value:"254",mask:"0000 000000"},{text:"Kiribati",code:"ki",value:"686",mask:"00000000"},{text:"Kosovo",code:"xk",value:"383",mask:"00 000 000"},{text:"Kuwait",code:"kw",value:"965",mask:"000 00000"},{text:"Kyrgyzstan",code:"kg",value:"996",mask:"0000 000 000"},{text:"Laos",code:"la",value:"856",mask:"00 00 000 000"},{text:"Latvia",code:"lv",value:"371",mask:"00 000 000"},{text:"Lebanon",code:"lb",value:"961",mask:"00 000 000"},{text:"Lesotho",code:"ls",value:"266",mask:"0000 0000"},{text:"Liberia",code:"lr",value:"231",mask:"000 000 0000"},{text:"Libya",code:"ly",value:"218",mask:"000 0000000"},{text:"Liechtenstein",code:"li",value:"423",mask:"000 000 000"},{text:"Lithuania",code:"lt",value:"370",mask:"0 000 00000"},{text:"Luxembourg",code:"lu",value:"352",mask:"000 000 000"},{text:"Macau",code:"mo",value:"853",mask:"0000 0000"},{text:"Macedonia",code:"mk",value:"389",mask:"000 000 000"},{text:"Madagascar",code:"mg",value:"261",mask:"000 00 000 00"},{text:"Malawi",code:"mw",value:"265",mask:"0000 00 00 00"},{text:"Malaysia",code:"my",value:"60",mask:"000 000 0000"},{text:"Maldives",code:"mv",value:"960",mask:"000 0000"},{text:"Mali",code:"ml",value:"223",mask:"00 00 00 00"},{text:"Malta",code:"mt",value:"356",mask:"0000 0000"},{text:"Marshall Islands",code:"mh",value:"692",mask:"000 0000"},{text:"Martinique",code:"mq",value:"596",mask:"0000 00 00 0000"},{text:"Mauritania",code:"mr",value:"222",mask:"00 00 00 00"},{text:"Mauritius",code:"mu",value:"230",mask:"0000 0000"},{text:"Mayotte",code:"yt",value:"262",mask:"0000 00 00 00"},{text:"Mexico",code:"mx",value:"52",mask:"000 000 000 0000"},{text:"Micronesia",code:"fm",value:"691",mask:"000 0000"},{text:"Moldova",code:"md",value:"373",mask:"0000 00 000"},{text:"Monaco",code:"mc",value:"377",mask:"00 00 00 00 00"},{text:"Mongolia",code:"mn",value:"976",mask:"0000 0000"},{text:"Montenegro",code:"me",value:"382",mask:"000 000 000"},{text:"Montserrat",code:"ms",value:"1664",mask:"000 000 0000"},{text:"Morocco",code:"ma",value:"212",mask:"0000 000000"},{text:"Mozambique",code:"mz",value:"258",mask:"00 000 0000"},{text:"Myanmar(Burma)",code:"mm",value:"95",mask:"00 000 0000"},{text:"Namibia",code:"na",value:"264",mask:"000 000 0000"},{text:"Nauru",code:"nr",value:"674",mask:"000 0000"},{text:"Nepal",code:"np",value:"977",mask:"000 0000000"},{text:"Netherlands",code:"nl",value:"31",mask:"00 00000000"},{text:"New Caledonia",code:"nc",value:"687",mask:"00 00 00"},{text:"New Zealand",code:"nz",value:"64",mask:"000 000 0000"},{text:"Nicaragua",code:"ni",value:"505",mask:"0000 0000"},{text:"Niger",code:"ne",value:"227",mask:"00 00 00 00"},{text:"Nigeria",code:"ng",value:"234",mask:"0000 000 0000"},{text:"Niue",code:"nu",value:"683",mask:"000 0000"},{text:"Norfolk Island",code:"nf",value:"672",mask:"0 00000"},{text:"North Korea",code:"kp",value:"850",mask:"0000 000 0000"},{text:"Northern Mariana Islands",code:"mp",value:"1670",mask:"000 000 0000"},{text:"Norway",code:"no",value:"47",mask:"000 00 000"},{text:"Oman",code:"om",value:"968",mask:"0000 0000"},{text:"Pakistan",code:"pk",value:"92",mask:"0000 0000000"},{text:"Palau",code:"pw",value:"680",mask:"000 0000"},{text:"Palestine",code:"ps",value:"970",mask:"0000 000 000"},{text:"Panama",code:"pa",value:"507",mask:"0000 0000"},{text:"Papua New Guinea",code:"pg",value:"675",mask:"0000 0000"},{text:"Paraguay",code:"py",value:"595",mask:"0000 000000"},{text:"Peru",code:"pe",value:"51",mask:"000 000 000"},{text:"Philippines",code:"ph",value:"63",mask:"0000 000 0000"},{text:"Poland",code:"pl",value:"48",mask:"000 000 000"},{text:"Portugal",code:"pt",value:"351",mask:"000 000 000"},{text:"Puerto Rico",code:"pr",value:"1",mask:"000 000 0000"},{text:"Qatar",code:"qa",value:"974",mask:"0000 0000"},{text:"Réunion",code:"re",value:"262",mask:"0000 00 00 00"},{text:"Romania",code:"ro",value:"40",mask:"0000 000 000"},{text:"Russia",code:"ru",value:"7",mask:"0 000 000 00 00"},{text:"Rwanda",code:"rw",value:"250",mask:"0000 000 000"},{text:"Saint Barthélemy",code:"bl",value:"590",mask:"0000 00 00 00"},{text:"Saint Helena",code:"sh",value:"290",mask:"00000"},{text:"Saint Kitts and Nevis",code:"kn",value:"1869",mask:"000 000 0000"},{text:"Saint Lucia",code:"lc",value:"1758",mask:"000 000 0000"},{text:"Saint Martin",code:"mf",value:"590",mask:"0000 00 00 00"},{text:"Saint Pierre and Miquelon",code:"pm",value:"508",mask:"000 00 00"},{text:"Saint Vincent and the Grenadines",code:"vc",value:"1784",mask:"000 000 0000"},{text:"Samoa",code:"ws",value:"685",mask:"00 00000"},{text:"San Marino",code:"sm",value:"378",mask:"00 00 00 00"},{text:"São Tomé ve Príncipe",code:"st",value:"239",mask:"000 0000"},{text:"Saudi Arabia",code:"sa",value:"966",mask:"000 000 0000"},{text:"Senegal",code:"sn",value:"221",mask:"00 000 00 00"},{text:"Serbia",code:"rs",value:"381",mask:"000 0000000"},{text:"Seychelles",code:"sc",value:"248",mask:"0 000 000"},{text:"Sierra Leone",code:"sl",value:"232",mask:"000 000000"},{text:"Singapore",code:"sg",value:"65",mask:"0000 0000"},{text:"Sint Maarten",code:"sx",value:"1721",mask:"000 000 0000"},{text:"Slovakia",code:"sk",value:"421",mask:"0000 000 000"},{text:"Slovenia",code:"si",value:"386",mask:"00 000 000"},{text:"Solomon Islands",code:"sb",value:"677",mask:"00 00000"},{text:"Somalia",code:"so",value:"252",mask:"0 0000000"},{text:"South Africa",code:"za",value:"27",mask:"000 000 0000"},{text:"South Korea",code:"kr",value:"82",mask:"000 0000 0000"},{text:"South Sudan",code:"ss",value:"211",mask:"0000 000 000"},{text:"Spain",code:"es",value:"34",mask:"000 00 00 00"},{text:"Sri Lanka",code:"lk",value:"94",mask:"000 000 0000"},{text:"Sudan",code:"sd",value:"249",mask:"000 000 0000"},{text:"Suriname",code:"sr",value:"597",mask:"000 0000"},{text:"Svalbard and Jan Mayen",code:"sj",value:"47",mask:"000 00 000"},{text:"Swaziland",code:"sz",value:"268",mask:"0000 0000"},{text:"Sweden",code:"se",value:"46",mask:"000 000 00 00"},{text:"Switzerland",code:"ch",value:"41",mask:"000 000 00 00"},{text:"Syria",code:"sy",value:"963",mask:"0000 000 000"},{text:"Taiwan",code:"tw",value:"886",mask:"0000 000 000"},{text:"Tajikistan",code:"tj",value:"992",mask:"000 00 0000"},{text:"Tanzania",code:"tz",value:"255",mask:"0000 000 000"},{text:"Thailand (à¹„à¸—à¸¢)",code:"th",value:"66",mask:"000 000 0000"},{text:"Timor-Leste",code:"tl",value:"670",mask:"0000 0000"},{text:"Togo",code:"tg",value:"228",mask:"00 00 00 00"},{text:"Tokelau",code:"tk",value:"690",mask:"0000"},{text:"Tonga",code:"to",value:"676",mask:"000 0000"},{text:"Trinidad and Tobago",code:"tt",value:"1868",mask:"000 000 0000"},{text:"Tunisia",code:"tn",value:"216",mask:"00 000 000"},{text:"Turkey",code:"tr",value:"90",mask:"000 000 00 00"},{text:"Turkmenistan",code:"tm",value:"993",mask:"0 00 000000"},{text:"Turks and Caicos Islands",code:"tc",value:"1649",mask:"000 000 0000"},{text:"Tuvalu",code:"tv",value:"688",mask:"000000"},{text:"U.S. Virgin Islands",code:"vi",value:"1340",mask:"000 000 0000"},{text:"Uganda",code:"ug",value:"256",mask:"0000 000000"},{text:"Ukraine",code:"ua",value:"380",mask:"000 000 0000"},{text:"United Arab Emirates",code:"ae",value:"971",mask:"000 000 0000"},{text:"United Kingdom",code:"gb",value:"44",mask:"00000 000000"},{text:"United States",code:"us",value:"1",mask:"000 000 0000"},{text:"Uruguay",code:"uy",value:"598",mask:"000 000 000"},{text:"Uzbekistan",code:"uz",value:"998",mask:"0 00 000 00 00"},{text:"Vanuatu",code:"vu",value:"678",mask:"000 0000"},{text:"Vatican",code:"va",value:"379",mask:"000 000 0000"},{text:"Venezuela",code:"ve",value:"58",mask:"0000 0000000"},{text:"Vietnam",code:"vn",value:"84",mask:"000 000 00 00"},{text:"Wallis and Futuna",code:"wf",value:"681",mask:"00 00 00"},{text:"Western Sahara",code:"eh",value:"212",mask:"0000 000000"},{text:"Yemen",code:"ye",value:"967",mask:"000 000 000"},{text:"Zambia",code:"zm",value:"260",mask:"000 0000000"},{text:"Zimbabwe",code:"zw",value:"263",mask:"000 000 0000"}]},CustomControls={InternationalPhone:function(n,t){var e;console.log(n);var i="",r=n.cc,u="",f="";if(r==null)i="39",r="it",u="",f="000 0000000000";else try{t==""||t==null?(i="39",r="it",u="",f="000 0000000000"):($.each(Datas.CountryPhoneCodes,function(n,t){t.code==r&&(f=t.mask,i=t.value)}),u=t.replace("+"+i,"").replace(/\s/g,""))}catch(o){i="39";r="it";u="";f="000 0000000000"}e="+"+i;$(n.mainDiv).attr("data-cc",r);$(n.mainDiv).attr("data-ac",i);$(n.mainDiv).attr("data-internal",u);$(n.countryCodeLabel).val(e);$(n.phoneId).val(u);(t==""||t==null)&&$(n.phoneId).css("color","#ccc");$(n.phoneId).on("blur",function(){this.value||($(this).css("color","#ccc"),this.value=f)}).on("focus",function(){this.value==f?($(this).css("color","#ccc"),$(this).data("kendoMaskedTextBox").value(""),$(this).focus()):$(this).css("color","#333")}).on("keyup",function(){$(n.mainDiv).attr("data-internal",this.value.replace(/\s/g,""))});$(n.countryCodeId).kendoDropDownList({dataTextField:"text",dataValueField:"code",dataSource:Datas.CountryPhoneCodes,index:0,select:function(t){var i="+"+t.dataItem.value;$(n.mainDiv).attr("data-ac",t.dataItem.value);$(n.mainDiv).attr("data-cc",t.dataItem.code);$(n.countryCodeLabel).val("+"+t.dataItem.value);$(n.countryCodeLabel).attr("value",i);$(n.phoneId).data("kendoMaskedTextBox").setOptions({mask:t.dataItem.mask});$(n.phoneId).data("kendoMaskedTextBox").value(t.dataItem.mask);$(n.phoneId).css("color","#333");$(n.phoneId).on("blur",function(){this.value||($(this).css("color","#ccc"),this.value=t.dataItem.mask)}).on("focus",function(){this.value==t.dataItem.mask?($(this).css("color","#333"),$(this).data("kendoMaskedTextBox").value("")):$(this).css("color","#333")}).on("keyup",function(){$(n.mainDiv).attr("data-internal",this.value.replace(/\s/g,""))});$(n.phoneId).focus()},valueTemplate:'<span class="selected-value"><span class="mr-flag #: data.code #"><\/span><\/span>',template:'<span class="mr-flag #: data.code #"><\/span><span class="k-state-default"><span class="cmbPhoneTitle">#: data.text #<\/span><\/span>'});$(n.phoneId).kendoMaskedTextBox({mask:f,value:u});$(n.countryCodeId).data("kendoDropDownList").value(r)},ViewInternationalPhone:function(n,t){if(n!=null&&t!=null){var i="";return $.each(Datas.CountryPhoneCodes,function(n,r){r.code==t&&(i=r.value)}),"+"+i+" "+n.split(i)[1]}return n}},Register={CountryControl:function(n){n!==null&&(n.CitizenType=="IT"||n.CitizenType==null||n.CitizenType==""?$("#fiscalLabel").text("*"+lblFiscalCode):$("#fiscalLabel").text("*"+lblPassportNo))},OnCountrySelect:function(n){var t=n.dataItem.ValueField;t=="IT"||t==null||t==""?$("#fiscalLabel").text("*"+lblFiscalCode):$("#fiscalLabel").text("*"+lblPassportNo)},Validation:function(){$(".validation-summary-errors ul li").text()==""&&$(".validation-summary-errors").css("display","none")},ResendEmail:function(){$("#btnResendEmail").click(function(n){n.preventDefault();$("#btnResendEmail").attr("disabled","disabled");$(".loading").show();location.href=$(this).attr("href")})}},Search={QS:function(n,t){var i="",r="";(n==null||n=="")&&($("#keyword").val(t),r="?search="+t,Job.List.key=t,$("#listview").html(Job.List.render(1)));i+=r+"";window.history.pushState(null,null,i)},FirstFilter:function(n){if(n==null&&(n=""),$("#keyword").val(n),n=="")$("article").show();else{var t=new RegExp(n.toLowerCase(),"g");$("#listView").children("article").each(function(){var n=$(this).text().toLowerCase();t.test(n)?$(this).show():$(this).hide()})}},Main:function(){$("#keyword").on("keyup",function(){window.history.pushState(null,null,"?search="+$(this).val());Job.List.key=$(this).val();$("#listview").html(Job.List.render(1))});$(".homeJobSearch .input-group .clear").on("click",function(){window.history.pushState(null,null,"?search=");$("#keyword").val("");Job.List.key="";$("#listview").html(Job.List.render(1))})},GetParameterByName:function(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}},Assessment={Redirect:function(n){$("#redirectToAssessment").addClass("open");setTimeout(function(){window.open=n},3e3)}}