!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.cwc=n():(e.api=e.api||{},e.api.cwc=n())}(this,function(){return function(e){function n(i){if(t[i])return t[i].exports;var s=t[i]={i:i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}var t={};return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n(n.s=196)}([function(e,n,t){"use strict";function i(e){t.i(o.a)(l,e,9999,!1,t.i(o.b)(window.location)),t.i(o.c)(e,9999)}function s(e){t.i(o.a)(l,e,-1,!1,t.i(o.b)(window.location)),t.i(o.c)(e,-1)}function a(){return"fr"===document.querySelector("html").getAttribute("lang")?"fr":"en"}function r(){return t.i(o.d)(l)}t.d(n,"a",function(){return i}),t.d(n,"c",function(){return s}),t.d(n,"d",function(){return a}),t.d(n,"b",function(){return r});var o=t(5),l="LANG"},function(e,n,t){"use strict";n.a={mobileUpperBound:640,tabletUpperBound:1024,smallDesktopUpperBound:1440,events:{addEventListener:"addEventListener",removeEventListener:"removeEventListener",mouseEnter:"mouseenter",mouseLeave:"mouseleave",mouseOver:"mouseover",click:"click",focus:"focus",blur:"blur",resize:"resize",keypress:"keypress",focusOut:"focusout"},cwc:{componentClassName:"cpc-component"},false:"false",true:"true",a11y:{ariaLabel:"aria-label",ariaRole:"aria-role"}}},function(e,n,t){"use strict";function i(e,n){r[e]=n}function s(e){return r[e]}function a(){return s(o.cwc)}t.d(n,"a",function(){return i}),t.d(n,"c",function(){return s}),t.d(n,"b",function(){return o}),t.d(n,"d",function(){return a});var r=[],o={cwc:"cwc",nav:"nav",banner:"banner"}},function(e,n,t){"use strict";var i=/localhost/i,s={getSSOGroup:function(){return this.getIsAuthenticated()?document.head.querySelector("[name=sso-groups]").content:"Unauthenticated"},getSSOToken:function(){return document.head.querySelector("[name=sso-token]").content},getAccountGroup:function(){return this.getIsAuthenticated()&&document.head.querySelector("[name=account-group]")?document.head.querySelector("[name=account-group]").content:""},getCSRFToken:function(){return this.getIsAuthenticated()&&this.getSSOToken()?window.btoa(this.getSSOToken()):""},getSSOUserName:function(){return document.head.querySelector("[name=sso-username]").content},getIsAuthenticated:function(){return!!document.head.querySelector("[name=sso-token]")&&!!document.head.querySelector("[name=sso-token]").content&&"Unauthenticated"!==this.getSSOUserName()},getHostURL:function(){var e=window.location.host;switch(!0){case i.test(e):return"https://dev10.canadapost.ca";default:return window.location.href}},getDomain:function(){var e=window.location.host;switch(!0){case i.test(e):return"https://dev10.canadapost.ca";default:return window.location.protocol+"//"+e}},getSSODomain:function(){var e=window.location.host;switch(!0){case i.test(e):case/dev10/.test(e):case/dev11/.test(e):return"https://dev001-sso.epost.ca";case/dev12/.test(e):return"https://dev002-sso.epost.ca";case/dev13/.test(e):return"https://dev003-sso.epost.ca";case/stg10/.test(e):case/stg11/.test(e):return"https://stg001-sso.epost.ca";case/stg12/.test(e):return"https://stg002-sso.epost.ca";case/stg13/.test(e):return"https://stg003-sso.epost.ca";case/stg14/.test(e):return"https://stg004-sso.epost.ca";default:return"https://sso.epost.ca"}},getEpostDomain:function(){var e=window.location.host;switch(!0){case i.test(e):case/dev10/.test(e):case/dev11/.test(e):return"dev001-www.";case/dev12/.test(e):return"dev002-www.";case/dev13/.test(e):return"dev003-www.";case/stg10/.test(e):case/stg11/.test(e):return"stg001-www.";case/stg12/.test(e):return"stg002-www.";case/stg13/.test(e):return"stg003-www.";case/stg14/.test(e):return"stg004-www.";default:return"www."}},getESTSubdomain:function(){var e=window.location.hostname;if(i.test(e))return"stg12.";var n=e.split(".");return"www"===n[0]?"":n[0]+"."},getLogoutLink:function(){return this.getDomain()+"/pkmslogout?token="+this.getSSOToken()}};n.a=s},function(e,n,t){"use strict";function i(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function s(){return/^est\./i.test(this.url.hostname)}function a(){return/\.epost\.ca/i.test(this.url.hostname)}function r(e){var n=o(e);return{sso:"www",stg004:"stg14",stg003:"stg13",stg002:"stg12",stg001:"stg10",dev003:"dev13",dev002:"dev12",dev001:"dev10"}[p.test(n.hostname)?u.www:n.hostname.split(".")[0].replace("-sso","").replace("-www","")]||u.www}function o(e){return c.href=e,c}var l=function(){function e(e,n){for(var t=0;t0){var n=document.cookie.indexOf(e+"=");if(-1!==n){n=n+e.length+1;var t=document.cookie.indexOf(";",n);return-1===t&&(t=document.cookie.length),unescape(document.cookie.substring(n,t))}}return""}t.d(n,"a",function(){return r}),t.d(n,"d",function(){return o}),t.d(n,"b",function(){return i}),t.d(n,"c",function(){return a})},function(e,n,t){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{logoAltText:"Canada Post/Postes Canada",personalTab:"Personal",businessTab:"Business",myAccountTab:"My Account",businessOverview:"Learn about business services",personalOverview:"Learn about personal services",signInHeader:"Access your account",signInButton:"Sign in",welcome:"Welcome",signOut:"Sign out",username:"Username",rememberUsername:"Remember my username on this device",password:"Password",forgot:"Forgot",forgotPasswordUsernameLabel:"Username",forgotPasswordPasswordLabel:"Password",or:"or",backLabel:"Back",createAccount:"Register online",signUpText:"Create an online account in a few easy steps!",signUp:"Register now",dashboard:"Dashboard",myprofile:"My Profile",orders:"Orders",tools:"Tools",shop:"Shop",aboutUs:"About Us",support:"Support",mysupport:"My Support",lang_toggle:"Français",searchLabel:"Search",searchText:"Search our website",searchAriaLabel:"Search products, related articles and support topics",searchErrorText:"Please enter a topic. Examples: send packages, change my address",closeLabel:"Close",cartLabel:"Cart",cartURL:"/shop/personal/basket.jsf?LOCALE=en",mainNavigationAriaLabel:"Main navigation",productionNavigationAriaLabel:"Product navigation",menu:"Menu",nodes:[{labelId:"QuickLinks",label:"Are you looking for...",nodes:[{label:"How to report a problem?",description:"How to report a problem?",link:e.cpDomain+"/web/en/pages/support/default.page#panel2-1"},{label:"How to ship a parcel?",description:"How to ship a parcel?",link:e.cpDomain+"/cpotools/apps/far/business/findARate"},{label:"A missing postal code?",description:"A missing postal code?",link:e.cpDomain+"/cpo/mc/personal/postalcode/fpc.jsf"},{label:"How to send flyers to customers?",description:"How to send flyers to customers?",link:e.cpDomain+"/cpc/en/business/marketing/campaign.page"},{label:"How to track a parcel?",description:"How to track a parcel?",link:e.cpDomain+"/trackweb/en"}]}],gdpr_cookie_banner_title:"Cookies on the Canada Post website",gdpr_cookie_banner_policy:"We've placed cookies on your device to improve your browsing experience. They're safe and don't contain sensitive information. If you want, you can change your cookies through your browser settings. If you continue without changing your settings, we'll assume you're ok to receive all cookies on the Canada Post website. For more information view our privacy policy.',gdpr_cookie_banner_btn_text:"I understand",gdpr_cookie_banner_btn_alt:"Click button called I understand to delete the cookies message"}}n.a=i},function(e,n,t){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{logoAltText:"Canada Post/Postes Canada",personalTab:"Personnel",businessTab:"Entreprise",myAccountTab:"Mon compte",businessOverview:"Découvrir les services aux entreprises",personalOverview:"Découvrir les services personnels",signInHeader:"Accédez á votre compte",signInButton:"Ouvrir une session",welcome:"Bienvenue",signOut:"Fermer la session",username:"Nom d'utilisateur",rememberUsername:"Mémoriser mes coordonnées",password:"Mot de passe",forgot:"Oublié votre",forgotPasswordUsernameLabel:"nom d'utilisateur",forgotPasswordPasswordLabel:"mot de passe",or:"ou",backLabel:"Retour",createAccount:"Ouvrir un compte",signUpText:"Créez un compte en ligne en quelques étapes faciles!",signUp:"Ouvrir un compte",dashboard:"Tableau de bord",myprofile:"Mon profil",orders:"Commandes",tools:"Outils",shop:"Magasiner",aboutUs:"À notre sujet",support:"Soutien",mysupport:"Mon soutien",lang_toggle:"English",searchLabel:"Recherche",searchText:"Recherchez notre site Web",searchAriaLabel:"Cherchez ici : produits, articles connexes et rubriques d'aide",searchErrorText:"Veuillez saisir un sujet. Par exemple, envoyer un colis, acheminer mon courrier",closeLabel:"Fermer",cartLabel:"Panier",cartURL:"/shop/personal/basket.jsf?LOCALE=fr",mainNavigationAriaLabel:"Navigation principale",productionNavigationAriaLabel:"Navigation du produit",menu:"Menu",nodes:[{labelId:"QuickLinks",label:"Cherchez-vous...",nodes:[{label:"Comment signaler un problème?",description:"Comment signaler un problème?",link:e.cpDomain+"/web/fr/pages/support/default.page#panel2-1"},{label:"Comment envoyer un colis?",description:"Comment envoyer un colis?",link:e.cpDomain+"/cpotools/apps/far/business/findARate"},{label:"Un code postal manquant?",description:"Un code postal manquant?",link:e.cpDomain+"/cpo/mc/personal/postalcode/fpc.jsf"},{label:"Comment envoyer des circulaires aux clients?",description:"Comment envoyer des circulaires aux clients?",link:e.cpDomain+"/cpc/fr/business/marketing/campaign.page"},{label:"Comment repérer un colis?",description:"Comment repérer un colis?",link:e.cpDomain+"/trackweb/fr"}]}],gdpr_cookie_banner_title:"Site Web de Postes Canada et témoins",gdpr_cookie_banner_policy:'Des témoins sont enregistrés sur votre appareil pour améliorer votre expérience de navigation. Ils sont sécuritaires et ne contiennent pas de renseignements confidentiels. Au besoin, vous pouvez modifier les témoins dans les paramètres de votre navigateur. Si vous continuez sans changer vos paramètres, nous supposerons que vous acceptez tous les témoins du site Web de Postes Canada. Pour en savoir plus, consultez notre politique sur la protection des renseignements personnels.',gdpr_cookie_banner_btn_text:"Je comprends",gdpr_cookie_banner_btn_alt:"Cliquez sur le bouton « Je comprends » pour supprimer le message sur les témoins."}}n.a=i},function(e,n,t){"use strict";function i(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}var s=t(30),a=t(89),r=function(){function e(e,n){for(var t=0;t

'+this.options.title+'

\n '):this.modal.setContent('\n
\n '),this.modal.modalBoxContent.appendChild(n),this}},{key:"setMobileCloseBtnFromDOM",value:function(e){var n=document.createDocumentFragment();return Array.prototype.slice.call(e.childNodes).forEach(function(e){n.appendChild(e.cloneNode(!0))}),this.modal.modalCloseBtn.replaceWith(n),this}},{key:"setFooterFromDOM",value:function(e){var n=document.createDocumentFragment();return Array.prototype.slice.call(e.childNodes).forEach(function(e){n.appendChild(e.cloneNode(!0))}),this.modal.modalBoxFooter.appendChild(n),this}},{key:"setContent",value:function(e){return e=""!==this.options.title?'\n

'+this.options.title+'

\n '+e+"\n ":'\n
\n '+e+"\n ",this.modal.setContent(e),this}},{key:"open",value:function(){return this.modal.open(),this}},{key:"close",value:function(){this.lastInput.removeEventListener("keydown",this.events.tabHandlerRef),this.firstInput.removeEventListener("keydown",this.events.shiftTabHandlerRef),this.modal.close()}},{key:"addFooterBtn",value:function(e,n,t){return this.modal.addFooterBtn(e,n,t),this}}],[{key:"ensureControlFocusHandlers",value:function(){s.a.focusHandler()}}]),e}();window.cpc.Modal=c,n.a=c},function(e,n,t){"use strict";function i(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function s(e){var n=r(e);e.target&&e.target.setAttribute("data-activated-via",n?"keyboard":"mouse")}function a(e){e.target&&e.target.removeAttribute("data-activated-via")}function r(e){return!e.detail&&(!e.pointerType||e.pointerType&&!e.pointerType)||6===e.mozInputSource}var o=function(){function e(e,n){for(var t=0;t\n '+e.leftAreaCopy+'\n \n \n
\n
\n \n \n
\n
\n \n \n \n

'+e.forgot+'\n '+e.fpUsername+"? "+e.or+' '+e.fpPassword+'?\n

\n \n \n '+e.footnoteDesktop+"\n \n"}},function(e,n,t){"use strict";var i=(t(28),t(29),t(27));t.d(n,"a",function(){return i.a}),t.d(n,"c",function(){return i.b}),t.d(n,"b",function(){return i.c})},function(e,n,t){"use strict";var i=t(79);t.d(n,"a",function(){return i.a}),t.d(n,"b",function(){return i.b}),t.d(n,"c",function(){return i.c})},,function(e,n,t){var i;/*! * getSize v2.0.2 * measure size of elements * MIT license */ !function(s,a){"use strict";void 0!==(i=function(){return a()}.call(n,t,n,e))&&(e.exports=i)}(window,function(){"use strict";function e(e){var n=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(n)&&n}function n(){}function t(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},n=0;n