{"version":3,"sources":["jQuery.validity.js","ecom-checkout.js"],"names":["$","undefined","__private","validate","$obj","regimen","message","$reduction","reduction","filter","validity","settings","elementSupport","elements","each","this","push","raiseError","format","field","infer","addToReport","isValidating","report","errors","valid","obj","msg","out","raise","raiseAggregateError","raiseAggregate","numericSum","accumulator","n","parseFloat","value","isNaN","str","p","hasOwnProperty","replace","RegExp","capitalize","$f","id","prop","ret","defaultFieldName","length","test","arr","split","i","join","trim","sz","substring","toUpperCase","extend","outputMode","scrollTo","modalErrorsClickable","argToString","val","getDate","getMonth","getFullYear","debugPrivates","patterns","integer","date","email","usd","url","number","zip","phone","guid","time12","time24","nonHtml","messages","require","match","lessThan","lessThanOrEqualTo","greaterThan","greaterThanOrEqualTo","range","tooLong","tooShort","alphabet","minCharClass","maxCharClass","equal","distinct","sum","sumMax","sumMin","radioChecked","generic","start","defer","end","results","name","v","o","outputs","apply","Array","prototype","slice","call","arguments","charClasses","alphabetical","numeric","alphanumeric","symbol","setup","options","clear","fn","arg","tagName","toLowerCase","f","isFunction","bind","rule","global","lastIndex","min","max","getTime","d","Date","Big","maxLength","minLength","alpha","chars","idx","indexOf","charAt","charClass","arg0","arg1","transform","map","first","subMap","i1","i2","is","find","radioNotChecked","checkboxChecked","assert","expression","fail","jQuery","tooltip","tooltipClass","remove","pos","offset","left","width","top","click","focus","fadeOut","css","hide","appendTo","fadeIn","getIdentifier","attr","label","cssClass","location","hash","labelSelector","text","addClass","select","insertAfter","get","modal","off","errorStyle","parseInt","container","erroneous","buffer","summary","removeClass","html","show","document","write","Platform","Deferred","execute","setCheckoutScript","root","giftWrappingOption","window","load","GetDeliveryOptions","data","fbPixelEnabled","e","preventDefault","SetBillingAddressAuto","SetBillingAddressSaved","SetDeliveryAddressAuto","SetDeliveryAddressSaved","getAddress","api_key","input_class","button_class","dropdown_class","output_fields","line_1","line_2","post_town","county","postcode","onLookupSuccess","onLookupError","onAddressSelected","elem","index","SetBillingAddressManual","change","SetDeliveryAddressManual","on","SetUseBilling","ApplyAccountBalance","validateInput","fbq_ProcessPayment","submit","blur","$useBillingCbx","slideDown","slideUp","ValidNotes","addressId","post","response","result","address","Address1","Address2","Town","County","Postcode","Country","alert","error","InitUseBilling","InitPaymentMethods","AddVoucherDone","reload","err","amount","toFixed","emailCheckRegex","billEmail","billCounty","billCountry","delEmail","delCounty","delCountry","ShowAllBillingAddressFields","ShowAllDeliveryAddressFields","requireTerms","deliveryOptionId","countryCode","paymentType","giftWrappingOptionId","useAccountBalance","deliveryOptionsExist","accountBalanceEnabled","$checkoutForm","enableUnsaved","CheckMinimumOrder","$makePaymentArea","reachedMinimumOrder","CheckItemsCount","hasItems","event"],"mappings":"CASA,SAAAA,EAAAC,GAKA,IA6BAC,EA+2BA,SAAAC,EAAAC,EAAAC,EAAAC,GACA,IAGAC,GAAAH,EAAAI,WAAAJ,GAAAK,OAAAT,EAAAU,SAAAC,SAAAC,gBAGAC,EAAA,GA0BA,OAvBAN,EAAAO,MACA,WAEAT,EAAAU,MACAF,EAAAG,KAAAD,MAKAE,EACAF,KACAG,EAAAZ,EAAA,CACAa,MAAAC,EAAAL,YAQAX,EAAAI,UAAAR,EAAAa,GAGAT,EAIA,SAAAiB,IACArB,EAAAU,SAAAY,iBACAtB,EAAAU,SAAAa,OAAAC,SACAxB,EAAAU,SAAAa,OAAAE,OAAA,GAMA,SAAAR,EAAAS,EAAAC,GACAN,IAEArB,EAAAU,SAAAkB,IAAAC,MAAA7B,EAAA0B,GAAAC,GAKA,SAAAG,EAAA1B,EAAAuB,GACAN,IAEArB,EAAAU,SAAAkB,IAAAG,eAAA3B,EAAAuB,GAIA,SAAAK,EAAAN,GACA,IAAAO,EAAA,EAQA,OAPAP,EAAAZ,MACA,WACA,IAAAoB,EAAAC,WAAApB,KAAAqB,OAEAH,GAAAI,MAAAH,GAAA,EAAAA,KAGAD,EAMA,SAAAf,EAAAoB,EAAAZ,GACA,IAAA,IAAAa,KAAAb,EACAA,EAAAc,eAAAD,KACAD,EAAAA,E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,IAAAsC,EAAAnS,EAAA,wBACA6P,EAAAuC,oBACAD,EAAA1F,OAEA0F,EAAAnH,UAIA,SAAAqH,kBACArS,EAAA8L,IAAAkB,KAAA,4BAAA,SAAA6C,GACA,IAAAsC,EAAAnS,EAAA,wBACA6P,EAAAyC,SACAH,EAAA1F,OAEA0F,EAAAnH,UAKAhL,EAAA0M,UAAAsC,GAAA,6BAAA,SAAAuD,EAAAlF,GACAD,qBACA8E,oBACAG,qBAGArS,EAAA0M,UAAAsC,GAAA,6BAAA,SAAAuD,EAAAlF,GACAD,qBACA8E,oBACAG,qBAGArS,EAAA0M,UAAAsC,GAAA,iCAAA,SAAAuD,EAAAlF,GACAD,qBACA8E,oBACAG","file":"ecom-checkout.min.js","sourcesContent":["/*\r\n * jQuery.validity v1.2.0\r\n * http://validity.thatscaptaintoyou.com/\r\n * https://github.com/whatgoodisaroad/validity\r\n * \r\n * Dual licensed under MIT and GPL\r\n *\r\n * Date: 2011-09-16 (Friday, 16 September 2011)\r\n */\r\n(function($, undefined) {\r\n \r\n // Default settings:\r\n ////////////////////////////////////////////////////////////////\r\n \r\n var \r\n defaults = {\r\n // The default output mode is tooltip because it requires no dependencies:\r\n outputMode:\"tooltip\",\r\n \r\n // The this property is set to true, validity will scroll the browser viewport\r\n // so that the first error is visible when validation fails:\r\n scrollTo:false,\r\n\r\n // If this setting is true, modal errors will disappear when they are clicked on:\r\n modalErrorsClickable:true,\r\n\r\n // If a field name cannot be otherwise inferred, this will be used:\r\n defaultFieldName:\"This field\",\r\n \r\n // jQuery selector to filter down to validation-supported elements:\r\n elementSupport:\":text, :password, textarea, select, :radio, :checkbox\",\r\n \r\n // Function to stringify argments for use when generating error messages.\r\n // Primarily, it just generates pretty date strings:\r\n argToString:function(val) {\r\n return val.getDate ?\r\n (val.getMonth() + 1) + \"/\" + val.getDate() + \"/\" + val.getFullYear() :\r\n val;\r\n },\r\n \r\n debugPrivates:false\r\n },\r\n \r\n __private;\r\n \r\n // Static functions and properties:\r\n ////////////////////////////////////////////////////////////////\r\n \r\n $.validity = {\r\n\r\n // Clone the defaults. They can be overridden with the setup function:\r\n settings:$.extend(defaults, {}),\r\n\r\n // Built-in library of format-checking tools for use with the \r\n // match validator as well as the nonHtml validator:\r\n patterns:{\r\n integer:/^\\d+$/,\r\n \r\n // Used to use Date.parse(), which was the cause of Issue 9, \r\n // where the function would accept 09/80/2009 as parseable.\r\n // The fix is to use a RegExp that will only accept American Middle-Endian form.\r\n // See the Internationalization section in the documentation for how to\r\n // cause it to support other date formats:\r\n date:/^((0?\\d)|(1[012]))\\/([012]?\\d|30|31)\\/\\d{1,4}$/, \r\n \r\n email:/^((([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*)|((\\x22)((((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(([\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]|\\x21|[\\x23-\\x5b]|[\\x5d-\\x7e]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(\\\\([\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))))*(((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(\\x22)))@((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD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]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.?)(:\\d*)?)(\\/((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:|@)+(\\/(([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:|@)*)*)?)?(\\?((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:|@)|[\\uE000-\\uF8FF]|\\/|\\?)*)?(\\#((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:|@)|\\/|\\?)*)?$/i,\r\n \r\n // Number should accept floats or integers, be they positive or negative.\r\n // It should also support scientific-notation, written as a lower or capital 'E' followed by the radix.\r\n // Number assumes base 10. \r\n // Unlike the native parseFloat or parseInt functions, this should not accept trailing Latin characters.\r\n number:/^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([Ee]-?\\d+)?$/,\r\n \r\n zip:/^\\d{5}(-\\d{4})?$/,\r\n phone:/^[2-9]\\d{2}-\\d{3}-\\d{4}$/,\r\n guid:/^(\\{?([0-9a-fA-F]){8}-(([0-9a-fA-F]){4}-){3}([0-9a-fA-F]){12}\\}?)$/,\r\n time12:/^((0?\\d)|(1[12])):[0-5]\\d?\\s?[aApP]\\.?[mM]\\.?$/,\r\n \r\n time24:/^(20|21|22|23|[01]\\d|\\d)(([:][0-5]\\d){1,2})$/,\r\n\r\n nonHtml:/^[^<>]*$/\r\n },\r\n\r\n // Built-in set of default error messages (for use when a message isn't specified):\r\n messages:{\r\n\r\n require:\"#{field} is required.\",\r\n // Format validators:\r\n match:\"#{field} is in an invalid format.\",\r\n integer:\"#{field} must be a positive, whole number.\",\r\n date:\"#{field} must be formatted as a date. (mm/dd/yyyy)\",\r\n email:\"#{field} must be formatted as an email.\",\r\n usd:\"#{field} must be formatted as a US Dollar amount.\",\r\n url:\"#{field} must be formatted as a URL.\",\r\n number:\"#{field} must be formatted as a number.\",\r\n zip:\"#{field} must be formatted as a zipcode ##### or #####-####.\",\r\n phone:\"#{field} must be formatted as a phone number ###-###-####.\",\r\n guid:\"#{field} must be formatted as a guid like {3F2504E0-4F89-11D3-9A0C-0305E82C3301}.\",\r\n time24:\"#{field} must be formatted as a 24 hour time: 23:00.\",\r\n time12:\"#{field} must be formatted as a 12 hour time: 12:00 AM/PM\",\r\n\r\n // Value range messages:\r\n lessThan:\"#{field} must be less than #{max}.\",\r\n lessThanOrEqualTo:\"#{field} must be less than or equal to #{max}.\",\r\n greaterThan:\"#{field} must be greater than #{min}.\",\r\n greaterThanOrEqualTo:\"#{field} must be greater than or equal to #{min}.\",\r\n range:\"#{field} must be between #{min} and #{max}.\",\r\n\r\n // Value length messages:\r\n tooLong:\"#{field} cannot be longer than #{max} characters.\",\r\n tooShort:\"#{field} cannot be shorter than #{min} characters.\",\r\n\r\n // Composition validators:\r\n nonHtml:\"#{field} cannot contain HTML characters.\",\r\n alphabet:\"#{field} contains disallowed characters.\",\r\n\r\n minCharClass:\"#{field} cannot have more than #{min} #{charClass} characters.\",\r\n maxCharClass:\"#{field} cannot have less than #{min} #{charClass} characters.\",\r\n \r\n // Aggregate validator messages:\r\n equal:\"Values don't match.\",\r\n distinct:\"A value was repeated.\",\r\n sum:\"Values don't add to #{sum}.\",\r\n sumMax:\"The sum of the values must be less than #{max}.\",\r\n sumMin:\"The sum of the values must be greater than #{min}.\",\r\n\r\n // Radio validator messages:\r\n radioChecked:\"The selected value is not valid.\",\r\n \r\n generic:\"Invalid.\"\r\n },\r\n \r\n // Abstract output:\r\n out:{\r\n start:function() {\r\n this.defer(\"start\");\r\n },\r\n end:function(results) {\r\n this.defer(\"end\", results);\r\n },\r\n raise:function($obj, msg) {\r\n this.defer(\"raise\", $obj, msg);\r\n },\r\n raiseAggregate:function($obj, msg) {\r\n this.defer(\"raiseAggregate\", $obj, msg);\r\n },\r\n defer:function(name) {\r\n var \r\n v = $.validity,\r\n o = v.outputs[v.settings.outputMode];\r\n \r\n o[name].apply(\r\n o,\r\n Array.prototype.slice.call(arguments, 1)\r\n );\r\n }\r\n },\r\n \r\n // Character classes can be used to determine the quantity\r\n // of a given type of character in a string:\r\n charClasses:{\r\n alphabetical:/\\w/g,\r\n numeric:/\\d/g,\r\n alphanumeric:/[A-Za-z0-9]/g,\r\n symbol:/[^A-Za-z0-9]/g\r\n },\r\n\r\n // Object to contain the output modes. The three built-in output modes are installed\r\n // later on in this script.\r\n outputs:{},\r\n \r\n // By default, private members are not exposed.\r\n __private:undefined,\r\n\r\n // Override the default settings with user-specified ones.\r\n setup:function(options) {\r\n this.settings = $.extend(this.settings, options);\r\n \r\n if (this.settings.debugPrivates) {\r\n this.__private = __private;\r\n }\r\n else {\r\n this.__private = undefined;\r\n }\r\n },\r\n\r\n // Object to store information about ongoing validation.\r\n // When validation starts, this will be set to a report object.\r\n // When validators fail, they will inform this object.\r\n // When validation is completed, this object will contain the \r\n // information of whether it succeeded:\r\n report:null,\r\n\r\n // Determine whether validity is in the middle of validation:\r\n isValidating:function() {\r\n return !!this.report;\r\n },\r\n\r\n // Function to prepare validity to start validating:\r\n start:function() {\r\n // The output mode should be notified that validation is starting.\r\n // This usually means that the output mode will erase errors from the \r\n // document in whatever way the mode needs to:\r\n this.out.start();\r\n \r\n // Initialize the report object:\r\n this.report = { errors:0, valid:true };\r\n },\r\n\r\n // Function called when validation is over to examine the results and clean-up:\r\n end:function() {\r\n // Null coalescence: fix for Issue 5:\r\n var results = this.report || { errors: 0, valid: true };\r\n\r\n this.report = null;\r\n \r\n // Notify the current output mode that validation is over:\r\n this.out.end(results);\r\n \r\n return results;\r\n },\r\n\r\n // Remove validiation errors:\r\n clear:function() {\r\n this.start();\r\n this.end();\r\n }\r\n };\r\n \r\n // jQuery instance methods:\r\n ////////////////////////////////////////////////////////////////\r\n\r\n $.fn.extend({\r\n\r\n // The validity function is how validation can be bound to forms.\r\n // The user may pass in a validation function or, as a shortcut, \r\n // pass in a string of a CSS selector that grabs all the inputs to \r\n // require:\r\n validity:function(arg) {\r\n \r\n return this.each(\r\n \r\n function() {\r\n \r\n // Only operate on forms:\r\n if (this.tagName.toLowerCase() == \"form\") {\r\n var f = null;\r\n\r\n // If the user entered a string to select the inputs to require,\r\n // then make the validation logic ad hoc:\r\n if (typeof (arg) == \"string\") {\r\n f = function() {\r\n $(arg).require();\r\n };\r\n }\r\n\r\n // If the user entered a validation function then just call\r\n // that at the appropriate time:\r\n else if ($.isFunction(arg)) {\r\n f = arg;\r\n }\r\n\r\n if (arg) {\r\n $(this).bind(\r\n \"submit\",\r\n function() {\r\n $.validity.start();\r\n f();\r\n return $.validity.end().valid;\r\n }\r\n );\r\n }\r\n }\r\n }\r\n );\r\n },\r\n\r\n // Validators:\r\n ////////////////////////////////////////////////\r\n\r\n // Common validators:\r\n ////////////////////////////////\r\n \r\n // Validate whether the field has a value.\r\n // http://validity.thatscaptaintoyou.com/Demos/index.htm#Require\r\n require:function(msg) {\r\n return validate(\r\n this,\r\n function(obj) {\r\n var val = $(obj).val();\r\n \r\n var res = val.length;\r\n \r\n return res;\r\n },\r\n msg || $.validity.messages.require\r\n );\r\n },\r\n\r\n // Validate whether the field matches a regex.\r\n // http://validity.thatscaptaintoyou.com/Demos/index.htm#Match\r\n match:function(rule, msg) {\r\n\r\n // If a default message is to be used:\r\n if (!msg) {\r\n // First grab the generic one:\r\n msg = $.validity.messages.match;\r\n\r\n // If there's a more specific one, use that.\r\n if (typeof (rule) === \"string\" && $.validity.messages[rule]) {\r\n msg = $.validity.messages[rule];\r\n }\r\n }\r\n\r\n // If the rule is named, rather than specified:\r\n if (typeof (rule) == \"string\") {\r\n rule = $.validity.patterns[rule];\r\n }\r\n\r\n return validate(\r\n this,\r\n\r\n // Some of the named rules can be functions, such as 'date'.\r\n // If the discovered rule is a function use it as such.\r\n // Otherwise, assume it's a RegExp.\r\n $.isFunction(rule) ?\r\n\r\n function(obj) {\r\n return !obj.value.length || rule(obj.value);\r\n } :\r\n\r\n function(obj) {\r\n // Fix for regexes where the global flag is set.\r\n // Make sure to test from the start of the string.\r\n if (rule.global) {\r\n rule.lastIndex = 0;\r\n }\r\n \r\n return !obj.value.length || rule.test(obj.value);\r\n },\r\n\r\n msg\r\n );\r\n },\r\n\r\n // http://validity.thatscaptaintoyou.com/Demos/index.htm#Range\r\n range:function(min, max, msg) {\r\n return validate(\r\n this,\r\n\r\n min.getTime && max.getTime ?\r\n\r\n // If both arguments are dates then use them that way.\r\n function(obj) {\r\n var d = new Date(obj.value);\r\n return d >= new Date(min) && d <= new Date(max);\r\n } :\r\n\r\n min.substring && max.substring && Big ?\r\n\r\n // If both arguments are strings then parse them \r\n // using the Arbitrary-Precision library.\r\n function(obj) {\r\n var n = new Big(obj.value);\r\n return (\r\n n.greaterThanOrEqualTo(new Big(min)) && \r\n n.lessThanOrEqualTo(new Big(max))\r\n );\r\n } :\r\n\r\n // Otherwise treat them like floats.\r\n function(obj) {\r\n var f = parseFloat(obj.value);\r\n return f >= min && f <= max;\r\n },\r\n\r\n msg || format(\r\n $.validity.messages.range, {\r\n min:$.validity.settings.argToString(min),\r\n max:$.validity.settings.argToString(max)\r\n }\r\n )\r\n );\r\n },\r\n\r\n // http://validity.thatscaptaintoyou.com/Demos/index.htm#GreaterThan\r\n greaterThan:function(min, msg) {\r\n return validate(\r\n this,\r\n\r\n min.getTime ?\r\n function(obj) {\r\n return new Date(obj.value) > min;\r\n } :\r\n\r\n min.substring && Big ?\r\n\r\n function(obj) {\r\n return new Big(obj.value).greaterThan(new Big(min)); \r\n } :\r\n\r\n function(obj) {\r\n return parseFloat(obj.value) > min;\r\n },\r\n\r\n msg || format(\r\n $.validity.messages.greaterThan, {\r\n min:$.validity.settings.argToString(min)\r\n }\r\n )\r\n );\r\n },\r\n\r\n // http://validity.thatscaptaintoyou.com/Demos/index.htm#GreaterThan\r\n greaterThanOrEqualTo:function(min, msg) {\r\n return validate(\r\n this,\r\n\r\n min.getTime ?\r\n function(obj) {\r\n return new Date(obj.value) >= min;\r\n } :\r\n\r\n min.substring && Big ?\r\n\r\n function(obj) {\r\n return new Big(obj.value).greaterThanOrEqualTo(new Big(min));\r\n } :\r\n\r\n function(obj) {\r\n return parseFloat(obj.value) >= min;\r\n },\r\n\r\n msg || format(\r\n $.validity.messages.greaterThanOrEqualTo, {\r\n min:$.validity.settings.argToString(min)\r\n }\r\n )\r\n );\r\n },\r\n\r\n // http://code.google.com/p/validity/wiki/Validators#LessThan\r\n lessThan:function(max, msg) {\r\n return validate(\r\n this,\r\n\r\n max.getTime ?\r\n function(obj) {\r\n return new Date(obj.value) < max;\r\n } :\r\n\r\n max.substring && Big ?\r\n\r\n function(obj) {\r\n return new Big(obj.value).lessThan(new Big(max));\r\n } :\r\n\r\n function(obj) {\r\n return parseFloat(obj.value) < max;\r\n },\r\n\r\n msg || format(\r\n $.validity.messages.lessThan, {\r\n max:$.validity.settings.argToString(max)\r\n }\r\n )\r\n );\r\n },\r\n\r\n // http://validity.thatscaptaintoyou.com/Demos/index.htm#LessThan\r\n lessThanOrEqualTo:function(max, msg) {\r\n return validate(\r\n this,\r\n\r\n max.getTime ?\r\n function(obj) {\r\n return new Date(obj.value) <= max;\r\n } :\r\n\r\n max.substring && Big ?\r\n\r\n function(obj) {\r\n return new Big(obj.value).lessThanOrEqualTo(new Big(max));\r\n } :\r\n\r\n function(obj) {\r\n return parseFloat(obj.value) <= max;\r\n },\r\n\r\n msg || format(\r\n $.validity.messages.lessThanOrEqualTo, {\r\n max:$.validity.settings.argToString(max)\r\n }\r\n )\r\n );\r\n },\r\n\r\n // http://validity.thatscaptaintoyou.com/Demos/index.htm#LessThan\r\n maxLength:function(max, msg) {\r\n return validate(\r\n this,\r\n function(obj) {\r\n return obj.value.length <= max;\r\n },\r\n msg || format(\r\n $.validity.messages.tooLong, {\r\n max:max\r\n }\r\n )\r\n );\r\n },\r\n\r\n // http://validity.thatscaptaintoyou.com/Demos/index.htm#Length\r\n minLength:function(min, msg) {\r\n return validate(\r\n this,\r\n function(obj) {\r\n return obj.value.length >= min;\r\n },\r\n msg || format(\r\n $.validity.messages.tooShort, {\r\n min:min\r\n }\r\n )\r\n );\r\n },\r\n \r\n // TODO: Document\r\n alphabet:function(alpha, msg) {\r\n var chars = [];\r\n \r\n return validate(\r\n this,\r\n function(obj) {\r\n \r\n // For each character in the string, ensure that \r\n // it's in the alphabet definition:\r\n for (var idx = 0; idx < obj.value.length; ++idx) {\r\n if (alpha.indexOf(obj.value.charAt(idx)) == -1) {\r\n chars.push(obj.value.charAt(idx));\r\n return false;\r\n }\r\n }\r\n \r\n return true;\r\n },\r\n msg || format(\r\n $.validity.messages.alphabet, {\r\n chars:chars.join(\", \")\r\n }\r\n )\r\n );\r\n },\r\n \r\n // TODO: Document\r\n minCharClass:function(charClass, min, msg) {\r\n if (typeof(charClass) == \"string\") {\r\n charClass = charClass.toLowerCase();\r\n \r\n if ($.validity.charClasses[charClass]) {\r\n charClass = $.validity.charClasses[charClass];\r\n }\r\n }\r\n \r\n return validate(\r\n this,\r\n function(obj) {\r\n return (obj.value.match(charClass) || []).length >= min;\r\n },\r\n msg || format(\r\n $.validity.messages.minCharClass, {\r\n min:min,\r\n charClass:charClass\r\n }\r\n )\r\n );\r\n },\r\n \r\n // TODO: Document\r\n maxCharClass:function(charClass, max, msg) {\r\n if (typeof(charClass) == \"string\") {\r\n charClass = charClass.toLowerCase();\r\n \r\n if ($.validity.charClasses[charClass]) {\r\n charClass = $.validity.charClasses[charClass];\r\n }\r\n }\r\n \r\n return validate(\r\n this,\r\n function(obj) {\r\n return (obj.value.match(charClass) || []).length <= max;\r\n },\r\n msg || format(\r\n $.validity.messages.maxCharClass, {\r\n max:max,\r\n charClass:charClass\r\n }\r\n )\r\n );\r\n },\r\n \r\n // Validate that the input does not contain potentially dangerous strings.\r\n // http://validity.thatscaptaintoyou.com/Demos/index.htm#NonHtml\r\n nonHtml:function(msg) {\r\n return validate(\r\n this,\r\n\r\n function(obj) {\r\n return $.validity.patterns.nonHtml.test(obj.value);\r\n },\r\n\r\n msg || $.validity.messages.nonHtml\r\n );\r\n },\r\n \r\n // Aggregate validators:\r\n ////////////////////////////////\r\n \r\n // Validate that all matched elements bear the same values.\r\n // Accepts a function to transform the values for testing.\r\n // http://validity.thatscaptaintoyou.com/Demos/index.htm#Equal\r\n equal:function(arg0, arg1) {\r\n var \r\n // If a reduced set is attached, use it.\r\n // Also, remove unsupported elements.\r\n $reduction = (this.reduction || this).filter($.validity.settings.elementSupport),\r\n\r\n transform = function(val) {\r\n return val;\r\n },\r\n\r\n msg = $.validity.messages.equal;\r\n\r\n if ($reduction.length) {\r\n\r\n // Figure out what arguments were specified.\r\n if ($.isFunction(arg0)) {\r\n transform = arg0;\r\n\r\n if (typeof (arg1) == \"string\") {\r\n msg = arg1;\r\n }\r\n }\r\n\r\n else if (typeof (arg0) == \"string\") {\r\n msg = arg0;\r\n }\r\n\r\n var \r\n map = $.map(\r\n $reduction,\r\n function(obj) {\r\n return transform(obj.value);\r\n }\r\n ),\r\n\r\n // Get the first value.\r\n first = map[0],\r\n valid = true;\r\n\r\n // If any value is not equal to the first value,\r\n // then they aren't all equal, and it's not valid.\r\n for (var i in map) {\r\n if (map[i] != first) {\r\n valid = false;\r\n }\r\n }\r\n\r\n if (!valid) {\r\n raiseAggregateError($reduction, msg);\r\n\r\n // The set reduces to zero valid elements.\r\n this.reduction = $([]);\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n // Validate that all matched elements bear distinct values.\r\n // Accepts an optional function to transform the values for testing.\r\n // http://validity.thatscaptaintoyou.com/Demos/index.htm#Distinct\r\n distinct:function(arg0, arg1) {\r\n var \r\n // If a reduced set is attached, use it.\r\n // Also, remove unsupported elements.\r\n $reduction = (this.reduction || this).filter($.validity.settings.elementSupport),\r\n\r\n transform = function(val) {\r\n return val;\r\n },\r\n\r\n msg = $.validity.messages.distinct,\r\n\r\n // An empty array to store already-examined values\r\n subMap = [],\r\n\r\n valid = true;\r\n\r\n if ($reduction.length) {\r\n\r\n // Figure out what arguments were specified.\r\n if ($.isFunction(arg0)) {\r\n transform = arg0;\r\n\r\n if (typeof (arg1) == \"string\") {\r\n msg = arg1;\r\n }\r\n }\r\n\r\n else if (typeof (arg0) == \"string\") {\r\n msg = arg0;\r\n }\r\n\r\n // Map all the matched values into an array. \r\n var map = $.map(\r\n $reduction,\r\n function(obj) {\r\n return transform(obj.value);\r\n }\r\n );\r\n\r\n // For each transformed value:\r\n for (var i1 = 0; i1 < map.length; ++i1) {\r\n // Unless it's an empty string:\r\n if (map[i1].length) {\r\n // For each value we've already looked at:\r\n for (var i2 = 0; i2 < subMap.length; ++i2) {\r\n // If we've already seen the transformed value:\r\n if (subMap[i2] == map[i1]) {\r\n valid = false;\r\n }\r\n }\r\n\r\n // We looked at the value.\r\n subMap.push(map[i1]);\r\n }\r\n }\r\n\r\n if (!valid) {\r\n raiseAggregateError($reduction, msg);\r\n\r\n // The set reduces to zero valid elements.\r\n this.reduction = $([]);\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n // Validate that the numeric sum of all values is equal to a given value.\r\n // http://validity.thatscaptaintoyou.com/Demos/index.htm#Sum\r\n sum:function(sum, msg) {\r\n // If a reduced set is attached, use it.\r\n // Also, remove unsupported elements.\r\n var $reduction = (this.reduction || this).filter($.validity.settings.elementSupport);\r\n\r\n if ($reduction.length && sum != numericSum($reduction)) {\r\n raiseAggregateError(\r\n $reduction,\r\n msg || format(\r\n $.validity.messages.sum,\r\n { sum:sum }\r\n )\r\n );\r\n\r\n // The set reduces to zero valid elements.\r\n this.reduction = $([]);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n // Validates an inclusive upper-bound on the numeric sum of the values of all matched elements.\r\n // http://validity.thatscaptaintoyou.com/Demos/index.htm#Sum\r\n sumMax:function(max, msg) {\r\n // If a reduced set is attached, use it.\r\n // Also, remove unsupported elements.\r\n var $reduction = (this.reduction || this).filter($.validity.settings.elementSupport);\r\n\r\n if ($reduction.length && max < numericSum($reduction)) {\r\n raiseAggregateError(\r\n $reduction,\r\n msg || format(\r\n $.validity.messages.sumMax,\r\n { max:max }\r\n )\r\n );\r\n\r\n // The set reduces to zero valid elements.\r\n this.reduction = $([]);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n // Validates an inclusive lower-bound on the numeric sum of the values of all matched elements.\r\n // http://validity.thatscaptaintoyou.com/Demos/index.htm#Sum\r\n sumMin:function(min, msg) {\r\n // If a reduced set is attached, use it.\r\n // Also, remove unsupported elements.\r\n var $reduction = (this.reduction || this).filter($.validity.settings.elementSupport);\r\n\r\n if ($reduction.length && min < numericSum($reduction)) {\r\n raiseAggregateError(\r\n $reduction,\r\n msg || format(\r\n $.validity.messages.sumMin,\r\n { min:min }\r\n )\r\n );\r\n\r\n // The set reduces to zero valid elements.\r\n this.reduction = $([]);\r\n }\r\n\r\n return this;\r\n },\r\n \r\n // Radio group validators:\r\n ////////////////////////////////\r\n \r\n // TODO: Document\r\n radioChecked:function(val, msg) {\r\n // If a reduced set is attached, use it.\r\n // Also, remove unsupported elements.\r\n var $reduction = (this.reduction || this).filter($.validity.settings.elementSupport);\r\n \r\n if ($reduction.is(\":radio\") && $reduction.find(\":checked\").val() != val) {\r\n raiseAggregateError(\r\n $reduction,\r\n msg || $.validity.messages.radioChecked\r\n );\r\n }\r\n },\r\n \r\n // TODO: Document\r\n radioNotChecked:function(val, msg) {\r\n // If a reduced set is attached, use it.\r\n // Also, remove unsupported elements.\r\n var $reduction = (this.reduction || this).filter($.validity.settings.elementSupport);\r\n \r\n if ($reduction.is(\":radio\") && $reduction.filter(\":checked\").val() == val) {\r\n raiseAggregateError(\r\n $reduction,\r\n msg || $.validity.messages.radioChecked\r\n );\r\n }\r\n },\r\n \r\n // Checkbox validators:\r\n ////////////////////////////////\r\n \r\n // TODO: Document\r\n checkboxChecked:function(msg) {\r\n // If a reduced set is attached, use it.\r\n // Also, remove unsupported elements.\r\n var $reduction = (this.reduction || this).filter($.validity.settings.elementSupport);\r\n \r\n if ($reduction.is(\":checkbox\") && !$reduction.is(\":checked\")) {\r\n raiseAggregateError(\r\n $reduction,\r\n msg || $.validity.messages.radioChecked\r\n );\r\n }\r\n },\r\n \r\n // Specialized validators:\r\n ////////////////////////////////\r\n\r\n // If expression is a function, it will be called on each matched element.\r\n // Otherwise, it is treated as a boolean, and the determines the validity \r\n // of elements in an aggregate fashion.\r\n // http://validity.thatscaptaintoyou.com/Demos/index.htm#Assert\r\n assert:function(expression, msg) {\r\n // If a reduced set is attached, use it.\r\n // Do not reduce to supported elements.\r\n var $reduction = this.reduction || this;\r\n\r\n if ($reduction.length) {\r\n\r\n // In the case that 'expression' is a function, \r\n // use it as a regimen on each matched element individually:\r\n if ($.isFunction(expression)) {\r\n return validate(\r\n this,\r\n expression,\r\n msg || $.validity.messages.generic\r\n );\r\n }\r\n\r\n // Otherwise map it to a boolean and consider this as an aggregate validation:\r\n else if (!expression) {\r\n\r\n raiseAggregateError(\r\n $reduction,\r\n msg || $.validity.messages.generic\r\n );\r\n\r\n // The set reduces to zero valid elements.\r\n this.reduction = $([]);\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n \r\n fail:function(msg) {\r\n return this.assert(false, msg);\r\n }\r\n });\r\n\r\n // Private utilities:\r\n ////////////////////////////////////////////////////////////////\r\n\r\n // Do non-aggregate validation.\r\n // Subject each element in $obj to the regimen.\r\n // Raise the specified error on failures.\r\n // This function is the heart of validity:\r\n function validate($obj, regimen, message) {\r\n var \r\n // If a reduced set is attached, use it\r\n // Also, remove any unsupported elements.\r\n $reduction = ($obj.reduction || $obj).filter($.validity.settings.elementSupport),\r\n\r\n // Array to store only elements that pass the regimen.\r\n elements = [];\r\n\r\n // For each in the reduction.\r\n $reduction.each(\r\n function() {\r\n // If the element passes the regimen, include it in the reduction.\r\n if (regimen(this)) {\r\n elements.push(this);\r\n }\r\n\r\n // Else give the element an error message.\r\n else {\r\n raiseError(\r\n this,\r\n format(message, {\r\n field:infer(this)\r\n })\r\n );\r\n }\r\n }\r\n );\r\n\r\n // Attach a (potentially) reduced set of only elements that passed.\r\n $obj.reduction = $(elements);\r\n\r\n // Return the full set with attached reduction.\r\n return $obj;\r\n }\r\n\r\n // Inform the report object that there was a failure.\r\n function addToReport() {\r\n if ($.validity.isValidating()) {\r\n $.validity.report.errors++;\r\n $.validity.report.valid = false;\r\n }\r\n }\r\n\r\n // Inform the report of a failure and display an error according to the \r\n // idiom of the current ouutput mode.\r\n function raiseError(obj, msg) {\r\n addToReport();\r\n\r\n $.validity.out.raise($(obj), msg);\r\n }\r\n\r\n // Inform the report of a failure and display an aggregate error according to the \r\n // idiom of the current output mode.\r\n function raiseAggregateError($obj, msg) {\r\n addToReport();\r\n\r\n $.validity.out.raiseAggregate($obj, msg);\r\n }\r\n\r\n // Yield the sum of the values of all fields matched in obj that can be parsed.\r\n function numericSum(obj) {\r\n var accumulator = 0;\r\n obj.each(\r\n function() {\r\n var n = parseFloat(this.value);\r\n\r\n accumulator += isNaN(n) ? 0 : n;\r\n }\r\n );\r\n return accumulator;\r\n }\r\n\r\n // Using the associative array supplied as the 'obj' argument,\r\n // replace tokens of the format #{} in the 'str' argument with\r\n // that key's value.\r\n function format(str, obj) {\r\n for (var p in obj) {\r\n if (obj.hasOwnProperty(p)) {\r\n str = str.replace(\r\n new RegExp(\"#\\\\{\" + p + \"\\\\}\", \"g\"), \r\n obj[p]\r\n );\r\n }\r\n }\r\n return capitalize(str);\r\n }\r\n\r\n // Infer the field name of the passed DOM element.\r\n // If a title is specified, its value is returned.\r\n // Otherwise, attempt to parse a field name out of the id attribute.\r\n // If that doesn't work, return the default field name in the configuration.\r\n function infer(field) {\r\n var \r\n $f = $(field),\r\n id = $f.prop(\"id\"),\r\n ret = $.validity.settings.defaultFieldName;\r\n\r\n // Check for title.\r\n if ($f.prop(\"title\").length) {\r\n ret = $f.prop(\"title\");\r\n }\r\n\r\n // Check for UpperCamelCase.\r\n else if (/^([A-Z0-9][a-z]*)+$/.test(id)) {\r\n ret = id.replace(/([A-Z0-9])[a-z]*/g, \" $&\");\r\n }\r\n\r\n // Check for lowercase_separated_by_underscores\r\n else if (/^[a-z0-9]+(_[a-z0-9]+)*$/.test(id)) {\r\n var arr = id.split(\"_\");\r\n\r\n for (var i = 0; i < arr.length; ++i) {\r\n arr[i] = capitalize(arr[i]);\r\n }\r\n\r\n ret = arr.join(\" \");\r\n }\r\n\r\n return $.trim(ret);\r\n }\r\n\r\n // Capitolize the first character of the string argument.\r\n function capitalize(sz) {\r\n return sz.substring ?\r\n sz.substring(0, 1).toUpperCase() + sz.substring(1, sz.length) :\r\n sz;\r\n }\r\n \r\n __private = { \r\n validate:validate,\r\n addToReport:addToReport,\r\n raiseError:raiseError,\r\n raiseAggregateError:raiseAggregateError,\r\n numericSum:numericSum,\r\n format:format,\r\n infer:infer,\r\n capitalize:capitalize\r\n };\r\n\r\n})(jQuery);// Output modes:\r\n////////////////////////////////////////////////////////////////\r\n\r\n// Each output mode gets its own closure, \r\n// distinct from the validity closure.\r\n\r\n// Install the tooltip output.\r\n(function($) {\r\n $.validity.outputs.tooltip = {\r\n tooltipClass:\"validity-tooltip\",\r\n \r\n start:function() {\r\n $(\".\" + $.validity.outputs.tooltip.tooltipClass)\r\n .remove();\r\n },\r\n \r\n end:function(results) {\r\n /*// If not valid and scrollTo is enabled, scroll the page to the first error.\r\n if (!results.valid && $.validity.settings.scrollTo) {\r\n return;\r\n document.body.scrollTop = $(\".\" + $.validity.outputs.tooltip.tooltipClass)\r\n .offset()\r\n .top;\r\n }*/\r\n },\r\n\r\n raise:function($obj, msg) {\r\n var pos = $obj.offset();\r\n pos.left += $obj.width() + 18;\r\n pos.top += 8;\r\n \r\n $(\r\n \"
\" + \r\n msg +\r\n \"
\" +\r\n \"
\" + \r\n \"
\" +\r\n \"
\"\r\n )\r\n .click(function() {\r\n $obj.focus();\r\n $(this).fadeOut();\r\n })\r\n .css(pos)\r\n .hide()\r\n .appendTo(\"body\")\r\n .fadeIn();\r\n },\r\n\r\n raiseAggregate:function($obj, msg) {\r\n // Just raise the error on the last input.\r\n if ($obj.length) {\r\n this.raise($obj.filter(\":last\"), msg);\r\n }\r\n }\r\n };\r\n})(jQuery);\r\n\r\n\r\n// Install the label output.\r\n(function($) {\r\n function getIdentifier($obj) {\r\n return $obj.attr('id').length ?\r\n $obj.attr('id') :\r\n $obj.attr('name');\r\n }\r\n\r\n $.validity.outputs.label = {\r\n cssClass:\"error\",\r\n \r\n start:function() {\r\n // Remove all the existing error labels.\r\n $(\".\" + $.validity.settings.cssClass)\r\n .remove();\r\n },\r\n \r\n end:function(results) {\r\n // If not valid and scrollTo is enabled, scroll the page to the first error.\r\n if (!results.valid && $.validity.settings.scrollTo) {\r\n location.hash = $(\".\" + $.validity.outputs.label.cssClass + \":eq(0)\").attr('for');\r\n }\r\n },\r\n\r\n raise:function($obj, msg) {\r\n var \r\n labelSelector = \".\" + $.validity.outputs.label.cssClass + \"[for='\" + getIdentifier($obj) + \"']\";\r\n\r\n // If an error label already exists for the bad input just update its text:\r\n if ($(labelSelector).length) {\r\n $(labelSelector).text(msg);\r\n }\r\n\r\n // Otherwize create a new one and stick it after the input:\r\n else {\r\n $(\"