@devtron-labs/devtron-fe-common-lib 1.17.0-pre-6 → 1.17.0-pre-8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { n1 as s, aI as t, eh as i, eU as o, kK as r, kz as n, ft as l, aT as T, kh as E, aC as _, l6 as S, j5 as g, kv as d, kb as p, fn as A, fo as I, fp as c, dg as u, iB as C, fq as m, A as O, de as D, df as R, mV as P, fr as N, fs as y, fk as L, mi as f, kx as M, j6 as U, j8 as h, jN as F, fu as b, fv as B, fw as v, m6 as G, mK as k, cJ as V, d1 as Y, d2 as j, ir as H, fx as K, fT as W, kP as w, e4 as x, ec as X, e7 as z, ef as q, e1 as Z, ed as Q, eg as J, e6 as $, e5 as aa, eq as ea, eb as sa, e3 as ta, fE as ia, fI as oa, fy as ra, fz as na, h3 as la, k4 as Ta, B as Ea, f as _a, g as Sa, eF as ga, dU as da, eu as pa, dY as Aa, dZ as Ia, dW as ca, ew as ua, ev as Ca, eB as ma, dV as Oa, eE as Da, dX as Ra, ex as Pa, ez as Na, ey as ya, d$ as La, az as fa, eA as Ma, fA as Ua, fB as ha, fK as Fa, fF as ba, fD as Ba, fM as va, fQ as Ga, fP as ka, fO as Va, fR as Ya, fS as ja, jo as Ha, fU as Ka, d8 as Wa, d7 as wa, d6 as xa, mQ as Xa, c_ as za, kG as qa, cY as Za, Q as Qa, mP as Ja, n4 as $a, fJ as ae, mp as ee, ml as se, en as te, eo as ie, mq as oe, mr as re, kB as ne, kD as le, kC as Te, m$ as Ee, kI as _e, dl as Se, gO as ge, gL as de, kW as pe, eW as Ae, ea as Ie, l9 as ce, h2 as ue, C as Ce, H as me, g0 as Oe, cC as De, h as Re, fc as Pe, fe as Ne, gZ as ye, g_ as Le, g$ as fe, h0 as Me, j4 as Ue, du as he, kA as Fe, X as be, L as Be, br as ve, h1 as Ge, dw as ke, gK as Ve, mm as Ye, dz as je, m_ as He, h4 as Ke, h5 as We, h8 as we, cL as xe, x as Xe, ha as ze, hb as qe, cG as Ze, hj as Qe, hi as Je, aZ as $e, kg as as, kU as es, aG as ss, aY as ts, am as is, kJ as os, iU as rs, iS as ns, iT as ls, e2 as Ts, kT as Es, ki as _s, at as Ss, hn as gs, ei as ds, ej as ps, eX as As, hy as Is, kr as cs, hM as us, l5 as Cs, kt as ms, hF as Os, aJ as Ds, jX as Rs, kQ as Ps, eQ as Ns, ao as ys, aj as Ls, al as fs, hQ as Ms, ai as Us, ak as hs, eV as Fs, dn as bs, S as Bs, hd as vs, D as Gs, mM as ks, bc as Vs, kZ as Ys, h6 as js, mX as Hs, da as Ks, ht as Ws, hs as ws, hz as xs, fW as Xs, g2 as zs, g1 as qs, c$ as Zs, nc as Qs, bb as Js, kk as $s, jO as at, fX as et, kl as st, cN as tt, hP as it, k as ot, iC as rt, bf as nt, bg as lt, bh as Tt, hR as Et, mk as _t, mj as St, bi as gt, bk as dt, bj as pt, bl as At, c5 as It, dv as ct, hT as ut, hU as Ct, kq as mt, k$ as Ot, aw as Dt, au as Rt, kV as Pt, aS as Nt, ke as yt, ks as Lt, hW as ft, hV as Mt, n2 as Ut, mo as ht, mI as Ft, hX as bt, km as Bt, hY as vt, E as Gt, l as kt, h$ as Vt, hJ as Yt, ag as jt, aM as Ht, i1 as Kt, i0 as Wt, gh as wt, dH as xt, O as Xt, i2 as zt, i3 as qt, db as Zt, jE as Qt, d3 as Jt, jU as $t, i4 as ai, i5 as ei, h7 as si, eS as ti, dm as ii, dp as oi, e_ as ri, eZ as ni, bo as li, bm as Ti, bn as Ei, i6 as _i, i8 as Si, i9 as gi, i7 as di, ia as pi, ib as Ai, dA as Ii, g5 as ci, ic as ui, mW as Ci, id as mi, b1 as Oi, ie as Di, G as Ri, jc as Pi, jH as Ni, ih as yi, gg as Li, ah as fi, iD as Mi, kd as Ui, el as hi, ek as Fi, em as bi, l0 as Bi, dJ as vi, dK as Gi, b0 as ki, io as Vi, ip as Yi, iq as ji, is as Hi, it as Ki, d5 as Wi, l$ as wi, m1 as xi, ct as Xi, cs as zi, cZ as qi, iu as Zi, mG as Qi, iv as Ji, l1 as $i, iw as ao, U as eo, fd as so, n9 as to, iE as io, mH as oo, iy as ro, ix as no, f0 as lo, ky as To, as as Eo, iA as _o, cH as So, an as go, aX as po, n6 as Ao, iH as Io, n7 as co, fl as uo, jb as Co, g3 as mo, iJ as Oo, fY as Do, kw as Ro, ne as Po, aW as No, aD as yo, bp as Lo, nd as fo, aH as Mo, aB as Uo, hg as ho, hm as Fo, m4 as bo, d0 as Bo, cu as vo, d4 as Go, iL as ko, jd as Vo, cv as Yo, iM as jo, kf as Ho, mO as Ko, hk as Wo, M as wo, je as xo, cE as Xo, cA as zo, cB as qo, cD as Zo, eY as Qo, kn as Jo, e8 as $o, ff as ar, eT as er, gn as sr, eC as tr, gm as ir, gl as or, mJ as rr, iN as nr, kL as lr, cy as Tr, dy as Er, dh as _r, ap as Sr, hK as gr, hL as dr, kE as pr, aV as Ar, kX as Ir, e9 as cr, hH as ur, l7 as Cr, ig as mr, cI as Or, jV as Dr, hc as Rr, kj as Pr, iO as Nr, dt as yr, i_ as Lr, dc as fr, iZ as Mr, iP as Ur, iQ as hr, cK as Fr, iR as br, J as Br, mT as vr, j1 as Gr, P as kr, j3 as Vr, cM as Yr, mY as jr, b5 as Hr, dx as Kr, fm as Wr, kN as wr, jf as xr, e$ as Xr, ar as zr, R as qr, n as Zr, aQ as Qr, N as Jr, I as $r, na as an, jg as en, mL as sn, dG as tn, o as on, aA as rn, b8 as nn, fg as ln, mR as Tn, f4 as En, mS as _n, n8 as Sn, k_ as gn, n0 as dn, e as pn, nt as An, gM as In, aE as cn, fG as un, a_ as Cn, aU as mn, kR as On, b4 as Dn, jL as Rn, dB as Pn, kc as Nn, go as yn, l8 as Ln, hI as fn, jh as Mn, eR as Un, K as hn, g4 as Fn, cO as bn, ji as Bn, jj as vn, jp as Gn, cP as kn, cQ as Vn, p as Yn, fL as jn, kF as Hn, jF as Kn, jI as Wn, jJ as wn, fj as xn, cR as Xn, cS as zn, jr as qn, mN as Zn, jK as Qn, m2 as Jn, fZ as $n, he as al, cz as el, cT as sl, aF as tl, Z as il, gp as ol, jP as rl, gf as nl, jQ as ll, m as Tl, jR as El, dI as _l, kO as Sl, ee as gl, kY as dl, iI as pl, m5 as Al, nb as Il, aO as cl, hh as ul, av as Cl, ax as ml, cW as Ol, kH as Dl, ko as Rl, kp as Pl, jS as Nl, jT as yl, jW as Ll, b9 as fl, ba as Ml, jY as Ul, j_ as hl, j$ as Fl, mn as bl, iK as Bl, k0 as vl, m9 as Gl, k1 as kl, hl as Vl, cV as Yl, cX as jl, mx as Hl, my as Kl, mz as Wl, k2 as wl, eD as xl, T as Xl, k3 as zl, d9 as ql, f_ as Zl, f$ as Ql, n5 as Jl, ay as $l, b3 as aT, kS as eT, mZ as sT, aq as tT, cq as iT, lY as oT, ep as rT, k6 as nT, k7 as lT, co as TT, mc as ET, k8 as _T, dP as ST, l_ as gT, dT, dR as pT, dQ as AT, dN as IT, dL as cT, l2 as uT, l4 as CT, l3 as mT, kM as OT, a$ as DT, jD as RT, ds as PT, V as NT, lZ as yT, k9 as LT, cw as fT, cx as MT, jB as UT, aL as hT, hG as FT, W as bT, mU as BT, gk as vT, gi as GT, dd as kT, ka as VT, hN as YT, gj as jT, n3 as HT, b$ as KT, aR as WT, y as wT, lp as xT, bW as XT, aK as zT, c7 as qT, gu as ZT, b as QT, g8 as JT, g9 as $T, bZ as aE, lF as eE, bK as sE, lL as tE, bI as iE, a as oE, c0 as rE, gN as nE, gP as lE, eO as TE, c as EE, gS as _E, gV as SE, bL as gE, f9 as dE, es as pE, a5 as AE, f6 as IE, f3 as cE, hf as uE, bQ as CE, bX as mE, lq as OE, d as DE, f8 as RE, f7 as PE, be as NE, lJ as yE, hv as LE, hx as fE, hu as ME, hw as UE, nu as hE, fa as FE, la as bE, a4 as BE, a6 as vE, ci as GE, bV as kE, a3 as VE, v as YE, ch as jE, dC as HE, f1 as KE, bx as WE, lM as wE, mg as xE, hD as XE, gF as zE, af as qE, mf as ZE, iX as QE, ca as JE, eN as $E, er as a_, eM as e_, eL as s_, eK as t_, me as i_, jv as o_, lK as r_, a9 as n_, fb as l_, j9 as T_, mh as E_, jy as __, m7 as S_, gT as g_, gY as d_, gX as p_, gU as A_, h9 as I_, bE as c_, ja as u_, ii as C_, a7 as m_, hr as O_, lz as D_, hE as R_, dq as P_, di as N_, ga as y_, jM as L_, hA as f_, gI as M_, hS as U_, eI as h_, hB as F_, gW as b_, by as B_, jZ as v_, mv as G_, a8 as k_, lt as V_, bR as Y_, b2 as j_, gC as H_, bG as K_, ad as W_, lf as w_, ae as x_, ce as X_, lO as z_, eP as q_, ly as Z_, cf as Q_, il as J_, gz as $_, gy as aS, cc as eS, fH as sS, iz as tS, lx as iS, hZ as oS, lw as rS, le as nS, z as lS, f5 as TS, f2 as ES, ln as _S, gw as SS, lC as gS, gb as dS, ge as pS, ab as AS, j7 as IS, gD as cS, lB as uS, aN as CS, iY as mS, mA as OS, gt as DS, eH as RS, iW as PS, iV as NS, mF as yS, mE as LS, mt as fS, jk as MS, bw as US, bT as hS, dr as FS, ms as bS, aa as BS, cb as vS, gR as GS, jx as kS, jl as VS, jm as YS, jq as jS, js as HS, jA as KS, jG as WS, jn as wS, jC as xS, gv as XS, cd as zS, gE as qS, jz as ZS, cg as QS, g7 as JS, Y as $S, mw as ag, m8 as eg, ls as sg, aP as tg, ho as ig, jw as og, jt as rg, eJ as ng, g6 as lg, gd as Tg, gs as Eg, gJ as _g, gG as Sg, lE as gg, j0 as dg, bO as pg, dO as Ag, dS as Ig, lV as cg, _ as ug, lD as Cg, lj as mg, ac as Og, gA as Dg, gB as Rg, mD as Pg, mB as Ng, lA as yg, q as Lg, fi as fg, lm as Mg, ij as Ug, F as hg, b_ as Fg, fh as bg, bF as Bg, dk as vg, dj as Gg, lb as kg, im as Vg, lH as Yg, dD as jg, i as Hg, lr as Kg, j as Wg, bP as wg, c6 as xg, hC as Xg, cF as zg, bz as qg, bA as Zg, lh as Qg, iG as Jg, iF as $g, ju as ad, eG as ed, i$ as sd, a1 as td, t as id, r as od, bU as rd, c8 as nd, gc as ld, lc as Td, bu as Ed, ld as _d, a2 as Sd, bN as gd, hO as dd, s as pd, bS as Ad, mC as Id, bB as cd, gH as ud, h_ as Cd, gQ as md, lI as Od, lo as Dd, bC as Rd, nh as Pd, lv as Nd, lG as yd, lu as Ld, a0 as fd, gx as Md, mu as Ud, bd as hd, ik as Fd, $ as bd, c1 as Bd, bq as vd, lN as Gd, bs as kd, fV as Vd, ku as Yd, gr as jd, bt as Hd, lg as Kd, gq as Wd, c9 as wd, w as xd, dF as Xd, hq as zd, hp as qd, lW as Zd, dE as Qd, dM as Jd, et as $d, bM as ap, u as ep, d_ as sp, e0 as tp, fC as ip, cj as op, bY as rp, lP as np, bD as lp, lQ as Tp, lR as Ep, ck as _p, m0 as Sp, ll as gp, c2 as dp, cl as pp, bJ as Ap, c4 as Ip, m3 as cp, lS as up, j2 as Cp, lT as mp, cn as Op, cU as Dp, c3 as Rp, bH as Pp, cp as Np, lU as yp, ma as Lp, bv as fp, fN as Mp, k5 as Up, cr as hp, mb as Fp, lX as bp, cm as Bp, nx as vp, nv as Gp, nj as kp, ns as Vp, nz as Yp, np as jp, nw as Hp, ng as Kp, nf as Wp, ni as wp, no as xp, nm as Xp, nl as zp, nr as qp, nk as Zp, b6 as Qp, b7 as Jp, nn as $p, nq as aA, ny as eA, li as sA, md as tA, lk as iA } from "./@code-editor-CIT4e7hG.js";
2
- import { H as rA, R as nA, c as lA, g as TA, a as EA, b as _A } from "./@common-rjsf-D62eDBEJ.js";
1
+ import { n1 as s, aI as t, eh as i, eU as o, kK as r, kz as n, ft as l, aT as T, kh as E, aC as _, l6 as S, j5 as g, kv as d, kb as p, fn as A, fo as I, fp as c, dg as u, iB as C, fq as m, A as O, de as D, df as R, mV as P, fr as N, fs as y, fk as L, mi as f, kx as M, j6 as U, j8 as h, jN as F, fu as b, fv as B, fw as v, m6 as G, mK as k, cJ as V, d1 as Y, d2 as j, ir as H, fx as K, fT as W, kP as w, e4 as x, ec as X, e7 as z, ef as q, e1 as Z, ed as Q, eg as J, e6 as $, e5 as aa, eq as ea, eb as sa, e3 as ta, fE as ia, fI as oa, fy as ra, fz as na, h3 as la, k4 as Ta, B as Ea, f as _a, g as Sa, eF as ga, dU as da, eu as pa, dY as Aa, dZ as Ia, dW as ca, ew as ua, ev as Ca, eB as ma, dV as Oa, eE as Da, dX as Ra, ex as Pa, ez as Na, ey as ya, d$ as La, az as fa, eA as Ma, fA as Ua, fB as ha, fK as Fa, fF as ba, fD as Ba, fM as va, fQ as Ga, fP as ka, fO as Va, fR as Ya, fS as ja, jp as Ha, fU as Ka, d8 as Wa, d7 as wa, d6 as xa, mQ as Xa, c_ as za, kG as qa, cY as Za, Q as Qa, mP as Ja, n4 as $a, fJ as ae, mp as ee, ml as se, en as te, eo as ie, mq as oe, mr as re, kB as ne, kD as le, kC as Te, m$ as Ee, kI as _e, dl as Se, gO as ge, gL as de, kW as pe, eW as Ae, ea as Ie, l9 as ce, h2 as ue, C as Ce, H as me, g0 as Oe, cC as De, h as Re, fc as Pe, fe as Ne, gZ as ye, g_ as Le, g$ as fe, h0 as Me, j4 as Ue, du as he, kA as Fe, X as be, L as Be, br as ve, h1 as Ge, dw as ke, gK as Ve, mm as Ye, dz as je, m_ as He, h4 as Ke, h5 as We, h8 as we, cL as xe, x as Xe, ha as ze, hb as qe, cG as Ze, hj as Qe, hi as Je, aZ as $e, kg as as, kU as es, aG as ss, aY as ts, am as is, kJ as os, iU as rs, iS as ns, iT as ls, e2 as Ts, kT as Es, ki as _s, at as Ss, hn as gs, ei as ds, ej as ps, eX as As, hy as Is, kr as cs, hM as us, l5 as Cs, kt as ms, hF as Os, aJ as Ds, jX as Rs, kQ as Ps, eQ as Ns, ao as ys, aj as Ls, al as fs, hQ as Ms, ai as Us, ak as hs, eV as Fs, dn as bs, S as Bs, hd as vs, D as Gs, mM as ks, bc as Vs, kZ as Ys, h6 as js, mX as Hs, da as Ks, ht as Ws, hs as ws, hz as xs, fW as Xs, g2 as zs, g1 as qs, c$ as Zs, nc as Qs, bb as Js, kk as $s, jO as at, fX as et, kl as st, cN as tt, hP as it, k as ot, iC as rt, bf as nt, bg as lt, bh as Tt, hR as Et, mk as _t, mj as St, bi as gt, bk as dt, bj as pt, bl as At, c5 as It, dv as ct, hT as ut, hU as Ct, kq as mt, k$ as Ot, aw as Dt, au as Rt, kV as Pt, aS as Nt, ke as yt, ks as Lt, hW as ft, hV as Mt, n2 as Ut, mo as ht, mI as Ft, hX as bt, km as Bt, hY as vt, E as Gt, l as kt, h$ as Vt, hJ as Yt, ag as jt, aM as Ht, i1 as Kt, i0 as Wt, gh as wt, dH as xt, O as Xt, i2 as zt, i3 as qt, db as Zt, jF as Qt, d3 as Jt, jU as $t, i4 as ai, i5 as ei, h7 as si, eS as ti, dm as ii, dp as oi, e_ as ri, eZ as ni, bo as li, bm as Ti, bn as Ei, i6 as _i, i8 as Si, i9 as gi, i7 as di, ia as pi, ib as Ai, dA as Ii, g5 as ci, ic as ui, mW as Ci, id as mi, b1 as Oi, ie as Di, G as Ri, jc as Pi, jH as Ni, ih as yi, gg as Li, ah as fi, iD as Mi, kd as Ui, el as hi, ek as Fi, em as bi, l0 as Bi, dJ as vi, dK as Gi, b0 as ki, io as Vi, ip as Yi, iq as ji, is as Hi, it as Ki, d5 as Wi, l$ as wi, m1 as xi, ct as Xi, cs as zi, cZ as qi, iu as Zi, mG as Qi, iv as Ji, l1 as $i, iw as ao, U as eo, fd as so, n9 as to, iE as io, mH as oo, iy as ro, ix as no, f0 as lo, ky as To, as as Eo, iA as _o, cH as So, an as go, aX as po, n6 as Ao, iH as Io, n7 as co, fl as uo, jb as Co, g3 as mo, iJ as Oo, fY as Do, kw as Ro, ne as Po, aW as No, aD as yo, bp as Lo, nd as fo, aH as Mo, aB as Uo, hg as ho, hm as Fo, m4 as bo, d0 as Bo, cu as vo, d4 as Go, iL as ko, je as Vo, cv as Yo, iM as jo, kf as Ho, mO as Ko, hk as Wo, M as wo, jf as xo, cE as Xo, cA as zo, cB as qo, cD as Zo, eY as Qo, kn as Jo, e8 as $o, ff as ar, eT as er, gn as sr, eC as tr, gm as ir, gl as or, mJ as rr, iN as nr, kL as lr, cy as Tr, dy as Er, dh as _r, ap as Sr, hK as gr, hL as dr, kE as pr, aV as Ar, kX as Ir, e9 as cr, hH as ur, l7 as Cr, ig as mr, cI as Or, jV as Dr, hc as Rr, kj as Pr, iO as Nr, dt as yr, i_ as Lr, dc as fr, iZ as Mr, iP as Ur, iQ as hr, cK as Fr, iR as br, J as Br, mT as vr, j1 as Gr, P as kr, j3 as Vr, cM as Yr, mY as jr, b5 as Hr, dx as Kr, fm as Wr, kN as wr, jg as xr, e$ as Xr, ar as zr, R as qr, n as Zr, aQ as Qr, N as Jr, I as $r, na as an, jh as en, mL as sn, dG as tn, o as on, aA as rn, b8 as nn, fg as ln, mR as Tn, f4 as En, mS as _n, n8 as Sn, k_ as gn, n0 as dn, e as pn, nt as An, gM as In, aE as cn, fG as un, a_ as Cn, aU as mn, kR as On, b4 as Dn, jL as Rn, dB as Pn, kc as Nn, go as yn, l8 as Ln, hI as fn, ji as Mn, eR as Un, K as hn, g4 as Fn, cO as bn, jj as Bn, jk as vn, jq as Gn, cP as kn, cQ as Vn, p as Yn, fL as jn, kF as Hn, a as Kn, jI as Wn, jJ as wn, fj as xn, cR as Xn, cS as zn, js as qn, mN as Zn, jK as Qn, m2 as Jn, fZ as $n, he as al, cz as el, cT as sl, aF as tl, Z as il, gp as ol, jP as rl, gf as nl, jQ as ll, m as Tl, jR as El, dI as _l, kO as Sl, ee as gl, kY as dl, iI as pl, m5 as Al, nb as Il, aO as cl, hh as ul, av as Cl, ax as ml, cW as Ol, kH as Dl, ko as Rl, kp as Pl, jS as Nl, jT as yl, jW as Ll, b9 as fl, ba as Ml, jY as Ul, j_ as hl, j$ as Fl, mn as bl, iK as Bl, k0 as vl, m9 as Gl, k1 as kl, hl as Vl, cV as Yl, cX as jl, mx as Hl, my as Kl, mz as Wl, k2 as wl, eD as xl, T as Xl, k3 as zl, d9 as ql, f_ as Zl, f$ as Ql, n5 as Jl, ay as $l, b3 as aT, kS as eT, mZ as sT, aq as tT, cq as iT, lY as oT, ep as rT, k6 as nT, k7 as lT, co as TT, mc as ET, k8 as _T, dP as ST, l_ as gT, dT, dR as pT, dQ as AT, dN as IT, dL as cT, l2 as uT, l4 as CT, l3 as mT, kM as OT, a$ as DT, jE as RT, ds as PT, V as NT, lZ as yT, k9 as LT, cw as fT, cx as MT, jC as UT, aL as hT, hG as FT, W as bT, mU as BT, gk as vT, gi as GT, dd as kT, ka as VT, hN as YT, gj as jT, n3 as HT, b$ as KT, aR as WT, y as wT, lp as xT, bW as XT, aK as zT, c7 as qT, gu as ZT, b as QT, g8 as JT, g9 as $T, bZ as aE, lF as eE, bK as sE, lL as tE, bI as iE, jd as oE, c0 as rE, gN as nE, gP as lE, eO as TE, c as EE, gS as _E, gV as SE, bL as gE, f9 as dE, es as pE, a5 as AE, f6 as IE, f3 as cE, hf as uE, bQ as CE, bX as mE, lq as OE, d as DE, f8 as RE, f7 as PE, be as NE, lJ as yE, hv as LE, hx as fE, hu as ME, hw as UE, nu as hE, fa as FE, la as bE, a4 as BE, a6 as vE, ci as GE, bV as kE, a3 as VE, v as YE, ch as jE, dC as HE, f1 as KE, bx as WE, lM as wE, mg as xE, hD as XE, gF as zE, af as qE, mf as ZE, iX as QE, ca as JE, eN as $E, er as a_, eM as e_, eL as s_, eK as t_, me as i_, jw as o_, lK as r_, a9 as n_, fb as l_, j9 as T_, mh as E_, jz as __, m7 as S_, gT as g_, gY as d_, gX as p_, gU as A_, h9 as I_, bE as c_, ja as u_, ii as C_, a7 as m_, hr as O_, lz as D_, hE as R_, dq as P_, di as N_, ga as y_, jM as L_, hA as f_, gI as M_, hS as U_, eI as h_, hB as F_, gW as b_, by as B_, jZ as v_, mv as G_, a8 as k_, lt as V_, bR as Y_, b2 as j_, gC as H_, bG as K_, ad as W_, lf as w_, ae as x_, ce as X_, lO as z_, eP as q_, ly as Z_, cf as Q_, il as J_, gz as $_, gy as aS, cc as eS, fH as sS, iz as tS, lx as iS, hZ as oS, lw as rS, le as nS, z as lS, f5 as TS, f2 as ES, ln as _S, gw as SS, lC as gS, gb as dS, ge as pS, ab as AS, j7 as IS, gD as cS, lB as uS, aN as CS, iY as mS, mA as OS, gt as DS, eH as RS, iW as PS, iV as NS, mF as yS, mE as LS, mt as fS, jl as MS, bw as US, bT as hS, dr as FS, ms as bS, aa as BS, cb as vS, gR as GS, jy as kS, jm as VS, jn as YS, jr as jS, jt as HS, jB as KS, jG as WS, jo as wS, jD as xS, gv as XS, cd as zS, gE as qS, jA as ZS, cg as QS, g7 as JS, Y as $S, mw as ag, m8 as eg, ls as sg, aP as tg, ho as ig, jx as og, ju as rg, eJ as ng, g6 as lg, gd as Tg, gs as Eg, gJ as _g, gG as Sg, lE as gg, j0 as dg, bO as pg, dO as Ag, dS as Ig, lV as cg, _ as ug, lD as Cg, lj as mg, ac as Og, gA as Dg, gB as Rg, mD as Pg, mB as Ng, lA as yg, q as Lg, fi as fg, lm as Mg, ij as Ug, F as hg, b_ as Fg, fh as bg, bF as Bg, dk as vg, dj as Gg, lb as kg, im as Vg, lH as Yg, dD as jg, i as Hg, lr as Kg, j as Wg, bP as wg, c6 as xg, hC as Xg, cF as zg, bz as qg, bA as Zg, lh as Qg, iG as Jg, iF as $g, jv as ad, eG as ed, i$ as sd, a1 as td, t as id, r as od, bU as rd, c8 as nd, gc as ld, lc as Td, bu as Ed, ld as _d, a2 as Sd, bN as gd, hO as dd, s as pd, bS as Ad, mC as Id, bB as cd, gH as ud, h_ as Cd, gQ as md, lI as Od, lo as Dd, bC as Rd, nh as Pd, lv as Nd, lG as yd, lu as Ld, a0 as fd, gx as Md, mu as Ud, bd as hd, ik as Fd, $ as bd, c1 as Bd, bq as vd, lN as Gd, bs as kd, fV as Vd, ku as Yd, gr as jd, bt as Hd, lg as Kd, gq as Wd, c9 as wd, w as xd, dF as Xd, hq as zd, hp as qd, lW as Zd, dE as Qd, dM as Jd, et as $d, bM as ap, u as ep, d_ as sp, e0 as tp, fC as ip, cj as op, bY as rp, lP as np, bD as lp, lQ as Tp, lR as Ep, ck as _p, m0 as Sp, ll as gp, c2 as dp, cl as pp, bJ as Ap, c4 as Ip, m3 as cp, lS as up, j2 as Cp, lT as mp, cn as Op, cU as Dp, c3 as Rp, bH as Pp, cp as Np, lU as yp, ma as Lp, bv as fp, fN as Mp, k5 as Up, cr as hp, mb as Fp, lX as bp, cm as Bp, nx as vp, nv as Gp, nj as kp, ns as Vp, nz as Yp, np as jp, nw as Hp, ng as Kp, nf as Wp, ni as wp, no as xp, nm as Xp, nl as zp, nr as qp, nk as Zp, b6 as Qp, b7 as Jp, nn as $p, nq as aA, ny as eA, li as sA, md as tA, lk as iA } from "./@code-editor-CsKzSw6Y.js";
2
+ import { H as rA, R as nA, c as lA, g as TA, a as EA, b as _A } from "./@common-rjsf-zRo8kSDe.js";
3
3
  import { A as gA, a as dA, m as pA, e as AA, c as IA, u as cA } from "./@framer-motion-j6RIjEIR.js";
4
4
  export {
5
5
  s as ACCESS_TYPE_MAP,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "1.17.0-pre-6",
3
+ "version": "1.17.0-pre-8",
4
4
  "description": "Supporting common component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,609 +0,0 @@
1
- import { j as n, at as b, av as k, au as W } from "./@vendor-DbxoIktR.js";
2
- import V, { forwardRef as J, useMemo as P } from "react";
3
- import K, { getDefaultRegistry as q } from "@rjsf/core";
4
- import { T as F, j as N, c as v, b as S, S as Y, i as z, a as w, d as A, e as G } from "./@code-editor-CIT4e7hG.js";
5
- import Q, { components as D } from "react-select";
6
- import { ReactComponent as X } from "./assets/ic-chevron-down.fc70d7a7.svg";
7
- import { getUiOptions as $, getTemplate as B, getSubmitButtonOptions as Z, ADDITIONAL_PROPERTY_FLAG as L, errorId as ee, englishStringTranslator as te, TranslatableString as ne, titleId as re, canExpand as ae, deepEquals as se } from "@rjsf/utils";
8
- import { ReactComponent as oe } from "./assets/ic-add.cfaa779b.svg";
9
- import { ReactComponent as ie } from "./assets/ic-warning.ecf7ff97.svg";
10
- import { ReactComponent as le } from "./assets/ic-cross.01e03666.svg";
11
- import './assets/@common-rjsf.css';const C = {
12
- SELECT: "Please select an option",
13
- INPUT: "Please enter an input",
14
- OBJECT_KEY: "Please enter a value for the key"
15
- }, ce = "Key not available", Je = {
16
- "ui:submitButtonOptions": {
17
- norender: !0
18
- }
19
- }, de = ({
20
- children: e,
21
- disabled: t,
22
- hasToolbar: a,
23
- hasRemove: r,
24
- index: s,
25
- onDropIndexClick: l,
26
- readonly: i,
27
- registry: o,
28
- uiSchema: c
29
- }) => {
30
- const { RemoveButton: d } = o.templates.ButtonTemplates;
31
- return /* @__PURE__ */ n.jsxs("div", { className: "dc__position-rel display-grid rjsf-form-template__array-field-item flex-align-center", children: [
32
- e,
33
- /* @__PURE__ */ n.jsx("div", { className: "dc__position-abs remove-btn__container", style: { right: "-28px", top: "9px" }, children: a && r && /* @__PURE__ */ n.jsx(
34
- d,
35
- {
36
- disabled: t || i,
37
- onClick: l(s),
38
- uiSchema: c,
39
- registry: o
40
- }
41
- ) })
42
- ] });
43
- }, T = ({
44
- showLabel: e,
45
- label: t,
46
- required: a,
47
- children: r,
48
- id: s,
49
- rawDescription: l,
50
- shouldAlignCenter: i = !0
51
- }) => /* @__PURE__ */ n.jsxs(
52
- "div",
53
- {
54
- className: e ? `display-grid dc__gap-12 rjsf-form-template__field ${i ? "flex-align-center" : ""}` : "",
55
- children: [
56
- e && /* @__PURE__ */ n.jsxs("label", { className: "cn-7 fs-13 lh-20 fw-4 flexbox mb-0", htmlFor: s, children: [
57
- /* @__PURE__ */ n.jsx(F, { alwaysShowTippyOnHover: !!l, content: l, children: /* @__PURE__ */ n.jsx("span", { className: `dc__ellipsis-right ${l ? "text-underline-dashed-300" : ""}`, children: t || ce }) }),
58
- a && /* @__PURE__ */ n.jsx("span", { className: "cr-5", children: " *" })
59
- ] }),
60
- r
61
- ]
62
- }
63
- ), E = ({ label: e, canAdd: t, onAddClick: a, disabled: r, readonly: s, uiSchema: l, registry: i }) => {
64
- const {
65
- ButtonTemplates: { AddButton: o }
66
- } = i.templates;
67
- return t && /* @__PURE__ */ n.jsx(
68
- o,
69
- {
70
- label: e,
71
- onClick: a,
72
- disabled: r || s,
73
- uiSchema: l,
74
- registry: i
75
- }
76
- );
77
- }, ue = ({
78
- canAdd: e,
79
- className: t,
80
- disabled: a,
81
- idSchema: r,
82
- uiSchema: s,
83
- items: l,
84
- onAddClick: i,
85
- readonly: o,
86
- registry: c,
87
- required: d,
88
- title: j
89
- }) => {
90
- const p = $(s), h = B("ArrayFieldItemTemplate", c, p), f = p.title || j;
91
- return /* @__PURE__ */ n.jsx("fieldset", { className: t, id: r.$id, children: l.length ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
92
- l.map(({ key: _, ...x }, m) => {
93
- const u = {
94
- ...x.children,
95
- props: {
96
- ...x.children.props
97
- }
98
- };
99
- return /* @__PURE__ */ n.jsx(h, { ...x, children: u }, _);
100
- }),
101
- /* @__PURE__ */ n.jsx(
102
- E,
103
- {
104
- label: f,
105
- canAdd: e,
106
- onAddClick: i,
107
- disabled: a,
108
- readonly: o,
109
- uiSchema: s,
110
- registry: c
111
- }
112
- )
113
- ] }) : /* @__PURE__ */ n.jsx(T, { label: f, required: d, showLabel: !0, id: r.$id, children: /* @__PURE__ */ n.jsx(
114
- E,
115
- {
116
- label: f,
117
- canAdd: e,
118
- onAddClick: i,
119
- disabled: a,
120
- readonly: o,
121
- uiSchema: s,
122
- registry: c
123
- }
124
- ) }) });
125
- }, {
126
- templates: { BaseInputTemplate: me }
127
- } = q(), pe = ({ placeholder: e, ...t }) => /* @__PURE__ */ n.jsx(
128
- me,
129
- {
130
- placeholder: e || C.INPUT,
131
- ...t,
132
- className: "form__input cn-9 fs-13 lh-20 fw-4"
133
- }
134
- ), U = ({
135
- label: e,
136
- icon: t,
137
- iconType: a,
138
- registry: r,
139
- uiSchema: s,
140
- ...l
141
- }) => {
142
- const i = `Add ${e}`;
143
- return /* @__PURE__ */ n.jsx("div", { className: "flexbox flex-justify-start", children: /* @__PURE__ */ n.jsxs(
144
- "button",
145
- {
146
- ...l,
147
- type: "button",
148
- className: "dc__outline-none-imp p-0 dc__transparent flex dc__gap-4 cursor dc__mxw-250",
149
- title: "Add",
150
- children: [
151
- /* @__PURE__ */ n.jsx(oe, { className: "icon-dim-16 fcb-5" }),
152
- /* @__PURE__ */ n.jsx(F, { placement: "right", content: i, children: /* @__PURE__ */ n.jsx("span", { className: "cb-5 fs-13 lh-34 dc__truncate", children: i }) })
153
- ]
154
- }
155
- ) });
156
- }, fe = ({ icon: e, iconType: t, registry: a, uiSchema: r, ...s }) => /* @__PURE__ */ n.jsx("button", { ...s, type: "button", className: "dc__outline-none-imp p-0 dc__transparent flex cursor", title: "Remove", children: /* @__PURE__ */ n.jsx(le, { className: "icon-dim-16 fcn-6" }) }), he = ({ uiSchema: e }) => {
157
- const { submitText: t, norender: a, props: r = {} } = Z(e);
158
- return a ? null : /* @__PURE__ */ n.jsx("div", { className: "flexbox flex-justify-end", children: /* @__PURE__ */ n.jsx("button", { type: "submit", ...r, className: `cta ${r.className || ""}`, children: t }) });
159
- }, O = ({
160
- id: e,
161
- title: t,
162
- required: a,
163
- description: r
164
- }) => /* @__PURE__ */ n.jsxs("legend", { className: "fs-13 fw-6 cn-9 lh-20 dc__no-border pb-9 mb-0", id: e, children: [
165
- /* @__PURE__ */ n.jsx(F, { alwaysShowTippyOnHover: !!r, content: r, children: /* @__PURE__ */ n.jsx("span", { className: `${r ? "text-underline-dashed-300" : ""}`, children: t }) }),
166
- a && /* @__PURE__ */ n.jsx("span", { className: "cr-5", children: " *" })
167
- ] }), xe = (e) => {
168
- const {
169
- id: t,
170
- label: a,
171
- children: r,
172
- errors: s,
173
- hidden: l,
174
- required: i,
175
- displayLabel: o,
176
- registry: c,
177
- uiSchema: d,
178
- classNames: j,
179
- schema: p,
180
- rawDescription: h
181
- } = e, f = $(d), _ = B(
182
- "WrapIfAdditionalTemplate",
183
- c,
184
- f
185
- ), x = L in p, m = (o || p.type === "boolean") && !x, u = p.type === "array";
186
- return l ? /* @__PURE__ */ n.jsx("div", { className: "hidden", children: r }) : (
187
- // NOTE: need to override the margins of default rjsf css
188
- /* @__PURE__ */ n.jsxs("div", { className: `${j} mb-0`, children: [
189
- u && /* @__PURE__ */ n.jsx(
190
- O,
191
- {
192
- id: t,
193
- title: a,
194
- required: i,
195
- registry: c,
196
- uiSchema: d,
197
- schema: p,
198
- description: h
199
- }
200
- ),
201
- /* @__PURE__ */ n.jsx(
202
- T,
203
- {
204
- label: a,
205
- showLabel: m,
206
- id: t,
207
- required: i,
208
- rawDescription: h,
209
- children: /* @__PURE__ */ n.jsx(_, { ...e, children: r })
210
- }
211
- ),
212
- s
213
- ] })
214
- );
215
- }, je = ({ errors: e = [], idSchema: t }) => {
216
- const a = ee(t);
217
- return e.length > 0 && /* @__PURE__ */ n.jsx("span", { className: "display-grid rjsf-form-template__field--error dc__gap-12", id: a, children: e.filter((r) => !!r).map((r, s) => /* @__PURE__ */ n.jsxs(V.Fragment, { children: [
218
- /* @__PURE__ */ n.jsx("span", {}),
219
- /* @__PURE__ */ n.jsxs("span", { className: "form__error", children: [
220
- /* @__PURE__ */ n.jsx(ie, { className: "form__icon form__icon--error" }),
221
- r
222
- ] })
223
- ] }, s)) });
224
- }, _e = (e, t) => {
225
- switch (e) {
226
- case ne.NewStringDefault:
227
- return "";
228
- default:
229
- return te(e, t);
230
- }
231
- }, Ke = (e) => {
232
- try {
233
- const t = new URL(e).origin === window.location.origin;
234
- return {
235
- href: e,
236
- target: t ? "_self" : "_blank",
237
- rel: t ? void 0 : "external noreferrer",
238
- url: e
239
- };
240
- } catch {
241
- return {
242
- href: e,
243
- target: "_blank",
244
- url: `${e} (Invalid URL)`
245
- };
246
- }
247
- }, qe = (e) => {
248
- const t = typeof e;
249
- switch (t) {
250
- case "boolean":
251
- case "string":
252
- case "number":
253
- return t;
254
- case "object":
255
- return Array.isArray(e) ? "array" : e === null ? "null" : t;
256
- default:
257
- return "null";
258
- }
259
- }, y = (e) => {
260
- if (!e)
261
- return "";
262
- const t = e.trim(), r = (/^\/.+$/g.test(t) ? t : `/${t}`).replaceAll(/\./g, "/");
263
- return /(\/(([^/~])|(~[01]))*)/g.test(r) ? r : "";
264
- }, R = {
265
- value: !1,
266
- path: ""
267
- }, ge = (e) => {
268
- if (!e)
269
- return null;
270
- const t = structuredClone(e);
271
- return typeof t == "string" ? {
272
- value: !0,
273
- path: y(t)
274
- } : typeof t != "object" ? structuredClone(R) : Object.hasOwn(t, "condition") && "condition" in t && Object.hasOwn(t, "value") && "value" in t ? {
275
- value: t.condition,
276
- path: y(t.value)
277
- } : Object.hasOwn(t, "value") && "value" in t && Object.hasOwn(t, "path") && "path" in t ? {
278
- value: t.value,
279
- path: y(t.path)
280
- } : structuredClone(R);
281
- }, H = (e, t, a) => {
282
- e && (e.type === "object" && e.properties && typeof e.properties == "object" && Object.entries(e.properties).forEach(([r, s]) => {
283
- H(s, `${t}/${r}`, a);
284
- }), (e.type === "boolean" || e.type === "string" || e.type === "number" || e.type === "integer") && (a[t] = y(e.updatePath ?? t)));
285
- }, ye = (e) => {
286
- const t = {};
287
- return H(e, "", t), t;
288
- }, M = (e, t, a) => {
289
- if (t >= a.length)
290
- return e;
291
- const r = a[t];
292
- if (t === a.length - 1) {
293
- const s = structuredClone(e);
294
- return delete s[r], s;
295
- }
296
- if (e[r] && (e[r] = M(e[r], t + 1, a)), Object.keys(e[r] ?? {}).length === 0) {
297
- const s = structuredClone(e);
298
- return delete s[r], s;
299
- }
300
- return e;
301
- }, be = (e, t) => {
302
- if (!e || typeof e != "object" || Array.isArray(e))
303
- throw new Error("Invalid object");
304
- if (!t || !t.startsWith("/"))
305
- throw new Error("Invalid path");
306
- const a = t.split("/").slice(1);
307
- return M(e, 0, a);
308
- }, I = ({
309
- formState: e,
310
- formData: t,
311
- schemaPathToUpdatePathMap: a
312
- }) => {
313
- let r = structuredClone(e);
314
- return r && (Object.entries(a).forEach(([s, l]) => {
315
- if (s === l || !l)
316
- return;
317
- const i = b({
318
- json: t,
319
- path: v(s),
320
- resultType: "value",
321
- wrap: !1
322
- });
323
- i === void 0 ? r = be(r, s) : r = N([S(s, i), r]);
324
- const o = b({
325
- json: e,
326
- path: v(s),
327
- resultType: "value",
328
- wrap: !1
329
- });
330
- o !== void 0 && (r = N([S(l, o), r]));
331
- }), t && r ? k(t, W(t, r), !1, !1).newDocument : r);
332
- }, ve = ({ formData: e, schemaPathToUpdatePathMap: t }) => N([
333
- ...Object.entries(t).map(([a, r]) => {
334
- if (a === r || !r)
335
- return {};
336
- const s = b({
337
- json: e,
338
- path: v(r),
339
- resultType: "value",
340
- wrap: !1
341
- });
342
- return s === void 0 ? {} : S(a, s);
343
- }),
344
- structuredClone(e)
345
- ]), Te = ({
346
- disabled: e,
347
- formData: t,
348
- idSchema: a,
349
- onAddClick: r,
350
- properties: s,
351
- readonly: l,
352
- registry: i,
353
- required: o,
354
- schema: c,
355
- title: d,
356
- uiSchema: j,
357
- formContext: p
358
- }) => {
359
- const h = !!c.additionalProperties, f = ae(c, j, t) && /* @__PURE__ */ n.jsx(
360
- U,
361
- {
362
- label: d,
363
- className: "object-property-expand",
364
- onClick: r(c),
365
- disabled: e || l,
366
- uiSchema: j,
367
- registry: i
368
- }
369
- ), _ = s.filter((x) => {
370
- const m = c.properties?.[x.name]?.hidden;
371
- if (!m)
372
- return !0;
373
- try {
374
- const u = ge(m);
375
- if (!u.path)
376
- throw new Error("Empty path property of hidden descriptor field");
377
- const g = b({
378
- path: v(u.path),
379
- json: p,
380
- resultType: "value",
381
- wrap: !1
382
- });
383
- return !(g === void 0 || se(u.value, g));
384
- } catch {
385
- return !0;
386
- }
387
- }).map((x) => x.content);
388
- return h ? s.length ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
389
- /* @__PURE__ */ n.jsx(
390
- T,
391
- {
392
- label: d,
393
- required: o,
394
- showLabel: !0,
395
- id: a.$id,
396
- shouldAlignCenter: !1,
397
- children: /* @__PURE__ */ n.jsx("div", { children: _ })
398
- }
399
- ),
400
- f
401
- ] }) : /* @__PURE__ */ n.jsx(T, { label: d, required: o, showLabel: !0, id: a.$id, children: f }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
402
- _,
403
- f
404
- ] });
405
- }, we = (e) => {
406
- const { idSchema: t, registry: a, required: r, schema: s, title: l, uiSchema: i, description: o } = e, c = !!s.additionalProperties, d = l && !c;
407
- return /* @__PURE__ */ n.jsxs("fieldset", { id: t.$id, children: [
408
- d && /* @__PURE__ */ n.jsx(
409
- O,
410
- {
411
- id: re(t),
412
- title: l,
413
- required: r,
414
- schema: s,
415
- uiSchema: i,
416
- registry: a,
417
- description: o
418
- }
419
- ),
420
- /* @__PURE__ */ n.jsx(
421
- "div",
422
- {
423
- className: `${s.properties && !c && t.$id !== "root" ? "dc__border-left pl-12" : ""} ${t.$id === "root" ? "dc__separated-flexbox dc__separated-flexbox--vertical" : "flexbox-col dc__gap-8"}`,
424
- children: /* @__PURE__ */ n.jsx(Te, { ...e })
425
- }
426
- )
427
- ] });
428
- }, Ne = ({
429
- id: e,
430
- disabled: t,
431
- label: a,
432
- onKeyChange: r,
433
- onDropPropertyClick: s,
434
- readonly: l,
435
- schema: i,
436
- children: o,
437
- uiSchema: c,
438
- registry: d
439
- }) => {
440
- const { templates: j } = d, { RemoveButton: p } = j.ButtonTemplates, h = L in i;
441
- return /* @__PURE__ */ n.jsx(n.Fragment, { children: h ? /* @__PURE__ */ n.jsxs("div", { className: "dc__position-rel rjsf-form-template__additional-fields display-grid dc__gap-8 flex-align-center", children: [
442
- /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx(
443
- "input",
444
- {
445
- type: "text",
446
- className: "form__input cn-9 fs-13 lh-20 fw-4",
447
- id: `${e}-key`,
448
- onBlur: (f) => r(f.target.value),
449
- placeholder: C.OBJECT_KEY,
450
- defaultValue: a
451
- }
452
- ) }),
453
- /* @__PURE__ */ n.jsx("div", { children: o }),
454
- /* @__PURE__ */ n.jsx("div", { className: "dc__position-abs remove-btn__container", style: { right: "-28px", top: "9px" }, children: /* @__PURE__ */ n.jsx(
455
- p,
456
- {
457
- disabled: t || l,
458
- onClick: s(a),
459
- uiSchema: c,
460
- registry: d
461
- }
462
- ) })
463
- ] }) : o });
464
- }, Se = ({
465
- id: e,
466
- onChange: t,
467
- value: a,
468
- disabled: r,
469
- readonly: s,
470
- autofocus: l
471
- }) => {
472
- const i = z(a) ? !1 : a, o = () => {
473
- t(!i);
474
- };
475
- return /* @__PURE__ */ n.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8", children: [
476
- /* @__PURE__ */ n.jsx(
477
- Y,
478
- {
479
- name: e,
480
- ariaLabel: e,
481
- onChange: o,
482
- isChecked: i,
483
- autoFocus: l,
484
- isDisabled: r || s
485
- }
486
- ),
487
- /* @__PURE__ */ n.jsx("span", { className: "dc__capitalize", children: i.toString() })
488
- ] });
489
- }, Fe = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx(D.MenuList, { ...t, children: Array.isArray(e) ? e.slice(0, 20) : e }), Ce = (e) => /* @__PURE__ */ n.jsx(D.DropdownIndicator, { ...e, children: /* @__PURE__ */ n.jsx(X, { className: "icon-dim-20 icon-n5", "data-testid": "overview-project-edit-dropdown" }) }), Oe = (e) => {
490
- const {
491
- id: t,
492
- multiple: a = !1,
493
- options: r,
494
- value: s,
495
- disabled: l,
496
- readonly: i,
497
- autofocus: o = !1,
498
- onChange: c,
499
- onBlur: d,
500
- onFocus: j,
501
- placeholder: p
502
- } = e, { enumOptions: h = [] } = r, f = a ? [] : "", _ = (m) => {
503
- c(a ? m.map((u) => u.value) : m.value);
504
- }, x = (m) => a ? h.filter((u) => m.some((g) => A(g, u.value))) : h.find((u) => A(m, u.value));
505
- return /* @__PURE__ */ n.jsx(
506
- Q,
507
- {
508
- id: t,
509
- name: t,
510
- isMulti: a,
511
- value: typeof s > "u" ? f : x(s),
512
- autoFocus: o,
513
- onChange: _,
514
- options: h,
515
- onBlur: () => d(t, s),
516
- onFocus: () => j(t, s),
517
- placeholder: p || C.SELECT,
518
- isDisabled: l || i,
519
- styles: {
520
- ...w,
521
- control: (m, u) => ({
522
- ...w.control(m, u),
523
- minHeight: "36px"
524
- }),
525
- multiValue: (m, u) => ({
526
- ...w.multiValue(m, u),
527
- margin: "2px 8px 2px 2px"
528
- })
529
- },
530
- components: {
531
- IndicatorSeparator: null,
532
- DropdownIndicator: Ce,
533
- MenuList: Fe
534
- },
535
- menuPlacement: "auto"
536
- }
537
- );
538
- }, Pe = {
539
- CheckboxWidget: Se,
540
- SelectWidget: Oe
541
- }, Ae = {
542
- ArrayFieldItemTemplate: de,
543
- ArrayFieldTemplate: ue,
544
- BaseInputTemplate: pe,
545
- ButtonTemplates: { AddButton: U, RemoveButton: fe, SubmitButton: he },
546
- FieldTemplate: xe,
547
- FieldErrorTemplate: je,
548
- ObjectFieldTemplate: we,
549
- TitleFieldTemplate: O,
550
- WrapIfAdditionalTemplate: Ne
551
- }, Ee = K, Re = G, Ye = J((e, t) => {
552
- const { schemaPathToUpdatePathMap: a, isUpdatePathKeywordPresent: r } = P(() => {
553
- const o = ye(e.schema);
554
- return {
555
- schemaPathToUpdatePathMap: o,
556
- isUpdatePathKeywordPresent: Object.entries(o).some(([c, d]) => c !== d)
557
- };
558
- }, [e.schema]), s = P(() => r ? ve({ formData: e.formData ?? {}, schemaPathToUpdatePathMap: a }) : e.formData, [e.formData, a, r]), l = (o) => {
559
- if (!e.onChange)
560
- return;
561
- const c = I({
562
- formState: o.formData,
563
- formData: e.formData,
564
- schemaPathToUpdatePathMap: a
565
- });
566
- e.onChange({ ...o, formData: c });
567
- }, i = (o, c) => {
568
- if (!e.onSubmit)
569
- return;
570
- const d = I({
571
- formState: o.formData,
572
- formData: e.formData,
573
- schemaPathToUpdatePathMap: a
574
- });
575
- e.onSubmit?.({ ...o, formData: d }, c);
576
- };
577
- return /* @__PURE__ */ n.jsx(
578
- Ee,
579
- {
580
- noHtml5Validate: !0,
581
- showErrorList: !1,
582
- autoComplete: "off",
583
- ...e,
584
- formData: s,
585
- ...r ? {
586
- onChange: l,
587
- onSubmit: i
588
- } : {},
589
- className: `rjsf-form-template__container ${e.className || ""}`,
590
- validator: Re,
591
- templates: {
592
- ...Ae,
593
- ...e.templates
594
- },
595
- formContext: s,
596
- widgets: { ...Pe, ...e.widgets },
597
- translateString: _e,
598
- ref: t
599
- }
600
- );
601
- });
602
- export {
603
- Je as H,
604
- Ye as R,
605
- Ke as a,
606
- ye as b,
607
- y as c,
608
- qe as g
609
- };