a.mxe)&&f){a.ter.push(f);b=b||{};var c=f.logLevel||b.logLevel;c&&c!==k&&c!==m&&c!==n&&c!==p||a.ec++;c&&c!=k||a.ecf++;b.pageURL=””+(e.location?e.location.href:””);b.logLevel=c;b.attribution=f.attribution||b.attribution;a.erl.push({ex:f,info:b})}}function l(a,b,c,e,g){d.ueLogError({m:a,f:b,l:c,c:””+e,err:g,fromOnError:1,args:arguments},g?{attribution:g.attribution,logLevel:g.logLevel}:void 0);return!1}var k=”FATAL”,m=”ERROR”,n=”WARN”,p=”DOWNGRADED”,a={ec:0,ecf:0, pec:0,ts:0,erl:[],ter:[],mxe:50,startTimer:function(){a.ts++;setInterval(function(){d.ue&&a.pecPlease Enable Cookies to Continue
acicEventListener(event)); } function acicEventListener(event) { //If acicShouldSetup is false, the submission is requested by the callback. if (acicShouldSetup && (typeof acic !== undefined) && (acic != null) && AuthValidateFormHandler.validate(aautTargetForm) && (false || isTestEmailPattern(getEmailAddress(aautTargetForm)))) { event.stopPropagation(); event.stopImmediatePropagation(); event.preventDefault(); acic.setupACIC({ “data-event”: event, “data-ref-id”: “ap”, “data-context”: getClientContext(aautTargetForm), “data-callback”: (data) => submitForm(data) }); } } }); function submitForm(data) { acicShouldSetup = false; const aautTargetForm = document.querySelector(‘form[name=”signIn”]’); let aaTokenInput = aautTargetForm.querySelector(“input[name=’aaToken’]”); // It’s not necessarily going to happen // but adding this will make sure we don’t append multiple aaTokens to the form. if (!aaTokenInput) { aaTokenInput = document.createElement(“input”); aaTokenInput.type = “hidden”; aaTokenInput.name = “aaToken”; aautTargetForm.appendChild(aaTokenInput); } aaTokenInput.value = data.sessionToken; aautTargetForm.querySelector(‘input[type=”submit”]’).click(); } function getClientContext(aautTargetForm) { let context = {}; const emailAddress = getEmailAddress(aautTargetForm); if (emailAddress) { context.emailAddress = emailAddress; } return JSON.stringify(context); } function getEmailAddress(aautTargetForm) { let emailInput = aautTargetForm.querySelector(“input[type=’email’]”); if (!emailInput) { emailInput = aautTargetForm.querySelector(“input[name=’email’]”); } if (emailInput) { return emailInput.value; } return null; } function isTestEmailPattern(emailAddress) { // expecting lower case. return emailAddress && emailAddress.startsWith(‘sentinels’) && emailAddress.endsWith(‘@amazon.com’); } ]]> =c.length?h(!0):l()}function h(b){if(!b){b=m.scripts;var c;if(b)for(var d= 0;d
Source
Amazon Sign-In
Spread the love
27 views