PageSourceSearch

https://web-asset.mebmarket.com/web/dist/assets/js/libs/Validate.js?1790847310

js mebmarket.com collected 2026-10-02 02:25:16 UTC 2,593 bytes, 1 lines download raw bytes

1"use strict";function asyncGeneratorStep(t,n,e,r,a,c,i){try{var o=t[c](i),u=o.value}catch(t){return void e(t)}o.done?n(u):Promise.resolve(u).then(r,a)}function _asyncToGenerator(o){return function(){var t=this,i=arguments;return new Promise(function(n,e){var r=o.apply(t,i);function a(t){asyncGeneratorStep(r,n,e,a,c,"next",t)}function c(t){asyncGeneratorStep(r,n,e,a,c,"throw",t)}a(void 0)})}}var Validate={isValidEmail:function(t){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(t).toLowerCase())},isWrongEmailName:function(t){var n=t.match(/@[^.]+/)[0].replace("@","");return-1==["gamil","gmil","hotnail","hotmali","hotmil"].indexOf(n)},extractEmail:function(t){var n=["gamil","gmil","hotnail","hotmali","hotmil"],e=t.match(/@[^.]+/)[0].replace("@",""),r="";if(-1!=n.indexOf(e)){var a=n.indexOf(e);r=0==a||1==a?"gmail.com":"hotmail.com"}return r},isValidUsername:function(t){return null!=/^[A-Za-z0-9_\-\@\.]{4,32}$/.exec(t)}};Validate.checkDataExistsByType=function(){var r=_asyncToGenerator(regeneratorRuntime.mark(function t(n,e,r){var a,c,i,o;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(a=$("#".concat(e)).find("#".concat(r)).attr("row-name"),""!=(c=$("#".concat(e)).find("#".concat(r)).val().trim()))return i={api:"Users",method:"checkDataUserExists",data_json:JSON.stringify({filter_type:n,filter_value:c})},t.next=6,APICaller.call(i);t.next=9;break;case 6:o=t.sent,0==jQuery.parseJSON(o).status.success?Core.mebAlert("",'"'.concat(c,'" มีผู้ใช้อยู่แล้ว กรุณาเปลี่ยน').concat(a),function(){$("#".concat(e)).find("#".concat(r)).css("background-color","#FAB4BA"),$("#".concat(e)).find("#".concat(r)).attr("is-duplicate",1)},"warning"):($("#".concat(e)).find("#".concat(r)).css("background-color","#ffffff"),$("#".concat(e)).find("#".concat(r)).removeAttr("is-duplicate"));case 9:case"end":return t.stop()}},t)}));return function(t,n,e){return r.apply(this,arguments)}}(),Validate.checkWithoutDoubleQuote=function(t){var n;if(" "==t)return!1;n=t.length;for(var e=0;e<n;e++)if('"'==t.charAt(e))return!1;return!0},Validate.checkIsNumber=function(t){var n,e;if(" "==t)return!1;n=t.length;for(var r=0;r<n;r++)if(!("0"<=(e=t.charAt(r))&&e<="9"||"."==e))return!1;return!0},Validate.isValidIDCard=function(t){for(var n=new String(t).split(""),e=0,r=13,a=0;a<n.length-1;a++)e+=n[a]*r,r-=1;return(11-e%11)%10==n[12]},Validate.checkWithoutNumber=function(t){return!/\d/.test(t)};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.