{"version":3,"sources":["common/js/framework/cookieHelper.js"],"names":["cookieHelper","getCookie","cname","name","ca","document","cookie","split","i","length","c","charAt","substring","indexOf","setCookie","cvalue","exdays","d","Date","setTime","getTime","expires","toUTCString"],"mappings":"AAAA,IAAIA,cACFC,UAAW,SAASA,UAAUC,OAG5B,IAFA,IAAIC,KAAOD,MAAQ,IACfE,GAAKC,SAASC,OAAOC,MAAM,KACtBC,EAAI,EAAGA,EAAIJ,GAAGK,OAAQD,IAAK,CAElC,IADA,IAAIE,EAAIN,GAAGI,GACW,KAAfE,EAAEC,OAAO,IACdD,EAAIA,EAAEE,UAAU,GAElB,GAAuB,GAAnBF,EAAEG,QAAQV,MACZ,OAAOO,EAAEE,UAAUT,KAAKM,OAAQC,EAAED,QAGtC,MAAO,IAETK,UAAW,SAASA,UAAUZ,MAAOa,OAAQC,QAC3C,IAAIC,EAAI,IAAIC,KACZD,EAAEE,QAAQF,EAAEG,UAAqB,GAATJ,OAAc,GAAK,GAAK,KAChD,IAAIK,QAAU,WAAaJ,EAAEK,cAC7BjB,SAASC,OAASJ,MAAQ,IAAMa,OAAS,YAAcM","file":"../../../../common/js/framework/cookieHelper-4f1ed3dbef.js","sourcesContent":["var cookieHelper = {\n getCookie: function getCookie(cname) {\n var name = cname + \"=\";\n var ca = document.cookie.split(';');\n for (var i = 0; i < ca.length; i++) {\n var c = ca[i];\n while (c.charAt(0) == ' ') {\n c = c.substring(1);\n }\n if (c.indexOf(name) == 0) {\n return c.substring(name.length, c.length);\n }\n }\n return \"\";\n },\n setCookie: function setCookie(cname, cvalue, exdays) {\n var d = new Date();\n d.setTime(d.getTime() + exdays * 24 * 60 * 60 * 1000);\n var expires = \"expires=\" + d.toUTCString();\n document.cookie = cname + \"=\" + cvalue + \"; path=/;\" + expires;\n }\n};"]}