{"version":3,"file":"webpack-chunks/chunk.scripts_components_react_index_jsx.85beb091702ddea961a1.js","mappings":";;;;;;;;;;;;;AAAA;AACA;;AAEA,MAAMI,MAAM,GAAG,CAAC;AAAEC,EAAAA;AAAF,CAAD,KAAkB;AAChC,QAAMC,OAAO,GAAG,mBAAM,qFAAtB;;AACA,sBAAO,2DAAC,2CAAD;AAAU,YAAQ,eAAE,2DAAC,OAAD;AAApB,KAAkCD,QAAlC,CAAP;AACA,CAHD;;AAKA,MAAME,cAAc,GAAG;AACtBC,EAAAA,eAAe,eAAEP,2CAAI,CAAC,MAAM,ysBAAP,CADC;AAEtBQ,EAAAA,mBAAmB,eAAER,2CAAI,CAAC,MAAM,giBAAP;AAFH,CAAvB,EAKA;;AACA,+DAAe,MAAOS,OAAP,IAAmB;AAAA;;AACjC,QAAMC,SAAS,GAAGJ,cAAc,CAACG,OAAD,aAACA,OAAD,2CAACA,OAAO,CAAEE,OAAV,qDAAC,iBAAkBC,KAAnB,CAAhC;AACA,QAAMC,KAAK,GAAGC,IAAI,CAACC,KAAL,CAAW,CAAAN,OAAO,SAAP,IAAAA,OAAO,WAAP,iCAAAA,OAAO,CAAEE,OAAT,wEAAkBE,KAAlB,KAA2B,IAAtC,CAAd;;AACA,MAAIH,SAAJ,EAAe;AACd,UAAMM,IAAI,GAAGd,4DAAU,CAACO,OAAD,CAAvB;AACAO,IAAAA,IAAI,CAACC,MAAL,eAAY,2DAAC,MAAD,qBACX,2DAAC,yDAAD,qBACC,2DAAC,SAAD,EAAeJ,KAAf,CADD,CADW,CAAZ;AAKA,GAPD,MAOO;AACNK,IAAAA,OAAO,CAACC,IAAR,CAAc,4CAA2CT,SAAU,EAAnE;AACA;AACD,CAbD","sources":["webpack://detroit/./scripts/components/react/index.jsx"],"sourcesContent":["import React, { lazy, Suspense } from \"react\";\r\nimport { createRoot } from \"react-dom/client\";\r\n\r\nconst Loader = ({ children }) => {\r\n\tconst Loading = () =>
Loading...
;\r\n\treturn }>{children};\r\n};\r\n\r\nconst LazyComponents = {\r\n\tResourceLibrary: lazy(() => import(\"./ResourceLibrary/index.jsx\")),\r\n\tMiniResourceLibrary: lazy(() => import(\"./ResourceLibrary/MiniResourceLibrary.jsx\"))\r\n}\r\n\r\n// adding an empty async export here to satisfy the current JS loader we have in place\r\nexport default async (element) => {\r\n\tconst Component = LazyComponents[element?.dataset?.react];\r\n\tconst props = JSON.parse(element?.dataset?.props || \"{}\");\t\r\n\tif (Component) {\r\n\t\tconst root = createRoot(element);\r\n\t\troot.render(\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t} else {\r\n\t\tconsole.warn(`Expected React component name but found: ${Component}`);\r\n\t}\r\n};\r\n"],"names":["React","lazy","Suspense","createRoot","Loader","children","Loading","LazyComponents","ResourceLibrary","MiniResourceLibrary","element","Component","dataset","react","props","JSON","parse","root","render","console","warn"],"sourceRoot":""}