PageSourceSearch

https://www.heimatverein-riesenbeck.de/wp-content/plugins/woocomme…merce-German-Market-Frontend.min.js?ver=4.0

js heimatverein-riesenbeck.de collected 2026-10-02 22:33:09 UTC 17,790 bytes, 1 lines download raw bytes

1var gm_hide_ship_to_different_address=!1;jQuery(document).ready(function(e){var a={init:function(){this.remove_totals(),this.register_payment_update(),this.on_update_variation(),this.sepa_direct_debit(),this.sepa_direct_debit_checkout_form_handle(),this.second_checkout_place_order(),this.deactivate_ship_to_different_adress(),this.deactivate_ship_to_different_address_purchase_on_account(),this.shipping_service_provider(),this.product_review_info(),this.withdrawal(),this.guarantee_label_modal()},guarantee_label_modal:function(){var e=function(e){var a=e.data("guarantee-label-trigger");e.prop("hidden",!0).attr("aria-hidden","true"),a&&jQuery(a).attr("aria-expanded","false").trigger("focus"),jQuery(".german-market-guarantee-label-modal:not([hidden])").length||jQuery("body").removeClass("german-market-guarantee-label-modal-open")};jQuery(document.body).on("click",".german-market-guarantee-label-trigger",function(){var e=jQuery(this),a=document.getElementById(e.attr("aria-controls"));if(a){var t=jQuery(a);t.data("guarantee-label-trigger",this).appendTo(document.body).prop("hidden",!1).attr("aria-hidden","false"),e.attr("aria-expanded","true"),jQuery("body").addClass("german-market-guarantee-label-modal-open"),t.find(".german-market-guarantee-label-close").trigger("focus")}}),jQuery(document.body).on("click",".german-market-guarantee-label-close",function(){e(jQuery(this).closest(".german-market-guarantee-label-modal"))}),jQuery(document.body).on("click",".german-market-guarantee-label-modal",function(a){a.target===this&&e(jQuery(this))}),jQuery(document).on("keydown.germanMarketGuaranteeLabel",function(a){var t=jQuery(".german-market-guarantee-label-modal:not([hidden])").last();if(t.length){if("Escape"===a.key)return a.preventDefault(),void e(t);if("Tab"===a.key){var r=t.find('a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])').filter(":visible");if(!r.length)return a.preventDefault(),void t.find(".german-market-guarantee-label-dialog").trigger("focus");var i=r.get(0),n=r.get(r.length-1);a.shiftKey&&document.activeElement===i?(a.preventDefault(),jQuery(n).trigger("focus")):a.shiftKey||document.activeElement!==n||(a.preventDefault(),jQuery(i).trigger("focus"))}}})},withdrawal:function(){if(e(".german-market-withdrawal-form").on("submit",function(a){a.preventDefault();let t=[];const r=e(this),i=r.find(".german-market-withdrawal-form-fields"),n=r.find(".german-market-withdrawal-form-message"),o="undefined"!=typeof withdrawal_button&&withdrawal_button.ajax_url?withdrawal_button.ajax_url:"undefined"!=typeof ajaxurl?ajaxurl:"",d={action:"german_market_withdrawal_button_request","withdrawal-form-order-ident":r.find("#withdrawal-form-order-ident").val(),"withdrawal-form-order-id":r.find("#withdrawal-form-order-id").val(),"withdrawal-form-email":r.find("#withdrawal-form-email").val(),"withdrawal-form-first-name":r.find("#withdrawal-form-first-name").val(),"withdrawal-form-last-name":r.find("#withdrawal-form-last-name").val(),"withdrawal-form-comments":r.find("#withdrawal-form-comments").val(),"withdrawal-form-partial":r.find("#withdrawal-form-partial").is(":checked"),"withdrawal-form-partial-items":t,"german-market-withdrawal-form":r.find('input[name="german-market-withdrawal-form"]').val(),"withdrawal-form-cc-site-url":r.find("#withdrawal-form-cc-site-url").val(),"withdrawal-form-time":r.find("#withdrawal-form-time").val()};r.find('.withdrawal-form-partial-items tbody input.woocommerce-form__input-checkbox[name="items[]"]:checked').each(function(){const a=e(this).val();let i=1;const n=r.find('.withdrawal-form-partial-items input[name="item['+a+'][quantity]"]');if(n.length){const e=parseInt(n.val(),10);i=Number.isNaN(e)?1:e}t.push({item_id:a,quantity:i})}),e.post(o,d).done(function(e){e.success&&!0===e.success?(i.prop("hidden",!0).attr("aria-hidden","true"),n.removeClass("woocommerce-error").html(e.data.message).prop("hidden",!1).attr("aria-hidden","false").trigger("focus")):n.addClass("woocommerce-error").html(withdrawal_button.error_message).prop("hidden",!1).attr("aria-hidden","false").trigger("focus")}).fail(function(a){403===a.status&&e('button[name="submit-withdrawal"]').remove();let t=withdrawal_button.error_message;a.responseJSON&&a.responseJSON.data&&a.responseJSON.data.message&&(t=a.responseJSON.data.message),n.addClass("woocommerce-error").html(t).prop("hidden",!1).attr("aria-hidden","false").trigger("focus")})}),"on"===withdrawal_button.partial_allowed){e(document).on("change",".german-market-withdrawal-form .withdrawal-form-partial-items .order-withdrawal-request-item-checkbox-select-all",function(){const a=e(this).is(":checked");e(this).closest("table").find('tbody input[type="checkbox"]').prop("checked",a)}),e(document).on("change",'.german-market-withdrawal-form .withdrawal-form-partial-items tbody input[type="checkbox"]',function(){const a=e(this).closest("table"),t=a.find('tbody input[type="checkbox"]').length,r=a.find('tbody input[type="checkbox"]:checked').length;a.find(".order-withdrawal-request-item-checkbox-select-all").prop("checked",t===r)}),e("#withdrawal-form-order-id").on("change",function(){const a=e(".german-market-withdrawal-form"),t=e(".withdrawal-form-partial-select"),r=e(".withdrawal-form-partial-items");a.addClass("is-loading"),a.find("input, select, textarea, button").prop("disabled",!0),e(t).hide(),e(r).html(""),e(r).hide(),e("#withdrawal-form-partial").prop("checked",!1);const i="undefined"!=typeof withdrawal_button&&withdrawal_button.ajax_url?withdrawal_button.ajax_url:"undefined"!=typeof ajaxurl?ajaxurl:"",n={action:"german_market_withdrawal_button_withdrawal_items","withdrawal-form-order-id":a.find("#withdrawal-form-order-id").val(),"german-market-withdrawal-form":a.find('input[name="german-market-withdrawal-form"]').val()};e.post(i,n).done(function(i){!0===i.partial_allowed&&(e(t).show(),e(r).html(i.html)),a.removeClass("is-loading"),a.find("input, select, textarea, button").prop("disabled",!1)})});var a=e(" #withdrawal-form-order-id");a.length&&null!==a.val()&&""!==a.val()&&a.trigger("change"),e("#withdrawal-form-partial").on("change",function(){e(this).is(":checked")?e(".withdrawal-form-partial-items").show():e(".withdrawal-form-partial-items").hide()})}},product_review_info:function(){if("on"===german_market_legal_info_product_reviews.activated&&e(german_market_legal_info_product_reviews.element).length){jQuery.post(sepa_ajax_object.ajax_url,{action:"product_review_info"},function(a){e(a).insertBefore(german_market_legal_info_product_reviews.element)})}
1e(".german-market-legal-information-for-product-reviews.short-after-star-rating").on("click",function(t){t.preventDefault(),a.product_review_info_handler(e(this))}),e(".german-market-legal-information-for-product-reviews.short-after-star-rating").on("keydown",function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),a.product_review_info_handler(e(this)))}),e(document).on("mouseup",function(a){var t=e(".german-market-legal-information-for-product-reviews.short-after-star-rating");t.is(a.target)||0!==t.has(a.target).length||(e(".german-market-legal-information-for-product-reviews.short-after-star-rating .full-text").hide(),e(".german-market-legal-information-for-product-reviews.short-after-star-rating .full-text").attr("aria-hidden",!0).attr("aria-expanded",!1))})},product_review_info_handler:function(a){var t=e(a).find(".full-text");e(t).is(":visible")?(e(t).hide(),e(t).attr("aria-hidden",!0).attr("aria-expanded",!1)):(e(t).show(),e(t).attr("aria-hidden",!1).attr("aria-expanded",!0))},sepa_direct_debit_checkout_form_handle:function(){e("#german_market_sepa_use_payment_information").length&&(e(".german-market-sepa-radio-wrapper input.radio-button").length?(e("body").on("change",".german-market-sepa-radio-wrapper input.radio-button",function(){a.sepa_direct_debit_checkout_form_handler(this)}),a.sepa_direct_debit_checkout_form_handler(e(".german-market-sepa-radio-wrapper input.radio-button"))):e(".german-market-sepa-save-payment-information-checkbox").show())},sepa_direct_debit_checkout_form_handler:function(a){e(".german-market-sepa-radio-wrapper label span").css({"font-weight":"bold","margin-left":"calc( 18px + 1em )","margin-bottom":"1em",display:"inline-block"}),!0===e(a).prop("checked")&&("saved"==e(a).val()?(e(a).parents("fieldset").find(".form-row").hide(),e(".german-market-sepa-save-payment-information-checkbox").hide(),e(".gm-sepa-direct-debit-second-checkout-disabled").show()):(e(a).parents("fieldset").find(".form-row").show(),e(".german-market-sepa-save-payment-information-checkbox").show(),e(".gm-sepa-direct-debit-second-checkout-disabled").hide()),e("#gm-sepa-mandate-preview-text").slideUp())},deactivate_ship_to_different_adress(){e("body").on("update_checkout",function(){gm_hide_ship_to_different_address=!1,e("body").trigger("gm_hide_ship_to_different_address"),gm_hide_ship_to_different_address?(e("#ship-to-different-address-checkbox").prop("checked",!1),e(".shipping_address").length&&e(".shipping_address").hide(),e(".woocommerce-shipping-fields").length&&e(".woocommerce-shipping-fields").hide()):e(".woocommerce-shipping-fields").length&&e(".woocommerce-shipping-fields").show()})},deactivate_ship_to_different_address_purchase_on_account:function(){e("body").on("gm_hide_ship_to_different_address",function(){if(e("#deactivate_ship_to_different_address_if_purchase_on_account").length){if(!e("#payment_method_german_market_purchase_on_account").length)return;e("#payment_method_german_market_purchase_on_account").prop("checked")?"1"!=e("#deactivate_ship_to_different_address_if_purchase_on_account").val()&&"yes"!=e("#deactivate_ship_to_different_address_if_purchase_on_account").val()||(e("#ship-to-different-address-checkbox").length&&!0===e("#ship-to-different-address-checkbox").prop("checked")&&e(ship_different_address.before_element).length&&(e("#german-market-puchase-on-account-message").length||e(ship_different_address.before_element).before(ship_different_address.message),e("#german-market-puchase-on-account-message").show()),gm_hide_ship_to_different_address||(gm_hide_ship_to_different_address=!0)):e("#german-market-puchase-on-account-message").length&&e("#german-market-puchase-on-account-message").hide()}})},second_checkout_place_order:function(){e(":submit.wgm-place-order").on("click",function(){e(".wgm-place-order-disabled").length&&e(".wgm-place-order-disabled").show()})},setupAjax:function(){"undefined"!=typeof wgm_wpml_ajax_language&&e.ajaxSetup({data:{lang:wgm_wpml_ajax_language}})},remove_totals:function(){1==woocommerce_remove_updated_totals.val&&e(".woocommerce_message").remove()},register_payment_update:function(){1==woocommerce_payment_update.val&&e(document.body).on("change",'input[name="payment_method"]',function(){e("body").trigger("update_checkout")})},on_update_variation:function(){if("gm_default"==german_market_price_variable_products.val){var a=e(".single-product"),t=e(".legacy-itemprop-offers");a.on("show_variation",".variations_form",function(){t.slideUp(),"none"!=german_market_price_variable_theme_extra_element.val&&jQuery(german_market_price_variable_theme_extra_element.val).slideUp()}),a.on("reset_data",".variations_form",function(){t.slideDown(),"none"!=german_market_price_variable_theme_extra_element.val&&jQuery(german_market_price_variable_theme_extra_element.val).slideDown()})}else if("gm_sepcial"==german_market_price_variable_products.val){a=e(".single-product");var r=function(){jQuery('.german-market-guarantee-label-modal[data-german-market-variation-guarantee-label-modal="true"]').remove(),jQuery(".german-market-guarantee-label-modal:not([hidden])").length||jQuery("body").removeClass("german-market-guarantee-label-modal-open")};a.on("show_variation",".variations_form",function(a,t){var i='<div id="german-market-variation-
1price"></div>',n=jQuery(".woocommerce-variation-price.woocommerce-variation-price").html();e(".woocommerce-variation-availability").length&&(n+=e(".woocommerce-variation-availability").html()),e(".woocommerce-variation-description").length&&(n+=e(".woocommerce-variation-description").html()),jQuery(".woocommerce-variation.single_variation").hide(),jQuery(".woocommerce-variation-price").hide(),jQuery(".legacy-itemprop-offers").hide(),"none"!=german_market_price_variable_theme_extra_element.val&&jQuery(german_market_price_variable_theme_extra_element.val).hide(),jQuery(".elementor-widget-woocommerce-product-price .price").length&&jQuery(".elementor-widget-woocommerce-product-price .price").hide(),jQuery(".dtwpb-price.price").length&&(jQuery("#german-market-variation-price").length||jQuery(i).insertAfter(".dtwpb-price.price"),jQuery(".dtwpb-price.price").hide(),jQuery(".gm-wp_bakery_woocommerce_get_price_html").length&&jQuery(".gm-wp_bakery_woocommerce_get_price_html").hide()),jQuery(".et_pb_wc_price").length&&(jQuery("#german-market-variation-price").length||jQuery(i).insertAfter(".et_pb_wc_price"),jQuery(".et_pb_wc_price").hide()),jQuery("#german-market-variation-price").length?jQuery("#german-market-variation-price").show():jQuery(i).insertAfter(".legacy-itemprop-offers"),r();var o=t&&t.german_market_guarantee_label_html?t.german_market_guarantee_label_html:"",d=jQuery("#german-market-variation-price");d.html(n),d.find(".german-market-guarantee-label-variation-placeholder").replaceWith(o),d.find(".german-market-guarantee-label-modal").attr("data-german-market-variation-guarantee-label-modal","true")}),a.on("reset_data",".variations_form",function(){r(),jQuery(".elementor-widget-woocommerce-product-price .price").length&&jQuery(".elementor-widget-woocommerce-product-price .price").show(),jQuery(".dtwpb-price.price").length&&(jQuery(".dtwpb-price.price").show(),jQuery(".gm-wp_bakery_woocommerce_get_price_html").length&&jQuery(".gm-wp_bakery_woocommerce_get_price_html").show()),jQuery(".et_pb_wc_price").length&&jQuery(".et_pb_wc_price").show(),jQuery(".legacy-itemprop-offers").show(),jQuery("#german-market-variation-price").empty().hide(),"none"!=german_market_price_variable_theme_extra_element.val&&jQuery(german_market_price_variable_theme_extra_element.val).show()})}},sepa_direct_debit_show_preview:function(){var a=e(".wc_payment_methods input[name=payment_method]:checked"),t=e(".german-market-sepa-radio-wrapper input.radio-button:checked");if("german_market_sepa_direct_debit"!==a.val())return!1;if("saved"==t.val())return!0;var r={holder:e('[name="german-market-sepa-holder"]').val(),iban:e('[name="german-market-sepa-iban"]').val(),bic:e('[name="german-market-sepa-bic"]').val(),street:e('[name="billing_address_1"]').val(),zip:e('[name="billing_postcode"]').val(),city:e('[name="billing_city"]').val(),country:e('[name="billing_country"]').val()},i=!0;if(jQuery("#german-market-sepa-checkout-fields").is(":visible")){for(key in r)if(("bic"!=key&&"iban"!=key&&"holder"!=key||!e('[name="german-market-sepa-'+key+'"]').hasClass("gm-required-no"))&&void 0!==r[key]&&""==r[key].trim()){i=!1;break}}else i=!1;return i},sepa_direct_debit_show_preview_do:function(){a.sepa_direct_debit_show_preview()?(e(".gm-sepa-direct-debit-second-checkout-disabled").show(),e(".gm-sepa-direct-debit-order-pay").show()):(e(".gm-sepa-direct-debit-second-checkout-disabled").hide(),e(".gm-sepa-direct-debit-order-pay").hide(),e("#gm-sepa-mandate-preview-text").slideUp())},sepa_direct_debit:function(){e(document.body).on("click","#gm-sepa-mandate-preview-store",function(a){a.preventDefault(),e("#gm-sepa-mandate-preview-text").show()}),e(document.body).on("click","#gm-sepa-mandate-preview",function(a){a.preventDefault();var t=!1;e("#german_market_sepa_use_payment_information").length&&(t=e("#german_market_sepa_use_payment_information").is(":checked"));var r={action:"gm_sepa_direct_debit_mandate_preview",holder:e('[name="german-market-sepa-holder"]').val(),iban:e('[name="german-market-sepa-iban"]').val(),bic:e('[name="german-market-sepa-bic"]').val(),street:e('[name="billing_address_1"]').val(),zip:e('[name="billing_postcode"]').val(),city:e('[name="billing_city"]').val(),country:e('[name="billing_country"]').val(),nonce:sepa_ajax_object.nonce,saved_data:t};jQuery.post(sepa_ajax_object.ajax_url,r,function(a){e("#gm-sepa-mandate-preview-text").html(a),e("#gm-sepa-mandate-preview-text").slideDown(),e("#gm-sepa-mandate-preview-text .close").on("click",function(){e("#gm-sepa-mandate-preview-text").slideUp()})})}),e("#gm-sepa-mandate-preview").ready(function(){if(e("#gm-sepa-mandate-preview").length){a.sepa_direct_debit_show_preview_do();var t={0:'[name="german-market-sepa-holder"]',1:'[name="german-market-sepa-iban"]',2:'[name="german-market-sepa-bic"]',3:'[name="billing_address_1"]',4:'[name="billing_postcode"]',5:'[name="billing_city"]',6:'[name="billing_country"]'};for(key in t)e(document.body).on("change keyup",t[key],a.sepa_direct_debit_show_preview_do)}}),e(document.body).on("change",'input[name="payment_method"]',function(){"german_market_sepa_direct_debit"==e(this).val()?(a.sepa_direct_debit_show_preview_do(),e(".gm-sepa-direct-debit-second-checkout-disabled").show()):e(".gm-sepa-direct-debit-second-checkout-disabled").hide()}),e(".gm-sepa-direct-debit-second-checkout-disabled").ready(function(){e("#payment_method_german_market_sepa_direct_debit").is(":checked")&&e(".gm-sepa-direct-debit-second-checkout-disabled").show()})},shipping_service_provider:function(){e("body").on("updated_checkout",function(a,t){if(e("#p-shipping-service-provider").length){var r=!0;e('select.shipping_method, input[name^="shipping_method"][type="radio"]:checked, input[name^="shipping_method"][type="hidden"]').each(function(){var a=e(this).val();if(r=a.includes("local_pickup"))return!1}),r?e("#p-shipping-service-provider").hide():e("#p-shipping-service-provider").show()}})}};a.init()});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.