!function t(e,i,r){function n(a,c){if(!i[a]){if(!e[a]){var s="function"==typeof require&&require;if(!c&&s)return s(a,!0);if(o)return o(a,!0);throw new Error("Cannot find module '"+a+"'")}var u=i[a]={exports:{}};e[a][0].call(u.exports,function(t){var i=e[a][1][t];return n(i?i:t)},u,u.exports,t,e,i,r)}return i[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)n(r[a]);return n}({1:[function(t,e,i){var r=t("../src/lib/HelpCenterIntegration");$(document).ready(function(){var t=new r;t.init(document.body)})},{"../src/lib/HelpCenterIntegration":2}],2:[function(t,e,i){var r=t("./Redactor"),n=function(){this.initialized=!1,this.redactor=new r,this.fieldSelector="input.partialcreditcardhiddenfield",this.displaySelector="input.partialcreditcardinputfield",this.formSelector="form.request-form"};n.prototype={init:function(t){this.initialized||($(t).on("blur",this.displaySelector,this.redactField.bind(this)),$(t).on("submit",this.formSelector,this.redactForm.bind(this)),this.initialized=!0)},redactField:function(t){var e=t.target?t.target:t,i=$(e).parent(".form-field"),r=i.children(this.fieldSelector);e.value=this.redactor.redact(e.value),r.val(e.value)},redactForm:function(t){var e=$(t.target),i=null;i=e.is(this.formSelector)?e:e.parents(this.formSelector),$(this.displaySelector,i).each(function(t,e){this.redactField(e)}.bind(this))}},e.exports=n},{"./Redactor":3}],3:[function(t,e,i){var r=function(){this.nonDigitsRegex=/[^\d]/g,this.minLength=13,this.maxLength=19,this.digitsToLeave=4};r.prototype={redact:function(t){var e=this.removeNonDigits(t);if(!this.validLength(e))return t;var i=e.length,r=i-4,n=e.substring(r,i);return this.charRepeater("X",r)+n},validLength:function(t){return t.length>=this.minLength&&t.length<=this.maxLength},removeNonDigits:function(t){return t.replace(this.nonDigitsRegex,"")},charRepeater:function(t,e){for(var i=[],r=0;e>r;r++)i.push(t);return i.join("")}},e.exports=r},{}]},{},[1]);