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MuD,a,qBC/E9C,IAAIC,EAAQ,EAAQ,MAEpB,SAASC,EAAeC,GACpB,OAAOF,EAAMG,cAAc,MAAMD,EAAMF,EAAMG,cAAc,OAAO,CAAC,MAAQ,CAAC,KAAO,gBAAgB,EAAI,8CAG3GF,EAAcG,aAAe,CAAC,QAAU,MAAM,GAAK,UAAU,EAAI,MAAM,EAAI,MAAM,QAAU,aAAa,MAAQ,CAAC,iBAAmB,kBAAkB,SAAW,YAEjKhJ,EAAOC,QAAU4I,EAEjBA,EAAcI,QAAUJ,G,qBCVxB,IAAID,EAAQ,EAAQ,MAEpB,SAASM,EAAYJ,GACjB,OAAOF,EAAMG,cAAc,MAAMD,EAAMF,EAAMG,cAAc,OAAO,CAAC,SAAW,UAAU,SAAW,UAAU,EAAI,6HAA6H,KAAO,kBAGzPG,EAAWF,aAAe,CAAC,MAAQ,KAAK,OAAS,KAAK,QAAU,YAAY,KAAO,QAEnFhJ,EAAOC,QAAUiJ,EAEjBA,EAAWD,QAAUC","sources":["webpack://landbay/./node_modules/core-js/internals/classof.js","webpack://landbay/./node_modules/core-js/internals/get-substitution.js","webpack://landbay/./node_modules/core-js/internals/is-regexp.js","webpack://landbay/./node_modules/core-js/internals/regexp-flags.js","webpack://landbay/./node_modules/core-js/internals/to-string-tag-support.js","webpack://landbay/./node_modules/core-js/internals/to-string.js","webpack://landbay/./node_modules/core-js/modules/es.string.replace-all.js","webpack://landbay/./node_modules/core-js/modules/esnext.string.replace-all.js","webpack://landbay/./src/components/PostPreview.js","webpack://landbay/./src/utils/filterSeoSchema.js","webpack://landbay/./src/templates/post.js","webpack://landbay/./src/assets/svg/inline/ic_chevron-down.svg","webpack://landbay/./src/assets/svg/inline/ic_download.svg"],"sourcesContent":["var global = require('../internals/global');\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar Object = global.Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar floor = Math.floor;\nvar charAt = uncurryThis(''.charAt);\nvar replace = uncurryThis(''.replace);\nvar stringSlice = uncurryThis(''.slice);\nvar SUBSTITUTION_SYMBOLS = /\\$([$&'`]|\\d{1,2}|<[^>]*>)/g;\nvar SUBSTITUTION_SYMBOLS_NO_NAMED = /\\$([$&'`]|\\d{1,2})/g;\n\n// `GetSubstitution` abstract operation\n// https://tc39.es/ecma262/#sec-getsubstitution\nmodule.exports = function (matched, str, position, captures, namedCaptures, replacement) {\n var tailPos = position + matched.length;\n var m = captures.length;\n var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;\n if (namedCaptures !== undefined) {\n namedCaptures = toObject(namedCaptures);\n symbols = SUBSTITUTION_SYMBOLS;\n }\n return replace(replacement, symbols, function (match, ch) {\n var capture;\n switch (charAt(ch, 0)) {\n case '$': return '$';\n case '&': return matched;\n case '`': return stringSlice(str, 0, position);\n case \"'\": return stringSlice(str, tailPos);\n case '<':\n capture = namedCaptures[stringSlice(ch, 1, -1)];\n break;\n default: // \\d\\d?\n var n = +ch;\n if (n === 0) return match;\n if (n > m) {\n var f = floor(n / 10);\n if (f === 0) return match;\n if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);\n return match;\n }\n capture = captures[n - 1];\n }\n return capture === undefined ? '' : capture;\n });\n};\n","var isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\n// `IsRegExp` abstract operation\n// https://tc39.es/ecma262/#sec-isregexp\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');\n};\n","'use strict';\nvar anObject = require('../internals/an-object');\n\n// `RegExp.prototype.flags` getter implementation\n// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags\nmodule.exports = function () {\n var that = anObject(this);\n var result = '';\n if (that.global) result += 'g';\n if (that.ignoreCase) result += 'i';\n if (that.multiline) result += 'm';\n if (that.dotAll) result += 's';\n if (that.unicode) result += 'u';\n if (that.sticky) result += 'y';\n return result;\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","var global = require('../internals/global');\nvar classof = require('../internals/classof');\n\nvar String = global.String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');\n return String(argument);\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar isCallable = require('../internals/is-callable');\nvar isRegExp = require('../internals/is-regexp');\nvar toString = require('../internals/to-string');\nvar getMethod = require('../internals/get-method');\nvar regExpFlags = require('../internals/regexp-flags');\nvar getSubstitution = require('../internals/get-substitution');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar REPLACE = wellKnownSymbol('replace');\nvar RegExpPrototype = RegExp.prototype;\nvar TypeError = global.TypeError;\nvar getFlags = uncurryThis(regExpFlags);\nvar indexOf = uncurryThis(''.indexOf);\nvar replace = uncurryThis(''.replace);\nvar stringSlice = uncurryThis(''.slice);\nvar max = Math.max;\n\nvar stringIndexOf = function (string, searchValue, fromIndex) {\n if (fromIndex > string.length) return -1;\n if (searchValue === '') return fromIndex;\n return indexOf(string, searchValue, fromIndex);\n};\n\n// `String.prototype.replaceAll` method\n// https://tc39.es/ecma262/#sec-string.prototype.replaceall\n$({ target: 'String', proto: true }, {\n replaceAll: function replaceAll(searchValue, replaceValue) {\n var O = requireObjectCoercible(this);\n var IS_REG_EXP, flags, replacer, string, searchString, functionalReplace, searchLength, advanceBy, replacement;\n var position = 0;\n var endOfLastMatch = 0;\n var result = '';\n if (searchValue != null) {\n IS_REG_EXP = isRegExp(searchValue);\n if (IS_REG_EXP) {\n flags = toString(requireObjectCoercible('flags' in RegExpPrototype\n ? searchValue.flags\n : getFlags(searchValue)\n ));\n if (!~indexOf(flags, 'g')) throw TypeError('`.replaceAll` does not allow non-global regexes');\n }\n replacer = getMethod(searchValue, REPLACE);\n if (replacer) {\n return call(replacer, searchValue, O, replaceValue);\n } else if (IS_PURE && IS_REG_EXP) {\n return replace(toString(O), searchValue, replaceValue);\n }\n }\n string = toString(O);\n searchString = toString(searchValue);\n functionalReplace = isCallable(replaceValue);\n if (!functionalReplace) replaceValue = toString(replaceValue);\n searchLength = searchString.length;\n advanceBy = max(1, searchLength);\n position = stringIndexOf(string, searchString, 0);\n while (position !== -1) {\n replacement = functionalReplace\n ? toString(replaceValue(searchString, position, string))\n : getSubstitution(searchString, string, position, [], undefined, replaceValue);\n result += stringSlice(string, endOfLastMatch, position) + replacement;\n endOfLastMatch = position + searchLength;\n position = stringIndexOf(string, searchString, position + advanceBy);\n }\n if (endOfLastMatch < string.length) {\n result += stringSlice(string, endOfLastMatch);\n }\n return result;\n }\n});\n","// TODO: Remove from `core-js@4`\nrequire('../modules/es.string.replace-all');\n","import React from 'react';\nimport { graphql, Link } from \"gatsby\"\nimport { GatsbyImage, getImage } from \"gatsby-plugin-image\"\n\nexport default function PostPreview({post}) {\n\t\n return (\n\t
\n\t\t\n\t\t {\n\t\t\tpost.featuredImage?.node\n\t\t\t? \n\t\t\t: null\n\t\t }\n\n\t\t
\n\t\t\t {\n\t\t\t\tpost.categories?.nodes?.length\n\t\t\t\t?

{Array.prototype.map.call(post.categories.nodes, function(item) { return item.name; }).join(\", \")}

\n\t\t\t\t: null\n\t\t\t }\t\t\t\t\t\n\t\t\t

{post.title}

\n\t\t\t

{post.date}

\n\t\t
\n\t\t\n\t
\n );\n}\n\nexport const PostFragment = graphql`\n\tfragment PostFragment on WpPost {\n\t categories {\n nodes {\n name\n }\n }\n title\n link\n date(formatString: \"D MMMM YYYY\")\n featuredImage {\n node {\n localFile {\n\t\t childImageSharp {\n\t gatsbyImageData(\n\t\t\t\tsizes: \"(min-width: 1280px) 405px, (min-width: 768px) 360px, calc(100vw - 64)\",\n\t\t\t\tbreakpoints: [622, 720, 810, 1232]\n\t )\n\t }\n }\n }\n }\n\t}\n`","\nexport default function filterSeoSchema(post) {\n\tlet frontendUrl = '';\n\t//console.log('seo scheme before filtering', post.seo.schema.raw)\n\t//replace url of opengraphImage if it's set\n\tif (post?.seo?.opengraphImage?.sourceUrl) {\n\t frontendUrl = getLiveUrl(post.seo.opengraphImage.sourceUrl);\n\t post.seo.schema.raw = post.seo.schema.raw.replaceAll(post.seo.opengraphImage.sourceUrl, frontendUrl+post.seo.opengraphImage.localFile.publicURL);\n\t post.seo.opengraphImage.sourceUrl = post.seo.opengraphImage.sourceUrl = frontendUrl+post.seo.opengraphImage.localFile.publicURL;\n\t}\n\tif (post?.seo?.twitterImage?.sourceUrl) {\t\t\n\t frontendUrl = getLiveUrl(post.seo.twitterImage.sourceUrl);\n\t post.seo.schema.raw = post.seo.schema.raw.replaceAll(post.seo.twitterImage.sourceUrl, frontendUrl+post.seo.twitterImage.localFile.publicURL);\n\t post.seo.twitterImage.sourceUrl = post.seo.twitterImage.sourceUrl = frontendUrl+post.seo.twitterImage.localFile.publicURL;\n\t}\n\t\n\t//console.log('seo after filtering', post.seo)\n\t\n\treturn post;\n}\n\n/**\n * Given a path on the CMS, this returns the hostname for the live site\n */\nconst getLiveUrl = function(url) {\n\tlet host = extractHostname(url);\n\tswitch (host) {\n\t\tcase 'cms.dev.landbay.co.uk':\n\t\t\treturn 'http://localhost:8000';\n\t\tcase 'cms.uatenv.landbay.co.uk':\n\t\t\treturn 'https://www.uatenv.landbay.co.uk';\n\t\tdefault:\n\t\t\treturn 'https://landbay.co.uk';\n\t}\n}\n\nconst extractHostname = function(url) {\n var hostname;\n //find & remove protocol (http, ftp, etc.) and get hostname\n\n if (url.indexOf(\"//\") > -1) {\n hostname = url.split('/')[2];\n } else {\n hostname = url.split('/')[0];\n }\n\n //find & remove port number\n hostname = hostname.split(':')[0];\n //find & remove \"?\"\n hostname = hostname.split('?')[0];\n\n return hostname;\n}","import React from \"react\"\nimport { graphql, Link } from \"gatsby\"\nimport Layout from '../components/Layout' \nimport Hero from '../components/widgets/Hero' \nimport { GatsbyImage, getImage } from \"gatsby-plugin-image\"\nimport PostPreview from '../components/PostPreview' \nimport BackIcon from \"../assets/svg/inline/ic_chevron-down.svg\"\nimport DownloadIcon from \"../assets/svg/inline/ic_download.svg\"\nimport Seo from 'gatsby-plugin-wpgraphql-seo';\nimport filterSeoSchema from '../utils/filterSeoSchema' \n\nexport default function Post({ data }) {\n const post = data.allWpPost.nodes[0]\n const author = post?.author?.node;\n\n /**\n * Print the current screen\n */\n const print = function() {\n\tif (window) {\n\t\twindow.print();\n\t}\n }\n\n return (\n \t\n \n\t\t
\n\t\t\t\n\t\t
\n
\n\t\t
\n\t\t\t {\n\t\t\t\tpost.categories?.nodes?.length\n\t\t\t\t?

{Array.prototype.map.call(post.categories.nodes, function(item) { return item.name; }).join(\", \")}

\n\t\t\t\t: null\n\t\t\t }\t\t\n

{post.title}

\n\t\t\t

{post.date}

\n\t\t\t
\n\t\t\t\t{\n\t\t\t\t author?.authors?.userProfilePicture?.localFile\n\t\t\t\t ? \n\t\t\t\t : null\n\t\t\t }\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t{\n\t\t\t\t\t author?.name\n\t\t\t\t\t ? {author.name}\n\t\t\t\t\t : null\n\t\t\t\t\t}\t\t\t\n\t\t\t\t\t{\n\t\t\t\t\t author?.authors?.userJobTitle\n\t\t\t\t\t ? {author.authors.userJobTitle}\n\t\t\t\t\t : null\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t
\n\t\t\t

Back

\n\t\t\t

\n\t\t
\n
\n\t {post.tags?.nodes?.length>0 && (\t\t\n\t\t
\n\t\t\t\t

\n\t\t\t\t {post.tags.nodes.map((tag, i) => (\t\n\t\t\t\t\t{tag.name}\n\t\t ))}\n\t\t\t\t

\n\t\t
\n\t\t )}\n
\n\t\t{/*do we have some related articles?*/}\n\t\t{post.relatedArticles?.articleRelated?.length>0 && (\n\t\t\t\n\t\t)}\n
\n )\n}\n\nexport const query = graphql`\n query($id: String!) {\n allWpPost(filter: { id: { eq: $id } }) {\n nodes {\n\t categories {\n nodes {\n name\n }\n }\n title\n date(formatString: \"D MMMM YYYY\")\n content\n ...PostSEOFragment\n\t tags {\n\t nodes {\n\t name\n\t }\n\t }\n\t \tauthor {\n\t node {\n\t name\n\t authors {\n\t userJobTitle\n\t userProfilePicture {\n\t localFile {\n\t\t\t\t childImageSharp {\n\t\t\t gatsbyImageData(\n\t\t\t\t\t sizes: \"54px\",\n\t\t\t\t\t breakpoints: [106]\n\t\t\t )\n\t\t\t }\n\t\t }\n\t }\n\t }\n\t }\n\t }\n\t\trelatedArticles {\n\t articleRelated {\n\t ... on WpPost {\n\t ...PostFragment\n\t }\n\t }\n\t }\n }\n }\n }\n`","var React = require('react');\n\nfunction IcChevronDown (props) {\n return React.createElement(\"svg\",props,React.createElement(\"path\",{\"style\":{\"fill\":\"currentColor\"},\"d\":\"M0,1.3l8,8l8-8L14.7,0L8,6.7L1.3,0L0,1.3z\"}));\n}\n\nIcChevronDown.defaultProps = {\"version\":\"1.1\",\"id\":\"Layer_1\",\"x\":\"0px\",\"y\":\"0px\",\"viewBox\":\"0 0 16 9.3\",\"style\":{\"enableBackground\":\"new 0 0 16 9.3\"},\"xmlSpace\":\"preserve\"};\n\nmodule.exports = IcChevronDown;\n\nIcChevronDown.default = IcChevronDown;\n","var React = require('react');\n\nfunction IcDownload (props) {\n return React.createElement(\"svg\",props,React.createElement(\"path\",{\"fillRule\":\"evenodd\",\"clipRule\":\"evenodd\",\"d\":\"M12.999 2.234V14.32l4.293-4.293 1.414 1.415L12 18.148 5.292 11.44l1.414-1.414L11 14.32V2.234h2zM21.999 22.234h-20v-2h20v2z\",\"fill\":\"currentColor\"}));\n}\n\nIcDownload.defaultProps = {\"width\":\"24\",\"height\":\"25\",\"viewBox\":\"0 0 24 25\",\"fill\":\"none\"};\n\nmodule.exports = IcDownload;\n\nIcDownload.default = IcDownload;\n"],"names":["global","TO_STRING_TAG_SUPPORT","isCallable","classofRaw","TO_STRING_TAG","wellKnownSymbol","Object","CORRECT_ARGUMENTS","arguments","module","exports","it","O","tag","result","undefined","key","error","tryGet","callee","uncurryThis","toObject","floor","Math","charAt","replace","stringSlice","slice","SUBSTITUTION_SYMBOLS","SUBSTITUTION_SYMBOLS_NO_NAMED","matched","str","position","captures","namedCaptures","replacement","tailPos","length","m","symbols","match","ch","capture","n","f","isObject","classof","MATCH","isRegExp","anObject","that","this","ignoreCase","multiline","dotAll","unicode","sticky","test","String","argument","TypeError","$","call","requireObjectCoercible","toString","getMethod","regExpFlags","getSubstitution","IS_PURE","REPLACE","RegExpPrototype","RegExp","prototype","getFlags","indexOf","max","stringIndexOf","string","searchValue","fromIndex","target","proto","replaceAll","replaceValue","IS_REG_EXP","flags","replacer","searchString","functionalReplace","searchLength","advanceBy","endOfLastMatch","PostPreview","post","className","Link","to","link","featuredImage","node","G","image","getImage","localFile","alt","title","categories","nodes","Array","map","item","name","join","date","filterSeoSchema","frontendUrl","seo","opengraphImage","sourceUrl","getLiveUrl","schema","raw","publicURL","twitterImage","url","extractHostname","split","Post","data","allWpPost","author","Layout","Hero","widget","layout","authors","userProfilePicture","userJobTitle","onClick","window","print","dangerouslySetInnerHTML","__html","content","tags","i","relatedArticles","articleRelated","article","React","IcChevronDown","props","createElement","defaultProps","default","IcDownload"],"sourceRoot":""}