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I,QAAQ,CACnB4K,EAASnC,UAAYc,EAAgB,EAAIyB,EACzC,IACIpT,EADAqT,EAAI9B,EAAeyB,EAAUrB,EAAgBK,EAAYzB,EAAG6C,GAAK7C,GAErE,GACQ,OAAN8C,IACCrT,EAAI6R,EAAIrC,EAASwD,EAASnC,WAAac,EAAgByB,EAAI,IAAK7C,EAAEnI,WAAa+K,EAEhFC,EAAIxD,EAAmBW,EAAG6C,EAAGF,OACxB,CAEL,GADAnK,EAAKgI,EAAGiB,EAAYzB,EAAG4C,EAAGC,IACtBrC,EAAE3I,SAAWkK,EAAK,OAAOvB,EAC7B,IAAK,IAAI5I,EAAI,EAAGA,GAAKkL,EAAEjL,OAAS,EAAGD,IAEjC,GADAY,EAAKgI,EAAGsC,EAAElL,IACN4I,EAAE3I,SAAWkK,EAAK,OAAOvB,EAE/BqC,EAAID,EAAInT,CACV,CACF,CAEA,OADA+I,EAAKgI,EAAGiB,EAAYzB,EAAG4C,IAChBpC,CACT,EAEJ,KA9HyCW,GAAM,WAE7C,IAAI4B,EAAK,OACLC,EAAeD,EAAGvB,KACtBuB,EAAGvB,KAAO,WAAc,OAAOwB,EAAarC,MAAMhU,KAAMsW,UAAY,EACpE,IAAI1C,EAAS,KAAKxC,MAAMgF,GACxB,OAAyB,IAAlBxC,EAAO1I,QAA8B,MAAd0I,EAAO,IAA4B,MAAdA,EAAO,EAC5D,IAuHuCa","sources":["webpack://Msdyn365.Commerce.Online/./src/baseComponents/dealer-map/dealer-map.tsx?4ec3","webpack://Msdyn365.Commerce.Online/./src/baseComponents/hero/hero.tsx?7eca","webpack://Msdyn365.Commerce.Online/./src/baseComponents/portal-modal/portal-modal.tsx?8d10","webpack://Msdyn365.Commerce.Online/./src/baseComponents/scroll-fade/scroll-fade.tsx?9b63","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-centered-quote/hosports-centered-quote.tsx?d06e","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-centered-quote/hosports-centered-quote.view.tsx?a46d","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-dealer-locator/hosports-dealer-locator.tsx?d7e4","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-dealer-locator/hosports-dealer-locator.view.tsx?b19e","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-dealer-map/hosports-dealer-map.tsx?b2b5","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-dealer-map/hosports-dealer-map.view.tsx?5dd8","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-full-width-image/hosports-full-width-image.tsx?0b4c","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-full-width-image/hosports-full-width-image.view.tsx?ed8f","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-hero/hosports-hero.tsx?c1b3","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-hero/hosports-hero.view.tsx?7eff","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-hover-thumb/hosports-hover-thumb.tsx?649a","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-hover-thumb/hosports-hover-thumb.view.tsx?03db","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-small-centered-paragraph/hosports-small-centered-paragraph.tsx?02ac","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-small-centered-paragraph/hosports-small-centered-paragraph.view.tsx?4c6c","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-team-detail/hosports-team-detail.tsx?28d1","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-team-detail/hosports-team-detail.view.tsx?453b","webpack://Msdyn365.Commerce.Online/./src/themes/kent/views/hosports-centered-quote.view.tsx?6a4a","webpack://Msdyn365.Commerce.Online/./src/baseComponents/dealer-map/online-retailers.tsx?aa6b","webpack://Msdyn365.Commerce.Online/./src/baseComponents/dealer-map/index.tsx?6e6a","webpack://Msdyn365.Commerce.Online/./src/themes/kent/views/hosports-dealer-locator.view.tsx?af51","webpack://Msdyn365.Commerce.Online/./src/themes/kent/views/hosports-dealer-map.view.tsx?6c66","webpack://Msdyn365.Commerce.Online/./src/themes/kent/views/hosports-full-width-image.view.tsx?1b92","webpack://Msdyn365.Commerce.Online/./src/themes/kent/views/hosports-hero.view.tsx?2e8a","webpack://Msdyn365.Commerce.Online/./src/themes/kent/views/hosports-hover-thumb.view.tsx?fe0d","webpack://Msdyn365.Commerce.Online/./src/themes/kent/views/hosports-small-centered-paragraph.view.tsx?9f7d","webpack://Msdyn365.Commerce.Online/./src/themes/kent/views/hosports-team-detail.view.tsx?4ab6","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":["// @ts-nocheck\r\nimport React from 'react';\r\n//@ts-ignore\r\nimport {Map, Marker, GoogleApiWrapper} from 'google-maps-react';\r\n//@ts-ignore\r\nimport PortalModal from './../portal-modal/./portal-modal';\r\n//@ts-ignore\r\nimport {FindFromParse} from './../../themes/kent/utilities/parse';\r\n//@ts-ignore\r\nimport {GoogleMapsApiKey,GeneralAssetUrl} from './../../themes/kent/utilities/constants';\r\n\r\ninterface IProps {\r\n brand?:string;\r\n google?:any;\r\n map?:any;\r\n Map?:any;\r\n zoom?:any;\r\n hideSearchBar?:any;\r\n highlightPreferredRetailers?:any;\r\n}\r\n\r\ninterface IState {\r\n retailers?:any;\r\n keyRefresh?:any;\r\n mapCenter?:any;\r\n zoom?:any;\r\n activeRetailer?:any;\r\n modalActive?:any;\r\n}\r\n\r\n/**\r\n *\r\n * DealerMap Component\r\n * @extends {React.Component}\r\n */\r\n //@ts-ignore\r\nclass DealerMap extends React.Component {\r\n public state: IState;\r\n\r\n constructor(props:IProps) {\r\n super(props);\r\n this.state = ({\r\n retailers:null,\r\n keyRefresh:0,\r\n zoom:10,\r\n mapCenter:{lat: 37.3610511, lng: -121.8684047}\r\n })\r\n }\r\n public componentDidUpdate(prevProps) {\r\n if (this.props !== prevProps.map) this.renderAutoComplete();\r\n }\r\n public componentDidMount = async() => {\r\n //todo replace with real code\r\n console.log('at the dealer map')\r\n var lang = 'en';\r\n var mapCenter = {lat: 37.3610511, lng: -121.8684047}\r\n if(lang == 'de'){\r\n mapCenter = {lat: 51.1578213, lng: 8.2121462}\r\n }\r\n if(lang == 'au'){\r\n mapCenter = {lat: -33.865143, lng: 151.209900}\r\n }\r\n let barefootbrand = false;\r\n if(this.props.brand == \"fatsac\" || this.props.brand == \"barefootinternational\"){\r\n barefootbrand = true\r\n let results = await FindFromParse(\"fatsacRetailers\",[{'method':'limit','value':5000}]);\r\n if(results){\r\n console.log(results)\r\n this.setState({\r\n 'brand':this.props.brand,\r\n 'zoom':10,\r\n 'retailers':results,\r\n 'mapCenter':mapCenter,\r\n 'activeRetailer':results[0]\r\n })\r\n }\r\n } else{\r\n let results = await FindFromParse(\"Retailers\",[{'method':'contains','key':'site','value':this.props.brand},{'method':'limit','value':5000}]);\r\n if(results){\r\n console.log(results)\r\n this.setState({\r\n 'brand':this.props.brand,\r\n 'zoom':10,\r\n 'retailers':results,\r\n 'mapCenter':mapCenter,\r\n 'activeRetailer':results[0]\r\n })\r\n }\r\n }\r\n\r\n if (navigator.geolocation) {\r\n navigator.geolocation.getCurrentPosition(this.showPosition);\r\n } else {\r\n alert(\"Geolocation is not supported by this browser.\");\r\n }\r\n }\r\n\r\n public showPosition = (position:any) => {\r\n console.log(position)\r\n if(position){\r\n let mapCenter = {lat: position.coords.latitude, lng: position.coords.longitude}\r\n this.setState({mapCenter:mapCenter})\r\n }\r\n\r\n }\r\n\r\n public onSubmit(e:any) {\r\n e.preventDefault();\r\n }\r\n\r\n public renderAutoComplete = () => {\r\n const { google, map } = this.props;\r\n if (!google || !map){\r\n return false\r\n } else{\r\n let autocomplete:any = new google.maps.places.Autocomplete(this.autocomplete);\r\n autocomplete.bindTo('bounds', map);\r\n autocomplete.addListener('place_changed', () => {\r\n console.log('changed')\r\n const place = autocomplete.getPlace();\r\n console.log(place)\r\n if(place.geometry){\r\n this.setState({\r\n 'mapCenter':place.geometry.location\r\n })\r\n }\r\n });\r\n return false\r\n };\r\n }\r\n\r\n public onMarkerClick = (retailer:any) => {\r\n var keyRefresh = this.state.keyRefresh +1;\r\n this.setState({\r\n retailerClicked:true,\r\n activeRetailer:retailer,\r\n modalActive:true,\r\n keyRefresh:keyRefresh\r\n })\r\n }\r\n public modalDismissed = (retailer:any) =>{\r\n var keyRefresh = this.state.keyRefresh +1;\r\n this.setState({\r\n retailerClicked:false,\r\n modalActive:false,\r\n keyRefresh:keyRefresh\r\n })\r\n }\r\n public trackDeepLink = (name:any, webAddress:any) => {\r\n var link = webAddress;\r\n window.open(link);\r\n }\r\n\r\n public render(): JSX.Element {\r\n if(!this.state.retailers) return ;\r\n let webAddress = \"\";\r\n if(this.state.activeRetailer){\r\n webAddress = this.state.activeRetailer.attributes.website;\r\n if(this.state.activeRetailer.attributes.website){\r\n if(this.state.activeRetailer.attributes.website.indexOf('http://') == -1 && this.state.activeRetailer.attributes.website.indexOf('https://') == -1 ){\r\n webAddress = 'http://'+webAddress;\r\n } else {\r\n webAddress = this.state.activeRetailer.attributes.website;\r\n }\r\n }\r\n }\r\n console.log(this.props.google)\r\n //@ts-ignore\r\n return (\r\n
\r\n {this.state.activeRetailer &&\r\n \r\n {this.state.activeRetailer.attributes.name &&

{this.state.activeRetailer.attributes.name}

}\r\n {this.state.activeRetailer.attributes.street &&

Address: {this.state.activeRetailer.attributes.street+', '+this.state.activeRetailer.attributes.city+', '+this.state.activeRetailer.attributes.postalCode}

}\r\n {this.state.activeRetailer.attributes.phone &&

Phone: {this.state.activeRetailer.attributes.phone}

}\r\n {this.state.activeRetailer.attributes.website &&
this.trackDeepLink(this.state.activeRetailer.attributes.name, webAddress)} style={{\"cursor\":\"pointer\"}}>\r\n {'Website'}\r\n
}\r\n
\r\n } />\r\n }\r\n {!this.props.hideSearchBar &&\r\n
\r\n
\r\n
\r\n (this.autocomplete = ref)}\r\n type=\"text\"\r\n style={{borderRadius:'0px',backgroundColor:'rgba(255,255,255,1)'}}\r\n />\r\n
\r\n
\r\n
\r\n }\r\n {this.props.google && this.state.zoom && this.state.mapCenter &&\r\n \r\n {this.state.retailers.map((retailer,index) =>{\r\n let icon = null;\r\n if(this.props.preferredRetailersOnly){\r\n if(retailer.attributes.shreducationGroup == \"gold\"){\r\n icon = GeneralAssetUrl+this.props.brand+\"-map-icon-gold.png\"\r\n } else if(retailer.attributes.shreducationGroup == \"silver\"){\r\n icon = GeneralAssetUrl+this.props.brand+\"-map-icon-silver.png\"\r\n }\r\n }\r\n else if(this.props.highlightPreferredRetailers){\r\n if(retailer.attributes.shreducationGroup == \"gold\"){\r\n icon = GeneralAssetUrl+this.props.brand+\"-map-icon-gold.png\"\r\n } else if(retailer.attributes.shreducationGroup == \"silver\"){\r\n icon = GeneralAssetUrl+this.props.brand+\"-map-icon-silver.png\"\r\n } else{\r\n icon = GeneralAssetUrl+this.props.brand+\"-map-icon.png\"\r\n }\r\n }\r\n else{\r\n icon = GeneralAssetUrl+this.props.brand+\"-map-icon.png\"\r\n }\r\n console.log(icon)\r\n if(icon){\r\n return(\r\n this.onMarkerClick(retailer)}\r\n name={retailer.attributes.name}\r\n retailer={retailer}\r\n />\r\n )\r\n }\r\n })}\r\n \r\n }\r\n \r\n );\r\n }\r\n}\r\n//@ts-ignore\r\nconst MapWrapper = (props:any) => (\r\n \r\n \r\n \r\n);\r\n\r\n//@ts-ignore\r\nexport default GoogleApiWrapper({\r\n apiKey: (GoogleMapsApiKey)\r\n})(MapWrapper)\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\nimport ScrollFadeIn from './../scroll-fade/./scroll-fade';\r\nimport WakesurfEdgeSelector from './../wake-shaper-finder/./wake-shaper-finder';\r\n\r\ninterface IProps {\r\n title?:string;\r\n subTitle?:string;\r\n description?:string;\r\n icon?:string;\r\n preTitle?:string;\r\n backgroundImage?:string;\r\n backgroundTint?:string;\r\n height?:string;\r\n textPlacement?:string;\r\n theme?:string;\r\n decorativeText?:boolean;\r\n wakeShaperFinder?:any;\r\n}\r\n\r\ninterface IState {\r\n ready:boolean;\r\n}\r\n\r\n\r\n/**\r\n *\r\n * Hero component\r\n * @extends {React.Component}\r\n */\r\nclass HosportsHero extends React.Component {\r\n public state: IState;\r\n\r\n constructor(props: IProps) {\r\n super(props);\r\n this.state = {\r\n ready:false\r\n };\r\n }\r\n\r\n public componentDidMount = () => {\r\n setTimeout(\r\n () => {\r\n this.setState({\r\n ready:true\r\n });\r\n },\r\n 100);\r\n }\r\n\r\n public render(): JSX.Element {\r\n let heightClass:string = this.props.height ? cssClassCoversionDictionary[this.props.height] : '';\r\n let color:string = this.props.theme === 'dark' ? '#fff' : '#000';\r\n let textPlacementClass:string = this.props.textPlacement ? cssClassCoversionDictionary[this.props.textPlacement] : \"center-center\";\r\n let readyClass = this.state.ready ? 'ready' : '';\r\n let decorativeFontClass = this.props.decorativeText ? \"decorative-text\" : \"\";\r\n return (\r\n \r\n
\r\n
\r\n
\r\n {this.props.icon &&\r\n
\r\n {this.props.icon}\r\n
\r\n }\r\n {this.props.preTitle &&\r\n
{this.props.preTitle}
\r\n }\r\n {this.props.title &&\r\n

{this.props.title}

\r\n }\r\n {this.props.subTitle &&\r\n
{this.props.subTitle}
\r\n }\r\n {this.props.description &&\r\n

{this.props.description}

\r\n }\r\n {this.props.wakeShaperFinder &&\r\n
\r\n {}\r\n
\r\n }\r\n
\r\n
\r\n
\r\n {this.props.backgroundImage &&\r\n
\r\n }\r\n
\r\n \r\n );\r\n }\r\n}\r\n\r\nexport const cssClassCoversionDictionary = {\r\n threeQuarter:'three-quarter',\r\n half:'half',\r\n quarter:'quarter',\r\n full:'full',\r\n centerCenter:'center-center',\r\n leftCenter:'left-center',\r\n rightCenter:'right-center',\r\n bottomLeft:'bottom-left',\r\n bottomRight:'bottom-right',\r\n bottomCenter:'bottom-center',\r\n topLeft:'top-left',\r\n topRight:'top-right',\r\n topCenter:'top-center'\r\n};\r\n\r\nexport default HosportsHero;\r\n","import React from 'react';\r\n\r\nimport ReactDOM from \"react-dom\";\r\n// @ts-ignore\r\nimport {GeneralAssetUrl} from '../../themes/kent/utilities/constants';\r\n/**\r\n *\r\n * Portal Modal component\r\n * @extends {React.Component}\r\n */\r\ninterface IProps {\r\n positionType?: string;\r\n theme?:string;\r\n content?:any;\r\n hideCloseButton?:boolean;\r\n modalActive?:boolean;\r\n frame?:boolean;\r\n modalHidden?:any;\r\n}\r\n\r\ninterface IState {\r\n modalActive:boolean;\r\n\thideModal:boolean;\r\n modalId?:any;\r\n}\r\n\r\nclass PortalModal extends React.Component{\r\n\r\n public state: IState;\r\n\r\n constructor(props: IProps) {\r\n super(props);\r\n this.state = ({\r\n modalActive:false,\r\n hideModal:false\r\n })\r\n }\r\n\r\n\tpublic componentDidMount = () =>{\r\n \tif(this.props.modalActive){\r\n\t\t\tthis.setupModal()\r\n\t\t}\r\n\t}\r\n componentDidUpdate = ()=>{\r\n if(this.props.modalActive && !this.state.modalActive){\r\n\t\t\tthis.setupModal()\r\n\t\t}\r\n }\r\n setupModal = ()=>{\r\n let modalId = Math.floor(Math.random() * 1000);\r\n let elem = document.createElement('div');\r\n elem.setAttribute('id',\"modal-root-\"+modalId);\r\n document.body.appendChild(elem);\r\n this.setState({\r\n modalActive:true,\r\n modalId:modalId\r\n })\r\n }\r\n\tpublic hideModal = () =>{\r\n\t\tthis.setState({\r\n\t\t\thideModal:true\r\n\t\t})\r\n\t\tsetTimeout(() => {\r\n if(this.props.modalHidden){\r\n this.props.modalHidden()\r\n }\r\n\t\t\tthis.setState({\r\n\t\t\t\tmodalActive:false,\r\n\t\t\t\thideModal:false\r\n\t\t\t})\r\n\t\t},500)\r\n\t}\r\n\tpublic render(): JSX.Element {\r\n\t\tconst {frame, theme,positionType,content,hideCloseButton} = this.props;\r\n\t\tlet position:any = \"fixed\";\r\n\t\tif(positionType == \"absolute\"){\r\n\t\t\tposition = \"absolute\";\r\n\t\t}\r\n\t\tlet animateOut:any = \"\";\r\n\t\tif(this.state.hideModal){\r\n\t\t\tanimateOut = \"animate-out\"\r\n\t\t}\r\n\r\n\t\tlet closeImage:any = GeneralAssetUrl+\"close-white.png\";\r\n\t\tlet componentTheme:any = \"dark-theme\";\r\n\t\tif(theme == \"light\"){\r\n\t\t\tcloseImage = GeneralAssetUrl+\"close-black.png\";\r\n\t\t\tcomponentTheme = \"light-theme\";\r\n\t\t}\r\n\r\n\t\tif(!this.state.modalActive) return \r\n let portal:any = document.getElementById('modal-root-'+this.state.modalId);\r\n return ReactDOM.createPortal(\r\n\t\t\t
\r\n \t\t\t
\r\n\t\t\t \t {!hideCloseButton && }\r\n {frame ?
: content}\r\n \t\t\t
\r\n \t\t
,\r\n\t\t portal\r\n\t );\r\n\t}\r\n}\r\n\r\n\r\nexport default PortalModal;\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\nimport React from 'react';\r\n// @ts-ignore\r\nimport Fade from 'react-reveal/Fade';\r\n\r\n/**\r\n *\r\n * Scroll Fade In component\r\n * @extends {React.Component}\r\n */\r\nclass ScrollFadeIn extends React.Component {\r\n public render(): JSX.Element {\r\n return (\r\n \r\n {this.props.children}\r\n \r\n );\r\n }\r\n}\r\n\r\nexport default ScrollFadeIn;\r\n","/*---------------------------------------------------------------------------------------------\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 { IHosportsCenteredQuoteData } from './hosports-centered-quote.data';\r\nimport { IHosportsCenteredQuoteProps } from './hosports-centered-quote.props.autogenerated';\r\n\r\nexport interface IHosportsCenteredQuoteViewProps extends IHosportsCenteredQuoteProps {\r\n\r\n}\r\n\r\n/**\r\n *\r\n * HosportsCenteredQuote component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass HosportsCenteredQuote 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 HosportsCenteredQuote;\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 { IHosportsCenteredQuoteViewProps } from './hosports-centered-quote';\r\n\r\nexport default (props: IHosportsCenteredQuoteViewProps) => {\r\n return (\r\n

{'Centered Quote'}

\r\n );\r\n};\r\n","/*---------------------------------------------------------------------------------------------\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 { IHosportsDealerLocatorData } from './hosports-dealer-locator.data';\r\nimport { IHosportsDealerLocatorProps } from './hosports-dealer-locator.props.autogenerated';\r\n\r\nexport interface IHosportsDealerLocatorViewProps extends IHosportsDealerLocatorProps {\r\n\r\n}\r\n\r\n/**\r\n *\r\n * HosportsDealerLocator component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass HosportsDealerLocator 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 HosportsDealerLocator;\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 { IHosportsDealerLocatorViewProps } from './hosports-dealer-locator';\r\n\r\nexport default (props: IHosportsDealerLocatorViewProps) => {\r\n return (\r\n

{'Dealer Locator'}

\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 * as React from 'react';\r\n\r\nimport { IHosportsDealerMapData } from './hosports-dealer-map.data';\r\nimport { IHosportsDealerMapProps } from './hosports-dealer-map.props.autogenerated';\r\n\r\nexport interface IHosportsDealerMapViewProps extends IHosportsDealerMapProps {}\r\n\r\n/**\r\n *\r\n * HosportsDealerMap component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass HosportsDealerMap extends React.PureComponent> {\r\n public render(): JSX.Element | null {\r\n return this.props.renderView(this.props);\r\n }\r\n}\r\n\r\nexport default HosportsDealerMap;\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 { IHosportsDealerMapViewProps } from './hosports-dealer-map';\r\n\r\nexport default (props: IHosportsDealerMapViewProps) => {\r\n return (\r\n

{'Dealer Map'}

\r\n );\r\n};\r\n","/*---------------------------------------------------------------------------------------------\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 { IHosportsFullWidthImageData } from './hosports-full-width-image.data';\r\nimport { IHosportsFullWidthImageProps } from './hosports-full-width-image.props.autogenerated';\r\n\r\nexport interface IHosportsFullWidthImageViewProps extends IHosportsFullWidthImageProps {\r\n\r\n}\r\n\r\n/**\r\n *\r\n * HosportsFullWidthImage component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass HosportsFullWidthImage extends React.PureComponent> {\r\n public render(): JSX.Element | null {\r\n return this.props.renderView(this.props);\r\n }\r\n}\r\n\r\nexport default HosportsFullWidthImage;\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 { IHosportsFullWidthImageViewProps } from './hosports-full-width-image';\r\n\r\nexport default (props: IHosportsFullWidthImageViewProps) => {\r\n return (\r\n

{'hosports-full-width-image-view'}

\r\n );\r\n};\r\n","/*---------------------------------------------------------------------------------------------\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 { IHosportsHeroData } from './hosports-hero.data';\r\nimport { IHosportsHeroProps } from './hosports-hero.props.autogenerated';\r\n\r\nexport interface IHosportsHeroViewProps extends IHosportsHeroProps {\r\n\r\n}\r\n\r\n/**\r\n *\r\n * HosportsHero component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass HosportsHero 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 HosportsHero;\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 { IHosportsHeroViewProps } from './hosports-hero';\r\n\r\nexport default (props: IHosportsHeroViewProps) => {\r\n return (\r\n

{'Hero'}

\r\n );\r\n};\r\n","/*---------------------------------------------------------------------------------------------\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 { IHosportsHoverThumbData } from './hosports-hover-thumb.data';\r\nimport { IHosportsHoverThumbProps } from './hosports-hover-thumb.props.autogenerated';\r\n\r\nexport interface IHosportsHoverThumbViewProps extends IHosportsHoverThumbProps {\r\n\r\n}\r\n\r\n/**\r\n *\r\n * HosportsHoverThumb component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass HosportsHoverThumb 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 HosportsHoverThumb;\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 { IHosportsHoverThumbViewProps } from './hosports-hover-thumb';\r\n\r\nexport default (props: IHosportsHoverThumbViewProps) => {\r\n return (\r\n

{'Hover Thumb'}

\r\n );\r\n};\r\n","/*---------------------------------------------------------------------------------------------\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 { IHosportsSmallCenteredParagraphData } from './hosports-small-centered-paragraph.data';\r\nimport { IHosportsSmallCenteredParagraphProps } from './hosports-small-centered-paragraph.props.autogenerated';\r\n\r\nexport interface IHosportsSmallCenteredParagraphViewProps extends IHosportsSmallCenteredParagraphProps {\r\n\r\n}\r\n\r\n/**\r\n *\r\n * HosportsSmallCenteredParagraph component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass HosportsSmallCenteredParagraph 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 HosportsSmallCenteredParagraph;\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 { IHosportsSmallCenteredParagraphViewProps } from './hosports-small-centered-paragraph';\r\n\r\nexport default (props: IHosportsSmallCenteredParagraphViewProps) => {\r\n return (\r\n

{'Small Centered Paragraph'}

\r\n );\r\n};\r\n","/*---------------------------------------------------------------------------------------------\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 { IHosportsTeamDetailData } from './hosports-team-detail.data';\r\nimport { IHosportsTeamDetailProps } from './hosports-team-detail.props.autogenerated';\r\n\r\nexport interface IHosportsTeamDetailViewProps extends IHosportsTeamDetailProps {\r\n\r\n}\r\n\r\n/**\r\n *\r\n * HosportsTeamDetail component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass HosportsTeamDetail 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 HosportsTeamDetail;\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 { IHosportsTeamDetailViewProps } from './hosports-team-detail';\r\n\r\nexport default (props: IHosportsTeamDetailViewProps) => {\r\n return (\r\n

{'HO Sports team detail'}

\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\nimport { IHosportsCenteredQuoteViewProps } from '../../../modules/hosports-centered-quote/./hosports-centered-quote';\r\nimport ScrollFadeIn from './../../../baseComponents/scroll-fade/./scroll-fade';\r\n\r\nclass HosportsCenteredQuote extends React.Component {\r\n public render(): JSX.Element {\r\n const { config } = this.props;\r\n return (\r\n \r\n
\r\n {config.quote &&

{config.quote}

}\r\n {config.author &&

{config.author}

}\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default HosportsCenteredQuote;\r\n","import React from 'react';\r\n// @ts-ignore\r\nimport ReactPlayer from 'react-player';\r\n//@ts-ignore\r\nimport {ShuffleArray, GetCookieValue} from '../../themes/kent/utilities/functions';\r\n//@ts-ignore\r\nimport {GeneralAssetUrl} from '../../themes/kent/utilities/constants';\r\n\r\n\r\ninterface IProps {\r\n enRetailers?:any;\r\n euRetailers?:any;\r\n deRetailers?:any;\r\n ukRetailers?:any;\r\n auRetailers?:any;\r\n ruRetailers?:any;\r\n}\r\n\r\ninterface IState {\r\n retailers?:any;\r\n}\r\n\r\n/**\r\n *\r\n * OnLine Retailer Component\r\n * @extends {React.Component}\r\n */\r\nclass OnLineRetailers extends React.Component {\r\n public state: IState;\r\n\r\n constructor(props: IProps) {\r\n super(props);\r\n this.state = {\r\n retailers:null\r\n };\r\n }\r\n\r\n componentDidMount = () =>{\r\n //TODO get language\r\n let lang = localStorage.getItem(\"lang\") ? localStorage.getItem(\"lang\") : 'en';\r\n let retailers = this.props.enRetailers ? this.props.enRetailers : [];\r\n let displayRetailers = [];\r\n if(lang === \"au\"){\r\n retailers = this.props.auRetailers ? this.props.auRetailers : [];\r\n }\r\n if(lang === \"uk\"){\r\n retailers = this.props.ukRetailers ? this.props.ukRetailers : [];\r\n }\r\n if(lang === \"eu\"){\r\n retailers = this.props.euRetailers ? this.props.euRetailers : [];\r\n }\r\n if(lang === \"de\"){\r\n retailers = this.props.deRetailers ? this.props.deRetailers : [];\r\n }\r\n if(lang === \"ru\"){\r\n retailers = this.props.ruRetailers ? this.props.ruRetailers : [];\r\n }\r\n console.log(retailers)\r\n ShuffleArray(retailers);\r\n retailers = retailers.slice(0,12);\r\n for (let i = 0; i < retailers.length; i++) {\r\n let retailer = retailers[i];\r\n if (retailer) {\r\n let image: any = \"\";\r\n if (retailer.image) {\r\n if (retailer.image?.src) {\r\n image = retailer.image?.src;\r\n }\r\n }\r\n let link: any = \"\";\r\n if (retailer.link) {\r\n if (retailer.link?.linkUrl) {\r\n if (retailer.link?.linkUrl?.destinationUrl) {\r\n link = retailer.link?.linkUrl?.destinationUrl;\r\n }\r\n }\r\n }\r\n displayRetailers.push({\r\n name: retailer.name,\r\n image: image,\r\n link: link\r\n });\r\n }\r\n }\r\n this.setState({\r\n retailers:displayRetailers\r\n })\r\n }\r\n\r\n trackOnlineLink = (data:any) => {\r\n var link:any = data.link;\r\n window.open(link);\r\n }\r\n\r\n public render(): JSX.Element {\r\n console.log(this.state.retailers)\r\n if(!this.state.retailers) return ;\r\n return (\r\n
\r\n {this.state.retailers.map((data:any,index:number) =>{\r\n return(\r\n
\r\n
this.trackOnlineLink(data)} style={{\"cursor\":\"pointer\", backgroundImage:\"url(\"+data.image+\")\"}}>\r\n \r\n
\r\n
\r\n )\r\n })}\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default OnLineRetailers;\r\n","import React from 'react';\r\n// @ts-ignore\r\nimport OnlineRetailers from './online-retailers';\r\n// @ts-ignore\r\nimport DealerMap from './dealer-map';\r\n// @ts-ignore\r\nimport {HeaderHeight} from './../../themes/kent/utilities/constants';\r\n//@ts-ignore\r\nimport ScrollFadeIn from './../scroll-fade/./scroll-fade';\r\n\r\ninterface IProps {\r\n brand?:string;\r\n enRetailers?:any;\r\n euRetailers?:any;\r\n ukRetailers?:any;\r\n auRetailers?:any;\r\n ruRetailers?:any;\r\n deRetailers?:any;\r\n}\r\n\r\n/**\r\n *\r\n * DealerLocator Component\r\n * @extends {React.Component}\r\n */\r\n\r\n//@ts-ignore\r\nclass DealerLocator extends React.Component {\r\n public render(): JSX.Element {\r\n let backgroundColor:string = '#000000';\r\n return (\r\n \r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\n//@ts-ignore\r\nexport default DealerLocator;\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\nimport { IHosportsDealerLocatorViewProps } from '../../../modules/hosports-dealer-locator/./hosports-dealer-locator';\r\n//@ts-ignore\r\nimport DealerLocator from '../../../baseComponents/dealer-map/./index';\r\n\r\nexport default (props: IHosportsDealerLocatorViewProps) => {\r\n let config = props.config;\r\n let brand = config.brand;\r\n return (\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\nimport { IHosportsDealerMapViewProps } from '../../../modules/hosports-dealer-map/./hosports-dealer-map';\r\n//@ts-ignore\r\nimport DealerMap from './../../../baseComponents/dealer-map/./dealer-map';\r\n\r\nexport default (props: IHosportsDealerMapViewProps) => {\r\n let config = props.config;\r\n return (\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\nimport { IHosportsFullWidthImageViewProps } from '../../../modules/hosports-full-width-image/./hosports-full-width-image';\r\nimport ScrollFadeIn from './../../../baseComponents/scroll-fade/./scroll-fade';\r\n// @ts-ignore\r\nimport {MobileBreakpoint} from './../utilities/constants';\r\n\r\ninterface IState {\r\n image?:any;\r\n}\r\n\r\nclass HosportsFullWidthImage extends React.Component {\r\n\r\n public state: IState;\r\n\r\n constructor(props: IHosportsFullWidthImageViewProps) {\r\n super(props);\r\n this.state = {\r\n image:null\r\n };\r\n }\r\n public componentDidMount = () =>{\r\n const { config } = this.props;\r\n const image = ((window.innerWidth < MobileBreakpoint) && config.mobileImage) ? config.mobileImage : config.image;\r\n this.setState({\r\n image:image\r\n })\r\n }\r\n public render(): JSX.Element {\r\n if(!this.state.image) return \r\n return (\r\n \r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nexport default HosportsFullWidthImage;\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\nimport { IHosportsHeroViewProps } from '../../../modules/hosports-hero/./hosports-hero';\r\nimport Hero from \"./../../../baseComponents/hero/./hero\";\r\n/**\r\n *\r\n * Hero component\r\n * @extends {React.Component>}\r\n */\r\nclass HosportsHero extends React.Component {\r\n\r\n public render(): JSX.Element {\r\n const { config } = this.props;\r\n let icon = config.icon ? config.icon.src : undefined;\r\n let backgroundImage = config.backgroundImage ? config.backgroundImage.src : undefined;\r\n return (\r\n \r\n );\r\n }\r\n}\r\n\r\nexport default HosportsHero;\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\nimport { IHosportsHoverThumbViewProps } from '../../../modules/hosports-hover-thumb/./hosports-hover-thumb';\r\nimport ScrollFadeIn from './../../../baseComponents/scroll-fade/./scroll-fade';\r\n// @ts-ignore\r\nimport Ratio from 'react-ratio';\r\n\r\nclass HosportsHoverThumb extends React.Component {\r\n render() {\r\n const { config } = this.props;\r\n let positionClass = '';\r\n if(config.textPosition){\r\n positionClass = cssClassCoversionDictionary[config.textPosition]\r\n }\r\n return (\r\n \r\n
\r\n
\r\n {config.title &&

{config.title}

}\r\n
\r\n {config.hoverLine &&
}\r\n
\r\n {config.image &&\r\n
\r\n \r\n
\r\n \r\n
\r\n }\r\n
\r\n \r\n );\r\n }\r\n}\r\n\r\nexport const cssClassCoversionDictionary = {\r\n centerCenter:'center-center',\r\n leftCenter:'left-center',\r\n rightCenter:'right-center',\r\n bottomLeft:'bottom-left',\r\n bottomRight:'bottom-right',\r\n bottomCenter:'bottom-center',\r\n topLeft:'top-left',\r\n topRight:'top-right',\r\n topCenter:'top-center'\r\n};\r\n\r\nexport default HosportsHoverThumb;\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\nimport { IHosportsSmallCenteredParagraphViewProps } from '../../../modules/hosports-small-centered-paragraph/./hosports-small-centered-paragraph';\r\nimport ScrollFadeIn from '../../../baseComponents/scroll-fade/./scroll-fade';\r\n\r\nclass HosportsSmallCenteredParagraph extends React.Component {\r\n public render(): JSX.Element {\r\n const { config } = this.props;\r\n let alignmentClass:any = 'centered-text';\r\n if(config.alignment === \"left\"){\r\n alignmentClass = 'left-text'\r\n }\r\n if(config.alignment === \"right\"){\r\n alignmentClass = 'right-text'\r\n }\r\n return (\r\n \r\n
\r\n
\r\n {config.title &&

{config.title}

}\r\n {config.description &&

{config.description}

}\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default HosportsSmallCenteredParagraph;\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\nimport { IHosportsTeamDetailViewProps } from \"../../../modules/hosports-team-detail/./hosports-team-detail\";\r\n//@ts-ignore\r\nimport { MobileBreakpoint, ModelYear, GeneralAssetUrl} from \"./../utilities/constants\";\r\nimport Hero from \"./../../../baseComponents/hero/./hero\";\r\n\r\n/**\r\n *\r\n * Hero component\r\n * @extends {React.Component}\r\n */\r\nclass HosportsTeamDetail extends React.Component {\r\n public render(): JSX.Element {\r\n const { config } = this.props;\r\n const {\r\n firstName,\r\n lastName,\r\n quote,\r\n headline,\r\n description,\r\n hometown,\r\n highlights,\r\n facebookLink,\r\n instagramLink,\r\n youtubeLink,\r\n thumbnail,\r\n banner,\r\n } = config;\r\n let bannerImage = banner;\r\n console.log(config)\r\n console.log(bannerImage)\r\n return (\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n {headline &&
\r\n \r\n {headline}\r\n \r\n
}\r\n {quote &&

{quote}

}\r\n {description &&

{description}

}\r\n
\r\n
 
\r\n
\r\n
\r\n {thumbnail &&\r\n
\r\n
\r\n \r\n
\r\n
\r\n }\r\n

\r\n \r\n {firstName} {lastName}\r\n \r\n

\r\n {facebookLink && \r\n \r\n }\r\n {instagramLink && \r\n \r\n }\r\n {youtubeLink && \r\n \r\n }\r\n
\r\n {hometown && \r\n
{\"Hometown\"}
\r\n

{hometown}

\r\n
}\r\n {highlights &&\r\n highlights.map((data: any) => {\r\n return (\r\n \r\n
{data.Key}
\r\n

{data.Value}

\r\n
\r\n );\r\n })}\r\n
\r\n
\r\n  \r\n
\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\nexport default HosportsTeamDetail;\r\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":["DealerMap","React","constructor","props","super","componentDidMount","async","console","log","mapCenter","lat","lng","barefootbrand","this","brand","results","FindFromParse","setState","navigator","geolocation","getCurrentPosition","showPosition","alert","position","coords","latitude","longitude","renderAutoComplete","google","map","autocomplete","maps","places","Autocomplete","bindTo","addListener","place","getPlace","geometry","location","onMarkerClick","retailer","keyRefresh","state","retailerClicked","activeRetailer","modalActive","modalDismissed","trackDeepLink","name","webAddress","link","window","open","retailers","zoom","componentDidUpdate","prevProps","onSubmit","e","preventDefault","render","attributes","website","indexOf","className","PortalModal","key","modalHidden","content","street","city","postalCode","phone","onClick","style","hideSearchBar","zIndex","placeholder","ref","type","borderRadius","backgroundColor","Map","initialCenter","center","index","icon","preferredRetailersOnly","shreducationGroup","GeneralAssetUrl","highlightPreferredRetailers","Marker","url","id","lattitude","GoogleApiWrapper","apiKey","GoogleMapsApiKey","visible","Object","assign","HosportsHero","setTimeout","ready","heightClass","height","cssClassCoversionDictionary","color","theme","textPlacementClass","textPlacement","readyClass","decorativeFontClass","decorativeText","ScrollFadeIn","width","src","alt","preTitle","title","subTitle","description","wakeShaperFinder","WakesurfEdgeSelector","backgroundTint","backgroundImage","threeQuarter","half","quarter","full","centerCenter","leftCenter","rightCenter","bottomLeft","bottomRight","bottomCenter","topLeft","topRight","topCenter","setupModal","modalId","Math","floor","random","elem","document","createElement","setAttribute","body","appendChild","hideModal","frame","positionType","hideCloseButton","animateOut","closeImage","componentTheme","portal","getElementById","ReactDOM","Fade","bottom","distance","duration","children","HosportsCenteredQuote","renderView","HosportsDealerLocator","HosportsDealerMap","HosportsFullWidthImage","HosportsHoverThumb","HosportsSmallCenteredParagraph","HosportsTeamDetail","config","quote","author","OnLineRetailers","lang","localStorage","getItem","enRetailers","displayRetailers","auRetailers","ukRetailers","euRetailers","deRetailers","ruRetailers","ShuffleArray","slice","i","length","image","_retailer$image","_retailer$image2","_retailer$link","_retailer$link2","_retailer$link2$linkU","_retailer$link3","_retailer$link3$linkU","linkUrl","destinationUrl","push","trackOnlineLink","data","DealerLocator","paddingTop","HeaderHeight","OnlineRetailers","overflow","innerWidth","MobileBreakpoint","mobileImage","undefined","Hero","subtitle","positionClass","textPosition","hoverLine","background","Ratio","ratio","alignmentClass","alignment","firstName","lastName","headline","hometown","highlights","facebookLink","instagramLink","youtubeLink","thumbnail","banner","bannerImage","paddingLeft","paddingRight","marginTop","margin","marginBottom","target","href","borderBottom","Key","Value","ModelYear","BaseUrl","ReorderProducts","products","sort","a","b","order","GenerateProductAssetUrl","year","ReturnProductDetailLink","search","product","slug","getCookieValue","cookie","match","pop","GetLocalizedText","text","GetLocalText","GetFromParseBySlug","localizedText","GetLocalizedPrice","price","j","x","StripHtml","html","tmp","innerHTML","textContent","replace","innerText","DoesProductShowDetailImages","category","subcategory","value","showProductDetailImages","DoesProductShowHeroImage","showProductHeroImage","GetYoutubeIdFromUrl","videoId","youtubeUrl","split","ampersandPosition","substring","GetProductFromItemNumber","itemNumber","prodModelYear","num","parseInt","GetExternalProductInfo","GetLocaleValue","TruncateText","CapitalizeFirstLetter","charAt","toUpperCase","call","fixRegExpWellKnownSymbolLogic","anObject","isNullOrUndefined","toLength","toString","requireObjectCoercible","getMethod","advanceStringIndex","regExpExec","MATCH","nativeMatch","maybeCallNative","regexp","O","matcher","RegExp","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","exec","stringSlice","SPLIT","nativeSplit","internalSplit","separator","limit","lim","lastLength","output","flags","ignoreCase","multiline","sticky","lastLastIndex","separatorCopy","source","splitter","C","unicodeMatching","p","q","z","re","originalExec","arguments"],"sourceRoot":""}