????

Your IP : 18.117.11.129


Current Path : /home/thenclexdoctor.com/public_html/public/assets/default/js/admin/
Upload File :
Current File : /home/thenclexdoctor.com/public_html/public/assets/default/js/admin/abandoned_cart_rules.min.js

/******/ (() => { // webpackBootstrap
var __webpack_exports__ = {};
/*!****************************************************!*\
  !*** ./resources/js/admin/abandoned_cart_rules.js ***!
  \****************************************************/
(function () {
  "use strict";

  $('body').on('change', 'select[name="action"]', function (e) {
    var discountField = $('.js-discounts-field');
    if ($(this).val() === 'send_coupon') {
      discountField.removeClass('d-none');
    } else {
      discountField.addClass('d-none');
    }
  });
  $('body').on('change', '#repeat_actionSwitch', function (e) {
    var field = $('.js-repeat-action-count-field');
    if (this.checked) {
      field.removeClass('d-none');
    } else {
      field.addClass('d-none');
    }
  });
  $('body').on('change', '.js-target-types-input', function () {
    var value = $(this).val();
    var $targets = $('.js-select-target-field');
    $targets.find('select').val("");
    $targets.addClass('d-none');
    $targets.find('.js-target-option').addClass('d-none');
    if (value && value !== 'all') {
      $targets.removeClass('d-none');
      $targets.find(".js-target-option-".concat(value)).removeClass('d-none');
    }
    handleSpecificItemsShow();
  });
  $('body').on('change', '.js-target-input', function () {
    var value = $(this).val();
    var targetType = $('.js-target-types-input').val();
    handleSpecificItemsShow(value, targetType);
  });
  function handleSpecificItemsShow() {
    var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
    var targetType = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
    var $specificCategoriesField = $('.js-specific-categories-field');
    var $specificInstructorsField = $('.js-specific-instructors-field');
    var $specificSellersField = $('.js-specific-sellers-field');
    var $specificCoursesField = $('.js-specific-courses-field');
    var $specificProductsField = $('.js-specific-products-field');
    var $specificBundlesField = $('.js-specific-bundles-field');
    $specificCategoriesField.addClass('d-none');
    $specificInstructorsField.addClass('d-none');
    $specificSellersField.addClass('d-none');
    $specificCoursesField.addClass('d-none');
    $specificProductsField.addClass('d-none');
    $specificBundlesField.addClass('d-none');
    if (target === "specific_categories") {
      $specificCategoriesField.removeClass('d-none');
    } else if (target === "specific_instructors") {
      $specificInstructorsField.removeClass('d-none');
    } else if (target === "specific_sellers") {
      $specificSellersField.removeClass('d-none');
    } else if (target === "specific_courses") {
      $specificCoursesField.removeClass('d-none');
    } else if (target === "specific_products") {
      $specificProductsField.removeClass('d-none');
    } else if (target === "specific_bundles") {
      $specificBundlesField.removeClass('d-none');
    }
  }
})(jQuery);
/******/ })()
;

Page not found | The NCLEX Doctor

Page not found!

Sorry, this page is not available...