!function i(a,n,r){function s(e,t){if(!n[e]){if(!a[e]){var o="function"==typeof require&&require;if(!t&&o)return o(e,!0);if(l)return l(e,!0);throw(t=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",t}o=n[e]={exports:{}},a[e][0].call(o.exports,function(t){return s(a[e][1][t]||t)},o,o.exports,i,a,n,r)}return n[e].exports}for(var l="function"==typeof require&&require,t=0;t
").appendTo("body"),w(".wlfmc-elementor.elementor-"+o+" .elementor-element-"+i).append(t)):0").appendTo("body"),w(".wlfmc-elementor.no-elementor-"+i).append(t)))},show_mini_wishlist:function(){w(".wlfmc-counter-dropdown").removeClass("lists-show");var t=w(".dropdown_"+w(this).attr("data-id"))||w(this).closest(".wlfmc-counter-wrapper").find(".wlfmc-counter-dropdown");w.fn.WLFMC.appendtoBody(t.closest(".wlfmc-counter-wrapper")),w.fn.WLFMC.prepare_mini_wishlist(t),t.addClass("lists-show")},hide_mini_wishlist:function(){var t=w(this).closest(".wlfmc-counter-wrapper").find(".wlfmc-counter-dropdown");w(".wlfmc-first-touch").removeClass("wlfmc-first-touch"),w(".wlfmc-first-click").removeClass("wlfmc-first-click"),t.removeClass("lists-show")},reInit_wlfmc:function(){w(document).trigger("wlfmc_init")},init_tooltip:function(){function a(t,e){var o,e=w(e),t=w(t),i=w("body").offset(),a=(w("body").css({position:"relative"}),s.show(),s.hide(),(e.outerHeight()-t.outerHeight())/2),n=-t.outerWidth()/2+e.outerWidth()/2,n={top:[-t.outerHeight()-7,n],right:[a,e.outerWidth()+7],bottom:[e.outerHeight()+7,n],left:[a,-t.outerWidth()-7]},a=["top","right","bottom","left"];Object.keys(n),"top"===s.direction||"bottom"===s.direction?(t.css("top",e.offset().top-i.top+n[s.direction][0]),t.css("left",e.offset().left-i.left+3.5+n[s.direction][1])):(o=(o=n[s.direction][0]-3.5)<0?o+3.5:o,t.css("top",e.offset().top-i.top+o),t.css("left",e.offset().left-i.left+n[s.direction][1])),r(t)&&(s.direction=a[a.indexOf(s.direction)+1]),s.show()}var r=function(t){return t.offsetLeft+t.offsetWidth<0||t.offsetTop+t.offsetHeight<0||t.offsetLeft+t.offsetWidth>window.innerWidth||t.offsetTop+t.offsetHeight>window.innerHeight},s=new function(){var i=this;this.idSelector="wlfmc-tooltip",this.text="",this.top=0,this.left=0,this.direction=void 0!==this.direction?this.direction:"bottom",this.t_type=void 0!==this.t_type?this.t_type:"default",this.target="",this.hideTimeout=null,this.node=document.getElementById(this.idSelector),this.node||(this.node=document.createElement("div"),this.node.setAttribute("id",this.idSelector),this.node.className=this.node.className+"tooltip__hidden",this.node.innerHTML=this.text,document.body.appendChild(this.node)),this.show=function(){var t=["top","right","bottom","left"],e=(i.node.innerHTML=i.text,i.direction),o=i.t_type;e?w(this.node).addClass("tooltip__expanded tooltip__expanded-"+e):w(this.node).addClass("tooltip__expanded"),w(this.node).addClass("wlfmc-tooltip-"+o),w(this.node).removeClass("tooltip__hidden"),r(w(s.node))&&(s.hide(),s.direction=t[t.indexOf(s.direction)+1],a(s.node,s.target))},this.hide=function(){i.hideTimeout&&(clearTimeout(i.hideTimeout),i.hideTimeout=null),w(i.node).css("top","0"),w(i.node).css("left","0"),w(i.node).attr("class",""),w(i.node).addClass("tooltip__hidden")}},e="ontouchstart"in window||0",{val:t.attr("data-href"),type:"text"});return w("body").append(t),w.fn.WLFMC.isOS()?t[0].setSelectionRange(0,9999):t.select(),document.execCommand("copy"),t.remove(),toastr.success(wlfmc_l10n.labels.link_copied),!1})},retrieve_fragments:function(t){var o={},e=null;return t?"object"===d(t)?(e=(t=w.extend({fragments:null,s:"",container:w(document),firstLoad:!1},t)).fragments||t.container.find(".wlfmc-wishlist-fragment"),t.s&&(e=e.not("[data-fragment-ref]").add(e.filter('[data-fragment-ref="'+t.s+'"]'))),t.firstLoad&&(e=e.filter(".on-first-load"))):(e=w(".wlfmc-wishlist-fragment"),"string"!=typeof t&&"number"!=typeof t||(e=e.not("[data-fragment-ref]").add(e.filter('[data-fragment-ref="'+t+'"]')))):e=w(".wlfmc-wishlist-fragment"),e.length?(e.each(function(){var t=w(this),e=t.attr("class").split(" ").filter(function(t){return t.length&&"exists"!==t}).join(wlfmc_l10n.fragments_index_glue);o[e]=t.data("fragment-options")}),o):null},load_fragments:function(o,i,a){clearTimeout(t),t=setTimeout(function(){n&&n.abort(),o=w.extend({firstLoad:!0},o);var t=w.fn.WLFMC.retrieve_fragments(o),e=new FormData;e.append("action",wlfmc_l10n.actions.load_fragments),e.append("context","frontend"),t&&(t=JSON.stringify(t),t=new File([t],"fragment.json"),e.append("fragments_file",t)),n=w.ajax({url:wlfmc_l10n.admin_url,data:e,type:"POST",contentType:!1,processData:!1,success:function(t){void 0!==t.fragments&&("function"==typeof i&&i.apply(null,a),w.fn.WLFMC.replace_fragments(t.fragments),w.fn.WLFMC.init_handling_after_ajax()),w("#wlfmc-lists,#wlfmc-wishlist-form").addClass("on-first-load"),void 0!==t.products&&w.fn.WLFMC.set_products_hash(JSON.stringify(t.products)),void 0!==t.waitlist&&w.fn.WLFMC.set_waitlist_hash(JSON.stringify(t.waitlist)),void 0!==t.lang&&w.fn.WLFMC.set_lang_hash(t.lang)}})},100)},replace_fragments:function(t){w.each(t,function(t,e){var t="."+t.split(wlfmc_l10n.fragments_index_glue).filter(function(t){return t.length&&"exists"!==t&&"with-count"!==t}).join("."),o=w(t),i=w(e).filter(t);i.length||(i=w(e).find(t)),o.length&&i.length&&o.replaceWith(i)})},load_automations:function(t,e,o,i,a){w.ajax({url:wlfmc_l10n.ajax_url,data:{action:wlfmc_l10n.actions.load_automations,nonce:a,context:"frontend",product_id:parseInt(t),wishlist_id:parseInt(e),customer_id:parseInt(o),list_type:i},method:"POST",beforeSend:function(t){"rest_api"===wlfmc_l10n.ajax_mode&&t.setRequestHeader("X-WP-Nonce",wlfmc_l10n.nonce)},complete:function(){}})},check_products:function(t){var e;null!==t&&(u=[],(e=w(".wlfmc-products-counter-wrapper .wlfmc-counter-item")).length&&u.length&&e.each(function(){var e=w(this).attr("data-row-id");w.grep(u,function(t){return t.product_id===e}).length||w(".wlfmc-products-counter-wrapper").find('[data-row-id="'+e+'"]').remove()}),(e=w(".wlfmc-wishlist-form .wlfmc-table-item")).length&&u.length&&e.each(function(){var e=w(this).attr("data-row-id");w.grep(u,function(t){return t.product_id===e}).length||w(".wlfmc-wishlist-form").find('[data-row-id="'+e+'"]').remove()}),w(".wlfmc-add-to-wishlist").removeClass("exists"),w.each(t,function(t,e){w(".wlfmc-add-to-wishlist-"+e.product_id).each(function(){w(this).addClass("exists"),w(this).find(".wlfmc_delete_item").attr("data-item-id",e.item_id),w(this).find(".wlfmc_delete_item").attr("data-wishlist-id",e.wishlist_id)}),w(".wlfmc-products-counter-wrapper .products-counter-number").text(e.length),w(".wlfmc-products-counter-wishlist .total-products .wlfmc-total-count").text(e.length),u.push(e)}))},set_products_hash:function(t){r&&(localStorage.setItem(l,t),sessionStorage.setItem(l,t)),w.fn.WLFMC.check_products(JSON.parse(t))},set_lang_hash:function(t){r&&(localStorage.setItem(c,t),sessionStorage.setItem(c,t))},validateEmail:function(t){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(t).toLowerCase())},isTrue:function(t){return!0===t||"yes"===t||"1"===t||1===t||"true"===t},isOS:function(){return navigator.userAgent.match(/ipad|iphone/i)},loading:function(t){0 .wlfmc-top-of-image").length&&0