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young-investors-club/./src/components/event/style.tsx","webpack://young-investors-club/./src/components/event/index.tsx","webpack://young-investors-club/./src/components/link-switch/index.tsx","webpack://young-investors-club/./src/containers/home/style.tsx","webpack://young-investors-club/./src/components/hero/style.tsx","webpack://young-investors-club/./src/components/hero/index.tsx","webpack://young-investors-club/./src/containers/home/index.tsx","webpack://young-investors-club/./src/pages/index.tsx","webpack://young-investors-club/./src/utilities/date.ts","webpack://young-investors-club/./node_modules/lodash/_arrayMap.js","webpack://young-investors-club/./node_modules/lodash/_baseClamp.js","webpack://young-investors-club/./node_modules/lodash/_baseToString.js","webpack://young-investors-club/./node_modules/lodash/startsWith.js","webpack://young-investors-club/./node_modules/lodash/toFinite.js","webpack://young-investors-club/./node_modules/lodash/toInteger.js","webpack://young-investors-club/./node_modules/lodash/toString.js"],"sourcesContent":["import styled from \"styled-components\";\n\nconst EventWrapper = styled.div`\n display: grid;\n grid-template-columns: 1fr;\n align-items: center;\n\n .h3 {\n span {\n color: var(--clr-black);\n }\n }\n\n .description > * {\n --flow-spacer: 1em;\n }\n\n .info {\n display: grid;\n grid-template-columns: auto 1fr;\n justify-items: start;\n grid-row-gap: calc(var(--spacer) * 0.4);\n grid-column-gap: calc(var(--spacer) * 0.8);\n\n svg {\n fill: var(--clr-title);\n width: 1em;\n height: 1em;\n margin-top: 0.43em;\n }\n }\n\n .btn {\n --fg: var(--clr-white);\n --bg: var(--clr-primary);\n justify-self: start;\n }\n`;\n\nexport default EventWrapper;\n","import React, { Fragment } from \"react\";\nimport { GatsbyImage, getImage } from \"gatsby-plugin-image\";\nimport EventWrapper from \"./style\";\nimport { CalendarIcon, MapMarkerIcon } from \"../icons\";\nimport LinkSwitch from \"../link-switch\";\n\ntype EventProps = {\n title: string;\n description: string;\n date?: string;\n location?: string;\n image: any;\n linkLabel?: string;\n link?: string;\n alt?: boolean;\n};\n\nconst Event: React.FunctionComponent = (props) => {\n let imgClass = \"fun-photo shadow\";\n if (props.alt) imgClass += \" fun-photo__alt\";\n\n const description = props.description\n .split(\"\\n\")\n .map((line, index) =>

{line}

);\n const location =\n props.location &&\n props.location\n .split(\"\\n\")\n .map((line, index) =>
{line}
);\n\n const linkLabel = props.linkLabel ?? \"Learn More\";\n\n return (\n \n {props.image && (\n \n )}\n
{props.title}
\n
\n {props.date && (\n \n \n
{props.date}
\n
\n )}\n {props.location && (\n \n \n
{location}
\n
\n )}\n
\n
{description}
\n {props.link && (\n \n {linkLabel}\n \n )}\n
\n );\n};\n\nexport default Event;\n","import React from \"react\";\nimport { Link } from \"gatsby\";\nimport { startsWith } from \"lodash\";\n\ntype LinkSwitchProps = {\n to: string;\n className?: string;\n children: React.ReactNode;\n};\n\nconst LinkSwitch: React.FunctionComponent = ({\n to,\n className,\n children,\n}) => {\n // Add all classs to an array\n const addAllClasses = [];\n\n // className prop checking\n if (className) {\n addAllClasses.push(className);\n }\n const external = startsWith(to, \"https:\");\n\n return external ? (\n \n {children}\n \n ) : (\n \n {children}\n \n );\n};\n\nexport default LinkSwitch;\n","import styled from \"styled-components\";\n\nconst HomeWrapper = styled.div`\n .hero {\n .hero-body {\n span {\n display: block;\n color: var(--clr-black);\n }\n\n .btn {\n --fg: var(--clr-text-default);\n font-size: 0.8rem;\n }\n\n @media (max-width: 600px) {\n --flow-spacer: 0.6rem;\n h1 {\n font-size: 2.2rem;\n }\n\n .h2 {\n font-size: 1.8rem;\n }\n }\n }\n }\n\n section.about {\n --gap-spacer: 3rem;\n\n span {\n display: block;\n color: var(--clr-black);\n }\n }\n\n section.benefits {\n background-color: var(--clr-background-grey);\n --gap-spacer: 3rem;\n\n .body {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(min(18.75rem, 100%), 1fr));\n align-items: flex-start;\n grid-gap: 3rem;\n }\n\n .card {\n display: grid;\n grid-template-columns: 1fr;\n justify-items: center;\n align-items: center;\n text-align: center;\n\n .h3 {\n span {\n color: var(--clr-black);\n }\n }\n\n svg {\n width: 6.25rem;\n height: 6.25rem;\n fill: var(--clr-black);\n }\n }\n }\n\n section.events {\n .body {\n display: grid;\n grid-template-columns: repeat(\n auto-fill,\n minmax(min(18.75rem, 100%), 1fr)\n );\n align-items: flex-start;\n gap: 3rem;\n }\n }\n`;\n\nexport default HomeWrapper;\n","import styled from \"styled-components\";\n\ninterface HeroWrapperProps {}\n\nexport const HeroWrapper = styled.div`\n min-height: 22rem;\n display: grid;\n grid-template-columns: 1fr;\n align-items: center;\n justify-content: flex-start;\n position: relative;\n\n .hero-image {\n height: 100%;\n grid-column: 1 / 2;\n grid-row: 1 / 2;\n z-index: -1;\n }\n`;\n\nexport const HeroInner = styled.div`\n grid-column: 1 / 2;\n grid-row: 1 / 2;\n`;\n\nexport const HeroBanner = styled.div`\n max-width: 35rem;\n margin: 4vw 0;\n padding: 1.3rem;\n background: rgba(255, 255, 255, 0.5);\n backdrop-filter: blur(6px);\n border-radius: 10px;\n`;\n","import * as React from \"react\";\nimport { GatsbyImage } from \"gatsby-plugin-image\";\nimport { HeroBanner, HeroInner, HeroWrapper } from \"./style\";\n\ninterface HeroProps {\n image: any;\n children?: React.ReactNode;\n}\n\nconst Hero: React.FunctionComponent = ({ image, children }) => {\n return (\n \n \n \n {children}\n \n \n );\n};\n\nexport default Hero;\n","import React from \"react\";\nimport { graphql, Link, useStaticQuery } from \"gatsby\";\nimport { GatsbyImage, getImage, withArtDirection } from \"gatsby-plugin-image\";\nimport HomeWrapper from \"./style\";\nimport Hero from \"../../components/hero\";\nimport useJoinNow from \"../../hooks/use-join-now\";\nimport JoinNow from \"../../components/join-now\";\nimport JoinNowForm from \"../../components/join-now-form\";\n\nimport {\n BabyIcon,\n BookIcon,\n HomeIcon,\n ListIcon,\n UsersIcon,\n HandshakeIcon,\n} from \"../../components/icons\";\nimport Event from \"../../components/event\";\nimport { getCurrentDate } from \"../../utilities/date\";\n\ntype HomeProps = {};\n\ntype DataProps = {\n hero_s: {\n childImageSharp: {\n gatsbyImageData: any;\n };\n };\n hero_m: {\n childImageSharp: {\n gatsbyImageData: any;\n };\n };\n hero_l: {\n childImageSharp: {\n gatsbyImageData: any;\n };\n };\n about_us: {\n childImageSharp: {\n gatsbyImageData: any;\n };\n };\n events: {\n edges: {\n node: {\n id: string;\n title: string;\n description: {\n description: string;\n };\n eventDate: string;\n expiryDate: string;\n location: {\n location: string;\n };\n linkLabel: string;\n registrationLink: string;\n cover: {\n gatsbyImageData: any;\n };\n };\n }[];\n };\n};\n\nconst Home: React.FunctionComponent = ({ ...props }) => {\n const data = useStaticQuery(graphql`{\n hero_s: file(absolutePath: {regex: \"/home-banner.png/\"}) {\n childImageSharp {\n gatsbyImageData(quality: 100, height: 500, width: 600)\n }\n }\n hero_m: file(absolutePath: {regex: \"/home-banner.png/\"}) {\n childImageSharp {\n gatsbyImageData(quality: 100, height: 500, width: 1100)\n }\n }\n hero_l: file(absolutePath: {regex: \"/home-banner.png/\"}) {\n childImageSharp {\n gatsbyImageData(quality: 100, height: 500, width: 1600, breakpoints: [1600])\n }\n }\n about_us: file(absolutePath: {regex: \"/about-us.jpg/\"}) {\n childImageSharp {\n gatsbyImageData(quality: 100)\n }\n }\n events: allContentfulEvent(filter: {home: {gt: 0}}, sort: {home: ASC}) {\n edges {\n node {\n id\n title\n description {\n description\n }\n eventDate\n expiryDate\n location {\n location\n }\n linkLabel\n registrationLink\n cover {\n gatsbyImageData(quality: 100, width: 780, height: 300)\n }\n }\n }\n }\n}`);\n\n const joinNow = useJoinNow();\n\n // filter out expired events\n const currentDate = getCurrentDate();\n const events = data.events.edges.filter(\n (e) => e.node.expiryDate >= currentDate\n );\n\n const heroImage = withArtDirection(\n data.hero_s.childImageSharp.gatsbyImageData,\n [\n {\n media: `(min-width: 1100px)`,\n image: data.hero_l.childImageSharp.gatsbyImageData,\n },\n {\n media: `(min-width: 600px)`,\n image: data.hero_m.childImageSharp.gatsbyImageData,\n },\n ]\n );\n\n return (\n \n \n
\n

\n Young Investors Club\n \n offering young investors complete knowledge and support\n \n

\n

\n Young investors assisting other young people to create wealth\n through property.\n

\n \n Join Now For Free\n \n
\n
\n \n\n
\n

\n Under 35 and want to build a property portfolio? Join the\n Club!\n

\n
\n \n
\n

\n You are never too young to start learning about property\n investing. The Young Investors Club (YIC) is for people under 35\n who like to mix and learn with other young people while enjoying\n some great social events.\n

\n

\n The Young Investors Club holds Introductory Webinars and Property\n Information and Research Webinars and Finance Workshops. As a YIC\n member, you can enjoy many of the social events along side other\n young investors on camping trips, barbeques, wine and cheese\n tastings – to name a few.\n

\n \n Read more\n \n
\n
\n
\n\n \n\n
\n
\n

As a member you will enjoy ...

\n
\n
\n
\n FREE Young Investors Club Membership\n
\n \n

\n Join FREE and enjoy FREE Property Club membership, as well as\n the property investment advice through our growing community.\n

\n
\n
\n
\n FREE Access To Your Own Property Mentor\n
\n \n

\n We offer the support of experienced investors willing to share\n their experience and help you to wealth through property.\n

\n
\n
\n
\n FREE Ongoing Investment Education and Guidance\n
\n \n

\n We offer property investment strategies suitable for a younger\n investor to help you achieve your long term investment goals.\n

\n
\n
\n
\n FREE Exclusive Invites to Fun Social Events\n
\n \n

\n You’ll enjoy exclusive invites to social events with other young\n investors including camping trips and barbeques to name a few.\n

\n
\n
\n
\n FREE Access To A Range of Support Services\n
\n \n

\n We provide a full range of support services to help you avoid\n the common traps of property investing.\n

\n
\n
\n
\n FREE Access To Our Researched Properties\n
\n \n

\n We have experienced researchers who analyse the markets, finding\n the best investment properties for our members.\n

\n
\n
\n
\n
\n\n \n\n
\n
\n

Come along and find out for yourself...

\n
\n {events.map(({ node }, index) => {\n return (\n \n );\n })}\n
\n
\n
\n\n \n\n \n
\n );\n};\n\nexport default Home;\n","import React from \"react\";\nimport { HeadFC, PageProps, graphql } from \"gatsby\";\nimport Layout from \"../components/layout\";\nimport Home from \"../containers/home\";\nimport SEO from \"../components/seo\";\n\nconst HomePage: React.FC> = () => {\n return (\n \n \n \n );\n};\n\nexport const Head: HeadFC = ({ data }) => (\n \n);\n\ntype DataProps = {\n site: { siteMetadata: { title: string; description: string } };\n};\n\nexport const pageQuery = graphql`\n query {\n site {\n siteMetadata {\n title\n description\n }\n }\n }\n`;\n\nexport default HomePage;\n","const padTo2Digits = (num: number) => {\n return num.toString().padStart(2, \"0\");\n};\n\nexport const formatDate = (date: Date) => {\n return [\n date.getFullYear(),\n padTo2Digits(date.getMonth() + 1),\n padTo2Digits(date.getDate()),\n ].join(\"-\");\n};\n\nexport const getCurrentDate = () => {\n return formatDate(new Date());\n};\n","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n","/**\n * The base implementation of `_.clamp` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n */\nfunction baseClamp(number, lower, upper) {\n if (number === number) {\n if (upper !== undefined) {\n number = number <= upper ? number : upper;\n }\n if (lower !== undefined) {\n number = number >= lower ? number : lower;\n }\n }\n return number;\n}\n\nmodule.exports = baseClamp;\n","var Symbol = require('./_Symbol'),\n arrayMap = require('./_arrayMap'),\n isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = baseToString;\n","var baseClamp = require('./_baseClamp'),\n baseToString = require('./_baseToString'),\n toInteger = require('./toInteger'),\n toString = require('./toString');\n\n/**\n * Checks if `string` starts with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=0] The position to search from.\n * @returns {boolean} Returns `true` if `string` starts with `target`,\n * else `false`.\n * @example\n *\n * _.startsWith('abc', 'a');\n * // => true\n *\n * _.startsWith('abc', 'b');\n * // => false\n *\n * _.startsWith('abc', 'b', 1);\n * // => true\n */\nfunction startsWith(string, target, position) {\n string = toString(string);\n position = position == null\n ? 0\n : baseClamp(toInteger(position), 0, string.length);\n\n target = baseToString(target);\n return string.slice(position, position + target.length) == target;\n}\n\nmodule.exports = startsWith;\n","var toNumber = require('./toNumber');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0,\n MAX_INTEGER = 1.7976931348623157e+308;\n\n/**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\nfunction toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n}\n\nmodule.exports = toFinite;\n","var toFinite = require('./toFinite');\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n","var baseToString = require('./_baseToString');\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nmodule.exports = toString;\n"],"names":["styled","div","withConfig","displayName","componentId","props","_props$linkLabel","imgClass","alt","description","split","map","line","index","React","key","location","linkLabel","EventWrapper","className","image","GatsbyImage","getImage","title","date","Fragment","CalendarIcon","MapMarkerIcon","link","LinkSwitch","to","_ref","children","addAllClasses","push","_startsWith","href","rel","target","join","Link","HeroWrapper","HeroInner","HeroBanner","loading","data","useStaticQuery","joinNow","useJoinNow","currentDate","getCurrentDate","events","edges","filter","e","node","expiryDate","heroImage","withArtDirection","hero_s","childImageSharp","gatsbyImageData","media","hero_l","hero_m","HomeWrapper","Hero","onClick","openHandler","JoinNow","onClickHandler","about_us","UsersIcon","BabyIcon","ListIcon","BookIcon","HandshakeIcon","HomeIcon","_ref2","Event","id","eventDate","cover","registrationLink","JoinNowForm","display","closeHandler","submitHandler","Head","SEO","site","siteMetadata","subTitle","HomePage","Layout","Home","padTo2Digits","num","toString","padStart","Date","getFullYear","getMonth","getDate","module","exports","array","iteratee","length","result","Array","number","lower","upper","undefined","Symbol","arrayMap","isArray","isSymbol","symbolProto","prototype","symbolToString","baseToString","value","call","baseClamp","toInteger","string","position","slice","toNumber","INFINITY","toFinite","remainder"],"sourceRoot":""}