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AAUD,KAAKxC,MAAMyC,MAAMC,SAA+C,IAApCF,KAAKxC,MAAMyC,MAAMC,QAAQlC,OAE3E,OADAgC,KAAKxC,MAAMK,QAAQa,UAAUC,MAAM,qDAC5B,KAEX,MAAMwB,EAASR,EAAAA,EAAA,GACRK,KAAKxC,OAAK,IACbC,WAAYuC,KAAKxC,MAAMyC,MAAMC,QAC7BxC,WAAY,CACR0C,YAAaJ,KAAKxC,MAClB6C,UAAWC,GAAAA,CAAW,kBAAmBN,KAAKxC,MAAM+C,OAAOF,WAC3DG,IAAK,MAET7C,eAAgB,CACZ0C,UAAWC,GAAAA,CAAW,uBAAwBN,KAAKxC,MAAM+C,OAAOF,WAChEG,IAAK,QAIb,OAAOR,KAAKxC,MAAMiD,WAAWN,IAIrC,iHCpCO,MAAM5C,EAAyDC,IAClE,MAAM,WAAEC,EAAU,WAAEC,EAAU,eAAEC,GAAmBH,EACnD,OAAKC,GAAoC,IAAtBA,EAAWO,OAK1BC,IAAAA,cAACC,EAAAA,OAAMC,OAAAC,OAAA,GAAKV,GACPD,EAAWY,KAAI,CAACC,EAAqBC,IAE9BN,IAAAA,cAACO,EAAAA,KAAIL,OAAAC,OAAA,GAAKT,EAAc,CAAEc,IAAKF,IAC1BD,OARjBd,EAAMK,QAAQa,UAAUC,MAAM,+CACvB,OAef,WC7BA+B,EAAOC,QAAU1C,cCAjByC,EAAOC,QAAUC","sources":["webpack://Msdyn365.Commerce.Online/./src/themes/peetsaw/views/footer-category.view.tsx?7505","webpack://Msdyn365.Commerce.Online/./lib/footer-category/module-registration.js?7500","webpack://Msdyn365.Commerce.Online/./src/modules/footer-category/footer-category.tsx?e0bd","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. All rights reserved.\r\n * See License.txt 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 '@msdyn365-commerce-modules/footer/src/modules/footer-category/./footer-category';\r\n\r\nexport const FooterCategoryView: React.FC = props => {\r\n const { categories, FooterList, FooterListItem } = props;\r\n const isAuthenticated = props.context.request.user.isAuthenticated;\r\n\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('@msdyn365-commerce-modules/footer/dist/lib/modules/footer-category/footer-category'),\n $type: 'containerModule',\n da: [],\n \n iNM: true,\n ns: '@msdyn365-commerce-modules',\n n: 'footer-category',\n p: 'footer',\n \n pdp: '',\n \n \n md: 'node_modules/@msdyn365-commerce-modules/footer/dist/lib/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__|themes|peetsaw|views|footer-category'] = {\n c: () => require('partner/themes/peetsaw/views/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 { IModuleProps, INodeProps } from '@msdyn365-commerce-modules/utilities';\nimport classnames from 'classnames';\nimport * as React from 'react';\n\nimport { IFooterCategoryConfig, IFooterCategoryProps } from './footer-category.props.autogenerated';\n\nexport interface IFooterCategoryViewProps extends IFooterCategoryProps {\n categories: React.ReactNode[];\n FooterList: IModuleProps;\n FooterListItem: INodeProps;\n}\n\n/**\n *\n * FooterCategory component.\n * @extends {React.PureComponent>}\n */\nclass FooterCategory extends React.PureComponent> {\n public render(): JSX.Element | null {\n if (!this.props.slots || !this.props.slots.content || this.props.slots.content.length === 0) {\n this.props.context.telemetry.error('footer slots content is empty, module wont render');\n return null;\n }\n const viewprops = {\n ...this.props,\n categories: this.props.slots.content,\n FooterList: {\n moduleProps: this.props,\n className: classnames('ms-footer__list', this.props.config.className),\n tag: 'ul'\n },\n FooterListItem: {\n className: classnames('ms-footer__list-item', this.props.config.className),\n tag: 'li'\n }\n };\n\n return this.props.renderView(viewprops) as React.ReactElement;\n }\n}\n\nexport default FooterCategory;\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":["FooterCategoryView","props","categories","FooterList","FooterListItem","isAuthenticated","context","request","user","length","React","Module","Object","assign","map","category","index","Node","key","telemetry","error","binding","modules","dataActions","c","require","$type","da","iNM","ns","n","p","pdp","md","window","__bindings__","_objectSpread","viewDictionary","cn","FooterCategory","render","this","slots","content","viewprops","moduleProps","className","classnames","config","tag","renderView","module","exports","ReactDOM"],"sourceRoot":""}