芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/kwesioben.com/paymoney/Modules/BlockIo/Resources/assets/admin/js/provider.min.js
"use strict";$(window).on("load",function(){window.localStorage.removeItem("user_id"),window.localStorage.removeItem("crypto-sent-amount"),window.localStorage.removeItem("previousCrytoSentUrl"),window.localStorage.removeItem("priority")}),$(".crypto-dropdown").click(function(){$(this).toggleClass("crypto-dropdown-active")}),$(document).click(function(a){$(".crypto-dropdown").removeClass("crypto-dropdown-active")}),$("#crypto-search-icon").click(function(){$("#crypto-search-input").val().length||($(".container-search, .crypto-search-input").toggleClass("active bg-white"),$(this).toggleClass("color-black"),$("input[type='text']").focus())}),$(document).click(function(a){var b=$("#container-search");b.is(a.target)||0!==b.has(a.target).length||$("#crypto-search-input").val().length||($(".container-search, .crypto-search-input").removeClass("active"),$(".container-search").removeClass("bg-white"),$("#crypto-search-icon").removeClass("color-black"))}),$(".provider-status").click(function(){let a=$(this).val(),b=$(this).prop("checked");$.ajax({headers:{"X-CSRF-TOKEN":$('meta[name="csrf-token"]').attr("content")},type:"POST",url:ADMIN_URL+"/crypto-provider/"+a+"/status-change",data:{provider_status:b,provider_name:a},dataType:"json",success:function(a){200==a.status?swal({title:updateText,text:a.message,type:"success"},function(){window.location.reload()}):400==a.status?swal({title:notFound,text:a.message,type:"error"},function(){window.location.reload()}):swal({title:wrongInput,text:wentWrong,type:"error"},function(){window.location.reload()})}})}),$(".network").on("click",function(a){a.preventDefault();let b=$(this).attr("data-network"),c=$(this).attr("data-status");$.ajax({headers:{"X-CSRF-TOKEN":$('meta[name="csrf-token"]').attr("content")},type:"POST",url:assetStatusChangeUrl,data:{network:b,network_status:c},dataType:"json",success:function(a){200==a.status?swal({title:updateText,text:a.message,type:"success"},function(){window.location.reload()}):400==a.status?swal({title:notFound,text:a.message,type:"error"},function(){window.location.reload()}):swal({title:wrongInput,text:wentWrong,type:"error"},function(){window.location.reload()})}})}),$(".validate-network").on("click",function(){let a=$(this).attr("data-network");$(".modal-title").text(validateCryptoAddress.replace(":x",a)),$("#address").attr("placeholder",networkAddress.replace(":x",a)),$("#address-validation-network").val(a)}),$("#addressValidationModal form").on("submit",function(c){c.preventDefault();let a=$("#address").val(),b=$("#address-validation-network").val();a.length>0&&b.length>0?($(".fa-spin").removeClass("d-none"),$("#address-validate-button").attr("disabled",!0),$("#address-validate-button-text").text(checking),$.ajax({headers:{"X-CSRF-TOKEN":$('meta[name="csrf-token"]').attr("content")},type:"GET",url:validateAddressUrl,data:{network:b,address:a},dataType:"json",success:function(a){$(".fa-spin").addClass("d-none"),$("#address-validate-button").attr("disabled",!1),$("#address-validate-button-text").text(validateAddress);let b=a.message,c=a.status;$(".alert-class").removeClass("alert alert-success alert-danger"),200==c?($(".alert-class").addClass("alert alert-success"),$("#validate-address-error").css("display","block"),$("#validate-address-error-message").html("
"+b+"
")):(a.status,$(".alert-class").addClass("alert alert-danger"),$("#validate-address-error").css("display","block"),$("#validate-address-error-message").html("
"+b+"
"))}})):($(".alert-class").addClass("alert alert-danger"),$("#validate-address-error").css("display","block"),$("#validate-address-error-message").html("
"+emptyAddress+"
"))}),$("#addressValidationModal").on("hidden.bs.modal",function(a){$("#crypto-address-check-form #address").val(""),$("#validate-address-error").css("display","none"),$(".alert-class").removeClass("alert alert-success alert-danger")})