UNPKG

@anoki/fse-ui

Version:

FSE UI components library

3 lines (2 loc) 1.85 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index.cjs708.js"),m=require("./index.cjs696.js"),q=require("./index.cjs698.js"),S=require("./index.cjs701.js"),y=require("./index.cjs709.js");var o,h;function w(){if(h)return o;h=1;let l=d.__require(),a=m.__require();const c=q.__require();let p=S.__require(),f=y.__require();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 t,r=a;try{t=r(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(t,r,i){r=r.toString(),this.stringified=!1,this._processor=t,this._css=r,this._opts=i,this._map=void 0;let g=p;this.result=new c(this._processor,void 0,this._opts),this.result.css=r;let _=this;Object.defineProperty(this.result,"root",{get(){return _.root}});let e=new l(g,void 0,this._opts,r);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(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,r){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(t,r)}toString(){return this._css}warnings(){return[]}}return o=s,s.default=s,o}exports.__require=w; //# sourceMappingURL=index.cjs712.js.map