UNPKG

20.1 kBJavaScriptView Raw
1(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{"1hPQ":function(e,t,n){"use strict";var r=n("q1tI"),o=n.n(r);function a(e){return(a="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})(e)}function i(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 c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var s=function(e){!function(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&&c(e,t)}(s,e);var t,n,r,a=function(e){function t(){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}}return function(){var n,r=u(e);if(t()){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this,e)).state={hasError:!1},t}return t=s,r=[{key:"getDerivedStateFromError",value:function(){return{hasError:!0}}}],(n=[{key:"componentDidCatch",value:function(e,t){console.error(e),console.error(t)}},{key:"render",value:function(){return this.state.hasError?this.props.showNothing?null:o.a.createElement("h1",null,"Something went wrong."):this.props.children}}])&&i(t.prototype,n),r&&i(t,r),s}(o.a.Component);t.a=s},"7S/C":function(e,t,n){e.exports=n.p+"de977852ca1c04f2d2573e0b234bb58c.png"},"8oxB":function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var l,u=[],s=!1,f=-1;function p(){s&&l&&(s=!1,l.length?u=l.concat(u):f=-1,u.length&&m())}function m(){if(!s){var e=c(p);s=!0;for(var t=u.length;t;){for(l=u,u=[];++f<t;)l&&l[f].run();f=-1,t=u.length}l=null,s=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function y(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||s||c(m)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},ECyS:function(e,t,n){"use strict";function r(e){return Object.prototype.toString.call(e).slice(8,-1)}function o(e){return"Object"===r(e)&&(e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype)}function a(e){return"Array"===r(e)}function i(e){return"Symbol"===r(e)}function c(e,t,n,r){var o=r.propertyIsEnumerable(t)?"enumerable":"nonenumerable";"enumerable"===o&&(e[t]=n),"nonenumerable"===o&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function l(e,t,n){if(!o(t))return n&&a(n)&&n.forEach((function(n){t=n(e,t)})),t;var r={};if(o(e)){var u=Object.getOwnPropertyNames(e),s=Object.getOwnPropertySymbols(e);r=u.concat(s).reduce((function(n,r){var o=e[r];return(!i(r)&&!Object.getOwnPropertyNames(t).includes(r)||i(r)&&!Object.getOwnPropertySymbols(t).includes(r))&&c(n,r,o,e),n}),{})}var f=Object.getOwnPropertyNames(t),p=Object.getOwnPropertySymbols(t);return f.concat(p).reduce((function(r,i){var u=t[i],s=o(e)?e[i]:void 0;return n&&a(n)&&n.forEach((function(e){u=e(s,u)})),void 0!==s&&o(u)&&(u=l(s,u,n)),c(r,i,u,t),r}),r)}t.a=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=null,a=e;return o(e)&&e.extensions&&1===Object.keys(e).length&&(a={},r=e.extensions),t.reduce((function(e,t){return l(e,t,r)}),a)}},IPqE:function(e,t,n){"use strict";var r=n("q1tI"),o=n.n(r),a=n("17x9"),i=n.n(a);function c(e){return(c="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})(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(n,!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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 p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=function(e){!function(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&&p(e,t)}(i,e);var t,n,r,a=function(e){function t(){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}}return function(){var n,r=h(e);if(t()){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}(i);function i(){return s(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"getStyles",value:function(){return{base:{display:"flex",flexDirection:this.props.direction,flexWrap:this.props.wrap,justifyContent:this.props.justifyContent,alignItems:this.props.alignItems,alignContent:this.props.alignContent,order:this.props.order,flexGrow:this.props.grow,flexShrink:this.props.shrink,flexBasis:this.props.basis,alignSelf:this.props.alignSelf},style:this.props.style}}},{key:"render",value:function(){var e=this.getStyles();return o.a.createElement("div",{id:this.props.id,onClick:this.props.clickHandler,style:u(u({},e.base),e.style)},this.props.children)}}])&&f(t.prototype,n),r&&f(t,r),i}(o.a.Component);y(d,"propTypes",{direction:i.a.oneOf(["row","rowReverse","column","columnReverse"]),wrap:i.a.oneOf(["nowrap","wrap","wrap-reverse"]),justifyContent:i.a.oneOf(["flex-start","flex-end","center","space-between","space-around"]),alignItems:i.a.oneOf(["flex-start","flex-end","center","baseline","stretch"]),alignContent:i.a.oneOf(["flex-start","flex-end","center","space-between","space-around","stretch"]),grow:i.a.number,shrink:i.a.number,basis:i.a.string,order:i.a.number,alignSelf:i.a.oneOf(["auto","flex-start","flex-end","center","baseline","stretch"]),children:i.a.node.isRequired,clickHandler:i.a.func}),y(d,"defaultProps",{direction:"row",wrap:"nowrap",justifyContent:"center",alignItems:"center",alignContent:"stretch",grow:0,shrink:1,basis:"auto",alignSelf:"auto",order:0,style:{},clickHandler:function(){}}),t.a=d},Q8Ud:function(e,t,n){e.exports=n.p+"df4364beafb3cc54469f3dec318953fd.png"},TAZq:function(e,t,n){var r,o,a;function i(e){return(i="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})(e)}a=function(){"use strict";return function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,a,i,c,l,u,s,f){switch(n){case 1:if(0===s&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}},"object"===i(t)&&void 0!==e?e.exports=a():(r=a(),void 0===(o="function"==typeof r?r.call(t,n,t,e):r)||(e.exports=o))},UMV1:function(e,t,n){"use strict";var r=n("q1tI"),o=n.n(r),a=n("vOnD"),i=n("f3zc"),c=n("ma3e"),l=function(e){var t=e.navHeight,n=e.navWidth,r=e.display,a=e.onClick,i={position:"fixed",left:n?n-12:-12,visibility:r?"visible":"hidden",width:r?12:0,top:t/2-8,backgroundColor:"inherit",boxShadow:"none",cursor:"pointer",borderRadius:"0px",fontSize:12,color:"#444",textAlign:"center",verticalAlign:"middle"};return o.a.createElement("div",{style:i,onClick:a},o.a.createElement(c.b,null))},u=n("lQ7N"),s=a.c.div.withConfig({displayName:"content__AuspiceNavBarContainer",componentId:"jg0fvy-0"})(["display:flex;flex-direction:row;align-items:center;justify-content:center;height:100%;"]),f=a.c.a.withConfig({displayName:"content__Title",componentId:"jg0fvy-1"})(["padding:0px;text-decoration:none;color:",";font-size:20px;font-weight:400;cursor:pointer;letter-spacing:1rem;"],(function(e){return e.theme.color})),p=a.c.a.withConfig({displayName:"content__LogoLink",componentId:"jg0fvy-2"})(["padding:5px 5px;width:50px;cursor:pointer;"]),m=a.c.div.withConfig({displayName:"content__NarrativeTitle",componentId:"jg0fvy-3"})(["white-space:nowrap;font-size:1.7rem;margin-left:auto;padding:0px 12px;float:right;color:",";max-width:","px;overflow:hidden;text-overflow:ellipsis;"],(function(e){return e.theme.color}),(function(e){return e.width-90})),h=n("uN13"),y=a.c.div.withConfig({displayName:"navBar__NavBarContainer",componentId:"ygpsg-0"})(["left:0;max-width:960px;margin-top:auto;margin-right:auto;margin-bottom:auto;margin-left:auto;height:","px;justify-content:space-between;align-items:center;overflow:hidden;z-index:100;transition:left .3s ease-out;"],(function(e){return e.narrative?i.F:i.G})),d=Object(h.b)("navbarComponent")?Object(h.a)("navbarComponent"):function(e){var t=e.narrativeTitle,n=e.sidebar,r=e.width;return n?o.a.createElement(s,null,o.a.createElement("div",{style:{flex:1}}),o.a.createElement(p,{href:"/"},o.a.createElement("img",{alt:"splashPage",width:"40px",src:u})),o.a.createElement("div",{style:{flex:1}}),function(e,t){return e?o.a.createElement(m,{width:t,href:"/"},e):o.a.createElement(f,{href:"/"},"auspice")}(t,r),o.a.createElement("div",{style:{flex:1}})):null};t.a=function(e){var t=e.sidebar,n=e.toggleHandler,r=e.narrativeTitle,a=e.width,c=t&&!r;return o.a.createElement(y,null,o.a.createElement(d,{narrativeTitle:r,sidebar:t,width:a}),o.a.createElement(l,{navHeight:i.G,navWidth:a,display:c,onClick:n}))}},Wwog:function(e,t,n){"use strict";function r(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}t.a=function(e,t){var n;void 0===t&&(t=r);var o,a=[],i=!1;return function(){for(var r=arguments.length,c=new Array(r),l=0;l<r;l++)c[l]=arguments[l];return i&&n===this&&t(c,a)||(o=e.apply(this,c),i=!0,n=this,a=c),o}}},Y2gU:function(e,t,n){e.exports=n.p+"225a1a237080a0c8de490f3c6e57e6d9.png"},cnMc:function(e,t,n){e.exports=n.p+"6c1eb6bd79ff036a7ae982d230120a88.png"},lQ7N:function(e,t,n){e.exports=n.p+"1ffc23cfee00e9e13194f13f3a7ce418.svg"},"mCM/":function(e,t,n){e.exports=n.p+"117274a6ca79f7ca0a431dd441a10dba.png"},ov0K:function(e,t,n){e.exports=n.p+"9deeb1b44ae410741a8fe1fc1de28cb6.png"},ssdp:function(e,t,n){"use strict";n.r(t);var r,o=n("q1tI"),a=n.n(o),i=n("/MKj"),c=n("vOnD"),l=n("UMV1"),u=n("IPqE"),s=[a.a.createElement("a",{key:1,href:"http://www.fredhutch.org/",target:"_blank",rel:"noreferrer noopener"},a.a.createElement("img",{alt:"logo",width:"75",src:n("Q8Ud")})),a.a.createElement("a",{key:2,href:"http://www.eb.tuebingen.mpg.de/",target:"_blank",rel:"noreferrer noopener"},a.a.createElement("img",{alt:"logo",width:"65",src:n("Y2gU")})),a.a.createElement("a",{key:3,href:"https://www.nih.gov/",target:"_blank",rel:"noreferrer noopener"},a.a.createElement("img",{alt:"logo",width:"52",src:n("mCM/")})),a.a.createElement("a",{key:4,href:"https://erc.europa.eu/",target:"_blank",rel:"noreferrer noopener"},a.a.createElement("img",{alt:"logo",width:"60",src:n("cnMc")})),a.a.createElement("a",{key:5,href:"https://www.openscienceprize.org/",target:"_blank",rel:"noreferrer noopener"},a.a.createElement("img",{alt:"logo",width:"82",src:n("ov0K")})),a.a.createElement("a",{key:6,href:"http://biozentrum.org/",target:"_blank",rel:"noreferrer noopener"},a.a.createElement("img",{alt:"logo",width:"85",src:n("7S/C")}))],f=function(e){return a.a.createElement("div",{className:"row"},a.a.createElement("div",{className:"col-md-1"}),a.a.createElement("div",{className:"col-md-10"},a.a.createElement("div",{className:"line"}),a.a.createElement(u.a,{wrap:"wrap",style:{marginTop:20,justifyContent:"space-around"}},e.children)),a.a.createElement("div",{className:"col-md-1"}))},p=function(e){return e>1e3?3:e>750?2:1},m=c.c.ul.withConfig({displayName:"splash__ColumnList",componentId:"sc-11xzu4i-0"})(["-moz-column-count:",";-moz-column-gap:20px;-webkit-column-count:",";-webkit-column-gap:20px;column-count:",";column-gap:20px;"],(function(e){return p(e.width)}),(function(e){return p(e.width)}),(function(e){return p(e.width)})),h=function(e){var t=e.available,r=e.browserDimensions,o=e.dispatch,i=e.errorMessage,c=e.changePage,p=function(e){var t=e.type,n=e.data;return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{style:{fontSize:"26px"}},"Available ".concat(t,":")),n?a.a.createElement("div",{style:{display:"flex",flexWrap:"wrap"}},a.a.createElement("div",{style:{flex:"1 50%",minWidth:"0"}},a.a.createElement(m,{width:r.width},n.map((function(e){return function(e,t,n){return a.a.createElement("li",{key:e},a.a.createElement("div",{style:{color:"#5097BA",textDecoration:"none",cursor:"pointer",fontWeight:"400",fontSize:"94%"},onClick:function(){return t(n({path:e,push:!0}))}},e))}(e.request,o,c)}))))):a.a.createElement("p",null,"none found"))};return a.a.createElement(a.a.Fragment,null,a.a.createElement(l.a,{sidebar:!1}),a.a.createElement("div",{className:"static container"},a.a.createElement((function(){return a.a.createElement(a.a.Fragment,null,a.a.createElement(u.a,{justifyContent:"center"},a.a.createElement("div",{style:{paddingRight:"40px"}},a.a.createElement("h1",{style:{textAlign:"center",marginTop:"20px",marginLeft:"20px",fontSize:"72px",letterSpacing:"4rem"}},"auspice"),a.a.createElement("h1",{style:{textAlign:"center",marginTop:"0px",fontSize:"29px"}},"Interactive Visualisation of Phylogenomic data")),a.a.createElement("img",{alt:"logo",width:"102",src:n("lQ7N")})))}),null),i?a.a.createElement((function(){return a.a.createElement(f,null,a.a.createElement("div",null,a.a.createElement("p",{style:{color:"rgb(222, 60, 38)",fontWeight:600,fontSize:"24px"}},"😱 404, or an error has occured 😱"),a.a.createElement("p",{style:{color:"rgb(222, 60, 38)",fontWeight:400,fontSize:"18px"}},"Details: ".concat(i)),a.a.createElement("p",{style:{fontSize:"16px"}},"If this keeps happening, or you believe this is a bug, please ",a.a.createElement("a",{href:"mailto:hello@nextstrain.org"},"get in contact with us."))))}),null):a.a.createElement((function(){return a.a.createElement("p",{style:{maxWidth:600,marginTop:0,marginRight:"auto",marginBottom:20,marginLeft:"auto",textAlign:"center",fontSize:16,fontWeight:300,lineHeight:1.42857143}},"\n Auspice is a locally run interactive viewer for phylogeographic and other datasets.\n Auspice can be easily turned into an online web-app, such as nextstrain.org & auspice.us\n ")}),null),a.a.createElement(p,{type:"datasets",data:t.datasets}),a.a.createElement(p,{type:"narratives",data:t.narratives}),a.a.createElement((function(){return a.a.createElement(f,null,s)}),null)))},y=n("uN13"),d=n("1hPQ"),b=n("WPWs"),g=n("f3zc"),v=n("5/H9");function w(e){return(w="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})(e)}function E(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 x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e,t){return!t||"object"!==w(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var S=Object(y.b)("splashComponent")?Object(y.a)("splashComponent"):h,k=Object(i.b)((function(e){return{errorMessage:e.general.errorMessage,browserDimensions:e.browserDimensions.browserDimensions,reduxPathname:e.general.pathname}}))(r=function(e){!function(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&&x(e,t)}(i,e);var t,n,r,o=function(e){function t(){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}}return function(){var n,r=j(e);if(t()){var o=j(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={available:{},errorMessage:void 0},t}return t=i,(n=[{key:"componentDidMount",value:function(){var e=this;Object(b.a)("".concat(Object(g.y)(),"/getAvailable?prefix=").concat(this.props.reduxPathname)).then((function(t){e.setState({available:t})})).catch((function(t){e.setState({errorMessage:"Error in getting available datasets"}),console.warn(t.message)}))}},{key:"render",value:function(){return a.a.createElement(d.a,null,a.a.createElement(S,{isMobile:this.props.browserDimensions.width<g.j,available:this.state.available,browserDimensions:this.props.browserDimensions,dispatch:this.props.dispatch,errorMessage:this.props.errorMessage||this.state.errorMessage,changePage:v.b}))}}])&&E(t.prototype,n),r&&E(t,r),i}(a.a.Component))||r;t.default=k}}]);
\No newline at end of file