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D,OAAOC,aAAab,QAAOd,EAAAA,EAAA,GACpB0B,OAAOC,aAAab,SAAW,IAC/BD,EAAQC,SAGXY,OAAOC,aAAaZ,YAAWf,EAAAA,EAAA,GAC5B0B,OAAOC,aAAaZ,aAAe,IACnCF,EAAQE,aAEY,MAAMa,EAAiB,GAC9BA,EAAe,2EAA6E,CACpGZ,EAAGA,IAAMC,EAAQ,MACjBY,GAAI,6CAEpBH,OAAOC,aAAeD,OAAOC,cAAgB,GAC7CD,OAAOC,aAAaC,eAAc5B,EAAAA,EAAA,GACP0B,OAAOC,aAAaC,gBAAkB,IACtCA,UCtC3BE,EAAOC,QAAU5C,cCAjB2C,EAAOC,QAAUC","sources":["webpack://henrys-ecommerce/./src/modules/hei-scrollspy-section/hei-scrollspy-section.tsx?96d7","webpack://henrys-ecommerce/./src/modules/hei-scrollspy-section/hei-scrollspy-section.view.tsx?5bea","webpack://henrys-ecommerce/./lib/hei-scrollspy-section/module-registration.js?b8c5","webpack://henrys-ecommerce/external var \"React\"?0d3b","webpack://henrys-ecommerce/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 { IHeiScrollspySectionData } from './hei-scrollspy-section.data';\r\nimport { IHeiScrollspySectionProps } from './hei-scrollspy-section.props.autogenerated';\r\n\r\nexport interface IHeiScrollspySectionViewProps extends IHeiScrollspySectionProps {\r\n hrefAnchor: string;\r\n titleOnly?: boolean;\r\n}\r\n\r\n/**\r\n *\r\n * HeiScrollspySection component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass HeiScrollspySection extends React.PureComponent> {\r\n private readonly hrefAnchor: string;\r\n\r\n public constructor(props: IHeiScrollspySectionProps) {\r\n super(props);\r\n this.hrefAnchor =\r\n props.config.hrefAnchor || `scroll-section-${(props.config.sectionTitle ?? '').toLowerCase().replace(/[^\\w]/g, '')}`;\r\n }\r\n\r\n public render(): JSX.Element | null {\r\n return this.props.renderView({\r\n ...this.props,\r\n hrefAnchor: this.hrefAnchor\r\n });\r\n }\r\n}\r\n\r\nexport default HeiScrollspySection;\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 { IHeiScrollspySectionViewProps } from './hei-scrollspy-section';\r\nimport classnames from 'classnames';\r\nimport { ArrayExtensions } from '@msdyn365-commerce-modules/retail-actions';\r\n\r\nexport default (props: IHeiScrollspySectionViewProps) => {\r\n const {\r\n titleOnly,\r\n hrefAnchor,\r\n config: { sectionTitle, hideTitleHeading, className, sectionHeading },\r\n slots\r\n } = props;\r\n\r\n if (titleOnly) {\r\n return {sectionTitle ?? 'Untitled'};\r\n }\r\n\r\n const sectionContent = ArrayExtensions.firstOrDefault(slots.sectionContent);\r\n const floatingContent = ArrayExtensions.firstOrDefault(slots.floatingContent);\r\n\r\n return (\r\n
\r\n
\r\n
\r\n {!hideTitleHeading && sectionTitle &&
{sectionHeading || sectionTitle}
}\r\n {sectionContent}\r\n
\r\n {floatingContent &&
{floatingContent}
}\r\n
\r\n );\r\n};\r\n","const binding = { modules: {}, dataActions: {} };\n\n (binding.modules['hei-scrollspy-section'] = {\n c: () => require('partner/modules/hei-scrollspy-section/hei-scrollspy-section.tsx'),\n $type: 'containerModule',\n da: [],\n \n iNM: false,\n ns: '__local__',\n n: 'hei-scrollspy-section',\n p: '__local__',\n \n pdp: '',\n \n \n md: 'src/modules/hei-scrollspy-section'\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|hei-scrollspy-section|hei-scrollspy-section'] = {\n c: () => require('partner/modules/hei-scrollspy-section/hei-scrollspy-section.view.tsx'),\n cn: '__local__-__local__-hei-scrollspy-section'\n };\nwindow.__bindings__ = window.__bindings__ || {};\nwindow.__bindings__.viewDictionary = {\n ...window.__bindings__.viewDictionary || {},\n ...viewDictionary\n };","module.exports = React;","module.exports = ReactDOM;"],"names":["HeiScrollspySection","React","constructor","props","_props$config$section","super","this","hrefAnchor","config","sectionTitle","toLowerCase","replace","render","renderView","_objectSpread","titleOnly","hideTitleHeading","className","sectionHeading","slots","href","sectionContent","ArrayExtensions","firstOrDefault","floatingContent","classnames","id","binding","modules","dataActions","c","require","$type","da","iNM","ns","n","p","pdp","md","window","__bindings__","viewDictionary","cn","module","exports","ReactDOM"],"sourceRoot":""}