@uportal/eyebrow-user-info
Advanced tools
Comparing version 1.35.0 to 1.36.0
module.exports = { | ||
presets: ['@babel/preset-env'], | ||
plugins: [['@babel/plugin-transform-runtime', { useESModules: true }]] | ||
plugins: [['@babel/plugin-transform-runtime', { useESModules: true }]], | ||
}; |
@@ -1,2 +0,2 @@ | ||
(function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},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,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="5a74")})({"24fb":function(e,t,n){"use strict";function r(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"===typeof btoa){var i=o(r),a=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(a).concat([i]).join("\n")}return[n].join("\n")}function o(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(n," */")}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=r(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"===typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);r&&o[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},"257e":function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.r(t),n.d(t,"default",(function(){return r}))},"262e":function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return o}));var r=n("b380");function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Object(r["a"])(e,t)}},"35d6":function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o],a=i[0],s=i[1],l=i[2],c=i[3],u={id:e+":"+o,css:s,media:l,sourceMap:c};r[a]?r[a].parts.push(u):n.push(r[a]={id:a,parts:[u]})}return n}function o(e,t,n){var o=r(e,t);i(o,n)}function i(e,t){const n=t._injectedStyles||(t._injectedStyles={});for(var r=0;r<e.length;r++){var o=e[r],i=n[o.id];if(!i){for(var a=0;a<o.parts.length;a++)s(o.parts[a],t);n[o.id]=!0}}}function a(e){var t=document.createElement("style");return t.type="text/css",e.appendChild(t),t}function s(e,t){var n=a(t),r=e.css,o=e.media,i=e.sourceMap;if(o&&n.setAttribute("media",o),i&&(r+="\n/*# sourceURL="+i.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),n.styleSheet)n.styleSheet.cssText=r;else{while(n.firstChild)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(r))}}n.r(t),n.d(t,"default",(function(){return o}))},"3edb":function(e,t,n){"use strict";n.r(t);var r=n("95bb"),o=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t["default"]=o.a},"4ea4":function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}e.exports=n},"5a74":function(e,t,n){"use strict";if(n.r(t),"undefined"!==typeof window){var r=window.document.currentScript;if(Object({NODE_ENV:"production",BASE_URL:"/"}).NEED_CURRENTSCRIPT_POLYFILL){var o=n("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o})}var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}var a=n("8bbf"),s=n.n(a),l=n("b803"),c=n.n(l);n("24fb"),n("35d6");function u(e,t,n,r,o,i,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):o&&(l=s?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:c}}var f=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.$style.userInfo},[n("div",{ref:"dropdownMenu",class:e.$style.dropdown},[n("div",{class:e.menuIsDark?[e.$style.lighter,e.$style.dropdownMenu]:e.$style.dropdownMenu,on:{click:function(t){return e.toggleDropdown(t)}}},[n("div",{class:e.$style.userName},[n("span",{class:e.$style.label},[e._v(e._s(e.displayName))])]),n("div",{class:e.$style.userAvatar},[n("img",{style:"height: "+e.avatarSize+"; width: "+e.avatarSize+";",attrs:{src:e.picture,alt:"avatar"}})])]),n("div",{class:e.visible?e.$style.dropdownContent:[e.$style.dropdownContent,e.$style.closed]},[n("div",{class:e.$style.userDetails},[n("div",{class:e.$style.userAvatar},[e.moreLink?n("a",{attrs:{href:e.moreLink,title:e.translate("userInfoPortletUrl.title")}},[n("img",{attrs:{src:e.picture,alt:"avatar"}})]):n("img",{attrs:{src:e.picture,alt:"avatar"}})]),n("div",{class:e.$style.wrapperInfo},[n("div",{class:e.$style.userName},[n("span",{class:e.$style.label},[e._v(e._s(e.displayName))])]),n("div",{class:e.$style.userMail},[n("span",{class:e.$style.label},[e._v(e._s(e.email))])])])]),e.logoutLink?n("div",{class:e.$style.signOut},[n("a",{attrs:{href:e.logoutLink,title:e.translate("buttons.logout")}},[n("span",[e._v(e._s(e.translate("buttons.logout")))]),n("i",{class:[e.$style.fa,e.$style.faSignOut],attrs:{"aria-hidden":"true"}})])]):e._e()])])])},p=[],d=["style","currency","currencyDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","localeMatcher","formatMatcher","unit"];function h(e,t){"undefined"!==typeof console&&(console.warn("[vue-i18n] "+e),t&&console.warn(t.stack))}function m(e,t){"undefined"!==typeof console&&(console.error("[vue-i18n] "+e),t&&console.error(t.stack))}var b=Array.isArray;function y(e){return null!==e&&"object"===typeof e}function v(e){return"boolean"===typeof e}function g(e){return"string"===typeof e}var _=Object.prototype.toString,w="[object Object]";function I(e){return _.call(e)===w}function E(e){return null===e||void 0===e}function k(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];var n=null,r=null;return 1===e.length?y(e[0])||Array.isArray(e[0])?r=e[0]:"string"===typeof e[0]&&(n=e[0]):2===e.length&&("string"===typeof e[0]&&(n=e[0]),(y(e[1])||Array.isArray(e[1]))&&(r=e[1])),{locale:n,params:r}}function x(e){return JSON.parse(JSON.stringify(e))}function U(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}function $(e,t){return!!~e.indexOf(t)}var F=Object.prototype.hasOwnProperty;function C(e,t){return F.call(e,t)}function M(e){for(var t=arguments,n=Object(e),r=1;r<arguments.length;r++){var o=t[r];if(void 0!==o&&null!==o){var i=void 0;for(i in o)C(o,i)&&(y(o[i])?n[i]=M(n[i],o[i]):n[i]=o[i])}}return n}function T(e,t){if(e===t)return!0;var n=y(e),r=y(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var o=Array.isArray(e),i=Array.isArray(t);if(o&&i)return e.length===t.length&&e.every((function(e,n){return T(e,t[n])}));if(o||i)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return T(e[n],t[n])}))}catch(l){return!1}}function O(e){e.prototype.hasOwnProperty("$i18n")||Object.defineProperty(e.prototype,"$i18n",{get:function(){return this._i18n}}),e.prototype.$t=function(e){var t=[],n=arguments.length-1;while(n-- >0)t[n]=arguments[n+1];var r=this.$i18n;return r._t.apply(r,[e,r.locale,r._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){var n=[],r=arguments.length-2;while(r-- >0)n[r]=arguments[r+2];var o=this.$i18n;return o._tc.apply(o,[e,o.locale,o._getMessages(),this,t].concat(n))},e.prototype.$te=function(e,t){var n=this.$i18n;return n._te(e,n.locale,n._getMessages(),t)},e.prototype.$d=function(e){var t,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(t=this.$i18n).d.apply(t,[e].concat(n))},e.prototype.$n=function(e){var t,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(t=this.$i18n).n.apply(t,[e].concat(n))}}var L={beforeCreate:function(){var e=this.$options;if(e.i18n=e.i18n||(e.__i18n?{}:null),e.i18n)if(e.i18n instanceof Te){if(e.__i18n)try{var t={};e.__i18n.forEach((function(e){t=M(t,JSON.parse(e))})),Object.keys(t).forEach((function(n){e.i18n.mergeLocaleMessage(n,t[n])}))}catch(a){0}this._i18n=e.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(I(e.i18n)){var n=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Te?this.$root.$i18n:null;if(n&&(e.i18n.root=this.$root,e.i18n.formatter=n.formatter,e.i18n.fallbackLocale=n.fallbackLocale,e.i18n.formatFallbackMessages=n.formatFallbackMessages,e.i18n.silentTranslationWarn=n.silentTranslationWarn,e.i18n.silentFallbackWarn=n.silentFallbackWarn,e.i18n.pluralizationRules=n.pluralizationRules,e.i18n.preserveDirectiveContent=n.preserveDirectiveContent),e.__i18n)try{var r={};e.__i18n.forEach((function(e){r=M(r,JSON.parse(e))})),e.i18n.messages=r}catch(a){0}var o=e.i18n,i=o.sharedMessages;i&&I(i)&&(e.i18n.messages=M(e.i18n.messages,i)),this._i18n=new Te(e.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===e.i18n.sync||e.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),n&&n.onComponentInstanceCreated(this._i18n)}else 0;else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Te?this._i18n=this.$root.$i18n:e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof Te&&(this._i18n=e.parent.$i18n)},beforeMount:function(){var e=this.$options;e.i18n=e.i18n||(e.__i18n?{}:null),e.i18n?(e.i18n instanceof Te||I(e.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Te||e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof Te)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},beforeDestroy:function(){if(this._i18n){var e=this;this.$nextTick((function(){e._subscribing&&(e._i18n.unsubscribeDataChanging(e),delete e._subscribing),e._i18nWatcher&&(e._i18nWatcher(),e._i18n.destroyVM(),delete e._i18nWatcher),e._localeWatcher&&(e._localeWatcher(),delete e._localeWatcher)}))}}},S={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(e,t){var n=t.data,r=t.parent,o=t.props,i=t.slots,a=r.$i18n;if(a){var s=o.path,l=o.locale,c=o.places,u=i(),f=a.i(s,l,j(u)||c?D(u.default,c):u),p=o.tag&&!0!==o.tag||!1===o.tag?o.tag:"span";return p?e(p,n,f):f}}};function j(e){var t;for(t in e)if("default"!==t)return!1;return Boolean(t)}function D(e,t){var n=t?N(t):{};if(!e)return n;e=e.filter((function(e){return e.tag||""!==e.text.trim()}));var r=e.every(P);return e.reduce(r?R:A,n)}function N(e){return Array.isArray(e)?e.reduce(A,{}):Object.assign({},e)}function R(e,t){return t.data&&t.data.attrs&&t.data.attrs.place&&(e[t.data.attrs.place]=t),e}function A(e,t,n){return e[n]=t,e}function P(e){return Boolean(e.data&&e.data.attrs&&e.data.attrs.place)}var W,H={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(e,t){var n=t.props,r=t.parent,o=t.data,i=r.$i18n;if(!i)return null;var a=null,s=null;g(n.format)?a=n.format:y(n.format)&&(n.format.key&&(a=n.format.key),s=Object.keys(n.format).reduce((function(e,t){var r;return $(d,t)?Object.assign({},e,(r={},r[t]=n.format[t],r)):e}),null));var l=n.locale||i.locale,c=i._ntp(n.value,l,a,s),u=c.map((function(e,t){var n,r=o.scopedSlots&&o.scopedSlots[e.type];return r?r((n={},n[e.type]=e.value,n.index=t,n.parts=c,n)):e.value})),f=n.tag&&!0!==n.tag||!1===n.tag?n.tag:"span";return f?e(f,{attrs:o.attrs,class:o["class"],staticClass:o.staticClass},u):u}};function z(e,t,n){J(e,n)&&X(e,t,n)}function V(e,t,n,r){if(J(e,n)){var o=n.context.$i18n;q(e,n)&&T(t.value,t.oldValue)&&T(e._localeMessage,o.getLocaleMessage(o.locale))||X(e,t,n)}}function B(e,t,n,r){var o=n.context;if(o){var i=n.context.$i18n||{};t.modifiers.preserve||i.preserveDirectiveContent||(e.textContent=""),e._vt=void 0,delete e["_vt"],e._locale=void 0,delete e["_locale"],e._localeMessage=void 0,delete e["_localeMessage"]}else h("Vue instance does not exists in VNode context")}function J(e,t){var n=t.context;return n?!!n.$i18n||(h("VueI18n instance does not exists in Vue instance"),!1):(h("Vue instance does not exists in VNode context"),!1)}function q(e,t){var n=t.context;return e._locale===n.$i18n.locale}function X(e,t,n){var r,o,i=t.value,a=Z(i),s=a.path,l=a.locale,c=a.args,u=a.choice;if(s||l||c)if(s){var f=n.context;e._vt=e.textContent=null!=u?(r=f.$i18n).tc.apply(r,[s,u].concat(G(l,c))):(o=f.$i18n).t.apply(o,[s].concat(G(l,c))),e._locale=f.$i18n.locale,e._localeMessage=f.$i18n.getLocaleMessage(f.$i18n.locale)}else h("`path` is required in v-t directive");else h("value type not supported")}function Z(e){var t,n,r,o;return g(e)?t=e:I(e)&&(t=e.path,n=e.locale,r=e.args,o=e.choice),{path:t,locale:n,args:r,choice:o}}function G(e,t){var n=[];return e&&n.push(e),t&&(Array.isArray(t)||I(t))&&n.push(t),n}function Y(e){Y.installed=!0,W=e;W.version&&Number(W.version.split(".")[0]);O(W),W.mixin(L),W.directive("t",{bind:z,update:V,unbind:B}),W.component(S.name,S),W.component(H.name,H);var t=W.config.optionMergeStrategies;t.i18n=function(e,t){return void 0===t?e:t}}var K=function(){this._caches=Object.create(null)};K.prototype.interpolate=function(e,t){if(!t)return[e];var n=this._caches[e];return n||(n=te(e),this._caches[e]=n),ne(n,t)};var Q=/^(?:\d)+/,ee=/^(?:\w)+/;function te(e){var t=[],n=0,r="";while(n<e.length){var o=e[n++];if("{"===o){r&&t.push({type:"text",value:r}),r="";var i="";o=e[n++];while(void 0!==o&&"}"!==o)i+=o,o=e[n++];var a="}"===o,s=Q.test(i)?"list":a&&ee.test(i)?"named":"unknown";t.push({value:i,type:s})}else"%"===o?"{"!==e[n]&&(r+=o):r+=o}return r&&t.push({type:"text",value:r}),t}function ne(e,t){var n=[],r=0,o=Array.isArray(t)?"list":y(t)?"named":"unknown";if("unknown"===o)return n;while(r<e.length){var i=e[r];switch(i.type){case"text":n.push(i.value);break;case"list":n.push(t[parseInt(i.value,10)]);break;case"named":"named"===o&&n.push(t[i.value]);break;case"unknown":0;break}r++}return n}var re=0,oe=1,ie=2,ae=3,se=0,le=1,ce=2,ue=3,fe=4,pe=5,de=6,he=7,me=8,be=[];be[se]={ws:[se],ident:[ue,re],"[":[fe],eof:[he]},be[le]={ws:[le],".":[ce],"[":[fe],eof:[he]},be[ce]={ws:[ce],ident:[ue,re],0:[ue,re],number:[ue,re]},be[ue]={ident:[ue,re],0:[ue,re],number:[ue,re],ws:[le,oe],".":[ce,oe],"[":[fe,oe],eof:[he,oe]},be[fe]={"'":[pe,re],'"':[de,re],"[":[fe,ie],"]":[le,ae],eof:me,else:[fe,re]},be[pe]={"'":[fe,re],eof:me,else:[pe,re]},be[de]={'"':[fe,re],eof:me,else:[de,re]};var ye=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function ve(e){return ye.test(e)}function ge(e){var t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t!==n||34!==t&&39!==t?e:e.slice(1,-1)}function _e(e){if(void 0===e||null===e)return"eof";var t=e.charCodeAt(0);switch(t){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function we(e){var t=e.trim();return("0"!==e.charAt(0)||!isNaN(e))&&(ve(t)?ge(t):"*"+t)}function Ie(e){var t,n,r,o,i,a,s,l=[],c=-1,u=se,f=0,p=[];function d(){var t=e[c+1];if(u===pe&&"'"===t||u===de&&'"'===t)return c++,r="\\"+t,p[re](),!0}p[oe]=function(){void 0!==n&&(l.push(n),n=void 0)},p[re]=function(){void 0===n?n=r:n+=r},p[ie]=function(){p[re](),f++},p[ae]=function(){if(f>0)f--,u=fe,p[re]();else{if(f=0,void 0===n)return!1;if(n=we(n),!1===n)return!1;p[oe]()}};while(null!==u)if(c++,t=e[c],"\\"!==t||!d()){if(o=_e(t),s=be[u],i=s[o]||s["else"]||me,i===me)return;if(u=i[0],a=p[i[1]],a&&(r=i[2],r=void 0===r?t:r,!1===a()))return;if(u===he)return l}}var Ee=function(){this._cache=Object.create(null)};Ee.prototype.parsePath=function(e){var t=this._cache[e];return t||(t=Ie(e),t&&(this._cache[e]=t)),t||[]},Ee.prototype.getPathValue=function(e,t){if(!y(e))return null;var n=this.parsePath(t);if(0===n.length)return null;var r=n.length,o=e,i=0;while(i<r){var a=o[n[i]];if(void 0===a)return null;o=a,i++}return o};var ke,xe=/<\/?[\w\s="/.':;#-\/]+>/,Ue=/(?:@(?:\.[a-z]+)?:(?:[\w\-_|.]+|\([\w\-_|.]+\)))/g,$e=/^@(?:\.([a-z]+))?:/,Fe=/[()]/g,Ce={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()},capitalize:function(e){return""+e.charAt(0).toLocaleUpperCase()+e.substr(1)}},Me=new K,Te=function(e){var t=this;void 0===e&&(e={}),!W&&"undefined"!==typeof window&&window.Vue&&Y(window.Vue);var n=e.locale||"en-US",r=!1!==e.fallbackLocale&&(e.fallbackLocale||"en-US"),o=e.messages||{},i=e.dateTimeFormats||{},a=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||Me,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=void 0===e.sync||!!e.sync,this._fallbackRoot=void 0===e.fallbackRoot||!!e.fallbackRoot,this._formatFallbackMessages=void 0!==e.formatFallbackMessages&&!!e.formatFallbackMessages,this._silentTranslationWarn=void 0!==e.silentTranslationWarn&&e.silentTranslationWarn,this._silentFallbackWarn=void 0!==e.silentFallbackWarn&&!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new Ee,this._dataListeners=[],this._componentInstanceCreatedListener=e.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==e.preserveDirectiveContent&&!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._postTranslation=e.postTranslation||null,this._exist=function(e,n){return!(!e||!n)&&(!E(t._path.getPathValue(e,n))||!!e[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(o).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,o[e])})),this._initVM({locale:n,fallbackLocale:r,messages:o,dateTimeFormats:i,numberFormats:a})},Oe={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0}};Te.prototype._checkLocaleMessage=function(e,t,n){var r=[],o=function(e,t,n,r){if(I(n))Object.keys(n).forEach((function(i){var a=n[i];I(a)?(r.push(i),r.push("."),o(e,t,a,r),r.pop(),r.pop()):(r.push(i),o(e,t,a,r),r.pop())}));else if(Array.isArray(n))n.forEach((function(n,i){I(n)?(r.push("["+i+"]"),r.push("."),o(e,t,n,r),r.pop(),r.pop()):(r.push("["+i+"]"),o(e,t,n,r),r.pop())}));else if(g(n)){var i=xe.test(n);if(i){var a="Detected HTML in message '"+n+"' of keypath '"+r.join("")+"' at '"+t+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===e?h(a):"error"===e&&m(a)}}};o(t,e,n,r)},Te.prototype._initVM=function(e){var t=W.config.silent;W.config.silent=!0,this._vm=new W({data:e}),W.config.silent=t},Te.prototype.destroyVM=function(){this._vm.$destroy()},Te.prototype.subscribeDataChanging=function(e){this._dataListeners.push(e)},Te.prototype.unsubscribeDataChanging=function(e){U(this._dataListeners,e)},Te.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",(function(){var t=e._dataListeners.length;while(t--)W.nextTick((function(){e._dataListeners[t]&&e._dataListeners[t].$forceUpdate()}))}),{deep:!0})},Te.prototype.watchLocale=function(){if(!this._sync||!this._root)return null;var e=this._vm;return this._root.$i18n.vm.$watch("locale",(function(t){e.$set(e,"locale",t),e.$forceUpdate()}),{immediate:!0})},Te.prototype.onComponentInstanceCreated=function(e){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(e,this)},Oe.vm.get=function(){return this._vm},Oe.messages.get=function(){return x(this._getMessages())},Oe.dateTimeFormats.get=function(){return x(this._getDateTimeFormats())},Oe.numberFormats.get=function(){return x(this._getNumberFormats())},Oe.availableLocales.get=function(){return Object.keys(this.messages).sort()},Oe.locale.get=function(){return this._vm.locale},Oe.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},Oe.fallbackLocale.get=function(){return this._vm.fallbackLocale},Oe.fallbackLocale.set=function(e){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",e)},Oe.formatFallbackMessages.get=function(){return this._formatFallbackMessages},Oe.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e},Oe.missing.get=function(){return this._missing},Oe.missing.set=function(e){this._missing=e},Oe.formatter.get=function(){return this._formatter},Oe.formatter.set=function(e){this._formatter=e},Oe.silentTranslationWarn.get=function(){return this._silentTranslationWarn},Oe.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},Oe.silentFallbackWarn.get=function(){return this._silentFallbackWarn},Oe.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e},Oe.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},Oe.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e},Oe.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},Oe.warnHtmlInMessage.set=function(e){var t=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,n!==e&&("warn"===e||"error"===e)){var r=this._getMessages();Object.keys(r).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,r[e])}))}},Oe.postTranslation.get=function(){return this._postTranslation},Oe.postTranslation.set=function(e){this._postTranslation=e},Te.prototype._getMessages=function(){return this._vm.messages},Te.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},Te.prototype._getNumberFormats=function(){return this._vm.numberFormats},Te.prototype._warnDefault=function(e,t,n,r,o,i){if(!E(n))return n;if(this._missing){var a=this._missing.apply(null,[e,t,r,o]);if(g(a))return a}else 0;if(this._formatFallbackMessages){var s=k.apply(void 0,o);return this._render(t,i,s.params,t)}return t},Te.prototype._isFallbackRoot=function(e){return!e&&!E(this._root)&&this._fallbackRoot},Te.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn},Te.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)},Te.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},Te.prototype._interpolate=function(e,t,n,r,o,i,a){if(!t)return null;var s,l=this._path.getPathValue(t,n);if(Array.isArray(l)||I(l))return l;if(E(l)){if(!I(t))return null;if(s=t[n],!g(s))return null}else{if(!g(l))return null;s=l}return(s.indexOf("@:")>=0||s.indexOf("@.")>=0)&&(s=this._link(e,t,s,r,"raw",i,a)),this._render(s,o,i,n)},Te.prototype._link=function(e,t,n,r,o,i,a){var s=n,l=s.match(Ue);for(var c in l)if(l.hasOwnProperty(c)){var u=l[c],f=u.match($e),p=f[0],d=f[1],h=u.replace(p,"").replace(Fe,"");if($(a,h))return s;a.push(h);var m=this._interpolate(e,t,h,r,"raw"===o?"string":o,"raw"===o?void 0:i,a);if(this._isFallbackRoot(m)){if(!this._root)throw Error("unexpected error");var b=this._root.$i18n;m=b._translate(b._getMessages(),b.locale,b.fallbackLocale,h,r,o,i)}m=this._warnDefault(e,h,m,r,Array.isArray(i)?i:[i],o),this._modifiers.hasOwnProperty(d)?m=this._modifiers[d](m):Ce.hasOwnProperty(d)&&(m=Ce[d](m)),a.pop(),s=m?s.replace(u,m):s}return s},Te.prototype._render=function(e,t,n,r){var o=this._formatter.interpolate(e,n,r);return o||(o=Me.interpolate(e,n,r)),"string"!==t||g(o)?o:o.join("")},Te.prototype._appendItemToChain=function(e,t,n){var r=!1;return $(e,t)||(r=!0,t&&(r="!"!==t[t.length-1],t=t.replace(/!/g,""),e.push(t),n&&n[t]&&(r=n[t]))),r},Te.prototype._appendLocaleToChain=function(e,t,n){var r,o=t.split("-");do{var i=o.join("-");r=this._appendItemToChain(e,i,n),o.splice(-1,1)}while(o.length&&!0===r);return r},Te.prototype._appendBlockToChain=function(e,t,n){for(var r=!0,o=0;o<t.length&&v(r);o++){var i=t[o];g(i)&&(r=this._appendLocaleToChain(e,i,n))}return r},Te.prototype._getLocaleChain=function(e,t){if(""===e)return[];this._localeChainCache||(this._localeChainCache={});var n=this._localeChainCache[e];if(!n){t||(t=this.fallbackLocale),n=[];var r,o=[e];while(b(o))o=this._appendBlockToChain(n,o,t);r=b(t)?t:y(t)?t["default"]?t["default"]:null:t,o=g(r)?[r]:r,o&&this._appendBlockToChain(n,o,null),this._localeChainCache[e]=n}return n},Te.prototype._translate=function(e,t,n,r,o,i,a){for(var s,l=this._getLocaleChain(t,n),c=0;c<l.length;c++){var u=l[c];if(s=this._interpolate(u,e[u],r,o,i,a,[r]),!E(s))return s}return null},Te.prototype._t=function(e,t,n,r){var o,i=[],a=arguments.length-4;while(a-- >0)i[a]=arguments[a+4];if(!e)return"";var s=k.apply(void 0,i),l=s.locale||t,c=this._translate(n,l,this.fallbackLocale,e,r,"string",s.params);if(this._isFallbackRoot(c)){if(!this._root)throw Error("unexpected error");return(o=this._root).$t.apply(o,[e].concat(i))}return c=this._warnDefault(l,e,c,r,i,"string"),this._postTranslation&&null!==c&&void 0!==c&&(c=this._postTranslation(c,e)),c},Te.prototype.t=function(e){var t,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(n))},Te.prototype._i=function(e,t,n,r,o){var i=this._translate(n,t,this.fallbackLocale,e,r,"raw",o);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,o)}return this._warnDefault(t,e,i,r,[o],"raw")},Te.prototype.i=function(e,t,n){return e?(g(t)||(t=this.locale),this._i(e,t,this._getMessages(),null,n)):""},Te.prototype._tc=function(e,t,n,r,o){var i,a=[],s=arguments.length-5;while(s-- >0)a[s]=arguments[s+5];if(!e)return"";void 0===o&&(o=1);var l={count:o,n:o},c=k.apply(void 0,a);return c.params=Object.assign(l,c.params),a=null===c.locale?[c.params]:[c.locale,c.params],this.fetchChoice((i=this)._t.apply(i,[e,t,n,r].concat(a)),o)},Te.prototype.fetchChoice=function(e,t){if(!e&&!g(e))return null;var n=e.split("|");return t=this.getChoiceIndex(t,n.length),n[t]?n[t].trim():e},Te.prototype.getChoiceIndex=function(e,t){var n=function(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0};return this.locale in this.pluralizationRules?this.pluralizationRules[this.locale].apply(this,[e,t]):n(e,t)},Te.prototype.tc=function(e,t){var n,r=[],o=arguments.length-2;while(o-- >0)r[o]=arguments[o+2];return(n=this)._tc.apply(n,[e,this.locale,this._getMessages(),null,t].concat(r))},Te.prototype._te=function(e,t,n){var r=[],o=arguments.length-3;while(o-- >0)r[o]=arguments[o+3];var i=k.apply(void 0,r).locale||t;return this._exist(n[i],e)},Te.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},Te.prototype.getLocaleMessage=function(e){return x(this._vm.messages[e]||{})},Te.prototype.setLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,t)},Te.prototype.mergeLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,M({},this._vm.messages[e]||{},t))},Te.prototype.getDateTimeFormat=function(e){return x(this._vm.dateTimeFormats[e]||{})},Te.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t),this._clearDateTimeFormat(e,t)},Te.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,M(this._vm.dateTimeFormats[e]||{},t)),this._clearDateTimeFormat(e,t)},Te.prototype._clearDateTimeFormat=function(e,t){for(var n in t){var r=e+"__"+n;this._dateTimeFormatters.hasOwnProperty(r)&&delete this._dateTimeFormatters[r]}},Te.prototype._localizeDateTime=function(e,t,n,r,o){for(var i=t,a=r[i],s=this._getLocaleChain(t,n),l=0;l<s.length;l++){var c=s[l];if(a=r[c],i=c,!E(a)&&!E(a[o]))break}if(E(a)||E(a[o]))return null;var u=a[o],f=i+"__"+o,p=this._dateTimeFormatters[f];return p||(p=this._dateTimeFormatters[f]=new Intl.DateTimeFormat(i,u)),p.format(e)},Te.prototype._d=function(e,t,n){if(!n)return new Intl.DateTimeFormat(t).format(e);var r=this._localizeDateTime(e,t,this.fallbackLocale,this._getDateTimeFormats(),n);if(this._isFallbackRoot(r)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(e,n,t)}return r||""},Te.prototype.d=function(e){var t=[],n=arguments.length-1;while(n-- >0)t[n]=arguments[n+1];var r=this.locale,o=null;return 1===t.length?g(t[0])?o=t[0]:y(t[0])&&(t[0].locale&&(r=t[0].locale),t[0].key&&(o=t[0].key)):2===t.length&&(g(t[0])&&(o=t[0]),g(t[1])&&(r=t[1])),this._d(e,r,o)},Te.prototype.getNumberFormat=function(e){return x(this._vm.numberFormats[e]||{})},Te.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t),this._clearNumberFormat(e,t)},Te.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,M(this._vm.numberFormats[e]||{},t)),this._clearNumberFormat(e,t)},Te.prototype._clearNumberFormat=function(e,t){for(var n in t){var r=e+"__"+n;this._numberFormatters.hasOwnProperty(r)&&delete this._numberFormatters[r]}},Te.prototype._getNumberFormatter=function(e,t,n,r,o,i){for(var a=t,s=r[a],l=this._getLocaleChain(t,n),c=0;c<l.length;c++){var u=l[c];if(s=r[u],a=u,!E(s)&&!E(s[o]))break}if(E(s)||E(s[o]))return null;var f,p=s[o];if(i)f=new Intl.NumberFormat(a,Object.assign({},p,i));else{var d=a+"__"+o;f=this._numberFormatters[d],f||(f=this._numberFormatters[d]=new Intl.NumberFormat(a,p))}return f},Te.prototype._n=function(e,t,n,r){if(!Te.availabilities.numberFormat)return"";if(!n){var o=r?new Intl.NumberFormat(t,r):new Intl.NumberFormat(t);return o.format(e)}var i=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,r),a=i&&i.format(e);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(e,Object.assign({},{key:n,locale:t},r))}return a||""},Te.prototype.n=function(e){var t=[],n=arguments.length-1;while(n-- >0)t[n]=arguments[n+1];var r=this.locale,o=null,i=null;return 1===t.length?g(t[0])?o=t[0]:y(t[0])&&(t[0].locale&&(r=t[0].locale),t[0].key&&(o=t[0].key),i=Object.keys(t[0]).reduce((function(e,n){var r;return $(d,n)?Object.assign({},e,(r={},r[n]=t[0][n],r)):e}),null)):2===t.length&&(g(t[0])&&(o=t[0]),g(t[1])&&(r=t[1])),this._n(e,r,o,i)},Te.prototype._ntp=function(e,t,n,r){if(!Te.availabilities.numberFormat)return[];if(!n){var o=r?new Intl.NumberFormat(t,r):new Intl.NumberFormat(t);return o.formatToParts(e)}var i=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,r),a=i&&i.formatToParts(e);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,n,r)}return a||[]},Object.defineProperties(Te.prototype,Oe),Object.defineProperty(Te,"availabilities",{get:function(){if(!ke){var e="undefined"!==typeof Intl;ke={dateTimeFormat:e&&"undefined"!==typeof Intl.DateTimeFormat,numberFormat:e&&"undefined"!==typeof Intl.NumberFormat}}return ke}}),Te.install=Y,Te.version="8.18.0";var Le=Te;function Se(e){var t=["languages","language","browserLanguage","userLanguage","systemLanguage"],n=t.flatMap((function(e){return navigator[e]})).filter((function(e){return e})).map((function(e){return e.substring(0,2)})).filter((function(e,t,n){return n.indexOf(e)===t})),r=n.find((function(t){return e.includes(t)}));return r||"en"}function je(){var e=n("88b1"),t={};return e.keys().forEach((function(n){var r=n.match(/([a-z0-9]+)\./i);if(r&&r.length>1){var o=r[1];t[o]=e(n)}})),t}s.a.use(Le);var De=new Le({locale:Se(["fr","en"]),fallbackLocale:"en",messages:je()}),Ne={name:"EyebrowUserInfo",props:{displayName:{type:String,required:!0},email:{type:String,default:""},picture:{type:String,required:!0},moreLink:{type:String,default:null},logoutLink:{type:String,default:null},menuIsDark:{type:Boolean,default:!0},avatarSize:{type:String,default:"28px"}},data:function(){return{visible:!1}},created:function(){document.addEventListener("click",this.documentClick)},destroyed:function(){document.removeEventListener("click",this.documentClick)},methods:{translate:function(e,t){return De.t(e,t)},toggleDropdown:function(e){e.preventDefault(),this.visible=!this.visible},getEventTarget:function(e){var t=e.target||window;if(e.composed&&"function"===typeof e.composedPath){var n=e.composedPath();t=n[0]}return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t},documentClick:function(e){var t=this.$refs.dropdownMenu,n=this.getEventTarget(e);t===n||t.contains(n)||(this.visible=!1)}}},Re=Ne;function Ae(e){var t=n("3edb");t.__inject__&&t.__inject__(e),this["$style"]=t.locals||t}var Pe=u(Re,f,p,!1,Ae,null,null,!0),We=Pe.exports;window.customElements.define("eyebrow-user-info",c()(s.a,We))},"5ed4":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'.EyebrowUserInfo-user-info .EyebrowUserInfo-fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome,sans-serif;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.EyebrowUserInfo-user-info .EyebrowUserInfo-fa-sign-out:before{content:"\\f08b"}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown{height:100%;width:100%;position:relative;display:inline-block;right:0}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-menu{cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#000}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-menu.EyebrowUserInfo-lighter{color:#fff}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-menu :not(:first-child){margin-left:5px}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-menu>.EyebrowUserInfo-user-name{display:block}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-menu>.EyebrowUserInfo-user-avatar{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-menu>.EyebrowUserInfo-user-avatar>img{background-color:#d0d0d0;border-radius:50%;overflow:hidden}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-content{position:absolute;min-width:280px;background-color:#fff;color:#000;-webkit-box-shadow:0 5px 5px -3px #888,5px 5px 5px -4px #888;box-shadow:0 5px 5px -3px #888,5px 5px 5px -4px #888;z-index:15;right:0;text-align:initial;visibility:visible;opacity:1;-webkit-transition:opacity .8s,visibility .8s;transition:opacity .8s,visibility .8s;-webkit-animation:EyebrowUserInfo-fade .8s;animation:EyebrowUserInfo-fade .8s}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-content.EyebrowUserInfo-closed{visibility:hidden;opacity:0}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-content>div.EyebrowUserInfo-user-details{padding:25px 10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row nowrap;flex-flow:row nowrap;font-size:14px}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-content>div.EyebrowUserInfo-user-details>*{margin:0 0 0 15px}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-content>div.EyebrowUserInfo-user-details>:last-child{margin-right:15px}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-content>div.EyebrowUserInfo-user-details>.EyebrowUserInfo-user-avatar{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-content>div.EyebrowUserInfo-user-details>.EyebrowUserInfo-user-avatar img{background-color:#d0d0d0;border-radius:50%;height:68px;width:68px}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-content>div.EyebrowUserInfo-user-details .EyebrowUserInfo-wrapper-info{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-flow:column nowrap;flex-flow:column nowrap;-ms-flex-item-align:center;align-self:center}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-content>.EyebrowUserInfo-sign-out{display:-webkit-box;display:-ms-flexbox;display:flex;background-color:#d0d0d0;width:100%;text-align:right}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-content>.EyebrowUserInfo-sign-out:hover{background-color:#b7b7b7}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-content>.EyebrowUserInfo-sign-out>a{padding-right:15px;text-decoration:none;color:inherit;width:100%}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-content>.EyebrowUserInfo-sign-out>a>*{line-height:32px;vertical-align:top}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-content>.EyebrowUserInfo-sign-out>a>span{text-transform:uppercase;margin-right:5px}',""]),t.locals={userInfo:"EyebrowUserInfo-user-info",fa:"EyebrowUserInfo-fa",faSignOut:"EyebrowUserInfo-fa-sign-out",dropdown:"EyebrowUserInfo-dropdown",dropdownMenu:"EyebrowUserInfo-dropdown-menu",lighter:"EyebrowUserInfo-lighter",userName:"EyebrowUserInfo-user-name",userAvatar:"EyebrowUserInfo-user-avatar",dropdownContent:"EyebrowUserInfo-dropdown-content",fade:"EyebrowUserInfo-fade",closed:"EyebrowUserInfo-closed",userDetails:"EyebrowUserInfo-user-details",wrapperInfo:"EyebrowUserInfo-wrapper-info",signOut:"EyebrowUserInfo-sign-out"},e.exports=t},"7e84":function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.r(t),n.d(t,"default",(function(){return r}))},8875:function(e,t,n){var r,o,i;(function(n,a){o=[],r=a,i="function"===typeof r?r.apply(t,o):r,void 0===i||(e.exports=i)})("undefined"!==typeof self&&self,(function(){function e(){if(document.currentScript)return document.currentScript;try{throw new Error}catch(f){var e,t,n,r=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,o=/@([^@]*):(\d+):(\d+)\s*$/gi,i=r.exec(f.stack)||o.exec(f.stack),a=i&&i[1]||!1,s=i&&i[2]||!1,l=document.location.href.replace(document.location.hash,""),c=document.getElementsByTagName("script");a===l&&(e=document.documentElement.outerHTML,t=new RegExp("(?:[^\\n]+?\\n){0,"+(s-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=e.replace(t,"$1").trim());for(var u=0;u<c.length;u++){if("interactive"===c[u].readyState)return c[u];if(c[u].src===a)return c[u];if(a===l&&c[u].innerHTML&&c[u].innerHTML.trim()===n)return c[u]}return null}}return e}))},"88b1":function(e,t,n){var r={"./en.json":"edd4","./fr.json":"f693"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="88b1"},"8bbf":function(e,t){e.exports=Vue},9072:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return l}));var r=n("7e84"),o=n("b380");function i(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function a(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function s(e,t,n){return s=a()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=Function.bind.apply(e,r),a=new i;return n&&Object(o["a"])(a,n.prototype),a},s.apply(null,arguments)}function l(e){var t="function"===typeof Map?new Map:void 0;return l=function(e){if(null===e||!i(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return s(e,arguments,Object(r["default"])(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Object(o["a"])(n,e)},l(e)}},"95bb":function(e,t,n){var r=n("5ed4");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var o=n("35d6").default;e.exports.__inject__=function(e){o("451da816",r,e)}},"99de":function(e,t,n){"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.r(t),n.d(t,"default",(function(){return i}));var o=n("257e");function i(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?Object(o["default"])(e):t}},b380:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,"a",(function(){return r}))},b803:function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("d4ec")),i=r(n("bee2")),a=r(n("257e")),s=r(n("262e")),l=r(n("99de")),c=r(n("7e84")),u=r(n("9072"));function f(e){var t=p();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}function p(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var d=/-(\w)/g,h=function(e){return e.replace(d,(function(e,t){return t?t.toUpperCase():""}))},m=/\B([A-Z])/g,b=function(e){return e.replace(m,"-$1").toLowerCase()};function y(e){var t={};return e.forEach((function(e){t[e]=void 0})),t}function v(e,t,n){e[t]=[].concat(e[t]||[]),e[t].unshift(n)}function g(e,t){if(e){var n=e.$options[t]||[];n.forEach((function(t){t.call(e)}))}}function _(e,t){return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:t})}var w=function(e){return/function Boolean/.test(String(e))},I=function(e){return/function Number/.test(String(e))};function E(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.type;if(w(r))return"true"===e||"false"===e?"true"===e:""===e||e===t||null!=e;if(I(r)){var o=parseFloat(e,10);return isNaN(o)?e:o}return e}function k(e,t){for(var n=[],r=0,o=t.length;r<o;r++)n.push(x(e,t[r]));return n}function x(e,t){if(3===t.nodeType)return t.data.trim()?t.data:null;if(1===t.nodeType){var n={attrs:U(t),domProps:{innerHTML:t.innerHTML}};return n.attrs.slot&&(n.slot=n.attrs.slot,delete n.attrs.slot),e(t.tagName,n)}return null}function U(e){for(var t={},n=0,r=e.attributes.length;n<r;n++){var o=e.attributes[n];t[o.nodeName]=o.nodeValue}return t}function $(e,t){var n,r,l,c="function"===typeof t&&!t.cid,p=!1;function d(e){if(!p){var t="function"===typeof e?e.options:e,o=Array.isArray(t.props)?t.props:Object.keys(t.props||{});n=o.map(b),r=o.map(h);var i=Array.isArray(t.props)?{}:t.props||{};l=r.reduce((function(e,t,n){return e[t]=i[o[n]],e}),{}),v(t,"beforeCreate",(function(){var e=this,t=this.$emit;this.$emit=function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return e.$root.$options.customElement.dispatchEvent(_(n,o)),t.call.apply(t,[e,n].concat(o))}})),v(t,"created",(function(){var e=this;r.forEach((function(t){e.$root.props[t]=e[t]}))})),r.forEach((function(e){Object.defineProperty(w.prototype,e,{get:function(){return this._wrapper.props[e]},set:function(t){this._wrapper.props[e]=t},enumerable:!1,configurable:!0})})),p=!0}}function m(e,t){var n=h(t),r=e.hasAttribute(t)?e.getAttribute(t):void 0;e._wrapper.props[n]=E(r,t,l[n])}var w=function(l){(0,s.default)(u,l);var c=f(u);function u(){var n;(0,o.default)(this,u),n=c.call(this),n.attachShadow({mode:"open"});var r=n._wrapper=new e({name:"shadow-root",customElement:(0,a.default)(n),shadowRoot:n.shadowRoot,data:function(){return{props:{},slotChildren:[]}},render:function(e){return e(t,{ref:"inner",props:this.props},this.slotChildren)}}),i=new MutationObserver((function(e){for(var t=!1,o=0;o<e.length;o++){var i=e[o];p&&"attributes"===i.type&&i.target===(0,a.default)(n)?m((0,a.default)(n),i.attributeName):t=!0}t&&(r.slotChildren=Object.freeze(k(r.$createElement,n.childNodes)))}));return i.observe((0,a.default)(n),{childList:!0,subtree:!0,characterData:!0,attributes:!0}),n}return(0,i.default)(u,[{key:"connectedCallback",value:function(){var e=this,o=this._wrapper;if(o._isMounted)g(this.vueComponent,"activated");else{var i=function(){o.props=y(r),n.forEach((function(t){m(e,t)}))};p?i():t().then((function(e){(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),d(e),i()})),o.slotChildren=Object.freeze(k(o.$createElement,this.childNodes)),o.$mount(),this.shadowRoot.appendChild(o.$el)}}},{key:"disconnectedCallback",value:function(){g(this.vueComponent,"deactivated")}},{key:"vueComponent",get:function(){return this._wrapper.$refs.inner}}]),u}((0,u.default)(HTMLElement));return c||d(t),w}var F=$;t.default=F},bee2:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.r(t),n.d(t,"default",(function(){return o}))},d4ec:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.r(t),n.d(t,"default",(function(){return r}))},edd4:function(e){e.exports=JSON.parse('{"userInfoPortletUrl.title":"See my account information","buttons.logout":"Sign out"}')},f693:function(e){e.exports=JSON.parse('{"userInfoPortletUrl.title":"Voir les informations de mon compte","buttons.logout":"Déconnexion"}')}}); | ||
(function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},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,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="5a74")})({"24fb":function(e,t,n){"use strict";function r(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"===typeof btoa){var i=o(r),a=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(a).concat([i]).join("\n")}return[n].join("\n")}function o(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(n," */")}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=r(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"===typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},"257e":function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.r(t),n.d(t,"default",(function(){return r}))},"262e":function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return o}));var r=n("b380");function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Object(r["a"])(e,t)}},"35d6":function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o],a=i[0],s=i[1],c=i[2],l=i[3],u={id:e+":"+o,css:s,media:c,sourceMap:l};r[a]?r[a].parts.push(u):n.push(r[a]={id:a,parts:[u]})}return n}function o(e,t,n){var o=r(e,t);i(o,n)}function i(e,t){const n=t._injectedStyles||(t._injectedStyles={});for(var r=0;r<e.length;r++){var o=e[r],i=n[o.id];if(!i){for(var a=0;a<o.parts.length;a++)s(o.parts[a],t);n[o.id]=!0}}}function a(e){var t=document.createElement("style");return t.type="text/css",e.appendChild(t),t}function s(e,t){var n=a(t),r=e.css,o=e.media,i=e.sourceMap;if(o&&n.setAttribute("media",o),i&&(r+="\n/*# sourceURL="+i.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),n.styleSheet)n.styleSheet.cssText=r;else{while(n.firstChild)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(r))}}n.r(t),n.d(t,"default",(function(){return o}))},"3edb":function(e,t,n){"use strict";n.r(t);var r=n("95bb"),o=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t["default"]=o.a},"4ea4":function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}e.exports=n},"5a74":function(e,t,n){"use strict";if(n.r(t),"undefined"!==typeof window){var r=window.document.currentScript;if(Object({NODE_ENV:"production",BASE_URL:"/"}).NEED_CURRENTSCRIPT_POLYFILL){var o=n("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o})}var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}var a=n("8bbf"),s=n.n(a),c=n("b803"),l=n.n(c);n("24fb"),n("35d6");function u(e,t,n,r,o,i,a,s){var c,l="function"===typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),a?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=c):o&&(c=s?function(){o.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:l}}var f=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.$style.userInfo},[n("div",{ref:"dropdownMenu",class:e.$style.dropdown},[n("div",{class:e.menuIsDark?[e.$style.lighter,e.$style.dropdownMenu]:e.$style.dropdownMenu,on:{click:function(t){return e.toggleDropdown(t)}}},[n("div",{class:e.$style.userName},[n("span",{class:e.$style.label},[e._v(e._s(e.displayName))])]),n("div",{class:e.$style.userAvatar},[n("img",{style:"height: "+e.avatarSize+"; width: "+e.avatarSize+";",attrs:{src:e.picture,alt:"avatar"}})])]),n("div",{class:e.visible?e.$style.dropdownContent:[e.$style.dropdownContent,e.$style.closed]},[n("div",{class:e.$style.userDetails},[n("div",{class:e.$style.userAvatar},[e.moreLink?n("a",{attrs:{href:e.moreLink,title:e.translate("userInfoPortletUrl.title")}},[n("img",{attrs:{src:e.picture,alt:"avatar"}})]):n("img",{attrs:{src:e.picture,alt:"avatar"}})]),n("div",{class:e.$style.wrapperInfo},[n("div",{class:e.$style.userName},[n("span",{class:e.$style.label},[e._v(e._s(e.displayName))])]),n("div",{class:e.$style.userMail},[n("span",{class:e.$style.label},[e._v(e._s(e.email))])])])]),e.logoutLink?n("div",{class:e.$style.signOut},[n("a",{attrs:{href:e.logoutLink,title:e.translate("buttons.logout")}},[n("span",[e._v(e._s(e.translate("buttons.logout")))]),n("i",{class:[e.$style.fa,e.$style.faSignOut],attrs:{"aria-hidden":"true"}})])]):e._e()])])])},p=[],d=["style","currency","currencyDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","localeMatcher","formatMatcher","unit"];function h(e,t){"undefined"!==typeof console&&(console.warn("[vue-i18n] "+e),t&&console.warn(t.stack))}function m(e,t){"undefined"!==typeof console&&(console.error("[vue-i18n] "+e),t&&console.error(t.stack))}var b=Array.isArray;function v(e){return null!==e&&"object"===typeof e}function y(e){return"boolean"===typeof e}function g(e){return"string"===typeof e}var _=Object.prototype.toString,w="[object Object]";function I(e){return _.call(e)===w}function E(e){return null===e||void 0===e}function x(e){return"function"===typeof e}function k(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];var n=null,r=null;return 1===e.length?v(e[0])||b(e[0])?r=e[0]:"string"===typeof e[0]&&(n=e[0]):2===e.length&&("string"===typeof e[0]&&(n=e[0]),(v(e[1])||b(e[1]))&&(r=e[1])),{locale:n,params:r}}function U(e){return JSON.parse(JSON.stringify(e))}function $(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}function F(e,t){return!!~e.indexOf(t)}var C=Object.prototype.hasOwnProperty;function M(e,t){return C.call(e,t)}function O(e){for(var t=arguments,n=Object(e),r=1;r<arguments.length;r++){var o=t[r];if(void 0!==o&&null!==o){var i=void 0;for(i in o)M(o,i)&&(v(o[i])?n[i]=O(n[i],o[i]):n[i]=o[i])}}return n}function T(e,t){if(e===t)return!0;var n=v(e),r=v(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var o=b(e),i=b(t);if(o&&i)return e.length===t.length&&e.every((function(e,n){return T(e,t[n])}));if(o||i)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return T(e[n],t[n])}))}catch(c){return!1}}function S(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function L(e){return null!=e&&Object.keys(e).forEach((function(t){"string"==typeof e[t]&&(e[t]=S(e[t]))})),e}function j(e){e.prototype.hasOwnProperty("$i18n")||Object.defineProperty(e.prototype,"$i18n",{get:function(){return this._i18n}}),e.prototype.$t=function(e){var t=[],n=arguments.length-1;while(n-- >0)t[n]=arguments[n+1];var r=this.$i18n;return r._t.apply(r,[e,r.locale,r._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){var n=[],r=arguments.length-2;while(r-- >0)n[r]=arguments[r+2];var o=this.$i18n;return o._tc.apply(o,[e,o.locale,o._getMessages(),this,t].concat(n))},e.prototype.$te=function(e,t){var n=this.$i18n;return n._te(e,n.locale,n._getMessages(),t)},e.prototype.$d=function(e){var t,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(t=this.$i18n).d.apply(t,[e].concat(n))},e.prototype.$n=function(e){var t,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(t=this.$i18n).n.apply(t,[e].concat(n))}}var D={beforeCreate:function(){var e=this.$options;if(e.i18n=e.i18n||(e.__i18n?{}:null),e.i18n)if(e.i18n instanceof Le){if(e.__i18n)try{var t=e.i18n&&e.i18n.messages?e.i18n.messages:{};e.__i18n.forEach((function(e){t=O(t,JSON.parse(e))})),Object.keys(t).forEach((function(n){e.i18n.mergeLocaleMessage(n,t[n])}))}catch(a){0}this._i18n=e.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(I(e.i18n)){var n=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Le?this.$root.$i18n:null;if(n&&(e.i18n.root=this.$root,e.i18n.formatter=n.formatter,e.i18n.fallbackLocale=n.fallbackLocale,e.i18n.formatFallbackMessages=n.formatFallbackMessages,e.i18n.silentTranslationWarn=n.silentTranslationWarn,e.i18n.silentFallbackWarn=n.silentFallbackWarn,e.i18n.pluralizationRules=n.pluralizationRules,e.i18n.preserveDirectiveContent=n.preserveDirectiveContent),e.__i18n)try{var r=e.i18n&&e.i18n.messages?e.i18n.messages:{};e.__i18n.forEach((function(e){r=O(r,JSON.parse(e))})),e.i18n.messages=r}catch(a){0}var o=e.i18n,i=o.sharedMessages;i&&I(i)&&(e.i18n.messages=O(e.i18n.messages,i)),this._i18n=new Le(e.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===e.i18n.sync||e.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),n&&n.onComponentInstanceCreated(this._i18n)}else 0;else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Le?this._i18n=this.$root.$i18n:e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof Le&&(this._i18n=e.parent.$i18n)},beforeMount:function(){var e=this.$options;e.i18n=e.i18n||(e.__i18n?{}:null),e.i18n?(e.i18n instanceof Le||I(e.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Le||e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof Le)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},beforeDestroy:function(){if(this._i18n){var e=this;this.$nextTick((function(){e._subscribing&&(e._i18n.unsubscribeDataChanging(e),delete e._subscribing),e._i18nWatcher&&(e._i18nWatcher(),e._i18n.destroyVM(),delete e._i18nWatcher),e._localeWatcher&&(e._localeWatcher(),delete e._localeWatcher)}))}}},N={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(e,t){var n=t.data,r=t.parent,o=t.props,i=t.slots,a=r.$i18n;if(a){var s=o.path,c=o.locale,l=o.places,u=i(),f=a.i(s,c,R(u)||l?P(u.default,l):u),p=o.tag&&!0!==o.tag||!1===o.tag?o.tag:"span";return p?e(p,n,f):f}}};function R(e){var t;for(t in e)if("default"!==t)return!1;return Boolean(t)}function P(e,t){var n=t?W(t):{};if(!e)return n;e=e.filter((function(e){return e.tag||""!==e.text.trim()}));var r=e.every(z);return e.reduce(r?A:H,n)}function W(e){return Array.isArray(e)?e.reduce(H,{}):Object.assign({},e)}function A(e,t){return t.data&&t.data.attrs&&t.data.attrs.place&&(e[t.data.attrs.place]=t),e}function H(e,t,n){return e[n]=t,e}function z(e){return Boolean(e.data&&e.data.attrs&&e.data.attrs.place)}var V,B={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(e,t){var n=t.props,r=t.parent,o=t.data,i=r.$i18n;if(!i)return null;var a=null,s=null;g(n.format)?a=n.format:v(n.format)&&(n.format.key&&(a=n.format.key),s=Object.keys(n.format).reduce((function(e,t){var r;return F(d,t)?Object.assign({},e,(r={},r[t]=n.format[t],r)):e}),null));var c=n.locale||i.locale,l=i._ntp(n.value,c,a,s),u=l.map((function(e,t){var n,r=o.scopedSlots&&o.scopedSlots[e.type];return r?r((n={},n[e.type]=e.value,n.index=t,n.parts=l,n)):e.value})),f=n.tag&&!0!==n.tag||!1===n.tag?n.tag:"span";return f?e(f,{attrs:o.attrs,class:o["class"],staticClass:o.staticClass},u):u}};function J(e,t,n){Z(e,n)&&Y(e,t,n)}function q(e,t,n,r){if(Z(e,n)){var o=n.context.$i18n;G(e,n)&&T(t.value,t.oldValue)&&T(e._localeMessage,o.getLocaleMessage(o.locale))||Y(e,t,n)}}function X(e,t,n,r){var o=n.context;if(o){var i=n.context.$i18n||{};t.modifiers.preserve||i.preserveDirectiveContent||(e.textContent=""),e._vt=void 0,delete e["_vt"],e._locale=void 0,delete e["_locale"],e._localeMessage=void 0,delete e["_localeMessage"]}else h("Vue instance does not exists in VNode context")}function Z(e,t){var n=t.context;return n?!!n.$i18n||(h("VueI18n instance does not exists in Vue instance"),!1):(h("Vue instance does not exists in VNode context"),!1)}function G(e,t){var n=t.context;return e._locale===n.$i18n.locale}function Y(e,t,n){var r,o,i=t.value,a=K(i),s=a.path,c=a.locale,l=a.args,u=a.choice;if(s||c||l)if(s){var f=n.context;e._vt=e.textContent=null!=u?(r=f.$i18n).tc.apply(r,[s,u].concat(Q(c,l))):(o=f.$i18n).t.apply(o,[s].concat(Q(c,l))),e._locale=f.$i18n.locale,e._localeMessage=f.$i18n.getLocaleMessage(f.$i18n.locale)}else h("`path` is required in v-t directive");else h("value type not supported")}function K(e){var t,n,r,o;return g(e)?t=e:I(e)&&(t=e.path,n=e.locale,r=e.args,o=e.choice),{path:t,locale:n,args:r,choice:o}}function Q(e,t){var n=[];return e&&n.push(e),t&&(Array.isArray(t)||I(t))&&n.push(t),n}function ee(e){ee.installed=!0,V=e;V.version&&Number(V.version.split(".")[0]);j(V),V.mixin(D),V.directive("t",{bind:J,update:q,unbind:X}),V.component(N.name,N),V.component(B.name,B);var t=V.config.optionMergeStrategies;t.i18n=function(e,t){return void 0===t?e:t}}var te=function(){this._caches=Object.create(null)};te.prototype.interpolate=function(e,t){if(!t)return[e];var n=this._caches[e];return n||(n=oe(e),this._caches[e]=n),ie(n,t)};var ne=/^(?:\d)+/,re=/^(?:\w)+/;function oe(e){var t=[],n=0,r="";while(n<e.length){var o=e[n++];if("{"===o){r&&t.push({type:"text",value:r}),r="";var i="";o=e[n++];while(void 0!==o&&"}"!==o)i+=o,o=e[n++];var a="}"===o,s=ne.test(i)?"list":a&&re.test(i)?"named":"unknown";t.push({value:i,type:s})}else"%"===o?"{"!==e[n]&&(r+=o):r+=o}return r&&t.push({type:"text",value:r}),t}function ie(e,t){var n=[],r=0,o=Array.isArray(t)?"list":v(t)?"named":"unknown";if("unknown"===o)return n;while(r<e.length){var i=e[r];switch(i.type){case"text":n.push(i.value);break;case"list":n.push(t[parseInt(i.value,10)]);break;case"named":"named"===o&&n.push(t[i.value]);break;case"unknown":0;break}r++}return n}var ae=0,se=1,ce=2,le=3,ue=0,fe=1,pe=2,de=3,he=4,me=5,be=6,ve=7,ye=8,ge=[];ge[ue]={ws:[ue],ident:[de,ae],"[":[he],eof:[ve]},ge[fe]={ws:[fe],".":[pe],"[":[he],eof:[ve]},ge[pe]={ws:[pe],ident:[de,ae],0:[de,ae],number:[de,ae]},ge[de]={ident:[de,ae],0:[de,ae],number:[de,ae],ws:[fe,se],".":[pe,se],"[":[he,se],eof:[ve,se]},ge[he]={"'":[me,ae],'"':[be,ae],"[":[he,ce],"]":[fe,le],eof:ye,else:[he,ae]},ge[me]={"'":[he,ae],eof:ye,else:[me,ae]},ge[be]={'"':[he,ae],eof:ye,else:[be,ae]};var _e=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function we(e){return _e.test(e)}function Ie(e){var t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t!==n||34!==t&&39!==t?e:e.slice(1,-1)}function Ee(e){if(void 0===e||null===e)return"eof";var t=e.charCodeAt(0);switch(t){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function xe(e){var t=e.trim();return("0"!==e.charAt(0)||!isNaN(e))&&(we(t)?Ie(t):"*"+t)}function ke(e){var t,n,r,o,i,a,s,c=[],l=-1,u=ue,f=0,p=[];function d(){var t=e[l+1];if(u===me&&"'"===t||u===be&&'"'===t)return l++,r="\\"+t,p[ae](),!0}p[se]=function(){void 0!==n&&(c.push(n),n=void 0)},p[ae]=function(){void 0===n?n=r:n+=r},p[ce]=function(){p[ae](),f++},p[le]=function(){if(f>0)f--,u=he,p[ae]();else{if(f=0,void 0===n)return!1;if(n=xe(n),!1===n)return!1;p[se]()}};while(null!==u)if(l++,t=e[l],"\\"!==t||!d()){if(o=Ee(t),s=ge[u],i=s[o]||s["else"]||ye,i===ye)return;if(u=i[0],a=p[i[1]],a&&(r=i[2],r=void 0===r?t:r,!1===a()))return;if(u===ve)return c}}var Ue=function(){this._cache=Object.create(null)};Ue.prototype.parsePath=function(e){var t=this._cache[e];return t||(t=ke(e),t&&(this._cache[e]=t)),t||[]},Ue.prototype.getPathValue=function(e,t){if(!v(e))return null;var n=this.parsePath(t);if(0===n.length)return null;var r=n.length,o=e,i=0;while(i<r){var a=o[n[i]];if(void 0===a)return null;o=a,i++}return o};var $e,Fe=/<\/?[\w\s="/.':;#-\/]+>/,Ce=/(?:@(?:\.[a-z]+)?:(?:[\w\-_|.]+|\([\w\-_|.]+\)))/g,Me=/^@(?:\.([a-z]+))?:/,Oe=/[()]/g,Te={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()},capitalize:function(e){return""+e.charAt(0).toLocaleUpperCase()+e.substr(1)}},Se=new te,Le=function(e){var t=this;void 0===e&&(e={}),!V&&"undefined"!==typeof window&&window.Vue&&ee(window.Vue);var n=e.locale||"en-US",r=!1!==e.fallbackLocale&&(e.fallbackLocale||"en-US"),o=e.messages||{},i=e.dateTimeFormats||{},a=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||Se,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=void 0===e.sync||!!e.sync,this._fallbackRoot=void 0===e.fallbackRoot||!!e.fallbackRoot,this._formatFallbackMessages=void 0!==e.formatFallbackMessages&&!!e.formatFallbackMessages,this._silentTranslationWarn=void 0!==e.silentTranslationWarn&&e.silentTranslationWarn,this._silentFallbackWarn=void 0!==e.silentFallbackWarn&&!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new Ue,this._dataListeners=[],this._componentInstanceCreatedListener=e.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==e.preserveDirectiveContent&&!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._postTranslation=e.postTranslation||null,this._escapeParameterHtml=e.escapeParameterHtml||!1,this.getChoiceIndex=function(e,n){var r=Object.getPrototypeOf(t);if(r&&r.getChoiceIndex){var o=r.getChoiceIndex;return o.call(t,e,n)}var i=function(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0};return t.locale in t.pluralizationRules?t.pluralizationRules[t.locale].apply(t,[e,n]):i(e,n)},this._exist=function(e,n){return!(!e||!n)&&(!E(t._path.getPathValue(e,n))||!!e[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(o).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,o[e])})),this._initVM({locale:n,fallbackLocale:r,messages:o,dateTimeFormats:i,numberFormats:a})},je={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0}};Le.prototype._checkLocaleMessage=function(e,t,n){var r=[],o=function(e,t,n,r){if(I(n))Object.keys(n).forEach((function(i){var a=n[i];I(a)?(r.push(i),r.push("."),o(e,t,a,r),r.pop(),r.pop()):(r.push(i),o(e,t,a,r),r.pop())}));else if(b(n))n.forEach((function(n,i){I(n)?(r.push("["+i+"]"),r.push("."),o(e,t,n,r),r.pop(),r.pop()):(r.push("["+i+"]"),o(e,t,n,r),r.pop())}));else if(g(n)){var i=Fe.test(n);if(i){var a="Detected HTML in message '"+n+"' of keypath '"+r.join("")+"' at '"+t+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===e?h(a):"error"===e&&m(a)}}};o(t,e,n,r)},Le.prototype._initVM=function(e){var t=V.config.silent;V.config.silent=!0,this._vm=new V({data:e}),V.config.silent=t},Le.prototype.destroyVM=function(){this._vm.$destroy()},Le.prototype.subscribeDataChanging=function(e){this._dataListeners.push(e)},Le.prototype.unsubscribeDataChanging=function(e){$(this._dataListeners,e)},Le.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",(function(){var t=e._dataListeners.length;while(t--)V.nextTick((function(){e._dataListeners[t]&&e._dataListeners[t].$forceUpdate()}))}),{deep:!0})},Le.prototype.watchLocale=function(){if(!this._sync||!this._root)return null;var e=this._vm;return this._root.$i18n.vm.$watch("locale",(function(t){e.$set(e,"locale",t),e.$forceUpdate()}),{immediate:!0})},Le.prototype.onComponentInstanceCreated=function(e){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(e,this)},je.vm.get=function(){return this._vm},je.messages.get=function(){return U(this._getMessages())},je.dateTimeFormats.get=function(){return U(this._getDateTimeFormats())},je.numberFormats.get=function(){return U(this._getNumberFormats())},je.availableLocales.get=function(){return Object.keys(this.messages).sort()},je.locale.get=function(){return this._vm.locale},je.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},je.fallbackLocale.get=function(){return this._vm.fallbackLocale},je.fallbackLocale.set=function(e){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",e)},je.formatFallbackMessages.get=function(){return this._formatFallbackMessages},je.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e},je.missing.get=function(){return this._missing},je.missing.set=function(e){this._missing=e},je.formatter.get=function(){return this._formatter},je.formatter.set=function(e){this._formatter=e},je.silentTranslationWarn.get=function(){return this._silentTranslationWarn},je.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},je.silentFallbackWarn.get=function(){return this._silentFallbackWarn},je.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e},je.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},je.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e},je.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},je.warnHtmlInMessage.set=function(e){var t=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,n!==e&&("warn"===e||"error"===e)){var r=this._getMessages();Object.keys(r).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,r[e])}))}},je.postTranslation.get=function(){return this._postTranslation},je.postTranslation.set=function(e){this._postTranslation=e},Le.prototype._getMessages=function(){return this._vm.messages},Le.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},Le.prototype._getNumberFormats=function(){return this._vm.numberFormats},Le.prototype._warnDefault=function(e,t,n,r,o,i){if(!E(n))return n;if(this._missing){var a=this._missing.apply(null,[e,t,r,o]);if(g(a))return a}else 0;if(this._formatFallbackMessages){var s=k.apply(void 0,o);return this._render(t,i,s.params,t)}return t},Le.prototype._isFallbackRoot=function(e){return!e&&!E(this._root)&&this._fallbackRoot},Le.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn},Le.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)},Le.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},Le.prototype._interpolate=function(e,t,n,r,o,i,a){if(!t)return null;var s,c=this._path.getPathValue(t,n);if(b(c)||I(c))return c;if(E(c)){if(!I(t))return null;if(s=t[n],!g(s)&&!x(s))return null}else{if(!g(c)&&!x(c))return null;s=c}return g(s)&&(s.indexOf("@:")>=0||s.indexOf("@.")>=0)&&(s=this._link(e,t,s,r,"raw",i,a)),this._render(s,o,i,n)},Le.prototype._link=function(e,t,n,r,o,i,a){var s=n,c=s.match(Ce);for(var l in c)if(c.hasOwnProperty(l)){var u=c[l],f=u.match(Me),p=f[0],d=f[1],h=u.replace(p,"").replace(Oe,"");if(F(a,h))return s;a.push(h);var m=this._interpolate(e,t,h,r,"raw"===o?"string":o,"raw"===o?void 0:i,a);if(this._isFallbackRoot(m)){if(!this._root)throw Error("unexpected error");var v=this._root.$i18n;m=v._translate(v._getMessages(),v.locale,v.fallbackLocale,h,r,o,i)}m=this._warnDefault(e,h,m,r,b(i)?i:[i],o),this._modifiers.hasOwnProperty(d)?m=this._modifiers[d](m):Te.hasOwnProperty(d)&&(m=Te[d](m)),a.pop(),s=m?s.replace(u,m):s}return s},Le.prototype._createMessageContext=function(e){var t=b(e)?e:[],n=v(e)?e:{},r=function(e){return t[e]},o=function(e){return n[e]};return{list:r,named:o}},Le.prototype._render=function(e,t,n,r){if(x(e))return e(this._createMessageContext(n));var o=this._formatter.interpolate(e,n,r);return o||(o=Se.interpolate(e,n,r)),"string"!==t||g(o)?o:o.join("")},Le.prototype._appendItemToChain=function(e,t,n){var r=!1;return F(e,t)||(r=!0,t&&(r="!"!==t[t.length-1],t=t.replace(/!/g,""),e.push(t),n&&n[t]&&(r=n[t]))),r},Le.prototype._appendLocaleToChain=function(e,t,n){var r,o=t.split("-");do{var i=o.join("-");r=this._appendItemToChain(e,i,n),o.splice(-1,1)}while(o.length&&!0===r);return r},Le.prototype._appendBlockToChain=function(e,t,n){for(var r=!0,o=0;o<t.length&&y(r);o++){var i=t[o];g(i)&&(r=this._appendLocaleToChain(e,i,n))}return r},Le.prototype._getLocaleChain=function(e,t){if(""===e)return[];this._localeChainCache||(this._localeChainCache={});var n=this._localeChainCache[e];if(!n){t||(t=this.fallbackLocale),n=[];var r,o=[e];while(b(o))o=this._appendBlockToChain(n,o,t);r=b(t)?t:v(t)?t["default"]?t["default"]:null:t,o=g(r)?[r]:r,o&&this._appendBlockToChain(n,o,null),this._localeChainCache[e]=n}return n},Le.prototype._translate=function(e,t,n,r,o,i,a){for(var s,c=this._getLocaleChain(t,n),l=0;l<c.length;l++){var u=c[l];if(s=this._interpolate(u,e[u],r,o,i,a,[r]),!E(s))return s}return null},Le.prototype._t=function(e,t,n,r){var o,i=[],a=arguments.length-4;while(a-- >0)i[a]=arguments[a+4];if(!e)return"";var s=k.apply(void 0,i);this._escapeParameterHtml&&(s.params=L(s.params));var c=s.locale||t,l=this._translate(n,c,this.fallbackLocale,e,r,"string",s.params);if(this._isFallbackRoot(l)){if(!this._root)throw Error("unexpected error");return(o=this._root).$t.apply(o,[e].concat(i))}return l=this._warnDefault(c,e,l,r,i,"string"),this._postTranslation&&null!==l&&void 0!==l&&(l=this._postTranslation(l,e)),l},Le.prototype.t=function(e){var t,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(n))},Le.prototype._i=function(e,t,n,r,o){var i=this._translate(n,t,this.fallbackLocale,e,r,"raw",o);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,o)}return this._warnDefault(t,e,i,r,[o],"raw")},Le.prototype.i=function(e,t,n){return e?(g(t)||(t=this.locale),this._i(e,t,this._getMessages(),null,n)):""},Le.prototype._tc=function(e,t,n,r,o){var i,a=[],s=arguments.length-5;while(s-- >0)a[s]=arguments[s+5];if(!e)return"";void 0===o&&(o=1);var c={count:o,n:o},l=k.apply(void 0,a);return l.params=Object.assign(c,l.params),a=null===l.locale?[l.params]:[l.locale,l.params],this.fetchChoice((i=this)._t.apply(i,[e,t,n,r].concat(a)),o)},Le.prototype.fetchChoice=function(e,t){if(!e||!g(e))return null;var n=e.split("|");return t=this.getChoiceIndex(t,n.length),n[t]?n[t].trim():e},Le.prototype.tc=function(e,t){var n,r=[],o=arguments.length-2;while(o-- >0)r[o]=arguments[o+2];return(n=this)._tc.apply(n,[e,this.locale,this._getMessages(),null,t].concat(r))},Le.prototype._te=function(e,t,n){var r=[],o=arguments.length-3;while(o-- >0)r[o]=arguments[o+3];var i=k.apply(void 0,r).locale||t;return this._exist(n[i],e)},Le.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},Le.prototype.getLocaleMessage=function(e){return U(this._vm.messages[e]||{})},Le.prototype.setLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,t)},Le.prototype.mergeLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,O({},this._vm.messages[e]||{},t))},Le.prototype.getDateTimeFormat=function(e){return U(this._vm.dateTimeFormats[e]||{})},Le.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t),this._clearDateTimeFormat(e,t)},Le.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,O(this._vm.dateTimeFormats[e]||{},t)),this._clearDateTimeFormat(e,t)},Le.prototype._clearDateTimeFormat=function(e,t){for(var n in t){var r=e+"__"+n;this._dateTimeFormatters.hasOwnProperty(r)&&delete this._dateTimeFormatters[r]}},Le.prototype._localizeDateTime=function(e,t,n,r,o){for(var i=t,a=r[i],s=this._getLocaleChain(t,n),c=0;c<s.length;c++){var l=s[c];if(a=r[l],i=l,!E(a)&&!E(a[o]))break}if(E(a)||E(a[o]))return null;var u=a[o],f=i+"__"+o,p=this._dateTimeFormatters[f];return p||(p=this._dateTimeFormatters[f]=new Intl.DateTimeFormat(i,u)),p.format(e)},Le.prototype._d=function(e,t,n){if(!n)return new Intl.DateTimeFormat(t).format(e);var r=this._localizeDateTime(e,t,this.fallbackLocale,this._getDateTimeFormats(),n);if(this._isFallbackRoot(r)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(e,n,t)}return r||""},Le.prototype.d=function(e){var t=[],n=arguments.length-1;while(n-- >0)t[n]=arguments[n+1];var r=this.locale,o=null;return 1===t.length?g(t[0])?o=t[0]:v(t[0])&&(t[0].locale&&(r=t[0].locale),t[0].key&&(o=t[0].key)):2===t.length&&(g(t[0])&&(o=t[0]),g(t[1])&&(r=t[1])),this._d(e,r,o)},Le.prototype.getNumberFormat=function(e){return U(this._vm.numberFormats[e]||{})},Le.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t),this._clearNumberFormat(e,t)},Le.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,O(this._vm.numberFormats[e]||{},t)),this._clearNumberFormat(e,t)},Le.prototype._clearNumberFormat=function(e,t){for(var n in t){var r=e+"__"+n;this._numberFormatters.hasOwnProperty(r)&&delete this._numberFormatters[r]}},Le.prototype._getNumberFormatter=function(e,t,n,r,o,i){for(var a=t,s=r[a],c=this._getLocaleChain(t,n),l=0;l<c.length;l++){var u=c[l];if(s=r[u],a=u,!E(s)&&!E(s[o]))break}if(E(s)||E(s[o]))return null;var f,p=s[o];if(i)f=new Intl.NumberFormat(a,Object.assign({},p,i));else{var d=a+"__"+o;f=this._numberFormatters[d],f||(f=this._numberFormatters[d]=new Intl.NumberFormat(a,p))}return f},Le.prototype._n=function(e,t,n,r){if(!Le.availabilities.numberFormat)return"";if(!n){var o=r?new Intl.NumberFormat(t,r):new Intl.NumberFormat(t);return o.format(e)}var i=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,r),a=i&&i.format(e);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(e,Object.assign({},{key:n,locale:t},r))}return a||""},Le.prototype.n=function(e){var t=[],n=arguments.length-1;while(n-- >0)t[n]=arguments[n+1];var r=this.locale,o=null,i=null;return 1===t.length?g(t[0])?o=t[0]:v(t[0])&&(t[0].locale&&(r=t[0].locale),t[0].key&&(o=t[0].key),i=Object.keys(t[0]).reduce((function(e,n){var r;return F(d,n)?Object.assign({},e,(r={},r[n]=t[0][n],r)):e}),null)):2===t.length&&(g(t[0])&&(o=t[0]),g(t[1])&&(r=t[1])),this._n(e,r,o,i)},Le.prototype._ntp=function(e,t,n,r){if(!Le.availabilities.numberFormat)return[];if(!n){var o=r?new Intl.NumberFormat(t,r):new Intl.NumberFormat(t);return o.formatToParts(e)}var i=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,r),a=i&&i.formatToParts(e);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,n,r)}return a||[]},Object.defineProperties(Le.prototype,je),Object.defineProperty(Le,"availabilities",{get:function(){if(!$e){var e="undefined"!==typeof Intl;$e={dateTimeFormat:e&&"undefined"!==typeof Intl.DateTimeFormat,numberFormat:e&&"undefined"!==typeof Intl.NumberFormat}}return $e}}),Le.install=ee,Le.version="8.22.0";var De=Le;function Ne(e){var t=["languages","language","browserLanguage","userLanguage","systemLanguage"],n=t.flatMap((function(e){return navigator[e]})).filter((function(e){return e})).map((function(e){return e.substring(0,2)})).filter((function(e,t,n){return n.indexOf(e)===t})),r=n.find((function(t){return e.includes(t)}));return r||"en"}function Re(){var e=n("88b1"),t={};return e.keys().forEach((function(n){var r=n.match(/([a-z0-9]+)\./i);if(r&&r.length>1){var o=r[1];t[o]=e(n)}})),t}s.a.use(De);var Pe=new De({locale:Ne(["fr","en"]),fallbackLocale:"en",messages:Re()}),We={name:"EyebrowUserInfo",props:{displayName:{type:String,required:!0},email:{type:String,default:""},picture:{type:String,required:!0},moreLink:{type:String,default:null},logoutLink:{type:String,default:null},menuIsDark:{type:Boolean,default:!0},avatarSize:{type:String,default:"28px"}},data:function(){return{visible:!1}},created:function(){document.addEventListener("click",this.documentClick)},destroyed:function(){document.removeEventListener("click",this.documentClick)},methods:{translate:function(e,t){return Pe.t(e,t)},toggleDropdown:function(e){e.preventDefault(),this.visible=!this.visible},getEventTarget:function(e){var t=e.target||window;if(e.composed&&"function"===typeof e.composedPath){var n=e.composedPath();t=n[0]}return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t},documentClick:function(e){var t=this.$refs.dropdownMenu,n=this.getEventTarget(e);t===n||t.contains(n)||(this.visible=!1)}}},Ae=We;function He(e){var t=n("3edb");t.__inject__&&t.__inject__(e),this["$style"]=t.locals||t}var ze=u(Ae,f,p,!1,He,null,null,!0),Ve=ze.exports;window.customElements.define("eyebrow-user-info",l()(s.a,Ve))},"5ed4":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'.EyebrowUserInfo-user-info .EyebrowUserInfo-fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome,sans-serif;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.EyebrowUserInfo-user-info .EyebrowUserInfo-fa-sign-out:before{content:"\\f08b"}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown{height:100%;width:100%;position:relative;display:inline-block;right:0}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-menu{cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#000}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-menu.EyebrowUserInfo-lighter{color:#fff}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-menu :not(:first-child){margin-left:5px}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-menu>.EyebrowUserInfo-user-name{display:block}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-menu>.EyebrowUserInfo-user-avatar{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-menu>.EyebrowUserInfo-user-avatar>img{background-color:#d0d0d0;border-radius:50%;overflow:hidden}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-content{position:absolute;min-width:280px;background-color:#fff;color:#000;-webkit-box-shadow:0 5px 5px -3px #888,5px 5px 5px -4px #888;box-shadow:0 5px 5px -3px #888,5px 5px 5px -4px #888;z-index:15;right:0;text-align:initial;visibility:visible;opacity:1;-webkit-transition:opacity .8s,visibility .8s;transition:opacity .8s,visibility .8s;-webkit-animation:EyebrowUserInfo-fade .8s;animation:EyebrowUserInfo-fade .8s}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-content.EyebrowUserInfo-closed{visibility:hidden;opacity:0}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-content>div.EyebrowUserInfo-user-details{padding:25px 10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row nowrap;flex-flow:row nowrap;font-size:14px}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-content>div.EyebrowUserInfo-user-details>*{margin:0 0 0 15px}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-content>div.EyebrowUserInfo-user-details>:last-child{margin-right:15px}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-content>div.EyebrowUserInfo-user-details>.EyebrowUserInfo-user-avatar{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-content>div.EyebrowUserInfo-user-details>.EyebrowUserInfo-user-avatar img{background-color:#d0d0d0;border-radius:50%;height:68px;width:68px}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-content>div.EyebrowUserInfo-user-details .EyebrowUserInfo-wrapper-info{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-flow:column nowrap;flex-flow:column nowrap;-ms-flex-item-align:center;align-self:center}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-content>.EyebrowUserInfo-sign-out{display:-webkit-box;display:-ms-flexbox;display:flex;background-color:#d0d0d0;width:100%;text-align:right}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-content>.EyebrowUserInfo-sign-out:hover{background-color:#b7b7b7}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-content>.EyebrowUserInfo-sign-out>a{padding-right:15px;text-decoration:none;color:inherit;width:100%}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-content>.EyebrowUserInfo-sign-out>a>*{line-height:32px;vertical-align:top}.EyebrowUserInfo-user-info>.EyebrowUserInfo-dropdown>.EyebrowUserInfo-dropdown-content>.EyebrowUserInfo-sign-out>a>span{text-transform:uppercase;margin-right:5px}',""]),t.locals={userInfo:"EyebrowUserInfo-user-info",fa:"EyebrowUserInfo-fa",faSignOut:"EyebrowUserInfo-fa-sign-out",dropdown:"EyebrowUserInfo-dropdown",dropdownMenu:"EyebrowUserInfo-dropdown-menu",lighter:"EyebrowUserInfo-lighter",userName:"EyebrowUserInfo-user-name",userAvatar:"EyebrowUserInfo-user-avatar",dropdownContent:"EyebrowUserInfo-dropdown-content",fade:"EyebrowUserInfo-fade",closed:"EyebrowUserInfo-closed",userDetails:"EyebrowUserInfo-user-details",wrapperInfo:"EyebrowUserInfo-wrapper-info",signOut:"EyebrowUserInfo-sign-out"},e.exports=t},"7e84":function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.r(t),n.d(t,"default",(function(){return r}))},8875:function(e,t,n){var r,o,i;(function(n,a){o=[],r=a,i="function"===typeof r?r.apply(t,o):r,void 0===i||(e.exports=i)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(d){var n,r,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=i.exec(d.stack)||a.exec(d.stack),c=s&&s[1]||!1,l=s&&s[2]||!1,u=document.location.href.replace(document.location.hash,""),f=document.getElementsByTagName("script");c===u&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var p=0;p<f.length;p++){if("interactive"===f[p].readyState)return f[p];if(f[p].src===c)return f[p];if(c===u&&f[p].innerHTML&&f[p].innerHTML.trim()===o)return f[p]}return null}}return e}))},"88b1":function(e,t,n){var r={"./en.json":"edd4","./fr.json":"f693"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="88b1"},"8bbf":function(e,t){e.exports=Vue},9072:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return c}));var r=n("7e84"),o=n("b380");function i(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function a(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function s(e,t,n){return s=a()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=Function.bind.apply(e,r),a=new i;return n&&Object(o["a"])(a,n.prototype),a},s.apply(null,arguments)}function c(e){var t="function"===typeof Map?new Map:void 0;return c=function(e){if(null===e||!i(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return s(e,arguments,Object(r["default"])(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Object(o["a"])(n,e)},c(e)}},"95bb":function(e,t,n){var r=n("5ed4");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var o=n("35d6").default;e.exports.__inject__=function(e){o("451da816",r,e)}},"99de":function(e,t,n){"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.r(t),n.d(t,"default",(function(){return i}));var o=n("257e");function i(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?Object(o["default"])(e):t}},b380:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,"a",(function(){return r}))},b803:function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("d4ec")),i=r(n("bee2")),a=r(n("257e")),s=r(n("262e")),c=r(n("99de")),l=r(n("7e84")),u=r(n("9072"));function f(e){var t=p();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}function p(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var d=/-(\w)/g,h=function(e){return e.replace(d,(function(e,t){return t?t.toUpperCase():""}))},m=/\B([A-Z])/g,b=function(e){return e.replace(m,"-$1").toLowerCase()};function v(e){var t={};return e.forEach((function(e){t[e]=void 0})),t}function y(e,t,n){e[t]=[].concat(e[t]||[]),e[t].unshift(n)}function g(e,t){if(e){var n=e.$options[t]||[];n.forEach((function(t){t.call(e)}))}}function _(e,t){return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:t})}var w=function(e){return/function Boolean/.test(String(e))},I=function(e){return/function Number/.test(String(e))};function E(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.type;if(w(r))return"true"===e||"false"===e?"true"===e:""===e||e===t||null!=e;if(I(r)){var o=parseFloat(e,10);return isNaN(o)?e:o}return e}function x(e,t){for(var n=[],r=0,o=t.length;r<o;r++)n.push(k(e,t[r]));return n}function k(e,t){if(3===t.nodeType)return t.data.trim()?t.data:null;if(1===t.nodeType){var n={attrs:U(t),domProps:{innerHTML:t.innerHTML}};return n.attrs.slot&&(n.slot=n.attrs.slot,delete n.attrs.slot),e(t.tagName,n)}return null}function U(e){for(var t={},n=0,r=e.attributes.length;n<r;n++){var o=e.attributes[n];t[o.nodeName]=o.nodeValue}return t}function $(e,t){var n,r,c,l="function"===typeof t&&!t.cid,p=!1;function d(e){if(!p){var t="function"===typeof e?e.options:e,o=Array.isArray(t.props)?t.props:Object.keys(t.props||{});n=o.map(b),r=o.map(h);var i=Array.isArray(t.props)?{}:t.props||{};c=r.reduce((function(e,t,n){return e[t]=i[o[n]],e}),{}),y(t,"beforeCreate",(function(){var e=this,t=this.$emit;this.$emit=function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return e.$root.$options.customElement.dispatchEvent(_(n,o)),t.call.apply(t,[e,n].concat(o))}})),y(t,"created",(function(){var e=this;r.forEach((function(t){e.$root.props[t]=e[t]}))})),r.forEach((function(e){Object.defineProperty(w.prototype,e,{get:function(){return this._wrapper.props[e]},set:function(t){this._wrapper.props[e]=t},enumerable:!1,configurable:!0})})),p=!0}}function m(e,t){var n=h(t),r=e.hasAttribute(t)?e.getAttribute(t):void 0;e._wrapper.props[n]=E(r,t,c[n])}var w=function(c){(0,s.default)(u,c);var l=f(u);function u(){var n;(0,o.default)(this,u),n=l.call(this),n.attachShadow({mode:"open"});var r=n._wrapper=new e({name:"shadow-root",customElement:(0,a.default)(n),shadowRoot:n.shadowRoot,data:function(){return{props:{},slotChildren:[]}},render:function(e){return e(t,{ref:"inner",props:this.props},this.slotChildren)}}),i=new MutationObserver((function(e){for(var t=!1,o=0;o<e.length;o++){var i=e[o];p&&"attributes"===i.type&&i.target===(0,a.default)(n)?m((0,a.default)(n),i.attributeName):t=!0}t&&(r.slotChildren=Object.freeze(x(r.$createElement,n.childNodes)))}));return i.observe((0,a.default)(n),{childList:!0,subtree:!0,characterData:!0,attributes:!0}),n}return(0,i.default)(u,[{key:"connectedCallback",value:function(){var e=this,o=this._wrapper;if(o._isMounted)g(this.vueComponent,"activated");else{var i=function(){o.props=v(r),n.forEach((function(t){m(e,t)}))};p?i():t().then((function(e){(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),d(e),i()})),o.slotChildren=Object.freeze(x(o.$createElement,this.childNodes)),o.$mount(),this.shadowRoot.appendChild(o.$el)}}},{key:"disconnectedCallback",value:function(){g(this.vueComponent,"deactivated")}},{key:"vueComponent",get:function(){return this._wrapper.$refs.inner}}]),u}((0,u.default)(HTMLElement));return l||d(t),w}var F=$;t.default=F},bee2:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.r(t),n.d(t,"default",(function(){return o}))},d4ec:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.r(t),n.d(t,"default",(function(){return r}))},edd4:function(e){e.exports=JSON.parse('{"userInfoPortletUrl.title":"See my account information","buttons.logout":"Sign out"}')},f693:function(e){e.exports=JSON.parse('{"userInfoPortletUrl.title":"Voir les informations de mon compte","buttons.logout":"Déconnexion"}')}}); | ||
//# sourceMappingURL=eyebrow-user-info.min.js.map |
{ | ||
"name": "@uportal/eyebrow-user-info", | ||
"version": "1.35.0", | ||
"version": "1.36.0", | ||
"scripts": { | ||
@@ -24,4 +24,4 @@ "start": "vue-cli-service serve", | ||
"node-sass": "^4.12.0", | ||
"sass-loader": "^8.0.0", | ||
"vue-cli-plugin-i18n": "^0.6.0", | ||
"sass-loader": "^10.0.0", | ||
"vue-cli-plugin-i18n": "^1.0.0", | ||
"vue-template-compiler": "^2.5.18" | ||
@@ -61,3 +61,3 @@ }, | ||
"homepage": "https://github.com/uPortal-contrib/uPortal-web-components#readme", | ||
"gitHead": "fc69e78d2e998f6030cb0926238b09949e7f1316" | ||
"gitHead": "e0141de42b54234ccd4d66ae66f557321baf7fa6" | ||
} |
@@ -19,3 +19,3 @@ import Vue from 'vue'; | ||
'userLanguage', | ||
'systemLanguage' | ||
'systemLanguage', | ||
]; | ||
@@ -25,7 +25,7 @@ | ||
// merge all values into flattened array | ||
.flatMap(key => navigator[key]) | ||
.flatMap((key) => navigator[key]) | ||
// Remove undefined values | ||
.filter(v => v) | ||
.filter((v) => v) | ||
// Shorten strings to use two chars (en-US -> en) | ||
.map(v => v.substring(0, 2)) | ||
.map((v) => v.substring(0, 2)) | ||
// Returns unique values | ||
@@ -35,3 +35,3 @@ .filter((v, i, a) => a.indexOf(v) === i); | ||
// Returns first language matched in available languages | ||
const detectedLocale = allLangs.find(x => availableLanguages.includes(x)); | ||
const detectedLocale = allLangs.find((x) => availableLanguages.includes(x)); | ||
@@ -45,3 +45,3 @@ // If no locale is detected, fallback to 'en' | ||
const messages = {}; | ||
locales.keys().forEach(key => { | ||
locales.keys().forEach((key) => { | ||
const matched = key.match(/([a-z0-9]+)\./i); | ||
@@ -61,3 +61,3 @@ if (matched && matched.length > 1) { | ||
fallbackLocale: 'en', | ||
messages: loadLocaleMessages() | ||
messages: loadLocaleMessages(), | ||
}); |
@@ -9,3 +9,3 @@ import Vue from 'vue'; | ||
i18n, | ||
render: h => h(App) | ||
render: (h) => h(App), | ||
}).$mount('#app'); |
module.exports = { | ||
chainWebpack: config => { | ||
chainWebpack: (config) => { | ||
config.module | ||
@@ -13,4 +13,4 @@ .rule('i18n') | ||
i18n: { | ||
enableInSFC: true | ||
} | ||
enableInSFC: true, | ||
}, | ||
}, | ||
@@ -22,8 +22,8 @@ css: { | ||
modules: { | ||
localIdentName: '[name]-[local]' | ||
localIdentName: '[name]-[local]', | ||
}, | ||
localsConvention: 'camelCaseOnly' | ||
} | ||
} | ||
} | ||
localsConvention: 'camelCaseOnly', | ||
}, | ||
}, | ||
}, | ||
}; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1263396
22
3358