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AW,IAC/BD,EAAQC,SAGXY,OAAOC,aAAaZ,YAAWrB,EAAAA,EAAA,GAC5BgC,OAAOC,aAAaZ,aAAe,IACnCF,EAAQE,aAEY,MAAMa,EAAiB,GAC9BA,EAAe,+DAAiE,CACxFZ,EAAGA,IAAMC,EAAQ,MACjBY,GAAI,uCAEpBD,EAAe,6EAA+E,CAC9EZ,EAAGA,IAAMC,EAAQ,MACjBY,GAAI,qDAEpBH,OAAOC,aAAeD,OAAOC,cAAgB,GAC7CD,OAAOC,aAAaC,eAAclC,EAAAA,EAAA,GACPgC,OAAOC,aAAaC,gBAAkB,IACtCA,0GChCpB,MAAMxB,EAAyDlB,IAClE,MAAM,WAAES,EAAU,WAAEC,EAAU,eAAEM,GAAmBhB,EACnD,OAAKS,GAAoC,IAAtBA,EAAWN,OAK1BN,IAAAA,cAACsB,EAAAA,OAAMC,OAAAC,OAAA,GAAKX,GACPD,EAAWa,KAAI,CAACC,EAAqBC,IAE9B3B,IAAAA,cAAC4B,EAAAA,KAAIL,OAAAC,OAAA,GAAKL,EAAc,CAAEU,IAAKF,IAC1BD,OARjBvB,EAAMI,QAAQC,UAAUC,MAAM,+CACvB,OAef,WC7BAsC,EAAOC,QAAUhD,cCAjB+C,EAAOC,QAAUC","sources":["webpack://Msdyn365.Commerce.Online/./src/modules/footer-category/footer-category.tsx?6a7d","webpack://Msdyn365.Commerce.Online/./src/modules/footer-category/footer-category.view.tsx?9d31","webpack://Msdyn365.Commerce.Online/./lib/footer-category/module-registration.js?7500","webpack://Msdyn365.Commerce.Online/./src/modules/footer-category/footer-category.view.tsx?fdce","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 { IModuleProps, INodeProps } from '@msdyn365-commerce-modules/utilities';\r\nimport classnames from 'classnames';\r\nimport * as React from 'react';\r\n\r\nimport { IFooterCategoryConfig, IFooterCategoryProps } from './footer-category.props.autogenerated';\r\n\r\nexport interface IFooterCategoryViewProps extends IFooterCategoryProps {\r\n categories: React.ReactNode[];\r\n FooterList: IModuleProps;\r\n FooterListItem: INodeProps;\r\n}\r\n\r\n/**\r\n *\r\n * FooterCategory component.\r\n * @extends {React.PureComponent>}\r\n */\r\nclass FooterCategory extends React.PureComponent> {\r\n public render(): JSX.Element | null {\r\n if (!this.props.slots || !this.props.slots.content || this.props.slots.content.length === 0) {\r\n this.props.context.telemetry.error('footer slots content is empty, module wont render');\r\n return null;\r\n }\r\n const viewprops = {\r\n ...this.props,\r\n categories: this.props.slots.content,\r\n FooterList: {\r\n moduleProps: this.props,\r\n className: classnames('ms-footer__list', this.props.config.className),\r\n tag: 'ul'\r\n },\r\n FooterListItem: {\r\n className: classnames('ms-footer__list-item', this.props.config.className),\r\n tag: 'li'\r\n }\r\n };\r\n\r\n return this.props.renderView(viewprops) as React.ReactElement;\r\n }\r\n}\r\n\r\nexport default FooterCategory;\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 React, { ReactNode } from 'react';\r\n\r\nimport { IFooterCategoryViewProps } from './footer-category';\r\n\r\nexport const FooterCategoryView: React.FC = props => {\r\n const { categories, FooterList, FooterListItem } = props;\r\n if (!categories || categories.length === 0) {\r\n props.context.telemetry.error('Footer content is empty, module wont render');\r\n return null;\r\n }\r\n return (\r\n \r\n {categories.map((category: ReactNode, index: number) => {\r\n return (\r\n \r\n {category}\r\n \r\n );\r\n })}\r\n \r\n );\r\n};\r\n\r\nexport default FooterCategoryView;\r\n","const binding = { modules: {}, dataActions: {} };\n\n (binding.modules['footer-category'] = {\n c: () => require('partner/modules/footer-category/footer-category.tsx'),\n $type: 'containerModule',\n da: [],\n \n iNM: false,\n ns: '__local__',\n n: 'footer-category',\n p: '__local__',\n \n pdp: '',\n \n \n md: 'src/modules/footer-category'\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|footer-category|footer-category'] = {\n c: () => require('partner/modules/footer-category/footer-category.view.tsx'),\n cn: '__local__-__local__-footer-category'\n };\nviewDictionary['@msdyn365-commerce-modules|footer|modules|footer-category|footer-category'] = {\n c: () => require('@msdyn365-commerce-modules/footer/dist/lib/modules/footer-category/footer-category.view.js'),\n cn: '@msdyn365-commerce-modules-footer-footer-category'\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 { Module, Node } from '@msdyn365-commerce-modules/utilities';\nimport React, { ReactNode } from 'react';\n\nimport { IFooterCategoryViewProps } from './footer-category';\n\nexport const FooterCategoryView: React.FC = props => {\n const { categories, FooterList, FooterListItem } = props;\n if (!categories || categories.length === 0) {\n props.context.telemetry.error('Footer content is empty, module wont render');\n return null;\n }\n return (\n \n {categories.map((category: ReactNode, index: number) => {\n return (\n \n {category}\n \n );\n })}\n \n );\n};\n\nexport default FooterCategoryView;\n","module.exports = React;","module.exports = ReactDOM;"],"names":["FooterCategory","React","render","this","props","slots","content","length","context","telemetry","error","viewprops","_objectSpread","categories","FooterList","moduleProps","className","classnames","config","tag","FooterListItem","renderView","FooterCategoryView","Module","Object","assign","map","category","index","Node","key","binding","modules","dataActions","c","require","$type","da","iNM","ns","n","p","pdp","md","window","__bindings__","viewDictionary","cn","module","exports","ReactDOM"],"sourceRoot":""}