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OAAA,GAAKnB,GACPD,EAAWqB,KAAI,CAACC,EAAqBC,IAE9BlB,IAAAA,cAACmB,EAAAA,KAAIL,OAAAC,OAAA,GAAKlB,EAAc,CAAEuB,IAAKF,IAC1BD,OARjB1B,EAAM8B,QAAQC,UAAUC,MAAM,+CACvB,OAef,WC7BA8B,EAAOC,QAAUtD,cCAjBqD,EAAOC,QAAUC","sources":["webpack://@msdyn365-commerce-partners/fabrikam/./src/themes/britax-romers/views/footer-category.view.tsx?c94d","webpack://@msdyn365-commerce-partners/fabrikam/./lib/footer-category/module-registration.js?7500","webpack://@msdyn365-commerce-partners/fabrikam/./src/modules/footer-category/footer-category.tsx?e0bd","webpack://@msdyn365-commerce-partners/fabrikam/./src/modules/footer-category/footer-category.view.tsx?fdce","webpack://@msdyn365-commerce-partners/fabrikam/external var \"React\"?0d3b","webpack://@msdyn365-commerce-partners/fabrikam/external var \"ReactDOM\"?853b"],"sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. 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\nimport { IFooterCategoryViewProps } from \"@msdyn365-commerce-modules/footer/src/modules/footer-category/./footer-category\";\r\n\r\nexport const FooterCategoryView: React.FC = (\r\n props: any\r\n) => {\r\n if (\r\n typeof window !== \"undefined\" &&\r\n typeof document !== \"undefined\" &&\r\n typeof localStorage !== \"undefined\"\r\n ) {\r\n const { categories, FooterList, FooterListItem, friendlyName } = props;\r\n // const [cookieModal, setCookieModal] = React.useState(false);\r\n\r\n if (!categories || !categories.length) {\r\n props.context.telemetry.error(\r\n \"Footer content is empty, module wont render\"\r\n );\r\n return null;\r\n }\r\n\r\n // function openCookieModal(){\r\n // // localStorage.setItem(\"cookie_modal\",\"true\")\r\n\r\n // }\r\n\r\n React.useEffect(() => {\r\n window.addEventListener(\"CookiebotOnDecline\", () => {\r\n if (document.querySelector(\"body\")?.style.overflow == \"hidden\") {\r\n window.location.reload();\r\n }\r\n });\r\n\r\n window.addEventListener(\"CookiebotOnAccept\", () => {\r\n if (document.querySelector(\"body\")?.style.overflow == \"hidden\") {\r\n window.location.reload();\r\n }\r\n });\r\n }, []);\r\n setTimeout(() => {\r\n const openCookieBot = () => {\r\n const cookieBot: any = window.CookieConsent;\r\n cookieBot.show();\r\n };\r\n\r\n document\r\n .querySelector(\".cookie-selector\")\r\n ?.addEventListener(\"click\", () => {\r\n openCookieBot();\r\n });\r\n }, 1200);\r\n\r\n return (\r\n \r\n {categories.map((category: ReactNode, index: number) => {\r\n if (index == 0 && friendlyName == \"Social footer category\") {\r\n return <>{category};\r\n }\r\n return (\r\n \r\n {category}\r\n \r\n );\r\n })}\r\n\r\n {/* {cookieModal ? (\r\n \r\n

{props.resources.headingCookie}

\r\n

{props.resources.cookieContent}

\r\n \r\n \r\n ) : null} */}\r\n
\r\n );\r\n } else {\r\n return <>;\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|britax-romers|views|footer-category'] = {\n c: () => require('partner/themes/britax-romers/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","window","document","localStorage","categories","FooterList","FooterListItem","friendlyName","length","React","addEventListener","_document$querySelect","querySelector","style","overflow","location","reload","_document$querySelect2","setTimeout","_document$querySelect3","CookieConsent","show","Module","Object","assign","map","category","index","Node","key","context","telemetry","error","binding","modules","dataActions","c","require","$type","da","iNM","ns","n","p","pdp","md","__bindings__","_objectSpread","viewDictionary","cn","FooterCategory","render","this","slots","content","viewprops","moduleProps","className","classnames","config","tag","renderView","module","exports","ReactDOM"],"sourceRoot":""}