@anoki/fse-ui
Version:
FSE UI components library
96 lines (95 loc) • 2.49 kB
JavaScript
import { __require as m } from "./index.es708.js";
import { __require as d } from "./index.es696.js";
import { __require as q } from "./index.es698.js";
import { __require as S } from "./index.es701.js";
import { __require as w } from "./index.es709.js";
var o, h;
function P() {
if (h) return o;
h = 1;
let a = m(), l = d();
const c = q();
let p = S(), f = w();
class s {
get content() {
return this.result.css;
}
get css() {
return this.result.css;
}
get map() {
return this.result.map;
}
get messages() {
return [];
}
get opts() {
return this.result.opts;
}
get processor() {
return this.result.processor;
}
get root() {
if (this._root)
return this._root;
let r, t = l;
try {
r = t(this._css, this._opts);
} catch (i) {
this.error = i;
}
if (this.error)
throw this.error;
return this._root = r, r;
}
get [Symbol.toStringTag]() {
return "NoWorkResult";
}
constructor(r, t, i) {
t = t.toString(), this.stringified = !1, this._processor = r, this._css = t, this._opts = i, this._map = void 0;
let _ = p;
this.result = new c(this._processor, void 0, this._opts), this.result.css = t;
let g = this;
Object.defineProperty(this.result, "root", {
get() {
return g.root;
}
});
let e = new a(_, void 0, this._opts, t);
if (e.isMap()) {
let [n, u] = e.generate();
n && (this.result.css = n), u && (this.result.map = u);
} else
e.clearAnnotation(), this.result.css = e.css;
}
async() {
return this.error ? Promise.reject(this.error) : Promise.resolve(this.result);
}
catch(r) {
return this.async().catch(r);
}
finally(r) {
return this.async().then(r, r);
}
sync() {
if (this.error) throw this.error;
return this.result;
}
then(r, t) {
return process.env.NODE_ENV !== "production" && ("from" in this._opts || f(
"Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."
)), this.async().then(r, t);
}
toString() {
return this._css;
}
warnings() {
return [];
}
}
return o = s, s.default = s, o;
}
export {
P as __require
};
//# sourceMappingURL=index.es712.js.map