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hei-locale-redirect/hei-locale-redirect.tsx?9689","webpack://henrys-ecommerce/./src/modules/hei-locale-redirect/hei-locale-redirect.view.tsx?b567","webpack://henrys-ecommerce/./lib/hei-locale-redirect/module-registration.js?d8fd","webpack://henrys-ecommerce/external var \"React\"?0d3b","webpack://henrys-ecommerce/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 { IHeiLocaleRedirectData } from './hei-locale-redirect.data';\r\nimport { IHeiLocaleRedirectProps } from './hei-locale-redirect.props.autogenerated';\r\n\r\nexport interface IHeiLocaleRedirectViewProps extends IHeiLocaleRedirectProps {}\r\n\r\n/**\r\n *\r\n * HeiLocaleRedirect component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass HeiLocaleRedirect extends React.PureComponent> {\r\n public render(): JSX.Element | null {\r\n return this.props.renderView(this.props);\r\n }\r\n}\r\n\r\nexport default HeiLocaleRedirect;\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 MsDyn365 from '@msdyn365-commerce/core';\r\nimport { IHeiLocaleRedirectViewProps } from './hei-locale-redirect';\r\n\r\nexport default (props: IHeiLocaleRedirectViewProps) => {\r\n let targetUrl = '';\r\n\r\n if (!MsDyn365.isBrowser) {\r\n return null;\r\n }\r\n\r\n const sitePath = props.context.request.sitePath;\r\n if (sitePath && (window.location.pathname ?? '').toLocaleLowerCase().startsWith(sitePath.toLocaleLowerCase())) {\r\n targetUrl = window.location.pathname.substring(sitePath.length) + window.location.search + window.location.hash;\r\n\r\n window.location.replace(targetUrl || '/');\r\n }\r\n\r\n return null;\r\n};\r\n","const binding = { modules: {}, dataActions: {} };\n\n (binding.modules['hei-locale-redirect'] = {\n c: () => require('partner/modules/hei-locale-redirect/hei-locale-redirect.tsx'),\n $type: 'contentModule',\n da: [],\n \n iNM: false,\n ns: '__local__',\n n: 'hei-locale-redirect',\n p: '__local__',\n \n pdp: '',\n \n \n md: 'src/modules/hei-locale-redirect'\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|hei-locale-redirect|hei-locale-redirect'] = {\n c: () => require('partner/modules/hei-locale-redirect/hei-locale-redirect.view.tsx'),\n cn: '__local__-__local__-hei-locale-redirect'\n };\nwindow.__bindings__ = window.__bindings__ || {};\nwindow.__bindings__.viewDictionary = {\n ...window.__bindings__.viewDictionary || {},\n ...viewDictionary\n };","module.exports = React;","module.exports = ReactDOM;"],"names":["HeiLocaleRedirect","React","render","this","props","renderView","_window$location$path","targetUrl","MsDyn365","isBrowser","sitePath","context","request","window","location","pathname","toLocaleLowerCase","startsWith","substring","length","search","hash","replace","binding","modules","dataActions","c","require","$type","da","iNM","ns","n","p","pdp","md","__bindings__","_objectSpread","viewDictionary","cn","module","exports","ReactDOM"],"sourceRoot":""}