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EACLC,GAAI,YACJC,EAAG,qBACHC,EAAG,YAEHC,IAAK,GAGLC,GAAI,kCAKRvB,OAAOwB,aAAexB,OAAOwB,cAAgB,CAAC,EAC9CxB,OAAOwB,aAAaZ,QAAOlB,EAAAA,EAAA,GACpBM,OAAOwB,aAAaZ,SAAW,CAAC,GAChCD,EAAQC,SAGXZ,OAAOwB,aAAaX,YAAWnB,EAAAA,EAAA,GAC5BM,OAAOwB,aAAaX,aAAe,CAAC,GACpCF,EAAQE,aAEY,MAAMY,EAAiB,CAAC,EAC/BA,EAAe,qEAAuE,CAC9FX,EAAGA,IAAMC,EAAQ,MACjBW,GAAI,0CAEpB1B,OAAOwB,aAAexB,OAAOwB,cAAgB,CAAC,EAC9CxB,OAAOwB,aAAaC,eAAc/B,EAAAA,EAAA,GACPM,OAAOwB,aAAaC,gBAAkB,CAAC,GACvCA,UCtC3BE,EAAOC,QAAUrD,cCAjBoD,EAAOC,QAAUC","sources":["webpack://Msdyn365.Commerce.Online/./src/modules/ecomm-notif-banner/ecomm-notif-banner.tsx?c569","webpack://Msdyn365.Commerce.Online/./src/modules/ecomm-notif-banner/ecomm-notif-banner.view.tsx?8c6d","webpack://Msdyn365.Commerce.Online/./lib/ecomm-notif-banner/module-registration.js?65e6","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 * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\nimport * as MsDyn365 from '@msdyn365-commerce/core';\r\n\r\nimport * as React from 'react';\r\n\r\nimport { IEcommNotifBannerData } from './ecomm-notif-banner.data';\r\nimport { IEcommNotifBannerProps } from './ecomm-notif-banner.props.autogenerated';\r\n\r\nexport interface IEcommNotifBannerViewProps extends IEcommNotifBannerProps {\r\n title: string;\r\n description: React.ReactNode;\r\n}\r\n\r\n/**\r\n *\r\n * EcommNotifBanner component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass EcommNotifBanner extends React.PureComponent> {\r\n public render(): JSX.Element | null {\r\n const { config } = this.props;\r\n\r\n const text = config.description && ;\r\n\r\n const EcommNotifBannerViewProp = {\r\n ...this.props,\r\n title: config.title,\r\n description: text\r\n };\r\n\r\n return this.props.renderView(EcommNotifBannerViewProp);\r\n }\r\n\r\n private _handleTextChange = (event: MsDyn365.ContentEditableEvent) => this.props.config.description = event.target.value;\r\n}\r\n\r\nexport default EcommNotifBanner;\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 * as React from 'react';\r\n\r\nimport { IEcommNotifBannerViewProps } from './ecomm-notif-banner';\r\n\r\n/**\r\n *\r\n * EcommContentTemplate1View component\r\n * @extends {React.PureComponent}\r\n */\r\nexport class EcommNotifBannerView extends React.PureComponent {\r\n public render(): JSX.Element | null {\r\n const { title, description } = this.props;\r\n\r\n if (window && window.sessionStorage.getItem('hasRead') === 'true') {\r\n return null;\r\n }\r\n\r\n return (\r\n
\r\n
{title}
\r\n
\r\n

{description}

\r\n
\r\n );\r\n }\r\n\r\n private _handleOnClick = () => {\r\n if (window !== undefined) {\r\n window.sessionStorage.setItem('hasRead', 'true');\r\n\r\n this.forceUpdate();\r\n }\r\n }\r\n}\r\n\r\nexport default EcommNotifBannerView;","const binding = { modules: {}, dataActions: {} };\n\n (binding.modules['ecomm-notif-banner'] = {\n c: () => require('partner/modules/ecomm-notif-banner/ecomm-notif-banner.tsx'),\n $type: 'contentModule',\n da: [],\n \n iNM: false,\n ns: '__local__',\n n: 'ecomm-notif-banner',\n p: '__local__',\n \n pdp: '',\n \n \n md: 'src/modules/ecomm-notif-banner'\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|ecomm-notif-banner|ecomm-notif-banner'] = {\n c: () => require('partner/modules/ecomm-notif-banner/ecomm-notif-banner.view.tsx'),\n cn: '__local__-__local__-ecomm-notif-banner'\n };\nwindow.__bindings__ = window.__bindings__ || {};\nwindow.__bindings__.viewDictionary = {\n ...window.__bindings__.viewDictionary || {},\n ...viewDictionary\n };","module.exports = React;","module.exports = ReactDOM;"],"names":["EcommNotifBanner","React","constructor","_handleTextChange","event","this","props","config","description","target","value","render","text","MsDyn365","editProps","onEdit","requestContext","context","request","EcommNotifBannerViewProp","_objectSpread","title","renderView","EcommNotifBannerView","_handleOnClick","undefined","window","sessionStorage","setItem","forceUpdate","getItem","className","onClick","Object","assign","id","renderModuleAttributes","binding","modules","dataActions","c","require","$type","da","iNM","ns","n","p","pdp","md","__bindings__","viewDictionary","cn","module","exports","ReactDOM"],"sourceRoot":""}