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QAAQ,oBAAsB,CACnCE,EAAGA,IAAMC,EAAQ,MACjBC,MAAO,kBACPC,GAAI,CAAC,CAACC,KAAK,UAAYC,KAAK,0EAA2EC,MAAO,IAE9GC,KAAK,EACLC,GAAI,YACJC,EAAG,mBACHC,EAAG,YAEHC,IAAK,GAGLC,GAAI,gCAlC4BC,EAACC,EAAqBC,KAUlD,GADAlB,EAAQE,YAAYe,GAAuBC,GACtClB,EAAQE,YAAYe,GAAqBE,QAC1C,MAAM,IAAIC,MAAM,oBAAsBH,EAAsB,mCAEhEjB,EAAQE,YAAYe,GAAqBE,QAAQE,UAAUC,eAAiBL,EACxEjB,EAAQE,YAAYe,GAAqBE,QAAQE,UAAUE,KAC3DvB,EAAQE,YAAYF,EAAQE,YAAYe,GAAqBE,QAAQE,UAAUE,IAAMN,IA0BzFD,CAF4B,0EACXZ,EAAQ,KAMjCoB,OAAOC,aAAeD,OAAOC,cAAgB,GAC7CD,OAAOC,aAAaxB,QAAOyB,EAAAA,EAAA,GACpBF,OAAOC,aAAaxB,SAAW,IAC/BD,EAAQC,SAGXuB,OAAOC,aAAavB,YAAWwB,EAAAA,EAAA,GAC5BF,OAAOC,aAAavB,aAAe,IACnCF,EAAQE,aAEY,MAAMyB,EAAiB,GAC9BA,EAAe,iEAAmE,CAC1FxB,EAAGA,IAAMC,EAAQ,MACjBwB,GAAI,wCAEpBJ,OAAOC,aAAeD,OAAOC,cAAgB,GAC7CD,OAAOC,aAAaE,eAAcD,EAAAA,EAAA,GACPF,OAAOC,aAAaE,gBAAkB,IACtCA,UCnF3BE,EAAOC,QAAU3D,cCAjB0D,EAAOC,QAAUC","sources":["webpack://Msdyn365.Commerce.Online/./src/modules/moe-hero-section/moe-hero-section.tsx?64f5","webpack://Msdyn365.Commerce.Online/./src/modules/moe-hero-section/moe-hero-section.view.tsx?3efa","webpack://Msdyn365.Commerce.Online/./lib/moe-hero-section/module-registration.js?1fa4","webpack://Msdyn365.Commerce.Online/external var \"React\"?0d3b","webpack://Msdyn365.Commerce.Online/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 * as React from 'react';\r\n\r\nimport { IMoeHeroSectionData } from './moe-hero-section.data';\r\nimport { IMoeHeroSectionProps } from './moe-hero-section.props.autogenerated';\r\n\r\nexport interface IMoeHeroSectionViewProps extends IMoeHeroSectionProps {}\r\n\r\n/**\r\n *\r\n * MoeHeroSection component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass MoeHeroSection 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 MoeHeroSection;\r\n","/* eslint-disable security/detect-object-injection */\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 { IMoeHeroSectionViewProps } from './moe-hero-section';\r\n\r\nexport default (props: IMoeHeroSectionViewProps) => {\r\n // const defaultImageSettings: Msdyn365.IImageSettings = {\r\n // viewports: {\r\n // xs: { q: 'w=24&h=24&m=6', w: 0, h: 0 },\r\n // lg: { q: 'w=24&h=24&m=6', w: 0, h: 0 }\r\n // },\r\n // lazyload: true\r\n // };\r\n const _getSlot = (slotName: string): React.ReactNode[] | null => {\r\n const { slots } = props;\r\n return (slots && slots[slotName] && slots[slotName].length && slots[slotName]) || null;\r\n };\r\n\r\n const breadcrumbSlot = _getSlot('breadcrumb');\r\n const {\r\n data,\r\n config: { imageSource }\r\n } = props;\r\n let heroImageSource;\r\n let heroAltText;\r\n\r\n if (imageSource && imageSource.src) {\r\n heroImageSource = imageSource.src;\r\n heroAltText = imageSource.altText;\r\n } else {\r\n heroImageSource = data.product.result?.PrimaryImageUrl;\r\n heroAltText = data.product.result?.Name;\r\n }\r\n\r\n return (\r\n //
\r\n //
\r\n //
\r\n //

{data?.product?.result?.Name}

\r\n //

{data?.product?.result?.Description}

\r\n //
\r\n //
{breadcrumbSlot}
\r\n //
\r\n //
\r\n // \r\n //
\r\n //
\r\n
\r\n
\r\n
\r\n

{data?.product?.result?.Name}

\r\n

{data?.product?.result?.Description}

\r\n
\r\n {breadcrumbSlot}\r\n
\r\n\r\n
\r\n {heroAltText}\r\n
\r\n
\r\n );\r\n};\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['moe-hero-section'] = {\n c: () => require('partner/modules/moe-hero-section/moe-hero-section.tsx'),\n $type: 'containerModule',\n da: [{name:'product', path:'@msdyn365-commerce-modules/retail-actions/dist/lib/get-selected-variant', runOn: 0}],\n \n iNM: false,\n ns: '__local__',\n n: 'moe-hero-section',\n p: '__local__',\n \n pdp: '',\n \n \n md: 'src/modules/moe-hero-section'\n });\n \n\n {\n const sanitizedActionPath = '@msdyn365-commerce-modules/retail-actions/dist/lib/get-selected-variant';\n let dataAction = require('@msdyn365-commerce-modules/retail-actions/dist/lib/get-selected-variant');\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__|modules|moe-hero-section|moe-hero-section'] = {\n c: () => require('partner/modules/moe-hero-section/moe-hero-section.view.tsx'),\n cn: '__local__-__local__-moe-hero-section'\n };\nwindow.__bindings__ = window.__bindings__ || {};\nwindow.__bindings__.viewDictionary = {\n ...window.__bindings__.viewDictionary || {},\n ...viewDictionary\n };","module.exports = React;","module.exports = ReactDOM;"],"names":["MoeHeroSection","React","render","this","props","renderView","_data$product","_data$product2","breadcrumbSlot","slotName","slots","length","_getSlot","data","config","imageSource","heroImageSource","heroAltText","_data$product$result","_data$product$result2","src","altText","product","result","PrimaryImageUrl","Name","tabIndex","className","Description","alt","binding","modules","dataActions","c","require","$type","da","name","path","runOn","iNM","ns","n","p","pdp","md","registerSanitizedActionPath","sanitizedActionPath","dataAction","default","Error","prototype","RegistrationId","id","window","__bindings__","_objectSpread","viewDictionary","cn","module","exports","ReactDOM"],"sourceRoot":""}