!function(a){var t={};function e(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return a[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}e.m=a,e.c=t,e.d=function(a,t,n){e.o(a,t)||Object.defineProperty(a,t,{configurable:!1,enumerable:!0,get:n})},e.n=function(a){var t=a&&a.__esModule?function(){return a.default}:function(){return a};return e.d(t,"a",t),t},e.o=function(a,t){return Object.prototype.hasOwnProperty.call(a,t)},e.p="",e(e.s=145)}({145:function(a,t,e){a.exports=e(146)},146:function(a,t){ /*! * Additional js for frontend and backend VC */ jQuery(function(a){var t=window.vc;void 0!==t&&(t.events.on("shortcodes:add shortcodeView:updated",function(a){if("vc_row"===a.settings.base||"vc_column"===a.settings.base){var e=a.view.$el.children(".vc_row, .wpb_column"),n=e.children(".nk-awb-wrap"),o=!!n.find('[id*="jarallax"]').length&&n[0];o&&o.jarallax&&o.jarallax.destroy.apply(o.jarallax),n.remove();var r=t.$frame[0].contentWindow,c=!!r&&r.nkAwbInit;e.children(".nk-awb")&&c&&c()}}),t.events.on("shortcodes:vc_row shortcodes:vc_column shortcodes:nk_awb",function(t){var e=t.attributes.params;if(t.view&&t.view.$controls_buttons){var n=!1;if(n="nk_awb"===t.attributes.shortcode?t.view.$el.find(".wpb_element_title .nk-awb-icon"):t.view.$controls_buttons.parent().children(".vc_control-awb"),!e||!e.awb_type)return n.css("background-image","").html(""),void(n.hasClass("vc_control-awb")&&n.remove());if(n.length||"vc_row"!==t.attributes.shortcode&&"vc_column"!==t.attributes.shortcode||(n=a('').appendTo(t.view.$controls_buttons.parent())),n.attr("data-vc-control","edit"),n.html('')),n.css("background-image",""),e.awb_image){var o=a("[data-model-id=".concat(t.id,"]")),r=o.data("field-awb_image-attach-image"),c=a("#post_ID"),i=c.length?c.val():0;switch(t.getParam("source")){case"external_link":n.css("background-image",'url("'.concat(t.getParam("custom_src"),'")'));break;default:_.isEmpty(e.awb_image)&&"featured_image"!==t.getParam("source")?_.isUndefined(r)||(o.removeData("field-awb_image-attach-image"),n.css("background-image",'url("'.concat(r,'")'))):a.ajax({type:"POST",url:window.ajaxurl,data:{action:"wpb_single_image_src",content:e.awb_image,params:t.attributes.params,post_id:i,_vcnonce:window.vcAdminNonce},dataType:"html",context:t.view}).done(function(a){n.css("background-image",'url("'.concat(a,'")'))})}}}}))})}});