{"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":["renderCssResource","entryCssFiles","ctx","preloadCallbacks","map","entryCssFile","index","precedence","process","env","NODE_ENV","path","fullHref","assetPrefix","encodeURIPath","getAssetQueryString","inlined","parsedRequestHeaders","isRSCRequest","style","nonce","href","content","push","componentMod","preloadStyle","renderOpts","crossOrigin","link","rel"],"mappings":";;;;+BAWgBA;;;eAAAA;;;;+BAVc;qCAEM;AAQ7B,SAASA,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,EAAEC,IAAAA,4BAAa,EACxDT,aAAaM,IAAI,IACfI,IAAAA,wCAAmB,EAACb,KAAK,OAAO;QAEpC,IAAIG,aAAaW,OAAO,IAAI,CAACd,IAAIe,oBAAoB,CAACC,YAAY,EAAE;YAClE,qBACE,qBAACC;gBAECC,OAAOlB,IAAIkB,KAAK;gBAChB,aAAa;gBACbb,YAAYA;gBACZc,MAAMT;0BAELP,aAAaiB,OAAO;eANhBhB;QASX;QAEAH,oCAAAA,iBAAkBoB,IAAI,CAAC;YACrBrB,IAAIsB,YAAY,CAACC,YAAY,CAC3Bb,UACAV,IAAIwB,UAAU,CAACC,WAAW,EAC1BzB,IAAIkB,KAAK;QAEb;QAEA,qBACE,qBAACQ;YAECC,KAAI;YACJR,MAAMT;YACN,aAAa;YACbL,YAAYA;YACZoB,aAAazB,IAAIwB,UAAU,CAACC,WAAW;YACvCP,OAAOlB,IAAIkB,KAAK;WANXd;IASX;AACF","ignoreList":[0]}