{"version":3,"sources":["../../../src/server/app-render/render-css-resource.tsx"],"sourcesContent":["import type { CssResource } from '../../build/webpack/plugins/flight-manifest-plugin'\nimport { encodeURIPath } from '../../shared/lib/encode-uri-path'\nimport type { AppRenderContext } from './app-render'\nimport { getAssetQueryString } from './get-asset-query-string'\nimport type { PreloadCallbacks } from './types'\n\n/**\n * Abstracts the rendering of CSS files based on whether they are inlined or not.\n * For inlined CSS, renders a \n )\n }\n\n preloadCallbacks?.push(() => {\n ctx.componentMod.preloadStyle(\n fullHref,\n ctx.renderOpts.crossOrigin,\n ctx.nonce\n )\n })\n\n return (\n \n )\n })\n}\n"],"names":["encodeURIPath","getAssetQueryString","renderCssResource","entryCssFiles","ctx","preloadCallbacks","map","entryCssFile","index","precedence","process","env","NODE_ENV","path","fullHref","assetPrefix","inlined","parsedRequestHeaders","isRSCRequest","style","nonce","href","content","push","componentMod","preloadStyle","renderOpts","crossOrigin","link","rel"],"mappings":";AACA,SAASA,aAAa,QAAQ,mCAAkC;AAEhE,SAASC,mBAAmB,QAAQ,2BAA0B;AAG9D;;;;CAIC,GACD,OAAO,SAASC,kBACdC,aAA4B,EAC5BC,GAAqB,EACrBC,gBAAmC;IAEnC,OAAOF,cAAcG,GAAG,CAAC,CAACC,cAAcC;QACtC,gEAAgE;QAChE,oEAAoE;QACpE,2DAA2D;QAC3D,iEAAiE;QACjE,0DAA0D;QAC1D,+CAA+C;QAC/C,MAAMC,aACJC,QAAQC,GAAG,CAACC,QAAQ,KAAK,gBACrB,UAAUL,aAAaM,IAAI,GAC3B;QAEN,iEAAiE;QACjE,kDAAkD;QAClD,mDAAmD;QACnD,mEAAmE;QACnE,mEAAmE;QACnE,cAAc;QACd,MAAMC,WAAW,GAAGV,IAAIW,WAAW,CAAC,OAAO,EAAEf,cAC3CO,aAAaM,IAAI,IACfZ,oBAAoBG,KAAK,OAAO;QAEpC,IAAIG,aAAaS,OAAO,IAAI,CAACZ,IAAIa,oBAAoB,CAACC,YAAY,EAAE;YAClE,qBACE,KAACC;gBAECC,OAAOhB,IAAIgB,KAAK;gBAChB,aAAa;gBACbX,YAAYA;gBACZY,MAAMP;0BAELP,aAAae,OAAO;eANhBd;QASX;QAEAH,oCAAAA,iBAAkBkB,IAAI,CAAC;YACrBnB,IAAIoB,YAAY,CAACC,YAAY,CAC3BX,UACAV,IAAIsB,UAAU,CAACC,WAAW,EAC1BvB,IAAIgB,KAAK;QAEb;QAEA,qBACE,KAACQ;YAECC,KAAI;YACJR,MAAMP;YACN,aAAa;YACbL,YAAYA;YACZkB,aAAavB,IAAIsB,UAAU,CAACC,WAAW;YACvCP,OAAOhB,IAAIgB,KAAK;WANXZ;IASX;AACF","ignoreList":[0]}