{"version":3,"sources":["https:\/\/education.kaspersky.com\/theme\/kaspersky\/amd\/src\/core.js"],"names":["define","$","init","click","e","preventDefault","window","history","back","get","action","done","remove","that","value","hasClass","parent","params","data","post","status","addClass","removeClass"],"mappings":"AAAAA,OAAM,wBAAC,CAAC,QAAD,CAAD,CAAa,SAAUC,CAAV,CAAa,CAC5B,MAAO,CACHC,IAAI,CAAE,eAAW,CACbD,CAAC,CAAC,SAAD,CAAD,CAAaE,KAAb,CAAmB,SAASC,CAAT,CAAY,CAC3BA,CAAC,CAACC,cAAF,GACAC,MAAM,CAACC,OAAP,CAAeC,IAAf,EACH,CAHD,EAIAP,CAAC,CAAC,oBAAD,CAAD,CAAwBE,KAAxB,CAA8B,UAAW,CACrCF,CAAC,CAACQ,GAAF,CAAM,2BAAN,CAAmC,CAACC,MAAM,CAAE,kBAAT,CAAnC,EACKC,IADL,CACU,UAAW,CACbV,CAAC,CAAC,eAAD,CAAD,CAAmBW,MAAnB,EACH,CAHL,CAIH,CALD,EAMAX,CAAC,CAAC,iBAAD,CAAD,CAAqBE,KAArB,CAA2B,SAASC,CAAT,CAAY,CACnCA,CAAC,CAACC,cAAF,GACA,GAAIQ,CAAAA,CAAI,CAAGZ,CAAC,CAAC,IAAD,CAAZ,CACIa,CAAK,CAAG,CADZ,CAEA,GAAI,CAACD,CAAI,CAACE,QAAL,CAAc,QAAd,CAAL,CACA,CACI,GAAIF,CAAI,CAACE,QAAL,CAAc,UAAd,CAAJ,CAA+B,CAC3BD,CAAK,CAAG,CAAC,CACZ,CACD,GAAID,CAAI,CAACE,QAAL,CAAc,WAAd,CAAJ,CAAgC,CAC5BD,CAAK,CAAG,CACX,CACJ,CACD,GAAa,CAAT,EAAAA,CAAJ,CACA,CACI,GAAIE,CAAAA,CAAM,CAAGH,CAAI,CAACG,MAAL,EAAb,CACIC,CAAM,CAAG,CACL,OADK,CAEL,QAAWD,CAAM,CAACE,IAAP,CAAY,SAAZ,CAFN,CAGL,QAAW,MAHN,CAIL,OAAUF,CAAM,CAACE,IAAP,CAAY,QAAZ,CAJL,CAKL,MAASJ,CALJ,CADb,CAQAb,CAAC,CAACkB,IAAF,CAAO,6BAAP,CAAsCF,CAAtC,CAA8C,SAASC,CAAT,CAAeE,CAAf,CAC9C,CACI,GAAc,SAAV,EAAAA,CAAM,EAAyB,CAAR,EAAAF,CAA3B,CACA,CACIL,CAAI,CAACQ,QAAL,CAAc,QAAd,EACA,GAAa,CAAT,EAAAP,CAAJ,CAAgB,CACZb,CAAC,CAAC,WAAD,CAAce,CAAd,CAAD,CAAuBM,WAAvB,CAAmC,QAAnC,CACH,CACD,GAAa,CAAC,CAAV,EAAAR,CAAJ,CAAiB,CACbb,CAAC,CAAC,YAAD,CAAee,CAAf,CAAD,CAAwBM,WAAxB,CAAoC,QAApC,CACH,CACJ,CACJ,CAZD,CAaH,CACJ,CArCD,CAsCH,CAlDE,CAoDV,CArDK,CAAN","sourcesContent":["define(['jquery'], function ($) {\n return {\n init: function() {\n $('#k_back').click(function(e) {\n e.preventDefault();\n window.history.back();\n });\n $('#guestwarning .btn').click(function() {\n $.get('\/theme\/kaspersky\/ajax.php', {action: 'hideguestwarning'})\n .done(function() {\n $('#guestwarning').remove();\n });\n });\n $('.like-buttons a').click(function(e) {\n e.preventDefault();\n var that = $(this),\n value = 0;\n if (!that.hasClass('active'))\n {\n if (that.hasClass('like-bad')) {\n value = -1;\n }\n if (that.hasClass('like-good')) {\n value = 1;\n }\n }\n if (value != 0)\n {\n var parent = that.parent(),\n params = {\n 'ajax': true,\n 'sesskey': parent.data('sesskey'),\n '_action': 'like',\n 'pageid': parent.data('pageid'),\n 'value': value\n };\n $.post('\/local\/core\/unique\/ajax.php', params, function(data, status)\n {\n if (status == 'success' && data == 1)\n {\n that.addClass('active');\n if (value == 1) {\n $('.like-bad', parent).removeClass('active');\n }\n if (value == -1) {\n $('.like-good', parent).removeClass('active');\n }\n }\n });\n }\n });\n }\n };\n});"],"file":"core.min.js"}