1function IsMfaPhoneSetup(e){return e.closest("#PhoneTwoFactorSetup").length>0}function GetMfaInternationalTooltipText(){return"For security reasons, we don't support SMS to international numbers. Please use an authenticator app to receive your verification codes."}function IsInternational(e){return""!=e.val()&&(e.hasClass("phone")?!new RegExp("^\\(\\d{3}\\)\\d{3}-\\d{4}"+(e.data("phone-extension")?"( x[\\s]?\\d{1,7})?":"")+"$").test(e.val()):void 0)}function GetMaskToggleText(e){return e?"USA/Canada?":"International?"}function SetMask(e){e.hasClass("phone")&&(e.mask("(999)999-9999"+(e.data("phone-extension")?"? x9999999":"")).blur((function(){$(this).valid()})),e.data("phone-extension")&&e.on("input",(function(t){setTimeout((function(){var t=e.val();t&&-1!==t.indexOf("_",t.length-1)&&e.blur()}),20)}))),e.on("paste",(function(t){var n="";window.clipboardData&&window.clipboardData.getData?n=window.clipboardData.getData("Text"):t.originalEvent.clipboardData&&t.originalEvent.clipboardData.getData&&(n=t.originalEvent.clipboardData.getData("text/plain")),e.val(n),t.preventDefault()}))}function SetupMaskedInput(e){var t=e.closest(".for-phone").find('[id*="IsInternational"]'),n=!1;if((n=IsMfaPhoneSetup(e)?IsInternational(e):t.length?t.val()&&"true"===t.val().toString().toLowerCase():IsInternational(e))||SetMask(e),e.hasClass("phone")&&0==e.prev(".masked-toggle").length)if(IsMfaPhoneSetup(e)){var a=GetMfaInternationalTooltipText();e.before('<a class="masked-toggle'+(n?"":" on")+'" href="javascript:void(0);" title="'+a+'" aria-label="'+a+'">'+GetMaskToggleText(n)+"</a>")}else e.before('<a class="masked-toggle'+(n?"":" on")+'" href="javascript:void(0);" aria-live="polite" aria-label="Phone format is '+GetMaskToggleText(n)+'">'+GetMaskToggleText(n)+"</a>")}!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}((function(e){var t,n=navigator.userAgent,a=/iphone/i.test(n),o=/chrome/i.test(n),i=/android/i.test(n);e.mask={definitions:{9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},autoclear:!0,dataName:"rawMaskFn",placeholder:"_"},e.fn.extend({caret:function(e,t){var n;if(0!==this.length&&!this.is(":hidden"))return"number"==typeof e?(t="number"==typeof t?t:e,this.each((function(){this.setSelectionRange?this.setSelectionRange(e,t):this.createTextRange&&((n=this.createTextRange()).collapse(!0),n.moveEnd("character",t),n.moveStart("character",e),n.select())}))):(this[0].setSelectionRange?(e=this[0].selectionStart,t=this[0].selectionEnd):document.selection&&document.selection.createRange&&(n=document.selection.createRange(),e=0-n.duplicate().moveStart("character",-1e5),t=e+n.text.length),{begin:e,end:t})},unmask:function(){return this.trigger("unmask")},mask:function(n,r){var s,l,c,u,f,g,h;if(!n&&this.length>0){var d=e(this[0]).data(e.mask.dataName);return d?d():void 0}return r=e.extend({autoclear:e.mask.autoclear,placeholder:e.mask.placeholder,completed:null},r),s=e.mask.definitions,l=[],c=g=n.length,u=null,e.each(n.split(""),(function(e,t){"?"==t?(g--,c=e):s[t]?(l.push(new RegExp(s[t])),null===u&&(u=l.length-1),c>e&&(f=l.length-1)):l.push(null)})),this.trigger("unmask").each((function(){function d(){if(r.completed){for(var e=u;f>=e;e++)if(l[e]&&S[e]===p(e))return;r.completed.call(y)}}function p(e){return r.placeholder.charAt(e<r.placeholder.length?e:0)}function m(e){for(;++e<g&&!l[e];);return e}function v(e,t){var n,a;if(!(0>e)){for(n=e,a=m(t);g>n;n++)if(l[n]){if(!(g>a&&l[n].test(S[a])))break;S[n]=S[a],S[a]=p(a),a=m(a)}x(),y.caret(Math.max(u,e))}}function k(){T(),y.val()!=I&&y.change()}function b(e,t){var n;for(n=e;t>n&&g>n;n++)l[n]&&(S[n]=p(n))}function x(){y.val(S.join(""))}function T(e){var t,n,a,o=y.val(),i=-1;for(t=0,a=0;g>t;t++)if(l[t]){for(S[t]=p(t);a++<o.length;)if(n=o.charAt(a-1),l[t].test(n)){S[t]=n,i=t;break}if(a>o.length){b(t+1,g);break}}else S[t]===o.charAt(a)&&a++,c>t&&(i=t);return e?x():c>i+1?r.autoclear||S.join("")===M?(y.val()&&y.val(""),b(0,g)):x():(x(),y.val(y.val().substring(0,i+1))),c?t:u}var y=e(this),S=e.map(n.split(""),(function(e,t){return"?"!=e?s[e]?p(t):e:void 0})),M=S.join(""),I=y.val();y.data(e.mask.dataName,(function(){return e.map(S,(function(e,t){return l[t]&&e!=p(t)?e:null})).join("")})),y.one("unmask",(function(){y.off(".mask").removeData(e.mask.dataName)})).on("focus.mask",(function(){var e;y.prop("readonly")||(clearTimeout(t),I=y.val(),e=T(),t=setTimeout((function(){y.get(0)===document.activeElement&&(x(),e==n.replace("?","").length?y.caret(0,e):y.caret(e))}),10))})).on("blur.mask",k).on("keydown.mask",(function(e){if(!y.prop("readonly")){var t,n,o,i=e.which||e.keyCode;h=y.val(),8===i||46===i||a&&127===i?(n=(t=y.caret()).begin,(o=t.end)-n==0&&(n=46!==i?function(e){for(;--e>=0&&!l[e];);return e}(n):o=m(n-1),o=46===i?m(o):o),b(n,o),v(n,o-1),e.preventDefault()):13===i?k.call(this,e):27===i&&(y.val(I),y.caret(0,T()),e.preventDefault())}})).on("keypress.mask",(function(t){if(!y.prop("readonly")){var n,a,o,r=t.which||t.keyCode,s=y.caret();if(!(t.ctrlKey||t.altKey||t.metaKey||32>r)&&r&&13!==r){if(s.end-s.begin!=0&&(b(s.begin,s.end),v(s.begin,s.end-1)),n=m(s.begin-1),g>n&&(a=String.fromCharCode(r),l[n].test(a))){if(function(e){var t,n,a,o;for(t=e,n=p(e);g>t;t++)if(l[t]){if(a=m(t),o=S[t],S[t]=n,!(g>a&&l[a].test(o)))break;n=o}}(n),S[n]=a,x(),o=m(n),i){setTimeout((function(){e.proxy(e.fn.caret,
1y,o)()}),0)}else y.caret(o);s.begin<=f&&d()}t.preventDefault()}}})).on("input.mask paste.mask",(function(){y.prop("readonly")||setTimeout((function(){var e=T(!0);y.caret(e),d()}),0)})),o&&i&&y.off("input.mask").on("input.mask",(function(){var e=y.val(),t=y.caret();if(h&&h.length&&h.length>e.length){for(T(!0);t.begin>0&&!l[t.begin-1];)t.begin--;if(0===t.begin)for(;t.begin<u&&!l[t.begin];)t.begin++;y.caret(t.begin,t.begin)}else{for(T(!0);t.begin<g&&!l[t.begin];)t.begin++;y.caret(t.begin,t.begin)}d()})),T()}))}})})),$((function(){$(".masked").each((function(){SetupMaskedInput($(this))})),$(document).on("click",".masked-toggle",(function(e){var t=$(e.target);(t.is("[href]")||(t=t.closest("[href]")),t.closest("#PhoneTwoFactorSetup").length)?e.preventDefault():(t.hasClass("on")?t.next(".masked").unmask():SetMask(t.next(".masked")),t.toggleClass("on"),t.html(GetMaskToggleText(!t.hasClass("on"))),t.attr("aria-label","Phone format is "+GetMaskToggleText(!t.hasClass("on"))),t.closest(".for-phone").find('[id*="IsInternational"]').val(t.hasClass("on")?"False":"True").trigger("change"))}))})); 2//# sourceMappingURL=masked-input-bundle.js.map
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.