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EAAM8I,MAAM6B,oBAAY,IAAAH,OAAA,EAAxBA,EAA0BjJ,QAKlCvB,EAAMK,SAGfV,EAAAA,cAACC,EAAAA,KAAIC,OAAAC,OAAA,GAAKkG,GAAqBiE,EAAkBjK,IACjDL,EAAAA,cAACC,EAAAA,KAAIC,OAAAC,OAAA,GAAKgG,GACNnG,EAAAA,cAACC,EAAAA,KAAIC,OAAAC,OAAA,GAAKqB,GACLD,GAAaP,EACbO,GA/PIA,CAAAA,IAErB,MAAM,eAAE5B,EAAc,WAAE0F,EAAU,OAAEC,GAAW/D,EAE/C,OACIvB,EAAAA,cAACC,EAAAA,KAAIC,OAAAC,OAAA,GAAKR,GACL0F,EACAC,IAwPqB4F,CAAgB3J,OAYrCoE,EACTtF,IAEA,MAAM,UAAEuF,EAAS,gBAAEC,EAAe,YAAEC,GAAgBzF,EAC9C8K,EAAqB9C,EAAAA,EAAA,GAAsBzC,GAAS,IAAEpF,MAAOH,EAAMqI,UAAU0C,sBACnF,OACIpL,EAAAA,cAACgG,EAAAA,OAAM9F,OAAAC,OAAA,GAAKgL,GACPtF,EACAC,GAAe6E,EAAqBtK,KAKjD,WCtTAgL,EAAOC,QAAUtL,cCAjBqL,EAAOC,QAAUC","sources":["webpack://bju-press/./src/themes/base/views/quickview.view.tsx?dcc6","webpack://bju-press/./src/themes/christian-school/views/quickview.view.tsx?47d1","webpack://bju-press/./lib/quickview/module-registration.js?f71d","webpack://bju-press/./src/modules/adventureworks/views/quickview.view.tsx?8e29","webpack://bju-press/external var \"React\"?0d3b","webpack://bju-press/external var \"ReactDOM\"?853b"],"sourcesContent":["/*!\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 { Module, Node } from '@msdyn365-commerce-modules/utilities';\r\nimport * as React from 'react';\r\n\r\nimport {\r\n IBuyboxAddToCartViewProps,\r\n IBuyboxAddToWishlistViewProps,\r\n IBuyboxKeyInPriceViewProps,\r\n IBuyboxProductConfigureDropdownViewProps,\r\n IBuyboxProductConfigureViewProps,\r\n IBuyboxProductQuantityViewProps\r\n} from '@msdyn365-commerce-modules/buybox';\r\nimport { IQuickviewViewProps } from '@msdyn365-commerce-modules/buybox';\r\n\r\n//----------------------------------------------------------\r\n// @CUSTOM: Imports for customizations\r\n//----------------------------------------------------------\r\nimport { clsHelper } from '../../../utilities/class-name-helper';\r\nimport { labelResources } from '../../../utilities/global-constants';\r\nimport { convertProductAttributes, convertCustomerAttributes, AttributesWithMetadata } from '../../../utilities/data-attribute-parser';\r\n\r\nimport { getCatalogId } from '@msdyn365-commerce/core';\r\nimport { searchByCriteriaAsync } from '@msdyn365-commerce/retail-proxy/dist/DataActions/ProductsDataActions.g';\r\n\r\nimport { IQuickviewProps } from '../definition-extensions/quickview.ext.props.autogenerated';\r\nimport { AddToCartComponent } from './components/addtocart.component';\r\nimport { attrNames } from '../../../utilities/global-constants';\r\n\r\nimport { RichTextComponent } from '@msdyn365-commerce/core';\r\n//----------------------------------------------------------\r\n\r\n//----------------------------------------------------------\r\n// @CUSTOM: Class name utility for customizations that\r\n// want to use the same base class\r\n//----------------------------------------------------------\r\nconst BASE_CLASS = 'ms-quickView';\r\nconst cls = (fragment?: string) => clsHelper(BASE_CLASS, fragment);\r\n//----------------------------------------------------------\r\n\r\nconst _renderAddToCart = (addToCart: IBuyboxAddToCartViewProps): JSX.Element => {\r\n const { ContainerProps, errorBlock, button } = addToCart;\r\n const buttonProps = React.isValidElement(addToCart.button) && addToCart.button.props;\r\n\r\n return (\r\n \r\n {errorBlock}\r\n {button && }\r\n \r\n );\r\n};\r\n\r\nconst _renderAddToWishlist = (addToWishlist: IBuyboxAddToWishlistViewProps): JSX.Element => {\r\n const { ContainerProps, errorBlock, button } = addToWishlist;\r\n\r\n return (\r\n \r\n {errorBlock}\r\n {button}\r\n \r\n );\r\n};\r\n\r\nconst _renderConfigureDropdown = (dropdown: IBuyboxProductConfigureDropdownViewProps): JSX.Element => {\r\n const { ContainerProps, LabelContainerProps, heading, errors, select } = dropdown;\r\n\r\n return (\r\n \r\n \r\n {heading}\r\n {errors}\r\n \r\n {select}\r\n \r\n );\r\n};\r\n\r\nconst _renderQuickViewPopup = (props: IQuickviewViewProps & IQuickviewProps<{}>): JSX.Element => { // @CUSTOM: Added extended definition props\r\n const {\r\n ModalContainer,\r\n ModalHeaderContainer,\r\n ModalFooterContainer,\r\n ModalHeaderContent,\r\n ModalBodyContainer,\r\n // @CUSTOM: Moved below nodes to the body\r\n // addToWishlist,\r\n // addToCart,\r\n // cartContainerProps\r\n } = props;\r\n\r\n return (\r\n \r\n {ModalHeaderContent}\r\n \r\n {_renderBodyContent(props)}\r\n \r\n \r\n {/* @CUSTOM: Moved the below TSX to the body */}\r\n {/* \r\n {addToCart && _renderAddToCart(addToCart)}\r\n {addToWishlist && _renderAddToWishlist(addToWishlist)}\r\n */}\r\n \r\n \r\n );\r\n};\r\n\r\nconst _renderQuantity = (quantity: IBuyboxProductQuantityViewProps, quantityLimitsMessages: React.ReactNode): JSX.Element => {\r\n const { ContainerProps, LabelContainerProps, heading, input, errors } = quantity;\r\n\r\n return (\r\n \r\n \r\n {heading}\r\n {errors}\r\n \r\n {input}\r\n {quantityLimitsMessages}\r\n \r\n );\r\n};\r\n\r\nconst _renderKeyInPrice = (keyInPrice: IBuyboxKeyInPriceViewProps): JSX.Element => {\r\n const { ContainerProps, LabelContainerProps, heading, input } = keyInPrice;\r\n\r\n return (\r\n \r\n {heading}\r\n {input}\r\n \r\n );\r\n};\r\n\r\nconst _renderConfigure = (configure: IBuyboxProductConfigureViewProps): JSX.Element => {\r\n const { ContainerProps, dropdowns } = configure;\r\n\r\n return {dropdowns.map(_renderConfigureDropdown)};\r\n};\r\n\r\nconst _renderBodyContent = (props: IQuickviewViewProps & IQuickviewProps<{}>): JSX.Element => { // @CUSTOM: Added extended definition props\r\n const {\r\n title,\r\n price,\r\n rating,\r\n keyInPrice,\r\n quantity,\r\n configure,\r\n inventoryLabel,\r\n quantityLimitsMessages,\r\n seeDetailsbutton,\r\n loading,\r\n ProductInfoContainerProps,\r\n MediaGalleryContainerProps,\r\n CarouselProps,\r\n unitOfMeasure,\r\n // @CUSTOM: Added the nodes below from the footer\r\n addToWishlist,\r\n addToCart,\r\n cartContainerProps\r\n } = props;\r\n if (loading) {\r\n return <>{loading};\r\n }\r\n //------------------------------------------------------\r\n // @CUSTOM: Getting product item ID for SKU display\r\n //------------------------------------------------------\r\n const product = props.productDetails?.product;\r\n const itemId = product?.ItemId;\r\n const skuDisplay = itemId && (\r\n
\r\n {labelResources.sku}\r\n {itemId}\r\n
\r\n );\r\n //------------------------------------------------------\r\n\r\n //------------------------------------------------------\r\n // @CUSTOM: Getting product attributes for product\r\n // description display, uses itemId from above\r\n //------------------------------------------------------\r\n const [productAttr, productAttrLoaded] = React.useState({} as AttributesWithMetadata);\r\n itemId && React.useEffect(() => {\r\n const productAttributesInput = {\r\n ItemIds: [{ ItemId: itemId }],\r\n IncludeProductsFromDescendantCategories: false,\r\n SkipVariantExpansion: true,\r\n IncludeAttributes: true,\r\n Context: {\r\n ChannelId: props.context.request.apiSettings.channelId,\r\n CatalogId: getCatalogId(props.context.request)\r\n },\r\n };\r\n\r\n searchByCriteriaAsync({ callerContext: props.context.actionContext }, productAttributesInput).then((products) => {\r\n if (products.length) {\r\n const productSpecificationData = products[0].AttributeValues;\r\n const productAttributes = productSpecificationData && convertProductAttributes(productSpecificationData) || {};\r\n productAttrLoaded(productAttributes);\r\n }\r\n });\r\n }, []);\r\n\r\n const description = props.config.descriptionOverride && productAttr[props.config.descriptionOverride] || product?.Description;\r\n const descriptionDisplay = description &&

{description}

;\r\n //------------------------------------------------------\r\n\r\n\r\n //------------------------------------------------------\r\n // @CUSTOM: Getting license data for blocking\r\n // duplicate purchase of license\r\n //------------------------------------------------------\r\n const customerData = props.data?.customerInformation?.result?.Attributes;\r\n const customerAttributes = customerData && convertCustomerAttributes(customerData);\r\n\r\n const isLicense = productAttr && (productAttr[attrNames.productType] === attrNames.troveAnnualLicense);\r\n const licenseParticipant = customerAttributes && customerAttributes[attrNames.troveParticipant];\r\n\r\n const licenseDuplicate = (isLicense && licenseParticipant);\r\n //------------------------------------------------------\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n {title}\r\n {/* @CUSTOM: Description Display */}\r\n {descriptionDisplay}\r\n {/* @CUSTOM: SKU Display */}\r\n {skuDisplay}\r\n {/* @CUSTOM: Moved seeDetailsbutton from above inventoryLabel */}\r\n {seeDetailsbutton}\r\n {price}\r\n {unitOfMeasure}\r\n {rating}\r\n {configure && _renderConfigure(configure)}\r\n {keyInPrice && _renderKeyInPrice(keyInPrice)}\r\n {inventoryLabel}\r\n\r\n {/* @CUSTOM: Duplicate license warning */}\r\n {licenseDuplicate && (\r\n
\r\n \r\n
\r\n )}\r\n\r\n {/* @CUSTOM: Added the node below from the footer, and added the quantity that used to be below keyInPrice inside the node below */}\r\n \r\n {!licenseDuplicate &&
\r\n {quantity && _renderQuantity(quantity, quantityLimitsMessages)}\r\n {addToCart && _renderAddToCart(addToCart)}\r\n {addToWishlist && _renderAddToWishlist(addToWishlist)}\r\n
}\r\n
\r\n
\r\n \r\n );\r\n};\r\n\r\n/**\r\n * Functional component which renders quick view button and popup based by the given props file.\r\n * @param {IQuickviewViewProps} props - Configuration for the quick view component.\r\n * @returns {React.FC} - Functional component of the quick view.\r\n */\r\nexport const QuickViewFunctionalComponent: React.FC> = (props: IQuickviewViewProps & IQuickviewProps<{}>) => { // @CUSTOM: Added extended definition props\r\n const { quickView, quickViewButton, isModalOpen, isMobileDevice } = props;\r\n return (\r\n \r\n {!isMobileDevice && quickViewButton}\r\n {isModalOpen && _renderQuickViewPopup(props)}\r\n \r\n );\r\n};\r\n\r\nexport default QuickViewFunctionalComponent;\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 { Module, Node } from '@msdyn365-commerce-modules/utilities';\r\nimport * as React from 'react';\r\n\r\nimport {\r\n IBuyboxAddToCartViewProps,\r\n IBuyboxAddToWishlistViewProps,\r\n IBuyboxKeyInPriceViewProps,\r\n IBuyboxProductConfigureDropdownViewProps,\r\n IBuyboxProductConfigureViewProps,\r\n IBuyboxProductQuantityViewProps\r\n} from '@msdyn365-commerce-modules/buybox';\r\nimport { IQuickviewViewProps } from '@msdyn365-commerce-modules/buybox';\r\n\r\n//----------------------------------------------------------\r\n// @CUSTOM: Imports for customizations\r\n//----------------------------------------------------------\r\nimport { clsHelper } from '../../../utilities/class-name-helper';\r\nimport { labelResources } from '../../../utilities/global-constants';\r\nimport { convertProductAttributes, convertCustomerAttributes, AttributesWithMetadata } from '../../../utilities/data-attribute-parser';\r\n\r\nimport { getCatalogId } from '@msdyn365-commerce/core';\r\nimport { searchByCriteriaAsync } from '@msdyn365-commerce/retail-proxy/dist/DataActions/ProductsDataActions.g';\r\n\r\nimport { IQuickviewProps } from '../definition-extensions/quickview.ext.props.autogenerated';\r\nimport { AddToCartComponent } from '../../base/views/components/addtocart.component';\r\nimport { attrNames } from '../../../utilities/global-constants';\r\n\r\nimport { RichTextComponent } from '@msdyn365-commerce/core';\r\n//----------------------------------------------------------\r\n\r\n//----------------------------------------------------------\r\n// @CUSTOM: Class name utility for customizations that\r\n// want to use the same base class\r\n//----------------------------------------------------------\r\nconst BASE_CLASS = 'ms-quickView';\r\nconst cls = (fragment?: string) => clsHelper(BASE_CLASS, fragment);\r\n//----------------------------------------------------------\r\n\r\nconst _renderAddToCart = (addToCart: IBuyboxAddToCartViewProps): JSX.Element => {\r\n const { ContainerProps, errorBlock, button } = addToCart;\r\n const buttonProps = React.isValidElement(addToCart.button) && addToCart.button.props;\r\n\r\n return (\r\n \r\n {errorBlock}\r\n {button && }\r\n \r\n );\r\n};\r\n\r\nconst _renderAddToWishlist = (addToWishlist: IBuyboxAddToWishlistViewProps): JSX.Element => {\r\n const { ContainerProps, errorBlock, button } = addToWishlist;\r\n\r\n return (\r\n \r\n {errorBlock}\r\n {button}\r\n \r\n );\r\n};\r\n\r\nconst _renderConfigureDropdown = (dropdown: IBuyboxProductConfigureDropdownViewProps): JSX.Element => {\r\n const { ContainerProps, LabelContainerProps, heading, errors, select } = dropdown;\r\n\r\n return (\r\n \r\n \r\n {heading}\r\n {errors}\r\n \r\n {select}\r\n \r\n );\r\n};\r\n\r\nconst _renderQuickViewPopup = (props: IQuickviewViewProps & IQuickviewProps<{}>): JSX.Element => { // @CUSTOM: Added extended definition props\r\n const {\r\n ModalContainer,\r\n ModalHeaderContainer,\r\n ModalFooterContainer,\r\n ModalHeaderContent,\r\n ModalBodyContainer,\r\n // @CUSTOM: Moved below nodes to the body\r\n // addToWishlist,\r\n // addToCart,\r\n // cartContainerProps\r\n } = props;\r\n\r\n return (\r\n \r\n {ModalHeaderContent}\r\n \r\n {_renderBodyContent(props)}\r\n \r\n \r\n {/* @CUSTOM: Moved the below TSX to the body */}\r\n {/* \r\n {addToCart && _renderAddToCart(addToCart)}\r\n {addToWishlist && _renderAddToWishlist(addToWishlist)}\r\n */}\r\n \r\n \r\n );\r\n};\r\n\r\nconst _renderQuantity = (quantity: IBuyboxProductQuantityViewProps, quantityLimitsMessages: React.ReactNode): JSX.Element => {\r\n const { ContainerProps, LabelContainerProps, heading, input, errors } = quantity;\r\n\r\n return (\r\n \r\n \r\n {heading}\r\n {errors}\r\n \r\n {input}\r\n {quantityLimitsMessages}\r\n \r\n );\r\n};\r\n\r\nconst _renderKeyInPrice = (keyInPrice: IBuyboxKeyInPriceViewProps): JSX.Element => {\r\n const { ContainerProps, LabelContainerProps, heading, input } = keyInPrice;\r\n\r\n return (\r\n \r\n {heading}\r\n {input}\r\n \r\n );\r\n};\r\n\r\nconst _renderConfigure = (configure: IBuyboxProductConfigureViewProps): JSX.Element => {\r\n const { ContainerProps, dropdowns } = configure;\r\n\r\n return {dropdowns.map(_renderConfigureDropdown)};\r\n};\r\n\r\nconst _renderBodyContent = (props: IQuickviewViewProps & IQuickviewProps<{}>): JSX.Element => { // @CUSTOM: Added extended definition props\r\n const {\r\n title,\r\n price,\r\n rating,\r\n keyInPrice,\r\n quantity,\r\n configure,\r\n inventoryLabel,\r\n quantityLimitsMessages,\r\n seeDetailsbutton,\r\n loading,\r\n ProductInfoContainerProps,\r\n MediaGalleryContainerProps,\r\n CarouselProps,\r\n unitOfMeasure,\r\n // @CUSTOM: Added the nodes below from the footer\r\n addToWishlist,\r\n addToCart,\r\n cartContainerProps\r\n } = props;\r\n if (loading) {\r\n return <>{loading};\r\n }\r\n //------------------------------------------------------\r\n // @CUSTOM: Getting product item ID for SKU display\r\n //------------------------------------------------------\r\n const product = props.productDetails?.product;\r\n const itemId = product?.ItemId;\r\n const skuDisplay = itemId && (\r\n
\r\n {labelResources.sku}\r\n {itemId}\r\n
\r\n );\r\n //------------------------------------------------------\r\n\r\n //------------------------------------------------------\r\n // @CUSTOM: Getting product attributes for product\r\n // description display, uses itemId from above\r\n //------------------------------------------------------\r\n const [productAttr, productAttrLoaded] = React.useState({} as AttributesWithMetadata);\r\n itemId && React.useEffect(() => {\r\n const productAttributesInput = {\r\n ItemIds: [{ ItemId: itemId }],\r\n IncludeProductsFromDescendantCategories: false,\r\n SkipVariantExpansion: true,\r\n IncludeAttributes: true,\r\n Context: {\r\n ChannelId: props.context.request.apiSettings.channelId,\r\n CatalogId: getCatalogId(props.context.request)\r\n },\r\n };\r\n\r\n searchByCriteriaAsync({ callerContext: props.context.actionContext }, productAttributesInput).then((products) => {\r\n if (products.length) {\r\n const productSpecificationData = products[0].AttributeValues;\r\n const productAttributes = productSpecificationData && convertProductAttributes(productSpecificationData) || {};\r\n productAttrLoaded(productAttributes);\r\n }\r\n });\r\n }, []);\r\n\r\n const description = props.config.descriptionOverride && productAttr[props.config.descriptionOverride] || product?.Description;\r\n const descriptionDisplay = description &&

{description}

;\r\n //------------------------------------------------------\r\n\r\n\r\n //------------------------------------------------------\r\n // @CUSTOM: Getting license data for blocking\r\n // duplicate purchase of license\r\n //------------------------------------------------------\r\n const customerData = props.data?.customerInformation?.result?.Attributes;\r\n const customerAttributes = customerData && convertCustomerAttributes(customerData);\r\n\r\n const isLicense = productAttr && (productAttr[attrNames.productType] === attrNames.troveAnnualLicense);\r\n const licenseParticipant = customerAttributes && customerAttributes[attrNames.troveParticipant];\r\n\r\n const licenseDuplicate = (isLicense && licenseParticipant);\r\n //------------------------------------------------------\r\n\r\n // @CUSTOM: signed out addtocart replacement\r\n const isSignedIn = props.context.request.user.isAuthenticated;\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n {title}\r\n {/* @CUSTOM: Description Display */}\r\n {descriptionDisplay}\r\n {/* @CUSTOM: SKU Display */}\r\n {skuDisplay}\r\n {/* @CUSTOM: Moved seeDetailsbutton from above inventoryLabel */}\r\n {seeDetailsbutton}\r\n {price}\r\n {unitOfMeasure}\r\n {rating}\r\n {configure && _renderConfigure(configure)}\r\n {keyInPrice && _renderKeyInPrice(keyInPrice)}\r\n {inventoryLabel}\r\n\r\n {/* @CUSTOM: Duplicate license warning */}\r\n {licenseDuplicate && (\r\n
\r\n \r\n
\r\n )}\r\n\r\n {/* @CUSTOM: Signed out addtocart replacement message */}\r\n {!licenseDuplicate && !isSignedIn && (\r\n
\r\n \r\n
\r\n )}\r\n\r\n {/* @CUSTOM: Added the node below from the footer, and added the quantity that used to be below keyInPrice inside the node below */}\r\n \r\n {!licenseDuplicate && isSignedIn &&
\r\n {quantity && _renderQuantity(quantity, quantityLimitsMessages)}\r\n {addToCart && _renderAddToCart(addToCart)}\r\n {addToWishlist && _renderAddToWishlist(addToWishlist)}\r\n
}\r\n
\r\n
\r\n \r\n );\r\n};\r\n\r\n/**\r\n * Functional component which renders quick view button and popup based by the given props file.\r\n * @param {IQuickviewViewProps} props - Configuration for the quick view component.\r\n * @returns {React.FC} - Functional component of the quick view.\r\n */\r\nexport const QuickViewFunctionalComponent: React.FC> = (props: IQuickviewViewProps & IQuickviewProps<{}>) => { // @CUSTOM: Added extended definition props\r\n const { quickView, quickViewButton, isModalOpen, isMobileDevice } = props;\r\n return (\r\n \r\n {!isMobileDevice && quickViewButton}\r\n {isModalOpen && _renderQuickViewPopup(props)}\r\n \r\n );\r\n};\r\n\r\nexport default QuickViewFunctionalComponent;\r\n","const binding = { modules: {}, dataActions: {} };\n\n const registerActionId = (actionPath) => {\n if (binding.dataActions[actionPath] &&\n binding.dataActions[actionPath].default &&\n binding.dataActions[actionPath].default.prototype &&\n binding.dataActions[actionPath].default.prototype.id) {\n binding.dataActions[binding.dataActions[actionPath].default.prototype.id] = binding.dataActions[actionPath];\n } else {\n Object.keys(binding.dataActions[actionPath] || {}).forEach(exportName => {\n if (binding.dataActions[actionPath][exportName] &&\n binding.dataActions[actionPath][exportName].prototype &&\n binding.dataActions[actionPath][exportName].prototype.Action) {\n binding.dataActions[binding.dataActions[actionPath][exportName].prototype.id] = binding.dataActions[actionPath][exportName];\n }\n })\n }\n };\n\n const registerSanitizedActionPath = (sanitizedActionPath, dataAction) => {\n if (process.env.NODE_ENV === 'development') {\n if (!dataAction.default) {\n throw new Error('Data action path does not have a default export');\n }\n if (!(dataAction.default.prototype.id && binding.dataActions[dataAction.default.prototype.id]) || !binding.dataActions[sanitizedActionPath]) {\n binding.dataActions[sanitizedActionPath] = dataAction;\n }\n } else {\n binding.dataActions[sanitizedActionPath] = dataAction;\n if (!binding.dataActions[sanitizedActionPath].default) {\n throw new Error('Data action path ' + sanitizedActionPath + ' does not have a default export');\n }\n binding.dataActions[sanitizedActionPath].default.prototype.RegistrationId = sanitizedActionPath;\n if (binding.dataActions[sanitizedActionPath].default.prototype.id) {\n binding.dataActions[binding.dataActions[sanitizedActionPath].default.prototype.id] = sanitizedActionPath;\n }\n }\n };\n \n\n (binding.modules['quickview'] = {\n c: () => require('@msdyn365-commerce-modules/buybox/dist/lib/modules/quickview/quickview'),\n $type: 'containerModule',\n da: [{name:'customerInformation', path:'@msdyn365-commerce-modules/retail-actions/dist/lib/get-customer', runOn: 0},{name:'featureState', path:'@msdyn365-commerce-modules/retail-actions/dist/lib/get-feature-state', runOn: 0},{name:'wishlists', path:'@msdyn365-commerce-modules/retail-actions/dist/lib/get-wishlist-by-customer-id', runOn: 0}],\n \n iNM: true,\n ns: '@msdyn365-commerce-modules',\n n: 'quickview',\n p: 'buybox',\n \n pdp: '',\n \n \n md: 'node_modules/@msdyn365-commerce-modules/buybox/dist/lib/modules/quickview'\n });\n \n\n {\n const sanitizedActionPath = '@msdyn365-commerce-modules/retail-actions/dist/lib/get-customer';\n let dataAction = require('@msdyn365-commerce-modules/retail-actions/dist/lib/get-customer');\n registerSanitizedActionPath(sanitizedActionPath, dataAction);\n }\n \n\n {\n const sanitizedActionPath = '@msdyn365-commerce-modules/retail-actions/dist/lib/get-feature-state';\n let dataAction = require('@msdyn365-commerce-modules/retail-actions/dist/lib/get-feature-state');\n registerSanitizedActionPath(sanitizedActionPath, dataAction);\n }\n \n\n {\n const sanitizedActionPath = '@msdyn365-commerce-modules/retail-actions/dist/lib/get-wishlist-by-customer-id';\n let dataAction = require('@msdyn365-commerce-modules/retail-actions/dist/lib/get-wishlist-by-customer-id');\n registerSanitizedActionPath(sanitizedActionPath, dataAction);\n }\n \n\n \n window.__bindings__ = window.__bindings__ || {};\n window.__bindings__.modules = {\n ...window.__bindings__.modules || {},\n ...binding.modules\n };\n \n window.__bindings__.dataActions = {\n ...window.__bindings__.dataActions || {},\n ...binding.dataActions\n };\n export const viewDictionary = {};\n viewDictionary['__local__|__local__|themes|base|views|quickview'] = {\n c: () => require('partner/themes/base/views/quickview.view.tsx'),\n cn: '__local__-__local__-quickview'\n };\nviewDictionary['__local__|__local__|themes|christian-school|views|quickview'] = {\n c: () => require('partner/themes/christian-school/views/quickview.view.tsx'),\n cn: '__local__-__local__-quickview'\n };\nviewDictionary['@msdyn365-commerce-modules|buybox|modules|quickview|quickview'] = {\n c: () => require('@msdyn365-commerce-modules/buybox/dist/lib/modules/quickview/quickview.view.js'),\n cn: '@msdyn365-commerce-modules-buybox-quickview'\n };\nviewDictionary['@msdyn365-commerce-theme|adventureworks-theme-kit|modules|adventureworks|views|quickview'] = {\n c: () => require('@msdyn365-commerce-theme/adventureworks-theme-kit/dist/lib/modules/adventureworks/views/quickview.view.js'),\n cn: '@msdyn365-commerce-theme-adventureworks-theme-kit-quickview'\n };\nwindow.__bindings__ = window.__bindings__ || {};\nwindow.__bindings__.viewDictionary = {\n ...window.__bindings__.viewDictionary || {},\n ...viewDictionary\n };","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { AddToWishlistComponent, IWishlistActionErrorResult } from '@msdyn365-commerce/components';\nimport { SimpleProduct } from '@msdyn365-commerce/retail-proxy';\nimport {\n getConfigureErrors,\n IBuyboxAddToCartViewProps,\n IBuyboxCallbacks,\n IBuyboxCommonResources,\n IBuyboxKeyInPriceViewProps,\n IBuyboxProductConfigureDropdownViewProps,\n IBuyboxProductConfigureViewProps,\n IBuyboxProductQuantityViewProps,\n IBuyboxState,\n IQuickviewViewProps\n} from '@msdyn365-commerce-modules/buybox';\nimport { StringExtensions } from '@msdyn365-commerce-modules/retail-actions';\nimport { IModuleProps, Module, Node } from '@msdyn365-commerce-modules/utilities';\nimport * as React from 'react';\n\nimport { IQuickviewProps as IQuickviewPropsExtend } from '../definition-extensions/quickview.ext.props.autogenerated';\n\n/**\n * RenderAddToCart.\n * @param addToCart - AddToCart.\n * @returns -- Returns.\n */\nconst renderAddToCart = (addToCart: IBuyboxAddToCartViewProps): JSX.Element => {\n // eslint-disable-next-line @typescript-eslint/naming-convention -- Dependency from Quickview.tsx file\n const { ContainerProps, errorBlock, button } = addToCart;\n\n return (\n \n {errorBlock}\n {button}\n \n );\n};\n\n/**\n * Add to wishlist failed function.\n * @param callbacks -Buybox callbacks.\n * @param resources -Buybox resources.\n * @param product -Simple product.\n * @returns Update error state.\n */\nconst onAddToWishlistFailed = (\n callbacks: IBuyboxCallbacks | undefined,\n resources: IBuyboxCommonResources,\n product: SimpleProduct | undefined\n) => (result: IWishlistActionErrorResult) => {\n callbacks?.updateErrorState({\n errorHost: 'WISHLIST',\n configureErrors:\n result.status === 'MISSINGDIMENSION' ? getConfigureErrors(result.missingDimensions, resources, product?.IsGiftCard) : {}\n });\n};\n\n/**\n * RenderAddToWishlist.\n * @param props - Buybox viewprops.\n * @param state - Buybox state.\n * @param callbacks - Buybox callbacks.\n * @param product - Product data.\n * @returns -- Returns.\n */\nconst renderAddtoWishlistButton = (\n props: IQuickviewViewProps,\n state: IBuyboxState,\n callbacks: IBuyboxCallbacks | undefined,\n product: SimpleProduct\n): React.ReactNode => {\n const { context, resources } = props;\n const wishlists = props.data.wishlists.result;\n const isShowWishlitButtonText = true;\n return (\n \n );\n};\n\n/**\n * RenderAddToWishlist.\n * @param props - Buybox viewprops.\n * @param state - Buybox state.\n * @param callbacks - Buybox callbacks.\n * @returns -- Returns.\n */\nconst renderAddToWishlist = (\n props: IQuickviewViewProps,\n state: IBuyboxState,\n callbacks: IBuyboxCallbacks | undefined\n): JSX.Element | null => {\n const product = props.productDetails?.product;\n if (!props.addToWishlist || !product) {\n return null;\n }\n\n const wishlistButton = renderAddtoWishlistButton(props, state, callbacks, product);\n return (\n \n {props.addToWishlist.errorBlock}\n {wishlistButton}\n \n );\n};\n\n/**\n * RenderQuantity.\n * @param quantity - Quantity.\n * @param quantityLimitsMessages - QuantityLimitsMessages.\n * @param props - Props.\n * @returns -- Returns.\n */\nconst renderQuantity = (\n quantity: IBuyboxProductQuantityViewProps,\n quantityLimitsMessages: React.ReactNode,\n props: IQuickviewViewProps\n): JSX.Element => {\n // eslint-disable-next-line @typescript-eslint/naming-convention -- Dependency from Quickview.tsx file\n const { ContainerProps, LabelContainerProps, heading, input, errors } = quantity;\n const { unitOfMeasure } = props;\n\n return (\n \n {heading}\n {input}\n {unitOfMeasure}\n {quantityLimitsMessages}\n {errors}\n \n );\n};\n\n/**\n * KenderKeyInPrice.\n * @param keyInPrice - KeyInPrice.\n * @returns -- Returns.\n */\nconst renderKeyInPrice = (keyInPrice: IBuyboxKeyInPriceViewProps): JSX.Element => {\n // eslint-disable-next-line @typescript-eslint/naming-convention -- Dependency from Quickview.tsx file\n const { ContainerProps, LabelContainerProps, heading, input } = keyInPrice;\n\n return (\n \n {heading}\n {input}\n \n );\n};\n\n/**\n * RenderConfigureDropdown.\n * @param dropdown - Buybox product configure dropdown view props.\n * @returns -- Returns JSX.Element.\n */\nconst renderConfigureDropdown = (dropdown: IBuyboxProductConfigureDropdownViewProps): JSX.Element => {\n const { ContainerProps, LabelContainerProps, heading, errors, select } = dropdown;\n\n return (\n \n {heading}\n {select}\n {errors}\n \n );\n};\n\n/**\n * RenderConfigure.\n * @param configure - Buybox product configure view props.\n * @returns -- Returns JSX.Element.\n */\nconst renderConfigure = (configure: IBuyboxProductConfigureViewProps): JSX.Element => {\n const { ContainerProps, dropdowns } = configure;\n\n return {dropdowns.map(renderConfigureDropdown)};\n};\n\n/**\n * RenderBodyContent.\n * @param props - Props.\n * @returns -- Returns.\n */\nconst renderBodyContent = (props: IQuickviewViewProps & IQuickviewPropsExtend<{}>): JSX.Element => {\n const {\n price,\n keyInPrice,\n quantity,\n inventoryLabel,\n quantityLimitsMessages,\n loading,\n // eslint-disable-next-line @typescript-eslint/naming-convention -- Dependency from Quickview.tsx file\n ProductInfoContainerProps,\n MediaGalleryContainerProps,\n CarouselProps,\n addToWishlist,\n configure,\n callbacks,\n state\n } = props;\n if (loading) {\n return <>{loading};\n }\n\n return (\n <>\n \n \n \n \n \n \n {props.resources.priceText}\n {price}\n \n {addToWishlist && renderAddToWishlist(props, state, callbacks)}\n \n {configure && renderConfigure(configure)}\n {keyInPrice && renderKeyInPrice(keyInPrice)}\n {quantity && renderQuantity(quantity, quantityLimitsMessages, props)}\n {inventoryLabel}\n \n \n );\n};\n\n/**\n * RenderQuickViewPopup.\n * @param props - Props.\n * @returns -- Returns.\n */\nconst renderQuickViewPopup = (props: IQuickviewViewProps & IQuickviewPropsExtend<{}>): JSX.Element => {\n // eslint-disable-next-line @typescript-eslint/naming-convention -- Dependency from Quickview.tsx file\n const {\n ModalContainer,\n ModalHeaderContainer,\n ModalFooterContainer,\n ModalHeaderContent,\n ModalBodyContainer,\n addToCart,\n cartContainerProps,\n seeDetailsbutton\n } = props;\n\n return (\n \n \n {ModalHeaderContent}\n \n {props.title}\n {!props.loading && !StringExtensions.isNullOrEmpty(props.state.productPrice?.ItemId) ? (\n \n {props.resources.skuText}\n {props.state.productPrice?.ItemId}\n \n ) : (\n ''\n )}\n {props.rating}\n \n \n {renderBodyContent(props)}\n \n \n {addToCart && seeDetailsbutton}\n {addToCart && renderAddToCart(addToCart)}\n \n \n \n );\n};\n\n/**\n * Functional component which renders quick view button and popup based by the given props file.\n * @param props - Configuration for the quick view component.\n * @returns - Functional component of the quick view.\n */\nexport const QuickViewFunctionalComponent: React.FC> = (\n props: IQuickviewViewProps & IQuickviewPropsExtend<{}>\n) => {\n const { quickView, quickViewButton, isModalOpen } = props;\n const quickViewUpdatedProps: IModuleProps = { ...quickView, title: props.resources.quickViewbuttonText };\n return (\n \n {quickViewButton}\n {isModalOpen && renderQuickViewPopup(props)}\n \n );\n};\n\nexport default QuickViewFunctionalComponent;\n","module.exports = React;","module.exports = ReactDOM;"],"names":["cls","fragment","clsHelper","_renderConfigureDropdown","dropdown","ContainerProps","LabelContainerProps","heading","errors","select","React","Node","Object","assign","_renderBodyContent","props","_props$productDetails","_props$data","title","price","rating","keyInPrice","quantity","configure","inventoryLabel","quantityLimitsMessages","seeDetailsbutton","loading","ProductInfoContainerProps","MediaGalleryContainerProps","CarouselProps","unitOfMeasure","addToWishlist","addToCart","cartContainerProps","product","productDetails","itemId","ItemId","skuDisplay","className","labelResources","sku","productAttr","productAttrLoaded","productAttributesInput","ItemIds","IncludeProductsFromDescendantCategories","SkipVariantExpansion","IncludeAttributes","Context","ChannelId","context","request","apiSettings","channelId","CatalogId","getCatalogId","searchByCriteriaAsync","callerContext","actionContext","then","products","length","productSpecificationData","AttributeValues","productAttributes","convertProductAttributes","description","config","descriptionOverride","Description","descriptionDisplay","customerData","data","customerInformation","result","Attributes","customerAttributes","convertCustomerAttributes","isLicense","attrNames","productType","troveAnnualLicense","licenseParticipant","troveParticipant","licenseDuplicate","dropdowns","map","_renderConfigure","input","_renderKeyInPrice","RichTextComponent","text","_renderQuantity","errorBlock","button","buttonProps","AddToCartComponent","_renderAddToCart","_renderAddToWishlist","QuickViewFunctionalComponent","quickView","quickViewButton","isModalOpen","isMobileDevice","Module","ModalContainer","ModalHeaderContainer","ModalFooterContainer","ModalHeaderContent","ModalBodyContainer","_renderQuickViewPopup","isSignedIn","user","isAuthenticated","signedOutMessage","binding","modules","dataActions","registerSanitizedActionPath","sanitizedActionPath","dataAction","default","Error","prototype","RegistrationId","id","c","require","$type","da","name","path","runOn","iNM","ns","n","p","pdp","md","window","__bindings__","_objectSpread","viewDictionary","cn","onAddToWishlistFailed","callbacks","resources","updateErrorState","errorHost","configureErrors","status","getConfigureErrors","missingDimensions","IsGiftCard","renderAddToWishlist","state","wishlistButton","renderAddtoWishlistButton","wishlists","AddToWishlistComponent","addToWishlistButtonText","removeFromWishlistButtonText","addToWishlistMessage","removedFromWishlistMessage","addItemToWishlistError","removeItemFromWishlistError","nameOfWishlist","typeName","onError","getSelectedProduct","selectedProduct","showButtonText","showButtonTooltip","renderConfigureDropdown","renderBodyContent","priceText","renderConfigure","renderKeyInPrice","renderQuantity","renderQuickViewPopup","_props$state$productP","_props$state$productP2","StringExtensions","isNullOrEmpty","productPrice","skuText","renderAddToCart","quickViewUpdatedProps","quickViewbuttonText","module","exports","ReactDOM"],"sourceRoot":""}