PATH:
home
/
lab2454c
/
costbloc.com
/
public
/
dist
/
js
/
custom
"use strict";const vErC="error",pErC="has-validation-error",i=document.querySelectorAll(".form-control");i.forEach(function(a){a.addEventListener("input",function(){checkValidity(a,{inErr:!1})}),a.addEventListener("invalid",function(b){b.preventDefault(),checkValidity(a,{inErr:!0})})});function checkValidity(a,b){var c=b.inErr,d=a.parentNode,e=d.querySelector(`.${vErC}`)||document.createElement("label");if(!a.validity.valid&&a.validationMessage){if(e.className=vErC,e.textContent=a.validationMessage,c)a.validity.valueMissing&&a.getAttribute("data-value-missing")?(a.setCustomValidity(a.getAttribute("data-value-missing")),e.innerHTML=a.getAttribute("data-value-missing")):a.validity.typeMismatch&&a.getAttribute("data-type-mismatch")?(a.setCustomValidity(a.getAttribute("data-type-mismatch")),e.innerHTML=a.getAttribute("data-type-mismatch")):a.validity.patternMismatch&&a.getAttribute("data-pattern")?(a.setCustomValidity(a.getAttribute("data-pattern")),e.innerHTML=a.getAttribute("data-pattern")):a.validity.tooShort&&a.getAttribute("data-min-length")?(a.setCustomValidity(a.getAttribute("data-min-length")),e.innerHTML=a.getAttribute("data-min-length")):a.validity.tooLong&&a.getAttribute("data-max-length")?(a.setCustomValidity(a.getAttribute("data-max-length")),e.innerHTML=a.getAttribute("data-max-length")):a.validity.stepMismatch&&a.getAttribute("data-step-mismatch")?(a.setCustomValidity(a.getAttribute("data-step-mismatch")),e.innerHTML=a.getAttribute("data-step-mismatch")):a.validity.rangeUnderflow&&a.getAttribute("data-min")?(a.setCustomValidity(a.getAttribute("data-min")),e.innerHTML=a.getAttribute("data-min")):a.validity.rangeOverflow&&a.getAttribute("data-max")?(a.setCustomValidity(a.getAttribute("data-max")),e.innerHTML=a.getAttribute("data-max")):a.validity.badInput&&a.getAttribute("data-bad-input")?(a.setCustomValidity(a.getAttribute("data-bad-input")),e.innerHTML=a.getAttribute("data-bad-input")):a.validity.customError&&a.getAttribute("data-custom-error")&&(a.setCustomValidity(a.getAttribute("data-custom-error")),e.innerHTML=a.getAttribute("data-custom-error")),d.append(a,e),d.classList.add(pErC);else{var f=a.getAttribute("data-related");if(f){var g=document.getElementById(f),h=g.parentNode,i=h.querySelector(`.${vErC}`);g.setCustomValidity(""),h.classList.remove(pErC),""!=i&&i.remove()}a.setCustomValidity(""),d.classList.remove(pErC),e.remove()}"undefined"!=typeof once&&!0==once&&(once=!1,$("html, body").animate({scrollTop:$(".error").offset().top},1e3))}else a.setCustomValidity(""),d.classList.remove(pErC),e.remove()}$(document).on("change",".sl_common_bx",function(a){this.setCustomValidity(""),""==$(a.currentTarget).val()?$("#"+$(this).attr("id")).parent("div").find(".error").show():$("#"+$(this).attr("id")).parent("div").find(".error").hide()}),$(".onblur-clear-this-input").on("blur",function(){const d=document.getElementById(this.id),a=d.closest(".form");if(a)var b=a.querySelector(".onblur-clear-icon");b.style.display=0==document.getElementById(this.id).value.length?"none":"block",b.addEventListener("click",function(){d.value="",b.style.display="none"})}),$(".onblur-clear-this-input").on("focus",function(){const d=document.getElementById(this.id),a=d.closest(".form");if(a)var b=a.querySelector(".onblur-clear-icon");b.style.display="none"});
[-] create-product.min.js
[edit]
[-] refund.js
[edit]
[-] shops.js
[edit]
[-] commission.min.js
[edit]
[-] user.min.js
[edit]
[-] installer.js
[edit]
[-] category.min.js
[edit]
[+]
site
[-] jquery.blockUI.js
[edit]
[-] category.js
[edit]
[-] create-product.js
[edit]
[-] refund.min.js
[edit]
[+]
..
[-] shipping.min.js
[edit]
[-] user.js
[edit]
[-] jquery.blockUI.min.js
[edit]
[-] option.min.js
[edit]
[-] users-activity-list.js
[edit]
[-] attribute.min.js
[edit]
[-] email-configuration.min.js
[edit]
[-] dashboard.js
[edit]
[-] order.min.js
[edit]
[-] delete-modal.js
[edit]
[-] withdrawal.js
[edit]
[-] product-setting.js
[edit]
[-] validation.js
[edit]
[-] vendors.min.js
[edit]
[-] shops.min.js
[edit]
[-] roles.js
[edit]
[-] review.js
[edit]
[-] common.min.js
[edit]
[-] geolocale-suggestion.min.js
[edit]
[-] custom-category.js
[edit]
[-] product.js
[edit]
[-] order-invoice.min.js
[edit]
[-] common.js
[edit]
[-] product_list.js
[edit]
[-] settings.js
[edit]
[-] permission.min.js
[edit]
[-] coupon.js
[edit]
[-] export.js
[edit]
[-] yajra-custom.min.js
[edit]
[-] users-activity-list.min.js
[edit]
[-] finance.min.js
[edit]
[-] geolocale-suggestion.js
[edit]
[-] option.js
[edit]
[-] newsletter.min.js
[edit]
[-] order.js
[edit]
[-] role-permission.js
[edit]
[-] brand.min.js
[edit]
[-] transaction.js
[edit]
[-] popup.min.js
[edit]
[-] validation.min.js
[edit]
[-] templates.min.js
[edit]
[-] attribute.js
[edit]
[-] brand.js
[edit]
[-] app-layout.js
[edit]
[-] preference.js
[edit]
[-] invoice.js
[edit]
[-] order-invoice.js
[edit]
[-] yajra-export.js
[edit]
[-] product-setting.min.js
[edit]
[-] yajra-custom.js
[edit]
[-] installer.min.js
[edit]
[-] invoice.min.js
[edit]
[-] product_list.min.js
[edit]
[-] email-configuration.js
[edit]
[-] custom-category.min.js
[edit]
[-] settings.min.js
[edit]
[-] yajra-export.min.js
[edit]
[-] withdrawal.min.js
[edit]
[-] payment.js
[edit]
[-] preference.min.js
[edit]
[-] roles.min.js
[edit]
[-] finance.js
[edit]
[-] app-layout.min.js
[edit]
[-] permission.js
[edit]
[-] transaction.min.js
[edit]
[-] popup.js
[edit]
[-] order_status.min.js
[edit]
[-] commission.js
[edit]
[-] coupon.min.js
[edit]
[-] shipping.js
[edit]
[-] review.min.js
[edit]
[-] templates.js
[edit]
[-] delete-modal.min.js
[edit]
[-] vendors.js
[edit]
[-] order_status.js
[edit]
[-] dashboard.min.js
[edit]
[-] newsletter.js
[edit]
[-] product.min.js
[edit]
[-] export.min.js
[edit]