PageSourceSearch

https://img.hobbyfarms.com/assets/js/custom-js/jquery.payform.js?ver=1790241561

js hobbyfarms.com collected 2026-09-24 09:19:52 UTC 9,420 bytes, 1 lines download raw bytes

1!function t(e,n,r){function a(i,o){if(!n[i]){if(!e[i]){var l="function"==typeof require&&require;if(!o&&l)return l(i,!0);if(u)return u(i,!0);var c=new Error("Cannot find module '"+i+"'");throw c.code="MODULE_NOT_FOUND",c}var f=n[i]={exports:{}};e[i][0].call(f.exports,function(t){var n=e[i][1][t];return a(n||t)},f,f.exports,t,e,n,r)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<r.length;i++)a(r[i]);return a}({1:[function(t,e,n){var r,a;r=t(2),(a=window.jQuery||window.Zepto).payform=r,a.payform.fn={formatCardNumber:function(){return r.cardNumberInput(this.get(0))},formatCardExpiry:function(){return r.expiryInput(this.get(0))},formatCardCVC:function(){return r.cvcInput(this.get(0))},formatNumeric:function(){return r.numericInput(this.get(0))}},a.fn.payform=function(t){return null!=a.payform.fn[t]&&a.payform.fn[t].call(this),this}},{2:2}],2:[function(t,e,n){var r=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1};!function(t,n){void 0!==e&&null!==e?e.exports=n():"function"==typeof define&&"object"==typeof define.amd?define(t,n):this[t]=n()}("payform",function(){var t,e,n,a,u,i,o,l,c,f,g,h,v,s,d,p,m,y,C,w,D,$,x;return e=function(t){var e,n,r;return null!=t.selectionStart?t.selectionStart:null!=document.selection?(t.focus(),e=document.selection.createRange(),n=(r=t.createTextRange()).duplicate(),r.moveToBookmark(e.getBookmark()),n.setEndPoint("EndToStart",r),n.text.length):void 0},t=function(t){return function(e){var n;if(null==e&&(e=window.event),"insertCompositionText"!==e.inputType||e.isComposing)return n={target:e.target||e.srcElement,which:e.which||e.keyCode,type:e.type,metaKey:e.metaKey,ctrlKey:e.ctrlKey,preventDefault:function(){e.preventDefault?e.preventDefault():e.returnValue=!1}},t(n)}},n=function(e,n,r){return r=t(r),null!=e.addEventListener?e.addEventListener(n,r,!1):e.attachEvent("on"+n,r)},(d={}).cards=[{type:"elo",pattern:/^((50670[7-8])|(506715)|(50671[7-9])|(50672[0-1])|(50672[4-9])|(50673[0-3])|(506739)|(50674[0-8])|(50675[0-3])|(50677[4-8])|(50900[0-9])|(50901[3-9])|(50902[0-9])|(50903[1-9])|(50904[0-9])|(50905[0-9])|(50906[0-4])|(50906[6-9])|(50907[0-2])|(50907[4-5])|(636368)|(636297)|(504175)|(438935)|(40117[8-9])|(45763[1-2])|(457393)|(431274)|(50907[6-9])|(50908[0-9])|(627780))/,format:i=/(\d{1,4})/g,length:[16],cvcLength:[3],luhn:!0},{type:"visaelectron",pattern:/^4(026|17500|405|508|844|91[37])/,format:i,length:[16],cvcLength:[3],luhn:!0},{type:"maestro",pattern:/^(5(018|0[23]|[68])|6(39|7))/,format:i,length:[12,13,14,15,16,17,18,19],cvcLength:[3],luhn:!0},{type:"forbrugsforeningen",pattern:/^600/,format:i,length:[16],cvcLength:[3],luhn:!0},{type:"dankort",pattern:/^5019/,format:i,length:[16],cvcLength:[3],luhn:!0},{type:"visa",pattern:/^4/,format:i,length:[13,16],cvcLength:[3],luhn:!0},{type:"mastercard",pattern:/^(5[1-5]|2[2-7])/,format:i,length:[16],cvcLength:[3],luhn:!0},{type:"amex",pattern:/^3[47]/,format:/(\d{1,4})(\d{1,6})?(\d{1,5})?/,length:[15],cvcLength:[3,4],luhn:!0},{type:"dinersclub",pattern:/^3[0689]/,format:/(\d{1,4})(\d{1,4})?(\d{1,4})?(\d{1,2})?/,length:[14],cvcLength:[3],luhn:!0},{type:"discover",pattern:/^6([045]|22)/,format:i,length:[16],cvcLength:[3],luhn:!0},{type:"unionpay",pattern:/^(62|88)/,format:i,length:[16,17,18,19],cvcLength:[3],luhn:!1}
1,{type:"jcb",pattern:/^35/,format:i,length:[16],cvcLength:[3],luhn:!0}],a=function(t){var e,n,r,a;for(t=(t+"").replace(/\D/g,""),n=0,r=(a=d.cards).length;n<r;n++)if((e=a[n]).pattern.test(t))return e},u=function(t){var e,n,r,a;for(n=0,r=(a=d.cards).length;n<r;n++)if((e=a[n]).type===t)return e},s=function(t){var e,n,r,a,u,i;for(u=!0,i=0,r=0,a=(n=(t+"").split("").reverse()).length;r<a;r++)e=n[r],e=parseInt(e,10),(u=!u)&&(e*=2),e>9&&(e-=9),i+=e;return i%10==0},v=function(t){var e;return!(null==("undefined"!=typeof document&&null!==document&&null!=(e=document.selection)?e.createRange:void 0)||!document.selection.createRange().text)||null!=t.selectionStart&&t.selectionStart!==t.selectionEnd},C=function(t){var e,n,r,a,u,i,o,l;for(null==t&&(t=""),r="0123456789",a="0123456789",l="",u=0,o=(n=t.split("")).length;u<o;u++)e=n[u],(i=r.indexOf(e))>-1&&(e=a[i]),l+=e;return l},m=function(t){var n;if(""!==t.target.value)return t.target.value=d.formatCardNumber(t.target.value),"rtl"===document.dir&&-1===t.target.value.indexOf("‎‎")&&(t.target.value="‎‎".concat(t.target.value)),null!=(n=e(t.target))&&"change"!==t.type?t.target.setSelectionRange(n,n):void 0},f=function(t){var n,r,u,i,o,l,c;if(u=String.fromCharCode(t.which),/^\d+$/.test(u)&&(c=t.target.value,n=a(c+u),i=(c.replace(/\D/g,"")+u).length,l=16,n&&(l=n.length[n.length.length-1]),!(i>=l||(r=e(t.target))&&r!==c.length)))return(o=n&&"amex"===n.type?/^(\d{4}|\d{4}\s\d{6})$/:/(?:^|\s)(\d{4})$/).test(c)?(t.preventDefault(),setTimeout(function(){return t.target.value=c+" "+u})):o.test(c+u)?(t.preventDefault(),setTimeout(function(){return t.target.value=c+u+" "})):void 0},o=function(t){var n,r;if(r=t.target.value,8===t.which&&(!(n=e(t.target))||n===r.length))return/\d\s$/.test(r)?(t.preventDefault(),setTimeout(function(){return t.target.value=r.replace(/\d\s$/,"")})):/\s\d?$/.test(r)?(t.preventDefault(),setTimeout(function(){return t.target.value=r.replace(/\d$/,"")})):void 0},y=function(t){var n;if(""!==t.target.value)return t.target.value=d.formatCardExpiry(t.target.value),"rtl"===document.dir&&-1===t.target.value.indexOf("‎‎")&&(t.target.value="‎‎".concat(t.target.value)),null!=(n=e(t.target))&&"change"!==t.type?t.target.setSelectionRange(n,n):void 0},c=function(t){var e,n;if(e=String.fromCharCode(t.which),/^\d+$/.test(e))return n=t.target.value+e,/^\d$/.test(n)&&"0"!==n&&"1"!==n?(t.preventDefault(),setTimeout(function(){return t.target.value="0"+n+" / "})):/^\d\d$/.test(n)?(t.preventDefault(),setTimeout(function(){return t.target.value=n+" / "})):void 0},g=function(t){var e,n;if(e=String.fromCharCode(t.which),/^\d+$/.test(e))return n=t.target.value,/^\d\d$/.test(n)?t.target.value=n+" / ":void 0},h=function(t){var e,n;if("/"===(n=String.fromCharCode(t.which))||" "===n)return e=t.target.value,/^\d$/.test(e)&&"0"!==e?t.target.value="0"+e+" / ":void 0},l=function(t){var n,r;if(r=t.target.value,8===t.which&&(!(n=e(t.target))||n===r.length))return/\d\s\/\s$/.test(r)?(t.preventDefault(),setTimeout(function(){return t.target.value=r.replace(/\d\s\/\s$/,"")})):void 0},p=function(t){var n;if(""!==t.target.value)return n=e(t.target),t.target.value=C(t.target.value).replace(/\D/g,"").slice(0,4),null!=n&&"change"!==t.type?t.target.setSelectionRange(n,n):void 0},x=function(t){var e;if(!(t.metaKey||t.ctrlKey||0===t.which||t.which<33))return e=String.fromCharCode(t.which),/^\d+$/.test(e)?void 0:t.preventDefault()},D=function(t){var e,n,r,u;if(n=String.fromCharCode(t.which),/^\d+$/.test(n)&&!v(t.target))return u=(t.target.value+n).replace(/\D/g,""),r=(e=a(u))?e.length[e.length.length-1]:16,u.length>r?t.preventDefault():void 0},$=function(t){var e;if(e=String.fromCharCode(t.which),/^\d+$/.test(e)&&!v(t.target))return(t.target.value+e).replace(/\D/g,"").length>4?t.preventDefault():void 0},w=function(t){var e;if(e=String.fromCharCode(t.which),/^\d+$/.test(e)&&!v(t.target))return(t.target.value+e).length>4?t.preventDefault():void 0},d.cvcInput=function(t){return n(t,"keypress",x),n(t,"keypress",w),n(t,"paste",p),n(t,"change",p),n(t,"input",p)},d.expiryInput=function(t){return n(t,"keypress",x),n(t,"keypress",$),n(t,"keypress",c),n(t,"keypress",h),n(t,"keypress",g),n(t,"keydown",l),n(t,"change",y),n(t,"input",y)},d.cardNumberInput=function(t){return n(t,"keypress",x),n(t,"keypress",D),n(t,"keypress",f),n(t,"keydown",o),n(t,"paste",m),n(t,"change",m),n(t,"input",m)},d.numericInput=function(t){return n(t,"keypress",x),n(t,"paste",x),n(t,"change",x),n(t,"input",x)},d.parseCardExpiry=function(t){var e,n,r;return e=(n=(t=t.replace(/\s/g,"")).split("/",2))[0],2===(null!=(r=n[1])?r.length:void 0)&&/^\d+$/.test(r)&&(r=(new Date).getFullYear().toString().slice(0,2)+r),{month:e=parseInt(e,10),year:r=parseInt(r,10)}},d.validateCardNumber=function(t){var e,n;return t=(t+"").replace(/\s+|-/g,""),!!/^\d+$/.test(t)&&(!!(e=a(t))&&(n=t.length,r.call(e.length,n)>=0&&(!1===e.luhn||s(t))))},d.validateCardExpiry=function(t,e){var n,r,a;return"object"==typeof t&&"month"in t&&(t=(a=t).month,e=a.year),!(!t||!e)&&(t=String(t).trim(),e=String(e).trim(),!!/^\d+$/.test(t)&&(!!/^\d+$/.test(e)&&(1<=t&&t<=12&&(2===e.length&&(e=e<70?"20"+e:"19"+e),4===e.length&&(r=new Date(e,t),n=new Date,r.setMonth(r.getMonth()-1),r.setMonth(r.getMonth()+1,
11),r>n)))))},d.validateCardCVC=function(t,e){var n,a;return t=String(t).trim(),!!/^\d+$/.test(t)&&(null!=(n=u(e))?(a=t.length,r.call(n.cvcLength,a)>=0):t.length>=3&&t.length<=4)},d.parseCardType=function(t){var e;return t&&(null!=(e=a(t))?e.type:void 0)||null},d.formatCardNumber=function(t){var e,n,r,u;return t=(t=C(t)).replace(/\D/g,""),(e=a(t))?(u=e.length[e.length.length-1],t=t.slice(0,u),e.format.global?null!=(r=t.match(e.format))?r.join(" "):void 0:null!=(n=e.format.exec(t))?(n.shift(),(n=n.filter(Boolean)).join(" ")):void 0):t},d.formatCardExpiry=function(t){var e,n,r,a;return(n=(t=C(t)).match(/^\D*(\d{1,2})(\D+)?(\d{1,4})?/))?(e=n[1]||"",r=n[2]||"",(a=n[3]||"").length>0?r=" / ":" /"===r?(e=e.substring(0,1),r=""):2===e.length||r.length>0?r=" / ":1===e.length&&"0"!==e&&"1"!==e&&(e="0"+e,r=" / "),e+r+a):""},d})},{}]},{},[1]);

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.