UNPKG

@anoki/fse-ui

Version:

FSE UI components library

3 lines (2 loc) 1.21 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.cjs772.js"),d=require("./index.cjs679.js");var p;function f(){if(p)return n.__exports;p=1,Object.defineProperty(n.__exports,"__esModule",{value:!0}),n.__exports.getChildren=s,n.__exports.getParent=o,n.__exports.getSiblings=v,n.__exports.getAttributeValue=g,n.__exports.hasAttrib=b,n.__exports.getName=x,n.__exports.nextElementSibling=c,n.__exports.prevElementSibling=h;var a=d.__require();function s(e){return(0,a.hasChildren)(e)?e.children:[]}function o(e){return e.parent||null}function v(e){var t,r,_=o(e);if(_!=null)return s(_);for(var l=[e],i=e.prev,u=e.next;i!=null;)l.unshift(i),t=i,i=t.prev;for(;u!=null;)l.push(u),r=u,u=r.next;return l}function g(e,t){var r;return(r=e.attribs)===null||r===void 0?void 0:r[t]}function b(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function x(e){return e.name}function c(e){for(var t,r=e.next;r!==null&&!(0,a.isTag)(r);)t=r,r=t.next;return r}function h(e){for(var t,r=e.prev;r!==null&&!(0,a.isTag)(r);)t=r,r=t.prev;return r}return n.__exports}exports.__require=f; //# sourceMappingURL=index.cjs721.js.map