(this["webpackJsonpgonzo-test-client"]=this["webpackJsonpgonzo-test-client"]||[]).push([[52],{"/FlJ":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Notification=void 0;var i,o=function(t){if(t&&t.__esModule)return t;var e=f();if(e&&e.has(t))return e.get(t);var n={};if(null!=t){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var r=i?Object.getOwnPropertyDescriptor(t,o):null;r&&(r.get||r.set)?Object.defineProperty(n,o,r):n[o]=t[o]}}n.default=t,e&&e.set(t,n);return n}(n("q1tI")),r=(i=n("17x9"))&&i.__esModule?i:{default:i},a=n("/MKj"),s=n("Ww4f"),u=n("cD3Q"),c=n("4Frj");function f(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return f=function(){return t},t}function l(t){return(l="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})(t)}function p(t,e){for(var n=0;n0?new s.Timer(t,e):null}var _=function(t){function e(t){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=t.notification.dismissAfter;return(n=d(this,m(e).call(this,t)))._remove=function(){var t=n.props;(0,t.removeNotification)(t.notification.id)},n._pauseTimer=function(){n.state.timer.pause()},n._resumeTimer=function(){n.state.timer.resume()},n._setHTML=function(t){return{__html:t}},n._renderButtons=function(){var t=n.props,e=t.className;return t.notification.buttons.map((function(t){var n=t.name,i=t.onClick,r=t.primary;return o.default.createElement("button",{key:n,className:e.button,onClick:i},o.default.createElement("span",{className:e.buttonText},r?o.default.createElement("b",null,n):n))}))},n.state={timer:y(i,n._remove)},n}var n,i,r;return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}(e,t),n=e,(i=[{key:"componentDidMount",value:function(){var t=this.props.notification.onAdd;"function"===typeof t&&t()}},{key:"componentWillUnmount",value:function(){var t=this.props.notification.onRemove;"function"===typeof t&&t()}},{key:"componentWillReceiveProps",value:function(t){var e=t.notification.dismissAfter;this.setState({timer:y(e,this._remove)})}},{key:"render",value:function(){var t=this.props,e=t.className,n=t.notification,i=n.title,r=n.message,a=n.status,s=n.dismissible,u=n.closeButton,c=n.buttons,f=n.image,l=n.allowHTML,p=this.state.timer,d=[e.main,e.status(a),e.buttons(c.length),s&&!u?e.dismissible:null].join(" ");return p&&this._resumeTimer(),o.default.createElement("div",{className:e.wrapper,onClick:s&&!u?this._remove:null,onMouseEnter:p?this._pauseTimer:null,onMouseLeave:p?this._resumeTimer:null},o.default.createElement("div",{className:d},f?o.default.createElement("div",{className:e.imageContainer},o.default.createElement("span",{className:e.image,style:{backgroundImage:"url(".concat(f,")")}})):o.default.createElement("span",{className:e.icon}),o.default.createElement("div",{className:e.meta},i?l?o.default.createElement("h4",{className:e.title,dangerouslySetInnerHTML:this._setHTML(i)}):o.default.createElement("h4",{className:e.title},i):null,r?l?o.default.createElement("p",{className:e.message,dangerouslySetInnerHTML:this._setHTML(r)}):o.default.createElement("p",{className:e.message},r):null),s&&u?o.default.createElement("div",{className:e.closeButtonContainer},o.default.createElement("span",{className:e.closeButton,onClick:this._remove})):null,c.length?o.default.createElement("div",{className:e.buttons(),onClick:this._remove},this._renderButtons()):null))}}])&&p(n.prototype,i),r&&p(n,r),e}(o.Component);e.Notification=_,_.propTypes={className:r.default.shape({main:r.default.string.isRequired,wrapper:r.default.string.isRequired,meta:r.default.string.isRequired,title:r.default.string.isRequired,message:r.default.string.isRequired,imageContainer:r.default.string.isRequired,image:r.default.string.isRequired,icon:r.default.string.isRequired,status:r.default.func.isRequired,dismissible:r.default.string.isRequired,closeButtonContainer:r.default.string.isRequired,closeButton:r.default.string.isRequired,buttons:r.default.func.isRequired,button:r.default.string.isRequired,buttonText:r.default.string.isRequired}).isRequired,notification:r.default.shape({id:r.default.oneOfType([r.default.number,r.default.string]).isRequired,title:r.default.string,message:r.default.string,image:r.default.string,status:r.default.string.isRequired,position:r.default.oneOf((0,s.mapObjectValues)(c.POSITIONS)),dismissAfter:r.default.number.isRequired,dismissible:r.default.bool.isRequired,onAdd:r.default.func,onRemove:r.default.func,closeButton:r.default.bool.isRequired,buttons:r.default.arrayOf(r.default.shape({name:r.default.string.isRequired,onClick:r.default.func})).isRequired,allowHTML:r.default.bool.isRequired}).isRequired,removeNotification:r.default.func.isRequired};var O=(0,a.connect)(null,{removeNotification:u.removeNotification})(_);e.default=O},"1yud":function(t,e,n){"use strict";var i=n("dpjf"),o=i["notifications-system"],r={main:i["notifications-container"],position:function(t){return i["notifications-container--"+t]}},a={enterTimeout:500,leaveTimeout:900,name:{enter:i["notification-wrapper-enter"],leave:i["notification-wrapper-leave"]}},s={main:i.notification,wrapper:i["notification-wrapper"],meta:i["notification-meta"],title:i["notification-title"],message:i["notification-message"],icon:"fa "+i["notification-icon"],imageContainer:i["notification-image-container"],image:i["notification-image"],status:function(t){return i["notification--"+t]},dismissible:i["notification--dismissible"],buttons:function(t){return 0===t?"":1===t?i["notification--buttons-1"]:2===t?i["notification--buttons-2"]:i["notification-buttons"]},closeButtonContainer:i["notification-close-button-container"],closeButton:"fa "+i["notification-close-button"],button:i["notification-button"],buttonText:i["notification-button-text"]};t.exports={smallScreenMin:768,notificationsSystem:{className:o},notificationsContainer:{className:r,transition:a},notification:{className:s}}},"4Frj":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_NOTIFICATION=e.POSITIONS=e.BOTTOM_RIGHT_POSITION=e.BOTTOM_LEFT_POSITION=e.BOTTOM_CENTER=e.BOTTOM=e.TOP_RIGHT_POSITION=e.TOP_LEFT_POSITION=e.TOP_CENTER=e.TOP=e.STATUS=e.ERROR_STATUS=e.WARNING_STATUS=e.SUCCESS_STATUS=e.INFO_STATUS=e.DEFAULT_STATUS=void 0;e.DEFAULT_STATUS="default";e.INFO_STATUS="info";e.SUCCESS_STATUS="success";e.WARNING_STATUS="warning";e.ERROR_STATUS="error";var i={default:"default",info:"info",success:"success",warning:"warning",error:"error"};e.STATUS=i;e.TOP="t";e.TOP_CENTER="tc";e.TOP_LEFT_POSITION="tl";e.TOP_RIGHT_POSITION="tr";e.BOTTOM="b";e.BOTTOM_CENTER="bc";e.BOTTOM_LEFT_POSITION="bl";e.BOTTOM_RIGHT_POSITION="br";var o={top:"t",topCenter:"tc",topLeft:"tl",topRight:"tr",bottom:"b",bottomCenter:"bc",bottomLeft:"bl",bottomRight:"br"};e.POSITIONS=o;var r={status:"default",position:"tr",dismissible:!0,dismissAfter:5e3,allowHTML:!1,closeButton:!1};e.DEFAULT_NOTIFICATION=r},Ww4f:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertStatus=o,e.Timer=function(t,e){var n,i,o=t;this.pause=function(){clearTimeout(n),o-=new Date-i},this.resume=function(){i=new Date,clearTimeout(n),n=setTimeout(e,o)},this.getTimeRemaining=function(){return o}},e.treatNotification=function(t){t.dismissAfter&&(t.dismissAfter=parseInt(t.dismissAfter));t.status=o(t.status),t.buttons||(t.buttons=[]);return t},e.preloadImage=function(t,e){var n=new Image;return n.src=t,n.onload=e,n.onerror=e,n},e.mapObjectValues=function(t){var e=[];return Object.keys(t).forEach((function(n){return e.push(t[n])})),e};var i=n("4Frj");function o(t){if(/^\d{3}$/.test(t))switch(!0){case/^1/.test(t):return i.STATUS.info;case/^2/.test(t):return i.STATUS.success;case/^(4|5)/.test(t):return i.STATUS.error}return t}},dpjf:function(t,e,n){t.exports={"notifications-system":"_1QP6GtDEgkKfLiTjg4zatU","notifications-container":"_3yL3MHCqkbDetrH4PCQ6a8","notifications-container--tc":"_3GaWLZWxN2NsIK50JJxIDv","notifications-container--tr":"_283JT4Pli2Dro-YEpI-JjD","notifications-container--tl":"_1lKZQ1oGqXEn906m4S_yDW","notifications-container--bc":"_2ftK7Ym89NGnKbio_A_IGp","notifications-container--br":"_2nd5IFTQ8VYuc7GsxIuCJ7","notifications-container--bl":"_1hQbBnqyGghpiEvlCPatqA","notification--buttons-1":"_37p2G_kbgdRzJBkb3xElVn","notification-button":"_1CatuaML4FWdViGY2wlqY5","notification--buttons-2":"_2PoxA8Me9EDssd3h2Bx6O0","notification-buttons":"OQZVI4xMuLNohCldYZIFc","notifications-container--b":"_2NEGqY_E9JhgxaO9vUIRGT","notifications-container--t":"_1Zl6ukgKqyyBlxQ7aIJAJW","notification-wrapper":"_8wsdbvgNuxake7CrAufWp","notification-wrapper-enter":"_149a2G6P2uHldu4jTa_P_p","top20px-enter":"OT5RCY6dk-OgHvfJ3zvzl","notification-wrapper-leave":"_1vy5ysPLPW81jaen96rxIA","top20px-leave":"_34tT5UDKlT9YzFJFftEHDd","right20px-enter":"_1almuAU8mitSz1AG23kcIV","right20px-leave":"_2uVAGD_jB3-l0f51W1w5hX","left20px-enter":"_3ePuGFDlJh9qdk-GVF4nr9","left20px-leave":"_1m11d5_qfRC0aNCY2d_6ES","bottom20px-enter":"_2IqVg2POTm23CY51sqI1Ci","bottom20px-leave":"_1DL8zuMvhw7GsLfk8coOLJ","top0-enter":"_5UPnRFbQAyIl9Gk1-lVSS","top0-leave":"_1yjzX-3Ps9D83uSrzEwhob",notification:"_2Cn2Tjrk4xoa7zVGe4Uy_G","notification-image-container":"_2K60Kme25TaUX-W3jSOudg","notification-image":"SlstFiftRTUXEcGznE0An","notification-icon":"_1bFBUJ5g0HO7w0plzpIt8y","notification-meta":"_1hSQVzPPIvQKhkBXB3sM_2","notification-close-button-container":"_3O6nkcMuweiMNluqSqnxba","notification-close-button":"_2xnpTL8bgjiILDe5YkGals","notification-button-text":"_1L56kFaBOEmHcrpnsKuCdx","notification-title":"_2lNlAtZV38VXLrisJ75KRj","notification-message":"_2W8eAWPB1SDTN9aLK5IocC","notification--dismissible":"_2pQDDtXw13iSSmMsWP7miX","notification--default":"_7VKme9wwZCjmN7gma6BGK","notification--success":"_10XLztuPrSG1O9OLZEexX1","notification--info":"_2cDFYswYXMQdeN9C7Q69w0","notification--warning":"_2Uoa3JvyvGBMPfjTFdAFeV","notification--error":"m6Smdm24QK8MW4NlxUbuw","notification--loading":"_3LipzQQChtwzEATCZaU8Ho",rotating:"_1L-oFbxQl1uhZOs6dOYSoB"}},iD2d:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.NotificationsSystem=void 0;var i=function(t){if(t&&t.__esModule)return t;var e=f();if(e&&e.has(t))return e.get(t);var n={};if(null!=t){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var r=i?Object.getOwnPropertyDescriptor(t,o):null;r&&(r.get||r.set)?Object.defineProperty(n,o,r):n[o]=t[o]}}n.default=t,e&&e.set(t,n);return n}(n("q1tI")),o=c(n("17x9")),r=n("/MKj"),a=n("Ww4f"),s=c(n("zCcR")),u=n("4Frj");function c(t){return t&&t.__esModule?t:{default:t}}function f(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return f=function(){return t},t}function l(t){return(l="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})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n