(function(n,t){typeof define=="function"&&define.amd?define(["jquery"],function(i){return n.AnalyticsDataLayer=t(i)}):(n.AnalyticsDataLayer=t(n.jQuery),n.jQuery(function(){AnalyticsDataLayer.init()}))})(typeof self!="undefined"?self:this,function(n){var i=function(){typeof dataModel!="undefined"&&(r(),u(),h(),e(),o(),s(),c(),l())},r=function(){var r=768,t="lg/md",i=n(window).width();i<r?t="xs":i>=r&&i<999&&(t="sm");dataModel.page.pageInfo.responsiveLayout=t},u=function(){var n,t,i,r,u,f,e,o,s;dataModel.user={};typeof digitalDataUserPersonalize!="undefined"&&(n=digitalDataUserPersonalize.Careers.ProfileID?digitalDataUserPersonalize.Careers.ProfileID:digitalDataUserPersonalize.Social.ProfileID,n=n?n:"",t=digitalDataUserPersonalize.Careers.JobPreference.Industry,t=t?t:"",i=digitalDataUserPersonalize.Careers.JobPreference.Skill,i=i?i:"",r=digitalDataUserPersonalize.Careers.JobPreference.Specialization,r=r?r:"",u=digitalDataUserPersonalize.Careers.JobPreference.TravelFrequency,u=u?u:"",f=digitalDataUserPersonalize.AccentureEmployeeType,f=f?f:"",e=digitalDataUserPersonalize.Careers.JobPreference.City,e=e?e:"",o=digitalDataUserPersonalize.Careers.JobPreference.Country,o=o?o:"",s=digitalDataUserPersonalize.Careers.Referral,s=s?s:"none",dataModel.user={guid:n,profileIndustry:t,profileSkill:i,profileSpecialization:r,profileTravelFrequency:u,profileCity:e,profileCountry:o,socialIndustry:digitalDataUserPersonalize.Social.Industry,socialSkill:digitalDataUserPersonalize.Social.Skill,loginStatus:digitalDataUserPersonalize.UserType,candidateId:"",candidateType:"",accentureEmployeeType:f,subscription:{careersBlogSubscriber:digitalDataUserPersonalize.Subscription.CareersBlogSubscriber,jobAlertsSubscriber:digitalDataUserPersonalize.Subscription.JobAlertsSubscriber,talentConnectionSubscriber:digitalDataUserPersonalize.Subscription.TalentConnectionSubscriber},personalDetails:{profileCountry:digitalDataUserPersonalize.Careers.PersonalDetails.Country,profileStateOrProvince:digitalDataUserPersonalize.Careers.PersonalDetails.StateOrProvince,profileCity:digitalDataUserPersonalize.Careers.PersonalDetails.City},referral:s})},t={Abacus:[{wfId:"1",entity:"solutions",displayValue:"solutions"},{wfId:"2",entity:"accenture operations",displayValue:"accenture operations"},{wfId:"3",entity:"corporate functions",displayValue:"corporate functions"},{wfId:"4",entity:"consulting",displayValue:"consulting"}],Taleo:[{OrgUnitLevel1:"Accenture Strategy",displayValue:"accenture strategy"},{OrgUnitLevel1:"Corporate Functions",displayValue:"corporate functions"},{OrgUnitLevel1:"Resources",displayValue:"resources"},{OrgUnitLevel1:"Products",displayValue:"products"},{OrgUnitLevel1:"Accenture Operations",displayValue:"accenture operations"},{OrgUnitLevel1:"Health & Public Service",displayValue:"health & public service"},{OrgUnitLevel1:"Accenture Security",displayValue:"accenture security"},{OrgUnitLevel1:"Accenture Technology",displayValue:"accenture technology"},{OrgUnitLevel1:"Communications, Media & Technology",displayValue:"communications, media & technology"},{OrgUnitLevel1:"Financial Services",displayValue:"financial services"},{OrgUnitLevel1:"Other",displayValue:"other"},{OrgUnitLevel1:"Accenture Digital",displayValue:"accenture digital"},{OrgUnitLevel1:51573722,displayValue:"accenture technology"},{OrgUnitLevel1:51565250,displayValue:"geographic services"},{OrgUnitLevel1:51561286,displayValue:"accenture strategy"},{OrgUnitLevel1:51546412,displayValue:"corporate functions"},{OrgUnitLevel1:51559214,displayValue:"other"},{OrgUnitLevel1:52077059,displayValue:"accenture operations"},{OrgUnitLevel1:51546758,displayValue:"financial services"}]},f=function(){var f=n("#joblisting-content[data-job-orgunitlevel1desc"),e=n("#job-listing-hero[data-analytics-job-businessArea]"),i=f&&f.length?f.data("job-orgunitlevel1desc"):e&&e.length?e.attr("data-analytics-job-businessArea"):"",h=function(){var t=n("#job-listing-hero .apply-job-btn").length!=0?n("#job-listing-hero .apply-job-btn").attr("href"):n(".joblisting-container .apply-job-btn").attr("href");return t.indexOf("taleo")!=-1?!0:!1},r,o,u,s;if(i&&i.length>0)if(h()){for(r=0;r<t.Taleo.length;r++)if(o=t.Taleo[r],o.OrgUnitLevel1===i)return o.displayValue}else for(u=0;u<t.Abacus.length;u++)if(s=t.Abacus[u],s.entity===i)return s.displayValue;return i?i.trim().toLowerCase():""},e=function(){var l,a,v,i,y,p,r,u,e,o,s,h,c;if(typeof ComponentRegistry.JobListing!="undefined"||typeof ComponentRegistry.JobDetailsModule!="undefined"){var w=n("#jobId"),g=w&&w.length?w.data("job-number"):"",b=n(".job-title"),nt=b&&b.length?b.find("h1").text().trim():"",k=n("span.job-region-description"),tt=k&&k.length?k.text().trim():"",d=n("p.job-location"),i=d&&d.length?d.text().replace(/^\s+|\n|\s+$/gm,""):"",it=i.indexOf("Job Location:")>=0?i.replace("Job Location:","").trim():i,rt=f(),t=n("#job-listing-hero");t&&t.length&&(l=t.attr("data-analytics-job-jobid"),g=l&&l.length?l:"",a=t.attr("data-analytics-job-title"),nt=a&&a.length?a.trim().toLowerCase():"",v=t.attr("data-analytics-job-region"),tt=v&&v.length?v.trim().toLowerCase():"",i=t.attr("data-analytics-job-location"),it=i&&i.length?i.trim().toLowerCase():"",y=t.attr("data-analytics-job-skill"),jobSkill=y&&y.length?y.trim().toLowerCase():"",p=t.attr("data-analytics-job-jobtype"),jobJobType=p&&p.length?p.trim().toLowerCase():"",r=t.attr("data-analytics-job-specialization"),r=r?r.trim().toLowerCase():"",u=t.attr("data-analytics-job-orgunitLevel1"),u=u?u.trim().toLowerCase():"",e=t.attr("data-analytics-job-orgUnitLevel2"),e=e?e.trim().toLowerCase():"",o=t.attr("data-analytics-job-orgUnitLevel3"),o=o?o.trim().toLowerCase():"",s=t.attr("data-analytics-job-orgUnitLevel4"),s=s?s.trim().toLowerCase():"",h=t.attr("data-analytics-job-orgUnitLevel5"),h=h?h.trim().toLowerCase():"",c=t.attr("data-analytics-job-orgUnitLevel6"),c=c?c.trim().toLowerCase():"");dataModel.job={jobID:g,jobTitle:nt,jobRegion:tt,jobLocation:it,jobSkill:jobSkill,jobJobType:jobJobType,businessArea:rt,specialization:r,orgUnit1:u,orgUnit2:e,orgUnit3:o,orgUnit4:s,orgUnit5:h,orgUnit6:c}}},o=function(){function f(t){var r=n(t),i,u;if(typeof r!="undefined"){for(i=0;i<r.length;i++)u=n(r[i]).text().replace(/}|{/g,"").trim(),v.push(u.toLowerCase());s=v.join("|");dataModel.page.pageInfo.blogs.author=s!=null?s:""}}var i="",l="",a=[],v=[],t,r,h,c;dataModel.page.pageInfo.blogs={name:"",tag:"",topic:"",author:""};i=typeof pageContext!="undefined"&&pageContext?pageContext.toLowerCase():window.location.pathname.toLowerCase();i.indexOf("/blogs/")>-1&&(t=i.substr(i.lastIndexOf("/blogs/")+7,i.length),t=t.substr(0,t.length),i.indexOf("/blogs-main/")>-1&&(t=i.substr(i.lastIndexOf("/blogs-main/")+12,i.length),t=t.substr(0,t.length)),t.indexOf("/")>-1&&(t=t.substr(0,t.indexOf("/"))),l=t);var y="",e=n(".module-blog-tags li"),d=n(".blog-related-topics li"),o=e&&e.length?e:d;if(o.length){for(r=0;r<o.length;r++)a.push(o[r].getAttribute("title").toLowerCase());y=a.join("|")}var s="",u=n(".blog-content-module"),p=n(".module-blog-authors"),w=n("#blogpost-module"),b=n(".author-profile"),k=n(".author-module");p&&p.length&&f(".module-blog-authors .module-body #author-name");b&&b.length&&f(".author-information .module-title");w&&w.length&&f(".blogpost-author-name");k&&k.length&&f(".author-module .ai-author-info .ai-author-name");u&&u.length?(h=u.attr("data-analytics-blog-name"),c=u.attr("data-analytics-blog-topic"),dataModel.page.pageInfo.blogs.name=h!=null?h:"",dataModel.page.pageInfo.blogs.topic=c!=null?c:""):(dataModel.page.pageInfo.blogs.name=l,dataModel.page.pageInfo.blogs.tag=y)},s=function(){var t,i;if(dataModel!=undefined&&dataModel.user!=undefined&&(t=!1,i=navigator.userAgent.toLowerCase(),i.search("managedpc")>-1&&(t=!0),acncm!=undefined)){var f=acncm.CacheManager.read("_ss_acn"),r="",u=n("#navUserDisplayUserName");f==="fed"&&u&&u.length>0&&(r=t?"acnemployee|mpc":"acnemployee|site");dataModel.user.AccentureEmployeeId=r.toLowerCase()}},h=function(){var t=acncm.CacheManager.Authentication.VisitorGroups.value.Client,i=acncm.CacheManager.Authentication.VisitorGroups.value.RegisteredUsers,n=acncm.CacheManager.Authentication.VisitorGroups.key,r=acncm.CacheManager.read(n)===t,u=acncm.CacheManager.read(n)===i,f=dataModel&&dataModel.user&&dataModel.user.loginStatus==="auth_sc"?!0:!1;r?(dataModel.user.visitorGroup="client",dataModel.user.loginStatus="auth",dataModel.user.guid=acncm.CacheManager.read(acncm.CacheManager.Authentication.RegisteredUser.ID.key)):dataModel.user.visitorGroup=u||f?"career seeker":"none"},c=function(){var t=acncm.CacheManager.Authentication.ClientType.key,n=acncm.CacheManager.read(t);dataModel.user.clientType=n?n:"none"},l=function(){var n=jQuery(".signin-links li:last-of-type a");n.off("click").on("click",function(){jQuery(window).on("unload",function(){acncm.CacheManager.remove(acncm.CacheManager.Authentication.VisitorGroups.key);acncm.CacheManager.remove(acncm.CacheManager.Authentication.ClientType.key)})})};return{init:i}}),function(n,t){if(typeof define=="function"&&define.amd)define(["jquery"],function(i){return n.AnalyticsTrackingFormAnalysis=t(i)});else{n.AnalyticsTrackingFormAnalysis=t(n.jQuery);n.jQuery(window).on("load",function(){AnalyticsTrackingFormAnalysis.init()})}}(typeof self!="undefined"?self:this,function(n){var r=function(){u();typeof dataModel!="undefined"&&f()},u=function(){jQuery("body").on("analytics-form-success",function(n,r){r?i():t.write(t.Forms.key,t.Forms.value.Success)})},i=function(){dataModel.form={isSuccess:!0}},f=function(){var n=t.read(t.Forms.key);n&&(i(),t.remove(t.Forms.key))},t={Forms:{key:"formanalysis_status",value:{Success:"success"}},isLocalStorageSupported:function(){var n=!1;return typeof Modernizr!="undefined"&&typeof Modernizr.localstorage!="undefined"&&(n=Modernizr.localstorage),n},isCookieSupported:function(){return typeof n.cookie!="undefined"},write:function(t,i,r){var u=!1;return typeof t!="undefined"&&typeof i!="undefined"&&t.length>0&&(this.isLocalStorageSupported()?(localStorage.setItem(t,i),u=!0):this.isCookieSupported()&&(typeof r!="undefined"?n.cookie(t,i,{secure:r}):n.cookie(t,i,{secure:!0}),u=!0)),u},read:function(t){var i=t;return typeof t!="undefined"&&t.length>0&&(this.isLocalStorageSupported()&&(i=localStorage.getItem(t)),this.isCookieSupported()&&(i==t||i==null)&&(i=n.cookie(t))),i},remove:function(n,t,i){var u=this.getKeyStorageLocation(n),r;u=="localstorage"?localStorage.removeItem(n):u=="cookie"&&(r=n+"=; expires=Thu, 01-Jan-70 00:00:01 GMT;",i&&(r+="domain="+i+";"),t&&(r+="path="+t+";"),document.cookie=r)},getKeyStorageLocation:function(t){var i=t;return this.isLocalStorageSupported()&&(i=localStorage.getItem(t),i!==null)?"localstorage":this.isCookieSupported()&&(i=n.cookie(t),i)?"cookie":"Cached key location not found."}};return{init:r}}),function(n,t){n.AnalyticsMetadataBlog=t(n.jQuery)}(typeof self!="undefined"?self:this,function(n){var i={serviceMeta:"ServiceCapability",appliedNowThemeMeta:"Themes",contentFormatMeta:"ContentFormat",contentTypeMeta:"ContentType",externalMarketingCampaignsMeta:"Campaign",industryMeta:"Industry"},t={ServiceCapability:{Capability2:"capability2",Capability3:"capability3"},Themes:{Theme1:"theme1",Theme2:"theme2"},ContentGroup:{Content1:"content1",Content2:"content2",Content3:"content3",Content4:"content4"},ContentType:{ContentType:"contentType"},Campaign:{CorporateCampaign:"corporateCampaign"},Campaigns:{Content5:"content5"},Industry:{Industry2:"industry2",Industry3:"industry3"},CareersSkill:{Skill1:"skill1",Skill2:"skill2"}},f=function(n){var e=new RegExp(".*?(\\{.*?\\})",["i"]),o=e.exec(n),i=[],r="",f=[],t;for(o[1].replace(/(".*?")/g,function(n,t){i.push(t)}),t=0;t<i.length;t++)i[t]=i[t].replace('"',""),r=i[t],f.push(r.split("|"));return u(f)},r=function(n){var o=new RegExp(".*?(\\{.*?\\})",["i"]),s=o.exec(n),i=[],f="",r=[],t;for(s[1].replace(/(".*?")/g,function(n,t){i.push(t)}),t=0;t<i.length;t++)i[t]=i[t].replace('"',""),f=i[t],r.push(f.split("|"));return r=e(r),u(r)},e=function(n){for(var t=0;t<n.length;t++)o(n[t][2],n)&&(n[t][2]="");return n},o=function(n,t){for(var r=0,i=0;i<t.length;i++)if(n!=null&&t[i][2].replace(/ /g,"").indexOf(n)!==-1&&(r++,r>1))return!0},u=function(n){for(var i=[],t=0;t<n.length;t++)n[t][2]!==""&&i.push({category:{primaryCategory:n[t][0]},metadataInfo:{metadataID:n[t][1],metadataName:n[t][3]}});return i},s=function(){if(digitalData!=null&&digitalData.page.attributes.metadata!=null)for(var n=0;n<digitalData.page.attributes.metadata.length;n++)digitalData.page.attributes.metadata[n].category.primaryCategory=="m270"&&redesignBlogsMetadata.push(digitalData.page.attributes.metadata[n])},h=function(n,t){var e=[],f,u;if(n!=undefined&&t!=undefined&&n!="pageCategoryMeta"&&digidata[0][i[n]]!=="")for(f=r(digidata[0][i[n]]),u=0;u<f.length;u++)e.push(f[u].metadataInfo.metadataID);return e.join("|")},c=function(i){n.each(dataModel.page.category,function(n){dataModel.page.category[n]=""});n.each(i[0],function(n){var e;if(i[0][n]!==""){var r,o="",u="",s="",h="";n!="ObjectState"&&(r=f(i[0][n]),o=typeof r[0]!="undefined"?r[0].metadataInfo.metadataName.toLowerCase():"",u=typeof r[1]!="undefined"?r[1].metadataInfo.metadataName.toLowerCase():"",s=typeof r[2]!="undefined"?r[2].metadataInfo.metadataName.toLowerCase():"",h=typeof r[3]!="undefined"?r[3].metadataInfo.metadataName.toLowerCase():"");n==="ServiceCapability"&&dataModel.page.category[t.ServiceCapability.Capability2]!=undefined&&dataModel.page.category[t.ServiceCapability.Capability3]!=undefined?(dataModel.page.category[t.ServiceCapability.Capability2]=u,dataModel.page.category[t.ServiceCapability.Capability3]=s):n==="Industry"&&dataModel.page.category[t.Industry.Industry2]!=undefined&&dataModel.page.category[t.Industry.Industry3]!=undefined?(dataModel.page.category[t.Industry.Industry2]=u,dataModel.page.category[t.Industry.Industry3]=s):n==="ContentType"&&dataModel.page.category[t.ContentType.ContentType]!=undefined?dataModel.page.category[t.ContentType.ContentType]=o:n==="ContentGroup"&&dataModel.page.category[t.ContentGroup.Content1]!=undefined&&dataModel.page.category[t.ContentGroup.Content2]!=undefined&&dataModel.page.category[t.ContentGroup.Content3]!=undefined&&dataModel.page.category[t.ContentGroup.Content4]!=undefined?(dataModel.page.category[t.ContentGroup.Content1]=o,dataModel.page.category[t.ContentGroup.Content2]=u,dataModel.page.category[t.ContentGroup.Content3]=s,dataModel.page.category[t.ContentGroup.Content4]=h):n==="Campaigns"&&dataModel.page.category[t.Campaigns.Content5]!=undefined?(e=r.length-1,dataModel.page.category[t.Campaigns.Content5]=typeof r[e]!="undefined"?r[e].metadataInfo.metadataName.toLowerCase():""):n==="Themes"&&dataModel.page.category[t.Themes.Theme1]!=undefined&&dataModel.page.category[t.Themes.Theme2]!=undefined?(dataModel.page.category[t.Themes.Theme1]=o,dataModel.page.category[t.Themes.Theme2]=u):n==="CareersSkill"&&dataModel.page.category[t.CareersSkill.Skill1]!=undefined&&dataModel.page.category[t.CareersSkill.Skill2]!=undefined?(dataModel.page.category[t.CareersSkill.Skill1]=o,dataModel.page.category[t.CareersSkill.Skill2]=u):n==="Campaign"&&dataModel.page.category[t.Campaign.CorporateCampaign]!=undefined&&(e=r.length-1,dataModel.page.category[t.Campaign.CorporateCampaign]=typeof r[e]!="undefined"?r[e].metadataInfo.metadataName.toLowerCase():"")}})};return{clean_meta:r,getPageCategory:s,getWordPressMetadataId:h,getWordPressCategory:c}});
//# sourceMappingURL=analyticstracking.map
