UNPKG

react-period-of-stay-input

Version:

React.js component for entering a period of stay in a hotel: check-in + check-out date

1 lines 21.1 kB
{"id":"R31r","dependencies":[{"name":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/node_modules/react-intl/package.json","includedInParent":true,"mtime":1533713806755},{"name":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/package.json","includedInParent":true,"mtime":1534170011202},{"name":"../locale-data/index.js","loc":{"line":7,"column":26},"parent":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/node_modules/react-intl/lib/index.es.js","resolved":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/node_modules/parcel-bundler/src/builtins/_empty.js"},{"name":"intl-messageformat","loc":{"line":8,"column":30},"parent":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/node_modules/react-intl/lib/index.es.js","resolved":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/node_modules/intl-messageformat/index.js"},{"name":"intl-relativeformat","loc":{"line":9,"column":31},"parent":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/node_modules/react-intl/lib/index.es.js","resolved":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/node_modules/intl-relativeformat/index.js"},{"name":"prop-types","loc":{"line":10,"column":22},"parent":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/node_modules/react-intl/lib/index.es.js","resolved":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/node_modules/prop-types/index.js"},{"name":"react","loc":{"line":11,"column":74},"parent":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/node_modules/react-intl/lib/index.es.js","resolved":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/node_modules/react/index.js"},{"name":"invariant","loc":{"line":12,"column":22},"parent":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/node_modules/react-intl/lib/index.es.js","resolved":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/node_modules/invariant/browser.js"},{"name":"intl-format-cache","loc":{"line":13,"column":35},"parent":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/node_modules/react-intl/lib/index.es.js","resolved":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/node_modules/intl-format-cache/index.js"}],"generated":{"js":"\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:!0}),exports.FormattedHTMLMessage=exports.FormattedMessage=exports.FormattedPlural=exports.FormattedNumber=exports.FormattedRelative=exports.FormattedTime=exports.FormattedDate=exports.IntlProvider=exports.defineMessages=exports.injectIntl=exports.intlShape=exports.addLocaleData=void 0;var t=require(\"../locale-data/index.js\"),e=m(t),n=require(\"intl-messageformat\"),r=m(n),o=require(\"intl-relativeformat\"),a=m(o),i=require(\"prop-types\"),u=m(i),l=require(\"react\"),s=m(l),c=require(\"invariant\"),f=m(c),d=require(\"intl-format-cache\"),p=m(d);function m(t){return t&&t.__esModule?t:{default:t}}var h={locale:\"en\",pluralRuleFunction:function(t,e){var n=String(t).split(\".\"),r=!n[1],o=Number(n[0])==t,a=o&&n[0].slice(-1),i=o&&n[0].slice(-2);return e?1==a&&11!=i?\"one\":2==a&&12!=i?\"two\":3==a&&13!=i?\"few\":\"other\":1==t&&r?\"one\":\"other\"},fields:{year:{displayName:\"year\",relative:{0:\"this year\",1:\"next year\",\"-1\":\"last year\"},relativeTime:{future:{one:\"in {0} year\",other:\"in {0} years\"},past:{one:\"{0} year ago\",other:\"{0} years ago\"}}},month:{displayName:\"month\",relative:{0:\"this month\",1:\"next month\",\"-1\":\"last month\"},relativeTime:{future:{one:\"in {0} month\",other:\"in {0} months\"},past:{one:\"{0} month ago\",other:\"{0} months ago\"}}},day:{displayName:\"day\",relative:{0:\"today\",1:\"tomorrow\",\"-1\":\"yesterday\"},relativeTime:{future:{one:\"in {0} day\",other:\"in {0} days\"},past:{one:\"{0} day ago\",other:\"{0} days ago\"}}},hour:{displayName:\"hour\",relative:{0:\"this hour\"},relativeTime:{future:{one:\"in {0} hour\",other:\"in {0} hours\"},past:{one:\"{0} hour ago\",other:\"{0} hours ago\"}}},minute:{displayName:\"minute\",relative:{0:\"this minute\"},relativeTime:{future:{one:\"in {0} minute\",other:\"in {0} minutes\"},past:{one:\"{0} minute ago\",other:\"{0} minutes ago\"}}},second:{displayName:\"second\",relative:{0:\"now\"},relativeTime:{future:{one:\"in {0} second\",other:\"in {0} seconds\"},past:{one:\"{0} second ago\",other:\"{0} seconds ago\"}}}}};function v(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(Array.isArray(t)?t:[t]).forEach(function(t){t&&t.locale&&(r.default.__addLocaleData(t),a.default.__addLocaleData(t))})}function y(t){for(var e=(t||\"\").split(\"-\");e.length>0;){if(g(e.join(\"-\")))return!0;e.pop()}return!1}function g(t){var e=t&&t.toLowerCase();return!(!r.default.__localeData__[e]||!a.default.__localeData__[e])}var b=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},x=function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")},_=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),w=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},F=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},O=function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},j=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},T=function(t,e){if(!t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e},k=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)},M=u.default.bool,N=u.default.number,P=u.default.string,C=u.default.func,D=u.default.object,I=u.default.oneOf,R=u.default.shape,S=u.default.any,L=u.default.oneOfType,A=I([\"best fit\",\"lookup\"]),E=I([\"narrow\",\"short\",\"long\"]),U=I([\"numeric\",\"2-digit\"]),q=C.isRequired,H={locale:P,formats:D,messages:D,textComponent:S,defaultLocale:P,defaultFormats:D},W={formatDate:q,formatTime:q,formatRelative:q,formatNumber:q,formatPlural:q,formatMessage:q,formatHTMLMessage:q},B=R(F({},H,W,{formatters:D,now:q})),Z={id:P.isRequired,description:L([P,D]),defaultMessage:P},z={localeMatcher:A,formatMatcher:I([\"basic\",\"best fit\"]),timeZone:P,hour12:M,weekday:E,era:E,year:U,month:I([\"numeric\",\"2-digit\",\"narrow\",\"short\",\"long\"]),day:U,hour:U,minute:U,second:U,timeZoneName:I([\"short\",\"long\"])},G={localeMatcher:A,style:I([\"decimal\",\"currency\",\"percent\"]),currency:P,currencyDisplay:I([\"symbol\",\"code\",\"name\"]),useGrouping:M,minimumIntegerDigits:N,minimumFractionDigits:N,maximumFractionDigits:N,minimumSignificantDigits:N,maximumSignificantDigits:N},V={style:I([\"best fit\",\"numeric\"]),units:I([\"second\",\"minute\",\"hour\",\"day\",\"month\",\"year\"])},J={style:I([\"cardinal\",\"ordinal\"])},K=Object.keys(H),Q={\"&\":\"&amp;\",\">\":\"&gt;\",\"<\":\"&lt;\",'\"':\"&quot;\",\"'\":\"&#x27;\"},X=/[&><\"']/g;function Y(t){return(\"\"+t).replace(X,function(t){return Q[t]})}function $(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.reduce(function(e,r){return t.hasOwnProperty(r)?e[r]=t[r]:n.hasOwnProperty(r)&&(e[r]=n[r]),e},{})}function tt(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).intl;(0,f.default)(t,\"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.\")}function et(t,e){if(t===e)return!0;if(\"object\"!==(void 0===t?\"undefined\":b(t))||null===t||\"object\"!==(void 0===e?\"undefined\":b(e))||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(e),a=0;a<n.length;a++)if(!o(n[a])||t[n[a]]!==e[n[a]])return!1;return!0}function nt(t,e,n){var r=t.props,o=t.state,a=t.context,i=void 0===a?{}:a,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=i.intl,s=void 0===l?{}:l,c=u.intl,f=void 0===c?{}:c;return!et(e,r)||!et(n,o)||!(f===s||et($(f,K),$(s,K)))}function rt(t){return t.displayName||t.name||\"Component\"}function ot(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.intlPropName,r=void 0===n?\"intl\":n,o=e.withRef,a=void 0!==o&&o,i=function(e){function n(t,e){x(this,n);var r=T(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t,e));return tt(e),r}return O(n,e),_(n,[{key:\"getWrappedInstance\",value:function(){return(0,f.default)(a,\"[React Intl] To access the wrapped instance, the `{withRef: true}` option must be set when calling: `injectIntl()`\"),this.refs.wrappedInstance}},{key:\"render\",value:function(){return s.default.createElement(t,F({},this.props,w({},r,this.context.intl),{ref:a?\"wrappedInstance\":null}))}}]),n}(l.Component);return i.displayName=\"InjectIntl(\"+rt(t)+\")\",i.contextTypes={intl:B},i.WrappedComponent=t,i}function at(t){return t}function it(t){return r.default.prototype._resolveLocale(t)}function ut(t){return r.default.prototype._findPluralRuleFunction(t)}var lt=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};x(this,t);var r=\"ordinal\"===n.style,o=ut(it(e));this.format=function(t){return o(t,r)}},st=Object.keys(z),ct=Object.keys(G),ft=Object.keys(V),dt=Object.keys(J),pt={second:60,minute:60,hour:24,day:30,month:12};function mt(t){var e=a.default.thresholds;e.second=t.second,e.minute=t.minute,e.hour=t.hour,e.day=t.day,e.month=t.month}function ht(t,e,n){var r=t&&t[e]&&t[e][n];if(r)return r}function vt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=t.locale,a=t.formats,i=r.format,u=new Date(n),l=i&&ht(a,\"date\",i),s=$(r,st,l);try{return e.getDateTimeFormat(o,s).format(u)}catch(t){0}return String(u)}function yt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=t.locale,a=t.formats,i=r.format,u=new Date(n),l=i&&ht(a,\"time\",i),s=$(r,st,l);s.hour||s.minute||s.second||(s=F({},s,{hour:\"numeric\",minute:\"numeric\"}));try{return e.getDateTimeFormat(o,s).format(u)}catch(t){0}return String(u)}function gt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=t.locale,i=t.formats,u=r.format,l=new Date(n),s=new Date(r.now),c=u&&ht(i,\"relative\",u),f=$(r,ft,c),d=F({},a.default.thresholds);mt(pt);try{return e.getRelativeFormat(o,f).format(l,{now:isFinite(s)?s:e.now()})}catch(t){0}finally{mt(d)}return String(l)}function bt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=t.locale,a=t.formats,i=r.format,u=i&&ht(a,\"number\",i),l=$(r,ct,u);try{return e.getNumberFormat(o,l).format(n)}catch(t){0}return String(n)}function xt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=t.locale,a=$(r,dt);try{return e.getPluralFormat(o,a).format(n)}catch(t){0}return\"other\"}function _t(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=t.locale,a=t.formats,i=t.messages,u=t.defaultLocale,l=t.defaultFormats,s=n.id,c=n.defaultMessage;(0,f.default)(s,\"[React Intl] An `id` must be provided to format a message.\");var d=i&&i[s];if(!(Object.keys(r).length>0))return d||c||s;var p=void 0;if(d)try{p=e.getMessageFormat(d,o,a).format(r)}catch(t){0}else 0;if(!p&&c)try{p=e.getMessageFormat(c,u,l).format(r)}catch(t){0}return p||d||c||s}function wt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return _t(t,e,n,Object.keys(r).reduce(function(t,e){var n=r[e];return t[e]=\"string\"==typeof n?Y(n):n,t},{}))}var Ft=Object.freeze({formatDate:vt,formatTime:yt,formatRelative:gt,formatNumber:bt,formatPlural:xt,formatMessage:_t,formatHTMLMessage:wt}),Ot=Object.keys(H),jt=Object.keys(W),Tt={formats:{},messages:{},textComponent:\"span\",defaultLocale:\"en\",defaultFormats:{}},kt=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};x(this,e);var o=T(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));(0,f.default)(\"undefined\"!=typeof Intl,\"[React Intl] The `Intl` APIs must be available in the runtime, and do not appear to be built-in. An `Intl` polyfill should be loaded.\\nSee: http://formatjs.io/guides/runtime-environments/\");var i=n.intl,u=void 0;u=isFinite(t.initialNow)?Number(t.initialNow):i?i.now():Date.now();var l=(i||{}).formatters,s=void 0===l?{getDateTimeFormat:(0,p.default)(Intl.DateTimeFormat),getNumberFormat:(0,p.default)(Intl.NumberFormat),getMessageFormat:(0,p.default)(r.default),getRelativeFormat:(0,p.default)(a.default),getPluralFormat:(0,p.default)(lt)}:l;return o.state=F({},s,{now:function(){return o._didDisplay?Date.now():u}}),o}return O(e,t),_(e,[{key:\"getConfig\",value:function(){var t=this.context.intl,e=$(this.props,Ot,t);for(var n in Tt)void 0===e[n]&&(e[n]=Tt[n]);if(!y(e.locale)){var r=e,o=(r.locale,r.defaultLocale),a=r.defaultFormats;0,e=F({},e,{locale:o,formats:a,messages:Tt.messages})}return e}},{key:\"getBoundFormatFns\",value:function(t,e){return jt.reduce(function(n,r){return n[r]=Ft[r].bind(null,t,e),n},{})}},{key:\"getChildContext\",value:function(){var t=this.getConfig(),e=this.getBoundFormatFns(t,this.state),n=this.state,r=n.now,o=j(n,[\"now\"]);return{intl:F({},t,e,{formatters:o,now:r})}}},{key:\"shouldComponentUpdate\",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return nt.apply(void 0,[this].concat(e))}},{key:\"componentDidMount\",value:function(){this._didDisplay=!0}},{key:\"render\",value:function(){return l.Children.only(this.props.children)}}]),e}(l.Component);kt.displayName=\"IntlProvider\",kt.contextTypes={intl:B},kt.childContextTypes={intl:B.isRequired};var Mt=function(t){function e(t,n){x(this,e);var r=T(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return tt(n),r}return O(e,t),_(e,[{key:\"shouldComponentUpdate\",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return nt.apply(void 0,[this].concat(e))}},{key:\"render\",value:function(){var t=this.context.intl,e=t.formatDate,n=t.textComponent,r=this.props,o=r.value,a=r.children,i=e(o,this.props);return\"function\"==typeof a?a(i):s.default.createElement(n,null,i)}}]),e}(l.Component);Mt.displayName=\"FormattedDate\",Mt.contextTypes={intl:B};var Nt=function(t){function e(t,n){x(this,e);var r=T(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return tt(n),r}return O(e,t),_(e,[{key:\"shouldComponentUpdate\",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return nt.apply(void 0,[this].concat(e))}},{key:\"render\",value:function(){var t=this.context.intl,e=t.formatTime,n=t.textComponent,r=this.props,o=r.value,a=r.children,i=e(o,this.props);return\"function\"==typeof a?a(i):s.default.createElement(n,null,i)}}]),e}(l.Component);Nt.displayName=\"FormattedTime\",Nt.contextTypes={intl:B};var Pt=1e3,Ct=6e4,Dt=36e5,It=864e5,Rt=2147483647;function St(t){var e=Math.abs(t);return e<Ct?\"second\":e<Dt?\"minute\":e<It?\"hour\":\"day\"}function Lt(t){switch(t){case\"second\":return Pt;case\"minute\":return Ct;case\"hour\":return Dt;case\"day\":return It;default:return Rt}}function At(t,e){if(t===e)return!0;var n=new Date(t).getTime(),r=new Date(e).getTime();return isFinite(n)&&isFinite(r)&&n===r}var Et=function(t){function e(t,n){x(this,e);var r=T(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));tt(n);var o=isFinite(t.initialNow)?Number(t.initialNow):n.intl.now();return r.state={now:o},r}return O(e,t),_(e,[{key:\"scheduleNextUpdate\",value:function(t,e){var n=this;clearTimeout(this._timer);var r=t.value,o=t.units,a=t.updateInterval,i=new Date(r).getTime();if(a&&isFinite(i)){var u=i-e.now,l=Lt(o||St(u)),s=Math.abs(u%l),c=u<0?Math.max(a,l-s):Math.max(a,s);this._timer=setTimeout(function(){n.setState({now:n.context.intl.now()})},c)}}},{key:\"componentDidMount\",value:function(){this.scheduleNextUpdate(this.props,this.state)}},{key:\"componentWillReceiveProps\",value:function(t){At(t.value,this.props.value)||this.setState({now:this.context.intl.now()})}},{key:\"shouldComponentUpdate\",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return nt.apply(void 0,[this].concat(e))}},{key:\"componentWillUpdate\",value:function(t,e){this.scheduleNextUpdate(t,e)}},{key:\"componentWillUnmount\",value:function(){clearTimeout(this._timer)}},{key:\"render\",value:function(){var t=this.context.intl,e=t.formatRelative,n=t.textComponent,r=this.props,o=r.value,a=r.children,i=e(o,F({},this.props,this.state));return\"function\"==typeof a?a(i):s.default.createElement(n,null,i)}}]),e}(l.Component);Et.displayName=\"FormattedRelative\",Et.contextTypes={intl:B},Et.defaultProps={updateInterval:1e4};var Ut=function(t){function e(t,n){x(this,e);var r=T(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return tt(n),r}return O(e,t),_(e,[{key:\"shouldComponentUpdate\",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return nt.apply(void 0,[this].concat(e))}},{key:\"render\",value:function(){var t=this.context.intl,e=t.formatNumber,n=t.textComponent,r=this.props,o=r.value,a=r.children,i=e(o,this.props);return\"function\"==typeof a?a(i):s.default.createElement(n,null,i)}}]),e}(l.Component);Ut.displayName=\"FormattedNumber\",Ut.contextTypes={intl:B};var qt=function(t){function e(t,n){x(this,e);var r=T(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return tt(n),r}return O(e,t),_(e,[{key:\"shouldComponentUpdate\",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return nt.apply(void 0,[this].concat(e))}},{key:\"render\",value:function(){var t=this.context.intl,e=t.formatPlural,n=t.textComponent,r=this.props,o=r.value,a=r.other,i=r.children,u=e(o,this.props),l=this.props[u]||a;return\"function\"==typeof i?i(l):s.default.createElement(n,null,l)}}]),e}(l.Component);qt.displayName=\"FormattedPlural\",qt.contextTypes={intl:B},qt.defaultProps={style:\"cardinal\"};var Ht=function(t){function e(t,n){x(this,e);var r=T(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return tt(n),r}return O(e,t),_(e,[{key:\"shouldComponentUpdate\",value:function(t){var e=this.props.values;if(!et(t.values,e))return!0;for(var n=F({},t,{values:e}),r=arguments.length,o=Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];return nt.apply(void 0,[this,n].concat(o))}},{key:\"render\",value:function(){var t,e=this.context.intl,n=e.formatMessage,r=e.textComponent,o=this.props,a=o.id,i=o.description,u=o.defaultMessage,s=o.values,c=o.tagName,f=void 0===c?r:c,d=o.children,p=void 0,m=void 0,h=void 0;if(s&&Object.keys(s).length>0){var v=Math.floor(1099511627776*Math.random()).toString(16),y=(t=0,function(){return\"ELEMENT-\"+v+\"-\"+(t+=1)});p=\"@__\"+v+\"__@\",m={},h={},Object.keys(s).forEach(function(t){var e=s[t];if((0,l.isValidElement)(e)){var n=y();m[t]=p+n+p,h[n]=e}else m[t]=e})}var g=n({id:a,description:i,defaultMessage:u},m||s),b=void 0;return b=h&&Object.keys(h).length>0?g.split(p).filter(function(t){return!!t}).map(function(t){return h[t]||t}):[g],\"function\"==typeof d?d.apply(void 0,k(b)):l.createElement.apply(void 0,[f,null].concat(k(b)))}}]),e}(l.Component);Ht.displayName=\"FormattedMessage\",Ht.contextTypes={intl:B},Ht.defaultProps={values:{}};var Wt=function(t){function e(t,n){x(this,e);var r=T(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return tt(n),r}return O(e,t),_(e,[{key:\"shouldComponentUpdate\",value:function(t){var e=this.props.values;if(!et(t.values,e))return!0;for(var n=F({},t,{values:e}),r=arguments.length,o=Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];return nt.apply(void 0,[this,n].concat(o))}},{key:\"render\",value:function(){var t=this.context.intl,e=t.formatHTMLMessage,n=t.textComponent,r=this.props,o=r.id,a=r.description,i=r.defaultMessage,u=r.values,l=r.tagName,c=void 0===l?n:l,f=r.children,d=e({id:o,description:a,defaultMessage:i},u);if(\"function\"==typeof f)return f(d);var p={__html:d};return s.default.createElement(c,{dangerouslySetInnerHTML:p})}}]),e}(l.Component);Wt.displayName=\"FormattedHTMLMessage\",Wt.contextTypes={intl:B},Wt.defaultProps={values:{}},v(h),v(e.default),exports.addLocaleData=v,exports.intlShape=B,exports.injectIntl=ot,exports.defineMessages=at,exports.IntlProvider=kt,exports.FormattedDate=Mt,exports.FormattedTime=Nt,exports.FormattedRelative=Et,exports.FormattedNumber=Ut,exports.FormattedPlural=qt,exports.FormattedMessage=Ht,exports.FormattedHTMLMessage=Wt;","map":null},"hash":"1a40817980f367c4a62f74c18cc79130","cacheData":{"env":{"NODE_ENV":"production"}}}