/* Tue Jun 01 2021 16:00:35 */ !function(){"use strict";function a(a){var b=a.split("/");return!isNaN(b[0])&&!isNaN(b[1])&&2===b.length&&2===b[0].length&&4===b[1].length&&b[0]<=12&&b[0]>0}function b(a,b){function c(a){return/PUT|POST/i.test(a.method)&&/\/profiles/i.test(decodeURIComponent(a.url))}function d(b,d){c(d.config)&&(g=!0,a.$emit("ContactLocationPassedValidation"))}function e(b,d){var e,f;if(c(d.config)&&400===d.status)for(e=d.data.messages||d.data.message.messages,f=0;f[\]{}`\\();@&$=+\/0-9]+$/,dateExp:/^(?:0([1-9])|(1[0-2]))\/?([0-9]{4}|[0-9]{2})$/,supportedFileExtensions:/\.(?:docx?|pdf|txt|rtf)$/i,email:/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,password:/^.*(?:\d.*[A-Za-z]|[A-Za-z].*\d).*$/,unformattedPhone:/\d{10}/,allZeros:/^(?!0+$)\d{1,10}$/,cityState:/^([^,]+)\s*,\s*([A-Z]{2})$/,municipalityRegion:/^([^,]+)\s*(?:,\s*([^,]+))?$/,postalCode:/^[A-Za-z0-9](?:[-\s](?=[A-Za-z0-9])|[A-Za-z0-9])+?[A-Za-z0-9]$/,zipCode:/^\d{5}(?:-\d{4})?$/,profileId:/^[a-z0-9]{32}$/,alphaNumericCity:/^[a-zA-Z0-9 ']*$/,restrictSpecialTextArea:/^[^|<>{}`]+$/,weburl:/(([\w]+:)?\/\/)?(([\d\w]|%[a-fA-f\d]{2,2})+(:([\d\w]|%[a-fA-f\d]{2,2})+)?@)?([\d\w][-\d\w]{0,253}[\d\w]\.)+[\w]{2,63}(:[\d]+)?(\/([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)*(\?(&?([-+_~.\d\w]|%[a-fA-f\d]{2,2})=?)*)?(#([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)?/}),e.constant("TECHPRO_CONSTANTS",{countries:{us:"United States",uk:"United Kingdom",ca:"Canada",in:"India",af:"Afghanistan",al:"Albania",dz:"Algeria",as:"American Samoa",ad:"Andorra",ao:"Angola",ai:"Anguilla",aq:"Antarctica",ag:"Antigua and Barbuda",ar:"Argentina",am:"Armenia",aw:"Aruba",au:"Australia",at:"Austria",az:"Azerbaijan",bs:"Bahamas",bh:"Bahrain",bd:"Bangladesh",bb:"Barbados",by:"Belarus",be:"Belgium",bz:"Belize",bj:"Benin",bm:"Bermuda",bt:"Bhutan",bo:"Bolivia",ba:"Bosnia and Herzegovina",bw:"Botswana",bv:"Bouvet Island",br:"Brazil",io:"British Indian Ocean Territory",bn:"Brunei Darussalam",bg:"Bulgaria",bf:"Burkina Faso",bi:"Burundi",kh:"Cambodia",cm:"Cameroon",cv:"Cape Verde",ky:"Cayman Islands",cf:"Central African Republic",td:"Chad",cl:"Chile",cn:"China",cx:"Christmas Island",cc:"Cocos (Keeling) Islands",co:"Colombia",km:"Comoros",cg:"Congo",cd:"Congo, The Democratic Republic of the",ck:"Cook Islands",cr:"Costa Rica",ci:"Cote D'Ivoire",hr:"Croatia",cu:"Cuba- Guantanamo Bay",cy:"Cyprus",cz:"Czech Republic",dk:"Denmark",dj:"Djibouti",dm:"Dominica",do:"Dominican Republic",tl:"East Timor",ec:"Ecuador",eg:"Egypt",sv:"El Salvador",gq:"Equatorial Guinea",er:"Eritrea",ee:"Estonia",et:"Ethiopia",fk:"Falkland Islands(Malvinas)",fo:"Faroe Islands",fj:"Fiji",fi:"Finland",fr:"France",gf:"French Guiana",pf:"French Polynesia",tf:"French Southern Territories",ga:"Gabon",gm:"Gambia",ps:"Gaza Strip, West Bank",ge:"Georgia",de:"Germany",gh:"Ghana",gi:"Gibraltar",gr:"Greece",gl:"Greenland",gd:"Grenada",gp:"Guadeloupe",gu:"Guam",gt:"Guatemala",gn:"Guinea",gw:"Guinea-Bissau",gy:"Guyana",ht:"Haiti",hm:"Heard and McDonald Islands",va:"Holy See (Vatican City State)",hn:"Honduras",hk:"Hong Kong",hu:"Hungary",is:"Iceland",id:"Indonesia",iq:"Iraq",ie:"Ireland",il:"Israel",it:"Italy",jm:"Jamaica",jp:"Japan",jo:"Jordan",kz:"Kazakhstan",ke:"Kenya",ki:"Kiribati",kp:"Korea, Democratic People's Rep of",kr:"Korea, Republic of",kw:"Kuwait",kg:"Kyrgyzstan",la:"Lao People's Democratic Republic",lv:"Latvia",lb:"Lebanon",ls:"Lesotho",lr:"Liberia",ly:"Libyan Arab Jamahiriya",li:"Liechtenstein",lt:"Lithuania",lu:"Luxembourg",mo:"Macao",mk:"Macedonia, The Frmr Yugoslav Rep of",mg:"Madagascar",mw:"Malawi",my:"Malaysia",mv:"Maldives",ml:"Mali",mt:"Malta",mh:"Marshall Islands",mq:"Martinique",mr:"Mauritania",mu:"Mauritius",yt:"Mayotte",mx:"Mexico",fm:"Micronesia, Federated States of",md:"Moldova, Republic of",mc:"Monaco",mn:"Mongolia",ms:"Montserrat",ma:"Morocco",mz:"Mozambique",mm:"Myanmar",na:"Namibia",nr:"Nauru",np:"Nepal",nl:"Netherlands",an:"Netherlands Antilles",nc:"New Caledonia",nz:"New Zealand",ni:"Nicaragua",ne:"Niger",ng:"Nigeria",nu:"Niue",nf:"Norfolk Island",mp:"Northern Mariana Islands",no:"Norway",om:"Oman",pk:"Pakistan",pw:"Palau",pa:"Panama",pg:"Papua New Guinea",py:"Paraguay",pe:"Peru",ph:"Philippines",pn:"Pitcairn",pl:"Poland",pt:"Portugal",pr:"Puerto Rico",qa:"Qatar",re:"Reunion",ro:"Romania",ru:"Russian Federation",rw:"Rwanda",gs:"S. Georgia and S. Sandwich Isles.",sh:"Saint Helena",kn:"Saint Kitts and Nevis Anguilla",lc:"Saint Lucia",pm:"Saint Pierre and Miquelon",vc:"Saint Vincent and Grenadines",ws:"Samoa",sm:"San Marino",st:"Sao Tome and Principe",sa:"Saudi Arabia",sn:"Senegal",sc:"Seychelles",sl:"Sierra Leone",sg:"Singapore",sk:"Slovakia",si:"Slovenia",sb:"Solomon Islands",so:"Somalia",za:"South Africa",es:"Spain",lk:"Sri Lanka",sr:"Suriname",sj:"Svalbard and Jan Mayen",sz:"Swaziland",se:"Sweden",ch:"Switzerland",tw:"Taiwan",tj:"Tajikistan",tz:"Tanzania, United Republic of",th:"Thailand",tg:"Togo",tk:"Tokelau",to:"Tonga",tt:"Trinidad and Tobago",tn:"Tunisia",tr:"Turkey",tm:"Turkmenistan",tc:"Turks and Caicos Islands",tv:"Tuvalu",ug:"Uganda",ua:"Ukraine",ae:"United Arab Emirates",gb:"Great Britain",um:"United States Minor Outlying Isl",uy:"Uruguay",uz:"Uzbekistan",vu:"Vanuatu",ve:"Venezuela",vn:"Viet Nam",vg:"Virgin Islands, British",vi:"Virgin Islands, U.S.",wf:"Wallis and Futuna Islands",eh:"Western Sahara",ye:"Yemen",yu:"Yugoslavia",zm:"Zambia",zw:"Zimbabwe"},educationTypes:{MIL:"Military Service",HS:"High School",VOC:"Vocational School",ASC:"Associate",BA:"Bachelors",PDO:"Post-Masters, Pre-Doctorate",PBA:"Pre-Bachelors",MST:"Masters",DOC:"Doctorate",MBA:"MBA",PMS:"Post-Bachelors, Pre-Masters"},educationTypesGB:{HS:"GCSE",ASC:"A Level / AS Level / BTEC / NVQ",HND:"HND",BA:"BA / BSc / BEng",MBA:"MA / MSc / MEng",DOC:"PhD"},employmentTypes:{fulltime:"Full-time",parttime:"Part-time",con_corp:"Contract - Corp-to-Corp",con_ind:"Contract - Independent",con_w2:"Contract - W2",con_hire_corp:"Contract to Hire - Corp-to-Corp",con_hire_ind:"Contract to Hire - Independent",con_hire_w2:"Contract to Hire - W2"},ethnicityTypes:["Decline to Designate","White","Black / African American","Asian / Pacific Islander","American Indian / Alaska Native","Hispanic"],genderTypes:["Decline to Designate","Male","Female"],maxEducationLimit:5,maxProfileLimit:5,maxCoverLetterLimit:5,minSkillsSearchableProfile:5,minWorkExpSearchableProfile:1,profileStatuses:{searchable:"Searchable",notSearchable:"Not Searchable"},veteranStatuses:["Decline to Designate","I am not a Veteran","Special Disabled Veteran","Vietnam Era Veteran","Recently Separated Veteran","Other Protected Veteran"],workAuthTypes:["US Citizen","Canadian Citizen","Green Card Holder","Need H1 Visa","Have H1 Visa","Employment Auth. Document","TN Permit Holder"],currencyTypes:["USD","GBP"],tracking:{eventSource:"Techpro",sourceIp:"",entityId:"",groupId:"",eventType:"",eventData:{feedBackDescription:"",feedBackId:"",companyID:"",currentDate:""}},trackingDsAPI:{state:"",skills:[],feedback:"",profileId:"",desiredSalary:"",deviceType:"iPhone",predictedSalary:"",platform:"iOS",systemVersion:"9.2",diceId:"",username:"",desiredPosition:"",city:"",appVersion:"3.0",environment:"Release"},socialLinks:[{title:"LinkedIn Profile",url:"",icon:"icon-linkedIn1",placeholder:"linkedin.com/username",actualurl:""},{title:"Twitter",url:"",icon:"icon-twitter-circle",placeholder:"twitter.com/username",actualurl:""},{title:"Facebook",url:"",icon:"icon-facebook-circle",placeholder:"facebook.com/username",actualurl:""},{title:"Personal Website",url:"",icon:"icon-internet",placeholder:"Personal Website URL",actualurl:""}],willingnessToChanges:["Employed, actively looking","Unemployed, actively looking","Open to a change, actively manage my career","Would only change for the perfect opportunity","In school, looking for job after graduation"]}),e.factory("trackingService",["TECHPRO_CONSTANTS","DiceApiClient",function(a,b){function c(a){return b({method:"POST",path:"/tracking",cache:!1,data:a,headers:{"Content-Type":"application/json"}})}function d(a){return b({method:"POST",path:"/tracking/firehose/salary_feedback",cache:!1,data:a,headers:{"Content-Type":"application/json"}})}function e(a,c){return b({method:"GET",path:"/tracking?type=profileTracking&dockeyList="+c+"&userId="+encodeURIComponent(a)+"&eventTypeList="+encodeURIComponent("Profile Viewed"),cache:!1,headers:{"Content-Type":"application/json"}})}return{postTrack:c,postTrackDsAPI:d,getAnalyticsData:e}}]),e.factory("profilepictureFactory",["TECHPRO_CONSTANTS","DiceApiClient",function(a,b){function c(a,c,d){var e=new FormData;return e.append("file",a),b({method:"PUT",path:"/people/"+d+"/photo",cache:!1,data:e,transformRequest:angular.identity,headers:{"Content-Type":void 0}})}return{postPicture:c}}]),e.factory("skillGraphFactory",["TECHPRO_CONSTANTS","DiceApiClient",function(a,b){function c(a){return b({method:"GET",path:"/"+d+"/relatedskills?skill_text="+encodeURIComponent(a)+"&numResults=1&version=2&ignoreCase=true&threshold=0.0&mobileFriendly=false",cache:!1,headers:{"Content-Type":"application/json"}})}var d="true"==h?"dsproxy":"utils";return{getSkillGraph:c}}]),e.factory("emailPreferencesFactory",["TECHPRO_CONSTANTS","DiceApiClient","$http",function(a,b,c){function d(a){return b({method:"GET",path:"/utils/"+a+"/emailAlerts",cache:!1,headers:{"Content-Type":"application/json"}})}function e(a,c){return b({method:"PUT",path:"/utils/"+c+"/emailAlerts",cache:!1,data:a,headers:{"Content-Type":"application/json"}})}function f(a,b){return c({method:"PUT",url:a+b,cache:!1,headers:{"Content-Type":"application/json","x-api-key":$("#alertBetaKey").val()}})}return{getEmailPreferences:d,putEmailPreferences:e,putBetaEmailPreferences:f}}]),e.factory("newsletterSubscriptionFactory",["DiceApiClient",function(a){function b(b){return a({method:"PUT",path:"/emails/newsletter",cache:!1,data:b,headers:{"Content-Type":"application/json"}})}function c(b){return a({method:"POST",path:"/emails/newsletter",cache:!1,data:b,headers:{"Content-Type":"application/json"}})}return{putNewsletterSubscription:b,postNewsletterSubscription:c}}]),e.factory("CareerPathApiClient",["$q","TECHPRO_CONSTANTS","DiceApiClient",function(a,b,c){var d={};return d.getCareerPath=function(b,e,f){var g=getCookie("techproLocale")?getCookie("techproLocale").split("_")[1]:"",h=a.defer();if(e&&e.length>1)var i="/people/"+f+"/relevantCareerPaths?title="+encodeURIComponent(b)+"&sortBy="+encodeURIComponent(e)+"&country="+encodeURIComponent(g.toLowerCase());else var i="/people/"+f+"/relevantCareerPaths?title="+encodeURIComponent(b)+"&sortBy="+encodeURIComponent("mostProbableTransition")+"&country="+(g?encodeURIComponent(g.toLowerCase()):encodeURIComponent("'us'"));return c({method:"GET",path:i,cache:!1,headers:{"Content-Type":"application/json"}}).then(function(a){return d=a.data.careerPath,h.resolve(d||[])},function(){return h.resolve([])}),h.promise},d.getCareerPathDsproxy=function(b,e,f){var g=getCookie("techproLocale")?getCookie("techproLocale").split("_")[1]:"",h=a.defer();if(e&&e.length>1)var i="/dsproxy/careerpathing/recommend?title="+encodeURIComponent(b)+"&minSkills=1&maxSkills=10&minPctSkills=0.01&sortBy="+encodeURIComponent(e)+"&countryCode="+encodeURIComponent(g.toLowerCase());else var i="/dsproxy/careerpathing/recommend?title="+encodeURIComponent(b)+"&minSkills=1&maxSkills=10&minPctSkills=0.01&sortBy="+encodeURIComponent("mostProbableTransition")+"&countryCode="+encodeURIComponent(g.toLowerCase());return c({method:"GET",path:i,cache:!1,headers:{"Content-Type":"application/json"}}).then(function(a){return d=a.data.careerPath,h.resolve(d||[])},function(){return h.resolve([])}),h.promise},d.getCareerPathInfoDsproxy=function(b){var d=getCookie("techproLocale")?getCookie("techproLocale").split("_")[1]:"",e=(a.defer(),"/dsproxy/careerpathing/career_info?title="+encodeURIComponent(b)+"&minSkills=1&maxSkills=10&minPctSkills=0.01&countryCode="+encodeURIComponent(d.toLowerCase()));return c({method:"GET",path:e,cache:!1,headers:{"Content-Type":"application/json"}})},d.getRelatedSkills=function(b,e){var f="true"==h?"dsproxy":"utils",g=a.defer();if(e)var i="/"+f+"/relatedskills?skill_text="+encodeURIComponent(b)+"&columns=related_skills,related_titles&numResults="+e;else var i="/"+f+"/relatedskills?skill_text="+encodeURIComponent(b)+"&columns=related_skills,related_titles&numResults=3";return c({method:"GET",path:i,cache:!1,headers:{"Content-Type":"application/json"}}).then(function(a){return d=a.data,g.resolve(d||[])},function(){return g.resolve([])}),g.promise},d.getCareerPathNotLoggedIn=function(b,e,f){var g=a.defer(),h=getCookie("techproLocale"),i="US";if(h&&(i=h.split("_")[1].toUpperCase()),e&&e.length>1)var j="/dsproxy/careerpathing/recommend?title="+encodeURIComponent(b)+"&minSkills=1&maxSkills=10&minPctSkills=0.01&sortBy="+encodeURIComponent(e)+"&countryCode="+encodeURIComponent(i);else var j="/dsproxy/careerpathing/recommend?title="+encodeURIComponent(b)+"&minSkills=1&maxSkills=10&minPctSkills=0.01&sortBy="+encodeURIComponent("salaryChange")+"&countryCode="+encodeURIComponent(i);return c({method:"GET",path:j,cache:!1,headers:{"Content-Type":"application/json"}}).then(function(a){return d=a.data.careerPath,g.resolve(d||[])},function(){return g.resolve([])}),g.promise},d}]),e.factory("employmentTypesService",["TECHPRO_CONSTANTS","ReferencesApiClient",function(a,b){function c(){return b.getEmploymentType()}function d(b){var c,d=!!b,e=[];for(c in a.employmentTypes)e.push({value:a.employmentTypes[c],checked:d});return e}function e(){var b,c=[];for(b in a.employmentTypes)c.push(a.employmentTypes[b]);return c}return{getCheckList:d,getSimpleList:e,getEmploymentType:c}}]),e.factory("countriesService",["$filter","TECHPRO_CONSTANTS",function(a,b){function c(){var a,c=[];for(a in b.countries)c.push(b.countries[a]);return c}function d(){return a("reverseMapping")(b.countries)}function e(a){if(!a)return!0;var b=a.toLowerCase();return"us"===b||"ca"===b}function f(a){if(!a)return!1;var b=a.toLowerCase();return"us"===b||"ca"===b}return{getCountryNameList:c,getReversedCountryMapping:d,isRegionRequiredForCountry:e,isNotCannadaOrUS:f}}]),g.factory("cookieFactory",["$filter",function(a){return{getCookie:function(a){return decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(a).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null},setCookie:function(a,b,c,d,e,f){if(!a||/^(?:expires|max\-age|path|domain|secure)$/i.test(a))return!1;var g="";if(c)switch(c.constructor){case Number:g=c===1/0?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+c;break;case String:g="; expires="+c;break;case Date:g="; expires="+c.toUTCString()}const h=encodeURIComponent(a)+"="+encodeURIComponent(b)+g+(e?"; domain="+e:"")+(d?"; path="+d:"")+"; secure; SameSite=none";return document.cookie=h,!0},removeCookie:function(a,b,c){return!(!a||!this.hasCookie(a))&&(document.cookie=encodeURIComponent(a)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(c?"; domain="+c:"")+(b?"; path="+b:""),!0)},hasCookie:function(a){return new RegExp("(?:^|;\\s*)"+encodeURIComponent(a).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},keys:function(){for(var a=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),b=0;b=0;b-=1)for(c=0;c=0;f--)if(-1!==c[f].types.indexOf("postal_code"))return c[f].short_name;return null},function(){return null})}function i(a,b){return k({latlng:a+","+b})}function j(a){return k({address:a})}function k(a){return c({method:"GET",url:m,params:a,cache:!0}).then(function(a){return a.data.results})}var l=new b.google.maps.places.AutocompleteService,m="https://maps.googleapis.com/maps/api/geocode/json",n=new b.google.maps.Geocoder,o="",p=getCookie("techproLocale");p&&(o=p.split("_")[1]),this.getLocationPredictions=g,this.getPostalCode=h,this.getLocationByCoords=i,this.getLocationsByAddress=j,this.getLocationsByPostalCode=e}]),f.service("diceLocationService",["$q","geoLocationService","googleLocationService","cookieFactory","countriesService",function(a,b,c,d,e){function f(a,b,e){var f={input:a,types:["(cities)"],componentRestrictions:{}};e&&angular.extend(f,e);var g=d.getCookie("techproLocale");if(g){var h=g.split("_")[1];f.componentRestrictions.country=h}return c.getLocationPredictions(f,b)}function g(){var d=a.defer();return b.getGeoLocation().then(function(a){a.zipCode?d.resolve(a.zipCode):a.latitude&&a.longitude?c.getPostalCode(a.latitude,a.longitude).then(function(a){d.resolve(a)}):d.reject()},function(){d.reject()}),d.promise}function h(a,b){return c.getLocationByCoords(a,b)}function i(a){return c.getLocationsByAddress(a)}function j(a,b){return c.getLocationsByPostalCode(a,b)}e.getReversedCountryMapping();this.getLocationPredictions=f,this.getPostalCode=g,this.getLocationByCoords=h,this.getLocationsByAddress=i,this.getLocationsByPostalCode=j}]),f.service("geoLocationService",["$rootScope","$http","$q","$filter","DiceApiClient","cookieFactory","googleLocationService","setTheoryService",function(a,b,c,d,e,f,g,h){this.setGeoLocation=function(a){var b,c;if(a){if("string"==typeof(b=angular.fromJson(f.getCookie("DGL")||"{}")))try{b=angular.fromJson(b||"{}")}catch(e){b={}}for(c in a)c&&c in b&&(b[c]=d("trim")(a[c]));f.setCookie("DGL",angular.toJson(b),6048e5,"/")}},this.getGeoLocation=function(){function b(a){!a.zipCode&&a.latitude&&a.longitude?g.getPostalCode(a.latitude,a.longitude).then(function(b){a.zipCode=b,f.setCookie("DGL",angular.toJson(a),6048e5,"/"),d.resolve(a)},function(){f.setCookie("DGL",angular.toJson(a),6048e5,"/"),d.resolve(a)}):d.resolve(a)}var d=c.defer(),i=angular.fromJson(f.getCookie("DGL")||"{}");if("string"==typeof i)try{i=angular.fromJson(i||"{}")}catch(j){i={}}return h.isEmptyObject(i)?/bot|googlebot|crawler|spider|robot|crawling|Yahoo!|Preview|Slurp/i.test(navigator.userAgent)||a.ipAddress&&e({method:"GET",path:"/locations/searches?ipAddress="+encodeURIComponent(a.ipAddress),cache:!0}).then(function(a){var c;a.data&&a.data.items&&a.data.items.length>0&&(c=a.data.items[0],"{}"==c.stateCode&&(c.stateCode=""),f.setCookie("DGL",angular.toJson(c),6048e5,"/"),b(c))}):b(i),d.promise}}]),f.directive("diceGeoLocation",["$parse","$timeout","$filter","geoLocationService","diceRegex",function(a,b,c,d,e){return{restrict:"A",require:"?ngModel",link:function(e,f,g,h){function i(){var a,b=h?h.$modelValue:f.val(),e={};j?e[j]="object"==typeof b?b.value:b:(a=b?b.split(","):[],a.length>0?e.city=a[0]:e.city="",a.length>1&&2===c("trim")(a[1]).length?e.stateCode=c("trim")(a[1]).toUpperCase():e.stateCode=""),e.latitude="",e.longitude="",d.setGeoLocation(e)}var j=g.diceGeoLocation,k=g.diceGeoLocationTriggerInitialViewChange;d.getGeoLocation().then(function(c){var d;h&&h.$isEmpty(h.$modelValue)&&("latitude"===j?d=c.latitude:"longitude"===j?d=c.longitude:"zipCode"===j?d=c.zipCode:"country"===j?d=c.country:j&&j in c?d=c[j]:(d=c.city)&&c.stateCode&&(d+=", "+c.stateCode.toUpperCase()),h?angular.isDefined(k)&&!1!==e.$eval(k)?(h.$setViewValue(d),h.$render()):a(g.ngModel).assign(e,d):b(function(){f.val(d)},0))}),angular.isDefined(g.diceGeoLocationUpdateOnBlur)&&!1!==e.$eval(g.diceGeoLocationUpdateOnBlur)&&f.on("blur",i),!1!==e.$eval(g.diceGeoLocationUpdateOnFormSubmit)&&(angular.element(f[0].form).on("submit",i),e.$on("$destroy",function(){angular.element(f[0].form).off("submit",i)}))}}}]),f.controller("locationTypeAheadController",["$scope","diceLocationService",function(a,b){a.getLocations=b.getLocationPredictions}]),e.filter("toTrustedHTML",["$sce",function(a){return function(b){return a.trustAsHtml(b)}}]),e.constant("diceApiClientPath","/config/dice/api.json?path="),e.constant("diceApiTimeoutClientPath","/config/dice/api/timeout.json?path="),e.factory("DiceApiClient",["$http","diceApiClientPath","diceApiTimeoutClientPath",function(a,b,c){return function(c,d){var e,f,g,h=[];if(angular.isObject(c.params)&&(e=Object.keys(c.params),e.length>0)){for(g=0;g=48&&b<=57)||a.preventDefault()})}}),e.directive("onlyNumNoDecimal",function(){return function(a,b,c){b.keypress(function(a){var b=a.which||a.keyCode;0==a.shiftKey&&(8==b||37==b||b>=48&&b<=57)||a.preventDefault()})}}),e.directive("numbersOnly",function(){return{require:"ngModel",link:function(a,b,c,d){function e(a){if(a){var b=a.replace(/[^0-9]/g,"");return b!==a&&(d.$setViewValue(b),d.$render()),b}}d.$parsers.push(e)}}}),e.directive("skipXss",function(){return{require:"ngModel",restrict:"A",link:function(a,b,c,d){d.$parsers.push(function(a){if(void 0===a)return"";var b=a.replace(/[<>()&*]/gi,"");return b!=a&&(d.$setViewValue(b),d.$render()),b})}}}),e.directive("onlyCharacter",function(){return{require:"ngModel",restrict:"A",link:function(a,b,c,d){d.$parsers.push(function(a){if(void 0===a)return"";var b=a.replace(/[0-9]/gi,"");return b!=a&&(d.$setViewValue(b),d.$render()),b})}}}),e.directive("diceNgMin",function(){return{restrict:"A",require:"ngModel",link:function(a,b,c,d){a.$watch(c.diceNgMin,function(){d.$isDirty&&d.$setViewValue(d.$viewValue)});var e=function(b){return b<(a.$eval(c.diceNgMin)||0)?void d.$setValidity("diceNgMin",!1):(d.$setValidity("diceNgMin",!0),b)};d.$parsers.push(e),d.$formatters.push(e)}}}),e.directive("heightMaster",function(){function a(a,b,c){a.$watch(function(){$(window).width()>=960&&(a.style={height:b[0].offsetHeight+"px"})})}return{restrict:"AE",link:a}}),e.directive("diceNgMax",function(){return{restrict:"A",require:"ngModel",link:function(a,b,c,d){a.$watch(c.diceNgMax,function(){d.$isDirty&&d.$setViewValue(d.$viewValue)});var e=function(b){return b>(a.$eval(c.diceNgMax)||1/0)?void d.$setValidity("diceNgMax",!1):(d.$setValidity("diceNgMax",!0),b)};d.$parsers.push(e),d.$formatters.push(e)}}}),e.directive("diceBlurTracker",[function(){return{restrict:"A",require:"ngModel",link:function(a,b,c,d){d.diceBlurred=!1,b.on("blur",function(){a.$apply(function(){d.diceBlurred=!0})})}}}]),e.directive("diceKeyPressTracker",[function(){return{restrict:"A",require:"ngModel",link:function(a,b,c,d){var e=0;d.diceKeyPress=!1,b.on("keydown paste",function(b){9!=b.keyCode&&++e>=8&&a.$apply(function(){d.diceKeyPress=!0})})}}}]),e.directive("checkCustomerEmail",["$q","$timeout","DiceApiClient","diceRegex",function(a,b,c,d){return{restrict:"A",require:"ngModel",link:function(b,d,e,f){function g(b){var d=a.defer();return c({method:"GET",path:"/customers?fields=id&userName="+encodeURIComponent(b),cache:!0}).success(function(a){d.resolve(!1)}).error(function(){d.resolve(!0)}),d.promise}d.on("input change blur",function(){var c=b.$eval(e.ngModel);if(f.$isEmpty(c))return void f.$setValidity("diceCustomerValidEmail",!0);a.all([g(c)]).then(function(a){f.$setValidity("diceCustomerValidEmail",a[0])})})}}}]),e.directive("checkEmail",["$q","$timeout",function(a,b){return{restrict:"A",require:"ngModel",link:function(a,b,c,d){var e;d.checkEmail=!1,b.on("keydown paste",function(a){8==(e=a.keyCode)&&(d.checkEmail=!0)})}}}]),e.directive("checkForSpace",["$q","$timeout",function(a,b){return{restrict:"A",require:"ngModel",link:function(a,b,c,d){b.on("keydown",function(a){if(32==a.keyCode)return!1})}}}]),e.directive("diceValidAndUniqueEmail",["$compile","$q","$timeout","DiceApiClient",function(a,b,c,d){return{restrict:"A",require:"ngModel",link:function(e,f,g,h){function i(){var a=document.createElement("input");return a.setAttribute("type","email"),"text"!==a.type}function j(a){angular.element("#email").val(""),angular.element("#email").val(a);var c=angular.element("#domainListPlusConfig").val(),e=b.defer(),f="",g="";if(a&&a.indexOf("+")>0&&(f=a.split("@"),c)){c=c.replace(/^\s*|\s*$/g,"").split(/\s*,\s*/);for(var h=0;h0&&(f=a.split("@"),c)){c=c.replace(/^\s*|\s*$/g,"").split(/\s*,\s*/);for(var h=0;h+=',scope:!0,controller:["$scope",function(b){return{updateCaptcha:function(){return a.getCaptchaPromise().then(function(a){b.captcha=a})},getCaptcha:function(){return b.captcha?b.captcha:{isTurnedOn:!1,value1:"",value2:"",answer:/^$/}}}}],controllerAs:"captchaController",link:function(a,b,c,d){a.captcha={isTurnedOn:!1,value1:"",value2:"",answer:/^$/},c.diceIsCaptchaTurnedOn&&a.$watch(function(){return a.captcha.isTurnedOn},function(b){a.$parent[c.diceIsCaptchaTurnedOn]=b}),d.updateCaptcha()}}}]),e.directive("diceCaptchaInput",[function(){return{restrict:"A",require:["ngModel","^diceCaptcha"],link:function(a,b,c,d){function e(){return a.$eval(c.ngModel)}function f(b){var d=i.getCaptcha().answer,e=h.$isEmpty(b),f=d.test(b),g=!h.$error.diceCaptcha,k=e||f&&g&&!j;a.$parent[c.ngModel]=b,h.$setValidity("diceCaptcha",k),j=e}function g(){var b=a.$eval(c.ngModel),d=i.getCaptcha().answer,e=h.$isEmpty(b),f=d.test(b),g=e||f;g||(i.updateCaptcha(),h.$setViewValue(void 0),h.$render()),h.$setValidity("diceCaptcha",g)}var h=d[0],i=d[1],j=h.$isEmpty(a.$eval(c.ngModel));a.$watch(e,f),b.on("blur",function(){a.$apply(g)}),angular.element(b[0].form).on("submit",function(){a.$apply(g)}),a.$on("$destroy",function(){angular.element(b[0].form).off("submit",function(){a.$apply(g)})})}}}]),e.service("validContactLocationService",b),b.$inject=["$rootScope","httpRequestEvents"],e.directive("diceLocationValidator",c),c.$inject=["$rootScope","validContactLocationService"],g.filter("reverseMapping",[function(){return function(a){var b,c={};try{for(b in a)a.hasOwnProperty(b)&&(c[a[b]]=b);return c}catch(d){return a}}}]),g.filter("toArray",[function(){return function(a,b,c){var d,e,f=[];b=b||"key",c=c||"value";try{for(e in a)d={},d[b]=e,d[c]=a[e],f.push(d)}catch(g){return a}return f}}]),g.filter("cut",[function(){return function(a,b,c,d){if(!a)return"";if(!(c=parseInt(c,10)))return a;if(a.length<=c)return a;if(a=a.substr(0,c),b){var e=a.lastIndexOf(" ");-1!=e&&(a=a.substr(0,e))}return a+(d||" …")}}]),g.filter("roundup",[function(){return function(a){return Math.ceil(a)}}]),g.filter("rounddecimal",[function(){return function(a){if(a){var b=a.toString().split(".");return b[1]?b[1].split("")[0]>=5?Number(b[0])+1:Number(b[0]):a}return a}}]),g.filter("extractDigits",[function(){return function(a){return a=a?a.replace(/\D/g,""):""}}]),g.filter("formattedPhoneNumber",["$filter",function(a){return function(b){var c=getCookie("techproLocale"),d=a("extractDigits")(b);if(d){if(c&&"GB"===c.split("_")[1])return"("+d.slice(0,2)+") "+d.slice(2,6)+d.slice(6,25);if(10===d.length)return"("+d.slice(0,3)+") "+d.slice(3,6)+"-"+d.slice(6,10)}return b}}]),g.filter("formattedLocation",[function(){return function(a){var b="";if(!a)return b;(a.municipality||a.city)&&(b+=a.municipality||a.city),"en_GB"!=getCookie("techproLocale")&&b&&a.region&&(b+=", ",b+=a.region);try{b=decodeURIComponent(escape(b))}catch(c){}return b}}]),g.filter("formattedLocation1",[function(){return function(a){var b="";if(!a)return b;(a.municipality||a.city)&&(b+=a.municipality||a.city),"en_GB"!=getCookie("techproLocale")&&b&&a.region&&(b+=", ",b+=a.region);try{b=decodeURIComponent(escape(b))}catch(c){}return b}}]),g.directive("dicePhoneInput",[function(){return{restrict:"A",require:"ngModel",link:function(a,b,c,d){d.$parsers.push(function(a){var b,c;if(!a)return a;var e=getCookie("techproLocale");return e&&"GB"===e.split("_")[1]?/^\d*$/.test(a)?b=a.slice(0,25):(b=a.replace(/[^\d ()-.]/g,""),(c=b.replace(/\D/g,"").length)>=25&&(b=b.slice(0,b.search(/\d\D*$/)+(25===c?1:0)))):/^\d*$/.test(a)?b=a.slice(0,10):(b=a.replace(/[^\d ()-.]/g,""),(c=b.replace(/\D/g,"").length)>=10&&(b=b.slice(0,b.search(/\d\D*$/)+(10===c?1:0)))),b!==a&&(d.$setViewValue(b),d.$render()),b})}}}]),g.directive("dicePostalCodeInput",[function(){return{restrict:"A",require:"ngModel",link:function(a,b,c,d){d.$parsers.push(function(a){var b;return a?(b=a.replace(/^[-\s]|[^ A-Za-z0-9-]/g,"").replace(/\s[\s-]+/g," ").replace(/-[-\s]+/g,"-").toUpperCase(),b!==a&&(d.$setViewValue(b),d.$render()),b):a})}}}]),e.directive("diceFileInputReader",["$parse","$filter","fileReader",function(a,b,c){return{restrict:"A",require:"ngModel",link:function(d,e,f,g){function h(){var a;if(c.isSupported&&(a=e[0].files[0],g.$setValidity("diceFileFormat",!0),g.$setValidity("diceMaxFileUploadSize",!0),a)){if(m&&!m.test(a.name))return g.$setValidity("diceFileFormat",!1),g.$setValidity("diceMaxFileUploadSize",!0),c.readAsDataURL(a,d).then(function(b){a.data=b.match(/,(.*)$/)[1],k(d,a),n(d)}),!1;if(a.size>l)return g.$setValidity("diceMaxFileUploadSize",!1),g.$setValidity("diceFileFormat",!0),c.readAsDataURL(a,d).then(function(b){a.data=b.match(/,(.*)$/)[1],k(d,a),n(d)}),!1;c.readAsDataURL(a,d).then(function(b){a.data=b.match(/,(.*)$/)[1],k(d,a),n(d)})}}var i,j,k=a(f.fileModel).assign,l=parseFloat(f.maxFileUploadSize,10)||1/0,m=f.supportedFileExtensionPattern,n=a(f.fileReadCallback);e.on("change",h);try{i=d.$eval(m)}catch(o){}if(i instanceof RegExp?m=i:angular.isString(m)&&m.length>0&&(j=m.match(/^\/(.*)\/([gimy]*)$/),m=j?new RegExp(j[1]||"",j[2]||""):new RegExp(m)),m&&!m.test)throw angular.$$minErr("diceFileUpload")("noregeexp","Expected {0} to be a RegExp but was {1}. Element: {2}",f.supportedFileExtPattern,m,b("startingTag")(e))}}}]),e.directive("diceModel",["$filter","$parse",function(a,b){return{restrict:"A",require:"ngModel",link:function(c,d,e,f){var g,h,i=e.diceModelFilter,j=e.diceModelPattern,k=b(e.diceModel).assign;try{g=c.$eval(j)}catch(l){}if(g instanceof RegExp?j=g:angular.isString(j)&&j.length>0&&(h=j.match(/^\/(.*)\/([gimy]*)$/),j=h?new RegExp(h[1]||"",h[2]||""):new RegExp(j)),j&&!j.test)throw angular.$$minErr("diceModel")("noregeexp","Expected {0} to be a RegExp but was {1}. Element: {2}",e.diceModelPattern,j,a("startingTag")(d));c.$watch(e.ngModel,function(b){b?(i&&(b=a(i)(b)),j&&!j.test(b)||k(c,b)):k(c,"")})}}}]),g.filter("startingTag",[function(){return function(a){a=angular.element(a).clone();try{a.html("")}catch(c){}var b=angular.element("
").append(a).html();try{return 3===a[0].nodeType?b.toLowerCase():b.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(a,b){return"<"+b.toLowerCase()})}catch(d){return b.toLowerCase()}}}]),g.filter("formattedDate",["$filter",function(a){return function(b){return null==b?"":a("date")(new Date(b),"MM-dd-yyyy").toUpperCase()}}]),g.filter("ukFormattedDate",["$filter",function(a){return function(b){return null==b?"":a("date")(new Date(b),"dd/MM/yyyy").toUpperCase()}}]),g.filter("localeCurrency",["cookieFactory","$filter",function(a,b){return function(b){var c=a.getCookie("techproLocale"),d="$";return c&&"GB"===c.split("_")[1]&&(d="£"),b=parseFloat(b),b=Math.round(b),b=b%1==0?b.toFixed(0):b.toFixed(2),d+b.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}}]),e.directive("floatLabel",[function(){return{restrict:"A",link:function(a,b,c){function d(){f[0].defaultValue===f.val()&&(b.addClass("float-label-on"),f.addClass("float-label"))}function e(){f[0].defaultValue!==f.val()&&f.attr("placeholder")!==f.val()||(b.removeClass("float-label-on"),f.removeClass("float-label"))}var f=b.next();b.html()||b.html(f.attr("placeholder")),a.$watch(function(){return f[0].value},function(){f[0].defaultValue===f.val()||f.attr("placeholder")===f.val()?(b.removeClass("float-label-on"),f.removeClass("float-label")):(b.addClass("float-label-on"),f.addClass("float-label"))}),f.on("focus",d).on("blur",e),a.$on("$destroy",function(){f.off("focus",d).off("blur",e)})}}}]),e.directive("diceNgCompareDates",["$filter",function(a){return{require:"ngModel",link:function(b,c,d,e){function f(){return{startDate:b.$eval(d.diceNgCompareDates)||"",endDate:b.$eval(d.ngModel)||""}}var g=a("date")(new Date,"M/dd/yyyy"),h=g.split("/"),i=(h.splice(1,1),h[0]+"/"+h[1]);"currentEmployment"===d.name&&(e.value=i),b.$watch(f,function(a){function c(a){var b,c,d=a.startDate.split("/"),e=a.endDate.split("/");return!(d.length>1)||(2===d.length&&2===e.length&&(b=Date.UTC(d[1],d[0]),c=Date.UTC(e[1],e[0])),!(!b||!c)&&b=g)&&b<=c}e.$setValidity("yearsToCompare",e.$isEmpty(b.$eval(d.ngModel))||c(a))},!0)}}}]),g.constant("diceButtonConfig",{activeClass:"on",toggleEvent:"click tap"}),g.controller("DiceSwitchController",["diceButtonConfig",function(a){this.activeClass=a.activeClass||"on",this.toggleEvent=a.toggleEvent||"click tap"}]),g.directive("diceSwitch",["$parse",function(a){return{restrict:"A",require:["diceSwitch","ngModel"],scope:{diceSwitchOnText:"@",diceSwitchOffText:"@",diceSwitchAnimated:"@",ngModel:"="},template:'
',replace:!0,controller:"DiceSwitchController",controllerAs:"switchCtrl",link:{pre:function(b,c,e,f){function g(c,e,f){return d(a,b,c,e,f)}var h=f[0],i=f[1],j=c.children()[1];angular.isDefined(e.diceSwitchDraggable)&&(b.diceSwitchDraggable=e.diceSwitchDraggable),b.getTrueValue=function(){return g("diceTrueValue",e.diceTrueValue,!0)},b.getFalseValue=function(){return g("diceFalseValue",e.diceFalseValue,!1)},h.toggleValue=function(a){var d;d="boolean"==typeof a?a?b.getTrueValue():b.getFalseValue():c.hasClass(h.activeClass)?b.getFalseValue():b.getTrueValue(),b.$apply(function(){i.$setViewValue(d)})},i.$render=function(){},c.on(h.toggleEvent,function(){h.toggleValue(),j.focus()})}}}}]),g.directive("diceSwitchHandle",["$document",function(a){return{restrict:"A",require:"^diceSwitch",link:{post:function(b,c,d,e){function f(){function d(){return 0}function f(){return q.clientWidth-c[0].offsetWidth}function i(){return 0}function j(){return q.clientHeight-c[0].offsetHeight}function k(){return(f()+d())/2}function l(b){b&&(a[b]("mousemove",o),a[b]("mouseup",m),a[b]("mouseleave",n),c[b]("focusout",n))}function m(a){var b,d=0,f=!1;l("off"),h=!1,g&&(b=c.css("transform").match(u),b&&(d=b[1]),d>k()&&(f=!0),e.toggleValue(f)),c.css({transition:"",transform:""})}function n(a){l("off"),h=!1,c.css({transition:"",transform:""})}function o(a){var b=Math.min(Math.max(s+(a.clientX-r.x),d()),f()),e=Math.min(Math.max(t+(a.clientY-r.y),i()),j());return c.css({transition:"none",transform:"translate("+(b?b+"px":0)+", "+(e?e+"px":0)+")"}),g=!0,a.preventDefault(),!1}function p(a){var b=c.css("transform").match(u);r.x=a.clientX,r.y=a.clientY,b?(s=parseFloat(b[1],10),t=parseFloat(b[2],10)):(s=0,t=0),l("on"),h=!0,g=!1}var q=c[0].parentNode,r={x:null,y:null},s=0,t=0,u=/matrix\(-?\d+(?:\.\d+)?, -?\d+(?:\.\d+)?, -?\d+(?:\.\d+)?, -?\d+(?:\.\d+)?, (-?\d+(?:\.\d+)?), (-?\d+(?:\.\d+)?)\)/;c.on("mousedown",p),c.on(e.toggleEvent,function(a){g&&(a.stopPropagation(),g=!1)}),b.$on("$destroy",function(){l("off")})}var g=!1,h=!1;c.on("keydown",function(a){if(!c[0].getAttribute("disabled")&&!c[0].parentNode.getAttribute("disabled")&&!h)switch(a.which){case 13:case 32:e.toggleValue();break;case 37:e.toggleValue(!1);break;case 39:e.toggleValue(!0)}}),angular.isDefined(b.diceSwitchDraggable)&&!1!==b.$eval(b.diceSwitchDraggable)&&f()}}}}]),g.directive("languageMultiselect",function(){return{restrict:"AE",scope:{model:"=",options:"=",savelanguages:"&"},template:"
You can select up to 10 languages.
",controller:["$scope","$document",function(a,b){b.on("click",function(b){for(var c=b.target.parentElement,d=!1;angular.isDefined(c)&&null!==c&&!d;)-1===c.className.indexOf("multiselect-parent")||d||(d=!0),c=c.parentElement;d||a.$apply(function(){a.open=!1})}),a.searchFilter=a.searchFilter||"",a.buttonDefaultText="Select Languages Spoken",a.openDropdown=function(){a.open=!a.open},a.checkboxClick=function(b,c){a.toggleSelectItem(c),b.stopImmediatePropagation()},a.toggleSelectItem=function(b){var c=-1;angular.forEach(a.model,function(a,d){a==b.code&&(c=d)}),(10!==a.model.length||a.isChecked(b))&&(c>=0?a.model.splice(c,1):a.model.push(b.code),a.savelanguages({}))},a.isChecked=function(b){return-1!==a.model.indexOf(b.code)},a.getButtonText=function(b){if(a.model.length>0){var c=angular.isDefined(a.model)?a.model.length:0;if(0===c)return a.buttonDefaultText;if(c<4){var d=[];return angular.forEach(a.options,function(b){a.isChecked(b)&&d.push(b.language)}),d.join(", ")}return c+" languages selected"}return a.buttonDefaultText}}]}}),g.directive("languageSelect",function(){return{restrict:"AE",scope:{model:"=",options:"=",savelanguages:"&"},template:"
Select Languages Spoken
",controller:["$scope","$document",function(a,b){a.searchFilter=a.searchFilter||"",a.buttonDefaultText="not mentioned",a.isChecked=function(b){return-1!==a.model.indexOf(b.code)},a.getButtonText=function(b){if(a.model.length>0){var c=angular.isDefined(a.model)?a.model.length:0;if(0===c)return a.buttonDefaultText;if(c<4){var d=[];return angular.forEach(a.options,function(b){a.isChecked(b)&&d.push(b.language)}),d.join(", ")}return c+" languages selected"}return a.buttonDefaultText}}]}}),g.directive("employmentMultiselect",["cookieFactory",function(a){return{restrict:"AE",scope:{model:"=",options:"=",savetypes:"&"},template:"
",replace:!0,controller:["$scope","$document","$element","$compile",function(b,c,d,e){c.on("click",function(a){for(var c=a.target.parentElement,d=!1;angular.isDefined(c)&&null!==c&&!d;){if(""==c.className.baseVal||"rect"==c.className.baseVal)return;c.className&&-1!==c.className.indexOf("multiselect-employment")&&!d&&(d=!0),c=c.parentElement}d||b.$apply(function(){b.open=!1})}),b.buttonDefaultText="Select Employment Types",b.openDropdown=function(){b.open=!b.open},b.checkboxClick=function(a,c){b.toggleSelectItem(c),a.stopImmediatePropagation()},b.getIconClass=function(){var c=a.getCookie("techproLocale");return c&&"GB"==c.split("_")[1]?b.model&&b.model.length>0?"icon-filled-check-4":void 0:b.model&&b.model.length>0?"icon-filled-check-4":"icon-filled-delete-2"},b.toggleSelectItem=function(a){a.checked=!a.checked,a.childrens?b.selectUnselectItem(a):b.selectOneItem(a),angular.forEach(b.options,function(a,b){var c=!1,d=!1;a.childrens&&angular.forEach(a.childrens,function(b,e){"Third Party"===a.value&&b.checked&&(d=!0),"Contracts"===a.value&&b.checked&&(c=!0)}),"Third Party"===a.value&&(a.checked=d),"Contracts"===a.value&&(a.checked=c)}),b.savetypes({})},b.selectUnselectItem=function(a){var c=-1,d=[];b.model&&(d=b.model.split(", ")),angular.forEach(a.childrens,function(b,e){angular.forEach(d,function(a,d){a===b.value&&(c=d)}),b.checked=a.checked,!a.checked&&c>=0?d.splice(c,1):a.checked&&d.push(b.value)}),b.model=d.join(", ")},b.selectOneItem=function(a){var c=-1,d=[];b.model&&(d=b.model.split(", ")),angular.forEach(d,function(b,d){b===a.value&&(c=d)}),c>=0?d.splice(c,1):d.push(a.value),b.model=d.join(", ")},b.getButtonText=function(c){var d=a.getCookie("techproLocale");return d&&"GB"==d.split("_")[1]?!b.model||-1===b.model.indexOf("Permanent")&&-1===b.model.indexOf("Contract")?b.buttonDefaultText:b.model:b.model&&b.model.length>0?b.model:b.buttonDefaultText}}]}}]),g.directive("sliderangebackground",function(){return{restrict:"A",require:"?ngModel",link:function(a,b,c,d){function e(){var a=0,c=b.val();c>0&&(a=c/15) ;var d=" background :-webkit-linear-gradient(left, #006699 0%, #006699 "+parseInt(100*a)+"%, #C5C5C5 "+parseInt(100*a)+"%, #C5C5C5 100%);";b.attr("style",d)}d&&(b.on("input",function(){a.$apply(e)}),$(".liYear input").on("mousemove",function(a){$(this).siblings("i").tooltip("show"),$(this).siblings("div.tooltip").css({top:-20,left:a.offsetX-30,whiteSpace:"nowrap"})}),$(".liYear input").on("touchmove",function(a){$(this).siblings("i").tooltip("show");var b=event.changedTouches;$(this).siblings("div.tooltip").css({top:-20,left:b[0].pageX-130,whiteSpace:"nowrap"})}),$(".liYear input, .mvYrsSection input").on("mouseleave",function(a){$(this).siblings("i").tooltip("hide")}),$(".liYear input, .mvYrsSection input").on("touchend",function(a){$(this).siblings("i").tooltip("hide")}),$(".mvYrsSection input").on("mousemove",function(a){$(this).siblings("i").tooltip("show"),$(this).siblings("div.tooltip").css({top:5,left:a.offsetX-20,whiteSpace:"nowrap"})}),$(".mvYrsSection input").on("touchmove",function(a){$(this).siblings("i").tooltip("show");var b=event.changedTouches;$(this).siblings("div.tooltip").css({top:5,left:b[0].pageX-120,whiteSpace:"nowrap"})}))}}}),e.directive("flip",function(){function a(a,b,c){a.style.width=b,a.style.height=c}return document.head.insertAdjacentHTML("beforeend"," "),{restrict:"AE",controller:["$scope","$element","$attrs",function(a,b,c){function d(){f.front.removeClass("flipHideFront"),f.back.addClass("flipHideBack")}function e(){f.back.removeClass("flipHideBack"),f.front.addClass("flipHideFront")}var f=this;f.front=null,f.back=null,f.init=function(){f.front.addClass("flipBasic"),f.back.addClass("flipBasic"),d(),f.front.on("click",e),f.back.on("click",d)}}],link:function(b,c,d,e){var f=d.flipWidth||"92%",g=d.flipHeight||"480px";c.addClass("flip"),e.front&&e.back?([c,e.front,e.back].forEach(function(b){a(b[0],f,g)}),e.init()):console.error("FLIP: 2 panels required.")}}}),e.directive("flipPanel",function(){return{restrict:"AE",require:"^flip",link:function(a,b,c,d){d.front?d.back?console.error("FLIP: Too many panels."):d.back=b:d.front=b}}}),e.service("localStorageService",function(){return{set:function(a,b,c){return localStorage.setItem(a,JSON.stringify({data:b,timestamp:(new Date).getTime(),expireTimeInMilliseconds:1e3*c}))},get:function(a){if(localStorage.getItem(a)){var b=JSON.parse(localStorage.getItem(a));return!b||(new Date).getTime()>b.timestamp+b.expireTimeInMilliseconds?(localStorage.removeItem(a),null):b.data}return null}}})}(); //# sourceMappingURL=diceTechPro.min.js.map