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2B,EAAK,OACLC,EAAeD,EAAGtB,KACtBsB,EAAGtB,KAAO,WAAc,OAAOuB,EAAapC,MAAM1V,KAAM+X,UAAY,EACpE,IAAIzC,EAAS,KAAKzC,MAAMgF,GACxB,OAAyB,IAAlBvC,EAAO7S,QAA8B,MAAd6S,EAAO,IAA4B,MAAdA,EAAO,EAC5D,IAuHuCa","sources":["webpack://Msdyn365.Commerce.Online/./src/baseComponents/back-button/back-button.tsx?fdd5","webpack://Msdyn365.Commerce.Online/./src/baseComponents/board-finder/board-finder.tsx?acf6","webpack://Msdyn365.Commerce.Online/./src/baseComponents/portal-modal/portal-modal.tsx?8d10","webpack://Msdyn365.Commerce.Online/./src/baseComponents/product-tile/product-tile.tsx?dce6","webpack://Msdyn365.Commerce.Online/./src/baseComponents/staggered-product-list/staggered-product-list.tsx?84ae","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-basemodule-tester/hosports-basemodule-tester.tsx?3335","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-basemodule-tester/hosports-basemodule-tester.view.tsx?949b","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-board-finder/hosports-board-finder.tsx?96a0","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-board-finder/hosports-board-finder.view.tsx?0955","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-custom-sac-calculator/hosports-custom-sac-calculator.tsx?dfcb","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-custom-sac-calculator/hosports-custom-sac-calculator.view.tsx?68e3","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-sac-finder/hosports-sac-finder.tsx?60c3","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-sac-finder/hosports-sac-finder.view.tsx?c6ab","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-staggered-products-list/hosports-staggered-products-list.tsx?6d7d","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-staggered-products-list/hosports-staggered-products-list.view.tsx?2dee","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-tagged-image/hosports-tagged-image.tsx?41dd","webpack://Msdyn365.Commerce.Online/./src/modules/hosports-tagged-image/hosports-tagged-image.view.tsx?e837","webpack://Msdyn365.Commerce.Online/./src/themes/kent/views/hosports-basemodule-tester.view.tsx?e139","webpack://Msdyn365.Commerce.Online/./src/themes/kent/views/hosports-board-finder.view.tsx?733b","webpack://Msdyn365.Commerce.Online/./src/baseComponents/sac-calculator/sac-calculator.tsx?3644","webpack://Msdyn365.Commerce.Online/./src/themes/kent/views/hosports-custom-sac-calculator.view.tsx?d1db","webpack://Msdyn365.Commerce.Online/./src/themes/kent/views/hosports-sac-finder.view.tsx?a39d","webpack://Msdyn365.Commerce.Online/./src/themes/kent/views/hosports-staggered-products-list.view.tsx?6e0f","webpack://Msdyn365.Commerce.Online/./src/themes/kent/views/hosports-tagged-image.view.tsx?4cba","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":["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.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\nimport React from 'react';\r\n//@ts-ignore\r\nimport Parse from 'parse';\r\n//@ts-ignore\r\nimport BackButton from './../back-button/./back-button';\r\n//@ts-ignore\r\nimport ProductTile from './../product-tile/./product-tile';\r\n//@ts-ignore\r\nimport {HeaderHeight,MobileHeaderHeight,ModelYear} from './../../themes/kent/utilities/constants';\r\n\r\nconst WakeboardQuestions:any = [\r\n {\r\n \"name\":\"Gender\",\r\n \"filter\":\"gender\",\r\n \"question\":\"WHAT IS YOUR GENDER?\",\r\n \"answers\": [\"mens\" , \"womens\", \"kids\"],\r\n \"values\": [\"mens\" , \"womens\", \"kids\"],\r\n \"answered\":false,\r\n \"answer\":\"\"\r\n },\r\n {\r\n \"name\":\"Experience\",\r\n \"filter\":\"wakeboardSkill\",\r\n \"question\":\"HOW EXPERIENCED ARE YOU?\",\r\n \"answers\": [\"beginner\" , \"intermediate\", \"advanced\"],\r\n \"values\": [\"beginner\" , \"intermediate\", \"advanced\"],\r\n \"answered\":false,\r\n \"answer\":\"\"\r\n },\r\n {\r\n \"name\":\"Type\",\r\n \"filter\":\"wakeboardType\",\r\n \"question\":\"WHERE DO YOU RIDE?\",\r\n \"answers\": [\"boat\", \"cable\"],\r\n \"values\": [\"boat\" , \"cable\"],\r\n \"answered\":false,\r\n \"answer\":\"\"\r\n },\r\n {\r\n \"name\":\"Pop / Rocker\",\r\n \"filter\":\"wakeboardPopRocker\",\r\n \"question\":\"HOW DO YOU LIKE YOUR POP/ROCKER?\",\r\n \"answers\": [\"boosty\", \"mid\", \"consistent\"],\r\n \"values\": [\"boosty\" , \"mid\", \"consistent\"],\r\n \"answered\":false,\r\n \"answer\":\"\"\r\n }\r\n ,\r\n {\r\n \"name\":\"Flex\",\r\n \"filter\":\"wakeboardFlex\",\r\n \"question\":\"HOW FLEXY DO YOU LIKE YOUR RIDE?\",\r\n \"answers\": [\"flexy\", \"mid flex\"],\r\n \"values\": [\"flexy\" , \"mid flex\"],\r\n \"answered\":false,\r\n \"answer\":\"\"\r\n }\r\n]\r\n\r\nconst SurfQuestions:any = [\r\n {\r\n \"name\":\"Style\",\r\n \"filter\":\"wakesurfStyle\",\r\n \"question\":\"WHAT IS YOUR SURF STYLE?\",\r\n \"answers\": [\"skim\" , \"surf\", \"cross\"],\r\n \"values\": [\"skim\" , \"surf\", \"cross\"],\r\n \"answered\":false,\r\n \"answer\":\"\"\r\n },\r\n {\r\n \"name\":\"Skill\",\r\n \"filter\":\"wakesurfSkill\",\r\n \"question\":\"HOW EXPERIENCED ARE YOU?\",\r\n \"answers\": [\"beginner\" , \"intermediate\", \"advanced\"],\r\n \"values\": [\"beginner\" , \"intermediate\", \"advanced\"],\r\n \"answered\":false,\r\n \"answer\":\"\"\r\n },\r\n {\r\n \"name\":\"Size\",\r\n \"filter\":\"wakesurfWakeSize\",\r\n \"question\":\"HOW BIG OF A WAKE DO YOU SURF?\",\r\n \"answers\": [\"standard\" , \"full-size\", \"gigantic\"],\r\n \"values\": [\"standard\" , \"full-size\", \"gigantic\"],\r\n \"answered\":false,\r\n \"answer\":\"\"\r\n },\r\n]\r\n\r\ninterface IProps {\r\n type?:any;\r\n year?:any;\r\n}\r\n\r\ninterface IState {\r\n questions?:any;\r\n updateKey?:any;\r\n products?:any;\r\n finderType?:any;\r\n currentQuestion?:any;\r\n category?:any;\r\n visibleQuestions?:any;\r\n quizCompleted?:any;\r\n}\r\n\r\n/**\r\n *\r\n * Tagged Image component\r\n * @extends {React.Component}\r\n */\r\n\r\nclass BoardFinder 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 updateKey:0,\r\n products:[],\r\n currentQuestion: 0\r\n };\r\n }\r\n\r\n public componentDidMount = async() => {\r\n await this.setupQuestions();\r\n this.setupUI()\r\n }\r\n\r\n public setupQuestions = async() =>{\r\n let questions:any = WakeboardQuestions;\r\n let category:any = \"tYeyYbLaJ5\"\r\n if(this.props.type == \"surf\"){\r\n questions = SurfQuestions;\r\n category = \"m28WAffc8i\";\r\n }\r\n this.setState({\r\n questions:questions,\r\n category:category,\r\n finderType:this.props.type\r\n });\r\n return false\r\n }\r\n\r\n public setupUI = async()=>{\r\n let Products:any = Parse.Object.extend(\"Products\"+ModelYear);\r\n let query:any = new Parse.Query(Products);\r\n query.equalTo(\"category\",this.state.category)\r\n query.notEqualTo(\"subcategory\",\"EYPAnD1L4c\")\r\n query.ascending('order')\r\n query.equalTo('site','hyperlite')\r\n let results:any = await query.find()\r\n this.setState({\r\n allProducts : results,\r\n products : results\r\n })\r\n this.updateQuestions();\r\n }\r\n public updateQuestions = async() => {\r\n let visibleQuestions:any =[];\r\n let answeredQuestions:any = 0;\r\n this.state.questions.map((data:any, index:any)=>{\r\n if(data.name == \"Flex\" && this.state.questions[2].answer != \"cable\"){\r\n // do nothing\r\n data.answered = false;\r\n data.answer = \"\";\r\n } else if(data.name == \"Pop / Rocker\" && this.state.questions[2].answer != \"boat\"){\r\n // do nothing\r\n data.answered = false;\r\n data.answer = \"\";\r\n }\r\n else{\r\n visibleQuestions.push(data)\r\n }\r\n if(data.answered){\r\n answeredQuestions = answeredQuestions + 1;\r\n }\r\n if(index == this.state.questions.length -1){\r\n let quizCompleted:any = false;\r\n if(answeredQuestions == visibleQuestions.length){\r\n quizCompleted = true;\r\n }\r\n this.setState({\r\n visibleQuestions:visibleQuestions,\r\n quizCompleted:quizCompleted\r\n })\r\n }\r\n })\r\n }\r\n public breadcrumbClick = async(question:any) =>{\r\n this.state.visibleQuestions.map((data:any, index:any)=>{\r\n if(data.name == question.name){\r\n let currentQuestion:any = index;\r\n question.answered = false;\r\n question.answer = \"\";\r\n this.updateQuestions();\r\n this.filterProducts();\r\n this.setState({\r\n currentQuestion:currentQuestion\r\n })\r\n }\r\n })\r\n }\r\n public answerClick = async(question:any,answer:any) =>{\r\n this.state.questions.map((data:any)=>{\r\n if(data.name == question.name){\r\n let currentQuestion:any = this.state.currentQuestion+1;\r\n question.answered = true;\r\n question.answer = answer;\r\n this.updateQuestions();\r\n this.filterProducts()\r\n this.setState({\r\n currentQuestion:currentQuestion\r\n })\r\n }\r\n })\r\n }\r\n public filterProducts = async() => {\r\n let Products:any = Parse.Object.extend(\"Products\"+ModelYear);\r\n let query:any = new Parse.Query(Products);\r\n this.state.questions.map(async(question:any, index:any) => {\r\n if(question.answer){\r\n query.equalTo(question.filter,question.answer)\r\n }\r\n if(index == this.state.questions.length -1){\r\n query.equalTo(\"category\",this.state.category)\r\n query.notEqualTo(\"subcategory\",\"EYPAnD1L4c\")\r\n query.equalTo('site','hyperlite')\r\n query.ascending('order')\r\n let results:any = await query.find()\r\n let updateKey:any = this.state.updateKey +1;\r\n this.setState({\r\n updateKey:updateKey,\r\n products : results,\r\n })\r\n }\r\n })\r\n }\r\n\r\n public render(): JSX.Element {\r\n if(!this.state.visibleQuestions) return \r\n let collapsedClass:any = null;\r\n let marginLeft:any = this.state.currentQuestion * -100;\r\n let windowWidth:any = this.state.visibleQuestions.length * 100;\r\n let frameWidth:any = 100/this.state.visibleQuestions.length;\r\n if(this.state.quizCompleted){\r\n collapsedClass = \"collapsed\"\r\n }\r\n let headerHeight = HeaderHeight+50;\r\n if(window.outerWidth < 800){\r\n headerHeight = MobileHeaderHeight+50\r\n }\r\n return (\r\n
\r\n
\r\n \r\n
\r\n
\r\n {this.state.visibleQuestions.map((question:any,index:any) => {\r\n var answeredClass = null;\r\n if(question.answered){\r\n answeredClass = \"answered\"\r\n }\r\n return(\r\n
\r\n

{question.question}

\r\n
\r\n {question.answers.map((answer:any,i:any)=>{\r\n return(\r\n
\r\n
this.answerClick(question,answer)}>{answer}
\r\n
\r\n )\r\n })}\r\n
\r\n
\r\n )\r\n })}\r\n
\r\n
\r\n
\r\n {this.state.visibleQuestions.map((question:any,index:any) => {\r\n if(question.answered){\r\n return(\r\n
this.breadcrumbClick(question)} className=\"button primary-color-background white tiny-margin global-radius uppercase\" style={{margin:'5px',fontSize:\"14px\",whiteSpace:\"nowrap\"}}>{question.name+\" : \"+question.answer}
\r\n )\r\n } else{\r\n return(\r\n
this.breadcrumbClick(question)} className=\"button white-background dark-grey global-radius uppercase\" style={{margin:'5px', backgroundColor:'#f9f9f9', color:'#444',fontSize:\"14px\",whiteSpace:\"nowrap\"}}>{question.name}
\r\n )\r\n }\r\n })}\r\n
\r\n
\r\n
\r\n {this.state.products.map((data:any,index:any) => {\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\nexport default BoardFinder;\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 extraClass?: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 let extraClass:any = this.props.extraClass ? this.props.extraClass : \"\";\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","import React from 'react';\r\n//@ts-ignore\r\nimport {GeneralAssetUrl,ParseCategoryIds} from './../../themes/kent/utilities/constants';\r\n//@ts-ignore\r\nimport {GetLocalizedText,GetLocalizedPrice,ReturnProductDetailLink, GenerateProductAssetUrl} from './../../themes/kent/utilities/functions';\r\n//@ts-ignore\r\nimport {GetProductBySlug} from './../../themes/kent/utilities/dataFunctions';\r\n//@ts-ignore\r\nimport {FindFromParse} from './../../themes/kent/utilities/parse';\r\n\r\n\r\n/**\r\n *\r\n * Scroll product tile component\r\n * @extends {React.Component}\r\n */\r\ninterface IProps {\r\n product?: any;\r\n slug?:any;\r\n year?:any;\r\n}\r\n\r\ninterface IState {\r\n calloutImage?:string;\r\n productImage?:string;\r\n link?:string;\r\n title?:string;\r\n price?:string;\r\n sizes?:any;\r\n callout?:string;\r\n product?:any;\r\n tagline?:string;\r\n paddingOverrideStyle?:any;\r\n productNumber?:any;\r\n callouts?:any;\r\n}\r\n\r\nclass ProductTile 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 }\r\n componentDidMount = async() =>{\r\n let product:any = this.props.product;\r\n let prodAssetUrl:string = GenerateProductAssetUrl(this.props.year);\r\n if(this.props.slug){\r\n product = await GetProductBySlug(this.props.slug);\r\n }\r\n let calloutImage:any = null;\r\n let productImage:string = prodAssetUrl+product.attributes.slug+\"1_500.png\";\r\n let paddingOverrideStyle:any = {display:\"block\"};\r\n let thumbOverrideArray:any = [ParseCategoryIds.wakeboards,ParseCategoryIds.wakesurfers];\r\n let paddingOverrideArray:any = [ParseCategoryIds.wakeboardRopesAndHandles]\r\n if(thumbOverrideArray.indexOf(product.attributes.category) != -1 && product.attributes.subcategory != \"EYPAnD1L4c\" ){\r\n productImage = prodAssetUrl+product.attributes.slug+\"-thumb.png\";\r\n }\r\n if(product.attributes.slug.indexOf('waterskis-') != -1){\r\n productImage = prodAssetUrl+product.attributes.slug+\"-thumb.png\";\r\n }\r\n if(paddingOverrideArray.indexOf(product.attributes.category) == -1 ){\r\n paddingOverrideStyle = {paddingTop:'0px', paddingBottom:'0px'};\r\n }\r\n let link:string = await ReturnProductDetailLink(product);\r\n\r\n let title:Promise = await GetLocalizedText(product.attributes.content,'title');\r\n let tagline:Promise = await GetLocalizedText(product.attributes.content,'tagline');\r\n let price:Promise = await GetLocalizedPrice(product.attributes.content,'price');\r\n let sizes:any = product.attributes.sizes;\r\n let productNumber:any;\r\n if(product.attributes.brand == \"fatsac\" || product.attributes.brand == \"barefootinternational\"){\r\n sizes = null;\r\n productNumber = product.attributes.productNumber;\r\n }\r\n if(product.attributes.isNew){\r\n calloutImage = GeneralAssetUrl+\"callout-new.png\";\r\n }\r\n let callout:string = product.attributes.isNew;\r\n if(product.attributes.isEco){\r\n calloutImage = GeneralAssetUrl+\"callout-eco.png\";\r\n }\r\n if(product.attributes.isSoftshell){\r\n calloutImage = GeneralAssetUrl+\"callout-softshell.png\";\r\n }\r\n this.setState({\r\n paddingOverrideStyle:paddingOverrideStyle,\r\n calloutImage:calloutImage,\r\n productImage:productImage,\r\n link:link,\r\n title:title,\r\n tagline:tagline,\r\n price:price,\r\n sizes:sizes,\r\n callout:callout,\r\n product:product,\r\n productNumber:productNumber\r\n },()=>{\r\n if(product.attributes.productCallouts){\r\n this.setupCallouts(product)\r\n }\r\n })\r\n }\r\n setupCallouts = async (product:any) =>{\r\n let results:any = await FindFromParse(\"ProductCallouts\",[{'method':'limit','value':5000}]);\r\n let callouts:any = results.filter((callout:any) => product.attributes.productCallouts.indexOf(callout.id) != -1);\r\n this.setState({\r\n callouts:callouts\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.calloutImage && }\r\n {this.state.callouts && this.state.callouts.map((callout:any) =>{\r\n let image:any = null;\r\n if(callout.attributes.image){\r\n image = callout.attributes.image.url();\r\n }\r\n return()\r\n })}\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
{this.state.title}
\r\n
\r\n
\r\n
{this.state.price}
\r\n
\r\n
\r\n

{this.state.tagline}

\r\n {this.state.sizes &&\r\n
\r\n {this.state.sizes.map((data:string) =>{\r\n return(
{data}
)\r\n })}\r\n
\r\n }\r\n {this.state.productNumber &&\r\n
\r\n
{this.state.productNumber}
\r\n
\r\n }\r\n
\r\n
\r\n
\r\n
\r\n )\r\n }\r\n}\r\n\r\n export default ProductTile;\r\n","import React from 'react';\r\nimport ProductTile from './../product-tile/./product-tile';\r\n//@ts-ignore\r\nimport {GetProductsByQuery,GetProductsBySlugs} from './../../themes/kent/utilities/dataFunctions';\r\n//@ts-ignore\r\nimport {ReorderProducts,OrderProductsByPrice} from './../../themes/kent/utilities/functions';\r\n//@ts-ignore\r\nimport {ModelYear} from './../../themes/kent/utilities/constants';\r\n/**\r\n *\r\n * Product Row component\r\n * @extends {React.Component}\r\n */\r\ninterface IProps {\r\n products?: any;\r\n parseKey?: any;\r\n parseValue?: any;\r\n limit?: any;\r\n hyperliteSurfHack?:any;\r\n imageRatio?:any;\r\n productSlugArray?:any;\r\n year?:any;\r\n}\r\n\r\ninterface IState {\r\n products?:any;\r\n}\r\n\r\n\r\nclass StaggeredList 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 }\r\n\r\n componentDidMount = async() =>{\r\n if(this.props.products){\r\n let reorderedProducts = await ReorderProducts(this.props.products)\r\n this.setState({\r\n 'products':reorderedProducts\r\n })\r\n } else if(this.props.productSlugArray){\r\n let productArray = [];\r\n for (var i = 0; i < this.props.productSlugArray.length; i++) {\r\n productArray.push(this.props.productSlugArray[i])\r\n }\r\n let products = await GetProductsBySlugs(productArray,this.props.year);\r\n this.setState({\r\n 'products':products\r\n })\r\n }\r\n }\r\n\r\n public render(): JSX.Element {\r\n if(!this.state.products) return ;\r\n let mobile:any = false;\r\n if(window.outerWidth < 800 && window.location.pathname.indexOf(\"fatsac\") != -1){\r\n mobile = true;\r\n }\r\n let mobileWidth:any = 300;\r\n if(mobile){\r\n return (\r\n
\r\n {this.state.products.map((data:any,index:any) => {\r\n return(\r\n
\r\n \r\n
\r\n )})}\r\n
\r\n );\r\n } else{\r\n return (\r\n \r\n {this.state.products.map((data:any,index:any) => {\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 export default StaggeredList;\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 { IHosportsBasemoduleTesterData } from './hosports-basemodule-tester.data';\r\nimport { IHosportsBasemoduleTesterProps } from './hosports-basemodule-tester.props.autogenerated';\r\n\r\nexport interface IHosportsBasemoduleTesterViewProps extends IHosportsBasemoduleTesterProps {\r\n\r\n}\r\n\r\n/**\r\n *\r\n * HosportsBasemoduleTester component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass HosportsBasemoduleTester 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 HosportsBasemoduleTester;\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 { IHosportsBasemoduleTesterViewProps } from './hosports-basemodule-tester';\r\n\r\nexport default (props: IHosportsBasemoduleTesterViewProps) => {\r\n return (\r\n
\r\n

{'Basemodule Tester'}

\r\n
\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 { IHosportsBoardFinderData } from './hosports-board-finder.data';\r\nimport { IHosportsBoardFinderProps } from './hosports-board-finder.props.autogenerated';\r\n\r\nexport interface IHosportsBoardFinderViewProps extends IHosportsBoardFinderProps {\r\n\r\n}\r\n\r\n/**\r\n *\r\n * HosportsBoardFinder component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass HosportsBoardFinder 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 HosportsBoardFinder;\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 { IHosportsBoardFinderViewProps } from './hosports-board-finder';\r\n\r\nexport default (props: IHosportsBoardFinderViewProps) => {\r\n return (\r\n

{'Board Finder 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 { IHosportsCustomSacCalculatorData } from './hosports-custom-sac-calculator.data';\r\nimport { IHosportsCustomSacCalculatorProps } from './hosports-custom-sac-calculator.props.autogenerated';\r\n\r\nexport interface IHosportsCustomSacCalculatorViewProps extends IHosportsCustomSacCalculatorProps {}\r\n\r\n/**\r\n *\r\n * HosportsCustomSacCalculator component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass HosportsCustomSacCalculator 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 HosportsCustomSacCalculator;\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 { IHosportsCustomSacCalculatorViewProps } from './hosports-custom-sac-calculator';\r\n\r\nexport default (props: IHosportsCustomSacCalculatorViewProps) => {\r\n return (\r\n

{'Custom Sac Calculator'}

\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 { IHosportsSacFinderData } from './hosports-sac-finder.data';\r\nimport { IHosportsSacFinderProps } from './hosports-sac-finder.props.autogenerated';\r\n\r\nexport interface IHosportsSacFinderViewProps extends IHosportsSacFinderProps {\r\n\r\n}\r\n\r\n/**\r\n *\r\n * HosportsSacFinder component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass HosportsSacFinder 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 HosportsSacFinder;\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 { IHosportsSacFinderViewProps } from './hosports-sac-finder';\r\n\r\nexport default (props: IHosportsSacFinderViewProps) => {\r\n return (\r\n

{'Sac Finder 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 { IHosportsStaggeredProductsListData } from './hosports-staggered-products-list.data';\r\nimport { IHosportsStaggeredProductsListProps } from './hosports-staggered-products-list.props.autogenerated';\r\n\r\nexport interface IHosportsStaggeredProductsListViewProps extends IHosportsStaggeredProductsListProps {\r\n\r\n}\r\n\r\n/**\r\n *\r\n * HosportsStaggeredProductsList component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass HosportsStaggeredProductsList 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 HosportsStaggeredProductsList;\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 { IHosportsStaggeredProductsListViewProps } from './hosports-staggered-products-list';\r\n\r\nexport default (props: IHosportsStaggeredProductsListViewProps) => {\r\n return (\r\n
\r\n

{'Product List'}

\r\n
\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 { IHosportsTaggedImageData } from './hosports-tagged-image.data';\r\nimport { IHosportsTaggedImageProps } from './hosports-tagged-image.props.autogenerated';\r\n\r\nexport interface IHosportsTaggedImageViewProps extends IHosportsTaggedImageProps {\r\n\r\n}\r\n\r\n/**\r\n *\r\n * HosportsTaggedImage component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass HosportsTaggedImage 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 HosportsTaggedImage;\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 { IHosportsTaggedImageViewProps } from './hosports-tagged-image';\r\n\r\nexport default (props: IHosportsTaggedImageViewProps) => {\r\n return (\r\n
\r\n

{'Tagged Image'}

\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 { IHosportsBasemoduleTesterViewProps } from '../../../modules/hosports-basemodule-tester/./hosports-basemodule-tester';\r\nimport BoardFinder from './../../../baseComponents/board-finder/./board-finder';\r\n\r\n\r\nexport default (props: IHosportsBasemoduleTesterViewProps) => {\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 { IHosportsBoardFinderViewProps } from '../../../modules/hosports-board-finder/./hosports-board-finder';\r\nimport BoardFinder from './../../../baseComponents/board-finder/./board-finder';\r\n\r\nclass HosportsBoardFinder extends React.Component {\r\n render() {\r\n const { config } = this.props;\r\n\r\n return (\r\n \r\n );\r\n }\r\n}\r\n\r\nexport default HosportsBoardFinder;\r\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\nimport React from 'react';\r\n//@ts-ignore\r\nimport Parse from 'parse';\r\n//@ts-ignore\r\nimport Hero from './../hero/./hero';\r\n//@ts-ignore\r\nimport BackButton from './../back-button/./back-button';\r\n//@ts-ignore\r\nimport {GetLocalText,GetLocalizedText,GetLocalizedPrice,StripHtml,CapitalizeFirstLetter,GenerateProductAssetUrl} from \"./../../themes/kent/utilities/functions\";\r\n//@ts-ignore\r\nimport {GeneralAssetUrl} from \"./../../themes/kent/utilities/constants\";\r\n\r\ninterface IProps {\r\n submitOrder?:any;\r\n updateCustomSacPrice?:any;\r\n year?:any;\r\n}\r\n\r\ninterface IState {\r\n customPrice?:any;\r\n height?:any;\r\n width?:any;\r\n length?:any;\r\n flang?:any;\r\n style?:any;\r\n products?:any;\r\n onBackgroundImageLoaded?:any;\r\n price?:any;\r\n}\r\n\r\n/**\r\n *\r\n * Tagged Image component\r\n * @extends {React.Component}\r\n */\r\n\r\nclass FatsacCalculator 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 customPrice:0,\r\n height:0,\r\n width:0,\r\n length:0,\r\n flang:0,\r\n style:\"\"\r\n };\r\n }\r\n\r\n public componentDidMount = async() => {\r\n\r\n if(this.props.submitOrder){\r\n this.setState({\r\n placeOrder:true\r\n })\r\n }\r\n let existingAccessories:any = [];\r\n if(localStorage.getItem(\"customSacOrder\")){\r\n let existingOrderString:any = localStorage.getItem(\"customSacOrder\");\r\n let existingOrder:any = JSON.parse(existingOrderString);\r\n existingAccessories = existingOrder.accessoriesArray;\r\n this.setState({\r\n height:existingOrder.height,\r\n width:existingOrder.width,\r\n length:existingOrder.length,\r\n flang:existingOrder.flang,\r\n style:existingOrder.style\r\n })\r\n }\r\n let year = this.props.year ? this.props.year :'2022';\r\n let Products:any = Parse.Object.extend(\"Products\"+year);\r\n let query:any = new Parse.Query(Products);\r\n query.equalTo('category', \"dhhTsWeEav\");\r\n query.ascending('order')\r\n let results:any = await query.find()\r\n let products:any = []\r\n results.map((data:any, index:any)=>{\r\n let product:any = data\r\n product[\"selected\"] = false;\r\n product[\"quantity\"] = 1;\r\n products.push(data)\r\n if(index == results.length -1){\r\n if(existingAccessories.length > 0){\r\n existingAccessories.map((value:any, index:any)=>{\r\n products.map((data:any, index:any)=>{\r\n if(data.attributes.slug == value.slug){\r\n let updatedProduct:any = data;\r\n updatedProduct[\"selected\"] = true;\r\n updatedProduct[\"quantity\"] = value.quantity;\r\n products[index] = updatedProduct;\r\n }\r\n if(index == products.length -1){\r\n this.setState({\r\n 'products':products\r\n },()=>{\r\n this.calculatePrice()\r\n })\r\n }\r\n })\r\n })\r\n } else{\r\n this.setState({\r\n 'products':products\r\n },()=>{\r\n this.calculatePrice()\r\n })\r\n\r\n }\r\n }\r\n })\r\n }\r\n\r\n public calculatePrice = () => {\r\n let shapeFee:any = 0;\r\n let labor:any = 140; // it was 120\r\n\t\tlet design:any = 30;\r\n let additionalMaterialFee:any = 80; // it was 60\r\n let accessoriesArray:any = []\r\n\t\tlet accessories:any = '\\n';\r\n\t\tlet height:any = parseInt(this.state.height);\r\n\t\tlet width:any = parseInt(this.state.width);\r\n\t\tlet length:any = parseInt(this.state.length);\r\n\t\tlet flang:any = parseInt(this.state.flang);\r\n\t\tlet style:any = this.state.style;\r\n if(style == \"enzo\"){\r\n shapeFee =30\r\n }\r\n if(style == \"integratedbow\"){\r\n shapeFee =60\r\n }\r\n if(style == \"tophat\"){\r\n shapeFee =85\r\n }\r\n\r\n\t\tlet cost:any = (((((((length * 2) + (width * 2) + (height * 2)) / 12) * 2) * 3) + labor) + design) + ((5.5 * flang) * 2)+shapeFee+additionalMaterialFee;\r\n\r\n\t\t//calculate all of the products\r\n if(this.state.products){\r\n this.state.products.map((data:any, index:any)=>{\r\n if(data.selected){\r\n let price:any = parseInt(data.attributes.content[0].price) * parseInt(data.quantity);\r\n accessoriesArray.push({slug:data.attributes.slug,quantity:data.quantity});\r\n accessories = accessories+\" accessory: \"+data.attributes.content[0].title + \" quantity: \"+data.quantity+\" total: $\"+price+\",\";\r\n cost = cost+price\r\n }\r\n if(index == this.state.products.length -1){\r\n let cents:any = cost * 100;\r\n \t\tlet roundedCents:any = Math.round(cents);\r\n \t\tlet roundedPrice:any = roundedCents / 100;\r\n this.setState({\r\n customPrice : roundedPrice\r\n })\r\n let customSacOrder:any = {\r\n \t\"height\": height,\r\n \t\t\t\t\t\"width\": width,\r\n \t\t\t\t\t\"length\": length,\r\n \t\t\t\t\t\"flang\": flang,\r\n \t\t\t\t\t\"style\": style,\r\n \t\t\t\t\t\"labor\": labor,\r\n \t\t\t\t\t\"design\": design,\r\n \"additional material fee\": additionalMaterialFee,\r\n \t\t\t\t\t\"cost\": roundedPrice,\r\n \t\t\t\t\t\"accessories\": accessories,\r\n \"accessoriesArray\":accessoriesArray\r\n }\r\n this.setState({\r\n price:roundedPrice\r\n })\r\n localStorage.setItem(\"customSacOrder\", JSON.stringify(customSacOrder));\r\n }\r\n })\r\n }\r\n\t}\r\n public submitOrder = () => {\r\n this.calculatePrice()\r\n }\r\n public updateLength = (e:any) =>{\r\n this.setState({\r\n length: e.target.value\r\n }, () => {\r\n this.calculatePrice();\r\n })\r\n }\r\n public updateHeight = (e:any) =>{\r\n this.setState({\r\n height: e.target.value\r\n }, () => {\r\n this.calculatePrice();\r\n })\r\n }\r\n public updateWidth = (e:any) =>{\r\n this.setState({\r\n width: e.target.value\r\n }, () => {\r\n this.calculatePrice();\r\n })\r\n }\r\n public updateFlang = (e:any) =>{\r\n this.setState({\r\n flang: e.target.value\r\n }, () => {\r\n this.calculatePrice();\r\n })\r\n }\r\n\r\n\r\n public selectStyle = (value:any) => {\r\n this.setState({\r\n style:value\r\n }, () => {\r\n this.calculatePrice();\r\n })\r\n }\r\n\r\n public updateAccessories = (index:any) =>{\r\n let products:any = this.state.products;\r\n if(products[index].selected){\r\n products[index].selected = false\r\n products[index].quantity = 0;\r\n } else{\r\n products[index].selected = true\r\n }\r\n this.setState({\r\n products:products\r\n }, () => {\r\n this.calculatePrice();\r\n })\r\n }\r\n public updateAccessoryQuantity = (index:any,value:any) =>{\r\n let products:any = this.state.products;\r\n products[index].quantity = value;\r\n if(value == \"\"){\r\n products[index].selected = false\r\n } else{\r\n products[index].selected = true\r\n }\r\n this.setState({\r\n products:products\r\n }, () => {\r\n this.calculatePrice();\r\n })\r\n }\r\n\r\n clearLocalStorage = () =>{\r\n\t\tlocalStorage.removeItem(\"customSacOrder\")\r\n\t\twindow.location.assign('/calculator')\r\n\t}\r\n\r\n public render(): JSX.Element {\r\n let prodAssetUrl:string = GenerateProductAssetUrl(this.props.year);\r\n return (\r\n
\r\n
\r\n

{'Enter Your Dimensions'}

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

{'Length (Inches)'}

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

{'Width (Inches)'}

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

{'Height (Inches)'}

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

{'Flange Valves'}

\r\n \t\t\t\t\t\t\t\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

{'Choose Your Style'}

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
{'Rectangle'}
\r\n

{'No Extra Fee'}

\r\n
\r\n
\r\n this.selectStyle(\"rectangle\")} style={{margin:'auto'}} />\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
{'Enzo'}
\r\n

{'$30 Fee'}

\r\n
\r\n
\r\n this.selectStyle(\"enzo\")} style={{margin:'auto'}} />\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
{'Integrated Bow'}
\r\n

{'$60 Fee'}

\r\n
\r\n
\r\n this.selectStyle(\"integratedbow\")} style={{margin:'auto'}} />\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
{'Top Hat'}
\r\n

{'$85 Fee'}

\r\n
\r\n
\r\n this.selectStyle(\"tophat\")} style={{margin:'auto'}} />\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

{'Select Your Accessories'}

\r\n
\r\n
\r\n {this.state.products && this.state.products.map((data:any,index:any) =>{\r\n return(\r\n
\r\n
\r\n
\r\n \r\n
\r\n

{data.attributes.content[0].title}

\r\n
{data.attributes.content[0].price}
\r\n
\r\n
\r\n
\r\n
\r\n this.updateAccessories(index)} />\r\n
\r\n
\r\n {'Quantity'}\r\n
\r\n
\r\n this.updateAccessoryQuantity(index, e.target.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\n
\r\n {\"Custom Sac Price \"}\r\n {this.state.price &&\r\n \r\n {'$'+this.state.price}\r\n \r\n }\r\n\r\n
\r\n
\r\n
\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}\r\n\r\nexport default FatsacCalculator;\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 { IHosportsCustomSacCalculatorViewProps } from '../../../modules/hosports-custom-sac-calculator/./hosports-custom-sac-calculator';\r\n// @ts-ignore\r\nimport CustomSacCalculator from \"./../../../baseComponents/sac-calculator/./sac-calculator\";\r\n\r\ninterface IState {\r\n ready:boolean;\r\n}\r\n\r\n/**\r\n *\r\n * Parallax Loose Grid component\r\n * @extends {React.Component}\r\n */\r\nclass HosportsCustomSacCalculator extends React.Component {\r\n\r\n public state: IState;\r\n\r\n constructor(props: IHosportsCustomSacCalculatorViewProps) {\r\n super(props);\r\n this.state = {\r\n ready:true\r\n };\r\n }\r\n\r\n public render(): JSX.Element {\r\n const { config } = this.props;\r\n return (\r\n \r\n );\r\n }\r\n}\r\n\r\nexport default HosportsCustomSacCalculator;\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 { IHosportsSacFinderViewProps } from './../../../modules/hosports-sac-finder/./hosports-sac-finder';\r\n//@ts-ignore\r\nimport {ModelYear,GeneralAssetUrl} from './../utilities/constants';\r\n//@ts-ignore\r\nimport Parse from 'parse';\r\n// @ts-ignore\r\nimport ProductTile from './../../../baseComponents/product-tile/./product-tile';\r\n/**\r\n *\r\n * HosportsSacFinder component\r\n * @extends {React.PureComponentReact.Component}\r\n */\r\n interface IState {\r\n questionOne?:any;\r\n questionTwo?:any;\r\n leftMargin?:any;\r\n packageName?:any;\r\n packageProducts?:any;\r\n footPrint?:any;\r\n HosportsButtonRowtionary?:any;\r\n productDictionary?:any;\r\n }\r\n\r\nclass HosportsSacFinder extends React.Component {\r\n\r\n public state: IState;\r\n\r\n constructor (props: IHosportsSacFinderViewProps) {\r\n super(props);\r\n this.state = {};\r\n }\r\n public componentDidMount = async() =>{\r\n\r\n let {config} = this.props;\r\n let year = config.year ? config.year : ModelYear;\r\n let searchQuery:any = Parse.Object.extend('Products'+year);\r\n let query:any = new Parse.Query(searchQuery);\r\n query.equalTo(\"category\",\"lDtB8joWup\");\r\n query.ascending(\"order\");\r\n query.limit(500);\r\n let results: any = await query.find()\r\n let productDictionary:any = {}\r\n results.map((data:any, index:any)=>{\r\n productDictionary[data.attributes.slug]=data;\r\n if(index == results.length -1){\r\n console.log(productDictionary)\r\n this.setState({\r\n productDictionary:productDictionary\r\n })\r\n }\r\n })\r\n }\r\n public answerQuestionOne = (value:any) =>{\r\n this.setState({\r\n questionOne:value,\r\n leftMargin:'-100%'\r\n })\r\n }\r\n public answerQuestionTwo = (value:any) =>{\r\n this.setState({\r\n questionTwo:value,\r\n leftMargin:'-200%'\r\n }, () => {\r\n this.endQuiz();\r\n });\r\n }\r\n\r\n public endQuiz = () =>{\r\n packages.map((value:any,index:any) =>{\r\n if(value.answers[0] == this.state.questionOne && value.answers[1] == this.state.questionTwo){\r\n let packageProducts:any = [];\r\n value.products.map((data:any, index:any)=>{\r\n if(this.state.productDictionary){\r\n let product:any = this.state.productDictionary[data];\r\n packageProducts.push(product)\r\n if(index == value.products.length -1){\r\n this.setState({\r\n packageName:value.name,\r\n footPrint:value.image,\r\n packageProducts:packageProducts\r\n })\r\n }\r\n }\r\n })\r\n \t\t}\r\n })\r\n }\r\n public render(): JSX.Element {\r\n const { config } = this.props;\r\n let background1Image = config.question1Background ? config.question1Background.src : undefined;\r\n let background2Image = config.question2Background ? config.question2Background.src : undefined;\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

{'What type of boat do you have?'}

\r\n
\r\n
this.answerQuestionOne('V-Drive')}>{'V-Drive'}
\r\n
\r\n
\r\n
this.answerQuestionOne('Direct Drive')}>{'Direct Drive'}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {background1Image && }\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

{'How big of a wake do you want?'}

\r\n
\r\n
this.answerQuestionTwo('Beginner')}>{'Beginner'}
\r\n
\r\n
\r\n
this.answerQuestionTwo('Intermediate')}>{'Intermediate'}
\r\n
\r\n
\r\n
this.answerQuestionTwo('Advanced/Pro')}>{'Advanced/Pro'}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {background2Image && }\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

{this.state.packageName}

\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n {'Start Over'}\r\n
\r\n
\r\n {this.state.packageProducts &&\r\n
\r\n {this.state.packageProducts.map((data:any,index:any) => {\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 );\r\n }\r\n}\r\n\r\nexport default HosportsSacFinder;\r\n\r\nconst packages = [\r\n\t{\r\n\t\t'name':'V-Drive Slammed',\r\n\t\t'answers':[\"V-Drive\",\"Advanced/Pro\"],\r\n\t\t'products':[\"ballast-jumbo-surf\",\"ballast-jumbo-surf\",\"ballast-open-bow\",\"ballast-supa-tsunami-pump\",\"ballast-supa-tsunami-pump\"],\r\n\t\t'configuration':[\"w_706\",\"w_709\",\"w_719\"],\r\n\t\t'footprint':\"v-drive-footprint\",\r\n 'image':'finder-v-drive-slammed.jpg'\r\n\t},\r\n\t{\r\n\t\t'name':'V-Drive Enhanced',\r\n\t\t'answers':[\"V-Drive\",\"Intermediate\"],\r\n\t\t'products':[\"ballast-fat-sac\",\"ballast-fat-sac\",\"ballast-open-bow\",\"ballast-supa-tsunami-pump\"],\r\n\t\t'configuration':[\"w_706\",\"w_707\",\"w_709\"],\r\n\t\t'footprint':\"v-drive-footprint\",\r\n 'image':'finder-v-drive-enhanced.jpg'\r\n\t},\r\n {\r\n\t\t'name':'V-Drive Beginner',\r\n\t\t'answers':[\"V-Drive\",\"Beginner\"],\r\n\t\t'products':[\"ballast-v-drive\",\"ballast-open-bow\",\"ballast-supa-tsunami-pump\"],\r\n\t\t'configuration':[\"w_701\",\"w_706\",\"w_709\"],\r\n\t\t'footprint':\"v-drive-footprint\",\r\n 'image':'finder-v-drive-enhanced.jpg'\r\n\t},\r\n\t{\r\n\t\t'name':'Direct Drive Slammed',\r\n\t\t'answers':[\"Direct Drive\",\"Advanced/Pro\"],\r\n 'products':[\"ballast-jumbo-surf\",\"ballast-jumbo-surf\",\"ballast-open-bow\",\"ballast-supa-tsunami-pump\",\"ballast-supa-tsunami-pump\"],\r\n 'configuration':[\"w_706\",\"w_709\",\"w_719\"],\r\n\t\t'footprint':\"direct-drive-footprint\",\r\n 'image':'finder-direct-drive-slammed.jpg'\r\n\t},\r\n\t{\r\n\t\t'name':'Direct Drive Enhanced',\r\n\t\t'answers':[\"Direct Drive\",\"Intermediate\"],\r\n 'products':[\"ballast-fat-sac\",\"ballast-fat-sac\",\"ballast-open-bow\",\"ballast-supa-tsunami-pump\"],\r\n\t\t'configuration':[\"w_706\",\"w_707\",\"w_709\"],\r\n\t\t'footprint':\"direct-drive-footprint\",\r\n 'image':'finder-direct-drive-slammed.jpg'\r\n\t},\r\n {\r\n\t\t'name':'Direct Drive Beginner',\r\n\t\t'answers':[\"Direct Drive\",\"Beginner\"],\r\n\t\t'products':[\"ballast-v-drive\",\"ballast-open-bow\",\"ballast-supa-tsunami-pump\"],\r\n\t\t'configuration':[\"w_701\",\"w_706\",\"w_709\"],\r\n\t\t'footprint':\"direct-drive-footprint\",\r\n 'image':'finder-direct-drive-slammed.jpg'\r\n\t}\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 { IHosportsStaggeredProductsListViewProps } from '../../../modules/hosports-staggered-products-list/./hosports-staggered-products-list';\r\nimport StaggeredProductList from './../../../baseComponents/staggered-product-list/./staggered-product-list';\r\n\r\nclass StaggeredProductsListView extends React.Component {\r\n render() {\r\n const { config } = this.props;\r\n if(!config.products) return \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\nexport default StaggeredProductsListView;\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 { IHosportsTaggedImageViewProps } from '../../../modules/hosports-tagged-image/./hosports-tagged-image';\r\n//@ts-ignore\r\nimport {GetProductsBySlugs,OrderProductsByPrice,GetRidersBySlugs} from './../utilities/dataFunctions';\r\n//@ts-ignore\r\nimport {GetLocalizedText,GetLocalizedPrice} from './../utilities/functions';\r\n//@ts-ignore\r\nimport {StaticAssetUrl,ProductAssetUrl,GeneralAssetUrl} from './../utilities/constants';\r\nimport PortalModal from './../../../baseComponents/portal-modal/./portal-modal';\r\n\r\ninterface IState {\r\n ready:boolean;\r\n onBackgroundImageLoaded:boolean;\r\n onFullScreenImageLoaded:boolean;\r\n fullScreen:boolean;\r\n riders:any,\r\n products:any\r\n}\r\n\r\n/**\r\n *\r\n * Hero component\r\n * @extends {React.Component>}\r\n */\r\nclass HosportsTaggedImage extends React.Component {\r\n\r\n public state: IState;\r\n\r\n constructor(props: IHosportsTaggedImageViewProps) {\r\n super(props);\r\n this.state = {\r\n ready:false,\r\n onBackgroundImageLoaded:false,\r\n onFullScreenImageLoaded:false,\r\n fullScreen:false,\r\n riders:[],\r\n products:[]\r\n };\r\n }\r\n\r\n public componentDidMount = async() => {\r\n const { config } = this.props;\r\n let riderArray = [];\r\n let productArray = [];\r\n if(config.products){\r\n for (var i = 0; i < config.products.length; i++) {\r\n productArray.push(config.products[i])\r\n }\r\n }\r\n if(config.riders){\r\n for (var i = 0; i < config.riders.length; i++) {\r\n riderArray.push(config.riders[i])\r\n }\r\n }\r\n let products = await GetProductsBySlugs(productArray,config.year);\r\n let riders = await GetRidersBySlugs(riderArray);\r\n this.setState({\r\n products:products,\r\n riders:riders\r\n })\r\n }\r\n\r\n public onFullScreenImageLoad = () => {\r\n this.setState({\r\n onFullScreenImageLoaded:true\r\n })\r\n }\r\n\r\n public onBackgroundImageLoad = () => {\r\n this.setState({\r\n onBackgroundImageLoaded:true\r\n })\r\n }\r\n\r\n public activateFullScreen = () => {\r\n this.setState({\r\n onFullScreenImageLoaded:false,\r\n fullScreen:true\r\n })\r\n }\r\n\r\n public hideFullScreen = () => {\r\n this.setState({\r\n fullScreen:false\r\n })\r\n }\r\n\r\n public render(): JSX.Element {\r\n const { config } = this.props;\r\n let backgroundImage:any = config.backgroundImage ? 'url('+config.backgroundImage.src+')' : null ;\r\n let targetImage:any = config.image ? config.image.src : null;\r\n targetImage = config.backgroundImage ? config.backgroundImage.src : targetImage;\r\n let backgroundImageLoadedClass:string = \"loaded\";\r\n let fullScreenImageLoadedClass:string = \"\";\r\n if(config.backgroundImage){\r\n backgroundImageLoadedClass = \"\"\r\n }\r\n if(this.state.onBackgroundImageLoaded){\r\n backgroundImageLoadedClass = \"loaded\"\r\n }\r\n if(this.state.onFullScreenImageLoaded){\r\n fullScreenImageLoadedClass = \"loaded\"\r\n }\r\n console.log(this.state.products)\r\n console.log(this.state.riders)\r\n return (\r\n
\r\n {config.backgroundImage && }\r\n {config.image && }\r\n
\r\n \r\n
\r\n {this.state.fullScreen &&\r\n \r\n \r\n

{'In This Photo'}

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

{'In This Photo'}

\r\n {this.state.riders && this.state.riders.map((data:any) =>{\r\n let link:string = \"/rider/\"+data.attributes.slug;\r\n let image:string =\"\";\r\n if(data.attributes && data.attributes.cover){\r\n image = data.attributes.cover.url();\r\n }\r\n let name:string = data.attributes.firstName+\" \"+data.attributes.lastName;\r\n return(\r\n \r\n )\r\n })}\r\n {this.state.products && this.state.products.map(async(data:any) =>{\r\n let link:string = \"/product/\"+data.attributes.slug;\r\n let title:Promise = await GetLocalizedText(data.attributes.content,'title');\r\n let price:Promise = await GetLocalizedPrice(data.attributes.content,'price');\r\n\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\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 HosportsTaggedImage;\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":["BackButton","React","constructor","props","super","goBack","window","history","back","render","headerHeight","outerWidth","className","onClick","this","style","top","theme","src","GeneralAssetUrl","WakeboardQuestions","SurfQuestions","BoardFinder","componentDidMount","async","setupQuestions","setupUI","questions","category","type","setState","finderType","Products","Parse","extend","ModelYear","query","equalTo","state","notEqualTo","ascending","results","find","allProducts","products","updateQuestions","visibleQuestions","answeredQuestions","map","data","index","name","answer","answered","push","length","quizCompleted","breadcrumbClick","question","currentQuestion","filterProducts","answerClick","filter","updateKey","collapsedClass","marginLeft","windowWidth","frameWidth","HeaderHeight","MobileHeaderHeight","paddingTop","id","width","answeredClass","answers","i","margin","fontSize","whiteSpace","backgroundColor","color","key","ProductTile","product","PortalModal","modalActive","setupModal","componentDidUpdate","modalId","Math","floor","random","elem","document","createElement","setAttribute","body","appendChild","hideModal","setTimeout","modalHidden","frame","positionType","content","hideCloseButton","position","animateOut","closeImage","componentTheme","extraClass","portal","getElementById","ReactDOM","prodAssetUrl","GenerateProductAssetUrl","year","slug","GetProductBySlug","calloutImage","productImage","attributes","paddingOverrideStyle","display","thumbOverrideArray","ParseCategoryIds","wakeboards","wakesurfers","paddingOverrideArray","wakeboardRopesAndHandles","indexOf","subcategory","paddingBottom","productNumber","link","ReturnProductDetailLink","title","GetLocalizedText","tagline","price","GetLocalizedPrice","sizes","brand","isNew","callout","isEco","isSoftshell","productCallouts","setupCallouts","callouts","FindFromParse","href","image","url","StaggeredList","reorderedProducts","ReorderProducts","productSlugArray","productArray","GetProductsBySlugs","mobile","location","pathname","maxWidth","mobileWidth","minWidth","HosportsBasemoduleTester","renderView","HosportsBoardFinder","HosportsCustomSacCalculator","HosportsSacFinder","HosportsStaggeredProductsList","HosportsTaggedImage","config","FatsacCalculator","submitOrder","placeOrder","existingAccessories","localStorage","getItem","existingOrderString","existingOrder","JSON","parse","accessoriesArray","height","flang","value","updatedProduct","quantity","calculatePrice","shapeFee","accessories","parseInt","cost","selected","cents","roundedPrice","round","customPrice","customSacOrder","setItem","stringify","updateLength","e","target","updateHeight","updateWidth","updateFlang","selectStyle","updateAccessories","updateAccessoryQuantity","clearLocalStorage","removeItem","assign","borderTop","onChange","cursor","alignItems","justifyContent","paddingRight","bottom","zIndex","textAlign","ready","CustomSacCalculator","searchQuery","limit","productDictionary","console","log","answerQuestionOne","questionOne","leftMargin","answerQuestionTwo","questionTwo","endQuiz","packages","packageProducts","packageName","footPrint","background1Image","question1Background","undefined","background2Image","question2Background","marginTop","StaggeredProductsListView","StaggeredProductList","riderArray","riders","GetRidersBySlugs","onFullScreenImageLoad","onFullScreenImageLoaded","onBackgroundImageLoad","onBackgroundImageLoaded","activateFullScreen","fullScreen","hideFullScreen","backgroundImage","targetImage","backgroundImageLoadedClass","fullScreenImageLoadedClass","Object","onLoad","StaticAssetUrl","cover","firstName","lastName","ProductAssetUrl","cssClassCoversionDictionary","threeQuarter","half","quarter","full","centerCenter","leftCenter","rightCenter","bottomLeft","bottomRight","bottomCenter","topLeft","topRight","topCenter","BaseUrl","sort","a","b","order","search","getCookieValue","cookie","match","pop","text","lang","GetLocalText","GetFromParseBySlug","localizedText","ShuffleArray","j","x","StripHtml","html","tmp","innerHTML","textContent","replace","innerText","DoesProductShowDetailImages","showProductDetailImages","DoesProductShowHeroImage","showProductHeroImage","GetYoutubeIdFromUrl","videoId","youtubeUrl","split","ampersandPosition","substring","GetProductFromItemNumber","itemNumber","prodModelYear","num","GetExternalProductInfo","GetLocaleValue","TruncateText","description","slice","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","lim","lastLength","output","flags","ignoreCase","multiline","sticky","lastLastIndex","separatorCopy","source","splitter","C","unicodeMatching","p","q","z","re","originalExec","arguments"],"sourceRoot":""}