// source --> https://coeuruniversel.com/wp-content/plugins/shopengine/modules/wishlist/assets/js/wishlist.js 
jQuery(document).ready((function(){jQuery(document).on("click",".shopengine_add_to_list_action",(function(e){if(e.preventDefault(),!shopEngineWishlist.isLoggedIn)return void alert("Please login first.");let s=jQuery(this),i=s.data("pid");jQuery.ajax({type:"POST",url:shopEngineWishlist.resturl+"shopengine-builder/v1/wishlist/add_to_list/",headers:{"X-WP-Nonce":shopEngineWishlist.rest_nonce},data:{product_id:i},success:function(e){"success"===e.status&&("add"==e.todo?(jQuery("body").append("<div class='parent-notification "+shopEngineWishlist.wishlist_position+"'><div class='shopengine-wishlist-message'><p class='shopengine-wishlist-message-content'>"+shopEngineWishlist.wishlist_added_notice+"</p></div></div>"),jQuery(".parent-notification ").addClass("active"),s.removeClass("inactive").addClass("active"),s.find("svg").css({fill:"orange"})):(jQuery("body").append("<div class='parent-notification "+shopEngineWishlist.wishlist_position+"'><div class='shopengine-wishlist-message delete-message'><p class='shopengine-wishlist-message-content'>"+shopEngineWishlist.wishlist_removed_notice+"</p></div></div>"),jQuery(".parent-notification").addClass("active"),s.removeClass("active").addClass("inactive"),s.find("svg").css({fill:"none"})))},error:function(){alert("Something went wrong")},complete:function(e){setTimeout((function(){jQuery(".parent-notification").removeClass("active")}),3e3)}})})),jQuery(document).on("click",".shopengine-remove-action.remove-from-wishlist",(function(e){e.preventDefault();let s=jQuery(this),i=s.data("pid");i&&jQuery.ajax({type:"POST",url:shopEngineWishlist.resturl+"shopengine-builder/v1/wishlist/add_to_list/",headers:{"X-WP-Nonce":shopEngineWishlist.rest_nonce},data:{product_id:i},success:function(e){if("success"===e.status){let e=s.closest("tr");e.hide("slow",(function(){e.remove()}))}},error:function(){alert("Something went wrong")}})}))}));
// source --> https://coeuruniversel.com/wp-content/plugins/shopengine-pro/modules/quick-checkout/assets/js/script.js 
jQuery((function(a){"use strict";var i=a(".shopengine-quick-checkout-button"),t=a(".shopengine-quick-checkout-modal"),e=i.siblings(".single_add_to_cart_button"),r=i.siblings('[name="add-to-cart"]'),s=i.parents(".variations_form"),o={fadeDuration:250,ifIframe:!0};s.on("woocommerce_variation_has_changed",(function(){i.toggleClass("disabled",e.hasClass("disabled"))})).on("hide_variation",(function(){i.toggleClass("disabled",!0)})),i.on("click",(function(i){i.preventDefault();var s=a(this);if(s.hasClass("disabled"))e.trigger("click");else{var n="?";window.wc_add_to_cart_params&&wc_add_to_cart_params.cart_url.includes("?")&&(n="&");var c=s.parents("form.cart").serialize(),d=r.val(),l=s.data("source-url")+`${n}add-to-cart=`+d+"&"+c;t.html('<iframe src="'+l+'"></iframe>').modal(o)}}))}));
// source --> https://coeuruniversel.com/wp-content/plugins/shopengine-pro/modules/partial-payment/assets/js/partial-payment-frontend.js 
jQuery((function(n){n(".shopengine-partial-payment-fields").length&&n(".single_variation_wrap").on("show_variation",(function(i,t){let a={variation_id:t.variation_id,_wpnonce:shopEngineApiSettings.rest_nonce},e=shopEngineApiSettings.resturl+"shopengine-builder/v1/partial-payment/partial_data";n.post(e,a,(function(i){n("#partial_payment_deposit_amount").html(i)}))}))}));
// source --> https://coeuruniversel.com/wp-content/plugins/shopengine-pro/modules/pre-order/assets/js/pre-order-frontend.js 
jQuery((function(t){t(".single_variation_wrap").on("show_variation",(function(n,e){let o={variation_id:e.variation_id,_wpnonce:shopEngineApiSettings.rest_nonce},i=shopEngineApiSettings.resturl+"shopengine-builder/v1/pre-order/single_product_content";t.post(i,o,(function(n){let e=n.content,o=t(".woocommerce-variation-price");o.find(".preOrderContent").length?o.find(".preOrderContent").html(e):(e='<div class="preOrderContent">'+e+"</div>",o.prepend(e)),"false"===n.status?(t(".single_add_to_cart_button, .shopengine-quick-checkout-button").addClass("disabled"),t(".single_add_to_cart_button").text("Add to Cart")):t(".single_add_to_cart_button").text(n.add_cart_text?"Pre-Order":"Add to Cart")}))}))}));