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,IAAMxC,EAAIkC,GAChEH,OAAgBlC,IAAViC,EAAsBT,EAAaS,IAAU,EACvD,GAAY,IAARC,EAAW,MAAO,GACtB,GAAiB,IAAb9B,EAAErL,OAAc,OAAuC,OAAhCoM,EAAeyB,EAAUxC,GAAc,CAACA,GAAK,GAIxE,IAHA,IAAI2C,EAAI,EACJC,EAAI,EACJrC,EAAI,GACDqC,EAAI5C,EAAErL,QAAQ,CACnB6N,EAASlC,UAAYa,EAAgB,EAAIyB,EACzC,IACIlN,EADAmN,EAAI9B,EAAeyB,EAAUrB,EAAgBK,EAAYxB,EAAG4C,GAAK5C,GAErE,GACQ,OAAN6C,IACCnN,EAAI2L,EAAIrC,EAASwD,EAASlC,WAAaa,EAAgByB,EAAI,IAAK5C,EAAErL,WAAagO,EAEhFC,EAAIxD,EAAmBY,EAAG4C,EAAGF,OACxB,CAEL,GADAlO,EAAK+L,EAAGiB,EAAYxB,EAAG2C,EAAGC,IACtBrC,EAAE5L,SAAWmN,EAAK,OAAOvB,EAC7B,IAAK,IAAIlL,EAAI,EAAGA,GAAKwN,EAAElO,OAAS,EAAGU,IAEjC,GADAb,EAAK+L,EAAGsC,EAAExN,IACNkL,EAAE5L,SAAWmN,EAAK,OAAOvB,EAE/BqC,EAAID,EAAIjN,CACV,CACF,CAEA,OADAlB,EAAK+L,EAAGiB,EAAYxB,EAAG2C,IAChBpC,CACT,EAEJ,KA9HyCW,GAAM,WAE7C,IAAI4B,EAAK,OACLC,EAAeD,EAAGvB,KACtBuB,EAAGvB,KAAO,WAAc,OAAOwB,EAAarC,MAAMpP,KAAM0R,UAAY,EACpE,IAAIvK,EAAS,KAAK0E,MAAM2F,GACxB,OAAyB,IAAlBrK,EAAO9D,QAA8B,MAAd8D,EAAO,IAA4B,MAAdA,EAAO,EAC5D,IAuHuC0I","sources":["webpack://Msdyn365.Commerce.Online/./src/baseComponents/back-button/back-button.tsx?fdd5","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-career-detail/hosports-career-detail.tsx?a812","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-career-detail/hosports-career-detail.view.tsx?294f","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-custom-sac-page/hosports-custom-sac-page.tsx?431b","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-custom-sac-page/hosports-custom-sac-page.view.tsx?629e","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-demo-product-form/hosports-demo-product-form.tsx?3758","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-demo-product-form/hosports-demo-product-form.view.tsx?0c2c","webpack://Msdyn365.Commerce.Online/./src/themes/kent/views/hosports-career-detail.view.tsx?b4d3","webpack://Msdyn365.Commerce.Online/./src/themes/kent/views/hosports-custom-sac-page.view.tsx?7b1a","webpack://Msdyn365.Commerce.Online/./src/themes/kent/views/hosports-demo-product-form.view.tsx?e7e2","webpack://Msdyn365.Commerce.Online/./src/themes/kent/utilities/functions.js?b879","webpack://Msdyn365.Commerce.Online/./src/themes/kent/utilities/helpers.js?a70a","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":["import React from 'react';\r\n\r\n// @ts-ignore\r\nimport {GeneralAssetUrl} from './../../themes/kent/utilities/constants';\r\n\r\ninterface IProps {\r\n theme?: string;\r\n}\r\n\r\nclass BackButton extends React.Component{\r\n\r\n constructor(props:IProps) {\r\n super(props);\r\n }\r\n\r\n goBack = () =>{\r\n if(typeof window !== \"undefined\"){\r\n if(window.history){\r\n if(window.history.back){\r\n window.history.back()\r\n }\r\n }\r\n }\r\n }\r\n\r\n render() {\r\n let headerHeight:any = 100;\r\n if(typeof window !== \"undefined\"){\r\n if(window.outerWidth < 800){\r\n headerHeight = 100;\r\n }\r\n }\r\n return (\r\n
\r\n {this.props.theme == \"light\" ?\r\n \r\n : \r\n }\r\n
\r\n );\r\n }\r\n}\r\n\r\n export default BackButton;\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 { IHosportsCareerDetailData } from './hosports-career-detail.data';\r\nimport { IHosportsCareerDetailProps } from './hosports-career-detail.props.autogenerated';\r\n\r\nexport interface IHosportsCareerDetailViewProps extends IHosportsCareerDetailProps {\r\n\r\n}\r\n\r\n/**\r\n *\r\n * Hosports1ColumnBanner component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass HosportsCareerDetail 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 HosportsCareerDetail;\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 { IHosportsCareerDetailViewProps } from './hosports-career-detail';\r\n\r\nexport default (props: IHosportsCareerDetailViewProps) => {\r\n return (\r\n

{'hosports-career-detail'}

\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 { IHosportsCustomSacPageData } from './hosports-custom-sac-page.data';\r\nimport { IHosportsCustomSacPageProps } from './hosports-custom-sac-page.props.autogenerated';\r\n\r\nexport interface IHosportsCustomSacPageViewProps extends IHosportsCustomSacPageProps {}\r\n\r\n/**\r\n *\r\n * HosportsCustomSacPage component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass HosportsCustomSacPage 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 HosportsCustomSacPage;\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 { IHosportsCustomSacPageViewProps } from './hosports-custom-sac-page';\r\n\r\nexport default (props: IHosportsCustomSacPageViewProps) => {\r\n return (\r\n

{'Custom Sac Page'}

\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 { IHosportsDemoProductFormData } from './hosports-demo-product-form.data';\r\nimport { IHosportsDemoProductFormProps } from './hosports-demo-product-form.props.autogenerated';\r\n\r\nexport interface IHosportsDemoProductFormViewProps extends IHosportsDemoProductFormProps {\r\n\r\n}\r\n\r\n/**\r\n *\r\n * HosportsDemoProductForm component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass HosportsDemoProductForm 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 HosportsDemoProductForm;\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 { IHosportsDemoProductFormViewProps } from './hosports-demo-product-form';\r\n\r\nexport default (props: IHosportsDemoProductFormViewProps) => {\r\n return (\r\n

{'Demo Form'}

\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 { IHosportsCareerDetailViewProps } from './../../../modules/hosports-career-detail/./hosports-career-detail';\r\n// @ts-ignore\r\nimport BackButton from './../../../baseComponents/back-button/./back-button';\r\n// @ts-ignore\r\nimport {GetCareer} from './../utilities/dataFunctions';\r\n// @ts-ignore\r\nimport {GetUrlVariable} from './../utilities/helpers';\r\n// @ts-ignore\r\nimport ReactHtmlParser from 'react-html-parser';\r\n\r\ninterface IState {\r\n career?:any;\r\n}\r\n\r\n/**\r\n *\r\n * HosportsSupportPage component\r\n * @extends {React.PureComponentReact.Component}\r\n */\r\n\r\nclass HosportsCareerDetail extends React.Component {\r\n\r\n public state: IState;\r\n\r\n constructor (props: IHosportsCareerDetailViewProps) {\r\n super(props);\r\n this.state = {\r\n career :null\r\n };\r\n }\r\n\r\n public componentDidMount = async() => {\r\n let id = GetUrlVariable('id');\r\n let career = await GetCareer(id);\r\n this.setState({\r\n career:career\r\n })\r\n console.log(career)\r\n }\r\n\r\n public render(): JSX.Element {\r\n return (\r\n
\r\n {this.state.career &&\r\n
\r\n
\r\n \r\n

{this.state.career.attributes.title}

\r\n
\r\n
\r\n
\r\n
\r\n
{'Level'}
\r\n

{this.state.career.attributes.level}

\r\n
\r\n
\r\n
{'Type'}
\r\n

{this.state.career.attributes.type}

\r\n
\r\n
\r\n
{'Location'}
\r\n

{this.state.career.attributes.location}

\r\n
\r\n \r\n
\r\n
\r\n {ReactHtmlParser(this.state.career.attributes.description)}\r\n \r\n
\r\n
\r\n
\r\n }\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default HosportsCareerDetail;\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 { IHosportsCustomSacPageViewProps } from './../../../modules/hosports-custom-sac-page/./hosports-custom-sac-page';\r\n// @ts-ignore\r\nimport ReactHtmlParser from 'react-html-parser';\r\n//@ts-ignore\r\nimport {GenerateProductAssetUrl} from './../utilities/functions';\r\n//@ts-ignore\r\nimport {GeneralAssetUrl,ModelYear} from './../utilities/constants';\r\n// @ts-ignore\r\nimport Hero from './../../../baseComponents/hero/./hero';\r\n// @ts-ignore\r\nimport {GetProductsBySubCategory, GetAllProductLinks} from './../utilities/dataFunctions';\r\n// @ts ignore\r\nimport animateScrollTo from 'animated-scroll-to';\r\n\r\ninterface IState {\r\n customSacResults?:any;\r\n yearSelect?:any;\r\n makeSelect?:any;\r\n modelSelect?:any;\r\n years?:any;\r\n makes?:any;\r\n models?:any;\r\n allModels?:any;\r\n customSacList?:any;\r\n year?:any;\r\n allProducts?:any;\r\n productLinks?:any;\r\n}\r\n\r\n/**\r\n *\r\n * HosportsSupportPage component\r\n * @extends {React.PureComponentReact.Component}\r\n */\r\n\r\nclass HosportsCustomSacPage extends React.Component {\r\n\r\n public state: IState;\r\n\r\n constructor (props: IHosportsCustomSacPageViewProps) {\r\n super(props);\r\n this.state = {\r\n customSacResults : [],\r\n yearSelect:\"All\",\r\n makeSelect:\"All\",\r\n modelSelect:\"All\"\r\n };\r\n }\r\n\r\n public componentDidMount = async() => {\r\n let products = await GetProductsBySubCategory('m6C92Y3MKF',ModelYear);\r\n let productLinks = await GetAllProductLinks();\r\n productLinks = productLinks.filter((link:any) => link.attributes.brand == \"fatsac\");\r\n console.log(productLinks)\r\n this.setState({\r\n allProducts:products,\r\n productLinks:productLinks\r\n },()=>{\r\n this.setUpFilters(products);\r\n this.fillCustomSacs()\r\n })\r\n }\r\n\r\n public setUpFilters = (products:any) => {\r\n let years:any = [];\r\n\t\tlet makes:any = [];\r\n\t\tlet models:any = [];\r\n products.map((value:any, index:any)=>{\r\n value.attributes.customSacBoatMapping.map((value:any, index:any)=>{\r\n if (years.indexOf(value.year) == -1 && value.year != \"\") {\r\n years.push(value.year);\r\n\t\t\t\t}\r\n\t\t\t\tif (makes.indexOf(value.make) == -1 && value.make != \"\") {\r\n makes.push(value.make);\r\n\t\t\t\t}\r\n\t\t\t\tif (models.indexOf(value.model) == -1 && value.model != \"\") {\r\n models.push(value.model);\r\n\t\t\t\t}\r\n })\r\n if (index == products.length - 1) {\r\n let yearsSorted:any = years.sort().reverse();\r\n yearsSorted.unshift('All');\r\n let makesSorted:any = makes.sort();\r\n makesSorted.unshift('All');\r\n let modelsSorted:any = models.sort();\r\n modelsSorted.unshift('All');\r\n this.setState({\r\n years:yearsSorted,\r\n makes:makesSorted,\r\n models:modelsSorted,\r\n allModels:modelsSorted\r\n })\r\n }\r\n })\r\n }\r\n public updateFilters = () => {\r\n let makes:any = [];\r\n\t\tlet models:any = [];\r\n let filteredProducts:any = this.state.allProducts;\r\n for (let i = 0; i < filteredProducts.length; i++) {\r\n let boats:any = filteredProducts[i].attributes.customSacBoatMapping;\r\n for (let x = 0; x < boats.length; x++) {\r\n let make:any = boats[x].make;\r\n if(this.state.makeSelect == \"All\" || this.state.makeSelect == make){\r\n let model:any = boats[x].model;\r\n if(model && models.indexOf(model) == -1){\r\n models.push(model)\r\n }\r\n }\r\n }\r\n if (i == filteredProducts.length - 1) {\r\n let makesSorted:any = makes.sort();\r\n makesSorted.unshift('All');\r\n let modelsSorted:any = models.sort();\r\n modelsSorted.unshift('All');\r\n if(this.state.makeSelect == \"All\"){\r\n modelsSorted = this.state.allModels;\r\n }\r\n this.setState({\r\n models:modelsSorted\r\n })\r\n\t\t\t}\r\n }\r\n }\r\n public updateMake = (e:any) =>{\r\n let value:any = e.target.value;\r\n this.setState({\r\n makeSelect:value,\r\n }, () =>{\r\n this.fillCustomSacs()\r\n this.updateFilters()\r\n })\r\n }\r\n public updateModel = (e:any) =>{\r\n let value:any = e.target.value;\r\n this.setState({\r\n modelSelect:value,\r\n }, () =>{\r\n this.fillCustomSacs()\r\n this.updateFilters()\r\n })\r\n }\r\n public updateYear = (e:any) =>{\r\n let value:any = e.target.value;\r\n this.setState({\r\n yearSelect:value,\r\n }, () =>{\r\n this.fillCustomSacs()\r\n this.updateFilters()\r\n })\r\n }\r\n public fillCustomSacs = () =>{\r\n let customSacList:any = [];\r\n let customSacResults:any = [];\r\n let year:any = this.state.yearSelect;\r\n\t\tlet make:any = this.state.makeSelect;\r\n\t\tlet model:any = this.state.modelSelect;\r\n this.state.allProducts.map((value:any, index:any)=>{\r\n let slug:any = value.attributes.slug;\r\n if(value.attributes.customSacBoatMapping && value.attributes.customSacBoatMapping.length == 0 && !value.onlyShowUnfiltered){\r\n customSacList.push(slug);\r\n } else if(year == 'All' && model == 'All' && make == 'All' && value.onlyShowUnfiltered){\r\n customSacList.push(slug);\r\n }\r\n value.attributes.customSacBoatMapping.map((value:any, index:any)=>{\r\n let yearMatch:any = false;\r\n\t\t\t\tlet makeMatch:any = false;\r\n\t\t\t\tlet modelMatch:any = false;\r\n\t\t\t\tif(year == 'All' || year == value.year || value.year == \"\" || !year){\r\n yearMatch = true;\r\n\t\t\t\t}\r\n\t\t\t\tif(model == 'All' || model == value.model || value.model == \"\" || !model){\r\n modelMatch = true;\r\n\t\t\t\t}\r\n\t\t\t\tif(make == 'All' || make == value.make || value.make == \"\" || !make){\r\n makeMatch = true;\r\n\t\t\t\t}\r\n\t\t\t\tif( yearMatch && modelMatch && makeMatch){\r\n if(customSacList.indexOf(slug) == -1){\r\n\t\t\t\t\t\tcustomSacList.push(slug);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t})\r\n if (index == this.state.allProducts.length - 1) {\r\n this.setState({\r\n customSacList:customSacList\r\n })\r\n customSacList.map((value:any)=>{\r\n let slug:any = value;\r\n this.state.allProducts.map((value:any, index:any)=>{\r\n if(value.attributes.slug == slug){\r\n customSacResults.push(value);\r\n\r\n }\r\n if(index == this.state.allProducts.length -1){\r\n let standardSacResults = customSacResults.filter((sac:any) => !sac.attributes.customSacBoatMapping || sac.attributes.customSacBoatMapping.length == 0);\r\n let nonStandardSacResults = customSacResults.filter((sac:any) => sac.attributes.customSacBoatMapping && sac.attributes.customSacBoatMapping.length > 0);\r\n let sortedResults = nonStandardSacResults.concat(standardSacResults)\r\n let displayResults = sortedResults;\r\n if(year == 'All' && model == 'All' && make == 'All'){\r\n displayResults = customSacResults;\r\n }\r\n this.setState({\r\n customSacResults:displayResults\r\n })\r\n }\r\n })\r\n })\r\n\t\t\t}\r\n })\r\n }\r\n public reset = () =>{\r\n this.setState({\r\n yearSelect:\"All\",\r\n makeSelect:\"All\",\r\n modelSelect:\"All\",\r\n customSacResults:this.state.allProducts\r\n })\r\n }\r\n\r\n public search = () =>{\r\n // @ts ignore\r\n let target = document.querySelector('.custom-sac-scroll-catch');\r\n // @ts ignore\r\n if(target){\r\n // @ts ignore\r\n animateScrollTo(target);\r\n }\r\n }\r\n\r\n public render(): JSX.Element {\r\n let prodAssetUrl:string = GenerateProductAssetUrl('2023');\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
{'PROUDLY MADE IN THE U.S.A.'}
\r\n

{'Custom & Semi-Custom Series'}

\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n

{'Choose Your Boat'}

\r\n
\r\n {this.state.years &&\r\n
\r\n
\r\n
{'Year'}
\r\n \r\n
\r\n
\r\n
{'Make'}
\r\n \r\n
\r\n
\r\n
{'Model'}
\r\n \r\n
\r\n
\r\n }\r\n
\r\n
\r\n
{'Search'}
\r\n
\r\n
\r\n
{'Reset'}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {this.state.customSacResults.map((value:any)=>{\r\n let content:any = value.attributes.content;\r\n let productDeets = content[0];\r\n let slug = value.attributes.slug;\r\n let links = this.state.productLinks.filter((link:any)=>{\r\n if(link.attributes.slugs){\r\n return link.attributes.slugs.indexOf(slug) != -1\r\n } else{\r\n return false\r\n }\r\n });\r\n return(\r\n
\r\n
\r\n
window.location.assign('./product/'+value.attributes.slug)}>\r\n {if(e && e.target){ if(e.target.src){e.target.src=GeneralAssetUrl+\"/coming-soon.jpg\"}}}}/>\r\n
\r\n
\r\n
window.location.assign('./product/'+value.attributes.slug)}>{productDeets.title}
\r\n {'PN# ' + value.attributes.partNumber}\r\n
{productDeets.price !=\"\" && '$'}{productDeets.price}
\r\n {links && links.map((link:any)=>{\r\n return (
{link.attributes.title}
)\r\n })}\r\n {(value.partNumber == \"O8005\") &&
{'Installation Instructions'}
}\r\n {(value.partNumber == \"C1326\") &&
{'Installation Instructions'}
}\r\n {(value.partNumber == \"C1304\") &&
{'Installation Instructions'}
}\r\n {(value.partNumber == \"C1062\" || value.partNumber == \"C1046\" || value.partNumber == \"C1039\") &&
{'Installation Instructions'}
}\r\n {(value.partNumber == \"558032\" || value.partNumber == \"W714\" || value.partNumber == \"W717\") &&
{'Installation Instructions'}
}\r\n {productDeets.description &&

{ReactHtmlParser(productDeets.description)}

}\r\n
\r\n {value.attributes.customSacBoatMapping &&\r\n
\r\n {value.attributes.customSacBoatMapping.map((value:any)=>{\r\n return(\r\n \r\n {value.year+' '+value.make+' '+value.model}\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\n
\r\n \r\n );\r\n }\r\n}\r\n\r\nexport default HosportsCustomSacPage;\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 { IHosportsDemoProductFormViewProps } from '../../../modules/hosports-demo-product-form/./hosports-demo-product-form';\r\n//@ts-ignore\r\nimport Parse from 'parse';\r\n//@ts-ignore\r\nimport {GetProductBySlug} from './../utilities/dataFunctions';\r\n//@ts-ignore\r\nimport {GetUrlVariable} from './../utilities/helpers';\r\n//@ts-ignore\r\nimport {ModelYear,GeneralAssetUrl} from './../utilities/constants';\r\n\r\n\r\ninterface IState {\r\n name?:any;\r\n email?:any;\r\n message?:any;\r\n billingStreet?:any;\r\n billingCity?:any;\r\n billingState?:any;\r\n billingZip?:any;\r\n shippingStreet?:any;\r\n shippingCity?:any;\r\n shippingState?:any;\r\n shippingZip?:any;\r\n size?:any;\r\n rightLeft?:any;\r\n phone?:any;\r\n product?:any;\r\n personalBest?:any;\r\n messageSent?:any;\r\n}\r\n\r\nclass HosportsDemoProductForm extends React.Component {\r\n\r\n public state: IState;\r\n\r\n constructor(props: IHosportsDemoProductFormViewProps) {\r\n super(props);\r\n this.state = {\r\n };\r\n }\r\n\r\n public componentDidMount = async () => {\r\n var id = GetUrlVariable('id');\r\n let result = await GetProductBySlug(id)\r\n this.setState({\r\n 'product':result\r\n })\r\n }\r\n public handleNameChange = (e:any) =>{\r\n var name = e.target.value;\r\n this.setState({\r\n name:name\r\n })\r\n }\r\n public handleEmailChange = (e:any) =>{\r\n var email = e.target.value;\r\n this.setState({\r\n email:email\r\n })\r\n }\r\n public handleMessageChange = (e:any) =>{\r\n var message = e.target.value;\r\n this.setState({\r\n message:message\r\n })\r\n }\r\n\r\n public submitForm = () => {\r\n if(!this.state.name || !this.state.email || !this.state.phone || !this.state.billingStreet){\r\n alert('Fill Out The Whole Form Brah!')\r\n }\r\n else{\r\n Parse.Cloud.run('demoForm',\r\n { name: this.state.name,\r\n email: this.state.email,\r\n phone: this.state.phone,\r\n personalBest: this.state.personalBest,\r\n billingStreet: this.state.billingStreet,\r\n billingCity: this.state.billingCity,\r\n billingState: this.state.billingState,\r\n billingZip: this.state.billingZip,\r\n shippingStreet: this.state.shippingStreet,\r\n shippingCity: this.state.shippingCity,\r\n shippingState: this.state.shippingState,\r\n shippingZip: this.state.shippingZip,\r\n size:this.state.size,\r\n rightLeft:this.state.rightLeft,\r\n product:this.state.product.attributes.title,\r\n website:\"hosports.com\",\r\n }).then((ratings:any) => {\r\n this.setState({\r\n messageSent:true,\r\n })\r\n });\r\n }\r\n }\r\n\r\n public render(): JSX.Element {\r\n if(!this.state.product) return ;\r\n return (\r\n
\r\n
\r\n
\r\n {!this.state.messageSent &&
\r\n
\r\n

{'Request a Demo of This Product'}

\r\n

{'This information will be sent to our customer service department who will then contact you via telephone for final payment information and to answer any questions you may have.'}

\r\n
\r\n
\r\n

{'Name'}

\r\n \r\n
\r\n
\r\n
\r\n

{'Shipping Address'}

\r\n this.setState({shippingStreet:e.target.value})} />\r\n
\r\n
\r\n

{'City'}

\r\n this.setState({shippingCity:e.target.value})} />\r\n
\r\n
\r\n

{'State'}

\r\n this.setState({shippingState:e.target.value})} />\r\n
\r\n
\r\n

{'Zip'}

\r\n this.setState({shippingZip:e.target.value})} />\r\n
\r\n
\r\n
\r\n
\r\n

{'Billing Address'}

\r\n this.setState({billingStreet:e.target.value})} />\r\n
\r\n
\r\n

{'City'}

\r\n this.setState({billingCity:e.target.value})} />\r\n
\r\n
\r\n

{'State'}

\r\n this.setState({billingState:e.target.value})} />\r\n
\r\n
\r\n

{'Zip'}

\r\n this.setState({billingZip:e.target.value})} />\r\n
\r\n
\r\n
\r\n
\r\n

{'Phone'}

\r\n this.setState({phone:e.target.value})} />\r\n
\r\n
\r\n

{'Email'}

\r\n this.setState({email:e.target.value})} />\r\n
\r\n
\r\n

{'Personal Best (Speed/Line Length)'}

\r\n this.setState({personalBest:e.target.value})} />\r\n
\r\n
\r\n

{'Product'}

\r\n \r\n
\r\n
\r\n

{(this.state.product && this.state.product.id !='waterski-boots-syndicate-hardshell') ? 'Ski Size' : 'Boot Size'}

\r\n \r\n
\r\n {this.state.product && this.state.product.id == 'waterski-boots-syndicate-hardshell' &&\r\n
\r\n

{'Right / Left'}

\r\n \r\n
\r\n }\r\n
\r\n
\r\n
{'Submit'}
\r\n
\r\n
}\r\n {this.state.messageSent &&
\r\n
\r\n \r\n

{'Your Message Has Been Sent'}

\r\n
\r\n
}\r\n
\r\n
\r\n
\r\n );\r\n }\r\n};\r\n\r\nexport default HosportsDemoProductForm;\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","import {GetFromParseBySlug, FindFromParse} from './parse';\r\n\r\nexport const IsObjectEmpty = (obj) => {\r\n for(var key in obj) {\r\n if(obj.hasOwnProperty(key))\r\n return false;\r\n }\r\n return true;\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 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 GetUrlParamFromRoute = (route) => {\r\n let param = null;\r\n if(window.location.pathname.indexOf(route) != -1){\r\n let prefix = window.location.pathname.indexOf(route)+route.length\r\n param = window.location.pathname.slice(prefix,window.location.pathname.length)\r\n }\r\n return param;\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 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","'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":["BackButton","React","constructor","props","super","goBack","window","history","back","render","headerHeight","outerWidth","className","onClick","this","style","top","theme","src","GeneralAssetUrl","HosportsCareerDetail","renderView","HosportsCustomSacPage","HosportsDemoProductForm","componentDidMount","async","id","GetUrlVariable","career","GetCareer","setState","console","log","state","paddingTop","attributes","title","level","type","location","href","email","ReactHtmlParser","description","products","GetProductsBySubCategory","ModelYear","productLinks","GetAllProductLinks","filter","link","brand","allProducts","setUpFilters","fillCustomSacs","years","makes","models","map","value","index","customSacBoatMapping","indexOf","year","push","make","model","length","yearsSorted","sort","reverse","unshift","makesSorted","modelsSorted","allModels","updateFilters","filteredProducts","i","boats","x","makeSelect","updateMake","e","target","updateModel","modelSelect","updateYear","yearSelect","customSacList","customSacResults","slug","onlyShowUnfiltered","yearMatch","makeMatch","modelMatch","standardSacResults","sac","displayResults","concat","reset","search","document","querySelector","animateScrollTo","prodAssetUrl","GenerateProductAssetUrl","marginTop","zIndex","position","alignItems","justifyContent","maxWidth","margin","color","download","onChange","data","cursor","productDeets","content","links","slugs","assign","onError","partNumber","price","display","padding","fontSize","result","GetProductBySlug","handleNameChange","name","handleEmailChange","handleMessageChange","message","submitForm","phone","billingStreet","Parse","run","personalBest","billingCity","billingState","billingZip","shippingStreet","shippingCity","shippingState","shippingZip","size","rightLeft","product","website","then","ratings","messageSent","alert","backgroundImage","placeholder","disabled","sizes","width","marginBottom","BaseUrl","ReorderProducts","a","b","order","url","ReturnProductDetailLink","getCookieValue","cookie","match","pop","GetLocalizedText","text","lang","GetLocalText","GetFromParseBySlug","localizedText","GetLocalizedPrice","ShuffleArray","j","Math","floor","random","StripHtml","html","tmp","createElement","innerHTML","textContent","replace","innerText","DoesProductShowDetailImages","category","subcategory","showProductDetailImages","DoesProductShowHeroImage","showProductHeroImage","GetYoutubeIdFromUrl","videoId","youtubeUrl","split","ampersandPosition","substring","GetProductFromItemNumber","itemNumber","prodModelYear","num","parseInt","results","FindFromParse","GetExternalProductInfo","GetLocaleValue","TruncateText","slice","CapitalizeFirstLetter","charAt","toUpperCase","variable","vars","pair","GetUrlParamFromRoute","route","param","pathname","prefix","call","fixRegExpWellKnownSymbolLogic","anObject","isNullOrUndefined","toLength","toString","requireObjectCoercible","getMethod","advanceStringIndex","regExpExec","MATCH","nativeMatch","maybeCallNative","regexp","O","matcher","undefined","RegExp","string","rx","S","res","done","global","fullUnicode","unicode","lastIndex","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":""}