{"version":3,"file":"static/js/ecf8e7e2e8a747d8e64e.bundle.js","mappings":"0LAaA,MAAMA,UAAmBC,EAAAA,cACrBC,YAAYC,GACRC,MAAMD,GAEHE,SACH,MAAM,OAAEC,GAAWC,KAAKJ,MAClBK,EAAOF,EAAOE,KACdC,EAAY,IAAGC,EAAAA,EAAAA,IAAS,GAAIH,KAAKJ,MAAMQ,QAAQC,WAC/CC,EAAQL,MAAAA,OAAI,EAAJA,EACRM,MAAM,WACPC,KAAK,SAASN,KACdK,MAAM,UACNC,KAAK,QAAQN,KAElB,OAAOR,EAAAA,cAAoBe,EAAAA,GAAmB,CAC1CC,IAAKV,KAAKJ,MAAMe,GAChBC,wBAAyB,CAAEC,OAAQP,MAI/C,W,+lBCjCA,MAAMQ,EAAU,CAAEC,QAAS,GAAIC,YAAa,IAEvCF,EAAQC,QAAQ,eAAiB,CAC9BE,EAAGA,IAAMC,EAAQ,MACjBC,MAAO,eACPC,GAAI,GAEJC,KAAK,EACLC,GAAI,YACJC,EAAG,cACHC,EAAG,YAEHC,IAAK,GAGLC,GAAI,2BAKRC,OAAOC,aAAeD,OAAOC,cAAgB,GAC7CD,OAAOC,aAAab,QAAOc,EAAAA,EAAA,GACpBF,OAAOC,aAAab,SAAW,IAC/BD,EAAQC,SAGXY,OAAOC,aAAaZ,YAAWa,EAAAA,EAAA,GAC5BF,OAAOC,aAAaZ,aAAe,IACnCF,EAAQE,c,mBC5BnBc,EAAOC,QAAUrC,O,oBCAjBoC,EAAOC,QAAUC,W","sources":["webpack://Msdyn365.Commerce.Online/./src/modules/custom-code/custom-code.tsx?fb76","webpack://Msdyn365.Commerce.Online/./lib/custom-code/module-registration.js?d070","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\n\r\nimport { SDK_FRAGMENT_NAME } from '@msdyn365-commerce/core-internal';\r\nimport * as React from 'react';\r\nimport { ICustomCodeProps } from './custom-code.props.autogenerated';\r\nimport { getAsset } from '@msdyn365-commerce/core';\r\n/**\r\n *\r\n * CustomCode component\r\n */\r\nclass CustomCode extends React.PureComponent> {\r\n constructor(props: ICustomCodeProps<{}>) {\r\n super(props);\r\n }\r\n public render(): JSX.Element | null {\r\n const { config } = this.props;\r\n const code = config.code;\r\n const staticUrl = `${getAsset('', this.props.context.request)}`;\r\n const codeC = code\r\n ?.split('href=\"/')\r\n .join(`href=\"${staticUrl}`)\r\n .split('src=\"/')\r\n .join(`src=\"${staticUrl}`);\r\n // tslint:disable:react-no-dangerous-html -- intentionally set inner html\r\n return React.createElement(SDK_FRAGMENT_NAME, {\r\n key: this.props.id,\r\n dangerouslySetInnerHTML: { __html: codeC }\r\n });\r\n }\r\n}\r\nexport default CustomCode;\r\n","const binding = { modules: {}, dataActions: {} };\n\n (binding.modules['custom-code'] = {\n c: () => require('partner/modules/custom-code/custom-code.tsx'),\n $type: 'scriptModule',\n da: [],\n \n iNM: false,\n ns: '__local__',\n n: 'custom-code',\n p: '__local__',\n \n pdp: '',\n \n \n md: 'src/modules/custom-code'\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 };","module.exports = React;","module.exports = ReactDOM;"],"names":["CustomCode","React","constructor","props","super","render","config","this","code","staticUrl","getAsset","context","request","codeC","split","join","SDK_FRAGMENT_NAME","key","id","dangerouslySetInnerHTML","__html","binding","modules","dataActions","c","require","$type","da","iNM","ns","n","p","pdp","md","window","__bindings__","_objectSpread","module","exports","ReactDOM"],"sourceRoot":""}