flexium
Version:
A lightweight, signals-based UI framework with cross-platform renderers
2 lines • 857 B
JavaScript
import {a as a$1}from'./chunk-C5SJBRY2.mjs';function a(i){let e=[];for(let l=0;l<i.length;l++){let n=i[l];if(Array.isArray(n)){let t=a(n);for(let r=0;r<t.length;r++)e.push(t[r]);}else e.push(n);}return e}function c(i){let e=[];for(let l=0;l<i.length;l++){let n=i[l];n!=null&&n!==false&&e.push(n);}return e}function d(i,e){let l=e.key,n={};for(let o in e)o!=="key"&&o!=="children"&&(n[o]=e[o]);let t=e.children,r=[];return t!==void 0&&(Array.isArray(t)?r=c(a(t)):t!==null&&t!==false&&(r=[t])),a$1(i,n,r,l)}function y(i,e){let l=e.key,n={};for(let o in e)o!=="key"&&o!=="children"&&(n[o]=e[o]);let t=[],r=e.children;return Array.isArray(r)?t=c(r):r!=null&&r!==false&&(t=[r]),a$1(i,n,t,l)}function u(i){return a$1("fragment",{},i.children||[])}export{d as a,y as b,u as c};//# sourceMappingURL=chunk-WIOWLJR3.mjs.map
//# sourceMappingURL=chunk-WIOWLJR3.mjs.map