1 line
2.8 KiB
JSON
1 line
2.8 KiB
JSON
{"ast":null,"code":"\"use strict\";\n\nmodule.exports = function (url, options) {\n if (!options) {\n // eslint-disable-next-line no-param-reassign\n options = {};\n } // eslint-disable-next-line no-underscore-dangle, no-param-reassign\n\n\n url = url && url.__esModule ? url.default : url;\n\n if (typeof url !== 'string') {\n return url;\n } // If url is already wrapped in quotes, remove them\n\n\n if (/^['\"].*['\"]$/.test(url)) {\n // eslint-disable-next-line no-param-reassign\n url = url.slice(1, -1);\n }\n\n if (options.hash) {\n // eslint-disable-next-line no-param-reassign\n url += options.hash;\n } // Should url be wrapped?\n // See https://drafts.csswg.org/css-values-3/#urls\n\n\n if (/[\"'() \\t\\n]/.test(url) || options.needQuotes) {\n return \"\\\"\".concat(url.replace(/\"/g, '\\\\\"').replace(/\\n/g, '\\\\n'), \"\\\"\");\n }\n\n return url;\n};","map":{"version":3,"names":["module","exports","url","options","__esModule","default","test","slice","hash","needQuotes","concat","replace"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/css-loader/dist/runtime/getUrl.js"],"sourcesContent":["\"use strict\";\n\nmodule.exports = function (url, options) {\n if (!options) {\n // eslint-disable-next-line no-param-reassign\n options = {};\n } // eslint-disable-next-line no-underscore-dangle, no-param-reassign\n\n\n url = url && url.__esModule ? url.default : url;\n\n if (typeof url !== 'string') {\n return url;\n } // If url is already wrapped in quotes, remove them\n\n\n if (/^['\"].*['\"]$/.test(url)) {\n // eslint-disable-next-line no-param-reassign\n url = url.slice(1, -1);\n }\n\n if (options.hash) {\n // eslint-disable-next-line no-param-reassign\n url += options.hash;\n } // Should url be wrapped?\n // See https://drafts.csswg.org/css-values-3/#urls\n\n\n if (/[\"'() \\t\\n]/.test(url) || options.needQuotes) {\n return \"\\\"\".concat(url.replace(/\"/g, '\\\\\"').replace(/\\n/g, '\\\\n'), \"\\\"\");\n }\n\n return url;\n};"],"mappings":"AAAA;;AAEAA,MAAM,CAACC,OAAP,GAAiB,UAAUC,GAAV,EAAeC,OAAf,EAAwB;EACvC,IAAI,CAACA,OAAL,EAAc;IACZ;IACAA,OAAO,GAAG,EAAV;EACD,CAJsC,CAIrC;;;EAGFD,GAAG,GAAGA,GAAG,IAAIA,GAAG,CAACE,UAAX,GAAwBF,GAAG,CAACG,OAA5B,GAAsCH,GAA5C;;EAEA,IAAI,OAAOA,GAAP,KAAe,QAAnB,EAA6B;IAC3B,OAAOA,GAAP;EACD,CAXsC,CAWrC;;;EAGF,IAAI,eAAeI,IAAf,CAAoBJ,GAApB,CAAJ,EAA8B;IAC5B;IACAA,GAAG,GAAGA,GAAG,CAACK,KAAJ,CAAU,CAAV,EAAa,CAAC,CAAd,CAAN;EACD;;EAED,IAAIJ,OAAO,CAACK,IAAZ,EAAkB;IAChB;IACAN,GAAG,IAAIC,OAAO,CAACK,IAAf;EACD,CAtBsC,CAsBrC;EACF;;;EAGA,IAAI,cAAcF,IAAd,CAAmBJ,GAAnB,KAA2BC,OAAO,CAACM,UAAvC,EAAmD;IACjD,OAAO,KAAKC,MAAL,CAAYR,GAAG,CAACS,OAAJ,CAAY,IAAZ,EAAkB,KAAlB,EAAyBA,OAAzB,CAAiC,KAAjC,EAAwC,KAAxC,CAAZ,EAA4D,IAA5D,CAAP;EACD;;EAED,OAAOT,GAAP;AACD,CA/BD"},"metadata":{},"sourceType":"script"} |