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C,EAAS,KAAKnM,MAAM2O,GACxB,OAAyB,IAAlBxC,EAAOpH,QAA8B,MAAdoH,EAAO,IAA4B,MAAdA,EAAO,EAC5D,IAuHuCa","sources":["webpack://Msdyn365.Commerce.Online/./src/modules/hosports-footer/hosports-footer.tsx?40b0","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-footer/hosports-footer.view.tsx?5e6b","webpack://Msdyn365.Commerce.Online/./src/themes/kent/utilities/analytics.js?2fc0","webpack://Msdyn365.Commerce.Online/./src/themes/kent/views/hosports-footer.view.tsx?9abd","webpack://Msdyn365.Commerce.Online/./src/modules/script-injector/script-injector.tsx?5a34","webpack://Msdyn365.Commerce.Online/./src/themes/kent/utilities/functions.js?b879","webpack://Msdyn365.Commerce.Online/./node_modules/@msdyn365-commerce/bootloader/node_modules/core-js/modules/es.string.match.js?a69e","webpack://Msdyn365.Commerce.Online/./node_modules/@msdyn365-commerce/bootloader/node_modules/core-js/modules/es.string.split.js?9fc2"],"sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\nimport * as React from 'react';\r\n\r\nimport { IHosportsFooterData } from './hosports-footer.data';\r\nimport { IHosportsFooterProps } from './hosports-footer.props.autogenerated';\r\n\r\nexport interface IHosportsFooterViewProps extends IHosportsFooterProps {\r\n\r\n}\r\n\r\n/**\r\n *\r\n * HosportsFooter component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass HosportsFooter extends React.PureComponent> {\r\n public render(): JSX.Element | null {\r\n\r\n return this.props.renderView(this.props);\r\n }\r\n}\r\n\r\nexport default HosportsFooter;\r\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\nimport * as React from 'react';\r\nimport { IHosportsFooterViewProps } from './hosports-footer';\r\n\r\nexport default (props: IHosportsFooterViewProps) => {\r\n return (\r\n

{'hosports-footer'}

\r\n );\r\n};\r\n","import ReactGA from 'react-ga';\r\nimport {getCookieValue} from './functions';\r\nimport Axios from 'axios';\r\n\r\nexport const initAnalytics = async (code) =>{\r\n if(typeof window !== \"undefined\"){\r\n if(window){\r\n if(window.location){\r\n let locale = await checkLocale();\r\n console.log(locale)\r\n let cookieValue = await getCookieValue('_msdyn365___ucc_')\r\n console.log(cookieValue)\r\n if(cookieValue){\r\n console.log('init')\r\n ReactGA.initialize(code);\r\n ReactGA.pageview(window.location.pathname + window.location.search);\r\n localStorage.setItem(\"lang\",locale.lang)\r\n localStorage.setItem(\"country\",locale.country)\r\n localStorage.setItem(\"state\",locale.state)\r\n } else if(locale && locale.lang != 'eu' && locale.lang != 'uk' && locale.state != 'CA'){\r\n let cookieBanners = document.getElementsByClassName('ms-cookie-compliance');\r\n if(cookieBanners){\r\n if(cookieBanners[0]){\r\n cookieBanners[0].style.display = \"none\";\r\n }\r\n }\r\n ReactGA.initialize(code);\r\n ReactGA.pageview(window.location.pathname + window.location.search);\r\n localStorage.setItem(\"lang\",locale.lang)\r\n localStorage.setItem(\"country\",locale.country)\r\n localStorage.setItem(\"state\",locale.state)\r\n }\r\n } else{\r\n return false;\r\n }\r\n } else{\r\n return false;\r\n }\r\n }\r\n}\r\n\r\nexport const checkLocale = async() =>{\r\n var lang;\r\n var country;\r\n var state;\r\n //rest api for location\r\n var lang;\r\n if(localStorage.getItem(\"lang\")){\r\n lang = localStorage.getItem(\"lang\");\r\n country = localStorage.getItem(\"country\");\r\n state = localStorage.getItem(\"state\");\r\n if(typeof window !== \"undefined\"){\r\n window.lang = lang;\r\n window.country = country;\r\n window.state = state;\r\n }\r\n\r\n return {\r\n lang:lang,\r\n country:country,\r\n state:state\r\n }\r\n }\r\n else{\r\n let response = await Axios.get('https://alpine-hosports.herokuapp.com/getUserLocale')\r\n var country = response.data.geo.country.toLowerCase();\r\n var state = response.data.geo.region;\r\n localStorage.setItem('userGeo',JSON.stringify(response.data.geo));\r\n var language =\r\n (navigator.languages && navigator.languages[0]) ||\r\n navigator.language ||\r\n navigator.userLanguage;\r\n var languageWithoutRegionCode = language.toLowerCase().split(/[_-]+/)[0];\r\n\r\n if(country){\r\n if(country == \"de\"){\r\n country = \"germany\";\r\n } else if(country == \"au\"){\r\n country = \"australia\";\r\n } else if(country == 'ca'){\r\n country = 'canada'\r\n } else if(lang == 'uk'){\r\n country = 'uk'\r\n }\r\n else{\r\n country = \"us\";\r\n }\r\n }\r\n if(language){\r\n if(language.indexOf(\"de\") != -1){\r\n lang='de'\r\n } else if(language == \"en-au\"){\r\n lang='au'\r\n } else{\r\n lang='en'\r\n }\r\n } else{\r\n lang='en'\r\n }\r\n if(typeof window !== \"undefined\"){\r\n window.country = country\r\n window.lang = lang;\r\n window.state = state;\r\n }\r\n return {\r\n lang:lang,\r\n country:country,\r\n state:state\r\n }\r\n }\r\n}\r\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\nimport React from 'react';\r\n// @ts-ignore\r\nimport Parse from 'parse';\r\n// @ts-ignore\r\nimport { IHosportsFooterViewProps } from '../../../modules/hosports-footer/./hosports-footer';\r\n// @ts-ignore\r\nimport MailchimpSubscribe from \"react-mailchimp-subscribe\"\r\n// @ts-ignore\r\nimport {GeneralAssetUrl} from '../utilities/constants';\r\n// @ts-ignore\r\nimport {initAnalytics} from '../utilities/analytics';\r\n\r\n/**\r\n *\r\n * Hero component\r\n * @extends {React.Component}\r\n */\r\nclass HoSportsFooter extends React.Component {\r\n\r\n public render(): JSX.Element {\r\n const { config } = this.props;\r\n if(config.googleAnalyticsCode){\r\n initAnalytics(config.googleAnalyticsCode)\r\n }\r\n console.log(config)\r\n if(config.blockSiteFromPublic){\r\n if(!Parse.User.current() || Parse.User.current().id != config.blockSiteFromPublicAcceptedUserId){\r\n if(window.location.pathname.indexOf('retailer-login') == -1){\r\n if(window.location.search){\r\n window.location.assign('/retailer-login/'+window.location.search)\r\n } else{\r\n window.location.assign('/retailer-login/')\r\n }\r\n }\r\n }\r\n }\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n {config.newsletterCTA &&
{config.newsletterCTA}
}\r\n
\r\n
\r\n {config.mailchimpUrl &&\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n }\r\n
\r\n
\r\n {config.topRowLinkList && config.topRowLinkList.map((data:any) =>{\r\n return({data.linkText})\r\n })}\r\n
\r\n
\r\n
\r\n {(config.logo ||\r\n config.companyName)\r\n &&\r\n
\r\n {config.logo && config.logo.src && }\r\n {config.companyName &&
{config.companyName}
}\r\n {config.addressStreet &&

{config.addressStreet}
\r\n {config.addressCity && config.addressCity}\r\n {config.addressState && ', '+config.addressState}\r\n {config.addressZip && ' '+config.addressZip}\r\n

}\r\n {config.phone &&

{config.phone}

}\r\n {config.email &&

{config.email}

}\r\n
\r\n }\r\n {(config.middleRowLinkColumn1Title || config.middleRowLinkColumn1LinkList) &&\r\n
\r\n {config.middleRowLinkColumn1Title &&
{config.middleRowLinkColumn1Title}
}\r\n {config.middleRowLinkColumn1LinkList && config.middleRowLinkColumn1LinkList.map((data:any) =>{\r\n return({data.linkText}
)\r\n })}\r\n
\r\n }\r\n {(config.middleRowLinkColumn2Title || config.middleRowLinkColumn2LinkList) &&\r\n
\r\n {config.middleRowLinkColumn2Title &&
{config.middleRowLinkColumn2Title}
}\r\n {config.middleRowLinkColumn2LinkList && config.middleRowLinkColumn2LinkList.map((data:any) =>{\r\n return({data.linkText}
)\r\n })}\r\n
\r\n }\r\n {(config.middleRowLinkColumn3Title || config.middleRowLinkColumn3LinkList) &&\r\n
\r\n {config.middleRowLinkColumn3Title &&
{config.middleRowLinkColumn3Title}
}\r\n {config.middleRowLinkColumn3LinkList && config.middleRowLinkColumn3LinkList.map((data:any) =>{\r\n return({data.linkText}
)\r\n })}\r\n
\r\n }\r\n
\r\n
\r\n
\r\n {config.copyrightInfo &&
{config.copyrightInfo}
}\r\n
\r\n
\r\n {config.twitter && }\r\n {config.facebook && }\r\n {config.instagram && }\r\n {config.youtube && }\r\n
\r\n
\r\n {config.bottomRowLinkList && config.bottomRowLinkList.map((data:any) =>{\r\n return(
{data.linkText}
)\r\n })}\r\n
\r\n
\r\n
\r\n
\r\n )\r\n }\r\n};\r\n\r\nexport default HoSportsFooter;\r\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport * as MsDyn365 from '@msdyn365-commerce/core-internal';\nimport { LogLevel } from '@msdyn365-commerce/telemetry-internal';\nimport * as React from 'react';\nimport { IScriptInjectorProps } from './script-injector.props.autogenerated';\n\n/**\n *\n * CoreComponent component\n * @extends {React.PureComponent}\n */\nclass ScriptInjector extends React.PureComponent> {\n constructor(props: IScriptInjectorProps<{}>) {\n super(props);\n }\n\n public render(): JSX.Element | null {\n const { config } = this.props;\n this._debug(`Adding html head tags for '${this.props.id}/${this.props.typeName}'`);\n\n const placeHolderPropsRegEx = RegExp('%[a-zA-Z0-9-.]*%', 'g');\n let placeHolders: RegExpExecArray | null;\n const originalSource = config && config.scriptSource;\n let resolvedSource;\n\n if (originalSource) {\n let hasMorePlaceHolders = true;\n resolvedSource = originalSource;\n\n while (hasMorePlaceHolders) {\n placeHolders = placeHolderPropsRegEx.exec(originalSource);\n\n if (placeHolders && placeHolders.length > 0) {\n this._debug(`extracted placeholder ${placeHolders[0]}`);\n resolvedSource = this._resolvePlaceHolder(resolvedSource, placeHolders[0]);\n } else {\n hasMorePlaceHolders = false;\n }\n }\n }\n\n if (!resolvedSource) {\n return null;\n }\n\n return (\n \n {this._isUrl(resolvedSource) ? (\n \n ) : (\n \n )}\n \n );\n }\n\n private _debug(debugMessage: string): void {\n if (this.props.telemetry) {\n this.props.telemetry.log(LogLevel.Debug, debugMessage);\n }\n }\n\n private _isUrl(source: string): boolean {\n // eslint-disable-next-line security/detect-unsafe-regex\n return /(ftp|http|https):\\/\\/(\\w+:{0,1}\\w*@)?(\\S+)(:[0-9]+)?(\\/|\\/([\\w#!:.?+=&%@!\\-\\/]))?/.test(source);\n }\n\n private _resolvePlaceHolder(resolvedSource: string, placeHolderToken: string): string {\n // expect placeholder to of the format eg: %config.id%\n const placeHolderTokens = placeHolderToken.split(/[%.]/);\n\n if (placeHolderTokens.length !== 4 || !resolvedSource) {\n return resolvedSource;\n }\n\n const propertyContext = placeHolderTokens[1];\n const propertyName = placeHolderTokens[2];\n\n if (propertyContext === 'props') {\n // eslint-disable-next-line security/detect-object-injection -- bracket object notation with user input present leads to eslint security issue.\n if (this.props[propertyName]) {\n // eslint-disable-next-line security/detect-object-injection -- bracket object notation with user input present leads to eslint security issue.\n resolvedSource = resolvedSource.replace(placeHolderToken, this.props[propertyName]);\n // eslint-disable-next-line security/detect-object-injection -- bracket object notation with user input present leads to eslint security issue.\n this._debug(`Replaced placeholder ${placeHolderToken} with props property ${this.props[propertyName]}`);\n }\n } else if (this.props.context && this.props.context.request) {\n switch (propertyContext) {\n case 'request':\n // eslint-disable-next-line security/detect-object-injection -- bracket object notation with user input present leads to eslint security issue.\n if (this.props.context.request[propertyName]) {\n // eslint-disable-next-line security/detect-object-injection -- bracket object notation with user input present leads to eslint security issue.\n resolvedSource = resolvedSource.replace(placeHolderToken, this.props.context.request[propertyName]);\n this._debug(\n // eslint-disable-next-line security/detect-object-injection -- bracket object notation with user input present leads to eslint security issue.\n `Replaced placeholder ${placeHolderToken} with request property ${this.props.context.request[propertyName]}`\n );\n }\n\n break;\n case 'user':\n // eslint-disable-next-line security/detect-object-injection -- bracket object notation with user input present leads to eslint security issue.\n if (this.props.context.request.user && this.props.context.request.user[propertyName]) {\n // eslint-disable-next-line security/detect-object-injection -- bracket object notation with user input present leads to eslint security issue.\n resolvedSource = resolvedSource.replace(placeHolderToken, this.props.context.request.user[propertyName]);\n this._debug(\n // eslint-disable-next-line security/detect-object-injection -- bracket object notation with user input present leads to eslint security issue.\n `Replaced placeholder ${placeHolderToken} with user property ${this.props.context.request.user[propertyName]}`\n );\n }\n\n break;\n case 'query':\n // eslint-disable-next-line security/detect-object-injection -- bracket object notation with user input present leads to eslint security issue.\n if (this.props.context.request.query && this.props.context.request.query[propertyName]) {\n // eslint-disable-next-line security/detect-object-injection -- bracket object notation with user input present leads to eslint security issue.\n resolvedSource = resolvedSource.replace(placeHolderToken, this.props.context.request.query[propertyName]);\n this._debug(\n // eslint-disable-next-line security/detect-object-injection -- bracket object notation with user input present leads to eslint security issue.\n `Replaced placeholder ${placeHolderToken} with query parameter ${this.props.context.request.query[propertyName]}`\n );\n }\n\n break;\n default:\n }\n }\n\n return resolvedSource;\n }\n}\n\nexport default ScriptInjector;\n","import Parse from 'parse';\r\nimport {ModelYear,YoutubeApiKey} from './constants';\r\nexport const ProductAssetUrl = \"https://assets.hosports.com/\"+ModelYear+\"/img/\";\r\nexport const ResizeableProductAssetUrl = \"https://assets.hosports.com/image.php?src=\"+ModelYear+\"/img/\";\r\nimport {GetFromParseBySlug, FindFromParse} from './parse';\r\nimport Axios from 'axios';\r\n\r\nexport const BaseUrl = () =>{\r\n /*\r\n if international\r\n let url = window.location.pathname.split('/');\r\n if(url[1]){\r\n return '/'+url[1]+'/'\r\n } else{\r\n return '/'\r\n }\r\n */\r\n return '/'\r\n};\r\n\r\nexport const SetupSiteText = async() =>{\r\n const SiteTextQuery = Parse.Object.extend(\"SiteText\");\r\n const sitetextquery = new Parse.Query(SiteTextQuery);\r\n sitetextquery.limit(10000)\r\n const siteTextResults = await sitetextquery.find();\r\n var siteText = {};\r\n window.siteTextResults = siteTextResults;\r\n for (var i = 0; i < siteTextResults.length; i++) {\r\n let data = siteTextResults[i]\r\n siteText[data.attributes.slug] = {};\r\n var content = {};\r\n data.attributes.content.map((item,index)=>{\r\n content[item.lang]=item.title;\r\n if(index == data.attributes.content.length -1){\r\n siteText[data.attributes.slug] = content;\r\n }\r\n })\r\n }\r\n window.siteText = siteText;\r\n return true;\r\n}\r\n\r\nexport const SetupSeo = async() =>{\r\n const SeoQuery = Parse.Object.extend(\"Seo\");\r\n const seoquery = new Parse.Query(SeoQuery);\r\n seoquery.equalTo('site',window.site);\r\n seoquery.limit(1000)\r\n const seoresults = await seoquery.find();\r\n var seo = {};\r\n for (var i = 0; i < seoresults.length; i++) {\r\n var data = seoresults[i];\r\n seo[data.attributes.url] = data;\r\n }\r\n window.seo = seo;\r\n return true;\r\n}\r\n\r\nexport const SetupProducts = async() =>{\r\n const ProductQuery = Parse.Object.extend(\"Products\"+ModelYear);\r\n const productquery = new Parse.Query(ProductQuery);\r\n productquery.equalTo('site',window.site);\r\n productquery.limit(1000)\r\n const productResults = await productquery.find();\r\n window.productDictionary = {};\r\n window.products = productResults;\r\n for (var i = 0; i < productResults.length; i++) {\r\n window.productDictionary[productResults[i].id] = productResults[i];\r\n }\r\n return true\r\n}\r\n\r\nexport const SetupRedirects = async() =>{\r\n if(window.location.pathname.indexOf('product-detail') != -1){\r\n var slug = window.location.search.replace('?id=','');\r\n window.location.assign('product/'+slug)\r\n }\r\n return true\r\n}\r\n\r\nexport const SetupSubcategories = async() =>{\r\n const SubcategoryQuery = Parse.Object.extend(\"Subcategories\");\r\n const subcategoryquery = new Parse.Query(SubcategoryQuery);\r\n subcategoryquery.equalTo('site',window.site);\r\n subcategoryquery.ascending('order')\r\n const subcategoryResults = await subcategoryquery.find();\r\n window.subcategoryDictionary = {};\r\n window.subcategories = subcategoryResults;\r\n for (var i = 0; i < subcategoryResults.length; i++) {\r\n window.subcategoryDictionary[subcategoryResults[i].id] = subcategoryResults[i];\r\n }\r\n return true;\r\n}\r\n\r\nexport const SetupTeam = async() =>{\r\n const TeamQuery = Parse.Object.extend(\"Team\"+ModelYear);\r\n const teamquery = new Parse.Query(TeamQuery);\r\n teamquery.equalTo('site',window.site);\r\n teamquery.equalTo('visibility',true);\r\n teamquery.ascending('order')\r\n teamquery.limit(1000)\r\n const teamResults = await teamquery.find();\r\n window.teamDictionary = {};\r\n window.team = teamResults;\r\n for (var i = 0; i < teamResults.length; i++) {\r\n window.teamDictionary[teamResults[i].id] = teamResults[i];\r\n }\r\n return true\r\n}\r\n\r\nexport const GetSubcategoriesFromCategory = async (category) => {\r\n var subcategories = window.subcategories.filter(subcategory => subcategory.attributes.parent && subcategory.attributes.parent == category);\r\n return subcategories;\r\n}\r\n\r\nexport const GetProductBySlug = async (slug) => {\r\n var products = window.products.filter(product => product.attributes.slug == slug);\r\n return products[0];\r\n}\r\n\r\nexport const GetProductsByQuery = async (key,value,limit) => {\r\n let lang = window.lang;\r\n if(window.lang == 'eu'){\r\n lang = \"de\"\r\n }\r\n let products = window.products.filter(product => product.attributes[key] == value && product.attributes.locale.indexOf(lang) != -1);\r\n let results = products;\r\n if(products && limit){\r\n results = products.slice(0,limit)\r\n }\r\n return results;\r\n}\r\n\r\nexport const GetProductsByCollection = async (collection) => {\r\n let products = window.products.filter(product => product.attributes.collections && product.attributes.collections.indexOf(collection) != -1);\r\n return products;\r\n}\r\nexport const GetProductsByCategory = async (category) => {\r\n let products = window.products.filter(product => product.attributes.category && product.attributes.category == category);\r\n return products;\r\n}\r\n\r\nexport const GetProductsBySubCategory = async (subcategory) => {\r\n let products = window.products.filter(product => product.attributes.subcategory && product.attributes.subcategory == subcategory);\r\n return products;\r\n}\r\n\r\nexport const ReorderProducts = async (products) => {\r\n var sortedProducts = products.sort(compare);\r\n return sortedProducts;\r\n\r\n function compare(a, b){\r\n return a.attributes.order - b.attributes.order;\r\n }\r\n}\r\n\r\nexport const GetProductsBySlugs = async (slugs) => {\r\n var products = window.products.filter(product => slugs.indexOf(product.attributes.slug) != -1);\r\n return products;\r\n}\r\n\r\nexport const GetTeamByType = async (type) => {\r\n var Team;\r\n if(type == 'wakeboard'){\r\n Team = window.team;\r\n }\r\n if(type == \"Ski\"){\r\n Team = window.team.filter(rider => rider.attributes.team == \"Ski\");\r\n } else if (type == \"Wake/Knee\"){\r\n Team = window.team.filter(rider => rider.attributes.team == \"Wake/Knee\");\r\n }\r\n return Team;\r\n}\r\n\r\nexport const GetRidersBySlugs = async (slugs) => {\r\n var riders = window.team.filter(rider => slugs.indexOf(rider.attributes.slug) != -1);\r\n return riders;\r\n}\r\nexport const GenerateProductAssetUrl = (year) =>{\r\n let url = 'https://assets.hosports.com/'+ModelYear+'/img/';\r\n if(year){\r\n url = 'https://assets.hosports.com/'+year+'/img/';\r\n }\r\n return url\r\n}\r\nexport const OrderProductsByPrice = async (products) => {\r\n var sortedProducts = products.sort(compare);\r\n return sortedProducts;\r\n function compare(a, b){\r\n if(b.attributes.content[0].price && a.attributes.content[0].price){\r\n return parseFloat(b.attributes.content[0].price.toString().replace(',','')) - parseFloat(a.attributes.content[0].price.toString().replace(',',''))\r\n } else{\r\n return false\r\n }\r\n }\r\n}\r\n\r\nexport const ReturnProductDetailLink = async (product) => {\r\n /*\r\n if(product.attributes.msftRecordIdMap){\r\n let keys = Object.keys(product.attributes.msftRecordIdMap)\r\n return '/hl/'+product.attributes.slug+'/'+product.attributes.msftRecordIdMap[keys[0]]+'.p';\r\n } else{\r\n return ''\r\n }\r\n */\r\n if(window.location.search){\r\n return '/product/'+product.attributes.slug+window.location.search\r\n } else{\r\n return '/product/'+product.attributes.slug\r\n }\r\n}\r\n\r\nexport const ReturnLocalizedLink = async (url) => {\r\n if(window.location.search){\r\n let baseUrl = await BaseUrl();\r\n return baseUrl+url+window.location.search.replace('?','&')\r\n } else{\r\n return baseUrl+url\r\n }\r\n}\r\n\r\n\r\nexport const GetUrlVariable = (variable) => {\r\n var query = window.location.search.substring(1);\r\n var vars = query.split(\"&\");\r\n for (var i = 0; i < vars.length; i++) {\r\n var pair = vars[i].split(\"=\");\r\n if (pair[0] == variable) {\r\n return pair[1];\r\n }\r\n }\r\n return (false);\r\n}\r\n\r\nexport const getCookieValue = (a) => {\r\n var b = document.cookie.match('(^|;)\\\\s*' + a + '\\\\s*=\\\\s*([^;]+)');\r\n return b ? b.pop() : '';\r\n}\r\n\r\nexport const GetLocalizedText = (content,target) =>{\r\n var text;\r\n //var lang = window.lang;\r\n var lang = 'en';\r\n if(content){\r\n content.map((data,index) => {\r\n if(data.lang == 'en'){\r\n text = data[target]\r\n }\r\n if(data.lang == lang && data[target]){\r\n if(data[target] != \"\" && data[target] != \" \"){\r\n text = data[target];\r\n }\r\n }\r\n if(index == content.length -1){\r\n return text;\r\n }\r\n })\r\n }\r\n return (text);\r\n}\r\n\r\nexport const GetLocalText = async (slug) => {\r\n let text = await GetFromParseBySlug('SiteText',slug)\r\n if(text){\r\n let localizedText = await GetLocalizedText(text.attributes.content,'title');\r\n if(localizedText){\r\n return localizedText\r\n } else{\r\n return '';\r\n }\r\n } else{\r\n return '';\r\n }\r\n}\r\n\r\nexport const GetLocalizedPrice = async (content,target) => {\r\n var price = '';\r\n var lang = window.lang;\r\n if(window){\r\n if(window.location){\r\n if(window.location.href){\r\n if(window.location.href.indexOf('fatsac.com') != -1 || window.location.href.indexOf('barefootinternational.com') != -1){\r\n lang = \"en\"\r\n }\r\n }\r\n }\r\n }\r\n console.log(lang)\r\n var englishPrice = \"\";\r\n content.map((data,index) => {\r\n if((lang == 'en' && data.lang == 'en')){\r\n price = '$'+data['price'];\r\n englishPrice = '$'+data['price'];\r\n }\r\n if(lang == 'fr' && data.lang == 'fr'){\r\n var flag = true;\r\n if(data['price'] != \"\" && data['price'] != \" \" && data['price'] != null){\r\n price = '$'+data['price']+' CAD';\r\n }\r\n }\r\n if(lang == 'ca-fr' && data.lang == 'ca-fr'){\r\n var flag = true;\r\n if(data['price'] != \"\" && data['price'] != \" \" && data['price'] != null){\r\n price = '$'+data['price']+' CAD';\r\n }\r\n }\r\n if(lang == 'ca-en' && data.lang == 'ca-en'){\r\n var flag = true;\r\n if(data['price'] != \"\" && data['price'] != \" \" && data['price'] != null){\r\n price = '$'+data['price']+' CAD';\r\n }\r\n }\r\n\r\n if(lang == 'au' && data.lang == 'au'){\r\n if(data['price'] != \"\" && data['price'] != \" \" && data['price'] != null){\r\n price = '$'+data['price']+' AUD';\r\n }\r\n }\r\n if(lang == 'de' && data.lang == 'de'){\r\n if(data['price'] != \"\" && data['price'] != \" \" && data['price'] != null){\r\n price = '€'+data['price'];\r\n }\r\n }\r\n if(lang == 'uk' && data.lang == 'uk'){\r\n if(data['price'] != \"\" && data['price'] != \" \" && data['price'] != null){\r\n price = '£'+data['price'];\r\n }\r\n }\r\n if(lang == 'eu' && data.lang == 'eu'){\r\n if(data['price'] != \"\" && data['price'] != \" \" && data['price'] != null){\r\n price = '€'+data['price'];\r\n }\r\n }\r\n if(index == content.length -1){\r\n return price;\r\n }\r\n })\r\n return price;\r\n}\r\n\r\n\r\nexport const ShuffleArray = (a) => {\r\n var j, x, i;\r\n for (i = a.length - 1; i > 0; i--) {\r\n j = Math.floor(Math.random() * (i + 1));\r\n x = a[i];\r\n a[i] = a[j];\r\n a[j] = x;\r\n }\r\n return a;\r\n}\r\n\r\nexport const StripHtml = (html) =>{\r\n var tmp = document.createElement(\"DIV\");\r\n tmp.innerHTML = html;\r\n return tmp.textContent.replace(/(\\r\\n|\\n|\\r)/gm, \"\") || tmp.innerText.replace(/(\\r\\n|\\n|\\r)/gm, \"\") || \"\";\r\n}\r\n\r\nexport const RemoveLoading = () =>{\r\n let loader = document.getElementById('loading');\r\n setTimeout(()=>{\r\n loader.parentNode.removeChild(loader)\r\n }, 750);\r\n loader.style.opacity = '0';\r\n}\r\n\r\nexport const GetExternalProductId = async(data) =>{\r\n if(data.productSpecificationData){\r\n return data.productSpecificationData.then((specs) => {\r\n let slug = null;\r\n for (let index = 0; index < specs.length; index++) {\r\n if(specs[index].Name === \"ExternalItemId\"){\r\n slug = specs[index].TextValue;\r\n }\r\n }\r\n return slug;\r\n });\r\n } else{\r\n return null\r\n }\r\n}\r\n\r\nexport const GetThumbnailFromVimeo = async(url) =>{\r\n let thumbnail = null;\r\n if(url){\r\n let response = await Axios.get('https://vimeo.com/api/oembed.json?url='+url);\r\n console.log(response)\r\n if(response){\r\n if(response.data){\r\n thumbnail = response.data.thumbnail_url\r\n }\r\n }\r\n }\r\n return thumbnail\r\n}\r\n\r\nexport const DoesProductShowDetailImages = async(product,category,subcategory) =>{\r\n let value = false;\r\n if(category){\r\n if(category.attributes.showProductDetailImages){\r\n value = true\r\n }\r\n }\r\n if(subcategory){\r\n if(subcategory.attributes.showProductDetailImages){\r\n value = true\r\n }\r\n }\r\n if(product){\r\n if(product.attributes.showProductDetailImages){\r\n value = true\r\n }\r\n }\r\n return value\r\n}\r\n\r\nexport const DoesProductShowHeroImage = async(product,category,subcategory) =>{\r\n let value = false;\r\n if(category){\r\n if(category.attributes.showProductHeroImage){\r\n value = true\r\n }\r\n }\r\n if(subcategory){\r\n if(subcategory.attributes.showProductHeroImage){\r\n value = true\r\n }\r\n }\r\n if(product){\r\n if(product.attributes.showProductHeroImage){\r\n value = true\r\n }\r\n }\r\n return value\r\n}\r\n\r\nexport const GetYoutubeIdFromUrl = async(youtubeUrl) =>{\r\n let videoId = null;\r\n if(youtubeUrl){\r\n videoId = youtubeUrl.split('v=')[1];\r\n if(videoId){\r\n let ampersandPosition = videoId.indexOf('&');\r\n if(ampersandPosition != -1) {\r\n videoId = videoId.substring(0, ampersandPosition);\r\n }\r\n }\r\n }\r\n return videoId\r\n}\r\n\r\nexport const GetProductFromItemNumber = async (itemNumber,year) =>{\r\n let prodModelYear = year ? year : ModelYear;\r\n if(itemNumber){\r\n let num = parseInt(itemNumber)\r\n const results = await FindFromParse(\"ApiProductVariants\"+prodModelYear,[{\"method\":\"equalTo\",\"key\":\"itemNumber\",\"value\":num}]);\r\n if(results && results[0]){\r\n let product = await GetExternalProductInfo(results[0].attributes.slug,prodModelYear);\r\n return product\r\n }\r\n } else{\r\n return null\r\n }\r\n}\r\n\r\nexport const GetExternalProductInfo = async(slug,year) =>{\r\n let prodModelYear = year ? year : ModelYear;\r\n if(slug){\r\n let product = await GetFromParseBySlug('Products'+prodModelYear,slug);\r\n return product;\r\n } else{\r\n return null\r\n }\r\n}\r\n\r\nexport const GetLocaleValue = () =>{\r\n let lang = window.lang;\r\n if(!lang){\r\n lang = \"en\";\r\n }\r\n return lang;\r\n}\r\n\r\nexport const GetUserLocale = async() =>{\r\n let response = await Axios.get('https://alpine-hosports.herokuapp.com/getUserLocale');\r\n var country = response.data.geo.country.toLowerCase();\r\n let lang;\r\n var language =\r\n (navigator.languages && navigator.languages[0]) ||\r\n navigator.language ||\r\n navigator.userLanguage;\r\n var languageWithoutRegionCode = language.toLowerCase().split(/[_-]+/)[0];\r\n if(country){\r\n if(country == \"de\"){\r\n lang='de'\r\n } else if(country == \"gb\"){\r\n lang='uk'\r\n } else if(country == \"au\"){\r\n lang='au'\r\n } else if(country == \"ru\"){\r\n lang='ru'\r\n } else if(country == \"ca\"){\r\n lang='ca-en'\r\n } else if(language.includes(\"fr\")){\r\n lang='fr'\r\n } else{\r\n lang = 'en'\r\n }\r\n } else if(language){\r\n if(language.includes(\"ca-fr\")){\r\n lang='ca-fr'\r\n } else if(language.includes(\"ca-en\")){\r\n lang='ca-en'\r\n } else{\r\n lang = 'en'\r\n }\r\n }\r\n window.lang = lang;\r\n return lang\r\n}\r\n\r\nexport const TruncateText = (text,length) => {\r\n let description = text;\r\n if(description){\r\n if(description.length > length){\r\n description = description.slice(0,length)+'...';\r\n }\r\n }\r\n return description\r\n}\r\n\r\nexport const CapitalizeFirstLetter = (text) => {\r\n if(text){\r\n return text.charAt(0).toUpperCase() + text.slice(1);\r\n } else{\r\n return text\r\n }\r\n\r\n}\r\n","'use strict';\nvar call = require('../internals/function-call');\nvar fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic');\nvar anObject = require('../internals/an-object');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar toLength = require('../internals/to-length');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar getMethod = require('../internals/get-method');\nvar advanceStringIndex = require('../internals/advance-string-index');\nvar regExpExec = require('../internals/regexp-exec-abstract');\n\n// @@match logic\nfixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNative) {\n return [\n // `String.prototype.match` method\n // https://tc39.es/ecma262/#sec-string.prototype.match\n function match(regexp) {\n var O = requireObjectCoercible(this);\n var matcher = isNullOrUndefined(regexp) ? undefined : getMethod(regexp, MATCH);\n return matcher ? call(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString(O));\n },\n // `RegExp.prototype[@@match]` method\n // https://tc39.es/ecma262/#sec-regexp.prototype-@@match\n function (string) {\n var rx = anObject(this);\n var S = toString(string);\n var res = maybeCallNative(nativeMatch, rx, S);\n\n if (res.done) return res.value;\n\n if (!rx.global) return regExpExec(rx, S);\n\n var fullUnicode = rx.unicode;\n rx.lastIndex = 0;\n var A = [];\n var n = 0;\n var result;\n while ((result = regExpExec(rx, S)) !== null) {\n var matchStr = toString(result[0]);\n A[n] = matchStr;\n if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);\n n++;\n }\n return n === 0 ? null : A;\n }\n ];\n});\n","'use strict';\nvar apply = require('../internals/function-apply');\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic');\nvar anObject = require('../internals/an-object');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar isRegExp = require('../internals/is-regexp');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar speciesConstructor = require('../internals/species-constructor');\nvar advanceStringIndex = require('../internals/advance-string-index');\nvar toLength = require('../internals/to-length');\nvar toString = require('../internals/to-string');\nvar getMethod = require('../internals/get-method');\nvar arraySlice = require('../internals/array-slice-simple');\nvar callRegExpExec = require('../internals/regexp-exec-abstract');\nvar regexpExec = require('../internals/regexp-exec');\nvar stickyHelpers = require('../internals/regexp-sticky-helpers');\nvar fails = require('../internals/fails');\n\nvar UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;\nvar MAX_UINT32 = 0xFFFFFFFF;\nvar min = Math.min;\nvar $push = [].push;\nvar exec = uncurryThis(/./.exec);\nvar push = uncurryThis($push);\nvar stringSlice = uncurryThis(''.slice);\n\n// Chrome 51 has a buggy \"split\" implementation when RegExp#exec !== nativeExec\n// Weex JS has frozen built-in prototypes, so use try / catch wrapper\nvar SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {\n // eslint-disable-next-line regexp/no-empty-group -- required for testing\n var re = /(?:)/;\n var originalExec = re.exec;\n re.exec = function () { return originalExec.apply(this, arguments); };\n var result = 'ab'.split(re);\n return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';\n});\n\n// @@split logic\nfixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNative) {\n var internalSplit;\n if (\n 'abbc'.split(/(b)*/)[1] == 'c' ||\n // eslint-disable-next-line regexp/no-empty-group -- required for testing\n 'test'.split(/(?:)/, -1).length != 4 ||\n 'ab'.split(/(?:ab)*/).length != 2 ||\n '.'.split(/(.?)(.?)/).length != 4 ||\n // eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing\n '.'.split(/()()/).length > 1 ||\n ''.split(/.?/).length\n ) {\n // based on es5-shim implementation, need to rework it\n internalSplit = function (separator, limit) {\n var string = toString(requireObjectCoercible(this));\n var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;\n if (lim === 0) return [];\n if (separator === undefined) return [string];\n // If `separator` is not a regex, use native split\n if (!isRegExp(separator)) {\n return call(nativeSplit, string, separator, lim);\n }\n var output = [];\n var flags = (separator.ignoreCase ? 'i' : '') +\n (separator.multiline ? 'm' : '') +\n (separator.unicode ? 'u' : '') +\n (separator.sticky ? 'y' : '');\n var lastLastIndex = 0;\n // Make `global` and avoid `lastIndex` issues by working with a copy\n var separatorCopy = new RegExp(separator.source, flags + 'g');\n var match, lastIndex, lastLength;\n while (match = call(regexpExec, separatorCopy, string)) {\n lastIndex = separatorCopy.lastIndex;\n if (lastIndex > lastLastIndex) {\n push(output, stringSlice(string, lastLastIndex, match.index));\n if (match.length > 1 && match.index < string.length) apply($push, output, arraySlice(match, 1));\n lastLength = match[0].length;\n lastLastIndex = lastIndex;\n if (output.length >= lim) break;\n }\n if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop\n }\n if (lastLastIndex === string.length) {\n if (lastLength || !exec(separatorCopy, '')) push(output, '');\n } else push(output, stringSlice(string, lastLastIndex));\n return output.length > lim ? arraySlice(output, 0, lim) : output;\n };\n // Chakra, V8\n } else if ('0'.split(undefined, 0).length) {\n internalSplit = function (separator, limit) {\n return separator === undefined && limit === 0 ? [] : call(nativeSplit, this, separator, limit);\n };\n } else internalSplit = nativeSplit;\n\n return [\n // `String.prototype.split` method\n // https://tc39.es/ecma262/#sec-string.prototype.split\n function split(separator, limit) {\n var O = requireObjectCoercible(this);\n var splitter = isNullOrUndefined(separator) ? undefined : getMethod(separator, SPLIT);\n return splitter\n ? call(splitter, separator, O, limit)\n : call(internalSplit, toString(O), separator, limit);\n },\n // `RegExp.prototype[@@split]` method\n // https://tc39.es/ecma262/#sec-regexp.prototype-@@split\n //\n // NOTE: This cannot be properly polyfilled in engines that don't support\n // the 'y' flag.\n function (string, limit) {\n var rx = anObject(this);\n var S = toString(string);\n var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);\n\n if (res.done) return res.value;\n\n var C = speciesConstructor(rx, RegExp);\n\n var unicodeMatching = rx.unicode;\n var flags = (rx.ignoreCase ? 'i' : '') +\n (rx.multiline ? 'm' : '') +\n (rx.unicode ? 'u' : '') +\n (UNSUPPORTED_Y ? 'g' : 'y');\n\n // ^(? + rx + ) is needed, in combination with some S slicing, to\n // simulate the 'y' flag.\n var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);\n var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;\n if (lim === 0) return [];\n if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];\n var p = 0;\n var q = 0;\n var A = [];\n while (q < S.length) {\n splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;\n var z = callRegExpExec(splitter, UNSUPPORTED_Y ? stringSlice(S, q) : S);\n var e;\n if (\n z === null ||\n (e = min(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p\n ) {\n q = advanceStringIndex(S, q, unicodeMatching);\n } else {\n push(A, stringSlice(S, p, q));\n if (A.length === lim) return A;\n for (var i = 1; i <= z.length - 1; i++) {\n push(A, z[i]);\n if (A.length === lim) return A;\n }\n q = p = e;\n }\n }\n push(A, stringSlice(S, p));\n return A;\n }\n ];\n}, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);\n"],"names":["HosportsFooter","React","render","this","props","renderView","checkLocale","async","lang","localStorage","getItem","country","state","window","response","Axios","data","geo","toLowerCase","region","setItem","JSON","stringify","language","navigator","languages","userLanguage","split","indexOf","HoSportsFooter","config","googleAnalyticsCode","location","locale","console","log","cookieValue","getCookieValue","ReactGA","code","pathname","search","cookieBanners","document","getElementsByClassName","style","display","initAnalytics","blockSiteFromPublic","Parse","current","id","blockSiteFromPublicAcceptedUserId","assign","className","theme","newsletterCTA","mailchimpUrl","MailchimpSubscribe","url","topRowLinkList","map","href","linkUrl","linkText","logo","companyName","src","addressStreet","addressCity","addressState","addressZip","phone","email","middleRowLinkColumn1Title","middleRowLinkColumn1LinkList","_data$linkUrl","destinationUrl","middleRowLinkColumn2Title","middleRowLinkColumn2LinkList","_data$linkUrl2","middleRowLinkColumn3Title","middleRowLinkColumn3LinkList","_data$linkUrl3","copyrightInfo","twitter","target","GeneralAssetUrl","facebook","instagram","youtube","bottomRowLinkList","_data$linkUrl4","ScriptInjector","constructor","super","_debug","typeName","placeHolderPropsRegEx","RegExp","placeHolders","originalSource","scriptSource","resolvedSource","hasMorePlaceHolders","exec","length","_resolvePlaceHolder","MsDyn365","_isUrl","defer","loadPoint","dangerouslySetInnerHTML","__html","debugMessage","telemetry","LogLevel","Debug","source","test","placeHolderToken","placeHolderTokens","propertyContext","propertyName","replace","context","request","user","query","ModelYear","BaseUrl","ReorderProducts","products","sort","a","b","attributes","order","GenerateProductAssetUrl","year","ReturnProductDetailLink","product","slug","cookie","match","pop","GetLocalizedText","content","text","index","GetLocalText","GetFromParseBySlug","localizedText","GetLocalizedPrice","price","ShuffleArray","j","x","i","Math","floor","random","StripHtml","html","tmp","createElement","innerHTML","textContent","innerText","DoesProductShowDetailImages","category","subcategory","value","showProductDetailImages","DoesProductShowHeroImage","showProductHeroImage","GetYoutubeIdFromUrl","videoId","youtubeUrl","ampersandPosition","substring","GetProductFromItemNumber","itemNumber","prodModelYear","num","parseInt","results","FindFromParse","GetExternalProductInfo","GetLocaleValue","TruncateText","description","slice","CapitalizeFirstLetter","charAt","toUpperCase","call","fixRegExpWellKnownSymbolLogic","anObject","isNullOrUndefined","toLength","toString","requireObjectCoercible","getMethod","advanceStringIndex","regExpExec","MATCH","nativeMatch","maybeCallNative","regexp","O","matcher","undefined","string","rx","S","res","done","global","fullUnicode","unicode","lastIndex","result","A","n","matchStr","apply","uncurryThis","isRegExp","speciesConstructor","arraySlice","callRegExpExec","regexpExec","stickyHelpers","fails","UNSUPPORTED_Y","MAX_UINT32","min","$push","push","stringSlice","SPLIT","nativeSplit","internalSplit","separator","limit","lim","lastLength","output","flags","ignoreCase","multiline","sticky","lastLastIndex","separatorCopy","splitter","C","unicodeMatching","p","q","e","z","re","originalExec","arguments"],"sourceRoot":""}