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WAAEQ,EAAU,WAAEC,EAAU,eAAEM,GAAmBf,EACnD,OAAKQ,GAAoC,IAAtBA,EAAWL,OAK1BN,IAAAA,cAACqB,EAAAA,OAAMC,OAAAC,OAAA,GAAKX,GACPD,EAAWa,KAAI,CAACC,EAAqBC,IAE9B1B,IAAAA,cAAC2B,EAAAA,KAAIL,OAAAC,OAAA,GAAKL,EAAc,CAAEU,IAAKF,IAC1BD,OARjBtB,EAAMI,QAAQC,UAAUC,MAAM,+CACvB,OAef,WC7BAoB,EAAOC,QAAU9B,cCAjB6B,EAAOC,QAAUC","sources":["webpack://sheikh-zayed-festival/./lib/footer-category/module-registration.js?7500","webpack://sheikh-zayed-festival/./src/modules/footer-category/footer-category.tsx?e0bd","webpack://sheikh-zayed-festival/./src/modules/footer-category/footer-category.view.tsx?fdce","webpack://sheikh-zayed-festival/external var \"React\"?0d3b","webpack://sheikh-zayed-festival/external var \"ReactDOM\"?853b"],"sourcesContent":["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                    };","/*!\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<IFooterCategoryConfig> {\n    categories: React.ReactNode[];\n    FooterList: IModuleProps;\n    FooterListItem: INodeProps;\n}\n\n/**\n *\n * FooterCategory component.\n * @extends {React.PureComponent<IFooterCategoryProps<IFooterCategoryConfig>>}\n */\nclass FooterCategory extends React.PureComponent<IFooterCategoryProps<IFooterCategoryConfig>> {\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<IFooterCategoryViewProps> = 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        <Module {...FooterList}>\n            {categories.map((category: ReactNode, index: number) => {\n                return (\n                    <Node {...FooterListItem} key={index}>\n                        {category}\n                    </Node>\n                );\n            })}\n        </Module>\n    );\n};\n\nexport default FooterCategoryView;\n","module.exports = React;","module.exports = ReactDOM;"],"names":["binding","modules","dataActions","c","require","$type","da","iNM","ns","n","p","pdp","md","window","__bindings__","_objectSpread","viewDictionary","cn","FooterCategory","React","render","this","props","slots","content","length","context","telemetry","error","viewprops","categories","FooterList","moduleProps","className","classnames","config","tag","FooterListItem","renderView","FooterCategoryView","Module","Object","assign","map","category","index","Node","key","module","exports","ReactDOM"],"sourceRoot":""}