{"version":3,"file":"devextreme-angular-server.mjs","sources":["../../../dist/server/render.ts","../../../dist/server/index.ts","../../../dist/server/devextreme-angular-server.ts"],"sourcesContent":["/*!\n * devextreme-angular\n * Version: 25.2.6\n * Build date: Mon Mar 30 2026\n *\n * Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED\n *\n * This software may be modified and distributed under the terms\n * of the MIT license. See the LICENSE file in the root of the project for details.\n *\n * https://github.com/DevExpress/DevExtreme\n */\n\nimport { NgModule, Inject, PLATFORM_ID } from '@angular/core';\r\nimport { isPlatformServer } from '@angular/common';\r\n\r\nimport infernoRenderer from 'devextreme/core/inferno_renderer';\r\nimport { renderToString } from 'inferno-server';\r\n\r\n@NgModule({\r\n  exports: [],\r\n  imports: [],\r\n  providers: [],\r\n})\r\nexport class DxServerModule {\r\n  constructor(@Inject(PLATFORM_ID) platformId: any) {\r\n    if (isPlatformServer(platformId)) {\r\n      infernoRenderer.inject({\r\n        render: (\r\n          component,\r\n          props,\r\n          container,\r\n        ) => {\r\n          const el = infernoRenderer.createElement(component, props);\r\n          const document = container.ownerDocument;\r\n          const temp = document.createElement(container.tagName);\r\n\r\n          temp.innerHTML = renderToString(el);\r\n\r\n          const mainElement = temp.childNodes[0];\r\n          const childString = mainElement.innerHTML;\r\n\r\n          for (let i = 0; i < mainElement.attributes.length; i++) {\r\n            const attr = mainElement.attributes[i];\r\n\r\n            if (!container.hasAttribute(attr.name)) {\r\n              container.setAttribute(attr.name, attr.value);\r\n            }\r\n          }\r\n\r\n          container.innerHTML = childString;\r\n        },\r\n        renderIntoContainer: (\r\n          jsx,\r\n          container,\r\n        ) => {\r\n          if (jsx === null) {\r\n            container.innerHTML = '';\r\n            return;\r\n          }\r\n\r\n          container.innerHTML = renderToString(jsx);\r\n        },\r\n      });\r\n    }\r\n  }\r\n}\r\n","/*!\n * devextreme-angular\n * Version: 25.2.6\n * Build date: Mon Mar 30 2026\n *\n * Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED\n *\n * This software may be modified and distributed under the terms\n * of the MIT license. See the LICENSE file in the root of the project for details.\n *\n * https://github.com/DevExpress/DevExtreme\n */\n\nexport * from './render';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;AAWG;MAaU,cAAc,CAAA;AACzB,IAAA,WAAA,CAAiC,UAAe,EAAA;AAC9C,QAAA,IAAI,gBAAgB,CAAC,UAAU,CAAC,EAAE;YAChC,eAAe,CAAC,MAAM,CAAC;gBACrB,MAAM,EAAE,CACN,SAAS,EACT,KAAK,EACL,SAAS,KACP;oBACF,MAAM,EAAE,GAAG,eAAe,CAAC,aAAa,CAAC,SAAS,EAAE,KAAK,CAAC;AAC1D,oBAAA,MAAM,QAAQ,GAAG,SAAS,CAAC,aAAa;oBACxC,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,SAAS,CAAC,OAAO,CAAC;AAEtD,oBAAA,IAAI,CAAC,SAAS,GAAG,cAAc,CAAC,EAAE,CAAC;oBAEnC,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;AACtC,oBAAA,MAAM,WAAW,GAAG,WAAW,CAAC,SAAS;AAEzC,oBAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,WAAW,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;wBACtD,MAAM,IAAI,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC;wBAEtC,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;4BACtC,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC;wBAC/C;oBACF;AAEA,oBAAA,SAAS,CAAC,SAAS,GAAG,WAAW;gBACnC,CAAC;AACD,gBAAA,mBAAmB,EAAE,CACnB,GAAG,EACH,SAAS,KACP;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