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AAK,GAGLC,GAAI,+BAKRC,OAAOC,aAAeD,OAAOC,cAAgB,GAC7CD,OAAOC,aAAab,QAAOtB,EAAAA,EAAA,GACpBkC,OAAOC,aAAab,SAAW,IAC/BD,EAAQC,SAGXY,OAAOC,aAAaZ,YAAWvB,EAAAA,EAAA,GAC5BkC,OAAOC,aAAaZ,aAAe,IACnCF,EAAQE,aAEY,MAAMa,EAAiB,GAC9BA,EAAe,+DAAiE,CACxFZ,EAAGA,IAAMC,EAAQ,MACjBY,GAAI,uCAEpBH,OAAOC,aAAeD,OAAOC,cAAgB,GAC7CD,OAAOC,aAAaC,eAAcpC,EAAAA,EAAA,GACPkC,OAAOC,aAAaC,gBAAkB,IACtCA,UCtC3BE,EAAOC,QAAU7D,cCAjB4D,EAAOC,QAAUC","sources":["webpack://Msdyn365.Commerce.Online/./src/modules/eve-video-links/eve-video-links.tsx?52e3","webpack://Msdyn365.Commerce.Online/./src/modules/eve-video-links/eve-video-links.view.tsx?a4d4","webpack://Msdyn365.Commerce.Online/./lib/eve-video-links/module-registration.js?3ff6","webpack://Msdyn365.Commerce.Online/external var \"React\"?0d3b","webpack://Msdyn365.Commerce.Online/external var \"ReactDOM\"?853b"],"sourcesContent":["/*!\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 { IEveVideoLinksData } from './eve-video-links.data';\r\nimport { IEveVideoLinksProps } from './eve-video-links.props.autogenerated';\r\n\r\nexport interface IEveVideoLink {\r\n imageUrl: string;\r\n videoUrl: string;\r\n linkUrl: string;\r\n linkText: string;\r\n}\r\n\r\nexport interface IEveVideoLinksViewProps extends IEveVideoLinksProps {\r\n renderLinks: React.ReactNode;\r\n}\r\n\r\n/**\r\n *\r\n * EveVideoLinks component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass EveVideoLinks extends React.PureComponent> {\r\n private _renderLink = (links: IEveVideoLink[] | null): React.ReactNode => {\r\n if (links) {\r\n return links.map(l => {\r\n return (\r\n \r\n \r\n \r\n {l.linkText}\r\n \r\n );\r\n });\r\n }\r\n return <>;\r\n };\r\n public render(): JSX.Element | null {\r\n const linksJson = this.props.config.linksJson;\r\n const viewProps = {\r\n ...this.props,\r\n renderLinks: this._renderLink(linksJson ? JSON.parse(linksJson) : null)\r\n };\r\n return this.props.renderView(viewProps);\r\n }\r\n}\r\n\r\nexport default EveVideoLinks;\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\nimport { IEveVideoLinksViewProps } from './eve-video-links';\r\nimport Msdyn365 from '@msdyn365-commerce/core';\r\n\r\nexport default (props: IEveVideoLinksViewProps) => {\r\n const { renderLinks } = props;\r\n if (Msdyn365.isBrowser) {\r\n const containers = document.querySelectorAll('.image-video-container');\r\n containers.forEach(container => {\r\n container.addEventListener('mouseenter', () => {\r\n container.classList.add('overlay');\r\n const video = container.querySelector('.video') as HTMLVideoElement;\r\n if (video) {\r\n void video.play();\r\n }\r\n });\r\n container.addEventListener('mouseleave', () => {\r\n container.classList.remove('overlay');\r\n const video = container.querySelector('.video') as HTMLVideoElement;\r\n if (video) {\r\n void video.pause();\r\n video.currentTime = 0;\r\n }\r\n });\r\n });\r\n }\r\n return
{renderLinks}
;\r\n};\r\n","const binding = { modules: {}, dataActions: {} };\n\n (binding.modules['eve-video-links'] = {\n c: () => require('partner/modules/eve-video-links/eve-video-links.tsx'),\n $type: 'contentModule',\n da: [],\n \n iNM: false,\n ns: '__local__',\n n: 'eve-video-links',\n p: '__local__',\n \n pdp: '',\n \n \n md: 'src/modules/eve-video-links'\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|eve-video-links|eve-video-links'] = {\n c: () => require('partner/modules/eve-video-links/eve-video-links.view.tsx'),\n cn: '__local__-__local__-eve-video-links'\n };\nwindow.__bindings__ = window.__bindings__ || {};\nwindow.__bindings__.viewDictionary = {\n ...window.__bindings__.viewDictionary || {},\n ...viewDictionary\n };","module.exports = React;","module.exports = ReactDOM;"],"names":["EveVideoLinks","React","constructor","_renderLink","links","map","l","key","className","href","linkUrl","loop","muted","src","videoUrl","imageUrl","linkText","render","linksJson","this","props","config","viewProps","_objectSpread","renderLinks","JSON","parse","renderView","Msdyn365","isBrowser","document","querySelectorAll","forEach","container","addEventListener","classList","add","video","querySelector","play","remove","pause","currentTime","id","binding","modules","dataActions","c","require","$type","da","iNM","ns","n","p","pdp","md","window","__bindings__","viewDictionary","cn","module","exports","ReactDOM"],"sourceRoot":""}