PageSourceSearch

https://assets.prod.getmaple.ca/v4.860.0-hotfix-1790172684415/build/js/scripts-350e621611.js

js getmaple.ca collected 2026-09-24 08:51:24 UTC 11,494 bytes, 1 lines download raw bytes

1function checkCookie(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=document.cookie.indexOf("testcookie")!=-1),!!e||showCookieFail()}function createCookie(e,t,o,a){var s,r;o?(s=new Date,s.setTime(s.getTime()+24*o*60*60*1e3),r="; expires="+s.toGMTString()):r="","undefined"!=typeof a&&(a="domain="+a+";"),document.cookie=e+"="+t+r+";"+a+"path=/"}function showCookieFail(){$("body").prepend('<div class="alert alert-warning text-center">Maple uses cookies to authenticate you securely. Please enabled cookies in your web browser settings.</div>')}function getCookie(e){var t="; "+document.cookie,o=t.split("; "+e+"=");if(2==o.length)return o.pop().split(";").shift()}function focusOnAlert(){$(".flash-container, .blade-notification").is(":visible")&&$(".notification-element").first().focus()}var locale=window.MAPLE_LANGUAGE||"en",localeDateFormat="mm/dd/yyyy",localeDateTimeFormat="mm/dd/yyyy HH:MM",dobMaskTranslations={en:{placeholder:"mm/dd/yyyy"},fr:{placeholder:"mm/jj/aaaa"}},placeholder=dobMaskTranslations[locale].placeholder;window.initDOBMask=function(){$(".js-dob-mask").attr("placeholder",placeholder).inputmask({alias:"datetime",inputFormat:localeDateFormat,outputFormat:"yyyy-mm-dd",placeholder:placeholder})},window.initPhoneMask=function(){$(".phone, .partnercode").inputmask({removeMaskOnSubmit:!0,postValidation:!1})},window.initPwStrengthMeter=function(e){e&&$.pwStrength.init()},$(function(){function e(e,t){if(e.length<3)return $("#check_credit_code_wrapper").removeClass("has-error").removeClass("has-success"),void $("#credit_code_result").html("");$("#credit_code_result").html("checking...");var o=t?"/api/credits/validateCode/reg":"/api/credits/validateCode";$.post(o,{code:e},function(e){e.error?($("#credit_code_result").addClass("text-danger").removeClass("text-success").html(e.message),$("#credit_code_submit").addClass("text-danger").prop("disabled",!0),$("#check_credit_code_wrapper").addClass("has-error").removeClass("has-success")):($("#credit_code_result").addClass("text-success").removeClass("text-danger").html(e.message),$("#credit_code_submit").prop("disabled",!1),$("#check_credit_code_wrapper").addClass("has-success").removeClass("has-error"))})}const t="/api/user/settings";var o=document.querySelector("#token").getAttribute("value"),a=$({}),s=$("[data-is-strong-password]").data("is-strong-password");checkCookie(),$('[data-toggle="tooltip"]').tooltip(),$('[data-toggle="popover"]').popover().off("click touchend shown.bs.popover hidden.bs.popover").on("click touchend",function(e){e.preventDefault();var t=$(this),o=t.attr("is-popover-open");return t.focus(),"true"===o?t.popover("hide"):t.is(":focus")?t.popover("toggle"):void 0}).on("shown.bs.popover",function(){$(this).attr({"is-popover-open":!0})}).on("hidden.bs.popover",function(){$(this).attr({"is-popover-open":!1})}),focusOnAlert();const r=window.location.href.indexOf("admin")>-1?4e3:6e4;setTimeout(function(){$(".flash-container, .blade-notification").fadeOut("slow")},r),$(document).off("keydown").on("keydown",function(e){"Escape"!==e.key&&"Esc"!==e.key||!$(".flash-container, .blade-notification").is(":visible")||$(".flash-container, .blade-notification").fadeOut("slow")}),window.initPhoneMask(),window.initDOBMask(),window.initPwStrengthMeter(s),$.ajaxQueue=function(e){var t=e.complete;a.queue(function(o){e.complete=function(){t&&t.apply(this,arguments),o()},$.ajax(e)})},$(".js-datetime-mask").attr("placeholder",localeDateTimeFormat).inputmask({alias:"datetime",inputFormat:localeDateTimeFormat,outputFormat:"yyyy-mm-dd HH:MM:ss",placeholder:localeDateTimeFormat}),$(".js-inputmask").inputmask({removeMaskOnSubmit:!0});var n=$("[data-toggle-password-visibility]");n.on("click",function(e){e.preventDefault();var t=$(this),o=t.data("toggle-password-visibility"),a=$("#"+o);"password"===a.attr("type")?(a.attr("type","text"),t.removeClass("icon-eye-crossed").addClass("icon-eye")):(a.attr("type","password"),t.removeClass("icon-eye").addClass("icon-eye-crossed"))}),$(".js-password-strength").on("focus",function(){$(this).next(".progress").css("opacity",1)}),$(".js-password-strength").on("blur",function(){$(this).val()||($(this).next(".progress").css("opacity",0),$(".js-password-strength-rules").hide())}),$(".password-form #password_confirmation, #password").on("keyup",function(){s&&$.pwStrength.setRuleListItems();var e={en:{passwords_match:"Passwords match!",passwords_dont_match:"Passwords don't match"},fr:{passwords_match:"Les mots de passe correspondent",passwords_dont_match:"Les mots de passe correspondent"}},t=e[locale].passwords_match,o=e[locale].passwords_dont_match,a=$(".password-form #password").val(),r=$(".password-form #password_confirmation").val();r&&a===r?$("#pass2wrapper .progress").html('<div class="progress-bar progress-bar-success" style="width: 100%;"><span class="password-verdict">'+t+"</span></div>"):r?$("#pass2wrapper .progress").html('<div class="progress-bar  progress-bar-danger" style="width: 100%;"><span class="password-verdict">'+o+"</span></div>"):$("#pass2wrapper .progress").html("")}),$(".birthday").combodate({firstItem:"name",customClass:"form-control",template:"MMM D YYYY",format:"YYYY-MM-DD",smartDays:!0,maxYear:moment().subtract(17,"year").format("YYYY"),minYear:moment().subtract(150,"year").format("YYYY")}),$(".combodate_field").combodate({firstItem:"name",customClass:"form-control",template:"MMM D YYYY",format:"YYYY-MM-DD",smartDays:!0,maxYear:moment().add(10,"year").format("YYYY")}
1),$(".js-combodate").combodate({firstItem:"name",customClass:"form-control",smartDays:!0}),$(".js-combodate-en").combodate({firstItem:"name",customClass:"form-control",smartDays:!0,labelMap:{day:"Day",month:"Month",year:"Year"}}),$("#issue").on("change",function(){"Medical help"===this.value?($("#message-alert").removeClass("hidden"),$("#message-field").addClass("hidden"),$("#submit-feedback").prop("disabled",!0)):($("#message-alert").addClass("hidden"),$("#message-field").removeClass("hidden"),$("#submit-feedback").prop("disabled",!1))}),$("#videoWarningModal .tour-dismiss").click(function(){$.ajax({url:t,type:"POST",cache:!1,dataType:"JSON",data:{name:"hide_video_warning",value:!0,_token:o},success:function(e){},error:function(e){}})}),$("#tourModal .tour-dismiss").click(function(){$.ajax({url:t,type:"POST",cache:!1,dataType:"JSON",data:{name:"hide_tour",value:!0,_token:o},success:function(e){},error:function(e){}})}),$("#account-tabs ul.nav > li > a").on("shown.bs.tab",function(e){var t=$(e.target).attr("href").substr(1);window.location.hash=t});var i=window.location.hash;$('#account-tabs a[href="'+i+'"]').tab("show");var c=function(e,a){return $.ajax({url:t,type:"POST",cache:!1,dataType:"JSON",data:{name:e,value:a,_token:o}})};$(".setting").change(function(){c($(this).data("setting"),$(this).prop("checked"))}),$(".js-communication-lang").on("change",function(){c("communications_language",$(this).val())}),$(".js-lang-switch").on("change",function(e){var t=$(this),o=$(".js-choose-lang-error"),a=$(".js-update-lang-error"),s=t.is(":checked");if($("[data-is-provider]").data("is-provider")!==!0){var r=function(){return $(".js-lang-switch:checked").length>0};if(!s&&!r())return o.show(),t.prop("checked",!0),!1;o.hide()}$.ajaxQueue({url:"/api/user/updateLanguage",type:"POST",cache:!1,dataType:"JSON",data:{language_id:t.val(),checked:s},success:function(){return a.hide(),!0},error:function(){return a.show(),t.prop("checked",!s),!1}})}),$(".js-interface-lang").on("change",function(){createCookie("locale",$(this).val(),void 0,window.LOCALE_COOKIE_DOMAIN),window.location.reload()});var d;$("#check_credit_code").keyup(function(t){var o=!!$(this).data("reg");clearTimeout(d);var a=$(this).val();d=setTimeout(function(){e(a,o)},1e3)}),$("#check_credit_code").trigger("keyup"),$.fn.intlTelInput.loadUtils(window.VERSIONED_ASSET_URL+"/build/js/intl-tel-input/utils.js"),$(".js-phone").each(function(){var e=$
1(this),t=e.prev(".js-country-iso"),o=function(e){var t=e.attr("placeholder");if("undefined"!=typeof t){var o=t.replace(/[0-9+]/gi,"9");e.inputmask({mask:o,autoUnmask:!0})}};e.intlTelInput({preferredCountries:["ca","us","gb"],separateDialCode:!0,initialCountry:e.data("initial-country")||"auto",geoIpLookup:function(e){$.get("https://ipinfo.io",function(){},"jsonp").always(function(t){var o=t&&t.country?t.country:"ca";e(o)})}}).done(function(){setTimeout(function(){o(e)},300)}),e.on("blur",function(){var t=e.intlTelInput("getValidationError");e.intlTelInput("isValidNumber")||t===intlTelInputUtils.validationError.IS_POSSIBLE?e.parent(".intl-tel-input").next(".errors").hide():e.parent(".intl-tel-input").next(".errors").show()}),e.on("countrychange",function(a,s){t.val(s.iso2),o(e)})}),$(".js-confirm-before-submit").on("submit",function(e){e.preventDefault();var t=$(this).data("alert")||"Are you sure?";confirm(t)&&this.submit()}),$(".js-min-length").on("input",function(e){var t=$(this).attr("minlength"),o=$(this).val().length;o<t?$(".js-min-length-count").text(t-o):$(".js-min-length-count").text("0")})}),$.pwStrength={},function(){function e(){return Object.keys(m.activated).filter(function(e){return m.activated[e]===!0})}function t(e){return n.pwstrength("ruleIsMet",e)}function o(){var o=[];e().forEach(function(e){var a='<i class="glyphicon glyphicon-ok"></i>';t(e)||(a='<i class="glyphicon glyphicon-remove"></i>',o.push(p[u][e]));var s=$("<li>",{id:e}).append(a+" "+p[u][e]),r=$("#"+e);r.length?r.replaceWith(s):$("."+c).append(s)}),a(o)}function a(e){var t=$(".password-verdict"),o=t.text()||p[u].veryWeak;e.length&&(o+=". "+p[u].pleaseAdd+e.toString()),$(".unmet-rules-sr").text(o)}function s(e,t,o){return t.length>=10&&(o+=12.5),o<50?(i.is(":hidden")&&i.show(),25):(i.is(":visible")&&i.hide(),o)}function r(){var e=$("<ul>",{"class":c}),t=$("<div>",{"class":"maple-sr-only "+d,"aria-live":"polite"}).append('<p class="unmet-rules-sr"></p>');i.append(e),i.after(t),o()}var n=$("input.js-password-strength:password"),i=$(".js-password-strength-rules"),c="js-password-strength-rules-list",d="js-password-strength-rules-sr",l=i.hasClass("short"),u=window.MAPLE_LANGUAGE||"en",p={en:{pleaseAdd:"Please add ",wordOneNumber:"1 number",wordOneSpecialChar:"1 special character",wordUppercase:"1 uppercase letter",wordMinLength:"10 characters long",veryStrong:l?"Secure!":"Your password is secure",veryWeak:l?"Weak":"Your password is weak"},fr:{pleaseAdd:"Veuillez ajouter ",wordOneNumber:"1 chiffre",wordOneSpecialChar:"1 caractère spécial",wordUppercase:"1 lettre majuscule",wordMinLength:"10 caractères de long",veryStrong:l?"Sécurise!":"Votre mot de passe est sécurisé!",veryWeak:l?"Faible":"Votre mot de passe est faible"}},m={raisePower:0,scores:{wordOneNumber:12.5,wordOneSpecialChar:12.5,wordUppercase:12.5,wordMinLength:-1},activated:{wordOneNumber:!0,wordOneSpecialChar:!0,wordUppercase:!0,wordMinLength:!0,wordInvalidChar:!1,wordLetterNumberCharCombo:!1,wordLetterNumberCombo:!1,wordLowercase:!1,wordMaxLength:!1,wordNotEmail:!1,wordRepetitions:!1,wordSequences:!1,wordSimilarToUsername:!1,wordThreeNumbers:!1,wordTwoCharacterClasses:!1,wordTwoSpecialChar:!1,wordUpperLowerCombo:!1}},h={rules:m,common:{minChar:10,onLoad:r,onScore:s},ui:{showVerdictsInsideProgressBar:!0,progressBarEmptyPercentage:0,progressBarMinPercentage:25,showProgressBar:!0,score:[0,25,50]},i18n:{t:function(e){return p[u][e]||p[u].veryWeak}}};return $.pwStrength={init:function(){n.pwstrength(h)},setRuleListItems:o}}();

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.