!function(o){var t,i,c,a,n,r,s,e,d,g,l,m,u;function p(e){o(".ywgc-form-preview-amount").text(e)}function y(e){o("button.gift_card_add_to_cart_button").attr("disabled",!e)}function _(){var t=o("#give-as-present"),c=o("button.ywgc-amount-buttons"),i=o("input.ywgc-amount-buttons"),n=o(".gift-cards-list input.ywgc-manual-amount"),a=o("button.ywgc-amount-buttons:first"),r=o(".ywgc-manual-amount-container"),s=(0===c.length&&y(!1),n.hasClass("selected_button")||(a.addClass("selected_button"),a.hasClass("selected_button")&&o("input.ywgc-amount-buttons:first").attr("name","gift_amounts"),o(".ywgc-form-preview-amount").text(a.data("wc-price"))),c.on("click",function(e){e.preventDefault(),c.removeClass("selected_button"),i.removeClass("selected_button"),i.removeAttr("name"),n.removeClass("selected_button"),o(this).addClass("selected_button"),o(this).next().addClass("selected_button"),o(document).trigger("ywgc-amount-changed",[o(this)])}),n.on("focusout",function(e){0===n.val().length&&a.click()}),n.on("click change keyup",function(e){var t,a;e.preventDefault(),c.removeClass("selected_button"),i.removeClass("selected_button"),i.removeAttr("name"),e=null==ywgc_data.currency_format_symbol?o(".ywgc-manual-currency-symbol").text():ywgc_data.currency_format_symbol,o(".ywgc-form-preview-amount").text(o(this).data("wc-price")),o(this).addClass("selected_button"),n.length&&(o(".ywgc-manual-amount-error").remove(),r.removeClass("ywgc-red-border"),r.addClass("ywgc-normal-border"),t=n.val(),a=new RegExp("^[1-9]\\d*(?:\\"+ywgc_data.currency_format_decimal_sep+"\\d{1,2})?$","g"),t.length&&!a.test(t)?(r.after('<div class="ywgc-manual-amount-error">'+ywgc_data.manual_amount_wrong_format+"</div>"),r.addClass("ywgc-red-border"),r.removeClass("ywgc-normal-border"),p(s=accounting.formatMoney("",{symbol:e,decimal:ywgc_data.currency_format_decimal_sep,thousand:ywgc_data.currency_format_thousand_sep,precision:ywgc_data.currency_format_num_decimals,format:ywgc_data.currency_format})),y(!1)):parseInt(t)<parseInt(ywgc_data.manual_minimal_amount)&&0<ywgc_data.manual_minimal_amount_error.length?(r.after('<div class="ywgc-manual-amount-error">'+ywgc_data.manual_minimal_amount_error+"</div>"),r.addClass("ywgc-red-border"),r.removeClass("ywgc-normal-border"),p(s=accounting.formatMoney(t,{symbol:e,decimal:ywgc_data.currency_format_decimal_sep,thousand:ywgc_data.currency_format_thousand_sep,precision:ywgc_data.currency_format_num_decimals,format:ywgc_data.currency_format})),y(!1)):parseInt(t)>parseInt(ywgc_data.manual_maximum_amount)&&0<ywgc_data.manual_maximum_amount_error.length&&0!=parseInt(ywgc_data.manual_maximum_amount)?(o(".ywgc-manual-currency-symbol").after('<div class="ywgc-manual-amount-error">'+ywgc_data.manual_maximum_amount_error+"</div>"),r.addClass("ywgc-red-border"),r.removeClass("ywgc-normal-border"),p(s=accounting.formatMoney(t,{symbol:e,decimal:ywgc_data.currency_format_decimal_sep,thousand:ywgc_data.currency_format_thousand_sep,precision:ywgc_data.currency_format_num_decimals,format:ywgc_data.currency_format})),y(!1)):t?(y(!0),(s=accounting.unformat(t,ywgc_data.mon_decimal_point))<=0?y(!1):(p(s=accounting.formatMoney(s,{symbol:e,decimal:ywgc_data.currency_format_decimal_sep,thousand:ywgc_data.currency_format_thousand_sep,precision:ywgc_data.currency_format_num_decimals,format:ywgc_data.currency_format})),y(!0))):(p(s=accounting.formatMoney("",{symbol:e,decimal:ywgc_data.currency_format_decimal_sep,thousand:ywgc_data.currency_format_thousand_sep,precision:ywgc_data.currency_format_num_decimals,format:ywgc_data.currency_format})),y(!1)))}),a.data("wc-price"));c.on("click",function(e){e.preventDefault(),i.removeAttr("name"),t.length||(o(".ywgc-manual-amount-error").remove(),o("input.selected_button").data("price")<0?y(!1):(y(!0),s=o("input.selected_button").data("wc-price"),o("input.selected_button").attr("name","gift_amounts")),p(s))})}function w(e){o("div.ywgc-card-amount span.amount").html(e)}function f(){r(o("div.cart_totals")),o.ajax({url:e("get_cart_totals"),dataType:"html",success:function(e){o("div.cart_totals").replaceWith(e)}}),o(document.body).trigger("update_checkout")}"undefined"!=typeof ywgc_data&&(t=o("div.yith-ywgc-gift-this-product-form-container"),o(document).on("click",".ywgc-choose-image.ywgc-choose-template",function(e){e.preventDefault(),o("#yith-ywgc .yith-ywgc-popup-close").show()}),o(document).on("ywgc-picture-changed",function(e,t,a){o(".ywgc-template-design").remove(),o(".ywgc-design-type").remove(),"custom"==a&&(o(".ywgc-custom-upload-image-li").show(),t="custom"),"custom-modal"==a&&(t="custom-modal"),o("form.cart").append('<input type="hidden" class="ywgc-design-type" name="ywgc-design-type" value="'+t+'">'),o("form.cart").append('<input type="hidden" class="ywgc-template-design" name="ywgc-template-design" value="'+a+'">')}),o(function(){o(".datepicker").datepicker({dateFormat:ywgc_data.date_format,minDate:1}),o(".ywgc-choose-design-preview .ywgc-design-list li:first-child .ywgc-preset-image img").click(),ywgc_data.gift_this_product_automatically&&o("#give-as-present").click()}),_(),i=o(".product-type-gift-card .woocommerce-product-gallery__image a"),c=o(".product-type-gift-card .woocommerce-product-gallery__image--placeholder"),o(".ywgc-preset-image.ywgc-default-product-image img").addClass("selected_design_image"),o(document).on("click",".product-type-gift-card form.gift-cards_form.cart .ywgc-preset-image img",function(e){e.preventDefault();var t,a,e=o(this).closest(".ywgc-preset-image").data("design-id");o(document).trigger("ywgc-picture-changed",["template",e]),o("a.lightbox-added").remove(),0!=o(".woocommerce-product-gallery__wrapper").children().length&&(o(".woocommerce-product-gallery__image").remove(),e=o(this).closest(".ywgc-preset-image").data("design-url"),t=o(this).attr("srcset"),a=o(this).attr("src"),(o(this).hasClass("custom-selected-image")||o(this).hasClass("custom-modal-selected-image"))&&(e=a),0!=c.length&&c.remove(),o('<div data-thumb="'+a+'" data-thumb-alt class="woocommerce-product-gallery__image"><a href="'+e+'"><img src="'+e+'" class="wp-post-image size-full" alt="" data-caption="" data-src="'+e+'" data-large_image="'+e+'" data-large_image_width="1024" data-large_image_height="1024" sizes="(max-width: 600px) 100vw, 600px"'+t+' width="600" height="600"></a></div>').insertBefore(".ywgc-main-form-preview-container"))}),o(document).on("click",".ywgc-preset-image img",function(e){e.preventDefault();e=o(this).closest(".ywgc-preset-image").data("design-id");o(".ywgc-preset-image img").removeClass("selected_design_image"),o(".ywgc-preset-image").removeClass("selected_image_parent"),o(this).addClass("selected_design_image"),o(this).closest(".ywgc-preset-image").addClass("selected_image_parent"),o(document).trigger("ywgc-picture-changed",["template",e])}),o(document).on("yith_ywgc_popup_template_loaded",function(e,t){o(t).on("click","a.ywgc-show-category",function(e){var t=o(this).data("category-id");return o("a.ywgc-show-category").removeClass("ywgc-category-selected"),o(this).addClass("ywgc-category-selected"),("all"!==t?(o(".ywgc-design-item").hide(),o(".ywgc-design-item."+t)):o(".ywgc-design-item")).fadeIn("fast"),!1}),o(t).on("click",".ywgc-preset-image img",function(e){var t,a,c;e.preventDefault(),o(".ywgc-preset-image img").removeClass("selected_design_image"),o(this).addClass("selected_design_image"),o(this).hasClass("selected_design_image")&&(e=o(this).attr("src"),o(this).attr("srcset"),t=o(this).parent().data("design-id"),a=o(this).parent().data("design-url"),c='<a href="'+e+'"><img src="'+e+'" class="wp-post-image size-thumbnail" alt="" data-caption="" data-src="'+e+'" data-large_image="'+e+'" data-large_image_width="1024" data-large_image_height="1024" sizes="(max-width: 600px) 100vw, 600px" width="600" height="600"></a>',e='<img src="'+e+'" class="attachment-shop_thumbnail size-shop_thumbnail selected_design_image selected_design_image_in_modal" alt="" sizes="(max-width: 150px) 100vw, 150px" width="150" height="150">',(o(".ywgc-design-list li:first-child .ywgc-preset-image ").hasClass("ywgc-default-product-image")?(i.html(c),o(".ywgc-design-list li:nth-child(2) .ywgc-preset-image").html(e),o(".ywgc-design-list li:nth-child(2) .ywgc-preset-image").data("design-id",t),o(".ywgc-design-list li:nth-child(2) .ywgc-preset-image")):(o(".ywgc-design-list li:first-child .ywgc-preset-image").html(e),o(".ywgc-design-list li:first-child .ywgc-preset-image").data("design-id",t),o(".ywgc-design-list li:first-child .ywgc-preset-image"))).data("design-url",a)),o(".yith-ywgc-popup-wrapper .yith-ywgc-popup-close").click()}),o(t).on("click",".ywgc-upload-section-modal",function(e){e.preventDefault(),o(".ywgc-design-list-modal").hide(),o(".ywgc-custom-upload-container-modal").show()}),o(t).on("click",".ywgc-show-category",function(e){e.preventDefault(),o(".ywgc-custom-upload-container-modal").hide(),o(".ywgc-design-list-modal").show()}),o(t).on("click",".ywgc-custom-picture-modal",function(e){e.preventDefault(),o("#ywgc-upload-picture-modal").click()}),o("#ywgc-upload-picture-modal").on("change",function(){o(".ywgc-preset-image img").removeClass("selected_design_image");o(".ywgc-picture-error").remove();var e,t=o(this).val().split(".").pop().toLowerCase();-1==o.inArray(t,["png","jpg","jpeg"])?o("div.gift-card-content-editor.step-appearance").append('<span class="ywgc-picture-error">'+ywgc_data.invalid_image_extension+"</span>"):o(this)[0].files[0].size>1024*ywgc_data.custom_image_max_size*1024&&0<ywgc_data.custom_image_max_size?o("div.gift-card-content-editor.step-appearance").append('<span class="ywgc-picture-error">'+ywgc_data.invalid_image_size+"</span>"):(t=o(this)[0].files[0],(e=new FileReader).readAsDataURL(t),e.onload=function(e){var e=e.target.result,t='<img src="'+e+'" class="attachment-thumbnail size-thumbnail  custom-selected-image selected_design_image" alt="" srcset="'+e+" 150w, "+e+" 250w, "+e+' 100w" sizes="(max-width: 150px) 85vw, 150px" width="150" height="150">',a='<img src="'+e+'" class="wp-post-image size-full" alt="" width="600" height="600">';o(".ywgc-design-list li:first-child .ywgc-preset-image ").hasClass("ywgc-default-product-image")?(o(".ywgc-design-list li:nth-child(2) .ywgc-preset-image").html(t),i.html(a)):o(".ywgc-design-list li:first-child .ywgc-preset-image").html(t),o(".ywgc-design-list .ywgc-preset-image img.custom-selected-image").parent().attr("data-design-url",e),o(".ywgc-design-list .ywgc-preset-image img.custom-selected-image").parent().attr("data-design-id","custom"),o(".custom-selected-image").click(),o(".yith-ywgc-popup-wrapper .yith-ywgc-popup-close").click(),o("form.cart").append('<input type="hidden" class="ywgc-custom-modal-design" name="ywgc-custom-modal-design" value="'+e+'">'),o(document).trigger("ywgc-picture-changed",["custom","custom-modal"])})})}),o(document).on("yith_ywgc_popup_closed",function(e,t){o(".ywgc-design-list .ywgc-preset-image img.selected_design_image_in_modal").click()}),o(document).on("click",".ywgc-custom-picture",function(e){e.preventDefault(),o("#ywgc-upload-picture").click()}),o("#ywgc-upload-picture").on("change",function(){o(".ywgc-preset-image img").removeClass("selected_design_image");o(".ywgc-picture-error").remove();var e,t=o(this).val().split(".").pop().toLowerCase();-1==o.inArray(t,["png","jpg","jpeg"])?o("div.gift-card-content-editor.step-appearance").append('<span class="ywgc-picture-error">'+ywgc_data.invalid_image_extension+"</span>"):o(this)[0].files[0].size>1024*ywgc_data.custom_image_max_size*1024&&0<ywgc_data.custom_image_max_size?o("div.gift-card-content-editor.step-appearance").append('<span class="ywgc-picture-error">'+ywgc_data.invalid_image_size+"</span>"):(t=o(this)[0].files[0],(e=new FileReader).readAsDataURL(t),e.onload=function(e){var e=e.target.result,t='<img src="'+e+'" class="attachment-thumbnail size-thumbnail  custom-selected-image selected_design_image" alt="" srcset="'+e+" 150w, "+e+" 250w, "+e+' 100w" sizes="(max-width: 150px) 85vw, 150px" width="150" height="150">',a='<img src="'+e+'" class="wp-post-image size-full" alt="" width="600" height="600">';o(".ywgc-design-list li:first-child .ywgc-preset-image ").hasClass("ywgc-default-product-image")?(o(".ywgc-design-list li:nth-child(2) .ywgc-preset-image").html(t),i.html(a)):o(".ywgc-design-list li:first-child .ywgc-preset-image").html(t),o(".ywgc-design-list .ywgc-preset-image img.custom-selected-image").parent().attr("data-design-url",e),o(".ywgc-design-list .ywgc-preset-image img.custom-selected-image").parent().attr("data-design-id","custom"),o(".custom-selected-image ").click(),o(document).trigger("ywgc-picture-changed",["custom","custom"])})}),o(document).on("click","a.ywgc-show-giftcard",function(){return o(".ywgc_enter_code").slideToggle(300,function(){o(".yith_wc_gift_card_blank_brightness").length||(o(".ywgc_enter_code").find(":input:eq( 0 )").focus(),o(".ywgc_enter_code").keyup(function(e){13===e.keyCode&&o("button.ywgc_apply_gift_card_button").click()}))}),!1}),o(document).on("input",".gift-cards-list input.ywgc-manual-amount",function(e){_()}),o(document).on("input","#ywgc-edit-message",function(e){o(".ywgc-card-message").html(o("#ywgc-edit-message").val())}),o(document).on("change",".gift-cards-list select",function(e){_()}),o(document).on("click","a.customize-gift-card",function(e){e.preventDefault(),o("div.summary.entry-summary").after('<div class="ywgc-customizer"></div>')}),o("#ywgc-manual-amount").keypress(function(e){13==e.keyCode&&e.preventDefault()}),o(".yith-wcpb-product-bundled-items").length&&setTimeout(function(){o("#give-as-present").prop("disabled",!1)},1e3),a=o("form.cart button.single_add_to_cart_button"),(n=a.clone()).removeAttr("type"),o(document).on("click","#give-as-present",function(e){e.preventDefault(),o("#give-as-present").attr("id","ywgc-cancel-gift-card"),o("#ywgc-cancel-gift-card span.dashicons").removeClass("dashicons-arrow-down-alt2"),o("#ywgc-cancel-gift-card span.dashicons").addClass("dashicons-arrow-up-alt2"),o("a#ywgc-cancel-gift-card").css("display","inline-block"),o(".ywgc-design-list li:first-child .ywgc-preset-image img").click(),n.addClass("ywgc-add-gift-product-to-cart"),n.text(ywgc_data.add_gift_text),t.append(n),t.slideToggle("slow"),o(this).trigger("yith_ywgc_after_click_give_as_present")}),o(document).on("click","#ywgc-cancel-gift-card",function(e){e.preventDefault(),o("#ywgc-cancel-gift-card").attr("id","give-as-present"),o("#give-as-present span.dashicons").removeClass("dashicons-arrow-up-alt2"),o("#give-as-present span.dashicons").addClass("dashicons-arrow-down-alt2"),t.slideToggle("slow")}),o(document).on("click",".ywgc-add-gift-product-to-cart",function(e){e.preventDefault(),"1"==ywgc_data.mandatory_email&&o(".yith_wc_gift_card_input_recipient_details").prop("required",!0),t.append('<input type="hidden" class="ywgc-as-present" name="ywgc-as-present" value="1">'),a.click()}),o(".variations_form.cart").on("found_variation",function(e,t){void 0!==t&&(o("#give-as-present").prop("disabled",!1),w((""!=t.price_html?o(t.price_html):o(".product-type-variable").find(".woocommerce-Price-amount.amount").first()).html()))}),o(document).on("reset_data",function(){o("#give-as-present").prop("disabled",!0),w("")}),o('.ywgc-single-recipient input[name="ywgc-recipient-email[]"]').each(function(e,t){o(this).on("input",function(){o(this).closest(".ywgc-single-recipient").find(".ywgc-bad-email-format").remove()})}),o(document).on("submit",".gift-cards_form",function(e){var c=!0;o('.ywgc-single-recipient input[name="ywgc-recipient-email[]"]').each(function(e,t){var a;o(this).val()&&(a=o(this).val(),!new RegExp("^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}$","i").test(a))&&(o(this).closest(".ywgc-single-recipient").find(".ywgc-bad-email-format").remove(),o(this).after('<span class="ywgc-bad-email-format">'+ywgc_data.email_bad_format+"</span>"),c=!1)}),c||e.preventDefault()}),o(document).on("click","a.ywgc-remove-gift-card ",function(e){e.preventDefault();var t=o(e.currentTarget).parents("table"),e=o(e.currentTarget).data("gift-card-code"),e=(r(t),{security:ywgc_data.gift_card_nonce,code:e,action:"ywgc_remove_gift_card_code"});o.ajax({type:"POST",url:ywgc_data.ajax_url,data:e,dataType:"html",success:function(e){d(e),o(document.body).trigger("removed_gift_card"),s(t)},complete:function(){f()}})}),o(document).on("click","button.ywgc_apply_gift_card_button",function(e){e.preventDefault();var t=o(this).closest("div.ywgc_enter_code"),a=(r(t),t.find('input[ name="gift_card_code" ]')),e=a.val(),e={security:ywgc_data.gift_card_nonce,code:e,action:"ywgc_apply_gift_card_code"};o.ajax({type:"POST",url:ywgc_data.ajax_url,data:e,dataType:"html",success:function(e){d(e),o(document.body).trigger("applied_gift_card")},complete:function(){s(t),a.val(""),f()}})}),r=function(e){e.addClass("processing").block({message:null,overlayCSS:{background:"#fff",opacity:.6}})},s=function(e){e.removeClass("processing").unblock()},e=function(e){return ywgc_data.wc_ajax_url.toString().replace("%%endpoint%%",e)},d=function(e){o(".woocommerce-error, .woocommerce-message").remove(),o(ywgc_data.notice_target).after(e),o(".ywgc_have_code").length&&o(".ywgc_enter_code").slideUp("300")},o(document).on("qv_loader_stop yit_quick_view_loaded flatsome_quickview",function(){_(),g()}),g=function(){o('input[name="ywgc-as-present-enabled"]').length&&(o(".ywgc-generator").hide(),y(!1))},o(document).on("click","button.yith-add-new-gc-my-account-button",function(e){e.preventDefault(),o(this).hasClass("link-form-opened")?(o(this).parent().next(".form-link-gift-card-to-user").hide(),o(this).removeClass("link-form-opened")):(o(this).parent().next(".form-link-gift-card-to-user").show(),o(this).addClass("link-form-opened"))}),(l=o(".ywgc-recipient-name input")).on("change keyup",function(e){e.preventDefault();e=l.val(),e=o.parseHTML(e.replace(/(<([^>]+)>)/gi,""));o(".ywgc-form-preview-to-content").html(e)}),(m=o(".ywgc-sender-name input")).on("change keyup",function(e){e.preventDefault();e=m.val(),e=o.parseHTML(e.replace(/(<([^>]+)>)/gi,""));o(".ywgc-form-preview-from-content").html(e)}),(u=o(".ywgc-message textarea")).on("change keyup",function(e){e.preventDefault();e=u.val(),e=o.parseHTML(e.replace(/(<([^>]+)>)/gi,"").replace(/\n/g,"<br/>"));o(".ywgc-form-preview-message").html(e)}),o(document).on("click","a.add-recipient",function(e){e.preventDefault();var t,a,c,i,e=o(".ywgc-additional-recipient").length,n=o(".product-qty-arrows");n.length&&n.hide(),e=(n=e)+2,t=o("div.gift_card_template_button input[name='quantity']"),a=ywgc_data.multiple_recipient.replace("%number_gift_cards%",e),c=o("div.ywgc-single-recipient").last(),i=ywgc_data.mandatory_email?"required":"",n='<div class="ywgc-additional-recipient"><label for="ywgc-recipient-name'+n+'">'+ywgc_data.label_name+'</label><input type="text" id="ywgc-recipient-name'+n+'" name="ywgc-recipient-name[]" class="yith_wc_gift_card_input_recipient_details" placeholder="'+ywgc_data.name+'" '+i+'/><br><label for="ywgc-recipient-email'+n+'">'+ywgc_data.label_email+'</label><input type="email" id="ywgc-recipient-email'+n+'" name="ywgc-recipient-email[]" class="ywgc-recipient yith_wc_gift_card_input_recipient_details" placeholder="'+ywgc_data.email+'" '+i+'/><a href="#" class="ywgc-remove-recipient"> </div>',c.after(n),o("a.ywgc-remove-recipient").not(":first").css("visibility","visible"),t.addClass("ywgc-remove-number-input"),t.attr("onkeydown","return false"),t.css("background-color","lightgray"),t.val(e),o(".ywgc-multi-recipients span").remove(),o("div.gift_card_template_button div.quantity").before("<div class='ywgc-multi-recipients'><span>"+a+"</span></div>")}),o(document).on("click","a.ywgc-remove-recipient",function(e){e.preventDefault();var t,e=o(".ywgc-additional-recipient").length,a=o(".product-qty-arrows");a.length&&"0"===e&&a.show(),a=o(this),e=e,(t=o("div.gift_card_template_button input[name='quantity']")).val(e),e=ywgc_data.multiple_recipient.replace("%number_gift_cards%",e),o(".ywgc-multi-recipients span").remove(),o("div.gift_card_template_button div.quantity").before("<div class='ywgc-multi-recipients'><span>"+e+"</span></div>"),o(a).parent("div.ywgc-additional-recipient").remove(),1==o('input[name="ywgc-recipient-email[]"]').length&&(o("a.hide-if-alone").css("visibility","hidden"),o("div.ywgc-multi-recipients").remove(),t.removeClass("ywgc-remove-number-input"),t.removeAttr("onkeydown"),t.css("background-color",""))}),o("#ywgc-postal-code-input").on("input",function(){o("#ywgc-country-select").change()}),o("#ywgc-country-select").on("change",function(){var a=o(".ywgc-gift-this-product-totals"),e={country_code:o(this).val(),postal_code:o("#ywgc-postal-code-input").val(),action:"ywgc_get_shipping_for_gift_this_product"};a.block({message:null,overlayCSS:{background:"#f1f1f1",opacity:.5}}),o.ajax({type:"POST",url:ywgc_data.ajax_url,data:e,dataType:"html",success:function(e){var e=(e=e.replace('"',"")).replace('"',""),t=(o("span.ywgc-gift-card-shipping-total-value").text(e.replace(".",ywgc_data.currency_format_decimal_sep)+" "+ywgc_data.currency_format_symbol),o("span.ywgc-gift-card-product-total-value").data("price-formatted")),e=parseFloat(e)+parseFloat(t);o("span.ywgc-gift-card-total-value").text(e.toFixed(2).toString().replace(".",ywgc_data.currency_format_decimal_sep)+" "+ywgc_data.currency_format_symbol),o("input.ywgc-gift-this-product-total-value").val(e),a.unblock()},error:function(e){return console.log("ERROR"),console.log(e),a.unblock(),!1}})}),o("input#ywgc-include-shipping-checkbox").on("click",function(){"no"===ywgc_data.fixed_shipping?o("input#ywgc-include-shipping-checkbox").prop("checked")?(o("div.ywgc-country-select-main-container ").removeClass("ywgc-hidden"),o("button.ywgc-add-gift-product-to-cart").css("margin","8em 0 0 auto")):(o("div.ywgc-country-select-main-container ").addClass("ywgc-hidden"),o("button.ywgc-add-gift-product-to-cart").css("margin","3em auto 0 auto")):o("input#ywgc-include-shipping-checkbox").prop("checked")?(o("div.ywgc-include-fixed-shipping-container ").removeClass("ywgc-hidden"),o("button.ywgc-add-gift-product-to-cart").css("margin","8em 0 0 auto")):o("div.ywgc-include-fixed-shipping-container ").addClass("ywgc-hidden")}))}(jQuery);