{"version":3,"sources":["webpack:///./src/components/common/NavBar.js","webpack:///./src/views/AboutPage/index.js","webpack:///./src/pages/about.js","webpack:///./src/views/processText.js","webpack:///./src/components/common/Jumbotron.js","webpack:///./src/components/common/List.js","webpack:///./src/util/index.js","webpack:///./src/components/common/Col.tsx","webpack:///./src/components/common/ScrollToTopOnMount.tsx"],"names":["NavBar","props","state","collapsed","scrolled","handleScroll","bind","componentDidMount","window","addEventListener","this","componentWillUnmount","removeEventListener","scrollY","setState","render","className","children","white","onClick","scrollTo","to","brand","type","aria-controls","aria-expanded","id","processText","translate","Component","AboutPage","About","location","locale","pageContext","Layout","text","Array","isArray","map","piece","i","link","outsideLink","href","target","rel","b","key","br","dockington","icon","underline","italic","strike","block","style","display","quote","dreports","insider","lobster","signature","color","h2","list","simple","items","item","idx","Object","assign","marker","iconColor","undefined","Jumbotron","backgroundColor","cn","containerClassName","List","parseQueryParams","queryString","query","pairs","substr","split","length","pair","decodeURIComponent","debounce","func","wait","immediate","timeout","context","args","arguments","later","apply","callNow","clearTimeout","setTimeout","classNames","name","trim","sizes","value","hide","show","orders","order","Col","anyProps","width","maxWidth","size","forEach","sizeType","s","findIndex","orderType","align","justify","textAlign","grow","flexGrow","hideIdx","ScrollToTopOnMount"],"mappings":"uKAQMA,G,sBACF,WAAYC,GAAQ,IAAD,SACf,cAAMA,IAAN,MACKC,MAAQ,CACTC,WAAW,EACXC,UAAU,GAEd,EAAKC,aAAe,EAAKA,aAAaC,KAAlB,gBANL,E,4CAQnBC,kBAAA,WACIC,OAAOC,iBAAiB,SAAUC,KAAKL,e,EAE3CM,qBAAA,WACIH,OAAOI,oBAAoB,SAAUF,KAAKL,e,EAE9CA,aAAA,WACQG,OAAOK,QAAU,GACZH,KAAKR,MAAME,UACZM,KAAKI,SAAS,CAAEV,UAAU,IAG9BM,KAAKI,SAAS,CAAEV,UAAU,K,EAGlCW,OAAA,WAAU,IAAD,OACL,OACI,yBAAKC,UAAU,aACVN,KAAKT,MAAMgB,SACZ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,GAAD,OAAWA,EAAKJ,QAAQtG,GAAUA,EAAc0G,EAAKJ,SAUlF,OATIuB,GAAW,IACX9G,GAAa,UACT8G,EAAU,EAAInB,EAAKrB,SACnBtE,GAAa,IAAM2F,EAAKmB,EAAU,GAAGlB,OAGzC3G,EAAMe,YACNA,GAAa,IAAMf,EAAMe,WAGzB,yBAAKA,UAAWA,EAAWwC,MAAOA,GAC7BvD,EAAMgB,Y,8DCvIb8G,E,0GACFxH,kBAAA,WACIC,OAAOY,SAAS,EAAG,I,EAEvBL,OAAA,WACI,OAAO,M,GALkBc,aASlBkG","file":"component---src-pages-about-js-44e526f970c67067d6cd.js","sourcesContent":["import React, { Component } from 'react';\n\nimport Link from \"./Link\";\n\nimport processText from '../../views/processText';\n\nimport \"./NavBar.css\";\n\nclass NavBar extends Component {\n constructor(props) {\n super(props);\n this.state = {\n collapsed: true,\n scrolled: false,\n };\n this.handleScroll = this.handleScroll.bind(this);\n }\n componentDidMount() {\n window.addEventListener('scroll', this.handleScroll);\n }\n componentWillUnmount() {\n window.removeEventListener('scroll', this.handleScroll);\n }\n handleScroll() {\n if (window.scrollY > 20) {\n if (!this.state.scrolled) {\n this.setState({ scrolled: true });\n }\n } else {\n this.setState({ scrolled: false });\n }\n }\n render() {\n return (\n
\n {this.props.children}\n \n
\n );\n }\n}\n\nexport default NavBar;\n","\nimport AboutPage from \"./AboutPage\";\n\nexport default AboutPage;\n","import React from \"react\"\n\nimport Layout from \"../components/Layout\"\nimport AboutPage from \"../views/AboutPage\"\n\nconst About = ({ location, pageContext: { locale } }) => (\n \n \n \n);\n\nexport default About;\n","import React from 'react';\n\nimport Link from \"../components/common/Link\";\nimport Dockington from \"../components/common/Dockington\";\nimport List from '../components/common/List';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\n\nconst processText = function (text, id) {\n if (Array.isArray(text)) {\n return text.map((piece, i) => processText(piece, `${id || \"\"}a${i}`));\n } else if (text && typeof text === \"object\") {\n if (text.link) {\n return (\n {processText(text.text)}\n );\n } else if (text.outsideLink) {\n return (\n {processText(text.text)}\n );\n } else if (text.b) {\n return (\n {processText(text.b)}\n );\n } else if (text.br) {\n return (\n
\n );\n } else if (text.dockington) {\n return (\n \n );\n }else if (text.icon) {\n return (\n \n );\n } else if (text.underline) {\n return {processText(text.underline, `u:${id || \"\"}`)}\n } else if (text.italic) {\n return {processText(text.italic, `u:${id || \"\"}`)}\n } else if (text.strike) {\n return {processText(text.strike, `d:${id || \"\"}`)}\n } else if (text.block) {\n return
{processText(text.block, `b:${id || \"\"}`)}
\n } else if (text.quote) {\n return “{processText(text.quote, `s:${id || \"\"}`)}”\n } else if (text.dreports) {\n return
Dockington Reports
\n } else if (text.insider) {\n return
Dockington Insider
\n } else if (text.lobster) {\n return {processText(text.lobster, id || 'lobster')}\n } else if (text.signature) {\n return {processText(text.signature, id || 'signature')}\n } else if (text.color) {\n return {processText(text.text)}\n } else if (text.h2) {\n return

{processText(text.h2)}

\n } else if (text.list) {\n return (\n (\n typeof item === \"object\" ?\n Object.assign({ ...item, text: processText(item.text, `${id || \"\"}l:${idx}`) }, item.icon ? { marker: } : undefined)\n : processText(item, `${id || \"\"}l:${idx}`)\n ))}\n />\n );\n }\n }\n return text;\n};\n\nexport default processText;\n","import React from \"react\";\nimport { cn } from \"../../util\";\n\nconst Jumbotron = function (props) {\n let style = { ...props.style }\n if (props.color) {\n style.backgroundColor = props.color;\n }\n let className = \"jumbotron\";\n if (props.className) {\n className += \" \" + props.className;\n }\n return (\n
\n
\n {props.children}\n
\n
\n );\n};\n\nexport default Jumbotron;\n","import React from \"react\";\n\nconst List = function ({ items, simple, className }) {\n return (\n
\n {items.map((item) => (\n
\n {(item.marker || simple) &&
{item.marker || \"- \"}
}\n
{item.text ? item.text : item}
\n
\n ))}\n
\n );\n}\n\nexport default List;\n","\nexport const parseQueryParams = function (queryString) {\n let query = {};\n if (!queryString) return query;\n let pairs = (queryString[0] === '?' ? queryString.substr(1) : queryString).split('&');\n for (let i = 0; i < pairs.length; i++) {\n let pair = pairs[i].split('=');\n query[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1] || '');\n }\n return query;\n}\n\n// Returns a function, that, as long as it continues to be invoked, will not\n// be triggered. The function will be called after it stops being called for\n// N milliseconds. If `immediate` is passed, trigger the function on the\n// leading edge, instead of the trailing.\nexport function debounce(func, wait, immediate) {\n let timeout;\n return function () {\n let context = this, args = arguments;\n let later = function () {\n timeout = null;\n if (!immediate) func.apply(context, args);\n };\n let callNow = immediate && !timeout;\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n if (callNow) func.apply(context, args);\n };\n};\n\n/**\n * Combine classNames from multiple sources into a single string.\n * @param {...any} classNames Any number of strings of classNames, nulls or undefined\n */\nexport const cn = function (...classNames) {\n let className = \"\";\n for (let idx in classNames) {\n const name = classNames[idx];\n if (name) {\n className += ` ${name}`;\n }\n }\n return className.trim();\n}\n","import React, { CSSProperties } from 'react';\n\nexport interface ColProps {\n width?: string | number,\n size?: number,\n xs?: boolean,\n s?: boolean,\n m?: boolean,\n l?: boolean,\n xl?: boolean,\n\n xs1?: boolean, xs2?: boolean, xs3?: boolean, xs4?: boolean, xs5?: boolean, xs6?: boolean,\n xs7?: boolean, xs8?: boolean, xs9?: boolean, xs10?: boolean, xs11?: boolean, xs12?: boolean,\n s1?: boolean, s2?: boolean, s3?: boolean, s4?: boolean, s5?: boolean, s6?: boolean,\n s7?: boolean, s8?: boolean, s9?: boolean, s10?: boolean, s11?: boolean, s12?: boolean,\n m1?: boolean, m2?: boolean, m3?: boolean, m4?: boolean, m5?: boolean, m6?: boolean,\n m7?: boolean, m8?: boolean, m9?: boolean, m10?: boolean, m11?: boolean, m12?: boolean,\n l1?: boolean, l2?: boolean, l3?: boolean, l4?: boolean, l5?: boolean, l6?: boolean,\n l7?: boolean, l8?: boolean, l9?: boolean, l10?: boolean, l11?: boolean, l12?: boolean,\n xl1?: boolean, xl2?: boolean, xl3?: boolean, xl4?: boolean, xl5?: boolean, xl6?: boolean,\n xl7?: boolean, xl8?: boolean, xl9?: boolean, xl10?: boolean, xl11?: boolean, xl12?: boolean,\n\n hideXs?: boolean,\n hideS?: boolean,\n hideM?: boolean,\n hideL?: boolean,\n\n orderXs?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12,\n orderS?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12,\n orderM?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12,\n orderL?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12,\n orderXl?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12,\n\n align?: \"top\" | \"center\" | \"bottom\",\n justify?: \"left\" | \"center\" | \"right\",\n className?: string,\n style?: CSSProperties,\n grow?: number,\n}\n\nconst sizesExtraSmall = [\n \"xs1\", \"xs2\", \"xs3\", \"xs4\", \"xs5\", \"xs6\",\n \"xs7\", \"xs8\", \"xs9\", \"xs10\", \"xs11\", \"xs12\",\n];\nconst sizesSmall = [\n \"s1\", \"s2\", \"s3\", \"s4\", \"s5\", \"s6\",\n \"s7\", \"s8\", \"s9\", \"s10\", \"s11\", \"s12\",\n];\nconst sizesMedium = [\n \"m1\", \"m2\", \"m3\", \"m4\", \"m5\", \"m6\",\n \"m7\", \"m8\", \"m9\", \"m10\", \"m11\", \"m12\",\n];\nconst sizesLarge = [\n \"l1\", \"l2\", \"l3\", \"l4\", \"l5\", \"l6\",\n \"l7\", \"l8\", \"l9\", \"l10\", \"l11\", \"l12\",\n];\nconst sizesExtraLarge = [\n \"xl1\", \"xl2\", \"xl3\", \"xl4\", \"xl5\", \"xl6\",\n \"xl7\", \"xl8\", \"xl9\", \"xl10\", \"xl11\", \"xl12\",\n];\nconst sizes = [\n { name: \"xs\", value: \"\", sizes: sizesExtraSmall },\n { name: \"s\", value: \"-sm\", sizes: sizesSmall },\n { name: \"m\", value: \"-md\", sizes: sizesMedium },\n { name: \"l\", value: \"-lg\", sizes: sizesLarge },\n { name: \"xl\", value: \"-xl\", sizes: sizesExtraLarge },\n];\nconst hide = [\n { name: \"hideXs\", hide: \"d-none\", show: \"\" },\n { name: \"hideS\", hide: \"d-sm-none\", show: \"d-sm-block\" },\n { name: \"hideM\", hide: \"d-md-none\", show: \"d-md-block\" },\n { name: \"hideL\", hide: \"d-lg-none\", show: \"d-lg-block\" },\n];\nconst orders = [\n { name: \"orderXs\", order: \"order-\" },\n { name: \"orderS\", order: \"order-sm-\" },\n { name: \"orderM\", order: \"order-md-\" },\n { name: \"orderL\", order: \"order-lg-\" },\n { name: \"orderXl\", order: \"order-xl-\" },\n];\n\nconst Col: React.FunctionComponent = function (props) {\n const anyProps: any = props;\n let style = props.style || {};\n let className = \"col\";\n if (typeof props.width === \"string\") {\n style.maxWidth = props.width;\n } else if (typeof props.width === \"number\") {\n style.maxWidth = props.width + \"px\";\n } else if (typeof props.size === \"number\" && props.size > 0 && props.size <= 12) {\n className += \" col-\" + props.size;\n } else {\n sizes.forEach((sizeType) => {\n if (typeof anyProps[sizeType.name] === \"boolean\") {\n className += \" col\" + sizeType.value;\n } else {\n let s = sizeType.sizes.findIndex((size) => (size in props && typeof anyProps[size] === \"boolean\"));\n if (s >= 0) {\n className += \" col\" + sizeType.value + \"-\" + (s + 1);\n }\n }\n });\n }\n orders.forEach((orderType) => {\n if (typeof anyProps[orderType.name] === \"number\") {\n className += ` ${orderType.order}${anyProps[orderType.name]}`\n }\n });\n if (props.align) {\n switch (props.align) {\n case \"top\": className += \" align-self-start\"; break;\n case \"center\": className += \" align-self-center\"; break;\n case \"bottom\": className += \" align-self-end\"; break;\n }\n }\n if (props.justify) {\n switch (props.justify) {\n case \"left\": style.textAlign = \"start\"; break;\n case \"center\": style.textAlign = \"center\"; break;\n case \"right\": style.textAlign = \"end\"; break;\n }\n }\n if (typeof props.grow === \"number\") {\n style.flexGrow = props.grow;\n }\n let hideIdx = hide.findIndex((hide) => (hide.name in props && (props as any)[hide.name]));\n if (hideIdx >= 0) {\n className += \" d-none\";\n if (hideIdx + 1 < hide.length) {\n className += \" \" + hide[hideIdx + 1].show;\n }\n }\n if (props.className) {\n className += \" \" + props.className;\n }\n return (\n
\n {props.children}\n
\n )\n}\n\nexport default Col;\n","import { Component } from \"react\";\n\nclass ScrollToTopOnMount extends Component {\n componentDidMount() {\n window.scrollTo(0, 0);\n }\n render() {\n return null;\n }\n}\n\nexport default ScrollToTopOnMount;\n"],"sourceRoot":""}