(window.webpackJsonp=window.webpackJsonp||[]).push([["study-template-dialog"],{"+EG+":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var o=n("mrSG"),r=n("q1tI"),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.render=function(){return r.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})},t}(r.Component),s=r.createContext(null)},"/KDZ":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("mrSG"),r=n("q1tI"),i=function(e){function t(t){var n=e.call(this,t)||this;return n._handleChange=function(){n.forceUpdate()},n.state={query:window.matchMedia(n.props.rule)},n}return Object(o.__extends)(t,e),t.prototype.componentDidMount=function(){this._subscribe(this.state.query)},t.prototype.componentDidUpdate=function(e,t){this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))},t.prototype.componentWillUnmount=function(){this._unsubscribe(this.state.query)},t.prototype.render=function(){return this.props.children(this.state.query.matches)},t.getDerivedStateFromProps=function(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null},t.prototype._subscribe=function(e){e.addListener(this._handleChange)},t.prototype._unsubscribe=function(e){e.removeListener(this._handleChange)},t}(r.PureComponent)},"0W35":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("mrSG");o.__exportStar(n("OGHR"),t),o.__exportStar(n("O6kz"),t)},"8NUT":function(e,t,n){e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",footer:"footer-1mvnCDqp",submitButton:"submitButton-2lNICzl3",buttons:"buttons-3yvtQ_uI"}},"8RO/":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var o=n("3ClC");function r(e,t){return{indicators:e.orderedDataSources(!0).filter((function(e){return Object(o.isStudy)(e)&&!Object(o.isESDStudy)(e)})).map((function(e){return{id:e.metaInfo().id,description:e.title(!0,void 0,!0)}})),interval:t}}function i(e){var t=new Map;return e.forEach((function(e){var n=t.get(e.id)||[e.description,0],o=n[0],r=n[1];t.set(e.id,[o,r+1])})),Array.from(t.values()).map((function(e){var t=e[0],n=e[1];return t+(n>1?" x "+n:"")})).join(", ")}},"8Rai":function(e,t,n){"use strict";var o=n("q1tI"),r=function(e,t){var n=void 0===t?{}:t,o=n.bubbles,r=void 0!==o&&o,i=n.cancelable,s=void 0!==i&&i,a=n.detail,u=void 0===a?null:a;try{return new window.CustomEvent(e,{bubbles:r,cancelable:s,detail:u})}catch(l){var c=document.createEvent("CustomEvent");return c.initCustomEvent(e,r,s,u),c}},i=n("R5JZ");function s(e){var t=e.click,n=e.mouseDown,s=e.touchEnd,a=e.touchStart,u=e.handler,c=e.reference,l=e.ownerDocument,p=void 0===l?document:l,d=Object(o.useRef)(null),h=Object(o.useRef)(new r("timestamp").timeStamp);return Object(o.useLayoutEffect)((function(){var e={click:t,mouseDown:n,touchEnd:s,
touchStart:a},o=c?c.current:d.current;return Object(i.a)(h.current,o,u,p,e)}),[t,n,s,a,u]),c||d}n.d(t,"a",(function(){return s}))},ASyk:function(e,t,n){e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 419px)"}},AiMB:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var o=n("mrSG"),r=n("q1tI"),i=n("i8i4"),s=n("e3/o"),a=n("jAh7"),u=n("+EG+"),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._uuid=Object(s.guid)(),t}return Object(o.__extends)(t,e),t.prototype.componentWillUnmount=function(){this._manager().removeWindow(this._uuid)},t.prototype.render=function(){var e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return e.style.top=this.props.top||"",e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||"",i.createPortal(r.createElement(l.Provider,{value:this},this.props.children),e)},t.prototype.moveToTop=function(){this._manager().moveToTop(this._uuid)},t.prototype._manager=function(){return null===this.context?Object(a.getRootOverlapManager)():this.context},t.contextType=u.b,t}(r.PureComponent),l=r.createContext(null)},Ald9:function(e,t){e.exports=''},"D/i5":function(e,t,n){e.exports={inputWrapper:"inputWrapper-6bNZbTW4",textInput:"textInput-3WRWEmm7",error:"error-v0663AtN",success:"success-7iP8kTY5",textInputLeftDirection:"textInputLeftDirection-mlAXPh8V",xsmall:"xsmall-3Ah_Or2-",small:"small-2bmxiJCE",large:"large-1JDowW2I",iconed:"iconed-3ZQvxTot",inputIcon:"inputIcon-W_Bse-a1",clearable:"clearable-2tabt_rj",clearIcon:"clearIcon-389FR5J4"}},E9Pn:function(e,t,n){},F0Qt:function(e){e.exports=JSON.parse('{"wrapper":"wrapper-21v50zE8","input":"input-24iGIobO","box":"box-3574HVnv","icon":"icon-2jsUbtec","noOutline":"noOutline-3VoWuntz","check":"check-382c8Fu1","dot":"dot-3gRd-7Qt"}')},FaeL:function(e,t,n){e.exports={autocomplete:"autocomplete-S6SpJGmW",caret:"caret-3fqF_ykE",icon:"icon-1POgzoN_",textInput:"textInput-1mZnCCcA",suggestions:"suggestions-NOVMFmSY",suggestion:"suggestion-3xakscNf",noResults:"noResults-1pgHgvGL",selected:"selected-3wOAQHl8",opened:"opened-2C-bn3cP"}},GtBf:function(e,t){
e.exports=''},IDfV:function(e,t,n){"use strict";n.r(t);var o,r=n("mrSG"),i=n("Eyy1"),s=n("YFKU"),a=n("q1tI"),u=n.n(a),c=n("i8i4"),l=(n("HbRj"),n("TSYQ")),p=n("fV0y"),d=n("ML8+"),h=n("L0Sj"),m=n("RgaO");!function(e){e[e.Enter=13]="Enter",e[e.Space=32]="Space",e[e.Backspace=8]="Backspace",e[e.DownArrow=40]="DownArrow",e[e.UpArrow=38]="UpArrow",e[e.RightArrow=39]="RightArrow",e[e.LeftArrow=37]="LeftArrow",e[e.Escape=27]="Escape",e[e.Tab=9]="Tab"}(o||(o={}));var f=n("FaeL"),v=n("D/i5");function b(e,t){return""===e||-1!==t.toLowerCase().indexOf(e.toLowerCase())}var _=function(e){function t(t){var n=e.call(this,t)||this;if(n._setInputRef=function(e){e&&(n._inputElement=e,n.props.setupHTMLInput&&n.props.setupHTMLInput(e),n._inputElement.addEventListener("keyup",n._handleKeyUpEnter))},n._handleCaretClick=function(){n.state.isOpened?(n._close(),n.props.preventOnFocusOpen&&n._focus()):n.props.preventOnFocusOpen?n._open():n._focus()},n._handleOutsideClick=function(){var e=n.props,t=e.allowUserDefinedValues,o=e.value,r=e.onChange,i=n.state.queryValue;t?r&&i!==o&&r(i):n.setState(n._valueToQuery(o)),n._close()},n._handleFocus=function(e){n.props.preventOnFocusOpen||n._open(),n.props.onFocus&&n.props.onFocus(e)},n._handleChange=function(e){var t=n.props,o=t.preventSearchOnEmptyQuery,r=t.allowUserDefinedValues,i=t.onChange,s=t.onSuggestionsOpen,a=t.onSuggestionsClose,u=e.currentTarget.value;if(o&&""===u)n.setState({queryValue:u,isOpened:!1,active:void 0}),a&&a();else{var c=n._suggestions(u),l=Object.keys(c).length>0;n.setState({queryValue:u,isOpened:l,active:r?void 0:n._getActiveKeyByValue(u)}),l&&s&&s()}r&&i&&i(u)},n._handleItemClick=function(e){var t=e.currentTarget.id;n.setState({queryValue:n._source()[t]}),n._close(),n._focus(),n.props.onChange&&n.props.onChange(t)},n._handleKeyDown=function(e){if(-1!==[o.DownArrow,o.UpArrow,o.Enter,o.Escape].indexOf(e.which)){var t=n.props,r=t.allowUserDefinedValues,i=t.value,s=t.onChange,a=t.onSuggestionsOpen,u=n.state,c=u.active,l=u.isOpened,p=u.queryValue;l&&(e.preventDefault(),e.stopPropagation());var d=n._suggestions(p);switch(e.which){case o.DownArrow:case o.UpArrow:var h=Object.keys(d);if(!l&&h.length&&e.which===o.DownArrow){n.setState({isOpened:!0,active:h[0]}),a&&a();break}var m=void 0;if(void 0===c){if(e.which===o.UpArrow){n._close();break}m=0}else m=h.indexOf(c)+(e.which===o.UpArrow?-1:1);m<0&&(m=0),
m>h.length-1&&(m=h.length-1);var f=h[m];n.setState({active:f});var v=document.getElementById(f);v&&n._scrollIfNotVisible(v,n._suggestionsElement);break;case o.Escape:n._close(),l||n._blur();break;case o.Enter:var b=c;r&&(l&&b?n.setState(n._valueToQuery(b)):b=p),void 0!==b&&(n._close(),l||n._blur(),b!==i?s&&s(b):n.setState(n._valueToQuery(b)))}}},n._setSuggestionsRef=function(e){e&&(n._suggestionsElement=e)},n._scrollIfNotVisible=function(e,t){var n=t.scrollTop,o=t.scrollTop+t.clientHeight,r=e.offsetTop,i=r+e.clientHeight;r<=n?e.scrollIntoView(!0):i>=o&&e.scrollIntoView(!1)},!function(e){return Array.isArray(e.source)||!e.allowUserDefinedValues}(t))throw new Error("allowUserDefinedProps === true cay only be used if source is array");return n.state=Object(r.__assign)({isOpened:!1,active:t.value},n._valueToQuery(t.value)),n}return Object(r.__extends)(t,e),t.prototype.componentWillReceiveProps=function(e){var t=e.allowUserDefinedValues,n=e.value,o=t?n:""===n?"":this._source()[n]||this.state.queryValue;this.setState({queryValue:o,active:n})},t.prototype.componentWillUnmount=function(){this._inputElement&&this._inputElement.removeEventListener("keyup",this._handleKeyUpEnter)},t.prototype.render=function(){var e=this;return a.createElement(m.a,{handler:this._handleOutsideClick,click:!0},(function(t){var n;return a.createElement("div",{className:l(f.autocomplete,(n={},n[f.opened]=e.state.isOpened,n),"js-dialog-skip-escape"),ref:t},a.createElement(h.a,{name:e.props.name,rightComponent:Object.keys(e._suggestions(e.state.queryValue)).length?a.createElement("div",{className:f.caret,onClick:e._handleCaretClick},a.createElement(d.a,{className:f.icon,dropped:e.state.isOpened})):void 0,maxLength:e.props.maxLength,theme:v,reference:e._setInputRef,className:f.textInput,placeholder:e.props.placeholder,value:e.state.queryValue,error:e.props.error,onChange:e._handleChange,onFocus:e._handleFocus,onBlur:e.props.onBlur,onMouseOver:e.props.onMouseOver,onMouseOut:e.props.onMouseOut,onKeyDown:e._handleKeyDown}),e._renderSuggestions())}))},t.prototype._focus=function(){this._inputElement.focus()},t.prototype._blur=function(){this._inputElement.blur()},t.prototype._open=function(){var e=this.props.onSuggestionsOpen;this._focus(),this.setState({isOpened:!0}),e&&e()},t.prototype._close=function(){var e=this.props.onSuggestionsClose;this.setState({isOpened:!1,active:void 0}),e&&e()},t.prototype._source=function(){var e={};return Array.isArray(this.props.source)?this.props.source.forEach((function(t){e[t]=t})):e=this.props.source,e},t.prototype._suggestions=function(e){var t=this.props.filter,n=void 0===t?b:t,o=this._source(),r={};return Object.keys(o).filter((function(t){return n(e,o[t])})).forEach((function(e){return r[e]=o[e]})),r},t.prototype._renderSuggestions=function(){var e=this,t=this._suggestions(this.state.queryValue),n=Object.keys(t).map((function(n){var o,r=l(f.suggestion,((o={})[f.selected]=e.state.active===n,o));return a.createElement("li",{id:n,key:n,className:r,onClick:e._handleItemClick},t[n])})),o=a.createElement("li",{
className:f.noResults},window.t("No results found"));return!n.length&&this.props.noEmptyText?null:a.createElement("ul",{className:f.suggestions,ref:this._setSuggestionsRef},n.length?n:o)},t.prototype._handleKeyUpEnter=function(e){e.which===o.Enter&&e.stopImmediatePropagation()},t.prototype._getActiveKeyByValue=function(e){for(var t=this.props.filter,n=void 0===t?b:t,o=this._suggestions(e),r=Object.keys(o),i=0,s=r;i'},R5JZ:function(e,t,n){"use strict";function o(e,t,n,o,r){function i(r){if(!(e>r.timeStamp)){var i=r.target;void 0!==n&&null!==t&&null!==i&&i.ownerDocument===o&&(t.contains(i)||n(r))}}return r.click&&o.addEventListener("click",i,!1),r.mouseDown&&o.addEventListener("mousedown",i,!1),r.touchEnd&&o.addEventListener("touchend",i,!1),r.touchStart&&o.addEventListener("touchstart",i,!1),function(){o.removeEventListener("click",i,!1),o.removeEventListener("mousedown",i,!1),o.removeEventListener("touchend",i,!1),o.removeEventListener("touchstart",i,!1)}}n.d(t,"a",(function(){return o}))},Zzxg:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GroupedCheckbox=t.Checkbox=void 0;var o=n("mrSG"),r=n("q1tI"),i=n("TSYQ"),s=n("0W35"),a=n("vCF3"),u=n("qibD");n("E9Pn");var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.render=function(){var e,t,n=i(this.props.className,u.checkbox,((e={})[u.reverse]=Boolean(this.props.labelPositionReverse),e[u.baseline]=Boolean(this.props.labelAlignBaseline),e)),s=i(u.label,((t={})[u.disabled]=this.props.disabled,t)),c=null;return this.props.label&&(c=r.createElement("span",{className:s},this.props.label)),r.createElement("label",{className:n},r.createElement(a.CheckboxInput,o.__assign({},this.props)),c)},t.defaultProps={value:"on"},t}(r.PureComponent);t.Checkbox=c,t.GroupedCheckbox=s.makeSwitchGroupItem(c)},aJjg:function(e,t){e.exports=''},cvzQ:function(e,t,n){e.exports={icon:"icon-3yfDkFjY",dropped:"dropped-50rfOQ8V"}},fV0y:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n("mrSG").__exportStar(n("Zzxg"),t)},"j+m7":function(e,t,n){e.exports={container:"container-3QIqByoJ",withSuggestions:"withSuggestions-22pawmYM",title:"title-2CczwBhX",autocomplete:"autocomplete-2f7MJ4QF",saveSymbol:"saveSymbol-31e2t0Ua",saveInterval:"saveInterval-4oPxh7GH",indicators:"indicators-9neV2G7Q",hintLabel:"hintLabel-35eBgBBj",hintMark:"hintMark-3nV4PBLt"}},qibD:function(e){e.exports=JSON.parse('{"checkbox":"checkbox-3xZUD-2M","reverse":"reverse-3xeTx96y","label":"label-cyItEVpF","baseline":"baseline-6TXKro4X"}')},swCq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Icon=void 0;var o=n("mrSG"),r=n("q1tI");t.Icon=r.forwardRef((function(e,t){var n=e.icon,i=void 0===n?"":n,s=o.__rest(e,["icon"]);return r.createElement("span",o.__assign({},s,{ref:t,dangerouslySetInnerHTML:{__html:i}}))}))},uhCe:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("ASyk"),r={SmallHeight:o["small-height-breakpoint"],
TabletSmall:o["tablet-small-breakpoint"],TabletNormal:o["tablet-normal-breakpoint"]}},vCF3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxInput=void 0;var o=n("q1tI"),r=n("TSYQ"),i=n("Iivm"),s=n("aJjg"),a=n("F0Qt");n("P4l+"),t.CheckboxInput=function(e){var t,n=r(a.box,((t={})[a.check]=!Boolean(e.indeterminate),t[a.dot]=Boolean(e.indeterminate),t[a.noOutline]=-1===e.tabIndex,t));return o.createElement("div",{className:a.wrapper,title:e.title},o.createElement("input",{id:e.id,tabIndex:e.tabIndex,className:a.input,type:"checkbox",name:e.name,checked:e.checked,disabled:e.disabled,value:e.value,autoFocus:e.autoFocus,role:e.role,onChange:function(){e.onChange&&e.onChange(e.value)},ref:e.reference}),o.createElement("div",{className:n},o.createElement(i.Icon,{icon:s,className:a.icon})))}},ycFu:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return h}));var o,r=n("mrSG"),i=n("q1tI"),s=n.n(i),a=n("mwqF"),u=n("Eyy1"),c=(n("YFKU"),n("/3z9")),l=n("g89m"),p=n("8NUT");!function(e){e.Submit="submit",e.Cancel="cancel",e.None="none"}(o||(o={}));var d={defaultActionOnClose:o.Submit,submitOnEnterKey:!0},h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._dialogRef=s.a.createRef(),t._handleClose=function(){var e=t.props,n=e.defaultActionOnClose,r=e.onSubmit,i=e.onCancel,s=e.onClose;switch(n){case o.Submit:r();break;case o.Cancel:i()}s()},t._handleCancel=function(){t.props.onCancel(),t.props.onClose()},t._handleKeyDown=function(e){var n=t.props,o=n.onSubmit,r=n.submitButtonDisabled,i=n.submitOnEnterKey;switch(Object(c.hashFromEvent)(e)){case 13:!r&&i&&(e.preventDefault(),o())}},t}return Object(r.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=(e.render,e.onClose,e.onSubmit,e.onCancel,e.footerLeftRenderer,e.submitButtonText,e.submitButtonDisabled,e.defaultActionOnClose,e.submitOnEnterKey,Object(r.__rest)(e,["render","onClose","onSubmit","onCancel","footerLeftRenderer","submitButtonText","submitButtonDisabled","defaultActionOnClose","submitOnEnterKey"]));return s.a.createElement(l.a,Object(r.__assign)({},t,{ref:this._dialogRef,onKeyDown:this._handleKeyDown,render:this._renderChildren(),onClose:this._handleClose}))},t.prototype.focus=function(){Object(u.ensureNotNull)(this._dialogRef.current).focus()},t.prototype._renderChildren=function(){var e=this;return function(t){var n=e.props,o=n.render,r=n.footerLeftRenderer,i=n.additionalButtons,u=n.submitButtonText,c=n.submitButtonDisabled,l=n.onSubmit;return s.a.createElement(s.a.Fragment,null,o(t),s.a.createElement("div",{className:p.footer},r&&r(t.isSmallWidth),s.a.createElement("div",{className:p.buttons},i,s.a.createElement(a.Button,{name:"cancel",appearance:"stroke",onClick:e._handleCancel},window.t("Cancel")),s.a.createElement("span",{className:p.submitButton},s.a.createElement(a.Button,{disabled:c,name:"submit",onClick:l},u||window.t("Ok"))))))}},t.defaultProps=d,t}(s.a.PureComponent)}}]);