{"version":3,"sources":["https:\/\/magistere.education.fr\/ac-paris\/theme\/magistere\/amd\/src\/layout_header.js"],"names":["define","open_reset_mainaca","$","dialog","modal","resizable","draggable","width","dialogClass","closeOnEscape","reset_submit","ajaxUrl","html","hide","show","get","data","click","init","on"],"mappings":"AAAAA,OAAM,iCAAC,CAAC,QAAD,CAAU,UAAV,CAAD,CAAwB,UAAY,CAEzC,QAASC,CAAAA,CAAT,EACG,CACIC,CAAC,CAAC,gBAAD,CAAD,CAAoBC,MAApB,CAA2B,CACvBC,KAAK,GADkB,CAEvBC,SAAS,GAFc,CAGvBC,SAAS,GAHc,CAIvBC,KAAK,CAAE,OAJgB,CAKvBC,WAAW,CAAE,6BALU,CAMvBC,aAAa,GANU,CAA3B,CAQH,CAED,QAASC,CAAAA,CAAT,CAAsBC,CAAtB,CACA,CACIT,CAAC,CAAC,qBAAD,CAAD,CAAyBU,IAAzB,CAA8B,eAA9B,EACAV,CAAC,CAAC,wBAAD,CAAD,CAA4BW,IAA5B,GACAX,CAAC,CAAC,qBAAD,CAAD,CAAyBY,IAAzB,GACAZ,CAAC,CAACa,GAAF,CAAMJ,CAAN,CAAe,SAASK,CAAT,CAAsB,CACjC,GAAY,SAAR,EAAAA,CAAJ,CACA,CACId,CAAC,CAAC,qBAAD,CAAD,CAAyBU,IAAzB,CAA8B,0HAA9B,EACAV,CAAC,CAAC,WAAD,CAAD,CAAee,KAAf,CAAqB,UAAY,CAC7Bf,CAAC,CAAC,gBAAD,CAAD,CAAoBC,MAApB,CAA2B,OAA3B,CACH,CAFD,CAGH,CAND,IAQA,CACID,CAAC,CAAC,qBAAD,CAAD,CAAyBU,IAAzB,CAA8B,+HAA9B,EACAV,CAAC,CAAC,WAAD,CAAD,CAAee,KAAf,CAAqB,UAAY,CAC7Bf,CAAC,CAAC,gBAAD,CAAD,CAAoBC,MAApB,CAA2B,OAA3B,CACH,CAFD,CAGH,CACJ,CAfD,CAgBH,CAEJ,MAAO,CACNe,IAAI,CAAG,cAASP,CAAT,CAAkB,CAClBT,CAAC,CAAC,cAAD,CAAD,CAAkBe,KAAlB,CAAwB,UAAY,CAChCP,CAAY,CAACC,CAAD,CACf,CAFD,EAGAT,CAAC,CAAC,YAAD,CAAD,CAAgBe,KAAhB,CAAsB,UAAY,CAC9Bf,CAAC,CAAC,gBAAD,CAAD,CAAoBC,MAApB,CAA2B,OAA3B,CACH,CAFD,EAGAD,CAAC,CAAC,kCAAD,CAAD,CAAsCe,KAAtC,CAA4C,UAAa,CACrDhB,CAAkB,GAClB,QACH,CAHD,EAIAC,CAAC,CAAC,gBAAD,CAAD,CAAoBiB,EAApB,CAAuB,aAAvB,CAAsC,UAAgB,CAClDjB,CAAC,CAAC,qBAAD,CAAD,CAAyBW,IAAzB,GACAX,CAAC,CAAC,wBAAD,CAAD,CAA4BY,IAA5B,EACH,CAHD,CAIN,CAhBK,CAmBP,CAxDK,CAAN","sourcesContent":["define([\"jquery\",\"jqueryui\"], function () {\n\n\tfunction open_reset_mainaca()\n {\n $(\"#reset_mainaca\").dialog({\n modal: true,\n resizable: false,\n draggable: false,\n width: '700px',\n dialogClass: 'popup_frontal reset_mainaca',\n closeOnEscape: true\n });\n }\n\n function reset_submit(ajaxUrl)\n {\n $(\"#reset_mainaca_conf\").html(\"Chargement...\");\n $(\"#reset_mainaca_content\").hide();\n $(\"#reset_mainaca_conf\").show();\n $.get(ajaxUrl, function(data, status){\n if (data == 'success')\n {\n $(\"#reset_mainaca_conf\").html('Réinitialisation teminée');\n $(\"#bt_close\").click(function () {\n $(\"#reset_mainaca\").dialog('close');\n });\n }\n else\n {\n $(\"#reset_mainaca_conf\").html('La réinitialisation a echouée');\n $(\"#bt_close\").click(function () {\n $(\"#reset_mainaca\").dialog('close');\n });\n }\n });\n }\n\n\treturn {\n\t\tinit : function(ajaxUrl) {\n\t $(\"#bt_validate\").click(function () {\n\t reset_submit(ajaxUrl);\n\t });\n\t $(\"#bt_cancel\").click(function () {\n\t $(\"#reset_mainaca\").dialog('close');\n\t });\n\t $(\"a[data-title='changeaca,moodle']\").click(function (e) {\n\t open_reset_mainaca();\n\t return false;\n\t });\n\t $('#reset_mainaca').on('dialogclose', function(event) {\n\t $(\"#reset_mainaca_conf\").hide();\n\t $(\"#reset_mainaca_content\").show();\n\t });\n\t\t}\n\t};\n\n});"],"file":"layout_header.min.js"}