PageSourceSearch

https://www.nemunas.press/wp-content/plugins/woo-lithuaniapost-mai…post-lpexpress-terminal-block.js?ver=4.0.29

js nemunas.press collected 2026-10-02 14:45:34 UTC 1,774 bytes, 42 lines download raw bytes

1(function ($) {
2    'use strict';
3
4    function attachTerminalDropdown() {
5        let checkedShippingMethodLabel = $('.wc-block-components-shipping-rates-control .wc-block-components-radio-control__option-checked');
6        if (checkedShippingMethodLabel.length > 0) {
7            let input = $(checkedShippingMethodLabel).find('input');
8            if (input) {
9                if (input.val() && input.val().indexOf('woo_lithuaniapost_lpexpress_terminal') !== -1) {
10                    let terminalLabel = $('.woo_lithuaniapost_lpexpress_terminal_label');
11                    if (terminalLabel.length > 0) {
12                        let terminalInput = $('#' + input.val().replace(":", "_") + '.woo_lithuaniapost_shipping_method_terminal');
13                        if (terminalInput.length > 0) {
14                            terminalLabel.detach();
15                            terminalLabel.appendTo(checkedShippingMethodLabel);
16                            $(terminalLabel).show();
17                        } else {
18                            $(terminalLabel).hide();
19                        }
20                    }
21                }
22            }
23            return true;
24        }
25        return false;
26    }
27
28    function loopAttachTerminalDropdown() {
29        if (!attachTerminalDropdown()) {
30            setTimeout(() => {
31                loopAttachTerminalDropdown()
32            }, 1000);
33        }
34    }
35
36    $(document).ready(function () {
37        $(document).delegate('.wp-site-blocks, .wp-block-woocommerce-cart-order-summary-block, .wp-block-woocommerce-checkout-shipping-methods-block', 'change', function (e) {
38            attachTerminalDropdown();
39        });
40        loopAttachTerminalDropdown();
41    });
42})(jQuery);

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.