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EAAM8K,uBAAuB9K,IAC3EA,EAAMoK","sources":["webpack://msdyn365.commerce.online/./src/modules/clickable-container/clickable-container.tsx?4f20","webpack://msdyn365.commerce.online/./src/modules/iframe-module/iframe-module.tsx?0b83","webpack://msdyn365.commerce.online/./src/modules/pdp-dynamic-image/pdp-dynamic-image.tsx?0d99","webpack://msdyn365.commerce.online/./src/modules/product-description/product-description.tsx?6bc4","webpack://msdyn365.commerce.online/./src/modules/video-background/video-background.tsx?ba1d","webpack://msdyn365.commerce.online/./src/modules/wine-club-content/wine-club-content.tsx?461b","webpack://msdyn365.commerce.online/./src/modules/wine-finder-by-zip/wine-finder-by-zip.tsx?e262","webpack://msdyn365.commerce.online/./src/modules/wine-finder-by-zip/wine-finder-by-zip.view.tsx?bc9d","webpack://msdyn365.commerce.online/./src/themes/columbiacrest/columbiacrest.tsx?9d5d","webpack://msdyn365.commerce.online/./src/themes/h3-theme/views/wine-finder-by-zip.view.tsx?cf48","webpack://msdyn365.commerce.online/./src/themes/lql/views/wine-finder-by-zip.view.tsx?c19e","webpack://msdyn365.commerce.online/./src/themes/smwe/views/wine-finder-by-zip.view.tsx?cb98","webpack://msdyn365.commerce.online/./src/themes/spring-valley-vineyard/spring-valley-vineyard.tsx?0631","webpack://msdyn365.commerce.online/./src/modules/default-external-script/default-external-script.tsx?2a33","webpack://msdyn365.commerce.online/./src/modules/default-inline-script/default-inline-script.tsx?5ccd","webpack://msdyn365.commerce.online/./src/modules/default-inline-style/default-inline-style.tsx?3552","webpack://msdyn365.commerce.online/./src/utils/script-utils.ts?cb52","webpack://msdyn365.commerce.online/./src/modules/text-block/text-block.tsx?db84","webpack://msdyn365.commerce.online/./src/modules/text-block/text-block.view.tsx?9307"],"sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\nimport classname from 'classnames';\r\nimport * as React from 'react';\r\n\r\nimport { IClickableContainerData } from './clickable-container.data';\r\nimport { IClickableContainerProps } from './clickable-container.props.autogenerated';\r\n\r\n// ==========================================================================\r\n/**\r\n * ClickableContainer component\r\n * @extends {React.PureComponent>}\r\n */\r\n// ==========================================================================\r\nclass ClickableContainer extends React.PureComponent> {\r\n\r\n // =======================================================================\r\n // PUBLIC METHODS\r\n // =======================================================================\r\n\r\n // ------------------------------------------------------\r\n // ------------------------------------------------------\r\n public render(): JSX.Element {\r\n\r\n const {\r\n config: { link, className }\r\n } = this.props;\r\n\r\n return (\r\n \r\n {this._slots}\r\n \r\n );\r\n }\r\n\r\n // ==========================================================================\r\n // JSX CONSTRUCTORS\r\n // ==========================================================================\r\n\r\n // ------------------------------------------------------\r\n // ------------------------------------------------------\r\n private get _target(): string | undefined {\r\n const link = this.props.config.link;\r\n return (link.openInNewTab) ? '_blank' : undefined;\r\n }\r\n\r\n // ------------------------------------------------------\r\n // ------------------------------------------------------\r\n private get _slots(): JSX.Element | null {\r\n const slots = this.props.slots.clickableContent;\r\n\r\n if (slots && slots.length) {\r\n return (\r\n <>\r\n {slots.map((slot, index) => (\r\n \r\n {slot}\r\n \r\n ))}\r\n \r\n );\r\n }\r\n\r\n // No slots\r\n return null;\r\n }\r\n}\r\n\r\nexport default ClickableContainer;","/*---------------------------------------------------------------------------------------------\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\nimport { IIframeModuleData } from './iframe-module.data';\r\nimport { IIframeModuleProps } from './iframe-module.props.autogenerated';\r\n\r\n/**\r\n *\r\n * IframeModule component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass IframeModule extends React.PureComponent> {\r\n public render(): JSX.Element | null {\r\n const { config } = this.props;\r\n if(!config.href) {\r\n return null;\r\n }\r\n return (\r\n
\r\n {/* tslint:disable-next-line: react-iframe-missing-sandbox */}\r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default IframeModule;\r\n","import * as React from 'react';\r\n\r\nimport { Image } from '@msdyn365-commerce/core';\r\nimport { IPdpDynamicImageData } from './pdp-dynamic-image.data';\r\nimport { IPdpDynamicImageProps } from './pdp-dynamic-image.props.autogenerated';\r\n\r\n/**\r\n *\r\n * PdpDynamicImage component\r\n * @extends {React.Component>}\r\n */\r\nclass PdpDynamicImage extends React.Component> {\r\n public render(): JSX.Element | null {\r\n const content = this.props.data;\r\n const productAttributes = content && content.product && content.product.result;\r\n if (productAttributes && productAttributes.ItemId) {\r\n const imageUrl = `${this.props.config.imageSearchUrl}${productAttributes.ItemId}_000_sec.png`;\r\n const http = new XMLHttpRequest();\r\n http.open('HEAD', imageUrl, false);\r\n http.send();\r\n if (http.status !== 404) {\r\n return (\r\n
\r\n \r\n
\r\n );\r\n }\r\n }\r\n return null;\r\n }\r\n}\r\n\r\nexport default PdpDynamicImage;\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\nimport { RichTextComponent } from '@msdyn365-commerce/core';\r\nimport * as React from 'react';\r\n\r\nimport { IProductDescriptionData } from './product-description.data';\r\nimport { IProductDescriptionProps } from './product-description.props.autogenerated';\r\n\r\n/**\r\n *\r\n * ProductDescription component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass ProductDescription extends React.PureComponent<\r\n IProductDescriptionProps\r\n > {\r\n private _productAttributeTastingNotes: string = 'TASTING NOTES';\r\n private _productAttributeCookbookDescriptions: string = 'COOKBOOKDESCRIPTION';\r\n public render(): JSX.Element | null {\r\n const content: IProductDescriptionData = this.props.data;\r\n if (\r\n !(\r\n content &&\r\n content.productSpecificationData &&\r\n content.productSpecificationData.result\r\n )\r\n ) {\r\n return null;\r\n }\r\n const productAttributes = content.productSpecificationData.result;\r\n const productAttribute = productAttributes.filter(\r\n attribute =>\r\n attribute.Name!.toUpperCase() === this._productAttributeTastingNotes\r\n );\r\n if (\r\n productAttribute &&\r\n productAttribute.length &&\r\n productAttribute[0].TextValue\r\n ) {\r\n return (\r\n
\r\n \r\n
\r\n );\r\n } else {\r\n const cookbookAttribute = productAttributes.filter(\r\n attribute =>\r\n attribute.Name!.toUpperCase() === this._productAttributeCookbookDescriptions);\r\n if (\r\n cookbookAttribute &&\r\n cookbookAttribute.length &&\r\n cookbookAttribute[0].TextValue\r\n ) {\r\n return (\r\n
\r\n \r\n
\r\n );\r\n }\r\n }\r\n return null;\r\n }\r\n}\r\n\r\nexport default ProductDescription;\r\n","// ==============================================================================\r\n// Extremely simple HTML5 video player that only handles MP4s\r\n//\r\n// This is a less powerful replacement for the ambient-video module.\r\n// ambient-video resets videos to the first frame upon completion, which is\r\n// usually undesirable. For videos that aren't looped, leaving them on the last\r\n// frame is the standard.\r\n//\r\n// A better long-term solution would be to extend both the core Player component\r\n// and the ambient-video module to make the reset to frame 0 optional.\r\n// Given the number of files involved and their locations, that doesn't seem\r\n// to be viable without an SSK update.\r\n// ==============================================================================\r\n\r\nimport * as React from 'react';\r\n\r\nimport { IVideoBackgroundData } from './video-background.data';\r\nimport { IVideoBackgroundProps } from './video-background.props.autogenerated';\r\n\r\n// ==============================================================================\r\n// CLASS DEFINITION\r\n// ==============================================================================\r\n/**\r\n * VideoBackground component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass VideoBackground extends React.PureComponent> {\r\n\r\n // =============================================================================\r\n // PUBLIC METHODS\r\n // =============================================================================\r\n\r\n // --------------------------------------------------------------\r\n // --------------------------------------------------------------\r\n public render(): JSX.Element | null {\r\n const { config } = this.props;\r\n const className = config.className || '';\r\n\r\n let videoUrl = '';\r\n try {\r\n videoUrl = config.video!._links!.binaryReferences![0].sourceHref || '';\r\n } catch(e) {\r\n console.warn('Background Video: No video defined');\r\n }\r\n\r\n // Display the video, if one has been defined\r\n if (videoUrl) {\r\n return (\r\n \r\n );\r\n }\r\n\r\n return null;\r\n }\r\n}\r\n\r\nexport default VideoBackground;","import { RichTextComponent } from '@msdyn365-commerce/core';\r\nimport * as React from 'react';\r\nimport { IWineClubContentData } from './wine-club-content.data';\r\nimport { IWineClubContentProps } from './wine-club-content.props.autogenerated';\r\n\r\n/**\r\n *\r\n * WineClubContent component\r\n * @extends {React.Component>}\r\n */\r\nclass WineClubContent extends React.Component> {\r\n\r\n // ------------------------------------------------------\r\n // ------------------------------------------------------\r\n public render(): JSX.Element | null {\r\n const { config } = this.props;\r\n return (\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default WineClubContent;\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 { IWineFinderByZipData } from './wine-finder-by-zip.data';\r\nimport { IWineFinderByZipProps } from './wine-finder-by-zip.props.autogenerated';\r\n\r\nexport interface IWineFinderByZipViewProps extends IWineFinderByZipProps {\r\n\r\n}\r\n\r\n/**\r\n *\r\n * WineFinderByZip component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass WineFinderByZip 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 WineFinderByZip;\r\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\nimport { observable } from 'mobx';\r\nimport { observer } from 'mobx-react';\r\nimport * as React from 'react';\r\nimport { IWineFinderByZipViewProps } from './wine-finder-by-zip';\r\n\r\n/**\r\n * Class definition responsible for redirecting to findusawine.com to find local wine retailers based on the user inputted zipcode\r\n */\r\n@observer\r\nexport class WineFinderByZipView extends React.Component {\r\n /**\r\n * field representing the location being typed in by the user\r\n */\r\n @observable private _queryZipcode: string = '';\r\n\r\n public constructor(props: IWineFinderByZipViewProps) {\r\n super(props);\r\n this._handleQueryZipcodeChange = this._handleQueryZipcodeChange.bind(this);\r\n this._keyup = this._keyup.bind(this);\r\n this._doQuery = this._doQuery.bind(this);\r\n }\r\n\r\n public render(): JSX.Element | null {\r\n return (\r\n
\r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n\r\n /**\r\n * handles changes for the zipcode entered\r\n */\r\n private _handleQueryZipcodeChange(event: React.ChangeEvent): void {\r\n this._queryZipcode = event.target.value;\r\n }\r\n\r\n /**\r\n * checks if the enter/return key has been pressed to submit a zipcode query\r\n */\r\n private _keyup(event: React.KeyboardEvent): void {\r\n if (event.keyCode === 13 && !this._isInvalid()) {\r\n this._doQuery();\r\n }\r\n }\r\n\r\n /**\r\n * process to disable the Search button if the user's text input is not a 5 digit entry (findusawine.com does not support 9 digit zip codes)\r\n */\r\n private _isInvalid(): boolean {\r\n const regex = /^\\d{5}$/;\r\n return (!regex.test(this._queryZipcode));\r\n }\r\n\r\n /**\r\n * process to send the zip code query to findusawine.com\r\n */\r\n private _doQuery(): void {\r\n window.open(`https://www.findusawine.com/${this.props.config.wineBrandUrl}/locate/domestic-results?location=${this._queryZipcode}&product_key=&header=&retail=true&restaurant=true`, '_blank');\r\n }\r\n\r\n}\r\n\r\nexport default WineFinderByZipView;","/*---------------------------------------------------------------------------------------------\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\n// TODO: Current build require at least one tsx file\r\nexport default () =>
;\r\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\nimport { observable } from 'mobx';\r\nimport { observer } from 'mobx-react';\r\nimport * as React from 'react';\r\nimport * as ReactDOM from 'react-dom';\r\nimport { IWineFinderByZipViewProps } from '../../../modules/wine-finder-by-zip/./wine-finder-by-zip';\r\n\r\n/**\r\n * Class definition responsible for redirecting to findusawine.com to find local wine retailers based on the user inputted zipcode\r\n */\r\n@observer\r\nexport class WineFinderByZipView extends React.PureComponent {\r\n /**\r\n * field representing the location being typed in by the user\r\n */\r\n @observable private _queryZipcode: string = '';\r\n\r\n public constructor(props: IWineFinderByZipViewProps) {\r\n super(props);\r\n this._handleQueryZipcodeChange = this._handleQueryZipcodeChange.bind(this);\r\n this._doQuery = this._doQuery.bind(this);\r\n this._handleHowToBuyNav = this._handleHowToBuyNav.bind(this);\r\n this._keyup = this._keyup.bind(this);\r\n this._smoothVerticalScrolling = this._smoothVerticalScrolling.bind(this);\r\n this._scrollingHelper = this._scrollingHelper.bind(this);\r\n }\r\n\r\n public componentDidMount(): void {\r\n window.addEventListener('hashchange', this._handleHowToBuyNav);\r\n // remove includes statment before going live (only check for location hash)\r\n if (this.props.context.request.url.requestUrl.search.includes('divId=how-to-buy') || location.hash === '#how-to-buy') {\r\n this._handleHowToBuyNav();\r\n }\r\n }\r\n\r\n public componentWillUnmount(): void {\r\n window.removeEventListener('hashchange', this._handleHowToBuyNav);\r\n }\r\n\r\n public render(): JSX.Element | null {\r\n return (\r\n
\r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n\r\n /**\r\n * handles changes for the zipcode entered\r\n */\r\n private _handleQueryZipcodeChange(event: React.ChangeEvent): void {\r\n this._queryZipcode = event.target.value;\r\n }\r\n\r\n /**\r\n * checks if the enter/return key has been pressed to submit a zipcode query\r\n */\r\n private _keyup(event: React.KeyboardEvent): void {\r\n if (event.keyCode === 13 && !this._isInvalid()) {\r\n this._doQuery();\r\n }\r\n }\r\n\r\n /**\r\n * process to disable the Search button if the user's text input is not a 5 digit entry (findusawine.com does not support 9 digit zip codes)\r\n */\r\n private _isInvalid(): boolean {\r\n const regex = /^\\d{5}$/;\r\n return (!regex.test(this._queryZipcode));\r\n }\r\n\r\n /**\r\n * process to send the zip code query to findusawine.com\r\n */\r\n private _doQuery(): void {\r\n window.open(`https://www.findusawine.com/${this.props.config.wineBrandUrl}/locate/domestic-results?location=${this._queryZipcode}&product_key=&header=&retail=true&restaurant=true`, '_blank');\r\n }\r\n\r\n /**\r\n * handles navigation to the #how-to-buy anchor tag (to be slightly modified before going live)\r\n */\r\n private _handleHowToBuyNav(): void {\r\n if (location.hash === '#how-to-buy' || !location.hash) {\r\n // eslint-disable-next-line react/no-find-dom-node\r\n const parentContainer = ReactDOM.findDOMNode(this)!.parentNode as Element;\r\n this._smoothVerticalScrolling(parentContainer, 300, 'top');\r\n // following if statement to be removed. only required while we utilize a query parameter for how-to-buy\r\n if (this.props.context.request.url.requestUrl.search.includes('divId=how-to-buy')) {\r\n history.pushState({}, '', `${this.props.context.request.url.requestUrl.origin}/?domain=www.h3wines.com`);\r\n } else {\r\n history.pushState('', document.title, window.location.pathname + window.location.search);\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * custom process to scroll to an element (since smooth scrolling with window.ScrollTo is not supported by Safari and IE)\r\n */\r\n private _smoothVerticalScrolling(e: Element, time: number, where: string): void {\r\n const eTop = e.getBoundingClientRect().top;\r\n const eAmt = eTop / 100;\r\n let curTime = 0;\r\n while (curTime <= time) {\r\n window.setTimeout(this._scrollingHelper, curTime, eAmt, where);\r\n curTime += time / 100;\r\n }\r\n }\r\n\r\n /**\r\n * helper process for _SmoothVerticalScrolling\r\n */\r\n private _scrollingHelper(eAmt: number, where: string): void {\r\n if (where === 'center' || where === '') {\r\n window.scrollBy(0, eAmt / 2);\r\n }\r\n if (where === 'top') {\r\n window.scrollBy(0, eAmt / 1.044);\r\n }\r\n }\r\n\r\n}\r\n\r\nexport default WineFinderByZipView;","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\nimport { observable } from 'mobx';\r\nimport { observer } from 'mobx-react';\r\nimport * as React from 'react';\r\nimport * as ReactDOM from 'react-dom';\r\nimport { IWineFinderByZipViewProps } from '../../../modules/wine-finder-by-zip/./wine-finder-by-zip';\r\n\r\n/**\r\n * Class definition responsible for redirecting to findusawine.com to find local wine retailers based on the user inputted zipcode\r\n */\r\n@observer\r\nexport class WineFinderByZipView extends React.PureComponent {\r\n /**\r\n * field representing the location being typed in by the user\r\n */\r\n @observable private _queryZipcode: string = '';\r\n\r\n public constructor(props: IWineFinderByZipViewProps) {\r\n super(props);\r\n this._handleQueryZipcodeChange = this._handleQueryZipcodeChange.bind(this);\r\n this._doQuery = this._doQuery.bind(this);\r\n this._handleHowToBuyNav = this._handleHowToBuyNav.bind(this);\r\n this._keyup = this._keyup.bind(this);\r\n this._smoothVerticalScrolling = this._smoothVerticalScrolling.bind(this);\r\n this._scrollingHelper = this._scrollingHelper.bind(this);\r\n }\r\n\r\n public componentDidMount(): void {\r\n window.addEventListener('hashchange', this._handleHowToBuyNav);\r\n // remove includes statment before going live (only check for location hash)\r\n if (this.props.context.request.url.requestUrl.search.includes('divId=how-to-buy') || location.hash === '#how-to-buy') {\r\n this._handleHowToBuyNav();\r\n }\r\n }\r\n\r\n public componentWillUnmount(): void {\r\n window.removeEventListener('hashchange', this._handleHowToBuyNav);\r\n }\r\n\r\n public render(): JSX.Element | null {\r\n return (\r\n
\r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n\r\n /**\r\n * handles changes for the zipcode entered\r\n */\r\n private _handleQueryZipcodeChange(event: React.ChangeEvent): void {\r\n this._queryZipcode = event.target.value;\r\n }\r\n\r\n /**\r\n * checks if the enter/return key has been pressed to submit a zipcode query\r\n */\r\n private _keyup(event: React.KeyboardEvent): void {\r\n if (event.keyCode === 13 && !this._isInvalid()) {\r\n this._doQuery();\r\n }\r\n }\r\n\r\n /**\r\n * process to disable the Search button if the user's text input is not a 5 digit entry (findusawine.com does not support 9 digit zip codes)\r\n */\r\n private _isInvalid(): boolean {\r\n const regex = /^\\d{5}$/;\r\n return (!regex.test(this._queryZipcode));\r\n }\r\n\r\n /**\r\n * process to send the zip code query to findusawine.com\r\n */\r\n private _doQuery(): void {\r\n window.open(`https://www.findusawine.com/${this.props.config.wineBrandUrl}/locate/domestic-results?location=${this._queryZipcode}&product_key=&header=&retail=true&restaurant=true`, '_blank');\r\n }\r\n\r\n /**\r\n * handles navigation to the #how-to-buy anchor tag (to be slightly modified before going live)\r\n */\r\n private _handleHowToBuyNav(): void {\r\n if (location.hash === '#how-to-buy' || !location.hash) {\r\n // eslint-disable-next-line react/no-find-dom-node\r\n const parentContainer = ReactDOM.findDOMNode(this)!.parentNode as Element;\r\n this._smoothVerticalScrolling(parentContainer, 300, 'top');\r\n // following if statement to be removed. only required while we utilize a query parameter for how-to-buy\r\n if (this.props.context.request.url.requestUrl.search.includes('divId=how-to-buy')) {\r\n history.pushState({}, '', `${this.props.context.request.url.requestUrl.origin}/?domain=www.h3wines.com`);\r\n } else {\r\n history.pushState('', document.title, window.location.pathname + window.location.search);\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * custom process to scroll to an element (since smooth scrolling with window.ScrollTo is not supported by Safari and IE)\r\n */\r\n private _smoothVerticalScrolling(e: Element, time: number, where: string): void {\r\n const eTop = e.getBoundingClientRect().top;\r\n const eAmt = eTop / 100;\r\n let curTime = 0;\r\n while (curTime <= time) {\r\n window.setTimeout(this._scrollingHelper, curTime, eAmt, where);\r\n curTime += time / 100;\r\n }\r\n }\r\n\r\n /**\r\n * helper process for _SmoothVerticalScrolling\r\n */\r\n private _scrollingHelper(eAmt: number, where: string): void {\r\n if (where === 'center' || where === '') {\r\n window.scrollBy(0, eAmt / 2);\r\n }\r\n if (where === 'top') {\r\n window.scrollBy(0, eAmt / 1.044);\r\n }\r\n }\r\n\r\n}\r\n\r\nexport default WineFinderByZipView;","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\nimport { observable } from 'mobx';\r\nimport { observer } from 'mobx-react';\r\nimport * as React from 'react';\r\nimport { IWineFinderByZipViewProps } from '../../../modules/wine-finder-by-zip/./wine-finder-by-zip';\r\n\r\n/**\r\n * Class definition responsible for redirecting to findusawine.com to find local wine retailers based on the user inputted zipcode\r\n */\r\n@observer\r\nexport class WineFinderByZipView extends React.PureComponent {\r\n /**\r\n * field representing the location being typed in by the user\r\n */\r\n @observable private _queryZipcode: string = '';\r\n\r\n public constructor(props: IWineFinderByZipViewProps) {\r\n super(props);\r\n this._handleQueryZipcodeChange = this._handleQueryZipcodeChange.bind(this);\r\n this._keyup = this._keyup.bind(this);\r\n this._doQuery = this._doQuery.bind(this);\r\n }\r\n\r\n public render(): JSX.Element | null {\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 * handles changes for the zipcode entered\r\n */\r\n private _handleQueryZipcodeChange(event: React.ChangeEvent): void {\r\n this._queryZipcode = event.target.value;\r\n }\r\n\r\n /**\r\n * checks if the enter/return key has been pressed to submit a zipcode query\r\n */\r\n private _keyup(event: React.KeyboardEvent): void {\r\n if (event.keyCode === 13 && !this._isInvalid()) {\r\n this._doQuery();\r\n }\r\n }\r\n\r\n /**\r\n * process to disable the Search button if the user's text input is not a 5 digit entry (findusawine.com does not support 9 digit zip codes)\r\n */\r\n private _isInvalid(): boolean {\r\n const regex = /^\\d{5}$/;\r\n return (!regex.test(this._queryZipcode));\r\n }\r\n\r\n /**\r\n * process to send the zip code query to findusawine.com\r\n */\r\n private _doQuery(): void {\r\n window.open(`https://www.findusawine.com/${this.props.config.wineBrandUrl}/locate/domestic-results?location=${this._queryZipcode}&product_key=&header=&retail=true&restaurant=true`, '_blank');\r\n }\r\n\r\n}\r\n\r\nexport default WineFinderByZipView;","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\nimport * as React from 'react';\r\n\r\n /**\r\n * CoreComponent component\r\n * @extends {React.PureComponent}\r\n */\r\n\r\nclass SpringValleyVineyard extends React.PureComponent {\r\n constructor(props: {}) {\r\n super(props);\r\n }\r\n\r\n public render(): JSX.Element | null {\r\n return `;\n\n return React.createElement(SDK_FRAGMENT_NAME, { key: this.props.id, dangerouslySetInnerHTML: { __html: scriptHtml } });\n }\n}\n\nexport default DefaultExternalScript;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { isNonceEnabled, SDK_FRAGMENT_NAME } from '@msdyn365-commerce/core-internal';\nimport * as React from 'react';\nimport { isAbsoluteUrl, isRelativeUrl, logDebug, logError } from '../../utils/script-utils';\nimport { IDefaultInlineScriptProps } from './default-inline-script.props.autogenerated';\n\n/**\n *\n * DefaultScript\n * @extends {React.PureComponent>}\n */\nclass DefaultInlineScript extends React.PureComponent> {\n constructor(props: IDefaultInlineScriptProps<{}>) {\n super(props);\n }\n\n public render(): JSX.Element | null {\n const { config } = this.props;\n logDebug(`Adding script tags for '${this.props.id}/${this.props.typeName}'`, this.props.telemetry);\n const source = config.inlineScript;\n\n if (!source || source === '' || isAbsoluteUrl(source) || isRelativeUrl(source)) {\n logError(\n 'Invalid inline script - Empty inline source defined or a url is being used as a source. Use default-external-script to load scripts from an external or relative url.',\n this.props.telemetry\n );\n return null;\n }\n\n if (source.includes('')) {\n logError('Invalid inline script - inline script should not contain html tags', this.props.telemetry);\n return null;\n }\n\n const nonceToken = this.props.context && isNonceEnabled(this.props.context.request);\n const scriptHtml = ``;\n return React.createElement(SDK_FRAGMENT_NAME, { key: this.props.id, dangerouslySetInnerHTML: { __html: scriptHtml } });\n }\n}\n\nexport default DefaultInlineScript;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { SDK_FRAGMENT_NAME } from '@msdyn365-commerce/core-internal';\nimport * as React from 'react';\nimport { isAbsoluteUrl, isRelativeUrl, logDebug, logError } from '../../utils/script-utils';\nimport { IDefaultInlineStyleProps } from './default-inline-style.props.autogenerated';\n\n/**\n *\n * DefaultStyle\n * @extends {React.PureComponent>}\n */\n\nconst DefaultInlineStyle = (props: IDefaultInlineStyleProps<{}>) => {\n const { config, id, typeName, telemetry } = props;\n logDebug(`Adding style tags for '${id}/${typeName}'`, telemetry);\n const source = config.inlineStyle;\n\n if (!source || source === '' || isAbsoluteUrl(source) || isRelativeUrl(source)) {\n logError('Invalid inline style - Empty inline source defined or a url is being used as a source.', telemetry);\n return null;\n }\n\n if (source.includes('')) {\n logError('Invalid inline style - inline style should not contain html tags', telemetry);\n return null;\n }\n\n const styleHtml = ``;\n return React.createElement(SDK_FRAGMENT_NAME, { key: id, dangerouslySetInnerHTML: { __html: styleHtml } });\n};\n\nexport default DefaultInlineStyle;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { IInternalTelemetry, LogLevel } from '@msdyn365-commerce/telemetry-internal';\n\nexport const logDebug = (debugMessage: string, telemetry: IInternalTelemetry | undefined): void => {\n telemetry && telemetry.log(LogLevel.Debug, debugMessage);\n};\n\nexport const logError = (errorMessage: string, telemetry: IInternalTelemetry | undefined): void => {\n telemetry && telemetry.log(LogLevel.Error, errorMessage);\n};\n\n/**\n * Returns true if the given string matches an URL pattern\n *\n * @param source The string to check against\n */\nexport const isAbsoluteUrl = (source: string): boolean => {\n // eslint-disable-next-line security/detect-unsafe-regex\n return /^(http|https):\\/\\/(\\w+:{0,1}\\w*@)?(\\S+)(:[0-9]+)?(\\/|\\/([\\w#!:.?+=&%@!\\-\\/]))?$/.test(source);\n};\n\nexport const isRelativeUrl = (source: string): boolean => {\n return /^(?!www\\.|(?:http|ftp)s?:\\/\\/|[A-Za-z]:\\\\|\\/\\/).*(\\.js){1}$/.test(source);\n};\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport * as MsDyn365 from '@msdyn365-commerce/core';\nimport classnames from 'classnames';\nimport * as React from 'react';\n\nimport { ITextBlockProps } from './text-block.props.autogenerated';\n\nexport interface ITextBlockViewProps extends ITextBlockProps<{}> {\n paragraph?: React.ReactNode;\n className?: string;\n}\n\n/**\n *\n * TextBlock component.\n */\nclass TextBlock extends React.PureComponent> {\n public render(): JSX.Element | null {\n const { paragraph, className } = this.props.config;\n const text = paragraph && (\n \n );\n const textBlockViewProps = {\n ...this.props,\n paragraph: text,\n className: classnames('ms-text-block', className)\n };\n return this.props.renderView(textBlockViewProps) as React.ReactElement;\n }\n\n public handleTextChange = (event: MsDyn365.ContentEditableEvent) => (this.props.config.paragraph = event.target.value);\n}\nexport default TextBlock;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport * as React from 'react';\n\nimport { ITextBlockViewProps } from './text-block';\n\nconst TextBlockView: React.FC = props => (\n
\n {props.paragraph}\n
\n);\n\nexport default TextBlockView;\n"],"names":["ClickableContainer","React","render","config","link","className","this","props","classname","href","linkUrl","destinationUrl","target","_target","ariaLabel","_slots","openInNewTab","undefined","slots","clickableContent","length","map","slot","index","key","IframeModule","src","width","height","PdpDynamicImage","content","data","productAttributes","product","result","ItemId","imageUrl","imageSearchUrl","http","XMLHttpRequest","open","send","status","Image","gridSettings","context","request","imageSettings","altText","Name","ProductDescription","constructor","_productAttributeTastingNotes","_productAttributeCookbookDescriptions","productSpecificationData","productAttribute","filter","attribute","toUpperCase","TextValue","RichTextComponent","text","cookbookAttribute","VideoBackground","videoUrl","video","_links","binaryReferences","sourceHref","e","console","warn","autoPlay","muted","loop","type","WineClubContent","leftRichText","wineClubPhoneNumber","rightRichText","WineFinderByZip","renderView","WineFinderByZipView","super","_queryZipcode","_handleQueryZipcodeChange","bind","_keyup","_doQuery","htmlFor","id","placeholder","value","onChange","onKeyUp","disabled","_isInvalid","onClick","event","keyCode","test","window","wineBrandUrl","__decorate","observable","observer","_handleHowToBuyNav","_smoothVerticalScrolling","_scrollingHelper","componentDidMount","addEventListener","url","requestUrl","search","includes","location","hash","componentWillUnmount","removeEventListener","parentContainer","ReactDOM","parentNode","history","pushState","origin","document","title","pathname","time","where","eAmt","getBoundingClientRect","top","curTime","setTimeout","scrollBy","SpringValleyVineyard","DefaultExternalScript","logDebug","typeName","telemetry","source","scriptSource","relativeBaseUrl","staticCdnUrl","msdyn365Commerce","getEnvironmentVariable","isRelativeUrl","path","isAbsoluteUrl","logError","scriptHtml","async","defer","SDK_FRAGMENT_NAME","dangerouslySetInnerHTML","__html","DefaultInlineScript","inlineScript","nonceToken","isNonceEnabled","inlineStyle","styleHtml","debugMessage","log","LogLevel","Debug","errorMessage","Error","TextBlock","handleTextChange","paragraph","MsDyn365","editProps","onEdit","requestContext","textBlockViewProps","_objectSpread","classnames","Object","assign","renderModuleAttributes"],"sourceRoot":""}