1 line
1.5 KiB
Text
1 line
1.5 KiB
Text
|
{"version":3,"file":"patch.nomodule.min.js","sources":["../../.config/config.js","../../src/patch/script/internals.js","../../src/patch/main.js"],"sourcesContent":["const config = {\r\n prefix: 'fr',\r\n namespace: 'dsfr',\r\n organisation: '@gouvfr',\r\n version: '1.11.2'\r\n};\r\n\r\nexport default config;\r\n","import config from '../../../.config/config';\nimport patch from './patch';\n\nconst executor = {};\nconst promise = new Promise((resolve, reject) => {\n executor.resolve = resolve;\n executor.reject = reject;\n});\n\nwindow[patch.namespace] = {\n configuration: window[config.namespace],\n promise: promise\n};\n\nconst patchInternals = () => {\n const api = window[config.namespace];\n if (!api || !api.internals) {\n requestAnimationFrame(patchInternals);\n return;\n }\n if (api.inspector.trace) api.inspector.log = api.inspector.trace;\n\n executor.resolve();\n};\n\nexport default patchInternals;\n","import patchInternals from './script/internals';\npatchInternals();\n"],"names":["const","config","executor","promise","Promise","resolve","reject","window","configuration","patchInternals","api","internals","inspector","trace","log","requestAnimationFrame"],"mappings":";yBAAAA,IAAMC,EAEO,OCCPC,EAAW,GACXC,EAAU,IAAIC,kBAASC,EAASC,GACpCJ,EAASG,QAAUA,EACnBH,EAASI,OAASA,CACpB,IAEAC,OAAsB,yCAAI,CACxBC,cAAeD,OAAON,GACtBE,QAASA,GAGXH,IAAMS,aACJT,IAAMU,EAAMH,OAAON,GACdS,GAAQA,EAAIC,WAIbD,EAAIE,UAAUC,QAAOH,EAAIE,UAAUE,IAAMJ,EAAIE,UAAUC,OAE3DX,EAASG,WALPU,sBAAsBN,EAM1B,ECtBAA"}
|