PATH:
home
/
lab2454c
/
costbloc.com
/
public
/
dist
/
js
/
custom
"use strict";($(".main-body .page-wrapper").find("#user-add-container").length||$(".main-body .page-wrapper").find("#user-edit-container").length)&&$("#validatedCustomFile").on("change",function(){for(var a=[],b=0;b<$(this)[0].files.length;b++)a.push($(this)[0].files[b].name);$(this).next(".custom-file-label").html(a.join(", "));var c=this.files[0],d=c.type;return 0>$.inArray(d,["image/gif","image/jpeg","image/png","image/bmp"])?($("#divNote").show(),$("#note_txt_1").hide(),$("#note_txt_2").html("<h6> <span class=\"text-danger font-weight-bolder\">"+jsLang("Invalid file extension")+"</span> </h6> <span class=\"badge badge-danger\">"+jsLang("Note")+"!</span> "+jsLang("Allowed File Extensions: jpg, png, gif, bmp")),$("#note_txt_2").show(),$("#prvw").hide(),!1):($("#prvw").show(),$("#note_txt_2, #note_txt_1").hide(),!0)}),$(".main-body .page-wrapper").find("#user-import-container").length&&($("#fileRequest").on("click",function(){window.location=SITE_URL.replace("/admin","")+"/public/dist/downloads/user_sheet.csv"}),$(".error, #note_txt_2").hide(),$("#validatedCustomFile").on("change",function(){for(var a=[],b=0;b<$(this)[0].files.length;b++)a.push($(this)[0].files[b].name);$(this).next(".custom-file-label").html(a.join(", "));var c=a.toString(),d=c.split(".").pop();-1==$.inArray(d,["csv"])?($("#note_txt_1, .error").hide(),$("#note_txt_2").show(),$("#note_txt_2").html("<h6> <span class=\"text-danger font-weight-bolder\">"+jsLang("Invalid file extension")+" </span> </h6> <span class=\"badge badge-info note-style\">"+jsLang("Note")+"</span><small class=\"text-info\"> "+jsLang("Allowed File Extensions: csv"))+"</small>"):$("#note_txt_1, #note_txt_2").hide()})),$(".main-body .page-wrapper").find("#user-list-container").length&&$(document).on("click","#csv, #pdf",function(a){a.preventDefault(),window.location=SITE_URL+"/user/"+this.id});function passwordValidation(){var a=!0,b="",c=[];return(uppercase&&0>$(".password-validation").val().search(/[A-Z]/)&&(c.push(jsLang("uppercase")),a=!1),lowercase&&0>$(".password-validation").val().search(/[a-z]/)&&(c.push(jsLang("lowercase")),a=!1),number&&0>$(".password-validation").val().search(/[0-9]/)&&(c.push(jsLang("numbers")),a=!1),symbol&&0>$(".password-validation").val().search(/[#?!@$%^&*-]/)&&(c.push(jsLang("symbols")),a=!1),0<c.length&&(b=jsLang("Password must contain :x"),b=b.replace(":x",c.join(", "))),length&&$(".password-validation").val().length<length&&(0<b.length?(b=jsLang("Password must contain :x and :y characters long."),b=b.replace(":x",c.join(", ")),b=b.replace(":y",length)):(b=jsLang("Password must be at least :x characters."),b=b.replace(":x",length)),a=!1),!1==a)?($(".password-validation-error").addClass("text-red").text(b),!1):0==$("#password").val().localeCompare($("#confirm_password").val()??$("#password").val())?($("form").find(":submit").text($(".admin-password-update").length?jsLang("Updating"):jsLang("Creating")).append(`<div class="spinner-border spinner-border-sm ml-2" role="status">`),$("form").find(":submit").addClass("disabled-btn"),!0):($(".password-validation-error").addClass("text-red").text(jsLang("Passwords does not match!")),!1)}if($(".main-body .page-wrapper").find("#site-user-edit-container").length){var oldImage=null;imgInp.onchange=()=>{const[a]=imgInp.files;a&&(oldImage=imgInp.files,blah.src=URL.createObjectURL(a)),0==imgInp.files.length&&null!=oldImage&&(imgInp.files=oldImage)}}$(document).on("file-attached",".custom-file",function(a,b){let c=b.data;c&&$(this).closest(".preview-parent").find(".custom-file-input").val(c[0].id)}),$(document).ready(function(){$(".main-body .page-wrapper").find("#user-edit-container").length&&(""==window.location.hash?($("#user-info-tab").trigger("click"),$("html,body").scrollTop(0)):$(window.location.hash+"-tab").trigger("click"))}),$(document).on("click","ul.nav li",function(a){return""!=a.target.href&&void(window.location.replace(a.target.href),$("html,body").scrollTop(0))}),$(document).on("keyup","#password,#confirm_password",function(){$(".password-validation-error").text("")}),$(".genderSelect").select2({minimumResultsForSearch:1/0});
[-] 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]