source: trip-planner-front/node_modules/css-loader/dist/runtime/api.js@ 59329aa

Last change on this file since 59329aa was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.6 KB
Line 
1"use strict";
2
3/*
4 MIT License http://www.opensource.org/licenses/mit-license.php
5 Author Tobias Koppers @sokra
6*/
7// css base code, injected by the css-loader
8// eslint-disable-next-line func-names
9module.exports = function (cssWithMappingToString) {
10 var list = []; // return the list of modules as css string
11
12 list.toString = function toString() {
13 return this.map(function (item) {
14 var content = cssWithMappingToString(item);
15
16 if (item[2]) {
17 return "@media ".concat(item[2], " {").concat(content, "}");
18 }
19
20 return content;
21 }).join("");
22 }; // import a list of modules into the list
23 // eslint-disable-next-line func-names
24
25
26 list.i = function (modules, mediaQuery, dedupe) {
27 if (typeof modules === "string") {
28 // eslint-disable-next-line no-param-reassign
29 modules = [[null, modules, ""]];
30 }
31
32 var alreadyImportedModules = {};
33
34 if (dedupe) {
35 for (var i = 0; i < this.length; i++) {
36 // eslint-disable-next-line prefer-destructuring
37 var id = this[i][0];
38
39 if (id != null) {
40 alreadyImportedModules[id] = true;
41 }
42 }
43 }
44
45 for (var _i = 0; _i < modules.length; _i++) {
46 var item = [].concat(modules[_i]);
47
48 if (dedupe && alreadyImportedModules[item[0]]) {
49 // eslint-disable-next-line no-continue
50 continue;
51 }
52
53 if (mediaQuery) {
54 if (!item[2]) {
55 item[2] = mediaQuery;
56 } else {
57 item[2] = "".concat(mediaQuery, " and ").concat(item[2]);
58 }
59 }
60
61 list.push(item);
62 }
63 };
64
65 return list;
66};
Note: See TracBrowser for help on using the repository browser.