{"version":3,"sources":["webpack:///src/modules/footer-category/footer-category.tsx?b7b8","webpack:///src/modules/footer-category/footer-category.view.tsx?26a5","webpack:///external \"React\"?c481","webpack:///./lib/footer-category/module-registration.js?7500","webpack:///external \"ReactDOM\"?4b2d"],"names":["FooterCategory","React","render","this","props","slots","content","length","context","telemetry","error","viewprops","_objectSpread","categories","FooterList","moduleProps","className","classnames","config","tag","FooterListItem","renderView","FooterCategoryView","createElement","Module","Object","assign","map","category","index","Node","key","module","exports","binding","modules","dataActions","c","require","$type","da","iNM","ns","n","p","pdp","md","window","__bindings__","viewDictionary","cn","ReactDOM"],"mappings":";uuBAsBA,MAAMA,UAAuBC,gBAClBC,SACH,IAAKC,KAAKC,MAAMC,QAAUF,KAAKC,MAAMC,MAAMC,SAA+C,IAApCH,KAAKC,MAAMC,MAAMC,QAAQC,OAE3E,OADAJ,KAAKC,MAAMI,QAAQC,UAAUC,MAAM,qDAC5B,KAEX,MAAMC,EAASC,IAAA,GACRT,KAAKC,OAAK,IACbS,WAAYV,KAAKC,MAAMC,MAAMC,QAC7BQ,WAAY,CACRC,YAAaZ,KAAKC,MAClBY,UAAWC,IAAW,kBAAmBd,KAAKC,MAAMc,OAAOF,WAC3DG,IAAK,MAETC,eAAgB,CACZJ,UAAWC,IAAW,uBAAwBd,KAAKC,MAAMc,OAAOF,WAChEG,IAAK,QAIb,OAAOhB,KAAKC,MAAMiB,WAAWV,IAItBX,a,2ICpCR,MAAMsB,EAAyDlB,IAClE,MAAM,WAAES,EAAU,WAAEC,EAAU,eAAEM,GAAmBhB,EACnD,OAAKS,GAAoC,IAAtBA,EAAWN,OAK1BN,IAAAsB,cAACC,SAAMC,OAAAC,OAAA,GAAKZ,GACPD,EAAWc,IAAI,CAACC,EAAqBC,IAE9B5B,IAAAsB,cAACO,OAAIL,OAAAC,OAAA,GAAKN,EAAc,CAAEW,IAAKF,IAC1BD,MARjBxB,EAAMI,QAAQC,UAAUC,MAAM,+CACvB,OAeAY,a,mBC7BfU,EAAOC,QAAUhC,O,2rBCAjB,MAAMiC,EAAU,CAAEC,QAAS,GAAIC,YAAa,IAEvCF,EAAQC,QAAQ,mBAAqB,CAClCE,EAAGA,IAAMC,EAAQ,QACjBC,MAAO,kBACPC,GAAI,GAEJC,KAAK,EACLC,GAAI,6BACJC,EAAG,kBACHC,EAAG,SAEHC,IAAK,GAGLC,GAAI,mFAKRC,OAAOC,aAAeD,OAAOC,cAAgB,GAC7CD,OAAOC,aAAab,QAAOvB,IAAA,GACpBmC,OAAOC,aAAab,SAAW,IAC/BD,EAAQC,SAGXY,OAAOC,aAAaZ,YAAWxB,IAAA,GAC5BmC,OAAOC,aAAaZ,aAAe,IACnCF,EAAQE,aAEY,MAAMa,EAAiB,GAC9BA,EAAe,6EAA+E,CACtGZ,EAAGA,IAAMC,EAAQ,QACjBY,GAAI,qDAEpBH,OAAOC,aAAeD,OAAOC,cAAgB,GAC7CD,OAAOC,aAAaC,eAAcrC,IAAA,GACPmC,OAAOC,aAAaC,gBAAkB,IACtCA,I,mBCtC3BjB,EAAOC,QAAUkB,W","file":"static/js/90.8c4f01ccdee322d7adf5.chunk.js","sourcesContent":["/*!\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;","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['@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 };","module.exports = ReactDOM;"],"sourceRoot":""}