/******/!function(t){function e(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}// webpackBootstrap /******/ var n={};e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=404)}({194:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){var e=n(38);(0,t.$)(function(){(new e.a).init()})}.call(e,n(2))},2:function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},38:function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function t(t,e){for(var n=0;n").attr({type:"hidden",value:"1",name:"actionParams[confirmPrestaTrust]"}).appendTo(i),o.click(),n.modal("hide")}),n.modal()}},{key:"_replacePrestaTrustPlaceholders",value:function(t){var e=l("#modal-prestatrust"),n=t.module.attributes;if("PrestaTrust"===t.confirmation_subject&&e.length){var o=n.prestatrust.status?"success":"warning";return n.prestatrust.check_list.property?(e.find("#pstrust-btn-property-ok").show(),e.find("#pstrust-btn-property-nok").hide()):(e.find("#pstrust-btn-property-ok").hide(),e.find("#pstrust-btn-property-nok").show(),e.find("#pstrust-buy").attr("href",n.url).toggle(null!==n.url)),e.find("#pstrust-img").attr({src:n.img,alt:n.name}),e.find("#pstrust-name").text(n.displayName),e.find("#pstrust-author").text(n.author),e.find("#pstrust-label").attr("class","text-"+o).text(n.prestatrust.status?"OK":"KO"),e.find("#pstrust-message").attr("class","alert alert-"+o),e.find("#pstrust-message > p").text(n.prestatrust.message),e}}},{key:"_dispatchPreEvent",value:function(t,e){var n=jQuery.Event("module_card_action_event");return l(e).trigger(n,[t]),!1===n.isPropagationStopped()&&!1===n.isImmediatePropagationStopped()&&!1!==n.result}},{key:"_requestToController",value:function(t,e,n){var o=this,r=e.closest(this.moduleItemActionsSelector),s=e.closest("form"),u=l(''),c="//"+window.location.host+s.attr("action"),d=s.serializeArray();return"true"!==n&&!0!==n||d.push({name:"actionParams[deletion]",value:!0}),l.ajax({url:c,dataType:"json",method:"POST",data:d,beforeSend:function(){r.hide(),r.after(u)}}).done(function(e){if(void 0===(void 0===e?"undefined":i(e)))l.growl.error({message:"No answer received from server"});else{var n=Object.keys(e)[0];if(!1===e[n].status)void 0!==e[n].confirmation_subject&&o._confirmPrestaTrust(e[n]),l.growl.error({message:e[n].msg});else{l.growl.notice({message:e[n].msg});var s=null,u=null;"uninstall"==t?(r.fadeOut(function(){s=o._getModuleItemSelector().replace(".",""),u=r.parents("."+s).first(),u.remove()}),a.emitEvent("Module Uninstalled","CustomEvent")):"disable"==t?(s=o._getModuleItemSelector().replace(".",""),u=r.parents("."+s).first(),u.addClass(s+"-isNotActive"),u.attr("data-active","0"),a.emitEvent("Module Disabled","CustomEvent")):"enable"==t&&(s=o._getModuleItemSelector().replace(".",""),u=r.parents("."+s).first(),u.removeClass(s+"-isNotActive"),u.attr("data-active","1"),a.emitEvent("Module Enabled","CustomEvent")),r.replaceWith(e[n].action_menu_html)}}}).always(function(){r.fadeIn(),u.remove()}),!1}}]),t}();e.a=s},404:function(t,e,n){t.exports=n(194)}});