| Current Path : /home/ereika83/www/wp-content/plugins/wpmudev-updates/assets/js/ |
| Current File : /home/ereika83/www/wp-content/plugins/wpmudev-updates/assets/js/dashboard-notice.min.js.map |
{"version":3,"file":"dashboard-notice.min.js","mappings":"AAAAA,QAAO,WACN,IAAIC,EAA+BC,EAAaC,EAAeC,EAAhDC,EAASJ,EA8BxB,SAASK,IACRL,EAAUM,OAAO,IAAM,GAAG,WACzBN,EAAUO,QAAQ,KAAK,WACtBP,EAAUQ,QACX,GACD,GACD,CAGA,SAASC,EAAoBC,GAC5B,IAAIC,EAAY,CAAC,EAEb,MAAQP,GACXJ,EAAUY,SAAS,WAEnBD,EAAUP,OAASA,EACnBO,EAAUD,OAASA,EACnBC,EAAUR,MAAQA,EAClBJ,OAAOc,KACNC,OAAOC,QACPJ,EACAN,IAGDA,GAEF,CAQAS,OAAOE,YA7DP,WAEChB,EAAYD,OAAO,eACnBK,EAASJ,EAAUiB,KAAK,sBAAsBC,MAC9Cf,EAAQH,EAAUiB,KAAK,qBAAqBC,MAC5CjB,EAAcD,EAAUiB,KAAK,uBAC7Bf,EAAiBF,EAAUiB,KAAK,mBAIhChB,EAAYkB,OAAM,SAASC,GAE1BA,EAAGC,iBACHZ,EAAoB,sBACrB,IAGAP,EAAeiB,OAAM,SAASC,GAC7BA,EAAGC,iBACHZ,EAAoB,sBACrB,IAGAT,EAAUsB,OAAO,IAClB,GAqC8B,KAC/B","sources":["webpack://wpmudev-updates/./assets/src/js/dashboard-notice.js"],"sourcesContent":["jQuery(function() {\n\tvar el_notice, msg_id = el_notice, btn_dismiss, btn_dismiss_wp,force;\n\n\t// Display the notice after the page was loaded.\n\tfunction initialize() {\n\n\t\tel_notice = jQuery(\".wdp-notice\");\n\t\tmsg_id = el_notice.find(\"input[name=msg_id]\").val();\n\t\tforce = el_notice.find(\"input[name=force]\").val();\n\t\tbtn_dismiss = el_notice.find(\".wdp-notice-dismiss\");\n\t\tbtn_dismiss_wp = el_notice.find(\".notice-dismiss\");\n\n\n\t\t// Dismiss the notice without any action.\n\t\tbtn_dismiss.click(function(ev) {\n\n\t\t\tev.preventDefault();\n\t\t\tdismiss_dash_notice(\"wdev_notice_dismiss\");\n\t\t});\n\n\t\t// Dismiss the notice without any action.\n\t\tbtn_dismiss_wp.click(function(ev) {\n\t\t\tev.preventDefault();\n\t\t\tdismiss_dash_notice(\"wdev_notice_dismiss\");\n\t\t});\n\n\t\t// Display the notification.\n\t\tel_notice.fadeIn(500);\n\t}\n\n\t// Hide the notice after a CTA button was clicked\n\tfunction remove_dash_notice() {\n\t\tel_notice.fadeTo(100 , 0, function() {\n\t\t\tel_notice.slideUp(100, function() {\n\t\t\t\tel_notice.remove();\n\t\t\t});\n\t\t});\n\t}\n\n\t// Notify WordPress about the users choice and close the message.\n\tfunction dismiss_dash_notice(action) {\n\t\tvar ajax_data = {};\n\n\t\tif ('0' !== msg_id) {\n\t\t\tel_notice.addClass(\"loading\");\n\n\t\t\tajax_data.msg_id = msg_id;\n\t\t\tajax_data.action = action;\n\t\t\tajax_data.force = force;\n\t\t\tjQuery.post(\n\t\t\t\twindow.ajaxurl,\n\t\t\t\tajax_data,\n\t\t\t\tremove_dash_notice\n\t\t\t);\n\t\t} else {\n\t\t\tremove_dash_notice();\n\t\t}\n\t}\n\n\t// Premium version uses a HIGHER delay than the notice in free plugins.\n\t// So if any free plugin display a notice it will be displayed instead of\n\t// the premium notice.\n\t//\n\t// 1050 ... free notice uses 500 delay + 500 fade in + 20 to let browser render the changes.\n\t// So after 1020ms the free notice is considered \"visible\".\n\twindow.setTimeout(initialize, 1050);\n});\n"],"names":["jQuery","el_notice","btn_dismiss","btn_dismiss_wp","force","msg_id","remove_dash_notice","fadeTo","slideUp","remove","dismiss_dash_notice","action","ajax_data","addClass","post","window","ajaxurl","setTimeout","find","val","click","ev","preventDefault","fadeIn"],"sourceRoot":""}