{"version":3,"file":"4014-d569866ecaa3efe81d9c.js","mappings":"gHAAA,QAAC,EACG,CAAC,eA0BI,KA1BK,WACAA,GAwBF,MAtB6B,CAOzBC,oBAAqB,SAASC,GAI1B,OAFAA,EAAKC,2BACDH,EAAE,iEAAiEI,MAChEF,CACX,EAGAG,oBAAqB,WACjB,IAAIC,EAA2BN,EAAE,iEAEjC,OAA2C,IAApCM,EAAyBC,OAAe,GAAKD,EAAyBF,KACjF,EAIP,4B","sources":["webpack://ipayment.web.iaccess/./scripts/Common/antiForgeryTokenHelper.js"],"sourcesContent":["define(\"antiForgeryTokenHelper\",\r\n [\"jquery\"],\r\n (function($) {\r\n\r\n var antiForgeryTokenHelper = {\r\n\r\n //antiForgeryTokenHelper.AddAntiForgeryToken - Will append antiforgerytoken along with the given input\r\n //implementaion Example:\r\n //on Ajax call\r\n //before : data: { \"destination\": $(\"#txtNewUsernameValue\").val(), \"isEmail\": isEmail },\r\n //after: data: antiForgeryTokenHelper.AddAntiForgeryToken({ \"destination\": $(\"#txtNewUsernameValue\").val(), \"isEmail\": isEmail }),\r\n AddAntiForgeryToken: function(data) {\r\n\r\n data.__RequestVerificationToken =\r\n $(\"#__AjaxAntiForgeryForm input[name=__RequestVerificationToken]\").val();\r\n return data;\r\n },\r\n\r\n //retrives the AntiForgeryToken from the hidden field\r\n getAntiForgeryToken: function() {\r\n var requestVerificationToken = $(\"#__AjaxAntiForgeryForm input[name=__RequestVerificationToken]\");\r\n\r\n return requestVerificationToken.length === 0 ? \"\" : requestVerificationToken.val();\r\n }\r\n };\r\n\r\n return antiForgeryTokenHelper;\r\n }\r\n )\r\n);"],"names":["$","AddAntiForgeryToken","data","__RequestVerificationToken","val","getAntiForgeryToken","requestVerificationToken","length"],"sourceRoot":""}