(this["webpackJsonpgonzo-test-client"]=this["webpackJsonpgonzo-test-client"]||[]).push([[3],{Bajw:function(e,t,n){"use strict";var o=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map((function(e){return i(e,n)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function l(e,t){try{return t in e}catch(n){return!1}}function c(e,t,n){var o={};return n.isMergeableObject(e)&&s(e).forEach((function(t){o[t]=i(e[t],n)})),s(t).forEach((function(r){(function(e,t){return l(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(l(e,r)&&n.isMergeableObject(t[r])?o[r]=function(e,t){if(!t.customMerge)return u;var n=t.customMerge(e);return"function"===typeof n?n:u}(r,n)(e[r],t[r],n):o[r]=i(t[r],n))})),o}function u(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||o,n.cloneUnlessOtherwiseSpecified=i;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):c(e,t,n):i(t,n)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return u(e,n,t)}),{})};var p=u;e.exports=p},bU1z:function(e,t,n){"use strict";n.d(t,"a",(function(){return M})),n.d(t,"b",(function(){return G})),n.d(t,"c",(function(){return V}));var o=n("q1tI"),r=n.n(o),i=(n("17x9"),n("Jk4i")),a=n.n(i),s=n("tIrX"),l=n.n(s),c=n("i8i4"),u=n.n(c),p=n("2rMq"),d=n.n(p),f=n("zELP"),h=n.n(f),y=n("7YPn"),v=n.n(y),b=n("TOwV"),g=n("Bajw"),m=n.n(g),S=n("5pjf");function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){for(var n=0;n=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function j(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?j(e):t}var M={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},A="tour:start",D="step:before",z="beacon",B="tooltip",F="step:after",U="tour:end",H="tour:status",_="error:target_not_found",G={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},V={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"},K=d.a.canUseDOM,Y=void 0!==c.createPortal;function W(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent,t=e;return"undefined"===typeof window?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":Boolean(window.opera)||e.indexOf(" OPR/")>=0?t="opera":"undefined"!==typeof window.InstallTrigger?t="firefox":window.chrome?t="chrome":/(Version\/([0-9._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function q(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function J(e){var t=[];return function e(n){if("string"===typeof n||"number"===typeof n)t.push(n);else if(Array.isArray(n))n.forEach((function(t){return e(t)}));else if(n&&n.props){var o=n.props.children;Array.isArray(o)?o.forEach((function(t){return e(t)})):e(o)}}(e),t.join(" ").trim()}function X(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function $(e,t){return!(!l.a.plainObject(e)||!l.a.array(t))&&Object.keys(e).every((function(e){return-1!==t.indexOf(e)}))}function Z(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,o){return t+t+n+n+o+o})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:[]}function Q(e){return e.disableBeacon||"center"===e.placement}function ee(){return!(-1!==["chrome","safari","firefox","opera"].indexOf(W()))}function te(e){var t=e.title,n=e.data,o=e.warn,r=void 0!==o&&o,i=e.debug,a=void 0!==i&&i,s=r?console.warn||console.error:console.log;a&&(t&&n?(console.groupCollapsed("%creact-joyride: ".concat(t),"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach((function(e){l.a.plainObject(e)&&e.key?s.apply(console,[e.key,e.value]):s.apply(console,[e])})):s.apply(console,[n]),console.groupEnd()):console.error("Missing title or data props"))}var ne={action:"",controlled:!1,index:0,lifecycle:G.INIT,size:0,status:V.IDLE},oe=["action","index","lifecycle","status"];function re(e){var t=new Map,n=new Map;return new(function(){function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=o.continuous,i=void 0!==r&&r,a=o.stepIndex,s=o.steps,c=void 0===s?[]:s;E(this,e),x(this,"listener",void 0),x(this,"setSteps",(function(e){var o=t.getState(),r=o.size,i=o.status,a={size:e.length,status:i};n.set("steps",e),i===V.WAITING&&!r&&e.length&&(a.status=V.RUNNING),t.setState(a)})),x(this,"addListener",(function(e){t.listener=e})),x(this,"update",(function(e){if(!$(e,oe))throw new Error("State is not valid. Valid keys: ".concat(oe.join(", ")));t.setState(C({},t.getNextState(C({},t.getState(),{},e,{action:e.action||M.UPDATE}),!0)))})),x(this,"start",(function(e){var n=t.getState(),o=n.index,r=n.size;t.setState(C({},t.getNextState({action:M.START,index:l.a.number(e)?e:o},!0),{status:r?V.RUNNING:V.WAITING}))})),x(this,"stop",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=t.getState(),o=n.index,r=n.status;-1===[V.FINISHED,V.SKIPPED].indexOf(r)&&t.setState(C({},t.getNextState({action:M.STOP,index:o+(e?1:0)}),{status:V.PAUSED}))})),x(this,"close",(function(){var e=t.getState(),n=e.index;e.status===V.RUNNING&&t.setState(C({},t.getNextState({action:M.CLOSE,index:n+1})))})),x(this,"go",(function(e){var n=t.getState(),o=n.controlled,r=n.status;if(!o&&r===V.RUNNING){var i=t.getSteps()[e];t.setState(C({},t.getNextState({action:M.GO,index:e}),{status:i?r:V.FINISHED}))}})),x(this,"info",(function(){return t.getState()})),x(this,"next",(function(){var e=t.getState(),n=e.index;e.status===V.RUNNING&&t.setState(t.getNextState({action:M.NEXT,index:n+1}))})),x(this,"open",(function(){t.getState().status===V.RUNNING&&t.setState(C({},t.getNextState({action:M.UPDATE,lifecycle:G.TOOLTIP})))})),x(this,"prev",(function(){var e=t.getState(),n=e.index;e.status===V.RUNNING&&t.setState(C({},t.getNextState({action:M.PREV,index:n-1})))})),x(this,"reset",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=t.getState(),o=n.controlled;o||t.setState(C({},t.getNextState({action:M.RESET,index:0}),{status:e?V.RUNNING:V.READY}))})),x(this,"skip",(function(){t.getState().status===V.RUNNING&&t.setState({action:M.SKIP,lifecycle:G.INIT,status:V.SKIPPED})})),this.setState({action:M.INIT,controlled:l.a.number(a),continuous:i,index:l.a.number(a)?a:0,lifecycle:G.INIT,status:c.length?V.READY:V.IDLE},!0),this.setSteps(c)}return k(e,[{key:"setState",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.getState(),r=C({},o,{},e),i=r.action,a=r.index,s=r.lifecycle,l=r.size,c=r.status;t.set("action",i),t.set("index",a),t.set("lifecycle",s),t.set("size",l),t.set("status",c),n&&(t.set("controlled",e.controlled),t.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(o)&&this.listener(this.getState())}},{key:"getState",value:function(){return t.size?{action:t.get("action")||"",controlled:t.get("controlled")||!1,index:parseInt(t.get("index"),10),lifecycle:t.get("lifecycle")||"",size:t.get("size")||0,status:t.get("status")||""}:C({},ne)}},{key:"getNextState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getState(),o=n.action,r=n.controlled,i=n.index,a=n.size,s=n.status,c=l.a.number(e.index)?e.index:i,u=r&&!t?i:Math.min(Math.max(c,0),a);return{action:e.action||o,controlled:r,index:u,lifecycle:e.lifecycle||G.INIT,size:e.size||a,status:u===a?V.FINISHED:e.status||s}}},{key:"hasUpdatedState",value:function(e){return JSON.stringify(e)!==JSON.stringify(this.getState())}},{key:"getSteps",value:function(){var e=n.get("steps");return Array.isArray(e)?e:[]}},{key:"getHelpers",value:function(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}}]),e}())(e)}function ie(){return document.scrollingElement||document.createElement("body")}function ae(e){return e?e.getBoundingClientRect():{}}function se(){var e=document,t=e.body,n=e.documentElement;return t&&n?Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight):0}function le(e){return"string"===typeof e?document.querySelector(e):e}function ce(e){return e&&1===e.nodeType?getComputedStyle(e):{}}function ue(e,t,n){var o=v()(e);return o.isSameNode(ie())?n?document:ie():o.scrollHeight>o.offsetHeight||t?o:(o.style.overflow="initial",ie())}function pe(e,t){return!!e&&!ue(e,t).isSameNode(ie())}function de(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"fixed";if(!e||!(e instanceof HTMLElement))return!1;var n=e.nodeName;return"BODY"!==n&&"HTML"!==n&&(ce(e).position===t||de(e.parentNode,t))}function fe(e,t,n){if(!e)return 0;var o=v()(e),r=e.offsetTop;return pe(e,n)&&!function(e){return e.offsetParent!==document.body}(e)&&(r-=o.offsetTop),Math.floor(r-t)}!function(e){function t(t,n,o,r,i,a){var s=r||"<>",l=a||o;if(null==n[o])return t?new Error("Required ".concat(i," `").concat(l,"` was not specified in `").concat(s,"`.")):null;for(var c=arguments.length,u=new Array(c>6?c-6:0),p=6;p0&&void 0!==arguments[0]?arguments[0]:{},t=m()(he,e.options||{}),n=290;window.innerWidth>480&&(n=380),t.width&&(n=window.innerWidth1&&void 0!==arguments[1]&&arguments[1];return l.a.plainObject(e)?!!e.target||(te({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(te({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function Ee(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return l.a.array(e)?e.every((function(e){return Se(e,t)})):(te({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var Oe=function e(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(E(this,e),x(this,"element",void 0),x(this,"options",void 0),x(this,"canBeTabbed",(function(e){var t=e.tabIndex;return(null===t||t<0)&&(t=void 0),!isNaN(t)&&n.canHaveFocus(e,!0)})),x(this,"canHaveFocus",(function(e,t){var o=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(o)&&!e.getAttribute("disabled")||"a"===o&&e.getAttribute("href")||t)&&n.isVisible(e)})),x(this,"findValidTabElements",(function(){return[].slice.call(n.element.querySelectorAll("*"),0).filter(n.canBeTabbed)})),x(this,"handleKeyDown",(function(e){var t=n.options.keyCode,o=void 0===t?9:t;e.keyCode===o&&n.interceptTab(e)})),x(this,"interceptTab",(function(e){e.preventDefault();var t=n.findValidTabElements(),o=e.shiftKey;if(t.length){var r=t.indexOf(document.activeElement);-1===r||!o&&r+1===t.length?r=0:o&&0===r?r=t.length-1:r+=o?-1:1,t[r].focus()}})),x(this,"isHidden",(function(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0,n=window.getComputedStyle(e);return!(!t||e.innerHTML)||(t&&"visible"!==n.getPropertyValue("overflow")||"none"===n.getPropertyValue("display"))})),x(this,"isVisible",(function(e){for(var t=e;t;)if(t instanceof HTMLElement){if(t===document.body)break;if(n.isHidden(t))return!1;t=t.parentNode}return!0})),x(this,"removeScope",(function(){window.removeEventListener("keydown",n.handleKeyDown)})),x(this,"checkFocus",(function(e){document.activeElement!==e&&(e.focus(),window.requestAnimationFrame((function(){return n.checkFocus(e)})))})),x(this,"setFocus",(function(){var e=n.options.selector;if(e){var t=n.element.querySelector(e);t&&window.requestAnimationFrame((function(){return n.checkFocus(t)}))}})),!(t instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=t,this.options=o,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()},ke=function(e){function t(e){var n;if(E(this,t),x(j(n=R(this,I(t).call(this,e))),"setBeaconRef",(function(e){n.beacon=e})),!e.beaconComponent){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",r.id="joyride-beacon-animation",r.appendChild(document.createTextNode("\n @keyframes joyride-beacon-inner {\n 20% {\n opacity: 0.9;\n }\n \n 90% {\n opacity: 0.7;\n }\n }\n \n @keyframes joyride-beacon-outer {\n 0% {\n transform: scale(1);\n }\n \n 45% {\n opacity: 0.7;\n transform: scale(0.75);\n }\n \n 100% {\n opacity: 0.9;\n transform: scale(1);\n }\n }\n ")),o.appendChild(r)}return n}return T(t,e),k(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.shouldFocus;setTimeout((function(){l.a.domElement(e.beacon)&&t&&e.beacon.focus()}),0)}},{key:"componentWillUnmount",value:function(){var e=document.getElementById("joyride-beacon-animation");e&&e.parentNode.removeChild(e)}},{key:"render",value:function(){var e,t=this.props,n=t.beaconComponent,o=t.locale,i=t.onClickOrHover,a=t.styles,s={"aria-label":o.open,onClick:i,onMouseEnter:i,ref:this.setBeaconRef,title:o.open};if(n){var l=n;e=r.a.createElement(l,s)}else e=r.a.createElement("button",w({key:"JoyrideBeacon",className:"react-joyride__beacon",style:a.beacon,type:"button"},s),r.a.createElement("span",{style:a.beaconInner}),r.a.createElement("span",{style:a.beaconOuter}));return e}}]),t}(r.a.Component),xe=function(e){var t=e.styles;return r.a.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight",style:t})},we=function(e){function t(){var e,n;E(this,t);for(var o=arguments.length,r=new Array(o),i=0;i=i&&u<=i+l&&(c>=s&&c<=s+r);p!==t&&n.updateState({mouseOverSpotlight:p})})),x(j(n),"handleScroll",(function(){var e=le(n.props.target);n.scrollParent!==document?(n.state.isScrolling||n.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(n.scrollTimeout),n.scrollTimeout=setTimeout((function(){n.updateState({isScrolling:!1,showSpotlight:!0})}),50)):de(e,"sticky")&&n.updateState({})})),x(j(n),"handleResize",(function(){clearTimeout(n.resizeTimeout),n.resizeTimeout=setTimeout((function(){n._isMounted&&n.forceUpdate()}),100)})),n}return T(t,e),k(t,[{key:"componentDidMount",value:function(){var e=this.props,t=(e.debug,e.disableScrolling,e.disableScrollParentFix),n=le(e.target);this.scrollParent=ue(n,t,!0),this._isMounted=!0,window.addEventListener("resize",this.handleResize)}},{key:"componentDidUpdate",value:function(e){var t=this,n=this.props,o=n.lifecycle,r=n.spotlightClicks,i=a()(e,this.props),s=i.changed;(0,i.changedTo)("lifecycle",G.TOOLTIP)&&(this.scrollParent.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout((function(){t.state.isScrolling||t.updateState({showSpotlight:!0})}),100)),(s("spotlightClicks")||s("disableOverlay")||s("lifecycle"))&&(r&&o===G.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):o!==G.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),this.scrollParent.removeEventListener("scroll",this.handleScroll)}},{key:"updateState",value:function(e){this._isMounted&&this.setState(e)}},{key:"render",value:function(){var e=this.state,t=e.mouseOverSpotlight,n=e.showSpotlight,o=this.props,i=o.disableOverlay,a=o.lifecycle,s=o.onClickOverlay,l=o.placement,c=o.styles;if(i||a!==G.TOOLTIP)return null;var u=c.overlay;ee()&&(u="center"===l?c.overlayLegacyCenter:c.overlayLegacy);var p=C({cursor:"pointer",height:se(),pointerEvents:t?"none":"auto"},u),d="center"!==l&&n&&r.a.createElement(xe,{styles:this.spotlightStyles});if("safari"===W()){p.mixBlendMode,p.zIndex;var f=L(p,["mixBlendMode","zIndex"]);d=r.a.createElement("div",{style:C({},f)},d),delete p.backgroundColor}return r.a.createElement("div",{className:"react-joyride__overlay",style:p,onClick:s},d)}},{key:"spotlightStyles",get:function(){var e=this.state.showSpotlight,t=this.props,n=t.disableScrollParentFix,o=t.spotlightClicks,r=t.spotlightPadding,i=t.styles,a=le(t.target),s=ae(a),l=de(a),c=function(e,t,n){var o=ae(e),r=ue(e,n),i=pe(e,n),a=0;r instanceof HTMLElement&&(a=r.scrollTop);var s=o.top+(i||de(e)?0:a);return Math.floor(s-t)}(a,r,n);return C({},ee()?i.spotlightLegacy:i.spotlight,{height:Math.round(s.height+2*r),left:Math.round(s.left-r),opacity:e?1:0,pointerEvents:o?"none":"auto",position:l?"fixed":"absolute",top:c,transition:"opacity 0.2s",width:Math.round(s.width+2*r)})}}]),t}(r.a.Component),Pe=function(e){var t=e.styles,n=L(e,["styles"]),o=t.color,i=t.height,a=t.width,s=L(t,["color","height","width"]);return r.a.createElement("button",w({style:s,type:"button"},n),r.a.createElement("svg",{width:"number"===typeof a?"".concat(a,"px"):a,height:"number"===typeof i?"".concat(i,"px"):i,viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},r.a.createElement("g",null,r.a.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:o}))))},Ce=function(e){function t(){return E(this,t),R(this,I(t).apply(this,arguments))}return T(t,e),k(t,[{key:"render",value:function(){var e=this.props,t=e.backProps,n=e.closeProps,o=e.continuous,i=e.index,a=e.isLastStep,s=e.primaryProps,l=e.size,c=e.skipProps,u=e.step,p=e.tooltipProps,d=u.content,f=u.hideBackButton,h=u.hideCloseButton,y=u.hideFooter,v=u.showProgress,b=u.showSkipButton,g=u.title,m=u.styles,S=u.locale,E=S.back,O=S.close,k=S.last,x=S.next,P=S.skip,C={primary:O};return o&&(C.primary=a?k:x,v&&(C.primary=r.a.createElement("span",null,C.primary," (",i+1,"/",l,")"))),b&&!a&&(C.skip=r.a.createElement("button",w({style:m.buttonSkip,type:"button","aria-live":"off"},c),P)),!f&&i>0&&(C.back=r.a.createElement("button",w({style:m.buttonBack,type:"button"},t),E)),C.close=!h&&r.a.createElement(Pe,w({styles:m.buttonClose},n)),r.a.createElement("div",w({key:"JoyrideTooltip",className:"react-joyride__tooltip",style:m.tooltip},p),r.a.createElement("div",{style:m.tooltipContainer},g&&r.a.createElement("h4",{style:m.tooltipTitle,"aria-label":g},g),r.a.createElement("div",{style:m.tooltipContent},d)),!y&&r.a.createElement("div",{style:m.tooltipFooter},r.a.createElement("div",{style:m.tooltipFooterSpacer},C.skip),C.back,r.a.createElement("button",w({style:m.buttonNext,type:"button"},s),C.primary)),C.close)}}]),t}(r.a.Component),Te=function(e){function t(){var e,n;E(this,t);for(var o=arguments.length,r=new Array(o),i=0;i0||n===M.PREV),S=y("action")||y("index")||y("lifecycle")||y("status"),E=b("lifecycle",[G.TOOLTIP,G.INIT],G.INIT);if(v("action",[M.NEXT,M.PREV,M.SKIP,M.CLOSE])&&(E||i)&&o(C({},g,{index:e.index,lifecycle:G.COMPLETE,step:e.step,type:F})),S&&d){var O=le(d.target),k=!!O;k&&function(e){if(!e)return!1;for(var t=e;t&&t!==document.body;){if(t instanceof HTMLElement){var n=getComputedStyle(t),o=n.display,r=n.visibility;if("none"===o||"hidden"===r)return!1}t=t.parentNode}return!0}(O)?(b("status",V.READY,V.RUNNING)||b("lifecycle",G.INIT,G.READY))&&o(C({},g,{step:d,type:D})):(console.warn(k?"Target not visible":"Target not mounted",d),o(C({},g,{type:_,step:d})),i||f({index:l+(-1!==[M.PREV].indexOf(n)?-1:1)}))}b("lifecycle",G.INIT,G.READY)&&f({lifecycle:Q(d)||m?G.TOOLTIP:G.BEACON}),y("index")&&te({title:"step:".concat(c),data:[{key:"props",value:this.props}],debug:s}),v("lifecycle",G.BEACON)&&o(C({},g,{step:d,type:z})),v("lifecycle",G.TOOLTIP)&&(o(C({},g,{step:d,type:B})),this.scope=new Oe(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus()),b("lifecycle",[G.TOOLTIP,G.INIT],G.INIT)&&(this.scope.removeScope(),delete this.beaconPopper,delete this.tooltipPopper)}},{key:"componentWillUnmount",value:function(){this.scope.removeScope()}},{key:"render",value:function(){var e=this.props,t=e.continuous,n=e.debug,o=e.helpers,i=e.index,a=e.lifecycle,s=e.shouldScroll,c=e.size,u=e.step,p=le(u.target);return Se(u)&&l.a.domElement(p)?r.a.createElement("div",{key:"JoyrideStep-".concat(i),className:"react-joyride__step"},r.a.createElement(Ie,{id:"react-joyride-portal"},r.a.createElement(we,w({},u,{debug:n,lifecycle:a,onClickOverlay:this.handleClickOverlay}))),r.a.createElement(S.a,w({component:r.a.createElement(Te,{continuous:t,helpers:o,index:i,isLastStep:i+1===c,setTooltipRef:this.setTooltipRef,size:c,step:u}),debug:n,getPopper:this.setPopper,id:"react-joyride-step-".concat(i),isPositioned:u.isFixed||de(p),open:this.open,placement:u.placement,target:u.target},u.floaterProps),r.a.createElement(ke,{beaconComponent:u.beaconComponent,locale:u.locale,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:s,styles:u.styles}))):null}},{key:"open",get:function(){var e=this.props,t=e.step,n=e.lifecycle;return!(!Q(t)&&n!==G.TOOLTIP)}}]),t}(r.a.Component),Le=function(e){function t(e){var n;return E(this,t),x(j(n=R(this,I(t).call(this,e))),"initStore",(function(){var e=n.props,t=e.debug,o=e.getHelpers,r=e.run,i=e.stepIndex;n.store=new re(C({},n.props,{controlled:r&&l.a.number(i)})),n.helpers=n.store.getHelpers();var a=n.store.addListener;return te({title:"init",data:[{key:"props",value:n.props},{key:"state",value:n.state}],debug:t}),a(n.syncState),o(n.helpers),n.store.getState()})),x(j(n),"callback",(function(e){var t=n.props.callback;l.a.function(t)&&t(e)})),x(j(n),"handleKeyboard",(function(e){var t=n.state,o=t.index,r=t.lifecycle,i=n.props.steps[o],a=window.Event?e.which:e.keyCode;r===G.TOOLTIP&&27===a&&i&&!i.disableCloseOnEsc&&n.store.close()})),x(j(n),"syncState",(function(e){n.setState(e)})),x(j(n),"setPopper",(function(e,t){"wrapper"===t?n.beaconPopper=e:n.tooltipPopper=e})),x(j(n),"shouldScroll",(function(e,t,n,o,r,i,a){return!e&&(0!==t||n||o===G.TOOLTIP)&&"center"!==r.placement&&(!r.isFixed||!de(i))&&a.lifecycle!==o&&-1!==[G.BEACON,G.TOOLTIP].indexOf(o)})),n.state=n.initStore(),n}return T(t,e),k(t,[{key:"componentDidMount",value:function(){if(K){var e=this.props,t=e.disableCloseOnEsc,n=e.debug,o=e.run,r=e.steps,i=this.store.start;Ee(r,n)&&o&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}}},{key:"componentDidUpdate",value:function(e,t){if(K){var n=this.state,r=n.action,i=n.controlled,s=n.index,c=n.lifecycle,u=n.status,p=this.props,d=p.debug,f=p.run,h=p.stepIndex,y=p.steps,v=e.steps,b=e.stepIndex,g=this.store,m=g.setSteps,S=g.reset,E=g.start,O=g.stop,k=g.update,x=a()(e,this.props).changed,w=a()(t,this.state),P=w.changed,T=w.changedFrom,I=w.changedTo,N=me(y[s],this.props),L=!function e(t,n){var r,i=Object(o.isValidElement)(t)||Object(o.isValidElement)(n),a=l.a.undefined(t)||l.a.undefined(n);if(q(t)!==q(n)||i||a)return!1;if(l.a.domElement(t))return t.isSameNode(n);if(l.a.number(t))return t===n;if(l.a.function(t))return t.toString()===n.toString();for(var s in t)if(X(t,s)){if("undefined"===typeof t[s]||"undefined"===typeof n[s])return!1;if(r=q(t[s]),-1!==["object","array"].indexOf(r)&&e(t[s],n[s]))continue;if("function"===r&&e(t[s],n[s]))continue;if(t[s]!==n[s])return!1}for(var c in n)if(X(n,c)&&"undefined"===typeof t[c])return!1;return!0}(v,y),j=l.a.number(h)&&x("stepIndex");if(L&&(Ee(y,d)?m(y):console.warn("Steps are not valid",y)),x("run")&&(f?E(h):O()),j){var R=b=0?g:0,r===V.RUNNING&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ie(),n=arguments.length>2?arguments[2]:void 0;new Promise((function(o,r){var i=t.scrollTop,a=e>i?e-i:i-e;h.a.top(t,e,{duration:a<100?50:n},(function(e){return e&&"Element already at target scroll position"!==e.message?r(e):o()}))}))}(g,b,p)}}}},{key:"render",value:function(){if(!K)return null;var e,t=this.state,n=t.index,o=t.status,i=this.props,a=i.continuous,s=i.debug,l=i.disableScrolling,c=i.scrollToFirstStep,u=me(i.steps[n],this.props);return o===V.RUNNING&&u&&(e=r.a.createElement(Ne,w({},this.state,{callback:this.callback,continuous:a,debug:s,setPopper:this.setPopper,helpers:this.helpers,shouldScroll:!l&&(0!==n||c),step:u,update:this.store.update}))),r.a.createElement("div",{className:"react-joyride"},e)}}]),t}(r.a.Component);x(Le,"defaultProps",{continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:function(){},hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]}),t.d=Le}}]); //# sourceMappingURL=main~0be71945.a22aa568.chunk.js.map